PageSourceSearch

https://www.skyshowtime.com/idauth/_next/static/chunks/gql-bdfe341cd150f90c.js

js skyshowtime.com collected 2026-10-01 11:37:53 UTC 191,726 bytes, 29 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3825],{249:(e,t,n)=>{n.d(t,{K:()=>c,D:()=>l});var r=n(65352),i=n(33974),a=n(12053),o=n(76856),s=n(3109);function u(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(0,o.KU)();if(t)return t;let{graphql:n,env:u}=(0,i.zj)(),{possibleTypes:l,cache:c,...d}=e,f=c||(l?new r.D({possibleTypes:l,typePolicies:{...s.Bu,...s.m6,...s.Yq,...s.Ir}}):void 0),p=(0,o.UU)({connectToDevTools:"production"!==u,retryOptions:{retries:n?.retries},cache:f,...d});return(0,a.S$)()||(0,o.ig)(p),p}async function l(e){try{if(e.skip)return{};let t=u();return await t.query(e)}catch(e){return{error:e}}}async function c(e){let t=u();try{return await t.mutate(e)}catch(e){return{errors:e.graphQLErrors}}}},2585:(e,t,n)=>{n.d(t,{AT:()=>l,E4:()=>c,Vn:()=>d,Vu:()=>o,n4:()=>s,sw:()=>a,wY:()=>f,zK:()=>u});var r=n(83808),i=n(37535);function a(e){(0,r.V1)(e&&"Document"===e.kind,75);var t=e.definitions.filter(function(e){return"FragmentDefinition"!==e.kind}).map(function(e){if("OperationDefinition"!==e.kind)throw(0,r.vA)(76,e.kind);return e});return(0,r.V1)(t.length<=1,77,t.length),e}function o(e){return a(e),e.definitions.filter(function(e){return"OperationDefinition"===e.kind})[0]}function s(e){return e.definitions.filter(function(e){return"OperationDefinition"===e.kind&&!!e.name}).map(function(e){return e.name.value})[0]||null}function u(e){return e.definitions.filter(function(e){return"FragmentDefinition"===e.kind})}function l(e){var t=o(e);return(0,r.V1)(t&&"query"===t.operation,78),t}function c(e){(0,r.V1)("Document"===e.kind,79),(0,r.V1)(e.definitions.length<=1,80);var t=e.definitions[0];return(0,r.V1)("FragmentDefinition"===t.kind,81),t}function d(e){a(e);for(var t,n=0,i=e.definitions;n<i.length;n++){var o=i[n];if("OperationDefinition"===o.kind){var s=o.operation;if("query"===s||"mutation"===s||"subscription"===s)return o}"FragmentDefinition"!==o.kind||t||(t=o)}if(t)return t;throw(0,r.vA)(82)}function f(e){var t=Object.create(null),n=e&&e.variableDefinitions;return n&&n.length&&n.forEach(function(e){e.defaultValue&&(0,i.J)(t,e.variable.name,e.defaultValue)}),t}},3109:(e,t,n)=>{n.d(t,{Bu:()=>a,Ir:()=>i,Yq:()=>s,m6:()=>o});var r=n(33974);let i={LabelsResult:{keyFields:!1,merge:(e,t)=>t}},a={Query:{fields:{...{basket(e,t){let{args:n,toReference:r}=t;return r({__typename:"Basket",id:n?.basketReference})},checkoutBasket(e,t){let{args:n,toReference:r}=t;return r({__typename:"BasketResponse",id:n?.basketReference})}},...{menu(e,t){let{variables:n,toReference:r}=t;return r({__typename:"Menu",id:n?.menuType})}},...{labels:{keyArgs:e=>{let{language:t}=(0,r.zj)(),n=e?.sections??[];return`labels:{"language":"${t??"default"}","sections":${JSON.stringify(n)}}`}}},user:{merge:!0},payments:{merge:!0}}},User:{keyFields:!1},Portfolio:{keyFields:!1}},o={Menu:{merge:!0},NavMenu:{merge:!0}},s={Internationalisation:{merge:!0}}},7019:(e,t,n)=>{n.d(t,{$:()=>r});let r=(0,n(22148).J)(`
2  query Commerce($input: PaywallInput!) {
3    commerce {
4      paywall(input: $input) {
5        showPaywall
6        redirectUrl
7        paywallType
8        showPaywall
9      }
10    }
11  }
12`)},8572:(e,t,n)=>{n.d(t,{C:()=>c});var r=n(83808),i=n(12932),a=n(19043),o=n(2585);function s(e,t){return t?t(e):i.c.of()}function u(e){return"function"==typeof e?new c(e):e}function l(e){return e.request.length<=1}var c=function(){function e(e){e&&(this.request=e)}return e.empty=function(){return new e(function(){return i.c.of()})},e.from=function(t){return 0===t.length?e.empty():t.map(u).reduce(function(e,t){return e.concat(t)})},e.split=function(t,n,r){var a=u(n),o=u(r||new e(s));return Object.assign(new e(l(a)&&l(o)?function(e){return t(e)?a.request(e)||i.c.of():o.request(e)||i.c.of()}:function(e,n){return t(e)?a.request(e,n)||i.c.of():o.request(e,n)||i.c.of()}),{left:a,right:o})},e.execute=function(e,t){var n,s,u,l,c;return e.request((u=t.context,(s={variables:(n=function(e){for(var t=["query","operationName","variables","extensions","context"],n=0,i=Object.keys(e);n<i.length;n++){var a=i[n];if(0>t.indexOf(a))throw(0,r.vA)(43,a)}return e}(t)).variables||{},extensions:n.extensions||{},operationName:n.operationName,query:n.query}).operationName||(s.operationName="string"!=typeof s.query?(0,o.n4)(s.query)||void 0:""),l=s,
12c=(0,a.Cl)({},u),Object.defineProperty(l,"setContext",{enumerable:!1,value:function(e){c="function"==typeof e?(0,a.Cl)((0,a.Cl)({},c),e(c)):(0,a.Cl)((0,a.Cl)({},c),e)}}),Object.defineProperty(l,"getContext",{enumerable:!1,value:function(){return(0,a.Cl)({},c)}}),l))||i.c.of()},e.concat=function(t,n){var r=u(t);if(l(r))return r;var a=u(n);return Object.assign(new e(l(a)?function(e){return r.request(e,function(e){return a.request(e)||i.c.of()})||i.c.of()}:function(e,t){return r.request(e,function(e){return a.request(e,t)||i.c.of()})||i.c.of()}),{left:r,right:a})},e.prototype.split=function(t,n,r){return this.concat(e.split(t,n,r||new e(s)))},e.prototype.concat=function(t){return e.concat(this,t)},e.prototype.request=function(e,t){throw(0,r.vA)(36)},e.prototype.onError=function(e,t){if(t&&t.error)return t.error(e),!1;throw e},e.prototype.setOnError=function(e){return this.onError=e,this},e}()},9992:(e,t,n)=>{n.d(t,{M:()=>o});var r,i=n(29366),a=n(85629),o=Object.assign(function(e){return JSON.stringify(e,s)},{reset:function(){r=new i.V(a.v.canonicalStringify||1e3)}});function s(e,t){if(t&&"object"==typeof t){var n=Object.getPrototypeOf(t);if(n===Object.prototype||null===n){var i=Object.keys(t);if(i.every(u))return t;var a=JSON.stringify(i),o=r.get(a);if(!o){i.sort();var s=JSON.stringify(i);o=r.get(s)||i,r.set(a,o),r.set(s,o)}var l=Object.create(n);return o.forEach(function(e){l[e]=t[e]}),l}}return t}function u(e,t,n){return 0===t||n[t-1]<=e}o.reset()},14162:(e,t,n)=>{n.d(t,{X:()=>r});async function r(e,t){try{return await e.query(t)}catch(e){return{error:e}}}},22148:(e,t,n)=>{n.d(t,{J:()=>i});let r={"\n  mutation GetUmvToken {\n    authentication {\n      setUmvToken\n    }\n  }\n":{kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"GetUmvToken"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"authentication"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"setUmvToken"}}]}}]}}]},'\n  mutation GrantOauthConsent($input: GrantOauthConsentInput!) {\n    grantOauthConsent(input: $input)\n      @rest(endpoint: "grantOauthConsent", type: "SkyIdConsentResponse", path: "", method: "POST") {\n      client_id\n      consent\n      message\n      errorcode\n      service\n    }\n  }\n':{kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"GrantOauthConsent"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"input"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"GrantOauthConsentInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"grantOauthConsent"},arguments:[{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"Variable",name:{kind:"Name",value:"input"}}}],directives:[{kind:"Directive",name:{kind:"Name",value:"rest"},arguments:[{kind:"Argument",name:{kind:"Name",value:"endpoint"},value:{kind:"StringValue",value:"grantOauthConsent",block:!1}},{kind:"Argument",name:{kind:"Name",value:"type"},value:{kind:"StringValue",value:"SkyIdConsentResponse",block:!1}},{kind:"Argument",name:{kind:"Name",value:"path"},value:{kind:"StringValue",value:"",block:!1}},{kind:"Argument",name:{kind:"Name",value:"method"},value:{kind:"StringValue",value:"POST",block:!1}}]}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"client_id"}},{kind:"Field",name:{kind:"Name",value:"consent"}},{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"errorcode"}},{kind:"Field",name:{kind:"Name",value:"service"}}]}}]}}]},"\n  query Commerce($input: PaywallInput!) {\n    commerce {\n      paywall(input: $input) {\n        showPaywall\n        redirectUrl\n        paywallType\n        showPaywall\n      }\n    }\n  }\n":{kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"Commerce"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"input"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"PaywallInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"commerce"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"paywall"},arguments:[{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"Variable",name:{kind:"Name",value:"input"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"showPaywall"}},{kind:"Field",name:{kind:"Name",value:"redirectUrl"}},{kind:"Field",name:{kind:"Name",value:"paywallType"}},{kind:"Field",name:{kind:"Name",value:"showPaywall"}}]}}]}}]}}]},"\n  query ExtraMemberInvite($input: ExtraMemberInviteInput!) {\n    user {\n      extraMemberInvite(input: $input) {\n        email\n        name\n      }\n    }\n  }\n":{kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"ExtraMemberInvite"}
12,variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"input"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ExtraMemberInviteInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"user"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"extraMemberInvite"},arguments:[{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"Variable",name:{kind:"Name",value:"input"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"email"}},{kind:"Field",name:{kind:"Name",value:"name"}}]}}]}}]}}]},"\n  mutation AcceptExtraMemberInvite($input: ExtraMemberInviteInput!) {\n    user {\n      acceptExtraMemberInvite(input: $input)\n    }\n  }\n":{kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"AcceptExtraMemberInvite"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"input"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ExtraMemberInviteInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"user"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"acceptExtraMemberInvite"},arguments:[{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"Variable",name:{kind:"Name",value:"input"}}}]}]}}]}}]}};function i(e){return r[e]??{}}},26197:(e,t,n)=>{n.d(t,{H:()=>m});var r=n(33974),i=n(81812),a=n(65291),o=n(65352),s=n(30078),u=n.n(s),l=n(26045),c=n(96661),d=n(76856),f=n(12053);let p=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2?arguments[2]:void 0,r=n?.(),i=(0,d.KU)();if(i||(i=(e=>{let{cache:t,retryOptions:n,...r}=e??{},i=n??{retries:1};return(0,f.S$)()&&(i={retries:1}),(0,d.UU)({ssrMode:(0,f.S$)(),retryOptions:i,cache:t??new o.D,...r??{}})})(r)),t)try{let e=i.extract(),n=u()(t,e,{arrayMerge:(e,t)=>[...t,...e.filter(e=>t.every(t=>!(0,l.A)(e,t)))]});i.cache.restore(n)}catch(e){(0,c.o)({error:e instanceof Error?e:Error(String(e)),event:{action:a.pi.ErrorCacheHydration}})}return(0,f.S$)()||(0,d.ig)(i),i};function m(e,t){let{graphql:n}=(0,r.zj)();return p((0,i.Z)("sas",n?.pathname)??"",e[a.kG],t)}},29366:(e,t,n)=>{n.d(t,{A:()=>s,V:()=>u});var r=n(88537),i=n(87182),a=new WeakSet;function o(e){!(e.size<=(e.max||-1))&&(a.has(e)||(a.add(e),setTimeout(function(){e.clean(),a.delete(e)},100)))}var s=function(e,t){var n=new r.l(e,t);return n.set=function(e,t){var n=r.l.prototype.set.call(this,e,t);return o(this),n},n},u=function(e,t){var n=new i.C(e,t);return n.set=function(e,t){var n=i.C.prototype.set.call(this,e,t);return o(this),n},n}},33682:(e,t,n)=>{n.d(t,{K$:()=>a,K4:()=>l,Mn:()=>s,uR:()=>o});var r=n(19043);n(83808);var i=n(80657),a=Symbol();function o(e){return!!e.extensions&&Array.isArray(e.extensions[a])}function s(e){return e.hasOwnProperty("graphQLErrors")}var u=function(e){var t=(0,r.fX)((0,r.fX)((0,r.fX)([],e.graphQLErrors,!0),e.clientErrors,!0),e.protocolErrors,!0);return e.networkError&&t.push(e.networkError),t.map(function(e){return(0,i.U)(e)&&e.message||"Error message not found."}).join("\n")},l=function(e){function t(n){var r=n.graphQLErrors,i=n.protocolErrors,a=n.clientErrors,o=n.networkError,s=n.errorMessage,l=n.extraInfo,c=e.call(this,s)||this;return c.name="ApolloError",c.graphQLErrors=r||[],c.protocolErrors=i||[],c.clientErrors=a||[],c.networkError=o||null,c.message=s||u(c),c.extraInfo=l,c.__proto__=t.prototype,c}return(0,r.C6)(t,e),t}(Error)},36825:(e,t,n)=>{n.d(t,{CF:()=>i,Cc:()=>d,_6:()=>r,hs:()=>c,iH:()=>s,uC:()=>o,uH:()=>l,xS:()=>f,xZ:()=>u,yz:()=>a});let r={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"Bootstrap"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"section"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"labels"},arguments:[{kind:"Argument",name:{kind:"Name",value:"sections"}
12,value:{kind:"ListValue",values:[{kind:"Variable",name:{kind:"Name",value:"section"}}]}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"dictionary"}}]}},{kind:"Field",name:{kind:"Name",value:"internationalisation"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"languages"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"DefaultLanguage"}}]}},{kind:"Field",name:{kind:"Name",value:"audio"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"DefaultLanguage"}}]}},{kind:"Field",name:{kind:"Name",value:"subtitles"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"DefaultLanguage"}}]}}]}},{kind:"Field",name:{kind:"Name",value:"remoteFeatureFlags"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"value"}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"DefaultLanguage"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Languages"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"defaultLanguage"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"code"}}]}}]}}]},i={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"fetchBrazeInitialisationId"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"user"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"profile"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"brazeInitialisationId"}}]}}]}}]}}]},a={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetCountries"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"internationalisation"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"countries"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"code"}},{kind:"Field",name:{kind:"Name",value:"diallingCode"}},{kind:"Field",name:{kind:"Name",value:"default"}},{kind:"Field",name:{kind:"Name",value:"images"},arguments:[{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"ObjectValue",fields:[{kind:"ObjectField",name:{kind:"Name",value:"imageFormats"},value:{kind:"ListValue",values:[{kind:"EnumValue",value:"PNG"}]}}]}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"url"}}]}}]}}]}}]}}]},o={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"FetchMenuPublic"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"menuType"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}
12,{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"includeSecondaryMenu"}},type:{kind:"NamedType",name:{kind:"Name",value:"Boolean"}},defaultValue:{kind:"BooleanValue",value:!0}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"menu"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"secondaryNavigation"},arguments:[{kind:"Argument",name:{kind:"Name",value:"menuType"},value:{kind:"Variable",name:{kind:"Name",value:"menuType"}}}],directives:[{kind:"Directive",name:{kind:"Name",value:"include"},arguments:[{kind:"Argument",name:{kind:"Name",value:"if"},value:{kind:"Variable",name:{kind:"Name",value:"includeSecondaryMenu"}}}]}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"alias"}},{kind:"Field",name:{kind:"Name",value:"ariaLabel"}},{kind:"Field",name:{kind:"Name",value:"relationships"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"NavAttributes"}},{kind:"Field",name:{kind:"Name",value:"relationships"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"NavAttributes"}}]}}]}}]}},{kind:"Field",name:{kind:"Name",value:"footerMenu"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"alias"}},{kind:"Field",name:{kind:"Name",value:"relationships"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"FooterAttributes"}},{kind:"Field",name:{kind:"Name",value:"expandableContent"}}]}}]}},{kind:"Field",name:{kind:"Name",value:"socialMenu"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"alias"}},{kind:"Field",name:{kind:"Name",value:"relationships"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"FooterAttributes"}}]}}]}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"NavAttributes"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"NavItem"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"type"}},{kind:"Field",name:{kind:"Name",value:"alias"}},{kind:"Field",name:{kind:"Name",value:"ariaLabel"}},{kind:"Field",name:{kind:"Name",value:"displayOption"}},{kind:"Field",name:{kind:"Name",value:"sectionNavigation"}},{kind:"Field",name:{kind:"Name",value:"title"}},{kind:"Field",name:{kind:"Name",value:"uri"}},{kind:"Field",name:{kind:"Name",value:"property"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"key"}},{kind:"Field",name:{kind:"Name",value:"value"}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"FooterAttributes"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"FooterMenuItem"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"alias"}},{kind:"Field",name:{kind:"Name",value:"href"}},{kind:"Field",name:{kind:"Name",value:"title"}},{kind:"Field",name:{kind:"Name",value:"displayOption"}},{kind:"Field",alias:{kind:"Name",value:"url"},name:{kind:"Name",value:"imageUrl"}}]}}]},s={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"FetchMenuPrivate"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"menuType"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}
12,{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"currentPersonaId"}},type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"menu"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"secondaryNavigation"},arguments:[{kind:"Argument",name:{kind:"Name",value:"menuType"},value:{kind:"Variable",name:{kind:"Name",value:"menuType"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"persona"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"orderedPersonas"},arguments:[{kind:"Argument",name:{kind:"Name",value:"currentPersonaId"},value:{kind:"Variable",name:{kind:"Name",value:"currentPersonaId"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"type"}},{kind:"Field",name:{kind:"Name",value:"displayName"}},{kind:"Field",name:{kind:"Name",value:"avatar"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"greyBackground"},arguments:[{kind:"Argument",name:{kind:"Name",value:"width"},value:{kind:"IntValue",value:"50"}},{kind:"Argument",name:{kind:"Name",value:"height"},value:{kind:"IntValue",value:"50"}}]},{kind:"Field",name:{kind:"Name",value:"colouredBackground"},arguments:[{kind:"Argument",name:{kind:"Name",value:"width"},value:{kind:"IntValue",value:"50"}},{kind:"Argument",name:{kind:"Name",value:"height"},value:{kind:"IntValue",value:"50"}}]}]}}]}}]}}]}}]}}]}}]},u={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetSkyIdFlex"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"input"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"GetSkyIdFlexInput"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"idFlex"},arguments:[{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"Variable",name:{kind:"Name",value:"input"}}}],directives:[{kind:"Directive",name:{kind:"Name",value:"rest"},arguments:[{kind:"Argument",name:{kind:"Name",value:"endpoint"},value:{kind:"StringValue",value:"getSkyIdFlex",block:!1}},{kind:"Argument",name:{kind:"Name",value:"type"},value:{kind:"StringValue",value:"SkyIdFlexResponse",block:!1}},{kind:"Argument",name:{kind:"Name",value:"path"},value:{kind:"StringValue",value:"",block:!1}},{kind:"Argument",name:{kind:"Name",value:"method"},value:{kind:"StringValue",value:"POST",block:!1}}]}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"type"}},{kind:"Field",name:{kind:"Name",value:"data"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"token"}},{kind:"Field",name:{kind:"Name",value:"hometerritory"}}]}}]}}]}}]},l={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"SubmitSignIn"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"input"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"SignInFormValues"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"submitSignInFormResponse"},arguments:[{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"Variable",name:{kind:"Name",value:"input"}}}],directives:[{kind:"Directive",name:{kind:"Name",value:"rest"},arguments:[{kind:"Argument",name:{kind:"Name",value:"endpoint"},value:{kind:"StringValue",value:"signInSubmit",block:!1}},{kind:"Argument",name:{kind:"Name",value:"type"},value:{kind:"StringValue",value:"RangoSchema",block:!1}},{kind:"Argument",name:{kind:"Name",value:"path"},value:{kind:"StringValue",value:"",block:!1}},{kind:"Argument",name:{kind:"Name",value:"method"},value:{kind:"StringValue",value:"POST",block:!1}}]}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"class"}},{kind:"Field",name:{kind:"Name",value:"entities"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"class"}},{kind:"Field",name:{kind:"Name",value:"entities"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"properties"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"type"}},{kind:"Field",name:{kind:"Name",value:"target"}},{kind:"Field",name:{kind:"Name",value:"label"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"code"}},{kind:"Field",name:{kind:"Name",value:"message"}}]}},{kind:"Field",name:{kind:"Name",value:"actionsubmit"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"code"}},{kind:"Field",name:{kind:"Name",value:"message"}}]}},{kind:"Field",name:{kind:"Name",value:"help"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"code"}},{kind:"Field",name:{kind:"Name",value:"message"}}]}},{kind:"Field",name:{kind:"Name",value:"validation"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"type"}},{kind:"Field",name:{kind:"Name",value:"rules"},selectionSet:{kind:"SelectionSet",selections:[{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"RuleString"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"valueString"},name:{kind:"Name",value:"value"}},{kind:"Field",name:{kind:"Name",value:"code"}},{kind:"Field",name:{kind:"Name",value:"message"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"RuleBoolean"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"valueBool"},name:{kind:"Name",value:"value"}},{kind:"Field",name:{kind:"Name",value:"code"}},{kind:"Field",name:{kind:"Name",value:"message"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"RuleInt"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"valueInt"},name:{kind:"Name",value:"value"}},{kind:"Field",name:{kind:"Name",value:"code"}},{kind:"Field",name:{kind:"Name",value:"message"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"RuleRegex"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"valueRegex"},name:{kind:"Name",value:"value"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"field"}},{kind:"Field",name:{kind:"Name",value:"match"}}]}},{kind:"Field",name:{kind:"Name",value:"code"}},{kind:"Field",name:{kind:"Name",value:"message"}}]}}]}},{kind:"Field",name:{kind:"Name",value:"businessrules"}},{kind:"Field",name:{kind:"Name",value:"category"}}]}}]}}]}},{kind:"Field",name:{kind:"Name",value:"actions"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"href"}},{kind:"Field",name:{kind:"Name",value:"method"}},{kind:"Field",name:{kind:"Name",value:"type"}},{kind:"Field",name:{kind:"Name",value:"fields"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"value"}},{kind:"Field",name:{kind:"Name",value:"type"}}]}}]}}]}},{kind:"Field",name:{kind:"Name",value:"links"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"rel"}},{kind:"Field",name:{kind:"Name",value:"href"}}]}},{kind:"Field",name:{kind:"Name",value:"actions"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"href"}},{kind:"Field",name:{kind:"Name",value:"method"}},{kind:"Field",name:{kind:"Name",value:"type"}},{kind:"Field",name:{kind:"Name",value:"fields"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"value"}},{kind:"Field",name:{kind:"Name",value:"type"}}]}}]}},{kind:"Field",name:{kind:"Name",value:"properties"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"errors"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"fieldErrors"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"target"}},{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"code"}}]}},{kind:"Field",name:{kind:"Name",value:"categoryErrors"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"target"}},{kind:"Field",name:{kind:"Name",value:"message"}},{kind:"Field",name:{kind:"Name",value:"code"}}]}}]}}]}}]}}]}}]},c={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetSignInSuccess"}
12,variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"shouldFetchPaymentAccount"}},type:{kind:"NamedType",name:{kind:"Name",value:"Boolean"}},defaultValue:{kind:"BooleanValue",value:!1}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"shouldFetchViewingControls"}},type:{kind:"NamedType",name:{kind:"Name",value:"Boolean"}},defaultValue:{kind:"BooleanValue",value:!1}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"shouldFetchFullProfile"}},type:{kind:"NamedType",name:{kind:"Name",value:"Boolean"}},defaultValue:{kind:"BooleanValue",value:!1}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"user"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"segmentation"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"account"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"}}]}},{kind:"Field",name:{kind:"Name",value:"entitlements"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"}},{kind:"Field",name:{kind:"Name",value:"state"}}]}}]}},{kind:"Field",name:{kind:"Name",value:"profile"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"tcsAccepted"}},{kind:"Field",name:{kind:"Name",value:"tcsAcceptedDate"}},{kind:"Field",name:{kind:"Name",value:"consentManagement"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"accessToken"}}]}},{kind:"Field",name:{kind:"Name",value:"hasPaymentDetails"}},{kind:"Field",name:{kind:"Name",value:"accountLanguage"}},{kind:"FragmentSpread",name:{kind:"Name",value:"FullProfileFields"},directives:[{kind:"Directive",name:{kind:"Name",value:"include"},arguments:[{kind:"Argument",name:{kind:"Name",value:"if"},value:{kind:"Variable",name:{kind:"Name",value:"shouldFetchFullProfile"}}
12}]}]}]}},{kind:"Field",name:{kind:"Name",value:"viewingControls"},directives:[{kind:"Directive",name:{kind:"Name",value:"include"},arguments:[{kind:"Argument",name:{kind:"Name",value:"if"},value:{kind:"Variable",name:{kind:"Name",value:"shouldFetchViewingControls"}}}]}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"lastModifiedDate"}},{kind:"Field",name:{kind:"Name",value:"rating"}}]}}]}},{kind:"Field",name:{kind:"Name",value:"payments"},directives:[{kind:"Directive",name:{kind:"Name",value:"include"},arguments:[{kind:"Argument",name:{kind:"Name",value:"if"},value:{kind:"Variable",name:{kind:"Name",value:"shouldFetchPaymentAccount"}}}]}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"paymentAccounts"},selectionSet:{kind:"SelectionSet",selections:[{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"BasePaymentAccount"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"defaultPaymentAccount"}},{kind:"Field",name:{kind:"Name",value:"paymentProvider"}}]}}]}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"FullProfileFields"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Profile"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"firstName"}},{kind:"Field",name:{kind:"Name",value:"lastName"}},{kind:"Field",name:{kind:"Name",value:"barclaycardProfileId"}},{kind:"Field",name:{kind:"Name",value:"elevatedSecurity"}},{kind:"Field",name:{kind:"Name",value:"email"}},{kind:"Field",name:{kind:"Name",value:"emailVerified"}},{kind:"Field",name:{kind:"Name",value:"isRegisteredToday"}},{kind:"Field",name:{kind:"Name",value:"isRestricted"}},{kind:"Field",name:{kind:"Name",value:"mobile"}}]}}]},d={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"GetUserProfile"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"shouldFetchViewingControls"}},type:{kind:"NamedType",name:{kind:"Name",value:"Boolean"}},defaultValue:{kind:"BooleanValue",value:!1}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"user"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"profile"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"firstName"}},{kind:"Field",name:{kind:"Name",value:"lastName"}},{kind:"Field",name:{kind:"Name",value:"barclaycardProfileId"}},{kind:"Field",name:{kind:"Name",value:"hasPaymentDetails"}},{kind:"Field",name:{kind:"Name",value:"elevatedSecurity"}},{kind:"Field",name:{kind:"Name",value:"email"}},{kind:"Field",name:{kind:"Name",value:"emailVerified"}},{kind:"Field",name:{kind:"Name",value:"isRegisteredToday"}},{kind:"Field",name:{kind:"Name",value:"isRestricted"}},{kind:"Field",name:{kind:"Name",value:"mobile"}},{kind:"Field",name:{kind:"Name",value:"accountLanguage"}},{kind:"Field",name:{kind:"Name",value:"consentManagement"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"accessToken"}}]}}]}},{kind:"Field",name:{kind:"Name",value:"viewingControls"},directives:[{kind:"Directive",name:{kind:"Name",value:"include"},arguments:[{kind:"Argument",name:{kind:"Name",value:"if"},value:{kind:"Variable",name:{kind:"Name",value:"shouldFetchViewingControls"}}}]}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"lastModifiedDate"}},{kind:"Field",name:{kind:"Name",value:"rating"}}]}}]}}]}}]},f={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"FetchImageWidget"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"slug"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"imageWidget"},arguments:[{kind:"Argument",name:{kind:"Name",value:"slug"},value:{kind:"Variable",name:{kind:"Name",value:"slug"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"ImageWidgetFragment"}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"ImageWidgetFragment"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ImageWidget"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"images"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"title"}},{kind:"Field",name:{kind:"Name",value:"shortDescription"}},{kind:"Field",name:{kind:"Name",value:"imageId"}},{kind:"Field",name:{kind:"Name",value:"imageUrl"}},{kind:"Field",name:{kind:"Name",value:"aspectRatio"}}]}}]}}]}},37535:(e,t,n)=>{n.d(t,{A_:()=>u,D$:()=>function e(t,n,r){for(var i,o=0,s=n.selections;o<s.length;o++){var u=s[o];if(y(u)){if("__typename"===u.name.value)return t[v(u)]}else i?i.push(u):i=[u]}if("string"==typeof t.__typename)return t.__typename;if(i)for(var l=0,c=i;l<c.length;l++){var u=c[l],d=e(t,(0,a.HQ)(u,r).selectionSet,r);if("string"==typeof d)return d}},Ii:()=>d,J:()=>c,Kc:()=>l,MB:()=>h,WU:()=>s,dt:()=>y,kd:()=>k,o5:()=>m,ue:()=>v});var r=n(83808),i=n(80657),a=n(43038),o=n(9992);function s(e){return{__ref:String(e)}}function u(e){return!!(e&&"object"==typeof e&&"string"==typeof e.__ref)}function l(e){return(0,i.U)(e)&&"Document"===e.kind&&Array.isArray(e.definitions)}function c(e,t,n,i){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 a={};n.fields.map(function(e){return c(a,e.name,e.value,i)}),e[t.value]=a}
12else if("Variable"===n.kind){var o=(i||{})[n.name.value];e[t.value]=o}else if("ListValue"===n.kind)e[t.value]=n.values.map(function(e){var n={};return c(n,t,e,i),n[t.value]});else if("EnumValue"===n.kind)e[t.value]=n.value;else if("NullValue"===n.kind)e[t.value]=null;else throw(0,r.vA)(83,t.value,n.kind)}function d(e,t){var n=null;e.directives&&(n={},e.directives.forEach(function(e){n[e.name.value]={},e.arguments&&e.arguments.forEach(function(r){var i=r.name,a=r.value;return c(n[e.name.value],i,a,t)})}));var r=null;return e.arguments&&e.arguments.length&&(r={},e.arguments.forEach(function(e){var n=e.name,i=e.value;return c(r,n,i,t)})),m(e.name.value,r,n)}var f=["connection","include","skip","client","rest","export","nonreactive"],p=o.M,m=Object.assign(function(e,t,n){if(t&&n&&n.connection&&n.connection.key)if(!n.connection.filter||!(n.connection.filter.length>0))return n.connection.key;else{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(p(i),")")}var a=e;if(t){var o=p(t);a+="(".concat(o,")")}return n&&Object.keys(n).forEach(function(e){-1===f.indexOf(e)&&(n[e]&&Object.keys(n[e]).length?a+="@".concat(e,"(").concat(p(n[e]),")"):a+="@".concat(e))}),a},{setStringify:function(e){var t=p;return p=e,t}});function h(e,t){if(e.arguments&&e.arguments.length){var n={};return e.arguments.forEach(function(e){return c(n,e.name,e.value,t)}),n}return null}function v(e){return e.alias?e.alias.value:e.name.value}function y(e){return"Field"===e.kind}function k(e){return"InlineFragment"===e.kind}},43038:(e,t,n)=>{n.d(t,{HQ:()=>s,JG:()=>o,ct:()=>a});var r=n(19043),i=n(83808);function a(e,t){var n=t,a=[];return e.definitions.forEach(function(e){if("OperationDefinition"===e.kind)throw(0,i.vA)(72,e.operation,e.name?" named '".concat(e.name.value,"'"):"");"FragmentDefinition"===e.kind&&a.push(e)}),void 0===n&&((0,i.V1)(1===a.length,73,a.length),n=a[0].name.value),(0,r.Cl)((0,r.Cl)({},e),{definitions:(0,r.fX)([{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:n}}]}}],e.definitions,!0)})}function o(e){void 0===e&&(e=[]);var t={};return e.forEach(function(e){t[e.name.value]=e}),t}function s(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(0,i.V1)(r,74,n),r||null;default:return null}}},47207:(e,t,n)=>{n.d(t,{v:()=>i});var r=new Map;function i(e){var t=r.get(e)||1;return r.set(e,t+1),"".concat(e,":").concat(t,":").concat(Math.random().toString(36).slice(2))}},48477:(e,t,n)=>{n.d(t,{i:()=>a,q:()=>i});var r=n(22148);let i=(0,r.J)(`
13  query ExtraMemberInvite($input: ExtraMemberInviteInput!) {
14    user {
15      extraMemberInvite(input: $input) {
16        email
17        name
18      }
19    }
20  }
21`),a=(0,r.J)(`
22  mutation AcceptExtraMemberInvite($input: ExtraMemberInviteInput!) {
23    user {
24      acceptExtraMemberInvite(input: $input)
25    }
26  }
27`)}
27,49254:(e,t,n)=>{function r(e){return 9===e||32===e}n.d(t,{y:()=>u});let i=/[\x00-\x1f\x22\x5c\x7f-\x9f]/g;function a(e){return o[e.charCodeAt(0)]}let o=["\\u0000","\\u0001","\\u0002","\\u0003","\\u0004","\\u0005","\\u0006","\\u0007","\\b","\\t","\\n","\\u000B","\\f","\\r","\\u000E","\\u000F","\\u0010","\\u0011","\\u0012","\\u0013","\\u0014","\\u0015","\\u0016","\\u0017","\\u0018","\\u0019","\\u001A","\\u001B","\\u001C","\\u001D","\\u001E","\\u001F","","",'\\"',"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\\\","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","\\u007F","\\u0080","\\u0081","\\u0082","\\u0083","\\u0084","\\u0085","\\u0086","\\u0087","\\u0088","\\u0089","\\u008A","\\u008B","\\u008C","\\u008D","\\u008E","\\u008F","\\u0090","\\u0091","\\u0092","\\u0093","\\u0094","\\u0095","\\u0096","\\u0097","\\u0098","\\u0099","\\u009A","\\u009B","\\u009C","\\u009D","\\u009E","\\u009F"];var s=n(60611);function u(e){return(0,s.YR)(e,l)}let l={Name:{leave:e=>e.value},Variable:{leave:e=>"$"+e.name},Document:{leave:e=>c(e.definitions,"\n\n")},OperationDefinition:{leave(e){let t=f("(",c(e.variableDefinitions,", "),")"),n=c([e.operation,c([e.name,t]),c(e.directives," ")]," ");return("query"===n?"":n+" ")+e.selectionSet}},VariableDefinition:{leave:({variable:e,type:t,defaultValue:n,directives:r})=>e+": "+t+f(" = ",n)+f(" ",c(r," "))},SelectionSet:{leave:({selections:e})=>d(e)},Field:{leave({alias:e,name:t,arguments:n,directives:r,selectionSet:i}){let a=f("",e,": ")+t,o=a+f("(",c(n,", "),")");return o.length>80&&(o=a+f("(\n",p(c(n,"\n")),"\n)")),c([o,c(r," "),i]," ")}},Argument:{leave:({name:e,value:t})=>e+": "+t},FragmentSpread:{leave:({name:e,directives:t})=>"..."+e+f(" ",c(t," "))},InlineFragment:{leave:({typeCondition:e,directives:t,selectionSet:n})=>c(["...",f("on ",e),c(t," "),n]," ")},FragmentDefinition:{leave:({name:e,typeCondition:t,variableDefinitions:n,directives:r,selectionSet:i})=>`fragment ${e}${f("(",c(n,", "),")")} on ${t} ${f("",c(r," ")," ")}`+i},IntValue:{leave:({value:e})=>e},FloatValue:{leave:({value:e})=>e},StringValue:{leave:({value:e,block:t})=>{let n,o,s,u,l,c,d,f,p,m,h;return t?(s=1===(o=(n=e.replace(/"""/g,'\\"""')).split(/\r\n|[\n\r]/g)).length,u=o.length>1&&o.slice(1).every(e=>0===e.length||r(e.charCodeAt(0))),l=n.endsWith('\\"""'),c=e.endsWith('"')&&!l,d=e.endsWith("\\"),f=c||d,p=!s||e.length>70||f||u||l,m="",h=s&&r(e.charCodeAt(0)),(p&&!h||u)&&(m+="\n"),m+=n,(p||f)&&(m+="\n"),'"""'+m+'"""'):`"${e.replace(i,a)}"`}},BooleanValue:{leave:({value:e})=>e?"true":"false"},NullValue:{leave:()=>"null"},EnumValue:{leave:({value:e})=>e},ListValue:{leave:({values:e})=>"["+c(e,", ")+"]"},ObjectValue:{leave:({fields:e})=>"{"+c(e,", ")+"}"},ObjectField:{leave:({name:e,value:t})=>e+": "+t},Directive:{leave:({name:e,arguments:t})=>"@"+e+f("(",c(t,", "),")")},NamedType:{leave:({name:e})=>e},ListType:{leave:({type:e})=>"["+e+"]"},NonNullType:{leave:({type:e})=>e+"!"},SchemaDefinition:{leave:({description:e,directives:t,operationTypes:n})=>f("",e,"\n")+c(["schema",c(t," "),d(n)]," ")},OperationTypeDefinition:{leave:({operation:e,type:t})=>e+": "+t},ScalarTypeDefinition:{leave:({description:e,name:t,directives:n})=>f("",e,"\n")+c(["scalar",t,c(n," ")]," ")},ObjectTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:r,fields:i})=>f("",e,"\n")+c(["type",t,f("implements ",c(n," & ")),c(r," "),d(i)]," ")},FieldDefinition:{leave:({description:e,name:t,arguments:n,type:r,directives:i})=>f("",e,"\n")+t+(m(n)?f("(\n",p(c(n,"\n")),"\n)"):f("(",c(n,", "),")"))+": "+r+f(" ",c(i," "))},InputValueDefinition:{leave:({description:e,name:t,type:n,defaultValue:r,directives:i})=>f("",e,"\n")+c([t+": "+n,f("= ",r),c(i," ")]," ")},InterfaceTypeDefinition:{leave:({description:e,name:t,interfaces:n,directives:r,fields:i})=>f("",e,"\n")+c(["interface",t,f("implements ",c(n," & ")),c(r," "),d(i)]," ")},UnionTypeDefinition:{leave:({description:e,name:t,directives:n,types:r})=>f("",e,"\n")+c(["union",t,c(n," "),f("= ",c(r," | "))]," ")},EnumTypeDefinition:{leave:({description:e,name:t,directives:n,values:r})=>f("",e,"\n")+c(["enum",t,c(n," "),d(r)]," ")},EnumValueDefinition:{leave:({description:e,name:t,directives:n})=>f("",e,"\n")+c([t,c(n," ")]," ")},InputObjectTypeDefinition:{leave:({description:e,name:t,directives:n,fields:r})=>f("",e,"\n")+c(["input",t,c(n," "),d(r)]," ")},DirectiveDefinition:{leave:({description:e,name:t,arguments:n,repeatable:r,locations:i})=>f("",e,"\n")+"directive @"+t+(m(n)?f("(\n",p(c(n,"\n")),"\n)"):f("(",c(n,", "),")"))+(r?" repeatable":"")+" on "+c(i," | ")},SchemaExtension:{leave:({directives:e,operationTypes:t})=>c(["extend schema",c(e," "),d(t)]," ")},ScalarTypeExtension:{leave:({name:e,directives:t})=>c(["extend scalar",e,c(t," ")]," ")},ObjectTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>c(["extend type",e,f("implements ",c(t," & ")),c(n," "),d(r)]," ")},InterfaceTypeExtension:{leave:({name:e,interfaces:t,directives:n,fields:r})=>c(["extend interface",e,f("implements ",c(t," & ")),c(n," "),d(r)]," ")},UnionTypeExtension:{leave:({name:e,directives:t,types:n})=>c(["extend union",e,c(t," "),f("= ",c(n," | "))]," ")},EnumTypeExtension:{leave:({name:e,directives:t,values:n})=>c(["extend enum",e,c(t," "),d(n)]," ")},InputObjectTypeExtension:{leave:({name:e,directives:t,fields:n})=>c(["extend input",e,c(t," "),d(n)]," ")}};function c(e,t=""){var n;return null!=(n=null==e?void 0:e.filter(e=>e).join(t))?n:""}function d(e){return f("{\n",p(c(e,"\n")),"\n}")}function f(e,t,n=""){return null!=t&&""!==t?e+t+n:""}function p(e){return f("  ",e.replace(/\n/g,"\n  "))}function m(e){var t;return null!=(t=null==e?void 0:e.some(e=>e.includes("\n")))&&t}},55217:(e,t,n)=>{n.d(t,{a:()=>l});var r=n(19043),i=n(5144),a=n(2585),o=n(43038),s=n(97391),u=n(37535);function l(e,t,n,l){var d=t.data,f=(0,r.Tt)(t,["data"]),p=n.data,m=(0,r.Tt)(n,["data"]);return(0,i.A)(f,m)&&function e(t,n,r,a){if(n===r)return!0;var l=new Set;return t.selections.every(function(t){if(l.has(t)||(l.add(t),!(0,s.MS)(t,a.variables)||c(t)))return!0;
27if((0,u.dt)(t)){var d=(0,u.ue)(t),f=n&&n[d],p=r&&r[d],m=t.selectionSet;if(!m)return(0,i.A)(f,p);var h=Array.isArray(f),v=Array.isArray(p);if(h!==v)return!1;if(h&&v){var y=f.length;if(p.length!==y)return!1;for(var k=0;k<y;++k)if(!e(m,f[k],p[k],a))return!1;return!0}return e(m,f,p,a)}var g=(0,o.HQ)(t,a.fragmentMap);if(g)return!!c(g)||e(g.selectionSet,n,r,a)})}((0,a.Vn)(e).selectionSet,d,p,{fragmentMap:(0,o.JG)((0,a.zK)(e)),variables:l})}function c(e){return!!e.directives&&e.directives.some(d)}function d(e){return"nonreactive"===e.name.value}},60611:(e,t,n)=>{n.d(t,{sP:()=>l,YR:()=>c});let r={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:[],FloatValue:[],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"]},i=new Set(Object.keys(r));function a(e){let t=null==e?void 0:e.kind;return"string"==typeof t&&i.has(t)}(o=s||(s={})).QUERY="query",o.MUTATION="mutation",o.SUBSCRIPTION="subscription";var o,s,u=n(94587);let l=Object.freeze({});function c(e,t,n=r){let i,o,s,d=new Map;for(let e of Object.values(u.b))d.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 f=Array.isArray(e),p=[e],m=-1,h=[],v=e,y=[],k=[];do{var g,b,S;let e,r=++m===p.length,u=r&&0!==h.length;if(r){if(o=0===k.length?void 0:y[y.length-1],v=s,s=k.pop(),u)if(f){v=v.slice();let e=0;for(let[t,n]of h){let r=t-e;null===n?(v.splice(r,1),e++):v[r]=n}}else for(let[e,t]of(v=Object.defineProperties({},Object.getOwnPropertyDescriptors(v)),h))v[e]=t;m=i.index,p=i.keys,h=i.edits,f=i.inArray,i=i.prev}else if(s){if(null==(v=s[o=f?m:p[m]]))continue;y.push(o)}if(!Array.isArray(v)){a(v)||function(e,t){if(!e)throw Error(t)}(!1,`Invalid AST Node: ${function e(t,n){switch(typeof t){case"string":return JSON.stringify(t);case"function":return t.name?`[function ${t.name}]`:"[function]";case"object":return function(t,n){let r;if(null===t)return"null";if(n.includes(t))return"[Circular]";let i=[...n,t];if("function"==typeof t.toJSON){let n=t.toJSON();if(n!==t)return"string"==typeof n?n:e(n,i)}else if(Array.isArray(t)){var a,o,s=t,u=i;if(0===s.length)return"[]";if(u.length>2)return"[Array]";let n=Math.min(10,s.length),r=s.length-n,l=[];for(let t=0;t<n;++t)l.push(e(s[t],u));return 1===r?l.push("... 1 more item"):r>1&&l.push(`... ${r} more items`),"["+l.join(", ")+"]"}return a=t,o=i,0===(r=Object.entries(a)).length?"{}":o.length>2?"["+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}(a)+"]":"{ "+r.map(([t,n])=>t+": "+e(n,o)).join(", ")+" }"}(t,n);default:return String(t)}}(v,[])}.`);let n=r?null==(g=d.get(v.kind))?void 0:g.leave:null==(b=d.get(v.kind))?void 0:b.enter;if((e=null==n?void 0:n.call(t,v,o,s,y,k))===l)break;if(!1===e){if(!r){y.pop();continue}}else if(void 0!==e&&(h.push([o,e]),!r))if(a(e))v=e;else{y.pop();continue}}void 0===e&&u&&h.push([o,v]),r?y.pop():(i={inArray:f,index:m,keys:p,edits:h,prev:i},p=(f=Array.isArray(v))?v:null!=(S=n[v.kind])?S:[],m=-1,h=[],s&&k.push(s),s=v)}while(void 0!==i);return 0!==h.length?h[h.length-1][1]:e}},62424:(e,t,n)=>{n.d(t,{G:()=>r});function r(e){return e}}
27,65352:(e,t,n)=>{n.d(t,{D:()=>eN});var r,i,a=n(19043),o=n(83808),s=n(97052),u=n(5144),l=n(43038),c=n(85629),d=n(12932),f=n(98495),p=n(88537),m=n(55217),h=function(){function e(){this.assumeImmutableResults=!1,this.getFragmentDoc=(0,s.LV)(l.ct,{max:c.v["cache.fragmentQueryDocuments"]||1e3,cache:p.l})}return e.prototype.batch=function(e){var t,n=this,r="string"==typeof e.optimistic?e.optimistic:!1===e.optimistic?null:void 0;return this.performTransaction(function(){return t=e.update(n)},r),t},e.prototype.recordOptimisticTransaction=function(e,t){this.performTransaction(e,t)},e.prototype.transformDocument=function(e){return e},e.prototype.transformForLink=function(e){return e},e.prototype.identify=function(e){},e.prototype.gc=function(){return[]},e.prototype.modify=function(e){return!1},e.prototype.readQuery=function(e,t){return void 0===t&&(t=!!e.optimistic),this.read((0,a.Cl)((0,a.Cl)({},e),{rootId:e.id||"ROOT_QUERY",optimistic:t}))},e.prototype.watchFragment=function(e){var t,n=this,r=e.fragment,i=e.fragmentName,o=e.from,s=e.optimistic,u=this.getFragmentDoc(r,i),l={returnPartialData:!0,id:"string"==typeof o?o:this.identify(o),query:u,optimistic:void 0===s||s};return new d.c(function(e){return n.watch((0,a.Cl)((0,a.Cl)({},l),{immediate:!0,callback:function(n){if(!(t&&(0,m.a)(u,{data:null==t?void 0:t.result},{data:n.result}))){var r={data:n.result,complete:!!n.complete};n.missing&&(r.missing=(0,f.IM)(n.missing.map(function(e){return e.missing}))),t=n,e.next(r)}}}))})},e.prototype.readFragment=function(e,t){return void 0===t&&(t=!!e.optimistic),this.read((0,a.Cl)((0,a.Cl)({},e),{query:this.getFragmentDoc(e.fragment,e.fragmentName),rootId:e.id,optimistic:t}))},e.prototype.writeQuery=function(e){var t=e.id,n=e.data,r=(0,a.Tt)(e,["id","data"]);return this.write(Object.assign(r,{dataId:t||"ROOT_QUERY",result:n}))},e.prototype.writeFragment=function(e){var t=e.id,n=e.data,r=e.fragment,i=e.fragmentName,o=(0,a.Tt)(e,["id","data","fragment","fragmentName"]);return this.write(Object.assign(o,{query:this.getFragmentDoc(r,i),dataId:t,result:n}))},e.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((0,a.Cl)((0,a.Cl)({},e),{data:i})),i)}})},e.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((0,a.Cl)((0,a.Cl)({},e),{data:i})),i)}})},e}(),v=function(e){function t(n,r,i,a){var o,s=e.call(this,n)||this;if(s.message=n,s.path=r,s.query=i,s.variables=a,Array.isArray(s.path)){s.missing=s.message;for(var u=s.path.length-1;u>=0;--u)(o={})[s.path[u]]=s.missing,s.missing=o}else s.missing=s.path;return s.__proto__=t.prototype,s}return(0,a.C6)(t,e),t}(Error),y=n(92228),k=n(65963),g=n(9992),b=n(79224),S=n(37535),N=n(94587),F=n(83458),O=n(87628),w=n(2585),C=n(97391),E=n(62424),T=n(13832),P=n(80657),I=n(81797),D=Object.prototype.hasOwnProperty;function R(e){return null==e}function x(e,t){var n=e.__typename,r=e.id,i=e._id;if("string"==typeof n&&(t&&(t.keyObject=R(r)?R(i)?void 0:{_id:i}:{id:r}),R(r)&&!R(i)&&(r=i),!R(r)))return"".concat(n,":").concat("number"==typeof r||"string"==typeof r?r:JSON.stringify(r))}var A={dataIdFromObject:x,addTypename:!0,resultCaching:!0,canonizeResults:!1};function q(e){var t=e.canonizeResults;return void 0===t?A.canonizeResults:t}var M=/^[_a-z][_0-9a-z]*/i;function _(e){var t=e.match(M);return t?t[0]:e}function V(e){return(0,P.U)(e)&&!(0,S.A_)(e)&&!(0,I.c)(e)}function j(e,t){var n=(0,l.JG)((0,w.zK)(e));return{fragmentMap:n,lookupFragment:function(e){var r=n[e];return!r&&t&&(r=t.lookup(e)),r||null}}}var Q=Object.create(null),L=function(){return Q},B=Object.create(null),U=function(){function e(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(0,E.G)((0,S.A_)(e)?n.get(e.__ref,t):e&&e[t])},this.canRead=function(e){return(0,S.A_)(e)?n.has(e.__ref):"object"==typeof e},this.toReference=function(e,t){if("string"==typeof e)return(0,S.WU)(e);if((0,S.A_)(e))return e;var r=n.policies.identify(e)[0];if(r){var i=(0,S.WU)(r);return t&&n.merge(r,e),i}}}return e.prototype.toObject=function(){return(0,a.Cl)({},this.data)},e.prototype.has=function(e){return void 0!==this.lookup(e,!0)},e.prototype.get=function(e,t){if(this.group.depend(e,t),D.call(this.data,e)){var n=this.data[e];if(n&&D.call(n,t))return n[t]}return"__typename"===t&&D.call(this.policies.rootTypenamesById,e)?this.policies.rootTypenamesById[e]:this instanceof $?this.parent.get(e,t):void 0},e.prototype.lookup=function(e,t){return(t&&this.group.depend(e,"__exists"),D.call(this.data,e))?this.data[e]:this instanceof $?this.parent.lookup(e,t):this.policies.rootTypenamesById[e]?Object.create(null):void 0},e.prototype.merge=function(e,t){var n,r=this;(0,S.A_)(e)&&(e=e.__ref),(0,S.A_)(t)&&(t=t.__ref);
27var i="string"==typeof e?this.lookup(n=e):e,a="string"==typeof t?this.lookup(n=t):t;if(a){(0,o.V1)("string"==typeof n,1);var s=new f.ZI(G).merge(i,a);if(this.data[n]=s,s!==i&&(delete this.refs[n],this.group.caching)){var u=Object.create(null);i||(u.__exists=1),Object.keys(a).forEach(function(e){if(!i||i[e]!==s[e]){u[e]=1;var t=_(e);t===e||r.policies.hasKeyArgs(s.__typename,t)||(u[t]=1),void 0!==s[e]||r instanceof $||delete s[e]}}),u.__typename&&!(i&&i.__typename)&&this.policies.rootTypenamesById[n]===s.__typename&&delete u.__typename,Object.keys(u).forEach(function(e){return r.group.dirty(n,e)})}}},e.prototype.modify=function(e,t){var n=this,r=this.lookup(e);if(r){var i=Object.create(null),o=!1,s=!0,u={DELETE:Q,INVALIDATE:B,isReference:S.A_,toReference:this.toReference,canRead:this.canRead,readField:function(t,r){return n.policies.readField("string"==typeof t?{fieldName:t,from:r||(0,S.WU)(e)}:t,{store:n})}};if(Object.keys(r).forEach(function(l){var c=_(l),d=r[l];if(void 0!==d){var f="function"==typeof t?t:t[l]||t[c];if(f){var p=f===L?Q:f((0,E.G)(d),(0,a.Cl)((0,a.Cl)({},u),{fieldName:c,storeFieldName:l,storage:n.getStorage(e,l)}));p===B?n.group.dirty(e,l):(p===Q&&(p=void 0),p!==d&&(i[l]=p,o=!0,d=p))}void 0!==d&&(s=!1)}}),o)return this.merge(e,i),s&&(this instanceof $?this.data[e]=void 0:delete this.data[e],this.group.dirty(e,"__exists")),!0}return!1},e.prototype.delete=function(e,t,n){var r,i=this.lookup(e);if(i){var a=this.getFieldValue(i,"__typename"),o=t&&n?this.policies.getStoreFieldName({typename:a,fieldName:t,args:n}):t;return this.modify(e,o?((r={})[o]=L,r):L)}return!1},e.prototype.evict=function(e,t){var n=!1;return e.id&&(D.call(this.data,e.id)&&(n=this.delete(e.id,e.fieldName,e.args)),this instanceof $&&this!==t&&(n=this.parent.evict(e,t)||n),(e.fieldName||n)&&this.group.dirty(e.id,e.fieldName||"__exists")),n},e.prototype.clear=function(){this.replace(null)},e.prototype.extract=function(){var e=this,t=this.toObject(),n=[];return this.getRootIdSet().forEach(function(t){D.call(e.policies.rootTypenamesById,t)||n.push(t)}),n.length&&(t.__META={extraRootIds:n.sort()}),t},e.prototype.replace=function(e){var t=this;if(Object.keys(this.data).forEach(function(n){e&&D.call(e,n)||t.delete(n)}),e){var n=e.__META,r=(0,a.Tt)(e,["__META"]);Object.keys(r).forEach(function(e){t.merge(e,r[e])}),n&&n.extraRootIds.forEach(this.retain,this)}},e.prototype.retain=function(e){return this.rootIds[e]=(this.rootIds[e]||0)+1},e.prototype.release=function(e){if(this.rootIds[e]>0){var t=--this.rootIds[e];return t||delete this.rootIds[e],t}return 0},e.prototype.getRootIdSet=function(e){return void 0===e&&(e=new Set),Object.keys(this.rootIds).forEach(e.add,e),this instanceof $?this.parent.getRootIdSet(e):Object.keys(this.policies.rootTypenamesById).forEach(e.add,e),e},e.prototype.gc=function(){var e=this,t=this.getRootIdSet(),n=this.toObject();t.forEach(function(r){D.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 $;)i=i.parent;r.forEach(function(e){return i.delete(e)})}return r},e.prototype.findChildRefIds=function(e){if(!D.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){(0,S.A_)(e)&&(t[e.__ref]=!0),(0,P.U)(e)&&Object.keys(e).forEach(function(t){var n=e[t];(0,P.U)(n)&&r.add(n)})})}return this.refs[e]},e.prototype.makeCacheKey=function(){return this.group.keyMaker.lookupArray(arguments)},e}(),W=function(){function e(e,t){void 0===t&&(t=null),this.caching=e,this.parent=t,this.d=null,this.resetCaching()}return e.prototype.resetCaching=function(){this.d=this.caching?(0,s.yN)():null,this.keyMaker=new T.b(F.et)}
27,e.prototype.depend=function(e,t){if(this.d){this.d(t+"#"+e);var n=_(t);n!==t&&this.d(n+"#"+e),this.parent&&this.parent.depend(e,t)}},e.prototype.dirty=function(e,t){this.d&&this.d.dirty(t+"#"+e,"__exists"===t?"forget":"setDirty")},e}();function z(e,t){Y(e)&&e.group.depend(t,"__exists")}i=function(e){function t(t){var n=t.policies,r=t.resultCaching,i=t.seed,a=e.call(this,n,new W(void 0===r||r))||this;return a.stump=new H(a),a.storageTrie=new T.b(F.et),i&&a.replace(i),a}return(0,a.C6)(t,e),t.prototype.addLayer=function(e,t){return this.stump.addLayer(e,t)},t.prototype.removeLayer=function(){return this},t.prototype.getStorage=function(){return this.storageTrie.lookupArray(arguments)},t}(r=U||(U={})),r.Root=i;var $=function(e){function t(t,n,r,i){var a=e.call(this,n.policies,i)||this;return a.id=t,a.parent=n,a.replay=r,a.group=i,r(a),a}return(0,a.C6)(t,e),t.prototype.addLayer=function(e,n){return new t(e,this,n,this.group)},t.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){(0,u.L)(r[n],i[n])||t.group.dirty(e,n)}
27):(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)},t.prototype.toObject=function(){return(0,a.Cl)((0,a.Cl)({},this.parent.toObject()),this.data)},t.prototype.findChildRefIds=function(t){var n=this.parent.findChildRefIds(t);return D.call(this.data,t)?(0,a.Cl)((0,a.Cl)({},n),e.prototype.findChildRefIds.call(this,t)):n},t.prototype.getStorage=function(){for(var e=this.parent;e.parent;)e=e.parent;return e.getStorage.apply(e,arguments)},t}(U),H=function(e){function t(t){return e.call(this,"EntityStore.Stump",t,function(){},new W(t.group.caching,t.group))||this}return(0,a.C6)(t,e),t.prototype.removeLayer=function(){return this},t.prototype.merge=function(e,t){return this.parent.merge(e,t)},t}($);function G(e,t,n){var r=e[n],i=t[n];return(0,u.L)(r,i)?r:i}function Y(e){return!!(e instanceof U&&e.group.caching)}var J=function(){function e(){this.known=new(F.En?WeakSet:Set),this.pool=new T.b(F.et),this.passes=new WeakMap,this.keysByJSON=new Map,this.empty=this.admit({})}return e.prototype.isKnown=function(e){return(0,P.U)(e)&&this.known.has(e)},e.prototype.pass=function(e){if((0,P.U)(e)){var t=(0,P.U)(e)?(0,I.c)(e)?e.slice(0):(0,a.Cl)({__proto__:Object.getPrototypeOf(e)},e):e;return this.passes.set(t,e),t}return e},e.prototype.admit=function(e){var t=this;if((0,P.U)(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),i.array;case null:case Object.prototype:if(this.known.has(e))break;var a=Object.getPrototypeOf(e),o=[a],s=this.sortedKeys(e);o.push(s.json);var u=o.length;s.sorted.forEach(function(n){o.push(t.admit(e[n]))});var i=this.pool.lookupArray(o);if(!i.object){var l=i.object=Object.create(a);this.known.add(l),s.sorted.forEach(function(e,t){l[e]=o[u+t]})}return i.object}}return e},e.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},e}();function K(e){return[e.selectionSet,e.objectOrReference,e.context,e.context.canonizeResults]}var X=function(){function e(e){var t=this;this.knownResults=new(F.et?WeakMap:Map),this.config=(0,O.o)(e,{addTypename:!1!==e.addTypename,canonizeResults:q(e)}),this.canon=e.canon||new J,this.executeSelectionSet=(0,s.LV)(function(e){var n,r=e.context.canonizeResults,i=K(e);i[3]=!r;var o=(n=t.executeSelectionSet).peek.apply(n,i);return o?r?(0,a.Cl)((0,a.Cl)({},o),{result:t.canon.admit(o.result)}):o:(z(e.context.store,e.enclosingRef.__ref),t.execSelectionSetImpl(e))},{max:this.config.resultCacheMaxSize||c.v["inMemoryCache.executeSelectionSet"]||5e4,keyArgs:K,makeCacheKey:function(e,t,n,r){if(Y(n.store))return n.store.makeCacheKey(e,(0,S.A_)(t)?t.__ref:t,n.varString,r)}}),this.executeSubSelectedArray=(0,s.LV)(function(e){return z(e.context.store,e.enclosingRef.__ref),t.execSubSelectedArrayImpl(e)},{max:this.config.resultCacheMaxSize||c.v["inMemoryCache.executeSubSelectedArray"]||1e4,makeCacheKey:function(e){var t=e.field,n=e.array,r=e.context;if(Y(r.store))return r.store.makeCacheKey(t,n,r.varString)}})}return e.prototype.resetCanon=function(){this.canon=new J},e.prototype.diffQueryAgainstStore=function(e){var t,n=e.store,r=e.query,i=e.rootId,o=e.variables,s=e.returnPartialData,u=e.canonizeResults,l=void 0===u?this.config.canonizeResults:u,c=this.config.cache.policies;o=(0,a.Cl)((0,a.Cl)({},(0,w.wY)((0,w.AT)(r))),o);var d=(0,S.WU)(void 0===i?"ROOT_QUERY":i),f=this.executeSelectionSet({selectionSet:(0,w.Vn)(r).selectionSet,objectOrReference:d,enclosingRef:d,context:(0,a.Cl)({store:n,query:r,policies:c,variables:o,varString:(0,g.M)(o),canonizeResults:l},j(r,this.config.fragments))});if(f.missing&&(t=[new v(function(e){try{JSON.stringify(e,function(e,t){if("string"==typeof t)throw t;return t})}catch(e){return e}}(f.missing),f.missing,r,o)],!(void 0===s||s)))throw t[0];return{result:f.result,complete:!t,missing:t}},e.prototype.isFresh=function(e,t,n,r){if(Y(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},e.prototype.execSelectionSetImpl=function(e){var t,n=this,r=e.selectionSet,i=e.objectOrReference,a=e.enclosingRef,s=e.context;if((0,S.A_)(i)&&!s.policies.rootTypenamesById[i.__ref]&&!s.store.has(i.__ref))return{result:this.canon.empty,missing:"Dangling reference to missing ".concat(i.__ref," object")};var u=s.variables,c=s.policies,d=s.store.getFieldValue(i,"__typename"),p=[],m=new f.ZI;function h(e,n){var r;return e.missing&&(t=m.merge(t,((r={})[n]=e.missing,r))),e.result}this.config.addTypename&&"string"==typeof d&&!c.rootIdsByTypename[d]&&p.push({__typename:d});var v=new Set(r.selections);v.forEach(function(e){var r,f;if((0,C.MS)(e,u))if((0,S.dt)(e)){var y=c.readField({fieldName:e.n
27ame.value,field:e,variables:s.variables,from:i},s),g=(0,S.ue)(e);void 0===y?k.XY.added(e)||(t=m.merge(t,((r={})[g]="Can't find field '".concat(e.name.value,"' on ").concat((0,S.A_)(i)?i.__ref+" object":"object "+JSON.stringify(i,null,2)),r))):(0,I.c)(y)?y.length>0&&(y=h(n.executeSubSelectedArray({field:e,array:y,enclosingRef:a,context:s}),g)):e.selectionSet?null!=y&&(y=h(n.executeSelectionSet({selectionSet:e.selectionSet,objectOrReference:y,enclosingRef:(0,S.A_)(y)?y:a,context:s}),g)):s.canonizeResults&&(y=n.canon.pass(y)),void 0!==y&&p.push(((f={})[g]=y,f))}else{var b=(0,l.HQ)(e,s.lookupFragment);if(!b&&e.kind===N.b.FRAGMENT_SPREAD)throw(0,o.vA)(9,e.name.value);b&&c.fragmentMatches(b,d)&&b.selectionSet.selections.forEach(v.add,v)}});var y={result:(0,f.IM)(p),missing:t},g=s.canonizeResults?this.canon.admit(y):(0,E.G)(y);return g.result&&this.knownResults.set(g.result,r),g},e.prototype.execSubSelectedArrayImpl=function(e){var t,n=this,r=e.field,i=e.array,a=e.enclosingRef,o=e.context,s=new f.ZI;function u(e,n){var r;return e.missing&&(t=s.merge(t,((r={})[n]=e.missing,r))),e.result}return r.selectionSet&&(i=i.filter(o.store.canRead)),i=i.map(function(e,t){return null===e?null:(0,I.c)(e)?u(n.executeSubSelectedArray({field:r,array:e,enclosingRef:a,context:o}),t):r.selectionSet?u(n.executeSelectionSet({selectionSet:r.selectionSet,objectOrReference:e,enclosingRef:(0,S.A_)(e)?e:a,context:o}),t):e}),{result:o.canonizeResults?this.canon.admit(i):i,missing:t}},e}(),Z=n(69663),ee=Object.create(null);function et(e){var t=JSON.stringify(e);return ee[t]||(ee[t]=Object.create(null))}function en(e){var t=et(e);return t.keyFieldsFn||(t.keyFieldsFn=function(t,n){var r=function(e,t){return n.readField(t,e)},i=n.keyObject=ei(e,function(e){var i=eo(n.storeObject,e,r);return void 0===i&&t!==n.storeObject&&D.call(t,e[0])&&(i=eo(t,e,ea)),(0,o.V1)(void 0!==i,4,e.join("."),t),i});return"".concat(n.typename,":").concat(JSON.stringify(i))})}function er(e){var t=et(e);return t.keyArgsFn||(t.keyArgsFn=function(t,n){var r=n.field,i=n.variables,a=n.fieldName,o=JSON.stringify(ei(e,function(e){var n=e[0],a=n.charAt(0);if("@"===a){if(r&&(0,I.E)(r.directives)){var o=n.slice(1),s=r.directives.find(function(e){return e.name.value===o}),u=s&&(0,S.MB)(s,i);return u&&eo(u,e.slice(1))}return}if("$"===a){var l=n.slice(1);if(i&&D.call(i,l)){var c=e.slice(0);return c[0]=l,eo(i,c)}return}if(t)return eo(t,e)}));return(t||"{}"!==o)&&(a+=":"+o),a})}function ei(e,t){var n=new f.ZI;return(function e(t){var n=et(t);if(!n.paths){var r=n.paths=[],i=[];t.forEach(function(n,a){(0,I.c)(n)?(e(n).forEach(function(e){return r.push(i.concat(e))}),i.length=0):(i.push(n),(0,I.c)(t[a+1])||(r.push(i.slice(0)),i.length=0))})}return n.paths})(e).reduce(function(e,r){var i,a=t(r);if(void 0!==a){for(var o=r.length-1;o>=0;--o)(i={})[r[o]]=a,a=i;e=n.merge(e,a)}return e},Object.create(null))}function ea(e,t){return e[t]}function eo(e,t,n){return n=n||ea,function e(t){return(0,P.U)(t)?(0,I.c)(t)?t.map(e):ei(Object.keys(t).sort(),function(e){return eo(t,e)}):t}(t.reduce(function e(t,r){return(0,I.c)(t)?t.map(function(t){return e(t,r)}):t&&n(t,r)},e))}function es(e){return void 0!==e.args?e.args:e.field?(0,S.MB)(e.field,e.variables):null}var eu=function(){},el=function(e,t){return t.fieldName},ec=function(e,t,n){return(0,n.mergeObjects)(e,t)},ed=function(e,t){return t},ef=function(){function e(e){this.config=e,this.typePolicies=Object.create(null),this.toBeAdded=Object.create(null),this.supertypeMap=new Map,this.fuzzySubtypes=new Map,this.rootIdsByTypename=Object.create(null),this.rootTypenamesById=Object.create(null),this.usingPossibleTypes=!1,this.config=(0,a.Cl)({dataIdFromObject:x},e),this.cache=this.config.cache,this.setRootTypename("Query"),this.setRootTypename("Mutation"),this.setRootTypename("Subscription"),e.possibleTypes&&this.addPossibleTypes(e.possibleTypes),e.typePolicies&&this.addTypePolicies(e.typePolicies)}return e.prototype.identify=function(e,t){var n,r,i=this,o=t&&(t.typename||(null==(n=t.storeObject)?void 0:n.__typename))||e.__typename;if(o===this.rootTypenamesById.ROOT_QUERY)return["ROOT_QUERY"];for(var s=t&&t.storeObject||e,u=(0,a.Cl)((0,a.Cl)({},t),{typename:o,storeObject:s,readField:t&&t.readField||function(){var e=em(arguments,s);return i.readField(e,{store:i.cache.data,variables:e.variables})}}),l=o&&this.getTypePolicy(o),c=l&&l.keyFn||this.config.dataIdFromObject;c;){var d=c((0,a.Cl)((0,a.Cl)({},e),s),u);if((0,I.c)(d))c=en(d);else{r=d;break}}return r=r?String(r):void 0,u.keyObject?[r,u.keyObject]:[r]},e.prototype.addTypePolicies=function(e){var t=this;Object.keys(e).forEach(function(n){var r=e[n],i=r.queryType,o=r.mutationType,s=r.subscriptionType,u=(0,a.Tt)(r,["queryType","mutationType","subscriptionType"]);i&&t.setRootTypename("Query",n),o&&t.setRootTypename("Mutation",n),s&&t.setRootTypename("Subscription",n),D.call(t.toBeAdded,n)?t.toBeAdded[n].push(u):t.toBeAdded[n]=[u]})},e.prototype.updateTypePolicy=function(e,t){var n=this,r=this.getTypePolicy(e),i=t.keyFields,a=t.fields;function o(e,t){e.merge="function"==typeof t?t:!0===t?ec:!1===t?ed:e.merge}o(r,t.merge),r.keyFn=!1===i?eu:(0,I.c)(i)?en(i):"function"==typeof i?i:r.keyFn,a&&Object.keys(a).forEac
27h(function(t){var r=n.getFieldPolicy(e,t,!0),i=a[t];if("function"==typeof i)r.read=i;else{var s=i.keyArgs,u=i.read,l=i.merge;r.keyFn=!1===s?el:(0,I.c)(s)?er(s):"function"==typeof s?s:r.keyFn,"function"==typeof u&&(r.read=u),o(r,l)}r.read&&r.merge&&(r.keyFn=r.keyFn||el)})},e.prototype.setRootTypename=function(e,t){void 0===t&&(t=e);var n="ROOT_"+e.toUpperCase(),r=this.rootTypenamesById[n];t!==r&&((0,o.V1)(!r||r===e,5,e),r&&delete this.rootIdsByTypename[r],this.rootIdsByTypename[t]=n,this.rootTypenamesById[n]=t)},e.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(M);r&&r[0]===e||t.fuzzySubtypes.set(e,new RegExp(e))})})},e.prototype.getTypePolicy=function(e){var t=this;if(!D.call(this.typePolicies,e)){var n=this.typePolicies[e]=Object.create(null);n.fields=Object.create(null);var r=this.supertypeMap.get(e);!r&&this.fuzzySubtypes.size&&(r=this.getSupertypeSet(e,!0),this.fuzzySubtypes.forEach(function(n,i){if(n.test(e)){var a=t.supertypeMap.get(i);a&&a.forEach(function(e){return r.add(e)})}})),r&&r.size&&r.forEach(function(e){var r=t.getTypePolicy(e),i=r.fields;Object.assign(n,(0,a.Tt)(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]},e.prototype.getFieldPolicy=function(e,t,n){if(e){var r=this.getTypePolicy(e).fields;return r[t]||n&&(r[t]=Object.create(null))}},e.prototype.getSupertypeSet=function(e,t){var n=this.supertypeMap.get(e);return!n&&t&&this.supertypeMap.set(e,n=new Set),n},e.prototype.fragmentMatches=function(e,t,n,r){var i=this;if(!e.typeCondition)return!0;if(!t)return!1;var a=e.typeCondition.name.value;if(t===a)return!0;if(this.usingPossibleTypes&&this.supertypeMap.has(a))for(var o=this.getSupertypeSet(t,!0),s=[o],u=function(e){var t=i.getSupertypeSet(e,!1);t&&t.size&&0>s.indexOf(t)&&s.push(t)},l=!!(n&&this.fuzzySubtypes.size),c=!1,d=0;d<s.length;++d){var f=s[d];if(f.has(a))return o.has(a)||o.add(a),!0;f.forEach(u),l&&d===s.length-1&&function e(t,n,r){return!!(0,P.U)(n)&&((0,I.c)(n)?n.every(function(n){return e(t,n,r)}):t.selections.every(function(t){if((0,S.dt)(t)&&(0,C.MS)(t,r)){var i=(0,S.ue)(t);return D.call(n,i)&&(!t.selectionSet||e(t.selectionSet,n[i],r))}return!0}))}(e.selectionSet,n,r)&&(l=!1,this.fuzzySubtypes.forEach(function(e,n){var r=t.match(e);r&&r[0]===t&&u(n)}))}return!1},e.prototype.hasKeyArgs=function(e,t){var n=this.getFieldPolicy(e,t,!1);return!!(n&&n.keyFn)},e.prototype.getStoreFieldName=function(e){var t,n=e.typename,r=e.fieldName,i=this.getFieldPolicy(n,r,!1),a=i&&i.keyFn;if(a&&n)for(var o={typename:n,fieldName:r,field:e.field||null,variables:e.variables},s=es(e);a;){var u=a(s,o);if((0,I.c)(u))a=er(u);else{t=u||r;break}}return(void 0===t&&(t=e.field?(0,S.Ii)(e.field,e.variables):(0,S.o5)(r,es(e))),!1===t)?r:r===_(t)?t:r+":"+t},e.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),a=_(i),o=t.store.getFieldValue(n,i),s=this.getFieldPolicy(e.typename,a,!1),u=s&&s.read;if(u){var l=ep(this,n,e,t,t.store.getStorage((0,S.A_)(n)?n.__ref:n,i));return Z.bl.withValue(this.cache,u,[o,l])}return o}},e.prototype.getReadFunction=function(e,t){var n=this.getFieldPolicy(e,t,!1);return n&&n.read},e.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},e.prototype.runMergeFunction=function(e,t,n,r,i){var a=n.field,o=n.typename,s=n.merge;return s===ec?eh(r.store)(e,t):s===ed?t:(r.overwrite&&(e=void 0),s(e,t,ep(this,void 0,{typename:o,fieldName:a.name.value,field:a,variables:r.variables},r,i||Object.create(null))))},e}();function ep(e,t,n,r,i){var a=e.getStoreFieldName(n),o=_(a),s=n.variables||r.variables,u=r.store,l=u.toReference,c=u.canRead;return{args:es(n),field:n.field||null,fieldName:o,storeFieldName:a,variables:s,isReference:S.A_,toReference:l,storage:i,cache:e.cache,canRead:c,readField:function(){return e.readField(em(arguments,t,s),r)},mergeObjects:eh(r.store)}}function em(e,t,n){var r,i=e[0],o=e[1],s=e.length;return"string"==typeof i?r={fieldName:i,from:s>1?o:t}:(r=(0,a.Cl)({},i),D.call(r,"from")||(r.from=t)),void 0===r.variables&&(r.variables=n),r}function eh(e){return function(t,n){if((0,I.c)(t)||(0,I.c)(n))throw(0,o.vA)(8);if((0,P.U)(t)&&(0,P.U)(n)){var r=e.getFieldValue(t,"__typename"),i=e.getFieldValue(n,"__typename");if(r&&i&&r!==i)return n;if((0,S.A_)(t)&&V(n))return e.merge(t.__ref,n),t;if(V(t)&&(0,S.A_)(n))return e.merge(t,n.__ref),n;if(V(t)&&V(n))return(0,a.Cl)((0,a.Cl)({},t),n)}return n}}function ev(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:(0,a.Cl)((0,a.Cl)({},e),{clientOnly:t,deferred:n})),i}var ey=function(){function e(e,t,n){this.cache=e,this.reader=t,this.fragments=n}return e.prototype.writeToStore=function(e,t){var n=this,r=t.query,i=t.result,s=t.dataId,u=t.variables,l=t.overwrite,c=(0,w.Vu)(r),d=new f.ZI;u=(0,a.Cl)((0,a.Cl)({},(0,w.wY)(c)),u);var p=(0,a.Cl)((0,a.Cl)({store:e,written:Object.create(null),merge:function(e,t){return d.merge
27(e,t)},variables:u,varString:(0,g.M)(u)},j(r,this.fragments)),{overwrite:!!l,incomingById:new Map,clientOnly:!1,deferred:!1,flavors:new Map}),m=this.processSelectionSet({result:i||Object.create(null),dataId:s,selectionSet:c.selectionSet,mergeTree:{map:new Map},context:p});if(!(0,S.A_)(m))throw(0,o.vA)(11,i);return p.incomingById.forEach(function(t,r){var i=t.storeObject,a=t.mergeTree;t.fieldNodeSet;var o=(0,S.WU)(r);if(a&&a.map.size){var s=n.applyMerges(a,o,i,p);if((0,S.A_)(s))return;i=s}e.merge(r,i)}),e.retain(m.__ref),m},e.prototype.processSelectionSet=function(e){var t=this,n=e.dataId,r=e.result,i=e.selectionSet,o=e.context,s=e.mergeTree,u=this.cache.policies,l=Object.create(null),c=n&&u.rootTypenamesById[n]||(0,S.D$)(r,i,o.fragmentMap)||n&&o.store.get(n,"__typename");"string"==typeof c&&(l.__typename=c);var d=function(){var e=em(arguments,l,o.variables);if((0,S.A_)(e.from)){var t=o.incomingById.get(e.from.__ref);if(t){var n=u.readField((0,a.Cl)((0,a.Cl)({},e),{from:t.storeObject}),o);if(void 0!==n)return n}}return u.readField(e,o)},f=new Set;this.flattenFields(i,r,o,c).forEach(function(e,n){var i,a=r[(0,S.ue)(n)];if(f.add(n),void 0!==a){var o=u.getStoreFieldName({typename:c,fieldName:n.name.value,field:n,variables:e.variables}),p=eg(s,o),m=t.processFieldValue(a,n,n.selectionSet?ev(e,!1,!1):e,p),h=void 0;n.selectionSet&&((0,S.A_)(m)||V(m))&&(h=d("__typename",m));var v=u.getMergeFunction(c,n.name.value,h);v?p.info={field:n,typename:c,merge:v}:eS(s,o),l=e.merge(l,((i={})[o]=m,i))}});try{var p=u.identify(r,{typename:c,selectionSet:i,fragmentMap:o.fragmentMap,storeObject:l,readField:d}),m=p[0],h=p[1];n=n||m,h&&(l=o.merge(l,h))}catch(e){if(!n)throw e}if("string"==typeof n){var v=(0,S.WU)(n),y=o.written[n]||(o.written[n]=[]);if(y.indexOf(i)>=0||(y.push(i),this.reader&&this.reader.isFresh(r,v,i,o)))return v;var k=o.incomingById.get(n);return k?(k.storeObject=o.merge(k.storeObject,l),k.mergeTree=function e(t,n){if(t===n||!n||eb(n))return t;if(!t||eb(t))return n;var r=t.info&&n.info?(0,a.Cl)((0,a.Cl)({},t.info),n.info):t.info||n.info,i=t.map.size&&n.map.size,o={info:r,map:i?new Map:t.map.size?t.map:n.map};if(i){var s=new Set(n.map.keys());t.map.forEach(function(t,r){o.map.set(r,e(t,n.map.get(r))),s.delete(r)}),s.forEach(function(r){o.map.set(r,e(n.map.get(r),t.map.get(r)))})}return o}(k.mergeTree,s),f.forEach(function(e){return k.fieldNodeSet.add(e)})):o.incomingById.set(n,{storeObject:l,mergeTree:eb(s)?void 0:s,fieldNodeSet:f}),v}return l},e.prototype.processFieldValue=function(e,t,n,r){var i=this;return t.selectionSet&&null!==e?(0,I.c)(e)?e.map(function(e,a){var o=i.processFieldValue(e,t,n,eg(r,a));return eS(r,a),o}):this.processSelectionSet({result:e,selectionSet:t.selectionSet,context:n,mergeTree:r}):e},e.prototype.flattenFields=function(e,t,n,r){void 0===r&&(r=(0,S.D$)(t,e,n.fragmentMap));var i=new Map,a=this.cache.policies,s=new T.b(!1);return!function e(u,c){var d=s.lookup(u,c.clientOnly,c.deferred);d.visited||(d.visited=!0,u.selections.forEach(function(s){if((0,C.MS)(s,n.variables)){var u=c.clientOnly,d=c.deferred;if(!(u&&d)&&(0,I.E)(s.directives)&&s.directives.forEach(function(e){var t=e.name.value;if("client"===t&&(u=!0),"defer"===t){var r=(0,S.MB)(e,n.variables);r&&!1===r.if||(d=!0)}}),(0,S.dt)(s)){var f=i.get(s);f&&(u=u&&f.clientOnly,d=d&&f.deferred),i.set(s,ev(n,u,d))}else{var p=(0,l.HQ)(s,n.lookupFragment);if(!p&&s.kind===N.b.FRAGMENT_SPREAD)throw(0,o.vA)(13,s.name.value);p&&a.fragmentMatches(p,r,t,n.variables)&&e(p.selectionSet,ev(n,u,d))}}}))}(e,n),i},e.prototype.applyMerges=function(e,t,n,r,i){var s=this;if(e.map.size&&!(0,S.A_)(n)){var u,l,c=!(0,I.c)(n)&&((0,S.A_)(t)||V(t))?t:void 0,d=n;c&&!i&&(i=[(0,S.A_)(c)?c.__ref:c]);var f=function(e,t){return(0,I.c)(e)?"number"==typeof t?e[t]:void 0:r.store.getFieldValue(e,String(t))};e.map.forEach(function(e,t){var n=f(c,t),a=f(d,t);if(void 0!==a){i&&i.push(t);var u=s.applyMerges(e,n,a,r,i);u!==a&&(l=l||new Map).set(t,u),i&&(0,o.V1)(i.pop()===t)}}),l&&(n=(0,I.c)(d)?d.slice(0):(0,a.Cl)({},d),l.forEach(function(e,t){n[t]=e}))}return e.info?this.cache.policies.runMergeFunction(t,n,e.info,r,i&&(u=r.store).getStorage.apply(u,i)):n},e}(),ek=[];function eg(e,t){var n=e.map;return n.has(t)||n.set(t,ek.pop()||{map:new Map}),n.get(t)}function eb(e){return!e||!(e.info||e.map.size)}function eS(e,t){var n=e.map,r=n.get(t);r&&eb(r)&&(ek.push(r),n.delete(t))}var eN=function(e){function t(t){void 0===t&&(t={});var n,r=e.call(this)||this;return r.watches=new Set,r.addTypenameTransform=new y.c(k.XY),r.assumeImmutableResults=!0,r.makeVar=Z.UT,r.txCount=0,n=t,r.config=(0,O.o)(A,n),r.addTypename=!!r.config.addTypename,r.policies=new ef({cache:r,dataIdFromObject:r.config.dataIdFromObject,possibleTypes:r.config.possibleTypes,typePolicies:r.config.typePolicies}),r.init(),r}return(0,a.C6)(t,e),t.prototype.init=function(){var e=this.data=new U.Root({policies:this.policies,resultCaching:this.config.resultCaching});this.optimisticData=e.stump,this.resetResultCache()},t.prototype.resetResultCache=function(e){var t=this,n=this.storeReader,r=this.config.fragments;this.storeWriter=new ey(this,this.storeReader=new X({cache:this,addTypename:this.addTypename,resultCacheMaxSize:this.config.resultCacheMaxSize,canonizeResults:q(this.config),canon:e?void 0:n&&n.canon,fragments:r}),r),this.maybeBroadcastWatch=(0,s.LV)(function(e,n){return t.broadcastWatch(e,n)},{max:this.config.resultCacheMaxSize||c.v["inMemoryCache.maybeBroadcastWatch"]||5e3,makeCacheKey:function(e){var n=e.optimistic?t.optimisticData:t.data;if(Y(n)){var r=e.optimistic,i=e.id,a=e.variables;return n.makeCacheKey(e.query,e.callback,(0,g.M)({optimistic:r,id:i,variables:a}))}}}
27),new Set([this.data.group,this.optimisticData.group]).forEach(function(e){return e.resetCaching()})},t.prototype.restore=function(e){return this.init(),e&&this.data.replace(e),this},t.prototype.extract=function(e){return void 0===e&&(e=!1),(e?this.optimisticData:this.data).extract()},t.prototype.read=function(e){var t=e.returnPartialData;try{return this.storeReader.diffQueryAgainstStore((0,a.Cl)((0,a.Cl)({},e),{store:e.optimistic?this.optimisticData:this.data,config:this.config,returnPartialData:void 0!==t&&t})).result||null}catch(e){if(e instanceof v)return null;throw e}},t.prototype.write=function(e){try{return++this.txCount,this.storeWriter.writeToStore(this.data,e)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},t.prototype.modify=function(e){if(D.call(e,"id")&&!e.id)return!1;var t=e.optimistic?this.optimisticData:this.data;try{return++this.txCount,t.modify(e.id||"ROOT_QUERY",e.fields)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},t.prototype.diff=function(e){return this.storeReader.diffQueryAgainstStore((0,a.Cl)((0,a.Cl)({},e),{store:e.optimistic?this.optimisticData:this.data,rootId:e.id||"ROOT_QUERY",config:this.config}))},t.prototype.watch=function(e){var t=this;return this.watches.size||(0,Z.MS)(this),this.watches.add(e),e.immediate&&this.maybeBroadcastWatch(e),function(){t.watches.delete(e)&&!t.watches.size&&(0,Z.WR)(t),t.maybeBroadcastWatch.forget(e)}},t.prototype.gc=function(e){g.M.reset(),b.y.reset(),this.addTypenameTransform.resetCache(),null==(t=this.config.fragments)||t.resetCaches();var t,n=this.optimisticData.gc();return e&&!this.txCount&&(e.resetResultCache?this.resetResultCache(e.resetResultIdentities):e.resetResultIdentities&&this.storeReader.resetCanon()),n},t.prototype.retain=function(e,t){return(t?this.optimisticData:this.data).retain(e)},t.prototype.release=function(e,t){return(t?this.optimisticData:this.data).release(e)},t.prototype.identify=function(e){if((0,S.A_)(e))return e.__ref;try{return this.policies.identify(e)[0]}catch(e){}},t.prototype.evict=function(e){if(!e.id){if(D.call(e,"id"))return!1;e=(0,a.Cl)((0,a.Cl)({},e),{id:"ROOT_QUERY"})}try{return++this.txCount,this.optimisticData.evict(e,this.data)}finally{--this.txCount||!1===e.broadcast||this.broadcastWatches()}},t.prototype.reset=function(e){var t=this;return this.init(),g.M.reset(),e&&e.discardWatches?(this.watches.forEach(function(e){return t.maybeBroadcastWatch.forget(e)}),this.watches.clear(),(0,Z.WR)(this)):this.broadcastWatches(),Promise.resolve()},t.prototype.removeOptimistic=function(e){var t=this.optimisticData.removeLayer(e);t!==this.optimisticData&&(this.optimisticData=t,this.broadcastWatches())},t.prototype.batch=function(e){var t,n=this,r=e.update,i=e.optimistic,o=void 0===i||i,s=e.removeOptimistic,u=e.onWatchUpdated,l=function(e){var i=n.data,a=n.optimisticData;++n.txCount,e&&(n.data=n.optimisticData=e);try{return t=r(n)}finally{--n.txCount,n.data=i,n.optimisticData=a}},c=new Set;return u&&!this.txCount&&this.broadcastWatches((0,a.Cl)((0,a.Cl)({},e),{onWatchUpdated:function(e){return c.add(e),!1}})),"string"==typeof o?this.optimisticData=this.optimisticData.addLayer(o,l):!1===o?l(this.data):l(),"string"==typeof s&&(this.optimisticData=this.optimisticData.removeLayer(s)),u&&c.size?(this.broadcastWatches((0,a.Cl)((0,a.Cl)({},e),{onWatchUpdated:function(e,t){var n=u.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},t.prototype.performTransaction=function(e,t){return this.batch({update:e,optimistic:t||null!==t})},t.prototype.transformDocument=function(e){return this.addTypenameToDocument(this.addFragmentsToDocument(e))},t.prototype.broadcastWatches=function(e){var t=this;this.txCount||this.watches.forEach(function(n){return t.maybeBroadcastWatch(n,e)})},t.prototype.addFragmentsToDocument=function(e){var t=this.config.fragments;return t?t.transform(e):e},t.prototype.addTypenameToDocument=function(e){return this.addTypename?this.addTypenameTransform.transformDocument(e):e},t.prototype.broadcastWatch=function(e,t){var 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&&(0,u.L)(n.result,r.result)||e.callback(e.lastDiff=r,n))},t}(h)},65963:(e,t,n)=>{n.d(t,{XY:()=>p,er:()=>h,iz:()=>f,zc:()=>m});var r=n(19043);n(83808);var i=n(94587),a=n(60611),o=n(2585),s=n(37535),u=n(43038),l=n(81797),c={kind:i.b.FIELD,name:{kind:i.b.NAME,value:"__typename"}};function d(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 f(e,t){(0,o.sw)(t);for(var n,s,c,f=d(""),p=d(""),m=function(e){for(var t=0,n=void 0;t<e.length&&(n=e[t]);++t)if(!(0,l.c)(n)){if(n.kind===i.b.OPERATION_DEFINITION)return f(n.name&&n.name.value);if(n.kind===i.b.FRAGMENT_DEFINITION)return p(n.name.value)}return null},h=0,v=t.definitions.length-1;v>=0;--v)t.definitions[v].kind===i.b.OPERATION_DEFINITION&&++h;var y=(n=new Map,s=new Map,e.forEach(function(e){e&&(e.name?n.set(e.name,e):e.test&&s.set(e.test,e))}),function(e){var t=n.get(e.name.value);
27return!t&&s.size&&s.forEach(function(n,r){r(e)&&(t=n)}),t}),k=function(e){return(0,l.E)(e)&&e.map(y).some(function(e){return e&&e.remove})},g=new Map,b=!1,S={enter:function(e){if(k(e.directives))return b=!0,null}},N=(0,a.YR)(t,{Field:S,InlineFragment:S,VariableDefinition:{enter:function(){return!1}},Variable:{enter:function(e,t,n,r,i){var a=m(i);a&&a.variables.add(e.name.value)}},FragmentSpread:{enter:function(e,t,n,r,i){if(k(e.directives))return b=!0,null;var a=m(i);a&&a.fragmentSpreads.add(e.name.value)}},FragmentDefinition:{enter:function(e,t,n,r){g.set(JSON.stringify(r),e)},leave:function(e,t,n,r){return e===g.get(JSON.stringify(r))?e:h>0&&e.selectionSet.selections.every(function(e){return e.kind===i.b.FIELD&&"__typename"===e.name.value})?(p(e.name.value).removed=!0,b=!0,null):void 0}},Directive:{leave:function(e){if(y(e))return b=!0,null}}});if(!b)return t;var F=function(e){return!e.transitiveVars&&(e.transitiveVars=new Set(e.variables),e.removed||e.fragmentSpreads.forEach(function(t){F(p(t)).transitiveVars.forEach(function(t){e.transitiveVars.add(t)})})),e},O=new Set;N.definitions.forEach(function(e){e.kind===i.b.OPERATION_DEFINITION?F(f(e.name&&e.name.value)).fragmentSpreads.forEach(function(e){O.add(e)}):e.kind!==i.b.FRAGMENT_DEFINITION||0!==h||p(e.name.value).removed||O.add(e.name.value)}),O.forEach(function(e){F(p(e)).fragmentSpreads.forEach(function(e){O.add(e)})});var w={enter:function(e){var t;if(t=e.name.value,!O.has(t)||p(t).removed)return null}};return c=(0,a.YR)(N,{FragmentSpread:w,FragmentDefinition:w,OperationDefinition:{leave:function(e){if(e.variableDefinitions){var t=F(f(e.name&&e.name.value)).transitiveVars;if(t.size<e.variableDefinitions.length)return(0,r.Cl)((0,r.Cl)({},e),{variableDefinitions:e.variableDefinitions.filter(function(e){return t.has(e.variable.name.value)})})}}}}),!function e(t,n){return!t||t.selectionSet.selections.every(function(t){return t.kind===i.b.FRAGMENT_SPREAD&&e(n[t.name.value],n)})}((0,o.Vu)(c)||(0,o.E4)(c),(0,u.JG)((0,o.zK)(c)))?c:null}var p=Object.assign(function(e){return(0,a.YR)(e,{SelectionSet:{enter:function(e,t,n){if(!n||n.kind!==i.b.OPERATION_DEFINITION){var a=e.selections;if(!(!a||a.some(function(e){return(0,s.dt)(e)&&("__typename"===e.name.value||0===e.name.value.lastIndexOf("__",0))}))&&!((0,s.dt)(n)&&n.directives&&n.directives.some(function(e){return"export"===e.name.value})))return(0,r.Cl)((0,r.Cl)({},e),{selections:(0,r.fX)((0,r.fX)([],a,!0),[c],!1)})}}}})},{added:function(e){return e===c}});function m(e){return"query"===(0,o.Vn)(e).operation?e:(0,a.YR)(e,{OperationDefinition:{enter:function(e){return(0,r.Cl)((0,r.Cl)({},e),{operation:"query"})}}})}function h(e){return(0,o.sw)(e),f([{test:function(e){return"client"===e.name.value},remove:!0}],e)}},67236:(e,t,n)=>{n.d(t,{S:()=>o});var r=n(19043),i=n(12932),a=n(8572);function o(e){return new a.C(function(t,n){return new i.c(function(r){var i,a,o;try{i=n(t).subscribe({next:function(i){if(i.errors&&(o=e({graphQLErrors:i.errors,response:i,operation:t,forward:n}))){a=o.subscribe({next:r.next.bind(r),error:r.error.bind(r),complete:r.complete.bind(r)});return}r.next(i)},error:function(i){if(o=e({operation:t,networkError:i,graphQLErrors:i&&i.result&&i.result.errors,forward:n})){a=o.subscribe({next:r.next.bind(r),error:r.error.bind(r),complete:r.complete.bind(r)});return}r.error(i)},complete:function(){o||r.complete.bind(r)()}})}catch(i){e({networkError:i,operation:t,forward:n}),r.error(i)}return function(){i&&i.unsubscribe(),a&&i.unsubscribe()}})})}var s=a.C;function u(e){var t=s.call(this)||this;return t.link=o(e),t}(0,r.C6)(u,s),u.prototype.request=function(e,t){return this.link.request(e,t)}},68660:(e,t,n)=>{n.d(t,{E:()=>c});var r=n(8572),i=n(85030),a=n(67016),o=n(69663),s=n(2305);let u=(0,o.UT)(null),l=e=>u(e),c=()=>(u((0,a.GF)()),(0,a.gr)().observe(s.HF,l),new r.C((e,t)=>{let n=e?.variables?.saveBasketReference??!0;return t(e).map(e=>{let t=function(e){let{basket:t,createOrUpdateBasket:n,createOrUpdateCheckoutBasket:r,checkoutBasket:a,submitOrder:o}=e;return[...t?.warnings??[],...n?.warnings??[],...a?.warnings??[],...r?.warnings??[],...o?.basket?.warnings??[]].map(e=>{let{code:t,message:n=t}=e;return new i.eO(n,{extensions:{code:t,errorCode:t,message:n}})})}(e?.data??{}),r=e?.extensions?.basketReference;return r&&n&&!t.length&&(0,a.sU)(r),t.length?{...e,errors:(e?.errors??[]).concat(t)}:e})}))}
27,69662:(e,t,n)=>{var r,i;function a(e){return!!e&&e<7}n.d(t,{bi:()=>a,pT:()=>r}),(i=r||(r={}))[i.loading=1]="loading",i[i.setVariables=2]="setVariables",i[i.fetchMore=3]="fetchMore",i[i.refetch=4]="refetch",i[i.poll=6]="poll",i[i.ready=7]="ready",i[i.error=8]="error"},71406:(e,t,n)=>{n.d(t,{Z:()=>C,A:()=>w});var r=n(33682),i=n(8572),a=n(12932),o=n(37535),s=n(43038),u=n(2585),l=n(65963),c=n(97391),d=n(86079);function f(e){return null!==e&&"object"==typeof e}function p(e,t){f(t)&&f(e)&&Object.keys(t).forEach(n=>{let r=t[n];Object.prototype.hasOwnProperty.call(e,n)?p(e[n],r):e[n]=r})}async function m(e,t,n){let{fragmentMap:r,contextValue:i,variableValues:a}=n,s={},u=async e=>{let u;if(!(0,c.MS)(e,a))return;if((0,o.dt)(e)){let r=await h(e,t,n),i=(0,o.ue)(e);void 0!==r&&(void 0===s[i]?s[i]=r:p(s[i],r));return}if((0,o.kd)(e))u=e;else if(!(u=r[e.name.value]))throw Error(`No fragment named ${e.name.value}`);let l=u.typeCondition.name.value;n.fragmentMatcher(t,l,i)&&p(s,await m(u.selectionSet,t,n))};return(await Promise.all(e.selections.map(u)),n.resultMapper)?n.resultMapper(s,t):s}async function h(e,t,n){let{variableValues:r,contextValue:i,resolver:a}=n,s=e.name.value,u=(0,o.MB)(e,r),l={isLeaf:!e.selectionSet,resultKey:(0,o.ue)(e),directives:function(e,t){if(e.directives?.length){let n={};return e.directives.forEach(e=>{n[e.name.value]=(0,o.MB)(e,t)}),n}return null}(e,r),field:e},c=await a(s,t,u,i,l);return e.selectionSet&&null!=c?Array.isArray(c)?function e(t,n,r){return Promise.all(n.map(n=>null===n?null:Array.isArray(n)?e(t,n,r):m(t.selectionSet,n,r)))}(e,c,n):m(e.selectionSet,c,n):c}let v=["GET","POST","PUT","PATCH","DELETE"],y={test:e=>"rest"===e.name.value,remove:!0};class k extends Error{response;result;statusCode;constructor(e,t,n){super(e),this.name="RestServerError",this.response=t,this.result=n,this.statusCode=t.status,Object.setPrototypeOf(this,k.prototype)}}function g(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)}let b=(e,t)=>{if(Array.isArray(e)){let n,r=(n=t.replace(/\s/g,"")).replace(/\[(.*)\]/,(e,t)=>(t?.length>0?t:null)||n);return e.map(e=>b(e,r))}return g(e)?{__typename:t,...e}:e},S=e=>e instanceof Headers?e:new Headers(e||{}),N=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.reduce((e,t)=>(t&&S(t).forEach((t,n)=>e.append(n,t)),e),new Headers)},F=async(e,t,n,r,i)=>{let a,u,l,c,{directives:f,resultKey:p}=i,m=g(t)?t:{},h=m[p],y=m[e];if(!f?.rest)return h||y;let{credentials:S,endpoints:N,headers:F,customFetch:O,operationType:w,mainDefinition:C,fragmentDefinitions:E,responseTransformer:T,pathBuilderCache:P}=r,I=(0,s.JG)(E),D=f.rest,{path:R,endpoint:x,type:A}=D,q=D.method??"GET",M=D.bodyKey??"input";if(null==R)throw Error('"path" must be set in the @rest() directive. This request had no path, please add one');let _="string"==typeof(c=N[(x??"")||""]||N[""])?{uri:c}:{responseTransformer:null,...c},V={args:n,context:r,"@rest":f.rest},j=(R.includes(":")?e=>{let{args:t}=e,n=Object.keys(t).reduce((e,n)=>e.replace(`:${n}`,String(t[n])),R);if(n.includes(":"))throw Error("Missing parameters to run query.");return n}:function(e,t){if(t.has(e))return t.get(e);let n=e.split(/({[._a-zA-Z0-9]*})/),r=e.indexOf("?"),i=[],a=!1;n.reduce((e,t)=>{if(""===t||"{}"===t)return e+t.length;let n=e+t.length;if(t.startsWith("{")&&t.endsWith("}")){let e=t.slice(1,-1).split(".");i.push((t,n)=>{try{let r=function e(t,n){if(0===n.length)return t;if(!g(t))return;let r=[...n];return e(t[r.shift()],r)}(t,e);return n&&"object"==typeof r&&null!==r?d.stringify(r):String(r)}catch{return""}})}else i.push(t),!a&&n>=r&&(a=!0,i.push(!0));return n},0);let o=e=>{let t=!1;return i.reduce((n,r)=>"string"==typeof r?n+r:"boolean"==typeof r?(t=!0,n):n+r(e,t),"")};return t.set(e,o),o}(R,P))(V);if(!["GET","DELETE"].includes(q)){let e=V.args?.[M];if(!e)throw Error(`GraphQL ${q} requires a body payload. Expected key \`${M}\`.`);let t=(F.has("content-type")||F.append("Content-Type","application/json"),{body:JSON.stringify(e),headers:F});a=t.body,u=new Headers(t.headers)}((e,t)=>{let n=e.toUpperCase();switch(t){case"query":if(v.includes(n))return;throw Error(`A "query" operation can only support "GET" requests but got "${e}".`);case"mutation":if(v.includes(n))return;throw Error('"mutation" operations do not support that HTTP-verb');case"subscription":throw Error('A "subscription" operation is not supported yet.')}})(q,w||"query");let Q={method:q,headers:u||F,body:a,...S?{credentials:S}:{}},L=`${_.uri}${j}`,B=O||fetch,U=await B(L,Q);if(r.responses.push(U),U.ok)l=204===U.status||"0"===U.headers.get("Content-Length")?{}:U;else if(404===U.status)l=null;else{let e;try{e=await U.clone().json()}catch{e=await U.clone().text()}throw new k(`Response not successful: Received status code ${U.status}`,U,e)}let W=_.responseTransformer||T;if(l instanceof Response)if(W)l=await W(l,A??"");else{let e=await l.text();l=e.trim()?JSON.parse(e):{}}return b(l=function e(t,n,r,i,a){return a&&(g(n)||Array.isArray(n))&&a.selections.forEach(a=>{if((0,o.kd)(a))e(t,n,r,i,a.selectionSet);else if("FragmentSpread"===a.kind){let o=i[a.name.value];e(t,n,r,i,o.selectionSet)}else if((0,o.dt)(a))(0,o.ue)(a)===t&&null!==(a.directives?.find(e=>"rest"===e.name.value)??null)?a.selectionSet&&function e(t,n,r,i){Array.isArray(t)?t.forEach(t=>e(t,n,r,i)):g(t)&&i.selections.forEach(i=>
27{if((0,o.kd)(i))e(t,n,r,i.selectionSet);else if("FragmentSpread"===i.kind){let a=r[i.name.value];e(t,n,r,a.selectionSet)}else if((0,o.dt)(i)){let a=i.name.value,o=t[a];if("__typename"===a)return;void 0===o?t[a]=null:null!==o&&"object"==typeof o&&i.selectionSet&&e(o,n,r,i.selectionSet)}})}(n,r,i,a.selectionSet):a.selectionSet&&e(t,n,r,i,a.selectionSet);else throw Error(`Unhandled Node Type: ${a}`)}),n}(p,l,C,I,C.selectionSet),A??"")};class O extends i.C{endpoints;headers;credentials;customFetch;responseTransformer;processedDocuments;pathBuilderCache;constructor({uri:e,endpoints:t,headers:n,customFetch:r,credentials:i,responseTransformer:a}){super();const o={};if(o[""]=e||"",this.endpoints=Object.assign({},t||o),null==e&&null==t)throw Error("A RestLink must be initialized with either 1 uri, or a map of keyed-endpoints");if(null!=e){const n=t?.[""];if(null!=n&&n!==e)throw Error("RestLink was configured with a default uri that doesn't match what's passed in to the endpoints map.");this.endpoints[""]=e}(null===this.endpoints[""]||void 0===this.endpoints[""])&&console.warn("RestLink configured without a default URI. All @rest(…) directives must provide an endpoint key!"),this.responseTransformer=a||null,this.headers=S(n||{}),this.credentials=i||null,this.customFetch=r,this.processedDocuments=new Map,this.pathBuilderCache=new Map}removeRestSetsFromDocument(e){let t=this.processedDocuments.get(e);if(t)return t;(0,u.sw)(e);let n=(0,l.iz)([y],e);return this.processedDocuments.set(e,n),n}request(e,t){let n,{query:r,variables:i,getContext:o,setContext:d}=e,f=o();if(!(0,c.d8)(["rest"],r))return t?t(e):null;let p=this.removeRestSetsFromDocument(r),h=f.headersMergePolicy??N;!f.headersMergePolicy&&Array.isArray(f.headersToOverride)&&(n=f.headersToOverride,h=(e,t)=>{let r;return r=new Headers,e.forEach((e,t)=>{-1===n.indexOf(t)&&r.append(t,e)}),N(r,t||new Headers)});let v=h(this.headers,S(f.headers??{}));v.has("Accept")||v.append("Accept","application/json");let y=(0,u.Vn)(r),k="operation"in y?y.operation:"query",g={headers:v,endpoints:this.endpoints,credentials:f.credentials||this.credentials,customFetch:this.customFetch,operationType:k,mainDefinition:y,fragmentDefinitions:(0,u.zK)(r),responseTransformer:this.responseTransformer,responses:[],pathBuilderCache:this.pathBuilderCache};return new a.c(n=>{let a=null,o=function(){var e;let t,a,o,c=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},p=c.data||{};(e=(0,l.XY)(r),t=(0,u.Vn)(e),a=(0,u.zK)(e),o=(0,s.JG)(a),m(t.selectionSet,p,{fragmentMap:o,contextValue:g,variableValues:i??{},resultMapper:e=>e,resolver:F,fragmentMatcher:()=>!0})).then(e=>{d({restResponses:(f.restResponses||[]).concat(g.responses)}),n.next("errors"in c?{data:e,errors:c.errors}:{data:e}),n.complete()}).catch(e=>{"AbortError"!==e.name&&(e.result?.errors&&n.next(e.result),n.error(e))})};return p&&t?(e.query=p,a=t(e).subscribe({next:e=>o(e),error:e=>n.error(e)})):o({}),()=>{a&&a.unsubscribe()}})}}let w=e=>{let{services:t}=e;return async(e,n)=>{let i="string"==typeof e?e:e.url;return function(e){let[t,n]=e;if(t)throw new r.K4({extraInfo:t,errorMessage:`${t.service}-${t?.key}-${t?.status}-${t.errorCode}`});return new Response(JSON.stringify(n))}(await t?.[i]?.(n))}},C=e=>
27new O(e)},72683:e=>{e.exports=JSON.parse('{"v":{"AbstractBasketProduct":["BasketHardwareProduct","BasketProductBundle","BasketSingleUsePassProduct","BasketSubscriptionBundleProduct","BasketSubscriptionProduct","BasketTrialProduct","BasketUFP","BasketUnifiedStreamingBundleProduct"],"AbstractCatalogueProduct":["HardwareProduct","ProductBundle","SingleUsePassProduct","SubscriptionBundleProduct","SubscriptionProduct","TrialProduct","UFP","UnifiedStreamingBundleProduct"],"AbstractCollectionItem":["BaseCollectionItem"],"AbstractProduct":["BasketHardwareProduct","BasketProductBundle","BasketSingleUsePassProduct","BasketSubscriptionBundleProduct","BasketSubscriptionProduct","BasketTrialProduct","BasketUFP","BasketUnifiedStreamingBundleProduct","HardwareProduct","ProductBundle","SingleUsePassProduct","SubscriptionBundleProduct","SubscriptionProduct","TrialProduct","UFP","UnifiedStreamingBundleProduct"],"AbstractThreeDSecureRequired":["ThreeDSecureV1Required","ThreeDSecureV2RequiredChallenge","ThreeDSecureV2RequiredChallengeShopper","ThreeDSecureV2RequiredDeviceFingerprint","ThreeDSecureV2RequiredIdentifyShopper"],"AccountUpsell":["SubscriptionProduct","TrialProduct"],"AddressTemplateField":["HiddenField","MultiField","SelectField","StringField"],"ApplePayProvider":["ApplePaySpreedlyProvider"],"ApplyVoucherResult":["ApplyCreditGiftCardResult","Basket"],"BaseField":["HiddenField","MultiField","SelectField","StringField"],"BasePaymentAccount":["ApplePayPaymentAccount","CardPaymentAccount","DCBPaymentAccount","KlarnaPaymentAccount","PayPalPaymentAccount","ThirdPartyPaymentAccount"],"BasePaymentMethodConfig":["ApplePayPaymentMethodConfig","CardPaymentMethodConfig","DcbPaymentMethodConfig","EWalletPaymentMethodConfig","IDealPaymentMethodConfig","KlarnaPaymentMethodConfig","PayPalPaymentMethodConfig"],"BasePaymentProvider":["ApplePaySpreedlyProvider","CardAdyenProvider","CardSpreedlyProvider","CardStripeProvider","DcbBokuProvider","IDealAdyenProvider","KlarnaAdyenProvider","PayPalAdyenProvider","PayPalDirectProvider","RapydEWalletProvider"],"BasketItemReference":["BasketHardwareProduct","BasketOffer","BasketProductBundle","BasketSingleUsePassProduct","BasketSubscriptionBundleProduct","BasketSubscriptionProduct","BasketTrialProduct","BasketUFP","BasketUnifiedStreamingBundleProduct"],"BasketProduct":["BasketHardwareProduct","BasketProductBundle","BasketSingleUsePassProduct","BasketSubscriptionBundleProduct","BasketSubscriptionProduct","BasketTrialProduct","BasketUFP","BasketUnifiedStreamingBundleProduct"],"BasketProductPricing":["AbstractBasketProductPricing","SubscriptionBasketProductPricing","TrialBasketProductPricing"],"CardProviders":["CardAdyenProvider","CardSpreedlyProvider","CardStripeProvider"],"CatalogueProduct":["HardwareProduct","ProductBundle","SingleUsePassProduct","SubscriptionBundleProduct","SubscriptionProduct","TrialProduct","UFP","UnifiedStreamingBundleProduct"],"CollectionItem":["BaseCollectionItem"],"CompletePaymentJourneyResponse":["CompletePaymentJourneySuccess","CompletePaymentJourneyThreeDSecureRequired","OrderWithWarnings"],"DcbProvider":["DcbBokuProvider"],"EWalletProvider":["RapydEWalletProvider"],"IDealProvider":["IDealAdyenProvider"],"KlarnaProvider":["KlarnaAdyenProvider"],"LightweightProduct":["ProductHoldingLightweight"],"MVPDLinkOffer":["MVPDPartnerOfferAndBasketReference","MVPDRedeemedOffer"],"OrderResponse":["OrderResultSuccess","OrderWithWarnings","ThreeDSecureRequired"],"PayPalProviders":["PayPalAdyenProvider","PayPalDirectProvider"],"PaymentAccounts":["ApplePayPaymentAccount","CardPaymentAccount","DCBPaymentAccount","KlarnaPaymentAccount","PayPalPaymentAccount","ThirdPartyPaymentAccount"],"PaymentMethodsProvider":["ApplePayPaymentMethodConfig","CardPaymentMethodConfig","DcbPaymentMethodConfig","EWalletPaymentMethodConfig","IDealPaymentMethodConfig","KlarnaPaymentMethodConfig","PayPalPaymentMethodConfig"],"PersonalisedUpsellItems":["SubscriptionProduct","TrialProduct","UpsellVoucher"],"PlanPickerResponse":["PlanPickerGroupsResponse","PlanPickerPlansResponse"],"Pricing":["ProductPricing"],"Product":["ProductHolding"],"ProductConnection":["ProductHolding","SingleUsePassProduct","SubscriptionProduct","TrialProduct"],"QuickCancel":["QuickCancelInvalidSubscription","QuickCancelInvalidUser","QuickCancelSuccess"],"RecommendationData":["Collection","RecommendationContent"],"StorePaymentAccountResponse":["StorePaymentAccountSuccess","ThreeDSecureRequired"],"ThreeDSecureData":["ThreeDSecureV1Required","ThreeDSecureV2RequiredChallenge","ThreeDSecureV2RequiredChallengeShopper","ThreeDSecureV2RequiredDeviceFingerprint","ThreeDSecureV2RequiredIdentifyShopper"]}}')},72870:(e,t,n)=>{n.d(t,{L:()=>c});var r=n(67236),i=n(24377),a=n(5780),o=n(34210),s=n(16326),u=n(64780);let l=["GetSignInSuccess","GetUserSegmentation","Commerce"].map(e=>e.toLocaleUpperCase()),c=()=>(0,r.S)(e=>{let{graphQLErrors:t,operation:n}=e;if(t){let e=t.some(e=>{let{extensions:t}=e;return t?.code==="UNAUTHENTICATED"});if(!l.includes(n.operationName.toLocaleUpperCase())&&e){let e=(0,i.RI)(s.W.SignInPage??""),t=a.A.stringify({return:(0,u.Q)()});(0,o.C)({doRedirect:!0,signOutLocation:`${e}?${t}`})}}})},73001:(e,t,n)=>{n.d(t,{l:()=>a});var r=n(19043),i=n(87628);function a(e,t){return(0,i.o)(e,t,t.variables&&{variables:(0,i.o)((0,r.Cl)((0,r.Cl)({},e&&e.variables),t.variables))})}},76856:(e,t,n)=>{n.d(t,{UU:()=>tw,KU:()=>tC,ig:()=>tE});var r=n(19043),i=n(83808),a=n(8572),o=a.C.execute,s=n(87698),u=n(97391),l=n(12932),c=function(e,t){var n;try{n=JSON.stringify(e)}catch(e){var r=(0,i.vA)(39,t,e.message);throw r.parseError=e,r}return n},d=function(e,t){var n=e.getContext().uri;return n||("function"==typeof t?t(e):t||"/graphql")},f=n(83458);function p(e){var t={next:function(){return e.read()}};return f.uJ&&(t[Symbol.asyncIterator]=function(){return this}),t}var m=function(e,t,n){var r=Error(n);throw r.name="ServerError",r.response=e,r.statusCode=e.status,r.result=t,r},h=n(33682),v=n(80657),y=n(81797),k=n(98495);function g(e){return"incremental"in e}function b(e,t){var n=e,r=new k.ZI;return g(t)&&(0,y.E)(t.incremental)&&t.incremental.forEach(function(e){for(var t=e.data,i=e.path,a=i.length-1;a>=0;--a){var o=i[a],s=isNaN(+o)?{}:[];s[o]=t,t=s}
27n=r.merge(n,t)}),n}var S=Object.prototype.hasOwnProperty;function N(e,t){e.status>=300&&m(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}}var F=n(79224),O={http:{includeQuery:!0,includeExtensions:!1,preserveHeaderCase:!1},headers:{accept:"*/*","content-type":"application/json"},options:{method:"POST"}},w=function(e,t){return t(e)};function C(e){return new l.c(function(t){t.error(e)})}var E=n(60611),T=n(65963),P=n(2585),I=(0,i.no)(function(){return fetch}),D=function(e){void 0===e&&(e={});var t=e.uri,n=void 0===t?"/graphql":t,o=e.fetch,s=e.print,y=void 0===s?w:s,k=e.includeExtensions,g=e.preserveHeaderCase,b=e.useGETForQueries,D=e.includeUnusedVariables,R=void 0!==D&&D,x=(0,r.Tt)(e,["uri","fetch","print","includeExtensions","preserveHeaderCase","useGETForQueries","includeUnusedVariables"]),A={http:{includeExtensions:k,preserveHeaderCase:g},options:x.fetchOptions,credentials:x.credentials,headers:x.headers};return new a.C(function(e){var t,a,s,k,g,w,D=d(e,n),x=e.getContext(),q={};if(x.clientAwareness){var M=x.clientAwareness,_=M.name,V=M.version;_&&(q["apollographql-client-name"]=_),V&&(q["apollographql-client-version"]=V)}var j=(0,r.Cl)((0,r.Cl)({},q),x.headers),Q={http:x.http,options:x.fetchOptions,credentials:x.credentials,headers:j};if((0,u.d8)(["client"],e.query)){var L=(0,T.er)(e.query);if(!L)return C(Error("HttpLink: Trying to send a client-only query to the server. To send to the server, ensure a non-client field is added to the query or set the `transformOptions.removeClientFields` option to `true`."));e.query=L}var B=function(e,t){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];var a={},o={};n.forEach(function(e){a=(0,r.Cl)((0,r.Cl)((0,r.Cl)({},a),e.options),{headers:(0,r.Cl)((0,r.Cl)({},a.headers),e.headers)}),e.credentials&&(a.credentials=e.credentials),o=(0,r.Cl)((0,r.Cl)({},o),e.http)}),a.headers&&(a.headers=function(e,t){if(!t){var n=Object.create(null);
27return 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}(a.headers,o.preserveHeaderCase));var s=e.operationName,u=e.extensions,l=e.variables,c=e.query,d={operationName:s,variables:l};return o.includeExtensions&&(d.extensions=u),o.includeQuery&&(d.query=t(c,F.y)),{options:a,body:d}}(e,y,O,A,Q),U=B.options,W=B.body;W.variables&&!R&&(t=W.variables,a=e.query,s=(0,r.Cl)({},t),k=new Set(Object.keys(t)),(0,E.YR)(a,{Variable:function(e,t,n){n&&"VariableDefinition"!==n.kind&&k.delete(e.name.value)}}),k.forEach(function(e){delete s[e]}),W.variables=s),!U.signal&&"u">typeof AbortController&&(U.signal=(w=new AbortController).signal);var z="OperationDefinition"===(g=(0,P.Vn)(e.query)).kind&&"subscription"===g.operation,$=(0,u.d8)(["defer"],e.query);if(b&&!e.query.definitions.some(function(e){return"OperationDefinition"===e.kind&&"mutation"===e.operation})&&(U.method="GET"),$||z){U.headers=U.headers||{};var H="multipart/mixed;";z?H+="boundary=graphql;subscriptionSpec=1.0,application/json":$&&(H+="deferSpec=20220824,application/json"),U.headers.accept=H}if("GET"===U.method){var G=function(e,t){var n=[],r=function(e,t){n.push("".concat(e,"=").concat(encodeURIComponent(t)))};if("query"in t&&r("query",t.query),t.operationName&&r("operationName",t.operationName),t.variables){var i=void 0;try{i=c(t.variables,"Variables map")}catch(e){return{parseError:e}}r("variables",i)}if(t.extensions){var a=void 0;try{a=c(t.extensions,"Extensions map")}catch(e){return{parseError:e}}r("extensions",a)}var o="",s=e,u=e.indexOf("#");-1!==u&&(o=e.substr(u),s=e.substr(0,u));var l=-1===s.indexOf("?")?"?":"&";return{newURI:s+l+n.join("&")+o}}(D,W),Y=G.newURI,J=G.parseError;if(J)return C(J);D=Y}else try{U.body=c(W,"Payload")}catch(e){return C(e)}return new l.c(function(t){var n=o||(0,i.no)(function(){return fetch})||I,a=t.next.bind(t);return n(D,U).then(function(t){e.setContext({response:t});var n,i=null==(n=t.headers)?void 0:n.get("content-type");return null!==i&&/^multipart\/mixed/i.test(i)?function(e,t){return(0,r.sH)(this,void 0,void 0,function(){var n,i,a,o,s,u,l,c,d,m,y,k,g,b,S,F,O,w,C,E,T,P,I;return(0,r.YH)(this,function(D){switch(D.label){case 0:if(void 0===TextDecoder)throw Error("TextDecoder must be defined in the environment: please import a polyfill.");n=new TextDecoder("utf-8"),i=null==(I=e.headers)?void 0:I.get("content-type"),a="boundary=",o=(null==i?void 0:i.includes(a))?null==i?void 0:i.substring((null==i?void 0:i.indexOf(a))+a.length).replace(/['"]/g,"").replace(/\;(.*)/gm,"").trim():"-",s="\r\n--".concat(o),u="",l=function(e){var t,n,r,i,a,o,s=e;if(e.body&&(s=e.body),t=s,f.uJ&&t[Symbol.asyncIterator])return r=s[Symbol.asyncIterator](),(n={next:function(){return r.next()}})[Symbol.asyncIterator]=function(){return this},n;if(s.getReader)return p(s.getReader());if(s.stream)return p(s.stream().getReader());if(s.arrayBuffer)return i=s.arrayBuffer(),a=!1,o={next:function(){return a?Promise.resolve({value:void 0,done:!0}):(a=!0,new Promise(function(e,t){i.then(function(t){e({value:t,done:!1})}).catch(t)}))}},f.uJ&&(o[Symbol.asyncIterator]=function(){return this}),o;if(s.pipe)return function(e){var t=null,n=null,r=!1,i=[],a=[];function o(e){if(!n){if(a.length){var t=a.shift();if(Array.isArray(t)&&t[0])return t[0]({value:e,done:!1})}i.push(e)}}function s(e){n=e,a.slice().forEach(function(t){t[1](e)}),t&&t()}function u(){r=!0,a.slice().forEach(function(e){e[0]({value:void 0,done:!0})}),t&&t()}t=function(){t=null,e.removeListener("data",o),e.removeListener("error",s),e.removeListener("end",u),e.removeListener("finish",u),e.removeListener("close",u)},e.on("data",o),e.on("error",s),e.on("end",u),e.on("finish",u),e.on("close",u);var l={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 a.push([e,t])})}};return f.uJ&&(l[Symbol.asyncIterator]=function(){return this}),l}(s);throw Error("Unknown body type for responseIterator. Please pass a streamable response.")}(e),c=!0,D.label=1;case 1:if(!c)return[3,3];return[4,l.next()];case 2:for(m=(d=D.sent()).value,y=d.done,k="string"==typeof m?m:n.decode(m),g=u.length-s.length+1,c=!y,u+=k,b=u.indexOf(s,g);b>-1;){if(S=void 0,S=(T=[u.slice(0,b),u.slice(b+s.length)])[0],u=T[1],F=S.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}(S.slice(0,F))["content-type"])&&-1===O.toLowerCase().indexOf("application/json"))throw Error("Unsupported patch content type: application/json is required.");
27if(w=S.slice(F)){if(Object.keys(C=N(e,w)).length>1||"data"in C||"incremental"in C||"errors"in C||"payload"in C)if((0,v.U)(C)&&"payload"in C){if(E={},"payload"in C){if(1===Object.keys(C).length&&null===C.payload)return[2];E=(0,r.Cl)({},C.payload)}"errors"in C&&(E=(0,r.Cl)((0,r.Cl)({},E),{extensions:(0,r.Cl)((0,r.Cl)({},"extensions"in E?E.extensions:null),((P={})[h.K$]=C.errors,P))})),t(E)}else t(C);else if(1===Object.keys(C).length&&"hasNext"in C&&!C.hasNext)return[2]}b=u.indexOf(s)}return[3,1];case 3:return[2]}})})}(t,a):(function(t){return t.text().then(function(e){return N(t,e)}).then(function(n){return Array.isArray(n)||S.call(n,"data")||S.call(n,"errors")||m(t,n,"Server response was missing for query '".concat(Array.isArray(e)?e.map(function(e){return e.operationName}):e.operationName,"'.")),n})})(t).then(a)}).then(function(){w=void 0,t.complete()}).catch(function(e){w=void 0,e.result&&e.result.errors&&e.result.data&&t.next(e.result),t.error(e)}),function(){w&&w.abort()}})})},R=function(e){function t(t){void 0===t&&(t={});var n=e.call(this,D(t).request)||this;return n.options=t,n}return(0,r.C6)(t,e),t}(a.C),x=n(5144),A=n(9992),q=n(92228);function M(e,t,n){return new l.c(function(r){var i={then:function(e){return new Promise(function(t){return t(e())})}};function a(e,t){return function(n){if(e){var a=function(){return r.closed?0:e(n)};i=i.then(a,a).then(function(e){return r.next(e)},function(e){return r.error(e)})}else r[t](n)}}var o={next:a(t,"next"),error:a(n,"error"),complete:function(){i.then(function(){return r.complete()})}},s=e.subscribe(o);return function(){return s.unsubscribe()}})}function _(e){var t=V(e);return(0,y.E)(t)}function V(e){var t=(0,y.E)(e.errors)?e.errors.slice(0):[];return g(e)&&(0,y.E)(e.incremental)&&e.incremental.forEach(function(e){e.errors&&t.push.apply(t,e.errors)}),t}var j=n(37535),Q=n(47207);function L(e,t,n){var r=[];e.forEach(function(e){return e[t]&&r.push(e)}),r.forEach(function(e){return e[t](n)})}function B(e){function t(t){Object.defineProperty(e,t,{value:l.c})}return f.ol&&Symbol.species&&t(Symbol.species),t("@@species"),e}function U(e){return e&&"function"==typeof e.then}var W=function(e){function t(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),L(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),L(n.observers,"error",e))},complete:function(){var e=n.sub,t=n.sources;if(null!==e){var r=(void 0===t?[]:t).shift();r?U(r)?r.then(function(e){return n.sub=e.subscribe(n.handlers)},n.handlers.error):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"),L(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 l.c(t)]),U(t)?t.then(function(e){return n.start(e)},n.handlers.error):n.start(t),n}return(0,r.C6)(t,e),t.prototype.start=function(e){void 0===this.sub&&(this.sources=Array.from(e),this.handlers.complete())},t.prototype.deliverLastMessage=function(e){if(this.latest){var t=this.latest[0],n=e[t];n&&n.call(e,this.latest[1]),null===this.sub&&"next"===t&&e.complete&&e.complete()}},t.prototype.addObserver=function(e){this.observers.has(e)||(this.deliverLastMessage(e),this.observers.add(e))},t.prototype.removeObserver=function(e){this.observers.delete(e)&&this.observers.size<1&&this.handlers.complete()},t.prototype.notify=function(e,t){var n=this.nextResultListeners;n.size&&(this.nextResultListeners=new Set,n.forEach(function(n){return n(e,t)}))},t.prototype.beforeNext=function(e){var t=!1;this.nextResultListeners.add(function(n,r){t||(t=!0,e(n,r))})},t}(l.c);B(W);var z=n(69662),$=n(87628),H=Object.prototype.toString,G=n(55217),Y=Object.assign,J=function(e){function t(t){var n=t.queryManager,i=t.queryInfo,a=t.options,o=e.call(this,function(e){try{var t=e._subscription._observer;t&&!t.error&&(t.error=X)}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=i,o.queryManager=n,o.waitForOwnResult=Z(a.fetchPolicy),o.isTornDown=!1;var s=n.defaultOptions.watchQuery,u=(void 0===s?{}
27:s).fetchPolicy,l=void 0===u?"cache-first":u,c=a.fetchPolicy,d=void 0===c?l:c,f=a.initialFetchPolicy,p=void 0===f?"standby"===d?l:d:f;o.options=(0,r.Cl)((0,r.Cl)({},a),{initialFetchPolicy:p,fetchPolicy:d}),o.queryId=i.queryId||n.generateQueryId();var m=(0,P.Vu)(o.query);return o.queryName=m&&m.name&&m.name.value,o}return(0,r.C6)(t,e),Object.defineProperty(t.prototype,"query",{get:function(){return this.lastQuery||this.options.query},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"variables",{get:function(){return this.options.variables},enumerable:!1,configurable:!0}),t.prototype.result=function(){var e=this;return new Promise(function(t,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)})},t.prototype.resetDiff=function(){this.queryInfo.resetDiff()},t.prototype.getCurrentResult=function(e){void 0===e&&(e=!0);var t=this.getLastResult(!0),n=this.queryInfo.networkStatus||t&&t.networkStatus||z.pT.ready,i=(0,r.Cl)((0,r.Cl)({},t),{loading:(0,z.bi)(n),networkStatus:n}),a=this.options.fetchPolicy,o=void 0===a?"cache-first":a;if(Z(o)||this.queryManager.getDocumentInfo(this.query).hasForcedResolvers);else if(this.waitForOwnResult)this.queryInfo.updateWatch();else{var s=this.queryInfo.getDiff();(s.complete||this.options.returnPartialData)&&(i.data=s.result),(0,x.L)(i.data,{})&&(i.data=void 0),s.complete?(delete i.partial,s.complete&&i.networkStatus===z.pT.loading&&("cache-first"===o||"cac
27he-only"===o)&&(i.networkStatus=z.pT.ready,i.loading=!1)):i.partial=!0}return e&&this.updateLastResult(i),i},t.prototype.isDifferentFromLastResult=function(e,t){return!this.last||(this.queryManager.getDocumentInfo(this.query).hasNonreactiveDirective?!(0,G.a)(this.query,this.last.result,e,this.variables):!(0,x.L)(this.last.result,e))||t&&!(0,x.L)(this.last.variables,t)},t.prototype.getLast=function(e,t){var n=this.last;if(n&&n[e]&&(!t||(0,x.L)(n.variables,this.variables)))return n[e]},t.prototype.getLastResult=function(e){return this.getLast("result",e)},t.prototype.getLastError=function(e){return this.getLast("error",e)},t.prototype.resetLastResults=function(){delete this.last,this.isTornDown=!1},t.prototype.resetQueryStoreErrors=function(){this.queryManager.resetErrors(this.queryId)},t.prototype.refetch=function(e){var t={pollInterval:0},n=this.options.fetchPolicy;return"cache-and-network"===n?t.fetchPolicy=n:"no-cache"===n?t.fetchPolicy="no-cache":t.fetchPolicy="network-only",e&&!(0,x.L)(this.options.variables,e)&&(t.variables=this.options.variables=(0,r.Cl)((0,r.Cl)({},this.options.variables),e)),this.queryInfo.resetLastWrite(),this.reobserve(t,z.pT.refetch)},t.prototype.fetchMore=function(e){var t=this,n=(0,r.Cl)((0,r.Cl)({},e.query?e:(0,r.Cl)((0,r.Cl)((0,r.Cl)((0,r.Cl)({},this.options),{query:this.options.query}),e),{variables:(0,r.Cl)((0,r.Cl)({},this.options.variables),e.variables)})),{fetchPolicy:"no-cache"});n.query=this.transformDocument(n.query);var i=this.queryManager.generateQueryId();this.lastQuery=e.query?this.transformDocument(this.options.query):n.query;var a=this.queryInfo,o=a.networkStatus;a.networkStatus=z.pT.fetchMore,n.notifyOnNetworkStatusChange&&this.observe();var s=new Set;return this.queryManager.fetchQuery(i,n,z.pT.fetchMore).then(function(r){return t.queryManager.removeQuery(i),a.networkStatus===z.pT.fetchMore&&(a.networkStatus=o),t.queryManager.cache.batch({update:function(i){var a=e.updateQuery;a?i.updateQuery({query:t.query,variables:t.variables,returnPartialData:!0,optimistic:!1},function(e){return a(e,{fetchMoreResult:r.data,variables:n.variables})}):i.writeQuery({query:n.query,variables:n.variables,data:r.data})},onWatchUpdated:function(e){s.add(e.query)}}),r}).finally(function(){s.has(t.query)||K(t)})},t.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)return void e.onError(t)}});return this.subscriptions.add(n),function(){t.subscriptions.delete(n)&&n.unsubscribe()}},t.prototype.setOptions=function(e){return this.reobserve(e)},t.prototype.silentSetOptions=function(e){var t=(0,$.o)(this.options,e||{});Y(this.options,t)},t.prototype.setVariables=function(e){return(0,x.L)(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},z.pT.setVariables):Promise.resolve()},t.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())},t.prototype.startPolling=function(e){this.options.pollInterval=e,this.updatePolling()},t.prototype.stopPolling=function(){this.options.pollInterval=0,this.updatePolling()},t.prototype.applyNextFetchPolicy=function(e,t){if(t.nextFetchPolicy){var n=t.fetchPolicy,r=void 0===n?"cache-first":n,i=t.initialFetchPolicy,a=void 0===i?r:i;"standby"===r||("function"==typeof t.nextFetchPolicy?t.fetchPolicy=t.nextFetchPolicy(r,{reason:e,options:t,observable:this,initialFetchPolicy:a}):"variables-changed"===e?t.fetchPolicy=a:t.fetchPolicy=t.nextFetchPolicy)}return t.fetchPolicy},t.prototype.fetch=function(e,t,n){return this.queryManager.setObservableQuery(this),this.queryManager.fetchConcastWithInfo(this.queryId,e,t,n)},t.prototype.updatePolling=function(){var e=this;if(!this.queryManager.ssrMode){var t=this.pollingInfo,n=this.options.pollInterval;if(!n||!this.hasObservers()){t&&(clearTimeout(t.timeout),delete this.pollingInfo);return}if(!t||t.interval!==n){(0,i.V1)(n,22),(t||(this.pollingInfo={})).interval=n;var r=function(){var t,n;e.pollingInfo&&((0,z.bi)(e.queryInfo.networkStatus)||(null==(n=(t=e.options).skipPollAttempt)?void 0:n.call(t))?a():e.reobserve({fetchPolicy:"no-cache"===e.options.initialFetchPolicy?"no-cache":"network-only"},z.pT.poll).then(a,a))},a=function(){var t=e.pollingInfo;t&&(clearTimeout(t.timeout),t.timeout=setTimeout(r,t.interval))};a()}}},t.prototype.updateLastResult=function(e,t){void 0===t&&(t=this.variables);var n=this.getLastError();return n&&this.last&&!(0,x.L)(t,this.last.variables)&&(n=void 0),this.last=(0,r.Cl)({result:this.queryManager.assumeImmutableResults?e:function e(t,n){switch(H.call(t)){case"[object Array]":if((n=n||new Map).has(t))return n.get(t);var r=t.slice(0);return n.set(t,r),r.forEach(function(t,i){r[i]=e(t,n)}),r;case"[object Object]":if((n=n||new Map).has(t))return n.get(t);var i=Object.create(Object.getPrototypeOf(t));return n.set(t,i),Object.keys(t).forEach(function(r){i[r]=e(t[r],n)}),i;default:return t}}(e),variables:t},n?{error:n}:null)},t.prototype.reobserveAsConcast=function(e,t){var n=this;this.isTornDown=!1;
27var i=t===z.pT.refetch||t===z.pT.fetchMore||t===z.pT.poll,a=this.options.variables,o=this.options.fetchPolicy,s=(0,$.o)(this.options,e||{}),u=i?s:Y(this.options,s),l=this.transformDocument(u.query);this.lastQuery=l,!i&&(this.updatePolling(),e&&e.variables&&!(0,x.L)(e.variables,a)&&"standby"!==u.fetchPolicy&&u.fetchPolicy===o&&(this.applyNextFetchPolicy("variables-changed",u),void 0===t&&(t=z.pT.setVariables))),this.waitForOwnResult&&(this.waitForOwnResult=Z(u.fetchPolicy));var c=function(){n.concast===p&&(n.waitForOwnResult=!1)},d=u.variables&&(0,r.Cl)({},u.variables),f=this.fetch(u,t,l),p=f.concast,m=f.fromLink,h={next:function(e){(0,x.L)(n.variables,d)&&(c(),n.reportResult(e,d))},error:function(e){(0,x.L)(n.variables,d)&&(c(),n.reportError(e,d))}};return i||!m&&this.concast||(this.concast&&this.observer&&this.concast.removeObserver(this.observer),this.concast=p,this.observer=h),p.addObserver(h),p},t.prototype.reobserve=function(e,t){return this.reobserveAsConcast(e,t).promise},t.prototype.resubscribeAfterError=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=this.last;this.resetLastResults();var r=this.subscribe.apply(this,e);return this.last=n,r},t.prototype.observe=function(){this.reportResult(this.getCurrentResult(!1),this.variables)},t.prototype.reportResult=function(e,t){var n=this.getLastError(),r=this.isDifferentFromLastResult(e,t);(n||!e.partial||this.options.returnPartialData)&&this.updateLastResult(e,t),(n||r)&&L(this.observers,"next",e)},t.prototype.reportError=function(e,t){var n=(0,r.Cl)((0,r.Cl)({},this.getLastResult()),{error:e,errors:e.graphQLErrors,networkStatus:z.pT.error,loading:!1});this.updateLastResult(n,t),L(this.observers,"error",this.last.error=e)},t.prototype.hasObservers=function(){return this.observers.size>0},t.prototype.tearDownQuery=function(){this.isTornDown||(this.concast&&this.observer&&(this.concast.removeObserver(this.observer),delete this.concast,delete this.observer),this.stopPolling(),this.subscriptions.forEach(function(e){return e.unsubscribe()}),this.subscriptions.clear(),this.queryManager.stopQuery(this.queryId),this.observers.clear(),this.isTornDown=!0)},t.prototype.transformDocument=function(e){return this.queryManager.transform(e)},t}(l.c);function K(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(e,t){return(this.nextFetchPolicy=r,"function"==typeof this.nextFetchPolicy)?this.nextFetchPolicy(e,t):n}}):e.reobserve()}function X(e){}function Z(e){return"network-only"===e||"no-cache"===e||"standby"===e}B(J);var ee=n(94587);function et(e){return e.kind===ee.b.FIELD||e.kind===ee.b.FRAGMENT_SPREAD||e.kind===ee.b.INLINE_FRAGMENT}var en=n(43038),er=n(69663),ei=function(){function e(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 e.prototype.addResolvers=function(e){var t=this;this.resolvers=this.resolvers||{},Array.isArray(e)?e.forEach(function(e){t.resolvers=(0,k.D9)(t.resolvers,e)}):this.resolvers=(0,k.D9)(this.resolvers,e)},e.prototype.setResolvers=function(e){this.resolvers={},this.addResolvers(e)},e.prototype.getResolvers=function(){return this.resolvers||{}},e.prototype.runResolvers=function(e){return(0,r.sH)(this,arguments,void 0,function(e){var t=e.document,n=e.remoteResult,i=e.context,a=e.variables,o=e.onlyRunForcedResolvers,s=void 0!==o&&o;return(0,r.YH)(this,function(e){return t?[2,this.resolveDocument(t,n.data,i,a,this.fragmentMatcher,s).then(function(e){return(0,r.Cl)((0,r.Cl)({},n),{data:e.result})})]:[2,n]})})},e.prototype.setFragmentMatcher=function(e){this.fragmentMatcher=e},e.prototype.getFragmentMatcher=function(){return this.fragmentMatcher},e.prototype.clientQuery=function(e){return(0,u.d8)(["client"],e)&&this.resolvers?e:null},e.prototype.serverQuery=function(e){return(0,T.er)(e)},e.prototype.prepareContext=function(e){var t=this.cache;return(0,r.Cl)((0,r.Cl)({},e),{cache:t,getCacheKey:function(e){return t.identify(e)}})},e.prototype.addExportedVariables=function(e){return(0,r.sH)(this,arguments,void 0,function(e,t,n){return void 0===t&&(t={}),void 0===n&&(n={}),(0,r.YH)(this,function(i){return e?[2,this.resolveDocument(e,this.buildRootValueFromCache(e,t)||{},this.prepareContext(n),t).then(function(e){return(0,r.Cl)((0,r.Cl)({},t),e.exportedVariables)})]:[2,(0,r.Cl)({},t)]})})},e.prototype.shouldForceResolvers=function(e){var t=!1;return(0,E.YR)(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 E.sP}}}),t},e.prototype.buildRootValueFromCache=function(e,t){return this.cache.diff({query:(0,T.zc)(e),variables:t,returnPartialData:!0,optimistic:!1}).result},e.prototype.resolveDocument=function(e,t){return(0,r.sH)(this,arguments,void 0,function(e,t,n,i,a,o){var s,u,l,c,d,f,p,m,h,v;return void 0===n&&(n={}),void 0===i&&(i={}),void 0===a&&(a=function(){return!0}),void 0===o&&(o=!1),(0,r.YH)(this,function(y){return s=(0,P.Vn)(e),u=(0,P.zK)(e),l=(0,en.JG)(u),c=this.collectSelectionsToResolve(s,l),f=(d=s.operation)?d.charAt(0).toUpperCase()+d.slice(1):"Query",p=this,m=p.cache,h=p.client,v={fragmentMap:l,context:(0,r.Cl)((0,r.Cl)({}
27,n),{cache:m,client:h}),variables:i,fragmentMatcher:a,defaultOperationType:f,exportedVariables:{},selectionsToResolve:c,onlyRunForcedResolvers:o},[2,this.resolveSelectionSet(s.selectionSet,!1,t,v).then(function(e){return{result:e,exportedVariables:v.exportedVariables}})]})})},e.prototype.resolveSelectionSet=function(e,t,n,a){return(0,r.sH)(this,void 0,void 0,function(){var o,s,l,c,d,f=this;return(0,r.YH)(this,function(p){return o=a.fragmentMap,s=a.context,l=a.variables,c=[n],d=function(e){return(0,r.sH)(f,void 0,void 0,function(){var d,f;return(0,r.YH)(this,function(r){return(t||a.selectionsToResolve.has(e))&&(0,u.MS)(e,l)?(0,j.dt)(e)?[2,this.resolveField(e,t,n,a).then(function(t){var n;void 0!==t&&c.push(((n={})[(0,j.ue)(e)]=t,n))})]:((0,j.kd)(e)?d=e:(d=o[e.name.value],(0,i.V1)(d,18,e.name.value)),d&&d.typeCondition&&(f=d.typeCondition.name.value,a.fragmentMatcher(n,f,s)))?[2,this.resolveSelectionSet(d.selectionSet,t,n,a).then(function(e){c.push(e)})]:[2]:[2]})})},[2,Promise.all(e.selections.map(d)).then(function(){return(0,k.IM)(c)})]})})},e.prototype.resolveField=function(e,t,n,i){return(0,r.sH)(this,void 0,void 0,function(){var a,o,s,u,l,c,d,f,p,m=this;return(0,r.YH)(this,function(r){return n?(a=i.variables,u=(o=e.name.value)!==(s=(0,j.ue)(e)),c=Promise.resolve(l=n[s]||n[o]),(!i.onlyRunForcedResolvers||this.shouldForceResolvers(e))&&(d=n.__typename||i.defaultOperationType,(f=this.resolvers&&this.resolvers[d])&&(p=f[u?o:s])&&(c=Promise.resolve(er.bl.withValue(this.cache,p,[n,(0,j.MB)(e,a),i.context,{field:e,fragmentMap:i.fragmentMap}])))),[2,c.then(function(n){if(void 0===n&&(n=l),e.directives&&e.directives.forEach(function(e){"export"===e.name.value&&e.arguments&&e.arguments.forEach(function(e){"as"===e.name.value&&"StringValue"===e.value.kind&&(i.exportedVariables[e.value.value]=n)})}),!e.selectionSet||null==n)return n;var r,a,o=null!=(a=null==(r=e.directives)?void 0:r.some(function(e){return"client"===e.name.value}))&&a;return Array.isArray(n)?m.resolveSubSelectedArray(e,t||o,n,i):e.selectionSet?m.resolveSelectionSet(e.selectionSet,t||o,n,i):void 0})]):[2,null]})})},e.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}))},e.prototype.collectSelectionsToResolve=function(e,t){var n=function(e){return!Array.isArray(e)},r=this.selectionsToResolveCache;return function e(a){if(!r.has(a)){var o=new Set;r.set(a,o),(0,E.YR)(a,{Directive:function(e,t,r,i,a){"client"===e.name.value&&a.forEach(function(e){n(e)&&et(e)&&o.add(e)})},FragmentSpread:function(r,a,s,u,l){var c=t[r.name.value];(0,i.V1)(c,19,r.name.value);var d=e(c);d.size>0&&(l.forEach(function(e){n(e)&&et(e)&&o.add(e)}),o.add(r),d.forEach(function(e){o.add(e)}))}})}return r.get(a)}(e)},e}(),ea=new(f.et?WeakMap:Map);function eo(e,t){var n=e[t];"function"==typeof n&&(e[t]=function(){return ea.set(e,(ea.get(e)+1)%1e15),n.apply(this,arguments)})}function es(e){e.notifyTimeout&&(clearTimeout(e.notifyTimeout),e.notifyTimeout=void 0)}var eu=function(){function e(e,t){void 0===t&&(t=e.generateQueryId()),this.queryId=t,this.listeners=new Set,this.document=null,this.lastRequestId=1,this.stopped=!1,this.dirty=!1,this.observableQuery=null;var n=this.cache=e.cache;ea.has(n)||(ea.set(n,0),eo(n,"evict"),eo(n,"modify"),eo(n,"reset"))}return e.prototype.init=function(e){var t=e.networkStatus||z.pT.loading;return this.variables&&this.networkStatus!==z.pT.loading&&!(0,x.L)(this.variables,e.variables)&&(t=z.pT.setVariables),(0,x.L)(e.variables,this.variables)||(this.lastDiff=void 0),Object.assign(this,{document:e.document,variables:e.variables,networkError:null,graphQLErrors:this.graphQLErrors||[],networkStatus:t}),e.observableQuery&&this.setObservableQuery(e.observableQuery),e.lastRequestId&&(this.lastRequestId=e.lastRequestId),this},e.prototype.reset=function(){es(this),this.dirty=!1},e.prototype.resetDiff=function(){this.lastDiff=void 0},e.prototype.getDiff=function(){var e=this.getDiffOptions();if(this.lastDiff&&(0,x.L)(e,this.lastDiff.options))return this.lastDiff.diff;this.updateWatch(this.variables);var t=this.observableQuery;if(t&&"no-cache"===t.options.fetchPolicy)return{complete:!1};var n=this.cache.diff(e);return this.updateLastDiff(n,e),n},e.prototype.updateLastDiff=function(e,t){this.lastDiff=e?{diff:e,options:t||this.getDiffOptions()}:void 0},e.prototype.getDiffOptions=function(e){var t;return void 0===e&&(e=this.variables),{query:this.document,variables:e,returnPartialData:!0,optimistic:!0,canonizeResults:null==(t=this.observableQuery)?void 0:t.options.canonizeResults}},e.prototype.setDiff=function(e){var t,n=this,r=this.lastDiff&&this.lastDiff.diff;!(e&&!e.complete&&(null==(t=this.observableQuery)?void 0:t.getLastError()))&&(this.updateLastDiff(e),this.dirty||(0,x.L)(r&&r.result,e&&e.result)||(this.dirty=!0,this.notifyTimeout||(this.notifyTimeout=setTimeout(function(){return n.notify()},0))))},e.prototype.setObservableQuery=function(e){var t=this;e!==this.observableQuery&&(this.oqListener&&this.listeners.delete(this.oqListener),this.observableQuery=e,e?(e.queryInfo=this,this.listeners.add(this.oqListener=function(){t.getDiff().fromOptimisticTransaction?e.observe():K(e)})):delete this.oqListener)},e.prototype.notify=function(){var e=this;
27es(this),this.shouldNotify()&&this.listeners.forEach(function(t){return t(e)}),this.dirty=!1},e.prototype.shouldNotify=function(){if(!this.dirty||!this.listeners.size)return!1;if((0,z.bi)(this.networkStatus)&&this.observableQuery){var e=this.observableQuery.options.fetchPolicy;if("cache-only"!==e&&"cache-and-network"!==e)return!1}return!0},e.prototype.stop=function(){if(!this.stopped){this.stopped=!0,this.reset(),this.cancel(),this.cancel=e.prototype.cancel;var t=this.observableQuery;t&&t.stopPolling()}},e.prototype.cancel=function(){},e.prototype.updateWatch=function(e){var t=this;void 0===e&&(e=this.variables);var n=this.observableQuery;if(!n||"no-cache"!==n.options.fetchPolicy){var i=(0,r.Cl)((0,r.Cl)({},this.getDiffOptions(e)),{watcher:this,callback:function(e){return t.setDiff(e)}});this.lastWatch&&(0,x.L)(i,this.lastWatch)||(this.cancel(),this.cancel=this.cache.watch(this.lastWatch=i))}},e.prototype.resetLastWrite=function(){this.lastWrite=void 0},e.prototype.shouldWrite=function(e,t){var n=this.lastWrite;return!(n&&n.dmCount===ea.get(this.cache)&&(0,x.L)(t,n.variables)&&(0,x.L)(e.data,n.result.data))},e.prototype.markResult=function(e,t,n,r){var i=this,a=new k.ZI,o=(0,y.E)(e.errors)?e.errors.slice(0):[];if(this.reset(),"incremental"in e&&(0,y.E)(e.incremental)){var s=b(this.getDiff().result,e);e.data=s}else if("hasNext"in e&&e.hasNext){var u=this.getDiff();e.data=a.merge(u.result,e.data)}this.graphQLErrors=o,"no-cache"===n.fetchPolicy?this.updateLastDiff({result:e.data,complete:!0},this.getDiffOptions(n.variables)):0!==r&&(el(e,n.errorPolicy)?this.cache.performTransaction(function(a){if(i.shouldWrite(e,n.variables))a.writeQuery({query:t,data:e.data,variables:n.variables,overwrite:1===r}),i.lastWrite={result:e,variables:n.variables,dmCount:ea.get(i.cache)};else if(i.lastDiff&&i.lastDiff.diff.complete){e.data=i.lastDiff.diff.result;return}var o=i.getDiffOptions(n.variables),s=a.diff(o);!i.stopped&&(0,x.L)(i.variables,n.variables)&&i.updateWatch(n.variables),i.updateLastDiff(s,o),s.complete&&(e.data=s.result)}):this.lastWrite=void 0)},e.prototype.markReady=function(){return this.networkError=null,this.networkStatus=z.pT.ready},e.prototype.markError=function(e){return this.networkStatus=z.pT.error,this.lastWrite=void 0,this.reset(),e.graphQLErrors&&(this.graphQLErrors=e.graphQLErrors),e.networkError&&(this.networkError=e.networkError),e},e}();function el(e,t){void 0===t&&(t="none");var n="ignore"===t||"all"===t,r=!_(e);return!r&&n&&e.data&&(r=!0),r}var ec=n(13832),ed=n(29366),ef=n(85629),ep=Object.prototype.hasOwnProperty,em=Object.create(null),eh=function(){function e(e){var t=e.cache,n=e.link,r=e.defaultOptions,i=e.documentTransform,a=e.queryDeduplication,o=e.onBroadcast,s=e.ssrMode,u=e.clientAwareness,l=e.localState,c=e.assumeImmutableResults,d=void 0===c?!!t.assumeImmutableResults:c,f=e.defaultContext,p=this;this.clientAwareness={},this.queries=new Map,this.fetchCancelFns=new Map,this.transformCache=new ed.A(ef.v["queryManager.getDocumentInfo"]||2e3),this.queryIdCounter=1,this.requestIdCounter=1,this.mutationIdCounter=1,this.inFlightLinkObservables=new ec.b(!1);var m=new q.c(function(e){return p.cache.transformDocument(e)},{cache:!1});this.cache=t,this.link=n,this.defaultOptions=r||Object.create(null),this.queryDeduplication=void 0!==a&&a,this.clientAwareness=void 0===u?{}:u,this.localState=l||new ei({cache:t}),this.ssrMode=void 0!==s&&s,this.assumeImmutableResults=d,this.documentTransform=i?m.concat(i).concat(m):m,this.defaultContext=f||Object.create(null),(this.onBroadcast=o)&&(this.mutationStore=Object.create(null))}return e.prototype.stop=function(){var e=this;this.queries.forEach(function(t,n){e.stopQueryNoBroadcast(n)}),this.cancelPendingFetches((0,i.vA)(25))},e.prototype.cancelPendingFetches=function(e){this.fetchCancelFns.forEach(function(t){return t(e)}),this.fetchCancelFns.clear()},e.prototype.mutate=function(e){return(0,r.sH)(this,arguments,void 0,function(e){var t,n,a,o,s,u,l,c=e.mutation,d=e.variables,f=e.optimisticResponse,p=e.updateQueries,m=e.refetchQueries,v=void 0===m?[]:m,y=e.awaitRefetchQueries,k=void 0!==y&&y,g=e.update,b=e.onQueryUpdated,S=e.fetchPolicy,N=void 0===S?(null==(u=this.defaultOptions.mutate)?void 0:u.fetchPolicy)||"network-only":S,F=e.errorPolicy,O=void 0===F?(null==(l=this.defaultOptions.mutate)?void 0:l.errorPolicy)||"none":F,w=e.keepRootFields,C=e.context;return(0,r.YH)(this,function(e){switch(e.label){case 0:if((0,i.V1)(c,26),(0,i.V1)("network-only"===N||"no-cache"===N,27),t=this.generateMutationId(),c=this.cache.transformForLink(this.transform(c)),n=this.getDocumentInfo(c).hasClientExports,d=this.getVariables(c,d),!n)return[3,2];return[4,this.localState.addExportedVariables(c,d,C)];case 1:d=e.sent(),e.label=2;case 2:return a=this.mutationStore&&(this.mutationStore[t]={mutation:c,variables:d,loading:!0,error:null}),o=f&&this.markMutationOptimistic(f,{mutationId:t,document:c,variables:d,fetchPolicy:N,errorPolicy:O,context:C,updateQueries:p,update:g,keepRootFields:w}),this.broadcastQueries(),s=this,[2,new Promise(function(e,n){return M(s.getObservableFromLink(c,(0,r.Cl)((0,r.Cl)({},C),{optimisticResponse:o?f:void 0}),d,!1),function(e){if(_(e)&&"none"===O)throw new h.K4({graphQLErrors:V(e)});a&&(a.loading=!1,a.error=null);var n=(0,r.Cl)({},e);return"function"==typeof v&&(v=v(n)),"ignore"===O&&_(n)&&delete n.errors,s.markMutationResult({mutationId:t,result:n,document:c,variables:d,fetchPolicy:N,errorPolicy:O,context:C,update:g,updateQueries:p,awaitRefetchQueries:k,refetchQueries:v,removeOptimistic:o?t:void 0,onQueryUpdated:b,keepRootFields:w})}).subscribe({next:function(t){s.broadcastQueries(),"hasNext"in t&&!1!==t.hasNext||e(t)},error:function(e){a&&(a.loading=!1,a.error=e),o&&s.cache.removeOptimistic(t),s.broadcastQueries(),n(e instanceof h.K4?e:new h.K4({networkError:e}))}})})]}})})},e.prototype.markMutationResult=function(e,t){var n=this;void 0===t&&(t=this.cache);var i=e.result,a=[],o="no-cache"===e.fetchPolicy;if(!o&&el(i,e.errorPolicy)){if(g(i)||a.push({result:i.data,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables}),g(i)&&(0,y.E)(i.incremental)){var s=t.diff({id:"ROOT_MUTATION",query:this.getDocumentInfo(e.document).asQuery,variables:e.variables,optimistic:!1,returnPartialData:!0}
27),u=void 0;s.result&&(u=b(s.result,i)),void 0!==u&&(i.data=u,a.push({result:u,dataId:"ROOT_MUTATION",query:e.document,variables:e.variables}))}var l=e.updateQueries;l&&this.queries.forEach(function(e,r){var o=e.observableQuery,s=o&&o.queryName;if(s&&ep.call(l,s)){var u=l[s],c=n.queries.get(r),d=c.document,f=c.variables,p=t.diff({query:d,variables:f,returnPartialData:!0,optimistic:!1}),m=p.result;if(p.complete&&m){var h=u(m,{mutationResult:i,queryName:d&&(0,P.n4)(d)||void 0,queryVariables:f});h&&a.push({result:h,dataId:"ROOT_QUERY",query:d,variables:f})}}})}if(a.length>0||(e.refetchQueries||"").length>0||e.update||e.onQueryUpdated||e.removeOptimistic){var c=[];if(this.refetchQueries({updateCache:function(t){o||a.forEach(function(e){return t.write(e)});var s,u=e.update,l=!(g(s=i)||"hasNext"in s&&"data"in s)||g(i)&&!i.hasNext;if(u){if(!o){var c=t.diff({id:"ROOT_MUTATION",query:n.getDocumentInfo(e.document).asQuery,variables:e.variables,optimistic:!1,returnPartialData:!0});c.complete&&("incremental"in(i=(0,r.Cl)((0,r.Cl)({},i),{data:c.result}))&&delete i.incremental,"hasNext"in i&&delete i.hasNext)}l&&u(t,i,{context:e.context,variables:e.variables})}o||e.keepRootFields||!l||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 c.push(e)}),e.awaitRefetchQueries||e.onQueryUpdated)return Promise.all(c).then(function(){return i})}return Promise.resolve(i)},e.prototype.markMutationOptimistic=function(e,t){var n=this,i="function"==typeof e?e(t.variables,{IGNORE:em}):e;return i!==em&&(this.cache.recordOptimisticTransaction(function(e){try{n.markMutationResult((0,r.Cl)((0,r.Cl)({},t),{result:{data:i}}),e)}catch(e){}},t.mutationId),!0)},e.prototype.fetchQuery=function(e,t,n){return this.fetchConcastWithInfo(e,t,n).concast.promise},e.prototype.getQueryStore=function(){var e=Object.create(null);return this.queries.forEach(function(t,n){e[n]={variables:t.variables,networkStatus:t.networkStatus,networkError:t.networkError,graphQLErrors:t.graphQLErrors}}),e},e.prototype.resetErrors=function(e){var t=this.queries.get(e);t&&(t.networkError=void 0,t.graphQLErrors=[])},e.prototype.transform=function(e){return this.documentTransform.transformDocument(e)},e.prototype.getDocumentInfo=function(e){var t=this.transformCache;if(!t.has(e)){var n={hasClientExports:(0,u.f2)(e),hasForcedResolvers:this.localState.shouldForceResolvers(e),hasNonreactiveDirective:(0,u.d8)(["nonreactive"],e),clientQuery:this.localState.clientQuery(e),serverQuery:(0,T.iz)([{name:"client",remove:!0},{name:"connection"},{name:"nonreactive"}],e),defaultVars:(0,P.wY)((0,P.Vu)(e)),asQuery:(0,r.Cl)((0,r.Cl)({},e),{definitions:e.definitions.map(function(e){return"OperationDefinition"===e.kind&&"query"!==e.operation?(0,r.Cl)((0,r.Cl)({},e),{operation:"query"}):e})})};t.set(e,n)}return t.get(e)},e.prototype.getVariables=function(e,t){return(0,r.Cl)((0,r.Cl)({},this.getDocumentInfo(e).defaultVars),t)},e.prototype.watchQuery=function(e){var t=this.transform(e.query);void 0===(e=(0,r.Cl)((0,r.Cl)({},e),{variables:this.getVariables(t,e.variables)})).notifyOnNetworkStatusChange&&(e.notifyOnNetworkStatusChange=!1);var n=new eu(this),i=new J({queryManager:this,queryInfo:n,options:e});return i.lastQuery=t,this.queries.set(i.queryId,n),n.init({document:t,observableQuery:i,variables:i.variables}),i},e.prototype.query=function(e,t){var n=this;return void 0===t&&(t=this.generateQueryId()),(0,i.V1)(e.query,28),(0,i.V1)("Document"===e.query.kind,29),(0,i.V1)(!e.returnPartialData,30),(0,i.V1)(!e.pollInterval,31),this.fetchQuery(t,(0,r.Cl)((0,r.Cl)({},e),{query:this.transform(e.query)})).finally(function(){return n.stopQuery(t)})},e.prototype.generateQueryId=function(){return String(this.queryIdCounter++)},e.prototype.generateRequestId=function(){return this.requestIdCounter++},e.prototype.generateMutationId=function(){return String(this.mutationIdCounter++)},e.prototype.stopQueryInStore=function(e){this.stopQueryInStoreNoBroadcast(e),this.broadcastQueries()},e.prototype.stopQueryInStoreNoBroadcast=function(e){var t=this.queries.get(e);t&&t.stop()},e.prototype.clearStore=function(e){return void 0===e&&(e={discardWatches:!0}
27),this.cancelPendingFetches((0,i.vA)(32)),this.queries.forEach(function(e){e.observableQuery?e.networkStatus=z.pT.loading:e.stop()}),this.mutationStore&&(this.mutationStore=Object.create(null)),this.cache.reset(e)},e.prototype.getObservableQueries=function(e){var t=this;void 0===e&&(e="active");var n=new Map,a=new Map,o=new Set;return Array.isArray(e)&&e.forEach(function(e){"string"==typeof e?a.set(e,!1):(0,j.Kc)(e)?a.set(t.transform(e),!1):(0,v.U)(e)&&e.query&&o.add(e)}),this.queries.forEach(function(t,r){var i=t.observableQuery,o=t.document;if(i){if("all"===e)return void n.set(r,i);var s=i.queryName;if("standby"===i.options.fetchPolicy||"active"===e&&!i.hasObservers())return;("active"===e||s&&a.has(s)||o&&a.has(o))&&(n.set(r,i),s&&a.set(s,!0),o&&a.set(o,!0))}}),o.size&&o.forEach(function(e){var a=(0,Q.v)("legacyOneTimeQuery"),o=t.getQuery(a).init({document:e.query,variables:e.variables}),s=new J({queryManager:t,queryInfo:o,options:(0,r.Cl)((0,r.Cl)({},e),{fetchPolicy:"network-only"})});(0,i.V1)(s.queryId===a),o.setObservableQuery(s),n.set(a,s)}),n},e.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 a=r.options.fetchPolicy;r.resetLastResults(),(e||"standby"!==a&&"cache-only"!==a)&&n.push(r.refetch()),t.getQuery(i).setDiff(null)}),this.broadcastQueries(),Promise.all(n)},e.prototype.setObservableQuery=function(e){this.getQuery(e.queryId).setObservableQuery(e)},e.prototype.startGraphQLSubscription=function(e){var t=this,n=e.query,r=e.fetchPolicy,i=e.errorPolicy,a=void 0===i?"none":i,o=e.variables,s=e.context,u=void 0===s?{}:s;n=this.transform(n),o=this.getVariables(n,o);var c=function(e){return t.getObservableFromLink(n,u,e).map(function(i){"no-cache"!==r&&(el(i,a)&&t.cache.write({query:n,result:i.data,dataId:"ROOT_SUBSCRIPTION",variables:e}),t.broadcastQueries());var o=_(i),s=(0,h.uR)(i);if(o||s){var u={};if(o&&(u.graphQLErrors=i.errors),s&&(u.protocolErrors=i.extensions[h.K$]),"none"===a||s)throw new h.K4(u)}return"ignore"===a&&delete i.errors,i})};if(this.getDocumentInfo(n).hasClientExports){var d=this.localState.addExportedVariables(n,o,u).then(c);return new l.c(function(e){var t=null;return d.then(function(n){return t=n.subscribe(e)},e.error),function(){return t&&t.unsubscribe()}})}return c(o)},e.prototype.stopQuery=function(e){this.stopQueryNoBroadcast(e),this.broadcastQueries()},e.prototype.stopQueryNoBroadcast=function(e){this.stopQueryInStoreNoBroadcast(e),this.removeQuery(e)},e.prototype.removeQuery=function(e){this.fetchCancelFns.delete(e),this.queries.has(e)&&(this.getQuery(e).stop(),this.queries.delete(e))},e.prototype.broadcastQueries=function(){this.onBroadcast&&this.onBroadcast(),this.queries.forEach(function(e){return e.notify()})},e.prototype.getLocalState=function(){return this.localState},e.prototype.getObservableFromLink=function(e,t,n,i){var a,s,u=this;void 0===i&&(i=null!=(a=null==t?void 0:t.queryDeduplication)?a:this.queryDeduplication);var c=this.getDocumentInfo(e),d=c.serverQuery,f=c.clientQuery;if(d){var p=this.inFlightLinkObservables,m=this.link,h={query:d,variables:n,operationName:(0,P.n4)(d)||void 0,context:this.prepareContext((0,r.Cl)((0,r.Cl)({},t),{forceFetch:!i}))};if(t=h.context,i){var v=(0,F.y)(d),y=(0,A.M)(n),k=p.lookup(v,y);if(!(s=k.observable)){var g=new W([o(m,h)]);s=k.observable=g,g.beforeNext(function(){p.remove(v,y)})}}else s=new W([o(m,h)])}else s=new W([l.c.of({data:{}})]),t=this.prepareContext(t);return f&&(s=M(s,function(e){return u.localState.runResolvers({document:f,remoteResult:e,context:t,variables:n})})),s},e.prototype.getResultsFromLink=function(e,t,n){var r=e.lastRequestId=this.generateRequestId(),i=this.cache.transformForLink(n.query);return M(this.getObservableFromLink(i,n.context,n.variables),function(a){var o=V(a),s=o.length>0;if(r>=e.lastRequestId){if(s&&"none"===n.errorPolicy)throw e.markError(new h.K4({graphQLErrors:o}));e.markResult(a,i,n,t),e.markReady()}var u={data:a.data,loading:!1,networkStatus:z.pT.ready};return s&&"ignore"!==n.errorPolicy&&(u.errors=o,u.networkStatus=z.pT.error),u},function(t){var n=(0,h.Mn)(t)?t:new h.K4({networkError:t});throw r>=e.lastRequestId&&e.markError(n),n})},e.prototype.fetchConcastWithInfo=function(e,t,n,r){var i,a,o=this;void 0===n&&(n=z.pT.loading),void 0===r&&(r=t.query);var s=this.getVariables(r,t.variables),u=this.getQuery(e),l=this.defaultOptions.watchQuery,c=t.fetchPolicy,d=void 0===c?l&&l.fetchPolicy||"cache-first":c,f=t.errorPolicy,p=void 0===f?l&&l.errorPolicy||"none":f,m=t.returnPartialData,h=t.notifyOnNetworkStatusChange,v=t.context,y=Object.assign({},t,{query:r,variables:s,fetchPolicy:d,errorPolicy:p,returnPartialData:void 0!==m&&m,notifyOnNetworkStatusChange:void 0!==h&&h,context:void 0===v?{}:v}),k=function(e){y.variables=e;var r=o.fetchQueryByPolicy(u,y,n);return"standby"!==y.fetchPolicy&&r.sources.length>0&&u.observableQuery&&u.observableQuery.applyNextFetchPolicy("after-fetch",t),r},g=function(){return o.fetchCancelFns.delete(e)};if(this.fetchCancelFns.set(e,function(e){g(),setTimeout(function(){return i.cancel(e)})}),this.getDocumentInfo(y.query).hasClientExports)i=new W(this.localState.addExportedVariables(y.query,y.variables,y.context).then(k).then(function(e){return e.sources})),a=!0;else{var b=k(y.variables);a=b.fromLink,i=new W(b.sources)}return i.promise.then(g,g),{concast:i,fromLink:a}},e.prototype.refetchQueries=function(e){var t=this,n=e.updateCache,r=e.include,i=e.optimistic,a=void 0!==i&&i,o=e.removeOptimistic,s=void 0===o?a?(0,Q.v)("refetchQueries"):void 0:o,u=e.onQueryUpdated,l=new Map;r&&this.getObservableQueries(r).forEach(function(e,n){l.set(n,{oq:e,lastDiff:t.getQuery(n).getDiff()})});var c=new Map;return n&&this.cache.batch({update:n,optimistic:a&&s||!1,removeOptimistic:s,onWatchUpdated:function(e,t,n){var r=e.watcher instanceof eu&&e.watcher.observableQuery;if(r){if(u){l.delete(r.queryId);var i=u(r,t,n);return!0===i&&(i=r.refetch()),!1!==i&&c.set(r,i),i}null!==u&&l.set(r.queryId,{oq:r,lastDiff:n,diff:t})}}}),l.size&&l.forEach(function(e,n){var r,i=e.oq,a=e.lastDiff,o=e.diff;if(u){if(!o){var s=i.queryInfo;s.reset(),o=s.getDiff()}r=u(i,o,a)}u&&!0!==r||(r=i.refetch()),!1!==r&&c.set(i,r),n.indexOf("legacyOneTimeQuery")>=0&&t.stopQueryNoBroadcast(n)}),s&&this.cache.removeOptimistic(s),c},e.prototype.fetchQueryByPolicy=function(e,t,n){var i=this,a=t.query,o=t.variables,s=t.fetchPolicy,u=t.refetchWritePolicy,c=t.errorPolicy,d=t.returnPartialData,f=t.context,p=t.notifyOnNetworkStatusChange,m=e.networkStatus;e.init({document:a,variables:o,networkStatus:n});var h=function(){return e.getDiff()},v=function(t,n){void 0===n&&(n=e.networkStatus||z.pT.loading);var s=t.result,u=function(e){return l.c.of((0,r.Cl)({data:e,loading:(0,z.bi)(n),networkStatus:n},t.complete?null:{partial:!0}))};return s&&i.getDocumentInfo(a).hasForcedResolvers?i.localState.runResolvers({document:a,remoteResult:{data:s},context:f,variables:o,onlyRunForcedResolvers:!0}).then(function(e){return u(e.data||void 0)}):"none"===c&&n===z.pT.refetch&&Array.isArray(t.missing)?u(void 0):u(s)},y="no-cache"===s?0:n===z.pT.refetch&&"merge"!==u?1:2,k=function(){return i.getResultsFromLink(e,y,{query:a,variables:o,context:f,fetchPolicy:s,errorPolicy:c})},g=p&&"number"==typeof m&&m!==n&&(0,z.bi)(n);switch(s){default:case"cache-first":var b=h();if(b.complete)return{fromLink:!1,sources:[v(b,e.markReady())]};if(d||g)return{fromLink:!0,sources:[v(b),k()]};return{fromLink:!0,sources:[k()]};case"cache-and-network":var b=h();if(b.complete||d||g)return{fromLink:!0,sources:[v(b),k()]};return{fromLink:!0,sources:[k()]};case"cache-only":return{fromLink:!1,sources:[v(h(),e.markReady())]};case"network-only":if(g)return{fromLink:!0,sources:[v(h()),k()]};return{fromLink:!0,sources:[k()]};case"no-cache":if(g)return{fromLink:!0,sources:[v(e.getDiff()),k()]};return{fromLink:!0,sources:[k()]};case"standby":return{fromLink:!1,sources:[]}}},e.prototype.getQuery=function(e){return e&&!this.queries.has(e)&&this.queries.set(e,new eu(this,e)),this.queries.get(e)},e.prototype.prepareContext=function(e){void 0===e&&(e={});var t=this.localState.prepareContext(e);return(0,r.Cl)((0,r.Cl)((0,r.Cl)({},this.defaultContext),t),{clientAwareness:this.clientAwareness})},e}(),ev=n(73001),ey=function(){function e(e){var t=this;if(this.resetStoreCallbacks=[],this.clearStoreCallbacks=[],!e.cac
27he)throw(0,i.vA)(15);var n=e.uri,r=e.credentials,o=e.headers,u=e.cache,l=e.documentTransform,c=e.ssrMode,d=void 0!==c&&c,f=e.ssrForceFetchDelay,p=void 0===f?0:f,m=e.connectToDevTools,h=void 0===m?"object"==typeof window&&!window.__APOLLO_CLIENT__&&!1:m,v=e.queryDeduplication,y=void 0===v||v,k=e.defaultOptions,g=e.defaultContext,b=e.assumeImmutableResults,S=void 0===b?u.assumeImmutableResults:b,N=e.resolvers,F=e.typeDefs,O=e.fragmentMatcher,w=e.name,C=e.version,E=e.link;E||(E=n?new R({uri:n,credentials:r,headers:o}):a.C.empty()),this.link=E,this.cache=u,this.disableNetworkFetches=d||p>0,this.queryDeduplication=y,this.defaultOptions=k||Object.create(null),this.typeDefs=F,p&&setTimeout(function(){return t.disableNetworkFetches=!1},p),this.watchQuery=this.watchQuery.bind(this),this.query=this.query.bind(this),this.mutate=this.mutate.bind(this),this.watchFragment=this.watchFragment.bind(this),this.resetStore=this.resetStore.bind(this),this.reFetchObservableQueries=this.reFetchObservableQueries.bind(this),this.version=s.r,this.localState=new ei({cache:u,client:this,resolvers:N,fragmentMatcher:O}),this.queryManager=new eh({cache:this.cache,link:this.link,defaultOptions:this.defaultOptions,defaultContext:g,documentTransform:l,queryDeduplication:y,ssrMode:d,clientAwareness:{name:w,version:C},localState:this.localState,assumeImmutableResults:S,onBroadcast:h?function(){t.devToolsHookCb&&t.devToolsHookCb({action:{},state:{queries:t.queryManager.getQueryStore(),mutations:t.queryManager.mutationStore||{}},dataWithOptimisticResults:t.cache.extract(!0)})}:void 0}),h&&this.connectToDevTools()}return e.prototype.connectToDevTools=function(){if("object"==typeof window){var e=window,t=Symbol.for("apollo.devtools");(e[t]=e[t]||[]).push(this),e.__APOLLO_CLIENT__=this}},Object.defineProperty(e.prototype,"documentTransform",{get:function(){return this.queryManager.documentTransform},enumerable:!1,configurable:!0}),e.prototype.stop=function(){this.queryManager.stop()},e.prototype.watchQuery=function(e){return this.defaultOptions.watchQuery&&(e=(0,ev.l)(this.defaultOptions.watchQuery,e)),this.disableNetworkFetches&&("network-only"===e.fetchPolicy||"cache-and-network"===e.fetchPolicy)&&(e=(0,r.Cl)((0,r.Cl)({},e),{fetchPolicy:"cache-first"})),this.queryManager.watchQuery(e)},e.prototype.query=function(e){return this.defaultOptions.query&&(e=(0,ev.l)(this.defaultOptions.query,e)),(0,i.V1)("cache-and-network"!==e.fetchPolicy,16),this.disableNetworkFetches&&"network-only"===e.fetchPolicy&&(e=(0,r.Cl)((0,r.Cl)({},e),{fetchPolicy:"cache-first"})),this.queryManager.query(e)},e.prototype.mutate=function(e){return this.defaultOptions.mutate&&(e=(0,ev.l)(this.defaultOptions.mutate,e)),this.queryManager.mutate(e)},e.prototype.subscribe=function(e){return this.queryManager.startGraphQLSubscription(e)},e.prototype.readQuery=function(e,t){return void 0===t&&(t=!1),this.cache.readQuery(e,t)},e.prototype.watchFragment=function(e){return this.cache.watchFragment(e)},e.prototype.readFragment=function(e,t){return void 0===t&&(t=!1),this.cache.readFragment(e,t)},e.prototype.writeQuery=function(e){var t=this.cache.writeQuery(e);return!1!==e.broadcast&&this.queryManager.broadcastQueries(),t},e.prototype.writeFragment=function(e){var t=this.cache.writeFragment(e);return!1!==e.broadcast&&this.queryManager.broadcastQueries(),t},e.prototype.__actionHookForDevTools=function(e){this.devToolsHookCb=e},e.prototype.__requestRaw=function(e){return o(this.link,e)},e.prototype.resetStore=function(){var e=this;return Promise.resolve().then(function(){return e.queryManager.clearStore({discardWatches:!1})}).then(function(){return Promise.all(e.resetStoreCallbacks.map(function(e){return e()}))}).then(function(){return e.reFetchObservableQueries()})},e.prototype.clearStore=function(){var e=this;return Promise.resolve().then(function(){return e.queryManager.clearStore({discardWatches:!0})}).then(function(){return Promise.all(e.clearStoreCallbacks.map(function(e){return e()}))})},e.prototype.onResetStore=function(e){var t=this;return this.resetStoreCallbacks.push(e),function(){t.resetStoreCallbacks=t.resetStoreCallbacks.filter(function(t){return t!==e})}},e.prototype.onClearStore=function(e){var t=this;return this.clearStoreCallbacks.push(e),function(){t.clearStoreCallbacks=t.clearStoreCallbacks.filter(function(t){return t!==e})}},e.prototype.reFetchObservableQueries=function(e){return this.queryManager.reFetchObservableQueries(e)},e.prototype.refetchQueries=function(e){var t=this.queryManager.refetchQueries(e),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){}),i},e.prototype.getObservableQueries=function(e){return void 0===e&&(e="active"),this.queryManager.getObservableQueries(e)},e.prototype.extract=function(e){return this.cache.extract(e)},e.prototype.restore=function(e){return this.cache.restore(e)},e.prototype.addResolvers=function(e){this.localState.addResolvers(e)},e.prototype.setResolvers=function(e){this.localState.setResolvers(e)},e.prototype.getResolvers=function(){return this.localState.getResolvers()},e.prototype.setLocalStateFragmentMatcher=function(e){this.localState.setFragmentMatcher(e)},e.prototype.setLink=function(e){this.link=this.queryManager.link=e},Object.defineProperty(e.prototype,"defaultContext",{get:function(){return this.queryManager.defaultContext}
27,enumerable:!1,configurable:!0}),e}(),ek=a.C.from,eg=n(65352),eb={disable:function(e){return e.meta.persistedQueryNotSupported},retry:function(e){var t=e.meta;return t.persistedQueryNotSupported||t.persistedQueryNotFound},useGETForHashedQueries:!1},eS=function(e){function t(){n=void 0}(0,i.V1)(e&&("function"==typeof e.sha256||"function"==typeof e.generateHash),40);var n,o=(0,$.o)(eb,e),s=o.sha256,u=o.generateHash,c=void 0===u?function(e){return Promise.resolve(s((0,F.y)(e)))}:u,d=o.disable,f=o.retry,p=o.useGETForHashedQueries,m=!0,h=function(e){return new Promise(function(t){return t(c(e))})};return Object.assign(new a.C(function(e,a){(0,i.V1)(a,41);var o=e.query;return new l.c(function(i){var s,u,l=!1,c=!1,v=function(n,r){var i=n.response,o=n.networkError;if(!l&&(i&&i.errors||o)){l=!0;var p,h,v=[],g=i&&i.errors;(0,y.E)(g)&&v.push.apply(v,g);var b=void 0;"string"!=typeof(null==o?void 0:o.result)&&(b=o&&o.result&&o.result.errors),(0,y.E)(b)&&v.push.apply(v,b);var S={response:i,networkError:o,operation:e,graphQLErrors:(0,y.E)(v)?v:void 0,meta:(p=Object.create(null),h=Object.create(null),(0,y.E)(v)&&v.forEach(function(e){var t;p[e.message]=e,"string"==typeof(null==(t=e.extensions)?void 0:t.code)&&(h[e.extensions.code]=e)}),{persistedQueryNotSupported:!!(p.PersistedQueryNotSupported||h.PERSISTED_QUERY_NOT_SUPPORTED),persistedQueryNotFound:!!(p.PersistedQueryNotFound||h.PERSISTED_QUERY_NOT_FOUND)})};if((m=!d(S))||t(),f(S)){s&&s.unsubscribe(),e.setContext({http:{includeQuery:!0,includeExtensions:m},fetchOptions:{method:"POST"}}),c&&e.setContext({fetchOptions:u}),s=a(e).subscribe(k);return}}r()},k={next:function(e){v({response:e},function(){return i.next(e)})},error:function(e){v({networkError:e},function(){return i.error(e)})},complete:i.complete.bind(i)};return e.setContext({http:{includeQuery:!m,includeExtensions:m}}),p&&m&&!e.query.definitions.some(function(e){return"OperationDefinition"===e.kind&&"mutation"===e.operation})&&(e.setContext(function(e){var t=e.fetchOptions,n=void 0===t?{}:t;return u=n,{fetchOptions:(0,r.Cl)((0,r.Cl)({},n),{method:"GET"})}}),c=!0),m?(function(e){if(!e||"object"!=typeof e)return h(e);n||(n=new ed.A(ef.v["PersistedQueryLink.persistedQueryHashes"]||2e3));var t=n.get(e);return t||n.set(e,t=h(e)),t})(o).then(function(t){e.extensions.persistedQuery={version:1,sha256Hash:t},s=a(e).subscribe(k)}).catch(i.error.bind(i)):s=a(e).subscribe(k),function(){s&&s.unsubscribe()}})}),{resetHashCache:t},{})},eN=n(2719),eF=n(33974),eO=n(12053),ew=n(14297),eC=n.n(ew),eE=n(67236);function eT(e){return new l.c(function(t){e.then(function(e){t.next(e),t.complete()}).catch(t.error.bind(t))})}var eP=n(17606),eI=n(11355),eD=n(19763),eR=n(2305);let ex=eC()?.AsyncLocalStorage?new(eC()).AsyncLocalStorage:void 0,eA={isRefreshing:!1,pendingRequests:[]};function eq(){let e=ex?.getStore();return e||(ex?{isRefreshing:!1,pendingRequests:[]}:eA)}function eM(e){let t=Math.floor(new Date(e).getTime()/1e3),n=Math.floor(Date.now()/1e3);return!!isNaN(t)||n>=t-eI.pI}var e_=n(96661),eV=n(81812),ej=n(2877),eQ=n(8531),eL=n(53743),eB=n(65291);let eU=e=>t=>{let{retryAttempt:n=0}=t.getContext();return Array.isArray(e)?e[n%e.length]:e};var eW=n(74594),ez=n(60339),e$=n(97217);let eH={cardType:"cardType",customerReference:"customerReference",includes3DS:"includes3DS",items:"items",journeyType:"journeyType",paymentMethod:"paymentMethod",paymentProvider:"paymentProvider",purchaseType:"purchaseType",usingAdyen:"usingAdyen",referrer:"referrer",referrerName:"referrer",resolveType:"resolveType",isExpressCheckout:"isExpressCheckout",basketProductStaticIds:"basketProductStaticIds",basketVoucherCodes:"basketVoucherCodes",basketResolvedWarnings:"basketResolvedWarnings",orderWarnings:"orderWarnings",includesRavelinDeviceId:"includesRavelinDeviceId",planPickerWarnings:"planPickerWarnings",crossBrowser:"crossBrowser"},eG=[e$.rE],eY=/(\d{4})-(\d{2})-(\d{2})T((\d{2}):(\d{2}):(\d{2}))\.(\d{1,3})Z/,eJ=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new a.C((n,r)=>{let i,{platform:a,provider:o,proposition:s,territory:u,language:l,device:c,appName:d,authScheme:f}=(0,eF.zj)(),p=(e=>{let t="FEATURE__",n=RegExp(`^${t}`),r=(0,ez.iM)().all();if(!e||!r)return;let i=Object.entries(e).reduce((e,t)=>
27{let[n,r]=t;return!0===r?[...e,n]:e},[]),a=Object.entries(r).reduce((e,r)=>{let[a,o]=r,s=a.trim(),u=o?.trim(),l=s.substring(t.length);return s&&u&&n.test(s)&&i.includes(l)?[...e,`${l}=${u}`]:e},[]);return a.length>0?a.join(";"):void 0})(e),m=((i=(0,ez.iM)().all())?Object.fromEntries(Object.entries(i).filter(e=>{let[t,n]=e,r=t?.trim(),i=n?.trim();if(r&&i&&eG.includes(r))return r===e$.rE&&(()=>{let{env:e}=(0,eF.zj)();return"dev"===e||"stable-int"===e})()&&(e=>{if(e){if(!eY.test(e))return console.log(`Invalid date: ${e}. The value should be of format YYYY-MM-DDTHH:mm:ss.sssZ`),!1;try{let t=new Date(e);return t instanceof Date&&!isNaN(t.getTime())}catch(t){console.log(`Invalid date: ${e}. The value should be of format YYYY-MM-DDTHH:mm:ss.sssZ`)}}return!1})(i);return!1})):{})||{};return n.setContext(e=>{let{headers:n={},requestId:r="unknown",...i}=e;return{...i,headers:{...(0,eW.d)({platform:a,provider:o,proposition:s,territory:u,device:c,language:l,requestId:r,messoToken:(0,ez.dQ)(),ssoToken:(0,ez.xt)(),application:d,umvToken:(0,ez.Ig)(),tokenType:f,activeTerritory:(0,ez.nR)(),...p?{bffFeature:p}:{},...m,...t}),...n}}}),r(n)})};var eK=n(49254),eX=n(43072),eZ=n(1469),e0=n(13139),e1=function(){function e(e,t,n,i,a){var o=this;this.observer=e,this.operation=t,this.forward=n,this.delayFor=i,this.retryIf=a,this.retryCount=0,this.currentSubscription=null,this.onError=function(e){return(0,r.sH)(o,void 0,void 0,function(){return(0,r.YH)(this,function(t){switch(t.label){case 0:return this.retryCount+=1,[4,this.retryIf(this.retryCount,this.operation,e)];case 1:if(t.sent())return this.scheduleRetry(this.delayFor(this.retryCount,this.operation,e)),[2];return this.observer.error(e),[2]}})})},this.try()}return e.prototype.cancel=function(){this.currentSubscription&&this.currentSubscription.unsubscribe(),clearTimeout(this.timerId),this.timerId=void 0,this.currentSubscription=null},e.prototype.try=function(){this.currentSubscription=this.forward(this.operation).subscribe({next:this.observer.next.bind(this.observer),error:this.onError,complete:this.observer.complete.bind(this.observer)})},e.prototype.scheduleRetry=function(e){var t=this;if(this.timerId)throw Error("RetryLink BUG! Encountered overlapping retries");this.timerId=setTimeout(function(){t.timerId=void 0,t.try()},e)},e}(),e2=function(e){function t(t){var n,r,i,a,o,s,u,l,c,d,f,p,m=e.call(this)||this,h=t||{},v=h.attempts,y=h.delay;return m.delayFor="function"==typeof y?y:(i=void 0===(r=(n=y||{}).initial)?300:r,o=void 0===(a=n.jitter)||a,u=void 0===(s=n.max)?1/0:s,l=o?i:i/2,function(e){var t=Math.min(u,l*Math.pow(2,e));return o&&(t=Math.random()*t),t}),m.retryIf="function"==typeof v?v:(d=(c=v||{}).retryIf,p=void 0===(f=c.max)?5:f,function(e,t,n){return!(e>=p)&&(d?d(n,t):!!n)}),m}return(0,r.C6)(t,e),t.prototype.request=function(e,t){var n=this;return new l.c(function(r){var i=new e1(r,e,t,n.delayFor,n.retryIf);return function(){i.cancel()}})},t}(a.C);let e8=()=>0,e3=e=>1e3*Math.pow(2,e),e6=function(){let{retries:e=4}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Math.min(4,Math.ceil(e));return new e2({delay:(0,eO.S$)()?e8:e3,attempts:(e,n)=>(n.setContext({retryAttempt:e}),e<t)})};var e5=n(35720),e9=n(15713);let e7=e=>{let t=e.getContext();return(0,e9.f1)(t?.headers,e9.cI.RequestId)||"UNKNOWN"},e4={items:e=>{let t;return(t=["id","action","type"],Array.isArray(e)&&e.every(e=>t.every(t=>t in e))&&e.length)?{products:e.filter(e=>"PRODUCT"===e.type).map(e=>`${e.id}:${e.duration?`${e.duration}:`:""}${e.action}`),vouchers:e.filter(e=>"VOUCHER"===e.type).map(e=>`${e.id}:${e.action}`)}:{}}},te=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.entries(e).filter(e=>{let[t]=e;return t in eH})},tt=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Object.entries(e).filter(e=>{let[t]=e;return t in eH})?.filter(Boolean);return t?.length?Object.fromEntries(t):{}};var tn=n(56729);let tr={card:"spreedly",adyen:"bc"},ti=(e,t)=>{if(!e?.paymentMethods||!t)return;let n=Object.keys(e.paymentMethods).find(e=>e.toLowerCase()===t.toLowerCase());return n?e.paymentMethods[n]:void 0};var ta=n(94265),to=n(42436);let ts=e=>e.split("_").map(ta.A).join(""),tu=e=>t=>
27t.name?{...t,name:{...t.name,value:e}}:t,tl=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new a.C((t,n)=>{let r=e[t.operationName]||[];if(r.length>0){let e=[...r.map(e=>{if(e.context)return ts((0,to.A)(t.getContext(),e.context));if(e.input){let n=(0,to.A)(t.variables.input,e.input);if(n)return ts(String(n))}}),t.operationName].filter(Boolean).join("_");t.setContext({namespace:{operationName:e,originalOperationName:t.operationName}})}return n(t)})},tc=e=>e.getContext().namespace?.operationName??e.operationName,td=(e,t,n)=>{let r=[];return e?.forEach(e=>{let{extensions:i}=e;if(n(t,e))return;let a=i?.service??e?.name??"UNKNOWN_SERVICE",o=i?.errorCode?String(i?.errorCode):i?.status||e?.message||"0";r.push(`${a}:${o}`)}),r.join()},tf=(e,t,n)=>{let r=[];return e?.forEach(e=>{let{extensions:i}=e;!n(t,e)&&i?.reason&&r.push(i.reason)}),r.join()};var tp=n(21582),tm=n(26045),th=n(49859),tv=n(16042),ty=n(67542),tk=n(59578),tg=n(67016),tb=n(18006);let tS=e=>"OperationDefinition"===e.kind&&"mutation"===e.operation,tN=new WeakMap,tF=new a.C((e,t)=>{let n;return(0,eF.zj)()?.proposition?.toUpperCase()==="MOCK"||(0,eO.S$)()||(0,ez.dQ)()||(0,ez.dT)()||e.query.definitions.some(tS)||(void 0===(n=tN.get(e.query))&&(n=encodeURIComponent((0,eK.y)(e.query)).length,tN.set(e.query,n)),!(n<4500))||e.setContext(e=>{let{fetchOptions:t={}}=e;return{fetchOptions:{...t,method:"GET"}}}),t(e)}),tO=null;function tw(){let{retryOptions:e={},links:t=[],ssrMode:n,cache:r,connectToDevTools:i=!1,shouldIgnoreError:o=()=>!1,headerOverrides:s={},configOverrides:u,resolvers:l,operationNamespaces:c}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{graphql:d,features:f}=u??(0,eF.zj)(),p=[new a.C((e,t)=>{let n=crypto.randomUUID(),r=e?.operationName??"UNKNOWN_OPERATION";return e.setContext(e=>({...e,requestId:n})),(0,tb.nw)(r,n),t(e)}),(0,eE.S)(e=>{let{networkError:t,operation:n}=e,r=n.getContext(),i=r.requestId||"unknown",a=(0,eL.D)({requestId:i}),o=n.operationName;if(t){let e,i=t instanceof Error?t:Error(`Apollo Network error: ${t}`),s=Array.isArray(e=t?.result?.errors)?e.map(e=>e?.extensions?.errorCode??e?.extensions?.code??"UNKNOWN_ERROR_CODE").join():"";(0,e0.i)()&&eZ.L.addAction(`GraphQL::${o}`,{requestId:r.requestId,errorType:eB.pi.ErrorNetwork,statusCode:t?.statusCode,serviceErrors:s,operationName:n.operationName}),(0,e_.o)({error:i,event:{action:eB.pi.ErrorNetwork},sky:a})}}),eJ(d?.gqlFeatures,s),...c?[tl(c)]:[],(e=>{let{shouldIgnoreError:t,configOverrides:n}=e,{startActiveTrace:r,setTraceAttributes:i,activeContext:o,endTrace:s}=(0,ej.O)({moduleId:"ott-sas-web-core/graphql/middleware/apm-middleware.ts"});return new a.C((e,a)=>{let{provider:u,proposition:l,territory:c}=n??(0,eF.zj)(),d=tc(e)??"UNKNOWN_QUERY";return r(`Apollo Client - ${d}`,{context:o(),elasticCompatName:d},n=>{var r;let f,p=o();e.setContext({span:n,ctx:p});let m=(r=e?.variables,Object.keys(f=Object.fromEntries([...te(r?.input),...te(r?.optionalTransactionData)])).reduce((e,t)=>{let n=eH[t],r=f[t],i=e4[n];return i&&"function"==typeof i?{...e,...i(r)}:(e[n]=r,e)},{})),h=(0,e5._n)(),v=(0,ez.nR)(),y=(0,ez.oy)(),k=((e,t,n)=>{try{if(["ChangeCompletePaymentJourney","PurchaseCompletePaymentJourney"].some(t=>e.includes(t)))return t?.input?((e,t)=>{let n,r=Object.keys(e?.paymentMethods||{})?.[0]?.toLowerCase()||((n=t?.toLowerCase())?tr[n]??n:n);if(r){let t,n=((e,t)=>{if(!e||!["spreedly","bc"].includes(e))return{};let n=ti(t,e),r=n?.cardType;return{paymentMethod:"card",cardType:"string"==typeof r?r.toLowerCase():void 0,includes3DS:!!t?.threeDSecureAuthorisationResult,usingAdyen:"bc"===e}})(r,e);return{paymentProvider:r,paymentMethod:(t=ti(e,r),(t?.paymentMethod??r).replaceAll(" ","-").toLowerCase()),includesRavelinDeviceId:!!e?.deviceId,...n}}return{}})(t?.input,n?.paymentMethod):void 0;if(e.includes("Order")){let e;return t?.input?(e=t?.input,{...e?.purchaseType&&{purchaseType:e?.purchaseType},includesRavelinDeviceId:!!e?.deviceId}):void 0}return}catch(t){(0,eQ.C)(`getApmLabelsFromGQLRequest: Error in extracting APM labels for operation ${e}`);return}})(d,e?.variables,e.getContext()),g=(0,tn.w)("gql-request",d);return g.start(),i(n,{provider:u?.toUpperCase(),proposition:l?.toUpperCase(),territory:c?.toUpperCase(),...v&&{activeTerritory:v},...y&&{homeTerritory:y},operationName:d,...m,...k&&tt(k),...h&&{partnerId:h}}),a(e).map(r=>{let a=e.getContext(),o=a?.response?.status,u=a?.response?.headers?.get?.("via")?.split(",")?.[0]||void 0,l=a?.response?.url&&new URL(a?.response?.url)?.hostname,c=r?.extensions?.profile?.profileid,f=((e,t)=>{try{if(t?.createOrUpdateBasket||t?.basket||t?.createOrUpdateCheckoutBasket||t?.checkoutBasket){let e,n,r,i=t?.createOrUpdateBasket||t?.basket||t?.createOrUpdateCheckoutBasket||t?.checkoutBasket;return i?(e=i?.products?.map(e=>`${e?.staticId}:${e?.category}`)?.filter(Boolean)?.join(",")||"",n=i?.voucherDetails?.map(e=>e?.voucher)?.filter(Boolean)?.join(",")||"",r=i?.resolvedWarnings?.map(e=>e?.code)?.filter(Boolean)?.join(",")||"",{...e?.length&&{basketProductStaticIds:e},...n?.length&&{basketVoucherCodes:n},...r?.length&&{basketResolvedWarnings:r}}):void 0}if(t?.payments?.completePaymentJourney||t?.submitOrder){let e=t?.submitOrder||t?.payments.completePaymentJourney;return e?(e=>{let t=e?.__typename,n={...t&&{resolveType:t}};if(e?.__typename==="OrderWithWarnings"){let t=e?.warnings?.map(e=>e?.code)?.filter(Boolean)?.join(",")||"";return{...n,...t?.length&&{orderWarnings:t}}}return n})(e):void 0}if(e.includes("PlanPickerQuery")){let e,n=t?.planPicker;return n?(e=n?.warnings?.map(e=>e?.code)?.filter(Boolean)?.join(",")||"",{...e?.length&&{planPickerWarnings:e}}):void 0}return}catch(t){(0,eQ.C)(`getApmLabelsFromGQLResponse: Error in extracting APM labels for operation ${e}`);return}})(d,r?.data),p=g.end();if(i(n,{serviceErrors:td(r?.errors??[],e,t),serviceErrorsReasons:tf(r?.errors??[],e,t),requestId:e7(e),httpStatus:o,operationName:d,cdnProvider:u,requestHostname:l,requestDuration:p,...c&&{profileId:c},...f&&tt(f)}),s(n),(0,e0.i)()){let n=r?.errors??[],i=n.length>0;eZ.L.addAction(`GraphQL::${d}`,{operationName:d,requestId:e7(e),httpStatus:o,cdnProvider:u,requestHostname:l,requestDuration:p,...c&&{profileId:c},...i&&{hasErrors:i,serviceErrors:td(n,e,t),serviceErrorsReasons:tf(n,e,t)},...v&&{activeTerritory:v},...y&&{homeTerritory:y},...h&&{partnerId:h},...m,...k&&tt(k),...f&&tt(f)})}return r})})})})({shouldIgnoreError:o,configOverrides:u}),new a.C((e,t)=>{let n=(0,eO.yz)()||(0,eO.O2)()||(0,eO.pD)(),r=tc(e)??e.operationName??"UNKNOWN",i=(0,tn.w)("server-request-metadata",r);return i.start(),t(e).map(t=>{let a=e.getContext(),o=a?.response,s=i.end(),u=o?.headers?.get?.("x-cache")||void 0,l=o?.headers?.get?.("age"),c=l?Number.parseInt(l,10):NaN,d=Number.isFinite(c)?c:void 0,f=o?.headers?.get?.("via")||void 0,p=o?.headers?.get?.("x-true-cache-key")||void 0,m=o?.headers?.get?.("cache-control")||void 0,h=o?.headers?.get?.("x-cache-hits"),v=h?Number.parseInt(h,10):NaN,y=Number.isFinite(v)?v:void 0,k=o?.headers?.get?.("x-served-by")||void 0,g=o?.headers?.get?.("x-skyott-cacheable")||void 0,b=o?.status,S=e7(e),N={operationName:r,requestDuration:s,fromNetwork:!!o,...void 0!==u&&{cacheStatus:u},...void 0!==d&&{age:d},...void 0!==f&&{via:f},...void 0!==p&&{cacheKey:p},...void 0!==m&&{cacheControl:m},...void 0!==y&&{cacheHits:y},...void 0!==k&&{servedBy:k},...void 0!==g&&{skyottCacheable:g},...void 0!==b&&{httpStatus:b},...void 0!==S&&{requestId:S}};return n&&(0,tb.eT)(N),(0,e_.o)({message:`[GraphQL Request Metadata]: ${r} - Status: ${b}`,event:{name:"graphql_request_metadata",...N}}),t})}),(e=>{let{configOverrides:t}=e,{graphql:n}=t??(0,eF.zj)(),r=eU((0,eV.Z)("sas",n?.pathname,t));return new a.C((e,t)=>{let n=r(e);return e.setContext({uri:n}),t(e)})})({configOverrides:u}),new a.C((e,t)=>{let n=e.getContext(),r=n.requestId||"unknown",i=(0,eL.D)({requestId:r}),{operationName:a,query:o,variables:s}=e,u=n.headers||{},l=o?(0,eK.y)(o):"",c=(()=>
27{if(n.uri)try{let e=new URL(n.uri);return{domain:e.hostname,path:e.pathname,query:e.search?e.search.slice(1):"",scheme:(0,eX.z)(e)}}catch(e){return}})();return(0,e_.o)({message:`Apollo GraphQL request: ${a||"Anonymous"}`,event:{action:eB.pi.InfoRequest,operationName:a,query:l,variables:s,headers:Object.keys(u).length>0?u:void 0,context:{...n.uri&&{uri:n.uri},...n.fetchOptions&&{fetchOptions:n.fetchOptions}},...c&&{destinationUrl:c}},sky:i,...c&&{url:{...c,query:l}}}),t(e)}),new a.C((e,t)=>t(e).map(e=>{var t;let n,r;return t=e?.extensions,n=t?.dataLayer,r=t?.events??[],n&&(n.user&&(0,tg.u5)(n.user),Object.entries(n).forEach(e=>{let[t,n]=e,r=(0,tk.OS)(t);if(Array.isArray(r)&&Array.isArray(n)){let e=r.some(e=>(0,th.A)(e)),i=n.some(e=>(0,th.A)(e));if(e&&i)(0,tv.$)({data:n,event:t});else{let e=r.concat(n),i=(0,tp.A)(e,tm.A);(0,tv.$)({data:i,event:t})}}else if(r&&"object"==typeof r&&"object"==typeof n){let e={...r,...n};(0,tv.$)({data:e,event:t})}else(0,tv.$)({data:n,event:t})})),r.length&&r.forEach(e=>{let[t,n]=e;return(0,ty.H)(t,n)}),e})),new a.C((e,t)=>t(e).map(e=>{let t=e?.extensions?.umvToken;return t&&(0,ez.mr)(t),e})),new a.C((e,t)=>t(e).map(t=>{let n=e.getContext()?.response?.headers;return n?.get(e9.cI.UMVToken)&&(0,eD.Ff)(),t})),...t,tF,...f?.oauthRefresh?.enabled?[(0,eE.S)(e=>{let{graphQLErrors:t,operation:n,forward:r}=e;if(!t?.some(e=>e.extensions?.errorCode==="AUTH_01133"))return;let i=eq();return i.isRefreshing?eT(new Promise((e,t)=>{i.pendingRequests.push(n=>{n?t(n):e()})})).flatMap(()=>r(n)):(i.isRefreshing=!0,eT((0,eP.p)().then(()=>{i.isRefreshing=!1,i.pendingRequests.forEach(e=>e()),i.pendingRequests=[]}).catch(e=>{i.isRefreshing=!1,i.pendingRequests.forEach(t=>t(e)),i.pendingRequests=[];try{let e=(0,eD.Lr)();e?.remove(eR.$c),e?.remove(eR.cF)}catch{}throw e})).flatMap(()=>r(n)))})]:[],e6(e),...f?.oauthRefresh?.enabled?[new a.C((e,t)=>t(e).map(e=>{let t,n;try{let e=(0,eD.Lr)();t=e?.get(eR.$c),n=e?.get(eR.cF)}catch{t=void 0}if(t&&n){let e=eM(t),r=eM(n);if(e||r){let t=eq();t.isRefreshing||(t.isRefreshing=!0,(0,eP.p)(!r&&e).then(()=>{t.isRefreshing=!1}).catch(()=>{t.isRefreshing=!1}))}}return e}))]:[],...c?[new a.C((e,t)=>{let n=e.getContext();return n.namespace&&(e.operationName=n.namespace.operationName,e.query=(0,E.YR)(e.query,{OperationDefinition:tu(n.namespace.operationName)})),t(e).map(t=>(n.namespace&&(e.operationName=n.namespace.originalOperationName,e.query=(0,E.YR)(e.query,{OperationDefinition:tu(n.namespace.originalOperationName)})),t))})]:[]];return d?.persistedQueries!==!1&&p.push(eS({sha256:eN.sc,useGETForHashedQueries:!(0,eO.S$)()})),p.push((e=>{let{configOverrides:t}=e,{domains:n,graphql:r}=t??(0,eF.zj)(),{withContext:i}=(0,ej.O)({moduleId:"ott-sas-web-core/graphql/middleware/http-link.ts"});n||r?.pathname||(0,eQ.C)("Invalid configuration in common config: please provide both a domain and graphql pathname in configOverrides or config");let o=(0,eV.Z)("sas",r?.pathname,t);return new a.C((e,t)=>{let n=e.getContext().ctx,r=(0,eL.D)({requestId:e.getContext().requestId});return new R({uri:eU(o),credentials:"include",fetch:async function(){for(var t=arguments.length,a=Array(t),o=0;o<t;o++)a[o]=arguments[o];try{return await i(n,async()=>fetch(...a))}catch(i){let t=i instanceof Error?i:Error(`Fetch error: ${i}`),n=i instanceof Error?eB.JM.FetchError:eB.JM.ErrorRequest;if("AbortError"===t.name)throw i;throw await (0,e_.o)({error:t,event:{action:`GraphQL::${e.operationName}`,errorType:n,url:a[0],operationName:e.operationName,requestId:e.getContext().requestId},sky:r}),i}}}).request(e,t)})})({configOverrides:u})),new ey({connectToDevTools:i,ssrMode:n,link:ek(p),cache:r??new eg.D,resolvers:l})}function tC(){return(0,eO.S$)()?null:tO}function tE(e){(0,eO.S$)()||(tO=e)}},79224:(e,t,n)=>{n.d(t,{y:()=>s});var r,i=n(49254),a=n(29366),o=n(85629),s=Object.assign(function(e){var t=r.get(e);return t||(t=(0,i.y)(e),r.set(e,t)),t},{reset:function(){r=new a.A(o.v.print||2e3)}});s.reset()},80657:(e,t,n)=>{n.d(t,{U:()=>r});function r(e){return null!==e&&"object"==typeof e}},81797:(e,t,n)=>{n.d(t,{E:()=>i,c:()=>r});var r=Array.isArray;function i(e){return Array.isArray(e)&&e.length>0}},83458:(e,t,n)=>{n.d(t,{En:()=>a,JR:()=>c,et:()=>i,ol:()=>o,uJ:()=>s});var r=n(83808),i="function"==typeof WeakMap&&!(0,r.no)(function(){return"ReactNative"==navigator.product&&!global.HermesInternal}),a="function"==typeof WeakSet,o="function"==typeof Symbol&&"function"==typeof Symbol.for,s=o&&Symbol.asyncIterator,u="function"==typeof(0,r.no)(function(){return window.document.createElement}),l=(0,r.no)(function(){return navigator.userAgent.indexOf("jsdom")>=0})||!1,c=u&&!l},83808:(e,t,n)=>{n.d(t,{Sf:()=>o,V1:()=>l,no:()=>a,vA:()=>c});var r=n(79273),i=n(87698);function a(e){try{return e()}catch(e){}}let o=a(function(){return globalThis})||a(function(){return window}
27)||a(function(){return self})||a(function(){return global})||a(function(){return a.constructor("return this")()});var s=n(47207);function u(e){return function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];if("number"==typeof t){var i=t;(t=p(i))||(t=m(i,n),n=[])}e.apply(void 0,[t].concat(n))}}var l=Object.assign(function(e,t){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];e||(0,r.V1)(e,p(t,n)||m(t,n))},{debug:u(r.V1.debug),log:u(r.V1.log),warn:u(r.V1.warn),error:u(r.V1.error)});function c(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return new r.zU(p(e,t)||m(e,t))}var d=Symbol.for("ApolloErrorMessageHandler_"+i.r);function f(e){var t;return"string"==typeof e?e:(t=(0,s.v)("stringifyForDisplay"),JSON.stringify(e,function(e,n){return void 0===n?t:n},2).split(JSON.stringify(t)).join("<undefined>")).slice(0,1e3)}function p(e,t){if(void 0===t&&(t=[]),e)return o[d]&&o[d](e,t.map(f))}function m(e,t){if(void 0===t&&(t=[]),e)return"An error occurred! For more details, see the full error text at https://go.apollo.dev/c/err#".concat(encodeURIComponent(JSON.stringify({version:i.r,message:e,args:t.map(f)})))}},85030:(e,t,n)=>{n.d(t,{eO:()=>s});let r=/\r\n|[\n\r]/g;function i(e,t){let n=0,i=1;for(let a of e.body.matchAll(r)){if("number"==typeof a.index||function(e){if(!e)throw Error("Unexpected invariant triggered.")}(!1),a.index>=t)break;n=a.index+a[0].length,i+=1}return{line:i,column:t+1-n}}function a(e,t){let n=e.locationOffset.column-1,r="".padStart(n)+e.body,i=t.line-1,a=e.locationOffset.line-1,s=t.line+a,u=1===t.line?n:0,l=t.column+u,c=`${e.name}:${s}:${l}
28`,d=r.split(/\r\n|[\n\r]/g),f=d[i];if(f.length>120){let e=Math.floor(l/80),t=[];for(let e=0;e<f.length;e+=80)t.push(f.slice(e,e+80));return c+o([[`${s} |`,t[0]],...t.slice(1,e+1).map(e=>["|",e]),["|","^".padStart(l%80)],["|",t[e+1]]])}return c+o([[`${s-1} |`,d[i-1]],[`${s} |`,f],["|","^".padStart(l)],[`${s+1} |`,d[i+1]]])}function o(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")}class s extends Error{constructor(e,...t){var n,r,a;const{nodes:o,source:l,positions:c,path:d,originalError:f,extensions:p}=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!=d?d:void 0,this.originalError=null!=f?f:void 0,this.nodes=u(Array.isArray(o)?o:o?[o]:void 0);const m=u(null==(n=this.nodes)?void 0:n.map(e=>e.loc).filter(e=>null!=e));this.source=null!=l?l:null==m||null==(r=m[0])?void 0:r.source,this.positions=null!=c?c:null==m?void 0:m.map(e=>e.start),this.locations=c&&l?c.map(e=>i(l,e)):null==m?void 0:m.map(e=>i(e.source,e.start));const h=!function(e){return"object"==typeof e&&null!==e}(null==f?void 0:f.extensions)||null==f?void 0:f.extensions;this.extensions=null!=(a=null!=p?p:h)?a: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!=f&&f.stack?Object.defineProperty(this,"stack",{value:f.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,s):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){var t;n.loc&&(e+="\n\n"+a((t=n.loc).source,i(t.source,t.start)))}else if(this.source&&this.locations)for(let t of this.locations)e+="\n\n"+a(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 u(e){return void 0===e||0===e.length?void 0:e}},85629:(e,t,n)=>{n.d(t,{v:()=>o});var r=n(19043),i=n(83808),a=Symbol.for("apollo.cacheSize"),o=(0,r.Cl)({},i.Sf[a])},87488:(e,t,n)=>{n.d(t,{O:()=>u,T:()=>s});var r=n(52581),i=n(9660),a=n(81136);let o=32*r._m;function s(e,t){return t.allowedGraphQlUrls.find(t=>(0,i.K)([t.match],e))}function u(e,t=!1){var n;let r,i;if(!e||"string"!=typeof e)return;try{r=JSON.parse(e)}catch(e){return}if(!r||!r.query)return;let s=r.query.trim(),l=null==(n=s.match(/^\s*(query|mutation|subscription)\b/i))?void 0:n[1],c=r.operationName;if(l)return r.variables&&(i=JSON.stringify(r.variables)),{operationType:l,operationName:c,variables:i,payload:t?(0,a._R)(s,o,"..."):void 0}}}
28,87628:(e,t,n)=>{n.d(t,{o:()=>r});function r(){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}},87698:(e,t,n)=>{n.d(t,{r:()=>r});var r="3.10.4"},92228:(e,t,n)=>{n.d(t,{c:()=>d});var r=n(13832),i=n(83458),a=n(2585),o=n(83808),s=n(88537),u=n(97052),l=n(85629);function c(e){return e}var d=function(){function e(e,t){void 0===t&&(t=Object.create(null)),this.resultCache=i.En?new WeakSet:new Set,this.transform=e,t.getCacheKey&&(this.getCacheKey=t.getCacheKey),this.cached=!1!==t.cache,this.resetCache()}return e.prototype.getCacheKey=function(e){return[e]},e.identity=function(){return new e(c,{cache:!1})},e.split=function(t,n,r){return void 0===r&&(r=e.identity()),Object.assign(new e(function(e){return(t(e)?n:r).transformDocument(e)},{cache:!1}),{left:n,right:r})},e.prototype.resetCache=function(){var t=this;if(this.cached){var n=new r.b(i.et);this.performWork=(0,u.LV)(e.prototype.performWork.bind(this),{makeCacheKey:function(e){var r=t.getCacheKey(e);if(r)return(0,o.V1)(Array.isArray(r),67),n.lookupArray(r)},max:l.v["documentTransform.cache"],cache:s.l})}},e.prototype.performWork=function(e){return(0,a.sw)(e),this.transform(e)},e.prototype.transformDocument=function(e){if(this.resultCache.has(e))return e;var t=this.performWork(e);return this.resultCache.add(t),t},e.prototype.concat=function(t){var n=this;return Object.assign(new e(function(e){return t.transformDocument(n.transformDocument(e))},{cache:!1}),{left:this,right:t})},e}()},94587:(e,t,n)=>{var r,i;n.d(t,{b:()=>r}),(i=r||(r={})).NAME="Name",i.DOCUMENT="Document",i.OPERATION_DEFINITION="OperationDefinition",i.VARIABLE_DEFINITION="VariableDefinition",i.SELECTION_SET="SelectionSet",i.FIELD="Field",i.ARGUMENT="Argument",i.FRAGMENT_SPREAD="FragmentSpread",i.INLINE_FRAGMENT="InlineFragment",i.FRAGMENT_DEFINITION="FragmentDefinition",i.VARIABLE="Variable",i.INT="IntValue",i.FLOAT="FloatValue",i.STRING="StringValue",i.BOOLEAN="BooleanValue",i.NULL="NullValue",i.ENUM="EnumValue",i.LIST="ListValue",i.OBJECT="ObjectValue",i.OBJECT_FIELD="ObjectField",i.DIRECTIVE="Directive",i.NAMED_TYPE="NamedType",i.LIST_TYPE="ListType",i.NON_NULL_TYPE="NonNullType",i.SCHEMA_DEFINITION="SchemaDefinition",i.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",i.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",i.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",i.FIELD_DEFINITION="FieldDefinition",i.INPUT_VALUE_DEFINITION="InputValueDefinition",i.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",i.UNION_TYPE_DEFINITION="UnionTypeDefinition",i.ENUM_TYPE_DEFINITION="EnumTypeDefinition",i.ENUM_VALUE_DEFINITION="EnumValueDefinition",i.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",i.DIRECTIVE_DEFINITION="DirectiveDefinition",i.SCHEMA_EXTENSION="SchemaExtension",i.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",i.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",i.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",i.UNION_TYPE_EXTENSION="UnionTypeExtension",i.ENUM_TYPE_EXTENSION="EnumTypeExtension",i.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension"},97391:(e,t,n)=>{n.d(t,{MS:()=>a,d8:()=>o,f2:()=>s});var r=n(83808),i=n(60611);function a(e,t){var n,i,a=e.directives;return!a||!a.length||(i=[],(n=a)&&n.length&&n.forEach(function(e){if("skip"===(t=e.name.value)||"include"===t){var t,n=e.arguments,a=e.name.value;(0,r.V1)(n&&1===n.length,69,a);var o=n[0];(0,r.V1)(o.name&&"if"===o.name.value,70,a);var s=o.value;(0,r.V1)(s&&("Variable"===s.kind||"BooleanValue"===s.kind),71,a),i.push({directive:e,ifArgument:o})}}),i).every(function(e){var n=e.directive,i=e.ifArgument,a=!1;return"Variable"===i.value.kind?(a=t&&t[i.value.name.value],(0,r.V1)(void 0!==a,68,n.name.value)):a=i.value.value,"skip"===n.name.value?!a:a})}function o(e,t,n){var r=new Set(e),a=r.size;return(0,i.YR)(t,{Directive:function(e){if(r.delete(e.name.value)&&(!n||!r.size))return i.sP}}),n?!r.size:r.size<a}function s(e){return e&&o(["client","export"],e,!0)}},98495:(e,t,n)=>{n.d(t,{D9:()=>o,IM:()=>s,ZI:()=>l});var r=n(19043),i=n(80657),a=Object.prototype.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return s(e)}function s(e){var t=e[0]||{},n=e.length;if(n>1)for(var r=new l,i=1;i<n;++i)t=r.merge(t,e[i]);return t}
28var u=function(e,t,n){return this.merge(e[n],t[n])},l=function(){function e(e){void 0===e&&(e=u),this.reconciler=e,this.isObject=i.U,this.pastCopies=new Set}return e.prototype.merge=function(e,t){for(var n=this,o=[],s=2;s<arguments.length;s++)o[s-2]=arguments[s];return(0,i.U)(t)&&(0,i.U)(e)?(Object.keys(t).forEach(function(i){if(a.call(e,i)){var s=e[i];if(t[i]!==s){var u=n.reconciler.apply(n,(0,r.fX)([e,t,i],o,!1));u!==s&&((e=n.shallowCopyForMerge(e))[i]=u)}}else(e=n.shallowCopyForMerge(e))[i]=t[i]}),e):t},e.prototype.shallowCopyForMerge=function(e){return(0,i.U)(e)&&!this.pastCopies.has(e)&&(e=Array.isArray(e)?e.slice(0):(0,r.Cl)({__proto__:Object.getPrototypeOf(e)},e),this.pastCopies.add(e)),e},e}()}}]);
29//# sourceMappingURL=gql-bdfe341cd150f90c.js.map

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.