"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[629],{93331:(e,t,r)=>{r.d(t,{h:()=>Se});var n=r(97582),i=r(56961),o=r(9964),a=r(30020),s=r(23361),u=function(){function e(){this.assumeImmutableResults=!1,this.getFragmentDoc=(0,o.re)(s.Yk)}return e.prototype.batch=function(e){var t,r=this,n="string"==typeof e.optimistic?e.optimistic:!1===e.optimistic?null:void 0;return this.performTransaction((function(){return t=e.update(r)}),n),t},e.prototype.recordOptimisticTransaction=function(e,t){this.performTransaction(e,t)},e.prototype.transformDocument=function(e){return e},e.prototype.transformForLink=function(e){return e},e.prototype.identify=function(e){},e.prototype.gc=function(){return[]},e.prototype.modify=function(e){return!1},e.prototype.readQuery=function(e,t){return void 0===t&&(t=!!e.optimistic),this.read((0,n.pi)((0,n.pi)({},e),{rootId:e.id||"ROOT_QUERY",optimistic:t}))},e.prototype.readFragment=function(e,t){return void 0===t&&(t=!!e.optimistic),this.read((0,n.pi)((0,n.pi)({},e),{query:this.getFragmentDoc(e.fragment,e.fragmentName),rootId:e.id,optimistic:t}))},e.prototype.writeQuery=function(e){var t=e.id,r=e.data,i=(0,n._T)(e,["id","data"]);return this.write(Object.assign(i,{dataId:t||"ROOT_QUERY",result:r}))},e.prototype.writeFragment=function(e){var t=e.id,r=e.data,i=e.fragment,o=e.fragmentName,a=(0,n._T)(e,["id","data","fragment","fragmentName"]);return this.write(Object.assign(a,{query:this.getFragmentDoc(i,o),dataId:t,result:r}))},e.prototype.updateQuery=function(e,t){return this.batch({update:function(r){var i=r.readQuery(e),o=t(i);return null==o?i:(r.writeQuery((0,n.pi)((0,n.pi)({},e),{data:o})),o)}})},e.prototype.updateFragment=function(e,t){return this.batch({update:function(r){var i=r.readFragment(e),o=t(i);return null==o?i:(r.writeFragment((0,n.pi)((0,n.pi)({},e),{data:o})),o)}})},e}(),c=function(e){function t(r,n,i,o){var a,s=e.call(this,r)||this;if(s.message=r,s.path=n,s.query=i,s.variables=o,Array.isArray(s.path)){s.missing=s.message;for(var u=s.path.length-1;u>=0;--u)s.missing=((a={})[s.path[u]]=s.missing,a)}else s.missing=s.path;return s.__proto__=t.prototype,s}return(0,n.ZT)(t,e),t}(Error),l=r(18056),f=r(76487),h=r(51761),p=r(97359),d=r(30320),v=r(53712),y=r(36765),m=r(182),b=r(19065),g=r(48702),k=r(13154),O=r(75028),w=r(21436),S=Object.prototype.hasOwnProperty;function _(e){return null==e}function E(e,t){var r=e.__typename,n=e.id,i=e._id;if("string"==typeof r&&(t&&(t.keyObject=_(n)?_(i)?void 0:{_id:i}:{id:n}),_(n)&&!_(i)&&(n=i),!_(n)))return"".concat(r,":").concat("number"==typeof n||"string"==typeof n?n:JSON.stringify(n))}var D={dataIdFromObject:E,addTypename:!0,resultCaching:!0,canonizeResults:!1};function R(e){var t=e.canonizeResults;return void 0===t?D.canonizeResults:t}var T=/^[_a-z][_0-9a-z]*/i;function q(e){var t=e.match(T);return t?t[0]:e}function Q(e,t,r){return!!(0,k.s)(t)&&((0,w.k)(t)?t.every((function(t){return Q(e,t,r)})):e.selections.every((function(e){if((0,h.My)(e)&&(0,b.LZ)(e,r)){var n=(0,h.u2)(e);return S.call(t,n)&&(!e.selectionSet||Q(e.selectionSet,t[n],r))}return!0})))}function P(e){return(0,k.s)(e)&&!(0,h.Yk)(e)&&!(0,w.k)(e)}function I(e,t){var r=(0,s.F)((0,y.kU)(e));return{fragmentMap:r,lookupFragment:function(e){var n=r[e];return!n&&t&&(n=t.lookup(e)),n||null}}}var F=Object.create(null),x=function(){return F},C=Object.create(null),j=function(){function e(e,t){var r=this;this.policies=e,this.group=t,this.data=Object.create(null),this.rootIds=Object.create(null),this.refs=Object.create(null),this.getFieldValue=function(e,t){return(0,g.J)((0,h.Yk)(e)?r.get(e.__ref,t):e&&e[t])},this.canRead=function(e){return(0,h.Yk)(e)?r.has(e.__ref):"object"==typeof e},this.toReference=function(e,t){if("string"==typeof e)return(0,h.kQ)(e);if((0,h.Yk)(e))return e;var n=r.policies.identify(e)[0];if(n){var i=(0,h.kQ)(n);return t&&r.merge(n,e),i}}}return e.prototype.toObject=function(){return(0,n.pi)({},this.data)},e.prototype.has=function(e){return void 0!==this.lookup(e,!0)},e.prototype.get=function(e,t){if(this.group.depend(e,t),S.call(this.data,e)){var r=this.data[e];if(r&&S.call(r,t))return r[t]}return"__typename"===t&&S.call(this.policies.rootTypenamesById,e)?this.policies.rootTypenamesById[e]:this instanceof L?this.parent.get(e,t):void 0},e.prototype.lookup=function(e,t){return t&&this.group.depend(e,"__exists"),S.call(this.data,e)?this.data[e]:this instanceof L?this.parent.lookup(e,t):this.policies.rootTypenamesById[e]?Object.create(null):void 0},e.prototype.merge=function(e,t){var r,n=this;(0,h.Yk)(e)&&(e=e.__ref),(0,h.Yk)(t)&&(t=t.__ref);var o="string"==typeof e?this.lookup(r=e):e,a="string"==typeof t?this.lookup(r=t):t;if(a){(0,i.kG)("string"==typeof r,1);var s=new m.w0(G).merge(o,a);if(this.data[r]=s,s!==o&&(delete this.refs[r],this.group.caching)){var u=Object.create(null);o||(u.__exists=1),Object.keys(a).forEach((function(e){if(!o||o[e]!==s[e]){u[e]=1;var t=q(e);t===e||n.policies.hasKeyArgs(s.__typename,t)||(u[t]=1),void 0!==s[e]||n instanceof L||delete s[e]}})),!u.__typename||o&&o.__typename||this.policies.rootTypenamesById[r]!==s.__typename||delete u.__typename,Object.keys(u).forEach((function(e){return n.group.dirty(r,e)}))}}},e.prototype.modify=function(e,t){var r=this,i=this.lookup(e);if(i){var o=Object.create(null),a=!1,s=!0,u={DELETE:F,INVALIDATE:C,isReference:h.Yk,toReference:this.toReference,canRead:this.canRead,readField:function(t,n){return r.policies.readField("string"==typeof t?{fieldName:t,from:n||(0,h.kQ)(e)}:t,{store:r})}};if(Object.keys(i).forEach((function(c){var l=q(c),f=i[c];if(void 0!==f){var h="function"==typeof t?t:t[c]||t[l];if(h){var p=h===x?F:h((0,g.J)(f),(0,n.pi)((0,n.pi)({},u),{fieldName:l,storeFieldName:c,storage:r.getStorage(e,c)}));p===C?r.group.dirty(e,c):(p===F&&(p=void 0),p!==f&&(o[c]=p,a=!0,f=p))}void 0!==f&&(s=!1)}})),a)return this.merge(e,o),s&&(this instanceof L?this.data[e]=void 0:delete this.data[e],this.group.dirty(e,"__exists")),!0}return!1},e.prototype.delete=function(e,t,r){var n,i=this.lookup(e);if(i){var o=this.getFieldValue(i,"__typename"),a=t&&r?this.policies.getStoreFieldName({typename:o,fieldName:t,args:r}):t;return this.modify(e,a?((n={})[a]=x,n):x)}return!1},e.prototype.evict=function(e,t){var r=!1;return e.id&&(S.call(this.data,e.id)&&(r=this.delete(e.id,e.fieldName,e.args)),this instanceof L&&this!==t&&(r=this.parent.evict(e,t)||r),(e.fieldName||r)&&this.group.dirty(e.id,e.fieldName||"__exists")),r},e.prototype.clear=function(){this.replace(null)},e.prototype.extract=function(){var e=this,t=this.toObject(),r=[];return this.getRootIdSet().forEach((function(t){S.call(e.policies.rootTypenamesById,t)||r.push(t)})),r.length&&(t.__META={extraRootIds:r.sort()}),t},e.prototype.replace=function(e){var t=this;if(Object.keys(this.data).forEach((function(r){e&&S.call(e,r)||t.delete(r)})),e){var r=e.__META,i=(0,n._T)(e,["__META"]);Object.keys(i).forEach((function(e){t.merge(e,i[e])})),r&&r.extraRootIds.forEach(this.retain,this)}},e.prototype.retain=function(e){return this.rootIds[e]=(this.rootIds[e]||0)+1},e.prototype.release=function(e){if(this.rootIds[e]>0){var t=--this.rootIds[e];return t||delete this.rootIds[e],t}return 0},e.prototype.getRootIdSet=function(e){return void 0===e&&(e=new Set),Object.keys(this.rootIds).forEach(e.add,e),this instanceof L?this.parent.getRootIdSet(e):Object.keys(this.policies.rootTypenamesById).forEach(e.add,e),e},e.prototype.gc=function(){var e=this,t=this.getRootIdSet(),r=this.toObject();t.forEach((function(n){S.call(r,n)&&(Object.keys(e.findChildRefIds(n)).forEach(t.add,t),delete r[n])}));var n=Object.keys(r);if(n.length){for(var i=this;i instanceof L;)i=i.parent;n.forEach((function(e){return i.delete(e)}))}return n},e.prototype.findChildRefIds=function(e){if(!S.call(this.refs,e)){var t=this.refs[e]=Object.create(null),r=this.data[e];if(!r)return t;var n=new Set([r]);n.forEach((function(e){(0,h.Yk)(e)&&(t[e.__ref]=!0),(0,k.s)(e)&&Object.keys(e).forEach((function(t){var r=e[t];(0,k.s)(r)&&n.add(r)}))}))}return this.refs[e]},e.prototype.makeCacheKey=function(){return this.group.keyMaker.lookupArray(arguments)},e}(),M=function(){function e(e,t){void 0===t&&(t=null),this.caching=e,this.parent=t,this.d=null,this.resetCaching()}return e.prototype.resetCaching=function(){this.d=this.caching?(0,o.dP)():null,this.keyMaker=new O.B(d.mr)},e.prototype.depend=function(e,t){if(this.d){this.d(N(e,t));var r=q(t);r!==t&&this.d(N(e,r)),this.parent&&this.parent.depend(e,t)}},e.prototype.dirty=function(e,t){this.d&&this.d.dirty(N(e,t),"__exists"===t?"forget":"setDirty")},e}();function N(e,t){return t+"#"+e}function A(e,t){W(e)&&e.group.depend(t,"__exists")}!function(e){var t=function(e){function t(t){var r=t.policies,n=t.resultCaching,i=void 0===n||n,o=t.seed,a=e.call(this,r,new M(i))||this;return a.stump=new V(a),a.storageTrie=new O.B(d.mr),o&&a.replace(o),a}return(0,n.ZT)(t,e),t.prototype.addLayer=function(e,t){return this.stump.addLayer(e,t)},t.prototype.removeLayer=function(){return this},t.prototype.getStorage=function(){return this.storageTrie.lookupArray(arguments)},t}(e);e.Root=t}(j||(j={}));var L=function(e){function t(t,r,n,i){var o=e.call(this,r.policies,i)||this;return o.id=t,o.parent=r,o.replay=n,o.group=i,n(o),o}return(0,n.ZT)(t,e),t.prototype.addLayer=function(e,r){return new t(e,this,r,this.group)},t.prototype.removeLayer=function(e){var t=this,r=this.parent.removeLayer(e);return e===this.id?(this.group.caching&&Object.keys(this.data).forEach((function(e){var n=t.data[e],i=r.lookup(e);i?n?n!==i&&Object.keys(n).forEach((function(r){(0,a.D)(n[r],i[r])||t.group.dirty(e,r)})):(t.group.dirty(e,"__exists"),Object.keys(i).forEach((function(r){t.group.dirty(e,r)}))):t.delete(e)})),r):r===this.parent?this:r.addLayer(this.id,this.replay)},t.prototype.toObject=function(){return(0,n.pi)((0,n.pi)({},this.parent.toObject()),this.data)},t.prototype.findChildRefIds=function(t){var r=this.parent.findChildRefIds(t);return S.call(this.data,t)?(0,n.pi)((0,n.pi)({},r),e.prototype.findChildRefIds.call(this,t)):r},t.prototype.getStorage=function(){for(var e=this.parent;e.parent;)e=e.parent;return e.getStorage.apply(e,arguments)},t}(j),V=function(e){function t(t){return e.call(this,"EntityStore.Stump",t,(function(){}),new M(t.group.caching,t.group))||this}return(0,n.ZT)(t,e),t.prototype.removeLayer=function(){return this},t.prototype.merge=function(){return this.parent.merge.apply(this.parent,arguments)},t}(L);function G(e,t,r){var n=e[r],i=t[r];return(0,a.D)(n,i)?n:i}function W(e){return!!(e instanceof j&&e.group.caching)}var z=r(80900);function B(e){return[e.selectionSet,e.objectOrReference,e.context,e.context.canonizeResults]}var U=function(){function e(e){var t=this;this.knownResults=new(d.mr?WeakMap:Map),this.config=(0,v.o)(e,{addTypename:!1!==e.addTypename,canonizeResults:R(e)}),this.canon=e.canon||new z.h,this.executeSelectionSet=(0,o.re)((function(e){var r,i=e.context.canonizeResults,o=B(e);o[3]=!i;var a=(r=t.executeSelectionSet).peek.apply(r,o);return a?i?(0,n.pi)((0,n.pi)({},a),{result:t.canon.admit(a.result)}):a:(A(e.context.store,e.enclosingRef.__ref),t.execSelectionSetImpl(e))}),{max:this.config.resultCacheMaxSize,keyArgs:B,makeCacheKey:function(e,t,r,n){if(W(r.store))return r.store.makeCacheKey(e,(0,h.Yk)(t)?t.__ref:t,r.varString,n)}}),this.executeSubSelectedArray=(0,o.re)((function(e){return A(e.context.store,e.enclosingRef.__ref),t.execSubSelectedArrayImpl(e)}),{max:this.config.resultCacheMaxSize,makeCacheKey:function(e){var t=e.field,r=e.array,n=e.context;if(W(n.store))return n.store.makeCacheKey(t,r,n.varString)}})}return e.prototype.resetCanon=function(){this.canon=new z.h},e.prototype.diffQueryAgainstStore=function(e){var t=e.store,r=e.query,i=e.rootId,o=void 0===i?"ROOT_QUERY":i,a=e.variables,s=e.returnPartialData,u=void 0===s||s,l=e.canonizeResults,f=void 0===l?this.config.canonizeResults:l,p=this.config.cache.policies;a=(0,n.pi)((0,n.pi)({},(0,y.O4)((0,y.iW)(r))),a);var d,v=(0,h.kQ)(o),m=this.executeSelectionSet({selectionSet:(0,y.p$)(r).selectionSet,objectOrReference:v,enclosingRef:v,context:(0,n.pi)({store:t,query:r,policies:p,variables:a,varString:(0,z.B)(a),canonizeResults:f},I(r,this.config.fragments))});if(m.missing&&(d=[new c(Y(m.missing),m.missing,r,a)],!u))throw d[0];return{result:m.result,complete:!d,missing:d}},e.prototype.isFresh=function(e,t,r,n){if(W(n.store)&&this.knownResults.get(e)===r){var i=this.executeSelectionSet.peek(r,t,n,this.canon.isKnown(e));if(i&&e===i.result)return!0}return!1},e.prototype.execSelectionSetImpl=function(e){var t=this,r=e.selectionSet,n=e.objectOrReference,o=e.enclosingRef,a=e.context;if((0,h.Yk)(n)&&!a.policies.rootTypenamesById[n.__ref]&&!a.store.has(n.__ref))return{result:this.canon.empty,missing:"Dangling reference to missing ".concat(n.__ref," object")};var u,c=a.variables,l=a.policies,d=a.store.getFieldValue(n,"__typename"),v=[],y=new m.w0;function k(e,t){var r;return e.missing&&(u=y.merge(u,((r={})[t]=e.missing,r))),e.result}this.config.addTypename&&"string"==typeof d&&!l.rootIdsByTypename[d]&&v.push({__typename:d});var O=new Set(r.selections);O.forEach((function(e){var r,m;if((0,b.LZ)(e,c))if((0,h.My)(e)){var g=l.readField({fieldName:e.name.value,field:e,variables:a.variables,from:n},a),S=(0,h.u2)(e);void 0===g?f.Gw.added(e)||(u=y.merge(u,((r={})[S]="Can't find field '".concat(e.name.value,"' on ").concat((0,h.Yk)(n)?n.__ref+" object":"object "+JSON.stringify(n,null,2)),r))):(0,w.k)(g)?g=k(t.executeSubSelectedArray({field:e,array:g,enclosingRef:o,context:a}),S):e.selectionSet?null!=g&&(g=k(t.executeSelectionSet({selectionSet:e.selectionSet,objectOrReference:g,enclosingRef:(0,h.Yk)(g)?g:o,context:a}),S)):a.canonizeResults&&(g=t.canon.pass(g)),void 0!==g&&v.push(((m={})[S]=g,m))}else{var _=(0,s.hi)(e,a.lookupFragment);if(!_&&e.kind===p.h.FRAGMENT_SPREAD)throw(0,i._K)(7,e.name.value);_&&l.fragmentMatches(_,d)&&_.selectionSet.selections.forEach(O.add,O)}}));var S={result:(0,m.bw)(v),missing:u},_=a.canonizeResults?this.canon.admit(S):(0,g.J)(S);return _.result&&this.knownResults.set(_.result,r),_},e.prototype.execSubSelectedArrayImpl=function(e){var t,r=this,n=e.field,o=e.array,a=e.enclosingRef,s=e.context,u=new m.w0;function c(e,r){var n;return e.missing&&(t=u.merge(t,((n={})[r]=e.missing,n))),e.result}return n.selectionSet&&(o=o.filter(s.store.canRead)),o=o.map((function(e,t){return null===e?null:(0,w.k)(e)?c(r.executeSubSelectedArray({field:n,array:e,enclosingRef:a,context:s}),t):n.selectionSet?c(r.executeSelectionSet({selectionSet:n.selectionSet,objectOrReference:e,enclosingRef:(0,h.Yk)(e)?e:a,context:s}),t):(!1!==globalThis.__DEV__&&function(e,t,r){if(!t.selectionSet){var n=new Set([r]);n.forEach((function(r){(0,k.s)(r)&&((0,i.kG)(!(0,h.Yk)(r),8,function(e,t){return(0,h.Yk)(t)?e.get(t.__ref,"__typename"):t&&t.__typename}(e,r),t.name.value),Object.values(r).forEach(n.add,n))}))}}(s.store,n,e),e)})),{result:s.canonizeResults?this.canon.admit(o):o,missing:t}},e}();function Y(e){try{JSON.stringify(e,(function(e,t){if("string"==typeof t)throw t;return t}))}catch(e){return e}}var J=r(79487),K=r(13887),H=r(66438),$=Object.create(null);function Z(e){var t=JSON.stringify(e);return $[t]||($[t]=Object.create(null))}function X(e){var t=Z(e);return t.keyFieldsFn||(t.keyFieldsFn=function(t,r){var n=function(e,t){return r.readField(t,e)},o=r.keyObject=te(e,(function(e){var o=ie(r.storeObject,e,n);return void 0===o&&t!==r.storeObject&&S.call(t,e[0])&&(o=ie(t,e,ne)),(0,i.kG)(void 0!==o,2,e.join("."),t),o}));return"".concat(r.typename,":").concat(JSON.stringify(o))})}function ee(e){var t=Z(e);return t.keyArgsFn||(t.keyArgsFn=function(t,r){var n=r.field,i=r.variables,o=r.fieldName,a=te(e,(function(e){var r=e[0],o=r.charAt(0);if("@"!==o)if("$"!==o){if(t)return ie(t,e)}else{var a=r.slice(1);if(i&&S.call(i,a)){var s=e.slice(0);return s[0]=a,ie(i,s)}}else if(n&&(0,w.O)(n.directives)){var u=r.slice(1),c=n.directives.find((function(e){return e.name.value===u})),l=c&&(0,h.NC)(c,i);return l&&ie(l,e.slice(1))}})),s=JSON.stringify(a);return(t||"{}"!==s)&&(o+=":"+s),o})}function te(e,t){var r=new m.w0;return re(e).reduce((function(e,n){var i,o=t(n);if(void 0!==o){for(var a=n.length-1;a>=0;--a)(i={})[n[a]]=o,o=i;e=r.merge(e,o)}return e}),Object.create(null))}function re(e){var t=Z(e);if(!t.paths){var r=t.paths=[],n=[];e.forEach((function(t,i){(0,w.k)(t)?(re(t).forEach((function(e){return r.push(n.concat(e))})),n.length=0):(n.push(t),(0,w.k)(e[i+1])||(r.push(n.slice(0)),n.length=0))}))}return t.paths}function ne(e,t){return e[t]}function ie(e,t,r){return r=r||ne,oe(t.reduce((function e(t,n){return(0,w.k)(t)?t.map((function(t){return e(t,n)})):t&&r(t,n)}),e))}function oe(e){return(0,k.s)(e)?(0,w.k)(e)?e.map(oe):te(Object.keys(e).sort(),(function(t){return ie(e,t)})):e}function ae(e){return void 0!==e.args?e.args:e.field?(0,h.NC)(e.field,e.variables):null}h.PT.setStringify(z.B);var se=function(){},ue=function(e,t){return t.fieldName},ce=function(e,t,r){return(0,r.mergeObjects)(e,t)},le=function(e,t){return t},fe=function(){function e(e){this.config=e,this.typePolicies=Object.create(null),this.toBeAdded=Object.create(null),this.supertypeMap=new Map,this.fuzzySubtypes=new Map,this.rootIdsByTypename=Object.create(null),this.rootTypenamesById=Object.create(null),this.usingPossibleTypes=!1,this.config=(0,n.pi)({dataIdFromObject:E},e),this.cache=this.config.cache,this.setRootTypename("Query"),this.setRootTypename("Mutation"),this.setRootTypename("Subscription"),e.possibleTypes&&this.addPossibleTypes(e.possibleTypes),e.typePolicies&&this.addTypePolicies(e.typePolicies)}return e.prototype.identify=function(e,t){var r,i=this,o=t&&(t.typename||(null===(r=t.storeObject)||void 0===r?void 0:r.__typename))||e.__typename;if(o===this.rootTypenamesById.ROOT_QUERY)return["ROOT_QUERY"];for(var a,s=t&&t.storeObject||e,u=(0,n.pi)((0,n.pi)({},t),{typename:o,storeObject:s,readField:t&&t.readField||function(){var e=pe(arguments,s);return i.readField(e,{store:i.cache.data,variables:e.variables})}}),c=o&&this.getTypePolicy(o),l=c&&c.keyFn||this.config.dataIdFromObject;l;){var f=l((0,n.pi)((0,n.pi)({},e),s),u);if(!(0,w.k)(f)){a=f;break}l=X(f)}return a=a?String(a):void 0,u.keyObject?[a,u.keyObject]:[a]},e.prototype.addTypePolicies=function(e){var t=this;Object.keys(e).forEach((function(r){var i=e[r],o=i.queryType,a=i.mutationType,s=i.subscriptionType,u=(0,n._T)(i,["queryType","mutationType","subscriptionType"]);o&&t.setRootTypename("Query",r),a&&t.setRootTypename("Mutation",r),s&&t.setRootTypename("Subscription",r),S.call(t.toBeAdded,r)?t.toBeAdded[r].push(u):t.toBeAdded[r]=[u]}))},e.prototype.updateTypePolicy=function(e,t){var r=this,n=this.getTypePolicy(e),i=t.keyFields,o=t.fields;function a(e,t){e.merge="function"==typeof t?t:!0===t?ce:!1===t?le:e.merge}a(n,t.merge),n.keyFn=!1===i?se:(0,w.k)(i)?X(i):"function"==typeof i?i:n.keyFn,o&&Object.keys(o).forEach((function(t){var n=r.getFieldPolicy(e,t,!0),i=o[t];if("function"==typeof i)n.read=i;else{var s=i.keyArgs,u=i.read,c=i.merge;n.keyFn=!1===s?ue:(0,w.k)(s)?ee(s):"function"==typeof s?s:n.keyFn,"function"==typeof u&&(n.read=u),a(n,c)}n.read&&n.merge&&(n.keyFn=n.keyFn||ue)}))},e.prototype.setRootTypename=function(e,t){void 0===t&&(t=e);var r="ROOT_"+e.toUpperCase(),n=this.rootTypenamesById[r];t!==n&&((0,i.kG)(!n||n===e,3,e),n&&delete this.rootIdsByTypename[n],this.rootIdsByTypename[t]=r,this.rootTypenamesById[r]=t)},e.prototype.addPossibleTypes=function(e){var t=this;this.usingPossibleTypes=!0,Object.keys(e).forEach((function(r){t.getSupertypeSet(r,!0),e[r].forEach((function(e){t.getSupertypeSet(e,!0).add(r);var n=e.match(T);n&&n[0]===e||t.fuzzySubtypes.set(e,new RegExp(e))}))}))},e.prototype.getTypePolicy=function(e){var t=this;if(!S.call(this.typePolicies,e)){var r=this.typePolicies[e]=Object.create(null);r.fields=Object.create(null);var i=this.supertypeMap.get(e);!i&&this.fuzzySubtypes.size&&(i=this.getSupertypeSet(e,!0),this.fuzzySubtypes.forEach((function(r,n){if(r.test(e)){var o=t.supertypeMap.get(n);o&&o.forEach((function(e){return i.add(e)}))}}))),i&&i.size&&i.forEach((function(e){var i=t.getTypePolicy(e),o=i.fields,a=(0,n._T)(i,["fields"]);Object.assign(r,a),Object.assign(r.fields,o)}))}var o=this.toBeAdded[e];return o&&o.length&&o.splice(0).forEach((function(r){t.updateTypePolicy(e,r)})),this.typePolicies[e]},e.prototype.getFieldPolicy=function(e,t,r){if(e){var n=this.getTypePolicy(e).fields;return n[t]||r&&(n[t]=Object.create(null))}},e.prototype.getSupertypeSet=function(e,t){var r=this.supertypeMap.get(e);return!r&&t&&this.supertypeMap.set(e,r=new Set),r},e.prototype.fragmentMatches=function(e,t,r,n){var o=this;if(!e.typeCondition)return!0;if(!t)return!1;var a=e.typeCondition.name.value;if(t===a)return!0;if(this.usingPossibleTypes&&this.supertypeMap.has(a))for(var s=this.getSupertypeSet(t,!0),u=[s],c=function(e){var t=o.getSupertypeSet(e,!1);t&&t.size&&u.indexOf(t)<0&&u.push(t)},l=!(!r||!this.fuzzySubtypes.size),f=!1,h=0;h1?s:t}:(o=(0,n.pi)({},a),S.call(o,"from")||(o.from=t)),!1!==globalThis.__DEV__&&void 0===o.from&&!1!==globalThis.__DEV__&&i.kG.warn(5,(0,K.v)(Array.from(e))),void 0===o.variables&&(o.variables=r),o}function de(e){return function(t,r){if((0,w.k)(t)||(0,w.k)(r))throw(0,i._K)(6);if((0,k.s)(t)&&(0,k.s)(r)){var o=e.getFieldValue(t,"__typename"),a=e.getFieldValue(r,"__typename");if(o&&a&&o!==a)return r;if((0,h.Yk)(t)&&P(r))return e.merge(t.__ref,r),t;if(P(t)&&(0,h.Yk)(r))return e.merge(t,r.__ref),r;if(P(t)&&P(r))return(0,n.pi)((0,n.pi)({},t),r)}return r}}function ve(e,t,r){var i="".concat(t).concat(r),o=e.flavors.get(i);return o||e.flavors.set(i,o=e.clientOnly===t&&e.deferred===r?e:(0,n.pi)((0,n.pi)({},e),{clientOnly:t,deferred:r})),o}var ye=function(){function e(e,t,r){this.cache=e,this.reader=t,this.fragments=r}return e.prototype.writeToStore=function(e,t){var r=this,o=t.query,s=t.result,u=t.dataId,c=t.variables,l=t.overwrite,f=(0,y.$H)(o),p=new m.w0;c=(0,n.pi)((0,n.pi)({},(0,y.O4)(f)),c);var d=(0,n.pi)((0,n.pi)({store:e,written:Object.create(null),merge:function(e,t){return p.merge(e,t)},variables:c,varString:(0,z.B)(c)},I(o,this.fragments)),{overwrite:!!l,incomingById:new Map,clientOnly:!1,deferred:!1,flavors:new Map}),v=this.processSelectionSet({result:s||Object.create(null),dataId:u,selectionSet:f.selectionSet,mergeTree:{map:new Map},context:d});if(!(0,h.Yk)(v))throw(0,i._K)(9,s);return d.incomingById.forEach((function(t,n){var o=t.storeObject,s=t.mergeTree,u=t.fieldNodeSet,c=(0,h.kQ)(n);if(s&&s.map.size){var l=r.applyMerges(s,c,o,d);if((0,h.Yk)(l))return;o=l}if(!1!==globalThis.__DEV__&&!d.overwrite){var f=Object.create(null);u.forEach((function(e){e.selectionSet&&(f[e.name.value]=!0)}));Object.keys(o).forEach((function(e){(function(e){return!0===f[q(e)]})(e)&&!function(e){var t=s&&s.map.get(e);return Boolean(t&&t.info&&t.info.merge)}(e)&&function(e,t,r,n){var o=function(e){var t=n.getFieldValue(e,r);return"object"==typeof t&&t},s=o(e);if(!s)return;var u=o(t);if(!u)return;if((0,h.Yk)(s))return;if((0,a.D)(s,u))return;if(Object.keys(s).every((function(e){return void 0!==n.getFieldValue(u,e)})))return;var c=n.getFieldValue(e,"__typename")||n.getFieldValue(t,"__typename"),l=q(r),f="".concat(c,".").concat(l);if(we.has(f))return;we.add(f);var p=[];(0,w.k)(s)||(0,w.k)(u)||[s,u].forEach((function(e){var t=n.getFieldValue(e,"__typename");"string"!=typeof t||p.includes(t)||p.push(t)}));!1!==globalThis.__DEV__&&i.kG.warn(12,l,c,p.length?"either ensure all objects of type "+p.join(" and ")+" have an ID or a custom merge function, or ":"",f,s,u)}(c,o,e,d.store)}))}e.merge(n,o)})),e.retain(v.__ref),v},e.prototype.processSelectionSet=function(e){var t=this,r=e.dataId,o=e.result,a=e.selectionSet,s=e.context,u=e.mergeTree,c=this.cache.policies,l=Object.create(null),p=r&&c.rootTypenamesById[r]||(0,h.qw)(o,a,s.fragmentMap)||r&&s.store.get(r,"__typename");"string"==typeof p&&(l.__typename=p);var d=function(){var e=pe(arguments,l,s.variables);if((0,h.Yk)(e.from)){var t=s.incomingById.get(e.from.__ref);if(t){var r=c.readField((0,n.pi)((0,n.pi)({},e),{from:t.storeObject}),s);if(void 0!==r)return r}}return c.readField(e,s)},v=new Set;this.flattenFields(a,o,s,p).forEach((function(e,r){var n,a=(0,h.u2)(r),s=o[a];if(v.add(r),void 0!==s){var y=c.getStoreFieldName({typename:p,fieldName:r.name.value,field:r,variables:e.variables}),m=be(u,y),b=t.processFieldValue(s,r,r.selectionSet?ve(e,!1,!1):e,m),g=void 0;r.selectionSet&&((0,h.Yk)(b)||P(b))&&(g=d("__typename",b));var k=c.getMergeFunction(p,r.name.value,g);k?m.info={field:r,typename:p,merge:k}:Oe(u,y),l=e.merge(l,((n={})[y]=b,n))}else!1===globalThis.__DEV__||e.clientOnly||e.deferred||f.Gw.added(r)||c.getReadFunction(p,r.name.value)||!1!==globalThis.__DEV__&&i.kG.error(10,(0,h.u2)(r),o)}));try{var y=c.identify(o,{typename:p,selectionSet:a,fragmentMap:s.fragmentMap,storeObject:l,readField:d}),m=y[0],b=y[1];r=r||m,b&&(l=s.merge(l,b))}catch(e){if(!r)throw e}if("string"==typeof r){var g=(0,h.kQ)(r),k=s.written[r]||(s.written[r]=[]);if(k.indexOf(a)>=0)return g;if(k.push(a),this.reader&&this.reader.isFresh(o,g,a,s))return g;var O=s.incomingById.get(r);return O?(O.storeObject=s.merge(O.storeObject,l),O.mergeTree=ge(O.mergeTree,u),v.forEach((function(e){return O.fieldNodeSet.add(e)}))):s.incomingById.set(r,{storeObject:l,mergeTree:ke(u)?void 0:u,fieldNodeSet:v}),g}return l},e.prototype.processFieldValue=function(e,t,r,n){var i=this;return t.selectionSet&&null!==e?(0,w.k)(e)?e.map((function(e,o){var a=i.processFieldValue(e,t,r,be(n,o));return Oe(n,o),a})):this.processSelectionSet({result:e,selectionSet:t.selectionSet,context:r,mergeTree:n}):!1!==globalThis.__DEV__?(0,J.X)(e):e},e.prototype.flattenFields=function(e,t,r,n){void 0===n&&(n=(0,h.qw)(t,e,r.fragmentMap));var o=new Map,a=this.cache.policies,u=new O.B(!1);return function e(c,l){var f=u.lookup(c,l.clientOnly,l.deferred);f.visited||(f.visited=!0,c.selections.forEach((function(u){if((0,b.LZ)(u,r.variables)){var c=l.clientOnly,f=l.deferred;if(c&&f||!(0,w.O)(u.directives)||u.directives.forEach((function(e){var t=e.name.value;if("client"===t&&(c=!0),"defer"===t){var n=(0,h.NC)(e,r.variables);n&&!1===n.if||(f=!0)}})),(0,h.My)(u)){var d=o.get(u);d&&(c=c&&d.clientOnly,f=f&&d.deferred),o.set(u,ve(r,c,f))}else{var v=(0,s.hi)(u,r.lookupFragment);if(!v&&u.kind===p.h.FRAGMENT_SPREAD)throw(0,i._K)(11,u.name.value);v&&a.fragmentMatches(v,n,t,r.variables)&&e(v.selectionSet,ve(r,c,f))}}})))}(e,r),o},e.prototype.applyMerges=function(e,t,r,o,a){var s,u=this;if(e.map.size&&!(0,h.Yk)(r)){var c,l=(0,w.k)(r)||!(0,h.Yk)(t)&&!P(t)?void 0:t,f=r;l&&!a&&(a=[(0,h.Yk)(l)?l.__ref:l]);var p=function(e,t){return(0,w.k)(e)?"number"==typeof t?e[t]:void 0:o.store.getFieldValue(e,String(t))};e.map.forEach((function(e,t){var r=p(l,t),n=p(f,t);if(void 0!==n){a&&a.push(t);var s=u.applyMerges(e,r,n,o,a);s!==n&&(c=c||new Map).set(t,s),a&&(0,i.kG)(a.pop()===t)}})),c&&(r=(0,w.k)(f)?f.slice(0):(0,n.pi)({},f),c.forEach((function(e,t){r[t]=e})))}return e.info?this.cache.policies.runMergeFunction(t,r,e.info,o,a&&(s=o.store).getStorage.apply(s,a)):r},e}(),me=[];function be(e,t){var r=e.map;return r.has(t)||r.set(t,me.pop()||{map:new Map}),r.get(t)}function ge(e,t){if(e===t||!t||ke(t))return e;if(!e||ke(e))return t;var r=e.info&&t.info?(0,n.pi)((0,n.pi)({},e.info),t.info):e.info||t.info,i=e.map.size&&t.map.size,o={info:r,map:i?new Map:e.map.size?e.map:t.map};if(i){var a=new Set(t.map.keys());e.map.forEach((function(e,r){o.map.set(r,ge(e,t.map.get(r))),a.delete(r)})),a.forEach((function(r){o.map.set(r,ge(t.map.get(r),e.map.get(r)))}))}return o}function ke(e){return!e||!(e.info||e.map.size)}function Oe(e,t){var r=e.map,n=r.get(t);n&&ke(n)&&(me.push(n),r.delete(t))}var we=new Set;var Se=function(e){function t(t){void 0===t&&(t={});var r=e.call(this)||this;return r.watches=new Set,r.addTypenameTransform=new l.A(f.Gw),r.assumeImmutableResults=!0,r.makeVar=H.QS,r.txCount=0,r.config=function(e){return(0,v.o)(D,e)}(t),r.addTypename=!!r.config.addTypename,r.policies=new fe({cache:r,dataIdFromObject:r.config.dataIdFromObject,possibleTypes:r.config.possibleTypes,typePolicies:r.config.typePolicies}),r.init(),r}return(0,n.ZT)(t,e),t.prototype.init=function(){var e=this.data=new j.Root({policies:this.policies,resultCaching:this.config.resultCaching});this.optimisticData=e.stump,this.resetResultCache()},t.prototype.resetResultCache=function(e){var t=this,r=this.storeReader,n=this.config.fragments;this.storeWriter=new ye(this,this.storeReader=new U({cache:this,addTypename:this.addTypename,resultCacheMaxSize:this.config.resultCacheMaxSize,canonizeResults:R(this.config),canon:e?void 0:r&&r.canon,fragments:n}),n),this.maybeBroadcastWatch=(0,o.re)((function(e,r){return t.broadcastWatch(e,r)}),{max:this.config.resultCacheMaxSize,makeCacheKey:function(e){var r=e.optimistic?t.optimisticData:t.data;if(W(r)){var n=e.optimistic,i=e.id,o=e.variables;return r.makeCacheKey(e.query,e.callback,(0,z.B)({optimistic:n,id:i,variables:o}))}}}),new Set([this.data.group,this.optimisticData.group]).forEach((function(e){return e.resetCaching()}))},t.prototype.restore=function(e){return this.init(),e&&this.data.replace(e),this},t.prototype.extract=function(e){return void 0===e&&(e=!1),(e?this.optimisticData:this.data).extract()},t.prototype.read=function(e){var t=e.returnPartialData,r=void 0!==t&&t;try{return this.storeReader.diffQueryAgainstStore((0,n.pi)((0,n.pi)({},e),{store:e.optimistic?this.optimisticData:this.data,config:this.config,returnPartialData:r})).result||null}catch(e){if(e instanceof c)return null;throw e}},t.prototype.write=function(e){try{return++this.txCount,this.storeWriter.writeToStore(this.data,e)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},t.prototype.modify=function(e){if(S.call(e,"id")&&!e.id)return!1;var t=e.optimistic?this.optimisticData:this.data;try{return++this.txCount,t.modify(e.id||"ROOT_QUERY",e.fields)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},t.prototype.diff=function(e){return this.storeReader.diffQueryAgainstStore((0,n.pi)((0,n.pi)({},e),{store:e.optimistic?this.optimisticData:this.data,rootId:e.id||"ROOT_QUERY",config:this.config}))},t.prototype.watch=function(e){var t=this;return this.watches.size||(0,H._v)(this),this.watches.add(e),e.immediate&&this.maybeBroadcastWatch(e),function(){t.watches.delete(e)&&!t.watches.size&&(0,H.li)(t),t.maybeBroadcastWatch.forget(e)}},t.prototype.gc=function(e){z.B.reset();var t=this.optimisticData.gc();return e&&!this.txCount&&(e.resetResultCache?this.resetResultCache(e.resetResultIdentities):e.resetResultIdentities&&this.storeReader.resetCanon()),t},t.prototype.retain=function(e,t){return(t?this.optimisticData:this.data).retain(e)},t.prototype.release=function(e,t){return(t?this.optimisticData:this.data).release(e)},t.prototype.identify=function(e){if((0,h.Yk)(e))return e.__ref;try{return this.policies.identify(e)[0]}catch(e){!1!==globalThis.__DEV__&&i.kG.warn(e)}},t.prototype.evict=function(e){if(!e.id){if(S.call(e,"id"))return!1;e=(0,n.pi)((0,n.pi)({},e),{id:"ROOT_QUERY"})}try{return++this.txCount,this.optimisticData.evict(e,this.data)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},t.prototype.reset=function(e){var t=this;return this.init(),z.B.reset(),e&&e.discardWatches?(this.watches.forEach((function(e){return t.maybeBroadcastWatch.forget(e)})),this.watches.clear(),(0,H.li)(this)):this.broadcastWatches(),Promise.resolve()},t.prototype.removeOptimistic=function(e){var t=this.optimisticData.removeLayer(e);t!==this.optimisticData&&(this.optimisticData=t,this.broadcastWatches())},t.prototype.batch=function(e){var t,r=this,i=e.update,o=e.optimistic,a=void 0===o||o,s=e.removeOptimistic,u=e.onWatchUpdated,c=function(e){var n=r,o=n.data,a=n.optimisticData;++r.txCount,e&&(r.data=r.optimisticData=e);try{return t=i(r)}finally{--r.txCount,r.data=o,r.optimisticData=a}},l=new Set;return u&&!this.txCount&&this.broadcastWatches((0,n.pi)((0,n.pi)({},e),{onWatchUpdated:function(e){return l.add(e),!1}})),"string"==typeof a?this.optimisticData=this.optimisticData.addLayer(a,c):!1===a?c(this.data):c(),"string"==typeof s&&(this.optimisticData=this.optimisticData.removeLayer(s)),u&&l.size?(this.broadcastWatches((0,n.pi)((0,n.pi)({},e),{onWatchUpdated:function(e,t){var r=u.call(this,e,t);return!1!==r&&l.delete(e),r}})),l.size&&l.forEach((function(e){return r.maybeBroadcastWatch.dirty(e)}))):this.broadcastWatches(e),t},t.prototype.performTransaction=function(e,t){return this.batch({update:e,optimistic:t||null!==t})},t.prototype.transformDocument=function(e){return this.addTypenameToDocument(this.addFragmentsToDocument(e))},t.prototype.broadcastWatches=function(e){var t=this;this.txCount||this.watches.forEach((function(r){return t.maybeBroadcastWatch(r,e)}))},t.prototype.addFragmentsToDocument=function(e){var t=this.config.fragments;return t?t.transform(e):e},t.prototype.addTypenameToDocument=function(e){return this.addTypename?this.addTypenameTransform.transformDocument(e):e},t.prototype.broadcastWatch=function(e,t){var r=e.lastDiff,n=this.diff(e);t&&(e.optimistic&&"string"==typeof t.optimistic&&(n.fromOptimisticTransaction=!0),t.onWatchUpdated&&!1===t.onWatchUpdated.call(this,e,n,r))||r&&(0,a.D)(r.result,n.result)||e.callback(e.lastDiff=n,r)},t}(u)},80900:(e,t,r)=>{r.d(t,{B:()=>f,h:()=>l});var n=r(97582),i=r(75028),o=r(13154),a=r(30320),s=r(21436);var u,c,l=function(){function e(){this.known=new(a.sy?WeakSet:Set),this.pool=new i.B(a.mr),this.passes=new WeakMap,this.keysByJSON=new Map,this.empty=this.admit({})}return e.prototype.isKnown=function(e){return(0,o.s)(e)&&this.known.has(e)},e.prototype.pass=function(e){if((0,o.s)(e)){var t=function(e){return(0,o.s)(e)?(0,s.k)(e)?e.slice(0):(0,n.pi)({__proto__:Object.getPrototypeOf(e)},e):e}(e);return this.passes.set(t,e),t}return e},e.prototype.admit=function(e){var t=this;if((0,o.s)(e)){var r=this.passes.get(e);if(r)return r;switch(Object.getPrototypeOf(e)){case Array.prototype:if(this.known.has(e))return e;var n=e.map(this.admit,this);return(u=this.pool.lookupArray(n)).array||(this.known.add(u.array=n),!1!==globalThis.__DEV__&&Object.freeze(n)),u.array;case null:case Object.prototype:if(this.known.has(e))return e;var i=Object.getPrototypeOf(e),a=[i],s=this.sortedKeys(e);a.push(s.json);var u,c=a.length;if(s.sorted.forEach((function(r){a.push(t.admit(e[r]))})),!(u=this.pool.lookupArray(a)).object){var l=u.object=Object.create(i);this.known.add(l),s.sorted.forEach((function(e,t){l[e]=a[c+t]})),!1!==globalThis.__DEV__&&Object.freeze(l)}return u.object}}return e},e.prototype.sortedKeys=function(e){var t=Object.keys(e),r=this.pool.lookupArray(t);if(!r.keys){t.sort();var n=JSON.stringify(t);(r.keys=this.keysByJSON.get(n))||this.keysByJSON.set(n,r.keys={sorted:t,json:n})}return r.keys},e}(),f=Object.assign((function(e){if((0,o.s)(e)){void 0===u&&h();var t=u.admit(e),r=c.get(t);return void 0===r&&c.set(t,r=JSON.stringify(t)),r}return JSON.stringify(e)}),{reset:h});function h(){u=new l,c=new(a.mr?WeakMap:Map)}},66438:(e,t,r)=>{r.d(t,{QS:()=>c,_v:()=>u,ab:()=>i,li:()=>s});var n=r(9964),i=new(r(82455).g7),o=new WeakMap;function a(e){var t=o.get(e);return t||o.set(e,t={vars:new Set,dep:(0,n.dP)()}),t}function s(e){a(e).vars.forEach((function(t){return t.forgetCache(e)}))}function u(e){a(e).vars.forEach((function(t){return t.attachCache(e)}))}function c(e){var t=new Set,r=new Set,n=function(s){if(arguments.length>0){if(e!==s){e=s,t.forEach((function(e){a(e).dep.dirty(n),function(e){e.broadcastWatches&&e.broadcastWatches()}(e)}));var u=Array.from(r);r.clear(),u.forEach((function(t){return t(e)}))}}else{var c=i.getValue();c&&(o(c),a(c).dep(n))}return e};n.onNextChange=function(e){return r.add(e),function(){r.delete(e)}};var o=n.attachCache=function(e){return t.add(e),a(e).vars.add(n),n};return n.forgetCache=function(e){return t.delete(e)},n}},46322:(e,t,r)=>{r.d(t,{f:()=>Re});var n=r(97582),i=r(56961),o=r(48216);var a=r(36765);function s(e,t){return t?t(e):o.y.of()}function u(e){return"function"==typeof e?new l(e):e}function c(e){return e.request.length<=1}var l=function(){function e(e){e&&(this.request=e)}return e.empty=function(){return new e((function(){return o.y.of()}))},e.from=function(t){return 0===t.length?e.empty():t.map(u).reduce((function(e,t){return e.concat(t)}))},e.split=function(t,r,n){var i=u(r),a=u(n||new e(s));return c(i)&&c(a)?new e((function(e){return t(e)?i.request(e)||o.y.of():a.request(e)||o.y.of()})):new e((function(e,r){return t(e)?i.request(e,r)||o.y.of():a.request(e,r)||o.y.of()}))},e.execute=function(e,t){return e.request(function(e,t){var r=(0,n.pi)({},e);return Object.defineProperty(t,"setContext",{enumerable:!1,value:function(e){r="function"==typeof e?(0,n.pi)((0,n.pi)({},r),e(r)):(0,n.pi)((0,n.pi)({},r),e)}}),Object.defineProperty(t,"getContext",{enumerable:!1,value:function(){return(0,n.pi)({},r)}}),t}(t.context,function(e){var t={variables:e.variables||{},extensions:e.extensions||{},operationName:e.operationName,query:e.query};return t.operationName||(t.operationName="string"!=typeof t.query?(0,a.rY)(t.query)||void 0:""),t}(function(e){for(var t=["query","operationName","variables","extensions","context"],r=0,n=Object.keys(e);r=0;--o){var a=i[o],s=!isNaN(+a)?[]:{};s[a]=t,t=s}r=n.merge(r,t)})),r}var R=Object.prototype.hasOwnProperty;function T(e){var t={};return e.split("\n").forEach((function(e){var r=e.indexOf(":");if(r>-1){var n=e.slice(0,r).trim().toLowerCase(),i=e.slice(r+1).trim();t[n]=i}})),t}function q(e,t){if(e.status>=300){g(e,function(){try{return JSON.parse(t)}catch(e){return t}}(),"Response not successful: Received status code ".concat(e.status))}try{return JSON.parse(t)}catch(n){var r=n;throw r.name="ServerParseError",r.response=e,r.statusCode=e.status,r.bodyText=t,r}}var Q=r(73486),P=v.mr?new WeakMap:void 0,I=function(e){var t;return(t=null==P?void 0:P.get(e))||(t=(0,Q.S)(e),null==P||P.set(e,t)),t},F={http:{includeQuery:!0,includeExtensions:!1,preserveHeaderCase:!1},headers:{accept:"*/*","content-type":"application/json"},options:{method:"POST"}},x=function(e,t){return t(e)};function C(e,t){for(var r=[],i=2;i-1;){if(g=void 0,Q=[c.slice(0,m),c.slice(m+u.length)],c=Q[1],O=(g=Q[0]).indexOf("\r\n\r\n"),w=T(g.slice(0,O)),(S=w["content-type"])&&-1===S.toLowerCase().indexOf("application/json"))throw new Error("Unsupported patch content type: application/json is required.");if(_=g.slice(O))if(D=q(e,_),Object.keys(D).length>1||"data"in D||"incremental"in D||"errors"in D||"payload"in D)E(D)?(R={},"payload"in D&&(R=(0,n.pi)({},D.payload)),"errors"in D&&(R=(0,n.pi)((0,n.pi)({},R),{extensions:(0,n.pi)((0,n.pi)({},"extensions"in R?R.extensions:null),(P={},P[k.YG]=D.errors,P))})),t(R)):t(D);else if(1===Object.keys(D).length&&"hasNext"in D&&!D.hasNext)return[2];m=c.indexOf(u)}return[3,1];case 3:return[2]}}))}))}(t,a):(i=e,function(e){return e.text().then((function(t){return q(e,t)})).then((function(t){return e.status>=300&&g(e,t,"Response not successful: Received status code ".concat(e.status)),Array.isArray(t)||R.call(t,"data")||R.call(t,"errors")||g(e,t,"Server response was missing for query '".concat(Array.isArray(i)?i.map((function(e){return e.operationName})):i.operationName,"'.")),t}))})(t).then(a)})).then((function(){x=void 0,r.complete()})).catch((function(e){x=void 0,function(e,t){e.result&&e.result.errors&&e.result.data&&t.next(e.result),t.error(e)}(e,r)})),function(){x&&x.abort()}}))}))},V=function(e){function t(t){void 0===t&&(t={});var r=e.call(this,L(t).request)||this;return r.options=t,r}return(0,n.ZT)(t,e),t}(l),G=r(30020),W=r(80900),z=r(18056);function B(e,t,r){return new o.y((function(n){var i={then:function(e){return new Promise((function(t){return t(e())}))}};function o(e,t){return function(r){if(e){var o=function(){return n.closed?0:e(r)};i=i.then(o,o).then((function(e){return n.next(e)}),(function(e){return n.error(e)}))}else n[t](r)}}var a={next:o(t,"next"),error:o(r,"error"),complete:function(){i.then((function(){return n.complete()}))}},s=e.subscribe(a);return function(){return s.unsubscribe()}}))}function U(e){var t=Y(e);return(0,w.O)(t)}function Y(e){var t=(0,w.O)(e.errors)?e.errors.slice(0):[];return _(e)&&(0,w.O)(e.incremental)&&e.incremental.forEach((function(e){e.errors&&t.push.apply(t,e.errors)})),t}var J=r(51761),K=r(60897);function H(e,t,r){var n=[];e.forEach((function(e){return e[t]&&n.push(e)})),n.forEach((function(e){return e[t](r)}))}function $(e){function t(t){Object.defineProperty(e,t,{value:o.y})}return v.aS&&Symbol.species&&t(Symbol.species),t("@@species"),e}function Z(e){return e&&"function"==typeof e.then}var X=function(e){function t(t){var r=e.call(this,(function(e){return r.addObserver(e),function(){return r.removeObserver(e)}}))||this;return r.observers=new Set,r.promise=new Promise((function(e,t){r.resolve=e,r.reject=t})),r.handlers={next:function(e){null!==r.sub&&(r.latest=["next",e],r.notify("next",e),H(r.observers,"next",e))},error:function(e){var t=r.sub;null!==t&&(t&&setTimeout((function(){return t.unsubscribe()})),r.sub=null,r.latest=["error",e],r.reject(e),r.notify("error",e),H(r.observers,"error",e))},complete:function(){var e=r,t=e.sub,n=e.sources;if(null!==t){var i=(void 0===n?[]:n).shift();i?Z(i)?i.then((function(e){return r.sub=e.subscribe(r.handlers)})):r.sub=i.subscribe(r.handlers):(t&&setTimeout((function(){return t.unsubscribe()})),r.sub=null,r.latest&&"next"===r.latest[0]?r.resolve(r.latest[1]):r.resolve(),r.notify("complete"),H(r.observers,"complete"))}}},r.nextResultListeners=new Set,r.cancel=function(e){r.reject(e),r.sources=[],r.handlers.complete()},r.promise.catch((function(e){})),"function"==typeof t&&(t=[new o.y(t)]),Z(t)?t.then((function(e){return r.start(e)}),r.handlers.error):r.start(t),r}return(0,n.ZT)(t,e),t.prototype.start=function(e){void 0===this.sub&&(this.sources=Array.from(e),this.handlers.complete())},t.prototype.deliverLastMessage=function(e){if(this.latest){var t=this.latest[0],r=e[t];r&&r.call(e,this.latest[1]),null===this.sub&&"next"===t&&e.complete&&e.complete()}},t.prototype.addObserver=function(e){this.observers.has(e)||(this.deliverLastMessage(e),this.observers.add(e))},t.prototype.removeObserver=function(e){this.observers.delete(e)&&this.observers.size<1&&this.handlers.complete()},t.prototype.notify=function(e,t){var r=this.nextResultListeners;r.size&&(this.nextResultListeners=new Set,r.forEach((function(r){return r(e,t)})))},t.prototype.beforeNext=function(e){var t=!1;this.nextResultListeners.add((function(r,n){t||(t=!0,e(r,n))}))},t}(o.y);$(X);var ee=r(1644),te=r(53712),re=r(79487),ne=r(23361);function ie(e,t,r,i){var o=t.data,s=(0,n._T)(t,["data"]),u=r.data,c=(0,n._T)(r,["data"]);return(0,G.Z)(s,c)&&oe((0,a.p$)(e).selectionSet,o,u,{fragmentMap:(0,ne.F)((0,a.kU)(e)),variables:i})}function oe(e,t,r,n){if(t===r)return!0;var i=new Set;return e.selections.every((function(e){if(i.has(e))return!0;if(i.add(e),!(0,p.LZ)(e,n.variables))return!0;if(ae(e))return!0;if((0,J.My)(e)){var o=(0,J.u2)(e),a=t&&t[o],s=r&&r[o],u=e.selectionSet;if(!u)return(0,G.Z)(a,s);var c=Array.isArray(a),l=Array.isArray(s);if(c!==l)return!1;if(c&&l){var f=a.length;if(s.length!==f)return!1;for(var h=0;h0},t.prototype.tearDownQuery=function(){this.isTornDown||(this.concast&&this.observer&&(this.concast.removeObserver(this.observer),delete this.concast,delete this.observer),this.stopPolling(),this.subscriptions.forEach((function(e){return e.unsubscribe()})),this.subscriptions.clear(),this.queryManager.stopQuery(this.queryId),this.observers.clear(),this.isTornDown=!0)},t.prototype.transformDocument=function(e){return this.queryManager.transform(e)},t}(o.y);function fe(e){var t=e.options,r=t.fetchPolicy,n=t.nextFetchPolicy;return"cache-and-network"===r||"network-only"===r?e.reobserve({fetchPolicy:"cache-first",nextFetchPolicy:function(){return this.nextFetchPolicy=n,"function"==typeof n?n.apply(this,arguments):r}}):e.reobserve()}function he(e){!1!==globalThis.__DEV__&&i.kG.error(21,e.message,e.stack)}function pe(e){!1!==globalThis.__DEV__&&e&&!1!==globalThis.__DEV__&&i.kG.debug(22,e)}function de(e){return"network-only"===e||"no-cache"===e||"standby"===e}$(le);var ve=r(75844),ye=r(66438),me=function(){function e(e){var t=e.cache,r=e.client,n=e.resolvers,i=e.fragmentMatcher;this.selectionsToResolveCache=new WeakMap,this.cache=t,r&&(this.client=r),n&&this.addResolvers(n),i&&this.setFragmentMatcher(i)}return e.prototype.addResolvers=function(e){var t=this;this.resolvers=this.resolvers||{},Array.isArray(e)?e.forEach((function(e){t.resolvers=(0,S.Ee)(t.resolvers,e)})):this.resolvers=(0,S.Ee)(this.resolvers,e)},e.prototype.setResolvers=function(e){this.resolvers={},this.addResolvers(e)},e.prototype.getResolvers=function(){return this.resolvers||{}},e.prototype.runResolvers=function(e){var t=e.document,r=e.remoteResult,i=e.context,o=e.variables,a=e.onlyRunForcedResolvers,s=void 0!==a&&a;return(0,n.mG)(this,void 0,void 0,(function(){return(0,n.Jh)(this,(function(e){return t?[2,this.resolveDocument(t,r.data,i,o,this.fragmentMatcher,s).then((function(e){return(0,n.pi)((0,n.pi)({},r),{data:e.result})}))]:[2,r]}))}))},e.prototype.setFragmentMatcher=function(e){this.fragmentMatcher=e},e.prototype.getFragmentMatcher=function(){return this.fragmentMatcher},e.prototype.clientQuery=function(e){return(0,p.FS)(["client"],e)&&this.resolvers?e:null},e.prototype.serverQuery=function(e){return(0,N.ob)(e)},e.prototype.prepareContext=function(e){var t=this.cache;return(0,n.pi)((0,n.pi)({},e),{cache:t,getCacheKey:function(e){return t.identify(e)}})},e.prototype.addExportedVariables=function(e,t,r){return void 0===t&&(t={}),void 0===r&&(r={}),(0,n.mG)(this,void 0,void 0,(function(){return(0,n.Jh)(this,(function(i){return e?[2,this.resolveDocument(e,this.buildRootValueFromCache(e,t)||{},this.prepareContext(r),t).then((function(e){return(0,n.pi)((0,n.pi)({},t),e.exportedVariables)}))]:[2,(0,n.pi)({},t)]}))}))},e.prototype.shouldForceResolvers=function(e){var t=!1;return(0,M.Vn)(e,{Directive:{enter:function(e){if("client"===e.name.value&&e.arguments&&(t=e.arguments.some((function(e){return"always"===e.name.value&&"BooleanValue"===e.value.kind&&!0===e.value.value}))))return M.$_}}}),t},e.prototype.buildRootValueFromCache=function(e,t){return this.cache.diff({query:(0,N.aL)(e),variables:t,returnPartialData:!0,optimistic:!1}).result},e.prototype.resolveDocument=function(e,t,r,i,o,s){return void 0===r&&(r={}),void 0===i&&(i={}),void 0===o&&(o=function(){return!0}),void 0===s&&(s=!1),(0,n.mG)(this,void 0,void 0,(function(){var u,c,l,f,h,p,d,v,y,m;return(0,n.Jh)(this,(function(b){return u=(0,a.p$)(e),c=(0,a.kU)(e),l=(0,ne.F)(c),f=this.collectSelectionsToResolve(u,l),h=u.operation,p=h?h.charAt(0).toUpperCase()+h.slice(1):"Query",v=(d=this).cache,y=d.client,m={fragmentMap:l,context:(0,n.pi)((0,n.pi)({},r),{cache:v,client:y}),variables:i,fragmentMatcher:o,defaultOperationType:p,exportedVariables:{},selectionsToResolve:f,onlyRunForcedResolvers:s},!1,[2,this.resolveSelectionSet(u.selectionSet,false,t,m).then((function(e){return{result:e,exportedVariables:m.exportedVariables}}))]}))}))},e.prototype.resolveSelectionSet=function(e,t,r,o){return(0,n.mG)(this,void 0,void 0,(function(){var a,s,u,c,l,f=this;return(0,n.Jh)(this,(function(h){return a=o.fragmentMap,s=o.context,u=o.variables,c=[r],l=function(e){return(0,n.mG)(f,void 0,void 0,(function(){var l,f;return(0,n.Jh)(this,(function(n){return(t||o.selectionsToResolve.has(e))&&(0,p.LZ)(e,u)?(0,J.My)(e)?[2,this.resolveField(e,t,r,o).then((function(t){var r;void 0!==t&&c.push(((r={})[(0,J.u2)(e)]=t,r))}))]:((0,J.Ao)(e)?l=e:(l=a[e.name.value],(0,i.kG)(l,16,e.name.value)),l&&l.typeCondition&&(f=l.typeCondition.name.value,o.fragmentMatcher(r,f,s))?[2,this.resolveSelectionSet(l.selectionSet,t,r,o).then((function(e){c.push(e)}))]:[2]):[2]}))}))},[2,Promise.all(e.selections.map(l)).then((function(){return(0,S.bw)(c)}))]}))}))},e.prototype.resolveField=function(e,t,r,i){return(0,n.mG)(this,void 0,void 0,(function(){var o,a,s,u,c,l,f,h,p,d=this;return(0,n.Jh)(this,(function(n){return r?(o=i.variables,a=e.name.value,s=(0,J.u2)(e),u=a!==s,c=r[s]||r[a],l=Promise.resolve(c),i.onlyRunForcedResolvers&&!this.shouldForceResolvers(e)||(f=r.__typename||i.defaultOperationType,(h=this.resolvers&&this.resolvers[f])&&(p=h[u?a:s])&&(l=Promise.resolve(ye.ab.withValue(this.cache,p,[r,(0,J.NC)(e,o),i.context,{field:e,fragmentMap:i.fragmentMap}])))),[2,l.then((function(r){var n,o;if(void 0===r&&(r=c),e.directives&&e.directives.forEach((function(e){"export"===e.name.value&&e.arguments&&e.arguments.forEach((function(e){"as"===e.name.value&&"StringValue"===e.value.kind&&(i.exportedVariables[e.value.value]=r)}))})),!e.selectionSet)return r;if(null==r)return r;var a=null!==(o=null===(n=e.directives)||void 0===n?void 0:n.some((function(e){return"client"===e.name.value})))&&void 0!==o&&o;return Array.isArray(r)?d.resolveSubSelectedArray(e,t||a,r,i):e.selectionSet?d.resolveSelectionSet(e.selectionSet,t||a,r,i):void 0}))]):[2,null]}))}))},e.prototype.resolveSubSelectedArray=function(e,t,r,n){var i=this;return Promise.all(r.map((function(r){return null===r?null:Array.isArray(r)?i.resolveSubSelectedArray(e,t,r,n):e.selectionSet?i.resolveSelectionSet(e.selectionSet,t,r,n):void 0})))},e.prototype.collectSelectionsToResolve=function(e,t){var r=function(e){return!Array.isArray(e)},n=this.selectionsToResolveCache;return function e(o){if(!n.has(o)){var a=new Set;n.set(o,a),(0,M.Vn)(o,{Directive:function(e,t,n,i,o){"client"===e.name.value&&o.forEach((function(e){r(e)&&(0,ve.pO)(e)&&a.add(e)}))},FragmentSpread:function(n,o,s,u,c){var l=t[n.name.value];(0,i.kG)(l,17,n.name.value);var f=e(l);f.size>0&&(c.forEach((function(e){r(e)&&(0,ve.pO)(e)&&a.add(e)})),a.add(n),f.forEach((function(e){a.add(e)})))}})}return n.get(o)}(e)},e}(),be=new(v.mr?WeakMap:Map);function ge(e,t){var r=e[t];"function"==typeof r&&(e[t]=function(){return be.set(e,(be.get(e)+1)%1e15),r.apply(this,arguments)})}function ke(e){e.notifyTimeout&&(clearTimeout(e.notifyTimeout),e.notifyTimeout=void 0)}var Oe=function(){function e(e,t){void 0===t&&(t=e.generateQueryId()),this.queryId=t,this.listeners=new Set,this.document=null,this.lastRequestId=1,this.stopped=!1,this.dirty=!1,this.observableQuery=null;var r=this.cache=e.cache;be.has(r)||(be.set(r,0),ge(r,"evict"),ge(r,"modify"),ge(r,"reset"))}return e.prototype.init=function(e){var t=e.networkStatus||ee.Ie.loading;return this.variables&&this.networkStatus!==ee.Ie.loading&&!(0,G.D)(this.variables,e.variables)&&(t=ee.Ie.setVariables),(0,G.D)(e.variables,this.variables)||(this.lastDiff=void 0),Object.assign(this,{document:e.document,variables:e.variables,networkError:null,graphQLErrors:this.graphQLErrors||[],networkStatus:t}),e.observableQuery&&this.setObservableQuery(e.observableQuery),e.lastRequestId&&(this.lastRequestId=e.lastRequestId),this},e.prototype.reset=function(){ke(this),this.dirty=!1},e.prototype.getDiff=function(){var e=this.getDiffOptions();if(this.lastDiff&&(0,G.D)(e,this.lastDiff.options))return this.lastDiff.diff;this.updateWatch(this.variables);var t=this.observableQuery;if(t&&"no-cache"===t.options.fetchPolicy)return{complete:!1};var r=this.cache.diff(e);return this.updateLastDiff(r,e),r},e.prototype.updateLastDiff=function(e,t){this.lastDiff=e?{diff:e,options:t||this.getDiffOptions()}:void 0},e.prototype.getDiffOptions=function(e){var t;return void 0===e&&(e=this.variables),{query:this.document,variables:e,returnPartialData:!0,optimistic:!0,canonizeResults:null===(t=this.observableQuery)||void 0===t?void 0:t.options.canonizeResults}},e.prototype.setDiff=function(e){var t=this,r=this.lastDiff&&this.lastDiff.diff;this.updateLastDiff(e),this.dirty||(0,G.D)(r&&r.result,e&&e.result)||(this.dirty=!0,this.notifyTimeout||(this.notifyTimeout=setTimeout((function(){return t.notify()}),0)))},e.prototype.setObservableQuery=function(e){var t=this;e!==this.observableQuery&&(this.oqListener&&this.listeners.delete(this.oqListener),this.observableQuery=e,e?(e.queryInfo=this,this.listeners.add(this.oqListener=function(){t.getDiff().fromOptimisticTransaction?e.observe():fe(e)})):delete this.oqListener)},e.prototype.notify=function(){var e=this;ke(this),this.shouldNotify()&&this.listeners.forEach((function(t){return t(e)})),this.dirty=!1},e.prototype.shouldNotify=function(){if(!this.dirty||!this.listeners.size)return!1;if((0,ee.Oj)(this.networkStatus)&&this.observableQuery){var e=this.observableQuery.options.fetchPolicy;if("cache-only"!==e&&"cache-and-network"!==e)return!1}return!0},e.prototype.stop=function(){if(!this.stopped){this.stopped=!0,this.reset(),this.cancel(),this.cancel=e.prototype.cancel;var t=this.observableQuery;t&&t.stopPolling()}},e.prototype.cancel=function(){},e.prototype.updateWatch=function(e){var t=this;void 0===e&&(e=this.variables);var r=this.observableQuery;if(!r||"no-cache"!==r.options.fetchPolicy){var i=(0,n.pi)((0,n.pi)({},this.getDiffOptions(e)),{watcher:this,callback:function(e){return t.setDiff(e)}});this.lastWatch&&(0,G.D)(i,this.lastWatch)||(this.cancel(),this.cancel=this.cache.watch(this.lastWatch=i))}},e.prototype.resetLastWrite=function(){this.lastWrite=void 0},e.prototype.shouldWrite=function(e,t){var r=this.lastWrite;return!(r&&r.dmCount===be.get(this.cache)&&(0,G.D)(t,r.variables)&&(0,G.D)(e.data,r.result.data))},e.prototype.markResult=function(e,t,r,n){var i=this,o=new S.w0,a=(0,w.O)(e.errors)?e.errors.slice(0):[];if(this.reset(),"incremental"in e&&(0,w.O)(e.incremental)){var s=D(this.getDiff().result,e);e.data=s}else if("hasNext"in e&&e.hasNext){var u=this.getDiff();e.data=o.merge(u.result,e.data)}this.graphQLErrors=a,"no-cache"===r.fetchPolicy?this.updateLastDiff({result:e.data,complete:!0},this.getDiffOptions(r.variables)):0!==n&&(we(e,r.errorPolicy)?this.cache.performTransaction((function(o){if(i.shouldWrite(e,r.variables))o.writeQuery({query:t,data:e.data,variables:r.variables,overwrite:1===n}),i.lastWrite={result:e,variables:r.variables,dmCount:be.get(i.cache)};else if(i.lastDiff&&i.lastDiff.diff.complete)return void(e.data=i.lastDiff.diff.result);var a=i.getDiffOptions(r.variables),s=o.diff(a);!i.stopped&&(0,G.D)(i.variables,r.variables)&&i.updateWatch(r.variables),i.updateLastDiff(s,a),s.complete&&(e.data=s.result)})):this.lastWrite=void 0)},e.prototype.markReady=function(){return this.networkError=null,this.networkStatus=ee.Ie.ready},e.prototype.markError=function(e){return this.networkStatus=ee.Ie.error,this.lastWrite=void 0,this.reset(),e.graphQLErrors&&(this.graphQLErrors=e.graphQLErrors),e.networkError&&(this.networkError=e.networkError),e},e}();function we(e,t){void 0===t&&(t="none");var r="ignore"===t||"all"===t,n=!U(e);return!n&&r&&e.data&&(n=!0),n}var Se=Object.prototype.hasOwnProperty,_e=function(){function e(e){var t=this,r=e.cache,n=e.link,i=e.defaultOptions,o=e.documentTransform,a=e.queryDeduplication,s=void 0!==a&&a,u=e.onBroadcast,c=e.ssrMode,l=void 0!==c&&c,f=e.clientAwareness,h=void 0===f?{}:f,p=e.localState,d=e.assumeImmutableResults,y=void 0===d?!!r.assumeImmutableResults:d;this.clientAwareness={},this.queries=new Map,this.fetchCancelFns=new Map,this.transformCache=new(v.mr?WeakMap:Map),this.queryIdCounter=1,this.requestIdCounter=1,this.mutationIdCounter=1,this.inFlightLinkObservables=new Map;var m=new z.A((function(e){return t.cache.transformDocument(e)}),{cache:!1});this.cache=r,this.link=n,this.defaultOptions=i||Object.create(null),this.queryDeduplication=s,this.clientAwareness=h,this.localState=p||new me({cache:r}),this.ssrMode=l,this.assumeImmutableResults=y,this.documentTransform=o?m.concat(o).concat(m):m,(this.onBroadcast=u)&&(this.mutationStore=Object.create(null))}return e.prototype.stop=function(){var e=this;this.queries.forEach((function(t,r){e.stopQueryNoBroadcast(r)})),this.cancelPendingFetches((0,i._K)(23))},e.prototype.cancelPendingFetches=function(e){this.fetchCancelFns.forEach((function(t){return t(e)})),this.fetchCancelFns.clear()},e.prototype.mutate=function(e){var t,r,o=e.mutation,a=e.variables,s=e.optimisticResponse,u=e.updateQueries,c=e.refetchQueries,l=void 0===c?[]:c,f=e.awaitRefetchQueries,h=void 0!==f&&f,p=e.update,d=e.onQueryUpdated,v=e.fetchPolicy,y=void 0===v?(null===(t=this.defaultOptions.mutate)||void 0===t?void 0:t.fetchPolicy)||"network-only":v,m=e.errorPolicy,b=void 0===m?(null===(r=this.defaultOptions.mutate)||void 0===r?void 0:r.errorPolicy)||"none":m,g=e.keepRootFields,O=e.context;return(0,n.mG)(this,void 0,void 0,(function(){var e,t,r,c;return(0,n.Jh)(this,(function(f){switch(f.label){case 0:return(0,i.kG)(o,24),(0,i.kG)("network-only"===y||"no-cache"===y,25),e=this.generateMutationId(),o=this.cache.transformForLink(this.transform(o)),t=this.getDocumentInfo(o).hasClientExports,a=this.getVariables(o,a),t?[4,this.localState.addExportedVariables(o,a,O)]:[3,2];case 1:a=f.sent(),f.label=2;case 2:return r=this.mutationStore&&(this.mutationStore[e]={mutation:o,variables:a,loading:!0,error:null}),s&&this.markMutationOptimistic(s,{mutationId:e,document:o,variables:a,fetchPolicy:y,errorPolicy:b,context:O,updateQueries:u,update:p,keepRootFields:g}),this.broadcastQueries(),c=this,[2,new Promise((function(t,i){return B(c.getObservableFromLink(o,(0,n.pi)((0,n.pi)({},O),{optimisticResponse:s}),a,!1),(function(t){if(U(t)&&"none"===b)throw new k.cA({graphQLErrors:Y(t)});r&&(r.loading=!1,r.error=null);var i=(0,n.pi)({},t);return"function"==typeof l&&(l=l(i)),"ignore"===b&&U(i)&&delete i.errors,c.markMutationResult({mutationId:e,result:i,document:o,variables:a,fetchPolicy:y,errorPolicy:b,context:O,update:p,updateQueries:u,awaitRefetchQueries:h,refetchQueries:l,removeOptimistic:s?e:void 0,onQueryUpdated:d,keepRootFields:g})})).subscribe({next:function(e){c.broadcastQueries(),"hasNext"in e&&!1!==e.hasNext||t(e)},error:function(t){r&&(r.loading=!1,r.error=t),s&&c.cache.removeOptimistic(e),c.broadcastQueries(),i(t instanceof k.cA?t:new k.cA({networkError:t}))}})}))]}}))}))},e.prototype.markMutationResult=function(e,t){var r=this;void 0===t&&(t=this.cache);var i=e.result,o=[],s="no-cache"===e.fetchPolicy;if(!s&&we(i,e.errorPolicy)){if(_(i)||o.push({result:i.data,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables}),_(i)&&(0,w.O)(i.incremental)){var u=t.diff({id:"ROOT_MUTATION",query:this.getDocumentInfo(e.document).asQuery,variables:e.variables,optimistic:!1,returnPartialData:!0}),c=void 0;u.result&&(c=D(u.result,i)),void 0!==c&&(i.data=c,o.push({result:c,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables}))}var l=e.updateQueries;l&&this.queries.forEach((function(e,n){var s=e.observableQuery,u=s&&s.queryName;if(u&&Se.call(l,u)){var c=l[u],f=r.queries.get(n),h=f.document,p=f.variables,d=t.diff({query:h,variables:p,returnPartialData:!0,optimistic:!1}),v=d.result;if(d.complete&&v){var y=c(v,{mutationResult:i,queryName:h&&(0,a.rY)(h)||void 0,queryVariables:p});y&&o.push({result:y,dataId:"ROOT_QUERY",query:h,variables:p})}}}))}if(o.length>0||e.refetchQueries||e.update||e.onQueryUpdated||e.removeOptimistic){var f=[];if(this.refetchQueries({updateCache:function(t){s||o.forEach((function(e){return t.write(e)}));var a,u=e.update,c=!(_(a=i)||function(e){return"hasNext"in e&&"data"in e}(a))||_(i)&&!i.hasNext;if(u){if(!s){var l=t.diff({id:"ROOT_MUTATION",query:r.getDocumentInfo(e.document).asQuery,variables:e.variables,optimistic:!1,returnPartialData:!0});l.complete&&("incremental"in(i=(0,n.pi)((0,n.pi)({},i),{data:l.result}))&&delete i.incremental,"hasNext"in i&&delete i.hasNext)}c&&u(t,i,{context:e.context,variables:e.variables})}s||e.keepRootFields||!c||t.modify({id:"ROOT_MUTATION",fields:function(e,t){var r=t.fieldName,n=t.DELETE;return"__typename"===r?e:n}})},include:e.refetchQueries,optimistic:!1,removeOptimistic:e.removeOptimistic,onQueryUpdated:e.onQueryUpdated||null}).forEach((function(e){return f.push(e)})),e.awaitRefetchQueries||e.onQueryUpdated)return Promise.all(f).then((function(){return i}))}return Promise.resolve(i)},e.prototype.markMutationOptimistic=function(e,t){var r=this,o="function"==typeof e?e(t.variables):e;return this.cache.recordOptimisticTransaction((function(e){try{r.markMutationResult((0,n.pi)((0,n.pi)({},t),{result:{data:o}}),e)}catch(e){!1!==globalThis.__DEV__&&i.kG.error(e)}}),t.mutationId)},e.prototype.fetchQuery=function(e,t,r){return this.fetchConcastWithInfo(e,t,r).concast.promise},e.prototype.getQueryStore=function(){var e=Object.create(null);return this.queries.forEach((function(t,r){e[r]={variables:t.variables,networkStatus:t.networkStatus,networkError:t.networkError,graphQLErrors:t.graphQLErrors}})),e},e.prototype.resetErrors=function(e){var t=this.queries.get(e);t&&(t.networkError=void 0,t.graphQLErrors=[])},e.prototype.transform=function(e){return this.documentTransform.transformDocument(e)},e.prototype.getDocumentInfo=function(e){var t=this.transformCache;if(!t.has(e)){var r={hasClientExports:(0,p.mj)(e),hasForcedResolvers:this.localState.shouldForceResolvers(e),hasNonreactiveDirective:(0,p.FS)(["nonreactive"],e),clientQuery:this.localState.clientQuery(e),serverQuery:(0,N.bi)([{name:"client",remove:!0},{name:"connection"},{name:"nonreactive"}],e),defaultVars:(0,a.O4)((0,a.$H)(e)),asQuery:(0,n.pi)((0,n.pi)({},e),{definitions:e.definitions.map((function(e){return"OperationDefinition"===e.kind&&"query"!==e.operation?(0,n.pi)((0,n.pi)({},e),{operation:"query"}):e}))})};t.set(e,r)}return t.get(e)},e.prototype.getVariables=function(e,t){return(0,n.pi)((0,n.pi)({},this.getDocumentInfo(e).defaultVars),t)},e.prototype.watchQuery=function(e){var t=this.transform(e.query);void 0===(e=(0,n.pi)((0,n.pi)({},e),{variables:this.getVariables(t,e.variables)})).notifyOnNetworkStatusChange&&(e.notifyOnNetworkStatusChange=!1);var r=new Oe(this),i=new le({queryManager:this,queryInfo:r,options:e});return i.lastQuery=t,this.queries.set(i.queryId,r),r.init({document:t,observableQuery:i,variables:i.variables}),i},e.prototype.query=function(e,t){var r=this;return void 0===t&&(t=this.generateQueryId()),(0,i.kG)(e.query,26),(0,i.kG)("Document"===e.query.kind,27),(0,i.kG)(!e.returnPartialData,28),(0,i.kG)(!e.pollInterval,29),this.fetchQuery(t,(0,n.pi)((0,n.pi)({},e),{query:this.transform(e.query)})).finally((function(){return r.stopQuery(t)}))},e.prototype.generateQueryId=function(){return String(this.queryIdCounter++)},e.prototype.generateRequestId=function(){return this.requestIdCounter++},e.prototype.generateMutationId=function(){return String(this.mutationIdCounter++)},e.prototype.stopQueryInStore=function(e){this.stopQueryInStoreNoBroadcast(e),this.broadcastQueries()},e.prototype.stopQueryInStoreNoBroadcast=function(e){var t=this.queries.get(e);t&&t.stop()},e.prototype.clearStore=function(e){return void 0===e&&(e={discardWatches:!0}),this.cancelPendingFetches((0,i._K)(30)),this.queries.forEach((function(e){e.observableQuery?e.networkStatus=ee.Ie.loading:e.stop()})),this.mutationStore&&(this.mutationStore=Object.create(null)),this.cache.reset(e)},e.prototype.getObservableQueries=function(e){var t=this;void 0===e&&(e="active");var r=new Map,o=new Map,a=new Set;return Array.isArray(e)&&e.forEach((function(e){"string"==typeof e?o.set(e,!1):(0,J.JW)(e)?o.set(t.transform(e),!1):(0,O.s)(e)&&e.query&&a.add(e)})),this.queries.forEach((function(t,n){var i=t.observableQuery,a=t.document;if(i){if("all"===e)return void r.set(n,i);var s=i.queryName;if("standby"===i.options.fetchPolicy||"active"===e&&!i.hasObservers())return;("active"===e||s&&o.has(s)||a&&o.has(a))&&(r.set(n,i),s&&o.set(s,!0),a&&o.set(a,!0))}})),a.size&&a.forEach((function(e){var o=(0,K.X)("legacyOneTimeQuery"),a=t.getQuery(o).init({document:e.query,variables:e.variables}),s=new le({queryManager:t,queryInfo:a,options:(0,n.pi)((0,n.pi)({},e),{fetchPolicy:"network-only"})});(0,i.kG)(s.queryId===o),a.setObservableQuery(s),r.set(o,s)})),!1!==globalThis.__DEV__&&o.size&&o.forEach((function(e,t){e||!1!==globalThis.__DEV__&&i.kG.warn("string"==typeof t?31:32,t)})),r},e.prototype.reFetchObservableQueries=function(e){var t=this;void 0===e&&(e=!1);var r=[];return this.getObservableQueries(e?"all":"active").forEach((function(n,i){var o=n.options.fetchPolicy;n.resetLastResults(),(e||"standby"!==o&&"cache-only"!==o)&&r.push(n.refetch()),t.getQuery(i).setDiff(null)})),this.broadcastQueries(),Promise.all(r)},e.prototype.setObservableQuery=function(e){this.getQuery(e.queryId).setObservableQuery(e)},e.prototype.startGraphQLSubscription=function(e){var t=this,r=e.query,n=e.fetchPolicy,i=e.errorPolicy,a=void 0===i?"none":i,s=e.variables,u=e.context,c=void 0===u?{}:u;r=this.transform(r),s=this.getVariables(r,s);var l=function(e){return t.getObservableFromLink(r,c,e).map((function(i){"no-cache"!==n&&(we(i,a)&&t.cache.write({query:r,result:i.data,dataId:"ROOT_SUBSCRIPTION",variables:e}),t.broadcastQueries());var o=U(i),s=(0,k.ls)(i);if(o||s){var u={};if(o&&(u.graphQLErrors=i.errors),s&&(u.protocolErrors=i.extensions[k.YG]),"none"===a||s)throw new k.cA(u)}return"ignore"===a&&delete i.errors,i}))};if(this.getDocumentInfo(r).hasClientExports){var f=this.localState.addExportedVariables(r,s,c).then(l);return new o.y((function(e){var t=null;return f.then((function(r){return t=r.subscribe(e)}),e.error),function(){return t&&t.unsubscribe()}}))}return l(s)},e.prototype.stopQuery=function(e){this.stopQueryNoBroadcast(e),this.broadcastQueries()},e.prototype.stopQueryNoBroadcast=function(e){this.stopQueryInStoreNoBroadcast(e),this.removeQuery(e)},e.prototype.removeQuery=function(e){this.fetchCancelFns.delete(e),this.queries.has(e)&&(this.getQuery(e).stop(),this.queries.delete(e))},e.prototype.broadcastQueries=function(){this.onBroadcast&&this.onBroadcast(),this.queries.forEach((function(e){return e.notify()}))},e.prototype.getLocalState=function(){return this.localState},e.prototype.getObservableFromLink=function(e,t,r,i){var s,u,c=this;void 0===i&&(i=null!==(s=null==t?void 0:t.queryDeduplication)&&void 0!==s?s:this.queryDeduplication);var l=this.getDocumentInfo(e),h=l.serverQuery,p=l.clientQuery;if(h){var d=this.inFlightLinkObservables,v=this.link,y={query:h,variables:r,operationName:(0,a.rY)(h)||void 0,context:this.prepareContext((0,n.pi)((0,n.pi)({},t),{forceFetch:!i}))};if(t=y.context,i){var m=I(h),b=d.get(m)||new Map;d.set(m,b);var g=(0,W.B)(r);if(!(u=b.get(g))){var k=new X([f(v,y)]);b.set(g,u=k),k.beforeNext((function(){b.delete(g)&&b.size<1&&d.delete(m)}))}}else u=new X([f(v,y)])}else u=new X([o.y.of({data:{}})]),t=this.prepareContext(t);return p&&(u=B(u,(function(e){return c.localState.runResolvers({document:p,remoteResult:e,context:t,variables:r})}))),u},e.prototype.getResultsFromLink=function(e,t,r){var n=e.lastRequestId=this.generateRequestId(),i=this.cache.transformForLink(r.query);return B(this.getObservableFromLink(i,r.context,r.variables),(function(o){var a=Y(o),s=a.length>0;if(n>=e.lastRequestId){if(s&&"none"===r.errorPolicy)throw e.markError(new k.cA({graphQLErrors:a}));e.markResult(o,i,r,t),e.markReady()}var u={data:o.data,loading:!1,networkStatus:ee.Ie.ready};return s&&"ignore"!==r.errorPolicy&&(u.errors=a,u.networkStatus=ee.Ie.error),u}),(function(t){var r=(0,k.MS)(t)?t:new k.cA({networkError:t});throw n>=e.lastRequestId&&e.markError(r),r}))},e.prototype.fetchConcastWithInfo=function(e,t,r,n){var i=this;void 0===r&&(r=ee.Ie.loading),void 0===n&&(n=t.query);var o,a,s=this.getVariables(n,t.variables),u=this.getQuery(e),c=this.defaultOptions.watchQuery,l=t.fetchPolicy,f=void 0===l?c&&c.fetchPolicy||"cache-first":l,h=t.errorPolicy,p=void 0===h?c&&c.errorPolicy||"none":h,d=t.returnPartialData,v=void 0!==d&&d,y=t.notifyOnNetworkStatusChange,m=void 0!==y&&y,b=t.context,g=void 0===b?{}:b,k=Object.assign({},t,{query:n,variables:s,fetchPolicy:f,errorPolicy:p,returnPartialData:v,notifyOnNetworkStatusChange:m,context:g}),O=function(e){k.variables=e;var n=i.fetchQueryByPolicy(u,k,r);return"standby"!==k.fetchPolicy&&n.sources.length>0&&u.observableQuery&&u.observableQuery.applyNextFetchPolicy("after-fetch",t),n},w=function(){return i.fetchCancelFns.delete(e)};if(this.fetchCancelFns.set(e,(function(e){w(),setTimeout((function(){return o.cancel(e)}))})),this.getDocumentInfo(k.query).hasClientExports)o=new X(this.localState.addExportedVariables(k.query,k.variables,k.context).then(O).then((function(e){return e.sources}))),a=!0;else{var S=O(k.variables);a=S.fromLink,o=new X(S.sources)}return o.promise.then(w,w),{concast:o,fromLink:a}},e.prototype.refetchQueries=function(e){var t=this,r=e.updateCache,n=e.include,i=e.optimistic,o=void 0!==i&&i,a=e.removeOptimistic,s=void 0===a?o?(0,K.X)("refetchQueries"):void 0:a,u=e.onQueryUpdated,c=new Map;n&&this.getObservableQueries(n).forEach((function(e,r){c.set(r,{oq:e,lastDiff:t.getQuery(r).getDiff()})}));var l=new Map;return r&&this.cache.batch({update:r,optimistic:o&&s||!1,removeOptimistic:s,onWatchUpdated:function(e,t,r){var n=e.watcher instanceof Oe&&e.watcher.observableQuery;if(n){if(u){c.delete(n.queryId);var i=u(n,t,r);return!0===i&&(i=n.refetch()),!1!==i&&l.set(n,i),i}null!==u&&c.set(n.queryId,{oq:n,lastDiff:r,diff:t})}}}),c.size&&c.forEach((function(e,r){var n,i=e.oq,o=e.lastDiff,a=e.diff;if(u){if(!a){var s=i.queryInfo;s.reset(),a=s.getDiff()}n=u(i,a,o)}u&&!0!==n||(n=i.refetch()),!1!==n&&l.set(i,n),r.indexOf("legacyOneTimeQuery")>=0&&t.stopQueryNoBroadcast(r)})),s&&this.cache.removeOptimistic(s),l},e.prototype.fetchQueryByPolicy=function(e,t,r){var i=this,a=t.query,s=t.variables,u=t.fetchPolicy,c=t.refetchWritePolicy,l=t.errorPolicy,f=t.returnPartialData,h=t.context,p=t.notifyOnNetworkStatusChange,d=e.networkStatus;e.init({document:a,variables:s,networkStatus:r});var v=function(){return e.getDiff()},y=function(t,r){void 0===r&&(r=e.networkStatus||ee.Ie.loading);var u=t.result;!1===globalThis.__DEV__||f||(0,G.D)(u,{})||pe(t.missing);var c=function(e){return o.y.of((0,n.pi)({data:e,loading:(0,ee.Oj)(r),networkStatus:r},t.complete?null:{partial:!0}))};return u&&i.getDocumentInfo(a).hasForcedResolvers?i.localState.runResolvers({document:a,remoteResult:{data:u},context:h,variables:s,onlyRunForcedResolvers:!0}).then((function(e){return c(e.data||void 0)})):"none"===l&&r===ee.Ie.refetch&&Array.isArray(t.missing)?c(void 0):c(u)},m="no-cache"===u?0:r===ee.Ie.refetch&&"merge"!==c?1:2,b=function(){return i.getResultsFromLink(e,m,{query:a,variables:s,context:h,fetchPolicy:u,errorPolicy:l})},g=p&&"number"==typeof d&&d!==r&&(0,ee.Oj)(r);switch(u){default:case"cache-first":return(k=v()).complete?{fromLink:!1,sources:[y(k,e.markReady())]}:f||g?{fromLink:!0,sources:[y(k),b()]}:{fromLink:!0,sources:[b()]};case"cache-and-network":var k;return(k=v()).complete||f||g?{fromLink:!0,sources:[y(k),b()]}:{fromLink:!0,sources:[b()]};case"cache-only":return{fromLink:!1,sources:[y(v(),e.markReady())]};case"network-only":return g?{fromLink:!0,sources:[y(v()),b()]}:{fromLink:!0,sources:[b()]};case"no-cache":return g?{fromLink:!0,sources:[y(e.getDiff()),b()]}:{fromLink:!0,sources:[b()]};case"standby":return{fromLink:!1,sources:[]}}},e.prototype.getQuery=function(e){return e&&!this.queries.has(e)&&this.queries.set(e,new Oe(this,e)),this.queries.get(e)},e.prototype.prepareContext=function(e){void 0===e&&(e={});var t=this.localState.prepareContext(e);return(0,n.pi)((0,n.pi)({},t),{clientAwareness:this.clientAwareness})},e}(),Ee=r(14012),De=!1,Re=function(){function e(e){var t=this;if(this.resetStoreCallbacks=[],this.clearStoreCallbacks=[],!e.cache)throw(0,i._K)(13);var r=e.uri,n=e.credentials,o=e.headers,a=e.cache,s=e.documentTransform,u=e.ssrMode,c=void 0!==u&&u,f=e.ssrForceFetchDelay,p=void 0===f?0:f,d=e.connectToDevTools,v=void 0===d?"object"==typeof window&&!window.__APOLLO_CLIENT__&&!1!==globalThis.__DEV__:d,y=e.queryDeduplication,m=void 0===y||y,b=e.defaultOptions,g=e.assumeImmutableResults,k=void 0===g?a.assumeImmutableResults:g,O=e.resolvers,w=e.typeDefs,S=e.fragmentMatcher,_=e.name,E=e.version,D=e.link;D||(D=r?new V({uri:r,credentials:n,headers:o}):l.empty()),this.link=D,this.cache=a,this.disableNetworkFetches=c||p>0,this.queryDeduplication=m,this.defaultOptions=b||Object.create(null),this.typeDefs=w,p&&setTimeout((function(){return t.disableNetworkFetches=!1}),p),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),this.version=h.i,this.localState=new me({cache:a,client:this,resolvers:O,fragmentMatcher:S}),this.queryManager=new _e({cache:this.cache,link:this.link,defaultOptions:this.defaultOptions,documentTransform:s,queryDeduplication:m,ssrMode:c,clientAwareness:{name:_,version:E},localState:this.localState,assumeImmutableResults:k,onBroadcast:v?function(){t.devToolsHookCb&&t.devToolsHookCb({action:{},state:{queries:t.queryManager.getQueryStore(),mutations:t.queryManager.mutationStore||{}},dataWithOptimisticResults:t.cache.extract(!0)})}:void 0}),v&&this.connectToDevTools()}return e.prototype.connectToDevTools=function(){if("object"==typeof window){var e=window,t=Symbol.for("apollo.devtools");(e[t]=e[t]||[]).push(this),e.__APOLLO_CLIENT__=this}De||!1===globalThis.__DEV__||(De=!0,setTimeout((function(){if("undefined"!=typeof window&&window.document&&window.top===window.self&&!window.__APOLLO_DEVTOOLS_GLOBAL_HOOK__){var e=window.navigator,t=e&&e.userAgent,r=void 0;"string"==typeof t&&(t.indexOf("Chrome/")>-1?r="https://chrome.google.com/webstore/detail/apollo-client-developer-t/jdkknkkbebbapilgoeccciglkfbmbnfm":t.indexOf("Firefox/")>-1&&(r="https://addons.mozilla.org/en-US/firefox/addon/apollo-developer-tools/")),r&&!1!==globalThis.__DEV__&&i.kG.log("Download the Apollo DevTools for a better development experience: %s",r)}}),1e4))},Object.defineProperty(e.prototype,"documentTransform",{get:function(){return this.queryManager.documentTransform},enumerable:!1,configurable:!0}),e.prototype.stop=function(){this.queryManager.stop()},e.prototype.watchQuery=function(e){return this.defaultOptions.watchQuery&&(e=(0,Ee.J)(this.defaultOptions.watchQuery,e)),!this.disableNetworkFetches||"network-only"!==e.fetchPolicy&&"cache-and-network"!==e.fetchPolicy||(e=(0,n.pi)((0,n.pi)({},e),{fetchPolicy:"cache-first"})),this.queryManager.watchQuery(e)},e.prototype.query=function(e){return this.defaultOptions.query&&(e=(0,Ee.J)(this.defaultOptions.query,e)),(0,i.kG)("cache-and-network"!==e.fetchPolicy,14),this.disableNetworkFetches&&"network-only"===e.fetchPolicy&&(e=(0,n.pi)((0,n.pi)({},e),{fetchPolicy:"cache-first"})),this.queryManager.query(e)},e.prototype.mutate=function(e){return this.defaultOptions.mutate&&(e=(0,Ee.J)(this.defaultOptions.mutate,e)),this.queryManager.mutate(e)},e.prototype.subscribe=function(e){return this.queryManager.startGraphQLSubscription(e)},e.prototype.readQuery=function(e,t){return void 0===t&&(t=!1),this.cache.readQuery(e,t)},e.prototype.readFragment=function(e,t){return void 0===t&&(t=!1),this.cache.readFragment(e,t)},e.prototype.writeQuery=function(e){var t=this.cache.writeQuery(e);return!1!==e.broadcast&&this.queryManager.broadcastQueries(),t},e.prototype.writeFragment=function(e){var t=this.cache.writeFragment(e);return!1!==e.broadcast&&this.queryManager.broadcastQueries(),t},e.prototype.__actionHookForDevTools=function(e){this.devToolsHookCb=e},e.prototype.__requestRaw=function(e){return f(this.link,e)},e.prototype.resetStore=function(){var e=this;return Promise.resolve().then((function(){return e.queryManager.clearStore({discardWatches:!1})})).then((function(){return Promise.all(e.resetStoreCallbacks.map((function(e){return e()})))})).then((function(){return e.reFetchObservableQueries()}))},e.prototype.clearStore=function(){var e=this;return Promise.resolve().then((function(){return e.queryManager.clearStore({discardWatches:!0})})).then((function(){return Promise.all(e.clearStoreCallbacks.map((function(e){return e()})))}))},e.prototype.onResetStore=function(e){var t=this;return this.resetStoreCallbacks.push(e),function(){t.resetStoreCallbacks=t.resetStoreCallbacks.filter((function(t){return t!==e}))}},e.prototype.onClearStore=function(e){var t=this;return this.clearStoreCallbacks.push(e),function(){t.clearStoreCallbacks=t.clearStoreCallbacks.filter((function(t){return t!==e}))}},e.prototype.reFetchObservableQueries=function(e){return this.queryManager.reFetchObservableQueries(e)},e.prototype.refetchQueries=function(e){var t=this.queryManager.refetchQueries(e),r=[],n=[];t.forEach((function(e,t){r.push(t),n.push(e)}));var o=Promise.all(n);return o.queries=r,o.results=n,o.catch((function(e){!1!==globalThis.__DEV__&&i.kG.debug(15,e)})),o},e.prototype.getObservableQueries=function(e){return void 0===e&&(e="active"),this.queryManager.getObservableQueries(e)},e.prototype.extract=function(e){return this.cache.extract(e)},e.prototype.restore=function(e){return this.cache.restore(e)},e.prototype.addResolvers=function(e){this.localState.addResolvers(e)},e.prototype.setResolvers=function(e){this.localState.setResolvers(e)},e.prototype.getResolvers=function(){return this.localState.getResolvers()},e.prototype.setLocalStateFragmentMatcher=function(e){this.localState.setFragmentMatcher(e)},e.prototype.setLink=function(e){this.link=this.queryManager.link=e},e}()},1644:(e,t,r)=>{var n;function i(e){return!!e&&e<7}r.d(t,{Ie:()=>n,Oj:()=>i}),function(e){e[e.loading=1]="loading",e[e.setVariables=2]="setVariables",e[e.fetchMore=3]="fetchMore",e[e.refetch=4]="refetch",e[e.poll=6]="poll",e[e.ready=7]="ready",e[e.error=8]="error"}(n||(n={}))},30990:(e,t,r)=>{r.d(t,{MS:()=>s,YG:()=>o,cA:()=>u,ls:()=>a});var n=r(97582),i=(r(56961),r(13154)),o=Symbol();function a(e){return!!e.extensions&&Array.isArray(e.extensions[o])}function s(e){return e.hasOwnProperty("graphQLErrors")}var u=function(e){function t(r){var o,a,s=r.graphQLErrors,u=r.protocolErrors,c=r.clientErrors,l=r.networkError,f=r.errorMessage,h=r.extraInfo,p=e.call(this,f)||this;return p.name="ApolloError",p.graphQLErrors=s||[],p.protocolErrors=u||[],p.clientErrors=c||[],p.networkError=l||null,p.message=f||(o=p,a=(0,n.ev)((0,n.ev)((0,n.ev)([],o.graphQLErrors,!0),o.clientErrors,!0),o.protocolErrors,!0),o.networkError&&a.push(o.networkError),a.map((function(e){return(0,i.s)(e)&&e.message||"Error message not found."})).join("\n")),p.extraInfo=h,p.__proto__=t.prototype,p}return(0,n.ZT)(t,e),t}(Error)},85317:(e,t,r)=>{r.d(t,{K:()=>s});var n=r(67294),i=r(30320),o=r(56961),a=i.aS?Symbol.for("__APOLLO_CONTEXT__"):"__APOLLO_CONTEXT__";function s(){(0,o.kG)(!0,43);var e=n.createContext[a];return e||(Object.defineProperty(n.createContext,a,{value:e=n.createContext({}),enumerable:!1,writable:!1,configurable:!0}),e.displayName="ApolloContext"),e}},53768:(e,t,r)=>{r.d(t,{e:()=>s});var n=r(97582),i=r(56961),o=r(67294),a=r(85317),s=function(e){var t=e.client,r=e.children,s=(0,a.K)(),u=o.useContext(s),c=o.useMemo((function(){return(0,n.pi)((0,n.pi)({},u),{client:t||u.client})}),[u,t]);return(0,i.kG)(c.client,44),o.createElement(s.Provider,{value:c},r)}},26138:(e,t,r)=>{r.d(t,{a:()=>_});var n=r(97582),i=r(56961),o=r(67294),a=r.t(o,2),s=r(30320),u=!1,c=a.useSyncExternalStore||function(e,t,r){var n=t();!1===globalThis.__DEV__||u||n===t()||(u=!0,!1!==globalThis.__DEV__&&i.kG.error(56));var a=o.useState({inst:{value:n,getSnapshot:t}}),c=a[0].inst,f=a[1];return s.JC?o.useLayoutEffect((function(){Object.assign(c,{value:n,getSnapshot:t}),l(c)&&f({inst:c})}),[e,n,t]):Object.assign(c,{value:n,getSnapshot:t}),o.useEffect((function(){return l(c)&&f({inst:c}),e((function(){l(c)&&f({inst:c})}))}),[e]),n};function l(e){var t=e.value,r=e.getSnapshot;try{return t!==r()}catch(e){return!0}}var f,h=r(30020),p=r(14012),d=r(85317),v=r(30990),y=r(1644);!function(e){e[e.Query=0]="Query",e[e.Mutation=1]="Mutation",e[e.Subscription=2]="Subscription"}(f||(f={}));var m=new Map;function b(e){var t;switch(e){case f.Query:t="Query";break;case f.Mutation:t="Mutation";break;case f.Subscription:t="Subscription"}return t}function g(e,t){var r=function(e){var t,r,n=m.get(e);if(n)return n;(0,i.kG)(!!e&&!!e.kind,57,e);for(var o=[],a=[],s=[],u=[],c=0,l=e.definitions;c{r.d(t,{O:()=>i,k:()=>n});var n=Array.isArray;function i(e){return Array.isArray(e)&&e.length>0}},30320:(e,t,r)=>{r.d(t,{DN:()=>s,JC:()=>l,aS:()=>a,mr:()=>i,sy:()=>o});var n=r(56961),i="function"==typeof WeakMap&&"ReactNative"!==(0,n.wY)((function(){return navigator.product})),o="function"==typeof WeakSet,a="function"==typeof Symbol&&"function"==typeof Symbol.for,s=a&&Symbol.asyncIterator,u="function"==typeof(0,n.wY)((function(){return window.document.createElement})),c=(0,n.wY)((function(){return navigator.userAgent.indexOf("jsdom")>=0}))||!1,l=u&&!c},79487:(e,t,r)=>{r.d(t,{X:()=>i});var n=Object.prototype.toString;function i(e){return o(e)}function o(e,t){switch(n.call(e)){case"[object Array]":if((t=t||new Map).has(e))return t.get(e);var r=e.slice(0);return t.set(e,r),r.forEach((function(e,n){r[n]=o(e,t)})),r;case"[object Object]":if((t=t||new Map).has(e))return t.get(e);var i=Object.create(Object.getPrototypeOf(e));return t.set(e,i),Object.keys(e).forEach((function(r){i[r]=o(e[r],t)})),i;default:return e}}},53712:(e,t,r)=>{function n(){for(var e=[],t=0;tn})},60897:(e,t,r)=>{r.d(t,{X:()=>i});var n=new Map;function i(e){var t=n.get(e)||1;return n.set(e,t+1),"".concat(e,":").concat(t,":").concat(Math.random().toString(36).slice(2))}},48702:(e,t,r)=>{r.d(t,{J:()=>o});var n=r(13154);function i(e){var t=new Set([e]);return t.forEach((function(e){(0,n.s)(e)&&function(e){if(!1!==globalThis.__DEV__&&!Object.isFrozen(e))try{Object.freeze(e)}catch(e){if(e instanceof TypeError)return null;throw e}return e}(e)===e&&Object.getOwnPropertyNames(e).forEach((function(r){(0,n.s)(e[r])&&t.add(e[r])}))})),e}function o(e){return!1!==globalThis.__DEV__&&i(e),e}},182:(e,t,r)=>{r.d(t,{Ee:()=>a,bw:()=>s,w0:()=>c});var n=r(97582),i=r(13154),o=Object.prototype.hasOwnProperty;function a(){for(var e=[],t=0;t1)for(var n=new c,i=1;i{r.d(t,{J:()=>o});var n=r(97582),i=r(53712);function o(e,t){return(0,i.o)(e,t,t.variables&&{variables:(0,i.o)((0,n.pi)((0,n.pi)({},e&&e.variables),t.variables))})}},13154:(e,t,r)=>{function n(e){return null!==e&&"object"==typeof e}r.d(t,{s:()=>n})},13887:(e,t,r)=>{r.d(t,{v:()=>i});var n=r(60897);function i(e,t){void 0===t&&(t=0);var r=(0,n.X)("stringifyForDisplay");return JSON.stringify(e,(function(e,t){return void 0===t?r:t}),t).split(JSON.stringify(r)).join("")}},56961:(e,t,r)=>{r.d(t,{kG:()=>c,wY:()=>o,_K:()=>l});var n=r(66128),i=r(49379);function o(e){try{return e()}catch(e){}}const a=o((function(){return globalThis}))||o((function(){return window}))||o((function(){return self}))||o((function(){return global}))||o((function(){return o.constructor("return this")()}));var s=r(13887);function u(e){return function(t){for(var r=[],n=1;n{r.d(t,{A:()=>u});var n=r(75028),i=r(30320),o=r(36765),a=r(56961);function s(e){return e}var u=function(){function e(e,t){void 0===t&&(t=Object.create(null)),this.resultCache=i.sy?new WeakSet:new Set,this.transform=e,t.getCacheKey&&(this.getCacheKey=t.getCacheKey),!1!==t.cache&&(this.stableCacheKeys=new n.B(i.mr,(function(e){return{key:e}})))}return e.prototype.getCacheKey=function(e){return[e]},e.identity=function(){return new e(s,{cache:!1})},e.split=function(t,r,n){return void 0===n&&(n=e.identity()),new e((function(e){return(t(e)?r:n).transformDocument(e)}),{cache:!1})},e.prototype.transformDocument=function(e){if(this.resultCache.has(e))return e;var t=this.getStableCacheEntry(e);if(t&&t.value)return t.value;(0,o.A$)(e);var r=this.transform(e);return this.resultCache.add(r),t&&(t.value=r),r},e.prototype.concat=function(t){var r=this;return new e((function(e){return t.transformDocument(r.transformDocument(e))}),{cache:!1})},e.prototype.getStableCacheEntry=function(e){if(this.stableCacheKeys){var t=this.getCacheKey(e);return t?((0,a.kG)(Array.isArray(t),63),this.stableCacheKeys.lookupArray(t)):void 0}},e}()},19065:(e,t,r)=>{r.d(t,{FS:()=>a,LZ:()=>o,mj:()=>s});var n=r(56961),i=r(77304);function o(e,t){var r=e.directives;return!r||!r.length||function(e){var t=[];e&&e.length&&e.forEach((function(e){if(function(e){var t=e.name.value;return"skip"===t||"include"===t}(e)){var r=e.arguments,i=e.name.value;(0,n.kG)(r&&1===r.length,65,i);var o=r[0];(0,n.kG)(o.name&&"if"===o.name.value,66,i);var a=o.value;(0,n.kG)(a&&("Variable"===a.kind||"BooleanValue"===a.kind),67,i),t.push({directive:e,ifArgument:o})}}));return t}(r).every((function(e){var r=e.directive,i=e.ifArgument,o=!1;return"Variable"===i.value.kind?(o=t&&t[i.value.name.value],(0,n.kG)(void 0!==o,64,r.name.value)):o=i.value.value,"skip"===r.name.value?!o:o}))}function a(e,t,r){var n=new Set(e),o=n.size;return(0,i.Vn)(t,{Directive:function(e){if(n.delete(e.name.value)&&(!r||!n.size))return i.$_}}),r?!n.size:n.size{r.d(t,{F:()=>a,Yk:()=>o,hi:()=>s});var n=r(97582),i=r(56961);function o(e,t){var r=t,o=[];return e.definitions.forEach((function(e){if("OperationDefinition"===e.kind)throw(0,i._K)(68,e.operation,e.name?" named '".concat(e.name.value,"'"):"");"FragmentDefinition"===e.kind&&o.push(e)})),void 0===r&&((0,i.kG)(1===o.length,69,o.length),r=o[0].name.value),(0,n.pi)((0,n.pi)({},e),{definitions:(0,n.ev)([{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:r}}]}}],e.definitions,!0)})}function a(e){void 0===e&&(e=[]);var t={};return e.forEach((function(e){t[e.name.value]=e})),t}function s(e,t){switch(e.kind){case"InlineFragment":return e;case"FragmentSpread":var r=e.name.value;if("function"==typeof t)return t(r);var n=t&&t[r];return(0,i.kG)(n,70,r),n||null;default:return null}}},36765:(e,t,r)=>{r.d(t,{$H:()=>a,A$:()=>o,O4:()=>h,iW:()=>c,kU:()=>u,p$:()=>f,pD:()=>l,rY:()=>s});var n=r(56961),i=r(51761);function o(e){(0,n.kG)(e&&"Document"===e.kind,71);var t=e.definitions.filter((function(e){return"FragmentDefinition"!==e.kind})).map((function(e){if("OperationDefinition"!==e.kind)throw(0,n._K)(72,e.kind);return e}));return(0,n.kG)(t.length<=1,73,t.length),e}function a(e){return o(e),e.definitions.filter((function(e){return"OperationDefinition"===e.kind}))[0]}function s(e){return e.definitions.filter((function(e){return"OperationDefinition"===e.kind&&!!e.name})).map((function(e){return e.name.value}))[0]||null}function u(e){return e.definitions.filter((function(e){return"FragmentDefinition"===e.kind}))}function c(e){var t=a(e);return(0,n.kG)(t&&"query"===t.operation,74),t}function l(e){(0,n.kG)("Document"===e.kind,75),(0,n.kG)(e.definitions.length<=1,76);var t=e.definitions[0];return(0,n.kG)("FragmentDefinition"===t.kind,77),t}function f(e){var t;o(e);for(var r=0,i=e.definitions;r{r.d(t,{Ao:()=>g,JW:()=>u,My:()=>b,NC:()=>v,PT:()=>h,Yk:()=>s,kQ:()=>a,qw:()=>m,u2:()=>y,vb:()=>c,vf:()=>l});var n=r(56961),i=r(13154),o=r(23361);function a(e){return{__ref:String(e)}}function s(e){return Boolean(e&&"object"==typeof e&&"string"==typeof e.__ref)}function u(e){return(0,i.s)(e)&&"Document"===e.kind&&Array.isArray(e.definitions)}function c(e,t,r,i){if(function(e){return"IntValue"===e.kind}(r)||function(e){return"FloatValue"===e.kind}(r))e[t.value]=Number(r.value);else if(function(e){return"BooleanValue"===e.kind}(r)||function(e){return"StringValue"===e.kind}(r))e[t.value]=r.value;else if(function(e){return"ObjectValue"===e.kind}(r)){var o={};r.fields.map((function(e){return c(o,e.name,e.value,i)})),e[t.value]=o}else if(function(e){return"Variable"===e.kind}(r)){var a=(i||{})[r.name.value];e[t.value]=a}else if(function(e){return"ListValue"===e.kind}(r))e[t.value]=r.values.map((function(e){var r={};return c(r,t,e,i),r[t.value]}));else if(function(e){return"EnumValue"===e.kind}(r))e[t.value]=r.value;else{if(!function(e){return"NullValue"===e.kind}(r))throw(0,n._K)(79,t.value,r.kind);e[t.value]=null}}function l(e,t){var r=null;e.directives&&(r={},e.directives.forEach((function(e){r[e.name.value]={},e.arguments&&e.arguments.forEach((function(n){var i=n.name,o=n.value;return c(r[e.name.value],i,o,t)}))})));var n=null;return e.arguments&&e.arguments.length&&(n={},e.arguments.forEach((function(e){var r=e.name,i=e.value;return c(n,r,i,t)}))),h(e.name.value,n,r)}var f=["connection","include","skip","client","rest","export","nonreactive"],h=Object.assign((function(e,t,r){if(t&&r&&r.connection&&r.connection.key){if(r.connection.filter&&r.connection.filter.length>0){var n=r.connection.filter?r.connection.filter:[];n.sort();var i={};return n.forEach((function(e){i[e]=t[e]})),"".concat(r.connection.key,"(").concat(p(i),")")}return r.connection.key}var o=e;if(t){var a=p(t);o+="(".concat(a,")")}return r&&Object.keys(r).forEach((function(e){-1===f.indexOf(e)&&(r[e]&&Object.keys(r[e]).length?o+="@".concat(e,"(").concat(p(r[e]),")"):o+="@".concat(e))})),o}),{setStringify:function(e){var t=p;return p=e,t}}),p=function(e){return JSON.stringify(e,d)};function d(e,t){return(0,i.s)(t)&&!Array.isArray(t)&&(t=Object.keys(t).sort().reduce((function(e,r){return e[r]=t[r],e}),{})),t}function v(e,t){if(e.arguments&&e.arguments.length){var r={};return e.arguments.forEach((function(e){var n=e.name,i=e.value;return c(r,n,i,t)})),r}return null}function y(e){return e.alias?e.alias.value:e.name.value}function m(e,t,r){for(var n,i=0,a=t.selections;i{r.d(t,{Gw:()=>m,aL:()=>b,bi:()=>y,ob:()=>g});var n=r(97582),i=r(56961),o=r(97359),a=r(77304),s=r(36765),u=r(51761),c=r(23361),l=r(21436),f={kind:o.h.FIELD,name:{kind:o.h.NAME,value:"__typename"}};function h(e,t){return!e||e.selectionSet.selections.every((function(e){return e.kind===o.h.FRAGMENT_SPREAD&&h(t[e.name.value],t)}))}function p(e){return h((0,s.$H)(e)||(0,s.pD)(e),(0,c.F)((0,s.kU)(e)))?null:e}function d(e){var t=new Map,r=new Map;return e.forEach((function(e){e&&(e.name?t.set(e.name,e):e.test&&r.set(e.test,e))})),function(e){var n=t.get(e.name.value);return!n&&r.size&&r.forEach((function(t,r){r(e)&&(n=t)})),n}}function v(e){var t=new Map;return function(r){void 0===r&&(r=e);var n=t.get(r);return n||t.set(r,n={variables:new Set,fragmentSpreads:new Set}),n}}function y(e,t){(0,s.A$)(t);for(var r=v(""),u=v(""),c=function(e){for(var t=0,n=void 0;t=0;--h)t.definitions[h].kind===o.h.OPERATION_DEFINITION&&++f;var y=d(e),m=function(e){return(0,l.O)(e)&&e.map(y).some((function(e){return e&&e.remove}))},b=new Map,g=!1,k={enter:function(e){if(m(e.directives))return g=!0,null}},O=(0,a.Vn)(t,{Field:k,InlineFragment:k,VariableDefinition:{enter:function(){return!1}},Variable:{enter:function(e,t,r,n,i){var o=c(i);o&&o.variables.add(e.name.value)}},FragmentSpread:{enter:function(e,t,r,n,i){if(m(e.directives))return g=!0,null;var o=c(i);o&&o.fragmentSpreads.add(e.name.value)}},FragmentDefinition:{enter:function(e,t,r,n){b.set(JSON.stringify(n),e)},leave:function(e,t,r,n){return e===b.get(JSON.stringify(n))?e:f>0&&e.selectionSet.selections.every((function(e){return e.kind===o.h.FIELD&&"__typename"===e.name.value}))?(u(e.name.value).removed=!0,g=!0,null):void 0}},Directive:{leave:function(e){if(y(e))return g=!0,null}}});if(!g)return t;var w=function(e){return e.transitiveVars||(e.transitiveVars=new Set(e.variables),e.removed||e.fragmentSpreads.forEach((function(t){w(u(t)).transitiveVars.forEach((function(t){e.transitiveVars.add(t)}))}))),e},S=new Set;O.definitions.forEach((function(e){e.kind===o.h.OPERATION_DEFINITION?w(r(e.name&&e.name.value)).fragmentSpreads.forEach((function(e){S.add(e)})):e.kind!==o.h.FRAGMENT_DEFINITION||0!==f||u(e.name.value).removed||S.add(e.name.value)})),S.forEach((function(e){w(u(e)).fragmentSpreads.forEach((function(e){S.add(e)}))}));var _={enter:function(e){if(t=e.name.value,!S.has(t)||u(t).removed)return null;var t}};return p((0,a.Vn)(O,{FragmentSpread:_,FragmentDefinition:_,OperationDefinition:{leave:function(e){if(e.variableDefinitions){var t=w(r(e.name&&e.name.value)).transitiveVars;if(t.size{r.d(t,{i:()=>n});var n="3.8.5"}}]);