PageSourceSearch

https://www.kraewet.dk/_next/static/chunks/3hwbwwytrpdkw.js

js kraewet.dk collected 2026-10-09 17:27:33 UTC 185,603 bytes, 14 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,107828,e=>{"use strict";var t,r,n,i,o,a=e.i(391398),s=e.i(408122),u=e.i(358280),c=e.i(776204),l=e.i(191788),f=e.i(159080),p=e.i(332876);function h(e){if(!e||0===e.byteLength)return"";let t=new Uint8Array(e),r="";for(let e=0;e<t.byteLength;e++)r+=String.fromCharCode(t[e]);return btoa(r).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}let d=f.gql`
2  query PushNotificationGetPublicKey {
3    publicVapidKey
4  }
5`,y=f.gql`
6  mutation PushNotificationsSubscribe($sub: SubscriptionInput!) {
7    pushNotifications {
8      subscribe(subscription: $sub) {
9        id 
10        endpoint 
11      }
12    }
13  }
14`;function v({children:e}){let[t,r]=(0,l.useState)(!1),[n,i]=(0,l.useState)(!1),{data:o}=(0,p.useRead)(d,{isDataModifiedOutsideThisView:!1}),[a]=(0,c.useMutation)(y);(0,l.useEffect)(()=>{r("serviceWorker"in navigator&&"PushManager"in window)},[]);let s=(0,l.useCallback)(async()=>{if(!t||!o?.publicVapidKey||"granted"!==await Notification.requestPermission())return;let e=await navigator.serviceWorker.register("/sw.js",{scope:"/"});await navigator.serviceWorker.ready;let r=await e.pushManager.subscribe({userVisibleOnly:!0,applicationServerKey:function(e){let t="=".repeat((4-e.length%4)%4),r=atob((e+t).replace(/-/g,"+").replace(/_/g,"/")),n=new Uint8Array(r.length);for(let e=0;e<r.length;++e)n[e]=r.charCodeAt(e);return n}(o.publicVapidKey)}),n=h(r.getKey("p256dh")),s=h(r.getKey("auth"));n&&s&&(a({variables:{sub:{endpoint:r.endpoint,keys:{p256dh:n,auth:s}}}}),i(!0))},[t,o,a]);return l.default.useEffect(()=>{n||s()},[n,s]),e}var m=e.i(738070),g=e.i(120247);function b({client:e,children:t}){return(0,a.jsx)(g.TokenProvider,{children:(0,a.jsx)(m.ApolloProvider,{client:e,children:t})})}var _=e.i(189280),w=e.i(113959);function k(e){return void 0===e&&(e=!1),{keyArgs:e,read:function(e,t){var r=t.canRead,n=t.readField;if(!e)return e;var i=[],o="",a="";
14e.edges.forEach(function(e){r(n("node",e))&&(i.push(e),e.cursor&&(o=o||e.cursor||"",a=e.cursor||a))}),i.length>1&&o===a&&(o="");var s=e.pageInfo||{},u=s.startCursor,c=s.endCursor;return(0,_.__assign)((0,_.__assign)({},S(e)),{edges:i,pageInfo:(0,_.__assign)((0,_.__assign)({},e.pageInfo),{startCursor:u||o,endCursor:c||a})})},merge:function(e,t,r){var n=r.args,i=r.isReference,o=r.readField;if(e||(e={edges:[],pageInfo:{hasPreviousPage:!1,hasNextPage:!0,startCursor:"",endCursor:""}}),!t)return e;var a=t.edges?t.edges.map(function(e){return i(e=(0,_.__assign)({},e))&&(e.cursor=o("cursor",e)),e}):[];if(t.pageInfo){var s=t.pageInfo,u=s.startCursor,c=s.endCursor,l=a[0],f=a[a.length-1];l&&u&&(l.cursor=u),f&&c&&(f.cursor=c);var p=l&&l.cursor;p&&!u&&(t=(0,w.mergeDeep)(t,{pageInfo:{startCursor:p}}));var h=f&&f.cursor;h&&!c&&(t=(0,w.mergeDeep)(t,{pageInfo:{endCursor:h}}))}var d=e.edges,y=[];if(n&&n.after){var v=d.findIndex(function(e){return e.cursor===n.after});v>=0&&(d=d.slice(0,v+1))}else if(n&&n.before){var v=d.findIndex(function(e){return e.cursor===n.before});y=v<0?d:d.slice(v),d=[]}else t.edges&&(d=[]);var m=(0,_.__spreadArray)((0,_.__spreadArray)((0,_.__spreadArray)([],d,!0),a,!0),y,!0),g=(0,_.__assign)((0,_.__assign)({},t.pageInfo),e.pageInfo);if(t.pageInfo){var b=t.pageInfo,k=b.hasPreviousPage,O=b.hasNextPage,u=b.startCursor,c=b.endCursor;Object.assign(g,(0,_.__rest)(b,["hasPreviousPage","hasNextPage","startCursor","endCursor"])),d.length||(void 0!==k&&(g.hasPreviousPage=k),void 0!==u&&(g.startCursor=u)),y.length||(void 0!==O&&(g.hasNextPage=O),void 0!==c&&(g.endCursor=c))}return(0,_.__assign)((0,_.__assign)((0,_.__assign)({},S(e)),S(t)),{edges:m,pageInfo:g})}}}var S=function(e){return(0,_.__rest)(e,O)},O=["edges","pageInfo"],E=e.i(713463),R=e.i(203828),T=e.i(395585),x=e.i(484936),C=e.i(541866),D=e.i(343759),P=e.i(533879),I=e.i(625945),F=e.i(162979);function A(e){return new F.ApolloLink(function(t,r){return new I.Observable(function(n){var i,o,a;try{i=r(t).subscribe({next:function(i){if(i.errors?a=e({graphQLErrors:i.errors,response:i,operation:t,forward:r}):(0,P.graphQLResultHasProtocolErrors)(i)&&(a=e({protocolErrors:i.extensions[P.PROTOCOL_ERRORS_SYMBOL],response:i,operation:t,forward:r})),a){o=a.subscribe({next:n.next.bind(n),error:n.error.bind(n),complete:n.complete.bind(n)});return}n.next(i)},error:function(i){if(a=e({operation:t,networkError:i,graphQLErrors:i&&i.result&&i.result.errors||void 0,forward:r})){o=a.subscribe({next:n.next.bind(n),error:n.error.bind(n),complete:n.complete.bind(n)});return}n.error(i)},complete:function(){a||n.complete.bind(n)()}})}catch(i){e({networkError:i,operation:t,forward:r}),n.error(i)}return function(){i&&i.unsubscribe(),o&&i.unsubscribe()}})})}var N=F.ApolloLink;function M(e){var t=N.call(this)||this;return t.link=A(e),t}(0,_.__extends)(M,N),M.prototype.request=function(e,t){return this.link.request(e,t)};var j=e.i(741969),q=e.i(130101),Q=function(e){function t(t){var r=e.call(this)||this;return r.client=t,r}return(0,_.__extends)(t,e),t.prototype.request=function(e){var t=this;return new I.Observable(function(r){return t.client.subscribe((0,_.__assign)((0,_.__assign)({},e),{query:(0,j.print)(e.query)}),{next:r.next.bind(r),complete:r.complete.bind(r),error:function(e){if(e instanceof Error)return r.error(e);var t,n=(0,q.isNonNullObject)(e)&&"code"in e&&"reason"in e;return n||(0,q.isNonNullObject)(e)&&(null==(t=e.target)?void 0:t.readyState)===WebSocket.CLOSED?r.error(Error("Socket closed".concat(n?" with event ".concat(e.code):"").concat(n?" ".concat(e.reason):""))):r.error(new P.ApolloError({graphQLErrors:Array.isArray(e)?e:[e]}))}})})},t}(F.ApolloLink),V=e.i(915301),L=e.i(124047),B=e.i(490384),B=B,z=function(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;for(var n=Array(e),i=0,t=0;t<r;t++)for(var o=arguments[t],a=0,s=o.length;a<s;a++,i++)n[i]=o[a];return n},W=function(){function e(e){var t=e.debug;this.debug=void 0!==t&&t,this.lines=[]}return e.prototype.emit=function(t,r){if(t in console){var n=e.prefix;console[t].apply(console,z([n],r))}},e.prototype.tailLogs=function(){var e=this;
14this.lines.forEach(function(t){var r=t[0],n=t[1];return e.emit(r,n)})},e.prototype.getLogs=function(){return this.lines},e.prototype.write=function(t,r){var n=e.buffer;this.lines=z(this.lines.slice(1-n),[[t,r]]),(this.debug||"log"!==t)&&this.emit(t,r)},e.prototype.info=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.write("log",e)},e.prototype.warn=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.write("warn",e)},e.prototype.error=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.write("error",e)},e.buffer=30,e.prefix="[apollo-cache-persist]",e}(),U=function(){function e(e){var t=e.cache,r=e.serialize;this.cache=t,this.serialize=void 0===r||r}return e.prototype.extract=function(){var e=this.cache.extract();return this.serialize&&(e=JSON.stringify(e)),e},e.prototype.restore=function(e){this.serialize&&"string"==typeof e&&(e=JSON.parse(e)),null!=e&&this.cache.restore(e)},e}(),H=function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function a(e){try{u(n.next(e))}catch(e){o(e)}}function s(e){try{u(n.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(a,s)}u((n=n.apply(e,t||[])).next())})},K=function(e,t){var r,n,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){var u=[o,s];if(r)throw TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(i=2&u[0]?n.return:u[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,u[1])).done)return i;switch(n=0,i&&(u=[2&u[0],i.value]),u[0]){case 0:case 1:i=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,n=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===u[0]||2===u[0])){a=0;continue}if(3===u[0]&&(!i||u[1]>i[0]&&u[1]<i[3])){a.label=u[1];break}if(6===u[0]&&a.label<i[1]){a.label=i[1],i=u;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(u);break}i[2]&&a.ops.pop(),a.trys.pop();continue}u=t.call(e,a)}catch(e){u=[6,e],n=0}finally{r=i=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}},G=function(){function e(e){var t=e.storage,r=e.key;this.storage=t,this.key=void 0===r?"apollo-cache-persist":r}return e.prototype.read=function(){return H(this,void 0,void 0,function(){return K(this,function(e){return[2,this.storage.getItem(this.key)]})})},e.prototype.write=function(e){return H(this,void 0,void 0,function(){return K(this,function(t){switch(t.label){case 0:return[4,this.storage.setItem(this.key,e)];case 1:return t.sent(),[2]}})})},e.prototype.purge=function(){return H(this,void 0,void 0,function(){return K(this,function(e){switch(e.label){case 0:return[4,this.storage.removeItem(this.key)];case 1:return e.sent(),[2]}})})},e.prototype.getSize=function(){return H(this,void 0,void 0,function(){var e;return K(this,function(t){switch(t.label){case 0:return[4,this.storage.getItem(this.key)];case 1:if(null==(e=t.sent()))return[2,0];return[2,"string"==typeof e?e.length:null]}})})},e}(),$=function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function a(e){try{u(n.next(e))}catch(e){o(e)}}function s(e){try{u(n.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(a,s)}u((n=n.apply(e,t||[])).next())})},J=function(e,t){var r,n,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){var u=[o,s];if(r)throw TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(i=2&u[0]?n.return:u[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,u[1])).done)return i;switch(n=0,i&&(u=[2&u[0],i.value]),u[0]){case 0:case 1:i=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,n=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===u[0]||2===u[0])){a=0;continue}if(3===u[0]&&(!i||u[1]>i[0]&&u[1]<i[3])){a.label=u[1];break}if(6===u[0]&&a.label<i[1]){a.label=i[1],i=u;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(u);break}i[2]&&a.ops.pop(),a.trys.pop();continue}u=t.call(e,a)}catch(e){u=[6,e],n=0}finally{r=i=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}},Y=function(){function e(e,t){var r=e.log,n=e.cache,i=e.storage,o=t.maxSize,a=void 0===o?1048576:o,s=t.persistenceMapper;this.log=r,this.cache=n,this.storage=i,this.paused=!1,s&&(this.persistenceMapper=s),a&&(this.maxSize=a)}return e.prototype.persist=function(){return $(this,void 0,void 0,function(){var e,t;return J(this,function(r){switch(r.label){case 0:if(r.trys.push([0,6,,7]),e=this.cache.extract(),!(!this.paused&&this.persistenceMapper))return[3,2];return[4,this.persistenceMapper(e)];case 1:e=r.sent(),r.label=2;case 2:if(!(null!=this.maxSize&&"string"==typeof e&&e.length>this.maxSize&&!this.paused))return[3,4];return[4,this.purge()];case 3:return r.sent(),this.paused=!0,[2];case 4:if(this.paused)return[2];return[4,this.storage.write(e)];case 5:return r.sent(),this.log.info("string"==typeof e?"Persisted cache of size "+e.length+" characters":"Persisted cache"),[3,7];case 6:throw t=r.sent(),this.log.error("Error persisting cache",t),t;case 7:return[2]}})})},e.prototype.restore=function(){return $(this,void 0,void 0,function(){var e,t;return J(this,function(r){switch(r.label){case 0:return r.trys.push([0,5,,6]),[4,this.storage.read()];case 1:if(null==(e=r.sent()))return[3,3];return[4,this.cache.restore(e)];case 2:return r.sent(),this.log.info("string"==typeof e?"Restored cache of size "+e.length+" characters":"Restored cache"),[3,4];case 3:this.log.info("No stored cache to restore"),r.label=4;case 4:return[3,6];case 5:throw t=r.sent(),this.log.error("Error restoring cache",t),t;case 6:return[2]}})})},e.prototype.purge=function(){return $(this,void 0,void 0,function(){var e;return J(this,function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),[4,this.storage.purge()];case 1:return t.sent(),this.log.info("Purged cache storage"),[3,3];case 2:throw e=t.sent(),this.log.error("Error purging cache storage",e),e;case 3:return[2]}})})},e}();let X=function(e){var t=e.cache;return function(e){var r=t.write,n=t.evict,i=t.modify;return t.write=function(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];var o=r.apply(t,n);return e(),o},t.evict=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];var o=n.apply(t,r);return e(),o},t.modify=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var o=i.apply(t,r);return e(),o},function(){t.write=r,t.evict=n,t.modify=i}}},Z=function(e){var t=e.log,r=e.cache;return function(e){return t.warn("Trigger option `background` not available on web; using `write` trigger"),X({cache:r})(e)}};var ee=function(){function e(t,r){var n=this,i=t.log,o=t.persistor;this.fire=function(){n.debounce?(null!=n.timeout&&clearTimeout(n.timeout),n.timeout=setTimeout(n.persist,n.debounce)):n.persist()},this.persist=function(){n.paused||n.persistor.persist()};var a=e.defaultDebounce,s=r.cache,u=r.debounce,c=r.trigger,l=void 0===c?"write":c;if(l)switch(this.debounce=null!=u?u:a,this.persistor=o,this.paused=!1,l){case"write":this.uninstall=X({cache:s})(this.fire);break;case"background":u&&i.warn("Debounce is not recommended with `background` trigger"),this.debounce=u,this.uninstall=Z({cache:s,log:i})(this.fire);break;default:if("function"==typeof l)this.uninstall=l(this.fire);else throw Error("Unrecognized trigger option: "+l)}}return e.prototype.pause=function(){this.paused=!0},e.prototype.resume=function(){this.paused=!1},e.prototype.remove=function(){this.uninstall&&(this.uninstall(),this.uninstall=null,this.paused=!0)},e.defaultDebounce=1e3,e}(),et=function(){function e(e){if(!e.cache)throw Error("In order to persist your Apollo Cache, you need to pass in a cache. Please see https://www.apollographql.com/docs/react/basics/caching.html for our default InMemoryCache.");if(!e.storage)throw Error("In order to persist your Apollo Cache, you need to pass in an underlying storage provider. Please see https://github.com/apollographql/apollo-cache-persist#storage-providers");var t=new W(e),r=new U(e),n=new G(e),i=new Y({log:t,cache:r,storage:n},e),o=new ee({log:t,persistor:i},e);this.log=t,this.cache=r,this.storage=n,this.persistor=i,this.trigger=o}return e.prototype.persist=function(){return this.persistor.persist()}
14,e.prototype.restore=function(){return this.persistor.restore()},e.prototype.purge=function(){return this.persistor.purge()},e.prototype.pause=function(){this.trigger.pause()},e.prototype.resume=function(){this.trigger.resume()},e.prototype.remove=function(){this.trigger.remove()},e.prototype.getLogs=function(e){if(void 0===e&&(e=!1),!e)return this.log.getLogs();this.log.tailLogs()},e.prototype.getSize=function(){return this.storage.getSize()},e}(),er=(t=function(e,r){return(t=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,r)},function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)});function en(e){var t=et.call(this,e)||this;return t.storage=new eo(e),t.persistor=new ei({log:t.log,cache:t.cache,storage:t.storage},e),t}er(en,et),en.prototype.restoreSync=function(){this.persistor.restoreSync()};var ei=function(e){function t(t,r){var n=t.log,i=t.cache,o=t.storage;return e.call(this,{log:n,cache:i,storage:o},r)||this}return er(t,e),t.prototype.restoreSync=function(){this.cache.restore(this.storage.readSync())},t}(Y),eo=function(e){function t(t){return e.call(this,t)||this}return er(t,e),t.prototype.readSync=function(){return this.storage.getItem(this.key)},t}(G);function ea(e){this.storage=e}function es(e){this.storage=e}function eu(e){this.storage=e}ea.prototype.getItem=function(e){return this.storage.getItem(e)},ea.prototype.removeItem=function(e){return this.storage.removeItem(e)},ea.prototype.setItem=function(e,t){return this.storage.setItem(e,t)},es.prototype.getItem=function(e){return this.storage.get(e)},es.prototype.removeItem=function(e){return this.storage.remove(e)},es.prototype.setItem=function(e,t){return this.storage.set(e,t)},eu.prototype.getItem=function(e){return this.storage.getItem(e)},eu.prototype.removeItem=function(e){return this.storage.removeItem(e)},eu.prototype.setItem=function(e,t){var r=this;return new Promise(function(n,i){r.storage.setItem(e,t).then(function(){return n()}).catch(function(){return i()})})};var ec=function(){function e(e){this.storage=e}return e.prototype.getItem=function(e){return this.storage.getItem(e)},e.prototype.removeItem=function(e){return this.storage.removeItem(e)},e.prototype.setItem=function(e,t){return null!==t?this.storage.setItem(e,t):this.removeItem(e)},e}();function el(e){this.storage=e}function ef(e){this.storage=e}function ep(e){this.storage=e}function eh(e){return null===e?"null":Array.isArray(e)?"array":typeof e}function ed(e){return"object"===eh(e)}function ey(e,t){return e.length<124?e:t}function ev(e){if(!ed(e))throw Error(`Message is expected to be an object, but got ${eh(e)}`);if(!e.type)throw Error("Message is missing the 'type' property");if("string"!=typeof e.type)throw Error(`Message is expects the 'type' property to be a string, but got ${eh(e.type)}`);switch(e.type){case o.ConnectionInit:case o.ConnectionAck:case o.Ping:case o.Pong:if(null!=e.payload&&!ed(e.payload))throw Error(`"${e.type}" message expects the 'payload' property to be an object or nullish or missing, but got "${e.payload}"`);break;case o.Subscribe:if("string"!=typeof e.id)throw Error(`"${e.type}" message expects the 'id' property to be a string, but got ${eh(e.id)}`);if(!e.id)throw Error(`"${e.type}" message requires a non-empty 'id' property`);if(!ed(e.payload))throw Error(`"${e.type}" message expects the 'payload' property to be an object, but got ${eh(e.payload)}`);if("string"!=typeof e.payload.query)throw Error(`"${e.type}" message payload expects the 'query' property to be a string, but got ${eh(e.payload.query)}`);if(null!=e.payload.variables&&!ed(e.payload.variables))throw Error(`"${e.type}" message payload expects the 'variables' property to be a an object or nullish or missing, but got ${eh(e.payload.variables)}`);if(null!=e.payload.operationName&&"string"!==eh(e.payload.operationName))throw Error(`"${e.type}" message payload expects the 'operationName' property to be a string or nullish or missing, but got ${eh(e.payload.operationName)}`);if(null!=e.payload.extensions&&!ed(e.payload.extensions))throw Error(`"${e.type}" message payload expects the 'extensions' property to be a an object or nullish or missing, but got ${eh(e.payload.extensions)}`);break;case o.Next:if("string"!=typeof e.id)throw Error(`"${e.type}" message expects the 'id' property to be a string, but got ${eh(e.id)}`);if(!e.id)throw Error(`"${e.type}" message requires a non-empty 'id' property`);
14if(!ed(e.payload))throw Error(`"${e.type}" message expects the 'payload' property to be an object, but got ${eh(e.payload)}`);break;case o.Error:var t;if("string"!=typeof e.id)throw Error(`"${e.type}" message expects the 'id' property to be a string, but got ${eh(e.id)}`);if(!e.id)throw Error(`"${e.type}" message requires a non-empty 'id' property`);if(!(Array.isArray(t=e.payload)&&t.length>0&&t.every(e=>"message"in e)))throw Error(`"${e.type}" message expects the 'payload' property to be an array of GraphQL errors, but got ${JSON.stringify(e.payload)}`);break;case o.Complete:if("string"!=typeof e.id)throw Error(`"${e.type}" message expects the 'id' property to be a string, but got ${eh(e.id)}`);if(!e.id)throw Error(`"${e.type}" message requires a non-empty 'id' property`);break;default:throw Error(`Invalid message 'type' property "${e.type}"`)}return e}function em(e,t){return ev(e),JSON.stringify(e,t)}el.prototype.getItem=function(e){return this.storage.getItem(e)||null},el.prototype.removeItem=function(e){var t=this;return new Promise(function(r,n){Promise.resolve(t.storage.removeItem(e)).then(function(){return r()}).catch(function(){return n()})})},el.prototype.setItem=function(e,t){var r=this;return new Promise(function(n,i){r.storage.setItem(e,t).then(function(){return n()}).catch(function(){return i()})})},ef.prototype.getItem=function(e){return this.storage.getString(e)||null},ef.prototype.removeItem=function(e){return this.storage.delete(e)},ef.prototype.setItem=function(e,t){return null!==t?this.storage.set(e,t):this.removeItem(e)},ep.prototype.getItem=function(e){return this.storage.getItem(e)},ep.prototype.removeItem=function(e){return this.storage.removeItem(e)},ep.prototype.setItem=function(e,t){return null!==t?this.storage.setItem(e,t):this.removeItem(e)},(r=i||(i={}))[r.InternalServerError=4500]="InternalServerError",r[r.InternalClientError=4005]="InternalClientError",r[r.BadRequest=4400]="BadRequest",r[r.BadResponse=4004]="BadResponse",r[r.Unauthorized=4401]="Unauthorized",r[r.Forbidden=4403]="Forbidden",r[r.SubprotocolNotAcceptable=4406]="SubprotocolNotAcceptable",r[r.ConnectionInitialisationTimeout=4408]="ConnectionInitialisationTimeout",r[r.ConnectionAcknowledgementTimeout=4504]="ConnectionAcknowledgementTimeout",r[r.SubscriberAlreadyExists=4409]="SubscriberAlreadyExists",r[r.TooManyInitialisationRequests=4429]="TooManyInitialisationRequests",(n=o||(o={})).ConnectionInit="connection_init",n.ConnectionAck="connection_ack",n.Ping="ping",n.Pong="pong",n.Subscribe="subscribe",n.Next="next",n.Error="error",n.Complete="complete";var eg=function(e){return this instanceof eg?(this.v=e,this):new eg(e)},eb=function(e,t,r){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var n,i=r.apply(e,t||[]),o=[];return n=Object.create(("function"==typeof AsyncIterator?AsyncIterator:Object).prototype),a("next"),a("throw"),a("return",function(e){return function(t){return Promise.resolve(t).then(e,c)}}),n[Symbol.asyncIterator]=function(){return this},n;function a(e,t){i[e]&&(n[e]=function(t){return new Promise(function(r,n){o.push([e,t,r,n])>1||s(e,t)})},t&&(n[e]=t(n[e])))}function s(e,t){try{var r;(r=i[e](t)).value instanceof eg?Promise.resolve(r.value.v).then(u,c):l(o[0][2],r)}catch(e){l(o[0][3],e)}}function u(e){s("next",e)}function c(e){s("throw",e)}function l(e,t){e(t),o.shift(),o.length&&s(o[0][0],o[0][1])}};class e_ extends Error{constructor(){super(...arguments),this.name="TerminatedCloseEvent",this.message="4499: Terminated",this.code=4499,this.reason="Terminated",this.wasClean=!1}}function ew(e){return ed(e)&&"code"in e&&"reason"in e}var ek=e.i(385315);let eS={ActivityBase:["Activity","ActivityPublic","ActivityViewer"],AssignmentBase:["Assignment","AssignmentPublic","AssignmentViewer"],BookingBase:["Booking","BookingPublic","BookingViewerWithPaymentToken"],BookingSchemaBase:["BookingSchema","BookingSchemaViewer"],BookingTaskBase:["BookingTask","BookingTaskViewer"],BookingViewer:["BookingViewerWithPaymentToken"],CommentBase:["Comment","CommentViewer"],CommunityOrganizerBase:["CommunityOrganizer","CommunityOrganizerViewer"],CommunityUserBase:["CommunityUser","CommunityUserPublic","CommunityUserViewer","ContactPerson"],ConversationBase:["Conversation","ConversationViewer"],CustomFieldBase:["CustomField","CustomFieldPublic","CustomFieldViewer","CustomFieldWithAttendeeValue","CustomFieldWithBookingValue","CustomFieldWithCommunityUserValue","CustomFieldWithRegistrationRequestValue","CustomFieldWithRegistrationValue"],CustomFieldWithValue:["CustomFieldPublic","CustomFieldViewer","CustomFieldWithAttendeeValue","CustomFieldWithBookingValue","CustomFieldWithCommunityUserValue","CustomFieldWithRegistrationRequestValue","CustomFieldWithRegistrationValue"],EventBase:["Event","EventPublic","EventViewer"],EventTeamBase:["EventTeam","EventTeamPublic"],LineItemBase:["LineItem","LineItemViewer"],LocalityBase:["Locality","LocalityPublic"],MessageBase:["Message","MessageViewer"],NotificationBase:["Notification","NotificationViewer"],OrderBase:["Order","OrderPublic","OrderViewer"],OrganizerBase:["Organizer","OrganizerPublic","OrganizerViewer"],OrganizerContentBase:["OrganizerContent"],PostBase:["Post","PostPublic"],PriceTypeOfferingBase:["PriceTypeOffering","PriceTypeOfferingPublic"],ProductBase:["Product","ProductPublic","ProductViewer"],ProgramActivityBase:["ProgramActivity","ProgramActivityPublic","ProgramActivityViewer"],ProgramBase:["Program","ProgramPublic","ProgramViewer"],RegistrationBase:["Registration","RegistrationViewer"],RegistrationPackageBase:["RegistrationPackage","RegistrationPackagePublic","RegistrationPackageViewer"],RegistrationRequestBase:["RegistrationRequest","RegistrationRequestViewer"],RoomBase:["Room","RoomPublic"],RoomGroupBase:["RoomGroup","RoomGroupPublic"],SegmentationNode:["SegmentationExpression","SegmentationGroup"],ShiftBase:["Shift","ShiftPublic","ShiftViewer"],ShiftPackageAllocationBase:["ShiftPackageAllocation"],ShiftPackageBase:["ShiftPackage","ShiftPackagePublic","ShiftPackageViewer"],ShiftRequestBase:["ShiftRequest","ShiftRequestViewer"],ShiftTeamBase:["ShiftTeam","ShiftTeamPublic","ShiftTeamViewer"],ShowBase:["Show","ShowPublic","ShowViewer"],StaffGroupBase:["StaffGroup","StaffGroupPublic","StaffGroupViewer"],StaffGroupEventLinkBase:["StaffGroupEventLink","StaffGroupEventLinkViewer"],StaffGroupMembershipBase:["StaffGroupMembership","StaffGroupMembershipPublic","StaffGroupMembershipViewer"],StaffGroupRegistrationPackageLinkBase:["StaffGroupRegistrationPackageLink","StaffGroupRegistrationPackageLinkViewer"],SurveyBase:["Survey","SurveyParent"],SurveyQuestionBase:["SurveyQuestion","SurveyQuestionParent"],SurveyVersionBase:["SurveyVersion","SurveyVersionParent"],TaxRateBase:["TaxRate","TaxRatePublic"],TeamBase:["Team","TeamPublic","TeamViewer"],ThreadBase:["Thread","ThreadViewer"],TicketBase:["Ticket","TicketViewer"],TicketTypeBase:["TicketType","TicketTypePublic"],TicketTypeOfferingBase:["TicketTypeOffering","TicketTypeOfferingPublic"],TranslationBase:["Translation","TranslationPublic","TranslationViewer"],UserBase:["User","UserContactPerson","UserPublic","UserViewer"]},eO="https://api.xooom.dk/graphql";function eE(e){return new x.InMemoryCache({...e,possibleTypes:{...eS,...e?.possibleTypes}})}let{link:eR,useApolloNetworkStatus:eT}=(0,ek.createNetworkStatusNotifier)();function ex(e){return A(({graphQLErrors:t})=>{!t||Array.from(e.getObservableQueries("all").values()).some(e=>"ViewerHook"===e.queryName)&&e.refetchQueries({include:["ViewerHook"]})})}async function eC({token:t,language:r,linkOptions:n,cacheOptions:a,cacheInLocalStorage:s}){let u=(0,B.default)({...n,headers:{...n.headers,"Accept-Language":r||"en","Apollo-Require-Preflight":"true",...t?{Authorization:`Bearer ${t}`}:{}}}),c=eE(a);if(s){let e=new ec(window.localStorage);await new et({cache:c,storage:e}
14).restore()}let l=new T.ApolloClient({ssrMode:!1,link:u,cache:c,devtools:{enabled:!0}}),f=ex(l),p=function(t){let r,n,a,s,{url:u,connectionParams:c,lazy:l=!0,onNonLazyError:f=console.error,lazyCloseTimeout:p=0,keepAlive:h=0,disablePong:d,connectionAckWaitTimeout:y=0,retryAttempts:v=5,retryWait:m=async function(e){let t=1e3;for(let r=0;r<e;r++)t*=2;await new Promise(e=>setTimeout(e,t+Math.floor(2700*Math.random()+300)))},shouldRetry:g=ew,isFatalConnectionProblem:b,on:_,webSocketImpl:w,generateID:k=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,e=>{let t=16*Math.random()|0;return("x"==e?t:3&t|8).toString(16)})},jsonMessageReplacer:S,jsonMessageReviver:O}=t;if(w){var E;if(!("function"==typeof(E=w)&&"constructor"in E&&"CLOSED"in E&&"CLOSING"in E&&"CONNECTING"in E&&"OPEN"in E))throw Error("Invalid WebSocket implementation provided");r=w}else r="u">typeof WebSocket?WebSocket:e.g.WebSocket||e.g.MozWebSocket;if(!r)throw Error("WebSocket implementation missing; on Node you can `import WebSocket from 'ws';` and pass `webSocketImpl: WebSocket` to `createClient`");let R=r,T=(n={},a={on:(e,t)=>(n[e]=t,()=>{delete n[e]}),emit(e){var t;"id"in e&&(null==(t=n[e.id])||t.call(n,e))}},s={connecting:(null==_?void 0:_.connecting)?[_.connecting]:[],opened:(null==_?void 0:_.opened)?[_.opened]:[],connected:(null==_?void 0:_.connected)?[_.connected]:[],ping:(null==_?void 0:_.ping)?[_.ping]:[],pong:(null==_?void 0:_.pong)?[_.pong]:[],message:(null==_?void 0:_.message)?[a.emit,_.message]:[a.emit],closed:(null==_?void 0:_.closed)?[_.closed]:[],error:(null==_?void 0:_.error)?[_.error]:[]},{onMessage:a.on,on(e,t){let r=s[e];return r.push(t),()=>{r.splice(r.indexOf(t),1)}},emit(e,...t){for(let r of[...s[e]])r(...t)}});function x(e){let t=[T.on("error",r=>{t.forEach(e=>e()),e(r)}),T.on("closed",r=>{t.forEach(e=>e()),e(r)})]}let C,D=0,P,I=!1,F=0,A=!1;async function N(){clearTimeout(P);let[e,t]=await (null!=C?C:C=new Promise((e,t)=>(async()=>{let r,n;if(I){if(await m(F),!D)return C=void 0,t({code:1e3,reason:"All Subscriptions Gone"});F++}T.emit("connecting",I);let a=new R("function"==typeof u?await u():u,"graphql-transport-ws");function s(){isFinite(h)&&h>0&&(clearTimeout(n),n=setTimeout(()=>{a.readyState===R.OPEN&&(a.send(em({type:o.Ping})),T.emit("ping",!1,void 0))},h))}x(e=>{C=void 0,clearTimeout(r),clearTimeout(n),t(e),e instanceof e_&&(a.close(4499,"Terminated"),a.onerror=null,a.onclose=null)}),a.onerror=e=>T.emit("error",e),a.onclose=e=>T.emit("closed",e),a.onopen=async()=>{try{T.emit("opened",a);let e="function"==typeof c?await c():c;if(a.readyState!==R.OPEN)return;a.send(em(e?{type:o.ConnectionInit,payload:e}:{type:o.ConnectionInit},S)),isFinite(y)&&y>0&&(r=setTimeout(()=>{a.close(i.ConnectionAcknowledgementTimeout,"Connection acknowledgement timeout")},y)),s()}catch(e){T.emit("error",e),a.close(i.InternalClientError,ey(e instanceof Error?e.message:Error(e).message,"Internal client error"))}};let l=!1;a.onmessage=({data:t})=>{try{let n=ev("string"==typeof t?JSON.parse(t,O):t);if(T.emit("message",n),"ping"===n.type||"pong"===n.type){T.emit(n.type,!0,n.payload),"pong"===n.type?s():d||(a.send(em(n.payload?{type:o.Pong,payload:n.payload}:{type:o.Pong})),T.emit("pong",!1,n.payload));return}if(l)return;if(n.type!==o.ConnectionAck)throw Error(`First message cannot be of type ${n.type}`);clearTimeout(r),l=!0,T.emit("connected",a,n.payload,I),I=!1,F=0,e([a,new Promise((e,t)=>x(t))])}catch(e){a.onmessage=null,T.emit("error",e),a.close(i.BadResponse,ey(e instanceof Error?e.message:Error(e).message,"Bad response"))}}})()));e.readyState===R.CLOSING&&await t;let r=()=>{},n=new Promise(e=>r=e);return[e,r,Promise.race([n.then(()=>{D||(isFinite(p)&&p>0?P=setTimeout(()=>{e.readyState===R.OPEN&&e.close(1e3,"Normal Closure")},p):e.close(1e3,"Normal Closure"))}),t])]}function M(e){var t;if(ew(e)&&(![1e3,1001,1006,1005,1012,1013,1014].includes(t=e.code)&&t>=1e3&&t<=1999||[i.InternalServerError,i.InternalClientError,i.BadRequest,i.BadResponse,i.Unauthorized,i.SubprotocolNotAcceptable,i.SubscriberAlreadyExists,i.TooManyInitialisationRequests].includes(e.code)))throw e;if(A)return!1;if(ew(e)&&1e3===e.code)return D>0;if(!v||F>=v||!g(e)||(null==b?void 0:b(e)))throw e;return I=!0}function j(e,t){let r=k(e),n=!1,i=!1,a=()=>{D--,n=!0};return(async()=>{for(D++;;)try{let[s,u,c]=await N();if(n)return u();let l=T.onMessage(r,e=>{switch(e.type){case o.Next:return void t.next(e.payload);case o.Error:i=!0,n=!0,t.error(e.payload),a();return;case o.Complete:n=!0,a();return}});s.send(em({id:r,type:o.Subscribe,payload:e},S)),a=()=>{n||s.readyState!==R.OPEN||s.send(em({id:r,type:o.Complete},S)),D--,n=!0,u()},await c.finally(l);return}catch(e){if(!M(e))return}})().then(()=>{i||t.complete()}).catch(e=>{t.error(e)}),()=>{n||a()}}return l||(async()=>{for(D++;;)try{let[,,e]=await N();await e}catch(e){try{if(!M(e))return}catch(e){return null==f?void 0:f(e)}}})(),{on:T.on,subscribe:j,iterate(e){let t=[],r={done:!1,error:null,resolve:()=>{}},n=j(e,{next(e){t.push(e),r.resolve()},error(e){r.done=!0,r.error=e,r.resolve()},complete(){r.done=!0,r.resolve()}}),i=function(){return eb(this,arguments,function*(){for(;;){for(t.length||(yield eg(new Promise(e=>r.resolve=e)));t.length;)yield yield eg(t.shift());if(r.error)throw r.error;if(r.done)return yield eg(void 0)}})}();return i.throw=async e=>(r.done||(r.done=!0,r.error=e,r.resolve()),{done:!0,value:void 0}),i.return=async()=>(n(),{done:!0,value:void 0}),i},async dispose(){if(A=!0,C){let[e]=await C;e.close(1e3,"Normal Closure")}},terminate(){C&&T.emit("closed",new e_)}}}({url:`${"https://api.xooom.dk".replace("https://","wss://")}/graphql`,connectionParams:{auth:t}}),h=(0,D.split)(({query:e})=>{let t=(0,V.getMainDefinition)(e);return"OperationDefinition"===t.kind&&"subscription"===t.operation},new Q(p),u);return l.setLink((0,C.from)([f,eR,h].filter(L.notEmpty))),l}var eD=e.i(628609),eP=e.i(858208);let eI=l.default.createContext(!0),eF=({children:e})=>{let[t,r]=(0,l.useState)(!0);return(0,l.useEffect)(()=>(window.addEventListener("offline",()=>{r(!1)}),window.addEventListener("online",()=>{r(!0)}),()=>{window.removeEventListener("offline",()=>{r(!1)}),window.removeEventListener("online",()=>{r(!0)})}),[]),l.default.createElement(eI.Provider,{value:t},e)};var eA=e.i(463239),eN=e.i(458554),eM=e.i(845971),ej=e.i(239657),eq=e.i(531924),eQ=e.i(941615);function eV({children:e}){let{communityUser:t}=(0,eM.useCurrentCommunityUser)(),r=(0,ej.useBasePath)(),n=(0,eq.useSignOut)({redirectPath:`${r||"/"}`});return t?.deactivation?(0,a.jsxs)(eN.VStack,{alignItems:"center",justifyContent:"center",css:{minHeight:"100vh"},gap:"md",children:[(0,a.jsx)(eQ.Subtitle,{children:(0,a.jsx)(u.Trans,{id:"o/R6ec"})}),(0,a.jsx)(eN.Button,{onClick:()=>n(),size:"lg",children:(0,a.jsx)(u.Trans,{id:"fcWrnU"})})]}):(0,a.jsx)(a.Fragment,{children:e})}var eL=e.i(768296);function eB(){let e=(0,R.useRouter)(),t=(0,ej.useBasePath)(),[r,n]=l.default.useState(null),[i,o]=l.default.useState(!1);return(l.default.useEffect(()=>{o(!0)},[]),l.default.useEffect(()=>{let e=localStorage.getItem("cookie_consent");null===e?n(null):n("true"===e)},[]),l.default.useEffect(()=>{"function"==typeof window.gtag&&(window.gtag("consent","default",{}),window.gtag("consent","update",{analytics_storage:r?"granted":"denied"}))},[r]),i&&null===r)?(0,a.jsx)(eN.Card,{padding:"md",shadow:"lg",css:{zIndex:3e3,position:"fixed",bottom:"$2",left:"$2",right:"$2","@bp2":{right:"auto",maxWidth:"400px"},pointerEvents:"all",animation:`0.3s ease 0.2s 1 normal both running ${eL.fadeIn}`},children:(0,a.jsxs)(eN.VStack,{gap:"md",children:[(0,a.jsx)(eN.Text,{weight:"600",size:"4",children:(0,a.jsx)(u.Trans,{id:"30XQ+/"})}),(0,a.jsxs)(eN.Text,{lineHeight:"5",children:[(0,a.jsx)(u.Trans,{id:"E8FRN7"}),". ",(0,a.jsx)(u.Trans,{id:"yB5U/x"}
14)," ",(0,a.jsx)(eN.Link,{variant:"underline",css:{cursor:"pointer"},onClick:()=>e.push(`${t}/info/privacy`),children:(0,a.jsx)(u.Trans,{id:"R6S6Qx"})})]}),(0,a.jsxs)(eN.Grid,{columns:"2",css:{gap:"$2"},children:[(0,a.jsx)(eN.Button,{css:{width:"100%"},variant:"subtle",size:"md",onClick:async()=>{n(!1),localStorage.setItem("cookie_consent","false")},children:(0,a.jsx)(u.Trans,{id:"jbq7j2"})}),(0,a.jsx)(eN.Button,{css:{width:"100%"},size:"md",onClick:async()=>{n(!0),localStorage.setItem("cookie_consent","true")},children:(0,a.jsx)(u.Trans,{id:"g3UF2V"})})]})]})}):null}var ez=l;class eW extends ez.Component{constructor(e){super(e),this.state={error:null,errorInfo:null}}componentDidCatch(e,t){this.setState({error:e,errorInfo:t})}render(){let{error:e,errorInfo:t}=this.state,{children:r,fallback:n}=this.props;return t?n?n(e):(0,a.jsxs)("div",{children:[(0,a.jsx)(eN.Text,{children:e?.message}),(0,a.jsx)(eN.Text,{children:t.componentStack})]}):r}}var eU=e.i(224303);function eH({children:e}){let[t,r]=l.default.useState(null);return(l.default.useEffect(()=>{fetch("https://api.xooom.dk/api/config").then(e=>e.json()).then(e=>r(e)).catch(()=>r({MAINTENANCE:"false"}))},[]),t)?"false"===t.MAINTENANCE?(0,a.jsx)(a.Fragment,{children:e}):(0,a.jsxs)(eN.VStack,{alignItems:"center",justifyContent:"center",gap:"lg",css:{height:"70vh"},children:[(0,a.jsx)(eN.Image,{src:"/images/illustration-maintenance.svg",css:{height:"20vh",objectFit:"contain"}}),(0,a.jsxs)(eN.Heading,{size:"lg",children:[(0,a.jsx)(eN.Heading.Title,{css:{textAlign:"center"},children:(0,a.jsx)(u.Trans,{id:"/6z4Ct"})}),(0,a.jsx)(eN.Heading.Description,{css:{textAlign:"center"},children:(0,a.jsx)(u.Trans,{id:"PZCqeW"})})]})]}):null}var eK=e.i(108300),eG=e.i(365777);e.i(514521);var e$=e.i(294026),eJ=e.i(181223),eY=e.i(773380);function eX({Component:e,pageProps:t}){var r,n,i;let o,c,f,p,h,d;r=t.translations,(c=(o=(0,R.useRouter)()).locale||o.defaultLocale||"da")!==s.i18n.locale&&(n=r)&&Object.keys(n).length>0&&s.i18n.loadAndActivate({locale:c,messages:r}),s.i18n.on("missing",e=>e.id),s.i18n;let y=e.getLayout??(e=>e),m=(i={language:s.i18n.locale,cacheInLocalStorage:!0,cacheOptions:{typePolicies:{Query:{fields:{viewer:{keyArgs:!1,merge:(e={},t)=>({...e,...t})}}},PublicQueries:{keyFields:!1,merge:!0,fields:{partners:k(["organizerId","search","activity","postalCode"])}},Viewer:{keyFields:["id"]},StaffGroupViewer:{fields:{threadConnection:k()}}}}},f=(0,g.useChangeToken)(),p=(0,R.useRouter)(),h=(0,E.useQueryParam)("token"),d=(0,g.usePersistedTokenInit)(),l.default.useEffect(()=>{p.isReady&&h&&void 0!==d&&f(null)},[p.isReady,h,d,f]),function(e){let{token:t,language:r,cacheOptions:n,cacheInLocalStorage:i}=e||{},[o,a]=l.useState(function({linkOptions:e,cacheOptions:t}){let r=(0,B.default)(e),n=eE(t),i=new T.ApolloClient({ssrMode:!0,link:r,cache:n}),o=ex(i);return i.setLink((0,C.from)([o,eR,r].filter(L.notEmpty))),i}({linkOptions:{uri:eO},cacheOptions:n}));async function s(){a(await eC({linkOptions:{uri:eO},cacheOptions:n,language:r,token:t}))}return l.useEffect(()=>{e?.token!==void 0&&s()},[e?.token]),o}({...i,token:d}));return(0,a.jsx)(eW,{children:(0,a.jsx)(u.I18nProvider,{i18n:s.i18n,children:(0,a.jsx)(eN.Provider,{children:(0,a.jsx)(eJ.RehelperThemeProvider,{children:(0,a.jsxs)(eY.Toast.Provider,{children:[(0,a.jsx)(eA.ViewportProvider,{children:(0,a.jsx)(b,{client:m,children:(0,a.jsx)(eU.PortalContextProvider,{portalType:t.portal,children:(0,a.jsx)(eH,{children:(0,a.jsx)(v,{children:(0,a.jsx)(eD.DialogProvider,{children:(0,a.jsx)(e$.DialogProvider,{children:(0,a.jsx)(eP.ModalProvider,{children:(0,a.jsx)(eF,{children:(0,a.jsxs)(eV,{children:[(0,a.jsx)(eB,{}),y((0,a.jsx)(e,{...t}))]})})})})})})})})})}),(0,a.jsx)(eY.Toaster,{})]})})})})})}(0,eN.globalCss)({"::selection":{background:"$text",color:"$panel"},"html, body, #__next":{margin:0,height:"100%"},html:{scrollBehavior:"smooth"},body:{minWidth:320,minHeight:250,fontFamily:"'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji'",overscrollBehaviorY:"none",overflowX:"hidden"},"input:-webkit-autofill":{fontSize:"$3",fontFamily:"'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji'"}},{body:{overflowY:"scroll"}})(),eX.getInitialProps=async e=>{let t=await eG.default.getInitialProps(e),r=e.ctx.req?.headers["x-portal-type"]??eK.PortalType.VOLUNTEERING;return{...t,pageProps:{...t.pageProps,portal:r}}},e.s(["default",0,eX],107828)},8201,(e,t,r)=>{let n="/_app";(window.__NEXT_P=window.__NEXT_P||[]).push([n,()=>e.r(107828)]),t.hot&&t.hot.dispose(function(){window.__NEXT_P.push([n])})},395585,971393,33448,900268,764501,814540,958673,484936,541866,343759,e=>{"use strict";var t,r,n=e.i(189280);e.i(868681);var i=e.i(5578),o=e.i(162979),a=o.ApolloLink.execute;e.s(["execute",0,a],971393);var s=e.i(999849),u=e.i(71596),c=e.i(524669),l=e.i(649429),f=e.i(126452),p=e.i(602024),h=e.i(686384),d=e.i(228117),y=e.i(915301),v=e.i(242419);function m(e){var t=g(e);return(0,v.isNonEmptyArray)(t)}function g(e){var t=(0,v.isNonEmptyArray)(e.errors)?e.errors.slice(0):[];return(0,p.isExecutionPatchIncrementalResult)(e)&&(0,v.isNonEmptyArray)(e.incremental)&&e.incremental.forEach(function(e){e.errors&&t.push.apply(t,e.errors)}),t}var b=e.i(625945);function _(e,t,r){return new b.Observable(function(n){var i={then:function(e){return new Promise(function(t){return t(e())})}};function o(e,t){return function(r){if(e){var o=function(){return n.closed?0:e(r)};i=i.then(o,o).then(function(e){return n.next(e)},function(e){return n.error(e)})}else n[t](r)}}var a={next:o(t,"next"),error:o(r,"error"),complete:function(){i.then(function(){return n.complete()})}},s=e.subscribe(a);return function(){return s.unsubscribe()}})}var w=e.i(556034),k=e.i(698377);function S(e){return e&&"function"==typeof e.then}var O=function(e){function t(t){var r=e.call(this,function(e){return r.addObserver(e),function(){return r.removeObserver(e)}})||this;return r.observers=new Set,r.promise=new Promise(function(e,t){r.resolve=e,r.reject=t}),r.handlers={next:function(e){null!==r.sub&&(r.latest=["next",e],r.notify("next",e),(0,w.iterateObserversSafely)(r.observers,"next",e))},error:function(e){var t=r.sub;null!==t&&(t&&setTimeout(function(){return t.unsubscribe()}),r.sub=null,r.latest=["error",e],r.reject(e),r.notify("error",e),(0,w.iterateObserversSafely)(r.observers,"error",e))},complete:function(){var e=r.sub,t=r.sources;if(null!==e){var n=(void 0===t?[]:t).shift();n?S(n)?n.then(function(e){return r.sub=e.subscribe(r.handlers)},r.handlers.error):r.sub=n.subscribe(r.handlers):(e&&setTimeout(function(){return e.unsubscribe()}),r.sub=null,r.latest&&"next"===r.latest[0]?r.resolve(r.latest[1]):r.resolve(),r.notify("complete"),(0,w.iterateObserversSafely)(r.observers,"complete"))}}},r.nextResultListeners=new Set,r.cancel=function(e){r.reject(e),r.sources=[],r.handlers.error(e)},r.promise.catch(function(e){}),"function"==typeof t&&(t=[new b.Observable(t)]),S(t)?t.then(function(e){return r.start(e)},r.handlers.error):r.start(t),r}return(0,n.__extends)(t,e),t.prototype.start=function(e){void 0===this.sub&&(this.sources=Array.from(e),this.handlers.complete())},t.prototype.deliverLastMessage=function(e){if(this.latest){var t=this.latest[0],r=e[t];r&&r.call(e,this.latest[1]),null===this.sub&&"next"===t&&e.complete&&e.complete()}},t.prototype.addObserver=function(e){this.observers.has(e)||(this.deliverLastMessage(e),this.observers.add(e))},t.prototype.removeObserver=function(e){this.observers.delete(e)&&this.observers.size<1&&this.handlers.complete()},t.prototype.notify=function(e,t){var r=this.nextResultListeners;r.size&&(this.nextResultListeners=new Set,r.forEach(function(r){return r(e,t)}))},t.prototype.beforeNext=function(e){var t=!1;this.nextResultListeners.add(function(r,n){t||(t=!0,e(r,n))})},t}(b.Observable);(0,k.fixObservableSubclass)(O);var E=e.i(783874),R=e.i(356776),T=e.i(130101),x=e.i(783015),C=e.i(223289),D=e.i(662918),P=e.i(606775),I=e.i(506044);function F(e){return e}var A=function(){function e(e,t){void 0===t&&(t=Object.create(null)),this.resultCache=C.canUseWeakSet?new WeakSet:new Set,this.transform=e,t.getCacheKey&&(this.getCacheKey=t.getCacheKey),this.cached=!1!==t.cache,this.resetCache()}return e.prototype.getCacheKey=function(e){return[e]},e.identity=function(){return new e(F,{cache:!1})},e.split=function(t,r,n){return void 0===n&&(n=e.identity()),Object.assign(new e(function(e){return(t(e)?r:n).transformDocument(e)},{cache:!1}),{left:r,right:n})},e.prototype.resetCache=function(){var t=this;if(this.cached){var r=new x.Trie(C.canUseWeakMap);this.performWork=(0,P.wrap)(e.prototype.performWork.bind(this),{makeCacheKey:function(e){var n=t.getCacheKey(e);if(n)return(0,i.invariant)(Array.isArray(n),104),r.lookupArray(n)},max:I.cacheSizes["documentTransform.cache"],cache:D.WeakCache})}},e.prototype.performWork=function(e){return(0,y.checkDocument)(e),this.transform(e)},e.prototype.transformDocument=function(e){if(this.resultCache.has(e))return e;var t=this.performWork(e);return this.resultCache.add(t),t},e.prototype.concat=function(t){var r=this;return Object.assign(new e(function(e){return t.transformDocument(r.transformDocument(e))},{cache:!1}),{left:this,right:t})},e}();e.s(["DocumentTransform",0,A],33448);var N=e.i(533879),M=e.i(257828),j=e.i(76810),q=e.i(113959),Q=e.i(369547),V=new(C.canUseWeakMap?WeakMap:Map);function L(e,t){var r=e[t];"function"==typeof r&&(e[t]=function(){return V.set(e,(V.get(e)+1)%1e15),r.apply(this,arguments)})}var B=function(){function e(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;V.has(r)||(V.set(r,0),L(r,"evict"),L(r,"modify"),L(r,"reset"))}return e.prototype.init=function(e){var t=e.networkStatus||j.NetworkStatus.loading;return this.variables&&this.networkStatus!==j.NetworkStatus.loading&&!(0,c.equal)(this.variables,e.variables)&&(t=j.NetworkStatus.setVariables),(0,c.equal)(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},e.prototype.resetDiff=function(){this.lastDiff=void 0},e.prototype.getDiff=function(){var e=this,t=this.getDiffOptions();if(this.lastDiff&&(0,c.equal)(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,Q.muteDeprecations)("canonizeResults",function(){return e.cache.diff(t)});return this.updateLastDiff(n,t),n},e.prototype.updateLastDiff=function(e,t){this.lastDiff=e?{diff:e,options:t||this.getDiffOptions()}:void 0},e.prototype.getDiffOptions=function(e){var t;return void 0===e&&(e=this.variables),{query:this.document,variables:e,returnPartialData:!0,optimistic:!0,canonizeResults:null==(t=this.observableQuery)?void 0:t.options.canonizeResults}},e.prototype.setDiff=function(e){var t,r=this,n=this.lastDiff&&this.lastDiff.diff;!(e&&!e.complete&&(0,Q.muteDeprecations)("getLastError",function(){var e;return null==(e=r.observableQuery)?void 0:e.getLastError()}))&&(this.updateLastDiff(e),(0,c.equal)(n&&n.result,e&&e.result)||null==(t=this.observableQuery)||t.scheduleNotify())},e.prototype.setObservableQuery=function(e){e!==this.observableQuery&&(this.observableQuery=e,e&&(e.queryInfo=this))},e.prototype.stop=function(){var e;if(!this.stopped){this.stopped=!0,null==(e=this.observableQuery)||e.resetNotifications(),this.cancel();var t=this.observableQuery;t&&t.stopPolling()}},e.prototype.cancel=function(){var e;null==(e=this.cancelWatch)||e.call(this),this.cancelWatch=void 0},e.prototype.updateWatch=function(e){var t=this;void 0===e&&(e=this.variables);var r=this.observableQuery;if(!r||"no-cache"!==r.options.fetchPolicy){var i=(0,n.__assign)((0,n.__assign)({},this.getDiffOptions(e)),{watcher:this,callback:function(e){return t.setDiff(e)}});
14this.lastWatch&&(0,c.equal)(i,this.lastWatch)||(this.cancel(),this.cancelWatch=this.cache.watch(this.lastWatch=i))}},e.prototype.resetLastWrite=function(){this.lastWrite=void 0},e.prototype.shouldWrite=function(e,t){var r=this.lastWrite;return!(r&&r.dmCount===V.get(this.cache)&&(0,c.equal)(t,r.variables)&&(0,c.equal)(e.data,r.result.data))},e.prototype.markResult=function(e,t,r,n){var i,o=this,a=new q.DeepMerger,s=(0,v.isNonEmptyArray)(e.errors)?e.errors.slice(0):[];if(null==(i=this.observableQuery)||i.resetNotifications(),"incremental"in e&&(0,v.isNonEmptyArray)(e.incremental)){var u=(0,p.mergeIncrementalData)(this.getDiff().result,e);e.data=u}else if("hasNext"in e&&e.hasNext){var l=this.getDiff();e.data=a.merge(l.result,e.data)}this.graphQLErrors=s,"no-cache"===r.fetchPolicy?this.updateLastDiff({result:e.data,complete:!0},this.getDiffOptions(r.variables)):0!==n&&(z(e,r.errorPolicy)?this.cache.performTransaction(function(i){if(o.shouldWrite(e,r.variables))i.writeQuery({query:t,data:e.data,variables:r.variables,overwrite:1===n}),o.lastWrite={result:e,variables:r.variables,dmCount:V.get(o.cache)};else if(o.lastDiff&&o.lastDiff.diff.complete){e.data=o.lastDiff.diff.result;return}var a=o.getDiffOptions(r.variables),s=(0,Q.muteDeprecations)("canonizeResults",function(){return i.diff(a)});!o.stopped&&(0,c.equal)(o.variables,r.variables)&&o.updateWatch(r.variables),o.updateLastDiff(s,a),s.complete&&(e.data=s.result)}):this.lastWrite=void 0)},e.prototype.markReady=function(){return this.networkError=null,this.networkStatus=j.NetworkStatus.ready},e.prototype.markError=function(e){var t;return this.networkStatus=j.NetworkStatus.error,this.lastWrite=void 0,null==(t=this.observableQuery)||t.resetNotifications(),e.graphQLErrors&&(this.graphQLErrors=e.graphQLErrors),e.networkError&&(this.networkError=e.networkError),e},e}();function z(e,t){void 0===t&&(t="none");var r="ignore"===t||"all"===t,n=!m(e);return!n&&r&&e.data&&(n=!0),n}var W=e.i(741969),U=e.i(336904),H=e.i(206699),K=e.i(898173),G=C.canUseWeakMap?WeakMap:Map,$=C.canUseWeakSet?WeakSet:Set,J=new K.Slot,Y=!1;function X(){Y||(Y=!0,!1!==globalThis.__DEV__&&i.invariant.warn(64))}var Z=e.i(511922);function ee(e,t,r){return J.withValue(!0,function(){var n=function e(t,r,n,o,a){var s,u=n.knownChanged,c=function(e,t){if(t.has(e))return t.get(e);var r=Array.isArray(e)?[]:Object.create(null);return t.set(e,r),r}(t,n.mutableTargets);if(Array.isArray(t)){for(var l=0,p=Array.from(t.entries());l<p.length;l++){var h=p[l],d=h[0],y=h[1];if(null===y){c[d]=null;continue}var v=e(y,r,n,o,!1!==globalThis.__DEV__?"".concat(a||"","[").concat(d,"]"):void 0);u.has(v)&&u.add(c),c[d]=v}return u.has(c)?c:t}for(var m=0,g=r.selections;m<g.length;m++){var b=g[m],_=void 0;if(o&&u.add(c),b.kind===H.Kind.FIELD){var w=(0,R.resultKeyNameFromField)(b),k=b.selectionSet;if(void 0===(_=c[w]||t[w]))continue;if(k&&null!==_){var v=e(t[w],k,n,o,!1!==globalThis.__DEV__?"".concat(a||"",".").concat(w):void 0);u.has(v)&&(_=v)}!1===globalThis.__DEV__&&(c[w]=_),!1!==globalThis.__DEV__&&(!o||"__typename"===w||(null==(s=Object.getOwnPropertyDescriptor(c,w))?void 0:s.value)?(delete c[w],c[w]=_):Object.defineProperty(c,w,function(e,t,r,n,o){var a=function(){return J.getValue()||(!1!==globalThis.__DEV__&&i.invariant.warn(60,n?"".concat(o," '").concat(n,"'"):"anonymous ".concat(o),"".concat(r,".").concat(e).replace(/^\./,"")),a=function(){return t}),t};return{get:function(){return a()},set:function(e){a=function(){return e}},enumerable:!0,configurable:!0}}(w,_,a||"",n.operationName,n.operationType)))}if(b.kind===H.Kind.INLINE_FRAGMENT&&(!b.typeCondition||n.cache.fragmentMatches(b,t.__typename))&&(_=e(t,b.selectionSet,n,o,a)),b.kind===H.Kind.FRAGMENT_SPREAD){var S=b.name.value,O=n.fragmentMap[S]||(n.fragmentMap[S]=n.cache.lookupFragment(S));(0,i.invariant)(O,59,S);var E=(0,f.getFragmentMaskMode)(b);"mask"!==E&&(_=e(t,O.selectionSet,n,"migrate"===E,a))}u.has(_)&&u.add(c)}return"__typename"in t&&!("__typename"in c)&&(c.__typename=t.__typename),Object.keys(c).length!==Object.keys(t).length&&u.add(c),u.has(c)?c:t}(e,t,r,!1);return Object.isFrozen(e)&&(0,Z.maybeDeepFreeze)(n),n})}function et(e,t,r,n){if(!r.fragmentMatches)return!1!==globalThis.__DEV__&&X(),e;var o=t.definitions.filter(function(e){return e.kind===H.Kind.FRAGMENT_DEFINITION});void 0===n&&((0,i.invariant)(1===o.length,61,o.length),n=o[0].name.value);var a=o.find(function(e){return e.name.value===n});return((0,i.invariant)(!!a,62,n),null==e||(0,c.default)(e,{}))?e:ee(e,a.selectionSet,{operationType:"fragment",operationName:a.name.value,fragmentMap:(0,h.createFragmentMap)((0,y.getFragmentDefinitions)(t)),cache:r,mutableTargets:new G,knownChanged:new $})}var er=Object.prototype.hasOwnProperty,en=Object.create(null),ei=function(){function e(e){var t=this;this.clientAwareness={},this.queries=new Map,this.fetchCancelFns=new Map,this.transformCache=new U.AutoCleanedWeakCache(I.cacheSizes["queryManager.getDocumentInfo"]||2e3),this.queryIdCounter=1,this.requestIdCounter=1,this.mutationIdCounter=1,this.inFlightLinkObservables=new x.Trie(!1),this.noCacheWarningsByQueryId=new Set;var r=new A(function(e){return t.cache.transformDocument(e)},{cache:!1});this.cache=e.cache,this.link=e.link,this.defaultOptions=e.defaultOptions,this.queryDeduplication=e.queryDeduplication,this.clientAwareness=e.clientAwareness,this.localState=e.localState,this.ssrMode=e.ssrMode,this.assumeImmutableResults=e.assumeImmutableResults,this.dataMasking=e.dataMasking;var 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 e.prototype.stop=function(){var e=this;
14this.queries.forEach(function(t,r){e.stopQueryNoBroadcast(r)}),this.cancelPendingFetches((0,i.newInvariantError)(35))},e.prototype.cancelPendingFetches=function(e){this.fetchCancelFns.forEach(function(t){return t(e)}),this.fetchCancelFns.clear()},e.prototype.mutate=function(e){return(0,n.__awaiter)(this,arguments,void 0,function(e){var t,r,o,a,s,u,c,l=e.mutation,f=e.variables,p=e.optimisticResponse,h=e.updateQueries,d=e.refetchQueries,y=void 0===d?[]:d,v=e.awaitRefetchQueries,b=void 0!==v&&v,w=e.update,k=e.onQueryUpdated,S=e.fetchPolicy,O=void 0===S?(null==(u=this.defaultOptions.mutate)?void 0:u.fetchPolicy)||"network-only":S,E=e.errorPolicy,R=void 0===E?(null==(c=this.defaultOptions.mutate)?void 0:c.errorPolicy)||"none":E,T=e.keepRootFields,x=e.context;return(0,n.__generator)(this,function(e){switch(e.label){case 0:if((0,i.invariant)(l,36),(0,i.invariant)("network-only"===O||"no-cache"===O,37),t=this.generateMutationId(),l=this.cache.transformForLink(this.transform(l)),r=this.getDocumentInfo(l).hasClientExports,f=this.getVariables(l,f),!r)return[3,2];return[4,this.localState.addExportedVariables(l,f,x)];case 1:f=e.sent(),e.label=2;case 2:return o=this.mutationStore&&(this.mutationStore[t]={mutation:l,variables:f,loading:!0,error:null}),a=p&&this.markMutationOptimistic(p,{mutationId:t,document:l,variables:f,fetchPolicy:O,errorPolicy:R,context:x,updateQueries:h,update:w,keepRootFields:T}),this.broadcastQueries(),s=this,[2,new Promise(function(e,r){return _(s.getObservableFromLink(l,(0,n.__assign)((0,n.__assign)({},x),{optimisticResponse:a?p:void 0}),f,{},!1),function(e){if(m(e)&&"none"===R)throw new N.ApolloError({graphQLErrors:g(e)});o&&(o.loading=!1,o.error=null);var r=(0,n.__assign)({},e);return"function"==typeof y&&(y=y(r)),"ignore"===R&&m(r)&&delete r.errors,s.markMutationResult({mutationId:t,result:r,document:l,variables:f,fetchPolicy:O,errorPolicy:R,context:x,update:w,updateQueries:h,awaitRefetchQueries:b,refetchQueries:y,removeOptimistic:a?t:void 0,onQueryUpdated:k,keepRootFields:T})}).subscribe({next:function(r){s.broadcastQueries(),"hasNext"in r&&!1!==r.hasNext||e((0,n.__assign)((0,n.__assign)({},r),{data:s.maskOperation({document:l,data:r.data,fetchPolicy:O,id:t})}))},error:function(e){o&&(o.loading=!1,o.error=e),a&&s.cache.removeOptimistic(t),s.broadcastQueries(),r(e instanceof N.ApolloError?e:new N.ApolloError({networkError:e}))}})})]}})})},e.prototype.markMutationResult=function(e,t){var r=this;void 0===t&&(t=this.cache);var i=e.result,o=[],a="no-cache"===e.fetchPolicy;if(!a&&z(i,e.errorPolicy)){if((0,p.isExecutionPatchIncrementalResult)(i)||o.push({result:i.data,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables}),(0,p.isExecutionPatchIncrementalResult)(i)&&(0,v.isNonEmptyArray)(i.incremental)){var s=t.diff({id:"ROOT_MUTATION",query:this.getDocumentInfo(e.document).asQuery,variables:e.variables,optimistic:!1,returnPartialData:!0}),u=void 0;s.result&&(u=(0,p.mergeIncrementalData)(s.result,i)),void 0!==u&&(i.data=u,o.push({result:u,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables}))}var c=e.updateQueries;c&&this.queries.forEach(function(e,n){var a=e.observableQuery,s=a&&a.queryName;if(s&&er.call(c,s)){var u=c[s],l=r.queries.get(n),f=l.document,p=l.variables,h=t.diff({query:f,variables:p,returnPartialData:!0,optimistic:!1}),d=h.result;if(h.complete&&d){var v=u(d,{mutationResult:i,queryName:f&&(0,y.getOperationName)(f)||void 0,queryVariables:p});v&&o.push({result:v,dataId:"ROOT_QUERY",query:f,variables:p})}}})}if(o.length>0||(e.refetchQueries||"").length>0||e.update||e.onQueryUpdated||e.removeOptimistic){var l=[];if(this.refetchQueries({updateCache:function(t){a||o.forEach(function(e){return t.write(e)});var s=e.update,u=!(0,p.isExecutionPatchResult)(i)||(0,p.isExecutionPatchIncrementalResult)(i)&&!i.hasNext;if(s){if(!a){var c=t.diff({id:"ROOT_MUTATION",query:r.getDocumentInfo(e.document).asQuery,variables:e.variables,optimistic:!1,returnPartialData:!0});c.complete&&("incremental"in(i=(0,n.__assign)((0,n.__assign)({},i),{data:c.result}))&&delete i.incremental,"hasNext"in i&&delete i.hasNext)}u&&s(t,i,{context:e.context,variables:e.variables})}a||e.keepRootFields||!u||t.modify({id:"ROOT_MUTATION",fields:function(e,t){var r=t.fieldName,n=t.DELETE;return"__typename"===r?e:n}})},include:e.refetchQueries,optimistic:!1,removeOptimistic:e.removeOptimistic,onQueryUpdated:e.onQueryUpdated||null}
14).forEach(function(e){return l.push(e)}),e.awaitRefetchQueries||e.onQueryUpdated)return Promise.all(l).then(function(){return i})}return Promise.resolve(i)},e.prototype.markMutationOptimistic=function(e,t){var r=this,o="function"==typeof e?e(t.variables,{IGNORE:en}):e;return o!==en&&(this.cache.recordOptimisticTransaction(function(e){try{r.markMutationResult((0,n.__assign)((0,n.__assign)({},t),{result:{data:o}}),e)}catch(e){!1!==globalThis.__DEV__&&i.invariant.error(e)}},t.mutationId),!0)},e.prototype.fetchQuery=function(e,t,r){return this.fetchConcastWithInfo(this.getOrCreateQuery(e),t,r).concast.promise},e.prototype.getQueryStore=function(){var e=Object.create(null);return this.queries.forEach(function(t,r){e[r]={variables:t.variables,networkStatus:t.networkStatus,networkError:t.networkError,graphQLErrors:t.graphQLErrors}}),e},e.prototype.resetErrors=function(e){var t=this.queries.get(e);t&&(t.networkError=void 0,t.graphQLErrors=[])},e.prototype.transform=function(e){return this.documentTransform.transformDocument(e)},e.prototype.getDocumentInfo=function(e){var t=this.transformCache;if(!t.has(e)){var r={hasClientExports:(0,f.hasClientExports)(e),hasForcedResolvers:this.localState.shouldForceResolvers(e),hasNonreactiveDirective:(0,f.hasDirectives)(["nonreactive"],e),nonReactiveQuery:(0,l.addNonReactiveToNamedFragments)(e),clientQuery:this.localState.clientQuery(e),serverQuery:(0,l.removeDirectivesFromDocument)([{name:"client",remove:!0},{name:"connection"},{name:"nonreactive"},{name:"unmask"}],e),defaultVars:(0,y.getDefaultValues)((0,y.getOperationDefinition)(e)),asQuery:(0,n.__assign)((0,n.__assign)({},e),{definitions:e.definitions.map(function(e){return"OperationDefinition"===e.kind&&"query"!==e.operation?(0,n.__assign)((0,n.__assign)({},e),{operation:"query"}):e})})};t.set(e,r)}return t.get(e)},e.prototype.getVariables=function(e,t){return(0,n.__assign)((0,n.__assign)({},this.getDocumentInfo(e).defaultVars),t)},e.prototype.watchQuery=function(e){var t=this.transform(e.query);void 0===(e=(0,n.__assign)((0,n.__assign)({},e),{variables:this.getVariables(t,e.variables)})).notifyOnNetworkStatusChange&&(e.notifyOnNetworkStatusChange=!1);var r=new B(this),i=new M.ObservableQuery({queryManager:this,queryInfo:r,options:e});return i.lastQuery=t,M.ObservableQuery.inactiveOnCreation.getValue()||this.queries.set(i.queryId,r),r.init({document:t,observableQuery:i,variables:i.variables}),i},e.prototype.query=function(e,t){var r=this;void 0===t&&(t=this.generateQueryId()),(0,i.invariant)(e.query,38),(0,i.invariant)("Document"===e.query.kind,39),(0,i.invariant)(!e.returnPartialData,40),(0,i.invariant)(!e.pollInterval,41);var o=this.transform(e.query);return this.fetchQuery(t,(0,n.__assign)((0,n.__assign)({},e),{query:o})).then(function(i){return i&&(0,n.__assign)((0,n.__assign)({},i),{data:r.maskOperation({document:o,data:i.data,fetchPolicy:e.fetchPolicy,id:t})})}).finally(function(){return r.stopQuery(t)})},e.prototype.generateQueryId=function(){return String(this.queryIdCounter++)},e.prototype.generateRequestId=function(){return this.requestIdCounter++},e.prototype.generateMutationId=function(){return String(this.mutationIdCounter++)},e.prototype.stopQueryInStore=function(e){this.stopQueryInStoreNoBroadcast(e),this.broadcastQueries()},e.prototype.stopQueryInStoreNoBroadcast=function(e){var t=this.queries.get(e);t&&t.stop()},e.prototype.clearStore=function(e){return void 0===e&&(e={discardWatches:!0}),this.cancelPendingFetches((0,i.newInvariantError)(42)),this.queries.forEach(function(e){e.observableQuery?e.networkStatus=j.NetworkStatus.loading:e.stop()}),this.mutationStore&&(this.mutationStore=Object.create(null)),this.cache.reset(e)},e.prototype.getObservableQueries=function(e){var t=this;void 0===e&&(e="active");var r=new Map,o=new Map,a=new Map,s=new Set;return Array.isArray(e)&&e.forEach(function(e){if("string"==typeof e)o.set(e,e),a.set(e,!1);else if((0,R.isDocumentNode)(e)){var r=(0,W.print)(t.transform(e));o.set(r,(0,y.getOperationName)(e)),a.set(r,!1)}else(0,T.isNonNullObject)(e)&&e.query&&s.add(e)}),this.queries.forEach(function(t,n){var i=t.observableQuery,o=t.document;if(i){if("all"===e)return void r.set(n,i);var s=i.queryName;if("standby"===i.options.fetchPolicy||"active"===e&&!i.hasObservers())return;("active"===e||s&&a.has(s)||o&&a.has((0,W.print)(o)))&&(r.set(n,i),s&&a.set(s,!0),o&&a.set((0,W.print)(o),!0))}}
14),s.size&&s.forEach(function(e){var o=(0,E.makeUniqueId)("legacyOneTimeQuery"),a=t.getOrCreateQuery(o).init({document:e.query,variables:e.variables}),s=new M.ObservableQuery({queryManager:t,queryInfo:a,options:(0,n.__assign)((0,n.__assign)({},e),{fetchPolicy:"network-only"})});(0,i.invariant)(s.queryId===o),a.setObservableQuery(s),r.set(o,s)}),!1!==globalThis.__DEV__&&a.size&&a.forEach(function(e,t){if(!e){var r=o.get(t);r?!1!==globalThis.__DEV__&&i.invariant.warn(43,r):!1!==globalThis.__DEV__&&i.invariant.warn(44)}}),r},e.prototype.reFetchObservableQueries=function(e){var t=this;void 0===e&&(e=!1);var r=[];return this.getObservableQueries(e?"all":"active").forEach(function(n,i){var o=n.options.fetchPolicy;(0,Q.muteDeprecations)("resetLastResults",function(){return n.resetLastResults()}),(e||"standby"!==o&&"cache-only"!==o)&&r.push(n.refetch()),(t.queries.get(i)||n.queryInfo).setDiff(null)}),this.broadcastQueries(),Promise.all(r)},e.prototype.startGraphQLSubscription=function(e){var t=this,r=e.query,n=e.variables,i=e.fetchPolicy,o=e.errorPolicy,a=void 0===o?"none":o,s=e.context,u=void 0===s?{}:s,c=e.extensions,l=void 0===c?{}:c;r=this.transform(r),n=this.getVariables(r,n);var f=function(e){return t.getObservableFromLink(r,u,e,l).map(function(n){"no-cache"!==i&&(z(n,a)&&t.cache.write({query:r,result:n.data,dataId:"ROOT_SUBSCRIPTION",variables:e}),t.broadcastQueries());var o=m(n),s=(0,N.graphQLResultHasProtocolErrors)(n);if(o||s){var u={};if(o&&(u.graphQLErrors=n.errors),s&&(u.protocolErrors=n.extensions[N.PROTOCOL_ERRORS_SYMBOL]),"none"===a||s)throw new N.ApolloError(u)}return"ignore"===a&&delete n.errors,n})};if(this.getDocumentInfo(r).hasClientExports){var p=this.localState.addExportedVariables(r,n,u).then(f);return new b.Observable(function(e){var t=null;return p.then(function(r){return t=r.subscribe(e)},e.error),function(){return t&&t.unsubscribe()}})}return f(n)},e.prototype.stopQuery=function(e){this.stopQueryNoBroadcast(e),this.broadcastQueries()},e.prototype.stopQueryNoBroadcast=function(e){this.stopQueryInStoreNoBroadcast(e),this.removeQuery(e)},e.prototype.removeQuery=function(e){var t;this.fetchCancelFns.delete(e),this.queries.has(e)&&(null==(t=this.queries.get(e))||t.stop(),this.queries.delete(e))},e.prototype.broadcastQueries=function(){this.onBroadcast&&this.onBroadcast(),this.queries.forEach(function(e){var t;return null==(t=e.observableQuery)?void 0:t.notify()})},e.prototype.getLocalState=function(){return this.localState},e.prototype.getObservableFromLink=function(e,t,r,i,o){var s,u,c=this;void 0===o&&(o=null!=(s=null==t?void 0:t.queryDeduplication)?s:this.queryDeduplication);var l=this.getDocumentInfo(e),f=l.serverQuery,p=l.clientQuery;if(f){var h=this.inFlightLinkObservables,v=this.link,m={query:f,variables:r,operationName:(0,y.getOperationName)(f)||void 0,context:this.prepareContext((0,n.__assign)((0,n.__assign)({},t),{forceFetch:!o})),extensions:i};if(t=m.context,o){var g=(0,W.print)(f),w=(0,d.canonicalStringify)(r),k=h.lookup(g,w);if(!(u=k.observable)){var S=new O([a(v,m)]);u=k.observable=S,S.beforeNext(function e(t,r){"next"===t&&"hasNext"in r&&r.hasNext?S.beforeNext(e):h.remove(g,w)})}}else u=new O([a(v,m)])}else u=new O([b.Observable.of({data:{}})]),t=this.prepareContext(t);return p&&(u=_(u,function(e){return c.localState.runResolvers({document:p,remoteResult:e,context:t,variables:r})})),u},e.prototype.getResultsFromLink=function(e,t,r){var n=e.lastRequestId=this.generateRequestId(),i=this.cache.transformForLink(r.query);return _(this.getObservableFromLink(i,r.context,r.variables),function(o){var a=g(o),s=a.length>0,u=r.errorPolicy;if(n>=e.lastRequestId){if(s&&"none"===u)throw e.markError(new N.ApolloError({graphQLErrors:a}));e.markResult(o,i,r,t),e.markReady()}var c={data:o.data,loading:!1,networkStatus:j.NetworkStatus.ready};return s&&"none"===u&&(c.data=void 0),s&&"ignore"!==u&&(c.errors=a,c.networkStatus=j.NetworkStatus.error),c},function(t){var r=(0,N.isApolloError)(t)?t:new N.ApolloError({networkError:t});throw n>=e.lastRequestId&&e.markError(r),r})},e.prototype.fetchConcastWithInfo=function(e,t,r,n){var i,o,a=this;void 0===r&&(r=j.NetworkStatus.loading),void 0===n&&(n=t.query);var s=this.getVariables(n,t.variables),u=this.defaultOptions.watchQuery,c=t.fetchPolicy,l=void 0===c?u&&u.fetchPolicy||"cache-first":c,f=t.errorPolicy,p=void 0===f?u&&u.errorPolicy||"none":f,h=t.returnPartialData,d=t.notifyOnNetworkStatusChange,y=t.context,v=Object.assign({},t,{query:n,variables:s,fetchPolicy:l,errorPolicy:p,returnPartialData:void 0!==h&&h,notifyOnNetworkStatusChange:void 0!==d&&d,context:void 0===y?{}:y}),m=function(n){v.variables=n;var i=a.fetchQueryByPolicy(e,v,r);return"standby"!==v.fetchPolicy&&i.sources.length>0&&e.observableQuery&&e.observableQuery.applyNextFetchPolicy("after-fetch",t),i},g=function(){return a.fetchCancelFns.delete(e.queryId)};if(this.fetchCancelFns.set(e.queryId,function(e){g(),setTimeout(function(){return i.cancel(e)})}),this.getDocumentInfo(v.query).hasClientExports)i=new O(this.localState.addExportedVariables(v.query,v.variables,v.context).then(m).then(function(e){return e.sources})),o=!0;else{var b=m(v.variables);o=b.fromLink,i=new O(b.sources)}return i.promise.then(g,g),{concast:i,fromLink:o}},e.prototype.refetchQueries=function(e){var t=this,r=e.updateCache,n=e.include,i=e.optimistic,o=void 0!==i&&i,a=e.removeOptimistic,s=void 0===a?o?(0,E.makeUniqueId)("refetchQueries"):void 0:a,u=e.onQueryUpdated,c=new Map;
14n&&this.getObservableQueries(n).forEach(function(e,r){c.set(r,{oq:e,lastDiff:(t.queries.get(r)||e.queryInfo).getDiff()})});var l=new Map;return r&&this.cache.batch({update:r,optimistic:o&&s||!1,removeOptimistic:s,onWatchUpdated:function(e,t,r){var n=e.watcher instanceof B&&e.watcher.observableQuery;if(n){if(u){c.delete(n.queryId);var i=u(n,t,r);return!0===i&&(i=n.refetch()),!1!==i&&l.set(n,i),i}null!==u&&c.set(n.queryId,{oq:n,lastDiff:r,diff:t})}}}),c.size&&c.forEach(function(e,r){var n,i=e.oq,o=e.lastDiff,a=e.diff;u&&(a||(a=(0,Q.muteDeprecations)("canonizeResults",function(){return t.cache.diff(i.queryInfo.getDiffOptions())})),n=u(i,a,o)),u&&!0!==n||(n=i.refetch()),!1!==n&&l.set(i,n),r.indexOf("legacyOneTimeQuery")>=0&&t.stopQueryNoBroadcast(r)}),s&&this.cache.removeOptimistic(s),l},e.prototype.maskOperation=function(e){var t,r,n,o=e.document,a=e.data;if(!1!==globalThis.__DEV__){var s=e.fetchPolicy,u=e.id,c=null==(t=(0,y.getOperationDefinition)(o))?void 0:t.operation,l=(null!=(r=null==c?void 0:c[0])?r:"o")+u;!this.dataMasking||"no-cache"!==s||(0,h.isFullyUnmaskedOperation)(o)||this.noCacheWarningsByQueryId.has(l)||(this.noCacheWarningsByQueryId.add(l),!1!==globalThis.__DEV__&&i.invariant.warn(45,null!=(n=(0,y.getOperationName)(o))?n:"Unnamed ".concat(null!=c?c:"operation")))}return this.dataMasking?function(e,t,r){if(!r.fragmentMatches)return!1!==globalThis.__DEV__&&X(),e;var n,o=(0,y.getOperationDefinition)(t);return((0,i.invariant)(o,63),null==e)?e:ee(e,o.selectionSet,{operationType:o.operation,operationName:null==(n=o.name)?void 0:n.value,fragmentMap:(0,h.createFragmentMap)((0,y.getFragmentDefinitions)(t)),cache:r,mutableTargets:new G,knownChanged:new $})}(a,o,this.cache):a},e.prototype.maskFragment=function(e){var t=e.data,r=e.fragment,n=e.fragmentName;return this.dataMasking?et(t,r,this.cache,n):t},e.prototype.fetchQueryByPolicy=function(e,t,r){var i=this,o=t.query,a=t.variables,s=t.fetchPolicy,u=t.refetchWritePolicy,l=t.errorPolicy,f=t.returnPartialData,p=t.context,h=t.notifyOnNetworkStatusChange,d=e.networkStatus;e.init({document:o,variables:a,networkStatus:r});var y=function(){return e.getDiff()},v=function(t,r){void 0===r&&(r=e.networkStatus||j.NetworkStatus.loading);var s=t.result;!1===globalThis.__DEV__||f||(0,c.equal)(s,{})||(0,M.logMissingFieldErrors)(t.missing);var u=function(e){return b.Observable.of((0,n.__assign)({data:e,loading:(0,j.isNetworkRequestInFlight)(r),networkStatus:r},t.complete?null:{partial:!0}))};return s&&i.getDocumentInfo(o).hasForcedResolvers?i.localState.runResolvers({document:o,remoteResult:{data:s},context:p,variables:a,onlyRunForcedResolvers:!0}).then(function(e){return u(e.data||void 0)}):"none"===l&&r===j.NetworkStatus.refetch&&Array.isArray(t.missing)?u(void 0):u(s)},m="no-cache"===s?0:r===j.NetworkStatus.refetch&&"merge"!==u?1:2,g=function(){return i.getResultsFromLink(e,m,{query:o,variables:a,context:p,fetchPolicy:s,errorPolicy:l})},_=h&&"number"==typeof d&&d!==r&&(0,j.isNetworkRequestInFlight)(r);switch(s){default:case"cache-first":var w=y();if(w.complete)return{fromLink:!1,sources:[v(w,e.markReady())]};if(f||_)return{fromLink:!0,sources:[v(w),g()]};return{fromLink:!0,sources:[g()]};case"cache-and-network":var w=y();if(w.complete||f||_)return{fromLink:!0,sources:[v(w),g()]};return{fromLink:!0,sources:[g()]};case"cache-only":return{fromLink:!1,sources:[v(y(),e.markReady())]};case"network-only":if(_)return{fromLink:!0,sources:[v(y()),g()]};return{fromLink:!0,sources:[g()]};case"no-cache":if(_)return{fromLink:!0,sources:[v(e.getDiff()),g()]};return{fromLink:!0,sources:[g()]};case"standby":return{fromLink:!1,sources:[]}}},e.prototype.getOrCreateQuery=function(e){return e&&!this.queries.has(e)&&this.queries.set(e,new B(this,e)),this.queries.get(e)},e.prototype.prepareContext=function(e){void 0===e&&(e={});var t=this.localState.prepareContext(e);return(0,n.__assign)((0,n.__assign)((0,n.__assign)({},this.defaultContext),t),{clientAwareness:this.clientAwareness})},e}(),eo=e.i(502088);function ea(e){return e.kind===H.Kind.FIELD||e.kind===H.Kind.FRAGMENT_SPREAD||e.kind===H.Kind.INLINE_FRAGMENT}var es=e.i(822025),eu=new K.Slot,ec=new WeakMap;function el(e){var t=ec.get(e);return t||ec.set(e,t={vars:new Set,dep:(0,es.dep)()}),t}
14function ef(e){el(e).vars.forEach(function(t){return t.forgetCache(e)})}function ep(e){el(e).vars.forEach(function(t){return t.attachCache(e)})}function eh(e){var t=new Set,r=new Set,n=function(o){if(arguments.length>0){if(e!==o){e=o,t.forEach(function(e){var t;el(e).dep.dirty(n),(t=e).broadcastWatches&&t.broadcastWatches()});var a=Array.from(r);r.clear(),a.forEach(function(t){return t(e)})}}else{var s=eu.getValue();s&&(i(s),el(s).dep(n))}return e};n.onNextChange=function(e){return r.add(e),function(){r.delete(e)}};var i=n.attachCache=function(e){return t.add(e),el(e).vars.add(n),n};return n.forgetCache=function(e){return t.delete(e)},n}e.s(["cacheSlot",0,eu,"forgetCache",0,ef,"makeVar",0,eh,"recallCache",0,ep],900268);var ed=function(){function e(e){var t=e.cache,r=e.client,n=e.resolvers,i=e.fragmentMatcher;this.selectionsToResolveCache=new WeakMap,this.cache=t,r&&(this.client=r),n&&this.addResolvers(n),i&&this.setFragmentMatcher(i)}return e.prototype.addResolvers=function(e){var t=this;this.resolvers=this.resolvers||{},Array.isArray(e)?e.forEach(function(e){t.resolvers=(0,q.mergeDeep)(t.resolvers,e)}):this.resolvers=(0,q.mergeDeep)(this.resolvers,e)},e.prototype.setResolvers=function(e){this.resolvers={},this.addResolvers(e)},e.prototype.getResolvers=function(){return this.resolvers||{}},e.prototype.runResolvers=function(e){return(0,n.__awaiter)(this,arguments,void 0,function(e){var t=e.document,r=e.remoteResult,i=e.context,o=e.variables,a=e.onlyRunForcedResolvers,s=void 0!==a&&a;return(0,n.__generator)(this,function(e){return t?[2,this.resolveDocument(t,r.data,i,o,this.fragmentMatcher,s).then(function(e){return(0,n.__assign)((0,n.__assign)({},r),{data:e.result})})]:[2,r]})})},e.prototype.setFragmentMatcher=function(e){this.fragmentMatcher=e},e.prototype.getFragmentMatcher=function(){return this.fragmentMatcher},e.prototype.clientQuery=function(e){return(0,f.hasDirectives)(["client"],e)&&this.resolvers?e:null},e.prototype.serverQuery=function(e){return(0,l.removeClientSetsFromDocument)(e)},e.prototype.prepareContext=function(e){var t=this.cache;return(0,n.__assign)((0,n.__assign)({},e),{cache:t,getCacheKey:function(e){return t.identify(e)}})},e.prototype.addExportedVariables=function(e){return(0,n.__awaiter)(this,arguments,void 0,function(e,t,r){return void 0===t&&(t={}),void 0===r&&(r={}),(0,n.__generator)(this,function(i){return e?[2,this.resolveDocument(e,this.buildRootValueFromCache(e,t)||{},this.prepareContext(r),t).then(function(e){return(0,n.__assign)((0,n.__assign)({},t),e.exportedVariables)})]:[2,(0,n.__assign)({},t)]})})},e.prototype.shouldForceResolvers=function(e){var t=!1;return(0,eo.visit)(e,{Directive:{enter:function(e){if("client"===e.name.value&&e.arguments&&(t=e.arguments.some(function(e){return"always"===e.name.value&&"BooleanValue"===e.value.kind&&!0===e.value.value})))return eo.BREAK}}}),t},e.prototype.buildRootValueFromCache=function(e,t){return this.cache.diff({query:(0,l.buildQueryFromSelectionSet)(e),variables:t,returnPartialData:!0,optimistic:!1}).result},e.prototype.resolveDocument=function(e,t){return(0,n.__awaiter)(this,arguments,void 0,function(e,t,r,i,o,a){var s,u,c,l,f,p,d,v,m,g;return void 0===r&&(r={}),void 0===i&&(i={}),void 0===o&&(o=function(){return!0}),void 0===a&&(a=!1),(0,n.__generator)(this,function(b){return s=(0,y.getMainDefinition)(e),u=(0,y.getFragmentDefinitions)(e),c=(0,h.createFragmentMap)(u),l=this.collectSelectionsToResolve(s,c),p=(f=s.operation)?f.charAt(0).toUpperCase()+f.slice(1):"Query",d=this,v=d.cache,m=d.client,g={fragmentMap:c,context:(0,n.__assign)((0,n.__assign)({},r),{cache:v,client:m}),variables:i,fragmentMatcher:o,defaultOperationType:p,exportedVariables:{},selectionsToResolve:l,onlyRunForcedResolvers:a},[2,this.resolveSelectionSet(s.selectionSet,!1,t,g).then(function(e){return{result:e,exportedVariables:g.exportedVariables}})]})})},e.prototype.resolveSelectionSet=function(e,t,r,o){return(0,n.__awaiter)(this,void 0,void 0,function(){var a,s,u,c,l,p=this;return(0,n.__generator)(this,function(h){return a=o.fragmentMap,s=o.context,u=o.variables,c=[r],l=function(e){return(0,n.__awaiter)(p,void 0,void 0,function(){var l,p;return(0,n.__generator)(this,function(n){return(t||o.selectionsToResolve.has(e))&&(0,f.shouldInclude)(e,u)?(0,R.isField)(e)?[2,this.resolveField(e,t,r,o).then(function(t){var r;void 0!==t&&c.push(((r={}
14)[(0,R.resultKeyNameFromField)(e)]=t,r))})]:((0,R.isInlineFragment)(e)?l=e:(l=a[e.name.value],(0,i.invariant)(l,21,e.name.value)),l&&l.typeCondition&&(p=l.typeCondition.name.value,o.fragmentMatcher(r,p,s)))?[2,this.resolveSelectionSet(l.selectionSet,t,r,o).then(function(e){c.push(e)})]:[2]:[2]})})},[2,Promise.all(e.selections.map(l)).then(function(){return(0,q.mergeDeepArray)(c)})]})})},e.prototype.resolveField=function(e,t,r,i){return(0,n.__awaiter)(this,void 0,void 0,function(){var o,a,s,u,c,l,f,p,h,d=this;return(0,n.__generator)(this,function(n){return r?(o=i.variables,u=(a=e.name.value)!==(s=(0,R.resultKeyNameFromField)(e)),l=Promise.resolve(c=r[s]||r[a]),(!i.onlyRunForcedResolvers||this.shouldForceResolvers(e))&&(f=r.__typename||i.defaultOperationType,(p=this.resolvers&&this.resolvers[f])&&(h=p[u?a:s])&&(l=Promise.resolve(eu.withValue(this.cache,h,[r,(0,R.argumentsObjectFromField)(e,o),i.context,{field:e,fragmentMap:i.fragmentMap}])))),[2,l.then(function(r){if(void 0===r&&(r=c),e.directives&&e.directives.forEach(function(e){"export"===e.name.value&&e.arguments&&e.arguments.forEach(function(e){"as"===e.name.value&&"StringValue"===e.value.kind&&(i.exportedVariables[e.value.value]=r)})}),!e.selectionSet||null==r)return r;var n,o,a=null!=(o=null==(n=e.directives)?void 0:n.some(function(e){return"client"===e.name.value}))&&o;return Array.isArray(r)?d.resolveSubSelectedArray(e,t||a,r,i):e.selectionSet?d.resolveSelectionSet(e.selectionSet,t||a,r,i):void 0})]):[2,null]})})},e.prototype.resolveSubSelectedArray=function(e,t,r,n){var i=this;return Promise.all(r.map(function(r){return null===r?null:Array.isArray(r)?i.resolveSubSelectedArray(e,t,r,n):e.selectionSet?i.resolveSelectionSet(e.selectionSet,t,r,n):void 0}))},e.prototype.collectSelectionsToResolve=function(e,t){var r=function(e){return!Array.isArray(e)},n=this.selectionsToResolveCache;return function e(o){if(!n.has(o)){var a=new Set;n.set(o,a),(0,eo.visit)(o,{Directive:function(e,t,n,i,o){"client"===e.name.value&&o.forEach(function(e){r(e)&&ea(e)&&a.add(e)})},FragmentSpread:function(n,o,s,u,c){var l=t[n.name.value];(0,i.invariant)(l,22,n.name.value);var f=e(l);f.size>0&&(c.forEach(function(e){r(e)&&ea(e)&&a.add(e)}),a.add(n),f.forEach(function(e){a.add(e)}))}})}return n.get(o)}(e)},e}(),ey=e.i(669570),ev=e.i(799523),em=!1,eg=function(){function e(e){var t,r,a,c=this;if(this.resetStoreCallbacks=[],this.clearStoreCallbacks=[],!e.cache)throw(0,i.newInvariantError)(16);var l=e.uri,f=e.credentials,p=e.headers,h=e.cache,d=e.documentTransform,y=e.ssrMode,v=void 0!==y&&y,m=e.ssrForceFetchDelay,g=void 0===m?0:m,b=e.connectToDevTools,_=e.queryDeduplication,w=void 0===_||_,k=e.defaultOptions,S=e.defaultContext,O=e.assumeImmutableResults,E=void 0===O?h.assumeImmutableResults:O,R=e.resolvers,T=e.typeDefs,x=e.fragmentMatcher,C=e.clientAwareness,D=e.name,P=e.version,I=e.devtools,F=e.dataMasking;!1!==globalThis.__DEV__&&((0,Q.warnRemovedOption)(e,"connectToDevTools","ApolloClient","Please use `devtools.enabled` instead."),(0,Q.warnRemovedOption)(e,"uri","ApolloClient","Please initialize an instance of `HttpLink` with `uri` instead."),(0,Q.warnRemovedOption)(e,"credentials","ApolloClient","Please initialize an instance of `HttpLink` with `credentials` instead."),(0,Q.warnRemovedOption)(e,"headers","ApolloClient","Please initialize an instance of `HttpLink` with `headers` instead."),(0,Q.warnRemovedOption)(e,"name","ApolloClient","Please use the `clientAwareness.name` option instead."),(0,Q.warnRemovedOption)(e,"version","ApolloClient","Please use the `clientAwareness.version` option instead."),(0,Q.warnRemovedOption)(e,"typeDefs","ApolloClient"),e.link||!1===globalThis.__DEV__||i.invariant.warn(17));var A=e.link;A||(A=l?new u.HttpLink({uri:l,credentials:f,headers:p}):o.ApolloLink.empty()),this.link=A,this.cache=h,this.disableNetworkFetches=v||g>0,this.queryDeduplication=w,this.defaultOptions=k||Object.create(null),this.typeDefs=T,this.devtoolsConfig=(0,n.__assign)((0,n.__assign)({},I),{enabled:null!=(t=null==I?void 0:I.enabled)?t:b}),void 0===this.devtoolsConfig.enabled&&(this.devtoolsConfig.enabled=!1!==globalThis.__DEV__),g&&setTimeout(function(){return c.disableNetworkFetches=!1},g),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=s.version,this.localState=new ed({cac
14he:h,client:this,resolvers:R,fragmentMatcher:x}),this.queryManager=new ei({cache:this.cache,link:this.link,defaultOptions:this.defaultOptions,defaultContext:S,documentTransform:d,queryDeduplication:w,ssrMode:v,dataMasking:!!F,clientAwareness:{name:null!=(r=null==C?void 0:C.name)?r:D,version:null!=(a=null==C?void 0:C.version)?a:P},localState:this.localState,assumeImmutableResults:E,onBroadcast:this.devtoolsConfig.enabled?function(){c.devToolsHookCb&&c.devToolsHookCb({action:{},state:{queries:c.queryManager.getQueryStore(),mutations:c.queryManager.mutationStore||{}},dataWithOptimisticResults:c.cache.extract(!0)})}:void 0}),this.devtoolsConfig.enabled&&this.connectToDevTools()}return Object.defineProperty(e.prototype,"prioritizeCacheValues",{get:function(){return this.disableNetworkFetches},set:function(e){this.disableNetworkFetches=e},enumerable:!1,configurable:!0}),e.prototype.connectToDevTools=function(){if("u">typeof window){var e=window,t=Symbol.for("apollo.devtools");(e[t]=e[t]||[]).push(this),e.__APOLLO_CLIENT__=this,!em&&!1!==globalThis.__DEV__&&(em=!0,window.document&&window.top===window.self&&/^(https?|file):$/.test(window.location.protocol)&&setTimeout(function(){if(!window.__APOLLO_DEVTOOLS_GLOBAL_HOOK__){var e=window.navigator,t=e&&e.userAgent,r=void 0;"string"==typeof t&&(t.indexOf("Chrome/")>-1?r="https://chrome.google.com/webstore/detail/apollo-client-developer-t/jdkknkkbebbapilgoeccciglkfbmbnfm":t.indexOf("Firefox/")>-1&&(r="https://addons.mozilla.org/en-US/firefox/addon/apollo-developer-tools/")),r&&!1!==globalThis.__DEV__&&i.invariant.log("Download the Apollo DevTools for a better development experience: %s",r)}},1e4))}},Object.defineProperty(e.prototype,"documentTransform",{get:function(){return this.queryManager.documentTransform},enumerable:!1,configurable:!0}),e.prototype.stop=function(){this.queryManager.stop()},e.prototype.watchQuery=function(e){return this.defaultOptions.watchQuery&&(e=(0,ey.mergeOptions)(this.defaultOptions.watchQuery,e)),this.disableNetworkFetches&&("network-only"===e.fetchPolicy||"cache-and-network"===e.fetchPolicy)&&(e=(0,n.__assign)((0,n.__assign)({},e),{fetchPolicy:"cache-first"})),!1!==globalThis.__DEV__&&((0,Q.warnRemovedOption)(e,"canonizeResults","client.watchQuery"),(0,Q.warnRemovedOption)(e,"partialRefetch","client.watchQuery")),this.queryManager.watchQuery(e)},e.prototype.query=function(e){return this.defaultOptions.query&&(e=(0,ey.mergeOptions)(this.defaultOptions.query,e)),(0,i.invariant)("cache-and-network"!==e.fetchPolicy,18),this.disableNetworkFetches&&"network-only"===e.fetchPolicy&&(e=(0,n.__assign)((0,n.__assign)({},e),{fetchPolicy:"cache-first"})),!1!==globalThis.__DEV__&&((0,Q.warnRemovedOption)(e,"canonizeResults","client.query"),(0,Q.warnRemovedOption)(e,"notifyOnNetworkStatusChange","client.query","This option does not affect `client.query` and can be safely removed."),"standby"===e.fetchPolicy&&!1!==globalThis.__DEV__&&i.invariant.warn(19)),this.queryManager.query(e)},e.prototype.mutate=function(e){return this.defaultOptions.mutate&&(e=(0,ey.mergeOptions)(this.defaultOptions.mutate,e)),this.queryManager.mutate(e)},e.prototype.subscribe=function(e){var t=this,r=this.queryManager.generateQueryId();return this.queryManager.startGraphQLSubscription(e).map(function(i){return(0,n.__assign)((0,n.__assign)({},i),{data:t.queryManager.maskOperation({document:e.query,data:i.data,fetchPolicy:e.fetchPolicy,id:r})})})},e.prototype.readQuery=function(e,t){return void 0===t&&(t=!1),this.cache.readQuery(e,t)},e.prototype.watchFragment=function(e){var t;return this.cache.watchFragment((0,n.__assign)((0,n.__assign)({},e),((t={})[Symbol.for("apollo.dataMasking")]=this.queryManager.dataMasking,t)))},e.prototype.readFragment=function(e,t){return void 0===t&&(t=!1),this.cache.readFragment(e,t)},e.prototype.writeQuery=function(e){var t=this.cache.writeQuery(e);return!1!==e.broadcast&&this.queryManager.broadcastQueries(),t},e.prototype.writeFragment=function(e){var t=this.cache.writeFragment(e);return!1!==e.broadcast&&this.queryManager.broadcastQueries(),t},e.prototype.__actionHookForDevTools=function(e){this.devToolsHookCb=e},e.prototype.__requestRaw=function(e){return a(this.link,e)},e.prototype.resetStore=function(){var e=this;return Promise.resolve().then(function(){return e.queryManager.clearStore({discardWatches:!1})}).then(function(){return Promise.all(e.resetStoreCallbacks.map(function(e){return e()}))}).then(function(){return e.reFetchObservableQueries()})},e.prototype.clearStore=function(){var e=this;return Promise.resolve().then(function(){return e.queryManager.clearStore({discardWatches:!0})}).then(function(){return Promise.all(e.clearStoreCallbacks.map(function(e){return e()}))})},e.prototype.onResetStore=function(e){var t=this;return this.resetStoreCallbacks.push(e),function(){t.resetStoreCallbacks=t.resetStoreCallbacks.filter(function(t){return t!==e})}},e.prototype.onClearStore=function(e){var t=this;return this.clearStoreCallbacks.push(e),function(){t.clearStoreCallbacks=t.clearStoreCallbacks.filter(function(t){return t!==e})}},e.prototype.reFetchObservableQueries=function(e){return this.queryManager.reFetchObservableQueries(e)},e.prototype.refetchQueries=function(e){var t=this.queryManager.refetchQueries(e),r=[],n=[];t.forEach(function(e,t){r.push(t),n.push(e)});var o=Promise.all(n);return o.queries=r,o.results=n,o.catch(function(e){!1!==globalThis.__DEV__&&i.invariant.debug(20,e)}),o},e.prototype.getObservableQueries=function(e){return void 0===e&&(e="active"),this.queryManager.getObservableQueries(e)},e.prototype.extract=function(e){return this.cache.extract(e)},e.prototype.restore=function(e){return this.cache.restore(e)},e.prototype.addResolvers=function(e){this.localState.addResolvers(e)},e.prototype.setResolvers=function(e){this.localState.setResolvers(e)},e.prototype.getResolvers=function(){return this.localState.getResolvers()},e.prototype.setLocalStateFragmentMatcher=function(e){this.localState.setFragmentMatcher(e)},e.prototype.setLink=function(e){this.link=this.queryManager.link=e},Object.defineProperty(e.prototype,"defaultContext",{get:function(){return this.queryManager.defaultContext}
14,enumerable:!1,configurable:!0}),e}();!1!==globalThis.__DEV__&&(eg.prototype.getMemoryInternals=ev.getApolloClientMemoryInternals),e.s(["ApolloClient",0,eg],395585);var eb=e.i(522479),e_=function(){function e(){this.assumeImmutableResults=!1,this.getFragmentDoc=(0,P.wrap)(h.getFragmentQueryDocument,{max:I.cacheSizes["cache.fragmentQueryDocuments"]||1e3,cache:D.WeakCache})}return e.prototype.lookupFragment=function(e){return null},e.prototype.batch=function(e){var t,r=this,n="string"==typeof e.optimistic?e.optimistic:!1===e.optimistic?null:void 0;return this.performTransaction(function(){return t=e.update(r)},n),t},e.prototype.recordOptimisticTransaction=function(e,t){this.performTransaction(e,t)},e.prototype.transformDocument=function(e){return e},e.prototype.transformForLink=function(e){return e},e.prototype.identify=function(e){},e.prototype.gc=function(){return[]},e.prototype.modify=function(e){return!1},e.prototype.readQuery=function(e,t){var r=this;return void 0===t&&(t=!!e.optimistic),!1!==globalThis.__DEV__&&(0,Q.warnRemovedOption)(e,"canonizeResults","cache.readQuery"),(0,Q.muteDeprecations)("canonizeResults",function(){return r.read((0,n.__assign)((0,n.__assign)({},e),{rootId:e.id||"ROOT_QUERY",optimistic:t}))})},e.prototype.watchFragment=function(e){var t,r=this,o=e.fragment,a=e.fragmentName,s=e.from,u=e.optimistic,c=(0,n.__rest)(e,["fragment","fragmentName","from","optimistic"]),l=this.getFragmentDoc(o,a),f=void 0===s||"string"==typeof s?s:this.identify(s),p=!!e[Symbol.for("apollo.dataMasking")];if(!1!==globalThis.__DEV__){var h=a||(0,y.getFragmentDefinition)(o).name.value;f||!1===globalThis.__DEV__||i.invariant.warn(1,h)}var d=(0,n.__assign)((0,n.__assign)({},c),{returnPartialData:!0,id:f,query:l,optimistic:void 0===u||u});return new b.Observable(function(i){return r.watch((0,n.__assign)((0,n.__assign)({},d),{immediate:!0,callback:function(s){var u=p?et(s.result,o,r,a):s.result;if(!(t&&(0,eb.equalByQuery)(l,{data:t.result},{data:u},e.variables))){var c={data:u,complete:!!s.complete};s.missing&&(c.missing=(0,q.mergeDeepArray)(s.missing.map(function(e){return e.missing}))),t=(0,n.__assign)((0,n.__assign)({},s),{result:u}),i.next(c)}}}))})},e.prototype.readFragment=function(e,t){var r=this;return void 0===t&&(t=!!e.optimistic),!1!==globalThis.__DEV__&&(0,Q.warnRemovedOption)(e,"canonizeResults","cache.readFragment"),(0,Q.muteDeprecations)("canonizeResults",function(){return r.read((0,n.__assign)((0,n.__assign)({},e),{query:r.getFragmentDoc(e.fragment,e.fragmentName),rootId:e.id,optimistic:t}))})},e.prototype.writeQuery=function(e){var t=e.id,r=e.data,i=(0,n.__rest)(e,["id","data"]);return this.write(Object.assign(i,{dataId:t||"ROOT_QUERY",result:r}))},e.prototype.writeFragment=function(e){var t=e.id,r=e.data,i=e.fragment,o=e.fragmentName,a=(0,n.__rest)(e,["id","data","fragment","fragmentName"]);return this.write(Object.assign(a,{query:this.getFragmentDoc(i,o),dataId:t,result:r}))},e.prototype.updateQuery=function(e,t){return!1!==globalThis.__DEV__&&(0,Q.warnRemovedOption)(e,"canonizeResults","cache.updateQuery"),this.batch({update:function(r){var i=(0,Q.muteDeprecations)("canonizeResults",function(){return r.readQuery(e)}),o=t(i);return null==o?i:(r.writeQuery((0,n.__assign)((0,n.__assign)({},e),{data:o})),o)}})},e.prototype.updateFragment=function(e,t){return!1!==globalThis.__DEV__&&(0,Q.warnRemovedOption)(e,"canonizeResults","cache.updateFragment"),this.batch({update:function(r){var i=(0,Q.muteDeprecations)("canonizeResults",function(){return r.readFragment(e)}),o=t(i);return null==o?i:(r.writeFragment((0,n.__assign)((0,n.__assign)({},e),{data:o})),o)}})},e}();!1!==globalThis.__DEV__&&(e_.prototype.getMemoryInternals=ev.getApolloCacheMemoryInternals),e.s(["ApolloCache",0,e_],764501);var ew=function(e){function t(r,n,i,o){var a,s=e.call(this,r)||this;if(s.message=r,s.path=n,s.query=i,s.variables=o,Array.isArray(s.path)){s.missing=s.message;for(var u=s.path.length-1;u>=0;--u)(a={})[s.path[u]]=s.missing,s.missing=a}else s.missing=s.path;return s.__proto__=t.prototype,s}return(0,n.__extends)(t,e),t}(Error);e.s(["MissingFieldError",0,ew],814540);var ek=e.i(927371),eS=Object.prototype.hasOwnProperty;function eO(e){return null==e}function eE(e,t){var r=e.__typename,n=e.id,i=e._id;if("string"==typeof r&&(t&&(t.keyObject=eO(n)?eO(i)?void 0:{_id:i}:{id:n}),eO(n)&&!eO(i)&&(n=i),!eO(n)))return"".concat(r,":").concat("number"==typeof n||"string"==typeof n?n:JSON.stringify(n))}var eR={dataIdFromObject:eE,addTypename:!0,resultCaching:!0,canonizeResults:!1};function eT(e){return(0,ek.compact)(eR,e)}function ex(e){var t=e.canonizeResults;return void 0===t?eR.canonizeResults:t}function eC(e,t){return(0,R.isReference)(t)?e.get(t.__ref,"__typename"):t&&t.__typename}var eD=/^[_a-z][_0-9a-z]*/i;function eP(e){var t=e.match(eD);return t?t[0]:e}function eI(e,t,r){return!!(0,T.isNonNullObject)(t)&&((0,v.isArray)(t)?t.every(function(t){return eI(e,t,r)}):e.selections.every(function(e){if((0,R.isField)(e)&&(0,f.shouldInclude)(e,r)){var n=(0,R.resultKeyNameFromField)(e);return eS.call(t,n)&&(!e.selectionSet||eI(e.selectionSet,t[n],r))}return!0}))}function eF(e){return(0,T.isNonNullObject)(e)&&!(0,R.isReference)(e)&&!(0,v.isArray)(e)}function eA(){return new q.DeepMerger}function eN(e,t){var r=(0,h.createFragmentMap)((0,y.getFragmentDefinitions)(e));return{fragmentMap:r,lookupFragment:function(e){var n=r[e];return!n&&t&&(n=t.lookup(e)),n||null}}}e.s(["TypeOrFieldNameRegExp",0,eD,"defaultDataIdFromObject",0,eE,"extractFragmentContext",0,eN,"fieldNameFromStoreName",0,eP,"getTypenameFromStoreObject",0,eC,"hasOwn",0,eS,"makeProcessedFieldsMerger",0,eA,"normalizeConfig",0,eT,"selectionSetMatchesResult",0,eI,"shouldCanonizeResults",0,ex,"storeValueIsStoreObject",0,eF],958673);var eM=Object.create(null),ej=function(){return eM},eq=Object.create(null),eQ=function(){function e(e,t){var r=this;this.policies=e,this.group=t,this.data=Object.create(null),this.rootIds=Object.create(null),this.refs=Object.create(null),this.getFieldValue=function(e,t){return(0,Z.maybeDeepFreeze)((0,R.isReference)(e)?r.get(e.__ref,t):e&&e[t])},this.canRead=function(e){return(0,R.isReference)(e)?r.has(e.__ref):"object"==typeof e},this.toReference=function(e,t){if("string"==typeof e)return(0,R.makeReference)(e);if((0,R.isReference)(e))return e;var n=r.policies.identify(e)[0];if(n){var i=(0,R.makeReference)(n);return t&&r.merge(n,e),i}}}return e.prototype.toObject=function(){return(0,n.__assign)({},this.data)},e.prototype.has=function(e){return void 0!==this.lookup(e,!0)},e.prototype.get=function(e,t){if(this.group.depend(e,t),eS.call(this.data,e)){var r=this.data[e];if(r&&eS.call(r,t))return r[t]}return"__typename"===t&&eS.call(this.policies.rootTypenamesById,e)?this.policies.rootTypenamesById[e]:this instanceof eB?this.parent.get(e,t):void 0},e.prototype.lookup=function(e,t){return(t&&this.group.depend(e,"__exists"),eS.call(this.data,e))?this.data[e]:this instanceof eB?this.parent.lookup(e,t):this.policies.rootTypenamesById[e]?Object.create(null):void 0},e.prototype.merge=function(e,t){var r,n=this;(0,R.isReference)(e)&&(e=e.__ref),(0,R.isReference)(t)&&(t=t.__ref);
14var o="string"==typeof e?this.lookup(r=e):e,a="string"==typeof t?this.lookup(r=t):t;if(a){(0,i.invariant)("string"==typeof r,2);var s=new q.DeepMerger(eW).merge(o,a);if(this.data[r]=s,s!==o&&(delete this.refs[r],this.group.caching)){var u=Object.create(null);o||(u.__exists=1),Object.keys(a).forEach(function(e){if(!o||o[e]!==s[e]){u[e]=1;var t=eP(e);t===e||n.policies.hasKeyArgs(s.__typename,t)||(u[t]=1),void 0!==s[e]||n instanceof eB||delete s[e]}}),u.__typename&&!(o&&o.__typename)&&this.policies.rootTypenamesById[r]===s.__typename&&delete u.__typename,Object.keys(u).forEach(function(e){return n.group.dirty(r,e)})}}},e.prototype.modify=function(e,t){var r=this,o=this.lookup(e);if(o){var a=Object.create(null),s=!1,u=!0,c={DELETE:eM,INVALIDATE:eq,isReference:R.isReference,toReference:this.toReference,canRead:this.canRead,readField:function(t,n){return r.policies.readField("string"==typeof t?{fieldName:t,from:n||(0,R.makeReference)(e)}:t,{store:r})}};if(Object.keys(o).forEach(function(l){var f=eP(l),p=o[l];if(void 0!==p){var h="function"==typeof t?t:t[l]||t[f];if(h){var d=h===ej?eM:h((0,Z.maybeDeepFreeze)(p),(0,n.__assign)((0,n.__assign)({},c),{fieldName:f,storeFieldName:l,storage:r.getStorage(e,l)}));if(d===eq)r.group.dirty(e,l);else if(d===eM&&(d=void 0),d!==p&&(a[l]=d,s=!0,p=d,!1!==globalThis.__DEV__)){var y=function(e){if(void 0===r.lookup(e.__ref))return!1!==globalThis.__DEV__&&i.invariant.warn(3,e),!0};if((0,R.isReference)(d))y(d);else if(Array.isArray(d))for(var v=!1,m=void 0,g=0,b=d;g<b.length;g++){var _=b[g];if((0,R.isReference)(_)){if(v=!0,y(_))break}else"object"==typeof _&&_&&r.policies.identify(_)[0]&&(m=_);if(v&&void 0!==m){!1!==globalThis.__DEV__&&i.invariant.warn(4,m);break}}}}void 0!==p&&(u=!1)}}),s)return this.merge(e,a),u&&(this instanceof eB?this.data[e]=void 0:delete this.data[e],this.group.dirty(e,"__exists")),!0}return!1},e.prototype.delete=function(e,t,r){var n,i=this.lookup(e);if(i){var o=this.getFieldValue(i,"__typename"),a=t&&r?this.policies.getStoreFieldName({typename:o,fieldName:t,args:r}):t;return this.modify(e,a?((n={})[a]=ej,n):ej)}return!1},e.prototype.evict=function(e,t){var r=!1;return e.id&&(eS.call(this.data,e.id)&&(r=this.delete(e.id,e.fieldName,e.args)),this instanceof eB&&this!==t&&(r=this.parent.evict(e,t)||r),(e.fieldName||r)&&this.group.dirty(e.id,e.fieldName||"__exists")),r},e.prototype.clear=function(){this.replace(null)},e.prototype.extract=function(){var e=this,t=this.toObject(),r=[];return this.getRootIdSet().forEach(function(t){eS.call(e.policies.rootTypenamesById,t)||r.push(t)}),r.length&&(t.__META={extraRootIds:r.sort()}),t},e.prototype.replace=function(e){var t=this;if(Object.keys(this.data).forEach(function(r){e&&eS.call(e,r)||t.delete(r)}),e){var r=e.__META,i=(0,n.__rest)(e,["__META"]);
14Object.keys(i).forEach(function(e){t.merge(e,i[e])}),r&&r.extraRootIds.forEach(this.retain,this)}},e.prototype.retain=function(e){return this.rootIds[e]=(this.rootIds[e]||0)+1},e.prototype.release=function(e){if(this.rootIds[e]>0){var t=--this.rootIds[e];return t||delete this.rootIds[e],t}return 0},e.prototype.getRootIdSet=function(e){return void 0===e&&(e=new Set),Object.keys(this.rootIds).forEach(e.add,e),this instanceof eB?this.parent.getRootIdSet(e):Object.keys(this.policies.rootTypenamesById).forEach(e.add,e),e},e.prototype.gc=function(){var e=this,t=this.getRootIdSet(),r=this.toObject();t.forEach(function(n){eS.call(r,n)&&(Object.keys(e.findChildRefIds(n)).forEach(t.add,t),delete r[n])});var n=Object.keys(r);if(n.length){for(var i=this;i instanceof eB;)i=i.parent;n.forEach(function(e){return i.delete(e)})}return n},e.prototype.findChildRefIds=function(e){if(!eS.call(this.refs,e)){var t=this.refs[e]=Object.create(null),r=this.data[e];if(!r)return t;var n=new Set([r]);n.forEach(function(e){(0,R.isReference)(e)&&(t[e.__ref]=!0),(0,T.isNonNullObject)(e)&&Object.keys(e).forEach(function(t){var r=e[t];(0,T.isNonNullObject)(r)&&n.add(r)})})}return this.refs[e]},e.prototype.makeCacheKey=function(){return this.group.keyMaker.lookupArray(arguments)},e}(),eV=function(){function e(e,t){void 0===t&&(t=null),this.caching=e,this.parent=t,this.d=null,this.resetCaching()}return e.prototype.resetCaching=function(){this.d=this.caching?(0,es.dep)():null,this.keyMaker=new x.Trie(C.canUseWeakMap)}
14,e.prototype.depend=function(e,t){if(this.d){this.d(t+"#"+e);var r=eP(t);r!==t&&this.d(r+"#"+e),this.parent&&this.parent.depend(e,t)}},e.prototype.dirty=function(e,t){this.d&&this.d.dirty(t+"#"+e,"__exists"===t?"forget":"setDirty")},e}();function eL(e,t){eU(e)&&e.group.depend(t,"__exists")}r=function(e){function t(t){var r=t.policies,n=t.resultCaching,i=t.seed,o=e.call(this,r,new eV(void 0===n||n))||this;return o.stump=new ez(o),o.storageTrie=new x.Trie(C.canUseWeakMap),i&&o.replace(i),o}return(0,n.__extends)(t,e),t.prototype.addLayer=function(e,t){return this.stump.addLayer(e,t)},t.prototype.removeLayer=function(){return this},t.prototype.getStorage=function(){return this.storageTrie.lookupArray(arguments)},t}(t=eQ||(eQ={})),t.Root=r;var eB=function(e){function t(t,r,n,i){var o=e.call(this,r.policies,i)||this;return o.id=t,o.parent=r,o.replay=n,o.group=i,n(o),o}return(0,n.__extends)(t,e),t.prototype.addLayer=function(e,r){return new t(e,this,r,this.group)},t.prototype.removeLayer=function(e){var t=this,r=this.parent.removeLayer(e);return e===this.id?(this.group.caching&&Object.keys(this.data).forEach(function(e){var n=t.data[e],i=r.lookup(e);i?n?n!==i&&Object.keys(n).forEach(function(r){(0,c.equal)(n[r],i[r])||t.group.dirty(e,r)}
14):(t.group.dirty(e,"__exists"),Object.keys(i).forEach(function(r){t.group.dirty(e,r)})):t.delete(e)}),r):r===this.parent?this:r.addLayer(this.id,this.replay)},t.prototype.toObject=function(){return(0,n.__assign)((0,n.__assign)({},this.parent.toObject()),this.data)},t.prototype.findChildRefIds=function(t){var r=this.parent.findChildRefIds(t);return eS.call(this.data,t)?(0,n.__assign)((0,n.__assign)({},r),e.prototype.findChildRefIds.call(this,t)):r},t.prototype.getStorage=function(){for(var e=this.parent;e.parent;)e=e.parent;return e.getStorage.apply(e,arguments)},t}(eQ),ez=function(e){function t(t){return e.call(this,"EntityStore.Stump",t,function(){},new eV(t.group.caching,t.group))||this}return(0,n.__extends)(t,e),t.prototype.removeLayer=function(){return this},t.prototype.merge=function(e,t){return this.parent.merge(e,t)},t}(eB);function eW(e,t,r){var n=e[r],i=t[r];return(0,c.equal)(n,i)?n:i}function eU(e){return!!(e instanceof eQ&&e.group.caching)}var eH=function(){function e(){this.known=new(C.canUseWeakSet?WeakSet:Set),this.pool=new x.Trie(C.canUseWeakMap),this.passes=new WeakMap,this.keysByJSON=new Map,this.empty=this.admit({})}return e.prototype.isKnown=function(e){return(0,T.isNonNullObject)(e)&&this.known.has(e)},e.prototype.pass=function(e){if((0,T.isNonNullObject)(e)){var t=(0,T.isNonNullObject)(e)?(0,v.isArray)(e)?e.slice(0):(0,n.__assign)({__proto__:Object.getPrototypeOf(e)},e):e;return this.passes.set(t,e),t}return e},e.prototype.admit=function(e){var t=this;if((0,T.isNonNullObject)(e)){var r=this.passes.get(e);if(r)return r;switch(Object.getPrototypeOf(e)){case Array.prototype:if(this.known.has(e))break;var n=e.map(this.admit,this),i=this.pool.lookupArray(n);return i.array||(this.known.add(i.array=n),!1!==globalThis.__DEV__&&Object.freeze(n)),i.array;case null:case Object.prototype:if(this.known.has(e))break;var o=Object.getPrototypeOf(e),a=[o],s=this.sortedKeys(e);a.push(s.json);var u=a.length;s.sorted.forEach(function(r){a.push(t.admit(e[r]))});var i=this.pool.lookupArray(a);if(!i.object){var c=i.object=Object.create(o);this.known.add(c),s.sorted.forEach(function(e,t){c[e]=a[u+t]}),!1!==globalThis.__DEV__&&Object.freeze(c)}return i.object}}return e},e.prototype.sortedKeys=function(e){var t=Object.keys(e),r=this.pool.lookupArray(t);if(!r.keys){t.sort();var n=JSON.stringify(t);(r.keys=this.keysByJSON.get(n))||this.keysByJSON.set(n,r.keys={sorted:t,json:n})}return r.keys},e}();function eK(e){return[e.selectionSet,e.objectOrReference,e.context,e.context.canonizeResults]}var eG=function(){function e(e){var t=this;this.knownResults=new(C.canUseWeakMap?WeakMap:Map),this.config=(0,ek.compact)(e,{addTypename:!1!==e.addTypename,canonizeResults:ex(e)}),this.canon=e.canon||new eH,this.executeSelectionSet=(0,P.wrap)(function(e){var r,i=e.context.canonizeResults,o=eK(e);o[3]=!i;var a=(r=t.executeSelectionSet).peek.apply(r,o);return a?i?(0,n.__assign)((0,n.__assign)({},a),{result:t.canon.admit(a.result)}):a:(eL(e.context.store,e.enclosingRef.__ref),t.execSelectionSetImpl(e))},{max:this.config.resultCacheMaxSize||I.cacheSizes["inMemoryCache.executeSelectionSet"]||5e4,keyArgs:eK,makeCacheKey:function(e,t,r,n){if(eU(r.store))return r.store.makeCacheKey(e,(0,R.isReference)(t)?t.__ref:t,r.varString,n)}}),this.executeSubSelectedArray=(0,P.wrap)(function(e){return eL(e.context.store,e.enclosingRef.__ref),t.execSubSelectedArrayImpl(e)},{max:this.config.resultCacheMaxSize||I.cacheSizes["inMemoryCache.executeSubSelectedArray"]||1e4,makeCacheKey:function(e){var t=e.field,r=e.array,n=e.context;if(eU(n.store))return n.store.makeCacheKey(t,r,n.varString)}})}return e.prototype.resetCanon=function(){this.canon=new eH},e.prototype.diffQueryAgainstStore=function(e){var t,r=e.store,i=e.query,o=e.rootId,a=e.variables,s=e.returnPartialData,u=e.canonizeResults,c=void 0===u?this.config.canonizeResults:u,l=this.config.cache.policies;a=(0,n.__assign)((0,n.__assign)({},(0,y.getDefaultValues)((0,y.getQueryDefinition)(i))),a);var f=(0,R.makeReference)(void 0===o?"ROOT_QUERY":o),p=this.executeSelectionSet({selectionSet:(0,y.getMainDefinition)(i).selectionSet,objectOrReference:f,enclosingRef:f,context:(0,n.__assign)({store:r,query:i,policies:l,variables:a,varString:(0,d.canonicalStringify)(a),canonizeResults:c},eN(i,this.config.fragments))});if(p.missing&&(t=[new ew(function(e){try{JSON.stringify(e,function(e,t){if("string"==typeof t)throw t;return t})}catch(e){return e}}(p.missing),p.missing,i,a)],!(void 0===s||s)))throw t[0];return{result:p.result,complete:!t,missing:t}},e.prototype.isFresh=function(e,t,r,n){if(eU(n.store)&&this.knownResults.get(e)===r){var i=this.executeSelectionSet.peek(r,t,n,this.canon.isKnown(e));if(i&&e===i.result)return!0}return!1},e.prototype.execSelectionSetImpl=function(e){var t,r=this,n=e.selectionSet,o=e.objectOrReference,a=e.enclosingRef,s=e.context;if((0,R.isReference)(o)&&!s.policies.rootTypenamesById[o.__ref]&&!s.store.has(o.__ref))return{result:this.canon.empty,missing:"Dangling reference to missing ".concat(o.__ref," object")};var u=s.variables,c=s.policies,p=s.store.getFieldValue(o,"__typename"),d=[],y=new q.DeepMerger;function m(e,r){var n;return e.missing&&(t=y.merge(t,((n={})[r]=e.missing,n))),e.result}this.config.addTypename&&"string"==typeof p&&!c.rootIdsByTypename[p]&&d.push({__typename:p});var g=new Set(n.selections);g.forEach(function(e){var n,b;if((0,f.shouldInclude)(e,u))if((0,R.isField)(e)){var _=c.readField({fieldName:e.n
14ame.value,field:e,variables:s.variables,from:o},s),w=(0,R.resultKeyNameFromField)(e);void 0===_?l.addTypenameToDocument.added(e)||(t=y.merge(t,((n={})[w]="Can't find field '".concat(e.name.value,"' on ").concat((0,R.isReference)(o)?o.__ref+" object":"object "+JSON.stringify(o,null,2)),n))):(0,v.isArray)(_)?_.length>0&&(_=m(r.executeSubSelectedArray({field:e,array:_,enclosingRef:a,context:s}),w)):e.selectionSet?null!=_&&(_=m(r.executeSelectionSet({selectionSet:e.selectionSet,objectOrReference:_,enclosingRef:(0,R.isReference)(_)?_:a,context:s}),w)):s.canonizeResults&&(_=r.canon.pass(_)),void 0!==_&&d.push(((b={})[w]=_,b))}else{var k=(0,h.getFragmentFromSelection)(e,s.lookupFragment);if(!k&&e.kind===H.Kind.FRAGMENT_SPREAD)throw(0,i.newInvariantError)(10,e.name.value);k&&c.fragmentMatches(k,p)&&k.selectionSet.selections.forEach(g.add,g)}});var b={result:(0,q.mergeDeepArray)(d),missing:t},_=s.canonizeResults?this.canon.admit(b):(0,Z.maybeDeepFreeze)(b);return _.result&&this.knownResults.set(_.result,n),_},e.prototype.execSubSelectedArrayImpl=function(e){var t,r=this,n=e.field,o=e.array,a=e.enclosingRef,s=e.context,u=new q.DeepMerger;function c(e,r){var n;return e.missing&&(t=u.merge(t,((n={})[r]=e.missing,n))),e.result}return n.selectionSet&&(o=o.filter(s.store.canRead)),o=o.map(function(e,t){return null===e?null:(0,v.isArray)(e)?c(r.executeSubSelectedArray({field:n,array:e,enclosingRef:a,context:s}),t):n.selectionSet?c(r.executeSelectionSet({selectionSet:n.selectionSet,objectOrReference:e,enclosingRef:(0,R.isReference)(e)?e:a,context:s}),t):(!1!==globalThis.__DEV__&&function(e,t,r){if(!t.selectionSet){var n=new Set([r]);n.forEach(function(r){(0,T.isNonNullObject)(r)&&((0,i.invariant)(!(0,R.isReference)(r),11,eC(e,r),t.name.value),Object.values(r).forEach(n.add,n))})}}(s.store,n,e),e)}),{result:s.canonizeResults?this.canon.admit(o):o,missing:t}},e}(),e$=e.i(943772),eJ=e.i(410125),eY=Object.create(null);function eX(e){var t=JSON.stringify(e);return eY[t]||(eY[t]=Object.create(null))}function eZ(e){var t=eX(e);return t.keyFieldsFn||(t.keyFieldsFn=function(t,r){var n=function(e,t){return r.readField(t,e)},o=r.keyObject=e1(e,function(e){var o=e2(r.storeObject,e,n);return void 0===o&&t!==r.storeObject&&eS.call(t,e[0])&&(o=e2(t,e,e4)),(0,i.invariant)(void 0!==o,5,e.join("."),t),o});return"".concat(r.typename,":").concat(JSON.stringify(o))})}function e0(e){var t=eX(e);return t.keyArgsFn||(t.keyArgsFn=function(t,r){var n=r.field,i=r.variables,o=r.fieldName,a=JSON.stringify(e1(e,function(e){var r=e[0],o=r.charAt(0);if("@"===o){if(n&&(0,v.isNonEmptyArray)(n.directives)){var a=r.slice(1),s=n.directives.find(function(e){return e.name.value===a}),u=s&&(0,R.argumentsObjectFromField)(s,i);return u&&e2(u,e.slice(1))}return}if("$"===o){var c=r.slice(1);if(i&&eS.call(i,c)){var l=e.slice(0);return l[0]=c,e2(i,l)}return}if(t)return e2(t,e)}));return(t||"{}"!==a)&&(o+=":"+a),o})}function e1(e,t){var r=new q.DeepMerger;return(function e(t){var r=eX(t);if(!r.paths){var n=r.paths=[],i=[];t.forEach(function(r,o){(0,v.isArray)(r)?(e(r).forEach(function(e){return n.push(i.concat(e))}),i.length=0):(i.push(r),(0,v.isArray)(t[o+1])||(n.push(i.slice(0)),i.length=0))})}return r.paths})(e).reduce(function(e,n){var i,o=t(n);if(void 0!==o){for(var a=n.length-1;a>=0;--a)(i={})[n[a]]=o,o=i;e=r.merge(e,o)}return e},Object.create(null))}function e4(e,t){return e[t]}function e2(e,t,r){return r=r||e4,function e(t){return(0,T.isNonNullObject)(t)?(0,v.isArray)(t)?t.map(e):e1(Object.keys(t).sort(),function(e){return e2(t,e)}):t}(t.reduce(function e(t,n){return(0,v.isArray)(t)?t.map(function(t){return e(t,n)}):t&&r(t,n)},e))}function e8(e){return void 0!==e.args?e.args:e.field?(0,R.argumentsObjectFromField)(e.field,e.variables):null}var e3=function(){},e9=function(e,t){return t.fieldName},e5=function(e,t,r){return(0,r.mergeObjects)(e,t)},e6=function(e,t){return t},e7=function(){function e(e){this.config=e,this.typePolicies=Object.create(null),this.toBeAdded=Object.create(null),this.supertypeMap=new Map,this.fuzzySubtypes=new Map,this.rootIdsByTypename=Object.create(null),this.rootTypenamesById=Object.create(null),this.usingPossibleTypes=!1,this.config=(0,n.__assign)({dataIdFromObject:eE},e),this.cache=this.config.cache,this.setRootTypename("Query"),this.setRootTypename("Mutation"),this.setRootTypename("Subscription"),e.possibleTypes&&this.addPossibleTypes(e.possibleTypes),e.typePolicies&&this.addTypePolicies(e.typePolicies)}return e.prototype.identify=function(e,t){var r,i,o=this,a=t&&(t.typename||(null==(r=t.storeObject)?void 0:r.__typename))||e.__typename;if(a===this.rootTypenamesById.ROOT_QUERY)return["ROOT_QUERY"];var s=t&&t.storeObject||e,u=(0,n.__assign)((0,n.__assign)({},t),{typename:a,storeObject:s,readField:t&&t.readField||function(){var e=tt(arguments,s);return o.readField(e,{store:o.cache.data,variables:e.variables})}}),c=a&&this.getTypePolicy(a),l=c&&c.keyFn||this.config.dataIdFromObject;return J.withValue(!0,function(){for(;l;){var t=l((0,n.__assign)((0,n.__assign)({},e),s),u);if((0,v.isArray)(t))l=eZ(t);else{i=t;break}}}),i=i?String(i):void 0,u.keyObject?[i,u.keyObject]:[i]},e.prototype.addTypePolicies=function(e){var t=this;Object.keys(e).forEach(function(r){var i=e[r],o=i.queryType,a=i.mutationType,s=i.subscriptionType,u=(0,n.__rest)(i,["queryType","mutationType","subscriptionType"]);o&&t.setRootTypename("Query",r),a&&t.setRootTypename("Mutation",r),s&&t.setRootTypename("Subscription",r),eS.call(t.toBeAdded,r)?t.toBeAdded[r].push(u):t.toBeAdded[r]=[u]})},e.prototype.updateTypePolicy=function(e,t,r){var n=this.getTypePolicy(e),i=t.keyFields,o=t.fields;function a(e,t){e.merge="function"==typeof t?t:!0===t?e5:!1===t?e6:e.merge}a(n,t.merge),n.keyFn=!1===i?e3:(0,v.isArray)(i)?eZ(i):"function"==typeof i?i:n.keyFn,o&&Object.keys(o).forEac
14h(function(t){var n=r[t];n&&(null==n?void 0:n.typename)===e||(n=r[t]={typename:e});var i=o[t];if("function"==typeof i)n.read=i;else{var s=i.keyArgs,u=i.read,c=i.merge;n.keyFn=!1===s?e9:(0,v.isArray)(s)?e0(s):"function"==typeof s?s:n.keyFn,"function"==typeof u&&(n.read=u),a(n,c)}n.read&&n.merge&&(n.keyFn=n.keyFn||e9)})},e.prototype.setRootTypename=function(e,t){void 0===t&&(t=e);var r="ROOT_"+e.toUpperCase(),n=this.rootTypenamesById[r];t!==n&&((0,i.invariant)(!n||n===e,6,e),n&&delete this.rootIdsByTypename[n],this.rootIdsByTypename[t]=r,this.rootTypenamesById[r]=t)},e.prototype.addPossibleTypes=function(e){var t=this;this.usingPossibleTypes=!0,Object.keys(e).forEach(function(r){t.getSupertypeSet(r,!0),e[r].forEach(function(e){t.getSupertypeSet(e,!0).add(r);var n=e.match(eD);n&&n[0]===e||t.fuzzySubtypes.set(e,new RegExp(e))})})},e.prototype.getTypePolicy=function(e){var t=this;if(!eS.call(this.typePolicies,e)){var r=this.typePolicies[e]=Object.create(null);r.fields=Object.create(null);var i=this.supertypeMap.get(e);!i&&this.fuzzySubtypes.size&&(i=this.getSupertypeSet(e,!0),this.fuzzySubtypes.forEach(function(r,n){if(r.test(e)){var o=t.supertypeMap.get(n);o&&o.forEach(function(e){return i.add(e)})}})),i&&i.size&&i.forEach(function(e){var i=t.getTypePolicy(e),o=i.fields;Object.assign(r,(0,n.__rest)(i,["fields"])),Object.assign(r.fields,o)})}var o=this.toBeAdded[e];return o&&o.length&&o.splice(0).forEach(function(r){t.updateTypePolicy(e,r,t.typePolicies[e].fields)}),this.typePolicies[e]},e.prototype.getFieldPolicy=function(e,t){if(e)return this.getTypePolicy(e).fields[t]},e.prototype.getSupertypeSet=function(e,t){var r=this.supertypeMap.get(e);return!r&&t&&this.supertypeMap.set(e,r=new Set),r},e.prototype.fragmentMatches=function(e,t,r,n){var o=this;if(!e.typeCondition)return!0;if(!t)return!1;var a=e.typeCondition.name.value;if(t===a)return!0;if(this.usingPossibleTypes&&this.supertypeMap.has(a))for(var s=this.getSupertypeSet(t,!0),u=[s],c=function(e){var t=o.getSupertypeSet(e,!1);t&&t.size&&0>u.indexOf(t)&&u.push(t)},l=!!(r&&this.fuzzySubtypes.size),f=!1,p=0;p<u.length;++p){var h=u[p];if(h.has(a))return s.has(a)||(f&&!1!==globalThis.__DEV__&&i.invariant.warn(7,t,a),s.add(a)),!0;h.forEach(c),l&&p===u.length-1&&eI(e.selectionSet,r,n)&&(l=!1,f=!0,this.fuzzySubtypes.forEach(function(e,r){var n=t.match(e);n&&n[0]===t&&c(r)}))}return!1},e.prototype.hasKeyArgs=function(e,t){var r=this.getFieldPolicy(e,t);return!!(r&&r.keyFn)},e.prototype.getStoreFieldName=function(e){var t,r=e.typename,n=e.fieldName,i=this.getFieldPolicy(r,n),o=i&&i.keyFn;if(o&&r)for(var a={typename:r,fieldName:n,field:e.field||null,variables:e.variables},s=e8(e);o;){var u=o(s,a);if((0,v.isArray)(u))o=e0(u);else{t=u||n;break}}return(void 0===t&&(t=e.field?(0,R.storeKeyNameFromField)(e.field,e.variables):(0,R.getStoreKeyName)(n,e8(e))),!1===t)?n:n===eP(t)?t:n+":"+t},e.prototype.readField=function(e,t){var r=e.from;if(r&&(e.field||e.fieldName)){if(void 0===e.typename){var n=t.store.getFieldValue(r,"__typename");n&&(e.typename=n)}var i=this.getStoreFieldName(e),o=eP(i),a=t.store.getFieldValue(r,i),s=this.getFieldPolicy(e.typename,o),u=s&&s.read;if(u){var c=te(this,r,e,t,t.store.getStorage((0,R.isReference)(r)?r.__ref:r,i));return eu.withValue(this.cache,u,[a,c])}return a}},e.prototype.getReadFunction=function(e,t){var r=this.getFieldPolicy(e,t);return r&&r.read},e.prototype.getMergeFunction=function(e,t,r){var n=this.getFieldPolicy(e,t),i=n&&n.merge;return!i&&r&&(i=(n=this.getTypePolicy(r))&&n.merge),i},e.prototype.runMergeFunction=function(e,t,r,n,i){var o=r.field,a=r.typename,s=r.merge;return s===e5?tr(n.store)(e,t):s===e6?t:(n.overwrite&&(e=void 0),s(e,t,te(this,void 0,{typename:a,fieldName:o.name.value,field:o,variables:n.variables},n,i||Object.create(null))))},e}();function te(e,t,r,n,i){var o=e.getStoreFieldName(r),a=eP(o),s=r.variables||n.variables,u=n.store,c=u.toReference,l=u.canRead;return{args:e8(r),field:r.field||null,fieldName:a,storeFieldName:o,variables:s,isReference:R.isReference,toReference:c,storage:i,cache:e.cache,canRead:l,readField:function(){return e.readField(tt(arguments,t,s),n)},mergeObjects:tr(n.store)}}function tt(e,t,r){var o,a=e[0],s=e[1],u=e.length;return"string"==typeof a?o={fieldName:a,from:u>1?s:t}:(o=(0,n.__assign)({},a),eS.call(o,"from")||(o.from=t)),!1!==globalThis.__DEV__&&void 0===o.from&&!1!==globalThis.__DEV__&&i.invariant.warn(8,(0,eJ.stringifyForDisplay)(Array.from(e))),void 0===o.variables&&(o.variables=r),o}function tr(e){return function(t,r){if((0,v.isArray)(t)||(0,v.isArray)(r))throw(0,i.newInvariantError)(9);if((0,T.isNonNullObject)(t)&&(0,T.isNonNullObject)(r)){var o=e.getFieldValue(t,"__typename"),a=e.getFieldValue(r,"__typename");if(o&&a&&o!==a)return r;if((0,R.isReference)(t)&&eF(r))return e.merge(t.__ref,r),t;if(eF(t)&&(0,R.isReference)(r))return e.merge(t,r.__ref),r;if(eF(t)&&eF(r))return(0,n.__assign)((0,n.__assign)({},t),r)}return r}}function tn(e,t,r){var i="".concat(t).concat(r),o=e.flavors.get(i);return o||e.flavors.set(i,o=e.clientOnly===t&&e.deferred===r?e:(0,n.__assign)((0,n.__assign)({},e),{clientOnly:t,deferred:r})),o}var ti=function(){function e(e,t,r){this.cache=e,this.reader=t,this.fragments=r}return e.prototype.writeToStore=function(e,t){var r=this,o=t.query,a=t.result,s=t.dataId,u=t.variables,l=t.overwrite,f=(0,y.getOperationDefinition)(o),p=eA();u=(0,n.__assign)((0,n.__assign)({},(0,y.getDefaultValues)(f)),u);var h=(0,n.__assign)((0,n.__assign)({store:e,written:Object.create(null),merge:function(e,t){return p.merge(e,t)}
14,variables:u,varString:(0,d.canonicalStringify)(u)},eN(o,this.fragments)),{overwrite:!!l,incomingById:new Map,clientOnly:!1,deferred:!1,flavors:new Map}),m=this.processSelectionSet({result:a||Object.create(null),dataId:s,selectionSet:f.selectionSet,mergeTree:{map:new Map},context:h});if(!(0,R.isReference)(m))throw(0,i.newInvariantError)(12,a);return h.incomingById.forEach(function(t,o){var a=t.storeObject,s=t.mergeTree,u=t.fieldNodeSet,l=(0,R.makeReference)(o);if(s&&s.map.size){var f=r.applyMerges(s,l,a,h);if((0,R.isReference)(f))return;a=f}if(!1!==globalThis.__DEV__&&!h.overwrite){var p=Object.create(null);u.forEach(function(e){e.selectionSet&&(p[e.name.value]=!0)});var d=function(e){var t=s&&s.map.get(e);return!!(t&&t.info&&t.info.merge)};Object.keys(a).forEach(function(e){!0!==p[eP(e)]||d(e)||function(e,t,r,o){var a=function(e){var t=o.getFieldValue(e,r);return"object"==typeof t&&t},s=a(e);if(s){var u=a(t);if(!(!u||(0,R.isReference)(s)||(0,c.equal)(s,u)||Object.keys(s).every(function(e){return void 0!==o.getFieldValue(u,e)}))){var l=o.getFieldValue(e,"__typename")||o.getFieldValue(t,"__typename"),f=eP(r),p="".concat(l,".").concat(f);if(!tc.has(p)){tc.add(p);var h=[];(0,v.isArray)(s)||(0,v.isArray)(u)||[s,u].forEach(function(e){var t=o.getFieldValue(e,"__typename");"string"!=typeof t||h.includes(t)||h.push(t)}),!1!==globalThis.__DEV__&&i.invariant.warn(15,f,l,h.length?"either ensure all objects of type "+h.join(" and ")+" have an ID or a custom merge function, or ":"",p,(0,n.__assign)({},s),(0,n.__assign)({},u))}}}}(l,a,e,h.store)})}e.merge(o,a)}),e.retain(m.__ref),m},e.prototype.processSelectionSet=function(e){var t=this,r=e.dataId,o=e.result,a=e.selectionSet,s=e.context,u=e.mergeTree,c=this.cache.policies,f=Object.create(null),p=r&&c.rootTypenamesById[r]||(0,R.getTypenameFromResult)(o,a,s.fragmentMap)||r&&s.store.get(r,"__typename");"string"==typeof p&&(f.__typename=p);var h=function(){var e=tt(arguments,f,s.variables);if((0,R.isReference)(e.from)){var t=s.incomingById.get(e.from.__ref);if(t){var r=c.readField((0,n.__assign)((0,n.__assign)({},e),{from:t.storeObject}),s);if(void 0!==r)return r}}return c.readField(e,s)},d=new Set;this.flattenFields(a,o,s,p).forEach(function(e,r){var n,a=o[(0,R.resultKeyNameFromField)(r)];if(d.add(r),void 0!==a){var s=c.getStoreFieldName({typename:p,fieldName:r.name.value,field:r,variables:e.variables}),y=ta(u,s),v=t.processFieldValue(a,r,r.selectionSet?tn(e,!1,!1):e,y),m=void 0;r.selectionSet&&((0,R.isReference)(v)||eF(v))&&(m=h("__typename",v));var g=c.getMergeFunction(p,r.name.value,m);g?y.info={field:r,typename:p,merge:g}:tu(u,s),f=e.merge(f,((n={})[s]=v,n))}else!1===globalThis.__DEV__||e.clientOnly||e.deferred||l.addTypenameToDocument.added(r)||c.getReadFunction(p,r.name.value)||!1===globalThis.__DEV__||i.invariant.error(13,(0,R.resultKeyNameFromField)(r),o)});try{var y=c.identify(o,{typename:p,selectionSet:a,fragmentMap:s.fragmentMap,storeObject:f,readField:h}),v=y[0],m=y[1];r=r||v,m&&(f=s.merge(f,m))}catch(e){if(!r)throw e}if("string"==typeof r){var g=(0,R.makeReference)(r),b=s.written[r]||(s.written[r]=[]);if(b.indexOf(a)>=0||(b.push(a),this.reader&&this.reader.isFresh(o,g,a,s)))return g;var _=s.incomingById.get(r);return _?(_.storeObject=s.merge(_.storeObject,f),_.mergeTree=function e(t,r){if(t===r||!r||ts(r))return t;if(!t||ts(t))return r;var i=t.info&&r.info?(0,n.__assign)((0,n.__assign)({},t.info),r.info):t.info||r.info,o=t.map.size&&r.map.size,a={info:i,map:o?new Map:t.map.size?t.map:r.map};if(o){var s=new Set(r.map.keys());t.map.forEach(function(t,n){a.map.set(n,e(t,r.map.get(n))),s.delete(n)}),s.forEach(function(n){a.map.set(n,e(r.map.get(n),t.map.get(n)))})}return a}(_.mergeTree,u),d.forEach(function(e){return _.fieldNodeSet.add(e)})):s.incomingById.set(r,{storeObject:f,mergeTree:ts(u)?void 0:u,fieldNodeSet:d}),g}return f},e.prototype.processFieldValue=function(e,t,r,n){var i=this;return t.selectionSet&&null!==e?(0,v.isArray)(e)?e.map(function(e,o){var a=i.processFieldValue(e,t,r,ta(n,o));return tu(n,o),a}):this.processSelectionSet({result:e,selectionSet:t.selectionSet,context:r,mergeTree:n}):!1!==globalThis.__DEV__?(0,e$.cloneDeep)(e):e},e.prototype.flattenFields=function(e,t,r,n){void 0===n&&(n=(0,R.getTypenameFromResult)(t,e,r.fragmentMap));var o=new Map,a=this.cache.policies,s=new x.Trie(!1);return!function e(u,c){var l=s.lookup(u,c.clientOnly,c.deferred);l.visited||(l.visited=!0,u.selections.forEach(function(s){if((0,f.shouldInclude)(s,r.variables)){var u=c.
14clientOnly,l=c.deferred;if(!(u&&l)&&(0,v.isNonEmptyArray)(s.directives)&&s.directives.forEach(function(e){var t=e.name.value;if("client"===t&&(u=!0),"defer"===t){var n=(0,R.argumentsObjectFromField)(e,r.variables);n&&!1===n.if||(l=!0)}}),(0,R.isField)(s)){var p=o.get(s);p&&(u=u&&p.clientOnly,l=l&&p.deferred),o.set(s,tn(r,u,l))}else{var d=(0,h.getFragmentFromSelection)(s,r.lookupFragment);if(!d&&s.kind===H.Kind.FRAGMENT_SPREAD)throw(0,i.newInvariantError)(14,s.name.value);d&&a.fragmentMatches(d,n,t,r.variables)&&e(d.selectionSet,tn(r,u,l))}}}))}(e,r),o},e.prototype.applyMerges=function(e,t,r,o,a){var s=this;if(e.map.size&&!(0,R.isReference)(r)){var u,c,l=!(0,v.isArray)(r)&&((0,R.isReference)(t)||eF(t))?t:void 0,f=r;l&&!a&&(a=[(0,R.isReference)(l)?l.__ref:l]);var p=function(e,t){return(0,v.isArray)(e)?"number"==typeof t?e[t]:void 0:o.store.getFieldValue(e,String(t))};e.map.forEach(function(e,t){var r=p(l,t),n=p(f,t);if(void 0!==n){a&&a.push(t);var u=s.applyMerges(e,r,n,o,a);u!==n&&(c=c||new Map).set(t,u),a&&(0,i.invariant)(a.pop()===t)}}),c&&(r=(0,v.isArray)(f)?f.slice(0):(0,n.__assign)({},f),c.forEach(function(e,t){r[t]=e}))}return e.info?this.cache.policies.runMergeFunction(t,r,e.info,o,a&&(u=o.store).getStorage.apply(u,a)):r},e}(),to=[];function ta(e,t){var r=e.map;return r.has(t)||r.set(t,to.pop()||{map:new Map}),r.get(t)}function ts(e){return!e||!(e.info||e.map.size)}function tu(e,t){var r=e.map,n=r.get(t);n&&ts(n)&&(to.push(n),r.delete(t))}var tc=new Set,tl=function(e){function t(t){void 0===t&&(t={});var r=e.call(this)||this;return r.watches=new Set,r.addTypenameTransform=new A(l.addTypenameToDocument),r.assumeImmutableResults=!0,r.makeVar=eh,r.txCount=0,!1!==globalThis.__DEV__&&((0,Q.warnRemovedOption)(t,"addTypename","InMemoryCache","Please remove the `addTypename` option when initializing `InMemoryCache`."),(0,Q.warnRemovedOption)(t,"canonizeResults","InMemoryCache","Please remove the `canonizeResults` option when initializing `InMemoryCache`.")),r.config=eT(t),r.addTypename=!!r.config.addTypename,r.policies=new e7({cache:r,dataIdFromObject:r.config.dataIdFromObject,possibleTypes:r.config.possibleTypes,typePolicies:r.config.typePolicies}),r.init(),r}return(0,n.__extends)(t,e),t.prototype.init=function(){var e=this.data=new eQ.Root({policies:this.policies,resultCaching:this.config.resultCaching});this.optimisticData=e.stump,this.resetResultCache()},t.prototype.resetResultCache=function(e){var t=this,r=this.storeReader,n=this.config.fragments;this.addTypenameTransform.resetCache(),null==n||n.resetCaches(),this.storeWriter=new ti(this,this.storeReader=new eG({cache:this,addTypename:this.addTypename,resultCacheMaxSize:this.config.resultCacheMaxSize,canonizeResults:ex(this.config),canon:e?void 0:r&&r.canon,fragments:n}),n),this.maybeBroadcastWatch=(0,P.wrap)(function(e,r){return t.broadcastWatch(e,r)},{max:this.config.resultCacheMaxSize||I.cacheSizes["inMemoryCache.maybeBroadcastWatch"]||5e3,makeCacheKey:function(e){var r=e.optimistic?t.optimisticData:t.data;if(eU(r)){var n=e.optimistic,i=e.id,o=e.variables;return r.makeCacheKey(e.query,e.callback,(0,d.canonicalStringify)({optimistic:n,id:i,variables:o}))}}}),new Set([this.data.group,this.optimisticData.group]).forEach(function(e){return e.resetCaching()})},t.prototype.restore=function(e){return this.init(),e&&this.data.replace(e),this},t.prototype.extract=function(e){return void 0===e&&(e=!1),(e?this.optimisticData:this.data).extract()},t.prototype.read=function(e){!1!==globalThis.__DEV__&&(0,Q.warnRemovedOption)(e,"canonizeResults","cache.read");var t=e.returnPartialData;try{return this.storeReader.diffQueryAgainstStore((0,n.__assign)((0,n.__assign)({},e),{store:e.optimistic?this.optimisticData:this.data,config:this.config,returnPartialData:void 0!==t&&t})).result||null}catch(e){if(e instanceof ew)return null;throw e}},t.prototype.write=function(e){try{return++this.txCount,this.storeWriter.writeToStore(this.data,e)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},t.prototype.modify=function(e){if(eS.call(e,"id")&&!e.id)return!1;var t=e.optimistic?this.optimisticData:this.data;try{return++this.txCount,t.modify(e.id||"ROOT_QUERY",e.fields)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},t.prototype.diff=function(e){return!1!==globalThis.__DEV__&&(0,Q.warnRemovedOption)(e,"canonizeResults","cache.diff"),this.storeReader.diffQueryAgainstStore((0,n.__assign)((0,n.__assign)({},e),{store:e.optimistic?this.optimisticData:this.data,rootId:e.id||"ROOT_QUERY",config:this.config}))},t.prototype.watch=function(e){var t=this;return this.watches.size||ep(this),this.watches.add(e),e.immediate&&this.maybeBroadcastWatch(e),function(){t.watches.delete(e)&&!t.watches.size&&ef(t),t.maybeBroadcastWatch.forget(e)}},t.prototype.gc=function(e){!1!==globalThis.__DEV__&&(0,Q.warnRemovedOption)(e||{},"resetResultIdentities","cache.gc","First ensure all usages of `canonizeResults` are removed, then remove this option."),d.canonicalStringify.reset(),W.print.reset();var t=this.optimisticData.gc();return e&&!this.txCount&&(e.resetResultCache?this.resetResultCache(e.resetResultIdentities):e.resetResultIdentities&&this.storeReader.resetCanon()),t},t.prototype.retain=function(e,t){return(t?this.optimisticData:this.data).retain(e)},t.prototype.release=function(e,t){return(t?this.optimisticData:this.data).release(e)},t.prototype.identify=function(e){if((0,R.isReference)(e))return e.__ref;try{return this.policies.identify(e)[0]}catch(e){!1!==globalThis.__DEV__&&i.invariant.warn(e)}},t.prototype.evict=function(e){if(!e.id){if(eS.call(e,"id"))return!1;e=(0,n.__assign)((0,n.__assign)({},e),{id:"ROOT_QUERY"})}try{return++this.txCount,this.optimisticData.evict(e,this.data)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},t.prototype.reset=function(e){var t=this;return this.init(),d.canonicalStringify.reset(),e&&e.discardWatches?(this.watches.forEac
14h(function(e){return t.maybeBroadcastWatch.forget(e)}),this.watches.clear(),ef(this)):this.broadcastWatches(),Promise.resolve()},t.prototype.removeOptimistic=function(e){var t=this.optimisticData.removeLayer(e);t!==this.optimisticData&&(this.optimisticData=t,this.broadcastWatches())},t.prototype.batch=function(e){var t,r=this,i=e.update,o=e.optimistic,a=void 0===o||o,s=e.removeOptimistic,u=e.onWatchUpdated,c=function(e){var n=r.data,o=r.optimisticData;++r.txCount,e&&(r.data=r.optimisticData=e);try{return t=i(r)}finally{--r.txCount,r.data=n,r.optimisticData=o}},l=new Set;return u&&!this.txCount&&this.broadcastWatches((0,n.__assign)((0,n.__assign)({},e),{onWatchUpdated:function(e){return l.add(e),!1}})),"string"==typeof a?this.optimisticData=this.optimisticData.addLayer(a,c):!1===a?c(this.data):c(),"string"==typeof s&&(this.optimisticData=this.optimisticData.removeLayer(s)),u&&l.size?(this.broadcastWatches((0,n.__assign)((0,n.__assign)({},e),{onWatchUpdated:function(e,t){var r=u.call(this,e,t);return!1!==r&&l.delete(e),r}})),l.size&&l.forEach(function(e){return r.maybeBroadcastWatch.dirty(e)})):this.broadcastWatches(e),t},t.prototype.performTransaction=function(e,t){return this.batch({update:e,optimistic:t||null!==t})},t.prototype.transformDocument=function(e){return this.addTypenameToDocument(this.addFragmentsToDocument(e))},t.prototype.fragmentMatches=function(e,t){return this.policies.fragmentMatches(e,t)},t.prototype.lookupFragment=function(e){var t;return(null==(t=this.config.fragments)?void 0:t.lookup(e))||null},t.prototype.broadcastWatches=function(e){var t=this;this.txCount||this.watches.forEach(function(r){return t.maybeBroadcastWatch(r,e)})},t.prototype.addFragmentsToDocument=function(e){var t=this.config.fragments;return t?t.transform(e):e},t.prototype.addTypenameToDocument=function(e){return this.addTypename?this.addTypenameTransform.transformDocument(e):e},t.prototype.broadcastWatch=function(e,t){var r=this,n=e.lastDiff,i=(0,Q.muteDeprecations)("canonizeResults",function(){return r.diff(e)});(!t||(e.optimistic&&"string"==typeof t.optimistic&&(i.fromOptimisticTransaction=!0),!t.onWatchUpdated||!1!==t.onWatchUpdated.call(this,e,i,n)))&&(n&&(0,c.equal)(n.result,i.result)||e.callback(e.lastDiff=i,n))},t}(e_);!1!==globalThis.__DEV__&&(tl.prototype.getMemoryInternals=ev.getInMemoryCacheMemoryInternals),e.s(["InMemoryCache",0,tl],484936);var tf=o.ApolloLink.from;e.s(["from",0,tf],541866);var tp=o.ApolloLink.split;e.s(["split",0,tp],343759)},325793,e=>{"use strict";e.s([],838009),e.i(838009);var t=e.i(330468);e.i(868681),e.s([],78234),e.i(78234);var r=e.i(738070),n=e.i(5578),i=e.i(811818),o=e.i(521805),a=function(e){var t=(0,o.getApolloContext)();return i.createElement(t.Consumer,null,function(t){return(0,n.invariant)(t&&t.client,68),e.children(t.client)})};e.s([],585584),e.i(585584);var s=e.i(98926),u=e.i(877341),c=e.i(776204),l=e.i(432171),f=e.i(773412),p=e.i(632854);function h(e){return(0,p.useSyncExternalStore)(i.useCallback(function(t){return e.onNextChange(function r(){t(),e.onNextChange(r)})},[e]),e,e)}e.s(["useReactiveVar",0,h],704466),e.i(704466);var d=e.i(189280),y=e.i(113959),v=e.i(628775),m=e.i(250026),g=e.i(97046),b=e.i(524669),_=e.i(369547);function w(e){return(0,g.wrapHook)("useFragment",k,(0,s.useApolloClient)(e.client))(e)}function k(e){!1!==globalThis.__DEV__&&(0,m.useWarnRemovedOption)(e,"canonizeResults","useFragment");var t=(0,s.useApolloClient)(e.client),r=t.cache,n=e.from,o=(0,d.__rest)(e,["from"]),a=i.useMemo(function(){return"string"==typeof n?n:null===n?null:r.identify(n)},[r,n]),u=(0,v.useDeepMemo)(function(){return(0,d.__assign)((0,d.__assign)({},o),{from:a})},[o,a]),c=i.useMemo(function(){var e=u.fragment,r=u.fragmentName,n=u.from,i=u.optimistic,o=void 0===i||i;if(null===n)return{result:S({result:{},complete:!1})};var a=t.cache,s=(0,_.muteDeprecations)("canonizeResults",function(){return a.diff((0,d.__assign)((0,d.__assign)({},u),{returnPartialData:!0,id:n,query:a.getFragmentDoc(e,r),optimistic:o}))});return{result:S((0,d.__assign)((0,d.__assign)({},s),{result:t.queryManager.maskFragment({fragment:e,fragmentName:r,data:s.result})}))}},[t,u]),l=i.useCallback(function(){return c.result},[c]);return(0,p.useSyncExternalStore)(i.useCallback(function(e){var r=0,n=(0,_.muteDeprecations)("canonizeResults",function(){return null===u.from?null:t.watchFragment(u).subscribe({next:function(t){(0,b.default)(t,c.result)||(c.result=t,clearTimeout(r),r=setTimeout(e))}})});return function(){null==n||n.unsubscribe(),clearTimeout(r)}},[t,u,c]),l,l)}function S(e){var t={data:e.result,complete:!!e.complete};return e.missing&&(t.missing=(0,y.mergeDeepArray)(e.missing.map(function(e){return e.missing}))),t}e.s(["useFragment",0,w],355455),e.i(355455);var O=e.i(533879),E=e.i(76810),R=e.i(242419),T=e.i(660601);function x(e){var t=Promise.resolve(e);return t.status="fulfilled",t.value=e,t}function C(e){return"status"in e||(e.status="pending",e.then(function(t){"pending"===e.status&&(e.status="fulfilled",e.value=t)},function(t){"pending"===e.status&&(e.status="rejected",e.reason=t)})),e}var D=i.use||function(e){var t=C(e);
14switch(t.status){case"pending":throw t;case"rejected":throw t.reason;case"fulfilled":return t.value}},P=e.i(783015),I=e.i(223289),F=Symbol.for("apollo.internal.queryRef"),A=Symbol.for("apollo.internal.refPromise");function N(e){var t,r=((t={toPromise:function(){return j(r).then(function(){return r})}})[F]=e,t[A]=e.promise,t);return r}function M(e){(0,n.invariant)(!e||F in e,92)}function j(e){var t=e[F];return"fulfilled"===t.promise.status?t.promise:e[A]}var q=["canonizeResults","context","errorPolicy","fetchPolicy","refetchWritePolicy","returnPartialData"],Q=function(){function e(e,t){var r=this;this.key={},this.listeners=new Set,this.references=0,this.softReferences=0,this.handleNext=this.handleNext.bind(this),this.handleError=this.handleError.bind(this),this.dispose=this.dispose.bind(this),this.observable=e,t.onDispose&&(this.onDispose=t.onDispose),this.setResult(),this.subscribeToQuery();var n=function(){var e;r.references||(r.autoDisposeTimeoutId=setTimeout(r.dispose,null!=(e=t.autoDisposeTimeoutMs)?e:3e4))};this.promise.then(n,n)}return Object.defineProperty(e.prototype,"disposed",{get:function(){return this.subscription.closed},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"watchQueryOptions",{get:function(){return this.observable.options},enumerable:!1,configurable:!0}),e.prototype.reinitialize=function(){var e=this.observable,t=this.watchQueryOptions.fetchPolicy,r="no-cache"===t||"standby"===t;try{if(r?e.silentSetOptions({fetchPolicy:"standby"}):((0,_.muteDeprecations)("resetLastResults",function(){return e.resetLastResults()}),e.silentSetOptions({fetchPolicy:"cache-first"})),this.subscribeToQuery(),r)return;e.resetDiff(),this.setResult()}finally{e.silentSetOptions({fetchPolicy:t})}},e.prototype.retain=function(){var e=this;this.references++,clearTimeout(this.autoDisposeTimeoutId);var t=!1;return function(){t||(t=!0,e.references--,setTimeout(function(){e.references||e.dispose()}))}},e.prototype.softRetain=function(){var e=this;this.softReferences++;var t=!1;return function(){t||(t=!0,e.softReferences--,setTimeout(function(){e.softReferences||e.references||e.dispose()}))}},e.prototype.didChangeOptions=function(e){var t=this;return q.some(function(r){return r in e&&!(0,b.equal)(t.watchQueryOptions[r],e[r])})},e.prototype.applyOptions=function(e){var t=this.watchQueryOptions,r=t.fetchPolicy,n=t.canonizeResults;return"standby"===r&&r!==e.fetchPolicy?this.initiateFetch(this.observable.reobserve(e)):(this.observable.silentSetOptions(e),n!==e.canonizeResults&&(this.result=(0,d.__assign)((0,d.__assign)({},this.result),this.observable.getCurrentResult()),this.promise=x(this.result))),this.promise},e.prototype.listen=function(e){var t=this;return this.listeners.add(e),function(){t.listeners.delete(e)}},e.prototype.refetch=function(e){return this.initiateFetch(this.observable.refetch(e))},e.prototype.fetchMore=function(e){return this.initiateFetch(this.observable.fetchMore(e))},e.prototype.dispose=function(){this.subscription.unsubscribe(),this.onDispose()},e.prototype.onDispose=function(){},e.prototype.handleNext=function(e){var t;if("pending"===this.promise.status)void 0===e.data&&(e.data=this.result.data),this.result=e,null==(t=this.resolve)||t.call(this,e);else{if(e.data===this.result.data&&e.networkStatus===this.result.networkStatus)return;void 0===e.data&&(e.data=this.result.data),this.result=e,this.promise=x(e),this.deliver(this.promise)}},e.prototype.handleError=function(e){var t,r;(this.subscription.unsubscribe(),this.subscription=this.observable.resubscribeAfterError(this.handleNext,this.handleError),"pending"===this.promise.status)?null==(t=this.reject)||t.call(this,e):(this.promise=((r=Promise.reject(e)).catch(function(){}),r.status="rejected",r.reason=e,r),this.deliver(this.promise))},e.prototype.deliver=function(e){this.listeners.forEach(function(t){return t(e)})},e.prototype.initiateFetch=function(e){var t=this;return this.promise=this.createPendingPromise(),this.promise.catch(function(){}),e.then(function(){setTimeout(function(){var e;"pending"===t.promise.status&&(t.result=t.observable.getCurrentResult(),null==(e=t.resolve)||e.call(t,t.result))})}).catch(function(e){var r;return null==(r=t.reject)?void 0:r.call(t,e)}),e},e.prototype.subscribeToQuery=function(){var e=this;this.subscription=this.observable.filter(function(t){return!(0,b.equal)(t.data,{})&&!(0,b.equal)(t,e.result)}).subscribe(this.handleNext,this.handleError)},e.prototype.setResult=function(){var e=this.observable.getCurrentResult(!1);(0,b.equal)(e,this.result)||(this.result=e,this.promise=e.data&&(!e.partial||this.watchQueryOptions.returnPartialData)?x(e):this.createPendingPromise())},e.prototype.createPendingPromise=function(){var e=this;return C(new Promise(function(t,r){e.resolve=t,e.reject=r}))},e}(),V=function(){function e(e,t,r){var n=this;this.key={},this.listeners=new Set,this.references=0,this.dispose=this.dispose.bind(this),this.handleNext=this.handleNext.bind(this),this.handleError=this.handleError.bind(this),this.observable=e.watchFragment(t),r.onDispose&&(this.onDispose=r.onDispose);var i=this.getDiff(e,t),o=function(){var e;n.references||(n.autoDisposeTimeoutId=setTimeout(n.dispose,null!=(e=r.autoDisposeTimeoutMs)?e:3e4))};this.promise=i.complete?x(i.result):this.createPendingPromise(),this.subscribeToFragment(),this.promise.then(o,o)}return e.prototype.listen=function(e){var t=this;return this.listeners.add(e),function(){t.listeners.delete(e)}},e.prototype.retain=function(){var e=this;this.references++,clearTimeout(this.autoDisposeTimeoutId);var t=!1;return function(){t||(t=!0,e.references--,setTimeout(function(){e.references||e.dispose()}))}},e.prototype.dispose=function(){this.subscription.unsubscribe(),this.onDispose()},e.prototype.onDispose=function(){},e.prototype.subscribeToFragment=function(){this.subscription=this.observable.subscribe(this.handleNext.bind(this),this.handleError.bind(this))},e.prototype.handleNext=function(e){var t;
14switch(this.promise.status){case"pending":if(e.complete)return null==(t=this.resolve)?void 0:t.call(this,e.data);this.deliver(this.promise);break;case"fulfilled":if((0,b.equal)(this.promise.value,e.data))return;this.promise=e.complete?x(e.data):this.createPendingPromise(),this.deliver(this.promise)}},e.prototype.handleError=function(e){var t;null==(t=this.reject)||t.call(this,e)},e.prototype.deliver=function(e){this.listeners.forEach(function(t){return t(e)})},e.prototype.createPendingPromise=function(){var e=this;return C(new Promise(function(t,r){e.resolve=t,e.reject=r}))},e.prototype.getDiff=function(e,t){var r=e.cache,n=t.from,i=t.fragment,o=t.fragmentName,a=r.diff((0,d.__assign)((0,d.__assign)({},t),{query:r.getFragmentDoc(i,o),returnPartialData:!0,id:n,optimistic:!0}));return(0,d.__assign)((0,d.__assign)({},a),{result:e.queryManager.maskFragment({fragment:i,fragmentName:o,data:a.result})})},e}(),L=function(){function e(e){void 0===e&&(e=Object.create(null)),this.queryRefs=new P.Trie(I.canUseWeakMap),this.fragmentRefs=new P.Trie(I.canUseWeakMap),this.options=e}return e.prototype.getQueryRef=function(e,t){var r=this.queryRefs.lookupArray(e);return r.current||(r.current=new Q(t(),{autoDisposeTimeoutMs:this.options.autoDisposeTimeoutMs,onDispose:function(){delete r.current}})),r.current},e.prototype.getFragmentRef=function(e,t,r){var n=this.fragmentRefs.lookupArray(e);return n.current||(n.current=new V(t,r,{autoDisposeTimeoutMs:this.options.autoDisposeTimeoutMs,onDispose:function(){delete n.current}})),n.current},e.prototype.add=function(e,t){this.queryRefs.lookupArray(e).current=t},e}(),B=Symbol.for("apollo.suspenseCache");function z(e){var t;return e[B]||(e[B]=new L(null==(t=e.defaultOptions.react)?void 0:t.suspense)),e[B]}var W=e.i(228117),U=Symbol.for("apollo.skipToken");function H(e,t){return void 0===t&&(t=Object.create(null)),(0,g.wrapHook)("useSuspenseQuery",K,(0,s.useApolloClient)("object"==typeof t?t.client:void 0))(e,t)}function K(e,t){!1!==globalThis.__DEV__&&(0,m.useWarnRemovedOption)("symbol"==typeof t?{}:t,"canonizeResults","useSuspenseQuery");var r=(0,s.useApolloClient)(t.client),n=z(r),o=$({client:r,query:e,options:t}),a=o.fetchPolicy,u=o.variables,c=t.queryKey,l=(0,d.__spreadArray)([e,(0,W.canonicalStringify)(u)],[].concat(void 0===c?[]:c),!0),f=(0,_.muteDeprecations)("canonizeResults",function(){return n.getQueryRef(l,function(){return r.watchQuery(o)})}),p=i.useState([f.key,f.promise]),h=p[0],y=p[1];h[0]!==f.key&&(h[0]=f.key,h[1]=f.promise);var v=h[1];f.didChangeOptions(o)&&(h[1]=v=f.applyOptions(o)),i.useEffect(function(){var e=f.retain(),t=f.listen(function(e){y([f.key,e])});return function(){t(),e()}},[f]);var g=i.useMemo(function(){var e=G(f.result);return{loading:!1,data:f.result.data,networkStatus:e?E.NetworkStatus.error:E.NetworkStatus.ready,error:e}},[f.result]),b="standby"===a?g:D(v),w=i.useCallback(function(e){var t=f.fetchMore(e);return y([f.key,f.promise]),t},[f]),k=i.useCallback(function(e){var t=f.refetch(e);return y([f.key,f.promise]),t},[f]),S=f.observable.subscribeToMore;return i.useMemo(function(){return{client:r,data:b.data,error:G(b),networkStatus:b.networkStatus,fetchMore:w,refetch:k,subscribeToMore:S}},[r,w,k,b,S])}function G(e){return(0,R.isNonEmptyArray)(e.errors)?new O.ApolloError({graphQLErrors:e.errors}):e.error}function $(e){var t=e.client,r=e.query,i=e.options;return(0,v.useDeepMemo)(function(){if(i===U)return{query:r,fetchPolicy:"standby"};var e,o,a,s,u,c,l,f=i.fetchPolicy||(null==(l=t.defaultOptions.watchQuery)?void 0:l.fetchPolicy)||"cache-first",p=(0,d.__assign)((0,d.__assign)({},i),{fetchPolicy:f,query:r,notifyOnNetworkStatusChange:!1,nextFetchPolicy:void 0});return!1!==globalThis.__DEV__&&(s=p.query,u=p.fetchPolicy,c=p.returnPartialData,(0,T.verifyDocumentType)(s,T.DocumentType.Query),void 0===(e=u)&&(e="cache-first"),(0,n.invariant)(["cache-first","network-only","no-cache","cache-and-network"].includes(e),89,e),o=u,a=c,"no-cache"===o&&a&&!1!==globalThis.__DEV__&&n.invariant.warn(90)),i.skip&&(p.fetchPolicy="standby"),p},[t,i,r])}function J(e,t){return void 0===t&&(t=Object.create(null)),(0,g.wrapHook)("useBackgroun
14dQuery",Y,(0,s.useApolloClient)("object"==typeof t?t.client:void 0))(e,t)}function Y(e,t){!1!==globalThis.__DEV__&&(0,m.useWarnRemovedOption)("symbol"==typeof t?{}:t,"canonizeResults","useBackgroundQuery");var r=(0,s.useApolloClient)(t.client),n=z(r),o=$({client:r,query:e,options:t}),a=o.fetchPolicy,u=o.variables,c=t.queryKey,l=i.useRef("standby"!==a);l.current||(l.current="standby"!==a);var f=(0,d.__spreadArray)([e,(0,W.canonicalStringify)(u)],[].concat(void 0===c?[]:c),!0),p=(0,_.muteDeprecations)("canonizeResults",function(){return n.getQueryRef(f,function(){return r.watchQuery(o)})}),h=i.useState(N(p)),y=h[0],v=h[1];if(y[F]!==p&&v(N(p)),p.didChangeOptions(o)){var g=p.applyOptions(o);y[A]=g}i.useEffect(function(){var e=setTimeout(function(){p.disposed&&n.add(f,p)});return function(){return clearTimeout(e)}});var b=i.useCallback(function(e){var t=p.fetchMore(e);return v(N(p)),t},[p]),w=i.useCallback(function(e){var t=p.refetch(e);return v(N(p)),t},[p]);return i.useEffect(function(){return p.softRetain()},[p]),[l.current?y:void 0,{fetchMore:b,refetch:w,subscribeToMore:p.observable.subscribeToMore}]}var X=[];function Z(e){return(0,g.wrapHook)("useSuspenseFragment",ee,(0,s.useApolloClient)("object"==typeof e?e.client:void 0))(e)}function ee(e){var t=(0,s.useApolloClient)(e.client),r=e.from,n=e.variables,o=t.cache,a=i.useMemo(function(){return"string"==typeof r?r:null===r?null:o.identify(r)},[o,r]),u=null===a?null:z(t).getFragmentRef([a,e.fragment,(0,W.canonicalStringify)(n)],t,(0,d.__assign)((0,d.__assign)({},e),{variables:n,from:a})),c=i.useState(null===u?X:[u.key,u.promise]),l=c[0],f=c[1];return(i.useEffect(function(){if(null!==u){var e=u.retain(),t=u.listen(function(e){f([u.key,e])});return function(){e(),t()}}},[u]),null===u)?{data:null}:(l[0]!==u.key&&(l[0]=u.key,l[1]=u.promise),{data:D(l[1])})}var et=e.i(706333);function er(e,t){void 0===t&&(t=Object.create(null)),!1!==globalThis.__DEV__&&(0,m.useWarnRemovedOption)(t,"canonizeResults","useLoadableQuery");var r=(0,s.useApolloClient)(t.client),o=z(r),a=$({client:r,query:e,options:t}),u=t.queryKey,c=void 0===u?[]:u,l=i.useState(null),f=l[0],p=l[1];M(f);var h=f&&f[F];if(f&&(null==h?void 0:h.didChangeOptions(a))){var y=h.applyOptions(a);f[A]=y}var v=(0,et.useRenderGuard)(),g=i.useCallback(function(e){if(!h)throw Error("The query has not been loaded. Please load the query.");var t=h.fetchMore(e);return p(N(h)),t},[h]),b=i.useCallback(function(e){if(!h)throw Error("The query has not been loaded. Please load the query.");var t=h.refetch(e);return p(N(h)),t},[h]),w=i.useCallback(function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];(0,n.invariant)(!v(),81);var s=t[0],u=(0,d.__spreadArray)([e,(0,W.canonicalStringify)(s)],[].concat(c),!0);p(N((0,_.muteDeprecations)("canonizeResults",function(){return o.getQueryRef(u,function(){return r.watchQuery((0,d.__assign)((0,d.__assign)({},a),{variables:s}))})})))},[e,c,o,a,v,r]),k=i.useCallback(function(e){return(0,n.invariant)(h,82),h.observable.subscribeToMore(e)},[h]);return[w,f,{fetchMore:g,refetch:b,reset:i.useCallback(function(){p(null)},[]),subscribeToMore:k}]}function en(e){var t=e[F],r=(0,s.useApolloClient)(t?t.observable:void 0);return(0,g.wrapHook)("useQueryRefHandlers",ei,r)(e)}function ei(e){M(e);var t,r=i.useState(e),n=r[0],o=r[1],a=i.useState(e),s=a[0],u=a[1],c=e[F];return n!==e?(o(e),u(e)):(t=j(s),e[A]=t),{refetch:i.useCallback(function(e){var t=c.refetch(e);return u(N(c)),t},[c]),fetchMore:i.useCallback(function(e){var t=c.fetchMore(e);return u(N(c)),t},[c]),subscribeToMore:c.observable.subscribeToMore}}function eo(e){var t=e[F],r=(0,s.useApolloClient)(t?t.observable:void 0);return(0,g.wrapHook)("useReadQuery",ea,r)(e)}function ea(e){M(e);var t,r=i.useMemo(function(){return e[F]},[e]),n=i.useCallback(function(){return j(e)},[e]);r.disposed&&(r.reinitialize(),t=r.promise,e[A]=t),i.useEffect(function(){return r.retain()},[r]);var o=D((0,p.useSyncExternalStore)(i.useCallback(function(t){return r.listen(function(r){e[A]=r,t()})},[r,e]),n,n));return i.useMemo(function(){return{data:o.data,networkStatus:o.networkStatus,error:G(o)}},[o])}function es(e){return(0,g.wrapHook)("createQueryPreloader",eu,e)(e)}
14e.s(["skipToken",0,U,"useApolloClient",()=>s.useApolloClient,"useBackgroundQuery",0,J,"useFragment",0,w,"useLazyQuery",()=>u.useLazyQuery,"useLoadableQuery",0,er,"useMutation",()=>c.useMutation,"useQuery",()=>l.useQuery,"useQueryRefHandlers",0,en,"useReactiveVar",0,h,"useReadQuery",0,eo,"useSubscription",()=>f.useSubscription,"useSuspenseFragment",0,Z,"useSuspenseQuery",0,H],588922),e.i(588922);var eu=function(e){return Object.assign(function(t,r){return void 0===r&&(r=Object.create(null)),(0,_.warnRemovedOption)(r,"canonizeResults","preloadQuery"),N((0,_.muteDeprecations)("canonizeResults",function(){var n,i;return new Q(e.watchQuery((0,d.__assign)((0,d.__assign)({},r),{query:t})),{autoDisposeTimeoutMs:null==(i=null==(n=e.defaultOptions.react)?void 0:n.suspense)?void 0:i.autoDisposeTimeoutMs})}))},{toPromise:function(e){return e.toPromise()}})};e.s(["ApolloConsumer",0,a,"ApolloProvider",()=>r.ApolloProvider,"DocumentType",()=>T.DocumentType,"createQueryPreloader",0,es,"getApolloContext",()=>o.getApolloContext,"operationName",()=>T.operationName,"parser",()=>T.parser,"resetApolloContext",()=>o.resetApolloContext,"skipToken",0,U,"useApolloClient",()=>s.useApolloClient,"useBackgroundQuery",0,J,"useFragment",0,w,"useLazyQuery",()=>u.useLazyQuery,"useLoadableQuery",0,er,"useMutation",()=>c.useMutation,"useQuery",()=>l.useQuery,"useQueryRefHandlers",0,en,"useReactiveVar",0,h,"useReadQuery",0,eo,"useSubscription",()=>f.useSubscription,"useSuspenseFragment",0,Z,"useSuspenseQuery",0,H],395603),e.i(395603),e.s(["ApolloCache",()=>t.ApolloCache,"ApolloClient",()=>t.ApolloClient,"ApolloConsumer",0,a,"ApolloError",()=>t.ApolloError,"ApolloLink",()=>t.ApolloLink,"ApolloProvider",()=>r.ApolloProvider,"Cache",()=>t.Cache,"DocumentTransform",()=>t.DocumentTransform,"DocumentType",()=>T.DocumentType,"HttpLink",()=>t.HttpLink,"InMemoryCache",()=>t.InMemoryCache,"MissingFieldError",()=>t.MissingFieldError,"NetworkStatus",()=>t.NetworkStatus,"Observable",()=>t.Observable,"ObservableQuery",()=>t.ObservableQuery,"checkFetcher",()=>t.checkFetcher,"concat",()=>t.concat,"createHttpLink",()=>t.createHttpLink,"createQueryPreloader",0,es,"createSignalIfSupported",()=>t.createSignalIfSupported,"defaultDataIdFromObject",()=>t.defaultDataIdFromObject,"defaultPrinter",()=>t.defaultPrinter,"disableExperimentalFragmentVariables",()=>t.disableExperimentalFragmentVariables,"disableFragmentWarnings",()=>t.disableFragmentWarnings,"empty",()=>t.empty,"enableExperimentalFragmentVariables",()=>t.enableExperimentalFragmentVariables,"execute",()=>t.execute,"fallbackHttpConfig",()=>t.fallbackHttpConfig,"from",()=>t.from,"fromError",()=>t.fromError,"fromPromise",()=>t.fromPromise,"getApolloContext",()=>o.getApolloContext,"gql",()=>t.gql,"isApolloError",()=>t.isApolloError,"isNetworkRequestSettled",()=>t.isNetworkRequestSettled,"isReference",()=>t.isReference,"makeReference",()=>t.makeReference,"makeVar",()=>t.makeVar,"mergeOptions",()=>t.mergeOptions,"operationName",()=>T.operationName,"parseAndCheckHttpResponse",()=>t.parseAndCheckHttpResponse,"parser",()=>T.parser,"resetApolloContext",()=>o.resetApolloContext,"resetCaches",()=>t.resetCaches,"rewriteURIForGET",()=>t.rewriteURIForGET,"selectHttpOptionsAndBody",()=>t.selectHttpOptionsAndBody,"selectHttpOptionsAndBodyInternal",()=>t.selectHttpOptionsAndBodyInternal,"selectURI",()=>t.selectURI,"serializeFetchParameter",()=>t.serializeFetchParameter,"setLogVerbosity",()=>t.setLogVerbosity,"skipToken",0,U,"split",()=>t.split,"throwServerError",()=>t.throwServerError,"toPromise",()=>t.toPromise,"useApolloClient",()=>s.useApolloClient,"useBackgroundQuery",0,J,"useFragment",0,w,"useLazyQuery",()=>u.useLazyQuery,"useLoadableQuery",0,er,"useMutation",()=>c.useMutation,"useQuery",()=>l.useQuery,"useQueryRefHandlers",0,en,"useReactiveVar",0,h,"useReadQuery",0,eo,"useSubscription",()=>f.useSubscription,"useSuspenseFragment",0,Z,"useSuspenseQuery",0,H],325793)},106093,(e,t,r)=>{"use strict";var n,i=e.e&&e.e.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});r.__esModule=!0;var o=e.r(325793),a=e.r(791834);r.default=function(e){function t(t){var r=e.call(this)||this;return r.dispatcher=t,r}return i(t,e),t.prototype.request=function(e,t){var r=this;this.dispatcher.dispatch({type:a.default.REQUEST,payload:{operation:e}});var n=t(e);return new o.Observable(function(t){var i=!0,o=n.subscribe({next:function(n){i=!1,r.dispatcher.dispatch({type:a.default.SUCCESS,payload:{operation:e,result:n}}),t.next(n)},error:function(n){i=!1,r.dispatcher.dispatch({type:a.default.ERROR,payload:{operation:e,networkError:n}}),t.error(n)},complete:t.complete.bind(t)});return function(){i&&r.dispatcher.dispatch({type:a.default.CANCEL,payload:{operation:e}}),o&&o.unsubscribe()}})},t}(o.ApolloLink)},30558,(e,t,r)=>{"use strict";r.__esModule=!0,r.default=function(){function e(){this.listeners=[]}return e.prototype.addListener=function(e){this.listeners.push(e)},e.prototype.removeListener=function(e){this.listeners=this.listeners.filter(function(t){return t!==e})}
14,e.prototype.dispatch=function(e){this.listeners.forEach(function(t){t(e)})},e}()},973548,(e,t,r)=>{"use strict";r.__esModule=!0;var n=e.r(191788);r.default=function(e,t,r){var i=n.useReducer(t,r),o=i[0],a=i[1];return n.useEffect(function(){var t;function r(e){t=requestAnimationFrame(function(){a(e)})}return e.addListener(r),function(){e.removeListener(r),cancelAnimationFrame(t)}},[e]),o}},937150,(e,t,r)=>{"use strict";r.__esModule=!0;var n=e.r(191788);r.default="u">typeof window?n.useLayoutEffect:n.useEffect},167706,(e,t,r)=>{"use strict";r.__esModule=!0;var n=e.r(191788),i=e.r(937150);r.default=function(e){var t=n.useRef(function(){throw Error("Function is called before it was assigned.")});return i.default(function(){t.current=e}),n.useCallback(function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return t.current.apply(t,e)},[])}},711305,(e,t,r)=>{"use strict";var n=e.e&&e.e.__assign||function(){return(n=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};r.__esModule=!0;var i=e.r(191788),o=e.r(791834),a=e.r(973548),s=e.r(167706);function u(e,t){return e.query.definitions.some(function(e){return"OperationDefinition"===e.kind&&e.operation===t})}function c(e){return function(t,r){if(void 0===t&&(t=0),!u(r.payload.operation,e))return t;switch(r.type){case o.default.REQUEST:return t+1;case o.default.ERROR:case o.default.SUCCESS:case o.default.CANCEL:return Math.max(t-1,0)}return t}}function l(e){return function(t,r){if(!u(r.payload.operation,e))return t;switch(r.type){case o.default.REQUEST:return;case o.default.ERROR:var n=r.payload,i=n.networkError,a=n.operation;return{networkError:i,operation:a};case o.default.SUCCESS:var s=r.payload,c=s.result,a=s.operation;if(c&&c.errors)return{graphQLErrors:c.errors,response:c,operation:a}}return t}}var f=c("query"),p=c("mutation"),h=l("query"),d=l("mutation"),y={numPendingQueries:0,numPendingMutations:0,queryError:void 0,mutationError:void 0};function v(e){return!1!==e.getContext().useApolloNetworkStatus}r.default=function(e,t){t||(t={});var r=t.shouldHandleOperation||v,o=s.default(r),c=i.useMemo(function(){return function(e,t){if(!o(t.payload.operation))return e;if(u(t.payload.operation,"subscription"))return e;var r=n({},e);return r.numPendingQueries=f(r.numPendingQueries,t),r.numPendingMutations=p(r.numPendingMutations,t),r.queryError=h(r.queryError,t),r.mutationError=d(r.mutationError,t),Object.keys(e).some(function(t){return r[t]!==e[t]})?r:e}},[o]);return a.default(e,c,y)}},45139,(e,t,r)=>{"use strict";r.__esModule=!0;var n=e.r(106093),i=e.r(30558),o=e.r(711305),a=e.r(973548);r.default=function(){var e=new i.default;return{link:new n.default(e),useApolloNetworkStatus:function(t){return o.default(e,t)},useApolloNetworkStatusReducer:function(t,r){return a.default(e,t,r)}}}},385315,(e,t,r)=>{"use strict";r.__esModule=!0,r.ActionTypes=e.r(791834).default,r.createNetworkStatusNotifier=e.r(45139).default},270454,e=>{"use strict";e.i(868681),e.s([],504283),e.i(504283);var t=e.i(403285),r=e.i(697107),n=e.i(54413),i=e.i(664657),o=e.i(492449),a=e.i(209698),s=e.i(71596),u=e.i(691839);e.s(["HttpLink",()=>s.HttpLink,"checkFetcher",()=>i.checkFetcher,"createHttpLink",()=>a.createHttpLink,"createSignalIfSupported",0,function(){if("u"<typeof AbortController)return{controller:!1,signal:!1};var e=new AbortController,t=e.signal;return{controller:e,signal:t}},"defaultPrinter",()=>n.defaultPrinter,"fallbackHttpConfig",()=>n.fallbackHttpConfig,"parseAndCheckHttpResponse",()=>t.parseAndCheckHttpResponse,"rewriteURIForGET",()=>u.rewriteURIForGET,"selectHttpOptionsAndBody",()=>n.selectHttpOptionsAndBody,"selectHttpOptionsAndBodyInternal",()=>n.selectHttpOptionsAndBodyInternal,"selectURI",()=>o.selectURI,"serializeFetchParameter",()=>r.serializeFetchParameter],270454)},330468,e=>{"use strict";var t,r=e.i(884849);(0,r.setVerbosity)(!1!==globalThis.__DEV__?"log":"silent"),e.s([],875477),e.i(875477);var n=e.i(395585),i=e.i(669570),o=e.i(257828),a=e.i(76810),s=e.i(533879);t||(t={});var u=e.i(764501),c=e.i(484936),l=e.i(814540),f=e.i(958673),p=e.i(900268);e.i(868681),e.s([],603421),e.i(603421);var h=e.i(162979),d=h.ApolloLink.empty,y=e.i(541866),v=e.i(343759),m=h.ApolloLink.concat,g=e.i(971393);e.s(["ApolloLink",()=>h.ApolloLink,"concat",0,m,"empty",0,d,"execute",()=>g.execute,"from",()=>y.from,"split",()=>v.split],421664),e.i(421664);var b=e.i(270454),_=e.i(987434),w=e.i(5578),k=e.i(625945),S=e.i(222017),O=e.i(33448),E=e.i(356776),R=e.i(159080);e.s(["ApolloCache",()=>u.ApolloCache,"ApolloClient",()=>n.ApolloClient,"ApolloError",()=>s.ApolloError,"ApolloLink",()=>h.ApolloLink,"Cache",0,t,"DocumentTransform",()=>O.DocumentTransform,"HttpLink",()=>b.HttpLink,"InMemoryCache",()=>c.InMemoryCache,"MissingFieldError",()=>l.MissingFieldError,"NetworkStatus",()=>a.NetworkStatus,"Observable",()=>k.Observable,"ObservableQuery",()=>o.ObservableQuery,"checkFetcher",()=>b.checkFetcher,"concat",0,m,"createHttpLink",()=>b.createHttpLink,"createSignalIfSupported",()=>b.createSignalIfSupported,"defaultDataIdFromObject",()=>f.defaultDataIdFromObject,"defaultPrinter",()=>b.defaultPrinter,"disableExperimentalFragmentVariables",()=>R.disableExperimentalFragmentVariables,"disableFragmentWarnings",()=>R.disableFragmentWarnings,"empty",0,d,"enableExperimentalFragmentVariables",()=>R.enableExperimentalFragmentVariables,"execute",()=>g.execute,"fallbackHttpConfig",()=>b.fallbackHttpConfig,"from",()=>
14y.from,"fromError",()=>_.fromError,"fromPromise",0,function(e){return new k.Observable(function(t){e.then(function(e){t.next(e),t.complete()}).catch(t.error.bind(t))})},"gql",()=>R.gql,"isApolloError",()=>s.isApolloError,"isNetworkRequestSettled",()=>a.isNetworkRequestSettled,"isReference",()=>E.isReference,"makeReference",()=>E.makeReference,"makeVar",()=>p.makeVar,"mergeOptions",()=>i.mergeOptions,"parseAndCheckHttpResponse",()=>b.parseAndCheckHttpResponse,"resetCaches",()=>R.resetCaches,"rewriteURIForGET",()=>b.rewriteURIForGET,"selectHttpOptionsAndBody",()=>b.selectHttpOptionsAndBody,"selectHttpOptionsAndBodyInternal",()=>b.selectHttpOptionsAndBodyInternal,"selectURI",()=>b.selectURI,"serializeFetchParameter",()=>b.serializeFetchParameter,"setLogVerbosity",()=>r.setVerbosity,"split",()=>v.split,"throwServerError",()=>S.throwServerError,"toPromise",0,function(e){var t=!1;return new Promise(function(r,n){e.subscribe({next:function(e){t?!1!==globalThis.__DEV__&&w.invariant.warn(57):(t=!0,r(e))},error:n})})}],330468)},449396,(e,t,r)=>{"use strict";t.exports=class{constructor({uri:e,name:t,type:r}){this.uri=e,this.name=t,this.type=r}}},838583,(e,t,r)=>{"use strict";let n=e.r(449396);t.exports=function(e){return"u">typeof File&&e instanceof File||"u">typeof Blob&&e instanceof Blob||e instanceof n}},660150,(e,t,r)=>{"use strict";let n=e.r(838583);t.exports=function(e,t="",r=n){let i=new Map,o=new Map;return{clone:function e(t,n,a){let s=t;if(r(t)){s=null;let e=i.get(t);e?e.push(n):i.set(t,[n])}else{let r=Array.isArray(t)||"u">typeof FileList&&t instanceof FileList,i=t&&t.constructor===Object;if(r||i){let i=o.has(t);if(i?s=o.get(t):(s=r?[]:{},o.set(t,s)),!a.has(t)){let o=n?`${n}.`:"",u=new Set(a).add(t);if(r){let r=0;for(let n of t){let t=e(n,o+r++,u);i||s.push(t)}}else for(let r in t){let n=e(t[r],o+r,u);i||(s[r]=n)}}}}return s}(e,t,new Set),files:i}}},165079,(e,t,r)=>{"use strict";t.exports=function(e,t,r){e.append(t,r,r.name)}},603471,(e,t,r)=>{"use strict";t.exports=e.r(838583)},490384,(e,t,r)=>{"use strict";let{ApolloLink:n,Observable:i}=e.r(330468),{createSignalIfSupported:o,fallbackHttpConfig:a,parseAndCheckHttpResponse:s,rewriteURIForGET:u,selectHttpOptionsAndBody:c,selectURI:l,serializeFetchParameter:f}=e.r(270454),p=e.r(660150),h=e.r(165079),d=e.r(603471);t.exports=function({uri:e="/graphql",useGETForQueries:t,isExtractableFile:r=d,FormData:y,formDataAppendFile:v=h,fetch:m,fetchOptions:g,credentials:b,headers:_,includeExtensions:w}={}){let k={http:{includeExtensions:w},options:g,credentials:b,headers:_};return new n(n=>{let h=n.getContext(),{clientAwareness:{name:d,version:g}={},headers:b}=h,{options:_,body:w}=c(n,a,k,{http:h.http,options:h.fetchOptions,credentials:h.credentials,headers:{...d&&{"apollographql-client-name":d},...g&&{"apollographql-client-version":g},...b}}),{clone:S,files:O}=p(w,"",r),E=l(n,e);if(O.size){delete _.headers["content-type"];let e=new(y||FormData);e.append("operations",f(S,"Payload"));let t={},r=0;O.forEach(e=>{t[++r]=e}),e.append("map",JSON.stringify(t)),r=0,O.forEach((t,n)=>{v(e,++r,n)}),_.body=e}else if(t&&!n.query.definitions.some(e=>"OperationDefinition"===e.kind&&"mutation"===e.operation)&&(_.method="GET"),"GET"===_.method){let{newURI:e,parseError:t}=u(E,w);if(t)return new i(e=>{e.error(t)});E=e}else _.body=f(S,"Payload");let{controller:R}=o();R&&(_.signal&&(_.signal.aborted?R.abort():_.signal.addEventListener("abort",()=>{R.abort()},{once:!0})),_.signal=R.signal);let T=m||fetch;return new i(e=>{let t;return T(E,_).then(e=>(n.setContext({response:e}),e)).then(s(n)).then(t=>{e.next(t),e.complete()}).catch(r=>{t||(r.result&&r.result.errors&&r.result.data&&e.next(r.result),e.error(r))}),()=>{t=!0,R&&R.abort()}})})}},791834,(e,t,r)=>{"use strict";var n,i;r.__esModule=!0,(i=n||(n={})).REQUEST="REQUEST",i.ERROR="ERROR",i.SUCCESS="SUCCESS",i.CANCEL="CANCEL",r.default=n},738070,e=>{"use strict";var t=e.i(189280);e.i(868681);var r=e.i(5578),n=e.i(811818),i=e.i(521805);e.s(["ApolloProvider",0,function(e){var o=e.client,a=e.children,s=(0,i.getApolloContext)(),u=n.useContext(s),c=n.useMemo(function(){return(0,t.__assign)((0,t.__assign)({},u),{client:o||u.client})},[u,o]);return(0,r.invariant)(c.client,71),n.createElement(s.Provider,{value:c},a)}])},113959,162979,697107,492449,222017,602024,403285,664657,741969,54413,691839,987434,649429,209698,71596,e=>{"use strict";var t,r=e.i(189280),n=e.i(130101),i=Object.prototype.hasOwnProperty;function o(e){var t=e[0]||{},r=e.length;if(r>1)for(var n=new s,i=1;i<r;++i)t=n.merge(t,e[i]);return t}
14var a=function(e,t,r){return this.merge(e[r],t[r])},s=function(){function e(e){void 0===e&&(e=a),this.reconciler=e,this.isObject=n.isNonNullObject,this.pastCopies=new Set}return e.prototype.merge=function(e,t){for(var o=this,a=[],s=2;s<arguments.length;s++)a[s-2]=arguments[s];return(0,n.isNonNullObject)(t)&&(0,n.isNonNullObject)(e)?(Object.keys(t).forEach(function(n){if(i.call(e,n)){var s=e[n];if(t[n]!==s){var u=o.reconciler.apply(o,(0,r.__spreadArray)([e,t,n],a,!1));u!==s&&((e=o.shallowCopyForMerge(e))[n]=u)}}else(e=o.shallowCopyForMerge(e))[n]=t[n]}),e):t},e.prototype.shallowCopyForMerge=function(e){return(0,n.isNonNullObject)(e)&&!this.pastCopies.has(e)&&(e=Array.isArray(e)?e.slice(0):(0,r.__assign)({__proto__:Object.getPrototypeOf(e)},e),this.pastCopies.add(e)),e},e}();e.s(["DeepMerger",0,s,"mergeDeep",0,function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return o(e)},"mergeDeepArray",0,o],113959),e.i(868681);var u=e.i(5578),c=e.i(625945),l=e.i(915301),f=e.i(369547);function p(e,t){return t?t(e):c.Observable.of()}function h(e){return"function"==typeof e?new y(e):e}function d(e){return e.request.length<=1}var y=function(){function e(e){e&&(this.request=e)}return e.empty=function(){return new e(function(){return c.Observable.of()})},e.from=function(t){return 0===t.length?e.empty():t.map(h).reduce(function(e,t){return e.concat(t)})},e.split=function(t,r,n){var i=h(r),o=h(n||new e(p));return Object.assign(new e(d(i)&&d(o)?function(e){return t(e)?i.request(e)||c.Observable.of():o.request(e)||c.Observable.of()}:function(e,r){return t(e)?i.request(e,r)||c.Observable.of():o.request(e,r)||c.Observable.of()}),{left:i,right:o})},e.execute=function(e,t){var n,i,o,a,s;return e.request((o=t.context,(i={variables:(n=function(e){for(var t=["query","operationName","variables","extensions","context"],r=0,n=Object.keys(e);r<n.length;r++){var i=n[r];if(0>t.indexOf(i))throw(0,u.newInvariantError)(58,i)}return e}(t)).variables||{},extensions:n.extensions||{},operationName:n.operationName,query:n.query}).operationName||(i.operationName="string"!=typeof i.query?(0,l.getOperationName)(i.query)||void 0:""),a=i,s=(0,r.__assign)({},o),Object.defineProperty(a,"setContext",{enumerable:!1,value:function(e){s="function"==typeof e?(0,r.__assign)((0,r.__assign)({},s),e(s)):(0,r.__assign)((0,r.__assign)({},s),e)}}),Object.defineProperty(a,"getContext",{enumerable:!1,value:function(){return(0,r.__assign)({},s)}}),a))||c.Observable.of()},e.concat=function(t,r){var n=h(t);if(d(n))return!1!==globalThis.__DEV__&&u.invariant.warn(47,n),n;var i=h(r);return Object.assign(new e(d(i)?function(e){return n.request(e,function(e){return i.request(e)||c.Observable.of()})||c.Observable.of()}:function(e,t){return n.request(e,function(e){return i.request(e,t)||c.Observable.of()})||c.Observable.of()}),{left:n,right:i})},e.prototype.split=function(t,r,n){return this.concat(e.split(t,r,n||new e(p)))},e.prototype.concat=function(t){return e.concat(this,t)},e.prototype.request=function(e,t){throw(0,u.newInvariantError)(48)},e.prototype.onError=function(e,t){if(!1!==globalThis.__DEV__&&(0,f.warnDeprecated)("onError",function(){!1!==globalThis.__DEV__&&u.invariant.warn(49)}),t&&t.error)return t.error(e),!1;throw e},e.prototype.setOnError=function(e){return!1!==globalThis.__DEV__&&!1!==globalThis.__DEV__&&u.invariant.warn(50),this.onError=e,this},e}();e.s(["ApolloLink",0,y],162979);var v=e.i(126452),m=function(e,t){var r;try{r=JSON.stringify(e)}catch(e){var n=(0,u.newInvariantError)(54,t,e.message);throw n.parseError=e,n}return r};e.s(["serializeFetchParameter",0,m],697107);var g=function(e,t){var r=e.getContext().uri;return r||("function"==typeof t?t(e):t||"/graphql")};e.s(["selectURI",0,g],492449);var b=e.i(223289);function _(e){var t={next:function(){return e.read()}};return b.canUseAsyncIteratorSymbol&&(t[Symbol.asyncIterator]=function(){return this}),t}var w=function(e,t,r){var n=Error(r);throw n.name="ServerError",n.response=e,n.statusCode=e.status,n.result=t,n};e.s(["throwServerError",0,w],222017);var k=e.i(533879),S=e.i(242419);function O(e){return"incremental"in e}function E(e){return(0,n.isNonNullObject)(e)&&"payload"in e}e.s(["isApolloPayloadResult",0,E,"isExecutionPatchIncrementalResult",0,O,"isExecutionPatchResult",0,function(e){return O(e)||"hasNext"in e&&"data"in e},"mergeIncrementalData",0,function(e,t){var r=e,n=new s;return O(t)&&(0,S.isNonEmptyArray)(t.incremental)&&t.incremental.forEach(function(e){for(var t=e.data,i=e.path,o=i.length-1;o>=0;--o){var a=i[o],s=isNaN(+a)?{}:[];s[a]=t,t=s}
14r=n.merge(r,t)}),r}],602024);var R=Object.prototype.hasOwnProperty;function T(e,t){return(0,r.__awaiter)(this,void 0,void 0,function(){var n,i,o,a,s,u,c,l,f,p,h,d,y,v,m,g,w,S,O,R,T,C,D;return(0,r.__generator)(this,function(P){switch(P.label){case 0:if(void 0===TextDecoder)throw Error("TextDecoder must be defined in the environment: please import a polyfill.");n=new TextDecoder("utf-8"),i=null==(D=e.headers)?void 0:D.get("content-type"),o="boundary=",a=(null==i?void 0:i.includes(o))?null==i?void 0:i.substring((null==i?void 0:i.indexOf(o))+o.length).replace(/['"]/g,"").replace(/\;(.*)/gm,"").trim():"-",s="\r\n--".concat(a),u="",c=function(e){var t,r,n,i,o,a,s=e;if(e.body&&(s=e.body),t=s,b.canUseAsyncIteratorSymbol&&t[Symbol.asyncIterator])return n=s[Symbol.asyncIterator](),(r={next:function(){return n.next()}})[Symbol.asyncIterator]=function(){return this},r;if(s.getReader)return _(s.getReader());if(s.stream)return _(s.stream().getReader());if(s.arrayBuffer)return i=s.arrayBuffer(),o=!1,a={next:function(){return o?Promise.resolve({value:void 0,done:!0}):(o=!0,new Promise(function(e,t){i.then(function(t){e({value:t,done:!1})}).catch(t)}))}},b.canUseAsyncIteratorSymbol&&(a[Symbol.asyncIterator]=function(){return this}),a;if(s.pipe)return function(e){var t=null,r=null,n=!1,i=[],o=[];function a(e){if(!r){if(o.length){var t=o.shift();if(Array.isArray(t)&&t[0])return t[0]({value:e,done:!1})}i.push(e)}}function s(e){r=e,o.slice().forEach(function(t){t[1](e)}),t&&t()}function u(){n=!0,o.slice().forEach(function(e){e[0]({value:void 0,done:!0})}),t&&t()}t=function(){t=null,e.removeListener("data",a),e.removeListener("error",s),e.removeListener("end",u),e.removeListener("finish",u),e.removeListener("close",u)},e.on("data",a),e.on("error",s),e.on("end",u),e.on("finish",u),e.on("close",u);var c={next:function(){return new Promise(function(e,t){return r?t(r):i.length?e({value:i.shift(),done:!1}):n?e({value:void 0,done:!0}):void o.push([e,t])})}};return b.canUseAsyncIteratorSymbol&&(c[Symbol.asyncIterator]=function(){return this}),c}(s);throw Error("Unknown body type for responseIterator. Please pass a streamable response.")}(e),l=!0,P.label=1;case 1:if(!l)return[3,3];return[4,c.next()];case 2:for(p=(f=P.sent()).value,h=f.done,d="string"==typeof p?p:n.decode(p),y=u.length-s.length+1,l=!h,u+=d,v=u.indexOf(s,y);v>-1;){if(m=void 0,m=(T=[u.slice(0,v),u.slice(v+s.length)])[0],u=T[1],g=m.indexOf("\r\n\r\n"),(w=function(e){var t={};return e.split("\n").forEach(function(e){var r=e.indexOf(":");if(r>-1){var n=e.slice(0,r).trim().toLowerCase(),i=e.slice(r+1).trim();t[n]=i}}),t}(m.slice(0,g))["content-type"])&&-1===w.toLowerCase().indexOf("application/json"))throw Error("Unsupported patch content type: application/json is required.");if(S=m.slice(g)){if(Object.keys(O=x(e,S)).length>1||"data"in O||"incremental"in O||"errors"in O||"payload"in O)if(E(O)){if(R={},"payload"in O){if(1===Object.keys(O).length&&null===O.payload)return[2];R=(0,r.__assign)({},O.payload)}"errors"in O&&(R=(0,r.__assign)((0,r.__assign)({},R),{extensions:(0,r.__assign)((0,r.__assign)({},"extensions"in R?R.extensions:null),((C={})[k.PROTOCOL_ERRORS_SYMBOL]=O.errors,C))})),t(R)}else t(O);else if(1===Object.keys(O).length&&"hasNext"in O&&!O.hasNext)return[2]}v=u.indexOf(s)}return[3,1];case 3:return[2]}})})}function x(e,t){e.status>=300&&w(e,function(){try{return JSON.parse(t)}catch(e){return t}}(),"Response not successful: Received status code ".concat(e.status));try{return JSON.parse(t)}catch(r){throw r.name="ServerParseError",r.response=e,r.statusCode=e.status,r.bodyText=t,r}}function C(e,t){e.result&&e.result.errors&&e.result.data&&t.next(e.result),t.error(e)}function D(e){return function(t){return t.text().then(function(e){return x(t,e)}).then(function(r){return Array.isArray(r)||R.call(r,"data")||R.call(r,"errors")||w(t,r,"Server response was missing for query '".concat(Array.isArray(e)?e.map(function(e){return e.operationName}):e.operationName,"'.")),r})}}e.s(["handleError",0,C,"parseAndCheckHttpResponse",0,D,"readMultipartBody",0,T],403285);var P=function(e){if(!e&&"u"<typeof fetch)throw(0,u.newInvariantError)(51)};e.s(["checkFetcher",0,P],664657);var I=e.i(267757);let F=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function A(e){return N[e.charCodeAt(0)]}let N=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000B","\\f","\\r","\\u000E","\\u000F","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001A","\\u001B","\\u001C","\\u001D","\\u001E","\\u001F","","",'\\"',"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\\\","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\u007F","\\u0080","\\u0081","\\u0082","\\u0083","\\u0084","\\u0085","\\u0086","\\u0087","\\u0088","\\u0089","\\u008A","\\u008B","\\u008C","\\u008D","\\u008E","\\u008F","\\u0090","\\u0091","\\u0092","\\u0093","\\u0094","\\u0095","\\u0096","\\u0097","\\u0098","\\u0099","\\u009A","\\u009B","\\u009C","\\u009D","\\u009E","\\u009F"];var M=e.i(502088);let j={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>q(e.definitions,"\n\n")},OperationDefinition:{leave(e){let t=B(e.variableDefinitions)?V("(\n",q(e.variableDefinitions,"\n"),"\n)"):V("(",q(e.variableDefinitions,", "),")"),r=V("",e.de
14scription,"\n")+q([e.operation,q([e.name,t]),q(e.directives," ")]," ");return("query"===r?"":r+" ")+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:r,directives:n,description:i})=>V("",i,"\n")+e+": "+t+V(" = ",r)+V(" ",q(n," "))},SelectionSet:{leave:({selections:e})=>Q(e)},Field:{leave({alias:e,name:t,arguments:r,directives:n,selectionSet:i}){let o=V("",e,": ")+t,a=o+V("(",q(r,", "),")");return a.length>80&&(a=o+V("(\n",L(q(r,"\n")),"\n)")),q([a,q(n," "),i]," ")}},Argument:{leave:({name:e,value:t})=>e+": "+t},FragmentSpread:{leave:({name:e,directives:t})=>"..."+e+V(" ",q(t," "))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:r})=>q(["...",V("on ",e),q(t," "),r]," ")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:r,directives:n,selectionSet:i,description:o})=>V("",o,"\n")+`fragment ${e}${V("(",q(r,", "),")")} `+`on ${t} ${V("",q(n," ")," ")}`+i},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e},StringValue:{leave:({value:e,block:t})=>t?(0,I.printBlockString)(e):`"${e.replace(F,A)}"`},BooleanValue:{leave:({value:e})=>e?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>"["+q(e,", ")+"]"},ObjectValue:{leave:({fields:e})=>"{"+q(e,", ")+"}"},ObjectField:{leave:({name:e,value:t})=>e+": "+t},Directive:{leave:({name:e,arguments:t})=>"@"+e+V("(",q(t,", "),")")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>"["+e+"]"},NonNullType:{leave:({type:e})=>e+"!"},SchemaDefinition:{leave:({description:e,directives:t,operationTypes:r})=>V("",e,"\n")+q(["schema",q(t," "),Q(r)]," ")},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+": "+t},ScalarTypeDefinition:{leave:({description:e,name:t,directives:r})=>V("",e,"\n")+q(["scalar",t,q(r," ")]," ")},ObjectTypeDefinition:{leave:({description:e,name:t,interfaces:r,directives:n,fields:i})=>V("",e,"\n")+q(["type",t,V("implements ",q(r," & ")),q(n," "),Q(i)]," ")},FieldDefinition:{leave:({description:e,name:t,arguments:r,type:n,directives:i})=>V("",e,"\n")+t+(B(r)?V("(\n",L(q(r,"\n")),"\n)"):V("(",q(r,", "),")"))+": "+n+V(" ",q(i," "))},InputValueDefinition:{leave:({description:e,name:t,type:r,defaultValue:n,directives:i})=>V("",e,"\n")+q([t+": "+r,V("= ",n),q(i," ")]," ")},InterfaceTypeDefinition:{leave:({description:e,name:t,interfaces:r,directives:n,fields:i})=>V("",e,"\n")+q(["interface",t,V("implements ",q(r," & ")),q(n," "),Q(i)]," ")},UnionTypeDefinition:{leave:({description:e,name:t,directives:r,types:n})=>V("",e,"\n")+q(["union",t,q(r," "),V("= ",q(n," | "))]," ")},EnumTypeDefinition:{leave:({description:e,name:t,directives:r,values:n})=>V("",e,"\n")+q(["enum",t,q(r," "),Q(n)]," ")},EnumValueDefinition:{leave:({description:e,name:t,directives:r})=>V("",e,"\n")+q([t,q(r," ")]," ")},InputObjectTypeDefinition:{leave:({description:e,name:t,directives:r,fields:n})=>V("",e,"\n")+q(["input",t,q(r," "),Q(n)]," ")},DirectiveDefinition:{leave:({description:e,name:t,arguments:r,directives:n,repeatable:i,locations:o})=>V("",e,"\n")+"directive @"+t+(B(r)?V("(\n",L(q(r,"\n")),"\n)"):V("(",q(r,", "),")"))+V(" ",q(n," "))+(i?" repeatable":"")+" on "+q(o," | ")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>q(["extend schema",q(e," "),Q(t)]," ")},ScalarTypeExtension:{leave:({name:e,directives:t})=>q(["extend scalar",e,q(t," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:r,fields:n})=>q(["extend type",e,V("implements ",q(t," & ")),q(r," "),Q(n)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:r,fields:n})=>q(["extend interface",e,V("implements ",q(t," & ")),q(r," "),Q(n)]," ")},UnionTypeExtension:{leave:({name:e,directives:t,types:r})=>q(["extend union",e,q(t," "),V("= ",q(r," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:t,values:r})=>q(["extend enum",e,q(t," "),Q(r)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:r})=>q(["extend input",e,q(t," "),Q(r)]," ")},DirectiveExtension:{leave:({name:e,directives:t})=>q(["extend directive @"+e,q(t," ")]," ")},TypeCoordinate:{leave:({name:e})=>e},MemberCoordinate:{leave:({name:e,memberName:t})=>q([e,V(".",t)])},ArgumentCoordinate:{leave:({name:e,fieldName:t,argumentName:r})=>q([e,V(".",t),V("(",r,":)")])},DirectiveCoordinate:{leave:({name:e})=>q(["@",e])},DirectiveArgumentCoordinate:{leave:({name:e,argumentName:t})=>q(["@",e,V("(",t,":)")])}};function q(e,t=""){var r;return null!=(r=null==e?void 0:e.filter(e=>e).join(t))?r:""}function Q(e){return V("{\n",L(q(e,"\n")),"\n}")}function V(e,t,r=""){return null!=t&&""!==t?e+t+r:""}function L(e){return V("  ",e.replace(/\n/g,"\n  "))}function B(e){var t;return null!=(t=null==e?void 0:e.some(e=>e.includes("\n")))&&t}var z=e.i(336904),W=e.i(506044),U=e.i(799523),H=Object.assign(function(e){var r=t.get(e);return r||(r=(0,M.visit)(e,j),t.set(e,r)),r},{reset:function(){t=new z.AutoCleanedWeakCache(W.cacheSizes.print||2e3)}});H.reset(),!1!==globalThis.__DEV__&&(0,U.registerGlobalCache)("print",function(){return t?t.size:0}),e.s(["print",0,H],741969);var K={http:{includeQuery:!0,includeExtensions:!1,preserveHeaderCase:!1},headers:{accept:"*/*","content-type":"application/json"},options:{method:"POST"}},G=function(e,t){return t(e)};function $(e,t){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];var o={},a={};
14n.forEach(function(e){o=(0,r.__assign)((0,r.__assign)((0,r.__assign)({},o),e.options),{headers:(0,r.__assign)((0,r.__assign)({},o.headers),e.headers)}),e.credentials&&(o.credentials=e.credentials),a=(0,r.__assign)((0,r.__assign)({},a),e.http)}),o.headers&&(o.headers=function(e,t){if(!t){var r={};return Object.keys(Object(e)).forEach(function(t){r[t.toLowerCase()]=e[t]}),r}var n={};Object.keys(Object(e)).forEach(function(t){n[t.toLowerCase()]={originalName:t,value:e[t]}});var i={};return Object.keys(n).forEach(function(e){i[n[e].originalName]=n[e].value}),i}(o.headers,a.preserveHeaderCase));var s=e.operationName,u=e.extensions,c=e.variables,l=e.query,f={operationName:s,variables:c};return a.includeExtensions&&(f.extensions=u),a.includeQuery&&(f.query=t(l,H)),{options:o,body:f}}function J(e,t){var r=[],n=function(e,t){r.push("".concat(e,"=").concat(encodeURIComponent(t)))};if("query"in t&&n("query",t.query),t.operationName&&n("operationName",t.operationName),t.variables){var i=void 0;try{i=m(t.variables,"Variables map")}catch(e){return{parseError:e}}n("variables",i)}if(t.extensions){var o=void 0;try{o=m(t.extensions,"Extensions map")}catch(e){return{parseError:e}}n("extensions",o)}var a="",s=e,u=e.indexOf("#");-1!==u&&(a=e.substr(u),s=e.substr(0,u));var c=-1===s.indexOf("?")?"?":"&";return{newURI:s+c+r.join("&")+a}}function Y(e){return new c.Observable(function(t){t.error(e)})}e.s(["defaultPrinter",0,G,"fallbackHttpConfig",0,K,"selectHttpOptionsAndBody",0,function(e,t){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];return n.unshift(t),$.apply(void 0,(0,r.__spreadArray)([e,G],n,!1))},"selectHttpOptionsAndBodyInternal",0,$],54413),e.s(["rewriteURIForGET",0,J],691839),e.s(["fromError",0,Y],987434);var X=e.i(522001),Z=e.i(206699),ee=e.i(356776),et=e.i(686384),er={kind:Z.Kind.FIELD,name:{kind:Z.Kind.NAME,value:"__typename"}};function en(e){var t=new Map;return function(r){void 0===r&&(r=e);var n=t.get(r);return n||t.set(r,n={variables:new Set,fragmentSpreads:new Set}),n}}function ei(e,t){(0,l.checkDocument)(t);for(var n,i,o,a=en(""),s=en(""),c=function(e){for(var t=0,r=void 0;t<e.length&&(r=e[t]);++t)if(!(0,S.isArray)(r)){if(r.kind===Z.Kind.OPERATION_DEFINITION)return a(r.name&&r.name.value);if(r.kind===Z.Kind.FRAGMENT_DEFINITION)return s(r.name.value)}return!1!==globalThis.__DEV__&&u.invariant.error(124),null},f=0,p=t.definitions.length-1;p>=0;--p)t.definitions[p].kind===Z.Kind.OPERATION_DEFINITION&&++f;var h=(n=new Map,i=new Map,e.forEach(function(e){e&&(e.name?n.set(e.name,e):e.test&&i.set(e.test,e))}),function(e){var t=n.get(e.name.value);return!t&&i.size&&i.forEach(function(r,n){n(e)&&(t=r)}),t}),d=function(e){return(0,S.isNonEmptyArray)(e)&&e.map(h).some(function(e){return e&&e.remove})},y=new Map,v=!1,m={enter:function(e){if(d(e.directives))return v=!0,null}},g=(0,M.visit)(t,{Field:m,InlineFragment:m,VariableDefinition:{enter:function(){return!1}},Variable:{enter:function(e,t,r,n,i){var o=c(i);o&&o.variables.add(e.name.value)}},FragmentSpread:{enter:function(e,t,r,n,i){if(d(e.directives))return v=!0,null;var o=c(i);o&&o.fragmentSpreads.add(e.name.value)}},FragmentDefinition:{enter:function(e,t,r,n){y.set(JSON.stringify(n),e)},leave:function(e,t,r,n){return e===y.get(JSON.stringify(n))?e:f>0&&e.selectionSet.selections.every(function(e){return e.kind===Z.Kind.FIELD&&"__typename"===e.name.value})?(s(e.name.value).removed=!0,v=!0,null):void 0}},Directive:{leave:function(e){if(h(e))return v=!0,null}}});if(!v)return t;var b=function(e){return!e.transitiveVars&&(e.transitiveVars=new Set(e.variables),e.removed||e.fragmentSpreads.forEach(function(t){b(s(t)).transitiveVars.forEach(function(t){e.transitiveVars.add(t)})})),e},_=new Set;g.definitions.forEach(function(e){e.kind===Z.Kind.OPERATION_DEFINITION?b(a(e.name&&e.name.value)).fragmentSpreads.forEach(function(e){_.add(e)}):e.kind!==Z.Kind.FRAGMENT_DEFINITION||0!==f||s(e.name.value).removed||_.add(e.name.value)}),_.forEach(function(e){b(s(e)).fragmentSpreads.forEach(function(e){_.add(e)})});var w={enter:function(e){var t;if(t=e.name.value,!_.has(t)||s(t).removed)return null}};return o=(0,M.visit)(g,{FragmentSpread:w,FragmentDefinition:w,OperationDefinition:{leave:function(e){if(e.variableDefinitions){var t=b(a(e.name&&e.name.value)).transitiveVars;if(t.size<e.variableDefinitions.length)return(0,r.__assign)((0,r.__assign)({},e),{variableDefinitions:e.variableDefinitions.filter(function(e){return t.has(e.variable.name.value)})})}}}}),!function e(t,r){return!t||t.selectionSet.selections.every(function(t){return t.kind===Z.Kind.FRAGMENT_SPREAD&&e(r[t.name.value],r)})}((0,l.getOperationDefinition)(o)||(0,l.getFragmentDefinition)(o),(0,et.createFragmentMap)((0,l.getFragmentDefinitions)(o)))?o:null}var eo=Object.assign(function(e){return(0,M.visit)(e,{SelectionSet:{enter:function(e,t,n){if(!n||n.kind!==Z.Kind.OPERATION_DEFINITION){var i=e.selections;if(!(!i||i.some(function(e){return(0,ee.isField)(e)&&("__typename"===e.name.value||0===e.name.value.lastIndexOf("__",0))}))&&!((0,ee.isField)(n)&&n.directives&&n.directives.some(function(e){return"export"===e.name.value})))return(0,r.__assign)((0,r.__assign)({},e),{selections:(0,r.__spreadArray)((0,r.__spreadArray)([],i,!0),[er],!1)})}}}})},{added:function(e){return e===er}});function ea(e){return(0,l.checkDocument)(e),ei([{test:function(e){return"client"===e.name.value},remove:!0}],e)}e.s(["addNonReactiveToNamedFragments",0,function(e){return(0,l.checkDocument)(e),(0,M.visit)(e,{FragmentSpread:function(e){var t;if(null==(t=e.directives)||!t.some(function(e){return"unmask"===e.name.value}))return(0,r.__assign)((0,r.__assign)({},e),{directives:(0,r.__spreadArray)((0,r.__spreadArray)([],e.directives||[],!0),[{kind:Z.Kind.DIRECTIVE,name:{kind:Z.Kind.NAME,value:"nonreactive"}}
14],!1)})}})},"addTypenameToDocument",0,eo,"buildQueryFromSelectionSet",0,function(e){return"query"===(0,l.getMainDefinition)(e).operation?e:(0,M.visit)(e,{OperationDefinition:{enter:function(e){return(0,r.__assign)((0,r.__assign)({},e),{operation:"query"})}}})},"removeClientSetsFromDocument",0,ea,"removeDirectivesFromDocument",0,ei],649429);var es=(0,X.maybe)(function(){return fetch}),eu=function(e){void 0===e&&(e={});var t=e.uri,n=void 0===t?"/graphql":t,i=e.fetch,o=e.print,a=void 0===o?G:o,s=e.includeExtensions,f=e.preserveHeaderCase,p=e.useGETForQueries,h=e.includeUnusedVariables,d=void 0!==h&&h,b=(0,r.__rest)(e,["uri","fetch","print","includeExtensions","preserveHeaderCase","useGETForQueries","includeUnusedVariables"]);!1!==globalThis.__DEV__&&P(i||es);var _={http:{includeExtensions:s,preserveHeaderCase:f},options:b.fetchOptions,credentials:b.credentials,headers:b.headers};return new y(function(e){var t,o,s,f,h,y,b=g(e,n),w=e.getContext(),k={};if(w.clientAwareness){var S=w.clientAwareness,O=S.name,E=S.version;O&&(k["apollographql-client-name"]=O),E&&(k["apollographql-client-version"]=E)}var R=(0,r.__assign)((0,r.__assign)({},k),w.headers),x={http:w.http,options:w.fetchOptions,credentials:w.credentials,headers:R};if((0,v.hasDirectives)(["client"],e.query)){!1!==globalThis.__DEV__&&!1!==globalThis.__DEV__&&u.invariant.warn(52);var P=ea(e.query);if(!P)return Y(Error("HttpLink: Trying to send a client-only query to the server. To send to the server, ensure a non-client field is added to the query or set the `transformOptions.removeClientFields` option to `true`."));e.query=P}var I=$(e,a,K,_,x),F=I.options,A=I.body;A.variables&&!d&&(t=A.variables,o=e.query,s=(0,r.__assign)({},t),f=new Set(Object.keys(t)),(0,M.visit)(o,{Variable:function(e,t,r){r&&"VariableDefinition"!==r.kind&&f.delete(e.name.value)}}),f.forEach(function(e){delete s[e]}),A.variables=s),!F.signal&&"u">typeof AbortController&&(F.signal=(y=new AbortController).signal);var N="OperationDefinition"===(h=(0,l.getMainDefinition)(e.query)).kind&&"subscription"===h.operation,j=(0,v.hasDirectives)(["defer"],e.query);if(p&&!e.query.definitions.some(function(e){return"OperationDefinition"===e.kind&&"mutation"===e.operation})&&(F.method="GET"),j||N){F.headers=F.headers||{};var q="multipart/mixed;";N&&j&&!1!==globalThis.__DEV__&&u.invariant.warn(53),N?q+="boundary=graphql;subscriptionSpec=1.0,application/json":j&&(q+="deferSpec=20220824,application/json"),F.headers.accept=q}if("GET"===F.method){var Q=J(b,A),V=Q.newURI,L=Q.parseError;if(L)return Y(L);b=V}else try{F.body=m(A,"Payload")}catch(e){return Y(e)}return new c.Observable(function(t){var r=i||(0,X.maybe)(function(){return fetch})||es,n=t.next.bind(t);return r(b,F).then(function(t){e.setContext({response:t});var r,i=null==(r=t.headers)?void 0:r.get("content-type");return null!==i&&/^multipart\/mixed/i.test(i)?T(t,n):D(e)(t).then(n)}).then(function(){y=void 0,t.complete()}).catch(function(e){y=void 0,C(e,t)}),function(){y&&y.abort()}})})};e.s(["createHttpLink",0,eu],209698);var ec=function(e){function t(t){void 0===t&&(t={});var r=e.call(this,eu(t).request)||this;return r.options=t,r}return(0,r.__extends)(t,e),t}(y);e.s(["HttpLink",0,ec],71596)},365777,(e,t,r)=>{t.exports=e.r(879466)}]);

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.