PageSourceSearch

https://app.maestrow.ai/9693.043f4d0b421f07dd.js

js maestrow.ai collected 2026-10-06 12:16:25 UTC 107,593 bytes, 1 lines download raw bytes

1(self.webpackChunkshell_app=self.webpackChunkshell_app||[]).push([[9693],{19693:(Ti,ut,T)=>{T.d(ut,{ApolloCache:()=>Ge,ApolloClient:()=>Nt,ApolloError:()=>Y,ApolloLink:()=>ue.ApolloLink,Cache:()=>Ke,DocumentTransform:()=>je.c,HttpLink:()=>bt,InMemoryCache:()=>vr,MissingFieldError:()=>Ye,NetworkStatus:()=>M,Observable:()=>K.c,ObservableQuery:()=>fe,checkFetcher:()=>dt,concat:()=>ue.concat,createHttpLink:()=>gt,createSignalIfSupported:()=>Ei,defaultDataIdFromObject:()=>Je,defaultPrinter:()=>Qe,disableExperimentalFragmentVariables:()=>be.disableExperimentalFragmentVariables,disableFragmentWarnings:()=>be.disableFragmentWarnings,empty:()=>ue.empty,enableExperimentalFragmentVariables:()=>be.enableExperimentalFragmentVariables,execute:()=>ue.execute,fallbackHttpConfig:()=>pt,from:()=>ue.from,fromError:()=>Ee,fromPromise:()=>_i,gql:()=>be.gql,isApolloError:()=>Pe,isNetworkRequestSettled:()=>Ur,isReference:()=>S.A_,makeReference:()=>S.WU,makeVar:()=>xt,mergeOptions:()=>we.l,parseAndCheckHttpResponse:()=>vt,resetCaches:()=>be.resetCaches,rewriteURIForGET:()=>yt,selectHttpOptionsAndBody:()=>jr,selectHttpOptionsAndBodyInternal:()=>Ie,selectURI:()=>ct,serializeFetchParameter:()=>Ce,setLogVerbosity:()=>dr.Q9,split:()=>ue.split,throwServerError:()=>Me,toPromise:()=>Oi}),T.r(ut);var f=T(31635),_=T(67952),Re=T(28008),ke=T(58762),br=T(560),W=T(64183),K=T(7994),Ce=function(i,e){var t;try{t=JSON.stringify(i)}catch(n){var r=(0,_.vA)(54,e,n.message);throw r.parseError=n,r}return t},ct=function(i,e){return i.getContext().uri||("function"==typeof e?e(i):e||"/graphql")},L=T(36500);function lt(i){var e={next:function(){return i.read()}};return L.uJ&&(e[Symbol.asyncIterator]=function(){return this}),e}function kr(i){var e=i;if(function _r(i){return!!i.body}(i)&&(e=i.body),function wr(i){return!(!L.uJ||!i[Symbol.asyncIterator])}(e))return function Cr(i){var e,t=i[Symbol.asyncIterator]();return(e={next:function(){return t.next()}})[Symbol.asyncIterator]=function(){return this},e}(e);if(function Sr(i){return!!i.getReader}(e))return lt(e.getReader());if(function Tr(i){return!!i.stream}(e))return lt(e.stream().getReader());if(function Dr(i){return!!i.arrayBuffer}(e))return function Or(i){var e=!1,t={next:function(){return e?Promise.resolve({value:void 0,done:!0}):(e=!0,new Promise(function(r,n){i.then(function(a){r({value:a,done:!1})}).catch(n)}))}};return L.uJ&&(t[Symbol.asyncIterator]=function(){return this}),t}(e.arrayBuffer());if(function Rr(i){return!!i.pipe}(e))return function Er(i){var e=null,t=null,r=!1,n=[],a=[];function o(h){if(!t){if(a.length){var v=a.shift();if(Array.isArray(v)&&v[0])return v[0]({value:h,done:!1})}n.push(h)}}function s(h){t=h,a.slice().forEach(function(d){d[1](h)}),!e||e()}function c(){r=!0,a.slice().forEach(function(v){v[0]({value:void 0,done:!0})}),!e||e()}e=function(){e=null,i.removeListener("data",o),i.removeListener("error",s),i.removeListener("end",c),i.removeListener("finish",c),i.removeListener("close",c)},i.on("data",o),i.on("error",s),i.on("end",c),i.on("finish",c),i.on("close",c);var l={next:function(){return function u(){return new Promise(function(h,v){return t?v(t):n.length?h({value:n.shift(),done:!1}):r?h({value:void 0,done:!0}):void a.push([h,v])})}()}};return L.uJ&&(l[Symbol.asyncIterator]=function(){return this}),l}(e);throw new Error("Unknown body type for responseIterator. Please pass a streamable response.")}var Me=function(i,e,t){var r=new Error(t);throw r.name="ServerError",r.response=i,r.statusCode=i.status,r.result=e,r},j=T(51181),Fe=Symbol();function Pe(i){return i.hasOwnProperty("graphQLErrors")}var Y=function(i){function e(t){var r=t.graphQLErrors,n=t.protocolErrors,a=t.clientErrors,o=t.networkError,s=t.errorMessage,c=t.extraInfo,u=i.call(this,s)||this;return u.name="ApolloError",u.graphQLErrors=r||[],u.protocolErrors=n||[],u.clientErrors=a||[],u.networkError=o||null,u.message=s||function(i){var e=(0,f.fX)((0,f.fX)((0,f.fX)([],i.graphQLErrors,!0),i.clientErrors,!0),i.protocolErrors,!0);return i.networkError&&e.push(i.networkError),e.map(function(t){return(0,j.U)(t)&&t.message||"Error message not found."}).join("\n")}(u),u.extraInfo=c,u.cause=(0,f.fX)((0,f.fX)((0,f.fX)([o],r||[],!0),n||[],!0),a||[],!0).find(function(l){return!!l})||null,u.__proto__=e.prototype,u}return(0,f.C6)(e,i),e}(Error),ee=T(49968),ft=Object.prototype.hasOwnProperty;function Qr(i){var e={};return i.split("\n").forEach(function(t){var r=t.indexOf(":");if(r>-1){var n=t.slice(0,r).trim().toLowerCase(),a=t.slice(r+1).trim();e[n]=a}}),e}function ht(i,e){i.status>=300&&Me(i,function(){try{return JSON.parse(e)}catch{return e}}(),"Response not successful: Received status code ".concat(i.status));try{return JSON.parse(e)}catch(n){var r=n;throw r.name="ServerParseError",r.response=i,r.statusCode=i.status,r.bodyText=e,r}}function vt(i){return function(e){return e.text().then(function(t){return ht(e,t)}).then(function(t){return!Array.isArray(t)&&!ft.call(t,"data")&&!ft.call(t,"errors")&&Me(e,t,"Server response was missing for query '".concat(Array.isArray(i)?i.map(function(r){return r.operationName}):i.operationName,"'.")),t})}}var dt=function(i){if(!i&&typeof fetch>"u")throw(0,_.vA)(51)},te=T(61658),pt={http:{includeQuery:!0,includeExtensions:!1,preserveHeaderCase:!1},headers:{accept:"*/*","content-type":"application/json"},options:{method:"POST"}},Qe=function(i,e){return e(i)};function jr(i,e){for(var t=[],r=2;r<arguments.length;r++)t[r-2]=arguments[r];return t.unshift(e),Ie.apply(void 0,(0,f.fX)([i,Qe],t,!1))}function Ie(i,e){for(var t=[],r=2;r<arguments.length;r++)t[r-2]=arguments[r];var n={},a={};t.forEach(function(h){n=(0,f.Cl)((0,f.Cl)((0,f.Cl)({},n),h.options),{headers:(0,f.Cl)((0,f.Cl)({},n.headers),h.headers)}),h.credentials&&(n.credentials=h.credentials),a=(0,f.Cl)((0,f.Cl)({},a),h.http)}),n.headers&&(n.headers=function Lr(i,e){if(!e){var t={};
1return Object.keys(Object(i)).forEach(function(a){t[a.toLowerCase()]=i[a]}),t}var r={};Object.keys(Object(i)).forEach(function(a){r[a.toLowerCase()]={originalName:a,value:i[a]}});var n={};return Object.keys(r).forEach(function(a){n[r[a].originalName]=r[a].value}),n}(n.headers,a.preserveHeaderCase));var u=i.query,l={operationName:i.operationName,variables:i.variables};return a.includeExtensions&&(l.extensions=i.extensions),a.includeQuery&&(l.query=e(u,te.y)),{options:n,body:l}}function yt(i,e){var t=[],r=function(h,v){t.push("".concat(h,"=").concat(encodeURIComponent(v)))};if("query"in e&&r("query",e.query),e.operationName&&r("operationName",e.operationName),e.variables){var n=void 0;try{n=Ce(e.variables,"Variables map")}catch(h){return{parseError:h}}r("variables",n)}if(e.extensions){var a=void 0;try{a=Ce(e.extensions,"Extensions map")}catch(h){return{parseError:h}}r("extensions",a)}var o="",s=i,c=i.indexOf("#");-1!==c&&(o=i.substr(c),s=i.substr(0,c));var u=-1===s.indexOf("?")?"?":"&";return{newURI:s+u+t.join("&")+o}}function Ee(i){return new K.c(function(e){e.error(i)})}var x=T(37502),J=T(21601),Q=T(14229),mt=(0,_.no)(function(){return fetch}),gt=function(i){void 0===i&&(i={});var e=i.uri,t=void 0===e?"/graphql":e,r=i.fetch,n=i.print,a=void 0===n?Qe:n,o=i.includeExtensions,s=i.preserveHeaderCase,c=i.useGETForQueries,u=i.includeUnusedVariables,l=void 0!==u&&u,h=(0,f.Tt)(i,["uri","fetch","print","includeExtensions","preserveHeaderCase","useGETForQueries","includeUnusedVariables"]);!1!==globalThis.__DEV__&&dt(r||mt);var v={http:{includeExtensions:o,preserveHeaderCase:s},options:h.fetchOptions,credentials:h.credentials,headers:h.headers};return new Re.C(function(d){var p=ct(d,t),y=d.getContext(),m={};if(y.clientAwareness){var g=y.clientAwareness,C=g.name,b=g.version;C&&(m["apollographql-client-name"]=C),b&&(m["apollographql-client-version"]=b)}var E=(0,f.Cl)((0,f.Cl)({},m),y.headers),O={http:y.http,options:y.fetchOptions,credentials:y.credentials,headers:E};if((0,W.d8)(["client"],d.query)){!1!==globalThis.__DEV__&&!1!==globalThis.__DEV__&&_.V1.warn(52);var w=(0,J.er)(d.query);if(!w)return Ee(new 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`."));d.query=w}var V,k=Ie(d,a,pt,v,O),R=k.options,F=k.body;F.variables&&!l&&(F.variables=function xr(i,e){var t=(0,f.Cl)({},i),r=new Set(Object.keys(i));return(0,x.visit)(e,{Variable:function(n,a,o){o&&"VariableDefinition"!==o.kind&&r.delete(n.name.value)}}),r.forEach(function(n){delete t[n]}),t}(F.variables,d.query)),!R.signal&&typeof AbortController<"u"&&(V=new AbortController,R.signal=V.signal);var N,A="OperationDefinition"===(N=(0,Q.Vn)(d.query)).kind&&"subscription"===N.operation,z=(0,W.d8)(["defer"],d.query);if(c&&!d.query.definitions.some(function(N){return"OperationDefinition"===N.kind&&"mutation"===N.operation})&&(R.method="GET"),z||A){R.headers=R.headers||{};var ot="multipart/mixed;";A&&z&&!1!==globalThis.__DEV__&&_.V1.warn(53),A?ot+="boundary=graphql;subscriptionSpec=1.0,application/json":z&&(ot+="deferSpec=20220824,application/json"),R.headers.accept=ot}if("GET"===R.method){var pr=yt(p,F),Si=pr.newURI,yr=pr.parseError;if(yr)return Ee(yr);p=Si}else try{R.body=Ce(F,"Payload")}catch(N){return Ee(N)}return new K.c(function(N){var wi=r||(0,_.no)(function(){return fetch})||mt,mr=N.next.bind(N);return wi(p,R).then(function(ce){var st;d.setContext({response:ce});var gr=null===(st=ce.headers)||void 0===st?void 0:st.get("content-type");return null!==gr&&/^multipart\/mixed/i.test(gr)?function Pr(i,e){return(0,f.sH)(this,void 0,void 0,function(){var t,r,n,a,o,s,c,u,l,h,v,d,p,y,m,g,C,b,E,O,w,k,R,F;return(0,f.YH)(this,function(V){switch(V.label){case 0:if(void 0===TextDecoder)throw new Error("TextDecoder must be defined in the environment: please import a polyfill.");t=new TextDecoder("utf-8"),r=null===(F=i.headers)||void 0===F?void 0:F.get("content-type"),n="boundary=",a=null!=r&&r.includes(n)?null==r?void 0:r.substring((null==r?void 0:r.indexOf(n))+9).replace(/['"]/g,"").replace(/\;(.*)/gm,"").trim():"-",o="\r\n--".concat(a),s="",c=kr(i),u=!0,V.label=1;case 1:return u?[4,c.next()]:[3,3];
1case 2:for(l=V.sent(),v=l.done,d="string"==typeof(h=l.value)?h:t.decode(h),p=s.length-o.length+1,u=!v,y=(s+=d).indexOf(o,p);y>-1;){if(m=void 0,k=[s.slice(0,y),s.slice(y+o.length)],s=k[1],g=(m=k[0]).indexOf("\r\n\r\n"),C=Qr(m.slice(0,g)),(b=C["content-type"])&&-1===b.toLowerCase().indexOf("application/json"))throw new Error("Unsupported patch content type: application/json is required.");if(E=m.slice(g))if(O=ht(i,E),Object.keys(O).length>1||"data"in O||"incremental"in O||"errors"in O||"payload"in O)if((0,ee.Nw)(O)){if(w={},"payload"in O){if(1===Object.keys(O).length&&null===O.payload)return[2];w=(0,f.Cl)({},O.payload)}"errors"in O&&(w=(0,f.Cl)((0,f.Cl)({},w),{extensions:(0,f.Cl)((0,f.Cl)({},"extensions"in w?w.extensions:null),(R={},R[Fe]=O.errors,R))})),e(w)}else e(O);else if(1===Object.keys(O).length&&"hasNext"in O&&!O.hasNext)return[2];y=s.indexOf(o)}return[3,1];case 3:return[2]}})})}(ce,mr):vt(d)(ce).then(mr)}).then(function(){V=void 0,N.complete()}).catch(function(ce){V=void 0,function Ir(i,e){i.result&&i.result.errors&&i.result.data&&e.next(i.result),e.error(i)}(ce,N)}),function(){V&&V.abort()}})})},bt=function(i){function e(t){void 0===t&&(t={});var r=i.call(this,gt(t).request)||this;return r.options=t,r}return(0,f.C6)(e,i),e}(Re.C);const{toString:Ct,hasOwnProperty:zr}=Object.prototype,Et=Function.prototype.toString,Ve=new Map;function I(i,e){try{return qe(i,e)}finally{Ve.clear()}}const Ae=I;function qe(i,e){if(i===e)return!0;const t=Ct.call(i);if(t!==Ct.call(e))return!1;switch(t){case"[object Array]":if(i.length!==e.length)return!1;case"[object Object]":{if(_t(i,e))return!0;const n=Ot(i),a=Ot(e),o=n.length;if(o!==a.length)return!1;for(let s=0;s<o;++s)if(!zr.call(e,n[s]))return!1;for(let s=0;s<o;++s){const c=n[s];if(!qe(i[c],e[c]))return!1}return!0}case"[object Error]":return i.name===e.name&&i.message===e.message;case"[object Number]":if(i!=i)return e!=e;case"[object Boolean]":case"[object Date]":return+i==+e;case"[object RegExp]":case"[object String]":return i==`${e}`;case"[object Map]":case"[object Set]":{if(i.size!==e.size)return!1;if(_t(i,e))return!0;const n=i.entries(),a="[object Map]"===t;for(;;){const o=n.next();if(o.done)break;const[s,c]=o.value;if(!e.has(s)||a&&!qe(c,e.get(s)))return!1}return!0}case"[object Uint16Array]":case"[object Uint8Array]":case"[object Uint32Array]":case"[object Int32Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object ArrayBuffer]":i=new Uint8Array(i),e=new Uint8Array(e);case"[object DataView]":{let n=i.byteLength;if(n===e.byteLength)for(;n--&&i[n]===e[n];);return-1===n}case"[object AsyncFunction]":case"[object GeneratorFunction]":case"[object AsyncGeneratorFunction]":case"[object Function]":{const n=Et.call(i);return n===Et.call(e)&&!function Br(i,e){const t=i.length-e.length;return t>=0&&i.indexOf(e,t)===t}(n,Wr)}}return!1}function Ot(i){return Object.keys(i).filter(Nr,i)}function Nr(i){return void 0!==this[i]}const Wr="{ [native code] }";function _t(i,e){let t=Ve.get(i);if(t){if(t.has(e))return!0}else Ve.set(i,t=new Set);return t.add(e),!1}var H=T(46108),re=T(32130),je=T(28926),Le=T(54614),ie=T(79250),P=T(47715),S=T(31367),St=T(99977),le=T(70265),M=function(i){return i[i.loading=1]="loading",i[i.setVariables=2]="setVariables",i[i.fetchMore=3]="fetchMore",i[i.refetch=4]="refetch",i[i.poll=6]="poll",i[i.ready=7]="ready",i[i.error=8]="error",i}(M||{});function ne(i){return!!i&&i<7}function Ur(i){return 7===i||8===i}var Oe=T(70120),wt=T(84246),Hr=T(48134),Tt=T(25921),Kr=T(85856);function Dt(i,e,t,r){var n=e.data,a=(0,f.Tt)(e,["data"]),o=t.data,s=(0,f.Tt)(t,["data"]);return Ae(a,s)&&_e((0,Q.Vn)(i).selectionSet,n,o,{fragmentMap:(0,H.JG)((0,Q.zK)(i)),variables:r})}function _e(i,e,t,r){if(e===t)return!0;var n=new Set;return i.selections.every(function(a){if(n.has(a)||(n.add(a),!(0,W.MS)(a,r.variables))||Rt(a))return!0;if((0,S.dt)(a)){var o=(0,S.ue)(a),s=e&&e[o],c=t&&t[o],u=a.selectionSet;if(!u)return Ae(s,c);var l=Array.isArray(s),h=Array.isArray(c);if(l!==h)return!1;if(l&&h){var v=s.length;if(c.length!==v)return!1;for(var d=0;d<v;++d)if(!_e(u,s[d],c[d],r))return!1;return!0}return _e(u,s,c,r)}var p=(0,H.HQ)(a,r.fragmentMap);return p?!!Rt(p)||_e(p.selectionSet,e,t,r):void 0})}function Rt(i){return!!i.directives&&i.directives.some(Gr)}function Gr(i){return"nonreactive"===i.name.value}var G=T(89163),D=T(82374),kt=Object.assign,Yr=Object.hasOwnProperty,fe=function(i){function e(t){var r=t.queryManager,n=t.queryInfo,a=t.options,o=this,s=e.inactiveOnCreation.getValue();(o=i.call(this,function(g){o._getOrCreateQuery();try{var C=g._subscription._observer;C&&!C.error&&(C.error=Jr)}catch{}var b=!o.observers.size;o.observers.add(g);var E=o.last;return E&&E.error?g.error&&g.error(E.error):E&&E.result&&g.next&&g.next(o.maskResult(E.result)),b&&o.reobserve().catch(function(){}),function(){o.observers.delete(g)&&!o.observers.size&&o.tearDownQuery()}})||this).observers=new Set,o.subscriptions=new Set,o.dirty=!1,o._getOrCreateQuery=function(){return s&&(r.queries.set(o.queryId,n),s=!1),o.queryManager.getOrCreateQuery(o.queryId)},o.queryInfo=n,o.queryManager=r,o.waitForOwnResult=xe(a.fetchPolicy),o.isTornDown=!1,o.subscribeToMore=o.subscribeToMore.bind(o),o.maskResult=o.maskResult.bind(o);var c=r.defaultOptions.watchQuery,l=(void 0===c?{}:c).fetchPolicy,h=void 0===l?"cache-first":l,v=a.fetchPolicy,d=void 0===v?h:v,p=a.initialFetchPolicy,y=void 0===p?"standby"===d?h:d:p;o.options=(0,f.Cl)((0,f.Cl)({},a),{initialFetchPolicy:y,fetchPolicy:d}),o.queryId=n.queryId||r.generateQueryId();var m=(0,Q.Vu)(o.query);return o.queryName=m&&m.name&&m.name.value,o}return(0,f.C6)(e,i),Object.defineProperty(e.prototype,"query",{get:function(){return this.lastQuery||this.options.query}
1,enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"variables",{get:function(){return this.options.variables},enumerable:!1,configurable:!0}),e.prototype.result=function(){var t=this;return!1!==globalThis.__DEV__&&(0,D.S2)("observableQuery.result",function(){!1!==globalThis.__DEV__&&_.V1.warn(23)}),new Promise(function(r,n){var a={next:function(s){r(s),t.observers.delete(a),t.observers.size||t.queryManager.removeQuery(t.queryId),setTimeout(function(){o.unsubscribe()},0)},error:n},o=t.subscribe(a)})},e.prototype.resetDiff=function(){this.queryInfo.resetDiff()},e.prototype.getCurrentFullResult=function(t){var r=this;void 0===t&&(t=!0);var n=(0,D.lz)("getLastResult",function(){return r.getLastResult(!0)}),a=this.queryInfo.networkStatus||n&&n.networkStatus||M.ready,o=(0,f.Cl)((0,f.Cl)({},n),{loading:ne(a),networkStatus:a}),s=this.options.fetchPolicy,c=void 0===s?"cache-first":s;if(!xe(c)&&!this.queryManager.getDocumentInfo(this.query).hasForcedResolvers)if(this.waitForOwnResult)this.queryInfo.updateWatch();else{var u=this.queryInfo.getDiff();(u.complete||this.options.returnPartialData)&&(o.data=u.result),I(o.data,{})&&(o.data=void 0),u.complete?(delete o.partial,u.complete&&o.networkStatus===M.loading&&("cache-first"===c||"cache-only"===c)&&(o.networkStatus=M.ready,o.loading=!1)):o.partial=!0,o.networkStatus===M.ready&&(o.error||o.errors)&&(o.networkStatus=M.error),!1!==globalThis.__DEV__&&!u.complete&&!this.options.partialRefetch&&!o.loading&&!o.data&&!o.error&&Mt(u.missing)}return t&&this.updateLastResult(o),o},e.prototype.getCurrentResult=function(t){return void 0===t&&(t=!0),this.maskResult(this.getCurrentFullResult(t))},e.prototype.isDifferentFromLastResult=function(t,r){if(!this.last)return!0;var n=this.queryManager.getDocumentInfo(this.query),a=this.queryManager.dataMasking;return(a||n.hasNonreactiveDirective?!Dt(a?n.nonReactiveQuery:this.query,this.last.result,t,this.variables):!I(this.last.result,t))||r&&!I(this.last.variables,r)},e.prototype.getLast=function(t,r){var n=this.last;if(n&&n[t]&&(!r||I(n.variables,this.variables)))return n[t]},e.prototype.getLastResult=function(t){return!1!==globalThis.__DEV__&&(0,D.S2)("getLastResult",function(){!1!==globalThis.__DEV__&&_.V1.warn(24)}),this.getLast("result",t)},e.prototype.getLastError=function(t){return!1!==globalThis.__DEV__&&(0,D.S2)("getLastError",function(){!1!==globalThis.__DEV__&&_.V1.warn(25)}),this.getLast("error",t)},e.prototype.resetLastResults=function(){!1!==globalThis.__DEV__&&(0,D.S2)("resetLastResults",function(){!1!==globalThis.__DEV__&&_.V1.warn(26)}),delete this.last,this.isTornDown=!1},e.prototype.resetQueryStoreErrors=function(){!1!==globalThis.__DEV__&&!1!==globalThis.__DEV__&&_.V1.warn(27),this.queryManager.resetErrors(this.queryId)},e.prototype.refetch=function(t){var r,n={pollInterval:0};if(n.fetchPolicy="no-cache"===this.options.fetchPolicy?"no-cache":"network-only",!1!==globalThis.__DEV__&&t&&Yr.call(t,"variables")){var o=(0,Q.AT)(this.query),s=o.variableDefinitions;(!s||!s.some(function(c){return"variables"===c.variable.name.value}))&&!1!==globalThis.__DEV__&&_.V1.warn(28,t,(null===(r=o.name)||void 0===r?void 0:r.value)||o)}return t&&!I(this.options.variables,t)&&(n.variables=this.options.variables=(0,f.Cl)((0,f.Cl)({},this.options.variables),t)),this.queryInfo.resetLastWrite(),this.reobserve(n,M.refetch)},e.prototype.fetchMore=function(t){var r=this,n=(0,f.Cl)((0,f.Cl)({},t.query?t:(0,f.Cl)((0,f.Cl)((0,f.Cl)((0,f.Cl)({},this.options),{query:this.options.query}),t),{variables:(0,f.Cl)((0,f.Cl)({},this.options.variables),t.variables)})),{fetchPolicy:"no-cache"});n.query=this.transformDocument(n.query);var a=this.queryManager.generateQueryId();this.lastQuery=t.query?this.transformDocument(this.options.query):n.query;var o=this.queryInfo,s=o.networkStatus;o.networkStatus=M.fetchMore,n.notifyOnNetworkStatusChange&&this.observe();var c=new Set,u=null==t?void 0:t.updateQuery,l="no-cache"!==this.options.fetchPolicy;return l||(0,_.V1)(u,29),this.queryManager.fetchQuery(a,n,M.fetchMore).then(function(h){if(r.queryManager.removeQuery(a),o.networkStatus===M.fetchMore&&(o.networkStatus=s),l)r.queryManager.cache.batch({update:function(p){var y=t.updateQuery;y?p.updateQuery({query:r.query,variables:r.variables,returnPartialData:!0,optimistic:!1},function(m){return y(m,{fetchMoreResult:h.data,variables:n.variables})}):p.writeQuery({query:n.query,variables:n.variables,data:h.data})}
1,onWatchUpdated:function(p){c.add(p.query)}});else{var v=r.getLast("result"),d=u(v.data,{fetchMoreResult:h.data,variables:n.variables});r.reportResult((0,f.Cl)((0,f.Cl)({},v),{networkStatus:s,loading:ne(s),data:d}),r.variables)}return r.maskResult(h)}).finally(function(){l&&!c.has(r.query)&&r.reobserveCacheFirst()})},e.prototype.subscribeToMore=function(t){var r=this,n=this.queryManager.startGraphQLSubscription({query:t.document,variables:t.variables,context:t.context}).subscribe({next:function(a){var o=t.updateQuery;o&&r.updateQuery(function(s,c){return o(s,(0,f.Cl)({subscriptionData:a},c))})},error:function(a){t.onError?t.onError(a):!1!==globalThis.__DEV__&&_.V1.error(30,a)}});return this.subscriptions.add(n),function(){r.subscriptions.delete(n)&&n.unsubscribe()}},e.prototype.setOptions=function(t){return!1!==globalThis.__DEV__&&((0,D.cc)(t,"canonizeResults","setOptions"),(0,D.S2)("setOptions",function(){!1!==globalThis.__DEV__&&_.V1.warn(31)})),this.reobserve(t)},e.prototype.silentSetOptions=function(t){var r=(0,Oe.o)(this.options,t||{});kt(this.options,r)},e.prototype.setVariables=function(t){var r=this;return I(this.variables,t)?this.observers.size?(0,D.lz)("observableQuery.result",function(){return r.result()}):Promise.resolve():(this.options.variables=t,this.observers.size?this.reobserve({fetchPolicy:this.options.initialFetchPolicy,variables:t},M.setVariables):Promise.resolve())},e.prototype.updateQuery=function(t){var r=this.queryManager,n=r.cache.diff({query:this.options.query,variables:this.variables,returnPartialData:!0,optimistic:!1}),a=n.result,s=t(a,{variables:this.variables,complete:!!n.complete,previousData:a});s&&(r.cache.writeQuery({query:this.options.query,data:s,variables:this.variables}),r.broadcastQueries())},e.prototype.startPolling=function(t){this.options.pollInterval=t,this.updatePolling()},e.prototype.stopPolling=function(){this.options.pollInterval=0,this.updatePolling()},e.prototype.applyNextFetchPolicy=function(t,r){if(r.nextFetchPolicy){var n=r.fetchPolicy,a=void 0===n?"cache-first":n,o=r.initialFetchPolicy,s=void 0===o?a:o;"standby"===a||(r.fetchPolicy="function"==typeof r.nextFetchPolicy?r.nextFetchPolicy(a,{reason:t,options:r,observable:this,initialFetchPolicy:s}):"variables-changed"===t?s:r.nextFetchPolicy)}return r.fetchPolicy},e.prototype.fetch=function(t,r,n){var a=this._getOrCreateQuery();return a.setObservableQuery(this),this.queryManager.fetchConcastWithInfo(a,t,r,n)},e.prototype.updatePolling=function(){var t=this;if(!this.queryManager.ssrMode){var n=this.pollingInfo,a=this.options.pollInterval;if(!a||!this.hasObservers())return void(n&&(clearTimeout(n.timeout),delete this.pollingInfo));if(!n||n.interval!==a){(0,_.V1)(a,32),(n||(this.pollingInfo={})).interval=a;var s=function(){var u,l;t.pollingInfo&&(ne(t.queryInfo.networkStatus)||null!==(l=(u=t.options).skipPollAttempt)&&void 0!==l&&l.call(u)?c():t.reobserve({fetchPolicy:"no-cache"===t.options.initialFetchPolicy?"no-cache":"network-only"},M.poll).then(c,c))},c=function(){var u=t.pollingInfo;u&&(clearTimeout(u.timeout),u.timeout=setTimeout(s,u.interval))};c()}}},e.prototype.updateLastResult=function(t,r){var n=this;void 0===r&&(r=this.variables);var a=(0,D.lz)("getLastError",function(){return n.getLastError()});return a&&this.last&&!I(r,this.last.variables)&&(a=void 0),this.last=(0,f.Cl)({result:this.queryManager.assumeImmutableResults?t:(0,wt.m)(t),variables:r},a?{error:a}:null)},e.prototype.reobserveAsConcast=function(t,r){var n=this;this.isTornDown=!1;var a=r===M.refetch||r===M.fetchMore||r===M.poll,o=this.options.variables,s=this.options.fetchPolicy,c=(0,Oe.o)(this.options,t||{}),u=a?c:kt(this.options,c),l=this.transformDocument(u.query);this.lastQuery=l,a||(this.updatePolling(),t&&t.variables&&!I(t.variables,o)&&"standby"!==u.fetchPolicy&&(u.fetchPolicy===s||"function"==typeof u.nextFetchPolicy)&&(this.applyNextFetchPolicy("variables-changed",u),void 0===r&&(r=M.setVariables))),this.waitForOwnResult&&(this.waitForOwnResult=xe(u.fetchPolicy));var h=function(){n.concast===p&&(n.waitForOwnResult=!1)},v=u.variables&&(0,f.Cl)({},u.variables),d=this.fetch(u,r,l),p=d.concast,m={next:function(g){I(n.variables,v)&&(h(),n.reportResult(g,v))},error:function(g){I(n.variables,v)&&(Pe(g)||(g=new Y({networkError:g})),h(),n.reportError(g,v))}};return!a&&(d.fromLink||!this.concast)&&(this.concast&&this.observer&&this.concast.removeObserver(this.observer),this.concast=p,this.observer=m),p.addObserver(m),p},e.prototype.reobserve=function(t,r){return(0,Hr.X)(this.reobserveAsConcast(t,r).promise.then(this.maskResult))},e.prototype.resubscribeAfterError=function(){for(var t=this,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var a=this.last;(0,D.lz)("resetLastResults",function(){return t.resetLastResults()});var o=this.subscribe.apply(this,r);return this.last=a,o},e.prototype.observe=function(){this.reportResult(this.getCurrentFullResult(!1),this.variables)},e.prototype.reportResult=function(t,r){var n=this,a=(0,D.lz)("getLastError",function(){return n.getLastError()}),o=this.isDifferentFromLastResult(t,r);(a||!t.partial||this.options.returnPartialData)&&this.updateLastResult(t,r),(a||o)&&(0,Tt.w)(this.observers,"next",this.maskResult(t))},e.prototype.reportError=function(t,r){var n=this,a=(0,f.Cl)((0,f.Cl)({},(0,D.lz)("getLastResult",function(){return n.getLastResult()})),{error:t,errors:t.graphQLErrors,networkStatus:M.error,loading:!1});this.updateLastResult(a,r),(0,Tt.w)(this.observers,"error",this.last.error=t)},e.prototype.hasObservers=function(){return this.observers.size>0},e.prototype.tearDownQuery=function(){this.isTornDown||(this.concast&&this.observer&&(this.concast.removeObserver(this.observer),delete this.concast,delete this.observer),this.stopPolling(),this.subscriptions.forEach(function(t){return t.unsubscribe()}),this.subscriptions.clear(),this.queryManager.stopQuery(this.queryId),this.observers.clear(),this.isTornDown=!0)},e.prototype.transformDocument=function(t){return this.queryManager.transform(t)},e.prototype.maskResult=function(t){return t&&"data"in t?(0,f.Cl)((0,f.Cl)({},t),{data:this.queryManager.maskOperation({document:this.query,data:t.data,fetchPolicy:this.options.fetchPolicy,id:this.queryId})}):t},e.prototype.resetNotifications=function(){this.cancelNotifyTimeout(),this.dirty=!1},e.prototype.cancelNotifyTimeout=function(){this.notifyTimeout&&(clearTimeout(this.notifyTimeout),this.notifyTimeout=void 0)},e.prototype.scheduleNotify=function(){var t=this;this.dirty||(this.dirty=!0,this.notifyTimeout||(this.notifyTimeout=setTimeout(function(){return t.notify()},0)))},e.prototype.notify=function(){this.cancelNotifyTimeout(),!this.dirty||"cache-only"!=this.options.fetchPolicy&&"cache-and-network"!=this.options.fetchPolicy&&ne(this.queryInfo.networkStatus)||(this.queryInfo.getDiff().fromOptimisticTransaction?this.observe():this.reobserveCacheFirst()),this.dirty=!1},e.prototype.reobserveCacheFirst=function(){var t=this.options,r=t.fetchPolicy,n=t.nextFetchPolicy;return"cache-and-network"===r||"network-only"===r?this.reobserve({fetchPolicy:"cache-first",nextFetchPolicy:function(a,o){return this.nextFetchPolicy=n,"function"==typeof this.nextFetchPolicy?this.nextFetchPolicy(a,o):r}}):this.reobserve()},e.inactiveOnCreation=new G.DX,e}(K.c);function Jr(i){!1!==globalThis.__DEV__&&_.V1.error(33,i.message,i.stack)}function Mt(i){!1!==globalThis.__DEV__&&i&&!1!==globalThis.__DEV__&&_.V1.debug(34,i)}function xe(i){return"network-only"===i||"no-cache"===i||"standby"===i}(0,Kr.r)(fe);var B=T(51115),ae=new(L.et?WeakMap:Map);function ze(i,e){var t=i[e];"function"==typeof t&&(i[e]=function(){return ae.set(i,(ae.get(i)+1)%1e15),t.apply(this,arguments)})}var Ne=function(){function i(e,t){void 0===t&&(t=e.generateQueryId()),this.queryId=t,this.document=null,this.lastRequestId=1,this.stopped=!1,this.observableQuery=null;var r=this.cache=e.cache;ae.has(r)||(ae.set(r,0),ze(r,"evict"),ze(r,"modify"),ze(r,"reset"))}return i.prototype.init=function(e){var t=e.networkStatus||M.loading;return this.variables&&this.networkStatus!==M.loading&&!I(this.variables,e.variables)&&(t=M.setVariables),I(e.variables,this.variables)||(this.lastDiff=void 0,this.cancel()),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},i.prototype.resetDiff=function(){this.lastDiff=void 0},i.prototype.getDiff=function(){var e=this,t=this.getDiffOptions();if(this.lastDiff&&I(t,this.lastDiff.options))return this.lastDiff.diff;this.updateWatch(this.variables);var r=this.observableQuery;if(r&&"no-cache"===r.options.fetchPolicy)return{complete:!1};var n=(0,D.lz)("canonizeResults",function(){return e.cache.diff(t)});return this.updateLastDiff(n,t),n},i.prototype.updateLastDiff=function(e,t){this.lastDiff=e?{diff:e,options:t||this.getDiffOptions()}:void 0},i.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}},i.prototype.setDiff=function(e){var r,t=this,n=this.lastDiff&&this.lastDiff.diff;e&&!e.complete&&(0,D.lz)("getLastError",function(){var a;return null===(a=t.observableQuery)||void 0===a?void 0:a.getLastError()})||(this.updateLastDiff(e),I(n&&n.result,e&&e.result)||null===(r=this.observableQuery)||void 0===r||r.scheduleNotify())},i.prototype.setObservableQuery=function(e){e!==this.observableQuery&&(this.observableQuery=e,e&&(e.queryInfo=this))},i.prototype.stop=function(){var e;if(!this.stopped){this.stopped=!0,null===(e=this.observableQuery)||void 0===e||e.resetNotifications(),this.cancel();var t=this.observableQuery;t&&t.stopPolling()}},i.prototype.cancel=function(){var e;null===(e=this.cancelWatch)||void 0===e||e.call(this),this.cancelWatch=void 0},i.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 n=(0,f.Cl)((0,f.Cl)({},this.getDiffOptions(e)),{watcher:this,callback:function(a){return t.setDiff(a)}});(!this.lastWatch||!I(n,this.lastWatch))&&(this.cancel(),this.cancelWatch=this.cache.watch(this.lastWatch=n))}},i.prototype.resetLastWrite=function(){this.lastWrite=void 0},i.prototype.shouldWrite=function(e,t){var r=this.lastWrite;return!(r&&r.dmCount===ae.get(this.cache)&&I(t,r.variables)&&I(e.data,r.result.data))},i.prototype.markResult=function(e,t,r,n){var o,a=this,s=new B.ZI,c=(0,P.E)(e.errors)?e.errors.slice(0):[];if(null===(o=this.observableQuery)||void 0===o||o.resetNotifications(),"incremental"in e&&(0,P.E)(e.incremental)){var u=(0,ee.bd)(this.getDiff().result,e);e.data=u}else if("hasNext"in e&&e.hasNext){var l=this.getDiff();
1e.data=s.merge(l.result,e.data)}this.graphQLErrors=c,"no-cache"===r.fetchPolicy?this.updateLastDiff({result:e.data,complete:!0},this.getDiffOptions(r.variables)):0!==n&&(We(e,r.errorPolicy)?this.cache.performTransaction(function(h){if(a.shouldWrite(e,r.variables))h.writeQuery({query:t,data:e.data,variables:r.variables,overwrite:1===n}),a.lastWrite={result:e,variables:r.variables,dmCount:ae.get(a.cache)};else if(a.lastDiff&&a.lastDiff.diff.complete)return void(e.data=a.lastDiff.diff.result);var v=a.getDiffOptions(r.variables),d=(0,D.lz)("canonizeResults",function(){return h.diff(v)});!a.stopped&&I(a.variables,r.variables)&&a.updateWatch(r.variables),a.updateLastDiff(d,v),d.complete&&(e.data=d.result)}):this.lastWrite=void 0)},i.prototype.markReady=function(){return this.networkError=null,this.networkStatus=M.ready},i.prototype.markError=function(e){var t;return this.networkStatus=M.error,this.lastWrite=void 0,null===(t=this.observableQuery)||void 0===t||t.resetNotifications(),e.graphQLErrors&&(this.graphQLErrors=e.graphQLErrors),e.networkError&&(this.networkError=e.networkError),e},i}();function We(i,e){void 0===e&&(e="none");var t="ignore"===e||"all"===e,r=!(0,ie.t)(i);return!r&&t&&i.data&&(r=!0),r}var he=T(4420),Xr=T(62170),ve=T(42151),Se=T(12848),Ft=L.et?WeakMap:Map,Pt=L.En?WeakSet:Set,Be=new G.DX,Qt=!1;function It(){Qt||(Qt=!0,!1!==globalThis.__DEV__&&_.V1.warn(64))}function Vt(i,e,t){return Be.withValue(!0,function(){var r=de(i,e,t,!1);return Object.isFrozen(i)&&(0,Se.G)(r),r})}function de(i,e,t,r,n){var a,o=t.knownChanged,s=function Zr(i,e){if(e.has(i))return e.get(i);var t=Array.isArray(i)?[]:Object.create(null);return e.set(i,t),t}(i,t.mutableTargets);if(Array.isArray(i)){for(var c=0,u=Array.from(i.entries());c<u.length;c++){var l=u[c],h=l[0],v=l[1];if(null!==v){var d=de(v,e,t,r,!1!==globalThis.__DEV__?"".concat(n||"","[").concat(h,"]"):void 0);o.has(d)&&o.add(s),s[h]=d}else s[h]=null}return o.has(s)?s:i}for(var p=0,y=e.selections;p<y.length;p++){var m=y[p],g=void 0;if(r&&o.add(s),m.kind===x.Kind.FIELD){var C=(0,S.ue)(m),b=m.selectionSet;if(void 0===(g=s[C]||i[C]))continue;b&&null!==g&&(d=de(i[C],b,t,r,!1!==globalThis.__DEV__?"".concat(n||"",".").concat(C):void 0),o.has(d)&&(g=d)),!1===globalThis.__DEV__&&(s[C]=g),!1!==globalThis.__DEV__&&(!r||"__typename"===C||null!==(a=Object.getOwnPropertyDescriptor(s,C))&&void 0!==a&&a.value?(delete s[C],s[C]=g):Object.defineProperty(s,C,$r(C,g,n||"",t.operationName,t.operationType)))}if(m.kind===x.Kind.INLINE_FRAGMENT&&(!m.typeCondition||t.cache.fragmentMatches(m,i.__typename))&&(g=de(i,m.selectionSet,t,r,n)),m.kind===x.Kind.FRAGMENT_SPREAD){var E=m.name.value,O=t.fragmentMap[E]||(t.fragmentMap[E]=t.cache.lookupFragment(E));(0,_.V1)(O,59,E);var w=(0,W.s7)(m);"mask"!==w&&(g=de(i,O.selectionSet,t,"migrate"===w,n))}o.has(g)&&o.add(s)}return"__typename"in i&&!("__typename"in s)&&(s.__typename=i.__typename),Object.keys(s).length!==Object.keys(i).length&&o.add(s),o.has(s)?s:i}function $r(i,e,t,r,n){var a=function(){return Be.getValue()||(!1!==globalThis.__DEV__&&_.V1.warn(60,r?"".concat(n," '").concat(r,"'"):"anonymous ".concat(n),"".concat(t,".").concat(i).replace(/^\./,"")),a=function(){return e}),e};return{get:function(){return a()},set:function(o){a=function(){return o}},enumerable:!0,configurable:!0}}function At(i,e,t,r){if(!t.fragmentMatches)return!1!==globalThis.__DEV__&&It(),i;var n=e.definitions.filter(function(o){return o.kind===x.Kind.FRAGMENT_DEFINITION});typeof r>"u"&&((0,_.V1)(1===n.length,61,n.length),r=n[0].name.value);var a=n.find(function(o){return o.name.value===r});return(0,_.V1)(!!a,62,r),null==i||Ae(i,{})?i:Vt(i,a.selectionSet,{operationType:"fragment",operationName:a.name.value,fragmentMap:(0,H.JG)((0,Q.zK)(e)),cache:t,mutableTargets:new Ft,knownChanged:new Pt})}var ti=Object.prototype.hasOwnProperty,qt=Object.create(null),ri=function(){function i(e){var t=this;this.clientAwareness={},this.queries=new Map,this.fetchCancelFns=new Map,this.transformCache=new Xr.A(ve.v["queryManager.getDocumentInfo"]||2e3),this.queryIdCounter=1,this.requestIdCounter=1,this.mutationIdCounter=1,this.inFlightLinkObservables=new he.b(!1),this.noCacheWarningsByQueryId=new Set;var r=new je.c(function(a){return t.cache.transformDocument(a)},{cache:!1});this.cache=e.cache,this.link=e.link,this.defaultOptions=e.defaultOptions,this.queryDeduplication=e.queryDeduplication,this.clientAwareness=e.clientAwareness,this.localState=e.localState,this.ssrMode=e.ssrMode,this.assumeImmutableResults=e.assumeImmutableResults,this.dataMasking=e.dataMasking;var n=e.documentTransform;this.documentTransform=n?r.concat(n).concat(r):r,this.defaultContext=e.defaultContext||Object.create(null),(this.onBroadcast=e.onBroadcast)&&(this.mutationStore=Object.create(null))}return i.prototype.stop=function(){var e=this;
1this.queries.forEach(function(t,r){e.stopQueryNoBroadcast(r)}),this.cancelPendingFetches((0,_.vA)(35))},i.prototype.cancelPendingFetches=function(e){this.fetchCancelFns.forEach(function(t){return t(e)}),this.fetchCancelFns.clear()},i.prototype.mutate=function(e){return(0,f.sH)(this,arguments,void 0,function(t){var r,n,a,o,s,c,u,l=t.mutation,h=t.variables,v=t.optimisticResponse,d=t.updateQueries,p=t.refetchQueries,y=void 0===p?[]:p,m=t.awaitRefetchQueries,g=void 0!==m&&m,C=t.update,b=t.onQueryUpdated,E=t.fetchPolicy,O=void 0===E?(null===(c=this.defaultOptions.mutate)||void 0===c?void 0:c.fetchPolicy)||"network-only":E,w=t.errorPolicy,k=void 0===w?(null===(u=this.defaultOptions.mutate)||void 0===u?void 0:u.errorPolicy)||"none":w,R=t.keepRootFields,F=t.context;return(0,f.YH)(this,function(V){switch(V.label){case 0:return(0,_.V1)(l,36),(0,_.V1)("network-only"===O||"no-cache"===O,37),r=this.generateMutationId(),l=this.cache.transformForLink(this.transform(l)),n=this.getDocumentInfo(l).hasClientExports,h=this.getVariables(l,h),n?[4,this.localState.addExportedVariables(l,h,F)]:[3,2];case 1:h=V.sent(),V.label=2;case 2:return a=this.mutationStore&&(this.mutationStore[r]={mutation:l,variables:h,loading:!0,error:null}),o=v&&this.markMutationOptimistic(v,{mutationId:r,document:l,variables:h,fetchPolicy:O,errorPolicy:k,context:F,updateQueries:d,update:C,keepRootFields:R}),this.broadcastQueries(),s=this,[2,new Promise(function($,U){return(0,Le.x)(s.getObservableFromLink(l,(0,f.Cl)((0,f.Cl)({},F),{optimisticResponse:o?v:void 0}),h,{},!1),function(A){if((0,ie.t)(A)&&"none"===k)throw new Y({graphQLErrors:(0,ie.M)(A)});a&&(a.loading=!1,a.error=null);var z=(0,f.Cl)({},A);return"function"==typeof y&&(y=y(z)),"ignore"===k&&(0,ie.t)(z)&&delete z.errors,s.markMutationResult({mutationId:r,result:z,document:l,variables:h,fetchPolicy:O,errorPolicy:k,context:F,update:C,updateQueries:d,awaitRefetchQueries:g,refetchQueries:y,removeOptimistic:o?r:void 0,onQueryUpdated:b,keepRootFields:R})}).subscribe({next:function(A){s.broadcastQueries(),(!("hasNext"in A)||!1===A.hasNext)&&$((0,f.Cl)((0,f.Cl)({},A),{data:s.maskOperation({document:l,data:A.data,fetchPolicy:O,id:r})}))},error:function(A){a&&(a.loading=!1,a.error=A),o&&s.cache.removeOptimistic(r),s.broadcastQueries(),U(A instanceof Y?A:new Y({networkError:A}))}})})]}})})},i.prototype.markMutationResult=function(e,t){var r=this;void 0===t&&(t=this.cache);var n=e.result,a=[],o="no-cache"===e.fetchPolicy;if(!o&&We(n,e.errorPolicy)){if((0,ee.ST)(n)||a.push({result:n.data,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables}),(0,ee.ST)(n)&&(0,P.E)(n.incremental)){var s=t.diff({id:"ROOT_MUTATION",query:this.getDocumentInfo(e.document).asQuery,variables:e.variables,optimistic:!1,returnPartialData:!0}),c=void 0;s.result&&(c=(0,ee.bd)(s.result,n)),typeof c<"u"&&(n.data=c,a.push({result:c,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables}))}var u=e.updateQueries;u&&this.queries.forEach(function(h,v){var d=h.observableQuery,p=d&&d.queryName;if(p&&ti.call(u,p)){var y=u[p],m=r.queries.get(v),g=m.document,C=m.variables,b=t.diff({query:g,variables:C,returnPartialData:!0,optimistic:!1}),E=b.result;if(b.complete&&E){var w=y(E,{mutationResult:n,queryName:g&&(0,Q.n4)(g)||void 0,queryVariables:C});w&&a.push({result:w,dataId:"ROOT_QUERY",query:g,variables:C})}}})}if(a.length>0||(e.refetchQueries||"").length>0||e.update||e.onQueryUpdated||e.removeOptimistic){var l=[];if(this.refetchQueries({updateCache:function(h){o||a.forEach(function(y){return h.write(y)});var v=e.update,d=!(0,ee.YX)(n)||(0,ee.ST)(n)&&!n.hasNext;if(v){if(!o){var p=h.diff({id:"ROOT_MUTATION",query:r.getDocumentInfo(e.document).asQuery,variables:e.variables,optimistic:!1,returnPartialData:!0});p.complete&&("incremental"in(n=(0,f.Cl)((0,f.Cl)({},n),{data:p.result}))&&delete n.incremental,"hasNext"in n&&delete n.hasNext)}d&&v(h,n,{context:e.context,variables:e.variables})}!o&&!e.keepRootFields&&d&&h.modify({id:"ROOT_MUTATION",fields:function(y,m){return"__typename"===m.fieldName?y:m.DELETE}})},include:e.refetchQueries,optimistic:!1,removeOptimistic:e.removeOptimistic,onQueryUpdated:e.onQueryUpdated||null}
1).forEach(function(h){return l.push(h)}),e.awaitRefetchQueries||e.onQueryUpdated)return Promise.all(l).then(function(){return n})}return Promise.resolve(n)},i.prototype.markMutationOptimistic=function(e,t){var r=this,n="function"==typeof e?e(t.variables,{IGNORE:qt}):e;return n!==qt&&(this.cache.recordOptimisticTransaction(function(a){try{r.markMutationResult((0,f.Cl)((0,f.Cl)({},t),{result:{data:n}}),a)}catch(o){!1!==globalThis.__DEV__&&_.V1.error(o)}},t.mutationId),!0)},i.prototype.fetchQuery=function(e,t,r){return this.fetchConcastWithInfo(this.getOrCreateQuery(e),t,r).concast.promise},i.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},i.prototype.resetErrors=function(e){var t=this.queries.get(e);t&&(t.networkError=void 0,t.graphQLErrors=[])},i.prototype.transform=function(e){return this.documentTransform.transformDocument(e)},i.prototype.getDocumentInfo=function(e){var t=this.transformCache;if(!t.has(e)){var r={hasClientExports:(0,W.f2)(e),hasForcedResolvers:this.localState.shouldForceResolvers(e),hasNonreactiveDirective:(0,W.d8)(["nonreactive"],e),nonReactiveQuery:(0,J.x3)(e),clientQuery:this.localState.clientQuery(e),serverQuery:(0,J.iz)([{name:"client",remove:!0},{name:"connection"},{name:"nonreactive"},{name:"unmask"}],e),defaultVars:(0,Q.wY)((0,Q.Vu)(e)),asQuery:(0,f.Cl)((0,f.Cl)({},e),{definitions:e.definitions.map(function(n){return"OperationDefinition"===n.kind&&"query"!==n.operation?(0,f.Cl)((0,f.Cl)({},n),{operation:"query"}):n})})};t.set(e,r)}return t.get(e)},i.prototype.getVariables=function(e,t){return(0,f.Cl)((0,f.Cl)({},this.getDocumentInfo(e).defaultVars),t)},i.prototype.watchQuery=function(e){var t=this.transform(e.query);typeof(e=(0,f.Cl)((0,f.Cl)({},e),{variables:this.getVariables(t,e.variables)})).notifyOnNetworkStatusChange>"u"&&(e.notifyOnNetworkStatusChange=!1);var r=new Ne(this),n=new fe({queryManager:this,queryInfo:r,options:e});return n.lastQuery=t,fe.inactiveOnCreation.getValue()||this.queries.set(n.queryId,r),r.init({document:t,observableQuery:n,variables:n.variables}),n},i.prototype.query=function(e,t){var r=this;void 0===t&&(t=this.generateQueryId()),(0,_.V1)(e.query,38),(0,_.V1)("Document"===e.query.kind,39),(0,_.V1)(!e.returnPartialData,40),(0,_.V1)(!e.pollInterval,41);var n=this.transform(e.query);return this.fetchQuery(t,(0,f.Cl)((0,f.Cl)({},e),{query:n})).then(function(a){return a&&(0,f.Cl)((0,f.Cl)({},a),{data:r.maskOperation({document:n,data:a.data,fetchPolicy:e.fetchPolicy,id:t})})}).finally(function(){return r.stopQuery(t)})},i.prototype.generateQueryId=function(){return String(this.queryIdCounter++)},i.prototype.generateRequestId=function(){return this.requestIdCounter++},i.prototype.generateMutationId=function(){return String(this.mutationIdCounter++)},i.prototype.stopQueryInStore=function(e){this.stopQueryInStoreNoBroadcast(e),this.broadcastQueries()},i.prototype.stopQueryInStoreNoBroadcast=function(e){var t=this.queries.get(e);t&&t.stop()},i.prototype.clearStore=function(e){return void 0===e&&(e={discardWatches:!0}),this.cancelPendingFetches((0,_.vA)(42)),this.queries.forEach(function(t){t.observableQuery?t.networkStatus=M.loading:t.stop()}),this.mutationStore&&(this.mutationStore=Object.create(null)),this.cache.reset(e)},i.prototype.getObservableQueries=function(e){var t=this;void 0===e&&(e="active");var r=new Map,n=new Map,a=new Map,o=new Set;return Array.isArray(e)&&e.forEach(function(s){if("string"==typeof s)n.set(s,s),a.set(s,!1);else if((0,S.Kc)(s)){var c=(0,te.y)(t.transform(s));n.set(c,(0,Q.n4)(s)),a.set(c,!1)}else(0,j.U)(s)&&s.query&&o.add(s)}),this.queries.forEach(function(s,c){var u=s.observableQuery,l=s.document;if(u){if("all"===e)return void r.set(c,u);var h=u.queryName;if("standby"===u.options.fetchPolicy||"active"===e&&!u.hasObservers())return;("active"===e||h&&a.has(h)||l&&a.has((0,te.y)(l)))&&(r.set(c,u),h&&a.set(h,!0),l&&a.set((0,te.y)(l),!0))}}),o.size&&o.forEach(function(s){var c=(0,St.v)("legacyOneTimeQuery"),u=t.getOrCreateQuery(c).init({document:s.query,variables:s.variables}),l=new fe({queryManager:t,queryInfo:u,options:(0,f.Cl)((0,f.Cl)({},s),{fetchPolicy:"network-only"})});(0,_.V1)(l.queryId===c),u.setObservableQuery(l),r.set(c,l)}),!1!==globalThis.__DEV__&&a.size&&a.forEach(function(s,c){if(!s){var u=n.get(c);u?!1!==globalThis.__DEV__&&_.V1.warn(43,u):!1!==globalThis.__DEV__&&_.V1.warn(44)}}),r},i.prototype.reFetchObservableQueries=function(e){var t=this;void 0===e&&(e=!1);var r=[];return this.getObservableQueries(e?"all":"active").forEach(function(n,a){var o=n.options.fetchPolicy;(0,D.lz)("resetLastResults",function(){return n.resetLastResults()}
1),(e||"standby"!==o&&"cache-only"!==o)&&r.push(n.refetch()),(t.queries.get(a)||n.queryInfo).setDiff(null)}),this.broadcastQueries(),Promise.all(r)},i.prototype.startGraphQLSubscription=function(e){var t=this,r=e.query,n=e.variables,a=e.fetchPolicy,o=e.errorPolicy,s=void 0===o?"none":o,c=e.context,u=void 0===c?{}:c,l=e.extensions,h=void 0===l?{}:l;r=this.transform(r),n=this.getVariables(r,n);var v=function(p){return t.getObservableFromLink(r,u,p,h).map(function(y){"no-cache"!==a&&(We(y,s)&&t.cache.write({query:r,result:y.data,dataId:"ROOT_SUBSCRIPTION",variables:p}),t.broadcastQueries());var m=(0,ie.t)(y),g=function Mr(i){return!!i.extensions&&Array.isArray(i.extensions[Fe])}(y);if(m||g){var C={};if(m&&(C.graphQLErrors=y.errors),g&&(C.protocolErrors=y.extensions[Fe]),"none"===s||g)throw new Y(C)}return"ignore"===s&&delete y.errors,y})};if(this.getDocumentInfo(r).hasClientExports){var d=this.localState.addExportedVariables(r,n,u).then(v);return new K.c(function(p){var y=null;return d.then(function(m){return y=m.subscribe(p)},p.error),function(){return y&&y.unsubscribe()}})}return v(n)},i.prototype.stopQuery=function(e){this.stopQueryNoBroadcast(e),this.broadcastQueries()},i.prototype.stopQueryNoBroadcast=function(e){this.stopQueryInStoreNoBroadcast(e),this.removeQuery(e)},i.prototype.removeQuery=function(e){var t;this.fetchCancelFns.delete(e),this.queries.has(e)&&(null===(t=this.queries.get(e))||void 0===t||t.stop(),this.queries.delete(e))},i.prototype.broadcastQueries=function(){this.onBroadcast&&this.onBroadcast(),this.queries.forEach(function(e){var t;return null===(t=e.observableQuery)||void 0===t?void 0:t.notify()})},i.prototype.getLocalState=function(){return this.localState},i.prototype.getObservableFromLink=function(e,t,r,n,a){var s,o=this;void 0===a&&(a=null!==(s=null==t?void 0:t.queryDeduplication)&&void 0!==s?s:this.queryDeduplication);var c,u=this.getDocumentInfo(e),l=u.serverQuery,h=u.clientQuery;if(l){var d=this.inFlightLinkObservables,p=this.link,y={query:l,variables:r,operationName:(0,Q.n4)(l)||void 0,context:this.prepareContext((0,f.Cl)((0,f.Cl)({},t),{forceFetch:!a})),extensions:n};if(t=y.context,a){var m=(0,te.y)(l),g=(0,re.M)(r),C=d.lookup(m,g);if(!(c=C.observable)){var b=new le.E([(0,ke.g)(p,y)]);c=C.observable=b,b.beforeNext(function E(O,w){"next"===O&&"hasNext"in w&&w.hasNext?b.beforeNext(E):d.remove(m,g)})}}else c=new le.E([(0,ke.g)(p,y)])}else c=new le.E([K.c.of({data:{}})]),t=this.prepareContext(t);return h&&(c=(0,Le.x)(c,function(E){return o.localState.runResolvers({document:h,remoteResult:E,context:t,variables:r})})),c},i.prototype.getResultsFromLink=function(e,t,r){var n=e.lastRequestId=this.generateRequestId(),a=this.cache.transformForLink(r.query);return(0,Le.x)(this.getObservableFromLink(a,r.context,r.variables),function(o){var s=(0,ie.M)(o),c=s.length>0,u=r.errorPolicy;if(n>=e.lastRequestId){if(c&&"none"===u)throw e.markError(new Y({graphQLErrors:s}));e.markResult(o,a,r,t),e.markReady()}var l={data:o.data,loading:!1,networkStatus:M.ready};return c&&"none"===u&&(l.data=void 0),c&&"ignore"!==u&&(l.errors=s,l.networkStatus=M.error),l},function(o){var s=Pe(o)?o:new Y({networkError:o});throw n>=e.lastRequestId&&e.markError(s),s})},i.prototype.fetchConcastWithInfo=function(e,t,r,n){var a=this;void 0===r&&(r=M.loading),void 0===n&&(n=t.query);var O,w,o=this.getVariables(n,t.variables),s=this.defaultOptions.watchQuery,c=t.fetchPolicy,l=t.errorPolicy,v=t.returnPartialData,p=t.notifyOnNetworkStatusChange,m=t.context,C=Object.assign({},t,{query:n,variables:o,fetchPolicy:void 0===c?s&&s.fetchPolicy||"cache-first":c,errorPolicy:void 0===l?s&&s.errorPolicy||"none":l,returnPartialData:void 0!==v&&v,notifyOnNetworkStatusChange:void 0!==p&&p,context:void 0===m?{}:m}),b=function(R){C.variables=R;var F=a.fetchQueryByPolicy(e,C,r);return"standby"!==C.fetchPolicy&&F.sources.length>0&&e.observableQuery&&e.observableQuery.applyNextFetchPolicy("after-fetch",t),F},E=function(){return a.fetchCancelFns.delete(e.queryId)};if(this.fetchCancelFns.set(e.queryId,function(R){E(),setTimeout(function(){return O.cancel(R)})}),this.getDocumentInfo(C.query).hasClientExports)O=new le.E(this.localState.addExportedVariables(C.query,C.variables,C.context).then(b).then(function(R){return R.sources})),w=!0;else{var k=b(C.variables);w=k.fromLink,O=new le.E(k.sources)}return O.promise.then(E,E),{concast:O,fromLink:w}},i.prototype.refetchQueries=function(e){var t=this,r=e.updateCache,n=e.include,a=e.optimistic,o=void 0!==a&&a,s=e.removeOptimistic,c=void 0===s?o?(0,St.v)("refetchQueries"):void 0:s,u=e.onQueryUpdated,l=new Map;
1n&&this.getObservableQueries(n).forEach(function(v,d){l.set(d,{oq:v,lastDiff:(t.queries.get(d)||v.queryInfo).getDiff()})});var h=new Map;return r&&this.cache.batch({update:r,optimistic:o&&c||!1,removeOptimistic:c,onWatchUpdated:function(v,d,p){var y=v.watcher instanceof Ne&&v.watcher.observableQuery;if(y){if(u){l.delete(y.queryId);var m=u(y,d,p);return!0===m&&(m=y.refetch()),!1!==m&&h.set(y,m),m}null!==u&&l.set(y.queryId,{oq:y,lastDiff:p,diff:d})}}}),l.size&&l.forEach(function(v,d){var g,p=v.oq,y=v.lastDiff,m=v.diff;u&&(m||(m=(0,D.lz)("canonizeResults",function(){return t.cache.diff(p.queryInfo.getDiffOptions())})),g=u(p,m,y)),(!u||!0===g)&&(g=p.refetch()),!1!==g&&h.set(p,g),d.indexOf("legacyOneTimeQuery")>=0&&t.stopQueryNoBroadcast(d)}),c&&this.cache.removeOptimistic(c),h},i.prototype.maskOperation=function(e){var t,r,n,a=e.document,o=e.data;if(!1!==globalThis.__DEV__){var s=e.fetchPolicy,c=e.id,u=null===(t=(0,Q.Vu)(a))||void 0===t?void 0:t.operation,l=(null!==(r=null==u?void 0:u[0])&&void 0!==r?r:"o")+c;this.dataMasking&&"no-cache"===s&&!(0,H.s6)(a)&&!this.noCacheWarningsByQueryId.has(l)&&(this.noCacheWarningsByQueryId.add(l),!1!==globalThis.__DEV__&&_.V1.warn(45,null!==(n=(0,Q.n4)(a))&&void 0!==n?n:"Unnamed ".concat(u??"operation")))}return this.dataMasking?function ei(i,e,t){var r;if(!t.fragmentMatches)return!1!==globalThis.__DEV__&&It(),i;var n=(0,Q.Vu)(e);return(0,_.V1)(n,63),null==i?i:Vt(i,n.selectionSet,{operationType:n.operation,operationName:null===(r=n.name)||void 0===r?void 0:r.value,fragmentMap:(0,H.JG)((0,Q.zK)(e)),cache:t,mutableTargets:new Ft,knownChanged:new Pt})}(o,a,this.cache):o},i.prototype.maskFragment=function(e){var t=e.data;return this.dataMasking?At(t,e.fragment,this.cache,e.fragmentName):t},i.prototype.fetchQueryByPolicy=function(e,t,r){var n=this,a=t.query,o=t.variables,s=t.fetchPolicy,c=t.refetchWritePolicy,u=t.errorPolicy,l=t.returnPartialData,h=t.context,v=t.notifyOnNetworkStatusChange,d=e.networkStatus;e.init({document:a,variables:o,networkStatus:r});var p=function(){return e.getDiff()},y=function(E,O){void 0===O&&(O=e.networkStatus||M.loading);var w=E.result;!1!==globalThis.__DEV__&&!l&&!I(w,{})&&Mt(E.missing);var k=function(R){return K.c.of((0,f.Cl)({data:R,loading:ne(O),networkStatus:O},E.complete?null:{partial:!0}))};return w&&n.getDocumentInfo(a).hasForcedResolvers?n.localState.runResolvers({document:a,remoteResult:{data:w},context:h,variables:o,onlyRunForcedResolvers:!0}).then(function(R){return k(R.data||void 0)}):"none"===u&&O===M.refetch&&Array.isArray(E.missing)?k(void 0):k(w)},m="no-cache"===s?0:r===M.refetch&&"merge"!==c?1:2,g=function(){return n.getResultsFromLink(e,m,{query:a,variables:o,context:h,fetchPolicy:s,errorPolicy:u})},C=v&&"number"==typeof d&&d!==r&&ne(r);switch(s){default:case"cache-first":return(b=p()).complete?{fromLink:!1,sources:[y(b,e.markReady())]}:l||C?{fromLink:!0,sources:[y(b),g()]}:{fromLink:!0,sources:[g()]};case"cache-and-network":var b;return(b=p()).complete||l||C?{fromLink:!0,sources:[y(b),g()]}:{fromLink:!0,sources:[g()]};case"cache-only":return{fromLink:!1,sources:[y(p(),e.markReady())]};case"network-only":return C?{fromLink:!0,sources:[y(p()),g()]}:{fromLink:!0,sources:[g()]};case"no-cache":return C?{fromLink:!0,sources:[y(e.getDiff()),g()]}:{fromLink:!0,sources:[g()]};case"standby":return{fromLink:!1,sources:[]}}},i.prototype.getOrCreateQuery=function(e){return e&&!this.queries.has(e)&&this.queries.set(e,new Ne(this,e)),this.queries.get(e)},i.prototype.prepareContext=function(e){void 0===e&&(e={});var t=this.localState.prepareContext(e);return(0,f.Cl)((0,f.Cl)((0,f.Cl)({},this.defaultContext),t),{clientAwareness:this.clientAwareness})},i}(),Ue=new G.DX,jt=new WeakMap;function pe(i){var e=jt.get(i);return e||jt.set(i,e={vars:new Set,dep:(0,G.yN)()}),e}function Lt(i){pe(i).vars.forEach(function(e){return e.forgetCache(i)})}function xt(i){var e=new Set,t=new Set,r=function(a){if(arguments.length>0){if(i!==a){i=a,e.forEach(function(c){pe(c).dep.dirty(r),function ni(i){i.broadcastWatches&&i.broadcastWatches()}(c)});var o=Array.from(t);t.clear(),o.forEach(function(c){return c(i)})}}else{var s=Ue.getValue();s&&(n(s),pe(s).dep(r))}return i};r.onNextChange=function(a){return t.add(a),function(){t.delete(a)}};var n=r.attachCache=function(a){return e.add(a),pe(a).vars.add(r),r};return r.forgetCache=function(a){return e.delete(a)},r}var Ke,ai=function(){function i(e){var t=e.cache,r=e.client,n=e.resolvers,a=e.fragmentMatcher;this.selectionsToResolveCache=new WeakMap,this.cache=t,r&&(this.client=r),n&&this.addResolvers(n),a&&this.setFragmentMatcher(a)}return i.prototype.addResolvers=function(e){var t=this;this.resolvers=this.resolvers||{},Array.isArray(e)?e.forEach(function(r){t.resolvers=(0,B.D9)(t.resolvers,r)}):this.resolvers=(0,B.D9)(this.resolvers,e)},i.prototype.setResolvers=function(e){this.resolvers={},this.addResolvers(e)},i.prototype.getResolvers=function(){return this.resolvers||{}},i.prototype.runResolvers=function(e){return(0,f.sH)(this,arguments,void 0,function(t){var r=t.document,n=t.remoteResult,a=t.context,o=t.variables,s=t.onlyRunForcedResolvers,c=void 0!==s&&s;return(0,f.YH)(this,function(u){return r?[2,this.resolveDocument(r,n.data,a,o,this.fragmentMatcher,c).then(function(l){return(0,f.Cl)((0,f.Cl)({},n),{data:l.result})})]:[2,n]})})},i.prototype.setFragmentMatcher=function(e){this.fragmentMatcher=e},i.prototype.getFragmentMatcher=function(){return this.fragmentMatcher},i.prototype.clientQuery=function(e){return(0,W.d8)(["client"],e)&&this.resolvers?e:null},i.prototype.serverQuery=function(e){return(0,J.er)(e)},i.prototype.prepareContext=function(e){var t=this.cache;return(0,f.Cl)((0,f.Cl)({},e),{cache:t,getCacheKey:function(r){return t.identify(r)}})},i.prototype.addExportedVariables=function(e){return(0,f.sH)(this,arguments,void 0,function(t,r,n){return void 0===r&&(r={}),void 0===n&&(n={}),(0,f.YH)(this,function(a){return t?[2,this.resolveDocument(t,this.buildRootValueFromCache(t,r)||{},this.prepareContext(n),r).then(function(o){return(0,f.Cl)((0,f.Cl)({},r),o.exportedVariables)})]:[2,(0,f.Cl)({},r)]})})},i.prototype.shouldForceResolvers=function(e){var t=!1;return(0,x.visit)(e,{Directive:{enter:function(r){if("client"===r.name.value&&r.arguments&&(t=r.arguments.some(function(n){return"always"===n.name.value&&"BooleanValue"===n.value.kind&&!0===n.value.value})))return x.BREAK}}}),t},i.prototype.buildRootValueFromCache=function(e,t){return this.cache.diff({query:(0,J.zc)(e),variables:t,returnPartialData:!0,optimistic:!1}).result},i.prototype.resolveDocument=function(e,t){return(0,f.sH)(this,arguments,void 0,function(r,n,a,o,s,c){var u,l,h,v,d,p,y,m,g,C;return void 0===a&&(a={}),void 0===o&&(o={}),void 0===s&&(s=function(){return!0}),void 0===c&&(c=!1),(0,f.YH)(this,function(E){return u=(0,Q.Vn)(r),l=(0,Q.zK)(r),h=(0,H.JG)(l),v=this.collectSelectionsToResolve(u,h),p=(d=u.operation)?d.charAt(0).toUpperCase()+d.slice(1):"Query",m=(y=this).cache,g=y.client,C={fragmentMap:h,context:(0,f.Cl)((0,f.Cl)({},a),{cache:m,client:g}),variables:o,fragmentMatcher:s,defaultOperationType:p,exportedVariables:{},selectionsToResolve:v,onlyRunForcedResolvers:c},[2,this.resolveSelectionSet(u.selectionSet,!1,n,C).then(function(O){return{result:O,exportedVariables:C.exportedVariables}})]})})},i.prototype.resolveSelectionSet=function(e,t,r,n){return(0,f.sH)(this,void 0,void 0,function(){var a,o,s,c,l=this;return(0,f.YH)(this,function(h){return a=n.fragmentMap,o=n.context,s=n.variables,c=[r],[2,Promise.all(e.selections.map(function(v){return(0,f.sH)(l,void 0,void 0,function(){var d;return(0,f.YH)(this,function(y){return(t||n.selectionsToResolve.has(v))&&(0,W.MS)(v,s)?(0,S.dt)(v)?[2,this.resolveField(v,t,r,n).then(function(m){var g;typeof m<"u"&&c.push(((g={})[(0,S.ue)(v)]=m,g))})]:((0,S.kd)(v)?d=v:(0,_.V1)(d=a[v.name.value],21,v.name.value),d&&d.typeCondition&&n.fragmentMatcher(r,d.typeCondition.name.value,o)?[2,this.resolveSelectionSet(d.selectionSet,t,r,n).then(function(m){c.push(m)})]:[2]):[2]})})})).then(function(){return(0,B.IM)(c)})]})})},i.prototype.resolveField=function(e,t,r,n){return(0,f.sH)(this,void 0,void 0,function(){var a,o,s,c,u,l,h,v,d,p=this;return(0,f.YH)(this,function(y){return r?(a=n.variables,o=e.name.value,s=(0,S.ue)(e),c=o!==s,u=r[s]||r[o],l=Promise.resolve(u),(!n.onlyRunForcedResolvers||this.shouldForceResolvers(e))&&(h=r.__typename||n.defaultOperationType,(v=this.resolvers&&this.resolvers[h])&&
1(d=v[c?o:s])&&(l=Promise.resolve(Ue.withValue(this.cache,d,[r,(0,S.MB)(e,a),n.context,{field:e,fragmentMap:n.fragmentMap}])))),[2,l.then(function(m){var g,C;if(void 0===m&&(m=u),e.directives&&e.directives.forEach(function(E){"export"===E.name.value&&E.arguments&&E.arguments.forEach(function(O){"as"===O.name.value&&"StringValue"===O.value.kind&&(n.exportedVariables[O.value.value]=m)})}),!e.selectionSet||null==m)return m;var b=null!==(C=null===(g=e.directives)||void 0===g?void 0:g.some(function(E){return"client"===E.name.value}))&&void 0!==C&&C;return Array.isArray(m)?p.resolveSubSelectedArray(e,t||b,m,n):e.selectionSet?p.resolveSelectionSet(e.selectionSet,t||b,m,n):void 0})]):[2,null]})})},i.prototype.resolveSubSelectedArray=function(e,t,r,n){var a=this;return Promise.all(r.map(function(o){return null===o?null:Array.isArray(o)?a.resolveSubSelectedArray(e,t,o,n):e.selectionSet?a.resolveSelectionSet(e.selectionSet,t,o,n):void 0}))},i.prototype.collectSelectionsToResolve=function(e,t){var r=function(o){return!Array.isArray(o)},n=this.selectionsToResolveCache;return function a(o){if(!n.has(o)){var s=new Set;n.set(o,s),(0,x.visit)(o,{Directive:function(c,u,l,h,v){"client"===c.name.value&&v.forEach(function(d){r(d)&&(0,x.isSelectionNode)(d)&&s.add(d)})},FragmentSpread:function(c,u,l,h,v){var d=t[c.name.value];(0,_.V1)(d,22,c.name.value);var p=a(d);p.size>0&&(v.forEach(function(y){r(y)&&(0,x.isSelectionNode)(y)&&s.add(y)}),s.add(c),p.forEach(function(y){s.add(y)}))}})}return n.get(o)}(e)},i}(),we=T(39951),He=T(88782),zt=!1,Nt=function(){function i(e){var r,n,a,t=this;if(this.resetStoreCallbacks=[],this.clearStoreCallbacks=[],!e.cache)throw(0,_.vA)(16);var o=e.uri,s=e.credentials,c=e.headers,u=e.cache,l=e.documentTransform,h=e.ssrMode,v=void 0!==h&&h,d=e.ssrForceFetchDelay,p=void 0===d?0:d,y=e.connectToDevTools,m=e.queryDeduplication,g=void 0===m||m,C=e.defaultOptions,b=e.defaultContext,E=e.assumeImmutableResults,O=void 0===E?u.assumeImmutableResults:E,w=e.resolvers,k=e.typeDefs,R=e.fragmentMatcher,F=e.clientAwareness,V=e.name,$=e.version,U=e.devtools,A=e.dataMasking;!1!==globalThis.__DEV__&&((0,D.cc)(e,"connectToDevTools","ApolloClient","Please use `devtools.enabled` instead."),(0,D.cc)(e,"uri","ApolloClient","Please initialize an instance of `HttpLink` with `uri` instead."),(0,D.cc)(e,"credentials","ApolloClient","Please initialize an instance of `HttpLink` with `credentials` instead."),(0,D.cc)(e,"headers","ApolloClient","Please initialize an instance of `HttpLink` with `headers` instead."),(0,D.cc)(e,"name","ApolloClient","Please use the `clientAwareness.name` option instead."),(0,D.cc)(e,"version","ApolloClient","Please use the `clientAwareness.version` option instead."),(0,D.cc)(e,"typeDefs","ApolloClient"),e.link||!1!==globalThis.__DEV__&&_.V1.warn(17));var z=e.link;z||(z=o?new bt({uri:o,credentials:s,headers:c}):Re.C.empty()),this.link=z,this.cache=u,this.disableNetworkFetches=v||p>0,this.queryDeduplication=g,this.defaultOptions=C||Object.create(null),this.typeDefs=k,this.devtoolsConfig=(0,f.Cl)((0,f.Cl)({},U),{enabled:null!==(r=null==U?void 0:U.enabled)&&void 0!==r?r:y}),void 0===this.devtoolsConfig.enabled&&(this.devtoolsConfig.enabled=!1!==globalThis.__DEV__),p&&setTimeout(function(){return t.disableNetworkFetches=!1},p),this.watchQuery=this.watchQuery.bind(this),this.query=this.query.bind(this),this.mutate=this.mutate.bind(this),this.watchFragment=this.watchFragment.bind(this),this.resetStore=this.resetStore.bind(this),this.reFetchObservableQueries=this.reFetchObservableQueries.bind(this),this.version=br.r,this.localState=new ai({cache:u,client:this,resolvers:w,fragmentMatcher:R}),this.queryManager=new ri({cache:this.cache,link:this.link,defaultOptions:this.defaultOptions,defaultContext:b,documentTransform:l,queryDeduplication:g,ssrMode:v,dataMasking:!!A,clientAwareness:{name:null!==(n=null==F?void 0:F.name)&&void 0!==n?n:V,version:null!==(a=null==F?void 0:F.version)&&void 0!==a?a:$},localState:this.localState,assumeImmutableResults:O,onBroadcast:this.devtoolsConfig.enabled?function(){t.devToolsHookCb&&t.devToolsHookCb({action:{},state:{queries:t.queryManager.getQueryStore(),mutations:t.queryManager.mutationStore||{}},dataWithOptimisticResults:t.cache.extract(!0)})}:void 0}),this.devtoolsConfig.enabled&&this.connectToDevTools()}return Object.defineProperty(i.prototype,"prioritizeCacheValues",{get:function(){return this.disableNetworkFetches},set:function(e){this.disableNetworkFetches=e}
1,enumerable:!1,configurable:!0}),i.prototype.connectToDevTools=function(){if(!(typeof window>"u")){var e=window,t=Symbol.for("apollo.devtools");(e[t]=e[t]||[]).push(this),e.__APOLLO_CLIENT__=this,!zt&&!1!==globalThis.__DEV__&&(zt=!0,window.document&&window.top===window.self&&/^(https?|file):$/.test(window.location.protocol)&&setTimeout(function(){if(!window.__APOLLO_DEVTOOLS_GLOBAL_HOOK__){var r=window.navigator,n=r&&r.userAgent,a=void 0;"string"==typeof n&&(n.indexOf("Chrome/")>-1?a="https://chrome.google.com/webstore/detail/apollo-client-developer-t/jdkknkkbebbapilgoeccciglkfbmbnfm":n.indexOf("Firefox/")>-1&&(a="https://addons.mozilla.org/en-US/firefox/addon/apollo-developer-tools/")),a&&!1!==globalThis.__DEV__&&_.V1.log("Download the Apollo DevTools for a better development experience: %s",a)}},1e4))}},Object.defineProperty(i.prototype,"documentTransform",{get:function(){return this.queryManager.documentTransform},enumerable:!1,configurable:!0}),i.prototype.stop=function(){this.queryManager.stop()},i.prototype.watchQuery=function(e){return this.defaultOptions.watchQuery&&(e=(0,we.l)(this.defaultOptions.watchQuery,e)),this.disableNetworkFetches&&("network-only"===e.fetchPolicy||"cache-and-network"===e.fetchPolicy)&&(e=(0,f.Cl)((0,f.Cl)({},e),{fetchPolicy:"cache-first"})),!1!==globalThis.__DEV__&&((0,D.cc)(e,"canonizeResults","client.watchQuery"),(0,D.cc)(e,"partialRefetch","client.watchQuery")),this.queryManager.watchQuery(e)},i.prototype.query=function(e){return this.defaultOptions.query&&(e=(0,we.l)(this.defaultOptions.query,e)),(0,_.V1)("cache-and-network"!==e.fetchPolicy,18),this.disableNetworkFetches&&"network-only"===e.fetchPolicy&&(e=(0,f.Cl)((0,f.Cl)({},e),{fetchPolicy:"cache-first"})),!1!==globalThis.__DEV__&&((0,D.cc)(e,"canonizeResults","client.query"),(0,D.cc)(e,"notifyOnNetworkStatusChange","client.query","This option does not affect `client.query` and can be safely removed."),"standby"===e.fetchPolicy&&!1!==globalThis.__DEV__&&_.V1.warn(19)),this.queryManager.query(e)},i.prototype.mutate=function(e){return this.defaultOptions.mutate&&(e=(0,we.l)(this.defaultOptions.mutate,e)),this.queryManager.mutate(e)},i.prototype.subscribe=function(e){var t=this,r=this.queryManager.generateQueryId();return this.queryManager.startGraphQLSubscription(e).map(function(n){return(0,f.Cl)((0,f.Cl)({},n),{data:t.queryManager.maskOperation({document:e.query,data:n.data,fetchPolicy:e.fetchPolicy,id:r})})})},i.prototype.readQuery=function(e,t){return void 0===t&&(t=!1),this.cache.readQuery(e,t)},i.prototype.watchFragment=function(e){var t;return this.cache.watchFragment((0,f.Cl)((0,f.Cl)({},e),((t={})[Symbol.for("apollo.dataMasking")]=this.queryManager.dataMasking,t)))},i.prototype.readFragment=function(e,t){return void 0===t&&(t=!1),this.cache.readFragment(e,t)},i.prototype.writeQuery=function(e){var t=this.cache.writeQuery(e);return!1!==e.broadcast&&this.queryManager.broadcastQueries(),t},i.prototype.writeFragment=function(e){var t=this.cache.writeFragment(e);return!1!==e.broadcast&&this.queryManager.broadcastQueries(),t},i.prototype.__actionHookForDevTools=function(e){this.devToolsHookCb=e},i.prototype.__requestRaw=function(e){return(0,ke.g)(this.link,e)},i.prototype.resetStore=function(){var e=this;return Promise.resolve().then(function(){return e.queryManager.clearStore({discardWatches:!1})}).then(function(){return Promise.all(e.resetStoreCallbacks.map(function(t){return t()}))}).then(function(){return e.reFetchObservableQueries()})},i.prototype.clearStore=function(){var e=this;return Promise.resolve().then(function(){return e.queryManager.clearStore({discardWatches:!0})}).then(function(){return Promise.all(e.clearStoreCallbacks.map(function(t){return t()}))})},i.prototype.onResetStore=function(e){var t=this;return this.resetStoreCallbacks.push(e),function(){t.resetStoreCallbacks=t.resetStoreCallbacks.filter(function(r){return r!==e})}},i.prototype.onClearStore=function(e){var t=this;return this.clearStoreCallbacks.push(e),function(){t.clearStoreCallbacks=t.clearStoreCallbacks.filter(function(r){return r!==e})}},i.prototype.reFetchObservableQueries=function(e){return this.queryManager.reFetchObservableQueries(e)},i.prototype.refetchQueries=function(e){var t=this.queryManager.refetchQueries(e),r=[],n=[];t.forEach(function(o,s){r.push(s),n.push(o)});var a=Promise.all(n);return a.queries=r,a.results=n,a.catch(function(o){!1!==globalThis.__DEV__&&_.V1.debug(20,o)}),a},i.prototype.getObservableQueries=function(e){return void 0===e&&(e="active"),this.queryManager.getObservableQueries(e)},i.prototype.extract=function(e){return this.cache.extract(e)},i.prototype.restore=function(e){return this.cache.restore(e)},i.prototype.addResolvers=function(e){this.localState.addResolvers(e)},i.prototype.setResolvers=function(e){this.localState.setResolvers(e)},i.prototype.getResolvers=function(){return this.localState.getResolvers()},i.prototype.setLocalStateFragmentMatcher=function(e){this.localState.setFragmentMatcher(e)},i.prototype.setLink=function(e){this.link=this.queryManager.link=e},Object.defineProperty(i.prototype,"defaultContext",{get:function(){return this.queryManager.defaultContext}
1,enumerable:!1,configurable:!0}),i}();!1!==globalThis.__DEV__&&(Nt.prototype.getMemoryInternals=He.ep),Ke||(Ke={});var oi=T(99055),Ge=function(){function i(){this.assumeImmutableResults=!1,this.getFragmentDoc=(0,G.LV)(H.ct,{max:ve.v["cache.fragmentQueryDocuments"]||1e3,cache:oi.l})}return i.prototype.lookupFragment=function(e){return null},i.prototype.batch=function(e){var n,t=this;return this.performTransaction(function(){return n=e.update(t)},"string"==typeof e.optimistic?e.optimistic:!1===e.optimistic?null:void 0),n},i.prototype.recordOptimisticTransaction=function(e,t){this.performTransaction(e,t)},i.prototype.transformDocument=function(e){return e},i.prototype.transformForLink=function(e){return e},i.prototype.identify=function(e){},i.prototype.gc=function(){return[]},i.prototype.modify=function(e){return!1},i.prototype.readQuery=function(e,t){var r=this;return void 0===t&&(t=!!e.optimistic),!1!==globalThis.__DEV__&&(0,D.cc)(e,"canonizeResults","cache.readQuery"),(0,D.lz)("canonizeResults",function(){return r.read((0,f.Cl)((0,f.Cl)({},e),{rootId:e.id||"ROOT_QUERY",optimistic:t}))})},i.prototype.watchFragment=function(e){var t=this,r=e.fragment,n=e.fragmentName,a=e.from,o=e.optimistic,s=void 0===o||o,c=(0,f.Tt)(e,["fragment","fragmentName","from","optimistic"]),u=this.getFragmentDoc(r,n),l=typeof a>"u"||"string"==typeof a?a:this.identify(a),h=!!e[Symbol.for("apollo.dataMasking")];if(!1!==globalThis.__DEV__){var v=n||(0,Q.E4)(r).name.value;l||!1!==globalThis.__DEV__&&_.V1.warn(1,v)}var p,d=(0,f.Cl)((0,f.Cl)({},c),{returnPartialData:!0,id:l,query:u,optimistic:s});return new K.c(function(y){return t.watch((0,f.Cl)((0,f.Cl)({},d),{immediate:!0,callback:function(m){var g=h?At(m.result,r,t,n):m.result;if(!p||!Dt(u,{data:p.result},{data:g},e.variables)){var C={data:g,complete:!!m.complete};m.missing&&(C.missing=(0,B.IM)(m.missing.map(function(b){return b.missing}))),p=(0,f.Cl)((0,f.Cl)({},m),{result:g}),y.next(C)}}}))})},i.prototype.readFragment=function(e,t){var r=this;return void 0===t&&(t=!!e.optimistic),!1!==globalThis.__DEV__&&(0,D.cc)(e,"canonizeResults","cache.readFragment"),(0,D.lz)("canonizeResults",function(){return r.read((0,f.Cl)((0,f.Cl)({},e),{query:r.getFragmentDoc(e.fragment,e.fragmentName),rootId:e.id,optimistic:t}))})},i.prototype.writeQuery=function(e){var t=e.id,r=e.data,n=(0,f.Tt)(e,["id","data"]);return this.write(Object.assign(n,{dataId:t||"ROOT_QUERY",result:r}))},i.prototype.writeFragment=function(e){var t=e.id,r=e.data,n=e.fragment,a=e.fragmentName,o=(0,f.Tt)(e,["id","data","fragment","fragmentName"]);return this.write(Object.assign(o,{query:this.getFragmentDoc(n,a),dataId:t,result:r}))},i.prototype.updateQuery=function(e,t){return!1!==globalThis.__DEV__&&(0,D.cc)(e,"canonizeResults","cache.updateQuery"),this.batch({update:function(r){var n=(0,D.lz)("canonizeResults",function(){return r.readQuery(e)}),a=t(n);return null==a?n:(r.writeQuery((0,f.Cl)((0,f.Cl)({},e),{data:a})),a)}})},i.prototype.updateFragment=function(e,t){return!1!==globalThis.__DEV__&&(0,D.cc)(e,"canonizeResults","cache.updateFragment"),this.batch({update:function(r){var n=(0,D.lz)("canonizeResults",function(){return r.readFragment(e)}),a=t(n);return null==a?n:(r.writeFragment((0,f.Cl)((0,f.Cl)({},e),{data:a})),a)}})},i}();!1!==globalThis.__DEV__&&(Ge.prototype.getMemoryInternals=He.tQ);var Ye=function(i){function e(t,r,n,a){var o,s=i.call(this,t)||this;if(s.message=t,s.path=r,s.query=n,s.variables=a,Array.isArray(s.path)){s.missing=s.message;for(var c=s.path.length-1;c>=0;--c)s.missing=((o={})[s.path[c]]=s.missing,o)}else s.missing=s.path;return s.__proto__=e.prototype,s}return(0,f.C6)(e,i),e}(Error),q=Object.prototype.hasOwnProperty;function ye(i){return null==i}function Je(i,e){var t=i.__typename,r=i.id,n=i._id;if("string"==typeof t&&(e&&(e.keyObject=ye(r)?ye(n)?void 0:{_id:n}:{id:r}),ye(r)&&!ye(n)&&(r=n),!ye(r)))return"".concat(t,":").concat("number"==typeof r||"string"==typeof r?r:JSON.stringify(r))}var Wt={dataIdFromObject:Je,addTypename:!0,resultCaching:!0,canonizeResults:!1};function Bt(i){var e=i.canonizeResults;return void 0===e?Wt.canonizeResults:e}var Ut=/^[_a-z][_0-9a-z]*/i;function X(i){var e=i.match(Ut);return e?e[0]:i}function Xe(i,e,t){return!!(0,j.U)(e)&&((0,P.c)(e)?e.every(function(r){return Xe(i,r,t)}):i.selections.every(function(r){if((0,S.dt)(r)&&(0,W.MS)(r,t)){var n=(0,S.ue)(r);return q.call(e,n)&&(!r.selectionSet||Xe(r.selectionSet,e[n],t))}return!0}))}function oe(i){return(0,j.U)(i)&&!(0,S.A_)(i)&&!(0,P.c)(i)}function Ht(i,e){var t=(0,H.JG)((0,Q.zK)(i));return{fragmentMap:t,lookupFragment:function(r){var n=t[r];return!n&&e&&(n=e.lookup(r)),n||null}}}var i,e,Te=Object.create(null),Ze=function(){return Te},Kt=Object.create(null),me=function(){function i(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(n,a){return(0,Se.G)((0,S.A_)(n)?r.get(n.__ref,a):n&&n[a])},this.canRead=function(n){return(0,S.A_)(n)?r.has(n.__ref):"object"==typeof n},this.toReference=function(n,a){if("string"==typeof n)return(0,S.WU)(n);if((0,S.A_)(n))return n;var o=r.policies.identify(n)[0];if(o){var s=(0,S.WU)(o);return a&&r.merge(o,n),s}}}return i.prototype.toObject=function(){return(0,f.Cl)({},this.data)},i.prototype.has=function(e){return void 0!==this.lookup(e,!0)},i.prototype.get=function(e,t){if(this.group.depend(e,t),q.call(this.data,e)){var r=this.data[e];if(r&&q.call(r,t))return r[t]}return"__typename"===t&&q.call(this.policies.rootTypenamesById,e)?this.policies.rootTypenamesById[e]:this instanceof Z?this.parent.get(e,t):void 0},i.prototype.lookup=function(e,t){return t&&this.group.depend(e,"__exists"),q.call(this.data,e)?this.data[e]:this instanceof Z?this.parent.lookup(e,t):this.policies.rootTypenamesById[e]?Object.create(null):void 0},i.prototype.merge=function(e,t){var n,r=this;(0,S.A_)(e)&&(e=e.__ref),(0,S.A_)(t)&&(t=t.__ref);
1var a="string"==typeof e?this.lookup(n=e):e,o="string"==typeof t?this.lookup(n=t):t;if(o){(0,_.V1)("string"==typeof n,2);var s=new B.ZI(fi).merge(a,o);if(this.data[n]=s,s!==a&&(delete this.refs[n],this.group.caching)){var c=Object.create(null);a||(c.__exists=1),Object.keys(o).forEach(function(u){if(!a||a[u]!==s[u]){c[u]=1;var l=X(u);l!==u&&!r.policies.hasKeyArgs(s.__typename,l)&&(c[l]=1),void 0===s[u]&&!(r instanceof Z)&&delete s[u]}}),c.__typename&&!(a&&a.__typename)&&this.policies.rootTypenamesById[n]===s.__typename&&delete c.__typename,Object.keys(c).forEach(function(u){return r.group.dirty(n,u)})}}},i.prototype.modify=function(e,t){var r=this,n=this.lookup(e);if(n){var a=Object.create(null),o=!1,s=!0,c={DELETE:Te,INVALIDATE:Kt,isReference:S.A_,toReference:this.toReference,canRead:this.canRead,readField:function(u,l){return r.policies.readField("string"==typeof u?{fieldName:u,from:l||(0,S.WU)(e)}:u,{store:r})}};if(Object.keys(n).forEach(function(u){var l=X(u),h=n[u];if(void 0!==h){var v="function"==typeof t?t:t[u]||t[l];if(v){var d=v===Ze?Te:v((0,Se.G)(h),(0,f.Cl)((0,f.Cl)({},c),{fieldName:l,storeFieldName:u,storage:r.getStorage(e,u)}));if(d===Kt)r.group.dirty(e,u);else if(d===Te&&(d=void 0),d!==h&&(a[u]=d,o=!0,h=d,!1!==globalThis.__DEV__)){var p=function(O){if(void 0===r.lookup(O.__ref))return!1!==globalThis.__DEV__&&_.V1.warn(3,O),!0};if((0,S.A_)(d))p(d);else if(Array.isArray(d))for(var y=!1,m=void 0,g=0,C=d;g<C.length;g++){var b=C[g];if((0,S.A_)(b)){if(y=!0,p(b))break}else"object"==typeof b&&b&&r.policies.identify(b)[0]&&(m=b);if(y&&void 0!==m){!1!==globalThis.__DEV__&&_.V1.warn(4,m);break}}}}void 0!==h&&(s=!1)}}),o)return this.merge(e,a),s&&(this instanceof Z?this.data[e]=void 0:delete this.data[e],this.group.dirty(e,"__exists")),!0}return!1},i.prototype.delete=function(e,t,r){var n,a=this.lookup(e);if(a){var o=this.getFieldValue(a,"__typename"),s=t&&r?this.policies.getStoreFieldName({typename:o,fieldName:t,args:r}):t;return this.modify(e,s?((n={})[s]=Ze,n):Ze)}return!1},i.prototype.evict=function(e,t){var r=!1;return e.id&&(q.call(this.data,e.id)&&(r=this.delete(e.id,e.fieldName,e.args)),this instanceof Z&&this!==t&&(r=this.parent.evict(e,t)||r),(e.fieldName||r)&&this.group.dirty(e.id,e.fieldName||"__exists")),r},i.prototype.clear=function(){this.replace(null)},i.prototype.extract=function(){var e=this,t=this.toObject(),r=[];return this.getRootIdSet().forEach(function(n){q.call(e.policies.rootTypenamesById,n)||r.push(n)}),r.length&&(t.__META={extraRootIds:r.sort()}),t},i.prototype.replace=function(e){var t=this;if(Object.keys(this.data).forEach(function(a){e&&q.call(e,a)||t.delete(a)}),e){var r=e.__META,n=(0,f.Tt)(e,["__META"]);Object.keys(n).forEach(function(a){t.merge(a,n[a])}),r&&r.extraRootIds.forEach(this.retain,this)}},i.prototype.retain=function(e){return this.rootIds[e]=(this.rootIds[e]||0)+1},i.prototype.release=function(e){if(this.rootIds[e]>0){var t=--this.rootIds[e];return t||delete this.rootIds[e],t}return 0},i.prototype.getRootIdSet=function(e){return void 0===e&&(e=new Set),Object.keys(this.rootIds).forEach(e.add,e),this instanceof Z?this.parent.getRootIdSet(e):Object.keys(this.policies.rootTypenamesById).forEach(e.add,e),e},i.prototype.gc=function(){var e=this,t=this.getRootIdSet(),r=this.toObject();t.forEach(function(o){q.call(r,o)&&(Object.keys(e.findChildRefIds(o)).forEach(t.add,t),delete r[o])});var n=Object.keys(r);if(n.length){for(var a=this;a instanceof Z;)a=a.parent;n.forEach(function(o){return a.delete(o)})}return n},i.prototype.findChildRefIds=function(e){if(!q.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(a){(0,S.A_)(a)&&(t[a.__ref]=!0),(0,j.U)(a)&&Object.keys(a).forEach(function(o){var s=a[o];(0,j.U)(s)&&n.add(s)})})}return this.refs[e]},i.prototype.makeCacheKey=function(){return this.group.keyMaker.lookupArray(arguments)},i}(),Gt=function(){function i(e,t){void 0===t&&(t=null),this.caching=e,this.parent=t,this.d=null,this.resetCaching()}return i.prototype.resetCaching=function(){this.d=this.caching?(0,G.yN)():null,this.keyMaker=new he.b(L.et)}
1,i.prototype.depend=function(e,t){if(this.d){this.d($e(e,t));var r=X(t);r!==t&&this.d($e(e,r)),this.parent&&this.parent.depend(e,t)}},i.prototype.dirty=function(e,t){this.d&&this.d.dirty($e(e,t),"__exists"===t?"forget":"setDirty")},i}();function $e(i,e){return e+"#"+i}function Yt(i,e){ge(i)&&i.group.depend(e,"__exists")}e=function(t){function r(n){var o=n.resultCaching,c=n.seed,u=t.call(this,n.policies,new Gt(void 0===o||o))||this;return u.stump=new li(u),u.storageTrie=new he.b(L.et),c&&u.replace(c),u}return(0,f.C6)(r,t),r.prototype.addLayer=function(n,a){return this.stump.addLayer(n,a)},r.prototype.removeLayer=function(){return this},r.prototype.getStorage=function(){return this.storageTrie.lookupArray(arguments)},r}(i=me||(me={})),i.Root=e;var Z=function(i){function e(t,r,n,a){var o=i.call(this,r.policies,a)||this;return o.id=t,o.parent=r,o.replay=n,o.group=a,n(o),o}return(0,f.C6)(e,i),e.prototype.addLayer=function(t,r){return new e(t,this,r,this.group)},e.prototype.removeLayer=function(t){var r=this,n=this.parent.removeLayer(t);return t===this.id?(this.group.caching&&Object.keys(this.data).forEach(function(a){var o=r.data[a],s=n.lookup(a);s?o?o!==s&&Object.keys(o).forEach(function(c){I(o[c],s[c])||r.group.dirty(a,c)}):(r.group.dirty(a,"__exists"),Object.keys(s).forEach(function(c){r.group.dirty(a,c)})):r.delete(a)}),n):n===this.parent?this:n.addLayer(this.id,this.replay)},e.prototype.toObject=function(){return(0,f.Cl)((0,f.Cl)({},this.parent.toObject()),this.data)},e.prototype.findChildRefIds=function(t){var r=this.parent.findChildRefIds(t);return q.call(this.data,t)?(0,f.Cl)((0,f.Cl)({},r),i.prototype.findChildRefIds.call(this,t)):r},e.prototype.getStorage=function(){for(var t=this.parent;t.parent;)t=t.parent;return t.getStorage.apply(t,arguments)},e}(me),li=function(i){function e(t){return i.call(this,"EntityStore.Stump",t,function(){},new Gt(t.group.caching,t.group))||this}return(0,f.C6)(e,i),e.prototype.removeLayer=function(){return this},e.prototype.merge=function(t,r){return this.parent.merge(t,r)},e}(Z);function fi(i,e,t){var r=i[t],n=e[t];return I(r,n)?r:n}function ge(i){return!!(i instanceof me&&i.group.caching)}var Jt=function(){function i(){this.known=new(L.En?WeakSet:Set),this.pool=new he.b(L.et),this.passes=new WeakMap,this.keysByJSON=new Map,this.empty=this.admit({})}return i.prototype.isKnown=function(e){return(0,j.U)(e)&&this.known.has(e)},i.prototype.pass=function(e){if((0,j.U)(e)){var t=function hi(i){return(0,j.U)(i)?(0,P.c)(i)?i.slice(0):(0,f.Cl)({__proto__:Object.getPrototypeOf(i)},i):i}(e);return this.passes.set(t,e),t}return e},i.prototype.admit=function(e){var t=this;if((0,j.U)(e)){var r=this.passes.get(e);if(r)return r;switch(Object.getPrototypeOf(e)){case Array.prototype:if(this.known.has(e))return e;var a=e.map(this.admit,this);return(o=this.pool.lookupArray(a)).array||(this.known.add(o.array=a),!1!==globalThis.__DEV__&&Object.freeze(a)),o.array;case null:case Object.prototype:if(this.known.has(e))return e;var s=Object.getPrototypeOf(e),c=[s],u=this.sortedKeys(e);c.push(u.json);var o,l=c.length;if(u.sorted.forEach(function(d){c.push(t.admit(e[d]))}),!(o=this.pool.lookupArray(c)).object){var h=o.object=Object.create(s);this.known.add(h),u.sorted.forEach(function(d,p){h[d]=c[l+p]}),!1!==globalThis.__DEV__&&Object.freeze(h)}return o.object}}return e},i.prototype.sortedKeys=function(e){var t=Object.keys(e),r=this.pool.lookupArray(t);if(!r.keys){t.sort();var n=JSON.stringify(t);(r.keys=this.keysByJSON.get(n))||this.keysByJSON.set(n,r.keys={sorted:t,json:n})}return r.keys},i}();function Xt(i){return[i.selectionSet,i.objectOrReference,i.context,i.context.canonizeResults]}var vi=function(){function i(e){var t=this;this.knownResults=new(L.et?WeakMap:Map),this.config=(0,Oe.o)(e,{addTypename:!1!==e.addTypename,canonizeResults:Bt(e)}),this.canon=e.canon||new Jt,this.executeSelectionSet=(0,G.LV)(function(r){var n,a=r.context.canonizeResults,o=Xt(r);o[3]=!a;var s=(n=t.executeSelectionSet).peek.apply(n,o);return s?a?(0,f.Cl)((0,f.Cl)({},s),{result:t.canon.admit(s.result)}):s:(Yt(r.context.store,r.enclosingRef.__ref),t.execSelectionSetImpl(r))},{max:this.config.resultCacheMaxSize||ve.v["inMemoryCache.executeSelectionSet"]||5e4,keyArgs:Xt,makeCacheKey:function(r,n,a,o){if(ge(a.store))return a.store.makeCacheKey(r,(0,S.A_)(n)?n.__ref:n,a.varString,o)}}),this.executeSubSelectedArray=(0,G.LV)(function(r){return Yt(r.context.store,r.enclosingRef.__ref),t.execSubSelectedArrayImpl(r)},{max:this.config.resultCacheMaxSize||ve.v["inMemoryCache.executeSubSelectedArray"]||1e4,makeCacheKey:function(r){var n=r.field,a=r.array,o=r.context;if(ge(o.store))return o.store.makeCacheKey(n,a,o.varString)}})}return i.prototype.resetCanon=function(){this.canon=new Jt},i.prototype.diffQueryAgainstStore=function(e){var t=e.store,r=e.query,n=e.rootId,a=void 0===n?"ROOT_QUERY":n,o=e.variables,s=e.returnPartialData,c=void 0===s||s,u=e.canonizeResults,l=void 0===u?this.config.canonizeResults:u,h=this.config.cache.policies;o=(0,f.Cl)((0,f.Cl)({},(0,Q.wY)((0,Q.AT)(r))),o);var p,v=(0,S.WU)(a),d=this.executeSelectionSet({selectionSet:(0,Q.Vn)(r).selectionSet,objectOrReference:v,enclosingRef:v,context:(0,f.Cl)({store:t,query:r,policies:h,variables:o,varString:(0,re.M)(o),canonizeResults:l},Ht(r,this.config.fragments))});if(d.missing&&(p=[new Ye(di(d.missing),d.missing,r,o)],!c))throw p[0];return{result:d.result,complete:!p,missing:p}},i.prototype.isFresh=function(e,t,r,n){if(ge(n.store)&&this.knownResults.get(e)===r){var a=this.executeSelectionSet.peek(r,t,n,this.canon.isKnown(e));if(a&&e===a.result)return!0}return!1},i.prototype.execSelectionSetImpl=function(e){var t=this,r=e.selectionSet,n=e.objectOrReference,a=e.enclosingRef,o=e.context;if((0,S.A_)(n)&&!o.policies.rootTypenamesById[n.__ref]&&!o.store.has(n.__ref))return{result:this.canon.empty,missing:"Dangling reference to missing ".concat(n.__ref," object")};var v,s=o.variables,c=o.policies,l=o.store.getFieldValue(n,"__typename"),h=[],d=new B.ZI;function p(b,E){var O;return b.missing&&(v=d.merge(v,((O={})[E]=b.missing,O))),b.result}this.config.addTypename&&"string"==typeof l&&!c.rootIdsByTypename[l]&&h.push({__typename:l});var y=new Set(r.selections);
1y.forEach(function(b){var E,O;if((0,W.MS)(b,s))if((0,S.dt)(b)){var w=c.readField({fieldName:b.name.value,field:b,variables:o.variables,from:n},o),k=(0,S.ue)(b);void 0===w?J.XY.added(b)||(v=d.merge(v,((E={})[k]="Can't find field '".concat(b.name.value,"' on ").concat((0,S.A_)(n)?n.__ref+" object":"object "+JSON.stringify(n,null,2)),E))):(0,P.c)(w)?w.length>0&&(w=p(t.executeSubSelectedArray({field:b,array:w,enclosingRef:a,context:o}),k)):b.selectionSet?null!=w&&(w=p(t.executeSelectionSet({selectionSet:b.selectionSet,objectOrReference:w,enclosingRef:(0,S.A_)(w)?w:a,context:o}),k)):o.canonizeResults&&(w=t.canon.pass(w)),void 0!==w&&h.push(((O={})[k]=w,O))}else{var R=(0,H.HQ)(b,o.lookupFragment);if(!R&&b.kind===x.Kind.FRAGMENT_SPREAD)throw(0,_.vA)(10,b.name.value);R&&c.fragmentMatches(R,l)&&R.selectionSet.selections.forEach(y.add,y)}});var g={result:(0,B.IM)(h),missing:v},C=o.canonizeResults?this.canon.admit(g):(0,Se.G)(g);return C.result&&this.knownResults.set(C.result,r),C},i.prototype.execSubSelectedArrayImpl=function(e){var s,t=this,r=e.field,n=e.array,a=e.enclosingRef,o=e.context,c=new B.ZI;function u(l,h){var v;return l.missing&&(s=c.merge(s,((v={})[h]=l.missing,v))),l.result}return r.selectionSet&&(n=n.filter(o.store.canRead)),n=n.map(function(l,h){return null===l?null:(0,P.c)(l)?u(t.executeSubSelectedArray({field:r,array:l,enclosingRef:a,context:o}),h):r.selectionSet?u(t.executeSelectionSet({selectionSet:r.selectionSet,objectOrReference:l,enclosingRef:(0,S.A_)(l)?l:a,context:o}),h):(!1!==globalThis.__DEV__&&function pi(i,e,t){if(!e.selectionSet){var r=new Set([t]);r.forEach(function(n){(0,j.U)(n)&&((0,_.V1)(!(0,S.A_)(n),11,function ui(i,e){return(0,S.A_)(e)?i.get(e.__ref,"__typename"):e&&e.__typename}(i,n),e.name.value),Object.values(n).forEach(r.add,r))})}}(o.store,r,l),l)}),{result:o.canonizeResults?this.canon.admit(n):n,missing:s}},i}();function di(i){try{JSON.stringify(i,function(e,t){if("string"==typeof t)throw t;return t})}catch(e){return e}}var yi=T(31687),Zt=Object.create(null);function et(i){var e=JSON.stringify(i);return Zt[e]||(Zt[e]=Object.create(null))}function $t(i){var e=et(i);return e.keyFieldsFn||(e.keyFieldsFn=function(t,r){var n=function(o,s){return r.readField(s,o)},a=r.keyObject=tt(i,function(o){var s=se(r.storeObject,o,n);return void 0===s&&t!==r.storeObject&&q.call(t,o[0])&&(s=se(t,o,rr)),(0,_.V1)(void 0!==s,5,o.join("."),t),s});return"".concat(r.typename,":").concat(JSON.stringify(a))})}function er(i){var e=et(i);return e.keyArgsFn||(e.keyArgsFn=function(t,r){var n=r.field,a=r.variables,o=r.fieldName,s=tt(i,function(u){var l=u[0],h=l.charAt(0);if("@"!==h)if("$"!==h){if(t)return se(t,u)}else{var y=l.slice(1);if(a&&q.call(a,y)){var m=u.slice(0);return m[0]=y,se(a,m)}}else if(n&&(0,P.E)(n.directives)){var v=l.slice(1),d=n.directives.find(function(g){return g.name.value===v}),p=d&&(0,S.MB)(d,a);return p&&se(p,u.slice(1))}}),c=JSON.stringify(s);return(t||"{}"!==c)&&(o+=":"+c),o})}function tt(i,e){var t=new B.ZI;return tr(i).reduce(function(r,n){var a,o=e(n);if(void 0!==o){for(var s=n.length-1;s>=0;--s)(a={})[n[s]]=o,o=a;r=t.merge(r,o)}return r},Object.create(null))}function tr(i){var e=et(i);if(!e.paths){var t=e.paths=[],r=[];i.forEach(function(n,a){(0,P.c)(n)?(tr(n).forEach(function(o){return t.push(r.concat(o))}),r.length=0):(r.push(n),(0,P.c)(i[a+1])||(t.push(r.slice(0)),r.length=0))})}return e.paths}function rr(i,e){return i[e]}function se(i,e,t){return t=t||rr,ir(e.reduce(function r(n,a){return(0,P.c)(n)?n.map(function(o){return r(o,a)}):n&&t(n,a)},i))}function ir(i){return(0,j.U)(i)?(0,P.c)(i)?i.map(ir):tt(Object.keys(i).sort(),function(e){return se(i,e)}):i}function rt(i){return void 0!==i.args?i.args:i.field?(0,S.MB)(i.field,i.variables):null}var mi=function(){},nr=function(i,e){return e.fieldName},ar=function(i,e,t){return(0,t.mergeObjects)(i,e)},or=function(i,e){return e},gi=function(){function i(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,f.Cl)({dataIdFromObject:Je},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 i.prototype.identify=function(e,t){var r,n=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"];var c,o=t&&t.storeObject||e,s=(0,f.Cl)((0,f.Cl)({},t),{typename:a,storeObject:o,readField:t&&t.readField||function(){var h=it(arguments,o);return n.readField(h,{store:n.cache.data,variables:h.variables})}}),u=a&&this.getTypePolicy(a),l=u&&u.keyFn||this.config.dataIdFromObject;return Be.withValue(!0,function(){for(;l;){var h=l((0,f.Cl)((0,f.Cl)({},e),o),s);if(!(0,P.c)(h)){c=h;break}l=$t(h)}}),c=c?String(c):void 0,s.keyObject?[c,s.keyObject]:[c]},i.prototype.addTypePolicies=function(e){var t=this;Object.keys(e).forEach(function(r){var n=e[r],a=n.queryType,o=n.mutationType,s=n.subscriptionType,c=(0,f.Tt)(n,["queryType","mutationType","subscriptionType"]);a&&t.setRootTypename("Query",r),o&&t.setRootTypename("Mutation",r),s&&t.setRootTypename("Subscription",r),q.call(t.toBeAdded,r)?t.toBeAdded[r].push(c):t.toBeAdded[r]=[c]})},i.prototype.updateTypePolicy=function(e,t,r){var n=this.getTypePolicy(e),a=t.keyFields,o=t.fields;function s(c,u){c.merge="function"==typeof u?u:!0===u?ar:!1===u?or:c.merge}s(n,t.merge),n.keyFn=!1===a?mi:(0,P.c)(a)?$t(a):"function"==typeof a?a:n.keyFn,o&&Object.keys(o).forEac
1h(function(c){var u=r[c];(!u||(null==u?void 0:u.typename)!==e)&&(u=r[c]={typename:e});var l=o[c];if("function"==typeof l)u.read=l;else{var h=l.keyArgs,v=l.read,d=l.merge;u.keyFn=!1===h?nr:(0,P.c)(h)?er(h):"function"==typeof h?h:u.keyFn,"function"==typeof v&&(u.read=v),s(u,d)}u.read&&u.merge&&(u.keyFn=u.keyFn||nr)})},i.prototype.setRootTypename=function(e,t){void 0===t&&(t=e);var r="ROOT_"+e.toUpperCase(),n=this.rootTypenamesById[r];t!==n&&((0,_.V1)(!n||n===e,6,e),n&&delete this.rootIdsByTypename[n],this.rootIdsByTypename[t]=r,this.rootTypenamesById[r]=t)},i.prototype.addPossibleTypes=function(e){var t=this;this.usingPossibleTypes=!0,Object.keys(e).forEach(function(r){t.getSupertypeSet(r,!0),e[r].forEach(function(n){t.getSupertypeSet(n,!0).add(r);var a=n.match(Ut);(!a||a[0]!==n)&&t.fuzzySubtypes.set(n,new RegExp(n))})})},i.prototype.getTypePolicy=function(e){var t=this;if(!q.call(this.typePolicies,e)){var r=this.typePolicies[e]=Object.create(null);r.fields=Object.create(null);var n=this.supertypeMap.get(e);!n&&this.fuzzySubtypes.size&&(n=this.getSupertypeSet(e,!0),this.fuzzySubtypes.forEach(function(o,s){if(o.test(e)){var c=t.supertypeMap.get(s);c&&c.forEach(function(u){return n.add(u)})}})),n&&n.size&&n.forEach(function(o){var s=t.getTypePolicy(o),c=s.fields,u=(0,f.Tt)(s,["fields"]);Object.assign(r,u),Object.assign(r.fields,c)})}var a=this.toBeAdded[e];return a&&a.length&&a.splice(0).forEach(function(o){t.updateTypePolicy(e,o,t.typePolicies[e].fields)}),this.typePolicies[e]},i.prototype.getFieldPolicy=function(e,t){if(e)return this.getTypePolicy(e).fields[t]},i.prototype.getSupertypeSet=function(e,t){var r=this.supertypeMap.get(e);return!r&&t&&this.supertypeMap.set(e,r=new Set),r},i.prototype.fragmentMatches=function(e,t,r,n){var a=this;if(!e.typeCondition)return!0;if(!t)return!1;var o=e.typeCondition.name.value;if(t===o)return!0;if(this.usingPossibleTypes&&this.supertypeMap.has(o))for(var s=this.getSupertypeSet(t,!0),c=[s],u=function(p){var y=a.getSupertypeSet(p,!1);y&&y.size&&c.indexOf(y)<0&&c.push(y)},l=!(!r||!this.fuzzySubtypes.size),h=!1,v=0;v<c.length;++v){var d=c[v];if(d.has(o))return s.has(o)||(h&&!1!==globalThis.__DEV__&&_.V1.warn(7,t,o),s.add(o)),!0;d.forEach(u),l&&v===c.length-1&&Xe(e.selectionSet,r,n)&&(l=!1,h=!0,this.fuzzySubtypes.forEach(function(p,y){var m=t.match(p);m&&m[0]===t&&u(y)}))}return!1},i.prototype.hasKeyArgs=function(e,t){var r=this.getFieldPolicy(e,t);return!(!r||!r.keyFn)},i.prototype.getStoreFieldName=function(e){var a,t=e.typename,r=e.fieldName,n=this.getFieldPolicy(t,r),o=n&&n.keyFn;if(o&&t)for(var s={typename:t,fieldName:r,field:e.field||null,variables:e.variables},c=rt(e);o;){var u=o(c,s);if(!(0,P.c)(u)){a=u||r;break}o=er(u)}return void 0===a&&(a=e.field?(0,S.Ii)(e.field,e.variables):(0,S.o5)(r,rt(e))),!1===a?r:r===X(a)?a:r+":"+a},i.prototype.readField=function(e,t){var r=e.from;if(r&&(e.field||e.fieldName)){if(void 0===e.typename){var a=t.store.getFieldValue(r,"__typename");a&&(e.typename=a)}var o=this.getStoreFieldName(e),s=X(o),c=t.store.getFieldValue(r,o),u=this.getFieldPolicy(e.typename,s),l=u&&u.read;if(l){var h=sr(this,r,e,t,t.store.getStorage((0,S.A_)(r)?r.__ref:r,o));return Ue.withValue(this.cache,l,[c,h])}return c}},i.prototype.getReadFunction=function(e,t){var r=this.getFieldPolicy(e,t);return r&&r.read},i.prototype.getMergeFunction=function(e,t,r){var n=this.getFieldPolicy(e,t),a=n&&n.merge;return!a&&r&&(a=(n=this.getTypePolicy(r))&&n.merge),a},i.prototype.runMergeFunction=function(e,t,r,n,a){var o=r.field,s=r.typename,c=r.merge;return c===ar?ur(n.store)(e,t):c===or?t:(n.overwrite&&(e=void 0),c(e,t,sr(this,void 0,{typename:s,fieldName:o.name.value,field:o,variables:n.variables},n,a||Object.create(null))))},i}();function sr(i,e,t,r,n){var a=i.getStoreFieldName(t),o=X(a),s=t.variables||r.variables,c=r.store,u=c.toReference,l=c.canRead;return{args:rt(t),field:t.field||null,fieldName:o,storeFieldName:a,variables:s,isReference:S.A_,toReference:u,storage:n,cache:i.cache,canRead:l,readField:function(){return i.readField(it(arguments,e,s),r)},mergeObjects:ur(r.store)}}function it(i,e,t){var o,r=i[0];return"string"==typeof r?o={fieldName:r,from:i.length>1?i[1]:e}:(o=(0,f.Cl)({},r),q.call(o,"from")||(o.from=e)),!1!==globalThis.__DEV__&&void 0===o.from&&!1!==globalThis.__DEV__&&_.V1.warn(8,(0,yi.p)(Array.from(i))),void 0===o.variables&&(o.variables=t),o}function ur(i){return function(t,r){if((0,P.c)(t)||(0,P.c)(r))throw(0,_.vA)(9);if((0,j.U)(t)&&(0,j.U)(r)){var n=i.getFieldValue(t,"__typename"),a=i.getFieldValue(r,"__typename");if(n&&a&&n!==a)return r;if((0,S.A_)(t)&&oe(r))return i.merge(t.__ref,r),t;if(oe(t)&&(0,S.A_)(r))return i.merge(t,r.__ref),r;if(oe(t)&&oe(r))return(0,f.Cl)((0,f.Cl)({},t),r)}return r}}function nt(i,e,t){var r="".concat(e).concat(t),n=i.flavors.get(r);return n||i.flavors.set(r,n=i.clientOnly===e&&i.deferred===t?i:(0,f.Cl)((0,f.Cl)({},i),{clientOnly:e,deferred:t})),n}var bi=function(){function i(e,t,r){this.cache=e,this.reader=t,this.fragments=r}return i.prototype.writeToStore=function(e,t){var r=this,n=t.query,a=t.result,o=t.dataId,s=t.variables,c=t.overwrite,u=(0,Q.Vu)(n),l=function ci(){return new B.ZI}();s=(0,f.Cl)((0,f.Cl)({},(0,Q.wY)(u)),s);var h=(0,f.Cl)((0,f.Cl)({store:e,written:Object.create(null),merge:function(d,p){return l.merge(d,p)},variables:s,varString:(0,re.M)(s)},Ht(n,this.fragments)),{overwrite:!!c,incomingById:new Map,clientOnly:!1,deferred:!1,flavors:new Map}),v=this.processSelectionSet({result:a||Object.create(null),dataId:o,selectionSet:u.selectionSet,mergeTree:{map:new Map},context:h});if(!(0,S.A_)(v))throw(0,_.vA)(12,a);
1return h.incomingById.forEach(function(d,p){var y=d.storeObject,m=d.mergeTree,g=d.fieldNodeSet,C=(0,S.WU)(p);if(m&&m.map.size){var b=r.applyMerges(m,C,y,h);if((0,S.A_)(b))return;y=b}if(!1!==globalThis.__DEV__&&!h.overwrite){var E=Object.create(null);g.forEach(function(k){k.selectionSet&&(E[k.name.value]=!0)}),Object.keys(y).forEach(function(k){(function(k){return!0===E[X(k)]})(k)&&!function(k){var R=m&&m.map.get(k);return!!(R&&R.info&&R.info.merge)}(k)&&function Ci(i,e,t,r){var n=function(h){var v=r.getFieldValue(h,t);return"object"==typeof v&&v},a=n(i);if(a){var o=n(e);if(o&&!(0,S.A_)(a)&&!I(a,o)&&!Object.keys(a).every(function(h){return void 0!==r.getFieldValue(o,h)})){var s=r.getFieldValue(i,"__typename")||r.getFieldValue(e,"__typename"),c=X(t),u="".concat(s,".").concat(c);if(!hr.has(u)){hr.add(u);var l=[];!(0,P.c)(a)&&!(0,P.c)(o)&&[a,o].forEach(function(h){var v=r.getFieldValue(h,"__typename");"string"==typeof v&&!l.includes(v)&&l.push(v)}),!1!==globalThis.__DEV__&&_.V1.warn(15,c,s,l.length?"either ensure all objects of type "+l.join(" and ")+" have an ID or a custom merge function, or ":"",u,(0,f.Cl)({},a),(0,f.Cl)({},o))}}}}(C,y,k,h.store)})}e.merge(p,y)}),e.retain(v.__ref),v},i.prototype.processSelectionSet=function(e){var t=this,r=e.dataId,n=e.result,a=e.selectionSet,o=e.context,s=e.mergeTree,c=this.cache.policies,u=Object.create(null),l=r&&c.rootTypenamesById[r]||(0,S.D$)(n,a,o.fragmentMap)||r&&o.store.get(r,"__typename");"string"==typeof l&&(u.__typename=l);var h=function(){var b=it(arguments,u,o.variables);if((0,S.A_)(b.from)){var E=o.incomingById.get(b.from.__ref);if(E){var O=c.readField((0,f.Cl)((0,f.Cl)({},b),{from:E.storeObject}),o);if(void 0!==O)return O}}return c.readField(b,o)},v=new Set;this.flattenFields(a,n,o,l).forEach(function(b,E){var O,w=(0,S.ue)(E),k=n[w];if(v.add(E),void 0!==k){var R=c.getStoreFieldName({typename:l,fieldName:E.name.value,field:E,variables:b.variables}),F=lr(s,R),V=t.processFieldValue(k,E,E.selectionSet?nt(b,!1,!1):b,F),$=void 0;E.selectionSet&&((0,S.A_)(V)||oe(V))&&($=h("__typename",V));var U=c.getMergeFunction(l,E.name.value,$);U?F.info={field:E,typename:l,merge:U}:fr(s,R),u=b.merge(u,((O={})[R]=V,O))}else!1!==globalThis.__DEV__&&!b.clientOnly&&!b.deferred&&!J.XY.added(E)&&!c.getReadFunction(l,E.name.value)&&!1!==globalThis.__DEV__&&_.V1.error(13,(0,S.ue)(E),n)});try{var d=c.identify(n,{typename:l,selectionSet:a,fragmentMap:o.fragmentMap,storeObject:u,readField:h}),y=d[1];r=r||d[0],y&&(u=o.merge(u,y))}catch(b){if(!r)throw b}if("string"==typeof r){var m=(0,S.WU)(r),g=o.written[r]||(o.written[r]=[]);if(g.indexOf(a)>=0||(g.push(a),this.reader&&this.reader.isFresh(n,m,a,o)))return m;var C=o.incomingById.get(r);return C?(C.storeObject=o.merge(C.storeObject,u),C.mergeTree=at(C.mergeTree,s),v.forEach(function(b){return C.fieldNodeSet.add(b)})):o.incomingById.set(r,{storeObject:u,mergeTree:De(s)?void 0:s,fieldNodeSet:v}),m}return u},i.prototype.processFieldValue=function(e,t,r,n){var a=this;return t.selectionSet&&null!==e?(0,P.c)(e)?e.map(function(o,s){var c=a.processFieldValue(o,t,r,lr(n,s));return fr(n,s),c}):this.processSelectionSet({result:e,selectionSet:t.selectionSet,context:r,mergeTree:n}):!1!==globalThis.__DEV__?(0,wt.m)(e):e},i.prototype.flattenFields=function(e,t,r,n){void 0===n&&(n=(0,S.D$)(t,e,r.fragmentMap));var a=new Map,o=this.cache.policies,s=new he.b(!1);return function c(u,l){var h=s.lookup(u,l.clientOnly,l.deferred);h.visited||(h.visited=!0,u.selections.forEach(function(v){if((0,W.MS)(v,r.variables)){var d=l.clientOnly,p=l.deferred;if(!(d&&p)&&(0,P.E)(v.directives)&&v.directives.forEach(function(g){var C=g.name.value;if("client"===C&&(d=!0),"defer"===C){var b=(0,S.MB)(g,r.variables);(!b||!1!==b.if)&&(p=!0)}}),(0,S.dt)(v)){var y=a.get(v);y&&(d=d&&y.clientOnly,p=p&&y.deferred),a.set(v,nt(r,d,p))}else{var m=(0,H.HQ)(v,r.lookupFragment);if(!m&&v.kind===x.Kind.FRAGMENT_SPREAD)throw(0,_.vA)(14,v.name.value);m&&o.fragmentMatches(m,n,t,r.variables)&&c(m.selectionSet,nt(r,d,p))}}}))}(e,r),a},i.prototype.applyMerges=function(e,t,r,n,a){var o,s=this;if(e.map.size&&!(0,S.A_)(r)){var c=(0,P.c)(r)||!(0,S.A_)(t)&&!oe(t)?void 0:t,u=r;c&&!a&&(a=[(0,S.A_)(c)?c.__ref:c]);var l,h=function(v,d){return(0,P.c)(v)?"number"==typeof d?v[d]:void 0:n.store.getFieldValue(v,
1String(d))};e.map.forEach(function(v,d){var p=h(c,d),y=h(u,d);if(void 0!==y){a&&a.push(d);var m=s.applyMerges(v,p,y,n,a);m!==y&&(l=l||new Map).set(d,m),a&&(0,_.V1)(a.pop()===d)}}),l&&(r=(0,P.c)(u)?u.slice(0):(0,f.Cl)({},u),l.forEach(function(v,d){r[d]=v}))}return e.info?this.cache.policies.runMergeFunction(t,r,e.info,n,a&&(o=n.store).getStorage.apply(o,a)):r},i}(),cr=[];function lr(i,e){var t=i.map;return t.has(e)||t.set(e,cr.pop()||{map:new Map}),t.get(e)}function at(i,e){if(i===e||!e||De(e))return i;if(!i||De(i))return e;var t=i.info&&e.info?(0,f.Cl)((0,f.Cl)({},i.info),e.info):i.info||e.info,r=i.map.size&&e.map.size,a={info:t,map:r?new Map:i.map.size?i.map:e.map};if(r){var o=new Set(e.map.keys());i.map.forEach(function(s,c){a.map.set(c,at(s,e.map.get(c))),o.delete(c)}),o.forEach(function(s){a.map.set(s,at(e.map.get(s),i.map.get(s)))})}return a}function De(i){return!i||!(i.info||i.map.size)}function fr(i,e){var t=i.map,r=t.get(e);r&&De(r)&&(cr.push(r),t.delete(e))}var hr=new Set,vr=function(i){function e(t){void 0===t&&(t={});var r=i.call(this)||this;return r.watches=new Set,r.addTypenameTransform=new je.c(J.XY),r.assumeImmutableResults=!0,r.makeVar=xt,r.txCount=0,!1!==globalThis.__DEV__&&((0,D.cc)(t,"addTypename","InMemoryCache","Please remove the `addTypename` option when initializing `InMemoryCache`."),(0,D.cc)(t,"canonizeResults","InMemoryCache","Please remove the `canonizeResults` option when initializing `InMemoryCache`.")),r.config=function si(i){return(0,Oe.o)(Wt,i)}(t),r.addTypename=!!r.config.addTypename,r.policies=new gi({cache:r,dataIdFromObject:r.config.dataIdFromObject,possibleTypes:r.config.possibleTypes,typePolicies:r.config.typePolicies}),r.init(),r}return(0,f.C6)(e,i),e.prototype.init=function(){var t=this.data=new me.Root({policies:this.policies,resultCaching:this.config.resultCaching});this.optimisticData=t.stump,this.resetResultCache()},e.prototype.resetResultCache=function(t){var r=this,n=this.storeReader,a=this.config.fragments;this.addTypenameTransform.resetCache(),null==a||a.resetCaches(),this.storeWriter=new bi(this,this.storeReader=new vi({cache:this,addTypename:this.addTypename,resultCacheMaxSize:this.config.resultCacheMaxSize,canonizeResults:Bt(this.config),canon:t?void 0:n&&n.canon,fragments:a}),a),this.maybeBroadcastWatch=(0,G.LV)(function(o,s){return r.broadcastWatch(o,s)},{max:this.config.resultCacheMaxSize||ve.v["inMemoryCache.maybeBroadcastWatch"]||5e3,makeCacheKey:function(o){var s=o.optimistic?r.optimisticData:r.data;if(ge(s))return s.makeCacheKey(o.query,o.callback,(0,re.M)({optimistic:o.optimistic,id:o.id,variables:o.variables}))}}),new Set([this.data.group,this.optimisticData.group]).forEach(function(o){return o.resetCaching()})},e.prototype.restore=function(t){return this.init(),t&&this.data.replace(t),this},e.prototype.extract=function(t){return void 0===t&&(t=!1),(t?this.optimisticData:this.data).extract()},e.prototype.read=function(t){!1!==globalThis.__DEV__&&(0,D.cc)(t,"canonizeResults","cache.read");var r=t.returnPartialData,n=void 0!==r&&r;try{return this.storeReader.diffQueryAgainstStore((0,f.Cl)((0,f.Cl)({},t),{store:t.optimistic?this.optimisticData:this.data,config:this.config,returnPartialData:n})).result||null}catch(a){if(a instanceof Ye)return null;throw a}},e.prototype.write=function(t){try{return++this.txCount,this.storeWriter.writeToStore(this.data,t)}finally{! --this.txCount&&!1!==t.broadcast&&this.broadcastWatches()}},e.prototype.modify=function(t){if(q.call(t,"id")&&!t.id)return!1;var r=t.optimistic?this.optimisticData:this.data;try{return++this.txCount,r.modify(t.id||"ROOT_QUERY",t.fields)}finally{! --this.txCount&&!1!==t.broadcast&&this.broadcastWatches()}},e.prototype.diff=function(t){return!1!==globalThis.__DEV__&&(0,D.cc)(t,"canonizeResults","cache.diff"),this.storeReader.diffQueryAgainstStore((0,f.Cl)((0,f.Cl)({},t),{store:t.optimistic?this.optimisticData:this.data,rootId:t.id||"ROOT_QUERY",config:this.config}))},e.prototype.watch=function(t){var r=this;return this.watches.size||function ii(i){pe(i).vars.forEach(function(e){return e.attachCache(i)})}(this),this.watches.add(t),t.immediate&&this.maybeBroadcastWatch(t),function(){r.watches.delete(t)&&!r.watches.size&&Lt(r),r.maybeBroadcastWatch.forget(t)}},e.prototype.gc=function(t){!1!==globalThis.__DEV__&&(0,D.cc)(t||{},"resetResultIdentities","cache.gc","First ensure all usages of `canonizeResults` are removed, then remove this option."),re.M.reset(),te.y.reset();var r=this.optimisticData.gc();return t&&!this.txCount&&(t.resetResultCache?this.resetResultCache(t.resetResultIdentities):t.resetResultIdentities&&this.storeReader.resetCanon()),r},e.prototype.retain=function(t,r){return(r?this.optimisticData:this.data).retain(t)},e.prototype.release=function(t,r){return(r?this.optimisticData:this.data).release(t)},e.prototype.identify=function(t){if((0,S.A_)(t))return t.__ref;try{return this.policies.identify(t)[0]}catch(r){!1!==globalThis.__DEV__&&_.V1.warn(r)}},e.prototype.evict=function(t){if(!t.id){if(q.call(t,"id"))return!1;t=(0,f.Cl)((0,f.Cl)({},t),{id:"ROOT_QUERY"})}try{return++this.txCount,this.optimisticData.evict(t,this.data)}finally{! --this.txCount&&!1!==t.broadcast&&this.broadcastWatches()}},e.prototype.reset=function(t){var r=this;return this.init(),re.M.reset(),t&&t.discardWatches?(this.watches.forEac
1h(function(n){return r.maybeBroadcastWatch.forget(n)}),this.watches.clear(),Lt(this)):this.broadcastWatches(),Promise.resolve()},e.prototype.removeOptimistic=function(t){var r=this.optimisticData.removeLayer(t);r!==this.optimisticData&&(this.optimisticData=r,this.broadcastWatches())},e.prototype.batch=function(t){var u,r=this,n=t.update,a=t.optimistic,o=void 0===a||a,s=t.removeOptimistic,c=t.onWatchUpdated,l=function(v){var p=r.data,y=r.optimisticData;++r.txCount,v&&(r.data=r.optimisticData=v);try{return u=n(r)}finally{--r.txCount,r.data=p,r.optimisticData=y}},h=new Set;return c&&!this.txCount&&this.broadcastWatches((0,f.Cl)((0,f.Cl)({},t),{onWatchUpdated:function(v){return h.add(v),!1}})),"string"==typeof o?this.optimisticData=this.optimisticData.addLayer(o,l):!1===o?l(this.data):l(),"string"==typeof s&&(this.optimisticData=this.optimisticData.removeLayer(s)),c&&h.size?(this.broadcastWatches((0,f.Cl)((0,f.Cl)({},t),{onWatchUpdated:function(v,d){var p=c.call(this,v,d);return!1!==p&&h.delete(v),p}})),h.size&&h.forEach(function(v){return r.maybeBroadcastWatch.dirty(v)})):this.broadcastWatches(t),u},e.prototype.performTransaction=function(t,r){return this.batch({update:t,optimistic:r||null!==r})},e.prototype.transformDocument=function(t){return this.addTypenameToDocument(this.addFragmentsToDocument(t))},e.prototype.fragmentMatches=function(t,r){return this.policies.fragmentMatches(t,r)},e.prototype.lookupFragment=function(t){var r;return(null===(r=this.config.fragments)||void 0===r?void 0:r.lookup(t))||null},e.prototype.broadcastWatches=function(t){var r=this;this.txCount||this.watches.forEach(function(n){return r.maybeBroadcastWatch(n,t)})},e.prototype.addFragmentsToDocument=function(t){var r=this.config.fragments;return r?r.transform(t):t},e.prototype.addTypenameToDocument=function(t){return this.addTypename?this.addTypenameTransform.transformDocument(t):t},e.prototype.broadcastWatch=function(t,r){var n=this,a=t.lastDiff,o=(0,D.lz)("canonizeResults",function(){return n.diff(t)});r&&(t.optimistic&&"string"==typeof r.optimistic&&(o.fromOptimisticTransaction=!0),r.onWatchUpdated&&!1===r.onWatchUpdated.call(this,t,o,a))||(!a||!I(a.result,o.result))&&t.callback(t.lastDiff=o,a)},e}(Ge);!1!==globalThis.__DEV__&&(vr.prototype.getMemoryInternals=He.cM);var ue=T(4231),Ei=function(){if(typeof AbortController>"u")return{controller:!1,signal:!1};var i=new AbortController;return{controller:i,signal:i.signal}};function Oi(i){var e=!1;return new Promise(function(t,r){i.subscribe({next:function(n){e?!1!==globalThis.__DEV__&&_.V1.warn(57):(e=!0,t(n))},error:r})})}function _i(i){return new K.c(function(e){i.then(function(t){e.next(t),e.complete()}).catch(e.error.bind(e))})}var dr=T(33375),be=T(72703);(0,dr.Q9)(!1!==globalThis.__DEV__?"log":"silent")}}]);

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