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