"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8088],{37385:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.AccumulateMultipartResponsesLink=void 0;let n=r(12304),i=r(74512);class o extends n.ApolloLink{constructor(e){super(),this.maxDelay=e.cutoffDelay}request(e,t){let r,n;if(!t)throw Error("This is not a terminal link!");let o=(0,i.hasDirectives)(["defer"],e.query),a=t(e);if(!o)return a;let u=this.maxDelay;return new i.Observable(e=>{let t=a.subscribe({next:e=>{r?(r.data&&"incremental"in e?r.data=(0,i.mergeIncrementalData)(r.data,e):e.data&&(r.data=e.data),e.errors&&(r.errors=[...r.errors||[],...e.errors||[]]),e.extensions&&(r.extensions=Object.assign(Object.assign({},r.extensions),e.extensions))):r=e,u?n||(n=setTimeout(o,u)):o()},error:t=>{n&&clearTimeout(n),e.error(t)},complete:()=>{n&&(clearTimeout(n),o()),e.complete()}});function o(){e.next(r),e.complete(),t.unsubscribe()}return function(){clearTimeout(n),t.unsubscribe()}})}}t.AccumulateMultipartResponsesLink=o},80852:function(e,t,r){var n=Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]},i=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t},o=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)0>t.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r};Object.defineProperty(t,"__esModule",{value:!0}),t.ApolloNextAppProvider=t.ApolloClientSingleton=void 0;let a=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t}(r(2265)),u=r(12304),s=r(60798);t.ApolloClientSingleton=Symbol.for("ApolloClientSingleton"),t.ApolloNextAppProvider=e=>{var r,{makeClient:n,children:i}=e,c=o(e,["makeClient","children"]);let l=a.useRef();return"undefined"!=typeof window?l.current=null!==(r=window[t.ApolloClientSingleton])&&void 0!==r?r:window[t.ApolloClientSingleton]=n():l.current||(l.current=n()),a.createElement(u.ApolloProvider,{client:l.current},a.createElement(s.RehydrationContextProvider,Object.assign({},c),i))}},97042:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.ApolloBackgroundQueryTransport=t.ApolloSSRDataTransport=t.ApolloResultCache=t.ApolloRehydrationCache=void 0,t.ApolloRehydrationCache=Symbol.for("ApolloRehydrationCache"),t.ApolloResultCache=Symbol.for("ApolloResultCache"),t.ApolloSSRDataTransport=Symbol.for("ApolloSSRDataTransport"),t.ApolloBackgroundQueryTransport=Symbol.for("ApolloBackgroundQueryTransport")},49149:function(e,t,r){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.NextSSRApolloClient=void 0;let i=r(12304),o=r(74512),a=r(42842),u=r(80613),s=r(97042),c=n(r(4044));function l(e){return e.queryManager}class f extends i.ApolloClient{constructor(e){super(e),this.rehydrationContext={incomingBackgroundQueries:[]},this.simulatedStreamingQueries=new Map,this.registerWindowHook()}identifyUniqueQuery(e){let t=this.documentTransform.transformDocument(e.query),{serverQuery:r}=l(this).getDocumentInfo(t);if(!r)throw Error("could not identify unique query");let n=(0,a.canonicalStringify)(e.variables||{}),i=[(0,o.print)(r),n].toString();return{query:r,cacheKey:i,varJson:n}}registerWindowHook(){"undefined"!=typeof window&&(Array.isArray(window[s.ApolloBackgroundQueryTransport]||[])&&((0,u.registerLateInitializingQueue)(s.ApolloBackgroundQueryTransport,e=>{var t;let r,n;if("complete"===document.readyState)return;let{query:a,varJson:u,cacheKey:s}=this.identifyUniqueQuery(e);if(!a)return;let c=(0,o.print)(a),f=l(this);if("lookup"in f.inFlightLinkObservables?r=!!(null===(t=f.inFlightLinkObservables.peek(c,u))||void 0===t?void 0:t.observable):(n=f.inFlightLinkObservables.get(c)||new Map,f.inFlightLinkObservables.set(c,n),r=n.has(u)),!r){let t,r,o;let a=()=>{if(f.fetchCancelFns.get(s)===o&&f.fetchCancelFns.delete(s),n)n.get(u)===r&&n.delete(u);else if("lookup"in f.inFlightLinkObservables)f.inFlightLinkObservables.remove(c,u);else throw Error("unexpected shape of QueryManager");this.simulatedStreamingQueries.get(s)===t&&this.simulatedStreamingQueries.delete(s)},l=new Promise((r,n)=>{this.simulatedStreamingQueries.set(s,t={resolve:r,reject:n,options:e})});if(l.finally(a),r=new i.Observable(e=>{l.then(t=>{e.next(t),e.complete()}).catch(t=>{e.error(t)})}),n)n.set(u,r);else if("lookup"in f.inFlightLinkObservables)f.inFlightLinkObservables.lookup(c,u).observable=r;else throw Error("unexpected shape of QueryManager");f.fetchCancelFns.set(s,o=e=>{var t;let{reject:r}=null!==(t=this.simulatedStreamingQueries.get(s))&&void 0!==t?t:{};r&&r(e),a()})}}),"complete"!==document.readyState&&window.addEventListener("load",()=>{let e=l(this);for(let[t,r]of this.simulatedStreamingQueries){this.simulatedStreamingQueries.delete(t),c.default.debug("streaming connection closed before server query could be fully transported, rerunning:",r.options);let n=e.generateQueryId();e.fetchQuery(n,Object.assign(Object.assign({},r.options),{context:Object.assign(Object.assign({},r.options.context),{queryDeduplication:!1})})).finally(()=>e.stopQuery(n)).then(r.resolve,r.reject)}},{once:!0})),Array.isArray(window[s.ApolloResultCache]||[])&&(0,u.registerLateInitializingQueue)(s.ApolloResultCache,e=>{var t;let{cacheKey:r}=this.identifyUniqueQuery(e),{resolve:n}=null!==(t=this.simulatedStreamingQueries.get(r))&&void 0!==t?t:{};n&&n({data:e.result}),this.cache.write(e)}))}watchQuery(e){return"undefined"==typeof window&&"cache-only"!==e.fetchPolicy&&"standby"!==e.fetchPolicy&&this.rehydrationContext.incomingBackgroundQueries.push(e),super.watchQuery(e)}setRehydrationContext(e){e.incomingBackgroundQueries!==this.rehydrationContext.incomingBackgroundQueries&&e.incomingBackgroundQueries.push(...this.rehydrationContext.incomingBackgroundQueries.splice(0)),this.rehydrationContext=e}}t.NextSSRApolloClient=f},34965:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.NextSSRInMemoryCache=void 0;let n=r(12304);class i extends n.InMemoryCache{constructor(e){super(e),this.rehydrationContext={incomingResults:[],uninitialized:!0}}write(e){return"undefined"==typeof window&&this.rehydrationContext.incomingResults.push(e),super.write(e)}setRehydrationContext(e){this.rehydrationContext.uninitialized&&e.incomingResults.push(...this.rehydrationContext.incomingResults),this.rehydrationContext=e,this.rehydrationContext.uninitialized=!1}}t.NextSSRInMemoryCache=i},60798:function(e,t,r){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.useRehydrationContext=t.RehydrationContextProvider=void 0;let i=r(12304),o=n(r(2265)),a=r(34965),u=r(99376),s=r(36630),c=n(r(4044)),l=r(49149),f=o.default.createContext(void 0);t.RehydrationContextProvider=({children:e,extraScriptProps:t})=>{let r=(0,i.useApolloClient)(),n=o.default.useRef();if("undefined"==typeof window){if(n.current||(n.current=function({extraScriptProps:e}){let t={currentlyInjected:!1,transportValueData:{},transportedValues:{},incomingResults:[],incomingBackgroundQueries:[],RehydrateOnClient(){if(t.currentlyInjected=!1,!Object.keys(t.transportValueData).length&&!Object.keys(t.incomingResults).length&&!Object.keys(t.incomingBackgroundQueries).length)return o.default.createElement(o.default.Fragment,null);c.default.debug("transporting data",t.transportValueData),c.default.debug("transporting results",t.incomingResults),c.default.debug("transporting incomingBackgroundQueries",t.incomingBackgroundQueries);let r=(0,s.transportDataToJS)({rehydrate:Object.fromEntries(Object.entries(t.transportValueData).filter(([e,r])=>t.transportedValues[e]!==r)),results:t.incomingResults,backgroundQueries:t.incomingBackgroundQueries});return Object.assign(t.transportedValues,t.transportValueData),t.transportValueData={},t.incomingResults=[],t.incomingBackgroundQueries=[],o.default.createElement("script",Object.assign({},e,{dangerouslySetInnerHTML:{__html:r}}))}};return t}({extraScriptProps:t})),r instanceof l.NextSSRApolloClient)r.setRehydrationContext(n.current);else throw Error("When using Next SSR, you must use the `NextSSRApolloClient`");if(r.cache instanceof a.NextSSRInMemoryCache)r.cache.setRehydrationContext(n.current);else throw Error("When using Next SSR, you must use the `NextSSRInMemoryCache`")}else(0,s.registerDataTransport)();return o.default.createElement(f.Provider,{value:n.current},e)},t.useRehydrationContext=function(){let e=o.default.useContext(f),t=o.default.useContext(u.ServerInsertedHTMLContext);if("undefined"==typeof window)return t&&e&&!e.currentlyInjected&&(e.currentlyInjected=!0,t(()=>o.default.createElement(e.RehydrateOnClient,null))),e}},29058:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.RemoveMultipartDirectivesLink=void 0;let n=r(12304),i=r(74512);function o(e,t){var r,n;return null===(n=null===(r=e.arguments)||void 0===r?void 0:r.find(e=>e.name.value===t))||void 0===n?void 0:n.value}class a extends n.ApolloLink{constructor(e){super(),this.stripDirectives=[],!1!==e.stripDefer&&this.stripDirectives.push("defer")}request(e,t){if(!t)throw Error("This is not a terminal link!");let{query:r}=e,n=r;return null===(n=(0,i.removeDirectivesFromDocument)(this.stripDirectives.map(e=>({test(t){let r="Directive"===t.kind&&t.name.value===e,n=o(t,"label");return(null==n?void 0:n.kind)==="StringValue"&&n.value.startsWith("SsrDontStrip")&&(r=!1),r},remove:!0})).concat({test(e){if("Directive"!==e.kind)return!1;let t=o(e,"label");return(null==t?void 0:t.kind)==="StringValue"&&t.value.startsWith("SsrStrip")},remove:!0}),n))?i.Observable.of({}):(e.query=n,t(e))}}t.RemoveMultipartDirectivesLink=a},49388:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.SSRMultipartLink=void 0;let n=r(12304),i=r(29058),o=r(37385);class a extends n.ApolloLink{constructor(e={}){super(n.ApolloLink.from([new i.RemoveMultipartDirectivesLink({stripDefer:e.stripDefer}),new o.AccumulateMultipartResponsesLink({cutoffDelay:e.cutoffDelay||0})]).request)}}t.SSRMultipartLink=a},36630:function(e,t,r){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.registerDataTransport=t.transportDataToJS=void 0;let i=n(r(81247)),o=r(97042),a=r(80613),u=n(r(4044)),s=r(62729);t.transportDataToJS=function(e){let t=Symbol.keyFor(o.ApolloSSRDataTransport);return`(window[Symbol.for("${t}")] ??= []).push(${(0,s.htmlEscapeJsonString)(i.default.stringify(e))})`},t.registerDataTransport=function(){(0,a.registerLateInitializingQueue)(o.ApolloSSRDataTransport,e=>{var t,r,n;let a=i.default.deserialize(e);u.default.debug("received data from the server:",a),Object.assign(null!==(t=window[o.ApolloRehydrationCache])&&void 0!==t?t:window[o.ApolloRehydrationCache]={},a.rehydrate),(null!==(r=window[o.ApolloBackgroundQueryTransport])&&void 0!==r?r:window[o.ApolloBackgroundQueryTransport]=[]).push(...a.backgroundQueries),(null!==(n=window[o.ApolloResultCache])&&void 0!==n?n:window[o.ApolloResultCache]=[]).push(...a.results)})}},12863:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.useBackgroundQuery=t.useReadQuery=t.useSuspenseQuery=t.useQuery=t.useFragment=void 0;let n=r(12304),i=r(26086),o=r(60798);function a(e,t){return function(){for(var r=arguments.length,n=Array(r),o=0;o<r;o++)n[o]=arguments[o];let a=e(...n),u={};for(let e of t)u[e]=a[e];return Object.assign(Object.assign({},a),(0,i.useTransportValue)(u))}}t.useFragment=a(n.useFragment,["data","complete","missing"]),t.useQuery=a("undefined"==typeof window?(e,t)=>(0,n.useQuery)(e,Object.assign(Object.assign({},t),{fetchPolicy:"cache-only"})):n.useQuery,["data","loading","networkStatus","called"]),t.useSuspenseQuery=a(n.useSuspenseQuery,["data","networkStatus"]),t.useReadQuery=a(n.useReadQuery,["data","networkStatus"]),t.useBackgroundQuery=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return(0,o.useRehydrationContext)(),(0,n.useBackgroundQuery)(...t)}},48088:function(e,t,r){t.a4=t.kJ=t.p0=t.ND=t.e$=void 0;var n=r(80852);Object.defineProperty(t,"e$",{enumerable:!0,get:function(){return n.ApolloNextAppProvider}});var i=r(34965);Object.defineProperty(t,"ND",{enumerable:!0,get:function(){return i.NextSSRInMemoryCache}});var o=r(49149);Object.defineProperty(t,"p0",{enumerable:!0,get:function(){return o.NextSSRApolloClient}});var a=r(12863);Object.defineProperty(t,"kJ",{enumerable:!0,get:function(){return a.useSuspenseQuery}});var u=r(49388);Object.defineProperty(t,"a4",{enumerable:!0,get:function(){return u.SSRMultipartLink}}),r(37385),r(29058),r(31968)},80613:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.registerLateInitializingQueue=void 0,t.registerLateInitializingQueue=function(e,t){if("undefined"!=typeof window){let r=window[e]||[];Array.isArray(r)&&(window[e]={push:(...e)=>{for(let r of e)t(r)}},window[e].push(...r))}}},31968:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.resetNextSSRApolloSingletons=void 0;let n=r(80852),i=r(97042);t.resetNextSSRApolloSingletons=function(){delete window[i.ApolloRehydrationCache],delete window[i.ApolloResultCache],delete window[i.ApolloSSRDataTransport],delete window[i.ApolloBackgroundQueryTransport],delete window[n.ApolloClientSingleton]}},26086:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.useTransportValue=void 0;let n=r(2265),i=r(97042),o=r(60798);t.useTransportValue=function(e){let t=(0,n.useId)(),[r,a]=(0,n.useState)(!1);(0,n.useEffect)(()=>a(!0),[]);let u=(0,o.useRehydrationContext)();if("undefined"==typeof window)u&&(u.transportValueData[t]=e);else{let n=window[i.ApolloRehydrationCache];n&&(r&&delete n[t],t in n&&(e=n[t]))}return e}},62729:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.htmlEscapeJsonString=t.ESCAPE_REGEX=void 0;let r={"&":"\\u0026",">":"\\u003e","<":"\\u003c","\u2028":"\\u2028","\u2029":"\\u2029"};t.ESCAPE_REGEX=/[&><\u2028\u2029]/g,t.htmlEscapeJsonString=function(e){return e.replace(t.ESCAPE_REGEX,e=>r[e])}},81247:function(e,t,r){r.r(t),r.d(t,{SuperJSON:function(){return X},allowErrorProps:function(){return eu},default:function(){return Z},deserialize:function(){return et},parse:function(){return en},registerClass:function(){return ei},registerCustom:function(){return eo},registerSymbol:function(){return ea},serialize:function(){return ee},stringify:function(){return er}});var n,i=function(){function e(){this.keyToValue=new Map,this.valueToKey=new Map}return e.prototype.set=function(e,t){this.keyToValue.set(e,t),this.valueToKey.set(t,e)},e.prototype.getByKey=function(e){return this.keyToValue.get(e)},e.prototype.getByValue=function(e){return this.valueToKey.get(e)},e.prototype.clear=function(){this.keyToValue.clear(),this.valueToKey.clear()},e}(),o=function(){function e(e){this.generateIdentifier=e,this.kv=new i}return e.prototype.register=function(e,t){this.kv.getByValue(e)||(t||(t=this.generateIdentifier(e)),this.kv.set(t,e))},e.prototype.clear=function(){this.kv.clear()},e.prototype.getIdentifier=function(e){return this.kv.getByValue(e)},e.prototype.getValue=function(e){return this.kv.getByKey(e)},e}(),a=(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),u=function(e){function t(){var t=e.call(this,function(e){return e.name})||this;return t.classToAllowedProps=new Map,t}return a(t,e),t.prototype.register=function(t,r){"object"==typeof r?(r.allowProps&&this.classToAllowedProps.set(t,r.allowProps),e.prototype.register.call(this,t,r.identifier)):e.prototype.register.call(this,t,r)},t.prototype.getAllowedProps=function(e){return this.classToAllowedProps.get(e)},t}(o),s=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a};function c(e,t){Object.entries(e).forEach(function(e){var r=s(e,2),n=r[0];return t(r[1],n)})}function l(e,t){return -1!==e.indexOf(t)}function f(e,t){for(var r=0;r<e.length;r++){var n=e[r];if(t(n))return n}}var p=function(){function e(){this.transfomers={}}return e.prototype.register=function(e){this.transfomers[e.name]=e},e.prototype.findApplicable=function(e){return function(e,t){var r=function(e){if("values"in Object)return Object.values(e);var t=[];for(var r in e)e.hasOwnProperty(r)&&t.push(e[r]);return t}(e);if("find"in r)return r.find(t);for(var n=0;n<r.length;n++){var i=r[n];if(t(i))return i}}(this.transfomers,function(t){return t.isApplicable(e)})},e.prototype.findByName=function(e){return this.transfomers[e]},e}(),h=function(e){return void 0===e},d=function(e){return"object"==typeof e&&null!==e&&e!==Object.prototype&&(null===Object.getPrototypeOf(e)||Object.getPrototypeOf(e)===Object.prototype)},v=function(e){return d(e)&&0===Object.keys(e).length},y=function(e){return Array.isArray(e)},m=function(e){return e instanceof Map},g=function(e){return e instanceof Set},b=function(e){return"Symbol"===Object.prototype.toString.call(e).slice(8,-1)},w=function(e){return"number"==typeof e&&isNaN(e)},k=function(e){return e.replace(/\./g,"\\.")},S=function(e){return e.map(String).map(k).join(".")},O=function(e){for(var t=[],r="",n=0;n<e.length;n++){var i=e.charAt(n);if("\\"===i&&"."===e.charAt(n+1)){r+=".",n++;continue}if("."===i){t.push(r),r="";continue}r+=i}var o=r;return t.push(o),t},_=function(){return(_=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},E=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a},R=function(e,t){for(var r=0,n=t.length,i=e.length;r<n;r++,i++)e[i]=t[r];return e};function D(e,t,r,n){return{isApplicable:e,annotation:t,transform:r,untransform:n}}var I=[D(h,"undefined",function(){return null},function(){}),D(function(e){return"bigint"==typeof e},"bigint",function(e){return e.toString()},function(e){return"undefined"!=typeof BigInt?BigInt(e):(console.error("Please add a BigInt polyfill."),e)}),D(function(e){return e instanceof Date&&!isNaN(e.valueOf())},"Date",function(e){return e.toISOString()},function(e){return new Date(e)}),D(function(e){return e instanceof Error},"Error",function(e,t){var r={name:e.name,message:e.message};return t.allowedErrorProps.forEach(function(t){r[t]=e[t]}),r},function(e,t){var r=Error(e.message);return r.name=e.name,r.stack=e.stack,t.allowedErrorProps.forEach(function(t){r[t]=e[t]}),r}),D(function(e){return e instanceof RegExp},"regexp",function(e){return""+e},function(e){return new RegExp(e.slice(1,e.lastIndexOf("/")),e.slice(e.lastIndexOf("/")+1))}),D(g,"set",function(e){return R([],E(e.values()))},function(e){return new Set(e)}),D(m,"map",function(e){return R([],E(e.entries()))},function(e){return new Map(e)}),D(function(e){var t;return w(e)||(t=e)===1/0||t===-1/0},"number",function(e){return w(e)?"NaN":e>0?"Infinity":"-Infinity"},Number),D(function(e){return 0===e&&1/e==-1/0},"number",function(){return"-0"},Number),D(function(e){return e instanceof URL},"URL",function(e){return e.toString()},function(e){return new URL(e)})];function x(e,t,r,n){return{isApplicable:e,annotation:t,transform:r,untransform:n}}var T=x(function(e,t){return!!b(e)&&!!t.symbolRegistry.getIdentifier(e)},function(e,t){return["symbol",t.symbolRegistry.getIdentifier(e)]},function(e){return e.description},function(e,t,r){var n=r.symbolRegistry.getValue(t[1]);if(!n)throw Error("Trying to deserialize unknown symbol");return n}),C=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,Uint8ClampedArray].reduce(function(e,t){return e[t.name]=t,e},{}),P=x(function(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)},function(e){return["typed-array",e.constructor.name]},function(e){return R([],E(e))},function(e,t){var r=C[t[1]];if(!r)throw Error("Trying to deserialize unknown typed array");return new r(e)});function F(e,t){return null!=e&&!!e.constructor&&!!t.classRegistry.getIdentifier(e.constructor)}var A=x(F,function(e,t){return["class",t.classRegistry.getIdentifier(e.constructor)]},function(e,t){var r=t.classRegistry.getAllowedProps(e.constructor);if(!r)return _({},e);var n={};return r.forEach(function(t){n[t]=e[t]}),n},function(e,t,r){var n=r.classRegistry.getValue(t[1]);if(!n)throw Error("Trying to deserialize unknown class - check https://github.com/blitz-js/superjson/issues/116#issuecomment-773996564");return Object.assign(Object.create(n.prototype),e)}),j=x(function(e,t){return!!t.customTransformerRegistry.findApplicable(e)},function(e,t){return["custom",t.customTransformerRegistry.findApplicable(e).name]},function(e,t){return t.customTransformerRegistry.findApplicable(e).serialize(e)},function(e,t,r){var n=r.customTransformerRegistry.findByName(t[1]);if(!n)throw Error("Trying to deserialize unknown custom value");return n.deserialize(e)}),Q=[A,T,j,P],q=function(e,t){var r=f(Q,function(r){return r.isApplicable(e,t)});if(r)return{value:r.transform(e,t),type:r.annotation(e,t)};var n=f(I,function(r){return r.isApplicable(e,t)});if(n)return{value:n.transform(e,t),type:n.annotation}},M={};I.forEach(function(e){M[e.annotation]=e});var N=function(e,t,r){if(y(t))switch(t[0]){case"symbol":return T.untransform(e,t,r);case"class":return A.untransform(e,t,r);case"custom":return j.untransform(e,t,r);case"typed-array":return P.untransform(e,t,r);default:throw Error("Unknown transformation: "+t)}else{var n=M[t];if(!n)throw Error("Unknown transformation: "+t);return n.untransform(e,r)}},V=function(e,t){for(var r=e.keys();t>0;)r.next(),t--;return r.next().value};function L(e){if(l(e,"__proto__"))throw Error("__proto__ is not allowed as a property");if(l(e,"prototype"))throw Error("prototype is not allowed as a property");if(l(e,"constructor"))throw Error("constructor is not allowed as a property")}var B=function(e,t){L(t);for(var r=0;r<t.length;r++){var n=t[r];if(g(e))e=V(e,+n);else if(m(e)){var i=+n,o=0==+t[++r]?"key":"value",a=V(e,i);switch(o){case"key":e=a;break;case"value":e=e.get(a)}}else e=e[n]}return e},z=function(e,t,r){if(L(t),0===t.length)return r(e);for(var n=e,i=0;i<t.length-1;i++){var o=t[i];if(y(n))n=n[+o];else if(d(n))n=n[o];else if(g(n)){var a=+o;n=V(n,a)}else if(m(n)){if(i===t.length-2)break;var a=+o,u=0==+t[++i]?"key":"value",s=V(n,a);switch(u){case"key":n=s;break;case"value":n=n.get(s)}}}var c=t[t.length-1];if(y(n)?n[+c]=r(n[+c]):d(n)&&(n[c]=r(n[c])),g(n)){var l=V(n,+c),f=r(l);l!==f&&(n.delete(l),n.add(f))}if(m(n)){var a=+t[t.length-2],p=V(n,a),u=0==+c?"key":"value";switch(u){case"key":var h=r(p);n.set(h,n.get(p)),h!==p&&n.delete(p);break;case"value":n.set(p,r(n.get(p)))}}return e},G=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a},U=function(e,t){for(var r=0,n=t.length,i=e.length;r<n;r++,i++)e[i]=t[r];return e},W=function(e,t,r,n,i,o,a){void 0===i&&(i=[]),void 0===o&&(o=[]),void 0===a&&(a=new Map);var u,s,f="boolean"==typeof(u=e)||null===u||h(u)||"number"==typeof u&&!isNaN(u)||"string"==typeof u||b(u);if(!f){p=i,(w=t.get(e))?w.push(p):t.set(e,[p]);var p,w,S=a.get(e);if(S)return n?{transformedValue:null}:S}if(!(d(e)||y(e)||m(e)||g(e)||F(e,r))){var O=q(e,r),_=O?{transformedValue:O.value,annotations:[O.type]}:{transformedValue:e};return f||a.set(e,_),_}if(l(o,e))return{transformedValue:null};var E=q(e,r),R=null!==(s=null==E?void 0:E.value)&&void 0!==s?s:e,D=y(R)?[]:{},I={};c(R,function(u,s){var l=W(u,t,r,n,U(U([],G(i)),[s]),U(U([],G(o)),[e]),a);D[s]=l.transformedValue,y(l.annotations)?I[s]=l.annotations:d(l.annotations)&&c(l.annotations,function(e,t){I[k(s)+"."+t]=e})});var x=v(I)?{transformedValue:D,annotations:E?[E.type]:void 0}:{transformedValue:D,annotations:E?[E.type,I]:I};return f||a.set(e,x),x};function H(e){return Object.prototype.toString.call(e).slice(8,-1)}function K(e){return"Array"===H(e)}var Y=function(){return(Y=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},J=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return a},$=function(e,t){for(var r=0,n=t.length,i=e.length;r<n;r++,i++)e[i]=t[r];return e},X=function(){function e(e){var t=(void 0===e?{}:e).dedupe;this.classRegistry=new u,this.symbolRegistry=new o(function(e){var t;return null!==(t=e.description)&&void 0!==t?t:""}),this.customTransformerRegistry=new p,this.allowedErrorProps=[],this.dedupe=void 0!==t&&t}return e.prototype.serialize=function(e){var t,r,n=new Map,i=W(e,n,this,this.dedupe),o={json:i.transformedValue};i.annotations&&(o.meta=Y(Y({},o.meta),{values:i.annotations}));var a=(t={},r=void 0,(n.forEach(function(e){if(!(e.length<=1)){var n=G(e.map(function(e){return e.map(String)}).sort(function(e,t){return e.length-t.length})),i=n[0],o=n.slice(1);0===i.length?r=o.map(S):t[S(i)]=o.map(S)}}),r)?v(t)?[r]:[r,t]:v(t)?void 0:t);return a&&(o.meta=Y(Y({},o.meta),{referentialEqualities:a})),o},e.prototype.deserialize=function(e){var t,r,n,i=e.json,o=e.meta,a=function e(t,r={}){return K(t)?t.map(t=>e(t,r)):!function(e){if("Object"!==H(e))return!1;let t=Object.getPrototypeOf(e);return!!t&&t.constructor===Object&&t===Object.prototype}(t)?t:[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)].reduce((n,i)=>{if(K(r.props)&&!r.props.includes(i))return n;let o=e(t[i],r);return function(e,t,r,n,i){let o=({}).propertyIsEnumerable.call(n,t)?"enumerable":"nonenumerable";"enumerable"===o&&(e[t]=r),i&&"nonenumerable"===o&&Object.defineProperty(e,t,{value:r,enumerable:!1,writable:!0,configurable:!0})}(n,i,o,t,r.nonenumerable),n},{})}(i);return(null==o?void 0:o.values)&&(t=a,r=o.values,n=this,function e(t,r,n){if(void 0===n&&(n=[]),t){if(!y(t)){c(t,function(t,i){return e(t,r,U(U([],G(n)),G(O(i))))});return}var i=G(t,2),o=i[0],a=i[1];a&&c(a,function(t,i){e(t,r,U(U([],G(n)),G(O(i))))}),r(o,n)}}(r,function(e,r){t=z(t,r,function(t){return N(t,e,n)})}),a=t),(null==o?void 0:o.referentialEqualities)&&(a=function(e,t){function r(t,r){var n=B(e,O(r));t.map(O).forEach(function(t){e=z(e,t,function(){return n})})}if(y(t)){var n=G(t,2),i=n[0],o=n[1];i.forEach(function(t){e=z(e,O(t),function(){return e})}),o&&c(o,r)}else c(t,r);return e}(a,o.referentialEqualities)),a},e.prototype.stringify=function(e){return JSON.stringify(this.serialize(e))},e.prototype.parse=function(e){return this.deserialize(JSON.parse(e))},e.prototype.registerClass=function(e,t){this.classRegistry.register(e,t)},e.prototype.registerSymbol=function(e,t){this.symbolRegistry.register(e,t)},e.prototype.registerCustom=function(e,t){this.customTransformerRegistry.register(Y({name:t},e))},e.prototype.allowErrorProps=function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];(e=this.allowedErrorProps).push.apply(e,$([],J(t)))},e.defaultInstance=new e,e.serialize=e.defaultInstance.serialize.bind(e.defaultInstance),e.deserialize=e.defaultInstance.deserialize.bind(e.defaultInstance),e.stringify=e.defaultInstance.stringify.bind(e.defaultInstance),e.parse=e.defaultInstance.parse.bind(e.defaultInstance),e.registerClass=e.defaultInstance.registerClass.bind(e.defaultInstance),e.registerSymbol=e.defaultInstance.registerSymbol.bind(e.defaultInstance),e.registerCustom=e.defaultInstance.registerCustom.bind(e.defaultInstance),e.allowErrorProps=e.defaultInstance.allowErrorProps.bind(e.defaultInstance),e}(),Z=X,ee=X.serialize,et=X.deserialize,er=X.stringify,en=X.parse,ei=X.registerClass,eo=X.registerCustom,ea=X.registerSymbol,eu=X.allowErrorProps},445:function(e,t,r){r.d(t,{R:function(){return a}});var n=r(5853),i=r(68385),o=r(80960),a=function(){function e(){this.assumeImmutableResults=!1,this.getFragmentDoc=(0,i.re)(o.Yk)}return e.prototype.batch=function(e){var t,r=this,n="string"==typeof e.optimistic?e.optimistic:!1===e.optimistic?null:void 0;return this.performTransaction(function(){return t=e.update(r)},n),t},e.prototype.recordOptimisticTransaction=function(e,t){this.performTransaction(e,t)},e.prototype.transformDocument=function(e){return e},e.prototype.transformForLink=function(e){return e},e.prototype.identify=function(e){},e.prototype.gc=function(){return[]},e.prototype.modify=function(e){return!1},e.prototype.readQuery=function(e,t){return void 0===t&&(t=!!e.optimistic),this.read((0,n.pi)((0,n.pi)({},e),{rootId:e.id||"ROOT_QUERY",optimistic:t}))},e.prototype.readFragment=function(e,t){return void 0===t&&(t=!!e.optimistic),this.read((0,n.pi)((0,n.pi)({},e),{query:this.getFragmentDoc(e.fragment,e.fragmentName),rootId:e.id,optimistic:t}))},e.prototype.writeQuery=function(e){var t=e.id,r=e.data,i=(0,n._T)(e,["id","data"]);return this.write(Object.assign(i,{dataId:t||"ROOT_QUERY",result:r}))},e.prototype.writeFragment=function(e){var t=e.id,r=e.data,i=e.fragment,o=e.fragmentName,a=(0,n._T)(e,["id","data","fragment","fragmentName"]);return this.write(Object.assign(a,{query:this.getFragmentDoc(i,o),dataId:t,result:r}))},e.prototype.updateQuery=function(e,t){return this.batch({update:function(r){var i=r.readQuery(e),o=t(i);return null==o?i:(r.writeQuery((0,n.pi)((0,n.pi)({},e),{data:o})),o)}})},e.prototype.updateFragment=function(e,t){return this.batch({update:function(r){var i=r.readFragment(e),o=t(i);return null==o?i:(r.writeFragment((0,n.pi)((0,n.pi)({},e),{data:o})),o)}})},e}()},97245:function(e,t,r){var n;r.d(t,{C:function(){return n}}),n||(n={})},99587:function(e,t,r){r.d(t,{y:function(){return i}});var n=r(5853),i=function(e){function t(r,n,i,o){var a,u=e.call(this,r)||this;if(u.message=r,u.path=n,u.query=i,u.variables=o,Array.isArray(u.path)){u.missing=u.message;for(var s=u.path.length-1;s>=0;--s)u.missing=((a={})[u.path[s]]=u.missing,a)}else u.missing=u.path;return u.__proto__=t.prototype,u}return(0,n.ZT)(t,e),t}(Error)},42842:function(e,t,r){r.r(t),r.d(t,{ApolloCache:function(){return n.R},Cache:function(){return i.C},EntityStore:function(){return u.cf},InMemoryCache:function(){return c.h},MissingFieldError:function(){return o.y},Policies:function(){return f.r},cacheSlot:function(){return l.ab},canonicalStringify:function(){return p.B},createFragmentRegistry:function(){return m},defaultDataIdFromObject:function(){return s.uG},fieldNameFromStoreName:function(){return s.E_},isReference:function(){return a.Yk},makeReference:function(){return a.kQ},makeVar:function(){return l.QS}}),r(2276);var n=r(445),i=r(97245),o=r(99587),a=r(48338),u=r(25538),s=r(83598),c=r(17119),l=r(38355),f=r(68929),p=r(56125),h=r(5853),d=r(11689),v=r(68385),y=r(36517);function m(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return new(b.bind.apply(b,(0,h.ev)([void 0],e,!1)))}var g=Array.prototype.forEach,b=function(){function e(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.registry=Object.create(null),this.resetCaches(),e.length&&this.register.apply(this,e)}return e.prototype.register=function(){var e=this,t=new Map;return g.call(arguments,function(e){(0,y.kU)(e).forEach(function(e){t.set(e.name.value,e)})}),t.forEach(function(t,r){t!==e.registry[r]&&(e.registry[r]=t,e.invalidate(r))}),this},e.prototype.invalidate=function(e){},e.prototype.resetCaches=function(){this.invalidate=(this.lookup=this.cacheUnaryMethod("lookup")).dirty,this.transform=this.cacheUnaryMethod("transform"),this.findFragmentSpreads=this.cacheUnaryMethod("findFragmentSpreads")},e.prototype.cacheUnaryMethod=function(t){var r=this,n=e.prototype[t];return(0,v.re)(function(){return n.apply(r,arguments)},{makeCacheKey:function(e){return e}})},e.prototype.lookup=function(e){return this.registry[e]||null},e.prototype.transform=function(e){var t=this,r=new Map;(0,y.kU)(e).forEach(function(e){r.set(e.name.value,e)});var n=new Set,i=function(e){r.has(e)||n.add(e)},o=function(e){return Object.keys(t.findFragmentSpreads(e)).forEach(i)};o(e);var a=[],u=Object.create(null);if(n.forEach(function(e){var n=r.get(e);if(n)o(u[e]=n);else{a.push(e);var i=t.lookup(e);i&&o(u[e]=i)}}),a.length){var s=[];a.forEach(function(e){var t=u[e];t&&s.push(t)}),s.length&&(e=(0,h.pi)((0,h.pi)({},e),{definitions:e.definitions.concat(s)}))}return e},e.prototype.findFragmentSpreads=function(e){var t=Object.create(null);return(0,d.Vn)(e,{FragmentSpread:function(e){t[e.name.value]=e}}),t},e}()},25538:function(e,t,r){r.d(t,{HL:function(){return k},cf:function(){return b},ur:function(){return E}});var n,i,o=r(5853),a=r(2276),u=r(68385),s=r(36628),c=r(46238),l=r(82187),f=r(48338),p=r(71269),h=r(23446),d=r(59394),v=r(83598),y=Object.create(null),m=function(){return y},g=Object.create(null),b=function(){function e(e,t){var r=this;this.policies=e,this.group=t,this.data=Object.create(null),this.rootIds=Object.create(null),this.refs=Object.create(null),this.getFieldValue=function(e,t){return(0,l.J)((0,f.Yk)(e)?r.get(e.__ref,t):e&&e[t])},this.canRead=function(e){return(0,f.Yk)(e)?r.has(e.__ref):"object"==typeof e},this.toReference=function(e,t){if("string"==typeof e)return(0,f.kQ)(e);if((0,f.Yk)(e))return e;var n=r.policies.identify(e)[0];if(n){var i=(0,f.kQ)(n);return t&&r.merge(n,e),i}}}return e.prototype.toObject=function(){return(0,o.pi)({},this.data)},e.prototype.has=function(e){return void 0!==this.lookup(e,!0)},e.prototype.get=function(e,t){if(this.group.depend(e,t),v.RI.call(this.data,e)){var r=this.data[e];if(r&&v.RI.call(r,t))return r[t]}return"__typename"===t&&v.RI.call(this.policies.rootTypenamesById,e)?this.policies.rootTypenamesById[e]:this instanceof S?this.parent.get(e,t):void 0},e.prototype.lookup=function(e,t){return(t&&this.group.depend(e,"__exists"),v.RI.call(this.data,e))?this.data[e]:this instanceof S?this.parent.lookup(e,t):this.policies.rootTypenamesById[e]?Object.create(null):void 0},e.prototype.merge=function(e,t){var r,n=this;(0,f.Yk)(e)&&(e=e.__ref),(0,f.Yk)(t)&&(t=t.__ref);var i="string"==typeof e?this.lookup(r=e):e,o="string"==typeof t?this.lookup(r=t):t;if(o){(0,a.kG)("string"==typeof r,1);var u=new p.w0(_).merge(i,o);if(this.data[r]=u,u!==i&&(delete this.refs[r],this.group.caching)){var s=Object.create(null);i||(s.__exists=1),Object.keys(o).forEach(function(e){if(!i||i[e]!==u[e]){s[e]=1;var t=(0,v.E_)(e);t===e||n.policies.hasKeyArgs(u.__typename,t)||(s[t]=1),void 0!==u[e]||n instanceof S||delete u[e]}}),s.__typename&&!(i&&i.__typename)&&this.policies.rootTypenamesById[r]===u.__typename&&delete s.__typename,Object.keys(s).forEach(function(e){return n.group.dirty(r,e)})}}},e.prototype.modify=function(e,t){var r=this,n=this.lookup(e);if(n){var i=Object.create(null),a=!1,u=!0,s={DELETE:y,INVALIDATE:g,isReference:f.Yk,toReference:this.toReference,canRead:this.canRead,readField:function(t,n){return r.policies.readField("string"==typeof t?{fieldName:t,from:n||(0,f.kQ)(e)}:t,{store:r})}};if(Object.keys(n).forEach(function(c){var f=(0,v.E_)(c),p=n[c];if(void 0!==p){var h="function"==typeof t?t:t[c]||t[f];if(h){var d=h===m?y:h((0,l.J)(p),(0,o.pi)((0,o.pi)({},s),{fieldName:f,storeFieldName:c,storage:r.getStorage(e,c)}));d===g?r.group.dirty(e,c):(d===y&&(d=void 0),d!==p&&(i[c]=d,a=!0,p=d))}void 0!==p&&(u=!1)}}),a)return this.merge(e,i),u&&(this instanceof S?this.data[e]=void 0:delete this.data[e],this.group.dirty(e,"__exists")),!0}return!1},e.prototype.delete=function(e,t,r){var n,i=this.lookup(e);if(i){var o=this.getFieldValue(i,"__typename"),a=t&&r?this.policies.getStoreFieldName({typename:o,fieldName:t,args:r}):t;return this.modify(e,a?((n={})[a]=m,n):m)}return!1},e.prototype.evict=function(e,t){var r=!1;return e.id&&(v.RI.call(this.data,e.id)&&(r=this.delete(e.id,e.fieldName,e.args)),this instanceof S&&this!==t&&(r=this.parent.evict(e,t)||r),(e.fieldName||r)&&this.group.dirty(e.id,e.fieldName||"__exists")),r},e.prototype.clear=function(){this.replace(null)},e.prototype.extract=function(){var e=this,t=this.toObject(),r=[];return this.getRootIdSet().forEach(function(t){v.RI.call(e.policies.rootTypenamesById,t)||r.push(t)}),r.length&&(t.__META={extraRootIds:r.sort()}),t},e.prototype.replace=function(e){var t=this;if(Object.keys(this.data).forEach(function(r){e&&v.RI.call(e,r)||t.delete(r)}),e){var r=e.__META,n=(0,o._T)(e,["__META"]);Object.keys(n).forEach(function(e){t.merge(e,n[e])}),r&&r.extraRootIds.forEach(this.retain,this)}},e.prototype.retain=function(e){return this.rootIds[e]=(this.rootIds[e]||0)+1},e.prototype.release=function(e){if(this.rootIds[e]>0){var t=--this.rootIds[e];return t||delete this.rootIds[e],t}return 0},e.prototype.getRootIdSet=function(e){return void 0===e&&(e=new Set),Object.keys(this.rootIds).forEach(e.add,e),this instanceof S?this.parent.getRootIdSet(e):Object.keys(this.policies.rootTypenamesById).forEach(e.add,e),e},e.prototype.gc=function(){var e=this,t=this.getRootIdSet(),r=this.toObject();t.forEach(function(n){v.RI.call(r,n)&&(Object.keys(e.findChildRefIds(n)).forEach(t.add,t),delete r[n])});var n=Object.keys(r);if(n.length){for(var i=this;i instanceof S;)i=i.parent;n.forEach(function(e){return i.delete(e)})}return n},e.prototype.findChildRefIds=function(e){if(!v.RI.call(this.refs,e)){var t=this.refs[e]=Object.create(null),r=this.data[e];if(!r)return t;var n=new Set([r]);n.forEach(function(e){(0,f.Yk)(e)&&(t[e.__ref]=!0),(0,h.s)(e)&&Object.keys(e).forEach(function(t){var r=e[t];(0,h.s)(r)&&n.add(r)})})}return this.refs[e]},e.prototype.makeCacheKey=function(){return this.group.keyMaker.lookupArray(arguments)},e}(),w=function(){function e(e,t){void 0===t&&(t=null),this.caching=e,this.parent=t,this.d=null,this.resetCaching()}return e.prototype.resetCaching=function(){this.d=this.caching?(0,u.dP)():null,this.keyMaker=new c.B(d.mr)},e.prototype.depend=function(e,t){if(this.d){this.d(t+"#"+e);var r=(0,v.E_)(t);r!==t&&this.d(r+"#"+e),this.parent&&this.parent.depend(e,t)}},e.prototype.dirty=function(e,t){this.d&&this.d.dirty(t+"#"+e,"__exists"===t?"forget":"setDirty")},e}();function k(e,t){E(e)&&e.group.depend(t,"__exists")}i=function(e){function t(t){var r=t.policies,n=t.resultCaching,i=t.seed,o=e.call(this,r,new w(void 0===n||n))||this;return o.stump=new O(o),o.storageTrie=new c.B(d.mr),i&&o.replace(i),o}return(0,o.ZT)(t,e),t.prototype.addLayer=function(e,t){return this.stump.addLayer(e,t)},t.prototype.removeLayer=function(){return this},t.prototype.getStorage=function(){return this.storageTrie.lookupArray(arguments)},t}(n=b||(b={})),n.Root=i;var S=function(e){function t(t,r,n,i){var o=e.call(this,r.policies,i)||this;return o.id=t,o.parent=r,o.replay=n,o.group=i,n(o),o}return(0,o.ZT)(t,e),t.prototype.addLayer=function(e,r){return new t(e,this,r,this.group)},t.prototype.removeLayer=function(e){var t=this,r=this.parent.removeLayer(e);return e===this.id?(this.group.caching&&Object.keys(this.data).forEach(function(e){var n=t.data[e],i=r.lookup(e);i?n?n!==i&&Object.keys(n).forEach(function(r){(0,s.D)(n[r],i[r])||t.group.dirty(e,r)}):(t.group.dirty(e,"__exists"),Object.keys(i).forEach(function(r){t.group.dirty(e,r)})):t.delete(e)}),r):r===this.parent?this:r.addLayer(this.id,this.replay)},t.prototype.toObject=function(){return(0,o.pi)((0,o.pi)({},this.parent.toObject()),this.data)},t.prototype.findChildRefIds=function(t){var r=this.parent.findChildRefIds(t);return v.RI.call(this.data,t)?(0,o.pi)((0,o.pi)({},r),e.prototype.findChildRefIds.call(this,t)):r},t.prototype.getStorage=function(){for(var e=this.parent;e.parent;)e=e.parent;return e.getStorage.apply(e,arguments)},t}(b),O=function(e){function t(t){return e.call(this,"EntityStore.Stump",t,function(){},new w(t.group.caching,t.group))||this}return(0,o.ZT)(t,e),t.prototype.removeLayer=function(){return this},t.prototype.merge=function(){return this.parent.merge.apply(this.parent,arguments)},t}(S);function _(e,t,r){var n=e[r],i=t[r];return(0,s.D)(n,i)?n:i}function E(e){return!!(e instanceof b&&e.group.caching)}},83598:function(e,t,r){r.d(t,{$O:function(){return g},E_:function(){return b},Is:function(){return S},RC:function(){return function e(t,r,n){return!!(0,o.s)(r)&&((0,a.k)(r)?r.every(function(r){return e(t,r,n)}):t.selections.every(function(t){if((0,i.My)(t)&&(0,u.LZ)(t,n)){var o=(0,i.u2)(t);return f.call(r,o)&&(!t.selectionSet||e(t.selectionSet,r[o],n))}return!0}))}},RI:function(){return f},ig:function(){return k},j:function(){return w},jS:function(){return v},jp:function(){return m},lg:function(){return y},uG:function(){return h}});var n=r(85292),i=r(48338),o=r(23446),a=r(92086),u=r(30696),s=r(71269),c=r(80960),l=r(36517),f=Object.prototype.hasOwnProperty;function p(e){return null==e}function h(e,t){var r=e.__typename,n=e.id,i=e._id;if("string"==typeof r&&(t&&(t.keyObject=p(n)?p(i)?void 0:{_id:i}:{id:n}),p(n)&&!p(i)&&(n=i),!p(n)))return"".concat(r,":").concat("number"==typeof n||"string"==typeof n?n:JSON.stringify(n))}var d={dataIdFromObject:h,addTypename:!0,resultCaching:!0,canonizeResults:!1};function v(e){return(0,n.o)(d,e)}function y(e){var t=e.canonizeResults;return void 0===t?d.canonizeResults:t}function m(e,t){return(0,i.Yk)(t)?e.get(t.__ref,"__typename"):t&&t.__typename}var g=/^[_a-z][_0-9a-z]*/i;function b(e){var t=e.match(g);return t?t[0]:e}function w(e){return(0,o.s)(e)&&!(0,i.Yk)(e)&&!(0,a.k)(e)}function k(){return new s.w0}function S(e,t){var r=(0,c.F)((0,l.kU)(e));return{fragmentMap:r,lookupFragment:function(e){var n=r[e];return!n&&t&&(n=t.lookup(e)),n||null}}}},17119:function(e,t,r){r.d(t,{h:function(){return M}});var n=r(5853),i=r(2276),o=r(68385),a=r(36628),u=r(445),s=r(99587),c=r(56789),l=r(55484),f=r(48338),p=r(50499),h=r(59394),d=r(85292),v=r(36517),y=r(71269),m=r(30696),g=r(80960),b=r(82187),w=r(23446),k=r(25538),S=r(83598),O=r(92086),_=r(56125);function E(e){return[e.selectionSet,e.objectOrReference,e.context,e.context.canonizeResults]}var R=function(){function e(e){var t=this;this.knownResults=new(h.mr?WeakMap:Map),this.config=(0,d.o)(e,{addTypename:!1!==e.addTypename,canonizeResults:(0,S.lg)(e)}),this.canon=e.canon||new _.h,this.executeSelectionSet=(0,o.re)(function(e){var r,i=e.context.canonizeResults,o=E(e);o[3]=!i;var a=(r=t.executeSelectionSet).peek.apply(r,o);return a?i?(0,n.pi)((0,n.pi)({},a),{result:t.canon.admit(a.result)}):a:((0,k.HL)(e.context.store,e.enclosingRef.__ref),t.execSelectionSetImpl(e))},{max:this.config.resultCacheMaxSize,keyArgs:E,makeCacheKey:function(e,t,r,n){if((0,k.ur)(r.store))return r.store.makeCacheKey(e,(0,f.Yk)(t)?t.__ref:t,r.varString,n)}}),this.executeSubSelectedArray=(0,o.re)(function(e){return(0,k.HL)(e.context.store,e.enclosingRef.__ref),t.execSubSelectedArrayImpl(e)},{max:this.config.resultCacheMaxSize,makeCacheKey:function(e){var t=e.field,r=e.array,n=e.context;if((0,k.ur)(n.store))return n.store.makeCacheKey(t,r,n.varString)}})}return e.prototype.resetCanon=function(){this.canon=new _.h},e.prototype.diffQueryAgainstStore=function(e){var t,r=e.store,i=e.query,o=e.rootId,a=e.variables,u=e.returnPartialData,c=e.canonizeResults,l=void 0===c?this.config.canonizeResults:c,p=this.config.cache.policies;a=(0,n.pi)((0,n.pi)({},(0,v.O4)((0,v.iW)(i))),a);var h=(0,f.kQ)(void 0===o?"ROOT_QUERY":o),d=this.executeSelectionSet({selectionSet:(0,v.p$)(i).selectionSet,objectOrReference:h,enclosingRef:h,context:(0,n.pi)({store:r,query:i,policies:p,variables:a,varString:(0,_.B)(a),canonizeResults:l},(0,S.Is)(i,this.config.fragments))});if(d.missing&&(t=[new s.y(function(e){try{JSON.stringify(e,function(e,t){if("string"==typeof t)throw t;return t})}catch(e){return e}}(d.missing),d.missing,i,a)],!(void 0===u||u)))throw t[0];return{result:d.result,complete:!t,missing:t}},e.prototype.isFresh=function(e,t,r,n){if((0,k.ur)(n.store)&&this.knownResults.get(e)===r){var i=this.executeSelectionSet.peek(r,t,n,this.canon.isKnown(e));if(i&&e===i.result)return!0}return!1},e.prototype.execSelectionSetImpl=function(e){var t,r=this,n=e.selectionSet,o=e.objectOrReference,a=e.enclosingRef,u=e.context;if((0,f.Yk)(o)&&!u.policies.rootTypenamesById[o.__ref]&&!u.store.has(o.__ref))return{result:this.canon.empty,missing:"Dangling reference to missing ".concat(o.__ref," object")};var s=u.variables,c=u.policies,h=u.store.getFieldValue(o,"__typename"),d=[],v=new y.w0;function w(e,r){var n;return e.missing&&(t=v.merge(t,((n={})[r]=e.missing,n))),e.result}this.config.addTypename&&"string"==typeof h&&!c.rootIdsByTypename[h]&&d.push({__typename:h});var k=new Set(n.selections);k.forEach(function(e){var n,y;if((0,m.LZ)(e,s)){if((0,f.My)(e)){var b=c.readField({fieldName:e.name.value,field:e,variables:u.variables,from:o},u),S=(0,f.u2)(e);void 0===b?l.Gw.added(e)||(t=v.merge(t,((n={})[S]="Can't find field '".concat(e.name.value,"' on ").concat((0,f.Yk)(o)?o.__ref+" object":"object "+JSON.stringify(o,null,2)),n))):(0,O.k)(b)?b=w(r.executeSubSelectedArray({field:e,array:b,enclosingRef:a,context:u}),S):e.selectionSet?null!=b&&(b=w(r.executeSelectionSet({selectionSet:e.selectionSet,objectOrReference:b,enclosingRef:(0,f.Yk)(b)?b:a,context:u}),S)):u.canonizeResults&&(b=r.canon.pass(b)),void 0!==b&&d.push(((y={})[S]=b,y))}else{var _=(0,g.hi)(e,u.lookupFragment);if(!_&&e.kind===p.h.FRAGMENT_SPREAD)throw(0,i._K)(7,e.name.value);_&&c.fragmentMatches(_,h)&&_.selectionSet.selections.forEach(k.add,k)}}});var S={result:(0,y.bw)(d),missing:t},_=u.canonizeResults?this.canon.admit(S):(0,b.J)(S);return _.result&&this.knownResults.set(_.result,n),_},e.prototype.execSubSelectedArrayImpl=function(e){var t,r=this,n=e.field,o=e.array,a=e.enclosingRef,u=e.context,s=new y.w0;function c(e,r){var n;return e.missing&&(t=s.merge(t,((n={})[r]=e.missing,n))),e.result}return n.selectionSet&&(o=o.filter(u.store.canRead)),o=o.map(function(e,t){return null===e?null:(0,O.k)(e)?c(r.executeSubSelectedArray({field:n,array:e,enclosingRef:a,context:u}),t):n.selectionSet?c(r.executeSelectionSet({selectionSet:n.selectionSet,objectOrReference:e,enclosingRef:(0,f.Yk)(e)?e:a,context:u}),t):(!1!==globalThis.__DEV__&&function(e,t,r){if(!t.selectionSet){var n=new Set([r]);n.forEach(function(r){(0,w.s)(r)&&((0,i.kG)(!(0,f.Yk)(r),8,(0,S.jp)(e,r),t.name.value),Object.values(r).forEach(n.add,n))})}}(u.store,n,e),e)}),{result:u.canonizeResults?this.canon.admit(o):o,missing:t}},e}(),D=r(46238),I=r(86626),x=r(68929);function T(e,t,r){var i="".concat(t).concat(r),o=e.flavors.get(i);return o||e.flavors.set(i,o=e.clientOnly===t&&e.deferred===r?e:(0,n.pi)((0,n.pi)({},e),{clientOnly:t,deferred:r})),o}var C=function(){function e(e,t,r){this.cache=e,this.reader=t,this.fragments=r}return e.prototype.writeToStore=function(e,t){var r=this,o=t.query,u=t.result,s=t.dataId,c=t.variables,l=t.overwrite,p=(0,v.$H)(o),h=(0,S.ig)();c=(0,n.pi)((0,n.pi)({},(0,v.O4)(p)),c);var d=(0,n.pi)((0,n.pi)({store:e,written:Object.create(null),merge:function(e,t){return h.merge(e,t)},variables:c,varString:(0,_.B)(c)},(0,S.Is)(o,this.fragments)),{overwrite:!!l,incomingById:new Map,clientOnly:!1,deferred:!1,flavors:new Map}),y=this.processSelectionSet({result:u||Object.create(null),dataId:s,selectionSet:p.selectionSet,mergeTree:{map:new Map},context:d});if(!(0,f.Yk)(y))throw(0,i._K)(9,u);return d.incomingById.forEach(function(t,n){var o=t.storeObject,u=t.mergeTree,s=t.fieldNodeSet,c=(0,f.kQ)(n);if(u&&u.map.size){var l=r.applyMerges(u,c,o,d);if((0,f.Yk)(l))return;o=l}if(!1!==globalThis.__DEV__&&!d.overwrite){var p=Object.create(null);s.forEach(function(e){e.selectionSet&&(p[e.name.value]=!0)});var h=function(e){var t=u&&u.map.get(e);return!!(t&&t.info&&t.info.merge)};Object.keys(o).forEach(function(e){!0!==p[(0,S.E_)(e)]||h(e)||function(e,t,r,n){var o=function(e){var t=n.getFieldValue(e,r);return"object"==typeof t&&t},u=o(e);if(u){var s=o(t);if(!(!s||(0,f.Yk)(u)||(0,a.D)(u,s)||Object.keys(u).every(function(e){return void 0!==n.getFieldValue(s,e)}))){var c=n.getFieldValue(e,"__typename")||n.getFieldValue(t,"__typename"),l=(0,S.E_)(r),p="".concat(c,".").concat(l);if(!Q.has(p)){Q.add(p);var h=[];(0,O.k)(u)||(0,O.k)(s)||[u,s].forEach(function(e){var t=n.getFieldValue(e,"__typename");"string"!=typeof t||h.includes(t)||h.push(t)}),!1!==globalThis.__DEV__&&i.kG.warn(12,l,c,h.length?"either ensure all objects of type "+h.join(" and ")+" have an ID or a custom merge function, or ":"",p,u,s)}}}}(c,o,e,d.store)})}e.merge(n,o)}),e.retain(y.__ref),y},e.prototype.processSelectionSet=function(e){var t=this,r=e.dataId,o=e.result,a=e.selectionSet,u=e.context,s=e.mergeTree,c=this.cache.policies,p=Object.create(null),h=r&&c.rootTypenamesById[r]||(0,f.qw)(o,a,u.fragmentMap)||r&&u.store.get(r,"__typename");"string"==typeof h&&(p.__typename=h);var d=function(){var e=(0,x.y)(arguments,p,u.variables);if((0,f.Yk)(e.from)){var t=u.incomingById.get(e.from.__ref);if(t){var r=c.readField((0,n.pi)((0,n.pi)({},e),{from:t.storeObject}),u);if(void 0!==r)return r}}return c.readField(e,u)},v=new Set;this.flattenFields(a,o,u,h).forEach(function(e,r){var n,a=o[(0,f.u2)(r)];if(v.add(r),void 0!==a){var u=c.getStoreFieldName({typename:h,fieldName:r.name.value,field:r,variables:e.variables}),y=F(s,u),m=t.processFieldValue(a,r,r.selectionSet?T(e,!1,!1):e,y),g=void 0;r.selectionSet&&((0,f.Yk)(m)||(0,S.j)(m))&&(g=d("__typename",m));var b=c.getMergeFunction(h,r.name.value,g);b?y.info={field:r,typename:h,merge:b}:j(s,u),p=e.merge(p,((n={})[u]=m,n))}else!1===globalThis.__DEV__||e.clientOnly||e.deferred||l.Gw.added(r)||c.getReadFunction(h,r.name.value)||!1===globalThis.__DEV__||i.kG.error(10,(0,f.u2)(r),o)});try{var y=c.identify(o,{typename:h,selectionSet:a,fragmentMap:u.fragmentMap,storeObject:p,readField:d}),m=y[0],g=y[1];r=r||m,g&&(p=u.merge(p,g))}catch(e){if(!r)throw e}if("string"==typeof r){var b=(0,f.kQ)(r),w=u.written[r]||(u.written[r]=[]);if(w.indexOf(a)>=0||(w.push(a),this.reader&&this.reader.isFresh(o,b,a,u)))return b;var k=u.incomingById.get(r);return k?(k.storeObject=u.merge(k.storeObject,p),k.mergeTree=function e(t,r){if(t===r||!r||A(r))return t;if(!t||A(t))return r;var i=t.info&&r.info?(0,n.pi)((0,n.pi)({},t.info),r.info):t.info||r.info,o=t.map.size&&r.map.size,a={info:i,map:o?new Map:t.map.size?t.map:r.map};if(o){var u=new Set(r.map.keys());t.map.forEach(function(t,n){a.map.set(n,e(t,r.map.get(n))),u.delete(n)}),u.forEach(function(n){a.map.set(n,e(r.map.get(n),t.map.get(n)))})}return a}(k.mergeTree,s),v.forEach(function(e){return k.fieldNodeSet.add(e)})):u.incomingById.set(r,{storeObject:p,mergeTree:A(s)?void 0:s,fieldNodeSet:v}),b}return p},e.prototype.processFieldValue=function(e,t,r,n){var i=this;return t.selectionSet&&null!==e?(0,O.k)(e)?e.map(function(e,o){var a=i.processFieldValue(e,t,r,F(n,o));return j(n,o),a}):this.processSelectionSet({result:e,selectionSet:t.selectionSet,context:r,mergeTree:n}):!1!==globalThis.__DEV__?(0,I.X)(e):e},e.prototype.flattenFields=function(e,t,r,n){void 0===n&&(n=(0,f.qw)(t,e,r.fragmentMap));var o=new Map,a=this.cache.policies,u=new D.B(!1);return function e(s,c){var l=u.lookup(s,c.clientOnly,c.deferred);l.visited||(l.visited=!0,s.selections.forEach(function(u){if((0,m.LZ)(u,r.variables)){var s=c.clientOnly,l=c.deferred;if(!(s&&l)&&(0,O.O)(u.directives)&&u.directives.forEach(function(e){var t=e.name.value;if("client"===t&&(s=!0),"defer"===t){var n=(0,f.NC)(e,r.variables);n&&!1===n.if||(l=!0)}}),(0,f.My)(u)){var h=o.get(u);h&&(s=s&&h.clientOnly,l=l&&h.deferred),o.set(u,T(r,s,l))}else{var d=(0,g.hi)(u,r.lookupFragment);if(!d&&u.kind===p.h.FRAGMENT_SPREAD)throw(0,i._K)(11,u.name.value);d&&a.fragmentMatches(d,n,t,r.variables)&&e(d.selectionSet,T(r,s,l))}}}))}(e,r),o},e.prototype.applyMerges=function(e,t,r,o,a){var u=this;if(e.map.size&&!(0,f.Yk)(r)){var s,c,l=!(0,O.k)(r)&&((0,f.Yk)(t)||(0,S.j)(t))?t:void 0,p=r;l&&!a&&(a=[(0,f.Yk)(l)?l.__ref:l]);var h=function(e,t){return(0,O.k)(e)?"number"==typeof t?e[t]:void 0:o.store.getFieldValue(e,String(t))};e.map.forEach(function(e,t){var r=h(l,t),n=h(p,t);if(void 0!==n){a&&a.push(t);var s=u.applyMerges(e,r,n,o,a);s!==n&&(c=c||new Map).set(t,s),a&&(0,i.kG)(a.pop()===t)}}),c&&(r=(0,O.k)(p)?p.slice(0):(0,n.pi)({},p),c.forEach(function(e,t){r[t]=e}))}return e.info?this.cache.policies.runMergeFunction(t,r,e.info,o,a&&(s=o.store).getStorage.apply(s,a)):r},e}(),P=[];function F(e,t){var r=e.map;return r.has(t)||r.set(t,P.pop()||{map:new Map}),r.get(t)}function A(e){return!e||!(e.info||e.map.size)}function j(e,t){var r=e.map,n=r.get(t);n&&A(n)&&(P.push(n),r.delete(t))}var Q=new Set,q=r(38355),M=function(e){function t(t){void 0===t&&(t={});var r=e.call(this)||this;return r.watches=new Set,r.addTypenameTransform=new c.A(l.Gw),r.assumeImmutableResults=!0,r.makeVar=q.QS,r.txCount=0,r.config=(0,S.jS)(t),r.addTypename=!!r.config.addTypename,r.policies=new x.r({cache:r,dataIdFromObject:r.config.dataIdFromObject,possibleTypes:r.config.possibleTypes,typePolicies:r.config.typePolicies}),r.init(),r}return(0,n.ZT)(t,e),t.prototype.init=function(){var e=this.data=new k.cf.Root({policies:this.policies,resultCaching:this.config.resultCaching});this.optimisticData=e.stump,this.resetResultCache()},t.prototype.resetResultCache=function(e){var t=this,r=this.storeReader,n=this.config.fragments;this.storeWriter=new C(this,this.storeReader=new R({cache:this,addTypename:this.addTypename,resultCacheMaxSize:this.config.resultCacheMaxSize,canonizeResults:(0,S.lg)(this.config),canon:e?void 0:r&&r.canon,fragments:n}),n),this.maybeBroadcastWatch=(0,o.re)(function(e,r){return t.broadcastWatch(e,r)},{max:this.config.resultCacheMaxSize,makeCacheKey:function(e){var r=e.optimistic?t.optimisticData:t.data;if((0,k.ur)(r)){var n=e.optimistic,i=e.id,o=e.variables;return r.makeCacheKey(e.query,e.callback,(0,_.B)({optimistic:n,id:i,variables:o}))}}}),new Set([this.data.group,this.optimisticData.group]).forEach(function(e){return e.resetCaching()})},t.prototype.restore=function(e){return this.init(),e&&this.data.replace(e),this},t.prototype.extract=function(e){return void 0===e&&(e=!1),(e?this.optimisticData:this.data).extract()},t.prototype.read=function(e){var t=e.returnPartialData;try{return this.storeReader.diffQueryAgainstStore((0,n.pi)((0,n.pi)({},e),{store:e.optimistic?this.optimisticData:this.data,config:this.config,returnPartialData:void 0!==t&&t})).result||null}catch(e){if(e instanceof s.y)return null;throw e}},t.prototype.write=function(e){try{return++this.txCount,this.storeWriter.writeToStore(this.data,e)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},t.prototype.modify=function(e){if(S.RI.call(e,"id")&&!e.id)return!1;var t=e.optimistic?this.optimisticData:this.data;try{return++this.txCount,t.modify(e.id||"ROOT_QUERY",e.fields)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},t.prototype.diff=function(e){return this.storeReader.diffQueryAgainstStore((0,n.pi)((0,n.pi)({},e),{store:e.optimistic?this.optimisticData:this.data,rootId:e.id||"ROOT_QUERY",config:this.config}))},t.prototype.watch=function(e){var t=this;return this.watches.size||(0,q._v)(this),this.watches.add(e),e.immediate&&this.maybeBroadcastWatch(e),function(){t.watches.delete(e)&&!t.watches.size&&(0,q.li)(t),t.maybeBroadcastWatch.forget(e)}},t.prototype.gc=function(e){_.B.reset();var t=this.optimisticData.gc();return e&&!this.txCount&&(e.resetResultCache?this.resetResultCache(e.resetResultIdentities):e.resetResultIdentities&&this.storeReader.resetCanon()),t},t.prototype.retain=function(e,t){return(t?this.optimisticData:this.data).retain(e)},t.prototype.release=function(e,t){return(t?this.optimisticData:this.data).release(e)},t.prototype.identify=function(e){if((0,f.Yk)(e))return e.__ref;try{return this.policies.identify(e)[0]}catch(e){!1!==globalThis.__DEV__&&i.kG.warn(e)}},t.prototype.evict=function(e){if(!e.id){if(S.RI.call(e,"id"))return!1;e=(0,n.pi)((0,n.pi)({},e),{id:"ROOT_QUERY"})}try{return++this.txCount,this.optimisticData.evict(e,this.data)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},t.prototype.reset=function(e){var t=this;return this.init(),_.B.reset(),e&&e.discardWatches?(this.watches.forEach(function(e){return t.maybeBroadcastWatch.forget(e)}),this.watches.clear(),(0,q.li)(this)):this.broadcastWatches(),Promise.resolve()},t.prototype.removeOptimistic=function(e){var t=this.optimisticData.removeLayer(e);t!==this.optimisticData&&(this.optimisticData=t,this.broadcastWatches())},t.prototype.batch=function(e){var t,r=this,i=e.update,o=e.optimistic,a=void 0===o||o,u=e.removeOptimistic,s=e.onWatchUpdated,c=function(e){var n=r.data,o=r.optimisticData;++r.txCount,e&&(r.data=r.optimisticData=e);try{return t=i(r)}finally{--r.txCount,r.data=n,r.optimisticData=o}},l=new Set;return s&&!this.txCount&&this.broadcastWatches((0,n.pi)((0,n.pi)({},e),{onWatchUpdated:function(e){return l.add(e),!1}})),"string"==typeof a?this.optimisticData=this.optimisticData.addLayer(a,c):!1===a?c(this.data):c(),"string"==typeof u&&(this.optimisticData=this.optimisticData.removeLayer(u)),s&&l.size?(this.broadcastWatches((0,n.pi)((0,n.pi)({},e),{onWatchUpdated:function(e,t){var r=s.call(this,e,t);return!1!==r&&l.delete(e),r}})),l.size&&l.forEach(function(e){return r.maybeBroadcastWatch.dirty(e)})):this.broadcastWatches(e),t},t.prototype.performTransaction=function(e,t){return this.batch({update:e,optimistic:t||null!==t})},t.prototype.transformDocument=function(e){return this.addTypenameToDocument(this.addFragmentsToDocument(e))},t.prototype.broadcastWatches=function(e){var t=this;this.txCount||this.watches.forEach(function(r){return t.maybeBroadcastWatch(r,e)})},t.prototype.addFragmentsToDocument=function(e){var t=this.config.fragments;return t?t.transform(e):e},t.prototype.addTypenameToDocument=function(e){return this.addTypename?this.addTypenameTransform.transformDocument(e):e},t.prototype.broadcastWatch=function(e,t){var r=e.lastDiff,n=this.diff(e);(!t||(e.optimistic&&"string"==typeof t.optimistic&&(n.fromOptimisticTransaction=!0),!t.onWatchUpdated||!1!==t.onWatchUpdated.call(this,e,n,r)))&&(r&&(0,a.D)(r.result,n.result)||e.callback(e.lastDiff=n,r))},t}(u.R)},68929:function(e,t,r){r.d(t,{r:function(){return E},y:function(){return D}});var n=r(5853),i=r(2276),o=r(48338),a=r(88099),u=r(23446),s=r(83598),c=r(92086),l=r(38355),f=r(56125),p=r(71269),h=Object.create(null);function d(e){var t=JSON.stringify(e);return h[t]||(h[t]=Object.create(null))}function v(e){var t=d(e);return t.keyFieldsFn||(t.keyFieldsFn=function(t,r){var n=function(e,t){return r.readField(t,e)},o=r.keyObject=m(e,function(e){var o=b(r.storeObject,e,n);return void 0===o&&t!==r.storeObject&&s.RI.call(t,e[0])&&(o=b(t,e,g)),(0,i.kG)(void 0!==o,2,e.join("."),t),o});return"".concat(r.typename,":").concat(JSON.stringify(o))})}function y(e){var t=d(e);return t.keyArgsFn||(t.keyArgsFn=function(t,r){var n=r.field,i=r.variables,a=r.fieldName,u=JSON.stringify(m(e,function(e){var r=e[0],a=r.charAt(0);if("@"===a){if(n&&(0,c.O)(n.directives)){var u=r.slice(1),l=n.directives.find(function(e){return e.name.value===u}),f=l&&(0,o.NC)(l,i);return f&&b(f,e.slice(1))}return}if("$"===a){var p=r.slice(1);if(i&&s.RI.call(i,p)){var h=e.slice(0);return h[0]=p,b(i,h)}return}if(t)return b(t,e)}));return(t||"{}"!==u)&&(a+=":"+u),a})}function m(e,t){var r=new p.w0;return(function e(t){var r=d(t);if(!r.paths){var n=r.paths=[],i=[];t.forEach(function(r,o){(0,c.k)(r)?(e(r).forEach(function(e){return n.push(i.concat(e))}),i.length=0):(i.push(r),(0,c.k)(t[o+1])||(n.push(i.slice(0)),i.length=0))})}return r.paths})(e).reduce(function(e,n){var i,o=t(n);if(void 0!==o){for(var a=n.length-1;a>=0;--a)(i={})[n[a]]=o,o=i;e=r.merge(e,o)}return e},Object.create(null))}function g(e,t){return e[t]}function b(e,t,r){return r=r||g,function e(t){return(0,u.s)(t)?(0,c.k)(t)?t.map(e):m(Object.keys(t).sort(),function(e){return b(t,e)}):t}(t.reduce(function e(t,n){return(0,c.k)(t)?t.map(function(t){return e(t,n)}):t&&r(t,n)},e))}function w(e){return void 0!==e.args?e.args:e.field?(0,o.NC)(e.field,e.variables):null}o.PT.setStringify(f.B);var k=function(){},S=function(e,t){return t.fieldName},O=function(e,t,r){return(0,r.mergeObjects)(e,t)},_=function(e,t){return t},E=function(){function e(e){this.config=e,this.typePolicies=Object.create(null),this.toBeAdded=Object.create(null),this.supertypeMap=new Map,this.fuzzySubtypes=new Map,this.rootIdsByTypename=Object.create(null),this.rootTypenamesById=Object.create(null),this.usingPossibleTypes=!1,this.config=(0,n.pi)({dataIdFromObject:s.uG},e),this.cache=this.config.cache,this.setRootTypename("Query"),this.setRootTypename("Mutation"),this.setRootTypename("Subscription"),e.possibleTypes&&this.addPossibleTypes(e.possibleTypes),e.typePolicies&&this.addTypePolicies(e.typePolicies)}return e.prototype.identify=function(e,t){var r,i,o=this,a=t&&(t.typename||(null===(r=t.storeObject)||void 0===r?void 0:r.__typename))||e.__typename;if(a===this.rootTypenamesById.ROOT_QUERY)return["ROOT_QUERY"];for(var u=t&&t.storeObject||e,s=(0,n.pi)((0,n.pi)({},t),{typename:a,storeObject:u,readField:t&&t.readField||function(){var e=D(arguments,u);return o.readField(e,{store:o.cache.data,variables:e.variables})}}),l=a&&this.getTypePolicy(a),f=l&&l.keyFn||this.config.dataIdFromObject;f;){var p=f((0,n.pi)((0,n.pi)({},e),u),s);if((0,c.k)(p))f=v(p);else{i=p;break}}return i=i?String(i):void 0,s.keyObject?[i,s.keyObject]:[i]},e.prototype.addTypePolicies=function(e){var t=this;Object.keys(e).forEach(function(r){var i=e[r],o=i.queryType,a=i.mutationType,u=i.subscriptionType,c=(0,n._T)(i,["queryType","mutationType","subscriptionType"]);o&&t.setRootTypename("Query",r),a&&t.setRootTypename("Mutation",r),u&&t.setRootTypename("Subscription",r),s.RI.call(t.toBeAdded,r)?t.toBeAdded[r].push(c):t.toBeAdded[r]=[c]})},e.prototype.updateTypePolicy=function(e,t){var r=this,n=this.getTypePolicy(e),i=t.keyFields,o=t.fields;function a(e,t){e.merge="function"==typeof t?t:!0===t?O:!1===t?_:e.merge}a(n,t.merge),n.keyFn=!1===i?k:(0,c.k)(i)?v(i):"function"==typeof i?i:n.keyFn,o&&Object.keys(o).forEach(function(t){var n=r.getFieldPolicy(e,t,!0),i=o[t];if("function"==typeof i)n.read=i;else{var u=i.keyArgs,s=i.read,l=i.merge;n.keyFn=!1===u?S:(0,c.k)(u)?y(u):"function"==typeof u?u:n.keyFn,"function"==typeof s&&(n.read=s),a(n,l)}n.read&&n.merge&&(n.keyFn=n.keyFn||S)})},e.prototype.setRootTypename=function(e,t){void 0===t&&(t=e);var r="ROOT_"+e.toUpperCase(),n=this.rootTypenamesById[r];t!==n&&((0,i.kG)(!n||n===e,3,e),n&&delete this.rootIdsByTypename[n],this.rootIdsByTypename[t]=r,this.rootTypenamesById[r]=t)},e.prototype.addPossibleTypes=function(e){var t=this;this.usingPossibleTypes=!0,Object.keys(e).forEach(function(r){t.getSupertypeSet(r,!0),e[r].forEach(function(e){t.getSupertypeSet(e,!0).add(r);var n=e.match(s.$O);n&&n[0]===e||t.fuzzySubtypes.set(e,new RegExp(e))})})},e.prototype.getTypePolicy=function(e){var t=this;if(!s.RI.call(this.typePolicies,e)){var r=this.typePolicies[e]=Object.create(null);r.fields=Object.create(null);var i=this.supertypeMap.get(e);!i&&this.fuzzySubtypes.size&&(i=this.getSupertypeSet(e,!0),this.fuzzySubtypes.forEach(function(r,n){if(r.test(e)){var o=t.supertypeMap.get(n);o&&o.forEach(function(e){return i.add(e)})}})),i&&i.size&&i.forEach(function(e){var i=t.getTypePolicy(e),o=i.fields;Object.assign(r,(0,n._T)(i,["fields"])),Object.assign(r.fields,o)})}var o=this.toBeAdded[e];return o&&o.length&&o.splice(0).forEach(function(r){t.updateTypePolicy(e,r)}),this.typePolicies[e]},e.prototype.getFieldPolicy=function(e,t,r){if(e){var n=this.getTypePolicy(e).fields;return n[t]||r&&(n[t]=Object.create(null))}},e.prototype.getSupertypeSet=function(e,t){var r=this.supertypeMap.get(e);return!r&&t&&this.supertypeMap.set(e,r=new Set),r},e.prototype.fragmentMatches=function(e,t,r,n){var o=this;if(!e.typeCondition)return!0;if(!t)return!1;var a=e.typeCondition.name.value;if(t===a)return!0;if(this.usingPossibleTypes&&this.supertypeMap.has(a))for(var u=this.getSupertypeSet(t,!0),c=[u],l=function(e){var t=o.getSupertypeSet(e,!1);t&&t.size&&0>c.indexOf(t)&&c.push(t)},f=!!(r&&this.fuzzySubtypes.size),p=!1,h=0;h<c.length;++h){var d=c[h];if(d.has(a))return u.has(a)||(p&&!1!==globalThis.__DEV__&&i.kG.warn(4,t,a),u.add(a)),!0;d.forEach(l),f&&h===c.length-1&&(0,s.RC)(e.selectionSet,r,n)&&(f=!1,p=!0,this.fuzzySubtypes.forEach(function(e,r){var n=t.match(e);n&&n[0]===t&&l(r)}))}return!1},e.prototype.hasKeyArgs=function(e,t){var r=this.getFieldPolicy(e,t,!1);return!!(r&&r.keyFn)},e.prototype.getStoreFieldName=function(e){var t,r=e.typename,n=e.fieldName,i=this.getFieldPolicy(r,n,!1),a=i&&i.keyFn;if(a&&r)for(var u={typename:r,fieldName:n,field:e.field||null,variables:e.variables},l=w(e);a;){var f=a(l,u);if((0,c.k)(f))a=y(f);else{t=f||n;break}}return(void 0===t&&(t=e.field?(0,o.vf)(e.field,e.variables):(0,o.PT)(n,w(e))),!1===t)?n:n===(0,s.E_)(t)?t:n+":"+t},e.prototype.readField=function(e,t){var r=e.from;if(r&&(e.field||e.fieldName)){if(void 0===e.typename){var n=t.store.getFieldValue(r,"__typename");n&&(e.typename=n)}var i=this.getStoreFieldName(e),a=(0,s.E_)(i),u=t.store.getFieldValue(r,i),c=this.getFieldPolicy(e.typename,a,!1),f=c&&c.read;if(f){var p=R(this,r,e,t,t.store.getStorage((0,o.Yk)(r)?r.__ref:r,i));return l.ab.withValue(this.cache,f,[u,p])}return u}},e.prototype.getReadFunction=function(e,t){var r=this.getFieldPolicy(e,t,!1);return r&&r.read},e.prototype.getMergeFunction=function(e,t,r){var n=this.getFieldPolicy(e,t,!1),i=n&&n.merge;return!i&&r&&(i=(n=this.getTypePolicy(r))&&n.merge),i},e.prototype.runMergeFunction=function(e,t,r,n,i){var o=r.field,a=r.typename,u=r.merge;return u===O?I(n.store)(e,t):u===_?t:(n.overwrite&&(e=void 0),u(e,t,R(this,void 0,{typename:a,fieldName:o.name.value,field:o,variables:n.variables},n,i||Object.create(null))))},e}();function R(e,t,r,n,i){var a=e.getStoreFieldName(r),u=(0,s.E_)(a),c=r.variables||n.variables,l=n.store,f=l.toReference,p=l.canRead;return{args:w(r),field:r.field||null,fieldName:u,storeFieldName:a,variables:c,isReference:o.Yk,toReference:f,storage:i,cache:e.cache,canRead:p,readField:function(){return e.readField(D(arguments,t,c),n)},mergeObjects:I(n.store)}}function D(e,t,r){var o,u=e[0],c=e[1],l=e.length;return"string"==typeof u?o={fieldName:u,from:l>1?c:t}:(o=(0,n.pi)({},u),s.RI.call(o,"from")||(o.from=t)),!1!==globalThis.__DEV__&&void 0===o.from&&!1!==globalThis.__DEV__&&i.kG.warn(5,(0,a.v)(Array.from(e))),void 0===o.variables&&(o.variables=r),o}function I(e){return function(t,r){if((0,c.k)(t)||(0,c.k)(r))throw(0,i._K)(6);if((0,u.s)(t)&&(0,u.s)(r)){var a=e.getFieldValue(t,"__typename"),l=e.getFieldValue(r,"__typename");if(a&&l&&a!==l)return r;if((0,o.Yk)(t)&&(0,s.j)(r))return e.merge(t.__ref,r),t;if((0,s.j)(t)&&(0,o.Yk)(r))return e.merge(t,r.__ref),r;if((0,s.j)(t)&&(0,s.j)(r))return(0,n.pi)((0,n.pi)({},t),r)}return r}}},38355:function(e,t,r){r.d(t,{QS:function(){return c},_v:function(){return s},ab:function(){return i},li:function(){return u}});var n=r(68385),i=new(r(19745)).g7,o=new WeakMap;function a(e){var t=o.get(e);return t||o.set(e,t={vars:new Set,dep:(0,n.dP)()}),t}function u(e){a(e).vars.forEach(function(t){return t.forgetCache(e)})}function s(e){a(e).vars.forEach(function(t){return t.attachCache(e)})}function c(e){var t=new Set,r=new Set,n=function(u){if(arguments.length>0){if(e!==u){e=u,t.forEach(function(e){a(e).dep.dirty(n),e.broadcastWatches&&e.broadcastWatches()});var s=Array.from(r);r.clear(),s.forEach(function(t){return t(e)})}}else{var c=i.getValue();c&&(o(c),a(c).dep(n))}return e};n.onNextChange=function(e){return r.add(e),function(){r.delete(e)}};var o=n.attachCache=function(e){return t.add(e),a(e).vars.add(n),n};return n.forgetCache=function(e){return t.delete(e)},n}},68804:function(e,t,r){r.r(t),r.d(t,{ApolloCache:function(){return eo.R},ApolloClient:function(){return en},ApolloError:function(){return E.cA},ApolloLink:function(){return o.i},Cache:function(){return ei.C},DocumentTransform:function(){return v.A},HttpLink:function(){return eh.HttpLink},InMemoryCache:function(){return ea.h},MissingFieldError:function(){return eu.y},NetworkStatus:function(){return R.Ie},Observable:function(){return O.y},ObservableQuery:function(){return Q},checkFetcher:function(){return eh.checkFetcher},concat:function(){return ep},createHttpLink:function(){return eh.createHttpLink},createSignalIfSupported:function(){return eh.createSignalIfSupported},defaultDataIdFromObject:function(){return es.uG},defaultPrinter:function(){return eh.defaultPrinter},disableExperimentalFragmentVariables:function(){return eb.J9},disableFragmentWarnings:function(){return eb._t},empty:function(){return ec},enableExperimentalFragmentVariables:function(){return eb.wO},execute:function(){return a},fallbackHttpConfig:function(){return eh.fallbackHttpConfig},from:function(){return el.D},fromError:function(){return ey.Q},fromPromise:function(){return ev},gql:function(){return eb.Ps},isApolloError:function(){return E.MS},isNetworkRequestSettled:function(){return R.Jp},isReference:function(){return w.Yk},makeReference:function(){return w.kQ},makeVar:function(){return U.QS},mergeOptions:function(){return et.J},parseAndCheckHttpResponse:function(){return eh.parseAndCheckHttpResponse},resetCaches:function(){return eb.HW},rewriteURIForGET:function(){return eh.rewriteURIForGET},selectHttpOptionsAndBody:function(){return eh.selectHttpOptionsAndBody},selectHttpOptionsAndBodyInternal:function(){return eh.selectHttpOptionsAndBodyInternal},selectURI:function(){return eh.selectURI},serializeFetchParameter:function(){return eh.serializeFetchParameter},setLogVerbosity:function(){return eg.setVerbosity},split:function(){return ef},throwServerError:function(){return em.P},toPromise:function(){return ed}});var n=r(5853),i=r(2276),o=r(24614),a=o.i.execute,u=r(66889),s=r(41906),c=r(36628),l=r(40373),f=r(30696),p=r(55484),h=r(56125),d=r(59394),v=r(56789),y=r(51149),m=r(92933),g=r(92086),b=r(36517),w=r(48338),k=r(23446),S=r(2232),O=r(69090),_=r(49801),E=r(77828),R=r(77473),D=r(85292),I=r(86626),x=r(19821),T=r(45963),C=r(80960);function P(e){return!!e.directives&&e.directives.some(F)}function F(e){return"nonreactive"===e.name.value}var A=Object.assign,j=Object.hasOwnProperty,Q=function(e){function t(t){var r=t.queryManager,i=t.queryInfo,o=t.options,a=e.call(this,function(e){try{var t=e._subscription._observer;t&&!t.error&&(t.error=M)}catch(e){}var r=!a.observers.size;a.observers.add(e);var n=a.last;return n&&n.error?e.error&&e.error(n.error):n&&n.result&&e.next&&e.next(n.result),r&&a.reobserve().catch(function(){}),function(){a.observers.delete(e)&&!a.observers.size&&a.tearDownQuery()}})||this;a.observers=new Set,a.subscriptions=new Set,a.queryInfo=i,a.queryManager=r,a.waitForOwnResult=V(o.fetchPolicy),a.isTornDown=!1;var u=r.defaultOptions.watchQuery,s=(void 0===u?{}:u).fetchPolicy,c=void 0===s?"cache-first":s,l=o.fetchPolicy,f=void 0===l?c:l,p=o.initialFetchPolicy,h=void 0===p?"standby"===f?c:f:p;a.options=(0,n.pi)((0,n.pi)({},o),{initialFetchPolicy:h,fetchPolicy:f}),a.queryId=i.queryId||r.generateQueryId();var d=(0,b.$H)(a.query);return a.queryName=d&&d.name&&d.name.value,a}return(0,n.ZT)(t,e),Object.defineProperty(t.prototype,"query",{get:function(){return this.lastQuery||this.options.query},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"variables",{get:function(){return this.options.variables},enumerable:!1,configurable:!0}),t.prototype.result=function(){var e=this;return new Promise(function(t,r){var n={next:function(r){t(r),e.observers.delete(n),e.observers.size||e.queryManager.removeQuery(e.queryId),setTimeout(function(){i.unsubscribe()},0)},error:r},i=e.subscribe(n)})},t.prototype.getCurrentResult=function(e){void 0===e&&(e=!0);var t=this.getLastResult(!0),r=this.queryInfo.networkStatus||t&&t.networkStatus||R.Ie.ready,i=(0,n.pi)((0,n.pi)({},t),{loading:(0,R.Oj)(r),networkStatus:r}),o=this.options.fetchPolicy,a=void 0===o?"cache-first":o;if(V(a)||this.queryManager.getDocumentInfo(this.query).hasForcedResolvers);else if(this.waitForOwnResult)this.queryInfo.updateWatch();else{var u=this.queryInfo.getDiff();(u.complete||this.options.returnPartialData)&&(i.data=u.result),(0,c.D)(i.data,{})&&(i.data=void 0),u.complete?(delete i.partial,u.complete&&i.networkStatus===R.Ie.loading&&("cache-first"===a||"cache-only"===a)&&(i.networkStatus=R.Ie.ready,i.loading=!1)):i.partial=!0,!1===globalThis.__DEV__||u.complete||this.options.partialRefetch||i.loading||i.data||i.error||N(u.missing)}return e&&this.updateLastResult(i),i},t.prototype.isDifferentFromLastResult=function(e,t){var r,i,o,a,u,s,l;return!this.last||(this.queryManager.getDocumentInfo(this.query).hasNonreactiveDirective?(r=this.query,i=this.last.result,o=this.variables,a=i.data,u=(0,n._T)(i,["data"]),s=e.data,l=(0,n._T)(e,["data"]),!((0,c.Z)(u,l)&&function e(t,r,n,i){if(r===n)return!0;var o=new Set;return t.selections.every(function(t){if(o.has(t)||(o.add(t),!(0,f.LZ)(t,i.variables)||P(t)))return!0;if((0,w.My)(t)){var a=(0,w.u2)(t),u=r&&r[a],s=n&&n[a],l=t.selectionSet;if(!l)return(0,c.Z)(u,s);var p=Array.isArray(u),h=Array.isArray(s);if(p!==h)return!1;if(p&&h){var d=u.length;if(s.length!==d)return!1;for(var v=0;v<d;++v)if(!e(l,u[v],s[v],i))return!1;return!0}return e(l,u,s,i)}var y=(0,C.hi)(t,i.fragmentMap);if(y)return!!P(y)||e(y.selectionSet,r,n,i)})}((0,b.p$)(r).selectionSet,a,s,{fragmentMap:(0,C.F)((0,b.kU)(r)),variables:o}))):!(0,c.D)(this.last.result,e))||t&&!(0,c.D)(this.last.variables,t)},t.prototype.getLast=function(e,t){var r=this.last;if(r&&r[e]&&(!t||(0,c.D)(r.variables,this.variables)))return r[e]},t.prototype.getLastResult=function(e){return this.getLast("result",e)},t.prototype.getLastError=function(e){return this.getLast("error",e)},t.prototype.resetLastResults=function(){delete this.last,this.isTornDown=!1},t.prototype.resetQueryStoreErrors=function(){this.queryManager.resetErrors(this.queryId)},t.prototype.refetch=function(e){var t,r={pollInterval:0},o=this.options.fetchPolicy;if("cache-and-network"===o?r.fetchPolicy=o:"no-cache"===o?r.fetchPolicy="no-cache":r.fetchPolicy="network-only",!1!==globalThis.__DEV__&&e&&j.call(e,"variables")){var a=(0,b.iW)(this.query),u=a.variableDefinitions;u&&u.some(function(e){return"variables"===e.variable.name.value})||!1===globalThis.__DEV__||i.kG.warn(18,e,(null===(t=a.name)||void 0===t?void 0:t.value)||a)}return e&&!(0,c.D)(this.options.variables,e)&&(r.variables=this.options.variables=(0,n.pi)((0,n.pi)({},this.options.variables),e)),this.queryInfo.resetLastWrite(),this.reobserve(r,R.Ie.refetch)},t.prototype.fetchMore=function(e){var t=this,r=(0,n.pi)((0,n.pi)({},e.query?e:(0,n.pi)((0,n.pi)((0,n.pi)((0,n.pi)({},this.options),{query:this.options.query}),e),{variables:(0,n.pi)((0,n.pi)({},this.options.variables),e.variables)})),{fetchPolicy:"no-cache"});r.query=this.transformDocument(r.query);var i=this.queryManager.generateQueryId();this.lastQuery=e.query?this.transformDocument(this.options.query):r.query;var o=this.queryInfo,a=o.networkStatus;o.networkStatus=R.Ie.fetchMore,r.notifyOnNetworkStatusChange&&this.observe();var u=new Set;return this.queryManager.fetchQuery(i,r,R.Ie.fetchMore).then(function(n){return t.queryManager.removeQuery(i),o.networkStatus===R.Ie.fetchMore&&(o.networkStatus=a),t.queryManager.cache.batch({update:function(i){var o=e.updateQuery;o?i.updateQuery({query:t.query,variables:t.variables,returnPartialData:!0,optimistic:!1},function(e){return o(e,{fetchMoreResult:n.data,variables:r.variables})}):i.writeQuery({query:r.query,variables:r.variables,data:n.data})},onWatchUpdated:function(e){u.add(e.query)}}),n}).finally(function(){u.has(t.query)||q(t)})},t.prototype.subscribeToMore=function(e){var t=this,r=this.queryManager.startGraphQLSubscription({query:e.document,variables:e.variables,context:e.context}).subscribe({next:function(r){var n=e.updateQuery;n&&t.updateQuery(function(e,t){return n(e,{subscriptionData:r,variables:t.variables})})},error:function(t){if(e.onError){e.onError(t);return}!1!==globalThis.__DEV__&&i.kG.error(19,t)}});return this.subscriptions.add(r),function(){t.subscriptions.delete(r)&&r.unsubscribe()}},t.prototype.setOptions=function(e){return this.reobserve(e)},t.prototype.silentSetOptions=function(e){var t=(0,D.o)(this.options,e||{});A(this.options,t)},t.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},R.Ie.setVariables):Promise.resolve()},t.prototype.updateQuery=function(e){var t=this.queryManager,r=e(t.cache.diff({query:this.options.query,variables:this.variables,returnPartialData:!0,optimistic:!1}).result,{variables:this.variables});r&&(t.cache.writeQuery({query:this.options.query,data:r,variables:this.variables}),t.broadcastQueries())},t.prototype.startPolling=function(e){this.options.pollInterval=e,this.updatePolling()},t.prototype.stopPolling=function(){this.options.pollInterval=0,this.updatePolling()},t.prototype.applyNextFetchPolicy=function(e,t){if(t.nextFetchPolicy){var r=t.fetchPolicy,n=void 0===r?"cache-first":r,i=t.initialFetchPolicy,o=void 0===i?n:i;"standby"===n||("function"==typeof t.nextFetchPolicy?t.fetchPolicy=t.nextFetchPolicy(n,{reason:e,options:t,observable:this,initialFetchPolicy:o}):"variables-changed"===e?t.fetchPolicy=o:t.fetchPolicy=t.nextFetchPolicy)}return t.fetchPolicy},t.prototype.fetch=function(e,t){return this.queryManager.setObservableQuery(this),this.queryManager.fetchConcastWithInfo(this.queryId,e,t)},t.prototype.updatePolling=function(){var e=this;if(!this.queryManager.ssrMode){var t=this.pollingInfo,r=this.options.pollInterval;if(!r){t&&(clearTimeout(t.timeout),delete this.pollingInfo);return}if(!t||t.interval!==r){(0,i.kG)(r,20),(t||(this.pollingInfo={})).interval=r;var n=function(){e.pollingInfo&&((0,R.Oj)(e.queryInfo.networkStatus)?o():e.reobserve({fetchPolicy:"no-cache"===e.options.initialFetchPolicy?"no-cache":"network-only"},R.Ie.poll).then(o,o))},o=function(){var t=e.pollingInfo;t&&(clearTimeout(t.timeout),t.timeout=setTimeout(n,t.interval))};o()}}},t.prototype.updateLastResult=function(e,t){void 0===t&&(t=this.variables);var r=this.getLastError();return r&&this.last&&!(0,c.D)(t,this.last.variables)&&(r=void 0),this.last=(0,n.pi)({result:this.queryManager.assumeImmutableResults?e:(0,I.X)(e),variables:t},r?{error:r}:null)},t.prototype.reobserveAsConcast=function(e,t){var r=this;this.isTornDown=!1;var i=t===R.Ie.refetch||t===R.Ie.fetchMore||t===R.Ie.poll,o=this.options.variables,a=this.options.fetchPolicy,u=(0,D.o)(this.options,e||{}),s=i?u:A(this.options,u),l=this.transformDocument(s.query);this.lastQuery=l,!i&&(this.updatePolling(),e&&e.variables&&!(0,c.D)(e.variables,o)&&"standby"!==s.fetchPolicy&&s.fetchPolicy===a&&(this.applyNextFetchPolicy("variables-changed",s),void 0===t&&(t=R.Ie.setVariables)));var f=l===s.query?s:(0,n.pi)((0,n.pi)({},s),{query:l});this.waitForOwnResult&&(this.waitForOwnResult=V(f.fetchPolicy));var p=function(){r.concast===v&&(r.waitForOwnResult=!1)},h=f.variables&&(0,n.pi)({},f.variables),d=this.fetch(f,t),v=d.concast,y=d.fromLink,m={next:function(e){p(),r.reportResult(e,h)},error:function(e){p(),r.reportError(e,h)}};return i||!y&&this.concast||(this.concast&&this.observer&&this.concast.removeObserver(this.observer),this.concast=v,this.observer=m),v.addObserver(m),v},t.prototype.reobserve=function(e,t){return this.reobserveAsConcast(e,t).promise},t.prototype.observe=function(){this.reportResult(this.getCurrentResult(!1),this.variables)},t.prototype.reportResult=function(e,t){var r=this.getLastError(),n=this.isDifferentFromLastResult(e,t);(r||!e.partial||this.options.returnPartialData)&&this.updateLastResult(e,t),(r||n)&&(0,x.p)(this.observers,"next",e)},t.prototype.reportError=function(e,t){var r=(0,n.pi)((0,n.pi)({},this.getLastResult()),{error:e,errors:e.graphQLErrors,networkStatus:R.Ie.error,loading:!1});this.updateLastResult(r,t),(0,x.p)(this.observers,"error",this.last.error=e)},t.prototype.hasObservers=function(){return this.observers.size>0},t.prototype.tearDownQuery=function(){this.isTornDown||(this.concast&&this.observer&&(this.concast.removeObserver(this.observer),delete this.concast,delete this.observer),this.stopPolling(),this.subscriptions.forEach(function(e){return e.unsubscribe()}),this.subscriptions.clear(),this.queryManager.stopQuery(this.queryId),this.observers.clear(),this.isTornDown=!0)},t.prototype.transformDocument=function(e){return this.queryManager.transform(e)},t}(O.y);function q(e){var t=e.options,r=t.fetchPolicy,n=t.nextFetchPolicy;return"cache-and-network"===r||"network-only"===r?e.reobserve({fetchPolicy:"cache-first",nextFetchPolicy:function(){return(this.nextFetchPolicy=n,"function"==typeof n)?n.apply(this,arguments):r}}):e.reobserve()}function M(e){!1!==globalThis.__DEV__&&i.kG.error(21,e.message,e.stack)}function N(e){!1!==globalThis.__DEV__&&e&&!1!==globalThis.__DEV__&&i.kG.debug(22,e)}function V(e){return"network-only"===e||"no-cache"===e||"standby"===e}(0,T.D)(Q);var L=r(11689),B=r(50499);function z(e){return e.kind===B.h.FIELD||e.kind===B.h.FRAGMENT_SPREAD||e.kind===B.h.INLINE_FRAGMENT}var G=r(71269),U=r(38355),W=function(){function e(e){var t=e.cache,r=e.client,n=e.resolvers,i=e.fragmentMatcher;this.selectionsToResolveCache=new WeakMap,this.cache=t,r&&(this.client=r),n&&this.addResolvers(n),i&&this.setFragmentMatcher(i)}return e.prototype.addResolvers=function(e){var t=this;this.resolvers=this.resolvers||{},Array.isArray(e)?e.forEach(function(e){t.resolvers=(0,G.Ee)(t.resolvers,e)}):this.resolvers=(0,G.Ee)(this.resolvers,e)},e.prototype.setResolvers=function(e){this.resolvers={},this.addResolvers(e)},e.prototype.getResolvers=function(){return this.resolvers||{}},e.prototype.runResolvers=function(e){var t=e.document,r=e.remoteResult,i=e.context,o=e.variables,a=e.onlyRunForcedResolvers,u=void 0!==a&&a;return(0,n.mG)(this,void 0,void 0,function(){return(0,n.Jh)(this,function(e){return t?[2,this.resolveDocument(t,r.data,i,o,this.fragmentMatcher,u).then(function(e){return(0,n.pi)((0,n.pi)({},r),{data:e.result})})]:[2,r]})})},e.prototype.setFragmentMatcher=function(e){this.fragmentMatcher=e},e.prototype.getFragmentMatcher=function(){return this.fragmentMatcher},e.prototype.clientQuery=function(e){return(0,f.FS)(["client"],e)&&this.resolvers?e:null},e.prototype.serverQuery=function(e){return(0,p.ob)(e)},e.prototype.prepareContext=function(e){var t=this.cache;return(0,n.pi)((0,n.pi)({},e),{cache:t,getCacheKey:function(e){return t.identify(e)}})},e.prototype.addExportedVariables=function(e,t,r){return void 0===t&&(t={}),void 0===r&&(r={}),(0,n.mG)(this,void 0,void 0,function(){return(0,n.Jh)(this,function(i){return e?[2,this.resolveDocument(e,this.buildRootValueFromCache(e,t)||{},this.prepareContext(r),t).then(function(e){return(0,n.pi)((0,n.pi)({},t),e.exportedVariables)})]:[2,(0,n.pi)({},t)]})})},e.prototype.shouldForceResolvers=function(e){var t=!1;return(0,L.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 L.$_}}}),t},e.prototype.buildRootValueFromCache=function(e,t){return this.cache.diff({query:(0,p.aL)(e),variables:t,returnPartialData:!0,optimistic:!1}).result},e.prototype.resolveDocument=function(e,t,r,i,o,a){return void 0===r&&(r={}),void 0===i&&(i={}),void 0===o&&(o=function(){return!0}),void 0===a&&(a=!1),(0,n.mG)(this,void 0,void 0,function(){var u,s,c,l,f,p,h,d,v,y;return(0,n.Jh)(this,function(m){return u=(0,b.p$)(e),s=(0,b.kU)(e),c=(0,C.F)(s),l=this.collectSelectionsToResolve(u,c),p=(f=u.operation)?f.charAt(0).toUpperCase()+f.slice(1):"Query",h=this,d=h.cache,v=h.client,y={fragmentMap:c,context:(0,n.pi)((0,n.pi)({},r),{cache:d,client:v}),variables:i,fragmentMatcher:o,defaultOperationType:p,exportedVariables:{},selectionsToResolve:l,onlyRunForcedResolvers:a},[2,this.resolveSelectionSet(u.selectionSet,!1,t,y).then(function(e){return{result:e,exportedVariables:y.exportedVariables}})]})})},e.prototype.resolveSelectionSet=function(e,t,r,o){return(0,n.mG)(this,void 0,void 0,function(){var a,u,s,c,l,p=this;return(0,n.Jh)(this,function(h){return a=o.fragmentMap,u=o.context,s=o.variables,c=[r],l=function(e){return(0,n.mG)(p,void 0,void 0,function(){var l,p;return(0,n.Jh)(this,function(n){return(t||o.selectionsToResolve.has(e))&&(0,f.LZ)(e,s)?(0,w.My)(e)?[2,this.resolveField(e,t,r,o).then(function(t){var r;void 0!==t&&c.push(((r={})[(0,w.u2)(e)]=t,r))})]:((0,w.Ao)(e)?l=e:(l=a[e.name.value],(0,i.kG)(l,16,e.name.value)),l&&l.typeCondition&&(p=l.typeCondition.name.value,o.fragmentMatcher(r,p,u)))?[2,this.resolveSelectionSet(l.selectionSet,t,r,o).then(function(e){c.push(e)})]:[2]:[2]})})},[2,Promise.all(e.selections.map(l)).then(function(){return(0,G.bw)(c)})]})})},e.prototype.resolveField=function(e,t,r,i){return(0,n.mG)(this,void 0,void 0,function(){var o,a,u,s,c,l,f,p,h,d=this;return(0,n.Jh)(this,function(n){return r?(o=i.variables,s=(a=e.name.value)!==(u=(0,w.u2)(e)),l=Promise.resolve(c=r[u]||r[a]),(!i.onlyRunForcedResolvers||this.shouldForceResolvers(e))&&(f=r.__typename||i.defaultOperationType,(p=this.resolvers&&this.resolvers[f])&&(h=p[s?a:u])&&(l=Promise.resolve(U.ab.withValue(this.cache,h,[r,(0,w.NC)(e,o),i.context,{field:e,fragmentMap:i.fragmentMap}])))),[2,l.then(function(r){if(void 0===r&&(r=c),e.directives&&e.directives.forEach(function(e){"export"===e.name.value&&e.arguments&&e.arguments.forEach(function(e){"as"===e.name.value&&"StringValue"===e.value.kind&&(i.exportedVariables[e.value.value]=r)})}),!e.selectionSet||null==r)return r;var n,o,a=null!==(o=null===(n=e.directives)||void 0===n?void 0:n.some(function(e){return"client"===e.name.value}))&&void 0!==o&&o;return Array.isArray(r)?d.resolveSubSelectedArray(e,t||a,r,i):e.selectionSet?d.resolveSelectionSet(e.selectionSet,t||a,r,i):void 0})]):[2,null]})})},e.prototype.resolveSubSelectedArray=function(e,t,r,n){var i=this;return Promise.all(r.map(function(r){return null===r?null:Array.isArray(r)?i.resolveSubSelectedArray(e,t,r,n):e.selectionSet?i.resolveSelectionSet(e.selectionSet,t,r,n):void 0}))},e.prototype.collectSelectionsToResolve=function(e,t){var r=function(e){return!Array.isArray(e)},n=this.selectionsToResolveCache;return function e(o){if(!n.has(o)){var a=new Set;n.set(o,a),(0,L.Vn)(o,{Directive:function(e,t,n,i,o){"client"===e.name.value&&o.forEach(function(e){r(e)&&z(e)&&a.add(e)})},FragmentSpread:function(n,o,u,s,c){var l=t[n.name.value];(0,i.kG)(l,17,n.name.value);var f=e(l);f.size>0&&(c.forEach(function(e){r(e)&&z(e)&&a.add(e)}),a.add(n),f.forEach(function(e){a.add(e)}))}})}return n.get(o)}(e)},e}(),H=new(d.mr?WeakMap:Map);function K(e,t){var r=e[t];"function"==typeof r&&(e[t]=function(){return H.set(e,(H.get(e)+1)%1e15),r.apply(this,arguments)})}function Y(e){e.notifyTimeout&&(clearTimeout(e.notifyTimeout),e.notifyTimeout=void 0)}var J=function(){function e(e,t){void 0===t&&(t=e.generateQueryId()),this.queryId=t,this.listeners=new Set,this.document=null,this.lastRequestId=1,this.subscriptions=new Set,this.stopped=!1,this.dirty=!1,this.observableQuery=null;var r=this.cache=e.cache;H.has(r)||(H.set(r,0),K(r,"evict"),K(r,"modify"),K(r,"reset"))}return e.prototype.init=function(e){var t=e.networkStatus||R.Ie.loading;return this.variables&&this.networkStatus!==R.Ie.loading&&!(0,c.D)(this.variables,e.variables)&&(t=R.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},e.prototype.reset=function(){Y(this),this.dirty=!1},e.prototype.getDiff=function(e){void 0===e&&(e=this.variables);var t=this.getDiffOptions(e);if(this.lastDiff&&(0,c.D)(t,this.lastDiff.options))return this.lastDiff.diff;this.updateWatch(this.variables=e);var r=this.observableQuery;if(r&&"no-cache"===r.options.fetchPolicy)return{complete:!1};var n=this.cache.diff(t);return this.updateLastDiff(n,t),n},e.prototype.updateLastDiff=function(e,t){this.lastDiff=e?{diff:e,options:t||this.getDiffOptions()}:void 0},e.prototype.getDiffOptions=function(e){var t;return void 0===e&&(e=this.variables),{query:this.document,variables:e,returnPartialData:!0,optimistic:!0,canonizeResults:null===(t=this.observableQuery)||void 0===t?void 0:t.options.canonizeResults}},e.prototype.setDiff=function(e){var t=this,r=this.lastDiff&&this.lastDiff.diff;this.updateLastDiff(e),this.dirty||(0,c.D)(r&&r.result,e&&e.result)||(this.dirty=!0,this.notifyTimeout||(this.notifyTimeout=setTimeout(function(){return t.notify()},0)))},e.prototype.setObservableQuery=function(e){var t=this;e!==this.observableQuery&&(this.oqListener&&this.listeners.delete(this.oqListener),this.observableQuery=e,e?(e.queryInfo=this,this.listeners.add(this.oqListener=function(){t.getDiff().fromOptimisticTransaction?e.observe():q(e)})):delete this.oqListener)},e.prototype.notify=function(){var e=this;Y(this),this.shouldNotify()&&this.listeners.forEach(function(t){return t(e)}),this.dirty=!1},e.prototype.shouldNotify=function(){if(!this.dirty||!this.listeners.size)return!1;if((0,R.Oj)(this.networkStatus)&&this.observableQuery){var e=this.observableQuery.options.fetchPolicy;if("cache-only"!==e&&"cache-and-network"!==e)return!1}return!0},e.prototype.stop=function(){if(!this.stopped){this.stopped=!0,this.reset(),this.cancel(),this.cancel=e.prototype.cancel,this.subscriptions.forEach(function(e){return e.unsubscribe()});var t=this.observableQuery;t&&t.stopPolling()}},e.prototype.cancel=function(){},e.prototype.updateWatch=function(e){var t=this;void 0===e&&(e=this.variables);var r=this.observableQuery;if(!r||"no-cache"!==r.options.fetchPolicy){var i=(0,n.pi)((0,n.pi)({},this.getDiffOptions(e)),{watcher:this,callback:function(e){return t.setDiff(e)}});this.lastWatch&&(0,c.D)(i,this.lastWatch)||(this.cancel(),this.cancel=this.cache.watch(this.lastWatch=i))}},e.prototype.resetLastWrite=function(){this.lastWrite=void 0},e.prototype.shouldWrite=function(e,t){var r=this.lastWrite;return!(r&&r.dmCount===H.get(this.cache)&&(0,c.D)(t,r.variables)&&(0,c.D)(e.data,r.result.data))},e.prototype.markResult=function(e,t,r,n){var i=this,o=new G.w0,a=(0,g.O)(e.errors)?e.errors.slice(0):[];if(this.reset(),"incremental"in e&&(0,g.O)(e.incremental)){var u=(0,l.mT)(this.getDiff().result,e);e.data=u}else if("hasNext"in e&&e.hasNext){var s=this.getDiff();e.data=o.merge(s.result,e.data)}this.graphQLErrors=a,"no-cache"===r.fetchPolicy?this.updateLastDiff({result:e.data,complete:!0},this.getDiffOptions(r.variables)):0!==n&&($(e,r.errorPolicy)?this.cache.performTransaction(function(o){if(i.shouldWrite(e,r.variables))o.writeQuery({query:t,data:e.data,variables:r.variables,overwrite:1===n}),i.lastWrite={result:e,variables:r.variables,dmCount:H.get(i.cache)};else if(i.lastDiff&&i.lastDiff.diff.complete){e.data=i.lastDiff.diff.result;return}var a=i.getDiffOptions(r.variables),u=o.diff(a);i.stopped||i.updateWatch(r.variables),i.updateLastDiff(u,a),u.complete&&(e.data=u.result)}):this.lastWrite=void 0)},e.prototype.markReady=function(){return this.networkError=null,this.networkStatus=R.Ie.ready},e.prototype.markError=function(e){return this.networkStatus=R.Ie.error,this.lastWrite=void 0,this.reset(),e.graphQLErrors&&(this.graphQLErrors=e.graphQLErrors),e.networkError&&(this.networkError=e.networkError),e},e}();function $(e,t){void 0===t&&(t="none");var r="ignore"===t||"all"===t,n=!(0,m.d)(e);return!n&&r&&e.data&&(n=!0),n}var X=r(37469),Z=Object.prototype.hasOwnProperty,ee=function(){function e(e){var t=e.cache,r=e.link,n=e.defaultOptions,i=e.documentTransform,o=e.queryDeduplication,a=e.onBroadcast,u=e.ssrMode,s=e.clientAwareness,c=e.localState,l=e.assumeImmutableResults,f=void 0===l?!!t.assumeImmutableResults:l,p=this;this.clientAwareness={},this.queries=new Map,this.fetchCancelFns=new Map,this.transformCache=new(d.mr?WeakMap:Map),this.queryIdCounter=1,this.requestIdCounter=1,this.mutationIdCounter=1,this.inFlightLinkObservables=new Map;var h=new v.A(function(e){return p.cache.transformDocument(e)},{cache:!1});this.cache=t,this.link=r,this.defaultOptions=n||Object.create(null),this.queryDeduplication=void 0!==o&&o,this.clientAwareness=void 0===s?{}:s,this.localState=c||new W({cache:t}),this.ssrMode=void 0!==u&&u,this.assumeImmutableResults=f,this.documentTransform=i?h.concat(i).concat(h):h,(this.onBroadcast=a)&&(this.mutationStore=Object.create(null))}return e.prototype.stop=function(){var e=this;this.queries.forEach(function(t,r){e.stopQueryNoBroadcast(r)}),this.cancelPendingFetches((0,i._K)(23))},e.prototype.cancelPendingFetches=function(e){this.fetchCancelFns.forEach(function(t){return t(e)}),this.fetchCancelFns.clear()},e.prototype.mutate=function(e){var t,r,o=e.mutation,a=e.variables,u=e.optimisticResponse,s=e.updateQueries,c=e.refetchQueries,l=void 0===c?[]:c,f=e.awaitRefetchQueries,p=void 0!==f&&f,h=e.update,d=e.onQueryUpdated,v=e.fetchPolicy,g=void 0===v?(null===(t=this.defaultOptions.mutate)||void 0===t?void 0:t.fetchPolicy)||"network-only":v,b=e.errorPolicy,w=void 0===b?(null===(r=this.defaultOptions.mutate)||void 0===r?void 0:r.errorPolicy)||"none":b,k=e.keepRootFields,S=e.context;return(0,n.mG)(this,void 0,void 0,function(){var e,t,r,c;return(0,n.Jh)(this,function(f){switch(f.label){case 0:if((0,i.kG)(o,24),(0,i.kG)("network-only"===g||"no-cache"===g,25),e=this.generateMutationId(),o=this.cache.transformForLink(this.transform(o)),t=this.getDocumentInfo(o).hasClientExports,a=this.getVariables(o,a),!t)return[3,2];return[4,this.localState.addExportedVariables(o,a,S)];case 1:a=f.sent(),f.label=2;case 2:return r=this.mutationStore&&(this.mutationStore[e]={mutation:o,variables:a,loading:!0,error:null}),u&&this.markMutationOptimistic(u,{mutationId:e,document:o,variables:a,fetchPolicy:g,errorPolicy:w,context:S,updateQueries:s,update:h,keepRootFields:k}),this.broadcastQueries(),c=this,[2,new Promise(function(t,i){return(0,y.s)(c.getObservableFromLink(o,(0,n.pi)((0,n.pi)({},S),{optimisticResponse:u}),a,!1),function(t){if((0,m.d)(t)&&"none"===w)throw new E.cA({graphQLErrors:(0,m.K)(t)});r&&(r.loading=!1,r.error=null);var i=(0,n.pi)({},t);return"function"==typeof l&&(l=l(i)),"ignore"===w&&(0,m.d)(i)&&delete i.errors,c.markMutationResult({mutationId:e,result:i,document:o,variables:a,fetchPolicy:g,errorPolicy:w,context:S,update:h,updateQueries:s,awaitRefetchQueries:p,refetchQueries:l,removeOptimistic:u?e:void 0,onQueryUpdated:d,keepRootFields:k})}).subscribe({next:function(e){c.broadcastQueries(),"hasNext"in e&&!1!==e.hasNext||t(e)},error:function(t){r&&(r.loading=!1,r.error=t),u&&c.cache.removeOptimistic(e),c.broadcastQueries(),i(t instanceof E.cA?t:new E.cA({networkError:t}))}})})]}})})},e.prototype.markMutationResult=function(e,t){var r=this;void 0===t&&(t=this.cache);var i=e.result,o=[],a="no-cache"===e.fetchPolicy;if(!a&&$(i,e.errorPolicy)){if((0,l.GG)(i)||o.push({result:i.data,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables}),(0,l.GG)(i)&&(0,g.O)(i.incremental)){var u=t.diff({id:"ROOT_MUTATION",query:this.getDocumentInfo(e.document).asQuery,variables:e.variables,optimistic:!1,returnPartialData:!0}),s=void 0;u.result&&(s=(0,l.mT)(u.result,i)),void 0!==s&&(i.data=s,o.push({result:s,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables}))}var c=e.updateQueries;c&&this.queries.forEach(function(e,n){var a=e.observableQuery,u=a&&a.queryName;if(u&&Z.call(c,u)){var s=c[u],l=r.queries.get(n),f=l.document,p=l.variables,h=t.diff({query:f,variables:p,returnPartialData:!0,optimistic:!1}),d=h.result;if(h.complete&&d){var v=s(d,{mutationResult:i,queryName:f&&(0,b.rY)(f)||void 0,queryVariables:p});v&&o.push({result:v,dataId:"ROOT_QUERY",query:f,variables:p})}}})}if(o.length>0||e.refetchQueries||e.update||e.onQueryUpdated||e.removeOptimistic){var f=[];if(this.refetchQueries({updateCache:function(t){a||o.forEach(function(e){return t.write(e)});var u=e.update,s=!(0,l.M0)(i)||(0,l.GG)(i)&&!i.hasNext;if(u){if(!a){var c=t.diff({id:"ROOT_MUTATION",query:r.getDocumentInfo(e.document).asQuery,variables:e.variables,optimistic:!1,returnPartialData:!0});c.complete&&("incremental"in(i=(0,n.pi)((0,n.pi)({},i),{data:c.result}))&&delete i.incremental,"hasNext"in i&&delete i.hasNext)}s&&u(t,i,{context:e.context,variables:e.variables})}a||e.keepRootFields||!s||t.modify({id:"ROOT_MUTATION",fields:function(e,t){var r=t.fieldName,n=t.DELETE;return"__typename"===r?e:n}})},include:e.refetchQueries,optimistic:!1,removeOptimistic:e.removeOptimistic,onQueryUpdated:e.onQueryUpdated||null}).forEach(function(e){return f.push(e)}),e.awaitRefetchQueries||e.onQueryUpdated)return Promise.all(f).then(function(){return i})}return Promise.resolve(i)},e.prototype.markMutationOptimistic=function(e,t){var r=this,o="function"==typeof e?e(t.variables):e;return this.cache.recordOptimisticTransaction(function(e){try{r.markMutationResult((0,n.pi)((0,n.pi)({},t),{result:{data:o}}),e)}catch(e){!1!==globalThis.__DEV__&&i.kG.error(e)}},t.mutationId)},e.prototype.fetchQuery=function(e,t,r){return this.fetchConcastWithInfo(e,t,r).concast.promise},e.prototype.getQueryStore=function(){var e=Object.create(null);return this.queries.forEach(function(t,r){e[r]={variables:t.variables,networkStatus:t.networkStatus,networkError:t.networkError,graphQLErrors:t.graphQLErrors}}),e},e.prototype.resetErrors=function(e){var t=this.queries.get(e);t&&(t.networkError=void 0,t.graphQLErrors=[])},e.prototype.transform=function(e){return this.documentTransform.transformDocument(e)},e.prototype.getDocumentInfo=function(e){var t=this.transformCache;if(!t.has(e)){var r={hasClientExports:(0,f.mj)(e),hasForcedResolvers:this.localState.shouldForceResolvers(e),hasNonreactiveDirective:(0,f.FS)(["nonreactive"],e),clientQuery:this.localState.clientQuery(e),serverQuery:(0,p.bi)([{name:"client",remove:!0},{name:"connection"},{name:"nonreactive"}],e),defaultVars:(0,b.O4)((0,b.$H)(e)),asQuery:(0,n.pi)((0,n.pi)({},e),{definitions:e.definitions.map(function(e){return"OperationDefinition"===e.kind&&"query"!==e.operation?(0,n.pi)((0,n.pi)({},e),{operation:"query"}):e})})};t.set(e,r)}return t.get(e)},e.prototype.getVariables=function(e,t){return(0,n.pi)((0,n.pi)({},this.getDocumentInfo(e).defaultVars),t)},e.prototype.watchQuery=function(e){var t=this.transform(e.query);void 0===(e=(0,n.pi)((0,n.pi)({},e),{variables:this.getVariables(t,e.variables)})).notifyOnNetworkStatusChange&&(e.notifyOnNetworkStatusChange=!1);var r=new J(this),i=new Q({queryManager:this,queryInfo:r,options:e});return i.lastQuery=t,this.queries.set(i.queryId,r),r.init({document:t,observableQuery:i,variables:i.variables}),i},e.prototype.query=function(e,t){var r=this;return void 0===t&&(t=this.generateQueryId()),(0,i.kG)(e.query,26),(0,i.kG)("Document"===e.query.kind,27),(0,i.kG)(!e.returnPartialData,28),(0,i.kG)(!e.pollInterval,29),this.fetchQuery(t,(0,n.pi)((0,n.pi)({},e),{query:this.transform(e.query)})).finally(function(){return r.stopQuery(t)})},e.prototype.generateQueryId=function(){return String(this.queryIdCounter++)},e.prototype.generateRequestId=function(){return this.requestIdCounter++},e.prototype.generateMutationId=function(){return String(this.mutationIdCounter++)},e.prototype.stopQueryInStore=function(e){this.stopQueryInStoreNoBroadcast(e),this.broadcastQueries()},e.prototype.stopQueryInStoreNoBroadcast=function(e){var t=this.queries.get(e);t&&t.stop()},e.prototype.clearStore=function(e){return void 0===e&&(e={discardWatches:!0}),this.cancelPendingFetches((0,i._K)(30)),this.queries.forEach(function(e){e.observableQuery?e.networkStatus=R.Ie.loading:e.stop()}),this.mutationStore&&(this.mutationStore=Object.create(null)),this.cache.reset(e)},e.prototype.getObservableQueries=function(e){var t=this;void 0===e&&(e="active");var r=new Map,o=new Map,a=new Set;return Array.isArray(e)&&e.forEach(function(e){"string"==typeof e?o.set(e,!1):(0,w.JW)(e)?o.set(t.transform(e),!1):(0,k.s)(e)&&e.query&&a.add(e)}),this.queries.forEach(function(t,n){var i=t.observableQuery,a=t.document;if(i){if("all"===e){r.set(n,i);return}var u=i.queryName;if("standby"===i.options.fetchPolicy||"active"===e&&!i.hasObservers())return;("active"===e||u&&o.has(u)||a&&o.has(a))&&(r.set(n,i),u&&o.set(u,!0),a&&o.set(a,!0))}}),a.size&&a.forEach(function(e){var o=(0,S.X)("legacyOneTimeQuery"),a=t.getQuery(o).init({document:e.query,variables:e.variables}),u=new Q({queryManager:t,queryInfo:a,options:(0,n.pi)((0,n.pi)({},e),{fetchPolicy:"network-only"})});(0,i.kG)(u.queryId===o),a.setObservableQuery(u),r.set(o,u)}),!1!==globalThis.__DEV__&&o.size&&o.forEach(function(e,t){e||!1===globalThis.__DEV__||i.kG.warn("string"==typeof t?31:32,t)}),r},e.prototype.reFetchObservableQueries=function(e){var t=this;void 0===e&&(e=!1);var r=[];return this.getObservableQueries(e?"all":"active").forEach(function(n,i){var o=n.options.fetchPolicy;n.resetLastResults(),(e||"standby"!==o&&"cache-only"!==o)&&r.push(n.refetch()),t.getQuery(i).setDiff(null)}),this.broadcastQueries(),Promise.all(r)},e.prototype.setObservableQuery=function(e){this.getQuery(e.queryId).setObservableQuery(e)},e.prototype.startGraphQLSubscription=function(e){var t=this,r=e.query,n=e.fetchPolicy,i=e.errorPolicy,o=e.variables,a=e.context,u=void 0===a?{}:a;r=this.transform(r),o=this.getVariables(r,o);var s=function(e){return t.getObservableFromLink(r,u,e).map(function(o){"no-cache"!==n&&($(o,i)&&t.cache.write({query:r,result:o.data,dataId:"ROOT_SUBSCRIPTION",variables:e}),t.broadcastQueries());var a=(0,m.d)(o),u=(0,E.ls)(o);if(a||u){var s={};throw a&&(s.graphQLErrors=o.errors),u&&(s.protocolErrors=o.extensions[E.YG]),new E.cA(s)}return o})};if(this.getDocumentInfo(r).hasClientExports){var c=this.localState.addExportedVariables(r,o,u).then(s);return new O.y(function(e){var t=null;return c.then(function(r){return t=r.subscribe(e)},e.error),function(){return t&&t.unsubscribe()}})}return s(o)},e.prototype.stopQuery=function(e){this.stopQueryNoBroadcast(e),this.broadcastQueries()},e.prototype.stopQueryNoBroadcast=function(e){this.stopQueryInStoreNoBroadcast(e),this.removeQuery(e)},e.prototype.removeQuery=function(e){this.fetchCancelFns.delete(e),this.queries.has(e)&&(this.getQuery(e).stop(),this.queries.delete(e))},e.prototype.broadcastQueries=function(){this.onBroadcast&&this.onBroadcast(),this.queries.forEach(function(e){return e.notify()})},e.prototype.getLocalState=function(){return this.localState},e.prototype.getObservableFromLink=function(e,t,r,i){var o,u,s=this;void 0===i&&(i=null!==(o=null==t?void 0:t.queryDeduplication)&&void 0!==o?o:this.queryDeduplication);var c=this.getDocumentInfo(e),l=c.serverQuery,f=c.clientQuery;if(l){var p=this.inFlightLinkObservables,d=this.link,v={query:l,variables:r,operationName:(0,b.rY)(l)||void 0,context:this.prepareContext((0,n.pi)((0,n.pi)({},t),{forceFetch:!i}))};if(t=v.context,i){var m=(0,X.S)(l),g=p.get(m)||new Map;p.set(m,g);var w=(0,h.B)(r);if(!(u=g.get(w))){var k=new _.X([a(d,v)]);g.set(w,u=k),k.beforeNext(function(){g.delete(w)&&g.size<1&&p.delete(m)})}}else u=new _.X([a(d,v)])}else u=new _.X([O.y.of({data:{}})]),t=this.prepareContext(t);return f&&(u=(0,y.s)(u,function(e){return s.localState.runResolvers({document:f,remoteResult:e,context:t,variables:r})})),u},e.prototype.getResultsFromLink=function(e,t,r){var n=e.lastRequestId=this.generateRequestId(),i=this.cache.transformForLink(r.query);return(0,y.s)(this.getObservableFromLink(i,r.context,r.variables),function(o){var a=(0,m.K)(o),u=a.length>0;if(n>=e.lastRequestId){if(u&&"none"===r.errorPolicy)throw e.markError(new E.cA({graphQLErrors:a}));e.markResult(o,i,r,t),e.markReady()}var s={data:o.data,loading:!1,networkStatus:R.Ie.ready};return u&&"ignore"!==r.errorPolicy&&(s.errors=a,s.networkStatus=R.Ie.error),s},function(t){var r=(0,E.MS)(t)?t:new E.cA({networkError:t});throw n>=e.lastRequestId&&e.markError(r),r})},e.prototype.fetchConcastWithInfo=function(e,t,r){var n,i,o=this;void 0===r&&(r=R.Ie.loading);var a=t.query,u=this.getVariables(a,t.variables),s=this.getQuery(e),c=this.defaultOptions.watchQuery,l=t.fetchPolicy,f=void 0===l?c&&c.fetchPolicy||"cache-first":l,p=t.errorPolicy,h=void 0===p?c&&c.errorPolicy||"none":p,d=t.returnPartialData,v=t.notifyOnNetworkStatusChange,y=t.context,m=Object.assign({},t,{query:a,variables:u,fetchPolicy:f,errorPolicy:h,returnPartialData:void 0!==d&&d,notifyOnNetworkStatusChange:void 0!==v&&v,context:void 0===y?{}:y}),g=function(e){m.variables=e;var n=o.fetchQueryByPolicy(s,m,r);return"standby"!==m.fetchPolicy&&n.sources.length>0&&s.observableQuery&&s.observableQuery.applyNextFetchPolicy("after-fetch",t),n},b=function(){return o.fetchCancelFns.delete(e)};if(this.fetchCancelFns.set(e,function(e){b(),setTimeout(function(){return n.cancel(e)})}),this.getDocumentInfo(m.query).hasClientExports)n=new _.X(this.localState.addExportedVariables(m.query,m.variables,m.context).then(g).then(function(e){return e.sources})),i=!0;else{var w=g(m.variables);i=w.fromLink,n=new _.X(w.sources)}return n.promise.then(b,b),{concast:n,fromLink:i}},e.prototype.refetchQueries=function(e){var t=this,r=e.updateCache,n=e.include,i=e.optimistic,o=void 0!==i&&i,a=e.removeOptimistic,u=void 0===a?o?(0,S.X)("refetchQueries"):void 0:a,s=e.onQueryUpdated,c=new Map;n&&this.getObservableQueries(n).forEach(function(e,r){c.set(r,{oq:e,lastDiff:t.getQuery(r).getDiff()})});var l=new Map;return r&&this.cache.batch({update:r,optimistic:o&&u||!1,removeOptimistic:u,onWatchUpdated:function(e,t,r){var n=e.watcher instanceof J&&e.watcher.observableQuery;if(n){if(s){c.delete(n.queryId);var i=s(n,t,r);return!0===i&&(i=n.refetch()),!1!==i&&l.set(n,i),i}null!==s&&c.set(n.queryId,{oq:n,lastDiff:r,diff:t})}}}),c.size&&c.forEach(function(e,r){var n,i=e.oq,o=e.lastDiff,a=e.diff;if(s){if(!a){var u=i.queryInfo;u.reset(),a=u.getDiff()}n=s(i,a,o)}s&&!0!==n||(n=i.refetch()),!1!==n&&l.set(i,n),r.indexOf("legacyOneTimeQuery")>=0&&t.stopQueryNoBroadcast(r)}),u&&this.cache.removeOptimistic(u),l},e.prototype.fetchQueryByPolicy=function(e,t,r){var i=this,o=t.query,a=t.variables,u=t.fetchPolicy,s=t.refetchWritePolicy,l=t.errorPolicy,f=t.returnPartialData,p=t.context,h=t.notifyOnNetworkStatusChange,d=e.networkStatus;e.init({document:o,variables:a,networkStatus:r});var v=function(){return e.getDiff(a)},y=function(t,r){void 0===r&&(r=e.networkStatus||R.Ie.loading);var u=t.result;!1===globalThis.__DEV__||f||(0,c.D)(u,{})||N(t.missing);var s=function(e){return O.y.of((0,n.pi)({data:e,loading:(0,R.Oj)(r),networkStatus:r},t.complete?null:{partial:!0}))};return u&&i.getDocumentInfo(o).hasForcedResolvers?i.localState.runResolvers({document:o,remoteResult:{data:u},context:p,variables:a,onlyRunForcedResolvers:!0}).then(function(e){return s(e.data||void 0)}):"none"===l&&r===R.Ie.refetch&&Array.isArray(t.missing)?s(void 0):s(u)},m="no-cache"===u?0:r===R.Ie.refetch&&"merge"!==s?1:2,g=function(){return i.getResultsFromLink(e,m,{query:o,variables:a,context:p,fetchPolicy:u,errorPolicy:l})},b=h&&"number"==typeof d&&d!==r&&(0,R.Oj)(r);switch(u){default:case"cache-first":var w=v();if(w.complete)return{fromLink:!1,sources:[y(w,e.markReady())]};if(f||b)return{fromLink:!0,sources:[y(w),g()]};return{fromLink:!0,sources:[g()]};case"cache-and-network":var w=v();if(w.complete||f||b)return{fromLink:!0,sources:[y(w),g()]};return{fromLink:!0,sources:[g()]};case"cache-only":return{fromLink:!1,sources:[y(v(),e.markReady())]};case"network-only":if(b)return{fromLink:!0,sources:[y(v()),g()]};return{fromLink:!0,sources:[g()]};case"no-cache":if(b)return{fromLink:!0,sources:[y(e.getDiff()),g()]};return{fromLink:!0,sources:[g()]};case"standby":return{fromLink:!1,sources:[]}}},e.prototype.getQuery=function(e){return e&&!this.queries.has(e)&&this.queries.set(e,new J(this,e)),this.queries.get(e)},e.prototype.prepareContext=function(e){void 0===e&&(e={});var t=this.localState.prepareContext(e);return(0,n.pi)((0,n.pi)({},t),{clientAwareness:this.clientAwareness})},e}(),et=r(49466),er=!1,en=function(){function e(e){var t=this;if(this.resetStoreCallbacks=[],this.clearStoreCallbacks=[],!e.cache)throw(0,i._K)(13);var r=e.uri,n=e.credentials,a=e.headers,c=e.cache,l=e.documentTransform,f=e.ssrMode,p=void 0!==f&&f,h=e.ssrForceFetchDelay,d=void 0===h?0:h,v=e.connectToDevTools,y=void 0===v?"object"==typeof window&&!window.__APOLLO_CLIENT__&&!1!==globalThis.__DEV__:v,m=e.queryDeduplication,g=void 0===m||m,b=e.defaultOptions,w=e.assumeImmutableResults,k=void 0===w?c.assumeImmutableResults:w,S=e.resolvers,O=e.typeDefs,_=e.fragmentMatcher,E=e.name,R=e.version,D=e.link;if(D||(D=r?new s.u({uri:r,credentials:n,headers:a}):o.i.empty()),this.link=D,this.cache=c,this.disableNetworkFetches=p||d>0,this.queryDeduplication=g,this.defaultOptions=b||Object.create(null),this.typeDefs=O,d&&setTimeout(function(){return t.disableNetworkFetches=!1},d),this.watchQuery=this.watchQuery.bind(this),this.query=this.query.bind(this),this.mutate=this.mutate.bind(this),this.resetStore=this.resetStore.bind(this),this.reFetchObservableQueries=this.reFetchObservableQueries.bind(this),y&&"object"==typeof window&&(window.__APOLLO_CLIENT__=this),!er&&y&&!1!==globalThis.__DEV__&&(er=!0,"undefined"!=typeof window&&window.document&&window.top===window.self&&!window.__APOLLO_DEVTOOLS_GLOBAL_HOOK__)){var I=window.navigator,x=I&&I.userAgent,T=void 0;"string"==typeof x&&(x.indexOf("Chrome/")>-1?T="https://chrome.google.com/webstore/detail/apollo-client-developer-t/jdkknkkbebbapilgoeccciglkfbmbnfm":x.indexOf("Firefox/")>-1&&(T="https://addons.mozilla.org/en-US/firefox/addon/apollo-developer-tools/")),T&&!1!==globalThis.__DEV__&&i.kG.log("Download the Apollo DevTools for a better development experience: %s",T)}this.version=u.i,this.localState=new W({cache:c,client:this,resolvers:S,fragmentMatcher:_}),this.queryManager=new ee({cache:this.cache,link:this.link,defaultOptions:this.defaultOptions,documentTransform:l,queryDeduplication:g,ssrMode:p,clientAwareness:{name:E,version:R},localState:this.localState,assumeImmutableResults:k,onBroadcast:y?function(){t.devToolsHookCb&&t.devToolsHookCb({action:{},state:{queries:t.queryManager.getQueryStore(),mutations:t.queryManager.mutationStore||{}},dataWithOptimisticResults:t.cache.extract(!0)})}:void 0})}return Object.defineProperty(e.prototype,"documentTransform",{get:function(){return this.queryManager.documentTransform},enumerable:!1,configurable:!0}),e.prototype.stop=function(){this.queryManager.stop()},e.prototype.watchQuery=function(e){return this.defaultOptions.watchQuery&&(e=(0,et.J)(this.defaultOptions.watchQuery,e)),this.disableNetworkFetches&&("network-only"===e.fetchPolicy||"cache-and-network"===e.fetchPolicy)&&(e=(0,n.pi)((0,n.pi)({},e),{fetchPolicy:"cache-first"})),this.queryManager.watchQuery(e)},e.prototype.query=function(e){return this.defaultOptions.query&&(e=(0,et.J)(this.defaultOptions.query,e)),(0,i.kG)("cache-and-network"!==e.fetchPolicy,14),this.disableNetworkFetches&&"network-only"===e.fetchPolicy&&(e=(0,n.pi)((0,n.pi)({},e),{fetchPolicy:"cache-first"})),this.queryManager.query(e)},e.prototype.mutate=function(e){return this.defaultOptions.mutate&&(e=(0,et.J)(this.defaultOptions.mutate,e)),this.queryManager.mutate(e)},e.prototype.subscribe=function(e){return this.queryManager.startGraphQLSubscription(e)},e.prototype.readQuery=function(e,t){return void 0===t&&(t=!1),this.cache.readQuery(e,t)},e.prototype.readFragment=function(e,t){return void 0===t&&(t=!1),this.cache.readFragment(e,t)},e.prototype.writeQuery=function(e){var t=this.cache.writeQuery(e);return!1!==e.broadcast&&this.queryManager.broadcastQueries(),t},e.prototype.writeFragment=function(e){var t=this.cache.writeFragment(e);return!1!==e.broadcast&&this.queryManager.broadcastQueries(),t},e.prototype.__actionHookForDevTools=function(e){this.devToolsHookCb=e},e.prototype.__requestRaw=function(e){return a(this.link,e)},e.prototype.resetStore=function(){var e=this;return Promise.resolve().then(function(){return e.queryManager.clearStore({discardWatches:!1})}).then(function(){return Promise.all(e.resetStoreCallbacks.map(function(e){return e()}))}).then(function(){return e.reFetchObservableQueries()})},e.prototype.clearStore=function(){var e=this;return Promise.resolve().then(function(){return e.queryManager.clearStore({discardWatches:!0})}).then(function(){return Promise.all(e.clearStoreCallbacks.map(function(e){return e()}))})},e.prototype.onResetStore=function(e){var t=this;return this.resetStoreCallbacks.push(e),function(){t.resetStoreCallbacks=t.resetStoreCallbacks.filter(function(t){return t!==e})}},e.prototype.onClearStore=function(e){var t=this;return this.clearStoreCallbacks.push(e),function(){t.clearStoreCallbacks=t.clearStoreCallbacks.filter(function(t){return t!==e})}},e.prototype.reFetchObservableQueries=function(e){return this.queryManager.reFetchObservableQueries(e)},e.prototype.refetchQueries=function(e){var t=this.queryManager.refetchQueries(e),r=[],n=[];t.forEach(function(e,t){r.push(t),n.push(e)});var o=Promise.all(n);return o.queries=r,o.results=n,o.catch(function(e){!1!==globalThis.__DEV__&&i.kG.debug(15,e)}),o},e.prototype.getObservableQueries=function(e){return void 0===e&&(e="active"),this.queryManager.getObservableQueries(e)},e.prototype.extract=function(e){return this.cache.extract(e)},e.prototype.restore=function(e){return this.cache.restore(e)},e.prototype.addResolvers=function(e){this.localState.addResolvers(e)},e.prototype.setResolvers=function(e){this.localState.setResolvers(e)},e.prototype.getResolvers=function(){return this.localState.getResolvers()},e.prototype.setLocalStateFragmentMatcher=function(e){this.localState.setFragmentMatcher(e)},e.prototype.setLink=function(e){this.link=this.queryManager.link=e},e}(),ei=r(97245),eo=r(445),ea=r(17119),eu=r(99587),es=r(83598),ec=o.i.empty,el=r(58759),ef=o.i.split,ep=o.i.concat,eh=r(96919);function ed(e){var t=!1;return new Promise(function(r,n){e.subscribe({next:function(e){t?!1!==globalThis.__DEV__&&i.kG.warn(40):(t=!0,r(e))},error:n})})}function ev(e){return new O.y(function(t){e.then(function(e){t.next(e),t.complete()}).catch(t.error.bind(t))})}var ey=r(70058),em=r(4897),eg=r(4044),eb=r(2559);(0,eg.setVerbosity)(!1!==globalThis.__DEV__?"log":"silent")},12304:function(e,t,r){r.r(t),r.d(t,{ApolloCache:function(){return n.ApolloCache},ApolloClient:function(){return n.ApolloClient},ApolloConsumer:function(){return c},ApolloError:function(){return n.ApolloError},ApolloLink:function(){return n.ApolloLink},ApolloProvider:function(){return s},Cache:function(){return n.Cache},DocumentTransform:function(){return n.DocumentTransform},DocumentType:function(){return v.n_},HttpLink:function(){return n.HttpLink},InMemoryCache:function(){return n.InMemoryCache},MissingFieldError:function(){return n.MissingFieldError},NetworkStatus:function(){return n.NetworkStatus},Observable:function(){return n.Observable},ObservableQuery:function(){return n.ObservableQuery},SuspenseCache:function(){return R},checkFetcher:function(){return n.checkFetcher},concat:function(){return n.concat},createHttpLink:function(){return n.createHttpLink},createSignalIfSupported:function(){return n.createSignalIfSupported},defaultDataIdFromObject:function(){return n.defaultDataIdFromObject},defaultPrinter:function(){return n.defaultPrinter},disableExperimentalFragmentVariables:function(){return n.disableExperimentalFragmentVariables},disableFragmentWarnings:function(){return n.disableFragmentWarnings},empty:function(){return n.empty},enableExperimentalFragmentVariables:function(){return n.enableExperimentalFragmentVariables},execute:function(){return n.execute},fallbackHttpConfig:function(){return n.fallbackHttpConfig},from:function(){return n.from},fromError:function(){return n.fromError},fromPromise:function(){return n.fromPromise},getApolloContext:function(){return u.K},gql:function(){return n.gql},isApolloError:function(){return n.isApolloError},isNetworkRequestSettled:function(){return n.isNetworkRequestSettled},isReference:function(){return n.isReference},makeReference:function(){return n.makeReference},makeVar:function(){return n.makeVar},mergeOptions:function(){return n.mergeOptions},operationName:function(){return v.mw},parseAndCheckHttpResponse:function(){return n.parseAndCheckHttpResponse},parser:function(){return v.E2},resetApolloContext:function(){return u.Z},resetCaches:function(){return n.resetCaches},rewriteURIForGET:function(){return n.rewriteURIForGET},selectHttpOptionsAndBody:function(){return n.selectHttpOptionsAndBody},selectHttpOptionsAndBodyInternal:function(){return n.selectHttpOptionsAndBodyInternal},selectURI:function(){return n.selectURI},serializeFetchParameter:function(){return n.serializeFetchParameter},setLogVerbosity:function(){return n.setLogVerbosity},skipToken:function(){return E.C},split:function(){return n.split},throwServerError:function(){return n.throwServerError},toPromise:function(){return n.toPromise},useApolloClient:function(){return l.x},useBackgroundQuery:function(){return O.u},useFragment:function(){return w},useLazyQuery:function(){return f.t},useMutation:function(){return p.D},useQuery:function(){return h.a},useReactiveVar:function(){return m},useReadQuery:function(){return _.a},useSubscription:function(){return y},useSuspenseQuery:function(){return S.kJ}});var n=r(68804),i=r(2276),o=r(5853),a=r(2265),u=r(91028),s=function(e){var t=e.client,r=e.children,n=(0,u.K)(),s=a.useContext(n),c=a.useMemo(function(){return(0,o.pi)((0,o.pi)({},s),{client:t||s.client})},[s,t]);return(0,i.kG)(c.client,44),a.createElement(n.Provider,{value:c},r)},c=function(e){var t=(0,u.K)();return a.createElement(t.Consumer,null,function(t){return(0,i.kG)(t&&t.client,42),e.children(t.client)})},l=r(63251),f=r(5298),p=r(88972),h=r(75500),d=r(36628),v=r(59058);function y(e,t){var r=a.useRef(!1),n=(0,l.x)(null==t?void 0:t.client);(0,v.Vp)(e,v.n_.Subscription);var o=a.useState({loading:!(null==t?void 0:t.skip),error:void 0,data:void 0,variables:null==t?void 0:t.variables}),u=o[0],s=o[1];!r.current&&(r.current=!0,(null==t?void 0:t.onSubscriptionData)&&!1!==globalThis.__DEV__&&i.kG.warn(t.onData?50:51),(null==t?void 0:t.onSubscriptionComplete)&&!1!==globalThis.__DEV__&&i.kG.warn(t.onComplete?52:53));var c=a.useState(function(){return(null==t?void 0:t.skip)?null:n.subscribe({query:e,variables:null==t?void 0:t.variables,fetchPolicy:null==t?void 0:t.fetchPolicy,context:null==t?void 0:t.context})}),f=c[0],p=c[1],h=a.useRef(!1);a.useEffect(function(){return function(){h.current=!0}},[]);var y=a.useRef({client:n,subscription:e,options:t});return a.useEffect(function(){var r,i,o,a,u=null==t?void 0:t.shouldResubscribe;"function"==typeof u&&(u=!!u(t)),(null==t?void 0:t.skip)?(!(null==t?void 0:t.skip)!=!(null===(r=y.current.options)||void 0===r?void 0:r.skip)||h.current)&&(s({loading:!1,data:void 0,error:void 0,variables:null==t?void 0:t.variables}),p(null),h.current=!1):(!1!==u&&(n!==y.current.client||e!==y.current.subscription||(null==t?void 0:t.fetchPolicy)!==(null===(i=y.current.options)||void 0===i?void 0:i.fetchPolicy)||!(null==t?void 0:t.skip)!=!(null===(o=y.current.options)||void 0===o?void 0:o.skip)||!(0,d.D)(null==t?void 0:t.variables,null===(a=y.current.options)||void 0===a?void 0:a.variables))||h.current)&&(s({loading:!0,data:void 0,error:void 0,variables:null==t?void 0:t.variables}),p(n.subscribe({query:e,variables:null==t?void 0:t.variables,fetchPolicy:null==t?void 0:t.fetchPolicy,context:null==t?void 0:t.context})),h.current=!1),Object.assign(y.current,{client:n,subscription:e,options:t})},[n,e,t,h.current]),a.useEffect(function(){if(f){var e=!1,r=f.subscribe({next:function(r){if(!e){var i,o,a={loading:!1,data:r.data,error:void 0,variables:null==t?void 0:t.variables};s(a),(null===(i=y.current.options)||void 0===i?void 0:i.onData)?y.current.options.onData({client:n,data:a}):(null===(o=y.current.options)||void 0===o?void 0:o.onSubscriptionData)&&y.current.options.onSubscriptionData({client:n,subscriptionData:a})}},error:function(r){var n,i;e||(s({loading:!1,data:void 0,error:r,variables:null==t?void 0:t.variables}),null===(i=null===(n=y.current.options)||void 0===n?void 0:n.onError)||void 0===i||i.call(n,r))},complete:function(){var t,r;!e&&((null===(t=y.current.options)||void 0===t?void 0:t.onComplete)?y.current.options.onComplete():(null===(r=y.current.options)||void 0===r?void 0:r.onSubscriptionComplete)&&y.current.options.onSubscriptionComplete())}});return function(){e=!0,setTimeout(function(){r.unsubscribe()})}}},[f]),u}function m(e){var t=e(),r=a.useState(t)[1];return a.useEffect(function(){var n=e();if(t===n)return e.onNextChange(r);r(n)},[t]),t}var g=r(71269),b=r(63884);function w(e){var t=(0,l.x)().cache,r=e.fragment,n=e.fragmentName,i=e.from,u=e.optimistic,s=(0,o._T)(e,["fragment","fragmentName","from","optimistic"]),c=(0,o.pi)((0,o.pi)({},s),{returnPartialData:!0,id:"string"==typeof i?i:t.identify(i),query:t.getFragmentDoc(r,n),optimistic:void 0===u||u}),f=a.useRef(),p=t.diff(c),h=function(){var e=k(p);return f.current&&(0,d.D)(f.current.data,e.data)?f.current:f.current=e};return(0,b.$)(function(e){var r=0,n=t.watch((0,o.pi)((0,o.pi)({},c),{immediate:!0,callback:function(t){(0,d.D)(t,p)||(f.current=k(p=t),r=setTimeout(e))}}));return function(){n(),clearTimeout(r)}},h,h)}function k(e){var t={data:e.result,complete:!!e.complete};return e.missing&&(t.missing=(0,g.bw)(e.missing.map(function(e){return e.missing}))),t}var S=r(90604),O=r(24223),_=r(23041),E=r(24832),R=function(e){function t(){throw e.call(this),Error("It is no longer necessary to create a `SuspenseCache` instance and pass it into the `ApolloProvider`.\nPlease remove this code from your application. \n\nThis export will be removed with the final 3.8 release.")}return(0,o.ZT)(t,e),t}(r(95326).$)},24614:function(e,t,r){r.d(t,{i:function(){return l}});var n=r(2276),i=r(69090),o=r(5853),a=r(36517);function u(e,t){return t?t(e):i.y.of()}function s(e){return"function"==typeof e?new l(e):e}function c(e){return e.request.length<=1}var l=function(){function e(e){e&&(this.request=e)}return e.empty=function(){return new e(function(){return i.y.of()})},e.from=function(t){return 0===t.length?e.empty():t.map(s).reduce(function(e,t){return e.concat(t)})},e.split=function(t,r,n){var o=s(r),a=s(n||new e(u));return new e(c(o)&&c(a)?function(e){return t(e)?o.request(e)||i.y.of():a.request(e)||i.y.of()}:function(e,r){return t(e)?o.request(e,r)||i.y.of():a.request(e,r)||i.y.of()})},e.execute=function(e,t){var r,u,s,c;return e.request((s=t.context,(u={variables:(r=function(e){for(var t=["query","operationName","variables","extensions","context"],r=0,i=Object.keys(e);r<i.length;r++){var o=i[r];if(0>t.indexOf(o))throw(0,n._K)(41,o)}return e}(t)).variables||{},extensions:r.extensions||{},operationName:r.operationName,query:r.query}).operationName||(u.operationName="string"!=typeof u.query?(0,a.rY)(u.query)||void 0:""),c=(0,o.pi)({},s),Object.defineProperty(u,"setContext",{enumerable:!1,value:function(e){c="function"==typeof e?(0,o.pi)((0,o.pi)({},c),e(c)):(0,o.pi)((0,o.pi)({},c),e)}}),Object.defineProperty(u,"getContext",{enumerable:!1,value:function(){return(0,o.pi)({},c)}}),u))||i.y.of()},e.concat=function(t,r){var o=s(t);if(c(o))return!1!==globalThis.__DEV__&&n.kG.warn(33,o),o;var a=s(r);return new e(c(a)?function(e){return o.request(e,function(e){return a.request(e)||i.y.of()})||i.y.of()}:function(e,t){return o.request(e,function(e){return a.request(e,t)||i.y.of()})||i.y.of()})},e.prototype.split=function(t,r,n){return this.concat(e.split(t,r,n||new e(u)))},e.prototype.concat=function(t){return e.concat(this,t)},e.prototype.request=function(e,t){throw(0,n._K)(34)},e.prototype.onError=function(e,t){if(t&&t.error)return t.error(e),!1;throw e},e.prototype.setOnError=function(e){return this.onError=e,this},e}()},58759:function(e,t,r){r.d(t,{D:function(){return n}});var n=r(24614).i.from},41906:function(e,t,r){r.d(t,{u:function(){return a}});var n=r(5853),i=r(24614),o=r(27412),a=function(e){function t(t){void 0===t&&(t={});var r=e.call(this,(0,o.L)(t).request)||this;return r.options=t,r}return(0,n.ZT)(t,e),t}(i.i)},48082:function(e,t,r){r.d(t,{U:function(){return i}});var n=r(2276),i=function(e){if(!e&&"undefined"==typeof fetch)throw(0,n._K)(35)}},27412:function(e,t,r){r.d(t,{L:function(){return b}});var n=r(5853),i=r(2276),o=r(24614),a=r(30696),u=r(69090),s=r(12448),c=r(16077),l=r(14359),f=r(48082),p=r(73897),h=r(29681),d=r(70058),v=r(11689),y=r(55484),m=r(36517),g=(0,i.wY)(function(){return fetch}),b=function(e){void 0===e&&(e={});var t=e.uri,r=void 0===t?"/graphql":t,b=e.fetch,w=e.print,k=void 0===w?p.sb:w,S=e.includeExtensions,O=e.preserveHeaderCase,_=e.useGETForQueries,E=e.includeUnusedVariables,R=void 0!==E&&E,D=(0,n._T)(e,["uri","fetch","print","includeExtensions","preserveHeaderCase","useGETForQueries","includeUnusedVariables"]);!1!==globalThis.__DEV__&&(0,f.U)(b||g);var I={http:{includeExtensions:S,preserveHeaderCase:O},options:D.fetchOptions,credentials:D.credentials,headers:D.headers};return new o.i(function(e){var t,o,f,w,S,O,E=(0,c.r)(e,r),D=e.getContext(),x={};if(D.clientAwareness){var T=D.clientAwareness,C=T.name,P=T.version;C&&(x["apollographql-client-name"]=C),P&&(x["apollographql-client-version"]=P)}var F=(0,n.pi)((0,n.pi)({},x),D.headers),A={http:D.http,options:D.fetchOptions,credentials:D.credentials,headers:F};if((0,a.FS)(["client"],e.query)){var j=(0,y.ob)(e.query);if(!j)return(0,d.Q)(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=j}var Q=(0,p.ve)(e,k,p.SC,I,A),q=Q.options,M=Q.body;M.variables&&!R&&(M.variables=(t=M.variables,o=e.query,f=(0,n.pi)({},t),w=new Set(Object.keys(t)),(0,v.Vn)(o,{Variable:function(e,t,r){r&&"VariableDefinition"!==r.kind&&w.delete(e.name.value)}}),w.forEach(function(e){delete f[e]}),f)),q.signal||"undefined"==typeof AbortController||(O=new AbortController,q.signal=O.signal);var N="OperationDefinition"===(S=(0,m.p$)(e.query)).kind&&"subscription"===S.operation,V=(0,a.FS)(["defer"],e.query);if(_&&!e.query.definitions.some(function(e){return"OperationDefinition"===e.kind&&"mutation"===e.operation})&&(q.method="GET"),V||N){q.headers=q.headers||{};var L="multipart/mixed;";N&&V&&!1!==globalThis.__DEV__&&i.kG.warn(36),N?L+="boundary=graphql;subscriptionSpec=1.0,application/json":V&&(L+="deferSpec=20220824,application/json"),q.headers.accept=L}if("GET"===q.method){var B=(0,h.H)(E,M),z=B.newURI,G=B.parseError;if(G)return(0,d.Q)(G);E=z}else try{q.body=(0,s.g)(M,"Payload")}catch(e){return(0,d.Q)(e)}return new u.y(function(t){var r=b||(0,i.wY)(function(){return fetch})||g,n=t.next.bind(t);return r(E,q).then(function(t){e.setContext({response:t});var r,i=null===(r=t.headers)||void 0===r?void 0:r.get("content-type");return null!==i&&/^multipart\/mixed/i.test(i)?(0,l.TF)(t,n):(0,l.dO)(e)(t).then(n)}).then(function(){O=void 0,t.complete()}).catch(function(e){O=void 0,(0,l.S3)(e,t)}),function(){O&&O.abort()}})})}},96919:function(e,t,r){r.r(t),r.d(t,{HttpLink:function(){return l.u},checkFetcher:function(){return a.U},createHttpLink:function(){return c.L},createSignalIfSupported:function(){return u},defaultPrinter:function(){return o.sb},fallbackHttpConfig:function(){return o.SC},parseAndCheckHttpResponse:function(){return n.dO},rewriteURIForGET:function(){return f.H},selectHttpOptionsAndBody:function(){return o.E4},selectHttpOptionsAndBodyInternal:function(){return o.ve},selectURI:function(){return s.r},serializeFetchParameter:function(){return i.g}}),r(2276);var n=r(14359),i=r(12448),o=r(73897),a=r(48082),u=function(){if("undefined"==typeof AbortController)return{controller:!1,signal:!1};var e=new AbortController,t=e.signal;return{controller:e,signal:t}},s=r(16077),c=r(27412),l=r(41906),f=r(29681)},14359:function(e,t,r){r.d(t,{S3:function(){return p},dO:function(){return h},TF:function(){return l}});var n=r(5853),i=r(59394);function o(e){var t={next:function(){return e.read()}};return i.DN&&(t[Symbol.asyncIterator]=function(){return this}),t}var a=r(4897),u=r(77828),s=r(40373),c=Object.prototype.hasOwnProperty;function l(e,t){var r;return(0,n.mG)(this,void 0,void 0,function(){var a,c,l,p,h,d,v,y,m,g,b,w,k,S,O,_,E,R,D,I,x,T;return(0,n.Jh)(this,function(C){switch(C.label){case 0:if(void 0===TextDecoder)throw Error("TextDecoder must be defined in the environment: please import a polyfill.");a=new TextDecoder("utf-8"),c=null===(r=e.headers)||void 0===r?void 0:r.get("content-type"),l="boundary=",p=(null==c?void 0:c.includes(l))?null==c?void 0:c.substring((null==c?void 0:c.indexOf(l))+l.length).replace(/['"]/g,"").replace(/\;(.*)/gm,"").trim():"-",h="\r\n--".concat(p),d="",v=function(e){var t,r,n,a,u,s,c=e;if(e.body&&(c=e.body),t=c,i.DN&&t[Symbol.asyncIterator])return n=c[Symbol.asyncIterator](),(r={next:function(){return n.next()}})[Symbol.asyncIterator]=function(){return this},r;if(c.getReader)return o(c.getReader());if(c.stream)return o(c.stream().getReader());if(c.arrayBuffer)return a=c.arrayBuffer(),u=!1,s={next:function(){return u?Promise.resolve({value:void 0,done:!0}):(u=!0,new Promise(function(e,t){a.then(function(t){e({value:t,done:!1})}).catch(t)}))}},i.DN&&(s[Symbol.asyncIterator]=function(){return this}),s;if(c.pipe)return function(e){var t=null,r=null,n=!1,o=[],a=[];function u(e){if(!r){if(a.length){var t=a.shift();if(Array.isArray(t)&&t[0])return t[0]({value:e,done:!1})}o.push(e)}}function s(e){r=e,a.slice().forEach(function(t){t[1](e)}),t&&t()}function c(){n=!0,a.slice().forEach(function(e){e[0]({value:void 0,done:!0})}),t&&t()}t=function(){t=null,e.removeListener("data",u),e.removeListener("error",s),e.removeListener("end",c),e.removeListener("finish",c),e.removeListener("close",c)},e.on("data",u),e.on("error",s),e.on("end",c),e.on("finish",c),e.on("close",c);var l={next:function(){return new Promise(function(e,t){return r?t(r):o.length?e({value:o.shift(),done:!1}):n?e({value:void 0,done:!0}):void a.push([e,t])})}};return i.DN&&(l[Symbol.asyncIterator]=function(){return this}),l}(c);throw Error("Unknown body type for responseIterator. Please pass a streamable response.")}(e),y=!0,C.label=1;case 1:if(!y)return[3,3];return[4,v.next()];case 2:for(g=(m=C.sent()).value,b=m.done,w="string"==typeof g?g:a.decode(g),k=d.length-h.length+1,y=!b,d+=w,S=d.indexOf(h,k);S>-1;){if(O=void 0,O=(x=[d.slice(0,S),d.slice(S+h.length)])[0],d=x[1],_=O.indexOf("\r\n\r\n"),(E=function(e){var t={};return e.split("\n").forEach(function(e){var r=e.indexOf(":");if(r>-1){var n=e.slice(0,r).trim().toLowerCase(),i=e.slice(r+1).trim();t[n]=i}}),t}(O.slice(0,_))["content-type"])&&-1===E.toLowerCase().indexOf("application/json"))throw Error("Unsupported patch content type: application/json is required.");if(R=O.slice(_)){if(Object.keys(D=f(e,R)).length>1||"data"in D||"incremental"in D||"errors"in D||"payload"in D)(0,s.yU)(D)?(I={},"payload"in D&&(I=(0,n.pi)({},D.payload)),"errors"in D&&(I=(0,n.pi)((0,n.pi)({},I),{extensions:(0,n.pi)((0,n.pi)({},"extensions"in I?I.extensions:null),((T={})[u.YG]=D.errors,T))})),t(I)):t(D);else if(1===Object.keys(D).length&&"hasNext"in D&&!D.hasNext)return[2]}S=d.indexOf(h)}return[3,1];case 3:return[2]}})})}function f(e,t){e.status>=300&&(0,a.P)(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(r){throw r.name="ServerParseError",r.response=e,r.statusCode=e.status,r.bodyText=t,r}}function p(e,t){e.result&&e.result.errors&&e.result.data&&t.next(e.result),t.error(e)}function h(e){return function(t){return t.text().then(function(e){return f(t,e)}).then(function(r){return t.status>=300&&(0,a.P)(t,r,"Response not successful: Received status code ".concat(t.status)),Array.isArray(r)||c.call(r,"data")||c.call(r,"errors")||(0,a.P)(t,r,"Server response was missing for query '".concat(Array.isArray(e)?e.map(function(e){return e.operationName}):e.operationName,"'.")),r})}}},29681:function(e,t,r){r.d(t,{H:function(){return i}});var n=r(12448);function i(e,t){var r=[],i=function(e,t){r.push("".concat(e,"=").concat(encodeURIComponent(t)))};if("query"in t&&i("query",t.query),t.operationName&&i("operationName",t.operationName),t.variables){var o=void 0;try{o=(0,n.g)(t.variables,"Variables map")}catch(e){return{parseError:e}}i("variables",o)}if(t.extensions){var a=void 0;try{a=(0,n.g)(t.extensions,"Extensions map")}catch(e){return{parseError:e}}i("extensions",a)}var u="",s=e,c=e.indexOf("#");-1!==c&&(u=e.substr(c),s=e.substr(0,c));var l=-1===s.indexOf("?")?"?":"&";return{newURI:s+l+r.join("&")+u}}},73897:function(e,t,r){r.d(t,{E4:function(){return u},SC:function(){return o},sb:function(){return a},ve:function(){return s}});var n=r(5853),i=r(37469),o={http:{includeQuery:!0,includeExtensions:!1,preserveHeaderCase:!1},headers:{accept:"*/*","content-type":"application/json"},options:{method:"POST"}},a=function(e,t){return t(e)};function u(e,t){for(var r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];return r.unshift(t),s.apply(void 0,(0,n.ev)([e,a],r,!1))}function s(e,t){for(var r=[],o=2;o<arguments.length;o++)r[o-2]=arguments[o];var a={},u={};r.forEach(function(e){a=(0,n.pi)((0,n.pi)((0,n.pi)({},a),e.options),{headers:(0,n.pi)((0,n.pi)({},a.headers),e.headers)}),e.credentials&&(a.credentials=e.credentials),u=(0,n.pi)((0,n.pi)({},u),e.http)}),a.headers&&(a.headers=function(e,t){if(!t){var r=Object.create(null);return Object.keys(Object(e)).forEach(function(t){r[t.toLowerCase()]=e[t]}),r}var n=Object.create(null);Object.keys(Object(e)).forEach(function(t){n[t.toLowerCase()]={originalName:t,value:e[t]}});var i=Object.create(null);return Object.keys(n).forEach(function(e){i[n[e].originalName]=n[e].value}),i}(a.headers,u.preserveHeaderCase));var s=e.operationName,c=e.extensions,l=e.variables,f=e.query,p={operationName:s,variables:l};return u.includeExtensions&&(p.extensions=c),u.includeQuery&&(p.query=t(f,i.S)),{options:a,body:p}}},16077:function(e,t,r){r.d(t,{r:function(){return n}});var n=function(e,t){return e.getContext().uri||("function"==typeof t?t(e):t||"/graphql")}},12448:function(e,t,r){r.d(t,{g:function(){return i}});var n=r(2276),i=function(e,t){var r;try{r=JSON.stringify(e)}catch(e){var i=(0,n._K)(37,t,e.message);throw i.parseError=e,i}return r}},70058:function(e,t,r){r.d(t,{Q:function(){return i}});var n=r(69090);function i(e){return new n.y(function(t){t.error(e)})}},4897:function(e,t,r){r.d(t,{P:function(){return n}});var n=function(e,t,r){var n=Error(r);throw n.name="ServerError",n.response=e,n.statusCode=e.status,n.result=t,n}},86626:function(e,t,r){r.d(t,{X:function(){return i}});var n=Object.prototype.toString;function i(e){return function e(t,r){switch(n.call(t)){case"[object Array]":if((r=r||new Map).has(t))return r.get(t);var i=t.slice(0);return r.set(t,i),i.forEach(function(t,n){i[n]=e(t,r)}),i;case"[object Object]":if((r=r||new Map).has(t))return r.get(t);var o=Object.create(Object.getPrototypeOf(t));return r.set(t,o),Object.keys(t).forEach(function(n){o[n]=e(t[n],r)}),o;default:return t}}(e)}},92933:function(e,t,r){r.d(t,{K:function(){return a},d:function(){return o}});var n=r(92086),i=r(40373);function o(e){var t=a(e);return(0,n.O)(t)}function a(e){var t=(0,n.O)(e.errors)?e.errors.slice(0):[];return(0,i.GG)(e)&&(0,n.O)(e.incremental)&&e.incremental.forEach(function(e){e.errors&&t.push.apply(t,e.errors)}),t}},40373:function(e,t,r){r.d(t,{GG:function(){return a},M0:function(){return s},mT:function(){return l},x3:function(){return u},yU:function(){return c}});var n=r(23446),i=r(92086),o=r(71269);function a(e){return"incremental"in e}function u(e){return"hasNext"in e&&"data"in e}function s(e){return a(e)||u(e)}function c(e){return(0,n.s)(e)&&"payload"in e}function l(e,t){var r=e,n=new o.w0;return a(t)&&(0,i.O)(t.incremental)&&t.incremental.forEach(function(e){for(var t=e.data,i=e.path,o=i.length-1;o>=0;--o){var a=i[o],u=isNaN(+a)?{}:[];u[a]=t,t=u}r=n.merge(r,t)}),r}},71269:function(e,t,r){r.d(t,{Ee:function(){return a},bw:function(){return u},w0:function(){return c}});var n=r(5853),i=r(23446),o=Object.prototype.hasOwnProperty;function a(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return u(e)}function u(e){var t=e[0]||{},r=e.length;if(r>1)for(var n=new c,i=1;i<r;++i)t=n.merge(t,e[i]);return t}var s=function(e,t,r){return this.merge(e[r],t[r])},c=function(){function e(e){void 0===e&&(e=s),this.reconciler=e,this.isObject=i.s,this.pastCopies=new Set}return e.prototype.merge=function(e,t){for(var r=this,a=[],u=2;u<arguments.length;u++)a[u-2]=arguments[u];return(0,i.s)(t)&&(0,i.s)(e)?(Object.keys(t).forEach(function(i){if(o.call(e,i)){var u=e[i];if(t[i]!==u){var s=r.reconciler.apply(r,(0,n.ev)([e,t,i],a,!1));s!==u&&((e=r.shallowCopyForMerge(e))[i]=s)}}else(e=r.shallowCopyForMerge(e))[i]=t[i]}),e):t},e.prototype.shallowCopyForMerge=function(e){return(0,i.s)(e)&&!this.pastCopies.has(e)&&(e=Array.isArray(e)?e.slice(0):(0,n.pi)({__proto__:Object.getPrototypeOf(e)},e),this.pastCopies.add(e)),e},e}()},56789:function(e,t,r){r.d(t,{A:function(){return s}});var n=r(46238),i=r(59394),o=r(36517),a=r(2276);function u(e){return e}var s=function(){function e(e,t){void 0===t&&(t=Object.create(null)),this.resultCache=i.sy?new WeakSet:new Set,this.transform=e,t.getCacheKey&&(this.getCacheKey=t.getCacheKey),!1!==t.cache&&(this.stableCacheKeys=new n.B(i.mr,function(e){return{key:e}}))}return e.prototype.getCacheKey=function(e){return[e]},e.identity=function(){return new e(u,{cache:!1})},e.split=function(t,r,n){return void 0===n&&(n=e.identity()),new e(function(e){return(t(e)?r:n).transformDocument(e)},{cache:!1})},e.prototype.transformDocument=function(e){if(this.resultCache.has(e))return e;var t=this.getStableCacheEntry(e);if(t&&t.value)return t.value;(0,o.A$)(e);var r=this.transform(e);return this.resultCache.add(r),t&&(t.value=r),r},e.prototype.concat=function(t){var r=this;return new e(function(e){return t.transformDocument(r.transformDocument(e))},{cache:!1})},e.prototype.getStableCacheEntry=function(e){if(this.stableCacheKeys){var t=this.getCacheKey(e);if(t)return(0,a.kG)(Array.isArray(t),63),this.stableCacheKeys.lookupArray(t)}},e}()},30696:function(e,t,r){r.d(t,{FS:function(){return c},IX:function(){return f},LZ:function(){return o},On:function(){return u},iX:function(){return a},mj:function(){return l},qb:function(){return s}});var n=r(2276),i=r(11689);function o(e,t){var r=e.directives;return!r||!r.length||f(r).every(function(e){var r=e.directive,i=e.ifArgument,o=!1;return"Variable"===i.value.kind?(o=t&&t[i.value.name.value],(0,n.kG)(void 0!==o,64,r.name.value)):o=i.value.value,"skip"===r.name.value?!o:o})}function a(e){var t=[];return(0,i.Vn)(e,{Directive:function(e){t.push(e.name.value)}}),t}var u=function(e,t){return c(e,t,!1)},s=function(e,t){return c(e,t,!0)};function c(e,t,r){var n=new Set(e),o=n.size;return(0,i.Vn)(t,{Directive:function(e){if(n.delete(e.name.value)&&(!r||!n.size))return i.$_}}),r?!n.size:n.size<o}function l(e){return e&&c(["client","export"],e,!0)}function f(e){var t=[];return e&&e.length&&e.forEach(function(e){var r;if(!("skip"!==(r=e.name.value)&&"include"!==r)){var i=e.arguments,o=e.name.value;(0,n.kG)(i&&1===i.length,65,o);var a=i[0];(0,n.kG)(a.name&&"if"===a.name.value,66,o);var u=a.value;(0,n.kG)(u&&("Variable"===u.kind||"BooleanValue"===u.kind),67,o),t.push({directive:e,ifArgument:a})}}),t}},80960:function(e,t,r){r.d(t,{F:function(){return a},Yk:function(){return o},hi:function(){return u}});var n=r(5853),i=r(2276);function o(e,t){var r=t,o=[];return e.definitions.forEach(function(e){if("OperationDefinition"===e.kind)throw(0,i._K)(68,e.operation,e.name?" named '".concat(e.name.value,"'"):"");"FragmentDefinition"===e.kind&&o.push(e)}),void 0===r&&((0,i.kG)(1===o.length,69,o.length),r=o[0].name.value),(0,n.pi)((0,n.pi)({},e),{definitions:(0,n.ev)([{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:r}}]}}],e.definitions,!0)})}function a(e){void 0===e&&(e=[]);var t={};return e.forEach(function(e){t[e.name.value]=e}),t}function u(e,t){switch(e.kind){case"InlineFragment":return e;case"FragmentSpread":var r=e.name.value;if("function"==typeof t)return t(r);var n=t&&t[r];return(0,i.kG)(n,70,r),n||null;default:return null}}},36517:function(e,t,r){r.d(t,{$H:function(){return a},A$:function(){return o},O4:function(){return p},iW:function(){return c},kU:function(){return s},p$:function(){return f},pD:function(){return l},rY:function(){return u}});var n=r(2276),i=r(48338);function o(e){(0,n.kG)(e&&"Document"===e.kind,71);var t=e.definitions.filter(function(e){return"FragmentDefinition"!==e.kind}).map(function(e){if("OperationDefinition"!==e.kind)throw(0,n._K)(72,e.kind);return e});return(0,n.kG)(t.length<=1,73,t.length),e}function a(e){return o(e),e.definitions.filter(function(e){return"OperationDefinition"===e.kind})[0]}function u(e){return e.definitions.filter(function(e){return"OperationDefinition"===e.kind&&!!e.name}).map(function(e){return e.name.value})[0]||null}function s(e){return e.definitions.filter(function(e){return"FragmentDefinition"===e.kind})}function c(e){var t=a(e);return(0,n.kG)(t&&"query"===t.operation,74),t}function l(e){(0,n.kG)("Document"===e.kind,75),(0,n.kG)(e.definitions.length<=1,76);var t=e.definitions[0];return(0,n.kG)("FragmentDefinition"===t.kind,77),t}function f(e){o(e);for(var t,r=0,i=e.definitions;r<i.length;r++){var a=i[r];if("OperationDefinition"===a.kind){var u=a.operation;if("query"===u||"mutation"===u||"subscription"===u)return a}"FragmentDefinition"!==a.kind||t||(t=a)}if(t)return t;throw(0,n._K)(78)}function p(e){var t=Object.create(null),r=e&&e.variableDefinitions;return r&&r.length&&r.forEach(function(e){e.defaultValue&&(0,i.vb)(t,e.variable.name,e.defaultValue)}),t}},37469:function(e,t,r){r.d(t,{S:function(){return v}});var n=r(96453);let i=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function o(e){return a[e.charCodeAt(0)]}let a=["\\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 u=r(11689);let s={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>c(e.definitions,"\n\n")},OperationDefinition:{leave(e){let t=f("(",c(e.variableDefinitions,", "),")"),r=c([e.operation,c([e.name,t]),c(e.directives," ")]," ");return("query"===r?"":r+" ")+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:r,directives:n})=>e+": "+t+f(" = ",r)+f(" ",c(n," "))},SelectionSet:{leave:({selections:e})=>l(e)},Field:{leave({alias:e,name:t,arguments:r,directives:n,selectionSet:i}){let o=f("",e,": ")+t,a=o+f("(",c(r,", "),")");return a.length>80&&(a=o+f("(\n",p(c(r,"\n")),"\n)")),c([a,c(n," "),i]," ")}},Argument:{leave:({name:e,value:t})=>e+": "+t},FragmentSpread:{leave:({name:e,directives:t})=>"..."+e+f(" ",c(t," "))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:r})=>c(["...",f("on ",e),c(t," "),r]," ")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:r,directives:n,selectionSet:i})=>`fragment ${e}${f("(",c(r,", "),")")} on ${t} ${f("",c(n," ")," ")}`+i},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e},StringValue:{leave:({value:e,block:t})=>t?(0,n.LZ)(e):`"${e.replace(i,o)}"`},BooleanValue:{leave:({value:e})=>e?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>"["+c(e,", ")+"]"},ObjectValue:{leave:({fields:e})=>"{"+c(e,", ")+"}"},ObjectField:{leave:({name:e,value:t})=>e+": "+t},Directive:{leave:({name:e,arguments:t})=>"@"+e+f("(",c(t,", "),")")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>"["+e+"]"},NonNullType:{leave:({type:e})=>e+"!"},SchemaDefinition:{leave:({description:e,directives:t,operationTypes:r})=>f("",e,"\n")+c(["schema",c(t," "),l(r)]," ")},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+": "+t},ScalarTypeDefinition:{leave:({description:e,name:t,directives:r})=>f("",e,"\n")+c(["scalar",t,c(r," ")]," ")},ObjectTypeDefinition:{leave:({description:e,name:t,interfaces:r,directives:n,fields:i})=>f("",e,"\n")+c(["type",t,f("implements ",c(r," & ")),c(n," "),l(i)]," ")},FieldDefinition:{leave:({description:e,name:t,arguments:r,type:n,directives:i})=>f("",e,"\n")+t+(h(r)?f("(\n",p(c(r,"\n")),"\n)"):f("(",c(r,", "),")"))+": "+n+f(" ",c(i," "))},InputValueDefinition:{leave:({description:e,name:t,type:r,defaultValue:n,directives:i})=>f("",e,"\n")+c([t+": "+r,f("= ",n),c(i," ")]," ")},InterfaceTypeDefinition:{leave:({description:e,name:t,interfaces:r,directives:n,fields:i})=>f("",e,"\n")+c(["interface",t,f("implements ",c(r," & ")),c(n," "),l(i)]," ")},UnionTypeDefinition:{leave:({description:e,name:t,directives:r,types:n})=>f("",e,"\n")+c(["union",t,c(r," "),f("= ",c(n," | "))]," ")},EnumTypeDefinition:{leave:({description:e,name:t,directives:r,values:n})=>f("",e,"\n")+c(["enum",t,c(r," "),l(n)]," ")},EnumValueDefinition:{leave:({description:e,name:t,directives:r})=>f("",e,"\n")+c([t,c(r," ")]," ")},InputObjectTypeDefinition:{leave:({description:e,name:t,directives:r,fields:n})=>f("",e,"\n")+c(["input",t,c(r," "),l(n)]," ")},DirectiveDefinition:{leave:({description:e,name:t,arguments:r,repeatable:n,locations:i})=>f("",e,"\n")+"directive @"+t+(h(r)?f("(\n",p(c(r,"\n")),"\n)"):f("(",c(r,", "),")"))+(n?" repeatable":"")+" on "+c(i," | ")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>c(["extend schema",c(e," "),l(t)]," ")},ScalarTypeExtension:{leave:({name:e,directives:t})=>c(["extend scalar",e,c(t," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:r,fields:n})=>c(["extend type",e,f("implements ",c(t," & ")),c(r," "),l(n)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:r,fields:n})=>c(["extend interface",e,f("implements ",c(t," & ")),c(r," "),l(n)]," ")},UnionTypeExtension:{leave:({name:e,directives:t,types:r})=>c(["extend union",e,c(t," "),f("= ",c(r," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:t,values:r})=>c(["extend enum",e,c(t," "),l(r)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:r})=>c(["extend input",e,c(t," "),l(r)]," ")}};function c(e,t=""){var r;return null!==(r=null==e?void 0:e.filter(e=>e).join(t))&&void 0!==r?r:""}function l(e){return f("{\n",p(c(e,"\n")),"\n}")}function f(e,t,r=""){return null!=t&&""!==t?e+t+r:""}function p(e){return f("  ",e.replace(/\n/g,"\n  "))}function h(e){var t;return null!==(t=null==e?void 0:e.some(e=>e.includes("\n")))&&void 0!==t&&t}var d=r(59394).mr?new WeakMap:void 0,v=function(e){var t;return(t=null==d?void 0:d.get(e))||(t=(0,u.Vn)(e,s),null==d||d.set(e,t)),t}},48338:function(e,t,r){r.d(t,{Ao:function(){return g},JW:function(){return s},My:function(){return m},NC:function(){return v},PT:function(){return p},Yk:function(){return u},kQ:function(){return a},qw:function(){return function e(t,r,n){for(var i,a=0,u=r.selections;a<u.length;a++){var s=u[a];if(m(s)){if("__typename"===s.name.value)return t[y(s)]}else i?i.push(s):i=[s]}if("string"==typeof t.__typename)return t.__typename;if(i)for(var c=0,l=i;c<l.length;c++){var s=l[c],f=e(t,(0,o.hi)(s,n).selectionSet,n);if("string"==typeof f)return f}}},u2:function(){return y},vb:function(){return c},vf:function(){return l}});var n=r(2276),i=r(23446),o=r(80960);function a(e){return{__ref:String(e)}}function u(e){return!!(e&&"object"==typeof e&&"string"==typeof e.__ref)}function s(e){return(0,i.s)(e)&&"Document"===e.kind&&Array.isArray(e.definitions)}function c(e,t,r,i){if("IntValue"===r.kind||"FloatValue"===r.kind)e[t.value]=Number(r.value);else if("BooleanValue"===r.kind||"StringValue"===r.kind)e[t.value]=r.value;else if("ObjectValue"===r.kind){var o={};r.fields.map(function(e){return c(o,e.name,e.value,i)}),e[t.value]=o}else if("Variable"===r.kind){var a=(i||{})[r.name.value];e[t.value]=a}else if("ListValue"===r.kind)e[t.value]=r.values.map(function(e){var r={};return c(r,t,e,i),r[t.value]});else if("EnumValue"===r.kind)e[t.value]=r.value;else if("NullValue"===r.kind)e[t.value]=null;else throw(0,n._K)(79,t.value,r.kind)}function l(e,t){var r=null;e.directives&&(r={},e.directives.forEach(function(e){r[e.name.value]={},e.arguments&&e.arguments.forEach(function(n){var i=n.name,o=n.value;return c(r[e.name.value],i,o,t)})}));var n=null;return e.arguments&&e.arguments.length&&(n={},e.arguments.forEach(function(e){var r=e.name,i=e.value;return c(n,r,i,t)})),p(e.name.value,n,r)}var f=["connection","include","skip","client","rest","export","nonreactive"],p=Object.assign(function(e,t,r){if(t&&r&&r.connection&&r.connection.key){if(!r.connection.filter||!(r.connection.filter.length>0))return r.connection.key;var n=r.connection.filter?r.connection.filter:[];n.sort();var i={};return n.forEach(function(e){i[e]=t[e]}),"".concat(r.connection.key,"(").concat(h(i),")")}var o=e;if(t){var a=h(t);o+="(".concat(a,")")}return r&&Object.keys(r).forEach(function(e){-1===f.indexOf(e)&&(r[e]&&Object.keys(r[e]).length?o+="@".concat(e,"(").concat(h(r[e]),")"):o+="@".concat(e))}),o},{setStringify:function(e){var t=h;return h=e,t}}),h=function(e){return JSON.stringify(e,d)};function d(e,t){return(0,i.s)(t)&&!Array.isArray(t)&&(t=Object.keys(t).sort().reduce(function(e,r){return e[r]=t[r],e},{})),t}function v(e,t){if(e.arguments&&e.arguments.length){var r={};return e.arguments.forEach(function(e){return c(r,e.name,e.value,t)}),r}return null}function y(e){return e.alias?e.alias.value:e.name.value}function m(e){return"Field"===e.kind}function g(e){return"InlineFragment"===e.kind}},55484:function(e,t,r){r.d(t,{Fo:function(){return m},Gw:function(){return v},RR:function(){return b},Vw:function(){return g},aL:function(){return w},bi:function(){return d},ob:function(){return k}});var n=r(5853),i=r(2276),o=r(50499),a=r(11689),u=r(36517),s=r(48338),c=r(80960),l=r(92086),f={kind:o.h.FIELD,name:{kind:o.h.NAME,value:"__typename"}};function p(e){return!function e(t,r){return!t||t.selectionSet.selections.every(function(t){return t.kind===o.h.FRAGMENT_SPREAD&&e(r[t.name.value],r)})}((0,u.$H)(e)||(0,u.pD)(e),(0,c.F)((0,u.kU)(e)))?e:null}function h(e){var t=new Map;return function(r){void 0===r&&(r=e);var n=t.get(r);return n||t.set(r,n={variables:new Set,fragmentSpreads:new Set}),n}}function d(e,t){(0,u.A$)(t);for(var r,s,c=h(""),f=h(""),d=function(e){for(var t=0,r=void 0;t<e.length&&(r=e[t]);++t)if(!(0,l.k)(r)){if(r.kind===o.h.OPERATION_DEFINITION)return c(r.name&&r.name.value);if(r.kind===o.h.FRAGMENT_DEFINITION)return f(r.name.value)}return!1!==globalThis.__DEV__&&i.kG.error(80),null},v=0,y=t.definitions.length-1;y>=0;--y)t.definitions[y].kind===o.h.OPERATION_DEFINITION&&++v;var m=(r=new Map,s=new Map,e.forEach(function(e){e&&(e.name?r.set(e.name,e):e.test&&s.set(e.test,e))}),function(e){var t=r.get(e.name.value);return!t&&s.size&&s.forEach(function(r,n){n(e)&&(t=r)}),t}),g=function(e){return(0,l.O)(e)&&e.map(m).some(function(e){return e&&e.remove})},b=new Map,w=!1,k={enter:function(e){if(g(e.directives))return w=!0,null}},S=(0,a.Vn)(t,{Field:k,InlineFragment:k,VariableDefinition:{enter:function(){return!1}},Variable:{enter:function(e,t,r,n,i){var o=d(i);o&&o.variables.add(e.name.value)}},FragmentSpread:{enter:function(e,t,r,n,i){if(g(e.directives))return w=!0,null;var o=d(i);o&&o.fragmentSpreads.add(e.name.value)}},FragmentDefinition:{enter:function(e,t,r,n){b.set(JSON.stringify(n),e)},leave:function(e,t,r,n){return e===b.get(JSON.stringify(n))?e:v>0&&e.selectionSet.selections.every(function(e){return e.kind===o.h.FIELD&&"__typename"===e.name.value})?(f(e.name.value).removed=!0,w=!0,null):void 0}},Directive:{leave:function(e){if(m(e))return w=!0,null}}});if(!w)return t;var O=function(e){return e.transitiveVars||(e.transitiveVars=new Set(e.variables),e.removed||e.fragmentSpreads.forEach(function(t){O(f(t)).transitiveVars.forEach(function(t){e.transitiveVars.add(t)})})),e},_=new Set;S.definitions.forEach(function(e){e.kind===o.h.OPERATION_DEFINITION?O(c(e.name&&e.name.value)).fragmentSpreads.forEach(function(e){_.add(e)}):e.kind!==o.h.FRAGMENT_DEFINITION||0!==v||f(e.name.value).removed||_.add(e.name.value)}),_.forEach(function(e){O(f(e)).fragmentSpreads.forEach(function(e){_.add(e)})});var E={enter:function(e){var t;if(t=e.name.value,!_.has(t)||f(t).removed)return null}};return p((0,a.Vn)(S,{FragmentSpread:E,FragmentDefinition:E,OperationDefinition:{leave:function(e){if(e.variableDefinitions){var t=O(c(e.name&&e.name.value)).transitiveVars;if(t.size<e.variableDefinitions.length)return(0,n.pi)((0,n.pi)({},e),{variableDefinitions:e.variableDefinitions.filter(function(e){return t.has(e.variable.name.value)})})}}}}))}var v=Object.assign(function(e){return(0,a.Vn)(e,{SelectionSet:{enter:function(e,t,r){if(!r||r.kind!==o.h.OPERATION_DEFINITION){var i=e.selections;if(!(!i||i.some(function(e){return(0,s.My)(e)&&("__typename"===e.name.value||0===e.name.value.lastIndexOf("__",0))}))&&!((0,s.My)(r)&&r.directives&&r.directives.some(function(e){return"export"===e.name.value})))return(0,n.pi)((0,n.pi)({},e),{selections:(0,n.ev)((0,n.ev)([],i,!0),[f],!1)})}}}})},{added:function(e){return e===f}}),y={test:function(e){var t="connection"===e.name.value;return!t||e.arguments&&e.arguments.some(function(e){return"key"===e.name.value})||!1===globalThis.__DEV__||i.kG.warn(81),t}};function m(e){return d([y],(0,u.A$)(e))}function g(e,t){var r=function(t){return e.some(function(e){return t.value&&t.value.kind===o.h.VARIABLE&&t.value.name&&(e.name===t.value.name.value||e.test&&e.test(t))})};return p((0,a.Vn)(t,{OperationDefinition:{enter:function(t){return(0,n.pi)((0,n.pi)({},t),{variableDefinitions:t.variableDefinitions?t.variableDefinitions.filter(function(t){return!e.some(function(e){return e.name===t.variable.name.value})}):[]})}},Field:{enter:function(t){if(e.some(function(e){return e.remove})){var n=0;if(t.arguments&&t.arguments.forEach(function(e){r(e)&&(n+=1)}),1===n)return null}}},Argument:{enter:function(e){if(r(e))return null}}}))}function b(e,t){function r(t){if(e.some(function(e){return e.name===t.name.value}))return null}return p((0,a.Vn)(t,{FragmentSpread:{enter:r},FragmentDefinition:{enter:r}}))}function w(e){return"query"===(0,u.p$)(e).operation?e:(0,a.Vn)(e,{OperationDefinition:{enter:function(e){return(0,n.pi)((0,n.pi)({},e),{operation:"query"})}}})}function k(e){return(0,u.A$)(e),d([{test:function(e){return"client"===e.name.value},remove:!0}],e)}},74512:function(e,t,r){r.r(t),r.d(t,{Concast:function(){return I.X},DEV:function(){return n.Rk},DeepMerger:function(){return y.w0},DocumentTransform:function(){return o.A},Observable:function(){return S.y},addTypenameToDocument:function(){return l.Gw},argumentsObjectFromField:function(){return c.NC},asyncMap:function(){return D.s},buildQueryFromSelectionSet:function(){return l.aL},canUseAsyncIteratorSymbol:function(){return F.DN},canUseDOM:function(){return F.Nq},canUseLayoutEffect:function(){return F.JC},canUseSymbol:function(){return F.aS},canUseWeakMap:function(){return F.mr},canUseWeakSet:function(){return F.sy},checkDocument:function(){return u.A$},cloneDeep:function(){return _.X},compact:function(){return A.o},concatPagination:function(){return m},createFragmentMap:function(){return a.F},createFulfilledPromise:function(){return O.OP},createRejectedPromise:function(){return O.Ld},fixObservableSubclass:function(){return x.D},getDefaultValues:function(){return u.O4},getDirectiveNames:function(){return i.iX},getFragmentDefinition:function(){return u.pD},getFragmentDefinitions:function(){return u.kU},getFragmentFromSelection:function(){return a.hi},getFragmentQueryDocument:function(){return a.Yk},getGraphQLErrorsFromResult:function(){return P.K},getInclusionDirectives:function(){return i.IX},getMainDefinition:function(){return u.p$},getOperationDefinition:function(){return u.$H},getOperationName:function(){return u.rY},getQueryDefinition:function(){return u.iW},getStoreKeyName:function(){return c.PT},getTypenameFromResult:function(){return c.qw},graphQLResultHasError:function(){return P.d},hasAllDirectives:function(){return i.qb},hasAnyDirectives:function(){return i.On},hasClientExports:function(){return i.mj},hasDirectives:function(){return i.FS},isApolloPayloadResult:function(){return M.yU},isArray:function(){return T.k},isDocumentNode:function(){return c.JW},isExecutionPatchIncrementalResult:function(){return M.GG},isExecutionPatchInitialResult:function(){return M.x3},isExecutionPatchResult:function(){return M.M0},isField:function(){return c.My},isInlineFragment:function(){return c.Ao},isMutationOperation:function(){return p},isNonEmptyArray:function(){return T.O},isNonNullObject:function(){return C.s},isPlainObject:function(){return C.P},isQueryOperation:function(){return h},isReference:function(){return c.Yk},isStatefulPromise:function(){return O.j7},isSubscriptionOperation:function(){return d},iterateObserversSafely:function(){return R.p},makeReference:function(){return c.kQ},makeUniqueId:function(){return j.X},maybe:function(){return n.wY},maybeDeepFreeze:function(){return E.J},mergeDeep:function(){return y.Ee},mergeDeepArray:function(){return y.bw},mergeIncrementalData:function(){return M.mT},mergeOptions:function(){return q.J},offsetLimitPagination:function(){return g},omitDeep:function(){return N},print:function(){return s.S},relayStylePagination:function(){return b},removeArgumentsFromDocument:function(){return l.Vw},removeClientSetsFromDocument:function(){return l.ob},removeConnectionDirectiveFromDocument:function(){return l.Fo},removeDirectivesFromDocument:function(){return l.bi},removeFragmentSpreadFromDocument:function(){return l.RR},resultKeyNameFromField:function(){return c.u2},shouldInclude:function(){return i.LZ},storeKeyNameFromField:function(){return c.vf},stringifyForDisplay:function(){return Q.v},stripTypename:function(){return L},valueToObjectRepresentation:function(){return c.vb},wrapPromiseWithState:function(){return O.Bd}});var n=r(2276),i=r(30696),o=r(56789),a=r(80960),u=r(36517),s=r(37469),c=r(48338),l=r(55484);function f(e,t){var r;return(null===(r=(0,u.$H)(e))||void 0===r?void 0:r.operation)===t}function p(e){return f(e,"mutation")}function h(e){return f(e,"query")}function d(e){return f(e,"subscription")}var v=r(5853),y=r(71269);function m(e){return void 0===e&&(e=!1),{keyArgs:e,merge:function(e,t){return e?(0,v.ev)((0,v.ev)([],e,!0),t,!0):t}}}function g(e){return void 0===e&&(e=!1),{keyArgs:e,merge:function(e,t,r){var n=r.args,i=e?e.slice(0):[];if(t){if(n)for(var o=n.offset,a=void 0===o?0:o,u=0;u<t.length;++u)i[a+u]=t[u];else i.push.apply(i,t)}return i}}}function b(e){return void 0===e&&(e=!1),{keyArgs:e,read:function(e,t){var r=t.canRead,n=t.readField;if(!e)return e;var i=[],o="",a="";e.edges.forEach(function(e){r(n("node",e))&&(i.push(e),e.cursor&&(o=o||e.cursor||"",a=e.cursor||a))}),i.length>1&&o===a&&(o="");var u=e.pageInfo||{},s=u.startCursor,c=u.endCursor;return(0,v.pi)((0,v.pi)({},w(e)),{edges:i,pageInfo:(0,v.pi)((0,v.pi)({},e.pageInfo),{startCursor:s||o,endCursor:c||a})})},merge:function(e,t,r){var n=r.args,i=r.isReference,o=r.readField;if(e||(e={edges:[],pageInfo:{hasPreviousPage:!1,hasNextPage:!0,startCursor:"",endCursor:""}}),!t)return e;var a=t.edges?t.edges.map(function(e){return i(e=(0,v.pi)({},e))&&(e.cursor=o("cursor",e)),e}):[];if(t.pageInfo){var u=t.pageInfo,s=u.startCursor,c=u.endCursor,l=a[0],f=a[a.length-1];l&&s&&(l.cursor=s),f&&c&&(f.cursor=c);var p=l&&l.cursor;p&&!s&&(t=(0,y.Ee)(t,{pageInfo:{startCursor:p}}));var h=f&&f.cursor;h&&!c&&(t=(0,y.Ee)(t,{pageInfo:{endCursor:h}}))}var d=e.edges,m=[];if(n&&n.after){var g=d.findIndex(function(e){return e.cursor===n.after});g>=0&&(d=d.slice(0,g+1))}else if(n&&n.before){var g=d.findIndex(function(e){return e.cursor===n.before});m=g<0?d:d.slice(g),d=[]}else t.edges&&(d=[]);var b=(0,v.ev)((0,v.ev)((0,v.ev)([],d,!0),a,!0),m,!0),k=(0,v.pi)((0,v.pi)({},t.pageInfo),e.pageInfo);if(t.pageInfo){var S=t.pageInfo,O=S.hasPreviousPage,_=S.hasNextPage,s=S.startCursor,c=S.endCursor;Object.assign(k,(0,v._T)(S,["hasPreviousPage","hasNextPage","startCursor","endCursor"])),d.length||(void 0!==O&&(k.hasPreviousPage=O),void 0===s||(k.startCursor=s)),m.length||(void 0!==_&&(k.hasNextPage=_),void 0===c||(k.endCursor=c))}return(0,v.pi)((0,v.pi)((0,v.pi)({},w(e)),w(t)),{edges:b,pageInfo:k})}}}var w=function(e){return(0,v._T)(e,k)},k=["edges","pageInfo"],S=r(69090),O=r(65788),_=r(86626),E=r(82187),R=r(19821),D=r(51149),I=r(49801),x=r(45963),T=r(92086),C=r(23446),P=r(92933),F=r(59394),A=r(85292),j=r(2232),Q=r(88099),q=r(49466),M=r(40373);function N(e,t){return V(e,t)}function V(e,t,r){if(void 0===r&&(r=new Map),r.has(e))return r.get(e);var n=!1;if(Array.isArray(e)){var i=[];if(r.set(e,i),e.forEach(function(e,o){var a=V(e,t,r);n||(n=a!==e),i[o]=a}),n)return i}else if((0,C.P)(e)){var o=Object.create(Object.getPrototypeOf(e));if(r.set(e,o),Object.keys(e).forEach(function(i){if(i===t){n=!0;return}var a=V(e[i],t,r);n||(n=a!==e[i]),o[i]=a}),n)return o}return e}function L(e){return V(e,"__typename")}},49801:function(e,t,r){r.d(t,{X:function(){return s}});var n=r(5853),i=r(69090),o=r(19821),a=r(45963);function u(e){return e&&"function"==typeof e.then}var s=function(e){function t(t){var r=e.call(this,function(e){return r.addObserver(e),function(){return r.removeObserver(e)}})||this;return r.observers=new Set,r.promise=new Promise(function(e,t){r.resolve=e,r.reject=t}),r.handlers={next:function(e){null!==r.sub&&(r.latest=["next",e],r.notify("next",e),(0,o.p)(r.observers,"next",e))},error:function(e){var t=r.sub;null!==t&&(t&&setTimeout(function(){return t.unsubscribe()}),r.sub=null,r.latest=["error",e],r.reject(e),r.notify("error",e),(0,o.p)(r.observers,"error",e))},complete:function(){var e=r.sub,t=r.sources;if(null!==e){var n=(void 0===t?[]:t).shift();n?u(n)?n.then(function(e){return r.sub=e.subscribe(r.handlers)}):r.sub=n.subscribe(r.handlers):(e&&setTimeout(function(){return e.unsubscribe()}),r.sub=null,r.latest&&"next"===r.latest[0]?r.resolve(r.latest[1]):r.resolve(),r.notify("complete"),(0,o.p)(r.observers,"complete"))}}},r.nextResultListeners=new Set,r.cancel=function(e){r.reject(e),r.sources=[],r.handlers.complete()},r.promise.catch(function(e){}),"function"==typeof t&&(t=[new i.y(t)]),u(t)?t.then(function(e){return r.start(e)},r.handlers.error):r.start(t),r}return(0,n.ZT)(t,e),t.prototype.start=function(e){void 0===this.sub&&(this.sources=Array.from(e),this.handlers.complete())},t.prototype.deliverLastMessage=function(e){if(this.latest){var t=this.latest[0],r=e[t];r&&r.call(e,this.latest[1]),null===this.sub&&"next"===t&&e.complete&&e.complete()}},t.prototype.addObserver=function(e){this.observers.has(e)||(this.deliverLastMessage(e),this.observers.add(e))},t.prototype.removeObserver=function(e){this.observers.delete(e)&&this.observers.size<1&&this.handlers.complete()},t.prototype.notify=function(e,t){var r=this.nextResultListeners;r.size&&(this.nextResultListeners=new Set,r.forEach(function(r){return r(e,t)}))},t.prototype.beforeNext=function(e){var t=!1;this.nextResultListeners.add(function(r,n){t||(t=!0,e(r,n))})},t}(i.y);(0,a.D)(s)},51149:function(e,t,r){r.d(t,{s:function(){return i}});var n=r(69090);function i(e,t,r){return new n.y(function(n){var i=n.next,o=n.error,a=n.complete,u=0,s=!1,c={then:function(e){return new Promise(function(t){return t(e())})}};function l(e,t){return e?function(t){++u;var r=function(){return e(t)};c=c.then(r,r).then(function(e){--u,i&&i.call(n,e),s&&f.complete()},function(e){throw--u,e}).catch(function(e){o&&o.call(n,e)})}:function(e){return t&&t.call(n,e)}}var f={next:l(t,i),error:l(r,o),complete:function(){s=!0,!u&&a&&a.call(n)}},p=e.subscribe(f);return function(){return p.unsubscribe()}})}},19821:function(e,t,r){r.d(t,{p:function(){return n}});function n(e,t,r){var n=[];e.forEach(function(e){return e[t]&&n.push(e)}),n.forEach(function(e){return e[t](r)})}},45963:function(e,t,r){r.d(t,{D:function(){return o}});var n=r(69090),i=r(59394);function o(e){function t(t){Object.defineProperty(e,t,{value:n.y})}return i.aS&&Symbol.species&&t(Symbol.species),t("@@species"),e}},19745:function(e,t,r){r.d(t,{g7:function(){return c}});let n=null,i={},o=1;function a(e){try{return e()}catch(e){}}let u="@wry/context:Slot",s=a(()=>globalThis)||a(()=>global)||Object.create(null),c=s[u]||Array[u]||function(e){try{Object.defineProperty(s,u,{value:e,enumerable:!1,writable:!1,configurable:!0})}finally{return e}}(class{constructor(){this.id=["slot",o++,Date.now(),Math.random().toString(36).slice(2)].join(":")}hasValue(){for(let e=n;e;e=e.parent)if(this.id in e.slots){let t=e.slots[this.id];if(t===i)break;return e!==n&&(n.slots[this.id]=t),!0}return n&&(n.slots[this.id]=i),!1}getValue(){if(this.hasValue())return n.slots[this.id]}withValue(e,t,r,i){let o={__proto__:null,[this.id]:e},a=n;n={parent:a,slots:o};try{return t.apply(i,r)}finally{n=a}}static bind(e){let t=n;return function(){let r=n;try{return n=t,e.apply(this,arguments)}finally{n=r}}}static noContext(e,t,r){if(!n)return e.apply(r,t);{let i=n;try{return n=null,e.apply(r,t)}finally{n=i}}}}),{bind:l,noContext:f}=c},11689:function(e,t,r){r.d(t,{$_:function(){return u},Vn:function(){return s}});var n=r(25173),i=r(46607),o=r(93084),a=r(50499);let u=Object.freeze({});function s(e,t,r=o.h8){let s,c,l;let f=new Map;for(let e of Object.values(a.h))f.set(e,function(e,t){let r=e[t];return"object"==typeof r?r:"function"==typeof r?{enter:r,leave:void 0}:{enter:e.enter,leave:e.leave}}(t,e));let p=Array.isArray(e),h=[e],d=-1,v=[],y=e,m=[],g=[];do{var b,w,k;let e;let a=++d===h.length,S=a&&0!==v.length;if(a){if(c=0===g.length?void 0:m[m.length-1],y=l,l=g.pop(),S){if(p){y=y.slice();let e=0;for(let[t,r]of v){let n=t-e;null===r?(y.splice(n,1),e++):y[n]=r}}else for(let[e,t]of(y=Object.defineProperties({},Object.getOwnPropertyDescriptors(y)),v))y[e]=t}d=s.index,h=s.keys,v=s.edits,p=s.inArray,s=s.prev}else if(l){if(null==(y=l[c=p?d:h[d]]))continue;m.push(c)}if(!Array.isArray(y)){(0,o.UG)(y)||(0,n.a)(!1,`Invalid AST Node: ${(0,i.X)(y)}.`);let r=a?null===(b=f.get(y.kind))||void 0===b?void 0:b.leave:null===(w=f.get(y.kind))||void 0===w?void 0:w.enter;if((e=null==r?void 0:r.call(t,y,c,l,m,g))===u)break;if(!1===e){if(!a){m.pop();continue}}else if(void 0!==e&&(v.push([c,e]),!a)){if((0,o.UG)(e))y=e;else{m.pop();continue}}}void 0===e&&S&&v.push([c,y]),a?m.pop():(s={inArray:p,index:d,keys:h,edits:v,prev:s},h=(p=Array.isArray(y))?y:null!==(k=r[y.kind])&&void 0!==k?k:[],d=-1,v=[],l&&g.push(l),l=y)}while(void 0!==s);return 0!==v.length?v[v.length-1][1]:e}},68385:function(e,t,r){let n;r.d(t,{dP:function(){return E},re:function(){return I}});var i=r(46238);function o(){}class a{constructor(e=1/0,t=o){this.max=e,this.dispose=t,this.map=new Map,this.newest=null,this.oldest=null}has(e){return this.map.has(e)}get(e){let t=this.getNode(e);return t&&t.value}getNode(e){let t=this.map.get(e);if(t&&t!==this.newest){let{older:e,newer:r}=t;r&&(r.older=e),e&&(e.newer=r),t.older=this.newest,t.older.newer=t,t.newer=null,this.newest=t,t===this.oldest&&(this.oldest=r)}return t}set(e,t){let r=this.getNode(e);return r?r.value=t:(r={key:e,value:t,newer:null,older:this.newest},this.newest&&(this.newest.newer=r),this.newest=r,this.oldest=this.oldest||r,this.map.set(e,r),r.value)}clean(){for(;this.oldest&&this.map.size>this.max;)this.delete(this.oldest.key)}delete(e){let t=this.map.get(e);return!!t&&(t===this.newest&&(this.newest=t.older),t===this.oldest&&(this.oldest=t.newer),t.newer&&(t.newer.older=t.older),t.older&&(t.older.newer=t.newer),this.map.delete(e),this.dispose(t.value,e),!0)}}let u=new(r(19745)).g7,{hasOwnProperty:s}=Object.prototype,c=Array.from||function(e){let t=[];return e.forEach(e=>t.push(e)),t};function l(e){let{unsubscribe:t}=e;"function"==typeof t&&(e.unsubscribe=void 0,t())}let f=[];function p(e,t){if(!e)throw Error(t||"assertion failure")}function h(e){switch(e.length){case 0:throw Error("unknown value");case 1:return e[0];case 2:throw e[1]}}class d{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,++d.count}peek(){if(1===this.value.length&&!m(this))return v(this),this.value[0]}recompute(e){var t;return p(!this.recomputing,"already recomputing"),v(this),m(this)&&(S(this),u.withValue(this,y,[this,e]),function(e,t){if("function"==typeof e.subscribe)try{l(e),e.unsubscribe=e.subscribe.apply(null,t)}catch(t){return e.setDirty(),!1}return!0}(this,e)&&(this.dirty=!1,m(this)||(t=this,g(t,w)))),h(this.value)}setDirty(){this.dirty||(this.dirty=!0,this.value.length=0,g(this,b),l(this))}dispose(){this.setDirty(),S(this),g(this,(e,t)=>{e.setDirty(),O(e,this)})}forget(){this.dispose()}dependOn(e){e.add(this),this.deps||(this.deps=f.pop()||new Set),this.deps.add(e)}forgetDeps(){this.deps&&(c(this.deps).forEach(e=>e.delete(this)),this.deps.clear(),f.push(this.deps),this.deps=null)}}function v(e){let t=u.getValue();if(t)return e.parents.add(t),t.childValues.has(e)||t.childValues.set(e,[]),m(e)?b(t,e):w(t,e),t}function y(e,t){e.recomputing=!0,e.value.length=0;try{e.value[0]=e.fn.apply(null,t)}catch(t){e.value[1]=t}e.recomputing=!1}function m(e){return e.dirty||!!(e.dirtyChildren&&e.dirtyChildren.size)}function g(e,t){let r=e.parents.size;if(r){let n=c(e.parents);for(let i=0;i<r;++i)t(n[i],e)}}function b(e,t){p(e.childValues.has(t)),p(m(t));let r=!m(e);if(e.dirtyChildren){if(e.dirtyChildren.has(t))return}else e.dirtyChildren=f.pop()||new Set;e.dirtyChildren.add(t),r&&g(e,b)}function w(e,t){p(e.childValues.has(t)),p(!m(t));let r=e.childValues.get(t);0===r.length?e.childValues.set(t,t.value.slice(0)):!function(e,t){let r=e.length;return r>0&&r===t.length&&e[r-1]===t[r-1]}(r,t.value)&&e.setDirty(),k(e,t),m(e)||g(e,w)}function k(e,t){let r=e.dirtyChildren;r&&(r.delete(t),0===r.size&&(f.length<100&&f.push(r),e.dirtyChildren=null))}function S(e){e.childValues.size>0&&e.childValues.forEach((t,r)=>{O(e,r)}),e.forgetDeps(),p(null===e.dirtyChildren)}function O(e,t){t.parents.delete(e),e.childValues.delete(t),k(e,t)}d.count=0;let _={setDirty:!0,dispose:!0,forget:!0};function E(e){let t=new Map,r=e&&e.subscribe;function n(e){let n=u.getValue();if(n){let i=t.get(e);i||t.set(e,i=new Set),n.dependOn(i),"function"==typeof r&&(l(i),i.unsubscribe=r(e))}}return n.dirty=function(e,r){let n=t.get(e);if(n){let i=r&&s.call(_,r)?r:"setDirty";c(n).forEach(e=>e[i]()),t.delete(e),l(n)}},n}function R(...e){return(n||(n=new i.B("function"==typeof WeakMap))).lookupArray(e)}let D=new Set;function I(e,{max:t=65536,makeCacheKey:r=R,keyArgs:n,subscribe:i}=Object.create(null)){let o=new a(t,e=>e.dispose()),s=function(){let t=r.apply(null,n?n.apply(null,arguments):arguments);if(void 0===t)return e.apply(null,arguments);let a=o.get(t);a||(o.set(t,a=new d(e)),a.subscribe=i,a.forget=()=>o.delete(t));let s=a.recompute(Array.prototype.slice.call(arguments));return o.set(t,a),D.add(o),u.hasValue()||(D.forEach(e=>e.clean()),D.clear()),s};function c(e){let t=o.get(e);t&&t.setDirty()}function l(e){let t=o.get(e);if(t)return t.peek()}function f(e){return o.delete(e)}return Object.defineProperty(s,"size",{get:()=>o.map.size,configurable:!1,enumerable:!1}),Object.freeze(s.options={max:t,makeCacheKey:r,keyArgs:n,subscribe:i}),s.dirtyKey=c,s.dirty=function(){c(r.apply(null,arguments))},s.peekKey=l,s.peek=function(){return l(r.apply(null,arguments))},s.forgetKey=f,s.forget=function(){return f(r.apply(null,arguments))},s.makeCacheKey=r,s.getKey=n?function(){return r.apply(null,n.apply(null,arguments))}:r,Object.freeze(s)}},69090:function(e,t,r){function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function i(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function o(e,t,r){return t&&i(e.prototype,t),r&&i(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}r.d(t,{y:function(){return S}});var a=function(){return"function"==typeof Symbol},u=function(e){return a()&&!!Symbol[e]},s=function(e){return u(e)?Symbol[e]:"@@"+e};a()&&!u("observable")&&(Symbol.observable=Symbol("observable"));var c=s("iterator"),l=s("observable"),f=s("species");function p(e,t){var r=e[t];if(null!=r){if("function"!=typeof r)throw TypeError(r+" is not a function");return r}}function h(e){var t=e.constructor;return void 0!==t&&null===(t=t[f])&&(t=void 0),void 0!==t?t:S}function d(e){d.log?d.log(e):setTimeout(function(){throw e})}function v(e){Promise.resolve().then(function(){try{e()}catch(e){d(e)}})}function y(e){var t=e._cleanup;if(void 0!==t){if(e._cleanup=void 0,!t)return;try{if("function"==typeof t)t();else{var r=p(t,"unsubscribe");r&&r.call(t)}}catch(e){d(e)}}}function m(e){e._observer=void 0,e._queue=void 0,e._state="closed"}function g(e,t,r){e._state="running";var n=e._observer;try{var i=p(n,t);switch(t){case"next":i&&i.call(n,r);break;case"error":if(m(e),i)i.call(n,r);else throw r;break;case"complete":m(e),i&&i.call(n)}}catch(e){d(e)}"closed"===e._state?y(e):"running"===e._state&&(e._state="ready")}function b(e,t,r){if("closed"!==e._state){if("buffering"===e._state){e._queue.push({type:t,value:r});return}if("ready"!==e._state){e._state="buffering",e._queue=[{type:t,value:r}],v(function(){return function(e){var t=e._queue;if(t){e._queue=void 0,e._state="ready";for(var r=0;r<t.length&&(g(e,t[r].type,t[r].value),"closed"!==e._state);++r);}}(e)});return}g(e,t,r)}}var w=function(){function e(e,t){this._cleanup=void 0,this._observer=e,this._queue=void 0,this._state="initializing";var r=new k(this);try{this._cleanup=t.call(void 0,r)}catch(e){r.error(e)}"initializing"===this._state&&(this._state="ready")}return e.prototype.unsubscribe=function(){"closed"!==this._state&&(m(this),y(this))},o(e,[{key:"closed",get:function(){return"closed"===this._state}}]),e}(),k=function(){function e(e){this._subscription=e}var t=e.prototype;return t.next=function(e){b(this._subscription,"next",e)},t.error=function(e){b(this._subscription,"error",e)},t.complete=function(){b(this._subscription,"complete")},o(e,[{key:"closed",get:function(){return"closed"===this._subscription._state}}]),e}(),S=function(){function e(t){if(!(this instanceof e))throw TypeError("Observable cannot be called as a function");if("function"!=typeof t)throw TypeError("Observable initializer must be a function");this._subscriber=t}var t=e.prototype;return t.subscribe=function(e){return("object"!=typeof e||null===e)&&(e={next:e,error:arguments[1],complete:arguments[2]}),new w(e,this._subscriber)},t.forEach=function(e){var t=this;return new Promise(function(r,n){if("function"!=typeof e){n(TypeError(e+" is not a function"));return}function i(){o.unsubscribe(),r()}var o=t.subscribe({next:function(t){try{e(t,i)}catch(e){n(e),o.unsubscribe()}},error:n,complete:r})})},t.map=function(e){var t=this;if("function"!=typeof e)throw TypeError(e+" is not a function");return new(h(this))(function(r){return t.subscribe({next:function(t){try{t=e(t)}catch(e){return r.error(e)}r.next(t)},error:function(e){r.error(e)},complete:function(){r.complete()}})})},t.filter=function(e){var t=this;if("function"!=typeof e)throw TypeError(e+" is not a function");return new(h(this))(function(r){return t.subscribe({next:function(t){try{if(!e(t))return}catch(e){return r.error(e)}r.next(t)},error:function(e){r.error(e)},complete:function(){r.complete()}})})},t.reduce=function(e){var t=this;if("function"!=typeof e)throw TypeError(e+" is not a function");var r=h(this),n=arguments.length>1,i=!1,o=arguments[1],a=o;return new r(function(r){return t.subscribe({next:function(t){var o=!i;if(i=!0,!o||n)try{a=e(a,t)}catch(e){return r.error(e)}else a=t},error:function(e){r.error(e)},complete:function(){if(!i&&!n)return r.error(TypeError("Cannot reduce an empty sequence"));r.next(a),r.complete()}})})},t.concat=function(){for(var e=this,t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];var i=h(this);return new i(function(t){var n,o=0;return function e(a){n=a.subscribe({next:function(e){t.next(e)},error:function(e){t.error(e)},complete:function(){o===r.length?(n=void 0,t.complete()):e(i.from(r[o++]))}})}(e),function(){n&&(n.unsubscribe(),n=void 0)}})},t.flatMap=function(e){var t=this;if("function"!=typeof e)throw TypeError(e+" is not a function");var r=h(this);return new r(function(n){var i=[],o=t.subscribe({next:function(t){if(e)try{t=e(t)}catch(e){return n.error(e)}var o=r.from(t).subscribe({next:function(e){n.next(e)},error:function(e){n.error(e)},complete:function(){var e=i.indexOf(o);e>=0&&i.splice(e,1),a()}});i.push(o)},error:function(e){n.error(e)},complete:function(){a()}});function a(){o.closed&&0===i.length&&n.complete()}return function(){i.forEach(function(e){return e.unsubscribe()}),o.unsubscribe()}})},t[l]=function(){return this},e.from=function(t){var r="function"==typeof this?this:e;if(null==t)throw TypeError(t+" is not an object");var i=p(t,l);if(i){var o=i.call(t);if(Object(o)!==o)throw TypeError(o+" is not an object");return o instanceof S&&o.constructor===r?o:new r(function(e){return o.subscribe(e)})}if(u("iterator")&&(i=p(t,c)))return new r(function(e){v(function(){if(!e.closed){for(var r,o=function(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return n(e,void 0);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return n(e,void 0)}}(e))){r&&(e=r);var i=0;return function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(i.call(t));!(r=o()).done;){var a=r.value;if(e.next(a),e.closed)return}e.complete()}})});if(Array.isArray(t))return new r(function(e){v(function(){if(!e.closed){for(var r=0;r<t.length;++r)if(e.next(t[r]),e.closed)return;e.complete()}})});throw TypeError(t+" is not observable")},e.of=function(){for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];return new("function"==typeof this?this:e)(function(e){v(function(){if(!e.closed){for(var t=0;t<r.length;++t)if(e.next(r[t]),e.closed)return;e.complete()}})})},o(e,null,[{key:f,get:function(){return this}}]),e}();a()&&Object.defineProperty(S,Symbol("extensions"),{value:{symbol:l,hostReportError:d},configurable:!0})}}]);