PageSourceSearch

https://sparkbox.com/_next/static/chunks/pages/_app-c174658567884ab8.js

js sparkbox.com collected 2026-10-02 07:19:35 UTC 282,576 bytes, 13 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[888],{2924:function(e,t,n){"use strict";var r="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:{};function unwrapExports(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function createCommonjsModule(e,t){return e(t={exports:{}},t.exports),t.exports}var i=createCommonjsModule(function(e,t){var n;Object.defineProperty(t,"__esModule",{value:!0}),t.BLOCKS=void 0,(n=t.BLOCKS||(t.BLOCKS={})).DOCUMENT="document",n.PARAGRAPH="paragraph",n.HEADING_1="heading-1",n.HEADING_2="heading-2",n.HEADING_3="heading-3",n.HEADING_4="heading-4",n.HEADING_5="heading-5",n.HEADING_6="heading-6",n.OL_LIST="ordered-list",n.UL_LIST="unordered-list",n.LIST_ITEM="list-item",n.HR="hr",n.QUOTE="blockquote",n.EMBEDDED_ENTRY="embedded-entry-block",n.EMBEDDED_ASSET="embedded-asset-block",n.EMBEDDED_RESOURCE="embedded-resource-block",n.TABLE="table",n.TABLE_ROW="table-row",n.TABLE_CELL="table-cell",n.TABLE_HEADER_CELL="table-header-cell"});unwrapExports(i),i.BLOCKS;var o=createCommonjsModule(function(e,t){var n;Object.defineProperty(t,"__esModule",{value:!0}),t.INLINES=void 0,(n=t.INLINES||(t.INLINES={})).HYPERLINK="hyperlink",n.ENTRY_HYPERLINK="entry-hyperlink",n.ASSET_HYPERLINK="asset-hyperlink",n.RESOURCE_HYPERLINK="resource-hyperlink",n.EMBEDDED_ENTRY="embedded-entry-inline",n.EMBEDDED_RESOURCE="embedded-resource-inline"});unwrapExports(o),o.INLINES;var a=createCommonjsModule(function(e,t){var n,r;Object.defineProperty(t,"__esModule",{value:!0}),(r=n||(n={})).BOLD="bold",r.ITALIC="italic",r.UNDERLINE="underline",r.CODE="code",r.SUPERSCRIPT="superscript",r.SUBSCRIPT="subscript",t.default=n});unwrapExports(a);var s=createCommonjsModule(function(e,t){var n,s=r&&r.__spreadArray||function(e,t,n){if(n||2==arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))},c=r&&r.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.V1_MARKS=t.V1_NODE_TYPES=t.TEXT_CONTAINERS=t.HEADINGS=t.CONTAINERS=t.VOID_BLOCKS=t.TABLE_BLOCKS=t.LIST_ITEM_BLOCKS=t.TOP_LEVEL_BLOCKS=void 0;var l=c(a);t.TOP_LEVEL_BLOCKS=[i.BLOCKS.PARAGRAPH,i.BLOCKS.HEADING_1,i.BLOCKS.HEADING_2,i.BLOCKS.HEADING_3,i.BLOCKS.HEADING_4,i.BLOCKS.HEADING_5,i.BLOCKS.HEADING_6,i.BLOCKS.OL_LIST,i.BLOCKS.UL_LIST,i.BLOCKS.HR,i.BLOCKS.QUOTE,i.BLOCKS.EMBEDDED_ENTRY,i.BLOCKS.EMBEDDED_ASSET,i.BLOCKS.EMBEDDED_RESOURCE,i.BLOCKS.TABLE],t.LIST_ITEM_BLOCKS=[i.BLOCKS.PARAGRAPH,i.BLOCKS.HEADING_1,i.BLOCKS.HEADING_2,i.BLOCKS.HEADING_3,i.BLOCKS.HEADING_4,i.BLOCKS.HEADING_5,i.BLOCKS.HEADING_6,i.BLOCKS.OL_LIST,i.BLOCKS.UL_LIST,i.BLOCKS.HR,i.BLOCKS.QUOTE,i.BLOCKS.EMBEDDED_ENTRY,i.BLOCKS.EMBEDDED_ASSET,i.BLOCKS.EMBEDDED_RESOURCE],t.TABLE_BLOCKS=[i.BLOCKS.TABLE,i.BLOCKS.TABLE_ROW,i.BLOCKS.TABLE_CELL,i.BLOCKS.TABLE_HEADER_CELL],t.VOID_BLOCKS=[i.BLOCKS.HR,i.BLOCKS.EMBEDDED_ENTRY,i.BLOCKS.EMBEDDED_ASSET,i.BLOCKS.EMBEDDED_RESOURCE],t.CONTAINERS=((n={})[i.BLOCKS.OL_LIST]=[i.BLOCKS.LIST_ITEM],n[i.BLOCKS.UL_LIST]=[i.BLOCKS.LIST_ITEM],n[i.BLOCKS.LIST_ITEM]=t.LIST_ITEM_BLOCKS,n[i.BLOCKS.QUOTE]=[i.BLOCKS.PARAGRAPH],n[i.BLOCKS.TABLE]=[i.BLOCKS.TABLE_ROW],n[i.BLOCKS.TABLE_ROW]=[i.BLOCKS.TABLE_CELL,i.BLOCKS.TABLE_HEADER_CELL],n[i.BLOCKS.TABLE_CELL]=[i.BLOCKS.PARAGRAPH],n[i.BLOCKS.TABLE_HEADER_CELL]=[i.BLOCKS.PARAGRAPH],n),t.HEADINGS=[i.BLOCKS.HEADING_1,i.BLOCKS.HEADING_2,i.BLOCKS.HEADING_3,i.BLOCKS.HEADING_4,i.BLOCKS.HEADING_5,i.BLOCKS.HEADING_6],t.TEXT_CONTAINERS=s([i.BLOCKS.PARAGRAPH],t.HEADINGS,!0),t.V1_NODE_TYPES=[i.BLOCKS.DOCUMENT,i.BLOCKS.PARAGRAPH,i.BLOCKS.HEADING_1,i.BLOCKS.HEADING_2,i.BLOCKS.HEADING_3,i.BLOCKS.HEADING_4,i.BLOCKS.HEADING_5,i.BLOCKS.HEADING_6,i.BLOCKS.OL_LIST,i.BLOCKS.UL_LIST,i.BLOCKS.LIST_ITEM,i.BLOCKS.HR,i.BLOCKS.QUOTE,i.BLOCKS.EMBEDDED_ENTRY,i.BLOCKS.EMBEDDED_ASSET,o.INLINES.HYPERLINK,o.INLINES.ENTRY_HYPERLINK,o.INLINES.ASSET_HYPERLINK,o.INLINES.EMBEDDED_ENTRY,"text"],t.V1_MARKS=[l.default.BOLD,l.default.CODE,l.default.ITALIC,l.default.UNDERLINE]});unwrapExports(s),s.V1_MARKS,s.V1_NODE_TYPES,s.TEXT_CONTAINERS,s.HEADINGS,s.
1CONTAINERS,s.VOID_BLOCKS,s.TABLE_BLOCKS,s.LIST_ITEM_BLOCKS,s.TOP_LEVEL_BLOCKS;var c=createCommonjsModule(function(e,t){Object.defineProperty(t,"__esModule",{value:!0})});unwrapExports(c);var l=createCommonjsModule(function(e,t){Object.defineProperty(t,"__esModule",{value:!0})});unwrapExports(l);var u=createCommonjsModule(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n={nodeType:i.BLOCKS.DOCUMENT,data:{},content:[{nodeType:i.BLOCKS.PARAGRAPH,data:{},content:[{nodeType:"text",value:"",marks:[],data:{}}]}]};t.default=n});unwrapExports(u);var f=createCommonjsModule(function(e,t){function hasValue(e,t){for(var n=0,r=Object.keys(e);n<r.length;n++)if(t===e[r[n]])return!0;return!1}Object.defineProperty(t,"__esModule",{value:!0}),t.isText=t.isBlock=t.isInline=void 0,t.isInline=function(e){return hasValue(o.INLINES,e.nodeType)},t.isBlock=function(e){return hasValue(i.BLOCKS,e.nodeType)},t.isText=function(e){return"text"===e.nodeType}});unwrapExports(f),f.isText,f.isBlock,f.isInline;var p=createCommonjsModule(function(e,t){var n=r&&r.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),p=r&&r.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),d=r&&r.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)},h=r&&r.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return p(t,e),t},y=r&&r.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.helpers=t.EMPTY_DOCUMENT=t.MARKS=t.INLINES=t.BLOCKS=void 0,Object.defineProperty(t,"BLOCKS",{enumerable:!0,get:function(){return i.BLOCKS}}),Object.defineProperty(t,"INLINES",{enumerable:!0,get:function(){return o.INLINES}}),Object.defineProperty(t,"MARKS",{enumerable:!0,get:function(){return y(a).default}}),d(s,t),d(c,t),d(l,t),Object.defineProperty(t,"EMPTY_DOCUMENT",{enumerable:!0,get:function(){return y(u).default}});var m=h(f);t.helpers=m});unwrapExports(p),p.helpers,p.EMPTY_DOCUMENT,p.MARKS,p.INLINES,p.BLOCKS},549:function(e,t){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.BLOCKS=void 0,(n=t.BLOCKS||(t.BLOCKS={})).DOCUMENT="document",n.PARAGRAPH="paragraph",n.HEADING_1="heading-1",n.HEADING_2="heading-2",n.HEADING_3="heading-3",n.HEADING_4="heading-4",n.HEADING_5="heading-5",n.HEADING_6="heading-6",n.OL_LIST="ordered-list",n.UL_LIST="unordered-list",n.LIST_ITEM="list-item",n.HR="hr",n.QUOTE="blockquote",n.EMBEDDED_ENTRY="embedded-entry-block",n.EMBEDDED_ASSET="embedded-asset-block",n.EMBEDDED_RESOURCE="embedded-resource-block",n.TABLE="table",n.TABLE_ROW="table-row",n.TABLE_CELL="table-cell",n.TABLE_HEADER_CELL="table-header-cell"},1928:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(549),i={nodeType:r.BLOCKS.DOCUMENT,data:{},content:[{nodeType:r.BLOCKS.PARAGRAPH,data:{},content:[{nodeType:"text",value:"",marks:[],data:{}}]}]};t.default=i},6061:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isText=t.isBlock=t.isInline=void 0;var r=n(549),i=n(7845);function hasValue(e,t){for(var n=0,r=Object.keys(e);n<r.length;n++)if(t===e[r[n]])return!0;return!1}t.isInline=function(e){return hasValue(i.INLINES,e.nodeType)},t.isBlock=function(e){return hasValue(r.BLOCKS,e.nodeType)},t.isText=function(e){return"text"===e.nodeType}},6437:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)}
1,a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t},s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.helpers=t.EMPTY_DOCUMENT=t.MARKS=t.INLINES=t.BLOCKS=void 0;var c=n(549);Object.defineProperty(t,"BLOCKS",{enumerable:!0,get:function(){return c.BLOCKS}});var l=n(7845);Object.defineProperty(t,"INLINES",{enumerable:!0,get:function(){return l.INLINES}});var u=n(1376);Object.defineProperty(t,"MARKS",{enumerable:!0,get:function(){return s(u).default}}),o(n(7951),t),o(n(167),t),o(n(1911),t);var f=n(1928);Object.defineProperty(t,"EMPTY_DOCUMENT",{enumerable:!0,get:function(){return s(f).default}});var p=a(n(6061));t.helpers=p},7845:function(e,t){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.INLINES=void 0,(n=t.INLINES||(t.INLINES={})).HYPERLINK="hyperlink",n.ENTRY_HYPERLINK="entry-hyperlink",n.ASSET_HYPERLINK="asset-hyperlink",n.RESOURCE_HYPERLINK="resource-hyperlink",n.EMBEDDED_ENTRY="embedded-entry-inline",n.EMBEDDED_RESOURCE="embedded-resource-inline"},1376:function(e,t){"use strict";var n,r;Object.defineProperty(t,"__esModule",{value:!0}),(r=n||(n={})).BOLD="bold",r.ITALIC="italic",r.UNDERLINE="underline",r.CODE="code",r.SUPERSCRIPT="superscript",r.SUBSCRIPT="subscript",t.default=n},1911:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7951:function(e,t,n){"use strict";var r,i=this&&this.__spreadArray||function(e,t,n){if(n||2==arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.V1_MARKS=t.V1_NODE_TYPES=t.TEXT_CONTAINERS=t.HEADINGS=t.CONTAINERS=t.VOID_BLOCKS=t.TABLE_BLOCKS=t.LIST_ITEM_BLOCKS=t.TOP_LEVEL_BLOCKS=void 0;var a=n(549),s=n(7845),c=o(n(1376));t.TOP_LEVEL_BLOCKS=[a.BLOCKS.PARAGRAPH,a.BLOCKS.HEADING_1,a.BLOCKS.HEADING_2,a.BLOCKS.HEADING_3,a.BLOCKS.HEADING_4,a.BLOCKS.HEADING_5,a.BLOCKS.HEADING_6,a.BLOCKS.OL_LIST,a.BLOCKS.UL_LIST,a.BLOCKS.HR,a.BLOCKS.QUOTE,a.BLOCKS.EMBEDDED_ENTRY,a.BLOCKS.EMBEDDED_ASSET,a.BLOCKS.EMBEDDED_RESOURCE,a.BLOCKS.TABLE],t.LIST_ITEM_BLOCKS=[a.BLOCKS.PARAGRAPH,a.BLOCKS.HEADING_1,a.BLOCKS.HEADING_2,a.BLOCKS.HEADING_3,a.BLOCKS.HEADING_4,a.BLOCKS.HEADING_5,a.BLOCKS.HEADING_6,a.BLOCKS.OL_LIST,a.BLOCKS.UL_LIST,a.BLOCKS.HR,a.BLOCKS.QUOTE,a.BLOCKS.EMBEDDED_ENTRY,a.BLOCKS.EMBEDDED_ASSET,a.BLOCKS.EMBEDDED_RESOURCE],t.TABLE_BLOCKS=[a.BLOCKS.TABLE,a.BLOCKS.TABLE_ROW,a.BLOCKS.TABLE_CELL,a.BLOCKS.TABLE_HEADER_CELL],t.VOID_BLOCKS=[a.BLOCKS.HR,a.BLOCKS.EMBEDDED_ENTRY,a.BLOCKS.EMBEDDED_ASSET,a.BLOCKS.EMBEDDED_RESOURCE],t.CONTAINERS=((r={})[a.BLOCKS.OL_LIST]=[a.BLOCKS.LIST_ITEM],r[a.BLOCKS.UL_LIST]=[a.BLOCKS.LIST_ITEM],r[a.BLOCKS.LIST_ITEM]=t.LIST_ITEM_BLOCKS,r[a.BLOCKS.QUOTE]=[a.BLOCKS.PARAGRAPH],r[a.BLOCKS.TABLE]=[a.BLOCKS.TABLE_ROW],r[a.BLOCKS.TABLE_ROW]=[a.BLOCKS.TABLE_CELL,a.BLOCKS.TABLE_HEADER_CELL],r[a.BLOCKS.TABLE_CELL]=[a.BLOCKS.PARAGRAPH],r[a.BLOCKS.TABLE_HEADER_CELL]=[a.BLOCKS.PARAGRAPH],r),t.HEADINGS=[a.BLOCKS.HEADING_1,a.BLOCKS.HEADING_2,a.BLOCKS.HEADING_3,a.BLOCKS.HEADING_4,a.BLOCKS.HEADING_5,a.BLOCKS.HEADING_6],t.TEXT_CONTAINERS=i([a.BLOCKS.PARAGRAPH],t.HEADINGS,!0),t.V1_NODE_TYPES=[a.BLOCKS.DOCUMENT,a.BLOCKS.PARAGRAPH,a.BLOCKS.HEADING_1,a.BLOCKS.HEADING_2,a.BLOCKS.HEADING_3,a.BLOCKS.HEADING_4,a.BLOCKS.HEADING_5,a.BLOCKS.HEADING_6,a.BLOCKS.OL_LIST,a.BLOCKS.UL_LIST,a.BLOCKS.LIST_ITEM,a.BLOCKS.HR,a.BLOCKS.QUOTE,a.BLOCKS.EMBEDDED_ENTRY,a.BLOCKS.EMBEDDED_ASSET,s.INLINES.HYPERLINK,s.INLINES.ENTRY_HYPERLINK,s.INLINES.ASSET_HYPERLINK,s.INLINES.EMBEDDED_ENTRY,"text"],t.V1_MARKS=[c.default.BOLD,c.default.CODE,c.default.ITALIC,c.default.UNDERLINE]},167:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7697:function(e,t,n){"use strict";n.d(t,{k:function(){return CtaLinkButton},Z:function(){return c}});var r=n(9499),i=n(4730),o=n(7294),a=n(5893);function ownKeys(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function _objectSpread(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
1t%2?ownKeys(Object(n),!0).forEach(function(t){(0,r.Z)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ownKeys(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var ArrowIcon=function(e){var t=e.className,n=void 0===t?"":t,r=e.size,i=e.direction,s=(0,o.useId)(),c=r?{width:r,height:r}:{};return(0,a.jsx)("svg",_objectSpread(_objectSpread({viewBox:"-2 -2 24 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"arrow-icon arrow-icon--".concat(void 0===i?"right":i," ").concat(n).trim(),id:s,role:"presentation","aria-hidden":"true"},c),{},{children:(0,a.jsx)("path",{d:"M20 8.68589L19.2505 7.93644L12.1969 0.882812L10.709 2.38171L15.9552 7.62785L0.161621 7.62785L0.161621 9.74394H15.9552L10.709 14.9901L12.1969 16.489L19.2505 9.43534L20 8.68589Z",fill:"currentColor"})}))},PlayIcon=function(e){var t=e.className,n=e.size,r=void 0===n?20:n,i=(0,o.useId)();return(0,a.jsx)("svg",{width:r,height:r,viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:void 0===t?"":t,id:i,role:"presentation","aria-hidden":"true",children:(0,a.jsx)("path",{d:"M9 1.71185C10.4834 1.71185 11.9334 2.15172 13.1668 2.97583C14.4002 3.79995 15.3615 4.9713 15.9292 6.34176C16.4968 7.71222 16.6453 9.22023 16.356 10.6751C16.0666 12.13 15.3523 13.4664 14.3034 14.5153C13.2544 15.5642 11.9181 16.2785 10.4632 16.5679C9.00832 16.8573 7.50031 16.7087 6.12985 16.1411C4.75939 15.5734 3.58804 14.6121 2.76392 13.3787C1.93981 12.1453 1.49994 10.6953 1.49994 9.21191C1.50216 7.22345 2.29305 5.31707 3.69911 3.91102C5.10516 2.50496 7.01154 1.71407 9 1.71185ZM9 0.211914C7.21997 0.211914 5.47991 0.739755 3.99987 1.72869C2.51983 2.71762 1.36628 4.12323 0.685088 5.76776C0.00389957 7.4123 -0.17433 9.2219 0.172936 10.9677C0.520203 12.7136 1.37737 14.3172 2.63604 15.5759C3.89471 16.8345 5.49836 17.6917 7.24419 18.039C8.99002 18.3862 10.7996 18.208 12.4442 17.5268C14.0887 16.8456 15.4943 15.6921 16.4832 14.212C17.4722 12.732 18 10.9919 18 9.21191C18 6.82497 17.0518 4.53578 15.364 2.84795C13.6761 1.16013 11.3869 0.211914 9 0.211914ZM6.75 12.9618V5.46198L13.5 9.32134L6.75 12.9618Z",fill:"currentColor"})})},getIcon=function(e,t,n){var r,i;switch(e){case"arrow":return(0,a.jsx)(ArrowIcon,{direction:null!==(r=null==n?void 0:n.arrowDirection)&&void 0!==r?r:"top-right",className:t});case"play":return(0,a.jsx)(PlayIcon,{size:null!==(i=null==n?void 0:n.playSize)&&void 0!==i?i:20,className:t});default:return null}},s=["arrowDirection","className","href","iconName","size","text","variant"];function cta_link_button_ownKeys(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function cta_link_button_objectSpread(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?cta_link_button_ownKeys(Object(n),!0).forEach(function(t){(0,r.Z)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cta_link_button_ownKeys(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var CtaLinkButton=function(e){var t=e.arrowDirection,n=e.className,r=e.href,o=e.iconName,c=e.size,l=e.text,u=e.variant,f=(0,i.Z)(e,s),p="".concat("cmp-cta-link-button"," ").concat("cmp-cta-link-button--".concat(void 0===u?"primary":u)," ").concat("small"===c?"cmp-cta-link-button--small":""," ").concat(n||"").trim(),d=o?getIcon(o,"cmp-cta-link-button__icon",{arrowDirection:t}):null;return r?(0,a.jsxs)("a",cta_link_button_objectSpread(cta_link_button_objectSpread({href:r,className:p},f),{},{children:[(0,a.jsx)("span",{className:"cmp-cta-link-button__text",children:l}),d]})):(0,a.jsxs)("button",cta_link_button_objectSpread(cta_link_button_objectSpread({className:p},f),{},{children:[(0,a.jsx)("span",{className:"cmp-cta-link-button__text",children:l}),d]}))},c=CtaLinkButton},1640:function(e,t,n){"use strict";n.d(t,{Z:function(){return EmailSignupFormNewsletter}});var r=n(9689),i=n(5893),o=[{categoryId:"de06b2adf2",categoryWebId:"380015",interestId:"494c8f0d1d",interestWebId:"512"}];function EmailSignupFormNewsletter(e){return(0,i.jsx)(r.Z,{buttonModifier:e.buttonModifier,formClasses:e.formClasses,ariaLabeledBy:e.ariaLabeledBy,ctaText:e.ctaText,listId:"2835f91fa5",interests:o})}},9689:function(e,t,n){"use strict";n.d(t,{Z:function(){return EmailSignupForm}});var r=n(9499),i=n(29),o=n(7794),a=n.n(o),s=n(7294),c=n(9332),l=n(5893);function ownKeys(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function _objectSpread(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
1t%2?ownKeys(Object(n),!0).forEach(function(t){(0,r.Z)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ownKeys(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function EmailSignupForm(e){var t,n=e.listId,r=e.interests,o=e.formClasses,u=e.buttonModifier,f=e.ariaLabeledBy,p=e.ctaText,d=void 0===p?"Subscribe":p,h=e.displayNameField,y=e.emailFieldLabel,m=(0,s.useState)(""),v=m[0],g=m[1],b=(0,s.useState)(!1),_=b[0],E=b[1],O=(0,s.useId)(),S=(0,c.usePathname)(),w=f?{"aria-labelledby":f}:{"aria-label":"email signup form"};if(!n)return null;var C=(t=(0,i.Z)(a().mark(function _callee(e){var t,i,o,s;return a().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return e.preventDefault(),g(""),E(!1),o={listId:n,name:null!==(t=null===(i=e.target.NAME)||void 0===i?void 0:i.value)&&void 0!==t?t:null,email:e.target.EMAIL.value,honeypot:e.target["b_c2fcafb7ccc2db34e99075bb1_".concat(n)].value,signupLocation:e.target.SIGNUP.value,interests:r},a.next=6,fetch("/api/email-signup",{body:JSON.stringify(o),headers:{"Content-Type":"application/json"},method:"POST"}).then(function(e){return e.json()});case 6:if(!(s=a.sent).error){a.next=10;break}return g(s.error),a.abrupt("return");case 10:if(s.success){a.next=13;break}return g("An unknown error occurred. Please try again later."),a.abrupt("return");case 13:E(!0);case 14:case"end":return a.stop()}},_callee)})),function(e){return t.apply(this,arguments)});return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)("form",_objectSpread(_objectSpread({action:"https://sparkbox.us1.list-manage.com/subscribe/post?u=c2fcafb7ccc2db34e99075bb1&amp;id=".concat(n,"&amp;f_id=00847ae1f0"),method:"post",id:"mc-embedded-subscribe-form-".concat(O),name:"mc-embedded-subscribe-form",className:"cmp-email-signup validate ".concat(o),target:"_blank"},w),{},{"data-testid":"email-signup-form",onSubmit:C,children:[(0,l.jsx)("div",{style:{position:"absolute",left:"-5000px"},"aria-hidden":"true",children:(0,l.jsx)("input",{type:"text",name:"b_c2fcafb7ccc2db34e99075bb1_".concat(n),tabIndex:-1,defaultValue:""})}),(0,l.jsxs)("div",{className:"cmp-email-signup__container",children:[h&&(0,l.jsxs)("div",{className:"mc-field-group cmp-email-signup__input-wrapper",children:[(0,l.jsx)("label",{htmlFor:"mce-NAME-".concat(O),className:"cmp-text-13",children:"Name"}),(0,l.jsx)("input",{type:"text",defaultValue:"",name:"NAME",id:"mce-NAME-".concat(O)})]}),(0,l.jsxs)("div",{className:"mc-field-group cmp-email-signup__input-wrapper",children:[y?(0,l.jsx)("label",{htmlFor:"mce-EMAIL-".concat(O),className:"cmp-text-13",children:y}):(0,l.jsx)("label",{htmlFor:"mce-EMAIL-".concat(O),className:"util-visually-hidden",children:"Email required to sign up for email updates"}),(0,l.jsx)("input",{type:"email",defaultValue:"",name:"EMAIL",placeholder:"[email protected]",id:"mce-EMAIL-".concat(O),required:!0})]}),(0,l.jsx)("div",{className:"mc-field-group util-visually-hidden",children:(0,l.jsx)("input",{type:"text",tabIndex:-1,defaultValue:"https://sparkbox.com".concat(S),name:"SIGNUP",hidden:!0})}),(0,l.jsx)("div",{className:"mc-field-group util-visually-hidden",children:null!=r&&r.length?r.map(function(e){return e.categoryWebId&&e.interestWebId?(0,l.jsx)("input",{type:"checkbox",tabIndex:-1,name:"group[".concat(e.categoryWebId,"][").concat(e.interestWebId,"]"),defaultValue:e.interestWebId,defaultChecked:!0,hidden:!0},"".concat(e.categoryWebId,".").concat(e.interestWebId)):null}):null}),(0,l.jsx)("div",{className:"mc-field-group cmp-email-signup__submit-wrapper",children:(0,l.jsx)("button",{type:"submit",name:"subscribe",className:"footer"===u?"cmp-footer__button":"cmp-button ".concat(u?"cmp-button--".concat(u):""," util-font-sans--bold"),"data-content":d,children:"footer"===u?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("span",{className:"util-visually-hidden",children:d}),(0,l.jsx)("svg",{width:"20",height:"16",viewBox:"0 0 20 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,l.jsx)("path",{d:"M19.8384 7.80308L19.0889 7.05363L12.0353 0L10.5474 1.4989L15.7935 6.74503L0 6.74503L0 8.86112H15.7935L10.5474 14.1073L12.0353 15.6062L19.0889 8.55253L19.8384 7.80308Z",fill:"currentColor"})})]}):d})})]})]})),(0,l.jsxs)("div",{className:"cmp-email-signup__responses",children:[v&&(0,l.jsx)("div",{className:"cmp-email-signup__response cmp-email-signup__response--error",children:v}),_&&(0,l.jsx)("div",{className:"cmp-email-signup__response",children:"Almost finished... We need to confirm your email address. To complete the subscription process, please click the link in the email we just sent you."})]})]})}},5935:function(e,t,n){"use strict";var r=n(3227),i=n(8361);
1Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"createAsyncLocalStorage",{enumerable:!0,get:function(){return createAsyncLocalStorage}});var o=Error("Invariant: AsyncLocalStorage accessed in runtime where it is not available"),a=function(){function FakeAsyncLocalStorage(){r(this,FakeAsyncLocalStorage)}return i(FakeAsyncLocalStorage,[{key:"disable",value:function(){throw o}},{key:"getStore",value:function(){}},{key:"run",value:function(){throw o}},{key:"exit",value:function(){throw o}},{key:"enterWith",value:function(){throw o}}]),FakeAsyncLocalStorage}(),s=globalThis.AsyncLocalStorage;function createAsyncLocalStorage(){return s?new s:new a}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},634:function(e,t,n){"use strict";function clientHookInServerComponentError(e){}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"clientHookInServerComponentError",{enumerable:!0,get:function(){return clientHookInServerComponentError}}),n(8754),n(7294),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},4903:function(e,t,n){"use strict";var r=n(3227),i=n(8361);Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{ReadonlyURLSearchParams:function(){return h},useSearchParams:function(){return _useSearchParams},usePathname:function(){return _usePathname},ServerInsertedHTMLContext:function(){return u.ServerInsertedHTMLContext},useServerInsertedHTML:function(){return u.useServerInsertedHTML},useRouter:function(){return _useRouter},useParams:function(){return _useParams},useSelectedLayoutSegments:function(){return _useSelectedLayoutSegments},useSelectedLayoutSegment:function(){return _useSelectedLayoutSegment},redirect:function(){return f.redirect},permanentRedirect:function(){return f.permanentRedirect},RedirectType:function(){return f.RedirectType},notFound:function(){return p.notFound}});var o=n(7294),a=n(8651),s=n(3659),c=n(634),l=n(1531),u=n(3137),f=n(1523),p=n(7770),d=Symbol("internal for urlsearchparams readonly");function readonlyURLSearchParamsError(){return Error("ReadonlyURLSearchParams cannot be modified")}var h=function(e){function _ReadonlyURLSearchParams(e){r(this,_ReadonlyURLSearchParams),this[d]=e,this.entries=e.entries.bind(e),this.forEach=e.forEach.bind(e),this.get=e.get.bind(e),this.getAll=e.getAll.bind(e),this.has=e.has.bind(e),this.keys=e.keys.bind(e),this.values=e.values.bind(e),this.toString=e.toString.bind(e),this.size=e.size}return i(_ReadonlyURLSearchParams,[{key:e,value:function(){return this[d][Symbol.iterator]()}},{key:"append",value:function(){throw readonlyURLSearchParamsError()}},{key:"delete",value:function(){throw readonlyURLSearchParamsError()}},{key:"set",value:function(){throw readonlyURLSearchParamsError()}},{key:"sort",value:function(){throw readonlyURLSearchParamsError()}}]),_ReadonlyURLSearchParams}(Symbol.iterator);function _useSearchParams(){(0,c.clientHookInServerComponentError)("useSearchParams");var e=(0,o.useContext)(s.SearchParamsContext);return(0,o.useMemo)(function(){return e?new h(e):null},[e])}function _usePathname(){return(0,c.clientHookInServerComponentError)("usePathname"),(0,o.useContext)(s.PathnameContext)}function _useRouter(){(0,c.clientHookInServerComponentError)("useRouter");var e=(0,o.useContext)(a.AppRouterContext);if(null===e)throw Error("invariant expected app router to be mounted");return e}function _useParams(){(0,c.clientHookInServerComponentError)("useParams");var e=(0,o.useContext)(a.GlobalLayoutRouterContext),t=(0,o.useContext)(s.PathParamsContext);return(0,o.useMemo)(function(){return(null==e?void 0:e.tree)?function getSelectedParams(e,t){void 0===t&&(t={});for(var n=e[1],r=0,i=Object.values(n);r<i.length;r++){var o=i[r],a=o[0],s=Array.isArray(a),c=s?a[1]:a;!c||c.startsWith("__PAGE__")||(s&&("c"===a[2]||"oc"===a[2])?t[a[0]]=a[1].split("/"):s&&(t[a[0]]=a[1]),t=getSelectedParams(o,t))}return t}(e.tree):t},[null==e?void 0:e.tree,t])}function _useSelectedLayoutSegments(e){return void 0===e&&(e="children"),(0,c.clientHookInServerComponentError)("use
1SelectedLayoutSegments"),function getSelectedLayoutSegmentPath(e,t,n,r){if(void 0===n&&(n=!0),void 0===r&&(r=[]),n)i=e[1][t];else{var i,o,a=e[1];i=null!=(o=a.children)?o:Object.values(a)[0]}if(!i)return r;var s=i[0],c=(0,l.getSegmentValue)(s);return!c||c.startsWith("__PAGE__")?r:(r.push(c),getSelectedLayoutSegmentPath(i,t,!1,r))}((0,o.useContext)(a.LayoutRouterContext).tree,e)}function _useSelectedLayoutSegment(e){void 0===e&&(e="children"),(0,c.clientHookInServerComponentError)("useSelectedLayoutSegment");var t=_useSelectedLayoutSegments(e);return 0===t.length?null:t[0]}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},7770:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{notFound:function(){return _notFound},isNotFoundError:function(){return _isNotFoundError}});var n="NEXT_NOT_FOUND";function _notFound(){var e=Error(n);throw e.digest=n,e}function _isNotFoundError(e){return(null==e?void 0:e.digest)===n}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},1523:function(e,t,n){"use strict";var r,i,o=n(5696);Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{RedirectType:function(){return i},getRedirectError:function(){return _getRedirectError},redirect:function(){return _redirect},permanentRedirect:function(){return _permanentRedirect},isRedirectError:function(){return _isRedirectError},getURLFromRedirectError:function(){return _getURLFromRedirectError},getRedirectTypeFromError:function(){return _getRedirectTypeFromError}});var a=n(2211),s="NEXT_REDIRECT";function _getRedirectError(e,t,n){void 0===n&&(n=!1);var r=Error(s);r.digest=s+";"+t+";"+e+";"+n;var i=a.requestAsyncStorage.getStore();return i&&(r.mutableCookies=i.mutableCookies),r}function _redirect(e,t){throw void 0===t&&(t="replace"),_getRedirectError(e,t,!1)}function _permanentRedirect(e,t){throw void 0===t&&(t="replace"),_getRedirectError(e,t,!0)}function _isRedirectError(e){if("string"!=typeof(null==e?void 0:e.digest))return!1;var t=o(e.digest.split(";",4),4),n=t[0],r=t[1],i=t[2],a=t[3];return n===s&&("replace"===r||"push"===r)&&"string"==typeof i&&("true"===a||"false"===a)}function _getURLFromRedirectError(e){return _isRedirectError(e)?e.digest.split(";",3)[2]:null}function _getRedirectTypeFromError(e){if(!_isRedirectError(e))throw Error("Not a redirect error");return e.digest.split(";",3)[1]}(r=i||(i={})).push="push",r.replace="replace",("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},2211:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"requestAsyncStorage",{enumerable:!0,get:function(){return r}});var r=(0,n(5935).createAsyncLocalStorage)();("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},1531:function(e,t){"use strict";function getSegmentValue(e){return Array.isArray(e)?e[1]:e}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getSegmentValue",{enumerable:!0,get:function(){return getSegmentValue}}),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},1137:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{PrefetchKind:function(){return r},ACTION_REFRESH:function(){return i},ACTION_NAVIGATE:function(){return o},ACTION_RESTORE:function(){return a},ACTION_SERVER_PATCH:function(){return s},ACTION_PREFETCH:function(){return c},ACTION_FAST_REFRESH:function(){return l},ACTION_SERVER_ACTION:function(){return u}});var n,r,i="refresh",o="navigate",a="restore",s="server-patch",c="prefetch",l="fast-refresh",u="server-action";(n=r||(r={})).AUTO="auto",n.FULL="full",n.TEMPORARY="temporary",("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esMo
1dule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},9642:function(e,t,n){"use strict";function getDomainLocale(e,t,n,r){return!1}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getDomainLocale",{enumerable:!0,get:function(){return getDomainLocale}}),n(9086),("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},3366:function(e,t,n){"use strict";var r=n(930),i=n(5696),o=n(3323),a=["href","as","children","prefetch","passHref","replace","shallow","scroll","locale","onClick","onMouseEnter","onTouchStart","legacyBehavior"];function ownKeys(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function _objectSpread(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(Object(n),!0).forEach(function(t){r(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ownKeys(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return _}});var s=n(8754)._(n(7294)),c=n(9530),l=n(9270),u=n(6788),f=n(3819),p=n(8739),d=n(6643),h=n(8651),y=n(1063),m=n(9642),v=n(246),g=n(1137),b=new Set;function prefetch(e,t,n,r,i,o){if(o||(0,l.isLocalURL)(t)){if(!r.bypassPrefetchedCheck){var a=t+"%"+n+"%"+(void 0!==r.locale?r.locale:"locale"in e?e.locale:void 0);if(b.has(a))return;b.add(a)}Promise.resolve(o?e.prefetch(t,i):e.prefetch(t,n,r)).catch(function(e){})}}function formatStringOrUrl(e){return"string"==typeof e?e:(0,u.formatUrl)(e)}var _=s.default.forwardRef(function(e,t){var n,r,u=e.href,b=e.as,_=e.children,E=e.prefetch,O=void 0===E?null:E,S=e.passHref,w=e.replace,C=e.shallow,k=e.scroll,T=e.locale,I=e.onClick,x=e.onMouseEnter,D=e.onTouchStart,N=e.legacyBehavior,L=void 0!==N&&N,A=o(e,a);n=_,L&&("string"==typeof n||"number"==typeof n)&&(n=s.default.createElement("a",null,n));var j=s.default.useContext(d.RouterContext),R=s.default.useContext(h.AppRouterContext),P=null!=j?j:R,F=!j,M=!1!==O,B=null===O?g.PrefetchKind.AUTO:g.PrefetchKind.FULL,V=s.default.useMemo(function(){if(!j){var e=formatStringOrUrl(u);return{href:e,as:b?formatStringOrUrl(b):e}}var t=i((0,c.resolveHref)(j,u,!0),2),n=t[0],r=t[1];return{href:n,as:b?(0,c.resolveHref)(j,b):r||n}},[j,u,b]),q=V.href,K=V.as,Q=s.default.useRef(q),U=s.default.useRef(K);L&&(r=s.default.Children.only(n));var H=L?r&&"object"==typeof r&&r.ref:t,G=i((0,y.useIntersection)({rootMargin:"200px"}),3),z=G[0],$=G[1],W=G[2],Y=s.default.useCallback(function(e){(U.current!==K||Q.current!==q)&&(W(),U.current=K,Q.current=q),z(e),H&&("function"==typeof H?H(e):"object"==typeof H&&(H.current=e))},[K,H,q,W,z]);s.default.useEffect(function(){P&&$&&M&&prefetch(P,q,K,{locale:T},{kind:B},F)},[K,q,$,T,M,null==j?void 0:j.locale,P,F,B]);var J={ref:Y,onClick:function(e){L||"function"!=typeof I||I(e),L&&r.props&&"function"==typeof r.props.onClick&&r.props.onClick(e),P&&!e.defaultPrevented&&function(e,t,n,r,i,o,a,c,u,f){if(!("A"===e.currentTarget.nodeName.toUpperCase()&&((p=e.currentTarget.getAttribute("target"))&&"_self"!==p||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.nativeEvent&&2===e.nativeEvent.which||!u&&!(0,l.isLocalURL)(n)))){e.preventDefault();var p,navigate=function(){var e=null==a||a;"beforePopState"in t?t[i?"replace":"push"](n,r,{shallow:o,locale:c,scroll:e}):t[i?"replace":"push"](r||n,{forceOptimisticNavigation:!f,scroll:e})};u?s.default.startTransition(navigate):navigate()}}(e,P,q,K,w,C,k,T,F,M)},onMouseEnter:function(e){L||"function"!=typeof x||x(e),L&&r.props&&"function"==typeof r.props.onMouseEnter&&r.props.onMouseEnter(e),P&&(M||!F)&&prefetch(P,q,K,{locale:T,priority:!0,bypassPrefetchedCheck:!0},{kind:B},F)},onTouchStart:function(e){L||"function"!=typeof D||D(e),L&&r.props&&"function"==typeof r.props.onTouchStart&&r.props.onTouchStart(e),P&&(M||!F)&&prefetch(P,q,K,{locale:T,priority:!0,bypassPrefetchedCheck:!0},{kind:B},F)}};if((0,f.isAbsoluteUrl)(K))J.href=K;else if(!L||S||"a"===r.type&&!("href"in r.props)){var Z=void 0!==T?T:null==j?void 0:j.locale,X=(null==j?void 0:j.isLocaleDomain)&&(0,m.getDomainLocale)(K,Z,null==j?void 0:j.locales,null==j?void 0:j.domainLocales);J.href=X||(0,v.addBasePath)((0,p.addLocale)(K,Z,null==j?void 0:j.defaultLocale))}return L?s.default.cloneElement(r,J):s.default.createElement("a",_objectSpread(_objectSpread({},A),J),n)});("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esMo
1dule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},1063:function(e,t,n){"use strict";var r=n(5696);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useIntersection",{enumerable:!0,get:function(){return useIntersection}});var i=n(7294),o=n(3185),a="function"==typeof IntersectionObserver,s=new Map,c=[];function useIntersection(e){var t=e.rootRef,n=e.rootMargin,l=e.disabled||!a,u=r((0,i.useState)(!1),2),f=u[0],p=u[1],d=(0,i.useRef)(null),h=(0,i.useCallback)(function(e){d.current=e},[]);return(0,i.useEffect)(function(){if(a){if(!l&&!f){var e,r,i,u,h=d.current;if(h&&h.tagName)return r=(e=function(e){var t,n={root:e.root||null,margin:e.rootMargin||""},r=c.find(function(e){return e.root===n.root&&e.margin===n.margin});if(r&&(t=s.get(r)))return t;var i=new Map;return t={id:n,observer:new IntersectionObserver(function(e){e.forEach(function(e){var t=i.get(e.target),n=e.isIntersecting||e.intersectionRatio>0;t&&n&&t(n)})},e),elements:i},c.push(n),s.set(n,t),t}({root:null==t?void 0:t.current,rootMargin:n})).id,i=e.observer,(u=e.elements).set(h,function(e){return e&&p(e)}),i.observe(h),function(){if(u.delete(h),i.unobserve(h),0===u.size){i.disconnect(),s.delete(r);var e=c.findIndex(function(e){return e.root===r.root&&e.margin===r.margin});e>-1&&c.splice(e,1)}}}}else if(!f){var y=(0,o.requestIdleCallback)(function(){return p(!0)});return function(){return(0,o.cancelIdleCallback)(y)}}},[l,n,t,f,d.current]),[h,f,(0,i.useCallback)(function(){p(!1)},[])]}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},3539:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"AmpStateContext",{enumerable:!0,get:function(){return r}});var r=n(8754)._(n(7294)).default.createContext({})},7187:function(e,t){"use strict";function isInAmpMode(e){var t=void 0===e?{}:e,n=t.ampFirst,r=t.hybrid,i=t.hasQuery;return void 0!==n&&n||void 0!==r&&r&&void 0!==i&&i}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isInAmpMode",{enumerable:!0,get:function(){return isInAmpMode}})},2268:function(e,t,n){"use strict";var r=n(930);function ownKeys(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{defaultHead:function(){return _defaultHead},default:function(){return _default2}});var i=n(8754),o=n(1757)._(n(7294)),a=i._(n(8959)),s=n(3539),c=n(5963),l=n(7187);function _defaultHead(e){void 0===e&&(e=!1);var t=[o.default.createElement("meta",{charSet:"utf-8"})];return e||t.push(o.default.createElement("meta",{name:"viewport",content:"width=device-width"})),t}function onlyReactElement(e,t){return"string"==typeof t||"number"==typeof t?e:t.type===o.default.Fragment?e.concat(o.default.Children.toArray(t.props.children).reduce(function(e,t){return"string"==typeof t||"number"==typeof t?e:e.concat(t)},[])):e.concat(t)}n(9067);var u=["name","httpEquiv","charSet","itemProp"];function reduceComponents(e,t){var n,i,a,s,c=t.inAmpMode;return e.reduce(onlyReactElement,[]).reverse().concat(_defaultHead(c).reverse()).filter((n=new Set,i=new Set,a=new Set,s={},function(e){var t=!0,r=!1;if(e.key&&"number"!=typeof e.key&&e.key.indexOf("$")>0){r=!0;var o=e.key.slice(e.key.indexOf("$")+1);n.has(o)?t=!1:n.add(o)}switch(e.type){case"title":case"base":i.has(e.type)?t=!1:i.add(e.type);break;case"meta":for(var c=0,l=u.length;c<l;c++){var f=u[c];if(e.props.hasOwnProperty(f)){if("charSet"===f)a.has(f)?t=!1:a.add(f);else{var p=e.props[f],d=s[f]||new Set;("name"!==f||!r)&&d.has(p)?t=!1:(d.add(p),s[f]=d)}}}}return t})).reverse().map(function(e,t){var n=e.key||t;if(!c&&"link"===e.type&&e.props.href&&["https://fonts.googleapis.com/css","https://use.typekit.net/"].some(function(t){return e.props.href.startsWith(t)})){var i=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
1t%2?ownKeys(Object(n),!0).forEach(function(t){r(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ownKeys(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},e.props||{});return i["data-href"]=i.href,i.href=void 0,i["data-optimized-fonts"]=!0,o.default.cloneElement(e,i)}return o.default.cloneElement(e,{key:n})})}var _default2=function(e){var t=e.children,n=(0,o.useContext)(s.AmpStateContext),r=(0,o.useContext)(c.HeadManagerContext);return o.default.createElement(a.default,{reduceComponentsToState:reduceComponents,headManager:r,inAmpMode:(0,l.isInAmpMode)(n)},t)};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},3137:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{ServerInsertedHTMLContext:function(){return i},useServerInsertedHTML:function(){return _useServerInsertedHTML}});var r=n(1757)._(n(7294)),i=r.default.createContext(null);function _useServerInsertedHTML(e){var t=(0,r.useContext)(i);t&&t(e)}},8959:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return SideEffect}});var r=n(7294),i=r.useLayoutEffect,o=r.useEffect;function SideEffect(e){var t=e.headManager,n=e.reduceComponentsToState;function emitChange(){if(t&&t.mountedInstances){var i=r.Children.toArray(Array.from(t.mountedInstances).filter(Boolean));t.updateHead(n(i,e))}}return i(function(){var n;return null==t||null==(n=t.mountedInstances)||n.add(e.children),function(){var n;null==t||null==(n=t.mountedInstances)||n.delete(e.children)}}),i(function(){return t&&(t._pendingUpdate=emitChange),function(){t&&(t._pendingUpdate=emitChange)}}),o(function(){return t&&t._pendingUpdate&&(t._pendingUpdate(),t._pendingUpdate=null),function(){t&&t._pendingUpdate&&(t._pendingUpdate(),t._pendingUpdate=null)}}),null}},9067:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"warnOnce",{enumerable:!0,get:function(){return warnOnce}});var warnOnce=function(e){}},2654:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return _app}});var r,i,o,a,s,c,l,u,f,p,d,h,y,m,v,g,b,_,E=n(9499),O=n(7294);n(2107),n(7789);var S=n(4298),w=n.n(S),extendStatics=function(e,t){return(extendStatics=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function __extends(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function __(){this.constructor=e}extendStatics(e,t),e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)}var tslib_es6_assign=function(){return(tslib_es6_assign=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function __rest(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)0>t.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function __awaiter(e,t,n,r){return new(n||(n=Promise))(function(i,o){function fulfilled(e){try{step(r.next(e))}catch(e){o(e)}}function rejected(e){try{step(r.throw(e))}catch(e){o(e)}}function step(e){var t;e.done?i(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(fulfilled,rejected)}step((r=r.apply(e,t||[])).next())})}function __generator(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:verb(0),throw:verb(1),return:verb(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function verb(s){return function(c){return function(s){if(n)throw TypeError("Generator is already executing.");for(;o&&(o=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===s[0]||2===s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){a.label=s[1];break}if(6===s[0]&&a.label<i[1]){a.label=i[1],i=s;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(s);break}i[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],r=0}finally{n=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,c])}}}function tslib_es6_spreadArray(e,t,n){if(n||2==arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}
1var C="Invariant Violation",k=Object.setPrototypeOf,T=void 0===k?function(e,t){return e.__proto__=t,e}:k,I=function(e){function InvariantError(t){void 0===t&&(t=C);var n=e.call(this,"number"==typeof t?C+": "+t+" (see https://github.com/apollographql/invariant-packages)":t)||this;return n.framesToPop=1,n.name=C,T(n,InvariantError.prototype),n}return __extends(InvariantError,e),InvariantError}(Error);function invariant(e,t){if(!e)throw new I(t)}var x=["debug","log","warn","error","silent"],D=x.indexOf("log");function wrapConsoleMethod(e){return function(){if(x.indexOf(e)>=D)return(console[e]||console.log).apply(console,arguments)}}function maybe(e){try{return e()}catch(e){}}(r=invariant||(invariant={})).debug=wrapConsoleMethod("debug"),r.log=wrapConsoleMethod("log"),r.warn=wrapConsoleMethod("warn"),r.error=wrapConsoleMethod("error");var N=maybe(function(){return globalThis})||maybe(function(){return window})||maybe(function(){return self})||maybe(function(){return global})||maybe(function(){return maybe.constructor("return this")()}),L="__DEV__",A=function(){try{return!!__DEV__}catch(e){return Object.defineProperty(N,L,{value:"production"!==maybe(function(){return"production"}),enumerable:!1,configurable:!0,writable:!0}),N[L]}}(),j=n(4155);function process_maybe(e){try{return e()}catch(e){}}var R=process_maybe(function(){return globalThis})||process_maybe(function(){return window})||process_maybe(function(){return self})||process_maybe(function(){return global})||process_maybe(function(){return process_maybe.constructor("return this")()}),P=!1;function devAssert(e,t){if(!e)throw Error(t)}function formatValue(e,t){switch(typeof e){case"string":return JSON.stringify(e);case"function":return e.name?`[function ${e.name}]`:"[function]";case"object":return function(e,t){if(null===e)return"null";if(t.includes(e))return"[Circular]";let n=[...t,e];if("function"==typeof e.toJSON){let t=e.toJSON();if(t!==e)return"string"==typeof t?t:formatValue(t,n)}else if(Array.isArray(e))return function(e,t){if(0===e.length)return"[]";if(t.length>2)return"[Array]";let n=Math.min(10,e.length),r=e.length-n,i=[];for(let r=0;r<n;++r)i.push(formatValue(e[r],t));return 1===r?i.push("... 1 more item"):r>1&&i.push(`... ${r} more items`),"["+i.join(", ")+"]"}(e,n);return function(e,t){let n=Object.entries(e);if(0===n.length)return"{}";if(t.length>2)return"["+function(e){let t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if("Object"===t&&"function"==typeof e.constructor){let t=e.constructor.name;if("string"==typeof t&&""!==t)return t}return t}(e)+"]";let r=n.map(([e,n])=>e+": "+formatValue(n,t));return"{ "+r.join(", ")+" }"}(e,n)}(e,t);default:return String(e)}}!R||process_maybe(function(){return"production"})||process_maybe(function(){return j})||(Object.defineProperty(R,"process",{value:{env:{NODE_ENV:"production"}},configurable:!0,enumerable:!1,writable:!0}),P=!0);let F=globalThis.process&&!0,M=F?function(e,t){return e instanceof t}:function(e,t){if(e instanceof t)return!0;if("object"==typeof e&&null!==e){var n;let r=t.prototype[Symbol.toStringTag],i=Symbol.toStringTag in e?e[Symbol.toStringTag]:null===(n=e.constructor)||void 0===n?void 0:n.name;if(r===i){let t=formatValue(e,[]);throw Error(`Cannot use ${r} "${t}" from another module or realm.
2
3Ensure that there is only one instance of "graphql" in the node_modules
4directory. If different versions of "graphql" are the dependencies of other
5relied on modules, use "resolutions" to ensure only one version is installed.
6
7https://yarnpkg.com/en/docs/selective-version-resolutions
8
9Duplicate "graphql" modules cannot be used at the same time since different
10versions may have different capabilities and behavior. The data from one
11version used in the function from another could produce confusing and
12spurious results.`)}}return!1};let Source=class Source{constructor(e,t="GraphQL request",n={line:1,column:1}){"string"==typeof e||devAssert(!1,`Body must be a string. Received: ${formatValue(e,[])}.`),this.body=e,this.name=t,this.locationOffset=n,this.locationOffset.line>0||devAssert(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||devAssert(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}};P&&(delete R.process,P=!1),__DEV__?invariant("boolean"==typeof A,A):invariant("boolean"==typeof A,39);var B="function"==typeof WeakMap&&"ReactNative"!==maybe(function(){return navigator.product}),V="function"==typeof WeakSet,q="function"==typeof Symbol&&"function"==typeof Symbol.for,K=q&&Symbol.asyncIterator;maybe(function(){return window.document.createElement}),maybe(function(){return navigator.userAgent.indexOf("jsdom")>=0});var Q=q?Symbol.for("__APOLLO_CONTEXT__"):"__APOLLO_CONTEXT__",ApolloProvider=function(e){var t,n=e.client,r=e.children,i=((t=O.createContext[Q])||(Object.defineProperty(O.createContext,Q,{value:t=O.createContext({}
12),enumerable:!1,writable:!1,configurable:!0}),t.displayName="ApolloContext"),t);return O.createElement(i.Consumer,null,function(e){return void 0===e&&(e={}),n&&e.client!==n&&(e=Object.assign({},e,{client:n})),__DEV__?invariant(e.client,'ApolloProvider was not passed a client instance. Make sure you pass in your client via the "client" prop.'):invariant(e.client,29),O.createElement(i.Provider,{value:e},r)})};function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function _defineProperties(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function _createClass(e,t,n){return t&&_defineProperties(e.prototype,t),n&&_defineProperties(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}n(7794);var hasSymbols=function(){return"function"==typeof Symbol},hasSymbol=function(e){return hasSymbols()&&!!Symbol[e]},getSymbol=function(e){return hasSymbol(e)?Symbol[e]:"@@"+e};hasSymbols()&&!hasSymbol("observable")&&(Symbol.observable=Symbol("observable"));var U=getSymbol("iterator"),H=getSymbol("observable"),G=getSymbol("species");function getMethod(e,t){var n=e[t];if(null!=n){if("function"!=typeof n)throw TypeError(n+" is not a function");return n}}function getSpecies(e){var t=e.constructor;return void 0!==t&&null===(t=t[G])&&(t=void 0),void 0!==t?t:W}function hostReportError(e){hostReportError.log?hostReportError.log(e):setTimeout(function(){throw e})}function enqueue(e){Promise.resolve().then(function(){try{e()}catch(e){hostReportError(e)}})}function cleanupSubscription(e){var t=e._cleanup;if(void 0!==t){if(e._cleanup=void 0,!t)return;try{if("function"==typeof t)t();else{var n=getMethod(t,"unsubscribe");n&&n.call(t)}}catch(e){hostReportError(e)}}}function closeSubscription(e){e._observer=void 0,e._queue=void 0,e._state="closed"}function notifySubscription(e,t,n){e._state="running";var r=e._observer;try{var i=getMethod(r,t);switch(t){case"next":i&&i.call(r,n);break;case"error":if(closeSubscription(e),i)i.call(r,n);else throw n;break;case"complete":closeSubscription(e),i&&i.call(r)}}catch(e){hostReportError(e)}"closed"===e._state?cleanupSubscription(e):"running"===e._state&&(e._state="ready")}function onNotify(e,t,n){if("closed"!==e._state){if("buffering"===e._state){e._queue.push({type:t,value:n});return}if("ready"!==e._state){e._state="buffering",e._queue=[{type:t,value:n}],enqueue(function(){return function(e){var t=e._queue;if(t){e._queue=void 0,e._state="ready";for(var n=0;n<t.length&&(notifySubscription(e,t[n].type,t[n].value),"closed"!==e._state);++n);}}(e)});return}notifySubscription(e,t,n)}}var z=function(){function Subscription(e,t){this._cleanup=void 0,this._observer=e,this._queue=void 0,this._state="initializing";var n=new $(this);try{this._cleanup=t.call(void 0,n)}catch(e){n.error(e)}"initializing"===this._state&&(this._state="ready")}return Subscription.prototype.unsubscribe=function(){"closed"!==this._state&&(closeSubscription(this),cleanupSubscription(this))},_createClass(Subscription,[{key:"closed",get:function(){return"closed"===this._state}}]),Subscription}(),$=function(){function SubscriptionObserver(e){this._subscription=e}var e=SubscriptionObserver.prototype;return e.next=function(e){onNotify(this._subscription,"next",e)},e.error=function(e){onNotify(this._subscription,"error",e)},e.complete=function(){onNotify(this._subscription,"complete")},_createClass(SubscriptionObserver,[{key:"closed",get:function(){return"closed"===this._subscription._state}}]),SubscriptionObserver}(),W=function(){function Observable(e){if(!(this instanceof Observable))throw TypeError("Observable cannot be called as a function");if("function"!=typeof e)throw TypeError("Observable initializer must be a function");this._subscriber=e}var e=Observable.prototype;return e.subscribe=function(e){return("object"!=typeof e||null===e)&&(e={next:e,error:arguments[1],complete:arguments[2]}),new z(e,this._subscriber)},e.forEach=function(e){var t=this;return new Promise(function(n,r){if("function"!=typeof e){r(TypeError(e+" is not a function"));return}function done(){i.unsubscribe(),n()}var i=t.subscribe({next:function(t){try{e(t,done)}catch(e){r(e),i.unsubscribe()}},error:r,complete:n})})},e.map=function(e){var t=this;if("function"!=typeof e)throw TypeError(e+" is not a function");return new(getSpecies(this))(function(n){return t.subscribe({next:function(t){try{t=e(t)}catch(e){return n.error(e)}n.next(t)},error:function(e){n.error(e)},complete:function(){n.complete()}})})},e.filter=function(e){var t=this;if("function"!=typeof e)throw TypeError(e+" is not a function");return new(getSpecies(this))(function(n){return t.subscribe({next:function(t){try{if(!e(t))return}catch(e){return n.error(e)}n.next(t)},error:function(e){n.error(e)},complete:function(){n.complete()}})})},e.reduce=function(e){var t=this;if("function"!=typeof e)throw TypeError(e+" is not a function");var n=getSpecies(this),r=arguments.length>1,i=!1,o=arguments[1],a=o;return new n(function(n){return t.subscribe({next:function(t){var o=!i;if(i=!0,!o||r)try{a=e(a,t)}catch(e){return n.error(e)}else a=t},error:function(e){n.error(e)},complete:function(){if(!i&&!r)return n.error(TypeError("Cannot reduce an empty sequence"));n.next(a),n.complete()}})})},e.concat=function(){for(var e=this,t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=getSpecies(this);return new i(function(t){var r,o=0;return function startNext(e){r=e.subscribe({next:function(e){t.next(e)},error:function(e){t.error(e)},complete:function(){o===n.length?(r=void 0,t.complete()):startNext(i.from(n[o++]))}})}(e),function(){r&&(r.unsubscribe(),r=void 0)}})},e.flatMap=function(e){var t=this;if("function"!=typeof e)throw TypeError(e+" is not a function");var n=getSpecies(this);return new n(function(r){var i=[],o=t.subscribe({next:function(t){if(e)try{t=e(t)}catch(e){return r.error(e)}var o=n.from(t).subscribe({next:function(e){r.next(e)},error:function(e){r.error(e)},complete:function(){var e=i.indexOf(o);e>=0&&i.splice(e,1),completeIfDone()}});i.push(o)},error:function(e){r.error(e)},complete:function(){completeIfDone()}});function completeIfDone(){o.closed&&0===i.length&&r.complete()}
12return function(){i.forEach(function(e){return e.unsubscribe()}),o.unsubscribe()}})},e[H]=function(){return this},Observable.from=function(e){var t="function"==typeof this?this:Observable;if(null==e)throw TypeError(e+" is not an object");var n=getMethod(e,H);if(n){var r=n.call(e);if(Object(r)!==r)throw TypeError(r+" is not an object");return r instanceof W&&r.constructor===t?r:new t(function(e){return r.subscribe(e)})}if(hasSymbol("iterator")&&(n=getMethod(e,U)))return new t(function(t){enqueue(function(){if(!t.closed){for(var r,i=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return _arrayLikeToArray(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(e,t)}}(e))){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(n.call(e));!(r=i()).done;){var o=r.value;if(t.next(o),t.closed)return}t.complete()}})});if(Array.isArray(e))return new t(function(t){enqueue(function(){if(!t.closed){for(var n=0;n<e.length;++n)if(t.next(e[n]),t.closed)return;t.complete()}})});throw TypeError(e+" is not observable")},Observable.of=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return new("function"==typeof this?this:Observable)(function(e){enqueue(function(){if(!e.closed){for(var n=0;n<t.length;++n)if(e.next(t[n]),e.closed)return;e.complete()}})})},_createClass(Observable,null,[{key:G,get:function(){return this}}]),Observable}();function isNonNullObject(e){return null!==e&&"object"==typeof e}function getFragmentQueryDocument(e,t){var n=t,r=[];return e.definitions.forEach(function(e){if("OperationDefinition"===e.kind)throw __DEV__?new I("Found a ".concat(e.operation," operation").concat(e.name?" named '".concat(e.name.value,"'"):"",". ")+"No operations are allowed when using a fragment as a query. Only fragments are allowed."):new I(44);"FragmentDefinition"===e.kind&&r.push(e)}),void 0===n&&(__DEV__?invariant(1===r.length,"Found ".concat(r.length," fragments. `fragmentName` must be provided when there is not exactly 1 fragment.")):invariant(1===r.length,45),n=r[0].name.value),tslib_es6_assign(tslib_es6_assign({},e),{definitions:tslib_es6_spreadArray([{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:n}}]}}],e.definitions,!0)})}function createFragmentMap(e){void 0===e&&(e=[]);var t={};return e.forEach(function(e){t[e.name.value]=e}),t}function getFragmentFromSelection(e,t){switch(e.kind){case"InlineFragment":return e;case"FragmentSpread":var n=e.name.value;if("function"==typeof t)return t(n);var r=t&&t[n];return __DEV__?invariant(r,"No fragment named ".concat(n)):invariant(r,46),r||null;default:return null}}function makeReference(e){return{__ref:String(e)}}function isReference(e){return!!(e&&"object"==typeof e&&"string"==typeof e.__ref)}function valueToObjectRepresentation(e,t,n,r){if("IntValue"===n.kind||"FloatValue"===n.kind)e[t.value]=Number(n.value);else if("BooleanValue"===n.kind||"StringValue"===n.kind)e[t.value]=n.value;else if("ObjectValue"===n.kind){var i={};n.fields.map(function(e){return valueToObjectRepresentation(i,e.name,e.value,r)}),e[t.value]=i}else if("Variable"===n.kind){var o=(r||{})[n.name.value];e[t.value]=o}else if("ListValue"===n.kind)e[t.value]=n.values.map(function(e){var n={};return valueToObjectRepresentation(n,t,e,r),n[t.value]});else if("EnumValue"===n.kind)e[t.value]=n.value;else if("NullValue"===n.kind)e[t.value]=null;else throw __DEV__?new I('The inline argument "'.concat(t.value,'" of kind "').concat(n.kind,'"')+"is not supported. Use variables instead of inline arguments to overcome this limitation."):new I(55)}hasSymbols()&&Object.defineProperty(W,Symbol("extensions"),{value:{symbol:H,hostReportError:hostReportError},configurable:!0});var Y=["connection","include","skip","client","rest","export"],J=Object.assign(function(e,t,n){if(t&&n&&n.connection&&n.c
12onnection.key){if(!n.connection.filter||!(n.connection.filter.length>0))return n.connection.key;var r=n.connection.filter?n.connection.filter:[];r.sort();var i={};return r.forEach(function(e){i[e]=t[e]}),"".concat(n.connection.key,"(").concat(stringify(i),")")}var o=e;if(t){var a=stringify(t);o+="(".concat(a,")")}return n&&Object.keys(n).forEach(function(e){-1===Y.indexOf(e)&&(n[e]&&Object.keys(n[e]).length?o+="@".concat(e,"(").concat(stringify(n[e]),")"):o+="@".concat(e))}),o},{setStringify:function(e){var t=stringify;return stringify=e,t}}),stringify=function(e){return JSON.stringify(e,stringifyReplacer)};function stringifyReplacer(e,t){return isNonNullObject(t)&&!Array.isArray(t)&&(t=Object.keys(t).sort().reduce(function(e,n){return e[n]=t[n],e},{})),t}function argumentsObjectFromField(e,t){if(e.arguments&&e.arguments.length){var n={};return e.arguments.forEach(function(e){return valueToObjectRepresentation(n,e.name,e.value,t)}),n}return null}function resultKeyNameFromField(e){return e.alias?e.alias.value:e.name.value}function getTypenameFromResult(e,t,n){if("string"==typeof e.__typename)return e.__typename;for(var r=0,i=t.selections;r<i.length;r++){var o=i[r];if(storeUtils_isField(o)){if("__typename"===o.name.value)return e[resultKeyNameFromField(o)]}else{var a=getTypenameFromResult(e,getFragmentFromSelection(o,n).selectionSet,n);if("string"==typeof a)return a}}}function storeUtils_isField(e){return"Field"===e.kind}function checkDocument(e){__DEV__?invariant(e&&"Document"===e.kind,'Expecting a parsed GraphQL document. Perhaps you need to wrap the query string in a "gql" tag? http://docs.apollostack.com/apollo-client/core.html#gql'):invariant(e&&"Document"===e.kind,47);var t=e.definitions.filter(function(e){return"FragmentDefinition"!==e.kind}).map(function(e){if("OperationDefinition"!==e.kind)throw __DEV__?new I('Schema type definitions not allowed in queries. Found: "'.concat(e.kind,'"')):new I(48);return e});return __DEV__?invariant(t.length<=1,"Ambiguous GraphQL document: contains ".concat(t.length," operations")):invariant(t.length<=1,49),e}function getOperationDefinition(e){return checkDocument(e),e.definitions.filter(function(e){return"OperationDefinition"===e.kind})[0]}function getOperationName(e){return e.definitions.filter(function(e){return"OperationDefinition"===e.kind&&!!e.name}).map(function(e){return e.name.value})[0]||null}function getFragmentDefinitions(e){return e.definitions.filter(function(e){return"FragmentDefinition"===e.kind})}function getQueryDefinition(e){var t=getOperationDefinition(e);return __DEV__?invariant(t&&"query"===t.operation,"Must contain a query definition."):invariant(t&&"query"===t.operation,50),t}function getMainDefinition(e){checkDocument(e);for(var t,n=0,r=e.definitions;n<r.length;n++){var i=r[n];if("OperationDefinition"===i.kind){var o=i.operation;if("query"===o||"mutation"===o||"subscription"===o)return i}"FragmentDefinition"!==i.kind||t||(t=i)}if(t)return t;throw __DEV__?new I("Expected a parsed GraphQL query with a query, mutation, subscription, or a fragment."):new I(54)}function getDefaultValues(e){var t=Object.create(null),n=e&&e.variableDefinitions;return n&&n.length&&n.forEach(function(e){e.defaultValue&&valueToObjectRepresentation(t,e.variable.name,e.defaultValue)}),t}function passthrough(e,t){return t?t(e):W.of()}function toLink(e){return"function"==typeof e?new X(e):e}function isTerminating(e){return e.request.length<=1}var Z=function(e){function LinkError(t,n){var r=e.call(this,t)||this;return r.link=n,r}return __extends(LinkError,e),LinkError}(Error),X=function(){function ApolloLink(e){e&&(this.request=e)}return ApolloLink.empty=function(){return new ApolloLink(function(){return W.of()})},ApolloLink.from=function(e){return 0===e.length?ApolloLink.empty():e.map(toLink).reduce(function(e,t){return e.concat(t)})},ApolloLink.split=function(e,t,n){var r=toLink(t),i=toLink(n||new ApolloLink(passthrough));return new ApolloLink(isTerminating(r)&&isTerminating(i)?function(t){return e(t)?r.request(t)||W.of():i.request(t)||W.of()}:function(t,n){return e(t)?r.request(t,n)||W.of():i.request(t,n)||W.of()})},ApolloLink.execute=function(e,t){var n,r,i,o;return e.request((i=t.context,(r={variables:(n=function(e){for(var t=["query","operationName","variables","extensions","context"],n=0,r=Object.keys(e);n<r.length;n++){var i=r[n];if(0>t.indexOf(i))throw __DEV__?new I("illegal argument: ".concat(i)):new I(27)}return e}(t)).variables||{},extensions:n.extensions||{},operationName:n.operationName,query:n.query}).operationName||(r.operationName="string"!=typeof r.query?getOperationName(r.query)||void 0:""),o=tslib_es6_assign({},i),Object.defineProperty(r,"setContext",{enumerable:!1,value:function(e){o="function"==typeof e?tslib_es6_assign(tslib_es6_assign({},o),e(o)):tslib_es6_assign(tslib_es6_assign({},o),e)}}),Object.defineProperty(r,"getContext",{enumerable:!1,value:function(){return tslib_es6_assign({},o)}}),r))||W.of()},ApolloLink.concat=function(e,t){var n=toLink(e);if(isTerminating(n))return __DEV__&&invariant.warn(new Z("You are calling concat on a terminating link, which will have no effect",n)),n;var r=toLink(t);return new ApolloLink(isTerminating(r)?function(e){return n.request(e,function(e){return r.request(e)||W.of()})||W.of()}:function(e,t){return n.request(e,function(e){return r.request(e,t)||W.of()})||W.of()})},ApolloLink.prototype.split=function(e,t,n){return this.concat(ApolloLink.split(e,t,n||new ApolloLink(passthrough)))},ApolloLink.prototype.concat=function(e){return ApolloLink.concat(this,e)},ApolloLink.prototype.request=function(e,t){throw __DEV__?new I("request is not implemented"):new I(22)},ApolloLink.prototype.onError=function(e,t){if(t&&t.error)return t.error(e),!1;throw e},ApolloLink.prototype.setOnError=function(e){return this.onError=e,this},ApolloLink}(),ee=X.execute;let Location=class Location{constructor(e,t,n){this.start=e.start,this.end=t.end,this.startToken=e,this.endToken=t,this.source=n}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}};let Token=class Token{constructor(e,t,n,r,i,o){this.kind=e,this.start=t,this.end=n,this.line=r,this.column=i,this.value=o,this.prev=null,this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}};let et={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],Float
12Value:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]},en=new Set(Object.keys(et));function isNode(e){let t=null==e?void 0:e.kind;return"string"==typeof t&&en.has(t)}(i=p||(p={})).QUERY="query",i.MUTATION="mutation",i.SUBSCRIPTION="subscription",(o=d||(d={})).NAME="Name",o.DOCUMENT="Document",o.OPERATION_DEFINITION="OperationDefinition",o.VARIABLE_DEFINITION="VariableDefinition",o.SELECTION_SET="SelectionSet",o.FIELD="Field",o.ARGUMENT="Argument",o.FRAGMENT_SPREAD="FragmentSpread",o.INLINE_FRAGMENT="InlineFragment",o.FRAGMENT_DEFINITION="FragmentDefinition",o.VARIABLE="Variable",o.INT="IntValue",o.FLOAT="FloatValue",o.STRING="StringValue",o.BOOLEAN="BooleanValue",o.NULL="NullValue",o.ENUM="EnumValue",o.LIST="ListValue",o.OBJECT="ObjectValue",o.OBJECT_FIELD="ObjectField",o.DIRECTIVE="Directive",o.NAMED_TYPE="NamedType",o.LIST_TYPE="ListType",o.NON_NULL_TYPE="NonNullType",o.SCHEMA_DEFINITION="SchemaDefinition",o.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",o.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",o.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",o.FIELD_DEFINITION="FieldDefinition",o.INPUT_VALUE_DEFINITION="InputValueDefinition",o.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",o.UNION_TYPE_DEFINITION="UnionTypeDefinition",o.ENUM_TYPE_DEFINITION="EnumTypeDefinition",o.ENUM_VALUE_DEFINITION="EnumValueDefinition",o.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",o.DIRECTIVE_DEFINITION="DirectiveDefinition",o.SCHEMA_EXTENSION="SchemaExtension",o.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",o.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",o.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",o.UNION_TYPE_EXTENSION="UnionTypeExtension",o.ENUM_TYPE_EXTENSION="EnumTypeExtension",o.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension";let er=Object.freeze({});function visitor_visit(e,t,n=et){let r,i,o;let a=new Map;for(let e of Object.values(d))a.set(e,function(e,t){let n=e[t];return"object"==typeof n?n:"function"==typeof n?{enter:n,leave:void 0}:{enter:e.enter,leave:e.leave}}(t,e));let s=Array.isArray(e),c=[e],l=-1,u=[],f=e,p=[],h=[];do{var y,m,v;let e;l++;let d=l===c.length,g=d&&0!==u.length;if(d){if(i=0===h.length?void 0:p[p.length-1],f=o,o=h.pop(),g){if(s){f=f.slice();let e=0;for(let[t,n]of u){let r=t-e;null===n?(f.splice(r,1),e++):f[r]=n}}else for(let[e,t]of(f={...f},u))f[e]=t}l=r.index,c=r.keys,u=r.edits,s=r.inArray,r=r.prev}else if(o){if(null==(f=o[i=s?l:c[l]]))continue;p.push(i)}if(!Array.isArray(f)){isNode(f)||devAssert(!1,`Invalid AST Node: ${formatValue(f,[])}.`);let n=d?null===(y=a.get(f.kind))||void 0===y?void 0:y.leave:null===(m=a.get(f.kind))||void 0===m?void 0:m.enter;if((e=null==n?void 0:n.call(t,f,i,o,p,h))===er)break;if(!1===e){if(!d){p.pop();continue}}else if(void 0!==e&&(u.push([i,e]),!d)){if(isNode(e))f=e;else{p.pop();continue}}}void 0===e&&g&&u.push([i,f]),d?p.pop():(r={inArray:s,index:l,keys:c,edits:u,prev:r},c=(s=Array.isArray(f))?f:null!==(v=n[f.kind])&&void 0!==v?v:[],l=-1,u=[],o&&h.push(o),o=f)}while(void 0!==r);return 0!==u.length?u[u.length-1][1]:e}function shouldInclude(e,t){var n,r=e.directives;return!r||!r.length||(n=[],r&&r.length&&r.forEach(function(e){var t;if(!("skip"!==(t=e.name.value)&&"include"!==t)){var r=e.arguments,i=e.name.value;__DEV__?invariant(r&&1===r.length,"Incorrect number of arguments for the @".concat(i," directive.")):invariant(r&&1===r.length,41);var o=r[0];__DEV__?invariant(o.name&&"if"===o.name.value,"Invalid argument for the @".concat(i," directive.")):invariant(o.name&&"if"===o.name.value,42);var a=o.value;__DEV__?invariant(a&&("Variable"===a.kind||"BooleanValue"===a.kind),"Argument for the @".concat(i," directive must be a variable or a boolean value.")):invariant(a&&("Variable"===a.kind||"BooleanValue"===a.kind),43),n.push({directive:e,ifArgument:o})}}),n).every(function(e){var n=e.directive,r=e.ifArgument,i=!1;return"Variable"===r.value.kind?(i=t&&t[r.value.name.value],__DEV__?invariant(void 0!==i,"Invalid variable referenced in @".concat(n.name.value," directive.")):invariant(void 0!==i,40)):i=r.value.value,"skip"===n.name.value?!i:i})}
12function hasDirectives(e,t,n){var r=new Set(e),i=r.size;return visitor_visit(t,{Directive:function(e){if(r.delete(e.name.value)&&(!n||!r.size))return er}}),n?!r.size:r.size<i}var serializeFetchParameter=function(e,t){var n;try{n=JSON.stringify(e)}catch(e){var r=__DEV__?new I("Network request failed. ".concat(t," is not serializable: ").concat(e.message)):new I(24);throw r.parseError=e,r}return n};function readerIterator(e){var t={next:function(){return e.read()}};return K&&(t[Symbol.asyncIterator]=function(){return this}),t}var throwServerError=function(e,t,n){var r=Error(n);throw r.name="ServerError",r.response=e,r.statusCode=e.status,r.result=t,r},ei=Symbol(),generateErrorMessage=function(e){var t=tslib_es6_spreadArray(tslib_es6_spreadArray(tslib_es6_spreadArray([],e.graphQLErrors,!0),e.clientErrors,!0),e.protocolErrors,!0);return e.networkError&&t.push(e.networkError),t.map(function(e){return isNonNullObject(e)&&e.message||"Error message not found."}).join("\n")},eo=function(e){function ApolloError(t){var n=t.graphQLErrors,r=t.protocolErrors,i=t.clientErrors,o=t.networkError,a=t.errorMessage,s=t.extraInfo,c=e.call(this,a)||this;return c.name="ApolloError",c.graphQLErrors=n||[],c.protocolErrors=r||[],c.clientErrors=i||[],c.networkError=o||null,c.message=a||generateErrorMessage(c),c.extraInfo=s,c.__proto__=ApolloError.prototype,c}return __extends(ApolloError,e),ApolloError}(Error),ea=Array.isArray;function isNonEmptyArray(e){return Array.isArray(e)&&e.length>0}var es=Object.prototype.hasOwnProperty;function mergeDeep(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return mergeDeepArray(e)}function mergeDeepArray(e){var t=e[0]||{},n=e.length;if(n>1)for(var r=new ec,i=1;i<n;++i)t=r.merge(t,e[i]);return t}var defaultReconciler=function(e,t,n){return this.merge(e[n],t[n])},ec=function(){function DeepMerger(e){void 0===e&&(e=defaultReconciler),this.reconciler=e,this.isObject=isNonNullObject,this.pastCopies=new Set}return DeepMerger.prototype.merge=function(e,t){for(var n=this,r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];return isNonNullObject(t)&&isNonNullObject(e)?(Object.keys(t).forEach(function(i){if(es.call(e,i)){var o=e[i];if(t[i]!==o){var a=n.reconciler.apply(n,tslib_es6_spreadArray([e,t,i],r,!1));a!==o&&((e=n.shallowCopyForMerge(e))[i]=a)}}else(e=n.shallowCopyForMerge(e))[i]=t[i]}),e):t},DeepMerger.prototype.shallowCopyForMerge=function(e){return isNonNullObject(e)&&!this.pastCopies.has(e)&&(e=Array.isArray(e)?e.slice(0):tslib_es6_assign({__proto__:Object.getPrototypeOf(e)},e),this.pastCopies.add(e)),e},DeepMerger}();function isExecutionPatchIncrementalResult(e){return"incremental"in e}function mergeIncrementalData(e,t){var n=e,r=new ec;return isExecutionPatchIncrementalResult(t)&&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}n=r.merge(n,t)}),n}var el=Object.prototype.hasOwnProperty;function parseJsonBody(e,t){e.status>=300&&throwServerError(e,function(){try{return JSON.parse(t)}catch(e){return t}}(),"Response not successful: Received status code ".concat(e.status));try{return JSON.parse(t)}catch(n){throw n.name="ServerParseError",n.response=e,n.statusCode=e.status,n.bodyText=t,n}}function handleError(e,t){var n,r;"AbortError"!==e.name&&(e.result&&e.result.errors&&e.result.data&&(null===(n=t.next)||void 0===n||n.call(t,e.result)),null===(r=t.error)||void 0===r||r.call(t,e))}var checkFetcher=function(e){if(!e&&"undefined"==typeof fetch)throw __DEV__?new I("\n\"fetch\" has not been found globally and no fetcher has been configured. To fix this, install a fetch package (like https://www.npmjs.com/package/cross-fetch), instantiate the fetcher, and pass it into your HttpLink constructor. For example:\n\nimport fetch from 'cross-fetch';\nimport { ApolloClient, HttpLink } from '@apollo/client';\nconst client = new ApolloClient({\n  link: new HttpLink({ uri: '/graphql', fetch })\n});\n    "):new I(23)};function isWhiteSpace(e){return 9===e||32===e}function isDigit(e){return e>=48&&e<=57}function isLetter(e){return e>=97&&e<=122||e>=65&&e<=90}function isNameStart(e){return isLetter(e)||95===e}let eu=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function escapedReplacer(e){return ef[e.charCodeAt(0)]}let ef=["\\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"];function print(e){return visitor_visit(e,ep)}let ep={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>join(e.definitions,"\n\n")},OperationDefinition:{leave(e){let t=wrap("(",join(e.variableDefinitions,", "),")"),n=join([e.operation,join([e.name,t]),join(e.directives," ")]," ");return("query"===n?"":n+" ")+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:n,directives:r})=>e+": "+t+wrap(" = ",n)+wrap(" ",join(r," "))},SelectionSet:{leave:({selections:e})=>block(e)},Field:{leave({alias:e,name:t,arguments:n,directives:r,selectionSet:i}){let o=wrap("",e,": ")+t,a=o+wrap("(",join(n,", "),")");return a.length>80&&(a=o+wrap("(\n",indent(join(n,"\n")),"\n)")),join([a,join(r," "),i]," ")}},Argument:{leave:({name:e,value:t})=>e+": "+t},FragmentSpread:{leave:({name:e,directives:t})=>"..."+e+wrap(" ",join(t," "))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:n})=>join(["...",wrap("on ",e),join(t," "),n]," ")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:n,directives:r,selectionSet:i})=>`fragment ${e}${wrap("(",join(n,", "),")")} on ${t} ${wrap("",join(r," ")," ")}`+i},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e}
12,StringValue:{leave:({value:e,block:t})=>t?function(e,t){let n=e.replace(/"""/g,'\\"""'),r=n.split(/\r\n|[\n\r]/g),i=1===r.length,o=r.length>1&&r.slice(1).every(e=>0===e.length||isWhiteSpace(e.charCodeAt(0))),a=n.endsWith('\\"""'),s=e.endsWith('"')&&!a,c=e.endsWith("\\"),l=s||c,u=!(null!=t&&t.minimize)&&(!i||e.length>70||l||o||a),f="",p=i&&isWhiteSpace(e.charCodeAt(0));return(u&&!p||o)&&(f+="\n"),f+=n,(u||l)&&(f+="\n"),'"""'+f+'"""'}(e):`"${e.replace(eu,escapedReplacer)}"`},BooleanValue:{leave:({value:e})=>e?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>"["+join(e,", ")+"]"},ObjectValue:{leave:({fields:e})=>"{"+join(e,", ")+"}"},ObjectField:{leave:({name:e,value:t})=>e+": "+t},Directive:{leave:({name:e,arguments:t})=>"@"+e+wrap("(",join(t,", "),")")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>"["+e+"]"},NonNullType:{leave:({type:e})=>e+"!"},SchemaDefinition:{leave:({description:e,directives:t,operationTypes:n})=>wrap("",e,"\n")+join(["schema",join(t," "),block(n)]," ")},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+": "+t},ScalarTypeDefinition:{leave:({description:e,name:t,directives:n})=>wrap("",e,"\n")+join(["scalar",t,join(n," ")]," ")},ObjectTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:r,fields:i})=>wrap("",e,"\n")+join(["type",t,wrap("implements ",join(n," & ")),join(r," "),block(i)]," ")},FieldDefinition:{leave:({description:e,name:t,arguments:n,type:r,directives:i})=>wrap("",e,"\n")+t+(hasMultilineItems(n)?wrap("(\n",indent(join(n,"\n")),"\n)"):wrap("(",join(n,", "),")"))+": "+r+wrap(" ",join(i," "))},InputValueDefinition:{leave:({description:e,name:t,type:n,defaultValue:r,directives:i})=>wrap("",e,"\n")+join([t+": "+n,wrap("= ",r),join(i," ")]," ")},InterfaceTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:r,fields:i})=>wrap("",e,"\n")+join(["interface",t,wrap("implements ",join(n," & ")),join(r," "),block(i)]," ")},UnionTypeDefinition:{leave:({description:e,name:t,directives:n,types:r})=>wrap("",e,"\n")+join(["union",t,join(n," "),wrap("= ",join(r," | "))]," ")},EnumTypeDefinition:{leave:({description:e,name:t,directives:n,values:r})=>wrap("",e,"\n")+join(["enum",t,join(n," "),block(r)]," ")},EnumValueDefinition:{leave:({description:e,name:t,directives:n})=>wrap("",e,"\n")+join([t,join(n," ")]," ")},InputObjectTypeDefinition:{leave:({description:e,name:t,directives:n,fields:r})=>wrap("",e,"\n")+join(["input",t,join(n," "),block(r)]," ")},DirectiveDefinition:{leave:({description:e,name:t,arguments:n,repeatable:r,locations:i})=>wrap("",e,"\n")+"directive @"+t+(hasMultilineItems(n)?wrap("(\n",indent(join(n,"\n")),"\n)"):wrap("(",join(n,", "),")"))+(r?" repeatable":"")+" on "+join(i," | ")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>join(["extend schema",join(e," "),block(t)]," ")},ScalarTypeExtension:{leave:({name:e,directives:t})=>join(["extend scalar",e,join(t," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>join(["extend type",e,wrap("implements ",join(t," & ")),join(n," "),block(r)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>join(["extend interface",e,wrap("implements ",join(t," & ")),join(n," "),block(r)]," ")},UnionTypeExtension:{leave:({name:e,directives:t,types:n})=>join(["extend union",e,join(t," "),wrap("= ",join(n," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:t,values:n})=>join(["extend enum",e,join(t," "),block(n)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:n})=>join(["extend input",e,join(t," "),block(n)]," ")}};function join(e,t=""){var n;return null!==(n=null==e?void 0:e.filter(e=>e).join(t))&&void 0!==n?n:""}
12function block(e){return wrap("{\n",indent(join(e,"\n")),"\n}")}function wrap(e,t,n=""){return null!=t&&""!==t?e+t+n:""}function indent(e){return wrap("  ",e.replace(/\n/g,"\n  "))}function hasMultilineItems(e){var t;return null!==(t=null==e?void 0:e.some(e=>e.includes("\n")))&&void 0!==t&&t}var ed={http:{includeQuery:!0,includeExtensions:!1,preserveHeaderCase:!1},headers:{accept:"*/*","content-type":"application/json"},options:{method:"POST"}},defaultPrinter=function(e,t){return t(e)},createSignalIfSupported=function(){if("undefined"==typeof AbortController)return{controller:!1,signal:!1};var e=new AbortController,t=e.signal;return{controller:e,signal:t}};function fromError(e){return new W(function(t){t.error(e)})}var eh=maybe(function(){return fetch}),createHttpLink=function(e){void 0===e&&(e={});var t=e.uri,n=void 0===t?"/graphql":t,r=e.fetch,i=e.print,o=void 0===i?defaultPrinter:i,a=e.includeExtensions,s=e.preserveHeaderCase,c=e.useGETForQueries,l=e.includeUnusedVariables,u=void 0!==l&&l,f=__rest(e,["uri","fetch","print","includeExtensions","preserveHeaderCase","useGETForQueries","includeUnusedVariables"]);__DEV__&&checkFetcher(r||eh);var p={http:{includeExtensions:a,preserveHeaderCase:s},options:f.fetchOptions,credentials:f.credentials,headers:f.headers};return new X(function(e){var t,i,a,s,l=(t=e,i=n,t.getContext().uri||("function"==typeof i?i(t):i||"/graphql")),f=e.getContext(),d={};if(f.clientAwareness){var h=f.clientAwareness,y=h.name,m=h.version;y&&(d["apollographql-client-name"]=y),m&&(d["apollographql-client-version"]=m)}var v=tslib_es6_assign(tslib_es6_assign({},d),f.headers),g=function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i={},o={};n.forEach(function(e){i=tslib_es6_assign(tslib_es6_assign(tslib_es6_assign({},i),e.options),{headers:tslib_es6_assign(tslib_es6_assign({},i.headers),e.headers)}),e.credentials&&(i.credentials=e.credentials),o=tslib_es6_assign(tslib_es6_assign({},o),e.http)}),i.headers&&(i.headers=function(e,t){if(!t){var n=Object.create(null);
12return Object.keys(Object(e)).forEach(function(t){n[t.toLowerCase()]=e[t]}),n}var r=Object.create(null);Object.keys(Object(e)).forEach(function(t){r[t.toLowerCase()]={originalName:t,value:e[t]}});var i=Object.create(null);return Object.keys(r).forEach(function(e){i[r[e].originalName]=r[e].value}),i}(i.headers,o.preserveHeaderCase));var a=e.operationName,s=e.extensions,c=e.variables,l=e.query,u={operationName:a,variables:c};return o.includeExtensions&&(u.extensions=s),o.includeQuery&&(u.query=t(l,print)),{options:i,body:u}}(e,o,ed,p,{http:f.http,options:f.fetchOptions,credentials:f.credentials,headers:v}),b=g.options,_=g.body;if(_.variables&&!u){var E=new Set(Object.keys(_.variables));visitor_visit(e.query,{Variable:function(e,t,n){n&&"VariableDefinition"!==n.kind&&E.delete(e.name.value)}}),E.size&&(_.variables=tslib_es6_assign({},_.variables),E.forEach(function(e){delete _.variables[e]}))}if(!b.signal){var O=createSignalIfSupported(),S=O.controller,w=O.signal;(s=S)&&(b.signal=w)}var C="OperationDefinition"===(a=getMainDefinition(e.query)).kind&&"subscription"===a.operation,k=hasDirectives(["defer"],e.query);if(c&&!e.query.definitions.some(function(e){return"OperationDefinition"===e.kind&&"mutation"===e.operation})&&(b.method="GET"),k||C){b.headers=b.headers||{};var T="multipart/mixed;";C&&k&&__DEV__&&invariant.warn("Multipart-subscriptions do not support @defer"),C?T+="boundary=graphql;subscriptionSpec=1.0,application/json":k&&(T+="deferSpec=20220824,application/json"),b.headers.accept=T}if("GET"===b.method){var I=function(e,t){var n=[],addQueryParam=function(e,t){n.push("".concat(e,"=").concat(encodeURIComponent(t)))};if("query"in t&&addQueryParam("query",t.query),t.operationName&&addQueryParam("operationName",t.operationName),t.variables){var r=void 0;try{r=serializeFetchParameter(t.variables,"Variables map")}catch(e){return{parseError:e}}addQueryParam("variables",r)}if(t.extensions){var i=void 0;try{i=serializeFetchParameter(t.extensions,"Extensions map")}catch(e){return{parseError:e}}addQueryParam("extensions",i)}var o="",a=e,s=e.indexOf("#");-1!==s&&(o=e.substr(s),a=e.substr(0,s));var c=-1===a.indexOf("?")?"?":"&";return{newURI:a+c+n.join("&")+o}}(l,_),x=I.newURI,D=I.parseError;if(D)return fromError(D);l=x}else try{b.body=serializeFetchParameter(_,"Payload")}catch(e){return fromError(e)}return new W(function(t){return(r||maybe(function(){return fetch})||eh)(l,b).then(function(n){e.setContext({response:n});var r,i=null===(r=n.headers)||void 0===r?void 0:r.get("content-type");return null!==i&&/^multipart\/mixed/i.test(i)?function(e,t){var n,r,i,o,a;return __awaiter(this,void 0,void 0,function(){var s,c,l,u,f,p,d,h,y,m,v,g,b,_,E,O,S,w,C,k,T;return __generator(this,function(I){switch(I.label){case 0:if(void 0===TextDecoder)throw Error("TextDecoder must be defined in the environment: please import a polyfill.");s=new TextDecoder("utf-8"),c=null===(n=e.headers)||void 0===n?void 0:n.get("content-type"),l="boundary=",u=(null==c?void 0:c.includes(l))?null==c?void 0:c.substring((null==c?void 0:c.indexOf(l))+l.length).replace(/['"]/g,"").replace(/\;(.*)/gm,"").trim():"-",f="--".concat(u),p="",d=function(e){var t,n,r,i,o,a,s=e;if(e.body&&(s=e.body),t=s,K&&t[Symbol.asyncIterator])return r=s[Symbol.asyncIterator](),(n={next:function(){return r.next()}})[Symbol.asyncIterator]=function(){return this},n;if(s.getReader)return readerIterator(s.getReader());if(s.stream)return readerIterator(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)}))}},K&&(a[Symbol.asyncIterator]=function(){return this}),a;if(s.pipe)return function(e){var t=null,n=null,r=!1,i=[],o=[];function onData(e){if(!n){if(o.length){var t=o.shift();if(Array.isArray(t)&&t[0])return t[0]({value:e,done:!1})}i.push(e)}}function onError(e){n=e,o.slice().forEach(function(t){t[1](e)}),t&&t()}function onEnd(){r=!0,o.slice().forEach(function(e){e[0]({value:void 0,done:!0})}),t&&t()}t=function(){t=null,e.removeListener("data",onData),e.removeListener("error",onError),e.removeListener("end",onEnd),e.removeListener("finish",onEnd),e.removeListener("close",onEnd)},e.on("data",onData),e.on("error",onError),e.on("end",onEnd),e.on("finish",onEnd),e.on("close",onEnd);var a={next:function(){return new Promise(function(e,t){return n?t(n):i.length?e({value:i.shift(),done:!1}):r?e({value:void 0,done:!0}):void o.push([e,t])})}};return K&&(a[Symbol.asyncIterator]=function(){return this}),a}(s);throw Error("Unknown body type for responseIterator. Please pass a streamable response.")}(e),h=!0,I.label=1;case 1:if(!h)return[3,3];return[4,d.next()];case 2:for(m=(y=I.sent()).value,v=y.done,g="string"==typeof m?m:s.decode(m),h=!v,p+=g,b=p.indexOf(f);b>-1;){if(_=void 0,_=(k=[p.slice(0,b),p.slice(b+f.length)])[0],p=k[1],_.trim()){if(E=_.indexOf("\r\n\r\n"),(O=function(e){var t={};return e.split("\n").forEach(function(e){var n=e.indexOf(":");if(n>-1){var r=e.slice(0,n).trim().toLowerCase(),i=e.slice(n+1).trim();t[r]=i}}),t}(_.slice(0,E))["content-type"])&&-1===O.toLowerCase().indexOf("application/json"))throw Error("Unsupported patch content type: application/json is required.");S=_.slice(E);try{(w=parseJsonBody(e,S.replace("\r\n","")),Object.keys(w).length>1||"data"in w||"incremental"in w||"errors"in w||"payload"in w)?isNonNullObject(w)&&"payload"in w?(C={},"payload"in w&&(C=tslib_es6_assign({},w.payload)),"errors"in w&&(C=tslib_es6_assign(tslib_es6_assign({},C),{extensions:tslib_es6_assign(tslib_es6_assign({},"extensions"in C?C.extensions:null),((T={})[ei]=w.errors,T))})),null===(r=t.next)||void 0===r||r.call(t,C)):null===(i=t.next)||void 0===i||i.call(t,w):1===Object.keys(w).length&&"hasNext"in w&&!w.hasNext&&(null===(o=t.complete)||void 0===o||o.call(t))}catch(e){handleError(e,t)}}b=p.indexOf(f)}return[3,1];case 3:return null===(a=t.complete)||void 0===a||a.call(t),[2]}})})}(n,t):function(e,t,n){var r;(r=e).text().then(function(e){return parseJsonBody(r,e)}).then(function(e){return r.status>=300&&throwServerError(r,e,"Response not successful: Received status code ".concat(r.status)),Array.isArray(e)||el.call(e,"data")||el.call(e,"errors")||throwServerError(r,e,"Server response was missing for query '".concat(Array.isArray(t)?t.map(function(e){return e.operationName}):t.operationName,"'.")),e}).then(function(e){var t,r;null===(t=n.next)||void 0===t||t.call(n,e),null===(r=n.complete)||void 0===r||r.call(n)}).catch(function(e){return handleError(e,n)})}(n,e,t)}).catch(function(e){return handleError(e,t)}),function(){s&&s.abort()}})})},ey=function(e){function HttpLink(t){void 0===t&&(t={});var n=e.call(this,createHttpLink(t).request)||this;return n.options=t,n}return __extends(HttpLink,e),HttpLink}(X),em=Object.prototype,ev=em.toString,eg=em.hasOwnProperty,eb=Function.prototype.toString,e_=new Map;function equal(e,t){try{return function check(e,t){if(e===t)return!0;var n=ev.call(e);
12if(n!==ev.call(t))return!1;switch(n){case"[object Array]":if(e.length!==t.length)break;case"[object Object]":if(previouslyCompared(e,t))return!0;var r=definedKeys(e),i=definedKeys(t),o=r.length;if(o!==i.length)break;for(var a=0;a<o;++a)if(!eg.call(t,r[a]))return!1;for(var a=0;a<o;++a){var s=r[a];if(!check(e[s],t[s]))return!1}return!0;case"[object Error]":return e.name===t.name&&e.message===t.message;case"[object Number]":if(e!=e)return t!=t;case"[object Boolean]":case"[object Date]":return+e==+t;case"[object RegExp]":case"[object String]":return e=="".concat(t);case"[object Map]":case"[object Set]":if(e.size!==t.size)break;if(previouslyCompared(e,t))return!0;for(var c=e.entries(),l="[object Map]"===n;;){var u=c.next();if(u.done)break;var f=u.value,p=f[0],d=f[1];if(!t.has(p)||l&&!check(d,t.get(p)))return!1}return!0;case"[object Uint16Array]":case"[object Uint8Array]":case"[object Uint32Array]":case"[object Int32Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object ArrayBuffer]":e=new Uint8Array(e),t=new Uint8Array(t);case"[object DataView]":var h=e.byteLength;if(h===t.byteLength)for(;h--&&e[h]===t[h];);return -1===h;case"[object AsyncFunction]":case"[object GeneratorFunction]":case"[object AsyncGeneratorFunction]":case"[object Function]":var y,m=eb.call(e);if(m!==eb.call(t))break;return!((y=m.length-eE.length)>=0)||m.indexOf(eE,y)!==y}return!1}(e,t)}finally{e_.clear()}}function definedKeys(e){return Object.keys(e).filter(isDefinedKey,e)}function isDefinedKey(e){return void 0!==this[e]}var eE="{ [native code] }";function previouslyCompared(e,t){var n=e_.get(e);if(n){if(n.has(t))return!0}else e_.set(e,n=new Set);return n.add(t),!1}var defaultMakeData=function(){return Object.create(null)},eO=Array.prototype,eS=eO.forEach,ew=eO.slice,eC=function(){function Trie(e,t){void 0===e&&(e=!0),void 0===t&&(t=defaultMakeData),this.weakness=e,this.makeData=t}return Trie.prototype.lookup=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return this.lookupArray(e)},Trie.prototype.lookupArray=function(e){var t=this;return eS.call(e,function(e){return t=t.getChildTrie(e)}),t.data||(t.data=this.makeData(ew.call(e)))},Trie.prototype.getChildTrie=function(e){var t=this.weakness&&function(e){switch(typeof e){case"object":if(null===e)break;case"function":return!0}return!1}(e)?this.weak||(this.weak=new WeakMap):this.strong||(this.strong=new Map),n=t.get(e);return n||t.set(e,n=new Trie(this.weakness,this.makeData)),n},Trie}(),ek=function(){function ObjectCanon(){this.known=new(V?WeakSet:Set),this.pool=new eC(B),this.passes=new WeakMap,this.keysByJSON=new Map,this.empty=this.admit({})}return ObjectCanon.prototype.isKnown=function(e){return isNonNullObject(e)&&this.known.has(e)},ObjectCanon.prototype.pass=function(e){if(isNonNullObject(e)){var t=isNonNullObject(e)?ea(e)?e.slice(0):tslib_es6_assign({__proto__:Object.getPrototypeOf(e)},e):e;return this.passes.set(t,e),t}return e},ObjectCanon.prototype.admit=function(e){var t=this;if(isNonNullObject(e)){var n=this.passes.get(e);if(n)return n;switch(Object.getPrototypeOf(e)){case Array.prototype:if(this.known.has(e))break;var r=e.map(this.admit,this),i=this.pool.lookupArray(r);return!i.array&&(this.known.add(i.array=r),__DEV__&&Object.freeze(r)),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 c=a.length;s.sorted.forEach(function(n){a.push(t.admit(e[n]))});var i=this.pool.lookupArray(a);if(!i.object){var l=i.object=Object.create(o);this.known.add(l),s.sorted.forEach(function(e,t){l[e]=a[c+t]}),__DEV__&&Object.freeze(l)}return i.object}}return e},ObjectCanon.prototype.sortedKeys=function(e){var t=Object.keys(e),n=this.pool.lookupArray(t);if(!n.keys){t.sort();var r=JSON.stringify(t);(n.keys=this.keysByJSON.get(r))||this.keysByJSON.set(r,n.keys={sorted:t,json:r})}return n.keys},ObjectCanon}(),eT=Object.assign(function(e){if(isNonNullObject(e)){void 0===h&&resetCanonicalStringify();var t=h.admit(e),n=y.get(t);return void 0===n&&y.set(t,n=JSON.stringify(t)),n}return JSON.stringify(e)},{reset:resetCanonicalStringify});function resetCanonicalStringify(){h=new ek,y=new(B?WeakMap:Map)}
12function asyncMap(e,t,n){return new W(function(r){var i=r.next,o=r.error,a=r.complete,s=0,c=!1,l={then:function(e){return new Promise(function(t){return t(e())})}};function makeCallback(e,t){return e?function(t){++s;var both=function(){return e(t)};l=l.then(both,both).then(function(e){--s,i&&i.call(r,e),c&&u.complete()},function(e){throw--s,e}).catch(function(e){o&&o.call(r,e)})}:function(e){return t&&t.call(r,e)}}var u={next:makeCallback(t,i),error:makeCallback(n,o),complete:function(){c=!0,!s&&a&&a.call(r)}},f=e.subscribe(u);return function(){return f.unsubscribe()}})}function getGraphQLErrorsFromResult(e){var t=isNonEmptyArray(e.errors)?e.errors.slice(0):[];return isExecutionPatchIncrementalResult(e)&&isNonEmptyArray(e.incremental)&&e.incremental.forEach(function(e){e.errors&&t.push.apply(t,e.errors)}),t}var eI={kind:d.FIELD,name:{kind:d.NAME,value:"__typename"}};function makeInUseGetterFunction(e){var t=new Map;return function(n){void 0===n&&(n=e);var r=t.get(n);return r||t.set(n,r={variables:new Set,fragmentSpreads:new Set}),r}}function removeDirectivesFromDocument(e,t){for(var n,r,i,o,a=makeInUseGetterFunction(""),s=makeInUseGetterFunction(""),getInUse=function(e){for(var t=0,n=void 0;t<e.length&&(n=e[t]);++t)if(!ea(n)){if(n.kind===d.OPERATION_DEFINITION)return a(n.name&&n.name.value);if(n.kind===d.FRAGMENT_DEFINITION)return s(n.name.value)}return __DEV__&&invariant.error("Could not find operation or fragment"),null},c=0,l=t.definitions.length-1;l>=0;--l)t.definitions[l].kind===d.OPERATION_DEFINITION&&++c;var u=(n=new Set,r=[],e.forEach(function(e){e.name?n.add(e.name):e.test&&r.push(e.test)}),function(e){return n.has(e.name.value)||r.some(function(t){return t(e)})}),f=e.some(function(e){return e.remove}),shouldRemoveField=function(e){return f&&e&&e.some(u)},p=new Map,h=!1,y={enter:function(e){if(shouldRemoveField(e.directives))return h=!0,null}},m=visitor_visit(t,{Field:y,InlineFragment:y,VariableDefinition:{enter:function(){return!1}},Variable:{enter:function(e,t,n,r,i){var o=getInUse(i);o&&o.variables.add(e.name.value)}},FragmentSpread:{enter:function(e,t,n,r,i){if(shouldRemoveField(e.directives))return h=!0,null;var o=getInUse(i);o&&o.fragmentSpreads.add(e.name.value)}},FragmentDefinition:{enter:function(e,t,n,r){p.set(JSON.stringify(r),e)},leave:function(e,t,n,r){return e===p.get(JSON.stringify(r))?e:c>0&&e.selectionSet.selections.every(function(e){return e.kind===d.FIELD&&"__typename"===e.name.value})?(s(e.name.value).removed=!0,h=!0,null):void 0}},Directive:{leave:function(e){if(u(e))return h=!0,null}}});if(!h)return t;var populateTransitiveVars=function(e){return e.transitiveVars||(e.transitiveVars=new Set(e.variables),e.removed||e.fragmentSpreads.forEach(function(t){populateTransitiveVars(s(t)).transitiveVars.forEach(function(t){e.transitiveVars.add(t)})})),e},v=new Set;m.definitions.forEach(function(e){e.kind===d.OPERATION_DEFINITION?populateTransitiveVars(a(e.name&&e.name.value)).fragmentSpreads.forEach(function(e){v.add(e)}):e.kind!==d.FRAGMENT_DEFINITION||0!==c||s(e.name.value).removed||v.add(e.name.value)}),v.forEach(function(e){populateTransitiveVars(s(e)).fragmentSpreads.forEach(function(e){v.add(e)})});var g={enter:function(e){var t;if(t=e.name.value,!v.has(t)||s(t).removed)return null}};return!function isEmpty(e,t){return!e||e.selectionSet.selections.every(function(e){return e.kind===d.FRAGMENT_SPREAD&&isEmpty(t[e.name.value],t)})}(getOperationDefinition(i=visitor_visit(m,{FragmentSpread:g,FragmentDefinition:g,OperationDefinition:{leave:function(e){if(e.variableDefinitions){var t=populateTransitiveVars(a(e.name&&e.name.value)).transitiveVars;if(t.size<e.variableDefinitions.length)return tslib_es6_assign(tslib_es6_assign({},e),{variableDefinitions:e.variableDefinitions.filter(function(e){return t.has(e.variable.name.value)})})}}}}))||(__DEV__?invariant("Document"===i.kind,'Expecting a parsed GraphQL document. Perhaps you need to wrap the query string in a "gql" tag? http://docs.apollostack.com/apollo-client/core.html#gql'):invariant("Document"===i.kind,51),__DEV__?invariant(i.definitions.length<=1,"Fragment must have exactly one definition."):invariant(i.definitions.length<=1,52),o=i.definitions[0],__DEV__?invariant("FragmentDefinition"===o.kind,"Must be a fragment definition."):invariant("FragmentDefinition"===o.kind,53),o),createFragmentMap(getFragmentDefinitions(i)))?i:null}var ex=Object.assign(function(e){return visitor_visit(e,{SelectionSet:{enter:function(e,t,n){if(!n||n.kind!==d.OPERATION_DEFINITION){var r=e.selections;if(!(!r||r.some(function(e){return storeUtils_isField(e)&&("__typename"===e.name.value||0===e.name.value.lastIndexOf("__",0))}))&&!(storeUtils_isField(n)&&n.directives&&n.directives.some(function(e){return"export"===e.name.value})))return tslib_es6_assign(tslib_es6_assign({},e),{selections:tslib_es6_spreadArray(tslib_es6_spreadArray([],r,!0),[eI],!1)})}}}})},{added:function(e){return e===eI}}),eD={test:function(e){var t="connection"===e.name.value;return t&&(!e.arguments||!e.arguments.some(function(e){return"key"===e.name.value}))&&__DEV__&&invariant.warn("Removing an @connection directive even though it does not have a key. You may want to use the key parameter to specify a store key."),t}},eN=new Map;function makeUniqueId(e){var t=eN.get(e)||1;return eN.set(e,t+1),"".concat(e,":").concat(t,":").concat(Math.random().toString(36).slice(2))}
12function iterateObserversSafely(e,t,n){var r=[];e.forEach(function(e){return e[t]&&r.push(e)}),r.forEach(function(e){return e[t](n)})}function fixObservableSubclass(e){function set(t){Object.defineProperty(e,t,{value:W})}return q&&Symbol.species&&set(Symbol.species),set("@@species"),e}function isPromiseLike(e){return e&&"function"==typeof e.then}var eL=function(e){function Concast(t){var n=e.call(this,function(e){return n.addObserver(e),function(){return n.removeObserver(e)}})||this;return n.observers=new Set,n.promise=new Promise(function(e,t){n.resolve=e,n.reject=t}),n.handlers={next:function(e){null!==n.sub&&(n.latest=["next",e],n.notify("next",e),iterateObserversSafely(n.observers,"next",e))},error:function(e){var t=n.sub;null!==t&&(t&&setTimeout(function(){return t.unsubscribe()}),n.sub=null,n.latest=["error",e],n.reject(e),n.notify("error",e),iterateObserversSafely(n.observers,"error",e))},complete:function(){var e=n.sub,t=n.sources;if(null!==e){var r=(void 0===t?[]:t).shift();r?isPromiseLike(r)?r.then(function(e){return n.sub=e.subscribe(n.handlers)}):n.sub=r.subscribe(n.handlers):(e&&setTimeout(function(){return e.unsubscribe()}),n.sub=null,n.latest&&"next"===n.latest[0]?n.resolve(n.latest[1]):n.resolve(),n.notify("complete"),iterateObserversSafely(n.observers,"complete"))}}},n.nextResultListeners=new Set,n.cancel=function(e){n.reject(e),n.sources=[],n.handlers.complete()},n.promise.catch(function(e){}),"function"==typeof t&&(t=[new W(t)]),isPromiseLike(t)?t.then(function(e){return n.start(e)},n.handlers.error):n.start(t),n}return __extends(Concast,e),Concast.prototype.start=function(e){void 0===this.sub&&(this.sources=Array.from(e),this.handlers.complete())},Concast.prototype.deliverLastMessage=function(e){if(this.latest){var t=this.latest[0],n=e[t];n&&n.call(e,this.latest[1]),null===this.sub&&"next"===t&&e.complete&&e.complete()}},Concast.prototype.addObserver=function(e){this.observers.has(e)||(this.deliverLastMessage(e),this.observers.add(e))},Concast.prototype.removeObserver=function(e){this.observers.delete(e)&&this.observers.size<1&&this.handlers.complete()},Concast.prototype.notify=function(e,t){var n=this.nextResultListeners;n.size&&(this.nextResultListeners=new Set,n.forEach(function(n){return n(e,t)}))},Concast.prototype.beforeNext=function(e){var t=!1;this.nextResultListeners.add(function(n,r){t||(t=!0,e(n,r))})},Concast}(W);function isNetworkRequestInFlight(e){return!!e&&e<7}fixObservableSubclass(eL),(a=m||(m={}))[a.loading=1]="loading",a[a.setVariables=2]="setVariables",a[a.fetchMore=3]="fetchMore",a[a.refetch=4]="refetch",a[a.poll=6]="poll",a[a.ready=7]="ready",a[a.error=8]="error";var eA=Object.prototype.toString;function cloneDeepHelper(e,t){switch(eA.call(e)){case"[object Array]":if((t=t||new Map).has(e))return t.get(e);var n=e.slice(0);return t.set(e,n),n.forEach(function(e,r){n[r]=cloneDeepHelper(e,t)}),n;case"[object Object]":if((t=t||new Map).has(e))return t.get(e);var r=Object.create(Object.getPrototypeOf(e));return t.set(e,r),Object.keys(e).forEach(function(n){r[n]=cloneDeepHelper(e[n],t)}),r;default:return e}}function compact(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=Object.create(null);return e.forEach(function(e){e&&Object.keys(e).forEach(function(t){var r=e[t];void 0!==r&&(n[t]=r)})}),n}var ej=Object.assign,eR=Object.hasOwnProperty,eP=function(e){function ObservableQuery(t){var n=t.queryManager,r=t.queryInfo,i=t.options,o=e.call(this,function(e){try{var t=e._subscription._observer;t&&!t.error&&(t.error=defaultSubscriptionObserverErrorCallback)}catch(e){}var n=!o.observers.size;o.observers.add(e);var r=o.last;return r&&r.error?e.error&&e.error(r.error):r&&r.result&&e.next&&e.next(r.result),n&&o.reobserve().catch(function(){}),function(){o.observers.delete(e)&&!o.observers.size&&o.tearDownQuery()}})||this;o.observers=new Set,o.subscriptions=new Set,o.queryInfo=r,o.queryManager=n,o.isTornDown=!1;var a=n.defaultOptions.watchQuery,s=(void 0===a?{}:a).fetchPolicy,c=void 0===s?"cache-first":s,l=i.fetchPolicy,u=void 0===l?c:l,f=i.initialFetchPolicy,p=void 0===f?"standby"===u?c:u:f;o.options=tslib_es6_assign(tslib_es6_assign({},i),{initialFetchPolicy:p,fetchPolicy:u}),o.queryId=r.queryId||n.generateQueryId();var d=getOperationDefinition(o.query);return o.queryName=d&&d.name&&d.name.value,o}return __extends(ObservableQuery,e),Object.defineProperty(ObservableQuery.prototype,"query",{get:function(){return this.queryManager.transform(this.options.query).document}
12,enumerable:!1,configurable:!0}),Object.defineProperty(ObservableQuery.prototype,"variables",{get:function(){return this.options.variables},enumerable:!1,configurable:!0}),ObservableQuery.prototype.result=function(){var e=this;return new Promise(function(t,n){var r={next:function(n){t(n),e.observers.delete(r),e.observers.size||e.queryManager.removeQuery(e.queryId),setTimeout(function(){i.unsubscribe()},0)},error:n},i=e.subscribe(r)})},ObservableQuery.prototype.getCurrentResult=function(e){void 0===e&&(e=!0);var t=this.getLastResult(!0),n=this.queryInfo.networkStatus||t&&t.networkStatus||m.ready,r=tslib_es6_assign(tslib_es6_assign({},t),{loading:isNetworkRequestInFlight(n),networkStatus:n}),i=this.options.fetchPolicy,o=void 0===i?"cache-first":i;if("network-only"===o||"no-cache"===o||"standby"===o||this.queryManager.transform(this.options.query).hasForcedResolvers);else{var a=this.queryInfo.getDiff();(a.complete||this.options.returnPartialData)&&(r.data=a.result),equal(r.data,{})&&(r.data=void 0),a.complete?(delete r.partial,a.complete&&r.networkStatus===m.loading&&("cache-first"===o||"cac
12he-only"===o)&&(r.networkStatus=m.ready,r.loading=!1)):r.partial=!0,!__DEV__||a.complete||this.options.partialRefetch||r.loading||r.data||r.error||logMissingFieldErrors(a.missing)}return e&&this.updateLastResult(r),r},ObservableQuery.prototype.isDifferentFromLastResult=function(e,t){return!this.last||!equal(this.last.result,e)||t&&!equal(this.last.variables,t)},ObservableQuery.prototype.getLast=function(e,t){var n=this.last;if(n&&n[e]&&(!t||equal(n.variables,this.variables)))return n[e]},ObservableQuery.prototype.getLastResult=function(e){return this.getLast("result",e)},ObservableQuery.prototype.getLastError=function(e){return this.getLast("error",e)},ObservableQuery.prototype.resetLastResults=function(){delete this.last,this.isTornDown=!1},ObservableQuery.prototype.resetQueryStoreErrors=function(){this.queryManager.resetErrors(this.queryId)},ObservableQuery.prototype.refetch=function(e){var t,n={pollInterval:0},r=this.options.fetchPolicy;if("cache-and-network"===r?n.fetchPolicy=r:"no-cache"===r?n.fetchPolicy="no-cache":n.fetchPolicy="network-only",__DEV__&&e&&eR.call(e,"variables")){var i=getQueryDefinition(this.query),o=i.variableDefinitions;(!o||!o.some(function(e){return"variables"===e.variable.name.value}))&&__DEV__&&invariant.warn("Called refetch(".concat(JSON.stringify(e),") for query ").concat((null===(t=i.name)||void 0===t?void 0:t.value)||JSON.stringify(i),", which does not declare a $variables variable.\nDid you mean to call refetch(variables) instead of refetch({ variables })?"))}return e&&!equal(this.options.variables,e)&&(n.variables=this.options.variables=tslib_es6_assign(tslib_es6_assign({},this.options.variables),e)),this.queryInfo.resetLastWrite(),this.reobserve(n,m.refetch)},ObservableQuery.prototype.fetchMore=function(e){var t=this,n=tslib_es6_assign(tslib_es6_assign({},e.query?e:tslib_es6_assign(tslib_es6_assign(tslib_es6_assign(tslib_es6_assign({},this.options),{query:this.query}),e),{variables:tslib_es6_assign(tslib_es6_assign({},this.options.variables),e.variables)})),{fetchPolicy:"no-cache"}),r=this.queryManager.generateQueryId(),i=this.queryInfo,o=i.networkStatus;i.networkStatus=m.fetchMore,n.notifyOnNetworkStatusChange&&this.observe();var a=new Set;return this.queryManager.fetchQuery(r,n,m.fetchMore).then(function(s){return t.queryManager.removeQuery(r),i.networkStatus===m.fetchMore&&(i.networkStatus=o),t.queryManager.cache.batch({update:function(r){var i=e.updateQuery;i?r.updateQuery({query:t.query,variables:t.variables,returnPartialData:!0,optimistic:!1},function(e){return i(e,{fetchMoreResult:s.data,variables:n.variables})}):r.writeQuery({query:n.query,variables:n.variables,data:s.data})},onWatchUpdated:function(e){a.add(e.query)}}),s}).finally(function(){a.has(t.query)||reobserveCacheFirst(t)})},ObservableQuery.prototype.subscribeToMore=function(e){var t=this,n=this.queryManager.startGraphQLSubscription({query:e.document,variables:e.variables,context:e.context}).subscribe({next:function(n){var r=e.updateQuery;r&&t.updateQuery(function(e,t){return r(e,{subscriptionData:n,variables:t.variables})})},error:function(t){if(e.onError){e.onError(t);return}__DEV__&&invariant.error("Unhandled GraphQL subscription error",t)}});return this.subscriptions.add(n),function(){t.subscriptions.delete(n)&&n.unsubscribe()}},ObservableQuery.prototype.setOptions=function(e){return this.reobserve(e)},ObservableQuery.prototype.setVariables=function(e){return equal(this.variables,e)?this.observers.size?this.result():Promise.resolve():(this.options.variables=e,this.observers.size)?this.reobserve({fetchPolicy:this.options.initialFetchPolicy,variables:e},m.setVariables):Promise.resolve()},ObservableQuery.prototype.updateQuery=function(e){var t=this.queryManager,n=e(t.cache.diff({query:this.options.query,variables:this.variables,returnPartialData:!0,optimistic:!1}).result,{variables:this.variables});n&&(t.cache.writeQuery({query:this.options.query,data:n,variables:this.variables}),t.broadcastQueries())},ObservableQuery.prototype.startPolling=function(e){this.options.pollInterval=e,this.updatePolling()},ObservableQuery.prototype.stopPolling=function(){this.options.pollInterval=0,this.updatePolling()},ObservableQuery.prototype.applyNextFetchPolicy=function(e,t){if(t.nextFetchPolicy){var n=t.fetchPolicy,r=void 0===n?"cache-first":n,i=t.initialFetchPolicy,o=void 0===i?r:i;"standby"===r||("function"==typeof t.nextFetchPolicy?t.fetchPolicy=t.nextFetchPolicy(r,{reason:e,options:t,observable:this,initialFetchPolicy:o}):"variables-changed"===e?t.fetchPolicy=o:t.fetchPolicy=t.nextFetchPolicy)}return t.fetchPolicy},ObservableQuery.prototype.fetch=function(e,t){return this.queryManager.setObservableQuery(this),this.queryManager.fetchConcastWithInfo(this.queryId,e,t)},ObservableQuery.prototype.updatePolling=function(){var e=this;if(!this.queryManager.ssrMode){var t=this.pollingInfo,n=this.options.pollInterval;if(!n){t&&(clearTimeout(t.timeout),delete this.pollingInfo);return}if(!t||t.interval!==n){__DEV__?invariant(n,"Attempted to start a polling query without a polling interval."):invariant(n,13),(t||(this.pollingInfo={})).interval=n;
12var maybeFetch=function(){e.pollingInfo&&(isNetworkRequestInFlight(e.queryInfo.networkStatus)?poll():e.reobserve({fetchPolicy:"no-cache"===e.options.initialFetchPolicy?"no-cache":"network-only"},m.poll).then(poll,poll))},poll=function(){var t=e.pollingInfo;t&&(clearTimeout(t.timeout),t.timeout=setTimeout(maybeFetch,t.interval))};poll()}}},ObservableQuery.prototype.updateLastResult=function(e,t){return void 0===t&&(t=this.variables),this.last=tslib_es6_assign(tslib_es6_assign({},this.last),{result:this.queryManager.assumeImmutableResults?e:cloneDeepHelper(e),variables:t}),isNonEmptyArray(e.errors)||delete this.last.error,this.last},ObservableQuery.prototype.reobserveAsConcast=function(e,t){var n=this;this.isTornDown=!1;var r=t===m.refetch||t===m.fetchMore||t===m.poll,i=this.options.variables,o=this.options.fetchPolicy,a=compact(this.options,e||{}),s=r?a:ej(this.options,a);!r&&(this.updatePolling(),e&&e.variables&&!equal(e.variables,i)&&"standby"!==s.fetchPolicy&&s.fetchPolicy===o&&(this.applyNextFetchPolicy("variables-changed",s),void 0===t&&(t=m.setVariables)));var c=s.variables&&tslib_es6_assign({},s.variables),l=this.fetch(s,t),u=l.concast,f=l.fromLink,p={next:function(e){n.reportResult(e,c)},error:function(e){n.reportError(e,c)}};return!r&&f&&(this.concast&&this.observer&&this.concast.removeObserver(this.observer),this.concast=u,this.observer=p),u.addObserver(p),u},ObservableQuery.prototype.reobserve=function(e,t){return this.reobserveAsConcast(e,t).promise},ObservableQuery.prototype.observe=function(){this.reportResult(this.getCurrentResult(!1),this.variables)},ObservableQuery.prototype.reportResult=function(e,t){var n=this.getLastError();(n||this.isDifferentFromLastResult(e,t))&&((n||!e.partial||this.options.returnPartialData)&&this.updateLastResult(e,t),iterateObserversSafely(this.observers,"next",e))},ObservableQuery.prototype.reportError=function(e,t){var n=tslib_es6_assign(tslib_es6_assign({},this.getLastResult()),{error:e,errors:e.graphQLErrors,networkStatus:m.error,loading:!1});this.updateLastResult(n,t),iterateObserversSafely(this.observers,"error",this.last.error=e)},ObservableQuery.prototype.hasObservers=function(){return this.observers.size>0},ObservableQuery.prototype.tearDownQuery=function(){this.isTornDown||(this.concast&&this.observer&&(this.concast.removeObserver(this.observer),delete this.concast,delete this.observer),this.stopPolling(),this.subscriptions.forEach(function(e){return e.unsubscribe()}),this.subscriptions.clear(),this.queryManager.stopQuery(this.queryId),this.observers.clear(),this.isTornDown=!0)},ObservableQuery}(W);function reobserveCacheFirst(e){var t=e.options,n=t.fetchPolicy,r=t.nextFetchPolicy;return"cache-and-network"===n||"network-only"===n?e.reobserve({fetchPolicy:"cache-first",nextFetchPolicy:function(){return(this.nextFetchPolicy=r,"function"==typeof r)?r.apply(this,arguments):n}}):e.reobserve()}function defaultSubscriptionObserverErrorCallback(e){__DEV__&&invariant.error("Unhandled error",e.message,e.stack)}function logMissingFieldErrors(e){__DEV__&&e&&__DEV__&&invariant.debug("Missing cache result fields: ".concat(JSON.stringify(e)),e)}function isSelectionNode(e){return e.kind===d.FIELD||e.kind===d.FRAGMENT_SPREAD||e.kind===d.INLINE_FRAGMENT}fixObservableSubclass(eP);var eF=null,eM={},eB=1;function context_esm_maybe(e){try{return e()}catch(e){}}var eV="@wry/context:Slot",eq=context_esm_maybe(function(){return globalThis})||context_esm_maybe(function(){return n.g})||Object.create(null),eK=eq[eV]||Array[eV]||function(e){try{Object.defineProperty(eq,eV,{value:e,enumerable:!1,writable:!1,configurable:!0})}finally{return e}}(function(){function Slot(){this.id=["slot",eB++,Date.now(),Math.random().toString(36).slice(2)].join(":")}return Slot.prototype.hasValue=function(){for(var e=eF;e;e=e.parent)if(this.id in e.slots){var t=e.slots[this.id];if(t===eM)break;return e!==eF&&(eF.slots[this.id]=t),!0}return eF&&(eF.slots[this.id]=eM),!1},Slot.prototype.getValue=function(){if(this.hasValue())return eF.slots[this.id]},Slot.prototype.withValue=function(e,t,n,r){var i,o=((i={__proto__:null})[this.id]=e,i),a=eF;eF={parent:a,slots:o};try{return t.apply(r,n)}finally{eF=a}},Slot.bind=function(e){var t=eF;return function(){var n=eF;try{return eF=t,e.apply(this,arguments)}finally{eF=n}}},Slot.noContext=function(e,t,n){if(!eF)return e.apply(n,t);var r=eF;try{return eF=null,e.apply(n,t)}finally{eF=r}},Slot}());function defaultDispose(){}eK.bind,eK.noContext;var eQ=function(){function Cache(e,t){void 0===e&&(e=1/0),void 0===t&&(t=defaultDispose),this.max=e,this.dispose=t,this.map=new Map,this.newest=null,this.oldest=null}return Cache.prototype.has=function(e){return this.map.has(e)},Cache.prototype.get=function(e){var t=this.getNode(e);return t&&t.value},Cache.prototype.getNode=function(e){var t=this.map.get(e);if(t&&t!==this.newest){var n=t.older,r=t.newer;r&&(r.older=n),n&&(n.newer=r),t.older=this.newest,t.older.newer=t,t.newer=null,this.newest=t,t===this.oldest&&(this.oldest=r)}return t},Cache.prototype.set=function(e,t){var n=this.getNode(e);
12return n?n.value=t:(n={key:e,value:t,newer:null,older:this.newest},this.newest&&(this.newest.newer=n),this.newest=n,this.oldest=this.oldest||n,this.map.set(e,n),n.value)},Cache.prototype.clean=function(){for(;this.oldest&&this.map.size>this.max;)this.delete(this.oldest.key)},Cache.prototype.delete=function(e){var t=this.map.get(e);return!!t&&(t===this.newest&&(this.newest=t.older),t===this.oldest&&(this.oldest=t.newer),t.newer&&(t.newer.older=t.older),t.older&&(t.older.newer=t.newer),this.map.delete(e),this.dispose(t.value,e),!0)},Cache}(),eU=new eK,eH=Object.prototype.hasOwnProperty,eG=void 0===(v=Array.from)?function(e){var t=[];return e.forEach(function(e){return t.push(e)}),t}:v;function maybeUnsubscribe(e){var t=e.unsubscribe;"function"==typeof t&&(e.unsubscribe=void 0,t())}var ez=[];function assert(e,t){if(!e)throw Error(t||"assertion failure")}function valueGet(e){switch(e.length){case 0:throw Error("unknown value");case 1:return e[0];case 2:throw e[1]}}var e$=function(){function Entry(e){this.fn=e,this.parents=new Set,this.childValues=new Map,this.dirtyChildren=null,this.dirty=!0,this.recomputing=!1,this.value=[],this.deps=null,++Entry.count}return Entry.prototype.peek=function(){if(1===this.value.length&&!mightBeDirty(this))return rememberParent(this),this.value[0]},Entry.prototype.recompute=function(e){var t;return assert(!this.recomputing,"already recomputing"),rememberParent(this),mightBeDirty(this)&&(forgetChildren(this),eU.withValue(this,recomputeNewValue,[this,e]),function(e,t){if("function"==typeof e.subscribe)try{maybeUnsubscribe(e),e.unsubscribe=e.subscribe.apply(null,t)}catch(t){return e.setDirty(),!1}return!0}(this,e)&&(this.dirty=!1,mightBeDirty(this)||(t=this,eachParent(t,reportCleanChild)))),valueGet(this.value)},Entry.prototype.setDirty=function(){this.dirty||(this.dirty=!0,this.value.length=0,eachParent(this,reportDirtyChild),maybeUnsubscribe(this))},Entry.prototype.dispose=function(){var e=this;this.setDirty(),forgetChildren(this),eachParent(this,function(t,n){t.setDirty(),forgetChild(t,e)})},Entry.prototype.forget=function(){this.dispose()}
12,Entry.prototype.dependOn=function(e){e.add(this),this.deps||(this.deps=ez.pop()||new Set),this.deps.add(e)},Entry.prototype.forgetDeps=function(){var e=this;this.deps&&(eG(this.deps).forEach(function(t){return t.delete(e)}),this.deps.clear(),ez.push(this.deps),this.deps=null)},Entry.count=0,Entry}();function rememberParent(e){var t=eU.getValue();if(t)return e.parents.add(t),t.childValues.has(e)||t.childValues.set(e,[]),mightBeDirty(e)?reportDirtyChild(t,e):reportCleanChild(t,e),t}function recomputeNewValue(e,t){e.recomputing=!0,e.value.length=0;try{e.value[0]=e.fn.apply(null,t)}catch(t){e.value[1]=t}e.recomputing=!1}function mightBeDirty(e){return e.dirty||!!(e.dirtyChildren&&e.dirtyChildren.size)}function eachParent(e,t){var n=e.parents.size;if(n)for(var r=eG(e.parents),i=0;i<n;++i)t(r[i],e)}function reportDirtyChild(e,t){assert(e.childValues.has(t)),assert(mightBeDirty(t));var n=!mightBeDirty(e);if(e.dirtyChildren){if(e.dirtyChildren.has(t))return}else e.dirtyChildren=ez.pop()||new Set;e.dirtyChildren.add(t),n&&eachParent(e,reportDirtyChild)}function reportCleanChild(e,t){assert(e.childValues.has(t)),assert(!mightBeDirty(t));var n,r,i=e.childValues.get(t);0===i.length?e.childValues.set(t,t.value.slice(0)):(n=t.value,(r=i.length)>0&&r===n.length&&i[r-1]===n[r-1]||e.setDirty()),removeDirtyChild(e,t),mightBeDirty(e)||eachParent(e,reportCleanChild)}function removeDirtyChild(e,t){var n=e.dirtyChildren;n&&(n.delete(t),0===n.size&&(ez.length<100&&ez.push(n),e.dirtyChildren=null))}function forgetChildren(e){e.childValues.size>0&&e.childValues.forEach(function(t,n){forgetChild(e,n)}),e.forgetDeps(),assert(null===e.dirtyChildren)}function forgetChild(e,t){t.parents.delete(e),e.childValues.delete(t),removeDirtyChild(e,t)}var eW={setDirty:!0,dispose:!0,forget:!0};function dep(e){var t=new Map,n=e&&e.subscribe;function depend(e){var r=eU.getValue();if(r){var i=t.get(e);i||t.set(e,i=new Set),r.dependOn(i),"function"==typeof n&&(maybeUnsubscribe(i),i.unsubscribe=n(e))}}return depend.dirty=function(e,n){var r=t.get(e);if(r){var i=n&&eH.call(eW,n)?n:"setDirty";eG(r).forEach(function(e){return e[i]()}),t.delete(e),maybeUnsubscribe(r)}},depend}function makeDefaultMakeCacheKeyFunction(){var e=new eC("function"==typeof WeakMap);return function(){return e.lookupArray(arguments)}}makeDefaultMakeCacheKeyFunction();var eY=new Set;function bundle_esm_wrap(e,t){void 0===t&&(t=Object.create(null));var n=new eQ(t.max||65536,function(e){return e.dispose()}),r=t.keyArgs,i=t.makeCacheKey||makeDefaultMakeCacheKeyFunction(),optimistic=function(){var o=i.apply(null,r?r.apply(null,arguments):arguments);if(void 0===o)return e.apply(null,arguments);var a=n.get(o);a||(n.set(o,a=new e$(e)),a.subscribe=t.subscribe,a.forget=function(){return n.delete(o)});var s=a.recompute(Array.prototype.slice.call(arguments));return n.set(o,a),eY.add(n),eU.hasValue()||(eY.forEach(function(e){return e.clean()}),eY.clear()),s};function dirtyKey(e){var t=n.get(e);t&&t.setDirty()}function peekKey(e){var t=n.get(e);if(t)return t.peek()}function forgetKey(e){return n.delete(e)}return Object.defineProperty(optimistic,"size",{get:function(){return n.map.size},configurable:!1,enumerable:!1}),optimistic.dirtyKey=dirtyKey,optimistic.dirty=function(){dirtyKey(i.apply(null,arguments))},optimistic.peekKey=peekKey,optimistic.peek=function(){return peekKey(i.apply(null,arguments))},optimistic.forgetKey=forgetKey,optimistic.forget=function(){return forgetKey(i.apply(null,arguments))},optimistic.makeCacheKey=i,optimistic.getKey=r?function(){return i.apply(null,r.apply(null,arguments))}:i,Object.freeze(optimistic)}var eJ=new eK,eZ=new WeakMap;function getCacheInfo(e){var t=eZ.get(e);return t||eZ.set(e,t={vars:new Set,dep:dep()}),t}function forgetCache(e){getCacheInfo(e).vars.forEach(function(t){return t.forgetCache(e)})}function makeVar(e){var t=new Set,n=new Set,rv=function(i){if(arguments.length>0){if(e!==i){e=i,t.forEach(function(e){getCacheInfo(e).dep.dirty(rv),e.broadcastWatches&&e.broadcastWatches()});var o=Array.from(n);n.clear(),o.forEach(function(t){return t(e)})}}else{var a=eJ.getValue();a&&(r(a),getCacheInfo(a).dep(rv))}return e};rv.onNextChange=function(e){return n.add(e),function(){n.delete(e)}};var r=rv.attachCache=function(e){return t.add(e),getCacheInfo(e).vars.add(rv),rv};return rv.forgetCache=function(e){return t.delete(e)},rv}var eX=function(){function LocalState(e){var t=e.cache,n=e.client,r=e.resolvers,i=e.fragmentMatcher;this.selectionsToResolveCache=new WeakMap,this.cache=t,n&&(this.client=n),r&&this.addResolvers(r),i&&this.setFragmentMatcher(i)}return LocalState.prototype.addResolvers=function(e){var t=this;this.resolvers=this.resolvers||{},Array.isArray(e)?e.forEach(function(e){t.resolvers=mergeDeep(t.resolvers,e)}):this.resolvers=mergeDeep(this.resolvers,e)},LocalState.prototype.setResolvers=function(e){this.resolvers={},this.addResolvers(e)},LocalState.prototype.getResolvers=function(){return this.resolvers||{}},LocalState.prototype.runResolvers=function(e){var t=e.document,n=e.remoteResult,r=e.context,i=e.variables,o=e.onlyRunForcedResolvers,a=void 0!==o&&o;return __awaiter(this,void 0,void 0,function(){return __generator(this,function(e){return t?[2,this.resolveDocument(t,n.data,r,i,this.fragmentMatcher,a).then(function(e){return tslib_es6_assign(tslib_es6_assign({},n),{data:e.result})})]:[2,n]})})},LocalState.prototype.setFragmentMatcher=function(e){this.fragmentMatcher=e},LocalState.prototype.getFragmentMatcher=function(){return this.fragmentMatcher},LocalState.prototype.clientQuery=function(e){return hasDirectives(["client"],e)&&this.resolvers?e:null},LocalState.prototype.serverQuery=function(e){return checkDocument(e),removeDirectivesFromDocument([{test:function(e){return"client"===e.name.value},remove:!0}],e)},LocalState.prototype.prepareContext=function(e){var t=this.cache;return tslib_es6_assign(tslib_es6_assign({},e),{cache:t,getCacheKey:function(e){return t.identify(e)}})},LocalState.prototype.addExportedVariables=function(e,t,n){return void 0===t&&(t={}),void 0===n&&(n={}),__awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return e?[2,this.resolveDocument(e,this.buildRootValueFromCache(e,t)||{},this.prepareContext(n),t).then(function(e){return tslib_es6_assign(tslib_es6_assign({},t),e.exportedVariables)})]:[2,tslib_es6_assign({},t)]})})},LocalState.prototype.shouldForceResolvers=function(e){var t=!1;return visitor_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 er}}}),t},LocalState.prototype.buildRootValueFromCache=function(e,t){return this.cache.diff({query:"query"===getMainDefinition(e).operation?e:visitor_visit(e,{OperationDefinition:{enter:function(e){return tslib_es6_assign(tslib_es6_assign({},e),{operation:"query"})}}}),variables:t,returnPartialData:!0,optimistic:!1}).result},LocalState.prototype.resolveDocument=function(e,t,n,r,i,o){return void 0===n&&(n={}),void 0===r&&(r={}),void 0===i&&(i=function(){return!0}),void 0===o&&(o=!1),__awaiter(this,void 0,void 0,function(){var a,s,c,l,u,f,p,d,h;return __generator(this,function(y){return a=getMainDefinition(e),s=createFragmentMap(getFragmentDefinitions(e)),c=this.collectSelectionsToResolve(a,s),u=(l=a.operation)?l.charAt(0).toUpperCase()+l.slice(1):"Query",f=this,p=f.cache,d=f.client,h={fragmentMap:s,context:tslib_es6_assign(tslib_es6_assign({}
12,n),{cache:p,client:d}),variables:r,fragmentMatcher:i,defaultOperationType:u,exportedVariables:{},selectionsToResolve:c,onlyRunForcedResolvers:o},[2,this.resolveSelectionSet(a.selectionSet,!1,t,h).then(function(e){return{result:e,exportedVariables:h.exportedVariables}})]})})},LocalState.prototype.resolveSelectionSet=function(e,t,n,r){return __awaiter(this,void 0,void 0,function(){var i,o,a,s,c,l=this;return __generator(this,function(u){return i=r.fragmentMap,o=r.context,a=r.variables,s=[n],c=function(e){return __awaiter(l,void 0,void 0,function(){var c,l;return __generator(this,function(u){return(t||r.selectionsToResolve.has(e))&&shouldInclude(e,a)?storeUtils_isField(e)?[2,this.resolveField(e,t,n,r).then(function(t){var n;void 0!==t&&s.push(((n={})[resultKeyNameFromField(e)]=t,n))})]:("InlineFragment"===e.kind?c=e:(c=i[e.name.value],__DEV__?invariant(c,"No fragment named ".concat(e.name.value)):invariant(c,11)),c&&c.typeCondition&&(l=c.typeCondition.name.value,r.fragmentMatcher(n,l,o))?[2,this.resolveSelectionSet(c.selectionSet,t,n,r).then(function(e){s.push(e)})]:[2]):[2]})})},[2,Promise.all(e.selections.map(c)).then(function(){return mergeDeepArray(s)})]})})},LocalState.prototype.resolveField=function(e,t,n,r){return __awaiter(this,void 0,void 0,function(){var i,o,a,s,c,l,u,f,p,d=this;return __generator(this,function(h){return n?(i=r.variables,s=(o=e.name.value)!==(a=resultKeyNameFromField(e)),l=Promise.resolve(c=n[a]||n[o]),(!r.onlyRunForcedResolvers||this.shouldForceResolvers(e))&&(u=n.__typename||r.defaultOperationType,(f=this.resolvers&&this.resolvers[u])&&(p=f[s?o:a])&&(l=Promise.resolve(eJ.withValue(this.cache,p,[n,argumentsObjectFromField(e,i),r.context,{field:e,fragmentMap:r.fragmentMap}])))),[2,l.then(function(n){if(void 0===n&&(n=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&&(r.exportedVariables[e.value.value]=n)})}),!e.selectionSet||null==n)return n;var i,o,a=null!==(o=null===(i=e.directives)||void 0===i?void 0:i.some(function(e){return"client"===e.name.value}))&&void 0!==o&&o;return Array.isArray(n)?d.resolveSubSelectedArray(e,t||a,n,r):e.selectionSet?d.resolveSelectionSet(e.selectionSet,t||a,n,r):void 0})]):[2,null]})})},LocalState.prototype.resolveSubSelectedArray=function(e,t,n,r){var i=this;return Promise.all(n.map(function(n){return null===n?null:Array.isArray(n)?i.resolveSubSelectedArray(e,t,n,r):e.selectionSet?i.resolveSelectionSet(e.selectionSet,t,n,r):void 0}))},LocalState.prototype.collectSelectionsToResolve=function(e,t){var isSingleASTNode=function(e){return!Array.isArray(e)},n=this.selectionsToResolveCache;return function collectByDefinition(e){if(!n.has(e)){var r=new Set;n.set(e,r),visitor_visit(e,{Directive:function(e,t,n,i,o){"client"===e.name.value&&o.forEach(function(e){isSingleASTNode(e)&&isSelectionNode(e)&&r.add(e)})},FragmentSpread:function(e,n,i,o,a){var s=t[e.name.value];__DEV__?invariant(s,"No fragment named ".concat(e.name.value)):invariant(s,12);var c=collectByDefinition(s);c.size>0&&(a.forEach(function(e){isSingleASTNode(e)&&isSelectionNode(e)&&r.add(e)}),r.add(e),c.forEach(function(e){r.add(e)}))}})}return n.get(e)}(e)},LocalState}(),e0=new(B?WeakMap:Map);function wrapDestructiveCacheMethod(e,t){var n=e[t];"function"==typeof n&&(e[t]=function(){return e0.set(e,(e0.get(e)+1)%1e15),n.apply(this,arguments)})}function cancelNotifyTimeout(e){e.notifyTimeout&&(clearTimeout(e.notifyTimeout),e.notifyTimeout=void 0)}var e1=function(){function QueryInfo(e,t){void 0===t&&(t=e.generateQueryId()),this.queryId=t,this.listeners=new Set,this.document=null,this.lastRequestId=1,this.subscriptions=new Set,this.stopped=!1,this.dirty=!1,this.observableQuery=null;var n=this.cache=e.cache;e0.has(n)||(e0.set(n,0),wrapDestructiveCacheMethod(n,"evict"),wrapDestructiveCacheMethod(n,"modify"),wrapDestructiveCacheMethod(n,"reset"))}return QueryInfo.prototype.init=function(e){var t=e.networkStatus||m.loading;return this.variables&&this.networkStatus!==m.loading&&!equal(this.variables,e.variables)&&(t=m.setVariables),equal(e.variables,this.variables)||(this.lastDiff=void 0),Object.assign(this,{document:e.document,variables:e.variables,networkError:null,graphQLErrors:this.graphQLErrors||[],networkStatus:t}),e.observableQuery&&this.setObservableQuery(e.observableQuery),e.lastRequestId&&(this.lastRequestId=e.lastRequestId),this},QueryInfo.prototype.reset=function(){cancelNotifyTimeout(this),this.dirty=!1},QueryInfo.prototype.getDiff=function(e){void 0===e&&(e=this.variables);var t=this.getDiffOptions(e);if(this.lastDiff&&equal(t,this.lastDiff.options))return this.lastDiff.diff;this.updateWatch(this.variables=e);var n=this.observableQuery;if(n&&"no-cache"===n.options.fetchPolicy)return{complete:!1};var r=this.cache.diff(t);return this.updateLastDiff(r,t),r},QueryInfo.prototype.updateLastDiff=function(e,t){this.lastDiff=e?{diff:e,options:t||this.getDiffOptions()}:void 0},QueryInfo.prototype.getDiffOptions=function(e){var t;return void 0===e&&(e=this.variables),{query:this.document,variables:e,returnPartialData:!0,optimistic:!0,canonizeResults:null===(t=this.observableQuery)||void 0===t?void 0:t.options.canonizeResults}},QueryInfo.prototype.setDiff=function(e){var t=this,n=this.lastDiff&&this.lastDiff.diff;this.updateLastDiff(e),this.dirty||equal(n&&n.result,e&&e.result)||(this.dirty=!0,this.notifyTimeout||(this.notifyTimeout=setTimeout(function(){return t.notify()},0)))},QueryInfo.prototype.setObservableQuery=function(e){var t=this;e!==this.observableQuery&&(this.oqListener&&this.listeners.delete(this.oqListener),this.observableQuery=e,e?(e.queryInfo=this,this.listeners.add(this.oqListener=function(){t.getDiff().fromOptimisticTransaction?e.observe():reobserveCacheFirst(e)})):delete this.oqListener)},QueryInfo.prototype.notify=function(){var e=this;cancelNotifyTimeout(this),this.shouldNotify()&&this.listeners.forEac
12h(function(t){return t(e)}),this.dirty=!1},QueryInfo.prototype.shouldNotify=function(){if(!this.dirty||!this.listeners.size)return!1;if(isNetworkRequestInFlight(this.networkStatus)&&this.observableQuery){var e=this.observableQuery.options.fetchPolicy;if("cache-only"!==e&&"cache-and-network"!==e)return!1}return!0},QueryInfo.prototype.stop=function(){if(!this.stopped){this.stopped=!0,this.reset(),this.cancel(),this.cancel=QueryInfo.prototype.cancel,this.subscriptions.forEach(function(e){return e.unsubscribe()});var e=this.observableQuery;e&&e.stopPolling()}},QueryInfo.prototype.cancel=function(){},QueryInfo.prototype.updateWatch=function(e){var t=this;void 0===e&&(e=this.variables);var n=this.observableQuery;if(!n||"no-cache"!==n.options.fetchPolicy){var r=tslib_es6_assign(tslib_es6_assign({},this.getDiffOptions(e)),{watcher:this,callback:function(e){return t.setDiff(e)}});this.lastWatch&&equal(r,this.lastWatch)||(this.cancel(),this.cancel=this.cache.watch(this.lastWatch=r))}},QueryInfo.prototype.resetLastWrite=function(){this.lastWrite=void 0},QueryInfo.prototype.shouldWrite=function(e,t){var n=this.lastWrite;return!(n&&n.dmCount===e0.get(this.cache)&&equal(t,n.variables)&&equal(e.data,n.result.data))},QueryInfo.prototype.markResult=function(e,t,n,r){var i=this,o=new ec,a=isNonEmptyArray(e.errors)?e.errors.slice(0):[];if(this.reset(),"incremental"in e&&isNonEmptyArray(e.incremental)){var s=mergeIncrementalData(this.getDiff().result,e);e.data=s}else if("hasNext"in e&&e.hasNext){var c=this.getDiff();e.data=o.merge(c.result,e.data)}this.graphQLErrors=a,"no-cache"===n.fetchPolicy?this.updateLastDiff({result:e.data,complete:!0},this.getDiffOptions(n.variables)):0!==r&&(shouldWriteResult(e,n.errorPolicy)?this.cache.performTransaction(function(o){if(i.shouldWrite(e,n.variables))o.writeQuery({query:t,data:e.data,variables:n.variables,overwrite:1===r}),i.lastWrite={result:e,variables:n.variables,dmCount:e0.get(i.cache)};else if(i.lastDiff&&i.lastDiff.diff.complete){e.data=i.lastDiff.diff.result;return}var a=i.getDiffOptions(n.variables),s=o.diff(a);i.stopped||i.updateWatch(n.variables),i.updateLastDiff(s,a),s.complete&&(e.data=s.result)}):this.lastWrite=void 0)},QueryInfo.prototype.markReady=function(){return this.networkError=null,this.networkStatus=m.ready},QueryInfo.prototype.markError=function(e){return this.networkStatus=m.error,this.lastWrite=void 0,this.reset(),e.graphQLErrors&&(this.graphQLErrors=e.graphQLErrors),e.networkError&&(this.networkError=e.networkError),e},QueryInfo}();function shouldWriteResult(e,t){void 0===t&&(t="none");var n="ignore"===t||"all"===t,r=!isNonEmptyArray(getGraphQLErrorsFromResult(e));return!r&&n&&e.data&&(r=!0),r}var e2=Object.prototype.hasOwnProperty,e3=function(){function QueryManager(e){var t=e.cache,n=e.link,r=e.defaultOptions,i=e.queryDeduplication,o=e.onBroadcast,a=e.ssrMode,s=e.clientAwareness,c=e.localState,l=e.assumeImmutableResults;this.clientAwareness={},this.queries=new Map,this.fetchCancelFns=new Map,this.transformCache=new(B?WeakMap:Map),this.queryIdCounter=1,this.requestIdCounter=1,this.mutationIdCounter=1,this.inFlightLinkObservables=new Map,this.cache=t,this.link=n,this.defaultOptions=r||Object.create(null),this.queryDeduplication=void 0!==i&&i,this.clientAwareness=void 0===s?{}:s,this.localState=c||new eX({cache:t}),this.ssrMode=void 0!==a&&a,this.assumeImmutableResults=!!l,(this.onBroadcast=o)&&(this.mutationStore=Object.create(null))}return QueryManager.prototype.stop=function(){var e=this;this.queries.forEach(function(t,n){e.stopQueryNoBroadcast(n)}),this.cancelPendingFetches(__DEV__?new I("QueryManager stopped while query was in flight"):new I(14))},QueryManager.prototype.cancelPendingFetches=function(e){this.fetchCancelFns.forEach(function(t){return t(e)}),this.fetchCancelFns.clear()},QueryManager.prototype.mutate=function(e){var t,n,r=e.mutation,i=e.variables,o=e.optimisticResponse,a=e.updateQueries,s=e.refetchQueries,c=void 0===s?[]:s,l=e.awaitRefetchQueries,u=void 0!==l&&l,f=e.update,p=e.onQueryUpdated,d=e.fetchPolicy,h=void 0===d?(null===(t=this.defaultOptions.mutate)||void 0===t?void 0:t.fetchPolicy)||"network-only":d,y=e.errorPolicy,m=void 0===y?(null===(n=this.defaultOptions.mutate)||void 0===n?void 0:n.errorPolicy)||"none":y,v=e.keepRootFields,g=e.context;return __awaiter(this,void 0,void 0,function(){var e,t,n,s,l,d;return __generator(this,function(y){switch(y.label){case 0:if(__DEV__?invariant(r,"mutation option is required. You must specify your GraphQL document in the mutation option."):invariant(r,15),__DEV__?invariant("network-only"===h||"no-cache"===h,"Mutations supp
12ort only 'network-only' or 'no-cache' fetchPolicy strings. The default `network-only` behavior automatically writes mutation results to the cache. Passing `no-cache` skips the cache write."):invariant("network-only"===h||"no-cache"===h,16),e=this.generateMutationId(),n=(t=this.transform(r)).document,s=t.hasClientExports,r=this.cache.transformForLink(n),i=this.getVariables(r,i),!s)return[3,2];return[4,this.localState.addExportedVariables(r,i,g)];case 1:i=y.sent(),y.label=2;case 2:return l=this.mutationStore&&(this.mutationStore[e]={mutation:r,variables:i,loading:!0,error:null}),o&&this.markMutationOptimistic(o,{mutationId:e,document:r,variables:i,fetchPolicy:h,errorPolicy:m,context:g,updateQueries:a,update:f,keepRootFields:v}),this.broadcastQueries(),d=this,[2,new Promise(function(t,n){return asyncMap(d.getObservableFromLink(r,tslib_es6_assign(tslib_es6_assign({},g),{optimisticResponse:o}),i,!1),function(t){if(isNonEmptyArray(getGraphQLErrorsFromResult(t))&&"none"===m)throw new eo({graphQLErrors:getGraphQLErrorsFromResult(t)});l&&(l.loading=!1,l.error=null);var n=tslib_es6_assign({},t);return"function"==typeof c&&(c=c(n)),"ignore"===m&&isNonEmptyArray(getGraphQLErrorsFromResult(n))&&delete n.errors,d.markMutationResult({mutationId:e,result:n,document:r,variables:i,fetchPolicy:h,errorPolicy:m,context:g,update:f,updateQueries:a,awaitRefetchQueries:u,refetchQueries:c,removeOptimistic:o?e:void 0,onQueryUpdated:p,keepRootFields:v})}).subscribe({next:function(e){d.broadcastQueries(),"hasNext"in e&&!1!==e.hasNext||t(e)},error:function(t){l&&(l.loading=!1,l.error=t),o&&d.cache.removeOptimistic(e),d.broadcastQueries(),n(t instanceof eo?t:new eo({networkError:t}))}})})]}})})},QueryManager.prototype.markMutationResult=function(e,t){var n=this;void 0===t&&(t=this.cache);var r=e.result,i=[],o="no-cache"===e.fetchPolicy;if(!o&&shouldWriteResult(r,e.errorPolicy)){if(isExecutionPatchIncrementalResult(r)||i.push({result:r.data,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables}),isExecutionPatchIncrementalResult(r)&&isNonEmptyArray(r.incremental)){var a=t.diff({id:"ROOT_MUTATION",query:this.transform(e.document).asQuery,variables:e.variables,optimistic:!1,returnPartialData:!0}),s=void 0;a.result&&(s=mergeIncrementalData(a.result,r)),void 0!==s&&(r.data=s,i.push({result:s,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables}))}var c=e.updateQueries;c&&this.queries.forEach(function(e,o){var a=e.observableQuery,s=a&&a.queryName;if(s&&e2.call(c,s)){var l=c[s],u=n.queries.get(o),f=u.document,p=u.variables,d=t.diff({query:f,variables:p,returnPartialData:!0,optimistic:!1}),h=d.result;if(d.complete&&h){var y=l(h,{mutationResult:r,queryName:f&&getOperationName(f)||void 0,queryVariables:p});y&&i.push({result:y,dataId:"ROOT_QUERY",query:f,variables:p})}}})}if(i.length>0||e.refetchQueries||e.update||e.onQueryUpdated||e.removeOptimistic){var l=[];if(this.refetchQueries({updateCache:function(t){o||i.forEach(function(e){return t.write(e)});var a,s=e.update,c=!(isExecutionPatchIncrementalResult(a=r)||"hasNext"in a&&"data"in a)||isExecutionPatchIncrementalResult(r)&&!r.hasNext;if(s){if(!o){var l=t.diff({id:"ROOT_MUTATION",query:n.transform(e.document).asQuery,variables:e.variables,optimistic:!1,returnPartialData:!0});l.complete&&("incremental"in(r=tslib_es6_assign(tslib_es6_assign({},r),{data:l.result}))&&delete r.incremental,"hasNext"in r&&delete r.hasNext)}c&&s(t,r,{context:e.context,variables:e.variables})}o||e.keepRootFields||!c||t.modify({id:"ROOT_MUTATION",fields:function(e,t){var n=t.fieldName,r=t.DELETE;return"__typename"===n?e:r}})},include:e.refetchQueries,optimistic:!1,removeOptimistic:e.removeOptimistic,onQueryUpdated:e.onQueryUpdated||null}).forEach(function(e){return l.push(e)}),e.awaitRefetchQueries||e.onQueryUpdated)return Promise.all(l).then(function(){return r})}return Promise.resolve(r)},QueryManager.prototype.markMutationOptimistic=function(e,t){var n=this,r="function"==typeof e?e(t.variables):e;return this.cache.recordOptimisticTransaction(function(e){try{n.markMutationResult(tslib_es6_assign(tslib_es6_assign({},t),{result:{data:r}}),e)}catch(e){__DEV__&&invariant.error(e)}},t.mutationId)},QueryManager.prototype.fetchQuery=function(e,t,n){return this.fetchQueryObservable(e,t,n).promise},QueryManager.prototype.getQueryStore=function(){var e=Object.create(null);
12return this.queries.forEach(function(t,n){e[n]={variables:t.variables,networkStatus:t.networkStatus,networkError:t.networkError,graphQLErrors:t.graphQLErrors}}),e},QueryManager.prototype.resetErrors=function(e){var t=this.queries.get(e);t&&(t.networkError=void 0,t.graphQLErrors=[])},QueryManager.prototype.transform=function(e){var t=this.transformCache;if(!t.has(e)){var n=this.cache.transformDocument(e),r=removeDirectivesFromDocument([eD],checkDocument(n)),i=this.localState.clientQuery(n),o=r&&this.localState.serverQuery(r),a={document:n,hasClientExports:n&&hasDirectives(["client","export"],n,!0),hasForcedResolvers:this.localState.shouldForceResolvers(n),clientQuery:i,serverQuery:o,defaultVars:getDefaultValues(getOperationDefinition(n)),asQuery:tslib_es6_assign(tslib_es6_assign({},n),{definitions:n.definitions.map(function(e){return"OperationDefinition"===e.kind&&"query"!==e.operation?tslib_es6_assign(tslib_es6_assign({},e),{operation:"query"}):e})})},add=function(e){e&&!t.has(e)&&t.set(e,a)};add(e),add(n),add(i),add(o)}return t.get(e)},QueryManager.prototype.getVariables=function(e,t){return tslib_es6_assign(tslib_es6_assign({},this.transform(e).defaultVars),t)},QueryManager.prototype.watchQuery=function(e){void 0===(e=tslib_es6_assign(tslib_es6_assign({},e),{variables:this.getVariables(e.query,e.variables)})).notifyOnNetworkStatusChange&&(e.notifyOnNetworkStatusChange=!1);var t=new e1(this),n=new eP({queryManager:this,queryInfo:t,options:e});return this.queries.set(n.queryId,t),t.init({document:n.query,observableQuery:n,variables:n.variables}),n},QueryManager.prototype.query=function(e,t){var n=this;return void 0===t&&(t=this.generateQueryId()),__DEV__?invariant(e.query,"query option is required. You must specify your GraphQL document in the query option."):invariant(e.query,17),__DEV__?invariant("Document"===e.query.kind,'You must wrap the query string in a "gql" tag.'):invariant("Document"===e.query.kind,18),__DEV__?invariant(!e.returnPartialData,"returnPartialData option only supported on watchQuery."):invariant(!e.returnPartialData,19),__DEV__?invariant(!e.pollInterval,"pollInterval option only supported on watchQuery."):invariant(!e.pollInterval,20),this.fetchQuery(t,e).finally(function(){return n.stopQuery(t)})},QueryManager.prototype.generateQueryId=function(){return String(this.queryIdCounter++)},QueryManager.prototype.generateRequestId=function(){return this.requestIdCounter++},QueryManager.prototype.generateMutationId=function(){return String(this.mutationIdCounter++)},QueryManager.prototype.stopQueryInStore=function(e){this.stopQueryInStoreNoBroadcast(e),this.broadcastQueries()},QueryManager.prototype.stopQueryInStoreNoBroadcast=function(e){var t=this.queries.get(e);t&&t.stop()},QueryManager.prototype.clearStore=function(e){return void 0===e&&(e={discardWatches:!0}),this.cancelPendingFetches(__DEV__?new I("Store reset while query was in flight (not completed in link chain)"):new I(21)),this.queries.forEach(function(e){e.observableQuery?e.networkStatus=m.loading:e.stop()}),this.mutationStore&&(this.mutationStore=Object.create(null)),this.cache.reset(e)},QueryManager.prototype.getObservableQueries=function(e){var t=this;void 0===e&&(e="active");var n=new Map,r=new Map,i=new Set;return Array.isArray(e)&&e.forEach(function(e){"string"==typeof e?r.set(e,!1):isNonNullObject(e)&&"Document"===e.kind&&Array.isArray(e.definitions)?r.set(t.transform(e).document,!1):isNonNullObject(e)&&e.query&&i.add(e)}),this.queries.forEach(function(t,i){var o=t.observableQuery,a=t.document;if(o){if("all"===e){n.set(i,o);return}var s=o.queryName;if("standby"===o.options.fetchPolicy||"active"===e&&!o.hasObservers())return;("active"===e||s&&r.has(s)||a&&r.has(a))&&(n.set(i,o),s&&r.set(s,!0),a&&r.set(a,!0))}}),i.size&&i.forEach(function(e){var r=makeUniqueId("legacyOneTimeQuery"),i=t.getQuery(r).init({document:e.query,variables:e.variables}),o=new eP({queryManager:t,queryInfo:i,options:tslib_es6_assign(tslib_es6_assign({},e),{fetchPolicy:"network-only"})});invariant(o.queryId===r),i.setObservableQuery(o),n.set(r,o)}),__DEV__&&r.size&&r.forEach(function(e,t){!e&&__DEV__&&invariant.warn("Unknown query ".concat("string"==typeof t?"named ":"").concat(JSON.stringify(t,null,2)," requested in refetchQueries options.include array"))}),n},QueryManager.prototype.reFetchObservableQueries=function(e){var t=this;void 0===e&&(e=!1);var n=[];return this.getObservableQueries(e?"all":"active").forEach(function(r,i){var o=r.options.fetchPolicy;
12r.resetLastResults(),(e||"standby"!==o&&"cache-only"!==o)&&n.push(r.refetch()),t.getQuery(i).setDiff(null)}),this.broadcastQueries(),Promise.all(n)},QueryManager.prototype.setObservableQuery=function(e){this.getQuery(e.queryId).setObservableQuery(e)},QueryManager.prototype.startGraphQLSubscription=function(e){var t=this,n=e.query,r=e.fetchPolicy,i=e.errorPolicy,o=e.variables,a=e.context,s=void 0===a?{}:a;n=this.transform(n).document,o=this.getVariables(n,o);var makeObservable=function(e){return t.getObservableFromLink(n,s,e).map(function(o){"no-cache"!==r&&(shouldWriteResult(o,i)&&t.cache.write({query:n,result:o.data,dataId:"ROOT_SUBSCRIPTION",variables:e}),t.broadcastQueries());var a=isNonEmptyArray(getGraphQLErrorsFromResult(o)),s=!!o.extensions&&Array.isArray(o.extensions[ei]);if(a||s){var c={};throw a&&(c.graphQLErrors=o.errors),s&&(c.protocolErrors=o.extensions[ei]),new eo(c)}return o})};if(this.transform(n).hasClientExports){var c=this.localState.addExportedVariables(n,o,s).then(makeObservable);return new W(function(e){var t=null;return c.then(function(n){return t=n.subscribe(e)},e.error),function(){return t&&t.unsubscribe()}})}return makeObservable(o)},QueryManager.prototype.stopQuery=function(e){this.stopQueryNoBroadcast(e),this.broadcastQueries()},QueryManager.prototype.stopQueryNoBroadcast=function(e){this.stopQueryInStoreNoBroadcast(e),this.removeQuery(e)},QueryManager.prototype.removeQuery=function(e){this.fetchCancelFns.delete(e),this.queries.has(e)&&(this.getQuery(e).stop(),this.queries.delete(e))},QueryManager.prototype.broadcastQueries=function(){this.onBroadcast&&this.onBroadcast(),this.queries.forEach(function(e){return e.notify()})},QueryManager.prototype.getLocalState=function(){return this.localState},QueryManager.prototype.getObservableFromLink=function(e,t,n,r){var i,o,a=this;void 0===r&&(r=null!==(i=null==t?void 0:t.queryDeduplication)&&void 0!==i?i:this.queryDeduplication);var s=this.transform(e).serverQuery;if(s){var c=this.inFlightLinkObservables,l=this.link,u={query:s,variables:n,operationName:getOperationName(s)||void 0,context:this.prepareContext(tslib_es6_assign(tslib_es6_assign({},t),{forceFetch:!r}))};if(t=u.context,r){var f=c.get(s)||new Map;c.set(s,f);var p=eT(n);if(!(o=f.get(p))){var d=new eL([ee(l,u)]);f.set(p,o=d),d.beforeNext(function(){f.delete(p)&&f.size<1&&c.delete(s)})}}else o=new eL([ee(l,u)])}else o=new eL([W.of({data:{}})]),t=this.prepareContext(t);var h=this.transform(e).clientQuery;return h&&(o=asyncMap(o,function(e){return a.localState.runResolvers({document:h,remoteResult:e,context:t,variables:n})})),o},QueryManager.prototype.getResultsFromLink=function(e,t,n){var r=e.lastRequestId=this.generateRequestId(),i=this.cache.transformForLink(this.transform(e.document).document);return asyncMap(this.getObservableFromLink(i,n.context,n.variables),function(o){var a=getGraphQLErrorsFromResult(o),s=a.length>0;if(r>=e.lastRequestId){if(s&&"none"===n.errorPolicy)throw e.markError(new eo({graphQLErrors:a}));e.markResult(o,i,n,t),e.markReady()}var c={data:o.data,loading:!1,networkStatus:m.ready};return s&&"ignore"!==n.errorPolicy&&(c.errors=a,c.networkStatus=m.error),c},function(t){var n=t.hasOwnProperty("graphQLErrors")?t:new eo({networkError:t});throw r>=e.lastRequestId&&e.markError(n),n})},QueryManager.prototype.fetchQueryObservable=function(e,t,n){return this.fetchConcastWithInfo(e,t,n).concast},QueryManager.prototype.fetchConcastWithInfo=function(e,t,n){var r,i,o=this;void 0===n&&(n=m.loading);var a=this.transform(t.query).document,s=this.getVariables(a,t.variables),c=this.getQuery(e),l=this.defaultOptions.watchQuery,u=t.fetchPolicy,f=void 0===u?l&&l.fetchPolicy||"cache-first":u,p=t.errorPolicy,d=void 0===p?l&&l.errorPolicy||"none":p,h=t.returnPartialData,y=t.notifyOnNetworkStatusChange,v=t.context,g=Object.assign({},t,{query:a,variables:s,fetchPolicy:f,errorPolicy:d,returnPartialData:void 0!==h&&h,notifyOnNetworkStatusChange:void 0!==y&&y,context:void 0===v?{}:v}),fromVariables=function(e){g.variables=e;var r=o.fetchQueryByPolicy(c,g,n);return"standby"!==g.fetchPolicy&&r.sources.length>0&&c.observableQuery&&c.observableQuery.applyNextFetchPolicy("after-fetch",t),r},cleanupCancelFn=function(){return o.fetchCancelFns.delete(e)};if(this.fetchCancelFns.set(e,function(e){cleanupCancelFn(),setTimeout(function(){return r.cancel(e)})}),this.transform(g.query).hasClientExports)r=new eL(this.localState.addExportedVariables(g.query,g.variables,g.context).then(fromVariables).then(function(e){return e.sources})),i=!0;else{var b=fromVariables(g.variables);i=b.fromLink,r=new eL(b.sources)}return r.promise.then(cleanupCancelFn,cleanupCancelFn),{concast:r,fromLink:i}},QueryManager.prototype.refetchQueries=function(e){var t=this,n=e.updateCache,r=e.include,i=e.optimistic,o=void 0!==i&&i,a=e.removeOptimistic,s=void 0===a?o?makeUniqueId("refetchQueries"):void 0:a,c=e.onQueryUpdated,l=new Map;r&&this.getObservableQueries(r).forEach(function(e,n){l.set(n,{oq:e,lastDiff:t.getQuery(n).getDiff()})});var u=new Map;return n&&this.cache.batch({update:n,optimistic:o&&s||!1,removeOptimistic:s,onWatchUpdated:function(e,t,n){var r=e.watcher instanceof e1&&e.watcher.observableQuery;if(r){if(c){l.delete(r.queryId);var i=c(r,t,n);return!0===i&&(i=r.refetch()),!1!==i&&u.set(r,i),i}null!==c&&l.set(r.queryId,{oq:r,lastDiff:n,diff:t})}}}),l.size&&l.forEach(function(e,n){var r,i=e.oq,o=e.lastDiff,a=e.diff;if(c){if(!a){var s=i.queryInfo;s.reset(),a=s.getDiff()}r=c(i,a,o)}c&&!0!==r||(r=i.refetch()),!1!==r&&u.set(i,r),n.indexOf("legacyOneTimeQuery")>=0&&t.stopQueryNoBroadcast(n)}),s&&this.cache.removeOptimistic(s),u},QueryManager.prototype.fetchQueryByPolicy=function(e,t,n){var r=this,i=t.query,o=t.variables,a=t.fetchPolicy,s=t.refetchWritePolicy,c=t.errorPolicy,l=t.returnPartialData,u=t.context,f
12=t.notifyOnNetworkStatusChange,p=e.networkStatus;e.init({document:this.transform(i).document,variables:o,networkStatus:n});var readCache=function(){return e.getDiff(o)},resultsFromCache=function(t,n){void 0===n&&(n=e.networkStatus||m.loading);var a=t.result;!__DEV__||l||equal(a,{})||logMissingFieldErrors(t.missing);var fromData=function(e){return W.of(tslib_es6_assign({data:e,loading:isNetworkRequestInFlight(n),networkStatus:n},t.complete?null:{partial:!0}))};return a&&r.transform(i).hasForcedResolvers?r.localState.runResolvers({document:i,remoteResult:{data:a},context:u,variables:o,onlyRunForcedResolvers:!0}).then(function(e){return fromData(e.data||void 0)}):"none"===c&&n===m.refetch&&Array.isArray(t.missing)?fromData(void 0):fromData(a)},d="no-cache"===a?0:n===m.refetch&&"merge"!==s?1:2,resultsFromLink=function(){return r.getResultsFromLink(e,d,{variables:o,context:u,fetchPolicy:a,errorPolicy:c})},h=f&&"number"==typeof p&&p!==n&&isNetworkRequestInFlight(n);switch(a){default:case"cache-first":var y=readCache();if(y.complete)return{fromLink:!1,sources:[resultsFromCache(y,e.markReady())]};if(l||h)return{fromLink:!0,sources:[resultsFromCache(y),resultsFromLink()]};return{fromLink:!0,sources:[resultsFromLink()]};case"cache-and-network":var y=readCache();if(y.complete||l||h)return{fromLink:!0,sources:[resultsFromCache(y),resultsFromLink()]};return{fromLink:!0,sources:[resultsFromLink()]};case"cache-only":return{fromLink:!1,sources:[resultsFromCache(readCache(),e.markReady())]};case"network-only":if(h)return{fromLink:!0,sources:[resultsFromCache(readCache()),resultsFromLink()]};return{fromLink:!0,sources:[resultsFromLink()]};case"no-cache":if(h)return{fromLink:!0,sources:[resultsFromCache(e.getDiff()),resultsFromLink()]};return{fromLink:!0,sources:[resultsFromLink()]};case"standby":return{fromLink:!1,sources:[]}}},QueryManager.prototype.getQuery=function(e){return e&&!this.queries.has(e)&&this.queries.set(e,new e1(this,e)),this.queries.get(e)},QueryManager.prototype.prepareContext=function(e){void 0===e&&(e={});var t=this.localState.prepareContext(e);return tslib_es6_assign(tslib_es6_assign({},t),{clientAwareness:this.clientAwareness})},QueryManager}();function mergeOptions(e,t){return compact(e,t,t.variables&&{variables:tslib_es6_assign(tslib_es6_assign({},e&&e.variables),t.variables)})}var e6=!1,e5=function(){function ApolloClient(e){var t=this;this.resetStoreCallbacks=[],this.clearStoreCallbacks=[];var n=e.uri,r=e.credentials,i=e.headers,o=e.cache,a=e.ssrMode,s=void 0!==a&&a,c=e.ssrForceFetchDelay,l=void 0===c?0:c,u=e.connectToDevTools,f=void 0===u?"object"==typeof window&&!window.__APOLLO_CLIENT__&&__DEV__:u,p=e.queryDeduplication,d=void 0===p||p,h=e.defaultOptions,y=e.assumeImmutableResults,m=e.resolvers,v=e.typeDefs,g=e.fragmentMatcher,b=e.name,_=e.version,E=e.link;if(E||(E=n?new ey({uri:n,credentials:r,headers:i}):X.empty()),!o)throw __DEV__?new I("To initialize Apollo Client, you must specify a 'cache' property in the options object. \nFor more information, please visit: https://go.apollo.dev/c/docs"):new I(9);if(this.link=E,this.cache=o,this.disableNetworkFetches=s||l>0,this.queryDeduplication=d,this.defaultOptions=h||Object.create(null),this.typeDefs=v,l&&setTimeout(function(){return t.disableNetworkFetches=!1},l),this.watchQuery=this.watchQuery.bind(this),this.query=this.query.bind(this),this.mutate=this.mutate.bind(this),this.resetStore=this.resetStore.bind(this),this.reFetchObservableQueries=this.reFetchObservableQueries.bind(this),f&&"object"==typeof window&&(window.__APOLLO_CLIENT__=this),!e6&&f&&__DEV__&&(e6=!0,"undefined"!=typeof window&&window.document&&window.top===window.self&&!window.__APOLLO_DEVTOOLS_GLOBAL_HOOK__)){var O=window.navigator,S=O&&O.userAgent,w=void 0;"string"==typeof S&&(S.indexOf("Chrome/")>-1?w="https://chrome.google.com/webstore/detail/apollo-client-developer-t/jdkknkkbebbapilgoeccciglkfbmbnfm":S.indexOf("Firefox/")>-1&&(w="https://addons.mozilla.org/en-US/firefox/addon/apollo-developer-tools/")),w&&__DEV__&&invariant.log("Download the Apollo DevTools for a better development experience: "+w)}this.version="3.7.13",this.localState=new eX({cache:o,client:this,resolvers:m,fragmentMatcher:g}),this.queryManager=new e3({cache:this.cache,link:this.link,defaultOptions:this.defaultOptions,queryDeduplication:d,ssrMode:s,clientAwareness:{name:b,version:_},localState:this.localState,assumeImmutableResults:void 0!==y&&y,onBroadcast:f?function(){t.devToolsHookCb&&t.devToolsHookCb({action:{},state:{queries:t.queryManager.getQueryStore(),mutations:t.queryManager.mutationStore||{}},dataWithOptimisticResults:t.cache.extract(!0)})}:void 0})}return ApolloClient.prototype.stop=function(){this.queryManager.stop()},ApolloClient.prototype.watchQuery=function(e){return this.defaultOptions.watchQuery&&(e=mergeOptions(this.defaultOptions.watchQuery,e)),this.disableNetworkFetches&&("network-only"===e.fetchPolicy||"cache-and-network"===e.fetchPolicy)&&(e=tslib_es6_assign(tslib_es6_assign({},e),{fetchPolicy:"cache-first"})),this.queryManager.watchQuery(e)},ApolloClient.prototype.query=function(e){return this.defaultOptions.query&&(e=mergeOptions(this.defaultOptions.query,e)),__DEV__?invariant("cache-and-network"!==e.fetchPolicy,"The cache-and-network fetchPolicy does not work with client.query, because client.query can only return a single result. Please use client.watchQuery to receive multiple results from the cache and the network, or consider using a different fetchPolicy, such as cache-first or network-only."):invariant("cache-and-network"!==e.fetchPolicy,10),this.disableNetworkFetches&&"network-only"===e.fetchPolicy&&(e=tslib_es6_assign(tslib_es6_assign({},e),{fetchPolicy:"cache-first"})),this.queryManager.query(e)},ApolloClient.prototype.mutate=function(e){return this.defaultOptions.mutate&&(e=mergeOptions(this.defaultOptions.mutate,e)),this.queryManager.mutate(e)},ApolloClient.prototype.subscribe=function(e){return this.queryManager.startGraphQLSubscription(e)},ApolloClient.prototype.readQuery=function(e,t){return void 0===t&&(t=!1),this.cache.readQuery(e,t)},ApolloClient.prototype.readFragment=function(e,t){return void 0===t&&(t=!1),this.cache.readFragment(e,t)},ApolloClient.prototype.writeQuery=function(e){var t=this.cache.writeQuery(e);return!1!==e.broadcast&&this.queryManager.broadcastQueries(),t},ApolloClient.prototype.writeFragment=function(e){var t=this.cache.writeFragment(e);return!1!==e.broadcast&&this.queryManager.broadcastQueries(),t},ApolloClient.prototype.__actionHookForDevTools=function(e){this.devToolsHookCb=e},ApolloClient.prototype.__requestRaw=function(e){return ee(this.link,e)},ApolloClient.prototype.resetStore=function(){var e=this;return Promise.resolve().then(function(){return e.queryManager.clearStore({discardWatches:!1})}).then(function(){return Promise.all(e.resetStoreCallbacks.map(function(e){return e()}))}).then(function(){return e.reFetchObservableQueries()})},ApolloClient.prototype.clearStore=function(){var e=this;return Promise.resolve().then(function(){return e.queryManager.clearStore({discardWatches:!0})}).then(function(){return Promise.all(e.clearStoreCallbacks.map(function(e){return e()}))})},ApolloClient.prototype.onResetStore=function(e){var t=this;return this.resetStoreCallbacks.push(e),function(){t.resetStoreCallbacks=t.resetStoreCallbacks.filter(function(t){return t!==e})}},ApolloClient.prototype.onClearStore=function(e){var t=this;return this.clearStoreCallbacks.push(e),function(){t.clearStoreCallbacks=t.clearStoreCallbacks.filter(function(t){return t!==e})}},ApolloClient.prototype.reFetchObservableQueries=function(e){return this.queryManager.reFetchObservableQueries(e)},ApolloClient.prototype.refetchQueries=function(e){var t=this.queryManager.refetchQueries(e),n=[],r=[];t.forEach(function(e,t){n.push(t),r.push(e)});var i=Promise.all(r);return i.queries=n,i.results=r,i.catch(function(e){__DEV__&&invariant.debug("In client.refetchQueries, Promise.all promise rejected with error ".concat(e))}),i},ApolloClient.prototype.getObservableQueries=function(e){return void 0===e&&(e="active"),this.queryManager.getObservableQueries(e)},ApolloClient.prototype.extract=function(e){return this.cache.extract(e)},ApolloClient.prototype.restore=function(e){return this.cache.restore(e)},ApolloClient.prototype.addResolvers=function(e){this.localState.addResolvers(e)},ApolloClient.prototype.setResolvers=function(e){this.localState.setResolvers(e)},ApolloClient.prototype.getResolvers=function(){return this.localState.getResolvers()},ApolloClient.prototype.setLocalStateFragmentMatcher=function(e){this.localState.setFragmentMatcher(e)},ApolloClient.prototype.setLink=function(e){this.link=this.queryManager.link=e},ApolloClient}(),e4=function(){function ApolloCache(){this.getFragmentDoc=bundle_esm_wrap(getFragmentQueryDocument)}return ApolloCache.prototype.batch=function(e){var t,n=this,r="string"==typeof e.o
12ptimistic?e.optimistic:!1===e.optimistic?null:void 0;return this.performTransaction(function(){return t=e.update(n)},r),t},ApolloCache.prototype.recordOptimisticTransaction=function(e,t){this.performTransaction(e,t)},ApolloCache.prototype.transformDocument=function(e){return e},ApolloCache.prototype.transformForLink=function(e){return e},ApolloCache.prototype.identify=function(e){},ApolloCache.prototype.gc=function(){return[]},ApolloCache.prototype.modify=function(e){return!1},ApolloCache.prototype.readQuery=function(e,t){return void 0===t&&(t=!!e.optimistic),this.read(tslib_es6_assign(tslib_es6_assign({},e),{rootId:e.id||"ROOT_QUERY",optimistic:t}))},ApolloCache.prototype.readFragment=function(e,t){return void 0===t&&(t=!!e.optimistic),this.read(tslib_es6_assign(tslib_es6_assign({},e),{query:this.getFragmentDoc(e.fragment,e.fragmentName),rootId:e.id,optimistic:t}))},ApolloCache.prototype.writeQuery=function(e){var t=e.id,n=e.data,r=__rest(e,["id","data"]);return this.write(Object.assign(r,{dataId:t||"ROOT_QUERY",result:n}))},ApolloCache.prototype.writeFragment=function(e){var t=e.id,n=e.data,r=e.fragment,i=e.fragmentName,o=__rest(e,["id","data","fragment","fragmentName"]);return this.write(Object.assign(o,{query:this.getFragmentDoc(r,i),dataId:t,result:n}))},ApolloCache.prototype.updateQuery=function(e,t){return this.batch({update:function(n){var r=n.readQuery(e),i=t(r);return null==i?r:(n.writeQuery(tslib_es6_assign(tslib_es6_assign({},e),{data:i})),i)}})},ApolloCache.prototype.updateFragment=function(e,t){return this.batch({update:function(n){var r=n.readFragment(e),i=t(r);return null==i?r:(n.writeFragment(tslib_es6_assign(tslib_es6_assign({},e),{data:i})),i)}})},ApolloCache}(),e9=function(e){function MissingFieldError(t,n,r,i){var o,a=e.call(this,t)||this;if(a.message=t,a.path=n,a.query=r,a.variables=i,Array.isArray(a.path)){a.missing=a.message;for(var s=a.path.length-1;s>=0;--s)a.missing=((o={})[a.path[s]]=a.missing,o)}else a.missing=a.path;return a.__proto__=MissingFieldError.prototype,a}return __extends(MissingFieldError,e),MissingFieldError}(Error);function maybeDeepFreeze(e){if(__DEV__){var t;(t=new Set([e])).forEach(function(e){isNonNullObject(e)&&function(e){if(__DEV__&&!Object.isFrozen(e))try{Object.freeze(e)}catch(e){if(e instanceof TypeError)return null;throw e}return e}(e)===e&&Object.getOwnPropertyNames(e).forEach(function(n){isNonNullObject(e[n])&&t.add(e[n])})})}return e}var e7=Object.prototype.hasOwnProperty;function isNullish(e){return null==e}function defaultDataIdFromObject(e,t){var n=e.__typename,r=e.id,i=e._id;if("string"==typeof n&&(t&&(t.keyObject=isNullish(r)?isNullish(i)?void 0:{_id:i}:{id:r}),isNullish(r)&&!isNullish(i)&&(r=i),!isNullish(r)))return"".concat(n,":").concat("number"==typeof r||"string"==typeof r?r:JSON.stringify(r))}var e8={dataIdFromObject:defaultDataIdFromObject,addTypename:!0,resultCaching:!0,canonizeResults:!1};function shouldCanonizeResults(e){var t=e.canonizeResults;return void 0===t?e8.canonizeResults:t}var te=/^[_a-z][_0-9a-z]*/i;function fieldNameFromStoreName(e){var t=e.match(te);return t?t[0]:e}function storeValueIsStoreObject(e){return isNonNullObject(e)&&!isReference(e)&&!ea(e)}function extractFragmentContext(e,t){var n=createFragmentMap(getFragmentDefinitions(e));return{fragmentMap:n,lookupFragment:function(e){var r=n[e];return!r&&t&&(r=t.lookup(e)),r||null}}}var tt=Object.create(null),delModifier=function(){return tt},tn=Object.create(null),tr=function(){function EntityStore(e,t){var n=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 maybeDeepFreeze(isReference(e)?n.get(e.__ref,t):e&&e[t])},this.canRead=function(e){return isReference(e)?n.has(e.__ref):"object"==typeof e},this.toReference=function(e,t){if("string"==typeof e)return makeReference(e);if(isReference(e))return e;var r=n.policies.identify(e)[0];if(r){var i=makeReference(r);return t&&n.merge(r,e),i}}}return EntityStore.prototype.toObject=function(){return tslib_es6_assign({},this.data)},EntityStore.prototype.has=function(e){return void 0!==this.lookup(e,!0)},EntityStore.prototype.get=function(e,t){if(this.group.depend(e,t),e7.call(this.data,e)){var n=this.data[e];if(n&&e7.call(n,t))return n[t]}return"__typename"===t&&e7.call(this.policies.rootTypenamesById,e)?this.policies.rootTypenamesById[e]:this instanceof to?this.parent.get(e,t):void 0},EntityStore.prototype.lookup=function(e,t){return(t&&this.group.depend(e,"__exists"),e7.call(this.data,e))?this.data[e]:this instanceof to?this.parent.lookup(e,t):this.policies.rootTypenamesById[e]?Object.create(null):void 0},EntityStore.prototype.merge=function(e,t){var n,r=this;isReference(e)&&(e=e.__ref),isReference(t)&&(t=t.__ref);
12var i="string"==typeof e?this.lookup(n=e):e,o="string"==typeof t?this.lookup(n=t):t;if(o){__DEV__?invariant("string"==typeof n,"store.merge expects a string ID"):invariant("string"==typeof n,1);var a=new ec(storeObjectReconciler).merge(i,o);if(this.data[n]=a,a!==i&&(delete this.refs[n],this.group.caching)){var s=Object.create(null);i||(s.__exists=1),Object.keys(o).forEach(function(e){if(!i||i[e]!==a[e]){s[e]=1;var t=fieldNameFromStoreName(e);t===e||r.policies.hasKeyArgs(a.__typename,t)||(s[t]=1),void 0!==a[e]||r instanceof to||delete a[e]}}),s.__typename&&!(i&&i.__typename)&&this.policies.rootTypenamesById[n]===a.__typename&&delete s.__typename,Object.keys(s).forEach(function(e){return r.group.dirty(n,e)})}}},EntityStore.prototype.modify=function(e,t){var n=this,r=this.lookup(e);if(r){var i=Object.create(null),o=!1,a=!0,s={DELETE:tt,INVALIDATE:tn,isReference:isReference,toReference:this.toReference,canRead:this.canRead,readField:function(t,r){return n.policies.readField("string"==typeof t?{fieldName:t,from:r||makeReference(e)}:t,{store:n})}};if(Object.keys(r).forEach(function(c){var l=fieldNameFromStoreName(c),u=r[c];if(void 0!==u){var f="function"==typeof t?t:t[c]||t[l];if(f){var p=f===delModifier?tt:f(maybeDeepFreeze(u),tslib_es6_assign(tslib_es6_assign({},s),{fieldName:l,storeFieldName:c,storage:n.getStorage(e,c)}));p===tn?n.group.dirty(e,c):(p===tt&&(p=void 0),p!==u&&(i[c]=p,o=!0,u=p))}void 0!==u&&(a=!1)}}),o)return this.merge(e,i),a&&(this instanceof to?this.data[e]=void 0:delete this.data[e],this.group.dirty(e,"__exists")),!0}return!1},EntityStore.prototype.delete=function(e,t,n){var r,i=this.lookup(e);if(i){var o=this.getFieldValue(i,"__typename"),a=t&&n?this.policies.getStoreFieldName({typename:o,fieldName:t,args:n}):t;return this.modify(e,a?((r={})[a]=delModifier,r):delModifier)}return!1},EntityStore.prototype.evict=function(e,t){var n=!1;return e.id&&(e7.call(this.data,e.id)&&(n=this.delete(e.id,e.fieldName,e.args)),this instanceof to&&this!==t&&(n=this.parent.evict(e,t)||n),(e.fieldName||n)&&this.group.dirty(e.id,e.fieldName||"__exists")),n},EntityStore.prototype.clear=function(){this.replace(null)},EntityStore.prototype.extract=function(){var e=this,t=this.toObject(),n=[];return this.getRootIdSet().forEach(function(t){e7.call(e.policies.rootTypenamesById,t)||n.push(t)}),n.length&&(t.__META={extraRootIds:n.sort()}),t},EntityStore.prototype.replace=function(e){var t=this;if(Object.keys(this.data).forEach(function(n){e&&e7.call(e,n)||t.delete(n)}),e){var n=e.__META,r=__rest(e,["__META"]);Object.keys(r).forEach(function(e){t.merge(e,r[e])}),n&&n.extraRootIds.forEach(this.retain,this)}},EntityStore.prototype.retain=function(e){return this.rootIds[e]=(this.rootIds[e]||0)+1},EntityStore.prototype.release=function(e){if(this.rootIds[e]>0){var t=--this.rootIds[e];return t||delete this.rootIds[e],t}return 0},EntityStore.prototype.getRootIdSet=function(e){return void 0===e&&(e=new Set),Object.keys(this.rootIds).forEach(e.add,e),this instanceof to?this.parent.getRootIdSet(e):Object.keys(this.policies.rootTypenamesById).forEach(e.add,e),e},EntityStore.prototype.gc=function(){var e=this,t=this.getRootIdSet(),n=this.toObject();t.forEach(function(r){e7.call(n,r)&&(Object.keys(e.findChildRefIds(r)).forEach(t.add,t),delete n[r])});var r=Object.keys(n);if(r.length){for(var i=this;i instanceof to;)i=i.parent;r.forEach(function(e){return i.delete(e)})}return r},EntityStore.prototype.findChildRefIds=function(e){if(!e7.call(this.refs,e)){var t=this.refs[e]=Object.create(null),n=this.data[e];if(!n)return t;var r=new Set([n]);r.forEach(function(e){isReference(e)&&(t[e.__ref]=!0),isNonNullObject(e)&&Object.keys(e).forEach(function(t){var n=e[t];isNonNullObject(n)&&r.add(n)})})}return this.refs[e]},EntityStore.prototype.makeCacheKey=function(){return this.group.keyMaker.lookupArray(arguments)},EntityStore}(),ti=function(){function CacheGroup(e,t){void 0===t&&(t=null),this.caching=e,this.parent=t,this.d=null,this.resetCaching()}return CacheGroup.prototype.resetCaching=function(){this.d=this.caching?dep():null,this.keyMaker=new eC(B)}
12,CacheGroup.prototype.depend=function(e,t){if(this.d){this.d(t+"#"+e);var n=fieldNameFromStoreName(t);n!==t&&this.d(n+"#"+e),this.parent&&this.parent.depend(e,t)}},CacheGroup.prototype.dirty=function(e,t){this.d&&this.d.dirty(t+"#"+e,"__exists"===t?"forget":"setDirty")},CacheGroup}();function maybeDependOnExistenceOfEntity(e,t){supportsResultCaching(e)&&e.group.depend(t,"__exists")}c=function(e){function Root(t){var n=t.policies,r=t.resultCaching,i=t.seed,o=e.call(this,n,new ti(void 0===r||r))||this;return o.stump=new ta(o),o.storageTrie=new eC(B),i&&o.replace(i),o}return __extends(Root,e),Root.prototype.addLayer=function(e,t){return this.stump.addLayer(e,t)},Root.prototype.removeLayer=function(){return this},Root.prototype.getStorage=function(){return this.storageTrie.lookupArray(arguments)},Root}(s=tr||(tr={})),s.Root=c;var to=function(e){function Layer(t,n,r,i){var o=e.call(this,n.policies,i)||this;return o.id=t,o.parent=n,o.replay=r,o.group=i,r(o),o}return __extends(Layer,e),Layer.prototype.addLayer=function(e,t){return new Layer(e,this,t,this.group)},Layer.prototype.removeLayer=function(e){var t=this,n=this.parent.removeLayer(e);return e===this.id?(this.group.caching&&Object.keys(this.data).forEach(function(e){var r=t.data[e],i=n.lookup(e);i?r?r!==i&&Object.keys(r).forEach(function(n){equal(r[n],i[n])||t.group.dirty(e,n)}
12):(t.group.dirty(e,"__exists"),Object.keys(i).forEach(function(n){t.group.dirty(e,n)})):t.delete(e)}),n):n===this.parent?this:n.addLayer(this.id,this.replay)},Layer.prototype.toObject=function(){return tslib_es6_assign(tslib_es6_assign({},this.parent.toObject()),this.data)},Layer.prototype.findChildRefIds=function(t){var n=this.parent.findChildRefIds(t);return e7.call(this.data,t)?tslib_es6_assign(tslib_es6_assign({},n),e.prototype.findChildRefIds.call(this,t)):n},Layer.prototype.getStorage=function(){for(var e=this.parent;e.parent;)e=e.parent;return e.getStorage.apply(e,arguments)},Layer}(tr),ta=function(e){function Stump(t){return e.call(this,"EntityStore.Stump",t,function(){},new ti(t.group.caching,t.group))||this}return __extends(Stump,e),Stump.prototype.removeLayer=function(){return this},Stump.prototype.merge=function(){return this.parent.merge.apply(this.parent,arguments)},Stump}(to);function storeObjectReconciler(e,t,n){var r=e[n],i=t[n];return equal(r,i)?r:i}function supportsResultCaching(e){return!!(e instanceof tr&&e.group.caching)}function execSelectionSetKeyArgs(e){return[e.selectionSet,e.objectOrReference,e.context,e.context.canonizeResults]}var ts=function(){function StoreReader(e){var t=this;this.knownResults=new(B?WeakMap:Map),this.config=compact(e,{addTypename:!1!==e.addTypename,canonizeResults:shouldCanonizeResults(e)}),this.canon=e.canon||new ek,this.executeSelectionSet=bundle_esm_wrap(function(e){var n,r=e.context.canonizeResults,i=execSelectionSetKeyArgs(e);i[3]=!r;var o=(n=t.executeSelectionSet).peek.apply(n,i);return o?r?tslib_es6_assign(tslib_es6_assign({},o),{result:t.canon.admit(o.result)}):o:(maybeDependOnExistenceOfEntity(e.context.store,e.enclosingRef.__ref),t.execSelectionSetImpl(e))},{max:this.config.resultCacheMaxSize,keyArgs:execSelectionSetKeyArgs,makeCacheKey:function(e,t,n,r){if(supportsResultCaching(n.store))return n.store.makeCacheKey(e,isReference(t)?t.__ref:t,n.varString,r)}}),this.executeSubSelectedArray=bundle_esm_wrap(function(e){return maybeDependOnExistenceOfEntity(e.context.store,e.enclosingRef.__ref),t.execSubSelectedArrayImpl(e)},{max:this.config.resultCacheMaxSize,makeCacheKey:function(e){var t=e.field,n=e.array,r=e.context;if(supportsResultCaching(r.store))return r.store.makeCacheKey(t,n,r.varString)}})}return StoreReader.prototype.resetCanon=function(){this.canon=new ek},StoreReader.prototype.diffQueryAgainstStore=function(e){var t,n=e.store,r=e.query,i=e.rootId,o=void 0===i?"ROOT_QUERY":i,a=e.variables,s=e.returnPartialData,c=e.canonizeResults,l=void 0===c?this.config.canonizeResults:c,u=this.config.cache.policies;a=tslib_es6_assign(tslib_es6_assign({},getDefaultValues(getQueryDefinition(r))),a);var f=makeReference(o),p=this.executeSelectionSet({selectionSet:getMainDefinition(r).selectionSet,objectOrReference:f,enclosingRef:f,context:tslib_es6_assign({store:n,query:r,policies:u,variables:a,varString:eT(a),canonizeResults:l},extractFragmentContext(r,this.config.fragments))});if(p.missing&&(t=[new e9(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,r,a)],!(void 0===s||s)))throw t[0];return{result:p.result,complete:!t,missing:t}},StoreReader.prototype.isFresh=function(e,t,n,r){if(supportsResultCaching(r.store)&&this.knownResults.get(e)===n){var i=this.executeSelectionSet.peek(n,t,r,this.canon.isKnown(e));if(i&&e===i.result)return!0}return!1},StoreReader.prototype.execSelectionSetImpl=function(e){var t,n=this,r=e.selectionSet,i=e.objectOrReference,o=e.enclosingRef,a=e.context;if(isReference(i)&&!a.policies.rootTypenamesById[i.__ref]&&!a.store.has(i.__ref))return{result:this.canon.empty,missing:"Dangling reference to missing ".concat(i.__ref," object")};var s=a.variables,c=a.policies,l=a.store.getFieldValue(i,"__typename"),u=[],f=new ec;function handleMissing(e,n){var r;return e.missing&&(t=f.merge(t,((r={})[n]=e.missing,r))),e.result}this.config.addTypename&&"string"==typeof l&&!c.rootIdsByTypename[l]&&u.push({__typename:l});var p=new Set(r.selections);p.forEach(function(e){var r,h;if(shouldInclude(e,s)){if(storeUtils_isField(e)){var y=c.readField({fieldName:e.n
12ame.value,field:e,variables:a.variables,from:i},a),m=resultKeyNameFromField(e);void 0===y?ex.added(e)||(t=f.merge(t,((r={})[m]="Can't find field '".concat(e.name.value,"' on ").concat(isReference(i)?i.__ref+" object":"object "+JSON.stringify(i,null,2)),r))):ea(y)?y=handleMissing(n.executeSubSelectedArray({field:e,array:y,enclosingRef:o,context:a}),m):e.selectionSet?null!=y&&(y=handleMissing(n.executeSelectionSet({selectionSet:e.selectionSet,objectOrReference:y,enclosingRef:isReference(y)?y:o,context:a}),m)):a.canonizeResults&&(y=n.canon.pass(y)),void 0!==y&&u.push(((h={})[m]=y,h))}else{var v=getFragmentFromSelection(e,a.lookupFragment);if(!v&&e.kind===d.FRAGMENT_SPREAD)throw __DEV__?new I("No fragment named ".concat(e.name.value)):new I(5);v&&c.fragmentMatches(v,l)&&v.selectionSet.selections.forEach(p.add,p)}}});var h={result:mergeDeepArray(u),missing:t},y=a.canonizeResults?this.canon.admit(h):maybeDeepFreeze(h);return y.result&&this.knownResults.set(y.result,r),y},StoreReader.prototype.execSubSelectedArrayImpl=function(e){var t,n=this,r=e.field,i=e.array,o=e.enclosingRef,a=e.context,s=new ec;function handleMissing(e,n){var r;return e.missing&&(t=s.merge(t,((r={})[n]=e.missing,r))),e.result}return r.selectionSet&&(i=i.filter(a.store.canRead)),i=i.map(function(e,t){return null===e?null:ea(e)?handleMissing(n.executeSubSelectedArray({field:r,array:e,enclosingRef:o,context:a}),t):r.selectionSet?handleMissing(n.executeSelectionSet({selectionSet:r.selectionSet,objectOrReference:e,enclosingRef:isReference(e)?e:o,context:a}),t):(__DEV__&&function(e,t,n){if(!t.selectionSet){var r=new Set([n]);r.forEach(function(n){isNonNullObject(n)&&(__DEV__?invariant(!isReference(n),"Missing selection set for object of type ".concat(isReference(n)?e.get(n.__ref,"__typename"):n&&n.__typename," returned for query field ").concat(t.name.value)):invariant(!isReference(n),6),Object.values(n).forEach(r.add,r))})}}(a.store,r,e),e)}),{result:a.canonizeResults?this.canon.admit(i):i,missing:t}},StoreReader}(),tc=Object.create(null);function lookupSpecifierInfo(e){var t=JSON.stringify(e);return tc[t]||(tc[t]=Object.create(null))}function keyFieldsFnFromSpecifier(e){var t=lookupSpecifierInfo(e);return t.keyFieldsFn||(t.keyFieldsFn=function(t,n){var extract=function(e,t){return n.readField(t,e)},r=n.keyObject=collectSpecifierPaths(e,function(e){var r=extractKeyPath(n.storeObject,e,extract);return void 0===r&&t!==n.storeObject&&e7.call(t,e[0])&&(r=extractKeyPath(t,e,extractKey)),__DEV__?invariant(void 0!==r,"Missing field '".concat(e.join("."),"' while extracting keyFields from ").concat(JSON.stringify(t))):invariant(void 0!==r,2),r});return"".concat(n.typename,":").concat(JSON.stringify(r))})}function keyArgsFnFromSpecifier(e){var t=lookupSpecifierInfo(e);return t.keyArgsFn||(t.keyArgsFn=function(t,n){var r=n.field,i=n.variables,o=n.fieldName,a=JSON.stringify(collectSpecifierPaths(e,function(e){var n=e[0],o=n.charAt(0);if("@"===o){if(r&&isNonEmptyArray(r.directives)){var a=n.slice(1),s=r.directives.find(function(e){return e.name.value===a}),c=s&&argumentsObjectFromField(s,i);return c&&extractKeyPath(c,e.slice(1))}return}if("$"===o){var l=n.slice(1);if(i&&e7.call(i,l)){var u=e.slice(0);return u[0]=l,extractKeyPath(i,u)}return}if(t)return extractKeyPath(t,e)}));return(t||"{}"!==a)&&(o+=":"+a),o})}function collectSpecifierPaths(e,t){var n=new ec;return(function getSpecifierPaths(e){var t=lookupSpecifierInfo(e);if(!t.paths){var n=t.paths=[],r=[];e.forEach(function(t,i){ea(t)?(getSpecifierPaths(t).forEach(function(e){return n.push(r.concat(e))}),r.length=0):(r.push(t),ea(e[i+1])||(n.push(r.slice(0)),r.length=0))})}return t.paths})(e).reduce(function(e,r){var i,o=t(r);if(void 0!==o){for(var a=r.length-1;a>=0;--a)(i={})[r[a]]=o,o=i;e=n.merge(e,o)}return e},Object.create(null))}function extractKey(e,t){return e[t]}function extractKeyPath(e,t,n){return n=n||extractKey,function normalize(e){return isNonNullObject(e)?ea(e)?e.map(normalize):collectSpecifierPaths(Object.keys(e).sort(),function(t){return extractKeyPath(e,t)}):e}(t.reduce(function reducer(e,t){return ea(e)?e.map(function(e){return reducer(e,t)}):e&&n(e,t)},e))}function argsFromFieldSpecifier(e){return void 0!==e.args?e.args:e.f
12ield?argumentsObjectFromField(e.field,e.variables):null}J.setStringify(eT);var nullKeyFieldsFn=function(){},simpleKeyArgsFn=function(e,t){return t.fieldName},mergeTrueFn=function(e,t,n){return(0,n.mergeObjects)(e,t)},mergeFalseFn=function(e,t){return t},tl=function(){function Policies(e){this.config=e,this.typePolicies=Object.create(null),this.toBeAdded=Object.create(null),this.supertypeMap=new Map,this.fuzzySubtypes=new Map,this.rootIdsByTypename=Object.create(null),this.rootTypenamesById=Object.create(null),this.usingPossibleTypes=!1,this.config=tslib_es6_assign({dataIdFromObject:defaultDataIdFromObject},e),this.cache=this.config.cache,this.setRootTypename("Query"),this.setRootTypename("Mutation"),this.setRootTypename("Subscription"),e.possibleTypes&&this.addPossibleTypes(e.possibleTypes),e.typePolicies&&this.addTypePolicies(e.typePolicies)}return Policies.prototype.identify=function(e,t){var n,r,i=this,o=t&&(t.typename||(null===(n=t.storeObject)||void 0===n?void 0:n.__typename))||e.__typename;if(o===this.rootTypenamesById.ROOT_QUERY)return["ROOT_QUERY"];for(var a=t&&t.storeObject||e,s=tslib_es6_assign(tslib_es6_assign({},t),{typename:o,storeObject:a,readField:t&&t.readField||function(){var e=normalizeReadFieldOptions(arguments,a);return i.readField(e,{store:i.cache.data,variables:e.variables})}}),c=o&&this.getTypePolicy(o),l=c&&c.keyFn||this.config.dataIdFromObject;l;){var u=l(e,s);if(ea(u))l=keyFieldsFnFromSpecifier(u);else{r=u;break}}return r=r?String(r):void 0,s.keyObject?[r,s.keyObject]:[r]},Policies.prototype.addTypePolicies=function(e){var t=this;Object.keys(e).forEach(function(n){var r=e[n],i=r.queryType,o=r.mutationType,a=r.subscriptionType,s=__rest(r,["queryType","mutationType","subscriptionType"]);i&&t.setRootTypename("Query",n),o&&t.setRootTypename("Mutation",n),a&&t.setRootTypename("Subscription",n),e7.call(t.toBeAdded,n)?t.toBeAdded[n].push(s):t.toBeAdded[n]=[s]})},Policies.prototype.updateTypePolicy=function(e,t){var n=this,r=this.getTypePolicy(e),i=t.keyFields,o=t.fields;function setMerge(e,t){e.merge="function"==typeof t?t:!0===t?mergeTrueFn:!1===t?mergeFalseFn:e.merge}setMerge(r,t.merge),r.keyFn=!1===i?nullKeyFieldsFn:ea(i)?keyFieldsFnFromSpecifier(i):"function"==typeof i?i:r.keyFn,o&&Object.keys(o).forEach(function(t){var r=n.getFieldPolicy(e,t,!0),i=o[t];if("function"==typeof i)r.read=i;else{var a=i.keyArgs,s=i.read,c=i.merge;r.keyFn=!1===a?simpleKeyArgsFn:ea(a)?keyArgsFnFromSpecifier(a):"function"==typeof a?a:r.keyFn,"function"==typeof s&&(r.read=s),setMerge(r,c)}r.read&&r.merge&&(r.keyFn=r.keyFn||simpleKeyArgsFn)})},Policies.prototype.setRootTypename=function(e,t){void 0===t&&(t=e);var n="ROOT_"+e.toUpperCase(),r=this.rootTypenamesById[n];t!==r&&(__DEV__?invariant(!r||r===e,"Cannot change root ".concat(e," __typename more than once")):invariant(!r||r===e,3),r&&delete this.rootIdsByTypename[r],this.rootIdsByTypename[t]=n,this.rootTypenamesById[n]=t)},Policies.prototype.addPossibleTypes=function(e){var t=this;this.usingPossibleTypes=!0,Object.keys(e).forEach(function(n){t.getSupertypeSet(n,!0),e[n].forEach(function(e){t.getSupertypeSet(e,!0).add(n);var r=e.match(te);r&&r[0]===e||t.fuzzySubtypes.set(e,new RegExp(e))})})},Policies.prototype.getTypePolicy=function(e){var t=this;if(!e7.call(this.typePolicies,e)){var n=this.typePolicies[e]=Object.create(null);n.fields=Object.create(null);var r=this.supertypeMap.get(e);r&&r.size&&r.forEach(function(e){var r=t.getTypePolicy(e),i=r.fields;Object.assign(n,__rest(r,["fields"])),Object.assign(n.fields,i)})}var i=this.toBeAdded[e];return i&&i.length&&i.splice(0).forEach(function(n){t.updateTypePolicy(e,n)}),this.typePolicies[e]},Policies.prototype.getFieldPolicy=function(e,t,n){if(e){var r=this.getTypePolicy(e).fields;return r[t]||n&&(r[t]=Object.create(null))}},Policies.prototype.getSupertypeSet=function(e,t){var n=this.supertypeMap.get(e);return!n&&t&&this.supertypeMap.set(e,n=new Set),n},Policies.prototype.fragmentMatches=function(e,t,n,r){var i=this;if(!e.typeCondition)return!0;if(!t)return!1;var o=e.typeCondition.name.value;if(t===o)return!0;if(this.usingPossibleTypes&&this.supertypeMap.has(o))for(var a=this.getSupertypeSet(t,!0),s=[a],maybeEnqueue_1=function(e){var t=i.getSupertypeSet(e,!1);t&&t.size&&0>s.indexOf(t)&&s.push(t)},c=!!(n&&this.fuzzySubtypes.size),l=!1,u=0;u<s.length;++u){var f=s[u];
12if(f.has(o))return a.has(o)||(l&&__DEV__&&invariant.warn("Inferring subtype ".concat(t," of supertype ").concat(o)),a.add(o)),!0;f.forEach(maybeEnqueue_1),c&&u===s.length-1&&function selectionSetMatchesResult(e,t,n){return!!isNonNullObject(t)&&(ea(t)?t.every(function(t){return selectionSetMatchesResult(e,t,n)}):e.selections.every(function(e){if(storeUtils_isField(e)&&shouldInclude(e,n)){var r=resultKeyNameFromField(e);return e7.call(t,r)&&(!e.selectionSet||selectionSetMatchesResult(e.selectionSet,t[r],n))}return!0}))}(e.selectionSet,n,r)&&(c=!1,l=!0,this.fuzzySubtypes.forEach(function(e,n){var r=t.match(e);r&&r[0]===t&&maybeEnqueue_1(n)}))}return!1},Policies.prototype.hasKeyArgs=function(e,t){var n=this.getFieldPolicy(e,t,!1);return!!(n&&n.keyFn)},Policies.prototype.getStoreFieldName=function(e){var t,n,r,i,o,a=e.typename,s=e.fieldName,c=this.getFieldPolicy(a,s,!1),l=c&&c.keyFn;if(l&&a)for(var u={typename:a,fieldName:s,field:e.field||null,variables:e.variables},f=argsFromFieldSpecifier(e);l;){var p=l(f,u);if(ea(p))l=keyArgsFnFromSpecifier(p);else{o=p||s;break}}return void 0===o&&(o=e.field?(t=e.field,n=e.variables,r=null,t.directives&&(r={},t.directives.forEach(function(e){r[e.name.value]={},e.arguments&&e.arguments.forEach(function(t){var i=t.name,o=t.value;return valueToObjectRepresentation(r[e.name.value],i,o,n)})})),i=null,t.arguments&&t.arguments.length&&(i={},t.arguments.forEach(function(e){var t=e.name,r=e.value;return valueToObjectRepresentation(i,t,r,n)})),J(t.name.value,i,r)):J(s,argsFromFieldSpecifier(e))),!1===o?s:s===fieldNameFromStoreName(o)?o:s+":"+o},Policies.prototype.readField=function(e,t){var n=e.from;if(n&&(e.field||e.fieldName)){if(void 0===e.typename){var r=t.store.getFieldValue(n,"__typename");r&&(e.typename=r)}var i=this.getStoreFieldName(e),o=fieldNameFromStoreName(i),a=t.store.getFieldValue(n,i),s=this.getFieldPolicy(e.typename,o,!1),c=s&&s.read;if(c){var l=makeFieldFunctionOptions(this,n,e,t,t.store.getStorage(isReference(n)?n.__ref:n,i));return eJ.withValue(this.cache,c,[a,l])}return a}},Policies.prototype.getReadFunction=function(e,t){var n=this.getFieldPolicy(e,t,!1);return n&&n.read},Policies.prototype.getMergeFunction=function(e,t,n){var r=this.getFieldPolicy(e,t,!1),i=r&&r.merge;return!i&&n&&(i=(r=this.getTypePolicy(n))&&r.merge),i},Policies.prototype.runMergeFunction=function(e,t,n,r,i){var o=n.field,a=n.typename,s=n.merge;return s===mergeTrueFn?makeMergeObjectsFunction(r.store)(e,t):s===mergeFalseFn?t:(r.overwrite&&(e=void 0),s(e,t,makeFieldFunctionOptions(this,void 0,{typename:a,fieldName:o.name.value,field:o,variables:r.variables},r,i||Object.create(null))))},Policies}();function makeFieldFunctionOptions(e,t,n,r,i){var o=e.getStoreFieldName(n),a=fieldNameFromStoreName(o),s=n.variables||r.variables,c=r.store,l=c.toReference,u=c.canRead;return{args:argsFromFieldSpecifier(n),field:n.field||null,fieldName:a,storeFieldName:o,variables:s,isReference:isReference,toReference:l,storage:i,cache:e.cache,canRead:u,readField:function(){return e.readField(normalizeReadFieldOptions(arguments,t,s),r)},mergeObjects:makeMergeObjectsFunction(r.store)}}function normalizeReadFieldOptions(e,t,n){var r,i,o,a=e[0],s=e[1],c=e.length;return"string"==typeof a?o={fieldName:a,from:c>1?s:t}:(o=tslib_es6_assign({},a),e7.call(o,"from")||(o.from=t)),__DEV__&&void 0===o.from&&__DEV__&&invariant.warn("Undefined 'from' passed to readField with arguments ".concat((r=Array.from(e),i=makeUniqueId("stringifyForDisplay"),JSON.stringify(r,function(e,t){return void 0===t?i:t}).split(JSON.stringify(i)).join("<undefined>")))),void 0===o.variables&&(o.variables=n),o}function makeMergeObjectsFunction(e){return function(t,n){if(ea(t)||ea(n))throw __DEV__?new I("Cannot automatically merge arrays"):new I(4);if(isNonNullObject(t)&&isNonNullObject(n)){var r=e.getFieldValue(t,"__typename"),i=e.getFieldValue(n,"__typename");if(r&&i&&r!==i)return n;if(isReference(t)&&storeValueIsStoreObject(n))return e.merge(t.__ref,n),t;if(storeValueIsStoreObject(t)&&isReference(n))return e.merge(t,n.__ref),n;if(storeValueIsStoreObject(t)&&storeValueIsStoreObject(n))return tslib_es6_assign(tslib_es6_assign({},t),n)}return n}}function getContextFlavor(e,t,n){var r="".concat(t).concat(n),i=e.flavors.get(r);return i||e.flavors.set(r,i=e.clientOnly===t&&e.deferred===n?e:tslib_es6_assign(tslib_es6_assign({},e),{clientOnly:t,deferred:n})),i}var tu=function(){function StoreWriter(e,t,n){this.cache=e,this.reader=t,this.fragments=n}return StoreWriter.prototype.writeToStore=function(e,t){var n=this,r=t.query,i=t.result,o=t.dataId,a=t.variables,s=t.overwrite,c=getOperationDefinition(r),l=new ec;a=tslib_es6_assign(tslib_es6_assign({},getDefaultValues(c)),a);var u=tslib_es6_assign(tslib_es6_assign({store:e,written:Object.create(null),merge:function(e,t){return l.merge(e,t)},variables:a,varString:eT(a)},extractFragmentContext(r,this.fragments)),{overwrite:!!s,incomingById:new Map,clientOnly:!1,deferred:!1,flavors:new Map}),f=this.processSelectionSet({result:i||Object.create(null),dataId:o,selectionSet:c.selectionSet,mergeTree:{map:new Map},context:u});if(!isReference(f))throw __DEV__?new I("Could not identify object ".concat(JSON.stringify(i))):new I(7);
12return u.incomingById.forEach(function(t,r){var i=t.storeObject,o=t.mergeTree,a=t.fieldNodeSet,s=makeReference(r);if(o&&o.map.size){var c=n.applyMerges(o,s,i,u);if(isReference(c))return;i=c}if(__DEV__&&!u.overwrite){var l=Object.create(null);a.forEach(function(e){e.selectionSet&&(l[e.name.value]=!0)});var hasMergeFunction_1=function(e){var t=o&&o.map.get(e);return!!(t&&t.info&&t.info.merge)};Object.keys(i).forEach(function(e){!0!==l[fieldNameFromStoreName(e)]||hasMergeFunction_1(e)||function(e,t,n,r){var getChild=function(e){var t=r.getFieldValue(e,n);return"object"==typeof t&&t},i=getChild(e);if(i){var o=getChild(t);if(!(!o||isReference(i)||equal(i,o)||Object.keys(i).every(function(e){return void 0!==r.getFieldValue(o,e)}))){var a=r.getFieldValue(e,"__typename")||r.getFieldValue(t,"__typename"),s=fieldNameFromStoreName(n),c="".concat(a,".").concat(s);if(!tp.has(c)){tp.add(c);var l=[];ea(i)||ea(o)||[i,o].forEach(function(e){var t=r.getFieldValue(e,"__typename");"string"!=typeof t||l.includes(t)||l.push(t)}),__DEV__&&invariant.warn("Cache data may be lost when replacing the ".concat(s," field of a ").concat(a," object.\n\nTo address this problem (which is not a bug in Apollo Client), ").concat(l.length?"either ensure all objects of type "+l.join(" and ")+" have an ID or a custom merge function, or ":"","define a custom merge function for the ").concat(c," field, so InMemoryCache can safely merge these objects:\n\n  existing: ").concat(JSON.stringify(i).slice(0,1e3),"\n  incoming: ").concat(JSON.stringify(o).slice(0,1e3),"\n\nFor more information about these options, please refer to the documentation:\n\n  * Ensuring entity objects have IDs: https://go.apollo.dev/c/generating-unique-identifiers\n  * Defining custom merge functions: https://go.apollo.dev/c/merging-non-normalized-objects\n"))}}}}(s,i,e,u.store)})}e.merge(r,i)}),e.retain(f.__ref),f},StoreWriter.prototype.processSelectionSet=function(e){var t=this,n=e.dataId,r=e.result,i=e.selectionSet,o=e.context,a=e.mergeTree,s=this.cache.policies,c=Object.create(null),l=n&&s.rootTypenamesById[n]||getTypenameFromResult(r,i,o.fragmentMap)||n&&o.store.get(n,"__typename");"string"==typeof l&&(c.__typename=l);var readField=function(){var e=normalizeReadFieldOptions(arguments,c,o.variables);if(isReference(e.from)){var t=o.incomingById.get(e.from.__ref);if(t){var n=s.readField(tslib_es6_assign(tslib_es6_assign({},e),{from:t.storeObject}),o);if(void 0!==n)return n}}return s.readField(e,o)},u=new Set;this.flattenFields(i,r,o,l).forEach(function(e,n){var i,o=r[resultKeyNameFromField(n)];if(u.add(n),void 0!==o){var f=s.getStoreFieldName({typename:l,fieldName:n.name.value,field:n,variables:e.variables}),p=getChildMergeTree(a,f),d=t.processFieldValue(o,n,n.selectionSet?getContextFlavor(e,!1,!1):e,p),h=void 0;n.selectionSet&&(isReference(d)||storeValueIsStoreObject(d))&&(h=readField("__typename",d));var y=s.getMergeFunction(l,n.name.value,h);y?p.info={field:n,typename:l,merge:y}:maybeRecycleChildMergeTree(a,f),c=e.merge(c,((i={})[f]=d,i))}else __DEV__&&!e.clientOnly&&!e.deferred&&!ex.added(n)&&!s.getReadFunction(l,n.name.value)&&__DEV__&&invariant.error("Missing field '".concat(resultKeyNameFromField(n),"' while writing result ").concat(JSON.stringify(r,null,2)).substring(0,1e3))});try{var f=s.identify(r,{typename:l,selectionSet:i,fragmentMap:o.fragmentMap,storeObject:c,readField:readField}),p=f[0],d=f[1];n=n||p,d&&(c=o.merge(c,d))}catch(e){if(!n)throw e}if("string"==typeof n){var h=makeReference(n),y=o.written[n]||(o.written[n]=[]);if(y.indexOf(i)>=0||(y.push(i),this.reader&&this.reader.isFresh(r,h,i,o)))return h;var m=o.incomingById.get(n);return m?(m.storeObject=o.merge(m.storeObject,c),m.mergeTree=function mergeMergeTrees(e,t){if(e===t||!t||mergeTreeIsEmpty(t))return e;if(!e||mergeTreeIsEmpty(e))return t;var n=e.info&&t.info?tslib_es6_assign(tslib_es6_assign({},e.info),t.info):e.info||t.info,r=e.map.size&&t.map.size,i={info:n,map:r?new Map:e.map.size?e.map:t.map};if(r){var o=new Set(t.map.keys());e.map.forEach(function(e,n){i.map.set(n,mergeMergeTrees(e,t.map.get(n))),o.delete(n)}),o.forEach(function(n){i.map.set(n,mergeMergeTrees(t.map.get(n),e.map.get(n)))})}return i}(m.mergeTree,a),u.forEach(function(e){return m.fieldNodeSet.add(e)})):o.incomingById.set(n,{storeObject:c,mergeTree:mergeTreeIsEmpty(a)?void 0:a,fieldNodeSet:u}),h}return c}
12,StoreWriter.prototype.processFieldValue=function(e,t,n,r){var i=this;return t.selectionSet&&null!==e?ea(e)?e.map(function(e,o){var a=i.processFieldValue(e,t,n,getChildMergeTree(r,o));return maybeRecycleChildMergeTree(r,o),a}):this.processSelectionSet({result:e,selectionSet:t.selectionSet,context:n,mergeTree:r}):__DEV__?cloneDeepHelper(e):e},StoreWriter.prototype.flattenFields=function(e,t,n,r){void 0===r&&(r=getTypenameFromResult(t,e,n.fragmentMap));var i=new Map,o=this.cache.policies,a=new eC(!1);return function flatten(e,s){var c=a.lookup(e,s.clientOnly,s.deferred);c.visited||(c.visited=!0,e.selections.forEach(function(e){if(shouldInclude(e,n.variables)){var a=s.clientOnly,c=s.deferred;if(!(a&&c)&&isNonEmptyArray(e.directives)&&e.directives.forEach(function(e){var t=e.name.value;if("client"===t&&(a=!0),"defer"===t){var r=argumentsObjectFromField(e,n.variables);r&&!1===r.if||(c=!0)}}),storeUtils_isField(e)){var l=i.get(e);l&&(a=a&&l.clientOnly,c=c&&l.deferred),i.set(e,getContextFlavor(n,a,c))}else{var u=getFragmentFromSelection(e,n.lookupFragment);if(!u&&e.kind===d.FRAGMENT_SPREAD)throw __DEV__?new I("No fragment named ".concat(e.name.value)):new I(8);u&&o.fragmentMatches(u,r,t,n.variables)&&flatten(u.selectionSet,getContextFlavor(n,a,c))}}}))}(e,n),i},StoreWriter.prototype.applyMerges=function(e,t,n,r,i){var o=this;if(e.map.size&&!isReference(n)){var a,s,c=!ea(n)&&(isReference(t)||storeValueIsStoreObject(t))?t:void 0,l=n;c&&!i&&(i=[isReference(c)?c.__ref:c]);var getValue_1=function(e,t){return ea(e)?"number"==typeof t?e[t]:void 0:r.store.getFieldValue(e,String(t))};e.map.forEach(function(e,t){var n=getValue_1(c,t),a=getValue_1(l,t);if(void 0!==a){i&&i.push(t);var u=o.applyMerges(e,n,a,r,i);u!==a&&(s=s||new Map).set(t,u),i&&invariant(i.pop()===t)}}),s&&(n=ea(l)?l.slice(0):tslib_es6_assign({},l),s.forEach(function(e,t){n[t]=e}))}return e.info?this.cache.policies.runMergeFunction(t,n,e.info,r,i&&(a=r.store).getStorage.apply(a,i)):n},StoreWriter}(),tf=[];function getChildMergeTree(e,t){var n=e.map;return n.has(t)||n.set(t,tf.pop()||{map:new Map}),n.get(t)}function mergeTreeIsEmpty(e){return!e||!(e.info||e.map.size)}function maybeRecycleChildMergeTree(e,t){var n=e.map,r=n.get(t);r&&mergeTreeIsEmpty(r)&&(tf.push(r),n.delete(t))}var tp=new Set,td=function(e){function InMemoryCache(t){void 0===t&&(t={});var n=e.call(this)||this;return n.watches=new Set,n.typenameDocumentCache=new Map,n.makeVar=makeVar,n.txCount=0,n.config=compact(e8,t),n.addTypename=!!n.config.addTypename,n.policies=new tl({cache:n,dataIdFromObject:n.config.dataIdFromObject,possibleTypes:n.config.possibleTypes,typePolicies:n.config.typePolicies}),n.init(),n}return __extends(InMemoryCache,e),InMemoryCache.prototype.init=function(){var e=this.data=new tr.Root({policies:this.policies,resultCaching:this.config.resultCaching});this.optimisticData=e.stump,this.resetResultCache()},InMemoryCache.prototype.resetResultCache=function(e){var t=this,n=this.storeReader,r=this.config.fragments;this.storeWriter=new tu(this,this.storeReader=new ts({cache:this,addTypename:this.addTypename,resultCacheMaxSize:this.config.resultCacheMaxSize,canonizeResults:shouldCanonizeResults(this.config),canon:e?void 0:n&&n.canon,fragments:r}),r),this.maybeBroadcastWatch=bundle_esm_wrap(function(e,n){return t.broadcastWatch(e,n)},{max:this.config.resultCacheMaxSize,makeCacheKey:function(e){var n=e.optimistic?t.optimisticData:t.data;if(supportsResultCaching(n)){var r=e.optimistic,i=e.id,o=e.variables;return n.makeCacheKey(e.query,e.callback,eT({optimistic:r,id:i,variables:o}))}}}),new Set([this.data.group,this.optimisticData.group]).forEach(function(e){return e.resetCaching()})},InMemoryCache.prototype.restore=function(e){return this.init(),e&&this.data.replace(e),this},InMemoryCache.prototype.extract=function(e){return void 0===e&&(e=!1),(e?this.optimisticData:this.data).extract()},InMemoryCache.prototype.read=function(e){var t=e.returnPartialData;try{return this.storeReader.diffQueryAgainstStore(tslib_es6_assign(tslib_es6_assign({},e),{store:e.optimistic?this.optimisticData:this.data,config:this.config,returnPartialData:void 0!==t&&t})).result||null}catch(e){if(e instanceof e9)return null;throw e}},InMemoryCache.prototype.write=function(e){try{return++this.txCount,this.storeWriter.writeToStore(this.data,e)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},InMemoryCache.prototype.modify=function(e){if(e7.call(e,"id")&&!e.id)return!1;var t=e.optimistic?this.optimisticData:this.data;try{return++this.txCount,t.modify(e.id||"ROOT_QUERY",e.fields)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},InMemoryCache.prototype.diff=function(e){return this.storeReader.diffQueryAgainstStore(tslib_es6_assign(tslib_es6_assign({},e),{store:e.optimistic?this.optimisticData:this.data,rootId:e.id||"ROOT_QUERY",config:this.config}))},InMemoryCache.prototype.watch=function(e){var t=this;return this.watches.size||function(e){getCacheInfo(e).vars.forEac
12h(function(t){return t.attachCache(e)})}(this),this.watches.add(e),e.immediate&&this.maybeBroadcastWatch(e),function(){t.watches.delete(e)&&!t.watches.size&&forgetCache(t),t.maybeBroadcastWatch.forget(e)}},InMemoryCache.prototype.gc=function(e){eT.reset();var t=this.optimisticData.gc();return e&&!this.txCount&&(e.resetResultCache?this.resetResultCache(e.resetResultIdentities):e.resetResultIdentities&&this.storeReader.resetCanon()),t},InMemoryCache.prototype.retain=function(e,t){return(t?this.optimisticData:this.data).retain(e)},InMemoryCache.prototype.release=function(e,t){return(t?this.optimisticData:this.data).release(e)},InMemoryCache.prototype.identify=function(e){if(isReference(e))return e.__ref;try{return this.policies.identify(e)[0]}catch(e){__DEV__&&invariant.warn(e)}},InMemoryCache.prototype.evict=function(e){if(!e.id){if(e7.call(e,"id"))return!1;e=tslib_es6_assign(tslib_es6_assign({},e),{id:"ROOT_QUERY"})}try{return++this.txCount,this.optimisticData.evict(e,this.data)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},InMemoryCache.prototype.reset=function(e){var t=this;return this.init(),eT.reset(),e&&e.discardWatches?(this.watches.forEach(function(e){return t.maybeBroadcastWatch.forget(e)}),this.watches.clear(),forgetCache(this)):this.broadcastWatches(),Promise.resolve()},InMemoryCache.prototype.removeOptimistic=function(e){var t=this.optimisticData.removeLayer(e);t!==this.optimisticData&&(this.optimisticData=t,this.broadcastWatches())},InMemoryCache.prototype.batch=function(e){var t,n=this,r=e.update,i=e.optimistic,o=void 0===i||i,a=e.removeOptimistic,s=e.onWatchUpdated,perform=function(e){var i=n.data,o=n.optimisticData;++n.txCount,e&&(n.data=n.optimisticData=e);try{return t=r(n)}finally{--n.txCount,n.data=i,n.optimisticData=o}},c=new Set;return s&&!this.txCount&&this.broadcastWatches(tslib_es6_assign(tslib_es6_assign({},e),{onWatchUpdated:function(e){return c.add(e),!1}})),"string"==typeof o?this.optimisticData=this.optimisticData.addLayer(o,perform):!1===o?perform(this.data):perform(),"string"==typeof a&&(this.optimisticData=this.optimisticData.removeLayer(a)),s&&c.size?(this.broadcastWatches(tslib_es6_assign(tslib_es6_assign({},e),{onWatchUpdated:function(e,t){var n=s.call(this,e,t);return!1!==n&&c.delete(e),n}})),c.size&&c.forEach(function(e){return n.maybeBroadcastWatch.dirty(e)})):this.broadcastWatches(e),t},InMemoryCache.prototype.performTransaction=function(e,t){return this.batch({update:e,optimistic:t||null!==t})},InMemoryCache.prototype.transformDocument=function(e){if(this.addTypename){var t=this.typenameDocumentCache.get(e);return t||(t=ex(e),this.typenameDocumentCache.set(e,t),this.typenameDocumentCache.set(t,t)),t}return e},InMemoryCache.prototype.transformForLink=function(e){var t=this.config.fragments;return t?t.transform(e):e},InMemoryCache.prototype.broadcastWatches=function(e){var t=this;this.txCount||this.watches.forEach(function(n){return t.maybeBroadcastWatch(n,e)})},InMemoryCache.prototype.broadcastWatch=function(e,t){var n=e.lastDiff,r=this.diff(e);(!t||(e.optimistic&&"string"==typeof t.optimistic&&(r.fromOptimisticTransaction=!0),!t.onWatchUpdated||!1!==t.onWatchUpdated.call(this,e,r,n)))&&(n&&equal(n.result,r.result)||e.callback(e.lastDiff=r,n))},InMemoryCache}(e4),th=X.from;function onError(e){return new X(function(t,n){return new W(function(r){var i,o,a;try{i=n(t).subscribe({next:function(i){if(i.errors&&(a=e({graphQLErrors:i.errors,response:i,operation:t,forward:n}))){o=a.subscribe({next:r.next.bind(r),error:r.error.bind(r),complete:r.complete.bind(r)});return}r.next(i)},error:function(i){if(a=e({operation:t,networkError:i,graphQLErrors:i&&i.result&&i.result.errors,forward:n})){o=a.subscribe({next:r.next.bind(r),error:r.error.bind(r),complete:r.complete.bind(r)});return}r.error(i)},complete:function(){a||r.complete.bind(r)()}})}catch(i){e({networkError:i,operation:t,forward:n}),r.error(i)}return function(){i&&i.unsubscribe(),o&&i.unsubscribe()}})})}!function(e){function ErrorLink(t){var n=e.call(this)||this;return n.link=onError(t),n}__extends(ErrorLink,e),ErrorLink.prototype.request=function(e,t){return this.link.request(e,t)}}(X);let ty=/\r\n|[\n\r]/g;function getLocation(e,t){let n=0,r=1;for(let i of e.body.matchAll(ty)){if("number"==typeof i.index||function(e,t){if(!e)throw Error(null!=t?t:"Unexpected invariant triggered.")}(!1),i.index>=t)break;n=i.index+i[0].length,r+=1}return{line:r,column:t+1-n}}function printSourceLocation(e,t){let n=e.locationOffset.column-1,r="".padStart(n)+e.body,i=t.line-1,o=e.locationOffset.line-1,a=t.line+o,s=1===t.line?n:0,c=t.column+s,l=`${e.name}:${a}:${c}
13`,u=r.split(/\r\n|[\n\r]/g),f=u[i];if(f.length>120){let e=Math.floor(c/80),t=c%80,n=[];for(let e=0;e<f.length;e+=80)n.push(f.slice(e,e+80));return l+printPrefixedLines([[`${a} |`,n[0]],...n.slice(1,e+1).map(e=>["|",e]),["|","^".padStart(t)],["|",n[e+1]]])}return l+printPrefixedLines([[`${a-1} |`,u[i-1]],[`${a} |`,f],["|","^".padStart(c)],[`${a+1} |`,u[i+1]]])}function printPrefixedLines(e){let t=e.filter(([e,t])=>void 0!==t),n=Math.max(...t.map(([e])=>e.length));return t.map(([e,t])=>e.padStart(n)+(t?" "+t:"")).join("\n")}
13let GraphQLError=class GraphQLError extends Error{constructor(e,...t){var n,r,i,o;let{nodes:a,source:s,positions:c,path:l,originalError:u,extensions:f}=function(e){let t=e[0];return null==t||"kind"in t||"length"in t?{nodes:t,source:e[1],positions:e[2],path:e[3],originalError:e[4],extensions:e[5]}:t}(t);super(e),this.name="GraphQLError",this.path=null!=l?l:void 0,this.originalError=null!=u?u:void 0,this.nodes=undefinedIfEmpty(Array.isArray(a)?a:a?[a]:void 0);let p=undefinedIfEmpty(null===(n=this.nodes)||void 0===n?void 0:n.map(e=>e.loc).filter(e=>null!=e));this.source=null!=s?s:null==p?void 0:null===(r=p[0])||void 0===r?void 0:r.source,this.positions=null!=c?c:null==p?void 0:p.map(e=>e.start),this.locations=c&&s?c.map(e=>getLocation(s,e)):null==p?void 0:p.map(e=>getLocation(e.source,e.start));let d="object"==typeof(o=null==u?void 0:u.extensions)&&null!==o?null==u?void 0:u.extensions:void 0;this.extensions=null!==(i=null!=f?f:d)&&void 0!==i?i:Object.create(null),Object.defineProperties(this,{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),null!=u&&u.stack?Object.defineProperty(this,"stack",{value:u.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,GraphQLError):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let e=this.message;if(this.nodes){for(let n of this.nodes)if(n.loc){var t;e+="\n\n"+printSourceLocation((t=n.loc).source,getLocation(t.source,t.start))}}else if(this.source&&this.locations)for(let t of this.locations)e+="\n\n"+printSourceLocation(this.source,t);return e}toJSON(){let e={message:this.message};return null!=this.locations&&(e.locations=this.locations),null!=this.path&&(e.path=this.path),null!=this.extensions&&Object.keys(this.extensions).length>0&&(e.extensions=this.extensions),e}};function undefinedIfEmpty(e){return void 0===e||0===e.length?void 0:e}function syntaxError(e,t,n){return new GraphQLError(`Syntax Error: ${n}`,{source:e,positions:[t]})}(l=g||(g={})).QUERY="QUERY",l.MUTATION="MUTATION",l.SUBSCRIPTION="SUBSCRIPTION",l.FIELD="FIELD",l.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",l.FRAGMENT_SPREAD="FRAGMENT_SPREAD",l.INLINE_FRAGMENT="INLINE_FRAGMENT",l.VARIABLE_DEFINITION="VARIABLE_DEFINITION",l.SCHEMA="SCHEMA",l.SCALAR="SCALAR",l.OBJECT="OBJECT",l.FIELD_DEFINITION="FIELD_DEFINITION",l.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",l.INTERFACE="INTERFACE",l.UNION="UNION",l.ENUM="ENUM",l.ENUM_VALUE="ENUM_VALUE",l.INPUT_OBJECT="INPUT_OBJECT",l.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION",(u=b||(b={})).SOF="<SOF>",u.EOF="<EOF>",u.BANG="!",u.DOLLAR="$",u.AMP="&",u.PAREN_L="(",u.PAREN_R=")",u.SPREAD="...",u.COLON=":",u.EQUALS="=",u.AT="@",u.BRACKET_L="[",u.BRACKET_R="]",u.BRACE_L="{",u.PIPE="|",u.BRACE_R="}",u.NAME="Name",u.INT="Int",u.FLOAT="Float",u.STRING="String",u.BLOCK_STRING="BlockString",u.COMMENT="Comment";let Lexer=class Lexer{constructor(e){let t=new Token(b.SOF,0,0,0,0);this.source=e,this.lastToken=t,this.token=t,this.line=1,this.lineStart=0}get[Symbol.toStringTag](){return"Lexer"}advance(){this.lastToken=this.token;let e=this.token=this.lookahead();return e}lookahead(){let e=this.token;if(e.kind!==b.EOF)do if(e.next)e=e.next;else{let t=function(e,t){let n=e.source.body,r=n.length,i=t;for(;i<r;){let t=n.charCodeAt(i);switch(t){case 65279:case 9:case 32:case 44:++i;continue;case 10:++i,++e.line,e.lineStart=i;continue;case 13:10===n.charCodeAt(i+1)?i+=2:++i,++e.line,e.lineStart=i;continue;case 35:return function(e,t){let n=e.source.body,r=n.length,i=t+1;for(;i<r;){let e=n.charCodeAt(i);if(10===e||13===e)break;if(isUnicodeScalarValue(e))++i;else if(isSupplementaryCodePoint(n,i))i+=2;else break}return createToken(e,b.COMMENT,t,i,n.slice(t+1,i))}(e,i);case 33:return createToken(e,b.BANG,i,i+1);case 36:return createToken(e,b.DOLLAR,i,i+1);case 38:return createToken(e,b.AMP,i,i+1);case 40:return createToken(e,b.PAREN_L,i,i+1);case 41:return createToken(e,b.PAREN_R,i,i+1);case 46:if(46===n.charCodeAt(i+1)&&46===n.charCodeAt(i+2))return createToken(e,b.SPREAD,i,i+3);break;case 58:return createToken(e,b.COLON,i,i+1);case 61:return createToken(e,b.EQUALS,i,i+1);case 64:return createToken(e,b.AT,i,i+1);case 91:return createToken(e,b.BRACKET_L,i,i+1);case 93:return createToken(e,b.BRACKET_R,i,i+1);case 123:return createToken(e,b.BRACE_L,i,i+1);case 124:return createToken(e,b.PIPE,i,i+1);case 125:return createToken(e,b.BRACE_R,i,i+1);case 34:if(34===n.charCodeAt(i+1)&&34===n.charCodeAt(i+2))return function(e,t){let n=e.source.body,r=n.length,i=e.lineStart,o=t+3,a=o,s="",c=[];for(;o<r;){let r=n.charCodeAt(o);if(34===r&&34===n.charCodeAt(o+1)&&34===n.charCodeAt(o+2)){s+=n.slice(a,o),c.push(s);let r=createToken(e,b.BLOCK_STRING,t,o+3,(function(e){var t,n;let r=Number.MAX_SAFE_INTEGER,i=null,o=-1;for(let t=0;t<e.length;++t){let a=e[t],s=function(e){let t=0;for(;t<e.length&&isWhiteSpace(e.charCodeAt(t));)++t;return t}(a);s!==a.length&&(i=null!==(n=i)&&void 0!==n?n:t,o=t,0!==t&&s<r&&(r=s))}return e.map((e,t)=>0===t?e:e.slice(r)).slice(null!==(t=i)&&void 0!==t?t:0,o+1)})(c).join("\n"));return e.line+=c.length-1,e.lineStart=i,r}if(92===r&&34===n.charCodeAt(o+1)&&34===n.charCodeAt(o+2)&&34===n.charCodeAt(o+3)){s+=n.slice(a,o),a=o+1,o+=4;continue}if(10===r||13===r){s+=n.slice(a,o),c.push(s),13===r&&10===n.charCodeAt(o+1)?o+=2:++o,s="",a=o,i=o;continue}if(isUnicodeScalarValue(r))++o;else if(isSupplementaryCodePoint(n,o))o+=2;else throw syntaxError(e.source,o,`Invalid character within String: ${printCodePointAt(e,o)}.`)}throw syntaxError(e.source,o,"Unterminated string.")}(e,i);return function(e,t){let n=e.source.body,r=n.length,i=t+1,o=i,a="";for(;i<r;){let r=n.charCodeAt(i);if(34===r)return a+=n.slice(o,i),createToken(e,b.STRING,t,i+1,a);if(92===r){a+=n.slice(o,i);let t=117===n.charCodeAt(i+1)?123===n.charCodeAt(i+2)?function(e,t){let n=e.source.body,r=0,i=3;for(;i<12;){let e=n.charCodeAt(t+i++);if(125===e){if(i<5||!isUnicodeScalarValue(r))break;return{value:String.fromCodePoint(r),size:i}}if((r=r<<4|readHexDigit(e))<0)break}throw syntaxError(e.source,t,`Invalid Unicode escape sequence: "${n.slice(t,t+i)}".`)}(e,i):function(e,t){let n=e.source.body,r=read16BitHexCode(n,t+2);if(isUnicodeScalarValue(r))return{value:String.fromCodePoint(r),size:6};if(isLeadingSurrogate(r)&&92===n.charCodeAt(t+6)&&117===n.charCodeAt(t+7)){let e=read16BitHexCode(n,t+8);if(isTrailingSurrogate(e))return{value:String.fromCodePoint(r,e),size:12}}throw syntaxError(e.source,t,`Invalid Unicode escape sequence: "${n.slice(t,t+6)}".`)}(e,i):function(e,t){let n=e.source.body,r=n.charCodeAt(t+1);switch(r){case 34:return{value:'"',size:2};case 92:return{value:"\\",size:2};case 47:return{value:"/",size:2};case 98:return{value:"\b",size:2};case 102:return{value:"\f",size:2};case 110:return{value:"\n",size:2};case 114:return{value:"\r",size:2};case 116:return{value:"	",size:2}}throw syntaxError(e.source,t,`Invalid character escape sequence: "${n.slice(t,t+2)}".`)}(e,i);a+=t.value,i+=t.size,o=i;continue}if(10===r||13===r)break;
13if(isUnicodeScalarValue(r))++i;else if(isSupplementaryCodePoint(n,i))i+=2;else throw syntaxError(e.source,i,`Invalid character within String: ${printCodePointAt(e,i)}.`)}throw syntaxError(e.source,i,"Unterminated string.")}(e,i)}if(isDigit(t)||45===t)return function(e,t,n){let r=e.source.body,i=t,o=n,a=!1;if(45===o&&(o=r.charCodeAt(++i)),48===o){if(isDigit(o=r.charCodeAt(++i)))throw syntaxError(e.source,i,`Invalid number, unexpected digit after 0: ${printCodePointAt(e,i)}.`)}else i=readDigits(e,i,o),o=r.charCodeAt(i);if(46===o&&(a=!0,o=r.charCodeAt(++i),i=readDigits(e,i,o),o=r.charCodeAt(i)),(69===o||101===o)&&(a=!0,(43===(o=r.charCodeAt(++i))||45===o)&&(o=r.charCodeAt(++i)),i=readDigits(e,i,o),o=r.charCodeAt(i)),46===o||isNameStart(o))throw syntaxError(e.source,i,`Invalid number, expected digit but got: ${printCodePointAt(e,i)}.`);return createToken(e,a?b.FLOAT:b.INT,t,i,r.slice(t,i))}(e,i,t);if(isNameStart(t))return function(e,t){let n=e.source.body,r=n.length,i=t+1;for(;i<r;){let e=n.charCodeAt(i);if(isLetter(e)||isDigit(e)||95===e)++i;else break}return createToken(e,b.NAME,t,i,n.slice(t,i))}(e,i);throw syntaxError(e.source,i,39===t?"Unexpected single quote character ('), did you mean to use a double quote (\")?":isUnicodeScalarValue(t)||isSupplementaryCodePoint(n,i)?`Unexpected character: ${printCodePointAt(e,i)}.`:`Invalid character: ${printCodePointAt(e,i)}.`)}return createToken(e,b.EOF,r,r)}(this,e.end);e.next=t,t.prev=e,e=t}while(e.kind===b.COMMENT);return e}};function isUnicodeScalarValue(e){return e>=0&&e<=55295||e>=57344&&e<=1114111}function isSupplementaryCodePoint(e,t){return isLeadingSurrogate(e.charCodeAt(t))&&isTrailingSurrogate(e.charCodeAt(t+1))}function isLeadingSurrogate(e){return e>=55296&&e<=56319}function isTrailingSurrogate(e){return e>=56320&&e<=57343}function printCodePointAt(e,t){let n=e.source.body.codePointAt(t);if(void 0===n)return b.EOF;if(n>=32&&n<=126){let e=String.fromCodePoint(n);return'"'===e?"'\"'":`"${e}"`}return"U+"+n.toString(16).toUpperCase().padStart(4,"0")}function createToken(e,t,n,r,i){let o=e.line,a=1+n-e.lineStart;return new Token(t,n,r,o,a,i)}function readDigits(e,t,n){if(!isDigit(n))throw syntaxError(e.source,t,`Invalid number, expected digit but got: ${printCodePointAt(e,t)}.`);let r=e.source.body,i=t+1;for(;isDigit(r.charCodeAt(i));)++i;return i}function read16BitHexCode(e,t){return readHexDigit(e.charCodeAt(t))<<12|readHexDigit(e.charCodeAt(t+1))<<8|readHexDigit(e.charCodeAt(t+2))<<4|readHexDigit(e.charCodeAt(t+3))}function readHexDigit(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}let Parser=class Parser{constructor(e,t={}){let n=M(e,Source)?e:new Source(e);this._lexer=new Lexer(n),this._options=t,this._tokenCounter=0}get tokenCount(){return this._tokenCounter}parseName(){let e=this.expectToken(b.NAME);return this.node(e,{kind:d.NAME,value:e.value})}parseDocument(){return this.node(this._lexer.token,{kind:d.DOCUMENT,definitions:this.many(b.SOF,this.parseDefinition,b.EOF)})}parseDefinition(){if(this.peek(b.BRACE_L))return this.parseOperationDefinition();let e=this.peekDescription(),t=e?this._lexer.lookahead():this._lexer.token;if(t.kind===b.NAME){switch(t.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}if(e)throw syntaxError(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are supported only on type definitions.");switch(t.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"extend":return this.parseTypeSystemExtension()}}throw this.unexpected(t)}parseOperationDefinition(){let e;let t=this._lexer.token;if(this.peek(b.BRACE_L))return this.node(t,{kind:d.OPERATION_DEFINITION,operation:p.QUERY,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});let n=this.parseOperationType();return this.peek(b.NAME)&&(e=this.parseName()),this.node(t,{kind:d.OPERATION_DEFINITION,operation:n,name:e,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){let e=this.expectToken(b.NAME);switch(e.value){case"query":return p.QUERY;case"mutation":return p.MUTATION;case"subscription":return p.SUBSCRIPTION}throw this.unexpected(e)}parseVariableDefinitions(){return this.optionalMany(b.PAREN_L,this.parseVariableDefinition,b.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:d.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(b.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(b.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){let e=this._lexer.token;return this.expectToken(b.DOLLAR),this.node(e,{kind:d.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:d.SELECTION_SET,selections:this.many(b.BRACE_L,this.parseSelection,b.BRACE_R)})}parseSelection(){return this.peek(b.SPREAD)?this.parseFragment():this.parseField()}parseField(){let e,t;let n=this._lexer.token,r=this.parseName();return this.expectOptionalToken(b.COLON)?(e=r,t=this.parseName()):t=r,this.node(n,{kind:d.FIELD,alias:e,name:t,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(b.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(e){let t=e?this.parseConstArgument:this.parseArgument;return this.optionalMany(b.PAREN_L,t,b.PAREN_R)}parseArgument(e=!1){let t=this._lexer.token,n=this.parseName();return this.expectToken(b.COLON),this.node(t,{kind:d.ARGUMENT,name:n,value:this.parseValueLiteral(e)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){let e=this._lexer.token;this.expectToken(b.SPREAD);let t=this.expectOptionalKeyword("on");return!t&&this.peek(b.NAME)?this.node(e,{kind:d.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(e,{kind:d.INLINE_FRAGMENT,typeCondition:t?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){let e=this._lexer.token;return(this.expectKeyword("fragment"),!0===this._options.allowLegacyFragmentVariables)?this.node(e,{kind:d.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}):this.node(e,{kind:d.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if("on"===this._lexer.token.value)throw this.unexpected();return this.parseName()}parseValueLiteral(e){let t=this._lexer.token;switch(t.kind){case b.BRACKET_L:return this.parseList(e);case b.BRACE_L:return this.parseObject(e);case b.INT:return this.advanceLexer(),this.node(t,{kind:d.INT,value:t.value});case b.FLOAT:return this.advanceLexer(),this.node(t,{kind:d.FLOAT,value:t.value});case b.STRING:case b.BLOCK_STRING:return this.parseStringLiteral();case b.NAME:switch(this.advanceLexer(),t.value){case"true":return this.node(t,{kind:d.BOOLEAN,value:!0});case"false":return this.node(t,{kind:d.BOOLEAN,value:!1});case"null":return this.node(t,{kind:d.NULL});default:return this.node(t,{kind:d.ENUM,value:t.value})}case b.DOLLAR:if(e){if(this.expectToken(b.DOLLAR),this._lexer.token.kind===b.NAME){let e=this._lexer.token.value;throw syntaxError(this._lexer.source,t.start,`Unexpected variable "$${e}" in constant value.`)}throw this.unexpected(t)}return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){let e=this._lexer.token;return this.advanceLexer(),this.node(e,{kind:d.STRING,value:e.value,block:e.kind===b.BLOCK_STRING})}parseList(e){return this.node(this._lexer.token,{kind:d.LIST,values:this.any(b.BRACKET_L,()=>this.parseValueLiteral(e),b.BRACKET_R)})}parseObject(e){return this.node(this._lexer.token,{kind:d.OBJECT,fields:this.any(b.BRACE_L,()=>this.parseObjectField(e),b.BRACE_R)})}parseObjectField(e){let t=this._lexer.token,n=this.parseName();return this.expectToken(b.COLON),this.node(t,{kind:d.OBJECT_FIELD,name:n,value:this.parseValueLiteral(e)})}parseDirectives(e){let t=[];for(;this.peek(b.AT);)t.push(this.parseDirective(e));return t}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(e){let t=this._lexer.token;return this.expectToken(b.AT),this.node(t,{kind:d.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(e)})}parseTypeReference(){let e;let t=this._lexer.token;if(this.expectOptionalToken(b.BRACKET_L)){let n=this.parseTypeReference();this.expectToken(b.BRACKET_R),e=this.node(t,{kind:d.LIST_TYPE,type:n})}else e=this.parseNamedType();return this.expectOptionalToken(b.BANG)?this.node(t,{kind:d.NON_NULL_TYPE,type:e}):e}parseNamedType(){return this.node(this._lexer.token,{kind:d.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(b.STRING)||this.peek(b.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("schema");let n=this.parseConstDirectives(),r=this.many(b.BRACE_L,this.parseOperationTypeDefinition,b.BRACE_R);return this.node(e,{kind:d.SCHEMA_DEFINITION,description:t,directives:n,operationTypes:r})}parseOperationTypeDefinition(){let e=this._lexer.token,t=this.parseOperationType();this.expectToken(b.COLON);let n=this.parseNamedType();return this.node(e,{kind:d.OPERATION_TYPE_DEFINITION,operation:t,type:n})}parseScalarTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("scalar");let n=this.parseName(),r=this.parseConstDirectives();return this.node(e,{kind:d.SCALAR_TYPE_DEFINITION,description:t,name:n,directives:r})}parseObjectTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("type");let n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),o=this.parseFieldsDefinition();return this.node(e,{kind:d.OBJECT_TYPE_DEFINITION,description:t,name:n,interfaces:r,directives:i,fields:o})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(b.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(b.BRACE_L,this.parseFieldDefinition,b.BRACE_R)}parseFieldDefinition(){let e=this._lexer.token,t=this.parseDescription(),n=this.parseName(),r=this.parseArgumentDefs();this.expectToken(b.COLON);let i=this.parseTypeReference(),o=this.parseConstDirectives();return this.node(e,{kind:d.FIELD_DEFINITION,description:t,name:n,arguments:r,type:i,directives:o})}parseArgumentDefs(){return this.optionalMany(b.PAREN_L,this.parseInputValueDef,b.PAREN_R)}parseInputValueDef(){let e;let t=this._lexer.token,n=this.parseDescription(),r=this.parseName();this.expectToken(b.COLON);let i=this.parseTypeReference();this.expectOptionalToken(b.EQUALS)&&(e=this.parseConstValueLiteral());let o=this.parseConstDirectives();return this.node(t,{kind:d.INPUT_VALUE_DEFINITION,description:n,name:r,type:i,defaultValue:e,directives:o})}parseInterfaceTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("interface");let n=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),o=this.parseFieldsDefinition();return this.node(e,{kind:d.INTERFACE_TYPE_DEFINITION,description:t,name:n,interfaces:r,directives:i,fields:o})}parseUnionTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("union");let n=this.parseName(),r=this.parseConstDirectives(),i=this.parseUnionMemberTypes();return this.node(e,{kind:d.UNION_TYPE_DEFINITION,description:t,name:n,directives:r,types:i})}parseUnionMemberTypes(){return this.expectOptionalToken(b.EQUALS)?this.delimitedMany(b.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("enum");let n=this.parseName(),r=this.parseConstDirectives(),i=this.parseEnumValuesDefinition();return this.node(e,{kind:d.ENUM_TYPE_DEFINITION,description:t,name:n,directives:r,values:i})}parseEnumValuesDefinition(){return this.optionalMany(b.BRACE_L,this.parseEnumValueDefinition,b.BRACE_R)}parseEnumValueDefinition(){let e=this._lexer.token,t=this.parseDescription(),n=this.parseEnumValueName(),r=this.parseConstDirectives();return this.node(e,{kind:d.ENUM_VALUE_DEFINITION,description:t,name:n,directives:r})}parseEnumValueName(){if("true"===this._lexer.token.value||"false"===this._lexer.token.value||"null"===this._lexer.token.value)throw syntaxError(this._lexer.source,this._lexer.token.start,`${getTokenDesc(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("input");let n=this.parseName(),r=this.parseConstDirectives(),i=this.parseInputFieldsDefinition();return this.node(e,{kind:d.INPUT_OBJECT_TYPE_DEFINITION,description:t,name:n,directives:r,fields:i})}parseInputFieldsDefinition(){return this.optionalMany(b.BRACE_L,this.parseInputValueDef,b.BRACE_R)}parseTypeSystemExtension(){let e=this._lexer.lookahead();if(e.kind===b.NAME)switch(e.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension()}throw this.unexpected(e)}parseSchemaExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");let t=this.parseConstDirectives(),n=this.optionalMany(b.BRACE_L,this.parseOperationTypeDefinition,b.BRACE_R);if(0===t.length&&0===n.length)throw this.unexpected();return this.node(e,{kind:d.SCHEMA_EXTENSION,directives:t,operationTypes:n})}parseScalarTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");let t=this.parseName(),n=this.parseConstDirectives();if(0===n.length)throw this.unexpected();return this.node(e,{kind:d.SCALAR_TYPE_EXTENSION,name:t,directives:n})}parseObjectTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");let t=this.parseName(),n=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),i=this.parseFieldsDefinition();if(0===n.length&&0===r.length&&0===i.length)throw this.unexpected();return this.node(e,{kind:d.OBJECT_TYPE_EXTENSION,name:t,interfaces:n,directives:r,fields:i})}parseInterfaceTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");let t=this.parseName(),n=this.parseImplementsInterfaces(),r=this.parseConstDirectives(),i=this.parseFieldsDefinition();if(0===n.length&&0===r.length&&0===i.length)throw this.unexpected();return this.node(e,{kind:d.INTERFACE_TYPE_EXTENSION,name:t,interfaces:n,directives:r,fields:i})}parseUnionTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");let t=this.parseName(),n=this.parseConstDirectives(),r=this.parseUnionMemberTypes();if(0===n.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:d.UNION_TYPE_EXTENSION,name:t,directives:n,types:r})}parseEnumTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");let t=this.parseName(),n=this.parseConstDirectives(),r=this.parseEnumValuesDefinition();if(0===n.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:d.ENUM_TYPE_EXTENSION,name:t,directives:n,values:r})}parseInputObjectTypeExtension(){let e=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input"
13);let t=this.parseName(),n=this.parseConstDirectives(),r=this.parseInputFieldsDefinition();if(0===n.length&&0===r.length)throw this.unexpected();return this.node(e,{kind:d.INPUT_OBJECT_TYPE_EXTENSION,name:t,directives:n,fields:r})}parseDirectiveDefinition(){let e=this._lexer.token,t=this.parseDescription();this.expectKeyword("directive"),this.expectToken(b.AT);let n=this.parseName(),r=this.parseArgumentDefs(),i=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");let o=this.parseDirectiveLocations();return this.node(e,{kind:d.DIRECTIVE_DEFINITION,description:t,name:n,arguments:r,repeatable:i,locations:o})}parseDirectiveLocations(){return this.delimitedMany(b.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){let e=this._lexer.token,t=this.parseName();if(Object.prototype.hasOwnProperty.call(g,t.value))return t;throw this.unexpected(e)}node(e,t){return!0!==this._options.noLocation&&(t.loc=new Location(e,this._lexer.lastToken,this._lexer.source)),t}peek(e){return this._lexer.token.kind===e}expectToken(e){let t=this._lexer.token;if(t.kind===e)return this.advanceLexer(),t;throw syntaxError(this._lexer.source,t.start,`Expected ${getTokenKindDesc(e)}, found ${getTokenDesc(t)}.`)}expectOptionalToken(e){let t=this._lexer.token;return t.kind===e&&(this.advanceLexer(),!0)}expectKeyword(e){let t=this._lexer.token;if(t.kind===b.NAME&&t.value===e)this.advanceLexer();else throw syntaxError(this._lexer.source,t.start,`Expected "${e}", found ${getTokenDesc(t)}.`)}expectOptionalKeyword(e){let t=this._lexer.token;return t.kind===b.NAME&&t.value===e&&(this.advanceLexer(),!0)}unexpected(e){let t=null!=e?e:this._lexer.token;return syntaxError(this._lexer.source,t.start,`Unexpected ${getTokenDesc(t)}.`)}any(e,t,n){this.expectToken(e);let r=[];for(;!this.expectOptionalToken(n);)r.push(t.call(this));return r}optionalMany(e,t,n){if(this.expectOptionalToken(e)){let e=[];do e.push(t.call(this));while(!this.expectOptionalToken(n));return e}return[]}many(e,t,n){this.expectToken(e);let r=[];do r.push(t.call(this));while(!this.expectOptionalToken(n));return r}delimitedMany(e,t){this.expectOptionalToken(e);let n=[];do n.push(t.call(this));while(this.expectOptionalToken(e));return n}advanceLexer(){let{maxTokens:e}=this._options,t=this._lexer.advance();if(t.kind!==b.EOF&&(++this._tokenCounter,void 0!==e&&this._tokenCounter>e))throw syntaxError(this._lexer.source,t.start,`Document contains more that ${e} tokens. Parsing aborted.`)}};function getTokenDesc(e){let t=e.value;return getTokenKindDesc(e.kind)+(null!=t?` "${t}"`:"")}function getTokenKindDesc(e){return e===b.BANG||e===b.DOLLAR||e===b.AMP||e===b.PAREN_L||e===b.PAREN_R||e===b.SPREAD||e===b.COLON||e===b.EQUALS||e===b.AT||e===b.BRACKET_L||e===b.BRACKET_R||e===b.BRACE_L||e===b.PIPE||e===b.BRACE_R?`"${e}"`:e}var tm=new Map,tv=new Map,tg=!0,tb=!1;function lib_normalize(e){return e.replace(/[\s,]+/g," ").trim()}function gql(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];"string"==typeof e&&(e=[e]);var r=e[0];return t.forEach(function(t,n){t&&"Document"===t.kind?r+=t.loc.source.body:r+=t,r+=e[n+1]}),function(e){var t=lib_normalize(e);if(!tm.has(t)){var n,r,i,o,a,s=function(e,t){let n=new Parser(e,t),r=n.parseDocument();return Object.defineProperty(r,"tokenCount",{enumerable:!1,value:n.tokenCount}),r}(e,{experimentalFragmentVariables:tb,allowLegacyFragmentVariables:tb});if(!s||"Document"!==s.kind)throw Error("Not a valid GraphQL document.");tm.set(t,(n=new Set,r=[],s.definitions.forEach(function(e){if("FragmentDefinition"===e.kind){var t,i=e.name.value,o=lib_normalize((t=e.loc).source.body.substring(t.start,t.end)),a=tv.get(i);a&&!a.has(o)?tg&&console.warn("Warning: fragment with name "+i+" already exists.\ngraphql-tag enforces all fragment names across your application to be unique; read more about\nthis in the docs: http://dev.apollodata.com/core/fragments.html#unique-names"):a||tv.set(i,a=new Set),a.add(o),n.has(o)||(n.add(o),r.push(e))}else r.push(e)}),i=tslib_es6_assign(tslib_es6_assign({},s),{definitions:r}),(o=new Set(i.definitions)).forEach(function(e){e.loc&&delete e.loc,Object.keys(e).forEach(function(t){var n=e[t];n&&"object"==typeof n&&o.add(n)})}),(a=i.loc)&&(delete a.startToken,delete a.endToken),i))}return tm.get(t)}(r)}var t_={gql:gql,resetCaches:function(){tm.clear(),tv.clear()},disableFragmentWarnings:function(){tg=!1},enableExperimentalFragmentVariables:function(){tb=!0},disableExperimentalFragmentVariables:function(){tb=!1}};(f=gql||(gql={})).gql=t_.gql,f.resetCaches=t_.resetCaches,f.disableFragmentWarnings=t_.disableFragmentWarnings,f.enableExperimentalFragmentVariables=t_.enableExperimentalFragmentVariables,f.disableExperimentalFragmentVariables=t_.disableExperimentalFragmentVariables,gql.default=gql,gql("\nquery ARTICLE_CONTENT($id: String!, $isPreview: Boolean = false) {\n  article
13(id: $id, preview: $isPreview) {\n    content {\n      json\n      links {\n        entries {\n          inline {\n            sys {\n              id\n            }\n            __typename\n            ... on Image {\n              image {\n                url\n                height\n                width\n              }\n              altText\n              css\n            }\n            ... on AnimatedImage {\n              animatedImage {\n                url\n              }\n              stillImage {\n                url\n                height\n                width\n              }\n              altText\n              css\n            }\n            ... on Link {\n              isActive\n              href\n              usesTheLink\n              ariaLabel\n              displayValue\n              displayImage {\n                image {\n                  url\n                  width\n                  height\n                }\n              }\n            }\n            ... on RawHtml {\n              rawHtml {\n                json\n              }\n						}\n          }\n          block {\n            sys {\n              id\n            }\n            __typename\n            ... on Image {\n              title\n              image {\n                url\n                height\n                width\n              }\n              altText\n              caption\n              details {\n                summary\n                details\n              }\n              alignment\n              contentMaxWidth\n              css\n            }\n            ... on AnimatedImage {\n              animatedImage {\n                url\n              }\n              stillImage {\n                url\n                height\n                width\n              }\n              altText\n              caption\n              details {\n                summary\n                details\n              }\n              alignment\n              css\n            }\n            ... on Promo {\n              heading\n              subheading\n              date\n              location\n              body {\n                json\n              }\n              link {\n                href\n                displayValue\n                usesTheLink\n                ariaLabel\n              }\n            }\n            ... on Quote {\n              title\n              text {\n                json\n              }\n              attribution\n              attributionLink {\n                href\n              }\n              attributionDetails\n              backgroundPattern\n            }\n            ... on Callout {\n              calloutTitle\n              calloutDetails\n              headingLevel,\n              largeText,\n              backgroundPattern,\n              attribution\n              attributionLink {\n                href\n              }\n            }\n            ... on Table {\n              title\n              caption\n              table {\n                json\n              }\n              useHtml\n              tableHtml\n            }\n            ... on ClassWrapper {\n              content {\n                json\n              }\n              classList\n            }\n            ... on InterviewQuestion {\n              content {\n                json\n              }\n            }\n            ... on CodeBlock {\n              code\n            }\n            ... on Link {\n              isActive\n              href\n              usesTheLink\n              ariaLabel\n              displayValue\n              displayImage {\n                image {\n                  url\n                  width\n                  height\n                }\n              }\n            }\n            ... on EmbeddedMedia {\n              html\n              type\n            }\n            ... on ImageGrid {\n              caption\n              imagesCollection {\n                items {\n                  title\n                  image {\n                    url\n                    height\n                    width\n                  }\n                  altText\n                  caption\n                  alignment\n                }\n              }\n            }\n            ... on Aside {\n              heading\n              headingLevel\n              body {\n                json\n              }\n              alignment\n              attribution\n              attributionLink {\n                href\n              }\n              backgroundPattern\n              largeText\n              secondaryAside\n            }\n            ... on DefinitionList {\n              definitionsCollection {\n                items {\n                  term\n                  definition {\n                    json\n                  }\n                }\n              }\n            }\n            ... on ResourceHighlightBlock {\n              resourceHighlightsCollection {\n                items {\n                  description {\n                    json\n                  }\n                  header\n                  image {\n                    image {\n                      url\n                      height\n                      width\n                    }\n                    altText\n                  }\n                  link {\n                    href\n                  }\n                }\n              }\n            }\n            ... on CtaForm {\n              title\n              preHeading\n              formTitle\n              description\n              audience {\n                id\n              }\n              interestCollection {\n                items {\n                  categoryId\n                  categoryWebId\n                  interestId\n                  interestWebId\n                }\n              }\n            }\n            ... on RawHtml {\n              rawHtml {\n                json\n              }\n						}\n          }\n        }\n      }\n    }\n  }\n}\n"),gql('\nquery ARTICLE($slug: String = "", $isPreview: Boolean = false) {\n  articleCollection(where: { page: { slug: $slug } }, limit: 1, preview: $isPreview) {\n    items {\n      page(where: { sys: { id_exists: true } }) {\n        slug\n        sys { id }\n        seo {\n          title\n          description\n        }\n      }\n      sys {\n        id\n      }\n      title\n      articleType\n      authorCollection {\n        items {\n          name\n          slugFragment\n        }\n      }\n      entryDate\n      featuredImage {\n        url\n        height\n        width\n        description\n      }\n      summary {\n        json\n      }\n      contentTheme {\n        title\n        description\n        icon {\n          url\n          description\n        }\n        link {\n          href\n          displayValue\n        }\n      }
13\n      seriesListCollection (order: entryDate_DESC) {\n        items {\n          series\n          seriesLink\n          buttonText\n        }\n      }\n      tagsCollection {\n        items {\n          displayName\n          slugFragment\n        }\n      }\n      topics {\n        slugFragment\n      }\n      ctaForm {\n        sys {\n          id\n        }\n      }\n      customPromo {\n        sys {\n          id\n        }\n      }\n    }\n  }\n}\n'),gql('\n  query ARTICLES ($search: String = "", $limit: Int = 10, $skip: Int = 0) {\n    articleCollection(\n      order: entryDate_DESC\n      limit: $limit\n      skip: $skip\n      where: {\n        OR: [\n          { title_contains: $search }\n          { content_contains: $search }\n          { summary_contains: $search }\n          { author: {\n            name_contains: $search }\n          }\n        ]\n        page: {\n          slug_exists: true\n        }\n    }) {\n      total\n      items {\n        sys { id }\n        title\n        summary { json }\n        authorCollection {\n          items {\n            name\n            slugFragment\n          }\n        }\n        entryDate\n        featuredImage {\n          url\n          height\n          width\n          description\n        }\n        tagsCollection {\n          items {\n            displayName\n            slugFragment\n          }\n        }\n        page(where: { sys: { id_exists: true } }) {\n          slug\n          sys { id }\n        }\n      }\n    }\n  }\n'),gql("\n  query FEATURED_ARTICLES($slug: [String], $isPreview: Boolean = false) {\n    articleCollection(\n      where: { page: { slug_in: $slug } }\n      limit: 10\n      preview: $isPreview\n    ) {\n      items {\n        sys { id }\n        title\n        summary { json }\n        authorCollection(limit: 1) {\n          items {\n            name\n            title\n            slugFragment\n            photo {\n              image {\n                url\n                height\n                width\n                description\n              }\n              altText\n            }\n          }\n        }\n        featuredImage {\n          url\n          height\n          width\n          description\n        }\n        tagsCollection {\n          items {\n            displayName\n            slugFragment\n          }\n        }\n        page(where: { sys: { id_exists: true } }) {\n          slug\n          sys { id }\n        }\n      }\n    }\n  }\n"),gql("\n  query AUTHOR_ARTICLES ($slug: String, $limit: Int = 10, $skip: Int = 0) {\n    articleCollection(\n      order: entryDate_DESC\n      limit: $limit\n      skip: $skip\n      where: {\n        author: {\n          slugFragment: $slug\n        }\n        page: {\n          slug_exists: true\n        }\n      }\n    ) {\n      total\n      items {\n        sys { id }\n        title\n        summary { json }\n        authorCollection {\n          items {\n            name\n            slugFragment\n          }\n        }\n        entryDate\n        featuredImage {\n          url\n          height\n          width\n          description\n        }\n        tagsCollection {\n          items {\n            displayName\n            slugFragment\n          }\n        }\n        page {\n          slug\n          sys { id }\n        }\n      }\n    }\n  }\n"),gql('\n  query AUTHOR ($slug: String = "") {\n    personCollection(\n      where: {\n        slugFragment: $slug\n      }\n    ) {\n      items {\n        name\n        slugFragment\n      }\n    }\n  }\n'),gql("\n  query CONTACT_CTA($limit: Int = 1) {\n    contactCtaCollection(\n      limit: $limit\n      order: sys_publishedAt_DESC\n    ) {\n      items {\n        headline\n        link {\n          href\n          displayValue\n          ariaLabel\n        }\n        person {\n          name\n          title\n          photo {\n            image {\n              url\n            }\n          }\n        }\n      }\n    }\n  }\n"),gql("\n  query CTA_FORM_ARTICLE_LISTING {\n    ctaFormCollection(\n      where: { displayOnArticleListingPage: true }\n      order: sys_publishedAt_DESC\n      limit: 1\n    ) {\n      items {\n        title\n        preHeading\n        formTitle\n        description\n        interestCollection {\n          items {\n            categoryId\n            categoryWebId\n            interestId\n            interestWebId\n          }\n        }\n        audience {\n          id\n        }\n      }\n    }\n  }\n"),gql("\n  query CTA_FORM ($id: String) {\n    ctaFormCollection(where: { sys: { id: $id } }, limit: 1) {\n      items {\n        title\n        preHeading\n        formTitle\n        description\n        interestCollection {\n          items {\n            categoryId\n            categoryWebId\n            interestId\n            interestWebId\n          }\n        }\n        audience {\n          id\n        }\n      }\n    }\n  }\n"),gql("\nquery CUSTOM_PROMO ($customPromoId: String) {\n  promoCollection(\n    order: sys_publishedAt_DESC,\n    limit: 1,\n    where: {\
13n      sys: {\n        id: $customPromoId\n      }\n    }\n  ) {\n    items {\n      heading,\n      subheading,\n      secondarySubheading,\n      date,\n      location,\n      body {\n        json\n      }\n      secondaryBody {\n        json\n      }\n      link {\n        href,\n        displayValue,\n        usesTheLink,\n        ariaLabel\n      }\n      secondaryLink {\n        href,\n        displayValue,\n        usesTheLink,\n        ariaLabel\n      }\n    }\n  }\n}\n"),gql('\n  query FOUNDRY_LANDING_PAGE {\n    homepageCollection(\n      where: {\n        page: { slug: "/foundry" }\n      }\n      limit: 1\n      ) {\n      items {\n        sys {\n          id\n        }\n        title\n        description\n        featuredArticle {\n          ... on Article {\n            sys {\n              id\n            }\n            title\n            authorCollection {\n              items {\n                name\n                slugFragment\n              }\n            }\n            entryDate\n            featuredImage {\n              url\n              height\n              width\n              description\n            }\n            summary {\n              json\n            }\n            tagsCollection {\n              items {\n                displayName\n                slugFragment\n              }\n            }\n            page {\n              slug\n              sys {\n                id\n              }\n            }\n          }\n        }\n        page {\n          sys {\n            id\n          }\n          slug\n          seo {\n            title\n            description\n          }\n        }\n      }\n    }\n  }\n'),gql('\n  fragment ArticlePromoFields on ArticlePromo {\n    title\n    description\n    articleLinkText\n    articleLinkAriaLabel\n    article {\n      page {\n        slug\n        sys {\n          id\n        }\n      }\n      topics {\n        slugFragment\n      }\n      featuredImage {\n        url\n        description\n      }\n    }\n  }\n\n  query HOME_PAGE {\n    homepageCollection(\n      where: {\n        page: { slug: "/" }\n      }\n      limit: 1\n      ) {\n      items {\n        sys {\n          id\n        }\n        title\n        description\n        featuredArticle {\n          __typename\n          ... ArticlePromoFields\n          }\n        promoBlockCollection(limit: 3) {\n          items {\n            ... ArticlePromoFields\n          }\n        }\n        page {\n          sys {\n            id\n          }\n          slug\n          seo {\n            title\n            description\n          }\n        }\n      }\n    }\n  }\n'),gql("\n  query PAGE($id: String!, $isPreview: Boolean = false) {\n    page(id: $id, preview: $isPreview) {\n      sys {\n        id\n      }\n      slug\n    }\n  }\n"),gql('\nquery PROMO {\n  homepageCollection(\n    where: {\n      page: { slug: "/foundry" }\n    }\n    limit: 1\n  ) {\n    items {\n      sys {\n        id\n      }\n      defaultPromo {\n        ... on Promo {\n          sys {\n            id\n          }\n          heading,\n          subheading,\n          secondarySubheading,\n          date,\n          location,\n          body {\n            json\n          }\n          secondaryBody {\n            json\n          }\n          link {\n            href,\n            displayValue,\n            usesTheLink,\n            ariaLabel\n          }\n          secondaryLink {\n            href,\n            displayValue,\n            usesTheLink,\n            ariaLabel\n          }\n        }\n      }\n    }\n  }\n}\n'),gql("\n  query RELATED_ARTICLES ($articleId: String, $tags: [String]) {\n    articleCollection(\n      order: entryDate_DESC\n      limit: 3\n      where: {\n        sys: {\n          id_not: $articleId\n        }\n        tags: {\n          slugFragment_in: $tags\n        }\n        page: {\n          slug_exists: true\n        }\n      }\n    ) {\n      items {\n        sys { id }\n        title\n        featuredImage {\n          url\n          height\n          width\n          description\n        }\n        summary { json }\n        authorCollection {\n          items {\n            name\n            slugFragment\n          }\n        }\n        page {\n          slug\n          sys { id }\n        }\n      }\n    }\n  }\n"),gql("\n  query SITEMAP($limit: Int = 100, $skip: Int = 0) {\n    articleCollection(\n      limit: $limit\n      skip: $skip\n      where: { page: { slug_exists: true } }\n    ) {\n      total\n      items {\n        page {\n          slug\n        }\n      }\n    }\n    homepageCollection(\n      limit: $limit\n      skip: $skip\n      where: { page:{ slug_exists: true } }\n    ) {\n      total\n      items {\n        page {\n          slug\n        }\n      }\n    }\n  }\n"),gql('\n  query TAG ($slug: String = "") {\n    tagCollection(\n      where: {\
13n        slugFragment: $slug\n      }\n    ) {\n      items {\n        displayName\n        slugFragment\n        seo {\n          title\n          description\n        }\n      }\n    }\n  }\n'),gql('\n  query CATEGORY_ARTICLES ($tag: String = "", $limit: Int = 10, $skip: Int = 0) {\n    articleCollection(\n      order: entryDate_DESC\n      limit: $limit\n      skip: $skip\n      where: {\n        tags: {\n          slugFragment: $tag\n        }\n        page: {\n          slug_exists: true\n        }\n      }) {\n      total\n      items {\n        sys { id }\n        title\n        summary { json }\n        authorCollection {\n          items {\n            name\n            slugFragment\n          }\n        }\n        entryDate\n        featuredImage {\n          url\n          height\n          width\n          description\n        }\n        tagsCollection {\n          items {\n            displayName\n            slugFragment\n          }\n        }\n        page {\n          slug\n          sys { id }\n        }\n      }\n    }\n  }\n'),gql("\n  query TAGS ($limit: Int = 100, $skip: Int = 0) {\n    tagCollection(\n      limit: $limit\n      skip: $skip\n      order: displayName_ASC\n    ) {\n      items {\n        displayName\n        slugFragment\n        seo {\n          title\n          description\n        }\n      }\n    }\n  }\n"),gql("\n  query TEAM_PAGE {\n    teamPageCollection(limit: 1) {\n      items {\n        sys {\n          id\n        }\n        title\n        description\n        page {\n          sys {\n            id\n          }\n          slug\n          seo {\n            title\n            description\n          }\n        }\n        teamsCollection(limit: 10) {\n          items {\n            sys {\n              id\n            }\n            name\n            linkedFrom {\n              personCollection {\n                items {\n                  sys {\n                    id\n                  }\n                  name\n                  slugFragment\n                  title\n                  isFeatured\n                  biography\n                  photo {\n                    image {\n                      url\n                    }\n                    altText\n                  }\n                  linksCollection(limit: 4) {\n                    items {\n                      displayValue\n                      href\n                      ariaLabel\n                    }\n                  }\n                  linkedFrom {\n                    articleCollection(limit: 1) {\n                      total\n                    }\n                  }\n                }\n              }\n            }\n          }\n        }\n      }\n    }\n  }\n"),gql("\n  query TOPIC_ARTICLES ($slug: String, $limit: Int = 10, $skip: Int = 0) {\n    topicCollection(\n      limit: 1\n      where: {\n        slugFragment: $slug\n      }\n    ) {\n      items {\n        displayName\n        slugFragment\n      }\n    }\n    articleCollection(\n      order: entryDate_DESC\n      limit: $limit\n      skip: $skip\n      where: {\n        topics: {\n          slugFragment: $slug\n        }\n        page: {\n          slug_exists: true\n        }\n      }\n    ) {\n      total\n      items {\n        sys { id }\n        title\n        summary { json }\n        authorCollection {\n          items {\n            name\n            slugFragment\n          }\n        }\n        entryDate\n        featuredImage {\n          url\n          height\n          width\n          description\n        }\n        tagsCollection {\n          items {\n            displayName\n            slugFragment\n          }\n        }\n        page {\n          slug\n          sys { id }\n        }\n      }\n    }\n  }\n"),gql('\n  query TOPIC ($slug: String = "") {\n    topicCollection(\n      where: {\n        slugFragment: $slug\n      }\n    ) {\n      items {\n        displayName\n        slugFragment\n        seo {\n          title\n          description\n        }\n      }\n    }\n  }\n'),gql("\n  query TOPICS ($limit: Int = 100, $skip: Int = 0) {\n    topicCollection(\n      limit: $limit\n      skip: $skip\n      order: displayName_ASC\n    ) {\n      items {\n        sys {\n          id\n        }\n        slugFragment\n        displayName\n        seo {\n          title\n          description\n        }\n      }\n    }\n  }\n"),gql('\n  fragment ArticleResults on ArticleCollection {\n    items {\n      sys { id }\n      title\n      summary { json }\n      authorCollection(limit: 10) {\n        items {\n          name\n          slugFragment\n        }\n      }\n      entryDate\n      featuredImage {\n        url\n        height\n        width\n        description\n      }\n      tagsCollection(limit: 10) {\n        items {\n          displayName\n          slugFragment\n        }\n      }\n      page {\n        slug\n        sys { id }\n      }\n    }\n  }\n\n  query SEARCH_ARTICLES ($search: String = "") {\n    articlesByTitle: articleCollection(\n      order: entryDate_DESC\n      where: {\
13n        title_contains: $search\n        page: {\n          slug_exists: true\n        }\n    }) {\n      ...ArticleResults\n    }\n    articlesBySummary: articleCollection(\n      order: entryDate_DESC\n      where: {\n        summary_contains: $search\n        page: {\n          slug_exists: true\n        }\n    }) {\n      ...ArticleResults\n    }\n    articlesByContent: articleCollection(\n      order: entryDate_DESC\n      where: {\n        content_contains: $search\n        page: {\n          slug_exists: true\n        }\n    }) {\n      ...ArticleResults\n    }\n    articlesByAuthor: articleCollection(\n      order: entryDate_DESC\n      where: {\n        author: {\n          name_contains: $search\n        }\n        page: {\n          slug_exists: true\n        }\n    }) {\n      ...ArticleResults\n    }\n  }\n'),n(6437),n(2924),n(4155);var tE=onError(function(e){var t,n=e.response;e.networkError,e.graphQLErrors,null!=n&&n.errors&&(n.errors=null!==(t=n.errors.filter(function(e){var t,n=null===(t=e.extensions)||void 0===t?void 0:t.contentful;return(null==n?void 0:n.code)!=="UNRESOLVABLE_LINK"||(console.error("GraphQL Error:",n),!1)}))&&void 0!==t?t:null)}),tO=new e5({cache:new td,link:th([tE])}),tS=n(1664),tw=n.n(tS),tC=n(7697),tk=n(5893),tT={full:{id:"sparkbox-logo",viewBox:"0 0 139 38"},mark:{id:"sparkbox-mark",viewBox:"0 0 34 38"},wordmark:{id:"sparkbox-wordmark",viewBox:"0 0 96 19"}},logo=function(e){var t=e.className,n=e.variant,r=tT[void 0===n?"full":n],i=r.id,o=r.viewBox;return(0,tk.jsx)("svg",{className:"cmp-logo ".concat(void 0===t?"":t).trim(),viewBox:o,role:"presentation","aria-hidden":"true",children:(0,tk.jsx)("use",{href:"/assets/logo-library.svg#".concat(i)})})},focus_trap=function(e){var t=e.children,n=e.isTrapped,r=void 0===n||n,i=(0,O.useRef)(null);return(0,O.useEffect)(function(){var e=i.current;if(e&&r){var handleTab=function(t){if("Tab"===t.key){var n=e.querySelectorAll("a[href], button"),r=n[0],i=n[n.length-1];t.shiftKey?document.activeElement===r&&(i.focus(),t.preventDefault()):document.activeElement===i&&(r.focus(),t.preventDefault())}};return e.addEventListener("keydown",handleTab),function(){e.removeEventListener("keydown",handleTab)}}},[r]),(0,tk.jsx)("div",{ref:r?i:null,children:t})};function NavMenuIcon(e){var t=e.iconId;return(0,tk.jsx)("svg",{className:"cmp-nav__icon","aria-hidden":!0,children:(0,tk.jsx)("use",{href:"#".concat(t)})})}var main_navigation=function(e){var t=e.links,n=e.theme,r=void 0===n?"light":n,i=(0,O.useState)(!1),o=i[0],a=i[1],s=(0,O.useState)(!1),c=s[0],l=s[1],u=(0,O.useRef)(null),f=t.filter(function(e){return"link"===e.type}),p=t.filter(function(e){return"button"===e.type}),d=(0,O.useCallback)(function(){a(function(e){return!e})},[]),h=(0,O.useCallback)(function(){a(!1)},[]);(0,O.useEffect)(function(){var handleEscape=function(e){if("Escape"===e.key){var t;a(!1),null===(t=u.current)||void 0===t||t.focus()}};return o&&(document.addEventListener("keydown",handleEscape),document.body.classList.add("nav-menu-open")),function(){document.removeEventListener("keydown",handleEscape),document.body.classList.remove("nav-menu-open")}},[o]),(0,O.useEffect)(function(){if("function"==typeof window.matchMedia){var e,t=window.matchMedia((e=getComputedStyle(document.documentElement).getPropertyValue("--cmp-nav-desktop-breakpoint").trim(),"(min-width: ".concat(e,")"))),handleDesktopMediaChange=function(e){var n,r=null!==(n=null==e?void 0:e.matches)&&void 0!==n?n:t.matches;l(r),r&&a(!1)};return handleDesktopMediaChange(),t.addEventListener("change",handleDesktopMediaChange),function(){return t.removeEventListener("change",handleDesktopMediaChange)}}},[]);var y=o?"Close":"Open",m="dark"===r&&!o||"light"===r&&o;return(0,tk.jsx)(focus_trap,{isTrapped:o,children:(0,tk.jsx)("header",{className:"cmp-nav cmp-nav--".concat(r).concat(o?" cmp-nav--open":"").concat(m?" util-dark-gray-section":""),"aria-label":"site header",children:(0,tk.jsxs)("nav",{id:"navigation",className:"cmp-nav__container obj-max-width","aria-label":"main navigation",children:[(0,tk.jsxs)(tw(),{href:"/",className:"cmp-nav__home-link",onClick:h,children:[(0,tk.jsx)("span",{className:"util-visually-hidden",children:"Sparkbox Homepage"}),(0,tk.jsx)(logo,{})]}),(0,tk.jsx)("button",{"aria-label":"".concat(y," site navigation"),"aria-controls":"navigation","aria-expanded":o,ref:u,onClick:d,"data-testid":"toggle-nav",className:"cmp-nav__toggle",children:o?(0,tk.jsx)(NavMenuIcon,{iconId:"icon-close"}):(0,tk.jsx)(NavMenuIcon,{iconId:"icon-menu"})}),(0,tk.jsx)("div",{className:"cmp-nav__list-container",children:(0,tk.jsx)("ul",{className:"cmp-nav__list",children:f.map(function(e){var t=e.id,n=e.text,r=e.url,i=e.isActive;return(0,tk.jsx)("li",{className:"cmp-nav__item ".concat(i?"cmp-nav__item--active":""),children:(0,tk.jsx)(tw(),{href:r,className:"cmp-nav__link",onClick:h,children:n})},t)})})}),(0,tk.jsx)("div",{className:"cmp-nav__button-container ".concat(c?"cmp-nav__button-container--desktop":"cmp-nav__button-container--mobile"),children:p.map(function(e){var t=e.id,n=e.text,r=e.url,i=e.arrowDirection,o=e.icon,a=e.variant;return(0,tk.jsx)(tC.Z,{text:n,href:r,variant:c?a:"primary",iconName:o,arrowDirection:i},t)})})]})})})},tI=n(1640),site_links=function(e){var t=e.heading,n=e.links,r=e.className;return(0,tk.jsxs)("nav",{"aria-label":t,className:r,children:[(0,tk.jsx)("h2",{className:"subtitle",children:t}),(0,tk.jsx)("ul",{className:"cmp-footer__link-list util-delist",children:n.map(function(e){return(0,tk.jsx)("li",{children:(0,tk.jsx)("a",{href:e.url,className:"cmp-footer__link",children:e.text})},e.url)})})]})};function footer_ownKeys(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function footer_objectSpread(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
13t%2?footer_ownKeys(Object(n),!0).forEach(function(t){(0,E.Z)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):footer_ownKeys(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var footer=function(){return(0,tk.jsx)("footer",{className:"cmp-footer","aria-label":"site footer",children:(0,tk.jsxs)("div",{className:"cmp-footer__content obj-max-width",children:[(0,tk.jsxs)("div",{className:"cmp-footer__header",children:[(0,tk.jsxs)(tw(),{href:"/",className:"cmp-footer__mark",children:[(0,tk.jsx)("span",{className:"util-visually-hidden",children:"Sparkbox"}),(0,tk.jsx)(logo,{variant:"wordmark",className:"cmp-footer__mark-word"}),(0,tk.jsx)(logo,{variant:"mark",className:"cmp-footer__mark-icon"})]}),(0,tk.jsx)("div",{className:"cmp-footer__wordmark",children:(0,tk.jsx)(logo,{variant:"wordmark"})})]}),(0,tk.jsxs)("div",{className:"cmp-footer__main",children:[(0,tk.jsxs)("div",{className:"cmp-footer__columns",children:[(0,tk.jsx)(site_links,footer_objectSpread({},{heading:"Company",className:"cmp-footer__column",links:[{url:"/how-we-help",text:"How We Help"},{url:"/success-stories",text:"Success Stories"},{url:"/our-team",text:"Our Team"},{url:"/foundry",text:"The Foundry"},{url:"/careers",text:"Careers"}]})),(0,tk.jsx)(site_links,footer_objectSpread({},{heading:"Explore",className:"cmp-footer__column",links:[{url:"/foundry/topic/design_systems",text:"Design Systems"},{url:"/foundry/topic/ai",text:"Artificial Intelligence"},{url:"/foundry/topic/website_development",text:"Development"},{url:"/foundry/topic/ux_content_strategy",text:"User Experience"}]})),(0,tk.jsx)(site_links,footer_objectSpread({},{heading:"Connect",className:"cmp-footer__column",links:[{text:"Get in Touch",url:"mailto:[email protected]"},{text:"GitHub",url:"https://github.com/sparkbox"},{text:"YouTube",url:"https://www.youtube.com/channel/UCfsWcRy7Yh1WWDrrZS0Q7xw"},{text:"LinkedIn",url:"https://www.linkedin.com/company/sparkbox/"}]}))]}),(0,tk.jsxs)("div",{className:"cmp-footer__newsletter",children:[(0,tk.jsx)("h2",{className:"subtitle",id:"newsletterFooterLabel",children:"Newsletter Sign Up"}),(0,tk.jsx)("p",{className:"body-sm",children:"Get actionable insights and monthly advice"}),(0,tk.jsx)(tI.Z,{ariaLabeledBy:"newsletterFooterLabel",buttonModifier:"footer"})]})]}),(0,tk.jsxs)("p",{className:"cmp-footer__footer",children:[(0,tk.jsx)("small",{children:(0,tk.jsx)(tw(),{href:"/terms",className:"cmp-footer__link cmp-footer__link--legal",children:"Terms of Use"})}),(0,tk.jsxs)("small",{children:["\xa9",new Date().getFullYear()," Sparkbox. All rights reserved."]}),(0,tk.jsxs)("small",{children:[(0,tk.jsx)(tw(),{href:"/privacypolicy",className:"cmp-footer__link cmp-footer__link--legal",children:"Privacy Policy"}),", ",(0,tk.jsx)(tw(),{href:"/cookies",className:"cmp-footer__link cmp-footer__link--legal",children:"Cookie Policy"})]})]})]})})},skip_to_main_content_link=function(e){var t=e.text,n=e.url;return(0,tk.jsx)("a",{href:n,className:"cmp-skip-link",children:t})},tx=n(9332);function getActiveNavigationLink_ownKeys(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function getActiveNavigationLink_objectSpread(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?getActiveNavigationLink_ownKeys(Object(n),!0).forEach(function(t){(0,E.Z)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):getActiveNavigationLink_ownKeys(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var icons_sprite=function(){return(0,tk.jsxs)("svg",{className:"util-display-none",children:[(0,tk.jsx)("symbol",{fill:"none",viewBox:"0 0 20 20",id:"icon-close",xmlns:"http://www.w3.org/2000/svg",children:(0,tk.jsx)("path",{d:"M1.5 18.5l17-17m0 17l-17-17",stroke:"currentColor",strokeWidth:"2"})}),(0,tk.jsx)("symbol",{viewBox:"0 0 32 32",id:"icon-dribbble",xmlns:"http://www.w3.org/2000/svg",children:(0,tk.jsx)("path",{d:"M16 32C7.175 32 0 24.825 0 16S7.175 0 16 0s16 7.175 16 16-7.175 16-16 16zm13.494-13.812c-.469-.15-4.231-1.269-8.512-.581 1.788 4.912 2.512 8.912 2.656 9.744 3.063-2.075 5.25-5.356 5.856-9.163zM21.337 28.6c-.206-1.2-.994-5.375-2.913-10.363-.031.012-.063.019-.087.031-7.713 2.688-10.481 8.031-10.725 8.531a13.612 13.612 0 008.387 2.887c1.894 0 3.7-.387 5.338-1.087zM5.844 25.156c.313-.531 4.063-6.738 11.106-9.019.175-.056.356-.113.538-.162a50.041 50.041 0 00-1.106-2.319C9.563 15.7 2.938 15.612 2.338 15.606c-.006.137-.006.275-.006.419 0 3.506 1.331 6.712 3.512 9.131zM2.625 13.219c.612.006 6.244.031 12.637-1.662a86.017 86.017 0 00-5.069-7.906C6.368 5.457 3.505 8.982 2.624 13.22zM12.8 2.731a73.225 73.225 0 015.1 8c4.863-1.819 6.919-4.588 7.163-4.938A13.598 13.598 0 0016 2.349a14.22 14.22 0 00-3.2.381zm13.781 4.65c-.288.388-2.581 3.325-7.631 5.388.319.65.625 1.313.906 1.981.1.238.2.469.294.706 4.55-.569 9.069.344 9.519.438a13.628 13.628 0 00-3.087-8.512z"})}),(0,tk.jsx)("symbol",{viewBox:"0 0 13 11",fill:"none",id:"icon-external-link",xmlns:"http://www.w3.org/2000/svg",children:(0,tk.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 3.538V11h1V3.538h9.165C9.697 4.085 9.194 4.906 8.656 6h.91C10.66 4.735 11.803 3.812 13 3.23v-.46c-1.197-.6-2.341-1.522-3.434-2.77h-.91c.538 1.094 1.04 1.915 1.509 2.462H0v1.076z",fill:"
13currentColor"})}),(0,tk.jsx)("symbol",{viewBox:"0 0 32 32",id:"icon-facebook",xmlns:"http://www.w3.org/2000/svg",children:(0,tk.jsx)("path",{d:"M19 6h5V0h-5c-3.86 0-7 3.14-7 7v3H8v6h4v16h6V16h5l1-6h-6V7c0-.542.458-1 1-1z"})}),(0,tk.jsx)("symbol",{fill:"none",viewBox:"0 0 10 11",id:"icon-four-dots-accent",xmlns:"http://www.w3.org/2000/svg",children:(0,tk.jsxs)("g",{fill:"#000",children:[(0,tk.jsx)("circle",{cx:"1.923",cy:"2.308",r:"1.923"}),(0,tk.jsx)("circle",{cx:"1.923",cy:"8.692",r:"1.923"}),(0,tk.jsx)("circle",{cx:"8.077",cy:"2.308",r:"1.923"}),(0,tk.jsx)("circle",{cx:"8.077",cy:"8.692",r:"1.923"})]})}),(0,tk.jsx)("symbol",{viewBox:"0 0 32 32",id:"icon-github",xmlns:"http://www.w3.org/2000/svg",children:(0,tk.jsx)("path",{d:"M16 .395c-8.836 0-16 7.163-16 16 0 7.069 4.585 13.067 10.942 15.182.8.148 1.094-.347 1.094-.77 0-.381-.015-1.642-.022-2.979-4.452.968-5.391-1.888-5.391-1.888-.728-1.849-1.776-2.341-1.776-2.341-1.452-.993.11-.973.11-.973 1.606.113 2.452 1.649 2.452 1.649 1.427 2.446 3.743 1.739 4.656 1.33.143-1.034.558-1.74 1.016-2.14-3.554-.404-7.29-1.777-7.29-7.907 0-1.747.625-3.174 1.649-4.295-.166-.403-.714-2.03.155-4.234 0 0 1.344-.43 4.401 1.64a15.353 15.353 0 014.005-.539c1.359.006 2.729.184 4.008.539 3.054-2.07 4.395-1.64 4.395-1.64.871 2.204.323 3.831.157 4.234 1.026 1.12 1.647 2.548 1.647 4.295 0 6.145-3.743 7.498-7.306 7.895.574.497 1.085 1.47 1.085 2.963 0 2.141-.019 3.864-.019 4.391 0 .426.288.925 1.099.768C27.421 29.457 32 23.462 32 
1316.395c0-8.837-7.164-16-16-16z"})}),(0,tk.jsx)("symbol",{viewBox:"0 0 11 13",fill:"none",id:"icon-jump-link",xmlns:"http://www.w3.org/2000/svg",children:(0,tk.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.462 0H0v1h7.462v9.165C6.915 9.697 6.094 9.194 5 8.656v.91C6.265 10.66 7.188 11.803 7.77 13h.46c.6-1.197 1.522-2.341 2.77-3.434v-.91c-1.094.538-1.915 1.04-2.462 1.509V0H7.462z",fill:"#000"})}),(0,tk.jsx)("symbol",{viewBox:"0 0 32 32",id:"icon-linkedin",xmlns:"http://www.w3.org/2000/svg",children:(0,tk.jsx)("path",{d:"M12 12h5.535v2.837h.079c.77-1.381 2.655-2.837 5.464-2.837C28.92 12 30 15.637 30 20.367V30h-5.769v-8.54c0-2.037-.042-4.657-3.001-4.657-3.005 0-3.463 2.218-3.463 4.509V30H12V12zM2 12h6v18H2V12zM8 7a3 3 0 11-6 0 3 3 0 016 0z"})}),(0,tk.jsx)("symbol",{fill:"none",viewBox:"0 0 24 19",id:"icon-menu",xmlns:"http://www.w3.org/2000/svg",children:(0,tk.jsx)("path",{d:"M0 1h24M0 10h24m-12 8h12",stroke:"currentColor",strokeWidth:"2"})}),(0,tk.jsx)("symbol",{viewBox:"0 0 18 20",id:"icon-quote",xmlns:"http://www.w3.org/2000/svg",children:(0,tk.jsx)("path",{d:"M10.5 12.2v7.2h6.7v-8.3H14c0-3.3 1.1-5.8 3.7-8.4L15 .7c-3 3-4.5 7-4.5 11.5zm-10.1 0v7.2H7v-8.3H3.9c0-3.3 1-5.8 3.7-8.4L4.8.7c-3 3-4.4 7-4.4 11.5z",fill:"currentColor"})}),(0,tk.jsx)("symbol",{viewBox:"0 0 32 32",id:"icon-twitter",xmlns:"http://www.w3.org/2000/svg",children:(0,tk.jsx)("path",{d:"M32 7.075a12.941 12.941 0 01-3.769 1.031 6.601 6.601 0 002.887-3.631 13.21 13.21 0 01-4.169 1.594A6.565 6.565 0 0022.155 4a6.563 6.563 0 00-6.563 6.563c0 .512.056 1.012.169 1.494A18.635 18.635 0 012.23 5.195a6.56 6.56 0 00-.887 3.3 6.557 6.557 0 002.919 5.463 6.565 6.565 0 01-2.975-.819v.081a6.565 6.565 0 005.269 6.437 6.574 6.574 0 01-2.968.112 6.588 6.588 0 006.131 4.563 13.17 13.17 0 01-9.725 2.719 18.568 18.568 0 0010.069 2.95c12.075 0 18.681-10.006 18.681-18.681 0-.287-.006-.569-.019-.85A13.216 13.216 0 0032 7.076z"})}),(0,tk.jsx)("symbol",{viewBox:"0 0 32 32",id:"icon-youtube",xmlns:"http://www.w3.org/2000/svg",children:(0,tk.jsx)("path",{d:"M31.681 9.6s-.313-2.206-1.275-3.175C29.187 5.15 27.825 5.144 27.2 5.069c-4.475-.325-11.194-.325-11.194-.325h-.012s-6.719 0-11.194.325c-.625.075-1.987.081-3.206 1.356C.631 7.394.325 9.6.325 9.6s-.319 2.588-.319 5.181v2.425c0 2.587.319 5.181.319 5.181s.313 2.206 1.269 3.175c1.219 1.275 2.819 1.231 3.531 1.369 2.563.244 10.881.319 10.881.319s6.725-.012 11.2-.331c.625-.075 1.988-.081 3.206-1.356.962-.969 1.275-3.175 1.275-3.175s.319-2.587.319-5.181v-2.425c-.006-2.588-.325-5.181-.325-5.181zM12.694 20.15v-8.994l8.644 4.513-8.644 4.481z"})}),(0,tk.jsxs)("symbol",{viewBox:"0 0 24 18",id:"icon-email",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,tk.jsx)("path",{d:"M23.2 2.675v12.65c0 1.265-1.035 2.3-2.3 2.3H3.1a2.3 2.3 0 0 1-2.3-2.3V2.675c0-1.277 1.023-2.3 2.3-2.3h15.45v2.3H3.1v12.65h17.8V2.675h-3.45v-2.3h3.45a2.3 2.3 0 0 1 2.3 2.3Z",fill:"#000"}),(0,tk.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"m4.551 6.286-.005-2.272 7.39 4.59 7.482-4.594-.003 2.31-7.49 4.63L4.55 6.286Z",fill:"#000"})]}),(0,tk.jsx)("symbol",{viewBox:"0 0 20 26",id:"icon-share",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,tk.jsx)("path",{d:"m14.6 4.95-1.633 1.633-1.828-1.829V17.6H8.862V4.754L7.033 6.583 5.4 4.95 10 .35l4.6 4.6Zm4.6 5.75v12.65c0 1.265-1.035 2.3-2.3 2.3H3.1a2.3 2.3 0 0 1-2.3-2.3V10.7c0-1.277 1.023-2.3 2.3-2.3h3.45v2.3H3.1v12.65h13.8V10.7h-3.45V8.4h3.45a2.3 2.3 0 0 1 2.3 2.3Z",fill:"#000"})}),(0,tk.jsx)("symbol",{id:"icon-copy-link",viewBox:"0 -1 20 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,tk.jsx)("path",{d:"M15 .5h-4v2h4c1.65 0 3 1.35 3 3s-1.35 3-3 3h-4v2h4c2.76 0 5-2.24 5-5s-2.24-5-5-5Zm-6 8H5c-1.65 0-3-1.35-3-3s1.35-3 3-3h4v-2H5c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-2Zm-3-4h8v2H6v-2Z",fill:"#000"})}),(0,tk.jsx)("symbol",{id:"icon-share-openly",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,tk.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"m13.57 1.08-.618-.62-.619.62-3.697 3.696 1.238 1.237 2.201-2.201.002 1.153c.003 1.777.006 3.545-.014 5.326-.112 2.219-1.78 4.286-3.928 4.734l-.013.003-.014.003c-1.889.459-4.038-.492-4.86-2.215l-.006-.014-.007-.013c-.774-1.486-.37-3.494.941-4.47l.013-.01.013-.01c1.13-.91 2.92-.85 3.894.157l.013.014.014.013c.529.5.736 1.22.736 2.26v.114h1.75v-.113c0-1.233-.24-2.534-1.268-3.518-1.658-1.699-4.458-1.71-6.223-.302-2.038 1.53-2.57 4.477-1.443 6.66 1.207 2.511 4.208 3.782 
136.832 3.151 2.98-.63 5.165-3.418 5.305-6.377v-.031c.02-1.795.018-3.592.015-5.384l-.002-1.134 2.205 2.204 1.237-1.237-3.696-3.697Z",fill:"currentColor"})})]})},tD=[{text:"How We Help",url:"/how-we-help",id:"navigation-link1",type:"link"},{text:"Success Stories",url:"/success-stories",id:"navigation-link2",type:"link"},{text:"Our Team",url:"/our-team",id:"navigation-link3",type:"link"},{text:"The Foundry",url:"/foundry",id:"navigation-link4",type:"button",variant:"primary"},{text:"Get in Touch",url:"/contact",id:"navigation-link5",type:"button",variant:"secondary",icon:"arrow",arrowDirection:"top-right"}],layout=function(e){var t=e.children,n=e.navTheme,r=(0,tx.usePathname)(),i=tD.map(function(e){return getActiveNavigationLink_objectSpread(getActiveNavigationLink_objectSpread({},e),{},{isActive:!!r&&r.startsWith(e.url)})});return(0,tk.jsxs)(tk.Fragment,{children:[(0,tk.jsx)(skip_to_main_content_link,{text:"Skip to main content",url:"#main-content"}),(0,tk.jsx)(main_navigation,{links:i,theme:n}),(0,tk.jsx)("main",{id:"main-content",children:t}),(0,tk.jsx)(footer,{}),(0,tk.jsx)(icons_sprite,{})]})},tN=n(9008),tL=n.n(tN),tA="safe-focus",assignHtml=function(){_=document.documentElement},activateSafeFocus=function(){_.classList.add(tA)},deactivateSafeFocus=function(){_.classList.remove(tA)},safeFocusInit=function(){assignHtml(),document.documentElement.classList&&(_.classList.remove(tA),document.addEventListener("mousedown",deactivateSafeFocus),document.addEventListener("keydown",activateSafeFocus))},safeFocusCleanup=function(){document.removeEventListener("mousedown",deactivateSafeFocus),document.removeEventListener("keydown",activateSafeFocus)};function _app_ownKeys(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}var tj="G-9N23DQKH6R";function GoogleAnalyticsSnippet(){return(0,tk.jsxs)(tk.Fragment,{children:[(0,tk.jsx)(w(),{async:!0,src:"https://www.googletagmanager.com/gtag/js?id=".concat(tj)}),(0,tk.jsx)(w(),{id:"googleTagManager",strategy:"afterInteractive",children:"window.dataLayer = window.dataLayer || [];\n        function gtag(){dataLayer.push(arguments);}\n        function setGtagConsentStatus(grantedOrDenied, defaultOrUpdate, options = {}) {\n          gtag('consent', defaultOrUpdate, {\n            ...options,\n            ad_storage: grantedOrDenied,\n            ad_user_data: grantedOrDenied,\n            ad_personalization: grantedOrDenied,\n            analytics_storage: grantedOrDenied,\n            functionality_storage: grantedOrDenied,\n            personalization_storage: grantedOrDenied,\n            security_storage: grantedOrDenied,\n          });\n        }\n\n        // deny cookie consent by default\n        setGtagConsentStatus('denied', 'default');\n\n        // grant cookie consent in the US\n        setGtagConsentStatus('granted', 'default', { region: 'US' });\n\n        // explicitly deny cookie consent by default in California\n        setGtagConsentStatus('denied', 'default', { region: 'US-CA' });\n\n        // deny consent for users who have \"do not track\" settings in their browsers or have explicitly denied consent\n        if (navigator.doNotTrack === '1' || navigator.globalPrivacyControl || localStorage.getItem('analytics-consent') === 'denied') {\n          setGtagConsentStatus('denied', 'update', { wait_for_update: 0 });\n        } else if (localStorage.getItem('analytics-consent') === 'granted') {\n          setGtagConsentStatus('granted', 'update', { wait_for_update: 0 });\n        }\n\n        gtag('set', 'cookie_flags', 'SameSite=None;Secure');\n        gtag('js', new Date());\n        gtag('config', '".concat(tj,"');\n        gtag('config', '").concat("AW-611206884","');\n\n        // now we're in tag manager territory, which uses consent settings established earlier\n        dataLayer.push({\n          'gtm.start': new Date().getTime(),\n          event:'gtm.js',\n        });\n\n        // inject the async gtm script before the first detected script tag\n        const firstScript = document.getElementsByTagName('script')[0];\n        const gtmScript = document.createElement('script');\n        gtmScript.async = true;\n        gtmScript.src= 'https://www.googletagmanager.com/gtm.js?id=").concat("GTM-NNTRZ9HS","';\n        firstScript.parentNode.insertBefore(gtmScript, firstScript);")})]})}var _app=function(e){var t=e.Component,n=e.pageProps;return(0,O.useEffect)(function(){return safeFocusInit(),function(){safeFocusCleanup()}},[]),(0,tk.jsxs)(tk.Fragment,{children:[(0,tk.jsxs)(tL(),{children:[(0,tk.jsx)("meta",{name:"viewport",content:"width=device-width, initial-scale=1"}),(0,tk.jsx)("meta",{property:"og:image",content:"/img/generic-fallback-2021.jpeg"},"og:image"),(0,tk.jsx)("meta",{property:"og:type",content:"website"},"og:type"),(0,tk.jsx)("meta",{property:"og:locale",content:"en_US"},"og:locale"),(0,tk.jsx)("meta",{name:"twitter:card",content:"summary_large_image"},"twitter:card"),(0,tk.jsx)("meta",{name:"twitter:site",content:"@hearsparkbox"}
13,"twitter:site"),(0,tk.jsx)("meta",{name:"author",content:"Sparkbox"},"author"),(0,tk.jsx)("link",{rel:"alternate",type:"application/rss+xml",href:"https://sparkbox.com/foundry/feed",title:"The Sparkbox Foundry"},"alternate")]}),(0,tk.jsx)(GoogleAnalyticsSnippet,{}),(0,tk.jsx)(ApolloProvider,{client:tO,children:(0,tk.jsx)(layout,{navTheme:null==n?void 0:n.navTheme,children:(0,tk.jsx)(t,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_app_ownKeys(Object(n),!0).forEach(function(t){(0,E.Z)(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_app_ownKeys(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},n))})})]})}},6840:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/_app",function(){return n(2654)}])},7789:function(){},2107:function(){},9008:function(e,t,n){e.exports=n(2268)},1664:function(e,t,n){e.exports=n(3366)},9332:function(e,t,n){e.exports=n(4903)},4298:function(e,t,n){e.exports=n(4163)},4155:function(e){var t,n,r,i=e.exports={};function defaultSetTimout(){throw Error("setTimeout has not been defined")}function defaultClearTimeout(){throw Error("clearTimeout has not been defined")}function runTimeout(e){if(t===setTimeout)return setTimeout(e,0);if((t===defaultSetTimout||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:defaultSetTimout}catch(e){t=defaultSetTimout}try{n="function"==typeof clearTimeout?clearTimeout:defaultClearTimeout}catch(e){n=defaultClearTimeout}}();var o=[],a=!1,s=-1;function cleanUpNextTick(){a&&r&&(a=!1,r.length?o=r.concat(o):s=-1,o.length&&drainQueue())}function drainQueue(){if(!a){var e=runTimeout(cleanUpNextTick);a=!0;for(var t=o.length;t;){for(r=o,o=[];++s<t;)r&&r[s].run();s=-1,t=o.length}r=null,a=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===defaultClearTimeout||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function Item(e,t){this.fun=e,this.array=t}function noop(){}i.nextTick=function(e){var t=Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];o.push(new Item(e,t)),1!==o.length||a||runTimeout(drainQueue)},Item.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=noop,i.addListener=noop,i.once=noop,i.off=noop,i.removeListener=noop,i.removeAllListeners=noop,i.emit=noop,i.prependListener=noop,i.prependOnceListener=noop,i.listeners=function(e){return[]},i.binding=function(e){throw Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw Error("process.chdir is not supported")},i.umask=function(){return 0}},29:function(e,t,n){"use strict";function asyncGeneratorStep(e,t,n,r,i,o,a){try{var s=e[o](a),c=s.value}catch(e){n(e);return}s.done?t(c):Promise.resolve(c).then(r,i)}function _asyncToGenerator(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var o=e.apply(t,n);function _next(e){asyncGeneratorStep(o,r,i,_next,_throw,"next",e)}function _throw(e){asyncGeneratorStep(o,r,i,_next,_throw,"throw",e)}_next(void 0)})}}n.d(t,{Z:function(){return _asyncToGenerator}})},9499:function(e,t,n){"use strict";function _defineProperty(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,{Z:function(){return _defineProperty}})},4730:function(e,t,n){"use strict";function _objectWithoutProperties(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}n.d(t,{Z:function(){return _objectWithoutProperties}})}},function(e){var __webpack_exec__=function(t){return e(e.s=t)};e.O(0,[774,179],function(){return __webpack_exec__(6840),__webpack_exec__(7985)}),_N_E=e.O()}]);

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.