UNPKG

107 kBJavaScriptView Raw
1/**
2 * Relay v4.0.0
3 */
4!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("fbjs/lib/invariant"),require("fbjs/lib/warning"),require("fbjs/lib/areEqual"),require("fbjs/lib/mapObject"),require("fbjs/lib/sprintf"),require("fbjs/lib/emptyFunction"),require("fbjs/lib/removeFromArray"),require("fbjs/lib/ErrorUtils"),require("fbjs/lib/resolveImmediate")):"function"==typeof define&&define.amd?define(["fbjs/lib/invariant","fbjs/lib/warning","fbjs/lib/areEqual","fbjs/lib/mapObject","fbjs/lib/sprintf","fbjs/lib/emptyFunction","fbjs/lib/removeFromArray","fbjs/lib/ErrorUtils","fbjs/lib/resolveImmediate"],t):"object"==typeof exports?exports.RelayRuntime=t(require("fbjs/lib/invariant"),require("fbjs/lib/warning"),require("fbjs/lib/areEqual"),require("fbjs/lib/mapObject"),require("fbjs/lib/sprintf"),require("fbjs/lib/emptyFunction"),require("fbjs/lib/removeFromArray"),require("fbjs/lib/ErrorUtils"),require("fbjs/lib/resolveImmediate")):e.RelayRuntime=t(e["fbjs/lib/invariant"],e["fbjs/lib/warning"],e["fbjs/lib/areEqual"],e["fbjs/lib/mapObject"],e["fbjs/lib/sprintf"],e["fbjs/lib/emptyFunction"],e["fbjs/lib/removeFromArray"],e["fbjs/lib/ErrorUtils"],e["fbjs/lib/resolveImmediate"])}(window,function(e,t,r,n,o,a,i,s,l){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=46)}([function(t,r){t.exports=e},function(e,t,r){"use strict";var n=r(5),o=r(20),a=r(0),i=r(9),s=n.VARIABLE;function l(e,t){var r={};return e.forEach(function(e){e.kind===s?r[e.name]=function(e,t){return t.hasOwnProperty(e)||a(!1,"getVariableValue(): Undefined variable `%s`.",e),i(t[e])}(e.variableName,t):r[e.name]=e.value}),r}function c(e,t){if(!t)return e;var r=[];for(var n in t)if(t.hasOwnProperty(n)){var o=t[n];null!=o&&r.push(n+":"+JSON.stringify(o))}return 0===r.length?e:e+"(".concat(r.join(","),")")}var u={FRAGMENTS_KEY:"__fragments",FRAGMENT_OWNER_KEY:"__fragmentOwner",FRAGMENT_PROP_NAME_KEY:"__fragmentPropName",MODULE_COMPONENT_KEY:"__module_component",MODULE_OPERATION_KEY:"__module_operation",ID_KEY:"__id",REF_KEY:"__ref",REFS_KEY:"__refs",ROOT_ID:"client:root",ROOT_TYPE:"__Root",TYPENAME_KEY:"__typename",UNPUBLISH_RECORD_SENTINEL:Object.freeze({__UNPUBLISH_RECORD_SENTINEL:!0}),UNPUBLISH_FIELD_SENTINEL:Object.freeze({__UNPUBLISH_FIELD_SENTINEL:!0}),getArgumentValues:l,getHandleStorageKey:function(e,t){var r=e.handle,n=e.key,a=e.name,i=e.args,s=e.filters,u=o(r,n,a);return i&&s&&0!==i.length&&0!==s.length?c(u,l(i.filter(function(e){return s.indexOf(e.name)>-1}),t)):u},getStorageKey:function(e,t){if(e.storageKey)return e.storageKey;var r=e.args,n=e.name;return r&&0!==r.length?c(n,l(r,t)):n},getStableStorageKey:function(e,t){return c(e,i(t))}};e.exports=u},function(e,t){e.exports=function(e){return e&&e.__esModule?e:{default:e}}},function(e,t,r){var n=r(11);e.exports=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},o=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),o.forEach(function(t){n(e,t,r[t])})}return e}},function(e,r){e.exports=t},function(e,t,r){"use strict";e.exports={CONDITION:"Condition",CLIENT_EXTENSION:"ClientExtension",DEFER:"Defer",FRAGMENT:"Fragment",FRAGMENT_SPREAD:"FragmentSpread",INLINE_FRAGMENT:"InlineFragment",LINKED_FIELD:"LinkedField",LINKED_HANDLE:"LinkedHandle",LITERAL:"Literal",LOCAL_ARGUMENT:"LocalArgument",MODULE_IMPORT:"ModuleImport",OPERATION:"Operation",REQUEST:"Request",ROOT_ARGUMENT:"RootArgument",SCALAR_FIELD:"ScalarField",SCALAR_HANDLE:"ScalarHandle",SPLIT_OPERATION:"SplitOperation",STREAM:"Stream",VARIABLE:"Variable"}},function(e,t,r){"use strict";var n=r(2)(r(3)),o=r(14),a=r(17),i=r(0),s=r(4),l=r(7).isClientID,c=r(1),u=c.ID_KEY,d=c.REF_KEY,f=c.REFS_KEY,p=c.TYPENAME_KEY,h=c.UNPUBLISH_FIELD_SENTINEL;function _(e){return e[u]}function v(e){return e[p]}e.exports={clone:function(e){return(0,n.default)({},e)},copyFields:function(e,t){for(var r in e)e.hasOwnProperty(r)&&r!==u&&r!==p&&(t[r]=e[r])},create:function(e,t){var r={};return r[u]=e,r[p]=t,r},freeze:function(e){a(e)},getDataID:_,getLinkedRecordID:function(e,t){var r=e[t];return null==r?r:("object"==typeof r&&r&&"string"==typeof r[d]||i(!1,"RelayModernRecord.getLinkedRecordID(): Expected `%s.%s` to be a linked ID, was `%s`.",e[u],t,JSON.stringify(r)),r[d])},getLinkedRecordIDs:function(e,t){var r=e[t];return null==r?r:("object"==typeof r&&Array.isArray(r[f])||i(!1,"RelayModernRecord.getLinkedRecordIDs(): Expected `%s.%s` to contain an array of linked IDs, got `%s`.",e[u],t,JSON.stringify(r)),r[f])},getType:v,getValue:function(e,t){var r=e[t];return r&&"object"==typeof r&&(r.hasOwnProperty(d)||r.hasOwnProperty(f))&&i(!1,"RelayModernRecord.getValue(): Expected a scalar (non-link) value for `%s.%s` but found %s.",e[u],t,r.hasOwnProperty(d)?"a linked record":"plural linked records"),r},merge:function(e,t){var r,n,o=_(e),a=_(t);s(o===a,"RelayModernRecord: Invalid record merge, expected both versions of the record to have the same id, got `%s` and `%s`.",o,a);var i=null!==(r=v(e))&&void 0!==r?r:null,c=null!==(n=v(t))&&void 0!==n?n:null;return s(l(a)||i===c,"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.",o,p,i,c),Object.assign({},e,t)},setValue:function(e,t,r){var n=_(e);if(t===u)s(n===r,"RelayModernRecord: Invalid field update, expected both versions of the record to have the same id, got `%s` and `%s`.",n,r);else if(t===p){var o,a,i=null!==(o=v(e))&&void 0!==o?o:null,c=null!==(a=r)&&void 0!==a?a:null;s(l(_(e))||i===c,"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.",n,p,i,c)}e[t]=r},setLinkedRecordID:function(e,t,r){var n={};n[d]=r,e[t]=n},setLinkedRecordIDs:function(e,t,r){var n={};n[f]=r,e[t]=n},update:function(e,t){var r,a,i=_(e),c=_(t);s(i===c,"RelayModernRecord: Invalid record update, expected both versions of the record to have the same id, got `%s` and `%s`.",i,c);var u=null!==(r=v(e))&&void 0!==r?r:null,d=null!==(a=v(t))&&void 0!==a?a:null;s(l(c)||u===d,"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.",i,p,u,d);for(var f=null,g=Object.keys(t),m=0;m<g.length;m++){var y=g[m];!f&&o(e[y],t[y])||(f=null!==f?f:(0,n.default)({},e),t[y]!==h?f[y]=t[y]:delete f[y])}return null!==f?f:e}}},function(e,t,r){"use strict";var n="client:";e.exports={generateClientID:function(e,t,r){var o=e+":"+t;return null!=r&&(o+=":"+r),0!==o.indexOf(n)&&(o=n+o),o},isClientID:function(e){return 0===e.indexOf(n)}}},function(e,t,r){"use strict";var n=r(59),o=function(e,t){},a=function(){function e(e){if(!e||"function"!=typeof e)throw new Error("Source must be a Function: "+String(e));this._source=e}e.create=function(t){return new e(t)},e.onUnhandledError=function(e){o=e},e.from=function(e){return i(e)?s(e):n(e)?l(e):c(e)},e.fromLegacy=function(t){return e.create(function(e){var r=t({onNext:e.next,onError:e.error,onCompleted:e.complete});return i(r)?r.subscribe(e):function(){return r.dispose()}})};var t=e.prototype;return t.catch=function(t){var r=this;return e.create(function(e){var n;return r.subscribe({start:function(e){n=e},next:e.next,complete:e.complete,error:function(r){try{t(r).subscribe({start:function(e){n=e},next:e.next,complete:e.complete,error:e.error})}catch(t){e.error(t,!0)}}}),function(){return n.unsubscribe()}})},t.do=function(t){var r=this;return e.create(function(e){var n=function(r){return function(){try{t[r]&&t[r].apply(t,arguments)}catch(e){o(e,!0)}e[r]&&e[r].apply(e,arguments)}};return r.subscribe({start:n("start"),next:n("next"),error:n("error"),complete:n("complete"),unsubscribe:n("unsubscribe")})})},t.finally=function(t){var r=this;return e.create(function(e){var n=r.subscribe(e);return function(){n.unsubscribe(),t()}})},t.ifEmpty=function(t){var r=this;return e.create(function(e){var n=!1,o=r.subscribe({next:function(t){n=!0,e.next(t)},error:e.error,complete:function(){n?e.complete():o=t.subscribe(e)}});return function(){o.unsubscribe()}})},t.subscribe=function(e){if(!e||"object"!=typeof e)throw new Error("Observer must be an Object with callbacks: "+String(e));return function(e,t){var r,n=!1,a=function(e){return Object.defineProperty(e,"closed",{get:function(){return n}})};function i(){if(r){if(r.unsubscribe)r.unsubscribe();else try{r()}catch(e){o(e,!0)}r=void 0}}var s=a({unsubscribe:function(){if(!n){n=!0;try{t.unsubscribe&&t.unsubscribe(s)}catch(e){o(e,!0)}finally{i()}}}});try{t.start&&t.start(s)}catch(e){o(e,!0)}if(n)return s;var l=a({next:function(e){if(!n&&t.next)try{t.next(e)}catch(e){o(e,!0)}},error:function(e,r){if(n||!t.error)n=!0,o(e,r||!1),i();else{n=!0;try{t.error(e)}catch(e){o(e,!0)}finally{i()}}},complete:function(){if(!n){n=!0;try{t.complete&&t.complete()}catch(e){o(e,!0)}finally{i()}}}});try{r=e(l)}catch(e){l.error(e,!0)}if(void 0!==r&&"function"!=typeof r&&(!r||"function"!=typeof r.unsubscribe))throw new Error("Returned cleanup function which cannot be called: "+String(r));n&&i();return s}(this._source,e)},t.subscribeLegacy=function(e){return{dispose:this.subscribe({next:e.onNext,error:e.onError,complete:e.onCompleted}).unsubscribe}},t.map=function(t){var r=this;return e.create(function(e){var n=r.subscribe({complete:e.complete,error:e.error,next:function(r){try{var n=t(r);e.next(n)}catch(t){e.error(t,!0)}}});return function(){n.unsubscribe()}})},t.mergeMap=function(t){var r=this;return e.create(function(n){var o=[];function a(e){this._sub=e,o.push(e)}function i(){o.splice(o.indexOf(this._sub),1),0===o.length&&n.complete()}return r.subscribe({start:a,next:function(r){try{n.closed||e.from(t(r)).subscribe({start:a,next:n.next,error:n.error,complete:i})}catch(e){n.error(e,!0)}},error:n.error,complete:i}),function(){o.forEach(function(e){return e.unsubscribe()}),o.length=0}})},t.poll=function(t){var r=this;if("number"!=typeof t||t<=0)throw new Error("RelayObservable: Expected pollInterval to be positive, got: "+t);return e.create(function(e){var n,o;return function a(){n=r.subscribe({next:e.next,error:e.error,complete:function(){o=setTimeout(a,t)}})}(),function(){clearTimeout(o),n.unsubscribe()}})},t.toPromise=function(){var e=this;return new Promise(function(t,r){var n;e.subscribe({start:function(e){n=e},next:function(e){t(e),n.unsubscribe()},error:r,complete:t})})},e}();function i(e){return"object"==typeof e&&null!==e&&"function"==typeof e.subscribe}function s(e){return e instanceof a?e:a.create(function(t){return e.subscribe(t)})}function l(e){return a.create(function(t){e.then(function(e){t.next(e),t.complete()},t.error)})}function c(e){return a.create(function(t){t.next(e),t.complete()})}a.onUnhandledError(function(e,t){"function"==typeof fail?fail(String(e)):t?setTimeout(function(){throw e}):"undefined"!=typeof console&&console.error("RelayObservable: Unhandled Error",e)}),e.exports=a},function(e,t,r){"use strict";e.exports=function e(t){if(!t||"object"!=typeof t)return t;if(Array.isArray(t))return t.map(e);for(var r=Object.keys(t).sort(),n={},o=0;o<r.length;o++)n[r[o]]=e(t[r[o]]);return n}},function(e,t,r){var n=r(49),o=r(50),a=r(51);e.exports=function(e){return n(e)||o(e)||a()}},function(e,t){e.exports=function(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}},function(e,t,r){"use strict";var n=r(16),o=n.EXISTENT,a=n.NONEXISTENT,i=n.UNKNOWN,s=function(){function e(e){this._records=e||{}}var t=e.prototype;return t.clear=function(){this._records={}},t.delete=function(e){this._records[e]=null},t.get=function(e){return this._records[e]},t.getRecordIDs=function(){return Object.keys(this._records)},t.getStatus=function(e){return this._records.hasOwnProperty(e)?null==this._records[e]?a:o:i},t.has=function(e){return this._records.hasOwnProperty(e)},t.load=function(e,t){t(null,this.get(e))},t.remove=function(e){delete this._records[e]},t.set=function(e,t){this._records[e]=t},t.size=function(){return Object.keys(this._records).length},t.toJSON=function(){return this._records},e}();e.exports=s},function(e,t,r){"use strict";e.exports={MERGE_FETCH_AND_FRAGMENT_VARS:!1,PREFER_FRAGMENT_OWNER_OVER_CONTEXT:!1,ENABLE_INCREMENTAL_DELIVERY:!1,INCREMENTAL_DELIVERY_VARIABLE_NAME:"RELAY_INCREMENTAL_DELIVERY"}},function(e,t){e.exports=r},function(e,t,r){"use strict";var n=r(19),o=r(4),a=Object.freeze({RANGE_ADD:"RANGE_ADD",RANGE_DELETE:"RANGE_DELETE",NODE_DELETE:"NODE_DELETE",FIELDS_CHANGE:"FIELDS_CHANGE",REQUIRED_CHILDREN:"REQUIRED_CHILDREN"}),i=Object.freeze({APPEND:"append",IGNORE:"ignore",PREPEND:"prepend",REFETCH:"refetch",REMOVE:"remove"});function s(e){return e.fragment.selections&&e.fragment.selections.length>0&&"LinkedField"===e.fragment.selections[0].kind?e.fragment.selections[0].name:null}e.exports={MutationTypes:a,RangeOperations:i,convert:function(e,t,r,a){var i=r?[r]:[],l=a?[a]:[];return e.forEach(function(e){switch(e.type){case"NODE_DELETE":var r=function(e,t){var r=e.deletedIDFieldName,n=s(t);return n?function(e,t){var o=e.getRootField(n);if(o){var a=o.getValue(r),i=Array.isArray(a)?a:[a];i.forEach(function(t){t&&"string"==typeof t&&e.delete(t)})}}:null}(e,t);r&&(i.push(r),l.push(r));break;case"RANGE_ADD":var a=function(e,t){var r=e.parentID,a=e.connectionInfo,i=e.edgeName;if(!r)return o(!1,"RelayDeclarativeMutationConfig: For mutation config RANGE_ADD to work you must include a parentID"),null;var l=s(t);return a&&l?function(e,t){var s=e.get(r);if(s){var c=e.getRootField(l);if(c){var u=c.getLinkedRecord(i),d=!0,f=!1,p=void 0;try{for(var h,_=a[Symbol.iterator]();!(d=(h=_.next()).done);d=!0){var v=h.value;if(u){var g=n.getConnection(s,v.key,v.filters);if(g){var m=n.buildConnectionEdge(e,g,u);if(m)switch(v.rangeBehavior){case"append":n.insertEdgeAfter(g,m);break;case"ignore":break;case"prepend":n.insertEdgeBefore(g,m);break;default:o(!1,"RelayDeclarativeMutationConfig: RANGE_ADD range behavior `%s` will not work as expected in RelayModern, supported range behaviors are 'append', 'prepend', and 'ignore'.",v.rangeBehavior)}}}}}catch(e){f=!0,p=e}finally{try{d||null==_.return||_.return()}finally{if(f)throw p}}}}}:null}(e,t);a&&(i.push(a),l.push(a));break;case"RANGE_DELETE":var c=function(e,t){var r=e.parentID,a=e.connectionKeys,i=e.pathToConnection,l=e.deletedIDFieldName;if(!r)return o(!1,"RelayDeclarativeMutationConfig: For mutation config RANGE_DELETE to work you must include a parentID"),null;var c=s(t);return c?function(e,t){if(t){var s=[],u=t[c];if(u&&Array.isArray(l)){var d=!0,f=!1,p=void 0;try{for(var h,_=l[Symbol.iterator]();!(d=(h=_.next()).done);d=!0){var v=h.value;u&&"object"==typeof u&&(u=u[v])}}catch(e){f=!0,p=e}finally{try{d||null==_.return||_.return()}finally{if(f)throw p}}Array.isArray(u)?u.forEach(function(e){e&&e.id&&"object"==typeof e&&"string"==typeof e.id&&s.push(e.id)}):u&&u.id&&"string"==typeof u.id&&s.push(u.id)}else u&&"string"==typeof l&&"object"==typeof u&&("string"==typeof(u=u[l])?s.push(u):Array.isArray(u)&&u.forEach(function(e){"string"==typeof e&&s.push(e)}));!function(e,t,r,a,i){o(t,"RelayDeclarativeMutationConfig: RANGE_DELETE must provide a connectionKeys");var s=a.get(e);if(s)if(r.length<2)o(!1,"RelayDeclarativeMutationConfig: RANGE_DELETE pathToConnection must include at least parent and connection");else{for(var l=s,c=1;c<r.length-1;c++)l&&(l=l.getLinkedRecord(r[c]));if(t&&l){var u=!0,d=!1,f=void 0;try{for(var p,h=function(){var e=p.value,t=n.getConnection(l,e.key,e.filters);t&&i.forEach(function(e){n.deleteNode(t,e)})},_=t[Symbol.iterator]();!(u=(p=_.next()).done);u=!0)h()}catch(e){d=!0,f=e}finally{try{u||null==_.return||_.return()}finally{if(d)throw f}}}else o(!1,"RelayDeclarativeMutationConfig: RANGE_DELETE pathToConnection is incorrect. Unable to find connection with parentID: %s and path: %s",e,r.toString())}}(r,a,i,e,s)}}:null}(e,t);c&&(i.push(c),l.push(c))}}),{optimisticUpdater:function(e,t){i.forEach(function(r){r(e,t)})},updater:function(e,t){l.forEach(function(r){r(e,t)})}}}}},function(e,t,r){"use strict";e.exports={EXISTENT:"EXISTENT",NONEXISTENT:"NONEXISTENT",UNKNOWN:"UNKNOWN"}},function(e,t,r){"use strict";e.exports=function e(t){return Object.freeze(t),Object.getOwnPropertyNames(t).forEach(function(r){var n=t[r];n&&"object"==typeof n&&!Object.isFrozen(n)&&e(n)}),t}},function(e,t,r){"use strict";var n=r(2)(r(3)),o=r(0);e.exports={getFragmentVariables:function(e,t,r){var a;return e.argumentDefinitions.forEach(function(i){if(!r.hasOwnProperty(i.name))switch(a=a||(0,n.default)({},r),i.kind){case"LocalArgument":a[i.name]=i.defaultValue;break;case"RootArgument":if(!t.hasOwnProperty(i.name)){a[i.name]=void 0;break}a[i.name]=t[i.name];break;default:o(!1,"RelayConcreteVariables: Unexpected node kind `%s` in fragment `%s`.",i.kind,e.name)}}),a||r},getOperationVariables:function(e,t){var r={};return e.argumentDefinitions.forEach(function(e){var n=e.defaultValue;null!=t[e.name]&&(n=t[e.name]),r[e.name]=n}),r}}},function(e,t,r){"use strict";var n=r(26),o=r(20),a=r(0),i=r(4),s=r(7).generateClientID,l="connection",c="__connection_next_edge_index";function u(e,t,r){if(null==r)return r;var o=n.get().EDGES,i=t.getValue(c);"number"!=typeof i&&a(!1,"RelayConnectionHandler: Expected %s to be a number, got `%s`.",c,i);var l=s(t.getDataID(),o,i),u=e.create(l,r.getType());return u.copyFieldsFrom(r),t.setValue(i+1,c),u}function d(e,t,r){for(var o=n.get().NODE,a=0;a<e.length;a++){var i=e[a];if(i){var s=i.getLinkedRecord(o),l=s&&s.getValue("id");if(l){if(r.has(l))continue;r.add(l)}t.push(i)}}}e.exports={buildConnectionEdge:u,createEdge:function(e,t,r,o){var a=n.get().NODE,i=s(t.getDataID(),r.getDataID()),l=e.get(i);return l||(l=e.create(i,o)),l.setLinkedRecord(r,a),l},deleteNode:function(e,t){var r=n.get(),o=r.EDGES,a=r.NODE,i=e.getLinkedRecords(o);if(i){for(var s,l=0;l<i.length;l++){var c=i[l],u=c&&c.getLinkedRecord(a);null!=u&&u.getDataID()===t?void 0===s&&(s=i.slice(0,l)):void 0!==s&&s.push(c)}void 0!==s&&e.setLinkedRecords(s,o)}},getConnection:function(e,t,r){var n=o(l,t,null);return e.getLinkedRecord(n,r)},insertEdgeAfter:function(e,t,r){var o=n.get(),a=o.CURSOR,i=o.EDGES,s=e.getLinkedRecords(i);if(s){var l;if(null==r)l=s.concat(t);else{l=[];for(var c=!1,u=0;u<s.length;u++){var d=s[u];l.push(d),null!=d&&r===d.getValue(a)&&(l.push(t),c=!0)}c||l.push(t)}e.setLinkedRecords(l,i)}else e.setLinkedRecords([t],i)},insertEdgeBefore:function(e,t,r){var o=n.get(),a=o.CURSOR,i=o.EDGES,s=e.getLinkedRecords(i);if(s){var l;if(null==r)l=[t].concat(s);else{l=[];for(var c=!1,u=0;u<s.length;u++){var d=s[u];null!=d&&r===d.getValue(a)&&(l.push(t),c=!0),l.push(d)}c||l.unshift(t)}e.setLinkedRecords(l,i)}else e.setLinkedRecords([t],i)},update:function(e,t){var r=e.get(t.dataID);if(r){var o=n.get(),a=o.EDGES,l=o.END_CURSOR,f=o.HAS_NEXT_PAGE,p=o.HAS_PREV_PAGE,h=o.PAGE_INFO,_=o.PAGE_INFO_TYPE,v=o.START_CURSOR,g=r.getLinkedRecord(t.fieldKey),m=g&&g.getLinkedRecord(h);if(g){var y=r.getLinkedRecord(t.handleKey),b=y&&y.getLinkedRecord(h);if(y){var R=y,E=g.getLinkedRecords(a);E&&(E=E.map(function(t){return u(e,R,t)}));var S=R.getLinkedRecords(a),k=R.getLinkedRecord(h);R.copyFieldsFrom(g),S&&R.setLinkedRecords(S,a),k&&R.setLinkedRecord(k,h);var D=[],I=t.args;if(S&&E)if(null!=I.after){if(!b||I.after!==b.getValue(l))return void i(!1,"RelayConnectionHandler: Unexpected after cursor `%s`, edges must be fetched from the end of the list (`%s`).",I.after,b&&b.getValue(l));var O=new Set;d(S,D,O),d(E,D,O)}else if(null!=I.before){if(!b||I.before!==b.getValue(v))return void i(!1,"RelayConnectionHandler: Unexpected before cursor `%s`, edges must be fetched from the beginning of the list (`%s`).",I.before,b&&b.getValue(v));var x=new Set;d(E,D,x),d(S,D,x)}else D=E;else D=E||S;if(null!=D&&D!==S&&R.setLinkedRecords(D,a),b&&m)if(null==I.after&&null==I.before)b.copyFieldsFrom(m);else if(null!=I.before||null==I.after&&I.last){b.setValue(!!m.getValue(p),p);var N=m.getValue(v);"string"==typeof N&&b.setValue(N,v)}else if(null!=I.after||null==I.before&&I.first){b.setValue(!!m.getValue(f),f);var L=m.getValue(l);"string"==typeof L&&b.setValue(L,l)}}else{var F=e.create(s(r.getDataID(),t.handleKey),g.getType());F.setValue(0,c),F.copyFieldsFrom(g);var P=g.getLinkedRecords(a);P&&(P=P.map(function(t){return u(e,F,t)}),F.setLinkedRecords(P,a)),r.setLinkedRecord(F,t.handleKey),(b=e.create(s(F.getDataID(),h),_)).setValue(!1,f),b.setValue(!1,p),b.setValue(null,l),b.setValue(null,v),m&&b.copyFieldsFrom(m),F.setLinkedRecord(b,h)}}else r.setValue(null,t.handleKey)}}}},function(e,t,r){"use strict";var n=r(0),o=r(27).DEFAULT_HANDLE_KEY;e.exports=function(e,t,r){return t&&t!==o?"__".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";var n=r(47),o=r(4),a=r(31),i=a.getFragment,s=a.getPaginationFragment,l=a.getRefetchableFragment,c=a.getRequest,u=a.isFragment,d=a.isRequest,f=r(48).createOperationDescriptor,p=r(30),h=p.areEqualSelectors,_=p.getDataIDsFromFragment,v=p.getDataIDsFromObject,g=p.getSingularSelector,m=p.getPluralSelector,y=p.getSelector,b=p.getSelectorsFromObject,R=p.getVariablesFromSingularFragment,E=p.getVariablesFromPluralFragment,S=p.getVariablesFromFragment,k=p.getVariablesFromObject;e.exports={areEqualSelectors:h,createFragmentSpecResolver:function(e,t,r,a,i){return Object.keys(r).forEach(function(e){var r=a[e];o(void 0!==r,"createFragmentSpecResolver: Expected prop `%s` to be supplied to `%s`, but got `undefined`. Pass an explicit `null` if this is intentional.",e,t)}),new n(e,r,a,i)},createOperationDescriptor:f,getDataIDsFromFragment:_,getDataIDsFromObject:v,getFragment:i,getPaginationFragment:s,getRefetchableFragment:l,getRequest:c,getSingularSelector:g,getPluralSelector:m,getSelector:y,getSelectorsFromObject:b,getVariablesFromSingularFragment:R,getVariablesFromPluralFragment:E,getVariablesFromFragment:S,getVariablesFromObject:k,isFragment:u,isRequest:d}},function(e,t,r){"use strict";var n=r(0),o=r(29),a=r(1).FRAGMENT_OWNER_KEY;function i(e,t){var r;return null==t?null:("object"!=typeof t&&n(!1,"RelayModernFragmentOwner: Expected value for fragment `%s` to be an object, got `%s`.",e.name,typeof t),null!==(r=t[a])&&void 0!==r?r:null)}function s(e,t){return Array.isArray(t)?function(e,t){return t.map(function(t){return i(e,t)})}(e,t):i(e,t)}e.exports={getFragmentOwner:s,getFragmentOwners:function(e,t){return o(e,function(e,r){return s(e,t[r])})}}},function(e,t,r){"use strict";var n=r(12),o=r(6),a=r(39),i=r(1),s=i.ROOT_ID,l=i.ROOT_TYPE;e.exports=function(e,t,r){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{handleStrippedNulls:!1},c=new n;c.set(s,o.create(s,l));var u=a.normalize(c,e,t,i);return{errors:r,fieldPayloads:u.fieldPayloads,incrementalPlaceholders:u.incrementalPlaceholders,moduleImportPayloads:u.moduleImportPayloads,source:c}}},function(e,t,r){"use strict";var n=r(56),o=r(57),a={"*":[]},i={"*":[]},s={},l={stop:n},c={instrumentMethods:function(e,t){for(var r in t)t.hasOwnProperty(r)&&"function"==typeof e[r]&&(e[r]=c.instrument(t[r],e[r]))},instrument:function(e,t){a.hasOwnProperty(e)||(a[e]=[]);var r=a["*"],n=a[e],i=[],l=[],c=function(){var o;if(0===n.length&&0===i.length&&0===r.length)o=t.apply(this,arguments);else if(l.push([r.length,n.length,i.length,this,arguments,s]),function o(){var a=l[l.length-1];a[0]?(a[0]--,r[a[0]](e,o)):a[1]?(a[1]--,n[a[1]](e,o)):a[2]?(a[2]--,i[a[2]](e,o)):a[5]=t.apply(a[3],a[4])}(),(o=l.pop()[5])===s)throw new Error("RelayProfiler: Handler did not invoke original function.");return o};return c.attachHandler=function(e){i.push(e)},c.detachHandler=function(e){o(i,e)},c.displayName="(instrumented "+e+")",c},attachAggregateHandler:function(e,t){a.hasOwnProperty(e)||(a[e]=[]),a[e].push(t)},detachAggregateHandler:function(e,t){a.hasOwnProperty(e)&&o(a[e],t)},profile:function(e,t){var r=i["*"].length>0,n=i.hasOwnProperty(e);if(n||r){for(var o,a=n&&r?i[e].concat(i["*"]):n?i[e]:i["*"],s=a.length-1;s>=0;s--){var c=(0,a[s])(e,t);(o=o||[]).unshift(c)}return{stop:function(e){o&&o.forEach(function(t){return t(e)})}}}return l},attachProfileHandler:function(e,t){i.hasOwnProperty(e)||(i[e]=[]),i[e].push(t)},detachProfileHandler:function(e,t){i.hasOwnProperty(e)&&o(i[e],t)}};e.exports=c},function(e,t,r){"use strict";e.exports=function(e){return Boolean(e&&e["@@RelayModernEnvironment"])}},function(e,t,r){"use strict";var n=r(2)(r(11)),o={after:!0,before:!0,find:!0,first:!0,last:!0,surrounds:!0},a={find:!0,first:!0,last:!0},i={CLIENT_MUTATION_ID:"clientMutationId",CURSOR:"cursor",EDGES_HAVE_SOURCE_FIELD:!1,EDGES:"edges",END_CURSOR:"endCursor",HAS_NEXT_PAGE:"hasNextPage",HAS_PREV_PAGE:"hasPreviousPage",NODE:"node",PAGE_INFO_TYPE:"PageInfo",PAGE_INFO:"pageInfo",START_CURSOR:"startCursor"},s={inject:function(e){i=e},get:function(){return i},isConnectionCall:function(e){return o.hasOwnProperty(e.name)},hasRangeCalls:function(e){return e.some(function(e){return a.hasOwnProperty(e.name)})},getDefaultPageInfo:function(){var e;return e={},(0,n.default)(e,i.END_CURSOR,null),(0,n.default)(e,i.HAS_NEXT_PAGE,!1),(0,n.default)(e,i.HAS_PREV_PAGE,!1),(0,n.default)(e,i.START_CURSOR,null),e}};e.exports=s},function(e,t,r){"use strict";e.exports={DEFAULT_HANDLE_KEY:""}},function(e,t,r){"use strict";e.exports=function(e,t){return e===t&&(null===e||"object"!=typeof e)}},function(e,t){e.exports=n},function(e,t,r){"use strict";var n=r(13),o=r(14),a=r(0),i=r(4),s=r(18).getFragmentVariables,l=r(1),c=l.FRAGMENT_OWNER_KEY,u=l.FRAGMENTS_KEY,d=l.ID_KEY;function f(e,t,r,n){("object"!=typeof r||null===r||Array.isArray(r))&&a(!1,"RelayModernSelector: Expected value for fragment `%s` to be an object, got `%s`.",t.name,JSON.stringify(r));var o=r[d],l=r[u];if("string"==typeof o&&"object"==typeof l&&null!==l&&"object"==typeof l[t.name]&&null!==l[t.name]){var f,p,h=l[t.name];if(null!=n&&"object"==typeof n){var _=n.variables;return{owner:n,selector:{dataID:o,node:t,variables:s(t,_,h)}}}return{owner:null!==(f=null!==(p=n)&&void 0!==p?p:r[c])&&void 0!==f?f:null,selector:{dataID:o,node:t,variables:s(t,e,h)}}}var v=JSON.stringify(r);return v.length>499&&(v=v.substr(0,498)+"…"),i(!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)`.",t.name,v,t.name),null}function p(e,t,r,n){var o=null;return null!=n&&i(r.length===n.length,"RelayModernSelector: Expected number of plural values for fragment `%s` to match number of owners. Received %s values and %s owners.",t.name,r.length,n.length),r.forEach(function(r,a){var i=null!=n?n[a]:null,s=null!=r?f(e,t,r,i):null;null!=s&&(o=o||[]).push(s)}),o}function h(e,t,r,n){var o;return null==r?o=r:t.metadata&&!0===t.metadata.plural?(Array.isArray(r)||a(!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.",t.name,JSON.stringify(r),t.name),void 0!==n?(Array.isArray(n)||a(!1,"RelayModernSelector: Expected explcitly provided owner for fragment `%s` to be an array, got `%s`.",t.name,JSON.stringify(n)),o=p(e,t,r,n)):o=p(e,t,r)):(Array.isArray(r)&&a(!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.",t.name,JSON.stringify(r),t.name),null!=n?(Array.isArray(n)&&a(!1,"RelayModernSelector: Expected explcitly provided owner for fragment `%s` not to be an array, got `%s`.",t.name,JSON.stringify(n)),o=f(e,t,r,n)):o=f(e,t,r)),o}function _(e,t){var r;return null==t?r=t:e.metadata&&!0===e.metadata.plural?(Array.isArray(t)||a(!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),r=function(e,t){var r;return t.forEach(function(t){var n=null!=t?v(e,t):null;null!=n&&(r=r||[]).push(n)}),r||null}(e,t)):(Array.isArray(t)&&a(!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=v(e,t)),r}function v(e,t){("object"!=typeof t||null===t||Array.isArray(t))&&a(!1,"RelayModernSelector: Expected value for fragment `%s` to be an object, got `%s`.",e.name,JSON.stringify(t));var r=t[d];return"string"==typeof r?r:(i(!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,JSON.stringify(t),e.name),null)}function g(e,t,r,n){var o;return null==r?{}:!0===(null===(o=t.metadata)||void 0===o?void 0:o.plural)?(Array.isArray(r)||a(!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.",t.name,JSON.stringify(r),t.name),void 0!==n?(Array.isArray(n)||a(!1,"RelayModernSelector: Expected explcitly provided owner for fragment `%s` to be an array, got `%s`.",t.name,JSON.stringify(n)),y(e,t,r,n)):y(e,t,r)):(Array.isArray(r)&&a(!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.",t.name,JSON.stringify(r),t.name),void 0!==n?(Array.isArray(n)&&a(!1,"RelayModernSelector: Expected explcitly provided owner for fragment `%s` not to be an array, got `%s`.",t.name,JSON.stringify(n)),m(e,t,r,n)||{}):m(e,t,r)||{})}function m(e,t,r,n){var o=f(e,t,r,n);return o?o.selector.variables:null}function y(e,t,r,n){var o={};return r.forEach(function(r,a){if(null!=r){var i=null!=n?n[a]:null,s=m(e,t,r,i);s&&Object.assign(o,s)}}),o}e.exports={areEqualSelectors:function(e,t){var r=o(e.selector.variables,t.selector.variables),a=e.selector.dataID===t.selector.dataID&&e.selector.node===t.selector.node&&r;return n.PREFER_FRAGMENT_OWNER_OVER_CONTEXT?a&&e.owner===t.owner:a},getDataIDsFromFragment:_,getDataIDsFromObject:function(e,t){var r={};for(var n in e)if(e.hasOwnProperty(n)){var o=e[n],a=t[n];r[n]=_(o,a)}return r},getSingularSelector:f,getPluralSelector:p,getSelector:h,getSelectorsFromObject:function(e,t,r,n){var o={};for(var i in t)if(t.hasOwnProperty(i)){var s=t[i],l=r[i];if(null!=n){n.hasOwnProperty(i)||a(!1,"RelayModernSelector: Expected explcitly provided owner for fragment `%s` under key `%s` to exist.",s.name,i);var c=n[i];o[i]=h(e,s,l,c)}else o[i]=h(e,s,l)}return o},getVariablesFromSingularFragment:m,getVariablesFromPluralFragment:y,getVariablesFromFragment:g,getVariablesFromObject:function(e,t,r,n){var o={};for(var i in t)if(t.hasOwnProperty(i)){var s=t[i],l=r[i];if(null!=n){n.hasOwnProperty(i)||a(!1,"RelayModernSelector: Expected explcitly provided owner for fragment `%s` under key `%s` to exist.",s.name,i);var c=g(e,s,l,n[i]);Object.assign(o,c)}else{var u=g(e,s,l);Object.assign(o,u)}}return o}}},function(e,t,r){"use strict";var n=r(5),o=r(0);function a(e){var t="function"==typeof e?e:"function"==typeof e.modern?e.modern:null;if(null===t)return e;var r=t();return r.default?r.default:r}function i(e){var t=a(e);return"object"==typeof t&&null!==t&&t.kind===n.FRAGMENT}function s(e){var t=a(e);return"object"==typeof t&&null!==t&&t.kind===n.REQUEST}function l(e){var t=a(e);return i(t)||o(!1,"RelayModernGraphQLTag: Expected a fragment, got `%s`.",JSON.stringify(t)),t}e.exports={getFragment:l,getPaginationFragment:function(e){var t,r=l(e),n=null===(t=r.metadata)||void 0===t?void 0:t.refetch,o=null===n||void 0===n?void 0:n.connection;return null===n||"object"!=typeof n||null===o||"object"!=typeof o?null:r},getRefetchableFragment:function(e){var t,r=l(e),n=null===(t=r.metadata)||void 0===t?void 0:t.refetch;return null===n||"object"!=typeof n?null:r},getRequest:function(e){var t=a(e);return s(t)||o(!1,"RelayModernGraphQLTag: Expected a request, got `%s`.",JSON.stringify(t)),t},graphql:function(e){o(!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`.")},isFragment:i,isRequest:s}},function(e,t,r){"use strict";var n=r(19),o=r(33),a=r(0);e.exports=function(e){switch(e){case"connection":return n;case"viewer":return o}a(!1,"RelayDefaultHandlerProvider: No handler provided for `%s`.",e)}},function(e,t,r){"use strict";var n=(0,r(7).generateClientID)(r(1).ROOT_ID,"viewer"),o="Viewer";e.exports={VIEWER_ID:n,update:function(e,t){var r=e.get(t.dataID);if(r){var a=r.getLinkedRecord(t.fieldKey);if(a){if(a.getDataID()===n)return r.setValue(null,t.fieldKey),void r.setLinkedRecord(a,t.handleKey);var i=e.get(n)||e.create(n,o);i.copyFieldsFrom(a),r.setValue(null,t.fieldKey),r.setLinkedRecord(i,t.handleKey),e.getRoot().setLinkedRecord(i,t.handleKey)}}}}},function(e,t,r){"use strict";var n=r(2)(r(10)),o=r(52),a={create:function(e,t){for(var r=arguments.length,n=new Array(r>2?r-2:0),o=2;o<r;o++)n[o-2]=arguments[o];return i("mustfix",e,t,n)},createWarning:function(e,t){for(var r=arguments.length,n=new Array(r>2?r-2:0),o=2;o<r;o++)n[o-2]=arguments[o];return i("warn",e,t,n)}};function i(e,t,r,a){var i=new Error(o.apply(void 0,[r].concat((0,n.default)(a))));return i.name=t,i.type=e,i.framesToPop=2,i}e.exports=a},function(e,t,r){"use strict";var n=r(5),o=r(36),a=r(37),i=r(1),s=r(40),l=r(0),c=r(16),u=c.EXISTENT,d=c.UNKNOWN,f=n.CONDITION,p=n.CLIENT_EXTENSION,h=n.DEFER,_=n.FRAGMENT_SPREAD,v=n.INLINE_FRAGMENT,g=n.LINKED_FIELD,m=n.LINKED_HANDLE,y=n.MODULE_IMPORT,b=n.SCALAR_FIELD,R=n.SCALAR_HANDLE,E=n.STREAM,S=i.getStorageKey,k=i.getArgumentValues,D=i.MODULE_OPERATION_KEY;var I=function(){function e(e,t,r,n,i){var s;this._operationLoader=null!==(s=i)&&void 0!==s?s:null,this._handlers=n,this._mutator=new o(e,t),this._recordWasMissing=!1,this._source=e,this._variables=r,this._recordSourceProxy=new a(this._mutator)}var t=e.prototype;return t.check=function(e,t){return this._traverse(e,t),!this._recordWasMissing},t._getVariableValue=function(e){return this._variables.hasOwnProperty(e)||l(!1,"RelayAsyncLoader(): Undefined variable `%s`.",e),this._variables[e]},t._handleMissing=function(){this._recordWasMissing=!0},t._getDataForHandlers=function(e,t){return{args:e.args?k(e.args,this._variables):{},record:this._source.get(t)}},t._handleMissingScalarField=function(e,t){var r=this._getDataForHandlers(e,t),n=r.args,o=r.record,a=!0,i=!1,s=void 0;try{for(var l,c=this._handlers[Symbol.iterator]();!(a=(l=c.next()).done);a=!0){var u=l.value;if("scalar"===u.kind){var d=u.handle(e,o,n,this._recordSourceProxy);if(void 0!==d)return d}}}catch(e){i=!0,s=e}finally{try{a||null==c.return||c.return()}finally{if(i)throw s}}this._handleMissing()},t._handleMissingLinkField=function(e,t){var r=this._getDataForHandlers(e,t),n=r.args,o=r.record,a=!0,i=!1,s=void 0;try{for(var l,c=this._handlers[Symbol.iterator]();!(a=(l=c.next()).done);a=!0){var d=l.value;if("linked"===d.kind){var f=d.handle(e,o,n,this._recordSourceProxy);if(null!=f&&this._mutator.getStatus(f)===u)return f}}}catch(e){i=!0,s=e}finally{try{a||null==c.return||c.return()}finally{if(i)throw s}}this._handleMissing()},t._handleMissingPluralLinkField=function(e,t){var r=this,n=this._getDataForHandlers(e,t),o=n.args,a=n.record,i=!0,s=!1,l=void 0;try{for(var c,d=this._handlers[Symbol.iterator]();!(i=(c=d.next()).done);i=!0){var f=c.value;if("pluralLinked"===f.kind){var p=f.handle(e,a,o,this._recordSourceProxy);if(null!=p)return p.filter(function(e){return null!=e&&r._mutator.getStatus(e)===u})}}}catch(e){s=!0,l=e}finally{try{i||null==d.return||d.return()}finally{if(s)throw l}}this._handleMissing()},t._traverse=function(e,t){var r=this._mutator.getStatus(t);r===d&&this._handleMissing(),r===u&&this._traverseSelections(e.selections,t)},t._traverseSelections=function(e,t){var r=this;e.forEach(function(n){switch(n.kind){case b:r._checkScalar(n,t);break;case g:n.plural?r._checkPluralLink(n,t):r._checkLink(n,t);break;case f:r._getVariableValue(n.condition)===n.passingValue&&r._traverseSelections(n.selections,t);break;case v:var o=r._mutator.getType(t);null!=o&&o===n.type&&r._traverseSelections(n.selections,t);break;case m:var a=s(n,e,r._variables);a.plural?r._checkPluralLink(a,t):r._checkLink(a,t);break;case y:r._checkModuleImport(n,t);break;case h:case E:r._traverseSelections(n.selections,t);break;case R:case _:l(!1,"RelayAsyncLoader(): Unexpected ast kind `%s`.",n.kind);break;case p:var i=r._recordWasMissing;r._traverseSelections(n.selections,t),r._recordWasMissing=i;break;default:l(!1,"RelayAsyncLoader(): Unexpected ast kind `%s`.",n.kind)}})},t._checkModuleImport=function(e,t){var r=this._operationLoader;null===r&&l(!1,"DataChecker: Expected an operationLoader to be configured when using `@module`.");var n=this._mutator.getValue(t,D);if(null!=n){var o=r.get(n);null!=o?this._traverse(o,t):this._handleMissing()}else void 0===n&&this._handleMissing()},t._checkScalar=function(e,t){var r=S(e,this._variables),n=this._mutator.getValue(t,r);void 0===n&&void 0!==(n=this._handleMissingScalarField(e,t))&&this._mutator.setValue(t,r,n)},t._checkLink=function(e,t){var r=S(e,this._variables),n=this._mutator.getLinkedRecordID(t,r);void 0===n&&null!=(n=this._handleMissingLinkField(e,t))&&this._mutator.setLinkedRecordID(t,r,n),null!=n&&this._traverse(e,n)},t._checkPluralLink=function(e,t){var r=this,n=S(e,this._variables),o=this._mutator.getLinkedRecordIDs(t,n);void 0===o&&null!=(o=this._handleMissingPluralLinkField(e,t))&&this._mutator.setLinkedRecordIDs(t,n,o),o&&o.forEach(function(t){null!=t&&r._traverse(e,t)})},e}();e.exports={check:function(e,t,r,n,o){var a=r.dataID,i=r.node,s=r.variables;return new I(e,t,s,n,o).check(i,a)}}},function(e,t,r){"use strict";var n=r(2)(r(3)),o=r(6),a=r(0),i=r(16).EXISTENT,s=r(1),l=s.UNPUBLISH_FIELD_SENTINEL,c=s.UNPUBLISH_RECORD_SENTINEL,u=function(){function e(e,t,r){this._backup=r,this._base=e,this._sink=t,this.__sources=[t,e]}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=o.clone(t);return o.freeze(n),n}if(null===r)return null;if(r!==c){if(null!=t){var a=o.update(t,r);return a!==t&&o.freeze(a),a}var i=o.clone(r);return o.freeze(i),i}},t._createBackupRecord=function(e){var t=this._backup;if(t&&!t.has(e)){var r=this._base.get(e);null!=r?t.set(e,r):null===r&&t.delete(e)}},t._setSentinelFieldsInBackupRecord=function(e,t){var r=this._backup;if(r){var o=r.get(e);if(o&&o!==c){var a=null;for(var i in t)t.hasOwnProperty(i)&&(i in o||((a=a||(0,n.default)({},o))[i]=l));r.set(e,a||o)}}},t._setSentinelFieldInBackupRecord=function(e,t){var r=this._backup;if(r){var a=r.get(e);if(a&&a!==c&&!(t in a)){var i=(0,n.default)({},a);o.setValue(i,t,l),r.set(e,i)}}},t._getSinkRecord=function(e){var t=this._sink.get(e);if(!t){var r=this._base.get(e);r||a(!1,"RelayRecordSourceMutator: Cannot modify non-existent record `%s`.",e),t=o.create(e,o.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||a(!1,"RelayRecordSourceMutator#copyFields(): Cannot copy fields from non-existent record `%s`.",e),this._createBackupRecord(t);var i=this._getSinkRecord(t);n&&o.copyFields(n,i),r&&o.copyFields(r,i),this._setSentinelFieldsInBackupRecord(t,i)},t.copyFieldsFromRecord=function(e,t){this._createBackupRecord(t);var r=this._getSinkRecord(t);o.copyFields(e,r),this._setSentinelFieldsInBackupRecord(t,r)},t.create=function(e,t){(this._base.getStatus(e)===i||this._sink.getStatus(e)===i)&&a(!1,"RelayRecordSourceMutator#create(): Cannot create a record with id `%s`, this record already exists.",e),this._backup&&this._backup.set(e,c);var r=o.create(e,t);this._sink.set(e,r)},t.delete=function(e){this._createBackupRecord(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 o.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 a=o.getValue(n,t);if(void 0!==a)return a}else if(null===n)return null}},t.setValue=function(e,t,r){this._createBackupRecord(e);var n=this._getSinkRecord(e);o.setValue(n,t,r),this._setSentinelFieldInBackupRecord(e,t)},t.getLinkedRecordID=function(e,t){for(var r=0;r<this.__sources.length;r++){var n=this.__sources[r].get(e);if(n){var a=o.getLinkedRecordID(n,t);if(void 0!==a)return a}else if(null===n)return null}},t.setLinkedRecordID=function(e,t,r){this._createBackupRecord(e);var n=this._getSinkRecord(e);o.setLinkedRecordID(n,t,r),this._setSentinelFieldInBackupRecord(e,t)},t.getLinkedRecordIDs=function(e,t){for(var r=0;r<this.__sources.length;r++){var n=this.__sources[r].get(e);if(n){var a=o.getLinkedRecordIDs(n,t);if(void 0!==a)return a}else if(null===n)return null}},t.setLinkedRecordIDs=function(e,t,r){this._createBackupRecord(e);var n=this._getSinkRecord(e);o.setLinkedRecordIDs(n,t,r),this._setSentinelFieldInBackupRecord(e,t)},e}();e.exports=u},function(e,t,r){"use strict";var n=r(6),o=r(55),a=r(38),i=r(0),s=r(23),l=r(16),c=l.EXISTENT,u=l.NONEXISTENT,d=r(1),f=d.ROOT_ID,p=d.ROOT_TYPE,h=function(){function e(e,t){this.__mutator=e,this._handlerProvider=t||null,this._proxies={}}var t=e.prototype;return t.publishSource=function(e,t){var r=this;e.getRecordIDs().forEach(function(t){var o=e.getStatus(t);if(o===c){var a=e.get(t);a&&(r.__mutator.getStatus(t)!==c&&r.create(t,n.getType(a)),r.__mutator.copyFieldsFromRecord(a,t))}else o===u&&r.delete(t)}),t&&t.length&&t.forEach(function(e){var t=r._handlerProvider&&r._handlerProvider(e.handle);t||i(!1,"RelayModernEnvironment: Expected a handler to be provided for handle `%s`.",e.handle),t.update(r,e)})},t.commitPayload=function(e,t){if(!t)return new a(this,e.fragment);var r=s(e.root,t),n=r.source,o=r.fieldPayloads;return this.publishSource(n,o),new a(this,e.fragment)},t.create=function(e,t){this.__mutator.create(e,t),delete this._proxies[e];var r=this.get(e);return r||i(!1,"RelayRecordSourceProxy#create(): Expected the created record to exist."),r},t.delete=function(e){e===f&&i(!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===c?new o(this,this.__mutator,e):t===u?null:void 0}return this._proxies[e]},t.getRoot=function(){var e=this.get(f);return e||(e=this.create(f,p)),e&&e.getType()===p||i(!1,"RelayRecordSourceProxy#getRoot(): Expected the source to contain a root record."),e},e}();e.exports=h},function(e,t,r){"use strict";var n=r(0),o=r(1).getStorageKey,a=function(){function e(e,t){this.__recordSource=e,this._readSelector=t}var t=e.prototype;return t.create=function(e,t){return this.__recordSource.create(e,t)},t.delete=function(e){this.__recordSource.delete(e)},t.get=function(e){return this.__recordSource.get(e)},t.getRoot=function(){return this.__recordSource.getRoot()},t._getRootField=function(e,t,r){var o=e.node.selections.find(function(e){return"LinkedField"===e.kind&&e.name===t});return o&&"LinkedField"===o.kind||n(!1,"RelayRecordSourceSelectorProxy#getRootField(): Cannot find root field `%s`, no such field is defined on GraphQL document `%s`.",t,e.node.name),o.plural!==r&&n(!1,"RelayRecordSourceSelectorProxy#getRootField(): Expected root field `%s` to be %s.",t,r?"plural":"singular"),o},t.getRootField=function(e){var t=this._getRootField(this._readSelector,e,!1),r=o(t,this._readSelector.variables);return this.getRoot().getLinkedRecord(r)},t.getPluralRootField=function(e){var t=this._getRootField(this._readSelector,e,!0),r=o(t,this._readSelector.variables);return this.getRoot().getLinkedRecords(r)},e}();e.exports=a},function(e,t,r){"use strict";var n=r(2)(r(10)),o=r(6),a=r(24),i=r(0),s=r(4),l=r(5),c=l.CONDITION,u=l.CLIENT_EXTENSION,d=l.DEFER,f=l.INLINE_FRAGMENT,p=l.LINKED_FIELD,h=l.LINKED_HANDLE,_=l.MODULE_IMPORT,v=l.SCALAR_FIELD,g=l.SCALAR_HANDLE,m=l.STREAM,y=r(7),b=y.generateClientID,R=y.isClientID,E=r(1),S=E.getArgumentValues,k=E.getHandleStorageKey,D=E.getStorageKey,I=E.MODULE_OPERATION_KEY,O=E.TYPENAME_KEY;function x(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{handleStrippedNulls:!1},o=t.dataID,a=t.node,i=t.variables;return new N(e,i,n).normalizeResponse(a,o,r)}var N=function(){function e(e,t,r){this._handleFieldPayloads=[],this._handleStrippedNulls=!0===r.handleStrippedNulls,this._incrementalPlaceholders=[],this._moduleImportPayloads=[],this._path=r.path?(0,n.default)(r.path):[],this._recordSource=e,this._variables=t}var t=e.prototype;return t.normalizeResponse=function(e,t,r){var n=this._recordSource.get(t);return n||i(!1,"RelayResponseNormalizer(): Expected root record `%s` to exist.",t),this._traverseSelections(e,n,r),{incrementalPlaceholders:this._incrementalPlaceholders,fieldPayloads:this._handleFieldPayloads,moduleImportPayloads:this._moduleImportPayloads}},t._getVariableValue=function(e){return this._variables.hasOwnProperty(e)||i(!1,"RelayResponseNormalizer(): Undefined variable `%s`.",e),this._variables[e]},t._getRecordType=function(e){var t=e[O];return null==t&&i(!1,"RelayResponseNormalizer(): Expected a typename for record `%s`.",JSON.stringify(e,null,2)),t},t._traverseSelections=function(e,t,r){for(var n=0;n<e.selections.length;n++){var a=e.selections[n];switch(a.kind){case v:case p:this._normalizeField(e,a,t,r);break;case c:this._getVariableValue(a.condition)===a.passingValue&&this._traverseSelections(a,t,r);break;case f:o.getType(t)===a.type&&this._traverseSelections(a,t,r);break;case h:case g:var s=a.args?S(a.args,this._variables):{},l=D(a,this._variables),y=k(a,this._variables);this._handleFieldPayloads.push({args:s,dataID:o.getDataID(t),fieldKey:l,handle:a.handle,handleKey:y});break;case _:this._normalizeModuleImport(e,a,t,r);break;case d:this._normalizeDefer(a,t,r);break;case m:this._normalizeStream(a,t,r);break;case u:var b=this._handleStrippedNulls;this._handleStrippedNulls=!1,this._traverseSelections(a,t,r),this._handleStrippedNulls=b;break;default:i(!1,"RelayResponseNormalizer(): Unexpected ast kind `%s`.",a.kind)}}},t._normalizeDefer=function(e,t,r){var a=null===e.if||this._getVariableValue(e.if);s("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",label:e.label,path:(0,n.default)(this._path),selector:{dataID:o.getDataID(t),node:e,variables:this._variables},typeName:o.getType(t)})},t._normalizeStream=function(e,t,r){this._traverseSelections(e,t,r);var a=null===e.if||this._getVariableValue(e.if);s("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,n.default)(this._path),parentID:o.getDataID(t),node:e,variables:this._variables})},t._normalizeModuleImport=function(e,t,r,a){"object"==typeof a&&a||i(!1,"RelayResponseNormalizer: Expected data for @module to be an object.");var s=this._getRecordType(a),l=a[I];null!=l&&this._moduleImportPayloads.push({data:a,dataID:o.getDataID(r),operationReference:l,path:(0,n.default)(this._path),typeName:s,variables:this._variables})},t._normalizeField=function(e,t,r,n){"object"==typeof n&&n||i(!1,"writeField(): Expected data for field `%s` to be an object.",t.name);var a=t.alias||t.name,l=D(t,this._variables),c=n[a];if(null==c){if(void 0===c&&!this._handleStrippedNulls)return;return s(e.kind===p&&null==e.concreteType||Object.prototype.hasOwnProperty.call(n,a),"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.",a,l),void o.setValue(r,l,null)}t.kind===v?o.setValue(r,l,c):t.kind===p?(this._path.push(a),t.plural?this._normalizePluralLink(t,r,l,c):this._normalizeLink(t,r,l,c),this._path.pop()):i(!1,"RelayResponseNormalizer(): Unexpected ast kind `%s` during normalization.",t.kind)},t._normalizeLink=function(e,t,r,n){"object"==typeof n&&n||i(!1,"RelayResponseNormalizer: Expected data for field `%s` to be an object.",r);var a=n.id||o.getLinkedRecordID(t,r)||b(o.getDataID(t),r);"string"!=typeof a&&i(!1,"RelayResponseNormalizer: Expected id on field `%s` to be a string.",r),o.setLinkedRecordID(t,r,a);var s=this._recordSource.get(a);if(s)this._validateRecordType(s,e,n);else{var l=e.concreteType||this._getRecordType(n);s=o.create(a,l),this._recordSource.set(a,s)}this._traverseSelections(e,s,n)},t._normalizePluralLink=function(e,t,r,n){var a=this;Array.isArray(n)||i(!1,"RelayResponseNormalizer: Expected data for field `%s` to be an array of objects.",r);var s=o.getLinkedRecordIDs(t,r),l=[];n.forEach(function(n,c){if(null!=n){a._path.push(String(c)),"object"!=typeof n&&i(!1,"RelayResponseNormalizer: Expected elements for field `%s` to be objects.",r);var u=n.id||s&&s[c]||b(o.getDataID(t),r,c);"string"!=typeof u&&i(!1,"RelayResponseNormalizer: Expected id of elements of field `%s` to be strings.",r),l.push(u);var d=a._recordSource.get(u);if(d)a._validateRecordType(d,e,n);else{var f=e.concreteType||a._getRecordType(n);d=o.create(u,f),a._recordSource.set(u,d)}a._traverseSelections(e,d,n),a._path.pop()}else l.push(n)}),o.setLinkedRecordIDs(t,r,l)},t._validateRecordType=function(e,t,r){var n="LinkedField"===t.kind&&t.concreteType||this._getRecordType(r);s(R(o.getDataID(e))||o.getType(e)===n,"RelayResponseNormalizer: Invalid record `%s`. Expected %s to be 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.",o.getDataID(e),O,o.getType(e),n)},e}();x=a.instrument("RelayResponseNormalizer.normalize",x),e.exports={normalize:x}},function(e,t,r){"use strict";var n=r(2)(r(3)),o=r(14),a=r(0),i=r(5).LINKED_FIELD,s=r(1).getHandleStorageKey;e.exports=function(e,t,r){var l=t.find(function(t){return t.kind===i&&t.name===e.name&&t.alias===e.alias&&o(t.args,e.args)});l&&l.kind===i||a(!1,"cloneRelayHandleSourceField: Expected a corresponding source field for handle `%s`.",e.handle);var c=s(e,r);return(0,n.default)({},l,{args:null,name:c,storageKey:c})}},function(e,t,r){"use strict";var n=r(6),o=r(0),a=r(5),i=a.CONDITION,s=a.CLIENT_EXTENSION,l=a.FRAGMENT_SPREAD,c=a.INLINE_FRAGMENT,u=a.LINKED_FIELD,d=a.MODULE_IMPORT,f=a.SCALAR_FIELD,p=r(1),h=p.FRAGMENTS_KEY,_=p.FRAGMENT_OWNER_KEY,v=p.FRAGMENT_PROP_NAME_KEY,g=p.ID_KEY,m=p.MODULE_COMPONENT_KEY,y=p.getArgumentValues,b=p.getStorageKey;var R=function(){function e(e,t,r){this._recordSource=e,this._seenRecords={},this._isMissingData=!1,this._variables=t,this._owner=r}var t=e.prototype;return t.read=function(e,t){return{data:this._traverse(e,t,null),dataID:t,node:e,seenRecords:this._seenRecords,variables:this._variables,isMissingData:this._isMissingData,owner:this._owner}},t._traverse=function(e,t,r){var n=this._recordSource.get(t);if(this._seenRecords[t]=n,null==n)return void 0===n&&(this._isMissingData=!0),n;var o=r||{};return this._traverseSelections(e.selections,n,o),o},t._getVariableValue=function(e){return this._variables.hasOwnProperty(e)||o(!1,"RelayReader(): Undefined variable `%s`.",e),this._variables[e]},t._traverseSelections=function(e,t,r){for(var a=0;a<e.length;a++){var p=e[a];switch(p.kind){case f:this._readScalar(p,t,r);break;case u:p.plural?this._readPluralLink(p,t,r):this._readLink(p,t,r);break;case i:this._getVariableValue(p.condition)===p.passingValue&&this._traverseSelections(p.selections,t,r);break;case c:var h=n.getType(t);null!=h&&h===p.type&&this._traverseSelections(p.selections,t,r);break;case l:this._createFragmentPointer(p,t,r);break;case d:this._readModuleImport(p,t,r);break;case s:var _=this._isMissingData;this._traverseSelections(p.selections,t,r),this._isMissingData=_;break;default:o(!1,"RelayReader(): Unexpected ast kind `%s`.",p.kind)}}},t._readScalar=function(e,t,r){var o,a=null!==(o=e.alias)&&void 0!==o?o:e.name,i=b(e,this._variables),s=n.getValue(t,i);void 0===s&&(this._isMissingData=!0),r[a]=s},t._readLink=function(e,t,r){var a,i=null!==(a=e.alias)&&void 0!==a?a:e.name,s=b(e,this._variables),l=n.getLinkedRecordID(t,s);if(null==l)return r[i]=l,void(void 0===l&&(this._isMissingData=!0));var c=r[i];null!=c&&"object"!=typeof c&&o(!1,"RelayReader(): Expected data for field `%s` on record `%s` to be an object, got `%s`.",i,n.getDataID(t),c),r[i]=this._traverse(e,l,c)},t._readPluralLink=function(e,t,r){var a,i=this,s=null!==(a=e.alias)&&void 0!==a?a:e.name,l=b(e,this._variables),c=n.getLinkedRecordIDs(t,l);if(null==c)return r[s]=c,void(void 0===c&&(this._isMissingData=!0));var u=r[s];null==u||Array.isArray(u)||o(!1,"RelayReader(): Expected data for field `%s` on record `%s` to be an array, got `%s`.",s,n.getDataID(t),u);var d=u||[];c.forEach(function(r,a){if(null==r)return void 0===r&&(i._isMissingData=!0),void(d[a]=r);var l=d[a];null!=l&&"object"!=typeof l&&o(!1,"RelayReader(): Expected data for field `%s` on record `%s` to be an object, got `%s`.",s,n.getDataID(t),l),d[a]=i._traverse(e,r,l)}),r[s]=d},t._readModuleImport=function(e,t,r){var o=n.getValue(t,m);null!=o?(this._createFragmentPointer({kind:"FragmentSpread",name:e.fragmentName,args:null},t,r),r[v]=e.fragmentPropName,r[m]=o):void 0===o&&(this._isMissingData=!0)},t._createFragmentPointer=function(e,t,r){var a=r[h];null==a&&(a=r[h]={}),"object"==typeof a&&a||o(!1,"RelayReader: Expected fragment spread data to be an object, got `%s`.",a),null==r[g]&&(r[g]=n.getDataID(t)),a[e.name]=e.args?y(e.args,this._variables):{},r[_]=this._owner},e}();e.exports={read:function(e,t,r){var n,o=t.dataID,a=t.node,i=t.variables;return new R(e,i,null!==(n=r)&&void 0!==n?n:null).read(a,o)}}},function(e,t,r){"use strict";e.exports=function e(t,r){if(t===r||"object"!=typeof t||!t||"object"!=typeof r||!r)return r;var n=!1,o=Array.isArray(t)?t:null,a=Array.isArray(r)?r:null;if(o&&a)n=a.reduce(function(t,r,n){var i=e(o[n],r);return i!==a[n]&&(Object.isFrozen(a)||(a[n]=i)),t&&i===o[n]},!0)&&o.length===a.length;else if(!o&&!a){var i=t,s=r,l=Object.keys(i),c=Object.keys(s);n=c.reduce(function(t,r){var n=e(i[r],s[r]);return n!==s[r]&&(Object.isFrozen(s)||(s[r]=n)),t&&n===i[r]},!0)&&l.length===c.length}return n?t:r}},function(e,t,r){"use strict";var n=r(8);e.exports={convertFetch:function(e){return function(t,r,o,a){var i=e(t,r,o,a);return i instanceof Error?n.create(function(e){return e.error(i)}):n.from(i)}},convertSubscribe:function(e){return function(t,r,o){return n.fromLegacy(function(n){return e(t,r,o,n)})}}}},function(e,t,r){"use strict";var n=r(0),o=r(9);e.exports=function(e,t){var r=null!=e.id?e.id:e.text;return null==r&&n(!1,"getRequestParametersIdentifier: Expected request `%s` to have either a valid `id` or `text` property",e.name),r+JSON.stringify(o(t))}},function(e,t,r){"use strict";var n=r(21),o=n.getDataIDsFromFragment,a=n.getVariablesFromFragment,i=r(22).getFragmentOwner,s=r(9);e.exports=function(e,t){var r,n,l,c=i(e,t),u=a({},e,t,c),d=o(e,t),f=Array.isArray(c)?c.map(function(e){var t,r;return null!==(t=null!==(r=null===e||void 0===e?void 0:e.node.params.id)&&void 0!==r?r:null===e||void 0===e?void 0:e.node.params.name)&&void 0!==t?t:""}):null!==(r=null!==(n=null===c||void 0===c?void 0:c.node.params.id)&&void 0!==n?n:null===c||void 0===c?void 0:c.node.params.name)&&void 0!==r?r:"",p=Array.isArray(c)?c.map(function(e){var t;return null!==(t=null===e||void 0===e?void 0:e.variables)&&void 0!==t?t:null}):null!==(l=null===c||void 0===c?void 0:c.variables)&&void 0!==l?l:null;return"".concat(e.name,"-").concat(JSON.stringify(s({dataIDs:d,fragmentVariables:u,fragmentOwnerID:f,fragmentOwnerVariables:p})))}},function(e,t,r){"use strict";var n=r(5),o=r(18),a=r(19),i=r(26),s=r(21),l=r(15),c=r(27),u=r(32),d=r(34),f=r(13),p=r(12),h=r(53),_=r(22),v=r(31),g=r(63),m=r(67),y=r(68),b=r(8),R=r(24),E=r(69),S=r(1),k=r(33),D=r(70),I=r(71),O=r(72),x=r(74),N=r(75),L=r(17),F=r(76),P=r(78),w=r(45),M=r(79),A=r(20),T=r(44),j=r(25),C=r(28),U=r(42),V=r(80),K=r(9),G=r(7).generateClientID;if("function"!=typeof Map||"function"!=typeof Set||"function"!=typeof Promise||"function"!=typeof Object.assign)throw new Error("relay-runtime requires Map, Set, Promise, and Object.assign to exist. Use a polyfill to provide these for older browsers.");e.exports={Environment:h,Network:m,Observable:b,QueryResponseCache:E,RecordSource:p,Store:g,areEqualSelectors:s.areEqualSelectors,createFragmentSpecResolver:s.createFragmentSpecResolver,createOperationDescriptor:s.createOperationDescriptor,getDataIDsFromFragment:s.getDataIDsFromFragment,getDataIDsFromObject:s.getDataIDsFromObject,getFragment:v.getFragment,getFragmentOwner:_.getFragmentOwner,getFragmentOwners:_.getFragmentOwners,getPaginationFragment:v.getPaginationFragment,getRefetchableFragment:v.getRefetchableFragment,getRequest:v.getRequest,getSingularSelector:s.getSingularSelector,getPluralSelector:s.getPluralSelector,getSelector:s.getSelector,getSelectorsFromObject:s.getSelectorsFromObject,getStorageKey:S.getStorageKey,getVariablesFromSingularFragment:s.getVariablesFromSingularFragment,getVariablesFromPluralFragment:s.getVariablesFromPluralFragment,getVariablesFromFragment:s.getVariablesFromFragment,getVariablesFromObject:s.getVariablesFromObject,graphql:v.graphql,MutationTypes:l.MutationTypes,RangeOperations:l.RangeOperations,DefaultHandlerProvider:u,ConnectionHandler:a,ViewerHandler:k,applyOptimisticMutation:D,commitLocalUpdate:I,commitMutation:O,fetchQuery:P,isRelayModernEnvironment:j,requestSubscription:V,ConnectionInterface:i,RelayProfiler:R,RelayConcreteNode:n,RelayError:d,RelayFeatureFlags:f,RelayNetworkLoggerTransaction:y,DEFAULT_HANDLE_KEY:c.DEFAULT_HANDLE_KEY,FRAGMENTS_KEY:S.FRAGMENTS_KEY,FRAGMENT_OWNER_KEY:S.FRAGMENT_OWNER_KEY,ID_KEY:S.ID_KEY,REF_KEY:S.REF_KEY,REFS_KEY:S.REFS_KEY,ROOT_ID:S.ROOT_ID,ROOT_TYPE:S.ROOT_TYPE,TYPENAME_KEY:S.TYPENAME_KEY,createRelayNetworkLogger:N,deepFreeze:L,generateClientID:G,getRelayHandleKey:A,isScalarAndEqual:C,recycleNodesInto:U,stableCopy:K,getFragmentIdentifier:w,getFragmentSpecIdentifier:M,getRequestParametersIdentifier:T,__internal:{createRelayContext:x,getModernOperationVariables:o.getOperationVariables,fetchQuery:F.fetchQuery,fetchQueryDeduped:F.fetchQueryDeduped,getPromiseForRequestInFlight:F.getPromiseForRequestInFlight,getObservableForRequestInFlight:F.getObservableForRequestInFlight}}},function(e,t,r){"use strict";var n=r(2),o=n(r(3)),a=n(r(11)),i=r(13),s=r(14),l=r(0),c=r(28),u=r(22).getFragmentOwners,d=r(30),f=d.areEqualSelectors,p=d.getSelectorsFromObject,h=r(1).ROOT_ID,_=function(){function e(e,t,r,n){var o=this;(0,a.default)(this,"_onChange",function(){o._stale=!0,"function"==typeof o._callback&&o._callback()}),this._callback=n,this._context=e,this._data={},this._fragments=t,this._props=r,this._resolvers={},this._stale=!1,this.setProps(r)}var t=e.prototype;return t.dispose=function(){for(var e in this._resolvers)this._resolvers.hasOwnProperty(e)&&m(this._resolvers[e])},t.resolve=function(){if(this._stale){var e,t=this._data;for(var r in this._resolvers)if(this._resolvers.hasOwnProperty(r)){var n=this._resolvers[r],a=t[r];if(n){var i=n.resolve();(e||i!==a)&&((e=e||(0,o.default)({},t))[r]=i)}else{var s=this._props[r],l=void 0!==s?s:null;!e&&c(l,a)||((e=e||(0,o.default)({},t))[r]=l)}}this._data=e||t,this._stale=!1}return this._data},t.setCallback=function(e){this._callback=e},t.setProps=function(e){var t=i.PREFER_FRAGMENT_OWNER_OVER_CONTEXT?p({},this._fragments,e,u(this._fragments,e)):p(this._context.variables,this._fragments,e);for(var r in t)if(t.hasOwnProperty(r)){var n=t[r],o=this._resolvers[r];null==n?(null!=o&&o.dispose(),o=null):Array.isArray(n)?null==o?o=new g(this._context.environment,n,this._onChange):(o instanceof g||l(!1,"RelayModernFragmentSpecResolver: Expected prop `%s` to always be an array.",r),o.setSelectors(n)):null==o?o=new v(this._context.environment,n,this._onChange):(o instanceof v||l(!1,"RelayModernFragmentSpecResolver: Expected prop `%s` to always be an object.",r),o.setSelector(n)),this._resolvers[r]=o}this._props=e,this._stale=!0},t.setVariables=function(e,t){for(var r in this._resolvers)if(this._resolvers.hasOwnProperty(r)){var n=this._resolvers[r];n&&n.setVariables(e,t)}this._stale=!0},e}(),v=function(){function e(e,t,r){var n=this;(0,a.default)(this,"_onChange",function(e){n._data=e.data,n._callback()});var o=e.lookup(t.selector,t.owner);this._callback=r,this._data=o.data,this._environment=e,this._ownedSelector=t,this._subscription=e.subscribe(o,this._onChange)}var t=e.prototype;return t.dispose=function(){this._subscription&&(this._subscription.dispose(),this._subscription=null)},t.resolve=function(){return this._data},t.setSelector=function(e){if(null==this._subscription||!f(e,this._ownedSelector)){this.dispose();var t=this._environment.lookup(e.selector,e.owner);this._data=t.data,this._ownedSelector=e,this._subscription=this._environment.subscribe(t,this._onChange)}},t.setVariables=function(e,t){var r;if(i.PREFER_FRAGMENT_OWNER_OVER_CONTEXT){if(s(e,this._ownedSelector.selector.variables))return;r={owner:t?{fragment:{dataID:h,node:t.fragment,variables:e},node:t,root:{dataID:h,node:t.operation,variables:e},variables:e}:null,selector:(0,o.default)({},this._ownedSelector.selector,{variables:e})}}else r=(0,o.default)({},this._ownedSelector,{selector:(0,o.default)({},this._ownedSelector.selector,{variables:e})});this.setSelector(r)},e}(),g=function(){function e(e,t,r){var n=this;(0,a.default)(this,"_onChange",function(e){n._stale=!0,n._callback()}),this._callback=r,this._data=[],this._environment=e,this._resolvers=[],this._stale=!0,this.setSelectors(t)}var t=e.prototype;return t.dispose=function(){this._resolvers.forEach(m)},t.resolve=function(){if(this._stale){for(var e,t=this._data,r=0;r<this._resolvers.length;r++){var n=t[r],o=this._resolvers[r].resolve();(e||o!==n)&&(e=e||t.slice(0,r)).push(o)}e||this._resolvers.length===t.length||(e=t.slice(0,this._resolvers.length)),this._data=e||t,this._stale=!1}return this._data},t.setSelectors=function(e){for(;this._resolvers.length>e.length;){this._resolvers.pop().dispose()}for(var t=0;t<e.length;t++)t<this._resolvers.length?this._resolvers[t].setSelector(e[t]):this._resolvers[t]=new v(this._environment,e[t],this._onChange);this._stale=!0},t.setVariables=function(e,t){this._resolvers.forEach(function(r){return r.setVariables(e,t)}),this._stale=!0},e}();function m(e){e&&e.dispose()}e.exports=_},function(e,t,r){"use strict";var n=r(18).getOperationVariables,o=r(1).ROOT_ID;e.exports={createOperationDescriptor:function(e,t){var r=e.operation,a=n(r,t),i=o;return{fragment:{dataID:i,node:e.fragment,variables:a},node:e,root:{dataID:i,node:r,variables:a},variables:a}}}},function(e,t){e.exports=function(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t<e.length;t++)r[t]=e[t];return r}}},function(e,t){e.exports=function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}},function(e,t){e.exports=o},function(e,t,r){"use strict";(function(t){var n=r(2)(r(3)),o=r(35),a=r(21),i=r(32),s=r(12),l=r(58),c=r(8),u=r(60),d=r(0),f=r(23),p=r(4),h=function(){function e(e){var o,s,l=this;this.configName=e.configName;var c=e.handlerProvider?e.handlerProvider:i,f=e.operationLoader;null!=f&&("object"!=typeof f||"function"!=typeof f.get||"function"!=typeof f.load)&&d(!1,"RelayModernEnvironment: Expected `operationLoader` to be an object with get() and load() functions, got `%s`.",f),this._operationLoader=f,this._network=e.network,this._publishQueue=null!==(o=e.publishQueue)&&void 0!==o?o:new u(e.store,c),this._scheduler=null!==(s=e.scheduler)&&void 0!==s?s:null,this._store=e.store,this.unstable_internal=(0,n.default)({},a,{getOperationTracker:function(){return l._operationTracker}}),this.__setNet=function(e){return l._network=e};var p=r(62).inspect;this.DEBUG_inspect=function(e){return p(l,e)};var h=void 0!==t?t:"undefined"!=typeof window?window:void 0,_=h&&h.__RELAY_DEVTOOLS_HOOK__;_&&_.registerEnvironment(this),null!=e.missingFieldHandlers&&(this._missingFieldHandlers=e.missingFieldHandlers),null!=e.operationTracker&&(this._operationTracker=e.operationTracker)}var h=e.prototype;return h.getStore=function(){return this._store},h.getNetwork=function(){return this._network},h.applyUpdate=function(e){var t=this;return this._publishQueue.applyUpdate(e),this._publishQueue.run(),{dispose:function(){t._publishQueue.revertUpdate(e),t._publishQueue.run()}}},h.revertUpdate=function(e){this._publishQueue.revertUpdate(e),this._publishQueue.run()},h.replaceUpdate=function(e,t){this._publishQueue.revertUpdate(e),this._publishQueue.applyUpdate(t),this._publishQueue.run()},h.applyMutation=function(e){var t=e.operation,r=e.optimisticResponse,n=e.optimisticUpdater;return this.applyUpdate({operation:t,selectorStoreUpdater:n,response:r||null})},h.check=function(e){return null==this._missingFieldHandlers?this._store.check(e):this._checkSelectorAndHandleMissingFields(e,this._missingFieldHandlers)},h.commitPayload=function(e,t){var r=f(e.root,t);this._publishQueue.commitPayload(e,r),this._publishQueue.run()},h.commitUpdate=function(e){this._publishQueue.commitUpdate(e),this._publishQueue.run()},h.lookup=function(e,t){return this._store.lookup(e,t)},h.subscribe=function(e,t){return this._store.subscribe(e,t)},h.retain=function(e){return this._store.retain(e)},h._checkSelectorAndHandleMissingFields=function(e,t){var r=new s,n=o.check(this._store.getSource(),r,e,t,this._operationLoader);return r.size()>0&&(this._publishQueue.commitSource(r),this._publishQueue.run()),n},h.execute=function(e){var t=this,r=e.operation,n=e.cacheConfig,o=e.updater;return c.create(function(e){var a=t._network.execute(r.node.params,r.variables,n||{}),i=l.execute({operation:r,operationLoader:t._operationLoader,optimisticUpdate:null,publishQueue:t._publishQueue,scheduler:t._scheduler,sink:e,source:a,updater:o,operationTracker:t._operationTracker});return function(){return i.cancel()}})},h.executeMutation=function(e){var t=this,r=e.operation,n=e.optimisticResponse,o=e.optimisticUpdater,a=e.updater,i=e.uploadables;return c.create(function(e){var s,c;(n||o)&&(s={operation:r,selectorStoreUpdater:o,response:null!==(c=n)&&void 0!==c?c:null});var u=t._network.execute(r.node.params,r.variables,{force:!0},i),d=l.execute({operation:r,operationLoader:t._operationLoader,optimisticUpdate:s,publishQueue:t._publishQueue,scheduler:t._scheduler,sink:e,source:u,updater:a,operationTracker:t._operationTracker});return function(){return d.cancel()}})},h.executeWithSource=function(e){var t=this,r=e.operation,n=e.source;return c.create(function(e){var o=l.execute({operation:r,operationLoader:t._operationLoader,optimisticUpdate:null,publishQueue:t._publishQueue,scheduler:t._scheduler,sink:e,source:n});return function(){return o.cancel()}})},h.sendQuery=function(e){var t=e.cacheConfig,r=e.onCompleted,n=e.onError,o=e.onNext,a=e.operation;return p(!1,"environment.sendQuery() is deprecated. Update to the latest version of react-relay, and use environment.execute()."),this.execute({operation:a,cacheConfig:t}).subscribeLegacy({onNext:o,onError:n,onCompleted:r})},h.sendMutation=function(e){var t=e.onCompleted,r=e.onError,n=e.operation,o=e.optimisticResponse,a=e.optimisticUpdater,i=e.updater,s=e.uploadables;return p(!1,"environment.sendMutation() is deprecated. Update to the latest version of react-relay, and use environment.executeMutation()."),this.executeMutation({operation:n,optimisticResponse:o,optimisticUpdater:a,updater:i,uploadables:s}).subscribeLegacy({onNext:function(e){t&&t(e.errors)},onError:r,onCompleted:t})},h.toJSON=function(){var e;return"RelayModernEnvironment(".concat(null!==(e=this.configName)&&void 0!==e?e:"",")")},e}();h.prototype["@@RelayModernEnvironment"]=!0,e.exports=h}).call(this,r(54))},function(e,t){var r;r=function(){return this}();try{r=r||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(r=window)}e.exports=r},function(e,t,r){"use strict";var n=r(0),o=r(7).generateClientID,a=r(1).getStableStorageKey,i=function(){function e(e,t,r){this._dataID=r,this._mutator=t,this._source=e}var t=e.prototype;return t.copyFieldsFrom=function(e){this._mutator.copyFields(e.getDataID(),this._dataID)},t.getDataID=function(){return this._dataID},t.getType=function(){var e=this._mutator.getType(this._dataID);return null==e&&n(!1,"RelayRecordProxy: Cannot get the type of deleted record `%s`.",this._dataID),e},t.getValue=function(e,t){var r=a(e,t);return this._mutator.getValue(this._dataID,r)},t.setValue=function(e,t,r){s(e)||n(!1,"RelayRecordProxy#setValue(): Expected a scalar or array of scalars, got `%s`.",JSON.stringify(e));var o=a(t,r);return this._mutator.setValue(this._dataID,o,e),this},t.getLinkedRecord=function(e,t){var r=a(e,t),n=this._mutator.getLinkedRecordID(this._dataID,r);return null!=n?this._source.get(n):n},t.setLinkedRecord=function(t,r,o){t instanceof e||n(!1,"RelayRecordProxy#setLinkedRecord(): Expected a record, got `%s`.",t);var i=a(r,o),s=t.getDataID();return this._mutator.setLinkedRecordID(this._dataID,i,s),this},t.getOrCreateLinkedRecord=function(e,t,r){var n=this.getLinkedRecord(e,r);if(!n){var i=a(e,r),s=o(this.getDataID(),i);n=this._source.create(s,t),this.setLinkedRecord(n,e,r)}return n},t.getLinkedRecords=function(e,t){var r=this,n=a(e,t),o=this._mutator.getLinkedRecordIDs(this._dataID,n);return null==o?o:o.map(function(e){return null!=e?r._source.get(e):e})},t.setLinkedRecords=function(e,t,r){Array.isArray(e)||n(!1,"RelayRecordProxy#setLinkedRecords(): Expected records to be an array, got `%s`.",e);var o=a(t,r),i=e.map(function(e){return e&&e.getDataID()});return this._mutator.setLinkedRecordIDs(this._dataID,o,i),this},e}();function s(e){return null==e||"object"!=typeof e||Array.isArray(e)&&e.every(s)}e.exports=i},function(e,t){e.exports=a},function(e,t){e.exports=i},function(e,t,r){"use strict";var n=r(2)(r(10)),o=r(34),a=r(13),i=r(12),s=r(6),l=r(8),c=r(39),u=r(0),d=r(7).generateClientID,f=r(1),p=f.ROOT_TYPE,h=f.TYPENAME_KEY,_=f.getStorageKey;var v=function(){function e(e){var t,r=this,n=e.operation,o=e.operationLoader,a=e.optimisticUpdate,i=e.publishQueue,s=e.scheduler,l=e.sink,c=e.source,u=e.updater,d=e.operationTracker;this._incrementalPlaceholders=new Map,this._nextSubscriptionId=0,this._operation=n,this._operationLoader=o,this._optimisticUpdate=null!==(t=a)&&void 0!==t?t:null,this._publishQueue=i,this._scheduler=s,this._sink=l,this._source=new Map,this._state="started",this._updater=u,this._subscriptions=new Map,this._operationTracker=d;var f=this._nextSubscriptionId++;if(c.subscribe({complete:function(){return r._complete(f)},error:function(e){return r._error(f,e)},next:function(e){try{r._next(f,e)}catch(e){l.error(e)}},start:function(e){return r._start(f,e)}}),null!=a){i.applyUpdate(a);var p=this._publishQueue.run();this._updateOperationTracker(p)}}var t=e.prototype;return t.cancel=function(){if("completed"!==this._state){this._state="completed",0!==this._subscriptions.size&&(this._subscriptions.forEach(function(e){return e.unsubscribe()}),this._subscriptions.clear());var e=this._optimisticUpdate;null!==e&&(this._optimisticUpdate=null,this._publishQueue.revertUpdate(e),this._publishQueue.run()),this._incrementalPlaceholders.clear(),this._completeOperationTracker()}},t._schedule=function(e){var t=this,r=this._scheduler;if(null!=r){var n=this._nextSubscriptionId++;l.create(function(t){var n=r.schedule(function(){try{e(),t.complete()}catch(e){t.error(e)}});return function(){return r.cancel(n)}}).subscribe({complete:function(){return t._complete(n)},error:function(e){return t._error(n,e)},start:function(e){return t._start(n,e)}})}else e()},t._complete=function(e){this._subscriptions.delete(e),0===this._subscriptions.size&&(this.cancel(),this._sink.complete())},t._error=function(e,t){this.cancel(),this._sink.error(t)},t._start=function(e,t){this._subscriptions.set(e,t)},t._next=function(e,t){var r=this;this._schedule(function(){r._handleNext(t)})},t._handleNext=function(e){var t;if("completed"!==this._state){if(null==e.data){var r=e.errors,n=o.create("RelayNetwork","No data returned for operation `%s`, got error(s):\n%s\n\nSee the error `source` property for more information.",this._operation.node.params.name,r?r.map(function(e){return e.message}).join("\n"):"(No errors)");throw n.source={errors:r,operation:this._operation.node,variables:this._operation.variables},n}var a=e,i=!0===(null===(t=e.extensions)||void 0===t?void 0:t.isOptimistic);if(i&&"started"!==this._state&&u(!1,"RelayModernQueryExecutor: optimistic payload received after server payload."),this._state="loading",i)this._processOptimisticResponse(a);else{var s=e.path,l=e.label;null!=s||null!=l?"string"==typeof l&&Array.isArray(s)?this._processIncrementalResponse(l,s,a):u(!1,"RelayModernQueryExecutor: invalid incremental payload, expected `path` and `label` to either both be null/undefined, or `path` to be an `Array<string | number>` and `label` to be a `string`."):this._processResponse(a)}this._sink.next(e)}else console.warn("RelayModernQueryExecutor: payload received after execution "+"completed: '".concat(JSON.stringify(e),"'"))},t._processOptimisticResponse=function(e){null!==this._optimisticUpdate&&u(!1,"environment.execute: only support one optimistic response per execute.");var t=g(e,this._operation.root,p,[]),r=t.incrementalPlaceholders,n=t.moduleImportPayloads;(null!=r&&0!==r.length||null!=n&&0!==n.length)&&u(!1,"RelayModernQueryExecutor: optimistic responses cannot be returned for operations that use incremental data delivery (@match, @defer, and @stream)."),this._optimisticUpdate={source:t.source,fieldPayloads:t.fieldPayloads},this._publishQueue.applyUpdate(this._optimisticUpdate);var o=this._publishQueue.run();this._updateOperationTracker(o)},t._processResponse=function(e){null!==this._optimisticUpdate&&(this._publishQueue.revertUpdate(this._optimisticUpdate),this._optimisticUpdate=null);var t=g(e,this._operation.root,p,[]);this._incrementalPlaceholders.clear(),this._source.clear(),this._processPayloadFollowups(t),this._publishQueue.commitPayload(this._operation,t,this._updater);var r=this._publishQueue.run();this._updateOperationTracker(r)},t._processPayloadFollowups=function(e){var t=this,r=e.incrementalPlaceholders,n=e.moduleImportPayloads;if(n&&0!==n.length){var o=this._operationLoader;o||u(!1,"RelayModernEnvironment: Expected an operationLoader to be configured when using `@match`."),n.forEach(function(e){t._processModuleImportPayload(e,o)})}r&&0!==r.length&&(a.ENABLE_INCREMENTAL_DELIVERY||u(!1,"RelayModernEnvironment: Unexpected use of @defer/@stream in operation `%s`.",this._operation.node.params.name),r.forEach(function(r){t._processIncrementalPlaceholder(e,r)}))},t._processModuleImportPayload=function(e,t){var r=this,n=this._nextSubscriptionId++;l.from(new Promise(function(r,n){t.load(e.operationReference).then(r,n)})).map(function(t){null!=t&&r._schedule(function(){r._handleModuleImportPayload(e,t)})}).subscribe({complete:function(){return r._complete(n)},error:function(e){return r._error(n,e)},start:function(e){return r._start(n,e)}})},t._handleModuleImportPayload=function(e,t){var r={dataID:e.dataID,variables:e.variables,node:t},n=g({data:e.data},r,e.typeName,e.path);this._processPayloadFollowups(n),this._publishQueue.commitRelayPayload(n);var o=this._publishQueue.run();this._updateOperationTracker(o)},t._processIncrementalPlaceholder=function(e,t){var r,n,o=t.kind,a=t.label,i=t.path.map(String).join("."),s=this._incrementalPlaceholders.get(a);null==s?(s={kind:o,placeholdersByPath:new Map},this._incrementalPlaceholders.set(a,s)):s.kind!==o&&u(!1,"RelayModernEnvironment: Received inconsistent data for label `%s`, expected `@%s` data but got `@%s` data.",a,s.kind,o),s.placeholdersByPath.set(i,t),n="stream"===t.kind?t.parentID:t.selector.dataID;var l=e.source.get(n),c=(null!==(r=e.fieldPayloads)&&void 0!==r?r:[]).filter(function(e){var t=d(e.dataID,e.fieldKey);return e.dataID===n||t===n});null!=l&&this._source.set(n,{record:l,fieldPayloads:c})},t._processIncrementalResponse=function(e,t,r){a.ENABLE_INCREMENTAL_DELIVERY||u(!1,"RelayModernEnvironment: Unexpected use of @defer/@stream in operation `%s`.",this._operation.node.params.name);var n=this._incrementalPlaceholders.get(e);if(null==n&&u(!1,"RelayModernEnvironment: Received response for unknown label "+"'".concat(e,"'. Known labels: ").concat(Array.from(this._incrementalPlaceholders.keys()).join(", "),".")),"defer"===n.kind){var o=t.map(String).join("."),i=n.placeholdersByPath.get(o);null==i&&u(!1,"RelayModernEnvironment: Received response for unknown path `%s` for label `%s`. Known paths: %s.",o,e,Array.from(n.placeholdersByPath.keys()).join(", ")),"defer"!==i.kind&&u(!1,"RelayModernEnvironment: Expected data for path `%s` for label `%s` to be data for @defer, was `@%s`.",o,e,i.kind),this._processDeferResponse(e,t,i,r)}else{var s=t.slice(0,-2).map(String).join("."),l=n.placeholdersByPath.get(s);null==l&&u(!1,"RelayModernEnvironment: Received response for unknown path `%s` for label `%s`. Known paths: %s.",s,e,Array.from(n.placeholdersByPath.keys()).join(", ")),"stream"!==l.kind&&u(!1,"RelayModernEnvironment: Expected data for path `%s` for label `%s` to be data for @stream, was `@%s`.",s,e,l.kind),this._processStreamResponse(e,t,l,r)}},t._processDeferResponse=function(e,t,r,n){var o=r.selector.dataID,a=g(n,r.selector,r.typeName,r.path);this._processPayloadFollowups(a),this._publishQueue.commitRelayPayload(a);var s=this._source.get(o);null==s&&u(!1,"RelayModernEnvironment: Expected the parent record `%s` for @defer data to exist.",o);var l=s.fieldPayloads;if(0!==l.length){var c={errors:null,fieldPayloads:l,incrementalPlaceholders:null,moduleImportPayloads:null,source:new i};this._publishQueue.commitRelayPayload(c)}var d=this._publishQueue.run();this._updateOperationTracker(d)},t._processStreamResponse=function(e,t,r,o){var a,l,c,f=r.parentID,p=r.node,v=r.variables,m=o.data;"object"!=typeof m&&u(!1,"RelayModernEnvironment: Expected the GraphQL @stream payload `data` value to be an object.");var y=p.selections[0];(null==y||"LinkedField"!==y.kind||!0!==y.plural)&&u(!1,"RelayModernEnvironment: Expected @stream to be used on a plural field.");var b=null!==(a=y.alias)&&void 0!==a?a:y.name,R=_(y,v),E=this._source.get(f);null==E&&u(!1,"RelayModernEnvironment: Expected the parent record `%s` for @stream data to exist.",f);var S=E.record,k=E.fieldPayloads,D=s.getLinkedRecordIDs(S,R);null==D&&u(!1,"RelayModernEnvironment: Expected record `%s` to have fetched field `%s` with @stream.",f,y.name);var I=t[t.length-1],O=parseInt(I,10);O===I&&O>=0||u(!1,"RelayModernEnvironment: Expected path for @stream to end in a positive integer index, got `%s`",I);var x=(null!==(l=m.id)&&void 0!==l?l:D&&D[O])||d(f,R,O);"string"!=typeof x&&u(!1,"RelayModernEnvironment: Expected id of elements of field `%s` to be strings.",R);var N={dataID:x,node:y,variables:v},L=null!==(c=y.concreteType)&&void 0!==c?c:m[h];"string"!=typeof L&&u(!1,"RelayModernEnvironment: Expected @stream field `%s` to have a __typename.",y.name);var F=s.clone(S),P=(0,n.default)(D);P[O]=x,s.setLinkedRecordIDs(F,R,P),this._source.set(f,{record:F,fieldPayloads:k});var w=g(o,N,L,(0,n.default)(r.path).concat([b,String(O)]));if(this._processPayloadFollowups(w),this._publishQueue.commitPayload(this._operation,w,function(e){var t=e.get(f);if(null!=t){var r=t.getLinkedRecords(R);if(null!=r)if(r.length!==D.length||r.some(function(e,t){return D[t]!==(e&&e.getDataID())}))console.warn("RelayModernEnvironment: Received stale @stream payload, items for "+"field '".concat(y.name,"' on parent record '").concat(f,"' have changed."));else{var o=(0,n.default)(r);o[O]=e.get(x),t.setLinkedRecords(o,R)}else console.warn("RelayModernEnvironment: Received stale @stream payload, field "+"'".concat(y.name,"' on parent record '").concat(f,"' no longer exists."))}else console.warn("RelayModernEnvironment: Received stale @stream payload, parent "+"record '".concat(f,"' no longer exists."))}),0!==k.length){var M={errors:null,fieldPayloads:k,incrementalPlaceholders:null,moduleImportPayloads:null,source:new i};this._publishQueue.commitRelayPayload(M)}var A=this._publishQueue.run();this._updateOperationTracker(A)},t._updateOperationTracker=function(e){null!=this._operationTracker&&null!=e&&e.length>0&&this._operationTracker.update(this._operation,new Set(e))},t._completeOperationTracker=function(){null!=this._operationTracker&&this._operationTracker.complete(this._operation)},e}();function g(e,t,r,n){var o=e.data,a=e.errors,l=new i,u=s.create(t.dataID,r);l.set(t.dataID,u);var d=c.normalize(l,t,o,{handleStrippedNulls:!0,path:n});return{errors:a,incrementalPlaceholders:d.incrementalPlaceholders,fieldPayloads:d.fieldPayloads,moduleImportPayloads:d.moduleImportPayloads,source:l}}e.exports={execute:function(e){return new v(e)}}},function(e,t,r){"use strict";e.exports=function(e){return!!e&&"function"==typeof e.then}},function(e,t,r){"use strict";var n=r(61),o=r(12),a=r(41),i=r(36),s=r(37),l=r(38),c=r(0),u=r(23),d=function(){function e(e,t){this._backup=new o,this._handlerProvider=t||null,this._pendingBackupRebase=!1,this._pendingUpdaters=new Set,this._pendingData=new Set,this._pendingOptimisticUpdates=new Set,this._store=e,this._appliedOptimisticUpdates=new Set,this._gcHold=null}var t=e.prototype;return t.applyUpdate=function(e){(this._appliedOptimisticUpdates.has(e)||this._pendingOptimisticUpdates.has(e))&&c(!1,"RelayPublishQueue: Cannot apply the same update function more than once concurrently."),this._pendingOptimisticUpdates.add(e)},t.revertUpdate=function(e){this._pendingOptimisticUpdates.has(e)?this._pendingOptimisticUpdates.delete(e):this._appliedOptimisticUpdates.has(e)&&(this._pendingBackupRebase=!0,this._appliedOptimisticUpdates.delete(e))},t.revertAll=function(){this._pendingBackupRebase=!0,this._pendingOptimisticUpdates.clear(),this._appliedOptimisticUpdates.clear()},t.commitPayload=function(e,t,r){var n=t.fieldPayloads,o=t.source;this._pendingBackupRebase=!0,this._pendingData.add({kind:"payload",payload:{fieldPayloads:n,operation:e,source:o,updater:r}})},t.commitRelayPayload=function(e){var t=e.fieldPayloads,r=e.source;this._pendingBackupRebase=!0,this._pendingData.add({kind:"payload",payload:{fieldPayloads:t,operation:null,source:r,updater:null}})},t.commitUpdate=function(e){this._pendingBackupRebase=!0,this._pendingUpdaters.add(e)},t.commitSource=function(e){this._pendingBackupRebase=!0,this._pendingData.add({kind:"source",source:e})},t.run=function(){return this._pendingBackupRebase&&this._backup.size()&&(this._store.publish(this._backup),this._backup=new o),this._commitData(),this._commitUpdaters(),this._applyUpdates(),this._pendingBackupRebase=!1,this._appliedOptimisticUpdates.size>0?this._gcHold||(this._gcHold=this._store.holdGC()):this._gcHold&&(this._gcHold.dispose(),this._gcHold=null),this._store.notify()},t._getSourceFromPayload=function(e){var t=this,r=e.fieldPayloads,n=e.operation,o=e.source,a=e.updater,u=new i(this._store.getSource(),o),d=new s(u);if(r&&r.length&&r.forEach(function(e){var r=t._handlerProvider&&t._handlerProvider(e.handle);r||c(!1,"RelayModernEnvironment: Expected a handler to be provided for handle `%s`.",e.handle),r.update(d,e)}),a){var p=null===n||void 0===n?void 0:n.fragment;null==p&&c(!1,"RelayModernEnvironment: Expected a selector to be provided with updater function."),a(new l(d,p),f(o,p,n))}return o},t._commitData=function(){var e=this;this._pendingData.size&&(this._pendingData.forEach(function(t){var r;r="payload"===t.kind?e._getSourceFromPayload(t.payload):t.source,e._store.publish(r)}),this._pendingData.clear())},t._commitUpdaters=function(){var e=this;if(this._pendingUpdaters.size){var t=new o;this._pendingUpdaters.forEach(function(r){var o=new i(e._store.getSource(),t),a=new s(o);n.applyWithGuard(r,null,[a],null,"RelayPublishQueue:commitUpdaters")}),this._store.publish(t),this._pendingUpdaters.clear()}},t._applyUpdates=function(){var e=this;if(this._pendingOptimisticUpdates.size||this._pendingBackupRebase&&this._appliedOptimisticUpdates.size){var t=new o,r=new i(this._store.getSource(),t,this._backup),a=new s(r,this._handlerProvider);this._pendingBackupRebase&&this._appliedOptimisticUpdates.size&&this._appliedOptimisticUpdates.forEach(function(e){if(e.operation){var t,r=e.selectorStoreUpdater,o=e.operation,i=e.response,s=a.commitPayload(o,i);if(i)t=f(u(o.root,i).source,o.fragment,o);r&&n.applyWithGuard(r,null,[s,t],null,"RelayPublishQueue:applyUpdates")}else if(e.storeUpdater){var l=e.storeUpdater;n.applyWithGuard(l,null,[a],null,"RelayPublishQueue:applyUpdates")}else{var c=e.source,d=e.fieldPayloads;a.publishSource(c,d)}}),this._pendingOptimisticUpdates.size&&(this._pendingOptimisticUpdates.forEach(function(t){if(t.operation){var r,o=t.selectorStoreUpdater,i=t.operation,s=t.response,l=a.commitPayload(i,s);if(s)r=f(u(i.root,s).source,i.fragment,i);o&&n.applyWithGuard(o,null,[l,r],null,"RelayPublishQueue:applyUpdates")}else if(t.storeUpdater){var c=t.storeUpdater;n.applyWithGuard(c,null,[a],null,"RelayPublishQueue:applyUpdates")}else{var d=t.source,p=t.fieldPayloads;a.publishSource(d,p)}e._appliedOptimisticUpdates.add(t)}),this._pendingOptimisticUpdates.clear()),this._store.publish(t)}},e}();function f(e,t,n){var o=a.read(e,t,n).data,i=r(17);return o&&i(o),o}e.exports=d},function(e,t){e.exports=s},function(e,t,r){"use strict";var n=r(2),o=n(r(3)),a=n(r(10)),i=function(){},s=!1,l=function(){var e={style:"list-style-type: none; padding: 0; margin: 0 0 0 12px; font-style: normal"},t={style:"rgb(136, 19, 145)"},r={style:"color: #777"},n=function(e){return["span",{style:"font-style: italic"},e.__typename,["span",r,' {id: "',e.__id,'", …}']]},o=function(e){return null!=e&&"string"==typeof e.__id},i=function(e,t){this.key=e,this.value=t},s=function(t){var r=Object.keys(t).map(function(e){return["li",{},["object",{object:new i(e,t[e])}]]});return["ol",e].concat((0,a.default)(r))};return[{header:function(e){return o(e)?n(e):null},hasBody:function(e){return!0},body:function(e){return s(e)}},{header:function(e){if(e instanceof i){var a=o(e.value)?n(e.value):function(e,t){return null==e?["span",r,"undefined"]:["object",{object:e,config:t}]}(e.value);return["span",t,e.key,": ",a]}return null},hasBody:function(e){return o(e.value)},body:function(e){return s(e.value)}}]};i=function(e,t){var r;return function(){var e;s||(s=!0,null==window.devtoolsFormatters&&(window.devtoolsFormatters=[]),Array.isArray(window.devtoolsFormatters)&&(console.info('Make sure to select "Enable custom formatters" in the Chrome Developer Tools settings, tab "Preferences" under the "Console" section.'),(e=window.devtoolsFormatters).push.apply(e,(0,a.default)(l()))))}(),function e(t,r){var n=t.get(r);return null==n?n:new Proxy((0,o.default)({},n),{get:function(r,n){var o=r[n];if(null==o)return o;if("object"==typeof o){if("string"==typeof o.__ref)return e(t,o.__ref);if(Array.isArray(o.__refs))return o.__refs.map(function(r){return e(t,r)})}return o}})}(e.getStore().getSource(),null!==(r=t)&&void 0!==r?r:"client:root")},e.exports={inspect:i}},function(e,t,r){"use strict";var n=r(2)(r(3)),o=r(35),a=r(6),i=r(24),s=r(41),l=r(64),c=r(17),u=r(65),d=r(42),f=r(66),p=r(1).UNPUBLISH_RECORD_SENTINEL,h=function(){function e(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:f,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=e.getRecordIDs(),o=0;o<n.length;o++){var i=e.get(n[o]);i&&a.freeze(i)}this._gcScheduler=t,this._hasScheduledGC=!1,this._index=0,this._operationLoader=r,this._recordSource=e,this._roots=new Map,this._subscriptions=new Set,this._updatedRecordIDs={},this._gcHoldCounter=0,this._shouldScheduleGC=!1}var t=e.prototype;return t.getSource=function(){return this._recordSource},t.check=function(e){return o.check(this._recordSource,this._recordSource,e,[],this._operationLoader)},t.retain=function(e){var t=this,r=this._index++;return this._roots.set(r,e),{dispose:function(){t._roots.delete(r),t._scheduleGC()}}},t.lookup=function(e,t){var r=s.read(this._recordSource,e,t);return c(r),r},t.notify=function(){var e=this,t=[];return this._subscriptions.forEach(function(r){var n=e._updateSubscription(r);null!=n&&t.push(n)}),this._updatedRecordIDs={},t},t.publish=function(e){!function(e,t,r){for(var n=t.getRecordIDs(),o=0;o<n.length;o++){var i=n[o],s=t.get(i),l=e.get(i);if(s&&a.freeze(s),s===p)e.remove(i),r[i]=!0;else if(s&&l){var c=a.update(l,s);c!==l&&(a.freeze(c),r[i]=!0,e.set(i,c))}else null===s?(e.delete(i),null!==l&&(r[i]=!0)):s&&(e.set(i,s),r[i]=!0)}}(this._recordSource,e,this._updatedRecordIDs)},t.subscribe=function(e,t){var r=this,n={callback:t,snapshot:e};return this._subscriptions.add(n),{dispose:function(){r._subscriptions.delete(n)}}},t.holdGC=function(){var e=this;this._gcHoldCounter++;return{dispose:function(){e._gcHoldCounter>0&&(e._gcHoldCounter--,0===e._gcHoldCounter&&e._shouldScheduleGC&&(e._scheduleGC(),e._shouldScheduleGC=!1))}}},t.toJSON=function(){return"RelayModernStore()"},t.__getUpdatedRecordIDs=function(){return this._updatedRecordIDs},t._updateSubscription=function(e){var t=e.callback,r=e.snapshot;if(u(r,this._updatedRecordIDs)){var o=s.read(this._recordSource,r,r.owner),a=d(r.data,o.data);return o=(0,n.default)({},o,{data:a}),c(o),e.snapshot=o,o.data!==r.data?(t(o),r.owner):void 0}},t._scheduleGC=function(){var e=this;this._gcHoldCounter>0?this._shouldScheduleGC=!0:this._hasScheduledGC||(this._hasScheduledGC=!0,this._gcScheduler(function(){e.__gc(),e._hasScheduledGC=!1}))},t.__gc=function(){var e=this,t=new Set;if(this._roots.forEach(function(r){l.mark(e._recordSource,r,t,e._operationLoader)}),t.size)for(var r=this._recordSource.getRecordIDs(),n=0;n<r.length;n++){var o=r[n];t.has(o)||this._recordSource.remove(o)}else this._recordSource.clear()},e}();i.instrumentMethods(h.prototype,{lookup:"RelayModernStore.prototype.lookup",notify:"RelayModernStore.prototype.notify",publish:"RelayModernStore.prototype.publish",__gc:"RelayModernStore.prototype.__gc"}),e.exports=h},function(e,t,r){"use strict";var n=r(5),o=r(6),a=r(1),i=r(40),s=r(0),l=n.CONDITION,c=n.CLIENT_EXTENSION,u=n.DEFER,d=n.FRAGMENT_SPREAD,f=n.INLINE_FRAGMENT,p=n.LINKED_FIELD,h=n.MODULE_IMPORT,_=n.LINKED_HANDLE,v=n.SCALAR_FIELD,g=n.SCALAR_HANDLE,m=n.STREAM,y=a.getStorageKey,b=a.MODULE_OPERATION_KEY;var R=function(){function e(e,t,r,n){var o;this._operationLoader=null!==(o=n)&&void 0!==o?o:null,this._references=r,this._recordSource=e,this._variables=t}var t=e.prototype;return t.mark=function(e,t){this._traverse(e,t)},t._traverse=function(e,t){this._references.add(t);var r=this._recordSource.get(t);null!=r&&this._traverseSelections(e.selections,r)},t._getVariableValue=function(e){return this._variables.hasOwnProperty(e)||s(!1,"RelayReferenceMarker(): Undefined variable `%s`.",e),this._variables[e]},t._traverseSelections=function(e,t){var r=this;e.forEach(function(n){switch(n.kind){case p:n.plural?r._traversePluralLink(n,t):r._traverseLink(n,t);break;case l:r._getVariableValue(n.condition)===n.passingValue&&r._traverseSelections(n.selections,t);break;case f:var a=o.getType(t);null!=a&&a===n.type&&r._traverseSelections(n.selections,t);break;case d:s(!1,"RelayReferenceMarker(): Unexpected fragment spread `...%s`, expected all fragments to be inlined.",n.name);case _:var y=i(n,e,r._variables);y.plural?r._traversePluralLink(y,t):r._traverseLink(y,t);break;case u:case m:r._traverseSelections(n.selections,t);break;case v:case g:break;case h:r._traverseModuleImport(n,t);break;case c:r._traverseSelections(n.selections,t);break;default:s(!1,"RelayReferenceMarker: Unknown AST node `%s`.",n)}})},t._traverseModuleImport=function(e,t){var r=this._operationLoader;null===r&&s(!1,"RelayReferenceMarker: Expected an operationLoader to be configured when using `@module`.");var n=o.getValue(t,b);if(null!=n){var a=r.get(n);null!=a&&this._traverseSelections(a.selections,t)}},t._traverseLink=function(e,t){var r=y(e,this._variables),n=o.getLinkedRecordID(t,r);null!=n&&this._traverse(e,n)},t._traversePluralLink=function(e,t){var r=this,n=y(e,this._variables),a=o.getLinkedRecordIDs(t,n);null!=a&&a.forEach(function(t){null!=t&&r._traverse(e,t)})},e}();e.exports={mark:function(e,t,r,n){var o=t.dataID,a=t.node,i=t.variables;new R(e,i,r,n).mark(a,o)}}},function(e,t,r){"use strict";e.exports=function(e,t){for(var r=Object.keys(e.seenRecords),n=0;n<r.length;n++)if(t.hasOwnProperty(r[n]))return!0;return!1}},function(e,t){e.exports=l},function(e,t,r){"use strict";r(8);var n=r(0),o=r(43),a=o.convertFetch,i=o.convertSubscribe;e.exports={create:function(e,t){var r=a(e),o=t?i(t):void 0;return{execute:function(e,t,a,i){if("subscription"===e.operationKind)return o||n(!1,"RelayNetwork: This network layer does not support Subscriptions. To use Subscriptions, provide a custom network layer."),i&&n(!1,"RelayNetwork: Cannot provide uploadables while subscribing."),o(e,t,a);var s=a.poll;return null!=s?(i&&n(!1,"RelayNetwork: Cannot provide uploadables while polling."),r(e,t,{force:!0}).poll(s)):r(e,t,a,i)}}}}},function(e,t,r){"use strict";var n=r(2),o=n(r(11)),a=n(r(10)),i=r(0),s=1,l=function(){function e(e){var t=e.request,r=e.variables,n=e.cacheConfig,a=e.uploadables;(0,o.default)(this,"_hasCommittedLogs",!1),(0,o.default)(this,"_logs",[]),this._cacheConfig=n,this._id=s++,this._request=t,this._uploadables=a,this._variables=r}var t=e.prototype;return t.addLog=function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];this._logs.push({label:e,values:r})},t.clearLogs=function(){this._logs=[]},t.printLogs=function(e,t,r){var n=this.getIdentifier();console.groupCollapsed&&console.groupCollapsed("%c".concat(n),e?"color:red":""),console.timeEnd&&console.timeEnd(n),this.getLogsToPrint(e,t,r).forEach(function(e){var t,r=e.label,n=e.values;(t=console).log.apply(t,["".concat(r,":")].concat((0,a.default)(n)))}),console.groupEnd&&console.groupEnd()},t.commitLogs=function(e,t,r){!1!==this._hasCommittedLogs&&i(!1,"The logs for transaction #".concat(this._id," have already been committed.")),this.printLogs(e,t,r),this.markCommitted()},t.markCommitted=function(){this._hasCommittedLogs=!0},t.flushLogs=function(e,t,r){!1!==this._hasCommittedLogs&&i(!1,"The logs for transaction #".concat(this._id," have already been committed.")),this.printLogs(e,t,r),this.clearLogs()},t.getCacheConfig=function(){return this._cacheConfig},t.getIdentifier=function(){return"[".concat(this._id,"] Relay Modern: ").concat(this._request.name)},t.getLogsToPrint=function(e,t,r){return this._logs},t.getRequest=function(){return this._request},t.getUploadables=function(){return this._uploadables},t.getVariables=function(){return this._variables},e}();e.exports=l},function(e,t,r){"use strict";var n=r(2)(r(3)),o=r(0),a=r(9),i=function(){function e(e){var t=e.size,r=e.ttl;t>0||o(!1,"RelayQueryResponseCache: Expected the max cache size to be > 0, got `%s`.",t),r>0||o(!1,"RelayQueryResponseCache: Expected the max ttl to be > 0, got `%s`.",r),this._responses=new Map,this._size=t,this._ttl=r}var t=e.prototype;return t.clear=function(){this._responses.clear()},t.get=function(e,t){var r=this,o=s(e,t);this._responses.forEach(function(e,t){(function(e,t){return e+t>=Date.now()})(e.fetchTime,r._ttl)||r._responses.delete(t)});var a=this._responses.get(o);return null!=a?(0,n.default)({},a.payload,{extensions:(0,n.default)({},a.payload.extensions,{cacheTimestamp:a.fetchTime})}):null},t.set=function(e,t,r){var n=Date.now(),o=s(e,t);if(this._responses.delete(o),this._responses.set(o,{fetchTime:n,payload:r}),this._responses.size>this._size){var a=this._responses.keys().next();a.done||this._responses.delete(a.value)}},e}();function s(e,t){return JSON.stringify(a({queryID:e,variables:t}))}e.exports=i},function(e,t,r){"use strict";var n=r(15),o=r(0),a=r(25);e.exports=function(e,t){a(e)||o(!1,"commitRelayModernMutation: expected `environment` to be an instance of `RelayModernEnvironment`.");var r=e.unstable_internal,i=r.createOperationDescriptor,s=(0,r.getRequest)(t.mutation);if("mutation"!==s.params.operationKind)throw new Error("commitRelayModernMutation: Expected mutation operation");var l=t.optimisticUpdater,c=t.configs,u=t.optimisticResponse,d=i(s,t.variables);return c&&(l=n.convert(c,s,l).optimisticUpdater),e.applyUpdate({operation:d,selectorStoreUpdater:l,response:u})}},function(e,t,r){"use strict";e.exports=function(e,t){e.commitUpdate(t)}},function(e,t,r){"use strict";var n=r(2)(r(10)),o=r(15),a=r(0),i=r(25),s=r(73),l=r(4);e.exports=function(e,t){i(e)||a(!1,"commitRelayModernMutation: expected `environment` to be an instance of `RelayModernEnvironment`.");var r=e.unstable_internal,c=r.createOperationDescriptor,u=(0,r.getRequest)(t.mutation);if("mutation"!==u.params.operationKind)throw new Error("commitRelayModernMutation: Expected mutation operation");if("Request"!==u.kind)throw new Error("commitRelayModernMutation: Expected mutation to be of type request");var d=t.optimisticResponse,f=t.optimisticUpdater,p=t.updater,h=t.configs,_=t.onError,v=t.variables,g=t.uploadables,m=c(u,v);if("function"==typeof d&&(d=d(),l(!1,"commitRelayModernMutation: Expected `optimisticResponse` to be an object, received a function.")),d instanceof Object&&s(d,u,t.variables),h){var y=o.convert(h,u,f,p);f=y.optimisticUpdater,p=y.updater}var b=[];return{dispose:e.executeMutation({operation:m,optimisticResponse:d,optimisticUpdater:f,updater:p,uploadables:g}).subscribe({next:function(e){e.errors&&b.push.apply(b,(0,n.default)(e.errors))},complete:function(){var r=t.onCompleted;r&&r(e.lookup(m.fragment,m).data,0!==b.length?b:null)},error:_}).unsubscribe}}},function(e,t,r){"use strict";var n=r(2)(r(3)),o=r(4),a=function(){};a=function(e,t,r){var n={operationName:t.operation.name,path:"ROOT",visitedPaths:new Set,variables:r||{}};i(e,t.operation.selections,n),c(e,n)};var i=function(e,t,r){t.forEach(function(t){return s(e,t,r)})},s=function e(t,r,n){switch(r.kind){case"Condition":return void(r.passingValue===n.variables[r.condition]&&i(t,r.selections,n));case"ScalarField":case"LinkedField":return l(t,r,n);case"InlineFragment":var o=r.type;return void r.selections.forEach(function(r){t.__typename===o&&e(t,r,n)});case"ClientExtension":case"ModuleImport":case"LinkedHandle":case"ScalarHandle":case"Defer":case"Stream":default:return}},l=function(e,t,r){var a=t.alias||t.name,s="".concat(r.path,".").concat(a);switch(r.visitedPaths.add(s),t.kind){case"ScalarField":return void(void 0===e[a]&&o(!1,"validateMutation: Expected `optimisticResponse` to match structure of server response for mutation `%s`, field %s is undefined",r.operationName,s));case"LinkedField":var l=t.selections;if(null===e[a])return;return t.plural?Array.isArray(e[a])?void e[a].forEach(function(e){return i(e,l,(0,n.default)({},r,{path:s}))}):void o(!1,"validateMutation: Expected `optimisticResponse` to match structure of server response for mutation `%s`, field %s is not an array",r.operationName,s):e[a]instanceof Object?void i(e[a],l,(0,n.default)({},r,{path:s})):void o(!1,"validateMutation: Expected `optimisticResponse` to match structure of server response for mutation `%s`, field %s is not an object",r.operationName,s)}},c=function e(t,r){Array.isArray(t)?t.forEach(function(t){return e(t,r)}):Object.keys(t).forEach(function(a){var i=t[a],s="".concat(r.path,".").concat(a);r.visitedPaths.has(s)?i instanceof Object&&e(i,(0,n.default)({},r,{path:s})):o(!1,"validateMutation: `optimisticResponse` for mutation `%s`, contains an unused field %s",r.operationName,s)})};e.exports=a},function(e,t,r){"use strict";var n,o,a=r(0);e.exports=function(e){return n||(n=e.createContext(null),o=e),e!==o&&a(!1,"[createRelayContext]: You passing a different instance of React",e.version),n}},function(e,t,r){"use strict";r(5);var n=r(43),o=n.convertFetch,a=n.convertSubscribe;function i(e,t,r){return function(n,o,a,i){var s;function l(e,t,i){r&&s.addLog("GraphiQL",r(n,o)),s.addLog("Cache Config",a),s.addLog("Variables",JSON.stringify(o,null,2)),i&&s.addLog("Status",i),e&&s.addLog("Error",e),t&&s.addLog("Response",t)}function c(e,t,r){l(e,t,r),s.flushLogs(e,t,r)}function u(e,t,r){l(e,t,r),s.commitLogs(e,t,r)}var d=e(n,o,a,i),f="subscription"===n.operationKind;return d.do({start:function(){s=new t({request:n,variables:o,cacheConfig:a,uploadables:i}),console.time&&console.time(s.getIdentifier()),f&&c(null,null,"subscription is sent.")},next:function(e){c(null,e),console.time&&console.time(s.getIdentifier())},error:function(e){return u(e,null,null)},complete:function(){f?u(null,null,"subscription was closed."):s.markCommitted()},unsubscribe:function(){return u(null,null,f?"subscription is unsubscribed.":"execution is unsubscribed.")}})}}e.exports=function(e){return{wrapFetch:function(t,r){return function(n,a,s,l){return i(o(t),e,r)(n,a,s,l)}},wrapSubscribe:function(t,r){return function(n,o,s){return i(a(t),e,r)(n,o,s)}}}}},function(e,t,r){"use strict";var n=r(8),o=r(77),a=r(44),i=r(0),s=new Map;function l(e,t,r){return c(e,t.node.params,t.variables,function(){return e.execute({operation:t,cacheConfig:null===r||void 0===r?void 0:r.networkCacheConfig})})}function c(e,t,r,s){return n.create(function(n){var l=u(e),c=a(t,r),f=l.get(c);f||s().finally(function(){return l.delete(c)}).subscribe({start:function(e){f={subject:new o,subscription:e},l.set(c,f)},next:function(e){d(l,c).subject.next(e)},error:function(e){d(l,c).subject.error(e)},complete:function(){d(l,c).subject.complete()}}),null==f&&i(!1,"[fetchQueryInternal] fetchQueryDeduped: Expected `start` to be called synchronously");var p=f.subject.subscribe(n);return function(){p.unsubscribe();var e=l.get(c);if(e){var t=e.subscription;null!=t&&0===e.subject.getObserverCount()&&(t.unsubscribe(),l.delete(c))}}})}function u(e){var t=s.get(e);if(null!=t)return t;var r=new Map;return s.set(e,r),r}function d(e,t){var r=e.get(t);return null==r&&i(!1,"[fetchQueryInternal] getCachedRequest: Expected request to be cached"),r}e.exports={fetchQuery:l,getPromiseForRequestInFlight:function(e,t){var r=u(e),n=a(t.node.params,t.variables);return r.get(n)?new Promise(function(r,n){var o=!1;l(e,t).subscribe({complete:r,error:n,next:function(e){o&&r(e)}}),o=!0}):null},getObservableForRequestInFlight:function(e,t){var r=u(e),n=a(t.node.params,t.variables);return r.get(n)?l(e,t):null},fetchQueryDeduped:c}},function(e,t,r){"use strict";var n=r(2)(r(11)),o=r(8),a=r(0),i=function(){function e(){var e=this;(0,n.default)(this,"_complete",!1),(0,n.default)(this,"_events",[]),(0,n.default)(this,"_sinks",new Set),this._observable=o.create(function(t){e._sinks.add(t);for(var r=e._events,n=0;n<r.length&&!t.closed;n++){var o=r[n];switch(o.kind){case"complete":t.complete();break;case"error":t.error(o.error);break;case"next":t.next(o.data);break;default:o.kind,a(!1,"RelayReplaySubject: Unknown event kind `%s`.",o.kind)}}return function(){e._sinks.delete(t)}})}var t=e.prototype;return t.complete=function(){!0!==this._complete&&(this._complete=!0,this._events.push({kind:"complete"}),this._sinks.forEach(function(e){return e.complete()}))},t.error=function(e){!0!==this._complete&&(this._complete=!0,this._events.push({kind:"error",error:e}),this._sinks.forEach(function(t){return t.error(e)}))},t.next=function(e){!0!==this._complete&&(this._events.push({kind:"next",data:e}),this._sinks.forEach(function(t){return t.next(e)}))},t.subscribe=function(e){return this._observable.subscribe(e)},t.getObserverCount=function(){return this._sinks.size},e}();e.exports=i},function(e,t,r){"use strict";var n=r(0);e.exports=function(e,t,r,o){e.unstable_internal||n(!1,"fetchRelayModernQuery: Expected a valid Relay environment, got `%s`.",e);var a=e.unstable_internal,i=a.createOperationDescriptor,s=(0,a.getRequest)(t);if("query"!==s.params.operationKind)throw new Error("fetchRelayModernQuery: Expected query operation");var l=i(s,r);return e.execute({operation:l,cacheConfig:o}).map(function(){return e.lookup(l.fragment,l).data}).toPromise()}},function(e,t,r){"use strict";var n=r(45),o=r(29),a=r(9);e.exports=function(e,t){return JSON.stringify(a(o(e,function(e,r){var o=t[r];return n(e,o)})))}},function(e,t,r){"use strict";var n=r(15),o=r(4);e.exports=function(e,t){var r=e.unstable_internal,a=r.createOperationDescriptor,i=(0,r.getRequest)(t.subscription);if("subscription"!==i.params.operationKind)throw new Error("requestRelaySubscription: Must use Subscription operation");var s=t.configs,l=t.onCompleted,c=t.onError,u=t.onNext,d=a(i,t.variables);o(!(t.updater&&s),"requestRelaySubscription: Expected only one of `updater` and `configs` to be provided");var f=(s?n.convert(s,i,null,t.updater):t).updater;return e.execute({operation:d,updater:f,cacheConfig:{force:!0}}).map(function(){return e.lookup(d.fragment,d).data}).subscribeLegacy({onNext:u,onError:c,onCompleted:l})}}])});
\No newline at end of file