(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[478,97,980],{43292:(D,E,o)=>{"use strict";o.d(E,{Z:()=>t});var n=o(56109),c=o(29516),C=o(40470);const x=(0,C.ZP)(()=>Promise.resolve().then(o.bind(o,68694))),p=(0,C.ZP)(()=>o.e(107).then(o.bind(o,486))),g=(0,C.ZP)(()=>o.e(419).then(o.bind(o,82824))),O=(0,C.ZP)(()=>Promise.resolve().then(o.bind(o,94379))),u=(0,C.ZP)(()=>Promise.resolve().then(o.bind(o,24851)));var v=o(94379),h=o(24851),f=Object.defineProperty,b=Object.defineProperties,P=Object.getOwnPropertyDescriptors,y=Object.getOwnPropertySymbols,k=Object.prototype.hasOwnProperty,$=Object.prototype.propertyIsEnumerable,T=(r,l,m)=>l in r?f(r,l,{enumerable:!0,configurable:!0,writable:!0,value:m}):r[l]=m,S=(r,l)=>{for(var m in l||(l={}))k.call(l,m)&&T(r,m,l[m]);if(y)for(var m of y(l))$.call(l,m)&&T(r,m,l[m]);return r},s=(r,l)=>b(r,P(l));const t=({items:r,withContainer:l})=>!r||!Array.isArray(r)?null:n.createElement(n.Fragment,null,r.map(m=>{var B;if(!m._type)return null;switch(m._type){case"textArea":return n.createElement("section",{className:"[ block ]",key:(0,c.Z)()},n.createElement("div",{className:"wrapper"},n.createElement("div",{className:"container container--course cms-content"},n.createElement(x,s(S({},m),{className:"introduction"})))));case"cardRow":return n.createElement("section",{className:"[ block ]",key:(0,c.Z)()},n.createElement("div",{className:"wrapper"},n.createElement("div",{className:l?"container container--course":void 0},(B=m.cards)==null?void 0:B.map((M,_)=>n.createElement(p,S({key:`${M.title}--${_}`},M))))));case"mediaBlock":return n.createElement(g,s(S({key:(0,c.Z)()},m),{withContainer:l,className:"[ block ]"}));case"courseBlock":return n.createElement(g,s(S({key:(0,c.Z)()},m),{withContainer:l,className:"[ block ]"}));case"testimonialBlock":return n.createElement(g,s(S({key:(0,c.Z)()},m),{withContainer:l,className:"[ block ]"}));case"courseMinilistBlock":return n.createElement(v.default,S({key:(0,c.Z)()},m));case"linkCardBlock":return n.createElement(h.default,S({key:(0,c.Z)()},m));default:console.error("Composer Component ",m._type," not found");break}}))},32863:(D,E,o)=>{"use strict";o.d(E,{Z:()=>x});var n=o(40430),c=o(98656);const x=n.default.article` ${({theme:{colors:p},subjectArea:g,isCompressed:O,className:u})=>{const v=()=>{switch(g){case"law":case"economics":return` border: 1px solid ${p.summerSchool.brand.pink}; & .card-media { background-color: ${p.summerSchool.brand.pink}; } `;case"researchMethodsDataScienceAndMathematics":case"englishLanguage":return` border: 1px solid ${p.summerSchool.brand.brightBlue}; & .card-media { background-color: ${p.summerSchool.brand.brightBlue}; } `;case"accounting":case"finance":return` border: 1px solid ${p.summerSchool.brand.yellow}; & .card-media { background-color: ${p.summerSchool.brand.yellow}; } `;case"internationalRelationsGovernmentPsychologyAndSociety":case"businessAndManagement":return` border: 1px solid ${p.summerSchool.brand.green30}; & .card-media { background-color: ${p.summerSchool.brand.green30}; } `;default:return` border: 1px solid ${p.summerSchool.brand.pink}; & .card-media { background-color: ${p.summerSchool.brand.pink}; } `}};return u==="list"?n.css` ${v}; border: none; position: relative; display: flex; flex-flow: row nowrap; justify-content: space-between; min-width: 26rem; text-align: left; margin-bottom: 2rem; .card-media { padding: 1.4rem 1.6rem; border-radius: 15%; .card-media__icon { display: block; margin: 0 auto; width: 160px; transform: scale(1); transition: transform ${c.Do}; } } .card-content { ${v}; flex 1 0 100%; // max-width: 80%; ${O?c.xx:c.xk} display: flex; flex-flow: column nowrap; justify-content: space-between; height: 100%; border-radius: 3rem; a { ${c.LF} } p { margin: 0 0 1em 0; color: #e40e23; } .card-content__title { ${c.TN} } .card-content__subject-area { margin-bottom: 0.5em; color: ${p.summerSchool.text.default}; } .session { line-height: 1.5; } .session__title { display: block; margin: ${O?"0":null}; font-weight: 700; } .card-content__icon { ${c.IN} } } &:hover, &:focus-within { .card-media > svg { ${c.YD}; } .card-content__icon { ${c.eG} } } .bottom__card { display: flex; justify-content: space-between; align-items: center; & > .card-content__status { margin: 0; font-weight: 700; } } .top__card { display: flex; flex-direction: column; } `:n.css` ${v}; position: relative; display: flex; flex-flow: column nowrap; min-width: 26rem; text-align: left; .card-media { padding: 2.4rem 1.6rem; .card-media__icon { display: block; margin: 0 auto; width: 160px; transform: scale(1); transition: transform ${c.Do}; } } .card-content { ${O?c.xx:c.EF} display: flex; flex-flow: column nowrap; justify-content: space-between; height: 100%; a { ${c.LF} } p { margin: 0 0 1em 0; color: #e40e23; } .card-content__title { ${c.TN} } .card-content__subject-area { margin-bottom: 0.5em; color: ${p.summerSchool.text.default}; } .session { line-height: 1.5; } .session__title { display: block; margin: ${O?"0":null}; font-weight: 700; } .card-content__icon { ${c.IN} } } &:hover, &:focus-within { .card-media > svg { ${c.YD}; } .card-content__icon { ${c.eG} } } .bottom__card { display: flex; justify-content: space-between; align-items: center; & > .card-content__status { margin: 0; font-weight: 700; } } .top__card { display: flex; flex-direction: column; } `}} `},8424:(D,E,o)=>{"use strict";o.d(E,{Z:()=>v});var n=o(56109),c=o(66681),C=o(6043),x=o(31463),p=o(32863),g=o(30689),O=o(8434);const v=({className:h,title:f,link:b,subjectArea:P,sessions:y,iconSize:k,isCompressed:$})=>{if(!P)return null;const T=(0,x._)(P).replaceAll(",",""),S=(0,c.v9)(C.bv),s=h==="list";return n.createElement(p.Z,{className:h,subjectArea:T,isCompressed:$},!$&&!s?n.createElement("div",{className:"card-media"},P&&T?n.createElement(O.J,{icon:T,className:"card-media__icon",size:k}):null):null,n.createElement("div",{className:"card-content"},n.createElement("section",{className:"top__card"},$?null:n.createElement("p",{className:"card-content__subject-area"},n.createElement("span",{className:"sr-only"},"Subject Area: "),P),n.createElement(g.Z,{path:b},n.createElement("h3",{className:"card-content__title"},n.createElement("span",{className:"sr-only"},"Course Title: "),f))),n.createElement("section",{className:"bottom__card"},S?null:n.createElement("p",{className:"card-content__status"},n.createElement("span",{className:"sr-only"},"Status: "),y==null?void 0:y.status),n.createElement("svg",{width:"41",height:"17",viewBox:"0 0 41 17",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"card-content__icon"},n.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M30.8723 0.679769C31.0493 0.4677 31.3648 0.439162 31.5771 0.616028L40.5685 8.10907C40.5849 8.12217 40.6006 8.13643 40.6155 8.15184C40.6525 8.18985 40.6824 8.2326 40.705 8.27825C40.7397 8.3483 40.7568 8.4243 40.7568 8.5C40.7568 8.5757 40.7397 8.6517 40.705 8.72175C40.6824 8.76735 40.6526 8.81005 40.6157 8.84803C40.6007 8.8635 40.5849 8.87781 40.5685 8.89095L31.5771 16.384C31.3648 16.5608 31.0493 16.5323 30.8723 16.3202C30.6953 16.1082 30.7238 15.7929 30.9361 15.616L38.8751 8.99998H1.2571C0.980745 8.99998 0.756714 8.77612 0.756714 8.49998C0.756714 8.22384 0.980745 7.99998 1.2571 7.99998H38.8751L30.9361 1.384C30.7238 1.20713 30.6953 0.891838 30.8723 0.679769Z"})))))}},94379:(D,E,o)=>{"use strict";o.r(E),o.d(E,{default:()=>s});var n=o(56109),c=o(29516),C=o(27074),x=o(40430);const g=x.default.section` ${()=>x.css``} `;var O=o(7334),u=o(16954),v=o(52617),h=o(8424),f=o(35121),b=Object.defineProperty,P=Object.getOwnPropertySymbols,y=Object.prototype.hasOwnProperty,k=Object.prototype.propertyIsEnumerable,$=(e,t,r)=>t in e?b(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,T=(e,t)=>{for(var r in t||(t={}))y.call(t,r)&&$(e,r,t[r]);if(P)for(var r of P(t))k.call(t,r)&&$(e,r,t[r]);return e};const s=({})=>{const{title:e,results:t,isLoading:r}=(0,C.useMinilist)({id:O.eA.course,mappers:u.default});return n.createElement(g,{className:"[ block ]"},n.createElement("div",{className:"wrapper"},r?n.createElement(f.Z,{style:{display:"grid",justifyContent:"center",padding:"40px 0",minHeight:"240px"}}):n.createElement(n.Fragment,null,n.createElement("h3",{style:{textAlign:"center",margin:"0 auto 4rem auto"}},e),n.createElement(v.Z,{cardType:"courseCard"},t==null?void 0:t.map(l=>n.createElement(h.Z,T({key:`${l.title}--${(0,c.Z)()}`,className:"card"},l)))))))}},68792:(D,E,o)=>{"use strict";o.d(E,{Z:()=>O});var n=o(56109),c=o(40430);const x=c.default.section` ${({theme:{colors:u},coloring:v})=>{const h=()=>{switch(v){case"yellow":return` color: ${u.summerSchool.text.default}; background-color: ${u.summerSchool.brand.yellow}; `;case"blue":return` color: ${u.summerSchool.text.default}; background-color: ${u.summerSchool.brand.brightBlue}; `;case"pink":return` color: black; background-color: ${u.summerSchool.brand.pink}; `;case"green":return` color: ${u.summerSchool.text.default}; background-color: ${u.summerSchool.brand.green30}; `;case"light blue":return` color: ${u.summerSchool.text.default}; background-color: ${u.summerSchool.brand.brightBlue}; `;case"turquoise":return` color: ${u.summerSchool.text.default}; background-color: ${u.summerSchool.brand.turquoise}; `;default:return` color: ${u.summerSchool.text.default}; background-color: ${u.summerSchool.brand.yellow}; `}};return c.css` ${h}; overflow: hidden; @media screen and (min-width: 1024px) { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 800px; align-items: center; } .hero-content-container { padding: 8rem 1.6rem 4rem 1.6rem; @media screen and (min-width: 768px) { padding: 8rem 4rem 4rem 4rem; } @media screen and (min-width: 1024px) { grid-column: 1; display: flex; justify-content: flex-end; padding: 0 4rem; } .hero-content { width: fit-content; @media screen and (min-width: 1024px) { width: 560px; } @media screen and (min-width: 1680px) { width: 680px; } @media screen and (min-width: 1920px) { width: 800px; } h1 { max-width: 20ch; font-family: 'Aleo', sans-serif; font-size: 3.4rem; line-height: 1.2; color: inherit; @media screen and (min-width: 1024px) { font-size: 4.7rem; } @media screen and (min-width: 1024px) { font-size: 5.5rem; } } p { font-size: 2.5rem; line-height: 1.5; } } } .hero-cta-container { margin-top: 3.2rem; .button { display: inline-block; padding: 2rem 3.2rem; margin: 0 24px 24px 0; border: 1px solid currentColor; font-size: 1.8rem; color: inherit; text-decoration: none; &:first-of-type { border: 1px solid white; background-color: white; } @media screen and (min-width: 1024px) { padding: 2.4rem 4rem; font-size: 2rem; } } } .hero-image { grid-column: 2; height: 100%; width: 100%; & img { display: block; width: 100%; height: 100%; object-fit: cover; } } `}} `;var p=o(30689);const O=({title:u,summary:v,buttons:h,image:f,coloring:b,thumbnail:P})=>(f=f!=null&&f.url?f:P,n.createElement(x,{coloring:b},n.createElement("div",{className:"hero-content-container"},n.createElement("div",{className:"hero-content"},n.createElement("h1",null,u),n.createElement("p",null,v),h?n.createElement("div",{className:"hero-cta-container"},h==null?void 0:h.map((y,k)=>n.createElement(p.Z,{path:y==null?void 0:y.url,key:k,className:"button"},y!=null&&y.url?y==null?void 0:y.label:`${y.label} (missing url)`))):null)),(f==null?void 0:f.url)&&n.createElement("div",{className:"hero-image"},n.createElement("img",{src:`${f.url}?q=90&f=webp`,alt:f==null?void 0:f.altText}))))},24851:(D,E,o)=>{"use strict";o.r(E),o.d(E,{default:()=>s});var n=o(56109),c=o(40430);const x=c.default.section` ${()=>c.css``} `;var p=o(52617),g=o(98656);const u=c.default.div` ${({theme:{colors:e}})=>c.css` ${g.xx}; position: relative; border: 1px solid ${e.summerSchool.brand.greys.grey75}; background-color: ${e.summerSchool.brand.greys.grey97}; transition: background-color ${g.Do}; &:hover, &:focus-within { background-color: ${e.summerSchool.brand.greys.grey85}; } a { ${g.LF}; } .link-card__title { ${g.bH}; } .link-card__title, .link-card__summary { margin: 0; } `} `;var v=o(30689);const f=({title:e,summary:t,url:r})=>n.createElement(u,null,n.createElement(v.Z,{path:r},n.createElement("p",{className:"link-card__title"},e)),n.createElement("p",{className:"link-card__summary"},t));var b=Object.defineProperty,P=Object.getOwnPropertySymbols,y=Object.prototype.hasOwnProperty,k=Object.prototype.propertyIsEnumerable,$=(e,t,r)=>t in e?b(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,T=(e,t)=>{for(var r in t||(t={}))y.call(t,r)&&$(e,r,t[r]);if(P)for(var r of P(t))k.call(t,r)&&$(e,r,t[r]);return e};const s=({className:e,cards:t,title:r})=>n.createElement(x,{className:e},n.createElement("div",{className:"wrapper"},r?n.createElement("h3",{style:{textAlign:"center",margin:"0 auto 4rem auto"}},r):null,n.createElement(p.Z,{cardType:"linkCard"},t==null?void 0:t.map((l,m)=>n.createElement(f,T({key:m},l))))))},16954:(D,E,o)=>{"use strict";o.r(E),o.d(E,{default:()=>ge});var n=o(7334),c=o(97664),C=Object.defineProperty,x=Object.defineProperties,p=Object.getOwnPropertyDescriptors,g=Object.getOwnPropertySymbols,O=Object.prototype.hasOwnProperty,u=Object.prototype.propertyIsEnumerable,v=(a,i,d)=>i in a?C(a,i,{enumerable:!0,configurable:!0,writable:!0,value:d}):a[i]=d,h=(a,i)=>{for(var d in i||(i={}))O.call(i,d)&&v(a,d,i[d]);if(g)for(var d of g(i))u.call(i,d)&&v(a,d,i[d]);return a},f=(a,i)=>x(a,p(i));const b={title:"entryTitle",standfirst:"standfirst",image:["hero.image.asset.sys.uri","image.asset.sys.uri"],thumbnail:"thumbnailImage.asset.sys.uri",link:"sys.uri",searchTag:"sys.contentTypeId"},P=f(h({},b),{type:()=>n.sj.article,readingTime:"readingTime",author:{$path:"author",$formatting:{title:"entryTitle",id:"sys.id"}},tag:"topic[0].entryTitle",link:"sys.uri",date:a=>a.publishedDate||a.sys.version.published}),y=f(h({},b),{type:()=>n.sj.testimonial,quote:"quote",author:"author",role:"role",tag:()=>"Testimonial",image:"thumbnailImage.asset.sys.uri",link:"sys.uri",date:a=>a.publishedDate||a.sys.version.published}),k=f(h({},b),{subjectArea:"subjectArea.entryTitle",link:["linkURL","sys.uri"],sessions:{status:a=>a.programmeStatus.some(i=>["Open","Limited","Limited spaces"].includes(i.status))?"Open":"Closed"}}),$=f(h({},b),{type:()=>n.sj.video,description:"description",source:"youTubeEmbedCode",image:"thumbnail.asset.sys.uri",tag:"topic[0].entryTitle",watchTime:"watchTime",date:a=>a.publishedDate||a.sys.version.published}),T=f(h({},b),{type:()=>n.sj.event,date:"date",eventType:"type.entryTitle",location:"location.entryTitle",bookingStatus:"bookingStatus",bookingDate:"bookingDate",isFree:"isFree",image:"thumbnailImage.asset.sys.uri"}),S=f(h({},T),{type:()=>n.sj.offerHolderEvent}),s=f(h({},b),{description:"description",link:"asset.sys.uri"}),e={title:"entryTitle",subjectArea:"subjectArea.entryTitle",url:"sys.uri",searchTag:"sys.contentTypeId"},t={default:b,[n.bT.article]:P,[n.bT.programme]:k,[n.bT.caseStudy]:k,[n.bT.testimonial]:y,[n.bT.video]:$,[n.bT.event]:T,[n.bT.offerHoldersEvent]:S,[n.bT.document]:s,[n.bT.subjectAreaPage]:e},l=a=>(0,c.mapEntries)(a,t);var m=o(27074);const{getCurrent:B,getListing:M,getResults:_,getTotalCount:L,getPaging:V}=m.selectors.selectListing,X=a=>{const i=M(a);return i==null?void 0:i.title},Q=a=>L(a),q={currentListing:a=>B(a),currentPageCount:a=>_(a).length,listingTitle:X,noResultsText:a=>Q(a)===0?"No results were found":"",resultsText:a=>{const i=V(a),{pageIndex:d,pageSize:w,totalCount:j,pagesLoaded:A}=i;if(!A)return null;const I=(A[0]||d)*w+1;let N=I+(A.length*w||w)-1;return N>j&&(N=j),`${I} - ${N} of ${j} results`}},ee=a=>(0,c.mapJson)(a,q);var te=o(59081),re=o.n(te),R=o(94026),U=o(19626);const ne=(a=globalThis.STATE_TYPE||"immutable")=>{var i,d;return a==="immutable"?((i=globalThis.immutable)==null?void 0:i.fromJSOrdered)||((d=globalThis.immutable)==null?void 0:d.fromJS)||(w=>w):w=>w},z=(a,i,d,w=globalThis.STATE_TYPE||"immutable")=>{const j=ne(w);if(a&&"get"in a&&typeof a.get=="function"&&"getIn"in a&&typeof a.getIn=="function"&&"toJS"in a&&typeof a.toJS=="function")return Array.isArray(i)?j(a.getIn(i,d)):j(a.get(i,d));if(Array.isArray(i)&&a&&typeof a=="object"){const I=(0,U.qP)(i.join("."),a);return typeof I=="undefined"?d:I}const A=a&&typeof a=="object"?a[i]:void 0;return typeof A=="undefined"?d:A};var W=o(83814),ae=Object.defineProperty,oe=Object.defineProperties,se=Object.getOwnPropertyDescriptors,H=Object.getOwnPropertySymbols,le=Object.prototype.hasOwnProperty,ie=Object.prototype.propertyIsEnumerable,J=(a,i,d)=>i in a?ae(a,i,{enumerable:!0,configurable:!0,writable:!0,value:d}):a[i]=d,ce=(a,i)=>{for(var d in i||(i={}))le.call(i,d)&&J(a,d,i[d]);if(H)for(var d of H(i))ie.call(i,d)&&J(a,d,i[d]);return a},de=(a,i)=>oe(a,se(i));const{getSelectedFilters:me,getSearchTerm:ue,getCurrentFacet:pe,getSearchContext:K,selectCurrentPath:fe}=m.selectors,he={path:({state:a,facet:i})=>{const d=K(a)!=="listings"&&(i||pe(a)),w=fe(a)||"/search";return d?`${w}/${d}`:w},search:({state:a,facet:i,orderBy:d,term:w,pageIndex:j,pageSize:A})=>{const I=K(a),N=w?{}:Object.fromEntries(Object.entries(me(a,i,I,"js")).map(([ve,Y])=>[ve,Y==null?void 0:Y.join(",")])),ye=!w&&z(a,["routing","location","search"]),G=(0,W.YO)((0,R.parse)(ye));d&&(G.orderBy=d);const F=ue(a),Z=(0,W.YO)(de(ce({},re()(G,N)),{term:F}));return F&&(Z.term=F),j&&(Z.pageIndex=j+1),j===0&&(Z.pageIndex=void 0),A&&(Z.pageSize=A),(0,R.stringify)(Z)},hash:a=>z(a,["routing","location","hash"],"").replace("#","")},ge={results:l,resultsInfo:ee,navigate:a=>(0,U.ZP)(a,he)}},83814:(D,E,o)=>{"use strict";o.d(E,{YO:()=>S,ZP:()=>u});var n=Object.defineProperty,c=Object.getOwnPropertySymbols,C=Object.prototype.hasOwnProperty,x=Object.prototype.propertyIsEnumerable,p=(s,e,t)=>e in s?n(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t,g=(s,e)=>{for(var t in e||(e={}))C.call(e,t)&&p(s,t,e[t]);if(c)for(var t of c(e))x.call(e,t)&&p(s,t,e[t]);return s},O=(s,e,t)=>new Promise((r,l)=>{var m=_=>{try{M(t.next(_))}catch(L){l(L)}},B=_=>{try{M(t.throw(_))}catch(L){l(L)}},M=_=>_.done?r(_.value):Promise.resolve(_.value).then(m,B);M((t=t.apply(s,e)).next())});class u{static currencyFormat(e){return new Intl.NumberFormat("en-GB",{style:"currency",currency:"GBP",minimumFractionDigits:0}).format(e)}static showChildren(e){e.preventDefault;let t=document.getElementById(e);t.style.display=="block"?t.style.display="none":t.style.display="block"}static camelize(e){return e.replace(/(?:^\w|[A-Z]|\b\w)/g,(t,r)=>r==0?t.toLowerCase():t.toUpperCase()).replace(/\s+/g,"")}static ltrim(e){return e.replace(/^\s+/,"")}static trim(e,t=" "){return t==="]"&&(t="\\]"),t==="\\"&&(t="\\\\"),e.replace(new RegExp("^["+t+"]+|["+t+"]+$","g"),"")}static ArrayToSentence(e,t="and"){return e.length>1?e.slice(0,-1).join(", ")+" "+t+" "+e.slice(-1):e.toString()}static GetComposerContent(e,t){return e?e.filter(l=>l.type===t).map(l=>l.value):null}static dedupeUriSlashes(e){return e.replace("//","~~").split("/").filter(l=>l).join("/").replace("~~","//")}static dedupeArray(e){return e.filter((t,r,l)=>l.indexOf(t)==r)}static stringToArray(e,t=","){return typeof e=="string"?e.split(t).map(r=>u.trim(r)):e}static composedFieldToObject(e){const t={};return e.forEach(r=>t[r.type]=u.getComposerContent(r.type,e)),t}static getComposerContent(e,t){const r=t.find(l=>l.type===e);return r&&r.value}static getFileSize(e){const t=Math.ceil(e*.0009765625),r=Math.round(parseFloat((e*95367432e-14*Math.pow(10,2)).toFixed(2)))/Math.pow(10,2);return t<1e3?t+"KB":r+"MB"}static getFileExtension(e){const r=/(?:\.([^.]+))?$/.exec(e)[1];return r?r.toUpperCase():""}static renderImageAsWebP(e){let t=e;return e&&!e.includes("webp")&&(e.includes("?")?t=e+"&f=webp":t=e+"?f=webp"),t}static decodeEntities(e){var t=/&(nbsp|amp|quot|lt|gt);/g,r={nbsp:" ",amp:"&",quot:'"',lt:"<",gt:">"};return e.replace(t,function(l,m){return r[m]}).replace(/&#(\d+);/gi,function(l,m){var B=parseInt(m,10);return String.fromCharCode(B)})}static keyPress(e,t){var r=e.keyCode||e.which}static GroupBy(e,t){const r=new Map;return e.forEach(l=>{const m=t(l);r.has(m)?r.get(m).push(l):r.set(m,[l])}),r}}function v(s,e={}){return g({type:s},e)}const h=s=>{let e=s;return s.indexOf(".gif")==-1&&(s.indexOf("f=")==-1&&s.indexOf("format=")==-1&&(s.indexOf("?")>-1?e=`${s}&f=webp`:e=`${s}?f=webp`),e.indexOf("q=")==-1&&e.indexOf("quality=")==-1&&(e.indexOf("?")>-1?e=`${e}&q=70`:e=`${e}?q=70`)),e},f=(s,e,t)=>{s.asset&&s.asset.sys&&s.asset.sys.uri&&(s.asset.sys.uri=b(s.asset.sys.uri,e,t))},b=(s,e,t)=>{let r=s,l="?";return s.indexOf("?")>-1&&(l="&"),t&&r.indexOf("w=")==-1&&r.indexOf("width=")==-1&&(r=`${r}${l}w=${t}`,l="&"),e&&r.indexOf("h=")==-1&&r.indexOf("height=")==-1&&(r=`${r}${l}h=${e}`),r};function P(s){return s.reduce((e,t)=>e.concat(t),[]).filter((e,t,r)=>r.indexOf(e)==t)}function y(s,e){return O(this,null,function*(){return fetch(s,e).then(t=>O(this,null,function*(){if(setTimeout(()=>null,0),!t.ok)throw new Error(t.statusText);return t.json().then(r=>r)})).catch(t=>{throw t})})}function k(s){var e=1;return s[0]==="-"&&(e=-1,s=s.substr(1)),function(t,r){var l=t[s]r[s]?1:0;return l*e}}const $=s=>{let e="";const t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";for(var r=0;rs&&s.replace(/(?:^\w|[A-Z]|\b\w)/g,(e,t)=>t==0?e.toLowerCase():e.toUpperCase()).replace(/\s+/g,""),S=s=>(Object.entries(s).forEach(([e,t])=>t&&typeof t=="object"&&S(t)||(typeof t=="undefined"||t===null||t==="")&&delete s[e]),s)},24654:()=>{}}]);