1!function(){try{var e="u">typeof window?window:"u">typeof global?global:"u">typeof globalThis?globalThis:"u">typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="5f4b3627-a70d-49f6-8db8-f518d3410359",e._sentryDebugIdIdentifier="sentry-dbid-5f4b3627-a70d-49f6-8db8-f518d3410359")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[567,730,3111,4592,5492,6631,8349],{16006:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return f}});let n=r(64252)._(r(14232)),s=r(72936),a=[],i=[],l=!1;function o(e){let t=e(),r={loading:!0,loaded:null,error:null};return r.promise=t.then(e=>(r.loading=!1,r.loaded=e,e)).catch(e=>{throw r.loading=!1,r.error=e,e}),r}class u{constructor(e,t){this._loadFn=e,this._opts=t,this._callbacks=new Set,this._delay=null,this._timeout=null,this.retry()}promise(){return this._res.promise}retry(){this._clearTimeouts(),this._res=this._loadFn(this._opts.loader),this._state={pastDelay:!1,timedOut:!1};let{_res:e,_opts:t}=this;e.loading&&("number"==typeof t.delay&&(0===t.delay?this._state.pastDelay=!0:this._delay=setTimeout(()=>{this._update({pastDelay:!0})},t.delay)),"number"==typeof t.timeout&&(this._timeout=setTimeout(()=>{this._update({timedOut:!0})},t.timeout))),this._res.promise.then(()=>{this._update({}),this._clearTimeouts()}).catch(e=>{this._update({}),this._clearTimeouts()}),this._update({})}_update(e){this._state={...this._state,error:this._res.error,loaded:this._res.loaded,loading:this._res.loading,...e},this._callbacks.forEach(e=>e())}_clearTimeouts(){clearTimeout(this._delay),clearTimeout(this._timeout)}getCurrentValue(){return this._state}subscribe(e){return this._callbacks.add(e),()=>{this._callbacks.delete(e)}}}function d(e){return function(e,t){let r=Object.assign({loader:null,loading:null,delay:200,timeout:null,webpack:null,modules:null},t),a=null;function o(){if(!a){let t=new u(e,r);a={getCurrentValue:t.getCurrentValue.bind(t),subscribe:t.subscribe.bind(t),retry:t.retry.bind(t),promise:t.promise.bind(t)}}return a.promise()}if(!l){let e=r.webpack&&1?r.webpack():r.modules;e&&i.push(t=>{for(let r of e)if(t.includes(r))return o()})}function d(e,t){let i;o(),(i=n.default.useContext(s.LoadableContext))&&Array.isArray(r.modules)&&r.modules.forEach(e=>{i(e)});let l=n.default.useSyncExternalStore(a.subscribe,a.getCurrentValue,a.getCurrentValue);return n.default.useImperativeHandle(t,()=>({retry:a.retry}),[]),n.default.useMemo(()=>{var t;return l.loading||l.error?n.default.createElement(r.loading,{isLoading:l.loading,pastDelay:l.pastDelay,timedOut:l.timedOut,error:l.error,retry:a.retry}):l.loaded?n.default.createElement((t=l.loaded)&&t.default?t.default:t,e):null},[e,l])}return d.preload=()=>o(),d.displayName="LoadableComponent",n.default.forwardRef(d)}(o,e)}function c(e,t){let r=[];for(;e.length;){let n=e.pop();r.push(n(t))}return Promise.all(r).then(()=>{if(e.length)return c(e,t)})}d.preloadAll=()=>new Promise((e,t)=>{c(a).then(e,t)}),d.preloadReady=(e=[])=>new Promise(t=>{let r=()=>(l=!0,t());c(i,e).then(r,r)}),window.__NEXT_PRELOADREADY=d.preloadReady;let f=d},18847:(e,t,r)=>{e.exports=r(20705)},20705:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={default:function(){return u},noSSR:function(){return o}};for(var s in n)Object.defineProperty(t,s,{enumerable:!0,get:n[s]});let a=r(64252);r(37876),r(14232);let i=a._(r(16006));function l(e){return{default:e?.default||e}}function o(e,t){return delete t.webpack,delete t.modules,e(t)}function u(e,t){let r=i.default,n={loading:({error:e,isLoading:t,pastDelay:r})=>null};e instanceof Promise?n.loader=()=>e:"function"==typeof e?n.loader=e:"object"==typeof e&&(n={...n,...e});let s=(n={...n,...t}).loader;return(n.loadableGenerated&&(n={...n,...n.loadableGenerated},delete n.loadableGenerated),"boolean"!=typeof n.ssr||n.ssr)?r({...n,loader:()=>null!=s?s().then(l):Promise.resolve(l(()=>null))}):(delete n.webpack,delete n.modules,o(r,n))}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esMo
1dule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},26536:(e,t,r)=>{"use strict";r.d(t,{x:()=>n});let n={AI_RESEARCHER:"ai-researcher",TOPIC_TRADE:"topic-trade",BOOK:"book",PAID_BOOK:"paid-book",SMART_SEARCH:"smart-search",DISCOVER_SUBTOPIC:"discover-subtopic",DISCOVER_SUBTOPIC_BOOKS:"discover-subtopic-books",DISCOVER_SUBTOPIC_RELATED_SUBTOPICS:"discover-subtopic-related-subtopics",DISCOVER_TOPIC:"discover-topic",DISCOVER_TOPIC_BOOKS:"discover-topic-books",DISCOVER_TOPIC_RELATED_SUBTOPICS:"discover-topic-related-subtopics",INDEX:"index",INDEX_TOPIC:"index-topic",INDEX_TOPIC_KEYTERM:"index-topic-keyterm",PRICING:"pricing",PUBLISHER:"publisher",READING_LIST_CHECKER:"reading-list-checker",READING_LIST_CHECKER_RESULTS:"reading-list-checker-results",SIGN_UP:"sign-up",SIGN_UP_IOS:"sign-up-ios",SIGN_UP_RESEARCH_ASSISTANT:"sign-up-research-assistant",SITEMAPS_SECTION:"sitemaps-section",LANDING:"landing",NOT_FOUND:"not-found"}},55060:(e,t,r)=>{"use strict";r.r(t),r.d(t,{__N_SSP:()=>c,default:()=>f});var n=r(37876),s=r(18847),a=r.n(s),i=r(90567),l=r(68349),o=r(26536);let u=a()(()=>Promise.all([r.e(1946),r.e(8230),r.e(2465),r.e(8798),r.e(1552),r.e(3494),r.e(3314)]).then(r.bind(r,53494)),{loadableGenerated:{webpack:()=>[53494]}}),d=a()(()=>Promise.all([r.e(577),r.e(1214),r.e(2212)]).then(r.bind(r,6288)),{loadableGenerated:{webpack:()=>[6288]}});var c=!0;let f=e=>{let{globals:t}=e;return(0,n.jsxs)(l.default,{globals:t,resetToPageOnLangChange:1,children:[(0,n.jsx)(i.A,{whenVisible:!0,children:(0,n.jsx)(u,{resetToPageOnLangChange:1,skipToMainContentConfig:{mainContentId:o.x.DISCOVER_TOPIC_BOOKS}})}),(0,n.jsx)("div",{id:o.x.DISCOVER_TOPIC_BOOKS,children:(0,n.jsx)(d,{...e})})]})}},68349:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>v});var n=r(37876),s=r(14232),a=r(89099),i=r(18847),l=r.n(i),o=r(90567),u=r(86631),d=r(97090),c=r(75171),f=r(83329);let p=async(e,t,r)=>{let n=await (0,d.f)(t,e);if(n&&n.coupon){let t=n.coupon;(0,f.I)({coupon:t});let s=`Your discount code ${e} has been applied ð`;r({message:t.metadata.discount_applied_text||s,shouldPersist:!0,bannerType:"discount",status:c.l.SUCCESS})}n&&n.message&&r({message:n.message,shouldPersist:!0,bannerType:"discount",status:c.l.ERROR})};var h=r(60937);let _="en-GB",b="i18next";var y=r(87856);let m=y.Ay.div.withConfig({displayName:"Layout.styles__Wrapper",componentId:"sc-307ccb6c-0"})(["font-family:var(--font-inter);min-height:100vh;margin-block-start:",";display:flex;flex-direction:column;justify-content:flex-start;align-items:flex-start;flex-wrap:nowrap;.trustpilot-widget{width:100%;}"],({$bannersOpen:e,theme:t})=>`calc(${e} * ${t.spacing(12)})`),g=y.Ay.div.withConfig({displayName:"Layout.styles__LayoutBody",componentId:"sc-307ccb6c-1"})(["background:",";height:100%;width:100%;flex-grow:1;flex-shrink:0;"],({theme:e})=>e.colours.background.solid01),E=y.Ay.div.withConfig({displayName:"Layout.styles__FooterWrapper",componentId:"sc-307ccb6c-2"})(["height:max-content;width:100%;flex-grow:0;flex-shrink:0;"]);var O=r(49784);let I=l()(()=>Promise.all([r.e(8230),r.e(2465),r.e(8617),r.e(1020)]).then(r.bind(r,81020)),{loadableGenerated:{webpack:()=>[81020]}}),C=l()(()=>Promise.all([r.e(1946),r.e(475),r.e(363)]).then(r.bind(r,28103)),{loadableGenerated:{webpack:()=>[28103]}}),S=l()(()=>r.e(6101).then(r.bind(r,96101)),{loadableGenerated:{webpack:()=>[96101]},ssr:!1}),v=({children:e,globals:t,withFooter:r=!0,displayLanguageSelector:i=!0,SEO:l,resetToPageOnLangChange:d})=>{let c=(0,s.useRef)(null),f=(0,a.useRouter)(),{addBanner:y,bannersOpen:v}=(0,O.V)();return(0,s.useEffect)(()=>{let e;(e=f.query.discount??null)&&p(e,t?.PAYMENT_SERVICE_LOCATION,y)},[t?.PAYMENT_SERVICE_LOCATION,f.query.discount,y]),(0,s.useEffect)(()=>{((e,t)=>
1{if(0==e.length)return(0,h.TV)(b,_);let r=((e,t)=>{let r=window.navigator?.language,n=["en","en-US"];if(!t&&n.includes(r))return"en";let s=Object.values(e).includes(t);if(!r&&s)return t;let a=r.split("-")[0];switch(t){case"en":return["it","es"].includes(a)||n.includes(r)?"en":_;case"fr":return"fr-CA"===r?"fr-CA":"fr";case"":return n.includes(r)?"en":_;default:return s?t:_}})(e,t.split("/")[1]);return(0,h.TV)(b,r)})(t?.PLATFORM_LANGUAGES||["en"],`/${f.locale}`)},[t?.PLATFORM_LANGUAGES,f.locale]),(0,n.jsx)(u.S,{value:t,children:(0,n.jsxs)(m,{$bannersOpen:v,ref:c,children:[(0,n.jsxs)(g,{children:[(0,n.jsx)(S,{optimizely:t?.features?.optimizely,userSegments:t?.OPTIMIZELY_USER_SEGMENTS}),e,(0,n.jsx)(o.A,{whenVisible:!0,children:(0,n.jsx)(C,{forwardRef:c})})]}),r&&(0,n.jsx)(o.A,{whenVisible:!0,children:(0,n.jsx)(E,{children:(0,n.jsx)(I,{barclaysOrgId:t?.BARCLAYS_ORG_ID,displayLanguageSelector:i,SEO:l,resetToPageOnLangChange:d})})})]})})}},72936:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"LoadableContext",{enumerable:!0,get:function(){return n}});let n=r(64252)._(r(14232)).default.createContext(null)},74854:(e,t,r)=>{"use strict";r.d(t,{d:()=>n});let n={LEGACY:"legacy",ESSENTIAL:"essential",COMPLETE:"complete"};Object.values(n)},83329:(e,t,r)=>{"use strict";r.d(t,{I:()=>s,K:()=>i});var n=r(73208);let s=e=>{let t=n.A.getItem("siteState");if(!t)return n.A.setItem("siteState",JSON.stringify(e)),e;{let r={...JSON.parse(t),...e};return n.A.setItem("siteState",JSON.stringify(r)),r}},a=["onboardingBookshelfId","onboardingBookshelfSavedBooks"],i=()=>a.forEach(e=>n.A.removeItem(e))},86631:(e,t,r)=>{"use strict";r.d(t,{S:()=>l,z:()=>i});var n=r(37876),s=r(14232);let a=(0,s.createContext)({}),i=()=>{let e=(0,s.useContext)(a);if(!e)throw Error("context is undefined within GlobalsProvider");return e},l=({children:e,value:t})=>t&&(0,n.jsx)(a.Provider,{value:t,children:e})},90567:(e,t,r)=>{"use strict";function n(){return(n=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}r.d(t,{A:()=>l});var s=r(14232),a=s.useLayoutEffect;function i(){return!0}let l=function(e){var t=(0,s.useRef)(null),r=(0,s.useReducer)(i,!1),l=r[0],o=r[1],u=e.noWrapper,d=e.ssrOnly,c=e.whenIdle,f=e.whenVisible,p=e.promise,h=e.on,_=void 0===h?[]:h,b=e.children,y=e.didHydrate,m=function(e,t){if(null==e)return{};var r={};for(var n in e)if(({}).hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,["noWrapper","ssrOnly","whenIdle","whenVisible","promise","on","children","didHydrate"]);a(function(){t.current.hasChildNodes()||o()},[]),(0,s.useEffect)(function(){l&&y&&y()},[l]),(0,s.useEffect)(function(){if(!d&&!l){var e=t.current,r=[];if(p&&p.then(o,o),f){var n=u?e:e.firstElementChild;if(!(n&&"u">typeof IntersectionObserver))return o();var s=new IntersectionObserver(function(e){e.forEach(function(e){(e.isIntersecting||e.intersectionRatio>0)&&o()})},"object"==typeof f?f:{rootMargin:"250px"});s.observe(n),r.push(function(){s.disconnect()})}if(c)if("u">typeof requestIdleCallback){var a=requestIdleCallback(o,{timeout:500});r.push(function(){cancelIdleCallback(a)})}else{var i=setTimeout(o,2e3);r.push(function(){clearTimeout(i)})}return[].concat(_).forEach(function(t){e.addEventListener(t,o,{once:!0,passive:!0}),r.push(function(){e.removeEventListener(t,o,{})})}),function(){r.forEach(function(e){e()})}}},[l,_,d,c,f,y,p,u]);var g="string"==typeof u?u:"div";return l?u?b:(0,s.createElement)(g,n({ref:t,style:{display:"contents"}},m),b):(0,s.createElement)(g,n({},m,{ref:t,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:""}}))}},94191:(e,t,r)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/discover/topic/[id]/[topic_name]/books",function(){return r(55060)}])},97090:(e,t,r)=>{"use strict";r.d(t,{T:()=>i,f:()=>l});var n=r(78028),s=r(74854),a=r(13569);let i=async(e,t,r)=>{let i=`${e}/plans`,l=t?{plan_ids:t.join(";")}:{},o={plan_products:r?r.join(";"):s.d.LEGACY};try{let{data:e}=await (0,n.A)({method:"get",url:i,headers:{Accept:"application/json","Content-Type":"application/json"},params:{use_corresponding_active_plan:!0,...o,...l}});if(e.success)return e.data.results;return[]}catch(e){return(0,a.NE)(e),console.log("Payment service error: ",e),[]}},l=async(e,t)=>{let r=`${e}/coupon/${t}`,s={};try{let{data:e}=await (0,n.A)({method:"get",url:r,headers:{Accept:"application/json","Content-Type":"application/json"}});if(e.success)return s.coupon=e.data,s;throw Error()}catch(e){return(0,a.NE)(e),e&&(s.message=e.response?e.response.data.message:e.message),s}}}},e=>{e.O(0,[636,6593,8792],()=>e(e.s=94191)),_N_E=e.O()}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.