(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9983],{72109:function(e){var t={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"FeatureCourseBasic"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"FeaturedCourse"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"title"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"path"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"image"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"alt"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"url"},arguments:[],directives:[]}]}}]}},{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"MainNavigation"},variableDefinitions:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"subjectCategories"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"icon"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"url"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"title"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"topicLandingPages"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"title"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"url"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"featuredCourses"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"FeatureCourseBasic"},directives:[]}]}}]}},{kind:"Field",name:{kind:"Name",value:"featuredCourses"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"FeatureCourseBasic"},directives:[]}]}}]}}],loc:{start:0,end:337}};t.loc.source={body:"fragment FeatureCourseBasic on FeaturedCourse {\n id\n title\n path\n image {\n alt\n url\n }\n}\n\nquery MainNavigation {\n subjectCategories {\n icon\n url\n title\n topicLandingPages {\n title\n url\n }\n featuredCourses {\n ...FeatureCourseBasic\n }\n }\n featuredCourses {\n ...FeatureCourseBasic\n }\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};var n={};function i(e,t){for(var n=0;n0;){var c=o;o=new Set,c.forEach(function(e){a.has(e)||(a.add(e),(n[e]||new Set).forEach(function(e){o.add(e)}))})}return a.forEach(function(t){var n=i(e,t);n&&r.definitions.push(n)}),r}t.definitions.forEach(function(e){if(e.name){var t=new Set;(function e(t,n){if("FragmentSpread"===t.kind)n.add(t.name.value);else if("VariableDefinition"===t.kind){var i=t.type;"NamedType"===i.kind&&n.add(i.name.value)}t.selectionSet&&t.selectionSet.selections.forEach(function(t){e(t,n)}),t.variableDefinitions&&t.variableDefinitions.forEach(function(t){e(t,n)}),t.definitions&&t.definitions.forEach(function(t){e(t,n)})})(e,t),n[e.name.value]=t}}),e.exports=t,e.exports.FeatureCourseBasic=r(t,"FeatureCourseBasic"),e.exports.MainNavigation=r(t,"MainNavigation")},33410:function(e){var t={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"CurrentUser"},variableDefinitions:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"currentUser"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"fullName"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"firstName"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"email"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"initials"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"imageUrl"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"unreadNotificationsCount"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"hasSubscriptions"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"webPreferences"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"displayNotificationsBadge"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"testIdentity"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"activeCourseEnrolments"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"run"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"course"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"firstStep"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"url"},arguments:[],directives:[]}]}}]}}]}},{kind:"Field",name:{kind:"Name",value:"hasActiveUnlimitedForBusinessSubscription"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:456}};t.loc.source={body:"query CurrentUser {\n currentUser {\n id\n fullName\n firstName\n email\n initials\n imageUrl\n unreadNotificationsCount\n hasSubscriptions\n webPreferences {\n displayNotificationsBadge\n }\n testIdentity\n activeCourseEnrolments {\n id\n run {\n id\n course {\n id\n }\n firstStep {\n id\n url\n }\n }\n }\n hasActiveUnlimitedForBusinessSubscription\n }\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};var n={};function i(e,t){for(var n=0;n0;){var c=o;o=new Set,c.forEach(function(e){a.has(e)||(a.add(e),(n[e]||new Set).forEach(function(e){o.add(e)}))})}return a.forEach(function(t){var n=i(e,t);n&&r.definitions.push(n)}),r}(t,"CurrentUser")},76454:function(e){var t={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"Sales"},variableDefinitions:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"sales"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"endTime"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"isActive"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"termsUrl"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"discountWithDuration"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"discount"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"amount"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"duration"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"billingPeriods"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"description"},arguments:[],directives:[]}]}}]}},{kind:"Field",name:{kind:"Name",value:"product"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"sku"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"priceSuffix"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"preSalePrice"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"amount"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"currency"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"code"},arguments:[],directives:[]}]}}]}},{kind:"Field",name:{kind:"Name",value:"price"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"amount"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"currency"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"code"},arguments:[],directives:[]}]}}]}}]}}]}}]}}],loc:{start:0,end:426}};t.loc.source={body:"query Sales {\n sales {\n endTime\n isActive\n termsUrl\n discountWithDuration {\n discount {\n amount\n }\n duration {\n billingPeriods\n description\n }\n }\n product {\n sku\n priceSuffix\n preSalePrice {\n amount\n currency {\n code\n }\n }\n price {\n amount\n currency {\n code\n }\n }\n }\n }\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};var n={};function i(e,t){for(var n=0;n0;){var c=o;o=new Set,c.forEach(function(e){a.has(e)||(a.add(e),(n[e]||new Set).forEach(function(e){o.add(e)}))})}return a.forEach(function(t){var n=i(e,t);n&&r.definitions.push(n)}),r}(t,"Sales")},77381:function(e,t){"use strict";t.Z={src:"/_next/static/media/recommended.216639d6.svg",height:21,width:21,blurWidth:0,blurHeight:0}},14935:function(e,t,n){"use strict";var i=n(85893);n(67294);var r=n(61003),s=n(94184),a=n.n(s),o=n(97936),c=n.n(o);t.Z=e=>{let{onClick:t=()=>{},text:n,type:s="small",isBold:o=!0,active:l=!1,ariaControls:u,tracking:d}=e,m=a()(c().wrapper,c()[s],{[c().isPressed]:l,[c().isBold]:o,"js-ahoy-track":d});return(0,i.jsxs)("button",{type:"button",onClick:t,className:m,"aria-pressed":l,"aria-controls":u,...d,children:[(0,i.jsx)("span",{className:c().optionText,children:n}),(0,i.jsx)("span",{className:c().handle,children:(0,i.jsx)(r.ZP,{name:"chevron_down"})})]})}},53240:function(e,t,n){"use strict";var i=n(85893);n(67294);var r=n(25675),s=n.n(r),a=n(91210),o=n(73262),c=n(77381),l=n(25466),u=n(45442),d=n(39236),m=n.n(d);t.Z=function(e){let{callsToAction:t,cardColor:n,children:r,image:d,organisationLogo:h,imageOverlay:p,isFullHeight:g,withShadow:f,link:_,salesDiscount:x,trackClickOnTheCard:v,highlight:j=!1,productType:k}=e,b=null==k?void 0:k.toLowerCase();return(0,i.jsxs)(u.W2,{onClick:()=>v&&(0,a.Z)(v)(),cardColor:n,isFullHeight:g,withShadow:f,children:[j?(0,i.jsxs)(o.Z,{className:m().highlightedtop,children:[(0,i.jsx)(s(),{src:c.Z,width:21,height:21,alt:"Top Recommended ".concat(b)}),"Top ",(0,l.kC)(b)]}):null,(0,i.jsx)(u.rU,{..._,hideFromNavigation:!0,children:(0,i.jsxs)(o.Z,{className:m().spacerimage,children:[(0,i.jsx)(u.Ee,{...d,...h,children:p}),x?(0,i.jsxs)(o.Z,{className:m().saleselement,children:[x,"% OFF"]}):null]})}),(0,i.jsxs)(u.uT,{children:[(0,i.jsx)(u.rU,{..._,inBody:!0,withFlexGrow:!0,children:(0,i.jsx)(u.VY,{children:r})}),t&&(0,i.jsx)(u.Ai,{children:t})]})]})}},45442:function(e,t,n){"use strict";n.d(t,{uT:function(){return X},Ai:function(){return T},W2:function(){return A},VY:function(){return E},_D:function(){return l},Ee:function(){return K},Rv:function(){return j},__:function(){return g},rU:function(){return z},Hn:function(){return N},Ei:function(){return C},c7:function(){return es},Vy:function(){return ef},Dx:function(){return v},z2:function(){return el},b8:function(){return ed}});var i,r,s=n(85893),a=n(84985),o=n(19350),c=n(84911),l=function(e){let{useForm:t,tracking:n=null,onTrack:i,url:r,text:l,isPrimary:u=!0,isFullWidth:d=!0,isBorderless:m=!1}=e,h=n&&{"data-js-ahoy-track":!0,...n},p="primary";return(u||m?m&&(p="tertiary"):p="secondary",t)?(0,s.jsx)(a.Z,{action:r,children:(0,s.jsx)(o.Z,{level:p,type:"submit",data:{...h},isFullWidth:d,children:l})}):(0,s.jsx)(c.Z,{level:p,href:r,data:{...h},isFullWidth:d,onClick:()=>{i&&i()},children:l})},u=n(67294),d=n(94197);(i=r||(r={})).default="darkGrey",i.secondary="mediumGrey",i.inverse="white";var m=e=>{let{children:t,id:n,size:i="small",type:a="default"}=e;return(0,s.jsx)(d.Z,{id:n,elName:"span",color:r[a],size:i,children:t})},h=n(84506),p=n.n(h),g=function(e){let{children:t,size:n="small"}=e;return(0,s.jsx)("div",{className:p().wrapper,children:(0,s.jsx)(m,{type:"secondary",size:n,children:t})})},f=n(28996),_=n(2814),x=n.n(_),v=function(e){let{isLink:t,size:n="medium",children:i}=e;return(0,s.jsx)("div",{className:x().wrapper,children:(0,s.jsx)(f.Z,{elName:"h3",size:n,isCompact:!0,isLink:t,children:i})})},j=function(e){let{isLarge:t,children:n}=e;return(0,s.jsx)(d.Z,{color:"mediumGrey",size:t?"small":"xsmall",children:n})},k=n(28),b=n(81026),y=n.n(b),C=function(e){let{children:t}=e;return u.Children.toArray(t).some(e=>e)?(0,s.jsx)("div",{className:y().wrapper,children:(0,s.jsx)(k.Z,{spacing:"3",wrap:"wrap",children:t})}):null},w=n(14471),S=n(61003),N=function(e){let{icon:t,labelText:n}=e;return(0,s.jsxs)(w.Z,{alignItems:"center",spacing:"1",children:[(0,s.jsx)(S.ZP,{name:t,size:"small",color:"cool-grey"}),(0,s.jsx)(d.Z,{size:"xsmall",color:"coolGrey",children:n})]})},F=n(29930),Z=n(2125),D=n.n(Z),T=function(e){let{children:t}=e;return u.Children.toArray(t).some(e=>e)?(0,s.jsx)("div",{className:D().wrapper,children:(0,s.jsx)(F.Z,{spacing:"3",children:t})}):null},L=n(94184),P=n.n(L),M=n(67521),B=n.n(M),A=function(e){let{hasSmallOverflow:t,isFadedOut:n,isFullHeight:i,isHorizontal:r,withShadow:a,cardColor:o="grey",className:c="",children:l,onClick:u}=e,d=P()("m-card",B().wrapper,B()[o],{[B().hasSmallOverflow]:t,[B().isFadedOut]:n,[B().isFullHeight]:i,[B().isHorizontal]:r,[B().withShadow]:a},c);return(0,s.jsx)("div",{className:d,onClick:u,"aria-hidden":"true",role:"button",children:l})},I=n(45365),O=n.n(I),E=function(e){let{children:t}=e;return(0,s.jsx)("div",{className:O().wrapper,children:t})},H=n(23839),U=n.n(H),z=function(e){let{href:t,children:n,inBody:i=!1,withFlexGrow:r=!1,hideFromNavigation:a=!1,onClick:o}=e,c=P()(U().wrapper,{[U().inBody]:i,[U().withFlexGrow]:r}),l=e=>{o&&o(e)};return(0,s.jsx)("a",{className:c,href:t,tabIndex:a?-1:0,"aria-hidden":a,onClick:e=>l(e),children:n})},R=n(25675),W=n.n(R),q={src:"/_next/static/media/placeholder.29a364de.png"},Y=n(36731),G=n.n(Y);let V=e=>{let{src:t,alt:n,className:i}=e,r=(null==t?void 0:t.includes("https"))?t:"https:".concat(t);return(0,s.jsx)(W(),{fill:!0,alt:n,src:r,placeholder:"blur",blurDataURL:null==q?void 0:q.src,sizes:"(max-width: 768px) 100vw, 50vw",className:P()(G().courseImage,{className:i}),onLoad:e=>{e.currentTarget.classList.add(G().loaded)}})};var K=function(e){let{src:t,alt:n="",withGradient:i=!1,children:r,isFullHeight:a=!1,logo:o="",logoAlt:c=""}=e,l=P()(G().wrapper,{[G().withGradient]:i,[G().isFullHeight]:a,[G().overlay]:o});return(0,s.jsxs)("div",{className:l,children:[(0,s.jsx)(V,{src:t,alt:n}),r,o&&(0,s.jsx)("div",{className:G().logo,children:(0,s.jsx)(V,{src:o,alt:c,className:G().logoImg})})]})},J=n(87471),Q=n.n(J),X=function(e){let{children:t}=e;return(0,s.jsx)("div",{className:Q().wrapper,children:t})},$=n(51303).Z,ee=n(21176),et=n.n(ee),en=function(e){let{icon:t,text:n,tracking:i,onClick:r}=e;return(0,s.jsxs)("button",{type:"submit",className:et().button,title:n,...i,"data-js-ahoy-track":!!i,onClick:r,children:[(0,s.jsx)(S.ZP,{name:t}),(0,s.jsx)($,{children:n})]})},ei=n(96369),er=n.n(ei),es=e=>{let{remove:t,onSuccess:n}=e;return(0,s.jsx)(a.Z,{action:t.action,method:t.method,onSuccess:n,remote:!0,children:(0,s.jsx)("div",{className:er().icon,children:(0,s.jsx)(en,{icon:"cross",text:t.text,tracking:t.tracking})})})},ea=n(67020),eo=n.n(ea),ec=e=>{let{isShown:t=!1,children:n}=e,i=P()(eo().wrapper,{[eo().isShown]:t});return(0,s.jsx)("div",{className:i,"aria-live":"assertive",children:t&&(0,s.jsx)(d.Z,{elName:"span",size:"xsmall",isBold:!0,children:n})})},el=e=>{let{isAdded:t,render:n}=e,[i,r]=(0,u.useState)({isInWishlist:t,showPopupMessage:!1}),a=()=>{setTimeout(()=>r(e=>({...e,showPopupMessage:!1})),2e3)};(0,u.useEffect)(()=>{i.showPopupMessage&&a()},[i]);let o=i.isInWishlist?"Added to Wishlist":"Removed from Wishlist";return n({...i,toggleIsInWishlist:()=>{r(e=>({isInWishlist:!e.isInWishlist,showPopupMessage:!0}))},renderPopupMessage:()=>{let{showPopupMessage:e}=i;return(0,s.jsx)(ec,{isShown:e,children:o})}})},eu=n(21273),ed=e=>{let{isAdded:t,add:n,remove:i,onSuccess:r,trackingEventCategory:o}=e,c=t?i:n;return(0,s.jsx)(a.Z,{action:c.action,method:c.method,onSuccess:r,preventDoubleSubmission:!1,remote:!0,children:(0,s.jsx)(en,{icon:t?"star_solid":"star",text:c.text,tracking:c.tracking,...o&&{onClick:e=>{(0,eu.ZP)({category:o,action:t?eu.AO.RemoveCourseFromWishlist:eu.AO.AddCourseToWishlist,label:t?"remove_from_wishlist":"add_to_wishlist",event:e})}}})})},em=n(48263),eh={src:"/_next/static/media/study_uk_logo_white_small.ff15a82a.svg",height:12,width:79,blurWidth:0,blurHeight:0},ep=n(1353),eg=n.n(ep),ef=e=>{let{children:t,isStudyUK:n=!1}=e;return(0,s.jsxs)("div",{className:eg().wrapper,children:[n&&(0,s.jsxs)(em.Z,{type:"studyUK",children:[(0,s.jsx)(W(),{className:eg().image,src:eh,alt:"Study UK"}),t]}),!n&&(0,s.jsx)(em.Z,{children:t})]})}},78737:function(e,t,n){"use strict";var i=n(42098);t.Z=i.Z},25438:function(e,t,n){"use strict";n.d(t,{Z:function(){return nu}});var i,r,s,a,o,c,l=n(85893),u=n(93413),d=n(64547),m=n(76454),h=n.n(m),p=n(33410),g=n.n(p),f=n(11163),_=n(47099),x=n(72109),v=n.n(x),j=n(67294),k=n(25675),b=n.n(k),y=n(70610),C=n(31370),w=n(19375),S=n(14471),N=n(68977),F=n(94935),Z=n(91623),D=n(62591),T={src:"/_next/static/media/fl_logo.b0d9d0ee.svg",height:167,width:476,blurWidth:0,blurHeight:0},L=n(29930),P=n(28996),M=n(42339),B=n.n(M),A=e=>{let{heading:t,children:n}=e;return(0,l.jsx)("div",{className:B().links,children:(0,l.jsxs)(L.Z,{spacing:"4",children:[(0,l.jsx)(P.Z,{elName:"h3",size:"small",color:"black",children:t}),(0,l.jsx)(L.Z,{elName:"ul",spacing:"2",children:n})]})})},I=n(97125),O=e=>{let{href:t,text:n}=e;return(0,l.jsx)(I.Z,{href:t,children:(0,l.jsx)("div",{className:B().link,children:n})},t)},E=n(61003),H=e=>{let{icon:t,href:n,title:i}=e;return(0,l.jsx)("a",{href:n,target:"_blank",rel:"noopener noreferrer","aria-label":"".concat(i," - link opens in a new tab"),children:(0,l.jsx)(E.ZP,{name:t,color:"pink",size:"xlarge"})})},U=n(94012),z=n(73262),R=n(99876),W=n(28),q=n(94197);let Y=[{title:"Subjects",description:"Courses grouped by subject",href:(0,N.r8j)()},{title:"Short courses",description:"Learn new skills with a flexible online course",href:(0,N.aVY)()},{title:"ExpertTracks",description:"Upskill with a series of specialist courses",href:(0,N.uI8)()},{title:"Microcredentials",description:"Earn professional or academic accreditation",href:(0,N.KCX)()},{title:"Online degrees",description:"Study flexibly online as you build to a degree",href:(0,N.f0X)()}];var G=()=>(0,l.jsx)(U.Z,{children:(0,l.jsx)(z.Z,{spacing:"4 0 6",children:(0,l.jsxs)(L.Z,{children:[(0,l.jsx)(w.Z,{}),(0,l.jsx)(R.Z,{isHall:!0,children:(0,l.jsx)(C.Z,{columns:[1,1,1,Y.length],spacing:"5",children:Y.map(e=>(0,l.jsx)(C.Z.Item,{columnSpan:1,children:(0,l.jsxs)(L.Z,{spacing:"2",children:[(0,l.jsx)(W.Z,{align:"center",children:(0,l.jsx)(I.Z,{align:"center",href:e.href,isBold:!0,size:"medium",children:e.title})}),(0,l.jsx)(q.Z,{alignment:"center",children:e.description})]})},e.title))})})]})})}),V=()=>(0,l.jsxs)("footer",{children:[(0,l.jsx)(y.Z,{color:"white",children:(0,l.jsx)(G,{})}),(0,l.jsxs)(y.Z,{color:"white",children:[(0,l.jsx)("div",{className:B().spacer,children:(0,l.jsx)("section",{className:B().container,children:(0,l.jsxs)(C.Z,{columns:[1,3,6],spacing:["5","5","7"],children:[(0,l.jsxs)(A,{heading:"Discover our range of courses",children:[(0,l.jsx)(O,{text:"Online Courses",href:N.aVY()}),(0,l.jsx)(O,{text:"Online Certifications",href:(0,D.Zt)()}),(0,l.jsx)(O,{text:"Microcredentials",href:(0,D.zS)("microcredentials")}),(0,l.jsx)(O,{text:"Online Bootcamps",href:(0,D.zS)("bootcamps")}),(0,l.jsx)(O,{text:"Online Degrees",href:N.f0X()}),(0,l.jsx)(O,{text:"Online Master’s Degrees",href:(0,D.dd)("masters")}),(0,l.jsx)(O,{text:"Online Bachelor’s Degrees",href:(0,D.dd)("bachelors")}),(0,l.jsx)(O,{text:"Online Postgraduate Certificates",href:(0,D.dd)("postgraduate-certificate")})]}),(0,l.jsxs)(A,{heading:"Course Subjects",children:[(0,l.jsx)(O,{text:"Business and Management",href:N.rz5("business-and-management-courses")}),(0,l.jsx)(O,{text:"Healthcare and Medicine",href:N.rz5("healthcare-medicine-courses")}),(0,l.jsx)(O,{text:"Teaching",href:N.rz5("teaching-courses")}),(0,l.jsx)(O,{text:"Psychology and Mental Health",href:N.rz5("psychology-and-mental-health-courses")}),(0,l.jsx)(O,{text:"IT and Computer Science",href:N.rz5("it-and-computer-science-courses")}),(0,l.jsx)(O,{text:"Language",href:N.rz5("language-courses")}),(0,l.jsx)(O,{text:"Creative Arts & Media",href:N.rz5("creative-arts-and-media-courses")}),(0,l.jsx)(O,{text:"Science, Engineering & Maths",href:N.rz5("science-engineering-and-maths-courses")})]}),(0,l.jsxs)(A,{heading:"Learn a new skill",children:[(0,l.jsx)(O,{text:"Digital Marketing",href:N.lvI("business-and-management-courses","digital-marketing")}),(0,l.jsx)(O,{text:"Data Analytics",href:N.lvI("business-and-management-courses","data-analytics")}),(0,l.jsx)(O,{text:"Artificial Intelligence (AI)",href:N.lvI("it-and-computer-science-courses","artificial-intelligence")}),(0,l.jsx)(O,{text:"Data Science",href:N.lvI("science-engineering-and-maths-courses","data-science")}),(0,l.jsx)(O,{text:"Human Resources (HR)",href:N.lvI("business-and-management-courses","human-resources")}),(0,l.jsx)(O,{text:"Cyber Security",href:N.lvI("it-and-computer-science-courses","cyber-security")}),(0,l.jsx)(O,{text:"Project Management",href:N.lvI("business-and-management-courses","project-management")}),(0,l.jsx)(O,{text:"Coding & Programming",href:N.lvI("it-and-computer-science-courses","coding-programming")}),(0,l.jsx)(O,{text:"Course collections",href:N.JaC()})]}),(0,l.jsxs)(A,{heading:"Explore our online degrees",children:[(0,l.jsx)(O,{text:"MBA Degrees",href:(0,D.dd)("mba")}),(0,l.jsx)(O,{text:"Psychology Degrees",href:(0,D.dd)("psychology")}),(0,l.jsx)(O,{text:"Teaching Degrees",href:(0,D.dd)("teaching")}),(0,l.jsx)(O,{text:"IT & Computer Science Degrees",href:(0,D.dd)("it-and-computer-science")}),(0,l.jsx)(O,{text:"Data Science Degrees",href:(0,D.nY)("data-analytics","data-science")}),(0,l.jsx)(O,{text:"PGCE",href:(0,D.dd)("pgce")}),(0,l.jsx)(O,{text:"Software Engineering Degrees",href:(0,D.nY)("it-and-computer-science","software-engineering")}),(0,l.jsx)(O,{text:"Business & Management Degrees",href:(0,D.dd)("business-and-management")})]}),(0,l.jsxs)(A,{heading:"Earn a master’s degree online",children:[(0,l.jsx)(O,{text:"Master’s Degrees in Psychology",href:(0,D.nY)("masters","psychology")}),(0,l.jsx)(O,{text:"Master’s Degrees in Computer Science",href:(0,D.nY)("masters","it-and-computer-science")}),(0,l.jsx)(O,{text:"Master’s Degrees in Data Science",href:(0,D.YD)("masters","data-analytics","data-science")}),(0,l.jsx)(O,{text:"Master’s Degrees in Digital Marketing",href:(0,D.YD)("masters","marketing","digital-marketing")}),(0,l.jsx)(O,{text:"Master’s Degrees in Public Health",href:(0,D.YD)("masters","healthcare","public-health")}),(0,l.jsx)(O,{text:"Master’s Degrees in Finance",href:(0,D.YD)("masters","accounting-and-finance","finance")}),(0,l.jsx)(O,{text:"Master’s Degrees in Economics",href:(0,D.nY)("masters","economics")}),(0,l.jsx)(O,{text:"Master’s Degrees in Artificial Intelligence (AI)",href:(0,D.YD)("masters","it-and-computer-science","artificial-intelligence")})]}),(0,l.jsxs)(A,{heading:"Earn a bachelor’s degree online",children:[(0,l.jsx)(O,{text:"Bachelor’s Degrees in Healthcare",href:(0,D.nY)("bachelors","healthcare")}),(0,l.jsx)(O,{text:"Bachelor's Degrees in Criminology",href:(0,D.nY)("bachelors","criminology")}),(0,l.jsx)(O,{text:"Bachelor’s in Degrees Psychology",href:(0,D.nY)("bachelors","psychology")}),(0,l.jsx)(O,{text:"Bachelor’s Degrees in Accounting",href:(0,D.YD)("bachelors","accounting-and-finance","accounting")}),(0,l.jsx)(O,{text:"Bachelor’s Degrees in Economics",href:(0,D.nY)("bachelors","economics")}),(0,l.jsx)(O,{text:"Bachelor’s Degrees in Finance",href:(0,D.YD)("bachelors","accounting-and-finance","finance")}),(0,l.jsx)(O,{text:"Bachelor’s Degrees in Project Management",href:(0,D.YD)("bachelors","business-and-management","project-management")}),(0,l.jsx)(O,{text:"Bachelor’s Degrees in Business & Management",href:(0,D.nY)("bachelors","business-and-management")})]})]})})}),(0,l.jsx)(w.Z,{}),(0,l.jsx)("div",{className:B().spacer,children:(0,l.jsx)("section",{className:B().container,children:(0,l.jsxs)(C.Z,{columns:[1,3,6],spacing:["5","5","7"],children:[(0,l.jsxs)(A,{heading:"About FutureLearn",children:[(0,l.jsx)(O,{text:"The FutureLearn leadership team",href:"/info/leadership-team"}),(0,l.jsx)(O,{text:"Work at FutureLearn",href:"/info/career-home"}),(0,l.jsx)(O,{text:"Press",href:"/info/press-releases"}),(0,l.jsx)(O,{text:"Blog",href:"/info/blog"})]}),(0,l.jsxs)(A,{heading:"Using FutureLearn",children:[(0,l.jsx)(O,{text:"Using our platform",href:N.uMi()}),(0,l.jsx)(O,{text:"FutureLearn Reviews",href:N.vJD()}),(0,l.jsx)(O,{text:"Learning guide",href:F.bs$()}),(0,l.jsx)(O,{text:"Certificates",href:F._oH()}),(0,l.jsx)(O,{text:"Unlimited",href:Z.A5K()}),(0,l.jsx)(O,{text:"Request a free CV Review",href:"https://portal.webolytics.com/inbound/click?ctID=NTAxMw=="})]}),(0,l.jsxs)(A,{heading:"Work with FutureLearn",children:[(0,l.jsx)(O,{text:"Our partners",href:"/partners"}),(0,l.jsx)(O,{text:"FutureLearn for Universities",href:"/promo/futurelearn-for-universities"}),(0,l.jsx)(O,{text:"FutureLearn for Business",href:"/promo/futurelearn-for-business"}),(0,l.jsx)(O,{text:"FutureLearn for Government",href:"/promo/futurelearn-for-government"}),(0,l.jsx)(O,{text:"FutureLearn for Schools",href:"/promo/futurelearn-for-schools"}),(0,l.jsx)(O,{text:"FutureLearn for Affiliates",href:"https://portal.webolytics.com/inbound/click?ctID=NTAxMg=="})]}),(0,l.jsxs)(A,{heading:"Small Print",children:[(0,l.jsx)(O,{text:"T&Cs",href:"/info/terms"}),(0,l.jsx)(O,{text:"Privacy policy",href:"/info/terms/privacy-policy"}),(0,l.jsx)(O,{text:"Refund policy",href:"/info/terms/refund-policy"}),(0,l.jsx)(O,{text:"Cookie policy",href:"/info/terms/cookie-policy"}),(0,l.jsx)(O,{text:"Code of conduct",href:"/info/terms/code-of-conduct"}),(0,l.jsx)(O,{text:"Accessibility policy",href:"/info/terms/accessibility-policy"}),(0,l.jsx)(O,{text:"Sitemap",href:"/info/sitemap"}),(0,l.jsx)(O,{text:"Open steps sitemap",href:"/info/step-tag/checked-index"})]}),(0,l.jsxs)(A,{heading:"Need some help?",children:[(0,l.jsx)(O,{text:"Child safety",href:"/info/about/child-safety"}),(0,l.jsx)(O,{text:"Help Centre",href:"https://futurelearn.zendesk.com/hc/en-us"}),(0,l.jsx)(O,{text:"Contact",href:"/info/about/contact-us"})]})]})})})]}),(0,l.jsx)("div",{className:B().gradientLine}),(0,l.jsx)(y.Z,{color:"white",children:(0,l.jsx)("div",{className:B().spacer,children:(0,l.jsx)("section",{className:B().container,children:(0,l.jsxs)(S.Z,{alignItems:"center",align:"spaceBetween",direction:["vertical","horizontal"],children:[(0,l.jsxs)(S.Z,{elName:"ul",alignItems:"center",spacing:"4",children:[(0,l.jsx)(H,{icon:"facebook",href:"https://www.facebook.com/FutureLearn",title:"FutureLearn on Facebook"}),(0,l.jsx)(H,{icon:"instagram",href:"https://www.instagram.com/futurelearn",title:"FutureLearn on Instagram"}),(0,l.jsx)(H,{icon:"twitter",href:"https://twitter.com/FutureLearn",title:"@futurelearn on Twitter"}),(0,l.jsx)(H,{icon:"youtube",href:"http://www.youtube.com/channel/UC3i5AS_kCaFppoMwULYb99g",title:"FutureLearn on YouTube"}),(0,l.jsx)(H,{icon:"linkedin",href:"http://www.linkedin.com/company/futurelearn",title:"FutureLearn on LinkedIn"})]}),(0,l.jsx)("a",{href:"/",children:(0,l.jsx)(b(),{height:"42",width:"120",src:T,alt:"FutureLearn – online courses from top universities"})})]})})})})]}),K=n(35847),J=n(94184),Q=n.n(J),X=n(51303),$=n(19350),ee=n(44162),et=n(93733),en=n.n(et);let ei=e=>Q()(en().suggestion,{[en().suggestionIsActive]:e});var er=e=>{let{suggestions:t,activeSuggestion:n,activeSuggestionLinkRef:i}=e;return(0,l.jsx)("div",{className:en().suggestions,children:(0,l.jsx)("ul",{className:en().suggestionsList,children:t.map(e=>(0,l.jsx)("li",{className:ei(e===n),children:(0,l.jsxs)("a",{...e.ahoyProperties,className:"".concat(en().suggestionLink," js-ahoy-track"),href:e.path,ref:t=>{e===n&&i(t)},children:[(0,l.jsx)("strong",{className:en().suggestionTitle,children:e.title}),(0,l.jsx)("small",{children:e.type})]})},e.path))})})},es=n(19366),ea=n.n(es);let eo=()=>({credentials:"same-origin",headers:{"X-Requested-With":"XMLHttpRequest",Accept:"application/json"}}),ec=(e,t,n)=>new Promise((i,r)=>{setTimeout(r,e),fetch(t,n).then(i).catch(r)});var el=e=>{let{searchPath:t="/search",placeholderText:n="Explore FutureLearn",id:i="search",inputRef:r,isEnhanced:s=!1,currentQuery:a="",suggestPath:o,suggestQueryTimeout:c=500,shouldPreventDefault:u,onBeforeSubmit:d,onSuccess:m,onError:h}=e,[p,g]=(0,j.useState)([]),[f,_]=(0,j.useState)(null),[x,v]=(0,j.useState)(!1),[k,b]=(0,j.useState)(!1),y=(0,j.useRef)(null),C=(0,j.useRef)(null),w=null!==f?p[f]:null,S=!o||k,N=()=>{_(e=>null===e?0:Math.min(e+1,p.length-1))},F=()=>{_(e=>e?e-1:null)},Z=()=>{g([]),_(null)},D=e=>{Z(),null==d||d(e)},T=()=>{Z(),b(!0)};return(0,l.jsx)("div",{ref:y,onBlur:()=>{setTimeout(()=>{v((0,ee.kb)(y.current))},100)},onFocus:()=>{v(!0)},children:(0,l.jsxs)("form",{action:t,method:"GET",className:Q()(ea().searchForm,{[ea().isEnhanced]:s}),onSubmit:e=>{var n,i;if(!u)return;e.preventDefault(),D(e);let r=encodeURIComponent(null!==(i=null===(n=new FormData(e.currentTarget).get("q"))||void 0===n?void 0:n.toString())&&void 0!==i?i:"");r&&fetch("".concat(t,"?q=").concat(r),eo()).then(e=>204===e.status?Promise.resolve(null):e.json()).then(m).catch(h)},acceptCharset:"UTF-8",children:[(0,l.jsx)(X.Z,{children:(0,l.jsx)("label",{htmlFor:"".concat(i,"-input"),children:"Search term"})}),(0,l.jsx)("input",{ref:r,name:"q",id:"".concat(i,"-input"),className:ea().input,type:"search",placeholder:n,defaultValue:a,autoComplete:"off",onChange:e=>{if(S)return;let t=encodeURIComponent(e.currentTarget.value);t?ec(c,"".concat(o,"?q=").concat(t),eo()).then(e=>e.json()).then(e=>{_(null),g(e.suggestions)}).catch(()=>T()):Z()},onKeyDown:e=>{if("ArrowDown"===e.key&&(e.preventDefault(),N()),"ArrowUp"===e.key&&(e.preventDefault(),F()),"Enter"===e.key&&w){var t;e.preventDefault(),null===(t=C.current)||void 0===t||t.click()}}}),(0,l.jsx)("div",{className:ea().button,children:(0,l.jsxs)($.Z,{size:s?"medium":"small",isFullHeight:!0,children:[(0,l.jsx)(X.Z,{children:"Search"}),(0,l.jsx)(E.ZP,{name:"search",size:"xlarge"})]})}),x&&p.length>0?(0,l.jsx)(er,{suggestions:p,activeSuggestion:w,activeSuggestionLinkRef:e=>{C.current=e}}):null]})})},eu=n(71178),ed=n.n(eu),em=e=>{let{suggestPath:t,isOpen:n,searchBarRef:i,onClose:r}=e,s=(0,j.useRef)(null);return(0,j.useEffect)(()=>{n&&s.current&&s.current.focus()},[n]),(0,l.jsx)("div",{ref:i,children:(0,l.jsx)(U.Z,{type:"altAdjacent",hasOverflow:!0,children:(0,l.jsx)("div",{className:Q()(ed().searchBar,{[ed().isOpen]:n}),children:(0,l.jsxs)("div",{className:ed().content,children:[(0,l.jsx)("div",{className:ed().searchWrapper,children:(0,l.jsx)(el,{id:"search-bar",placeholderText:"Explore FutureLearn",inputRef:s,suggestPath:t})}),(0,l.jsx)("button",{className:ed().close,type:"button",title:"close",onClick:r,children:(0,l.jsx)(E.ZP,{name:"cross",size:"medium"})})]})})})})},eh=n(84039),ep=n(19832),eg=n(50168),ef=n(3446),e_=n.n(ef),ex=e=>{let{id:t,href:n,toggle:i,isOpen:r,breakpoint:s="large"}=e,a=(0,eg.Z)();return(0,l.jsx)("a",{href:n,onClick:e=>{e.preventDefault(),i(t)},className:Q()(e_().menuBurger,{[e_().largeBreakPoint]:"large"===s,[e_().xLargeBreakPoint]:"xlarge"===s}),role:a?"button":void 0,"aria-pressed":a?r:void 0,title:"Main navigation",children:(0,l.jsx)("span",{children:"Menu"})})},ev={src:"/_next/static/media/fl_logo.b0d9d0ee.svg",height:167,width:476,blurWidth:0,blurHeight:0},ej=()=>{let e=document.createElement("input");e.setAttribute("type","text"),e.style.position="absolute",e.style.opacity="0",e.addEventListener("blur",()=>e.remove()),document.body.prepend(e),e.focus()},ek=n(36790),eb=n(21273),ey=n(14935),eC=e=>{let t=(0,j.useRef)(e);return(0,j.useEffect)(()=>{t.current=e}),t.current},ew=n(67497),eS=n(8464),eN=n.n(eS);(i=a||(a={}))[i.NONE=1]="NONE",i[i.THIS_ONE=2]="THIS_ONE",i[i.ANOTHER_ONE=3]="ANOTHER_ONE";var eF=e=>{let{title:t,id:n,toggle:i,children:r,activeMenuId:s,whichSubmenuIsActive:a}=e,o=(0,j.useRef)(null),c=eC(s),u=eC(a);(0,j.useEffect)(()=>{if(null===s&&null!==c)return;let e=1===u&&2===a,t=2===u&&1===a;e?(0,ep.qw)(o.current):t&&(0,ep.iM)(o.current)},[s,c,a,u]);let d=2===a,m=Q()(eN().submenuHeading,{[eN().submenuHeadingIsActive]:d});return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("h2",{className:m,children:(0,l.jsx)(ey.Z,{onClick:()=>i(n),active:d,text:t,type:"submenuItem",ariaControls:n,tracking:(0,ew.rk)("main-nav-toggle")})}),(0,l.jsx)("div",{id:n,className:eN().submenuPanel,ref:o,children:(0,l.jsx)("div",{className:eN().submenuContent,children:r})})]})},eZ=n(28211),eD=n(97543),eT=n(84911),eL=n(41609),eP=n.n(eL),eM=n(53240),eB=n(45442),eA=e=>{let{card:t,trackingProperties:n,onClick:i}=e,{path:r,imageUrl:s,imageAlt:a,label:o,title:c,introduction:u,cardColor:d,isFullHeight:m,withSmallText:h=!1,salesDiscount:p}=t;return(0,l.jsxs)(eM.Z,{cardColor:d,salesDiscount:p,isFullHeight:m,link:{href:r,ahoyTrackingProperties:n,onClick:i},image:{src:s,alt:a},children:[!eP()(o)&&(0,l.jsx)(eB.__,{size:h?"xsmall":"small",children:o}),(0,l.jsx)(eB.Dx,{size:h?"small":"medium",children:c}),!eP()(u)&&(0,l.jsx)(eB.Rv,{children:u})]})},eI=n(78737),eO=n(86196),eE=n.n(eO),eH=e=>{let{card:t,lazyLoadImage:n,onClick:i}=e;return(0,l.jsxs)("a",{href:t.path,onClick:i,className:eE().wrapper,children:[(0,l.jsx)("div",{children:(0,l.jsx)(eI.Z,{className:eE().image,src:t.imageUrl,alt:t.imageAlt,lazyLoad:n})}),(0,l.jsxs)("div",{children:[(0,l.jsx)(eB.__,{size:"xsmall",children:t.label}),(0,l.jsx)(z.Z,{spacing:"1 0 0",children:(0,l.jsx)(P.Z,{elName:"h3",size:"small",isCompact:!0,children:t.title})})]})]})},eU=n(31177),ez=n.n(eU);let eR=(e,t,n)=>(0,eb.ZP)({category:eb.Jk.MainNavSubmenu,action:t,label:n,event:e}),eW=e=>e?eb.AO.MainNavFeaturedItemSubjectLevelClick:eb.AO.MainNavFeaturedItemTopLevelClick,eq=e=>e.topics.length>0;var eY=n(99994),eG=n.n(eY);let eV=[{subtitle:"Short Online Courses",links:[{label:"Explore Courses with Unlimited",path:"/courses?filter_category=open&filter_course_type=unlimited&filter_availability=started"},{label:"ExpertTracks",path:"/courses?filter_category=open&filter_course_type=expert_track&filter_availability=started"},{label:"Premium Courses",path:"/courses?filter_category=open&filter_course_type=premium&filter_availability=started"},{label:"All Short Online Courses",path:"/courses"}],cta:{label:"Get Unlimited Learning",path:"/unlimited"}},{subtitle:"Online Certifications",links:[{label:"Microcredentials",path:"/certifications/microcredentials"},{label:"Bootcamps",path:"/certifications/bootcamps"},{label:"All Online Certifications",path:"/certifications"}]},{subtitle:"Online Degrees",links:[{label:"Business & Management Degrees",path:"/degrees/business-and-management"},{label:"MBA Degrees",path:"/degrees/mba"},{label:"Psychology Degrees",path:"/degrees/psychology"},{label:"Teaching Degrees",path:"/degrees/teaching"},{label:"IT & Computer Science Degrees",path:"/degrees/it-and-computer-science"},{label:"All Online Degrees",path:"/degrees"}]}],eK=(e,t,n)=>{e.preventDefault(),(0,eb.ZP)({category:eb.Jk.MainNavSubmenu,action:eb.AO.MainNavCoursesClick,label:t,event:e}),setTimeout(()=>window.location.assign(n),1e3)},eJ=[{label:"For Universities",path:"/promo/futurelearn-for-universities"},{label:"For Businesses",path:"/promo/futurelearn-for-business"},{label:"For Government",path:"/promo/futurelearn-for-government"},{label:"For Schools",path:"/promo/futurelearn-for-schools"}],eQ=(e,t,n)=>{e.preventDefault(),(0,eb.ZP)({category:eb.Jk.MainNavSubmenu,action:eb.AO.MainNavFLBusinessSubmenuClick,label:t,event:e}),setTimeout(()=>window.location.assign(n),1e3)};var eX={Subjects:e=>{let{subjects:t,topLevelFeaturedItems:n}=e,[i,r]=(0,j.useState)(null),[s,a]=(0,j.useState)(n),o=j.useRef(null),c="Short Course";(0,j.useEffect)(()=>{i?a(t.find(e=>e.title===i).featuredCourses):a(n)},[i,t,n]);let u=()=>(o.current||(o.current=new Map),o.current),d=e=>{if(e===i)r(null);else{r(e);let t=u().get(e);t&&((0,ep.Ji)(t,"long"),t.querySelector("[data-topic-heading]").focus())}},m=(e,t)=>{eq(t)&&(e.preventDefault(),d(t.title)),eR(e,eb.AO.MainNavSubjectClick,t.title)},h=(e,t)=>{eR(e,eW(!!i),t.title)};return(0,l.jsxs)("div",{className:ez().wrapper,children:[t.filter(eq).map(e=>(0,l.jsxs)("div",{ref:t=>{let n=u();t?n.set(e.title,t):n.delete(e.title)},className:Q()(ez().topics,{[ez().isActive]:i===e.title}),children:[(0,l.jsx)("div",{className:Q()(ez().backButton),children:(0,l.jsx)(eZ.Z,{onClick:()=>r(null),isSecondary:!0,children:(0,l.jsx)(eD.Z,{icon:"arrow_left",text:"Back to subjects",isRegular:!0})})}),(0,l.jsxs)("h5",{className:ez().heading,tabIndex:-1,"data-topic-heading":!0,children:[e.title," Topics"]}),(0,l.jsx)("ul",{className:ez().list,children:e.topics.map(e=>(0,l.jsx)("li",{className:ez().listItem,children:(0,l.jsx)(I.Z,{href:e.url,isSecondary:!0,isBlock:!0,onClick:t=>eR(t,eb.AO.MainNavTopicClick,e.title),children:e.title})},e.title))}),(0,l.jsxs)(eT.Z,{href:e.url,level:"secondary",isFullWidth:[!0,!0,!1],onClick:t=>eR(t,eb.AO.MainNavSubjectClick,"View all ".concat(e.title," courses")),children:["View all ",e.title," courses"]})]},"topics-".concat(e.title))),(0,l.jsxs)("div",{className:Q()(ez().subjects,{[ez().isHiddenForMobile]:i}),children:[(0,l.jsx)("h5",{className:Q()(ez().heading,ez().isHiddenForMobile),children:"Subjects"}),(0,l.jsx)("ul",{className:ez().list,children:t.map(e=>(0,l.jsx)("li",{className:Q()(ez().listItem,{[ez().hasTopics]:eq(e),[ez().isActive]:i===e.title}),children:(0,l.jsx)(I.Z,{href:e.url,isSecondary:!0,isBlock:!0,onClick:t=>m(t,e),children:e.title})},e.title))})]}),s.length>0&&(0,l.jsxs)("div",{className:ez().featuredItems,children:[(0,l.jsx)("h5",{className:Q()(ez().heading,ez().noUnderline),children:"Featured"}),(0,l.jsx)("div",{className:ez().isHiddenForMobile,children:(0,l.jsx)(C.Z,{columns:i?1:2,spacing:"5",children:s.map(e=>(0,l.jsx)(eA,{card:{cardColor:"white",withSmallText:!0,label:c,...e},onClick:t=>h(t,e)},e.id))})}),(0,l.jsx)("div",{className:ez().isHiddenForDesktop,children:(0,l.jsx)(L.Z,{spacing:"3",children:s.map(e=>(0,l.jsx)(eH,{lazyLoadImage:!0,card:{label:c,...e},onClick:t=>h(t,e)},e.id))})})]})]})},Courses:()=>(0,l.jsx)(C.Z,{columns:[1,3],children:eV.map(e=>{let{subtitle:t,links:n,cta:i}=e;return(0,l.jsxs)("div",{className:eG().sections,children:[(0,l.jsx)("h5",{className:eG().heading,tabIndex:-1,"data-topic-heading":!0,children:t}),(0,l.jsx)("ul",{className:eG().list,children:n.map(e=>{let{label:t,path:n}=e;return(0,l.jsx)("li",{className:eG().listItem,children:(0,l.jsx)(I.Z,{href:n,isSecondary:!0,isBlock:!0,onClick:e=>eK(e,t,n),children:t})},n)})}),i&&(0,l.jsx)(eT.Z,{href:i.path,level:"secondary",isFullWidth:[!0,!0,!1],onClick:e=>eK(e,i.label,i.path),children:i.label})]},t)})}),FutureLearnForBusiness:()=>(0,l.jsx)(C.Z,{columns:[1,3],children:(0,l.jsxs)("div",{className:eG().sections,children:[(0,l.jsx)("h5",{className:eG().heading,tabIndex:-1,"data-topic-heading":!0,children:"Industry type"}),(0,l.jsx)("ul",{className:eG().list,children:eJ.map(e=>{let{label:t,path:n}=e;return(0,l.jsx)("li",{className:eG().listItem,children:(0,l.jsx)(I.Z,{href:n,isSecondary:!0,isBlock:!0,onClick:e=>eQ(e,t,n),children:t})},n)})})]})})},e$=n(87981),e0=n(80592);let e1=!0,e3=()=>{var e;let{MathJax:t}=window;return t&&e1?null===(e=t.startup)||void 0===e?void 0:e.promise.then(()=>{t.typesetPromise&&t.typesetPromise()}):null},e2=()=>{window.MathJax={options:{ignoreHtmlClass:"tex2jax_ignore",processHtmlClass:"tex2jax_process"},tex:{autoload:{color:[],colorv2:["color"]},packages:{"[+]":["noerrors"]}},loader:{load:["[tex]/noerrors","ui/safe"]}};let e=document.createElement("script");e.src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js",e.async=!0,e.addEventListener("load",()=>{e1=!0,e3()}),document.head.appendChild(e)};var e6=e=>{let{children:t}=e;return(0,j.useEffect)(()=>{window.MathJax?e3():(e1=!1,e2())}),t},e9=n(67009),e4=n(29275),e5=n(48563),e7=n(30028),e8=n.n(e7);let te=e=>{let[t,...n]=e;return 0===n.length?[t]:1===n.length?[t," and ",...n]:[t,", ",...te(n)]};var tt=e=>{let{participants:t=[],totalParticipants:n=0,summary:i,timestamp:r}=e,[s,a]=(0,j.useState)((0,e4.GV)(r));(0,j.useEffect)(()=>{a((0,e4.Qf)(Date.now(),Date.parse(r))||(0,e4.GV)(r))},[r]);let o=t.slice(0,2).map(e=>e.fullName);return n>2&&o.push((0,e9._6)("other",n-2)),(0,l.jsxs)(S.Z,{spacing:"2",align:"spaceBetween",children:[(0,l.jsxs)(q.Z,{size:"xsmall",children:[te(o.map(e=>(0,l.jsx)("strong",{children:e},e)))," ",(0,l.jsx)("span",{dangerouslySetInnerHTML:(0,e5.Z)(i)})]}),(0,l.jsx)(q.Z,{size:"xsmall",color:"mediumGrey",children:(0,l.jsx)("time",{className:e8().time,dateTime:r,children:s})})]})},tn=n(22224),ti=n(16276);let tr=e=>{let t=["ultramarine","purple","violet","pink","coral","orange","gold","yellow"];return t[e%t.length]},ts={Following:eb.AO.NotificationFollow,Like:eb.AO.NotificationCommentLike,Comment:eb.AO.NotificationCommentReply,Mention:eb.AO.NotificationCommentMention,ProgramDiscussionCommentPin:eb.AO.NotificationCommentPin},ta=e=>e?ts[e]:void 0;var to=e=>{let{participants:t=[],actions:n=[],status:i,type:r}=e,s=ta(r);return(0,l.jsxs)("div",{className:e8().footer,children:[(0,l.jsxs)(S.Z,{spacing:"2",align:"spaceBetween",wrap:"wrap",alignItems:"end",children:[(0,l.jsx)(S.Z,{spacing:"2",children:t.map(e=>(0,l.jsxs)(S.Z,{spacing:"1",alignItems:"center",children:[(0,l.jsx)(I.Z,{href:(0,N.J$Y)(e.id),onClick:e=>s&&(0,eb.ZP)({category:eb.Jk.NotificationsLearner,action:s,label:"user_profile",event:e}),children:(0,l.jsx)(tn.Z,{size:"small",profileImage:{fullName:e.fullName,initials:e.initials,imageUrl:e.imageUrl,colour:tr(e.id)}})}),e.role&&(0,l.jsx)(ti.Z,{compact:!0,children:e.role})]},e.id))}),(0,l.jsx)(S.Z.Item,{expand:!0,children:(0,l.jsx)(S.Z,{spacing:"3",align:"end",children:n.map(e=>(0,l.jsx)(I.Z,{onClick:e=>s&&(0,eb.ZP)({category:eb.Jk.NotificationsLearner,action:s,label:"conversation",event:e}),href:e.href,size:"xsmall",isBold:!0,children:e.text},e.href))})})]}),i&&(0,l.jsx)(q.Z,{size:"xsmall",color:"mediumGrey",isBold:!0,alignment:"right",children:i})]})},tc=e=>{let{title:t,label:n,introduction:i,imageUrl:r,imageAlt:s}=e;return(0,l.jsx)(y.Z,{color:"gainsboro-grey",children:(0,l.jsx)(z.Z,{spacing:"2",children:(0,l.jsxs)(S.Z,{spacing:"2",children:[(0,l.jsx)(eI.Z,{src:r,alt:s,objectFit:"cover",className:e8().image,lazyLoad:!0}),(0,l.jsxs)(S.Z.Item,{expand:!0,children:[(0,l.jsx)(q.Z,{size:"xsmall",color:"mediumGrey",children:n}),(0,l.jsx)(q.Z,{isBold:!0,size:"medium",children:t}),(0,l.jsx)(q.Z,{size:"xsmall",color:"mediumGrey",children:i})]})]})})})},tl=n(77164),tu=n.n(tl),td=e=>{let{isReordering:t=!1,content:n}=e;return(0,l.jsx)("div",{className:Q()(tu().wrapper,{[tu().isTruncated]:t}),dangerouslySetInnerHTML:(0,e5.Z)(n)})},tm=e=>{let{context:t,content:n,isLearnerGenerated:i}=e;return(0,l.jsxs)(L.Z,{spacing:"1",children:[t&&(0,l.jsx)(q.Z,{size:"xsmall",color:"mediumGrey",isBold:!0,children:t}),n&&(i?(0,l.jsx)(td,{content:n}):(0,l.jsx)("div",{className:e8().content,dangerouslySetInnerHTML:(0,e5.Z)(n)}))]})};let th=e=>{if(!e||!e.type)return null;switch(e.type){case"course":return(0,l.jsx)(tc,{...e});case"preview":return(0,l.jsx)(tm,{...e});default:throw Error("Unrecognised attachment type!")}};var tp=e=>{let{state:t="read",icon:n,participants:i=[],totalParticipants:r=0,summary:s,timestamp:a,attachment:o,actions:c=[],status:u,isCompact:d=!1,type:m}=e,h=Q()(e8().notification,e8()[t],{[e8().isCompact]:d});return(0,l.jsx)("div",{className:h,"data-notification-read-state":t,children:(0,l.jsxs)(S.Z,{spacing:"2",children:[(0,l.jsx)(E.ZP,{name:n,size:d?"small":"medium"}),(0,l.jsx)(S.Z.Item,{expand:!0,children:(0,l.jsxs)(L.Z,{spacing:"3",children:[(0,l.jsx)(tt,{participants:i,totalParticipants:r,summary:s,timestamp:a}),th(o),(0,l.jsx)(to,{participants:i,actions:c,status:u,type:m})]})})]})})},tg=()=>(0,l.jsx)(z.Z,{spacing:"3",children:(0,l.jsxs)(L.Z,{spacing:"3",children:[(0,l.jsx)(q.Z,{size:"xsmall",children:"You’ll get notifications about:"}),(0,l.jsxs)(S.Z,{spacing:"3",children:[(0,l.jsx)(E.ZP,{name:"cmt_open",size:"medium"}),(0,l.jsxs)(L.Z,{spacing:"0",children:[(0,l.jsx)(q.Z,{isBold:!0,size:"small",children:"Replies"}),(0,l.jsx)(q.Z,{size:"xsmall",children:"When someone replies to your comments."})]})]}),(0,l.jsxs)(S.Z,{spacing:"3",children:[(0,l.jsx)(E.ZP,{name:"like",size:"medium"}),(0,l.jsxs)(L.Z,{spacing:"0",children:[(0,l.jsx)(q.Z,{isBold:!0,size:"small",children:"Likes"}),(0,l.jsx)(q.Z,{size:"xsmall",children:"When someone likes your comments."})]})]}),(0,l.jsxs)(S.Z,{spacing:"3",children:[(0,l.jsx)(E.ZP,{name:"profile",size:"medium"}),(0,l.jsxs)(L.Z,{spacing:"0",children:[(0,l.jsx)(q.Z,{isBold:!0,size:"small",children:"Followers"}),(0,l.jsx)(q.Z,{size:"xsmall",children:"When someone follows you."})]})]})]})}),tf=n(518),t_=n.n(tf),tx=e=>{let{showBadge:t,unreadCount:n="0",unreadText:i="You have 0 notifications"}=e;return(0,l.jsxs)("a",{href:(0,N.Rjo)(),className:t_().button,children:["View all notifications",t&&(0,l.jsx)("span",{className:t_().badge,children:(0,l.jsx)(e$.Z,{unreadCount:n,unreadText:i})})]})},tv=n(62020),tj=n.n(tv),tk=e=>{let{notifications:t,badge:n}=e;return(0,l.jsxs)(e6,{children:[(null==t?void 0:t.length)?(0,l.jsx)("div",{className:tj().feed,children:(0,l.jsx)(L.Z,{elName:"ul",spacing:"0",hasDividers:!0,children:t.map(e=>(0,l.jsx)(tp,{...e,isCompact:!0}))})}):(0,l.jsx)(tg,{}),n&&(0,l.jsx)(tx,{...n})]})},tb=()=>(0,l.jsx)(z.Z,{spacing:"3",children:(0,l.jsxs)(q.Z,{size:"xsmall",children:["Sorry, it looks like we can’t load your notifications right now. See them all"," ",(0,l.jsx)("a",{href:(0,N.Rjo)(),children:"here"})," instead."]})}),ty=e=>{let[t,n]=(0,j.useState)(!1);return(0,j.useEffect)(()=>{if(!e.current||!t)return;let i=t=>{var i;let r=!!(null===(i=e.current)||void 0===i?void 0:i.contains(t.target));setTimeout(()=>{n(r)},0)};return document.addEventListener("click",i,{capture:!0}),()=>{document.removeEventListener("click",i,{capture:!0})}},[e,t]),[t,e=>{e.preventDefault(),n(e=>!e)}]};let tC=["scroll","wheel","touchmove"],tw="m-feed-item__prevent-body-scroll",tS="m-feed-item__hide-scrollbars",tN=()=>document.body.classList,tF=()=>tN().add(tw),tZ=()=>tN().remove(tw),tD=()=>tN().add(tS),tT=()=>tN().remove(tS);var tL=(e,t,n)=>{(0,j.useEffect)(()=>{if(!e.current||!t)return;let i=t=>{var n;(null===(n=e.current)||void 0===n?void 0:n.contains(t.target))?tF():tZ()};return n&&tD(),tC.forEach(e=>document.addEventListener(e,i)),()=>{tT(),tZ(),tC.forEach(e=>document.removeEventListener(e,i))}},[e,t,n])},tP=n(86610),tM=n.n(tP),tB=e=>{let{badge:t}=e,n=(0,j.useRef)(null),[i,r]=ty(n),s=eC(i),[a,o]=(0,j.useState)(t),[c,u]=(0,j.useState)(!1),[d,m]=(0,j.useState)(null),[h,p]=(0,j.useState)(null);return tL(n,i),(0,j.useEffect)(()=>{if(!(i&&!s))return;let e={credentials:"same-origin",headers:{"X-Requested-With":"XMLHttpRequest",Accept:"application/json",...h&&{"If-Modified-Since":h}}};fetch((0,N.Rjo)({per_page:"10"}),e).then(e=>{if(304===e.status)return null;if(!e.ok)throw Error("Error response from server when fetching notifications");return p(e.headers.get("Last-Modified")),e.json()}).then(e=>{e&&(o(e.badge),m(e.notifications))}).catch(()=>{u(!0)})},[i,s,h]),(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("div",{className:tM().notifications,children:(0,l.jsxs)("a",{onClick:r,"aria-controls":"user-notifications","aria-expanded":i,className:"js-notifications-toggle",href:(0,N.Rjo)(),title:"Your notifications",children:[(0,l.jsx)(E.ZP,{name:"notifications",size:"medium"}),a.showBadge&&(0,l.jsx)("span",{className:tM().countBadge,children:(0,l.jsx)(e$.Z,{unreadCount:a.unreadCount,unreadText:a.unreadText,hasAnimation:!0})})]})}),(0,l.jsxs)(e0.Z,{ref:n,id:"user-notifications",isOpen:i,width:"calc(100vw - 32px)",minHeight:"100px",maxWidth:"370px",top:"59px",right:"0px",arrowOffset:"calc(100% - 78px)",children:[c&&(0,l.jsx)(tb,{}),d&&(0,l.jsx)(tk,{badge:a,notifications:d})]})]})},tA=n(91094),tI=n(16159),tO=n.n(tI);let tE={"data-js-ahoy-track":!0,...(0,ew.rk)("user-options-item-click")},tH=[{label:"Your learning",href:(0,N.TeO)()},{label:"Wishlist",href:(0,N.Gmr)()},{label:"Subscriptions",href:(0,N._uX)()},{label:"Profile",href:(0,N.rY$)()},{label:"Settings",href:(0,N.qkT)()},{label:"Account",href:(0,N.l_t)()}];var tU=e=>{let{avatar:t,hideSubscriptions:n}=e,i=(0,j.useRef)(null),[r,s]=ty(i);return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(tn.Z,{...t,className:tO().avatar,profilePath:"#user-options",linkProps:{title:"Your account",onClick:s,"aria-expanded":r,"aria-controls":"user-options"}}),(0,l.jsx)(e0.Z,{ref:i,id:"user-options",isOpen:r,minHeight:"100px",maxWidth:"370px",top:"59px",right:"0px",arrowOffset:"calc(100% - 22px)",children:(0,l.jsx)("nav",{className:tO().popoverNav,children:(0,l.jsxs)("ul",{className:tO().list,children:[tH.filter(e=>{let{label:t}=e;return"Subscriptions"!==t||!n}).map(e=>(0,l.jsx)("li",{className:tO().listItem,children:(0,l.jsx)(eT.Z,{data:tE,href:e.href,isFullWidth:!0,level:"tertiary",children:e.label})},e.label)),(0,l.jsx)("li",{className:tO().listItem,children:(0,l.jsx)(tA.ZP,{action:(0,N.aIv)(),method:"delete",children:(0,l.jsx)($.Z,{level:"tertiary",type:"submit",isFullWidth:!0,children:"Sign out"})})})]})})})]})},tz=n(81140),tR=n.n(tz),tW=e=>{let{userNotifications:t,userOptions:n}=e;return(0,l.jsxs)("div",{className:tR().userCorner,children:[(0,l.jsx)("div",{className:tR().notifications,children:(0,l.jsx)(tB,{...t})}),"\xa0",(0,l.jsx)("div",{className:tR().avatar,children:(0,l.jsx)(tU,{...n})})]})},tq=n(26071),tY=n(41187);let tG=(0,j.forwardRef)((e,t)=>{let{children:n,data:i,href:r,isBlock:s=!1,isBold:a=!1,isOnDarkBackground:o=!1,isPageHeaderItemTitle:c=!1,size:u="small",align:d="left",isSecondary:m=!1,isSelected:h=!1,noWrap:p=!1,...g}=e;return(0,l.jsx)(tq.Z,{href:r,ref:t,data:i,isBlock:s,...g,children:(0,l.jsx)(tY.Z,{isBold:a,isOnDarkBackground:o,isPageHeaderItemTitle:c,size:u,align:d,isSecondary:m,isSelected:h,noWrap:p,children:n})})});tG.displayName="MenuLink";var tV=n(85429),tK=n.n(tV),tJ=function(e){let{returnToken:t}=e,n=t?{return:t}:{};return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("div",{className:Q()(tK().signIn,"js-ahoy-track"),"data-ahoy-event-properties":'{"name": "sign_in_click", "source": "main_navigation"}',children:(0,l.jsx)(eT.Z,{level:"tertiary",href:(0,N.IyT)(n),isFullHeight:!0,children:"Sign in"})}),(0,l.jsx)("div",{className:Q()(tK().register,"js-ahoy-track"),"data-ahoy-event-properties":'{"name": "register_click", "source": "main_navigation"}',children:(0,l.jsx)(eT.Z,{href:(0,N.NMr)(n),isFullHeight:!0,children:"Register"})})]})};let tQ="navigation",tX="main-nav-submenu",t$=(e,t)=>{switch(e){case void 0:return a.NONE;case t:return a.THIS_ONE;default:return a.ANOTHER_ONE}};(r=o||(o={})).Subjects="Subjects",r.Courses="Courses",r.FutureLearnForBusiness="FutureLearnForBusiness";var t0=e=>{let{displaySubmenus:t=!0,subjects:n,topLevelFeaturedItems:i,userOptions:r,userNotifications:s,inverse:a=!1,signedIn:o=!1,showSearch:c=!0,displaySignedInNavigation:u=!0,displaySignedOutNavigation:d=!0,progressBarValue:m,errorWhileFetchingSubjects:h}=e,{query:{[tX]:p,...g},replace:_}=(0,f.useRouter)(),[x,v]=(0,j.useState)(p?tQ:null),[k,y]=(0,j.useState)(p),C=(0,j.useRef)(null),[w,S]=(0,ek.Z)(C,ep.qw,ep.iM,{serverSideDefault:!1}),F=()=>{y(void 0),_({query:g})},Z=e=>{y(t=>{let n=t===e;return n||v(tQ),_({query:n?g:{...g,[tX]:e}}),n?void 0:e})},T=Q()({[eN().isInverse]:a},eN().mainNavigation,"u-hidden-print"),L=e=>{switch(e.key){case"Subjects":return h?"\n Oops! We encountered a technical issue while loading our subjects.\n Please refresh the page to try again. If the issue persists,\n you can continue using our website without the banner.\n We apologise for any inconvenience.\n ":(0,l.jsx)(eX.Subjects,{...e.props});case"Courses":return(0,l.jsx)(eX.Courses,{...e.props});case"FutureLearnForBusiness":return(0,l.jsx)(eX.FutureLearnForBusiness,{});default:return null}},P=e=>(0,l.jsx)(eF,{title:e.title,id:e.id,activeMenuId:x,whichSubmenuIsActive:t$(k,e.id),toggle:Z,children:L(e)},e.key),M=(e,t)=>{e.preventDefault(),(0,eb.ZP)({category:eb.Jk.MainNav,action:eb.AO.MainNavDegreesClick,label:"Degrees",event:e}),setTimeout(()=>window.location.assign(t),1e3)};return(0,l.jsxs)(l.Fragment,{children:[c&&(0,l.jsx)("div",{className:"u-hidden-print",children:(0,l.jsx)(em,{searchBarRef:C,suggestPath:(0,N.Fm4)(),isOpen:w,onClose:e=>{e.preventDefault(),S(!1)}})}),(0,l.jsx)("header",{role:"banner","data-active-menu":x,className:T,children:(0,l.jsxs)("nav",{role:"navigation","aria-label":"Site",className:eN().inner,children:[(0,l.jsx)("div",{className:eN().logoContainer,children:(0,l.jsx)("a",{href:"/",className:eN().logoLink,children:(0,l.jsx)(b(),{src:ev,alt:"FutureLearn – online courses from top universities",priority:!0})})}),m&&(0,l.jsx)("div",{className:eN().progressBar,children:(0,l.jsx)(eh.Z,{progress:m,showLabel:!0})}),t&&(0,l.jsxs)(l.Fragment,{children:[P({key:"Subjects",title:"Subjects",id:"main-nav-categories",props:{subjects:n,topLevelFeaturedItems:i}}),P({key:"Courses",title:"Courses",id:"main-nav-courses"}),(0,l.jsx)("h2",{className:eN().submenuHeading,children:(0,l.jsx)(tG,{href:(0,D.LR)(),size:"medium",className:eN().headingLink,isBold:!0,onClick:e=>{M(e,(0,D.LR)())},children:"Degrees"})})," ",P({key:"FutureLearnForBusiness",title:"For Business",id:"main-nav-futurelearn-for-business"}),o&&(0,l.jsx)("h2",{className:eN().submenuHeading,children:(0,l.jsx)(tG,{href:(0,N.TeO)(),size:"medium",className:eN().headingLink,isBold:!0,children:"Your Learning"})})]}),(0,l.jsxs)("div",{className:eN().tools,children:[c&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("div",{className:eN().search,children:(0,l.jsx)(el,{placeholderText:"Search online courses",id:"main-nav-search-bar",suggestPath:(0,N.Fm4)()})}),(0,l.jsx)("a",{className:Q()(eN().searchLink,{[eN().searchLinkIsOpen]:w}),href:(0,N.gxh)(),title:"Search online courses",onClick:e=>{e.preventDefault(),w||ej(),S(e=>!e)},children:(0,l.jsx)(E.ZP,{name:"search"})})]}),t&&(0,l.jsx)(ex,{id:tQ,href:"#page-footer",toggle:e=>{v(t=>t===e?null:e),F()},isOpen:x===tQ,breakpoint:"large"}),u&&o&&s&&r&&(0,l.jsx)(tW,{userNotifications:s,userOptions:r}),d&&!o&&(0,l.jsx)(tJ,{returnToken:g.return})]})]})})]})};let t1=e=>{var t;return null!==(t=null==e?void 0:e.map(e=>{var t,n;let{id:i,title:r,path:s,image:a}=e;return{id:Number(i),title:r,path:s,imageUrl:null!==(t=null==a?void 0:a.url)&&void 0!==t?t:void 0,imageAlt:null!==(n=null==a?void 0:a.alt)&&void 0!==n?n:void 0}}))&&void 0!==t?t:[]};var t3=function(e){var t,n;let{currentUser:i,featuredCourses:r,subjectCategories:s}=e,a=null!==(t=null==s?void 0:s.map(e=>({...e,topics:e.topicLandingPages.map(e=>{let{title:t,url:n}=e;return{title:null!=t?t:"",url:null!=n?n:""}}),featuredCourses:t1(e.featuredCourses)})))&&void 0!==t?t:[],o=t1(r);if(!i)return(0,l.jsx)(t0,{signedIn:!1,displaySubmenus:!0,subjects:a,topLevelFeaturedItems:o,errorWhileFetchingSubjects:!a.length});let c={avatar:{profileImage:{fullName:i.fullName,imageUrl:null!==(n=i.imageUrl)&&void 0!==n?n:void 0,initials:i.initials},profilePath:(0,N.J$Y)(i.id)},hideSubscriptions:!i.hasSubscriptions},u=i.unreadNotificationsCount,d={badge:{showBadge:i.webPreferences.displayNotificationsBadge&&!!u,unreadCount:u.toString(),unreadText:"You have ".concat(u," notifications")}};return(0,l.jsx)(t0,{signedIn:!0,displaySignedInNavigation:!0,displaySubmenus:!0,userOptions:c,userNotifications:d,subjects:a,topLevelFeaturedItems:o,errorWhileFetchingSubjects:!a.length})},t2=n(3528),t6=n(6630),t9=n.n(t6);let t4=(0,ew.rk)("unlimited_sale_offer_banner_dismiss"),t5=(0,ew.rk)("unlimited_sale_offer_banner");var t7=e=>{let{message:t,afterMessageNote:n,beforeTermsLink:i,findOutMoreButtonLabel:r="Find out more",findOutMoreCtaLink:s,saleTermsUrl:a,routes:{dismissBannerKey:o}}=e;return(0,l.jsx)("div",{"data-testid":"unlimited-sale-banner",className:t9().overrideTextColour,children:(0,l.jsxs)(t2.Z,{background:"yellow",ahoyTrackingProperties:t4,routes:{closePath:(0,N.CbK)({message_key:o})},children:[(0,l.jsxs)(q.Z,{alignment:"center",children:[(0,l.jsx)(q.Z,{elName:"strong",isBold:!0,children:t})," ",n," ",a&&(0,l.jsxs)("span",{className:t9().termsAndConditionsLink,children:[i," ",(0,l.jsx)(I.Z,{href:a,data:{"data-testid":"sale-terms-and-conditions-link"},id:"sale-terms-and-conditions-link",children:"T&Cs apply"})]})]}),(0,l.jsx)("div",{className:t9().findOutMoreButton,children:(0,l.jsx)(eT.Z,{data:{"data-js-ahoy-track":!0,...t5,"data-testid":"find-out-more-button"},href:s,level:"secondary",children:r})})]})})},t8=n(98714),ne=e=>{let{currentUser:t,sales:n}=e;if(!n)return null;let[i]=n;return(null==t||!t.hasActiveUnlimitedForBusinessSubscription)&&i&&(null==i?void 0:i.product)?{saleEndTime:i.endTime,preSalePrice:(0,t8.lb)(i.product.preSalePrice.amount,i.product.preSalePrice.currency.code),price:(0,t8.lb)(i.product.price.amount||0,i.product.price.currency.code),saleTermsUrl:i.termsUrl,saleDiscountPercentage:i.discountWithDuration.discount.amount,saleDurationBillingPeriods:i.discountWithDuration.duration.billingPeriods,daysLeftOfSale:i.endTime?(0,e4.Ti)(new Date,new Date(Date.parse(i.endTime)))+1:0,productType:i.product.sku}:null};(s=c||(c={})).UnlimitedAnnual="unlimited-annual",s.UnlimitedMonthly="unlimited-monthly";let nt=e=>1===e?"first month":"first ".concat(e," months"),nn=e=>"".concat(e.toLocaleDateString("en-uk",{year:"numeric",month:"long",day:"numeric",hourCycle:"h24",hour:"numeric",minute:"numeric",timeZone:"UTC"})," (UTC)"),ni={[c.UnlimitedAnnual]:e=>{let{preSalePrice:t,daysLeftOfSale:n,price:i,saleDiscountPercentage:r}=e;return n&&n<=14?(0,l.jsxs)(l.Fragment,{children:["Hurry, only ",n," days left to get one year of Unlimited learning for"," ",(0,l.jsx)("s",{children:t})," ",i,"."]}):(0,l.jsxs)(l.Fragment,{children:["Get ",r,"% off one whole year of Unlimited learning. Subscribe for just"," ",(0,l.jsx)("s",{children:t})," ",i,"."]})},[c.UnlimitedMonthly]:e=>{let{preSalePrice:t,saleDiscountPercentage:n,price:i,saleDurationBillingPeriods:r}=e;return(0,l.jsxs)(l.Fragment,{children:["Get ",n,"% off your ",nt(r)," of Unlimited Monthly. Subscribe for just ",(0,l.jsx)("s",{children:t})," ",i,"."]})}},nr={[c.UnlimitedAnnual]:e=>{let{daysLeftOfSale:t,saleEndTime:n}=e,i=!n||Number.isNaN(Date.parse(n));return!t||t>7||i?"":(0,l.jsxs)("span",{children:["Offer ends on ",nn(new Date(Date.parse(n))),". "]})}};var ns=e=>{var t,n;let{productType:i}=e;return{message:(null===(t=ni[i])||void 0===t?void 0:t.call(ni,e))||"",afterMessageNote:(null===(n=nr[i])||void 0===n?void 0:n.call(nr,e))||"",beforeTermsLink:""}};let na="unlimited_expiring_offer";var no=e=>{let{sales:t,currentUser:n}=e,i=ne({sales:t,currentUser:n});if(Date.now(){let t=u.Logger.child({type:"apollo"}),n=(0,_.Yj)(e[0]);t.warn({message:"Failed to fetch data for the StorefrontLayout",name:"StorefrontLayout",type:"apollo",...n,properties:{all_errors:e}})},nl=e=>{let{children:t,sales:n,currentUser:i,mainNavigationProps:r,hideUnlimitedPromoBanner:s=!1}=e,{query:{focused_page:a}}=(0,f.useRouter)();return"true"===a?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(K.Z,{}),(0,l.jsx)("main",{children:t})]}):(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(K.Z,{}),(0,l.jsx)(d.ZP,{context:d._y.learning}),!s&&(0,l.jsx)(no,{sales:n,currentUser:i}),(0,l.jsx)(t3,{currentUser:i,...r}),(0,l.jsx)("main",{children:t}),(0,l.jsx)(V,{})]})};nl.getServerSideProps=async e=>{try{let[{data:t,error:n},{data:i,error:r},{data:s,error:a}]=await Promise.all([e.query({query:g()}),e.query({query:h()}),e.query({query:v()})]);if(n||r||a){let e=[];n&&e.push(n),r&&e.push(r),a&&e.push(a),nc(e)}return{currentUser:t.currentUser,sales:i.sales,mainNavigationProps:{featuredCourses:s.featuredCourses,subjectCategories:s.subjectCategories}}}catch(e){return nc([e]),{}}};var nu=nl},8221:function(e,t,n){"use strict";var i=n(85893),r=n(16820),s=n(80296);let a={pageTitle:r.i2,description:r.DW,openGraph:{title:r.aT,image:r.Gi},pagePath:""};t.Z=function(){let{pageTitle:e,description:t,canonicalUrl:n,openGraph:o,pagePath:c,indexable:l=!0}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{pagePath:""},u=(0,s.b)(c),d=(null==o?void 0:o.title)||e||a.openGraph.title,m=t||a.description,h=(null==o?void 0:o.image)||a.openGraph.image;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("title",{children:e||a.pageTitle}),(0,i.jsx)("link",{href:n||u,rel:"canonical"}),(0,i.jsx)("meta",{name:"description",content:m}),(0,i.jsx)("meta",{name:"keywords",content:""}),(0,i.jsx)("meta",{name:"author",content:r.ck}),!l&&(0,i.jsx)("meta",{name:"robots",content:"noindex,nofollow"}),(0,i.jsx)("meta",{property:"og:type",content:"website"}),(0,i.jsx)("meta",{property:"fb:app_id",content:"656604567744389"}),(0,i.jsx)("meta",{property:"og:locale",content:"en_GB"}),(0,i.jsx)("meta",{property:"og:type",content:"website"}),(0,i.jsx)("meta",{property:"og:title",content:d}),(0,i.jsx)("meta",{property:"og:description",content:m}),(0,i.jsx)("meta",{property:"og:image",content:h}),(0,i.jsx)("meta",{property:"og:url",content:u}),(0,i.jsx)("meta",{property:"og:site_name",content:r.ck}),(0,i.jsx)("meta",{name:"twitter:card",content:"summary_large_image"}),(0,i.jsx)("meta",{name:"twitter:site",content:"@".concat(r.ck)}),(0,i.jsx)("meta",{name:"twitter:creator",content:"@".concat(r.ck)}),(0,i.jsx)("meta",{name:"twitter:title",content:d}),(0,i.jsx)("meta",{name:"twitter:description",content:m}),(0,i.jsx)("meta",{name:"twitter:image",content:h})]})}},84985:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});var i=n(85893),r=n(67294);let s=e=>({credentials:"same-origin",headers:{"X-Requested-With":"XMLHttpRequest",Accept:"application/json"},...e}),a=["GET","POST"];class o extends r.Component{static isMethodSupportedByBrowser(e){return a.includes(e)}static toQueryString(e){let t=Object.entries(e).map(e=>{let[t,n]=e;return"".concat(encodeURIComponent(t),"=").concat(encodeURIComponent(n))});return"?".concat(t.join("&"))}get browserMethod(){return"GET"===this.method?this.method:"POST"}get method(){let{method:e}=this.props;return e&&e.toUpperCase()}submit(e){let{jsonAction:t,onSuccess:n,onError:i,remote:r,onBeforeSubmit:a}=this.props,{action:c}=this.props;if(t&&(c=t),!r)return;try{new Blob,e.preventDefault()}catch(e){return}a(e);let l=s({method:this.browserMethod});"GET"===this.method?c+=o.toQueryString(e.target):l.body=new FormData(e.target);let u=n;fetch(c,l).then(e=>(e.ok||(u=i),e)).then(e=>204===e.status?Promise.resolve(null):e.json()).then(e=>u(e,c)).catch(e=>i(e))}render(){let{action:e="",onSubmit:t,className:n,csrfToken:r,children:s,formRef:a,id:c="",preventCloseWithoutSave:l=!1,preventDoubleSubmission:u=!0,onBlur:d,onTransitionEnd:m,encType:h="application/x-www-form-urlencoded",remote:p,noValidate:g=!0}=this.props,f={action:e,method:this.browserMethod,className:n,onSubmit:t||this.submit,role:"form",acceptCharset:"UTF-8",noValidate:g,encType:h,onBlur:d,onTransitionEnd:m};c&&(f.id=c),l&&(f["data-form-navbar-submit"]="js-form-navbar-submit"),u&&(f["data-prevent-double-submission"]=!0);let{method:_}=this;return(0,i.jsxs)("form",{...f,ref:a,children:[!o.isMethodSupportedByBrowser(_)&&(0,i.jsx)("input",{type:"hidden",name:"_method",value:_}),"GET"!==_&&(0,i.jsx)("input",{type:"hidden",name:"authenticity_token",value:r}),"GET"!==_&&(0,i.jsx)("input",{type:"hidden",name:"utf8",value:"✓"}),s,"GET"!==_&&p&&(0,i.jsx)("input",{type:"hidden",name:"_iefix",value:""})]})}constructor(e){super(e),this.submit=this.submit.bind(this)}}var c=o},35847:function(e,t,n){"use strict";var i=n(85893),r=n(48563),s=n(4298),a=n.n(s);t.Z=function(){return(0,i.jsx)(a(),{id:"structured-data",type:"application/ld+json",dangerouslySetInnerHTML:(0,r.Z)({__html:JSON.stringify({"@context":"http://schema.org","@type":"Organization",name:"FutureLearn",url:"https://www.futurelearn.com",logo:"https://ugc.futurelearn.com/other_assets/fl-steps.png",sameAs:["https://www.facebook.com/FutureLearn","https://twitter.com/FutureLearn","https://www.instagram.com/futurelearn/","https://www.linkedin.com/company/futurelearn","https://futurelearn.tumblr.com","https://uk.pinterest.com/futurelearn"],potentialAction:{"@type":"SearchAction",target:"https://www.futurelearn.com/search?q={search_term_string}","query-input":"required name=search_term_string"}})})},"structured-data")}},36790:function(e,t,n){"use strict";n.d(t,{Z:function(){return l}});var i,r,s=n(67294),a=n(50168);(i=r||(r={}))[i.NONE=0]="NONE",i[i.OPENED=1]="OPENED",i[i.CLOSED=2]="CLOSED";let o=(e,t,n,i)=>{switch(e){case 1:return!0;case 2:return!1;default:return t?n:i}};var c=function(){let{clientSideDefault:e=!1,serverSideDefault:t=!0}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=(0,a.Z)(),[i,r]=(0,s.useState)(0);return[o(i,n,e,t),i=>{r(r=>{let s=o(r,n,e,t);return("function"==typeof i?i(s):i)?1:2})},0!==i]},l=function(e,t,n){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},[r,a,o]=c(i),l=e.current;return(0,s.useEffect)(()=>{o&&l&&(r?t:n)(l)},[r,o,l,t,n]),[r,a]}},50168:function(e,t,n){"use strict";var i=n(67294);t.Z=()=>{let[e,t]=(0,i.useState)(!1);return(0,i.useEffect)(()=>{t(!0)},[]),e}},29275:function(e,t,n){"use strict";n.d(t,{GV:function(){return o},Qf:function(){return c},Ti:function(){return l},rQ:function(){return a}});let i=["January","February","March","April","May","June","July","August","September","October","November","December"].map(e=>e.substr(0,3)),r=e=>e instanceof Date?e:new Date(e),s=e=>e<10?"0".concat(e):e.toString(),a=e=>{let t=r(e);return"".concat(t.getDate()," ").concat(i[t.getMonth()]," ").concat(t.getFullYear())},o=e=>{let t=r(e);return"".concat(s(t.getDate())," ").concat(i[t.getMonth()])},c=(e,t)=>{let n;let i=e-t,r=(e,t)=>1===e?"1 ".concat(t):"".concat(e," ").concat(t,"s");return i<1e3?n=r(1,"second"):i<6e4?n=r(Math.round(i/1e3),"second"):i<36e5?n=r(Math.round(i/6e4),"minute"):i<864e5&&(n=r(Math.round(i/36e5),"hour")),n},l=(e,t)=>Math.max((Date.UTC(t.getFullYear(),t.getMonth(),t.getDate())-Date.UTC(e.getFullYear(),e.getMonth(),e.getDate()))/864e5-1,0)},44162:function(e,t,n){"use strict";n.d(t,{$y:function(){return s},R2:function(){return c},SM:function(){return a},kb:function(){return i},pL:function(){return o},uy:function(){return r}});let i=e=>e.contains(document.activeElement),r=e=>e?e.offsetTop+r(e.offsetParent):0,s=e=>e?e.offsetHeight:0,a=e=>e.scrollTop,o=e=>e.scrollHeight,c=e=>document.querySelector(e)},62591:function(e,t,n){"use strict";n.d(t,{Jh:function(){return p},LR:function(){return s},Ts:function(){return l},Xv:function(){return r},YD:function(){return c},Zt:function(){return u},dd:function(){return a},mc:function(){return m},nY:function(){return o},ol:function(){return h},zS:function(){return d}});var i=n(57176);let r=function(e){let{...t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"".concat((0,i.y3)(["degree",e]),(0,i.UK)(t))},s=function(){let{...e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return"".concat((0,i.y3)(["degrees"]),(0,i.UK)(e))},a=function(e){let{...t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"".concat((0,i.y3)(["degrees",e]),(0,i.UK)(t))},o=function(e,t){let{...n}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return"".concat((0,i.y3)(["degrees",e,t]),(0,i.UK)(n))},c=function(e,t,n){let{...r}=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return"".concat((0,i.y3)(["degrees",e,t,n]),(0,i.UK)(r))},l=function(){let{...e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return"".concat((0,i.y3)(["api","search-filters"]),(0,i.UK)(e))},u=function(){let{...e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return"".concat((0,i.y3)(["certifications"]),(0,i.UK)(e))},d=function(e){let{...t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"".concat((0,i.y3)(["certifications",e]),(0,i.UK)(t))},m=function(e,t){let{...n}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return"".concat((0,i.y3)(["certifications",e,t]),(0,i.UK)(n))},h=function(){let{...e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return"".concat((0,i.y3)(["newShortCourses"]),(0,i.UK)(e))},p=function(e){let{...t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"".concat((0,i.y3)(["microcredentials",e]),(0,i.UK)(t))}},64630:function(e,t){"use strict";var n,i;(i=n||(n={})).AddCourseToWishlist="add_course_to_wishlist",i.BreadCrumbClick="breadcrumb_click",i.RemoveCourseFromWishlist="remove_course_from_wishlist",i.CardAchievement="card_achievement",i.CardAssessment="card_assessment",i.CardAssessmentScores="card_assessment_scores",i.CardBlogPost="card_blog_post",i.CardCourse="card_course",i.CardExperttrack="card_experttrack",i.CardExperttrackCourse="card_experttrack_course",i.CardFeaturedCourse="card_featured_course",i.CardFeaturedExpertTrack="card_featured_expert_track",i.CardFeaturedMicrocredential="card_featured_microcredential",i.CardProgram="card_program",i.CardStep="card_step",i.CommentsAll="comments_all",i.CommentsBookmarked="comments_bookmarked",i.CommentsFollowing="comments_following",i.CommentsYourComments="comments_your_comments",i.ComparisonCardCtaClick="comparison_card_cta_click",i.CourseCard="course_card",i.CourseCardClick="course_card_click",i.CourseCardCtaClick="course_card_cta_click",i.CoursesAndAssessments="courses_and_assessments",i.CtaUpgrade="cta_upgrade",i.CampaignMainCtaClick="campaign_main_cta_click",i.CtaReadMoreStories="cta_read_more_stories",i.CtaUnlimitedPromoLearnMore="cta_unlimited_promo_learn_more",i.CtaUnlimitedPromoSubscribeToUnlimited="cta_unlimited_promo_subscribe_to_unlimited",i.CtaViewAllShortCourses="cta_view_all_short_courses",i.CtaViewAllExpertTracks="cta_view_all_expert_tracks",i.CtaViewAllMicrocredentials="cta_view_all_microcredentials",i.CtaViewAllReviews="cta_view_all_reviews",i.DegreesIntroduction="how_degrees_work",i.DegreesList="see_all_degrees",i.DescriptionProgram="description_program",i.DegreeLeadFormOpened="degree_lead_form_opened",i.DegreeLeadFormSubmit="degree_lead_submitted",i.DegreeFactSheetApplyNow="degree_fact_sheet_apply_now",i.DegreeFactSheetViewDegree="degree_fact_sheet_view_degree",i.DegreeHeaderOrganisationLogo="degree_header_organization_logo",i.FaqComponentExpandQuestion="faq_component_expand_question",i.FaqComponentContractQuestion="faq_component_contract_question",i.FeaturedCoursesCardClick="featured_courses_card_click",i.FeaturedCoursesCtaClick="featured_courses_cta_click",i.FooterProgram="footer_program",i.HeaderCourseCreatorActivity="header_course_creator_activity",i.HeaderCourseCreatorArticle="header_course_creator_article",i.HeaderCourseCreatorAssignment="header_course_creator_assignment",i.HeaderCourseCreatorAssignmentReview="header_course_creator_assignment_review",i.HeaderCourseCreatorAudioArticle="header_course_creator_audio_article",i.HeaderCourseCreatorDiscussion="header_course_creator_discussion",i.HeaderCourseCreatorExercise="header_course_creator_exercise",i.HeaderCourseCreatorGroupShowcase="header_course_creator_group_showcase",i.HeaderCourseCreatorGroupTask="header_course_creator_group_task",i.HeaderCourseCreatorPeerGradedAssignment="header_course_creator_peer_graded_assignment",i.HeaderCourseCreatorPersonalReflection="header_course_creator_personal_reflection",i.HeaderCourseCreatorPoll="header_course_creator_poll",i.HeaderCourseCreatorPortfolioTask="header_course_creator_portfolio_task",i.HeaderCourseCreatorQuiz="header_course_creator_quiz",i.HeaderCourseCreatorRelatedFile="header_course_creator_related_file",i.HeaderCourseCreatorRelatedLink="header_course_creator_related_link",i.HeaderCourseCreatorTest="header_course_creator_test",i.HeaderCourseCreatorTutorMarkedAssignment="header_course_creator_tutor_marked_assignment",i.HeaderCourseCreatorVideoArticle="header_course_creator_video_article",i.HeaderCourseCreatorWeek="header_course_creator_week",i.HeaderMainCtaClick="header_main_cta_click",i.HeaderMainImageClick="header_main_image_click",i.HeaderSecondaryCtaClick="header_secondary_cta_click",i.HeaderProgram="header_program",i.HowItWorks="how_it_works_tab",i.ImageFeaturedCampaign="image_featured_campaign_click",i.LeftHandNavCourseCreator="left_hand_navigation_course_creator",i.LeftHandNavCourseLearner="left_hand_navigation_course_learner",i.LeftHandNavigationCourseCreator="left_hand_navigation_course_creator",i.LogoFeaturedPartner="logo_featured_partner",i.MainNavCoursesClick="main_nav_courses_click",i.MainNavDegreesClick="main_nav_degrees_click",i.MainNavFeaturedItemTopLevelClick="main_nav_featured_item_top_level_click",i.MainNavFeaturedItemSubjectLevelClick="main_nav_featured_item_subject_level_click",i.MainNavFLBusinessSubmenuClick="main_nav_fl_business_submenu_click",i.MainNavSubjectClick="main_nav_subject_click",i.MainNavTopicClick="main_nav_topic_click",i.MicrocredentialDescriptionPageHeaderDescription="header_description",i.MicrocredentialDescriptionPageStickyBanner="sticky_banner",i.MicrocredentialDescriptionPageUrgencyBanner="urgency_banner",i.MicrocredentialLeadFormSubmit="microcredential_request_information_form_submit",i.BootcampLeadFormSubmit="bootcamp_request_information_form_submit",i.BootcampDescriptionPageHeaderDescription="header_description",i.BootcampDescriptionPageStickyBanner="sticky_banner",i.BootcampDescriptionPageUrgencyBanner="urgency_banner",i.NavigationActivity="navigation_activity",i.NavigationCourseLearner="navigation_course_learner",i.NavigationLastStepVisited="navigation_last_step_visited",i.NavigationStepTitle="navigation_step_title",i.NavigationWeek="navigation_week",i.NavigationYourLearning="navigation_your_learning",i.NotificationCommentLike="notification_comment_like",i.NotificationCommentMention="notification_comment_mention",i.NotificationCommentPin="notification_comment_pin",i.NotificationCommentReply="notification_comment_reply",i.NotificationFollow="notification_follow",i.PurchaseOrSubscribeClick="purchase_or_subscribe_click",i.QuizLockedUnlockOptions="quiz_locked_unlock_options",i.SectionCoursesAndAssessments="section_courses_and_assessments",i.CtaViewAllSubjects="cta_view_all_subjects",i.SubjectsTab="subjects_tab",i.SubjectsCard="subjects_card",i.BoxPopularSubject="box_popular_subject",i.NewsletterSignup="newsletter_signup",i.SubscribeButtonClicked="subscribe_button_clicked",i.SectionStart="section_start",i.AdminCourseRunSectionSummary="section_summary",i.AdminCourseRunSectionSettingUpCourse="section_setting_up_your_course",i.AdminCourseRunSectionBuildingYourCourse="section_building_your_course",i.AdminCourseRunSectionCourseEmails="section_creating_course_emails",i.AdminCourseRunSectionOtherDetails="section_other_details",i.FilterClick="filter_click",i.AwardFiltersClick="award_filters",i.SubjectFiltersClick="subject_categories_filters",i.OrganisationFiltersClick="organisation_filters",i.TopicFiltersClick="topic_filters",t.Z=n},87540:function(e,t){"use strict";var n,i;(i=n||(n={})).BootcampDescriptionPage="bootcamp_description_page",i.BootcampsListings="bootcamps_listings",i.CertificationsListings="certifications_listings",i.ComparisonCardCta="comparison_card_cta",i.CourseCreator="course_creator",i.CourseLearner="course_learner",i.CourseLearnerActivity="course_learner_activity",i.CourseLearnerToDo="course_learner_to_do",i.CourseProgress="course_progress",i.CourseStep="course_step",i.DegreeDescriptionPage="degree_description_page",i.DegreeIndexPage="degree_index_page",i.DegreeListings="degree_listings",i.ExpertTracks="expert_tracks",i.ExpertTracksListings="expert_tracks_listings",i.FeaturedCoursesComponent="featured_courses_component",i.FaqComponent="faq_component",i.GoalsAndInterests="goals_and_interests",i.HeroComponent="hero_component",i.Homepage="homepage",i.HomepageHeader="homepage_header",i.HowItWorksComponent="how_it_works_component",i.MainNav="main_nav",i.MainNavSubmenu="main_nav_submenu",i.ManageCourse="manage_course_page",i.MicrocredentialDescriptionPage="mc_description",i.Microcredentials="microcredentials",i.MicrocredentialsListings="microcredentials_listings",i.NotificationsLearner="notifications_learner",i.PartnersComponent="partners_component",i.PartnerCampaignComponent="partner_campaign_component",i.Prefooter="Prefooter",i.ProductListings="product_listings",i.ProgramPage="program_page",i.PurchaseOrSubscribe="purchase_or_subscribe",i.SubjectSectionComponent="subject_section_component",i.ShortCoursesListings="short_courses_listings",i.TopSubjectsComponent="top_subjects_component",i.UnlimitedPromoComponent="unlimited_promo_component",i.UnlimitedPromoPage="unlimited_promo_page",i.YourAchievements="your_achievements",i.YourCourses="your_courses",i.YourDegrees="your_degrees",i.YourExperttracks="your_experttracks",i.YourLearning="your_learning",i.YourPrograms="your_programs",i.YourRecommendations="your_recommendations",i.YourWishlist="your_wishlist",t.Z=n},21273:function(e,t,n){"use strict";n.d(t,{AO:function(){return r.Z},Jk:function(){return s.Z}});var i=n(33997),r=n(64630),s=n(87540),a=n(67497),o=n(59189);t.ZP=e=>{let{category:t,action:n,label:r,event:s,additionalProperties:c}=e,l=(0,o.OR)(),u={event_category:t,event_action:n,event_label:r,page:(0,i.gx)(),href:s.currentTarget.href,_gaID:l,...c};(0,a.cs)(a.jr.Click,u),(0,o.rw)("".concat(t,"_").concat(n,"_").concat(r),u)}},19832:function(e,t,n){"use strict";n.d(t,{Ji:function(){return l},iM:function(){return c},qw:function(){return o}});let i={static:"linear",motion:"ease-out"},r={short:300,medium:400,long:600},s=e=>"number"==typeof e?e:e&&r[e]?r[e]:r.medium,a=function(e,t,n,i){return new Promise(r=>{let a=s(n);e.style.display="block",e.style.transitionProperty=Object.keys(t).join(),e.style.transitionDuration="".concat(a,"ms"),i&&(e.style.transitionTimingFunction=i),e.offsetLeft,setTimeout(()=>{Object.keys(t).concat(["display","transition-property","transition-duration","transition-timing-function"]).forEach(t=>{e.style.setProperty(t,"")}),r()},a),Object.entries(t).forEach(t=>{let[n,i]=t;e.style.setProperty(n,i)})})},o=function(e,t){return e.style.display="block",e.style.height=0,e.style.overflow="hidden",a(e,{height:"".concat(e.scrollHeight,"px")},t,i.motion).then(()=>{e.style.overflow=""})},c=function(e,t){return e.style.display="block",e.style.height="".concat(e.scrollHeight,"px"),e.style.overflow="hidden",a(e,{height:0},t,i.motion).then(()=>{e.style.overflow=""})},l=function(e,t){return e.style.opacity=0,a(e,{opacity:1},t,i.static)}},33997:function(e,t,n){"use strict";n.d(t,{E5:function(){return r},gx:function(){return i}});let i=()=>window.location.pathname,r=()=>window.location.href},98714:function(e,t,n){"use strict";n.d(t,{lb:function(){return r},uf:function(){return s}});let i=()=>{var e;return(null===(e=window.navigator)||void 0===e?void 0:e.language)||"en-GB"},r=(e,t)=>{if(e&&t)return new Intl.NumberFormat(i(),{style:"currency",currency:t,currencyDisplay:"narrowSymbol"}).format(e/100)},s=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"decimal";if(e&&t)return"percent"===t?"".concat(e,"%"):Intl.NumberFormat(i(),{style:t}).format(e)}},67009:function(e,t,n){"use strict";n.d(t,{HZ:function(){return r},VW:function(){return i},_6:function(){return a},oS:function(){return s}});let i=e=>{let t=document.querySelector(e);t instanceof HTMLElement&&(t.getAttribute("tabindex")?t.focus({preventScroll:!0}):(t.setAttribute("tabindex","-1"),t.focus({preventScroll:!0}),t.removeAttribute("tabindex")))},r=(e,t,n)=>{if(window.scrollTo){"#"!==t[0]&&e.preventDefault();let i=document.querySelector(t),r=(i?i.offsetTop:0)-n;try{window.scrollTo({top:r,left:0,behavior:"smooth"})}catch(e){window.scrollTo(0,r)}}},s=function(e,t){let n=!(arguments.length>2)||void 0===arguments[2]||arguments[2],i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"50px",r=new IntersectionObserver(i=>{i.forEach(i=>{i.intersectionRatio>0&&(t(),n&&r.unobserve(e))})},{rootMargin:i});r.observe(e)},a=(e,t)=>"".concat(t||0," ").concat(e).concat(1!==t?"s":"")},91210:function(e,t){"use strict";t.Z=function(e){let t=!1;return function(){for(var n=arguments.length,i=Array(n),r=0;re.replace(i.CN,t),a=e=>{let t=e.split("?")[0],n={development:"http:localhost:3001".concat(t),playground:"https://playground.futurelearn.com".concat(t),staging:"https://staging.futurelearn.com".concat(t),production:"https://www.futurelearn.com".concat(t)};return r.env.DEPLOY_ENV?n[r.env.DEPLOY_ENV]:n.production}},25466:function(e,t,n){"use strict";n.d(t,{Rn:function(){return r},kC:function(){return i},pE:function(){return s}});let i=e=>e&&e.charAt(0).toUpperCase()+e.slice(1),r=e=>{let t=e.trim().split(/\s+/),[n,i,r]=t.slice(-3),s=t.slice(0,-3);return"&"===i?t=[...s,[n,i].join("\xa0"),r]:s.length>0&&(t=[...s,n,[i,r].join("\xa0")]),t.join(" ")};function s(e){return e.split(/(?=[A-Z])/).map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(" ")}},97936:function(e){e.exports={wrapper:"arrowToggle_wrapper__DWfzd",isBold:"arrowToggle_isBold__Ob5e_",micro:"arrowToggle_micro__qKXCn",small:"arrowToggle_small__ZTxex",medium:"arrowToggle_medium__GvZsD",tableAction:"arrowToggle_tableAction__xMhin",handle:"arrowToggle_handle__oIaRh",submenuItem:"arrowToggle_submenuItem__nrpeW",isPressed:"arrowToggle_isPressed__nRjKd",optionText:"arrowToggle_optionText__HIBYM"}},87471:function(e){e.exports={wrapper:"Body_wrapper__DnVhy"}},2125:function(e){e.exports={wrapper:"CallsToAction_wrapper__2vKxG"}},67521:function(e){e.exports={wrapper:"Container_wrapper__CSwlt",grey:"Container_grey__qSE6_",white:"Container_white__6_5rp",transparent:"Container_transparent__xlWL6",hasSmallOverflow:"Container_hasSmallOverflow__PzWG3",isFadedOut:"Container_isFadedOut__CLPtn",fadeout:"Container_fadeout__FdII3",isFullHeight:"Container_isFullHeight__zQ7oH",withShadow:"Container_withShadow__8mZf4",isHorizontal:"Container_isHorizontal__gbTiX"}},45365:function(e){e.exports={wrapper:"Content_wrapper__VY8hy"}},21176:function(e){e.exports={button:"IconButton_button__VikSO"}},36731:function(e){e.exports={wrapper:"Image_wrapper__cf6fx",withGradient:"Image_withGradient__RSm2u",overlay:"Image_overlay__vWga0",isFullHeight:"Image_isFullHeight__aiZok",logo:"Image_logo__EI5BH",logoImg:"Image_logoImg__Ik2xj",courseImage:"Image_courseImage__TSNqA",loaded:"Image_loaded__aEAgg"}},81026:function(e){e.exports={wrapper:"Options_wrapper__SsVPK"}},96369:function(e){e.exports={icon:"RemoveFromWishlist_icon__vdred"}},1353:function(e){e.exports={wrapper:"RibbonStudyLogo_wrapper__dZwhP",image:"RibbonStudyLogo_image__w2i4p"}},2814:function(e){e.exports={wrapper:"Title_wrapper__XLFMs"}},84506:function(e){e.exports={wrapper:"label_wrapper__HOjYp"}},23839:function(e){e.exports={wrapper:"link_wrapper__tWhJm",withFlexGrow:"link_withFlexGrow__z3qNg",inBody:"link_inBody__J7dcq"}},67020:function(e){e.exports={wrapper:"popupMessage_wrapper__SLxuW",isShown:"popupMessage_isShown__NSWxZ"}},86196:function(e){e.exports={wrapper:"compactInlineCard_wrapper__GCSrF",image:"compactInlineCard_image__M2Zey"}},39236:function(e){e.exports={highlightedtop:"card_highlightedtop__QfPgX",spacerimage:"card_spacerimage__D_9f6",saleselement:"card_saleselement__MnvDR"}},42339:function(e){e.exports={spacer:"Footer_spacer__thlNA",container:"Footer_container__5_zAD",links:"Footer_links__pA0bT",link:"Footer_link__yk03H",gradientLine:"Footer_gradientLine__qTMAR"}},77164:function(e){e.exports={wrapper:"formattedContent_wrapper__tPAdH",isTruncated:"formattedContent_isTruncated__Dfd38"}},30028:function(e){e.exports={notification:"Notification_notification__ss16H",isCompact:"Notification_isCompact__aEtKF",unread:"Notification_unread__JeIlI",content:"Notification_content__ozZfj",image:"Notification_image__bayk_",footer:"Notification_footer__JLSp_",time:"Notification_time__Heuyz"}},62020:function(e){e.exports={feed:"Popover_feed__lEc8L"}},518:function(e){e.exports={button:"PopoverButton_button__M3Xlk",badge:"PopoverButton_badge__EuLWP"}},85429:function(e){e.exports={signIn:"SignedOutButtons_signIn__jXJGm",register:"SignedOutButtons_register__HRvw1"}},99994:function(e){e.exports={sections:"Submenus_sections__AYtUO",heading:"Submenus_heading__Q7Qo6",list:"Submenus_list__YPl1G",listItem:"Submenus_listItem__lnI6a"}},31177:function(e){e.exports={wrapper:"subjectsAndTopics_wrapper__d4k7f",list:"subjectsAndTopics_list__DT35f",listItem:"subjectsAndTopics_listItem__V5oAY",topics:"subjectsAndTopics_topics__rhWQF",subjects:"subjectsAndTopics_subjects__KVkun",heading:"subjectsAndTopics_heading__RPOF2",backButton:"subjectsAndTopics_backButton__B9DO5",noUnderline:"subjectsAndTopics_noUnderline__mqegj",hasTopics:"subjectsAndTopics_hasTopics__vjfPj",isActive:"subjectsAndTopics_isActive__dQwOm",featuredItems:"subjectsAndTopics_featuredItems__PE592",isHiddenForDesktop:"subjectsAndTopics_isHiddenForDesktop__U44h5",isHiddenForMobile:"subjectsAndTopics_isHiddenForMobile__uIrAi"}},86610:function(e){e.exports={notifications:"UserNotifications_notifications__M1bOn","is-mouse-focussed":"UserNotifications_is-mouse-focussed__C9lN_",countBadge:"UserNotifications_countBadge__fZqwE"}},16159:function(e){e.exports={avatar:"UserOptions_avatar__VB17R",popoverNav:"UserOptions_popoverNav__NhDfG",list:"UserOptions_list__knd3b",listItem:"UserOptions_listItem__VzogF"}},81140:function(e){e.exports={userCorner:"UserCorner_userCorner__duhP_",notifications:"UserCorner_notifications__G1CV5",avatar:"UserCorner_avatar__mpug5"}},8464:function(e){e.exports={mainNavigation:"MainNavigation_mainNavigation__tZTx1",submenuContent:"MainNavigation_submenuContent__Wk9EK",submenuCloseButton:"MainNavigation_submenuCloseButton__Jnhv5",submenuPanel:"MainNavigation_submenuPanel__LPVjv",submenuHeadingIsActive:"MainNavigation_submenuHeadingIsActive__mTz1_",submenuHeading:"MainNavigation_submenuHeading__a31ZL",logoContainer:"MainNavigation_logoContainer__XVq7M",headingLink:"MainNavigation_headingLink__zdTj_",logoLink:"MainNavigation_logoLink__fStzO",tools:"MainNavigation_tools__FmQ9t",signIn:"MainNavigation_signIn__FBZq0",register:"MainNavigation_register__7O3v2",search:"MainNavigation_search__sJ_9n",searchLink:"MainNavigation_searchLink__dC9_7",searchLinkIsOpen:"MainNavigation_searchLinkIsOpen__v0PCc",inner:"MainNavigation_inner__k06cX",isInverse:"MainNavigation_isInverse__zzMvC",progressBar:"MainNavigation_progressBar__is3PQ"}},3446:function(e){e.exports={menuBurger:"MenuBurger_menuBurger__TwmiC",largeBreakPoint:"MenuBurger_largeBreakPoint__pMiAT",xLargeBreakPoint:"MenuBurger_xLargeBreakPoint__0qm7T"}},93733:function(e){e.exports={suggestions:"Suggestions_suggestions__r2KZ4",suggestionsList:"Suggestions_suggestionsList__KKz5F",suggestion:"Suggestions_suggestion__ui_sz",suggestionIsActive:"Suggestions_suggestionIsActive__1CMYk",suggestionLink:"Suggestions_suggestionLink___CW5Z",suggestionTitle:"Suggestions_suggestionTitle__PUpal"}},19366:function(e){e.exports={searchForm:"PredictiveSearch_searchForm__yR78o",input:"PredictiveSearch_input__kkH7i",button:"PredictiveSearch_button__gntBj",isEnhanced:"PredictiveSearch_isEnhanced__zPAtc"}},6630:function(e){e.exports={overrideTextColour:"SalesBanner_overrideTextColour__3vw01",termsAndConditionsLink:"SalesBanner_termsAndConditionsLink__TDdrN",findOutMoreButton:"SalesBanner_findOutMoreButton__G8gtM"}},71178:function(e){e.exports={searchBar:"SearchBar_searchBar__QHdeI",content:"SearchBar_content__00QiT",searchWrapper:"SearchBar_searchWrapper__Nz1z2",close:"SearchBar_close__C5nHm",isOpen:"SearchBar_isOpen__OOvIw"}}}]);