PageSourceSearch

https://onefit.com/npm.apollo.6348bc902d15284c9e1c.chunk.js

js onefit.com collected 2026-10-08 16:30:13 UTC 110,409 bytes, 1 lines download raw bytes

1(window.webpackJsonp=window.webpackJsonp||[]).push([[6],{"2694d7af9e649832d940":function(e,t,r){"use strict";r.r(t),r.d(t,"__extends",function(){return i}),r.d(t,"__assign",function(){return o}),r.d(t,"__rest",function(){return a}),r.d(t,"__decorate",function(){return s}),r.d(t,"__param",function(){return u}),r.d(t,"__metadata",function(){return c}),r.d(t,"__awaiter",function(){return l}),r.d(t,"__generator",function(){return f}),r.d(t,"__createBinding",function(){return p}),r.d(t,"__exportStar",function(){return h}),r.d(t,"__values",function(){return d}),r.d(t,"__read",function(){return v}),r.d(t,"__spread",function(){return y}),r.d(t,"__spreadArrays",function(){return b}),r.d(t,"__await",function(){return m}),r.d(t,"__asyncGenerator",function(){return g}),r.d(t,"__asyncDelegator",function(){return _}),r.d(t,"__asyncValues",function(){return O}),r.d(t,"__makeTemplateObject",function(){return S}),r.d(t,"__importStar",function(){return w}),r.d(t,"__importDefault",function(){return k}),r.d(t,"__classPrivateFieldGet",function(){return E}),r.d(t,"__classPrivateFieldSet",function(){return R});var n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)};function i(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var o=function(){return(o=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function a(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]])}return r}function s(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a}function u(e,t){return function(r,n){t(r,n,e)}}function c(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)}function l(e,t,r,n){return new(r||(r=Promise))(function(i,o){function a(e){try{u(n.next(e))}catch(e){o(e)}}function s(e){try{u(n.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(a,s)}u((n=n.apply(e,t||[])).next())})}function f(e,t){var r,n,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(i=2&o[0]?n.return:o[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,o[1])).done)return i;switch(n=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,n=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],n=0}finally{r=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}}function p(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}function h(e,t){for(var r in e)"default"===r||t.hasOwnProperty(r)||(t[r]=e[r])}function d(e){var t="function"===typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"===typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function v(e,t){var r="function"===typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a}function y(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(v(arguments[t]));return e}function b(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;var n=Array(e),i=0;for(t=0;t<r;t++)for(var o=arguments[t],a=0,s=o.length;a<s;a++,i++)n[i]=o[a];return n}function m(e){return this instanceof m?(this.v=e,this):new m(e)}function g(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,i=r.apply(e,t||[]),o=[];return n={},a("next"),a("throw"),a("return"),n[Symbol.asyncIterator]=function(){return this},n;function a(e){i[e]&&(n[e]=function(t){return new Promise(function(r,n){o.push([e,t,r,n])>1||s(e,t)})})}function s(e,t){try{(r=i[e](t)).value instanceof m?Promise.resolve(r.value.v).then(u,c):l(o[0][2],r)}catch(e){l(o[0][3],e)}var r}function u(e){s("next",e)}function c(e){s("throw",e)}function l(e,t){e(t),o.shift(),o.length&&s(o[0][0],o[0][1])}}function _(e){var t,r;return t={},n("next"),n("throw",function(e){throw e}),n("return"),t[Symbol.iterator]=function(){return this},t;function n(n,i){t[n]=e[n]?function(t){return(r=!r)?{value:m(e[n](t)),done:"return"===n}:i?i(t):t}:i}}function O(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e=d(e),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise(function(n,i){(function(e,t,r,n){Promise.resolve(n).then(function(t){e({value:t,done:r})},t)})(n,i,(t=e[r](t)).done,t.value)})}}}function S(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}
1function w(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}function k(e){return e&&e.__esModule?e:{default:e}}function E(e,t){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return t.get(e)}function R(e,t,r){if(!t.has(e))throw new TypeError("attempted to set private field on non-instance");return t.set(e,r),r}},"3c9f12f4187a0cc3a738":function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r("c1389c6ab5bd082f5ef1"),i=r("d84396be64c9ec94803c"),o=r("2694d7af9e649832d940"),a=r("8e8a415cea7aa33c6fc8"),s=r("d9ed1c16bdfd62e9c02c"),u=r("7ca78a8ab936dda6d333"),c=function(){function e(){this.getFragmentDoc=n.wrap(i.getFragmentQueryDocument)}return e.prototype.recordOptimisticTransaction=function(e,t){this.performTransaction(e,t)},e.prototype.transformDocument=function(e){return e},e.prototype.identify=function(e){},e.prototype.gc=function(){return[]},e.prototype.modify=function(e){return!1},e.prototype.transformForLink=function(e){return e},e.prototype.readQuery=function(e,t){return void 0===t&&(t=!1),this.read({rootId:e.id||"ROOT_QUERY",query:e.query,variables:e.variables,optimistic:t})},e.prototype.readFragment=function(e,t){return void 0===t&&(t=!1),this.read({query:this.getFragmentDoc(e.fragment,e.fragmentName),variables:e.variables,rootId:e.id,optimistic:t})},e.prototype.writeQuery=function(e){return this.write({dataId:e.id||"ROOT_QUERY",result:e.data,query:e.query,variables:e.variables,broadcast:e.broadcast})},e.prototype.writeFragment=function(e){return this.write({dataId:e.id,result:e.data,variables:e.variables,query:this.getFragmentDoc(e.fragment,e.fragmentName),broadcast:e.broadcast})},e}();t.Cache||(t.Cache={});var l=function(){return function(e,t,r,n,i){this.message=e,this.path=t,this.query=r,this.clientOnly=n,this.variables=i}}(),f=Object.prototype.hasOwnProperty;var p=/^[_a-z][_0-9a-z]*/i;function h(e){var t=e.match(p);return t?t[0]:e}function d(e,t,r){return!(!t||"object"!==typeof t)&&(Array.isArray(t)?t.every(function(t){return d(e,t,r)}):e.selections.every(function(e){if(i.isField(e)&&i.shouldInclude(e,r)){var n=i.resultKeyNameFromField(e);return f.call(t,n)&&(!e.selectionSet||d(e.selectionSet,t[n],r))}return!0}))}function v(e){return null!==e&&"object"===typeof e&&!i.isReference(e)&&!Array.isArray(e)}function y(e){var t=e&&e.__field;return t&&i.isField(t)}var b=function(e,t,r){var n=e[r],i=t[r];return y(n)?(n.__value=this.merge(n.__value,y(i)?i.__value:i),n):y(i)?(i.__value=this.merge(n,i.__value),i):this.merge(n,i)},m=Object.create(null),g=function(){return m},_=Object.create(null),O=function(){function e(e,t){var r=this;this.policies=e,this.group=t,this.data=Object.create(null),this.rootIds=Object.create(null),this.refs=Object.create(null),this.getFieldValue=function(e,t){return i.maybeDeepFreeze(i.isReference(e)?r.get(e.__ref,t):e&&e[t])},this.canRead=function(e){return i.isReference(e)?r.has(e.__ref):"object"===typeof e},this.toReference=function(e,t){if("string"===typeof e)return i.makeReference(e);if(i.isReference(e))return e;var n=r.policies.identify(e)[0];if(n){var o=i.makeReference(n);return t&&r.merge(n,e),o}}}return e.prototype.toObject=function(){return o.__assign({},this.data)},e.prototype.has=function(e){return void 0!==this.lookup(e,!0)},e.prototype.get=function(e,t){if(this.group.depend(e,t),f.call(this.data,e)){var r=this.data[e];if(r&&f.call(r,t))return r[t]}return"__typename"===t&&f.call(this.policies.rootTypenamesById,e)?this.policies.rootTypenamesById[e]:this instanceof k?this.parent.get(e,t):void 0},e.prototype.lookup=function(e,t){return t&&this.group.depend(e,"__exists"),f.call(this.data,e)?this.data[e]:this instanceof k?this.parent.lookup(e,t):void 0},e.prototype.merge=function(e,t){var r=this,n=this.lookup(e),o=new i.DeepMerger(E).merge(n,t);if(this.data[e]=o,o!==n&&(delete this.refs[e],this.group.caching)){var a=Object.create(null);n||(a.__exists=1),Object.keys(t).forEach(function(e){n&&n[e]===o[e]||(a[h(e)]=1,void 0!==o[e]||r instanceof k||delete o[e])}
1),Object.keys(a).forEach(function(t){return r.group.dirty(e,t)})}},e.prototype.modify=function(e,t){var r=this,n=this.lookup(e);if(n){var a=Object.create(null),s=!1,u=!0,c={DELETE:m,INVALIDATE:_,isReference:i.isReference,toReference:this.toReference,canRead:this.canRead,readField:function(t,n){return r.policies.readField("string"===typeof t?{fieldName:t,from:n||i.makeReference(e)}:t,{store:r})}};if(Object.keys(n).forEach(function(l){var f=h(l),p=n[l];if(void 0!==p){var d="function"===typeof t?t:t[l]||t[f];if(d){var v=d===g?m:d(i.maybeDeepFreeze(p),o.__assign(o.__assign({},c),{fieldName:f,storeFieldName:l,storage:r.getStorage(e,l)}));v===_?r.group.dirty(e,l):(v===m&&(v=void 0),v!==p&&(a[l]=v,s=!0,p=v))}void 0!==p&&(u=!1)}}),s)return this.merge(e,a),u&&(this instanceof k?this.data[e]=void 0:delete this.data[e],this.group.dirty(e,"__exists")),!0}return!1},e.prototype.delete=function(e,t,r){var n,i=this.lookup(e);if(i){var o=this.getFieldValue(i,"__typename"),a=t&&r?this.policies.getStoreFieldName({typename:o,fieldName:t,args:r}):t;return this.modify(e,a?((n={})[a]=g,n):g)}return!1},e.prototype.evict=function(e){var t=!1;return e.id&&(f.call(this.data,e.id)&&(t=this.delete(e.id,e.fieldName,e.args)),this instanceof k&&(t=this.parent.evict(e)||t),(e.fieldName||t)&&this.group.dirty(e.id,e.fieldName||"__exists")),t},e.prototype.clear=function(){this.replace(null)},e.prototype.replace=function(e){var t=this;Object.keys(this.data).forEach(function(r){e&&f.call(e,r)||t.delete(r)}),e&&Object.keys(e).forEach(function(r){t.merge(r,e[r])})},e.prototype.retain=function(e){return this.rootIds[e]=(this.rootIds[e]||0)+1},e.prototype.release=function(e){if(this.rootIds[e]>0){var t=--this.rootIds[e];return t||delete this.rootIds[e],t}return 0},e.prototype.getRootIdSet=function(e){return void 0===e&&(e=new Set),Object.keys(this.rootIds).forEach(e.add,e),this instanceof k&&this.parent.getRootIdSet(e),e},e.prototype.gc=function(){var e=this,t=this.getRootIdSet(),r=this.toObject();t.forEach(function(n){f.call(r,n)&&(Object.keys(e.findChildRefIds(n)).forEach(t.add,t),delete r[n])});var n=Object.keys(r);if(n.length){for(var i=this;i instanceof k;)i=i.parent;n.forEach(function(e){return i.delete(e)})}return n},e.prototype.findChildRefIds=function(e){if(!f.call(this.refs,e)){var t=this.refs[e]=Object.create(null),r=new Set([this.data[e]]),n=function(e){return null!==e&&"object"===typeof e};r.forEach(function(e){i.isReference(e)?t[e.__ref]=!0:n(e)&&Object.values(e).filter(n).forEach(r.add,r)})}return this.refs[e]},e.prototype.makeCacheKey=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return this.group.keyMaker.lookupArray(e)},e}(),S=function(){function e(e){this.caching=e,this.d=null,this.keyMaker=new n.KeyTrie(i.canUseWeakMap),this.d=e?n.dep():null}
1return e.prototype.depend=function(e,t){this.d&&this.d(w(e,t))},e.prototype.dirty=function(e,t){this.d&&this.d.dirty(w(e,t))},e}();function w(e,t){return h(t)+"#"+e}!function(e){var t=function(e){function t(t){var r=t.policies,o=t.resultCaching,a=void 0===o||o,s=t.seed,u=e.call(this,r,new S(a))||this;return u.storageTrie=new n.KeyTrie(i.canUseWeakMap),u.sharedLayerGroup=new S(a),s&&u.replace(s),u}return o.__extends(t,e),t.prototype.addLayer=function(e,t){return new k(e,this,t,this.sharedLayerGroup)},t.prototype.removeLayer=function(){return this},t.prototype.getStorage=function(e,t){return this.storageTrie.lookup(e,t)},t}(e);e.Root=t}(O||(O={}));var k=function(e){function t(t,r,n,i){var o=e.call(this,r.policies,i)||this;return o.id=t,o.parent=r,o.replay=n,o.group=i,n(o),o}return o.__extends(t,e),t.prototype.addLayer=function(e,r){return new t(e,this,r,this.group)},t.prototype.removeLayer=function(e){var t=this,r=this.parent.removeLayer(e);return e===this.id?(this.group.caching&&Object.keys(this.data).forEach(function(e){t.data[e]!==r.lookup(e)&&t.delete(e)}),r):r===this.parent?this:r.addLayer(this.id,this.replay)},t.prototype.toObject=function(){return o.__assign(o.__assign({},this.parent.toObject()),this.data)},t.prototype.findChildRefIds=function(t){var r=this.parent.findChildRefIds(t);return f.call(this.data,t)?o.__assign(o.__assign({},r),e.prototype.findChildRefIds.call(this,t)):r},t.prototype.getStorage=function(e,t){return this.parent.getStorage(e,t)},t}(O);function E(e,t,r){var n=e[r],i=t[r];return s.equal(n,i)?n:i}function R(e){return!!(e instanceof O&&e.group.caching)}function x(e,t){return new l(e.message,t.path.slice(),t.query,t.clientOnly,t.variables)}var F=function(){function e(e){var t=this;this.config=e,this.executeSelectionSet=n.wrap(function(e){return t.execSelectionSetImpl(e)},{keyArgs:function(e){return[e.selectionSet,e.objectOrReference,e.context]},makeCacheKey:function(e,t,r){if(R(r.store))return r.store.makeCacheKey(e,i.isReference(t)?t.__ref:t,r.varString)}}),this.knownResults=new WeakMap,this.executeSubSelectedArray=n.wrap(function(e){return t.execSubSelectedArrayImpl(e)},{makeCacheKey:function(e){var t=e.field,r=e.array,n=e.context;if(R(n.store))return n.store.makeCacheKey(t,r,n.varString)}}),this.config=o.__assign({addTypename:!0},e)}return e.prototype.diffQueryAgainstStore=function(e){var t=e.store,r=e.query,n=e.rootId,a=void 0===n?"ROOT_QUERY":n,s=e.variables,u=e.returnPartialData,c=void 0===u||u,l=this.config.cache.policies;s=o.__assign(o.__assign({},i.getDefaultValues(i.getQueryDefinition(r))),s);var f=this.executeSelectionSet({selectionSet:i.getMainDefinition(r).selectionSet,objectOrReference:i.makeReference(a),context:{store:t,query:r,policies:l,variables:s,varString:JSON.stringify(s),fragmentMap:i.createFragmentMap(i.getFragmentDefinitions(r)),path:[],clientOnly:!1}}),p=f.missing&&f.missing.length>0;if(p&&!c)throw f.missing[0];return{result:f.result,missing:f.missing,complete:!p}},e.prototype.isFresh=function(e,t,r,n){if(R(n.store)&&this.knownResults.get(e)===r){var i=this.executeSelectionSet.peek(r,t,n);if(i&&e===i.result)return!0}return!1},e.prototype.execSelectionSetImpl=function(e){var t=this,r=e.selectionSet,n=e.objectOrReference,o=e.context;if(i.isReference(n)&&!o.policies.rootTypenamesById[n.__ref]&&!o.store.has(n.__ref))return{result:{},missing:[x(new a.InvariantError(4),o)]};var s=o.variables,u=o.policies,c=o.store,l=[],f={result:null},p=c.getFieldValue(n,"__typename");function h(){return f.missing||(f.missing=[])}function d(e){var t;return e.missing&&(t=h()).push.apply(t,e.missing),e.result}this.config.addTypename&&"string"===typeof p&&!u.rootIdsByTypename[p]&&l.push({__typename:p});var v=new Set(r.selections);return v.forEach(function(e){var r;if(i.shouldInclude(e,s))if(i.isField(e)){var c=u.readField({fieldName:e.name.value,field:e,variables:o.variables,from:n},o),f=i.resultKeyNameFromField(e);o.path.push(f);var y=o.clientOnly;o.clientOnly=y||!(!e.directives||!e.directives.some(function(e){return"client"===e.name.value}
1)),void 0===c?i.addTypenameToDocument.added(e)||h().push(x(new a.InvariantError(5),o)):Array.isArray(c)?c=d(t.executeSubSelectedArray({field:e,array:c,context:o})):e.selectionSet&&null!=c&&(c=d(t.executeSelectionSet({selectionSet:e.selectionSet,objectOrReference:c,context:o}))),void 0!==c&&l.push(((r={})[f]=c,r)),o.clientOnly=y,a.invariant(o.path.pop()===f)}else{var b=i.getFragmentFromSelection(e,o.fragmentMap);b&&u.fragmentMatches(b,p)&&b.selectionSet.selections.forEach(v.add,v)}}),f.result=i.mergeDeepArray(l),this.knownResults.set(f.result,r),f},e.prototype.execSubSelectedArrayImpl=function(e){var t,r=this,n=e.field,i=e.array,o=e.context;function s(e,r){return e.missing&&(t=t||[]).push.apply(t,e.missing),a.invariant(o.path.pop()===r),e.result}return n.selectionSet&&(i=i.filter(o.store.canRead)),{result:i=i.map(function(e,t){return null===e?null:(o.path.push(t),Array.isArray(e)?s(r.executeSubSelectedArray({field:n,array:e,context:o}),t):n.selectionSet?s(r.executeSelectionSet({selectionSet:n.selectionSet,objectOrReference:e,context:o}),t):(a.invariant(o.path.pop()===t),e))}),missing:t}},e}();var q=function(){function e(e,t){this.cache=e,this.reader=t}return e.prototype.writeToStore=function(e){var t=e.query,r=e.result,n=e.dataId,s=e.store,u=e.variables,c=i.getOperationDefinition(t),l=new i.DeepMerger(b);u=o.__assign(o.__assign({},i.getDefaultValues(c)),u);var f=this.processSelectionSet({result:r||Object.create(null),dataId:n,selectionSet:c.selectionSet,context:{store:s,written:Object.create(null),merge:function(e,t){return l.merge(e,t)},variables:u,varString:JSON.stringify(u),fragmentMap:i.createFragmentMap(i.getFragmentDefinitions(t))}});if(!i.isReference(f))throw new a.InvariantError(7);return s.retain(f.__ref),f},e.prototype.processSelectionSet=function(e){var t=this,r=e.dataId,n=e.result,o=e.selectionSet,s=e.context,u=e.out,c=void 0===u?{shouldApplyMerges:!1}:u,l=this.cache.policies,f=l.identify(n,o,s.fragmentMap),p=f[0],h=f[1];if("string"===typeof(r=r||p)){var d=s.written[r]||(s.written[r]=[]),v=i.makeReference(r);if(d.indexOf(o)>=0)return v;if(d.push(o),this.reader&&this.reader.isFresh(n,v,o,s))return v}var y=Object.create(null);h&&(y=s.merge(y,h));var b=r&&l.rootTypenamesById[r]||i.getTypenameFromResult(n,o,s.fragmentMap)||r&&s.store.get(r,"__typename");"string"===typeof b&&(y.__typename=b);var m=new Set(o.selections);if(m.forEach(function(e){var r;if(i.shouldInclude(e,s.variables))if(i.isField(e)){var o=i.resultKeyNameFromField(e),u=n[o];if("undefined"!==typeof u){var f=l.getStoreFieldName({typename:b,fieldName:e.name.value,field:e,variables:s.variables}),p=t.processFieldValue(u,e,s,c);l.hasMergeFunction(b,e.name.value)&&(p={__field:e,__typename:b,__value:p},c.shouldApplyMerges=!0),y=s.merge(y,((r={})[f]=p,r))}else if(l.usingPossibleTypes&&!i.hasDirectives(["defer","client"],e))throw new a.InvariantError(8)}else{var h=i.getFragmentFromSelection(e,s.fragmentMap);h&&l.fragmentMatches(h,b,n,s.variables)&&h.selectionSet.selections.forEach(m.add,m)}}),"string"===typeof r){var g=i.makeReference(r);return c.shouldApplyMerges&&(y=l.applyMerges(g,y,s)),s.store.merge(r,y),g}return y},e.prototype.processFieldValue=function(e,t,r,n){var i=this;return t.selectionSet&&null!==e?Array.isArray(e)?e.map(function(e){return i.processFieldValue(e,t,r,n)}):this.processSelectionSet({result:e,selectionSet:t.selectionSet,context:r,out:n}):e},e}();new Set;var D=n.dep(),P=new u.Slot;function Q(e){var t=new Set,r=new Set,n=function(i){if(arguments.length>0)e!==i&&(e=i,D.dirty(n),t.forEach(M),s=function(t){return t(e)},u=[],(a=r).forEach(function(e){return u.push(e)}),a.clear(),u.forEach(s));else{var o=P.getValue();o&&t.add(o),D(n)}var a,s,u;return e};return n.onNextChange=function(e){return r.add(e),function(){r.delete(e)}},n}function M(e){e.broadcastWatches&&e.broadcastWatches()}function I(e){return void 0!==e.args?e.args:e.field?i.argumentsObjectFromField(e.field,e.variables):null}var C=function(e,t){var r=e.__typename,n=e.id,i=e._id;if("string"===typeof r&&(t&&(t.keyObject=void 0!==n?{id:n}:void 0!==i?{_id:i}:void 0),void 0===n&&(n=i),void 0!==n))return r+":"+("number"===typeof n||"string"===typeof n?n:JSON.stringify(n))},j=function(){},T=function(e,t){return t.fieldName},N=function(e,t,r){return(0,r.mergeObjects)(e,t)},A=function(e,t){return t},L=function(){function e(e){this.config=e,this.typePolicies=Object.create(null),this.supertypeMap=new Map,this.fuzzySubtypes=new Map,this.rootIdsByTypename=Object.create(null),this.rootTypenamesById=Object.create(null),this.usingPossibleTypes=!1,this.config=o.__assign({dataIdFromObject:C},e),this.cache=this.config.cache,this.setRootTypename("Query"),this.setRootTypename("Mutation"),this.setRootTypename("Subscription"),e.possibleTypes&&this.addPossibleTypes(e.possibleTypes),e.typePolicies&&this.addTypePolicies(e.typePolicies)}return e.prototype.identify=function(e,t,r){var n=t&&r?i.getTypenameFromResult(e,t,r):e.__typename;if(n===this.rootTypenamesById.ROOT_QUERY)return["ROOT_QUERY"];for(var o,a={typename:n,selectionSet:t,fragmentMap:r},s=this.getTypePolicy(n,!1),u=s&&s.keyFn||this.config.dataIdFromObject;u;){var c=u(e,a);if(!Array.isArray(c)){o=c;break}u=W(c)}return o=o&&String(o),a.keyObject?[o,a.keyObject]:[o]},e.prototype.addTypePolicies=function(e){var t=this;Object.keys(e).forEach(function(r){var n=t.getTypePolicy(r,!0),i=e[r],o=i.keyFields,a=i.fields;i.queryType&&t.setRootTypename("Query",r),i.mutationType&&t.setRootTypename("Mutation",r),i.subscriptionType&&t.setRootTypename("Subscription",r),n.keyFn=!1===o?j:Array.isArray(o)?W(o):"function"===typeof o?o:n.keyFn,a&&Object.keys(a).forEac
1h(function(e){var n=t.getFieldPolicy(r,e,!0),i=a[e];if("function"===typeof i)n.read=i;else{var o=i.keyArgs,s=i.read,u=i.merge;n.keyFn=!1===o?T:Array.isArray(o)?z(o):"function"===typeof o?o:n.keyFn,"function"===typeof s&&(n.read=s),n.merge="function"===typeof u?u:!0===u?N:!1===u?A:n.merge}n.read&&n.merge&&(n.keyFn=n.keyFn||T)})})},e.prototype.setRootTypename=function(e,t){void 0===t&&(t=e);var r="ROOT_"+e.toUpperCase(),n=this.rootTypenamesById[r];t!==n&&(a.invariant(!n||n===e,1),n&&delete this.rootIdsByTypename[n],this.rootIdsByTypename[t]=r,this.rootTypenamesById[r]=t)},e.prototype.addPossibleTypes=function(e){var t=this;this.usingPossibleTypes=!0,Object.keys(e).forEach(function(r){t.getSupertypeSet(r,!0),e[r].forEach(function(e){t.getSupertypeSet(e,!0).add(r);var n=e.match(p);n&&n[0]===e||t.fuzzySubtypes.set(e,new RegExp(e))})})},e.prototype.getTypePolicy=function(e,t){if(e)return this.typePolicies[e]||t&&(this.typePolicies[e]=Object.create(null))},e.prototype.getFieldPolicy=function(e,t,r){var n=this.getTypePolicy(e,r);if(n){var i=n.fields||r&&(n.fields=Object.create(null));if(i)return i[t]||r&&(i[t]=Object.create(null))}},e.prototype.getSupertypeSet=function(e,t){var r=this.supertypeMap.get(e);return!r&&t&&this.supertypeMap.set(e,r=new Set),r},e.prototype.fragmentMatches=function(e,t,r,n){var i=this;if(!e.typeCondition)return!0;if(!t)return!1;var o=e.typeCondition.name.value;if(t===o)return!0;if(this.usingPossibleTypes&&this.supertypeMap.has(o))for(var a=this.getSupertypeSet(t,!0),s=[a],u=function(e){var t=i.getSupertypeSet(e,!1);t&&t.size&&s.indexOf(t)<0&&s.push(t)},c=!(!r||!this.fuzzySubtypes.size),l=0;l<s.length;++l){var f=s[l];if(f.has(o))return a.has(o)||a.add(o),!0;f.forEach(u),c&&l===s.length-1&&d(e.selectionSet,r,n)&&(c=!1,!0,this.fuzzySubtypes.forEach(function(e,r){var n=t.match(e);n&&n[0]===t&&u(r)}))}return!1},e.prototype.getStoreFieldName=function(e){var t,r=e.typename,n=e.fieldName,o=this.getFieldPolicy(r,n,!1),a=o&&o.keyFn;if(a&&r)for(var s={typename:r,fieldName:n,field:e.field||null,variables:e.variables},u=I(e);a;){var c=a(u,s);if(!Array.isArray(c)){t=c||n;break}a=z(c)}return void 0===t&&(t=e.field?i.storeKeyNameFromField(e.field,e.variables):i.getStoreKeyName(n,I(e))),n===h(t)?t:n+":"+t},e.prototype.readField=function(e,t){var r=e.from;if(r&&(e.field||e.fieldName)){if(void 0===e.typename){var n=t.store.getFieldValue(r,"__typename");n&&(e.typename=n)}var o=this.getStoreFieldName(e),a=h(o),s=t.store.getFieldValue(r,o),u=this.getFieldPolicy(e.typename,a,!1),c=u&&u.read;if(c){var l=V(this,r,e,t,t.store.getStorage(i.isReference(r)?r.__ref:r,o));return P.withValue(this.cache,c,[s,l])}return s}},e.prototype.hasMergeFunction=function(e,t){var r=this.getFieldPolicy(e,t,!1);return!(!r||!r.merge)},e.prototype.applyMerges=function(e,t,r,n){var a,s=this;if(y(t)){var u=t.__field,c=u.name.value;t=(0,this.getFieldPolicy(t.__typename,c,!1).merge)(e,t.__value,V(this,void 0,{typename:t.__typename,fieldName:c,field:u,variables:r.variables},r,n?(a=r.store).getStorage.apply(a,n):Object.create(null)))}if(Array.isArray(t))return t.map(function(e){return s.applyMerges(void 0,e,r)});if(v(t)){var l,f=e,p=t,h=i.isReference(f)?f.__ref:"object"===typeof f&&f;if(Object.keys(p).forEach(function(e){var t=p[e],n=s.applyMerges(r.store.getFieldValue(f,e),t,r,h?[h,e]:void 0);n!==t&&((l=l||Object.create(null))[e]=n)}),l)return o.__assign(o.__assign({},p),l)}return t},e}();function V(e,t,r,n,s){var u=e.getStoreFieldName(r),c=h(u),l=r.variables||n.variables,f=n.store,p=f.getFieldValue,d=f.toReference,y=f.canRead;return{args:I(r),field:r.field||null,fieldName:c,storeFieldName:u,variables:l,isReference:i.isReference,toReference:d,storage:s,cache:e.cache,canRead:y,readField:function(r,i){var a="string"===typeof r?{fieldName:r,from:i}:o.__assign({},r);return void 0===a.from&&(a.from=t),void 0===a.variables&&(a.variables=l),e.readField(a,n)},mergeObjects:function(t,r){if(Array.isArray(t)||Array.isArray(r))throw new a.InvariantError(2);if(t&&"object"===typeof t&&r&&"object"===typeof r){var i=p(t,"__typename"),s=p(r,"__typename"),u=i&&s&&i!==s,c=e.applyMerges(u?void 0:t,r,n);return!u&&v(t)&&v(c)?o.__assign(o.__assign({},t),c):c}return r}}}function z(e){return function(t,r){return t?r.fieldName+":"+JSON.stringify(B(t,e)):r.fieldName}}function W(e){var t=new n.KeyTrie(i.canUseWeakMap);return function(r,n){var o;if(n.selectionSet&&n.fragmentMap){var a=t.lookupArray([n.selectionSet,n.fragmentMap]);o=a.aliasMap||(a.aliasMap=function e(t,r){var n=Object.create(null);var o=new Set([t]);o.forEach(function(t){t.selections.forEach(function(t){if(i.isField(t)){if(t.alias){var a=t.alias.value,s=t.name.value;if(s!==a){var u=n.aliases||(n.aliases=Object.create(null));u[s]=a}}if(t.selectionSet){var c=n.subsets||(n.subsets=Object.create(null));c[t.name.value]=e(t.selectionSet,r)}}else{var l=i.getFragmentFromSelection(t,r);l&&o.add(l.selectionSet)}})});return n}(n.selectionSet,n.fragmentMap))}var s=n.keyObject=B(r,e,o);return n.typename+":"+JSON.stringify(s)}}function B(e,t,r){var n,i=Object.create(null);return t.forEach(function(t){if(Array.isArray(t)){if("string"===typeof n){var o=r&&r.subsets,s=o&&o[n];i[n]=B(e[n],t,s)}}else{var u=r&&r.aliases,c=u&&u[t]||t;a.invariant(f.call(e,c),3),i[n=t]=e[c]}}),i}var U={dataIdFromObject:C,addTypename:!0,resultCaching:!0,typePolicies:{}},K=function(e){function t(t){void 0===t&&(t={});var r=e.call(this)||this;return r.watches=new Set,r.typenameDocumentCache=new Map,r.makeVar=Q,r.txCount=0,r.maybeBroadcastWatch=n.wrap(function(e,t){return r.broadcastWatch.call(r,e,!!t)},{makeCacheKey:function(e){var t=e.optimistic?r.optimisticData:r.data;if(R(t)){var n=e.optimistic,i=e.rootId,o=e.variables;return t.makeCacheKey(e.query,e.callback,JSON.stringify({optimistic:n,rootId:i,variables:o}))}}}),r.watchDep=n.dep(),r.config=o.__assign(o.__assign({},U),t),r.addTypename=!!r.config.addTypename,r.policies=new L({cache:r,dataIdFromObject:r.config.dataIdFromObject,possibleTypes:r.config.possibleTypes,typePolicies:r.config.typePolicies}),r.data=new O.Root({policies:r.policies,resultCaching:r.config.resultCaching}),r.optimisticData=r.data,r.storeWriter=new q(r,r.storeReader=new F({cac
1he:r,addTypename:r.addTypename})),r}return o.__extends(t,e),t.prototype.restore=function(e){return e&&this.data.replace(e),this},t.prototype.extract=function(e){return void 0===e&&(e=!1),(e?this.optimisticData:this.data).toObject()},t.prototype.read=function(e){var t=e.optimistic?this.optimisticData:this.data;return("string"!==typeof e.rootId||t.has(e.rootId))&&this.storeReader.diffQueryAgainstStore({store:t,query:e.query,variables:e.variables,rootId:e.rootId,config:this.config,returnPartialData:!1}).result||null},t.prototype.write=function(e){try{return++this.txCount,this.storeWriter.writeToStore({store:this.data,query:e.query,result:e.result,dataId:e.dataId,variables:e.variables})}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},t.prototype.modify=function(e){if(f.call(e,"id")&&!e.id)return!1;var t=e.optimistic?this.optimisticData:this.data;try{return++this.txCount,t.modify(e.id||"ROOT_QUERY",e.fields)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},t.prototype.diff=function(e){return this.storeReader.diffQueryAgainstStore({store:e.optimistic?this.optimisticData:this.data,rootId:e.id||"ROOT_QUERY",query:e.query,variables:e.variables,returnPartialData:e.returnPartialData,config:this.config})},t.prototype.watch=function(e){var t=this;return this.watches.add(e),e.immediate&&this.maybeBroadcastWatch(e),function(){t.watches.delete(e),t.watchDep.dirty(e),t.maybeBroadcastWatch.forget(e)}},t.prototype.gc=function(){return this.optimisticData.gc()},t.prototype.retain=function(e,t){return(t?this.optimisticData:this.data).retain(e)},t.prototype.release=function(e,t){return(t?this.optimisticData:this.data).release(e)},t.prototype.identify=function(e){return i.isReference(e)?e.__ref:this.policies.identify(e)[0]},t.prototype.evict=function(e){if(!e.id){if(f.call(e,"id"))return!1;e=o.__assign(o.__assign({},e),{id:"ROOT_QUERY"})}try{return++this.txCount,this.optimisticData.evict(e)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},t.prototype.reset=function(){return this.data.clear(),this.optimisticData=this.data,this.broadcastWatches(),Promise.resolve()},t.prototype.removeOptimistic=function(e){var t=this.optimisticData.removeLayer(e);t!==this.optimisticData&&(this.optimisticData=t,this.broadcastWatches())},t.prototype.performTransaction=function(e,t){var r=this,n=function(t){var n=r,i=n.data,o=n.optimisticData;++r.txCount,t&&(r.data=r.optimisticData=t);try{e(r)}finally{--r.txCount,r.data=i,r.optimisticData=o}},i=!1;"string"===typeof t?(this.optimisticData=this.optimisticData.addLayer(t,n),i=!0):null===t?n(this.data):n(),this.broadcastWatches(i)},t.prototype.transformDocument=function(e){if(this.addTypename){var t=this.typenameDocumentCache.get(e);return t||(t=i.addTypenameToDocument(e),this.typenameDocumentCache.set(e,t),this.typenameDocumentCache.set(t,t)),t}return e},t.prototype.broadcastWatches=function(e){var t=this;this.txCount||this.watches.forEach(function(r){return t.maybeBroadcastWatch(r,e)})},t.prototype.broadcastWatch=function(e,t){this.watchDep.dirty(e),this.watchDep(e);var r=this.diff({query:e.query,variables:e.variables,optimistic:e.optimistic});e.optimistic&&t&&(r.fromOptimisticTransaction=!0),e.callback(r)},t}(c);t.isReference=i.isReference,t.makeReference=i.makeReference,t.ApolloCache=c,t.InMemoryCache=K,t.MissingFieldError=l,t.cacheSlot=P,t.defaultDataIdFromObject=C,t.makeVar=Q},"48e3d8602585b9a20563":function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r("2694d7af9e649832d940"),i=r("d84396be64c9ec94803c");var o=function(e){var t="";return i.isNonEmptyArray(e.graphQLErrors)&&e.graphQLErrors.forEach(function(e){var r=e?e.message:"Error message not found.";t+=r+"\n"}),e.networkError&&(t+=e.networkError.message+"\n"),t=t.replace(/\n$/,"")},a=function(e){function t(r){var n=r.graphQLErrors,i=r.networkError,a=r.errorMessage,s=r.extraInfo,u=e.call(this,a)||this;return u.graphQLErrors=n||[],u.networkError=i||null,u.message=a||o(u),u.extraInfo=s,u.__proto__=t.prototype,u}return n.__extends(t,e),t}(Error);t.ApolloError=a,t.isApolloError=function(e){return e.hasOwnProperty("graphQLErrors")}},"49e5d17bce4f8f5c2e53":function(e,t,r){"use strict";
1Object.defineProperty(t,"__esModule",{value:!0});var n,i=(n=r("8af190b70a6bc55c6f1b"))&&"object"===typeof n&&"default"in n?n.default:n,o=r("8e8a415cea7aa33c6fc8"),a="function"===typeof Symbol&&Symbol.for?Symbol.for("__APOLLO_CONTEXT__"):"__APOLLO_CONTEXT__";function s(){Object.defineProperty(i,a,{value:i.createContext({}),enumerable:!1,configurable:!0,writable:!1})}function u(){return i[a]||s(),i[a]}t.ApolloConsumer=function(e){var t=u();return i.createElement(t.Consumer,null,function(t){return o.invariant(t&&t.client,27),e.children(t.client)})},t.ApolloProvider=function(e){var t=e.client,r=e.children,n=u();return i.createElement(n.Consumer,null,function(e){return void 0===e&&(e={}),t&&e.client!==t&&(e=Object.assign({},e,{client:t})),o.invariant(e.client,28),i.createElement(n.Provider,{value:e},r)})},t.getApolloContext=u,t.resetApolloContext=s},"4d728a5e8a718fb552db":function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r("2694d7af9e649832d940"),i=r("8c75340224e08629042d"),o=r("d84396be64c9ec94803c");t.setContext=function(e){return new i.ApolloLink(function(t,r){var i=n.__rest(t,[]);return new o.Observable(function(n){var o;return Promise.resolve(i).then(function(r){return e(r,t.getContext())}).then(t.setContext).then(function(){o=r(t).subscribe({next:n.next.bind(n),error:n.error.bind(n),complete:n.complete.bind(n)})}).catch(n.error.bind(n)),function(){o&&o.unsubscribe()}})})}},"72220b408c7df09a5328":function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r("db8d945a12356a16bda7"),i=r("8e8a415cea7aa33c6fc8"),o=r("2694d7af9e649832d940"),a=r("dce61a7c29f1ed289d72"),s=r("8c75340224e08629042d"),u=r("d84396be64c9ec94803c"),c=Object.prototype.hasOwnProperty;function l(e){return function(t){return t.text().then(function(e){try{return JSON.parse(e)}catch(n){var r=n;throw r.name="ServerParseError",r.response=t,r.statusCode=t.status,r.bodyText=e,r}}).then(function(r){return t.status>=300&&n.throwServerError(t,r,"Response not successful: Received status code "+t.status),Array.isArray(r)||c.call(r,"data")||c.call(r,"errors")||n.throwServerError(t,r,"Server response was missing for query '"+(Array.isArray(e)?e.map(function(e){return e.operationName}):e.operationName)+"'."),r})}}var f=function(e,t){var r;try{r=JSON.stringify(e)}catch(e){var n=new i.InvariantError(23);throw n.parseError=e,n}return r},p={http:{includeQuery:!0,includeExtensions:!1},headers:{accept:"*/*","content-type":"application/json"},options:{method:"POST"}},h=function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i=o.__assign(o.__assign({},t.options),{headers:t.headers,credentials:t.credentials}),s=t.http||{};r.forEach(function(e){i=o.__assign(o.__assign(o.__assign({},i),e.options),{headers:o.__assign(o.__assign({},i.headers),e.headers)}),e.credentials&&(i.credentials=e.credentials),s=o.__assign(o.__assign({},s),e.http)});var u=e.operationName,c=e.extensions,l=e.variables,f=e.query,p={operationName:u,variables:l};return s.includeExtensions&&(p.extensions=c),s.includeQuery&&(p.query=a.print(f)),{options:i,body:p}},d=function(e){if(!e&&"undefined"===typeof fetch)throw new i.InvariantError(22)},v=function(){if("undefined"===typeof AbortController)return{controller:!1,signal:!1};var e=new AbortController;return{controller:e,signal:e.signal}},y=function(e,t){var r=e.getContext().uri;return r||("function"===typeof t?t(e):t||"/graphql")};function b(e,t){var r=[],n=function(e,t){r.push(e+"="+encodeURIComponent(t))};if("query"in t&&n("query",t.query),t.operationName&&n("operationName",t.operationName),t.variables){var i=void 0;try{i=f(t.variables,"Variables map")}catch(e){return{parseError:e}}n("variables",i)}if(t.extensions){var o=void 0;try{o=f(t.extensions,"Extensions map")}catch(e){return{parseError:e}}n("extensions",o)}var a="",s=e,u=e.indexOf("#");-1!==u&&(a=e.substr(u),s=e.substr(0,u));var c=-1===s.indexOf("?")?"?":"&";return{newURI:s+c+r.join("&")+a}}var m=function(e){void 0===e&&(e={});var t=e.uri,r=void 0===t?"/graphql":t,i=e.fetch,a=e.includeExtensions,c=e.useGETForQueries,m=o.__rest(e,["uri","fetch","includeExtensions","useGETForQueries"]);d(i),i||(i=fetch);var g={http:{includeExtensions:a},options:m.fetchOptions,credentials:m.credentials,headers:m.headers};return new s.ApolloLink(function(e){var t=y(e,r),a=e.getContext(),s={};if(a.clientAwareness){var d=a.clientAwareness,m=d.name,_=d.version;m&&(s["apollographql-client-name"]=m),_&&(s["apollographql-client-version"]=_)}var O,S=o.__assign(o.__assign({},s),a.headers),w={http:a.http,options:a.fetchOptions,credentials:a.credentials,headers:S},k=h(e,p,g,w),E=k.options,R=k.body;if(!E.signal){var x=v(),F=x.controller,q=x.signal;(O=F)&&(E.signal=q)}if(c&&!e.query.definitions.some(function(e){return"OperationDefinition"===e.kind&&"mutation"===e.operation})&&(E.method="GET"),"GET"===E.method){var D=b(t,R),P=D.newURI,Q=D.parseError;if(Q)return n.fromError(Q);t=P}else try{E.body=f(R,"Payload")}catch(Q){return n.fromError(Q)}return new u.Observable(function(r){return i(t,E).then(function(t){return e.setContext({response:t}),t}).then(l(e)).then(function(e){return r.next(e),r.complete(),e}).catch(function(e){"AbortError"!==e.name&&(e.result&&e.result.errors&&e.result.data&&r.next(e.result),r.error(e))}),function(){O&&O.abort()}})})},g=function(e){function t(t){void 0===t&&(t={});var r=e.call(this,m(t).request)||this;return r.options=t,r}return o.__extends(t,e),t}(s.ApolloLink);t.HttpLink=g,t.checkFetcher=d,t.createHttpLink=m,t.createSignalIfSupported=v,t.fallbackHttpConfig=p,t.parseAndCheckHttpResponse=l,t.rewriteURIForGET=b,t.selectHttpOptionsAndBody=h,t.selectURI=y,t.serializeFetchParameter=f},"802562545eea7f331a38":function(e,t,r){"use strict";
1Object.defineProperty(t,"__esModule",{value:!0});var n,i=r("8af190b70a6bc55c6f1b"),o=(n=i)&&"object"===typeof n&&"default"in n?n.default:n,a=r("8e8a415cea7aa33c6fc8"),s=r("49e5d17bce4f8f5c2e53"),u=r("2694d7af9e649832d940"),c=r("ee230b38b5abfe928a3e"),l=r("d9ed1c16bdfd62e9c02c");function f(e,t,r){void 0===r&&(r=!1);var n=i.useContext(s.getApolloContext()),o=i.useReducer(function(e){return e+1},0),a=o[0],f=o[1],p=t?u.__assign(u.__assign({},t),{query:e}):{query:e},h=i.useRef(),d=h.current||new c.QueryData({options:p,context:n,onNewData:function(){d.ssrInitiated()?f():Promise.resolve().then(f)}});d.setOptions(p),d.context=n,d.ssrInitiated()&&!h.current&&(h.current=d);var v,y,b,m={options:u.__assign(u.__assign({},p),{onError:void 0,onCompleted:void 0}),context:n,tick:a},g=(v=function(){return r?d.executeLazy():d.execute()},y=m,(b=i.useRef()).current&&l.equal(y,b.current.key)||(b.current={key:y,value:v()}),b.current.value),_=r?g[1]:g;return i.useEffect(function(){return h.current||(h.current=d),function(){return d.cleanup()}},[]),i.useEffect(function(){return d.afterExecute({lazy:r})},[_.loading,_.networkStatus,_.error,_.data]),g}t.useApolloClient=function(){var e=o.useContext(s.getApolloContext()).client;return a.invariant(e,33),e},t.useLazyQuery=function(e,t){return f(e,t,!0)},t.useMutation=function(e,t){var r=i.useContext(s.getApolloContext()),n=i.useState({called:!1,loading:!1}),o=n[0],a=n[1],l=t?u.__assign(u.__assign({},t),{mutation:e}):{mutation:e},f=i.useRef(),p=(f.current||(f.current=new c.MutationData({options:l,context:r,result:o,setResult:a})),f.current);return p.setOptions(l),p.context=r,i.useEffect(function(){return p.afterExecute()}),p.execute(o)},t.useQuery=function(e,t){return f(e,t,!1)},t.useReactiveVar=function(e){var t=e(),r=e.onNextChange(i.useState(t)[1]);return i.useEffect(function(){return r},[]),t},t.useSubscription=function(e,t){var r=i.useContext(s.getApolloContext()),n=t?u.__assign(u.__assign({},t),{subscription:e}):{subscription:e},o=i.useState({loading:!n.skip,error:void 0,data:void 0}),a=o[0],l=o[1],f=i.useRef(),p=(f.current||(f.current=new c.SubscriptionData({options:n,context:r,setResult:l})),f.current);return p.setOptions(n,!0),p.context=r,i.useEffect(function(){return p.afterExecute()}),i.useEffect(function(){return p.cleanup.bind(p)},[]),p.execute(a)}},"88922d7444e1cbb012fd":function(e,t,r){"use strict";function n(e){var t,r=e.Symbol;if("function"===typeof r)if(r.observable)t=r.observable;else{t=r.for("https://github.com/benlesh/symbol-observable");try{r.observable=t}catch(e){}}else t="@@observable";return t}r.d(t,"a",function(){return n})},"8ba8255ed5285a7af2d1":function(e,t,r){"use strict";r.r(t),function(e,n){var i,o=r("88922d7444e1cbb012fd");i="undefined"!==typeof self?self:"undefined"!==typeof window?window:"undefined"!==typeof e?e:n;var a=Object(o.a)(i);t.default=a}.call(this,r("698d75b157f24ae829cc"),r("044f282f6141fc605782")(e))},"8c75340224e08629042d":function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r("2694d7af9e649832d940"),i=r("8e8a415cea7aa33c6fc8"),o=r("d84396be64c9ec94803c"),a=r("db8d945a12356a16bda7");function s(e,t){return t?t(e):o.Observable.of()}function u(e){return"function"===typeof e?new l(e):e}function c(e){return e.request.length<=1}!function(e){function t(t,r){var n=e.call(this,t)||this;return n.link=r,n}n.__extends(t,e)}(Error);var l=function(){function e(e){e&&(this.request=e)}return e.empty=function(){return new e(function(){return o.Observable.of()})},e.from=function(t){return 0===t.length?e.empty():t.map(u).reduce(function(e,t){return e.concat(t)})},e.split=function(t,r,n){var i=u(r),a=u(n||new e(s));return c(i)&&c(a)?new e(function(e){return t(e)?i.request(e)||o.Observable.of():a.request(e)||o.Observable.of()}):new e(function(e,r){return t(e)?i.request(e,r)||o.Observable.of():a.request(e,r)||o.Observable.of()})},e.execute=function(e,t){return e.request(a.createOperation(t.context,a.transformOperation(a.validateOperation(t))))||o.Observable.of()},e.concat=function(t,r){var n=u(t);if(c(n))return n;var i=u(r);return c(i)?new e(function(e){return n.request(e,function(e){return i.request(e)||o.Observable.of()})||o.Observable.of()}):new e(function(e,t){return n.request(e,function(e){return i.request(e,t)||o.Observable.of()})||o.Observable.of()})},e.prototype.split=function(t,r,n){return this.concat(e.split(t,r,n||new e(s)))},e.prototype.concat=function(t){return e.concat(this,t)},e.prototype.request=function(e,t){throw new i.InvariantError(21)},e.prototype.onError=function(e){throw e},e.prototype.setOnError=function(e){return this.onError=e,this},e}(),f=l.empty,p=l.from,h=l.split,d=l.concat,v=l.execute;t.ApolloLink=l,t.concat=d,t.empty=f,t.execute=v,t.from=p,t.split=h},"9cd4c81a6f27fdbd0c2c":function(e,t,r){"use strict";
1Object.defineProperty(t,"__esModule",{value:!0});var n,i=r("8e8a415cea7aa33c6fc8");(n=t.DocumentType||(t.DocumentType={}))[n.Query=0]="Query",n[n.Mutation=1]="Mutation",n[n.Subscription=2]="Subscription";var o=new Map;t.operationName=function(e){var r;switch(e){case t.DocumentType.Query:r="Query";break;case t.DocumentType.Mutation:r="Mutation";break;case t.DocumentType.Subscription:r="Subscription"}return r},t.parser=function(e){var r,n,a=o.get(e);if(a)return a;i.invariant(!!e&&!!e.kind,34);var s=e.definitions.filter(function(e){return"FragmentDefinition"===e.kind}),u=e.definitions.filter(function(e){return"OperationDefinition"===e.kind&&"query"===e.operation}),c=e.definitions.filter(function(e){return"OperationDefinition"===e.kind&&"mutation"===e.operation}),l=e.definitions.filter(function(e){return"OperationDefinition"===e.kind&&"subscription"===e.operation});i.invariant(!s.length||u.length||c.length||l.length,35),i.invariant(u.length+c.length+l.length<=1,36),n=u.length?t.DocumentType.Query:t.DocumentType.Mutation,u.length||c.length||(n=t.DocumentType.Subscription);var f=u.length?u:c.length?c:l;i.invariant(1===f.length,37);var p=f[0];r=p.variableDefinitions||[];var h={name:p.name&&"Name"===p.name.kind?p.name.value:"data",type:n,variables:r};return o.set(e,h),h}},"9edfa3c806cfdef4a44e":function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,i,o=r("2694d7af9e649832d940"),a=r("8e8a415cea7aa33c6fc8"),s=r("8c75340224e08629042d"),u=r("d84396be64c9ec94803c"),c=r("72220b408c7df09a5328"),l=r("d9ed1c16bdfd62e9c02c"),f=r("48e3d8602585b9a20563"),p=r("dce61a7c29f1ed289d72"),h=r("3c9f12f4187a0cc3a738"),d=r("db8d945a12356a16bda7"),v=(n=r("f45d38fc501154e8e845"))&&"object"===typeof n&&"default"in n?n.default:n,y="local",b=function(){function e(){this.store={}}return e.prototype.getStore=function(){return this.store},e.prototype.get=function(e){return this.store[e]},e.prototype.initMutation=function(e,t,r){this.store[e]={mutation:t,variables:r||{},loading:!0,error:null}},e.prototype.markMutationError=function(e,t){var r=this.store[e];r&&(r.loading=!1,r.error=t)},e.prototype.markMutationResult=function(e){var t=this.store[e];t&&(t.loading=!1,t.error=null)},e.prototype.reset=function(){this.store={}},e}();function m(e){return!!e&&e<7}(i=t.NetworkStatus||(t.NetworkStatus={}))[i.loading=1]="loading",i[i.setVariables=2]="setVariables",i[i.fetchMore=3]="fetchMore",i[i.refetch=4]="refetch",i[i.poll=6]="poll",i[i.ready=7]="ready",i[i.error=8]="error";var g=function(){function e(e,t,r,n){this.observer=e,this.options=t,this.fetch=r,this.shouldFetch=n}return e.prototype.reobserve=function(e,t){e?this.updateOptions(e):this.updatePolling();var r=this.fetch(this.options,t);return this.concast&&this.concast.removeObserver(this.observer,!0),r.addObserver(this.observer),(this.concast=r).promise},e.prototype.updateOptions=function(e){return Object.assign(this.options,u.compact(e)),this.updatePolling(),this},e.prototype.stop=function(){this.concast&&(this.concast.removeObserver(this.observer),delete this.concast),this.pollingInfo&&(clearTimeout(this.pollingInfo.timeout),this.options.pollInterval=0,this.updatePolling())},e.prototype.updatePolling=function(){var e=this,r=this.pollingInfo,n=this.options.pollInterval;if(n){if((!r||r.interval!==n)&&(a.invariant(n,20),!1!==this.shouldFetch)){(r||(this.pollingInfo={})).interval=n;var i=function(){e.pollingInfo&&(e.shouldFetch&&e.shouldFetch()?e.reobserve({fetchPolicy:"network-only",nextFetchPolicy:e.options.fetchPolicy||"cache-first"},t.NetworkStatus.poll).then(o,o):o())},o=function(){var t=e.pollingInfo;t&&(clearTimeout(t.timeout),t.timeout=setTimeout(i,t.interval))};o()}}else r&&(clearTimeout(r.timeout),delete this.pollingInfo)},e}(),_=function(e){function r(r){var n=r.queryManager,i=r.queryInfo,a=r.options,s=e.call(this,function(e){return s.onSubscribe(e)})||this;s.observers=new Set,s.subscriptions=new Set,s.observer={next:function(e){(s.lastError||s.isDifferentFromLastResult(e))&&(s.updateLastResult(e),u.iterateObserversSafely(s.observers,"next",e))},error:function(e){s.updateLastResult(o.__assign(o.__assign({},s.lastResult),{error:e,errors:e.graphQLErrors,networkStatus:t.NetworkStatus.error,loading:!1})),u.iterateObserversSafely(s.observers,"error",s.lastError=e)}},s.isTornDown=!1,s.options=a,s.queryId=n.generateQueryId();var c=u.getOperationDefinition(a.query);return s.queryName=c&&c.name&&c.name.value,s.queryManager=n,s.queryInfo=i,s}return o.__extends(r,e),Object.defineProperty(r.prototype,"variables",{get:function(){return this.options.variables}
1,enumerable:!1,configurable:!0}),r.prototype.result=function(){var e=this;return new Promise(function(t,r){var n={next:function(r){t(r),e.observers.delete(n),e.observers.size||e.queryManager.removeQuery(e.queryId),setTimeout(function(){i.unsubscribe()},0)},error:r},i=e.subscribe(n)})},r.prototype.getCurrentResult=function(e){void 0===e&&(e=!0);var r=this.lastResult,n=this.queryInfo.networkStatus||r&&r.networkStatus||t.NetworkStatus.ready,i=o.__assign(o.__assign({},r),{loading:m(n),networkStatus:n});if(this.isTornDown)return i;var a=this.options.fetchPolicy,s=void 0===a?"cache-first":a;if("no-cache"===s||"network-only"===s)delete i.partial;else if(!i.data||!this.queryManager.transform(this.options.query).hasForcedResolvers){var u=this.queryInfo.getDiff();i.data=u.complete||this.options.returnPartialData?u.result:void 0,u.complete?(i.networkStatus!==t.NetworkStatus.loading||"cache-first"!==s&&"cache-only"!==s||(i.networkStatus=t.NetworkStatus.ready,i.loading=!1),delete i.partial):i.partial=!0}return e&&this.updateLastResult(i),i},r.prototype.isDifferentFromLastResult=function(e){return!l.equal(this.lastResultSnapshot,e)},r.prototype.getLastResult=function(){return this.lastResult},r.prototype.getLastError=function(){return this.lastError},r.prototype.resetLastResults=function(){delete this.lastResult,delete this.lastResultSnapshot,delete this.lastError,this.isTornDown=!1},r.prototype.resetQueryStoreErrors=function(){this.queryManager.resetErrors(this.queryId)},r.prototype.refetch=function(e){var r={pollInterval:0},n=this.options.fetchPolicy;return"no-cache"!==n&&"cache-and-network"!==n&&(r.fetchPolicy="network-only",r.nextFetchPolicy=n||"cache-first"),e&&!l.equal(this.options.variables,e)&&(r.variables=this.options.variables=o.__assign(o.__assign({},this.options.variables),e)),this.newReobserver(!1).reobserve(r,t.NetworkStatus.refetch)},r.prototype.fetchMore=function(e){var r=this,n=o.__assign(o.__assign({},e.query?e:o.__assign(o.__assign(o.__assign({},this.options),e),{variables:o.__assign(o.__assign({},this.options.variables),e.variables)})),{fetchPolicy:"no-cache"}),i=this.queryManager.generateQueryId();return n.notifyOnNetworkStatusChange&&(this.queryInfo.networkStatus=t.NetworkStatus.fetchMore,this.observe()),this.queryManager.fetchQuery(i,n,t.NetworkStatus.fetchMore).then(function(t){var i=t.data,o=e.updateQuery;return o?r.updateQuery(function(e){return o(e,{fetchMoreResult:i,variables:n.variables})}):r.queryManager.cache.writeQuery({query:n.query,variables:n.variables,data:i}),t}).finally(function(){r.queryManager.stopQuery(i),r.reobserve()})},r.prototype.subscribeToMore=function(e){var t=this,r=this.queryManager.startGraphQLSubscription({query:e.document,variables:e.variables,context:e.context}).subscribe({next:function(r){var n=e.updateQuery;n&&t.updateQuery(function(e,t){var i=t.variables;return n(e,{subscriptionData:r,variables:i})})},error:function(t){e.onError&&e.onError(t)}});return this.subscriptions.add(r),function(){t.subscriptions.delete(r)&&r.unsubscribe()}},r.prototype.setOptions=function(e){return this.reobserve(e)},r.prototype.setVariables=function(e){if(l.equal(this.variables,e))return this.observers.size?this.result():Promise.resolve();if(this.options.variables=e,!this.observers.size)return Promise.resolve();var r=this.options.fetchPolicy,n=void 0===r?"cache-first":r,i={fetchPolicy:n,variables:e};return"cache-first"!==n&&"no-cache"!==n&&"network-only"!==n&&(i.fetchPolicy="cache-and-network",i.nextFetchPolicy=n),this.reobserve(i,t.NetworkStatus.setVariables)},r.prototype.updateQuery=function(e){var t,r=this.queryManager,n=e(r.cache.diff({query:this.options.query,variables:this.variables,previousResult:null===(t=this.lastResult)||void 0===t?void 0:t.data,returnPartialData:!0,optimistic:!1}).result,{variables:this.variables});n&&(r.cache.writeQuery({query:this.options.query,data:n,variables:this.variables}),r.broadcastQueries())},r.prototype.startPolling=function(e){this.getReobserver().updateOptions({pollInterval:e})},r.prototype.stopPolling=function(){this.reobserver&&this.reobserver.updateOptions({pollInterval:0})},r.prototype.updateLastResult=function(e){var t=this.lastResult;return this.lastResult=e,this.lastResultSnapshot=this.queryManager.assumeImmutableResults?e:u.cloneDeep(e),u.
1isNonEmptyArray(e.errors)||delete this.lastError,t},r.prototype.onSubscribe=function(e){var t=this;if(e===this.observer)return function(){};try{var r=e._subscription._observer;r&&!r.error&&(r.error=O)}catch(e){}var n=!this.observers.size;return this.observers.add(e),this.lastError?e.error&&e.error(this.lastError):this.lastResult&&e.next&&e.next(this.lastResult),n&&this.reobserve().catch(function(e){}),function(){t.observers.delete(e)&&!t.observers.size&&t.tearDownQuery()}},r.prototype.getReobserver=function(){return this.reobserver||(this.reobserver=this.newReobserver(!0))},r.prototype.newReobserver=function(e){var t=this,r=this.queryManager,n=this.queryId;return r.setObservableQuery(this),new g(this.observer,e?this.options:o.__assign({},this.options),function(e,i){return r.setObservableQuery(t),r.fetchQueryObservable(n,e,i)},!r.ssrMode&&function(){return!m(t.queryInfo.networkStatus)})},r.prototype.reobserve=function(e,t){return this.isTornDown=!1,this.getReobserver().reobserve(e,t)},r.prototype.observe=function(){this.observer.next(this.getCurrentResult(!1))},r.prototype.hasObservers=function(){return this.observers.size>0},r.prototype.tearDownQuery=function(){var e=this.queryManager;this.reobserver&&(this.reobserver.stop(),delete this.reobserver),this.isTornDown=!0,this.subscriptions.forEach(function(e){return e.unsubscribe()}),this.subscriptions.clear(),e.stopQuery(this.queryId),this.observers.clear()},r}(u.Observable);function O(e){}var S=function(){function e(e){var t=e.cache,r=e.client,n=e.resolvers,i=e.fragmentMatcher;this.cache=t,r&&(this.client=r),n&&this.addResolvers(n),i&&this.setFragmentMatcher(i)}return e.prototype.addResolvers=function(e){var t=this;this.resolvers=this.resolvers||{},Array.isArray(e)?e.forEach(function(e){t.resolvers=u.mergeDeep(t.resolvers,e)}):this.resolvers=u.mergeDeep(this.resolvers,e)},e.prototype.setResolvers=function(e){this.resolvers={},this.addResolvers(e)},e.prototype.getResolvers=function(){return this.resolvers||{}},e.prototype.runResolvers=function(e){var t=e.document,r=e.remoteResult,n=e.context,i=e.variables,a=e.onlyRunForcedResolvers,s=void 0!==a&&a;return o.__awaiter(this,void 0,void 0,function(){return o.__generator(this,function(e){return t?[2,this.resolveDocument(t,r.data,n,i,this.fragmentMatcher,s).then(function(e){return o.__assign(o.__assign({},r),{data:e.result})})]:[2,r]})})},e.prototype.setFragmentMatcher=function(e){this.fragmentMatcher=e},e.prototype.getFragmentMatcher=function(){return this.fragmentMatcher},e.prototype.clientQuery=function(e){return u.hasDirectives(["client"],e)&&this.resolvers?e:null},e.prototype.serverQuery=function(e){return u.removeClientSetsFromDocument(e)},e.prototype.prepareContext=function(e){var t=this.cache;return o.__assign(o.__assign({},e),{cache:t,getCacheKey:function(e){return t.identify(e)}})},e.prototype.addExportedVariables=function(e,t,r){return void 0===t&&(t={}),void 0===r&&(r={}),o.__awaiter(this,void 0,void 0,function(){return o.__generator(this,function(n){return e?[2,this.resolveDocument(e,this.buildRootValueFromCache(e,t)||{},this.prepareContext(r),t).then(function(e){return o.__assign(o.__assign({},t),e.exportedVariables)})]:[2,o.__assign({},t)]})})},e.prototype.shouldForceResolvers=function(e){var t=!1;return p.visit(e,{Directive:{enter:function(e){if("client"===e.name.value&&e.arguments&&(t=e.arguments.some(function(e){return"always"===e.name.value&&"BooleanValue"===e.value.kind&&!0===e.value.value})))return p.BREAK}}}),t},e.prototype.buildRootValueFromCache=function(e,t){return this.cache.diff({query:u.buildQueryFromSelectionSet(e),variables:t,returnPartialData:!0,optimistic:!1}).result},e.prototype.resolveDocument=function(e,t,r,n,i,a){return void 0===r&&(r={}),void 0===n&&(n={}),void 0===i&&(i=function(){return!0}),void 0===a&&(a=!1),o.__awaiter(this,void 0,void 0,function(){var s,c,l,f,p,h,d,v,y;return o.__generator(this,function(b){return s=u.getMainDefinition(e),c=u.getFragmentDefinitions(e),l=u.createFragmentMap(c),f=s.operation,p=f?f.charAt(0).toUpperCase()+f.slice(1):"Query",d=(h=this).cache,v=h.client,y={fragmentMap:l,context:o.__assign(o.__assign({},r),{cache:d,client:v}),variables:n,fragmentMatcher:i,defaultOperationType:p,exportedVariables:{},onlyRunForcedResolvers:a},[2,this.resolveSelectionSet(s.selectionSet,t,y).then(function(e){return{result:e,exportedVariables:y.exportedVariables}})]})})},e.prototype.resolveSelectionSet=function(e,t,r){return o.__awaiter(this,void 0,void 0,function(){var n,i,s,c,l,f=this;return o.__generator(this,function(p){return n=r.fragmentMap,i=r.context,s=r.variables,c=[t],l=function(e){return o.__awaiter(f,void 0,void 0,function(){var l,f;return o.__generator(this,function(o){return u.shouldInclude(e,s)?u.isField(e)?[2,this.resolveField(e,t,r).then(function(t){var r;"undefined"!==typeof t&&c.push(((r={})[u.resultKeyNameFromField(e)]=t,r))})]:(u.isInlineFragment(e)?l=e:(l=n[e.name.value],a.invariant(l,11)),l&&l.typeCondition&&(f=l.typeCondition.name.value,r.fragmentMatcher(t,f,i))?[2,this.resolveSelectionSet(l.selectionSet,t,r).then(function(e){c.push(e)})]:[2]):[2]})})},[2,Promise.all(e.selections.map(l)).then(function(){return u.mergeDeepArray(c)})]})})},e.prototype.resolveField=function(e,t,r){return o.__awaiter(this,void 0,void 0,function(){var n,i,a,s,c,l,f,p,d,v=this;return o.__generator(this,function(o){return n=r.variables,i=e.name.value,a=u.resultKeyNameFromField(e),s=i!==a,c=t[a]||t[i],l=Promise.resolve(c),r.onlyRunForcedResolvers&&!this.shouldForceResolvers(e)||(f=t.__typename||r.defaultOperationType,(p=this.resolvers&&this.resolvers[f])&&(d=p[s?i:a])&&(l=Promise.resolve(h.cacheSlot.withValue(this.cache,d,[t,u.argumentsObjectFromField(e,n),r.context,{field:e,fragmentMap:r.fragmentMap}])))),[2,l.then(function(t){return void 0===t&&(t=c),e.directives&&e.directives.forEac
1h(function(e){"export"===e.name.value&&e.arguments&&e.arguments.forEach(function(e){"as"===e.name.value&&"StringValue"===e.value.kind&&(r.exportedVariables[e.value.value]=t)})}),e.selectionSet?null==t?t:Array.isArray(t)?v.resolveSubSelectedArray(e,t,r):e.selectionSet?v.resolveSelectionSet(e.selectionSet,t,r):void 0:t})]})})},e.prototype.resolveSubSelectedArray=function(e,t,r){var n=this;return Promise.all(t.map(function(t){return null===t?null:Array.isArray(t)?n.resolveSubSelectedArray(e,t,r):e.selectionSet?n.resolveSelectionSet(e.selectionSet,t,r):void 0}))},e}(),w=new(u.canUseWeakMap?WeakMap:Map);function k(e,t){var r=e[t];"function"===typeof r&&(e[t]=function(){return w.set(e,(w.get(e)+1)%1e15),r.apply(this,arguments)})}var E=function(){function e(e){this.cache=e,this.listeners=new Set,this.document=null,this.lastRequestId=1,this.subscriptions=new Set,this.dirty=!1,this.diff=null,this.observableQuery=null,w.has(e)||(w.set(e,0),k(e,"evict"),k(e,"modify"),k(e,"reset"))}return e.prototype.init=function(e){var r=e.networkStatus||t.NetworkStatus.loading;return this.variables&&this.networkStatus!==t.NetworkStatus.loading&&!l.equal(this.variables,e.variables)&&(r=t.NetworkStatus.setVariables),l.equal(e.variables,this.variables)||(this.diff=null),Object.assign(this,{document:e.document,variables:e.variables,networkError:null,graphQLErrors:this.graphQLErrors||[],networkStatus:r}),e.observableQuery&&this.setObservableQuery(e.observableQuery),e.lastRequestId&&(this.lastRequestId=e.lastRequestId),this},e.prototype.getDiff=function(e){return void 0===e&&(e=this.variables),this.diff&&l.equal(e,this.variables)?this.diff:(this.updateWatch(this.variables=e),this.diff=this.cache.diff({query:this.document,variables:e,returnPartialData:!0,optimistic:!0}))},e.prototype.setDiff=function(e){var t=this,r=this.diff;this.diff=e,this.dirty||(e&&e.result)===(r&&r.result)||(this.dirty=!0,this.notifyTimeout||(this.notifyTimeout=setTimeout(function(){return t.notify()},0)))},e.prototype.setObservableQuery=function(e){var t=this;e!==this.observableQuery&&(this.oqListener&&this.listeners.delete(this.oqListener),this.observableQuery=e,e?(e.queryInfo=this,this.listeners.add(this.oqListener=function(){t.getDiff().fromOptimisticTransaction?e.observe():e.reobserve()})):delete this.oqListener)},e.prototype.notify=function(){var e=this;this.notifyTimeout&&(clearTimeout(this.notifyTimeout),this.notifyTimeout=void 0),this.shouldNotify()&&this.listeners.forEach(function(t){return t(e)}),this.dirty=!1},e.prototype.shouldNotify=function(){if(!this.dirty||!this.listeners.size)return!1;if(m(this.networkStatus)&&this.observableQuery){var e=this.observableQuery.options.fetchPolicy;if("cache-only"!==e&&"cache-and-network"!==e)return!1}return!0},e.prototype.stop=function(){this.cancel(),delete this.cancel;var e=this.observableQuery;e&&e.stopPolling()},e.prototype.cancel=function(){},e.prototype.updateWatch=function(e){var t=this;void 0===e&&(e=this.variables);var r=this.observableQuery;r&&"no-cache"===r.options.fetchPolicy||this.lastWatch&&this.lastWatch.query===this.document&&l.equal(e,this.lastWatch.variables)||(this.cancel(),this.cancel=this.cache.watch(this.lastWatch={query:this.document,variables:e,optimistic:!0,callback:function(e){return t.setDiff(e)}}))},e.prototype.shouldWrite=function(e,t){var r=this.lastWrite;return!(r&&r.dmCount===w.get(this.cache)&&l.equal(t,r.variables)&&l.equal(e.data,r.result.data))},e.prototype.markResult=function(e,t,r){var n=this;this.graphQLErrors=u.isNonEmptyArray(e.errors)?e.errors:[],"no-cache"===t.fetchPolicy?this.diff={result:e.data,complete:!0}:r&&(R(e,t.errorPolicy)?this.cache.performTransaction(function(r){if(n.shouldWrite(e,t.variables))r.writeQuery({query:n.document,data:e.data,variables:t.variables}),n.lastWrite={result:e,variables:t.variables,dmCount:w.get(n.cache)};else if(n.diff&&n.diff.complete)return void(e.data=n.diff.result);var i=r.diff({query:n.document,variables:t.variables,returnPartialData:!0,optimistic:!0});n.updateWatch(t.variables),n.diff=i,i.complete&&(e.data=i.result)}):this.lastWrite=void 0)},e.prototype.markReady=function(){return this.networkError=null,this.networkStatus=t.NetworkStatus.ready},e.prototype.markError=function(e){return this.networkStatus=t.NetworkStatus.error,this.lastWrite=void 0,e.graphQLErrors&&(this.graphQLErrors=e.graphQLErrors),e.networkError&&(this.networkError=e.networkError),e},e}();function R(e,t){void 0===t&&(t="none");var r="ignore"===t||"all"===t,n=!u.graphQLResultHasError(e);return!n&&r&&e.data&&(n=!0),n}var x=Object.prototype.hasOwnProperty,F=function(){function e(e){var t=e.cache,r=e.link,n=e.queryDeduplication,i=void 0!==n&&n,o=e.onBroadcast,a=void 0===o?function(){}:o,s=e.ssrMode,c=void 0!==s&&s,l=e.clientAwareness,f=void 0===l?{}:l,p=e.localState,h=e.assumeImmutableResults;this.mutationStore=new b,this.clientAwareness={},this.queries=new Map,this.fetchCancelFns=new Map,this.transformCache=new(u.canUseWeakMap?WeakMap:Map),this.queryIdCounter=1,this.requestIdCounter=1,this.mutationIdCounter=1,this.inFlightLinkObservables=new Map,this.cache=t,this.link=r,this.queryDeduplication=i,this.onBroadcast=a,this.clientAwareness=f,this.localState=p||new S({cache:t}),this.ssrMode=c,this.assumeImmutableResults=!!h}return e.prototype.stop=function(){var e=this;
1this.queries.forEach(function(t,r){e.stopQueryNoBroadcast(r)}),this.cancelPendingFetches(new a.InvariantError(12))},e.prototype.cancelPendingFetches=function(e){this.fetchCancelFns.forEach(function(t){return t(e)}),this.fetchCancelFns.clear()},e.prototype.mutate=function(e){var t=e.mutation,r=e.variables,n=e.optimisticResponse,i=e.updateQueries,s=e.refetchQueries,c=void 0===s?[]:s,l=e.awaitRefetchQueries,p=void 0!==l&&l,h=e.update,d=e.errorPolicy,v=void 0===d?"none":d,y=e.fetchPolicy,b=e.context,m=void 0===b?{}:b;return o.__awaiter(this,void 0,void 0,function(){var e,s,l,d,b=this;return o.__generator(this,function(g){switch(g.label){case 0:return a.invariant(t,13),a.invariant(!y||"no-cache"===y,14),e=this.generateMutationId(),t=this.transform(t).document,r=this.getVariables(t,r),this.transform(t).hasClientExports?[4,this.localState.addExportedVariables(t,r,m)]:[3,2];case 1:r=g.sent(),g.label=2;case 2:return s=function(){var e={};return i&&b.queries.forEach(function(t,r){var n=t.observableQuery;if(n){var o=n.queryName;o&&x.call(i,o)&&(e[r]={updater:i[o],queryInfo:b.queries.get(r)})}}),e},this.mutationStore.initMutation(e,t,r),n&&(l="function"===typeof n?n(r):n,this.cache.recordOptimisticTransaction(function(n){try{q({mutationId:e,result:{data:l},document:t,variables:r,errorPolicy:v,queryUpdatersById:s(),update:h},n)}catch(e){}},e)),this.broadcastQueries(),d=this,[2,new Promise(function(i,a){var l,b;d.getObservableFromLink(t,o.__assign(o.__assign({},m),{optimisticResponse:n}),r,!1).subscribe({next:function(n){if(u.graphQLResultHasError(n)&&"none"===v)b=new f.ApolloError({graphQLErrors:n.errors});else{if(d.mutationStore.markMutationResult(e),"no-cache"!==y)try{q({mutationId:e,result:n,document:t,variables:r,errorPolicy:v,queryUpdatersById:s(),update:h},d.cache)}catch(e){return void(b=new f.ApolloError({networkError:e}))}l=n}},error:function(t){d.mutationStore.markMutationError(e,t),n&&d.cache.removeOptimistic(e),d.broadcastQueries(),a(new f.ApolloError({networkError:t}))},complete:function(){if(b&&d.mutationStore.markMutationError(e,b),n&&d.cache.removeOptimistic(e),d.broadcastQueries(),b)a(b);else{"function"===typeof c&&(c=c(l));var t=[];u.isNonEmptyArray(c)&&c.forEach(function(e){if("string"===typeof e)d.queries.forEach(function(r){var n=r.observableQuery;n&&n.queryName===e&&t.push(n.refetch())});else{var r={query:e.query,variables:e.variables,fetchPolicy:"network-only"};e.context&&(r.context=e.context),t.push(d.query(r))}}),Promise.all(p?t:[]).then(function(){"ignore"===v&&l&&u.graphQLResultHasError(l)&&delete l.errors,i(l)},a)}}})})]}})})},e.prototype.fetchQuery=function(e,t,r){return this.fetchQueryObservable(e,t,r).promise},e.prototype.getQueryStore=function(){var e=Object.create(null);return this.queries.forEach(function(t,r){e[r]={variables:t.variables,networkStatus:t.networkStatus,networkError:t.networkError,graphQLErrors:t.graphQLErrors}}),e},e.prototype.resetErrors=function(e){var t=this.queries.get(e);t&&(t.networkError=void 0,t.graphQLErrors=[])},e.prototype.transform=function(e){var t=this.transformCache;if(!t.has(e)){var r=this.cache.transformDocument(e),n=u.removeConnectionDirectiveFromDocument(this.cache.transformForLink(r)),i=this.localState.clientQuery(r),o=n&&this.localState.serverQuery(n),a={document:r,hasClientExports:u.hasClientExports(r),hasForcedResolvers:this.localState.shouldForceResolvers(r),clientQuery:i,serverQuery:o,defaultVars:u.getDefaultValues(u.getOperationDefinition(r))},s=function(e){e&&!t.has(e)&&t.set(e,a)};s(e),s(r),s(i),s(o)}return t.get(e)},e.prototype.getVariables=function(e,t){return o.__assign(o.__assign({},this.transform(e).defaultVars),t)},e.prototype.watchQuery=function(e){"undefined"===typeof(e=o.__assign(o.__assign({},e),{variables:this.getVariables(e.query,e.variables)})).notifyOnNetworkStatusChange&&(e.notifyOnNetworkStatusChange=!1);var t=new E(this.cache),r=new _({queryManager:this,queryInfo:t,options:e});return this.queries.set(r.queryId,t),t.init({document:e.query,observableQuery:r,variables:e.variables}),r},e.prototype.query=function(e){var t=this;a.invariant(e.query,15),a.invariant("Document"===e.query.kind,16),a.invariant(!e.returnPartialData,17),a.invariant(!e.pollInterval,18);var r=this.generateQueryId();return this.fetchQuery(r,e).finally(function(){return t.stopQuery(r)})},e.prototype.generateQueryId=function(){return String(this.queryIdCounter++)},e.prototype.generateRequestId=function(){return this.requestIdCounter++},e.prototype.generateMutationId=function(){return String(this.mutationIdCounter++)},e.prototype.stopQueryInStore=function(e){this.stopQueryInStoreNoBroadcast(e),this.broadcastQueries()},e.prototype.stopQueryInStoreNoBroadcast=function(e){var t=this.queries.get(e);t&&t.stop()},e.prototype.clearStore=function(){return this.cancelPendingFetches(new a.InvariantError(19)),this.queries.forEac
1h(function(e){e.observableQuery?e.networkStatus=t.NetworkStatus.loading:e.stop()}),this.mutationStore.reset(),this.cache.reset()},e.prototype.resetStore=function(){var e=this;return this.clearStore().then(function(){return e.reFetchObservableQueries()})},e.prototype.reFetchObservableQueries=function(e){var t=this;void 0===e&&(e=!1);var r=[];return this.queries.forEach(function(n,i){var o=n.observableQuery;if(o&&o.hasObservers()){var a=o.options.fetchPolicy;o.resetLastResults(),"cache-only"===a||!e&&"standby"===a||r.push(o.refetch()),t.getQuery(i).setDiff(null)}}),this.broadcastQueries(),Promise.all(r)},e.prototype.setObservableQuery=function(e){this.getQuery(e.queryId).setObservableQuery(e)},e.prototype.startGraphQLSubscription=function(e){var t=this,r=e.query,n=e.fetchPolicy,i=e.errorPolicy,o=e.variables,a=e.context,s=void 0===a?{}:a;r=this.transform(r).document,o=this.getVariables(r,o);var c=function(e){return t.getObservableFromLink(r,s,e,!1).map(function(o){if("no-cache"!==n&&(R(o,i)&&t.cache.write({query:r,result:o.data,dataId:"ROOT_SUBSCRIPTION",variables:e}),t.broadcastQueries()),u.graphQLResultHasError(o))throw new f.ApolloError({graphQLErrors:o.errors});return o})};if(this.transform(r).hasClientExports){var l=this.localState.addExportedVariables(r,o,s).then(c);return new u.Observable(function(e){var t=null;return l.then(function(r){return t=r.subscribe(e)},e.error),function(){return t&&t.unsubscribe()}})}return c(o)},e.prototype.stopQuery=function(e){this.stopQueryNoBroadcast(e),this.broadcastQueries()},e.prototype.stopQueryNoBroadcast=function(e){this.stopQueryInStoreNoBroadcast(e),this.removeQuery(e)},e.prototype.removeQuery=function(e){this.fetchCancelFns.delete(e),this.getQuery(e).subscriptions.forEach(function(e){return e.unsubscribe()}),this.queries.delete(e)},e.prototype.broadcastQueries=function(){this.onBroadcast(),this.queries.forEach(function(e){return e.notify()})},e.prototype.getLocalState=function(){return this.localState},e.prototype.getObservableFromLink=function(e,t,r,n){var i,a,c=this;void 0===n&&(n=null!==(i=null===t||void 0===t?void 0:t.queryDeduplication)&&void 0!==i?i:this.queryDeduplication);var l=this.transform(e).serverQuery;if(l){var f=this.inFlightLinkObservables,p=this.link,h={query:l,variables:r,operationName:u.getOperationName(l)||void 0,context:this.prepareContext(o.__assign(o.__assign({},t),{forceFetch:!n}))};if(t=h.context,n){var d=f.get(l)||new Map;f.set(l,d);var v=JSON.stringify(r);if(!(a=d.get(v))){var y=new u.Concast([s.execute(p,h)]);d.set(v,a=y),y.cleanup(function(){d.delete(v)&&d.size<1&&f.delete(l)})}}else a=new u.Concast([s.execute(p,h)])}else a=new u.Concast([u.Observable.of({data:{}})]),t=this.prepareContext(t);var b=this.transform(e).clientQuery;return b&&(a=u.asyncMap(a,function(e){return c.localState.runResolvers({document:b,remoteResult:e,context:t,variables:r})})),a},e.prototype.getResultsFromLink=function(e,r,n){var i=e.lastRequestId;return u.asyncMap(this.getObservableFromLink(e.document,n.context,n.variables),function(o){var a=u.isNonEmptyArray(o.errors);if(i>=e.lastRequestId){if(a&&"none"===n.errorPolicy)throw e.markError(new f.ApolloError({graphQLErrors:o.errors}));e.markResult(o,n,r),e.markReady()}var s={data:o.data,loading:!1,networkStatus:e.networkStatus||t.NetworkStatus.ready};return a&&"ignore"!==n.errorPolicy&&(s.errors=o.errors),s},function(t){var r=f.isApolloError(t)?t:new f.ApolloError({networkError:t});throw i>=e.lastRequestId&&e.markError(r),r})},e.prototype.fetchQueryObservable=function(e,r,n){var i=this;void 0===n&&(n=t.NetworkStatus.loading);var o=this.transform(r.query).document,a=this.getVariables(o,r.variables),s=this.getQuery(e),c=s.networkStatus,l=r.fetchPolicy,f=void 0===l?"cache-first":l,p=r.errorPolicy,h=void 0===p?"none":p,d=r.returnPartialData,v=void 0!==d&&d,y=r.notifyOnNetworkStatusChange,b=void 0!==y&&y,g=r.context,_=void 0===g?{}:g;("cache-first"===f||"cache-and-network"===f||"network-only"===f||"no-cache"===f)&&b&&"number"===typeof c&&c!==n&&m(n)&&("cache-first"!==f&&(f="cache-and-network"),v=!0);var O=Object.assign({},r,{query:o,variables:a,fetchPolicy:f,errorPolicy:h,returnPartialData:v,notifyOnNetworkStatusChange:b,context:_}),S=function(e){return O.variables=e,i.fetchQueryByPolicy(s,O,n)};this.fetchCancelFns.set(e,function(e){Promise.resolve().then(function(){return w.cancel(e)})});var w=new u.Concast(this.transform(O.query).hasClientExports?this.localState.addExportedVariables(O.query,O.variables,O.context).then(S):S(O.variables));return w.cleanup(function(){i.fetchCancelFns.delete(e);var t=r.nextFetchPolicy;t&&(r.nextFetchPolicy=void 0,r.fetchPolicy="function"===typeof t?t.call(r,r.fetchPolicy||"cache-first"):t)}),w},e.prototype.fetchQueryByPolicy=function(e,r,n){var i=this,a=r.query,s=r.variables,c=r.fetchPolicy,l=r.errorPolicy,f=r.returnPartialData,p=r.context;e.init({document:a,variables:s,lastRequestId:this.generateRequestId(),networkStatus:n});var h=function(){return e.getDiff(s)},d=function(r,n){void 0===n&&(n=e.networkStatus||t.NetworkStatus.loading);var c=r.result;var l=function(e){return u.Observable.of(o.__assign({data:e,loading:m(n),networkStatus:n},r.complete?null:{partial:!0}))};return i.transform(a).hasForcedResolvers?i.localState.runResolvers({document:a,remoteResult:{data:c},context:p,variables:s,onlyRunForcedResolvers:!0}).then(function(e){return l(e.data)}):l(c)},v=function(t){return i.getResultsFromLink(e,t,{variables:s,context:p,fetchPolicy:c,errorPolicy:l})};switch(c){default:case"cache-first":return(y=h()).complete?[d(y,e.markReady())]:f?[d(y),v(!0)]:[v(!0)];case"cache-and-network":var y;return(y=h()).complete||f?[d(y),v(!0)]:[v(!0)];case"cache-only":return[d(h(),e.markReady())];case"network-only":return[v(!0)];case"no-cache":return[v(!1)];case"standby":return[]}},e.prototype.getQuery=function(e){return e&&!this.queries.has(e)&&this.queries.set(e,new E(this.cache)),this.queries.get(e)},e.prototype.prepareContext=function(e){void 0===e&&(e={});var t=this.localState.prepareContext(e);return o.__assign(o.__assign({},t),{clientAwareness:this.clientAwareness})},e}();function q(e,t){if(R(e.result,e.errorPolicy)){var r=[{result:e.result.data,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables}],n=e.queryUpdatersById;
1n&&Object.keys(n).forEach(function(i){var o=n[i],a=o.updater,s=o.queryInfo,c=s.document,l=s.variables,f=t.diff({query:c,variables:l,returnPartialData:!0,optimistic:!1}),p=f.result;if(f.complete&&p){var h=a(p,{mutationResult:e.result,queryName:u.getOperationName(c)||void 0,queryVariables:l});h&&r.push({result:h,dataId:"ROOT_QUERY",query:c,variables:l})}}),t.performTransaction(function(t){r.forEach(function(e){return t.write(e)});var n=e.update;n&&n(t,e.result)},null)}}var D=function(){function e(e){var t=this;this.defaultOptions={},this.resetStoreCallbacks=[],this.clearStoreCallbacks=[];var r=e.uri,n=e.credentials,i=e.headers,o=e.cache,u=e.ssrMode,l=void 0!==u&&u,f=e.ssrForceFetchDelay,p=void 0===f?0:f,h=e.connectToDevTools,d=e.queryDeduplication,v=void 0===d||d,b=e.defaultOptions,m=e.assumeImmutableResults,g=void 0!==m&&m,_=e.resolvers,O=e.typeDefs,w=e.fragmentMatcher,k=e.name,E=e.version,R=e.link;if(R||(R=r?new c.HttpLink({uri:r,credentials:n,headers:i}):s.ApolloLink.empty()),!o)throw new a.InvariantError(9);this.link=R,this.cache=o,this.disableNetworkFetches=l||p>0,this.queryDeduplication=v,this.defaultOptions=b||{},this.typeDefs=O,p&&setTimeout(function(){return t.disableNetworkFetches=!1},p),this.watchQuery=this.watchQuery.bind(this),this.query=this.query.bind(this),this.mutate=this.mutate.bind(this),this.resetStore=this.resetStore.bind(this),this.reFetchObservableQueries=this.reFetchObservableQueries.bind(this);"undefined"!==typeof h&&(h&&"undefined"!==typeof window)&&(window.__APOLLO_CLIENT__=this),this.version=y,this.localState=new S({cache:o,client:this,resolvers:_,fragmentMatcher:w}),this.queryManager=new F({cache:this.cache,link:this.link,queryDeduplication:v,ssrMode:l,clientAwareness:{name:k,version:E},localState:this.localState,assumeImmutableResults:g,onBroadcast:function(){t.devToolsHookCb&&t.devToolsHookCb({action:{},state:{queries:t.queryManager.getQueryStore(),mutations:t.queryManager.mutationStore.getStore()},dataWithOptimisticResults:t.cache.extract(!0)})}})}return e.prototype.stop=function(){this.queryManager.stop()},e.prototype.watchQuery=function(e){return this.defaultOptions.watchQuery&&(e=u.compact(this.defaultOptions.watchQuery,e)),!this.disableNetworkFetches||"network-only"!==e.fetchPolicy&&"cache-and-network"!==e.fetchPolicy||(e=o.__assign(o.__assign({},e),{fetchPolicy:"cache-first"})),this.queryManager.watchQuery(e)},e.prototype.query=function(e){return this.defaultOptions.query&&(e=u.compact(this.defaultOptions.query,e)),a.invariant("cache-and-network"!==e.fetchPolicy,10),this.disableNetworkFetches&&"network-only"===e.fetchPolicy&&(e=o.__assign(o.__assign({},e),{fetchPolicy:"cache-first"})),this.queryManager.query(e)},e.prototype.mutate=function(e){return this.defaultOptions.mutate&&(e=u.compact(this.defaultOptions.mutate,e)),this.queryManager.mutate(e)},e.prototype.subscribe=function(e){return this.queryManager.startGraphQLSubscription(e)},e.prototype.readQuery=function(e,t){return void 0===t&&(t=!1),this.cache.readQuery(e,t)},e.prototype.readFragment=function(e,t){return void 0===t&&(t=!1),this.cache.readFragment(e,t)},e.prototype.writeQuery=function(e){this.cache.writeQuery(e),this.queryManager.broadcastQueries()},e.prototype.writeFragment=function(e){this.cache.writeFragment(e),this.queryManager.broadcastQueries()},e.prototype.__actionHookForDevTools=function(e){this.devToolsHookCb=e},e.prototype.__requestRaw=function(e){return s.execute(this.link,e)},e.prototype.resetStore=function(){var e=this;return Promise.resolve().then(function(){return e.queryManager.clearStore()}).then(function(){return Promise.all(e.resetStoreCallbacks.map(function(e){return e()}))}).then(function(){return e.reFetchObservableQueries()})},e.prototype.clearStore=function(){var e=this;return Promise.resolve().then(function(){return e.queryManager.clearStore()}).then(function(){return Promise.all(e.clearStoreCallbacks.map(function(e){return e()}))})},e.prototype.onResetStore=function(e){var t=this;return this.resetStoreCallbacks.push(e),function(){t.resetStoreCallbacks=t.resetStoreCallbacks.filter(function(t){return t!==e})}},e.prototype.onClearStore=function(e){var t=this;return this.clearStoreCallbacks.push(e),function(){t.clearStoreCallbacks=t.clearStoreCallbacks.filter(function(t){return t!==e})}},e.prototype.reFetchObservableQueries=function(e){return this.queryManager.reFetchObservableQueries(e)},e.prototype.extract=function(e){return this.cache.extract(e)},e.prototype.restore=function(e){return this.cache.restore(e)},e.prototype.addResolvers=function(e){this.localState.addResolvers(e)},e.prototype.setResolvers=function(e){this.localState.setResolvers(e)},e.prototype.getResolvers=function(){return this.localState.getResolvers()},e.prototype.setLocalStateFragmentMatcher=function(e){this.localState.setFragmentMatcher(e)},e.prototype.setLink=function(e){this.link=this.queryManager.link=e},e}(),P=v.resetCaches,Q=v.disableFragmentWarnings,M=v.enableExperimentalFragmentVariables,I=v.disableExperimentalFragmentVariables;
1Object.keys(s).forEach(function(e){"default"!==e&&(t[e]=s[e])}),Object.keys(c).forEach(function(e){"default"!==e&&(t[e]=c[e])}),t.Observable=u.Observable,t.isReference=u.isReference,t.makeReference=u.makeReference,t.ApolloError=f.ApolloError,t.isApolloError=f.isApolloError,t.ApolloCache=h.ApolloCache,t.Cache=h.Cache,t.InMemoryCache=h.InMemoryCache,t.MissingFieldError=h.MissingFieldError,t.defaultDataIdFromObject=h.defaultDataIdFromObject,t.makeVar=h.makeVar,t.fromError=d.fromError,t.fromPromise=d.fromPromise,t.throwServerError=d.throwServerError,t.toPromise=d.toPromise,t.gql=v,t.ApolloClient=D,t.ObservableQuery=_,t.disableExperimentalFragmentVariables=I,t.disableFragmentWarnings=Q,t.enableExperimentalFragmentVariables=M,t.resetCaches=P},d84396be64c9ec94803c:function(e,t,r){"use strict";(function(e){function n(e){return e&&"object"===typeof e&&"default"in e?e.default:e}Object.defineProperty(t,"__esModule",{value:!0});var i=r("dce61a7c29f1ed289d72"),o=r("8e8a415cea7aa33c6fc8"),a=r("2694d7af9e649832d940"),s=n(r("e7e54fe01bcb5e018c1d")),u=n(r("9edef3da34909980d480"));function c(e){var t=[];return i.visit(e,{Directive:function(e){t.push(e.name.value)}}),t}function l(e,t){return c(t).some(function(t){return e.indexOf(t)>-1})}function f(e){var t=[];return e&&e.length&&e.forEach(function(e){if("skip"===(r=e.name.value)||"include"===r){var r,n=e.arguments;e.name.value;o.invariant(n&&1===n.length,39);var i=n[0];o.invariant(i.name&&"if"===i.name.value,40);var a=i.value;o.invariant(a&&("Variable"===a.kind||"BooleanValue"===a.kind),41),t.push({directive:e,ifArgument:i})}}),t}function p(e){void 0===e&&(e=[]);var t={};return e.forEach(function(e){t[e.name.value]=e}),t}function h(e,t){switch(e.kind){case"InlineFragment":return e;case"FragmentSpread":var r=t&&t[e.name.value];return o.invariant(r,44),r;default:return null}}function d(e,t,r,n){if(function(e){return"IntValue"===e.kind}(r)||function(e){return"FloatValue"===e.kind}(r))e[t.value]=Number(r.value);else if(function(e){return"BooleanValue"===e.kind}(r)||function(e){return"StringValue"===e.kind}(r))e[t.value]=r.value;else if(function(e){return"ObjectValue"===e.kind}(r)){var i={};r.fields.map(function(e){return d(i,e.name,e.value,n)}),e[t.value]=i}else if(function(e){return"Variable"===e.kind}(r)){var a=(n||{})[r.name.value];e[t.value]=a}else if(function(e){return"ListValue"===e.kind}(r))e[t.value]=r.values.map(function(e){var r={};return d(r,t,e,n),r[t.value]});else if(function(e){return"EnumValue"===e.kind}(r))e[t.value]=r.value;else{if(!function(e){return"NullValue"===e.kind}(r))throw new o.InvariantError(53);e[t.value]=null}}r("8ba8255ed5285a7af2d1");var v=["connection","include","skip","client","rest","export"];function y(e,t,r){if(t&&r&&r.connection&&r.connection.key){if(r.connection.filter&&r.connection.filter.length>0){var n=r.connection.filter?r.connection.filter:[];n.sort();var i={};return n.forEach(function(e){i[e]=t[e]}),r.connection.key+"("+JSON.stringify(i)+")"}return r.connection.key}var o=e;if(t){var a=s(t);o+="("+a+")"}return r&&Object.keys(r).forEach(function(e){-1===v.indexOf(e)&&(r[e]&&Object.keys(r[e]).length?o+="@"+e+"("+JSON.stringify(r[e])+")":o+="@"+e)}),o}function b(e){return e.alias?e.alias.value:e.name.value}function m(e){return"Field"===e.kind}function g(e){return"InlineFragment"===e.kind}function _(e){o.invariant(e&&"Document"===e.kind,45);var t=e.definitions.filter(function(e){return"FragmentDefinition"!==e.kind}).map(function(e){if("OperationDefinition"!==e.kind)throw new o.InvariantError(46);return e});return o.invariant(t.length<=1,47),e}function O(e){return _(e),e.definitions.filter(function(e){return"OperationDefinition"===e.kind})[0]}function S(e){return e.definitions.filter(function(e){return"FragmentDefinition"===e.kind})}function w(e){o.invariant("Document"===e.kind,49),o.invariant(e.definitions.length<=1,50);var t=e.definitions[0];return o.invariant("FragmentDefinition"===t.kind,51),t}function k(e){var t;_(e);for(var r=0,n=e.definitions;r<n.length;r++){var i=n[r];if("OperationDefinition"===i.kind){var a=i.operation;if("query"===a||"mutation"===a||"subscription"===a)return i}"FragmentDefinition"!==i.kind||t||(t=i)}if(t)return t;throw new o.InvariantError(52)}function E(e,t,r){var n=0;return e.forEach(function(r,i){t.call(this,r,i,e)&&(e[n++]=r)},r),e.length=n,e}var R={kind:"Field",name:{kind:"Name",value:"__typename"}};function x(e){return function e(t,r){return t.selectionSet.selections.every(function(t){return"FragmentSpread"===t.kind&&e(r[t.name.value],r)})}(O(e)||w(e),p(S(e)))?null:e}function F(e){return function(t){return e.some(function(e){return e.name&&e.name===t.name.value||e.test&&e.test(t)})}}function q(e,t){var r=Object.create(null),n=[],o=Object.create(null),a=[],s=x(i.visit(t,{Variable:{enter:function(e,t,n){"VariableDefinition"!==n.kind&&(r[e.name.value]=!0)}},Field:{enter:function(t){if(e&&t.directives&&(e.some(function(e){return e.remove})&&t.directives&&t.directives.some(F(e))))return t.arguments&&t.arguments.forEac
1h(function(e){"Variable"===e.value.kind&&n.push({name:e.value.name.value})}),t.selectionSet&&function e(t){var r=[];t.selections.forEach(function(t){(m(t)||g(t))&&t.selectionSet?e(t.selectionSet).forEach(function(e){return r.push(e)}):"FragmentSpread"===t.kind&&r.push(t)});return r}(t.selectionSet).forEach(function(e){a.push({name:e.name.value})}),null}},FragmentSpread:{enter:function(e){o[e.name.value]=!0}},Directive:{enter:function(t){if(F(e)(t))return null}}}));return s&&E(n,function(e){return!!e.name&&!r[e.name]}).length&&(s=Q(n,s)),s&&E(a,function(e){return!!e.name&&!o[e.name]}).length&&(s=M(a,s)),s}function D(e){return i.visit(_(e),{SelectionSet:{enter:function(e,t,r){if(!r||"OperationDefinition"!==r.kind){var n=e.selections;if(n)if(!n.some(function(e){return m(e)&&("__typename"===e.name.value||0===e.name.value.lastIndexOf("__",0))})){var i=r;if(!(m(i)&&i.directives&&i.directives.some(function(e){return"export"===e.name.value})))return a.__assign(a.__assign({},e),{selections:a.__spreadArrays(n,[R])})}}}}})}D.added=function(e){return e===R};var P={test:function(e){var t="connection"===e.name.value;return t&&(!e.arguments||e.arguments.some(function(e){return"key"===e.name.value})),t}};function Q(e,t){var r=function(e){return function(t){return e.some(function(e){return t.value&&"Variable"===t.value.kind&&t.value.name&&(e.name===t.value.name.value||e.test&&e.test(t))})}}(e);return x(i.visit(t,{OperationDefinition:{enter:function(t){return a.__assign(a.__assign({},t),{variableDefinitions:t.variableDefinitions?t.variableDefinitions.filter(function(t){return!e.some(function(e){return e.name===t.variable.name.value})}):[]})}},Field:{enter:function(t){if(e.some(function(e){return e.remove})){var n=0;if(t.arguments&&t.arguments.forEach(function(e){r(e)&&(n+=1)}),1===n)return null}}},Argument:{enter:function(e){if(r(e))return null}}}))}function M(e,t){function r(t){if(e.some(function(e){return e.name===t.name.value}))return null}return x(i.visit(t,{FragmentSpread:{enter:r},FragmentDefinition:{enter:r}}))}var I=function(e){return a.__rest(e,C)},C=["edges","pageInfo"];var j=Object.prototype.hasOwnProperty;function T(e){var t=e[0]||{},r=e.length;if(r>1)for(var n=new L,i=1;i<r;++i)t=n.merge(t,e[i]);return t}function N(e){return null!==e&&"object"===typeof e}var A=function(e,t,r){return this.merge(e[r],t[r])},L=function(){function e(e){void 0===e&&(e=A),this.reconciler=e,this.isObject=N,this.pastCopies=new Set}return e.prototype.merge=function(e,t){for(var r=this,n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];return N(t)&&N(e)?(Object.keys(t).forEach(function(i){if(j.call(e,i)){var o=e[i];if(t[i]!==o){var s=r.reconciler.apply(r,a.__spreadArrays([e,t,i],n));s!==o&&((e=r.shallowCopyForMerge(e))[i]=s)}}else(e=r.shallowCopyForMerge(e))[i]=t[i]}),e):t},e.prototype.shallowCopyForMerge=function(e){return N(e)&&!this.pastCopies.has(e)&&(e=Array.isArray(e)?e.slice(0):a.__assign({__proto__:Object.getPrototypeOf(e)},e),this.pastCopies.add(e)),e},e}(),V=Object.prototype.toString;function z(e,t,r){var n=[];e.forEach(function(e){return e[t]&&n.push(e)}),n.forEach(function(e){return e[t](r)})}function W(e){return e&&"function"===typeof e.then}var B=function(e){function t(t){var r=e.call(this,function(e){return r.addObserver(e),function(){return r.removeObserver(e)}})||this;return r.observers=new Set,r.promise=new Promise(function(e,t){r.resolve=e,r.reject=t}),r.handlers={next:function(e){null!==r.sub&&(r.latest=["next",e],z(r.observers,"next",e))},error:function(e){null!==r.sub&&(r.sub&&r.sub.unsubscribe(),r.sub=null,r.latest=["error",e],r.reject(e),z(r.observers,"error",e))},complete:function(){if(null!==r.sub){var e=r.sources.shift();e?W(e)?e.then(function(e){return r.sub=e.subscribe(r.handlers)}):r.sub=e.subscribe(r.handlers):(r.sub=null,r.latest&&"next"===r.latest[0]?r.resolve(r.latest[1]):r.resolve(),z(r.observers,"complete"))}}},r.cancel=function(e){r.reject(e),r.sources=[],r.handlers.complete()},r.promise.catch(function(e){}),W(t)?t.then(function(e){return r.start(e)},r.handlers.error):r.start(t),r}return a.__extends(t,e),t.prototype.start=function(e){void 0===this.sub&&(this.sources=Array.from(e),this.handlers.complete())},t.prototype.addObserver=function(e){if(!this.observers.has(e)){
1if(this.latest){var t=this.latest[0],r=e[t];r&&r.call(e,this.latest[1]),null===this.sub&&"next"===t&&e.complete&&e.complete()}this.observers.add(e)}},t.prototype.removeObserver=function(e,t){if(this.observers.delete(e)&&this.observers.size<1){if(t)return;this.sub&&(this.sub.unsubscribe(),this.reject(new Error("Observable cancelled prematurely"))),this.sub=null}},t.prototype.cleanup=function(e){var t=this,r=!1,n=function(){r||(r=!0,t.observers.delete(i),e())},i={next:n,error:n,complete:n};this.addObserver(i)},t}(u);"function"===typeof Symbol&&Symbol.species&&Object.defineProperty(B,Symbol.species,{value:u});var U="function"===typeof WeakMap&&!("object"===typeof navigator&&"ReactNative"===navigator.product);t.Observable=u,t.Concast=B,t.DeepMerger=L,t.addTypenameToDocument=D,t.argumentsObjectFromField=function(e,t){if(e.arguments&&e.arguments.length){var r={};return e.arguments.forEach(function(e){var n=e.name,i=e.value;return d(r,n,i,t)}),r}return null},t.asyncMap=function(e,t,r){return new u(function(n){var i=n.next,o=n.error,a=n.complete,s=0,u=!1;function c(e,t){return e?function(t){++s,new Promise(function(r){return r(e(t))}).then(function(e){--s,i&&i.call(n,e),u&&l.complete()},function(e){--s,o&&o.call(n,e)})}:function(e){return t&&t.call(n,e)}}var l={next:c(t,i),error:c(r,o),complete:function(){u=!0,s||a&&a.call(n)}},f=e.subscribe(l);return function(){return f.unsubscribe()}})},t.buildQueryFromSelectionSet=function(e){return"query"===k(e).operation?e:i.visit(e,{OperationDefinition:{enter:function(e){return a.__assign(a.__assign({},e),{operation:"query"})}}})},t.canUseWeakMap=U,t.checkDocument=_,t.cloneDeep=function(e){return function e(t,r){switch(V.call(t)){case"[object Array]":if((r=r||new Map).has(t))return r.get(t);var n=t.slice(0);return r.set(t,n),n.forEach(function(t,i){n[i]=e(t,r)}),n;case"[object Object]":if((r=r||new Map).has(t))return r.get(t);var i=Object.create(Object.getPrototypeOf(t));return r.set(t,i),Object.keys(t).forEach(function(n){i[n]=e(t[n],r)}),i;default:return t}}(e)},t.compact=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=Object.create(null);return e.forEach(function(e){e&&Object.keys(e).forEach(function(t){var n=e[t];void 0!==n&&(r[t]=n)})}),r},t.concatPagination=function(e){return void 0===e&&(e=!1),{keyArgs:e,merge:function(e,t){return e?a.__spreadArrays(e,t):t}}},t.createFragmentMap=p,t.getDefaultValues=function(e){var t=Object.create(null),r=e&&e.variableDefinitions;return r&&r.length&&r.forEach(function(e){e.defaultValue&&d(t,e.variable.name,e.defaultValue)}),t},t.getDirectiveNames=c,t.getFragmentDefinition=w,t.getFragmentDefinitions=S,t.getFragmentFromSelection=h,t.getFragmentQueryDocument=function(e,t){var r=t,n=[];return e.definitions.forEach(function(e){if("OperationDefinition"===e.kind)throw new o.InvariantError(42);"FragmentDefinition"===e.kind&&n.push(e)}),"undefined"===typeof r&&(o.invariant(1===n.length,43),r=n[0].name.value),a.__assign(a.__assign({},e),{definitions:a.__spreadArrays([{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:r}}]}}],e.definitions)})},t.getInclusionDirectives=f,t.getMainDefinition=k,t.getOperationDefinition=O,t.getOperationName=function(e){return e.definitions.filter(function(e){return"OperationDefinition"===e.kind&&e.name}).map(function(e){return e.name.value})[0]||null},t.getQueryDefinition=function(e){var t=O(e);return o.invariant(t&&"query"===t.operation,48),t},t.getStoreKeyName=y,t.getTypenameFromResult=function e(t,r,n){if("string"===typeof t.__typename)return t.__typename;for(var i=0,o=r.selections;i<o.length;i++){var a=o[i];if(m(a)){if("__typename"===a.name.value)return t[b(a)]}else{var s=e(t,h(a,n).selectionSet,n);if("string"===typeof s)return s}}},t.graphQLResultHasError=function(e){return e.errors&&e.errors.length>0||!1},t.hasClientExports=function(e){return e&&l(["client"],e)&&l(["export"],e)},t.hasDirectives=l,t.isField=m,t.isInlineFragment=g,t.isNonEmptyArray=function(e){return Array.isArray(e)&&e.length>0},t.isReference=function(e){return Boolean(e&&"object"===typeof e&&"string"===typeof e.__ref)},t.iterateObserversSafely=z,t.makeReference=function(e){return{__ref:String(e)}},t.maybeDeepFreeze=function(e){return e},t.mergeDeep=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return T(e)},t.mergeDeepArray=T,t.offsetLimitPagination=function(e){return void 0===e&&(e=!1),{keyArgs:e,merge:function(e,t,r){var n=r.args,i=e?e.slice(0):[];if(n)for(var o=n.offset,a=void 0===o?0:o,s=0;s<t.length;
1++s)i[a+s]=t[s];else i.push.apply(i,t);return i}}},t.relayStylePagination=function(e){return void 0===e&&(e=!1),{keyArgs:e,read:function(e,t){var r=t.canRead,n=t.readField;if(e){var i=[],o="",s="";return e.edges.forEach(function(e){r(n("node",e))&&(i.push(e),e.cursor&&(o=o||e.cursor,s=e.cursor))}),a.__assign(a.__assign({},I(e)),{edges:i,pageInfo:a.__assign(a.__assign({},e.pageInfo),{startCursor:o,endCursor:s})})}},merge:function(e,t,r){void 0===e&&(e={edges:[],pageInfo:{hasPreviousPage:!1,hasNextPage:!0,startCursor:"",endCursor:""}});var n=r.args,i=r.isReference,o=r.readField,s=t.edges?t.edges.map(function(e){return i(e=a.__assign({},e))&&(e.cursor=o("cursor",e)),e}):[];if(t.pageInfo){var u=t.pageInfo,c=u.startCursor,l=u.endCursor,f=s[0];f&&c&&(f.cursor=c);var p=s[s.length-1];p&&l&&(p.cursor=l)}var h=e.edges,d=[];if(n&&n.after)(v=h.findIndex(function(e){return e.cursor===n.after}))>=0&&(h=h.slice(0,v+1));else if(n&&n.before){var v;d=(v=h.findIndex(function(e){return e.cursor===n.before}))<0?h:h.slice(v),h=[]}else t.edges&&(h=[]);var y=a.__spreadArrays(h,s,d),b=y[0],m=y[y.length-1],g=a.__assign(a.__assign(a.__assign({},t.pageInfo),e.pageInfo),{startCursor:b&&b.cursor||"",endCursor:m&&m.cursor||""});if(t.pageInfo){var _=t.pageInfo,O=_.hasPreviousPage,S=_.hasNextPage;h.length||void 0===O||(g.hasPreviousPage=O),d.length||void 0===S||(g.hasNextPage=S)}return a.__assign(a.__assign(a.__assign({},I(e)),I(t)),{edges:y,pageInfo:g})}}},t.removeArgumentsFromDocument=Q,t.removeClientSetsFromDocument=function(e){_(e);var t=q([{test:function(e){return"client"===e.name.value},remove:!0}],e);return t&&(t=i.visit(t,{FragmentDefinition:{enter:function(e){if(e.selectionSet&&e.selectionSet.selections.every(function(e){return m(e)&&"__typename"===e.name.value}))return null}}})),t},t.removeConnectionDirectiveFromDocument=function(e){return q([P],_(e))},t.removeDirectivesFromDocument=q,t.removeFragmentSpreadFromDocument=M,t.resultKeyNameFromField=b,t.shouldInclude=function(e,t){var r=e.directives;return!r||!r.length||f(r).every(function(e){var r=e.directive,n=e.ifArgument,i=!1;return"Variable"===n.value.kind?(i=t&&t[n.value.name.value],o.invariant(void 0!==i,38)):i=n.value.value,"skip"===r.name.value?!i:i})},t.storeKeyNameFromField=function(e,t){var r=null;e.directives&&(r={},e.directives.forEach(function(e){r[e.name.value]={},e.arguments&&e.arguments.forEach(function(n){var i=n.name,o=n.value;return d(r[e.name.value],i,o,t)})}));var n=null;return e.arguments&&e.arguments.length&&(n={},e.arguments.forEach(function(e){var r=e.name,i=e.value;return d(n,r,i,t)})),y(e.name.value,n,r)},t.valueToObjectRepresentation=d}).call(this,r("26d59f808dff3e83c741"))},db8d945a12356a16bda7:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r("d84396be64c9ec94803c"),i=r("8e8a415cea7aa33c6fc8"),o=r("2694d7af9e649832d940");t.createOperation=function(e,t){var r=o.__assign({},e);return Object.defineProperty(t,"setContext",{enumerable:!1,value:function(e){r="function"===typeof e?o.__assign(o.__assign({},r),e(r)):o.__assign(o.__assign({},r),e)}}),Object.defineProperty(t,"getContext",{enumerable:!1,value:function(){return o.__assign({},r)}}),t},t.fromError=function(e){return new n.Observable(function(t){t.error(e)})},t.fromPromise=function(e){return new n.Observable(function(t){e.then(function(e){t.next(e),t.complete()}).catch(t.error.bind(t))})},t.throwServerError=function(e,t,r){var n=new Error(r);throw n.name="ServerError",n.response=e,n.statusCode=e.status,n.result=t,n},t.toPromise=function(e){var t=!1;return new Promise(function(r,n){e.subscribe({next:function(e){t||(t=!0,r(e))},error:n})})},t.transformOperation=function(e){var t={variables:e.variables||{},extensions:e.extensions||{},operationName:e.operationName,query:e.query};return t.operationName||(t.operationName="string"!==typeof t.query?n.getOperationName(t.query)||void 0:""),t},t.validateOperation=function(e){for(var t=["query","operationName","variables","extensions","context"],r=0,n=Object.keys(e);r<n.length;r++){var o=n[r];if(t.indexOf(o)<0)throw new i.InvariantError(26)}return e}},e5239dfd6c2e014f1b59:function(e,t,r){"use strict";
1Object.defineProperty(t,"__esModule",{value:!0});var n=r("9edfa3c806cfdef4a44e"),i=r("f8b47a70724058b483a6");Object.keys(n).forEach(function(e){"default"!==e&&(t[e]=n[e])}),Object.keys(i).forEach(function(e){"default"!==e&&(t[e]=i[e])})},ee230b38b5abfe928a3e:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r("2694d7af9e649832d940"),i=r("d9ed1c16bdfd62e9c02c"),o=r("8e8a415cea7aa33c6fc8"),a=r("9cd4c81a6f27fdbd0c2c"),s=r("48e3d8602585b9a20563"),u=r("d84396be64c9ec94803c"),c=r("9edfa3c806cfdef4a44e"),l=function(){function e(e,t){this.isMounted=!1,this.previousOptions={},this.context={},this.options={},this.options=e||{},this.context=t||{}}return e.prototype.getOptions=function(){return this.options},e.prototype.setOptions=function(e,t){void 0===t&&(t=!1),t&&!i.equal(this.options,e)&&(this.previousOptions=this.options),this.options=e},e.prototype.unmount=function(){this.isMounted=!1},e.prototype.refreshClient=function(){var e=this.options&&this.options.client||this.context&&this.context.client;o.invariant(!!e,29);var t=!1;return e!==this.client&&(t=!0,this.client=e,this.cleanup()),{client:this.client,isNew:t}},e.prototype.verifyDocumentType=function(e,t){var r=a.parser(e);a.operationName(t),a.operationName(r.type);o.invariant(r.type===t,30)},e}(),f=function(e){function t(t){var r=t.options,n=t.context,i=t.setResult,o=e.call(this,r,n)||this;return o.currentObservable={},o.setResult=i,o.initialize(r),o}return n.__extends(t,e),t.prototype.execute=function(e){if(!0===this.getOptions().skip)return this.cleanup(),{loading:!1,error:void 0,data:void 0,variables:this.getOptions().variables};var t=e;this.refreshClient().isNew&&(t=this.getLoadingResult());var r=this.getOptions().shouldResubscribe;return"function"===typeof r&&(r=!!r(this.getOptions())),!1!==r&&this.previousOptions&&Object.keys(this.previousOptions).length>0&&(this.previousOptions.subscription!==this.getOptions().subscription||!i.equal(this.previousOptions.variables,this.getOptions().variables)||this.previousOptions.skip!==this.getOptions().skip)&&(this.cleanup(),t=this.getLoadingResult()),this.initialize(this.getOptions()),this.startSubscription(),this.previousOptions=this.getOptions(),n.__assign(n.__assign({},t),{variables:this.getOptions().variables})},t.prototype.afterExecute=function(){this.isMounted=!0},t.prototype.cleanup=function(){this.endSubscription(),delete this.currentObservable.query},t.prototype.initialize=function(e){this.currentObservable.query||!0===this.getOptions().skip||(this.currentObservable.query=this.refreshClient().client.subscribe({query:e.subscription,variables:e.variables,fetchPolicy:e.fetchPolicy}))},t.prototype.startSubscription=function(){this.currentObservable.subscription||(this.currentObservable.subscription=this.currentObservable.query.subscribe({next:this.updateCurrentData.bind(this),error:this.updateError.bind(this),complete:this.completeSubscription.bind(this)}))},t.prototype.getLoadingResult=function(){return{loading:!0,error:void 0,data:void 0}},t.prototype.updateResult=function(e){this.isMounted&&this.setResult(e)},t.prototype.updateCurrentData=function(e){var t=this.getOptions().onSubscriptionData;this.updateResult({data:e.data,loading:!1,error:void 0}),t&&t({client:this.refreshClient().client,subscriptionData:e})},t.prototype.updateError=function(e){this.updateResult({error:e,loading:!1})},t.prototype.completeSubscription=function(){var e=this.getOptions().onSubscriptionComplete;e&&e(),this.endSubscription()},t.prototype.endSubscription=function(){this.currentObservable.subscription&&(this.currentObservable.subscription.unsubscribe(),delete this.currentObservable.subscription)},t}(l),p=function(e){function t(t){var r=t.options,n=t.context,i=t.result,o=t.setResult,s=e.call(this,r,n)||this;return s.runMutation=function(e){void 0===e&&(e={}),s.onMutationStart();var t=s.generateNewMutationId();return s.mutate(e).then(function(e){return s.onMutationCompleted(e,t),e}).catch(function(e){if(s.onMutationError(e,t),!s.getOptions().onError)throw e})},s.verifyDocumentType(r.mutation,a.DocumentType.Mutation),s.result=i,s.setResult=o,s.mostRecentMutationId=0,s}return n.__extends(t,e),t.prototype.execute=function(e){return this.isMounted=!0,this.verifyDocumentType(this.getOptions().mutation,a.DocumentType.Mutation),[this.runMutation,n.__assign(n.__assign({},e),{client:this.refreshClient().client})]},t.prototype.afterExecute=function(){return this.isMounted=!0,this.unmount.bind(this)},t.prototype.cleanup=function(){},t.prototype.mutate=function(e){return this.refreshClient().client.mutate(u.compact(this.getOptions(),e))},t.prototype.onMutationStart=function(){this.result.loading||this.getOptions().ignoreResults||this.updateResult({loading:!0,error:void 0,data:void 0,called:!0})},t.prototype.onMutationCompleted=function(e,t){var r=this.getOptions(),n=r.onCompleted,i=r.ignoreResults,o=e.data,a=e.errors,u=a&&a.length>0?new s.ApolloError({graphQLErrors:a}):void 0;this.isMostRecentMutation(t)&&!i&&this.updateResult({called:!0,loading:!1,data:o,error:u}),n&&n(o)},t.prototype.onMutationError=function(e,t){var r=this.getOptions().onError;this.isMostRecentMutation(t)&&this.updateResult({loading:!1,error:e,data:void 0,called:!0}),r&&r(e)},t.prototype.generateNewMutationId=function(){return++this.mostRecentMutationId},t.prototype.isMostRecentMutation=function(e){return this.mostRecentMutationId===e},t.prototype.updateResult=function(e){!this.isMounted||this.previousResult&&i.equal(this.previousResult,e)||(this.setResult(e),this.previousResult=e)},t}(l),h=function(e){function t(t){var r=t.options,i=t.context,o=t.onNewData,a=e.call(this,r,i)||this;return a.previousData={},a.runLazy=!1,a.runLazyQuery=function(e){a.cleanup(),a.runLazy=!0,a.lazyOptions=e,a.onNewData()},a.getQueryResult=function(){var e=a.observableQueryFields(),t=a.getOptions();if(t.skip)e=n.__assign(n.__assign({},e),{data:void 0,error:void 0,loading:!1,called:!0});else if(a.currentObservable){var r=a.currentObservable.getCurrentResult(),i=r.data,o=r.loading,u=r.partial,l=r.networkStatus,f=r.errors,p=r.error;if(f&&f.length>0&&(p=new s.ApolloError({graphQLErrors:f})),e=n.__assign(n.__assign({},e),{data:i,loading:o,networkStatus:l,error:p,called:!0}),o);else if(p)Object.assign(e,{data:(a.currentObservable.getLastResult()||{}).data});else{var h=a.currentObservable.options.fetchPolicy;
1if(t.partialRefetch&&u&&(!i||0===Object.keys(i).length)&&"cache-only"!==h)return Object.assign(e,{loading:!0,networkStatus:c.NetworkStatus.loading}),e.refetch(),e}}return e.client=a.client,a.setOptions(t,!0),a.previousData.loading=a.previousData.result&&a.previousData.result.loading||!1,a.previousData.result=e,a.currentObservable&&a.currentObservable.resetQueryStoreErrors(),e},a.obsRefetch=function(e){return a.currentObservable.refetch(e)},a.obsFetchMore=function(e){return a.currentObservable.fetchMore(e)},a.obsUpdateQuery=function(e){return a.currentObservable.updateQuery(e)},a.obsStartPolling=function(e){var t;null===(t=a.currentObservable)||void 0===t||t.startPolling(e)},a.obsStopPolling=function(){var e;null===(e=a.currentObservable)||void 0===e||e.stopPolling()},a.obsSubscribeToMore=function(e){return a.currentObservable.subscribeToMore(e)},a.onNewData=o,a}return n.__extends(t,e),t.prototype.execute=function(){this.refreshClient();var e=this.getOptions(),t=e.skip,r=e.query;return(t||r!==this.previousData.query)&&(this.removeQuerySubscription(),this.previousData.query=r),this.updateObservableQuery(),this.isMounted&&this.startQuerySubscription(),this.getExecuteSsrResult()||this.getExecuteResult()},t.prototype.executeLazy=function(){return this.runLazy?[this.runLazyQuery,this.execute()]:[this.runLazyQuery,{loading:!1,networkStatus:c.NetworkStatus.ready,called:!1,data:void 0}]},t.prototype.fetchData=function(){var e=this,t=this.getOptions();return!t.skip&&!1!==t.ssr&&new Promise(function(t){return e.startQuerySubscription(t)})},t.prototype.afterExecute=function(e){var t=(void 0===e?{}:e).lazy,r=void 0!==t&&t;return this.isMounted=!0,r&&!this.runLazy||this.handleErrorOrCompleted(),this.previousOptions=this.getOptions(),this.unmount.bind(this)},t.prototype.cleanup=function(){this.removeQuerySubscription(),delete this.currentObservable,delete this.previousData.result},t.prototype.getOptions=function(){var t=e.prototype.getOptions.call(this);return this.lazyOptions&&(t.variables=n.__assign(n.__assign({},t.variables),this.lazyOptions.variables),t.context=n.__assign(n.__assign({},t.context),this.lazyOptions.context)),this.runLazy&&delete t.skip,t},t.prototype.ssrInitiated=function(){return this.context&&this.context.renderPromises},t.prototype.getExecuteResult=function(){var e=this.getQueryResult();return this.startQuerySubscription(),e},t.prototype.getExecuteSsrResult=function(){var e,t=!1===this.getOptions().ssr,r=this.refreshClient().client.disableNetworkFetches,i=n.__assign({loading:!0,networkStatus:c.NetworkStatus.loading,called:!0,data:void 0,stale:!1,client:this.client},this.observableQueryFields());return t&&(this.ssrInitiated()||r)?(this.previousData.result=i,i):(this.ssrInitiated()&&(e=this.context.renderPromises.addQueryPromise(this,this.getQueryResult)||i),e)},t.prototype.prepareObservableQueryOptions=function(){var e=this.getOptions();this.verifyDocumentType(e.query,a.DocumentType.Query);var t=e.displayName||"Query";return!this.ssrInitiated()||"network-only"!==e.fetchPolicy&&"cache-and-network"!==e.fetchPolicy||(e.fetchPolicy="cache-first"),n.__assign(n.__assign({},e),{displayName:t,context:e.context})},t.prototype.initializeObservableQuery=function(){if(this.ssrInitiated()&&(this.currentObservable=this.context.renderPromises.getSSRObservable(this.getOptions())),!this.currentObservable){var e=this.prepareObservableQueryOptions();this.previousData.observableQueryOptions=n.__assign(n.__assign({},e),{children:null}),this.currentObservable=this.refreshClient().client.watchQuery(n.__assign({},e)),this.ssrInitiated()&&this.context.renderPromises.registerSSRObservable(this.currentObservable,e)}},t.prototype.updateObservableQuery=function(){if(this.currentObservable){if(!this.getOptions().skip){var e=n.__assign(n.__assign({},this.prepareObservableQueryOptions()),{children:null});i.equal(e,this.previousData.observableQueryOptions)||(this.previousData.observableQueryOptions=e,this.currentObservable.setOptions(e).catch(function(){}))}}else this.initializeObservableQuery()},t.prototype.startQuerySubscription=function(e){var t=this;void 0===e&&(e=this.onNewData),this.currentSubscription||this.getOptions().skip||(this.currentSubscription=this.currentObservable.subscribe({next:function(r){var n=r.loading,o=r.networkStatus,a=r.data,s=t.previousData.result;s&&s.loading===n&&s.networkStatus===o&&i.equal(s.data,a)||e()},error:function(r){if(t.resubscribeToQuery(),!r.hasOwnProperty("graphQLErrors"))throw r;var n=t.previousData.result;(n&&n.loading||!i.equal(r,t.previousData.error))&&(t.previousData.error=r,e())}}))},t.prototype.resubscribeToQuery=function(){this.removeQuerySubscription();var e=this.currentObservable;if(e){var t=e.getLastError(),r=e.getLastResult();e.resetLastResults(),this.startQuerySubscription(),Object.assign(e,{lastError:t,lastResult:r})}},t.prototype.handleErrorOrCompleted=function(){if(this.currentObservable&&this.previousData.result){var e=this.previousData.result,t=e.data,r=e.loading,n=e.error;if(!r){var o=this.getOptions(),a=o.query,s=o.variables,u=o.onCompleted,c=o.onError,l=o.skip;if(this.previousOptions&&!this.previousData.loading&&i.equal(this.previousOptions.query,a)&&i.equal(this.previousOptions.variables,s))return;!u||n||l?c&&n&&c(n):u(t)}}},t.prototype.removeQuerySubscription=function(){this.currentSubscription&&(this.currentSubscription.unsubscribe(),delete this.currentSubscription)},t.prototype.observableQueryFields=function(){var e;return{variables:null===(e=this.currentObservable)||void 0===e?void 0:e.variables,refetch:this.obsRefetch,fetchMore:this.obsFetchMore,updateQuery:this.obsUpdateQuery,startPolling:this.obsStartPolling,stopPolling:this.obsStopPolling,subscribeToMore:this.obsSub
1scribeToMore}},t}(l);t.MutationData=p,t.OperationData=l,t.QueryData=h,t.SubscriptionData=f},f8b47a70724058b483a6:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r("49e5d17bce4f8f5c2e53"),i=r("802562545eea7f331a38"),o=r("9cd4c81a6f27fdbd0c2c");Object.keys(i).forEach(function(e){"default"!==e&&(t[e]=i[e])}),t.ApolloConsumer=n.ApolloConsumer,t.ApolloProvider=n.ApolloProvider,t.getApolloContext=n.getApolloContext,t.resetApolloContext=n.resetApolloContext,t.DocumentType=o.DocumentType,t.operationName=o.operationName,t.parser=o.parser}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.