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.
Files changed (166) hide show
  1. package/index.js +2 -2
  2. package/lib/ReactRelayContext.js +6 -3
  3. package/lib/ReactRelayFragmentContainer.js +48 -46
  4. package/lib/ReactRelayFragmentMockRenderer.js +5 -1
  5. package/lib/ReactRelayPaginationContainer.js +102 -68
  6. package/lib/ReactRelayQueryFetcher.js +54 -28
  7. package/lib/ReactRelayQueryRenderer.js +28 -20
  8. package/lib/ReactRelayRefetchContainer.js +70 -58
  9. package/lib/ReactRelayTestMocker.js +56 -43
  10. package/lib/ReactRelayTypes.js +1 -1
  11. package/lib/RelayContext.js +8 -2
  12. package/lib/assertFragmentMap.js +9 -7
  13. package/lib/buildReactRelayContainer.js +32 -23
  14. package/lib/index.js +41 -0
  15. package/lib/isRelayEnvironment.js +1 -1
  16. package/lib/isRelayVariables.js +1 -1
  17. package/lib/readContext.js +7 -4
  18. package/package.json +4 -4
  19. package/react-relay.js +2 -2
  20. package/react-relay.min.js +2 -2
  21. package/classic.js +0 -10
  22. package/compat.js +0 -10
  23. package/lib/ConcreteQuery.js +0 -10
  24. package/lib/GraphQLQueryRunner.js +0 -264
  25. package/lib/GraphQLRange.js +0 -1124
  26. package/lib/GraphQLSegment.js +0 -743
  27. package/lib/GraphQLStoreChangeEmitter.js +0 -141
  28. package/lib/GraphQLStoreQueryResolver.js +0 -288
  29. package/lib/GraphQLStoreRangeUtils.js +0 -126
  30. package/lib/QueryBuilder.js +0 -228
  31. package/lib/ReactRelayClassicExports.js +0 -29
  32. package/lib/ReactRelayCompatContainerBuilder.js +0 -175
  33. package/lib/ReactRelayCompatPublic.js +0 -28
  34. package/lib/ReactRelayContainerProfiler.js +0 -30
  35. package/lib/ReactRelayFragmentContainer-flowtest.js +0 -201
  36. package/lib/ReactRelayPaginationContainer-flowtest.js +0 -213
  37. package/lib/ReactRelayPublic.js +0 -29
  38. package/lib/ReactRelayRefetchContainer-flowtest.js +0 -191
  39. package/lib/RelayCacheProcessor.js +0 -196
  40. package/lib/RelayChangeTracker.js +0 -83
  41. package/lib/RelayClassicContainerUtils.js +0 -49
  42. package/lib/RelayClassicCore.js +0 -34
  43. package/lib/RelayClassicRecordState.js +0 -31
  44. package/lib/RelayCompatContainer.js +0 -25
  45. package/lib/RelayCompatEnvironment.js +0 -27
  46. package/lib/RelayCompatMutations.js +0 -133
  47. package/lib/RelayCompatPaginationContainer.js +0 -27
  48. package/lib/RelayCompatRefetchContainer.js +0 -27
  49. package/lib/RelayCompatTypes.js +0 -10
  50. package/lib/RelayContainer.js +0 -889
  51. package/lib/RelayContainerComparators.js +0 -75
  52. package/lib/RelayContainerProxy.js +0 -21
  53. package/lib/RelayDefaultNetworkLayer.js +0 -192
  54. package/lib/RelayEnvironment.js +0 -449
  55. package/lib/RelayEnvironmentTypes.js +0 -10
  56. package/lib/RelayFetchMode.js +0 -17
  57. package/lib/RelayFragmentPointer.js +0 -161
  58. package/lib/RelayFragmentReference.js +0 -249
  59. package/lib/RelayFragmentSpecResolver.js +0 -305
  60. package/lib/RelayGraphQLMutation.js +0 -288
  61. package/lib/RelayGraphQLTag.js +0 -42
  62. package/lib/RelayInternalTypes.js +0 -15
  63. package/lib/RelayInternals.js +0 -24
  64. package/lib/RelayMetaRoute.js +0 -35
  65. package/lib/RelayMockRenderer.js +0 -71
  66. package/lib/RelayModern-flowtest.js +0 -342
  67. package/lib/RelayModernFlowtest_badref.graphql.js +0 -10
  68. package/lib/RelayModernFlowtest_notref.graphql.js +0 -10
  69. package/lib/RelayModernFlowtest_user.graphql.js +0 -10
  70. package/lib/RelayModernFlowtest_users.graphql.js +0 -10
  71. package/lib/RelayMutation.js +0 -322
  72. package/lib/RelayMutationDebugPrinter.js +0 -47
  73. package/lib/RelayMutationQuery.js +0 -558
  74. package/lib/RelayMutationQueue.js +0 -530
  75. package/lib/RelayMutationRequest.js +0 -103
  76. package/lib/RelayMutationTracker.js +0 -113
  77. package/lib/RelayMutationTransaction.js +0 -92
  78. package/lib/RelayMutationTransactionStatus.js +0 -55
  79. package/lib/RelayNetworkDebug.js +0 -131
  80. package/lib/RelayNetworkLayer.js +0 -185
  81. package/lib/RelayNodeInterface.js +0 -104
  82. package/lib/RelayOperationDescriptor.js +0 -40
  83. package/lib/RelayOptimisticMutationUtils.js +0 -208
  84. package/lib/RelayPendingQueryTracker.js +0 -166
  85. package/lib/RelayPropTypes.js +0 -57
  86. package/lib/RelayPublic.js +0 -44
  87. package/lib/RelayQL.js +0 -128
  88. package/lib/RelayQuery.js +0 -1584
  89. package/lib/RelayQueryCaching.js +0 -33
  90. package/lib/RelayQueryConfig.js +0 -58
  91. package/lib/RelayQueryPath.js +0 -204
  92. package/lib/RelayQueryRequest.js +0 -103
  93. package/lib/RelayQueryTracker.js +0 -86
  94. package/lib/RelayQueryTransform.js +0 -91
  95. package/lib/RelayQueryVisitor.js +0 -93
  96. package/lib/RelayQueryWriter.js +0 -573
  97. package/lib/RelayReadyState.js +0 -83
  98. package/lib/RelayReadyStateRenderer.js +0 -145
  99. package/lib/RelayRecord.js +0 -75
  100. package/lib/RelayRecordStatusMap.js +0 -57
  101. package/lib/RelayRecordStore.js +0 -433
  102. package/lib/RelayRecordWriter.js +0 -601
  103. package/lib/RelayRefQueryDescriptor.js +0 -27
  104. package/lib/RelayRenderer.js +0 -268
  105. package/lib/RelayRootContainer.js +0 -125
  106. package/lib/RelayRoute.js +0 -92
  107. package/lib/RelayRouteFragment.js +0 -44
  108. package/lib/RelaySelector.js +0 -201
  109. package/lib/RelayShallowMock.js +0 -69
  110. package/lib/RelayStaticContainer.js +0 -38
  111. package/lib/RelayStore.js +0 -12
  112. package/lib/RelayStoreConstants.js +0 -20
  113. package/lib/RelayStoreData.js +0 -660
  114. package/lib/RelayTaskQueue.js +0 -189
  115. package/lib/RelayTypes.js +0 -13
  116. package/lib/RelayVariable.js +0 -32
  117. package/lib/RelayVariables.js +0 -92
  118. package/lib/buildRQL.js +0 -160
  119. package/lib/callsFromGraphQL.js +0 -74
  120. package/lib/callsToGraphQL.js +0 -34
  121. package/lib/checkRelayQueryData.js +0 -250
  122. package/lib/createRelayQuery.js +0 -17
  123. package/lib/dedent.js +0 -49
  124. package/lib/diffRelayQuery.js +0 -757
  125. package/lib/directivesToGraphQL.js +0 -39
  126. package/lib/filterRelayQuery.js +0 -29
  127. package/lib/findRelayQueryLeaves.js +0 -293
  128. package/lib/flattenRelayQuery.js +0 -121
  129. package/lib/flattenSplitRelayQueries.js +0 -44
  130. package/lib/forEachRootCallArg.js +0 -40
  131. package/lib/fromGraphQL.js +0 -48
  132. package/lib/generateClientEdgeID.js +0 -22
  133. package/lib/generateClientID.js +0 -27
  134. package/lib/generateConcreteFragmentID.js +0 -30
  135. package/lib/generateForceIndex.js +0 -24
  136. package/lib/generateRQLFieldAlias.js +0 -39
  137. package/lib/getRangeBehavior.js +0 -58
  138. package/lib/getRelayQueries.js +0 -83
  139. package/lib/intersectRelayQuery.js +0 -149
  140. package/lib/isClassicRelayContext.js +0 -20
  141. package/lib/isClassicRelayEnvironment.js +0 -20
  142. package/lib/isCompatibleRelayFragmentType.js +0 -27
  143. package/lib/isRelayContainer.js +0 -16
  144. package/lib/makeLegacyStringishComponentRef.js +0 -52
  145. package/lib/printRelayOSSQuery.js +0 -329
  146. package/lib/printRelayQuery.js +0 -26
  147. package/lib/rangeOperationToMetadataKey.js +0 -25
  148. package/lib/readRelayQueryData.js +0 -551
  149. package/lib/relayUnstableBatchedUpdates.js +0 -12
  150. package/lib/relayUnstableBatchedUpdates.native.js +0 -11
  151. package/lib/restoreRelayCacheData.js +0 -188
  152. package/lib/serializeRelayQueryCall.js +0 -42
  153. package/lib/splitDeferredRelayQueries.js +0 -298
  154. package/lib/stableStringify.js +0 -85
  155. package/lib/testEditDistance.js +0 -112
  156. package/lib/throwFailedPromise.js +0 -26
  157. package/lib/toGraphQL.js +0 -94
  158. package/lib/transformRelayQueryPayload.js +0 -145
  159. package/lib/validateMutationConfig.js +0 -117
  160. package/lib/validateRelayReadQuery.js +0 -112
  161. package/lib/writeRelayQueryPayload.js +0 -44
  162. package/lib/writeRelayUpdatePayload.js +0 -513
  163. package/react-relay-classic.js +0 -4
  164. package/react-relay-classic.min.js +0 -9
  165. package/react-relay-compat.js +0 -4
  166. package/react-relay-compat.min.js +0 -9
@@ -1,4 +0,0 @@
1
- /**
2
- * Relay v2.0.0-rc.2
3
- */
4
- !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("fbjs/lib/invariant"),require("relay-runtime"),require("fbjs/lib/warning"),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")):"function"==typeof define&&define.amd?define(["fbjs/lib/invariant","relay-runtime","fbjs/lib/warning","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"],t):"object"==typeof exports?exports.ReactRelayClassic=t(require("fbjs/lib/invariant"),require("relay-runtime"),require("fbjs/lib/warning"),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")):e.ReactRelayClassic=t(e["fbjs/lib/invariant"],e["relay-runtime"],e["fbjs/lib/warning"],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"])}(window,function(e,t,r,n,a,i,o,s,u,l,c,d,f,h,g,p,_,y,m,v,b,D,R,I,C,E,F){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var a=t[n]={i:n,l:!1,exports:{}};return e[n].call(a.exports,a,a.exports,r),a.l=!0,a.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 a in e)r.d(n,a,function(t){return e[t]}.bind(null,a));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=101)}([function(t,r){t.exports=e},function(e,r){e.exports=t},function(e,t,r){"use strict";var n=r(5)(r(9)),a=r(5)(r(13)),i=0,o={isDeferred:!1,isContainerFragment:!1,isTypeConditional:!1},s=[],u=[];Object.freeze(u),Object.freeze(s);var l=function(){function e(e,t,n){"RelayQueryNode"===this.constructor.name&&r(0)(!1,"RelayQueryNode: Abstract class cannot be instantiated."),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,a){var i=y(t,R(n,a),a);return i instanceof e||r(0)(!1,"RelayQueryNode.create(): Expected a GraphQL fragment, mutation, or query."),i};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,"RelayQueryNode: Cannot add children to field `%s` because it does not support sub-selections (sub-fields).",this instanceof _?this.getSchemaName():null),this;var n=this.getChildren(),a=v(n,t);if(!a.length)return null;if(a===n)return this;var i=e.create(this.__concreteNode__,r(10).get(this.__root__.routeName),this.__variables__);return i.__children__=a,i.__calls__=this.__calls__,i.__serializationKey__=this.__serializationKey__,i.__storageKey__=this.__storageKey__,i},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=y(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(28)(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 a=r[n];a instanceof _&&(t[a.getStorageKey()]=a)}this.__fieldMap__=t}return t[e]},t.getType=function(){return this.__concreteNode__.type},t.getRoute=function(){return r(10).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(56)(this.__root__.variables,e.__root__.variables)&&r(56)(this.__variables__,e.__variables__)},t.createNode=function(t){return e.create(t,r(10).get(this.__root__.routeName),this.__variables__)},t.getConcreteQueryNode=function(){return this.__concreteNode__},e}(),c=function(e){function t(t,r,n){var a;return(a=e.call(this,t,r,n)||this).__batchCall__=void 0,a.__id__=void 0,a.__identifyingArg__=void 0,a.__storageKey__=void 0,a.getID(),a}(0,a.default)(t,e),t.build=function(e,n,a,i,o,s,u){var l,c=i?i.filter(function(e){return!!e}):[],d=r(6).getBatchCallVariable(a);d?l=d:Array.isArray(a)?l=a.map(r(6).createCallValue):a&&(l=r(6).createCallValue(a));var f={},h=new t(r(6).createQuery({fieldName:n,identifyingArgValue:l,metadata:o,name:e,type:s}),R(r(10).get(u||"$RelayQuery"),f),f);return h.__children__=c,h},t.create=function(e,n,a){var i=r(6).getQuery(e);return i||r(0)(!1,"RelayQueryRoot.create(): Expected a GraphQL `query { ... }`, got: %s",e),new t(i,R(n,a),a)};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"+i++,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(28)(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=_.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=l.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(17)(this.getBatchCall(),n.getBatchCall())&&(!(this.getFieldName()!==n.getFieldName()||!D(this.getCallsWithValues(),n.getCallsWithValues()))&&e.prototype.equals.call(this,n)))},t}(l),d=function(e){function t(t,n,a){var i;return t&&"query"===t.operation||r(0)(!1,"RelayQueryRoot.create(): Expected a value created with graphql`query { ... }` (using the `graphql` tag), got: %s",t),(i=e.call(this,t.node,n,a)||this).__id__=void 0,i.getID(),i}(0,a.default)(t,e),t.create=function(e,n,a){var i=r(6).getOperationDefinition(e);return i||r(0)(!1,"RelayQueryRoot.create(): Expected a value created with graphql`query { ... }` (using the `graphql` tag), got: %s",e),new t(i,R(n,a),a)};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"+i++,this.__id__=e),e},n.equals=function(r){return this===r||r instanceof t&&e.prototype.equals.call(this,r)},t}(l),f=function(e){function t(t,n,a){var i;return"RelayQueryOperation"===(i=e.call(this,t,n,a)||this).constructor.name&&r(0)(!1,"RelayQueryOperation: Abstract class cannot be instantiated."),i}(0,a.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,"RelayQuery: Expected operation `%s` to be annotated with the type of its argument. Either the babel transform was configured incorrectly, or the schema failed to define an argument for this mutation.",this.getCall().name),e},n.getCall=function(){var e=this.__calls__;if(!e){var t=this.__concreteNode__.calls;e=t?r(28)(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,"RelayQuery: Expected mutation to have a single argument."),this.__callVariableName__=t.callVariableName}return this.__callVariableName__},n.isAbstract=function(){return!1},t}(l),h=function(e){function t(){return e.apply(this,arguments)||this}return(0,a.default)(t,e),t.build=function(e,n,a,i,o,s,u){var l=o?o.filter(function(e){return!!e}):[],c=r(6).createMutation({calls:[r(6).createCall(a,r(6).createCallVariable("input"))],metadata:s,name:e,responseType:n}),d={input:i||""},f=new t(c,R(r(10).get(u||"$RelayQuery"),d),d);return f.__children__=l,f},t.prototype.equals=function(n){return this===n||n instanceof t&&(!!r(17)(this.getResponseType(),n.getResponseType())&&(!!r(17)(this.getCall(),n.getCall())&&e.prototype.equals.call(this,n)))},t}(f),g=function(e){function t(){return e.apply(this,arguments)||this}(0,a.default)(t,e),t.create=function(e,n,a){return r(6).getSubscription(e)||r(0)(!1,"RelayQuerySubscription.create(): Expected a GraphQL `subscription { ... }`, got: %s",e),new t(e,R(n,a),a)};var n=t.prototype;return n.getPublishedPayloadType=function(){return this.getResponseType()},n.equals=function(n){return this===n||n instanceof t&&(!!r(17)(this.getPublishedPayloadType(),n.getPublishedPayloadType())&&(!!r(17)(this.getCall(),n.getCall())&&e.prototype.equals.call(this,n)))},t}(f),p=function(e){function t(t,r,n,a){var i;return(i=e.call(this,t,r,n)||this).__compositeHash__=null,i.__metadata__=a||o,i.__sourceCompositeHash__=null,i}(0,a.default)(t,e),t.build=function(e,n,a,i,o){var s=a?a.filter(function(e){return!!e}):[],u={},l=new t(r(6).createFragment({name:e,type:n,metadata:i}),R(r(10).get(o||"$RelayQuery"),u),u,{isDeferred:!(!i||!i.isDeferred),isContainerFragment:!(!i||!i.isContainerFragment),isTypeConditional:!(!i||!i.isTypeConditional)});return l.__children__=s,l},t.create=function(e,t,n,a){var i=r(6).getFragment(e);return i||r(0)(!1,"RelayQueryFragment.create(): Expected a GraphQL `fragment { ... }`, got: %s",e),m(i,R(t,n),n,a||o)};var i=t.prototype;return i.canHaveSubselections=function(){return!0},i.getDebugName=function(){return this.__concreteNode__.name},i.getConcreteFragmentID=function(){return this.__concreteNode__.id},i.getCompositeHash=function(){var e=this.__compositeHash__;return e||(e=r(72)(this.getConcreteFragmentID()+"."+this.__root__.routeName+"."+r(25)(this.__variables__)),this.__compositeHash__=e),e},i.getSourceCompositeHash=function(){return this.__sourceCompositeHash__},i.isAbstract=function(){return!!this.__concreteNode__.metadata.isAbstract},i.isDeferred=function(){return this.__metadata__.isDeferred},i.isPattern=function(){return!!this.__concreteNode__.metadata.pattern},i.isPlural=function(){var e=this.__concreteNode__.metadata;return Boolean(e.isPlural||e.plural)},i.isTrackingEnabled=function(){return!!this.__concreteNode__.metadata.isTrackingEnabled},i.cloneAsPlainFragment=function(){return m(this.__concreteNode__,this.__root__,this.__variables__,o)},i.isContainerFragment=function(){return this.__metadata__.isContainerFragment},i.isTypeConditional=function(){return this.__metadata__.isTypeConditional},i.hasDeferredDescendant=function(){return this.isDeferred()||e.prototype.hasDeferredDescendant.call(this)},i.clone=function(a){var i=e.prototype.clone.call(this,a);return i!==this&&i instanceof t&&(i.__concreteNode__=(0,n.default)({},i.__concreteNode__,{id:r(55)()}),i.__metadata__=(0,n.default)({},this.__metadata__),i.__sourceCompositeHash__=this.getCompositeHash()),i},i.equals=function(r){return this===r||r instanceof t&&(this.getType()===r.getType()&&e.prototype.equals.call(this,r))},t}(l),_=function(e){function t(t,r,n){var a;return(a=e.call(this,t,r,n)||this).__debugName__=void 0,a.__isRefQueryDependency__=!1,a.__rangeBehaviorCalls__=void 0,a.__shallowHash__=void 0,a}(0,a.default)(t,e),t.create=function(e,n,a){var i=r(6).getField(e);return i||r(0)(!1,"RelayQueryField.create(): Expected a GraphQL field, got: %s",e),new t(i,R(n,a),a)},t.build=function(e){var n=e.alias,a=e.directives,i=e.calls,o=e.children,s=e.fieldName,u=e.metadata,l=e.routeName,c=e.type,d=o?o.filter(function(e){return!!e}):[],f={},h=new t(r(6).createField({alias:n,calls:i?r(74)(i):null,directives:a?r(102)(a):null,fieldName:s,metadata:u,type:c}),R(r(10).get(l||"$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(29)(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,"RelayQueryField: Range behavior keys are associated exclusively with connection fields. `getRangeBehaviorCalls()` was called on the non-connection field `%s`.",this.getSchemaName());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 a=this.__concreteNode__.alias;null!=a&&(t+="."+a),t+=n.map(r(29)).sort().join("")}e=r(72)(t),this.__serializationKey__=e}return e},n.getShallowHash=function(){var e=this.__shallowHash__;return e||(this.__shallowHash__=e=this.getSchemaName()+b(this.getCallsWithValues())),e},n.getStorageKey=function(){var e=this,t=this.__storageKey__;return t||(this.__storageKey__=t=this.getSchemaName()+b(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(28)(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()||!D(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,"RelayQueryNode: Cannot add children to field `%s` because it does not support sub-selections (sub-fields).",this.getSchemaName()),r(17)(this.getCallsWithValues(),n))return this.clone(e);var a=v(this.getChildren(),e);if(!a.length)return null;var i=new t(this.__concreteNode__,this.__root__,this.__variables__);return i.__children__=a,i.__calls__=n,i},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}(l);function y(e,t,a){("object"!=typeof e||null===e)&&r(0)(!1,"RelayQueryNode: Expected a GraphQL object created with `Relay.QL`, got`%s`.",e);var i=e.kind,o=l;if("Field"===i)o=_;else if("Fragment"===i){var s=r(26)(r(6).getFragment(e)),u=s.metadata.hoistedRootArgs;if(u){var f=t.variables,v=(0,n.default)({},a);u.forEach(function(e){var t=f[e];void 0!==t||a.hasOwnProperty(e)||r(0)(!1,"RelayQueryNode: Expected root argument `%s` on unmasked fragment `%s` to be provided in the query variables. If the route is still using ` RelayClassic.QL`, please make sure that the argument is defined in the injected Relay constants module or add the argument in the `prepareParams` for that route.",e,s.name),void 0!==t&&(v[e]=t)}),a=v}o=p}else{if("FragmentSpread"===i){var b=r(26)(r(6).getFragmentSpread(e)),D=t.variables,R=r(37).getFragmentSpreadArguments(b.fragment.node.name,b.args,a,D),I=r(37).getFragmentVariables(b.fragment,D,R);return m(b.fragment.node,t,I,{isDeferred:!1,isContainerFragment:!0,isTypeConditional:!1})}if("OperationDefinition"===i)o=d;else if("Query"===i)o=c;else if("Mutation"===i)o=h;else if("Subscription"===i)o=g;else{if(e instanceof r(75)){var C=r(10).get(t.routeName),E=e.getFragmentForRoute(C);return Array.isArray(E)?E.map(function(e){return y(e,t,a)}):E?y(E,t,a):null}if(e instanceof r(39)){var F=e.getFragment(a),N=r(10).get(t.routeName),S=e.getVariables(N,a);return F?m(F,t,S,{isDeferred:e.isDeferred(),isContainerFragment:e.isContainerFragment(),isTypeConditional:e.isTypeConditional()}):null}}}return new o(e,t,a)}function m(e,t,n,a){var i=t.routeName+":"+r(25)(t.variables)+":"+r(25)(n)+":"+r(25)(a),o=e.__cachedFragment__,s=e.__cacheKey__;return o&&s===i||(o=new p(e,t,n,a),e.__cachedFragment__=o,e.__cacheKey__=i),o}function v(e,t){for(var r=[],n=!0,a=0,i=0;i<t.length;i++){var o=t[i];o&&(r.push(o),n=n&&o===e[a++])}return n&&r.length===e.length?e:r}function b(e){if(e.length){var t={};return e.forEach(function(e){t[e.name]=e.value}),r(25)(t)}return""}function D(e,t){return e.length===t.length&&e.every(function(e,n){var a=e.name,i=e.value,o=t[n],s=o.name,u=o.value;return a===s&&(i instanceof r(104)?i.equals(u):r(17)(i,u))})}function R(e,t){return{routeName:e.name,variables:t}}r(1).RelayProfiler.instrumentMethods(l.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(_.prototype,{getStorageKey:"@RelayQueryField.prototype.getStorageKey",getSerializationKey:"@RelayQueryField.prototype.getSerializationKey"}),e.exports={Field:_,Fragment:p,Mutation:h,Node:l,Operation:f,OSSQuery:d,Root:c,Subscription:g}},function(e,t,r){"use strict";var n=function(e,t){var n=[];if(e.getBatchCall())i(e,t).forEach(function(t){if("object"==typeof t&&t){var i=t[a.ID];"string"!=typeof i&&r(0)(!1,"RelayNodeInterface.getResultsFromPayload(): Unable to write result with no `%s` field for query, `%s`.",a.ID,e.getName()),n.push({result:t,rootCallInfo:{storageKey:a.NODE,identifyingArgKey:i,identifyingArgValue:i}})}});else{var o=i(e,t),s=0,u=e.getStorageKey();r(24)(e,function(e){var t=e.identifyingArgKey,r=e.identifyingArgValue,a=o[s++];n.push({result:a,rootCallInfo:{storageKey:u,identifyingArgKey:t,identifyingArgValue:r}})})}return n},a={ANY_TYPE:"__any",ID:"id",ID_TYPE:"ID!",NODE:"node",NODE_TYPE:"Node",NODES:"nodes",TYPENAME:"__typename",isNodeRootCall:function(e){return e===a.NODE||e===a.NODES},getResultsFromPayload:function(e,t){return n(e,t)},injectGetResultsFromPayloadImpl:function(e){n=e}};function i(e,t){var n=e.getFieldName(),a=e.getIdentifyingArg(),i=a&&a.value||null,o=t[n];return e.getBatchCall()||(Array.isArray(i)?(Array.isArray(o)||r(0)(!1,"RelayNodeInterface: Expected payload for root field `%s` to be an array with %s results, instead received a single non-array result.",n,i.length),o.length!==i.length&&r(0)(!1,"RelayNodeInterface: Expected payload for root field `%s` to be an array with %s results, instead received an array with %s results.",n,i.length,o.length)):Array.isArray(o)&&r(0)(!1,"RelayNodeInterface: Expected payload for root field `%s` to be a single non-array result, instead received an array with %s results.",n,o.length)),Array.isArray(o)?o:[o||null]}e.exports=a},function(e,t,r){"use strict";var n=r(5)(r(9)),a={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__"},i={};Object.keys(a).forEach(function(e){i[a[e]]=!0});var o={MetadataKey:a,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 i.hasOwnProperty(e)}};e.exports=o},function(e,t){e.exports=function(e){return e&&e.__esModule?e:{default:e}}},function(e,t,r){"use strict";var n=[],a=[],i=[],o={};Object.freeze(n),Object.freeze(a),Object.freeze(i),Object.freeze(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||a,directives:e.directives||i,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||a,directives:e.directives||i,id:r(55)(),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||a,directives:e.directives||i,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(3).isNodeRootCall(e.fieldName)&&(u=r(3).ID),null!=u&&(r(7)(null!=e.identifyingArgValue,"QueryBuilder.createQuery(): An argument value may be required for query `%s(%s: ???)`.",e.fieldName,u),n=[s.createCall(u,e.identifyingArgValue,t.identifyingArgType)]),{calls:n,children:e.children||a,directives:e.directives||i,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||a,directives:e.directives||i,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){e.exports=r},function(e,t,r){"use strict";var n=r(2).Field.build({fieldName:r(3).ID,type:"String"}),a=r(2).Field.build({fieldName:r(3).TYPENAME,type:"String"}),i={type:"rootRecord"},o={getRootRecordPath:function(){return i},createForID:function(e,t,n){return r(4).isClientID(e)&&r(0)(!1,"RelayQueryPath.createForID: Expected dataID to be a server id, got `%s`.",e),{dataID:e,name:t,routeName:n||"$RelayQuery",type:"node"}},create:function(e){if(e.getFieldName()===r(3).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(4).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,"RelayQueryPath: Cannot get the parent of a root path."),e.parent},getName:function(e){for(;"client"===e.type;)e=e.parent;return e===i?"RootRecordPath":"root"===e.type?e.root.getName():"node"===e.type?e.name:void r(0)(!1,"RelayQueryPath.getName(): Invalid path `%s`.",e)},getRouteName:function(e){for(;"client"===e.type;)e=e.parent;return e===i?"$RelayQueryPath":"root"===e.type?e.root.getRoute().name:"node"===e.type?e.routeName:void r(0)(!1,"RelayQueryPath.getRouteName(): Invalid path `%s`.",e)},getQuery:function(e,t,i){for(var s,u=i,l=r(1).ConnectionInterface.get().EDGES;"client"===t.type;){var c=t.node;if(c instanceof r(2).Field){var d=c.getSchemaName();r(7)(!s||s!==l||!c.isConnection(),"RelayQueryPath.getQuery(): Cannot generate accurate query for path with connection `%s`. Consider adding an `id` field to each `node` to make them refetchable.",d),s=d}var f=c instanceof r(2).Field?c.getInferredPrimaryKey():r(3).ID;u=f?c.clone([u,c.getFieldByStorageKey(f),c.getFieldByStorageKey(r(3).TYPENAME)]):c.clone([u]),t=t.parent}"rootRecord"===t.type&&r(0)(!1,"RelayQueryPath: Attempted to construct a classic query, but the record was initially fetched with new Relay APIs. Ensure that deprecated components such as RelayContainer are not nested in new APIs such as QueryRenderer or FragmentContainer.");var h="root"===t.type?t.root:function(e){return r(2).Root.build(e.name,r(3).NODE,e.dataID,[n,a],{identifyingArgName:r(3).ID,identifyingArgType:r(3).ID_TYPE,isAbstract:!0,isDeferred:!1,isPlural:!1},r(3).NODE_TYPE,e.routeName)}(t),g=function(e,t,n){var a=[];if(n.forEach(function(e){e&&a.push(e)}),!t.isAbstract())return a;var i=[];r(24)(t,function(e){var t=e.identifyingArgKey;i.push(t)});var o=i[0],s=e.getDataID(t.getStorageKey(),o),u=s&&e.getType(s);if(null!=u)return[r(2).Fragment.build(t.getName(),u,a)];var l=null!=s?e.getRecordState(s):r(14).UNKNOWN;return r(7)(!1,"RelayQueryPath: No typename found for %s record `%s`. Generating a possibly invalid query.",l.toLowerCase(),s),a}(e,h,[u,h.getFieldByStorageKey(r(3).ID),h.getFieldByStorageKey(r(3).TYPENAME)]),p=h.cloneWithRoute(g,i.getRoute());return p instanceof r(2).Root||r(0)(!1,"RelayQueryPath: Expected the root of path `%s` to be a query.",o.getName(t)),p}};e.exports=o},function(e,t,r){var n=r(19);e.exports=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},a=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),a.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 a[t]||(a[t]=new e(t))},e}(),a={};e.exports=n},function(e,t){e.exports=n},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=a},function(e,t){e.exports=i},function(e,t){e.exports=o},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,"RelayFragmentPointer: Expected record to contain a fragment map, got `%s` for record `%s`.",n,e.__dataID__);var a=t.getConcreteFragmentID(),i=n[a];null==i&&(i=n[a]=[]),Array.isArray(i)||r(0)(!1,"RelayFragmentPointer: Expected record to contain a fragment/variable map, got `%s` for record `%s`.",i,e.__dataID__),i.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 a=n.getFragmentVariables(e,t);return null!=a&&a.some(function(e){return r(17)(e,t.getVariables())})},getVariablesForID:function(e,t){var n=e.__fragments__;if("object"==typeof n&&null!=n){var a=n[t];if(a)return Array.isArray(a)&&1===a.length||r(0)(!1,"RelayFragmentPointer: Expected an array with at most one set of variables per concrete fragment, got %s.",a),a[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 a=r(4).create(e);return n.addFragment(a,t),a},createForRoot:function(e,t){var a=function(e){var t,n=e.getBatchCall();n&&r(0)(!1,"Queries supplied at the root cannot have batch call variables. Query `%s` has a batch call variable, `%s`.",e.getName(),n.refParamName);return e.getChildren().forEach(function(n){n instanceof r(2).Fragment?(t&&r(0)(!1,"Queries supplied at the root should contain exactly one fragment (e.g. `${Component.getFragment('...')}`). Query `%s` contains more than one fragment.",e.getName()),t=n):n instanceof r(2).Field&&(n.isGenerated()||r(0)(!1,"Queries supplied at the root should contain exactly one fragment and no fields. Query `%s` contains a field, `%s`. If you need to fetch fields, declare them in a Relay container.",e.getName(),n.getSchemaName()))}),t}(t);if(!a)return null;var i=t.getStorageKey(),o=[];r(24)(t,function(t){var r=t.identifyingArgKey,s=e.getDataID(i,r);null==s?o.push(null):o.push(n.create(s,a))});var s=t.getIdentifyingArg(),u=s&&s.value||null;return Array.isArray(u)?o:o[0]}};e.exports=n},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(71))},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 a=e.getChildren(),i=0;i<a.length;i++)r.call(n,a[i],i,a)},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(9));function a(e,t,a){("object"!=typeof a||null===a||Array.isArray(a))&&r(0)(!1,"RelaySelector: Expected value for fragment `%s` to be an object, got `%s`.",t.node.name,JSON.stringify(a));var i=r(4).getDataIDForObject(a),o=r(18).getVariablesForID(a,t.node.id);return null!=i&&null!=o?{dataID:i,node:t.node,variables:(0,n.default)({},e,o)}:(r(7)(!1,"RelaySelector: Expected object to contain data for fragment `%s`, got `%s`. Make sure that the parent operation/fragment included fragment `...%s`.",t.node.name,JSON.stringify(a),t.node.name),null)}function i(e,t,r){var n=null;return r.forEach(function(r){var i=null!=r?a(e,t,r):null;null!=i&&(n=n||[]).push(i)}),n}function o(e,t){("object"!=typeof t||null===t||Array.isArray(t))&&r(0)(!1,"RelaySelector: Expected value for fragment `%s` to be an object, got `%s`.",e.node.name,JSON.stringify(t));var n=r(4).getDataIDForObject(t);return null!=n?n:(r(7)(!1,"RelaySelector: Expected object to contain data for fragment `%s`, got `%s`. Make sure that the parent operation/fragment included fragment `...%s`.",e.node.name,JSON.stringify(t),e.node.name),null)}function s(e,t,r){var n=a(e,t,r);return n?n.variables:null}e.exports={areEqualSelectors:function(e,t){return e.dataID===t.dataID&&e.node===t.node&&r(17)(e.variables,t.variables)},getDataIDsFromObject:function(e,t){var n={};return r(11)(e,function(e,a){var i=t[a];null==i?n[a]=i:e.node.metadata&&!0===e.node.metadata.plural?(Array.isArray(i)||r(0)(!1,"RelaySelector: Expected value for key `%s` to be an array, got `%s`. Remove `@relay(plural: true)` from fragment `%s` to allow the prop to be an object.",a,JSON.stringify(i),e.node.name),n[a]=function(e,t){var r;return t.forEach(function(t){var n=null!=t?o(e,t):null;null!=n&&(r=r||[]).push(n)}),r||null}(e,i)):(Array.isArray(i)&&r(0)(!1,"RelaySelector: Expected value for key `%s` to be an object, got `%s`. Add `@relay(plural: true)` to fragment `%s` to allow the prop to be an array of items.",a,JSON.stringify(i),e.node.name),n[a]=o(e,i))}),n},getSelector:a,getSelectorList:i,getSelectorsFromObject:function(e,t,n){var o={};return r(11)(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,"RelaySelector: Expected value for key `%s` to be an array, got `%s`. Remove `@relay(plural: true)` from fragment `%s` to allow the prop to be an object.",s,JSON.stringify(u),t.node.name),o[s]=i(e,t,u)):(Array.isArray(u)&&r(0)(!1,"RelaySelector: Expected value for key `%s` to be an object, got `%s`. Add `@relay(plural: true)` to fragment `%s` to allow the prop to be an array of items.",s,JSON.stringify(u),t.node.name),o[s]=a(e,t,u))}),o},getVariablesFromObject:function(e,t,n){var a={};return r(11)(t,function(t,i){var o=n[i];if(null!=o)if(t.node.metadata&&!0===t.node.metadata.plural)Array.isArray(o)||r(0)(!1,"RelaySelector: Expected value for key `%s` to be an array, got `%s`. Remove `@relay(plural: true)` from fragment `%s` to allow the prop to be an object.",i,JSON.stringify(o),t.node.name),o.forEach(function(r){if(null!=r){var n=s(e,t,r);n&&Object.assign(a,n)}});else{Array.isArray(o)&&r(0)(!1,"RelaySelector: Expected value for key `%s` to be an object, got `%s`. Add `@relay(plural: true)` to fragment `%s` to allow the prop to be an array of items.",i,JSON.stringify(o),t.node.name);var u=s(e,t,o);u&&Object.assign(a,u)}}),a}}},function(e,t,r){"use strict";e.exports=function(e,t){e.getBatchCall()&&r(0)(!1,"forEachRootCallArg(): Cannot iterate over batch call variables.");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(25)(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),a=n(t);if(r||a){var i=Object.keys(t);if(i.length){var o=[];i.sort();for(var s=0;s<i.length;s++){var u=i[s],l=t[u];l=n(l)||Array.isArray(l)?e(l):JSON.stringify(l),o.push(u+":"+l)}return r?"["+o.join(",")+"]":"{"+o.join(",")+"}"}}return JSON.stringify(t)}},function(e,t){e.exports=s},function(e,t,r){var n=r(113),a=r(114),i=r(115);e.exports=function(e){return n(e)||a(e)||i()}},function(e,t,r){"use strict";function n(e,t){var n;if("CallValue"===e.kind)n=e.callValue;else{var a=e.callVariableName;t.hasOwnProperty(a)||r(0)(!1,"callsFromGraphQL(): Expected a declared value for variable, `$%s`.",a),n=t[a]}var i=typeof n;return null!=n&&"boolean"!==i&&"number"!==i&&"string"!==i&&"object"!==i&&r(0)(!1,"callsFromGraphQL(): Expected argument value `%s` to either be null or a boolean, number, string, or array/object.",JSON.stringify(n)),n}e.exports=function(e,t){for(var r=e,a=[],i=0;i<r.length;i++){var o=r[i],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,l={name:o.name,value:s};u&&u.type&&(l.type=u.type),a.push(l)}return a}},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,a=e.value;return t=Array.isArray(a)?r(103)(a).map(function(e){return n(e)}).join(","):n(a),"."+e.name+"("+t+")"}},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:Object.freeze(this._created),updated:Object.freeze(this._updated)}},e}();e.exports=n},function(e,t,r){"use strict";var n=1,a="client:"+r(73)(""+r(131)());e.exports=function(){return a+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 a=0,i=[],o=[];r<=this._maxIndex&&a<e;){var s=this._indexToMetadataMap[r];s.deleted||(i.push(s.edgeID),o.push(s.cursor),a++),r++}return{edgeIDs:i,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 a=0,i=[],o=[];r>=this._minIndex&&a<e;){var s=this._indexToMetadataMap[r];s.deleted||(i.push(s.edgeID),o.push(s.cursor),a++),r--}return{edgeIDs:i.reverse(),cursors:o.reverse()}},t._addEdgeAtIndex=function(e,t){var n=r(4).getDataIDForObject(e),a=e.cursor,i=this._getIndexForID(n);if(void 0!==i&&this._getEdgeAtIndex(i))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:a,deleted:!1},this._idToIndicesMap[n]=this._idToIndicesMap[n]||[],this._idToIndicesMap[n].unshift(t),this._count++,a&&(this._cursorToIndexMap[a]=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,a=0;a<e.length;a++){var i=e[a];this._addEdgeAtIndex(i,n+a)}}}},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,a=0;a<e.length;a++){var i=e[e.length-a-1];this._addEdgeAtIndex(i,n-a)}}}},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(),a=e._indexToMetadataMap,i=e._minIndex;i<=e._maxIndex;i++){var o=void 0;this.getLength()?o=this._maxIndex+1:(o=0,this._minIndex=0),this._maxIndex=o;var s=a[i],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 l=this._getIndexForCursor(s.cursor);if(void 0!==l){if(this._indexToMetadataMap[l].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],a=t[2],i=t[3],o=t[4],s=t[5],u=new e;return u._indexToMetadataMap=r,u._idToIndicesMap=n,u._cursorToIndexMap=a,u._minIndex=i,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],a=n.deleted,i=n.edgeID;!e&&a||t.push(i)}return t},e}();e.exports=n},function(e,t){e.exports=u},function(e,t,r){"use strict";var n={Container:function(e,t,n){var a=e[t];return null==a?new Error(r(34)("Required prop `%s` was not specified in `%s`.",t,n)):r(92)(a)?null:new Error(r(34)("Invalid prop `%s` supplied to `%s`, expected a RelayContainer.",t,n))},Environment:function(e,t,n){var a=e[t];return r(66)(a)&&r(93)(a)?null:new Error(r(34)("Invalid prop/context `%s` supplied to `%s`, expected `%s` to be an object conforming to the `RelayEnvironment` interface.",t,n,a))},QueryConfig:r(16).shape({name:r(16).string.isRequired,params:r(16).object.isRequired,queries:r(16).object.isRequired}),ClassicRelay:function(e,t,n){var a=e[t];return r(94).isRelayContext(a)&&r(66)(a.environment)?null:new Error(r(34)("Invalid prop/context `%s` supplied to `%s`, expected `%s` to be an object with a classic `environment` implementation and `variables`.",t,n,a))},Relay:function(e,t,n){var a=e[t];return r(94).isRelayContext(a)?null:new Error(r(34)("Invalid prop/context `%s` supplied to `%s`, expected `%s` to be an object with an `environment` and `variables`.",t,n,a))}};e.exports=n},function(e,t){e.exports=l},function(e,t,r){"use strict";var n=r(5)(r(9));e.exports={getFragmentSpreadArguments:function(e,t,n,a){return r(38)(t,function(t,i){var o=r(6).getCallVariable(t);return o&&(t=n.hasOwnProperty(o.callVariableName)?n[o.callVariableName]:a[o.callVariableName]),void 0===t&&(r(7)(!1,"RelayVariables.getFragmentSpreadArguments(): Variable `%s` is undefined in fragment `%s`.",i,e),t=null),t})},getFragmentVariables:function(e,t,a){var i;return e.argumentDefinitions.forEach(function(o){if(!a.hasOwnProperty(o.name))switch(i=i||(0,n.default)({},a),o.kind){case"LocalArgument":i[o.name]=o.defaultValue;break;case"RootArgument":var s=t[o.name];i[o.name]=void 0!==s?s:null;break;default:r(0)(!1,"RelayVariables: Unexpected node kind `%s` in fragment `%s`.",o.kind,e.node.name)}}),i||a},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(9)),a=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,a){var i=new e(t,r,n,a);return i._isContainerFragment=!0,i};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,"RelayFragmentReference: Invalid value `%s` supplied to `if()`. Expected a variable.",t),this._addCondition({passingValue:!0,variable:t.callVariableName}),this},t.unless=function(e){var t=r(6).getCallVariable(e);return t||r(0)(!1,"RelayFragmentReference: Invalid value `%s` supplied to `unless()`. Expected a variable.",t),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 a=this,i=(0,n.default)({},this._initialVariables),o=this._variableMapping;o&&r(11)(o,function(e,n){var o=r(6).getCallVariable(e);o&&(e=t[o.callVariableName]),void 0===e?r(7)(!1,"RelayFragmentReference: Variable `%s` is undefined in fragment `%s`.",n,a.getFragmentUnconditional().name):i[n]=e});var s=this._prepareVariables;return s&&(i=s(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=a},function(e,t,r){"use strict";e.exports=function(e,t){return t===e.getType()||!t||e.isAbstract()}},function(e,t){e.exports=d},function(e,t,r){"use strict";var n={printOptimisticMutation:function(e,t){console.groupCollapsed&&console.groupEnd&&(n.printMutation(e,"Optimistic"),console.groupCollapsed("Optimistic Response"),console.log(t),console.groupEnd())},printMutation:function(e,t){if(console.groupCollapsed&&console.groupEnd){var n=e?r(46)(e):null;t=t||"Mutation",console.groupCollapsed(t+" Variables"),console.log(n?n.variables:{}),console.groupEnd(),console.groupCollapsed(t+" Query"),console.log(n?n.text:""),console.groupEnd()}}};e.exports=n},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(9));function a(e){r(0)(!1,"RelayQL: Unexpected invocation at runtime. Either the Babel transform was not set up, or it failed to identify this call site. Make sure it is being used verbatim as `Relay.QL`.")}function i(e){e instanceof r(39)||r(6).getFragment(e)||r(6).getFragmentSpread(e)||r(0)(!1,"RelayQL: Invalid fragment composition, use `${Child.getFragment('name')}`.")}Object.assign(a,{__frag:function(e){return"function"==typeof e?new(r(75))(e):(null!=e&&(Array.isArray(e)?e.forEach(i):i(e)),e)},__var:function(e){var t=r(6).getCallVariable(e);return t&&r(0)(!1,"RelayQL: Invalid argument `%s` supplied via template substitution. Instead, use an inline variable (e.g. `comments(count: $count)`).",t.callVariableName),r(6).createCallValue(e)},__id:function(){return r(55)()},__createFragment:function(e,t){return new(r(39))(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,'RelayQL: Expected a graphql literal, got `%s`.\nThe "relay" Babel plugin must enable "compat" mode to be used with "react-relay/compat" or "react-relay/classic".\nSee: https://facebook.github.io/relay/docs/babel-plugin-relay.html',JSON.stringify(e)),t=n(this),e.__classic_node__=t}return t},__getClassicFragment:function(e,t){var a=this.__getClassicNode(e),i=r(6).getFragmentDefinition(a);if(i||r(0)(!1,'RelayQL: Expected a fragment, got `%s`.\nThe "relay" Babel plugin must enable "compat" mode to be used with "react-relay/compat" or "react-relay/classic".\nSee: https://facebook.github.io/relay/docs/babel-plugin-relay.html',a),t){var o=[];i.argumentDefinitions.forEach(function(e){"RootArgument"!==e.kind&&r(0)(!1,"RelayQL: Cannot unmask fragment `%s`. Expected all the arguments are root argument but get `%s`",a.node.name,e.name),o.push(e.name)}),i.node.metadata=(0,n.default)({},a.node.metadata,{hoistedRootArgs:o})}return i},__getClassicOperation:function(e){var t=this.__getClassicNode(e),n=r(6).getOperationDefinition(t);return n||r(0)(!1,'RelayQL: Expected an operation, got `%s`.\nThe "relay" Babel plugin must enable "compat" mode to be used with "react-relay/compat" or "react-relay/classic".\nSee: https://facebook.github.io/relay/docs/babel-plugin-relay.html',t),n}}),e.exports=a},function(e,t,r){"use strict";var n=r(5)(r(13)),a=r(4).MetadataKey.MUTATION_STATUS,i=["__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:{}},a=this._rangeData.parseRangeClientID(t),i=this._recordStore.getRecordState(a?a.dataID:t);if(i===r(14).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 i===r(14).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(),a=n.EDGES,i=n.PAGE_INFO;if(this._handleRangeInfo(e,t),(e.canHaveSubselections()||e.isGenerated())&&l(t),!e.isGenerated()||this._traverseGeneratedFields){var o=t.rangeInfo;o&&e.getSchemaName()===a?this._readEdges(e,o,t):o&&e.getSchemaName()===i?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 a=l(t);r(18).addFragment(a,e)}else r(40)(e,this._recordStore.getType(n))&&this.traverse(e,t)},o._createState=function(e){return this._recordStore.getRecordState(e.storeDataID)===r(14).EXISTENT&&l(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(),a=this._recordStore.getLinkedRecordIDs(t.storeDataID,n);if(a){var i=e.getApplicationName(),o=c(t,i),s=a.map(function(n,a){var i;o instanceof Object&&(i=o[a]);var s=r._createState({componentDataID:null,data:i,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,i,s)}},o._readConnection=function(e,t){var n=e.getApplicationName(),a=e.getStorageKey(),i=e.getCallsWithValues(),o=this._recordStore.getLinkedRecordID(t.storeDataID,a);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,i),l=this._createState({componentDataID:this._getConnectionClientID(e,o),data:c(t,n),isPartial:!1,parent:e,rangeInfo:u&&i.length?u:null,seenDataIDs:t.seenDataIDs,storeDataID:o});this.traverse(e,l),l.isPartial&&(t.isPartial=!0),this._setDataValue(t,n,l.data)}else t.isPartial=!0},o._readEdges=function(e,t,n){var a=this,i=r(1).ConnectionInterface.get().EDGES;t.diffCalls.length&&(n.isPartial=!0);var o=c(n,i);t.requestedEdgeIDs.forEach(function(e){n.seenDataIDs[e]=!0});var s=t.filteredEdges.map(function(t,r){var i;o instanceof Object&&(i=o[r]);var s=a._createState({componentDataID:null,data:i,isPartial:!1,parent:e,rangeInfo:null,seenDataIDs:n.seenDataIDs,storeDataID:t.edgeID});return a.traverse(e,s),s.isPartial&&(n.isPartial=!0),s.data});this._setDataValue(n,i,s)},o._readPageInfo=function(e,t,n){var a=this,i=r(1).ConnectionInterface.get().PAGE_INFO,o=t.pageInfo;o||r(0)(!1,"readRelayQueryData(): Missing field, `%s`.",i),t.diffCalls.length&&(n.isPartial=!0);var s,u=o;e.getChildren().forEach(function e(t){if(t instanceof r(2).Fragment)t.isContainerFragment()&&!a._traverseFragmentReferences?(s=s||{},r(18).addFragment(s,t)):t.getChildren().forEach(e);else{var n=t;n.isGenerated()&&!a._traverseGeneratedFields||((s=s||{})[n.getApplicationName()]=u[n.getStorageKey()])}}),this._setDataValue(n,e.getApplicationName(),s)},o._readLinkedField=function(e,t){var r=e.getStorageKey(),n=e.getApplicationName(),a=this._recordStore.getLinkedRecordID(t.storeDataID,r);if(null==a)return void 0===a&&(t.isPartial=!0),void this._setDataValue(t,n,a);var i=this._createState({componentDataID:null,data:c(t,n),isPartial:!1,parent:e,rangeInfo:null,seenDataIDs:t.seenDataIDs,storeDataID:a});this.traverse(e,i),i.isPartial&&(t.isPartial=!0),this._setDataValue(t,n,i.data)},o._setDataValue=function(e,t,r){var n=l(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;i.forEach(function(e){var r=t._recordStore.getField(o,e);null!=r&&(n[e]=r)}),e.isPartial&&(n.__status__=r(57).setPartialStatus(n.__status__,!0));var s=this._storeData.getClientMutationIDs(o);if(s){var u=[],l=this._storeData.getMutationQueue();s.forEach(function(e){var t=l.getTransaction(e);t&&u.push(t.getHash())}),n[a]=u.join(",")}}},o._getConnectionClientID=function(e,t){var n=e.getCallsWithValues();return r(1).ConnectionInterface.hasRangeCalls(n)?this._rangeData.getClientIDForRangeWithID(r(74)(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(28)(n.calls,n.callValues)))},t}(r(21));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(),a=n.EDGES,i=n.PAGE_INFO,o=e.getSchemaName();(o===a||o===i)&&r(0)(!1,"readRelayQueryData(): The field `%s` is a connection. Fields `%s` and `%s` cannot be fetched without a `first`, `last` or `find` argument.",t.getApplicationName(),a,i)},t}(r(21)));function u(e){return null!=e.componentDataID?e.componentDataID:e.storeDataID}function l(e){var t=e.data;return t||(t=e.data=r(4).create(u(e))),t instanceof Object||r(0)(!1,"readRelayQueryData(): Unable to read field on non-object."),t}function c(e,t){return l(e)[t]}e.exports=r(1).RelayProfiler.instrument("readRelayQueryData",function(e,t,n,a){var i=new o(e,a).retrieveData(t,n);return r(105)(t,a),i})},function(e,t,r){"use strict";var n=r(77);e.exports=function(e){return n(e)},e.exports.injectImpl=function(e){n=e}},function(e,t){e.exports=f},function(e,t,r){"use strict";var n=r(5)(r(13));var a=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(21));e.exports=r(1).RelayProfiler.instrument("flattenRelayQuery",function(e,t){var r=new a(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 a=r.flattenedFieldMap,i=r.flattenedFragmentMap,o=[],s=Array.from(a.keys());return s.forEach(function(t){var r=a.get(t);r&&o.push(e(r.node,r,n))}),Array.from(i.keys()).forEach(function(t){var r=i.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(9)),a=r(5)(r(13)),i=function(e){function t(t,r,n,a,i){var o;return(o=e.call(this)||this)._changeTracker=a,o._forceIndex=i&&i.forceIndex?i.forceIndex:0,o._isOptimisticUpdate=!(!i||!i.isOptimisticUpdate),o._store=t,o._queryTracker=n,o._updateTrackedQueries=!(!i||!i.updateTrackedQueries),o._writer=r,o}(0,a.default)(t,e);var i=t.prototype;return i.getRecordStore=function(){return this._store},i.getRecordWriter=function(){return this._writer},i.getRecordTypeName=function(e,t,n){if(this._isOptimisticUpdate)return this._store.getType(t);var a=n[r(3).TYPENAME];return null==a&&(a=e.isAbstract()?this._store.getType(t):e.getType()),r(7)(a&&a!==r(3).ANY_TYPE,"RelayQueryWriter: Could not find a type name for record `%s`.",t),a||null},i.writePayload=function(e,t,n,a){var i=this,o={nodeID:null,path:a,recordID:t,responseData:n};e instanceof r(2).Field&&e.canHaveSubselections()?e.getChildren().forEach(function(e){i.visit(e,o)}):this.visit(e,o)},i.recordCreate=function(e){this._changeTracker.createID(e)},i.recordUpdate=function(e){this._changeTracker.updateID(e)},i.isNewRecord=function(e){return this._changeTracker.isNewRecord(e)},i.createRecordIfMissing=function(e,t,n,a){var i=this._store.getRecordState(t),o=a&&this.getRecordTypeName(e,t,a);this._writer.putRecord(t,o,n),i!==r(14).EXISTENT&&this.recordCreate(t),!this._queryTracker||!this.isNewRecord(t)&&!this._updateTrackedQueries||r(4).isClientID(t)&&!r(8).isRootPath(n)||this._queryTracker.trackNodeForID(e,t)},i.visitRoot=function(e,t){var n=t.path,a=t.recordID,i=t.responseData,o=this._store.getRecordState(a);if(null==i)return void 0===i&&r(0)(!1,"RelayQueryWriter: Unexpectedly encountered `undefined` in payload. Cannot set root record `%s` to undefined.",a),this._writer.deleteRecord(a),void(o===r(14).EXISTENT&&this.recordUpdate(a));("object"!=typeof i||null===i)&&r(0)(!1,"RelayQueryWriter: Cannot update record `%s`, expected response to be an array or object.",a),this.createRecordIfMissing(e,a,n,i),this.traverse(e,t)},i.visitFragment=function(e,t){var a=t.recordID;if(e.isDeferred()){var i=e.getSourceCompositeHash()||e.getCompositeHash();this._writer.setHasDeferredFragmentData(a,i),this.recordUpdate(a)}if(this._isOptimisticUpdate||r(40)(e,this._store.getType(a))){!this._isOptimisticUpdate&&e.isTrackingEnabled()&&this._writer.setHasFragmentData(a,e.getCompositeHash());var o=r(8).getPath(t.path,e,a);this.traverse(e,(0,n.default)({},t,{path:o}))}},i.visitField=function(e,t){var n=t.recordID,a=t.responseData;this._writer.getRecordState(n)!==r(14).EXISTENT&&r(0)(!1,"RelayQueryWriter: Cannot update a non-existent record, `%s`.",n),("object"!=typeof a||null===a)&&r(0)(!1,"RelayQueryWriter: Cannot update record `%s`, expected response to be an object.",n);var i=e.getSerializationKey(),o=a[i];if(null==o){if(void 0===o){if(a.hasOwnProperty(i))return void r(7)(!1,"RelayQueryWriter: Encountered an explicit `undefined` field `%s` on record `%s`, expected response to not contain `undefined`.",e.getDebugName(),n);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)},i._writeScalar=function(e,t,r,n){var a=e.getStorageKey(),i=this._store.getField(r,a);this._writer.putField(r,a,n),Array.isArray(i)&&Array.isArray(n)&&i.length===n.length&&i.every(function(e,t){return e===n[t]})||i!==n&&this.recordUpdate(r)},i._writeConnection=function(e,t,n,a){var i=r(1).ConnectionInterface.get().EDGES,o=e.getStorageKey(),s=this._store.getLinkedRecordID(n,o)||r(32)(),u=this._store.getRecordState(s),l=!!(e.getFieldByStorageKey(i)||null!=a&&"object"==typeof a&&a[i]),c=r(8).getPath(t.path,e,s);this._writer.putRecord(s,null,c),this._writer.putLinkedRecordID(n,o,s),u!==r(14).EXISTENT&&(this.recordUpdate(n),this.recordCreate(s)),l&&((!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:c,recordID:s,responseData:a};this._traverseConnection(e,e,d)},i._traverseConnection=function(e,t,n){var a=this,i=r(1).ConnectionInterface.get(),o=i.EDGES,s=i.PAGE_INFO;t.getChildren().forEach(function(t){t instanceof r(2).Field?t.getSchemaName()===o?a._writeEdges(e,t,n):t.getSchemaName()!==s&&a.visit(t,n):a._traverseConnection(e,t,n)})},i._writeEdges=function(e,t,n){var a=this,i=r(1).ConnectionInterface.get(),o=i.EDGES,s=i.NODE,u=i.PAGE_INFO,l=n.recordID,c=n.responseData;("object"!=typeof c||null===c)&&r(0)(!1,"RelayQueryWriter: Cannot write edges for malformed connection `%s` on record `%s`, expected the response to be an object.",e.getDebugName(),l);var d=c[o];if(null!=d){Array.isArray(d)||r(0)(!1,"RelayQueryWriter: Cannot write edges for connection `%s` on record `%s`, expected `edges` to be an array.",e.getDebugName(),l);var f=e.getCallsWithValues();r(1).ConnectionInterface.hasRangeCalls(f)||r(0)(!1,"RelayQueryWriter: Cannot write edges for connection on record `%s` without `first`, `last`, or `find` argument.",l);var h=this._store.getRangeMetadata(l,f);h||r(0)(!1,"RelayQueryWriter: Expected a range to exist for connection field `%s` on record `%s`.",e.getDebugName(),l);var g=[],p=h.filteredEdges,_=!1,y=0;d.forEach(function(i){if(null!=i){"object"==typeof i&&i||r(0)(!1,"RelayQueryWriter: Cannot write edge for connection field `%s` on record `%s`, expected an object.",e.getDebugName(),l);var o=i[s];if(null!=o){"object"!=typeof o&&r(0)(!1,"RelayQueryWriter: Expected node to be an object for field `%s` on record `%s`.",e.getDebugName(),l);var u=p[y++],c=o&&o[r(3).ID]||u&&a._store.getLinkedRecordID(u.edgeID,s)||r(32)(),d=r(50)(l,c),f=r(8).getPath(n.path,t,d);a.createRecordIfMissing(t,d,f,null),g.push(d),a.traverse(t,{nodeID:c,path:f,recordID:d,responseData:i}),_=_||!u||d!==u.edgeID}}});var m=c[u]||r(1).ConnectionInterface.getDefaultPageInfo();this._writer.putRangeEdges(l,f,m,g),_&&this.recordUpdate(l)}else r(7)(!1,"RelayQueryWriter: Cannot write edges for connection `%s` on record `%s`, expected a response for field `edges`.",e.getDebugName(),l)},i._writePluralLink=function(e,t,n,a){var i=this,o=e.getStorageKey();Array.isArray(a)||r(0)(!1,"RelayQueryWriter: Expected array data for field `%s` on record `%s`.",e.getDebugName(),n);var s=this._store.getLinkedRecordIDs(n,o),u=[],l={},c=!1,d=0;a.forEach(function(n){if(null!=n){"object"==typeof n&&n||r(0)(!1,"RelayQueryWriter: Expected elements for plural field `%s` to be objects.",o);var a=s&&s[d],f=n[r(3).ID]||a||r(32)();u.push(f);var h=r(8).getPath(t.path,e,f);i.createRecordIfMissing(e,f,h,n),l[f]={record:n,path:h},c=c||f!==a,d++}}),this._writer.putLinkedRecordIDs(n,o,u),u.forEach(function(t){var r=l[t];r&&i.traverse(e,{nodeID:null,path:r.path,recordID:t,responseData:r.record})}),!c&&s&&s.length===u.length||this.recordUpdate(n)},i._writeLink=function(e,t,n,a){var i=r(1).ConnectionInterface.get().NODE,o=t.nodeID,s=e.getStorageKey();("object"!=typeof a||null===a)&&r(0)(!1,"RelayQueryWriter: Expected data for non-scalar field `%s` on record `%s` to be an object.",e.getDebugName(),n);var u=this._store.getLinkedRecordID(n,s),l=e.getSchemaName()===i&&o||a[r(3).ID]||u||r(32)(),c=r(8).getPath(t.path,e,l);this.createRecordIfMissing(e,l,c,a),this._writer.putLinkedRecordID(n,s,l),u!==l&&this.recordUpdate(n),this.traverse(e,{nodeID:null,path:c,recordID:l,responseData:a})},t}(r(21));e.exports=i},function(e,t,r){"use strict";e.exports=function(e,t){return"client:"+e+":"+t}},function(e,t,r){"use strict";var n={},a={},i={},o={},s={isClientOnlyID:function(e){return r(4).isClientID(e)&&!n[e]},updateClientServerIDMap:function(e,t){n[e]=t},getServerIDForClientID:function(e){return n[e]||null},putClientIDForMutation:function(e,t){a[t]=e;var r=s.getErrorNodeForMutation(t);r&&(s.deleteMutationForErrorNode(r),s.putErrorNodeForMutation(e,t))},getClientIDForMutation:function(e){return a[e]},deleteClientIDForMutation:function(e){delete a[e]},putErrorNodeForMutation:function(e,t){o[e]=t,i[t]=e},getMutationForErrorNode:function(e){return o[e]},getErrorNodeForMutation:function(e){return i[e]},deleteMutationForErrorNode:function(e){delete o[e]},deleteErrorNodeForMutation:function(e){delete i[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(44).__getClassicFragment(e)},getClassicOperation:function(e){return r(44).__getClassicOperation(e)},graphql:function(){r(0)(!1,"graphql: Unexpected invocation at runtime. Either the Babel transform was not set up, or it failed to identify this call site. Make sure it is being used verbatim as `graphql`.")},isClassicFragment:function(e){return null!=r(6).getFragmentDefinition(r(44).__getClassicNode(e))},isClassicOperation:function(e){return null!=r(6).getOperationDefinition(r(44).__getClassicNode(e))}}},function(e,t,r){"use strict";var n=r(5)(r(19)),a=r(5)(r(9)),i="RelayGraphQLMutation",o=0,s=function(){function e(e,t,r,n,a,s){this._query=e,this._variables=t,this._files=r||null,this._environment=n,this._callbacks=a||null,this._collisionKey=s||"".concat(i,":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,a){return new e(t,r,n,a)};var t=e.prototype;return t.applyOptimistic=function(e,t,n){return this._transaction&&r(0)(!1,"RelayGraphQLMutation: `applyOptimistic()` was called on an instance that already has a transaction in progress."),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,a,i,o,s,u){this._configs=[],this._query=t,this._variables=n,this._files=a,this._optimisticQuery=i||null,this._optimisticResponse=o||null,this._collisionKey=s,this.onFailure=u&&u.onFailure,this.onSuccess=u&&u.onSuccess,this.status=r(12).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,"RelayGraphQLMutation: `getCallName()` called but no mutation exists (`getQuery()` must be called first to construct the mutation)."),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(10).get("$RelayGraphQLMutation"),this._getVariables());this._optimisticMutation=n}return this._optimisticMutation},t.getOptimisticResponse=function(){return(0,a.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(10).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,"RelayGraphQLMutation: Required `input` variable is missing (supplied variables were: [%s]).",Object.keys(this._variables).join(", ")),(0,a.default)({},this._variables,{input:(0,a.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",a=0;e.exports=function(){return r(36)(a++)+n}},function(e,t){e.exports=h},function(e,t,r){"use strict";function n(e,t,r){return e=e||0,t?e|r:e&~r}function a(e,t){return 0!=((e||0)&t)}var i={setOptimisticStatus:function(e,t){return n(e,t,1)},isOptimisticStatus:function(e){return a(e,1)},setPartialStatus:function(e,t){return n(e,t,4)},isPartialStatus:function(e){return a(e,4)}};e.exports=i},function(e,t){e.exports=g},function(e,t,r){"use strict";var n=1;e.exports=function(){return n++}},function(e,t,r){"use strict";var n=r(4).MetadataKey.FILTER_CALLS,a=r(4).MetadataKey.FORCE_INDEX,i=r(4).MetadataKey.MUTATION_IDS,o=r(4).MetadataKey.PATH,s=r(4).MetadataKey.RANGE,u=r(4).MetadataKey.RESOLVED_FRAGMENT_MAP,l=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(3).isNodeRootCall(e)?(null==t&&r(0)(!1,"RelayRecordStore.getDataID(): Argument to `%s()` cannot be null or undefined.",e),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(14).NONEXISTENT:void 0===t?r(14).UNKNOWN:r(14).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[i]}return null},t.hasFragmentData=function(e,t){var n=this._getField(e,u);return"object"!=typeof n&&null!=n&&r(0)(!1,"RelayRecordStore.hasFragmentData(): Expected the map of resolved deferred fragments associated with record `%s` to be null or an object. Found a(n) `%s`.",e,typeof n),!(!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 a=r(4).getRecord(n);return a||r(0)(!1,"RelayRecordStore.getLinkedRecordID(): Expected field `%s` for record `%s` to have a linked record.",t,e),r(4).getDataID(a)},t.getLinkedRecordIDs=function(e,t){var n=this._getField(e,t);return null==n?n:(Array.isArray(n)||r(0)(!1,"RelayRecordStore.getLinkedRecordIDs(): Expected field `%s` for record `%s` to have an array of linked records.",t,e),n.map(function(n,a){var i=r(4).getRecord(n);return i||r(0)(!1,"RelayRecordStore.getLinkedRecordIDs(): Expected element at index %s in field `%s` for record `%s` to be a linked record.",a,t,e),r(4).getDataID(i)}))},t.getConnectionIDsForRecord=function(e){var t=this._nodeConnectionMap[e];return t?Object.keys(t):null},t.getConnectionIDsForField=function(e,t){var n,a=this._records[e];return null==a?a:(r(11)(a,function(e,a){if(e&&function(e){return e.split(/(?![_A-Za-z][_0-9A-Za-z]*)/,1)[0]}(a)===t){var i=r(4).getDataIDForObject(e);i&&(n=n||[]).push(i)}}),n)},t.getRangeForceIndex=function(e){var t=this._getField(e,a);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 a=this._getField(e,s);if(null!=a){var i=function(e){return e.filter(function(e){return!r(1).ConnectionInterface.isConnectionCall(e)})}(t);if(t.length===i.length)return{diffCalls:t,filterCalls:i,pageInfo:void 0,requestedEdgeIDs:[],filteredEdges:[]};var o,u=this._queuedRecords?this._queuedRecords[e]:null,l=a.retrieveRangeInfoForQuery(t,u),c=l.diffCalls,d=l.pageInfo,f=l.requestedEdgeIDs;if(c=c&&c.length?i.concat(c):[],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:c,filterCalls:i,pageInfo:d,requestedEdgeIDs:f,filteredEdges:o}}null===a&&r(7)(!1,"RelayRecordStore.getRangeMetadata(): Expected range to exist if `edges` has been fetched.")},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 a=r[n][e];if(null===a)return null;if(a&&a.hasOwnProperty(t))return a[t]}},e}();e.exports=l},function(e,t,r){"use strict";var n=r(5)(r(27)),a=r(1).RangeOperations.REFETCH,i={buildFragmentForFields:function(e){var t=e.fatQuery,a=e.fieldIDs,i=e.tracker,u=[];return r(11)(a,function(e,a){var l=o(t,a),c=[];[].concat(e).forEach(function(e){c.push.apply(c,(0,n.default)(i.getTrackedChildrenForID(e)))});var d=l.clone(c),f=null;if(d&&(f=r(62)(d,l))&&u.push(f),console.groupCollapsed&&console.groupEnd){console.groupCollapsed("Building fragment for `"+a+"`"),console.log(r(3).ID+": ",e);var h=r(42);h.printMutation(d&&s(t,[d]),"Tracked Fragment"),h.printMutation(s(t,[l]),"Fat Fragment"),h.printMutation(f&&s(t,[f]),"Intersected Fragment"),console.groupEnd()}}),s(t,u)},buildFragmentForEdgeDeletion:function(e){var t=e.fatQuery,n=e.connectionName,a=e.parentID,i=e.parentName,u=e.tracker,c=o(t,i);l(c,i,n);var d=[],f=c.clone(u.getTrackedChildrenForID(a));if(f){var h=r(62)(f,c,function(e){return e.getSchemaName()===n});h&&(l(h,i,n),d.push(h))}return s(t,d)},buildFragmentForEdgeInsertion:function(e){var t=e.fatQuery,i=e.connectionName,d=e.parentID,f=e.edgeName,h=e.parentName,g=e.rangeBehaviors,p=[],_={},y=e.tracker.getTrackedChildrenForID(d),m=[];if(y.forEach(function(e){m.push.apply(m,(0,n.default)(c(e,i)))}),m.length){u(h,i,m[0]);var v=[];m.forEach(function(e){var t=c(e,"edges");if(t.length){var i=e.getRangeBehaviorCalls(),o=r(79)(g,i);if(console.groupCollapsed&&console.groupEnd){var s=r(29),u=i.map(s).sort().join("");console.log(u+": "+(o||""))}o&&o!==a?t.forEach(function(e){v.push.apply(v,(0,n.default)(e.getChildren()))}):(r(7)(o===a,"RelayMutation: The connection `%s` on the mutation field `%s` that corresponds to the ID `%s` did not match any of the `rangeBehaviors` specified in your RANGE_ADD config. This means that the entire connection will be refetched. Configure a range behavior for this mutation in order to fetch only the new edge and to enable optimistic mutations or use `refetch` to squelch this warning.",e.getStorageKey(),h,d),_[e.getShallowHash()]=!0)}}),v.length&&p.push(function(e,t,a){var i=[r(2).Field.build({fieldName:"cursor",type:"String"}),r(2).Field.build({fieldName:r(3).TYPENAME,type:"String"})];r(1).ConnectionInterface.get().EDGES_HAVE_SOURCE_FIELD&&!r(4).isClientID(e)&&i.push(r(2).Field.build({children:[r(2).Field.build({fieldName:r(3).ID,type:"String"}),r(2).Field.build({fieldName:r(3).TYPENAME,type:"String"})],fieldName:"source",metadata:{canHaveSubselections:!0},type:r(3).ANY_TYPE}));i.push.apply(i,(0,n.default)(a));var o=r(48)(r(2).Field.build({children:i,fieldName:t,metadata:{canHaveSubselections:!0},type:r(3).ANY_TYPE}));return o instanceof r(2).Field||r(0)(!1,"RelayMutationQuery: Expected a field."),o}(d,f,v))}if(null!=h){var b=o(t,h);l(b,h,i);var D=b.clone(y);if(D){var R=r(62)(D,b,function(e){return e.getSchemaName()===i&&!_.hasOwnProperty(e.getShallowHash())});R&&p.push(R)}}return s(t,p)},buildFragmentForOptimisticUpdate:function(e){var t=e.response;return s(e.fatQuery,r(80).inferRelayFieldsFromData(t))},buildQueryForOptimisticUpdate:function(e){var t=e.fatQuery,n=e.mutation,a=e.response,o=[r(26)(i.buildFragmentForOptimisticUpdate({response:a,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,a=e.input,o=e.mutationName,u=e.mutation,l=e.tracker,c=r(1).ConnectionInterface.get().CLIENT_MUTATION_ID,d=[r(2).Field.build({fieldName:c,type:"String",metadata:{isRequisite:!0}})];return console.groupCollapsed&&console.groupEnd&&console.groupCollapsed("Mutation Configs"),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(10).get("$buildQuery"),{})});if(d=d.concat(t),console.groupCollapsed&&console.groupEnd){var a=r(42);console.groupCollapsed("REQUIRED_CHILDREN"),t.forEach(function(e,t){console.groupCollapsed(t),a.printMutation(e),console.groupEnd()}),console.groupEnd()}break;case r(1).MutationTypes.RANGE_ADD:console.groupCollapsed&&console.groupEnd&&console.groupCollapsed("RANGE_ADD"),d.push(i.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(11)(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,"RelayMutation: To define a range behavior key without sorting the arguments alphabetically is disallowed as of Relay 0.5.1. Please sort the argument names of the range behavior key%s `%s`%s.",1===t.length?"":"s",1===t.length?t[0]:2===t.length?"".concat(t[0],"` and `").concat(t[1]):t.slice(0,-1).join("`, `"),t.length>2?", and `".concat(t.slice(-1),"`"):"");return e}(e.rangeBehaviors),tracker:l})),console.groupCollapsed&&console.groupEnd&&console.groupEnd();break;case r(1).MutationTypes.RANGE_DELETE:case r(1).MutationTypes.NODE_DELETE:var u=i.buildFragmentForEdgeDeletion({connectionName:e.connectionName,fatQuery:n,parentID:e.parentID,parentName:e.parentName,tracker:l});d.push(u);var c=function(e,t){e.length>0||r(0)(!1,"RelayMutationQuery: Invalid deleted node id name.");for(var n=r(2).Field.build({fieldName:e[e.length-1],type:"String"}),a=e.length-2;a>=0;a--)n=r(2).Field.build({fieldName:e[a],type:r(3).ANY_TYPE,children:[n],metadata:{canHaveSubselections:!0}});return s(t,[n])}(Array.isArray(e.deletedIDFieldName)?e.deletedIDFieldName.concat(r(3).ID):[e.deletedIDFieldName],n);if(d.push(c),console.groupCollapsed&&console.groupEnd){var f=e===r(1).MutationTypes.RANGE_DELETE?"RANGE_DELETE":"NODE_DELETE";console.groupCollapsed(f);var h=r(42);h.printMutation(u,"Edge Fragment"),h.printMutation(c,"Node Fragment"),console.groupEnd()}break;case r(1).MutationTypes.FIELDS_CHANGE:console.groupCollapsed&&console.groupEnd&&console.groupCollapsed("FIELDS_CHANGE"),d.push(i.buildFragmentForFields({fatQuery:n,fieldIDs:e.fieldIDs,tracker:l})),console.groupCollapsed&&console.groupEnd&&console.groupEnd();break;default:r(0)(!1,"RelayMutationQuery: Unrecognized config key `%s` for `%s`.",e.type,o)}}),console.groupCollapsed&&console.groupEnd&&console.groupEnd(),r(2).Mutation.build(o,n.getType(),u.calls[0].name,a,d.filter(function(e){return null!=e}),u.metadata)}};function o(e,t){var n=e.getFieldByStorageKey(t);return n||r(0)(!1,"RelayMutationQuery: Invalid field name on fat query, `%s`.",t),n}function s(e,t){var n=r(2).Fragment.build("MutationQuery",e.getType(),t);return n instanceof r(2).Fragment||r(0)(!1,"RelayMutationQuery: Expected a fragment."),n}function u(e,t,n){n.isConnection()||r(0)(!1,"RelayMutationQuery: Expected field `%s`%s to be a connection.",t,e?" on `"+e+"`":"")}function l(e,t,r){var n=c(e,r);n.length&&u(t,r,n[0])}function c(e,t){var n=[];return function a(i){i instanceof r(2).Field&&i.getSchemaName()===t?n.push(i):(i===e||i instanceof r(2).Fragment)&&i.getChildren().forEach(function(e){return a(e)})}(e),n}e.exports=i},function(e,t,r){"use strict";var n=r(5)(r(13));var a=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 a,i=e.getSchemaName(),o=t.getChildren(),s=0;s<o.length;s++){var u=o[s];if(u instanceof r(2).Field||r(0)(!1,"intersectRelayQuery(): Nodes in `patternNode` must be fields."),u.getSchemaName()===i){a=u;break}}if(a)return n.visit(e,a)}return null})):e instanceof r(2).Field&&e.isConnection()&&this._filterUnterminatedRange(e)?function(e){return i.traverse(e,void 0)}(e):e:e},t}(r(63)),i=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,a=t.PAGE_INFO,i=e.getSchemaName();return i===n||i===a?null:e},t}(r(63)));function o(){return!1}function s(e){return e.isGenerated()}e.exports=function(e,t,r){return new a(r=r||o).traverse(e,t)}},function(e,t,r){"use strict";var n=r(5)(r(13)),a=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,a){var i=a[n],o=this.visit(i,t);o!==i&&(r=r||a.slice(0,n)),r&&o&&r.push(o)},this),r?r.length?e.clone(r):null:e):e;var r},t}(r(21));e.exports=a},function(e,t,r){"use strict";var n=r(1).RangeOperations.APPEND,a=r(1).RangeOperations.PREPEND,i=r(1).RangeOperations.REMOVE,o=r(4).MetadataKey.FILTER_CALLS,s=r(4).MetadataKey.FORCE_INDEX,u=r(4).MetadataKey.MUTATION_IDS,l=r(4).MetadataKey.PATH,c=r(4).MetadataKey.RANGE,d=r(4).MetadataKey.RESOLVED_FRAGMENT_MAP,f=r(4).MetadataKey.RESOLVED_FRAGMENT_MAP_GENERATION,h=r(4).MetadataKey.STATUS,g=function(){function e(e,t,r,n,a,i){this._cacheWriter=a,this._clientMutationID=i,this._isOptimisticWrite=r,this._nodeConnectionMap=n||{},this._records=e,this._rootCallMap=t}var t=e.prototype;return t.getDataID=function(e,t){return r(3).isNodeRootCall(e)?(null==t&&r(0)(!1,"RelayRecordWriter.getDataID(): Argument to `%s()` cannot be null or undefined.",e),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(3).isNodeRootCall(e)?null==t&&r(0)(!1,"RelayRecordWriter.putDataID(): Argument to `%s()` cannot be null or undefined.",e):(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 a=r(4).createWithFields(e,{__typename:t});this._isOptimisticWrite&&this._setClientMutationID(a),r(4).isClientID(e)&&n&&(a[l]=n),this._records[e]=a;var i=this._cacheWriter;!this._isOptimisticWrite&&i&&i.writeField(e,"__dataID__",e,t)}},t.getPathToRecord=function(e){return this._getField(e,l)},t.hasFragmentData=function(e,t){var n=this._getField(e,d);return"object"!=typeof n&&null!=n&&r(0)(!1,"RelayRecordWriter.hasFragmentData(): Expected the map of resolved deferred fragments associated with record `%s` to be null or an object. Found a(n) `%s`.",e,typeof n),!(!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 a=this._getRecordForWrite(e);a||r(0)(!1,"RelayRecordWriter.setHasFragmentData(): Expected record `%s` to exist before marking it as having received data for the deferred fragment with id `%s`.",e,t);var i=a[d];"object"==typeof i&&i||(i={}),i[t]=!0,a[d]=i,n&&("number"==typeof a[f]?a[f]++:a[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 a=this._getRecordForWrite(e);if(a||r(0)(!1,"RelayRecordWriter.putField(): Expected record `%s` to exist before writing field `%s`.",e,t),a[t]=n,!this._isOptimisticWrite&&this._cacheWriter){var i=a.__typename;this._cacheWriter.writeField(e,t,n,i)}},t.deleteField=function(e,t){var n=this._getRecordForWrite(e);n||r(0)(!1,"RelayRecordWriter.deleteField(): Expected record `%s` to exist before deleting field `%s`.",e,t),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 a=r(4).getRecord(n);return a||r(0)(!1,"RelayRecordWriter.getLinkedRecordID(): Expected field `%s` for record `%s` to have a linked record.",t,e),r(4).getDataID(a)},t.putLinkedRecordID=function(e,t,n){var a=this._getRecordForWrite(e);a||r(0)(!1,"RelayRecordWriter.putLinkedRecordID(): Expected record `%s` to exist before linking to record `%s`.",e,n);var i=r(4).create(n);a[t]=i,!this._isOptimisticWrite&&this._cacheWriter&&this._cacheWriter.writeField(e,t,i)},t.getLinkedRecordIDs=function(e,t){var n=this._getField(e,t);return null==n?n:(Array.isArray(n)||r(0)(!1,"RelayRecordWriter.getLinkedRecordIDs(): Expected field `%s` for record `%s` to have an array of linked records.",t,e),n.map(function(n,a){var i=r(4).getRecord(n);return i||r(0)(!1,"RelayRecordWriter.getLinkedRecordIDs(): Expected element at index %s in field `%s` for record `%s` to be a linked record.",a,t,e),r(4).getDataID(i)}))},t.putLinkedRecordIDs=function(e,t,n){var a=this._getRecordForWrite(e);a||r(0)(!1,"RelayRecordWriter.putLinkedRecordIDs(): Expected record `%s` to exist before linking records.",e);var i=n.map(function(e){return r(4).create(e)});a[t]=i,!this._isOptimisticWrite&&this._cacheWriter&&this._cacheWriter.writeField(e,t,i)},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,"RelayRecordWriter.putRange(): Cannot create a queued range.");var a=this._getRecordForWrite(e);a||r(0)(!1,"RelayRecordWriter.putRange(): Expected record `%s` to exist before adding a range.",e);var i=new(r(85)),u=function(e){return e.filter(function(e){return!r(1).ConnectionInterface.isConnectionCall(e)})}(t);n=n||0,a[o]=u,a[s]=n,a[c]=i;var l=this._cacheWriter;!this._isOptimisticWrite&&l&&(l.writeField(e,o,u),l.writeField(e,s,n),l.writeField(e,c,i))},t.hasRange=function(e){return!!this._getField(e,c)},t.putRangeEdges=function(e,t,n,a){var i=this,o=this._getField(e,c);o||r(0)(!1,"RelayRecordWriter.putRangeEdges(): Expected record `%s` to exist and have a range.",e);var s=[];a.forEach(function(t){var n=i._getRangeEdgeRecord(t);s.push(n);var a=r(4).getDataID(n.node);i._addConnectionForNode(e,a)}),o.addItems(t,s,n),!this._isOptimisticWrite&&this._cacheWriter&&this._cacheWriter.writeField(e,c,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,a=t.NODE,i=this.getLinkedRecordID(e,a);return i||r(0)(!1,"RelayRecordWriter: Expected edge `%s` to have a `node` record.",e),r(4).createWithFields(e,{cursor:this.getField(e,n),node:r(4).create(i)})},t._applyOptimisticRangeUpdate=function(e,t,n){var i=this._getRecordForWrite(e);i||(i=r(4).create(e),this._records[e]=i),this._setClientMutationID(i);var o=r(52)[n],s=i[o];s||(s=[],i[o]=s),n===a?s.unshift(t):s.push(t)},t._applyServerRangeUpdate=function(e,t,a){var o=this._getField(e,c);if(o||r(0)(!1,"RelayRecordWriter: Cannot apply `%s` update to non-existent record `%s`.",a,e),a===i){o.removeEdgeWithID(t);var s=this.getLinkedRecordID(t,"node");s&&this._removeConnectionForNode(e,s)}else{var u=this._getRangeEdgeRecord(t),l=r(4).getDataID(u.node);this._addConnectionForNode(e,l),a===n?o.appendEdge(this._getRangeEdgeRecord(t)):o.prependEdge(this._getRangeEdgeRecord(t))}this._cacheWriter&&this._cacheWriter.writeField(e,c,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,"RelayRecordWriter: _clientMutationID cannot be null/undefined.");var n=e[u]||[];-1===n.indexOf(t)&&(n.push(t),e[u]=n),e[h]=r(57).setOptimisticStatus(0,!0)},e}();e.exports=g},function(e,t,r){"use strict";var n=r(5)(r(9)),a=r(5)(r(27)),i=new Map,o=new Map;function s(e,t){for(var r=e.length,n=e;n&&n._getMockImplementation;)n=n._getMockImplementation();return n&&(r=n.length),r>t}var u={Fragment:function(e,t){var n=i.get(e);if(n)return r(6).getFragment(n);var a=c(t);s(e,1)&&r(0)(!1,"Relay.QL: Deprecated usage detected. If you are trying to define a fragment, use `variables => Relay.QL`.");var o=null!=(n=e(a))?r(6).getFragment(n):null;return o?(i.set(e,o),o):o},Query:function(e,t,n,a){var i;if(r(90).getEnabled()){var s=o.get(e);s?i=s.get(t):(s=new Map,o.set(e,s)),i||(i=l(e,t,n,a)),s.set(t,i)}else i=l(e,t,n,a);return i?r(6).getQuery(i)||void 0:null}};function l(e,t,i,o){var u,l=c(o);if(s(e,2)&&r(0)(!1,"Relay.QL: Deprecated usage detected. If you are trying to define a query, use `(Component, variables) => Relay.QL`."),s(e,0))u=e(t,l);else{u=e(t,l);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 g=d.children?(0,a.default)(d.children):[];h||r(0)(!1,"Relay.QL: Expected query `%s` to be empty. For example, use `node(id: $id)`, not `node(id: $id) { ... }`.",d.fieldName);var p=r(91)(l,function(e,r){return t.hasVariable(r)});g.push(t.getFragment(i,p)),u=(0,n.default)({},d,{children:g})}}}return u}function c(e){return r(38)(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 a(e,t){var n={};return e.getFragmentNames().forEach(function(e){n[e]=null}),Object.keys(t.queries).forEach(function(a){if(e.hasFragment(a)){var i=t.queries[a];if(i){var o=r(65).Query(i,e,a,t.params);if(void 0===o&&r(0)(!1,"Relay.QL: query `%s.queries.%s` is invalid, a typical query is defined using: () => Relay.QL`query { ... }`.",t.name,a),o){var s=r(2).Root.create(o,r(10).get(t.name),t.params),u=s.getIdentifyingArg();if(!u||void 0!==u.value)return void(n[a]=s)}}n[a]=null}else r(7)(!1,"Relay.QL: query `%s.queries.%s` is invalid, expected fragment `%s.fragments.%s` to be defined.",t.name,a,e.displayName,a)}),n}e.exports=r(1).RelayProfiler.instrument("Relay.getQueries",function(e,t){if(!r(90).getEnabled())return a(e,t);var i=n.get(e);i||(i={},n.set(e,i));var o=t.name+":"+r(25)(t.params);if(i.hasOwnProperty(o))return i[o];var s=a(e,t);return i[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 a;for(a in t)if((!n||n.hasOwnProperty(a))&&t.hasOwnProperty(a)&&(!r.hasOwnProperty(a)||!e(t[a],r[a],a)))return!1;for(a in r)if((!n||n.hasOwnProperty(a))&&r.hasOwnProperty(a)&&!t.hasOwnProperty(a))return!1;return!0}var a={areQueryResultsEqual:function(e,t,a){return n(function(e,t,n,a){return e[a]&&t===n||r(1).isScalarAndEqual(t,n)}.bind(null,e),t,a)},areNonQueryPropsEqual:function(e,t,a){return n(function(e,t,n,a){return e.hasOwnProperty(a)||r(1).isScalarAndEqual(t,n)}.bind(null,e),t,a)},areQueryVariablesEqual:function(e,t){return n(r(1).isScalarAndEqual,e,t)}};e.exports=a},function(e,t,r){"use strict";var n=r(5)(r(9)),a=function(){var e=t.prototype;function t(e){this._storeData=e||new(r(107)),this._storeData.getChangeEmitter().injectBatchingStrategy(r(86)),this.applyUpdate=this.applyUpdate.bind(this),this.commitUpdate=this.commitUpdate.bind(this),this.unstable_internal=r(134)}return e.applyMutation=function(e){var t=e.configs,n=e.operation,a=e.optimisticResponse,i=e.variables,o=new(r(54))(n.node,r(37).getOperationVariables(n,i),null,this);o.applyOptimistic(n.node,a,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,a=r(2).Fragment.create(n.node,r(10).get("$RelayEnvironment"),n.variables),i=r(8).getRootRecordPath();this._storeData.handleFragmentPayload(n.dataID,a,i,t,null)},e._lookup=function(e){var t=r(2).Fragment.create(e.node,r(10).get("$RelayEnvironment"),e.variables),a=r(45)(this._storeData,t,e.dataID),i=a.data,o=a.dataIDs;return o[e.dataID]=!0,(0,n.default)({},e,{data:i,seenRecords:o,isMissingData:!1})},e.lookup=function(e){var t=this._lookup(e);return i(t),t},e.sendMutation=function(e){var t=e.configs,n=e.onCompleted,a=e.onError,i=e.operation,o=e.optimisticOperation,s=e.optimisticResponse,u=e.variables,l=e.uploadables,c=!1,d=new(r(54))(i.node,r(37).getOperationVariables(i,u),l,this,{onSuccess:function(e){c||n&&n(e)},onFailure:function(e){if(!c&&a){var t=e.getError();t||(t=new Error("RelayEnvironment: Unknown error executing mutation ".concat(i.node.name))),a(t)}}});return s&&d.applyOptimistic(o?o.node:i.node,s,t),d.commit(t),{dispose:function(){c||(c=!0)}}},e.subscribe=function(e,t){var n,a=this,o=this._storeData.getChangeEmitter();return n=o.addListenerForIDs(Object.keys(e.seenRecords),function s(){var u=a._lookup(e);u.data=r(1).recycleNodesInto(e.data,u.data),u.data!==e.data&&(i(u),n&&n.remove(),n=o.addListenerForIDs(Object.keys(u.seenRecords),s),t(e=u))}),{dispose:function(){n&&(n.remove(),n=null)}}},e.retain=function(e){return{dispose:function(){}}},e.sendQuery=function(e){var t=this,n=e.cacheConfig,a=e.onCompleted,i=e.onError,o=e.onNext,s=e.operation,u=!1,l=r(2).OSSQuery.create(s.node,r(10).get("$RelayEnvironment"),s.variables),c=new(r(76))(l);return c.getPromise().then(function(e){if(!u){var i=n&&n.force?r(59)():null;t._storeData.handleOSSQueryPayload(l,e.response,i),o&&o(s.root),a&&a()}},function(e){u||i&&i(e)}),this._storeData.getTaskQueue().enqueue(function(){t._storeData.getNetworkLayer().sendQueries([c])}),{dispose:function(){u=!0}}},e.execute=function(e){var t=this,a=e.operation,i=e.cacheConfig;e.updater;return r(1).Observable.fromLegacy(function(e){return t.sendQuery((0,n.default)({operation:a,cacheConfig:i},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(45)(this._storeData,e,t,n).data},e.readAll=function(e,t,n){var a=this;return t.map(function(t){return r(45)(a._storeData,e,t,n).data})},e.readQuery=function(e,t){var n=this,a=this._storeData.getQueuedStore(),i=e.getStorageKey(),o=[];return r(24)(e,function(r){var s,u=r.identifyingArgKey,l=a.getDataID(i,u);null!=l&&(s=n.read(e,l,t)),o.push(s)}),o},e.getFragmentResolver=function(e,t){return new(r(87))(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){r(7)(!1,"`Relay.Store.update` is deprecated. Please use `Relay.Store.commitUpdate` or `Relay.Store.applyUpdate` instead."),this.commitUpdate(e,t)},t}();function i(e){return Object.freeze(e),null!=e.data&&r(1).deepFreeze(e.data),r(1).deepFreeze(e.seenRecords),r(1).deepFreeze(e.variables),e}e.exports=a},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(36)(r(73)(e)>>>0)}},function(e,t){e.exports=p},function(e,t,r){"use strict";e.exports=function(e){return e.map(function(e){var t=e.name,n=e.type,a=e.value,i=null;return Array.isArray(a)?i=a.map(r(6).createCallValue):null!=a&&(i=r(6).createCallValue(a)),r(6).createCall(t,i,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(13)),a=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 a=t.prototype;return a.getDebugName=function(){var e=this._query.getName();return this._query.isDeferred()?e+" (DEFERRED)":e},a.getID=function(){return this._query.getID()},a._getPrintedQuery=function(){var e=this._printedQuery;return null==e&&(e=this._query instanceof r(2).OSSQuery?r(77)(this._query):r(46)(this._query),this._printedQuery=e),e},a.getVariables=function(){return this._getPrintedQuery().variables},a.getQueryString=function(){return this._getPrintedQuery().text},a.getQuery=function(){return this._query},t}(r(58));e.exports=a},function(e,t,r){"use strict";var n="",a="",i=" {"+(a="\n")+(n=" ")+r(3).TYPENAME+a+"}";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 l(e,t,i){for(var o,s=[],u=e.getChildren(),d=0;d<u.length;d++){var g=u[d];if(g instanceof r(2).Field){var p=g.getSchemaName(),_=g.getCallsWithValues();if(_.length){p=g.getSerializationKey()+":"+p;for(var y=[],m=0;m<_.length;m++){var v=_[m],b=v.name,D=h(b,v.value,g.getCallType(b),t);D&&y.push(D)}y.length&&(p+="("+y.join(",")+")")}if(p+=c(g),g.canHaveSubselections()){var R=l(g,t,i+n);null!=R&&(p+=R,s.push(p))}else s.push(p)}else if(g instanceof r(2).Fragment){if(g.getChildren().length){var I=t.fragmentNameByHash,C=t.fragmentNameByText,E=t.fragmentTexts,F=g.getCompositeHash(),N=void 0;if(I.hasOwnProperty(F))N=I[F];else{var S=g.getType()+f(g,t);C.hasOwnProperty(S)?N=C[S]:(N="F"+r(36)(t.fragmentCount++),I[F]=N,C[S]=N,E.push("fragment "+N+" on "+S))}o&&o.hasOwnProperty(N)||((o=o||{})[N]=!0,s.push("..."+N))}}else r(0)(!1,"printRelayOSSQuery(): Expected a field or fragment, got `%s`.",g.constructor.name)}return s.length?" {"+a+i+n+s.join(","+a+i+n)+a+i+"}":null}function c(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,"printRelayOSSQuery(): Relay only supports directives with scalar values (boolean, number, or string), got `%s: %s`.",t,n),t+":"+JSON.stringify(n)}function f(e,t){var i=c(e,s);return c(e,u)+(i?" {"+a+n+"..."+i+r(26)(l(e,t,n))+a+"}":r(26)(l(e,t,"")))}function h(e,t,n,a){if(null==t)return t;var i;null!=n?i="$"+function(e,t,n,a){null==t&&r(0)(!1,"printRelayOSSQuery: Expected a non-null value for variable `%s`.",e);var i=JSON.stringify(t),o=function(e){return"!"===e[e.length-1]?e:e+"!"}(n),s=a.variableMap.get(o);s||(s=new Map,a.variableMap.set(o,s));var u=s.get(i);if(u)return u.variableID;var l=e+"_"+r(36)(a.variableCount++);return s.set(i,{value:t,variableID:l}),l}(e,t,n,a):i=JSON.stringify(t);return e+":"+i}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,"printRelayOSSQuery(): Deferred queries are not supported.");var s=e.getIdentifyingArg(),u=s&&s.name||null,d=s&&s.type||null,f=s&&s.value||null,g=e.getFieldName();if(null!=f){u||r(0)(!1,"printRelayOSSQuery(): Expected an argument name for root field `%s`.",g);var p=h(u,f,d,t);p&&(g+="("+p+")")}var _=l(e,t,n),y=e.getName()+o(t);return g+=c(e),null==_?"query "+y+i:"query "+y+" {"+a+n+g+_+a+"}"}(e,u):e instanceof r(2).Operation?d=function(e,t){var s=e instanceof r(2).Mutation?"mutation":"subscription",u=e.getCall(),c=h(e.getCallVariableName(),u.value,e.getInputType(),t);c||r(0)(!1,"printRelayOSSQuery(): Expected %s `%s` to have a value for `%s`.",s,e.getName(),e.getCallVariableName());var d=l(e,t,n)||i,f=e.getName()+o(t),g=u.name+"("+c+")";return s+" "+f+" {"+a+n+g+d+a+"}"}(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=l(e,t,n)||i,a=c(e),s=o(t);return"query "+e.getName()+s+a+r}(e,u)),d||r(0)(!1,"printRelayOSSQuery(): Unsupported node type, got `%s`.",e);var g={};return s.forEach(function(e){e.forEach(function(e){var t=e.value,r=e.variableID;g[r]=t})}),{text:[d].concat(t).join(a.length?a:" "),variables:g}})},function(e,t,r){"use strict";var n=r(5)(r(13)),a=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 a=t.prototype;return a.getDebugName=function(){return this._mutation.getName()},a.getFiles=function(){return this._files},a.getVariables=function(){return this._getPrintedQuery().variables},a.getQueryString=function(){return this._getPrintedQuery().text},a.getMutation=function(){return this._mutation},a._getPrintedQuery=function(){return this._printedQuery||(this._printedQuery=r(46)(this._mutation)),this._printedQuery},t}(r(58));e.exports=a},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=t.map(r(29)).sort().join("").slice(1),a=e[n];return null==a?null:("string"!=typeof a&&r(0)(!1,"getRangeBehavior(): Expected range behavior for key `%s` to be a string, got `%s`.",n,a),a)}},function(e,t,r){"use strict";var n=r(5)(r(19)),a=r(5)(r(9)),i=/^(\w+)(?:\((.+?)\))?$/,o=/(\w+)(?=\s*:)/,s=/^\w+(?:\.\w+\(.*?\))+$/,u=/^(\w+)\((.*?)\)$/,l=r(2).Field.build({fieldName:r(3).ID,type:"String"}),c=r(2).Field.build({fieldName:"cursor",type:"String"}),d={inferRelayFieldsFromData:function(e){var t=[];return r(11)(e,function(e,n){r(4).isMetadataKey(n)||t.push(function(e,t){var n,a=r(1).ConnectionInterface.get(),i=a.NODE,o=a.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===i?n.push(l):t===o&&n.push(c);return f(t,n,s)}(e,n))}),t},inferRelayPayloadFromData:function(e){var t=e;return r(11)(e,function(e,i){if(!r(4).isMetadataKey(i)){var o=function(e,t){var r={canHaveSubselections:!0,isPlural:!1},n=e;if(Array.isArray(e)&&Array.isArray(n)){for(var a=0;a<e.length;a++){var i=e[a];if(i&&"object"==typeof i){var o=d.inferRelayPayloadFromData(i);o!==i&&((n=n.slice())[a]=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,i),s=o.newValue,u=o.newKey;u!==i?delete(t=(0,a.default)({},t,(0,n.default)({},u,s)))[i]:s!==e&&(t=(0,a.default)({},t,(0,n.default)({},i,s)))}}),t}};function f(e,t,n){var a=e,l=null;if(s.test(e)){r(7)(!1,"RelayOptimisticMutationUtils: Encountered an optimistic payload with a deprecated field call string, `%s`. Use valid GraphQL OSS syntax.",e);var c=e.split(".");c.length>1&&(a=c.shift(),l=c.map(function(t){var n=t.match(u);n||r(0)(!1,"RelayOptimisticMutationUtils: Malformed data key, `%s`.",e);var a=n[2].split(",");return{name:n[1],value:1===a.length?a[0]:a}}))}else{var d=e.match(i);if(d||r(0)(!1,"RelayOptimisticMutationUtils: Malformed data key, `%s`.",e),a=d[1],d[2])try{var f=JSON.parse("{"+d[2].replace(o,'"$1"')+"}");l=Object.keys(f).map(function(e){return{name:e,value:f[e]}})}catch(t){r(0)(!1,"RelayOptimisticMutationUtils: Malformed or unsupported data key, `%s`. Only booleans, strings, and numbers are currently supported, and commas are required. Parse failure reason was `%s`.",e,t.message)}}return r(2).Field.build({calls:l,children:t,fieldName:a,metadata:n,type:r(3).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(13));var a=function(e){function t(t,r,n,a,i,o){var s;return(s=e.call(this,t,o)||this)._cachedRecords=n,s._cachedRootCallMap=a,s._changeTracker=i,s._store=r,s}(0,n.default)(t,e);var a=t.prototype;return a.handleNodeVisited=function(e,t,n,a){var i=this._store.getRecordState(t);this._cachedRecords[t]=n,"UNKNOWN"===i&&void 0!==n?this._changeTracker.createID(t):"EXISTENT"===i&&null!=n&&this._changeTracker.updateID(t),n?r(4).isClientID(t)&&(n.__path__=a.path):this.handleFailure()},a.handleIdentifiedRootVisited=function(e,t,r,n){if(null!=t){var a=e.getStorageKey();this._cachedRootCallMap[a]=this._cachedRootCallMap[a]||{},this._cachedRootCallMap[a][r||""]=t,n.dataID=t}else this.handleFailure()},a.restoreFragmentData=function(e,t,r){var n=this;this.process(function(){n.visitFragment(t,{dataID:e,node:t,path:r,rangeCalls:void 0})})},a.restoreQueriesData=function(e){var t=this;this.process(function(){r(11)(e,function(e){"COMPLETED"!==t._state&&e&&t.visitRoot(e,{dataID:void 0,node:e,path:r(8).create(e),rangeCalls:void 0})})})},a.traverse=function(e,t){null==t.dataID&&r(0)(!1,"RelayCachedDataRestorator: Attempted to traverse without a `dataID`.");var n=r(129)(this._store,this._cachedRecords,t.node,t.dataID,t.path,t.rangeCalls),a=n.missingData,i=n.pendingNodeStates;if(a)this.handleFailure();else for(var o=0;o<i.length;o++){if("COMPLETED"===this._state)return;null==i[o].dataID&&r(0)(!1,"RelayCachedDataRestorator: Attempted to visit a node without a `dataID`."),this.visitNode(i[o].node,i[o].dataID,i[o])}},a.visitIdentifiedRoot=function(t,n,a){var i=this._store.getDataID(t.getStorageKey(),n);null==i?e.prototype.visitIdentifiedRoot.call(this,t,n,a):this.traverse(t,{dataID:i,node:t,path:r(8).create(t),rangeCalls:void 0})},t}(r(130));r(1).RelayProfiler.instrumentMethods(a.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,i,o,s,u,l){var c=new a(s,n,i,o,u,l);return c.restoreFragmentData(e,t,r),{abort:function(){c.abort()}}},restoreQueriesDataFromCache:function(e,t,r,n,i,o,s){var u=new a(i,t,r,n,o,s);return u.restoreQueriesData(e),{abort:function(){u.abort()}}}}},function(e,t){e.exports=_},function(e,t,r){"use strict";e.exports=r(1).RelayProfiler.instrument("writeRelayQueryPayload",function(e,t,n){var a=e.getRecordStore(),i=e.getRecordWriter(),o=r(8).create(t);r(3).getResultsFromPayload(t,n).forEach(function(n){var s,u=n.result,l=n.rootCallInfo,c=l.storageKey,d=l.identifyingArgKey;"object"==typeof u&&u&&"string"==typeof u[r(3).ID]&&(s=u[r(3).ID]),null==s&&(s=a.getDataID(c,d)||r(32)()),i.putDataID(c,d,s),e.writePayload(t,s,u,o)})})},function(e,t,r){"use strict";var n=r(5)(r(9)),a=r(5)(r(19)),i=r(5)(r(27));function o(e){for(var t={},n=0;n<e.length;n++)if(r(1).ConnectionInterface.isConnectionCall(e[n])){var a=e[n],i=a.value;if(Array.isArray(i)&&i.length&&(i=i[0]),null===i)continue;t[a.name]=i}return t.first?(isNaN(t.first)&&r(0)(!1,"GraphQLRange: Expected `first` argument to be a number, got `%s`.",t.first),t.first=+t.first):t.last&&(isNaN(t.last)&&r(0)(!1,"GraphQLRange: Expected `last` argument to be a number, got `%s`.",t.last),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 l(e){void 0===r(4).getDataIDForObject(e)&&r(0)(!1,"GraphQLStore: `edge` must have a data id"),void 0===e.node&&r(0)(!1,"GraphQLStore: `edge` must have `node` field")}var c=function(){function e(){this.reset()}var t=e.prototype;return t.reset=function(){this._orderedSegments=[new(r(33)),new(r(33))],this._staticQueriesMap={},this._hasFirst=!1,this._hasLast=!1},t._resetSegment=function(e){e>=0&&e<this._orderedSegments.length||r(0)(!1,"cannot reset non-existent segment"),this._orderedSegments[e]=new(r(33))},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),a=[],i=[],o=0;o<t.length;o++){var s=t[o];a.push(r(4).getDataIDForObject(s)),i.push(s.cursor)}this._staticQueriesMap[n]={edgeIDs:a,cursors:i}},t.addItems=function(e,t,n){!function(e){e.forEach(l)}(t);var a,i,c=o(e);if(s(c))this._addStaticEdges(e,t);else if(u(c))if(null!==c.before&&null!==c.after){var d=r(1).ConnectionInterface.get(),f=d.HAS_NEXT_PAGE,h=d.HAS_PREV_PAGE;c.first?c.before&&!c.after?!0===n[f]&&0!==t.length?(0===this._getSegmentIndexByCursor(c.before)&&this._orderedSegments.unshift(new(r(33))),this._addAfterFirstItems(t,n[f],void 0,c.before)):this._addBeforeLastItems(t,n[h],c.before):(c.after||(i=0,(a=this.getFirstSegment().getCount())&&(c.first>a||t.length>a)&&!this.getFirstSegment().getFirstCursor()&&this._resetSegment(i)),this._addAfterFirstItems(t,n[f],c.after,c.before)):c.last&&(c.after&&!c.before?!0===n[h]&&0!==t.length?(this._getSegmentIndexByCursor(c.after)===this._orderedSegments.length-1&&this._orderedSegments.push(new(r(33))),this._addBeforeLastItems(t,n[h],void 0,c.after)):this._addAfterFirstItems(t,n[f],c.after):(c.before||(i=this._orderedSegments.length-1,(a=this.getLastSegment().getCount())&&(c.last>a||t.length>a)&&!this.getLastSegment().getLastCursor()&&this._resetSegment(i)),this._addBeforeLastItems(t,n[h],c.before,c.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,"GraphQLRange cannot concat segments outside the range of orderedSegments");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){l(e),this._hasFirst=!0,this._removeEdgeIfApplicable(e),this.getFirstSegment().prependEdge(e)},t.appendEdge=function(e){l(e),this._hasLast=!0,this._removeEdgeIfApplicable(e),this.getLastSegment().appendEdge(e)},t._removeEdgeIfApplicable=function(e){var t=r(4).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(4).getDataIDForObject(e);return null==t._getSegmentIndexByID(n)})},t._addAfterFirstItems=function(e,t,n,a){var i,o,s;if(void 0!==n){if(null==(o=this._getSegmentIndexByCursor(n)))return void r(7)(!1,"GraphQLRange cannot find a segment that has the cursor: %s",n);if((s=(i=this._orderedSegments[o]).getLastCursor())!==n&&(e=this._reconcileAfterFirstEdges(i,e,n),n=s,!e))return}else if(o=0,void 0!==(s=(i=this._orderedSegments[o]).getLastCursor())&&(n=s,!(e=this._reconcileAfterFirstEdges(i,e))))return;var u=this._orderedSegments[o+1];if(void 0!==a){if(o===this._orderedSegments.length-1)return void console.warn("GraphQLRange cannot add because there is no next segment");if(!u.isFirstCursor(a))return void r(7)(!1,"GraphQLRange cannot add because beforeCursor does not match first cursor of the next segment")}void 0===n&&(this._hasFirst=!0);var l=this._dedupEdgesAgainstRange(e);i.addEdgesAfterCursor(l,n),t||(void 0!==a?this._concatSegments(o):(this._hasLast=!0,this._orderedSegments.splice(o+1,this._orderedSegments.length-1-o)))},t._reconcileAfterFirstEdges=function(e,t,n){var a=e.getMetadataAfterCursor(t.length+1,n).edgeIDs;if(!(a.length>t.length)){for(var i=0;i<a.length;i++)if(a[i]!==r(4).getDataIDForObject(t[i]))return void r(7)(!1,"Relay was unable to reconcile edges on a connection. This most likely occurred while trying to handle a server response that includes connection edges with nodes that lack an `id` field.");return t.slice(a.length)}},t._addBeforeLastItems=function(e,t,n,a){var i,o,s;if(void 0!==n){if(null==(o=this._getSegmentIndexByCursor(n)))return void r(7)(!1,"GraphQLRange cannot find a segment that has the cursor: %s",n);if((s=(i=this._orderedSegments[o]).getFirstCursor())!==n&&(e=this._reconcileBeforeLastEdges(i,e,n),n=s,!e))return}else if(o=this._orderedSegments.length-1,void 0!==(s=(i=this._orderedSegments[o]).getFirstCursor())&&(e=this._reconcileBeforeLastEdges(i,e,n),n=s,!e))return;var u=this._orderedSegments[o-1];if(void 0!==a){if(0===o)return void console.warn("GraphQLRange cannot add because there is no previous segment");if(!u.isLastCursor(a))return void r(7)(!1,"GraphQLRange cannot add because afterCursor does not match last cursor of the previous segment")}void 0===n&&(this._hasLast=!0);var l=this._dedupEdgesAgainstRange(e);i.addEdgesBeforeCursor(l,n),t||(void 0!==a?this._concatSegments(o-1):(this._hasFirst=!0,this._orderedSegments.splice(0,o)))},t._reconcileBeforeLastEdges=function(e,t,n){var a=e.getMetadataBeforeCursor(t.length+1,n).edgeIDs;if(!(a.length>t.length)){for(var i=1;i<=a.length;i++)if(a[a.length-i]!==r(4).getDataIDForObject(t[t.length-i]))return void r(7)(!1,"Relay was unable to reconcile edges on a connection. This most likely occurred while trying to handle a server response that includes connection edges with nodes that lack an `id` field.");return t.slice(0,t.length-a.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 i,o=r(1).ConnectionInterface.get(),s=o.END_CURSOR,u=o.HAS_NEXT_PAGE,l=o.HAS_PREV_PAGE,c=o.START_CURSOR;return{requestedEdgeIDs:n.edgeIDs,diffCalls:[],pageInfo:(i={},(0,a.default)(i,c,n.cursors[0]),(0,a.default)(i,s,n.cursors[n.cursors.length-1]),(0,a.default)(i,u,!0),(0,a.default)(i,l,!0),i)}}return{requestedEdgeIDs:[],diffCalls:e,pageInfo:r(1).ConnectionInterface.getDefaultPageInfo()}},t._getAppendedIDsForQueuedRecord=function(e){return e[r(52)[r(1).RangeOperations.APPEND]]},t._getRemovedIDsForQueuedRecord=function(e){return e[r(52)[r(1).RangeOperations.REMOVE]]},t._getPrependedIDsForQueuedRecord=function(e){return e[r(52)[r(1).RangeOperations.PREPEND]]},t._retrieveRangeInfoForFirstQuery=function(e,t){var a,i,s,u=r(1).ConnectionInterface.get(),l=u.END_CURSOR,c=u.HAS_NEXT_PAGE,d=u.START_CURSOR;t&&(a=this._getAppendedIDsForQueuedRecord(t),i=this._getPrependedIDsForQueuedRecord(t),s=this._getRemovedIDsForQueuedRecord(t));var f,h,g=o(e),p=g.first+(s?s.length:0),_=(0,n.default)({},r(1).ConnectionInterface.getDefaultPageInfo()),y=g.after;if(void 0!==y){if(null==(h=this._getSegmentIndexByCursor(y)))return console.warn("GraphQLRange cannot find a segment that has the cursor: "+y),{requestedEdgeIDs:[],diffCalls:[],pageInfo:_};f=this._orderedSegments[h]}else{p-=i?i.length:0,h=0,f=this._orderedSegments[h]}var m=f.getMetadataAfterCursor(p,y),v=m.edgeIDs,b=m.cursors,D=[];b.length&&(_[d]=b[0],_[l]=b[b.length-1]);var R=v[v.length-1];if((!this._hasLast||h!==this._orderedSegments.length-1||R&&R!==f.getLastID())&&(_[c]=!0,v.length<p)){p-=v.length;var I=f.getLastCursor();if(null===I)D.push({name:"first",value:g.first});else{if(void 0!==I&&D.push({name:"after",value:I}),h!==this._orderedSegments.length-1){var C=this._orderedSegments[h+1].getFirstCursor();void 0!==C&&D.push({name:"before",value:C})}D.push({name:"first",value:p})}}return t&&(i&&i.length&&!g.after&&(v=i.concat(v)),a&&a.length&&!_[c]&&(v=v.concat(a)),s&&s.length&&(v=v.filter(function(e){return-1===s.indexOf(e)})),v.length>g.first&&(v=v.slice(0,g.first))),{requestedEdgeIDs:v,diffCalls:D,pageInfo:_}},t._retrieveRangeInfoForLastQuery=function(e,t){var a,i,s,u=r(1).ConnectionInterface.get(),l=u.END_CURSOR,c=u.HAS_PREV_PAGE,d=u.START_CURSOR;t&&(a=this._getAppendedIDsForQueuedRecord(t),i=this._getPrependedIDsForQueuedRecord(t),s=this._getRemovedIDsForQueuedRecord(t));var f,h,g=o(e),p=g.last+(s?s.length:0),_=(0,n.default)({},r(1).ConnectionInterface.getDefaultPageInfo()),y=g.before;if(void 0!==y){if(null==(h=this._getSegmentIndexByCursor(y)))return console.warn("GraphQLRange cannot find a segment that has the cursor: "+y),{requestedEdgeIDs:[],diffCalls:[],pageInfo:_};f=this._orderedSegments[h]}else{p-=a?a.length:0,h=this._orderedSegments.length-1,f=this._orderedSegments[h]}var m=f.getMetadataBeforeCursor(p,y),v=m.edgeIDs,b=m.cursors,D=[];b.length&&(_[d]=b[0],_[l]=b[b.length-1]);var R=v[0];if((!this._hasFirst||0!==h||R&&R!==f.getFirstID())&&(_[c]=!0,v.length<p)){p-=v.length;var I=f.getFirstCursor();if(null===I)D.push({name:"last",value:g.last});else{if(void 0!==I&&D.push({name:"before",value:I}),0!==h){var C=this._orderedSegments[h-1].getLastCursor();void 0!==C&&D.push({name:"after",value:C})}D.push({name:"last",value:p})}}if(t&&(a&&a.length&&!g.before&&(v=v.concat(a)),i&&i.length&&!_[c]&&(v=i.concat(v)),s&&s.length&&(v=v.filter(function(e){return-1===s.indexOf(e)})),v.length>g.last)){var E=v.length;v=v.slice(E-g.last,E)}return{requestedEdgeIDs:v,diffCalls:D,pageInfo:_}},e.fromJSON=function(t){var n=t[0],a=t[1],i=t[2],o=t[3],s=new e;return s._hasFirst=n,s._hasLast=a,s._staticQueriesMap=i,s._orderedSegments=o.map(function(e){return r(33).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,i.default)(t.getEdgeIDs()))}),r(11)(this._staticQueriesMap,function(t){e.push.apply(e,(0,i.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(29)(e).substring(1)}).join(",")}e.exports=c},function(e,t,r){"use strict";e.exports=r(133).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()&&r(7)(!1,"GraphQLStoreQueryResolver: Expected `resolve` to be called with the same concrete fragment as the constructor. The resolver was created with fragment `%s` but resolved with fragment `%s`.",this._fragment.getDebugName(),e.getDebugName()),Array.isArray(t)){r(7)(e.isPlural(),"GraphQLStoreQueryResolver: Expected id/fragment plurality to be consistent: got plural ids for singular fragment `%s`.",e.getDebugName());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)}r(7)(!e.isPlural(),"GraphQLStoreQueryResolver: Expected id/fragment plurality to be consistent: got a singular id for plural fragment `%s`.",e.getDebugName());var o=this._resolver;return o instanceof a&&(o.dispose(),o=null),o||(o=new i(this._storeData,this._callback)),this._resolver=o,o.resolve(e,t)},e}(),a=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,a=n.length,o=t.length,s=this._resolvers;s.length<o;)s.push(new i(this._storeData,this._callback));for(;s.length>o;)s.pop().dispose();a!==o&&(r=[]);for(var u=0;u<o;u++){var l=s[u].resolve(e,t[u]);(r||u>=a||l!==n[u])&&(r=r||n.slice(0,u)).push(l)}return r&&(this._results=r),this._results},e}(),i=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,a,i=this._fragment,o=this._resultID,s=this._result;if(null!=i&&null!=o&&this._getCanonicalID(o)===this._getCanonicalID(t))if(o!==t||this._hasDataChanged||!e.isEquivalent(i)){var u=this._resolveFragment(e,t);n=u[0],a=u[1],n=r(1).recycleNodesInto(s,n)}else n=s;else{var l=this._resolveFragment(e,t);n=l[0],a=l[1]}if(s!==n){if(this._subscription&&(this._subscription.remove(),this._subscription=null),a){a[t]=!0;var c=this._storeData.getChangeEmitter();this._subscription=c.addListenerForIDs(Object.keys(a),this._handleChange.bind(this)),this._subscribedIDs=a}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(45)(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(9)),a=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 a=e.prototype;return a.sendMutation=function(e){return this._sendMutation(e).then(function(e){return e.json()}).then(function(t){if(t.hasOwnProperty("errors")){var r=i(e,"200",t);e.reject(r)}else e.resolve({response:t.data})}).catch(function(t){return e.reject(t)})},a.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=i(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)})}))},a.supports=function(){return!1},a._sendMutation=function(e){var a,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]);a=(0,n.default)({},this._init,{body:s,method:"POST"})}else a=(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(137)(this._uri,a).then(function(t){return function(e,t){return t.status>=200&&t.status<300?t:t.text().then(function(r){throw i(e,t.status,r)})}(e,t)})},a._sendQuery=function(e){return r(138)(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 i(e,t,n){var a=e instanceof r(78)?"mutation":"query",i="object"==typeof n?function(e,t){var r=e.getQueryString().split("\n");return t.map(function(e,t){var n=e.locations,a=e.message,i=t+1+". ",o=" ".repeat(i.length);return i+a+(n?"\n"+n.map(function(e){var t=e.column,n=e.line,a=r[n-1],i=Math.min(t-1,20);return[a.substr(t-1-i,60)," ".repeat(Math.max(0,i))+"^^^"].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(a," `").concat(e.getDebugName(),"` ")+"failed for the following reasons:\n\n".concat(i));return o.source=n,o.status=t,o}e.exports=a}).call(this,r(89))},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,a={disable:function(){n=!1},getEnabled:function(){return n}};e.exports=a},function(e,t){e.exports=y},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(93)(e.environment)&&r(95)(e.variables)}e.exports={assertRelayContext:function(e){return n(e)||r(0)(!1,"RelayContext: Expected `context.relay` to be an object conforming to the `RelayContext` interface, got `%s`.",e),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(9)),a=function(){function e(t){this.constructor===e&&r(0)(!1,"RelayQueryConfig: Abstract class cannot be instantiated."),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)}),Object.freeze(this.params),Object.freeze(this.queries)}return e.prototype.prepareVariables=function(e){return e},e}();e.exports=a},function(e,t,r){"use strict";var n=r(5)(r(9)),a=r(5)(r(13)),i=function(e){function t(t,a){var i;return(i=e.call(this,t,a)||this)._relay={environment:t.environment,variables:t.queryConfig.params,route:t.queryConfig},i.state={getContainerProps:function(){var e,t;return function(a){t&&e&&e.Container===a.Container&&e.queryConfig===a.queryConfig||(t=r(67)(a.Container,a.queryConfig));var i=(0,n.default)({},a.queryConfig.params,r(38)(t,function(e){return function(e,t){return t?r(18).createForRoot(e.getStoreData().getQueuedStore(),t):null}(a.environment,e)}));return e=a,i}}()},i}(0,a.default)(t,e);var i=t.prototype;return i.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})},i.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)},i.render=function(){var e,t=!1,n=this.props,a=n.readyState,i=n.render;if(a){if(i)e=i({done:a.done,error:a.error,events:a.events,props:a.ready?this.state.getContainerProps(this.props):null,retry:this.props.retry,stale:a.stale});else if(a.ready){var o=this.props.Container;e=r(15).createElement(o,this.state.getContainerProps(this.props))}t=!0}return void 0===e&&(e=null,t=!1),r(15).createElement(r(98).Provider,{value:this._relay},r(15).createElement(r(144),{shouldUpdate:t},e))},t}(r(15).Component);e.exports=i},function(e,t,r){"use strict";var n=r(15).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(9)),a=r(5)(r(13)),i=r(5)(r(68)),o=r(5)(r(19)),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,i.default)((0,i.default)(n)))},n}(0,a.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,a=e.Container,i=e.forceFetch,o=e.onForceFetch,s=e.onPrimeCache,u=e.queryConfig,l=e.environment;if(e.shouldFetch){var c=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(67)(a,u),f=this.pendingRequest=i?o?o(d,c):l.forceFetch(d,c):s?s(d,c):l.primeCache(d,c);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(15).createElement(r(97),{Container:this.props.Container,environment:this.props.environment,queryConfig:this.props.queryConfig,readyState:e,render:this.props.render,retry:this.state.retry})},t}(r(15).Component);(0,o.default)(u,"propTypes",{Container:r(35).Container,forceFetch:r(16).bool,onReadyStateChange:r(16).func,queryConfig:r(35).QueryConfig.isRequired,environment:r(35).Environment,render:r(16).func,shouldFetch:r(16).bool}),(0,o.default)(u,"defaultProps",{shouldFetch:!0}),e.exports=u},function(e,t,r){"use strict";var n=r(5)(r(9));if("function"!=typeof Map||"function"!=typeof Set||"function"!=typeof Promise||"function"!=typeof Object.assign||"function"!=typeof Array.prototype.find)throw new Error("react-relay requires Map, Set, Promise, Object.assign, and Array#find to exist. Use a polyfill to provide these for older browsers.");r(20).injectDefaultNetworkLayer(new(r(88))("/graphql")),e.exports=(0,n.default)({},r(139),{DefaultNetworkLayer:r(88)})},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,a=null;return Array.isArray(n)?a=n.map(r(6).createCallValue):null!=n&&(a=r(6).createCallValue(n)),r(6).createDirectiveArgument(t,a)});return r(6).createDirective(t,n)})}},function(e,t){e.exports=m},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";var n=r(5)(r(13)),a=r(106);(function(){function e(e,t){var r=e.getApplicationName(),n=e.getShallowHash(),a=t.children;return a.hasOwnProperty(r)?a[r].hash!==n&&console.error("`%s` is used as an alias more than once. Please use unique aliases.",r):a[r]={children:{},hash:n},a[r]}a=function(e,r){new t(r).visit(e,{children:{},hash:null})};var t=function(t){function r(e){var r;return(r=t.call(this)||this)._traverseFragmentReferences=e&&e.traverseFragmentReferences||!1,r}(0,n.default)(r,t);var a=r.prototype;return a.visitField=function(t,r){var n=e(t,r);t.isGenerated()||t.canHaveSubselections()&&(t.isPlural()?this._readPlural(t,n):this._readLinkedField(t,n))},a.visitFragment=function(e,t){!this._traverseFragmentReferences&&e.isContainerFragment()||this.traverse(e,t)},a._readPlural=function(e,t){var r=this;e.getChildren().forEach(function(e){return r.visit(e,t)})},a._readLinkedField=function(t,r){r=e(t,r),this.traverse(t,r)},r}(r(21))})(),e.exports=a},function(e,t){e.exports=v},function(e,t,r){"use strict";var n=r(5)(r(9)),a=r(2).Field.build({fieldName:r(3).ID,type:"String"}),i=r(2).Field.build({fieldName:r(3).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]:{},a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=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(108));this._cacheManager=null,this._cachedRecords=e,this._cachedRootCallMap=t,this._cachedStore=new(r(60))({cachedRecords:e,records:a},{cachedRootCallMap:t,rootCallMap:i},o),this._changeEmitter=new(r(109))(s),this._mutationQueue=new(r(110))(this),this._networkLayer=new(r(116)),this._nodeRangeMap=o,this._pendingQueryTracker=new(r(117))(this),this._queryRunner=new(r(119))(this),this._queryTracker=new(r(127)),this._queuedRecords=n,this._queuedStore=new(r(60))({cachedRecords:e,queuedRecords:n,records:a},{cachedRootCallMap:t,rootCallMap:i},o),this._records=a,this._recordStore=new(r(60))({records:a},{rootCallMap:i},o),this._rangeData=s,this._rootCallMap=i,this._taskQueue=new(r(128))}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,a=this._cacheManager;a||r(0)(!1,"RelayStoreData: `restoreQueriesFromCache` should only be called when cache manager is available.");var i=new(r(31)),o=r(1).RelayProfiler.profile("RelayStoreData.readFromDiskCache");return r(82).restoreQueriesDataFromCache(e,this._queuedStore,this._cachedRecords,this._cachedRootCallMap,a,i,{onSuccess:function(){n._handleChangedAndNewDataIDs(i.getChangeSet()),o.stop(),t.onSuccess&&t.onSuccess()},onFailure:function(){n._handleChangedAndNewDataIDs(i.getChangeSet()),o.stop(),t.onFailure&&t.onFailure()}})},t.restoreFragmentFromCache=function(e,t,n,a){var i=this,o=this._cacheManager;o||r(0)(!1,"RelayStoreData: `restoreFragmentFromCache` should only be called when cache manager is available.");var s=new(r(31)),u=r(1).RelayProfiler.profile("RelayStoreData.readFragmentFromDiskCache");return r(82).restoreFragmentDataFromCache(e,t,n,this._queuedStore,this._cachedRecords,this._cachedRootCallMap,o,s,{onSuccess:function(){i._handleChangedAndNewDataIDs(s.getChangeSet()),u.stop(),a.onSuccess&&a.onSuccess()},onFailure:function(){i._handleChangedAndNewDataIDs(s.getChangeSet()),u.stop(),a.onFailure&&a.onFailure()}})},t.handleOSSQueryPayload=function(e,t,n){var a=this,i=r(1).RelayProfiler.profile("RelayStoreData.handleQueryPayload"),o=new(r(31)),s=this.getRecordWriter(),u=new(r(49))(this._queuedStore,s,this._queryTracker,o,{forceIndex:n,updateTrackedQueries:!0});(function(e,t){var n=[];return e.getChildren().forEach(function(a){var i=a;if(i instanceof r(2).Field&&i.canHaveSubselections()){var o,s,u=r(26)(r(6).getField(i.getConcreteQueryNode())),l=u.calls&&u.calls[0];l&&(o=l.name,s=l.metadata&&l.metadata.type);var c={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:i.getType()},d=r(2).Root.create(c,r(10).get("$RelayEnvironment"),e.getVariables()),f=i.getSerializationKey(),h={};t.hasOwnProperty(f)&&(h[d.getFieldName()]=t[f],n.push({field:i,root:d,rootPayload:h}))}}),n})(e,t).forEach(function(t){var n=t.field,i=t.root,l=t.rootPayload;r(84)(u,i,l);var c=r(8).getRootRecordPath();s.putRecord(r(22).ROOT_ID,e.getType(),c),a._queuedStore.getRecordState(r(22).ROOT_ID)!==r(14).EXISTENT?o.createID(r(22).ROOT_ID):o.updateID(r(22).ROOT_ID);var d=[];r(3).getResultsFromPayload(i,l).forEach(function(e){e.result;var t=e.rootCallInfo,r=t.storageKey,n=t.identifyingArgKey,a=s.getDataID(r,n);null!=a&&d.push(a)});var f=n.getStorageKey();if(n.isPlural())s.putLinkedRecordIDs(r(22).ROOT_ID,f,d);else{var h=d[0];null!=h?s.putLinkedRecordID(r(22).ROOT_ID,f,h):s.putField(r(22).ROOT_ID,f,null)}}),this._handleChangedAndNewDataIDs(o.getChangeSet()),i.stop()},t.handleQueryPayload=function(e,t,n){var a=r(1).RelayProfiler.profile("RelayStoreData.handleQueryPayload"),i=new(r(31)),o=new(r(49))(this._queuedStore,this.getRecordWriter(),this._queryTracker,i,{forceIndex:n,updateTrackedQueries:!0});r(84)(o,e,t),this._handleChangedAndNewDataIDs(i.getChangeSet()),a.stop()},t.handleFragmentPayload=function(e,t,n,a,i){var o=r(1).RelayProfiler.profile("RelayStoreData.handleFragmentPayload"),s=new(r(31)),u=new(r(49))(this._queuedStore,this.getRecordWriter(),this._queryTracker,s,{forceIndex:i,updateTrackedQueries:!0});u.createRecordIfMissing(t,e,n,a),u.writePayload(t,e,a,n),this._handleChangedAndNewDataIDs(s.getChangeSet()),o.stop()},t.handleUpdatePayload=function(e,t,n){var a,i=n.configs,o=n.isOptimisticUpdate,s=r(1).RelayProfiler.profile("RelayStoreData.handleUpdatePayload"),u=new(r(31));if(o){var l=r(1).ConnectionInterface.get().CLIENT_MUTATION_ID,c=t[l];"string"!=typeof c&&r(0)(!1,"RelayStoreData.handleUpdatePayload(): Expected optimistic payload to have a valid `%s`.",l),a=this.getRecordWriterForOptimisticMutation(c)}else a=this._getRecordWriterForMutation();var d=new(r(49))(this._queuedStore,a,this._queryTracker,u,{forceIndex:r(59)(),isOptimisticUpdate:o,updateTrackedQueries:!1});r(132)(d,e,t,{configs:i,isOptimisticUpdate:o}),this._handleChangedAndNewDataIDs(u.getChangeSet()),s.stop()},t.buildFragmentQueryForDataID=function(e,t){if(r(4).isClientID(t)){var n=this._queuedStore.getPathToRecord(this._rangeData.getCanonicalClientID(t));return n||r(0)(!1,"RelayStoreData.buildFragmentQueryForDataID(): Cannot refetch record `%s` without a path.",t),r(8).getQuery(this._cachedStore,n,e)}return r(2).Root.build(e.getDebugName()||"UnknownQuery",r(3).NODE,t,[a,i,e],{identifyingArgName:r(3).ID,identifyingArgType:r(3).ID_TYPE,isAbstract:!0,isDeferred:!1,isPlural:!1},r(3).NODE_TYPE)},t.getNodeData=function(){return this._records},t.getQueuedData=function(){return this._queuedRecords},t.clearQueuedData=function(){var e=this;r(11)(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(64))(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(64))(this._records,this._rootCallMap,!1,this._nodeRangeMap,this._cacheManager?this._cacheManager.getMutationWriter():null)},t.getRecordWriterForOptimisticMutation=function(e){return new(r(64))(this._queuedRecords,this._rootCallMap,!0,this._nodeRangeMap,null,e)},t.toJSON=function(){var e=function(e){return e?r(38)(e,function(e){var t=(0,n.default)({},e);return delete t[r(4).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,"RelayStoreData: JSON object is empty");var n=t.cachedRecords,a=t.cachedRootCallMap,i=t.queuedRecords,o=t.records,u=t.rootCallMap,l=t.nodeRangeMap;return s(n),s(i),s(o),new e(n,a,i,o,u,l)},e}();function s(e){for(var t in e){var n=e[t],a=n.__range__;a&&(n.__range__=r(85).fromJSON(a))}}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 a=n+"_"+r(28)(e,t).map(function(e){return r(29)(e).substring(1)}).join(",");if(!this._rangeData[a]){this._rangeData[a]={dataID:n,calls:e,callValues:t};var i=this._rangeDataKeyMap[n];i||(this._rangeDataKeyMap[n]=i=[]),i.push(a)}return a},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)}),a=this._subscribers.length;return this._subscribers.push({subscribedIDs:n,callback:t}),{remove:function(){delete r._subscribers[a]}}},t.broadcastChangeForID=function(e){var t=this,n=this._scheduledIDs;null==n&&(r(41)(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,a=e.callback;for(var i in this._executingIDs)if(this._executingIDs.hasOwnProperty(i)){if(this._executingIDs[i]<t)break;if(n.indexOf(i)>=0){r(47).applyWithGuard(a,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(19)),a=r(5)(r(9)),i=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,"RelayMutationQueue: `createTransactionWithPendingTransaction()` expects a PendingTransaction or TransactionBuilder.");var n=r(36)(i++),a=new(r(111))(this,n),o=e||t(n,a);return this._pendingTransactionMap[n]=o,this._queue.push(o),a},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(12).UNCOMMITTED,t.error=null,this._handleOptimisticUpdate(t)},t.commit=function(e){var t=this._get(e),n=t.getCollisionKey(),a=n&&this._collisionQueueMap[n];if(a)return a.push(t),t.status=r(12).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 a=n.indexOf(t);-1!==a&&n.splice(a,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,"RelayMutationQueue: `%s` is not a valid pending transaction ID.",e),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(12).COMMIT_FAILED:r(12).COLLISION_COMMIT_FAILED;e.status=n,e.error=t;var a=!0,i=e.onFailure;if(i){r(47).applyWithGuard(i,null,[e.mutationTransaction,function(){a=!1}],null,"RelayMutationTransaction:onCommitFailure")}t&&this._failCollisionQueue(e),a&&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(47).applyWithGuard(n,null,[t],null,"RelayMutationTransaction:onCommitSuccess")},t._handleCommit=function(e){var t=this;e.status=r(12).COMMITTING,e.error=null;var n=new(r(78))(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(41)(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(12).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(112).Fragment(this.mutation.getFatQuery());e instanceof r(2).Fragment||r(0)(!1,"RelayMutationQueue: Expected `getFatQuery` to return a GraphQL Fragment"),this._fatQuery=r(26)(r(48)(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,a.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,"RelayMutation: Expected `getMutation` to return a mutation created with Relay.QL`mutation { ... }`."),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){console.groupCollapsed&&console.groupEnd&&console.groupCollapsed("Optimistic query for `"+this.getCallName()+"`");var t=this._getRawOptimisticResponse();if(t){var n=this.getOptimisticConfigs(),a=u(e);this._optimisticQuery=n?r(61).buildQuery({configs:n,fatQuery:this.getFatQuery(),input:this.getInputVariable(),mutationName:this.mutation.constructor.name,mutation:this.getMutationNode(),tracker:a}):r(61).buildQueryForOptimisticUpdate({response:t,fatQuery:this.getFatQuery(),mutation:this.getMutationNode()})}else this._optimisticQuery=null;console.groupCollapsed&&console.groupEnd&&(r(42).printOptimisticMutation(this._optimisticQuery,t),console.groupEnd())}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(80).inferRelayPayloadFromData(e):e}return this._optimisticResponse},t.getQuery=function(e){if(!this._query){console.groupCollapsed&&console.groupEnd&&console.groupCollapsed("Mutation query for `"+this.getCallName()+"`");var t=u(e);this._query=r(61).buildQuery({configs:this.getConfigs(),fatQuery:this.getFatQuery(),input:this.getInputVariable(),mutationName:this.getMutationNode().name,mutation:this.getMutationNode(),tracker:t}),console.groupCollapsed&&console.groupEnd&&(r(42).printMutation(this._query),console.groupEnd())}return this._query},e}();function u(e){var t=e.getQueryTracker();return t||r(0)(!1,"RelayMutationQueue: a RelayQueryTracker was not configured but an attempt to process a RelayMutation instance was made. Either use RelayGraphQLMutation (which does not require a tracker), or use `RelayStoreData.injectQueryTracker()` to configure a tracker. Be aware that trackers are provided by default, so if you are seeing this error it means that somebody has explicitly intended to opt out of query tracking."),t}e.exports=o},function(e,t,r){"use strict";var n=r(5)(r(19)),a=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(12).CREATED&&r(0)(!1,"RelayMutationTransaction: Only transactions with status `CREATED` can be applied."),this._mutationQueue.applyOptimistic(this._id),this},t.commit=function(){var e=this.getStatus();return e!==r(12).CREATED&&e!==r(12).UNCOMMITTED&&r(0)(!1,"RelayMutationTransaction: Only transactions with status `CREATED` or `UNCOMMITTED` can be committed."),this._mutationQueue.commit(this._id),this},t.recommit=function(){var e=this.getStatus();e!==r(12).COLLISION_COMMIT_FAILED&&e!==r(12).COMMIT_FAILED&&e!==r(12).CREATED&&r(0)(!1,"RelayMutationTransaction: Only transaction with status `CREATED`, `COMMIT_FAILED`, or `COLLISION_COMMIT_FAILED` can be recomitted."),this._mutationQueue.commit(this._id)},t.rollback=function(){var e=this.getStatus();e!==r(12).COLLISION_COMMIT_FAILED&&e!==r(12).COMMIT_FAILED&&e!==r(12).COMMIT_QUEUED&&e!==r(12).CREATED&&e!==r(12).UNCOMMITTED&&r(0)(!1,"RelayMutationTransaction: Only transactions with status `CREATED`, `UNCOMMITTED`, `COMMIT_FAILED`, `COLLISION_COMMIT_FAILED`, or `COMMIT_QUEUED` can be rolled back."),this._rolledBack=!0,this._mutationQueue.rollback(this._id)},t.getError=function(){return this._mutationQueue.getError(this._id)},t.getStatus=function(){return this._rolledBack?r(12).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=a},function(e,t,r){"use strict";var n={Field:function(e){var t=a(e,r(2).Field);return t instanceof r(2).Field||r(0)(!1,"fromGraphQL.Field(): Expected a GraphQL field node."),t},Fragment:function(e){var t=a(e,r(2).Fragment);return t instanceof r(2).Fragment||r(0)(!1,"fromGraphQL.Fragment(): Expected a GraphQL fragment node."),t},Query:function(e){var t=a(e,r(2).Root);return t instanceof r(2).Root||r(0)(!1,"fromGraphQL.Query(): Expected a root node."),t},Operation:function(e){var t=a(e,r(2).Operation);return t instanceof r(2).Operation||r(0)(!1,"fromGraphQL.Operation(): Expected a mutation/subscription node."),t}};function a(e,t){var n=r(10).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&&r(7)(!1,"RelayNetworkLayer: Call received to injectDefaultImplementation(), but a default layer was already injected."),this._defaultImplementation=e},t.injectImplementation=function(e){this._implementation&&r(7)(!1,"RelayNetworkLayer: Call received to injectImplementation(), but a layer was already injected."),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(43)(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()),a=function(){n.stop(),t&&(t.stop(),t=null)};e.getPromise().then(a,a).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(43)(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,"RelayNetworkLayer: Use `RelayEnvironment.injectNetworkLayer` to configure a network layer."),e},t.fetchRelayQuery=function(e){var t=this,n=this._queue||[];this._queue||(this._queue=n,r(41)(function(){t._queue=null,t.sendQueries(n)}));var a=new(r(76))(e);return n.push(a),a.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(118)),this._storeData=e}var t=e.prototype;return t.add=function(e){return new a(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}(),a=function(){function e(e,t){var n=e.fetchMode,a=e.forceIndex,i=e.query,o=t.pendingFetchMap,s=t.preloadQueryMap,u=t.storeData,l=i.getID();this._forceIndex=a,this._pendingFetchMap=o,this._preloadQueryMap=s,this._query=i,this._resolvedDeferred=new(r(58)),this._resolvedQuery=!1,this._storeData=u,this._fetchQueryPromise=n===r(30).PRELOAD?this._preloadQueryMap.get(l):u.getNetworkLayer().fetchRelayQuery(i),this._fetchedQuery=!1,this._error=null,this._pendingFetchMap[l]={fetch:this,query:i},r(43)(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(43)(this._storeData.getTaskQueue().enqueue(function(){var n=e.response;n&&"object"==typeof n||r(0)(!1,"RelayPendingQueryTracker: Expected response to be an object, got `%s`.",n?typeof n:n),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=b},function(e,t,r){"use strict";var n=r(5)(r(27)),a=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(30).CLIENT;return o(this._storeData,e,t,n)},t.forceFetch=function(e,t){var n=r(30).REFETCH;return o(this._storeData,e,t,n)},e}();function i(e){return!!Object.keys(e).length}function o(e,t,a,o){var s=o===r(30).REFETCH?r(1).RelayProfiler.profile("GraphQLQueryRunner.forceFetch"):r(1).RelayProfiler.profile("GraphQLQueryRunner.primeCache"),u=new(r(122))(a),l={},c={};function d(t){return r(124)(e.getQueuedStore(),t.getQuery())}return r(43)(e.getTaskQueue().enqueue(function(){var a=o===r(30).REFETCH?r(59)():null,f=[];o===r(30).CLIENT?r(11)(t,function(t){t&&f.push.apply(f,(0,n.default)(r(125)(t,e.getRecordStore(),e.getQueryTracker())))}):r(11)(t,function(e){e&&f.push(e)});var h=function(e,t){if(!e.getNetworkLayer().supports("defer"))return t.forEach(function(e){r(7)(!e.hasDeferredDescendant(),"Relay: Query `%s` contains a deferred fragment (e.g. `getFragment('foo').defer()`) which is not supported by the default network layer. This query will be sent without deferral.",e.getName())}),t;var a=[];return t.forEach(function(e){return a.push.apply(a,(0,n.default)(r(120)(r(121)(e))))}),a}(e,f),g=[];h.length&&g.push({type:"NETWORK_QUERY_START"}),h.forEach(function(t){var n=e.getPendingQueryTracker().add({query:t,fetchMode:o,forceIndex:a,storeData:e}),s=t.getID();l[s]=n,t.isDeferred()||(c[s]=n),n.getResolvedPromise().then(function(e){var t=e.getQuery(),n=t.getID();delete l[n],t.isDeferred()||delete c[n],i(c)||r(123)(l,function(e){return e.isResolvable()})||(i(l)?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))}),i(l)?i(c)?(u.update({ready:!1},g.concat([{type:"CACHE_RESTORE_START"}])),r(41)(function(){if(e.hasCacheManager()){var t=r(38)(c,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(126)(c,d)&&i(c)?u.update({ready:!0,stale:!0},[{type:"CACHE_RESTORED_REQUIRED"}]):u.update({},[{type:"CACHE_RESTORE_FAILED"}])})):u.update({ready:!0},g.concat([{type:"STORE_FOUND_REQUIRED"}])):u.update({done:!0,ready:!0},g.concat([{type:"STORE_FOUND_ALL"}])),s.stop()})),{abort:function(){u.update({aborted:!0},[{type:"ABORT"}])}}}e.exports=a},function(e,t,r){"use strict";var n=r(5)(r(27));e.exports=function(e){for(var t=[],r=[e];r.length;){var a=e=r.shift(),i=a.required,o=a.deferred;i&&t.push(i),o.length&&r.push.apply(r,(0,n.default)(o))}return t}},function(e,t,r){"use strict";var n=r(5)(r(13));function a(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,"splitDeferredRelayQueries(): Unexpected non-scalar, requisite field."),n})}function i(e){return e.canHaveSubselections()?e.getChildren().every(i):e.isGenerated()&&!e.isRefQueryDependency()}var o=function(e){function t(){return e.apply(this,arguments)||this}(0,n.default)(t,e);var i=t.prototype;return i.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 a=e.getInferredPrimaryKey(),i=n.getChildren().map(function(e){return e instanceof r(2).Field&&e.getSchemaName()===a?e.cloneAsRefQueryDependency():e});n=n.clone(i)}return n},i.visitFragment=function(e,t){if(!e.getChildren().length)return null;if(e.isDeferred()){var n=t.__nodePath__,i={__nodePath__:n,__parent__:t,__refQuery__:null,deferred:[],required:null},o=this.traverse(e,i);if(o){var s=function(e,t){for(var n=t.length-1;n>=0;n--){var i=t[n];if(i instanceof r(2).Field&&i.getInferredRootCallName())return new(r(81))(e,t.slice(0,n+1));var o=a(e,i),s=[e].concat(o);e=i.clone(s)}e instanceof r(2).Root||r(0)(!1,"splitDeferredRelayQueries(): Cannot build query without a root node.");var u=e.getIdentifyingArg(),l=u&&u.name||null,c=u&&u.value||null,d={identifyingArgName:l,identifyingArgType:u&&u.type||r(3).ID_TYPE,isAbstract:!0,isDeferred:!0,isPlural:!1};return r(2).Root.build(e.getName(),e.getFieldName(),c,e.getChildren(),d,e.getType())}(o,n);s instanceof r(2).Root?i.required=s:s instanceof r(81)&&(i.__refQuery__=s)}return(o||i.deferred.length)&&t.deferred.push(i),null}return e.hasDeferredDescendant()?this.traverse(e,t):e},i.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(63));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&&i(t.required)&&(t.required=null),t.deferred=t.deferred.map(function(n){var a=n.__refQuery__;if(a){var i=t.required;if(!i)for(var o=t;o.__parent__&&!(i=o.__parent__.required);)o=o.__parent__;i||r(0)(!1,"splitDeferredRelayQueries(): Expected a context root query."),n.required=function(e,t){var n=e.node;n instanceof r(2).Field||n instanceof r(2).Fragment||r(0)(!1,"splitDeferredRelayQueries(): Ref query requires a field or fragment.");for(var a,i=["$","*"],o=0;o<e.nodePath.length;o++)(a=e.nodePath[o])instanceof r(2).Field&&(i.push(a.getSerializationKey()),a.isPlural()&&i.push("*"));i.length>2||r(0)(!1,"splitDeferredRelayQueries(): Ref query requires a complete path.");var s=a.getInferredPrimaryKey();return s||r(0)(!1,"splitDeferredRelayQueries(): Ref query requires a primary key."),i.push(s),r(2).Root.build(t.getName(),r(3).NODES,r(6).createBatchCallVariable(t.getID(),i.join(".")),[n],{identifyingArgName:r(3).ID,identifyingArgType:r(3).ID_TYPE,isAbstract:!0,isDeferred:!0,isPlural:!1},r(3).NODE_TYPE)}(a,i)}return e(n)}),t}(t)})},function(e,t,r){"use strict";var n=r(5)(r(9)),a=r(5)(r(27)),i=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 n=this._readyState;n.aborted||(n.done||n.error?e.stale?n.error&&this._mergeState(e,t):e.aborted||r(7)(!1,"RelayReadyState: Invalid state change from `%s` to `%s`.",JSON.stringify(n),JSON.stringify(e)):this._mergeState(e,t))},t._mergeState=function(e,t){var i=this;this._readyState=(0,n.default)({},this._readyState,e,{events:t&&t.length?(0,a.default)(this._readyState.events).concat((0,a.default)(t)):this._readyState.events}),this._scheduled||(this._scheduled=!0,r(41)(function(){i._scheduled=!1,i._onReadyStateChange(i._readyState)}))},e}();e.exports=i},function(e,t){e.exports=D},function(e,t,r){"use strict";var n=r(5)(r(13));var a=function(e){function t(t){var r;return(r=e.call(this)||this)._store=t,r}(0,n.default)(t,e);var a=t.prototype;return a.traverse=function(e,t){for(var r=e.getChildren(),n=0;n<r.length;n++){if(!t.result)return;this.visit(r[n],t)}},a.visitRoot=function(e,t){var n=this,a=e.getStorageKey();r(24)(e,function(r){var i=r.identifyingArgKey,o=n._store.getDataID(a,i);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}})},a.visitFragment=function(e,t){var n=t.dataID;n&&r(40)(e,this._store.getType(n))&&this.traverse(e,t)},a.visitField=function(e,t){var n=t.dataID,a=n&&this._store.getRecordState(n);if(a!==r(14).UNKNOWN){if(a!==r(14).NONEXISTENT){var i=r(1).ConnectionInterface.get(),o=i.EDGES,s=i.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},a._checkScalar=function(e,t){void 0===(t.dataID&&this._store.getField(t.dataID,e.getStorageKey()))&&(t.result=!1)},a._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 a={dataID:r[n],rangeInfo:void 0,result:!0};this.traverse(e,a),t.result=a.result}}else t.result=!1},a._checkConnection=function(e,t){var r=e.getCallsWithValues(),n=t.dataID&&this._store.getLinkedRecordID(t.dataID,e.getStorageKey());if(void 0!==n){var a={dataID:n,rangeInfo:null,result:!0},i=this._store.getRangeMetadata(n,r);i&&(a.rangeInfo=i),this.traverse(e,a),t.result=t.result&&a.result}else t.result=!1},a._checkEdges=function(e,t){var r=t.rangeInfo;if(r)if(r.diffCalls.length)t.result=!1;else for(var n=r.filteredEdges,a=0;a<n.length&&t.result;a++){var i={dataID:n[a].edgeID,rangeInfo:void 0,result:!0};this.traverse(e,i),t.result=i.result}else t.result=!1},a._checkPageInfo=function(e,t){var r=t.rangeInfo;r&&r.pageInfo||(t.result=!1)},a._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(21));e.exports=r(1).RelayProfiler.instrument("checkRelayQueryData",function(e,t){var r={dataID:void 0,rangeInfo:void 0,result:!0};return new a(e).visit(t,r),r.result})},function(e,t,r){"use strict";var n=r(2).Field.build({fieldName:r(3).ID,metadata:{isRequisite:!0},type:"String"}),a=r(2).Field.build({fieldName:r(3).TYPENAME,metadata:{isRequisite:!0},type:"String"}),i=r(2).Field.build({fieldName:r(3).NODE,children:[n,a],metadata:{canHaveSubselections:!0},type:r(3).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 a=n.connectionField,i=n.dataID,o=n.edgeID,s=n.rangeInfo;if(a&&s){var u=r(1).ConnectionInterface.get(),l=u.EDGES,c=u.PAGE_INFO;if(o)return e.getSchemaName()===l?this.diffConnectionEdge(a,e,r(8).getPath(t,e,o),o,s):null;if(e.getSchemaName()===l||e.getSchemaName()===c)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,i):e.isPlural()?this.diffPluralLink(e,t,i):this.diffLink(e,t,i):this.diffScalar(e,i)},t.traverse=function(e,t,n){var a,i,o,s,u=this,l=!1,c=!1;return e.getChildren().forEach(function(e){if(e instanceof r(2).Field){var a=u.visitField(e,t,n),o=a?a.diffNode:null,d=a&&u._queryTracker?a.trackedNode:null;o?((i=i||[]).push(o),l=l||!o.isGenerated()):e.isRequisite()&&!n.rangeInfo&&(i=i||[]).push(e),u._queryTracker&&(d?((s=s||[]).push(d),c=c||!d.isGenerated()):e.isRequisite()&&(s=s||[]).push(e))}else if(e instanceof r(2).Fragment){if(r(40)(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),g=h?h.diffNode:null,p=h?h.trackedNode:null;g&&((i=i||[]).push(g),l=!0),p&&((s=s||[]).push(p),c=!0)}else(i=i||[]).push(e)}}),i&&l&&(a=e.clone(i)),s&&c&&(o=e.clone(s)),!this._queryTracker||!o||o instanceof r(2).Fragment||this._queryTracker.trackNodeForID(o,n.dataID),{diffNode:a,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 a=this._store.getLinkedRecordID(n,e.getStorageKey());return void 0===a?{diffNode:e,trackedNode:null}:null===a?{diffNode:null,trackedNode:this._queryTracker?e:null}:this.traverse(e,r(8).getPath(t,e,a),s(a))},t.diffPluralLink=function(e,t,n){var a=this,i=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()===i){var l=!1;if(o.forEach(function(n){var i=a.traverse(e,r(8).getPath(t,e,n),s(n));i&&(l=l||!!i.trackedNode||!!i.diffNode,i.diffNode&&a.splitQuery(u(n,i.diffNode.getChildren(),r(8).getName(t),e.getType(),e.isAbstract())))}),l)return{diffNode:null,trackedNode:this._queryTracker?e:null}}else{var c=!1,d=!1;if(o.some(function(n){var i=a.traverse(e,r(8).getPath(t,e,n),s(n));return i&&i.diffNode&&(c=!0),i&&i.trackedNode&&(d=!0),c&&d}),c||d)return{diffNode:c?e:null,trackedNode:d?e:null}}return null},t.diffConnection=function(e,t,n){var a=this,i=this._store,o=i.getLinkedRecordID(n,e.getStorageKey()),u=i.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(8).getPath(t,e,o),s(o));var l=u.diffCalls,c=!1;u.filteredEdges.forEach(function(n){var i={connectionField:e,dataID:o,edgeID:n.edgeID,rangeInfo:u},s=a.traverse(e,r(8).getPath(t,e,n.edgeID),i);s&&(c=c||!!s.trackedNode)});var d={connectionField:e,dataID:o,edgeID:null,rangeInfo:u},f=this.traverse(e,r(8).getPath(t,e,o),d),h=f?f.diffNode:null,g=f?f.trackedNode:null;return l.length&&h instanceof r(2).Field&&(h=h.cloneFieldWithCalls(h.getChildren(),l)),c&&(g=e),{diffNode:h,trackedNode:this._queryTracker?g:null}},t.diffConnectionEdge=function(e,t,n,a,o){var l=r(1).ConnectionInterface.get().NODE,c=!1,d=this.traverse(t,r(8).getPath(n,t,a),s(a)),f=d?d.diffNode:null,h=d?d.trackedNode:null,g=this._store.getLinkedRecordID(a,l);if(f)if(!g||r(4).isClientID(g))r(7)(e.isConnectionWithoutNodeID(),"RelayDiffQueryBuilder: Field `node` on connection `%s` cannot be retrieved if it does not have an `id` field. If you expect fields to be retrieved on this field, add an `id` field in the schema. If you choose to ignore this warning, you can silence it by adding `@relay(isConnectionWithoutNodeID: true)` to the connection field.",e.getStorageKey());else{var p=function e(t){var n=r(1).ConnectionInterface.get(),a=n.NODE;var i=t.getChildren();var o=[];var s=null;var u=[];var l=!1;for(var c=0;c<i.length;c++){var d=i[c];if(d instanceof r(2).Field)if(d.getSchemaName()===a){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(3).ID||(s=d)}else s=d}else o.push(d),l=l||!d.isRequisite();else if(d instanceof r(2).Fragment){var g=e(d),p=g.edges,_=g.node;p&&(o.push(p),l=!0),_&&(u.push(_),s=_)}}return{edges:l?t.clone(o):null,node:s&&r(2).Fragment.build("diffRelayQuery",s.getType(),u,{isAbstract:s.isAbstract()})}}(f),_=p.edges,y=p.node;if(y){c=!0;var m=t.getFieldByStorageKey("node");m||r(0)(!1,"RelayDiffQueryBuilder: Expected connection `%s` to have a `node` field.",e.getSchemaName()),this.splitQuery(u(g,y.getChildren(),r(8).getName(n),m.getType(),m.isAbstract()))}if(_)if(e.isFindable()){_=_.clone(_.getChildren().concat(i));var v=e.cloneFieldWithCalls([_],o.filterCalls.concat({name:"find",value:g}));if(v){c=!0;var b=r(8).getParent(r(8).getParent(n)),D=r(8).getQuery(this._store,b,v);this.splitQuery(D)}}else r(7)(!1,"RelayDiffQueryBuilder: connection `edges{*}` fields can only be refetched if the connection supports the `find` call. Cannot refetch data for field `%s`.",e.getStorageKey())}return this._queryTracker?{diffNode:null,trackedNode:c?t:h}:null},e}();function s(e){return{connectionField:null,dataID:e,edgeID:null,rangeInfo:null}}function u(e,t,i,o,s){var u=r(1).ConnectionInterface.get().NODE,l=[n,a],c=[];return t.forEach(function(e){e instanceof r(2).Field?c.push(e):l.push(e)}),l.push(r(2).Fragment.build("diffRelayQuery",o,c,{isAbstract:s})),r(2).Root.build(i,u,e,l,{identifyingArgName:r(3).ID,identifyingArgType:r(3).ID_TYPE,isAbstract:!0,isDeferred:!1,isPlural:!1},r(3).NODE_TYPE)}e.exports=r(1).RelayProfiler.instrument("diffRelayQuery",function(e,t,n){var a,i=r(8).create(e),u=[],l=new o(t,n),c=e.getIdentifyingArg(),d=c&&c.value||null,f=Array.isArray(d)&&d.length>1;null!=c&&(a={identifyingArgName:c.name,identifyingArgType:null!=c.type?c.type:r(3).ID_TYPE,isAbstract:e.isAbstract(),isDeferred:!1,isPlural:!1});var h=e.getFieldName(),g=e.getStorageKey();return r(24)(e,function(n){var o,c=n.identifyingArgValue,d=n.identifyingArgKey;f?(null==c&&r(0)(!1,"diffRelayQuery(): Unexpected null or undefined value in root call argument array for query, `%s(...).",h),o=r(2).Root.build(e.getName(),h,[c],e.getChildren(),a,e.getType())):o=e;var p=t.getDataID(g,d);if(null!=p){var _=s(p),y=l.visit(o,i,_),m=y?y.diffNode:null;m&&(m instanceof r(2).Root||r(0)(!1,"diffRelayQuery(): Expected result to be a root query."),u.push(m))}else u.push(o)}),u.concat(l.getSplitQueries())})},function(e,t){e.exports=R},function(e,t,r){"use strict";var n=r(5)(r(27)),a=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 a=t.isMerged,i=t.trackedNodes;if(!a){var o=[];i.forEach(function(e){o.push.apply(o,(0,n.default)(e.getChildren()))}),i.length=0,t.isMerged=!0;var s=r(2).Fragment.build("RelayQueryTracker",r(3).NODE_TYPE,o);(s=r(48)(s))&&i.push(s)}var u=i[0];return u?u.getChildren():[]},t.untrackNodesForID=function(e){delete this._trackedNodesByID[e]},e}();e.exports=a},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 a=new Promise(function(t,n){var a=0,i=null;!function o(s){i?n(i):a>=r.length?t(s):e._queue.push(function(){o(function(){var e=r[a++];try{s=e(s)}catch(e){i=e,s=void 0}return s}())})}(void 0)});return this._scheduleIfNecessary(),a},t.injectScheduler=function(e){this._schedule=e},t._createTaskExecutor=function(e){var t=this,n=!1;return function(){n&&r(0)(!1,"RelayTaskQueue: Tasks can only be executed once."),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(13));var a=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 a=t.prototype;return a.getPendingNodeStates=function(){return this._pendingNodeStates},a.traverse=function(e,t){for(var r=e.getChildren(),n=0;n<r.length;n++){if(t.missingData)return;this.visit(r[n],t)}},a.visitFragment=function(e,t){var n=t.dataID,a=this._store.getRecordState(n);a!==r(14).UNKNOWN?a!==r(14).NONEXISTENT&&r(40)(e,this._store.getType(n))&&this.traverse(e,t):this._handleMissingData(e,t)},a.visitField=function(e,t){var n=r(1).ConnectionInterface.get(),a=n.EDGES,i=n.PAGE_INFO,o=t.dataID,s=this._store.getRecordState(o);if(s!==r(14).UNKNOWN){if(s!==r(14).NONEXISTENT){if(t.rangeCalls&&!t.rangeInfo){var u=this._store.getRangeMetadata(o,t.rangeCalls);u&&(t.rangeInfo=u)}var l=t.rangeInfo;l&&e.getSchemaName()===a?this._visitEdges(e,t):l&&e.getSchemaName()===i?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)},a._visitScalar=function(e,t){void 0===this._store.getField(t.dataID,e.getStorageKey())&&this._handleMissingData(e,t)},a._visitPlural=function(e,t){var n=this._store.getLinkedRecordIDs(t.dataID,e.getStorageKey());if(void 0!==n){if(n)for(var a=0;a<n.length&&!t.missingData;a++){var i={dataID:n[a],missingData:!1,path:r(8).getPath(t.path,e,n[a]),rangeCalls:void 0,rangeInfo:void 0};this.traverse(e,i),t.missingData=i.missingData}}else this._handleMissingData(e,t)},a._visitConnection=function(e,t){var n=e.getCallsWithValues(),a=this._store.getLinkedRecordID(t.dataID,e.getStorageKey());if(void 0!==a){if(a){var i={dataID:a,missingData:!1,path:r(8).getPath(t.path,e,a),rangeCalls:n,rangeInfo:null},o=this._store.getRangeMetadata(a,n);o&&(i.rangeInfo=o),this.traverse(e,i),t.missingData=t.missingData||i.missingData}}else this._handleMissingData(e,t)},a._visitEdges=function(e,t){var n=t.rangeInfo;if(n)if(n.diffCalls.length)t.missingData=!0;else for(var a=n.requestedEdgeIDs,i=0;i<a.length&&!t.missingData;i++){var o={dataID:a[i],missingData:!1,path:r(8).getPath(t.path,e,a[i]),rangeCalls:void 0,rangeInfo:void 0};this.traverse(e,o),t.missingData=t.missingData||o.missingData}else this._handleMissingData(e,t)},a._visitPageInfo=function(e,t){var r=t.rangeInfo;r&&r.pageInfo||this._handleMissingData(e,t)},a._visitLinkedField=function(e,t){var n=this._store.getLinkedRecordID(t.dataID,e.getStorageKey());if(void 0!==n){if(n){var a={dataID:n,missingData:!1,path:r(8).getPath(t.path,e,n),rangeCalls:void 0,rangeInfo:void 0};this.traverse(e,a),t.missingData=t.missingData||a.missingData}}else this._handleMissingData(e,t)},a._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(21));e.exports=r(1).RelayProfiler.instrument("findRelayQueryLeaves",function(e,t,r,n,i,o){var s=new a(e,t),u={dataID:n,missingData:!1,path:i,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(13)),a=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 a=t.prototype;return a.abort=function(){r(7)("LOADING"===this._state,"RelayCacheProcessor: Can only abort an in-progress read operation."),this._state="COMPLETED"},a.handleFailure=function(e){"COMPLETED"===this._state&&r(0)(!1,"RelayStoreReader: Query set already failed/completed."),this._state="COMPLETED",this._callbacks.onFailure&&this._callbacks.onFailure(e)},a.handleNodeVisited=function(e,t,r,n){},a.handleIdentifiedRootVisited=function(e,t,r,n){},a.process=function(e){"PENDING"!==this._state&&r(0)(!1,"RelayCacheProcessor: A `read` is in progress."),this._state="LOADING",e(),this._isDone()&&this._handleSuccess()},a.queueIdentifiedRoot=function(e,t,r){var n=this,a=e.getStorageKey();this._cacheManager.readRootCall(a,t||"",function(i,o){if("COMPLETED"!==n._state)if(i)n.handleFailure(i);else{n.handleIdentifiedRootVisited(e,o,t,r);var s=n._getRootKey(a,t),u=n._pendingRoots[s];delete n._pendingRoots[s];for(var l=0;l<u.length;l++){if("COMPLETED"===n._state)return;n.traverse(u[l],r)}n._isDone()&&n._handleSuccess()}})},a.queueNode=function(e,t,r){var n=this;this._cacheManager.readNode(t,function(a,i){if("COMPLETED"!==n._state)if(a)n.handleFailure(a);else{n.handleNodeVisited(e,t,i,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()}})},a.visitIdentifiedRoot=function(e,t,r){var n=e.getStorageKey(),a=this._getRootKey(n,t);this._pendingRoots.hasOwnProperty(a)?this._pendingRoots[a].push(e):(this._pendingRoots[a]=[e],this.queueIdentifiedRoot(e,t,r))},a.visitNode=function(e,t,r){this._pendingNextStates.hasOwnProperty(t)?this._pendingNextStates[t].push(r):(this._pendingNextStates[t]=[r],this.queueNode(e,t,r))},a.visitRoot=function(e,t){var n=this;r(24)(e,function(r){var a=r.identifyingArgKey;"COMPLETED"!==n._state&&n.visitIdentifiedRoot(e,a,t)})},a._getRootKey=function(e,t){return"".concat(e,"*").concat(t||"")},a._handleSuccess=function(){"COMPLETED"===this._state&&r(0)(!1,"RelayStoreReader: Query set already failed/completed."),this._state="COMPLETED",this._callbacks.onSuccess&&this._callbacks.onSuccess()},a._isDone=function(){return r(83)(this._pendingRoots)&&r(83)(this._pendingNextStates)&&"LOADING"===this._state},t}(r(21));e.exports=a},function(e,t){e.exports=I},function(e,t,r){"use strict";var n,a=r(5)(r(9)),i=r(1).RangeOperations.APPEND,o=r(1).RangeOperations.IGNORE,s=r(1).RangeOperations.PREPEND,u=r(1).RangeOperations.REFETCH,l=r(1).RangeOperations.REMOVE;var c="client:cursor";function d(e,t){var n=e.getRecordStore(),a=e.getRecordWriter();if(n.getRecordState(t)!==r(14).NONEXISTENT){var i=n.getConnectionIDsForRecord(t);i&&i.forEach(function(n){var i=r(50)(n,t);a.applyRangeUpdate(n,i,l),e.recordUpdate(i),e.recordUpdate(n),d(e,i)}),a.deleteRecord(t),e.recordUpdate(t)}}function f(e,t,n,a){var i=r(1).ConnectionInterface.get().CLIENT_MUTATION_ID;if("error"!==t&&t!==i)if(Array.isArray(n))n.forEach(function(n){"object"!=typeof n||null==n||Array.isArray(n)||g(n,r(3).ID)&&f(e,t,n,a)});else{var o,s=n,u=e.getRecordStore(),l=g(s,r(3).ID);null!=l?o=r(8).createForID(l,"writeRelayUpdatePayload"):((l=u.getDataID(t))||r(0)(!1,"writeRelayUpdatePayload(): Expected a record ID in the response payload supplied to update the store for field `%s`, payload keys [%s], operation name `%s`.",t,Object.keys(n).join(", "),a.getName()),o=r(8).create(r(2).Root.build("writeRelayUpdatePayload",t,null,null,{identifyingArgName:null,identifyingArgType:null,isAbstract:!0,isDeferred:!1,isPlural:!1},r(3).ANY_TYPE)));!function n(a){a.getChildren().forEach(function(a){a instanceof r(2).Fragment?n(a):a instanceof r(2).Field&&a.getSerializationKey()===t&&o&&l&&(e.createRecordIfMissing(a,l,o,s),e.writePayload(a,l,s,o))})}(a)}}function h(e,t,n){if(1===t.length){var a=e.getDataID(t[0]);if(a)return[a]}var i=n;return t.forEach(function(e,n){i&&!Array.isArray(i)&&(i=n===t.length-1?function(e,t){var n=e[t];return null!=n&&"object"!=typeof n&&r(0)(!1,"writeRelayUpdatePayload(): Expected `%s` to be an object/array, got `%s`.",t,JSON.stringify(n)),n}(i,e):p(i,e))}),i?(Array.isArray(i)||(i=[i]),i.map(function(e){var n=g(e,r(3).ID);return null==n&&r(0)(!1,"writeRelayUpdatePayload(): Expected `%s.id` to be a string.",t.join(".")),n})):null}function g(e,t){var n=e[t];return"number"==typeof n&&(r(7)(!1,"writeRelayUpdatePayload(): Expected `%s` to be a string, got the number `%s`.",t,n),n=""+n),null!=n&&"string"!=typeof n&&r(0)(!1,"writeRelayUpdatePayload(): Expected `%s` to be a string, got `%s`.",t,JSON.stringify(n)),n}function p(e,t){var n=e[t];return null==n||"object"==typeof n&&!Array.isArray(n)||r(0)(!1,"writeRelayUpdatePayload(): Expected `%s` to be an object, got `%s`.",t,JSON.stringify(n)),n}e.exports=r(1).RelayProfiler.instrument("writeRelayUpdatePayload",function(e,t,_,y){var m=y.configs,v=y.isOptimisticUpdate;m.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,_,f);break;case r(1).MutationTypes.RANGE_ADD:!function(e,t,d,f,h){var _=r(1).ConnectionInterface.get().CLIENT_MUTATION_ID,y=g(t,_);y||r(0)(!1,"writeRelayUpdatePayload(): Expected operation `%s` to have a `%s`.",d.getName(),_);var m=e.getRecordStore(),v=p(t,f.edgeName),b=v&&p(v,r(3).NODE);if(v&&b){var D=f.parentID;if(!D){var R=p(v,"source");R&&(D=g(R,r(3).ID))}D||r(0)(!1,"writeRelayUpdatePayload(): Cannot insert edge without a configured `parentID` or a `%s.source.id` field.",f.edgeName);var I=g(b,r(3).ID)||r(32)(),C=v.cursor||c,E=(0,a.default)({},v,{cursor:C,node:(0,a.default)({},b,{id:I})}),F=m.getConnectionIDsForField(D,f.connectionName);if(F&&F.forEach(function(t){return function(e,t,a,c,d,f){var h=e.getRecordStore(),g=e.getRecordWriter(),p=h.getRangeFilterCalls(c),_=p?r(79)(a.rangeBehaviors,p):null;if(_){if(_!==o){var y=r(50)(c,d),m=h.getPathToRecord(c);m||r(0)(!1,"writeRelayUpdatePayload(): Expected a path for connection record, `%s`.",c);var v=(n||(n=r(2).Field.build({fieldName:r(1).ConnectionInterface.get().EDGES,type:r(3).ANY_TYPE,metadata:{canHaveSubselections:!0,isPlural:!0}})),n);m=r(8).getPath(m,v,y),e.createRecordIfMissing(v,y,m,f);var b=!1;(function t(n){n.getChildren().forEach(function(n){n instanceof r(2).Fragment?t(n):n instanceof r(2).Field&&n.getSchemaName()===a.edgeName&&(b=!0,m&&e.writePayload(n,y,f,m))})})(t),!b&&r(0)(!1,"writeRelayUpdatePayload(): Expected mutation query to include the relevant edge field, `%s`.",a.edgeName),_===i||_===o||_===s||_===u||_===l?(g.applyRangeUpdate(c,y,_),e.recordUpdate(c)):console.error("writeRelayUpdatePayload(): invalid range operation `%s`, valid options are `%s`, `%s`, `%s`, `%s`, or `%s`.",_,i,s,o,l,u)}}else r(7)(_,"Using `null` as a rangeBehavior value is deprecated. Use `ignore` to avoid refetching a range.")}(e,d,f,t,I,E)}),h)r(51).putClientIDForMutation(I,y);else{var N=r(51).getClientIDForMutation(y);N&&(r(51).updateClientServerIDMap(N,I),r(51).deleteClientIDForMutation(y))}}}(e,_,t,f,v);break;case r(1).MutationTypes.RANGE_DELETE:!function(e,t,n){var a=e.getRecordStore(),i=null;Array.isArray(n.deletedIDFieldName)?i=h(a,n.deletedIDFieldName,t):("number"==typeof(i=t[n.deletedIDFieldName])&&(r(7)(!1,"writeRelayUpdatePayload(): Expected `%s` to be a string, got the number `%s`.",n.deletedIDFieldName,i),i=""+i),null!=i&&Array.isArray(i)&&"string"==typeof i&&r(0)(!1,"writeRelayUpdatePayload(): Expected `%s` to be an array/string, got `%s`.",n.deletedIDFieldName,JSON.stringify(i)),Array.isArray(i)||(i=[i])),null==i&&r(0)(!1,"writeRelayUpdatePayload(): Missing ID(s) for deleted record at field `%s`.",n.deletedIDFieldName);var o=n.pathToConnection.pop(),s=h(a,n.pathToConnection,t);if(n.pathToConnection.push(o),s){var u=s[0],c=a.getConnectionIDsForField(u,o);c&&c.forEach(function(t){i&&i.forEach(function(n){!function(e,t,n){var a=e.getRecordWriter(),i=r(50)(t,n);a.applyRangeUpdate(t,i,l),d(e,i),e.recordUpdate(t)}(e,t,n)})})}}(e,_,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 a=e.getRecordStore();for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i)){var o=t[i];"object"==typeof o&&null!=o&&(r(3).ID in o||a.getDataID(i)||Array.isArray(o))&&f(e,i,o,n)}}(e,_,t)})},function(e,t){e.exports=C},function(e,t,r){"use strict";e.exports={areEqualSelectors:r(23).areEqualSelectors,createFragmentSpecResolver:function(e,t,n,a,i){return new(r(135))(e,n,a,i)},createOperationDescriptor:r(136).createOperationDescriptor,getDataIDsFromObject:r(23).getDataIDsFromObject,getFragment:r(53).getClassicFragment,getRequest:r(53).getClassicOperation,getSelector:r(23).getSelector,getSelectorList:r(23).getSelectorList,getSelectorsFromObject:r(23).getSelectorsFromObject,getVariablesFromObject:r(23).getVariablesFromObject,isFragment:r(53).isClassicFragment,isRequest:r(53).isClassicOperation}},function(e,t,r){"use strict";var n=r(5)(r(9)),a=r(5)(r(19)),i=function(){function e(e,t,r,n){var i=this;(0,a.default)(this,"_onChange",function(){i._stale=!0,"function"==typeof i._callback&&i._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(11)(this._resolvers,u)},t.resolve=function(){var e=this;if(this._stale){var t,a=this._data;r(11)(this._resolvers,function(i,o){var s=a[o];if(i){var u=i.resolve();(t||u!==s)&&((t=t||(0,n.default)({},a))[o]=u)}else{var l=e._props[o],c=void 0!==l?l:null;!t&&r(1).isScalarAndEqual(c,s)||((t=t||(0,n.default)({},a))[o]=c)}}),this._data=t||a,this._stale=!1}return this._data},t.setCallback=function(e){this._callback=e},t.setProps=function(e){var t=this,n=r(23).getSelectorsFromObject(this._context.variables,this._fragments,e);r(11)(n,function(e,n){var a=t._resolvers[n];null==e?(null!=a&&a.dispose(),a=null):Array.isArray(e)?null==a?a=new s(t._context.environment,e,t._onChange):(a instanceof s||r(0)(!1,"RelayFragmentSpecResolver: Expected prop `%s` to always be an array.",n),a.setSelectors(e)):null==a?a=new o(t._context.environment,e,t._onChange):(a instanceof o||r(0)(!1,"RelayFragmentSpecResolver: Expected prop `%s` to always be an object.",n),a.setSelector(e)),t._resolvers[n]=a}),this._props=e,this._stale=!0},t.setVariables=function(e){r(11)(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,a.default)(this,"_onChange",function(e){n._data=e.data,n._callback()});var i=e.lookup(t);this._callback=r,this._data=i.data,this._environment=e,this._selector=t,this._subscription=e.subscribe(i,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(23).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,a.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],a=this._resolvers[r].resolve();(e||a!==n)&&(e=e||t.slice(0,r)).push(a)}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=i},function(e,t,r){"use strict";e.exports={createOperationDescriptor:function(e,t){var n=r(6).getFragment(e.node);n||r(0)(!1,"RelayOperationDescriptor: Expected a query, got %s `%s`.",e.node.kind,e.name);var a=r(37).getOperationVariables(e,t),i={dataID:r(22).ROOT_ID,node:n,variables:a};return{fragment:i,node:e,root:i,variables:a}}}},function(e,t){e.exports=E},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(140));var n={Environment:r(71),GraphQLMutation:r(54),GraphQLStoreQueryResolver:r(87),Mutation:r(141),PropTypes:r(35),QL:r(44),QueryConfig:r(96),ReadyStateRenderer:r(97),RelayContainerProxy:r(99),Renderer:r(100),RootContainer:r(145),Route:r(146),Store:r(20),MutationTypes:r(1).MutationTypes,RangeOperations:r(1).RangeOperations,createContainer:r(147).create,createQuery:r(154),getQueries:r(67),injectNetworkLayer:r(20).injectNetworkLayer.bind(r(20)),injectTaskScheduler:r(20).injectTaskScheduler.bind(r(20)),isContainer:r(92)};e.exports=n}).call(this,r(89))},function(e,t,r){"use strict";var n={NetworkLayer:r(20).getStoreData().getNetworkLayer(),DefaultStoreData:r(20).getStoreData(),flattenRelayQuery:r(48),printRelayQuery:r(46)};e.exports=n},function(e,t,r){"use strict";var n=r(5)(r(9)),a=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,"%s: Mutation instance cannot be used in different Relay environments.",this.constructor.name):(this._environment=e,this._resolveProps())},t.getMutation=function(){r(0)(!1,"%s: Expected abstract method `getMutation` to be implemented.",this.constructor.name)},t.getFatQuery=function(){r(0)(!1,"%s: Expected abstract method `getFatQuery` to be implemented.",this.constructor.name)},t.getConfigs=function(){r(0)(!1,"%s: Expected abstract method `getConfigs` to be implemented.",this.constructor.name)},t.getVariables=function(){r(0)(!1,"%s: Expected abstract method `getVariables` to be implemented.",this.constructor.name)},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,a=this.constructor.initialVariables||{},o=this._unresolvedProps,s=(0,n.default)({},o);r(11)(t,function(t,n){var u=o[n];if(r(7)(void 0!==u,"RelayMutation: Expected data for fragment `%s` to be supplied to `%s` as a prop. Pass an explicit `null` if this is intentional.",n,e.constructor.name),null!=u)if("object"==typeof u){var l=r(2).Fragment.create(i(e.constructor.name,n,t,a),r(10).get("$RelayMutation_".concat(e.constructor.name)),a);if(l.isPlural()){Array.isArray(u)||r(0)(!1,"RelayMutation: Invalid prop `%s` supplied to `%s`, expected an array of records because the corresponding fragment is plural.",n,e.constructor.name);var c=u.map(function(t,a){("object"!=typeof t||null==t)&&r(0)(!1,"RelayMutation: Invalid prop `%s` supplied to `%s`, expected element at index %s to have query data.",n,e.constructor.name,a),r(18).hasFragment(t,l)||e._didShowFakeDataWarning||(e._didShowFakeDataWarning=!0,r(7)(!1,"RelayMutation: Expected prop `%s` element at index %s supplied to `%s` to be data fetched by Relay. This is likely an error unless you are purposely passing in mock data that conforms to the shape of this mutation's fragment.",n,a,e.constructor.name));var i=r(4).getDataIDForObject(t);return i||r(0)(!1,"RelayMutation: Invalid prop `%s` supplied to `%s`, expected element at index %s to have query data.",n,e.constructor.name,a),i});s[n]=c.map(function(t){return e._environment.read(l,t)})}else{Array.isArray(u)&&r(0)(!1,"RelayMutation: Invalid prop `%s` supplied to `%s`, expected a single record because the corresponding fragment is not plural.",n,e.constructor.name),r(18).hasFragment(u,l)||e._didShowFakeDataWarning||(e._didShowFakeDataWarning=!0,r(7)(!1,"RelayMutation: Expected prop `%s` supplied to `%s` to be data fetched by Relay. This is likely an error unless you are purposely passing in mock data that conforms to the shape of this mutation's fragment.",n,e.constructor.name));var d=r(4).getDataIDForObject(u);d&&(s[n]=e._environment.read(l,d))}}else r(7)(!1,"RelayMutation: Expected data for fragment `%s` supplied to `%s` to be an object.",n,e.constructor.name)}),this.props=s,this._didValidateConfig||(this.getConfigs().forEach(function(t){return r(142)(t,e.constructor.name)}),this._didValidateConfig=!0)},e.getFragment=function(e,t){var n=this,a=this.fragments,o=a[e];o||r(0)(!1,"%s.getFragment(): `%s` is not a valid fragment name. Available fragments names: %s",this.name,e,Object.keys(a).map(function(e){return"`"+e+"`"}).join(", "));var s=this.initialVariables||{},u=this.prepareVariables;return r(39).createForContainer(function(){return i(n.name,e,o,s)},s,t,u)},e}();function i(e,t,n,a){var i=r(65).Fragment(n,a);return i||r(0)(!1,"Relay.QL defined on mutation `%s` named `%s` is not a valid fragment. A typical fragment is defined using: Relay.QL`fragment on Type {...}`",e,t),i}e.exports=a},function(e,t,r){"use strict";var n=3,a=(Object.freeze({assert:r(7),message:"has deprecated property",type:"DEPRECATED"}),Object.freeze({assert:function(){},message:"",type:"OPTIONAL"})),i={assert:r(0),message:"must have property",type:"REQUIRED"};e.exports=function(e,t){function o(a){Object.keys(e).forEach(function(i){if("type"!==i&&!a.hasOwnProperty(i)){var o=r(34)("validateMutationConfig: Unexpected key `%s` in `%s` config for `%s`",i,e.type,t),s=Object.keys(a).find(function(e){return r(143)(e,i,n)});s?r(0)(!1,"%s; did you mean `%s`?",o,s):r(0)(!1,"%s.",o)}}),Object.keys(a).forEach(function(r){var n=a[r],i="REQUIRED"===n.type,o="DEPRECATED"===n.type,s=e.hasOwnProperty(r);(i&&!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:i});break;case"RANGE_ADD":o({connectionName:i,edgeName:i,parentID:a,parentName:a,rangeBehaviors:i});break;case"NODE_DELETE":o({connectionName:i,deletedIDFieldName:i,parentID:a,parentName:i});break;case"RANGE_DELETE":o({connectionName:i,deletedIDFieldName:i,parentID:a,parentName:i,pathToConnection:i});break;case"REQUIRED_CHILDREN":o({children:i});break;default:r(0)(!1,"validateMutationConfig: unknown config type `%s` on `%s`",e.type,t)}}},function(e,t,r){"use strict";e.exports=function(e,t,r){var n=e.length,a=t.length;if(a<n){var i=[n,a];a=i[0],n=i[1];var o=[e,t];t=o[0],e=o[1]}if(!n)return a<=r;for(var s=a,u=2*s+1,l=Array.from(Array(u),function(){return[]}),c=-s;c<0;c++){var d=-c-1;l[c+s][d+1]=-c-1,l[c+s][d]=-1/0}l[s][0]=-1;for(var f=1;f<=s;f++){var h=f-1;l[f+s][h+1]=-1,l[f+s][h]=-1/0}var g=a-n-1;do{if(g>r)return!1;g++;for(var p=Math.floor((g-(a-n))/2);p>=1;p--)y(a-n+p,g-p);for(var _=Math.floor((a-n+g)/2);_>=1;_--)y(a-n-_,g-_);y(a-n,g)}while(l[a-n+s][g]!==n);return!0;function y(r,i){var o=l[r+s][i]+1,u=o;for(e[o-1]===t[r+o]&&e[o]===t[r+o-1]&&(u=o+1),o=Math.max(o,l[r-1+s][i],l[r+1+s][i]+1,u);e[o]===t[o+r]&&o<Math.min(n,a-r);)o++;l[r+s][i+1]=o}}},function(e,t,r){"use strict";var n=r(5)(r(13)),a=function(e){function t(){return e.apply(this,arguments)||this}(0,n.default)(t,e);var a=t.prototype;return a.shouldComponentUpdate=function(e){return!!e.shouldUpdate},a.render=function(){var e=this.props.children;return e?r(15).Children.only(e):null},t}(r(15).Component);e.exports=a},function(e,t,r){"use strict";function n(e){var t=e.Component,n=e.forceFetch,a=e.onReadyStateChange,i=e.renderFailure,o=e.renderFetched,s=e.renderLoading,u=e.route,l=e.shouldFetch;return r(15).createElement(r(100),{Container:t,forceFetch:n,onReadyStateChange:a,queryConfig:u,environment:r(20),shouldFetch:l,render:function(e){var n=e.done,a=e.error,u=e.props,l=e.retry,c=e.stale;if(a){if(i)return i(a,l)}else{if(u)return o?o(u,{done:n,stale:c}):r(15).createElement(t,u);if(s)return s()}}})}n.propTypes={Component:r(35).Container,forceFetch:r(16).bool,onReadyStateChange:r(16).func,renderFailure:r(16).func,renderFetched:r(16).func,renderLoading:r(16).func,route:r(35).QueryConfig.isRequired,shouldFetch:r(16).bool},e.exports=n},function(e,t,r){"use strict";var n=r(5)(r(13)),a=r(5)(r(68)),i=function(){return null},o=function(e){function t(n,o){var s,u=(s=e.call(this,n)||this).constructor,l=u.routeName,c=u.path;return u===t&&r(0)(!1,"RelayRoute: Abstract class cannot be instantiated."),l||r(0)(!1,"%s: Subclasses of RelayRoute must define a `routeName`.",u.name||"<<anonymous>>"),Object.defineProperty((0,a.default)((0,a.default)(s)),"uri",{enumerable:!0,get:function(){return!o&&c&&(o=i(u,this.params)),o}}),s}return(0,n.default)(t,e),t.prototype.prepareVariables=function(e){var t=this.constructor,n=t.paramDefinitions,a=t.prepareParams,i=t.routeName,o=e;return a&&(o=a(o)),n&&r(11)(n,function(e,t){if(o){if(o.hasOwnProperty(t))return;o[t]=void 0}e.required&&r(0)(!1,"RelayRoute: Missing required parameter `%s` in `%s`. Check the supplied params or URI.",t,i)}),o},t.injectURICreator=function(e){i=e},t}(r(96));e.exports=o},function(e,t,r){"use strict";var n=r(5)(r(148)),a=r(5)(r(149)),i=r(5)(r(9)),o=r(5)(r(13)),s=r(5)(r(68)),u=r(5)(r(19));function l(e,t){var l=r(150).getReactComponent(e),g=r(69).getComponentName(e),p=f(e),_=t.fragments,y=Object.keys(_),m=t.initialVariables||{},v=t.prepareVariables,b=t.shouldComponentUpdate,D=function(c){function f(e){var t;t=c.call(this,e)||this,(0,u.default)((0,s.default)((0,s.default)(t)),"_legacyStringishRef",r(151)((0,s.default)((0,s.default)(t)),g));var n=e.__relayContext.route;return r(152)({variables:e.__relayContext.variables,environment:e.__relayContext.environment})||r(0)(!1,"RelayContainer: `%s` was rendered with invalid Relay context `%s`. Make sure the `relay` property on the React context conforms to the `RelayEnvironment` interface.",p,e.__relayContext),n&&"string"==typeof n.name||r(0)(!1,"RelayContainer: `%s` was rendered without a valid route. Make sure the route is valid, and make sure that it is correctly set on the parent component's context (e.g. using <RelayRootContainer>).",p),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,c);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={},a={},i=this.props.__relayContext.environment.getStoreData();return y.forEach(function(o){var s=R(o,t.props.__relayContext.route,e),u=t.state.queryData[o];if(s&&null!=u){var l;if(s.isPlural()){Array.isArray(u)||r(0)(!1,"RelayContainer: Invalid queryData for `%s`, expected an array of records because the corresponding fragment is plural.",o);var c=[];u.forEach(function(e,t){var n=r(4).getDataIDForObject(e);n&&(a[o+t]=i.buildFragmentQueryForDataID(s,n),c.push(n))}),c.length&&(l={fragment:s,dataIDs:c})}else{var d=r(4).getDataIDForObject(u);d&&(l={fragment:s,dataIDs:d},a[o]=i.buildFragmentQueryForDataID(s,d))}n[o]=l}}),{fragmentPointers:n,querySet:a}},D._runVariables=function(e,t,n){var a=this;d(m,e);var o=this.state.rawVariables,s=function(e,t){if(t)for(var r in t)if(e[r]!==t[r])return(0,i.default)({},e,t);return e}(this.pending?this.pending.rawVariables:o,e),u=s;if(v){var l=r(10).get(this.props.__relayContext.route.name);u=v(s,l),d(m,u)}this.pending&&this.pending.request.abort();var c=r(1).RelayProfiler.profile("RelayContainer.setVariables",{containerName:p,nextVariables:u}),f=this._createQuerySetAndFragmentPointers(u),h=f.querySet,g=f.fragmentPointers,_=r(47).guard(function(e){var n,o=e.aborted,l=e.done,d=e.error,f=e.ready,h=o||l||d;if(h&&a.pending===y&&(a.pending=null),f){a._fragmentPointers=g,a._updateFragmentResolvers(a.props.__relayContext.environment);var p=a._getQueryData(a.props);n={queryData:p,rawVariables:s,relayProp:(0,i.default)({},a.state.relayProp,{pendingVariables:null,variables:u})}}else n={relayProp:(0,i.default)({},a.state.relayProp,{pendingVariables:h?null:u})};var _=a.mounted;if(_){var m=r(1).RelayProfiler.profile("RelayContainer.update");r(86)(function(){a.setState(n,function(){m.stop(),h&&c.stop()}),t&&t.call(a.refs.component||null,(0,i.default)({},e,{mounted:_}))})}else t&&t((0,i.default)({},e,{mounted:_})),h&&c.stop()},"RelayContainer.onReadyStateChange"),y={rawVariables:s,request:n?this.props.__relayContext.environment.forceFetch(h,_):this.props.__relayContext.environment.primeCache(h,_)};this.pending=y},D.hasOptimisticUpdate=function(e){var t=r(4).getDataIDForObject(e);return null==t&&r(0)(!1,"RelayContainer.hasOptimisticUpdate(): Expected a record in `%s`.",g),this.props.__relayContext.environment.getStoreData().hasOptimisticUpdate(t)},D.getPendingTransactions=function(e){var t=r(4).getDataIDForObject(e);null==t&&r(0)(!1,"RelayContainer.getPendingTransactions(): Expected a record in `%s`.",g);var n=this.props.__relayContext.environment.getStoreData(),a=n.getClientMutationIDs(t);if(!a)return null;var i=n.getMutationQueue();return a.map(function(e){return i.getTransaction(e)})},D.hasFragmentData=function(e,t){var n=r(4).getDataIDForObject(t);null==n&&r(0)(!1,"RelayContainer.hasFragmentData(): Second argument is not a valid record. For `<%s X={this.props.X} />`, use `this.props.hasFragmentData(%s.getFragment('X'), this.props.X)`.",g,g);var a=function(e,t,n){var a=r(10).get(t.route.name),i=e.getFragment(n),o=e.getVariables(a,n);return r(2).Fragment.create(i,a,o,{isDeferred:!0,isContainerFragment:e.isContainerFragment(),isTypeConditional:!1})}(e,this.props.__relayContext,this.state.relayProp.variables);return a instanceof r(2).Fragment||r(0)(!1,"RelayContainer.hasFragmentData(): First argument is not a valid fragment. Ensure that there are no failing `if` or `unless` conditions."),this.props.__relayContext.environment.getStoreData().getCachedStore().hasFragmentData(n,a.getCompositeHash())},D.hasPartialData=function(e){return r(57).isPartialStatus(e[r(4).MetadataKey.STATUS])},D.UNSAFE_componentWillMount=function(){this.props.__relayContext.route.useMockData||this.setState(this._initialize(this.props,this.props.__relayContext,m,null))},D.UNSAFE_componentWillReceiveProps=function(e){var n=this;e.__relayContext||r(0)(!1,"RelayContainer: Expected a context to be set."),e.__relayContext.route.useMockData||this.setState(function(a){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 a=e.initialVariables;for(var i in a)if(i in t&&!r(17)(t[i],n[i]))return a;return n}(t,e,a.rawVariables),a.rawVariables)})},D.componentWillUnmount=function(){this._cleanup(),this.mounted=!1},D._initialize=function(e,n,a,o){var s=function(e,t,r){var n=e.initialVariables;if(n){var a;for(var o in n)o in t&&((a=a||(0,i.default)({},r))[o]=t[o]);r=a||r}return r}(t,e,a),u=s;if(v){var l=r(10).get(n.route.name);u=v(s,l),d(m,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(56)(this.state.relayProp.variables,u)?this.state.relayProp:(0,i.default)({},this.state.relayProp,{route:n.route,variables:u})}},D._cleanup=function(){this._fragmentResolvers&&r(11)(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;y.forEach(function(a){var i=r[a],o=n[a];i?o||(o=e.getFragmentResolver(i.fragment,t._handleFragmentDataUpdate.bind(t)),n[a]=o):o&&(o.dispose(),n[a]=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,a){var i=this,o=this._fragmentPointers;y.forEach(function(s){var u=e[s];if(r(7)(void 0!==u,"RelayContainer: Expected prop `%s` to be supplied to `%s`, but got `undefined`. Pass an explicit `null` if this is intentional.",s,g),null!=u){if("object"!=typeof u)return r(7)(!1,"RelayContainer: Expected prop `%s` supplied to `%s` to be an object, got `%s`.",s,g,u),void(o[s]=null);var l,c=R(s,t.route,n);if(c.isPlural()){if(Array.isArray(u)||r(0)(!1,"RelayContainer: Invalid prop `%s` supplied to `%s`, expected an array of records because the corresponding fragment has `@relay(plural: true)`.",s,g),!u.length)return void(o[s]=null);var d=null;u.forEach(function(e,n){if("object"==typeof e&&null!=e){if(r(18).hasConcreteFragment(e,c)){var o=r(4).getDataIDForObject(e);o&&(d=d||[]).push(o)}if(!t.route.useMockData&&!t.useFakeData&&!i._didShowFakeDataWarning){var u=h(g,s,c,e,a);i._didShowFakeDataWarning=!u}}}),d&&d.length!==u.length&&r(0)(!1,"RelayContainer: Invalid prop `%s` supplied to `%s`. Some array items contain data fetched by Relay and some items contain null/mock data.",s,g),l=d}else if(Array.isArray(u)&&r(0)(!1,"RelayContainer: Invalid prop `%s` supplied to `%s`, expected a single record because the corresponding fragment is not plural (i.e. does not have `@relay(plural: true)`).",s,g),r(18).hasConcreteFragment(u,c)&&(l=r(4).getDataIDForObject(u)),!t.route.useMockData&&!t.useFakeData&&!i._didShowFakeDataWarning){var f=h(g,s,c,u,a);i._didShowFakeDataWarning=!f}o[s]=l?{fragment:c,dataIDs:l}:null}else o[s]=null}),y.forEach(function(a){if(!o[a]){var i=R(a,t.route,n);Object.keys(e).forEach(function(t){r(7)(o[t]||!r(4).isRecord(e[t])||"object"!=typeof e[t]||null==e[t]||!r(18).hasFragment(e[t],i),"RelayContainer: Expected record data for prop `%s` on `%s`, but it was instead on prop `%s`. Did you misspell a prop or pass record data into the wrong prop?",a,g,t)})}})},D._getQueryData=function(e){var t=this,n={},a=this._fragmentPointers;return r(11)(this._fragmentResolvers,function(i,o){var s=e[o],u=a[o];s&&u?(i||r(0)(!1,"fragmentResolver should not be null"),n[o]=i.resolve(u.fragment,u.dataIDs)):(i&&i.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(b)return b();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,i=(n.__relayContext,(0,a.default)(n,["__relayContext"])),o=(e.__relayContext,(0,a.default)(e,["__relayContext"])),s=this._fragmentPointers;return!r(70).areNonQueryPropsEqual(_,i,o)||s&&!r(70).areQueryResultsEqual(s,this.state.queryData,t.queryData)||!r(70).areQueryVariablesEqual(this.state.relayProp.variables,t.relayProp.variables)},D.render=function(){if(l)return r(15).createElement(l,(0,n.default)({},this.props,this.state.queryData,{ref:this._legacyStringishRef,relay:this.state.relayProp}));var t=e;return r(15).createElement(t,(0,i.default)({},this.props,this.state.queryData,{relay:this.state.relayProp}))},f}(r(15).Component);function R(e,t,n){var a=_[e];a||r(0)(!1,"RelayContainer: Expected `%s` to have a query fragment named `%s`.",p,e);var i=c(p,e,a,m),o=r(10).get(t.name);return r(2).Fragment.create(i,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=p,r(99).proxyMethods(D,e),D}function c(e,t,n,a){var i=r(65).Fragment(n,a);return i||r(0)(!1,"Relay.QL defined on container `%s` named `%s` is not a valid fragment. A typical fragment is defined using: Relay.QL`fragment on Type {...}`",e,t),i}function d(e,t){if(t)for(var n in t)r(7)(e.hasOwnProperty(n),"RelayContainer: Expected query variable `%s` to be initialized in `initialVariables`.",n)}function f(e){return"Relay("+r(69).getComponentName(e)+")"}function h(e,t,n,a,i){var o=r(18).hasFragment(a,n)||!!i&&r(17)(i,n.getVariables());if(!o){var s=n.getVariables(),u=r(18).getFragmentVariables(a,n);r(7)(!1,"RelayContainer: component `%s` was rendered with variables that differ from the variables used to fetch fragment `%s`. The fragment was fetched with variables `%s`, but rendered with variables `%s`. This can indicate one of two possibilities: \n - The parent set the correct variables in the query - `%s.getFragment('%s', {...})` - but did not pass the same variables when rendering the component. Be sure to tell the component what variables to use by passing them as props: `<%s ... %s />`.\n - You are intentionally passing fake data to this component, in which case ignore this warning.",e,t,u?u.map(function(e){return JSON.stringify(e)}).join(", "):"(not fetched)",JSON.stringify(s),e,t,e,Object.keys(s).map(function(e){return"".concat(e,"={...}")}).join(" "))}return o}e.exports={create:function(e,t){var a=r(69).getComponentName(e),i=f(e);!function(e,t){var n=t.fragments;if("object"==typeof n&&n||r(0)(!1,"Relay.createContainer(%s, ...): Missing `fragments`, which is expected to be an object mapping from `propName` to: () => Relay.QL`...`",e),t.initialVariables){var a=t.initialVariables||{};"object"==typeof a&&a||r(0)(!1,"Relay.createContainer(%s, ...): Expected `initialVariables` to be an object.",e),r(11)(n,function(t,n){r(7)(!a.hasOwnProperty(n),"Relay.createContainer(%s, ...): `%s` is used both as a fragment name and variable name. Please give them unique names.",e,n)})}}(a,t);var o,s,u=t.fragments,d=Object.keys(u),h=t.initialVariables||{},g=t.prepareVariables;function p(r){return null!=s&&r.__relayContext.environment===o||(o=r.__relayContext.environment,s=l(e,t)),new s(r)}var _=r(15).forwardRef(function(e,t){var a=r(153)(r(98));return a||r(0)(!1,"".concat(i," tried to render a context that was ")+"not valid this means that ".concat(i," was rendered outside of a ")+"query renderer."),r(15).createElement(p,(0,n.default)({},e,{__relayContext:a,ref:e.ref||t}))});return _.getFragmentNames=function(){return d},_.hasFragment=function(e){return!!u[e]},_.hasVariable=function(e){return Object.prototype.hasOwnProperty.call(h,e)},_.getFragment=function(e,t){var n=u[e];return n||r(0)(!1,"%s.getFragment(): `%s` is not a valid fragment name. Available fragments names: %s",i,e,d.map(function(e){return"`"+e+"`"}).join(", ")),"function"!=typeof n&&r(0)(!1,"RelayContainer: Expected `%s.fragments.%s` to be a function returning a fragment. Example: `%s: () => Relay.QL`fragment on ...`",i,e,e),t&&(t=r(91)(t,function(e,t){return Object.prototype.hasOwnProperty.call(h,t)})),r(39).createForContainer(function(){return c(i,e,n,h)},h,t,g)},_.displayName=i,_.moduleName=null,_}}},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,a={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(a[r]=e[r]);return a}},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){var n=!1;return function(a){Object.isExtensible(e.refs)||(e.refs={}),e.refs.__INTERNAL__component=a,Object.defineProperty(e.refs,"component",{configurable:!0,get:function(){return n||(n=!0,r(7)(!1,"RelayContainer: Do not use `container.refs.component` for RelayCompat or RelayModern containers. Instead pass `componentRef={ref}` to `%s`.",t)),a}})}}},function(e,t,r){"use strict";e.exports=function(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)&&r(66)(e.environment)&&r(95)(e.variables)}},function(e,t,r){"use strict";var n=r(15).__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher,a=r(15).__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner;e.exports=function(e){return(null!=n?n.current:a.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,"Relay.Query: Expected `variables` to be an object."),r(2).Root.create(e,r(10).get("$createRelayQuery"),t)}}])});