PageSourceSearch

https://app.esignatureguarantee.com/assets/apollo-DGi6X0tb.js

js esignatureguarantee.com collected 2026-09-28 07:52:53 UTC 180,324 bytes, 58 lines download raw bytes

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

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