PageSourceSearch

https://course.boatsafeonline.com/_next/static/chunks/613-28b554bbf0058d2d.js

js boatsafeonline.com collected 2026-10-09 02:49:11 UTC 120,183 bytes, 2 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[613],{84807:function(e,t,r){"use strict";r.d(t,{BX:function(){return ut}});var n=r(44194),i=r(33569),o=r(21553),s="Invariant Violation",a=Object.setPrototypeOf,u=void 0===a?function(e,t){return e.__proto__=t,e}:a,c=function(e){function t(r){void 0===r&&(r=s);var n=e.call(this,"number"===typeof r?s+": "+r+" (see https://github.com/apollographql/invariant-packages)":r)||this;return n.framesToPop=1,n.name=s,u(n,t.prototype),n}return(0,i.ZT)(t,e),t}(Error);function l(e,t){if(!e)throw new c(t)}function p(e){return function(){return console[e].apply(console,arguments)}}!function(e){e.warn=p("warn"),e.error=p("error")}(l||(l={}));var f={env:{}};if("object"===typeof o)f=o;else try{Function("stub","process = stub")(f)}catch(ct){}var h;function v(){return h||(h=n.createContext({})),h}var d;!function(e){e[e.Query=0]="Query",e[e.Mutation=1]="Mutation",e[e.Subscription=2]="Subscription"}(d||(d={}));var y=new Map;function b(e){var t;switch(e){case d.Query:t="Query";break;case d.Mutation:t="Mutation";break;case d.Subscription:t="Subscription"}return t}function m(e){var t,r,n=y.get(e);if(n)return n;l(!!e&&!!e.kind,1);var i=e.definitions.filter((function(e){return"FragmentDefinition"===e.kind})),o=e.definitions.filter((function(e){return"OperationDefinition"===e.kind&&"query"===e.operation})),s=e.definitions.filter((function(e){return"OperationDefinition"===e.kind&&"mutation"===e.operation})),a=e.definitions.filter((function(e){return"OperationDefinition"===e.kind&&"subscription"===e.operation}));l(!i.length||o.length||s.length||a.length,2),l(o.length+s.length+a.length<=1,3),r=o.length?d.Query:d.Mutation,o.length||s.length||(r=d.Subscription);var u=o.length?o:s.length?s:a;l(1===u.length,4);var c=u[0];t=c.variableDefinitions||[];var p={name:c.name&&"Name"===c.name.kind?c.name.value:"data",type:r,variables:t};return y.set(e,p),p}var g=r(10063),E=r.n(g),O=r(21834),k=r(20606),S={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:["description","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","interfaces","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","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]},w=Object.freeze({});function T(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:S,n=void 0,i=Array.isArray(e),o=[e],s=-1,a=[],u=void 0,c=void 0,l=void 0,p=[],f=[],h=e;do{var v=++s===o.length,d=v&&0!==a.length;if(v){if(c=0===f.length?void 0:p[p.length-1],u=l,l=f.pop(),d){if(i)u=u.slice();else{for(var y={},b=0,m=Object.keys(u);b<m.length;b++){var g=m[b];y[g]=u[g]}u=y}for(var E=0,T=0;T<a.length;T++){var N=a[T][0],R=a[T][1];i&&(N-=E),i&&null===R?(u.splice(N,1),E++):u[N]=R}}s=n.index,o=n.keys,a=n.edits,i=n.inArray,n=n.prev}else{if(c=l?i?s:o[s]:void 0,null===(u=l?l[c]:h)||void 0===u)continue;l&&p.push(c)}var x,D=void 0;if(!Array.isArray(u)){if(!(0,k.UG)(u))throw new Error("Invalid AST Node: ".concat((0,O.Z)(u),"."));var _=I(t,u.kind,v);if(_){if((D=_.call(t,u,c,l,p,f))===w)break;
1if(!1===D){if(!v){p.pop();continue}}else if(void 0!==D&&(a.push([c,D]),!v)){if(!(0,k.UG)(D)){p.pop();continue}u=D}}}if(void 0===D&&d&&a.push([c,u]),v)p.pop();else n={inArray:i,index:s,keys:o,edits:a,prev:n},o=(i=Array.isArray(u))?u:null!==(x=r[u.kind])&&void 0!==x?x:[],s=-1,a=[],l&&f.push(l),l=u}while(void 0!==n);return 0!==a.length&&(h=a[a.length-1][1]),h}function I(e,t,r){var n=e[t];if(n){if(!r&&"function"===typeof n)return n;var i=r?n.leave:n.enter;if("function"===typeof i)return i}else{var o=r?e.leave:e.enter;if(o){if("function"===typeof o)return o;var s=o[t];if("function"===typeof s)return s}}}r(75687);var N=Object.prototype,R=N.toString,x=N.hasOwnProperty,D=new Map;function _(e,t){try{return Q(e,t)}finally{D.clear()}}function Q(e,t){if(e===t)return!0;var r=R.call(e);if(r!==R.call(t))return!1;switch(r){case"[object Array]":if(e.length!==t.length)return!1;case"[object Object]":if(A(e,t))return!0;var n=Object.keys(e),i=Object.keys(t),o=n.length;if(o!==i.length)return!1;for(var s=0;s<o;++s)if(!x.call(t,n[s]))return!1;for(s=0;s<o;++s){var a=n[s];if(!Q(e[a],t[a]))return!1}return!0;case"[object Error]":return e.name===t.name&&e.message===t.message;case"[object Number]":if(e!==e)return t!==t;case"[object Boolean]":case"[object Date]":return+e===+t;case"[object RegExp]":case"[object String]":return e==""+t;case"[object Map]":case"[object Set]":if(e.size!==t.size)return!1;if(A(e,t))return!0;for(var u=e.entries(),c="[object Map]"===r;;){var l=u.next();if(l.done)break;var p=l.value,f=p[0],h=p[1];if(!t.has(f))return!1;if(c&&!Q(h,t.get(f)))return!1}return!0}return!1}function A(e,t){var r=D.get(e);if(r){if(r.has(t))return!0}else D.set(e,r=new Set);return r.add(t),!1}r(21553);function C(e,t,r,n){if(function(e){return"IntValue"===e.kind}(r)||function(e){return"FloatValue"===e.kind}(r))e[t.value]=Number(r.value);else if(function(e){return"BooleanValue"===e.kind}(r)||function(e){return"StringValue"===e.kind}(r))e[t.value]=r.value;else if(function(e){return"ObjectValue"===e.kind}(r)){var i={};r.fields.map((function(e){return C(i,e.name,e.value,n)})),e[t.value]=i}else if(function(e){return"Variable"===e.kind}(r)){var o=(n||{})[r.name.value];e[t.value]=o}else if(function(e){return"ListValue"===e.kind}(r))e[t.value]=r.values.map((function(e){var r={};return C(r,t,e,n),r[t.value]}));else if(function(e){return"EnumValue"===e.kind}(r))e[t.value]=r.value;else{if(!function(e){return"NullValue"===e.kind}(r))throw new c(17);e[t.value]=null}}function q(e,t){if(e.arguments&&e.arguments.length){var r={};return e.arguments.forEach((function(e){var n=e.name,i=e.value;return C(r,n,i,t)})),r}return null}function M(e){return e.alias?e.alias.value:e.name.value}function P(e){return"Field"===e.kind}function F(e){return"InlineFragment"===e.kind}function L(e,t){return void 0===t&&(t={}),(r=e.directives,r?r.filter(U).map((function(e){var t=e.arguments;e.name.value,l(t&&1===t.length,14);var r=t[0];l(r.name&&"if"===r.name.value,15);var n=r.value;return l(n&&("Variable"===n.kind||"BooleanValue"===n.kind),16),{directive:e,ifArgument:r}})):[]).every((function(e){var r=e.directive,n=e.ifArgument,i=!1;return"Variable"===n.value.kind?l(void 0!==(i=t[n.value.name.value]),13):i=n.value.value,"skip"===r.name.value?!i:i}));var r}function j(e,t){return function(e){var t=[];return T(e,{Directive:function(e){t.push(e.name.value)}}),t}(t).some((function(t){return e.indexOf(t)>-1}))}function V(e){return e&&j(["client"],e)&&j(["export"],e)}function U(e){var t=e.name.value;return"skip"===t||"include"===t}function B(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return t.forEach((function(t){"undefined"!==typeof t&&null!==t&&Object.keys(t).forEach((function(r){e[r]=t[r]}))})),e}function G(e){return l(e&&"Document"===e.kind,2),l(e.definitions.filter((function(e){return"FragmentDefinition"!==e.kind})).map((function(e){if("OperationDefinition"!==e.kind)throw new c(3);return e})).length<=1,4),e}function K(e){return G(e),e.definitions.filter((function(e){return"OperationDefinition"===e.kind}))[0]}function W(e){return e.definitions.filter((function(e){return"OperationDefinition"===e.kind&&e.name})).map((function(e){return e.name.value}))[0]||null}function z(e){return e.definitions.filter((function(e){return"FragmentDefinition"===e.kind}))}function J(e){var t;G(e);for(var r=0,n=e.definitions;r<n.length;r++){var i=n[r];if("OperationDefinition"===i.kind){var o=i.operation;if("query"===o||"mutation"===o||"subscription"===o)return i}"FragmentDefinition"!==i.kind||t||(t=i)}if(t)return t;throw new c(10)}function Y(e){void 0===e&&(e=[]);var t={};return e.forEach((function(e){t[e.name.value]=e})),t}function Z(e){if(e&&e.variableDefinitions&&e.variableDefinitions.length){var t=e.variableDefinitions.filter((function(e){return e.defaultValue})).map((function(e){var t=e.variable,r=e.defaultValue,n={};
1return C(n,t.name,r),n}));return B.apply(void 0,(0,i.pr)([{}],t))}return{}}function X(e,t,r){var n=0;return e.forEach((function(r,i){t.call(this,r,i,e)&&(e[n++]=r)}),r),e.length=n,e}function H(e,t){return e.selectionSet.selections.every((function(e){return"FragmentSpread"===e.kind&&H(t[e.name.value],t)}))}function $(e){return H(K(e)||function(e){l("Document"===e.kind,7),l(e.definitions.length<=1,8);var t=e.definitions[0];return l("FragmentDefinition"===t.kind,9),t}(e),Y(z(e)))?null:e}function ee(e){return function(t){return e.some((function(e){return e.name&&e.name===t.name.value||e.test&&e.test(t)}))}}function te(e,t){var r=Object.create(null),n=[],o=Object.create(null),s=[],a=$(T(t,{Variable:{enter:function(e,t,n){"VariableDefinition"!==n.kind&&(r[e.name.value]=!0)}},Field:{enter:function(t){if(e&&t.directives&&(e.some((function(e){return e.remove}))&&t.directives&&t.directives.some(ee(e))))return t.arguments&&t.arguments.forEach((function(e){"Variable"===e.value.kind&&n.push({name:e.value.name.value})})),t.selectionSet&&ne(t.selectionSet).forEach((function(e){s.push({name:e.name.value})})),null}},FragmentSpread:{enter:function(e){o[e.name.value]=!0}},Directive:{enter:function(t){if(ee(e)(t))return null}}}));return a&&X(n,(function(e){return!r[e.name]})).length&&(a=function(e,t){var r=function(e){return function(t){return e.some((function(e){return t.value&&"Variable"===t.value.kind&&t.value.name&&(e.name===t.value.name.value||e.test&&e.test(t))}))}}(e);return $(T(t,{OperationDefinition:{enter:function(t){return(0,i.pi)((0,i.pi)({},t),{variableDefinitions:t.variableDefinitions.filter((function(t){return!e.some((function(e){return e.name===t.variable.name.value}))}))})}},Field:{enter:function(t){if(e.some((function(e){return e.remove}))){var n=0;if(t.arguments.forEach((function(e){r(e)&&(n+=1)})),1===n)return null}}},Argument:{enter:function(e){if(r(e))return null}}}))}(n,a)),a&&X(s,(function(e){return!o[e.name]})).length&&(a=function(e,t){function r(t){if(e.some((function(e){return e.name===t.name.value})))return null}return $(T(t,{FragmentSpread:{enter:r},FragmentDefinition:{enter:r}}))}(s,a)),a}var re={test:function(e){var t="connection"===e.name.value;return t&&(!e.arguments||e.arguments.some((function(e){return"key"===e.name.value}))),t}};function ne(e){var t=[];return e.selections.forEach((function(e){(P(e)||F(e))&&e.selectionSet?ne(e.selectionSet).forEach((function(e){return t.push(e)})):"FragmentSpread"===e.kind&&t.push(e)})),t}function ie(e){return"query"===J(e).operation?e:T(e,{OperationDefinition:{enter:function(e){return(0,i.pi)((0,i.pi)({},e),{operation:"query"})}}})}var oe="function"===typeof WeakMap&&!("object"===typeof navigator&&"ReactNative"===navigator.product),se=Object.prototype.toString;function ae(e){return ue(e,new Map)}function ue(e,t){switch(se.call(e)){case"[object Array]":if(t.has(e))return t.get(e);var r=e.slice(0);return t.set(e,r),r.forEach((function(e,n){r[n]=ue(e,t)})),r;case"[object Object]":if(t.has(e))return t.get(e);var n=Object.create(Object.getPrototypeOf(e));return t.set(e,n),Object.keys(e).forEach((function(r){n[r]=ue(e[r],t)})),n;default:return e}}function ce(e){try{return e()}catch(t){console.error&&console.error(t)}}function le(e){return e.errors&&e.errors.length}var pe=Object.prototype.hasOwnProperty;function fe(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return he(e)}function he(e){var t=e[0]||{},r=e.length;if(r>1){var n=[];t=ye(t,n);for(var i=1;i<r;++i)t=de(t,e[i],n)}return t}function ve(e){return null!==e&&"object"===typeof e}function de(e,t,r){return ve(t)&&ve(e)?(Object.isExtensible&&!Object.isExtensible(e)&&(e=ye(e,r)),Object.keys(t).forEach((function(n){var i=t[n];if(pe.call(e,n)){var o=e[n];i!==o&&(e[n]=de(ye(o,r),i,r))}else e[n]=i})),e):t}function ye(e,t){return null!==e&&"object"===typeof e&&t.indexOf(e)<0&&(e=Array.isArray(e)?e.slice(0):(0,i.pi)({__proto__:Object.getPrototypeOf(e)},e),t.push(e)),e}Object.create({});var be=r(61100),me=r.n(be)();!function(e){function t(t,r){var n=e.call(this,t)||this;return n.link=r,n}(0,i.ZT)(t,e)}(Error);function ge(e){return e.request.length<=1}function Ee(e,t){var r=(0,i.pi)({},e);return Object.defineProperty(t,"setContext",{enumerable:!1,value:function(e){r="function"===typeof e?(0,i.pi)({},r,e(r)):(0,i.pi)({},r,e)}}),Object.defineProperty(t,"getContext",{enumerable:!1,value:function(){return(0,i.pi)({},r)}}),Object.defineProperty(t,"toKey",{enumerable:!1,value:function(){return function(e){var t=e.query,r=e.variables,n=e.operationName;return JSON.stringify([n,t,r])}(t)}}),t}function Oe(e,t){return t?t(e):me.of()}function ke(e){return"function"===typeof e?new Ne(e):e}function Se(){return new Ne((function(){return me.of()}))}function we(e){return 0===e.length?Se():e.map(ke).reduce((function(e,t){return e.concat(t)}))}function Te(e,t,r){var n=ke(t),i=ke(r||new Ne(Oe));return ge(n)&&ge(i)?new Ne((function(t){return e(t)?n.request(t)||me.of():i.request(t)||me.of()})):new Ne((function(t,r){return e(t)?n.request(t,r)||me.of():i.request(t,r)||me.of()}))}var Ie=function(e,t){var r=ke(e);if(ge(r))return r;var n=ke(t);return ge(n)?new Ne((function(e){return r.request(e,(function(e){return n.request(e)||me.of()}))||me.of()})):new Ne((function(e,t){return r.request(e,(function(e){return n.request(e,t)||me.of()}))||me.of()}))},Ne=function(){function e(e){e&&(this.request=e)}return e.prototype.split=function(t,r,n){return this.concat(Te(t,r,n||new e(Oe)))},e.prototype.concat=function(e){return Ie(this,e)},e.prototype.request=function(e,t){throw new c(1)},e.empty=Se,e.from=we,e.split=Te,e.execute=Re,e}();function Re(e,t){return e.request(Ee(t.context,function(e){var t={variables:e.variables||{},extensions:e.extensions||{},operationName:e.operationName,query:e.query};return t.operationName||(t.operationName="string"!==typeof t.query?W(t.query):""),t}(function(e){for(var t=["query","operationName","variables","extensions","context"],r=0,n=Object.keys(e);r<n.length;r++){var i=n[r];if(t.indexOf(i)<0)throw new c(2)}return e}(t))))||me.of()}var xe,De=r(53915);function _e(e){return e<7}!function(e){e[e.loading=1]="loading",e[e.setVariables=2]="setVariables",e[e.fetchMore=3]="fetchMore",e[e.refetch=4]="refetch",e[e.poll=6]="poll",e[e.ready=7]="ready",e[e.error=8]="error"}(xe||(xe={}));var Qe=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,i.ZT)(t,e),t.prototype[De.Z]=function(){return this},t.prototype["@@observable"]=function(){return this},t}(me);function Ae(e){return Array.isArray(e)&&e.length>0}var Ce,qe=function(e){function t(r){var n=r.graphQLErrors,i=r.networkError,o=r.errorMessage,s=r.extraInfo,a=e.call(this,o)||this;return a.graphQLErrors=n||[],a.networkError=i||null,a.message=o||function(e){var t="";
1return Ae(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$/,"")}(a),a.extraInfo=s,a.__proto__=t.prototype,a}return(0,i.ZT)(t,e),t}(Error);!function(e){e[e.normal=1]="normal",e[e.refetch=2]="refetch",e[e.poll=3]="poll"}(Ce||(Ce={}));var Me=function(e){function t(t){var r=t.queryManager,n=t.options,i=t.shouldSubscribe,o=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=o;var a=K(n.query);return s.queryName=a&&a.name&&a.name.value,s.queryManager=r,s}return(0,i.ZT)(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:xe.error}}var t,r,n,o=this.queryManager.getCurrentQueryResult(this),s=o.data,a=o.partial,u=this.queryManager.queryStore.get(this.queryId),c=this.options.fetchPolicy,l="network-only"===c||"no-cache"===c;if(u){var p=u.networkStatus;if(r=u,void 0===(n=this.options.errorPolicy)&&(n="none"),r&&(r.networkError||"none"===n&&Ae(r.graphQLErrors)))return{data:void 0,loading:!1,networkStatus:p,error:new qe({graphQLErrors:u.graphQLErrors,networkError:u.networkError})};u.variables&&(this.options.variables=(0,i.pi)((0,i.pi)({},this.options.variables),u.variables),this.variables=this.options.variables),t={data:s,loading:_e(p),networkStatus:p},u.graphQLErrors&&"all"===this.options.errorPolicy&&(t.errors=u.graphQLErrors)}else{var f=l||a&&"cache-only"!==c;t={data:s,loading:f,networkStatus:f?xe.loading:xe.ready}}return a||this.updateLastResult((0,i.pi)((0,i.pi)({},t),{stale:!1})),(0,i.pi)((0,i.pi)({},t),{partial:a})},t.prototype.isDifferentFromLastResult=function(e){var t=this.lastResultSnapshot;return!(t&&e&&t.networkStatus===e.networkStatus&&t.stale===e.stale&&_(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 c(1)):("no-cache"!==t&&"cache-and-network"!==t&&(t="network-only"),_(this.variables,e)||(this.variables=(0,i.pi)((0,i.pi)({},this.variables),e)),_(this.options.variables,this.variables)||(this.options.variables=(0,i.pi)((0,i.pi)({},this.options.variables),this.variables)),this.queryManager.fetchQuery(this.queryId,(0,i.pi)((0,i.pi)({},this.options),{fetchPolicy:t}),Ce.refetch))},t.prototype.fetchMore=function(e){var t=this;l(e.updateQuery,2);var r=(0,i.pi)((0,i.pi)({},e.query?e:(0,i.pi)((0,i.pi)((0,i.pi)({},this.options),e),{variables:(0,i.pi)((0,i.pi)({},this.variables),e.variables)})),{fetchPolicy:"network-only"}),n=this.queryManager.generateQueryId();return this.queryManager.fetchQuery(n,r,Ce.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=(0,i.pi)((0,i.pi)({},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&&_(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,o=r.document,s=ce((function(){return e(n,{variables:i})}));s&&(t.dataStore.markUpdateQueryResult(o,i,s),t.broadcastQueries())},t.prototype.stopPolling=function(){this.queryManager.stopPollingQuery(this.queryId),this.options.pollInterval=void 0},t.prototype.startPolling=function(e){Le(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:ae(e),t},t.prototype.onSubscribe=function(e){var t=this;try{var r=e._subscription._observer;r&&!r.error&&(r.error=Pe)}catch(a){}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.queryManager,r=this.queryId;this.shouldSubscribe&&t.addObservableQuery(r,this),this.options.pollInterval&&(Le(this),t.startPollingQuery(this.options,r));var n=function(t){e.updateLastResult((0,i.pi)((0,i.pi)({},e.lastResult),{errors:t.graphQLErrors,networkStatus:xe.error,loading:!1})),Fe(e.observers,"error",e.lastError=t)};t.observeQuery(r,this.options,{next:function(r){if(e.lastError||e.isDifferentFromLastResult(r)){var n=e.updateLastResult(r),i=e.options,o=i.query,s=i.variables,a=i.fetchPolicy;t.transform(o).hasClientExports?t.getLocalState().addExportedVariables(o,s).then((function(i){var s=e.variables;
1e.variables=e.options.variables=i,!r.loading&&n&&"cache-only"!==a&&t.transform(o).serverQuery&&!_(s,i)?e.refetch():Fe(e.observers,"next",r)})):Fe(e.observers,"next",r)}},error:n}).catch(n)},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}(Qe);function Pe(e){}function Fe(e,t,r){var n=[];e.forEach((function(e){return e[t]&&n.push(e)})),n.forEach((function(e){return e[t](r)}))}function Le(e){var t=e.options.fetchPolicy;l("cache-first"!==t&&"cache-only"!==t,3)}var je=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}(),Ve=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];l(!t||t.document===e.document||_(t.document,e.document),19);var r,n=!1,i=null;e.storePreviousVariables&&t&&t.networkStatus!==xe.loading&&(_(t.variables,e.variables)||(n=!0,i=t.variables)),r=n?xe.setVariables:e.isPoll?xe.poll:e.isRefetch?xe.refetch:xe.loading;var o=[];t&&t.graphQLErrors&&(o=t.graphQLErrors),this.store[e.queryId]={document:e.document,variables:e.variables,previousVariables:i,networkError:null,graphQLErrors:o,networkStatus:r,metadata:e.metadata},"string"===typeof e.fetchMoreForQueryId&&this.store[e.fetchMoreForQueryId]&&(this.store[e.fetchMoreForQueryId].networkStatus=xe.fetchMore)},e.prototype.markQueryResult=function(e,t,r){this.store&&this.store[e]&&(this.store[e].networkError=null,this.store[e].graphQLErrors=Ae(t.errors)?t.errors:[],this.store[e].previousVariables=null,this.store[e].networkStatus=xe.ready,"string"===typeof r&&this.store[r]&&(this.store[r].networkStatus=xe.ready))},e.prototype.markQueryError=function(e,t,r){this.store&&this.store[e]&&(this.store[e].networkError=t,this.store[e].networkStatus=xe.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=xe.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=xe.loading}))},e}();var Ue=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=fe(t.resolvers,e)})):this.resolvers=fe(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,s=e.onlyRunForcedResolvers,a=void 0!==s&&s;return(0,i.mG)(this,void 0,void 0,(function(){return(0,i.Jh)(this,(function(e){return t?[2,this.resolveDocument(t,r.data,n,o,this.fragmentMatcher,a).then((function(e){return(0,i.pi)((0,i.pi)({},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 j(["client"],e)&&this.resolvers?e:null},e.prototype.serverQuery=function(e){return this.resolvers?function(e){G(e);var t=te([{test:function(e){return"client"===e.name.value},remove:!0}],e);return t&&(t=T(t,{FragmentDefinition:{enter:function(e){if(e.selectionSet&&e.selectionSet.selections.every((function(e){return P(e)&&"__typename"===e.name.value})))return null}}})),t}(e):e},e.prototype.prepareContext=function(e){void 0===e&&(e={});var t=this.cache;return(0,i.pi)((0,i.pi)({},e),{cache:t,getCacheKey:function(e){if(t.config)return t.config.dataIdFromObject(e);
1l(!1,6)}})},e.prototype.addExportedVariables=function(e,t,r){return void 0===t&&(t={}),void 0===r&&(r={}),(0,i.mG)(this,void 0,void 0,(function(){return(0,i.Jh)(this,(function(n){return e?[2,this.resolveDocument(e,this.buildRootValueFromCache(e,t)||{},this.prepareContext(r),t).then((function(e){return(0,i.pi)((0,i.pi)({},t),e.exportedVariables)}))]:[2,(0,i.pi)({},t)]}))}))},e.prototype.shouldForceResolvers=function(e){var t=!1;return T(e,{Directive:{enter:function(e){if("client"===e.name.value&&e.arguments&&(t=e.arguments.some((function(e){return"always"===e.name.value&&"BooleanValue"===e.value.kind&&!0===e.value.value}))))return w}}}),t},e.prototype.buildRootValueFromCache=function(e,t){return this.cache.diff({query:ie(e),variables:t,returnPartialData:!0,optimistic:!1}).result},e.prototype.resolveDocument=function(e,t,r,n,o,s){return void 0===r&&(r={}),void 0===n&&(n={}),void 0===o&&(o=function(){return!0}),void 0===s&&(s=!1),(0,i.mG)(this,void 0,void 0,(function(){var a,u,c,l,p,f,h,v,d;return(0,i.Jh)(this,(function(y){var b;return a=J(e),u=z(e),c=Y(u),l=a.operation,p=l?(b=l).charAt(0).toUpperCase()+b.slice(1):"Query",h=(f=this).cache,v=f.client,d={fragmentMap:c,context:(0,i.pi)((0,i.pi)({},r),{cache:h,client:v}),variables:n,fragmentMatcher:o,defaultOperationType:p,exportedVariables:{},onlyRunForcedResolvers:s},[2,this.resolveSelectionSet(a.selectionSet,t,d).then((function(e){return{result:e,exportedVariables:d.exportedVariables}}))]}))}))},e.prototype.resolveSelectionSet=function(e,t,r){return(0,i.mG)(this,void 0,void 0,(function(){var n,o,s,a,u,c=this;return(0,i.Jh)(this,(function(p){return n=r.fragmentMap,o=r.context,s=r.variables,a=[t],u=function(e){return(0,i.mG)(c,void 0,void 0,(function(){var u,c;return(0,i.Jh)(this,(function(i){return L(e,s)?P(e)?[2,this.resolveField(e,t,r).then((function(t){var r;"undefined"!==typeof t&&a.push(((r={})[M(e)]=t,r))}))]:(F(e)?u=e:l(u=n[e.name.value],7),u&&u.typeCondition&&(c=u.typeCondition.name.value,r.fragmentMatcher(t,c,o))?[2,this.resolveSelectionSet(u.selectionSet,t,r).then((function(e){a.push(e)}))]:[2]):[2]}))}))},[2,Promise.all(e.selections.map(u)).then((function(){return he(a)}))]}))}))},e.prototype.resolveField=function(e,t,r){return(0,i.mG)(this,void 0,void 0,(function(){var n,o,s,a,u,c,l,p,f,h=this;return(0,i.Jh)(this,(function(i){return n=r.variables,o=e.name.value,s=M(e),a=o!==s,u=t[s]||t[o],c=Promise.resolve(u),r.onlyRunForcedResolvers&&!this.shouldForceResolvers(e)||(l=t.__typename||r.defaultOperationType,(p=this.resolvers&&this.resolvers[l])&&(f=p[a?o:s])&&(c=Promise.resolve(f(t,q(e,n),r.context,{field:e,fragmentMap:r.fragmentMap})))),[2,c.then((function(t){return void 0===t&&(t=u),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)?h.resolveSubSelectedArray(e,t,r):e.selectionSet?h.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 Be(e){var t=new Set,r=null;return new Qe((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)}}))}var Ge=Object.prototype.hasOwnProperty,Ke=function(){function e(e){var t=e.link,r=e.queryDeduplication,n=void 0!==r&&r,i=e.store,o=e.onBroadcast,s=void 0===o?function(){}:o,a=e.ssrMode,u=void 0!==a&&a,c=e.clientAwareness,l=void 0===c?{}:c,p=e.localState,f=e.assumeImmutableResults;this.mutationStore=new je,this.queryStore=new Ve,this.clientAwareness={},this.idCounter=1,this.queries=new Map,this.fetchQueryRejectFns=new Map,this.transformCache=new(oe?WeakMap:Map),this.inFlightLinkObservables=new Map,this.pollingInfoByQueryId=new Map,this.link=t,this.queryDeduplication=n,this.dataStore=i,this.onBroadcast=s,this.clientAwareness=l,this.localState=p||new Ue({cache:i.getCache()}),this.ssrMode=u,this.assumeImmutableResults=!!f}return e.prototype.stop=function(){var e=this;
1this.queries.forEach((function(t,r){e.stopQueryNoBroadcast(r)})),this.fetchQueryRejectFns.forEach((function(e){e(new c(8))}))},e.prototype.mutate=function(e){var t=e.mutation,r=e.variables,n=e.optimisticResponse,o=e.updateQueries,s=e.refetchQueries,a=void 0===s?[]:s,u=e.awaitRefetchQueries,c=void 0!==u&&u,p=e.update,f=e.errorPolicy,h=void 0===f?"none":f,v=e.fetchPolicy,d=e.context,y=void 0===d?{}:d;return(0,i.mG)(this,void 0,void 0,(function(){var e,s,u,f=this;return(0,i.Jh)(this,(function(d){switch(d.label){case 0:return l(t,9),l(!v||"no-cache"===v,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,y)]:[3,2];case 1:r=d.sent(),d.label=2;case 2:return s=function(){var e={};return o&&f.queries.forEach((function(t,r){var n=t.observableQuery;if(n){var i=n.queryName;i&&Ge.call(o,i)&&(e[r]={updater:o[i],query:f.queryStore.get(r)})}})),e},this.mutationStore.initMutation(e,t,r),this.dataStore.markMutationInit({mutationId:e,document:t,variables:r,updateQueries:s(),update:p,optimisticResponse:n}),this.broadcastQueries(),u=this,[2,new Promise((function(o,l){var f,d;u.getObservableFromLink(t,(0,i.pi)((0,i.pi)({},y),{optimisticResponse:n}),r,!1).subscribe({next:function(n){le(n)&&"none"===h?d=new qe({graphQLErrors:n.errors}):(u.mutationStore.markMutationResult(e),"no-cache"!==v&&u.dataStore.markMutationResult({mutationId:e,result:n,document:t,variables:r,updateQueries:s(),update:p}),f=n)},error:function(t){u.mutationStore.markMutationError(e,t),u.dataStore.markMutationComplete({mutationId:e,optimisticResponse:n}),u.broadcastQueries(),u.setQuery(e,(function(){return{document:null}})),l(new qe({networkError:t}))},complete:function(){if(d&&u.mutationStore.markMutationError(e,d),u.dataStore.markMutationComplete({mutationId:e,optimisticResponse:n}),u.broadcastQueries(),d)l(d);else{"function"===typeof a&&(a=a(f));var t=[];Ae(a)&&a.forEach((function(e){if("string"===typeof e)u.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(u.query(r))}})),Promise.all(c?t:[]).then((function(){u.setQuery(e,(function(){return{document:null}})),"ignore"===h&&f&&le(f)&&delete f.errors,o(f)}))}}})}))]}}))}))},e.prototype.fetchQuery=function(e,t,r,n){return(0,i.mG)(this,void 0,void 0,(function(){var o,s,a,u,c,l,p,f,h,v,d,y,b,m,g,E,O,k,S=this;return(0,i.Jh)(this,(function(w){switch(w.label){case 0:return o=t.metadata,s=void 0===o?null:o,a=t.fetchPolicy,u=void 0===a?"cache-first":a,c=t.context,l=void 0===c?{}:c,p=this.transform(t.query).document,f=this.getVariables(p,t.variables),this.transform(p).hasClientExports?[4,this.localState.addExportedVariables(p,f,l)]:[3,2];case 1:f=w.sent(),w.label=2;case 2:if(t=(0,i.pi)((0,i.pi)({},t),{variables:f}),d=v="network-only"===u||"no-cache"===u,v||(y=this.dataStore.getCache().diff({query:p,variables:f,returnPartialData:!0,optimistic:!1}),b=y.complete,m=y.result,d=!b||"cache-and-network"===u,h=m),g=d&&"cache-only"!==u&&"standby"!==u,j(["live"],p)&&(g=!0),E=this.idCounter++,O="no-cache"!==u?this.updateQueryWatch(e,p,t):void 0,this.setQuery(e,(function(){return{document:p,lastRequestId:E,invalidated:!0,cancel:O}})),this.invalidate(n),this.queryStore.initQuery({queryId:e,document:p,storePreviousVariables:g,variables:f,isPoll:r===Ce.poll,isRefetch:r===Ce.refetch,metadata:s,fetchMoreForQueryId:n}),this.broadcastQueries(),g){if(k=this.fetchRequest({requestId:E,queryId:e,document:p,options:t,fetchMoreForQueryId:n}).catch((function(t){throw t.hasOwnProperty("graphQLErrors")?t:(E>=S.getQuery(e).lastRequestId&&(S.queryStore.markQueryError(e,t,n),S.invalidate(e),S.invalidate(n),S.broadcastQueries()),new qe({networkError:t}))})),"cache-and-network"!==u)return[2,k];k.catch((function(){}))}return this.queryStore.markQueryResultClient(e,!g),this.invalidate(e),this.invalidate(n),this.transform(p).hasForcedResolvers?[2,this.localState.runResolvers({document:p,remoteResult:{data:h},context:l,variables:f,onlyRunForcedResolvers:!0}).then((function(r){return S.markQueryResult(e,r,t,n),S.broadcastQueries(),r}))]:(this.broadcastQueries(),[2,{data:h}])}}))}))},e.prototype.markQueryResult=function(e,t,r,n){var i=r.fetchPolicy,o=r.variables,s=r.errorPolicy;
1"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"===s||"all"===s)},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 s=n.getQuery(e),a=s.observableQuery,u=s.document,c=a?a.options.fetchPolicy:t.fetchPolicy;if("standby"!==c){var l=_e(r.networkStatus),p=a&&a.getLastResult(),f=!(!p||p.networkStatus===r.networkStatus),h=t.returnPartialData||!o&&r.previousVariables||f&&t.notifyOnNetworkStatusChange||"cache-only"===c||"cache-and-network"===c;if(!l||h){var v=Ae(r.graphQLErrors),d=a&&a.options.errorPolicy||t.errorPolicy||"none";if("none"===d&&v||r.networkError)return i("error",new qe({graphQLErrors:r.graphQLErrors,networkError:r.networkError}));try{var y=void 0,b=void 0;if(o)"no-cache"!==c&&"network-only"!==c&&n.setQuery(e,(function(){return{newData:null}})),y=o.result,b=!o.complete;else{var m=a&&a.getLastError(),g="none"!==d&&(m&&m.graphQLErrors)!==r.graphQLErrors;if(p&&p.data&&!g)y=p.data,b=!1;else{var E=n.dataStore.getCache().diff({query:u,variables:r.previousVariables||r.variables,returnPartialData:!0,optimistic:!0});y=E.result,b=!E.complete}}var O=b&&!(t.returnPartialData||"cache-only"===c),k={data:O?p&&p.data:y,loading:l,networkStatus:r.networkStatus,stale:O};"all"===d&&v&&(k.errors=r.graphQLErrors),i("next",k)}catch(S){i("error",new qe({networkError:S}))}}}}}},e.prototype.transform=function(e){var t,r=this.transformCache;if(!r.has(e)){var n=this.dataStore.getCache(),i=n.transformDocument(e),o=(t=n.transformForLink(i),te([re],G(t))),s=this.localState.clientQuery(i),a=this.localState.serverQuery(o),u={document:i,hasClientExports:V(i),hasForcedResolvers:this.localState.shouldForceResolvers(i),clientQuery:s,serverQuery:a,defaultVars:Z(K(i))},c=function(e){e&&!r.has(e)&&r.set(e,u)};c(e),c(i),c(s),c(a)}return r.get(e)},e.prototype.getVariables=function(e,t){return(0,i.pi)((0,i.pi)({},this.transform(e).defaultVars),t)},e.prototype.watchQuery=function(e,t){void 0===t&&(t=!0),l("standby"!==e.fetchPolicy,11),e.variables=this.getVariables(e.query,e.variables),"undefined"===typeof e.notifyOnNetworkStatusChange&&(e.notifyOnNetworkStatusChange=!1);var r=(0,i.pi)({},e);return new Me({queryManager:this,options:r,shouldSubscribe:t})},e.prototype.query=function(e){var t=this;return l(e.query,12),l("Document"===e.query.kind,13),l(!e.returnPartialData,14),l(!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){return e.listeners.add(t),{invalidated:!1}}))},e.prototype.updateQueryWatch=function(e,t,r){var n=this,i=this.getQuery(e).cancel;i&&i();return this.dataStore.getCache().watch({query:t,variables:r.variables,optimistic:!0,previousResult:function(){var t=null,r=n.getQuery(e).observableQuery;if(r){var i=r.getLastResult();i&&(t=i.data)}return t},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 c(16))}));var e=[];return this.queries.forEach((function(t,r){t.observableQuery&&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=[];
vendor: 4,582 bytes, line 1
1return this.queries.forEach((function(n,i){var o=n.observableQuery;if(o){var s=o.options.fetchPolicy;o.resetLastResults(),"cache-only"===s||!e&&"standby"===s||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 o=function(e){return t.getObservableFromLink(r,{},e,!1).map((function(i){if(n&&"no-cache"===n||(t.dataStore.markSubscriptionResult(i,r,e),t.broadcastQueries()),le(i))throw new qe({graphQLErrors:i.errors});return i}))};if(this.transform(r).hasClientExports){var s=this.localState.addExportedVariables(r,i).then(o);return new Qe((function(e){var t=null;return s.then((function(r){return t=r.subscribe(e)}),e.error),function(){return t&&t.unsubscribe()}}))}return o(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,s=r.returnPartialData,a=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:a?a.data:void 0,returnPartialData:!0,optimistic:t}),l=c.result,p=c.complete;return{data:p||s?l:void 0,partial:!p}},e.prototype.getQueryWithPreviousResult=function(e){var t;if("string"===typeof e){var r=this.getQuery(e).observableQuery;l(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 o,s=this;void 0===n&&(n=this.queryDeduplication);var a=this.transform(e).serverQuery;if(a){var u=this.inFlightLinkObservables,c=this.link,l={query:a,variables:r,operationName:W(a)||void 0,context:this.prepareContext((0,i.pi)((0,i.pi)({},t),{forceFetch:!n}))};if(t=l.context,n){var p=u.get(a)||new Map;u.set(a,p);var f=JSON.stringify(r);if(!(o=p.get(f))){p.set(f,o=Be(Re(c,l)));var h=function(){p.delete(f),p.size||u.delete(a),v.unsubscribe()},v=o.subscribe({next:h,error:h,complete:h})}}else o=Be(Re(c,l))}else o=Qe.of({data:{}}),t=this.prepareContext(t);var d=this.transform(e).clientQuery;return d&&(o=function(e,t){return new Qe((function(r){var n=r.next,i=r.error,o=r.complete,s=0,a=!1,u={next:function(e){++s,new Promise((function(r){r(t(e))})).then((function(e){--s,n&&n.call(r,e),a&&u.complete()}),(function(e){--s,i&&i.call(r,e)}))},error:function(e){i&&i.call(r,e)},complete:function(){a=!0,s||o&&o.call(r)}},c=e.subscribe(u);return function(){return c.unsubscribe()}}))}(o,(function(e){return s.localState.runResolvers({document:d,remoteResult:e,context:t,variables:r})}))),o},e.prototype.fetchRequest=function(e){var t,r,n=this,i=e.requestId,o=e.queryId,s=e.document,a=e.options,u=e.fetchMoreForQueryId,c=a.variables,l=a.errorPolicy,p=void 0===l?"none":l,f=a.fetchPolicy;return new Promise((function(e,l){var h=n.getObservableFromLink(s,a.context,c),v="fetchRequest:"+o;n.fetchQueryRejectFns.set(v,l);var d=function(){n.fetchQueryRejectFns.delete(v),n.setQuery(o,(function(e){e.subscriptions.delete(y)}))},y=h.map((function(e){if(i>=n.getQuery(o).lastRequestId&&(n.markQueryResult(o,e,a,u),n.queryStore.markQueryResult(o,e,u),n.invalidate(o),n.invalidate(u),n.broadcastQueries()),"none"===p&&Ae(e.errors))return l(new qe({graphQLErrors:e.errors}));if("all"===p&&(r=e.errors),u||"no-cache"===f)t=e.data;else{var h=n.dataStore.getCache().diff({variables:c,query:s,optimistic:!1,returnPartialData:!0}
1),v=h.result;(h.complete||a.returnPartialData)&&(t=v)}})).subscribe({error:function(e){d(),l(e)},complete:function(){d(),e({data:t,errors:r,loading:!1,networkStatus:xe.ready,stale:!1})}});n.setQuery(o,(function(e){e.subscriptions.add(y)}))}))},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=(0,i.pi)((0,i.pi)({},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(0,i.pi)((0,i.pi)({},t),{clientAwareness:this.clientAwareness})},e.prototype.checkInFlight=function(e){var t=this.queryStore.get(e);return t&&t.networkStatus!==xe.ready&&t.networkStatus!==xe.error},e.prototype.startPollingQuery=function(e,t,r){var n=this,o=e.pollInterval;if(l(o,18),!this.ssrMode){var s=this.pollingInfoByQueryId.get(t);s||this.pollingInfoByQueryId.set(t,s={}),s.interval=o,s.options=(0,i.pi)((0,i.pi)({},e),{fetchPolicy:"network-only"});var a=function(){var e=n.pollingInfoByQueryId.get(t);e&&(n.checkInFlight(t)?u():n.fetchQuery(t,e.options,Ce.poll).then(u,u))},u=function(){var e=n.pollingInfoByQueryId.get(t);e&&(clearTimeout(e.timeout),e.timeout=setTimeout(a,e.interval))};r&&this.addQueryListener(t,r),u()}return t},e.prototype.stopPollingQuery=function(e){this.pollingInfoByQueryId.delete(e)},e}(),We=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 o=!le(e);i&&le(e)&&e.data&&(o=!0),!n&&o&&this.cache.write({result:e.data,dataId:"ROOT_QUERY",query:t,variables:r})},e.prototype.markSubscriptionResult=function(e,t,r){le(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(!le(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 o=n[i],s=o.query,a=o.updater,u=t.cache.diff({query:s.document,variables:s.variables,returnPartialData:!0,optimistic:!1}),c=u.result;if(u.complete){var l=ce((function(){return a(c,{mutationResult:e.result,queryName:W(s.document)||void 0,queryVariables:s.variables})}));l&&r.push({result:l,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&&ce((function(){return n(t,e.result)}))}))}},e.prototype.markMutationComplete=function(e){var t=e.mutationId;e.optimisticResponse&&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}(),ze=(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,s=void 0===o?0:o,a=e.connectToDevTools,u=e.queryDeduplication,l=void 0===u||u,p=e.defaultOptions,f=e.assumeImmutableResults,h=void 0!==f&&f,v=e.resolvers,d=e.typeDefs,y=e.fragmentMatcher,b=e.name,m=e.version,g=e.link;if(!g&&v&&(g=Ne.empty()),!g||!r)throw new c(4);this.link=g,this.cache=r,this.store=new We(r),this.disableNetworkFetches=i||s>0,this.queryDeduplication=l,this.defaultOptions=p||{},this.typeDefs=d,s&&setTimeout((function(){return t.disableNetworkFetches=!1}),s),this.watchQuery=this.watchQuery.bind(this),this.query=this.query.bind(this),this.mutate=this.mutate.bind(this),this.resetStore=this.resetStore.bind(this),this.reFetchObservableQueries=this.reFetchObservableQueries.bind(this);"undefined"!==typeof a&&(a&&"undefined"!==typeof window)&&(window.__APOLLO_CLIENT__=this),this.version="2.6.10",this.localState=new Ue({cache:r,client:this,resolvers:v,fragmentMatcher:y}),this.queryManager=new Ke({link:this.link,store:this.store,queryDeduplication:l,ssrMode:i,clientAwareness:{name:b,version:m},localState:this.localState,assumeImmutableResults:h,onBroadcast:function(){t.devToolsHookCb&&t.devToolsHookCb({action:{},state:{queries:t.queryManager.queryStore.getStore(),mutations:t.queryManager.mutationStore.getStore()},dataWithOptimisticResults:t.cache.extract(!0)})}})}e.prototype.stop=function(){this.queryManager.stop()},e.prototype.watchQuery=function(e){return this.defaultOptions.watchQuery&&(e=(0,i.pi)((0,i.pi)({},this.defaultOptions.watchQuery),e)),!this.disableNetworkFetches||"network-only"!==e.fetchPolicy&&"cache-and-network"!==e.fetchPolicy||(e=(0,i.pi)((0,i.pi)({},e),{fetchPolicy:"cache-first"})),this.queryManager.watchQuery(e)},e.prototype.query=function(e){return this.defaultOptions.query&&(e=(0,i.pi)((0,i.pi)({},this.defaultOptions.query),e)),l("cache-and-network"!==e.fetchPolicy,5),this.disableNetworkFetches&&"network-only"===e.fetchPolicy&&(e=(0,i.pi)((0,i.pi)({},e),{fetchPolicy:"cache-first"})),this.queryManager.query(e)},e.prototype.mutate=function(e){return this.defaultOptions.mutate&&(e=(0,i.pi)((0,i.pi)({},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 Re(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)}}(),function(){function e(e,t){this.isMounted=!1,this.previousOptions={},this.context={},this.options={},this.options=e||{},this.context=t||{}}return e.prototype.getOptions=function(){return this.options},e.prototype.setOptions=function(e,t){void 0===t&&(t=!1),t&&!_(this.options,e)&&(this.previousOptions=this.options),this.options=e},e.prototype.unmount=function(){this.isMounted=!1},e.prototype.refreshClient=function(){var e=this.options&&this.options.client||this.context&&this.context.client;l(!!e,2);var t=!1;
1return e!==this.client&&(t=!0,this.client=e,this.cleanup()),{client:this.client,isNew:t}},e.prototype.verifyDocumentType=function(e,t){var r=m(e);b(t),b(r.type);l(r.type===t,3)},e}()),Je=function(e){function t(t){var r=t.options,n=t.context,i=t.onNewData,o=e.call(this,r,n)||this;return o.previousData={},o.currentObservable={},o.runLazy=!1,o.runLazyQuery=function(e){o.cleanup(),o.runLazy=!0,o.lazyOptions=e,o.onNewData()},o.getExecuteResult=function(){var e=o.getQueryResult();return o.startQuerySubscription(),e},o.obsRefetch=function(e){return o.currentObservable.query.refetch(e)},o.obsFetchMore=function(e){return o.currentObservable.query.fetchMore(e)},o.obsUpdateQuery=function(e){return o.currentObservable.query.updateQuery(e)},o.obsStartPolling=function(e){o.currentObservable&&o.currentObservable.query&&o.currentObservable.query.startPolling(e)},o.obsStopPolling=function(){o.currentObservable&&o.currentObservable.query&&o.currentObservable.query.stopPolling()},o.obsSubscribeToMore=function(e){return o.currentObservable.query.subscribeToMore(e)},o.onNewData=i,o}return(0,i.ZT)(t,e),t.prototype.execute=function(){this.refreshClient();var e=this.getOptions(),t=e.skip,r=e.query;return(t||r!==this.previousData.query)&&(this.removeQuerySubscription(),this.previousData.query=r),this.updateObservableQuery(),this.isMounted&&this.startQuerySubscription(),this.getExecuteSsrResult()||this.getExecuteResult()},t.prototype.executeLazy=function(){return this.runLazy?[this.runLazyQuery,this.execute()]:[this.runLazyQuery,{loading:!1,networkStatus:xe.ready,called:!1,data:void 0}]},t.prototype.fetchData=function(){var e=this.getOptions();if(e.skip||!1===e.ssr)return!1;var t=this.currentObservable.query;return!!t.getCurrentResult().loading&&t.result()},t.prototype.afterExecute=function(e){var t=(void 0===e?{}:e).lazy,r=void 0!==t&&t;return this.isMounted=!0,r&&!this.runLazy||this.handleErrorOrCompleted(),this.previousOptions=this.getOptions(),this.unmount.bind(this)},t.prototype.cleanup=function(){this.removeQuerySubscription(),delete this.currentObservable.query,delete this.previousData.result},t.prototype.getOptions=function(){var t=e.prototype.getOptions.call(this);return this.lazyOptions&&(t.variables=(0,i.pi)((0,i.pi)({},t.variables),this.lazyOptions.variables),t.context=(0,i.pi)((0,i.pi)({},t.context),this.lazyOptions.context)),this.runLazy&&delete t.skip,t},t.prototype.ssrInitiated=function(){return this.context&&this.context.renderPromises},t.prototype.getExecuteSsrResult=function(){var e,t=!1===this.getOptions().ssr,r=this.refreshClient().client.disableNetworkFetches,n=(0,i.pi)({loading:!0,networkStatus:xe.loading,called:!0,data:void 0,stale:!1,client:this.client},this.observableQueryFields());return t&&(this.ssrInitiated()||r)?(this.previousData.result=n,n):(this.ssrInitiated()&&(e=this.context.renderPromises.addQueryPromise(this,this.getExecuteResult)||n),e)},t.prototype.prepareObservableQueryOptions=function(){var e=this.getOptions();this.verifyDocumentType(e.query,d.Query);var t=e.displayName||"Query";return!this.ssrInitiated()||"network-only"!==e.fetchPolicy&&"cache-and-network"!==e.fetchPolicy||(e.fetchPolicy="cache-first"),(0,i.pi)((0,i.pi)({},e),{displayName:t,context:e.context,metadata:{reactComponent:{displayName:t}}})},t.prototype.initializeObservableQuery=function(){var e,t;if(this.ssrInitiated()&&(this.currentObservable.query=this.context.renderPromises.getSSRObservable(this.getOptions())),!this.currentObservable.query){var r=this.prepareObservableQueryOptions();this.previousData.observableQueryOptions=(0,i.pi)((0,i.pi)({},r),{children:null}),this.currentObservable.query=this.refreshClient().client.watchQuery((0,i.pi)({},r)),this.ssrInitiated()&&(null===(t=null===(e=this.context)||void 0===e?void 0:e.renderPromises)||void 0===t||t.registerSSRObservable(this.currentObservable.query,r))}},t.prototype.updateObservableQuery=function(){if(this.currentObservable.query){var e=(0,i.pi)((0,i.pi)({},this.prepareObservableQueryOptions()),{children:null});_(e,this.previousData.observableQueryOptions)||(this.previousData.observableQueryOptions=e,this.currentObservable.query.setOptions(e).catch((function(){})))}else this.initializeObservableQuery()},t.prototype.startQuerySubscription=function(){var e=this;if(!this.currentObservable.subscription&&!this.getOptions().skip){var t=this.currentObservable.query;this.currentObservable.subscription=t.subscribe({next:function(t){var r=t.loading,n=t.networkStatus,i=t.data,o=e.previousData.result;o&&o.loading===r&&o.networkStatus===n&&_(o.data,i)||e.onNewData()},error:function(t){if(e.resubscribeToQuery(),!t.hasOwnProperty("graphQLErrors"))throw t;var r=e.previousData.result;(r&&r.loading||!_(t,e.previousData.error))&&(e.previousData.error=t,e.onNewData())}})}},t.prototype.resubscribeToQuery=function(){this.removeQuerySubscription();var e=this.currentObservable.query.getLastError(),t=this.currentObservable.query.getLastResult();this.currentObservable.query.resetLastResults(),this.startQuerySubscription(),Object.assign(this.currentObservable.query,{lastError:e,lastResult:t})},t.prototype.getQueryResult=function(){var e=this.observableQueryFields(),t=this.getOptions();if(t.skip)e=(0,i.pi)((0,i.pi)({},e),{data:void 0,error:void 0,loading:!1,called:!0});else{var r=this.currentObservable.query.getCurrentResult(),n=r.loading,o=r.partial,s=r.networkStatus,a=r.errors,u=r.error,c=r.data;if(a&&a.length>0&&(u=new qe({graphQLErrors:a})),e=(0,i.pi)((0,i.pi)({},e),{loading:n,networkStatus:s,error:u,called:!0}),n){var l=this.previousData.result&&this.previousData.result.data;e.data=l&&c?(0,i.pi)((0,i.pi)({},l),c):l||c}else if(u)Object.assign(e,{data:(this.currentObservable.query.getLastResult()||{}).data});else{var p=this.currentObservable.query.options.fetchPolicy;if(t.partialRefetch&&!c&&o&&"cache-only"!==p)return Object.assign(e,{loading:!0,networkStatus:xe.loading}),e.refetch(),e;e.data=c}}return e.client=this.client,this.previousData.loading=this.previousData.result&&this.previousData.result.loading||!1,this.previousData.result=e,this.currentObservable.query&&this.currentObservable.query.resetQueryStoreErrors(),e},t.prototype.handleErrorOrCompleted=function(){if(this.currentObservable.query&&this.previousData.result){var e=this.previousData.result,t=e.data,r=e.loading,n=e.error;if(!r){var i=this.getOptions(),o=i.query,s=i.variables,a=i.onCompleted,u=i.onError;if(this.previousOptions&&!this.previousData.loading&&_(this.previousOptions.query,o)&&_(this.previousOptions.variables,s))return;a&&!n?a(t):u&&n&&u(n)}}},t.prototype.removeQuerySubscription=function(){this.currentObservable.subscription&&(this.currentObservable.subscription.unsubscribe(),delete this.currentObservable.subscription)},t.prototype.observableQueryFields=function(){return{variables:this.currentObservable.query.variables,refetch:this.obsRefetch,fetchMore:this.obsFetchMore,updateQuery:this.obsUpdateQuery,startPolling:this.obsStartPolling,stopPolling:this.obsStopPolling,subscribeToMore:this.obsSub
1scribeToMore}},t}(ze);function Ye(e,t,r){void 0===r&&(r=!1);var o=(0,n.useContext)(v()),s=(0,n.useReducer)((function(e){return e+1}),0),a=s[0],u=s[1],c=t?(0,i.pi)((0,i.pi)({},t),{query:e}):{query:e},l=(0,n.useRef)(),p=l.current||new Je({options:c,context:o,onNewData:function(){p.ssrInitiated()?u():Promise.resolve().then(u)}});p.setOptions(c),p.context=o,p.ssrInitiated()&&!l.current&&(l.current=p);var f=function(e,t){var r=(0,n.useRef)();return r.current&&_(t,r.current.key)||(r.current={key:t,value:e()}),r.current.value}((function(){return r?p.executeLazy():p.execute()}),{options:(0,i.pi)((0,i.pi)({},c),{onError:void 0,onCompleted:void 0}),context:o,tick:a}),h=r?f[1]:f;return(0,n.useEffect)((function(){return l.current||(l.current=p),function(){return p.cleanup()}}),[]),(0,n.useEffect)((function(){return p.afterExecute({lazy:r})}),[h.loading,h.networkStatus,h.error,h.data]),f}var Ze=function(e){function t(t){var r=t.options,n=t.context,i=t.result,o=t.setResult,s=e.call(this,r,n)||this;return s.runMutation=function(e){void 0===e&&(e={}),s.onMutationStart();var t=s.generateNewMutationId();return s.mutate(e).then((function(e){return s.onMutationCompleted(e,t),e})).catch((function(e){if(s.onMutationError(e,t),!s.getOptions().onError)throw e}))},s.verifyDocumentType(r.mutation,d.Mutation),s.result=i,s.setResult=o,s.mostRecentMutationId=0,s}return(0,i.ZT)(t,e),t.prototype.execute=function(e){return this.isMounted=!0,this.verifyDocumentType(this.getOptions().mutation,d.Mutation),e.client=this.refreshClient().client,[this.runMutation,e]},t.prototype.afterExecute=function(){return this.isMounted=!0,this.unmount.bind(this)},t.prototype.cleanup=function(){},t.prototype.mutate=function(e){var t=this.getOptions(),r=t.mutation,n=t.variables,o=t.optimisticResponse,s=t.update,a=t.context,u=void 0===a?{}:a,c=t.awaitRefetchQueries,l=void 0!==c&&c,p=t.fetchPolicy,f=(0,i.pi)({},e),h=Object.assign({},n,f.variables);return delete f.variables,this.refreshClient().client.mutate((0,i.pi)({mutation:r,optimisticResponse:o,refetchQueries:f.refetchQueries||this.getOptions().refetchQueries,awaitRefetchQueries:l,update:s,context:u,fetchPolicy:p,variables:h},f))},t.prototype.onMutationStart=function(){this.result.loading||this.getOptions().ignoreResults||this.updateResult({loading:!0,error:void 0,data:void 0,called:!0})},t.prototype.onMutationCompleted=function(e,t){var r=this.getOptions(),n=r.onCompleted,i=r.ignoreResults,o=e.data,s=e.errors,a=s&&s.length>0?new qe({graphQLErrors:s}):void 0;this.isMostRecentMutation(t)&&!i&&this.updateResult({called:!0,loading:!1,data:o,error:a}),n&&n(o)},t.prototype.onMutationError=function(e,t){var r=this.getOptions().onError;this.isMostRecentMutation(t)&&this.updateResult({loading:!1,error:e,data:void 0,called:!0}),r&&r(e)},t.prototype.generateNewMutationId=function(){return++this.mostRecentMutationId},t.prototype.isMostRecentMutation=function(e){return this.mostRecentMutationId===e},t.prototype.updateResult=function(e){!this.isMounted||this.previousResult&&_(this.previousResult,e)||(this.setResult(e),this.previousResult=e)},t}(ze);var Xe=function(e){function t(t){var r=t.options,n=t.context,i=t.setResult,o=e.call(this,r,n)||this;return o.currentObservable={},o.setResult=i,o.initialize(r),o}return(0,i.ZT)(t,e),t.prototype.execute=function(e){if(!0===this.getOptions().skip)return this.cleanup(),{loading:!1,error:void 0,data:void 0,variables:this.getOptions().variables};var t=e;this.refreshClient().isNew&&(t=this.getLoadingResult());var r=this.getOptions().shouldResubscribe;return"function"===typeof r&&(r=!!r(this.getOptions())),!1!==r&&this.previousOptions&&Object.keys(this.previousOptions).length>0&&(this.previousOptions.subscription!==this.getOptions().subscription||!_(this.previousOptions.variables,this.getOptions().variables)||this.previousOptions.skip!==this.getOptions().skip)&&(this.cleanup(),t=this.getLoadingResult()),this.initialize(this.getOptions()),this.startSubscription(),this.previousOptions=this.getOptions(),(0,i.pi)((0,i.pi)({},t),{variables:this.getOptions().variables})},t.prototype.afterExecute=function(){this.isMounted=!0},t.prototype.cleanup=function(){this.endSubscription(),delete this.currentObservable.query},t.prototype.initialize=function(e){this.currentObservable.query||!0===this.getOptions().skip||(this.currentObservable.query=this.refreshClient().client.subscribe({query:e.subscription,variables:e.variables,fetchPolicy:e.fetchPolicy}))},t.prototype.startSubscription=function(){this.currentObservable.subscription||(this.currentObservable.subscription=this.currentObservable.query.subscribe({next:this.updateCurrentData.bind(this),error:this.updateError.bind(this),complete:this.completeSubscription.bind(this)}))},t.prototype.getLoadingResult=function(){return{loading:!0,error:void 0,data:void 0}},t.prototype.updateResult=function(e){this.isMounted&&this.setResult(e)},t.prototype.updateCurrentData=function(e){var t=this.getOptions().onSubscriptionData;this.updateResult({data:e.data,loading:!1,error:void 0}),t&&t({client:this.refreshClient().client,subscriptionData:e})},t.prototype.updateError=function(e){this.updateResult({error:e,loading:!1})},t.prototype.completeSubscription=function(){var e=this.getOptions().onSubscriptionComplete;e&&e(),this.endSubscription()},t.prototype.endSubscription=function(){this.currentObservable.subscription&&(this.currentObservable.subscription.unsubscribe(),delete this.currentObservable.subscription)},t}(ze);!function(){function e(){this.queryPromises=new Map,this.queryInfoTrie=new Map}e.prototype.registerSSRObservable=function(e,t){this.lookupQueryInfo(t).observable=e},e.prototype.getSSRObservable=function(e){return this.lookupQueryInfo(e).observable},e.prototype.addQueryPromise=function(e,t){return this.lookupQueryInfo(e.getOptions()).seen?t():(this.queryPromises.set(e.getOptions(),new Promise((function(t){t(e.fetchData())}))),null)},e.prototype.hasPromises=function(){return this.queryPromises.size>0},e.prototype.consumeAndAwaitPromises=function(){var e=this,t=[];
1return this.queryPromises.forEach((function(r,n){e.lookupQueryInfo(n).seen=!0,t.push(r)})),this.queryPromises.clear(),Promise.all(t)},e.prototype.lookupQueryInfo=function(e){var t=this.queryInfoTrie,r=e.query,n=e.variables,i=t.get(r)||new Map;t.has(r)||t.set(r,i);var o=JSON.stringify(n),s=i.get(o)||{seen:!1,observable:null};return i.has(o)||i.set(o,s),s}}();var He=r(7862),$e=r.n(He);function et(e){var t=e.children,r=function(e,t){return Ye(e,t,!1)}(e.query,(0,i._T)(e,["children","query"]));return t&&r?t(r):null}function tt(e){var t=function(e,t){var r=(0,n.useContext)(v()),o=(0,n.useState)({called:!1,loading:!1}),s=o[0],a=o[1],u=t?(0,i.pi)((0,i.pi)({},t),{mutation:e}):{mutation:e},c=(0,n.useRef)(),l=(c.current||(c.current=new Ze({options:u,context:r,result:s,setResult:a})),c.current);return l.setOptions(u),l.context=r,(0,n.useEffect)((function(){return l.afterExecute()})),l.execute(s)}(e.mutation,e),r=t[0],o=t[1];return e.children?e.children(r,o):null}function rt(e){var t=function(e,t){var r=(0,n.useContext)(v()),o=t?(0,i.pi)((0,i.pi)({},t),{subscription:e}):{subscription:e},s=(0,n.useState)({loading:!o.skip,error:void 0,data:void 0}),a=s[0],u=s[1],c=(0,n.useRef)(),l=(c.current||(c.current=new Xe({options:o,context:r,setResult:u})),c.current);return l.setOptions(o,!0),l.context=r,(0,n.useEffect)((function(){return l.afterExecute()})),(0,n.useEffect)((function(){return l.cleanup.bind(l)}),[]),l.execute(a)}(e.subscription,e);return e.children&&t?e.children(t):null}!function(e){e.propTypes={client:$e().object,children:$e().func.isRequired,fetchPolicy:$e().string,notifyOnNetworkStatusChange:$e().bool,onCompleted:$e().func,onError:$e().func,pollInterval:$e().number,query:$e().object.isRequired,variables:$e().object,ssr:$e().bool,partialRefetch:$e().bool,returnPartialData:$e().bool}}(et||(et={})),function(e){e.propTypes={mutation:$e().object.isRequired,variables:$e().object,optimisticResponse:$e().oneOfType([$e().object,$e().func]),refetchQueries:$e().oneOfType([$e().arrayOf($e().oneOfType([$e().string,$e().object])),$e().func]),awaitRefetchQueries:$e().bool,update:$e().func,children:$e().func.isRequired,onCompleted:$e().func,onError:$e().func,fetchPolicy:$e().string}}(tt||(tt={})),function(e){e.propTypes={subscription:$e().object.isRequired,variables:$e().object,children:$e().func,onSubscriptionData:$e().func,onSubscriptionComplete:$e().func,shouldResubscribe:$e().oneOfType([$e().func,$e().bool])}}(rt||(rt={}));var nt=function(){return{}},it=function(){return!1};function ot(e){return e.displayName||e.name||"Component"}function st(e,t){for(var r={},n=0,i=e.variables;n<i.length;n++){var o=i[n],s=o.variable,a=o.type;if(s.name&&s.name.value){var u=s.name.value,c=t[u];"undefined"===typeof c?"NonNullType"!==a.kind&&(r[u]=void 0):r[u]=c}}return r}var at=function(e){function t(t){var r=e.call(this,t)||this;return r.withRef=!1,r.setWrappedInstance=r.setWrappedInstance.bind(r),r}return(0,i.ZT)(t,e),t.prototype.getWrappedInstance=function(){return l(this.withRef,2),this.wrappedInstance},t.prototype.setWrappedInstance=function(e){this.wrappedInstance=e},t}(n.Component);function ut(e,t){switch(void 0===t&&(t={}),m(e).type){case d.Mutation:return function(e,t){void 0===t&&(t={});var r=m(e),o=t.options,s=void 0===o?nt:o,a=t.alias,u=void 0===a?"Apollo":a,c=s;return"function"!==typeof c&&(c=function(){return s}),function(o){var s=u+"("+ot(o)+")",a=function(a){function u(){return null!==a&&a.apply(this,arguments)||this}return(0,i.ZT)(u,a),u.prototype.render=function(){var s=this.props,a=c(s);return t.withRef&&(this.withRef=!0,s=Object.assign({},s,{ref:this.setWrappedInstance})),!a.variables&&r.variables.length>0&&(a.variables=st(r,s)),n.createElement(tt,(0,i.pi)({ignoreResults:!0},a,{mutation:e}),(function(e,r){var a,u,c=r.data,l=(0,i._T)(r,["data"]),p=Object.assign(l,c||{}),f=t.name||"mutate",h=t.name?f+"Result":"result",v=((a={})[f]=e,a[h]=p,a);if(t.props){var d=((u={})[f]=e,u[h]=p,u.ownProps=s,u);v=t.props(d)}return n.createElement(o,(0,i.pi)({},s,v))}))},u.displayName=s,u.WrappedComponent=o,u}(at);return E()(a,o,{})}}(e,t);case d.Subscription:return function(e,t){void 0===t&&(t={});var r=m(e),o=t.options,s=void 0===o?nt:o,a=t.skip,u=void 0===a?it:a,c=t.alias,l=void 0===c?"Apollo":c,p=t.shouldResubscribe,f=s;"function"!==typeof f&&(f=function(){return s});var h,v=u;return"function"!==typeof v&&(v=function(){return u}),function(o){var s=l+"("+ot(o)+")",a=function(a){function u(e){var t=a.call(this,e)||this;return t.state={resubscribe:!1},t}return(0,i.ZT)(u,a),u.prototype.componentDidUpate=function(e){p&&this.setState({resubscribe:p(e,this.props)})},u.prototype.render=function(){var a=this,u=this.props,c=v(u),l=c?Object.create(null):f(u);return!c&&!l.variables&&r.variables.length>0&&(l.variables=st(r,u)),n.createElement(rt,(0,i.pi)({},l,{displayName:s,skip:c,subscription:e,shouldResubscribe:this.state.resubscribe}),(function(e){var r,s,l=e.data,p=(0,i._T)(e,["data"]);if(t.withRef&&(a.withRef=!0,u=Object.assign({},u,{ref:a.setWrappedInstance})),c)return n.createElement(o,(0,i.pi)({},u,{}));var f=Object.assign(p,l||{}),v=t.name||"data",d=((r={})[v]=f,r);if(t.props){var y=((s={})[v]=f,s.ownProps=u,s);d=h=t.props(y,h)}return n.createElement(o,(0,i.pi)({},u,d))}))},u.displayName=s,u.WrappedComponent=o,u}(at);return E()(a,o,{})}}(e,t);case d.Query:default:return function(e,t){void 0===t&&(t={});var r=m(e),o=t.options,s=void 0===o?nt:o,a=t.skip,u=void 0===a?it:a,c=t.alias,l=void 0===c?"Apollo":c,p=s;"function"!==typeof p&&(p=function(){return s});var f,h=u;return"function"!==typeof h&&(h=function(){return u}),function(o){var s=l+"("+ot(o)+")",a=function(a){function u(){return null!==a&&a.apply(this,arguments)||this}return(0,i.ZT)(u,a),u.prototype.render=function(){var a=this,u=this.props,c=h(u),l=c?Object.create(null):(0,i.pi)({},p(u));return!c&&!l.variables&&r.variables.length>0&&(l.variables=st(r,u)),n.createElement(et,(0,i.pi)({},l,{displayName:s,skip:c,query:e}),(function(e){e.client;var r,s,l=e.data,p=(0,i._T)(e,["client","data"]);if(t.withRef&&(a.withRef=!0,u=Object.assign({},u,{ref:a.setWrappedInstance})),c)return n.createElement(o,(0,i.pi)({},u,{}));var h=Object.assign(p,l||{}),v=t.name||"data",d=((r={})[v]=h,r);if(t.props){var y=((s={})[v]=h,s.ownProps=u,s);d=f=t.props(y,f)}return n.createElement(o,(0,i.pi)({},u,d))}))},u.displayName=s,u.WrappedComponent=o,u}(at);return E()(a,o,{})}}(e,t)}}},75687:function(e){"use strict";e.exports=function(e,t){t||(t={}),"function"===typeof t&&(t={cmp:t});var r,n="boolean"===typeof t.cycles&&t.cycles,i=t.cmp&&(r=t.cmp,function(e){return function(t,n){var i={key:t,value:e[t]},o={key:n,value:e[n]};return r(i,o)}}),o=[];return function e(t){if(t&&t.toJSON&&"function"===typeof t.toJSON&&(t=t.toJSON()),void 0!==t){if("number"==typeof t)return isFinite(t)?""+t:"null";if("object"!==typeof t)return JSON.stringify(t);var r,s;if(Array.isArray(t)){for(s="[",r=0;r<t.length;r++)r&&(s+=","),s+=e(t[r])||"null";return s+"]"}if(null===t)return"null";if(-1!==o.indexOf(t)){if(n)return JSON.stringify("__cycle__");throw new TypeError("Converting circular structure to JSON")}var a=o.push(t)-1,u=Object.keys(t).sort(i&&i(t));for(s="",r=0;r<u.length;r++){var c=u[r],l=e(t[c]);l&&(s&&(s+=","),s+=JSON.stringify(c)+":"+l)}return o.splice(a,1),"{"+s+"}"}}(e)}},56619:function(e,t,r){"use strict";r.d(t,{ZP:function(){return le}});var n=r(92336);function i(e,t){if(!Boolean(e))throw new Error(t)}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)}"function"===typeof Symbol&&null!=Symbol.iterator&&Symbol.iterator,"function"===typeof Symbol&&null!=Symbol.asyncIterator&&Symbol.asyncIterator;var s="function"===typeof Symbol&&null!=Symbol.toStringTag?Symbol.toStringTag:"@@toStringTag";function a(e,t){for(var r,n=/\r\n|[\n\r]/g,i=1,o=t+1;(r=n.exec(e.body))&&r.index<t;)i+=1,o=t+1-(r.index+r[0].length);return{line:i,column:o}}function u(e){return c(e.source,a(e.source,e.start))}function c(e,t){var r=e.locationOffset.column-1,n=p(r)+e.body,i=t.line-1,o=e.locationOffset.line-1,s=t.line+o,a=1===t.line?r:0,u=t.column+a,c="".concat(e.name,":").concat(s,":").concat(u,"\n"),f=n.split(/\r\n|[\n\r]/g),h=f[i];if(h.length>120){for(var v=Math.floor(u/80),d=u%80,y=[],b=0;b<h.length;b+=80)y.push(h.slice(b,b+80));return c+l([["".concat(s),y[0]]].concat(y.slice(1,v+1).map((function(e){return["",e]})),[[" ",p(d-1)+"^"],["",y[v+1]]]))}return c+l([["".concat(s-1),f[i-1]],["".concat(s),h],["",p(u-1)+"^"],["".concat(s+1),f[i+1]]])}function l(e){var t=e.filter((function(e){e[0];return void 0!==e[1]})),r=Math.max.apply(Math,t.map((function(e){return e[0].length})));return t.map((function(e){var t,n=e[0],i=e[1];return p(r-(t=n).length)+t+(i?" | "+i:" |")})).join("\n")}function p(e){return Array(e+1).join(" ")}function f(e){return f="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},f(e)}function h(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function v(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function d(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function y(e,t){return!t||"object"!==f(t)&&"function"!==typeof t?b(e):t}function b(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function m(e){var t="function"===typeof Map?new Map:void 0;return m=function(e){if(null===e||(r=e,-1===Function.toString.call(r).indexOf("[native code]")))return e;var r;if("function"!==typeof e)throw new TypeError("Super expression must either be null or a function");if("undefined"!==typeof t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return g(e,arguments,k(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),O(n,e)},m(e)}function g(e,t,r){return g=E()?Reflect.construct:function(e,t,r){var n=[null];n.push.apply(n,t);var i=new(Function.bind.apply(e,n));return r&&O(i,r.prototype),i},g.apply(null,arguments)}
1function E(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function O(e,t){return O=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},O(e,t)}function k(e){return k=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},k(e)}var S=function(e){!function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&O(e,t)}(p,e);var t,r,n,l=function(e){var t=E();return function(){var r,n=k(e);if(t){var i=k(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return y(this,r)}}(p);function p(e,t,r,n,i,s,u){var c,f,d,m;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,p),(m=l.call(this,e)).name="GraphQLError",m.originalError=null!==s&&void 0!==s?s:void 0,m.nodes=w(Array.isArray(t)?t:t?[t]:void 0);for(var g=[],E=0,O=null!==(k=m.nodes)&&void 0!==k?k:[];E<O.length;E++){var k,S=O[E].loc;null!=S&&g.push(S)}g=w(g),m.source=null!==r&&void 0!==r?r:null===(c=g)||void 0===c?void 0:c[0].source,m.positions=null!==n&&void 0!==n?n:null===(f=g)||void 0===f?void 0:f.map((function(e){return e.start})),m.locations=n&&r?n.map((function(e){return a(r,e)})):null===(d=g)||void 0===d?void 0:d.map((function(e){return a(e.source,e.start)})),m.path=null!==i&&void 0!==i?i:void 0;var T,I=null===s||void 0===s?void 0:s.extensions;return null==u&&("object"==o(T=I)&&null!==T)?m.extensions=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?h(Object(r),!0).forEach((function(t){v(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):h(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},I):m.extensions=null!==u&&void 0!==u?u:{},Object.defineProperties(b(m),{message:{enumerable:!0},locations:{enumerable:null!=m.locations},path:{enumerable:null!=m.path},extensions:{enumerable:null!=m.extensions&&Object.keys(m.extensions).length>0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),null!==s&&void 0!==s&&s.stack?(Object.defineProperty(b(m),"stack",{value:s.stack,writable:!0,configurable:!0}),y(m)):(Error.captureStackTrace?Error.captureStackTrace(b(m),p):Object.defineProperty(b(m),"stack",{value:Error().stack,writable:!0,configurable:!0}),m)}return t=p,(r=[{key:"toString",value:function(){return function(e){var t=e.message;if(e.nodes)for(var r=0,n=e.nodes;r<n.length;r++){var i=n[r];i.loc&&(t+="\n\n"+u(i.loc))}else if(e.source&&e.locations)for(var o=0,s=e.locations;o<s.length;o++){var a=s[o];t+="\n\n"+c(e.source,a)}return t}(this)}},{key:"toJSON",value:function(){return function(e){var t;e||i(0,"Received null or undefined error.");var r=null!==(t=e.message)&&void 0!==t?t:"An unknown error occurred.",n=e.locations,o=e.path,s=e.extensions;return s&&Object.keys(s).length>0?{message:r,locations:n,path:o,extensions:s}:{message:r,locations:n,path:o}}(this)}},{key:s,get:function(){return"Object"}}])&&d(t.prototype,r),n&&d(t,n),p}(m(Error));function w(e){return void 0===e||0===e.length?void 0:e}function T(e,t,r){return new S("Syntax Error: ".concat(r),void 0,e,[t])}var I=Object.freeze({NAME:"Name",DOCUMENT:"Document",OPERATION_DEFINITION:"OperationDefinition",VARIABLE_DEFINITION:"VariableDefinition",SELECTION_SET:"SelectionSet",FIELD:"Field",ARGUMENT:"Argument",FRAGMENT_SPREAD:"FragmentSpread",INLINE_FRAGMENT:"InlineFragment",FRAGMENT_DEFINITION:"FragmentDefinition",VARIABLE:"Variable",INT:"IntValue",FLOAT:"FloatValue",STRING:"StringValue",BOOLEAN:"BooleanValue",NULL:"NullValue",ENUM:"EnumValue",LIST:"ListValue",OBJECT:"ObjectValue",OBJECT_FIELD:"ObjectField",DIRECTIVE:"Directive",NAMED_TYPE:"NamedType",LIST_TYPE:"ListType",NON_NULL_TYPE:"NonNullType",SCHEMA_DEFINITION:"SchemaDefinition",OPERATION_TYPE_DEFINITION:"OperationTypeDefinition",SCALAR_TYPE_DEFINITION:"ScalarTypeDefinition",OBJECT_TYPE_DEFINITION:"ObjectTypeDefinition",FIELD_DEFINITION:"FieldDefinition",INPUT_VALUE_DEFINITION:"InputValueDefinition",INTERFACE_TYPE_DEFINITION:"InterfaceTypeDefinition",UNION_TYPE_DEFINITION:"UnionTypeDefinition",ENUM_TYPE_DEFINITION:"EnumTypeDefinition",ENUM_VALUE_DEFINITION:"EnumValueDefinition",INPUT_OBJECT_TYPE_DEFINITION:"InputObjectTypeDefinition",DIRECTIVE_DEFINITION:"DirectiveDefinition",SCHEMA_EXTENSION:"SchemaExtension",SCALAR_TYPE_EXTENSION:"ScalarTypeExtension",OBJECT_TYPE_EXTENSION:"ObjectTypeExtension",INTERFACE_TYPE_EXTENSION:"InterfaceTypeExtension",UNION_TYPE_EXTENSION:"UnionTypeExtension",ENUM_TYPE_EXTENSION:"EnumTypeExtension",INPUT_OBJECT_TYPE_EXTENSION:"InputObjectTypeExtension"}),N=r(20606),R=Object.freeze({SOF:"<SOF>",EOF:"<EOF>",BANG:"!",DOLLAR:"$",AMP:"&",PAREN_L:"(",PAREN_R:")",SPREAD:"...",COLON:":",EQUALS:"=",AT:"@",BRACKET_L:"[",BRACKET_R:"]",BRACE_L:"{",PIPE:"|",BRACE_R:"}
1",NAME:"Name",INT:"Int",FLOAT:"Float",STRING:"String",BLOCK_STRING:"BlockString",COMMENT:"Comment"}),x=r(21834);var D=function(e,t){return e instanceof t};function _(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var Q=function(){function e(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"GraphQL request",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{line:1,column:1};"string"===typeof e||i(0,"Body must be a string. Received: ".concat((0,x.Z)(e),".")),this.body=e,this.name=t,this.locationOffset=r,this.locationOffset.line>0||i(0,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||i(0,"column in locationOffset is 1-indexed and must be positive.")}var t,r,n;return t=e,(r=[{key:s,get:function(){return"Source"}}])&&_(t.prototype,r),n&&_(t,n),e}();var A=Object.freeze({QUERY:"QUERY",MUTATION:"MUTATION",SUBSCRIPTION:"SUBSCRIPTION",FIELD:"FIELD",FRAGMENT_DEFINITION:"FRAGMENT_DEFINITION",FRAGMENT_SPREAD:"FRAGMENT_SPREAD",INLINE_FRAGMENT:"INLINE_FRAGMENT",VARIABLE_DEFINITION:"VARIABLE_DEFINITION",SCHEMA:"SCHEMA",SCALAR:"SCALAR",OBJECT:"OBJECT",FIELD_DEFINITION:"FIELD_DEFINITION",ARGUMENT_DEFINITION:"ARGUMENT_DEFINITION",INTERFACE:"INTERFACE",UNION:"UNION",ENUM:"ENUM",ENUM_VALUE:"ENUM_VALUE",INPUT_OBJECT:"INPUT_OBJECT",INPUT_FIELD_DEFINITION:"INPUT_FIELD_DEFINITION"});function C(e){var t=e.split(/\r\n|[\n\r]/g),r=function(e){for(var t,r=!0,n=!0,i=0,o=null,s=0;s<e.length;++s)switch(e.charCodeAt(s)){case 13:10===e.charCodeAt(s+1)&&++s;case 10:r=!1,n=!0,i=0;break;case 9:case 32:++i;break;default:n&&!r&&(null===o||i<o)&&(o=i),n=!1}return null!==(t=o)&&void 0!==t?t:0}(e);if(0!==r)for(var n=1;n<t.length;n++)t[n]=t[n].slice(r);for(var i=0;i<t.length&&q(t[i]);)++i;for(var o=t.length;o>i&&q(t[o-1]);)--o;return t.slice(i,o).join("\n")}function q(e){for(var t=0;t<e.length;++t)if(" "!==e[t]&&"\t"!==e[t])return!1;return!0}var M=function(){function e(e){var t=new N.WU(R.SOF,0,0,0,0,null);this.source=e,this.lastToken=t,this.token=t,this.line=1,this.lineStart=0}var t=e.prototype;return t.advance=function(){return this.lastToken=this.token,this.token=this.lookahead()},t.lookahead=function(){var e=this.token;if(e.kind!==R.EOF)do{var t;e=null!==(t=e.next)&&void 0!==t?t:e.next=F(this,e)}while(e.kind===R.COMMENT);return e},e}();function P(e){return isNaN(e)?R.EOF:e<127?JSON.stringify(String.fromCharCode(e)):'"\\u'.concat(("00"+e.toString(16).toUpperCase()).slice(-4),'"')}function F(e,t){for(var r=e.source,n=r.body,i=n.length,o=t.end;o<i;){var s=n.charCodeAt(o),a=e.line,u=1+o-e.lineStart;switch(s){case 65279:case 9:case 32:case 44:++o;continue;case 10:++o,++e.line,e.lineStart=o;continue;case 13:10===n.charCodeAt(o+1)?o+=2:++o,++e.line,e.lineStart=o;continue;case 33:return new N.WU(R.BANG,o,o+1,a,u,t);case 35:return j(r,o,a,u,t);case 36:return new N.WU(R.DOLLAR,o,o+1,a,u,t);case 38:return new N.WU(R.AMP,o,o+1,a,u,t);case 40:return new N.WU(R.PAREN_L,o,o+1,a,u,t);case 41:return new N.WU(R.PAREN_R,o,o+1,a,u,t);case 46:if(46===n.charCodeAt(o+1)&&46===n.charCodeAt(o+2))return new N.WU(R.SPREAD,o,o+3,a,u,t);break;case 58:return new N.WU(R.COLON,o,o+1,a,u,t);case 61:return new N.WU(R.EQUALS,o,o+1,a,u,t);case 64:return new N.WU(R.AT,o,o+1,a,u,t);case 91:return new N.WU(R.BRACKET_L,o,o+1,a,u,t);case 93:return new N.WU(R.BRACKET_R,o,o+1,a,u,t);case 123:return new N.WU(R.BRACE_L,o,o+1,a,u,t);case 124:return new N.WU(R.PIPE,o,o+1,a,u,t);case 125:return new N.WU(R.BRACE_R,o,o+1,a,u,t);case 34:return 34===n.charCodeAt(o+1)&&34===n.charCodeAt(o+2)?G(r,o,a,u,t,e):B(r,o,a,u,t);case 45:case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return V(r,o,s,a,u,t);
1case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:case 95:case 97:case 98:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:case 108:case 109:case 110:case 111:case 112:case 113:case 114:case 115:case 116:case 117:case 118:case 119:case 120:case 121:case 122:return W(r,o,a,u,t)}throw T(r,o,L(s))}var c=e.line,l=1+o-e.lineStart;return new N.WU(R.EOF,i,i,c,l,t)}function L(e){return e<32&&9!==e&&10!==e&&13!==e?"Cannot contain the invalid character ".concat(P(e),"."):39===e?"Unexpected single quote character ('), did you mean to use a double quote (\")?":"Cannot parse the unexpected character ".concat(P(e),".")}function j(e,t,r,n,i){var o,s=e.body,a=t;do{o=s.charCodeAt(++a)}while(!isNaN(o)&&(o>31||9===o));return new N.WU(R.COMMENT,t,a,r,n,i,s.slice(t+1,a))}function V(e,t,r,n,i,o){var s=e.body,a=r,u=t,c=!1;if(45===a&&(a=s.charCodeAt(++u)),48===a){if((a=s.charCodeAt(++u))>=48&&a<=57)throw T(e,u,"Invalid number, unexpected digit after 0: ".concat(P(a),"."))}else u=U(e,u,a),a=s.charCodeAt(u);if(46===a&&(c=!0,a=s.charCodeAt(++u),u=U(e,u,a),a=s.charCodeAt(u)),69!==a&&101!==a||(c=!0,43!==(a=s.charCodeAt(++u))&&45!==a||(a=s.charCodeAt(++u)),u=U(e,u,a),a=s.charCodeAt(u)),46===a||function(e){return 95===e||e>=65&&e<=90||e>=97&&e<=122}(a))throw T(e,u,"Invalid number, expected digit but got: ".concat(P(a),"."));return new N.WU(c?R.FLOAT:R.INT,t,u,n,i,o,s.slice(t,u))}function U(e,t,r){var n=e.body,i=t,o=r;if(o>=48&&o<=57){do{o=n.charCodeAt(++i)}while(o>=48&&o<=57);return i}throw T(e,i,"Invalid number, expected digit but got: ".concat(P(o),"."))}function B(e,t,r,n,i){for(var o,s,a,u,c=e.body,l=t+1,p=l,f=0,h="";l<c.length&&!isNaN(f=c.charCodeAt(l))&&10!==f&&13!==f;){if(34===f)return h+=c.slice(p,l),new N.WU(R.STRING,t,l+1,r,n,i,h);if(f<32&&9!==f)throw T(e,l,"Invalid character within String: ".concat(P(f),"."));if(++l,92===f){switch(h+=c.slice(p,l-1),f=c.charCodeAt(l)){case 34:h+='"';break;case 47:h+="/";break;case 92:h+="\\";break;case 98:h+="\b";break;case 102:h+="\f";break;case 110:h+="\n";break;case 114:h+="\r";break;case 116:h+="\t";break;case 117:var v=(o=c.charCodeAt(l+1),s=c.charCodeAt(l+2),a=c.charCodeAt(l+3),u=c.charCodeAt(l+4),K(o)<<12|K(s)<<8|K(a)<<4|K(u));if(v<0){var d=c.slice(l+1,l+5);throw T(e,l,"Invalid character escape sequence: \\u".concat(d,"."))}h+=String.fromCharCode(v),l+=4;break;default:throw T(e,l,"Invalid character escape sequence: \\".concat(String.fromCharCode(f),"."))}p=++l}}throw T(e,l,"Unterminated string.")}function G(e,t,r,n,i,o){for(var s=e.body,a=t+3,u=a,c=0,l="";a<s.length&&!isNaN(c=s.charCodeAt(a));){if(34===c&&34===s.charCodeAt(a+1)&&34===s.charCodeAt(a+2))return l+=s.slice(u,a),new N.WU(R.BLOCK_STRING,t,a+3,r,n,i,C(l));if(c<32&&9!==c&&10!==c&&13!==c)throw T(e,a,"Invalid character within String: ".concat(P(c),"."));10===c?(++a,++o.line,o.lineStart=a):13===c?(10===s.charCodeAt(a+1)?a+=2:++a,++o.line,o.lineStart=a):92===c&&34===s.charCodeAt(a+1)&&34===s.charCodeAt(a+2)&&34===s.charCodeAt(a+3)?(l+=s.slice(u,a)+'"""',u=a+=4):++a}throw T(e,a,"Unterminated string.")}function K(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function W(e,t,r,n,i){for(var o=e.body,s=o.length,a=t+1,u=0;
vendor: 18,143 bytes, line 1
1a!==s&&!isNaN(u=o.charCodeAt(a))&&(95===u||u>=48&&u<=57||u>=65&&u<=90||u>=97&&u<=122);)++a;return new N.WU(R.NAME,t,a,r,n,i,o.slice(t,a))}var z=function(){function e(e,t){var r=function(e){return D(e,Q)}(e)?e:new Q(e);this._lexer=new M(r),this._options=t}var t=e.prototype;return t.parseName=function(){var e=this.expectToken(R.NAME);return{kind:I.NAME,value:e.value,loc:this.loc(e)}},t.parseDocument=function(){var e=this._lexer.token;return{kind:I.DOCUMENT,definitions:this.many(R.SOF,this.parseDefinition,R.EOF),loc:this.loc(e)}},t.parseDefinition=function(){if(this.peek(R.NAME))switch(this._lexer.token.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"schema":case"scalar":case"type":case"interface":case"union":case"enum":case"input":case"directive":return this.parseTypeSystemDefinition();case"extend":return this.parseTypeSystemExtension()}else{if(this.peek(R.BRACE_L))return this.parseOperationDefinition();if(this.peekDescription())return this.parseTypeSystemDefinition()}throw this.unexpected()},t.parseOperationDefinition=function(){var e=this._lexer.token;if(this.peek(R.BRACE_L))return{kind:I.OPERATION_DEFINITION,operation:"query",name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet(),loc:this.loc(e)};var t,r=this.parseOperationType();return this.peek(R.NAME)&&(t=this.parseName()),{kind:I.OPERATION_DEFINITION,operation:r,name:t,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(e)}},t.parseOperationType=function(){var e=this.expectToken(R.NAME);switch(e.value){case"query":return"query";case"mutation":return"mutation";case"subscription":return"subscription"}throw this.unexpected(e)},t.parseVariableDefinitions=function(){return this.optionalMany(R.PAREN_L,this.parseVariableDefinition,R.PAREN_R)},t.parseVariableDefinition=function(){var e=this._lexer.token;return{kind:I.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(R.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(R.EQUALS)?this.parseValueLiteral(!0):void 0,directives:this.parseDirectives(!0),loc:this.loc(e)}},t.parseVariable=function(){var e=this._lexer.token;return this.expectToken(R.DOLLAR),{kind:I.VARIABLE,name:this.parseName(),loc:this.loc(e)}},t.parseSelectionSet=function(){var e=this._lexer.token;return{kind:I.SELECTION_SET,selections:this.many(R.BRACE_L,this.parseSelection,R.BRACE_R),loc:this.loc(e)}},t.parseSelection=function(){return this.peek(R.SPREAD)?this.parseFragment():this.parseField()},t.parseField=function(){var e,t,r=this._lexer.token,n=this.parseName();return this.expectOptionalToken(R.COLON)?(e=n,t=this.parseName()):t=n,{kind:I.FIELD,alias:e,name:t,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(R.BRACE_L)?this.parseSelectionSet():void 0,loc:this.loc(r)}},t.parseArguments=function(e){var t=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(R.PAREN_L,t,R.PAREN_R)},t.parseArgument=function(){var e=this._lexer.token,t=this.parseName();return this.expectToken(R.COLON),{kind:I.ARGUMENT,name:t,value:this.parseValueLiteral(!1),loc:this.loc(e)}},t.parseConstArgument=function(){var e=this._lexer.token;return{kind:I.ARGUMENT,name:this.parseName(),value:(this.expectToken(R.COLON),this.parseValueLiteral(!0)),loc:this.loc(e)}},t.parseFragment=function(){var e=this._lexer.token;this.expectToken(R.SPREAD);var t=this.expectOptionalKeyword("on");return!t&&this.peek(R.NAME)?{kind:I.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1),loc:this.loc(e)}:{kind:I.INLINE_FRAGMENT,typeCondition:t?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(e)}},t.parseFragmentDefinition=function(){var e,t=this._lexer.token;return this.expectKeyword("fragment"),!0===(null===(e=this._options)||void 0===e?void 0:e.experimentalFragmentVariables)?{kind:I.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(t)}:{kind:I.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet(),loc:this.loc(t)}},t.parseFragmentName=function(){if("on"===this._lexer.token.value)throw this.unexpected();return this.parseName()},t.parseValueLiteral=function(e){var t=this._lexer.token;switch(t.kind){case R.BRACKET_L:return this.parseList(e);case R.BRACE_L:return this.parseObject(e);case R.INT:return this._lexer.advance(),{kind:I.INT,value:t.value,loc:this.loc(t)};case R.FLOAT:return this._lexer.advance(),{kind:I.FLOAT,value:t.value,loc:this.loc(t)};case R.STRING:case R.BLOCK_STRING:return this.parseStringLiteral();case R.NAME:switch(this._lexer.advance(),t.value){case"true":return{kind:I.BOOLEAN,value:!0,loc:this.loc(t)};case"false":return{kind:I.BOOLEAN,value:!1,loc:this.loc(t)};case"null":return{kind:I.NULL,loc:this.loc(t)};default:return{kind:I.ENUM,value:t.value,loc:this.loc(t)}}case R.DOLLAR:if(!e)return this.parseVariable()}throw this.unexpected()},t.parseStringLiteral=function(){var e=this._lexer.token;return this._lexer.advance(),{kind:I.STRING,value:e.value,block:e.kind===R.BLOCK_STRING,loc:this.loc(e)}},t.parseList=function(e){var t=this,r=this._lexer.token;return{kind:I.LIST,values:this.any(R.BRACKET_L,(function(){return t.parseValueLiteral(e)}),R.BRACKET_R),loc:this.loc(r)}},t.parseObject=function(e){var t=this,r=this._lexer.token;return{kind:I.OBJECT,fields:this.any(R.BRACE_L,(function(){return t.parseObjectField(e)}),R.BRACE_R),loc:this.loc(r)}},t.parseObjectField=function(e){var t=this._lexer.token,r=this.parseName();return this.expectToken(R.COLON),{kind:I.OBJECT_FIELD,name:r,value:this.parseValueLiteral(e),loc:this.loc(t)}},t.parseDirectives=function(e){for(var t=[];this.peek(R.AT);)t.push(this.parseDirective(e));return t},t.parseDirective=function(e){var t=this._lexer.token;return this.expectToken(R.AT),{kind:I.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e),loc:this.loc(t)}},t.parseTypeReference=function(){var e,t=this._lexer.token;return this.expectOptionalToken(R.BRACKET_L)?(e=this.parseTypeReference(),this.expectToken(R.BRACKET_R),e={kind:I.LIST_TYPE,type:e,loc:this.loc(t)}):e=this.parseNamedType(),this.expectOptionalToken(R.BANG)?{kind:I.NON_NULL_TYPE,type:e,loc:this.loc(t)}:e},t.parseNamedType=function(){var e=this._lexer.token;return{kind:I.NAMED_TYPE,name:this.parseName(),loc:this.loc(e)}},t.parseTypeSystemDefinition=function(){var e=this.peekDescription()?this._lexer.lookahead():this._lexer.token;if(e.kind===R.NAME)switch(e.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}throw this.unexpected(e)},t.peekDescription=function(){return this.peek(R.STRING)||this.peek(R.BLOCK_STRING)},t.parseDescription=function(){if(this.peekDescription())return this.parseStringLiteral()},t.parseSchemaDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("schema");var r=this.parseDirectives(!0),n=this.many(R.BRACE_L,this.parseOperationTypeDefinition,R.BRACE_R);return{kind:I.SCHEMA_DEFINITION,description:t,directives:r,operationTypes:n,loc:this.loc(e)}},t.parseOperationTypeDefinition=function(){var e=this._lexer.token,t=this.parseOperationType();this.expectToken(R.COLON);var r=this.parseNamedType();return{kind:I.OPERATION_TYPE_DEFINITION,operation:t,type:r,loc:this.loc(e)}},t.parseScalarTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("scalar");var r=this.parseName(),n=this.parseDirectives(!0);return{kind:I.SCALAR_TYPE_DEFINITION,description:t,name:r,directives:n,loc:this.loc(e)}},t.parseObjectTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("type");var r=this.parseName(),n=this.parseImplementsInterfaces(),i=this.parseDirectives(!0),o=this.parseFieldsDefinition();return{kind:I.OBJECT_TYPE_DEFINITION,description:t,name:r,interfaces:n,directives:i,fields:o,loc:this.loc(e)}},t.parseImplementsInterfaces=function(){var e;if(!this.expectOptionalKeyword("implements"))return[];if(!0===(null===(e=this._options)||void 0===e?void 0:e.allowLegacySDLImplementsInterfaces)){var t=[];this.expectOptionalToken(R.AMP);do{t.push(this.parseNamedType())}while(this.expectOptionalToken(R.AMP)||this.peek(R.NAME));return t}return this.delimitedMany(R.AMP,this.parseNamedType)},t.parseFieldsDefinition=function(){var e;return!0===(null===(e=this._options)||void 0===e?void 0:e.allowLegacySDLEmptyFields)&&this.peek(R.BRACE_L)&&this._lexer.lookahead().kind===R.BRACE_R?(this._lexer.advance(),this._lexer.advance(),[]):this.optionalMany(R.BRACE_L,this.parseFieldDefinition,R.BRACE_R)},t.parseFieldDefinition=function(){var e=this._lexer.token,t=this.parseDescription(),r=this.parseName(),n=this.parseArgumentDefs();this.expectToken(R.COLON);var i=this.parseTypeReference(),o=this.parseDirectives(!0);return{kind:I.FIELD_DEFINITION,description:t,name:r,arguments:n,type:i,directives:o,loc:this.loc(e)}},t.parseArgumentDefs=function(){return this.optionalMany(R.PAREN_L,this.parseInputValueDef,R.PAREN_R)},t.parseInputValueDef=function(){var e=this._lexer.token,t=this.parseDescription(),r=this.parseName();this.expectToken(R.COLON);var n,i=this.parseTypeReference();this.expectOptionalToken(R.EQUALS)&&(n=this.parseValueLiteral(!0));var o=this.parseDirectives(!0);return{kind:I.INPUT_VALUE_DEFINITION,description:t,name:r,type:i,defaultValue:n,directives:o,loc:this.loc(e)}},t.parseInterfaceTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("interface");var r=this.parseName(),n=this.parseImplementsInterfaces(),i=this.parseDirectives(!0),o=this.parseFieldsDefinition();return{kind:I.INTERFACE_TYPE_DEFINITION,description:t,name:r,interfaces:n,directives:i,fields:o,loc:this.loc(e)}},t.parseUnionTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("union");var r=this.parseName(),n=this.parseDirectives(!0),i=this.parseUnionMemberTypes();return{kind:I.UNION_TYPE_DEFINITION,description:t,name:r,directives:n,types:i,loc:this.loc(e)}},t.parseUnionMemberTypes=function(){return this.expectOptionalToken(R.EQUALS)?this.delimitedMany(R.PIPE,this.parseNamedType):[]},t.parseEnumTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("enum");var r=this.parseName(),n=this.parseDirectives(!0),i=this.parseEnumValuesDefinition();return{kind:I.ENUM_TYPE_DEFINITION,description:t,name:r,directives:n,values:i,loc:this.loc(e)}},t.parseEnumValuesDefinition=function(){return this.optionalMany(R.BRACE_L,this.parseEnumValueDefinition,R.BRACE_R)},t.parseEnumValueDefinition=function(){var e=this._lexer.token,t=this.parseDescription(),r=this.parseName(),n=this.parseDirectives(!0);return{kind:I.ENUM_VALUE_DEFINITION,description:t,name:r,directives:n,loc:this.loc(e)}},t.parseInputObjectTypeDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("input");var r=this.parseName(),n=this.parseDirectives(!0),i=this.parseInputFieldsDefinition();return{kind:I.INPUT_OBJECT_TYPE_DEFINITION,description:t,name:r,directives:n,fields:i,loc:this.loc(e)}},t.parseInputFieldsDefinition=function(){return this.optionalMany(R.BRACE_L,this.parseInputValueDef,R.BRACE_R)},t.parseTypeSystemExtension=function(){var e=this._lexer.lookahead();if(e.kind===R.NAME)switch(e.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(e)},t.parseSchemaExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");var t=this.parseDirectives(!0),r=this.optionalMany(R.BRACE_L,this.parseOperationTypeDefinition,R.BRACE_R);if(0===t.length&&0===r.length)throw this.unexpected();return{kind:I.SCHEMA_EXTENSION,directives:t,operationTypes:r,loc:this.loc(e)}},t.parseScalarTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");var t=this.parseName(),r=this.parseDirectives(!0);if(0===r.length)throw this.unexpected();return{kind:I.SCALAR_TYPE_EXTENSION,name:t,directives:r,loc:this.loc(e)}},t.parseObjectTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");var t=this.parseName(),r=this.parseImplementsInterfaces(),n=this.parseDirectives(!0),i=this.parseFieldsDefinition();if(0===r.length&&0===n.length&&0===i.length)throw this.unexpected();return{kind:I.OBJECT_TYPE_EXTENSION,name:t,interfaces:r,directives:n,fields:i,loc:this.loc(e)}},t.parseInterfaceTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");var t=this.parseName(),r=this.parseImplementsInterfaces(),n=this.parseDirectives(!0),i=this.parseFieldsDefinition();if(0===r.length&&0===n.length&&0===i.length)throw this.unexpected();return{kind:I.INTERFACE_TYPE_EXTENSION,name:t,interfaces:r,directives:n,fields:i,loc:this.loc(e)}},t.parseUnionTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");var t=this.parseName(),r=this.parseDirectives(!0),n=this.parseUnionMemberTypes();if(0===r.length&&0===n.length)throw this.unexpected();return{kind:I.UNION_TYPE_EXTENSION,name:t,directives:r,types:n,loc:this.loc(e)}},t.parseEnumTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");var t=this.parseName(),r=this.parseDirectives(!0),n=this.parseEnumValuesDefinition();if(0===r.length&&0===n.length)throw this.unexpected();return{kind:I.ENUM_TYPE_EXTENSION,name:t,directives:r,values:n,loc:this.loc(e)}},t.parseInputObjectTypeExtension=function(){var e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");var t=this.parseName(),r=this.parseDirectives(!0),n=this.parseInputFieldsDefinition();if(0===r.length&&0===n.length)throw this.unexpected();return{kind:I.INPUT_OBJECT_TYPE_EXTENSION,name:t,directives:r,fields:n,loc:this.loc(e)}},t.parseDirectiveDefinition=function(){var e=this._lexer.token,t=this.parseDescription();this.expectKeyword("directive"),this.expectToken(R.AT);var r=this.parseName(),n=this.parseArgumentDefs(),i=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");var o=this.parseDirectiveLocations();return{kind:I.DIRECTIVE_DEFINITION,description:t,name:r,arguments:n,repeatable:i,locations:o,loc:this.loc(e)}},t.parseDirectiveLocations=function(){return this.delimitedMany(R.PIPE,this.parseDirectiveLocation)},t.parseDirectiveLocation=function(){var e=this._lexer.token,t=this.parseName();if(void 0!==A[t.value])return t;throw this.unexpected(e)},t.loc=function(e){var t;if(!0!==(null===(t=this._options)||void 0===t?void 0:t.noLocation))return new N.Ye(e,this._lexer.lastToken,this._lexer.source)},t.peek=function(e){return this._lexer.token.kind===e},t.expectToken=function(e){var t=this._lexer.token;if(t.kind===e)return this._lexer.advance(),t;throw T(this._lexer.source,t.start,"Expected ".concat(Y(e),", found ").concat(J(t),"."))},t.expectOptionalToken=function(e){var t=this._lexer.token;if(t.kind===e)return this._lexer.advance(),t},t.expectKeyword=function(e){var t=this._lexer.token;if(t.kind!==R.NAME||t.value!==e)throw T(this._lexer.source,t.start,'Expected "'.concat(e,'", found ').concat(J(t),"."));this._lexer.advance()},t.expectOptionalKeyword=function(e){var t=this._lexer.token;return t.kind===R.NAME&&t.value===e&&(this._lexer.advance(),!0)},t.unexpected=function(e){var t=null!==e&&void 0!==e?e:this._lexer.token;return T(this._lexer.source,t.start,"Unexpected ".concat(J(t),"."))},t.any=function(e,t,r){this.expectToken(e);for(var n=[];!this.expectOptionalToken(r);)n.push(t.call(this));return n},t.optionalMany=function(e,t,r){if(this.expectOptionalToken(e)){var n=[];do{n.push(t.call(this))}while(!this.expectOptionalToken(r));return n}return[]},t.many=function(e,t,r){this.expectToken(e);var n=[];do{n.push(t.call(this))}while(!this.expectOptionalToken(r));return n},t.delimitedMany=function(e,t){this.expectOptionalToken(e);var r=[];do{r.push(t.call(this))}while(this.expectOptionalToken(e));return r},e}();function J(e){var t=e.value;return Y(e.kind)+(null!=t?' "'.concat(t,'"'):"")}function Y(e){return function(e){return e===R.BANG||e===R.DOLLAR||e===R.AMP||e===R.PAREN_L||e===R.PAREN_R||e===R.SPREAD||e===R.COLON||e===R.EQUALS||e===R.AT||e===R.BRACKET_L||e===R.BRACKET_R||e===R.BRACE_L||e===R.PIPE||e===R.BRACE_R}(e)?'"'.concat(e,'"'):e}var Z=new Map,X=new Map,H=!0,$=!1;function ee(e){return e.replace(/[\s,]+/g," ").trim()}function te(e){var t=new Set,r=[];return e.definitions.forEach((function(e){if("FragmentDefinition"===e.kind){var n=e.name.value,i=ee((s=e.loc).source.body.substring(s.start,s.end)),o=X.get(n);o&&!o.has(i)?H&&console.warn("Warning: fragment with name "+n+" already exists.\ngraphql-tag enforces all fragment names across your application to be unique; read more about\nthis in the docs: http://dev.apollodata.com/core/fragments.html#unique-names"):o||X.set(n,o=new Set),o.add(i),t.has(i)||(t.add(i),r.push(e))}else r.push(e);var s})),(0,n.__assign)((0,n.__assign)({},e),{definitions:r})}function re(e){var t=ee(e);
1if(!Z.has(t)){var r=function(e,t){return new z(e,t).parseDocument()}(e,{experimentalFragmentVariables:$,allowLegacyFragmentVariables:$});if(!r||"Document"!==r.kind)throw new Error("Not a valid GraphQL document.");Z.set(t,function(e){var t=new Set(e.definitions);t.forEach((function(e){e.loc&&delete e.loc,Object.keys(e).forEach((function(r){var n=e[r];n&&"object"===typeof n&&t.add(n)}))}));var r=e.loc;return r&&(delete r.startToken,delete r.endToken),e}(te(r)))}return Z.get(t)}function ne(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];"string"===typeof e&&(e=[e]);var n=e[0];return t.forEach((function(t,r){t&&"Document"===t.kind?n+=t.loc.source.body:n+=t,n+=e[r+1]})),re(n)}var ie,oe=ne,se=function(){Z.clear(),X.clear()},ae=function(){H=!1},ue=function(){$=!0},ce=function(){$=!1};(ie=ne||(ne={})).gql=oe,ie.resetCaches=se,ie.disableFragmentWarnings=ae,ie.enableExperimentalFragmentVariables=ue,ie.disableExperimentalFragmentVariables=ce,ne.default=ne;var le=ne},42822:function(e,t,r){"use strict";r.d(t,{Z:function(){return h}});var n=r(92336),i=r(44194);r(10063);var o=i.createContext(null),s=(o.Consumer,o.Provider,o);function a(){this.cache=Object.create(null)}a.prototype.get=function(e){return this.cache[e]},a.prototype.set=function(e,t){this.cache[e]=t};var u={formats:{},messages:{},timeZone:void 0,defaultLocale:"en",defaultFormats:{},fallbackOnEmptyString:!0,onError:function(e){0},onWarn:function(e){0}};function c(e){!function(e,t,r){if(void 0===r&&(r=Error),!e)throw new r(t)}(e,"[React Intl] Could not find required `intl` object. <IntlProvider> needs to exist in the component ancestry.")}(0,n.__assign)((0,n.__assign)({},u),{textComponent:i.Fragment});function l(e,t){if(e===t)return!0;if(!e||!t)return!1;var r=Object.keys(e),n=Object.keys(t),i=r.length;if(n.length!==i)return!1;for(var o=0;o<i;o++){var s=r[o];if(e[s]!==t[s]||!Object.prototype.hasOwnProperty.call(t,s))return!1}return!0}function p(e){var t=function(){var e=i.useContext(s);return c(e),e}(),r=t.formatMessage,n=t.textComponent,o=void 0===n?i.Fragment:n,a=e.id,u=e.description,l=e.defaultMessage,p=e.values,f=e.children,h=e.tagName,v=void 0===h?o:h,d=r({id:a,description:u,defaultMessage:l},p,{ignoreTag:e.ignoreTag});return"function"===typeof f?f(Array.isArray(d)?d:[d]):v?i.createElement(v,null,i.Children.toArray(d)):i.createElement(i.Fragment,null,d)}p.displayName="FormattedMessage";var f=i.memo(p,(function(e,t){var r=e.values,i=(0,n.__rest)(e,["values"]),o=t.values,s=(0,n.__rest)(t,["values"]);return l(o,r)&&l(i,s)}));f.displayName="MemoizedFormattedMessage";var h=f},53915:function(e,t,r){"use strict";r.d(t,{Z:function(){return n}}),e=r.hmd(e);var n=function(e){var t,r=e.Symbol;return"function"===typeof r?r.observable?t=r.observable:(t=r("observable"),r.observable=t):t="@@observable",t}("undefined"!==typeof self?self:"undefined"!==typeof window?window:"undefined"!==typeof r.g?r.g:e)},61100:function(e,t,r){e.exports=r(89292).Observable},89292:function(e,t){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function i(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e}t.Observable=void 0;var o=function(){return"function"===typeof Symbol},s=function(e){return o()&&Boolean(Symbol[e])},a=function(e){return s(e)?Symbol[e]:"@@"+e};o()&&!s("observable")&&(Symbol.observable=Symbol("observable"));var u=a("iterator"),c=a("observable"),l=a("species");function p(e,t){var r=e[t];if(null!=r){if("function"!==typeof r)throw new TypeError(r+" is not a function");return r}}function f(e){var t=e.constructor;return void 0!==t&&null===(t=t[l])&&(t=void 0),void 0!==t?t:k}function h(e){return e instanceof k}function v(e){v.log?v.log(e):setTimeout((function(){throw e}))}function d(e){Promise.resolve().then((function(){try{e()}catch(t){v(t)}}))}function y(e){var t=e._cleanup;if(void 0!==t&&(e._cleanup=void 0,t))try{if("function"===typeof t)t();else{var r=p(t,"unsubscribe");r&&r.call(t)}}catch(n){v(n)}}function b(e){e._observer=void 0,e._queue=void 0,e._state="closed"}function m(e,t,r){e._state="running";var n=e._observer;try{var i=p(n,t);switch(t){case"next":i&&i.call(n,r);break;case"error":if(b(e),!i)throw r;i.call(n,r);break;case"complete":b(e),i&&i.call(n)}}catch(o){v(o)}"closed"===e._state?y(e):"running"===e._state&&(e._state="ready")}function g(e,t,r){if("closed"!==e._state){if("buffering"!==e._state)return"ready"!==e._state?(e._state="buffering",e._queue=[{type:t,value:r}],void d((function(){return function(e){var t=e._queue;if(t){e._queue=void 0,e._state="ready";for(var r=0;r<t.length&&(m(e,t[r].type,t[r].value),"closed"!==e._state);++r);}}(e)}))):void m(e,t,r);e._queue.push({type:t,value:r})}}var E=function(){function e(t,n){r(this,e),this._cleanup=void 0,this._observer=t,this._queue=void 0,this._state="initializing";var i=new O(this);try{this._cleanup=n.call(void 0,i)}catch(o){i.error(o)}"initializing"===this._state&&(this._state="ready")}return i(e,[{key:"unsubscribe",value:function(){"closed"!==this._state&&(b(this),y(this))}},{key:"closed",get:function(){return"closed"===this._state}}]),e}(),O=function(){function e(t){r(this,e),this._subscription=t}return i(e,[{key:"next",value:function(e){g(this._subscription,"next",e)}},{key:"error",value:function(e){g(this._subscription,"error",e)}},{key:"complete",value:function(){g(this._subscription,"complete")}},{key:"closed",get:function(){return"closed"===this._subscription._state}}]),e}(),k=function(){function e(t){if(r(this,e),!(this instanceof e))throw new TypeError("Observable cannot be called as a function");if("function"!==typeof t)throw new TypeError("Observable initializer must be a function");this._subscriber=t}return i(e,[{key:"subscribe",value:function(e){return"object"===typeof e&&null!==e||(e={next:e,error:arguments[1],complete:arguments[2]}),new E(e,this._subscriber)}}
vendor: 4,390 bytes, line 1
1,{key:"forEach",value:function(e){var t=this;return new Promise((function(r,n){if("function"===typeof e)var i=t.subscribe({next:function(t){try{e(t,o)}catch(r){n(r),i.unsubscribe()}},error:n,complete:r});else n(new TypeError(e+" is not a function"));function o(){i.unsubscribe(),r()}}))}},{key:"map",value:function(e){var t=this;if("function"!==typeof e)throw new TypeError(e+" is not a function");return new(f(this))((function(r){return t.subscribe({next:function(t){try{t=e(t)}catch(n){return r.error(n)}r.next(t)},error:function(e){r.error(e)},complete:function(){r.complete()}})}))}},{key:"filter",value:function(e){var t=this;if("function"!==typeof e)throw new TypeError(e+" is not a function");return new(f(this))((function(r){return t.subscribe({next:function(t){try{if(!e(t))return}catch(n){return r.error(n)}r.next(t)},error:function(e){r.error(e)},complete:function(){r.complete()}})}))}},{key:"reduce",value:function(e){var t=this;if("function"!==typeof e)throw new TypeError(e+" is not a function");var r=f(this),n=arguments.length>1,i=!1,o=arguments[1],s=o;return new r((function(r){return t.subscribe({next:function(t){var o=!i;if(i=!0,!o||n)try{s=e(s,t)}catch(a){return r.error(a)}else s=t},error:function(e){r.error(e)},complete:function(){if(!i&&!n)return r.error(new TypeError("Cannot reduce an empty sequence"));r.next(s),r.complete()}})}))}},{key:"concat",value:function(){for(var e=this,t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i=f(this);return new i((function(t){var n,o=0;return function e(s){n=s.subscribe({next:function(e){t.next(e)},error:function(e){t.error(e)},complete:function(){o===r.length?(n=void 0,t.complete()):e(i.from(r[o++]))}})}(e),function(){n&&(n.unsubscribe(),n=void 0)}}))}},{key:"flatMap",value:function(e){var t=this;if("function"!==typeof e)throw new TypeError(e+" is not a function");var r=f(this);return new r((function(n){var i=[],o=t.subscribe({next:function(t){if(e)try{t=e(t)}catch(a){return n.error(a)}var o=r.from(t).subscribe({next:function(e){n.next(e)},error:function(e){n.error(e)},complete:function(){var e=i.indexOf(o);e>=0&&i.splice(e,1),s()}});i.push(o)},error:function(e){n.error(e)},complete:function(){s()}});function s(){o.closed&&0===i.length&&n.complete()}return function(){i.forEach((function(e){return e.unsubscribe()})),o.unsubscribe()}}))}},{key:c,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=p(t,c);if(n){var i=n.call(t);if(Object(i)!==i)throw new TypeError(i+" is not an object");return h(i)&&i.constructor===r?i:new r((function(e){return i.subscribe(e)}))}if(s("iterator")&&(n=p(t,u)))return new r((function(e){d((function(){if(!e.closed){var r=!0,i=!1,o=void 0;try{for(var s,a=n.call(t)[Symbol.iterator]();!(r=(s=a.next()).done);r=!0){var u=s.value;if(e.next(u),e.closed)return}}catch(c){i=!0,o=c}finally{try{r||null==a.return||a.return()}finally{if(i)throw o}}e.complete()}}))}));if(Array.isArray(t))return new r((function(e){d((function(){if(!e.closed){for(var r=0;r<t.length;++r)if(e.next(t[r]),e.closed)return;e.complete()}}))}));throw new TypeError(t+" is not observable")}},{key:"of",value:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i="function"===typeof this?this:e;return new i((function(e){d((function(){if(!e.closed){for(var t=0;t<r.length;++t)if(e.next(r[t]),e.closed)return;e.complete()}}))}))}},{key:l,get:function(){return this}}]),e}();t.Observable=k,o()&&Object.defineProperty(k,Symbol("extensions"),{value:{symbol:c,hostReportError:v},configurable:!0})},15771:function(e,t,r){"use strict";function n(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}r.d(t,{Z:function(){return n}})},21834:function(e,t,r){"use strict";r.d(t,{Z:function(){return o}});var n=r(1386);function i(e){return i="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},i(e)}function o(e){return s(e,[])}function s(e,t){switch(i(e)){case"string":return JSON.stringify(e);case"function":return e.name?"[function ".concat(e.name,"]"):"[function]";case"object":return null===e?"null":function(e,t){if(-1!==t.indexOf(e))return"[Circular]";
1var r=[].concat(t,[e]),i=function(e){var t=e[String(n.Z)];if("function"===typeof t)return t;if("function"===typeof e.inspect)return e.inspect}(e);if(void 0!==i){var o=i.call(e);if(o!==e)return"string"===typeof o?o:s(o,r)}else if(Array.isArray(e))return function(e,t){if(0===e.length)return"[]";if(t.length>2)return"[Array]";for(var r=Math.min(10,e.length),n=e.length-r,i=[],o=0;o<r;++o)i.push(s(e[o],t));1===n?i.push("... 1 more item"):n>1&&i.push("... ".concat(n," more items"));return"["+i.join(", ")+"]"}(e,r);return function(e,t){var r=Object.keys(e);if(0===r.length)return"{}";if(t.length>2)return"["+function(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}(e)+"]";var n=r.map((function(r){return r+": "+s(e[r],t)}));return"{ "+n.join(", ")+" }"}(e,r)}(e,t);default:return String(e)}}},1386:function(e,t){"use strict";var r="function"===typeof Symbol&&"function"===typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):void 0;t.Z=r},20606:function(e,t,r){"use strict";r.d(t,{Ye:function(){return o},WU:function(){return s},UG:function(){return a}});var n=r(1386);function i(e){var t=e.prototype.toJSON;"function"===typeof t||function(e,t){if(!Boolean(e))throw new Error(null!=t?t:"Unexpected invariant triggered.")}(0),e.prototype.inspect=t,n.Z&&(e.prototype[n.Z]=t)}var o=function(){function e(e,t,r){this.start=e.start,this.end=t.end,this.startToken=e,this.endToken=t,this.source=r}return e.prototype.toJSON=function(){return{start:this.start,end:this.end}},e}();i(o);var s=function(){function e(e,t,r,n,i,o,s){this.kind=e,this.start=t,this.end=r,this.line=n,this.column=i,this.value=s,this.prev=o,this.next=null}return e.prototype.toJSON=function(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}},e}();function a(e){return null!=e&&"string"===typeof e.kind}i(s)}}]);
2//# sourceMappingURL=613-28b554bbf0058d2d.js.map

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