(window["webpackJsonp-sports-asi"]=window["webpackJsonp-sports-asi"]||[]).push([["chunk-68490b09"],{"0012":function(e,t,r){e.exports=r("a7b2").Observable},"0125":function(e,t,r){"use strict";r.d(t,"a",(function(){return c}));var n=r("9ab4"),i=r("6f47"),o=r("d634");function a(e){var t=e||{},r=t.initial,n=void 0===r?300:r,i=t.jitter,o=void 0===i||i,a=t.max,s=void 0===a?1/0:a,u=o?n:n/2;return function(e){var t=Math.min(s,u*Math.pow(2,e));return o&&(t=Math.random()*t),t}}function s(e){var t=e||{},r=t.retryIf,n=t.max,i=void 0===n?5:n;return function(e,t,n){return!(e>=i)&&(r?r(n,t):!!n)}}var u=function(){function e(e,t,r,i){var o=this;this.operation=e,this.nextLink=t,this.delayFor=r,this.retryIf=i,this.retryCount=0,this.values=[],this.complete=!1,this.canceled=!1,this.observers=[],this.currentSubscription=null,this.onNext=function(e){o.values.push(e);for(var t=0,r=o.observers;t0&&e.jitter<=1?e.jitter:0,this.attempts=0}e.exports=r,r.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),r=Math.floor(t*this.jitter*e);e=0==(1&Math.floor(10*t))?e-r:e+r}return 0|Math.min(e,this.max)},r.prototype.reset=function(){this.attempts=0},r.prototype.setMin=function(e){this.ms=e},r.prototype.setMax=function(e){this.max=e},r.prototype.setJitter=function(e){this.jitter=e}},"1eca":function(e,t,r){"use strict";function n(e){return null!==e&&"object"===typeof e}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n},"2bf2":function(e,t,r){"use strict";r.d(t,"a",(function(){return ge}));var n=r("9ab4"),i=r("4518");function o(e){var t={kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GeneratedClientQuery"},selectionSet:s(e)},r={kind:"Document",definitions:[t]};return r}function a(e,t){var r={kind:"FragmentDefinition",typeCondition:{kind:"NamedType",name:{kind:"Name",value:t||"__FakeType"}},name:{kind:"Name",value:"GeneratedClientQuery"},selectionSet:s(e)},n={kind:"Document",definitions:[r]};return n}function s(e){if("number"===typeof e||"boolean"===typeof e||"string"===typeof e||"undefined"===typeof e||null===e)return null;if(Array.isArray(e))return s(e[0]);var t=[];Object.keys(e).forEach((function(r){var n=s(e[r]),i={kind:"Field",name:{kind:"Name",value:r},selectionSet:n||void 0};t.push(i)}));var r={kind:"SelectionSet",selections:t};return r}var u,c={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:null,variableDefinitions:null,directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:null,name:{kind:"Name",value:"__typename"},arguments:[],directives:[],selectionSet:null}]}}]},l=function(){function e(){}return e.prototype.transformDocument=function(e){return e},e.prototype.transformForLink=function(e){return e},e.prototype.readQuery=function(e,t){return void 0===t&&(t=!1),this.read({query:e.query,variables:e.variables,optimistic:t})},e.prototype.readFragment=function(e,t){return void 0===t&&(t=!1),this.read({query:Object(i["k"])(e.fragment,e.fragmentName),variables:e.variables,rootId:e.id,optimistic:t})},e.prototype.writeQuery=function(e){this.write({dataId:"ROOT_QUERY",result:e.data,query:e.query,variables:e.variables})},e.prototype.writeFragment=function(e){this.write({dataId:e.id,result:e.data,variables:e.variables,query:Object(i["k"])(e.fragment,e.fragmentName)})},e.prototype.writeData=function(e){var t=e.id,r=e.data;if("undefined"!==typeof t){var n=null;try{n=this.read({rootId:t,optimistic:!1,query:c})}catch(u){}var i=n&&n.__typename||"__ClientData",s=Object.assign({__typename:i},r);this.writeFragment({id:t,fragment:a(s,i),data:s})}else this.writeQuery({query:o(r),data:r})},e}();u||(u={});var f=r("ab1d"),h=null,p={},d=1,v=function(){return function(){function e(){this.id=["slot",d++,Date.now(),Math.random().toString(36).slice(2)].join(":")}return e.prototype.hasValue=function(){for(var e=h;e;e=e.parent)if(this.id in e.slots){var t=e.slots[this.id];if(t===p)break;return e!==h&&(h.slots[this.id]=t),!0}return h&&(h.slots[this.id]=p),!1},e.prototype.getValue=function(){if(this.hasValue())return h.slots[this.id]},e.prototype.withValue=function(e,t,r,n){var i,o=(i={__proto__:null},i[this.id]=e,i),a=h;h={parent:a,slots:o};try{return t.apply(n,r)}finally{h=a}},e.bind=function(e){var t=h;return function(){var r=h;try{return h=t,e.apply(this,arguments)}finally{h=r}}},e.noContext=function(e,t,r){if(!h)return e.apply(r,t);var n=h;try{return h=null,e.apply(r,t)}finally{h=n}},e}()},y="@wry/context:Slot",b=Array,m=b[y]||function(){var e=v();try{Object.defineProperty(b,y,{value:b[y]=e,enumerable:!1,writable:!1,configurable:!1})}finally{return e}}();m.bind,m.noContext;function g(){}var O=function(){function e(e,t){void 0===e&&(e=1/0),void 0===t&&(t=g),this.max=e,this.dispose=t,this.map=new Map,this.newest=null,this.oldest=null}return e.prototype.has=function(e){return this.map.has(e)},e.prototype.get=function(e){var t=this.getEntry(e);return t&&t.value},e.prototype.getEntry=function(e){var t=this.map.get(e);if(t&&t!==this.newest){var r=t.older,n=t.newer;n&&(n.older=r),r&&(r.newer=n),t.older=this.newest,t.older.newer=t,t.newer=null,this.newest=t,t===this.oldest&&(this.oldest=n)}return t},e.prototype.set=function(e,t){var r=this.getEntry(e);return r?r.value=t:(r={key:e,value:t,newer:null,older:this.newest},this.newest&&(this.newest.newer=r),this.newest=r,this.oldest=this.oldest||r,this.map.set(e,r),r.value)},e.prototype.clean=function(){while(this.oldest&&this.map.size>this.max)this.delete(this.oldest.key)},e.prototype.delete=function(e){var t=this.map.get(e);return!!t&&(t===this.newest&&(this.newest=t.older),t===this.oldest&&(this.oldest=t.newer),t.newer&&(t.newer.older=t.older),t.older&&(t.older.newer=t.newer),this.map.delete(e),this.dispose(t.value,e),!0)},e}(),w=new m,k=[],S=[],j=100;function E(e,t){if(!e)throw new Error(t||"assertion failure")}function _(e,t){var r=e.length;return r>0&&r===t.length&&e[r-1]===t[r-1]}function I(e){switch(e.length){case 0:throw new Error("unknown value");case 1:return e[0];case 2:throw e[1]}}function T(e){return e.slice(0)}var x=function(){function e(t,r){this.fn=t,this.args=r,this.parents=new Set,this.childValues=new Map,this.dirtyChildren=null,this.dirty=!0,this.recomputing=!1,this.value=[],++e.count}return e.prototype.recompute=function(){if(E(!this.recomputing,"already recomputing"),Q(this)||!L(this))return q(this)?R(this):I(this.value)},e.prototype.setDirty=function(){this.dirty||(this.dirty=!0,this.value.length=0,P(this),G(this))},e.prototype.dispose=function(){var e=this;V(this).forEach(L),G(this),this.parents.forEach((function(t){t.setDirty(),$(t,e)}))},e.count=0,e}();function Q(e){var t=w.getValue();if(t)return e.parents.add(t),t.childValues.has(e)||t.childValues.set(e,[]),q(e)?A(t,e):M(t,e),t}function R(e){var t=V(e);return w.withValue(e,C,[e]),U(e)&&D(e),t.forEach(L),I(e.value)}function C(e){e.recomputing=!0,e.value.length=0;try{e.value[0]=e.fn.apply(null,e.args)}catch(t){e.value[1]=t}e.recomputing=!1}function q(e){return e.dirty||!(!e.dirtyChildren||!e.dirtyChildren.size)}function D(e){e.dirty=!1,q(e)||N(e)}function P(e){e.parents.forEach((function(t){return A(t,e)}))}function N(e){e.parents.forEach((function(t){return M(t,e)}))}function A(e,t){if(E(e.childValues.has(t)),E(q(t)),e.dirtyChildren){if(e.dirtyChildren.has(t))return}else e.dirtyChildren=S.pop()||new Set;e.dirtyChildren.add(t),P(e)}function M(e,t){E(e.childValues.has(t)),E(!q(t));var r=e.childValues.get(t);0===r.length?e.childValues.set(t,T(t.value)):_(r,t.value)||e.setDirty(),F(e,t),q(e)||N(e)}function F(e,t){var r=e.dirtyChildren;r&&(r.delete(t),0===r.size&&(S.length0&&(t=[],e.childValues.forEach((function(r,n){$(e,n),t.push(n)}))),E(null===e.dirtyChildren),t}function $(e,t){t.parents.delete(e),e.childValues.delete(t),F(e,t)}function U(e){if("function"===typeof e.subscribe)try{G(e),e.unsubscribe=e.subscribe.apply(null,e.args)}catch(t){return e.setDirty(),!1}return!0}function G(e){var t=e.unsubscribe;"function"===typeof t&&(e.unsubscribe=void 0,t())}var B=function(){function e(e){this.weakness=e}return e.prototype.lookup=function(){for(var e=[],t=0;t-1)},e.prototype.parseIntrospectionResult=function(e){var t={};return e.__schema.types.forEach((function(e){"UNION"!==e.kind&&"INTERFACE"!==e.kind||(t[e.name]=e.possibleTypes.map((function(e){return e.name})))})),t}}(),Object.prototype.hasOwnProperty),re=function(){function e(e){var t=this;void 0===e&&(e=Object.create(null)),this.data=e,this.depend=H((function(e){return t.data[e]}),{disposable:!0,makeCacheKey:function(e){return e}})}return e.prototype.toObject=function(){return this.data},e.prototype.get=function(e){return this.depend(e),this.data[e]},e.prototype.set=function(e,t){var r=this.data[e];t!==r&&(this.data[e]=t,this.depend.dirty(e))},e.prototype.delete=function(e){te.call(this.data,e)&&(delete this.data[e],this.depend.dirty(e))},e.prototype.clear=function(){this.replace(null)},e.prototype.replace=function(e){var t=this;e?(Object.keys(e).forEach((function(r){t.set(r,e[r])})),Object.keys(this.data).forEach((function(r){te.call(e,r)||t.delete(r)}))):Object.keys(this.data).forEach((function(e){t.delete(e)}))},e}();function ne(e){return new re(e)}var ie=function(){function e(e){var t=this,r=void 0===e?{}:e,n=r.cacheKeyRoot,o=void 0===n?new B(i["e"]):n,a=r.freezeResults,s=void 0!==a&&a,u=this,c=u.executeStoreQuery,l=u.executeSelectionSet,f=u.executeSubSelectedArray;this.freezeResults=s,this.executeStoreQuery=H((function(e){return c.call(t,e)}),{makeCacheKey:function(e){var t=e.query,r=e.rootValue,n=e.contextValue,i=e.variableValues,a=e.fragmentMatcher;if(n.store instanceof re)return o.lookup(n.store,t,a,JSON.stringify(i),r.id)}}),this.executeSelectionSet=H((function(e){return l.call(t,e)}),{makeCacheKey:function(e){var t=e.selectionSet,r=e.rootValue,n=e.execContext;if(n.contextValue.store instanceof re)return o.lookup(n.contextValue.store,t,n.fragmentMatcher,JSON.stringify(n.variableValues),r.id)}}),this.executeSubSelectedArray=H((function(e){return f.call(t,e)}),{makeCacheKey:function(e){var t=e.field,r=e.array,n=e.execContext;if(n.contextValue.store instanceof re)return o.lookup(n.contextValue.store,t,r,JSON.stringify(n.variableValues))}})}return e.prototype.readQueryFromStore=function(e){return this.diffQueryAgainstStore(Object(n["a"])(Object(n["a"])({},e),{returnPartialData:!1})).result},e.prototype.diffQueryAgainstStore=function(e){var t=e.store,r=e.query,n=e.variables,o=e.previousResult,a=e.returnPartialData,s=void 0===a||a,u=e.rootId,c=void 0===u?"ROOT_QUERY":u,l=e.fragmentMatcherFunction,h=e.config,p=Object(i["o"])(r);n=Object(i["c"])({},Object(i["h"])(p),n);var d={store:t,dataIdFromObject:h&&h.dataIdFromObject,cacheRedirects:h&&h.cacheRedirects||{}},v=this.executeStoreQuery({query:r,rootValue:{type:"id",id:c,generated:!0,typename:"Query"},contextValue:d,variableValues:n,fragmentMatcher:l}),y=v.missing&&v.missing.length>0;return y&&!s&&v.missing.forEach((function(e){if(!e.tolerable)throw new Y["a"](8)})),o&&Object(f["a"])(o,v.result)&&(v.result=o),{result:v.result,complete:!y}},e.prototype.executeStoreQuery=function(e){var t=e.query,r=e.rootValue,n=e.contextValue,o=e.variableValues,a=e.fragmentMatcher,s=void 0===a?ae:a,u=Object(i["l"])(t),c=Object(i["j"])(t),l=Object(i["g"])(c),f={query:t,fragmentMap:l,contextValue:n,variableValues:o,fragmentMatcher:s};return this.executeSelectionSet({selectionSet:u.selectionSet,rootValue:r,execContext:f})},e.prototype.executeSelectionSet=function(e){var t=this,r=e.selectionSet,o=e.rootValue,a=e.execContext,s=a.fragmentMap,u=a.contextValue,c=a.variableValues,l={result:null},f=[],h=u.store.get(o.id),p=h&&h.__typename||"ROOT_QUERY"===o.id&&"Query"||void 0;function d(e){var t;return e.missing&&(l.missing=l.missing||[],(t=l.missing).push.apply(t,e.missing)),e.result}return r.selections.forEach((function(e){var r;if(Object(i["F"])(e,c))if(Object(i["t"])(e)){var l=d(t.executeField(h,p,e,a));"undefined"!==typeof l&&f.push((r={},r[Object(i["E"])(e)]=l,r))}else{var v=void 0;if(Object(i["v"])(e))v=e;else if(v=s[e.name.value],!v)throw new Y["a"](9);var y=v.typeCondition&&v.typeCondition.name.value,b=!y||a.fragmentMatcher(o,y,u);if(b){var m=t.executeSelectionSet({selectionSet:v.selectionSet,rootValue:o,execContext:a});"heuristic"===b&&m.missing&&(m=Object(n["a"])(Object(n["a"])({},m),{missing:m.missing.map((function(e){return Object(n["a"])(Object(n["a"])({},e),{tolerable:!0})}))})),f.push(d(m))}}})),l.result=Object(i["B"])(f),this.freezeResults,l},e.prototype.executeField=function(e,t,r,n){var o=n.variableValues,a=n.contextValue,s=r.name.value,u=Object(i["b"])(r,o),c={resultKey:Object(i["E"])(r),directives:Object(i["i"])(r,o)},l=se(e,t,s,u,a,c);return Array.isArray(l.result)?this.combineExecResults(l,this.executeSubSelectedArray({field:r,array:l.result,execContext:n})):r.selectionSet?null==l.result?l:this.combineExecResults(l,this.executeSelectionSet({selectionSet:r.selectionSet,rootValue:l.result,execContext:n})):(oe(r,l.result),this.freezeResults,l)},e.prototype.combineExecResults=function(){for(var e,t=[],r=0;r=0)return!0;r[e].push(t)}else r[e]=[t];return!1}var ve={fragmentMatcher:new ee,dataIdFromObject:ye,addTypename:!0,resultCaching:!0,freezeResults:!1};function ye(e){if(e.__typename){if(void 0!==e.id)return e.__typename+":"+e.id;if(void 0!==e._id)return e.__typename+":"+e._id}return null}var be=Object.prototype.hasOwnProperty,me=function(e){function t(t,r,n){var i=e.call(this,Object.create(null))||this;return i.optimisticId=t,i.parent=r,i.transaction=n,i}return Object(n["c"])(t,e),t.prototype.toObject=function(){return Object(n["a"])(Object(n["a"])({},this.parent.toObject()),this.data)},t.prototype.get=function(e){return be.call(this.data,e)?this.data[e]:this.parent.get(e)},t}(ue),ge=function(e){function t(t){void 0===t&&(t={});var r=e.call(this)||this;r.watches=new Set,r.typenameDocumentCache=new Map,r.cacheKeyRoot=new B(i["e"]),r.silenceBroadcast=!1,r.config=Object(n["a"])(Object(n["a"])({},ve),t),r.config.customResolvers&&(r.config.cacheRedirects=r.config.customResolvers),r.config.cacheResolvers&&(r.config.cacheRedirects=r.config.cacheResolvers),r.addTypename=!!r.config.addTypename,r.data=r.config.resultCaching?new re:new ue,r.optimisticData=r.data,r.storeWriter=new fe,r.storeReader=new ie({cacheKeyRoot:r.cacheKeyRoot,freezeResults:t.freezeResults});var o=r,a=o.maybeBroadcastWatch;return r.maybeBroadcastWatch=H((function(e){return a.call(r,e)}),{makeCacheKey:function(e){if(!e.optimistic&&!e.previousResult)return o.data instanceof re?o.cacheKeyRoot.lookup(e.query,JSON.stringify(e.variables)):void 0}}),r}return Object(n["c"])(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){if("string"===typeof e.rootId&&"undefined"===typeof this.data.get(e.rootId))return null;var t=this.config.fragmentMatcher,r=t&&t.match;return this.storeReader.readQueryFromStore({store:e.optimistic?this.optimisticData:this.data,query:this.transformDocument(e.query),variables:e.variables,rootId:e.rootId,fragmentMatcherFunction:r,previousResult:e.previousResult,config:this.config})||null},t.prototype.write=function(e){var t=this.config.fragmentMatcher,r=t&&t.match;this.storeWriter.writeResultToStore({dataId:e.dataId,result:e.result,variables:e.variables,document:this.transformDocument(e.query),store:this.data,dataIdFromObject:this.config.dataIdFromObject,fragmentMatcherFunction:r}),this.broadcastWatches()},t.prototype.diff=function(e){var t=this.config.fragmentMatcher,r=t&&t.match;return this.storeReader.diffQueryAgainstStore({store:e.optimistic?this.optimisticData:this.data,query:this.transformDocument(e.query),variables:e.variables,returnPartialData:e.returnPartialData,previousResult:e.previousResult,fragmentMatcherFunction:r,config:this.config})},t.prototype.watch=function(e){var t=this;return this.watches.add(e),function(){t.watches.delete(e)}},t.prototype.evict=function(e){throw new Y["a"](7)},t.prototype.reset=function(){return this.data.clear(),this.broadcastWatches(),Promise.resolve()},t.prototype.removeOptimistic=function(e){var t=[],r=0,n=this.optimisticData;while(n instanceof me)n.optimisticId===e?++r:t.push(n),n=n.parent;if(r>0){this.optimisticData=n;while(t.length>0){var i=t.pop();this.performTransaction(i.transaction,i.optimisticId)}this.broadcastWatches()}},t.prototype.performTransaction=function(e,t){var r=this,n=r.data,i=r.silenceBroadcast;this.silenceBroadcast=!0,"string"===typeof t&&(this.data=this.optimisticData=new me(t,this.optimisticData,e));try{e(this)}finally{this.silenceBroadcast=i,this.data=n}this.broadcastWatches()},t.prototype.recordOptimisticTransaction=function(e,t){return this.performTransaction(e,t)},t.prototype.transformDocument=function(e){if(this.addTypename){var t=this.typenameDocumentCache.get(e);return t||(t=Object(i["a"])(e),this.typenameDocumentCache.set(e,t),this.typenameDocumentCache.set(t,t)),t}return e},t.prototype.broadcastWatches=function(){var e=this;this.silenceBroadcast||this.watches.forEach((function(t){return e.maybeBroadcastWatch(t)}))},t.prototype.maybeBroadcastWatch=function(e){e.callback(this.diff({query:e.query,variables:e.variables,previousResult:e.previousResult&&e.previousResult(),optimistic:e.optimistic}))},t}(l)},"2f6c":function(e,t,r){"use strict";r.d(t,"a",(function(){return y})),r.d(t,"b",(function(){return b}));var n="function"===typeof Symbol&&"function"===typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):void 0,i=n;function o(e){return o="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}var a=10,s=2;function u(e){return c(e,[])}function c(e,t){switch(o(e)){case"string":return JSON.stringify(e);case"function":return e.name?"[function ".concat(e.name,"]"):"[function]";case"object":return null===e?"null":l(e,t);default:return String(e)}}function l(e,t){if(-1!==t.indexOf(e))return"[Circular]";var r=[].concat(t,[e]),n=p(e);if(void 0!==n){var i=n.call(e);if(i!==e)return"string"===typeof i?i:c(i,r)}else if(Array.isArray(e))return h(e,r);return f(e,r)}function f(e,t){var r=Object.keys(e);if(0===r.length)return"{}";if(t.length>s)return"["+d(e)+"]";var n=r.map((function(r){var n=c(e[r],t);return r+": "+n}));return"{ "+n.join(", ")+" }"}function h(e,t){if(0===e.length)return"[]";if(t.length>s)return"[Array]";for(var r=Math.min(a,e.length),n=e.length-r,i=[],o=0;o1&&i.push("... ".concat(n," more items")),"["+i.join(", ")+"]"}function p(e){var t=e[String(i)];return"function"===typeof t?t:"function"===typeof e.inspect?e.inspect:void 0}function d(e){var t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if("Object"===t&&"function"===typeof e.constructor){var r=e.constructor.name;if("string"===typeof r&&""!==r)return r}return t}var v={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]},y=Object.freeze({});function b(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:v,n=void 0,i=Array.isArray(e),o=[e],a=-1,s=[],c=void 0,l=void 0,f=void 0,h=[],p=[],d=e;do{a++;var b=a===o.length,O=b&&0!==s.length;if(b){if(l=0===p.length?void 0:h[h.length-1],c=f,f=p.pop(),O){if(i)c=c.slice();else{for(var w={},k=0,S=Object.keys(c);k0){var n=r["connection"]["filter"]?r["connection"]["filter"]:[];n.sort();var i=t,o={};return n.forEach((function(e){o[e]=i[e]})),r["connection"]["key"]+"("+JSON.stringify(o)+")"}return r["connection"]["key"]}var a=e;if(t){var u=s()(t);a+="("+u+")"}return r&&Object.keys(r).forEach((function(e){-1===g.indexOf(e)&&(r[e]&&Object.keys(r[e]).length?a+="@"+e+"("+JSON.stringify(r[e])+")":a+="@"+e)})),a}function w(e,t){if(e.arguments&&e.arguments.length){var r={};return e.arguments.forEach((function(e){var n=e.name,i=e.value;return b(r,n,i,t)})),r}return null}function k(e){return e.alias?e.alias.value:e.name.value}function S(e){return"Field"===e.kind}function j(e){return"InlineFragment"===e.kind}function E(e){return e&&"id"===e.type&&"boolean"===typeof e.generated}function _(e,t){return void 0===t&&(t=!1),Object(o["a"])({type:"id",generated:t},"string"===typeof e?{id:e,typename:void 0}:e)}function I(e){return null!=e&&"object"===typeof e&&"json"===e.type}function T(e,t){if(e.directives&&e.directives.length){var r={};return e.directives.forEach((function(e){r[e.name.value]=w(e,t)})),r}return null}function x(e,t){return void 0===t&&(t={}),D(e.directives).every((function(e){var r=e.directive,n=e.ifArgument,o=!1;return"Variable"===n.value.kind?(o=t[n.value.name.value],Object(i["b"])(void 0!==o,13)):o=n.value.value,"skip"===r.name.value?!o:o}))}function Q(e){var t=[];return Object(n["b"])(e,{Directive:function(e){t.push(e.name.value)}}),t}function R(e,t){return Q(t).some((function(t){return e.indexOf(t)>-1}))}function C(e){return e&&R(["client"],e)&&R(["export"],e)}function q(e){var t=e.name.value;return"skip"===t||"include"===t}function D(e){return e?e.filter(q).map((function(e){var t=e.arguments;e.name.value;Object(i["b"])(t&&1===t.length,14);var r=t[0];Object(i["b"])(r.name&&"if"===r.name.value,15);var n=r.value;return Object(i["b"])(n&&("Variable"===n.kind||"BooleanValue"===n.kind),16),{directive:e,ifArgument:r}})):[]}function P(e,t){var r=t,n=[];e.definitions.forEach((function(e){if("OperationDefinition"===e.kind)throw new i["a"](11);"FragmentDefinition"===e.kind&&n.push(e)})),"undefined"===typeof r&&(Object(i["b"])(1===n.length,12),r=n[0].name.value);var a=Object(o["a"])(Object(o["a"])({},e),{definitions:Object(o["f"])([{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:r}}]}}],e.definitions)});return a}function N(e){for(var t=[],r=1;r1){var n=[];t=Ee(t,n);for(var i=1;i=300&&h(t,r,"Response not successful: Received status code "+t.status),Array.isArray(r)||r.hasOwnProperty("data")||r.hasOwnProperty("errors")||h(t,r,"Server response was missing for query '"+(Array.isArray(e)?e.map((function(e){return e.operationName})):e.operationName)+"'."),r}))}},d=function(e){if(!e&&"undefined"===typeof fetch){throw"undefined"===typeof window&&"node-fetch",new s["a"](1)}},v=function(){if("undefined"===typeof AbortController)return{controller:!1,signal:!1};var e=new AbortController,t=e.signal;return{controller:e,signal:t}},y=function(e,t){for(var r=[],i=2;ie?f():!0!==t&&(i=setTimeout(n?h:f,void 0===n?e-c:e)))}return"boolean"!==typeof t&&(n=r,r=t,t=void 0),c.cancel=u,c}function _(e,t,r){return void 0===r?E(e,t,!1):E(e,r,!1!==t)}var I=Object.freeze({__proto__:null,throttle:E,debounce:_}),T=j((function(e,t){var r=t.Globals={};function n(e){return function(t,r){return e(r,t)}}t.throttle=n(I.throttle),t.debounce=n(I.debounce),t.getMergedDefinition=function(e){return r.Vue.util.mergeOptions({},e)},t.reapply=function(e,t){while("function"===typeof e)e=e.call(t);return e},t.omit=function(e,t){return Object.entries(e).filter((function(e){var r=y(e,1),n=r[0];return!t.includes(n)})).reduce((function(e,t){var r=y(t,2),n=r[0],i=r[1];return e[n]=i,e}),{})},t.addGqlError=function(e){e.graphQLErrors&&e.graphQLErrors.length&&(e.gqlError=e.graphQLErrors[0])},t.noop=function(){}})),x=T.Globals,Q=T.throttle,R=T.debounce,C=(T.getMergedDefinition,T.reapply),q=T.omit,D=T.addGqlError,P=(T.noop,function(){function e(t,r,i){var o=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];n(this,e),a(this,"type",null),a(this,"vueApolloSpecialKeys",[]),this.vm=t,this.key=r,this.initialOptions=i,this.options=Object.assign({},i),this._skip=!1,this._pollInterval=null,this._watchers=[],this._destroyed=!1,this.lastApolloOptions=null,o&&this.autostart()}return o(e,[{key:"autostart",value:function(){var e=this;"function"===typeof this.options.skip?this._skipWatcher=this.vm.$watch((function(){return e.options.skip.call(e.vm,e.vm,e.key)}),this.skipChanged.bind(this),{immediate:!0,deep:this.options.deep}):this.options.skip?this._skip=!0:this.start(),"function"===typeof this.options.pollInterval&&(this._pollWatcher=this.vm.$watch(this.options.pollInterval.bind(this.vm),this.pollIntervalChanged.bind(this),{immediate:!0}))}},{key:"pollIntervalChanged",value:function(e,t){e!==t&&(this.pollInterval=e,null==e?this.stopPolling():this.startPolling(e))}},{key:"skipChanged",value:function(e,t){e!==t&&(this.skip=e)}},{key:"refresh",value:function(){this._skip||(this.stop(),this.start())}},{key:"start",value:function(){var e=this;this.starting=!0;for(var t=function(t,r){var n=r[t];if("function"===typeof e.initialOptions[n]){var i=e.initialOptions[n].bind(e.vm);e.options[n]=i();var o=function(t){e.options[n]=t,e.refresh()};e.vm.$isServer||(o=e.options.throttle?Q(o,e.options.throttle):o,o=e.options.debounce?R(o,e.options.debounce):o),e._watchers.push(e.vm.$watch(i,o,{deep:e.options.deep}))}},r=0,n=["query","document","context"];r1?r-1:0),i=1;i3&&void 0!==arguments[3])||arguments[3];return n(this,t),e.$data.$apolloData&&!e.$data.$apolloData.queries[r]&&e.$set(e.$data.$apolloData.queries,r,{loading:!1}),o=p(this,l(t).call(this,e,r,i,!1)),a(h(o),"type","query"),a(h(o),"vueApolloSpecialKeys",N),a(h(o),"_loading",!1),a(h(o),"_linkedSubscriptions",[]),e.$isServer&&(o.firstRun=new Promise((function(e,t){o._firstRunResolve=e,o._firstRunReject=t}))),o.vm.$isServer&&(o.options.fetchPolicy="network-only"),i.manual||(o.hasDataField=o.vm.$data.hasOwnProperty(r),o.hasDataField?Object.defineProperty(o.vm.$data.$apolloData.data,r,{get:function(){return o.vm.$data[r]},enumerable:!0,configurable:!0}):Object.defineProperty(o.vm.$data,r,{get:function(){return o.vm.$data.$apolloData.data[r]},enumerable:!0,configurable:!0})),s&&o.autostart(),o}return c(t,e),o(t,[{key:"stop",value:function(){v(l(t.prototype),"stop",this).call(this),this.loadingDone(),this.observer&&(this.observer.stopPolling(),this.observer=null)}},{key:"executeApollo",value:function(e){var r=JSON.stringify(e);if(this.sub){if(r===this.previousVariablesJson)return;this.sub.unsubscribe();for(var n=0,i=this._linkedSubscriptions;n0&&void 0!==arguments[0]&&arguments[0],t=this.observer.getCurrentResult();return(e||t.loading)&&(this.loading||this.applyLoadingModifier(1),this.loading=!0),t}},{key:"nextResult",value:function(e){v(l(t.prototype),"nextResult",this).call(this,e);var r=e.data,n=e.loading,i=e.error,o=e.errors;if((i||o)&&this.firstRunReject(),n||this.loadingDone(),o&&o.length){var a=new Error("GraphQL error: ".concat(o.map((function(e){return e.message})).join(" | ")));Object.assign(a,{graphQLErrors:o,networkError:null}),v(l(t.prototype),"catchError",this).call(this,a)}if("none"!==this.observer.options.errorPolicy||!i&&!o){var s="function"===typeof this.options.result;null==r||(this.options.manual?s||console.error("".concat(this.key," query must have a 'result' hook in manual mode")):"function"===typeof this.options.update?this.setData(this.options.update.call(this.vm,r)):"undefined"===typeof r[this.key]&&Object.keys(r).length?console.error("Missing ".concat(this.key," attribute on result"),r):this.setData(r[this.key])),s&&this.options.result.call(this.vm,e,this.key)}}},{key:"setData",value:function(e){this.vm.$set(this.hasDataField?this.vm.$data:this.vm.$data.$apolloData.data,this.key,e)}},{key:"catchError",value:function(e){v(l(t.prototype),"catchError",this).call(this,e),this.firstRunReject(),this.loadingDone(e),this.nextResult(this.observer.getCurrentResult()),this.resubscribeToQuery()}},{key:"resubscribeToQuery",value:function(){var e=this.observer.getLastError(),t=this.observer.getLastResult();this.observer.resetLastResults(),this.startQuerySubscription(),Object.assign(this.observer,{lastError:e,lastResult:t})}},{key:"watchLoading",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r0&&void 0!==arguments[0]?arguments[0]:null;this.loading&&this.applyLoadingModifier(-1),this.loading=!1,e||this.firstRunResolve()}},{key:"fetchMore",value:function(){var e,t=this;if(this.observer)return this.maySetLoading(!0),(e=this.observer).fetchMore.apply(e,arguments).then((function(e){return e.loading||t.loadingDone(),e}))}},{key:"subscribeToMore",value:function(){var e;if(this.observer)return{unsubscribe:(e=this.observer).subscribeToMore.apply(e,arguments)}}},{key:"refetch",value:function(e){var t=this;if(e&&(this.options.variables=e),this.observer){var r=this.observer.refetch(e).then((function(e){return e.loading||t.loadingDone(),e}));return this.maySetLoading(),r}}},{key:"setVariables",value:function(e,t){if(this.options.variables=e,this.observer){var r=this.observer.setVariables(e,t);return this.maySetLoading(),r}}},{key:"setOptions",value:function(e){if(Object.assign(this.options,e),this.observer){var t=this.observer.setOptions(e);return this.maySetLoading(),t}}},{key:"startPolling",value:function(){var e;if(this.observer)return(e=this.observer).startPolling.apply(e,arguments)}},{key:"stopPolling",value:function(){var e;if(this.observer)return(e=this.observer).stopPolling.apply(e,arguments)}},{key:"firstRunResolve",value:function(){this._firstRunResolve&&(this._firstRunResolve(),this._firstRunResolve=null)}},{key:"firstRunReject",value:function(e){this._firstRunReject&&(this._firstRunReject(e),this._firstRunReject=null)}},{key:"destroy",value:function(){v(l(t.prototype),"destroy",this).call(this),this.loading&&this.watchLoading(!1,-1),this.loading=!1}},{key:"client",get:function(){return this.vm.$apollo.getClient(this.options)}},{key:"loading",get:function(){return this.vm.$data.$apolloData&&this.vm.$data.$apolloData.queries[this.key]?this.vm.$data.$apolloData.queries[this.key].loading:this._loading},set:function(e){this._loading!==e&&(this._loading=e,this.vm.$data.$apolloData&&this.vm.$data.$apolloData.queries[this.key]&&(this.vm.$data.$apolloData.queries[this.key].loading=e,this.vm.$data.$apolloData.loading+=e?1:-1))}},{key:"loadingKey",get:function(){return this.options.loadingKey||this.vm.$apollo.loadingKey}}]),t}(P),M=function(e){function t(){var e,r;n(this,t);for(var i=arguments.length,o=new Array(i),s=0;s0&&void 0!==arguments[0]?arguments[0]:null;if(!e||!e.client){if("object"===r(this.client))return this.client;if(this.client){if(this.provider.clients){var t=this.provider.clients[this.client];if(!t)throw new Error("[vue-apollo] Missing client '".concat(this.client,"' in 'apolloProvider'"));return t}throw new Error("[vue-apollo] Missing 'clients' options in 'apolloProvider'")}return this.provider.defaultClient}var n=this.provider.clients[e.client];if(!n)throw new Error("[vue-apollo] Missing client '".concat(e.client,"' in 'apolloProvider'"));return n}},{key:"query",value:function(e){return this.getClient(e).query(e)}},{key:"watchQuery",value:function(e){var t=this,r=this.getClient(e).watchQuery(e),n=r.subscribe.bind(r);return r.subscribe=function(e){var r=n(e);return t._apolloSubscriptions.push(r),r},r}},{key:"mutate",value:function(e){return this.getClient(e).mutate(e)}},{key:"subscribe",value:function(e){var t=this;if(!this.vm.$isServer){var r=this.getClient(e).subscribe(e),n=r.subscribe.bind(r);return r.subscribe=function(e){var r=n(e);return t._apolloSubscriptions.push(r),r},r}}},{key:"addSmartQuery",value:function(e,t){var r=this,n=C(t,this.vm);if(!n.query){var i=n;n={query:i}}var o,a=this.vm.$options.apollo,s=this.provider.defaultOptions;if(s&&s.$query&&(o=s.$query),a&&a.$query&&(o=u({},o||{},{},a.$query)),o)for(var c in o)"undefined"===typeof n[c]&&(n[c]=o[c]);var l=this.queries[e]=new A(this.vm,e,n,!1);if(this.vm.$isServer&&!1===n.prefetch||l.autostart(),!this.vm.$isServer){var f=n.subscribeToMore;f&&(Array.isArray(f)?f.forEach((function(t,n){r.addSmartSubscription("".concat(e).concat(n),u({},t,{linkedQuery:l}))})):this.addSmartSubscription(e,u({},f,{linkedQuery:l})))}return l}},{key:"addSmartSubscription",value:function(e,t){if(!this.vm.$isServer){t=C(t,this.vm);var r=this.subscriptions[e]=new M(this.vm,e,t,!1);return r.autostart(),t.linkedQuery&&t.linkedQuery._linkedSubscriptions.push(r),r}}},{key:"defineReactiveSetter",value:function(e,t,r){var n=this;this._watchers.push(this.vm.$watch(t,(function(t){n[e]=t}),{immediate:!0,deep:r}))}},{key:"destroy",value:function(){for(var e=0,t=this._watchers;e0&&void 0!==arguments[0]?arguments[0]:"$apolloProvider";return console.warn(".provide() is deprecated. Use the 'apolloProvider' option instead with the provider object directly."),a({},e,this)}}]),e}();function V(e,t){return"undefined"!==typeof e&&Object.prototype.hasOwnProperty.call(e,t)}function $(){var e=this.$options,t=e.apolloProvider;if(t)this.$apolloProvider="function"===typeof t?t():t;else if(e.parent&&e.parent.$apolloProvider)this.$apolloProvider=e.parent.$apolloProvider;else if(e.provide){var r="function"===typeof e.provide?e.provide.call(this):e.provide;r&&r.$apolloProvider&&(this.$apolloProvider=r.$apolloProvider)}}function U(){var e=this;this.$_apolloInitData={};var t=this.$options.apollo;if(t){var r=function(r){if("$"!==r.charAt(0)){var n=t[r];n.manual||V(e.$options.props,r)||V(e.$options.computed,r)||V(e.$options.methods,r)||Object.defineProperty(e,r,{get:function(){return e.$data.$apolloData.data[r]},set:function(t){return e.$_apolloInitData[r]=t},enumerable:!0,configurable:!0})}};for(var n in t)r(n)}}function G(){var e=this,t=this.$apolloProvider;if(!this._apolloLaunched&&t){this._apolloLaunched=!0;var r=this.$options.apollo;if(r){for(var n in this.$_apolloPromises=[],r.$init||(r.$init=!0,t.defaultOptions&&(r=this.$options.apollo=Object.assign({},t.defaultOptions,r))),B(this.$apollo,"skipAll",r.$skipAll,r.$deep),B(this.$apollo,"skipAllQueries",r.$skipAllQueries,r.$deep),B(this.$apollo,"skipAllSubscriptions",r.$skipAllSubscriptions,r.$deep),B(this.$apollo,"client",r.$client,r.$deep),B(this.$apollo,"loadingKey",r.$loadingKey,r.$deep),B(this.$apollo,"error",r.$error,r.$deep),B(this.$apollo,"watchLoading",r.$watchLoading,r.$deep),Object.defineProperty(this,"$apolloData",{get:function(){return e.$data.$apolloData},enumerable:!0,configurable:!0}),r)if("$"!==n.charAt(0)){var i=r[n],o=this.$apollo.addSmartQuery(n,i);this.$isServer&&(i=C(i,this),!1===t.prefetch||!1===i.prefetch||!1===r.$prefetch||o.skip||this.$_apolloPromises.push(o.firstRun))}if(r.subscribe&&x.Vue.util.warn("vue-apollo -> `subscribe` option is deprecated. Use the `$subscribe` option instead."),r.$subscribe)for(var a in r.$subscribe)this.$apollo.addSmartSubscription(a,r.$subscribe[a])}}}function B(e,t,r,n){"undefined"!==typeof r&&("function"===typeof r?e.defineReactiveSetter(t,r,n):e[t]=r)}function z(){this.$_apollo&&(this.$_apollo.destroy(),this.$_apollo=null)}function W(e,t){e.mixin(u({},"1"===t?{init:$}:{},{},"2"===t?{data:function(){return{$apolloData:{queries:{},loading:0,data:this.$_apolloInitData}}},beforeCreate:function(){var e=this;if($.call(this),U.call(this),this.$isServer){var t=this.$options.render;this.$options.render=function(r){var n=t.call(e,r);return z.call(e),n}}},serverPrefetch:function(){if(this.$_apolloPromises)return Promise.all(this.$_apolloPromises)}}:{},{created:G,destroyed:z}))}var K=["$subscribe"];function J(e,t){if(!J.installed){J.installed=!0,x.Vue=e;var r=e.version.substr(0,e.version.indexOf(".")),n=e.config.optionMergeStrategies.methods;e.config.optionMergeStrategies.apollo=function(e,t,r){if(!e)return t;if(!t)return e;for(var i=Object.assign({},q(e,K),e.data),o=Object.assign({},q(t,K),t.data),a={},s=0;s0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0){var s=t.shift();s&&s.applyMiddleware.apply(i,[e,o])}else r(e)};o()};i(a(t.middlewares),t)}))},e.prototype.use=function(e){var t=this;return e.map((function(e){if("function"!==typeof e.applyMiddleware)throw new Error("Middleware must implement the applyMiddleware function.");t.middlewares.push(e)})),this},e.prototype.getConnectionParams=function(e){return function(){return new Promise((function(t,r){if("function"===typeof e)try{return t(e.call(null))}catch(n){return r(n)}t(e)}))}},e.prototype.executeOperation=function(e,t){var r=this;null===this.client&&this.connect();var n=this.generateOperationId();return this.operations[n]={options:e,handler:t},this.applyMiddlewares(e).then((function(e){r.checkOperationOptions(e,t),r.operations[n]&&(r.operations[n]={options:e,handler:t},r.sendMessage(n,m.default.GQL_START,e))})).catch((function(e){r.unsubscribe(n),t(r.formatErrors(e))})),n},e.prototype.getObserver=function(e,t,r){return"function"===typeof e?{next:function(t){return e(t)},error:function(e){return t&&t(e)},complete:function(){return r&&r()}}:e},e.prototype.createMaxConnectTimeGenerator=function(){var e=this.minWsTimeout,t=this.wsTimeout;return new c({min:e,max:t,factor:1.2})},e.prototype.clearCheckConnectionInterval=function(){this.checkConnectionIntervalId&&(clearInterval(this.checkConnectionIntervalId),this.checkConnectionIntervalId=null)},e.prototype.clearMaxConnectTimeout=function(){this.maxConnectTimeoutId&&(clearTimeout(this.maxConnectTimeoutId),this.maxConnectTimeoutId=null)},e.prototype.clearTryReconnectTimeout=function(){this.tryReconnectTimeoutId&&(clearTimeout(this.tryReconnectTimeoutId),this.tryReconnectTimeoutId=null)},e.prototype.clearInactivityTimeout=function(){this.inactivityTimeoutId&&(clearTimeout(this.inactivityTimeoutId),this.inactivityTimeoutId=null)},e.prototype.setInactivityTimeout=function(){var e=this;this.inactivityTimeout>0&&0===Object.keys(this.operations).length&&(this.inactivityTimeoutId=setTimeout((function(){0===Object.keys(e.operations).length&&e.close()}),this.inactivityTimeout))},e.prototype.checkOperationOptions=function(e,t){var r=e.query,n=e.variables,i=e.operationName;if(!r)throw new Error("Must provide a query.");if(!t)throw new Error("Must provide an handler.");if(!f.default(r)&&!d.getOperationAST(r,i)||i&&!f.default(i)||n&&!h.default(n))throw new Error("Incorrect option types. query must be a string or a document,`operationName` must be a string, and `variables` must be an object.")},e.prototype.buildMessage=function(e,t,r){var i=r&&r.query?n(n({},r),{query:"string"===typeof r.query?r.query:p.print(r.query)}):r;return{id:e,type:t,payload:i}},e.prototype.formatErrors=function(e){return Array.isArray(e)?e:e&&e.errors?this.formatErrors(e.errors):e&&e.message?[e]:[{name:"FormatedError",message:"Unknown error",originalError:e}]},e.prototype.sendMessage=function(e,t,r){this.sendMessageRaw(this.buildMessage(e,t,r))},e.prototype.sendMessageRaw=function(e){switch(this.status){case this.wsImpl.OPEN:var t=JSON.stringify(e);try{JSON.parse(t)}catch(r){this.eventEmitter.emit("error",new Error("Message must be JSON-serializable. Got: "+e))}this.client.send(t);break;case this.wsImpl.CONNECTING:this.unsentMessagesQueue.push(e);break;default:this.reconnecting||this.eventEmitter.emit("error",new Error("A message was not sent because socket is not connected, is closing or is already closed. Message was: "+JSON.stringify(e)))}},e.prototype.generateOperationId=function(){return String(++this.nextOperationId)},e.prototype.tryReconnect=function(){var e=this;if(this.reconnect&&!(this.backoff.attempts>=this.reconnectionAttempts)){this.reconnecting||(Object.keys(this.operations).forEach((function(t){e.unsentMessagesQueue.push(e.buildMessage(t,m.default.GQL_START,e.operations[t].options))})),this.reconnecting=!0),this.clearTryReconnectTimeout();var t=this.backoff.duration();this.tryReconnectTimeoutId=setTimeout((function(){e.connect()}),t)}},e.prototype.flushUnsentMessagesQueue=function(){var e=this;this.unsentMessagesQueue.forEach((function(t){e.sendMessageRaw(t)})),this.unsentMessagesQueue=[]},e.prototype.checkConnection=function(){this.wasKeepAliveReceived?this.wasKeepAliveReceived=!1:this.reconnecting||this.close(!1,!0)},e.prototype.checkMaxConnectTimeout=function(){var e=this;this.clearMaxConnectTimeout(),this.maxConnectTimeoutId=setTimeout((function(){e.status!==e.wsImpl.OPEN&&(e.reconnecting=!0,e.close(!1,!0))}),this.maxConnectTimeGenerator.duration())},e.prototype.connect=function(){var e,t=this;this.client=new((e=this.wsImpl).bind.apply(e,a([void 0,this.url,this.wsProtocols],this.wsOptionArguments))),this.checkMaxConnectTimeout(),this.client.onopen=function(){return i(t,void 0,void 0,(function(){var e,t;return o(this,(function(r){switch(r.label){case 0:if(this.status!==this.wsImpl.OPEN)return[3,4];this.clearMaxConnectTimeout(),this.closedByUser=!1,this.eventEmitter.emit(this.reconnecting?"reconnecting":"connecting"),r.label=1;case 1:return r.trys.push([1,3,,4]),[4,this.connectionParams()];case 2:return e=r.sent(),this.sendMessage(void 0,m.default.GQL_CONNECTION_INIT,e),this.flushUnsentMessagesQueue(),[3,4];case 3:return t=r.sent(),this.sendMessage(void 0,m.default.GQL_CONNECTION_ERROR,t),this.flushUnsentMessagesQueue(),[3,4];case 4:return[2]}}))}))},this.client.onclose=function(){t.closedByUser||t.close(!1,!1)},this.client.onerror=function(e){t.eventEmitter.emit("error",e)},this.client.onmessage=function(e){var r=e.data;t.processReceivedData(r)}},e.prototype.processReceivedData=function(e){var t,r;try{t=JSON.parse(e),r=t.id}catch(s){throw new Error("Message must be JSON-parseable. Got: "+e)}if(-1===[m.default.GQL_DATA,m.default.GQL_COMPLETE,m.default.GQL_ERROR].indexOf(t.type)||this.operations[r])switch(t.type){case m.default.GQL_CONNECTION_ERROR:this.connectionCallback&&this.connectionCallback(t.payload);break;case m.default.GQL_CONNECTION_ACK:this.eventEmitter.emit(this.reconnecting?"reconnected":"connected",t.payload),this.reconnecting=!1,this.backoff.reset(),this.maxConnectTimeGenerator.reset(),this.connectionCallback&&this.connectionCallback();break;case m.default.GQL_COMPLETE:var i=this.operations[r].handler;delete this.operations[r],i.call(this,null,null);break;case m.default.GQL_ERROR:this.operations[r].handler(this.formatErrors(t.payload),null),delete this.operations[r];break;case m.default.GQL_DATA:var o=t.payload.errors?n(n({},t.payload),{errors:this.formatErrors(t.payload.errors)}):t.payload;this.operations[r].handler(null,o);break;case m.default.GQL_CONNECTION_KEEP_ALIVE:var a="undefined"===typeof this.wasKeepAliveReceived;this.wasKeepAliveReceived=!0,a&&this.checkConnection(),this.checkConnectionIntervalId&&(clearInterval(this.checkConnectionIntervalId),this.checkConnection()),this.checkConnectionIntervalId=setInterval(this.checkConnection.bind(this),this.wsTimeout);break;default:throw new Error("Invalid message type!")}else this.unsubscribe(r)},e.prototype.unsubscribe=function(e){this.operations[e]&&(delete this.operations[e],this.setInactivityTimeout(),this.sendMessage(e,m.default.GQL_STOP,void 0))},e}();t.SubscriptionClient=g}).call(this,r("c8ba"))},"6c20":function(e,t,r){"use strict";r.r(t),function(e,n){var i,o=r("48b5");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("c8ba"),r("dd40")(e))},"6eed":function(e,t,r){"use strict";var n=r("c3c0"),i=r("edc9"),o=r("aa56"),a=r("da3e"),s=n.sum32,u=n.sum32_4,c=n.sum32_5,l=o.ch32,f=o.maj32,h=o.s0_256,p=o.s1_256,d=o.g0_256,v=o.g1_256,y=i.BlockHash,b=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function m(){if(!(this instanceof m))return new m;y.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=b,this.W=new Array(64)}n.inherits(m,y),e.exports=m,m.blockSize=512,m.outSize=256,m.hmacStrength=192,m.padLength=64,m.prototype._update=function(e,t){for(var r=this.W,n=0;n<16;n++)r[n]=e[t+n];for(;n0}function v(e){return e.hasOwnProperty("graphQLErrors")}var y,b=function(e){var t="";return d(e.graphQLErrors)&&e.graphQLErrors.forEach((function(e){var r=e?e.message:"Error message not found.";t+="GraphQL error: "+r+"\n"})),e.networkError&&(t+="Network error: "+e.networkError.message+"\n"),t=t.replace(/\n$/,""),t},m=function(e){function t(r){var n=r.graphQLErrors,i=r.networkError,o=r.errorMessage,a=r.extraInfo,s=e.call(this,o)||this;return s.graphQLErrors=n||[],s.networkError=i||null,s.message=o||b(s),s.extraInfo=a,s.__proto__=t.prototype,s}return Object(i["c"])(t,e),t}(Error);(function(e){e[e["normal"]=1]="normal",e[e["refetch"]=2]="refetch",e[e["poll"]=3]="poll"})(y||(y={}));var g=function(e,t){return void 0===t&&(t="none"),e&&(e.networkError||"none"===t&&d(e.graphQLErrors))},O=function(e){function t(t){var r=t.queryManager,n=t.options,i=t.shouldSubscribe,a=void 0===i||i,s=e.call(this,(function(e){return s.onSubscribe(e)}))||this;s.observers=new Set,s.subscriptions=new Set,s.isTornDown=!1,s.options=n,s.variables=n.variables||{},s.queryId=r.generateQueryId(),s.shouldSubscribe=a;var u=Object(o["m"])(n.query);return s.queryName=u&&u.name&&u.name.value,s.queryManager=r,s}return Object(i["c"])(t,e),t.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)}))},t.prototype.currentResult=function(){var e=this.getCurrentResult();return void 0===e.data&&(e.data={}),e},t.prototype.getCurrentResult=function(){if(this.isTornDown){var e=this.lastResult;return{data:!this.lastError&&e&&e.data||void 0,error:this.lastError,loading:!1,networkStatus:n.error}}var t,r=this.queryManager.getCurrentQueryResult(this),o=r.data,a=r.partial,s=this.queryManager.queryStore.get(this.queryId),u=this.options.fetchPolicy,c="network-only"===u||"no-cache"===u;if(s){var l=s.networkStatus;if(g(s,this.options.errorPolicy))return{data:void 0,loading:!1,networkStatus:l,error:new m({graphQLErrors:s.graphQLErrors,networkError:s.networkError})};s.variables&&(this.options.variables=Object(i["a"])(Object(i["a"])({},this.options.variables),s.variables),this.variables=this.options.variables),t={data:o,loading:h(l),networkStatus:l},s.graphQLErrors&&"all"===this.options.errorPolicy&&(t.errors=s.graphQLErrors)}else{var f=c||a&&"cache-only"!==u;t={data:o,loading:f,networkStatus:f?n.loading:n.ready}}return a||this.updateLastResult(Object(i["a"])(Object(i["a"])({},t),{stale:!1})),Object(i["a"])(Object(i["a"])({},t),{partial:a})},t.prototype.isDifferentFromLastResult=function(e){var t=this.lastResultSnapshot;return!(t&&e&&t.networkStatus===e.networkStatus&&t.stale===e.stale&&Object(a["a"])(t.data,e.data))},t.prototype.getLastResult=function(){return this.lastResult},t.prototype.getLastError=function(){return this.lastError},t.prototype.resetLastResults=function(){delete this.lastResult,delete this.lastResultSnapshot,delete this.lastError,this.isTornDown=!1},t.prototype.resetQueryStoreErrors=function(){var e=this.queryManager.queryStore.get(this.queryId);e&&(e.networkError=null,e.graphQLErrors=[])},t.prototype.refetch=function(e){var t=this.options.fetchPolicy;return"cache-only"===t?Promise.reject(new l["a"](1)):("no-cache"!==t&&"cache-and-network"!==t&&(t="network-only"),Object(a["a"])(this.variables,e)||(this.variables=Object(i["a"])(Object(i["a"])({},this.variables),e)),Object(a["a"])(this.options.variables,this.variables)||(this.options.variables=Object(i["a"])(Object(i["a"])({},this.options.variables),this.variables)),this.queryManager.fetchQuery(this.queryId,Object(i["a"])(Object(i["a"])({},this.options),{fetchPolicy:t}),y.refetch))},t.prototype.fetchMore=function(e){var t=this;Object(l["b"])(e.updateQuery,2);var r=Object(i["a"])(Object(i["a"])({},e.query?e:Object(i["a"])(Object(i["a"])(Object(i["a"])({},this.options),e),{variables:Object(i["a"])(Object(i["a"])({},this.variables),e.variables)})),{fetchPolicy:"network-only"}),n=this.queryManager.generateQueryId();return this.queryManager.fetchQuery(n,r,y.normal,this.queryId).then((function(i){return t.updateQuery((function(t){return e.updateQuery(t,{fetchMoreResult:i.data,variables:r.variables})})),t.queryManager.stopQuery(n),i}),(function(e){throw t.queryManager.stopQuery(n),e}))},t.prototype.subscribeToMore=function(e){var t=this,r=this.queryManager.startGraphQLSubscription({query:e.document,variables:e.variables}).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()}},t.prototype.setOptions=function(e){var t=this.options.fetchPolicy;this.options=Object(i["a"])(Object(i["a"])({},this.options),e),e.pollInterval?this.startPolling(e.pollInterval):0===e.pollInterval&&this.stopPolling();var r=e.fetchPolicy;return this.setVariables(this.options.variables,t!==r&&("cache-only"===t||"standby"===t||"network-only"===r),e.fetchResults)},t.prototype.setVariables=function(e,t,r){return void 0===t&&(t=!1),void 0===r&&(r=!0),this.isTornDown=!1,e=e||this.variables,!t&&Object(a["a"])(e,this.variables)?this.observers.size&&r?this.result():Promise.resolve():(this.variables=this.options.variables=e,this.observers.size?this.queryManager.fetchQuery(this.queryId,this.options):Promise.resolve())},t.prototype.updateQuery=function(e){var t=this.queryManager,r=t.getQueryWithPreviousResult(this.queryId),n=r.previousResult,i=r.variables,a=r.document,s=Object(o["I"])((function(){return e(n,{variables:i})}));s&&(t.dataStore.markUpdateQueryResult(a,i,s),t.broadcastQueries())},t.prototype.stopPolling=function(){this.queryManager.stopPollingQuery(this.queryId),this.options.pollInterval=void 0},t.prototype.startPolling=function(e){S(this),this.options.pollInterval=e,this.queryManager.startPollingQuery(this.options,this.queryId)},t.prototype.updateLastResult=function(e){var t=this.lastResult;return this.lastResult=e,this.lastResultSnapshot=this.queryManager.assumeImmutableResults?e:Object(o["f"])(e),t},t.prototype.onSubscribe=function(e){var t=this;try{var r=e._subscription._observer;r&&!r.error&&(r.error=w)}catch(i){}var n=!this.observers.size;return this.observers.add(e),e.next&&this.lastResult&&e.next(this.lastResult),e.error&&this.lastError&&e.error(this.lastError),n&&this.setUpQuery(),function(){t.observers.delete(e)&&!t.observers.size&&t.tearDownQuery()}},t.prototype.setUpQuery=function(){var e=this,t=this,r=t.queryManager,o=t.queryId;this.shouldSubscribe&&r.addObservableQuery(o,this),this.options.pollInterval&&(S(this),r.startPollingQuery(this.options,o));var s=function(t){e.updateLastResult(Object(i["a"])(Object(i["a"])({},e.lastResult),{errors:t.graphQLErrors,networkStatus:n.error,loading:!1})),k(e.observers,"error",e.lastError=t)};r.observeQuery(o,this.options,{next:function(t){if(e.lastError||e.isDifferentFromLastResult(t)){var n=e.updateLastResult(t),i=e.options,o=i.query,s=i.variables,u=i.fetchPolicy;r.transform(o).hasClientExports?r.getLocalState().addExportedVariables(o,s).then((function(i){var s=e.variables;e.variables=e.options.variables=i,!t.loading&&n&&"cache-only"!==u&&r.transform(o).serverQuery&&!Object(a["a"])(s,i)?e.refetch():k(e.observers,"next",t)})):k(e.observers,"next",t)}},error:s}).catch(s)},t.prototype.tearDownQuery=function(){var e=this.queryManager;this.isTornDown=!0,e.stopPollingQuery(this.queryId),this.subscriptions.forEach((function(e){return e.unsubscribe()})),this.subscriptions.clear(),e.removeObservableQuery(this.queryId),e.stopQuery(this.queryId),this.observers.clear()},t}(p);function w(e){}function k(e,t,r){var n=[];e.forEach((function(e){return e[t]&&n.push(e)})),n.forEach((function(e){return e[t](r)}))}function S(e){var t=e.options.fetchPolicy;Object(l["b"])("cache-first"!==t&&"cache-only"!==t,3)}var j=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}(),E=function(){function e(){this.store={}}return e.prototype.getStore=function(){return this.store},e.prototype.get=function(e){return this.store[e]},e.prototype.initQuery=function(e){var t=this.store[e.queryId];Object(l["b"])(!t||t.document===e.document||Object(a["a"])(t.document,e.document),19);var r,i=!1,o=null;e.storePreviousVariables&&t&&t.networkStatus!==n.loading&&(Object(a["a"])(t.variables,e.variables)||(i=!0,o=t.variables)),r=i?n.setVariables:e.isPoll?n.poll:e.isRefetch?n.refetch:n.loading;var s=[];t&&t.graphQLErrors&&(s=t.graphQLErrors),this.store[e.queryId]={document:e.document,variables:e.variables,previousVariables:o,networkError:null,graphQLErrors:s,networkStatus:r,metadata:e.metadata},"string"===typeof e.fetchMoreForQueryId&&this.store[e.fetchMoreForQueryId]&&(this.store[e.fetchMoreForQueryId].networkStatus=n.fetchMore)},e.prototype.markQueryResult=function(e,t,r){this.store&&this.store[e]&&(this.store[e].networkError=null,this.store[e].graphQLErrors=d(t.errors)?t.errors:[],this.store[e].previousVariables=null,this.store[e].networkStatus=n.ready,"string"===typeof r&&this.store[r]&&(this.store[r].networkStatus=n.ready))},e.prototype.markQueryError=function(e,t,r){this.store&&this.store[e]&&(this.store[e].networkError=t,this.store[e].networkStatus=n.error,"string"===typeof r&&this.markQueryResultClient(r,!0))},e.prototype.markQueryResultClient=function(e,t){var r=this.store&&this.store[e];r&&(r.networkError=null,r.previousVariables=null,t&&(r.networkStatus=n.ready))},e.prototype.stopQuery=function(e){delete this.store[e]},e.prototype.reset=function(e){var t=this;Object.keys(this.store).forEach((function(r){e.indexOf(r)<0?t.stopQuery(r):t.store[r].networkStatus=n.loading}))},e}();function _(e){return e.charAt(0).toUpperCase()+e.slice(1)}var I=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=Object(o["A"])(t.resolvers,e)})):this.resolvers=Object(o["A"])(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,o=e.variables,a=e.onlyRunForcedResolvers,s=void 0!==a&&a;return Object(i["b"])(this,void 0,void 0,(function(){return Object(i["d"])(this,(function(e){return t?[2,this.resolveDocument(t,r.data,n,o,this.fragmentMatcher,s).then((function(e){return Object(i["a"])(Object(i["a"])({},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 Object(o["s"])(["client"],e)&&this.resolvers?e:null},e.prototype.serverQuery=function(e){return this.resolvers?Object(o["C"])(e):e},e.prototype.prepareContext=function(e){void 0===e&&(e={});var t=this.cache,r=Object(i["a"])(Object(i["a"])({},e),{cache:t,getCacheKey:function(e){if(t.config)return t.config.dataIdFromObject(e);Object(l["b"])(!1,6)}});return r},e.prototype.addExportedVariables=function(e,t,r){return void 0===t&&(t={}),void 0===r&&(r={}),Object(i["b"])(this,void 0,void 0,(function(){return Object(i["d"])(this,(function(n){return e?[2,this.resolveDocument(e,this.buildRootValueFromCache(e,t)||{},this.prepareContext(r),t).then((function(e){return Object(i["a"])(Object(i["a"])({},t),e.exportedVariables)}))]:[2,Object(i["a"])({},t)]}))}))},e.prototype.shouldForceResolvers=function(e){var t=!1;return Object(f["b"])(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})),t))return f["a"]}}}),t},e.prototype.buildRootValueFromCache=function(e,t){return this.cache.diff({query:Object(o["d"])(e),variables:t,returnPartialData:!0,optimistic:!1}).result},e.prototype.resolveDocument=function(e,t,r,n,a,s){return void 0===r&&(r={}),void 0===n&&(n={}),void 0===a&&(a=function(){return!0}),void 0===s&&(s=!1),Object(i["b"])(this,void 0,void 0,(function(){var u,c,l,f,h,p,d,v,y;return Object(i["d"])(this,(function(b){return u=Object(o["l"])(e),c=Object(o["j"])(e),l=Object(o["g"])(c),f=u.operation,h=f?_(f):"Query",p=this,d=p.cache,v=p.client,y={fragmentMap:l,context:Object(i["a"])(Object(i["a"])({},r),{cache:d,client:v}),variables:n,fragmentMatcher:a,defaultOperationType:h,exportedVariables:{},onlyRunForcedResolvers:s},[2,this.resolveSelectionSet(u.selectionSet,t,y).then((function(e){return{result:e,exportedVariables:y.exportedVariables}}))]}))}))},e.prototype.resolveSelectionSet=function(e,t,r){return Object(i["b"])(this,void 0,void 0,(function(){var n,a,s,u,c,f=this;return Object(i["d"])(this,(function(h){return n=r.fragmentMap,a=r.context,s=r.variables,u=[t],c=function(e){return Object(i["b"])(f,void 0,void 0,(function(){var c,f;return Object(i["d"])(this,(function(i){return Object(o["F"])(e,s)?Object(o["t"])(e)?[2,this.resolveField(e,t,r).then((function(t){var r;"undefined"!==typeof t&&u.push((r={},r[Object(o["E"])(e)]=t,r))}))]:(Object(o["v"])(e)?c=e:(c=n[e.name.value],Object(l["b"])(c,7)),c&&c.typeCondition&&(f=c.typeCondition.name.value,r.fragmentMatcher(t,f,a))?[2,this.resolveSelectionSet(c.selectionSet,t,r).then((function(e){u.push(e)}))]:[2]):[2]}))}))},[2,Promise.all(e.selections.map(c)).then((function(){return Object(o["B"])(u)}))]}))}))},e.prototype.resolveField=function(e,t,r){return Object(i["b"])(this,void 0,void 0,(function(){var n,a,s,u,c,l,f,h,p,d=this;return Object(i["d"])(this,(function(i){return n=r.variables,a=e.name.value,s=Object(o["E"])(e),u=a!==s,c=t[s]||t[a],l=Promise.resolve(c),r.onlyRunForcedResolvers&&!this.shouldForceResolvers(e)||(f=t.__typename||r.defaultOperationType,h=this.resolvers&&this.resolvers[f],h&&(p=h[u?a:s],p&&(l=Promise.resolve(p(t,Object(o["b"])(e,n),r.context,{field:e,fragmentMap:r.fragmentMap}))))),[2,l.then((function(t){return void 0===t&&(t=c),e.directives&&e.directives.forEach((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)?d.resolveSubSelectedArray(e,t,r):e.selectionSet?d.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}();function T(e){var t=new Set,r=null;return new p((function(n){return t.add(n),r=r||e.subscribe({next:function(e){t.forEach((function(t){return t.next&&t.next(e)}))},error:function(e){t.forEach((function(t){return t.error&&t.error(e)}))},complete:function(){t.forEach((function(e){return e.complete&&e.complete()}))}}),function(){t.delete(n)&&!t.size&&r&&(r.unsubscribe(),r=null)}}))}function x(e,t){return new p((function(r){var n=r.next,i=r.error,o=r.complete,a=0,s=!1,u={next:function(e){++a,new Promise((function(r){r(t(e))})).then((function(e){--a,n&&n.call(r,e),s&&u.complete()}),(function(e){--a,i&&i.call(r,e)}))},error:function(e){i&&i.call(r,e)},complete:function(){s=!0,a||o&&o.call(r)}},c=e.subscribe(u);return function(){return c.unsubscribe()}}))}var Q=Object.prototype.hasOwnProperty,R=function(){function e(e){var t=e.link,r=e.queryDeduplication,n=void 0!==r&&r,i=e.store,a=e.onBroadcast,s=void 0===a?function(){}:a,u=e.ssrMode,c=void 0!==u&&u,l=e.clientAwareness,f=void 0===l?{}:l,h=e.localState,p=e.assumeImmutableResults;this.mutationStore=new j,this.queryStore=new E,this.clientAwareness={},this.idCounter=1,this.queries=new Map,this.fetchQueryRejectFns=new Map,this.transformCache=new(o["e"]?WeakMap:Map),this.inFlightLinkObservables=new Map,this.pollingInfoByQueryId=new Map,this.link=t,this.queryDeduplication=n,this.dataStore=i,this.onBroadcast=s,this.clientAwareness=f,this.localState=h||new I({cache:i.getCache()}),this.ssrMode=c,this.assumeImmutableResults=!!p}return e.prototype.stop=function(){var e=this;this.queries.forEach((function(t,r){e.stopQueryNoBroadcast(r)})),this.fetchQueryRejectFns.forEach((function(e){e(new l["a"](8))}))},e.prototype.mutate=function(e){var t=e.mutation,r=e.variables,n=e.optimisticResponse,a=e.updateQueries,s=e.refetchQueries,u=void 0===s?[]:s,c=e.awaitRefetchQueries,f=void 0!==c&&c,h=e.update,p=e.errorPolicy,v=void 0===p?"none":p,y=e.fetchPolicy,b=e.context,g=void 0===b?{}:b;return Object(i["b"])(this,void 0,void 0,(function(){var e,s,c,p=this;return Object(i["d"])(this,(function(b){switch(b.label){case 0:return Object(l["b"])(t,9),Object(l["b"])(!y||"no-cache"===y,10),e=this.generateQueryId(),t=this.transform(t).document,this.setQuery(e,(function(){return{document:t}})),r=this.getVariables(t,r),this.transform(t).hasClientExports?[4,this.localState.addExportedVariables(t,r,g)]:[3,2];case 1:r=b.sent(),b.label=2;case 2:return s=function(){var e={};return a&&p.queries.forEach((function(t,r){var n=t.observableQuery;if(n){var i=n.queryName;i&&Q.call(a,i)&&(e[r]={updater:a[i],query:p.queryStore.get(r)})}})),e},this.mutationStore.initMutation(e,t,r),this.dataStore.markMutationInit({mutationId:e,document:t,variables:r,updateQueries:s(),update:h,optimisticResponse:n}),this.broadcastQueries(),c=this,[2,new Promise((function(a,l){var p,b;c.getObservableFromLink(t,Object(i["a"])(Object(i["a"])({},g),{optimisticResponse:n}),r,!1).subscribe({next:function(n){Object(o["q"])(n)&&"none"===v?b=new m({graphQLErrors:n.errors}):(c.mutationStore.markMutationResult(e),"no-cache"!==y&&c.dataStore.markMutationResult({mutationId:e,result:n,document:t,variables:r,updateQueries:s(),update:h}),p=n)},error:function(t){c.mutationStore.markMutationError(e,t),c.dataStore.markMutationComplete({mutationId:e,optimisticResponse:n}),c.broadcastQueries(),c.setQuery(e,(function(){return{document:null}})),l(new m({networkError:t}))},complete:function(){if(b&&c.mutationStore.markMutationError(e,b),c.dataStore.markMutationComplete({mutationId:e,optimisticResponse:n}),c.broadcastQueries(),b)l(b);else{"function"===typeof u&&(u=u(p));var t=[];d(u)&&u.forEach((function(e){if("string"===typeof e)c.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(c.query(r))}})),Promise.all(f?t:[]).then((function(){c.setQuery(e,(function(){return{document:null}})),"ignore"===v&&p&&Object(o["q"])(p)&&delete p.errors,a(p)}))}}})}))]}}))}))},e.prototype.fetchQuery=function(e,t,r,n){return Object(i["b"])(this,void 0,void 0,(function(){var a,s,u,c,l,f,h,p,d,b,g,O,w,k,S,j,E,_,I=this;return Object(i["d"])(this,(function(T){switch(T.label){case 0:return a=t.metadata,s=void 0===a?null:a,u=t.fetchPolicy,c=void 0===u?"cache-first":u,l=t.context,f=void 0===l?{}:l,h=this.transform(t.query).document,p=this.getVariables(h,t.variables),this.transform(h).hasClientExports?[4,this.localState.addExportedVariables(h,p,f)]:[3,2];case 1:p=T.sent(),T.label=2;case 2:if(t=Object(i["a"])(Object(i["a"])({},t),{variables:p}),b="network-only"===c||"no-cache"===c,g=b,b||(O=this.dataStore.getCache().diff({query:h,variables:p,returnPartialData:!0,optimistic:!1}),w=O.complete,k=O.result,g=!w||"cache-and-network"===c,d=k),S=g&&"cache-only"!==c&&"standby"!==c,Object(o["s"])(["live"],h)&&(S=!0),j=this.idCounter++,E="no-cache"!==c?this.updateQueryWatch(e,h,t):void 0,this.setQuery(e,(function(){return{document:h,lastRequestId:j,invalidated:!0,cancel:E}})),this.invalidate(n),this.queryStore.initQuery({queryId:e,document:h,storePreviousVariables:S,variables:p,isPoll:r===y.poll,isRefetch:r===y.refetch,metadata:s,fetchMoreForQueryId:n}),this.broadcastQueries(),S){if(_=this.fetchRequest({requestId:j,queryId:e,document:h,options:t,fetchMoreForQueryId:n}).catch((function(t){throw v(t)?t:(j>=I.getQuery(e).lastRequestId&&(I.queryStore.markQueryError(e,t,n),I.invalidate(e),I.invalidate(n),I.broadcastQueries()),new m({networkError:t}))})),"cache-and-network"!==c)return[2,_];_.catch((function(){}))}return this.queryStore.markQueryResultClient(e,!S),this.invalidate(e),this.invalidate(n),this.transform(h).hasForcedResolvers?[2,this.localState.runResolvers({document:h,remoteResult:{data:d},context:f,variables:p,onlyRunForcedResolvers:!0}).then((function(r){return I.markQueryResult(e,r,t,n),I.broadcastQueries(),r}))]:(this.broadcastQueries(),[2,{data:d}])}}))}))},e.prototype.markQueryResult=function(e,t,r,n){var i=r.fetchPolicy,o=r.variables,a=r.errorPolicy;"no-cache"===i?this.setQuery(e,(function(){return{newData:{result:t.data,complete:!0}}})):this.dataStore.markQueryResult(t,this.getQuery(e).document,o,n,"ignore"===a||"all"===a)},e.prototype.queryListenerForObserver=function(e,t,r){var n=this;function i(e,t){if(r[e])try{r[e](t)}catch(n){}}return function(r,o){if(n.invalidate(e,!1),r){var a=n.getQuery(e),s=a.observableQuery,u=a.document,c=s?s.options.fetchPolicy:t.fetchPolicy;if("standby"!==c){var l=h(r.networkStatus),f=s&&s.getLastResult(),p=!(!f||f.networkStatus===r.networkStatus),v=t.returnPartialData||!o&&r.previousVariables||p&&t.notifyOnNetworkStatusChange||"cache-only"===c||"cache-and-network"===c;if(!l||v){var y=d(r.graphQLErrors),b=s&&s.options.errorPolicy||t.errorPolicy||"none";if("none"===b&&y||r.networkError)return i("error",new m({graphQLErrors:r.graphQLErrors,networkError:r.networkError}));try{var g=void 0,O=void 0;if(o)"no-cache"!==c&&"network-only"!==c&&n.setQuery(e,(function(){return{newData:null}})),g=o.result,O=!o.complete;else{var w=s&&s.getLastError(),k="none"!==b&&(w&&w.graphQLErrors)!==r.graphQLErrors;if(f&&f.data&&!k)g=f.data,O=!1;else{var S=n.dataStore.getCache().diff({query:u,variables:r.previousVariables||r.variables,returnPartialData:!0,optimistic:!0});g=S.result,O=!S.complete}}var j=O&&!(t.returnPartialData||"cache-only"===c),E={data:j?f&&f.data:g,loading:l,networkStatus:r.networkStatus,stale:j};"all"===b&&y&&(E.errors=r.graphQLErrors),i("next",E)}catch(_){i("error",new m({networkError:_}))}}}}}},e.prototype.transform=function(e){var t=this.transformCache;if(!t.has(e)){var r=this.dataStore.getCache(),n=r.transformDocument(e),i=Object(o["D"])(r.transformForLink(n)),a=this.localState.clientQuery(n),s=this.localState.serverQuery(i),u={document:n,hasClientExports:Object(o["r"])(n),hasForcedResolvers:this.localState.shouldForceResolvers(n),clientQuery:a,serverQuery:s,defaultVars:Object(o["h"])(Object(o["m"])(n))},c=function(e){e&&!t.has(e)&&t.set(e,u)};c(e),c(n),c(a),c(s)}return t.get(e)},e.prototype.getVariables=function(e,t){return Object(i["a"])(Object(i["a"])({},this.transform(e).defaultVars),t)},e.prototype.watchQuery=function(e,t){void 0===t&&(t=!0),Object(l["b"])("standby"!==e.fetchPolicy,11),e.variables=this.getVariables(e.query,e.variables),"undefined"===typeof e.notifyOnNetworkStatusChange&&(e.notifyOnNetworkStatusChange=!1);var r=Object(i["a"])({},e);return new O({queryManager:this,options:r,shouldSubscribe:t})},e.prototype.query=function(e){var t=this;return Object(l["b"])(e.query,12),Object(l["b"])("Document"===e.query.kind,13),Object(l["b"])(!e.returnPartialData,14),Object(l["b"])(!e.pollInterval,15),new Promise((function(r,n){var i=t.watchQuery(e,!1);t.fetchQueryRejectFns.set("query:"+i.queryId,n),i.result().then(r,n).then((function(){return t.fetchQueryRejectFns.delete("query:"+i.queryId)}))}))},e.prototype.generateQueryId=function(){return String(this.idCounter++)},e.prototype.stopQueryInStore=function(e){this.stopQueryInStoreNoBroadcast(e),this.broadcastQueries()},e.prototype.stopQueryInStoreNoBroadcast=function(e){this.stopPollingQuery(e),this.queryStore.stopQuery(e),this.invalidate(e)},e.prototype.addQueryListener=function(e,t){this.setQuery(e,(function(e){var r=e.listeners;return r.add(t),{invalidated:!1}}))},e.prototype.updateQueryWatch=function(e,t,r){var n=this,i=this.getQuery(e).cancel;i&&i();var o=function(){var t=null,r=n.getQuery(e).observableQuery;if(r){var i=r.getLastResult();i&&(t=i.data)}return t};return this.dataStore.getCache().watch({query:t,variables:r.variables,optimistic:!0,previousResult:o,callback:function(t){n.setQuery(e,(function(){return{invalidated:!0,newData:t}}))}})},e.prototype.addObservableQuery=function(e,t){this.setQuery(e,(function(){return{observableQuery:t}}))},e.prototype.removeObservableQuery=function(e){var t=this.getQuery(e).cancel;this.setQuery(e,(function(){return{observableQuery:null}})),t&&t()},e.prototype.clearStore=function(){this.fetchQueryRejectFns.forEach((function(e){e(new l["a"](16))}));var e=[];return this.queries.forEach((function(t,r){var n=t.observableQuery;n&&e.push(r)})),this.queryStore.reset(e),this.mutationStore.reset(),this.dataStore.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){var a=o.options.fetchPolicy;o.resetLastResults(),"cache-only"===a||!e&&"standby"===a||r.push(o.refetch()),t.setQuery(i,(function(){return{newData:null}})),t.invalidate(i)}})),this.broadcastQueries(),Promise.all(r)},e.prototype.observeQuery=function(e,t,r){return this.addQueryListener(e,this.queryListenerForObserver(e,t,r)),this.fetchQuery(e,t)},e.prototype.startQuery=function(e,t,r){return this.addQueryListener(e,r),this.fetchQuery(e,t).catch((function(){})),e},e.prototype.startGraphQLSubscription=function(e){var t=this,r=e.query,n=e.fetchPolicy,i=e.variables;r=this.transform(r).document,i=this.getVariables(r,i);var a=function(e){return t.getObservableFromLink(r,{},e,!1).map((function(i){if(n&&"no-cache"===n||(t.dataStore.markSubscriptionResult(i,r,e),t.broadcastQueries()),Object(o["q"])(i))throw new m({graphQLErrors:i.errors});return i}))};if(this.transform(r).hasClientExports){var s=this.localState.addExportedVariables(r,i).then(a);return new p((function(e){var t=null;return s.then((function(r){return t=r.subscribe(e)}),e.error),function(){return t&&t.unsubscribe()}}))}return a(i)},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.fetchQueryRejectFns.delete("query:"+e),this.fetchQueryRejectFns.delete("fetchRequest:"+e),this.getQuery(e).subscriptions.forEach((function(e){return e.unsubscribe()})),this.queries.delete(e)},e.prototype.getCurrentQueryResult=function(e,t){void 0===t&&(t=!0);var r=e.options,n=r.variables,i=r.query,o=r.fetchPolicy,a=r.returnPartialData,s=e.getLastResult(),u=this.getQuery(e.queryId).newData;if(u&&u.complete)return{data:u.result,partial:!1};if("no-cache"===o||"network-only"===o)return{data:void 0,partial:!1};var c=this.dataStore.getCache().diff({query:i,variables:n,previousResult:s?s.data:void 0,returnPartialData:!0,optimistic:t}),l=c.result,f=c.complete;return{data:f||a?l:void 0,partial:!f}},e.prototype.getQueryWithPreviousResult=function(e){var t;if("string"===typeof e){var r=this.getQuery(e).observableQuery;Object(l["b"])(r,17),t=r}else t=e;var n=t.options,i=n.variables,o=n.query;return{previousResult:this.getCurrentQueryResult(t,!1).data,variables:i,document:o}},e.prototype.broadcastQueries=function(){var e=this;this.onBroadcast(),this.queries.forEach((function(t,r){t.invalidated&&t.listeners.forEach((function(n){n&&n(e.queryStore.get(r),t.newData)}))}))},e.prototype.getLocalState=function(){return this.localState},e.prototype.getObservableFromLink=function(e,t,r,n){var a,s=this;void 0===n&&(n=this.queryDeduplication);var c=this.transform(e).serverQuery;if(c){var l=this,f=l.inFlightLinkObservables,h=l.link,d={query:c,variables:r,operationName:Object(o["n"])(c)||void 0,context:this.prepareContext(Object(i["a"])(Object(i["a"])({},t),{forceFetch:!n}))};if(t=d.context,n){var v=f.get(c)||new Map;f.set(c,v);var y=JSON.stringify(r);if(a=v.get(y),!a){v.set(y,a=T(Object(u["b"])(h,d)));var b=function(){v.delete(y),v.size||f.delete(c),m.unsubscribe()},m=a.subscribe({next:b,error:b,complete:b})}}else a=T(Object(u["b"])(h,d))}else a=p.of({data:{}}),t=this.prepareContext(t);var g=this.transform(e).clientQuery;return g&&(a=x(a,(function(e){return s.localState.runResolvers({document:g,remoteResult:e,context:t,variables:r})}))),a},e.prototype.fetchRequest=function(e){var t,r,i=this,o=e.requestId,a=e.queryId,s=e.document,u=e.options,c=e.fetchMoreForQueryId,l=u.variables,f=u.errorPolicy,h=void 0===f?"none":f,p=u.fetchPolicy;return new Promise((function(e,f){var v=i.getObservableFromLink(s,u.context,l),y="fetchRequest:"+a;i.fetchQueryRejectFns.set(y,f);var b=function(){i.fetchQueryRejectFns.delete(y),i.setQuery(a,(function(e){var t=e.subscriptions;t.delete(g)}))},g=v.map((function(e){if(o>=i.getQuery(a).lastRequestId&&(i.markQueryResult(a,e,u,c),i.queryStore.markQueryResult(a,e,c),i.invalidate(a),i.invalidate(c),i.broadcastQueries()),"none"===h&&d(e.errors))return f(new m({graphQLErrors:e.errors}));if("all"===h&&(r=e.errors),c||"no-cache"===p)t=e.data;else{var n=i.dataStore.getCache().diff({variables:l,query:s,optimistic:!1,returnPartialData:!0}),v=n.result,y=n.complete;(y||u.returnPartialData)&&(t=v)}})).subscribe({error:function(e){b(),f(e)},complete:function(){b(),e({data:t,errors:r,loading:!1,networkStatus:n.ready,stale:!1})}});i.setQuery(a,(function(e){var t=e.subscriptions;t.add(g)}))}))},e.prototype.getQuery=function(e){return this.queries.get(e)||{listeners:new Set,invalidated:!1,document:null,newData:null,lastRequestId:1,observableQuery:null,subscriptions:new Set}},e.prototype.setQuery=function(e,t){var r=this.getQuery(e),n=Object(i["a"])(Object(i["a"])({},r),t(r));this.queries.set(e,n)},e.prototype.invalidate=function(e,t){void 0===t&&(t=!0),e&&this.setQuery(e,(function(){return{invalidated:t}}))},e.prototype.prepareContext=function(e){void 0===e&&(e={});var t=this.localState.prepareContext(e);return Object(i["a"])(Object(i["a"])({},t),{clientAwareness:this.clientAwareness})},e.prototype.checkInFlight=function(e){var t=this.queryStore.get(e);return t&&t.networkStatus!==n.ready&&t.networkStatus!==n.error},e.prototype.startPollingQuery=function(e,t,r){var n=this,o=e.pollInterval;if(Object(l["b"])(o,18),!this.ssrMode){var a=this.pollingInfoByQueryId.get(t);a||this.pollingInfoByQueryId.set(t,a={}),a.interval=o,a.options=Object(i["a"])(Object(i["a"])({},e),{fetchPolicy:"network-only"});var s=function(){var e=n.pollingInfoByQueryId.get(t);e&&(n.checkInFlight(t)?u():n.fetchQuery(t,e.options,y.poll).then(u,u))},u=function(){var e=n.pollingInfoByQueryId.get(t);e&&(clearTimeout(e.timeout),e.timeout=setTimeout(s,e.interval))};r&&this.addQueryListener(t,r),u()}return t},e.prototype.stopPollingQuery=function(e){this.pollingInfoByQueryId.delete(e)},e}(),C=function(){function e(e){this.cache=e}return e.prototype.getCache=function(){return this.cache},e.prototype.markQueryResult=function(e,t,r,n,i){void 0===i&&(i=!1);var a=!Object(o["q"])(e);i&&Object(o["q"])(e)&&e.data&&(a=!0),!n&&a&&this.cache.write({result:e.data,dataId:"ROOT_QUERY",query:t,variables:r})},e.prototype.markSubscriptionResult=function(e,t,r){Object(o["q"])(e)||this.cache.write({result:e.data,dataId:"ROOT_SUBSCRIPTION",query:t,variables:r})},e.prototype.markMutationInit=function(e){var t,r=this;e.optimisticResponse&&(t="function"===typeof e.optimisticResponse?e.optimisticResponse(e.variables):e.optimisticResponse,this.cache.recordOptimisticTransaction((function(n){var i=r.cache;r.cache=n;try{r.markMutationResult({mutationId:e.mutationId,result:{data:t},document:e.document,variables:e.variables,updateQueries:e.updateQueries,update:e.update})}finally{r.cache=i}}),e.mutationId))},e.prototype.markMutationResult=function(e){var t=this;if(!Object(o["q"])(e.result)){var r=[{result:e.result.data,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables}],n=e.updateQueries;n&&Object.keys(n).forEach((function(i){var a=n[i],s=a.query,u=a.updater,c=t.cache.diff({query:s.document,variables:s.variables,returnPartialData:!0,optimistic:!1}),l=c.result,f=c.complete;if(f){var h=Object(o["I"])((function(){return u(l,{mutationResult:e.result,queryName:Object(o["n"])(s.document)||void 0,queryVariables:s.variables})}));h&&r.push({result:h,dataId:"ROOT_QUERY",query:s.document,variables:s.variables})}})),this.cache.performTransaction((function(t){r.forEach((function(e){return t.write(e)}));var n=e.update;n&&Object(o["I"])((function(){return n(t,e.result)}))}))}},e.prototype.markMutationComplete=function(e){var t=e.mutationId,r=e.optimisticResponse;r&&this.cache.removeOptimistic(t)},e.prototype.markUpdateQueryResult=function(e,t,r){this.cache.write({result:r,dataId:"ROOT_QUERY",variables:t,query:e})},e.prototype.reset=function(){return this.cache.reset()},e}(),q="2.6.10",D=function(){function e(e){var t=this;this.defaultOptions={},this.resetStoreCallbacks=[],this.clearStoreCallbacks=[];var r=e.cache,n=e.ssrMode,i=void 0!==n&&n,o=e.ssrForceFetchDelay,a=void 0===o?0:o,s=e.connectToDevTools,c=e.queryDeduplication,f=void 0===c||c,h=e.defaultOptions,p=e.assumeImmutableResults,d=void 0!==p&&p,v=e.resolvers,y=e.typeDefs,b=e.fragmentMatcher,m=e.name,g=e.version,O=e.link;if(!O&&v&&(O=u["a"].empty()),!O||!r)throw new l["a"](4);this.link=O,this.cache=r,this.store=new C(r),this.disableNetworkFetches=i||a>0,this.queryDeduplication=f,this.defaultOptions=h||{},this.typeDefs=y,a&&setTimeout((function(){return t.disableNetworkFetches=!1}),a),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);var w=!1;("undefined"===typeof s?w:s&&"undefined"!==typeof window)&&(window.__APOLLO_CLIENT__=this),this.version=q,this.localState=new I({cache:r,client:this,resolvers:v,fragmentMatcher:b}),this.queryManager=new R({link:this.link,store:this.store,queryDeduplication:f,ssrMode:i,clientAwareness:{name:m,version:g},localState:this.localState,assumeImmutableResults:d,onBroadcast:function(){t.devToolsHookCb&&t.devToolsHookCb({action:{},state:{queries:t.queryManager.queryStore.getStore(),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=Object(i["a"])(Object(i["a"])({},this.defaultOptions.watchQuery),e)),!this.disableNetworkFetches||"network-only"!==e.fetchPolicy&&"cache-and-network"!==e.fetchPolicy||(e=Object(i["a"])(Object(i["a"])({},e),{fetchPolicy:"cache-first"})),this.queryManager.watchQuery(e)},e.prototype.query=function(e){return this.defaultOptions.query&&(e=Object(i["a"])(Object(i["a"])({},this.defaultOptions.query),e)),Object(l["b"])("cache-and-network"!==e.fetchPolicy,5),this.disableNetworkFetches&&"network-only"===e.fetchPolicy&&(e=Object(i["a"])(Object(i["a"])({},e),{fetchPolicy:"cache-first"})),this.queryManager.query(e)},e.prototype.mutate=function(e){return this.defaultOptions.mutate&&(e=Object(i["a"])(Object(i["a"])({},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){var t=this.cache.writeQuery(e);return this.queryManager.broadcastQueries(),t},e.prototype.writeFragment=function(e){var t=this.cache.writeFragment(e);return this.queryManager.broadcastQueries(),t},e.prototype.writeData=function(e){var t=this.cache.writeData(e);return this.queryManager.broadcastQueries(),t},e.prototype.__actionHookForDevTools=function(e){this.devToolsHookCb=e},e.prototype.__requestRaw=function(e){return Object(u["b"])(this.link,e)},e.prototype.initQueryManager=function(){return this.queryManager},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}();t["a"]=D},7506:function(e,t,r){"use strict";r.r(t),r.d(t,"print",(function(){return o}));var n=r("2f6c");function i(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=-1===e.indexOf("\n"),i=" "===e[0]||"\t"===e[0],o='"'===e[e.length-1],a=!n||o||r,s="";return!a||n&&i||(s+="\n"+t),s+=t?e.replace(/\n/g,"\n"+t):e,a&&(s+="\n"),'"""'+s.replace(/"""/g,'\\"""')+'"""'}function o(e){return Object(n["b"])(e,{leave:a})}var a={Name:function(e){return e.value},Variable:function(e){return"$"+e.name},Document:function(e){return u(e.definitions,"\n\n")+"\n"},OperationDefinition:function(e){var t=e.operation,r=e.name,n=l("(",u(e.variableDefinitions,", "),")"),i=u(e.directives," "),o=e.selectionSet;return r||i||n||"query"!==t?u([t,u([r,n]),i,o]," "):o},VariableDefinition:function(e){var t=e.variable,r=e.type,n=e.defaultValue,i=e.directives;return t+": "+r+l(" = ",n)+l(" ",u(i," "))},SelectionSet:function(e){var t=e.selections;return c(t)},Field:function(e){var t=e.alias,r=e.name,n=e.arguments,i=e.directives,o=e.selectionSet;return u([l("",t,": ")+r+l("(",u(n,", "),")"),u(i," "),o]," ")},Argument:function(e){var t=e.name,r=e.value;return t+": "+r},FragmentSpread:function(e){var t=e.name,r=e.directives;return"..."+t+l(" ",u(r," "))},InlineFragment:function(e){var t=e.typeCondition,r=e.directives,n=e.selectionSet;return u(["...",l("on ",t),u(r," "),n]," ")},FragmentDefinition:function(e){var t=e.name,r=e.typeCondition,n=e.variableDefinitions,i=e.directives,o=e.selectionSet;return"fragment ".concat(t).concat(l("(",u(n,", "),")")," ")+"on ".concat(r," ").concat(l("",u(i," ")," "))+o},IntValue:function(e){var t=e.value;return t},FloatValue:function(e){var t=e.value;return t},StringValue:function(e,t){var r=e.value,n=e.block;return n?i(r,"description"===t?"":" "):JSON.stringify(r)},BooleanValue:function(e){var t=e.value;return t?"true":"false"},NullValue:function(){return"null"},EnumValue:function(e){var t=e.value;return t},ListValue:function(e){var t=e.values;return"["+u(t,", ")+"]"},ObjectValue:function(e){var t=e.fields;return"{"+u(t,", ")+"}"},ObjectField:function(e){var t=e.name,r=e.value;return t+": "+r},Directive:function(e){var t=e.name,r=e.arguments;return"@"+t+l("(",u(r,", "),")")},NamedType:function(e){var t=e.name;return t},ListType:function(e){var t=e.type;return"["+t+"]"},NonNullType:function(e){var t=e.type;return t+"!"},SchemaDefinition:function(e){var t=e.directives,r=e.operationTypes;return u(["schema",u(t," "),c(r)]," ")},OperationTypeDefinition:function(e){var t=e.operation,r=e.type;return t+": "+r},ScalarTypeDefinition:s((function(e){var t=e.name,r=e.directives;return u(["scalar",t,u(r," ")]," ")})),ObjectTypeDefinition:s((function(e){var t=e.name,r=e.interfaces,n=e.directives,i=e.fields;return u(["type",t,l("implements ",u(r," & ")),u(n," "),c(i)]," ")})),FieldDefinition:s((function(e){var t=e.name,r=e.arguments,n=e.type,i=e.directives;return t+(p(r)?l("(\n",f(u(r,"\n")),"\n)"):l("(",u(r,", "),")"))+": "+n+l(" ",u(i," "))})),InputValueDefinition:s((function(e){var t=e.name,r=e.type,n=e.defaultValue,i=e.directives;return u([t+": "+r,l("= ",n),u(i," ")]," ")})),InterfaceTypeDefinition:s((function(e){var t=e.name,r=e.directives,n=e.fields;return u(["interface",t,u(r," "),c(n)]," ")})),UnionTypeDefinition:s((function(e){var t=e.name,r=e.directives,n=e.types;return u(["union",t,u(r," "),n&&0!==n.length?"= "+u(n," | "):""]," ")})),EnumTypeDefinition:s((function(e){var t=e.name,r=e.directives,n=e.values;return u(["enum",t,u(r," "),c(n)]," ")})),EnumValueDefinition:s((function(e){var t=e.name,r=e.directives;return u([t,u(r," ")]," ")})),InputObjectTypeDefinition:s((function(e){var t=e.name,r=e.directives,n=e.fields;return u(["input",t,u(r," "),c(n)]," ")})),DirectiveDefinition:s((function(e){var t=e.name,r=e.arguments,n=e.repeatable,i=e.locations;return"directive @"+t+(p(r)?l("(\n",f(u(r,"\n")),"\n)"):l("(",u(r,", "),")"))+(n?" repeatable":"")+" on "+u(i," | ")})),SchemaExtension:function(e){var t=e.directives,r=e.operationTypes;return u(["extend schema",u(t," "),c(r)]," ")},ScalarTypeExtension:function(e){var t=e.name,r=e.directives;return u(["extend scalar",t,u(r," ")]," ")},ObjectTypeExtension:function(e){var t=e.name,r=e.interfaces,n=e.directives,i=e.fields;return u(["extend type",t,l("implements ",u(r," & ")),u(n," "),c(i)]," ")},InterfaceTypeExtension:function(e){var t=e.name,r=e.directives,n=e.fields;return u(["extend interface",t,u(r," "),c(n)]," ")},UnionTypeExtension:function(e){var t=e.name,r=e.directives,n=e.types;return u(["extend union",t,u(r," "),n&&0!==n.length?"= "+u(n," | "):""]," ")},EnumTypeExtension:function(e){var t=e.name,r=e.directives,n=e.values;return u(["extend enum",t,u(r," "),c(n)]," ")},InputObjectTypeExtension:function(e){var t=e.name,r=e.directives,n=e.fields;return u(["extend input",t,u(r," "),c(n)]," ")}};function s(e){return function(t){return u([t.description,e(t)],"\n")}}function u(e,t){return e?e.filter((function(e){return e})).join(t||""):""}function c(e){return e&&0!==e.length?"{\n"+f(u(e,"\n"))+"\n}":""}function l(e,t,r){return t?e+t+(r||""):""}function f(e){return e&&" "+e.replace(/\n/g,"\n ")}function h(e){return-1!==e.indexOf("\n")}function p(e){return e&&e.some(h)}},"8d9b":function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WS_TIMEOUT=t.MIN_WS_TIMEOUT=void 0;var n=1e3;t.MIN_WS_TIMEOUT=n;var i=3e4;t.WS_TIMEOUT=i},"9ab4":function(e,t,r){"use strict";r.d(t,"c",(function(){return i})),r.d(t,"a",(function(){return o})),r.d(t,"e",(function(){return a})),r.d(t,"b",(function(){return s})),r.d(t,"d",(function(){return u})),r.d(t,"f",(function(){return c})); /*! ***************************************************************************** Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABLITY OR NON-INFRINGEMENT. See the Apache Version 2.0 License for specific language governing permissions and limitations under the License. ***************************************************************************** */ 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])},n(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;r0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]1,i=!1,o=arguments[1],a=o;return new r((function(r){return t.subscribe({next:function(t){var o=!i;if(i=!0,!o||n)try{a=e(a,t)}catch(s){return r.error(s)}else a=t},error:function(e){r.error(e)},complete:function(){if(!i&&!n)return r.error(new TypeError("Cannot reduce an empty sequence"));r.next(a),r.complete()}})}))}},{key:"concat",value:function(){for(var e=this,t=arguments.length,r=new Array(t),n=0;n=0&&i.splice(e,1),a()}});i.push(o)},error:function(e){n.error(e)},complete:function(){a()}});function a(){o.closed&&0===i.length&&n.complete()}return function(){i.forEach((function(e){return e.unsubscribe()})),o.unsubscribe()}}))}},{key:l,value:function(){return this}}],[{key:"from",value:function(t){var r="function"===typeof this?this:e;if(null==t)throw new TypeError(t+" is not an object");var n=h(t,l);if(n){var i=n.call(t);if(Object(i)!==i)throw new TypeError(i+" is not an object");return d(i)&&i.constructor===r?i:new r((function(e){return i.subscribe(e)}))}if(s("iterator")&&(n=h(t,c),n))return new r((function(e){y((function(){if(!e.closed){var r=!0,i=!1,o=void 0;try{for(var a,s=n.call(t)[Symbol.iterator]();!(r=(a=s.next()).done);r=!0){var u=a.value;if(e.next(u),e.closed)return}}catch(c){i=!0,o=c}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}e.complete()}}))}));if(Array.isArray(t))return new r((function(e){y((function(){if(!e.closed){for(var r=0;r>>3}function h(e){return i(e,17)^i(e,19)^e>>>10}t.ft_1=o,t.ch32=a,t.maj32=s,t.p32=u,t.s0_256=c,t.s1_256=l,t.g0_256=f,t.g1_256=h},ab1d:function(e,t,r){"use strict";r.d(t,"a",(function(){return s}));var n=Object.prototype,i=n.toString,o=n.hasOwnProperty,a=new Map;function s(e,t){try{return u(e,t)}finally{a.clear()}}function u(e,t){if(e===t)return!0;var r=i.call(e),n=i.call(t);if(r!==n)return!1;switch(r){case"[object Array]":if(e.length!==t.length)return!1;case"[object Object]":if(c(e,t))return!0;var a=Object.keys(e),s=Object.keys(t),l=a.length;if(l!==s.length)return!1;for(var f=0;f1&&void 0!==arguments[1]?arguments[1]:5,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return 0===t?Promise.reject(n):e().catch((function(n){return T(r).then((function(){return x(e,t-1,r,n)}))}))}function Q(e){return window.location.host.includes("localdev.net")||"https:"===window.location.protocol?"".concat(e,"s:"):e}var R,C=function(){return new Promise((function(e){switch(_){case"LOADED":e(E);break;case"LOADING":I.push((function(){return e(E)}));break;case"NO_TOKEN":I.push((function(){return e(E)})),_="LOADING",x((function(){return O["b"].getOddsApiToken()}),j,1e3).then((function(e){if(0!==e.data.errorCode)throw console.error("Failed to get odds API token:",e.data.message),console.log("Trace ID:",e.data.uid),new Error(e.data.message||"Failed to get odds API token");var t=e.data.result;_="LOADED",E=t,I.forEach((function(e){return e()}))})).catch((function(e){throw _="ERROR",console.error("get OddsApi token failed",e),window.location.href=Object(k["k"])(),e})).finally((function(){I.length=0}));break;case"ERROR":default:throw Error("GetOddsApiToken died")}}))},q="YplbcXy",D=function(e){return(n=n||Object(i["a"])(regeneratorRuntime.mark((function e(t){var r,n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return r="token",e.next=3,C();case 3:return n=e.sent,t.variables.query[r]=window.isUseTokenPrefix?q+n:n,e.abrupt("return",t);case 6:case"end":return e.stop()}}),e)})))).apply(this,arguments)},P=new l["a"]((function(e,t){return new f["a"]((function(r){var n;return Promise.resolve(e).then((function(e){return D(e)})).then((function(){n=t(e).subscribe({next:r.next.bind(r),error:r.error.bind(r),complete:r.complete.bind(r)})})).catch(r.error.bind(r)),function(){n&&n.unsubscribe()}}))})),N=Object(h["a"])((function(e){var t,r=e.graphQLErrors,n=e.operation,i=e.forward,o=null===(t=null===r||void 0===r?void 0:r[0])||void 0===t?void 0:t.message;switch(o){case"UNAUTHENTICATED":console.warn("UNAUTHENTICATED"),_="NO_TOKEN",E=null;break;case"BAD_ENCODE_INPUT":window.isUseTokenPrefix=!0;break;case"BAD_TOKEN_INPUT":window.isUseTokenPrefix=!1;break;default:break}return Object(l["e"])(D(n)).flatMap((function(){return i(n)}))})),A=(new l["a"]((function(e,t){var r=w["a"].getCurrentTransaction(),n=e.operationName;"OperationDefinition"===e.query.definitions[0].kind&&"Field"===e.query.definitions[0].selectionSet.selections[0].kind&&(n="".concat(n," ").concat(e.query.definitions[0].selectionSet.selections[0].name.value)),n="".concat(n," (/api)");var i="graphql";return r?"http-request"===r.type&&(r.type=i,r.name=n):r=w["a"].startTransaction(n,i,{managed:!0}),t(e)})),new v["a"]({delay:{initial:200,max:1e3,jitter:!0},attempts:{max:3}})),M=new AbortController,F=new p["a"]({uri:"".concat(Object(k["g"])(Q("http")),"/api"),fetchOptions:{signal:M.signal}}),L=new m["SubscriptionClient"]("".concat(Object(k["g"])(Q("ws")),"/ws"),{reconnect:!0});L.onConnected((function(){S["a"].commit("setIsWsConnected",!0)})),L.onReconnected((function(){S["a"].commit("setIsWsConnected",!0)})),L.onDisconnected((function(){S["a"].commit("setIsWsConnected",!1)})),R=new y["a"](L);var V=Object(l["f"])((function(e){var t=e.query,r=Object(b["l"])(t);return!("OperationDefinition"===r.kind&&"subscription"===r.operation)}),Object(l["c"])([F]),R),$=Object(d["a"])({useGETForHashedQueries:!0}),U=new c["a"]({link:Object(l["c"])([$,N,P,A,V]),cache:new u["a"],defaultOptions:{query:{fetchPolicy:"no-cache"},watchQuery:{fetchPolicy:"no-cache"}},connectToDevTools:!1}),G=new a["a"]({defaultClient:U}),B=function(){Object(s["y"])(o["DefaultApolloClient"],U)};function z(){E=null,_="NO_TOKEN",C()}},c0cc:function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));var n=r("9ab4"),i=r("d634"),o=r("633a"),a=function(e){function t(t){var r=e.call(this)||this;return t instanceof o["SubscriptionClient"]?r.subscriptionClient=t:r.subscriptionClient=new o["SubscriptionClient"](t.uri,t.options,t.webSocketImpl),r}return Object(n["c"])(t,e),t.prototype.request=function(e){return this.subscriptionClient.request(e)},t}(i["a"])},c3c0:function(e,t,r){"use strict";var n=r("da3e"),i=r("3fb5");function o(e,t){return 55296===(64512&e.charCodeAt(t))&&(!(t<0||t+1>=e.length)&&56320===(64512&e.charCodeAt(t+1)))}function a(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var r=[];if("string"===typeof e)if(t){if("hex"===t)for(e=e.replace(/[^a-z0-9]+/gi,""),e.length%2!==0&&(e="0"+e),i=0;i>6|192,r[n++]=63&a|128):o(e,i)?(a=65536+((1023&a)<<10)+(1023&e.charCodeAt(++i)),r[n++]=a>>18|240,r[n++]=a>>12&63|128,r[n++]=a>>6&63|128,r[n++]=63&a|128):(r[n++]=a>>12|224,r[n++]=a>>6&63|128,r[n++]=63&a|128)}else for(i=0;i>>24|e>>>8&65280|e<<8&16711680|(255&e)<<24;return t>>>0}function c(e,t){for(var r="",n=0;n>>0}return a}function p(e,t){for(var r=new Array(4*e.length),n=0,i=0;n>>24,r[i+1]=o>>>16&255,r[i+2]=o>>>8&255,r[i+3]=255&o):(r[i+3]=o>>>24,r[i+2]=o>>>16&255,r[i+1]=o>>>8&255,r[i]=255&o)}return r}function d(e,t){return e>>>t|e<<32-t}function v(e,t){return e<>>32-t}function y(e,t){return e+t>>>0}function b(e,t,r){return e+t+r>>>0}function m(e,t,r,n){return e+t+r+n>>>0}function g(e,t,r,n,i){return e+t+r+n+i>>>0}function O(e,t,r,n){var i=e[t],o=e[t+1],a=n+o>>>0,s=(a>>0,e[t+1]=a}function w(e,t,r,n){var i=t+n>>>0,o=(i>>0}function k(e,t,r,n){var i=t+n;return i>>>0}function S(e,t,r,n,i,o,a,s){var u=0,c=t;c=c+n>>>0,u+=c>>0,u+=c>>0,u+=c>>0}function j(e,t,r,n,i,o,a,s){var u=t+n+o+s;return u>>>0}function E(e,t,r,n,i,o,a,s,u,c){var l=0,f=t;f=f+n>>>0,l+=f>>0,l+=f>>0,l+=f>>0,l+=f>>0}function _(e,t,r,n,i,o,a,s,u,c){var l=t+n+o+s+c;return l>>>0}function I(e,t,r){var n=t<<32-r|e>>>r;return n>>>0}function T(e,t,r){var n=e<<32-r|t>>>r;return n>>>0}function x(e,t,r){return e>>>r}function Q(e,t,r){var n=e<<32-r|t>>>r;return n>>>0}t.inherits=i,t.toArray=a,t.toHex=s,t.htonl=u,t.toHex32=c,t.zero2=l,t.zero8=f,t.join32=h,t.split32=p,t.rotr32=d,t.rotl32=v,t.sum32=y,t.sum32_3=b,t.sum32_4=m,t.sum32_5=g,t.sum64=O,t.sum64_hi=w,t.sum64_lo=k,t.sum64_4_hi=S,t.sum64_4_lo=j,t.sum64_5_hi=E,t.sum64_5_lo=_,t.rotr64_hi=I,t.rotr64_lo=T,t.shr64_hi=x,t.shr64_lo=Q},ca20:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GRAPHQL_SUBSCRIPTIONS=t.GRAPHQL_WS=void 0;var n="graphql-ws";t.GRAPHQL_WS=n;var i="graphql-subscriptions";t.GRAPHQL_SUBSCRIPTIONS=i},d634:function(e,t,r){"use strict";r.d(t,"a",(function(){return O})),r.d(t,"b",(function(){return w})),r.d(t,"c",(function(){return b})),r.d(t,"d",(function(){return l})),r.d(t,"e",(function(){return c})),r.d(t,"f",(function(){return m}));var n=r("6f47"),i=r("a957"),o=r("9ab4"),a=r("4518");function s(e){for(var t=["query","operationName","variables","extensions","context"],r=0,n=Object.keys(e);r=this._delta8){e=this.pending;var r=e.length%this._delta8;this.pending=e.slice(e.length-r,e.length),0===this.pending.length&&(this.pending=null),e=n.join32(e,0,e.length-r,this.endian);for(var i=0;i>>24&255,n[i++]=e>>>16&255,n[i++]=e>>>8&255,n[i++]=255&e}else for(n[i++]=255&e,n[i++]=e>>>8&255,n[i++]=e>>>16&255,n[i++]=e>>>24&255,n[i++]=0,n[i++]=0,n[i++]=0,n[i++]=0,o=8;o