relay-runtime 0.0.0-main-bd042546 → 0.0.0-main-fa0a3a6a

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/experimental.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Relay v0.0.0-main-bd042546
2
+ * Relay v0.0.0-main-fa0a3a6a
3
3
  *
4
4
  * Copyright (c) Meta Platforms, Inc. and affiliates.
5
5
  *
package/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Relay v0.0.0-main-bd042546
2
+ * Relay v0.0.0-main-fa0a3a6a
3
3
  *
4
4
  * Copyright (c) Meta Platforms, Inc. and affiliates.
5
5
  *
@@ -26,6 +26,7 @@ var RelayFeatureFlags = {
26
26
  MAX_DATA_ID_LENGTH: null,
27
27
  STRING_INTERN_LEVEL: 0,
28
28
  USE_REACT_CACHE: false,
29
- USE_REACT_CACHE_LEGACY_TIMEOUTS: true
29
+ USE_REACT_CACHE_LEGACY_TIMEOUTS: true,
30
+ ENABLE_QUERY_RENDERER_SET_STATE_PREVENTION: false
30
31
  };
31
32
  module.exports = RelayFeatureFlags;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "relay-runtime",
3
3
  "description": "A core runtime for building GraphQL-driven applications.",
4
- "version": "0.0.0-main-bd042546",
4
+ "version": "0.0.0-main-fa0a3a6a",
5
5
  "keywords": [
6
6
  "graphql",
7
7
  "relay"
@@ -1,4 +1,4 @@
1
1
  /**
2
- * Relay v0.0.0-main-bd042546
2
+ * Relay v0.0.0-main-fa0a3a6a
3
3
  */
4
- !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("invariant"),require("@babel/runtime/helpers/interopRequireDefault"),require("@babel/runtime/helpers/createForOfIteratorHelper"),require("fbjs/lib/warning"),require("fbjs/lib/areEqual"),require("@babel/runtime/helpers/objectSpread2"),require("@babel/runtime/helpers/defineProperty"),require("@babel/runtime/helpers/toConsumableArray")):"function"==typeof define&&define.amd?define(["invariant","@babel/runtime/helpers/interopRequireDefault","@babel/runtime/helpers/createForOfIteratorHelper","fbjs/lib/warning","fbjs/lib/areEqual","@babel/runtime/helpers/objectSpread2","@babel/runtime/helpers/defineProperty","@babel/runtime/helpers/toConsumableArray"],t):"object"==typeof exports?exports.ReactRelayExperimental=t(require("invariant"),require("@babel/runtime/helpers/interopRequireDefault"),require("@babel/runtime/helpers/createForOfIteratorHelper"),require("fbjs/lib/warning"),require("fbjs/lib/areEqual"),require("@babel/runtime/helpers/objectSpread2"),require("@babel/runtime/helpers/defineProperty"),require("@babel/runtime/helpers/toConsumableArray")):e.ReactRelayExperimental=t(e.invariant,e["@babel/runtime/helpers/interopRequireDefault"],e["@babel/runtime/helpers/createForOfIteratorHelper"],e["fbjs/lib/warning"],e["fbjs/lib/areEqual"],e["@babel/runtime/helpers/objectSpread2"],e["@babel/runtime/helpers/defineProperty"],e["@babel/runtime/helpers/toConsumableArray"])}(window,(function(e,t,r,a,n,i,s,o){return function(e){var t={};function r(a){if(t[a])return t[a].exports;var n=t[a]={i:a,l:!1,exports:{}};return e[a].call(n.exports,n,n.exports,r),n.l=!0,n.exports}return r.m=e,r.c=t,r.d=function(e,t,a){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:a})},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 a=Object.create(null);if(r.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)r.d(a,n,function(t){return e[t]}.bind(null,n));return a},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=31)}([function(t,r){t.exports=e},function(e,t,r){"use strict";var a=(0,r(2).default)(r(18)),n=r(37),i=r(3),s=r(39),o=r(0),l=i.VARIABLE,u=i.LITERAL,c=i.OBJECT_VALUE,d=i.LIST_VALUE;function h(e,t){if(e.kind===l)return function(e,t){return t.hasOwnProperty(e)||o(!1,"getVariableValue(): Undefined variable `%s`.",e),s(t[e])}(e.variableName,t);if(e.kind===u)return e.value;if(e.kind===c){var r={};return e.fields.forEach((function(e){r[e.name]=h(e,t)})),r}if(e.kind===d){var a=[];return e.items.forEach((function(e){null!=e&&a.push(h(e,t))})),a}}function _(e,t){var r={};return e.forEach((function(e){r[e.name]=h(e,t)})),r}function f(e,t){if(!t)return e;var r=[];for(var a in t)if(t.hasOwnProperty(a)){var n,i=t[a];if(null!=i)r.push(a+":"+(null!==(n=JSON.stringify(i))&&void 0!==n?n:"undefined"))}return 0===r.length?e:e+"(".concat(r.join(","),")")}var v={ACTOR_IDENTIFIER_KEY:"__actorIdentifier",CLIENT_EDGE_TRAVERSAL_PATH:"__clientEdgeTraversalPath",FRAGMENTS_KEY:"__fragments",FRAGMENT_OWNER_KEY:"__fragmentOwner",FRAGMENT_PROP_NAME_KEY:"__fragmentPropName",MODULE_COMPONENT_KEY:"__module_component",ID_KEY:"__id",REF_KEY:"__ref",REFS_KEY:"__refs",ROOT_ID:"client:root",ROOT_TYPE:"__Root",TYPENAME_KEY:"__typename",INVALIDATED_AT_KEY:"__invalidated_at",IS_WITHIN_UNMATCHED_TYPE_REFINEMENT:"__isWithinUnmatchedTypeRefinement",RELAY_RESOLVER_VALUE_KEY:"__resolverValue",RELAY_RESOLVER_INVALIDATION_KEY:"__resolverValueMayBeInvalid",RELAY_RESOLVER_SNAPSHOT_KEY:"__resolverSnapshot",RELAY_RESOLVER_ERROR_KEY:"__resolverError",RELAY_RESOLVER_OUTPUT_TYPE_RECORD_IDS:"__resolverOutputTypeRecordIDs",formatStorageKey:f,getArgumentValue:h,getArgumentValues:_,getHandleStorageKey:function(e,t){var r=e.dynamicKey,i=e.handle,s=e.key,o=e.name,l=e.args,u=e.filters,c=n(i,s,o),d=null;return l&&u&&0!==l.length&&0!==u.length&&(d=l.filter((function(e){return u.indexOf(e.name)>-1}))),r&&(d=null!=d?[r].concat((0,a.default)(d)):[r]),null===d?c:f(c,_(d,t))},getStorageKey:function(e,t){if(e.storageKey)return e.storageKey;var r=function(e){if("RelayResolver"===e.kind||"RelayLiveResolver"===e.kind){var t,r;return null==e.args?null===(r=e.fragment)||void 0===r?void 0:r.args:null==(null===(t=e.fragment)||void 0===t?void 0:t.args)?e.args:e.args.concat(e.fragment.args)}return void 0===e.args?void 0:e.args}(e),a=e.name;return r&&0!==r.length?f(a,_(r,t)):a},getStableStorageKey:function(e,t){return f(e,s(t))},getModuleComponentKey:function(e){return"".concat("__module_component_").concat(e)},getModuleOperationKey:function(e){return"".concat("__module_operation_").concat(e)}};e.exports=v},function(e,r){e.exports=t},function(e,t,r){"use strict";e.exports={ACTOR_CHANGE:"ActorChange",CONDITION:"Condition",CLIENT_COMPONENT:"ClientComponent",CLIENT_EDGE_TO_SERVER_OBJECT:"ClientEdgeToServerObject",CLIENT_EDGE_TO_CLIENT_OBJECT:"ClientEdgeToClientObject",CLIENT_EXTENSION:"ClientExtension",DEFER:"Defer",CONNECTION:"Connection",FLIGHT_FIELD:"FlightField",FRAGMENT:"Fragment",FRAGMENT_SPREAD:"FragmentSpread",INLINE_DATA_FRAGMENT_SPREAD:"InlineDataFragmentSpread",INLINE_DATA_FRAGMENT:"InlineDataFragment",INLINE_FRAGMENT:"InlineFragment",LINKED_FIELD:"LinkedField",LINKED_HANDLE:"LinkedHandle",LITERAL:"Literal",LIST_VALUE:"ListValue",LOCAL_ARGUMENT:"LocalArgument",MODULE_IMPORT:"ModuleImport",ALIASED_FRAGMENT_SPREAD:"AliasedFragmentSpread",ALIASED_INLINE_FRAGMENT_SPREAD:"AliasedInlineFragmentSpread",RELAY_RESOLVER:"RelayResolver",RELAY_LIVE_RESOLVER:"RelayLiveResolver",REQUIRED_FIELD:"RequiredField",OBJECT_VALUE:"ObjectValue",OPERATION:"Operation",REQUEST:"Request",ROOT_ARGUMENT:"RootArgument",SCALAR_FIELD:"ScalarField",SCALAR_HANDLE:"ScalarHandle",SPLIT_OPERATION:"SplitOperation",STREAM:"Stream",TYPE_DISCRIMINATOR:"TypeDiscriminator",UPDATABLE_QUERY:"UpdatableQuery",VARIABLE:"Variable"}},function(e,t,r){"use strict";var a=(0,r(2).default)(r(12)),n=r(17),i=r(6).isClientID,s=r(1),o=s.ACTOR_IDENTIFIER_KEY,l=s.ID_KEY,u=s.INVALIDATED_AT_KEY,c=s.REF_KEY,d=s.REFS_KEY,h=s.ROOT_ID,_=s.TYPENAME_KEY,f=r(9),v=r(0),g=r(8);function p(e){return e[l]}function E(e){return e[_]}e.exports={clone:function(e){return(0,a.default)({},e)},copyFields:function(e,t){for(var r in e)e.hasOwnProperty(r)&&r!==l&&r!==_&&(t[r]=e[r])},create:function(e,t){var r={};return r[l]=e,r[_]=t,r},freeze:function(e){n(e)},getDataID:p,getInvalidationEpoch:function(e){if(null==e)return null;var t=e[u];return"number"!=typeof t?null:t},getLinkedRecordID:function(e,t){var r=e[t];if(null==r)return r;var a=r;return"object"==typeof a&&a&&"string"==typeof a[c]||v(!1,"RelayModernRecord.getLinkedRecordID(): Expected `%s.%s` to be a linked ID, was `%s`.%s",e[l],t,JSON.stringify(a),"object"==typeof a&&void 0!==a[d]?" It appears to be a plural linked record: did you mean to call getLinkedRecords() instead of getLinkedRecord()?":""),a[c]},getLinkedRecordIDs:function(e,t){var r=e[t];return null==r?r:("object"==typeof r&&Array.isArray(r[d])||v(!1,"RelayModernRecord.getLinkedRecordIDs(): Expected `%s.%s` to contain an array of linked IDs, got `%s`.%s",e[l],t,JSON.stringify(r),"object"==typeof r&&void 0!==r[c]?" It appears to be a singular linked record: did you mean to call getLinkedRecord() instead of getLinkedRecords()?":""),r[d])},getType:E,getValue:function(e,t){var r=e[t];return r&&"object"==typeof r&&(r.hasOwnProperty(c)||r.hasOwnProperty(d))&&v(!1,"RelayModernRecord.getValue(): Expected a scalar (non-link) value for `%s.%s` but found %s.",e[l],t,r.hasOwnProperty(c)?"a linked record":"plural linked records"),r},merge:function(e,t){var r,n,s=p(e),o=p(t);g(s===o,"RelayModernRecord: Invalid record merge, expected both versions of the record to have the same id, got `%s` and `%s`.",s,o);var l=null!==(r=E(e))&&void 0!==r?r:null,u=null!==(n=E(t))&&void 0!==n?n:null;return g(i(o)&&o!==h||l===u,"RelayModernRecord: Invalid record merge, expected both versions of record `%s` to have the same `%s` but got conflicting types `%s` and `%s`. The GraphQL server likely violated the globally unique id requirement by returning the same id for different objects.",s,_,l,u),(0,a.default)((0,a.default)({},e),t)},setValue:function(e,t,r){var a=p(e);if(t===l)g(a===r,"RelayModernRecord: Invalid field update, expected both versions of the record to have the same id, got `%s` and `%s`.",a,r);else if(t===_){var n,s=null!==(n=E(e))&&void 0!==n?n:null,o=null!=r?r:null;g(i(p(e))&&p(e)!==h||s===o,"RelayModernRecord: Invalid field update, expected both versions of record `%s` to have the same `%s` but got conflicting types `%s` and `%s`. The GraphQL server likely violated the globally unique id requirement by returning the same id for different objects.",a,_,s,o)}e[t]=r},setLinkedRecordID:function(e,t,r){var a={};a[c]=r,e[t]=a},setLinkedRecordIDs:function(e,t,r){var a={};a[d]=r,e[t]=a},update:function(e,t){var r,n,s=p(e),o=p(t);g(s===o,"RelayModernRecord: Invalid record update, expected both versions of the record to have the same id, got `%s` and `%s`.",s,o);var l=null!==(r=E(e))&&void 0!==r?r:null,u=null!==(n=E(t))&&void 0!==n?n:null;g(i(o)&&o!==h||l===u,"RelayModernRecord: Invalid record update, expected both versions of record `%s` to have the same `%s` but got conflicting types `%s` and `%s`. The GraphQL server likely violated the globally unique id requirement by returning the same id for different objects.",s,_,l,u);for(var c=null,d=Object.keys(t),v=0;v<d.length;v++){var R=d[v];!c&&f(e[R],t[R])||((c=null!==c?c:(0,a.default)({},e))[R]=t[R])}return null!==c?c:e},getActorLinkedRecordID:function(e,t){var r=e[t];return null==r?r:(("object"!=typeof r||"string"!=typeof r[c]||null==r[o])&&v(!1,"RelayModernRecord.getActorLinkedRecordID(): Expected `%s.%s` to be an actor specific linked ID, was `%s`.",e[l],t,JSON.stringify(r)),[r[o],r[c]])},setActorLinkedRecordID:function(e,t,r,a){var n={};n[c]=a,n[o]=r,e[t]=n}}},function(e,t){e.exports=r},function(e,t,r){"use strict";var a=r(7),n=r(36).intern;var i=0;e.exports={generateClientID:function(e,t,r){var i=(a.STRING_INTERN_LEVEL<=0?e:n(e,a.MAX_DATA_ID_LENGTH))+":"+t;return null!=r&&(i+=":"+r),0!==i.indexOf("client:")&&(i="client:"+i),i},generateClientObjectClientID:function(e,t,r){var a="".concat("client:").concat(e,":").concat(t);return null!=r&&(a+=":"+r),a},generateUniqueClientID:function(){return"".concat("client:","local:").concat(i++)},isClientID:function(e){return 0===e.indexOf("client:")}}},function(e,t,r){"use strict";e.exports={ENABLE_CLIENT_EDGES:!1,ENABLE_VARIABLE_CONNECTION_KEY:!1,ENABLE_PARTIAL_RENDERING_DEFAULT:!0,ENABLE_REACT_FLIGHT_COMPONENT_FIELD:!1,ENABLE_RELAY_RESOLVERS:!1,ENABLE_GETFRAGMENTIDENTIFIER_OPTIMIZATION:!1,ENABLE_FRIENDLY_QUERY_NAME_GQL_URL:!1,ENABLE_LOAD_QUERY_REQUEST_DEDUPING:!0,ENABLE_DO_NOT_WRAP_LIVE_QUERY:!1,ENABLE_NOTIFY_SUBSCRIPTION:!1,BATCH_ASYNC_MODULE_UPDATES_FN:null,ENABLE_CONTAINERS_SUBSCRIBE_ON_COMMIT:!1,MAX_DATA_ID_LENGTH:null,STRING_INTERN_LEVEL:0,USE_REACT_CACHE:!1,USE_REACT_CACHE_LEGACY_TIMEOUTS:!0}},function(e,t){e.exports=a},function(e,t){e.exports=n},function(e,t,r){"use strict";var a=(0,r(2).default)(r(12)),n=r(1).getArgumentValues,i=r(0);e.exports={getLocalVariables:function(e,t,r){if(null==t)return e;var i=(0,a.default)({},e),s=r?n(r,e):{};return t.forEach((function(e){var t,r=null!==(t=s[e.name])&&void 0!==t?t:e.defaultValue;i[e.name]=r})),i},getFragmentVariables:function(e,t,r){return null==e.argumentDefinitions?r:(e.argumentDefinitions.forEach((function(s){if(!r.hasOwnProperty(s.name))switch(n=n||(0,a.default)({},r),s.kind){case"LocalArgument":n[s.name]=s.defaultValue;break;case"RootArgument":if(!t.hasOwnProperty(s.name)){n[s.name]=void 0;break}n[s.name]=t[s.name];break;default:i(!1,"RelayConcreteVariables: Unexpected node kind `%s` in fragment `%s`.",s.kind,e.name)}})),n||r);var n},getOperationVariables:function(e,t,r){var a={};return e.argumentDefinitions.forEach((function(e){var t=e.defaultValue;null!=r[e.name]&&(t=r[e.name]),a[e.name]=t})),null!=t&&Object.keys(t).forEach((function(e){a[e]=t[e].get()})),a}}},function(e,t,r){"use strict";var a=r(4).getType,n=r(0);e.exports={REACT_FLIGHT_EXECUTABLE_DEFINITIONS_STORAGE_KEY:"executableDefinitions",REACT_FLIGHT_TREE_STORAGE_KEY:"tree",REACT_FLIGHT_TYPE_NAME:"ReactFlightComponent",getReactFlightClientResponse:function(e){return"ReactFlightComponent"!==a(e)&&n(!1,"getReactFlightClientResponse(): Expected a ReactFlightComponentRecord, got %s.",e),e.tree},refineToReactFlightPayloadData:function(e){return null!=e&&"object"==typeof e&&"string"==typeof e.status&&(Array.isArray(e.tree)||null===e.tree)&&Array.isArray(e.queries)&&Array.isArray(e.fragments)&&Array.isArray(e.errors)?e:null}}},function(e,t){e.exports=i},function(e,t,r){"use strict";e.exports={EXISTENT:"EXISTENT",NONEXISTENT:"NONEXISTENT",UNKNOWN:"UNKNOWN"}},function(e,t,r){"use strict";var a=r(10).getFragmentVariables,n=r(1),i=n.CLIENT_EDGE_TRAVERSAL_PATH,s=n.FRAGMENT_OWNER_KEY,o=n.FRAGMENTS_KEY,l=n.ID_KEY,u=n.IS_WITHIN_UNMATCHED_TYPE_REFINEMENT,c=r(9),d=r(0),h=r(8);function _(e,t){("object"!=typeof t||null===t||Array.isArray(t))&&d(!1,"RelayModernSelector: Expected value for fragment `%s` to be an object, got `%s`.",e.name,JSON.stringify(t));var r=t[l],n=t[o],c=t[s],_=!0===t[u],f=t[i];if("string"==typeof r&&"object"==typeof n&&null!==n&&"object"==typeof n[e.name]&&null!==n[e.name]&&"object"==typeof c&&null!==c&&(null==f||Array.isArray(f))){var v=c,g=f,p=n[e.name];return I(e,r,a(e,v.variables,p),v,_,g)}var E=JSON.stringify(t);return E.length>499&&(E=E.substr(0,498)+"…"),h(!1,"RelayModernSelector: Expected object to contain data for fragment `%s`, got `%s`. Make sure that the parent operation/fragment included fragment `...%s` without `@relay(mask: false)`.",e.name,E,e.name),null}function f(e,t){var r=null;return t.forEach((function(t,a){var n=null!=t?_(e,t):null;null!=n&&(r=r||[]).push(n)})),null==r?null:{kind:"PluralReaderSelector",selectors:r}}function v(e,t){return null==t?t:e.metadata&&!0===e.metadata.plural?(Array.isArray(t)||d(!1,"RelayModernSelector: Expected value for fragment `%s` to be an array, got `%s`. Remove `@relay(plural: true)` from fragment `%s` to allow the prop to be an object.",e.name,JSON.stringify(t),e.name),f(e,t)):(Array.isArray(t)&&d(!1,"RelayModernSelector: Expected value for fragment `%s` to be an object, got `%s`. Add `@relay(plural: true)` to fragment `%s` to allow the prop to be an array of items.",e.name,JSON.stringify(t),e.name),_(e,t))}function g(e,t){return null==t?t:e.metadata&&!0===e.metadata.plural?(Array.isArray(t)||d(!1,"RelayModernSelector: Expected value for fragment `%s` to be an array, got `%s`. Remove `@relay(plural: true)` from fragment `%s` to allow the prop to be an object.",e.name,JSON.stringify(t),e.name),function(e,t){var r=null;return t.forEach((function(t){var a=null!=t?p(e,t):null;null!=a&&(r=r||[]).push(a)})),r}(e,t)):(Array.isArray(t)&&d(!1,"RelayModernFragmentSpecResolver: Expected value for fragment `%s` to be an object, got `%s`. Add `@relay(plural: true)` to fragment `%s` to allow the prop to be an array of items.",e.name,JSON.stringify(t),e.name),p(e,t))}function p(e,t){("object"!=typeof t||null===t||Array.isArray(t))&&d(!1,"RelayModernSelector: Expected value for fragment `%s` to be an object, got `%s`.",e.name,JSON.stringify(t));var r=t[l];return"string"==typeof r?r:(h(!1,"RelayModernSelector: Expected object to contain data for fragment `%s`, got `%s`. Make sure that the parent operation/fragment included fragment `...%s` without `@relay(mask: false)`, or `null` is passed as the fragment reference for `%s` if it's conditonally included and the condition isn't met.",e.name,JSON.stringify(t),e.name,e.name),null)}function E(e,t){var r;return null==t?{}:!0===(null===(r=e.metadata)||void 0===r?void 0:r.plural)?(Array.isArray(t)||d(!1,"RelayModernSelector: Expected value for fragment `%s` to be an array, got `%s`. Remove `@relay(plural: true)` from fragment `%s` to allow the prop to be an object.",e.name,JSON.stringify(t),e.name),m(e,t)):(Array.isArray(t)&&d(!1,"RelayModernFragmentSpecResolver: Expected value for fragment `%s` to be an object, got `%s`. Add `@relay(plural: true)` to fragment `%s` to allow the prop to be an array of items.",e.name,JSON.stringify(t),e.name),R(e,t)||{})}function R(e,t){var r=_(e,t);return r?r.variables:null}function m(e,t){var r={};return t.forEach((function(t,a){if(null!=t){var n=R(e,t);null!=n&&Object.assign(r,n)}})),r}function y(e,t){return e.owner===t.owner&&e.dataID===t.dataID&&e.node===t.node&&c(e.variables,t.variables)}function I(e,t,r,a){var n=arguments.length>4&&void 0!==arguments[4]&&arguments[4],i=arguments.length>5?arguments[5]:void 0;return{kind:"SingularReaderSelector",dataID:t,isWithinUnmatchedTypeRefinement:n,clientEdgeTraversalPath:null!=i?i:null,node:e,variables:r,owner:a}}e.exports={areEqualSelectors:function(e,t){return e===t||(null==e?null==t:null==t?null==e:"SingularReaderSelector"===e.kind&&"SingularReaderSelector"===t.kind?y(e,t):"PluralReaderSelector"===e.kind&&"PluralReaderSelector"===t.kind&&(e.selectors.length===t.selectors.length&&e.selectors.every((function(e,r){return y(e,t.selectors[r])}))))},createReaderSelector:I,createNormalizationSelector:function(e,t,r){return{dataID:t,node:e,variables:r}},getDataIDsFromFragment:g,getDataIDsFromObject:function(e,t){var r={};for(var a in e)if(e.hasOwnProperty(a)){var n=e[a],i=t[a];r[a]=g(n,i)}return r},getSingularSelector:_,getPluralSelector:f,getSelector:v,getSelectorsFromObject:function(e,t){var r={};for(var a in e)if(e.hasOwnProperty(a)){var n=e[a],i=t[a];r[a]=v(n,i)}return r},getVariablesFromSingularFragment:R,getVariablesFromPluralFragment:m,getVariablesFromFragment:E,getVariablesFromObject:function(e,t){var r={};for(var a in e)if(e.hasOwnProperty(a)){var n=E(e[a],t[a]);Object.assign(r,n)}return r}}},function(e,t,r){"use strict";e.exports={generateTypeID:function(e){return"client:__type:"+e},isTypeID:function(e){return 0===e.indexOf("client:__type:")},TYPE_SCHEMA_TYPE:"__TypeSchema"}},function(e,t){e.exports=s},function(e,t,r){"use strict";e.exports=function e(t){return Object.freeze(t),Object.getOwnPropertyNames(t).forEach((function(r){var a=t[r];a&&"object"==typeof a&&!Object.isFrozen(a)&&e(a)})),t}},function(e,t){e.exports=o},function(e,t,r){"use strict";var a=r(3),n=r(0),i=r(8);function s(e){var t=e;return"function"==typeof t?(t=t(),i(!1,"RelayGraphQLTag: node `%s` unexpectedly wrapped in a function.","Fragment"===t.kind?t.name:t.operation.name)):t.default&&(t=t.default),t}function o(e){var t=s(e);return"object"==typeof t&&null!==t&&t.kind===a.FRAGMENT}function l(e){var t=s(e);return"object"==typeof t&&null!==t&&t.kind===a.REQUEST}function u(e){var t=s(e);return"object"==typeof t&&null!==t&&t.kind===a.UPDATABLE_QUERY}function c(e){var t=s(e);return"object"==typeof t&&null!==t&&t.kind===a.INLINE_DATA_FRAGMENT}function d(e){var t=s(e);return o(t)||n(!1,"GraphQLTag: Expected a fragment, got `%s`.",JSON.stringify(t)),t}e.exports={getFragment:d,getNode:s,getPaginationFragment:function(e){var t,r=d(e),a=null===(t=r.metadata)||void 0===t?void 0:t.refetch,n=null==a?void 0:a.connection;return null===a||"object"!=typeof a||null===n||"object"!=typeof n?null:r},getRefetchableFragment:function(e){var t,r=d(e),a=null===(t=r.metadata)||void 0===t?void 0:t.refetch;return null===a||"object"!=typeof a?null:r},getRequest:function(e){var t=s(e);return l(t)||n(!1,"GraphQLTag: Expected a request, got `%s`.",JSON.stringify(t)),t},getUpdatableQuery:function(e){var t=s(e);return u(t)||n(!1,"GraphQLTag: Expected a request, got `%s`.",JSON.stringify(t)),t},getInlineDataFragment:function(e){var t=s(e);return c(t)||n(!1,"GraphQLTag: Expected an inline data fragment, got `%s`.",JSON.stringify(t)),t},graphql:function(e){n(!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`. Note also that there cannot be a space between graphql and the backtick that follows.")},isFragment:o,isRequest:l,isUpdatableQuery:u,isInlineDataFragment:c}},function(e,t,r){"use strict";var a=Object.freeze({__LIVE_RESOLVER_SUSPENSE_SENTINEL:!0});e.exports={isSuspenseSentinel:function(e){return e===a},suspenseSentinel:function(){return a}}},function(e,t,r){"use strict";var a="undefined"!=typeof WeakSet,n="undefined"!=typeof WeakMap;e.exports=function e(t,r){if(t===r||"object"!=typeof t||t instanceof Set||t instanceof Map||a&&t instanceof WeakSet||n&&t instanceof WeakMap||!t||"object"!=typeof r||r instanceof Set||r instanceof Map||a&&r instanceof WeakSet||n&&r instanceof WeakMap||!r)return r;var i=!1,s=Array.isArray(t)?t:null,o=Array.isArray(r)?r:null;if(s&&o)i=o.reduce((function(t,r,a){var n=e(s[a],r);return n!==o[a]&&(Object.isFrozen(o)||(o[a]=n)),t&&n===s[a]}),!0)&&s.length===o.length;else if(!s&&!o){var l=t,u=r,c=Object.keys(l),d=Object.keys(u);i=d.reduce((function(t,r){var a=e(l[r],u[r]);return a!==u[r]&&(Object.isFrozen(u)||(u[r]=a)),t&&a===l[r]}),!0)&&c.length===d.length}return i?t:r}},function(e,t,r){"use strict";var a=r(0);e.exports={assertInternalActorIdentifier:function(e){"INTERNAL_ACTOR_IDENTIFIER_DO_NOT_USE"!==e&&a(!1,'Expected to use only internal version of the `actorIdentifier`. "%s" was provided.',e)},getActorIdentifier:function(e){return e},getDefaultActorIdentifier:function(){throw new Error("Not Implemented")},INTERNAL_ACTOR_IDENTIFIER_DO_NOT_USE:"INTERNAL_ACTOR_IDENTIFIER_DO_NOT_USE"}},function(e,t,r){"use strict";var a=(0,r(2).default)(r(5)),n=r(1).getArgumentValues,i=r(3),s=i.ACTOR_CHANGE,o=i.ALIASED_FRAGMENT_SPREAD,l=i.ALIASED_INLINE_FRAGMENT_SPREAD,u=i.CLIENT_EDGE_TO_CLIENT_OBJECT,c=i.CLIENT_EDGE_TO_SERVER_OBJECT,d=i.CLIENT_EXTENSION,h=i.CONDITION,_=i.DEFER,f=i.FLIGHT_FIELD,v=i.FRAGMENT_SPREAD,g=i.INLINE_DATA_FRAGMENT_SPREAD,p=i.INLINE_FRAGMENT,E=i.LINKED_FIELD,R=i.MODULE_IMPORT,m=i.RELAY_LIVE_RESOLVER,y=i.RELAY_RESOLVER,I=i.REQUIRED_FIELD,b=i.SCALAR_FIELD,S=i.STREAM,D=["id","__id","__typename","js"];function T(e,t,r,i,O,F){var C,M,P=(0,a.default)(i);try{var x=function(){var i=M.value;switch(i.kind){case E:i.plural?Object.defineProperty(e,null!==(V=i.alias)&&void 0!==V?V:i.name,{get:N(i,r,t,O,F),set:L(i,r,t,O)}):Object.defineProperty(e,null!==(w=i.alias)&&void 0!==w?w:i.name,{get:k(i,r,t,O,F),set:A(i,r,t,O)});break;case b:var P=null!==(C=i.alias)&&void 0!==C?C:i.name;Object.defineProperty(e,P,{get:function(){var e,s=n(null!==(e=i.args)&&void 0!==e?e:[],r),o=t.getValue(i.name,s);return null==o&&(o=function(e,t,r,n,i){var s,o=(0,a.default)(i);try{for(o.s();!(s=o.n()).done;){var l=s.value;if("scalar"===l.kind){var u=l.handle(e,r,t,n);if(void 0!==u)return u}}}catch(e){o.e(e)}finally{o.f()}}(i,s,t,O,F)),o},set:D.includes(i.name)?void 0:function(e){var a,s=n(null!==(a=i.args)&&void 0!==a?a:[],r);t.setValue__UNSAFE(e,i.name,s)}});break;case p:t.getType()===i.type&&T(e,t,r,i.selections,O,F);break;case d:T(e,t,r,i.selections,O,F);break;case v:break;case h:case s:case o:case g:case l:case u:case c:case _:case f:case R:case m:case I:case S:case y:throw new Error("Encountered an unexpected ReaderSelection variant in RelayRecordSourceProxy. This indicates a bug in Relay.");default:throw i.kind,new Error("Encountered an unexpected ReaderSelection variant in RelayRecordSourceProxy. This indicates a bug in Relay.")}};for(P.s();!(M=P.n()).done;){var V,w;x()}}catch(e){P.e(e)}finally{P.f()}}function L(e,t,r,a){return function(i){var s,o=n(null!==(s=e.args)&&void 0!==s?s:[],t);if(null==i)throw new Error("Do not assign null to plural linked fields; assign an empty array instead.");var l=i.map((function(e){if(null==e)throw new Error("When assigning an array of items, none of the items should be null or undefined.");var t=e.__id;if(null==t)throw new Error("The __id field must be present on each item passed to the setter. This indicates a bug in Relay.");var r=a.get(t);if(null==r)throw new Error("Did not find item with data id ".concat(t," in the store."));return r}));r.setLinkedRecords(l,e.name,o)}}function A(e,t,r,a){return function(i){var s,o=n(null!==(s=e.args)&&void 0!==s?s:[],t);if(null==i)r.setValue(i,e.name,o);else{var l=i.__id;if(null==l)throw new Error("The __id field must be present on the argument. This indicates a bug in Relay.");var u=a.get(l);if(null==u)throw new Error("Did not find item with data id ".concat(l," in the store."));r.setLinkedRecord(u,e.name,o)}}}function N(e,t,r,i,s){return function(){var o,l=n(null!==(o=e.args)&&void 0!==o?o:[],t),u=r.getLinkedRecords(e.name,l);return void 0===u&&(u=function(e,t,r,n,i){var s,o=(0,a.default)(i);try{for(o.s();!(s=o.n()).done;){var l=s.value;if("pluralLinked"===l.kind){var u=l.handle(e,r,t,n);if(null!=u)return u.map((function(e){if(null!=e)return n.get(e)}))}}}catch(e){o.e(e)}finally{o.f()}}(e,l,r,i,s)),null!=u?u.map((function(r){if(null!=r){var a={};return T(a,r,t,e.selections,i,s),Object.freeze(a),a}return r})):u}}function k(e,t,r,i,s){return function(){var o,l=n(null!==(o=e.args)&&void 0!==o?o:[],t),u=r.getLinkedRecord(e.name,l);if(void 0===u&&(u=function(e,t,r,n,i){var s,o=(0,a.default)(i);try{for(o.s();!(s=o.n()).done;){var l=s.value;if("linked"===l.kind){var u=l.handle(e,r,t,n);if(null!=u)return n.get(u)}}}catch(e){o.e(e)}finally{o.f()}}(e,l,r,i,s)),null!=u){var c={};return T(c,u,t,e.selections,i,s),Object.freeze(c),c}return u}}e.exports={createUpdatableProxy:function(e,t,r,a,n){var i={};return T(i,e,t,r,a,n),Object.freeze(i),i}}},function(e,t,r){"use strict";var a=r(3),n=a.REQUEST,i=a.SPLIT_OPERATION;e.exports=function(e){switch(e.kind){case n:return e.operation;case i:default:return e}}},function(e,t,r){"use strict";var a=r(3).LINKED_FIELD,n=r(1).getHandleStorageKey,i=r(9),s=r(0);e.exports=function(e,t,r){var o=t.find((function(t){return t.kind===a&&t.name===e.name&&t.alias===e.alias&&i(t.args,e.args)}));o&&o.kind===a||s(!1,"cloneRelayHandleSourceField: Expected a corresponding source field for handle `%s`.",e.handle);var l=n(e,r);return{kind:"LinkedField",alias:o.alias,name:l,storageKey:l,args:null,concreteType:o.concreteType,plural:o.plural,selections:o.selections}}},function(e,t,r){"use strict";var a=(0,r(2).default)(r(5)),n=r(13),i=n.EXISTENT,s=n.NONEXISTENT,o=n.UNKNOWN,l=function(){function e(e){var t=this;this._records=new Map,null!=e&&Object.keys(e).forEach((function(r){t._records.set(r,e[r])}))}e.create=function(t){return new e(t)};var t=e.prototype;return t.clear=function(){this._records=new Map},t.delete=function(e){this._records.set(e,null)},t.get=function(e){return this._records.get(e)},t.getRecordIDs=function(){return Array.from(this._records.keys())},t.getStatus=function(e){return this._records.has(e)?null==this._records.get(e)?s:i:o},t.has=function(e){return this._records.has(e)},t.remove=function(e){this._records.delete(e)},t.set=function(e,t){this._records.set(e,t)},t.size=function(){return this._records.size},t.toJSON=function(){var e,t={},r=(0,a.default)(this._records);try{for(r.s();!(e=r.n()).done;){var n=e.value,i=n[0],s=n[1];t[i]=s}}catch(e){r.e(e)}finally{r.f()}return t},e}();e.exports=l},function(e,t,r){"use strict";var a=r(2).default,n=a(r(5)),i=a(r(16)),s=a(r(18)),o=r(3),l=o.ACTOR_CHANGE,u=o.ALIASED_FRAGMENT_SPREAD,c=o.ALIASED_INLINE_FRAGMENT_SPREAD,d=o.CLIENT_EDGE_TO_CLIENT_OBJECT,h=o.CLIENT_EDGE_TO_SERVER_OBJECT,_=o.CLIENT_EXTENSION,f=o.CONDITION,v=o.DEFER,g=o.FLIGHT_FIELD,p=o.FRAGMENT_SPREAD,E=o.INLINE_DATA_FRAGMENT_SPREAD,R=o.INLINE_FRAGMENT,m=o.LINKED_FIELD,y=o.MODULE_IMPORT,I=o.RELAY_LIVE_RESOLVER,b=o.RELAY_RESOLVER,S=o.REQUIRED_FIELD,D=o.SCALAR_FIELD,T=o.STREAM,L=r(7),A=r(20).isSuspenseSentinel,N=r(10),k=r(4),O=r(11).getReactFlightClientResponse,F=r(1),C=F.CLIENT_EDGE_TRAVERSAL_PATH,M=F.FRAGMENT_OWNER_KEY,P=F.FRAGMENT_PROP_NAME_KEY,x=F.FRAGMENTS_KEY,V=F.ID_KEY,w=F.IS_WITHIN_UNMATCHED_TYPE_REFINEMENT,U=F.MODULE_COMPONENT_KEY,j=F.ROOT_ID,G=F.getArgumentValues,Y=F.getModuleComponentKey,K=F.getStorageKey,H=r(48).NoopResolverCache,z=r(28),q=z.RESOLVER_FRAGMENT_MISSING_DATA_SENTINEL,B=z.withResolverContext,W=r(15).generateTypeID,J=r(0);function X(e,t,r){return new Q(e,t,null!=r?r:new H).read()}var Q=function(){function e(e,t,r){var a;this._clientEdgeTraversalPath=L.ENABLE_CLIENT_EDGES&&null!==(a=t.clientEdgeTraversalPath)&&void 0!==a&&a.length?(0,s.default)(t.clientEdgeTraversalPath):[],this._missingClientEdges=[],this._missingLiveResolverFields=[],this._isMissingData=!1,this._isWithinUnmatchedTypeRefinement=!1,this._missingRequiredFields=null,this._owner=t.owner,this._recordSource=e,this._seenRecords=new Set,this._selector=t,this._variables=t.variables,this._resolverCache=r,this._resolverErrors=[],this._fragmentName=t.node.name,this._updatedDataIDs=new Set}var t=e.prototype;return t.read=function(){var e=this._selector,t=e.node,r=e.dataID,a=e.isWithinUnmatchedTypeRefinement,n=t.abstractKey,i=this._recordSource.get(r),s=!a;s&&null==n&&null!=i&&(k.getType(i)!==t.type&&r!==j&&(s=!1));if(s&&null!=n&&null!=i){var o=this._implementsInterface(i,n);!1===o?s=!1:null==o&&(this._isMissingData=!0)}this._isWithinUnmatchedTypeRefinement=!s;var l=this._traverse(t,r,null);return this._updatedDataIDs.size>0&&(this._resolverCache.notifyUpdatedSubscribers(this._updatedDataIDs),this._updatedDataIDs.clear()),{data:l,isMissingData:this._isMissingData&&s,missingClientEdges:L.ENABLE_CLIENT_EDGES&&this._missingClientEdges.length?this._missingClientEdges:null,missingLiveResolverFields:this._missingLiveResolverFields,seenRecords:this._seenRecords,selector:this._selector,missingRequiredFields:this._missingRequiredFields,relayResolverErrors:this._resolverErrors}},t._markDataAsMissing=function(){if(this._isMissingData=!0,L.ENABLE_CLIENT_EDGES&&this._clientEdgeTraversalPath.length){var e=this._clientEdgeTraversalPath[this._clientEdgeTraversalPath.length-1];null!==e&&this._missingClientEdges.push({request:e.readerClientEdge.operation,clientEdgeDestinationID:e.clientEdgeDestinationID})}},t._traverse=function(e,t,r){var a=this._recordSource.get(t);if(this._seenRecords.add(t),null==a)return void 0===a&&this._markDataAsMissing(),a;var n=r||{};return this._traverseSelections(e.selections,a,n)?n:null},t._getVariableValue=function(e){return this._variables.hasOwnProperty(e)||J(!1,"RelayReader(): Undefined variable `%s`.",e),this._variables[e]},t._maybeReportUnexpectedNull=function(e,t,r){var a;if("THROW"!==(null===(a=this._missingRequiredFields)||void 0===a?void 0:a.action)){var n=this._fragmentName;switch(t){case"THROW":return void(this._missingRequiredFields={action:t,field:{path:e,owner:n}});case"LOG":return void(null==this._missingRequiredFields?this._missingRequiredFields={action:t,fields:[{path:e,owner:n}]}:this._missingRequiredFields={action:t,fields:[].concat((0,s.default)(this._missingRequiredFields.fields),[{path:e,owner:n}])})}}},t._traverseSelections=function(e,t,r){for(var a=0;a<e.length;a++){var n=e[a];switch(n.kind){case S:if(null==this._readRequiredField(n,t,r)){var i=n.action;return"NONE"!==i&&this._maybeReportUnexpectedNull(n.path,i,t),!1}break;case D:this._readScalar(n,t,r);break;case m:n.plural?this._readPluralLink(n,t,r):this._readLink(n,t,r);break;case f:if(Boolean(this._getVariableValue(n.condition))===n.passingValue)if(!this._traverseSelections(n.selections,t,r))return!1;break;case R:if(!1===this._readInlineFragment(n,t,r))return!1;break;case I:case b:if(!L.ENABLE_RELAY_RESOLVERS)throw new Error("Relay Resolver fields are not yet supported.");this._readResolverField(n,t,r);break;case p:this._createFragmentPointer(n,t,r);break;case u:r[n.name]=this._createAliasedFragmentSpread(n,t);break;case c:var s=this._readInlineFragment(n.fragment,t,{});!1===s&&(s=null),r[n.name]=s;break;case y:this._readModuleImport(n,t,r);break;case E:this._createInlineDataOrResolverFragmentPointer(n,t,r);break;case v:case _:var o=this._isMissingData,A=this._missingClientEdges.length;L.ENABLE_CLIENT_EDGES&&this._clientEdgeTraversalPath.push(null);var N=this._traverseSelections(n.selections,t,r);if(this._isMissingData=o||this._missingClientEdges.length>A||this._missingLiveResolverFields.length>0,L.ENABLE_CLIENT_EDGES&&this._clientEdgeTraversalPath.pop(),!N)return!1;break;case T:if(!this._traverseSelections(n.selections,t,r))return!1;break;case g:if(!L.ENABLE_REACT_FLIGHT_COMPONENT_FIELD)throw new Error("Flight fields are not yet supported.");this._readFlightField(n,t,r);break;case l:this._readActorChange(n,t,r);break;case d:case h:if(!L.ENABLE_CLIENT_EDGES)throw new Error("Client edges are not yet supported.");this._readClientEdge(n,t,r);break;default:J(!1,"RelayReader(): Unexpected ast kind `%s`.",n.kind)}}return!0},t._readRequiredField=function(e,t,r){switch(e.field.kind){case D:return this._readScalar(e.field,t,r);case m:return e.field.plural?this._readPluralLink(e.field,t,r):this._readLink(e.field,t,r);case b:case I:if(!L.ENABLE_RELAY_RESOLVERS)throw new Error("Relay Resolver fields are not yet supported.");return this._readResolverField(e.field,t,r);case d:case h:if(!L.ENABLE_RELAY_RESOLVERS)throw new Error("Relay Resolver fields are not yet supported.");return this._readClientEdge(e.field,t,r);default:e.field.kind,J(!1,"RelayReader(): Unexpected ast kind `%s`.",e.kind)}},t._readResolverField=function(e,t,r){var a,s,o=this,l=e.fragment,u=k.getDataID(t),c=function(e){return null!=s?{data:s.data,isMissingData:s.isMissingData}:{data:(s=X(o._recordSource,e,o._resolverCache)).data,isMissingData:s.isMissingData}},d=this._resolverCache.readFromCacheOrEvaluate(u,e,this._variables,(function(){if(null!=l){var t={__id:u,__fragmentOwner:o._owner,__fragments:(0,i.default)({},l.name,l.args?G(l.args,o._variables):{})};return B({getDataForResolverFragment:c},(function(){var r=Z(e,o._variables,t,o._fragmentName),a=r[0],n=r[1];return{resolverResult:a,snapshot:s,error:n}}))}var r=Z(e,o._variables,null,o._fragmentName);return{resolverResult:r[0],snapshot:void 0,error:r[1]}}),c),h=d[0],_=d[1],f=d[2],v=d[3],g=d[4],p=d[5];if(null!=v){if(null!=v.missingRequiredFields&&this._addMissingRequiredFields(v.missingRequiredFields),null!=v.missingClientEdges){var E,R=(0,n.default)(v.missingClientEdges);try{for(R.s();!(E=R.n()).done;){var m=E.value;this._missingClientEdges.push(m)}}catch(e){R.e(e)}finally{R.f()}}if(null!=v.missingLiveResolverFields){this._isMissingData=this._isMissingData||v.missingLiveResolverFields.length>0;var y,I=(0,n.default)(v.missingLiveResolverFields);try{for(I.s();!(y=I.n()).done;){var b=y.value;this._missingLiveResolverFields.push(b)}}catch(e){I.e(e)}finally{I.f()}}var S,D=(0,n.default)(v.relayResolverErrors);try{for(D.s();!(S=D.n()).done;){var T=S.value;this._resolverErrors.push(T)}}catch(e){D.e(e)}finally{D.f()}this._isMissingData=this._isMissingData||v.isMissingData}if(f&&this._resolverErrors.push(f),null!=_&&this._seenRecords.add(_),null!=g&&(this._isMissingData=!0,this._missingLiveResolverFields.push({path:"".concat(this._fragmentName,".").concat(e.path),liveStateID:g})),null!=p){var L,A=(0,n.default)(p);try{for(A.s();!(L=A.n()).done;){var N=L.value;this._updatedDataIDs.add(N)}}catch(e){A.e(e)}finally{A.f()}}return r[null!==(a=e.alias)&&void 0!==a?a:e.name]=h,h},t._readClientEdge=function(e,t,r){var a,n=this,i=e.backingField;"ClientExtension"===i.kind&&J(!1,"Client extension client edges are not yet implemented.");var s=null!==(a=i.alias)&&void 0!==a?a:i.name,o={};this._traverseSelections([i],t,o);var l=o[s];if(null==l||A(l))r[s]=l;else{if(e.linkedField.plural?Array.isArray(l)||J(!1,"Expected plural Client Edge Relay Resolver to return an array of IDs."):"string"!=typeof l&&J(!1,"Expected a Client Edge Relay Resolver to return an ID of type `string`."),e.kind===d?(null==i.normalizationInfo&&(l=e.linkedField.plural?l.map((function(t){return n._resolverCache.ensureClientRecord(t,e.concreteType)})):this._resolverCache.ensureClientRecord(l,e.concreteType)),this._clientEdgeTraversalPath.push(null)):(e.linkedField.plural&&J(!1,"Unexpected Client Edge to plural server type. This should be prevented by the compiler."),this._clientEdgeTraversalPath.push({readerClientEdge:e,clientEdgeDestinationID:l})),e.linkedField.plural)r[s]=this._readLinkedIds(e.linkedField,l,t,r);else{var u=r[s];null!=u&&"object"!=typeof u&&J(!1,"RelayReader(): Expected data for field `%s` on record `%s` to be an object, got `%s`.",s,k.getDataID(t),u),r[s]=this._traverse(e.linkedField,l,u)}this._clientEdgeTraversalPath.pop()}},t._readFlightField=function(e,t,r){var a,n=null!==(a=e.alias)&&void 0!==a?a:e.name,i=K(e,this._variables),s=k.getLinkedRecordID(t,i);if(null==s)return r[n]=s,void 0===s&&this._markDataAsMissing(),s;var o=this._recordSource.get(s);if(this._seenRecords.add(s),null==o)return r[n]=o,void 0===o&&this._markDataAsMissing(),o;var l=O(o);return r[n]=l,l},t._readScalar=function(e,t,r){var a,n=null!==(a=e.alias)&&void 0!==a?a:e.name,i=K(e,this._variables),s=k.getValue(t,i);return void 0===s&&this._markDataAsMissing(),r[n]=s,s},t._readLink=function(e,t,r){var a,n=null!==(a=e.alias)&&void 0!==a?a:e.name,i=K(e,this._variables),s=k.getLinkedRecordID(t,i);if(null==s)return r[n]=s,void 0===s&&this._markDataAsMissing(),s;var o=r[n];null!=o&&"object"!=typeof o&&J(!1,"RelayReader(): Expected data for field `%s` on record `%s` to be an object, got `%s`.",n,k.getDataID(t),o);var l=this._traverse(e,s,o);return r[n]=l,l},t._readActorChange=function(e,t,r){var a,n=null!==(a=e.alias)&&void 0!==a?a:e.name,i=K(e,this._variables),s=k.getActorLinkedRecordID(t,i);if(null==s)return r[n]=s,void 0===s&&this._markDataAsMissing(),r[n];var o=s[0],l=s[1],u={};return this._createFragmentPointer(e.fragmentSpread,{__id:l},u),r[n]={__fragmentRef:u,__viewer:o},r[n]},t._readPluralLink=function(e,t,r){var a=K(e,this._variables),n=k.getLinkedRecordIDs(t,a);return this._readLinkedIds(e,n,t,r)},t._readLinkedIds=function(e,t,r,a){var n,i=this,s=null!==(n=e.alias)&&void 0!==n?n:e.name;if(null==t)return a[s]=t,void 0===t&&this._markDataAsMissing(),t;var o=a[s];null==o||Array.isArray(o)||J(!1,"RelayReader(): Expected data for field `%s` on record `%s` to be an array, got `%s`.",s,k.getDataID(r),o);var l=o||[];return t.forEach((function(t,a){if(null==t)return void 0===t&&i._markDataAsMissing(),void(l[a]=t);var n=l[a];null!=n&&"object"!=typeof n&&J(!1,"RelayReader(): Expected data for field `%s` on record `%s` to be an object, got `%s`.",s,k.getDataID(r),n),l[a]=i._traverse(e,t,n)})),a[s]=l,l},t._readModuleImport=function(e,t,r){var a=Y(e.documentName),n=k.getValue(t,a);null!=n?(this._createFragmentPointer({kind:"FragmentSpread",name:e.fragmentName,args:e.args},t,r),r[P]=e.fragmentPropName,r[U]=n):void 0===n&&this._markDataAsMissing()},t._createAliasedFragmentSpread=function(e,t){var r=e.abstractKey;if(null==r){var a=k.getType(t);if(null==a||a!==e.type)return null}else{var n=this._implementsInterface(t,r);if(!1===n)return null;if(null==n)return void this._markDataAsMissing()}var i={};return this._createFragmentPointer(e.fragment,t,i),i},t._readInlineFragment=function(e,t,r){var a=e.abstractKey;if(null==a){var n=k.getType(t);if(null==n||n!==e.type)return null;if(!this._traverseSelections(e.selections,t,r))return!1}else{var i=this._implementsInterface(t,a),s=this._isMissingData,o=this._isWithinUnmatchedTypeRefinement;if(this._isWithinUnmatchedTypeRefinement=o||!1===i,this._traverseSelections(e.selections,t,r),this._isWithinUnmatchedTypeRefinement=o,!1===i)return void(this._isMissingData=s);if(null==i)return this._markDataAsMissing(),null}return r},t._createFragmentPointer=function(e,t,r){var a=r[x];null==a&&(a=r[x]={}),("object"!=typeof a||null==a)&&J(!1,"RelayReader: Expected fragment spread data to be an object, got `%s`.",a),null==r[V]&&(r[V]=k.getDataID(t)),a[e.name]=e.args?G(e.args,this._variables):{},r[M]=this._owner,r[w]=this._isWithinUnmatchedTypeRefinement,L.ENABLE_CLIENT_EDGES&&this._clientEdgeTraversalPath.length>0&&null!==this._clientEdgeTraversalPath[this._clientEdgeTraversalPath.length-1]&&(r[C]=(0,s.default)(this._clientEdgeTraversalPath))},t._createInlineDataOrResolverFragmentPointer=function(e,t,r){var a=r[x];null==a&&(a=r[x]={}),("object"!=typeof a||null==a)&&J(!1,"RelayReader: Expected fragment spread data to be an object, got `%s`.",a),null==r[V]&&(r[V]=k.getDataID(t));var n={},i=this._fragmentName;this._fragmentName=e.name;var s=this._variables,o=e.args?G(e.args,this._variables):{};this._variables=N.getFragmentVariables(e,this._owner.variables,o),this._traverseSelections(e.selections,t,n),this._variables=s,this._fragmentName=i,a[e.name]=n},t._addMissingRequiredFields=function(e){null!=this._missingRequiredFields?"THROW"!==this._missingRequiredFields.action&&("THROW"!==e.action?this._missingRequiredFields={action:"LOG",fields:[].concat((0,s.default)(this._missingRequiredFields.fields),(0,s.default)(e.fields))}:this._missingRequiredFields=e):this._missingRequiredFields=e},t._implementsInterface=function(e,t){var r=k.getType(e),a=this._recordSource.get(W(r));return null!=a?k.getValue(a,t):null},e}();function Z(e,t,r,a){var n="function"==typeof e.resolverModule?e.resolverModule:e.resolverModule.default,i=null,s=null;try{var o=[];null!=e.fragment&&o.push(r);var l=e.args?G(e.args,t):void 0;o.push(l),i=n.apply(null,o)}catch(t){var u;if(t===q)i=void 0;else s={field:{path:null!==(u=e.path)&&void 0!==u?u:"[UNKNOWN]",owner:a},error:t}}return[i,s]}e.exports={read:X}},function(e,t,r){"use strict";var a=r(19).getFragment,n=r(14).getSelector,i=r(0),s=[];var o={};e.exports={readFragment:function(e,t){if(!s.length)throw new Error("readFragment should be called only from within a Relay Resolver function.");var r=s[s.length-1],l=a(e),u=n(l,t);null==u&&i(!1,"Expected a selector for the fragment of the resolver ".concat(l.name,", but got null.")),"SingularReaderSelector"!==u.kind&&i(!1,"Expected a singular reader selector for the fragment of the resolver ".concat(l.name,", but it was plural."));var c=r.getDataForResolverFragment(u,t),d=c.data;if(c.isMissingData)throw o;return d},withResolverContext:function(e,t){s.push(e);try{return t()}finally{s.pop()}},RESOLVER_FRAGMENT_MISSING_DATA_SENTINEL:o}},function(e,t,r){"use strict";var a=r(0),n=r(1).RELAY_RESOLVER_OUTPUT_TYPE_RECORD_IDS,i=r(4);e.exports=function(e){var t=i.getValue(e,n);return null==t?null:(t instanceof Set||a(!1,"getOutputTypeRecordIDs: Expected the `%s` field on record `%s` to be of type Set. Instead, it is a %s.",n,typeof t),new Set(t))}},function(e,t,r){"use strict";e.exports=function(e){return null!=e&&"object"==typeof e&&"function"==typeof e.read&&"function"==typeof e.subscribe}},function(e,t,r){"use strict";var a=r(32),n=r(20),i=n.isSuspenseSentinel,s=n.suspenseSentinel,o=r(55),l=r(56),u=l.weakObjectWrapper,c=l.weakObjectWrapperLive;e.exports={resolverDataInjector:o,isSuspenseSentinel:i,LiveResolverStore:a,weakObjectWrapper:u,weakObjectWrapperLive:c,suspenseSentinel:s}},function(e,t,r){"use strict";var a=r(2).default,n=a(r(5)),i=a(r(16)),s=r(22),o=s.INTERNAL_ACTOR_IDENTIFIER_DO_NOT_USE,l=s.assertInternalActorIdentifier,u=r(17),c=r(33),d=r(34),h=r(45),_=r(4),f=r(47),v=r(27),g=r(49),p=r(11),E=r(50),R=r(1),m=r(1),y=m.ROOT_ID,I=m.ROOT_TYPE,b=r(52),S=b.LiveResolverCache,D=b.getUpdatedDataIDs,T=r(0),L=function(){function e(e,t){var r,a,n,s,o,l,u,d=this;(0,i.default)(this,"_gcStep",(function(){d._gcRun&&(d._gcRun.next().done?d._gcRun=null:d._gcScheduler(d._gcStep))}));for(var f=e.getRecordIDs(),v=0;v<f.length;v++){var g=e.get(f[v]);g&&_.freeze(g)}this._currentWriteEpoch=0,this._gcHoldCounter=0,this._gcReleaseBufferSize=null!==(r=null==t?void 0:t.gcReleaseBufferSize)&&void 0!==r?r:10,this._gcRun=null,this._gcScheduler=null!==(a=null==t?void 0:t.gcScheduler)&&void 0!==a?a:c,this._getDataID=null!==(n=null==t?void 0:t.getDataID)&&void 0!==n?n:h,this._globalInvalidationEpoch=null,this._invalidationSubscriptions=new Set,this._invalidatedRecordIDs=new Set,this.__log=null!==(s=null==t?void 0:t.log)&&void 0!==s?s:null,this._queryCacheExpirationTime=null==t?void 0:t.queryCacheExpirationTime,this._operationLoader=null!==(o=null==t?void 0:t.operationLoader)&&void 0!==o?o:null,this._optimisticSource=null,this._recordSource=e,this._releaseBuffer=[],this._roots=new Map,this._shouldScheduleGC=!1,this._resolverCache=new S((function(){return d._getMutableRecordSource()}),this),this._storeSubscriptions=new E(null==t?void 0:t.log,this._resolverCache),this._updatedRecordIDs=new Set,this._treatMissingFieldsAsNull=null!==(l=null==t?void 0:t.treatMissingFieldsAsNull)&&void 0!==l&&l,this._actorIdentifier=null==t?void 0:t.actorIdentifier,this._reactFlightPayloadDeserializer=null==t?void 0:t.reactFlightPayloadDeserializer,this._reactFlightServerErrorHandler=null==t?void 0:t.reactFlightServerErrorHandler,this._shouldProcessClientComponents=null!==(u=null==t?void 0:t.shouldProcessClientComponents)&&void 0!==u&&u,function(e){if(!e.has(y)){var t=_.create(y,I);e.set(y,t)}}(this._recordSource)}var t=e.prototype;return t.getSource=function(){var e;return null!==(e=this._optimisticSource)&&void 0!==e?e:this._recordSource},t._getMutableRecordSource=function(){var e;return null!==(e=this._optimisticSource)&&void 0!==e?e:this._recordSource},t.getLiveResolverPromise=function(e){return this._resolverCache.getLiveResolverPromise(e)},t.batchLiveStateUpdates=function(e){this._resolverCache.batchLiveStateUpdates(e)},t.check=function(e,t){var r,a,n,i,s=e.root,u=this._getMutableRecordSource(),c=this._globalInvalidationEpoch,h=this._roots.get(e.request.identifier),_=null!=h?h.epoch:null;if(null!=c&&(null==_||_<=c))return{status:"stale"};var f=null!==(r=null==t?void 0:t.handlers)&&void 0!==r?r:[],v=null!==(a=null==t?void 0:t.getSourceForActor)&&void 0!==a?a:function(e){return l(e),u},g=null!==(n=null==t?void 0:t.getTargetForActor)&&void 0!==n?n:function(e){return l(e),u};return function(e,t,r,a){var n=e.mostRecentlyInvalidatedAt,i=e.status;if("number"==typeof n&&(null==t||n>t))return{status:"stale"};if("missing"===i)return{status:"missing"};if(null!=r&&null!=a){if(r<=Date.now()-a)return{status:"stale"}}return{status:"available",fetchTime:null!=r?r:null}}(d.check(v,g,null!==(i=null==t?void 0:t.defaultActorIdentifier)&&void 0!==i?i:o,s,f,this._operationLoader,this._getDataID,this._shouldProcessClientComponents),_,null==h?void 0:h.fetchTime,this._queryCacheExpirationTime)},t.retain=function(e){var t=this,r=e.request.identifier,a=!1,n=this._roots.get(r);return null!=n?(0===n.refCount&&(this._releaseBuffer=this._releaseBuffer.filter((function(e){return e!==r}))),n.refCount+=1):this._roots.set(r,{operation:e,refCount:1,epoch:null,fetchTime:null}),{dispose:function(){if(!a){a=!0;var e=t._roots.get(r);if(null!=e&&(e.refCount--,0===e.refCount)){var n=t._queryCacheExpirationTime;if(null!=e.fetchTime&&null!=n&&e.fetchTime<=Date.now()-n)t._roots.delete(r),t.scheduleGC();else if(t._releaseBuffer.push(r),t._releaseBuffer.length>t._gcReleaseBufferSize){var i=t._releaseBuffer.shift();t._roots.delete(i),t.scheduleGC()}}}}}},t.lookup=function(e){var t=this.getSource(),r=v.read(t,e,this._resolverCache);return u(r),r},t.notify=function(e,t){var r=this,a=this.__log;null!=a&&a({name:"store.notify.start",sourceOperation:e}),this._currentWriteEpoch++,!0===t&&(this._globalInvalidationEpoch=this._currentWriteEpoch),this._resolverCache.invalidateDataIDs(this._updatedRecordIDs);var n=this.getSource(),i=[];if(this._storeSubscriptions.updateSubscriptions(n,this._updatedRecordIDs,i,e),this._invalidationSubscriptions.forEach((function(e){r._updateInvalidationSubscription(e,!0===t)})),null!=a&&a({name:"store.notify.complete",sourceOperation:e,updatedRecordIDs:this._updatedRecordIDs,invalidatedRecordIDs:this._invalidatedRecordIDs}),this._updatedRecordIDs.clear(),this._invalidatedRecordIDs.clear(),null!=e){var s=e.request.identifier,o=this._roots.get(s);if(null!=o)o.epoch=this._currentWriteEpoch,o.fetchTime=Date.now();else if("query"===e.request.node.params.operationKind&&this._gcReleaseBufferSize>0&&this._releaseBuffer.length<this._gcReleaseBufferSize){var l={operation:e,refCount:0,epoch:this._currentWriteEpoch,fetchTime:Date.now()};this._releaseBuffer.push(s),this._roots.set(s,l)}}return i},t.publish=function(e,t){var r=this._getMutableRecordSource();!function(e,t,r,a,n,i){a&&a.forEach((function(a){var n,s=e.get(a),o=t.get(a);null!==o&&((n=null!=s?_.clone(s):null!=o?_.clone(o):null)&&(_.setValue(n,R.INVALIDATED_AT_KEY,r),i.add(a),e.set(a,n)))}));for(var s=t.getRecordIDs(),o=0;o<s.length;o++){var l=s[o],u=t.get(l),c=e.get(l);if(u&&_.freeze(u),u&&c){var d=_.getType(c)===p.REACT_FLIGHT_TYPE_NAME?u:_.update(c,u);d!==c&&(_.freeze(d),n.add(l),e.set(l,d))}else null===u?(e.delete(l),null!==c&&n.add(l)):u&&(e.set(l,u),n.add(l))}}(r,e,this._currentWriteEpoch+1,t,this._updatedRecordIDs,this._invalidatedRecordIDs);var a=this.__log;null!=a&&a({name:"store.publish",source:e,optimistic:r===this._optimisticSource})},t.subscribe=function(e,t){return this._storeSubscriptions.subscribe(e,t)},t.holdGC=function(){var e=this;this._gcRun&&(this._gcRun=null,this._shouldScheduleGC=!0),this._gcHoldCounter++;return{dispose:function(){e._gcHoldCounter>0&&(e._gcHoldCounter--,0===e._gcHoldCounter&&e._shouldScheduleGC&&(e.scheduleGC(),e._shouldScheduleGC=!1))}}},t.toJSON=function(){return"LiveResolverStore()"},t.getEpoch=function(){return this._currentWriteEpoch},t.__getUpdatedRecordIDs=function(){return this._updatedRecordIDs},t.lookupInvalidationState=function(e){var t=this,r=new Map;return e.forEach((function(e){var a,n=t.getSource().get(e);r.set(e,null!==(a=_.getInvalidationEpoch(n))&&void 0!==a?a:null)})),r.set("global",this._globalInvalidationEpoch),{dataIDs:e,invalidations:r}},t.checkInvalidationState=function(e){var t=this.lookupInvalidationState(e.dataIDs).invalidations,r=e.invalidations;if(t.get("global")!==r.get("global"))return!0;var a,i=(0,n.default)(e.dataIDs);try{for(i.s();!(a=i.n()).done;){var s=a.value;if(t.get(s)!==r.get(s))return!0}}catch(e){i.e(e)}finally{i.f()}return!1},t.subscribeToInvalidationState=function(e,t){var r=this,a={callback:t,invalidationState:e};return this._invalidationSubscriptions.add(a),{dispose:function(){r._invalidationSubscriptions.delete(a)}}},t._updateInvalidationSubscription=function(e,t){var r=this,a=e.callback,n=e.invalidationState.dataIDs;(t||n.some((function(e){return r._invalidatedRecordIDs.has(e)})))&&a()},t.snapshot=function(){null!=this._optimisticSource&&T(!1,"LiveResolverStore: Unexpected call to snapshot() while a previous snapshot exists.");var e=this.__log;null!=e&&e({name:"store.snapshot"}),this._storeSubscriptions.snapshotSubscriptions(this.getSource()),this._gcRun&&(this._gcRun=null,this._shouldScheduleGC=!0),this._optimisticSource=f.create(this.getSource())},t.restore=function(){var e=this._optimisticSource;e||T(!1,"LiveResolverStore: Unexpected call to restore(), expected a snapshot to exist (make sure to call snapshot()).");var t=this.__log;null!=t&&t({name:"store.restore"});var r=f.getOptimisticRecordIDs(e);this._resolverCache.unsubscribeFromLiveResolverRecords(r),this._optimisticSource=null,this._shouldScheduleGC&&this.scheduleGC(),this._storeSubscriptions.restoreSubscriptions(),this._resolverCache.invalidateResolverRecords(r)},t.scheduleGC=function(){this._gcHoldCounter>0?this._shouldScheduleGC=!0:this._gcRun||(this._gcRun=this._collect(),this._gcScheduler(this._gcStep))},t.__gc=function(){if(null==this._optimisticSource)for(var e=this._collect();!e.next().done;);},t._collect=function*(){e:for(;;){var e,t=this._currentWriteEpoch,r=new Set,a=(0,n.default)(this._roots.values());try{for(a.s();!(e=a.n()).done;){var i=e.value.operation.root;if(g.mark(this._recordSource,i,r,this._operationLoader,this._shouldProcessClientComponents),yield,t!==this._currentWriteEpoch)continue e}}catch(e){a.e(e)}finally{a.f()}var s=this.__log;if(null!=s&&s({name:"store.gc",references:r}),0===r.size)this._recordSource.clear();else for(var o=this._recordSource.getRecordIDs(),l=0;l<o.length;l++){var u=o[l];r.has(u)||this._recordSource.remove(u)}return}},t.__getNormalizationOptions=function(e){return{path:e,getDataID:this._getDataID,treatMissingFieldsAsNull:this._treatMissingFieldsAsNull,reactFlightPayloadDeserializer:this._reactFlightPayloadDeserializer,reactFlightServerErrorHandler:this._reactFlightServerErrorHandler,shouldProcessClientComponents:this._shouldProcessClientComponents,actorIdentifier:this._actorIdentifier}},t.__notifyUpdatedSubscribers=function(e){var t=D(e),r=this._updatedRecordIDs;this._updatedRecordIDs=t,this.notify(),this._updatedRecordIDs=r},e}();e.exports=L},function(e,t,r){"use strict";var a=Promise.resolve();function n(e){setTimeout((function(){throw e}),0)}e.exports=function(e){a.then(e).catch(n)}},function(e,t,r){"use strict";var a=(0,r(2).default)(r(5)),n=r(35),i=r(40),s=r(24),o=r(3),l=r(7),u=r(6).isClientID,c=r(25),d=r(44),h=r(10).getLocalVariables,_=r(4),f=r(13),v=f.EXISTENT,g=f.UNKNOWN,p=r(11),E=r(1),R=r(15),m=R.generateTypeID,y=R.TYPE_SCHEMA_TYPE,I=r(0),b=o.ACTOR_CHANGE,S=o.CONDITION,D=o.CLIENT_COMPONENT,T=o.CLIENT_EXTENSION,L=o.DEFER,A=o.FLIGHT_FIELD,N=o.FRAGMENT_SPREAD,k=o.INLINE_FRAGMENT,O=o.LINKED_FIELD,F=o.LINKED_HANDLE,C=o.MODULE_IMPORT,M=o.RELAY_RESOLVER,P=o.SCALAR_FIELD,x=o.SCALAR_HANDLE,V=o.STREAM,w=o.TYPE_DISCRIMINATOR,U=E.ROOT_ID,j=E.getModuleOperationKey,G=E.getStorageKey,Y=E.getArgumentValues;var K=function(){function e(e,t,r,a,n,i,s,o){this._getSourceForActor=e,this._getTargetForActor=t,this._getDataID=s,this._source=e(r),this._mutatorRecordSourceProxyCache=new Map;var l=this._getMutatorAndRecordProxyForActor(r),u=l[0],c=l[1];this._mostRecentlyInvalidatedAt=null,this._handlers=n,this._mutator=u,this._operationLoader=null!=i?i:null,this._recordSourceProxy=c,this._recordWasMissing=!1,this._variables=a,this._shouldProcessClientComponents=o}var t=e.prototype;return t._getMutatorAndRecordProxyForActor=function(e){var t=this._mutatorRecordSourceProxyCache.get(e);if(null==t){var r=this._getTargetForActor(e),a=new n(this._getSourceForActor(e),r);t=[a,new i(a,this._getDataID,void 0,this._handlers)],this._mutatorRecordSourceProxyCache.set(e,t)}return t},t.check=function(e,t){return this._assignClientAbstractTypes(e),this._traverse(e,t),!0===this._recordWasMissing?{status:"missing",mostRecentlyInvalidatedAt:this._mostRecentlyInvalidatedAt}:{status:"available",mostRecentlyInvalidatedAt:this._mostRecentlyInvalidatedAt}},t._getVariableValue=function(e){return this._variables.hasOwnProperty(e)||I(!1,"RelayAsyncLoader(): Undefined variable `%s`.",e),this._variables[e]},t._handleMissing=function(){this._recordWasMissing=!0},t._handleMissingScalarField=function(e,t){if("id"!==e.name||null!=e.alias||!u(t)){var r,n=null!=e.args?Y(e.args,this._variables):{},i=(0,a.default)(this._handlers);try{for(i.s();!(r=i.n()).done;){var s=r.value;if("scalar"===s.kind){var o=s.handle(e,this._recordSourceProxy.get(t),n,this._recordSourceProxy);if(void 0!==o)return o}}}catch(e){i.e(e)}finally{i.f()}this._handleMissing()}},t._handleMissingLinkField=function(e,t){var r,n=null!=e.args?Y(e.args,this._variables):{},i=(0,a.default)(this._handlers);try{for(i.s();!(r=i.n()).done;){var s=r.value;if("linked"===s.kind){var o=s.handle(e,this._recordSourceProxy.get(t),n,this._recordSourceProxy);if(void 0!==o&&(null===o||this._mutator.getStatus(o)===v))return o}}}catch(e){i.e(e)}finally{i.f()}this._handleMissing()},t._handleMissingPluralLinkField=function(e,t){var r,n=this,i=null!=e.args?Y(e.args,this._variables):{},s=(0,a.default)(this._handlers);try{for(s.s();!(r=s.n()).done;){var o=r.value;if("pluralLinked"===o.kind){var l=o.handle(e,this._recordSourceProxy.get(t),i,this._recordSourceProxy);if(null!=l){if(l.every((function(e){return null!=e&&n._mutator.getStatus(e)===v})))return l}else if(null===l)return null}}}catch(e){s.e(e)}finally{s.f()}this._handleMissing()},t._traverse=function(e,t){var r=this._mutator.getStatus(t);if(r===g&&this._handleMissing(),r===v){var a=this._source.get(t),n=_.getInvalidationEpoch(a);null!=n&&(this._mostRecentlyInvalidatedAt=null!=this._mostRecentlyInvalidatedAt?Math.max(this._mostRecentlyInvalidatedAt,n):n),this._traverseSelections(e.selections,t)}},t._traverseSelections=function(e,t){var r=this;e.forEach((function(a){switch(a.kind){case P:r._checkScalar(a,t);break;case O:a.plural?r._checkPluralLink(a,t):r._checkLink(a,t);break;case b:r._checkActorChange(a.linkedField,t);break;case S:Boolean(r._getVariableValue(a.condition))===a.passingValue&&r._traverseSelections(a.selections,t);break;case k:var n=a.abstractKey;if(null==n){r._mutator.getType(t)===a.type&&r._traverseSelections(a.selections,t)}else{var i=r._mutator.getType(t);null==i&&I(!1,"DataChecker: Expected record `%s` to have a known type",t);var s=m(i),o=r._mutator.getValue(s,n);!0===o?r._traverseSelections(a.selections,t):null==o&&r._handleMissing()}break;case F:var u=c(a,e,r._variables);u.plural?r._checkPluralLink(u,t):r._checkLink(u,t);break;case x:var _=d(a,e,r._variables);r._checkScalar(_,t);break;case C:r._checkModuleImport(a,t);break;case L:case V:r._traverseSelections(a.selections,t);break;case N:var f=r._variables;r._variables=h(r._variables,a.fragment.argumentDefinitions,a.args),r._traverseSelections(a.fragment.selections,t),r._variables=f;break;case T:var v=r._recordWasMissing;r._traverseSelections(a.selections,t),r._recordWasMissing=v;break;case w:var g=a.abstractKey,p=r._mutator.getType(t);null==p&&I(!1,"DataChecker: Expected record `%s` to have a known type",t);var E=m(p);null==r._mutator.getValue(E,g)&&r._handleMissing();break;case A:if(!l.ENABLE_REACT_FLIGHT_COMPONENT_FIELD)throw new Error("Flight fields are not yet supported.");r._checkFlightField(a,t);break;case D:if(!1===r._shouldProcessClientComponents)break;r._traverseSelections(a.fragment.selections,t);break;case M:a.fragment&&r._traverseSelections([a.fragment],t);break;default:I(!1,"RelayAsyncLoader(): Unexpected ast kind `%s`.",a.kind)}}))},t._checkModuleImport=function(e,t){var r=this._operationLoader;null===r&&I(!1,"DataChecker: Expected an operationLoader to be configured when using `@module`.");var a=j(e.documentName),n=this._mutator.getValue(t,a);if(null!=n){var i=r.get(n);if(null!=i){var o=s(i),l=this._variables;this._variables=h(this._variables,o.argumentDefinitions,e.args),this._traverse(o,t),this._variables=l}else this._handleMissing()}else void 0===n&&this._handleMissing()},t._checkScalar=function(e,t){var r=G(e,this._variables),a=this._mutator.getValue(t,r);void 0===a&&void 0!==(a=this._handleMissingScalarField(e,t))&&this._mutator.setValue(t,r,a)},t._checkLink=function(e,t){var r=G(e,this._variables),a=this._mutator.getLinkedRecordID(t,r);void 0===a&&(null!=(a=this._handleMissingLinkField(e,t))?this._mutator.setLinkedRecordID(t,r,a):null===a&&this._mutator.setValue(t,r,null)),null!=a&&this._traverse(e,a)},t._checkPluralLink=function(e,t){var r=this,a=G(e,this._variables),n=this._mutator.getLinkedRecordIDs(t,a);void 0===n&&(null!=(n=this._handleMissingPluralLinkField(e,t))?this._mutator.setLinkedRecordIDs(t,a,n):null===n&&this._mutator.setValue(t,a,null)),n&&n.forEach((function(t){null!=t&&r._traverse(e,t)}))},t._checkActorChange=function(e,t){var r=G(e,this._variables),a=this._source.get(t),n=null!=a?_.getActorLinkedRecordID(a,r):a;if(null==n)void 0===n&&this._handleMissing();else{var i=n[0],s=n[1],o=this._source,l=this._mutator,u=this._recordSourceProxy,c=this._getMutatorAndRecordProxyForActor(i),d=c[0],h=c[1];this._source=this._getSourceForActor(i),this._mutator=d,this._recordSourceProxy=h,this._assignClientAbstractTypes(e),this._traverse(e,s),this._source=o,this._mutator=l,this._recordSourceProxy=u}},t._checkFlightField=function(e,t){var r=G(e,this._variables),n=this._mutator.getLinkedRecordID(t,r);if(null==n)return void 0===n?void this._handleMissing():void 0;var i=this._mutator.getValue(n,p.REACT_FLIGHT_TREE_STORAGE_KEY),o=this._mutator.getValue(n,p.REACT_FLIGHT_EXECUTABLE_DEFINITIONS_STORAGE_KEY);if(null!=i&&Array.isArray(o)){var l=this._operationLoader;null===l&&I(!1,"DataChecker: Expected an operationLoader to be configured when using React Flight.");var u,c=this._variables,d=(0,a.default)(o);try{for(d.s();!(u=d.n()).done;){var h=u.value;this._variables=h.variables;var _=l.get(h.module);if(null!=_){var f=s(_);this._traverseSelections(f.selections,U)}else this._handleMissing()}}catch(e){d.e(e)}finally{d.f()}this._variables=c}else this._handleMissing()},t._assignClientAbstractTypes=function(e){var t=e.clientAbstractTypes;if(null!=t)for(var r=0,n=Object.keys(t);r<n.length;r++){var i,s=n[r],o=(0,a.default)(t[s]);try{for(o.s();!(i=o.n()).done;){var l=i.value,u=m(l);null==this._source.get(u)&&this._mutator.create(u,y),null==this._mutator.getValue(u,s)&&this._mutator.setValue(u,s,!0)}}catch(e){o.e(e)}finally{o.f()}}},e}();e.exports={check:function(e,t,r,a,n,i,s,o){var l=a.dataID,u=a.node,c=a.variables;return new K(e,t,r,c,n,i,s,o).check(u,l)}}},function(e,t,r){"use strict";var a=r(4),n=r(13).EXISTENT,i=r(0),s=function(){function e(e,t){this.__sources=[t,e],this._base=e,this._sink=t}var t=e.prototype;return t.unstable_getRawRecordWithChanges=function(e){var t=this._base.get(e),r=this._sink.get(e);if(void 0===r){if(null==t)return t;var n=a.clone(t);return a.freeze(n),n}if(null===r)return null;if(null!=t){var i=a.update(t,r);return i!==t&&a.freeze(i),i}var s=a.clone(r);return a.freeze(s),s},t._getSinkRecord=function(e){var t=this._sink.get(e);if(!t){var r=this._base.get(e);r||i(!1,"RelayRecordSourceMutator: Cannot modify non-existent record `%s`.",e),t=a.create(e,a.getType(r)),this._sink.set(e,t)}return t},t.copyFields=function(e,t){var r=this._sink.get(e),n=this._base.get(e);r||n||i(!1,"RelayRecordSourceMutator#copyFields(): Cannot copy fields from non-existent record `%s`.",e);var s=this._getSinkRecord(t);n&&a.copyFields(n,s),r&&a.copyFields(r,s)},t.copyFieldsFromRecord=function(e,t){var r=this._getSinkRecord(t);a.copyFields(e,r)},t.create=function(e,t){(this._base.getStatus(e)===n||this._sink.getStatus(e)===n)&&i(!1,"RelayRecordSourceMutator#create(): Cannot create a record with id `%s`, this record already exists.",e);var r=a.create(e,t);this._sink.set(e,r)},t.delete=function(e){this._sink.delete(e)},t.getStatus=function(e){return this._sink.has(e)?this._sink.getStatus(e):this._base.getStatus(e)},t.getType=function(e){for(var t=0;t<this.__sources.length;t++){var r=this.__sources[t].get(e);if(r)return a.getType(r);if(null===r)return null}},t.getValue=function(e,t){for(var r=0;r<this.__sources.length;r++){var n=this.__sources[r].get(e);if(n){var i=a.getValue(n,t);if(void 0!==i)return i}else if(null===n)return null}},t.setValue=function(e,t,r){var n=this._getSinkRecord(e);a.setValue(n,t,r)},t.getLinkedRecordID=function(e,t){for(var r=0;r<this.__sources.length;r++){var n=this.__sources[r].get(e);if(n){var i=a.getLinkedRecordID(n,t);if(void 0!==i)return i}else if(null===n)return null}},t.setLinkedRecordID=function(e,t,r){var n=this._getSinkRecord(e);a.setLinkedRecordID(n,t,r)},t.getLinkedRecordIDs=function(e,t){for(var r=0;r<this.__sources.length;r++){var n=this.__sources[r].get(e);if(n){var i=a.getLinkedRecordIDs(n,t);if(void 0!==i)return i}else if(null===n)return null}},t.setLinkedRecordIDs=function(e,t,r){var n=this._getSinkRecord(e);a.setLinkedRecordIDs(n,t,r)},e}();e.exports=s},function(e,t,r){"use strict";var a=new Map,n=1,i=function(){for(var e=new Set,t=0;t<10;++t)e.add(t.toString());return e}();e.exports={intern:function(e,t){if(null==t||e.length<t)return function(e){return"\t"===e[0]&&i.has(e[1])||"\v"===e[0]?"\v"+e:e}(e);var r=a.get(e);return null!=r||(r="\t"+n++,a.set(e,r)),r}}},function(e,t,r){"use strict";var a=r(38).DEFAULT_HANDLE_KEY,n=r(0);e.exports=function(e,t,r){return t&&t!==a?"__".concat(t,"_").concat(e):(null==r&&n(!1,"getRelayHandleKey: Expected either `fieldName` or `key` in `handle` to be provided"),"__".concat(r,"_").concat(e))}},function(e,t,r){"use strict";e.exports={DEFAULT_HANDLE_KEY:""}},function(e,t,r){"use strict";e.exports=function e(t){if(!t||"object"!=typeof t)return t;if(Array.isArray(t))return t.map(e);for(var r=Object.keys(t).sort(),a={},n=0;n<r.length;n++)a[r[n]]=e(t[r[n]]);return a}},function(e,t,r){"use strict";var a=r(4),n=r(13),i=n.EXISTENT,s=n.NONEXISTENT,o=r(1),l=o.ROOT_ID,u=o.ROOT_TYPE,c=r(41).readUpdatableFragment_EXPERIMENTAL,d=r(42).readUpdatableQuery_EXPERIMENTAL,h=r(43),_=r(0),f=function(){function e(e,t,r,a){this.__mutator=e,this._handlerProvider=r||null,this._proxies={},this._getDataID=t,this._invalidatedStore=!1,this._idsMarkedForInvalidation=new Set,this._missingFieldHandlers=a}var t=e.prototype;return t.publishSource=function(e,t){var r=this;e.getRecordIDs().forEach((function(t){var n=e.getStatus(t);if(n===i){var o=e.get(t);o&&(r.__mutator.getStatus(t)!==i&&r.create(t,a.getType(o)),r.__mutator.copyFieldsFromRecord(o,t))}else n===s&&r.delete(t)})),t&&t.length&&t.forEach((function(e){var t=r._handlerProvider&&r._handlerProvider(e.handle);t||_(!1,"RelayModernEnvironment: Expected a handler to be provided for handle `%s`.",e.handle),t.update(r,e)}))},t.create=function(e,t){this.__mutator.create(e,t),delete this._proxies[e];var r=this.get(e);return r||_(!1,"RelayRecordSourceProxy#create(): Expected the created record to exist."),r},t.delete=function(e){e===l&&_(!1,"RelayRecordSourceProxy#delete(): Cannot delete the root record."),delete this._proxies[e],this.__mutator.delete(e)},t.get=function(e){if(!this._proxies.hasOwnProperty(e)){var t=this.__mutator.getStatus(e);this._proxies[e]=t===i?new h(this,this.__mutator,e):t===s?null:void 0}return this._proxies[e]},t.getRoot=function(){var e=this.get(l);return e||(e=this.create(l,u)),e&&e.getType()===u||_(!1,"RelayRecordSourceProxy#getRoot(): Expected the source to contain a root record, %s.",null==e?"no root record found":"found a root record of type `".concat(e.getType(),"`")),e},t.invalidateStore=function(){this._invalidatedStore=!0},t.isStoreMarkedForInvalidation=function(){return this._invalidatedStore},t.markIDForInvalidation=function(e){this._idsMarkedForInvalidation.add(e)},t.getIDsMarkedForInvalidation=function(){return this._idsMarkedForInvalidation},t.readUpdatableQuery_EXPERIMENTAL=function(e,t){return d(e,t,this,this._missingFieldHandlers)},t.readUpdatableFragment_EXPERIMENTAL=function(e,t){return c(e,t,this,this._missingFieldHandlers)},e}();e.exports=f},function(e,t,r){"use strict";var a=r(19).getFragment,n=r(14).getVariablesFromFragment,i=r(1).ID_KEY,s=r(23).createUpdatableProxy,o=r(0);e.exports={readUpdatableFragment_EXPERIMENTAL:function(e,t,r,l){var u=a(e),c=n(u,t),d=t[i],h=r.get(d);return null==h&&o(!1,"No record with ".concat(d," was found. This likely indicates a problem with Relay.")),{updatableData:s(h,c,u.selections,r,l)}}}},function(e,t,r){"use strict";var a=r(19).getUpdatableQuery,n=r(23).createUpdatableProxy;e.exports={readUpdatableQuery_EXPERIMENTAL:function(e,t,r,i){var s=a(e);return{updatableData:n(r.getRoot(),t,s.fragment.selections,r,i)}}}},function(e,t,r){"use strict";var a=r(6).generateClientID,n=r(1).getStableStorageKey,i=r(0),s=function(){function e(e,t,r){this._dataID=r,this._mutator=t,this._source=e}var t=e.prototype;return t.copyFieldsFrom=function(e){this._mutator.copyFields(e.getDataID(),this._dataID)},t.getDataID=function(){return this._dataID},t.getType=function(){var e=this._mutator.getType(this._dataID);return null==e&&i(!1,"RelayRecordProxy: Cannot get the type of deleted record `%s`.",this._dataID),e},t.getValue=function(e,t){var r=n(e,t);return this._mutator.getValue(this._dataID,r)},t.setValue=function(e,t,r){return o(e)||i(!1,"RelayRecordProxy#setValue(): Expected a scalar or array of scalars, got `%s`.",JSON.stringify(e)),this.setValue__UNSAFE(e,t,r)},t.setValue__UNSAFE=function(e,t,r){var a=n(t,r);return this._mutator.setValue(this._dataID,a,e),this},t.getLinkedRecord=function(e,t){var r=n(e,t),a=this._mutator.getLinkedRecordID(this._dataID,r);return null!=a?this._source.get(a):a},t.setLinkedRecord=function(t,r,a){t instanceof e||i(!1,"RelayRecordProxy#setLinkedRecord(): Expected a record, got `%s`.",t);var s=n(r,a),o=t.getDataID();return this._mutator.setLinkedRecordID(this._dataID,s,o),this},t.getOrCreateLinkedRecord=function(e,t,r){var i=this.getLinkedRecord(e,r);if(!i){var s,o=n(e,r),l=a(this.getDataID(),o);i=null!==(s=this._source.get(l))&&void 0!==s?s:this._source.create(l,t),this.setLinkedRecord(i,e,r)}return i},t.getLinkedRecords=function(e,t){var r=this,a=n(e,t),i=this._mutator.getLinkedRecordIDs(this._dataID,a);return null==i?i:i.map((function(e){return null!=e?r._source.get(e):e}))},t.setLinkedRecords=function(e,t,r){Array.isArray(e)||i(!1,"RelayRecordProxy#setLinkedRecords(): Expected records to be an array, got `%s`.",e);var a=n(t,r),s=e.map((function(e){return e&&e.getDataID()}));return this._mutator.setLinkedRecordIDs(this._dataID,a,s),this},t.invalidateRecord=function(){this._source.markIDForInvalidation(this._dataID)},e}();function o(e){return null==e||"object"!=typeof e||Array.isArray(e)&&e.every(o)}e.exports=s},function(e,t,r){"use strict";var a=r(3).SCALAR_FIELD,n=r(1).getHandleStorageKey,i=r(9),s=r(0);e.exports=function(e,t,r){var o=t.find((function(t){return t.kind===a&&t.name===e.name&&t.alias===e.alias&&i(t.args,e.args)}));o&&o.kind===a||s(!1,"cloneRelayScalarHandleSourceField: Expected a corresponding source field for handle `%s`.",e.handle);var l=n(e,r);return{kind:"ScalarField",alias:o.alias,name:l,storageKey:l,args:null}}},function(e,t,r){"use strict";var a=r(46),n=a.VIEWER_ID,i=a.VIEWER_TYPE;e.exports=function(e,t){return t===i&&null==e.id?n:e.id}},function(e,t,r){"use strict";var a=(0,r(6).generateClientID)(r(1).ROOT_ID,"viewer");e.exports={VIEWER_ID:a,VIEWER_TYPE:"Viewer"}},function(e,t,r){"use strict";var a=(0,r(2).default)(r(12)),n=r(26),i=r(0),s=Object.freeze({__UNPUBLISH_RECORD_SENTINEL:!0}),o=function(){function e(e){this._base=e,this._sink=n.create()}var t=e.prototype;return t.has=function(e){return this._sink.has(e)?this._sink.get(e)!==s:this._base.has(e)},t.get=function(e){if(this._sink.has(e)){var t=this._sink.get(e);return t===s?void 0:t}return this._base.get(e)},t.getStatus=function(e){var t=this.get(e);return void 0===t?"UNKNOWN":null===t?"NONEXISTENT":"EXISTENT"},t.clear=function(){this._base=n.create(),this._sink.clear()},t.delete=function(e){this._sink.delete(e)},t.remove=function(e){this._sink.set(e,s)},t.set=function(e,t){this._sink.set(e,t)},t.getRecordIDs=function(){return Object.keys(this.toJSON())},t.size=function(){return Object.keys(this.toJSON()).length},t.toJSON=function(){var e=this,t=(0,a.default)({},this._base.toJSON());return this._sink.getRecordIDs().forEach((function(r){var a=e.get(r);void 0===a?delete t[r]:t[r]=a})),t},t.getOptimisticRecordIDs=function(){return new Set(this._sink.getRecordIDs())},e}();e.exports={create:function(e){return new o(e)},getOptimisticRecordIDs:function(e){return e instanceof o||i(!1,"getOptimisticRecordIDs: Instance of RelayOptimisticRecordSource is expected"),e.getOptimisticRecordIDs()}}},function(e,t,r){"use strict";var a=(0,r(2).default)(r(5)),n=r(21),i=r(3).RELAY_LIVE_RESOLVER,s=r(6).generateClientID,o=r(4),l=r(1),u=l.RELAY_RESOLVER_ERROR_KEY,c=l.RELAY_RESOLVER_INVALIDATION_KEY,d=l.RELAY_RESOLVER_SNAPSHOT_KEY,h=l.RELAY_RESOLVER_VALUE_KEY,_=l.getStorageKey,f=r(0),v=r(8),g=new Set,p=function(){function e(){}var t=e.prototype;return t.readFromCacheOrEvaluate=function(e,t,r,a,n){t.kind===i&&f(!1,"This store does not support Live Resolvers");var s=a(),o=s.resolverResult,l=s.snapshot;return[o,void 0,s.error,l,void 0,void 0]},t.invalidateDataIDs=function(e){},t.ensureClientRecord=function(e,t){f(!1,"Client Edges to Client Objects are not supported in this version of Relay Store")},t.notifyUpdatedSubscribers=function(e){},e}();function E(e,t,r){var a=e.get(t);a||(a=new Set,e.set(t,a)),a.add(r)}var R=function(){function e(e){this._resolverIDToRecordIDs=new Map,this._recordIDToResolverIDs=new Map,this._getRecordSource=e}var t=e.prototype;return t.readFromCacheOrEvaluate=function(e,t,r,n,i){var l=this._getRecordSource(),c=l.get(e);null==c&&f(!1,"We expect record to exist in the store.");var v=_(t,r),g=o.getLinkedRecordID(c,v),p=null==g?null:l.get(g);if(null==p||this._isInvalid(p,i)){var R;g=null!==(R=g)&&void 0!==R?R:s(e,v),p=o.create(g,"__RELAY_RESOLVER__");var m=n();o.setValue(p,h,m.resolverResult),o.setValue(p,d,m.snapshot),o.setValue(p,u,m.error),l.set(g,p);var y=l.get(e);null==y&&f(!1,"Expected the parent record to still be in the record source.");var I=o.clone(y);if(o.setLinkedRecordID(I,v,g),l.set(e,I),null!=t.fragment){var b,S=_(t.fragment,r),D=s(e,S);E(this._resolverIDToRecordIDs,D,g),E(this._recordIDToResolverIDs,e,D);var T=null===(b=m.snapshot)||void 0===b?void 0:b.seenRecords;if(null!=T){var L,A=(0,a.default)(T);try{for(A.s();!(L=A.n()).done;){var N=L.value;E(this._recordIDToResolverIDs,N,D)}}catch(e){A.e(e)}finally{A.f()}}}}var k=p[h],O=p[d];return[k,g,p[u],O,void 0,void 0]},t.invalidateDataIDs=function(e){for(var t=this._getRecordSource(),r=new Set,n=Array.from(e);n.length;){var i=n.pop();e.add(i);var s,o=(0,a.default)(null!==(l=this._recordIDToResolverIDs.get(i))&&void 0!==l?l:g);try{for(o.s();!(s=o.n()).done;){var l,u=s.value;if(!r.has(u)){var c,d=(0,a.default)(null!==(h=this._resolverIDToRecordIDs.get(u))&&void 0!==h?h:g);try{for(d.s();!(c=d.n()).done;){var h,_=c.value;this._markInvalidatedResolverRecord(_,t,e),r.has(_)||n.push(_)}}catch(e){d.e(e)}finally{d.f()}}}}catch(e){o.e(e)}finally{o.f()}}},t._markInvalidatedResolverRecord=function(e,t,r){var a=t.get(e);if(a){var n=o.clone(a);o.setValue(n,c,!0),t.set(e,n)}else v(!1,"Expected a resolver record with ID %s, but it was missing.",e)},t._isInvalid=function(e,t){if(!o.getValue(e,c))return!1;var r=o.getValue(e,d),a=null==r?void 0:r.data,i=null==r?void 0:r.selector;if(null==a||null==i)return v(!1,"Expected previous inputs and reader selector on resolver record with ID %s, but they were missing.",o.getDataID(e)),!0;var s=t(i).data;return n(a,s)!==a},t.ensureClientRecord=function(e,t){f(!1,"Client Edges to Client Objects are not supported in this version of Relay Store")},t.notifyUpdatedSubscribers=function(e){f(!1,"Processing @outputType records is not supported in this version of Relay Store")},e}();e.exports={NoopResolverCache:p,RecordResolverCache:R}},function(e,t,r){"use strict";var a=(0,r(2).default)(r(5)),n=r(24),i=r(3),s=r(7),o=r(25),l=r(10).getLocalVariables,u=r(4),c=r(11),d=r(1),h=r(15).generateTypeID,_=r(0),f=r(29),v=i.ACTOR_CHANGE,g=i.CONDITION,p=i.CLIENT_COMPONENT,E=i.CLIENT_EXTENSION,R=i.DEFER,m=i.FLIGHT_FIELD,y=i.FRAGMENT_SPREAD,I=i.INLINE_FRAGMENT,b=i.LINKED_FIELD,S=i.MODULE_IMPORT,D=i.LINKED_HANDLE,T=i.SCALAR_FIELD,L=i.SCALAR_HANDLE,A=i.STREAM,N=i.TYPE_DISCRIMINATOR,k=i.RELAY_RESOLVER,O=d.ROOT_ID,F=d.getStorageKey,C=d.getModuleOperationKey;var M=function(){function e(e,t,r,a,n){this._operationLoader=null!=a?a:null,this._operationName=null,this._recordSource=e,this._references=r,this._variables=t,this._shouldProcessClientComponents=n}var t=e.prototype;return t.mark=function(e,t){"Operation"!==e.kind&&"SplitOperation"!==e.kind||(this._operationName=e.name),this._traverse(e,t)},t._traverse=function(e,t){this._references.add(t);var r=this._recordSource.get(t);null!=r&&this._traverseSelections(e.selections,r)},t._getVariableValue=function(e){return this._variables.hasOwnProperty(e)||_(!1,"RelayReferenceMarker(): Undefined variable `%s`.",e),this._variables[e]},t._traverseSelections=function(e,t){var r=this;e.forEach((function(a){switch(a.kind){case v:r._traverseLink(a.linkedField,t);break;case b:a.plural?r._traversePluralLink(a,t):r._traverseLink(a,t);break;case g:Boolean(r._getVariableValue(a.condition))===a.passingValue&&r._traverseSelections(a.selections,t);break;case I:if(null==a.abstractKey){var n=u.getType(t);(null!=n&&n===a.type||n===d.ROOT_TYPE)&&r._traverseSelections(a.selections,t)}else{var i=u.getType(t),c=h(i);r._references.add(c),r._traverseSelections(a.selections,t)}break;case y:var f=r._variables;r._variables=l(r._variables,a.fragment.argumentDefinitions,a.args),r._traverseSelections(a.fragment.selections,t),r._variables=f;break;case D:var O=o(a,e,r._variables);O.plural?r._traversePluralLink(O,t):r._traverseLink(O,t);break;case R:case A:r._traverseSelections(a.selections,t);break;case T:case L:break;case N:var F=u.getType(t),C=h(F);r._references.add(C);break;case S:r._traverseModuleImport(a,t);break;case E:r._traverseSelections(a.selections,t);break;case m:if(!s.ENABLE_REACT_FLIGHT_COMPONENT_FIELD)throw new Error("Flight fields are not yet supported.");r._traverseFlightField(a,t);break;case p:if(!1===r._shouldProcessClientComponents)break;r._traverseSelections(a.fragment.selections,t);break;case k:r._traverseResolverField(a,t);break;default:_(!1,"RelayReferenceMarker: Unknown AST node `%s`.",a)}}))},t._traverseResolverField=function(e,t){var r=F(e,this._variables),n=u.getLinkedRecordID(t,r);if(null!=n){this._references.add(n);var i=this._recordSource.get(n);if(null!=i){var s=f(i);if(null!=s){var o,l=(0,a.default)(s);try{for(l.s();!(o=l.n()).done;){var c=o.value;this._references.add(c)}}catch(e){l.e(e)}finally{l.f()}}}}var d=e.fragment;null!=d&&this._traverseSelections([d],t)},t._traverseModuleImport=function(e,t){var r,a=this._operationLoader;null===a&&_(!1,"RelayReferenceMarker: Expected an operationLoader to be configured when using `@module`. Could not load fragment `%s` in operation `%s`.",e.fragmentName,null!==(r=this._operationName)&&void 0!==r?r:"(unknown)");var i=C(e.documentName),s=u.getValue(t,i);if(null!=s){var o=a.get(s);if(null!=o){var c=n(o),d=this._variables;this._variables=l(this._variables,c.argumentDefinitions,e.args),this._traverseSelections(c.selections,t),this._variables=d}}},t._traverseLink=function(e,t){var r=F(e,this._variables),a=u.getLinkedRecordID(t,r);null!=a&&this._traverse(e,a)},t._traversePluralLink=function(e,t){var r=this,a=F(e,this._variables),n=u.getLinkedRecordIDs(t,a);null!=n&&n.forEach((function(t){null!=t&&r._traverse(e,t)}))},t._traverseFlightField=function(e,t){var r=F(e,this._variables),i=u.getLinkedRecordID(t,r);if(null!=i){this._references.add(i);var s=this._recordSource.get(i);if(null!=s){var o=u.getValue(s,c.REACT_FLIGHT_EXECUTABLE_DEFINITIONS_STORAGE_KEY);if(Array.isArray(o)){var l=this._operationLoader;null===l&&_(!1,"DataChecker: Expected an operationLoader to be configured when using React Flight");var d,h=this._variables,f=(0,a.default)(o);try{for(f.s();!(d=f.n()).done;){var v=d.value;this._variables=v.variables;var g=v.module,p=l.get(g);if(null!=p){var E=n(p);this._traverse(E,O)}}}catch(e){f.e(e)}finally{f.f()}this._variables=h}}}},e}();e.exports={mark:function(e,t,r,a,n){var i=t.dataID,s=t.node,o=t.variables;new M(e,o,r,a,n).mark(s,i)}}},function(e,t,r){"use strict";var a=r(17),n=r(21),i=r(7),s=r(51),o=r(27),l=function(){function e(e,t){this._subscriptions=new Set,this.__log=e,this._resolverCache=t}var t=e.prototype;return t.subscribe=function(e,t){var r=this,a={backup:null,callback:t,snapshot:e,stale:!1};return this._subscriptions.add(a),{dispose:function(){r._subscriptions.delete(a)}}},t.snapshotSubscriptions=function(e){var t=this;this._subscriptions.forEach((function(r){if(r.stale){var a=r.snapshot,i=o.read(e,a.selector,t._resolverCache),s=n(a.data,i.data);i.data=s,r.backup=i}else r.backup=r.snapshot}))},t.restoreSubscriptions=function(){this._subscriptions.forEach((function(e){var t=e.backup;e.backup=null,t?(t.data!==e.snapshot.data&&(e.stale=!0),e.snapshot={data:e.snapshot.data,isMissingData:t.isMissingData,missingClientEdges:t.missingClientEdges,missingLiveResolverFields:t.missingLiveResolverFields,seenRecords:t.seenRecords,selector:t.selector,missingRequiredFields:t.missingRequiredFields,relayResolverErrors:t.relayResolverErrors}):e.stale=!0}))},t.updateSubscriptions=function(e,t,r,a){var n=this,i=0!==t.size;this._subscriptions.forEach((function(s){var o=n._updateSubscription(e,s,t,i,a);null!=o&&r.push(o)}))},t._updateSubscription=function(e,t,r,l,u){var c=t.backup,d=t.callback,h=t.snapshot,_=t.stale,f=l&&s(h.seenRecords,r);if(_||f){var v=f||!c?o.read(e,h.selector,this._resolverCache):c;return v={data:n(h.data,v.data),isMissingData:v.isMissingData,missingClientEdges:v.missingClientEdges,missingLiveResolverFields:v.missingLiveResolverFields,seenRecords:v.seenRecords,selector:v.selector,missingRequiredFields:v.missingRequiredFields,relayResolverErrors:v.relayResolverErrors},a(v),t.snapshot=v,t.stale=!1,v.data!==h.data?(this.__log&&i.ENABLE_NOTIFY_SUBSCRIPTION&&this.__log({name:"store.notify.subscription",sourceOperation:u,snapshot:h,nextSnapshot:v}),d(v),h.selector.owner):void 0}},e}();e.exports=l},function(e,t,r){"use strict";var a=Symbol.iterator;e.exports=function(e,t){for(var r=e[a](),n=r.next();!n.done;){var i=n.value;if(t.has(i))return!0;n=r.next()}return!1}},function(e,t,r){"use strict";var a=(0,r(2).default)(r(5)),n=r(21),i=r(3).RELAY_LIVE_RESOLVER,s=r(6),o=s.generateClientID,l=s.generateClientObjectClientID,u=r(4),c=r(26),d=r(1),h=d.RELAY_RESOLVER_ERROR_KEY,_=d.RELAY_RESOLVER_INVALIDATION_KEY,f=d.RELAY_RESOLVER_SNAPSHOT_KEY,v=d.RELAY_RESOLVER_VALUE_KEY,g=d.RELAY_RESOLVER_OUTPUT_TYPE_RECORD_IDS,p=d.getStorageKey,E=r(20).isSuspenseSentinel,R=r(0),m=r(8),y=r(14).createNormalizationSelector,I=r(53).normalize,b=r(29),S=r(30);function D(e,t,r){var a=e.get(t);a||(a=new Set,e.set(t,a)),a.add(r)}var T=function(){function e(e,t){this._resolverIDToRecordIDs=new Map,this._recordIDToResolverIDs=new Map,this._getRecordSource=e,this._store=t,this._handlingBatch=!1,this._liveResolverBatchRecordSource=null}var t=e.prototype;return t.readFromCacheOrEvaluate=function(e,t,r,n,s){var l,c=this._getRecordSource(),d=N(c,e),_=p(t,r),v=u.getLinkedRecordID(d,_),g=null==v?null:c.get(v);if(null==g||this._isInvalid(g,s)){var m;null!=g&&this._maybeUnsubscribeFromLiveState(g),v=null!==(m=v)&&void 0!==m?m:o(e,_),g=u.create(v,"__RELAY_RESOLVER__");var y=n();if(t.kind===i)if(null!=y.resolverResult){S(y.resolverResult)||R(!1,'Expected the @live Relay Resolver backing the field "%s" to return a value that implements LiveState. Did you mean to remove the @live annotation on this resolver?',t.path);var I=y.resolverResult;l=this._setLiveStateValue(g,v,I,t,r)}else{var b;null!=y.error||(null===(b=y.snapshot)||void 0===b?void 0:b.isMissingData)||R(!1,'Expected the @live Relay Resolver backing the field "%s" to return a value that implements LiveState interface. The result for this field is `%s`, we also did not detect any errors, or missing data during resolver execution. Did you mean to remove the @live annotation on this resolver, or was there unexpected early return in the function?',t.path,String(y.resolverResult))}else S(y.resolverResult)&&R(!1,'Unexpected LiveState value returned from the non-@live Relay Resolver backing the field "%s". Did you intend to add @live to this resolver?',t.path),l=this._setResolverValue(g,y.resolverResult,t,r);u.setValue(g,f,y.snapshot),u.setValue(g,h,y.error),c.set(v,g);var T=N(c,e),L=u.clone(T);if(u.setLinkedRecordID(L,_,v),c.set(e,L),null!=t.fragment){var A,k=p(t.fragment,r),O=o(e,k);D(this._resolverIDToRecordIDs,O,v),D(this._recordIDToResolverIDs,e,O);var F=null===(A=y.snapshot)||void 0===A?void 0:A.seenRecords;if(null!=F){var C,M=(0,a.default)(F);try{for(M.s();!(C=M.n()).done;){var P=C.value;D(this._recordIDToResolverIDs,P,O)}}catch(e){M.e(e)}finally{M.f()}}}}else if(t.kind===i&&u.getValue(g,"__resolverLiveStateDirty")){var x;v=null!==(x=v)&&void 0!==x?x:o(e,_),g=u.clone(g);var V=u.getValue(g,"__resolverLiveStateValue");S(V)||R(!1,"Unexpected LiveState value returned from Relay Resolver internal field `RELAY_RESOLVER_LIVE_STATE_VALUE`. It is likely a bug in Relay, or a corrupt state of the relay store state Field Path `%s`. Record `%s`.",t.path,JSON.stringify(g)),l=this._setResolverValue(g,V.read(),t,r),u.setValue(g,"__resolverLiveStateDirty",!1),c.set(v,g)}var w,U=this._getResolverValue(g),j=g[f],G=g[h],Y=null;E(U)&&(Y=null!==(w=v)&&void 0!==w?w:o(e,_));return[U,v,G,j,Y,l]},t.getLiveResolverPromise=function(e){var t=this._getRecordSource().get(e);null==t&&R(!1,"Expected to find record for live resolver.");var r=u.getValue(t,"__resolverLiveStateValue");return new Promise((function(e){var t=r.subscribe((function(){t(),e()}))}))},t._maybeUnsubscribeFromLiveState=function(e){var t=u.getValue(e,"__resolverLiveStateSubscription");null!=t&&t()},t._setLiveStateValue=function(e,t,r,a,n){var i=this._makeLiveStateHandler(t),s=r.subscribe(i);u.setValue(e,"__resolverLiveStateValue",r);var o=this._setResolverValue(e,r.read(),a,n);return u.setValue(e,"__resolverLiveStateDirty",!1),u.setValue(e,"__resolverLiveStateSubscription",s),o},t._makeLiveStateHandler=function(e){var t=this;return function(){var r=t._getRecordSource().get(e);if(r)if("__resolverLiveStateValue"in r){var a=u.clone(r);u.setValue(a,"__resolverLiveStateDirty",!0),t._setLiveResolverUpdate(e,a)}else m(!1,"Unexpected callback for a incomplete live resolver record (__id: `%s`). The record has missing live state value. This is a no-op and indicates a memory leak, and possible bug in Relay Live Resolvers. Possible cause: The original record was GC-ed, or was created with the optimistic record source. Record details: `%s`.",e,JSON.stringify(r))}},t._setLiveResolverUpdate=function(e,t){if(this._handlingBatch)null==this._liveResolverBatchRecordSource&&(this._liveResolverBatchRecordSource=c.create()),this._liveResolverBatchRecordSource.set(e,t);else{var r=c.create();r.set(e,t),this._store.publish(r),this._store.notify()}},t.batchLiveStateUpdates=function(e){this._handlingBatch&&R(!1,"Unexpected nested call to batchLiveStateUpdates."),this._handlingBatch=!0;try{e()}finally{null!=this._liveResolverBatchRecordSource&&(this._store.publish(this._liveResolverBatchRecordSource),this._store.notify()),this._liveResolverBatchRecordSource=null,this._handlingBatch=!1}},t._setResolverValue=function(e,t,r,n){var i=r.normalizationInfo,s=null;if(null!=t&&null!=i){var o,d=b(e),h=new Set,_=this._getRecordSource();if(i.plural){Array.isArray(t)||R(!1,"_setResolverValue: Expected array value for plural @outputType resolver."),o=[];for(var f=c.create(),p=0;p<t.length;p++){var E=t[p];if(null!=E){"object"!=typeof E&&R(!1,"_setResolverValue: Expected object value as the payload for the @outputType resolver.");var m,y=l(i.concreteType,u.getDataID(e),p),I=L(y,E,n,i,this._store.__getNormalizationOptions([r.path,String(p)])),S=(0,a.default)(I.getRecordIDs());try{for(S.s();!(m=S.n()).done;){var D=m.value;f.set(D,N(I,D)),h.add(D)}}catch(e){S.e(e)}finally{S.f()}o.push(y)}}s=A(_,f,d)}else{"object"!=typeof t&&R(!1,"_setResolverValue: Expected object value as the payload for the @outputType resolver.");var T,k=l(i.concreteType,u.getDataID(e)),O=L(k,t,n,i,this._store.__getNormalizationOptions([r.path])),F=(0,a.default)(O.getRecordIDs());try{for(F.s();!(T=F.n()).done;){var C=T.value;h.add(C)}}catch(e){F.e(e)}finally{F.f()}o=k,s=A(_,O,d)}u.setValue(e,g,h),u.setValue(e,v,o)}else u.setValue(e,v,t);return s},t.notifyUpdatedSubscribers=function(e){this._store.__notifyUpdatedSubscribers(e)},t._getResolverValue=function(e){return u.getValue(e,v)},t.invalidateDataIDs=function(e){for(var t=this._getRecordSource(),r=new Set,n=Array.from(e);n.length;){var i=n.pop();e.add(i);var s=this._recordIDToResolverIDs.get(i);if(null!=s){var o,l=(0,a.default)(s);try{for(l.s();!(o=l.n()).done;){var u=o.value;if(!r.has(u)){var c=this._resolverIDToRecordIDs.get(u);if(null==c)continue;var d,h=(0,a.default)(c);try{for(h.s();!(d=h.n()).done;){var _=d.value;this._markInvalidatedResolverRecord(_,t),r.has(_)||n.push(_)}}catch(e){h.e(e)}finally{h.f()}}}}catch(e){l.e(e)}finally{l.f()}}}},t._markInvalidatedResolverRecord=function(e,t){var r=t.get(e);if(r){var a=u.clone(r);u.setValue(a,_,!0),t.set(e,a)}else m(!1,"Expected a resolver record with ID %s, but it was missing.",e)},t._isInvalid=function(e,t){if(!u.getValue(e,_))return!1;var r=u.getValue(e,f),a=null==r?void 0:r.data,i=null==r?void 0:r.selector;if(null==a||null==i)return m(!1,"Expected previous inputs and reader selector on resolver record with ID %s, but they were missing.",u.getDataID(e)),!0;var s=t(i).data;return n(a,s)!==a},t.ensureClientRecord=function(e,t){var r=l(t,e),a=this._getRecordSource();if(!a.has(r)){var n=u.create(r,t);u.setValue(n,"id",e),a.set(r,n)}return r},t.unsubscribeFromLiveResolverRecords=function(e){if(0!==e.size){var t,r=(0,a.default)(e);try{for(r.s();!(t=r.n()).done;){var n=t.value,i=this._getRecordSource().get(n);null!=i&&"__RELAY_RESOLVER__"===u.getType(i)&&this._maybeUnsubscribeFromLiveState(i)}}catch(e){r.e(e)}finally{r.f()}}},t.invalidateResolverRecords=function(e){if(0!==e.size){var t,r=(0,a.default)(e);try{for(r.s();!(t=r.n()).done;){var n=t.value,i=this._getRecordSource().get(n);null!=i&&"__RELAY_RESOLVER__"===u.getType(i)&&this._getRecordSource().delete(n)}}catch(e){r.e(e)}finally{r.f()}}},e}();function L(e,t,r,a,n){var i=c.create();i.set(e,u.create(e,a.concreteType));var s=y(a.normalizationNode,e,r);return I(i,s,t,n).source}function A(e,t,r){var n=new Set;if(null!=r){var i,s=(0,a.default)(r);try{for(s.s();!(i=s.n()).done;){var o=i.value;t.has(o)||(n.add(o),e.remove(o))}}catch(e){s.e(e)}finally{s.f()}}var l,c=(0,a.default)(t.getRecordIDs());try{for(c.s();!(l=c.n()).done;){var d=l.value,h=N(t,d);if(e.has(d)){var _=N(e,d);u.update(_,h)!==_&&(n.add(d),e.set(d,h))}else e.set(d,h)}}catch(e){c.e(e)}finally{c.f()}return n}function N(e,t){var r=e.get(t);return null==r&&R(!1,"Expected a record with ID `%s` to exist in the record source.",t),r}e.exports={LiveResolverCache:T,getUpdatedDataIDs:function(e){return e}}},function(e,t,r){"use strict";var a=r(2).default,n=a(r(5)),i=a(r(18)),s=r(54),o=s.ACTOR_IDENTIFIER_FIELD_NAME,l=s.getActorIdentifierFromPayload,u=r(3),c=u.ACTOR_CHANGE,d=u.CLIENT_COMPONENT,h=u.CLIENT_EXTENSION,_=u.CONDITION,f=u.DEFER,v=u.FLIGHT_FIELD,g=u.FRAGMENT_SPREAD,p=u.INLINE_FRAGMENT,E=u.LINKED_FIELD,R=u.LINKED_HANDLE,m=u.MODULE_IMPORT,y=u.RELAY_RESOLVER,I=u.SCALAR_FIELD,b=u.SCALAR_HANDLE,S=u.STREAM,D=u.TYPE_DISCRIMINATOR,T=r(7),L=r(6),A=L.generateClientID,N=L.isClientID,k=r(10).getLocalVariables,O=r(4),F=r(14).createNormalizationSelector,C=r(11),M=C.REACT_FLIGHT_EXECUTABLE_DEFINITIONS_STORAGE_KEY,P=C.REACT_FLIGHT_TREE_STORAGE_KEY,x=C.REACT_FLIGHT_TYPE_NAME,V=C.refineToReactFlightPayloadData,w=r(1),U=w.ROOT_ID,j=w.ROOT_TYPE,G=w.TYPENAME_KEY,Y=w.getArgumentValues,K=w.getHandleStorageKey,H=w.getModuleComponentKey,z=w.getModuleOperationKey,q=w.getStorageKey,B=r(15),W=B.TYPE_SCHEMA_TYPE,J=B.generateTypeID,X=r(9),Q=r(0),Z=r(8);var $=function(){function e(e,t,r){this._actorIdentifier=r.actorIdentifier,this._getDataId=r.getDataID,this._handleFieldPayloads=[],this._treatMissingFieldsAsNull=r.treatMissingFieldsAsNull,this._incrementalPlaceholders=[],this._isClientExtension=!1,this._isUnmatchedAbstractType=!1,this._followupPayloads=[],this._path=r.path?(0,i.default)(r.path):[],this._recordSource=e,this._variables=t,this._reactFlightPayloadDeserializer=r.reactFlightPayloadDeserializer,this._reactFlightServerErrorHandler=r.reactFlightServerErrorHandler,this._shouldProcessClientComponents=r.shouldProcessClientComponents}var t=e.prototype;return t.normalizeResponse=function(e,t,r){var a=this._recordSource.get(t);return a||Q(!1,"RelayResponseNormalizer(): Expected root record `%s` to exist.",t),this._assignClientAbstractTypes(e),this._traverseSelections(e,a,r),{errors:null,fieldPayloads:this._handleFieldPayloads,incrementalPlaceholders:this._incrementalPlaceholders,followupPayloads:this._followupPayloads,source:this._recordSource,isFinal:!1}},t._assignClientAbstractTypes=function(e){var t=e.clientAbstractTypes;if(null!=t)for(var r=0,a=Object.keys(t);r<a.length;r++){var i,s=a[r],o=(0,n.default)(t[s]);try{for(o.s();!(i=o.n()).done;){var l=i.value,u=J(l),c=this._recordSource.get(u);null==c&&(c=O.create(u,W),this._recordSource.set(u,c)),O.setValue(c,s,!0)}}catch(e){o.e(e)}finally{o.f()}}},t._getVariableValue=function(e){return this._variables.hasOwnProperty(e)||Q(!1,"RelayResponseNormalizer(): Undefined variable `%s`.",e),this._variables[e]},t._getRecordType=function(e){var t=e[G];return null==t&&Q(!1,"RelayResponseNormalizer(): Expected a typename for record `%s`.",JSON.stringify(e,null,2)),t},t._traverseSelections=function(e,t,r){for(var a=0;a<e.selections.length;a++){var n=e.selections[a];switch(n.kind){case I:case E:this._normalizeField(e,n,t,r);break;case _:Boolean(this._getVariableValue(n.condition))===n.passingValue&&this._traverseSelections(n,t,r);break;case g:var i=this._variables;this._variables=k(this._variables,n.fragment.argumentDefinitions,n.args),this._traverseSelections(n.fragment,t,r),this._variables=i;break;case p:var s=n.abstractKey;if(null==s){O.getType(t)===n.type&&this._traverseSelections(n,t,r)}else{var o=r.hasOwnProperty(s),l=O.getType(t),u=J(l),L=this._recordSource.get(u);null==L&&(L=O.create(u,W),this._recordSource.set(u,L)),O.setValue(L,s,o),o&&this._traverseSelections(n,t,r)}break;case D:var A=n.abstractKey,N=r.hasOwnProperty(A),F=O.getType(t),C=J(F),M=this._recordSource.get(C);null==M&&(M=O.create(C,W),this._recordSource.set(C,M)),O.setValue(M,A,N);break;case R:case b:var P=n.args?Y(n.args,this._variables):{},x=q(n,this._variables),V=K(n,this._variables);this._handleFieldPayloads.push({args:P,dataID:O.getDataID(t),fieldKey:x,handle:n.handle,handleKey:V,handleArgs:n.handleArgs?Y(n.handleArgs,this._variables):{}});break;case m:this._normalizeModuleImport(e,n,t,r);break;case f:this._normalizeDefer(n,t,r);break;case S:this._normalizeStream(n,t,r);break;case h:var w=this._isClientExtension;this._isClientExtension=!0,this._traverseSelections(n,t,r),this._isClientExtension=w;break;case d:if(!1===this._shouldProcessClientComponents)break;this._traverseSelections(n.fragment,t,r);break;case v:if(!T.ENABLE_REACT_FLIGHT_COMPONENT_FIELD)throw new Error("Flight fields are not yet supported.");this._normalizeFlightField(e,n,t,r);break;case c:this._normalizeActorChange(e,n,t,r);break;case y:null!=n.fragment&&this._traverseSelections(n.fragment,t,r);break;default:Q(!1,"RelayResponseNormalizer(): Unexpected ast kind `%s`.",n.kind)}}},t._normalizeDefer=function(e,t,r){var a=null===e.if||this._getVariableValue(e.if);Z("boolean"==typeof a,"RelayResponseNormalizer: Expected value for @defer `if` argument to be a boolean, got `%s`.",a),!1===a?this._traverseSelections(e,t,r):this._incrementalPlaceholders.push({kind:"defer",data:r,label:e.label,path:(0,i.default)(this._path),selector:F(e,O.getDataID(t),this._variables),typeName:O.getType(t),actorIdentifier:this._actorIdentifier})},t._normalizeStream=function(e,t,r){this._traverseSelections(e,t,r);var a=null===e.if||this._getVariableValue(e.if);Z("boolean"==typeof a,"RelayResponseNormalizer: Expected value for @stream `if` argument to be a boolean, got `%s`.",a),!0===a&&this._incrementalPlaceholders.push({kind:"stream",label:e.label,path:(0,i.default)(this._path),parentID:O.getDataID(t),node:e,variables:this._variables,actorIdentifier:this._actorIdentifier})},t._normalizeModuleImport=function(e,t,r,a){"object"==typeof a&&a||Q(!1,"RelayResponseNormalizer: Expected data for @module to be an object.");var n=O.getType(r),s=H(t.documentName),o=t.componentModuleProvider||a[s];O.setValue(r,s,null!=o?o:null);var l=z(t.documentName),u=t.operationModuleProvider||a[l];O.setValue(r,l,null!=u?u:null),null!=u&&this._followupPayloads.push({kind:"ModuleImportPayload",args:t.args,data:a,dataID:O.getDataID(r),operationReference:u,path:(0,i.default)(this._path),typeName:n,variables:this._variables,actorIdentifier:this._actorIdentifier})},t._normalizeField=function(e,t,r,a){"object"==typeof a&&a||Q(!1,"writeField(): Expected data for field `%s` to be an object.",t.name);var n=t.alias||t.name,i=q(t,this._variables),s=a[n];if(null==s){if(void 0===s){if(this._isClientExtension||this._isUnmatchedAbstractType)return;if(!this._treatMissingFieldsAsNull)return void Z(!1,"RelayResponseNormalizer: Payload did not contain a value for field `%s: %s`. Check that you are parsing with the same query that was used to fetch the payload.",n,i)}return t.kind===I&&this._validateConflictingFieldsWithIdenticalId(r,i,null),void O.setValue(r,i,null)}t.kind===I?(this._validateConflictingFieldsWithIdenticalId(r,i,s),O.setValue(r,i,s)):t.kind===E?(this._path.push(n),t.plural?this._normalizePluralLink(t,r,i,s):this._normalizeLink(t,r,i,s),this._path.pop()):Q(!1,"RelayResponseNormalizer(): Unexpected ast kind `%s` during normalization.",t.kind)},t._normalizeActorChange=function(e,t,r,a){var n,s=t.linkedField;"object"==typeof a&&a||Q(!1,"_normalizeActorChange(): Expected data for field `%s` to be an object.",s.name);var u=s.alias||s.name,c=q(s,this._variables),d=a[u];if(null!=d){var h=l(d);if(null==h)return Z(!1,"RelayResponseNormalizer: Payload did not contain a value for field `%s`. Check that you are parsing with the same query that was used to fetch the payload. Payload is `%s`.",o,JSON.stringify(d,null,2)),void O.setValue(r,c,null);var _=null!==(n=s.concreteType)&&void 0!==n?n:this._getRecordType(d),f=this._getDataId(d,_)||O.getLinkedRecordID(r,c)||A(O.getDataID(r),c);"string"!=typeof f&&Q(!1,"RelayResponseNormalizer: Expected id on field `%s` to be a string.",c),O.setActorLinkedRecordID(r,c,h,f),this._followupPayloads.push({kind:"ActorPayload",data:d,dataID:f,path:[].concat((0,i.default)(this._path),[u]),typeName:_,variables:this._variables,node:s,actorIdentifier:h})}else{if(void 0===d){if(this._isClientExtension||this._isUnmatchedAbstractType)return;if(!this._treatMissingFieldsAsNull)return void Z(!1,"RelayResponseNormalizer: Payload did not contain a value for field `%s: %s`. Check that you are parsing with the same query that was used to fetch the payload.",u,c)}O.setValue(r,c,null)}},t._normalizeFlightField=function(e,t,r,a){var i=t.alias||t.name,s=q(t,this._variables),o=a[i];if(null!=o){var l=V(o),u=this._reactFlightPayloadDeserializer;null==l&&Q(!1,"RelayResponseNormalizer: Expected React Flight payload data to be an object with `status`, tree`, `queries` and `errors` properties, got `%s`.",o),"function"!=typeof u&&Q(!1,"RelayResponseNormalizer: Expected reactFlightPayloadDeserializer to be a function, got `%s`.",u),l.errors.length>0&&("function"==typeof this._reactFlightServerErrorHandler?this._reactFlightServerErrorHandler(l.status,l.errors):Z(!1,"RelayResponseNormalizer: Received server errors for field `%s`.\n\n%s\n%s",i,l.errors[0].message,l.errors[0].stack));var c=A(O.getDataID(r),q(t,this._variables)),d=this._recordSource.get(c);if(null==d&&(d=O.create(c,x),this._recordSource.set(c,d)),null==l.tree)return Z(!1,"RelayResponseNormalizer: Expected `tree` not to be null. This typically indicates that a fatal server error prevented any Server Component rows from being written."),O.setValue(d,P,null),O.setValue(d,M,[]),void O.setLinkedRecordID(r,s,c);var h=u(l.tree);O.setValue(d,P,h);var _,f=[],v=(0,n.default)(l.queries);try{for(v.s();!(_=v.n()).done;){var g=_.value;null!=g.response.data&&this._followupPayloads.push({kind:"ModuleImportPayload",args:null,data:g.response.data,dataID:U,operationReference:g.module,path:[],typeName:j,variables:g.variables,actorIdentifier:this._actorIdentifier}),f.push({module:g.module,variables:g.variables})}}catch(e){v.e(e)}finally{v.f()}var p,E=(0,n.default)(l.fragments);try{for(E.s();!(p=E.n()).done;){var R=p.value;null!=R.response.data&&this._followupPayloads.push({kind:"ModuleImportPayload",args:null,data:R.response.data,dataID:R.__id,operationReference:R.module,path:[],typeName:R.__typename,variables:R.variables,actorIdentifier:this._actorIdentifier}),f.push({module:R.module,variables:R.variables})}}catch(e){E.e(e)}finally{E.f()}O.setValue(d,M,f),O.setLinkedRecordID(r,s,c)}else{if(void 0===o){if(this._isUnmatchedAbstractType)return;this._treatMissingFieldsAsNull||Q(!1,"RelayResponseNormalizer: Payload did not contain a value for field `%s: %s`. Check that you are parsing with the same query that was used to fetch the payload.",i,s)}O.setValue(r,s,null)}},t._normalizeLink=function(e,t,r,a){var n;"object"==typeof a&&a||Q(!1,"RelayResponseNormalizer: Expected data for field `%s` to be an object.",r);var i=this._getDataId(a,null!==(n=e.concreteType)&&void 0!==n?n:this._getRecordType(a))||O.getLinkedRecordID(t,r)||A(O.getDataID(t),r);"string"!=typeof i&&Q(!1,"RelayResponseNormalizer: Expected id on field `%s` to be a string.",r),this._validateConflictingLinkedFieldsWithIdenticalId(t,O.getLinkedRecordID(t,r),i,r),O.setLinkedRecordID(t,r,i);var s=this._recordSource.get(i);if(s)this._validateRecordType(s,e,a);else{var o=e.concreteType||this._getRecordType(a);s=O.create(i,o),this._recordSource.set(i,s)}this._traverseSelections(e,s,a)},t._normalizePluralLink=function(e,t,r,a){var n=this;Array.isArray(a)||Q(!1,"RelayResponseNormalizer: Expected data for field `%s` to be an array of objects.",r);var i=O.getLinkedRecordIDs(t,r),s=[];a.forEach((function(a,o){var l;if(null!=a){n._path.push(String(o)),"object"!=typeof a&&Q(!1,"RelayResponseNormalizer: Expected elements for field `%s` to be objects.",r);var u=n._getDataId(a,null!==(l=e.concreteType)&&void 0!==l?l:n._getRecordType(a))||i&&i[o]||A(O.getDataID(t),r,o);"string"!=typeof u&&Q(!1,"RelayResponseNormalizer: Expected id of elements of field `%s` to be strings.",r),s.push(u);var c=n._recordSource.get(u);if(c)n._validateRecordType(c,e,a);else{var d=e.concreteType||n._getRecordType(a);c=O.create(u,d),n._recordSource.set(u,c)}i&&n._validateConflictingLinkedFieldsWithIdenticalId(t,i[o],u,r),n._traverseSelections(e,c,a),n._path.pop()}else s.push(a)})),O.setLinkedRecordIDs(t,r,s)},t._validateRecordType=function(e,t,r){var a,n=null!==(a=t.concreteType)&&void 0!==a?a:this._getRecordType(r),i=O.getDataID(e);Z(N(i)&&i!==U||O.getType(e)===n,"RelayResponseNormalizer: Invalid record `%s`. Expected %s to be consistent, but the record was assigned conflicting types `%s` and `%s`. The GraphQL server likely violated the globally unique id requirement by returning the same id for different objects.",i,G,O.getType(e),n)},t._validateConflictingFieldsWithIdenticalId=function(e,t,r){var a=O.getDataID(e),n=O.getValue(e,t);Z(t===G||void 0===n||X(n,r),"RelayResponseNormalizer: Invalid record. The record contains two instances of the same id: `%s` with conflicting field, %s and its values: %s and %s. If two fields are different but share the same id, one field will overwrite the other.",a,t,n,r)},t._validateConflictingLinkedFieldsWithIdenticalId=function(e,t,r,a){Z(void 0===t||t===r,"RelayResponseNormalizer: Invalid record. The record contains references to the conflicting field, %s and its id values: %s and %s. We need to make sure that the record the field points to remains consistent or one field will overwrite the other.",a,t,r)},e}();e.exports={normalize:function(e,t,r,a){var n=t.dataID,i=t.node,s=t.variables;return new $(e,s,a).normalizeResponse(i,n,r)}}},function(e,t,r){"use strict";var a=r(22).getActorIdentifier;e.exports={ACTOR_IDENTIFIER_FIELD_NAME:"actor_key",getActorIdentifierFromPayload:function(e){if(null!=e&&"object"==typeof e&&"string"==typeof e.actor_key)return a(e.actor_key)}}},function(e,t,r){"use strict";var a=r(28).readFragment,n=r(0);e.exports=function(e,t,r,i){return function(s,o){var l=a(e,s);if(null==r)return t(l,o);if(null==l){if(!0!==i)return t(null,o);n(!1,"Expected required resolver field `%` to be present. But resolvers fragment data is null/undefined.",r)}if(r in l)return!0===i&&null==l[r]&&n(!1,"Expected required resolver field `%` to be non-null."),t(l[r],o);n(!1,"Missing field `%` in resolver response.",r)}}},function(e,t,r){"use strict";var a=r(2).default,n=a(r(16)),i=a(r(12)),s=r(0),o=r(30);function l(e,t,r){return function(){for(var a=arguments.length,i=new Array(a),o=0;o<a;o++)i[o]=arguments[o];var l=e.apply(null,i);return r?(Array.isArray(l)||s(!1,"Resolver is expected to return a plural value."),l.map((function(e){return(0,n.default)({},t,e)}))):(0,n.default)({},t,l)}}e.exports={weakObjectWrapperLive:function(e,t,r){return function(){for(var a=arguments.length,n=new Array(a),u=0;u<a;u++)n[u]=arguments[u];var c=e.apply(null,n);return o(c)||s(!1,"Resolver is expected to return a LiveState value."),(0,i.default)((0,i.default)({},c),{},{read:l((function(){return c.read()}),t,r)})}},weakObjectWrapper:l}}])}));
4
+ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("invariant"),require("@babel/runtime/helpers/interopRequireDefault"),require("@babel/runtime/helpers/createForOfIteratorHelper"),require("fbjs/lib/warning"),require("fbjs/lib/areEqual"),require("@babel/runtime/helpers/objectSpread2"),require("@babel/runtime/helpers/defineProperty"),require("@babel/runtime/helpers/toConsumableArray")):"function"==typeof define&&define.amd?define(["invariant","@babel/runtime/helpers/interopRequireDefault","@babel/runtime/helpers/createForOfIteratorHelper","fbjs/lib/warning","fbjs/lib/areEqual","@babel/runtime/helpers/objectSpread2","@babel/runtime/helpers/defineProperty","@babel/runtime/helpers/toConsumableArray"],t):"object"==typeof exports?exports.ReactRelayExperimental=t(require("invariant"),require("@babel/runtime/helpers/interopRequireDefault"),require("@babel/runtime/helpers/createForOfIteratorHelper"),require("fbjs/lib/warning"),require("fbjs/lib/areEqual"),require("@babel/runtime/helpers/objectSpread2"),require("@babel/runtime/helpers/defineProperty"),require("@babel/runtime/helpers/toConsumableArray")):e.ReactRelayExperimental=t(e.invariant,e["@babel/runtime/helpers/interopRequireDefault"],e["@babel/runtime/helpers/createForOfIteratorHelper"],e["fbjs/lib/warning"],e["fbjs/lib/areEqual"],e["@babel/runtime/helpers/objectSpread2"],e["@babel/runtime/helpers/defineProperty"],e["@babel/runtime/helpers/toConsumableArray"])}(window,(function(e,t,r,a,n,i,s,o){return function(e){var t={};function r(a){if(t[a])return t[a].exports;var n=t[a]={i:a,l:!1,exports:{}};return e[a].call(n.exports,n,n.exports,r),n.l=!0,n.exports}return r.m=e,r.c=t,r.d=function(e,t,a){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:a})},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 a=Object.create(null);if(r.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)r.d(a,n,function(t){return e[t]}.bind(null,n));return a},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=31)}([function(t,r){t.exports=e},function(e,t,r){"use strict";var a=(0,r(2).default)(r(18)),n=r(37),i=r(3),s=r(39),o=r(0),l=i.VARIABLE,u=i.LITERAL,c=i.OBJECT_VALUE,d=i.LIST_VALUE;function _(e,t){if(e.kind===l)return function(e,t){return t.hasOwnProperty(e)||o(!1,"getVariableValue(): Undefined variable `%s`.",e),s(t[e])}(e.variableName,t);if(e.kind===u)return e.value;if(e.kind===c){var r={};return e.fields.forEach((function(e){r[e.name]=_(e,t)})),r}if(e.kind===d){var a=[];return e.items.forEach((function(e){null!=e&&a.push(_(e,t))})),a}}function h(e,t){var r={};return e.forEach((function(e){r[e.name]=_(e,t)})),r}function f(e,t){if(!t)return e;var r=[];for(var a in t)if(t.hasOwnProperty(a)){var n,i=t[a];if(null!=i)r.push(a+":"+(null!==(n=JSON.stringify(i))&&void 0!==n?n:"undefined"))}return 0===r.length?e:e+"(".concat(r.join(","),")")}var v={ACTOR_IDENTIFIER_KEY:"__actorIdentifier",CLIENT_EDGE_TRAVERSAL_PATH:"__clientEdgeTraversalPath",FRAGMENTS_KEY:"__fragments",FRAGMENT_OWNER_KEY:"__fragmentOwner",FRAGMENT_PROP_NAME_KEY:"__fragmentPropName",MODULE_COMPONENT_KEY:"__module_component",ID_KEY:"__id",REF_KEY:"__ref",REFS_KEY:"__refs",ROOT_ID:"client:root",ROOT_TYPE:"__Root",TYPENAME_KEY:"__typename",INVALIDATED_AT_KEY:"__invalidated_at",IS_WITHIN_UNMATCHED_TYPE_REFINEMENT:"__isWithinUnmatchedTypeRefinement",RELAY_RESOLVER_VALUE_KEY:"__resolverValue",RELAY_RESOLVER_INVALIDATION_KEY:"__resolverValueMayBeInvalid",RELAY_RESOLVER_SNAPSHOT_KEY:"__resolverSnapshot",RELAY_RESOLVER_ERROR_KEY:"__resolverError",RELAY_RESOLVER_OUTPUT_TYPE_RECORD_IDS:"__resolverOutputTypeRecordIDs",formatStorageKey:f,getArgumentValue:_,getArgumentValues:h,getHandleStorageKey:function(e,t){var r=e.dynamicKey,i=e.handle,s=e.key,o=e.name,l=e.args,u=e.filters,c=n(i,s,o),d=null;return l&&u&&0!==l.length&&0!==u.length&&(d=l.filter((function(e){return u.indexOf(e.name)>-1}))),r&&(d=null!=d?[r].concat((0,a.default)(d)):[r]),null===d?c:f(c,h(d,t))},getStorageKey:function(e,t){if(e.storageKey)return e.storageKey;var r=function(e){if("RelayResolver"===e.kind||"RelayLiveResolver"===e.kind){var t,r;return null==e.args?null===(r=e.fragment)||void 0===r?void 0:r.args:null==(null===(t=e.fragment)||void 0===t?void 0:t.args)?e.args:e.args.concat(e.fragment.args)}return void 0===e.args?void 0:e.args}(e),a=e.name;return r&&0!==r.length?f(a,h(r,t)):a},getStableStorageKey:function(e,t){return f(e,s(t))},getModuleComponentKey:function(e){return"".concat("__module_component_").concat(e)},getModuleOperationKey:function(e){return"".concat("__module_operation_").concat(e)}};e.exports=v},function(e,r){e.exports=t},function(e,t,r){"use strict";e.exports={ACTOR_CHANGE:"ActorChange",CONDITION:"Condition",CLIENT_COMPONENT:"ClientComponent",CLIENT_EDGE_TO_SERVER_OBJECT:"ClientEdgeToServerObject",CLIENT_EDGE_TO_CLIENT_OBJECT:"ClientEdgeToClientObject",CLIENT_EXTENSION:"ClientExtension",DEFER:"Defer",CONNECTION:"Connection",FLIGHT_FIELD:"FlightField",FRAGMENT:"Fragment",FRAGMENT_SPREAD:"FragmentSpread",INLINE_DATA_FRAGMENT_SPREAD:"InlineDataFragmentSpread",INLINE_DATA_FRAGMENT:"InlineDataFragment",INLINE_FRAGMENT:"InlineFragment",LINKED_FIELD:"LinkedField",LINKED_HANDLE:"LinkedHandle",LITERAL:"Literal",LIST_VALUE:"ListValue",LOCAL_ARGUMENT:"LocalArgument",MODULE_IMPORT:"ModuleImport",ALIASED_FRAGMENT_SPREAD:"AliasedFragmentSpread",ALIASED_INLINE_FRAGMENT_SPREAD:"AliasedInlineFragmentSpread",RELAY_RESOLVER:"RelayResolver",RELAY_LIVE_RESOLVER:"RelayLiveResolver",REQUIRED_FIELD:"RequiredField",OBJECT_VALUE:"ObjectValue",OPERATION:"Operation",REQUEST:"Request",ROOT_ARGUMENT:"RootArgument",SCALAR_FIELD:"ScalarField",SCALAR_HANDLE:"ScalarHandle",SPLIT_OPERATION:"SplitOperation",STREAM:"Stream",TYPE_DISCRIMINATOR:"TypeDiscriminator",UPDATABLE_QUERY:"UpdatableQuery",VARIABLE:"Variable"}},function(e,t,r){"use strict";var a=(0,r(2).default)(r(12)),n=r(17),i=r(6).isClientID,s=r(1),o=s.ACTOR_IDENTIFIER_KEY,l=s.ID_KEY,u=s.INVALIDATED_AT_KEY,c=s.REF_KEY,d=s.REFS_KEY,_=s.ROOT_ID,h=s.TYPENAME_KEY,f=r(9),v=r(0),g=r(8);function p(e){return e[l]}function E(e){return e[h]}e.exports={clone:function(e){return(0,a.default)({},e)},copyFields:function(e,t){for(var r in e)e.hasOwnProperty(r)&&r!==l&&r!==h&&(t[r]=e[r])},create:function(e,t){var r={};return r[l]=e,r[h]=t,r},freeze:function(e){n(e)},getDataID:p,getInvalidationEpoch:function(e){if(null==e)return null;var t=e[u];return"number"!=typeof t?null:t},getLinkedRecordID:function(e,t){var r=e[t];if(null==r)return r;var a=r;return"object"==typeof a&&a&&"string"==typeof a[c]||v(!1,"RelayModernRecord.getLinkedRecordID(): Expected `%s.%s` to be a linked ID, was `%s`.%s",e[l],t,JSON.stringify(a),"object"==typeof a&&void 0!==a[d]?" It appears to be a plural linked record: did you mean to call getLinkedRecords() instead of getLinkedRecord()?":""),a[c]},getLinkedRecordIDs:function(e,t){var r=e[t];return null==r?r:("object"==typeof r&&Array.isArray(r[d])||v(!1,"RelayModernRecord.getLinkedRecordIDs(): Expected `%s.%s` to contain an array of linked IDs, got `%s`.%s",e[l],t,JSON.stringify(r),"object"==typeof r&&void 0!==r[c]?" It appears to be a singular linked record: did you mean to call getLinkedRecord() instead of getLinkedRecords()?":""),r[d])},getType:E,getValue:function(e,t){var r=e[t];return r&&"object"==typeof r&&(r.hasOwnProperty(c)||r.hasOwnProperty(d))&&v(!1,"RelayModernRecord.getValue(): Expected a scalar (non-link) value for `%s.%s` but found %s.",e[l],t,r.hasOwnProperty(c)?"a linked record":"plural linked records"),r},merge:function(e,t){var r,n,s=p(e),o=p(t);g(s===o,"RelayModernRecord: Invalid record merge, expected both versions of the record to have the same id, got `%s` and `%s`.",s,o);var l=null!==(r=E(e))&&void 0!==r?r:null,u=null!==(n=E(t))&&void 0!==n?n:null;return g(i(o)&&o!==_||l===u,"RelayModernRecord: Invalid record merge, expected both versions of record `%s` to have the same `%s` but got conflicting types `%s` and `%s`. The GraphQL server likely violated the globally unique id requirement by returning the same id for different objects.",s,h,l,u),(0,a.default)((0,a.default)({},e),t)},setValue:function(e,t,r){var a=p(e);if(t===l)g(a===r,"RelayModernRecord: Invalid field update, expected both versions of the record to have the same id, got `%s` and `%s`.",a,r);else if(t===h){var n,s=null!==(n=E(e))&&void 0!==n?n:null,o=null!=r?r:null;g(i(p(e))&&p(e)!==_||s===o,"RelayModernRecord: Invalid field update, expected both versions of record `%s` to have the same `%s` but got conflicting types `%s` and `%s`. The GraphQL server likely violated the globally unique id requirement by returning the same id for different objects.",a,h,s,o)}e[t]=r},setLinkedRecordID:function(e,t,r){var a={};a[c]=r,e[t]=a},setLinkedRecordIDs:function(e,t,r){var a={};a[d]=r,e[t]=a},update:function(e,t){var r,n,s=p(e),o=p(t);g(s===o,"RelayModernRecord: Invalid record update, expected both versions of the record to have the same id, got `%s` and `%s`.",s,o);var l=null!==(r=E(e))&&void 0!==r?r:null,u=null!==(n=E(t))&&void 0!==n?n:null;g(i(o)&&o!==_||l===u,"RelayModernRecord: Invalid record update, expected both versions of record `%s` to have the same `%s` but got conflicting types `%s` and `%s`. The GraphQL server likely violated the globally unique id requirement by returning the same id for different objects.",s,h,l,u);for(var c=null,d=Object.keys(t),v=0;v<d.length;v++){var R=d[v];!c&&f(e[R],t[R])||((c=null!==c?c:(0,a.default)({},e))[R]=t[R])}return null!==c?c:e},getActorLinkedRecordID:function(e,t){var r=e[t];return null==r?r:(("object"!=typeof r||"string"!=typeof r[c]||null==r[o])&&v(!1,"RelayModernRecord.getActorLinkedRecordID(): Expected `%s.%s` to be an actor specific linked ID, was `%s`.",e[l],t,JSON.stringify(r)),[r[o],r[c]])},setActorLinkedRecordID:function(e,t,r,a){var n={};n[c]=a,n[o]=r,e[t]=n}}},function(e,t){e.exports=r},function(e,t,r){"use strict";var a=r(7),n=r(36).intern;var i=0;e.exports={generateClientID:function(e,t,r){var i=(a.STRING_INTERN_LEVEL<=0?e:n(e,a.MAX_DATA_ID_LENGTH))+":"+t;return null!=r&&(i+=":"+r),0!==i.indexOf("client:")&&(i="client:"+i),i},generateClientObjectClientID:function(e,t,r){var a="".concat("client:").concat(e,":").concat(t);return null!=r&&(a+=":"+r),a},generateUniqueClientID:function(){return"".concat("client:","local:").concat(i++)},isClientID:function(e){return 0===e.indexOf("client:")}}},function(e,t,r){"use strict";e.exports={ENABLE_CLIENT_EDGES:!1,ENABLE_VARIABLE_CONNECTION_KEY:!1,ENABLE_PARTIAL_RENDERING_DEFAULT:!0,ENABLE_REACT_FLIGHT_COMPONENT_FIELD:!1,ENABLE_RELAY_RESOLVERS:!1,ENABLE_GETFRAGMENTIDENTIFIER_OPTIMIZATION:!1,ENABLE_FRIENDLY_QUERY_NAME_GQL_URL:!1,ENABLE_LOAD_QUERY_REQUEST_DEDUPING:!0,ENABLE_DO_NOT_WRAP_LIVE_QUERY:!1,ENABLE_NOTIFY_SUBSCRIPTION:!1,BATCH_ASYNC_MODULE_UPDATES_FN:null,ENABLE_CONTAINERS_SUBSCRIBE_ON_COMMIT:!1,MAX_DATA_ID_LENGTH:null,STRING_INTERN_LEVEL:0,USE_REACT_CACHE:!1,USE_REACT_CACHE_LEGACY_TIMEOUTS:!0,ENABLE_QUERY_RENDERER_SET_STATE_PREVENTION:!1}},function(e,t){e.exports=a},function(e,t){e.exports=n},function(e,t,r){"use strict";var a=(0,r(2).default)(r(12)),n=r(1).getArgumentValues,i=r(0);e.exports={getLocalVariables:function(e,t,r){if(null==t)return e;var i=(0,a.default)({},e),s=r?n(r,e):{};return t.forEach((function(e){var t,r=null!==(t=s[e.name])&&void 0!==t?t:e.defaultValue;i[e.name]=r})),i},getFragmentVariables:function(e,t,r){return null==e.argumentDefinitions?r:(e.argumentDefinitions.forEach((function(s){if(!r.hasOwnProperty(s.name))switch(n=n||(0,a.default)({},r),s.kind){case"LocalArgument":n[s.name]=s.defaultValue;break;case"RootArgument":if(!t.hasOwnProperty(s.name)){n[s.name]=void 0;break}n[s.name]=t[s.name];break;default:i(!1,"RelayConcreteVariables: Unexpected node kind `%s` in fragment `%s`.",s.kind,e.name)}})),n||r);var n},getOperationVariables:function(e,t,r){var a={};return e.argumentDefinitions.forEach((function(e){var t=e.defaultValue;null!=r[e.name]&&(t=r[e.name]),a[e.name]=t})),null!=t&&Object.keys(t).forEach((function(e){a[e]=t[e].get()})),a}}},function(e,t,r){"use strict";var a=r(4).getType,n=r(0);e.exports={REACT_FLIGHT_EXECUTABLE_DEFINITIONS_STORAGE_KEY:"executableDefinitions",REACT_FLIGHT_TREE_STORAGE_KEY:"tree",REACT_FLIGHT_TYPE_NAME:"ReactFlightComponent",getReactFlightClientResponse:function(e){return"ReactFlightComponent"!==a(e)&&n(!1,"getReactFlightClientResponse(): Expected a ReactFlightComponentRecord, got %s.",e),e.tree},refineToReactFlightPayloadData:function(e){return null!=e&&"object"==typeof e&&"string"==typeof e.status&&(Array.isArray(e.tree)||null===e.tree)&&Array.isArray(e.queries)&&Array.isArray(e.fragments)&&Array.isArray(e.errors)?e:null}}},function(e,t){e.exports=i},function(e,t,r){"use strict";e.exports={EXISTENT:"EXISTENT",NONEXISTENT:"NONEXISTENT",UNKNOWN:"UNKNOWN"}},function(e,t,r){"use strict";var a=r(10).getFragmentVariables,n=r(1),i=n.CLIENT_EDGE_TRAVERSAL_PATH,s=n.FRAGMENT_OWNER_KEY,o=n.FRAGMENTS_KEY,l=n.ID_KEY,u=n.IS_WITHIN_UNMATCHED_TYPE_REFINEMENT,c=r(9),d=r(0),_=r(8);function h(e,t){("object"!=typeof t||null===t||Array.isArray(t))&&d(!1,"RelayModernSelector: Expected value for fragment `%s` to be an object, got `%s`.",e.name,JSON.stringify(t));var r=t[l],n=t[o],c=t[s],h=!0===t[u],f=t[i];if("string"==typeof r&&"object"==typeof n&&null!==n&&"object"==typeof n[e.name]&&null!==n[e.name]&&"object"==typeof c&&null!==c&&(null==f||Array.isArray(f))){var v=c,g=f,p=n[e.name];return I(e,r,a(e,v.variables,p),v,h,g)}var E=JSON.stringify(t);return E.length>499&&(E=E.substr(0,498)+"…"),_(!1,"RelayModernSelector: Expected object to contain data for fragment `%s`, got `%s`. Make sure that the parent operation/fragment included fragment `...%s` without `@relay(mask: false)`.",e.name,E,e.name),null}function f(e,t){var r=null;return t.forEach((function(t,a){var n=null!=t?h(e,t):null;null!=n&&(r=r||[]).push(n)})),null==r?null:{kind:"PluralReaderSelector",selectors:r}}function v(e,t){return null==t?t:e.metadata&&!0===e.metadata.plural?(Array.isArray(t)||d(!1,"RelayModernSelector: Expected value for fragment `%s` to be an array, got `%s`. Remove `@relay(plural: true)` from fragment `%s` to allow the prop to be an object.",e.name,JSON.stringify(t),e.name),f(e,t)):(Array.isArray(t)&&d(!1,"RelayModernSelector: Expected value for fragment `%s` to be an object, got `%s`. Add `@relay(plural: true)` to fragment `%s` to allow the prop to be an array of items.",e.name,JSON.stringify(t),e.name),h(e,t))}function g(e,t){return null==t?t:e.metadata&&!0===e.metadata.plural?(Array.isArray(t)||d(!1,"RelayModernSelector: Expected value for fragment `%s` to be an array, got `%s`. Remove `@relay(plural: true)` from fragment `%s` to allow the prop to be an object.",e.name,JSON.stringify(t),e.name),function(e,t){var r=null;return t.forEach((function(t){var a=null!=t?p(e,t):null;null!=a&&(r=r||[]).push(a)})),r}(e,t)):(Array.isArray(t)&&d(!1,"RelayModernFragmentSpecResolver: Expected value for fragment `%s` to be an object, got `%s`. Add `@relay(plural: true)` to fragment `%s` to allow the prop to be an array of items.",e.name,JSON.stringify(t),e.name),p(e,t))}function p(e,t){("object"!=typeof t||null===t||Array.isArray(t))&&d(!1,"RelayModernSelector: Expected value for fragment `%s` to be an object, got `%s`.",e.name,JSON.stringify(t));var r=t[l];return"string"==typeof r?r:(_(!1,"RelayModernSelector: Expected object to contain data for fragment `%s`, got `%s`. Make sure that the parent operation/fragment included fragment `...%s` without `@relay(mask: false)`, or `null` is passed as the fragment reference for `%s` if it's conditonally included and the condition isn't met.",e.name,JSON.stringify(t),e.name,e.name),null)}function E(e,t){var r;return null==t?{}:!0===(null===(r=e.metadata)||void 0===r?void 0:r.plural)?(Array.isArray(t)||d(!1,"RelayModernSelector: Expected value for fragment `%s` to be an array, got `%s`. Remove `@relay(plural: true)` from fragment `%s` to allow the prop to be an object.",e.name,JSON.stringify(t),e.name),m(e,t)):(Array.isArray(t)&&d(!1,"RelayModernFragmentSpecResolver: Expected value for fragment `%s` to be an object, got `%s`. Add `@relay(plural: true)` to fragment `%s` to allow the prop to be an array of items.",e.name,JSON.stringify(t),e.name),R(e,t)||{})}function R(e,t){var r=h(e,t);return r?r.variables:null}function m(e,t){var r={};return t.forEach((function(t,a){if(null!=t){var n=R(e,t);null!=n&&Object.assign(r,n)}})),r}function y(e,t){return e.owner===t.owner&&e.dataID===t.dataID&&e.node===t.node&&c(e.variables,t.variables)}function I(e,t,r,a){var n=arguments.length>4&&void 0!==arguments[4]&&arguments[4],i=arguments.length>5?arguments[5]:void 0;return{kind:"SingularReaderSelector",dataID:t,isWithinUnmatchedTypeRefinement:n,clientEdgeTraversalPath:null!=i?i:null,node:e,variables:r,owner:a}}e.exports={areEqualSelectors:function(e,t){return e===t||(null==e?null==t:null==t?null==e:"SingularReaderSelector"===e.kind&&"SingularReaderSelector"===t.kind?y(e,t):"PluralReaderSelector"===e.kind&&"PluralReaderSelector"===t.kind&&(e.selectors.length===t.selectors.length&&e.selectors.every((function(e,r){return y(e,t.selectors[r])}))))},createReaderSelector:I,createNormalizationSelector:function(e,t,r){return{dataID:t,node:e,variables:r}},getDataIDsFromFragment:g,getDataIDsFromObject:function(e,t){var r={};for(var a in e)if(e.hasOwnProperty(a)){var n=e[a],i=t[a];r[a]=g(n,i)}return r},getSingularSelector:h,getPluralSelector:f,getSelector:v,getSelectorsFromObject:function(e,t){var r={};for(var a in e)if(e.hasOwnProperty(a)){var n=e[a],i=t[a];r[a]=v(n,i)}return r},getVariablesFromSingularFragment:R,getVariablesFromPluralFragment:m,getVariablesFromFragment:E,getVariablesFromObject:function(e,t){var r={};for(var a in e)if(e.hasOwnProperty(a)){var n=E(e[a],t[a]);Object.assign(r,n)}return r}}},function(e,t,r){"use strict";e.exports={generateTypeID:function(e){return"client:__type:"+e},isTypeID:function(e){return 0===e.indexOf("client:__type:")},TYPE_SCHEMA_TYPE:"__TypeSchema"}},function(e,t){e.exports=s},function(e,t,r){"use strict";e.exports=function e(t){return Object.freeze(t),Object.getOwnPropertyNames(t).forEach((function(r){var a=t[r];a&&"object"==typeof a&&!Object.isFrozen(a)&&e(a)})),t}},function(e,t){e.exports=o},function(e,t,r){"use strict";var a=r(3),n=r(0),i=r(8);function s(e){var t=e;return"function"==typeof t?(t=t(),i(!1,"RelayGraphQLTag: node `%s` unexpectedly wrapped in a function.","Fragment"===t.kind?t.name:t.operation.name)):t.default&&(t=t.default),t}function o(e){var t=s(e);return"object"==typeof t&&null!==t&&t.kind===a.FRAGMENT}function l(e){var t=s(e);return"object"==typeof t&&null!==t&&t.kind===a.REQUEST}function u(e){var t=s(e);return"object"==typeof t&&null!==t&&t.kind===a.UPDATABLE_QUERY}function c(e){var t=s(e);return"object"==typeof t&&null!==t&&t.kind===a.INLINE_DATA_FRAGMENT}function d(e){var t=s(e);return o(t)||n(!1,"GraphQLTag: Expected a fragment, got `%s`.",JSON.stringify(t)),t}e.exports={getFragment:d,getNode:s,getPaginationFragment:function(e){var t,r=d(e),a=null===(t=r.metadata)||void 0===t?void 0:t.refetch,n=null==a?void 0:a.connection;return null===a||"object"!=typeof a||null===n||"object"!=typeof n?null:r},getRefetchableFragment:function(e){var t,r=d(e),a=null===(t=r.metadata)||void 0===t?void 0:t.refetch;return null===a||"object"!=typeof a?null:r},getRequest:function(e){var t=s(e);return l(t)||n(!1,"GraphQLTag: Expected a request, got `%s`.",JSON.stringify(t)),t},getUpdatableQuery:function(e){var t=s(e);return u(t)||n(!1,"GraphQLTag: Expected a request, got `%s`.",JSON.stringify(t)),t},getInlineDataFragment:function(e){var t=s(e);return c(t)||n(!1,"GraphQLTag: Expected an inline data fragment, got `%s`.",JSON.stringify(t)),t},graphql:function(e){n(!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`. Note also that there cannot be a space between graphql and the backtick that follows.")},isFragment:o,isRequest:l,isUpdatableQuery:u,isInlineDataFragment:c}},function(e,t,r){"use strict";var a=Object.freeze({__LIVE_RESOLVER_SUSPENSE_SENTINEL:!0});e.exports={isSuspenseSentinel:function(e){return e===a},suspenseSentinel:function(){return a}}},function(e,t,r){"use strict";var a="undefined"!=typeof WeakSet,n="undefined"!=typeof WeakMap;e.exports=function e(t,r){if(t===r||"object"!=typeof t||t instanceof Set||t instanceof Map||a&&t instanceof WeakSet||n&&t instanceof WeakMap||!t||"object"!=typeof r||r instanceof Set||r instanceof Map||a&&r instanceof WeakSet||n&&r instanceof WeakMap||!r)return r;var i=!1,s=Array.isArray(t)?t:null,o=Array.isArray(r)?r:null;if(s&&o)i=o.reduce((function(t,r,a){var n=e(s[a],r);return n!==o[a]&&(Object.isFrozen(o)||(o[a]=n)),t&&n===s[a]}),!0)&&s.length===o.length;else if(!s&&!o){var l=t,u=r,c=Object.keys(l),d=Object.keys(u);i=d.reduce((function(t,r){var a=e(l[r],u[r]);return a!==u[r]&&(Object.isFrozen(u)||(u[r]=a)),t&&a===l[r]}),!0)&&c.length===d.length}return i?t:r}},function(e,t,r){"use strict";var a=r(0);e.exports={assertInternalActorIdentifier:function(e){"INTERNAL_ACTOR_IDENTIFIER_DO_NOT_USE"!==e&&a(!1,'Expected to use only internal version of the `actorIdentifier`. "%s" was provided.',e)},getActorIdentifier:function(e){return e},getDefaultActorIdentifier:function(){throw new Error("Not Implemented")},INTERNAL_ACTOR_IDENTIFIER_DO_NOT_USE:"INTERNAL_ACTOR_IDENTIFIER_DO_NOT_USE"}},function(e,t,r){"use strict";var a=(0,r(2).default)(r(5)),n=r(1).getArgumentValues,i=r(3),s=i.ACTOR_CHANGE,o=i.ALIASED_FRAGMENT_SPREAD,l=i.ALIASED_INLINE_FRAGMENT_SPREAD,u=i.CLIENT_EDGE_TO_CLIENT_OBJECT,c=i.CLIENT_EDGE_TO_SERVER_OBJECT,d=i.CLIENT_EXTENSION,_=i.CONDITION,h=i.DEFER,f=i.FLIGHT_FIELD,v=i.FRAGMENT_SPREAD,g=i.INLINE_DATA_FRAGMENT_SPREAD,p=i.INLINE_FRAGMENT,E=i.LINKED_FIELD,R=i.MODULE_IMPORT,m=i.RELAY_LIVE_RESOLVER,y=i.RELAY_RESOLVER,I=i.REQUIRED_FIELD,b=i.SCALAR_FIELD,S=i.STREAM,D=["id","__id","__typename","js"];function T(e,t,r,i,O,F){var C,M,P=(0,a.default)(i);try{var x=function(){var i=M.value;switch(i.kind){case E:i.plural?Object.defineProperty(e,null!==(V=i.alias)&&void 0!==V?V:i.name,{get:N(i,r,t,O,F),set:L(i,r,t,O)}):Object.defineProperty(e,null!==(w=i.alias)&&void 0!==w?w:i.name,{get:k(i,r,t,O,F),set:A(i,r,t,O)});break;case b:var P=null!==(C=i.alias)&&void 0!==C?C:i.name;Object.defineProperty(e,P,{get:function(){var e,s=n(null!==(e=i.args)&&void 0!==e?e:[],r),o=t.getValue(i.name,s);return null==o&&(o=function(e,t,r,n,i){var s,o=(0,a.default)(i);try{for(o.s();!(s=o.n()).done;){var l=s.value;if("scalar"===l.kind){var u=l.handle(e,r,t,n);if(void 0!==u)return u}}}catch(e){o.e(e)}finally{o.f()}}(i,s,t,O,F)),o},set:D.includes(i.name)?void 0:function(e){var a,s=n(null!==(a=i.args)&&void 0!==a?a:[],r);t.setValue__UNSAFE(e,i.name,s)}});break;case p:t.getType()===i.type&&T(e,t,r,i.selections,O,F);break;case d:T(e,t,r,i.selections,O,F);break;case v:break;case _:case s:case o:case g:case l:case u:case c:case h:case f:case R:case m:case I:case S:case y:throw new Error("Encountered an unexpected ReaderSelection variant in RelayRecordSourceProxy. This indicates a bug in Relay.");default:throw i.kind,new Error("Encountered an unexpected ReaderSelection variant in RelayRecordSourceProxy. This indicates a bug in Relay.")}};for(P.s();!(M=P.n()).done;){var V,w;x()}}catch(e){P.e(e)}finally{P.f()}}function L(e,t,r,a){return function(i){var s,o=n(null!==(s=e.args)&&void 0!==s?s:[],t);if(null==i)throw new Error("Do not assign null to plural linked fields; assign an empty array instead.");var l=i.map((function(e){if(null==e)throw new Error("When assigning an array of items, none of the items should be null or undefined.");var t=e.__id;if(null==t)throw new Error("The __id field must be present on each item passed to the setter. This indicates a bug in Relay.");var r=a.get(t);if(null==r)throw new Error("Did not find item with data id ".concat(t," in the store."));return r}));r.setLinkedRecords(l,e.name,o)}}function A(e,t,r,a){return function(i){var s,o=n(null!==(s=e.args)&&void 0!==s?s:[],t);if(null==i)r.setValue(i,e.name,o);else{var l=i.__id;if(null==l)throw new Error("The __id field must be present on the argument. This indicates a bug in Relay.");var u=a.get(l);if(null==u)throw new Error("Did not find item with data id ".concat(l," in the store."));r.setLinkedRecord(u,e.name,o)}}}function N(e,t,r,i,s){return function(){var o,l=n(null!==(o=e.args)&&void 0!==o?o:[],t),u=r.getLinkedRecords(e.name,l);return void 0===u&&(u=function(e,t,r,n,i){var s,o=(0,a.default)(i);try{for(o.s();!(s=o.n()).done;){var l=s.value;if("pluralLinked"===l.kind){var u=l.handle(e,r,t,n);if(null!=u)return u.map((function(e){if(null!=e)return n.get(e)}))}}}catch(e){o.e(e)}finally{o.f()}}(e,l,r,i,s)),null!=u?u.map((function(r){if(null!=r){var a={};return T(a,r,t,e.selections,i,s),Object.freeze(a),a}return r})):u}}function k(e,t,r,i,s){return function(){var o,l=n(null!==(o=e.args)&&void 0!==o?o:[],t),u=r.getLinkedRecord(e.name,l);if(void 0===u&&(u=function(e,t,r,n,i){var s,o=(0,a.default)(i);try{for(o.s();!(s=o.n()).done;){var l=s.value;if("linked"===l.kind){var u=l.handle(e,r,t,n);if(null!=u)return n.get(u)}}}catch(e){o.e(e)}finally{o.f()}}(e,l,r,i,s)),null!=u){var c={};return T(c,u,t,e.selections,i,s),Object.freeze(c),c}return u}}e.exports={createUpdatableProxy:function(e,t,r,a,n){var i={};return T(i,e,t,r,a,n),Object.freeze(i),i}}},function(e,t,r){"use strict";var a=r(3),n=a.REQUEST,i=a.SPLIT_OPERATION;e.exports=function(e){switch(e.kind){case n:return e.operation;case i:default:return e}}},function(e,t,r){"use strict";var a=r(3).LINKED_FIELD,n=r(1).getHandleStorageKey,i=r(9),s=r(0);e.exports=function(e,t,r){var o=t.find((function(t){return t.kind===a&&t.name===e.name&&t.alias===e.alias&&i(t.args,e.args)}));o&&o.kind===a||s(!1,"cloneRelayHandleSourceField: Expected a corresponding source field for handle `%s`.",e.handle);var l=n(e,r);return{kind:"LinkedField",alias:o.alias,name:l,storageKey:l,args:null,concreteType:o.concreteType,plural:o.plural,selections:o.selections}}},function(e,t,r){"use strict";var a=(0,r(2).default)(r(5)),n=r(13),i=n.EXISTENT,s=n.NONEXISTENT,o=n.UNKNOWN,l=function(){function e(e){var t=this;this._records=new Map,null!=e&&Object.keys(e).forEach((function(r){t._records.set(r,e[r])}))}e.create=function(t){return new e(t)};var t=e.prototype;return t.clear=function(){this._records=new Map},t.delete=function(e){this._records.set(e,null)},t.get=function(e){return this._records.get(e)},t.getRecordIDs=function(){return Array.from(this._records.keys())},t.getStatus=function(e){return this._records.has(e)?null==this._records.get(e)?s:i:o},t.has=function(e){return this._records.has(e)},t.remove=function(e){this._records.delete(e)},t.set=function(e,t){this._records.set(e,t)},t.size=function(){return this._records.size},t.toJSON=function(){var e,t={},r=(0,a.default)(this._records);try{for(r.s();!(e=r.n()).done;){var n=e.value,i=n[0],s=n[1];t[i]=s}}catch(e){r.e(e)}finally{r.f()}return t},e}();e.exports=l},function(e,t,r){"use strict";var a=r(2).default,n=a(r(5)),i=a(r(16)),s=a(r(18)),o=r(3),l=o.ACTOR_CHANGE,u=o.ALIASED_FRAGMENT_SPREAD,c=o.ALIASED_INLINE_FRAGMENT_SPREAD,d=o.CLIENT_EDGE_TO_CLIENT_OBJECT,_=o.CLIENT_EDGE_TO_SERVER_OBJECT,h=o.CLIENT_EXTENSION,f=o.CONDITION,v=o.DEFER,g=o.FLIGHT_FIELD,p=o.FRAGMENT_SPREAD,E=o.INLINE_DATA_FRAGMENT_SPREAD,R=o.INLINE_FRAGMENT,m=o.LINKED_FIELD,y=o.MODULE_IMPORT,I=o.RELAY_LIVE_RESOLVER,b=o.RELAY_RESOLVER,S=o.REQUIRED_FIELD,D=o.SCALAR_FIELD,T=o.STREAM,L=r(7),A=r(20).isSuspenseSentinel,N=r(10),k=r(4),O=r(11).getReactFlightClientResponse,F=r(1),C=F.CLIENT_EDGE_TRAVERSAL_PATH,M=F.FRAGMENT_OWNER_KEY,P=F.FRAGMENT_PROP_NAME_KEY,x=F.FRAGMENTS_KEY,V=F.ID_KEY,w=F.IS_WITHIN_UNMATCHED_TYPE_REFINEMENT,U=F.MODULE_COMPONENT_KEY,j=F.ROOT_ID,G=F.getArgumentValues,Y=F.getModuleComponentKey,K=F.getStorageKey,H=r(48).NoopResolverCache,z=r(28),q=z.RESOLVER_FRAGMENT_MISSING_DATA_SENTINEL,B=z.withResolverContext,W=r(15).generateTypeID,J=r(0);function Q(e,t,r){return new X(e,t,null!=r?r:new H).read()}var X=function(){function e(e,t,r){var a;this._clientEdgeTraversalPath=L.ENABLE_CLIENT_EDGES&&null!==(a=t.clientEdgeTraversalPath)&&void 0!==a&&a.length?(0,s.default)(t.clientEdgeTraversalPath):[],this._missingClientEdges=[],this._missingLiveResolverFields=[],this._isMissingData=!1,this._isWithinUnmatchedTypeRefinement=!1,this._missingRequiredFields=null,this._owner=t.owner,this._recordSource=e,this._seenRecords=new Set,this._selector=t,this._variables=t.variables,this._resolverCache=r,this._resolverErrors=[],this._fragmentName=t.node.name,this._updatedDataIDs=new Set}var t=e.prototype;return t.read=function(){var e=this._selector,t=e.node,r=e.dataID,a=e.isWithinUnmatchedTypeRefinement,n=t.abstractKey,i=this._recordSource.get(r),s=!a;s&&null==n&&null!=i&&(k.getType(i)!==t.type&&r!==j&&(s=!1));if(s&&null!=n&&null!=i){var o=this._implementsInterface(i,n);!1===o?s=!1:null==o&&(this._isMissingData=!0)}this._isWithinUnmatchedTypeRefinement=!s;var l=this._traverse(t,r,null);return this._updatedDataIDs.size>0&&(this._resolverCache.notifyUpdatedSubscribers(this._updatedDataIDs),this._updatedDataIDs.clear()),{data:l,isMissingData:this._isMissingData&&s,missingClientEdges:L.ENABLE_CLIENT_EDGES&&this._missingClientEdges.length?this._missingClientEdges:null,missingLiveResolverFields:this._missingLiveResolverFields,seenRecords:this._seenRecords,selector:this._selector,missingRequiredFields:this._missingRequiredFields,relayResolverErrors:this._resolverErrors}},t._markDataAsMissing=function(){if(this._isMissingData=!0,L.ENABLE_CLIENT_EDGES&&this._clientEdgeTraversalPath.length){var e=this._clientEdgeTraversalPath[this._clientEdgeTraversalPath.length-1];null!==e&&this._missingClientEdges.push({request:e.readerClientEdge.operation,clientEdgeDestinationID:e.clientEdgeDestinationID})}},t._traverse=function(e,t,r){var a=this._recordSource.get(t);if(this._seenRecords.add(t),null==a)return void 0===a&&this._markDataAsMissing(),a;var n=r||{};return this._traverseSelections(e.selections,a,n)?n:null},t._getVariableValue=function(e){return this._variables.hasOwnProperty(e)||J(!1,"RelayReader(): Undefined variable `%s`.",e),this._variables[e]},t._maybeReportUnexpectedNull=function(e,t,r){var a;if("THROW"!==(null===(a=this._missingRequiredFields)||void 0===a?void 0:a.action)){var n=this._fragmentName;switch(t){case"THROW":return void(this._missingRequiredFields={action:t,field:{path:e,owner:n}});case"LOG":return void(null==this._missingRequiredFields?this._missingRequiredFields={action:t,fields:[{path:e,owner:n}]}:this._missingRequiredFields={action:t,fields:[].concat((0,s.default)(this._missingRequiredFields.fields),[{path:e,owner:n}])})}}},t._traverseSelections=function(e,t,r){for(var a=0;a<e.length;a++){var n=e[a];switch(n.kind){case S:if(null==this._readRequiredField(n,t,r)){var i=n.action;return"NONE"!==i&&this._maybeReportUnexpectedNull(n.path,i,t),!1}break;case D:this._readScalar(n,t,r);break;case m:n.plural?this._readPluralLink(n,t,r):this._readLink(n,t,r);break;case f:if(Boolean(this._getVariableValue(n.condition))===n.passingValue)if(!this._traverseSelections(n.selections,t,r))return!1;break;case R:if(!1===this._readInlineFragment(n,t,r))return!1;break;case I:case b:if(!L.ENABLE_RELAY_RESOLVERS)throw new Error("Relay Resolver fields are not yet supported.");this._readResolverField(n,t,r);break;case p:this._createFragmentPointer(n,t,r);break;case u:r[n.name]=this._createAliasedFragmentSpread(n,t);break;case c:var s=this._readInlineFragment(n.fragment,t,{});!1===s&&(s=null),r[n.name]=s;break;case y:this._readModuleImport(n,t,r);break;case E:this._createInlineDataOrResolverFragmentPointer(n,t,r);break;case v:case h:var o=this._isMissingData,A=this._missingClientEdges.length;L.ENABLE_CLIENT_EDGES&&this._clientEdgeTraversalPath.push(null);var N=this._traverseSelections(n.selections,t,r);if(this._isMissingData=o||this._missingClientEdges.length>A||this._missingLiveResolverFields.length>0,L.ENABLE_CLIENT_EDGES&&this._clientEdgeTraversalPath.pop(),!N)return!1;break;case T:if(!this._traverseSelections(n.selections,t,r))return!1;break;case g:if(!L.ENABLE_REACT_FLIGHT_COMPONENT_FIELD)throw new Error("Flight fields are not yet supported.");this._readFlightField(n,t,r);break;case l:this._readActorChange(n,t,r);break;case d:case _:if(!L.ENABLE_CLIENT_EDGES)throw new Error("Client edges are not yet supported.");this._readClientEdge(n,t,r);break;default:J(!1,"RelayReader(): Unexpected ast kind `%s`.",n.kind)}}return!0},t._readRequiredField=function(e,t,r){switch(e.field.kind){case D:return this._readScalar(e.field,t,r);case m:return e.field.plural?this._readPluralLink(e.field,t,r):this._readLink(e.field,t,r);case b:case I:if(!L.ENABLE_RELAY_RESOLVERS)throw new Error("Relay Resolver fields are not yet supported.");return this._readResolverField(e.field,t,r);case d:case _:if(!L.ENABLE_RELAY_RESOLVERS)throw new Error("Relay Resolver fields are not yet supported.");return this._readClientEdge(e.field,t,r);default:e.field.kind,J(!1,"RelayReader(): Unexpected ast kind `%s`.",e.kind)}},t._readResolverField=function(e,t,r){var a,s,o=this,l=e.fragment,u=k.getDataID(t),c=function(e){return null!=s?{data:s.data,isMissingData:s.isMissingData}:{data:(s=Q(o._recordSource,e,o._resolverCache)).data,isMissingData:s.isMissingData}},d=this._resolverCache.readFromCacheOrEvaluate(u,e,this._variables,(function(){if(null!=l){var t={__id:u,__fragmentOwner:o._owner,__fragments:(0,i.default)({},l.name,l.args?G(l.args,o._variables):{})};return B({getDataForResolverFragment:c},(function(){var r=Z(e,o._variables,t,o._fragmentName),a=r[0],n=r[1];return{resolverResult:a,snapshot:s,error:n}}))}var r=Z(e,o._variables,null,o._fragmentName);return{resolverResult:r[0],snapshot:void 0,error:r[1]}}),c),_=d[0],h=d[1],f=d[2],v=d[3],g=d[4],p=d[5];if(null!=v){if(null!=v.missingRequiredFields&&this._addMissingRequiredFields(v.missingRequiredFields),null!=v.missingClientEdges){var E,R=(0,n.default)(v.missingClientEdges);try{for(R.s();!(E=R.n()).done;){var m=E.value;this._missingClientEdges.push(m)}}catch(e){R.e(e)}finally{R.f()}}if(null!=v.missingLiveResolverFields){this._isMissingData=this._isMissingData||v.missingLiveResolverFields.length>0;var y,I=(0,n.default)(v.missingLiveResolverFields);try{for(I.s();!(y=I.n()).done;){var b=y.value;this._missingLiveResolverFields.push(b)}}catch(e){I.e(e)}finally{I.f()}}var S,D=(0,n.default)(v.relayResolverErrors);try{for(D.s();!(S=D.n()).done;){var T=S.value;this._resolverErrors.push(T)}}catch(e){D.e(e)}finally{D.f()}this._isMissingData=this._isMissingData||v.isMissingData}if(f&&this._resolverErrors.push(f),null!=h&&this._seenRecords.add(h),null!=g&&(this._isMissingData=!0,this._missingLiveResolverFields.push({path:"".concat(this._fragmentName,".").concat(e.path),liveStateID:g})),null!=p){var L,A=(0,n.default)(p);try{for(A.s();!(L=A.n()).done;){var N=L.value;this._updatedDataIDs.add(N)}}catch(e){A.e(e)}finally{A.f()}}return r[null!==(a=e.alias)&&void 0!==a?a:e.name]=_,_},t._readClientEdge=function(e,t,r){var a,n=this,i=e.backingField;"ClientExtension"===i.kind&&J(!1,"Client extension client edges are not yet implemented.");var s=null!==(a=i.alias)&&void 0!==a?a:i.name,o={};this._traverseSelections([i],t,o);var l=o[s];if(null==l||A(l))r[s]=l;else{if(e.linkedField.plural?Array.isArray(l)||J(!1,"Expected plural Client Edge Relay Resolver to return an array of IDs."):"string"!=typeof l&&J(!1,"Expected a Client Edge Relay Resolver to return an ID of type `string`."),e.kind===d?(null==i.normalizationInfo&&(l=e.linkedField.plural?l.map((function(t){return n._resolverCache.ensureClientRecord(t,e.concreteType)})):this._resolverCache.ensureClientRecord(l,e.concreteType)),this._clientEdgeTraversalPath.push(null)):(e.linkedField.plural&&J(!1,"Unexpected Client Edge to plural server type. This should be prevented by the compiler."),this._clientEdgeTraversalPath.push({readerClientEdge:e,clientEdgeDestinationID:l})),e.linkedField.plural)r[s]=this._readLinkedIds(e.linkedField,l,t,r);else{var u=r[s];null!=u&&"object"!=typeof u&&J(!1,"RelayReader(): Expected data for field `%s` on record `%s` to be an object, got `%s`.",s,k.getDataID(t),u),r[s]=this._traverse(e.linkedField,l,u)}this._clientEdgeTraversalPath.pop()}},t._readFlightField=function(e,t,r){var a,n=null!==(a=e.alias)&&void 0!==a?a:e.name,i=K(e,this._variables),s=k.getLinkedRecordID(t,i);if(null==s)return r[n]=s,void 0===s&&this._markDataAsMissing(),s;var o=this._recordSource.get(s);if(this._seenRecords.add(s),null==o)return r[n]=o,void 0===o&&this._markDataAsMissing(),o;var l=O(o);return r[n]=l,l},t._readScalar=function(e,t,r){var a,n=null!==(a=e.alias)&&void 0!==a?a:e.name,i=K(e,this._variables),s=k.getValue(t,i);return void 0===s&&this._markDataAsMissing(),r[n]=s,s},t._readLink=function(e,t,r){var a,n=null!==(a=e.alias)&&void 0!==a?a:e.name,i=K(e,this._variables),s=k.getLinkedRecordID(t,i);if(null==s)return r[n]=s,void 0===s&&this._markDataAsMissing(),s;var o=r[n];null!=o&&"object"!=typeof o&&J(!1,"RelayReader(): Expected data for field `%s` on record `%s` to be an object, got `%s`.",n,k.getDataID(t),o);var l=this._traverse(e,s,o);return r[n]=l,l},t._readActorChange=function(e,t,r){var a,n=null!==(a=e.alias)&&void 0!==a?a:e.name,i=K(e,this._variables),s=k.getActorLinkedRecordID(t,i);if(null==s)return r[n]=s,void 0===s&&this._markDataAsMissing(),r[n];var o=s[0],l=s[1],u={};return this._createFragmentPointer(e.fragmentSpread,{__id:l},u),r[n]={__fragmentRef:u,__viewer:o},r[n]},t._readPluralLink=function(e,t,r){var a=K(e,this._variables),n=k.getLinkedRecordIDs(t,a);return this._readLinkedIds(e,n,t,r)},t._readLinkedIds=function(e,t,r,a){var n,i=this,s=null!==(n=e.alias)&&void 0!==n?n:e.name;if(null==t)return a[s]=t,void 0===t&&this._markDataAsMissing(),t;var o=a[s];null==o||Array.isArray(o)||J(!1,"RelayReader(): Expected data for field `%s` on record `%s` to be an array, got `%s`.",s,k.getDataID(r),o);var l=o||[];return t.forEach((function(t,a){if(null==t)return void 0===t&&i._markDataAsMissing(),void(l[a]=t);var n=l[a];null!=n&&"object"!=typeof n&&J(!1,"RelayReader(): Expected data for field `%s` on record `%s` to be an object, got `%s`.",s,k.getDataID(r),n),l[a]=i._traverse(e,t,n)})),a[s]=l,l},t._readModuleImport=function(e,t,r){var a=Y(e.documentName),n=k.getValue(t,a);null!=n?(this._createFragmentPointer({kind:"FragmentSpread",name:e.fragmentName,args:e.args},t,r),r[P]=e.fragmentPropName,r[U]=n):void 0===n&&this._markDataAsMissing()},t._createAliasedFragmentSpread=function(e,t){var r=e.abstractKey;if(null==r){var a=k.getType(t);if(null==a||a!==e.type)return null}else{var n=this._implementsInterface(t,r);if(!1===n)return null;if(null==n)return void this._markDataAsMissing()}var i={};return this._createFragmentPointer(e.fragment,t,i),i},t._readInlineFragment=function(e,t,r){var a=e.abstractKey;if(null==a){var n=k.getType(t);if(null==n||n!==e.type)return null;if(!this._traverseSelections(e.selections,t,r))return!1}else{var i=this._implementsInterface(t,a),s=this._isMissingData,o=this._isWithinUnmatchedTypeRefinement;if(this._isWithinUnmatchedTypeRefinement=o||!1===i,this._traverseSelections(e.selections,t,r),this._isWithinUnmatchedTypeRefinement=o,!1===i)return void(this._isMissingData=s);if(null==i)return this._markDataAsMissing(),null}return r},t._createFragmentPointer=function(e,t,r){var a=r[x];null==a&&(a=r[x]={}),("object"!=typeof a||null==a)&&J(!1,"RelayReader: Expected fragment spread data to be an object, got `%s`.",a),null==r[V]&&(r[V]=k.getDataID(t)),a[e.name]=e.args?G(e.args,this._variables):{},r[M]=this._owner,r[w]=this._isWithinUnmatchedTypeRefinement,L.ENABLE_CLIENT_EDGES&&this._clientEdgeTraversalPath.length>0&&null!==this._clientEdgeTraversalPath[this._clientEdgeTraversalPath.length-1]&&(r[C]=(0,s.default)(this._clientEdgeTraversalPath))},t._createInlineDataOrResolverFragmentPointer=function(e,t,r){var a=r[x];null==a&&(a=r[x]={}),("object"!=typeof a||null==a)&&J(!1,"RelayReader: Expected fragment spread data to be an object, got `%s`.",a),null==r[V]&&(r[V]=k.getDataID(t));var n={},i=this._fragmentName;this._fragmentName=e.name;var s=this._variables,o=e.args?G(e.args,this._variables):{};this._variables=N.getFragmentVariables(e,this._owner.variables,o),this._traverseSelections(e.selections,t,n),this._variables=s,this._fragmentName=i,a[e.name]=n},t._addMissingRequiredFields=function(e){null!=this._missingRequiredFields?"THROW"!==this._missingRequiredFields.action&&("THROW"!==e.action?this._missingRequiredFields={action:"LOG",fields:[].concat((0,s.default)(this._missingRequiredFields.fields),(0,s.default)(e.fields))}:this._missingRequiredFields=e):this._missingRequiredFields=e},t._implementsInterface=function(e,t){var r=k.getType(e),a=this._recordSource.get(W(r));return null!=a?k.getValue(a,t):null},e}();function Z(e,t,r,a){var n="function"==typeof e.resolverModule?e.resolverModule:e.resolverModule.default,i=null,s=null;try{var o=[];null!=e.fragment&&o.push(r);var l=e.args?G(e.args,t):void 0;o.push(l),i=n.apply(null,o)}catch(t){var u;if(t===q)i=void 0;else s={field:{path:null!==(u=e.path)&&void 0!==u?u:"[UNKNOWN]",owner:a},error:t}}return[i,s]}e.exports={read:Q}},function(e,t,r){"use strict";var a=r(19).getFragment,n=r(14).getSelector,i=r(0),s=[];var o={};e.exports={readFragment:function(e,t){if(!s.length)throw new Error("readFragment should be called only from within a Relay Resolver function.");var r=s[s.length-1],l=a(e),u=n(l,t);null==u&&i(!1,"Expected a selector for the fragment of the resolver ".concat(l.name,", but got null.")),"SingularReaderSelector"!==u.kind&&i(!1,"Expected a singular reader selector for the fragment of the resolver ".concat(l.name,", but it was plural."));var c=r.getDataForResolverFragment(u,t),d=c.data;if(c.isMissingData)throw o;return d},withResolverContext:function(e,t){s.push(e);try{return t()}finally{s.pop()}},RESOLVER_FRAGMENT_MISSING_DATA_SENTINEL:o}},function(e,t,r){"use strict";var a=r(0),n=r(1).RELAY_RESOLVER_OUTPUT_TYPE_RECORD_IDS,i=r(4);e.exports=function(e){var t=i.getValue(e,n);return null==t?null:(t instanceof Set||a(!1,"getOutputTypeRecordIDs: Expected the `%s` field on record `%s` to be of type Set. Instead, it is a %s.",n,typeof t),new Set(t))}},function(e,t,r){"use strict";e.exports=function(e){return null!=e&&"object"==typeof e&&"function"==typeof e.read&&"function"==typeof e.subscribe}},function(e,t,r){"use strict";var a=r(32),n=r(20),i=n.isSuspenseSentinel,s=n.suspenseSentinel,o=r(55),l=r(56),u=l.weakObjectWrapper,c=l.weakObjectWrapperLive;e.exports={resolverDataInjector:o,isSuspenseSentinel:i,LiveResolverStore:a,weakObjectWrapper:u,weakObjectWrapperLive:c,suspenseSentinel:s}},function(e,t,r){"use strict";var a=r(2).default,n=a(r(5)),i=a(r(16)),s=r(22),o=s.INTERNAL_ACTOR_IDENTIFIER_DO_NOT_USE,l=s.assertInternalActorIdentifier,u=r(17),c=r(33),d=r(34),_=r(45),h=r(4),f=r(47),v=r(27),g=r(49),p=r(11),E=r(50),R=r(1),m=r(1),y=m.ROOT_ID,I=m.ROOT_TYPE,b=r(52),S=b.LiveResolverCache,D=b.getUpdatedDataIDs,T=r(0),L=function(){function e(e,t){var r,a,n,s,o,l,u,d=this;(0,i.default)(this,"_gcStep",(function(){d._gcRun&&(d._gcRun.next().done?d._gcRun=null:d._gcScheduler(d._gcStep))}));for(var f=e.getRecordIDs(),v=0;v<f.length;v++){var g=e.get(f[v]);g&&h.freeze(g)}this._currentWriteEpoch=0,this._gcHoldCounter=0,this._gcReleaseBufferSize=null!==(r=null==t?void 0:t.gcReleaseBufferSize)&&void 0!==r?r:10,this._gcRun=null,this._gcScheduler=null!==(a=null==t?void 0:t.gcScheduler)&&void 0!==a?a:c,this._getDataID=null!==(n=null==t?void 0:t.getDataID)&&void 0!==n?n:_,this._globalInvalidationEpoch=null,this._invalidationSubscriptions=new Set,this._invalidatedRecordIDs=new Set,this.__log=null!==(s=null==t?void 0:t.log)&&void 0!==s?s:null,this._queryCacheExpirationTime=null==t?void 0:t.queryCacheExpirationTime,this._operationLoader=null!==(o=null==t?void 0:t.operationLoader)&&void 0!==o?o:null,this._optimisticSource=null,this._recordSource=e,this._releaseBuffer=[],this._roots=new Map,this._shouldScheduleGC=!1,this._resolverCache=new S((function(){return d._getMutableRecordSource()}),this),this._storeSubscriptions=new E(null==t?void 0:t.log,this._resolverCache),this._updatedRecordIDs=new Set,this._treatMissingFieldsAsNull=null!==(l=null==t?void 0:t.treatMissingFieldsAsNull)&&void 0!==l&&l,this._actorIdentifier=null==t?void 0:t.actorIdentifier,this._reactFlightPayloadDeserializer=null==t?void 0:t.reactFlightPayloadDeserializer,this._reactFlightServerErrorHandler=null==t?void 0:t.reactFlightServerErrorHandler,this._shouldProcessClientComponents=null!==(u=null==t?void 0:t.shouldProcessClientComponents)&&void 0!==u&&u,function(e){if(!e.has(y)){var t=h.create(y,I);e.set(y,t)}}(this._recordSource)}var t=e.prototype;return t.getSource=function(){var e;return null!==(e=this._optimisticSource)&&void 0!==e?e:this._recordSource},t._getMutableRecordSource=function(){var e;return null!==(e=this._optimisticSource)&&void 0!==e?e:this._recordSource},t.getLiveResolverPromise=function(e){return this._resolverCache.getLiveResolverPromise(e)},t.batchLiveStateUpdates=function(e){this._resolverCache.batchLiveStateUpdates(e)},t.check=function(e,t){var r,a,n,i,s=e.root,u=this._getMutableRecordSource(),c=this._globalInvalidationEpoch,_=this._roots.get(e.request.identifier),h=null!=_?_.epoch:null;if(null!=c&&(null==h||h<=c))return{status:"stale"};var f=null!==(r=null==t?void 0:t.handlers)&&void 0!==r?r:[],v=null!==(a=null==t?void 0:t.getSourceForActor)&&void 0!==a?a:function(e){return l(e),u},g=null!==(n=null==t?void 0:t.getTargetForActor)&&void 0!==n?n:function(e){return l(e),u};return function(e,t,r,a){var n=e.mostRecentlyInvalidatedAt,i=e.status;if("number"==typeof n&&(null==t||n>t))return{status:"stale"};if("missing"===i)return{status:"missing"};if(null!=r&&null!=a){if(r<=Date.now()-a)return{status:"stale"}}return{status:"available",fetchTime:null!=r?r:null}}(d.check(v,g,null!==(i=null==t?void 0:t.defaultActorIdentifier)&&void 0!==i?i:o,s,f,this._operationLoader,this._getDataID,this._shouldProcessClientComponents),h,null==_?void 0:_.fetchTime,this._queryCacheExpirationTime)},t.retain=function(e){var t=this,r=e.request.identifier,a=!1,n=this._roots.get(r);return null!=n?(0===n.refCount&&(this._releaseBuffer=this._releaseBuffer.filter((function(e){return e!==r}))),n.refCount+=1):this._roots.set(r,{operation:e,refCount:1,epoch:null,fetchTime:null}),{dispose:function(){if(!a){a=!0;var e=t._roots.get(r);if(null!=e&&(e.refCount--,0===e.refCount)){var n=t._queryCacheExpirationTime;if(null!=e.fetchTime&&null!=n&&e.fetchTime<=Date.now()-n)t._roots.delete(r),t.scheduleGC();else if(t._releaseBuffer.push(r),t._releaseBuffer.length>t._gcReleaseBufferSize){var i=t._releaseBuffer.shift();t._roots.delete(i),t.scheduleGC()}}}}}},t.lookup=function(e){var t=this.getSource(),r=v.read(t,e,this._resolverCache);return u(r),r},t.notify=function(e,t){var r=this,a=this.__log;null!=a&&a({name:"store.notify.start",sourceOperation:e}),this._currentWriteEpoch++,!0===t&&(this._globalInvalidationEpoch=this._currentWriteEpoch),this._resolverCache.invalidateDataIDs(this._updatedRecordIDs);var n=this.getSource(),i=[];if(this._storeSubscriptions.updateSubscriptions(n,this._updatedRecordIDs,i,e),this._invalidationSubscriptions.forEach((function(e){r._updateInvalidationSubscription(e,!0===t)})),null!=a&&a({name:"store.notify.complete",sourceOperation:e,updatedRecordIDs:this._updatedRecordIDs,invalidatedRecordIDs:this._invalidatedRecordIDs}),this._updatedRecordIDs.clear(),this._invalidatedRecordIDs.clear(),null!=e){var s=e.request.identifier,o=this._roots.get(s);if(null!=o)o.epoch=this._currentWriteEpoch,o.fetchTime=Date.now();else if("query"===e.request.node.params.operationKind&&this._gcReleaseBufferSize>0&&this._releaseBuffer.length<this._gcReleaseBufferSize){var l={operation:e,refCount:0,epoch:this._currentWriteEpoch,fetchTime:Date.now()};this._releaseBuffer.push(s),this._roots.set(s,l)}}return i},t.publish=function(e,t){var r=this._getMutableRecordSource();!function(e,t,r,a,n,i){a&&a.forEach((function(a){var n,s=e.get(a),o=t.get(a);null!==o&&((n=null!=s?h.clone(s):null!=o?h.clone(o):null)&&(h.setValue(n,R.INVALIDATED_AT_KEY,r),i.add(a),e.set(a,n)))}));for(var s=t.getRecordIDs(),o=0;o<s.length;o++){var l=s[o],u=t.get(l),c=e.get(l);if(u&&h.freeze(u),u&&c){var d=h.getType(c)===p.REACT_FLIGHT_TYPE_NAME?u:h.update(c,u);d!==c&&(h.freeze(d),n.add(l),e.set(l,d))}else null===u?(e.delete(l),null!==c&&n.add(l)):u&&(e.set(l,u),n.add(l))}}(r,e,this._currentWriteEpoch+1,t,this._updatedRecordIDs,this._invalidatedRecordIDs);var a=this.__log;null!=a&&a({name:"store.publish",source:e,optimistic:r===this._optimisticSource})},t.subscribe=function(e,t){return this._storeSubscriptions.subscribe(e,t)},t.holdGC=function(){var e=this;this._gcRun&&(this._gcRun=null,this._shouldScheduleGC=!0),this._gcHoldCounter++;return{dispose:function(){e._gcHoldCounter>0&&(e._gcHoldCounter--,0===e._gcHoldCounter&&e._shouldScheduleGC&&(e.scheduleGC(),e._shouldScheduleGC=!1))}}},t.toJSON=function(){return"LiveResolverStore()"},t.getEpoch=function(){return this._currentWriteEpoch},t.__getUpdatedRecordIDs=function(){return this._updatedRecordIDs},t.lookupInvalidationState=function(e){var t=this,r=new Map;return e.forEach((function(e){var a,n=t.getSource().get(e);r.set(e,null!==(a=h.getInvalidationEpoch(n))&&void 0!==a?a:null)})),r.set("global",this._globalInvalidationEpoch),{dataIDs:e,invalidations:r}},t.checkInvalidationState=function(e){var t=this.lookupInvalidationState(e.dataIDs).invalidations,r=e.invalidations;if(t.get("global")!==r.get("global"))return!0;var a,i=(0,n.default)(e.dataIDs);try{for(i.s();!(a=i.n()).done;){var s=a.value;if(t.get(s)!==r.get(s))return!0}}catch(e){i.e(e)}finally{i.f()}return!1},t.subscribeToInvalidationState=function(e,t){var r=this,a={callback:t,invalidationState:e};return this._invalidationSubscriptions.add(a),{dispose:function(){r._invalidationSubscriptions.delete(a)}}},t._updateInvalidationSubscription=function(e,t){var r=this,a=e.callback,n=e.invalidationState.dataIDs;(t||n.some((function(e){return r._invalidatedRecordIDs.has(e)})))&&a()},t.snapshot=function(){null!=this._optimisticSource&&T(!1,"LiveResolverStore: Unexpected call to snapshot() while a previous snapshot exists.");var e=this.__log;null!=e&&e({name:"store.snapshot"}),this._storeSubscriptions.snapshotSubscriptions(this.getSource()),this._gcRun&&(this._gcRun=null,this._shouldScheduleGC=!0),this._optimisticSource=f.create(this.getSource())},t.restore=function(){var e=this._optimisticSource;e||T(!1,"LiveResolverStore: Unexpected call to restore(), expected a snapshot to exist (make sure to call snapshot()).");var t=this.__log;null!=t&&t({name:"store.restore"});var r=f.getOptimisticRecordIDs(e);this._resolverCache.unsubscribeFromLiveResolverRecords(r),this._optimisticSource=null,this._shouldScheduleGC&&this.scheduleGC(),this._storeSubscriptions.restoreSubscriptions(),this._resolverCache.invalidateResolverRecords(r)},t.scheduleGC=function(){this._gcHoldCounter>0?this._shouldScheduleGC=!0:this._gcRun||(this._gcRun=this._collect(),this._gcScheduler(this._gcStep))},t.__gc=function(){if(null==this._optimisticSource)for(var e=this._collect();!e.next().done;);},t._collect=function*(){e:for(;;){var e,t=this._currentWriteEpoch,r=new Set,a=(0,n.default)(this._roots.values());try{for(a.s();!(e=a.n()).done;){var i=e.value.operation.root;if(g.mark(this._recordSource,i,r,this._operationLoader,this._shouldProcessClientComponents),yield,t!==this._currentWriteEpoch)continue e}}catch(e){a.e(e)}finally{a.f()}var s=this.__log;if(null!=s&&s({name:"store.gc",references:r}),0===r.size)this._recordSource.clear();else for(var o=this._recordSource.getRecordIDs(),l=0;l<o.length;l++){var u=o[l];r.has(u)||this._recordSource.remove(u)}return}},t.__getNormalizationOptions=function(e){return{path:e,getDataID:this._getDataID,treatMissingFieldsAsNull:this._treatMissingFieldsAsNull,reactFlightPayloadDeserializer:this._reactFlightPayloadDeserializer,reactFlightServerErrorHandler:this._reactFlightServerErrorHandler,shouldProcessClientComponents:this._shouldProcessClientComponents,actorIdentifier:this._actorIdentifier}},t.__notifyUpdatedSubscribers=function(e){var t=D(e),r=this._updatedRecordIDs;this._updatedRecordIDs=t,this.notify(),this._updatedRecordIDs=r},e}();e.exports=L},function(e,t,r){"use strict";var a=Promise.resolve();function n(e){setTimeout((function(){throw e}),0)}e.exports=function(e){a.then(e).catch(n)}},function(e,t,r){"use strict";var a=(0,r(2).default)(r(5)),n=r(35),i=r(40),s=r(24),o=r(3),l=r(7),u=r(6).isClientID,c=r(25),d=r(44),_=r(10).getLocalVariables,h=r(4),f=r(13),v=f.EXISTENT,g=f.UNKNOWN,p=r(11),E=r(1),R=r(15),m=R.generateTypeID,y=R.TYPE_SCHEMA_TYPE,I=r(0),b=o.ACTOR_CHANGE,S=o.CONDITION,D=o.CLIENT_COMPONENT,T=o.CLIENT_EXTENSION,L=o.DEFER,A=o.FLIGHT_FIELD,N=o.FRAGMENT_SPREAD,k=o.INLINE_FRAGMENT,O=o.LINKED_FIELD,F=o.LINKED_HANDLE,C=o.MODULE_IMPORT,M=o.RELAY_RESOLVER,P=o.SCALAR_FIELD,x=o.SCALAR_HANDLE,V=o.STREAM,w=o.TYPE_DISCRIMINATOR,U=E.ROOT_ID,j=E.getModuleOperationKey,G=E.getStorageKey,Y=E.getArgumentValues;var K=function(){function e(e,t,r,a,n,i,s,o){this._getSourceForActor=e,this._getTargetForActor=t,this._getDataID=s,this._source=e(r),this._mutatorRecordSourceProxyCache=new Map;var l=this._getMutatorAndRecordProxyForActor(r),u=l[0],c=l[1];this._mostRecentlyInvalidatedAt=null,this._handlers=n,this._mutator=u,this._operationLoader=null!=i?i:null,this._recordSourceProxy=c,this._recordWasMissing=!1,this._variables=a,this._shouldProcessClientComponents=o}var t=e.prototype;return t._getMutatorAndRecordProxyForActor=function(e){var t=this._mutatorRecordSourceProxyCache.get(e);if(null==t){var r=this._getTargetForActor(e),a=new n(this._getSourceForActor(e),r);t=[a,new i(a,this._getDataID,void 0,this._handlers)],this._mutatorRecordSourceProxyCache.set(e,t)}return t},t.check=function(e,t){return this._assignClientAbstractTypes(e),this._traverse(e,t),!0===this._recordWasMissing?{status:"missing",mostRecentlyInvalidatedAt:this._mostRecentlyInvalidatedAt}:{status:"available",mostRecentlyInvalidatedAt:this._mostRecentlyInvalidatedAt}},t._getVariableValue=function(e){return this._variables.hasOwnProperty(e)||I(!1,"RelayAsyncLoader(): Undefined variable `%s`.",e),this._variables[e]},t._handleMissing=function(){this._recordWasMissing=!0},t._handleMissingScalarField=function(e,t){if("id"!==e.name||null!=e.alias||!u(t)){var r,n=null!=e.args?Y(e.args,this._variables):{},i=(0,a.default)(this._handlers);try{for(i.s();!(r=i.n()).done;){var s=r.value;if("scalar"===s.kind){var o=s.handle(e,this._recordSourceProxy.get(t),n,this._recordSourceProxy);if(void 0!==o)return o}}}catch(e){i.e(e)}finally{i.f()}this._handleMissing()}},t._handleMissingLinkField=function(e,t){var r,n=null!=e.args?Y(e.args,this._variables):{},i=(0,a.default)(this._handlers);try{for(i.s();!(r=i.n()).done;){var s=r.value;if("linked"===s.kind){var o=s.handle(e,this._recordSourceProxy.get(t),n,this._recordSourceProxy);if(void 0!==o&&(null===o||this._mutator.getStatus(o)===v))return o}}}catch(e){i.e(e)}finally{i.f()}this._handleMissing()},t._handleMissingPluralLinkField=function(e,t){var r,n=this,i=null!=e.args?Y(e.args,this._variables):{},s=(0,a.default)(this._handlers);try{for(s.s();!(r=s.n()).done;){var o=r.value;if("pluralLinked"===o.kind){var l=o.handle(e,this._recordSourceProxy.get(t),i,this._recordSourceProxy);if(null!=l){if(l.every((function(e){return null!=e&&n._mutator.getStatus(e)===v})))return l}else if(null===l)return null}}}catch(e){s.e(e)}finally{s.f()}this._handleMissing()},t._traverse=function(e,t){var r=this._mutator.getStatus(t);if(r===g&&this._handleMissing(),r===v){var a=this._source.get(t),n=h.getInvalidationEpoch(a);null!=n&&(this._mostRecentlyInvalidatedAt=null!=this._mostRecentlyInvalidatedAt?Math.max(this._mostRecentlyInvalidatedAt,n):n),this._traverseSelections(e.selections,t)}},t._traverseSelections=function(e,t){var r=this;e.forEach((function(a){switch(a.kind){case P:r._checkScalar(a,t);break;case O:a.plural?r._checkPluralLink(a,t):r._checkLink(a,t);break;case b:r._checkActorChange(a.linkedField,t);break;case S:Boolean(r._getVariableValue(a.condition))===a.passingValue&&r._traverseSelections(a.selections,t);break;case k:var n=a.abstractKey;if(null==n){r._mutator.getType(t)===a.type&&r._traverseSelections(a.selections,t)}else{var i=r._mutator.getType(t);null==i&&I(!1,"DataChecker: Expected record `%s` to have a known type",t);var s=m(i),o=r._mutator.getValue(s,n);!0===o?r._traverseSelections(a.selections,t):null==o&&r._handleMissing()}break;case F:var u=c(a,e,r._variables);u.plural?r._checkPluralLink(u,t):r._checkLink(u,t);break;case x:var h=d(a,e,r._variables);r._checkScalar(h,t);break;case C:r._checkModuleImport(a,t);break;case L:case V:r._traverseSelections(a.selections,t);break;case N:var f=r._variables;r._variables=_(r._variables,a.fragment.argumentDefinitions,a.args),r._traverseSelections(a.fragment.selections,t),r._variables=f;break;case T:var v=r._recordWasMissing;r._traverseSelections(a.selections,t),r._recordWasMissing=v;break;case w:var g=a.abstractKey,p=r._mutator.getType(t);null==p&&I(!1,"DataChecker: Expected record `%s` to have a known type",t);var E=m(p);null==r._mutator.getValue(E,g)&&r._handleMissing();break;case A:if(!l.ENABLE_REACT_FLIGHT_COMPONENT_FIELD)throw new Error("Flight fields are not yet supported.");r._checkFlightField(a,t);break;case D:if(!1===r._shouldProcessClientComponents)break;r._traverseSelections(a.fragment.selections,t);break;case M:a.fragment&&r._traverseSelections([a.fragment],t);break;default:I(!1,"RelayAsyncLoader(): Unexpected ast kind `%s`.",a.kind)}}))},t._checkModuleImport=function(e,t){var r=this._operationLoader;null===r&&I(!1,"DataChecker: Expected an operationLoader to be configured when using `@module`.");var a=j(e.documentName),n=this._mutator.getValue(t,a);if(null!=n){var i=r.get(n);if(null!=i){var o=s(i),l=this._variables;this._variables=_(this._variables,o.argumentDefinitions,e.args),this._traverse(o,t),this._variables=l}else this._handleMissing()}else void 0===n&&this._handleMissing()},t._checkScalar=function(e,t){var r=G(e,this._variables),a=this._mutator.getValue(t,r);void 0===a&&void 0!==(a=this._handleMissingScalarField(e,t))&&this._mutator.setValue(t,r,a)},t._checkLink=function(e,t){var r=G(e,this._variables),a=this._mutator.getLinkedRecordID(t,r);void 0===a&&(null!=(a=this._handleMissingLinkField(e,t))?this._mutator.setLinkedRecordID(t,r,a):null===a&&this._mutator.setValue(t,r,null)),null!=a&&this._traverse(e,a)},t._checkPluralLink=function(e,t){var r=this,a=G(e,this._variables),n=this._mutator.getLinkedRecordIDs(t,a);void 0===n&&(null!=(n=this._handleMissingPluralLinkField(e,t))?this._mutator.setLinkedRecordIDs(t,a,n):null===n&&this._mutator.setValue(t,a,null)),n&&n.forEach((function(t){null!=t&&r._traverse(e,t)}))},t._checkActorChange=function(e,t){var r=G(e,this._variables),a=this._source.get(t),n=null!=a?h.getActorLinkedRecordID(a,r):a;if(null==n)void 0===n&&this._handleMissing();else{var i=n[0],s=n[1],o=this._source,l=this._mutator,u=this._recordSourceProxy,c=this._getMutatorAndRecordProxyForActor(i),d=c[0],_=c[1];this._source=this._getSourceForActor(i),this._mutator=d,this._recordSourceProxy=_,this._assignClientAbstractTypes(e),this._traverse(e,s),this._source=o,this._mutator=l,this._recordSourceProxy=u}},t._checkFlightField=function(e,t){var r=G(e,this._variables),n=this._mutator.getLinkedRecordID(t,r);if(null==n)return void 0===n?void this._handleMissing():void 0;var i=this._mutator.getValue(n,p.REACT_FLIGHT_TREE_STORAGE_KEY),o=this._mutator.getValue(n,p.REACT_FLIGHT_EXECUTABLE_DEFINITIONS_STORAGE_KEY);if(null!=i&&Array.isArray(o)){var l=this._operationLoader;null===l&&I(!1,"DataChecker: Expected an operationLoader to be configured when using React Flight.");var u,c=this._variables,d=(0,a.default)(o);try{for(d.s();!(u=d.n()).done;){var _=u.value;this._variables=_.variables;var h=l.get(_.module);if(null!=h){var f=s(h);this._traverseSelections(f.selections,U)}else this._handleMissing()}}catch(e){d.e(e)}finally{d.f()}this._variables=c}else this._handleMissing()},t._assignClientAbstractTypes=function(e){var t=e.clientAbstractTypes;if(null!=t)for(var r=0,n=Object.keys(t);r<n.length;r++){var i,s=n[r],o=(0,a.default)(t[s]);try{for(o.s();!(i=o.n()).done;){var l=i.value,u=m(l);null==this._source.get(u)&&this._mutator.create(u,y),null==this._mutator.getValue(u,s)&&this._mutator.setValue(u,s,!0)}}catch(e){o.e(e)}finally{o.f()}}},e}();e.exports={check:function(e,t,r,a,n,i,s,o){var l=a.dataID,u=a.node,c=a.variables;return new K(e,t,r,c,n,i,s,o).check(u,l)}}},function(e,t,r){"use strict";var a=r(4),n=r(13).EXISTENT,i=r(0),s=function(){function e(e,t){this.__sources=[t,e],this._base=e,this._sink=t}var t=e.prototype;return t.unstable_getRawRecordWithChanges=function(e){var t=this._base.get(e),r=this._sink.get(e);if(void 0===r){if(null==t)return t;var n=a.clone(t);return a.freeze(n),n}if(null===r)return null;if(null!=t){var i=a.update(t,r);return i!==t&&a.freeze(i),i}var s=a.clone(r);return a.freeze(s),s},t._getSinkRecord=function(e){var t=this._sink.get(e);if(!t){var r=this._base.get(e);r||i(!1,"RelayRecordSourceMutator: Cannot modify non-existent record `%s`.",e),t=a.create(e,a.getType(r)),this._sink.set(e,t)}return t},t.copyFields=function(e,t){var r=this._sink.get(e),n=this._base.get(e);r||n||i(!1,"RelayRecordSourceMutator#copyFields(): Cannot copy fields from non-existent record `%s`.",e);var s=this._getSinkRecord(t);n&&a.copyFields(n,s),r&&a.copyFields(r,s)},t.copyFieldsFromRecord=function(e,t){var r=this._getSinkRecord(t);a.copyFields(e,r)},t.create=function(e,t){(this._base.getStatus(e)===n||this._sink.getStatus(e)===n)&&i(!1,"RelayRecordSourceMutator#create(): Cannot create a record with id `%s`, this record already exists.",e);var r=a.create(e,t);this._sink.set(e,r)},t.delete=function(e){this._sink.delete(e)},t.getStatus=function(e){return this._sink.has(e)?this._sink.getStatus(e):this._base.getStatus(e)},t.getType=function(e){for(var t=0;t<this.__sources.length;t++){var r=this.__sources[t].get(e);if(r)return a.getType(r);if(null===r)return null}},t.getValue=function(e,t){for(var r=0;r<this.__sources.length;r++){var n=this.__sources[r].get(e);if(n){var i=a.getValue(n,t);if(void 0!==i)return i}else if(null===n)return null}},t.setValue=function(e,t,r){var n=this._getSinkRecord(e);a.setValue(n,t,r)},t.getLinkedRecordID=function(e,t){for(var r=0;r<this.__sources.length;r++){var n=this.__sources[r].get(e);if(n){var i=a.getLinkedRecordID(n,t);if(void 0!==i)return i}else if(null===n)return null}},t.setLinkedRecordID=function(e,t,r){var n=this._getSinkRecord(e);a.setLinkedRecordID(n,t,r)},t.getLinkedRecordIDs=function(e,t){for(var r=0;r<this.__sources.length;r++){var n=this.__sources[r].get(e);if(n){var i=a.getLinkedRecordIDs(n,t);if(void 0!==i)return i}else if(null===n)return null}},t.setLinkedRecordIDs=function(e,t,r){var n=this._getSinkRecord(e);a.setLinkedRecordIDs(n,t,r)},e}();e.exports=s},function(e,t,r){"use strict";var a=new Map,n=1,i=function(){for(var e=new Set,t=0;t<10;++t)e.add(t.toString());return e}();e.exports={intern:function(e,t){if(null==t||e.length<t)return function(e){return"\t"===e[0]&&i.has(e[1])||"\v"===e[0]?"\v"+e:e}(e);var r=a.get(e);return null!=r||(r="\t"+n++,a.set(e,r)),r}}},function(e,t,r){"use strict";var a=r(38).DEFAULT_HANDLE_KEY,n=r(0);e.exports=function(e,t,r){return t&&t!==a?"__".concat(t,"_").concat(e):(null==r&&n(!1,"getRelayHandleKey: Expected either `fieldName` or `key` in `handle` to be provided"),"__".concat(r,"_").concat(e))}},function(e,t,r){"use strict";e.exports={DEFAULT_HANDLE_KEY:""}},function(e,t,r){"use strict";e.exports=function e(t){if(!t||"object"!=typeof t)return t;if(Array.isArray(t))return t.map(e);for(var r=Object.keys(t).sort(),a={},n=0;n<r.length;n++)a[r[n]]=e(t[r[n]]);return a}},function(e,t,r){"use strict";var a=r(4),n=r(13),i=n.EXISTENT,s=n.NONEXISTENT,o=r(1),l=o.ROOT_ID,u=o.ROOT_TYPE,c=r(41).readUpdatableFragment_EXPERIMENTAL,d=r(42).readUpdatableQuery_EXPERIMENTAL,_=r(43),h=r(0),f=function(){function e(e,t,r,a){this.__mutator=e,this._handlerProvider=r||null,this._proxies={},this._getDataID=t,this._invalidatedStore=!1,this._idsMarkedForInvalidation=new Set,this._missingFieldHandlers=a}var t=e.prototype;return t.publishSource=function(e,t){var r=this;e.getRecordIDs().forEach((function(t){var n=e.getStatus(t);if(n===i){var o=e.get(t);o&&(r.__mutator.getStatus(t)!==i&&r.create(t,a.getType(o)),r.__mutator.copyFieldsFromRecord(o,t))}else n===s&&r.delete(t)})),t&&t.length&&t.forEach((function(e){var t=r._handlerProvider&&r._handlerProvider(e.handle);t||h(!1,"RelayModernEnvironment: Expected a handler to be provided for handle `%s`.",e.handle),t.update(r,e)}))},t.create=function(e,t){this.__mutator.create(e,t),delete this._proxies[e];var r=this.get(e);return r||h(!1,"RelayRecordSourceProxy#create(): Expected the created record to exist."),r},t.delete=function(e){e===l&&h(!1,"RelayRecordSourceProxy#delete(): Cannot delete the root record."),delete this._proxies[e],this.__mutator.delete(e)},t.get=function(e){if(!this._proxies.hasOwnProperty(e)){var t=this.__mutator.getStatus(e);this._proxies[e]=t===i?new _(this,this.__mutator,e):t===s?null:void 0}return this._proxies[e]},t.getRoot=function(){var e=this.get(l);return e||(e=this.create(l,u)),e&&e.getType()===u||h(!1,"RelayRecordSourceProxy#getRoot(): Expected the source to contain a root record, %s.",null==e?"no root record found":"found a root record of type `".concat(e.getType(),"`")),e},t.invalidateStore=function(){this._invalidatedStore=!0},t.isStoreMarkedForInvalidation=function(){return this._invalidatedStore},t.markIDForInvalidation=function(e){this._idsMarkedForInvalidation.add(e)},t.getIDsMarkedForInvalidation=function(){return this._idsMarkedForInvalidation},t.readUpdatableQuery_EXPERIMENTAL=function(e,t){return d(e,t,this,this._missingFieldHandlers)},t.readUpdatableFragment_EXPERIMENTAL=function(e,t){return c(e,t,this,this._missingFieldHandlers)},e}();e.exports=f},function(e,t,r){"use strict";var a=r(19).getFragment,n=r(14).getVariablesFromFragment,i=r(1).ID_KEY,s=r(23).createUpdatableProxy,o=r(0);e.exports={readUpdatableFragment_EXPERIMENTAL:function(e,t,r,l){var u=a(e),c=n(u,t),d=t[i],_=r.get(d);return null==_&&o(!1,"No record with ".concat(d," was found. This likely indicates a problem with Relay.")),{updatableData:s(_,c,u.selections,r,l)}}}},function(e,t,r){"use strict";var a=r(19).getUpdatableQuery,n=r(23).createUpdatableProxy;e.exports={readUpdatableQuery_EXPERIMENTAL:function(e,t,r,i){var s=a(e);return{updatableData:n(r.getRoot(),t,s.fragment.selections,r,i)}}}},function(e,t,r){"use strict";var a=r(6).generateClientID,n=r(1).getStableStorageKey,i=r(0),s=function(){function e(e,t,r){this._dataID=r,this._mutator=t,this._source=e}var t=e.prototype;return t.copyFieldsFrom=function(e){this._mutator.copyFields(e.getDataID(),this._dataID)},t.getDataID=function(){return this._dataID},t.getType=function(){var e=this._mutator.getType(this._dataID);return null==e&&i(!1,"RelayRecordProxy: Cannot get the type of deleted record `%s`.",this._dataID),e},t.getValue=function(e,t){var r=n(e,t);return this._mutator.getValue(this._dataID,r)},t.setValue=function(e,t,r){return o(e)||i(!1,"RelayRecordProxy#setValue(): Expected a scalar or array of scalars, got `%s`.",JSON.stringify(e)),this.setValue__UNSAFE(e,t,r)},t.setValue__UNSAFE=function(e,t,r){var a=n(t,r);return this._mutator.setValue(this._dataID,a,e),this},t.getLinkedRecord=function(e,t){var r=n(e,t),a=this._mutator.getLinkedRecordID(this._dataID,r);return null!=a?this._source.get(a):a},t.setLinkedRecord=function(t,r,a){t instanceof e||i(!1,"RelayRecordProxy#setLinkedRecord(): Expected a record, got `%s`.",t);var s=n(r,a),o=t.getDataID();return this._mutator.setLinkedRecordID(this._dataID,s,o),this},t.getOrCreateLinkedRecord=function(e,t,r){var i=this.getLinkedRecord(e,r);if(!i){var s,o=n(e,r),l=a(this.getDataID(),o);i=null!==(s=this._source.get(l))&&void 0!==s?s:this._source.create(l,t),this.setLinkedRecord(i,e,r)}return i},t.getLinkedRecords=function(e,t){var r=this,a=n(e,t),i=this._mutator.getLinkedRecordIDs(this._dataID,a);return null==i?i:i.map((function(e){return null!=e?r._source.get(e):e}))},t.setLinkedRecords=function(e,t,r){Array.isArray(e)||i(!1,"RelayRecordProxy#setLinkedRecords(): Expected records to be an array, got `%s`.",e);var a=n(t,r),s=e.map((function(e){return e&&e.getDataID()}));return this._mutator.setLinkedRecordIDs(this._dataID,a,s),this},t.invalidateRecord=function(){this._source.markIDForInvalidation(this._dataID)},e}();function o(e){return null==e||"object"!=typeof e||Array.isArray(e)&&e.every(o)}e.exports=s},function(e,t,r){"use strict";var a=r(3).SCALAR_FIELD,n=r(1).getHandleStorageKey,i=r(9),s=r(0);e.exports=function(e,t,r){var o=t.find((function(t){return t.kind===a&&t.name===e.name&&t.alias===e.alias&&i(t.args,e.args)}));o&&o.kind===a||s(!1,"cloneRelayScalarHandleSourceField: Expected a corresponding source field for handle `%s`.",e.handle);var l=n(e,r);return{kind:"ScalarField",alias:o.alias,name:l,storageKey:l,args:null}}},function(e,t,r){"use strict";var a=r(46),n=a.VIEWER_ID,i=a.VIEWER_TYPE;e.exports=function(e,t){return t===i&&null==e.id?n:e.id}},function(e,t,r){"use strict";var a=(0,r(6).generateClientID)(r(1).ROOT_ID,"viewer");e.exports={VIEWER_ID:a,VIEWER_TYPE:"Viewer"}},function(e,t,r){"use strict";var a=(0,r(2).default)(r(12)),n=r(26),i=r(0),s=Object.freeze({__UNPUBLISH_RECORD_SENTINEL:!0}),o=function(){function e(e){this._base=e,this._sink=n.create()}var t=e.prototype;return t.has=function(e){return this._sink.has(e)?this._sink.get(e)!==s:this._base.has(e)},t.get=function(e){if(this._sink.has(e)){var t=this._sink.get(e);return t===s?void 0:t}return this._base.get(e)},t.getStatus=function(e){var t=this.get(e);return void 0===t?"UNKNOWN":null===t?"NONEXISTENT":"EXISTENT"},t.clear=function(){this._base=n.create(),this._sink.clear()},t.delete=function(e){this._sink.delete(e)},t.remove=function(e){this._sink.set(e,s)},t.set=function(e,t){this._sink.set(e,t)},t.getRecordIDs=function(){return Object.keys(this.toJSON())},t.size=function(){return Object.keys(this.toJSON()).length},t.toJSON=function(){var e=this,t=(0,a.default)({},this._base.toJSON());return this._sink.getRecordIDs().forEach((function(r){var a=e.get(r);void 0===a?delete t[r]:t[r]=a})),t},t.getOptimisticRecordIDs=function(){return new Set(this._sink.getRecordIDs())},e}();e.exports={create:function(e){return new o(e)},getOptimisticRecordIDs:function(e){return e instanceof o||i(!1,"getOptimisticRecordIDs: Instance of RelayOptimisticRecordSource is expected"),e.getOptimisticRecordIDs()}}},function(e,t,r){"use strict";var a=(0,r(2).default)(r(5)),n=r(21),i=r(3).RELAY_LIVE_RESOLVER,s=r(6).generateClientID,o=r(4),l=r(1),u=l.RELAY_RESOLVER_ERROR_KEY,c=l.RELAY_RESOLVER_INVALIDATION_KEY,d=l.RELAY_RESOLVER_SNAPSHOT_KEY,_=l.RELAY_RESOLVER_VALUE_KEY,h=l.getStorageKey,f=r(0),v=r(8),g=new Set,p=function(){function e(){}var t=e.prototype;return t.readFromCacheOrEvaluate=function(e,t,r,a,n){t.kind===i&&f(!1,"This store does not support Live Resolvers");var s=a(),o=s.resolverResult,l=s.snapshot;return[o,void 0,s.error,l,void 0,void 0]},t.invalidateDataIDs=function(e){},t.ensureClientRecord=function(e,t){f(!1,"Client Edges to Client Objects are not supported in this version of Relay Store")},t.notifyUpdatedSubscribers=function(e){},e}();function E(e,t,r){var a=e.get(t);a||(a=new Set,e.set(t,a)),a.add(r)}var R=function(){function e(e){this._resolverIDToRecordIDs=new Map,this._recordIDToResolverIDs=new Map,this._getRecordSource=e}var t=e.prototype;return t.readFromCacheOrEvaluate=function(e,t,r,n,i){var l=this._getRecordSource(),c=l.get(e);null==c&&f(!1,"We expect record to exist in the store.");var v=h(t,r),g=o.getLinkedRecordID(c,v),p=null==g?null:l.get(g);if(null==p||this._isInvalid(p,i)){var R;g=null!==(R=g)&&void 0!==R?R:s(e,v),p=o.create(g,"__RELAY_RESOLVER__");var m=n();o.setValue(p,_,m.resolverResult),o.setValue(p,d,m.snapshot),o.setValue(p,u,m.error),l.set(g,p);var y=l.get(e);null==y&&f(!1,"Expected the parent record to still be in the record source.");var I=o.clone(y);if(o.setLinkedRecordID(I,v,g),l.set(e,I),null!=t.fragment){var b,S=h(t.fragment,r),D=s(e,S);E(this._resolverIDToRecordIDs,D,g),E(this._recordIDToResolverIDs,e,D);var T=null===(b=m.snapshot)||void 0===b?void 0:b.seenRecords;if(null!=T){var L,A=(0,a.default)(T);try{for(A.s();!(L=A.n()).done;){var N=L.value;E(this._recordIDToResolverIDs,N,D)}}catch(e){A.e(e)}finally{A.f()}}}}var k=p[_],O=p[d];return[k,g,p[u],O,void 0,void 0]},t.invalidateDataIDs=function(e){for(var t=this._getRecordSource(),r=new Set,n=Array.from(e);n.length;){var i=n.pop();e.add(i);var s,o=(0,a.default)(null!==(l=this._recordIDToResolverIDs.get(i))&&void 0!==l?l:g);try{for(o.s();!(s=o.n()).done;){var l,u=s.value;if(!r.has(u)){var c,d=(0,a.default)(null!==(_=this._resolverIDToRecordIDs.get(u))&&void 0!==_?_:g);try{for(d.s();!(c=d.n()).done;){var _,h=c.value;this._markInvalidatedResolverRecord(h,t,e),r.has(h)||n.push(h)}}catch(e){d.e(e)}finally{d.f()}}}}catch(e){o.e(e)}finally{o.f()}}},t._markInvalidatedResolverRecord=function(e,t,r){var a=t.get(e);if(a){var n=o.clone(a);o.setValue(n,c,!0),t.set(e,n)}else v(!1,"Expected a resolver record with ID %s, but it was missing.",e)},t._isInvalid=function(e,t){if(!o.getValue(e,c))return!1;var r=o.getValue(e,d),a=null==r?void 0:r.data,i=null==r?void 0:r.selector;if(null==a||null==i)return v(!1,"Expected previous inputs and reader selector on resolver record with ID %s, but they were missing.",o.getDataID(e)),!0;var s=t(i).data;return n(a,s)!==a},t.ensureClientRecord=function(e,t){f(!1,"Client Edges to Client Objects are not supported in this version of Relay Store")},t.notifyUpdatedSubscribers=function(e){f(!1,"Processing @outputType records is not supported in this version of Relay Store")},e}();e.exports={NoopResolverCache:p,RecordResolverCache:R}},function(e,t,r){"use strict";var a=(0,r(2).default)(r(5)),n=r(24),i=r(3),s=r(7),o=r(25),l=r(10).getLocalVariables,u=r(4),c=r(11),d=r(1),_=r(15).generateTypeID,h=r(0),f=r(29),v=i.ACTOR_CHANGE,g=i.CONDITION,p=i.CLIENT_COMPONENT,E=i.CLIENT_EXTENSION,R=i.DEFER,m=i.FLIGHT_FIELD,y=i.FRAGMENT_SPREAD,I=i.INLINE_FRAGMENT,b=i.LINKED_FIELD,S=i.MODULE_IMPORT,D=i.LINKED_HANDLE,T=i.SCALAR_FIELD,L=i.SCALAR_HANDLE,A=i.STREAM,N=i.TYPE_DISCRIMINATOR,k=i.RELAY_RESOLVER,O=d.ROOT_ID,F=d.getStorageKey,C=d.getModuleOperationKey;var M=function(){function e(e,t,r,a,n){this._operationLoader=null!=a?a:null,this._operationName=null,this._recordSource=e,this._references=r,this._variables=t,this._shouldProcessClientComponents=n}var t=e.prototype;return t.mark=function(e,t){"Operation"!==e.kind&&"SplitOperation"!==e.kind||(this._operationName=e.name),this._traverse(e,t)},t._traverse=function(e,t){this._references.add(t);var r=this._recordSource.get(t);null!=r&&this._traverseSelections(e.selections,r)},t._getVariableValue=function(e){return this._variables.hasOwnProperty(e)||h(!1,"RelayReferenceMarker(): Undefined variable `%s`.",e),this._variables[e]},t._traverseSelections=function(e,t){var r=this;e.forEach((function(a){switch(a.kind){case v:r._traverseLink(a.linkedField,t);break;case b:a.plural?r._traversePluralLink(a,t):r._traverseLink(a,t);break;case g:Boolean(r._getVariableValue(a.condition))===a.passingValue&&r._traverseSelections(a.selections,t);break;case I:if(null==a.abstractKey){var n=u.getType(t);(null!=n&&n===a.type||n===d.ROOT_TYPE)&&r._traverseSelections(a.selections,t)}else{var i=u.getType(t),c=_(i);r._references.add(c),r._traverseSelections(a.selections,t)}break;case y:var f=r._variables;r._variables=l(r._variables,a.fragment.argumentDefinitions,a.args),r._traverseSelections(a.fragment.selections,t),r._variables=f;break;case D:var O=o(a,e,r._variables);O.plural?r._traversePluralLink(O,t):r._traverseLink(O,t);break;case R:case A:r._traverseSelections(a.selections,t);break;case T:case L:break;case N:var F=u.getType(t),C=_(F);r._references.add(C);break;case S:r._traverseModuleImport(a,t);break;case E:r._traverseSelections(a.selections,t);break;case m:if(!s.ENABLE_REACT_FLIGHT_COMPONENT_FIELD)throw new Error("Flight fields are not yet supported.");r._traverseFlightField(a,t);break;case p:if(!1===r._shouldProcessClientComponents)break;r._traverseSelections(a.fragment.selections,t);break;case k:r._traverseResolverField(a,t);break;default:h(!1,"RelayReferenceMarker: Unknown AST node `%s`.",a)}}))},t._traverseResolverField=function(e,t){var r=F(e,this._variables),n=u.getLinkedRecordID(t,r);if(null!=n){this._references.add(n);var i=this._recordSource.get(n);if(null!=i){var s=f(i);if(null!=s){var o,l=(0,a.default)(s);try{for(l.s();!(o=l.n()).done;){var c=o.value;this._references.add(c)}}catch(e){l.e(e)}finally{l.f()}}}}var d=e.fragment;null!=d&&this._traverseSelections([d],t)},t._traverseModuleImport=function(e,t){var r,a=this._operationLoader;null===a&&h(!1,"RelayReferenceMarker: Expected an operationLoader to be configured when using `@module`. Could not load fragment `%s` in operation `%s`.",e.fragmentName,null!==(r=this._operationName)&&void 0!==r?r:"(unknown)");var i=C(e.documentName),s=u.getValue(t,i);if(null!=s){var o=a.get(s);if(null!=o){var c=n(o),d=this._variables;this._variables=l(this._variables,c.argumentDefinitions,e.args),this._traverseSelections(c.selections,t),this._variables=d}}},t._traverseLink=function(e,t){var r=F(e,this._variables),a=u.getLinkedRecordID(t,r);null!=a&&this._traverse(e,a)},t._traversePluralLink=function(e,t){var r=this,a=F(e,this._variables),n=u.getLinkedRecordIDs(t,a);null!=n&&n.forEach((function(t){null!=t&&r._traverse(e,t)}))},t._traverseFlightField=function(e,t){var r=F(e,this._variables),i=u.getLinkedRecordID(t,r);if(null!=i){this._references.add(i);var s=this._recordSource.get(i);if(null!=s){var o=u.getValue(s,c.REACT_FLIGHT_EXECUTABLE_DEFINITIONS_STORAGE_KEY);if(Array.isArray(o)){var l=this._operationLoader;null===l&&h(!1,"DataChecker: Expected an operationLoader to be configured when using React Flight");var d,_=this._variables,f=(0,a.default)(o);try{for(f.s();!(d=f.n()).done;){var v=d.value;this._variables=v.variables;var g=v.module,p=l.get(g);if(null!=p){var E=n(p);this._traverse(E,O)}}}catch(e){f.e(e)}finally{f.f()}this._variables=_}}}},e}();e.exports={mark:function(e,t,r,a,n){var i=t.dataID,s=t.node,o=t.variables;new M(e,o,r,a,n).mark(s,i)}}},function(e,t,r){"use strict";var a=r(17),n=r(21),i=r(7),s=r(51),o=r(27),l=function(){function e(e,t){this._subscriptions=new Set,this.__log=e,this._resolverCache=t}var t=e.prototype;return t.subscribe=function(e,t){var r=this,a={backup:null,callback:t,snapshot:e,stale:!1};return this._subscriptions.add(a),{dispose:function(){r._subscriptions.delete(a)}}},t.snapshotSubscriptions=function(e){var t=this;this._subscriptions.forEach((function(r){if(r.stale){var a=r.snapshot,i=o.read(e,a.selector,t._resolverCache),s=n(a.data,i.data);i.data=s,r.backup=i}else r.backup=r.snapshot}))},t.restoreSubscriptions=function(){this._subscriptions.forEach((function(e){var t=e.backup;e.backup=null,t?(t.data!==e.snapshot.data&&(e.stale=!0),e.snapshot={data:e.snapshot.data,isMissingData:t.isMissingData,missingClientEdges:t.missingClientEdges,missingLiveResolverFields:t.missingLiveResolverFields,seenRecords:t.seenRecords,selector:t.selector,missingRequiredFields:t.missingRequiredFields,relayResolverErrors:t.relayResolverErrors}):e.stale=!0}))},t.updateSubscriptions=function(e,t,r,a){var n=this,i=0!==t.size;this._subscriptions.forEach((function(s){var o=n._updateSubscription(e,s,t,i,a);null!=o&&r.push(o)}))},t._updateSubscription=function(e,t,r,l,u){var c=t.backup,d=t.callback,_=t.snapshot,h=t.stale,f=l&&s(_.seenRecords,r);if(h||f){var v=f||!c?o.read(e,_.selector,this._resolverCache):c;return v={data:n(_.data,v.data),isMissingData:v.isMissingData,missingClientEdges:v.missingClientEdges,missingLiveResolverFields:v.missingLiveResolverFields,seenRecords:v.seenRecords,selector:v.selector,missingRequiredFields:v.missingRequiredFields,relayResolverErrors:v.relayResolverErrors},a(v),t.snapshot=v,t.stale=!1,v.data!==_.data?(this.__log&&i.ENABLE_NOTIFY_SUBSCRIPTION&&this.__log({name:"store.notify.subscription",sourceOperation:u,snapshot:_,nextSnapshot:v}),d(v),_.selector.owner):void 0}},e}();e.exports=l},function(e,t,r){"use strict";var a=Symbol.iterator;e.exports=function(e,t){for(var r=e[a](),n=r.next();!n.done;){var i=n.value;if(t.has(i))return!0;n=r.next()}return!1}},function(e,t,r){"use strict";var a=(0,r(2).default)(r(5)),n=r(21),i=r(3).RELAY_LIVE_RESOLVER,s=r(6),o=s.generateClientID,l=s.generateClientObjectClientID,u=r(4),c=r(26),d=r(1),_=d.RELAY_RESOLVER_ERROR_KEY,h=d.RELAY_RESOLVER_INVALIDATION_KEY,f=d.RELAY_RESOLVER_SNAPSHOT_KEY,v=d.RELAY_RESOLVER_VALUE_KEY,g=d.RELAY_RESOLVER_OUTPUT_TYPE_RECORD_IDS,p=d.getStorageKey,E=r(20).isSuspenseSentinel,R=r(0),m=r(8),y=r(14).createNormalizationSelector,I=r(53).normalize,b=r(29),S=r(30);function D(e,t,r){var a=e.get(t);a||(a=new Set,e.set(t,a)),a.add(r)}var T=function(){function e(e,t){this._resolverIDToRecordIDs=new Map,this._recordIDToResolverIDs=new Map,this._getRecordSource=e,this._store=t,this._handlingBatch=!1,this._liveResolverBatchRecordSource=null}var t=e.prototype;return t.readFromCacheOrEvaluate=function(e,t,r,n,s){var l,c=this._getRecordSource(),d=N(c,e),h=p(t,r),v=u.getLinkedRecordID(d,h),g=null==v?null:c.get(v);if(null==g||this._isInvalid(g,s)){var m;null!=g&&this._maybeUnsubscribeFromLiveState(g),v=null!==(m=v)&&void 0!==m?m:o(e,h),g=u.create(v,"__RELAY_RESOLVER__");var y=n();if(t.kind===i)if(null!=y.resolverResult){S(y.resolverResult)||R(!1,'Expected the @live Relay Resolver backing the field "%s" to return a value that implements LiveState. Did you mean to remove the @live annotation on this resolver?',t.path);var I=y.resolverResult;l=this._setLiveStateValue(g,v,I,t,r)}else{var b;null!=y.error||(null===(b=y.snapshot)||void 0===b?void 0:b.isMissingData)||R(!1,'Expected the @live Relay Resolver backing the field "%s" to return a value that implements LiveState interface. The result for this field is `%s`, we also did not detect any errors, or missing data during resolver execution. Did you mean to remove the @live annotation on this resolver, or was there unexpected early return in the function?',t.path,String(y.resolverResult))}else S(y.resolverResult)&&R(!1,'Unexpected LiveState value returned from the non-@live Relay Resolver backing the field "%s". Did you intend to add @live to this resolver?',t.path),l=this._setResolverValue(g,y.resolverResult,t,r);u.setValue(g,f,y.snapshot),u.setValue(g,_,y.error),c.set(v,g);var T=N(c,e),L=u.clone(T);if(u.setLinkedRecordID(L,h,v),c.set(e,L),null!=t.fragment){var A,k=p(t.fragment,r),O=o(e,k);D(this._resolverIDToRecordIDs,O,v),D(this._recordIDToResolverIDs,e,O);var F=null===(A=y.snapshot)||void 0===A?void 0:A.seenRecords;if(null!=F){var C,M=(0,a.default)(F);try{for(M.s();!(C=M.n()).done;){var P=C.value;D(this._recordIDToResolverIDs,P,O)}}catch(e){M.e(e)}finally{M.f()}}}}else if(t.kind===i&&u.getValue(g,"__resolverLiveStateDirty")){var x;v=null!==(x=v)&&void 0!==x?x:o(e,h),g=u.clone(g);var V=u.getValue(g,"__resolverLiveStateValue");S(V)||R(!1,"Unexpected LiveState value returned from Relay Resolver internal field `RELAY_RESOLVER_LIVE_STATE_VALUE`. It is likely a bug in Relay, or a corrupt state of the relay store state Field Path `%s`. Record `%s`.",t.path,JSON.stringify(g)),l=this._setResolverValue(g,V.read(),t,r),u.setValue(g,"__resolverLiveStateDirty",!1),c.set(v,g)}var w,U=this._getResolverValue(g),j=g[f],G=g[_],Y=null;E(U)&&(Y=null!==(w=v)&&void 0!==w?w:o(e,h));return[U,v,G,j,Y,l]},t.getLiveResolverPromise=function(e){var t=this._getRecordSource().get(e);null==t&&R(!1,"Expected to find record for live resolver.");var r=u.getValue(t,"__resolverLiveStateValue");return new Promise((function(e){var t=r.subscribe((function(){t(),e()}))}))},t._maybeUnsubscribeFromLiveState=function(e){var t=u.getValue(e,"__resolverLiveStateSubscription");null!=t&&t()},t._setLiveStateValue=function(e,t,r,a,n){var i=this._makeLiveStateHandler(t),s=r.subscribe(i);u.setValue(e,"__resolverLiveStateValue",r);var o=this._setResolverValue(e,r.read(),a,n);return u.setValue(e,"__resolverLiveStateDirty",!1),u.setValue(e,"__resolverLiveStateSubscription",s),o},t._makeLiveStateHandler=function(e){var t=this;return function(){var r=t._getRecordSource().get(e);if(r)if("__resolverLiveStateValue"in r){var a=u.clone(r);u.setValue(a,"__resolverLiveStateDirty",!0),t._setLiveResolverUpdate(e,a)}else m(!1,"Unexpected callback for a incomplete live resolver record (__id: `%s`). The record has missing live state value. This is a no-op and indicates a memory leak, and possible bug in Relay Live Resolvers. Possible cause: The original record was GC-ed, or was created with the optimistic record source. Record details: `%s`.",e,JSON.stringify(r))}},t._setLiveResolverUpdate=function(e,t){if(this._handlingBatch)null==this._liveResolverBatchRecordSource&&(this._liveResolverBatchRecordSource=c.create()),this._liveResolverBatchRecordSource.set(e,t);else{var r=c.create();r.set(e,t),this._store.publish(r),this._store.notify()}},t.batchLiveStateUpdates=function(e){this._handlingBatch&&R(!1,"Unexpected nested call to batchLiveStateUpdates."),this._handlingBatch=!0;try{e()}finally{null!=this._liveResolverBatchRecordSource&&(this._store.publish(this._liveResolverBatchRecordSource),this._store.notify()),this._liveResolverBatchRecordSource=null,this._handlingBatch=!1}},t._setResolverValue=function(e,t,r,n){var i=r.normalizationInfo,s=null;if(null!=t&&null!=i){var o,d=b(e),_=new Set,h=this._getRecordSource();if(i.plural){Array.isArray(t)||R(!1,"_setResolverValue: Expected array value for plural @outputType resolver."),o=[];for(var f=c.create(),p=0;p<t.length;p++){var E=t[p];if(null!=E){"object"!=typeof E&&R(!1,"_setResolverValue: Expected object value as the payload for the @outputType resolver.");var m,y=l(i.concreteType,u.getDataID(e),p),I=L(y,E,n,i,this._store.__getNormalizationOptions([r.path,String(p)])),S=(0,a.default)(I.getRecordIDs());try{for(S.s();!(m=S.n()).done;){var D=m.value;f.set(D,N(I,D)),_.add(D)}}catch(e){S.e(e)}finally{S.f()}o.push(y)}}s=A(h,f,d)}else{"object"!=typeof t&&R(!1,"_setResolverValue: Expected object value as the payload for the @outputType resolver.");var T,k=l(i.concreteType,u.getDataID(e)),O=L(k,t,n,i,this._store.__getNormalizationOptions([r.path])),F=(0,a.default)(O.getRecordIDs());try{for(F.s();!(T=F.n()).done;){var C=T.value;_.add(C)}}catch(e){F.e(e)}finally{F.f()}o=k,s=A(h,O,d)}u.setValue(e,g,_),u.setValue(e,v,o)}else u.setValue(e,v,t);return s},t.notifyUpdatedSubscribers=function(e){this._store.__notifyUpdatedSubscribers(e)},t._getResolverValue=function(e){return u.getValue(e,v)},t.invalidateDataIDs=function(e){for(var t=this._getRecordSource(),r=new Set,n=Array.from(e);n.length;){var i=n.pop();e.add(i);var s=this._recordIDToResolverIDs.get(i);if(null!=s){var o,l=(0,a.default)(s);try{for(l.s();!(o=l.n()).done;){var u=o.value;if(!r.has(u)){var c=this._resolverIDToRecordIDs.get(u);if(null==c)continue;var d,_=(0,a.default)(c);try{for(_.s();!(d=_.n()).done;){var h=d.value;this._markInvalidatedResolverRecord(h,t),r.has(h)||n.push(h)}}catch(e){_.e(e)}finally{_.f()}}}}catch(e){l.e(e)}finally{l.f()}}}},t._markInvalidatedResolverRecord=function(e,t){var r=t.get(e);if(r){var a=u.clone(r);u.setValue(a,h,!0),t.set(e,a)}else m(!1,"Expected a resolver record with ID %s, but it was missing.",e)},t._isInvalid=function(e,t){if(!u.getValue(e,h))return!1;var r=u.getValue(e,f),a=null==r?void 0:r.data,i=null==r?void 0:r.selector;if(null==a||null==i)return m(!1,"Expected previous inputs and reader selector on resolver record with ID %s, but they were missing.",u.getDataID(e)),!0;var s=t(i).data;return n(a,s)!==a},t.ensureClientRecord=function(e,t){var r=l(t,e),a=this._getRecordSource();if(!a.has(r)){var n=u.create(r,t);u.setValue(n,"id",e),a.set(r,n)}return r},t.unsubscribeFromLiveResolverRecords=function(e){if(0!==e.size){var t,r=(0,a.default)(e);try{for(r.s();!(t=r.n()).done;){var n=t.value,i=this._getRecordSource().get(n);null!=i&&"__RELAY_RESOLVER__"===u.getType(i)&&this._maybeUnsubscribeFromLiveState(i)}}catch(e){r.e(e)}finally{r.f()}}},t.invalidateResolverRecords=function(e){if(0!==e.size){var t,r=(0,a.default)(e);try{for(r.s();!(t=r.n()).done;){var n=t.value,i=this._getRecordSource().get(n);null!=i&&"__RELAY_RESOLVER__"===u.getType(i)&&this._getRecordSource().delete(n)}}catch(e){r.e(e)}finally{r.f()}}},e}();function L(e,t,r,a,n){var i=c.create();i.set(e,u.create(e,a.concreteType));var s=y(a.normalizationNode,e,r);return I(i,s,t,n).source}function A(e,t,r){var n=new Set;if(null!=r){var i,s=(0,a.default)(r);try{for(s.s();!(i=s.n()).done;){var o=i.value;t.has(o)||(n.add(o),e.remove(o))}}catch(e){s.e(e)}finally{s.f()}}var l,c=(0,a.default)(t.getRecordIDs());try{for(c.s();!(l=c.n()).done;){var d=l.value,_=N(t,d);if(e.has(d)){var h=N(e,d);u.update(h,_)!==h&&(n.add(d),e.set(d,_))}else e.set(d,_)}}catch(e){c.e(e)}finally{c.f()}return n}function N(e,t){var r=e.get(t);return null==r&&R(!1,"Expected a record with ID `%s` to exist in the record source.",t),r}e.exports={LiveResolverCache:T,getUpdatedDataIDs:function(e){return e}}},function(e,t,r){"use strict";var a=r(2).default,n=a(r(5)),i=a(r(18)),s=r(54),o=s.ACTOR_IDENTIFIER_FIELD_NAME,l=s.getActorIdentifierFromPayload,u=r(3),c=u.ACTOR_CHANGE,d=u.CLIENT_COMPONENT,_=u.CLIENT_EXTENSION,h=u.CONDITION,f=u.DEFER,v=u.FLIGHT_FIELD,g=u.FRAGMENT_SPREAD,p=u.INLINE_FRAGMENT,E=u.LINKED_FIELD,R=u.LINKED_HANDLE,m=u.MODULE_IMPORT,y=u.RELAY_RESOLVER,I=u.SCALAR_FIELD,b=u.SCALAR_HANDLE,S=u.STREAM,D=u.TYPE_DISCRIMINATOR,T=r(7),L=r(6),A=L.generateClientID,N=L.isClientID,k=r(10).getLocalVariables,O=r(4),F=r(14).createNormalizationSelector,C=r(11),M=C.REACT_FLIGHT_EXECUTABLE_DEFINITIONS_STORAGE_KEY,P=C.REACT_FLIGHT_TREE_STORAGE_KEY,x=C.REACT_FLIGHT_TYPE_NAME,V=C.refineToReactFlightPayloadData,w=r(1),U=w.ROOT_ID,j=w.ROOT_TYPE,G=w.TYPENAME_KEY,Y=w.getArgumentValues,K=w.getHandleStorageKey,H=w.getModuleComponentKey,z=w.getModuleOperationKey,q=w.getStorageKey,B=r(15),W=B.TYPE_SCHEMA_TYPE,J=B.generateTypeID,Q=r(9),X=r(0),Z=r(8);var $=function(){function e(e,t,r){this._actorIdentifier=r.actorIdentifier,this._getDataId=r.getDataID,this._handleFieldPayloads=[],this._treatMissingFieldsAsNull=r.treatMissingFieldsAsNull,this._incrementalPlaceholders=[],this._isClientExtension=!1,this._isUnmatchedAbstractType=!1,this._followupPayloads=[],this._path=r.path?(0,i.default)(r.path):[],this._recordSource=e,this._variables=t,this._reactFlightPayloadDeserializer=r.reactFlightPayloadDeserializer,this._reactFlightServerErrorHandler=r.reactFlightServerErrorHandler,this._shouldProcessClientComponents=r.shouldProcessClientComponents}var t=e.prototype;return t.normalizeResponse=function(e,t,r){var a=this._recordSource.get(t);return a||X(!1,"RelayResponseNormalizer(): Expected root record `%s` to exist.",t),this._assignClientAbstractTypes(e),this._traverseSelections(e,a,r),{errors:null,fieldPayloads:this._handleFieldPayloads,incrementalPlaceholders:this._incrementalPlaceholders,followupPayloads:this._followupPayloads,source:this._recordSource,isFinal:!1}},t._assignClientAbstractTypes=function(e){var t=e.clientAbstractTypes;if(null!=t)for(var r=0,a=Object.keys(t);r<a.length;r++){var i,s=a[r],o=(0,n.default)(t[s]);try{for(o.s();!(i=o.n()).done;){var l=i.value,u=J(l),c=this._recordSource.get(u);null==c&&(c=O.create(u,W),this._recordSource.set(u,c)),O.setValue(c,s,!0)}}catch(e){o.e(e)}finally{o.f()}}},t._getVariableValue=function(e){return this._variables.hasOwnProperty(e)||X(!1,"RelayResponseNormalizer(): Undefined variable `%s`.",e),this._variables[e]},t._getRecordType=function(e){var t=e[G];return null==t&&X(!1,"RelayResponseNormalizer(): Expected a typename for record `%s`.",JSON.stringify(e,null,2)),t},t._traverseSelections=function(e,t,r){for(var a=0;a<e.selections.length;a++){var n=e.selections[a];switch(n.kind){case I:case E:this._normalizeField(e,n,t,r);break;case h:Boolean(this._getVariableValue(n.condition))===n.passingValue&&this._traverseSelections(n,t,r);break;case g:var i=this._variables;this._variables=k(this._variables,n.fragment.argumentDefinitions,n.args),this._traverseSelections(n.fragment,t,r),this._variables=i;break;case p:var s=n.abstractKey;if(null==s){O.getType(t)===n.type&&this._traverseSelections(n,t,r)}else{var o=r.hasOwnProperty(s),l=O.getType(t),u=J(l),L=this._recordSource.get(u);null==L&&(L=O.create(u,W),this._recordSource.set(u,L)),O.setValue(L,s,o),o&&this._traverseSelections(n,t,r)}break;case D:var A=n.abstractKey,N=r.hasOwnProperty(A),F=O.getType(t),C=J(F),M=this._recordSource.get(C);null==M&&(M=O.create(C,W),this._recordSource.set(C,M)),O.setValue(M,A,N);break;case R:case b:var P=n.args?Y(n.args,this._variables):{},x=q(n,this._variables),V=K(n,this._variables);this._handleFieldPayloads.push({args:P,dataID:O.getDataID(t),fieldKey:x,handle:n.handle,handleKey:V,handleArgs:n.handleArgs?Y(n.handleArgs,this._variables):{}});break;case m:this._normalizeModuleImport(e,n,t,r);break;case f:this._normalizeDefer(n,t,r);break;case S:this._normalizeStream(n,t,r);break;case _:var w=this._isClientExtension;this._isClientExtension=!0,this._traverseSelections(n,t,r),this._isClientExtension=w;break;case d:if(!1===this._shouldProcessClientComponents)break;this._traverseSelections(n.fragment,t,r);break;case v:if(!T.ENABLE_REACT_FLIGHT_COMPONENT_FIELD)throw new Error("Flight fields are not yet supported.");this._normalizeFlightField(e,n,t,r);break;case c:this._normalizeActorChange(e,n,t,r);break;case y:null!=n.fragment&&this._traverseSelections(n.fragment,t,r);break;default:X(!1,"RelayResponseNormalizer(): Unexpected ast kind `%s`.",n.kind)}}},t._normalizeDefer=function(e,t,r){var a=null===e.if||this._getVariableValue(e.if);Z("boolean"==typeof a,"RelayResponseNormalizer: Expected value for @defer `if` argument to be a boolean, got `%s`.",a),!1===a?this._traverseSelections(e,t,r):this._incrementalPlaceholders.push({kind:"defer",data:r,label:e.label,path:(0,i.default)(this._path),selector:F(e,O.getDataID(t),this._variables),typeName:O.getType(t),actorIdentifier:this._actorIdentifier})},t._normalizeStream=function(e,t,r){this._traverseSelections(e,t,r);var a=null===e.if||this._getVariableValue(e.if);Z("boolean"==typeof a,"RelayResponseNormalizer: Expected value for @stream `if` argument to be a boolean, got `%s`.",a),!0===a&&this._incrementalPlaceholders.push({kind:"stream",label:e.label,path:(0,i.default)(this._path),parentID:O.getDataID(t),node:e,variables:this._variables,actorIdentifier:this._actorIdentifier})},t._normalizeModuleImport=function(e,t,r,a){"object"==typeof a&&a||X(!1,"RelayResponseNormalizer: Expected data for @module to be an object.");var n=O.getType(r),s=H(t.documentName),o=t.componentModuleProvider||a[s];O.setValue(r,s,null!=o?o:null);var l=z(t.documentName),u=t.operationModuleProvider||a[l];O.setValue(r,l,null!=u?u:null),null!=u&&this._followupPayloads.push({kind:"ModuleImportPayload",args:t.args,data:a,dataID:O.getDataID(r),operationReference:u,path:(0,i.default)(this._path),typeName:n,variables:this._variables,actorIdentifier:this._actorIdentifier})},t._normalizeField=function(e,t,r,a){"object"==typeof a&&a||X(!1,"writeField(): Expected data for field `%s` to be an object.",t.name);var n=t.alias||t.name,i=q(t,this._variables),s=a[n];if(null==s){if(void 0===s){if(this._isClientExtension||this._isUnmatchedAbstractType)return;if(!this._treatMissingFieldsAsNull)return void Z(!1,"RelayResponseNormalizer: Payload did not contain a value for field `%s: %s`. Check that you are parsing with the same query that was used to fetch the payload.",n,i)}return t.kind===I&&this._validateConflictingFieldsWithIdenticalId(r,i,null),void O.setValue(r,i,null)}t.kind===I?(this._validateConflictingFieldsWithIdenticalId(r,i,s),O.setValue(r,i,s)):t.kind===E?(this._path.push(n),t.plural?this._normalizePluralLink(t,r,i,s):this._normalizeLink(t,r,i,s),this._path.pop()):X(!1,"RelayResponseNormalizer(): Unexpected ast kind `%s` during normalization.",t.kind)},t._normalizeActorChange=function(e,t,r,a){var n,s=t.linkedField;"object"==typeof a&&a||X(!1,"_normalizeActorChange(): Expected data for field `%s` to be an object.",s.name);var u=s.alias||s.name,c=q(s,this._variables),d=a[u];if(null!=d){var _=l(d);if(null==_)return Z(!1,"RelayResponseNormalizer: Payload did not contain a value for field `%s`. Check that you are parsing with the same query that was used to fetch the payload. Payload is `%s`.",o,JSON.stringify(d,null,2)),void O.setValue(r,c,null);var h=null!==(n=s.concreteType)&&void 0!==n?n:this._getRecordType(d),f=this._getDataId(d,h)||O.getLinkedRecordID(r,c)||A(O.getDataID(r),c);"string"!=typeof f&&X(!1,"RelayResponseNormalizer: Expected id on field `%s` to be a string.",c),O.setActorLinkedRecordID(r,c,_,f),this._followupPayloads.push({kind:"ActorPayload",data:d,dataID:f,path:[].concat((0,i.default)(this._path),[u]),typeName:h,variables:this._variables,node:s,actorIdentifier:_})}else{if(void 0===d){if(this._isClientExtension||this._isUnmatchedAbstractType)return;if(!this._treatMissingFieldsAsNull)return void Z(!1,"RelayResponseNormalizer: Payload did not contain a value for field `%s: %s`. Check that you are parsing with the same query that was used to fetch the payload.",u,c)}O.setValue(r,c,null)}},t._normalizeFlightField=function(e,t,r,a){var i=t.alias||t.name,s=q(t,this._variables),o=a[i];if(null!=o){var l=V(o),u=this._reactFlightPayloadDeserializer;null==l&&X(!1,"RelayResponseNormalizer: Expected React Flight payload data to be an object with `status`, tree`, `queries` and `errors` properties, got `%s`.",o),"function"!=typeof u&&X(!1,"RelayResponseNormalizer: Expected reactFlightPayloadDeserializer to be a function, got `%s`.",u),l.errors.length>0&&("function"==typeof this._reactFlightServerErrorHandler?this._reactFlightServerErrorHandler(l.status,l.errors):Z(!1,"RelayResponseNormalizer: Received server errors for field `%s`.\n\n%s\n%s",i,l.errors[0].message,l.errors[0].stack));var c=A(O.getDataID(r),q(t,this._variables)),d=this._recordSource.get(c);if(null==d&&(d=O.create(c,x),this._recordSource.set(c,d)),null==l.tree)return Z(!1,"RelayResponseNormalizer: Expected `tree` not to be null. This typically indicates that a fatal server error prevented any Server Component rows from being written."),O.setValue(d,P,null),O.setValue(d,M,[]),void O.setLinkedRecordID(r,s,c);var _=u(l.tree);O.setValue(d,P,_);var h,f=[],v=(0,n.default)(l.queries);try{for(v.s();!(h=v.n()).done;){var g=h.value;null!=g.response.data&&this._followupPayloads.push({kind:"ModuleImportPayload",args:null,data:g.response.data,dataID:U,operationReference:g.module,path:[],typeName:j,variables:g.variables,actorIdentifier:this._actorIdentifier}),f.push({module:g.module,variables:g.variables})}}catch(e){v.e(e)}finally{v.f()}var p,E=(0,n.default)(l.fragments);try{for(E.s();!(p=E.n()).done;){var R=p.value;null!=R.response.data&&this._followupPayloads.push({kind:"ModuleImportPayload",args:null,data:R.response.data,dataID:R.__id,operationReference:R.module,path:[],typeName:R.__typename,variables:R.variables,actorIdentifier:this._actorIdentifier}),f.push({module:R.module,variables:R.variables})}}catch(e){E.e(e)}finally{E.f()}O.setValue(d,M,f),O.setLinkedRecordID(r,s,c)}else{if(void 0===o){if(this._isUnmatchedAbstractType)return;this._treatMissingFieldsAsNull||X(!1,"RelayResponseNormalizer: Payload did not contain a value for field `%s: %s`. Check that you are parsing with the same query that was used to fetch the payload.",i,s)}O.setValue(r,s,null)}},t._normalizeLink=function(e,t,r,a){var n;"object"==typeof a&&a||X(!1,"RelayResponseNormalizer: Expected data for field `%s` to be an object.",r);var i=this._getDataId(a,null!==(n=e.concreteType)&&void 0!==n?n:this._getRecordType(a))||O.getLinkedRecordID(t,r)||A(O.getDataID(t),r);"string"!=typeof i&&X(!1,"RelayResponseNormalizer: Expected id on field `%s` to be a string.",r),this._validateConflictingLinkedFieldsWithIdenticalId(t,O.getLinkedRecordID(t,r),i,r),O.setLinkedRecordID(t,r,i);var s=this._recordSource.get(i);if(s)this._validateRecordType(s,e,a);else{var o=e.concreteType||this._getRecordType(a);s=O.create(i,o),this._recordSource.set(i,s)}this._traverseSelections(e,s,a)},t._normalizePluralLink=function(e,t,r,a){var n=this;Array.isArray(a)||X(!1,"RelayResponseNormalizer: Expected data for field `%s` to be an array of objects.",r);var i=O.getLinkedRecordIDs(t,r),s=[];a.forEach((function(a,o){var l;if(null!=a){n._path.push(String(o)),"object"!=typeof a&&X(!1,"RelayResponseNormalizer: Expected elements for field `%s` to be objects.",r);var u=n._getDataId(a,null!==(l=e.concreteType)&&void 0!==l?l:n._getRecordType(a))||i&&i[o]||A(O.getDataID(t),r,o);"string"!=typeof u&&X(!1,"RelayResponseNormalizer: Expected id of elements of field `%s` to be strings.",r),s.push(u);var c=n._recordSource.get(u);if(c)n._validateRecordType(c,e,a);else{var d=e.concreteType||n._getRecordType(a);c=O.create(u,d),n._recordSource.set(u,c)}i&&n._validateConflictingLinkedFieldsWithIdenticalId(t,i[o],u,r),n._traverseSelections(e,c,a),n._path.pop()}else s.push(a)})),O.setLinkedRecordIDs(t,r,s)},t._validateRecordType=function(e,t,r){var a,n=null!==(a=t.concreteType)&&void 0!==a?a:this._getRecordType(r),i=O.getDataID(e);Z(N(i)&&i!==U||O.getType(e)===n,"RelayResponseNormalizer: Invalid record `%s`. Expected %s to be consistent, but the record was assigned conflicting types `%s` and `%s`. The GraphQL server likely violated the globally unique id requirement by returning the same id for different objects.",i,G,O.getType(e),n)},t._validateConflictingFieldsWithIdenticalId=function(e,t,r){var a=O.getDataID(e),n=O.getValue(e,t);Z(t===G||void 0===n||Q(n,r),"RelayResponseNormalizer: Invalid record. The record contains two instances of the same id: `%s` with conflicting field, %s and its values: %s and %s. If two fields are different but share the same id, one field will overwrite the other.",a,t,n,r)},t._validateConflictingLinkedFieldsWithIdenticalId=function(e,t,r,a){Z(void 0===t||t===r,"RelayResponseNormalizer: Invalid record. The record contains references to the conflicting field, %s and its id values: %s and %s. We need to make sure that the record the field points to remains consistent or one field will overwrite the other.",a,t,r)},e}();e.exports={normalize:function(e,t,r,a){var n=t.dataID,i=t.node,s=t.variables;return new $(e,s,a).normalizeResponse(i,n,r)}}},function(e,t,r){"use strict";var a=r(22).getActorIdentifier;e.exports={ACTOR_IDENTIFIER_FIELD_NAME:"actor_key",getActorIdentifierFromPayload:function(e){if(null!=e&&"object"==typeof e&&"string"==typeof e.actor_key)return a(e.actor_key)}}},function(e,t,r){"use strict";var a=r(28).readFragment,n=r(0);e.exports=function(e,t,r,i){return function(s,o){var l=a(e,s);if(null==r)return t(l,o);if(null==l){if(!0!==i)return t(null,o);n(!1,"Expected required resolver field `%` to be present. But resolvers fragment data is null/undefined.",r)}if(r in l)return!0===i&&null==l[r]&&n(!1,"Expected required resolver field `%` to be non-null."),t(l[r],o);n(!1,"Missing field `%` in resolver response.",r)}}},function(e,t,r){"use strict";var a=r(2).default,n=a(r(16)),i=a(r(12)),s=r(0),o=r(30);function l(e,t,r){return function(){for(var a=arguments.length,i=new Array(a),o=0;o<a;o++)i[o]=arguments[o];var l=e.apply(null,i);return r?(Array.isArray(l)||s(!1,"Resolver is expected to return a plural value."),l.map((function(e){return(0,n.default)({},t,e)}))):(0,n.default)({},t,l)}}e.exports={weakObjectWrapperLive:function(e,t,r){return function(){for(var a=arguments.length,n=new Array(a),u=0;u<a;u++)n[u]=arguments[u];var c=e.apply(null,n);return o(c)||s(!1,"Resolver is expected to return a LiveState value."),(0,i.default)((0,i.default)({},c),{},{read:l((function(){return c.read()}),t,r)})}},weakObjectWrapper:l}}])}));