1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4455],{41604:function(e,t,i){"use strict";function n(){return(n=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var o in i)({}).hasOwnProperty.call(i,o)&&(e[o]=i[o])}return e}).apply(null,arguments)}i.d(t,{g:function(){return n}})},50580:function(e,t,i){"use strict";i.r(t),i.d(t,{default:function(){return r}});var o=i(41604),a=i(2265),s=i(40923);function r(e){let{locale:t,...i}=e;if(!t)throw Error("Failed to determine locale in `NextIntlClientProvider`, please provide the `locale` prop explicitly.\n\nSee https://next-intl-docs.vercel.app/docs/configuration#locale");return a.createElement(s.IntlProvider,(0,o.g)({locale:t},i))}},16897:function(e){e.exports={style:{fontFamily:"'__Inter_37ef13', '__Inter_Fallback_37ef13'",fontStyle:"normal"},className:"__className_37ef13",variable:"__variable_37ef13"}},76006:function(e){e.exports={style:{fontFamily:"'__Montserrat_f56828', '__Montserrat_Fallback_f56828'",fontStyle:"normal"},className:"__className_f56828",variable:"__variable_f56828"}},83547:function(e){e.exports={style:{fontFamily:"'__Outfit_862c70', '__Outfit_Fallback_862c70'",fontStyle:"normal"},className:"__className_862c70",variable:"__variable_862c70"}},75543:function(e){e.exports={style:{fontFamily:"'__Plus_Jakarta_Sans_a11773', '__Plus_Jakarta_Sans_Fallback_a11773'",fontStyle:"normal"},className:"__className_a11773",variable:"__variable_a11773"}},3432:function(e){e.exports={style:{fontFamily:"'__Roboto_c06d0e', '__Roboto_Fallback_c06d0e'",fontStyle:"normal"},className:"__className_c06d0e",variable:"__variable_c06d0e"}},51872:function(e,t,i){"use strict";i.d(t,{Z:function(){return esm_browser_v4}});var o,a={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)},s=new Uint8Array(16);function rng(){if(!o&&!(o="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)))throw Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return o(s)}for(var u=[],c=0;c<256;++c)u.push((c+256).toString(16).slice(1));function unsafeStringify(e,t=0){return(u[e[t+0]]+u[e[t+1]]+u[e[t+2]]+u[e[t+3]]+"-"+u[e[t+4]]+u[e[t+5]]+"-"+u[e[t+6]]+u[e[t+7]]+"-"+u[e[t+8]]+u[e[t+9]]+"-"+u[e[t+10]]+u[e[t+11]]+u[e[t+12]]+u[e[t+13]]+u[e[t+14]]+u[e[t+15]]).toLowerCase()}var esm_browser_v4=function(e,t,i){if(a.randomUUID&&!t&&!e)return a.randomUUID();var o=(e=e||{}).random||(e.rng||rng)();if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,t){i=i||0;for(var s=0;s<16;++s)t[i+s]=o[s];return t}return unsafeStringify(o)}},38128:function(e,t,i){"use strict";i.d(t,{i:function(){return c}});var o=i(16735),a=i(38681),s=i(50044);function createOperation(e,t){var i=(0,s.pi)({},e);return Object.defineProperty(t,"setContext",{enumerable:!1,value:function(e){i="function"==typeof e?(0,s.pi)((0,s.pi)({},i),e(i)):(0,s.pi)((0,s.pi)({},i),e)}}),Object.defineProperty(t,"getContext",{enumerable:!1,value:function(){return(0,s.pi)({},i)}}),t}var u=i(11739);function transformOperation(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,u.rY)(t.query)||void 0:""),t}function validateOperation(e){for(var t=["query","operationName","variables","extensions","context"],i=0,a=Object.keys(e);i<a.length;i++){var s=a[i];if(0>t.indexOf(s))throw(0,o._K)(46,s)}return e}function passthrough(e,t){return t?t(e):a.y.of()}function toLink(e){return"function"==typeof e?new c(e):e}function isTerminating(e){return e.request.length<=1}var c=function(){function ApolloLink(e){e&&(this.request=e)}return ApolloLink.empty=function(){return new ApolloLink(function(){return a.y.of()})},ApolloLink.from=function(e){return 0===e.length?ApolloLink.empty():e.map(toLink).reduce(function(e,t){return e.concat(t)})},ApolloLink.split=function(e,t,i){var o=toLink(t),s=toLink(i||new ApolloLink(passthrough));return Object.assign(new ApolloLink(isTerminating(o)&&isTerminating(s)?function(t){return e(t)?o.request(t)||a.y.of():s.request(t)||a.y.of()}:function(t,i){return e(t)?o.request(t,i)||a.y.of():s.request(t,i)||a.y.of()}),{left:o,right:s})},ApolloLink.execute=function(e,t){return e.request(createOperation(t.context,transformOperation(vali
1dateOperation(t))))||a.y.of()},ApolloLink.concat=function(e,t){var i=toLink(e);if(isTerminating(i))return!1!==globalThis.__DEV__&&o.kG.warn(38,i),i;var s=toLink(t);return Object.assign(new ApolloLink(isTerminating(s)?function(e){return i.request(e,function(e){return s.request(e)||a.y.of()})||a.y.of()}:function(e,t){return i.request(e,function(e){return s.request(e,t)||a.y.of()})||a.y.of()}),{left:i,right:s})},ApolloLink.prototype.split=function(e,t,i){return this.concat(ApolloLink.split(e,t,i||new ApolloLink(passthrough)))},ApolloLink.prototype.concat=function(e){return ApolloLink.concat(this,e)},ApolloLink.prototype.request=function(e,t){throw(0,o._K)(39)},ApolloLink.prototype.onError=function(e,t){if(t&&t.error)return t.error(e),!1;throw e},ApolloLink.prototype.setOnError=function(e){return this.onError=e,this},ApolloLink}()},54031:function(e,t,i){"use strict";i.d(t,{u:function(){return k}});var o=i(50044),a=i(38128),s=i(16735),u=i(85812),c=i(38681),serializeFetchParameter=function(e,t){var i;try{i=JSON.stringify(e)}catch(e){var o=(0,s._K)(42,t,e.message);throw o.parseError=e,o}return i},l=i(38191);function asyncIterator(e){var t,i=e[Symbol.asyncIterator]();return(t={next:function(){return i.next()}})[Symbol.asyncIterator]=function(){return this},t}function nodeStreamIterator(e){var t=null,i=null,o=!1,a=[],s=[];function onData(e){if(!i){if(s.length){var t=s.shift();if(Array.isArray(t)&&t[0])return t[0]({value:e,done:!1})}a.push(e)}}function onError(e){i=e,s.slice().forEach(function(t){t[1](e)}),t&&t()}function onEnd(){o=!0,s.slice().forEach(function(e){e[0]({value:void 0,done:!0})}),t&&t()}function getNext(){return new Promise(function(e,t){return i?t(i):a.length?e({value:a.shift(),done:!1}):o?e({value:void 0,done:!0}):void s.push([e,t])})}t=function(){t=null,e.removeListener("data",onData),e.removeListener("error",onError),e.removeListener("end",onEnd),e.removeListener("finish",onEnd),e.removeListener("close",onEnd)},e.on("data",onData),e.on("error",onError),e.on("end",onEnd),e.on("finish",onEnd),e.on("close",onEnd);var u={next:function(){return getNext()}};return l.DN&&(u[Symbol.asyncIterator]=function(){return this}),u}function promiseIterator(e){var t=!1,i={next:function(){return t?Promise.resolve({value:void 0,done:!0}):(t=!0,new Promise(function(t,i){e.then(function(e){t({value:e,done:!1})}).catch(i)}))}};return l.DN&&(i[Symbol.asyncIterator]=function(){return this}),i}function readerIterator(e){var t={next:function(){return e.read()}};return l.DN&&(t[Symbol.asyncIterator]=function(){return this}),t}function isNodeResponse(e){return!!e.body}function isReadableStream(e){return!!e.getReader}function isAsyncIterableIterator(e){return!!(l.DN&&e[Symbol.asyncIterator])}function isStreamableBlob(e){return!!e.stream}function isBlob(e){return!!e.arrayBuffer}function isNodeReadableStream(e){return!!e.pipe}function responseIterator(e){var t=e;if(isNodeResponse(e)&&(t=e.body),isAsyncIterableIterator(t))return asyncIterator(t);if(isReadableStream(t))return readerIterator(t.getReader());if(isStreamableBlob(t))return readerIterator(t.stream().getReader());if(isBlob(t))return promiseIterator(t.arrayBuffer());if(isNodeReadableStream(t))return nodeStreamIterator(t);throw Error("Unknown body type for responseIterator. Please pass a streamable response.")}var throwServerError=function(e,t,i){var o=Error(i);throw o.name="ServerError",o.response=e,o.statusCode=e.status,o.result=t,o},f=i(17205),p=i(78829),h=Object.prototype.hasOwnProperty;function readMultipartBody(e,t){return(0,o.mG)(this,void 0,void 0,function(){var i,a,s,u,c,l,h,d,y,v,m,b,g,k,S,_,w,O,D,F,E,C,I;return(0,o.Jh)(this,function(R){switch(R.label){case 0:if(void 0===TextDecoder)throw Error("TextDecoder must be defined in the environment: please import a polyfill.");i=new TextDecoder("utf-8"),a=null===(I=e.headers)||void 0===I?void 0:I.get("content-type"),s="boundary=",u=(null==a?void 0:a.includes(s))?null==a?void 0:a.substring((null==a?void 0:a.indexOf(s))+s.length).replace(/['"]/g,"").replace(/\;(.*)/gm,"").trim():"-",c="\r\n--".concat(u),l="",h=responseIterator(e),d=!0,R.label=1;case 1:if(!d)return[3,3];return[4,h.next()];case 2:for(v=(y=R.sent()).value,m=y.done,b="string"==typeof v?v:i.decode(v),g=l.length-c.length+1,d=!m,l+=b,k=l.indexOf(c,g);k>-1;){if(S=void 0,S=(E=[l.slice(0,k),l.slice(k+c.length)])[0],l=E[1],_=S.indexOf("\r\n\r\n"),(w=parseHeaders(S.slice(0,_))["content-type"])&&-1===w.toLowerCase().indexOf("application/json"))throw Error("Unsupported patch content type: application/json is required.");
1if(O=S.slice(_)){if(Object.keys(D=parseJsonBody(e,O)).length>1||"data"in D||"incremental"in D||"errors"in D||"payload"in D){if((0,p.yU)(D)){if(F={},"payload"in D){if(1===Object.keys(D).length&&null===D.payload)return[2];F=(0,o.pi)({},D.payload)}"errors"in D&&(F=(0,o.pi)((0,o.pi)({},F),{extensions:(0,o.pi)((0,o.pi)({},"extensions"in F?F.extensions:null),((C={})[f.YG]=D.errors,C))})),t(F)}else t(D)}else if(1===Object.keys(D).length&&"hasNext"in D&&!D.hasNext)return[2]}k=l.indexOf(c)}return[3,1];case 3:return[2]}})})}function parseHeaders(e){var t={};return e.split("\n").forEach(function(e){var i=e.indexOf(":");if(i>-1){var o=e.slice(0,i).trim().toLowerCase(),a=e.slice(i+1).trim();t[o]=a}}),t}function parseJsonBody(e,t){e.status>=300&&throwServerError(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(i){throw i.name="ServerParseError",i.response=e,i.statusCode=e.status,i.bodyText=t,i}}function handleError(e,t){e.result&&e.result.errors&&e.result.data&&t.next(e.result),t.error(e)}function parseAndCheckHttpResponse(e){return function(t){return t.text().then(function(e){return parseJsonBody(t,e)}).then(function(i){return Array.isArray(i)||h.call(i,"data")||h.call(i,"errors")||throwServerError(t,i,"Server response was missing for query '".concat(Array.isArray(e)?e.map(function(e){return e.operationName}):e.operationName,"'.")),i})}}var checkFetcher=function(e){if(!e&&"undefined"==typeof fetch)throw(0,s._K)(40)},d=i(34657),y={http:{includeQuery:!0,includeExtensions:!1,preserveHeaderCase:!1},headers:{accept:"*/*","content-type":"application/json"},options:{method:"POST"}},defaultPrinter=function(e,t){return t(e)};function selectHttpOptionsAndBodyInternal(e,t){for(var i=[],a=2;a<arguments.length;a++)i[a-2]=arguments[a];var s={},u={};i.forEach(function(e){s=(0,o.pi)((0,o.pi)((0,o.pi)({},s),e.options),{headers:(0,o.pi)((0,o.pi)({},s.headers),e.headers)}),e.credentials&&(s.credentials=e.credentials),u=(0,o.pi)((0,o.pi)({},u),e.http)}),s.headers&&(s.headers=removeDuplicateHeaders(s.headers,u.preserveHeaderCase));var c=e.operationName,l=e.extensions,f=e.variables,p=e.query,h={operationName:c,variables:f};return u.includeExtensions&&(h.extensions=l),u.includeQuery&&(h.query=t(p,d.S)),{options:s,body:h}}function removeDuplicateHeaders(e,t){if(!t){var i={};
1return Object.keys(Object(e)).forEach(function(t){i[t.toLowerCase()]=e[t]}),i}var o={};Object.keys(Object(e)).forEach(function(t){o[t.toLowerCase()]={originalName:t,value:e[t]}});var a={};return Object.keys(o).forEach(function(e){a[o[e].originalName]=o[e].value}),a}function rewriteURIForGET(e,t){var i=[],addQueryParam=function(e,t){i.push("".concat(e,"=").concat(encodeURIComponent(t)))};if("query"in t&&addQueryParam("query",t.query),t.operationName&&addQueryParam("operationName",t.operationName),t.variables){var o=void 0;try{o=serializeFetchParameter(t.variables,"Variables map")}catch(e){return{parseError:e}}addQueryParam("variables",o)}if(t.extensions){var a=void 0;try{a=serializeFetchParameter(t.extensions,"Extensions map")}catch(e){return{parseError:e}}addQueryParam("extensions",a)}var s="",u=e,c=e.indexOf("#");-1!==c&&(s=e.substr(c),u=e.substr(0,c));var l=-1===u.indexOf("?")?"?":"&";return{newURI:u+l+i.join("&")+s}}function fromError(e){return new c.y(function(t){t.error(e)})}var v=i(34829);function filterOperationVariables(e,t){var i=(0,o.pi)({},e),a=new Set(Object.keys(e));return(0,v.Vn)(t,{Variable:function(e,t,i){i&&"VariableDefinition"!==i.kind&&a.delete(e.name.value)}}),a.forEach(function(e){delete i[e]}),i}var m=i(90535),b=i(11739),g=(0,s.wY)(function(){return fetch}),createHttpLink=function(e){void 0===e&&(e={});var t=e.uri,i=void 0===t?"/graphql":t,l=e.fetch,f=e.print,p=void 0===f?defaultPrinter:f,h=e.includeExtensions,d=e.preserveHeaderCase,v=e.useGETForQueries,k=e.includeUnusedVariables,S=void 0!==k&&k,_=(0,o._T)(e,["uri","fetch","print","includeExtensions","preserveHeaderCase","useGETForQueries","includeUnusedVariables"]);!1!==globalThis.__DEV__&&checkFetcher(l||g);var w={http:{includeExtensions:h,preserveHeaderCase:d},options:_.fetchOptions,credentials:_.credentials,headers:_.headers};return new a.i(function(e){var t,a,f,h,d=(t=e,a=i,t.getContext().uri||("function"==typeof a?a(t):a||"/graphql")),k=e.getContext(),_={};if(k.clientAwareness){var O=k.clientAwareness,D=O.name,F=O.version;D&&(_["apollographql-client-name"]=D),F&&(_["apollographql-client-version"]=F)}var E=(0,o.pi)((0,o.pi)({},_),k.headers),C={http:k.http,options:k.fetchOptions,credentials:k.credentials,headers:E};if((0,u.FS)(["client"],e.query)){var I=(0,m.ob)(e.query);if(!I)return fromError(Error("HttpLink: Trying to send a client-only query to the server. To send to the server, ensure a non-client field is added to the query or set the `transformOptions.removeClientFields` option to `true`."));e.query=I}var R=selectHttpOptionsAndBodyInternal(e,p,y,w,C),T=R.options,Q=R.body;Q.variables&&!S&&(Q.variables=filterOperationVariables(Q.variables,e.query)),T.signal||"undefined"==typeof AbortController||(h=new AbortController,T.signal=h.signal);var M="OperationDefinition"===(f=(0,b.p$)(e.query)).kind&&"subscription"===f.operation,x=(0,u.FS)(["defer"],e.query);if(v&&!e.query.definitions.some(function(e){return"OperationDefinition"===e.kind&&"mutation"===e.operation})&&(T.method="GET"),x||M){T.headers=T.headers||{};var P="multipart/mixed;";M&&x&&!1!==globalThis.__DEV__&&s.kG.warn(41),M?P+="boundary=graphql;subscriptionSpec=1.0,application/json":x&&(P+="deferSpec=20220824,application/json"),T.headers.accept=P}if("GET"===T.method){var j=rewriteURIForGET(d,Q),A=j.newURI,q=j.parseError;if(q)return fromError(q);d=A}else try{T.body=serializeFetchParameter(Q,"Payload")}catch(e){return fromError(e)}return new c.y(function(t){var i=l||(0,s.wY)(function(){return fetch})||g,o=t.next.bind(t);return i(d,T).then(function(t){e.setContext({response:t});var i,a=null===(i=t.headers)||void 0===i?void 0:i.get("content-type");return null!==a&&/^multipart\/mixed/i.test(a)?readMultipartBody(t,o):parseAndCheckHttpResponse(e)(t).then(o)}).then(function(){h=void 0,t.complete()}).catch(function(e){h=void 0,handleError(e,t)}),function(){h&&h.abort()}})})},k=function(e){function HttpLink(t){void 0===t&&(t={});var i=e.call(this,createHttpLink(t).request)||this;return i.options=t,i}return(0,o.ZT)(HttpLink,e),HttpLink}(a.i)},97440:function(e,t,i){"use strict";i.d(t,{B:function(){return c}});var o,a=i(50040),s=i(6431),u=i(89660),c=Object.assign(function(e){return JSON.stringify(e,stableObjectReplacer)},{reset:function(){o=new a.L(s.Q.canonicalStringify||1e3)}});function stableObjectReplacer(e,t){if(t&&"object"==typeof t){var i=Object.getPrototypeOf(t);if(i===Object.prototype||null===i){var a=Object.keys(t);if(a.every(everyKeyInOrder))return t;var s=JSON.stringify(a),u=o.get(s);if(!u){a.sort();var c=JSON.stringify(a);u=o.get(c)||a,o.set(s,u),o.set(c,u)}var l=Object.create(i);return u.forEach(function(e){l[e]=t[e]}),l}}return t}function everyKeyInOrder(e,t,i){return 0===t||i[t-1]<=e}!1!==globalThis.__DEV__&&(0,u.zP)("canonicalStringify",function(){return o.size}),c.reset()},78829:function(e,t,i){"use strict";i.d(t,{GG:function(){return isExecutionPatchIncrementalResult},M0:function(){return isExecutionPatchResult},mT:function(){return mergeIncrementalData},yU:function(){return isApolloPayloadResult}});var o=i(88550),a=i(72619),s=i(93592);function isExecutionPatchIncrementalResult(e){return"incremental"in e}function isExecutionPatchInitialResult(e){return"hasNext"in e&&"data"in e}function isExecutionPatchResult(e){return isExecutionPatchIncrementalResult(e)||isExecutionPatchInitialResult(e)}function isApolloPayloadResult(e){return(0,o.s)(e)&&"payload"in e}function mergeIncrementalData(e,t){var i=e,o=new s.w0;return isExecutionPatchIncrementalResult(t)&&(0,a.O)(t.incremental)&&t.incremental.forEach(function(e){for(var t=e.data,a=e.path,s=a.length-1;s>=0;--s){var u=a[s],c=isNaN(+u)?{}:[];c[u]=t,t=c}i=o.merge(i,t)}),i}},93592:function(e,t,i){"use strict";i.d(t,{Ee:function(){return mergeDeep},bw:function(){return mergeDeepArray},w0:function(){return u}});var o=i(50044),a=i(88550),s=Object.prototype.hasOwnProperty;function mergeDeep(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return mergeDeepArray(e)}function mergeDeepArray(e){var t=e[0]||{},i=e.length;if(i>1)for(var o=new u,a=1;a<i;++a)t=o.merge(t,e[a]);return t}
1var defaultReconciler=function(e,t,i){return this.merge(e[i],t[i])},u=function(){function DeepMerger(e){void 0===e&&(e=defaultReconciler),this.reconciler=e,this.isObject=a.s,this.pastCopies=new Set}return DeepMerger.prototype.merge=function(e,t){for(var i=this,u=[],c=2;c<arguments.length;c++)u[c-2]=arguments[c];return(0,a.s)(t)&&(0,a.s)(e)?(Object.keys(t).forEach(function(a){if(s.call(e,a)){var c=e[a];if(t[a]!==c){var l=i.reconciler.apply(i,(0,o.ev)([e,t,a],u,!1));l!==c&&((e=i.shallowCopyForMerge(e))[a]=l)}}else(e=i.shallowCopyForMerge(e))[a]=t[a]}),e):t},DeepMerger.prototype.shallowCopyForMerge=function(e){return(0,a.s)(e)&&!this.pastCopies.has(e)&&(e=Array.isArray(e)?e.slice(0):(0,o.pi)({__proto__:Object.getPrototypeOf(e)},e),this.pastCopies.add(e)),e},DeepMerger}()},85812:function(e,t,i){"use strict";i.d(t,{FS:function(){return hasDirectives},GT:function(){return getFragmentMaskMode},LZ:function(){return shouldInclude},mj:function(){return hasClientExports}});var o=i(16735),a=i(34829),s=i(55459);function shouldInclude(e,t){var i=e.directives;return!i||!i.length||getInclusionDirectives(i).every(function(e){var i=e.directive,a=e.ifArgument,s=!1;return"Variable"===a.value.kind?(s=t&&t[a.value.name.value],(0,o.kG)(void 0!==s,78,i.name.value)):s=a.value.value,"skip"===i.name.value?!s:s})}function hasDirectives(e,t,i){var o=new Set(e),s=o.size;return(0,a.Vn)(t,{Directive:function(e){if(o.delete(e.name.value)&&(!i||!o.size))return a.$_}}),i?!o.size:o.size<s}function hasClientExports(e){return e&&hasDirectives(["client","export"],e,!0)}function isInclusionDirective(e){var t=e.name.value;return"skip"===t||"include"===t}function getInclusionDirectives(e){var t=[];return e&&e.length&&e.forEach(function(e){if(isInclusionDirective(e)){var i=e.arguments,a=e.name.value;(0,o.kG)(i&&1===i.length,79,a);var s=i[0];(0,o.kG)(s.name&&"if"===s.name.value,80,a);var u=s.value;(0,o.kG)(u&&("Variable"===u.kind||"BooleanValue"===u.kind),81,a),t.push({directive:e,ifArgument:s})}}),t}function getFragmentMaskMode(e){var t,i,a=null===(t=e.directives)||void 0===t?void 0:t.find(function(e){return"unmask"===e.name.value});if(!a)return"mask";var u=null===(i=a.arguments)||void 0===i?void 0:i.find(function(e){return"mode"===e.name.value});return(!1!==globalThis.__DEV__&&u&&(u.value.kind===s.h.VARIABLE?!1!==globalThis.__DEV__&&o.kG.warn(82):u.value.kind!==s.h.STRING?!1!==globalThis.__DEV__&&o.kG.warn(83):"migrate"!==u.value.value&&!1!==globalThis.__DEV__&&o.kG.warn(84,u.value.value)),u&&"value"in u.value&&"migrate"===u.value.value)?"migrate":"unmask"}},86275:function(e,t,i){"use strict";i.d(t,{F:function(){return createFragmentMap},YU:function(){return isFullyUnmaskedOperation},Yk:function(){return getFragmentQueryDocument},hi:function(){return getFragmentFromSelection}});var o=i(50044),a=i(16735),s=i(34829);function getFragmentQueryDocument(e,t){var i=t,s=[];return e.definitions.forEach(function(e){if("OperationDefinition"===e.kind)throw(0,a._K)(85,e.operation,e.name?" named '".concat(e.name.value,"'"):"");"FragmentDefinition"===e.kind&&s.push(e)}),void 0===i&&((0,a.kG)(1===s.length,86,s.length),i=s[0].name.value),(0,o.pi)((0,o.pi)({},e),{definitions:(0,o.ev)([{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:i}}]}}],e.definitions,!0)})}function createFragmentMap(e){void 0===e&&(e=[]);var t={};return e.forEach(function(e){t[e.name.value]=e}),t}function getFragmentFromSelection(e,t){switch(e.kind){case"InlineFragment":return e;case"FragmentSpread":var i=e.name.value;if("function"==typeof t)return t(i);var o=t&&t[i];return(0,a.kG)(o,87,i),o||null;default:return null}}function isFullyUnmaskedOperation(e){var t=!0;return(0,s.Vn)(e,{FragmentSpread:function(e){if(!(t=!!e.directives&&e.directives.some(function(e){return"unmask"===e.name.value})))return s.$_}}),t}},11739:function(e,t,i){"use strict";i.d(t,{$H:function(){return getOperationDefinition},A$:function(){return checkDocument},O4:function(){return getDefaultValues},iW:function(){return getQueryDefinition},kU:function(){return getFragmentDefinitions},p$:function(){return getMainDefinition},pD:function(){return getFragmentDefinition},rY:function(){return getOperationName}});var o=i(16735),a=i(44339);function checkDocument(e){(0,o.kG)(e&&"Document"===e.kind,88);var t=e.definitions.filter(function(e){return"FragmentDefinition"!==e.kind}).map(function(e){if("OperationDefinition"!==e.kind)throw(0,o._K)(89,e.kind);return e});return(0,o.kG)(t.length<=1,90,t.length),e}function getOperationDefinition(e){return checkDocument(e),e.definitions.filter(function(e){return"OperationDefinition"===e.kind})[0]}function getOperationName(e){return e.definitions.filter(function(e){return"OperationDefinition"===e.kind&&!!e.name}).map(function(e){return e.name.value})[0]||null}function getFragmentDefinitions(e){return e.definitions.filter(function(e){return"FragmentDefinition"===e.kind})}function getQueryDefinition(e){var t=getOperationDefinition(e);return(0,o.kG)(t&&"query"===t.operation,91),t}function getFragmentDefinition(e){(0,o.kG)("Document"===e.kind,92),(0,o.kG)(e.definitions.length<=1,93);var t=e.definitions[0];return(0,o.kG)("FragmentDefinition"===t.kind,94),t}function getMainDefinition(e){checkDocument(e);for(var t,i=0,a=e.definitions;i<a.length;i++){var s=a[i];if("OperationDefinition"===s.kind){var u=s.operation;if("query"===u||"mutation"===u||"subscription"===u)return s}"FragmentDefinition"!==s.kind||t||(t=s)}if(t)return t;throw(0,o._K)(95)}function getDefaultValues(e){var t=Object.create(null),i=e&&e.variableDefinitions;
1return i&&i.length&&i.forEach(function(e){e.defaultValue&&(0,a.vb)(t,e.variable.name,e.defaultValue)}),t}},34657:function(e,t,i){"use strict";i.d(t,{S:function(){return d}});var o,a=i(37063);function printString(e){return`"${e.replace(s,escapedReplacer)}"`}let s=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function escapedReplacer(e){return u[e.charCodeAt(0)]}let u=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000B","\\f","\\r","\\u000E","\\u000F","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001A","\\u001B","\\u001C","\\u001D","\\u001E","\\u001F","","",'\\"',"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\\\","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\u007F","\\u0080","\\u0081","\\u0082","\\u0083","\\u0084","\\u0085","\\u0086","\\u0087","\\u0088","\\u0089","\\u008A","\\u008B","\\u008C","\\u008D","\\u008E","\\u008F","\\u0090","\\u0091","\\u0092","\\u0093","\\u0094","\\u0095","\\u0096","\\u0097","\\u0098","\\u0099","\\u009A","\\u009B","\\u009C","\\u009D","\\u009E","\\u009F"];var c=i(34829);function print(e){return(0,c.Vn)(e,l)}let l={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>join(e.definitions,"\n\n")},OperationDefinition:{leave(e){let t=hasMultilineItems(e.variableDefinitions)?wrap("(\n",join(e.variableDefinitions,"\n"),"\n)"):wrap("(",join(e.variableDefinitions,", "),")"),i=wrap("",e.description,"\n")+join([e.operation,join([e.name,t]),join(e.directives," ")]," ");return("query"===i?"":i+" ")+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:i,directives:o,description:a})=>wrap("",a,"\n")+e+": "+t+wrap(" = ",i)+wrap(" ",join(o," "))},SelectionSet:{leave:({selections:e})=>block(e)},Field:{leave({alias:e,name:t,arguments:i,directives:o,selectionSet:a}){let s=wrap("",e,": ")+t,u=s+wrap("(",join(i,", "),")");return u.length>80&&(u=s+wrap("(\n",indent(join(i,"\n")),"\n)")),join([u,join(o," "),a]," ")}},Argument:{leave:({name:e,value:t})=>e+": "+t},FragmentSpread:{leave:({name:e,directives:t})=>"..."+e+wrap(" ",join(t," "))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:i})=>join(["...",wrap("on ",e),join(t," "),i]," ")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:i,directives:o,selectionSet:a,description:s})=>wrap("",s,"\n")+`fragment ${e}${wrap("(",join(i,", "),")")} `+`on ${t} ${wrap("",join(o," ")," ")}`+a},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e},StringValue:{leave:({value:e,block:t})=>t?(0,a.LZ)(e):printString(e)},BooleanValue:{leave:({value:e})=>e?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>"["+join(e,", ")+"]"},ObjectValue:{leave:({fields:e})=>"{"+join(e,", ")+"}"},ObjectField:{leave:({name:e,value:t})=>e+": "+t},Directive:{leave:({name:e,arguments:t})=>"@"+e+wrap("(",join(t,", "),")")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>"["+e+"]"},NonNullType:{leave:({type:e})=>e+"!"},SchemaDefinition:{leave:({description:e,directives:t,operationTypes:i})=>wrap("",e,"\n")+join(["schema",join(t," "),block(i)]," ")},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+": "+t},ScalarTypeDefinition:{leave:({description:e,name:t,directives:i})=>wrap("",e,"\n")+join(["scalar",t,join(i," ")]," ")},ObjectTypeDefinition:{leave:({description:e,name:t,interfaces:i,directives:o,fields:a})=>wrap("",e,"\n")+join(["type",t,wrap("implements ",join(i," & ")),join(o," "),block(a)]," ")},FieldDefinition:{leave:({description:e,name:t,arguments:i,type:o,directives:a})=>wrap("",e,"\n")+t+(hasMultilineItems(i)?wrap("(\n",indent(join(i,"\n")),"\n)"):wrap("(",join(i,", "),")"))+": "+o+wrap(" ",join(a," "))},InputValueDefinition:{leave:({description:e,name:t,type:i,defaultValue:o,directives:a})=>wrap("",e,"\n")+join([t+": "+i,wrap("= ",o),join(a," ")]," ")},InterfaceTypeDefinition:{leave:({description:e,name:t,interfaces:i,directives:o,fields:a})=>wrap("",e,"\n")+join(["interface",t,wrap("implements ",join(i," & ")),join(o," "),block(a)]," ")},UnionTypeDefinition:{leave:({description:e,name:t,directives:i,types:o})=>wrap("",e,"\n")+join(["union",t,join(i," "),wrap("= ",join(o," | "))]," ")},EnumTypeDefinition:{leave:({description:e,name:t,directives:i,values:o})=>wrap("",e,"\n")+join(["enum",t,join(i," "),block(o)]," ")},EnumValueDefinition:{leave:({description:e,name:t,directives:i})=>wrap("",e,"\n")+join([t,join(i," ")]," ")},InputObjectTypeDefinition:{leave:({description:e,name:t,directives:i,fields:o})=>wrap("",e,"\n")+join(["input",t,join(i," "),block(o)]," ")},DirectiveDefinition:{leave:({description:e,name:t,arguments:i,repeatable:o,locations:a})=>wrap("",e,"\n")+"directive @"+t+(hasMultilineItems(i)?wrap("(\n",indent(join(i,"\n")),"\n)"):wrap("(",join(i,", "),")"))+(o?" repeatable":"")+" on "+join(a," | ")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>join(["extend schema",join(e," "),block(t)]," ")},ScalarTypeExtension:{leave:({name:e,directives:t})=>
1join(["extend scalar",e,join(t," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:i,fields:o})=>join(["extend type",e,wrap("implements ",join(t," & ")),join(i," "),block(o)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:i,fields:o})=>join(["extend interface",e,wrap("implements ",join(t," & ")),join(i," "),block(o)]," ")},UnionTypeExtension:{leave:({name:e,directives:t,types:i})=>join(["extend union",e,join(t," "),wrap("= ",join(i," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:t,values:i})=>join(["extend enum",e,join(t," "),block(i)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:i})=>join(["extend input",e,join(t," "),block(i)]," ")},TypeCoordinate:{leave:({name:e})=>e},MemberCoordinate:{leave:({name:e,memberName:t})=>join([e,wrap(".",t)])},ArgumentCoordinate:{leave:({name:e,fieldName:t,argumentName:i})=>join([e,wrap(".",t),wrap("(",i,":)")])},DirectiveCoordinate:{leave:({name:e})=>join(["@",e])},DirectiveArgumentCoordinate:{leave:({name:e,argumentName:t})=>join(["@",e,wrap("(",t,":)")])}};function join(e,t=""){var i;return null!==(i=null==e?void 0:e.filter(e=>e).join(t))&&void 0!==i?i:""}
1function block(e){return wrap("{\n",indent(join(e,"\n")),"\n}")}function wrap(e,t,i=""){return null!=t&&""!==t?e+t+i:""}function indent(e){return wrap(" ",e.replace(/\n/g,"\n "))}function hasMultilineItems(e){var t;return null!==(t=null==e?void 0:e.some(e=>e.includes("\n")))&&void 0!==t&&t}var f=i(50040),p=i(6431),h=i(89660),d=Object.assign(function(e){var t=o.get(e);return t||(t=print(e),o.set(e,t)),t},{reset:function(){o=new f.s(p.Q.print||2e3)}});d.reset(),!1!==globalThis.__DEV__&&(0,h.zP)("print",function(){return o?o.size:0})},44339:function(e,t,i){"use strict";i.d(t,{Ao:function(){return isInlineFragment},JW:function(){return isDocumentNode},My:function(){return isField},NC:function(){return argumentsObjectFromField},PT:function(){return f},Yk:function(){return isReference},kQ:function(){return makeReference},qw:function(){return getTypenameFromResult},u2:function(){return resultKeyNameFromField},vb:function(){return valueToObjectRepresentation},vf:function(){return storeKeyNameFromField}});var o=i(16735),a=i(88550),s=i(86275),u=i(97440);function makeReference(e){return{__ref:String(e)}}function isReference(e){return!!(e&&"object"==typeof e&&"string"==typeof e.__ref)}function isDocumentNode(e){return(0,a.s)(e)&&"Document"===e.kind&&Array.isArray(e.definitions)}function isStringValue(e){return"StringValue"===e.kind}function isBooleanValue(e){return"BooleanValue"===e.kind}function isIntValue(e){return"IntValue"===e.kind}function isFloatValue(e){return"FloatValue"===e.kind}function isVariable(e){return"Variable"===e.kind}function isObjectValue(e){return"ObjectValue"===e.kind}function isListValue(e){return"ListValue"===e.kind}function isEnumValue(e){return"EnumValue"===e.kind}function isNullValue(e){return"NullValue"===e.kind}function valueToObjectRepresentation(e,t,i,a){if(isIntValue(i)||isFloatValue(i))e[t.value]=Number(i.value);else if(isBooleanValue(i)||isStringValue(i))e[t.value]=i.value;else if(isObjectValue(i)){var s={};i.fields.map(function(e){return valueToObjectRepresentation(s,e.name,e.value,a)}),e[t.value]=s}else if(isVariable(i)){var u=(a||{})[i.name.value];e[t.value]=u}else if(isListValue(i))e[t.value]=i.values.map(function(e){var i={};return valueToObjectRepresentation(i,t,e,a),i[t.value]});else if(isEnumValue(i))e[t.value]=i.value;else if(isNullValue(i))e[t.value]=null;else throw(0,o._K)(96,t.value,i.kind)}function storeKeyNameFromField(e,t){var i=null;e.directives&&(i={},e.directives.forEach(function(e){i[e.name.value]={},e.arguments&&e.arguments.forEach(function(o){var a=o.name,s=o.value;return valueToObjectRepresentation(i[e.name.value],a,s,t)})}));var o=null;return e.arguments&&e.arguments.length&&(o={},e.arguments.forEach(function(e){var i=e.name,a=e.value;return valueToObjectRepresentation(o,i,a,t)}
1)),f(e.name.value,o,i)}var c=["connection","include","skip","client","rest","export","nonreactive"],l=u.B,f=Object.assign(function(e,t,i){if(t&&i&&i.connection&&i.connection.key){if(!i.connection.filter||!(i.connection.filter.length>0))return i.connection.key;var o=i.connection.filter?i.connection.filter:[];o.sort();var a={};return o.forEach(function(e){a[e]=t[e]}),"".concat(i.connection.key,"(").concat(l(a),")")}var s=e;if(t){var u=l(t);s+="(".concat(u,")")}return i&&Object.keys(i).forEach(function(e){-1===c.indexOf(e)&&(i[e]&&Object.keys(i[e]).length?s+="@".concat(e,"(").concat(l(i[e]),")"):s+="@".concat(e))}),s},{setStringify:function(e){var t=l;return l=e,t}});function argumentsObjectFromField(e,t){if(e.arguments&&e.arguments.length){var i={};return e.arguments.forEach(function(e){return valueToObjectRepresentation(i,e.name,e.value,t)}),i}return null}function resultKeyNameFromField(e){return e.alias?e.alias.value:e.name.value}function getTypenameFromResult(e,t,i){for(var o,a=0,u=t.selections;a<u.length;a++){var c=u[a];if(isField(c)){if("__typename"===c.name.value)return e[resultKeyNameFromField(c)]}else o?o.push(c):o=[c]}if("string"==typeof e.__typename)return e.__typename;if(o)for(var l=0,f=o;l<f.length;l++){var c=f[l],p=getTypenameFromResult(e,(0,s.hi)(c,i).selectionSet,i);if("string"==typeof p)return p}}function isField(e){return"Field"===e.kind}function isInlineFragment(e){return"InlineFragment"===e.kind}},90535:function(e,t,i){"use strict";i.d(t,{Gw:function(){return d},UU:function(){return addNonReactiveToNamedFragments},aL:function(){return buildQueryFromSelectionSet},bi:function(){return removeDirectivesFromDocument},ob:function(){return removeClientSetsFromDocument}});var o=i(50044),a=i(16735),s=i(55459),u=i(34829),c=i(11739),l=i(44339),f=i(86275),p=i(72619),h={kind:s.h.FIELD,name:{kind:s.h.NAME,value:"__typename"}};function isEmpty(e,t){return!e||e.selectionSet.selections.every(function(e){return e.kind===s.h.FRAGMENT_SPREAD&&isEmpty(t[e.name.value],t)})}function nullIfDocIsEmpty(e){return isEmpty((0,c.$H)(e)||(0,c.pD)(e),(0,f.F)((0,c.kU)(e)))?null:e}function getDirectiveMatcher(e){var t=new Map,i=new Map;return e.forEach(function(e){e&&(e.name?t.set(e.name,e):e.test&&i.set(e.test,e))}),function(e){var o=t.get(e.name.value);return!o&&i.size&&i.forEach(function(t,i){i(e)&&(o=t)}),o}}function makeInUseGetterFunction(e){var t=new Map;return function(i){void 0===i&&(i=e);var o=t.get(i);return o||t.set(i,o={variables:new Set,fragmentSpreads:new Set}),o}}function removeDirectivesFromDocument(e,t){(0,c.A$)(t);for(var i=makeInUseGetterFunction(""),l=makeInUseGetterFunction(""),getInUse=function(e){for(var t=0,o=void 0;t<e.length&&(o=e[t]);++t)if(!(0,p.k)(o)){if(o.kind===s.h.OPERATION_DEFINITION)return i(o.name&&o.name.value);if(o.kind===s.h.FRAGMENT_DEFINITION)return l(o.name.value)}return!1!==globalThis.__DEV__&&a.kG.error(97),null},f=0,h=t.definitions.length-1;h>=0;--h)t.definitions[h].kind===s.h.OPERATION_DEFINITION&&++f;var d=getDirectiveMatcher(e),shouldRemoveField=function(e){return(0,p.O)(e)&&e.map(d).some(function(e){return e&&e.remove})},y=new Map,v=!1,m={enter:function(e){if(shouldRemoveField(e.directives))return v=!0,null}},b=(0,u.Vn)(t,{Field:m,InlineFragment:m,VariableDefinition:{enter:function(){return!1}},Variable:{enter:function(e,t,i,o,a){var s=getInUse(a);s&&s.variables.add(e.name.value)}},FragmentSpread:{enter:function(e,t,i,o,a){if(shouldRemoveField(e.directives))return v=!0,null;var s=getInUse(a);s&&s.fragmentSpreads.add(e.name.value)}},FragmentDefinition:{enter:function(e,t,i,o){y.set(JSON.stringify(o),e)},leave:function(e,t,i,o){return e===y.get(JSON.stringify(o))?e:f>0&&e.selectionSet.selections.every(function(e){return e.kind===s.h.FIELD&&"__typename"===e.name.value})?(l(e.name.value).removed=!0,v=!0,null):void 0}},Directive:{leave:function(e){if(d(e))return v=!0,null}}});if(!v)return t;var populateTransitiveVars=function(e){return e.transitiveVars||(e.transitiveVars=new Set(e.variables),e.removed||e.fragmentSpreads.forEach(function(t){populateTransitiveVars(l(t)).transitiveVars.forEach(function(t){e.transitiveVars.add(t)})}
1)),e},g=new Set;b.definitions.forEach(function(e){e.kind===s.h.OPERATION_DEFINITION?populateTransitiveVars(i(e.name&&e.name.value)).fragmentSpreads.forEach(function(e){g.add(e)}):e.kind!==s.h.FRAGMENT_DEFINITION||0!==f||l(e.name.value).removed||g.add(e.name.value)}),g.forEach(function(e){populateTransitiveVars(l(e)).fragmentSpreads.forEach(function(e){g.add(e)})});var k={enter:function(e){var t;if(t=e.name.value,!g.has(t)||l(t).removed)return null}};return nullIfDocIsEmpty((0,u.Vn)(b,{FragmentSpread:k,FragmentDefinition:k,OperationDefinition:{leave:function(e){if(e.variableDefinitions){var t=populateTransitiveVars(i(e.name&&e.name.value)).transitiveVars;if(t.size<e.variableDefinitions.length)return(0,o.pi)((0,o.pi)({},e),{variableDefinitions:e.variableDefinitions.filter(function(e){return t.has(e.variable.name.value)})})}}}}))}var d=Object.assign(function(e){return(0,u.Vn)(e,{SelectionSet:{enter:function(e,t,i){if(!i||i.kind!==s.h.OPERATION_DEFINITION){var a=e.selections;if(!(!a||a.some(function(e){return(0,l.My)(e)&&("__typename"===e.name.value||0===e.name.value.lastIndexOf("__",0))}))&&!((0,l.My)(i)&&i.directives&&i.directives.some(function(e){return"export"===e.name.value})))return(0,o.pi)((0,o.pi)({},e),{selections:(0,o.ev)((0,o.ev)([],a,!0),[h],!1)})}}}})},{added:function(e){return e===h}});function buildQueryFromSelectionSet(e){return"query"===(0,c.p$)(e).operation?e:(0,u.Vn)(e,{OperationDefinition:{enter:function(e){return(0,o.pi)((0,o.pi)({},e),{operation:"query"})}}})}function removeClientSetsFromDocument(e){return(0,c.A$)(e),removeDirectivesFromDocument([{test:function(e){return"client"===e.name.value},remove:!0}],e)}function addNonReactiveToNamedFragments(e){return(0,c.A$)(e),(0,u.Vn)(e,{FragmentSpread:function(e){var t;if(null===(t=e.directives)||void 0===t||!t.some(function(e){return"unmask"===e.name.value}))return(0,o.pi)((0,o.pi)({},e),{directives:(0,o.ev)((0,o.ev)([],e.directives||[],!0),[{kind:s.h.DIRECTIVE,name:{kind:s.h.NAME,value:"nonreactive"}}
1],!1)})}})}},37981:function(e,t,i){"use strict";let o;i.d(t,{fe:function(){return tc},e$:function(){return tf},h4:function(){return tl}});var a,s,u=i(50044),c=i(16735);let defaultMakeData=()=>Object.create(null),{forEach:l,slice:f}=Array.prototype,{hasOwnProperty:p}=Object.prototype;let Trie=class Trie{constructor(e=!0,t=defaultMakeData){this.weakness=e,this.makeData=t}lookup(){return this.lookupArray(arguments)}lookupArray(e){let t=this;return l.call(e,e=>t=t.getChildTrie(e)),p.call(t,"data")?t.data:t.data=this.makeData(f.call(e))}peek(){return this.peekArray(arguments)}peekArray(e){let t=this;for(let i=0,o=e.length;t&&i<o;++i){let o=t.mapFor(e[i],!1);t=o&&o.get(e[i])}return t&&t.data}remove(){return this.removeArray(arguments)}removeArray(e){let t;if(e.length){let i=e[0],o=this.mapFor(i,!1),a=o&&o.get(i);!a||(t=a.removeArray(f.call(e,1)),a.data||a.weak||a.strong&&a.strong.size||o.delete(i))}else t=this.data,delete this.data;return t}getChildTrie(e){let t=this.mapFor(e,!0),i=t.get(e);return i||t.set(e,i=new Trie(this.weakness,this.makeData)),i}mapFor(e,t){return this.weakness&&isObjRef(e)?this.weak||(t?this.weak=new WeakMap:void 0):this.strong||(t?this.strong=new Map:void 0)}};function isObjRef(e){switch(typeof e){case"object":if(null===e)break;case"function":return!0}return!1}var h=i(64565);let d=null,y={},v=1;function maybe(e){try{return e()}catch(e){}}let m="@wry/context:Slot",b=maybe(()=>globalThis)||maybe(()=>global)||Object.create(null),g=b[m]||Array[m]||function(e){try{Object.defineProperty(b,m,{value:e,enumerable:!1,writable:!1,configurable:!0})}finally{return e}}(class{constructor(){this.id=["slot",v++,Date.now(),Math.random().toString(36).slice(2)].join(":")}hasValue(){for(let e=d;e;e=e.parent)if(this.id in e.slots){let t=e.slots[this.id];if(t===y)break;return e!==d&&(d.slots[this.id]=t),!0}return d&&(d.slots[this.id]=y),!1}getValue(){if(this.hasValue())return d.slots[this.id]}withValue(e,t,i,o){let a={__proto__:null,[this.id]:e},s=d;d={parent:s,slots:a};try{return t.apply(o,i)}finally{d=s}}static bind(e){let t=d;return function(){let i=d;try{return d=t,e.apply(this,arguments)}finally{d=i}}}static noContext(e,t,i){if(!d)return e.apply(i,t);{let o=d;try{return d=null,e.apply(i,t)}finally{d=o}}}}),{bind:k,noContext:S}=g,_=new g,{hasOwnProperty:w}=Object.prototype,O=Array.from||function(e){let t=[];return e.forEach(e=>t.push(e)),t};function maybeUnsubscribe(e){let{unsubscribe:t}=e;"function"==typeof t&&(e.unsubscribe=void 0,t())}let D=[];function assert(e,t){if(!e)throw Error(t||"assertion failure")}function valueIs(e,t){let i=e.length;return i>0&&i===t.length&&e[i-1]===t[i-1]}function valueGet(e){switch(e.length){case 0:throw Error("unknown value");case 1:return e[0];case 2:throw e[1]}}let Entry=class Entry{constructor(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,++Entry.count}peek(){if(1===this.value.length&&!mightBeDirty(this))return rememberParent(this),this.value[0]}recompute(e){return assert(!this.recomputing,"already recomputing"),rememberParent(this),mightBeDirty(this)?reallyRecompute(this,e):valueGet(this.value)}setDirty(){this.dirty||(this.dirty=!0,eachParent(this,reportDirtyChild),maybeUnsubscribe(this))}dispose(){this.setDirty(),forgetChildren(this),eachParent(this,(e,t)=>{e.setDirty(),forgetChild(e,this)})}forget(){this.dispose()}dependOn(e){e.add(this),this.deps||(this.deps=D.pop()||new Set),this.deps.add(e)}forgetDeps(){this.deps&&(O(this.deps).forEach(e=>e.delete(this)),this.deps.clear(),D.push(this.deps),this.deps=null)}};function rememberParent(e){let t=_.getValue();if(t)return e.parents.add(t),t.childValues.has(e)||t.childValues.set(e,[]),mightBeDirty(e)?reportDirtyChild(t,e):reportCleanChild(t,e),t}function reallyRecompute(e,t){return forgetChildren(e),_.withValue(e,recomputeNewValue,[e,t]),maybeSubscribe(e,t)&&setClean(e),valueGet(e.value)}function recomputeNewValue(e,t){let i;e.recomputing=!0;let{normalizeResult:o}=e;o&&1===e.value.length&&(i=e.value.slice(0)),e.value.length=0;try{if(e.value[0]=e.fn.apply(null,t),o&&i&&!valueIs(i,e.value))try{e.value[0]=o(e.value[0],i[0])}catch(e){}}catch(t){e.value[1]=t}e.recomputing=!1}function mightBeDirty(e){return e.dirty||!!(e.dirtyChildren&&e.dirtyChildren.size)}function setClean(e){if(e.dirty=!1,!mightBeDirty(e))eachParent(e,reportCleanChild)}function eachParent(e,t){let i=e.parents.size;if(i){let o=O(e.parents);for(let a=0;a<i;++a)t(o[a],e)}}function reportDirtyChild(e,t){assert(e.childValues.has(t)),assert(mightBeDirty(t));let i=!mightBeDirty(e);if(e.dirtyChildren){if(e.dirtyChildren.has(t))return}else e.dirtyChildren=D.pop()||new Set;e.dirtyChildren.add(t),i&&eachParent(e,reportDirtyChild)}function reportCleanChild(e,t){assert(e.childValues.has(t)),assert(!mightBeDirty(t));let i=e.childValues.get(t);0===i.length?e.childValues.set(t,t.value.slice(0)):valueIs(i,t.value)||e.setDirty(),removeDirtyChild(e,t),mightBeDirty(e)||eachParent(e,reportCleanChild)}function removeDirtyChild(e,t){let i=e.dirtyChildren;i&&(i.delete(t),0===i.size&&(D.length<100&&D.push(i),e.dirtyChildren=null))}function forgetChildren(e){e.childValues.size>
10&&e.childValues.forEach((t,i)=>{forgetChild(e,i)}),e.forgetDeps(),assert(null===e.dirtyChildren)}function forgetChild(e,t){t.parents.delete(e),e.childValues.delete(t),removeDirtyChild(e,t)}function maybeSubscribe(e,t){if("function"==typeof e.subscribe)try{maybeUnsubscribe(e),e.unsubscribe=e.subscribe.apply(null,t)}catch(t){return e.setDirty(),!1}return!0}Entry.count=0;let F={setDirty:!0,dispose:!0,forget:!0};function dep(e){let t=new Map,i=e&&e.subscribe;function depend(e){let o=_.getValue();if(o){let a=t.get(e);a||t.set(e,a=new Set),o.dependOn(a),"function"==typeof i&&(maybeUnsubscribe(a),a.unsubscribe=i(e))}}return depend.dirty=function(e,i){let o=t.get(e);if(o){let a=i&&w.call(F,i)?i:"setDirty";O(o).forEach(e=>e[a]()),t.delete(e),maybeUnsubscribe(o)}},depend}function defaultMakeCacheKey(...e){let t=o||(o=new Trie("function"==typeof WeakMap));return t.lookupArray(e)}let E=new Set;function wrap(e,{max:t=65536,keyArgs:i,makeCacheKey:o=defaultMakeCacheKey,normalizeResult:a,subscribe:s,cache:u=h.e}=Object.create(null)){let c="function"==typeof u?new u(t,e=>e.dispose()):u,optimistic=function(){let t=o.apply(null,i?i.apply(null,arguments):arguments);if(void 0===t)return e.apply(null,arguments);let u=c.get(t);u||(c.set(t,u=new Entry(e)),u.normalizeResult=a,u.subscribe=s,u.forget=()=>c.delete(t));let l=u.recompute(Array.prototype.slice.call(arguments));return c.set(t,u),E.add(c),_.hasValue()||(E.forEach(e=>e.clean()),E.clear()),l};function dirtyKey(e){let t=e&&c.get(e);t&&t.setDirty()}function peekKey(e){let t=e&&c.get(e);if(t)return t.peek()}function forgetKey(e){return!!e&&c.delete(e)}return Object.defineProperty(optimistic,"size",{get:()=>c.size,configurable:!1,enumerable:!1}),Object.freeze(optimistic.options={max:t,keyArgs:i,makeCacheKey:o,normalizeResult:a,subscribe:s,cache:c}),optimistic.dirtyKey=dirtyKey,optimistic.dirty=function(){dirtyKey(o.apply(null,arguments))},optimistic.peekKey=peekKey,optimistic.peek=function(){return peekKey(o.apply(null,arguments))},optimistic.forgetKey=forgetKey,optimistic.forget=function(){return forgetKey(o.apply(null,arguments))},optimistic.makeCacheKey=o,optimistic.getKey=i?function(){return o.apply(null,i.apply(null,arguments))}:o,Object.freeze(optimistic)}var C=i(36510),I=i(86275),R=i(6431),T=i(11739),Q=i(38681),M=i(93592),x=i(72074),P=i(89660),j=i(85812),A=i(44339);function equalByQuery(e,t,i,o){var a=t.data,s=(0,u._T)(t,["data"]),c=i.data,l=(0,u._T)(i,["data"]);return(0,C.Z)(s,l)&&equalBySelectionSet((0,T.p$)(e).selectionSet,a,c,{fragmentMap:(0,I.F)((0,T.kU)(e)),variables:o})}function equalBySelectionSet(e,t,i,o){if(t===i)return!0;var a=new Set;return e.selections.every(function(e){if(a.has(e)||(a.add(e),!(0,j.LZ)(e,o.variables)||selectionHasNonreactiveDirective(e)))return!0;if((0,A.My)(e)){var s=(0,A.u2)(e),u=t&&t[s],c=i&&i[s],l=e.selectionSet;if(!l)return(0,C.Z)(u,c);var f=Array.isArray(u),p=Array.isArray(c);if(f!==p)return!1;if(f&&p){var h=u.length;if(c.length!==h)return!1;for(var d=0;d<h;++d)if(!equalBySelectionSet(l,u[d],c[d],o))return!1;return!0}return equalBySelectionSet(l,u,c,o)}var y=(0,I.hi)(e,o.fragmentMap);if(y)return!!selectionHasNonreactiveDirective(y)||equalBySelectionSet(y.selectionSet,t,i,o)})}function selectionHasNonreactiveDirective(e){return!!e.directives&&e.directives.some(directiveIsNonreactive)}function directiveIsNonreactive(e){return"nonreactive"===e.name.value}var q=i(55459),N=i(38191),L=N.mr?WeakMap:Map,V=N.sy?WeakSet:Set,G=new g,z=!1;function warnOnImproperCacheImplementation(){z||(z=!0,!1!==globalThis.__DEV__&&c.kG.warn(52))}var W=i(68859);function maskDefinition(e,t,i){return G.withValue(!0,function(){var o=maskSelectionSet(e,t,i,!1);return Object.isFrozen(e)&&(0,W.J)(o),o})}function getMutableTarget(e,t){if(t.has(e))return t.get(e);var i=Array.isArray(e)?[]:Object.create(null);return t.set(e,i),i}function maskSelectionSet(e,t,i,o,a){var s,u=i.knownChanged,l=getMutableTarget(e,i.mutableTargets);if(Array.isArray(e)){for(var f=0,p=Array.from(e.entries());f<p.length;f++){var h=p[f],d=h[0],y=h[1];if(null===y){l[d]=null;continue}var v=maskSelectionSet(y,t,i,o,!1!==globalThis.__DEV__?"".concat(a||"","[").concat(d,"]"):void 0);u.has(v)&&u.add(l),l[d]=v}return u.has(l)?l:e}for(var m=0,b=t.selections;m<b.length;m++){var g=b[m],k=void 0;if(o&&u.add(l),g.kind===q.h.FIELD){var S=(0,A.u2)(g),_=g.selectionSet;if(void 0===(k=l[S]||e[S]))continue;if(_&&null!==k){var v=maskSelectionSet(e[S],_,i,o,!1!==globalThis.__DEV__?"".concat(a||"",".").concat(S):void 0);u.has(v)&&(k=v)}!1!==globalThis.__DEV__||(l[S]=k),!1!==globalThis.__DEV__&&(!o||"__typename"===S||(null===(s=Object.getOwnPropertyDescriptor(l,S))||void 0===s?void 0:s.value)?(delete l[S],l[S]=k):Object.defineProperty(l,S,getAccessorWarningDescriptor(S,k,a||"",i.operationName,i.operationType)))}if(g.kind===q.h.INLINE_FRAGMENT&&(!g.typeCondition||i.cache.fragmentMatches(g,e.__typename))&&(k=maskSelectionSet(e,g.selectionSet,i,o,a)),g.kind===q.h.FRAGMENT_SPREAD){var w=g.name.value,O=i.fragmentMap[w]||(i.fragmentMap[w]=i.cache.lookupFragment(w));(0,c.kG)(O,47,w);var D=(0,j.GT)(g);"mask"!==D&&(k=maskSelectionSet(e,O.selectionSet,i,"migrate"===D,a))}u.has(k)&&u.add(l)}return"__typename"in e&&!("__typename"in l)&&(l.__typename=e.__typename),Object.keys(l).length!==Object.keys(e).length&&u.add(l),u.has(l)?l:e}function getAccessorWarningDescriptor(e,t,i,o,a){var getValue=function(){return G.getValue()||(!1!==globalThis.__DEV__&&c.kG.warn(48,o?"".concat(a," '").concat(o,"'"):"anonymous ".concat(a),"".concat(i,".").concat(e).replace(/^\./,"")),getValue=function(){return t}),t};return{get:function(){return getValue()},set:function(e){getValue=function(){return e}},enumerable:!0,configurable:!0}}function maskFragment(e,t,i,o){if(!i.fragmentMatches)return!1!==globalThis.__DEV__&&warnOnImproperCacheImplementation(),e;var a=t.definitions.filter(function(e){return e.kind===q.h.FRAGMENT_DEFINITION});void 0===o&&((0,c.kG)(1===a.length,49,a.length),o=a[0].name.value);var s=a.find(function(e){return e.name.value===o});return((0,c.kG)(!!s,50,o),null==e||(0,C.Z)(e,{}))?e:maskDefinition(e,s.selectionSet,{operationType:"fragment",operationName:s.name.value,fragmentMap:(0,I.F)((0,T.kU)(t)),cache:i,mutableTargets:new L,knownChanged:new V})}var B=function(){function ApolloCache(){this.assumeImmutableResults=!1,this.getFragmentDoc=wrap(I.Yk,{max:R.Q["cache.fragmentQueryDocuments"]||1e3,cache:x.
1k})}return ApolloCache.prototype.lookupFragment=function(e){return null},ApolloCache.prototype.batch=function(e){var t,i=this,o="string"==typeof e.optimistic?e.optimistic:!1===e.optimistic?null:void 0;return this.performTransaction(function(){return t=e.update(i)},o),t},ApolloCache.prototype.recordOptimisticTransaction=function(e,t){this.performTransaction(e,t)},ApolloCache.prototype.transformDocument=function(e){return e},ApolloCache.prototype.transformForLink=function(e){return e},ApolloCache.prototype.identify=function(e){},ApolloCache.prototype.gc=function(){return[]},ApolloCache.prototype.modify=function(e){return!1},ApolloCache.prototype.readQuery=function(e,t){return void 0===t&&(t=!!e.optimistic),this.read((0,u.pi)((0,u.pi)({},e),{rootId:e.id||"ROOT_QUERY",optimistic:t}))},ApolloCache.prototype.watchFragment=function(e){var t,i=this,o=e.fragment,a=e.fragmentName,s=e.from,l=e.optimistic,f=(0,u._T)(e,["fragment","fragmentName","from","optimistic"]),p=this.getFragmentDoc(o,a),h=void 0===s||"string"==typeof s?s:this.identify(s),d=!!e[Symbol.for("apollo.dataMasking")];if(!1!==globalThis.__DEV__){var y=a||(0,T.pD)(o).name.value;h||!1===globalThis.__DEV__||c.kG.warn(1,y)}var v=(0,u.pi)((0,u.pi)({},f),{returnPartialData:!0,id:h,query:p,optimistic:void 0===l||l});return new Q.y(function(s){return i.watch((0,u.pi)((0,u.pi)({},v),{immediate:!0,callback:function(c){var l=d?maskFragment(c.result,o,i,a):c.result;if(!(t&&equalByQuery(p,{data:t.result},{data:l},e.variables))){var f={data:l,complete:!!c.complete};c.missing&&(f.missing=(0,M.bw)(c.missing.map(function(e){return e.missing}))),t=(0,u.pi)((0,u.pi)({},c),{result:l}),s.next(f)}}}))})},ApolloCache.prototype.readFragment=function(e,t){return void 0===t&&(t=!!e.optimistic),this.read((0,u.pi)((0,u.pi)({},e),{query:this.getFragmentDoc(e.fragment,e.fragmentName),rootId:e.id,optimistic:t}))},ApolloCache.prototype.writeQuery=function(e){var t=e.id,i=e.data,o=(0,u._T)(e,["id","data"]);return this.write(Object.assign(o,{dataId:t||"ROOT_QUERY",result:i}))},ApolloCache.prototype.writeFragment=function(e){var t=e.id,i=e.data,o=e.fragment,a=e.fragmentName,s=(0,u._T)(e,["id","data","fragment","fragmentName"]);return this.write(Object.assign(s,{query:this.getFragmentDoc(o,a),dataId:t,result:i}))},ApolloCache.prototype.updateQuery=function(e,t){return this.batch({update:function(i){var o=i.readQuery(e),a=t(o);return null==a?o:(i.writeQuery((0,u.pi)((0,u.pi)({},e),{data:a})),a)}})},ApolloCache.prototype.updateFragment=function(e,t){return this.batch({update:function(i){var o=i.readFragment(e),a=t(o);return null==a?o:(i.writeFragment((0,u.pi)((0,u.pi)({},e),{data:a})),a)}})},ApolloCache}();!1!==globalThis.__DEV__&&(B.prototype.getMemoryInternals=P.Kb);var U=function(e){function MissingFieldError(t,i,o,a){var s,u=e.call(this,t)||this;if(u.message=t,u.path=i,u.query=o,u.variables=a,Array.isArray(u.path)){u.missing=u.message;for(var c=u.path.length-1;c>=0;--c)u.missing=((s={})[u.path[c]]=u.missing,s)}else u.missing=u.path;return u.__proto__=MissingFieldError.prototype,u}return(0,u.ZT)(MissingFieldError,e),MissingFieldError}(Error);function identity(e){return e}var K=function(){function DocumentTransform(e,t){void 0===t&&(t=Object.create(null)),this.resultCache=N.sy?new WeakSet:new Set,this.transform=e,t.getCacheKey&&(this.getCacheKey=t.getCacheKey),this.cached=!1!==t.cache,this.resetCache()}return DocumentTransform.prototype.getCacheKey=function(e){return[e]},DocumentTransform.identity=function(){return new DocumentTransform(identity,{cache:!1})},DocumentTransform.split=function(e,t,i){return void 0===i&&(i=DocumentTransform.identity()),Object.assign(new DocumentTransform(function(o){return(e(o)?t:i).transformDocument(o)},{cache:!1}),{left:t,right:i})},DocumentTransform.prototype.resetCache=function(){var e=this;if(this.cached){var t=new Trie(N.mr);this.performWork=wrap(DocumentTransform.prototype.performWork.bind(this),{makeCacheKey:function(i){var o=e.getCacheKey(i);if(o)return(0,c.kG)(Array.isArray(o),77),t.lookupArray(o)},max:R.Q["documentTransform.cache"],cache:x.k})}},DocumentTransform.prototype.performWork=function(e){return(0,T.A$)(e),this.transform(e)},DocumentTransform.prototype.transformDocument=function(e){if(this.resultCache.has(e))return e;var t=this.performWork(e);return this.resultCache.add(t),t},DocumentTransform.prototype.concat=function(e){var t=this;return Object.assign(new DocumentTransform(function(i){return e.transformDocument(t.transformDocument(i))},{cache:!1}),{left:this,right:e})},DocumentTransform}(),Y=i(90535),H=i(97440),J=i(34657),$=i(18865),Z=i(88550),X=i(72619),ee=Object.prototype.hasOwnProperty;function isNullish(e){return null==e}function defaultDataIdFromObject(e,t){var i=e.__typename,o=e.id,a=e._id;if("string"==typeof i&&(t&&(t.keyObject=isNullish(o)?isNullish(a)?void 0:{_id:a}:{id:o}),isNullish(o)&&!isNullish(a)&&(o=a),!isNullish(o)))return"".concat(i,":").concat("number"==typeof o||"string"==typeof o?o:JSON.stringify(o))}var et={dataIdFromObject:defaultDataIdFromObject,addTypename:!0,resultCaching:!0,canonizeResults:!1};function normalizeConfig(e){return(0,$.o)(et,e)}function shouldCanonizeResults(e){var t=e.canonizeResults;return void 0===t?et.canonizeResults:t}function getTypenameFromStoreObject(e,t){return(0,A.Yk)(t)?e.get(t.__ref,"__typename"):t&&t.__typename}var er=/^[_a-z][_0-9a-z]*/i;function fieldNameFromStoreName(e){var t=e.match(er);return t?t[0]:e}function selectionSetMatchesResult(e,t,i){return!!(0,Z.s)(t)&&((0,X.k)(t)?t.every(function(t){return selectionSetMatchesResult(e,t,i)}):e.selections.every(function(e){if((0,A.My)(e)&&(0,j.LZ)(e,i)){var o=(0,A.u2)(e);return ee.call(t,o)&&(!e.selectionSet||selectionSetMatchesResult(e.selectionSet,t[o],i))}return!0}))}function storeValueIsStoreObject(e){return(0,Z.s)(e)&&!(0,A.Yk)(e)&&!(0,X.k)(e)}function makeProcessedFieldsMerger(){return new M.w0}function extractFragmentContext(e,t){var i=(0,I.F)((0,T.kU)(e));return{fragmentMap:i,lookupFragment:function(e){var o=i[e];return!o&&t&&(o=t.lookup(e)),o||null}}}var en=Object.create(null),delModifier=function(){return en},ei=Object.create(null),eo=function(){function EntityStore(e,t){var i=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,W.J)((0,A.Yk)(e)?i.get(e.__ref,t):e&&e[t])},this.canRead=function(e){return(0,A.Yk)(e)?i.has(e.__ref):"object"==typeof e},this.toReference=function(e,t){if("string"==typeof e)return(0,A.kQ)(e);if((0,A.Yk)(e))return e;var o=i.policies.identify(e)[0];if(o){var a=(0,A.kQ)(o);return t&&i.merge(o,e),a}}}return EntityStore.prototype.toObject=function(){return(0,u.pi)({},this.data)},EntityStore.prototype.has=function(e){return void 0!==this.lookup(e,!0)},EntityStore.prototype.get=function(e,t){if(this.group.depend(e,t),ee.call(this.data,e)){var i=this.data[e];if(i&&ee.call(i,t))return i[t]}return"__typename"===t&&ee.call(this.policies.rootTypenamesById,e)?this.policies.rootTypenamesById[e]:this instanceof es?this.parent.get(e,t):void 0},EntityStore.prototype.lookup=function(e,t){return(t&&this.group.depend(e,"__exists"),ee.call(this.data,e))?this.data[e]:this instanceof es?this.parent.lookup(e,t):this.policies.rootTypenamesById[e]?Object.create(null):void 0},EntityStore.prototype.merge=function(e,t){var i,o=this;(0,A.Yk)(e)&&(e=e.__ref),(0,A.Yk)(t)&&(t=t.__ref);var a="string"==typeof e?this.lookup(i=e):e,s="string"==typeof t?this.lookup(i=t):t;if(s){(0,c.kG)("string"==typeof i,2);
1var u=new M.w0(storeObjectReconciler).merge(a,s);if(this.data[i]=u,u!==a&&(delete this.refs[i],this.group.caching)){var l=Object.create(null);a||(l.__exists=1),Object.keys(s).forEach(function(e){if(!a||a[e]!==u[e]){l[e]=1;var t=fieldNameFromStoreName(e);t===e||o.policies.hasKeyArgs(u.__typename,t)||(l[t]=1),void 0!==u[e]||o instanceof es||delete u[e]}}),l.__typename&&!(a&&a.__typename)&&this.policies.rootTypenamesById[i]===u.__typename&&delete l.__typename,Object.keys(l).forEach(function(e){return o.group.dirty(i,e)})}}},EntityStore.prototype.modify=function(e,t){var i=this,o=this.lookup(e);if(o){var a=Object.create(null),s=!1,l=!0,f={DELETE:en,INVALIDATE:ei,isReference:A.Yk,toReference:this.toReference,canRead:this.canRead,readField:function(t,o){return i.policies.readField("string"==typeof t?{fieldName:t,from:o||(0,A.kQ)(e)}:t,{store:i})}};if(Object.keys(o).forEach(function(p){var h=fieldNameFromStoreName(p),d=o[p];if(void 0!==d){var y="function"==typeof t?t:t[p]||t[h];if(y){var v=y===delModifier?en:y((0,W.J)(d),(0,u.pi)((0,u.pi)({},f),{fieldName:h,storeFieldName:p,storage:i.getStorage(e,p)}));if(v===ei)i.group.dirty(e,p);else if(v===en&&(v=void 0),v!==d&&(a[p]=v,s=!0,d=v,!1!==globalThis.__DEV__)){var checkReference=function(e){if(void 0===i.lookup(e.__ref))return!1!==globalThis.__DEV__&&c.kG.warn(3,e),!0};if((0,A.Yk)(v))checkReference(v);else if(Array.isArray(v))for(var m=!1,b=void 0,g=0,k=v;g<k.length;g++){var S=k[g];if((0,A.Yk)(S)){if(m=!0,checkReference(S))break}else"object"==typeof S&&S&&i.policies.identify(S)[0]&&(b=S);if(m&&void 0!==b){!1!==globalThis.__DEV__&&c.kG.warn(4,b);break}}}}void 0!==d&&(l=!1)}}),s)return this.merge(e,a),l&&(this instanceof es?this.data[e]=void 0:delete this.data[e],this.group.dirty(e,"__exists")),!0}return!1},EntityStore.prototype.delete=function(e,t,i){var o,a=this.lookup(e);if(a){var s=this.getFieldValue(a,"__typename"),u=t&&i?this.policies.getStoreFieldName({typename:s,fieldName:t,args:i}):t;return this.modify(e,u?((o={})[u]=delModifier,o):delModifier)}return!1},EntityStore.prototype.evict=function(e,t){var i=!1;return e.id&&(ee.call(this.data,e.id)&&(i=this.delete(e.id,e.fieldName,e.args)),this instanceof es&&this!==t&&(i=this.parent.evict(e,t)||i),(e.fieldName||i)&&this.group.dirty(e.id,e.fieldName||"__exists")),i},EntityStore.prototype.clear=function(){this.replace(null)},EntityStore.prototype.extract=function(){var e=this,t=this.toObject(),i=[];return this.getRootIdSet().forEach(function(t){ee.call(e.policies.rootTypenamesById,t)||i.push(t)}),i.length&&(t.__META={extraRootIds:i.sort()}),t},EntityStore.prototype.replace=function(e){var t=this;if(Object.keys(this.data).forEach(function(i){e&&ee.call(e,i)||t.delete(i)}),e){var i=e.__META,o=(0,u._T)(e,["__META"]);Object.keys(o).forEach(function(e){t.merge(e,o[e])}),i&&i.extraRootIds.forEach(this.retain,this)}},EntityStore.prototype.retain=function(e){return this.rootIds[e]=(this.rootIds[e]||0)+1},EntityStore.prototype.release=function(e){if(this.rootIds[e]>0){var t=--this.rootIds[e];return t||delete this.rootIds[e],t}return 0},EntityStore.prototype.getRootIdSet=function(e){return void 0===e&&(e=new Set),Object.keys(this.rootIds).forEach(e.add,e),this instanceof es?this.parent.getRootIdSet(e):Object.keys(this.policies.rootTypenamesById).forEach(e.add,e),e},EntityStore.prototype.gc=function(){var e=this,t=this.getRootIdSet(),i=this.toObject();t.forEach(function(o){ee.call(i,o)&&(Object.keys(e.findChildRefIds(o)).forEach(t.add,t),delete i[o])});var o=Object.keys(i);if(o.length){for(var a=this;a instanceof es;)a=a.parent;o.forEach(function(e){return a.delete(e)})}return o},EntityStore.prototype.findChildRefIds=function(e){if(!ee.call(this.refs,e)){var t=this.refs[e]=Object.create(null),i=this.data[e];if(!i)return t;var o=new Set([i]);o.forEach(function(e){(0,A.Yk)(e)&&(t[e.__ref]=!0),(0,Z.s)(e)&&Object.keys(e).forEach(function(t){var i=e[t];(0,Z.s)(i)&&o.add(i)})})}return this.refs[e]},EntityStore.prototype.makeCacheKey=function(){return this.group.keyMaker.lookupArray(arguments)},EntityStore}(),ea=function(){function CacheGroup(e,t){void 0===t&&(t=null),this.caching=e,this.parent=t,this.d=null,this.resetCaching()}return CacheGroup.prototype.resetCaching=function(){this.d=this.caching?dep():null,this.keyMaker=new Trie(N.mr)}
1,CacheGroup.prototype.depend=function(e,t){if(this.d){this.d(t+"#"+e);var i=fieldNameFromStoreName(t);i!==t&&this.d(i+"#"+e),this.parent&&this.parent.depend(e,t)}},CacheGroup.prototype.dirty=function(e,t){this.d&&this.d.dirty(t+"#"+e,"__exists"===t?"forget":"setDirty")},CacheGroup}();function maybeDependOnExistenceOfEntity(e,t){supportsResultCaching(e)&&e.group.depend(t,"__exists")}s=function(e){function Root(t){var i=t.policies,o=t.resultCaching,a=t.seed,s=e.call(this,i,new ea(void 0===o||o))||this;return s.stump=new eu(s),s.storageTrie=new Trie(N.mr),a&&s.replace(a),s}return(0,u.ZT)(Root,e),Root.prototype.addLayer=function(e,t){return this.stump.addLayer(e,t)},Root.prototype.removeLayer=function(){return this},Root.prototype.getStorage=function(){return this.storageTrie.lookupArray(arguments)},Root}(a=eo||(eo={})),a.Root=s;var es=function(e){function Layer(t,i,o,a){var s=e.call(this,i.policies,a)||this;return s.id=t,s.parent=i,s.replay=o,s.group=a,o(s),s}return(0,u.ZT)(Layer,e),Layer.prototype.addLayer=function(e,t){return new Layer(e,this,t,this.group)},Layer.prototype.removeLayer=function(e){var t=this,i=this.parent.removeLayer(e);return e===this.id?(this.group.caching&&Object.keys(this.data).forEach(function(e){var o=t.data[e],a=i.lookup(e);a?o?o!==a&&Object.keys(o).forEach(function(i){(0,C.D)(o[i],a[i])||t.group.dirty(e,i)}):(t.group.dirty(e,"__exists"),Object.keys(a).forEach(function(i){t.group.dirty(e,i)})):t.delete(e)}),i):i===this.parent?this:i.addLayer(this.id,this.replay)},Layer.prototype.toObject=function(){return(0,u.pi)((0,u.pi)({},this.parent.toObject()),this.data)},Layer.prototype.findChildRefIds=function(t){var i=this.parent.findChildRefIds(t);return ee.call(this.data,t)?(0,u.pi)((0,u.pi)({},i),e.prototype.findChildRefIds.call(this,t)):i},Layer.prototype.getStorage=function(){for(var e=this.parent;e.parent;)e=e.parent;return e.getStorage.apply(e,arguments)},Layer}(eo),eu=function(e){function Stump(t){return e.call(this,"EntityStore.Stump",t,function(){},new ea(t.group.caching,t.group))||this}return(0,u.ZT)(Stump,e),Stump.prototype.removeLayer=function(){return this},Stump.prototype.merge=function(e,t){return this.parent.merge(e,t)},Stump}(es);function storeObjectReconciler(e,t,i){var o=e[i],a=t[i];return(0,C.D)(o,a)?o:a}function supportsResultCaching(e){return!!(e instanceof eo&&e.group.caching)}function shallowCopy(e){return(0,Z.s)(e)?(0,X.k)(e)?e.slice(0):(0,u.pi)({__proto__:Object.getPrototypeOf(e)},e):e}var ec=function(){function ObjectCanon(){this.known=new(N.sy?WeakSet:Set),this.pool=new Trie(N.mr),this.passes=new WeakMap,this.keysByJSON=new Map,this.empty=this.admit({})}return ObjectCanon.prototype.isKnown=function(e){return(0,Z.s)(e)&&this.known.has(e)},ObjectCanon.prototype.pass=function(e){if((0,Z.s)(e)){var t=shallowCopy(e);return this.passes.set(t,e),t}return e},ObjectCanon.prototype.admit=function(e){var t=this;if((0,Z.s)(e)){var i=this.passes.get(e);if(i)return i;switch(Object.getPrototypeOf(e)){case Array.prototype:if(this.known.has(e))break;var o=e.map(this.admit,this),a=this.pool.lookupArray(o);return a.array||(this.known.add(a.array=o),!1!==globalThis.__DEV__&&Object.freeze(o)),a.array;case null:case Object.prototype:if(this.known.has(e))break;var s=Object.getPrototypeOf(e),u=[s],c=this.sortedKeys(e);u.push(c.json);var l=u.length;c.sorted.forEach(function(i){u.push(t.admit(e[i]))});var a=this.pool.lookupArray(u);if(!a.object){var f=a.object=Object.create(s);this.known.add(f),c.sorted.forEach(function(e,t){f[e]=u[l+t]}),!1!==globalThis.__DEV__&&Object.freeze(f)}return a.object}}return e},ObjectCanon.prototype.sortedKeys=function(e){var t=Object.keys(e),i=this.pool.lookupArray(t);if(!i.keys){t.sort();var o=JSON.stringify(t);(i.keys=this.keysByJSON.get(o))||this.keysByJSON.set(o,i.keys={sorted:t,json:o})}return i.keys},ObjectCanon}();function execSelectionSetKeyArgs(e){return[e.selectionSet,e.objectOrReference,e.context,e.context.canonizeResults]}var el=function(){function StoreReader(e){var t=this;this.knownResults=new(N.mr?WeakMap:Map),this.config=(0,$.o)(e,{addTypename:!1!==e.addTypename,canonizeResults:shouldCanonizeResults(e)}),this.canon=e.canon||new ec,this.executeSelectionSet=wrap(function(e){var i,o=e.context.canonizeResults,a=execSelectionSetKeyArgs(e);a[3]=!o;var s=(i=t.executeSelectionSet).peek.apply(i,a);return s?o?(0,u.pi)((0,u.pi)({},s),{result:t.canon.admit(s.result)}):s:(maybeDependOnExistenceOfEntity(e.context.store,e.enclosingRef.__ref),t.execSelectionSetImpl(e))},{max:this.config.resultCacheMaxSize||R.Q["inMemoryCache.executeSelectionSet"]||5e4,keyArgs:execSelectionSetKeyArgs,makeCacheKey:function(e,t,i,o){if(supportsResultCaching(i.store))return i.store.makeCacheKey(e,(0,A.Yk)(t)?t.__ref:t,i.varString,o)}}),this.executeSubSelectedArray=wrap(function(e){return maybeDependOnExistenceOfEntity(e.context.store,e.enclosingRef.__ref),t.execSubSelectedArrayImpl(e)},{max:this.config.resultCacheMaxSize||R.Q["inMemoryCache.executeSubSelectedArray"]||1e4,makeCacheKey:function(e){var t=e.field,i=e.array,o=e.context;if(supportsResultCaching(o.store))return o.store.makeCacheKey(t,i,o.varString)}})}return StoreReader.prototype.resetCanon=function(){this.canon=new ec},StoreReader.prototype.diffQueryAgainstStore=function(e){var t,i=e.store,o=e.query,a=e.rootId,s=void 0===a?"ROOT_QUERY":a,c=e.variables,l=e.returnPartialData,f=e.canonizeResults,p=void 0===f?this.config.canonizeResults:f,h=this.config.cache.policies;c=(0,u.pi)((0,u.pi)({},(0,T.O4)((0,T.iW)(o))),c);var d=(0,A.kQ)(s),y=this.executeSelectionSet({selectionSet:(0,T.p$)(o).selectionSet,objectOrReference:d,enclosingRef:d,context:(0,u.pi)({store:i,query:o,policies:h,variables:c,varString:(0,H.B)(c),c
1anonizeResults:p},extractFragmentContext(o,this.config.fragments))});if(y.missing&&(t=[new U(firstMissing(y.missing),y.missing,o,c)],!(void 0===l||l)))throw t[0];return{result:y.result,complete:!t,missing:t}},StoreReader.prototype.isFresh=function(e,t,i,o){if(supportsResultCaching(o.store)&&this.knownResults.get(e)===i){var a=this.executeSelectionSet.peek(i,t,o,this.canon.isKnown(e));if(a&&e===a.result)return!0}return!1},StoreReader.prototype.execSelectionSetImpl=function(e){var t,i=this,o=e.selectionSet,a=e.objectOrReference,s=e.enclosingRef,u=e.context;if((0,A.Yk)(a)&&!u.policies.rootTypenamesById[a.__ref]&&!u.store.has(a.__ref))return{result:this.canon.empty,missing:"Dangling reference to missing ".concat(a.__ref," object")};var l=u.variables,f=u.policies,p=u.store.getFieldValue(a,"__typename"),h=[],d=new M.w0;function handleMissing(e,i){var o;return e.missing&&(t=d.merge(t,((o={})[i]=e.missing,o))),e.result}this.config.addTypename&&"string"==typeof p&&!f.rootIdsByTypename[p]&&h.push({__typename:p});var y=new Set(o.selections);y.forEach(function(e){var o,v;if((0,j.LZ)(e,l)){if((0,A.My)(e)){var m=f.readField({fieldName:e.name.value,field:e,variables:u.variables,from:a},u),b=(0,A.u2)(e);void 0===m?Y.Gw.added(e)||(t=d.merge(t,((o={})[b]="Can't find field '".concat(e.name.value,"' on ").concat((0,A.Yk)(a)?a.__ref+" object":"object "+JSON.stringify(a,null,2)),o))):(0,X.k)(m)?m.length>0&&(m=handleMissing(i.executeSubSelectedArray({field:e,array:m,enclosingRef:s,context:u}),b)):e.selectionSet?null!=m&&(m=handleMissing(i.executeSelectionSet({selectionSet:e.selectionSet,objectOrReference:m,enclosingRef:(0,A.Yk)(m)?m:s,context:u}),b)):u.canonizeResults&&(m=i.canon.pass(m)),void 0!==m&&h.push(((v={})[b]=m,v))}else{var g=(0,I.hi)(e,u.lookupFragment);if(!g&&e.kind===q.h.FRAGMENT_SPREAD)throw(0,c._K)(10,e.name.value);g&&f.fragmentMatches(g,p)&&g.selectionSet.selections.forEach(y.add,y)}}});var v={result:(0,M.bw)(h),missing:t},m=u.canonizeResults?this.canon.admit(v):(0,W.J)(v);return m.result&&this.knownResults.set(m.result,o),m},StoreReader.prototype.execSubSelectedArrayImpl=function(e){var t,i=this,o=e.field,a=e.array,s=e.enclosingRef,u=e.context,c=new M.w0;function handleMissing(e,i){var o;return e.missing&&(t=c.merge(t,((o={})[i]=e.missing,o))),e.result}return o.selectionSet&&(a=a.filter(u.store.canRead)),a=a.map(function(e,t){return null===e?null:(0,X.k)(e)?handleMissing(i.executeSubSelectedArray({field:o,array:e,enclosingRef:s,context:u}),t):o.selectionSet?handleMissing(i.executeSelectionSet({selectionSet:o.selectionSet,objectOrReference:e,enclosingRef:(0,A.Yk)(e)?e:s,context:u}),t):(!1!==globalThis.__DEV__&&assertSelectionSetForIdValue(u.store,o,e),e)}),{result:u.canonizeResults?this.canon.admit(a):a,missing:t}},StoreReader}();function firstMissing(e){try{JSON.stringify(e,function(e,t){if("string"==typeof t)throw t;return t})}catch(e){return e}}function assertSelectionSetForIdValue(e,t,i){if(!t.selectionSet){var o=new Set([i]);o.forEach(function(i){(0,Z.s)(i)&&((0,c.kG)(!(0,A.Yk)(i),11,getTypenameFromStoreObject(e,i),t.name.value),Object.values(i).forEach(o.add,o))})}}var ef=Object.prototype.toString;function cloneDeepHelper(e,t){switch(ef.call(e)){case"[object Array]":if((t=t||new Map).has(e))return t.get(e);var i=e.slice(0);return t.set(e,i),i.forEach(function(e,o){i[o]=cloneDeepHelper(e,t)}),i;case"[object Object]":if((t=t||new Map).has(e))return t.get(e);var o=Object.create(Object.getPrototypeOf(e));return t.set(e,o),Object.keys(e).forEach(function(i){o[i]=cloneDeepHelper(e[i],t)}),o;default:return e}}var ep=i(91286),eh=new g,ed=new WeakMap;function getCacheInfo(e){var t=ed.get(e);return t||ed.set(e,t={vars:new Set,dep:dep()}),t}function forgetCache(e){getCacheInfo(e).vars.forEach(function(t){return t.forgetCache(e)})}function recallCache(e){getCacheInfo(e).vars.forEach(function(t){return t.attachCache(e)})}function makeVar(e){var t=new Set,i=new Set,rv=function(a){if(arguments.length>0){if(e!==a){e=a,t.forEach(function(e){getCacheInfo(e).dep.dirty(rv),broadcast(e)});var s=Array.from(i);i.clear(),s.forEach(function(t){return t(e)})}}else{var u=eh.getValue();u&&(o(u),getCacheInfo(u).dep(rv))}return e};rv.onNextChange=function(e){return i.add(e),function(){i.delete(e)}};var o=rv.attachCache=function(e){return t.add(e),getCacheInfo(e).vars.add(rv),rv};return rv.forgetCache=function(e){return t.delete(e)},rv}function broadcast(e){e.broadcastWatches&&e.broadcastWatches()}var ey=Object.create(null);function lookupSpecifierInfo(e){var t=JSON.stringify(e);return ey[t]||(ey[t]=Object.create(null))}function keyFieldsFnFromSpecifier(e){var t=lookupSpecifierInfo(e);return t.keyFieldsFn||(t.keyFieldsFn=function(t,i){var extract=function(e,t){return i.readField(t,e)},o=i.keyObject=collectSpecifierPaths(e,function(e){var o=extractKeyPath(i.storeObject,e,extract);return void 0===o&&t!==i.storeObject&&ee.call(t,e[0])&&(o=extractKeyPath(t,e,extractKey)),(0,c.kG)(void 0!==o,5,e.join("."),t),o});return"".concat(i.typename,":").concat(JSON.stringify(o))})}function keyArgsFnFromSpecifier(e){var t=lookupSpecifierInfo(e);return t.keyArgsFn||(t.keyArgsFn=function(t,i){var o=i.field,a=i.variables,s=i.fieldName,u=JSON.stringify(collectSpecifierPaths(e,function(e){var i=e[0],s=i.
1charAt(0);if("@"===s){if(o&&(0,X.O)(o.directives)){var u=i.slice(1),c=o.directives.find(function(e){return e.name.value===u}),l=c&&(0,A.NC)(c,a);return l&&extractKeyPath(l,e.slice(1))}return}if("$"===s){var f=i.slice(1);if(a&&ee.call(a,f)){var p=e.slice(0);return p[0]=f,extractKeyPath(a,p)}return}if(t)return extractKeyPath(t,e)}));return(t||"{}"!==u)&&(s+=":"+u),s})}function collectSpecifierPaths(e,t){var i=new M.w0;return getSpecifierPaths(e).reduce(function(e,o){var a,s=t(o);if(void 0!==s){for(var u=o.length-1;u>=0;--u)(a={})[o[u]]=s,s=a;e=i.merge(e,s)}return e},Object.create(null))}function getSpecifierPaths(e){var t=lookupSpecifierInfo(e);if(!t.paths){var i=t.paths=[],o=[];e.forEach(function(t,a){(0,X.k)(t)?(getSpecifierPaths(t).forEach(function(e){return i.push(o.concat(e))}),o.length=0):(o.push(t),(0,X.k)(e[a+1])||(i.push(o.slice(0)),o.length=0))})}return t.paths}function extractKey(e,t){return e[t]}function extractKeyPath(e,t,i){return i=i||extractKey,normalize(t.reduce(function reducer(e,t){return(0,X.k)(e)?e.map(function(e){return reducer(e,t)}):e&&i(e,t)},e))}function normalize(e){return(0,Z.s)(e)?(0,X.k)(e)?e.map(normalize):collectSpecifierPaths(Object.keys(e).sort(),function(t){return extractKeyPath(e,t)}):e}function argsFromFieldSpecifier(e){return void 0!==e.args?e.args:e.field?(0,A.NC)(e.field,e.variables):null}var nullKeyFieldsFn=function(){},simpleKeyArgsFn=function(e,t){return t.fieldName},mergeTrueFn=function(e,t,i){return(0,i.mergeObjects)(e,t)},mergeFalseFn=function(e,t){return t},ev=function(){function Policies(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,u.pi)({dataIdFromObject:defaultDataIdFromObject},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 Policies.prototype.identify=function(e,t){var i,o,a=this,s=t&&(t.typename||(null===(i=t.storeObject)||void 0===i?void 0:i.__typename))||e.__typename;if(s===this.rootTypenamesById.ROOT_QUERY)return["ROOT_QUERY"];var c=t&&t.storeObject||e,l=(0,u.pi)((0,u.pi)({},t),{typename:s,storeObject:c,readField:t&&t.readField||function(){var e=normalizeReadFieldOptions(arguments,c);return a.readField(e,{store:a.cache.data,variables:e.variables})}}),f=s&&this.getTypePolicy(s),p=f&&f.keyFn||this.config.dataIdFromObject;return G.withValue(!0,function(){for(;p;){var t=p((0,u.pi)((0,u.pi)({}
1,e),c),l);if((0,X.k)(t))p=keyFieldsFnFromSpecifier(t);else{o=t;break}}}),o=o?String(o):void 0,l.keyObject?[o,l.keyObject]:[o]},Policies.prototype.addTypePolicies=function(e){var t=this;Object.keys(e).forEach(function(i){var o=e[i],a=o.queryType,s=o.mutationType,c=o.subscriptionType,l=(0,u._T)(o,["queryType","mutationType","subscriptionType"]);a&&t.setRootTypename("Query",i),s&&t.setRootTypename("Mutation",i),c&&t.setRootTypename("Subscription",i),ee.call(t.toBeAdded,i)?t.toBeAdded[i].push(l):t.toBeAdded[i]=[l]})},Policies.prototype.updateTypePolicy=function(e,t){var i=this,o=this.getTypePolicy(e),a=t.keyFields,s=t.fields;function setMerge(e,t){e.merge="function"==typeof t?t:!0===t?mergeTrueFn:!1===t?mergeFalseFn:e.merge}setMerge(o,t.merge),o.keyFn=!1===a?nullKeyFieldsFn:(0,X.k)(a)?keyFieldsFnFromSpecifier(a):"function"==typeof a?a:o.keyFn,s&&Object.keys(s).forEach(function(t){var o=i.getFieldPolicy(e,t,!0),a=s[t];if("function"==typeof a)o.read=a;else{var u=a.keyArgs,c=a.read,l=a.merge;o.keyFn=!1===u?simpleKeyArgsFn:(0,X.k)(u)?keyArgsFnFromSpecifier(u):"function"==typeof u?u:o.keyFn,"function"==typeof c&&(o.read=c),setMerge(o,l)}o.read&&o.merge&&(o.keyFn=o.keyFn||simpleKeyArgsFn)})},Policies.prototype.setRootTypename=function(e,t){void 0===t&&(t=e);var i="ROOT_"+e.toUpperCase(),o=this.rootTypenamesById[i];t!==o&&((0,c.kG)(!o||o===e,6,e),o&&delete this.rootIdsByTypename[o],this.rootIdsByTypename[t]=i,this.rootTypenamesById[i]=t)},Policies.prototype.addPossibleTypes=function(e){var t=this;this.usingPossibleTypes=!0,Object.keys(e).forEach(function(i){t.getSupertypeSet(i,!0),e[i].forEach(function(e){t.getSupertypeSet(e,!0).add(i);var o=e.match(er);o&&o[0]===e||t.fuzzySubtypes.set(e,new RegExp(e))})})},Policies.prototype.getTypePolicy=function(e){var t=this;if(!ee.call(this.typePolicies,e)){var i=this.typePolicies[e]=Object.create(null);i.fields=Object.create(null);var o=this.supertypeMap.get(e);!o&&this.fuzzySubtypes.size&&(o=this.getSupertypeSet(e,!0),this.fuzzySubtypes.forEach(function(i,a){if(i.test(e)){var s=t.supertypeMap.get(a);s&&s.forEach(function(e){return o.add(e)})}})),o&&o.size&&o.forEach(function(e){var o=t.getTypePolicy(e),a=o.fields;Object.assign(i,(0,u._T)(o,["fields"])),Object.assign(i.fields,a)})}var a=this.toBeAdded[e];return a&&a.length&&a.splice(0).forEach(function(i){t.updateTypePolicy(e,i)}),this.typePolicies[e]},Policies.prototype.getFieldPolicy=function(e,t,i){if(e){var o=this.getTypePolicy(e).fields;return o[t]||i&&(o[t]=Object.create(null))}},Policies.prototype.getSupertypeSet=function(e,t){var i=this.supertypeMap.get(e);return!i&&t&&this.supertypeMap.set(e,i=new Set),i},Policies.prototype.fragmentMatches=function(e,t,i,o){var a=this;if(!e.typeCondition)return!0;if(!t)return!1;var s=e.typeCondition.name.value;if(t===s)return!0;if(this.usingPossibleTypes&&this.supertypeMap.has(s))for(var u=this.getSupertypeSet(t,!0),l=[u],maybeEnqueue_1=function(e){var t=a.getSupertypeSet(e,!1);t&&t.size&&0>l.indexOf(t)&&l.push(t)},f=!!(i&&this.fuzzySubtypes.size),p=!1,h=0;h<l.length;++h){var d=l[h];if(d.has(s))return u.has(s)||(p&&!1!==globalThis.__DEV__&&c.kG.warn(7,t,s),u.add(s)),!0;d.forEach(maybeEnqueue_1),f&&h===l.length-1&&selectionSetMatchesResult(e.selectionSet,i,o)&&(f=!1,p=!0,this.fuzzySubtypes.forEach(function(e,i){var o=t.match(e);o&&o[0]===t&&maybeEnqueue_1(i)}))}return!1},Policies.prototype.hasKeyArgs=function(e,t){var i=this.getFieldPolicy(e,t,!1);return!!(i&&i.keyFn)},Policies.prototype.getStoreFieldName=function(e){var t,i=e.typename,o=e.fieldName,a=this.getFieldPolicy(i,o,!1),s=a&&a.keyFn;if(s&&i)for(var u={typename:i,fieldName:o,field:e.field||null,variables:e.variables},c=argsFromFieldSpecifier(e);s;){var l=s(c,u);if((0,X.k)(l))s=keyArgsFnFromSpecifier(l);else{t=l||o;break}}return(void 0===t&&(t=e.field?(0,A.vf)(e.field,e.variables):(0,A.PT)(o,argsFromFieldSpecifier(e))),!1===t)?o:o===fieldNameFromStoreName(t)?t:o+":"+t},Policies.prototype.readField=function(e,t){var i=e.from;if(i&&(e.field||e.fieldName)){if(void 0===e.typename){var o=t.store.getFieldValue(i,"__typename");o&&(e.typename=o)}var a=this.getStoreFieldName(e),s=fieldNameFromStoreName(a),u=t.store.getFieldValue(i,a),c=this.getFieldPolicy(e.typename,s,!1),l=c&&c.read;if(l){var f=makeFieldFunctionOptions(this,i,e,t,t.store.getStorage((0,A.Yk)(i)?i.__ref:i,a));return eh.withValue(this.cache,l,[u,f])}return u}},Policies.prototype.getReadFunction=function(e,t){var i=this.getFieldPolicy(e,t,!1);return i&&i.read},Policies.prototype.getMergeFunction=function(e,t,i){var o=this.getFieldPolicy(e,t,!1),a=o&&o.merge;return!a&&i&&(a=(o=this.getTypePolicy(i))&&o.merge),a},Policies.prototype.runMergeFunction=function(e,t,i,o,a){var s=i.field,u=i.typename,c=i.merge;return c===mergeTrueFn?makeMergeObjectsFunction(o.store)(e,t):c===mergeFalseFn?t:(o.overwrite&&(e=void 0),c(e,t,makeFieldFunctionOptions(this,void 0,{typename:u,fieldName:s.name.value,field:s,variables:o.variables},o,a||Object.create(null))))},Policies}();function makeFieldFunctionOptions(e,t,i,o,a){var s=e.getStoreFieldName(i),u=fieldNameFromStoreName(s),c=i.variables||o.variables,l=o.store,f=l.toReference,p=l.canRead;return{args:argsFromFieldSpecifier(i),field:i.field||null,fieldName:u,storeFieldName:s,variables:c,isReference:A.Yk,toReference:f,storage:a,cache:e.cache,canRead:p,readField:function(){return e.readField(normalizeReadFieldOptions(arguments,t,c),o)},mergeObjects:makeMergeObjectsFunction(o.store)}}function normalizeReadFieldOptions(e,t,i){var o,a=e[0],s=e[1],l=e.length;return"string"==typeof a?o={fieldName:a,from:l>1?s:t}:(o=(0,u.pi)({},a),ee.call(o,"from")||(o.from=t)),!1!==globalThis.__DEV__&&void 0===o.from&&!1!==globalThis.__DEV__&&c.kG.warn(8,(0,ep.v)(Array.from(e))),void 0===o.variables&&(o.variables=i),o}function makeMergeObjectsFunction(e){return function(t,i){if((0,X.k)(t)||(0,X.k)(i))throw(0,c._K)(9);
1if((0,Z.s)(t)&&(0,Z.s)(i)){var o=e.getFieldValue(t,"__typename"),a=e.getFieldValue(i,"__typename");if(o&&a&&o!==a)return i;if((0,A.Yk)(t)&&storeValueIsStoreObject(i))return e.merge(t.__ref,i),t;if(storeValueIsStoreObject(t)&&(0,A.Yk)(i))return e.merge(t,i.__ref),i;if(storeValueIsStoreObject(t)&&storeValueIsStoreObject(i))return(0,u.pi)((0,u.pi)({},t),i)}return i}}function getContextFlavor(e,t,i){var o="".concat(t).concat(i),a=e.flavors.get(o);return a||e.flavors.set(o,a=e.clientOnly===t&&e.deferred===i?e:(0,u.pi)((0,u.pi)({},e),{clientOnly:t,deferred:i})),a}var em=function(){function StoreWriter(e,t,i){this.cache=e,this.reader=t,this.fragments=i}return StoreWriter.prototype.writeToStore=function(e,t){var i=this,o=t.query,a=t.result,s=t.dataId,l=t.variables,f=t.overwrite,p=(0,T.$H)(o),h=makeProcessedFieldsMerger();l=(0,u.pi)((0,u.pi)({},(0,T.O4)(p)),l);var d=(0,u.pi)((0,u.pi)({store:e,written:Object.create(null),merge:function(e,t){return h.merge(e,t)},variables:l,varString:(0,H.B)(l)},extractFragmentContext(o,this.fragments)),{overwrite:!!f,incomingById:new Map,clientOnly:!1,deferred:!1,flavors:new Map}),y=this.processSelectionSet({result:a||Object.create(null),dataId:s,selectionSet:p.selectionSet,mergeTree:{map:new Map},context:d});if(!(0,A.Yk)(y))throw(0,c._K)(12,a);return d.incomingById.forEach(function(t,o){var a=t.storeObject,s=t.mergeTree,u=t.fieldNodeSet,c=(0,A.kQ)(o);if(s&&s.map.size){var l=i.applyMerges(s,c,a,d);if((0,A.Yk)(l))return;a=l}if(!1!==globalThis.__DEV__&&!d.overwrite){var f=Object.create(null);u.forEach(function(e){e.selectionSet&&(f[e.name.value]=!0)});var hasMergeFunction_1=function(e){var t=s&&s.map.get(e);return!!(t&&t.info&&t.info.merge)};Object.keys(a).forEach(function(e){!0!==f[fieldNameFromStoreName(e)]||hasMergeFunction_1(e)||warnAboutDataLoss(c,a,e,d.store)})}e.merge(o,a)}),e.retain(y.__ref),y},StoreWriter.prototype.processSelectionSet=function(e){var t=this,i=e.dataId,o=e.result,a=e.selectionSet,s=e.context,l=e.mergeTree,f=this.cache.policies,p=Object.create(null),h=i&&f.rootTypenamesById[i]||(0,A.qw)(o,a,s.fragmentMap)||i&&s.store.get(i,"__typename");"string"==typeof h&&(p.__typename=h);var readField=function(){var e=normalizeReadFieldOptions(arguments,p,s.variables);if((0,A.Yk)(e.from)){var t=s.incomingById.get(e.from.__ref);if(t){var i=f.readField((0,u.pi)((0,u.pi)({},e),{from:t.storeObject}),s);if(void 0!==i)return i}}return f.readField(e,s)},d=new Set;this.flattenFields(a,o,s,h).forEach(function(e,i){var a,s=o[(0,A.u2)(i)];if(d.add(i),void 0!==s){var u=f.getStoreFieldName({typename:h,fieldName:i.name.value,field:i,variables:e.variables}),y=getChildMergeTree(l,u),v=t.processFieldValue(s,i,i.selectionSet?getContextFlavor(e,!1,!1):e,y),m=void 0;i.selectionSet&&((0,A.Yk)(v)||storeValueIsStoreObject(v))&&(m=readField("__typename",v));var b=f.getMergeFunction(h,i.name.value,m);b?y.info={field:i,typename:h,merge:b}:maybeRecycleChildMergeTree(l,u),p=e.merge(p,((a={})[u]=v,a))}else!1===globalThis.__DEV__||e.clientOnly||e.deferred||Y.Gw.added(i)||f.getReadFunction(h,i.name.value)||!1===globalThis.__DEV__||c.kG.error(13,(0,A.u2)(i),o)});try{var y=f.identify(o,{typename:h,selectionSet:a,fragmentMap:s.fragmentMap,storeObject:p,readField:readField}),v=y[0],m=y[1];i=i||v,m&&(p=s.merge(p,m))}catch(e){if(!i)throw e}if("string"==typeof i){var b=(0,A.kQ)(i),g=s.written[i]||(s.written[i]=[]);if(g.indexOf(a)>=0||(g.push(a),this.reader&&this.reader.isFresh(o,b,a,s)))return b;var k=s.incomingById.get(i);return k?(k.storeObject=s.merge(k.storeObject,p),k.mergeTree=mergeMergeTrees(k.mergeTree,l),d.forEach(function(e){return k.fieldNodeSet.add(e)})):s.incomingById.set(i,{storeObject:p,mergeTree:mergeTreeIsEmpty(l)?void 0:l,fieldNodeSet:d}),b}return p},StoreWriter.prototype.processFieldValue=function(e,t,i,o){var a=this;return t.selectionSet&&null!==e?(0,X.k)(e)?e.map(function(e,s){var u=a.processFieldValue(e,t,i,getChildMergeTree(o,s));return maybeRecycleChildMergeTree(o,s),u}):this.processSelectionSet({result:e,selectionSet:t.selectionSet,context:i,mergeTree:o}):!1!==globalThis.__DEV__?cloneDeepHelper(e):e},StoreWriter.prototype.flattenFields=function(e,t,i,o){void 0===o&&(o=(0,A.qw)(t,e,i.fragmentMap));var a=new Map,s=this.cache.policies,u=new Trie(!1);return function flatten(e,l){var f=u.lookup(e,l.clientOnly,l.deferred);f.visited||(f.visited=!0,e.selections.forEach(function(e){if((0,j.LZ)(e,i.variables)){var u=l.clientOnly,f=l.deferred;
1if(!(u&&f)&&(0,X.O)(e.directives)&&e.directives.forEach(function(e){var t=e.name.value;if("client"===t&&(u=!0),"defer"===t){var o=(0,A.NC)(e,i.variables);o&&!1===o.if||(f=!0)}}),(0,A.My)(e)){var p=a.get(e);p&&(u=u&&p.clientOnly,f=f&&p.deferred),a.set(e,getContextFlavor(i,u,f))}else{var h=(0,I.hi)(e,i.lookupFragment);if(!h&&e.kind===q.h.FRAGMENT_SPREAD)throw(0,c._K)(14,e.name.value);h&&s.fragmentMatches(h,o,t,i.variables)&&flatten(h.selectionSet,getContextFlavor(i,u,f))}}}))}(e,i),a},StoreWriter.prototype.applyMerges=function(e,t,i,o,a){var s=this;if(e.map.size&&!(0,A.Yk)(i)){var l,f,p=!(0,X.k)(i)&&((0,A.Yk)(t)||storeValueIsStoreObject(t))?t:void 0,h=i;p&&!a&&(a=[(0,A.Yk)(p)?p.__ref:p]);var getValue_1=function(e,t){return(0,X.k)(e)?"number"==typeof t?e[t]:void 0:o.store.getFieldValue(e,String(t))};e.map.forEach(function(e,t){var i=getValue_1(p,t),u=getValue_1(h,t);if(void 0!==u){a&&a.push(t);var l=s.applyMerges(e,i,u,o,a);l!==u&&(f=f||new Map).set(t,l),a&&(0,c.kG)(a.pop()===t)}}),f&&(i=(0,X.k)(h)?h.slice(0):(0,u.pi)({},h),f.forEach(function(e,t){i[t]=e}))}return e.info?this.cache.policies.runMergeFunction(t,i,e.info,o,a&&(l=o.store).getStorage.apply(l,a)):i},StoreWriter}(),eb=[];function getChildMergeTree(e,t){var i=e.map;return i.has(t)||i.set(t,eb.pop()||{map:new Map}),i.get(t)}function mergeMergeTrees(e,t){if(e===t||!t||mergeTreeIsEmpty(t))return e;if(!e||mergeTreeIsEmpty(e))return t;var i=e.info&&t.info?(0,u.pi)((0,u.pi)({},e.info),t.info):e.info||t.info,o=e.map.size&&t.map.size,a={info:i,map:o?new Map:e.map.size?e.map:t.map};if(o){var s=new Set(t.map.keys());e.map.forEach(function(e,i){a.map.set(i,mergeMergeTrees(e,t.map.get(i))),s.delete(i)}),s.forEach(function(i){a.map.set(i,mergeMergeTrees(t.map.get(i),e.map.get(i)))})}return a}function mergeTreeIsEmpty(e){return!e||!(e.info||e.map.size)}function maybeRecycleChildMergeTree(e,t){var i=e.map,o=i.get(t);o&&mergeTreeIsEmpty(o)&&(eb.push(o),i.delete(t))}var eg=new Set;function warnAboutDataLoss(e,t,i,o){var getChild=function(e){var t=o.getFieldValue(e,i);return"object"==typeof t&&t},a=getChild(e);if(a){var s=getChild(t);if(!(!s||(0,A.Yk)(a)||(0,C.D)(a,s)||Object.keys(a).every(function(e){return void 0!==o.getFieldValue(s,e)}))){var l=o.getFieldValue(e,"__typename")||o.getFieldValue(t,"__typename"),f=fieldNameFromStoreName(i),p="".concat(l,".").concat(f);if(!eg.has(p)){eg.add(p);var h=[];
1(0,X.k)(a)||(0,X.k)(s)||[a,s].forEach(function(e){var t=o.getFieldValue(e,"__typename");"string"!=typeof t||h.includes(t)||h.push(t)}),!1!==globalThis.__DEV__&&c.kG.warn(15,f,l,h.length?"either ensure all objects of type "+h.join(" and ")+" have an ID or a custom merge function, or ":"",p,(0,u.pi)({},a),(0,u.pi)({},s))}}}}var ek=function(e){function InMemoryCache(t){void 0===t&&(t={});var i=e.call(this)||this;return i.watches=new Set,i.addTypenameTransform=new K(Y.Gw),i.assumeImmutableResults=!0,i.makeVar=makeVar,i.txCount=0,i.config=normalizeConfig(t),i.addTypename=!!i.config.addTypename,i.policies=new ev({cache:i,dataIdFromObject:i.config.dataIdFromObject,possibleTypes:i.config.possibleTypes,typePolicies:i.config.typePolicies}),i.init(),i}return(0,u.ZT)(InMemoryCache,e),InMemoryCache.prototype.init=function(){var e=this.data=new eo.Root({policies:this.policies,resultCaching:this.config.resultCaching});this.optimisticData=e.stump,this.resetResultCache()},InMemoryCache.prototype.resetResultCache=function(e){var t=this,i=this.storeReader,o=this.config.fragments;this.storeWriter=new em(this,this.storeReader=new el({cache:this,addTypename:this.addTypename,resultCacheMaxSize:this.config.resultCacheMaxSize,canonizeResults:shouldCanonizeResults(this.config),canon:e?void 0:i&&i.canon,fragments:o}),o),this.maybeBroadcastWatch=wrap(function(e,i){return t.broadcastWatch(e,i)},{max:this.config.resultCacheMaxSize||R.Q["inMemoryCache.maybeBroadcastWatch"]||5e3,makeCacheKey:function(e){var i=e.optimistic?t.optimisticData:t.data;if(supportsResultCaching(i)){var o=e.optimistic,a=e.id,s=e.variables;return i.makeCacheKey(e.query,e.callback,(0,H.B)({optimistic:o,id:a,variables:s}))}}}),new Set([this.data.group,this.optimisticData.group]).forEach(function(e){return e.resetCaching()})},InMemoryCache.prototype.restore=function(e){return this.init(),e&&this.data.replace(e),this},InMemoryCache.prototype.extract=function(e){return void 0===e&&(e=!1),(e?this.optimisticData:this.data).extract()},InMemoryCache.prototype.read=function(e){var t=e.returnPartialData;try{return this.storeReader.diffQueryAgainstStore((0,u.pi)((0,u.pi)({},e),{store:e.optimistic?this.optimisticData:this.data,config:this.config,returnPartialData:void 0!==t&&t})).result||null}catch(e){if(e instanceof U)return null;throw e}},InMemoryCache.prototype.write=function(e){try{return++this.txCount,this.storeWriter.writeToStore(this.data,e)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},InMemoryCache.prototype.modify=function(e){if(ee.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()}},InMemoryCache.prototype.diff=function(e){return this.storeReader.diffQueryAgainstStore((0,u.pi)((0,u.pi)({},e),{store:e.optimistic?this.optimisticData:this.data,rootId:e.id||"ROOT_QUERY",config:this.config}))},InMemoryCache.prototype.watch=function(e){var t=this;return this.watches.size||recallCache(this),this.watches.add(e),e.immediate&&this.maybeBroadcastWatch(e),function(){t.watches.delete(e)&&!t.watches.size&&forgetCache(t),t.maybeBroadcastWatch.forget(e)}},InMemoryCache.prototype.gc=function(e){H.B.reset(),J.S.reset(),this.addTypenameTransform.resetCache(),null===(t=this.config.fragments)||void 0===t||t.resetCaches();var t,i=this.optimisticData.gc();return e&&!this.txCount&&(e.resetResultCache?this.resetResultCache(e.resetResultIdentities):e.resetResultIdentities&&this.storeReader.resetCanon()),i},InMemoryCache.prototype.retain=function(e,t){return(t?this.optimisticData:this.data).retain(e)},InMemoryCache.prototype.release=function(e,t){return(t?this.optimisticData:this.data).release(e)},InMemoryCache.prototype.identify=function(e){if((0,A.Yk)(e))return e.__ref;try{return this.policies.identify(e)[0]}catch(e){!1!==globalThis.__DEV__&&c.kG.warn(e)}},InMemoryCache.prototype.evict=function(e){if(!e.id){if(ee.call(e,"id"))return!1;e=(0,u.pi)((0,u.pi)({},e),{id:"ROOT_QUERY"})}try{return++this.txCount,this.optimisticData.evict(e,this.data)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},InMemoryCache.prototype.reset=function(e){var t=this;return this.init(),H.B.reset(),e&&e.discardWatches?(this.watches.forEac
1h(function(e){return t.maybeBroadcastWatch.forget(e)}),this.watches.clear(),forgetCache(this)):this.broadcastWatches(),Promise.resolve()},InMemoryCache.prototype.removeOptimistic=function(e){var t=this.optimisticData.removeLayer(e);t!==this.optimisticData&&(this.optimisticData=t,this.broadcastWatches())},InMemoryCache.prototype.batch=function(e){var t,i=this,o=e.update,a=e.optimistic,s=void 0===a||a,c=e.removeOptimistic,l=e.onWatchUpdated,perform=function(e){var a=i.data,s=i.optimisticData;++i.txCount,e&&(i.data=i.optimisticData=e);try{return t=o(i)}finally{--i.txCount,i.data=a,i.optimisticData=s}},f=new Set;return l&&!this.txCount&&this.broadcastWatches((0,u.pi)((0,u.pi)({},e),{onWatchUpdated:function(e){return f.add(e),!1}})),"string"==typeof s?this.optimisticData=this.optimisticData.addLayer(s,perform):!1===s?perform(this.data):perform(),"string"==typeof c&&(this.optimisticData=this.optimisticData.removeLayer(c)),l&&f.size?(this.broadcastWatches((0,u.pi)((0,u.pi)({},e),{onWatchUpdated:function(e,t){var i=l.call(this,e,t);return!1!==i&&f.delete(e),i}})),f.size&&f.forEach(function(e){return i.maybeBroadcastWatch.dirty(e)})):this.broadcastWatches(e),t},InMemoryCache.prototype.performTransaction=function(e,t){return this.batch({update:e,optimistic:t||null!==t})},InMemoryCache.prototype.transformDocument=function(e){return this.addTypenameToDocument(this.addFragmentsToDocument(e))},InMemoryCache.prototype.fragmentMatches=function(e,t){return this.policies.fragmentMatches(e,t)},InMemoryCache.prototype.lookupFragment=function(e){var t;return(null===(t=this.config.fragments)||void 0===t?void 0:t.lookup(e))||null},InMemoryCache.prototype.broadcastWatches=function(e){var t=this;this.txCount||this.watches.forEach(function(i){return t.maybeBroadcastWatch(i,e)})},InMemoryCache.prototype.addFragmentsToDocument=function(e){var t=this.config.fragments;return t?t.transform(e):e},InMemoryCache.prototype.addTypenameToDocument=function(e){return this.addTypename?this.addTypenameTransform.transformDocument(e):e},InMemoryCache.prototype.broadcastWatch=function(e,t){var i=e.lastDiff,o=this.diff(e);(!t||(e.optimistic&&"string"==typeof t.optimistic&&(o.fromOptimisticTransaction=!0),!t.onWatchUpdated||!1!==t.onWatchUpdated.call(this,e,o,i)))&&(i&&(0,C.D)(i.result,o.result)||e.callback(e.lastDiff=o,i))},InMemoryCache}(B);!1!==globalThis.__DEV__&&(ek.prototype.getMemoryInternals=P.q4);var eS=i(67389),e_=i(76261),ew=i(38128),eO=ew.i.execute,eD=i(88776),eF=i(54031),eE=i(78829);function asyncMap(e,t,i){return new Q.y(function(o){var a={then:function(e){return new Promise(function(t){return t(e())})}};function makeCallback(e,t){return function(i){if(e){var both=function(){return o.closed?0:e(i)};a=a.then(both,both).then(function(e){return o.next(e)},function(e){return o.error(e)})}else o[t](i)}}var s={next:makeCallback(t,"next"),error:makeCallback(i,"error"),complete:function(){a.then(function(){return o.complete()})}},u=e.subscribe(s);return function(){return u.unsubscribe()}})}function graphQLResultHasError(e){var t=getGraphQLErrorsFromResult(e);return(0,X.O)(t)}function getGraphQLErrorsFromResult(e){var t=(0,X.O)(e.errors)?e.errors.slice(0):[];return(0,eE.GG)(e)&&(0,X.O)(e.incremental)&&e.incremental.forEach(function(e){e.errors&&t.push.apply(t,e.errors)}),t}var eC=i(18333);function iterateObserversSafely(e,t,i){var o=[];e.forEach(function(e){return e[t]&&o.push(e)}),o.forEach(function(e){return e[t](i)})}function fixObservableSubclass(e){function set(t){Object.defineProperty(e,t,{value:Q.y})}return N.aS&&Symbol.species&&set(Symbol.species),set("@@species"),e}function Concast_isPromiseLike(e){return e&&"function"==typeof e.then}var eI=function(e){function Concast(t){var i=e.call(this,function(e){return i.addObserver(e),function(){return i.removeObserver(e)}})||this;return i.observers=new Set,i.promise=new Promise(function(e,t){i.resolve=e,i.reject=t}),i.handlers={next:function(e){null!==i.sub&&(i.latest=["next",e],i.notify("next",e),iterateObserversSafely(i.observers,"next",e))},error:function(e){var t=i.sub;null!==t&&(t&&setTimeout(function(){return t.unsubscribe()}),i.sub=null,i.latest=["error",e],i.reject(e),i.notify("error",e),iterateObserversSafely(i.observers,"error",e))},complete:function(){var e=i.sub,t=i.sources;if(null!==e){var o=(void 0===t?[]:t).shift();o?Concast_isPromiseLike(o)?o.then(function(e){return i.sub=e.subscribe(i.handlers)},i.handlers.error):i.sub=o.subscribe(i.handlers):(e&&setTimeout(function(){return e.unsubscribe()}),i.sub=null,i.latest&&"next"===i.latest[0]?i.resolve(i.latest[1]):i.resolve(),i.notify("complete"),iterateObserversSafely(i.observers,"complete"))}}},i.nextResultListeners=new Set,i.cancel=function(e){i.reject(e),i.sources=[],i.handlers.error(e)},i.promise.catch(function(e){}),"function"==typeof t&&(t=[new Q.y(t)]),Concast_isPromiseLike(t)?t.then(function(e){return i.start(e)},i.handlers.error):i.start(t),i}return(0,u.ZT)(Concast,e),Concast.prototype.start=function(e){void 0===this.sub&&(this.sources=Array.from(e),this.handlers.complete())},Concast.prototype.deliverLastMessage=function(e){if(this.latest){var t=this.latest[0],i=e[t];i&&i.call(e,this.latest[1]),null===this.sub&&"next"===t&&e.complete&&e.complete()}},Concast.prototype.addObserver=function(e){this.observers.has(e)||(this.deliverLastMessage(e),this.observers.add(e))},Concast.prototype.removeObserver=function(e){this.observers.delete(e)&&this.observers.size<1&&this.handlers.complete()},Concast.prototype.notify=function(e,t){var i=this.nextResultListeners;
1i.size&&(this.nextResultListeners=new Set,i.forEach(function(i){return i(e,t)}))},Concast.prototype.beforeNext=function(e){var t=!1;this.nextResultListeners.add(function(i,o){t||(t=!0,e(i,o))})},Concast}(Q.y);fixObservableSubclass(eI);var eR=i(17205),eT=i(12274);function preventUnhandledRejection(e){return e.catch(function(){}),e}var eQ=Object.assign,eM=Object.hasOwnProperty,ex=function(e){function ObservableQuery(t){var i=t.queryManager,o=t.queryInfo,a=t.options,s=e.call(this,function(e){try{var t=e._subscription._observer;t&&!t.error&&(t.error=defaultSubscriptionObserverErrorCallback)}catch(e){}var i=!s.observers.size;s.observers.add(e);var o=s.last;return o&&o.error?e.error&&e.error(o.error):o&&o.result&&e.next&&e.next(s.maskResult(o.result)),i&&s.reobserve().catch(function(){}),function(){s.observers.delete(e)&&!s.observers.size&&s.tearDownQuery()}})||this;s.observers=new Set,s.subscriptions=new Set,s.queryInfo=o,s.queryManager=i,s.waitForOwnResult=skipCacheDataFor(a.fetchPolicy),s.isTornDown=!1,s.subscribeToMore=s.subscribeToMore.bind(s),s.maskResult=s.maskResult.bind(s);var c=i.defaultOptions.watchQuery,l=(void 0===c?{}:c).fetchPolicy,f=void 0===l?"cache-first":l,p=a.fetchPolicy,h=void 0===p?f:p,d=a.initialFetchPolicy,y=void 0===d?"standby"===h?f:h:d;s.options=(0,u.pi)((0,u.pi)({},a),{initialFetchPolicy:y,fetchPolicy:h}),s.queryId=o.queryId||i.generateQueryId();var v=(0,T.$H)(s.query);return s.queryName=v&&v.name&&v.name.value,s}return(0,u.ZT)(ObservableQuery,e),Object.defineProperty(ObservableQuery.prototype,"query",{get:function(){return this.lastQuery||this.options.query},enumerable:!1,configurable:!0}),Object.defineProperty(ObservableQuery.prototype,"variables",{get:function(){return this.options.variables},enumerable:!1,configurable:!0}),ObservableQuery.prototype.result=function(){var e=this;return new Promise(function(t,i){var o={next:function(i){t(i),e.observers.delete(o),e.observers.size||e.queryManager.removeQuery(e.queryId),setTimeout(function(){a.unsubscribe()},0)},error:i},a=e.subscribe(o)})},ObservableQuery.prototype.resetDiff=function(){this.queryInfo.resetDiff()},ObservableQuery.prototype.getCurrentFullResult=function(e){void 0===e&&(e=!0);var t=this.getLastResult(!0),i=this.queryInfo.networkStatus||t&&t.networkStatus||eT.Ie.ready,o=(0,u.pi)((0,u.pi)({},t),{loading:(0,eT.Oj)(i),networkStatus:i}),a=this.options.fetchPolicy,s=void 0===a?"cache-first":a;if(skipCacheDataFor(s)||this.queryManager.getDocumentInfo(this.query).hasForcedResolvers);else if(this.waitForOwnResult)this.queryInfo.updateWatch();else{var c=this.queryInfo.getDiff();(c.complete||this.options.returnPartialData)&&(o.data=c.result),(0,C.D)(o.data,{})&&(o.data=void 0),c.complete?(delete o.partial,c.complete&&o.networkStatus===eT.Ie.loading&&("cache-first"===s||"cache-only"===s)&&(o.networkStatus=eT.Ie.ready,o.loading=!1)):o.partial=!0,!1===globalThis.__DEV__||c.complete||this.options.partialRefetch||o.loading||o.data||o.error||logMissingFieldErrors(c.missing)}return e&&this.updateLastResult(o),o},ObservableQuery.prototype.getCurrentResult=function(e){return void 0===e&&(e=!0),this.maskResult(this.getCurrentFullResult(e))},ObservableQuery.prototype.isDifferentFromLastResult=function(e,t){if(!this.last)return!0;var i=this.queryManager.getDocumentInfo(this.query),o=this.queryManager.dataMasking,a=o?i.nonReactiveQuery:this.query;return(o||i.hasNonreactiveDirective?!equalByQuery(a,this.last.result,e,this.variables):!(0,C.D)(this.last.result,e))||t&&!(0,C.D)(this.last.variables,t)},ObservableQuery.prototype.getLast=function(e,t){var i=this.last;if(i&&i[e]&&(!t||(0,C.D)(i.variables,this.variables)))return i[e]},ObservableQuery.prototype.getLastResult=function(e){return this.getLast("result",e)},ObservableQuery.prototype.getLastError=function(e){return this.getLast("error",e)},ObservableQuery.prototype.resetLastResults=function(){delete this.last,this.isTornDown=!1},ObservableQuery.prototype.resetQueryStoreErrors=function(){this.queryManager.resetErrors(this.queryId)},ObservableQuery.prototype.refetch=function(e){var t,i={pollInterval:0},o=this.options.fetchPolicy;if("cache-and-network"===o?i.fetchPolicy=o:"no-cache"===o?i.fetchPolicy="no-cache":i.fetchPolicy="network-only",!1!==globalThis.__DEV__&&e&&eM.call(e,"variables")){var a=(0,T.iW)(this.query),s=a.variableDefinitions;s&&s.some(function(e){return"variables"===e.variable.name.value})||!1===globalThis.__DEV__||c.kG.warn(21,e,(null===(t=a.name)||void 0===t?void 0:t.value)||a)}return e&&!(0,C.D)(this.options.variables,e)&&(i.variables=this.options.variables=(0,u.pi)((0,u.pi)({},this.options.variables),e)),this.queryInfo.resetLastWrite(),this.reobserve(i,eT.Ie.refetch)},ObservableQuery.prototype.fetchMore=function(e){var t=this,i=(0,u.pi)((0,u.pi)({},e.query?e:(0,u.pi)((0,u.pi)((0,u.pi)((0,u.pi)({},this.options),{query:this.options.query}),e),{variables:(0,u.pi)((0,u.pi)({},this.options.variables),e.variables)})),{fetchPolicy:"no-cache"});i.query=this.transformDocument(i.query);var o=this.queryManager.generateQueryId();this.lastQuery=e.query?this.transformDocument(this.options.query):i.query;var a=this.queryInfo,s=a.networkStatus;
1a.networkStatus=eT.Ie.fetchMore,i.notifyOnNetworkStatusChange&&this.observe();var l=new Set,f=null==e?void 0:e.updateQuery,p="no-cache"!==this.options.fetchPolicy;return p||(0,c.kG)(f,22),this.queryManager.fetchQuery(o,i,eT.Ie.fetchMore).then(function(c){if(t.queryManager.removeQuery(o),a.networkStatus===eT.Ie.fetchMore&&(a.networkStatus=s),p)t.queryManager.cache.batch({update:function(o){var a=e.updateQuery;a?o.updateQuery({query:t.query,variables:t.variables,returnPartialData:!0,optimistic:!1},function(e){return a(e,{fetchMoreResult:c.data,variables:i.variables})}):o.writeQuery({query:i.query,variables:i.variables,data:c.data})},onWatchUpdated:function(e){l.add(e.query)}});else{var h=t.getLast("result"),d=f(h.data,{fetchMoreResult:c.data,variables:i.variables});t.reportResult((0,u.pi)((0,u.pi)({},h),{data:d}),t.variables)}return t.maskResult(c)}).finally(function(){p&&!l.has(t.query)&&reobserveCacheFirst(t)})},ObservableQuery.prototype.subscribeToMore=function(e){var t=this,i=this.queryManager.startGraphQLSubscription({query:e.document,variables:e.variables,context:e.context}).subscribe({next:function(i){var o=e.updateQuery;o&&t.updateQuery(function(e,t){return o(e,{subscriptionData:i,variables:t.variables})})},error:function(t){if(e.onError){e.onError(t);return}!1!==globalThis.__DEV__&&c.kG.error(23,t)}});return this.subscriptions.add(i),function(){t.subscriptions.delete(i)&&i.unsubscribe()}},ObservableQuery.prototype.setOptions=function(e){return this.reobserve(e)},ObservableQuery.prototype.silentSetOptions=function(e){var t=(0,$.o)(this.options,e||{});eQ(this.options,t)},ObservableQuery.prototype.setVariables=function(e){return(0,C.D)(this.variables,e)?this.observers.size?this.result():Promise.resolve():(this.options.variables=e,this.observers.size)?this.reobserve({fetchPolicy:this.options.initialFetchPolicy,variables:e},eT.Ie.setVariables):Promise.resolve()},ObservableQuery.prototype.updateQuery=function(e){var t=this.queryManager,i=e(t.cache.diff({query:this.options.query,variables:this.variables,returnPartialData:!0,optimistic:!1}).result,{variables:this.variables});i&&(t.cache.writeQuery({query:this.options.query,data:i,variables:this.variables}),t.broadcastQueries())},ObservableQuery.prototype.startPolling=function(e){this.options.pollInterval=e,this.updatePolling()},ObservableQuery.prototype.stopPolling=function(){this.options.pollInterval=0,this.updatePolling()},ObservableQuery.prototype.applyNextFetchPolicy=function(e,t){if(t.nextFetchPolicy){var i=t.fetchPolicy,o=void 0===i?"cache-first":i,a=t.initialFetchPolicy,s=void 0===a?o:a;"standby"===o||("function"==typeof t.nextFetchPolicy?t.fetchPolicy=t.nextFetchPolicy(o,{reason:e,options:t,observable:this,initialFetchPolicy:s}):"variables-changed"===e?t.fetchPolicy=s:t.fetchPolicy=t.nextFetchPolicy)}return t.fetchPolicy},ObservableQuery.prototype.fetch=function(e,t,i){return this.queryManager.setObservableQuery(this),this.queryManager.fetchConcastWithInfo(this.queryId,e,t,i)},ObservableQuery.prototype.updatePolling=function(){var e=this;if(!this.queryManager.ssrMode){var t=this.pollingInfo,i=this.options.pollInterval;if(!i||!this.hasObservers()){t&&(clearTimeout(t.timeout),delete this.pollingInfo);return}if(!t||t.interval!==i){(0,c.kG)(i,24),(t||(this.pollingInfo={})).interval=i;var maybeFetch=function(){var t,i;e.pollingInfo&&((0,eT.Oj)(e.queryInfo.networkStatus)||(null===(i=(t=e.options).skipPollAttempt)||void 0===i?void 0:i.call(t))?poll():e.reobserve({fetchPolicy:"no-cache"===e.options.initialFetchPolicy?"no-cache":"network-only"},eT.Ie.poll).then(poll,poll))},poll=function(){var t=e.pollingInfo;t&&(clearTimeout(t.timeout),t.timeout=setTimeout(maybeFetch,t.interval))};poll()}}},ObservableQuery.prototype.updateLastResult=function(e,t){void 0===t&&(t=this.variables);var i=this.getLastError();return i&&this.last&&!(0,C.D)(t,this.last.variables)&&(i=void 0),this.last=(0,u.pi)({result:this.queryManager.assumeImmutableResults?e:cloneDeepHelper(e),variables:t},i?{error:i}:null)},ObservableQuery.prototype.reobserveAsConcast=function(e,t){var i=this;this.isTornDown=!1;
1var o=t===eT.Ie.refetch||t===eT.Ie.fetchMore||t===eT.Ie.poll,a=this.options.variables,s=this.options.fetchPolicy,c=(0,$.o)(this.options,e||{}),l=o?c:eQ(this.options,c),f=this.transformDocument(l.query);this.lastQuery=f,!o&&(this.updatePolling(),e&&e.variables&&!(0,C.D)(e.variables,a)&&"standby"!==l.fetchPolicy&&(l.fetchPolicy===s||"function"==typeof l.nextFetchPolicy)&&(this.applyNextFetchPolicy("variables-changed",l),void 0===t&&(t=eT.Ie.setVariables))),this.waitForOwnResult&&(this.waitForOwnResult=skipCacheDataFor(l.fetchPolicy));var finishWaitingForOwnResult=function(){i.concast===d&&(i.waitForOwnResult=!1)},p=l.variables&&(0,u.pi)({},l.variables),h=this.fetch(l,t,f),d=h.concast,y=h.fromLink,v={next:function(e){(0,C.D)(i.variables,p)&&(finishWaitingForOwnResult(),i.reportResult(e,p))},error:function(e){(0,C.D)(i.variables,p)&&((0,eR.MS)(e)||(e=new eR.cA({networkError:e})),finishWaitingForOwnResult(),i.reportError(e,p))}};return o||!y&&this.concast||(this.concast&&this.observer&&this.concast.removeObserver(this.observer),this.concast=d,this.observer=v),d.addObserver(v),d},ObservableQuery.prototype.reobserve=function(e,t){return preventUnhandledRejection(this.reobserveAsConcast(e,t).promise.then(this.maskResult))},ObservableQuery.prototype.resubscribeAfterError=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var i=this.last;this.resetLastResults();var o=this.subscribe.apply(this,e);return this.last=i,o},ObservableQuery.prototype.observe=function(){this.reportResult(this.getCurrentFullResult(!1),this.variables)},ObservableQuery.prototype.reportResult=function(e,t){var i=this.getLastError(),o=this.isDifferentFromLastResult(e,t);(i||!e.partial||this.options.returnPartialData)&&this.updateLastResult(e,t),(i||o)&&iterateObserversSafely(this.observers,"next",this.maskResult(e))},ObservableQuery.prototype.reportError=function(e,t){var i=(0,u.pi)((0,u.pi)({},this.getLastResult()),{error:e,errors:e.graphQLErrors,networkStatus:eT.Ie.error,loading:!1});this.updateLastResult(i,t),iterateObserversSafely(this.observers,"error",this.last.error=e)},ObservableQuery.prototype.hasObservers=function(){return this.observers.size>0},ObservableQuery.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)},ObservableQuery.prototype.transformDocument=function(e){return this.queryManager.transform(e)},ObservableQuery.prototype.maskResult=function(e){return e&&"data"in e?(0,u.pi)((0,u.pi)({},e),{data:this.queryManager.maskOperation({document:this.query,data:e.data,fetchPolicy:this.options.fetchPolicy,id:this.queryId})}):e},ObservableQuery}(Q.y);function reobserveCacheFirst(e){var t=e.options,i=t.fetchPolicy,o=t.nextFetchPolicy;return"cache-and-network"===i||"network-only"===i?e.reobserve({fetchPolicy:"cache-first",nextFetchPolicy:function(e,t){return(this.nextFetchPolicy=o,"function"==typeof this.nextFetchPolicy)?this.nextFetchPolicy(e,t):i}}):e.reobserve()}function defaultSubscriptionObserverErrorCallback(e){!1!==globalThis.__DEV__&&c.kG.error(25,e.message,e.stack)}function logMissingFieldErrors(e){!1!==globalThis.__DEV__&&e&&!1!==globalThis.__DEV__&&c.kG.debug(26,e)}function skipCacheDataFor(e){return"network-only"===e||"no-cache"===e||"standby"===e}fixObservableSubclass(ex);var eP=new(N.mr?WeakMap:Map);function wrapDestructiveCacheMethod(e,t){var i=e[t];"function"==typeof i&&(e[t]=function(){return eP.set(e,(eP.get(e)+1)%1e15),i.apply(this,arguments)})}function cancelNotifyTimeout(e){e.notifyTimeout&&(clearTimeout(e.notifyTimeout),e.notifyTimeout=void 0)}var ej=function(){function QueryInfo(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 i=this.cache=e.cache;eP.has(i)||(eP.set(i,0),wrapDestructiveCacheMethod(i,"evict"),wrapDestructiveCacheMethod(i,"modify"),wrapDestructiveCacheMethod(i,"reset"))}return QueryInfo.prototype.init=function(e){var t=e.networkStatus||eT.Ie.loading;return this.variables&&this.networkStatus!==eT.Ie.loading&&!(0,C.D)(this.variables,e.variables)&&(t=eT.Ie.setVariables),(0,C.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},QueryInfo.prototype.reset=function(){cancelNotifyTimeout(this),this.dirty=!1},QueryInfo.prototype.resetDiff=function(){this.lastDiff=void 0},QueryInfo.prototype.getDiff=function(){var e=this.getDiffOptions();if(this.lastDiff&&(0,C.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 i=this.cache.diff(e);return this.updateLastDiff(i,e),i},QueryInfo.prototype.updateLastDiff=function(e,t){this.lastDiff=e?{diff:e,options:t||this.getDiffOptions()}:void 0},QueryInfo.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}},QueryInfo.prototype.setDiff=function(e){var t,i=this,o=this.lastDiff&&this.lastDiff.diff;!(e&&!e.complete&&(null===(t=this.observableQuery)||void 0===t?void 0:t.getLastError()))&&(this.updateLastDiff(e),this.dirty||(0,C.D)(o&&o.result,e&&e.result)||(this.dirty=!0,this.notifyTimeout||(this.notifyTimeout=setTimeout(function(){return i.notify()},0))))},QueryInfo.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():reobserveCacheFirst(e)})):delete this.oqListener)},QueryInfo.prototype.notify=function(){var e=this;cancelNotifyTimeout(this),this.shouldNotify()&&this.listeners.forEac
1h(function(t){return t(e)}),this.dirty=!1},QueryInfo.prototype.shouldNotify=function(){if(!this.dirty||!this.listeners.size)return!1;if((0,eT.Oj)(this.networkStatus)&&this.observableQuery){var e=this.observableQuery.options.fetchPolicy;if("cache-only"!==e&&"cache-and-network"!==e)return!1}return!0},QueryInfo.prototype.stop=function(){if(!this.stopped){this.stopped=!0,this.reset(),this.cancel(),this.cancel=QueryInfo.prototype.cancel;var e=this.observableQuery;e&&e.stopPolling()}},QueryInfo.prototype.cancel=function(){},QueryInfo.prototype.updateWatch=function(e){var t=this;void 0===e&&(e=this.variables);var i=this.observableQuery;if(!i||"no-cache"!==i.options.fetchPolicy){var o=(0,u.pi)((0,u.pi)({},this.getDiffOptions(e)),{watcher:this,callback:function(e){return t.setDiff(e)}});this.lastWatch&&(0,C.D)(o,this.lastWatch)||(this.cancel(),this.cancel=this.cache.watch(this.lastWatch=o))}},QueryInfo.prototype.resetLastWrite=function(){this.lastWrite=void 0},QueryInfo.prototype.shouldWrite=function(e,t){var i=this.lastWrite;return!(i&&i.dmCount===eP.get(this.cache)&&(0,C.D)(t,i.variables)&&(0,C.D)(e.data,i.result.data))},QueryInfo.prototype.markResult=function(e,t,i,o){var a=this,s=new M.w0,u=(0,X.O)(e.errors)?e.errors.slice(0):[];if(this.reset(),"incremental"in e&&(0,X.O)(e.incremental)){var c=(0,eE.mT)(this.getDiff().result,e);e.data=c}else if("hasNext"in e&&e.hasNext){var l=this.getDiff();e.data=s.merge(l.result,e.data)}this.graphQLErrors=u,"no-cache"===i.fetchPolicy?this.updateLastDiff({result:e.data,complete:!0},this.getDiffOptions(i.variables)):0!==o&&(shouldWriteResult(e,i.errorPolicy)?this.cache.performTransaction(function(s){if(a.shouldWrite(e,i.variables))s.writeQuery({query:t,data:e.data,variables:i.variables,overwrite:1===o}),a.lastWrite={result:e,variables:i.variables,dmCount:eP.get(a.cache)};else if(a.lastDiff&&a.lastDiff.diff.complete){e.data=a.lastDiff.diff.result;return}var u=a.getDiffOptions(i.variables),c=s.diff(u);!a.stopped&&(0,C.D)(a.variables,i.variables)&&a.updateWatch(i.variables),a.updateLastDiff(c,u),c.complete&&(e.data=c.result)}):this.lastWrite=void 0)},QueryInfo.prototype.markReady=function(){return this.networkError=null,this.networkStatus=eT.Ie.ready},QueryInfo.prototype.markError=function(e){return this.networkStatus=eT.Ie.error,this.lastWrite=void 0,this.reset(),e.graphQLErrors&&(this.graphQLErrors=e.graphQLErrors),e.networkError&&(this.networkError=e.networkError),e},QueryInfo}();function shouldWriteResult(e,t){void 0===t&&(t="none");var i="ignore"===t||"all"===t,o=!graphQLResultHasError(e);return!o&&i&&e.data&&(o=!0),o}var eA=i(50040);function maskOperation(e,t,i){if(!i.fragmentMatches)return!1!==globalThis.__DEV__&&warnOnImproperCacheImplementation(),e;var o,a=(0,T.$H)(t);return((0,c.kG)(a,51),null==e)?e:maskDefinition(e,a.selectionSet,{operationType:a.operation,operationName:null===(o=a.name)||void 0===o?void 0:o.value,fragmentMap:(0,I.F)((0,T.kU)(t)),cache:i,mutableTargets:new L,knownChanged:new V})}var eq=Object.prototype.hasOwnProperty,eN=Object.create(null),eL=function(){function QueryManager(e){var t=this;this.clientAwareness={},this.queries=new Map,this.fetchCancelFns=new Map,this.transformCache=new eA.s(R.Q["queryManager.getDocumentInfo"]||2e3),this.queryIdCounter=1,this.requestIdCounter=1,this.mutationIdCounter=1,this.inFlightLinkObservables=new Trie(!1),this.noCacheWarningsByQueryId=new Set;var i=new K(function(e){return t.cache.transformDocument(e)},{cache:!1});this.cache=e.cache,this.link=e.link,this.defaultOptions=e.defaultOptions,this.queryDeduplication=e.queryDeduplication,this.clientAwareness=e.clientAwareness,this.localState=e.localState,this.ssrMode=e.ssrMode,this.assumeImmutableResults=e.assumeImmutableResults,this.dataMasking=e.dataMasking;var o=e.documentTransform;this.documentTransform=o?i.concat(o).concat(i):i,this.defaultContext=e.defaultContext||Object.create(null),(this.onBroadcast=e.onBroadcast)&&(this.mutationStore=Object.create(null))}return QueryManager.prototype.stop=function(){var e=this;this.queries.forEach(function(t,i){e.stopQueryNoBroadcast(i)}),this.cancelPendingFetches((0,c._K)(27))},QueryManager.prototype.cancelPendingFetches=function(e){this.fetchCancelFns.forEach(function(t){return t(e)}),this.fetchCancelFns.clear()},QueryManager.prototype.mutate=function(e){return(0,u.mG)(this,arguments,void 0,function(e){var t,i,o,a,s,l,f,p=e.mutation,h=e.variables,d=e.optimisticResponse,y=e.updateQueries,v=e.refetchQueries,m=void 0===v?[]:v,b=e.awaitRefetchQueries,g=void 0!==b&&b,k=e.update,S=e.onQueryUpdated,_=e.fetchPolicy,w=void 0===_?(null===(l=this.defaultOptions.mutate)||void 0===l?void 0:l.fetchPolicy)||"network-only":_,O=e.errorPolicy,D=void 0===O?(null===(f=this.defaultOptions.mutate)||void 0===f?void 0:f.errorPolicy)||"none":O,F=e.keepRootFields,E=e.context;return(0,u.Jh)(this,function(e){switch(e.label){case 0:if((0,c.kG)(p,28),(0,c.kG)("network-only"===w||"no-cache"===w,29),t=this.generateMutationId(),p=this.cache.transformForLink(this.transform(p)),i=this.getDocumentInfo(p).hasClientExports,h=this.getVariables(p,h),!i)return[3,2];return[4,this.localState.addExportedVariables(p,h,E)];case 1:h=e.sent(),e.label=2;case 2:return o=this.mutationStore&&(this.mutationStore[t]={mutation:p,variables:h,loading:!0,error:null}),a=d&&this.markMutationOptimistic(d,{mutationId:t,document:p,variables:h,fetchPolicy:w,errorPolicy:D,context:E,updateQueries:y,update:k,keepRootFields:F}),this.broadcastQueries(),s=this,[2,new Promise(function(e,i){return asyncMap(s.getObservableFromLink(p,(0,u.pi)((0,u.pi)({},E),{optimisticResponse:a?d:void 0}),h,{},!1),function(e){if(graphQLResultHasError(e)&&"none"===D)throw new eR.cA({graphQLErrors:getGraphQLErrorsFromResult(e)});o&&(o.loading=!1,o.error=null);var i=(0,u.pi)({},e);return"function"==typeof m&&(m=m(i)),"ignore"===D&&graphQLResultHasError(i)&&delete i.errors,s.markMutationResult({mutationId:t,result:i,document:p,variables:h,fetchPolicy:w,errorPolicy:D,context:E,update:k,updateQueries:y,awaitRefetchQueries:g,refetchQueries:m,removeOptimistic:a?t:void 0,onQueryUpdated:S,keepRootFields:F})}).subscribe({next:function(i){s.broadcastQueries(),"hasNext"in i&&!1!==i.hasNext||e((0,u.pi)((0,u.pi)({},i),{data:s.maskOperation({document:p,data:i.data,fetchPolicy:w,id:t})}))},error:function(e){o&&(o.loading=!1,o.error=e),a&&s.cache.removeOptimistic(t),s.broadcastQueries(),i(e instanceof eR.cA?e:new eR.cA({networkError:e}))}})})]}})})},QueryManager.prototype.markMutationResult=function(e,t){var i=this;void 0===t&&(t=this.cache);var o=e.result,a=[],s="no-cache"===e.fetchPolicy;if(!s&&shouldWriteResult(o,e.errorPolicy)){if((0,eE.GG)(o)||a.push({result:o.data,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables}),(0,eE.GG)(o)&&(0,X.O)(o.incremental)){var c=t.diff({id:"ROOT_MUTATION",query:this.getDocumentInfo(e.document).asQuery,variables:e.variables,optimistic:!1,returnPartialData:!0}
1),l=void 0;c.result&&(l=(0,eE.mT)(c.result,o)),void 0!==l&&(o.data=l,a.push({result:l,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables}))}var f=e.updateQueries;f&&this.queries.forEach(function(e,s){var u=e.observableQuery,c=u&&u.queryName;if(c&&eq.call(f,c)){var l=f[c],p=i.queries.get(s),h=p.document,d=p.variables,y=t.diff({query:h,variables:d,returnPartialData:!0,optimistic:!1}),v=y.result;if(y.complete&&v){var m=l(v,{mutationResult:o,queryName:h&&(0,T.rY)(h)||void 0,queryVariables:d});m&&a.push({result:m,dataId:"ROOT_QUERY",query:h,variables:d})}}})}if(a.length>0||(e.refetchQueries||"").length>0||e.update||e.onQueryUpdated||e.removeOptimistic){var p=[];if(this.refetchQueries({updateCache:function(t){s||a.forEach(function(e){return t.write(e)});var c=e.update,l=!(0,eE.M0)(o)||(0,eE.GG)(o)&&!o.hasNext;if(c){if(!s){var f=t.diff({id:"ROOT_MUTATION",query:i.getDocumentInfo(e.document).asQuery,variables:e.variables,optimistic:!1,returnPartialData:!0});f.complete&&("incremental"in(o=(0,u.pi)((0,u.pi)({},o),{data:f.result}))&&delete o.incremental,"hasNext"in o&&delete o.hasNext)}l&&c(t,o,{context:e.context,variables:e.variables})}s||e.keepRootFields||!l||t.modify({id:"ROOT_MUTATION",fields:function(e,t){var i=t.fieldName,o=t.DELETE;return"__typename"===i?e:o}})},include:e.refetchQueries,optimistic:!1,removeOptimistic:e.removeOptimistic,onQueryUpdated:e.onQueryUpdated||null}).forEach(function(e){return p.push(e)}),e.awaitRefetchQueries||e.onQueryUpdated)return Promise.all(p).then(function(){return o})}return Promise.resolve(o)},QueryManager.prototype.markMutationOptimistic=function(e,t){var i=this,o="function"==typeof e?e(t.variables,{IGNORE:eN}):e;return o!==eN&&(this.cache.recordOptimisticTransaction(function(e){try{i.markMutationResult((0,u.pi)((0,u.pi)({},t),{result:{data:o}}),e)}catch(e){!1!==globalThis.__DEV__&&c.kG.error(e)}},t.mutationId),!0)},QueryManager.prototype.fetchQuery=function(e,t,i){return this.fetchConcastWithInfo(e,t,i).concast.promise},QueryManager.prototype.getQueryStore=function(){var e=Object.create(null);return this.queries.forEach(function(t,i){e[i]={variables:t.variables,networkStatus:t.networkStatus,networkError:t.networkError,graphQLErrors:t.graphQLErrors}}),e},QueryManager.prototype.resetErrors=function(e){var t=this.queries.get(e);t&&(t.networkError=void 0,t.graphQLErrors=[])},QueryManager.prototype.transform=function(e){return this.documentTransform.transformDocument(e)},QueryManager.prototype.getDocumentInfo=function(e){var t=this.transformCache;if(!t.has(e)){var i={hasClientExports:(0,j.mj)(e),hasForcedResolvers:this.localState.shouldForceResolvers(e),hasNonreactiveDirective:(0,j.FS)(["nonreactive"],e),nonReactiveQuery:(0,Y.UU)(e),clientQuery:this.localState.clientQuery(e),serverQuery:(0,Y.bi)([{name:"client",remove:!0},{name:"connection"},{name:"nonreactive"},{name:"unmask"}],e),defaultVars:(0,T.O4)((0,T.$H)(e)),asQuery:(0,u.pi)((0,u.pi)({},e),{definitions:e.definitions.map(function(e){return"OperationDefinition"===e.kind&&"query"!==e.operation?(0,u.pi)((0,u.pi)({},e),{operation:"query"}):e})})};t.set(e,i)}return t.get(e)},QueryManager.prototype.getVariables=function(e,t){return(0,u.pi)((0,u.pi)({},this.getDocumentInfo(e).defaultVars),t)},QueryManager.prototype.watchQuery=function(e){var t=this.transform(e.query);void 0===(e=(0,u.pi)((0,u.pi)({},e),{variables:this.getVariables(t,e.variables)})).notifyOnNetworkStatusChange&&(e.notifyOnNetworkStatusChange=!1);var i=new ej(this),o=new ex({queryManager:this,queryInfo:i,options:e});return o.lastQuery=t,this.queries.set(o.queryId,i),i.init({document:t,observableQuery:o,variables:o.variables}),o},QueryManager.prototype.query=function(e,t){var i=this;void 0===t&&(t=this.generateQueryId()),(0,c.kG)(e.query,30),(0,c.kG)("Document"===e.query.kind,31),(0,c.kG)(!e.returnPartialData,32),(0,c.kG)(!e.pollInterval,33);var o=this.transform(e.query);return this.fetchQuery(t,(0,u.pi)((0,u.pi)({},e),{query:o})).then(function(a){return a&&(0,u.pi)((0,u.pi)({},a),{data:i.maskOperation({document:o,data:a.data,fetchPolicy:e.fetchPolicy,id:t})})}).finally(function(){return i.stopQuery(t)})},QueryManager.prototype.generateQueryId=function(){return String(this.queryIdCounter++)},QueryManager.prototype.generateRequestId=function(){return this.requestIdCounter++},QueryManager.prototype.generateMutationId=function(){return String(this.mutationIdCounter++)},QueryManager.prototype.stopQueryInStore=function(e){this.stopQueryInStoreNoBroadcast(e),this.broadcastQueries()},QueryManager.prototype.stopQueryInStoreNoBroadcast=function(e){var t=this.queries.get(e);t&&t.stop()},QueryManager.prototype.clearStore=function(e){return void 0===e&&(e={discardWatches:!0}
1),this.cancelPendingFetches((0,c._K)(34)),this.queries.forEach(function(e){e.observableQuery?e.networkStatus=eT.Ie.loading:e.stop()}),this.mutationStore&&(this.mutationStore=Object.create(null)),this.cache.reset(e)},QueryManager.prototype.getObservableQueries=function(e){var t=this;void 0===e&&(e="active");var i=new Map,o=new Map,a=new Map,s=new Set;return Array.isArray(e)&&e.forEach(function(e){if("string"==typeof e)o.set(e,e),a.set(e,!1);else if((0,A.JW)(e)){var i=(0,J.S)(t.transform(e));o.set(i,(0,T.rY)(e)),a.set(i,!1)}else(0,Z.s)(e)&&e.query&&s.add(e)}),this.queries.forEach(function(t,o){var s=t.observableQuery,u=t.document;if(s){if("all"===e){i.set(o,s);return}var c=s.queryName;if("standby"===s.options.fetchPolicy||"active"===e&&!s.hasObservers())return;("active"===e||c&&a.has(c)||u&&a.has((0,J.S)(u)))&&(i.set(o,s),c&&a.set(c,!0),u&&a.set((0,J.S)(u),!0))}}),s.size&&s.forEach(function(e){var o=(0,eC.X)("legacyOneTimeQuery"),a=t.getQuery(o).init({document:e.query,variables:e.variables}),s=new ex({queryManager:t,queryInfo:a,options:(0,u.pi)((0,u.pi)({},e),{fetchPolicy:"network-only"})});(0,c.kG)(s.queryId===o),a.setObservableQuery(s),i.set(o,s)}),!1!==globalThis.__DEV__&&a.size&&a.forEach(function(e,t){if(!e){var i=o.get(t);i?!1!==globalThis.__DEV__&&c.kG.warn(35,i):!1!==globalThis.__DEV__&&c.kG.warn(36)}}),i},QueryManager.prototype.reFetchObservableQueries=function(e){var t=this;void 0===e&&(e=!1);var i=[];return this.getObservableQueries(e?"all":"active").forEach(function(o,a){var s=o.options.fetchPolicy;o.resetLastResults(),(e||"standby"!==s&&"cache-only"!==s)&&i.push(o.refetch()),t.getQuery(a).setDiff(null)}),this.broadcastQueries(),Promise.all(i)},QueryManager.prototype.setObservableQuery=function(e){this.getQuery(e.queryId).setObservableQuery(e)},QueryManager.prototype.startGraphQLSubscription=function(e){var t=this,i=e.query,o=e.variables,a=e.fetchPolicy,s=e.errorPolicy,u=void 0===s?"none":s,c=e.context,l=void 0===c?{}:c,f=e.extensions,p=void 0===f?{}:f;i=this.transform(i),o=this.getVariables(i,o);var makeObservable=function(e){return t.getObservableFromLink(i,l,e,p).map(function(o){"no-cache"!==a&&(shouldWriteResult(o,u)&&t.cache.write({query:i,result:o.data,dataId:"ROOT_SUBSCRIPTION",variables:e}),t.broadcastQueries());var s=graphQLResultHasError(o),c=(0,eR.ls)(o);if(s||c){var l={};if(s&&(l.graphQLErrors=o.errors),c&&(l.protocolErrors=o.extensions[eR.YG]),"none"===u||c)throw new eR.cA(l)}return"ignore"===u&&delete o.errors,o})};if(this.getDocumentInfo(i).hasClientExports){var h=this.localState.addExportedVariables(i,o,l).then(makeObservable);return new Q.y(function(e){var t=null;return h.then(function(i){return t=i.subscribe(e)},e.error),function(){return t&&t.unsubscribe()}})}return makeObservable(o)},QueryManager.prototype.stopQuery=function(e){this.stopQueryNoBroadcast(e),this.broadcastQueries()},QueryManager.prototype.stopQueryNoBroadcast=function(e){this.stopQueryInStoreNoBroadcast(e),this.removeQuery(e)},QueryManager.prototype.removeQuery=function(e){this.fetchCancelFns.delete(e),this.queries.has(e)&&(this.getQuery(e).stop(),this.queries.delete(e))},QueryManager.prototype.broadcastQueries=function(){this.onBroadcast&&this.onBroadcast(),this.queries.forEach(function(e){return e.notify()})},QueryManager.prototype.getLocalState=function(){return this.localState},QueryManager.prototype.getObservableFromLink=function(e,t,i,o,a){var s,c,l=this;void 0===a&&(a=null!==(s=null==t?void 0:t.queryDeduplication)&&void 0!==s?s:this.queryDeduplication);var f=this.getDocumentInfo(e),p=f.serverQuery,h=f.clientQuery;if(p){var d=this.inFlightLinkObservables,y=this.link,v={query:p,variables:i,operationName:(0,T.rY)(p)||void 0,context:this.prepareContext((0,u.pi)((0,u.pi)({},t),{forceFetch:!a})),extensions:o};if(t=v.context,a){var m=(0,J.S)(p),b=(0,H.B)(i),g=d.lookup(m,b);if(!(c=g.observable)){var k=new eI([eO(y,v)]);c=g.observable=k,k.beforeNext(function(){d.remove(m,b)})}}else c=new eI([eO(y,v)])}else c=new eI([Q.y.of({data:{}})]),t=this.prepareContext(t);return h&&(c=asyncMap(c,function(e){return l.localState.runResolvers({document:h,remoteResult:e,context:t,variables:i})})),c},QueryManager.prototype.getResultsFromLink=function(e,t,i){var o=e.lastRequestId=this.generateRequestId(),a=this.cache.transformForLink(i.query);return asyncMap(this.getObservableFromLink(a,i.context,i.variables),function(s){var u=getGraphQLErrorsFromResult(s),c=u.length>0,l=i.errorPolicy;if(o>
1=e.lastRequestId){if(c&&"none"===l)throw e.markError(new eR.cA({graphQLErrors:u}));e.markResult(s,a,i,t),e.markReady()}var f={data:s.data,loading:!1,networkStatus:eT.Ie.ready};return c&&"none"===l&&(f.data=void 0),c&&"ignore"!==l&&(f.errors=u,f.networkStatus=eT.Ie.error),f},function(t){var i=(0,eR.MS)(t)?t:new eR.cA({networkError:t});throw o>=e.lastRequestId&&e.markError(i),i})},QueryManager.prototype.fetchConcastWithInfo=function(e,t,i,o){var a,s,u=this;void 0===i&&(i=eT.Ie.loading),void 0===o&&(o=t.query);var c=this.getVariables(o,t.variables),l=this.getQuery(e),f=this.defaultOptions.watchQuery,p=t.fetchPolicy,h=void 0===p?f&&f.fetchPolicy||"cache-first":p,d=t.errorPolicy,y=void 0===d?f&&f.errorPolicy||"none":d,v=t.returnPartialData,m=t.notifyOnNetworkStatusChange,b=t.context,g=Object.assign({},t,{query:o,variables:c,fetchPolicy:h,errorPolicy:y,returnPartialData:void 0!==v&&v,notifyOnNetworkStatusChange:void 0!==m&&m,context:void 0===b?{}:b}),fromVariables=function(e){g.variables=e;var o=u.fetchQueryByPolicy(l,g,i);return"standby"!==g.fetchPolicy&&o.sources.length>0&&l.observableQuery&&l.observableQuery.applyNextFetchPolicy("after-fetch",t),o},cleanupCancelFn=function(){return u.fetchCancelFns.delete(e)};if(this.fetchCancelFns.set(e,function(e){cleanupCancelFn(),setTimeout(function(){return a.cancel(e)})}),this.getDocumentInfo(g.query).hasClientExports)a=new eI(this.localState.addExportedVariables(g.query,g.variables,g.context).then(fromVariables).then(function(e){return e.sources})),s=!0;else{var k=fromVariables(g.variables);s=k.fromLink,a=new eI(k.sources)}return a.promise.then(cleanupCancelFn,cleanupCancelFn),{concast:a,fromLink:s}},QueryManager.prototype.refetchQueries=function(e){var t=this,i=e.updateCache,o=e.include,a=e.optimistic,s=void 0!==a&&a,u=e.removeOptimistic,c=void 0===u?s?(0,eC.X)("refetchQueries"):void 0:u,l=e.onQueryUpdated,f=new Map;o&&this.getObservableQueries(o).forEach(function(e,i){f.set(i,{oq:e,lastDiff:t.getQuery(i).getDiff()})});var p=new Map;return i&&this.cache.batch({update:i,optimistic:s&&c||!1,removeOptimistic:c,onWatchUpdated:function(e,t,i){var o=e.watcher instanceof ej&&e.watcher.observableQuery;if(o){if(l){f.delete(o.queryId);var a=l(o,t,i);return!0===a&&(a=o.refetch()),!1!==a&&p.set(o,a),a}null!==l&&f.set(o.queryId,{oq:o,lastDiff:i,diff:t})}}}),f.size&&f.forEach(function(e,i){var o,a=e.oq,s=e.lastDiff,u=e.diff;if(l){if(!u){var c=a.queryInfo;c.reset(),u=c.getDiff()}o=l(a,u,s)}l&&!0!==o||(o=a.refetch()),!1!==o&&p.set(a,o),i.indexOf("legacyOneTimeQuery")>=0&&t.stopQueryNoBroadcast(i)}),c&&this.cache.removeOptimistic(c),p},QueryManager.prototype.maskOperation=function(e){var t,i,o,a=e.document,s=e.data;if(!1!==globalThis.__DEV__){var u=e.fetchPolicy,l=e.id,f=null===(t=(0,T.$H)(a))||void 0===t?void 0:t.operation,p=(null!==(i=null==f?void 0:f[0])&&void 0!==i?i:"o")+l;!this.dataMasking||"no-cache"!==u||(0,I.YU)(a)||this.noCacheWarningsByQueryId.has(p)||(this.noCacheWarningsByQueryId.add(p),!1!==globalThis.__DEV__&&c.kG.warn(37,null!==(o=(0,T.rY)(a))&&void 0!==o?o:"Unnamed ".concat(null!=f?f:"operation")))}return this.dataMasking?maskOperation(s,a,this.cache):s},QueryManager.prototype.maskFragment=function(e){var t=e.data,i=e.fragment,o=e.fragmentName;return this.dataMasking?maskFragment(t,i,this.cache,o):t},QueryManager.prototype.fetchQueryByPolicy=function(e,t,i){var o=this,a=t.query,s=t.variables,c=t.fetchPolicy,l=t.refetchWritePolicy,f=t.errorPolicy,p=t.returnPartialData,h=t.context,d=t.notifyOnNetworkStatusChange,y=e.networkStatus;e.init({document:a,variables:s,networkStatus:i});var readCache=function(){return e.getDiff()},resultsFromCache=function(t,i){void 0===i&&(i=e.networkStatus||eT.Ie.loading);var c=t.result;!1===globalThis.__DEV__||p||(0,C.D)(c,{})||logMissingFieldErrors(t.missing);var fromData=function(e){return Q.y.of((0,u.pi)({data:e,loading:(0,eT.Oj)(i),networkStatus:i},t.complete?null:{partial:!0}))};return c&&o.getDocumentInfo(a).hasForcedResolvers?o.localState.runResolvers({document:a,remoteResult:{data:c},context:h,variables:s,onlyRunForcedResolvers:!0}).then(function(e){return fromData(e.data||void 0)}):"none"===f&&i===eT.Ie.refetch&&Array.isArray(t.missing)?fromData(void 0):fromData(c)},v="no-cache"===c?0:i===eT.Ie.refetch&&"merge"!==l?1:2,resultsFromLink=function(){return o.getResultsFromLink(e,v,{query:a,variables:s,context:h,fetchPolicy:c,errorPolicy:f})}
1,m=d&&"number"==typeof y&&y!==i&&(0,eT.Oj)(i);switch(c){default:case"cache-first":var b=readCache();if(b.complete)return{fromLink:!1,sources:[resultsFromCache(b,e.markReady())]};if(p||m)return{fromLink:!0,sources:[resultsFromCache(b),resultsFromLink()]};return{fromLink:!0,sources:[resultsFromLink()]};case"cache-and-network":var b=readCache();if(b.complete||p||m)return{fromLink:!0,sources:[resultsFromCache(b),resultsFromLink()]};return{fromLink:!0,sources:[resultsFromLink()]};case"cache-only":return{fromLink:!1,sources:[resultsFromCache(readCache(),e.markReady())]};case"network-only":if(m)return{fromLink:!0,sources:[resultsFromCache(readCache()),resultsFromLink()]};return{fromLink:!0,sources:[resultsFromLink()]};case"no-cache":if(m)return{fromLink:!0,sources:[resultsFromCache(e.getDiff()),resultsFromLink()]};return{fromLink:!0,sources:[resultsFromLink()]};case"standby":return{fromLink:!1,sources:[]}}},QueryManager.prototype.getQuery=function(e){return e&&!this.queries.has(e)&&this.queries.set(e,new ej(this,e)),this.queries.get(e)},QueryManager.prototype.prepareContext=function(e){void 0===e&&(e={});var t=this.localState.prepareContext(e);return(0,u.pi)((0,u.pi)((0,u.pi)({},this.defaultContext),t),{clientAwareness:this.clientAwareness})},QueryManager}(),eV=i(34829);function isSelectionNode(e){return e.kind===q.h.FIELD||e.kind===q.h.FRAGMENT_SPREAD||e.kind===q.h.INLINE_FRAGMENT}var eG=function(){function LocalState(e){var t=e.cache,i=e.client,o=e.resolvers,a=e.fragmentMatcher;this.selectionsToResolveCache=new WeakMap,this.cache=t,i&&(this.client=i),o&&this.addResolvers(o),a&&this.setFragmentMatcher(a)}return LocalState.prototype.addResolvers=function(e){var t=this;this.resolvers=this.resolvers||{},Array.isArray(e)?e.forEach(function(e){t.resolvers=(0,M.Ee)(t.resolvers,e)}):this.resolvers=(0,M.Ee)(this.resolvers,e)},LocalState.prototype.setResolvers=function(e){this.resolvers={},this.addResolvers(e)},LocalState.prototype.getResolvers=function(){return this.resolvers||{}},LocalState.prototype.runResolvers=function(e){return(0,u.mG)(this,arguments,void 0,function(e){var t=e.document,i=e.remoteResult,o=e.context,a=e.variables,s=e.onlyRunForcedResolvers,c=void 0!==s&&s;return(0,u.Jh)(this,function(e){return t?[2,this.resolveDocument(t,i.data,o,a,this.fragmentMatcher,c).then(function(e){return(0,u.pi)((0,u.pi)({},i),{data:e.result})})]:[2,i]})})},LocalState.prototype.setFragmentMatcher=function(e){this.fragmentMatcher=e},LocalState.prototype.getFragmentMatcher=function(){return this.fragmentMatcher},LocalState.prototype.clientQuery=function(e){return(0,j.FS)(["client"],e)&&this.resolvers?e:null},LocalState.prototype.serverQuery=function(e){return(0,Y.ob)(e)},LocalState.prototype.prepareContext=function(e){var t=this.cache;return(0,u.pi)((0,u.pi)({},e),{cache:t,getCacheKey:function(e){return t.identify(e)}})},LocalState.prototype.addExportedVariables=function(e){return(0,u.mG)(this,arguments,void 0,function(e,t,i){return void 0===t&&(t={}),void 0===i&&(i={}),(0,u.Jh)(this,function(o){return e?[2,this.resolveDocument(e,this.buildRootValueFromCache(e,t)||{},this.prepareContext(i),t).then(function(e){return(0,u.pi)((0,u.pi)({},t),e.exportedVariables)})]:[2,(0,u.pi)({},t)]})})},LocalState.prototype.shouldForceResolvers=function(e){var t=!1;return(0,eV.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 eV.$_}}}),t},LocalState.prototype.buildRootValueFromCache=function(e,t){return this.cache.diff({query:(0,Y.aL)(e),variables:t,returnPartialData:!0,optimistic:!1}).result},LocalState.prototype.resolveDocument=function(e,t){return(0,u.mG)(this,arguments,void 0,function(e,t,i,o,a,s){var c,l,f,p,h,d,y,v,m,b;return void 0===i&&(i={}),void 0===o&&(o={}),void 0===a&&(a=function(){return!0}),void 0===s&&(s=!1),(0,u.Jh)(this,function(g){return c=(0,T.p$)(e),l=(0,T.kU)(e),f=(0,I.F)(l),p=this.collectSelectionsToResolve(c,f),d=(h=c.operation)?h.charAt(0).toUpperCase()+h.slice(1):"Query",y=this,v=y.cache,m=y.client,b={fragmentMap:f,context:(0,u.pi)((0,u.pi)({},i),{cache:v,client:m}),variables:o,fragmentMatcher:a,defaultOperationType:d,exportedVariables:{},selectionsToResolve:p,onlyRunForcedResolvers:s},[2,this.resolveSelectionSet(c.selectionSet,!1,t,b).then(function(e){return{result:e,exportedVariables:b.exportedVariables}})]})})},LocalState.prototype.resolveSelectionSet=function(e,t,i,o){return(0,u.mG)(this,void 0,void 0,function(){var a,s,l,f,p,h=this;return(0,u.Jh)(this,function(d){return a=o.fragmentMap,s=o.context,l=o.variables,f=[i],p=function(e){return(0,u.mG)(h,void 0,void 0,function(){var p,h;return(0,u.Jh)(this,function(u){return(t||o.selectionsToResolve.has(e))&&(0,j.LZ)(e,l)?(0,A.My)(e)?[2,this.resolveField(e,t,i,o).then(function(t){var i;
1void 0!==t&&f.push(((i={})[(0,A.u2)(e)]=t,i))})]:((0,A.Ao)(e)?p=e:(p=a[e.name.value],(0,c.kG)(p,19,e.name.value)),p&&p.typeCondition&&(h=p.typeCondition.name.value,o.fragmentMatcher(i,h,s)))?[2,this.resolveSelectionSet(p.selectionSet,t,i,o).then(function(e){f.push(e)})]:[2]:[2]})})},[2,Promise.all(e.selections.map(p)).then(function(){return(0,M.bw)(f)})]})})},LocalState.prototype.resolveField=function(e,t,i,o){return(0,u.mG)(this,void 0,void 0,function(){var a,s,c,l,f,p,h,d,y,v=this;return(0,u.Jh)(this,function(u){return i?(a=o.variables,l=(s=e.name.value)!==(c=(0,A.u2)(e)),p=Promise.resolve(f=i[c]||i[s]),(!o.onlyRunForcedResolvers||this.shouldForceResolvers(e))&&(h=i.__typename||o.defaultOperationType,(d=this.resolvers&&this.resolvers[h])&&(y=d[l?s:c])&&(p=Promise.resolve(eh.withValue(this.cache,y,[i,(0,A.NC)(e,a),o.context,{field:e,fragmentMap:o.fragmentMap}])))),[2,p.then(function(i){if(void 0===i&&(i=f),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&&(o.exportedVariables[e.value.value]=i)})}),!e.selectionSet||null==i)return i;var a,s,u=null!==(s=null===(a=e.directives)||void 0===a?void 0:a.some(function(e){return"client"===e.name.value}))&&void 0!==s&&s;return Array.isArray(i)?v.resolveSubSelectedArray(e,t||u,i,o):e.selectionSet?v.resolveSelectionSet(e.selectionSet,t||u,i,o):void 0})]):[2,null]})})},LocalState.prototype.resolveSubSelectedArray=function(e,t,i,o){var a=this;return Promise.all(i.map(function(i){return null===i?null:Array.isArray(i)?a.resolveSubSelectedArray(e,t,i,o):e.selectionSet?a.resolveSelectionSet(e.selectionSet,t,i,o):void 0}))},LocalState.prototype.collectSelectionsToResolve=function(e,t){var isSingleASTNode=function(e){return!Array.isArray(e)},i=this.selectionsToResolveCache;function collectByDefinition(e){if(!i.has(e)){var o=new Set;i.set(e,o),(0,eV.Vn)(e,{Directive:function(e,t,i,a,s){"client"===e.name.value&&s.forEach(function(e){isSingleASTNode(e)&&isSelectionNode(e)&&o.add(e)})},FragmentSpread:function(e,i,a,s,u){var l=t[e.name.value];(0,c.kG)(l,20,e.name.value);var f=collectByDefinition(l);f.size>0&&(u.forEach(function(e){isSingleASTNode(e)&&isSelectionNode(e)&&o.add(e)}),o.add(e),f.forEach(function(e){o.add(e)}))}})}return i.get(e)}return collectByDefinition(e)},LocalState}(),ez=i(17466),eW=!1,eB=function(){function ApolloClient(e){var t,i=this;if(this.resetStoreCallbacks=[],this.clearStoreCallbacks=[],!e.cache)throw(0,c._K)(16);var o=e.uri,a=e.credentials,s=e.headers,l=e.cache,f=e.documentTransform,p=e.ssrMode,h=void 0!==p&&p,d=e.ssrForceFetchDelay,y=void 0===d?0:d,v=e.connectToDevTools,m=e.queryDeduplication,b=void 0===m||m,g=e.defaultOptions,k=e.defaultContext,S=e.assumeImmutableResults,_=void 0===S?l.assumeImmutableResults:S,w=e.resolvers,O=e.typeDefs,D=e.fragmentMatcher,F=e.name,E=e.version,C=e.devtools,I=e.dataMasking,R=e.link;R||(R=o?new eF.u({uri:o,credentials:a,headers:s}):ew.i.empty()),this.link=R,this.cache=l,this.disableNetworkFetches=h||y>0,this.queryDeduplication=b,this.defaultOptions=g||Object.create(null),this.typeDefs=O,this.devtoolsConfig=(0,u.pi)((0,u.pi)({},C),{enabled:null!==(t=null==C?void 0:C.enabled)&&void 0!==t?t:v}),void 0===this.devtoolsConfig.enabled&&(this.devtoolsConfig.enabled=!1!==globalThis.__DEV__),y&&setTimeout(function(){return i.disableNetworkFetches=!1},y),this.watchQuery=this.watchQuery.bind(this),this.query=this.query.bind(this),this.mutate=this.mutate.bind(this),this.watchFragment=this.watchFragment.bind(this),this.resetStore=this.resetStore.bind(this),this.reFetchObservableQueries=this.reFetchObservableQueries.bind(this),this.version=eD.i,this.localState=new eG({cache:l,client:this,resolvers:w,fragmentMatcher:D}),this.queryManager=new eL({cache:this.cache,link:this.link,defaultOptions:this.defaultOptions,defaultContext:k,documentTransform:f,queryDeduplication:b,ssrMode:h,dataMasking:!!I,clientAwareness:{name:F,version:E},localState:this.localState,assumeImmutableResults:_,onBroadcast:this.devtoolsConfig.enabled?function(){i.devToolsHookCb&&i.devToolsHookCb({action:{},state:{queries:i.queryManager.getQueryStore(),mutations:i.queryManager.mutationStore||{}},dataWithOptimisticResults:i.cache.extract(!0)})}:void 0}),this.devtoolsConfig.enabled&&this.connectToDevTools()}return ApolloClient.prototype.connectToDevTools=function(){if("undefined"!=typeof window){var e=window,t=Symbol.for("apollo.devtools");(e[t]=e[t]||[]).push(this),e.__APOLLO_CLIENT__=this,!eW&&!1!==globalThis.__DEV__&&(eW=!0,window.document&&window.top===window.self&&/^(https?|file):$/.test(window.location.protocol)&&setTimeout(function(){if(!window.__APOLLO_DEVTOOLS_GLOBAL_HOOK__){var e=window.navigator,t=e&&e.userAgent,i=void 0;"string"==typeof t&&(t.indexOf("Chrome/")>-1?i="https://chrome.google.com/webstore/detail/apollo-client-developer-t/jdkknkkbebbapilgoeccciglkfbmbnfm":t.indexOf("Firefox/")>-1&&(i="https://addons.mozilla.org/en-US/firefox/addon/apollo-developer-tools/")),i&&!1!==globalThis.__DEV__&&c.kG.log("Download the Apollo DevTools for a better development experience: %s",i)}},1e4))}},Object.defineProperty(ApolloClient.prototype,"documentTransform",{get:function(){return this.queryManager.documentTransform}
1,enumerable:!1,configurable:!0}),ApolloClient.prototype.stop=function(){this.queryManager.stop()},ApolloClient.prototype.watchQuery=function(e){return this.defaultOptions.watchQuery&&(e=(0,ez.J)(this.defaultOptions.watchQuery,e)),this.disableNetworkFetches&&("network-only"===e.fetchPolicy||"cache-and-network"===e.fetchPolicy)&&(e=(0,u.pi)((0,u.pi)({},e),{fetchPolicy:"cache-first"})),this.queryManager.watchQuery(e)},ApolloClient.prototype.query=function(e){return this.defaultOptions.query&&(e=(0,ez.J)(this.defaultOptions.query,e)),(0,c.kG)("cache-and-network"!==e.fetchPolicy,17),this.disableNetworkFetches&&"network-only"===e.fetchPolicy&&(e=(0,u.pi)((0,u.pi)({},e),{fetchPolicy:"cache-first"})),this.queryManager.query(e)},ApolloClient.prototype.mutate=function(e){return this.defaultOptions.mutate&&(e=(0,ez.J)(this.defaultOptions.mutate,e)),this.queryManager.mutate(e)},ApolloClient.prototype.subscribe=function(e){var t=this,i=this.queryManager.generateQueryId();return this.queryManager.startGraphQLSubscription(e).map(function(o){return(0,u.pi)((0,u.pi)({},o),{data:t.queryManager.maskOperation({document:e.query,data:o.data,fetchPolicy:e.fetchPolicy,id:i})})})},ApolloClient.prototype.readQuery=function(e,t){return void 0===t&&(t=!1),this.cache.readQuery(e,t)},ApolloClient.prototype.watchFragment=function(e){var t;return this.cache.watchFragment((0,u.pi)((0,u.pi)({},e),((t={})[Symbol.for("apollo.dataMasking")]=this.queryManager.dataMasking,t)))},ApolloClient.prototype.readFragment=function(e,t){return void 0===t&&(t=!1),this.cache.readFragment(e,t)},ApolloClient.prototype.writeQuery=function(e){var t=this.cache.writeQuery(e);return!1!==e.broadcast&&this.queryManager.broadcastQueries(),t},ApolloClient.prototype.writeFragment=function(e){var t=this.cache.writeFragment(e);return!1!==e.broadcast&&this.queryManager.broadcastQueries(),t},ApolloClient.prototype.__actionHookForDevTools=function(e){this.devToolsHookCb=e},ApolloClient.prototype.__requestRaw=function(e){return eO(this.link,e)},ApolloClient.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()})},ApolloClient.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()}))})},ApolloClient.prototype.onResetStore=function(e){var t=this;return this.resetStoreCallbacks.push(e),function(){t.resetStoreCallbacks=t.resetStoreCallbacks.filter(function(t){return t!==e})}},ApolloClient.prototype.onClearStore=function(e){var t=this;return this.clearStoreCallbacks.push(e),function(){t.clearStoreCallbacks=t.clearStoreCallbacks.filter(function(t){return t!==e})}},ApolloClient.prototype.reFetchObservableQueries=function(e){return this.queryManager.reFetchObservableQueries(e)},ApolloClient.prototype.refetchQueries=function(e){var t=this.queryManager.refetchQueries(e),i=[],o=[];t.forEach(function(e,t){i.push(t),o.push(e)});var a=Promise.all(o);return a.queries=i,a.results=o,a.catch(function(e){!1!==globalThis.__DEV__&&c.kG.debug(18,e)}),a},ApolloClient.prototype.getObservableQueries=function(e){return void 0===e&&(e="active"),this.queryManager.getObservableQueries(e)},ApolloClient.prototype.extract=function(e){return this.cache.extract(e)},ApolloClient.prototype.restore=function(e){return this.cache.restore(e)},ApolloClient.prototype.addResolvers=function(e){this.localState.addResolvers(e)},ApolloClient.prototype.setResolvers=function(e){this.localState.setResolvers(e)},ApolloClient.prototype.getResolvers=function(){return this.localState.getResolvers()},ApolloClient.prototype.setLocalStateFragmentMatcher=function(e){this.localState.setFragmentMatcher(e)},ApolloClient.prototype.setLink=function(e){this.link=this.queryManager.link=e},Object.defineProperty(ApolloClient.prototype,"defaultContext",{get:function(){return this.queryManager.defaultContext}
1,enumerable:!1,configurable:!0}),ApolloClient}();!1!==globalThis.__DEV__&&(eB.prototype.getMemoryInternals=P.su);var eU=i(87637),eK=i(54312),ApolloProvider=function(e){var t=e.client,i=e.children,o=(0,eK.K)(),a=eU.useContext(o),s=eU.useMemo(function(){return(0,u.pi)((0,u.pi)({},a),{client:t||a.client})},[a,t]);return(0,c.kG)(s.client,55),eU.createElement(o.Provider,{value:s},i)},eY=i(58388),eH=i(2265);function createFulfilledPromise(e){var t=Promise.resolve(e);return t.status="fulfilled",t.value=e,t}function createRejectedPromise(e){var t=Promise.reject(e);return t.catch(function(){}),t.status="rejected",t.reason=e,t}function isStatefulPromise(e){return"status"in e}function wrapPromiseWithState(e){return isStatefulPromise(e)||(e.status="pending",e.then(function(t){"pending"===e.status&&(e.status="fulfilled",e.value=t)},function(t){"pending"===e.status&&(e.status="rejected",e.reason=t)})),e}var eJ=i(9422),e$=Symbol(),eZ=Symbol();function wrapQueryRef(e){var t,i=((t={toPromise:function(){return getWrappedPromise(i).then(function(){return i})}})[e$]=e,t[eZ]=e.promise,t);return i}function assertWrappedQueryRef(e){(0,eJ.kG)(!e||e$ in e,69)}function getWrappedPromise(e){var t=e[e$];return"fulfilled"===t.promise.status?t.promise:e[eZ]}var eX=["canonizeResults","context","errorPolicy","fetchPolicy","refetchWritePolicy","returnPartialData"],e0=function(){function InternalQueryReference(e,t){var i=this;this.key={},this.listeners=new Set,this.references=0,this.softReferences=0,this.handleNext=this.handleNext.bind(this),this.handleError=this.handleError.bind(this),this.dispose=this.dispose.bind(this),this.observable=e,t.onDispose&&(this.onDispose=t.onDispose),this.setResult(),this.subscribeToQuery();var startDisposeTimer=function(){var e;i.references||(i.autoDisposeTimeoutId=setTimeout(i.dispose,null!==(e=t.autoDisposeTimeoutMs)&&void 0!==e?e:3e4))};this.promise.then(startDisposeTimer,startDisposeTimer)}return Object.defineProperty(InternalQueryReference.prototype,"disposed",{get:function(){return this.subscription.closed},enumerable:!1,configurable:!0}),Object.defineProperty(InternalQueryReference.prototype,"watchQueryOptions",{get:function(){return this.observable.options},enumerable:!1,configurable:!0}),InternalQueryReference.prototype.reinitialize=function(){var e=this.observable,t=this.watchQueryOptions.fetchPolicy,i="no-cache"===t||"standby"===t;try{if(i?e.silentSetOptions({fetchPolicy:"standby"}):(e.resetLastResults(),e.silentSetOptions({fetchPolicy:"cache-first"})),this.subscribeToQuery(),i)return;e.resetDiff(),this.setResult()}finally{e.silentSetOptions({fetchPolicy:t})}},InternalQueryReference.prototype.retain=function(){var e=this;this.references++,clearTimeout(this.autoDisposeTimeoutId);var t=!1;return function(){t||(t=!0,e.references--,setTimeout(function(){e.references||e.dispose()}))}},InternalQueryReference.prototype.softRetain=function(){var e=this;this.softReferences++;var t=!1;return function(){t||(t=!0,e.softReferences--,setTimeout(function(){e.softReferences||e.references||e.dispose()}))}},InternalQueryReference.prototype.didChangeOptions=function(e){var t=this;return eX.some(function(i){return i in e&&!(0,C.D)(t.watchQueryOptions[i],e[i])})},InternalQueryReference.prototype.applyOptions=function(e){var t=this.watchQueryOptions,i=t.fetchPolicy,o=t.canonizeResults;return"standby"===i&&i!==e.fetchPolicy?this.initiateFetch(this.observable.reobserve(e)):(this.observable.silentSetOptions(e),o!==e.canonizeResults&&(this.result=(0,u.pi)((0,u.pi)({},this.result),this.observable.getCurrentResult()),this.promise=createFulfilledPromise(this.result))),this.promise},InternalQueryReference.prototype.listen=function(e){var t=this;return this.listeners.add(e),function(){t.listeners.delete(e)}},InternalQueryReference.prototype.refetch=function(e){return this.initiateFetch(this.observable.refetch(e))},InternalQueryReference.prototype.fetchMore=function(e){return this.initiateFetch(this.observable.fetchMore(e))},InternalQueryReference.prototype.dispose=function(){this.subscription.unsubscribe(),this.onDispose()},InternalQueryReference.prototype.onDispose=function(){},InternalQueryReference.prototype.handleNext=function(e){var t;if("pending"===this.promise.status)void 0===e.data&&(e.data=this.result.data),this.result=e,null===(t=this.resolve)||void 0===t||t.call(this,e);else{if(e.data===this.result.data&&e.networkStatus===this.result.networkStatus)return;void 0===e.data&&(e.data=this.result.data),this.result=e,this.promise=createFulfilledPromise(e),this.deliver(this.promise)}},InternalQueryReference.prototype.handleError=function(e){var t;(this.subscription.unsubscribe(),this.subscription=this.observable.resubscribeAfterError(this.handleNext,this.handleError),"pending"===this.promise.status)?null===(t=this.reject)||void 0===t||t.call(this,e):(this.promise=createRejectedPromise(e),this.deliver(this.promise))},InternalQueryReference.prototype.deliver=function(e){this.listeners.forEac
1h(function(t){return t(e)})},InternalQueryReference.prototype.initiateFetch=function(e){var t=this;return this.promise=this.createPendingPromise(),this.promise.catch(function(){}),e.then(function(){setTimeout(function(){var e;"pending"===t.promise.status&&(t.result=t.observable.getCurrentResult(),null===(e=t.resolve)||void 0===e||e.call(t,t.result))})}).catch(function(e){var i;return null===(i=t.reject)||void 0===i?void 0:i.call(t,e)}),e},InternalQueryReference.prototype.subscribeToQuery=function(){var e=this;this.subscription=this.observable.filter(function(t){return!(0,C.D)(t.data,{})&&!(0,C.D)(t,e.result)}).subscribe(this.handleNext,this.handleError)},InternalQueryReference.prototype.setResult=function(){var e=this.observable.getCurrentResult(!1);(0,C.D)(e,this.result)||(this.result=e,this.promise=e.data&&(!e.partial||this.watchQueryOptions.returnPartialData)?createFulfilledPromise(e):this.createPendingPromise())},InternalQueryReference.prototype.createPendingPromise=function(){var e=this;return wrapPromiseWithState(new Promise(function(t,i){e.resolve=t,e.reject=i}))},InternalQueryReference}(),e1=function(){function SuspenseCache(e){void 0===e&&(e=Object.create(null)),this.queryRefs=new Trie(N.mr),this.options=e}return SuspenseCache.prototype.getQueryRef=function(e,t){var i=this.queryRefs.lookupArray(e);return i.current||(i.current=new e0(t(),{autoDisposeTimeoutMs:this.options.autoDisposeTimeoutMs,onDispose:function(){delete i.current}})),i.current},SuspenseCache.prototype.add=function(e,t){this.queryRefs.lookupArray(e).current=t},SuspenseCache}(),e8=Symbol.for("apollo.suspenseCache");function getSuspenseCache(e){var t;return e[e8]||(e[e8]=new e1(null===(t=e.defaultOptions.react)||void 0===t?void 0:t.suspense)),e[e8]}var e2={pkg:"@apollo/client-react-streaming"},e3=Symbol.for("apollo.source_package"),e5=class extends ek{static info=e2;[e3];constructor(e){super(e);let t=this.constructor.info;this[e3]=`${t.pkg}:InMemoryCache`}},e4=(0,eH.createContext)(null);function useTransportValue(e){let t=(0,eH.useContext)(e4);if(!t)throw Error("useTransportValue must be used within a streaming-specific ApolloProvider");let i=t.useStaticValueRef(e),o=(0,eH.useSyncExternalStore)(()=>()=>{},()=>e,()=>i.current);return o===e&&(i.current=void 0),o}function deserializeOptions(e){return{...e,query:(0,eS.Ps)((0,J.S)((0,eS.Ps)(e.query)))}}
1function reviveTransportedQueryRef(e,t){let i=deserializeOptions(e.options),o=[i.query,(0,H.B)(i.variables),e.queryKey];return!0===e.__transportedQueryRef&&(e.__transportedQueryRef=wrapQueryRef(getSuspenseCache(t).getQueryRef(o,()=>t.watchQuery(i)))),[e.__transportedQueryRef,o]}function isTransportedQueryRef(e){return"__transportedQueryRef"in e}function useWrapTransportedQueryRef(e){let t,i;let o=(0,e_.x)();(i=isTransportedQueryRef(e))&&([e,t]=reviveTransportedQueryRef(e,o)),assertWrappedQueryRef(e);let a=e[e$];return(0,eH.useEffect)(()=>{i&&t&&a.disposed&&getSuspenseCache(o).add(t,a)}),(0,eH.useEffect)(()=>{if(i)return a.softRetain()},[i,a]),e}var e6={useFragment:e=>index_browser_wrap(e,["data","complete","missing"]),useQuery:e=>index_browser_wrap(e,["data","loading","networkStatus","called"]),useSuspenseQuery:e=>index_browser_wrap(e,["data","networkStatus"]),useReadQuery:e=>index_browser_wrap(t=>e(useWrapTransportedQueryRef(t)),["data","networkStatus"]),useQueryRefHandlers:e=>index_browser_wrap(t=>e(useWrapTransportedQueryRef(t)),[])};function index_browser_wrap(e,t){return(...i)=>{let o=e(...i);if(0==t.length)return o;let a={};for(let e of t)a[e]=o[e];return{...o,...useTransportValue(a)}}}function assertInstance(e,t,i){if(e[e3]!==`${t.pkg}:${i}`)throw Error(`When using \`${i}\` in streaming SSR, you must use the \`${i}\` export provided by \`"${t.pkg}"\`.`)}function getQueryManager(e){return e.queryManager}var e9=Symbol.for("apollo.hook.wrappers"),e7=class extends eB{static info=e2;[e3];constructor(e){let t=[];"ssrMode"in e&&(delete e.ssrMode,t.push("The `ssrMode` option is not supported in %s. Please remove it from your %s constructor options.")),"ssrForceFetchDelay"in e&&(delete e.ssrForceFetchDelay,t.push("The `ssrForceFetchDelay` option is not supported in %s. Please remove it from your %s constructor options.")),super(e);let i=this.constructor.info;for(let e of(this[e3]=`${i.pkg}:ApolloClient`,t))console.warn(e,i.pkg,"ApolloClient");assertInstance(this.cache,i,"InMemoryCache")}},te=class extends e7{constructor(e){super(e),this.onQueryStarted=this.onQueryStarted.bind(this),getQueryManager(this)[e9]=e6}simulatedStreamingQueries=new Map;transportedQueryOptions=new Map;identifyUniqueQuery(e){let t=this.documentTransform.transformDocument(e.query),i=getQueryManager(this),{serverQuery:o}=i.getDocumentInfo(t);if(!o)throw Error("could not identify unique query");let a=(0,H.B)(e.variables||{}),s=[(0,J.S)(o),a],u=JSON.stringify(s);return{cacheKey:u,cacheKeyArr:s}}onQueryStarted({options:e,id:t}){let i=deserializeOptions(e),{cacheKey:o,cacheKeyArr:a}=this.identifyUniqueQuery(i);this.transportedQueryOptions.set(t,i);let s=getQueryManager(this);if(!s.inFlightLinkObservables.peekArray(a)?.observable){let e,u;let cleanup=()=>{s.fetchCancelFns.get(o)===u&&s.fetchCancelFns.delete(o),s.inFlightLinkObservables.removeArray(a),this.simulatedStreamingQueries.get(t)===e&&this.simulatedStreamingQueries.delete(t)},c=new Promise((o,a)=>{this.simulatedStreamingQueries.set(t,e={resolve:o,reject:a,options:i})});c.then(cleanup,cleanup);let l=new Q.y(e=>{c.then(t=>{e.next(t),e.complete()}).catch(t=>{e.error(t)})});s.inFlightLinkObservables.lookupArray(a).observable=l,s.fetchCancelFns.set(o,u=e=>{let{reject:i}=this.simulatedStreamingQueries.get(t)??{};i&&i(e),cleanup()})}}onQueryProgress=e=>{let t=this.simulatedStreamingQueries.get(e.id);if("data"===e.type){t?.resolve?.({data:e.result.data});let i=this.transportedQueryOptions.get(e.id);i&&this.cache.writeQuery({query:i.query,data:e.result.data,variables:i.variables})}else"error"===e.type?(t&&(this.simulatedStreamingQueries.delete(e.id),eY.kG.debug("Query failed on server, rerunning in browser:",t.options),this.rerunSimulatedQuery(t)),this.transportedQueryOptions.delete(e.id)):"complete"===e.type&&this.transportedQueryOptions.delete(e.id)};rerunSimulatedQueries=()=>{for(let[e,t]of this.simulatedStreamingQueries)this.simulatedStreamingQueries.delete(e),eY.kG.debug("streaming connection closed before server query could be fully transported, rerunning:",t.options),this.rerunSimulatedQuery(t)};rerunSimulatedQuery=e=>{let t=getQueryManager(this),i=t.generateQueryId();t.fetchQuery(i,{...e.options,query:t.transform(e.options.query),context:{...e.options.context,queryDeduplication:!1}}).finally(()=>t.stopQuery(i)).then(e.resolve,e.reject)}},tt=class extends te{},tr=class extends tt{},tn=Symbol.for("ApolloClientSingleton");function WrapApolloProvider(e){let WrappedApolloProvider3=({makeClient:t,children:i,...o})=>{let a=(0,eH.useRef)(void 0);return a.current||(a.current=window[tn]??=t(),assertInstance(a.current,WrappedApolloProvider3.info,"ApolloClient")),eH.createElement(ApolloProvider,{client:a.current},eH.createElement(e,{onQueryEvent:e=>"started"===e.type?a.current.onQueryStarted(e):a.current.onQueryProgress(e),rerunSimulatedQueries:a.current.rerunSimulatedQueries,registerDispatchRequestStarted:a.current.wat
1chQueryQueue?.register,...o},i))};return WrappedApolloProvider3.info=e2,WrappedApolloProvider3}var ti=Symbol.for("ApolloSSRDataTransport"),to=Symbol.for("apollo.hookRehydrationCache");function registerLateInitializingQueue(e,t){let i=window[e]||[];Array.isArray(i)&&(window[e]={push:(...e)=>{for(let i of e)t(i)}},window[e].push(...i))}function registerDataTransport({onQueryEvent:e,onRehydrate:t,revive:i}){registerLateInitializingQueue(ti,o=>{let a=i(o);for(let i of(eY.kG.debug("received data from the server:",a),t(a.rehydrate),a.events))e(i)})}function revive(e){return e}var ta={},ts=i(24033),tu={pkg:"@apollo/experimental-nextjs-app-support",client:"ApolloClient",cache:"InMemoryCache"},tc=class extends tr{static info=tu},tl=class extends e5{static info=tu},tf=WrapApolloProvider((({reviveFromStream:e=revive})=>function({children:t,onQueryEvent:i,rerunSimulatedQueries:o}){let a=(0,eH.useRef)(window[to]??={});registerDataTransport({onQueryEvent:i,onRehydrate(e){Object.assign(a.current,e)},revive:e}),(0,eH.useEffect)(()=>{if("complete"!==document.readyState)return window.addEventListener("load",o,{once:!0}),()=>window.removeEventListener("load",o);o()},[o]);let s=(0,eH.useCallback)(function(e){let t=(0,eH.useId)(),i=a.current,o=(0,eH.useRef)(ta);return o.current===ta&&(i&&t in i?(o.current=i[t],delete i[t]):o.current=e),o},[]);return eH.createElement(e4.Provider,{value:(0,eH.useMemo)(()=>({useStaticValueRef:s}),[s])},t)})({useInsertHtml(){let e=(0,eH.useContext)(ts.ServerInsertedHTMLContext);return e||(()=>{})}}));tf.info=tu},34829:function(e,t,i){"use strict";i.d(t,{$_:function(){return c},Vn:function(){return visit}});var o=i(86771),a=i(94775),s=i(5064),u=i(55459);let c=Object.freeze({});function visit(e,t,i=s.h8){let l,f,p;let h=new Map;for(let e of Object.values(u.h))h.set(e,getEnterLeaveForKind(t,e));let d=Array.isArray(e),y=[e],v=-1,m=[],b=e,g=[],k=[];do{var S,_,w;let e;v++;let u=v===y.length,O=u&&0!==m.length;if(u){if(f=0===k.length?void 0:g[g.length-1],b=p,p=k.pop(),O){if(d){b=b.slice();let e=0;for(let[t,i]of m){let o=t-e;null===i?(b.splice(o,1),e++):b[o]=i}}else for(let[e,t]of(b={...b},m))b[e]=t}v=l.index,y=l.keys,m=l.edits,d=l.inArray,l=l.prev}else if(p){if(null==(b=p[f=d?v:y[v]]))continue;g.push(f)}if(!Array.isArray(b)){(0,s.UG)(b)||(0,o.a)(!1,`Invalid AST Node: ${(0,a.X)(b)}.`);let i=u?null===(S=h.get(b.kind))||void 0===S?void 0:S.leave:null===(_=h.get(b.kind))||void 0===_?void 0:_.enter;if((e=null==i?void 0:i.call(t,b,f,p,g,k))===c)break;if(!1===e){if(!u){g.pop();continue}}else if(void 0!==e&&(m.push([f,e]),!u)){if((0,s.UG)(e))b=e;else{g.pop();continue}}}void 0===e&&O&&m.push([f,b]),u?g.pop():(l={inArray:d,index:v,keys:y,edits:m,prev:l},y=(d=Array.isArray(b))?b:null!==(w=i[b.kind])&&void 0!==w?w:[],v=-1,m=[],p&&k.push(p),p=b)}while(void 0!==l);return 0!==m.length?m[m.length-1][1]:e}function getEnterLeaveForKind(e,t){let i=e[t];return"object"==typeof i?i:"function"==typeof i?{enter:i,leave:void 0}:{enter:e.enter,leave:e.leave}}},38681:function(e,t,i){"use strict";function _createForOfIteratorHelperLoose(e,t){var i="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(i)return(i=i.call(e)).next.bind(i);if(Array.isArray(e)||(i=_unsupportedIterableToArray(e))||t&&e&&"number"==typeof e.length){i&&(e=i);var o=0;return function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(e,t){if(e){if("string"==typeof e)return _arrayLikeToArray(e,t);var i=Object.prototype.toString.call(e).slice(8,-1);if("Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i)return Array.from(e);if("Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return _arrayLikeToArray(e,t)}}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,o=Array(t);i<t;i++)o[i]=e[i];return o}function _defineProperties(e,t){for(var i=0;i<t.length;i++){var o=t[i];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function _createClass(e,t,i){return t&&_defineProperties(e.prototype,t),i&&_defineProperties(e,i),Object.defineProperty(e,"prototype",{writable:!1}),e}i.d(t,{y:function(){return l}});var hasSymbols=function(){return"function"==typeof Symbol}
1,hasSymbol=function(e){return hasSymbols()&&!!Symbol[e]},getSymbol=function(e){return hasSymbol(e)?Symbol[e]:"@@"+e};hasSymbols()&&!hasSymbol("observable")&&(Symbol.observable=Symbol("observable"));var o=getSymbol("iterator"),a=getSymbol("observable"),s=getSymbol("species");function getMethod(e,t){var i=e[t];if(null!=i){if("function"!=typeof i)throw TypeError(i+" is not a function");return i}}function getSpecies(e){var t=e.constructor;return void 0!==t&&null===(t=t[s])&&(t=void 0),void 0!==t?t:l}function isObservable(e){return e instanceof l}function hostReportError(e){hostReportError.log?hostReportError.log(e):setTimeout(function(){throw e})}function enqueue(e){Promise.resolve().then(function(){try{e()}catch(e){hostReportError(e)}})}function cleanupSubscription(e){var t=e._cleanup;if(void 0!==t){if(e._cleanup=void 0,!t)return;try{if("function"==typeof t)t();else{var i=getMethod(t,"unsubscribe");i&&i.call(t)}}catch(e){hostReportError(e)}}}function closeSubscription(e){e._observer=void 0,e._queue=void 0,e._state="closed"}function flushSubscription(e){var t=e._queue;if(t){e._queue=void 0,e._state="ready";for(var i=0;i<t.length&&(notifySubscription(e,t[i].type,t[i].value),"closed"!==e._state);++i);}}function notifySubscription(e,t,i){e._state="running";var o=e._observer;try{var a=getMethod(o,t);switch(t){case"next":a&&a.call(o,i);break;case"error":if(closeSubscription(e),a)a.call(o,i);else throw i;break;case"complete":closeSubscription(e),a&&a.call(o)}}catch(e){hostReportError(e)}"closed"===e._state?cleanupSubscription(e):"running"===e._state&&(e._state="ready")}function onNotify(e,t,i){if("closed"!==e._state){if("buffering"===e._state){e._queue.push({type:t,value:i});return}if("ready"!==e._state){e._state="buffering",e._queue=[{type:t,value:i}],enqueue(function(){return flushSubscription(e)});return}notifySubscription(e,t,i)}}var u=function(){function Subscription(e,t){this._cleanup=void 0,this._observer=e,this._queue=void 0,this._state="initializing";var i=new c(this);try{this._cleanup=t.call(void 0,i)}catch(e){i.error(e)}"initializing"===this._state&&(this._state="ready")}return Subscription.prototype.unsubscribe=function(){"closed"!==this._state&&(closeSubscription(this),cleanupSubscription(this))},_createClass(Subscription,[{key:"closed",get:function(){return"closed"===this._state}}]),Subscription}(),c=function(){function SubscriptionObserver(e){this._subscription=e}var e=SubscriptionObserver.prototype;return e.next=function(e){onNotify(this._subscription,"next",e)},e.error=function(e){onNotify(this._subscription,"error",e)},e.complete=function(){onNotify(this._subscription,"complete")},_createClass(SubscriptionObserver,[{key:"closed",get:function(){return"closed"===this._subscription._state}}]),SubscriptionObserver}(),l=function(){function Observable(e){if(!(this instanceof Observable))throw TypeError("Observable cannot be called as a function");if("function"!=typeof e)throw TypeError("Observable initializer must be a function");this._subscriber=e}var e=Observable.prototype;return e.subscribe=function(e){return("object"!=typeof e||null===e)&&(e={next:e,error:arguments[1],complete:arguments[2]}),new u(e,this._subscriber)},e.forEach=function(e){var t=this;return new Promise(function(i,o){if("function"!=typeof e){o(TypeError(e+" is not a function"));return}function done(){a.unsubscribe(),i()}var a=t.subscribe({next:function(t){try{e(t,done)}catch(e){o(e),a.unsubscribe()}},error:o,complete:i})})},e.map=function(e){var t=this;if("function"!=typeof e)throw TypeError(e+" is not a function");return new(getSpecies(this))(function(i){return t.subscribe({next:function(t){try{t=e(t)}catch(e){return i.error(e)}i.next(t)},error:function(e){i.error(e)},complete:function(){i.complete()}})})},e.filter=function(e){var t=this;if("function"!=typeof e)throw TypeError(e+" is not a function");return new(getSpecies(this))(function(i){return t.subscribe({next:function(t){try{if(!e(t))return}catch(e){return i.error(e)}i.next(t)},error:function(e){i.error(e)},complete:function(){i.complete()}})})},e.reduce=function(e){var t=this;if("function"!=typeof e)throw TypeError(e+" is not a function");var i=getSpecies(this),o=arguments.length>1,a=!1,s=arguments[1],u=s;return new i(function(i){return t.subscribe({next:function(t){var s=!a;if(a=!0,!s||o)try{u=e(u,t)}catch(e){return i.error(e)}else u=t},error:function(e){i.error(e)},complete:function(){if(!a&&!o)return i.error(TypeError("Cannot reduce an empty sequence"));i.next(u),i.complete()}})})},e.concat=function(){for(var e=this,t=arguments.length,i=Array(t),o=0;o<t;o++)i[o]=arguments[o];var a=getSpecies(this);return new a(function(t){var o,s=0;function startNext(e){o=e.subscribe({next:function(e){t.next(e)},error:function(e){t.error(e)},complete:function(){s===i.length?(o=void 0,t.complete()):startNext(a.from(i[s++]))}})}return startNext(e),function(){o&&(o.unsubscribe(),o=void 0)}})},e.flatMap=function(e){var t=this;if("function"!=typeof e)throw TypeError(e+" is not a function");var i=getSpecies(this);return new i(function(o){var a=[],s=t.subscribe({next:function(t){if(e)try{t=e(t)}catch(e){return o.error(e)}var s=i.from(t).subscribe({next:function(e){o.next(e)},error:function(e){o.error(e)},complete:function(){var e=a.indexOf(s);e>=0&&a.splice(e,1),completeIfDone()}});a.push(s)},error:function(e){o.error(e)},complete:function(){completeIfDone()}});function completeIfDone(){s.closed&&0===a.length&&o.complete()}return function(){a.forEach(function(e){return e.unsubscribe()}),s.unsubscribe()}})},e[a]=function(){return this},Observable.from=function(e){var t="function"==typeof this?this:Observable;if(null==e)throw TypeError(e+" is not an object");var i=getMethod(e,a);if(i){var s=i.call(e);
1if(Object(s)!==s)throw TypeError(s+" is not an object");return isObservable(s)&&s.constructor===t?s:new t(function(e){return s.subscribe(e)})}if(hasSymbol("iterator")&&(i=getMethod(e,o)))return new t(function(t){enqueue(function(){if(!t.closed){for(var o,a=_createForOfIteratorHelperLoose(i.call(e));!(o=a()).done;){var s=o.value;if(t.next(s),t.closed)return}t.complete()}})});if(Array.isArray(e))return new t(function(t){enqueue(function(){if(!t.closed){for(var i=0;i<e.length;++i)if(t.next(e[i]),t.closed)return;t.complete()}})});throw TypeError(e+" is not observable")},Observable.of=function(){for(var e=arguments.length,t=Array(e),i=0;i<e;i++)t[i]=arguments[i];return new("function"==typeof this?this:Observable)(function(e){enqueue(function(){if(!e.closed){for(var i=0;i<t.length;++i)if(e.next(t[i]),e.closed)return;e.complete()}})})},_createClass(Observable,null,[{key:s,get:function(){return this}}]),Observable}();hasSymbols()&&Object.defineProperty(l,Symbol("extensions"),{value:{symbol:a,hostReportError:hostReportError},configurable:!0})}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.