1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4100],{74100:function(e,t,r){r.r(t),r.d(t,{ApolloCache:function(){return Gn},ApolloClient:function(){return Kn},ApolloConsumer:function(){return ra},ApolloError:function(){return it},ApolloLink:function(){return xe},ApolloProvider:function(){return ta},Cache:function(){return zn},DocumentType:function(){return ia},HttpLink:function(){return Yt},InMemoryCache:function(){return Gi},MissingFieldError:function(){return Yn},NetworkStatus:function(){return Cr},Observable:function(){return te},ObservableQuery:function(){return Qr},checkFetcher:function(){return _t},concat:function(){return Hi},createHttpLink:function(){return Gt},createSignalIfSupported:function(){return Ut},defaultDataIdFromObject:function(){return Zn},defaultPrinter:function(){return qt},disableExperimentalFragmentVariables:function(){return zo},disableFragmentWarnings:function(){return Bo},empty:function(){return Yi},enableExperimentalFragmentVariables:function(){return Uo},execute:function(){return Ie},fallbackHttpConfig:function(){return Mt},from:function(){return Ji},fromError:function(){return Wt},fromPromise:function(){return Zi},getApolloContext:function(){return ea},gql:function(){return Vo},isApolloError:function(){return nt},isReference:function(){return se},makeReference:function(){return ae},makeVar:function(){return An},mergeOptions:function(){return Un},operationName:function(){return ua},parseAndCheckHttpResponse:function(){return gt},parser:function(){return la},resetApolloContext:function(){return ea},resetCaches:function(){return Qo},rewriteURIForGET:function(){return zt},selectHttpOptionsAndBody:function(){return Vt},selectHttpOptionsAndBodyInternal:function(){return Qt},selectURI:function(){return ze},serializeFetchParameter:function(){return Ue},setLogVerbosity:function(){return b},split:function(){return $i},throwServerError:function(){return tt},toPromise:function(){return Xi},useApolloClient:function(){return na},useFragment_experimental:function(){return Ea},useLazyQuery:function(){return ma},useMutation:function(){return ba},useQuery:function(){return ha},useReactiveVar:function(){return _a},useSubscription:function(){return ga}});
1var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)};function i(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var o=function(){return o=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},o.apply(this,arguments)};function a(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]])}return r}function s(e,t,r,n){return new(r||(r=Promise))((function(i,o){function a(e){try{c(n.next(e))}catch(t){o(t)}}function s(e){try{c(n.throw(e))}catch(t){o(t)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}c((n=n.apply(e,t||[])).next())}))}function c(e,t){var r,n,i,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},a=Object.create(("function"===typeof Iterator?Iterator:Object).prototype);return a.next=s(0),a.throw=s(1),a.return=s(2),"function"===typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(c){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(o=0)),o;)try{if(r=1,n&&(i=2&s[0]?n.return:s[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,s[1])).done)return i;switch(n=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,n=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!(i=(i=o.trys).length>0&&i[i.length-1])&&(6===s[0]||2===s[0])){o=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){o.label=s[1];break}if(6===s[0]&&o.label<i[1]){o.label=i[1],i=s;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(s);break}i[2]&&o.ops.pop(),o.trys.pop();continue}s=t.call(e,o)}catch(c){s=[6,c],n=0}finally{r=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,c])}}}Object.create;function u(e,t,r){if(r||2===arguments.length)for(var n,i=0,o=t.length;i<o;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))}Object.create;"function"===typeof SuppressedError&&SuppressedError;var l="Invariant Violation",f=Object.setPrototypeOf,p=void 0===f?function(e,t){return e.__proto__=t,e}:f,h=function(e){function t(r){void 0===r&&(r=l);var n=e.call(this,"number"===typeof r?l+": "+r+" (see https://github.com/apollographql/invariant-packages)":r)||this;return n.framesToPop=1,n.name=l,p(n,t.prototype),n}return i(t,e),t}(Error);function d(e,t){if(!e)throw new h(t)}var v=["debug","log","warn","error","silent"],y=v.indexOf("log");function m(e){return function(){if(v.indexOf(e)>=y){var t=console[e]||console.log;return t.apply(console,arguments)}}}function b(e){var t=v[y];return y=Math.max(0,v.indexOf(e)),t}!function(e){e.debug=m("debug"),e.log=m("log"),e.warn=m("warn"),e.error=m("error")}(d||(d={}));function g(e){try{return e()}catch(f){}}var _=g((function(){return globalThis}))||g((function(){return window}))||g((function(){return self}))||g((function(){return global}))||g((function(){return g.constructor("return this")()})),E="__",O=[E,E].join("DEV");var w=function(){try{return Boolean(__DEV__)}catch(f){return Object.defineProperty(_,O,{value:"production"!==g((function(){return"production"})),enumerable:!1,configurable:!0,writable:!0}),_[O]}}(),k=r(34155);function S(e){try{return e()}catch(t){}}var T=S((function(){return globalThis}))||S((function(){return window}))||S((function(){return self}))||S((function(){return global}))||S((function(){return S.constructor("return this")()})),D=!1;function x(){D&&(delete T.process,D=!1)}function I(e,t){if(!Boolean(e))throw new Error(t)}!T||S((function(){return"production"}))||S((function(){return k}))||(Object.defineProperty(T,"process",{value:{env:{NODE_ENV:"production"}},configurable:!0,enumerable:!1,writable:!0}),D=!0);function N(e){return R(e,[])}function R(e,t){switch(typeof e){case"string":return JSON.stringify(e);case"function":return e.name?`[function ${e.name}]`:"[function]";case"object":return function(e,t){if(null===e)return"null";if(t.includes(e))return"[Circular]";const r=[...t,e];if(function(e){return"function"===typeof e.toJSON}(e)){const t=e.toJSON();if(t!==e)return"string"===typeof t?t:R(t,r)}else if(Array.isArray(e))return function(e,t){if(0===e.length)return"[]";if(t.length>2)return"[Array]";const r=Math.min(10,e.length),n=e.length-r,i=[];for(let o=0;o<r;++o)i.push(R(e[o],t));1===n?i.push("... 1 more item"):n>1&&i.push(`... ${n} more items`);return"["+i.join(", ")+"]"}(e,r);return function(e,t){const r=Object.entries(e);if(0===r.length)return"{}";if(t.length>2)return"["+function(e){const t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if("Object"===t&&"function"===typeof e.constructor){const t=e.constructor.name;if("string"===typeof t&&""!==t)return t}return t}(e)+"]";const n=r.map((([e,r])=>e+": "+R(r,t)));return"{ "+n.join(", ")+" }"}(e,r)}(e,t);default:return String(e)}}const C=function(e,t){return e instanceof t};class A{constructor(e,t="GraphQL request",r={line:1,column:1}){"string"===typeof e||I(!1,`Body must be a string. Received: ${N(e)}.`),this.body=e,this.name=t,this.locationOffset=r,this.locationOffset.line>0||I(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||I(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}}function F(e,t){var r="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"===typeof e)return P(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return P(e,t)}(e))||t&&e&&"number"===typeof e.length){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function P(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function j(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 L(e,t,r){return t&&j(e.prototype,t),r&&j(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}x(),__DEV__?d("boolean"===typeof w,w):d("boolean"===typeof w,39);var M=function(){return"function"===typeof Symbol},q=function(e){return M()&&Boolean(Symbol[e])},V=function(e){return q(e)?Symbol[e]:"@@"+e};M()&&!q("observable")&&(Symbol.observable=Symbol("observable"));var Q=V("iterator"),B=V("observable"),U=V("species");function z(e,t){var r=e[t];if(null!=r){if("function"!==typeof r)throw new TypeError(r+" is not a function");return r}}function W(e){var t=e.constructor;return void 0!==t&&null===(t=t[U])&&(t=void 0),void 0!==t?t:te}function K(e){return e instanceof te}function G(e){G.log?G.log(e):setTimeout((function(){throw e}))}function Y(e){Promise.resolve().then((function(){try{e()}catch(t){G(t)}}))}function J(e){var t=e._cleanup;if(void 0!==t&&(e._cleanup=void 0,t))try{if("function"===typeof t)t();else{var r=z(t,"unsubscribe");r&&r.call(t)}}catch(n){G(n)}}function $(e){e._observer=void 0,e._queue=void 0,e._state="closed"}function H(e,t,r){e._state="running";var n=e._observer;try{var i=z(n,t);switch(t){case"next":i&&i.call(n,r);break;case"error":if($(e),!i)throw r;i.call(n,r);break;case"complete":$(e),i&&i.call(n)}}catch(o){G(o)}"closed"===e._state?J(e):"running"===e._state&&(e._state="ready")}function X(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 Y((function(){return function(e){var t=e._queue;if(t){e._queue=void 0,e._state="ready";for(var r=0;r<t.length&&(H(e,t[r].type,t[r].value),"closed"!==e._state);++r);}}(e)}))):void H(e,t,r);e._queue.push({type:t,value:r})}}var Z=function(){function e(e,t){this._cleanup=void 0,this._observer=e,this._queue=void 0,this._state="initializing";var r=new ee(this);try{this._cleanup=t.call(void 0,r)}catch(n){r.error(n)}"initializing"===this._state&&(this._state="ready")}return e.prototype.unsubscribe=function(){"closed"!==this._state&&($(this),J(this))},L(e,[{key:"closed",get:function(){return"closed"===this._state}}]),e}(),ee=function(){function e(e){this._subscription=e}var t=e.prototype;return t.next=function(e){X(this._subscription,"next",e)},t.error=function(e){X(this._subscription,"error",e)},t.complete=function(){X(this._subscription,"complete")},L(e,[{key:"closed",get:function(){return"closed"===this._subscription._state}}]),e}(),te=function(){function e(t){if(!(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}var t=e.prototype;return t.subscribe=function(e){return"object"===typeof e&&null!==e||(e={next:e,error:arguments[1],complete:arguments[2]}),new Z(e,this._subscriber)},t.forEach=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()}}))},t.map=function(e){var t=this;if("function"!==typeof e)throw new TypeError(e+" is not a function");return new(W(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()}})}))},t.filter=function(e){var t=this;if("function"!==typeof e)throw new TypeError(e+" is not a function");return new(W(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()}})}))},t.reduce=function(e){var t=this;if("function"!==typeof e)throw new TypeError(e+" is not a function");var r=W(this),n=arguments.length>1,i=!1,o=arguments[1],a=o;return new r((function(r){return t.subscribe({next:function(t){var o=!i;if(i=!0,!o||n)try{a=e(a,t)}catch(s){return r.error(s)}else a=t},error:function(e){r.error(e)},complete:function(){if(!i&&!n)return r.error(new TypeError("Cannot reduce an empty sequence"));r.next(a),r.complete()}})}))},t.concat=function(){for(var e=this,t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i=W(this);return new i((function(t){var n,o=0;return function e(a){n=a.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++]
1))}})}(e),function(){n&&(n.unsubscribe(),n=void 0)}}))},t.flatMap=function(e){var t=this;if("function"!==typeof e)throw new TypeError(e+" is not a function");var r=W(this);return new r((function(n){var i=[],o=t.subscribe({next:function(t){if(e)try{t=e(t)}catch(s){return n.error(s)}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),a()}});i.push(o)},error:function(e){n.error(e)},complete:function(){a()}});function a(){o.closed&&0===i.length&&n.complete()}return function(){i.forEach((function(e){return e.unsubscribe()})),o.unsubscribe()}}))},t[B]=function(){return this},e.from=function(t){var r="function"===typeof this?this:e;if(null==t)throw new TypeError(t+" is not an object");var n=z(t,B);if(n){var i=n.call(t);if(Object(i)!==i)throw new TypeError(i+" is not an object");return K(i)&&i.constructor===r?i:new r((function(e){return i.subscribe(e)}))}if(q("iterator")&&(n=z(t,Q)))return new r((function(e){Y((function(){if(!e.closed){for(var r,i=F(n.call(t));!(r=i()).done;){var o=r.value;if(e.next(o),e.closed)return}e.complete()}}))}));if(Array.isArray(t))return new r((function(e){Y((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")},e.of=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){Y((function(){if(!e.closed){for(var t=0;t<r.length;++t)if(e.next(r[t]),e.closed)return;e.complete()}}))}))},L(e,null,[{key:U,get:function(){return this}}]),e}();function re(e){return null!==e&&"object"===typeof e}function ne(e,t){var r=t,n=[];return e.definitions.forEach((function(e){if("OperationDefinition"===e.kind)throw __DEV__?new h("Found a ".concat(e.operation," operation").concat(e.name?" named '".concat(e.name.value,"'"):"",". ")+"No operations are allowed when using a fragment as a query. Only fragments are allowed."):new h(44);"FragmentDefinition"===e.kind&&n.push(e)})),"undefined"===typeof r&&(__DEV__?d(1===n.length,"Found ".concat(n.length," fragments. `fragmentName` must be provided when there is not exactly 1 fragment.")):d(1===n.length,45),r=n[0].name.value),o(o({},e),{definitions:u([{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:r}}]}}],e.definitions,!0)})}function ie(e){void 0===e&&(e=[]);var t={};return e.forEach((function(e){t[e.name.value]=e})),t}function oe(e,t){switch(e.kind){case"InlineFragment":return e;case"FragmentSpread":var r=e.name.value;if("function"===typeof t)return t(r);var n=t&&t[r];return __DEV__?d(n,"No fragment named ".concat(r)):d(n,46),n||null;default:return null}}function ae(e){return{__ref:String(e)}}function se(e){return Boolean(e&&"object"===typeof e&&"string"===typeof e.__ref)}function ce(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 ce(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 ce(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 __DEV__?new h('The inline argument "'.concat(t.value,'" of kind "').concat(r.kind,'"')+"is not supported. Use variables instead of inline arguments to overcome this limitation."):new h(55);e[t.value]=null}}M()&&Object.defineProperty(te,Symbol("extensions"),{value:{symbol:B,hostReportError:G},configurable:!0});var ue=["connection","include","skip","client","rest","export"],le=Object.assign((function(e,t,r){if(t&&r&&r.connection&&r.connection.key){if(r.connection.filter&&r.connection.filter.length>0){var n=r.connection.filter?r.connection.filter:[];n.sort();var i={};
1return n.forEach((function(e){i[e]=t[e]})),"".concat(r.connection.key,"(").concat(fe(i),")")}return r.connection.key}var o=e;if(t){var a=fe(t);o+="(".concat(a,")")}return r&&Object.keys(r).forEach((function(e){-1===ue.indexOf(e)&&(r[e]&&Object.keys(r[e]).length?o+="@".concat(e,"(").concat(fe(r[e]),")"):o+="@".concat(e))})),o}),{setStringify:function(e){var t=fe;return fe=e,t}}),fe=function(e){return JSON.stringify(e,pe)};function pe(e,t){return re(t)&&!Array.isArray(t)&&(t=Object.keys(t).sort().reduce((function(e,r){return e[r]=t[r],e}),{})),t}function he(e,t){if(e.arguments&&e.arguments.length){var r={};return e.arguments.forEach((function(e){var n=e.name,i=e.value;return ce(r,n,i,t)})),r}return null}function de(e){return e.alias?e.alias.value:e.name.value}function ve(e,t,r){if("string"===typeof e.__typename)return e.__typename;for(var n=0,i=t.selections;n<i.length;n++){var o=i[n];if(ye(o)){if("__typename"===o.name.value)return e[de(o)]}else{var a=ve(e,oe(o,r).selectionSet,r);if("string"===typeof a)return a}}}function ye(e){return"Field"===e.kind}function me(e){__DEV__?d(e&&"Document"===e.kind,'Expecting a parsed GraphQL document. Perhaps you need to wrap the query string in a "gql" tag? http://docs.apollostack.com/apollo-client/core.html#gql'):d(e&&"Document"===e.kind,47);var t=e.definitions.filter((function(e){return"FragmentDefinition"!==e.kind})).map((function(e){if("OperationDefinition"!==e.kind)throw __DEV__?new h('Schema type definitions not allowed in queries. Found: "'.concat(e.kind,'"')):new h(48);return e}));return __DEV__?d(t.length<=1,"Ambiguous GraphQL document: contains ".concat(t.length," operations")):d(t.length<=1,49),e}function be(e){return me(e),e.definitions.filter((function(e){return"OperationDefinition"===e.kind}))[0]}function ge(e){return e.definitions.filter((function(e){return"OperationDefinition"===e.kind&&!!e.name})).map((function(e){return e.name.value}))[0]||null}function _e(e){return e.definitions.filter((function(e){return"FragmentDefinition"===e.kind}))}function Ee(e){var t=be(e);return __DEV__?d(t&&"query"===t.operation,"Must contain a query definition."):d(t&&"query"===t.operation,50),t}function Oe(e){var t;me(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 __DEV__?new h("Expected a parsed GraphQL query with a query, mutation, subscription, or a fragment."):new h(54)}function we(e){var t=Object.create(null),r=e&&e.variableDefinitions;return r&&r.length&&r.forEach((function(e){e.defaultValue&&ce(t,e.variable.name,e.defaultValue)})),t}function ke(e,t){return t?t(e):te.of()}function Se(e){return"function"===typeof e?new xe(e):e}function Te(e){return e.request.length<=1}var De=function(e){function t(t,r){var n=e.call(this,t)||this;return n.link=r,n}return i(t,e),t}(Error),xe=function(){function e(e){e&&(this.request=e)}return e.empty=function(){return new e((function(){return te.of()}))},e.from=function(t){return 0===t.length?e.empty():t.map(Se).reduce((function(e,t){return e.concat(t)}))},e.split=function(t,r,n){var i=Se(r),o=Se(n||new e(ke));return Te(i)&&Te(o)?new e((function(e){return t(e)?i.request(e)||te.of():o.request(e)||te.of()})):new e((function(e,r){return t(e)?i.request(e,r)||te.of():o.request(e,r)||te.of()}))},e.execute=function(e,t){return e.request(function(e,t){var r=o({},e);return Object.defineProperty(t,"setContext",{enumerable:!1,value:function(e){r=o(o({},r),"function"===typeof e?e(r):e)}}),Object.defineProperty(t,"getContext",{enumerable:!1,value:function(){return o({},r)}}),t}(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?ge(t.query)||void 0:""),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 __DEV__?new h("illegal argument: ".concat(i)):new h(27)}return e}(t))))||te.of()},e.concat=function(t,r){var n=Se(t);if(Te(n))return __DEV__&&d.warn(new De("You are calling concat on a terminating link, which will have no effect",n)),n;var i=Se(r);return Te(i)?new e((function(e){return n.request(e,(function(e){return i.request(e)||te.of()}))||te.of()})):new e((function(e,t){return n.request(e,(function(e){return i.request(e,t)||te.of()}))||te.of()}))},e.prototype.split=function(t,r,n){return this.concat(e.split(t,r,n||new e(ke)))},e.prototype.concat=function(t){return e.concat(this,t)},e.prototype.request=function(e,t){throw __DEV__?new h("request is not implemented"):new h(22)},e.prototype.onError=function(e,t){if(t&&t.error)return t.error(e),!1;throw e},e.prototype.setOnError=function(e){return this.onError=e,this},e}(),Ie=xe.execute;class Ne{constructor(e,t,r){this.start=e.start,this.end=t.end,this.startToken=e,this.endToken=t,this.source=r}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}}class Re{constructor(e,t,r,n,i,o){this.kind=e,this.start=t,this.end=r,this.line=n,this.column=i,this.value=o,this.prev=null,this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}}const Ce={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:[],Float
1Value:[],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"]},Ae=new Set(Object.keys(Ce));function Fe(e){const t=null===e||void 0===e?void 0:e.kind;return"string"===typeof t&&Ae.has(t)}var Pe,je;!function(e){e.QUERY="query",e.MUTATION="mutation",e.SUBSCRIPTION="subscription"}(Pe||(Pe={})),function(e){e.NAME="Name",e.DOCUMENT="Document",e.OPERATION_DEFINITION="OperationDefinition",e.VARIABLE_DEFINITION="VariableDefinition",e.SELECTION_SET="SelectionSet",e.FIELD="Field",e.ARGUMENT="Argument",e.FRAGMENT_SPREAD="FragmentSpread",e.INLINE_FRAGMENT="InlineFragment",e.FRAGMENT_DEFINITION="FragmentDefinition",e.VARIABLE="Variable",e.INT="IntValue",e.FLOAT="FloatValue",e.STRING="StringValue",e.BOOLEAN="BooleanValue",e.NULL="NullValue",e.ENUM="EnumValue",e.LIST="ListValue",e.OBJECT="ObjectValue",e.OBJECT_FIELD="ObjectField",e.DIRECTIVE="Directive",e.NAMED_TYPE="NamedType",e.LIST_TYPE="ListType",e.NON_NULL_TYPE="NonNullType",e.SCHEMA_DEFINITION="SchemaDefinition",e.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",e.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",e.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",e.FIELD_DEFINITION="FieldDefinition",e.INPUT_VALUE_DEFINITION="InputValueDefinition",e.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",e.UNION_TYPE_DEFINITION="UnionTypeDefinition",e.ENUM_TYPE_DEFINITION="EnumTypeDefinition",e.ENUM_VALUE_DEFINITION="EnumValueDefinition",e.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",e.DIRECTIVE_DEFINITION="DirectiveDefinition",e.SCHEMA_EXTENSION="SchemaExtension",e.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",e.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",e.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",e.UNION_TYPE_EXTENSION="UnionTypeExtension",e.ENUM_TYPE_EXTENSION="EnumTypeExtension",e.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension"}(je||(je={}));const Le=Object.freeze({});function Me(e,t,r=Ce){const n=new Map;for(const m of Object.values(je))n.set(m,qe(t,m));let i,o,a,s=Array.isArray(e),c=[e],u=-1,l=[],f=e;const p=[],h=[];do{u++;const e=u===c.length,m=e&&0!==l.length;if(e){if(o=0===h.length?void 0:p[p.length-1],f=a,a=h.pop(),m)if(s){f=f.slice();let e=0;for(const[t,r]of l){const n=t-e;null===r?(f.splice(n,1),e++):f[n]=r}}else{f=Object.defineProperties({},Object.getOwnPropertyDescriptors(f));for(const[e,t]of l)f[e]=t}u=i.index,c=i.keys,l=i.edits,s=i.inArray,i=i.prev}else if(a){if(o=s?u:c[u],f=a[o],null===f||void 0===f)continue;p.push(o)}let b;if(!Array.isArray(f)){var d,v;Fe(f)||I(!1,`Invalid AST Node: ${N(f)}.`);const r=e?null===(d=n.get(f.kind))||void 0===d?void 0:d.leave:null===(v=n.get(f.kind))||void 0===v?void 0:v.enter;if(b=null===r||void 0===r?void 0:r.call(t,f,o,a,p,h),b===Le)break;if(!1===b){if(!e){p.pop();continue}}else if(void 0!==b&&(l.push([o,b]),!e)){if(!Fe(b)){p.pop();continue}f=b}}var y;if(void 0===b&&m&&l.push([o,f]),e)p.pop();else i={inArray:s,index:u,keys:c,edits:l,prev:i}
1,s=Array.isArray(f),c=s?f:null!==(y=r[f.kind])&&void 0!==y?y:[],u=-1,l=[],a&&h.push(a),a=f}while(void 0!==i);return 0!==l.length?l[l.length-1][1]:e}function qe(e,t){const r=e[t];return"object"===typeof r?r:"function"===typeof r?{enter:r,leave:void 0}:{enter:e.enter,leave:e.leave}}function Ve(e,t){var r=e.directives;return!r||!r.length||function(e){var t=[];e&&e.length&&e.forEach((function(e){if(function(e){var t=e.name.value;return"skip"===t||"include"===t}(e)){var r=e.arguments,n=e.name.value;__DEV__?d(r&&1===r.length,"Incorrect number of arguments for the @".concat(n," directive.")):d(r&&1===r.length,41);var i=r[0];__DEV__?d(i.name&&"if"===i.name.value,"Invalid argument for the @".concat(n," directive.")):d(i.name&&"if"===i.name.value,42);var o=i.value;__DEV__?d(o&&("Variable"===o.kind||"BooleanValue"===o.kind),"Argument for the @".concat(n," directive must be a variable or a boolean value.")):d(o&&("Variable"===o.kind||"BooleanValue"===o.kind),43),t.push({directive:e,ifArgument:i})}}));return t}(r).every((function(e){var r=e.directive,n=e.ifArgument,i=!1;return"Variable"===n.value.kind?(i=t&&t[n.value.name.value],__DEV__?d(void 0!==i,"Invalid variable referenced in @".concat(r.name.value," directive.")):d(void 0!==i,40)):i=n.value.value,"skip"===r.name.value?!i:i}))}function Qe(e,t,r){var n=new Set(e),i=n.size;return Me(t,{Directive:function(e){if(n.delete(e.name.value)&&(!r||!n.size))return Le}}),r?!n.size:n.size<i}function Be(e){return e&&Qe(["client","export"],e,!0)}var Ue=function(e,t){var r;try{r=JSON.stringify(e)}catch(i){var n=__DEV__?new h("Network request failed. ".concat(t," is not serializable: ").concat(i.message)):new h(24);throw n.parseError=i,n}return r},ze=function(e,t){var r=e.getContext().uri;return r||("function"===typeof t?t(e):t||"/graphql")},We="function"===typeof WeakMap&&"ReactNative"!==g((function(){return navigator.product})),Ke="function"===typeof WeakSet,Ge="function"===typeof Symbol&&"function"===typeof Symbol.for,Ye=Ge&&Symbol.asyncIterator,Je="function"===typeof g((function(){return window.document.createElement})),$e=g((function(){return navigator.userAgent.indexOf("jsdom")>=0}))||!1,He=Je&&!$e;function Xe(e){var t=null,r=null,n=!1,i=[],o=[];function a(e){if(!r){if(o.length){var t=o.shift();if(Array.isArray(t)&&t[0])return t[0]({value:e,done:!1})}i.push(e)}}function s(e){r=e,o.slice().forEach((function(t){t[1](e)})),!t||t()}function c(){n=!0,o.slice().forEach((function(e){e[0]({value:void 0,done:!0})})),!t||t()}t=function(){t=null,e.removeListener("data",a),e.removeListener("error",s),e.removeListener("end",c),e.removeListener("finish",c),e.removeListener("close",c)},e.on("data",a),e.on("error",s),e.on("end",c),e.on("finish",c),e.on("close",c);var u={next:function(){return new Promise((function(e,t){return r?t(r):i.length?e({value:i.shift(),done:!1}):n?e({value:void 0,done:!0}):void o.push([e,t])}))}};return Ye&&(u[Symbol.asyncIterator]=function(){return this}),u}function Ze(e){var t={next:function(){return e.read()}};return Ye&&(t[Symbol.asyncIterator]=function(){return this}),t}function et(e){var t=e;if(e.body&&(t=e.body),function(e){return!(!Ye||!e[Symbol.asyncIterator])}(t))return function(e){var t,r=e[Symbol.asyncIterator]();return(t={next:function(){return r.next()}})[Symbol.asyncIterator]=function(){return this},t}(t);if(function(e){return!!e.getReader}(t))return Ze(t.getReader());if(function(e){return!!e.stream}(t))return Ze(t.stream().getReader());if(function(e){return!!e.arrayBuffer}(t))return function(e){var t=!1,r={next:function(){return t?Promise.resolve({value:void 0,done:!0}):(t=!0,new Promise((function(t,r){e.then((function(e){t({value:e,done:!1})})).catch(r)})))}};return Ye&&(r[Symbol.asyncIterator]=function(){return this}),r}(t.arrayBuffer());if(function(e){return!!e.pipe}(t))return Xe(t);throw new Error("Unknown body type for responseIterator. Please pass a streamable response.")}var tt=function(e,t,r){var n=new Error(r);throw n.name="ServerError",n.response=e,n.statusCode=e.status,n.result=t,n},rt=Symbol();function nt(e){return e.hasOwnProperty("graphQLErrors")}var it=function(e){function t(r){var n=r.graphQLErrors,i=r.protocolErrors,o=r.clientErrors,a=r.networkError,s=r.errorMessage,c=r.extraInfo,l=e.call(this,s)||this;return l.name="ApolloError",l.graphQLErrors=n||[],l.protocolErrors=i||[],l.clientErrors=o||[],l.networkError=a||null,l.message=s||function(e){var t=u(u(u([],e.graphQLErrors,!0),e.clientErrors,!0),e.protocolErrors,!0);return e.networkError&&t.push(e.networkError),t.map((function(e){return re(e)&&e.message||"Error message not found."})).join("\n")}(l),l.extraInfo=c,l.__proto__=t.prototype,l}return i(t,e),t}(Error),ot=Array.isArray;function at(e){return Array.isArray(e)&&e.length>0}var st=Object.prototype.hasOwnProperty;function ct(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return ut(e)}function ut(e){var t=e[0]||{},r=e.length;if(r>1)for(var n=new ft,i=1;i<r;++i)t=n.merge(t,e[i]);return t}
1var lt=function(e,t,r){return this.merge(e[r],t[r])},ft=function(){function e(e){void 0===e&&(e=lt),this.reconciler=e,this.isObject=re,this.pastCopies=new Set}return e.prototype.merge=function(e,t){for(var r=this,n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];return re(t)&&re(e)?(Object.keys(t).forEach((function(i){if(st.call(e,i)){var o=e[i];if(t[i]!==o){var a=r.reconciler.apply(r,u([e,t,i],n,!1));a!==o&&((e=r.shallowCopyForMerge(e))[i]=a)}}else(e=r.shallowCopyForMerge(e))[i]=t[i]})),e):t},e.prototype.shallowCopyForMerge=function(e){return re(e)&&(this.pastCopies.has(e)||(e=Array.isArray(e)?e.slice(0):o({__proto__:Object.getPrototypeOf(e)},e),this.pastCopies.add(e))),e},e}();function pt(e){return"incremental"in e}function ht(e){return re(e)&&"payload"in e}function dt(e,t){var r=e,n=new ft;return pt(t)&&at(t.incremental)&&t.incremental.forEach((function(e){for(var t=e.data,i=e.path,o=i.length-1;o>=0;--o){var a=i[o],s=!isNaN(+a)?[]:{};s[a]=t,t=s}r=n.merge(r,t)})),r}var vt=Object.prototype.hasOwnProperty;function yt(e){var t={};return e.split("\n").forEach((function(e){var r=e.indexOf(":");if(r>-1){var n=e.slice(0,r).trim().toLowerCase(),i=e.slice(r+1).trim();t[n]=i}})),t}function mt(e,t){if(e.status>=300){tt(e,function(){try{return JSON.parse(t)}catch(e){return t}}(),"Response not successful: Received status code ".concat(e.status))}try{return JSON.parse(t)}catch(n){var r=n;throw r.name="ServerParseError",r.response=e,r.statusCode=e.status,r.bodyText=t,r}}function bt(e,t){var r,n;"AbortError"!==e.name&&(e.result&&e.result.errors&&e.result.data&&(null===(r=t.next)||void 0===r||r.call(t,e.result)),null===(n=t.error)||void 0===n||n.call(t,e))}function gt(e){return function(t){return t.text().then((function(e){return mt(t,e)})).then((function(r){return t.status>=300&&tt(t,r,"Response not successful: Received status code ".concat(t.status)),Array.isArray(r)||vt.call(r,"data")||vt.call(r,"errors")||tt(t,r,"Server response was missing for query '".concat(Array.isArray(e)?e.map((function(e){return e.operationName})):e.operationName,"'.")),r}))}}var _t=function(e){if(!e&&"undefined"===typeof fetch)throw __DEV__?new h("\n\"fetch\" has not been found globally and no fetcher has been configured. To fix this, install a fetch package (like https://www.npmjs.com/package/cross-fetch), instantiate the fetcher, and pass it into your HttpLink constructor. For example:\n\nimport fetch from 'cross-fetch';\nimport { ApolloClient, HttpLink } from '@apollo/client';\nconst client = new ApolloClient({\n link: new HttpLink({ uri: '/graphql', fetch })\n});\n "):new h(23)};function Et(e){return 9===e||32===e}function Ot(e){return e>=48&&e<=57}function wt(e){return e>=97&&e<=122||e>=65&&e<=90}function kt(e){return wt(e)||95===e}function St(e){return wt(e)||Ot(e)||95===e}function Tt(e){var t;let r=Number.MAX_SAFE_INTEGER,n=null,i=-1;for(let a=0;a<e.length;++a){var o;const t=e[a],s=Dt(t);s!==t.length&&(n=null!==(o=n)&&void 0!==o?o:a,i=a,0!==a&&s<r&&(r=s))}return e.map(((e,t)=>0===t?e:e.slice(r))).slice(null!==(t=n)&&void 0!==t?t:0,i+1)}function Dt(e){let t=0;for(;t<e.length&&Et(e.charCodeAt(t));)++t;return t}const xt=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function It(e){return Nt[e.charCodeAt(0)]}const Nt=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000B","\\f","\\r","\\u000E","\\u000F","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001A","\\u001B","\\u001C","\\u001D","\\u001E","\\u001F","","",'\\"',"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\\\","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\u007F","\\u0080","\\u0081","\\u0082","\\u0083","\\u0084","\\u0085","\\u0086","\\u0087","\\u0088","\\u0089","\\u008A","\\u008B","\\u008C","\\u008D","\\u008E","\\u008F","\\u0090","\\u0091","\\u0092","\\u0093","\\u0094","\\u0095","\\u0096","\\u0097","\\u0098","\\u0099","\\u009A","\\u009B","\\u009C","\\u009D","\\u009E","\\u009F"];function Rt(e){return Me(e,Ct)}const Ct={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>At(e.definitions,"\n\n")},OperationDefinition:{leave(e){const t=Pt("(",At(e.variableDefinitions,", "),")"),r=At([e.operation,At([e.name,t]),At(e.directives," ")]," ");return("query"===r?"":r+" ")+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:r,directives:n})=>e+": "+t+Pt(" = ",r)+Pt(" ",At(n," "))},SelectionSet:{leave:({selections:e})=>Ft(e)},Field:{leave({alias:e,name:t,arguments:r,directives:n,selectionSet:i}){const o=Pt("",e,": ")+t;let a=o+Pt("(",At(r,", "),")");return a.length>80&&(a=o+Pt("(\n",jt(At(r,"\n")),"\n)")),At([a,At(n," "),i]," ")}},Argument:{leave:({name:e,value:t})=>e+": "+t},FragmentSpread:{leave:({name:e,directives:t})=>"..."+e+Pt(" ",At(t," "))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:r})=>At(["...",Pt("on ",e),At(t," "),r]," ")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:r,directives:n,selectionSet:i})=>`fragment ${e}${Pt("(",At(r,", "),")")} on ${t} ${Pt("",At(n," ")," ")}`+i},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e}
1,StringValue:{leave:({value:e,block:t})=>t?function(e,t){const r=e.replace(/"""/g,'\\"""'),n=r.split(/\r\n|[\n\r]/g),i=1===n.length,o=n.length>1&&n.slice(1).every((e=>0===e.length||Et(e.charCodeAt(0)))),a=r.endsWith('\\"""'),s=e.endsWith('"')&&!a,c=e.endsWith("\\"),u=s||c,l=!(null!==t&&void 0!==t&&t.minimize)&&(!i||e.length>70||u||o||a);let f="";const p=i&&Et(e.charCodeAt(0));return(l&&!p||o)&&(f+="\n"),f+=r,(l||u)&&(f+="\n"),'"""'+f+'"""'}(e):`"${e.replace(xt,It)}"`},BooleanValue:{leave:({value:e})=>e?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>"["+At(e,", ")+"]"},ObjectValue:{leave:({fields:e})=>"{"+At(e,", ")+"}"},ObjectField:{leave:({name:e,value:t})=>e+": "+t},Directive:{leave:({name:e,arguments:t})=>"@"+e+Pt("(",At(t,", "),")")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>"["+e+"]"},NonNullType:{leave:({type:e})=>e+"!"},SchemaDefinition:{leave:({description:e,directives:t,operationTypes:r})=>Pt("",e,"\n")+At(["schema",At(t," "),Ft(r)]," ")},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+": "+t},ScalarTypeDefinition:{leave:({description:e,name:t,directives:r})=>
1Pt("",e,"\n")+At(["scalar",t,At(r," ")]," ")},ObjectTypeDefinition:{leave:({description:e,name:t,interfaces:r,directives:n,fields:i})=>Pt("",e,"\n")+At(["type",t,Pt("implements ",At(r," & ")),At(n," "),Ft(i)]," ")},FieldDefinition:{leave:({description:e,name:t,arguments:r,type:n,directives:i})=>Pt("",e,"\n")+t+(Lt(r)?Pt("(\n",jt(At(r,"\n")),"\n)"):Pt("(",At(r,", "),")"))+": "+n+Pt(" ",At(i," "))},InputValueDefinition:{leave:({description:e,name:t,type:r,defaultValue:n,directives:i})=>Pt("",e,"\n")+At([t+": "+r,Pt("= ",n),At(i," ")]," ")},InterfaceTypeDefinition:{leave:({description:e,name:t,interfaces:r,directives:n,fields:i})=>Pt("",e,"\n")+At(["interface",t,Pt("implements ",At(r," & ")),At(n," "),Ft(i)]," ")},UnionTypeDefinition:{leave:({description:e,name:t,directives:r,types:n})=>Pt("",e,"\n")+At(["union",t,At(r," "),Pt("= ",At(n," | "))]," ")},EnumTypeDefinition:{leave:({description:e,name:t,directives:r,values:n})=>Pt("",e,"\n")+At(["enum",t,At(r," "),Ft(n)]," ")},EnumValueDefinition:{leave:({description:e,name:t,directives:r})=>Pt("",e,"\n")+At([t,At(r," ")]," ")},InputObjectTypeDefinition:{leave:({description:e,name:t,directives:r,fields:n})=>Pt("",e,"\n")+At(["input",t,At(r," "),Ft(n)]," ")},DirectiveDefinition:{leave:({description:e,name:t,arguments:r,repeatable:n,locations:i})=>Pt("",e,"\n")+"directive @"+t+(Lt(r)?Pt("(\n",jt(At(r,"\n")),"\n)"):Pt("(",At(r,", "),")"))+(n?" repeatable":"")+" on "+At(i," | ")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>At(["extend schema",At(e," "),Ft(t)]," ")},ScalarTypeExtension:{leave:({name:e,directives:t})=>At(["extend scalar",e,At(t," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:r,fields:n})=>At(["extend type",e,Pt("implements ",At(t," & ")),At(r," "),Ft(n)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:r,fields:n})=>At(["extend interface",e,Pt("implements ",At(t," & ")),At(r," "),Ft(n)]," ")},UnionTypeExtension:{leave:({name:e,directives:t,types:r})=>At(["extend union",e,At(t," "),Pt("= ",At(r," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:t,values:r})=>At(["extend enum",e,At(t," "),Ft(r)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:r})=>At(["extend input",e,At(t," "),Ft(r)]," ")}};function At(e,t=""){var r;return null!==(r=null===e||void 0===e?void 0:e.filter((e=>e)).join(t))&&void 0!==r?r:""}function Ft(e){return Pt("{\n",jt(At(e,"\n")),"\n}")}function Pt(e,t,r=""){return null!=t&&""!==t?e+t+r:""}function jt(e){return Pt(" ",e.replace(/\n/g,"\n "))}function Lt(e){var t;return null!==(t=null===e||void 0===e?void 0:e.some((e=>e.includes("\n"))))&&void 0!==t&&t}var Mt={http:{includeQuery:!0,includeExtensions:!1,preserveHeaderCase:!1},headers:{accept:"*/*","content-type":"application/json"},options:{method:"POST"}},qt=function(e,t){return t(e)};function Vt(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return r.unshift(t),Qt.apply(void 0,u([e,qt],r,!1))}function Qt(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i={},a={};r.forEach((function(e){i=o(o(o({},i),e.options),{headers:o(o({},i.headers),e.headers)}),e.credentials&&(i.credentials=e.credentials),a=o(o({},a),e.http)})),i.headers&&(i.headers=Bt(i.headers,a.preserveHeaderCase));var s=e.operationName,c=e.extensions,u=e.variables,l=e.query,f={operationName:s,variables:u};return a.includeExtensions&&(f.extensions=c),a.includeQuery&&(f.query=t(l,Rt)),{options:i,body:f}}function Bt(e,t){if(!t){var r=Object.create(null);
1return Object.keys(Object(e)).forEach((function(t){r[t.toLowerCase()]=e[t]})),r}var n=Object.create(null);Object.keys(Object(e)).forEach((function(t){n[t.toLowerCase()]={originalName:t,value:e[t]}}));var i=Object.create(null);return Object.keys(n).forEach((function(e){i[n[e].originalName]=n[e].value})),i}var Ut=function(){if("undefined"===typeof AbortController)return{controller:!1,signal:!1};var e=new AbortController;return{controller:e,signal:e.signal}};function zt(e,t){var r=[],n=function(e,t){r.push("".concat(e,"=").concat(encodeURIComponent(t)))};if("query"in t&&n("query",t.query),t.operationName&&n("operationName",t.operationName),t.variables){var i=void 0;try{i=Ue(t.variables,"Variables map")}catch(l){return{parseError:l}}n("variables",i)}if(t.extensions){var o=void 0;try{o=Ue(t.extensions,"Extensions map")}catch(l){return{parseError:l}}n("extensions",o)}var a="",s=e,c=e.indexOf("#");-1!==c&&(a=e.substr(c),s=e.substr(0,c));var u=-1===s.indexOf("?")?"?":"&";return{newURI:s+u+r.join("&")+a}}function Wt(e){return new te((function(t){t.error(e)}))}var Kt=g((function(){return fetch})),Gt=function(e){void 0===e&&(e={});var t=e.uri,r=void 0===t?"/graphql":t,n=e.fetch,i=e.print,u=void 0===i?qt:i,l=e.includeExtensions,f=e.preserveHeaderCase,p=e.useGETForQueries,h=e.includeUnusedVariables,v=void 0!==h&&h,y=a(e,["uri","fetch","print","includeExtensions","preserveHeaderCase","useGETForQueries","includeUnusedVariables"]);__DEV__&&_t(n||Kt);var m={http:{includeExtensions:l,preserveHeaderCase:f},options:y.fetchOptions,credentials:y.credentials,headers:y.headers};return new xe((function(e){var t=ze(e,r),i=e.getContext(),a={};if(i.clientAwareness){var l=i.clientAwareness,f=l.name,h=l.version;f&&(a["apollographql-client-name"]=f),h&&(a["apollographql-client-version"]=h)}var y,b=o(o({},a),i.headers),_={http:i.http,options:i.fetchOptions,credentials:i.credentials,headers:b},E=Qt(e,u,Mt,m,_),O=E.options,w=E.body;if(w.variables&&!v){var k=new Set(Object.keys(w.variables));Me(e.query,{Variable:function(e,t,r){r&&"VariableDefinition"!==r.kind&&k.delete(e.name.value)}}),k.size&&(w.variables=o({},w.variables),k.forEach((function(e){delete w.variables[e]})))}if(!O.signal){var S=Ut(),T=S.controller,D=S.signal;(y=T)&&(O.signal=D)}var x,I="OperationDefinition"===(x=Oe(e.query)).kind&&"subscription"===x.operation,N=Qe(["defer"],e.query);if(p&&!e.query.definitions.some((function(e){return"OperationDefinition"===e.kind&&"mutation"===e.operation}))&&(O.method="GET"),N||I){O.headers=O.headers||{};var R="multipart/mixed;";I&&N&&__DEV__&&d.warn("Multipart-subscriptions do not support @defer"),I?R+="boundary=graphql;subscriptionSpec=1.0,application/json":N&&(R+="deferSpec=20220824,application/json"),O.headers.accept=R}if("GET"===O.method){var C=zt(t,w),A=C.newURI,F=C.parseError;if(F)return Wt(F);t=A}else try{O.body=Ue(w,"Payload")}catch(F){return Wt(F)}return new te((function(r){return(n||g((function(){return fetch}))||Kt)(t,O).then((function(t){var n;e.setContext({response:t});var i=null===(n=t.headers)||void 0===n?void 0:n.get("content-type");return null!==i&&/^multipart\/mixed/i.test(i)?function(e,t){var r,n,i,a,u;return s(this,void 0,void 0,(function(){var s,l,f,p,h,d,v,y,m,b,g,_,E,O,w,k,S,T,D,x,I,N;return c(this,(function(c){switch(c.label){case 0:if(void 0===TextDecoder)throw new Error("TextDecoder must be defined in the environment: please import a polyfill.");s=new TextDecoder("utf-8"),l=null===(r=e.headers)||void 0===r?void 0:r.get("content-type"),f="boundary=",p=(null===l||void 0===l?void 0:l.includes(f))?null===l||void 0===l?void 0:l.substring((null===l||void 0===l?void 0:l.indexOf(f))+f.length).replace(/['"]/g,"").replace(/\;(.*)/gm,"").trim():"-",h="--".concat(p),d="",v=et(e),y=!0,c.label=1;case 1:return y?[4,v.next()]:[3,3];case 2:for(m=c.sent(),b=m.value,g=m.done,_="string"===typeof b?b:s.decode(b),y=!g,E=(d+=_).indexOf(h);E>-1;){if(O=void 0,I=[d.slice(0,E),d.slice(E+h.length)],d=I[1],(O=I[0]).trim()){if(w=O.indexOf("\r\n\r\n"),k=yt(O.slice(0,w)),(S=k["content-type"])&&-1===S.toLowerCase().indexOf("application/json"))throw new Error("Unsupported patch content type: application/json is required.");T=O.slice(w);try{D=mt(e,T.replace("\r\n","")),Object.keys(D).length>1||"data"in D||"incremental"in D||"errors"in D||"payload"in D?ht(D)?(x={},"payload"in D&&(x=o({},D.payload)),"errors"in D&&(x=o(o({},x),{extensions:o(o({},"extensions"in x?x.extensions:null),(N={},N[rt]=D.errors,N))})),null===(n=t.next)||void 0===n||n.call(t,x)):null===(i=t.next)||void 0===i||i.call(t,D):1===Object.keys(D).length&&"hasNext"in D&&!D.hasNext&&(null===(a=t.complete)||void 0===a||a.call(t))}catch(R){bt(R,t)}}E=d.indexOf(h)}return[3,1];case 3:return null===(u=t.complete)||void 0===u||u.call(t),[2]}}))}))}(t,r):function(e,t,r){gt(t)(e).then((function(e){var t,n;null===(t=r.next)||void 0===t||t.call(r,e),null===(n=r.complete)||void 0===n||n.call(r)})).catch((function(e){return bt(e,r)}))}(t,e,r)})).catch((function(e){return bt(e,r)})),function(){y&&y.abort()}}))}))},Yt=function(e){function t(t){void 0===t&&(t={});var r=e.call(this,Gt(t).request)||this;return r.options=t,r}return i(t,e),t}(xe);const{toString:Jt,hasOwnProperty:$t}=Object.prototype,Ht=Function.prototype.toString,Xt=new Map;function Zt(e,t){try{return er(e,t)}finally{Xt.clear()}}function er(e,t){if(e===t)return!0;const r=Jt.call(e);
1if(r!==Jt.call(t))return!1;switch(r){case"[object Array]":if(e.length!==t.length)return!1;case"[object Object]":{if(ir(e,t))return!0;const r=tr(e),n=tr(t),i=r.length;if(i!==n.length)return!1;for(let e=0;e<i;++e)if(!$t.call(t,r[e]))return!1;for(let o=0;o<i;++o){const n=r[o];if(!er(e[n],t[n]))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(ir(e,t))return!0;const n=e.entries(),i="[object Map]"===r;for(;;){const e=n.next();if(e.done)break;const[r,o]=e.value;if(!t.has(r))return!1;if(i&&!er(o,t.get(r)))return!1}return!0}case"[object Uint16Array]":case"[object Uint8Array]":case"[object Uint32Array]":case"[object Int32Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object ArrayBuffer]":e=new Uint8Array(e),t=new Uint8Array(t);case"[object DataView]":{let r=e.byteLength;if(r===t.byteLength)for(;r--&&e[r]===t[r];);return-1===r}case"[object AsyncFunction]":case"[object GeneratorFunction]":case"[object AsyncGeneratorFunction]":case"[object Function]":{const r=Ht.call(e);return r===Ht.call(t)&&!function(e,t){const r=e.length-t.length;return r>=0&&e.indexOf(t,r)===r}(r,nr)}}return!1}function tr(e){return Object.keys(e).filter(rr,e)}function rr(e){return void 0!==this[e]}const nr="{ [native code] }";function ir(e,t){let r=Xt.get(e);if(r){if(r.has(t))return!0}else Xt.set(e,r=new Set);return r.add(t),!1}var or=function(){return Object.create(null)},ar=Array.prototype,sr=ar.forEach,cr=ar.slice,ur=function(){function e(e,t){void 0===e&&(e=!0),void 0===t&&(t=or),this.weakness=e,this.makeData=t}return e.prototype.lookup=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return this.lookupArray(e)},e.prototype.lookupArray=function(e){var t=this;return sr.call(e,(function(e){return t=t.getChildTrie(e)})),t.data||(t.data=this.makeData(cr.call(e)))},e.prototype.getChildTrie=function(t){var r=this.weakness&&function(e){switch(typeof e){case"object":if(null===e)break;case"function":return!0}return!1}(t)?this.weak||(this.weak=new WeakMap):this.strong||(this.strong=new Map),n=r.get(t);return n||r.set(t,n=new e(this.weakness,this.makeData)),n},e}();var lr,fr,pr=function(){function e(){this.known=new(Ke?WeakSet:Set),this.pool=new ur(We),this.passes=new WeakMap,this.keysByJSON=new Map,this.empty=this.admit({})}return e.prototype.isKnown=function(e){return re(e)&&this.known.has(e)},e.prototype.pass=function(e){if(re(e)){var t=function(e){return re(e)?ot(e)?e.slice(0):o({__proto__:Object.getPrototypeOf(e)},e):e}(e);return this.passes.set(t,e),t}return e},e.prototype.admit=function(e){var t=this;if(re(e)){var r=this.passes.get(e);if(r)return r;switch(Object.getPrototypeOf(e)){case Array.prototype:if(this.known.has(e))return e;var n=e.map(this.admit,this);return(s=this.pool.lookupArray(n)).array||(this.known.add(s.array=n),__DEV__&&Object.freeze(n)),s.array;case null:case Object.prototype:if(this.known.has(e))return e;var i=Object.getPrototypeOf(e),o=[i],a=this.sortedKeys(e);o.push(a.json);var s,c=o.length;if(a.sorted.forEach((function(r){o.push(t.admit(e[r]))})),!(s=this.pool.lookupArray(o)).object){var u=s.object=Object.create(i);this.known.add(u),a.sorted.forEach((function(e,t){u[e]=o[c+t]})),__DEV__&&Object.freeze(u)}return s.object}}return e},e.prototype.sortedKeys=function(e){var t=Object.keys(e),r=this.pool.lookupArray(t);if(!r.keys){t.sort();var n=JSON.stringify(t);(r.keys=this.keysByJSON.get(n))||this.keysByJSON.set(n,r.keys={sorted:t,json:n})}return r.keys},e}(),hr=Object.assign((function(e){if(re(e)){void 0===lr&&dr();var t=lr.admit(e),r=fr.get(t);return void 0===r&&fr.set(t,r=JSON.stringify(t)),r}return JSON.stringify(e)}),{reset:dr});function dr(){lr=new pr,fr=new(We?WeakMap:Map)}function vr(e,t,r){return new te((function(n){var i=n.next,o=n.error,a=n.complete,s=0,c=!1,u={then:function(e){return new Promise((function(t){return t(e())}))}};function l(e,t){return e?function(t){++s;var r=function(){return e(t)};u=u.then(r,r).then((function(e){--s,i&&i.call(n,e),c&&f.complete()}),(function(e){throw--s,e})).catch((function(e){o&&o.call(n,e)}))}:function(e){return t&&t.call(n,e)}}var f={next:l(t,i),error:l(r,o),complete:function(){c=!0,s||a&&a.call(n)}},p=e.subscribe(f);return function(){return p.unsubscribe()}}))}function yr(e){return at(mr(e))}function mr(e){var t=at(e.errors)?e.errors.slice(0):[];return pt(e)&&at(e.incremental)&&e.incremental.forEach((function(e){e.errors&&t.push.apply(t,e.errors)})),t}var br={kind:je.FIELD,name:{kind:je.NAME,value:"__typename"}};function gr(e,t){return!e||e.selectionSet.selections.every((function(e){return e.kind===je.FRAGMENT_SPREAD&&gr(t[e.name.value],t)}))}function _r(e){return gr(be(e)||function(e){__DEV__?d("Document"===e.kind,'Expecting a parsed GraphQL document. Perhaps you need to wrap the query string in a "gql" tag? http://docs.apollostack.com/apollo-client/core.html#gql'):d("Document"===e.kind,51),__DEV__?d(e.definitions.length<=1,"Fragment must have exactly one definition."):d(e.definitions.length<=1,52);var t=e.definitions[0];return __DEV__?d("FragmentDefinition"===t.kind,"Must be a fragment definition."):d("FragmentDefinition"===t.kind,53),t}(e),ie(_e(e)))?null:e}function Er(e){var t=new Set,r=[];return e.forEach((function(e){e.name?t.add(e.name):e.test&&r.push(e.test)})),function(e){return t.has(e.name.value)||r.some((function(t){return t(e)}))}}function Or(e){var t=new Map;return function(r){void 0===r&&(r=e);var n=t.get(r);return n||t.set(r,n={variables:new Set,fragmentSpreads:new Set}),n}}function wr(e,t){for(var r=Or(""),n=Or(""),i=function(e){for(var t=0,i=void 0;t<e.length&&(i=e[t]);
1++t)if(!ot(i)){if(i.kind===je.OPERATION_DEFINITION)return r(i.name&&i.name.value);if(i.kind===je.FRAGMENT_DEFINITION)return n(i.name.value)}return __DEV__&&d.error("Could not find operation or fragment"),null},a=0,s=t.definitions.length-1;s>=0;--s)t.definitions[s].kind===je.OPERATION_DEFINITION&&++a;var c=Er(e),u=e.some((function(e){return e.remove})),l=function(e){return u&&e&&e.some(c)},f=new Map,p=!1,h={enter:function(e){if(l(e.directives))return p=!0,null}},v=Me(t,{Field:h,InlineFragment:h,VariableDefinition:{enter:function(){return!1}},Variable:{enter:function(e,t,r,n,o){var a=i(o);a&&a.variables.add(e.name.value)}},FragmentSpread:{enter:function(e,t,r,n,o){if(l(e.directives))return p=!0,null;var a=i(o);a&&a.fragmentSpreads.add(e.name.value)}},FragmentDefinition:{enter:function(e,t,r,n){f.set(JSON.stringify(n),e)},leave:function(e,t,r,i){return e===f.get(JSON.stringify(i))?e:a>0&&e.selectionSet.selections.every((function(e){return e.kind===je.FIELD&&"__typename"===e.name.value}))?(n(e.name.value).removed=!0,p=!0,null):void 0}},Directive:{leave:function(e){if(c(e))return p=!0,null}}});if(!p)return t;var y=function(e){return e.transitiveVars||(e.transitiveVars=new Set(e.variables),e.removed||e.fragmentSpreads.forEach((function(t){y(n(t)).transitiveVars.forEach((function(t){e.transitiveVars.add(t)}))}))),e},m=new Set;v.definitions.forEach((function(e){e.kind===je.OPERATION_DEFINITION?y(r(e.name&&e.name.value)).fragmentSpreads.forEach((function(e){m.add(e)})):e.kind!==je.FRAGMENT_DEFINITION||0!==a||n(e.name.value).removed||m.add(e.name.value)})),m.forEach((function(e){y(n(e)).fragmentSpreads.forEach((function(e){m.add(e)}))}));var b={enter:function(e){if(t=e.name.value,!m.has(t)||n(t).removed)return null;var t}};return _r(Me(v,{FragmentSpread:b,FragmentDefinition:b,OperationDefinition:{leave:function(e){if(e.variableDefinitions){var t=y(r(e.name&&e.name.value)).transitiveVars;if(t.size<e.variableDefinitions.length)return o(o({},e),{variableDefinitions:e.variableDefinitions.filter((function(e){return t.has(e.variable.name.value)}))})}}}}))}var kr=Object.assign((function(e){return Me(e,{SelectionSet:{enter:function(e,t,r){if(!r||r.kind!==je.OPERATION_DEFINITION){var n=e.selections;if(n)if(!n.some((function(e){return ye(e)&&("__typename"===e.name.value||0===e.name.value.lastIndexOf("__",0))}))){var i=r;if(!(ye(i)&&i.directives&&i.directives.some((function(e){return"export"===e.name.value}))))return o(o({},e),{selections:u(u([],n,!0),[br],!1)})}}}}})}),{added:function(e){return e===br}}),Sr={test:function(e){var t="connection"===e.name.value;return t&&(e.arguments&&e.arguments.some((function(e){return"key"===e.name.value}))||__DEV__&&d.warn("Removing an @connection directive even though it does not have a key. You may want to use the key parameter to specify a store key.")),t}};function Tr(e){return"query"===Oe(e).operation?e:Me(e,{OperationDefinition:{enter:function(e){return o(o({},e),{operation:"query"})}}})}var Dr=new Map;function xr(e){var t=Dr.get(e)||1;return Dr.set(e,t+1),"".concat(e,":").concat(t,":").concat(Math.random().toString(36).slice(2))}function Ir(e,t,r){var n=[];e.forEach((function(e){return e[t]&&n.push(e)})),n.forEach((function(e){return e[t](r)}))}function Nr(e){function t(t){Object.defineProperty(e,t,{value:te})}return Ge&&Symbol.species&&t(Symbol.species),t("@@species"),e}function Rr(e){return e&&"function"===typeof e.then}var Cr,Ar=function(e){function t(t){var r=e.call(this,(function(e){return r.addObserver(e),function(){return r.removeObserver(e)}}))||this;return r.observers=new Set,r.promise=new Promise((function(e,t){r.resolve=e,r.reject=t})),r.handlers={next:function(e){null!==r.sub&&(r.latest=["next",e],r.notify("next",e),Ir(r.observers,"next",e))},error:function(e){var t=r.sub;null!==t&&(t&&setTimeout((function(){return t.unsubscribe()})),r.sub=null,r.latest=["error",e],r.reject(e),r.notify("error",e),Ir(r.observers,"error",e))},complete:function(){var e=r,t=e.sub,n=e.sources;if(null!==t){var i=(void 0===n?[]:n).shift();i?Rr(i)?i.then((function(e){return r.sub=e.subscribe(r.handlers)})):r.sub=i.subscribe(r.handlers):(t&&setTimeout((function(){return t.unsubscribe()})),r.sub=null,r.latest&&"next"===r.latest[0]?r.resolve(r.latest[1]):r.resolve(),r.notify("complete"),Ir(r.observers,"complete"))}}},r.nextResultListeners=new Set,r.cancel=function(e){r.reject(e),r.sources=[],r.handlers.complete()},r.promise.catch((function(e){})),"function"===typeof t&&(t=[new te(t)]),Rr(t)?t.then((function(e){return r.start(e)}),r.handlers.error):r.start(t),r}return i(t,e),t.prototype.start=function(e){void 0===this.sub&&(this.sources=Array.from(e),this.handlers.complete())},t.prototype.deliverLastMessage=function(e){if(this.latest){var t=this.latest[0],r=e[t];r&&r.call(e,this.latest[1]),null===this.sub&&"next"===t&&e.complete&&e.complete()}},t.prototype.addObserver=function(e){this.observers.has(e)||(this.deliverLastMessage(e),this.observers.add(e))},t.prototype.removeObserver=function(e){this.observers.delete(e)&&this.observers.size<1&&this.handlers.complete()},t.prototype.notify=function(e,t){var r=this.nextResultListeners;r.size&&(this.nextResultListeners=new Set,r.forEach((function(r){return r(e,t)})))},t.prototype.beforeNext=function(e){var t=!1;this.nextResultListeners.add((function(r,n){t||(t=!0,e(r,n))}
1))},t}(te);function Fr(e){return!!e&&e<7}Nr(Ar),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"}(Cr||(Cr={}));var Pr=Object.prototype.toString;function jr(e){return Lr(e)}function Lr(e,t){switch(Pr.call(e)){case"[object Array]":if((t=t||new Map).has(e))return t.get(e);var r=e.slice(0);return t.set(e,r),r.forEach((function(e,n){r[n]=Lr(e,t)})),r;case"[object Object]":if((t=t||new Map).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]=Lr(e[r],t)})),n;default:return e}}function Mr(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=Object.create(null);return e.forEach((function(e){e&&Object.keys(e).forEach((function(t){var n=e[t];void 0!==n&&(r[t]=n)}))})),r}var qr=Object.assign,Vr=Object.hasOwnProperty,Qr=function(e){function t(t){var r=t.queryManager,n=t.queryInfo,i=t.options,a=e.call(this,(function(e){try{var r=e._subscription._observer;r&&!r.error&&(r.error=Ur)}catch(t){}var n=!a.observers.size;a.observers.add(e);var i=a.last;return i&&i.error?e.error&&e.error(i.error):i&&i.result&&e.next&&e.next(i.result),n&&a.reobserve().catch((function(){})),function(){a.observers.delete(e)&&!a.observers.size&&a.tearDownQuery()}}))||this;a.observers=new Set,a.subscriptions=new Set,a.queryInfo=n,a.queryManager=r,a.isTornDown=!1;var s=r.defaultOptions.watchQuery,c=(void 0===s?{}:s).fetchPolicy,u=void 0===c?"cache-first":c,l=i.fetchPolicy,f=void 0===l?u:l,p=i.initialFetchPolicy,h=void 0===p?"standby"===f?u:f:p;a.options=o(o({},i),{initialFetchPolicy:h,fetchPolicy:f}),a.queryId=n.queryId||r.generateQueryId();var d=be(a.query);return a.queryName=d&&d.name&&d.name.value,a}return i(t,e),Object.defineProperty(t.prototype,"query",{get:function(){return this.queryManager.transform(this.options.query).document},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"variables",{get:function(){return this.options.variables},enumerable:!1,configurable:!0}),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.getCurrentResult=function(e){void 0===e&&(e=!0);var t=this.getLastResult(!0),r=this.queryInfo.networkStatus||t&&t.networkStatus||Cr.ready,n=o(o({},t),{loading:Fr(r),networkStatus:r}),i=this.options.fetchPolicy,a=void 0===i?"cache-first":i;if("network-only"===a||"no-cache"===a||"standby"===a||this.queryManager.transform(this.options.query).hasForcedResolvers);else{var s=this.queryInfo.getDiff();(s.complete||this.options.returnPartialData)&&(n.data=s.result),Zt(n.data,{})&&(n.data=void 0),s.complete?(delete n.partial,!s.complete||n.networkStatus!==Cr.loading||"cache-first"!==a&&"cache-only"!==a||(n.networkStatus=Cr.ready,n.loading=!1)):n.partial=!0,!__DEV__||s.complete||this.options.partialRefetch||n.loading||n.data||n.error||zr(s.missing)}return e&&this.updateLastResult(n),n},t.prototype.isDifferentFromLastResult=function(e,t){return!this.last||!Zt(this.last.result,e)||t&&!Zt(this.last.variables,t)},t.prototype.getLast=function(e,t){var r=this.last;if(r&&r[e]&&(!t||Zt(r.variables,this.variables)))return r[e]},t.prototype.getLastResult=function(e){return this.getLast("result",e)},t.prototype.getLastError=function(e){return this.getLast("error",e)},t.prototype.resetLastResults=function(){delete this.last,this.isTornDown=!1},t.prototype.resetQueryStoreErrors=function(){this.queryManager.resetErrors(this.queryId)},t.prototype.refetch=function(e){var t,r={pollInterval:0},n=this.options.fetchPolicy;if(r.fetchPolicy="cache-and-network"===n?n:"no-cache"===n?"no-cache":"network-only",__DEV__&&e&&Vr.call(e,"variables")){var i=Ee(this.query),a=i.variableDefinitions;a&&a.some((function(e){return"variables"===e.variable.name.value}))||__DEV__&&d.warn("Called refetch(".concat(JSON.stringify(e),") for query ").concat((null===(t=i.name)||void 0===t?void 0:t.value)||JSON.stringify(i),", which does not declare a $variables variable.\nDid you mean to call refetch(variables) instead of refetch({ variables })?"))}return e&&!Zt(this.options.variables,e)&&(r.variables=this.options.variables=o(o({},this.options.variables),e)),this.queryInfo.resetLastWrite(),this.reobserve(r,Cr.refetch)},t.prototype.fetchMore=function(e){var t=this,r=o(o({},e.query?e:o(o(o(o({},this.options),{query:this.query}),e),{variables:o(o({},this.options.variables),e.variables)})),{fetchPolicy:"no-cache"}),n=this.queryManager.generateQueryId(),i=this.queryInfo,a=i.networkStatus;i.networkStatus=Cr.fetchMore,r.notifyOnNetworkStatusChange&&this.observe();var s=new Set;return this.queryManager.fetchQuery(n,r,Cr.fetchMore).then((function(o){return t.queryManager.removeQuery(n),i.networkStatus===Cr.fetchMore&&(i.networkStatus=a),t.queryManager.cache.batch({update:function(n){var i=e.updateQuery;i?n.updateQuery({query:t.query,variables:t.variables,returnPartialData:!0,optimistic:!1},(function(e){return i(e,{fetchMoreResult:o.data,variables:r.variables})})):n.writeQuery({query:r.query,variables:r.variables,data:o.data})},onWatchUpdated:function(e){s.add(e.query)}}),o})).finally((function(){s.has(t.query)||Br(t)}))},t.prototype.subscribeToMore=function(e){var t=this,r=this.queryManager.startGraphQLSubscription({query:e.document,variables:e.variables,context:e.context}).subscribe({next:function(r){var n=e.updateQuery;n&&t.updateQuery((function(e,t){var i=t.variables;return n(e,{subscriptionData:r,variables:i})}))},error:function(t){e.onError?e.onError(t):__DEV__&&d.error("Unhandled GraphQL subscription error",t)}});return this.subscriptions.add(r),function(){t.subscriptions.delete(r)&&r.unsubscribe()}},t.prototype.setOptions=function(e){return this.reobserve(e)},t.prototype.setVariables=function(e){return Zt(this.variables,e)?this.observers.size?this.result():Promise.resolve():(this.options.variables=e,this.observers.size?this.reobserve({fetchPolicy:this.options.initialFetchPolicy,variables:e},Cr.setVariables):Promise.resolve())},t.prototype.updateQuery=function(e){var t=this.queryManager,r=e(t.cache.diff({query:this.options.query,variables:this.variables,returnPartialData:!0,optimistic:!1}).result,{variables:this.variables});r&&(t.cache.writeQuery({query:this.options.query,data:r,variables:this.variables}),t.broadcastQueries())},t.prototype.startPolling=function(e){this.options.pollInterval=e,this.updatePolling()},t.prototype.stopPolling=function(){this.options.pollInterval=0,this.updatePolling()},t.prototype.applyNextFetchPolicy=function(e,t){if(t.nextFetchPolicy){var r=t.fetchPolicy,n=void 0===r?"cache-first":r,i=t.initialFetchPolicy,o=void 0===i?n:i;"standby"===n||("function"===typeof t.nextFetchPolicy?t.fetchPolicy=t.nextFetchPolicy(n,{reason:e,options:t,observable:this,initialFetchPolicy:o}):t.fetchPolicy="variables-changed"===e?o:t.nextFetchPolicy)}return t.fetchPolicy},t.prototype.fetch=function(e,t){return this.queryManager.setObservableQuery(this),this.queryManager.fetchConcastWithInfo(this.queryId,e,t)},t.prototype.updatePolling=function(){var e=this;if(!this.queryManager.ssrMode){var t=this.pollingInfo,r=this.options.pollInterval;if(r){if(!t||t.interval!==r){__DEV__?d(r,"Attempted to start a polling query without a polling interval."):d(r,13),(t||(this.pollingInfo={})).interval=r;var n=function(){e.pollingInfo&&(Fr(e.queryInfo.networkStatus)?i():e.reobserve({fetchPolicy:"no-cache"===e.options.initialFetchPolicy?"no-cache":"network-only"},Cr.poll).then(i,i))},i=function(){var t=e.pollingInfo;t&&(clearTimeout(t.timeout),t.timeout=setTimeout(n,t.interval))};i()}}else t&&(clearTimeout(t.timeout),delete this.pollingInfo)}},t.prototype.updateLastResult=function(e,t){return void 0===t&&(t=this.variables),this.last=o(o({},this.last),{result:this.queryManager.assumeImmutableResults?e:jr(e),variables:t}),at(e.errors)||delete this.last.error,this.last},t.prototype.reobserveAsConcast=function(e,t){var r=this;this.isTornDown=!1;var n=t===Cr.refetch||t===Cr.fetchMore||t===Cr.poll,i=this.options.variables,a=this.options.fetchPolicy,s=Mr(this.options,e||{}),c=n?s:qr(this.options,s);n||(this.updatePolling(),e&&e.variables&&!Zt(e.variables,i)&&"standby"!==c.fetchPolicy&&c.fetchPolicy===a&&(this.applyNextFetchPolicy("variables-changed",c),void 0===t&&(t=Cr.setVariables)));var u=c.variables&&o({},c.variables),l=this.fetch(c,t),f=l.concast,p=l.fromLink,h={next:function(e){r.reportResult(e,u)},error:function(e){r.reportError(e,u)}};return!n&&p&&(this.concast&&this.observer&&this.concast.removeObserver(this.observer),this.concast=f,this.observer=h),f.addObserver(h),f},t.prototype.reobserve=function(e,t){return this.reobserveAsConcast(e,t).promise},t.prototype.observe=function(){this.reportResult(this.getCurrentResult(!1),this.variables)},t.prototype.reportResult=function(e,t){var r=this.getLastError();(r||this.isDifferentFromLastResult(e,t))&&((r||!e.partial||this.options.returnPartialData)&&this.updateLastResult(e,t),Ir(this.observers,"next",e))},t.prototype.reportError=function(e,t){var r=o(o({},this.getLastResult()),{error:e,errors:e.graphQLErrors,networkStatus:Cr.error,loading:!1});this.updateLastResult(r,t),Ir(this.observers,"error",this.last.error=e)},t.prototype.hasObservers=function(){return this.observers.size>0},t.prototype.tearDownQuery=function(){this.isTornDown||(this.concast&&this.observer&&(this.concast.removeObserver(this.observer),delete this.concast,delete this.observer),this.stopPolling(),this.subscriptions.forEach((function(e){return e.unsubscribe()})),this.subscriptions.clear(),this.queryManager.stopQuery(this.queryId),this.observers.clear(),this.isTornDown=!0)},t}(te);function Br(e){var t=e.options,r=t.fetchPolicy,n=t.nextFetchPolicy;return"cache-and-network"===r||"network-only"===r?e.reobserve({fetchPolicy:"cache-first",nextFetchPolicy:function(){return this.nextFetchPolicy=n,"function"===typeof n?n.apply(this,arguments):r}}):e.reobserve()}function Ur(e){__DEV__&&d.error("Unhandled error",e.message,e.stack)}function zr(e){__DEV__&&e&&__DEV__&&d.debug("Missing cache result fields: ".concat(JSON.stringify(e)),e)}function Wr(e){return e.kind===je.FIELD||e.kind===je.FRAGMENT_SPREAD||e.kind===je.INLINE_FRAGMENT}Nr(Qr);let Kr=null;const Gr={};let Yr=1;function Jr(e){try{return e()}catch(t){}}const $r="@wry/context:Slot",Hr=Jr((()=>globalThis))||Jr((()=>global))||Object.create(null),Xr=Hr[$r]||Array[$r]||function(e){try{Object.defineProperty(Hr,$r,{value:e,enumerable:!1,writable:!1,
1configurable:!0})}finally{return e}}(class{constructor(){this.id=["slot",Yr++,Date.now(),Math.random().toString(36).slice(2)].join(":")}hasValue(){for(let e=Kr;e;e=e.parent)if(this.id in e.slots){const t=e.slots[this.id];if(t===Gr)break;return e!==Kr&&(Kr.slots[this.id]=t),!0}return Kr&&(Kr.slots[this.id]=Gr),!1}getValue(){if(this.hasValue())return Kr.slots[this.id]}withValue(e,t,r,n){const i={__proto__:null,[this.id]:e},o=Kr;Kr={parent:o,slots:i};try{return t.apply(n,r)}finally{Kr=o}}static bind(e){const t=Kr;return function(){const r=Kr;try{return Kr=t,e.apply(this,arguments)}finally{Kr=r}}}static noContext(e,t,r){if(!Kr)return e.apply(r,t);{const n=Kr;try{return Kr=null,e.apply(r,t)}finally{Kr=n}}}}),{bind:Zr,noContext:en}=Xr;function tn(){}var rn,nn=function(){function e(e,t){void 0===e&&(e=1/0),void 0===t&&(t=tn),this.max=e,this.dispose=t,this.map=new Map,this.newest=null,this.oldest=null}return e.prototype.has=function(e){return this.map.has(e)},e.prototype.get=function(e){var t=this.getNode(e);return t&&t.value},e.prototype.getNode=function(e){var t=this.map.get(e);if(t&&t!==this.newest){var r=t.older,n=t.newer;n&&(n.older=r),r&&(r.newer=n),t.older=this.newest,t.older.newer=t,t.newer=null,this.newest=t,t===this.oldest&&(this.oldest=n)}return t},e.prototype.set=function(e,t){var r=this.getNode(e);return r?r.value=t:(r={key:e,value:t,newer:null,older:this.newest},this.newest&&(this.newest.newer=r),this.newest=r,this.oldest=this.oldest||r,this.map.set(e,r),r.value)},e.prototype.clean=function(){for(;this.oldest&&this.map.size>this.max;)this.delete(this.oldest.key)},e.prototype.delete=function(e){var t=this.map.get(e);return!!t&&(t===this.newest&&(this.newest=t.older),t===this.oldest&&(this.oldest=t.newer),t.newer&&(t.newer.older=t.older),t.older&&(t.older.newer=t.newer),this.map.delete(e),this.dispose(t.value,e),!0)},e}(),on=new Xr,an=Object.prototype.hasOwnProperty,sn=void 0===(rn=Array.from)?function(e){var t=[];return e.forEach((function(e){return t.push(e)})),t}:rn;function cn(e){var t=e.unsubscribe;"function"===typeof t&&(e.unsubscribe=void 0,t())}var un=[];function ln(e,t){if(!e)throw new Error(t||"assertion failure")}function fn(e){switch(e.length){case 0:throw new Error("unknown value");case 1:return e[0];case 2:throw e[1]}}var pn=function(){function e(t){this.fn=t,this.parents=new Set,this.childValues=new Map,this.dirtyChildren=null,this.dirty=!0,this.recomputing=!1,this.value=[],this.deps=null,++e.count}return e.prototype.peek=function(){if(1===this.value.length&&!vn(this))return hn(this),this.value[0]},e.prototype.recompute=function(e){return ln(!this.recomputing,"already recomputing"),hn(this),vn(this)?function(e,t){On(e),on.withValue(e,dn,[e,t]),function(e,t){if("function"===typeof e.subscribe)try{cn(e),e.unsubscribe=e.subscribe.apply(null,t)}catch(r){return e.setDirty(),!1}return!0}(e,t)&&function(e){if(e.dirty=!1,vn(e))return;mn(e)}(e);return fn(e.value)}(this,e):fn(this.value)},e.prototype.setDirty=function(){this.dirty||(this.dirty=!0,this.value.length=0,yn(this),cn(this))},e.prototype.dispose=function(){var e=this;this.setDirty(),On(this),bn(this,(function(t,r){t.setDirty(),wn(t,e)}))},e.prototype.forget=function(){this.dispose()}
1,e.prototype.dependOn=function(e){e.add(this),this.deps||(this.deps=un.pop()||new Set),this.deps.add(e)},e.prototype.forgetDeps=function(){var e=this;this.deps&&(sn(this.deps).forEach((function(t){return t.delete(e)})),this.deps.clear(),un.push(this.deps),this.deps=null)},e.count=0,e}();function hn(e){var t=on.getValue();if(t)return e.parents.add(t),t.childValues.has(e)||t.childValues.set(e,[]),vn(e)?gn(t,e):_n(t,e),t}function dn(e,t){e.recomputing=!0,e.value.length=0;try{e.value[0]=e.fn.apply(null,t)}catch(r){e.value[1]=r}e.recomputing=!1}function vn(e){return e.dirty||!(!e.dirtyChildren||!e.dirtyChildren.size)}function yn(e){bn(e,gn)}function mn(e){bn(e,_n)}function bn(e,t){var r=e.parents.size;if(r)for(var n=sn(e.parents),i=0;i<r;++i)t(n[i],e)}function gn(e,t){ln(e.childValues.has(t)),ln(vn(t));var r=!vn(e);if(e.dirtyChildren){if(e.dirtyChildren.has(t))return}else e.dirtyChildren=un.pop()||new Set;e.dirtyChildren.add(t),r&&yn(e)}function _n(e,t){ln(e.childValues.has(t)),ln(!vn(t));var r=e.childValues.get(t);0===r.length?e.childValues.set(t,t.value.slice(0)):function(e,t){var r=e.length;return r>0&&r===t.length&&e[r-1]===t[r-1]}(r,t.value)||e.setDirty(),En(e,t),vn(e)||mn(e)}function En(e,t){var r=e.dirtyChildren;r&&(r.delete(t),0===r.size&&(un.length<100&&un.push(r),e.dirtyChildren=null))}function On(e){e.childValues.size>0&&e.childValues.forEach((function(t,r){wn(e,r)})),e.forgetDeps(),ln(null===e.dirtyChildren)}function wn(e,t){t.parents.delete(e),e.childValues.delete(t),En(e,t)}var kn={setDirty:!0,dispose:!0,forget:!0};function Sn(e){var t=new Map,r=e&&e.subscribe;function n(e){var n=on.getValue();if(n){var i=t.get(e);i||t.set(e,i=new Set),n.dependOn(i),"function"===typeof r&&(cn(i),i.unsubscribe=r(e))}}return n.dirty=function(e,r){var n=t.get(e);if(n){var i=r&&an.call(kn,r)?r:"setDirty";sn(n).forEach((function(e){return e[i]()})),t.delete(e),cn(n)}},n}function Tn(){var e=new ur("function"===typeof WeakMap);return function(){return e.lookupArray(arguments)}}Tn();var Dn=new Set;function xn(e,t){void 0===t&&(t=Object.create(null));var r=new nn(t.max||Math.pow(2,16),(function(e){return e.dispose()})),n=t.keyArgs,i=t.makeCacheKey||Tn(),o=function(){var o=i.apply(null,n?n.apply(null,arguments):arguments);if(void 0===o)return e.apply(null,arguments);var a=r.get(o);a||(r.set(o,a=new pn(e)),a.subscribe=t.subscribe,a.forget=function(){return r.delete(o)});var s=a.recompute(Array.prototype.slice.call(arguments));return r.set(o,a),Dn.add(r),on.hasValue()||(Dn.forEach((function(e){return e.clean()})),Dn.clear()),s};function a(e){var t=r.get(e);t&&t.setDirty()}function s(e){var t=r.get(e);if(t)return t.peek()}function c(e){return r.delete(e)}return Object.defineProperty(o,"size",{get:function(){return r.map.size},configurable:!1,enumerable:!1}),o.dirtyKey=a,o.dirty=function(){a(i.apply(null,arguments))},o.peekKey=s,o.peek=function(){return s(i.apply(null,arguments))},o.forgetKey=c,o.forget=function(){return c(i.apply(null,arguments))},o.makeCacheKey=i,o.getKey=n?function(){return i.apply(null,n.apply(null,arguments))}:i,Object.freeze(o)}var In=new Xr,Nn=new WeakMap;function Rn(e){var t=Nn.get(e);return t||Nn.set(e,t={vars:new Set,dep:Sn()}),t}function Cn(e){Rn(e).vars.forEach((function(t){return t.forgetCache(e)}))}function An(e){var t=new Set,r=new Set,n=function(o){if(arguments.length>0){if(e!==o){e=o,t.forEach((function(e){Rn(e).dep.dirty(n),Fn(e)}));var a=Array.from(r);r.clear(),a.forEach((function(t){return t(e)}))}}else{var s=In.getValue();s&&(i(s),Rn(s).dep(n))}return e};n.onNextChange=function(e){return r.add(e),function(){r.delete(e)}};var i=n.attachCache=function(e){return t.add(e),Rn(e).vars.add(n),n};return n.forgetCache=function(e){return t.delete(e)},n}function Fn(e){e.broadcastWatches&&e.broadcastWatches()}var Pn=function(){function e(e){var t=e.cache,r=e.client,n=e.resolvers,i=e.fragmentMatcher;this.selectionsToResolveCache=new WeakMap,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=ct(t.resolvers,e)})):this.resolvers=ct(this.resolvers,e)},e.prototype.setResolvers=function(e){this.resolvers={},this.addResolvers(e)},e.prototype.getResolvers=function(){return this.resolvers||{}},e.prototype.runResolvers=function(e){var t=e.document,r=e.remoteResult,n=e.context,i=e.variables,a=e.onlyRunForcedResolvers,u=void 0!==a&&a;return s(this,void 0,void 0,(function(){return c(this,(function(e){return t?[2,this.resolveDocument(t,r.data,n,i,this.fragmentMatcher,u).then((function(e){return o(o({},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 Qe(["client"],e)&&this.resolvers?e:null},e.prototype.serverQuery=function(e){return function(e){return me(e),wr([{test:function(e){return"client"===e.name.value},remove:!0}],e)}(e)},e.prototype.prepareContext=function(e){var t=this.cache;return o(o({},e),{cache:t,getCacheKey:function(e){return t.identify(e)}})},e.prototype.addExportedVariables=function(e,t,r){return void 0===t&&(t={}),void 0===r&&(r={}),s(this,void 0,void 0,(function(){return c(this,(function(n){return e?[2,this.resolveDocument(e,this.buildRootValueFromCache(e,t)||{},this.prepareContext(r),t).then((function(e){return o(o({},t),e.exportedVariables)}))]:[2,o({},t)]}))}))},e.prototype.shouldForceResolvers=function(e){var t=!1;return Me(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 Le}}}),t},e.prototype.buildRootValueFromCache=function(e,t){return this.cache.diff({query:Tr(e),variables:t,returnPartialData:!0,optimistic:!1}).result},e.prototype.resolveDocument=function(e,t,r,n,i,a){return void 0===r&&(r={}),void 0===n&&(n={}),void 0===i&&(i=function(){return!0}),void 0===a&&(a=!1),s(this,void 0,void 0,(function(){var s,u,l,f,p,h,d,v,y,m;return c(this,(function(c){return s=Oe(e),u=_e(e),l=ie(u),f=this.collectSelectionsToResolve(s,l),p=s.operation,h=p?p.charAt(0).toUpperCase()+p.slice(1):"Query",v=(d=this).cache,y=d.client,m={fragmentMap:l,context:o(o({},r),{cache:v,client:y}),variables:n,fragmentMatcher:i,defaultOperationType:h,exportedVariables:{},selectionsToResolve:f,onlyRunForcedResolvers:a},!1,[2,this.resolveSelectionSet(s.selectionSet,false,t,m).then((function(e){return{result:e,exportedVariables:m.exportedVariables}}))]}))}))},e.prototype.resolveSelectionSet=function(e,t,r,n){return s(this,void 0,void 0,(function(){var i,o,a,u,l,f=this;return c(this,(function(p){return i=n.fragmentMap,o=n.context,a=n.variables,u=[r],l=function(e){return s(f,void 0,void 0,(function(){var s,l;return c(this,(function(c){return(t||n.selectionsToResolve.has(e))&&Ve(e,a)?ye(e)?[2,this.resolveField(e,t,r,n).then((function(t){var r;"undefined"!==typeof t&&u.push(((r={})[de(e)]=t,r))}))]:(!function(e){return"InlineFragment"===e.kind}(e)?(s=i[e.name.value],__DEV__?d(s,"No fragment named ".concat(e.name.value)):d(s,11)):s=e,s&&s.typeCondition&&(l=s.typeCondition.name.value,n.fragmentMatcher(r,l,o))?[2,this.resolveSelectionSet(s.selectionSet,t,r,n).then((function(e){u.push(e)}))]:[2]):[2]}))}))},[2,Promise.all(e.selections.map(l)).then((function(){return ut(u)}))]}))}))},e.prototype.resolveField=function(e,t,r,n){return s(this,void 0,void 0,(function(){var i,o,a,s,u,l,f,p,h,d=this;return c(this,(function(c){return r?(i=n.variables,o=e.name.value,a=de(e),s=o!==a,u=r[a]||r[o],l=Promise.resolve(u),n.onlyRunForcedResolvers&&!this.shouldForceResolvers(e)||(f=r.__typename||n.defaultOperationType,(p=this.resolvers&&this.resolvers[f])&&(h=p[s?o:a])&&(l=Promise.resolve(In.withValue(this.cache,h,[r,he(e,i),n.context,{field:e,fragmentMap:n.fragmentMap}])))),[2,l.then((function(r){var i,o;
1if(void 0===r&&(r=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&&(n.exportedVariables[e.value.value]=r)}))})),!e.selectionSet)return r;if(null==r)return r;var a=null!==(o=null===(i=e.directives)||void 0===i?void 0:i.some((function(e){return"client"===e.name.value})))&&void 0!==o&&o;return Array.isArray(r)?d.resolveSubSelectedArray(e,t||a,r,n):e.selectionSet?d.resolveSelectionSet(e.selectionSet,t||a,r,n):void 0}))]):[2,null]}))}))},e.prototype.resolveSubSelectedArray=function(e,t,r,n){var i=this;return Promise.all(r.map((function(r){return null===r?null:Array.isArray(r)?i.resolveSubSelectedArray(e,t,r,n):e.selectionSet?i.resolveSelectionSet(e.selectionSet,t,r,n):void 0})))},e.prototype.collectSelectionsToResolve=function(e,t){var r=function(e){return!Array.isArray(e)},n=this.selectionsToResolveCache;return function e(i){if(!n.has(i)){var o=new Set;n.set(i,o),Me(i,{Directive:function(e,t,n,i,a){"client"===e.name.value&&a.forEach((function(e){r(e)&&Wr(e)&&o.add(e)}))},FragmentSpread:function(n,i,a,s,c){var u=t[n.name.value];__DEV__?d(u,"No fragment named ".concat(n.name.value)):d(u,12);var l=e(u);l.size>0&&(c.forEach((function(e){r(e)&&Wr(e)&&o.add(e)})),o.add(n),l.forEach((function(e){o.add(e)})))}})}return n.get(i)}(e)},e}(),jn=new(We?WeakMap:Map);function Ln(e,t){var r=e[t];"function"===typeof r&&(e[t]=function(){return jn.set(e,(jn.get(e)+1)%1e15),r.apply(this,arguments)})}function Mn(e){e.notifyTimeout&&(clearTimeout(e.notifyTimeout),e.notifyTimeout=void 0)}var qn=function(){function e(e,t){void 0===t&&(t=e.generateQueryId()),this.queryId=t,this.listeners=new Set,this.document=null,this.lastRequestId=1,this.subscriptions=new Set,this.stopped=!1,this.dirty=!1,this.observableQuery=null;var r=this.cache=e.cache;jn.has(r)||(jn.set(r,0),Ln(r,"evict"),Ln(r,"modify"),Ln(r,"reset"))}return e.prototype.init=function(e){var t=e.networkStatus||Cr.loading;return this.variables&&this.networkStatus!==Cr.loading&&!Zt(this.variables,e.variables)&&(t=Cr.setVariables),Zt(e.variables,this.variables)||(this.lastDiff=void 0),Object.assign(this,{document:e.document,variables:e.variables,networkError:null,graphQLErrors:this.graphQLErrors||[],networkStatus:t}),e.observableQuery&&this.setObservableQuery(e.observableQuery),e.lastRequestId&&(this.lastRequestId=e.lastRequestId),this},e.prototype.reset=function(){Mn(this),this.dirty=!1},e.prototype.getDiff=function(e){void 0===e&&(e=this.variables);var t=this.getDiffOptions(e);if(this.lastDiff&&Zt(t,this.lastDiff.options))return this.lastDiff.diff;this.updateWatch(this.variables=e);var r=this.observableQuery;if(r&&"no-cache"===r.options.fetchPolicy)return{complete:!1};var n=this.cache.diff(t);return this.updateLastDiff(n,t),n},e.prototype.updateLastDiff=function(e,t){this.lastDiff=e?{diff:e,options:t||this.getDiffOptions()}:void 0},e.prototype.getDiffOptions=function(e){var t;return void 0===e&&(e=this.variables),{query:this.document,variables:e,returnPartialData:!0,optimistic:!0,canonizeResults:null===(t=this.observableQuery)||void 0===t?void 0:t.options.canonizeResults}},e.prototype.setDiff=function(e){var t=this,r=this.lastDiff&&this.lastDiff.diff;this.updateLastDiff(e),this.dirty||Zt(r&&r.result,e&&e.result)||(this.dirty=!0,this.notifyTimeout||(this.notifyTimeout=setTimeout((function(){return t.notify()}),0)))},e.prototype.setObservableQuery=function(e){var t=this;e!==this.observableQuery&&(this.oqListener&&this.listeners.delete(this.oqListener),this.observableQuery=e,e?(e.queryInfo=this,this.listeners.add(this.oqListener=function(){t.getDiff().fromOptimisticTransaction?e.observe():Br(e)})):delete this.oqListener)},e.prototype.notify=function(){var e=this;Mn(this),this.shouldNotify()&&this.listeners.forEach((function(t){return t(e)})),this.dirty=!1},e.prototype.shouldNotify=function(){if(!this.dirty||!this.listeners.size)return!1;if(Fr(this.networkStatus)&&this.observableQuery){var e=this.observableQuery.options.fetchPolicy;if("cache-only"!==e&&"cache-and-network"!==e)return!1}return!0},e.prototype.stop=function(){if(!this.stopped){this.stopped=!0,this.reset(),this.cancel(),this.cancel=e.prototype.cancel,this.subscriptions.forEach((function(e){return e.unsubscribe()}));var t=this.observableQuery;t&&t.stopPolling()}},e.prototype.cancel=function(){},e.prototype.updateWatch=function(e){var t=this;void 0===e&&(e=this.variables);var r=this.observableQuery;if(!r||"no-cache"!==r.options.fetchPolicy){var n=o(o({},this.getDiffOptions(e)),{watcher:this,callback:function(e){return t.setDiff(e)}});
1this.lastWatch&&Zt(n,this.lastWatch)||(this.cancel(),this.cancel=this.cache.watch(this.lastWatch=n))}},e.prototype.resetLastWrite=function(){this.lastWrite=void 0},e.prototype.shouldWrite=function(e,t){var r=this.lastWrite;return!(r&&r.dmCount===jn.get(this.cache)&&Zt(t,r.variables)&&Zt(e.data,r.result.data))},e.prototype.markResult=function(e,t,r,n){var i=this,o=new ft,a=at(e.errors)?e.errors.slice(0):[];if(this.reset(),"incremental"in e&&at(e.incremental)){var s=dt(this.getDiff().result,e);e.data=s}else if("hasNext"in e&&e.hasNext){var c=this.getDiff();e.data=o.merge(c.result,e.data)}this.graphQLErrors=a,"no-cache"===r.fetchPolicy?this.updateLastDiff({result:e.data,complete:!0},this.getDiffOptions(r.variables)):0!==n&&(Vn(e,r.errorPolicy)?this.cache.performTransaction((function(o){if(i.shouldWrite(e,r.variables))o.writeQuery({query:t,data:e.data,variables:r.variables,overwrite:1===n}),i.lastWrite={result:e,variables:r.variables,dmCount:jn.get(i.cache)};else if(i.lastDiff&&i.lastDiff.diff.complete)return void(e.data=i.lastDiff.diff.result);var a=i.getDiffOptions(r.variables),s=o.diff(a);i.stopped||i.updateWatch(r.variables),i.updateLastDiff(s,a),s.complete&&(e.data=s.result)})):this.lastWrite=void 0)},e.prototype.markReady=function(){return this.networkError=null,this.networkStatus=Cr.ready},e.prototype.markError=function(e){return this.networkStatus=Cr.error,this.lastWrite=void 0,this.reset(),e.graphQLErrors&&(this.graphQLErrors=e.graphQLErrors),e.networkError&&(this.networkError=e.networkError),e},e}();function Vn(e,t){void 0===t&&(t="none");var r="ignore"===t||"all"===t,n=!yr(e);return!n&&r&&e.data&&(n=!0),n}var Qn=Object.prototype.hasOwnProperty,Bn=function(){function e(e){var t=e.cache,r=e.link,n=e.defaultOptions,i=e.queryDeduplication,o=void 0!==i&&i,a=e.onBroadcast,s=e.ssrMode,c=void 0!==s&&s,u=e.clientAwareness,l=void 0===u?{}:u,f=e.localState,p=e.assumeImmutableResults;this.clientAwareness={},this.queries=new Map,this.fetchCancelFns=new Map,this.transformCache=new(We?WeakMap:Map),this.queryIdCounter=1,this.requestIdCounter=1,this.mutationIdCounter=1,this.inFlightLinkObservables=new Map,this.cache=t,this.link=r,this.defaultOptions=n||Object.create(null),this.queryDeduplication=o,this.clientAwareness=l,this.localState=f||new Pn({cache:t}),this.ssrMode=c,this.assumeImmutableResults=!!p,(this.onBroadcast=a)&&(this.mutationStore=Object.create(null))}return e.prototype.stop=function(){var e=this;this.queries.forEach((function(t,r){e.stopQueryNoBroadcast(r)})),this.cancelPendingFetches(__DEV__?new h("QueryManager stopped while query was in flight"):new h(14))},e.prototype.cancelPendingFetches=function(e){this.fetchCancelFns.forEach((function(t){return t(e)})),this.fetchCancelFns.clear()},e.prototype.mutate=function(e){var t,r,n=e.mutation,i=e.variables,a=e.optimisticResponse,u=e.updateQueries,l=e.refetchQueries,f=void 0===l?[]:l,p=e.awaitRefetchQueries,h=void 0!==p&&p,v=e.update,y=e.onQueryUpdated,m=e.fetchPolicy,b=void 0===m?(null===(t=this.defaultOptions.mutate)||void 0===t?void 0:t.fetchPolicy)||"network-only":m,g=e.errorPolicy,_=void 0===g?(null===(r=this.defaultOptions.mutate)||void 0===r?void 0:r.errorPolicy)||"none":g,E=e.keepRootFields,O=e.context;return s(this,void 0,void 0,(function(){var e,t,r,s,l,p;return c(this,(function(c){switch(c.label){case 0:return __DEV__?d(n,"mutation option is required. You must specify your GraphQL document in the mutation option."):d(n,15),__DEV__?d("network-only"===b||"no-cache"===b,"Mutations support only 'network-only' or 'no-cache' fetchPolicy strings. The default `network-only` behavior automatically writes mutation results to the cache. Passing `no-cache` skips the cache write."):d("network-only"===b||"no-cache"===b,16),e=this.generateMutationId(),t=this.transform(n),r=t.document,s=t.hasClientExports,n=this.cache.transformForLink(r),i=this.getVariables(n,i),s?[4,this.localState.addExportedVariables(n,i,O)]:[3,2];case 1:i=c.sent(),c.label=2;case 2:return l=this.mutationStore&&(this.mutationStore[e]={mutation:n,variables:i,loading:!0,error:null}),a&&this.markMutationOptimistic(a,{mutationId:e,document:n,variables:i,fetchPolicy:b,errorPolicy:_,context:O,updateQueries:u,update:v,keepRootFields:E}),this.broadcastQueries(),p=this,[2,new Promise((function(t,r){return vr(p.getObservableFromLink(n,o(o({},O),{optimisticResponse:a}),i,!1),(function(t){if(yr(t)&&"none"===_)throw new it({graphQLErrors:mr(t)});l&&(l.loading=!1,l.error=null);var r=o({},t);return"function"===typeof f&&(f=f(r)),"ignore"===_&&yr(r)&&delete r.errors,p.markMutationResult({mutationId:e,result:r,document:n,variables:i,fetchPolicy:b,errorPolicy:_,context:O,update:v,updateQueries:u,awaitRefetchQueries:h,refetchQueries:f,removeOptimistic:a?e:void 0,onQueryUpdated:y,keepRootFields:E})})).subscribe({next:function(e){p.broadcastQueries(),"hasNext"in e&&!1!==e.hasNext||t(e)},error:function(t){l&&(l.loading=!1,l.error=t),a&&p.cache.removeOptimistic(e),p.broadcastQueries(),r(t instanceof it?t:new it({networkError:t}))}})}))]}}))}))},e.prototype.markMutationResult=function(e,t){var r=this;void 0===t&&(t=this.cache);var n=e.result,i=[],a="no-cache"===e.fetchPolicy;if(!a&&Vn(n,e.errorPolicy)){if(pt(n)||i.push({result:n.data,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables}),pt(n)&&at(n.incremental)){var s=t.diff({id:"ROOT_MUTATION",query:this.transform(e.document).asQuery,variables:e.variables,optimistic:!1,returnPartialData:!0}
1),c=void 0;s.result&&(c=dt(s.result,n)),"undefined"!==typeof c&&(n.data=c,i.push({result:c,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables}))}var u=e.updateQueries;u&&this.queries.forEach((function(e,o){var a=e.observableQuery,s=a&&a.queryName;if(s&&Qn.call(u,s)){var c=u[s],l=r.queries.get(o),f=l.document,p=l.variables,h=t.diff({query:f,variables:p,returnPartialData:!0,optimistic:!1}),d=h.result;if(h.complete&&d){var v=c(d,{mutationResult:n,queryName:f&&ge(f)||void 0,queryVariables:p});v&&i.push({result:v,dataId:"ROOT_QUERY",query:f,variables:p})}}}))}if(i.length>0||e.refetchQueries||e.update||e.onQueryUpdated||e.removeOptimistic){var l=[];if(this.refetchQueries({updateCache:function(t){a||i.forEach((function(e){return t.write(e)}));var s,c=e.update,u=!(pt(s=n)||function(e){return"hasNext"in e&&"data"in e}(s))||pt(n)&&!n.hasNext;if(c){if(!a){var l=t.diff({id:"ROOT_MUTATION",query:r.transform(e.document).asQuery,variables:e.variables,optimistic:!1,returnPartialData:!0});l.complete&&("incremental"in(n=o(o({},n),{data:l.result}))&&delete n.incremental,"hasNext"in n&&delete n.hasNext)}u&&c(t,n,{context:e.context,variables:e.variables})}a||e.keepRootFields||!u||t.modify({id:"ROOT_MUTATION",fields:function(e,t){var r=t.fieldName,n=t.DELETE;return"__typename"===r?e:n}})},include:e.refetchQueries,optimistic:!1,removeOptimistic:e.removeOptimistic,onQueryUpdated:e.onQueryUpdated||null}).forEach((function(e){return l.push(e)})),e.awaitRefetchQueries||e.onQueryUpdated)return Promise.all(l).then((function(){return n}))}return Promise.resolve(n)},e.prototype.markMutationOptimistic=function(e,t){var r=this,n="function"===typeof e?e(t.variables):e;return this.cache.recordOptimisticTransaction((function(e){try{r.markMutationResult(o(o({},t),{result:{data:n}}),e)}catch(i){__DEV__&&d.error(i)}}),t.mutationId)},e.prototype.fetchQuery=function(e,t,r){return this.fetchQueryObservable(e,t,r).promise},e.prototype.getQueryStore=function(){var e=Object.create(null);return this.queries.forEach((function(t,r){e[r]={variables:t.variables,networkStatus:t.networkStatus,networkError:t.networkError,graphQLErrors:t.graphQLErrors}})),e},e.prototype.resetErrors=function(e){var t=this.queries.get(e);t&&(t.networkError=void 0,t.graphQLErrors=[])},e.prototype.transform=function(e){var t=this.transformCache;if(!t.has(e)){var r=this.cache.transformDocument(e),n=wr([Sr],me(r)),i=this.localState.clientQuery(r),a=n&&this.localState.serverQuery(n),s={document:r,hasClientExports:Be(r),hasForcedResolvers:this.localState.shouldForceResolvers(r),clientQuery:i,serverQuery:a,defaultVars:we(be(r)),asQuery:o(o({},r),{definitions:r.definitions.map((function(e){return"OperationDefinition"===e.kind&&"query"!==e.operation?o(o({},e),{operation:"query"}):e}))})},c=function(e){e&&!t.has(e)&&t.set(e,s)};c(e),c(r),c(i),c(a)}return t.get(e)},e.prototype.getVariables=function(e,t){return o(o({},this.transform(e).defaultVars),t)},e.prototype.watchQuery=function(e){"undefined"===typeof(e=o(o({},e),{variables:this.getVariables(e.query,e.variables)})).notifyOnNetworkStatusChange&&(e.notifyOnNetworkStatusChange=!1);var t=new qn(this),r=new Qr({queryManager:this,queryInfo:t,options:e});return this.queries.set(r.queryId,t),t.init({document:r.query,observableQuery:r,variables:r.variables}),r},e.prototype.query=function(e,t){var r=this;return void 0===t&&(t=this.generateQueryId()),__DEV__?d(e.query,"query option is required. You must specify your GraphQL document in the query option."):d(e.query,17),__DEV__?d("Document"===e.query.kind,'You must wrap the query string in a "gql" tag.'):d("Document"===e.query.kind,18),__DEV__?d(!e.returnPartialData,"returnPartialData option only supported on watchQuery."):d(!e.returnPartialData,19),__DEV__?d(!e.pollInterval,"pollInterval option only supported on watchQuery."):d(!e.pollInterval,20),this.fetchQuery(t,e).finally((function(){return r.stopQuery(t)}))},e.prototype.generateQueryId=function(){return String(this.queryIdCounter++)},e.prototype.generateRequestId=function(){return this.requestIdCounter++},e.prototype.generateMutationId=function(){return String(this.mutationIdCounter++)},e.prototype.stopQueryInStore=function(e){this.stopQueryInStoreNoBroadcast(e),this.broadcastQueries()},e.prototype.stopQueryInStoreNoBroadcast=function(e){var t=this.queries.get(e);t&&t.stop()},e.prototype.clearStore=function(e){return void 0===e&&(e={discardWatches:!0}),this.cancelPendingFetches(__DEV__?new h("Store reset while query was in flight (not completed in link chain)"):new h(21)),this.queries.forEac
1h((function(e){e.observableQuery?e.networkStatus=Cr.loading:e.stop()})),this.mutationStore&&(this.mutationStore=Object.create(null)),this.cache.reset(e)},e.prototype.getObservableQueries=function(e){var t=this;void 0===e&&(e="active");var r=new Map,n=new Map,i=new Set;return Array.isArray(e)&&e.forEach((function(e){var r;"string"===typeof e?n.set(e,!1):re(r=e)&&"Document"===r.kind&&Array.isArray(r.definitions)?n.set(t.transform(e).document,!1):re(e)&&e.query&&i.add(e)})),this.queries.forEach((function(t,i){var o=t.observableQuery,a=t.document;if(o){if("all"===e)return void r.set(i,o);var s=o.queryName;if("standby"===o.options.fetchPolicy||"active"===e&&!o.hasObservers())return;("active"===e||s&&n.has(s)||a&&n.has(a))&&(r.set(i,o),s&&n.set(s,!0),a&&n.set(a,!0))}})),i.size&&i.forEach((function(e){var n=xr("legacyOneTimeQuery"),i=t.getQuery(n).init({document:e.query,variables:e.variables}),a=new Qr({queryManager:t,queryInfo:i,options:o(o({},e),{fetchPolicy:"network-only"})});d(a.queryId===n),i.setObservableQuery(a),r.set(n,a)})),__DEV__&&n.size&&n.forEach((function(e,t){e||__DEV__&&d.warn("Unknown query ".concat("string"===typeof t?"named ":"").concat(JSON.stringify(t,null,2)," requested in refetchQueries options.include array"))})),r},e.prototype.reFetchObservableQueries=function(e){var t=this;void 0===e&&(e=!1);var r=[];return this.getObservableQueries(e?"all":"active").forEach((function(n,i){var o=n.options.fetchPolicy;n.resetLastResults(),(e||"standby"!==o&&"cache-only"!==o)&&r.push(n.refetch()),t.getQuery(i).setDiff(null)})),this.broadcastQueries(),Promise.all(r)},e.prototype.setObservableQuery=function(e){this.getQuery(e.queryId).setObservableQuery(e)},e.prototype.startGraphQLSubscription=function(e){var t=this,r=e.query,n=e.fetchPolicy,i=e.errorPolicy,o=e.variables,a=e.context,s=void 0===a?{}:a;r=this.transform(r).document,o=this.getVariables(r,o);var c=function(e){return t.getObservableFromLink(r,s,e).map((function(o){"no-cache"!==n&&(Vn(o,i)&&t.cache.write({query:r,result:o.data,dataId:"ROOT_SUBSCRIPTION",variables:e}),t.broadcastQueries());var a=yr(o),s=function(e){return!!e.extensions&&Array.isArray(e.extensions[rt])}(o);if(a||s){var c={};throw a&&(c.graphQLErrors=o.errors),s&&(c.protocolErrors=o.extensions[rt]),new it(c)}return o}))};if(this.transform(r).hasClientExports){var u=this.localState.addExportedVariables(r,o,s).then(c);return new te((function(e){var t=null;return u.then((function(r){return t=r.subscribe(e)}),e.error),function(){return t&&t.unsubscribe()}}))}return c(o)},e.prototype.stopQuery=function(e){this.stopQueryNoBroadcast(e),this.broadcastQueries()},e.prototype.stopQueryNoBroadcast=function(e){this.stopQueryInStoreNoBroadcast(e),this.removeQuery(e)},e.prototype.removeQuery=function(e){this.fetchCancelFns.delete(e),this.queries.has(e)&&(this.getQuery(e).stop(),this.queries.delete(e))},e.prototype.broadcastQueries=function(){this.onBroadcast&&this.onBroadcast(),this.queries.forEach((function(e){return e.notify()}))},e.prototype.getLocalState=function(){return this.localState},e.prototype.getObservableFromLink=function(e,t,r,n){var i,a,s=this;void 0===n&&(n=null!==(i=null===t||void 0===t?void 0:t.queryDeduplication)&&void 0!==i?i:this.queryDeduplication);var c=this.transform(e).serverQuery;if(c){var u=this.inFlightLinkObservables,l=this.link,f={query:c,variables:r,operationName:ge(c)||void 0,context:this.prepareContext(o(o({},t),{forceFetch:!n}))};if(t=f.context,n){var p=u.get(c)||new Map;u.set(c,p);var h=hr(r);if(!(a=p.get(h))){var d=new Ar([Ie(l,f)]);p.set(h,a=d),d.beforeNext((function(){p.delete(h)&&p.size<1&&u.delete(c)}))}}else a=new Ar([Ie(l,f)])}else a=new Ar([te.of({data:{}})]),t=this.prepareContext(t);var v=this.transform(e).clientQuery;return v&&(a=vr(a,(function(e){return s.localState.runResolvers({document:v,remoteResult:e,context:t,variables:r})}))),a},e.prototype.getResultsFromLink=function(e,t,r){var n=e.lastRequestId=this.generateRequestId(),i=this.cache.transformForLink(this.transform(e.document).document);return vr(this.getObservableFromLink(i,r.context,r.variables),(function(o){var a=mr(o),s=a.length>0;if(n>
1=e.lastRequestId){if(s&&"none"===r.errorPolicy)throw e.markError(new it({graphQLErrors:a}));e.markResult(o,i,r,t),e.markReady()}var c={data:o.data,loading:!1,networkStatus:Cr.ready};return s&&"ignore"!==r.errorPolicy&&(c.errors=a,c.networkStatus=Cr.error),c}),(function(t){var r=nt(t)?t:new it({networkError:t});throw n>=e.lastRequestId&&e.markError(r),r}))},e.prototype.fetchQueryObservable=function(e,t,r){return this.fetchConcastWithInfo(e,t,r).concast},e.prototype.fetchConcastWithInfo=function(e,t,r){var n=this;void 0===r&&(r=Cr.loading);var i,o,a=this.transform(t.query).document,s=this.getVariables(a,t.variables),c=this.getQuery(e),u=this.defaultOptions.watchQuery,l=t.fetchPolicy,f=void 0===l?u&&u.fetchPolicy||"cache-first":l,p=t.errorPolicy,h=void 0===p?u&&u.errorPolicy||"none":p,d=t.returnPartialData,v=void 0!==d&&d,y=t.notifyOnNetworkStatusChange,m=void 0!==y&&y,b=t.context,g=void 0===b?{}:b,_=Object.assign({},t,{query:a,variables:s,fetchPolicy:f,errorPolicy:h,returnPartialData:v,notifyOnNetworkStatusChange:m,context:g}),E=function(e){_.variables=e;var i=n.fetchQueryByPolicy(c,_,r);return"standby"!==_.fetchPolicy&&i.sources.length>0&&c.observableQuery&&c.observableQuery.applyNextFetchPolicy("after-fetch",t),i},O=function(){return n.fetchCancelFns.delete(e)};if(this.fetchCancelFns.set(e,(function(e){O(),setTimeout((function(){return i.cancel(e)}))})),this.transform(_.query).hasClientExports)i=new Ar(this.localState.addExportedVariables(_.query,_.variables,_.context).then(E).then((function(e){return e.sources}))),o=!0;else{var w=E(_.variables);o=w.fromLink,i=new Ar(w.sources)}return i.promise.then(O,O),{concast:i,fromLink:o}},e.prototype.refetchQueries=function(e){var t=this,r=e.updateCache,n=e.include,i=e.optimistic,o=void 0!==i&&i,a=e.removeOptimistic,s=void 0===a?o?xr("refetchQueries"):void 0:a,c=e.onQueryUpdated,u=new Map;n&&this.getObservableQueries(n).forEach((function(e,r){u.set(r,{oq:e,lastDiff:t.getQuery(r).getDiff()})}));var l=new Map;return r&&this.cache.batch({update:r,optimistic:o&&s||!1,removeOptimistic:s,onWatchUpdated:function(e,t,r){var n=e.watcher instanceof qn&&e.watcher.observableQuery;if(n){if(c){u.delete(n.queryId);var i=c(n,t,r);return!0===i&&(i=n.refetch()),!1!==i&&l.set(n,i),i}null!==c&&u.set(n.queryId,{oq:n,lastDiff:r,diff:t})}}}),u.size&&u.forEach((function(e,r){var n,i=e.oq,o=e.lastDiff,a=e.diff;if(c){if(!a){var s=i.queryInfo;s.reset(),a=s.getDiff()}n=c(i,a,o)}c&&!0!==n||(n=i.refetch()),!1!==n&&l.set(i,n),r.indexOf("legacyOneTimeQuery")>=0&&t.stopQueryNoBroadcast(r)})),s&&this.cache.removeOptimistic(s),l},e.prototype.fetchQueryByPolicy=function(e,t,r){var n=this,i=t.query,a=t.variables,s=t.fetchPolicy,c=t.refetchWritePolicy,u=t.errorPolicy,l=t.returnPartialData,f=t.context,p=t.notifyOnNetworkStatusChange,h=e.networkStatus;e.init({document:this.transform(i).document,variables:a,networkStatus:r});var d=function(){return e.getDiff(a)},v=function(t,r){void 0===r&&(r=e.networkStatus||Cr.loading);var s=t.result;!__DEV__||l||Zt(s,{})||zr(t.missing);var c=function(e){return te.of(o({data:e,loading:Fr(r),networkStatus:r},t.complete?null:{partial:!0}))};return s&&n.transform(i).hasForcedResolvers?n.localState.runResolvers({document:i,remoteResult:{data:s},context:f,variables:a,onlyRunForcedResolvers:!0}).then((function(e){return c(e.data||void 0)})):"none"===u&&r===Cr.refetch&&Array.isArray(t.missing)?c(void 0):c(s)},y="no-cache"===s?0:r===Cr.refetch&&"merge"!==c?1:2,m=function(){return n.getResultsFromLink(e,y,{variables:a,context:f,fetchPolicy:s,errorPolicy:u})},b=p&&"number"===typeof h&&h!==r&&Fr(r);switch(s){default:case"cache-first":return(g=d()).complete?{fromLink:!1,sources:[v(g,e.markReady())]}:l||b?{fromLink:!0,sources:[v(g),m()]}:{fromLink:!0,sources:[m()]};case"cache-and-network":var g;return(g=d()).complete||l||b?{fromLink:!0,sources:[v(g),m()]}:{fromLink:!0,sources:[m()]};case"cache-only":return{fromLink:!1,sources:[v(d(),e.markReady())]};case"network-only":return b?{fromLink:!0,sources:[v(d()),m()]}:{fromLink:!0,sources:[m()]};case"no-cache":return b?{fromLink:!0,sources:[v(e.getDiff()),m()]}:{fromLink:!0,sources:[m()]};case"standby":return{fromLink:!1,sources:[]}}},e.prototype.getQuery=function(e){return e&&!this.queries.has(e)&&this.queries.set(e,new qn(this,e)),this.queries.get(e)},e.prototype.prepareContext=function(e){void 0===e&&(e={});var t=this.localState.prepareContext(e);return o(o({},t),{clientAwareness:this.clientAwareness})},e}();function Un(e,t){return Mr(e,t,t.variables&&{variables:o(o({},e&&e.variables),t.variables)})}var zn,Wn=!1,Kn=function(){function e(e){var t=this;this.resetStoreCallbacks=[],this.clearStoreCallbacks=[];var r=e.uri,n=e.credentials,i=e.headers,o=e.cache,a=e.ssrMode,s=void 0!==a&&a,c=e.ssrForceFetchDelay,u=void 0===c?0:c,l=e.connectToDevTools,f=void 0===l?"object"===typeof window&&!window.__APOLLO_CLIENT__&&__DEV__:l,p=e.queryDeduplication,v=void 0===p||p,y=e.defaultOptions,m=e.assumeImmutableResults,b=void 0!==m&&m,g
1=e.resolvers,_=e.typeDefs,E=e.fragmentMatcher,O=e.name,w=e.version,k=e.link;if(k||(k=r?new Yt({uri:r,credentials:n,headers:i}):xe.empty()),!o)throw __DEV__?new h("To initialize Apollo Client, you must specify a 'cache' property in the options object. \nFor more information, please visit: https://go.apollo.dev/c/docs"):new h(9);if(this.link=k,this.cache=o,this.disableNetworkFetches=s||u>0,this.queryDeduplication=v,this.defaultOptions=y||Object.create(null),this.typeDefs=_,u&&setTimeout((function(){return t.disableNetworkFetches=!1}),u),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),f&&"object"===typeof window&&(window.__APOLLO_CLIENT__=this),!Wn&&f&&__DEV__&&(Wn=!0,"undefined"!==typeof window&&window.document&&window.top===window.self&&!window.__APOLLO_DEVTOOLS_GLOBAL_HOOK__)){var S=window.navigator,T=S&&S.userAgent,D=void 0;"string"===typeof T&&(T.indexOf("Chrome/")>-1?D="https://chrome.google.com/webstore/detail/apollo-client-developer-t/jdkknkkbebbapilgoeccciglkfbmbnfm":T.indexOf("Firefox/")>-1&&(D="https://addons.mozilla.org/en-US/firefox/addon/apollo-developer-tools/")),D&&__DEV__&&d.log("Download the Apollo DevTools for a better development experience: "+D)}this.version="3.7.14",this.localState=new Pn({cache:o,client:this,resolvers:g,fragmentMatcher:E}),this.queryManager=new Bn({cache:this.cache,link:this.link,defaultOptions:this.defaultOptions,queryDeduplication:v,ssrMode:s,clientAwareness:{name:O,version:w},localState:this.localState,assumeImmutableResults:b,onBroadcast:f?function(){t.devToolsHookCb&&t.devToolsHookCb({action:{},state:{queries:t.queryManager.getQueryStore(),mutations:t.queryManager.mutationStore||{}},dataWithOptimisticResults:t.cache.extract(!0)})}:void 0})}return e.prototype.stop=function(){this.queryManager.stop()},e.prototype.watchQuery=function(e){return this.defaultOptions.watchQuery&&(e=Un(this.defaultOptions.watchQuery,e)),!this.disableNetworkFetches||"network-only"!==e.fetchPolicy&&"cache-and-network"!==e.fetchPolicy||(e=o(o({},e),{fetchPolicy:"cache-first"})),this.queryManager.watchQuery(e)},e.prototype.query=function(e){return this.defaultOptions.query&&(e=Un(this.defaultOptions.query,e)),__DEV__?d("cache-and-network"!==e.fetchPolicy,"The cache-and-network fetchPolicy does not work with client.query, because client.query can only return a single result. Please use client.watchQuery to receive multiple results from the cache and the network, or consider using a different fetchPolicy, such as cache-first or network-only."):d("cache-and-network"!==e.fetchPolicy,10),this.disableNetworkFetches&&"network-only"===e.fetchPolicy&&(e=o(o({},e),{fetchPolicy:"cache-first"})),this.queryManager.query(e)},e.prototype.mutate=function(e){return this.defaultOptions.mutate&&(e=Un(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!1!==e.broadcast&&this.queryManager.broadcastQueries(),t},e.prototype.writeFragment=function(e){var t=this.cache.writeFragment(e);return!1!==e.broadcast&&this.queryManager.broadcastQueries(),t},e.prototype.__actionHookForDevTools=function(e){this.devToolsHookCb=e},e.prototype.__requestRaw=function(e){return Ie(this.link,e)},e.prototype.resetStore=function(){var e=this;return Promise.resolve().then((function(){return e.queryManager.clearStore({discardWatches:!1})})).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({discardWatches:!0})})).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.refetchQueries=function(e){var t=this.queryManager.refetchQueries(e),r=[],n=[];t.forEach((function(e,t){r.push(t),n.push(e)}));var i=Promise.all(n);return i.queries=r,i.results=n,i.catch((function(e){__DEV__&&d.debug("In client.refetchQueries, Promise.all promise rejected with error ".concat(e))})),i},e.prototype.getObservableQueries=function(e){return void 0===e&&(e="active"),this.queryManager.getObservableQueries(e)},e.prototype.extract=function(e){return this.cache.extract(e)},e.prototype.restore=function(e){return this.cache.restore(e)},e.prototype.addResolvers=function(e){this.localState.addResolvers(e)},e.prototype.setResolvers=function(e){this.localState.setResolvers(e)},e.prototype.getResolvers=function(){return this.localState.getResolvers()},e.prototype.setLocalStateFragmentMatcher=function(e){this.localState.setFragmentMatcher(e)},e.prototype.setLink=function(e){this.link=this.queryManager.link=e},e}();zn||(zn={});var Gn=function(){function e(){this.getFragmentDoc=xn(ne)}return e.prototype.batch=function(e){var t,r=this,n="string"===typeof e.o
1ptimistic?e.optimistic:!1===e.optimistic?null:void 0;return this.performTransaction((function(){return t=e.update(r)}),n),t},e.prototype.recordOptimisticTransaction=function(e,t){this.performTransaction(e,t)},e.prototype.transformDocument=function(e){return e},e.prototype.transformForLink=function(e){return e},e.prototype.identify=function(e){},e.prototype.gc=function(){return[]},e.prototype.modify=function(e){return!1},e.prototype.readQuery=function(e,t){return void 0===t&&(t=!!e.optimistic),this.read(o(o({},e),{rootId:e.id||"ROOT_QUERY",optimistic:t}))},e.prototype.readFragment=function(e,t){return void 0===t&&(t=!!e.optimistic),this.read(o(o({},e),{query:this.getFragmentDoc(e.fragment,e.fragmentName),rootId:e.id,optimistic:t}))},e.prototype.writeQuery=function(e){var t=e.id,r=e.data,n=a(e,["id","data"]);return this.write(Object.assign(n,{dataId:t||"ROOT_QUERY",result:r}))},e.prototype.writeFragment=function(e){var t=e.id,r=e.data,n=e.fragment,i=e.fragmentName,o=a(e,["id","data","fragment","fragmentName"]);return this.write(Object.assign(o,{query:this.getFragmentDoc(n,i),dataId:t,result:r}))},e.prototype.updateQuery=function(e,t){return this.batch({update:function(r){var n=r.readQuery(e),i=t(n);return void 0===i||null===i?n:(r.writeQuery(o(o({},e),{data:i})),i)}})},e.prototype.updateFragment=function(e,t){return this.batch({update:function(r){var n=r.readFragment(e),i=t(n);return void 0===i||null===i?n:(r.writeFragment(o(o({},e),{data:i})),i)}})},e}(),Yn=function(e){function t(r,n,i,o){var a,s=e.call(this,r)||this;if(s.message=r,s.path=n,s.query=i,s.variables=o,Array.isArray(s.path)){s.missing=s.message;for(var c=s.path.length-1;c>=0;--c)s.missing=((a={})[s.path[c]]=s.missing,a)}else s.missing=s.path;return s.__proto__=t.prototype,s}return i(t,e),t}(Error);function Jn(e){var t=new Set([e]);return t.forEach((function(e){re(e)&&function(e){if(__DEV__&&!Object.isFrozen(e))try{Object.freeze(e)}catch(t){if(t instanceof TypeError)return null;throw t}return e}(e)===e&&Object.getOwnPropertyNames(e).forEach((function(r){re(e[r])&&t.add(e[r])}))})),e}function $n(e){return __DEV__&&Jn(e),e}var Hn=Object.prototype.hasOwnProperty;function Xn(e){return null===e||void 0===e}function Zn(e,t){var r=e.__typename,n=e.id,i=e._id;if("string"===typeof r&&(t&&(t.keyObject=Xn(n)?Xn(i)?void 0:{_id:i}:{id:n}),Xn(n)&&!Xn(i)&&(n=i),!Xn(n)))return"".concat(r,":").concat("number"===typeof n||"string"===typeof n?n:JSON.stringify(n))}var ei={dataIdFromObject:Zn,addTypename:!0,resultCaching:!0,canonizeResults:!1};function ti(e){var t=e.canonizeResults;return void 0===t?ei.canonizeResults:t}var ri=/^[_a-z][_0-9a-z]*/i;function ni(e){var t=e.match(ri);return t?t[0]:e}function ii(e,t,r){return!!re(t)&&(ot(t)?t.every((function(t){return ii(e,t,r)})):e.selections.every((function(e){if(ye(e)&&Ve(e,r)){var n=de(e);return Hn.call(t,n)&&(!e.selectionSet||ii(e.selectionSet,t[n],r))}return!0})))}function oi(e){return re(e)&&!se(e)&&!ot(e)}function ai(e,t){var r=ie(_e(e));return{fragmentMap:r,lookupFragment:function(e){var n=r[e];return!n&&t&&(n=t.lookup(e)),n||null}}}var si=Object.create(null),ci=function(){return si},ui=Object.create(null),li=function(){function e(e,t){var r=this;this.policies=e,this.group=t,this.data=Object.create(null),this.rootIds=Object.create(null),this.refs=Object.create(null),this.getFieldValue=function(e,t){return $n(se(e)?r.get(e.__ref,t):e&&e[t])},this.canRead=function(e){return se(e)?r.has(e.__ref):"object"===typeof e},this.toReference=function(e,t){if("string"===typeof e)return ae(e);if(se(e))return e;var n=r.policies.identify(e)[0];if(n){var i=ae(n);return t&&r.merge(n,e),i}}}return e.prototype.toObject=function(){return o({},this.data)},e.prototype.has=function(e){return void 0!==this.lookup(e,!0)},e.prototype.get=function(e,t){if(this.group.depend(e,t),Hn.call(this.data,e)){var r=this.data[e];if(r&&Hn.call(r,t))return r[t]}return"__typename"===t&&Hn.call(this.policies.rootTypenamesById,e)?this.policies.rootTypenamesById[e]:this instanceof di?this.parent.get(e,t):void 0},e.prototype.lookup=function(e,t){return t&&this.group.depend(e,"__exists"),Hn.call(this.data,e)?this.data[e]:this instanceof di?this.parent.lookup(e,t):this.policies.rootTypenamesById[e]?Object.create(null):void 0},e.prototype.merge=function(e,t){var r,n=this;se(e)&&(e=e.__ref),se(t)&&(t=t.__ref);
1var i="string"===typeof e?this.lookup(r=e):e,o="string"===typeof t?this.lookup(r=t):t;if(o){__DEV__?d("string"===typeof r,"store.merge expects a string ID"):d("string"===typeof r,1);var a=new ft(yi).merge(i,o);if(this.data[r]=a,a!==i&&(delete this.refs[r],this.group.caching)){var s=Object.create(null);i||(s.__exists=1),Object.keys(o).forEach((function(e){if(!i||i[e]!==a[e]){s[e]=1;var t=ni(e);t===e||n.policies.hasKeyArgs(a.__typename,t)||(s[t]=1),void 0!==a[e]||n instanceof di||delete a[e]}})),!s.__typename||i&&i.__typename||this.policies.rootTypenamesById[r]!==a.__typename||delete s.__typename,Object.keys(s).forEach((function(e){return n.group.dirty(r,e)}))}}},e.prototype.modify=function(e,t){var r=this,n=this.lookup(e);if(n){var i=Object.create(null),a=!1,s=!0,c={DELETE:si,INVALIDATE:ui,isReference:se,toReference:this.toReference,canRead:this.canRead,readField:function(t,n){return r.policies.readField("string"===typeof t?{fieldName:t,from:n||ae(e)}:t,{store:r})}};if(Object.keys(n).forEach((function(u){var l=ni(u),f=n[u];if(void 0!==f){var p="function"===typeof t?t:t[u]||t[l];if(p){var h=p===ci?si:p($n(f),o(o({},c),{fieldName:l,storeFieldName:u,storage:r.getStorage(e,u)}));h===ui?r.group.dirty(e,u):(h===si&&(h=void 0),h!==f&&(i[u]=h,a=!0,f=h))}void 0!==f&&(s=!1)}})),a)return this.merge(e,i),s&&(this instanceof di?this.data[e]=void 0:delete this.data[e],this.group.dirty(e,"__exists")),!0}return!1},e.prototype.delete=function(e,t,r){var n,i=this.lookup(e);if(i){var o=this.getFieldValue(i,"__typename"),a=t&&r?this.policies.getStoreFieldName({typename:o,fieldName:t,args:r}):t;return this.modify(e,a?((n={})[a]=ci,n):ci)}return!1},e.prototype.evict=function(e,t){var r=!1;return e.id&&(Hn.call(this.data,e.id)&&(r=this.delete(e.id,e.fieldName,e.args)),this instanceof di&&this!==t&&(r=this.parent.evict(e,t)||r),(e.fieldName||r)&&this.group.dirty(e.id,e.fieldName||"__exists")),r},e.prototype.clear=function(){this.replace(null)},e.prototype.extract=function(){var e=this,t=this.toObject(),r=[];return this.getRootIdSet().forEach((function(t){Hn.call(e.policies.rootTypenamesById,t)||r.push(t)})),r.length&&(t.__META={extraRootIds:r.sort()}),t},e.prototype.replace=function(e){var t=this;if(Object.keys(this.data).forEach((function(r){e&&Hn.call(e,r)||t.delete(r)})),e){var r=e.__META,n=a(e,["__META"]);Object.keys(n).forEach((function(e){t.merge(e,n[e])})),r&&r.extraRootIds.forEach(this.retain,this)}},e.prototype.retain=function(e){return this.rootIds[e]=(this.rootIds[e]||0)+1},e.prototype.release=function(e){if(this.rootIds[e]>0){var t=--this.rootIds[e];return t||delete this.rootIds[e],t}return 0},e.prototype.getRootIdSet=function(e){return void 0===e&&(e=new Set),Object.keys(this.rootIds).forEach(e.add,e),this instanceof di?this.parent.getRootIdSet(e):Object.keys(this.policies.rootTypenamesById).forEach(e.add,e),e},e.prototype.gc=function(){var e=this,t=this.getRootIdSet(),r=this.toObject();t.forEach((function(n){Hn.call(r,n)&&(Object.keys(e.findChildRefIds(n)).forEach(t.add,t),delete r[n])}));var n=Object.keys(r);if(n.length){for(var i=this;i instanceof di;)i=i.parent;n.forEach((function(e){return i.delete(e)}))}return n},e.prototype.findChildRefIds=function(e){if(!Hn.call(this.refs,e)){var t=this.refs[e]=Object.create(null),r=this.data[e];if(!r)return t;var n=new Set([r]);n.forEach((function(e){se(e)&&(t[e.__ref]=!0),re(e)&&Object.keys(e).forEach((function(t){var r=e[t];re(r)&&n.add(r)}))}))}return this.refs[e]},e.prototype.makeCacheKey=function(){return this.group.keyMaker.lookupArray(arguments)},e}(),fi=function(){function e(e,t){void 0===t&&(t=null),this.caching=e,this.parent=t,this.d=null,this.resetCaching()}return e.prototype.resetCaching=function(){this.d=this.caching?Sn():null,this.keyMaker=new ur(We)}
1,e.prototype.depend=function(e,t){if(this.d){this.d(pi(e,t));var r=ni(t);r!==t&&this.d(pi(e,r)),this.parent&&this.parent.depend(e,t)}},e.prototype.dirty=function(e,t){this.d&&this.d.dirty(pi(e,t),"__exists"===t?"forget":"setDirty")},e}();function pi(e,t){return t+"#"+e}function hi(e,t){mi(e)&&e.group.depend(t,"__exists")}!function(e){var t=function(e){function t(t){var r=t.policies,n=t.resultCaching,i=void 0===n||n,o=t.seed,a=e.call(this,r,new fi(i))||this;return a.stump=new vi(a),a.storageTrie=new ur(We),o&&a.replace(o),a}return i(t,e),t.prototype.addLayer=function(e,t){return this.stump.addLayer(e,t)},t.prototype.removeLayer=function(){return this},t.prototype.getStorage=function(){return this.storageTrie.lookupArray(arguments)},t}(e);e.Root=t}(li||(li={}));var di=function(e){function t(t,r,n,i){var o=e.call(this,r.policies,i)||this;return o.id=t,o.parent=r,o.replay=n,o.group=i,n(o),o}return i(t,e),t.prototype.addLayer=function(e,r){return new t(e,this,r,this.group)},t.prototype.removeLayer=function(e){var t=this,r=this.parent.removeLayer(e);return e===this.id?(this.group.caching&&Object.keys(this.data).forEach((function(e){var n=t.data[e],i=r.lookup(e);i?n?n!==i&&Object.keys(n).forEach((function(r){Zt(n[r],i[r])||t.group.dirty(e,r)}
1)):(t.group.dirty(e,"__exists"),Object.keys(i).forEach((function(r){t.group.dirty(e,r)}))):t.delete(e)})),r):r===this.parent?this:r.addLayer(this.id,this.replay)},t.prototype.toObject=function(){return o(o({},this.parent.toObject()),this.data)},t.prototype.findChildRefIds=function(t){var r=this.parent.findChildRefIds(t);return Hn.call(this.data,t)?o(o({},r),e.prototype.findChildRefIds.call(this,t)):r},t.prototype.getStorage=function(){for(var e=this.parent;e.parent;)e=e.parent;return e.getStorage.apply(e,arguments)},t}(li),vi=function(e){function t(t){return e.call(this,"EntityStore.Stump",t,(function(){}),new fi(t.group.caching,t.group))||this}return i(t,e),t.prototype.removeLayer=function(){return this},t.prototype.merge=function(){return this.parent.merge.apply(this.parent,arguments)},t}(di);function yi(e,t,r){var n=e[r],i=t[r];return Zt(n,i)?n:i}function mi(e){return!!(e instanceof li&&e.group.caching)}function bi(e){return[e.selectionSet,e.objectOrReference,e.context,e.context.canonizeResults]}var gi=function(){function e(e){var t=this;this.knownResults=new(We?WeakMap:Map),this.config=Mr(e,{addTypename:!1!==e.addTypename,canonizeResults:ti(e)}),this.canon=e.canon||new pr,this.executeSelectionSet=xn((function(e){var r,n=e.context.canonizeResults,i=bi(e);i[3]=!n;var a=(r=t.executeSelectionSet).peek.apply(r,i);return a?n?o(o({},a),{result:t.canon.admit(a.result)}):a:(hi(e.context.store,e.enclosingRef.__ref),t.execSelectionSetImpl(e))}),{max:this.config.resultCacheMaxSize,keyArgs:bi,makeCacheKey:function(e,t,r,n){if(mi(r.store))return r.store.makeCacheKey(e,se(t)?t.__ref:t,r.varString,n)}}),this.executeSubSelectedArray=xn((function(e){return hi(e.context.store,e.enclosingRef.__ref),t.execSubSelectedArrayImpl(e)}),{max:this.config.resultCacheMaxSize,makeCacheKey:function(e){var t=e.field,r=e.array,n=e.context;if(mi(n.store))return n.store.makeCacheKey(t,r,n.varString)}})}return e.prototype.resetCanon=function(){this.canon=new pr},e.prototype.diffQueryAgainstStore=function(e){var t=e.store,r=e.query,n=e.rootId,i=void 0===n?"ROOT_QUERY":n,a=e.variables,s=e.returnPartialData,c=void 0===s||s,u=e.canonizeResults,l=void 0===u?this.config.canonizeResults:u,f=this.config.cache.policies;a=o(o({},we(Ee(r))),a);var p,h=ae(i),d=this.executeSelectionSet({selectionSet:Oe(r).selectionSet,objectOrReference:h,enclosingRef:h,context:o({store:t,query:r,policies:f,variables:a,varString:hr(a),canonizeResults:l},ai(r,this.config.fragments))});if(d.missing&&(p=[new Yn(_i(d.missing),d.missing,r,a)],!c))throw p[0];return{result:d.result,complete:!p,missing:p}},e.prototype.isFresh=function(e,t,r,n){if(mi(n.store)&&this.knownResults.get(e)===r){var i=this.executeSelectionSet.peek(r,t,n,this.canon.isKnown(e));if(i&&e===i.result)return!0}return!1},e.prototype.execSelectionSetImpl=function(e){var t=this,r=e.selectionSet,n=e.objectOrReference,i=e.enclosingRef,o=e.context;if(se(n)&&!o.policies.rootTypenamesById[n.__ref]&&!o.store.has(n.__ref))return{result:this.canon.empty,missing:"Dangling reference to missing ".concat(n.__ref," object")};var a,s=o.variables,c=o.policies,u=o.store.getFieldValue(n,"__typename"),l=[],f=new ft;function p(e,t){var r;return e.missing&&(a=f.merge(a,((r={})[t]=e.missing,r))),e.result}this.config.addTypename&&"string"===typeof u&&!c.rootIdsByTypename[u]&&l.push({__typename:u});var d=new Set(r.selections);d.forEach((function(e){var r,v;if(Ve(e,s))if(ye(e)){var y=c.readField({fieldName:e.name.value,field:e,variables:o.variables,from:n},o),m=de(e);void 0===y?kr.added(e)||(a=f.merge(a,((r={})[m]="Can't find field '".concat(e.name.value,"' on ").concat(se(n)?n.__ref+" object":"object "+JSON.stringify(n,null,2)),r))):ot(y)?y=p(t.executeSubSelectedArray({field:e,array:y,enclosingRef:i,context:o}),m):e.selectionSet?null!=y&&(y=p(t.executeSelectionSet({selectionSet:e.selectionSet,objectOrReference:y,enclosingRef:se(y)?y:i,context:o}),m)):o.canonizeResults&&(y=t.canon.pass(y)),void 0!==y&&l.push(((v={})[m]=y,v))}else{var b=oe(e,o.lookupFragment);if(!b&&e.kind===je.FRAGMENT_SPREAD)throw __DEV__?new h("No fragment named ".concat(e.name.value)):new h(5);b&&c.fragmentMatches(b,u)&&b.selectionSet.selections.forEach(d.add,d)}}));var v={result:ut(l),missing:a},y=o.canonizeResults?this.canon.admit(v):$n(v);return y.result&&this.knownResults.set(y.result,r),y},e.prototype.execSubSelectedArrayImpl=function(e){var t,r=this,n=e.field,i=e.array,o=e.enclosingRef,a=e.context,s=new ft;function c(e,r){var n;return e.missing&&(t=s.merge(t,((n={})[r]=e.missing,n))),e.result}return n.selectionSet&&(i=i.filter(a.store.canRead)),i=i.map((function(e,t){return null===e?null:ot(e)?c(r.executeSubSelectedArray({field:n,array:e,enclosingRef:o,context:a}),t):n.selectionSet?c(r.executeSelectionSet({selectionSet:n.selectionSet,objectOrReference:e,enclosingRef:se(e)?e:o,context:a}),t):(__DEV__&&function(e,t,r){if(!t.selectionSet){var n=new Set([r]);
1n.forEach((function(r){re(r)&&(__DEV__?d(!se(r),"Missing selection set for object of type ".concat(function(e,t){return se(t)?e.get(t.__ref,"__typename"):t&&t.__typename}(e,r)," returned for query field ").concat(t.name.value)):d(!se(r),6),Object.values(r).forEach(n.add,n))}))}}(a.store,n,e),e)})),{result:a.canonizeResults?this.canon.admit(i):i,missing:t}},e}();function _i(e){try{JSON.stringify(e,(function(e,t){if("string"===typeof t)throw t;return t}))}catch(t){return t}}var Ei=Object.create(null);function Oi(e){var t=JSON.stringify(e);return Ei[t]||(Ei[t]=Object.create(null))}function wi(e){var t=Oi(e);return t.keyFieldsFn||(t.keyFieldsFn=function(t,r){var n=function(e,t){return r.readField(t,e)},i=r.keyObject=Si(e,(function(e){var i=xi(r.storeObject,e,n);return void 0===i&&t!==r.storeObject&&Hn.call(t,e[0])&&(i=xi(t,e,Di)),__DEV__?d(void 0!==i,"Missing field '".concat(e.join("."),"' while extracting keyFields from ").concat(JSON.stringify(t))):d(void 0!==i,2),i}));return"".concat(r.typename,":").concat(JSON.stringify(i))})}function ki(e){var t=Oi(e);return t.keyArgsFn||(t.keyArgsFn=function(t,r){var n=r.field,i=r.variables,o=r.fieldName,a=Si(e,(function(e){var r=e[0],o=r.charAt(0);if("@"!==o)if("$"!==o){if(t)return xi(t,e)}else{var a=r.slice(1);if(i&&Hn.call(i,a)){var s=e.slice(0);return s[0]=a,xi(i,s)}}else if(n&&at(n.directives)){var c=r.slice(1),u=n.directives.find((function(e){return e.name.value===c})),l=u&&he(u,i);return l&&xi(l,e.slice(1))}})),s=JSON.stringify(a);return(t||"{}"!==s)&&(o+=":"+s),o})}function Si(e,t){var r=new ft;return Ti(e).reduce((function(e,n){var i,o=t(n);if(void 0!==o){for(var a=n.length-1;a>=0;--a)(i={})[n[a]]=o,o=i;e=r.merge(e,o)}return e}),Object.create(null))}function Ti(e){var t=Oi(e);if(!t.paths){var r=t.paths=[],n=[];e.forEach((function(t,i){ot(t)?(Ti(t).forEach((function(e){return r.push(n.concat(e))})),n.length=0):(n.push(t),ot(e[i+1])||(r.push(n.slice(0)),n.length=0))}))}return t.paths}function Di(e,t){return e[t]}function xi(e,t,r){return r=r||Di,Ii(t.reduce((function e(t,n){return ot(t)?t.map((function(t){return e(t,n)})):t&&r(t,n)}),e))}function Ii(e){return re(e)?ot(e)?e.map(Ii):Si(Object.keys(e).sort(),(function(t){return xi(e,t)})):e}function Ni(e){return void 0!==e.args?e.args:e.field?he(e.field,e.variables):null}le.setStringify(hr);var Ri=function(){},Ci=function(e,t){return t.fieldName},Ai=function(e,t,r){return(0,r.mergeObjects)(e,t)},Fi=function(e,t){return t},Pi=function(){function e(e){this.config=e,this.typePolicies=Object.create(null),this.toBeAdded=Object.create(null),this.supertypeMap=new Map,this.fuzzySubtypes=new Map,this.rootIdsByTypename=Object.create(null),this.rootTypenamesById=Object.create(null),this.usingPossibleTypes=!1,this.config=o({dataIdFromObject:Zn},e),this.cache=this.config.cache,this.setRootTypename("Query"),this.setRootTypename("Mutation"),this.setRootTypename("Subscription"),e.possibleTypes&&this.addPossibleTypes(e.possibleTypes),e.typePolicies&&this.addTypePolicies(e.typePolicies)}return e.prototype.identify=function(e,t){var r,n=this,i=t&&(t.typename||(null===(r=t.storeObject)||void 0===r?void 0:r.__typename))||e.__typename;if(i===this.rootTypenamesById.ROOT_QUERY)return["ROOT_QUERY"];for(var a,s=t&&t.storeObject||e,c=o(o({},t),{typename:i,storeObject:s,readField:t&&t.readField||function(){var e=Li(arguments,s);return n.readField(e,{store:n.cache.data,variables:e.variables})}}),u=i&&this.getTypePolicy(i),l=u&&u.keyFn||this.config.dataIdFromObject;l;){var f=l(e,c);if(!ot(f)){a=f;break}l=wi(f)}return a=a?String(a):void 0,c.keyObject?[a,c.keyObject]:[a]},e.prototype.addTypePolicies=function(e){var t=this;Object.keys(e).forEach((function(r){var n=e[r],i=n.queryType,o=n.mutationType,s=n.subscriptionType,c=a(n,["queryType","mutationType","subscriptionType"]);i&&t.setRootTypename("Query",r),o&&t.setRootTypename("Mutation",r),s&&t.setRootTypename("Subscription",r),Hn.call(t.toBeAdded,r)?t.toBeAdded[r].push(c):t.toBeAdded[r]=[c]}))},e.prototype.updateTypePolicy=function(e,t){var r=this,n=this.getTypePolicy(e),i=t.keyFields,o=t.fields;function a(e,t){e.merge="function"===typeof t?t:!0===t?Ai:!1===t?Fi:e.merge}a(n,t.merge),n.keyFn=!1===i?Ri:ot(i)?wi(i):"function"===typeof i?i:n.keyFn,o&&Object.keys(o).forEac
1h((function(t){var n=r.getFieldPolicy(e,t,!0),i=o[t];if("function"===typeof i)n.read=i;else{var s=i.keyArgs,c=i.read,u=i.merge;n.keyFn=!1===s?Ci:ot(s)?ki(s):"function"===typeof s?s:n.keyFn,"function"===typeof c&&(n.read=c),a(n,u)}n.read&&n.merge&&(n.keyFn=n.keyFn||Ci)}))},e.prototype.setRootTypename=function(e,t){void 0===t&&(t=e);var r="ROOT_"+e.toUpperCase(),n=this.rootTypenamesById[r];t!==n&&(__DEV__?d(!n||n===e,"Cannot change root ".concat(e," __typename more than once")):d(!n||n===e,3),n&&delete this.rootIdsByTypename[n],this.rootIdsByTypename[t]=r,this.rootTypenamesById[r]=t)},e.prototype.addPossibleTypes=function(e){var t=this;this.usingPossibleTypes=!0,Object.keys(e).forEach((function(r){t.getSupertypeSet(r,!0),e[r].forEach((function(e){t.getSupertypeSet(e,!0).add(r);var n=e.match(ri);n&&n[0]===e||t.fuzzySubtypes.set(e,new RegExp(e))}))}))},e.prototype.getTypePolicy=function(e){var t=this;if(!Hn.call(this.typePolicies,e)){var r=this.typePolicies[e]=Object.create(null);r.fields=Object.create(null);var n=this.supertypeMap.get(e);n&&n.size&&n.forEach((function(e){var n=t.getTypePolicy(e),i=n.fields,o=a(n,["fields"]);Object.assign(r,o),Object.assign(r.fields,i)}))}var i=this.toBeAdded[e];return i&&i.length&&i.splice(0).forEach((function(r){t.updateTypePolicy(e,r)})),this.typePolicies[e]},e.prototype.getFieldPolicy=function(e,t,r){if(e){var n=this.getTypePolicy(e).fields;return n[t]||r&&(n[t]=Object.create(null))}},e.prototype.getSupertypeSet=function(e,t){var r=this.supertypeMap.get(e);return!r&&t&&this.supertypeMap.set(e,r=new Set),r},e.prototype.fragmentMatches=function(e,t,r,n){var i=this;if(!e.typeCondition)return!0;if(!t)return!1;var o=e.typeCondition.name.value;if(t===o)return!0;if(this.usingPossibleTypes&&this.supertypeMap.has(o))for(var a=this.getSupertypeSet(t,!0),s=[a],c=function(e){var t=i.getSupertypeSet(e,!1);t&&t.size&&s.indexOf(t)<0&&s.push(t)},u=!(!r||!this.fuzzySubtypes.size),l=!1,f=0;f<s.length;++f){var p=s[f];if(p.has(o))return a.has(o)||(l&&__DEV__&&d.warn("Inferring subtype ".concat(t," of supertype ").concat(o)),a.add(o)),!0;p.forEach(c),u&&f===s.length-1&&ii(e.selectionSet,r,n)&&(u=!1,l=!0,this.fuzzySubtypes.forEach((function(e,r){var n=t.match(e);n&&n[0]===t&&c(r)})))}return!1},e.prototype.hasKeyArgs=function(e,t){var r=this.getFieldPolicy(e,t,!1);return!(!r||!r.keyFn)},e.prototype.getStoreFieldName=function(e){var t,r=e.typename,n=e.fieldName,i=this.getFieldPolicy(r,n,!1),o=i&&i.keyFn;if(o&&r)for(var a={typename:r,fieldName:n,field:e.field||null,variables:e.variables},s=Ni(e);o;){var c=o(s,a);if(!ot(c)){t=c||n;break}o=ki(c)}return void 0===t&&(t=e.field?function(e,t){var r=null;e.directives&&(r={},e.directives.forEach((function(e){r[e.name.value]={},e.arguments&&e.arguments.forEach((function(n){var i=n.name,o=n.value;return ce(r[e.name.value],i,o,t)}))})));var n=null;return e.arguments&&e.arguments.length&&(n={},e.arguments.forEach((function(e){var r=e.name,i=e.value;return ce(n,r,i,t)}))),le(e.name.value,n,r)}(e.field,e.variables):le(n,Ni(e))),!1===t?n:n===ni(t)?t:n+":"+t},e.prototype.readField=function(e,t){var r=e.from;if(r&&(e.field||e.fieldName)){if(void 0===e.typename){var n=t.store.getFieldValue(r,"__typename");n&&(e.typename=n)}var i=this.getStoreFieldName(e),o=ni(i),a=t.store.getFieldValue(r,i),s=this.getFieldPolicy(e.typename,o,!1),c=s&&s.read;if(c){var u=ji(this,r,e,t,t.store.getStorage(se(r)?r.__ref:r,i));return In.withValue(this.cache,c,[a,u])}return a}},e.prototype.getReadFunction=function(e,t){var r=this.getFieldPolicy(e,t,!1);return r&&r.read},e.prototype.getMergeFunction=function(e,t,r){var n=this.getFieldPolicy(e,t,!1),i=n&&n.merge;return!i&&r&&(i=(n=this.getTypePolicy(r))&&n.merge),i},e.prototype.runMergeFunction=function(e,t,r,n,i){var o=r.field,a=r.typename,s=r.merge;return s===Ai?Mi(n.store)(e,t):s===Fi?t:(n.overwrite&&(e=void 0),s(e,t,ji(this,void 0,{typename:a,fieldName:o.name.value,field:o,variables:n.variables},n,i||Object.create(null))))},e}();function ji(e,t,r,n,i){var o=e.getStoreFieldName(r),a=ni(o),s=r.variables||n.variables,c=n.store,u=c.toReference,l=c.canRead;return{args:Ni(r),field:r.field||null,fieldName:a,storeFieldName:o,variables:s,isReference:se,toReference:u,storage:i,cache:e.cache,canRead:l,readField:function(){return e.readField(Li(arguments,t,s),n)},mergeObjects:Mi(n.store)}}function Li(e,t,r){var n,i=e[0],a=e[1],s=e.length;return"string"===typeof i?n={fieldName:i,from:s>1?a:t}:(n=o({},i),Hn.call(n,"from")||(n.from=t)),__DEV__&&void 0===n.from&&__DEV__&&d.warn("Undefined 'from' passed to readField with arguments ".concat(function(e){var t=xr("stringifyForDisplay");return JSON.stringify(e,(function(e,r){return void 0===r?t:r})).split(JSON.stringify(t)).join("<undefined>")}(Array.from(e)))),void 0===n.variables&&(n.variables=r),n}function Mi(e){return function(t,r){if(ot(t)||ot(r))throw __DEV__?new h("Cannot automatically merge arrays"):new h(4);if(re(t)&&re(r)){var n=e.getFieldValue(t,"__typename"),i=e.getFieldValue(r,"__typename");if(n&&i&&n!==i)return r;if(se(t)&&oi(r))return e.merge(t.__ref,r),t;if(oi(t)&&se(r))return e.merge(t,r.__ref),r;if(oi(t)&&oi(r))return o(o({},t),r)}return r}}function qi(e,t,r){var n="".concat(t).concat(r),i=e.flavors.get(n);return i||e.flavors.set(n,i=e.clientOnly===t&&e.deferred===r?e:o(o({},e),{clientOnly:t,deferred:r})),i}var Vi=function(){function e(e,t,r){this.cache=e,this.reader=t,this.fragments=r}return e.prototype.writeToStore=function(e,t){var r=this,n=t.query,i=t.result,a=t.dataId,s=t.variables,c=t.overwrite,u=be(n),l=new ft;s=o(o({},we(u)),s);var f=o(o({store:e,written:Object.create(null),merge:function(e,t){return l.merge(e,t)},variables:s,varString:hr(s)},ai(n,this.fragments)),{overwrite:!!c,incomingById:new Map,clientOnly:!1,deferred:!1,flavors:new Map}),p=this.processSelectionSet({result:i||Object.create(null),dataId:a,selectionSet:u.selectionSet,mergeTree:{map:new Map},context:f});if(!se(p))throw __DEV__?new h("Could not identify object ".concat(JSON.stringify(i))):new h(7);
1return f.incomingById.forEach((function(t,n){var i=t.storeObject,o=t.mergeTree,a=t.fieldNodeSet,s=ae(n);if(o&&o.map.size){var c=r.applyMerges(o,s,i,f);if(se(c))return;i=c}if(__DEV__&&!f.overwrite){var u=Object.create(null);a.forEach((function(e){e.selectionSet&&(u[e.name.value]=!0)}));Object.keys(i).forEach((function(e){(function(e){return!0===u[ni(e)]})(e)&&!function(e){var t=o&&o.map.get(e);return Boolean(t&&t.info&&t.info.merge)}(e)&&function(e,t,r,n){var i=function(e){var t=n.getFieldValue(e,r);return"object"===typeof t&&t},o=i(e);if(!o)return;var a=i(t);if(!a)return;if(se(o))return;if(Zt(o,a))return;if(Object.keys(o).every((function(e){return void 0!==n.getFieldValue(a,e)})))return;var s=n.getFieldValue(e,"__typename")||n.getFieldValue(t,"__typename"),c=ni(r),u="".concat(s,".").concat(c);if(Ki.has(u))return;Ki.add(u);var l=[];ot(o)||ot(a)||[o,a].forEach((function(e){var t=n.getFieldValue(e,"__typename");"string"!==typeof t||l.includes(t)||l.push(t)}));__DEV__&&d.warn("Cache data may be lost when replacing the ".concat(c," field of a ").concat(s," object.\n\nTo address this problem (which is not a bug in Apollo Client), ").concat(l.length?"either ensure all objects of type "+l.join(" and ")+" have an ID or a custom merge function, or ":"","define a custom merge function for the ").concat(u," field, so InMemoryCache can safely merge these objects:\n\n existing: ").concat(JSON.stringify(o).slice(0,1e3),"\n incoming: ").concat(JSON.stringify(a).slice(0,1e3),"\n\nFor more information about these options, please refer to the documentation:\n\n * Ensuring entity objects have IDs: https://go.apollo.dev/c/generating-unique-identifiers\n * Defining custom merge functions: https://go.apollo.dev/c/merging-non-normalized-objects\n"))}(s,i,e,f.store)}))}e.merge(n,i)})),e.retain(p.__ref),p},e.prototype.processSelectionSet=function(e){var t=this,r=e.dataId,n=e.result,i=e.selectionSet,a=e.context,s=e.mergeTree,c=this.cache.policies,u=Object.create(null),l=r&&c.rootTypenamesById[r]||ve(n,i,a.fragmentMap)||r&&a.store.get(r,"__typename");"string"===typeof l&&(u.__typename=l);var f=function(){var e=Li(arguments,u,a.variables);if(se(e.from)){var t=a.incomingById.get(e.from.__ref);if(t){var r=c.readField(o(o({},e),{from:t.storeObject}),a);if(void 0!==r)return r}}return c.readField(e,a)},p=new Set;this.flattenFields(i,n,a,l).forEach((function(e,r){var i,o=de(r),a=n[o];if(p.add(r),void 0!==a){var h=c.getStoreFieldName({typename:l,fieldName:r.name.value,field:r,variables:e.variables}),v=Bi(s,h),y=t.processFieldValue(a,r,r.selectionSet?qi(e,!1,!1):e,v),m=void 0;r.selectionSet&&(se(y)||oi(y))&&(m=f("__typename",y));var b=c.getMergeFunction(l,r.name.value,m);b?v.info={field:r,typename:l,merge:b}:Wi(s,h),u=e.merge(u,((i={})[h]=y,i))}else!__DEV__||e.clientOnly||e.deferred||kr.added(r)||c.getReadFunction(l,r.name.value)||__DEV__&&d.error("Missing field '".concat(de(r),"' while writing result ").concat(JSON.stringify(n,null,2)).substring(0,1e3))}));try{var h=c.identify(n,{typename:l,selectionSet:i,fragmentMap:a.fragmentMap,storeObject:u,readField:f}),v=h[0],y=h[1];r=r||v,y&&(u=a.merge(u,y))}catch(_){if(!r)throw _}if("string"===typeof r){var m=ae(r),b=a.written[r]||(a.written[r]=[]);if(b.indexOf(i)>=0)return m;if(b.push(i),this.reader&&this.reader.isFresh(n,m,i,a))return m;var g=a.incomingById.get(r);return g?(g.storeObject=a.merge(g.storeObject,u),g.mergeTree=Ui(g.mergeTree,s),p.forEach((function(e){return g.fieldNodeSet.add(e)}))):a.incomingById.set(r,{storeObject:u,mergeTree:zi(s)?void 0:s,fieldNodeSet:p}),m}return u},e.prototype.processFieldValue=function(e,t,r,n){var i=this;return t.selectionSet&&null!==e?ot(e)?e.map((function(e,o){var a=i.processFieldValue(e,t,r,Bi(n,o));return Wi(n,o),a})):this.processSelectionSet({result:e,selectionSet:t.selectionSet,context:r,mergeTree:n}):__DEV__?jr(e):e},e.prototype.flattenFields=function(e,t,r,n){void 0===n&&(n=ve(t,e,r.fragmentMap));var i=new Map,o=this.cache.policies,a=new ur(!1);return function e(s,c){var u=a.lookup(s,c.clientOnly,c.deferred);
1u.visited||(u.visited=!0,s.selections.forEach((function(a){if(Ve(a,r.variables)){var s=c.clientOnly,u=c.deferred;if(s&&u||!at(a.directives)||a.directives.forEach((function(e){var t=e.name.value;if("client"===t&&(s=!0),"defer"===t){var n=he(e,r.variables);n&&!1===n.if||(u=!0)}})),ye(a)){var l=i.get(a);l&&(s=s&&l.clientOnly,u=u&&l.deferred),i.set(a,qi(r,s,u))}else{var f=oe(a,r.lookupFragment);if(!f&&a.kind===je.FRAGMENT_SPREAD)throw __DEV__?new h("No fragment named ".concat(a.name.value)):new h(8);f&&o.fragmentMatches(f,n,t,r.variables)&&e(f.selectionSet,qi(r,s,u))}}})))}(e,r),i},e.prototype.applyMerges=function(e,t,r,n,i){var a,s=this;if(e.map.size&&!se(r)){var c,u=ot(r)||!se(t)&&!oi(t)?void 0:t,l=r;u&&!i&&(i=[se(u)?u.__ref:u]);var f=function(e,t){return ot(e)?"number"===typeof t?e[t]:void 0:n.store.getFieldValue(e,String(t))};e.map.forEach((function(e,t){var r=f(u,t),o=f(l,t);if(void 0!==o){i&&i.push(t);var a=s.applyMerges(e,r,o,n,i);a!==o&&(c=c||new Map).set(t,a),i&&d(i.pop()===t)}})),c&&(r=ot(l)?l.slice(0):o({},l),c.forEach((function(e,t){r[t]=e})))}return e.info?this.cache.policies.runMergeFunction(t,r,e.info,n,i&&(a=n.store).getStorage.apply(a,i)):r},e}(),Qi=[];function Bi(e,t){var r=e.map;return r.has(t)||r.set(t,Qi.pop()||{map:new Map}),r.get(t)}function Ui(e,t){if(e===t||!t||zi(t))return e;if(!e||zi(e))return t;var r=e.info&&t.info?o(o({},e.info),t.info):e.info||t.info,n=e.map.size&&t.map.size,i={info:r,map:n?new Map:e.map.size?e.map:t.map};if(n){var a=new Set(t.map.keys());e.map.forEach((function(e,r){i.map.set(r,Ui(e,t.map.get(r))),a.delete(r)})),a.forEach((function(r){i.map.set(r,Ui(t.map.get(r),e.map.get(r)))}))}return i}function zi(e){return!e||!(e.info||e.map.size)}function Wi(e,t){var r=e.map,n=r.get(t);n&&zi(n)&&(Qi.push(n),r.delete(t))}var Ki=new Set;var Gi=function(e){function t(t){void 0===t&&(t={});var r=e.call(this)||this;return r.watches=new Set,r.typenameDocumentCache=new Map,r.makeVar=An,r.txCount=0,r.config=function(e){return Mr(ei,e)}(t),r.addTypename=!!r.config.addTypename,r.policies=new Pi({cache:r,dataIdFromObject:r.config.dataIdFromObject,possibleTypes:r.config.possibleTypes,typePolicies:r.config.typePolicies}),r.init(),r}return i(t,e),t.prototype.init=function(){var e=this.data=new li.Root({policies:this.policies,resultCaching:this.config.resultCaching});this.optimisticData=e.stump,this.resetResultCache()},t.prototype.resetResultCache=function(e){var t=this,r=this.storeReader,n=this.config.fragments;this.storeWriter=new Vi(this,this.storeReader=new gi({cache:this,addTypename:this.addTypename,resultCacheMaxSize:this.config.resultCacheMaxSize,canonizeResults:ti(this.config),canon:e?void 0:r&&r.canon,fragments:n}),n),this.maybeBroadcastWatch=xn((function(e,r){return t.broadcastWatch(e,r)}),{max:this.config.resultCacheMaxSize,makeCacheKey:function(e){var r=e.optimistic?t.optimisticData:t.data;if(mi(r)){var n=e.optimistic,i=e.id,o=e.variables;return r.makeCacheKey(e.query,e.callback,hr({optimistic:n,id:i,variables:o}))}}}),new Set([this.data.group,this.optimisticData.group]).forEach((function(e){return e.resetCaching()}))},t.prototype.restore=function(e){return this.init(),e&&this.data.replace(e),this},t.prototype.extract=function(e){return void 0===e&&(e=!1),(e?this.optimisticData:this.data).extract()},t.prototype.read=function(e){var t=e.returnPartialData,r=void 0!==t&&t;try{return this.storeReader.diffQueryAgainstStore(o(o({},e),{store:e.optimistic?this.optimisticData:this.data,config:this.config,returnPartialData:r})).result||null}catch(n){if(n instanceof Yn)return null;throw n}},t.prototype.write=function(e){try{return++this.txCount,this.storeWriter.writeToStore(this.data,e)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},t.prototype.modify=function(e){if(Hn.call(e,"id")&&!e.id)return!1;var t=e.optimistic?this.optimisticData:this.data;try{return++this.txCount,t.modify(e.id||"ROOT_QUERY",e.fields)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},t.prototype.diff=function(e){return this.storeReader.diffQueryAgainstStore(o(o({},e),{store:e.optimistic?this.optimisticData:this.data,rootId:e.id||"ROOT_QUERY",config:this.config}))},t.prototype.watch=function(e){var t=this;
1return this.watches.size||function(e){Rn(e).vars.forEach((function(t){return t.attachCache(e)}))}(this),this.watches.add(e),e.immediate&&this.maybeBroadcastWatch(e),function(){t.watches.delete(e)&&!t.watches.size&&Cn(t),t.maybeBroadcastWatch.forget(e)}},t.prototype.gc=function(e){hr.reset();var t=this.optimisticData.gc();return e&&!this.txCount&&(e.resetResultCache?this.resetResultCache(e.resetResultIdentities):e.resetResultIdentities&&this.storeReader.resetCanon()),t},t.prototype.retain=function(e,t){return(t?this.optimisticData:this.data).retain(e)},t.prototype.release=function(e,t){return(t?this.optimisticData:this.data).release(e)},t.prototype.identify=function(e){if(se(e))return e.__ref;try{return this.policies.identify(e)[0]}catch(t){__DEV__&&d.warn(t)}},t.prototype.evict=function(e){if(!e.id){if(Hn.call(e,"id"))return!1;e=o(o({},e),{id:"ROOT_QUERY"})}try{return++this.txCount,this.optimisticData.evict(e,this.data)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},t.prototype.reset=function(e){var t=this;return this.init(),hr.reset(),e&&e.discardWatches?(this.watches.forEach((function(e){return t.maybeBroadcastWatch.forget(e)}
1)),this.watches.clear(),Cn(this)):this.broadcastWatches(),Promise.resolve()},t.prototype.removeOptimistic=function(e){var t=this.optimisticData.removeLayer(e);t!==this.optimisticData&&(this.optimisticData=t,this.broadcastWatches())},t.prototype.batch=function(e){var t,r=this,n=e.update,i=e.optimistic,a=void 0===i||i,s=e.removeOptimistic,c=e.onWatchUpdated,u=function(e){var i=r,o=i.data,a=i.optimisticData;++r.txCount,e&&(r.data=r.optimisticData=e);try{return t=n(r)}finally{--r.txCount,r.data=o,r.optimisticData=a}},l=new Set;return c&&!this.txCount&&this.broadcastWatches(o(o({},e),{onWatchUpdated:function(e){return l.add(e),!1}})),"string"===typeof a?this.optimisticData=this.optimisticData.addLayer(a,u):!1===a?u(this.data):u(),"string"===typeof s&&(this.optimisticData=this.optimisticData.removeLayer(s)),c&&l.size?(this.broadcastWatches(o(o({},e),{onWatchUpdated:function(e,t){var r=c.call(this,e,t);return!1!==r&&l.delete(e),r}})),l.size&&l.forEach((function(e){return r.maybeBroadcastWatch.dirty(e)}))):this.broadcastWatches(e),t},t.prototype.performTransaction=function(e,t){return this.batch({update:e,optimistic:t||null!==t})},t.prototype.transformDocument=function(e){if(this.addTypename){var t=this.typenameDocumentCache.get(e);return t||(t=kr(e),this.typenameDocumentCache.set(e,t),this.typenameDocumentCache.set(t,t)),t}return e},t.prototype.transformForLink=function(e){var t=this.config.fragments;return t?t.transform(e):e},t.prototype.broadcastWatches=function(e){var t=this;this.txCount||this.watches.forEach((function(r){return t.maybeBroadcastWatch(r,e)}))},t.prototype.broadcastWatch=function(e,t){var r=e.lastDiff,n=this.diff(e);t&&(e.optimistic&&"string"===typeof t.optimistic&&(n.fromOptimisticTransaction=!0),t.onWatchUpdated&&!1===t.onWatchUpdated.call(this,e,n,r))||r&&Zt(r.result,n.result)||e.callback(e.lastDiff=n,r)},t}(Gn),Yi=xe.empty,Ji=xe.from,$i=xe.split,Hi=xe.concat;function Xi(e){var t=!1;return new Promise((function(r,n){e.subscribe({next:function(e){t?__DEV__&&d.warn("Promise Wrapper does not support multiple results from Observable"):(t=!0,r(e))},error:n})}))}function Zi(e){return new te((function(t){e.then((function(e){t.next(e),t.complete()})).catch(t.error.bind(t))}))}function eo(e,t){if(!Boolean(e))throw new Error(null!=t?t:"Unexpected invariant triggered.")}const to=/\r\n|[\n\r]/g;function ro(e,t){let r=0,n=1;for(const i of e.body.matchAll(to)){if("number"===typeof i.index||eo(!1),i.index>=t)break;r=i.index+i[0].length,n+=1}return{line:n,column:t+1-r}}function no(e,t){const r=e.locationOffset.column-1,n="".padStart(r)+e.body,i=t.line-1,o=e.locationOffset.line-1,a=t.line+o,s=1===t.line?r:0,c=t.column+s,u=`${e.name}:${a}:${c}\n`,l=n.split(/\r\n|[\n\r]/g),f=l[i];if(f.length>120){const e=Math.floor(c/80),t=c%80,r=[];for(let n=0;n<f.length;n+=80)r.push(f.slice(n,n+80));return u+io([[`${a} |`,r[0]],...r.slice(1,e+1).map((e=>["|",e])),["|","^".padStart(t)],["|",r[e+1]]])}return u+io([[a-1+" |",l[i-1]],[`${a} |`,f],["|","^".padStart(c)],[`${a+1} |`,l[i+1]]])}function io(e){const t=e.filter((([e,t])=>void 0!==t)),r=Math.max(...t.map((([e])=>e.length)));return t.map((([e,t])=>e.padStart(r)+(t?" "+t:""))).join("\n")}class oo extends Error{constructor(e,...t){var r,n,i;const{nodes:o,source:a,positions:s,path:c,originalError:u,extensions:l}=function(e){const t=e[0];return null==t||"kind"in t||"length"in t?{nodes:t,source:e[1],positions:e[2],path:e[3],originalError:e[4],extensions:e[5]}:t}(t);super(e),this.name="GraphQLError",this.path=null!==c&&void 0!==c?c:void 0,this.originalError=null!==u&&void 0!==u?u:void 0,this.nodes=ao(Array.isArray(o)?o:o?[o]:void 0);const f=ao(null===(r=this.nodes)||void 0===r?void 0:r.map((e=>e.loc)).filter((e=>null!=e)));this.source=null!==a&&void 0!==a?a:null===f||void 0===f||null===(n=f[0])||void 0===n?void 0:n.source,this.positions=null!==s&&void 0!==s?s:null===f||void 0===f?void 0:f.map((e=>e.start)),this.locations=s&&a?s.map((e=>ro(a,e))):null===f||void 0===f?void 0:f.map((e=>ro(e.source,e.start)));const p="object"==typeof(h=null===u||void 0===u?void 0:u.extensions)&&null!==h?null===u||void 0===u?void 0:u.extensions:void 0;var h;this.extensions=null!==(i=null!==l&&void 0!==l?l:p)&&void 0!==i?i:Object.create(null),Object.defineProperties(this,{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),null!==u&&void 0!==u&&u.stack?Object.defineProperty(this,"stack",{value:u.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,oo):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let e=this.message;if(this.nodes)for(const r of this.nodes)r.loc&&(e+="\n\n"+no((t=r.loc).source,ro(t.source,t.start)));else if(this.source&&this.locations)for(const r of this.locations)e+="\n\n"+no(this.source,r);var t;return e}toJSON(){const e={message:this.message};return null!=this.locations&&(e.locations=this.locations),null!=this.path&&(e.path=this.path),null!=this.extensions&&Object.keys(this.extensions).length>0&&(e.extensions=this.extensions),e}}function ao(e){return void 0===e||0===e.length?void 0:e}function so(e,t,r){return new oo(`Syntax Error: ${r}`,{source:e,positions:[t]})}var co,uo;!function(e){e.QUERY="QUERY",e.MUTATION="MUTATION",e.SUBSCRIPTION="SUBSCRIPTION",e.FIELD="FIELD",e.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",e.FRAGMENT_SPREAD="FRAGMENT_SPREAD",e.INLINE_FRAGMENT="INLINE_FRAGMENT",e.VARIABLE_DEFINITION="VARIABLE_DEFINITION",e.SCHEMA="SCHEMA",e.SCALAR="SCALAR",e.OBJECT="OBJECT",e.FIELD_DEFINITION="FIELD_DEFINITION",e.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",e.INTERFACE="INTERFACE",e.UNION="UNION",e.ENUM="ENUM",e.ENUM_VALUE="ENUM_VALUE",e.INPUT_OBJECT="INPUT_OBJECT",e.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION"}(co||(co={})),function(e){e.SOF="<SOF>",e.EOF="<EOF>",e.BANG="!",e.DOLLAR="$",e.AMP="&",e.PAREN_L="(",e.PAREN_R=")",e.SPREAD="...",e.COLON=":",e.EQUALS="=",e.AT="@",e.BRACKET_L="[",e.BRACKET_R="]",e.BRACE_L="{",e.PIPE="|",e.BRACE_R="}
1",e.NAME="Name",e.INT="Int",e.FLOAT="Float",e.STRING="String",e.BLOCK_STRING="BlockString",e.COMMENT="Comment"}(uo||(uo={}));class lo{constructor(e){const t=new Re(uo.SOF,0,0,0,0);this.source=e,this.lastToken=t,this.token=t,this.line=1,this.lineStart=0}get[Symbol.toStringTag](){return"Lexer"}advance(){this.lastToken=this.token;return this.token=this.lookahead()}lookahead(){let e=this.token;if(e.kind!==uo.EOF)do{if(e.next)e=e.next;else{const t=bo(this,e.end);e.next=t,t.prev=e,e=t}}while(e.kind===uo.COMMENT);return e}}function fo(e){return e>=0&&e<=55295||e>=57344&&e<=1114111}function po(e,t){return ho(e.charCodeAt(t))&&vo(e.charCodeAt(t+1))}function ho(e){return e>=55296&&e<=56319}function vo(e){return e>=56320&&e<=57343}function yo(e,t){const r=e.source.body.codePointAt(t);if(void 0===r)return uo.EOF;if(r>=32&&r<=126){const e=String.fromCodePoint(r);return'"'===e?"'\"'":`"${e}"`}return"U+"+r.toString(16).toUpperCase().padStart(4,"0")}function mo(e,t,r,n,i){const o=e.line,a=1+r-e.lineStart;return new Re(t,r,n,o,a,i)}function bo(e,t){const r=e.source.body,n=r.length;let i=t;for(;i<n;){const t=r.charCodeAt(i);switch(t){case 65279:case 9:case 32:case 44:++i;continue;case 10:++i,++e.line,e.lineStart=i;continue;case 13:10===r.charCodeAt(i+1)?i+=2:++i,++e.line,e.lineStart=i;continue;case 35:return go(e,i);case 33:return mo(e,uo.BANG,i,i+1);case 36:return mo(e,uo.DOLLAR,i,i+1);case 38:return mo(e,uo.AMP,i,i+1);case 40:return mo(e,uo.PAREN_L,i,i+1);case 41:return mo(e,uo.PAREN_R,i,i+1);case 46:if(46===r.charCodeAt(i+1)&&46===r.charCodeAt(i+2))return mo(e,uo.SPREAD,i,i+3);break;case 58:return mo(e,uo.COLON,i,i+1);case 61:return mo(e,uo.EQUALS,i,i+1);case 64:return mo(e,uo.AT,i,i+1);case 91:return mo(e,uo.BRACKET_L,i,i+1);case 93:return mo(e,uo.BRACKET_R,i,i+1);case 123:return mo(e,uo.BRACE_L,i,i+1);case 124:return mo(e,uo.PIPE,i,i+1);case 125:return mo(e,uo.BRACE_R,i,i+1);case 34:return 34===r.charCodeAt(i+1)&&34===r.charCodeAt(i+2)?xo(e,i):Oo(e,i)}if(Ot(t)||45===t)return _o(e,i,t);if(kt(t))return Io(e,i);throw so(e.source,i,39===t?"Unexpected single quote character ('), did you mean to use a double quote (\")?":fo(t)||po(r,i)?`Unexpected character: ${yo(e,i)}.`:`Invalid character: ${yo(e,i)}.`)}return mo(e,uo.EOF,n,n)}function go(e,t){const r=e.source.body,n=r.length;let i=t+1;for(;i<n;){const e=r.charCodeAt(i);if(10===e||13===e)break;if(fo(e))++i;else{if(!po(r,i))break;i+=2}}return mo(e,uo.COMMENT,t,i,r.slice(t+1,i))}function _o(e,t,r){const n=e.source.body;let i=t,o=r,a=!1;if(45===o&&(o=n.charCodeAt(++i)),48===o){if(o=n.charCodeAt(++i),Ot(o))throw so(e.source,i,`Invalid number, unexpected digit after 0: ${yo(e,i)}.`)}else i=Eo(e,i,o),o=n.charCodeAt(i);if(46===o&&(a=!0,o=n.charCodeAt(++i),i=Eo(e,i,o),o=n.charCodeAt(i)),69!==o&&101!==o||(a=!0,o=n.charCodeAt(++i),43!==o&&45!==o||(o=n.charCodeAt(++i)),i=Eo(e,i,o),o=n.charCodeAt(i)),46===o||kt(o))throw so(e.source,i,`Invalid number, expected digit but got: ${yo(e,i)}.`);return mo(e,a?uo.FLOAT:uo.INT,t,i,n.slice(t,i))}function Eo(e,t,r){if(!Ot(r))throw so(e.source,t,`Invalid number, expected digit but got: ${yo(e,t)}.`);const n=e.source.body;let i=t+1;for(;Ot(n.charCodeAt(i));)++i;return i}function Oo(e,t){const r=e.source.body,n=r.length;let i=t+1,o=i,a="";for(;i<n;){const n=r.charCodeAt(i);if(34===n)return a+=r.slice(o,i),mo(e,uo.STRING,t,i+1,a);if(92!==n){if(10===n||13===n)break;if(fo(n))++i;else{if(!po(r,i))throw so(e.source,i,`Invalid character within String: ${yo(e,i)}.`);i+=2}}else{a+=r.slice(o,i);const t=117===r.charCodeAt(i+1)?123===r.charCodeAt(i+2)?wo(e,i):ko(e,i):Do(e,i);a+=t.value,i+=t.size,o=i}}throw so(e.source,i,"Unterminated string.")}function wo(e,t){const r=e.source.body;let n=0,i=3;for(;i<12;){const e=r.charCodeAt(t+i++);if(125===e){if(i<5||!fo(n))break;return{value:String.fromCodePoint(n),size:i}}if(n=n<<4|To(e),n<0)break}throw so(e.source,t,`Invalid Unicode escape sequence: "${r.slice(t,t+i)}".`)}function ko(e,t){const r=e.source.body,n=So(r,t+2);if(fo(n))return{value:String.fromCodePoint(n),size:6};if(ho(n)&&92===r.charCodeAt(t+6)&&117===r.charCodeAt(t+7)){const e=So(r,t+8);
1if(vo(e))return{value:String.fromCodePoint(n,e),size:12}}throw so(e.source,t,`Invalid Unicode escape sequence: "${r.slice(t,t+6)}".`)}function So(e,t){return To(e.charCodeAt(t))<<12|To(e.charCodeAt(t+1))<<8|To(e.charCodeAt(t+2))<<4|To(e.charCodeAt(t+3))}function To(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}function Do(e,t){const r=e.source.body;switch(r.charCodeAt(t+1)){case 34:return{value:'"',size:2};case 92:return{value:"\\",size:2};case 47:return{value:"/",size:2};case 98:return{value:"\b",size:2};case 102:return{value:"\f",size:2};case 110:return{value:"\n",size:2};case 114:return{value:"\r",size:2};case 116:return{value:"\t",size:2}}throw so(e.source,t,`Invalid character escape sequence: "${r.slice(t,t+2)}".`)}function xo(e,t){const r=e.source.body,n=r.length;let i=e.lineStart,o=t+3,a=o,s="";const c=[];for(;o<n;){const n=r.charCodeAt(o);if(34===n&&34===r.charCodeAt(o+1)&&34===r.charCodeAt(o+2)){s+=r.slice(a,o),c.push(s);const n=mo(e,uo.BLOCK_STRING,t,o+3,Tt(c).join("\n"));return e.line+=c.length-1,e.lineStart=i,n}if(92!==n||34!==r.charCodeAt(o+1)||34!==r.charCodeAt(o+2)||34!==r.charCodeAt(o+3))if(10!==n&&13!==n)if(fo(n))++o;else{if(!po(r,o))throw so(e.source,o,`Invalid character within String: ${yo(e,o)}.`);o+=2}else s+=r.slice(a,o),c.push(s),13===n&&10===r.charCodeAt(o+1)?o+=2:++o,s="",a=o,i=o;else s+=r.slice(a,o),a=o+1,o+=4}throw so(e.source,o,"Unterminated string.")}function Io(e,t){const r=e.source.body,n=r.length;let i=t+1;for(;i<n;){if(!St(r.charCodeAt(i)))break;++i}return mo(e,uo.NAME,t,i,r.slice(t,i))}class No{constructor(e,t={}){const r=function(e){return C(e,A)}(e)?e:new A(e);this._lexer=new lo(r),this._options=t,this._tokenCounter=0}parseName(){const e=this.expectToken(uo.NAME);return this.node(e,{kind:je.NAME,value:e.value})}parseDocument(){return this.node(this._lexer.token,{kind:je.DOCUMENT,definitions:this.many(uo.SOF,this.parseDefinition,uo.EOF)})}parseDefinition(){if(this.peek(uo.BRACE_L))return this.parseOperationDefinition();const e=this.peekDescription(),t=e?this._lexer.lookahead():this._lexer.token;if(t.kind===uo.NAME){switch(t.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()}if(e)throw so(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are supported only on type definitions.");switch(t.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"extend":return this.parseTypeSystemExtension()}}throw this.unexpected(t)}parseOperationDefinition(){const e=this._lexer.token;if(this.peek(uo.BRACE_L))return this.node(e,{kind:je.OPERATION_DEFINITION,operation:Pe.QUERY,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});const t=this.parseOperationType();let r;return this.peek(uo.NAME)&&(r=this.parseName()),this.node(e,{kind:je.OPERATION_DEFINITION,operation:t,name:r,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){const e=this.expectToken(uo.NAME);switch(e.value){case"query":return Pe.QUERY;case"mutation":return Pe.MUTATION;case"subscription":return Pe.SUBSCRIPTION}throw this.unexpected(e)}parseVariableDefinitions(){return this.optionalMany(uo.PAREN_L,this.parseVariableDefinition,uo.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:je.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(uo.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(uo.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){const e=this._lexer.token;return this.expectToken(uo.DOLLAR),this.node(e,{kind:je.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:je.SELECTION_SET,selections:this.many(uo.BRACE_L,this.parseSelection,uo.BRACE_R)})}parseSelection(){return this.peek(uo.SPREAD)?this.parseFragment():this.parseField()}parseField(){const e=this._lexer.token,t=this.parseName();let r,n;return this.expectOptionalToken(uo.COLON)?(r=t,n=this.parseName()):n=t,this.node(e,{kind:je.FIELD,alias:r,name:n,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(uo.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(e){const t=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(uo.PAREN_L,t,uo.PAREN_R)}parseArgument(e=!1){const t=this._lexer.token,r=this.parseName();return this.expectToken(uo.COLON),this.node(t,{kind:je.ARGUMENT,name:r,value:this.parseValueLiteral(e)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){const e=this._lexer.token;this.expectToken(uo.SPREAD);const t=this.expectOptionalKeyword("on");return!t&&this.peek(uo.NAME)?this.node(e,{kind:je.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(e,{kind:je.INLINE_FRAGMENT,typeCondition:t?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){const e=this._lexer.token;return this.expectKeyword("fragment"),!0===this._options.allowLegacyFragmentVariables?this.node(e,{kind:je.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}):this.node(e,{kind:je.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if("on"===this._lexer.token.value)throw this.unexpected();return this.parseName()}parseValueLiteral(e){const t=this._lexer.token;switch(t.kind){case uo.BRACKET_L:return this.parseList(e);case uo.BRACE_L:return this.parseObject(e);case uo.INT:return this.advanceLexer(),this.node(t,{kind:je.INT,value:t.value});case uo.FLOAT:return this.advanceLexer(),this.node(t,{kind:je.FLOAT,value:t.value});case uo.STRING:case uo.BLOCK_STRING:return this.parseStringLiteral();case uo.NAME:switch(this.advanceLexer(),t.value){case"true":return this.node(t,{kind:je.BOOLEAN,value:!0});case"false":return this.node(t,{kind:je.BOOLEAN,value:!1});case"null":return this.node(t,{kind:je.NULL});default:return this.node(t,{kind:je.ENUM,value:t.value})}case uo.DOLLAR:if(e){if(this.expectToken(uo.DOLLAR),this._lexer.token.kind===uo.NAME){const e=this._lexer.token.value;throw so(this._lexer.source,t.start,`Unexpected variable "$${e}" in constant value.`)}throw this.unexpected(t)}return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){const e=this._lexer.token;return this.advanceLexer(),this.node(e,{kind:je.STRING,value:e.value,block:e.kind===uo.BLOCK_STRING})}parseList(e){return this.node(this._lexer.token,{kind:je.LIST,values:this.any(uo.BRACKET_L,(()=>this.parseValueLiteral(e)),uo.BRACKET_R)})}parseObject(e){return this.node(this._lexer.token,{kind:je.OBJECT,fields:this.any(uo.BRACE_L,(()=>this.parseObjectField(e)),uo.BRACE_R)})}parseObjectField(e){const t=this._lexer.token,r=this.parseName();return this.expectToken(uo.COLON),this.node(t,{kind:je.OBJECT_FIELD,name:r,value:this.parseValueLiteral(e)})}parseDirectives(e){const t=[];for(;this.peek(uo.AT);)t.push(this.parseDirective(e));return t}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(e){const t=this._lexer.token;return this.expectToken(uo.AT),this.node(t,{kind:je.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e)})}parseTypeReference(){const e=this._lexer.token;let t;if(this.expectOptionalToken(uo.BRACKET_L)){const r=this.parseTypeReference();this.expectToken(uo.BRACKET_R),t=this.node(e,{kind:je.LIST_TYPE,type:r})}else t=this.parseNamedType();return this.expectOptionalToken(uo.BANG)?this.node(e,{kind:je.NON_NULL_TYPE,type:t}):t}parseNamedType(){return this.node(this._lexer.token,{kind:je.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(uo.STRING)||this.peek(uo.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("schema");const r=this.parseConstDirectives(),n=this.many(uo.BRACE_L,this.parseOperationTypeDefinition,uo.BRACE_R);return this.node(e,{kind:je.SCHEMA_DEFINITION,description:t,directives:r,operationTypes:n})}parseOperationTypeDefinition(){const e=this._lexer.token,t=this.parseOperationType();this.expectToken(uo.COLON);const r=this.parseNamedType();
1return this.node(e,{kind:je.OPERATION_TYPE_DEFINITION,operation:t,type:r})}parseScalarTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("scalar");const r=this.parseName(),n=this.parseConstDirectives();return this.node(e,{kind:je.SCALAR_TYPE_DEFINITION,description:t,name:r,directives:n})}parseObjectTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("type");const r=this.parseName(),n=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),o=this.parseFieldsDefinition();return this.node(e,{kind:je.OBJECT_TYPE_DEFINITION,description:t,name:r,interfaces:n,directives:i,fields:o})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(uo.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(uo.BRACE_L,this.parseFieldDefinition,uo.BRACE_R)}parseFieldDefinition(){const e=this._lexer.token,t=this.parseDescription(),r=this.parseName(),n=this.parseArgumentDefs();this.expectToken(uo.COLON);const i=this.parseTypeReference(),o=this.parseConstDirectives();return this.node(e,{kind:je.FIELD_DEFINITION,description:t,name:r,arguments:n,type:i,directives:o})}parseArgumentDefs(){return this.optionalMany(uo.PAREN_L,this.parseInputValueDef,uo.PAREN_R)}parseInputValueDef(){const e=this._lexer.token,t=this.parseDescription(),r=this.parseName();this.expectToken(uo.COLON);const n=this.parseTypeReference();let i;this.expectOptionalToken(uo.EQUALS)&&(i=this.parseConstValueLiteral());const o=this.parseConstDirectives();return this.node(e,{kind:je.INPUT_VALUE_DEFINITION,description:t,name:r,type:n,defaultValue:i,directives:o})}parseInterfaceTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("interface");const r=this.parseName(),n=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),o=this.parseFieldsDefinition();return this.node(e,{kind:je.INTERFACE_TYPE_DEFINITION,description:t,name:r,interfaces:n,directives:i,fields:o})}parseUnionTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("union");const r=this.parseName(),n=this.parseConstDirectives(),i=this.parseUnionMemberTypes();return this.node(e,{kind:je.UNION_TYPE_DEFINITION,description:t,name:r,directives:n,types:i})}parseUnionMemberTypes(){return this.expectOptionalToken(uo.EQUALS)?this.delimitedMany(uo.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("enum");const r=this.parseName(),n=this.parseConstDirectives(),i=this.parseEnumValuesDefinition();return this.node(e,{kind:je.ENUM_TYPE_DEFINITION,description:t,name:r,directives:n,values:i})}parseEnumValuesDefinition(){return this.optionalMany(uo.BRACE_L,this.parseEnumValueDefinition,uo.BRACE_R)}parseEnumValueDefinition(){const e=this._lexer.token,t=this.parseDescription(),r=this.parseEnumValueName(),n=this.parseConstDirectives();return this.node(e,{kind:je.ENUM_VALUE_DEFINITION,description:t,name:r,directives:n})}parseEnumValueName(){if("true"===this._lexer.token.value||"false"===this._lexer.token.value||"null"===this._lexer.token.value)throw so(this._lexer.source,this._lexer.token.start,`${Ro(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("input");const r=this.parseName(),n=this.parseConstDirectives(),i=this.parseInputFieldsDefinition();return this.node(e,{kind:je.INPUT_OBJECT_TYPE_DEFINITION,description:t,name:r,directives:n,fields:i})}parseInputFieldsDefinition(){return this.optionalMany(uo.BRACE_L,this.parseInputValueDef,uo.BRACE_R)}parseTypeSystemExtension(){const e=this._lexer.lookahead();if(e.kind===uo.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)}parseSchemaExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");const t=this.parseConstDirectives(),r=this.optionalMany(uo.BRACE_L,this.parseOperationTypeDefinition,uo.BRACE_R);if(0===t.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:je.SCHEMA_EXTENSION,directives:t,operationTypes:r})}parseScalarTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");const t=this.parseName(),r=this.parseConstDirectives();if(0===r.length)throw this.unexpected();return this.node(e,{kind:je.SCALAR_TYPE_EXTENSION,name:t,directives:r})}parseObjectTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");const t=this.parseName(),r=this.parseImplementsInterfaces(),n=this.parseConstDirectives(),i=this.parseFieldsDefinition();if(0===r.length&&0===n.length&&0===i.length)throw this.unexpected();return this.node(e,{kind:je.OBJECT_TYPE_EXTENSION,name:t,interfaces:r,directives:n,fields:i})}parseInterfaceTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");const t=this.parseName(),r=this.parseImplementsInterfaces(),n=this.parseConstDirectives(),i=this.parseFieldsDefinition();if(0===r.length&&0===n.length&&0===i.length)throw this.unexpected();return this.node(e,{kind:je.INTERFACE_TYPE_EXTENSION,name:t,interfaces:r,directives:n,fields:i})}parseUnionTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");const t=this.parseName(),r=this.parseConstDirectives(),n=this.parseUnionMemberTypes();if(0===r.length&&0===n.length)throw this.unexpected();return this.node(e,{kind:je.UNION_TYPE_EXTENSION,name:t,directives:r,types:n})}parseEnumTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");const t=this.parseName(),r=this.parseConstDirectives(),n=this.parseEnumValuesDefinition();if(0===r.length&&0===n.length)throw this.unexpected();return this.node(e,{kind:je.ENUM_TYPE_EXTENSION,name:t,directives:r,values:n})}parseInputObjectTypeExtension(){const e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");const t=this.parseName(),r=this.parseConstDirectives(),n=this.parseInputFieldsDefinition();if(0===r.length&&0===n.length)throw this.unexpected();return this.node(e,{kind:je.INPUT_OBJECT_TYPE_EXTENSION,name:t,directives:r,fields:n})}parseDirectiveDefinition(){const e=this._lexer.token,t=this.parseDescription();this.expectKeyword("directive"),this.expectToken(uo.AT);const r=this.parseName(),n=this.parseArgumentDefs(),i=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");const o=this.parseDirectiveLocations();return this.node(e,{kind:je.DIRECTIVE_DEFINITION,description:t,name:r,arguments:n,repeatable:i,locations:o})}parseDirectiveLocations(){return this.delimitedMany(uo.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){const e=this._lexer.token,t=this.parseName();if(Object.prototype.hasOwnProperty.call(co,t.value))return t;throw this.unexpected(e)}node(e,t){return!0!==this._options.noLocation&&(t.loc=new Ne(e,this._lexer.lastToken,this._lexer.source)),t}peek(e){return this._lexer.token.kind===e}expectToken(e){const t=this._lexer.token;if(t.kind===e)return this.advanceLexer(),t;throw so(this._lexer.source,t.start,`Expected ${Co(e)}, found ${Ro(t)}.`)}expectOptionalToken(e){return this._lexer.token.kind===e&&(this.advanceLexer(),!0)}expectKeyword(e){const t=this._lexer.token;if(t.kind!==uo.NAME||t.value!==e)throw so(this._lexer.source,t.start,`Expected "${e}", found ${Ro(t)}.`);this.advanceLexer()}expectOptionalKeyword(e){const t=this._lexer.token;return t.kind===uo.NAME&&t.value===e&&(this.advanceLexer(),!0)}unexpected(e){const t=null!==e&&void 0!==e?e:this._lexer.token;return so(this._lexer.source,t.start,`Unexpected ${Ro(t)}.`)}any(e,t,r){this.expectToken(e);const n=[];for(;!this.expectOptionalToken(r);)n.push(t.call(this));return n}optionalMany(e,t,r){if(this.expectOptionalToken(e)){const e=[];do{e.push(t.call(this))}while(!this.expectOptionalToken(r));return e}return[]}many(e,t,r){this.expectToken(e);const n=[];do{n.push(t.call(this))}while(!this.expectOptionalToken(r));return n}delimitedMany(e,t){this.expectOptionalToken(e);const r=[];do{r.push(t.call(this))}while(this.expectOptionalToken(e));return r}advanceLexer(){const{maxTokens:e}=this._options,t=this._lexer.advance();if(void 0!==e&&t.kind!==uo.EOF&&(++this._tokenCounter,this._tokenCounter>e))throw so(this._lexer.source,t.start,`Document contains more that ${e} tokens. Parsing aborted.`)}}function Ro(e){const t=e.value;return Co(e.kind)+(null!=t?` "${t}"`:"")}function Co(e){return function(e){return e===uo.BANG||e===uo.DOLLAR||e===uo.AMP||e===uo.PAREN_L||e===uo.PAREN_R||e===uo.SPREAD||e===uo.COLON||e===uo.EQUALS||e===uo.AT||e===uo.BRACKET_L||e===uo.BRACKET_R||e===uo.BRACE_L||e===uo.PIPE||e===uo.BRACE_R}(e)?`"${e}"`:e}var Ao=new Map,Fo=new Map,Po=!0,jo=!1;function Lo(e){return e.replace(/[\s,]+/g," ").trim()}function Mo(e){var t=new Set,r=[];return e.definitions.forEach((function(e){if("FragmentDefinition"===e.kind){var n=e.name.value,i=Lo((a=e.loc).source.body.substring(a.start,a.end)),o=Fo.get(n);o&&!o.has(i)?Po&&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||Fo.set(n,o=new Set),o.add(i),t.has(i)||(t.add(i),r.push(e))}else r.push(e);var a})),o(o({},e),{definitions:r})}function qo(e){var t=Lo(e);if(!Ao.has(t)){var r=function(e,t){return new No(e,t).parseDocument()}(e,{experimentalFragmentVariables:jo,allowLegacyFragmentVariables:jo});if(!r||"Document"!==r.kind)throw new Error("Not a valid GraphQL document.");Ao.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}(Mo(r)))}return Ao.get(t)}function Vo(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]})),qo(n)}function Qo(){Ao.clear(),Fo.clear()}function Bo(){Po=!1}
1function Uo(){jo=!0}function zo(){jo=!1}var Wo,Ko=Vo,Go=Qo,Yo=Bo,Jo=Uo,$o=zo;(Wo=Vo||(Vo={})).gql=Ko,Wo.resetCaches=Go,Wo.disableFragmentWarnings=Yo,Wo.enableExperimentalFragmentVariables=Jo,Wo.disableExperimentalFragmentVariables=$o,Vo.default=Vo;b(w?"log":"silent");var Ho=r(67294),Xo=r.t(Ho,2),Zo=Ge?Symbol.for("__APOLLO_CONTEXT__"):"__APOLLO_CONTEXT__";function ea(){var e=Ho.createContext[Zo];return e||(Object.defineProperty(Ho.createContext,Zo,{value:e=Ho.createContext({}),enumerable:!1,writable:!1,configurable:!0}),e.displayName="ApolloContext"),e}var ta=function(e){var t=e.client,r=e.children,n=ea();return Ho.createElement(n.Consumer,null,(function(e){return void 0===e&&(e={}),t&&e.client!==t&&(e=Object.assign({},e,{client:t})),__DEV__?d(e.client,'ApolloProvider was not passed a client instance. Make sure you pass in your client via the "client" prop.'):d(e.client,29),Ho.createElement(n.Provider,{value:e},r)}))},ra=function(e){var t=ea();return Ho.createElement(t.Consumer,null,(function(t){return __DEV__?d(t&&t.client,'Could not find "client" in the context of ApolloConsumer. Wrap the root component in an <ApolloProvider>.'):d(t&&t.client,28),e.children(t.client)}))};function na(e){var t=(0,Ho.useContext)(ea()),r=e||t.client;return __DEV__?d(!!r,'Could not find "client" in the context or passed in as an option. Wrap the root component in an <ApolloProvider>, or pass an ApolloClient instance in via options.'):d(!!r,32),r}var ia,oa=!1,aa=Xo.useSyncExternalStore||function(e,t,r){var n=t();__DEV__&&!oa&&n!==t()&&(oa=!0,__DEV__&&d.error("The result of getSnapshot should be cached to avoid an infinite loop"));var i=Ho.useState({inst:{value:n,getSnapshot:t}}),o=i[0].inst,a=i[1];return He?Ho.useLayoutEffect((function(){Object.assign(o,{value:n,getSnapshot:t}),sa(o)&&a({inst:o})}),[e,n,t]):Object.assign(o,{value:n,getSnapshot:t}),Ho.useEffect((function(){return sa(o)&&a({inst:o}),e((function(){sa(o)&&a({inst:o})}))}),[e]),n};function sa(e){var t=e.value,r=e.getSnapshot;try{return t!==r()}catch(n){return!0}}!function(e){e[e.Query=0]="Query",e[e.Mutation=1]="Mutation",e[e.Subscription=2]="Subscription"}(ia||(ia={}));var ca=new Map;function ua(e){var t;switch(e){case ia.Query:t="Query";break;case ia.Mutation:t="Mutation";break;case ia.Subscription:t="Subscription"}return t}function la(e){var t,r,n=ca.get(e);if(n)return n;__DEV__?d(!!e&&!!e.kind,"Argument of ".concat(e," passed to parser was not a valid GraphQL ")+"DocumentNode. You may need to use 'graphql-tag' or another method to convert your operation into a document"):d(!!e&&!!e.kind,33);for(var i=[],o=[],a=[],s=[],c=0,u=e.definitions;c<u.length;c++){var l=u[c];if("FragmentDefinition"!==l.kind){if("OperationDefinition"===l.kind)switch(l.operation){case"query":o.push(l);break;case"mutation":a.push(l);break;case"subscription":s.push(l)}}else i.push(l)}__DEV__?d(!i.length||o.length||a.length||s.length,"Passing only a fragment to 'graphql' is not yet supported. You must include a query, subscription or mutation as well"):d(!i.length||o.length||a.length||s.length,34),__DEV__?d(o.length+a.length+s.length<=1,"react-apollo only supports a query, subscription, or a mutation per HOC. "+"".concat(e," had ").concat(o.length," queries, ").concat(s.length," ")+"subscriptions and ".concat(a.length," mutations. ")+"You can use 'compose' to join multiple operation types to a component"):d(o.length+a.length+s.length<=1,35),r=o.length?ia.Query:ia.Mutation,o.length||a.length||(r=ia.Subscription);var f=o.length?o:a.length?a:s;__DEV__?d(1===f.length,"react-apollo only supports one definition per HOC. ".concat(e," had ")+"".concat(f.length," definitions. ")+"You can use 'compose' to join multiple operation types to a component"):d(1===f.length,36);var p=f[0];t=p.variableDefinitions||[];var h={name:p.name&&"Name"===p.name.kind?p.name.value:"data",type:r,variables:t};return ca.set(e,h),h}function fa(e,t){var r=la(e),n=ua(t),i=ua(r.type);__DEV__?d(r.type===t,"Running a ".concat(n," requires a graphql ")+"".concat(n,", but a ").concat(i," was used instead.")):d(r.type===t,37)}var pa=Object.prototype.hasOwnProperty;function ha(e,t){return void 0===t&&(t=Object.create(null)),da(na(t.client),e).useQuery(t)}function da(e,t){var r=(0,Ho.useRef)();r.current&&e===r.current.client&&t===r.current.query||(r.current=ne
1w va(e,t,r.current));var n=r.current,i=(0,Ho.useState)(0),o=(i[0],i[1]);return n.forceUpdate=function(){o((function(e){return e+1}))},n}var va=function(){function e(e,t,r){this.client=e,this.query=t,this.ssrDisabledResult=$n({loading:!0,data:void 0,error:void 0,networkStatus:Cr.loading}),this.skipStandbyResult=$n({loading:!1,data:void 0,error:void 0,networkStatus:Cr.ready}),this.toQueryResultCache=new(We?WeakMap:Map),fa(t,ia.Query);var n=r&&r.result,i=n&&n.data;i&&(this.previousData=i)}return e.prototype.forceUpdate=function(){__DEV__&&d.warn("Calling default no-op implementation of InternalState#forceUpdate")},e.prototype.executeQuery=function(e){var t,r=this;e.query&&Object.assign(this,{query:e.query}),this.watchQueryOptions=this.createWatchQueryOptions(this.queryHookOptions=e);var n=this.observable.reobserveAsConcast(this.getObsQueryOptions());return this.previousData=(null===(t=this.result)||void 0===t?void 0:t.data)||this.previousData,this.result=void 0,this.forceUpdate(),new Promise((function(e){var t;n.subscribe({next:function(e){t=e},error:function(){e(r.toQueryResult(r.observable.getCurrentResult()))},complete:function(){e(r.toQueryResult(t))}})}))},e.prototype.useQuery=function(e){var t=this;this.renderPromises=(0,Ho.useContext)(ea()).renderPromises,this.useOptions(e);var r=this.useObservableQuery(),n=aa((0,Ho.useCallback)((function(){if(t.renderPromises)return function(){};var e=function(){var e=t.result,n=r.getCurrentResult();e&&e.loading===n.loading&&e.networkStatus===n.networkStatus&&Zt(e.data,n.data)||t.setResult(n)},n=function(o){var a=r.last;i.unsubscribe();try{r.resetLastResults(),i=r.subscribe(e,n)}finally{r.last=a}if(!pa.call(o,"graphQLErrors"))throw o;var s=t.result;(!s||s&&s.loading||!Zt(o,s.error))&&t.setResult({data:s&&s.data,error:o,loading:!1,networkStatus:Cr.error})},i=r.subscribe(e,n);return function(){return setTimeout((function(){return i.unsubscribe()}))}}),[r,this.renderPromises,this.client.disableNetworkFetches]),(function(){return t.getCurrentResult()}),(function(){return t.getCurrentResult()}));return this.unsafeHandlePartialRefetch(n),this.toQueryResult(n)},e.prototype.useOptions=function(t){var r,n=this.createWatchQueryOptions(this.queryHookOptions=t),i=this.watchQueryOptions;Zt(n,i)||(this.watchQueryOptions=n,i&&this.observable&&(this.observable.reobserve(this.getObsQueryOptions()),this.previousData=(null===(r=this.result)||void 0===r?void 0:r.data)||this.previousData,this.result=void 0)),this.onCompleted=t.onCompleted||e.prototype.onCompleted,this.onError=t.onError||e.prototype.onError,!this.renderPromises&&!this.client.disableNetworkFetches||!1!==this.queryHookOptions.ssr||this.queryHookOptions.skip?this.queryHookOptions.skip||"standby"===this.watchQueryOptions.fetchPolicy?this.result=this.skipStandbyResult:this.result!==this.ssrDisabledResult&&this.result!==this.skipStandbyResult||(this.result=void 0):this.result=this.ssrDisabledResult},e.prototype.getObsQueryOptions=function(){var e=[],t=this.client.defaultOptions.watchQuery;return t&&e.push(t),this.queryHookOptions.defaultOptions&&e.push(this.queryHookOptions.defaultOptions),e.push(Mr(this.observable&&this.observable.options,this.watchQueryOptions)),e.reduce(Un)},e.prototype.createWatchQueryOptions=function(e){var t;void 0===e&&(e={});var r=e.skip,n=(e.ssr,e.onCompleted,e.onError,e.defaultOptions,a(e,["skip","ssr","onCompleted","onError","defaultOptions"])),i=Object.assign(n,{query:this.query});if(!this.renderPromises||"network-only"!==i.fetchPolicy&&"cache-and-network"!==i.fetchPolicy||(i.fetchPolicy="cache-first"),i.variables||(i.variables={}),r){var o=i.fetchPolicy,s=void 0===o?this.getDefaultFetchPolicy():o,c=i.initialFetchPolicy,u=void 0===c?s:c;Object.assign(i,{initialFetchPolicy:u,fetchPolicy:"standby"})}else i.fetchPolicy||(i.fetchPolicy=(null===(t=this.observable)||void 0===t?void 0:t.options.initialFetchPolicy)||this.getDefaultFetchPolicy());return i},e.prototype.getDefaultFetchPolicy=function(){var e,t;return(null===(e=this.queryHookOptions.defaultOptions)||void 0===e?void 0:e.fetchPolicy)||(null===(t=this.client.defaultOptions.watchQuery)||void 0===t?void 0:t.fetchPolicy)||"cac
1he-first"},e.prototype.onCompleted=function(e){},e.prototype.onError=function(e){},e.prototype.useObservableQuery=function(){var e=this.observable=this.renderPromises&&this.renderPromises.getSSRObservable(this.watchQueryOptions)||this.observable||this.client.watchQuery(this.getObsQueryOptions());this.obsQueryFields=(0,Ho.useMemo)((function(){return{refetch:e.refetch.bind(e),reobserve:e.reobserve.bind(e),fetchMore:e.fetchMore.bind(e),updateQuery:e.updateQuery.bind(e),startPolling:e.startPolling.bind(e),stopPolling:e.stopPolling.bind(e),subscribeToMore:e.subscribeToMore.bind(e)}}),[e]);var t=!(!1===this.queryHookOptions.ssr||this.queryHookOptions.skip);return this.renderPromises&&t&&(this.renderPromises.registerSSRObservable(e),e.getCurrentResult().loading&&this.renderPromises.addObservableQueryPromise(e)),e},e.prototype.setResult=function(e){var t=this.result;t&&t.data&&(this.previousData=t.data),this.result=e,this.forceUpdate(),this.handleErrorOrCompleted(e)},e.prototype.handleErrorOrCompleted=function(e){var t=this;if(!e.loading){var r=this.toApolloError(e);Promise.resolve().then((function(){r?t.onError(r):e.data&&t.onCompleted(e.data)})).catch((function(e){__DEV__&&d.warn(e)}))}},e.prototype.toApolloError=function(e){return at(e.errors)?new it({graphQLErrors:e.errors}):e.error},e.prototype.getCurrentResult=function(){return this.result||this.handleErrorOrCompleted(this.result=this.observable.getCurrentResult()),this.result},e.prototype.toQueryResult=function(e){var t=this.toQueryResultCache.get(e);if(t)return t;var r=e.data,n=(e.partial,a(e,["data","partial"]));return this.toQueryResultCache.set(e,t=o(o(o({data:r},n),this.obsQueryFields),{client:this.client,observable:this.observable,variables:this.observable.variables,called:!this.queryHookOptions.skip,previousData:this.previousData})),!t.error&&at(e.errors)&&(t.error=new it({graphQLErrors:e.errors})),t},e.prototype.unsafeHandlePartialRefetch=function(e){!e.partial||!this.queryHookOptions.partialRefetch||e.loading||e.data&&0!==Object.keys(e.data).length||"cache-only"===this.observable.options.fetchPolicy||(Object.assign(e,{loading:!0,networkStatus:Cr.refetch}),this.observable.refetch())},e}(),ya=["refetch","reobserve","fetchMore","updateQuery","startPolling","subscribeToMore"];function ma(e,t){var r,n=(0,Ho.useRef)(),i=(0,Ho.useRef)(),a=(0,Ho.useRef)(),s=n.current?Un(t,n.current):t,c=null!==(r=null===s||void 0===s?void 0:s.query)&&void 0!==r?r:e;i.current=s,a.current=c;var u=da(na(t&&t.client),c),l=u.useQuery(o(o({},s),{skip:!n.current})),f=l.observable.options.initialFetchPolicy||u.getDefaultFetchPolicy(),p=Object.assign(l,{called:!!n.current}),h=(0,Ho.useMemo)((function(){for(var e={},t=function(t){var r=p[t];e[t]=function(){return n.current||(n.current=Object.create(null),u.forceUpdate()),r.apply(this,arguments)}},r=0,i=ya;r<i.length;r++){t(i[r])}return e}),[]);Object.assign(p,h);var d=(0,Ho.useCallback)((function(e){n.current=e?o(o({},e),{fetchPolicy:e.fetchPolicy||f}):{fetchPolicy:f};var t=Un(i.current,o({query:a.current},n.current)),r=u.executeQuery(o(o({},t),{skip:!1})).then((function(e){return Object.assign(e,h)}));return r.catch((function(){})),r}),[]);return[d,p]}function ba(e,t){var r=na(null===t||void 0===t?void 0:t.client);fa(e,ia.Mutation);var n=(0,Ho.useState)({called:!1,loading:!1,client:r}),i=n[0],a=n[1],s=(0,Ho.useRef)({result:i,mutationId:0,isMounted:!0,client:r,mutation:e,options:t});Object.assign(s.current,{client:r,options:t,mutation:e});var c=(0,Ho.useCallback)((function(e){void 0===e&&(e={});var t=s.current,r=t.options,n=t.mutation,i=o(o({},r),{mutation:n}),c=e.client||s.current.client;s.current.result.loading||i.ignoreResults||!s.current.isMounted||a(s.current.result={loading:!0,error:void 0,data:void 0,called:!0,client:c});var u=++s.current.mutationId,l=Un(i,e);return c.mutate(l).then((function(t){var r,n=t.data,i=t.errors,o=i&&i.length>0?new it({graphQLErrors:i}):void 0;if(u===s.current.mutationId&&!l.ignoreResults){var f={called:!0,loading:!1,data:n,error:o,client:c};s.current.isMounted&&!Zt(s.current.result,f)&&a(s.current.result=f)}var p=e.onCompleted||(null===(r=s.current.options)||void 0===r?void 0:r.onCompleted);return null===p||void 0===p||p(t.data,l),t})).catch((function(t){var r;if(u===s.current.mutationId&&s.current.isMounted){var n={loading:!1,error:t,data:void 0,called:!0,client:c};Zt(s.current.result,n)||a(s.current.result=n)}var i=e.onError||(null===(r=s.current.options)||void 0===r?void 0:r.onError);if(i)return i(t,l),{data:void 0,errors:t};throw t}))}),[]),u=(0,Ho.useCallback)((function(){s.current.isMounted&&a({called:!1,loading:!1,client:r})}),[]);return(0,Ho.useEffect)((function(){return s.current.isMounted=!0,function(){s.current.isMounted=!1}}),[]),[c,o({reset:u},i)]}function ga(e,t){var r=(0,Ho.useRef)(!1),n=na(null===t||void 0===t?void 0:t.client);fa(e,ia.Subscription);var i=(0,Ho.useState)({loading:!(null===t||void 0===t?void 0:t.skip),error:void 0,data:void 0,variables:null===t||void 0===t?void 0:t.variables}),o=i[0],a=i[1];r.current||(r.current=!0,(null===t||void 0===t?void 0:t.onSubscriptionData)&&__DEV__&&d.warn(t.onData?"'useSubscription' supports only the 'onSubscriptionData' or 'onData' option, but not both. Only the 'onData' option will be used.":"'onSubscriptionData' is deprecated and will be removed in a future major version. Please use the 'onData' option instead."),(null===t||void 0===t?void 0:t.onSubscriptionComplete)&&__DEV__&&d.warn(t.onComplete?"'useSubscription' supports only the 'onSubscriptionComplete' or 'onComplete' option, but not both. Only the 'onComplete' option will be used.":"'onSubscriptionComplete' is deprecated and will be removed in a future major version. Please use the 'onComplete' option instead."));var s=(0,Ho.useState)((function(){return(null===t||void 0===t?void 0:t.skip)?null:n.subscribe({query:e,variables:null===t||void 0===t?void 0:t.variables,fetchPolicy:null===t||void 0===t?void 0:t.fetchPolicy,context:null===t||void 0===t?void 0:t.context})})),c=s[0],u=s[1],l=(0,Ho.useRef)(!1);(0,Ho.useEffect)((function(){return function(){l.current=!0}}),[]);var f=(0,Ho.useRef)({client:n,subscription:e,options:t});return(0,Ho.useEffect)((function(){var r,i,o,s,c=null===t||void 0===t?void 0:t.shouldResubscribe;"function"===typeof c&&(c=!!c(t)),(null===t||void 0===t?void 0:t.skip)?(!(null===t||void 0===t?void 0:t.skip)!==!(null===(r=f.current.options)||void 0===r?void 0:r.skip)||l.current)&&(a({loading:!1,data:void 0,error:void 0,variables:null===t||void 0===t?void 0:t.variables}),u(null),l.current=!1):(!1===c||n===f.current.client&&e===f.current.subscription&&(null===t||void 0===t?void 0:t.fetchPolicy)===(null===(i=f.current.options)||void 0===i?void 0:i.fetchPolicy)&&!(null===t||void 0===t?void 0:t.skip)===!(null===(o=f.current.options)||void 0===o?void 0:o.skip)&&Zt(null===t||void 0===t?void 0:t.variables,null===(s=f.current.options)||void 0===s?void 0:s.variables))&&!l.current||(a({loading:!0,data:void 0,error:void 0,variables:null===t||void 0===t?void 0:t.variables}),u(n.subscribe({query:e,variables:null===t||void 0===t?void 0:t.variables,fetchPolicy:null===t||void 0===t?void 0:t.fetchPolicy,context:null===t||void 0===t?void 0:t.context})),l.current=!1),Object.assign(f.current,{client:n,subscription:e,options:t})}),[n,e,t,l.current]),(0,Ho.useEffect)((function(){if(c){var e=!1,r=c.subscribe({next:function(r){var i,o;if(!e){var s={loading:!1,data:r.data,error:void 0,variables:null===t||void 0===t?void 0:t.variables};a(s),(null===(i=f.current.options)||void 0===i?void 0:i.onData)?f.current.options.onData({client:n,data:s}):(null===(o=f.current.options)||void 0===o?void 0:o.onSubscriptionData)&&f.current.options.onSubscriptionData({client:n,subscriptionData:s})}},error:function(r){var n,i;e||(a({loading:!1,data:void 0,error:r,variables:null===t||void 0===t?void 0:t.variables}),null===(i=null===(n=f.current.options)||void 0===n?void 0:n.onError)||void 0===i||i.call(n,r))},complete:function(){var t,r;e||((null===(t=f.current.options)||void 0===t?void 0:t.onComplete)?f.current.options.onComplete():(null===(r=f.current.options)||void 0===r?void 0:r.onSubscriptionComplete)&&f.current.options.onSubscriptionComplete())}});return function(){e=!0,setTimeout((function(){r.unsubscribe()}))}}}),[c]),o}function _a(e){var t=e(),r=(0,Ho.useState)(t)[1];return(0,Ho.useEffect)((function(){var n=e();if(t===n)return e.onNextChange(r);r(n)}),[t]),t}function Ea(e){var t=na().cache,r=e.fragment,n=e.fragmentName,i=e.from,s=e.optimistic,c=void 0===s||s,u=a(e,["fragment","fragmentName","from","optimistic"]),l=o(o({},u),{id:"string"===typeof i?i:t.identify(i),query:t.getFragmentDoc(r,n),optimistic:c}),f=(0,Ho.useRef)(),p=t.diff(l),h=function(){var e=Oa(p);return f.current&&Zt(f.current.data,e.data)?f.current:f.current=e};return aa((function(e){return t.watch(o(o({},l),{immediate:!0,callback:function(t){Zt(t,p)||(f.current=Oa(p=t),e())}}))}),h,h)}function Oa(e){var t={data:e.result,complete:!!e.complete};return e.missing&&(t.missing=ut(e.missing.map((function(e){return e.missing})))),t}}}]);
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.