(()=>{var e={1403:(e,t)=>{"use strict";t.i2=void 0;var n=["brightcove","youtube","jw_player","dugout-video"];t.i2=function(e){return e.hierarchy.map(function(e){return e.name}).join(",").toString()}},4795:function(e){e.exports=function(){"use strict";var e=1e3,t=6e4,n=36e5,i="millisecond",r="second",o="minute",a="hour",s="day",c="week",l="month",d="quarter",p="year",u="date",m="Invalid Date",b=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,g=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,_={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],n=e%100;return"["+e+(t[(n-20)%10]||t[n]||t[0])+"]"}},w=function(e,t,n){var i=String(e);return!i||i.length>=t?e:""+Array(t+1-i.length).join(n)+e},v={s:w,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),i=Math.floor(n/60),r=n%60;return(t<=0?"+":"-")+w(i,2,"0")+":"+w(r,2,"0")},m:function e(t,n){if(t.date()1)return e(a[0])}else{var s=t.name;h[s]=t,r=s}return!i&&r&&(f=r),r||!i&&f},O=function(e,t){if(k(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new P(n)},I=v;I.l=S,I.i=k,I.w=function(e,t){return O(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var P=function(){function _(e){this.$L=S(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[y]=!0}var w=_.prototype;return w.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(I.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var i=t.match(b);if(i){var r=i[2]-1||0,o=(i[7]||"0").substring(0,3);return n?new Date(Date.UTC(i[1],r,i[3]||1,i[4]||0,i[5]||0,i[6]||0,o)):new Date(i[1],r,i[3]||1,i[4]||0,i[5]||0,i[6]||0,o)}}return new Date(t)}(e),this.init()},w.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},w.$utils=function(){return I},w.isValid=function(){return!(this.$d.toString()===m)},w.isSame=function(e,t){var n=O(e);return this.startOf(t)<=n&&n<=this.endOf(t)},w.isAfter=function(e,t){return O(e){"use strict";var i=n(62169);e.exports={APP_BASE_PATH:i.APP_BASE_PATH,BUILD_PATH:i.BUILD_PATH,PUBLIC_PATH:i.PUBLIC_PATH,SW_FILENAME:i.SW_FILENAME,SCRIPT_FILENAME:i.SCRIPT_FILENAME,ENTRY_FILENAME:i.ENTRY_FILENAME}},53874:(e,t)=>{"use strict";t.iy=t.mG=void 0;t.mG=function(e){return e.map(function(e){return(e.firstName||" ")+" "+(e.lastName||" ")}).filter(function(e){return e.replace(/\s/g,"").length>0}).join(", ")||"No author"},t.iy=function(e){return e.map(function(e){return e.name}).map(function(e){return e.replace(/^By\s/,"")}).join(", ").toString()||void 0}},62169:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SW_FILENAME=t.SCRIPT_FILENAME=t.PUBLIC_PATH=t.ENTRY_FILENAME=t.BUILD_PATH=t.APP_BASE_PATH=void 0;t.APP_BASE_PATH="app",t.BUILD_PATH="_build",t.PUBLIC_PATH="public",t.SCRIPT_FILENAME="main.js",t.SW_FILENAME="sw.js",t.ENTRY_FILENAME="entry.js"}},t={};function n(i){var r=t[i];if(void 0!==r)return r.exports;var o=t[i]={exports:{}};return e[i].call(o.exports,o,o.exports,n),o.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var i in t)n.o(t,i)&&!n.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{"use strict";var e={};function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t(e)}function i(e){var n=function(e,n){if("object"!=t(e)||!e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var r=i.call(e,n||"default");if("object"!=t(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"==t(n)?n:n+""}function r(e,t,n){return(t=i(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.r(e),n.d(e,{adBreakpointHeight:()=>Xa,adBreakpointLarge:()=>es,adBreakpointMedium:()=>Za,desktop:()=>Ct,desktopL:()=>ss,desktopM:()=>as,desktopS:()=>os,desktopXL:()=>cs,laptop:()=>Tt,mobile:()=>Dt,mobileL:()=>is,mobileM:()=>ns,mobileS:()=>ts,pdf:()=>Ka,tablet:()=>Lt,tabletS:()=>rs,tideLaptop:()=>Qa});const o="esi_puid",a="permutive-id",s="subscriber_origin",c="loggedIn",l="hashed_email",d="subscriber",p="opt_in_language",u="euconsent-v2",m="us_privacy_string",b="last_ats_envelope_refresh",g="_pc_showpaywall",_="feat__subscribe_page_sticky_cta",w="feat__sentry",v="feat__selling_page_no_app",f="feat__intent_bid_enhancement",h="feat__billboard_rework",y="feat__us_donations_ab_test",k="drawer-menu-temp-link",S="primary-item",O="primary-item__open",I="primary-link",P="primary-trigger",E="related",j="mode-mouse",x="mode-keyboard-active",A="inline-gallery-btn",D="gallery-btn",L="webpush-signup-button",T="notification-prompt",C="notification-prompt--show",$="notification-prompt__accept",R="notification-prompt__deny",M="sticky",N="independent.co.uk",U="the-independent.com",B="uk",G="us",V="eu",J="sport",z="games",q="/sport",W="/games";window.mockAdobeAnalyticsObject={tl:(...e)=>{var t,n;console.log('MOCK ADOBE ANALYTICS "tl" CALL',e),null===(t=(n=window).__CYPRESS__SPY__)||void 0===t||t.call(n,"tl",window.s_object)},t:()=>{var e,t;console.log('MOCK ADOBE ANALYTICS "t" CALL'),null===(e=(t=window).__CYPRESS__SPY__)||void 0===e||e.call(t,"t",window.s_object)}};function H(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function F(e){for(var t=1;t{var n,i;const r=`; ${document.cookie}`.split(`; ${e}=`);return 2===r.length?decodeURIComponent(null!==(n=null===(i=r.pop())||void 0===i?void 0:i.split(";").shift())&&void 0!==n?n:""):t};let K,Q;const X=()=>{if("undefined"==typeof window)return"prod"!=={NODE_ENV:"production",npm_config_domain:""}.SERVER;if("undefined"!=typeof window&&void 0===K){var e;const t=new URLSearchParams(null===(e=window)||void 0===e||null===(e=e.location)||void 0===e?void 0:e.search);K=t.has("__DEBUG__")}return K||"true"===Y("__DEBUG__")},Z=()=>(void 0===Q&&(Q=(()=>{var e;return!0===(null===(e=window.JSGlobals)||void 0===e||null===(e=e.featureFlags)||void 0===e?void 0:e[w])})()),Q),ee=(...e)=>{X()&&console.group(...e)},te=(...e)=>{X()&&console.groupEnd(...e)},ne=(...e)=>{X()&&console.log(...e)},ie=(...e)=>{var t;const n=X(),i=Z();n&&console.warn(...e),i&&(null===(t=window.Sentry)||void 0===t||t.captureException(...e))},re=(...e)=>{var t;const n=X(),i=Z();n&&console.error(...e),i&&(null===(t=window.Sentry)||void 0===t||t.captureException(...e))},oe=()=>window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,ae=(e,{async:t=!0,defer:n=document.location.search.includes("___FORCE_DEFER___"),parent:i=document.body,attributes:r}={})=>{window.JSGlobals=window.JSGlobals||{};const o=window.JSGlobals.loadedJS=[];return new Promise((a,s)=>{const c=(e instanceof Array?e:[e]).map(e=>o.includes(e)?Promise.resolve():new Promise((a,s)=>{const c=((e,{id:t,async:n,defer:i,ok:r,error:o,attributes:a})=>{const s=document.createElement("script");return s.onload=r,s.onerror=o,t&&"undefined"!==t&&(s.id=t),n&&!i&&s.setAttribute("async",""),i&&s.setAttribute("defer",""),a&&a.forEach(([e,t])=>{s.setAttribute(e,t)}),s.src=e,s})(e,{async:t,defer:n,ok:a,error:s,attributes:r});i.appendChild(c),o.push(e)}));return Promise.all(c).then(a,s)})},se={title:"User Sync",width:0,height:0,sandbox:"allow-same-origin allow-scripts",frameborder:0,style:"display: none;"},ce=e=>window.location.hostname.includes(e),le=(e=!1,t=!1)=>{if(!e)return;const n=["https://btloader.com/tag?o=5656913017569280&upapi=true"];t&&n.push("https://btloader.com/recovery?w=5173326281965568&upapi=true"),setTimeout(()=>{(async()=>{try{await ae(n)}catch(e){re("Failed to load Blockthrough script",e)}})()},3e3)},de="indy",pe=`${de}:pianoReady`,ue=`${de}:spError`,me="analytics-trigger",be="brazeLoaded",ge=`${de}:datalayerPush`,_e=`${de}:adobeReady`,we="reg-wall",ve=["Registration is a free and easy way to support our truly independent journalism"],fe=`${we}-form`,he=`${we}-form-b`,ye="voucher-ticker",ke="billboard",Se="billboard-wrapper",Oe="main",Ie="drawer",Pe=()=>new Promise(e=>{if(!JSGlobals.cmp.enabled)return void e(!0);document.getElementById("sp-script").error&&e(!1),window.addEventListener(ue,()=>{e(!1)});window.__tcfapi("addEventListener",2,(t,n)=>{var i;if(n)if(["useractioncomplete","tcloaded"].includes(t.eventStatus))if(window.__tcfapi("removeEventListener",2,()=>{},t.listenerId),t.gdprApplies){if(ne("Consent Or Pay: valid GDPR tcData ---\x3e",t),null!==(i=t.publisher)&&void 0!==i&&null!==(i=i.consents)&&void 0!==i&&i[1])return ne('Consent Or Pay: tcData.publisher?.consents?.["1"] ---\x3e',t),void e(!0);e(!1)}else e(!0);else ne("Consent Or Pay: !['useractioncomplete', 'tcloaded'].includes(tcData.eventStatus) ---\x3e",{tcData:t,eventStatus:t.eventStatus})})}),Ee=async(e,t)=>new Promise(n=>{var i;null!==(i=JSGlobals)&&void 0!==i&&null!==(i=i.cmp)&&void 0!==i&&i.enabled?window.__tcfapi&&Pe().then(i=>{i?window.__tcfapi("getCustomVendorConsents",2,i=>{var r;const o=!(null===(r=i.grants)||void 0===r||null===(r=r[e])||void 0===r||!r.vendorGrant);ne("CMP:getCustomVendorConsents",t,o),n(o)}):n(!1)}):n(!0)}),je=()=>{var e;null===(e=document.querySelector(`.${T}`))||void 0===e||null===(e=e.classList)||void 0===e||e.remove(C)},xe=()=>{var e;null===(e=window.braze)||void 0===e||e.openSession(),Notification.requestPermission(),je()};function Ae(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}const De=()=>{const e=Y(o);var t;e&&(null===(t=window.braze)||void 0===t||t.changeUser(e))},Le=async()=>{if(!!window.braze)return De(),!0;try{var e;if(!await Ee("5ed8c49c4b8ce4571c7ad801","braze"))return!1;const{braze:{sdkAPIKey:t="",sdkEndpoint:n=""}={}}=window.JSGlobals;return await ae(["https://js.appboycdn.com/web-sdk/4.8/braze.min.js"]),null===(e=window.braze)||void 0===e||e.initialize(t,function(e){for(var t=1;t{const e=document.querySelector(`.${$}`),t=document.querySelector(`.${R}`);null==e||e.addEventListener("click",xe),null==t||t.addEventListener("click",()=>je())})(),document.dispatchEvent(new CustomEvent(be)),!0}catch(e){return re("Error initializing braze sdk",e),!1}},Te=async()=>{var e,t;await Le()&&(null===(e=window.braze)||void 0===e||e.requestPushPermission(),null===(t=document.querySelectorAll(`.${L}`))||void 0===t||t.forEach(e=>{e.addEventListener("click",()=>{var e;null===(e=window.braze)||void 0===e||e.requestPushPermission()})}))},Ce="cohort_ids";const $e=()=>{const{pushNotificationSDKPath:e}=window.JSGlobals.taboola||{};e&&ae(e,{parent:document.head})},Re="/web-push",Me="/login",Ne=[Me,"/register","/subscribe","/subscribe/newsletter","/donate","/profile","/newsletters"],Ue="UK or EEA",Be="13478",Ge=(e,t=null)=>{const n=`; ${document.cookie}`.split(`; ${e}=`);return 2===n.length?decodeURIComponent(n.pop().split(";").shift()):t},Ve=(e,t,n)=>{const i=new Date;if(n){const e=n.days?24*n.days*60*60*1e3:60*n.hours*60*1e3;i.setTime(i.getTime()+e)}const r=[];r.push(`${e}=${encodeURIComponent(t)}`),r.push("path=/"),r.push("secure"),n&&r.push(`expires=${i.toGMTString()}`),document.cookie=r.join(";")};function Je(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function ze(e){for(var t=1;t(((e,t={})=>{const n=JSON.stringify(t,null,2),i=n.split("\n").reduce((e,t)=>t.length>=e?t.length:e,0),r=e.length,o=Math.max(r,i),a=` ${e.padEnd(o)} `,s=n.split("\n").map(e=>` ${e.padEnd(o)} `),c=s.length>1?`%c${s.slice(0,1)}\n%c${s.slice(1,-1).join("\n")}\n%c${s.slice(-1)}\n`:`%c${s[0]}\n`,l=s.length>1?["font-family:monospace; background: #333; color: #eee; padding-top: 5px;","font-family:monospace; background: #333; color: #eee;","font-family:monospace; background: #333; color: #eee; padding-bottom: 10px; border-radius: 0 0 6px 6px"]:["font-family:monospace; background: #333; color: #eee; padding-top: 5px; padding-bottom: 10px; border-radius: 0 0 6px 6px"];console.log(`%c${a}\n${c}`,"font-family:monospace; background: #333; color: #eee; border-bottom: 1px solid #666; padding: 5px 0; border-radius: 6px 6px 0 0",...l)})(`CustomEvent: ${e}`,t),new CustomEvent(me,{detail:{data:ze({},t),eventName:e}})),We=(e,t)=>{return n=qe(e,t),void document.body.dispatchEvent(n);var n},He=["subscription_length","subscription_price","subscription_package","initial_selected_package","marketing_opt_in","selling_page_variant"];function Fe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function Ye(e){for(var t=1;t{var e;const t=null!==(e=sessionStorage.getItem(Ke))&&void 0!==e?e:"{}";return JSON.parse(t)},Xe=e=>{const t=Qe(),n=Object.assign({},t,e),i=JSON.stringify(n);sessionStorage.setItem(Ke,i)},Ze=e=>{const t=Qe();return e.reduce((e,n)=>Ye(Ye({},e),{},{[n]:t[n]}),{})},et=e=>{const t=Qe();e.forEach(e=>delete t[e]),sessionStorage.setItem(Ke,JSON.stringify(t))},tt=e=>{const t=[...He,"subscribe_button_version","auto_refresh","mostWatched_algorithm","mostWatched_paragraph_number"],n=Ze(t);return Ye(Ye({},e),n)},nt=({subscription_length:e,subscription_price:t,subscription_package:n,selling_page_variant:i,subscribe_button_version:r})=>{Xe({subscription_length:e,subscription_price:t,subscription_package:n,selling_page_variant:i,subscribe_button_version:r})},it=(e={})=>We("gallery_view",e),rt=(e={})=>We("auto_gallery_view",e),ot=(e={})=>{We("liveramp_api_request",e)},at=(e={})=>We("liveblog_bulleted_list_click",e),st=(e={})=>We("article_bulleted_list_click",e),ct=(e={})=>We("update_components_list",e),lt=()=>We("burger_menu_click"),dt=async e=>{const t=(new TextEncoder).encode(e),n=await crypto.subtle.digest("SHA-256",t);return Array.from(new Uint8Array(n)).map(e=>e.toString(16).padStart(2,"0")).join("")},pt=/((([^<>()[\].,;:\s@“]+(\.[^<>()[\].,;:\s@“]+)*)|(“.+“))@(([^<>()[\].,;:\s@“]+\.)+[^<>()[\].,;:\s@“]{2,}))/i,ut=(new RegExp("(?:(?\\w+)\\s+)?(?\\d{1,2}px)\\s*\\/\\s*(?\\d{1,2}px)\\s+(?.+)"),e=>{if(e=(e=e.replace(/\s+/g,"")).toLowerCase().trim().replace(/\+[^@]*@/,"@").replace(/(\.)(?=[^@]+@)/g,""),!pt.test(e))throw new Error("Invalid email format");return e}),mt=async e=>{const t=e.envelopes.find(e=>"envelopeLiveramp"===e.source);if(!t)throw new Error("No LiveRamp envelope found");const n={timestamp:(new Date).toISOString(),envelope:t.value};Ve(b,encodeURIComponent(JSON.stringify(n)));return btoa(JSON.stringify(n))},bt=e=>{Ve("_lr_env",e,{hours:12})},gt=(e,t)=>{const n=(()=>{const e="true"===Y("gdprApplies");return Y(m)?"US":e?Ue:"ROW"})(),i={pid:Be,iv:e,atype:2};if(i.it=t?19:4,n===Ue)i.ct=4,i.cv=Y(u)||"";else if("US"===n){var r;i.ct=3,i.cv=null!==(r=Y(m))&&void 0!==r?r:void 0}return i},_t=e=>{const t=e.envelopes.find(e=>"pairIds"===e.source);if(t){(e=>{const t=btoa(JSON.stringify({envelope:e}));Ve("_lr_pairId",t,{hours:12})})(JSON.parse(atob(t.value)))}},wt=async e=>{const t=(e=>{const t=gt(e,!0),n=new URL(window.JSGlobals.liveRamp.envelopeRefreshApiEndpoint);return Object.keys(t).forEach(e=>{const i=t[e];void 0!==i&&n.searchParams.append(e,i.toString())}),n.toString()})(e),n=await fetch(t,{method:"GET",headers:{Origin:"https://independent.co.uk"}});if(!n.ok)throw new Error(`Failed to refresh ATS envelope: ${n.statusText}`);return await n.json()},vt=async e=>{try{(()=>{if(!Y(u)&&!Y(m))throw new Error("No valid consent cookie found")})();const t=/^[a-f0-9]{64}$/i.test(e)?e:await dt(ut(e)),n=await(async e=>{const t=gt(e,!1),n=new URL(window.JSGlobals.liveRamp.envelopeGenerateApiEndpoint);Object.keys(t).forEach(e=>n.searchParams.append(e,String(t[e])));const i=await fetch(n.toString(),{method:"GET",headers:{Origin:"https://independent.co.uk"}});if(!i.ok)throw new Error(`Failed to request ATS envelope: ${i.status}`);return await i.json()})(t),i=await mt(n);return bt(i),(e=>{try{Ve(l,e,{hours:12})}catch(e){throw console.error("Error setting hashed email cookie:",e),e}})(t),_t(n),ot({status:"success"}),n}catch(e){throw console.error("Error during ATS envelope request:",e.message),ot({status:"failure"}),e}};var ft={maxInProgress:5,failFast:!1,nextCheck:function(e,t){return Promise.resolve(e.amountStartedDate.now()-Ot,Pt=e=>{const t=It();St[e]=t,ne(`starting ${e} load @ ${t}`)},Et=e=>{const t=It();ne(`finished ${e} load @ ${t}, duration ${t-St[e]}`),delete St[e]},jt=e=>Object.keys(e).map(t=>async()=>{const n=e[t];if(n){Pt(t);try{if("function"==typeof n)await n(),Et(t);else if(await n.method(),Et(t),n.dependents){ee(`${t} deps`),await kt(jt(n.dependents)),te()}}catch(e){console.warn(`Error caught in ${t}()`),console.error(e)}}}),xt=async e=>{for(let t=0;t{const n=((e={})=>e instanceof URLSearchParams?e:new URLSearchParams(Object.entries(e).reduce((e,[t,n])=>(e[t]=n.toString(),e),{})))(t);return 0===Array.from(n.keys()).length?`${e}`:`${e}?${n}`},Rt=(e,t)=>{const n=new URL(e,window.location.origin);return $t(n,t)};class Mt{constructor(e,t="/"){this.key=e,this.fallback=t}retrieve(){return localStorage.getItem(this.key)||this.fallback}store(e){localStorage.setItem(this.key,e)}storePath(e){const t=Rt(e);localStorage.setItem(this.key,t)}storeCurrentURL(){const e=(()=>{const e=window.location.pathname,t=new URLSearchParams(window.location.search);return Rt(e,t)})();localStorage.setItem(this.key,e)}clear(){localStorage.removeItem(this.key)}}const Nt=new Mt("donate-redirect-url"),Ut=(new Mt("forgotten-password-redirect-url"),new Mt("consent-to-pay-original-page-redirect-url"),"ILC-refresh"),Bt=`CMP=${Ut}`,Gt="regSourceMethod",Vt="itm_campaign";const Jt=()=>{const e=((e={})=>$t("/donate",e))({[Gt]:"Donations"});var t;Nt.storeCurrentURL(),t=e,location.href=t},zt=(e,t,n={})=>{const i=new URLSearchParams;return i.set("__amp_source_origin",window.location.origin),Object.keys(n).forEach(e=>{i.set(e,n[e])}),fetch(`/internal-api/${e}?${i.toString()}`,t)},qt=(e,t)=>zt(e,{method:"GET"},t);function Wt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}const Ht=(e={},t)=>{const n=Object.keys(e);window.tp=window.tp||[],window.tp.push(["addHandler","startCheckout",()=>((e={})=>We("payment_form_loaded",e))(e)]),!t&&window.tp.push(["addHandler","checkoutComplete",()=>{((e={})=>{We("payment_details_success",e)})(e),(()=>{const e=localStorage.getItem("subscription-cause");e&&(window._tfa=window._tfa=[],window._tfa.push({notify:"subscription",name:"subscription-completed",sourceurl:e}),ae(["//cdn.taboola.com/libtrc/unip/1018671/tfa.js"]))})(),et(n)}]),window.tp.push(["addHandler","checkoutError",()=>{et(n),((e={})=>{We("payment_details_failed",e)})(e)}])},Ft=({offerId:e="",termId:t="",trackingData:n={},isPaymentFlow:i=!1,promoCode:o="",showCloseButton:a=!0}={})=>{Ht(n,i),window.tp=window.tp||[],window.tp.push(["init",()=>{window.tp.offer.show(function(e){for(var t=1;t{if(!document.querySelector(`.${T}`))return!1;const e=(()=>{var e,t;return null!==(e=null===(t=window.JSGlobals)||void 0===t||null===(t=t.article)||void 0===t?void 0:t.heroType)&&void 0!==e?e:""})();return!(e=>"video"===e)(e)||window.matchMedia(`(min-width: ${Tt}px)`).matches},Kt=["offerId","termId"];function Qt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function Xt(e){for(var t=1;t{null==e||e.addEventListener(t,n,Xt({passive:!0},i),r)},en=e=>{const t=e.split("/"),n=t[t.length-1].replace(/\D/g,"");return t.pop(),t.shift(),`${t.join("/")}/article${n}`},tn=()=>{document.addEventListener(pe,()=>{window.tp=window.tp||[],window.tp.push(["addHandler","customEvent",e=>{"support-now"===e.eventName&&((e={})=>{We("support_now_encore_click",e)})()}])})},nn=()=>{document.addEventListener(pe,()=>{window.tp=window.tp||[],window.tp.push(["addHandler","customEvent",e=>{var t;"donation-prompt"===e.eventName&&(((e={})=>{We("donation_article_bottom",e)})(),window.location.href=null===(t=e.params)||void 0===t?void 0:t.url)}])})},rn=()=>{document.querySelectorAll(".social-share a").forEach(e=>{Zt(e,"click",e=>{const t=e.currentTarget.getAttribute("type");"bookmark"!==t&&((e={})=>{We("article_share",e)})({share_provider:t})})})},on=()=>{window.__gcse||(window.__gcse={}),window.__gcse.searchCallbacks={web:{rendered:(e,t,n,i)=>{var r;const o=null===(r=i[0])||void 0===r||null===(r=r.closest(".gsc-results-wrapper-visible"))||void 0===r||null===(r=r.querySelector(".gsc-result-info"))||void 0===r?void 0:r.innerText,a=null==o?void 0:o.match(/([\d,]+).*\(.+\)/);((e={})=>{We("search",e)})({search_term:t,search_results_count:a?a[1].replace(",",""):o})}}}},an=()=>{const e=()=>{document.querySelectorAll(".drawer-menu-navlist a").forEach(e=>{Zt(e,"click",e=>{const t=e.target.innerText,n=(e=>{const t=e.target.closest(".drawer-menu-section");return t?null==t?void 0:t.querySelector(".drawer-trigger-title").innerText:null===(n=e.target.closest(".section-list"))||void 0===n||null===(n=n.previousSibling)||void 0===n||null===(n=n.querySelector(".link"))||void 0===n?void 0:n.innerText;var n})(e);((e={})=>{We("mega_menu_link_click",e)})({mega_menu_link_text:t,mega_menu_link_category:n})})})},t=document.getElementById("MegaMenuButton");null==t||t.addEventListener("click",()=>{setTimeout(e,500)})},sn=()=>{document.querySelectorAll(`.menu-navbar-item a, .${S} a`).forEach(e=>{Zt(e,"click",e=>{const t=e.target.closest("ul"),n=e.target.closest("li"),i=[...t.childNodes].findIndex(e=>e===n),r=e.target.innerText,o=((e,t)=>{const n=e.target.closest(`.${S}`);return n?null==n?void 0:n.querySelector(`.${I}`).innerText:(null===(i=e.target.closest(".menu-navbar-item > ul"))||void 0===i||null===(i=i.previousSibling)||void 0===i?void 0:i.innerText)||t;var i})(e,r);((e={})=>{We("main_nav_link_click",e)})({main_nav_link_text:r,main_nav_link_category:o,main_nav_link_position:i+1})})})},cn=()=>{document.querySelectorAll(".most-popular").forEach(e=>{Zt(e,"click",e=>{e.stopPropagation();const t=e.target.closest("li");if(t){var n,i,r;const e=null==t||null===(n=t.children[1])||void 0===n?void 0:n.innerText,o=null===(i=t.dataset)||void 0===i?void 0:i.articleId;((e={})=>{We("most_popular_link_click",e)})({most_popular_link_text:e,most_popular_link_position:null===(r=t.dataset)||void 0===r?void 0:r.position,most_popular_link_article_id:o})}})})},ln=()=>{document.querySelectorAll(".popular-videos").forEach(e=>{Zt(e,"click",e=>{e.stopPropagation();const t=e.target.closest("li");if(t){var n,i,r;const e=null==t||null===(n=t.children[1])||void 0===n?void 0:n.innerText,o=null===(i=t.dataset)||void 0===i?void 0:i.articleId;((e={})=>{We("popular_videos_link_click",e)})({popular_videos_link_text:e,popular_videos_link_position:null===(r=t.dataset)||void 0===r?void 0:r.position,popular_videos_link_article_id:o})}})})},dn=()=>{document.querySelectorAll(".sponsored-features").forEach(e=>{Zt(e,"click",e=>{e.stopPropagation();const t=e.target.closest("li");if(t){var n,i,r;const e=null==t||null===(n=t.children[1])||void 0===n?void 0:n.innerText,o=null===(i=t.dataset)||void 0===i?void 0:i.articleId;((e={})=>{We("sponsored_features_link_click",e)})({sponsored_features_link_text:e,sponsored_features_link_position:null===(r=t.dataset)||void 0===r?void 0:r.position,sponsored_features_link_article_id:o})}})})},pn=()=>{document.querySelectorAll(".indy100-trending").forEach(e=>{Zt(e,"click",e=>{e.stopPropagation();const t=e.target.closest("li");if(t){var n,i,r;const e=null==t||null===(n=t.children[1])||void 0===n?void 0:n.innerText,o=null==t||null===(i=t.dataset)||void 0===i?void 0:i.articleId;((e={})=>{We("indy100_trending_link_click",e)})({indy100_trending_link_text:e,indy100_trending_link_position:null==t||null===(r=t.dataset)||void 0===r?void 0:r.position,indy100_trending_link_article_id:o})}})})},un=()=>{document.querySelectorAll(".taboola-below-article").forEach(e=>{Zt(e,"click",e=>{var t,n;e.stopPropagation();((e={})=>{We("taboola_feed_link_click",e)})({taboola_feed_link_text:null===(t=e.target.closest("[data-item-title]"))||void 0===t||null===(t=t.dataset)||void 0===t?void 0:t.itemTitle,taboola_feed_link_position:null===(n=e.target.closest(".tbl-feed-card"))||void 0===n||null===(n=n.dataset)||void 0===n?void 0:n.cardIndex})})})},mn=()=>{document.querySelectorAll(".bulletin-feed-list").forEach(e=>{Zt(e,"click",e=>{e.stopPropagation();const t=e.target.closest('[role="listitem"]');if(t){var n,i,r;const e=null==t||null===(n=t.children[1])||void 0===n?void 0:n.innerText,o=null===(i=t.dataset)||void 0===i?void 0:i.articleId;((e={})=>{We("bulletin_feed_link_click",e)})({bulletin_link_text:e,bulletin_link_position:null===(r=t.dataset)||void 0===r?void 0:r.position,bulletin_link_article_id:o})}})})},bn=()=>{const e=document.querySelectorAll(`.${E}`);document.querySelectorAll(".related-item").forEach(t=>{Zt(t,"click",n=>{const{autoLink:i,topicLink:r,algorithm:o,text:a,position:s}=t.dataset,c=t.closest(`.${E}`);((e={})=>{We("related_articles_link_click",e)})({related_articles_link_text:a,related_articles_autolink:i,related_articles_topiclink:r,related_articles_algorithm:o,related_articles_link_position:s,related_embed_position:Array.prototype.indexOf.call(e,c)+1+1}),n.stopPropagation()})})},gn=()=>{document.querySelectorAll(".premium-menu [data-tab]").forEach(e=>{Zt(e,"click",()=>{((e={})=>{We("ip_tab_click",e)})({tab_url:document.location.href,tab_name:e.dataset.tab})})})},_n=()=>{document.querySelectorAll('section [data-tab="ebooks"] [id^="ebook"]').forEach(e=>{Zt(e,"click",()=>{var t;((e={})=>{We("ip_ebook_click",e)})({ebook_url:e.href,ebook_title:null===(t=e.dataset)||void 0===t?void 0:t.title})})})},wn=()=>{document.querySelectorAll('section [data-tab="events"] [href^="#event"]').forEach(e=>{Zt(e,"click",()=>{var t;((e={})=>{We("ip_event_click",e)})({event_name:null===(t=e.dataset)||void 0===t?void 0:t.title})})})},vn=()=>{document.querySelectorAll(".liveblog-post h3 a").forEach((e,t)=>{Zt(e,"click",n=>{((e={})=>{We("blog_post_article_link_click",e)})({article_link_text:n.target.innerText,article_link_url:e.href,article_link_position:t+1})})})},fn=()=>{[{element:".js-comment-header",text:"Comment Counts",position:"top"},{element:".js-comment-footer",text:"View Comments",position:"bottom"}].forEach(e=>{const{element:t,text:n,position:i}=e;Zt(document.querySelector(t),"click",()=>{((e={})=>{We("show_comments_click",e)})({show_comments_link_text:n,show_comments_link_position:i})})})},hn=()=>{document.addEventListener("watchMoreLoaded",e=>{const t=document.querySelector('[id^="playinc-article-component"]');if(t){const n=t.id.replace("playinc-article-component-",""),i={mostWatched_url:e.detail.url,mostWatched_algorithm:e.detail.algorithm,mostWatched_paragraph_number:n};Xe(i),((e={})=>{We("most_watched_load",e)})({trackingData:i}),t.addEventListener("click",()=>{((e={})=>{We("most_watched_click",e)})({mostWatched_link_text:"Most Watched"})})}})},yn=()=>{document.querySelectorAll(`#${Oe} p a`).forEach(e=>{var t;(null===(t=e.href)||void 0===t?void 0:t.startsWith(document.location.origin))&&Zt(e,"click",()=>((e={})=>We("contextual_inline_click",e))())})},kn=()=>{document.querySelectorAll(`#${Oe} p a`).forEach(e=>{new RegExp(`^${document.location.origin}/topic/.*$`).test(e.href)&&Zt(e,"click",()=>((e={})=>We("contextual_inline_topic_click",e))())})},Sn=()=>{document.querySelectorAll(`#${Oe} p a`).forEach(e=>{new RegExp(`^${document.location.origin}/(?!topic/).*$`).test(e.href)&&Zt(e,"click",()=>((e={})=>We("contextual_inline_non_topic_click",e))())})},On=()=>{document.addEventListener(pe,()=>{window.addEventListener("message",e=>{if("changing-subscription"===e.data.type){const{data:t}=e.data;window.tp=window.tp||[],window.tp.push(["init",()=>{((e={})=>{nt(e),We("change_subscription_package",e)})({subscription_length:t.trackingLength,subscription_price:t.trackingPrice,subscription_package:t.trackingName})}])}})})},In=()=>{window.addEventListener("message",e=>{"premium-article-cta-premium"===e.data.type&&((e={})=>{We("premium_article_cta_premium",e)})({})})},Pn=()=>{window.addEventListener("message",e=>{"premium-article-cta-tide"===e.data.type&&((e={})=>{We("premium_article_cta_tide",e)})({})})},En=()=>{window.addEventListener("message",e=>{"expandable-prompt-cta-premium"===e.data.type&&((e={})=>{We("expandable_prompt_cta_premium",e)})({})})},jn=()=>{window.addEventListener("message",e=>{"expandable-prompt-cta-tide"===e.data.type&&((e={})=>{We("expandable_prompt_cta_tide",e)})({})})},xn=()=>{window.addEventListener("message",e=>{if(e.data&&e.data.sellingPageData){const t=e.data,{sellingPageData:{offerId:n,termId:i}}=t,r=At(t.sellingPageData,Kt),o={subscription_length:r.trackingLength,subscription_price:r.trackingPrice,subscription_package:r.trackingName,initial_selected_package:r.initialSelectedPackage};((e={})=>{nt(e),We("subscription_button_click",e)})(Xt({subscribe_button_version:r.trackingCta},o));const a=new URLSearchParams;a.set("offerId",n),a.set("termId",i),Ge(c)&&(window.location.href=`/subscribe/payment?${a.toString()}`),Ft({offerId:n,termId:i,trackingData:o})}})},An=()=>{document.addEventListener(pe,()=>{window.tp=window.tp||[],window.tp.push(["addHandler","customEvent",({eventName:e,params:t})=>{if("payment-option-pp"===e){const e=Ze(He),n=`Subscription Funnel|Payment Method Selected|${(e=>{switch(e){case"credit":case"stripe":return"Credit Card";case"paypalbt":return"Paypal";case"applepaybt":return"Apple Pay";case"gocardless_drop_in":return"Direct Debit via GoCardless"}})(t.method)}`;((e={})=>{We("change_payment_method",e)})(Xt(Xt({},e),{},{name_form_field:n}))}}])})},Dn=()=>{document.querySelectorAll(".js-key-points a").forEach(e=>{Zt(e,"click",e=>{const t=e.target.closest("ul"),n=e.target.closest("li"),i=[...t.childNodes].findIndex(e=>e===n);((e={})=>{We("liveblog_key_points_click",e)})({liveblog_key_points_text:e.target.innerText,liveblog_key_points_destination:e.target.href,liveblog_key_points_position:i+1})})})},Ln=()=>{document.querySelectorAll(".most-commented-link").forEach(e=>{Zt(e,"click",t=>{const n=t.target.closest(".section-body"),i=t.target.closest(".article-default"),r=[...n.childNodes].findIndex(e=>e===i);((e={})=>{We("most_commented_section_click",e)})({most_commented_section_link_pagename:en(e.getAttribute("href")),most_commented_section_link_position:r+1})})})},Tn=()=>{document.querySelectorAll("nav.topics > div > a").forEach(e=>{e.addEventListener("click",e=>{((e={})=>{We("article_topic_tag_click",e)})({tag:e.target.innerHTML})})})},Cn=()=>{window.analytics=window.analytics||{},window.analytics.experienceExecuted=(e,t)=>{((e={})=>{We("experience_executed",e)})({experience_name:e,variant:t})}},$n=()=>{document.querySelectorAll(`#${ye} a`).forEach(e=>{Zt(e,"click",e=>{((e={})=>{We("voucher_ticker_link_click",e)})({voucher_ticker_text:"All Deals"===e.target.innerText?"All Deals":e.target.previousElementSibling.innerText})})})},Rn=()=>{document.querySelectorAll(`#${ye} .carousel-prev-button,\n #${ye} .carousel-next-button`).forEach(e=>{Zt(e,"click",e=>{((e={})=>{We("voucher_ticker_arrow_click",e)})({voucher_ticker_arrow_text:e.target.ariaLabel})})})},Mn=()=>{document.querySelectorAll("[data-edition]").forEach(e=>{Zt(e,"click",e=>{((e={})=>{We("edition_link_click",e)})({edition_link_text:e.target.innerText})})})},Nn=()=>{document.querySelectorAll(`.${k}, .header-menu-temp-link`).forEach(e=>{const t=e.classList.contains(k)?"Burger":"Visible";Zt(e,"click",e=>{((e={})=>{We("temporary_link_click",e)})({temp_link_text:`${e.target.innerText} - ${t}`})})})},Un=()=>{document.querySelectorAll('a[data-affiliate="true"]').forEach(e=>{Zt(e,"click",e=>{((e={})=>{We("affiliate_link_click",e)})({affiliate_link_click_text:e.target.innerHTML})})})},Bn=()=>{document.querySelectorAll(`.${L}`).forEach(e=>{Zt(e,"click",()=>{We("webpush_signup_click")})})},Gn=()=>{const e=document.querySelector(`.${$}`);Zt(e,"click",()=>{We("notification_prompt_accept")})},Vn=()=>{const e=document.querySelector(`.${R}`);Zt(e,"click",()=>{We("notification_prompt_dismiss")})},Jn=()=>{const e=document.querySelector(`.${T}`);((e,t)=>{if(!e)return;let n=e.classList.toString();const i=new MutationObserver(r=>{for(const o of r)if("class"===o.attributeName){const r=e.classList.toString();if(r!==n){t(i),n=r;break}}});i.observe(e,{attributes:!0})})(e,()=>{var t;if(null!=e&&null!==(t=e.classList)&&void 0!==t&&t.contains(C)){const e=Yt()?"E2":"E1";((e={})=>{We("notification_prompt_load",e)})({components_list:`${window.digitalData.components_list},${e}`})}})},zn=()=>{const e=document.getElementById("support-nsc-button-amp");null==e||e.addEventListener("click",()=>{Nt.storeCurrentURL(),((e={})=>{We("support_nsc_link_click",e)})()})},qn=()=>{document.querySelectorAll("#anchors-nav a").forEach(e=>{Zt(e,"click",e=>{((e={})=>{We("anchor_nav_link_click",e)})({anchor_link_click_text:e.target.innerHTML})})})};window.addEventListener("heyflow-button-click",e=>{((e={})=>{We("heyflow_button_click",e)})({heyflow_button_click_text:e.detail.customEventLabel})}),window.addEventListener("heyflow-screen-view",e=>{((e={})=>{We("heyflow_screen_view",e)})({heyflow_screen_view_name:e.detail.screenName,heyflow_screen_view_number:`screen ${e.detail.screenIndex}`})});const Wn=()=>{[...document.querySelectorAll(`.${D}`)].forEach(e=>{e.addEventListener("click",it)}),[...document.querySelectorAll(`.${A}`)].forEach(e=>{e.addEventListener("click",rt)}),document.addEventListener(pe,()=>{window.tp=window.tp||[],window.tp.push(["addHandler","customEvent",e=>{e.eventName}])}),document.addEventListener(pe,()=>{window.tp=window.tp||[],window.tp.push(["addHandler","customEvent",e=>{"openLogin"===e.eventName&&document.querySelector(`header button[on="tap:${Ie}.open"]`).click()}])}),rn(),on(),an(),sn(),cn(),ln(),dn(),pn(),un(),mn(),bn(),gn(),_n(),wn(),nn(),(()=>{const e=document.querySelectorAll(`.main-wrapper #${Oe} > div > ul li a`),t=document.querySelectorAll(".article-liveblog").length>0?at:st;e.forEach(e=>{Zt(e,"click",e=>{const n=e.target.closest("ul"),i=e.target.closest("li"),r=[...n.childNodes].findIndex(e=>e===i),o=e.target.innerText,a=e.target.href;t({bulleted_list_text:o,bulleted_list_url:a,bulleted_list_position:r+1})})})})(),vn(),document.addEventListener(pe,()=>{window.tp=window.tp||[],window.tp.push(["addHandler","customEvent",({eventName:e})=>{"join-to-read-click-register"===e&&localStorage.setItem("returnUrl",window.location.href)}])}),fn(),document.querySelectorAll('[data-component=NewsletterGroups] input[type="checkbox"]').forEach(e=>{e.addEventListener("change",e=>{We(`newsletter_prefs_${e.target.checked?"":"un"}subscribe`,{newsletter:e.target.name})})}),document.querySelectorAll('[data-component="Newsletter"] input[type="checkbox"]').forEach(e=>{e.addEventListener("change",e=>{We(`newsletter_prefs_${e.target.checked?"":"un"}subscribe`,{newsletter:e.target.name})})}),document.querySelectorAll(".newsletter-component").forEach(e=>{e.querySelector("button").addEventListener("click",t=>{t.target.disabled||We("newsletter_lite_reg_signup",{newsletter:e.dataset.newsletterKey})})}),hn(),yn(),kn(),Sn(),On(),In(),xn(),An(),document.addEventListener(pe,()=>{window.tp=window.tp||[],window.tp.push(["addHandler","customEvent",({eventName:e})=>{"click-confirm-subscription"===e&&window.scrollTo(0,0)}])}),Dn(),Ln(),Pn(),(()=>{let e=window.innerWidth>=Tt,t=window.innerWidth{window.innerWidth>=Tt&&!e?(e=!0,ct({components_list:window.digitalData.desktop_components_list})):window.innerWidth{const e=document.getElementById("MegaMenuButton");Zt(e,"click",lt)})(),Mn(),Nn(),Un(),Bn(),Gn(),Vn(),Jn(),(()=>{const e=document.getElementById("header-mobile-support-button"),t=document.getElementById("header-laptop-support-button"),n=document.getElementById("support-drawer-button-amp");[e,t,document.getElementById("reg-login-button-support"),n].forEach(e=>{null==e||e.addEventListener("click",Jt)})})(),zn(),tn(),qn()},Hn="event7",Fn="event20",Yn="event21",Kn="event23",Qn="event24",Xn="event27",Zn="event34",ei="event37",ti="event68",ni="event78",ii="event85",ri="event86",oi="event87",ai="event108",si="event99",ci="event110",li="prop1",di="prop2",pi="prop3",ui="prop5",mi="prop6",bi="prop7",gi="prop8",_i="prop9",wi="prop10",vi="prop11",fi="prop12",hi="prop13",yi="prop14",ki="prop15",Si="prop16",Oi="prop19",Ii="prop20",Pi="prop21",Ei="prop22",ji="prop23",xi="prop24",Ai="prop25",Di="prop26",Li="prop27",Ti="prop28",Ci="prop30",$i="prop31",Ri="prop32",Mi="prop34",Ni="prop36",Ui="prop37",Bi="prop38",Gi="prop39",Vi="prop40",Ji="prop41",zi="prop42",qi="prop43",Wi="prop44",Hi="prop45",Fi="prop46",Yi="prop47",Ki="prop48",Qi="prop49",Xi="prop50",Zi="prop64",er="prop65",tr="prop66",nr="prop67",ir="prop68",rr="prop69",or="prop70",ar="prop71",sr="prop72",cr="prop75",lr="prop90",dr="prop42",pr="prop102",ur="prop104",mr="eVar1",br="eVar2",gr="eVar3",_r="eVar4",wr="eVar8",vr="eVar9",fr="eVar10",hr="eVar11",yr="eVar12",kr="eVar13",Sr="eVar14",Or="eVar16",Ir="eVar17",Pr="eVar19",Er="eVar20",jr="eVar21",xr="eVar22",Ar="eVar23",Dr="eVar24",Lr="eVar24",Tr="eVar26",Cr="eVar27",$r="eVar31",Rr="eVar36",Mr="eVar37",Nr="eVar39",Ur="eVar41",Br="eVar42",Gr="eVar43",Vr="eVar44",Jr="eVar45",zr="eVar46",qr="eVar47",Wr="eVar48",Hr="eVar49",Fr="eVar50",Yr="eVar51",Kr="eVar52",Qr="eVar53",Xr="eVar54",Zr="eVar64",eo="eVar67",to="eVar68",no="eVar69",io="eVar70",ro="eVar71",oo="eVar72",ao="eVar75",so="eVar89",co="eVar90",lo="eVar91",po="eVar92",uo="eVar93",mo="eVar94",bo="eVar100",go="eVar96",_o="eVar97",wo="eVar42",vo="eVar102",fo="eVar105",ho="eVar104",yo="__ADOBE__",ko=e=>sessionStorage.getItem(`${yo}${e}`),So=(e,t)=>sessionStorage.setItem(`${yo}${e}`,t),Oo=["subscription_package","subscription_length","subscription_price","subscribe_button_version","initial_selected_package"],Io="marketing_opt_in",Po=e=>{let{subscription_package:t,subscription_length:n,subscription_price:i,subscribe_button_version:r,initial_selected_package:o}=e,a=At(e,Oo);return Object.fromEntries([[Gr,t],[Vr,n],[Jr,i],[Fr,r],...Object.keys(a).includes(Io)?[[Wr,a[Io]?"Opt in":"Opt out"]]:[],[co,o]].filter(([,e])=>void 0!==e))},Eo=e=>`D=v${e.slice(4)}`,jo=(e,t={},n=[],i=window[JSGlobals.ADOBE_ANALYTICS_OBJECT])=>{const r=[],o={};n.length&&(r.push("events"),o.linkTrackEvents=n.join(","),o.events=o.linkTrackEvents);const a=Object.fromEntries(Object.entries(t).filter(([,e])=>void 0!==e)),s=[...r,...Object.keys(a)];s.length&&(o.linkTrackVars=s.join(",")),Object.entries(a).forEach(([e,t])=>{o[e]=t}),i.tl(!0,"o",e,o)};function xo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function Ao(e){for(var t=1;t{jo("Adblock Detected",{[Rr]:"Native",[Br]:"Adblock Detected",[Ni]:Eo(Rr),[zi]:Eo(Br)},["event105"])},article_bookmark:e=>{jo("Article Bookmark",{[Ii]:e.article_id},["event17"])},article_bulleted_list_click:e=>{So("link_click_label","Article Bullet Related Link"),So("link_click_position",e.bulleted_list_position)},article_share:e=>{jo("Article Share",{[vr]:e.article_id,[Pr]:e.article_category,[Br]:e.share_provider,[oo]:e.share_provider,[_i]:Eo(vr),[Oi]:Eo(Pr),[zi]:Eo(Br),[sr]:Eo(oo)},["event10","event41"])},article_topic_tag_click:e=>{So("link_click_label","Article Topic Tag Link"),So("topic_tag",e.tag)},auto_renewal_off:()=>{jo("Auto Renewal Off",{},["event29"])},blog_post_article_link_click:e=>{So("link_click_label","Live Blog In-line Article Link"),So("link_click_position",e.article_link_position)},burger_menu_click:()=>{jo("Burger Menu Click",{},["event80"])},change_payment_method:e=>{jo("Payment Method Selected",Ao(Ao({},Po(e)),{},{[co]:e.initial_selected_package,[lo]:e.name_form_field,[qi]:Eo(Gr),[Wi]:Eo(Vr),[Hi]:Eo(Jr)}),["event75"])},change_subscription_package:e=>{jo("Subscription Package Changed",Ao(Ao({},Po(e)),{},{[qi]:Eo(Gr),[Wi]:Eo(Vr),[Hi]:Eo(Jr)}),["event76"])},comment:e=>{jo("Article Comment",{[_i]:e.article_id},["event12"])},comment_tab_click:e=>{jo("Article Comment Tab Click",{[Ur]:"D=pageName",[Br]:"Article Comment Tab",[_i]:e.article_id,prop31:"Article Comment Tab",[Ji]:"D=pageName",[zi]:Eo(Br)},["event43"])},contextual_inline_click:()=>{So("link_click_label","Article in-line Link")},contextual_inline_topic_click:()=>{So("topic_link_click_label","Article in-line Link (Topic Page)")},contextual_inline_non_topic_click:()=>{So("topic_link_click_label","Article in-line Link (Non-Topic Page)")},donation:e=>{jo("Donation Click",Ao(Ao({},Po(e)),{},{[co]:e.initial_selected_package,[qi]:Eo(Gr),[Wi]:Eo(Vr),[Hi]:Eo(Jr)}),[Zn])},donation_apple_pay:e=>{jo("Donation Click - Apple Pay",Ao(Ao({},Po(e)),{},{[co]:e.initial_selected_package,[qi]:Eo(Gr),[Wi]:Eo(Vr),[Hi]:Eo(Jr)}),[Zn])},donation_article_bottom:()=>{jo("Donation Click (Article Bottom)",{},["event36"])},edition_link_click:e=>{So("link_click_label","Edition Link"),So("link_click_text",e.edition_link_text)},expandable_prompt_cta_premium:()=>{jo("Premium Article Gate CTA Click Premium",{},[Yn])},expandable_prompt_cta_tide:()=>{jo("Premium Article Gate CTA Click Tide",{},[Yn])},focus_reg_subscription_field:(e,t=document.location.pathname)=>{jo("Form Field details",Ao({[lo]:e.name_form_field},t.includes("/register")?Ao(Ao({},Po(e)),{},{[co]:e.initial_selected_package,[qi]:Eo(Gr),[Wi]:Eo(Vr),[Hi]:Eo(Jr)}):{}),["event74"])},gallery_view:()=>{jo("Gallery Image View",{[Pi]:"Gallery"},["event3"])},indy100_trending_link_click:e=>{jo("RHR Indy100 Trending",{[Ji]:"D=pageName",[zi]:Eo(Br),[nr]:e.indy100_trending_link_position},[Fn])},ip_ebook_click:e=>{jo("My Independent Premium eBooks Click",{[Br]:e.ebook_title,[zi]:Eo(Br)},["event69"])},ip_event_click:e=>{jo("My Independent Premium Event Click",{[Br]:e.event_name,[zi]:Eo(Br)},["event70"])},ip_tab_click:e=>{jo("My Independent Premium Event Click",{[ui]:e.tab_name,[Br]:`IP ${e.tab_name}`,[zi]:Eo(Br)},["event18"])},liveblog_bulleted_list_click:e=>{So("link_click_label","Live Blog Article Bullet Related Link"),So("link_click_position",e.bulleted_list_position)},liveblog_key_points_click:e=>{jo("Liveblog Key Points Click",{[Ur]:e.liveblog_key_points_destination,[Br]:"Liveblog Key Points",[eo]:e.liveblog_key_points_position,[Ji]:Eo(Ur),[zi]:Eo(Br),[nr]:Eo(eo)},["event60"])},load_more_comments:e=>{jo("Load More Comments",{[_i]:e.article_id},["event53"])},login_success:()=>{jo("Login Success",{},["event9"])},main_nav_link_click:e=>{So("link_click_label","Visible Nav"),So("link_click_text",`${e.main_nav_link_category}:${e.main_nav_link_text}`),So("link_click_position",e.main_nav_link_position)},marketing_opt:e=>{jo("Marketing Opt Changed",Ao(Ao({},Po(e)),{},{[qi]:Eo(Gr),[Wi]:Eo(Vr),[Hi]:Eo(Jr),[Ki]:Eo(Wr)}),[Qn]),So("marketing_opt_in",e.marketing_opt_in)},mega_menu_link_click:e=>{So("link_click_label","Burger Nav"),So("link_click_text",`${e.mega_menu_link_category}:${e.mega_menu_link_text}`)},most_commented_section_click:e=>{jo("Most Commented Section Click",{[Ur]:e.most_commented_section_link_pagename,[Br]:"Most Commented (Section Page)",[eo]:e.most_commented_section_link_position,[Ji]:Eo(Ur),[zi]:Eo(Br),[nr]:Eo(eo)},[ni])},most_popular_link_click:e=>{So("link_click_label","RHR Most Popular"),So("link_click_position",e.most_popular_link_position)},bulletin_feed_link_click:e=>{So("link_click_label","RHR Bulletin"),So("link_click_position",e.bulletin_link_position)},most_watched_click:e=>{So("link_click_label",e.mostWatched_link_text),So("video_algorithm",e.mostWatched_algorithm)},newsletter_lite_reg_signup:e=>{jo("Newsletter Inline Signup Prompt",{[Mr]:e.newsletter,[Ui]:Eo(Mr)},["event63"])},newsletter_page_signup_button_click:e=>{jo("Newsletter Page Signup",{[Mr]:e.newsletter,[Ui]:Eo(Mr)},["event66"])},newsletter_prefs_subscribe:e=>{jo("Newsletter Prefs Subscribe",{[Mr]:e.newsletter,[Ui]:Eo(Mr)},["event64"])},newsletter_prefs_unsubscribe:e=>{jo("Newsletter Prefs Unsubscribe",{[Mr]:e.newsletter,[Ui]:Eo(Mr)},["event65"])},notification_prompt_accept:()=>{jo("Web Notification Opt In",{[Br]:"Yes please",[zi]:"Yes please"},["event45"])},notification_prompt_dismiss:()=>{jo("Web Notification Dismiss",{[Br]:"Not now",[zi]:"Not now"},["event46"])},notification_prompt_load:e=>{jo("Web Notification Prompt Load",{[Dr]:e.components_list,[xi]:Eo(Dr)},["event44"])},next_click_component_load:e=>{jo("Click Right Button Load",{[Dr]:e.components_list,[xi]:Eo(Dr)},["event4"])},payment_details_failed:e=>{jo("Payment Form Submit Failed",Ao(Ao({},Po(e)),{},{[qi]:Eo(Gr),[Wi]:Eo(Vr),[Hi]:Eo(Jr)}),["event32"])},payment_details_success:e=>{jo("Payment Form Submit Success",Ao(Ao({},Po(e)),{},{[qi]:Eo(Gr),[Wi]:Eo(Vr),[Hi]:Eo(Jr)}),[Xn,"event28"])},payment_form_loaded:e=>{const t=(()=>{const e=document.referrer;if(e){const t=new URL(e);if("/subscribe"===t.pathname)return t.searchParams}if("/subscribe"===document.location.pathname)return new URL(document.location.href).searchParams})();jo("Payment Form Loaded",Ao(Ao({},Po(e)),{},{[qi]:Eo(Gr),[Wi]:Eo(Vr),[Hi]:Eo(Jr)},t?{[Yr]:t.get("itm_source"),[Kr]:t.get("itm_medium"),[Qr]:t.get("itm_campaign"),[Xr]:t.get("itm_term")}:{}),["event25"])},popular_videos_link_click:e=>{So("link_click_label","RHR Popular Videos"),So("link_click_position",e.popular_videos_link_position)},premium_article_cta_premium:()=>{jo("Premium Article Gate CTA Click Premium",{},[Yn])},premium_article_cta_tide:()=>{jo("Premium Article Gate CTA Click Premium",{},[Yn])},premium_comment:e=>{jo("Article Premium Comment",{[_i]:e.article_id},["event16"])},read_more_articles_link_click:e=>{So("link_click_label","Related Articles"),So("link_click_position",e.read_more_link_position)},experience_executed:e=>{jo("Piano Experience Impression",{[uo]:e.experience_name,[mo]:e.variant},["event84"])},registration_failed:()=>{},registration_success:e=>{const t=[Kn];e.marketing_opt_in&&t.push(Qn),e.promo_code_applied&&t.push("event26"),jo("Registration Success",Ao(Ao({},Po(e)),{},{[qi]:Eo(Gr),[Wi]:Eo(Vr),[Hi]:Eo(Jr),[Ki]:Eo(Wr)}),t)},registration_success_standard:e=>{const t=[Kn];e.marketing_opt_in&&t.push(Qn),jo("Registration Success",Ao({},Po(e)),t)},registration_wall_click:({registration_wall_label:e,is_register_wall_with_register_form:t})=>{if("Register Now"===e){if(!t)return void So("link_click_label",e)}else{if("Dismiss"===e)return void jo("Registration close button click",{[Br]:e,[zi]:Eo(Br)},["event119"]);if("I'll try later"!==e&&"Log In"!==e)return}jo("Registration Gating Prompt Click",{[Br]:e,[zi]:Eo(Br)},[ti])},related_articles_link_click:e=>{const t=e.related_articles_autolink?"Auto":e.related_articles_topiclink?"Audience":"Manual",n=`Related Articles - ${t}, Related Articles ${t} Embed Position ${e.related_embed_position}`;So("link_click_label",n),So("link_click_position",e.related_articles_link_position),e.related_articles_algorithm&&So("video_algorithm",`Related Articles Video ${e.related_articles_algorithm}`);const i=`Related Articles ${t} Embed Position ${e.related_embed_position}`;So("link_click_related_embed_position",i)},search:e=>{jo("Search",{[_r]:e.search_term,[zi]:Eo(_r)},["event1"])},selling_page_loaded:()=>{jo("Piano Selling Page loaded",{},["event8"])},show_comments_click:e=>{jo("Article Show Comments",{[_i]:e.article_id,[eo]:e.show_comments_link_position,[nr]:Eo(eo)},["event42"])},sponsored_features_link_click:e=>{So("link_click_label","RHR Sponsored Features"),So("link_click_position",e.sponsored_features_link_position)},subscription_button_click:e=>{jo("Join Premium Button Click",Ao(Ao({},Po(e)),{},{[Fr]:e.subscribe_button_version,[qi]:Eo(Gr),[Wi]:Eo(Vr),[Hi]:Eo(Jr),[Xi]:Eo(Fr)},e.selling_page_variant_click&&{[bo]:e.selling_page_variant_click}),[Yn])},subscription_persistent_button_click:e=>{jo("Subscription Persistent Button Click",Ao(Ao({},Po(e)),{},{[qi]:Eo(Gr),[Wi]:Eo(Vr),[Hi]:Eo(Jr)},e.selling_page_variant_click&&{[bo]:e.selling_page_variant_click}),["event120"])},taboola_feed_link_click:()=>{},temporary_link_click:e=>{So("link_click_label","Temp Link"),So("link_click_text",e.temp_link_text)},update_components_list:e=>{jo("Update components list",{[Dr]:e.components_list,[xi]:Eo(Dr)},[])},voucher_ticker_link_click:e=>{jo("Voucher Ticker Link Click",{[Br]:e.voucher_ticker_text,[zi]:Eo(Br)},["event82"])},voucher_ticker_arrow_click:()=>{jo("Voucher Ticker Arrow Click",{},["event83"])},webpush_signup_click:()=>{jo("Get Started Clicks (Web Push Landing Page)",{[zi]:"Get Started",[Br]:"Get Started"},["event106"])},price_comparison_list_buy_now_click:({name:e,price:t})=>{jo("Price Comparison Buy Link Click",{[Br]:"Price Comparison - Buy Link Click",[zi]:Eo(Br),[go]:e,[_o]:t},["event93"])},price_comparison_buttons_buy_now_click:({isLeft:e,index:t,name:n,price:i})=>{const r=`${e?"Left":"Right"} CTA Button - Position ${t++}`;jo("Price Comparison Buttons Buy Now Click",{[Br]:r,[zi]:Eo(Br),[go]:n,[_o]:i},["event107"])},product_carousel_buy_now_click:({name:e,price:t,index:n})=>{const i="Top Picks Carousel - Buy Now - Position "+n++;jo("Comparison Carousel Buy Link Click",{[Br]:i,[zi]:Eo(Br),[go]:e,[_o]:t},[ai])},product_carousel_read_review_click:({name:e,price:t})=>{jo("Comparison Carousel/Modal Read Review Link Click",{[Br]:"Comparison Carousel - Read Review Link Click",[zi]:Eo(Br),[go]:e,[_o]:t},[si])},product_comparison_checkbox_click:({name:e,price:t})=>{jo("Comparison Carousel Checkbox Click",{[Br]:"Comparison Carousel - Compare Checkbox Selected",[zi]:Eo(Br),[go]:e,[_o]:t},["event100"])},product_comparison_modal_open:()=>{jo("Compare Table Pop-up",{[Br]:"Compare Table Pop-up",[zi]:Eo(Br)},["event101"])},product_comparison_modal_buy_now_click:({name:e,price:t})=>{jo("Compare Modal Buy Link Click",{[Br]:"Compare Modal - Buy Link Click",[zi]:Eo(Br),[go]:e,[_o]:t},[ai])},product_comparison_modal_read_review_click:({name:e,price:t})=>{jo("Comparison Carousel/Modal Read Review Link Click",{[Br]:"Comparison Carousel - Read Review Link Click",[zi]:Eo(Br),[go]:e,[_o]:t},[si])},affiliate_link_click:e=>{jo("Affiliate Link Click",{[Br]:e.affiliate_link_click_text,[zi]:Eo(Br)},["event79"])},registration_gating_show_prompt:()=>{jo("Registration Show Prompt",{},["event62"])},registration_gating_first_visit:e=>{jo("Registration Gating first visit",{[so]:e.reg_gating})},account_overview_tab_my_details:()=>{jo("Account Overview Tab - My Details",{pageName:"Account Overview Tab - My Details"},[ii])},account_overview_tab_change_password:()=>{jo("Account Overview Tab - Change Password",{pageName:"Account Overview Tab - Change Password"},[ii])},account_overview_tab_payments_and_billing:()=>{jo("Account Overview Tab - Payments & Billing",{pageName:"Account Overview Tab - Payments & Billing"},[ii])},account_overview_tab_manage_subscription:()=>{jo("Account Overview Tab - Manage Subscription",{pageName:"Account Overview Tab - Manage Subscription"},[ii])},account_cancellation_barrier_1:()=>{jo("Cancellation journey - Barrier 1",{pageName:"Cancellation journey - Barrier 1",[Br]:"Cancel Subscription - Barrier 1",[zi]:Eo(Br)},[ri])},account_cancellation_barrier_2:()=>{jo("Cancellation journey - Barrier 2",{pageName:"Cancellation journey - Barrier 2",[Br]:"Cancel Subscription - Barrier 2",[zi]:Eo(Br)},[ri])},account_cancellation_keep_subscription:()=>{jo("Cancellation journey - Barrier 1",{pageName:"Cancellation journey - Barrier 1",[Br]:"Keep Subscription - Barrier 1",[zi]:Eo(Br)},[ri])},account_cancellation_take_this_offer:()=>{jo("Cancellation journey - Barrier 2",{pageName:"Cancellation journey - Barrier 2",[Br]:"Take this Offer - Barrier 2",[zi]:Eo(Br)},[ri])},account_cancellation_continue_to_payment:()=>{jo("Cancellation journey - Thanks",{pageName:"Cancellation journey - Thanks",[Br]:"Continue to Payment - Thank you",[zi]:Eo(Br)},[ri])},account_cancellation_reactivate_subscription:()=>{jo("Cancellation journey - Thanks",{pageName:"Cancellation journey - Thanks",[Br]:"Reactivate Subscription",[zi]:Eo(Br)},[ri])},stage_barrier_1:()=>{jo("Cancellation journey - Barrier 1",{pageName:"Cancellation journey - Barrier 1"},[oi])},stage_barrier_2:()=>{jo("Cancellation journey - Barrier 2",{pageName:"Cancellation journey - Barrier 2"},[oi])},subscribe_persistent_cta_impression:e=>{jo("Subscription Persistent CTA Impression",{[Lr]:e.persistent_cta},[])},support_nsc_link_click:()=>{jo("Support NSC Link Click",{[Br]:"Support NSC Link Click",[zi]:Eo(Br)},[ci])},support_now_encore_click:()=>{jo("Support Now Link Click - Encore Component",{[Br]:"Support Now Link Click - Encore Component",[zi]:Eo(Br)},[ci])},anchor_nav_link_click:e=>{jo("Anchor Nav Link Click",{[Br]:e.anchor_link_click_text,[zi]:Eo(Br)},["event11"])},heyflow_button_click:e=>{jo("HeyFlow Button Click",{[Br]:e.heyflow_button_click_text,[zi]:Eo(Br)},["event114"])},heyflow_screen_view:e=>{jo("HeyFlow Screen View",{[Br]:e.heyflow_screen_view_name,[zi]:Eo(Br),[vo]:e.heyflow_screen_view_number,[pr]:e.heyflow_screen_view_number},["event115"])},sourcepoint_cmp_impression:()=>{jo("SourcePoint CMP Impression",{},["event111"])},sourcepoint_cmp_click:({label:e})=>{jo("SourcePoint CMP Click",{[Br]:e,[zi]:e},["event112"])},color_mode_toggle_click:({colorMode:e})=>{jo("Color Mode Toggle Click",{[fo]:e},["event118"])},pinned_post_interaction:e=>{jo(e.action,{[wo]:e.state,[dr]:Eo(wo)},["event113"])},liveramp_api_request:e=>{jo("LiveRamp API Request",{[ho]:e.status,[ur]:Eo(ho)},["event117"])},bulletin_nav_click:e=>{So("link_click_label","Bulletin Nav"),So("link_click_text",e.clickedSection)}};const Lo="light",To="dark";let Co=function(e){return e[e.CONTINUE_WITHOUT_AGREEING=1]="CONTINUE_WITHOUT_AGREEING",e[e.OPT_IN=2]="OPT_IN",e[e.VIEW_IFRAME=4]="VIEW_IFRAME",e[e.REDIRECT=5]="REDIRECT",e[e.MICRO_PAYMENT=7]="MICRO_PAYMENT",e[e.CUSTOM_JS=9]="CUSTOM_JS",e[e.WELECT_VIDEO=10]="WELECT_VIDEO",e[e.ACCEPT_ALL=11]="ACCEPT_ALL",e[e.VIEW_PRIVACY_MANAGER=12]="VIEW_PRIVACY_MANAGER",e[e.REJECT_ALL=13]="REJECT_ALL",e[e.SAMBA_VIDEO=14]="SAMBA_VIDEO",e[e.DISMISS=15]="DISMISS",e}({});const $o=(e="itm_campaign")=>{const t=new URLSearchParams(window.location.search);if(t.has(e)){const n=t.get(e);if(n)return n}return""},Ro=()=>{var e;return!(null===(e=window.JSGlobals)||void 0===e||!e.isBulletin)},Mo="right_click",No="right_swipe",Uo=()=>{var e,t,n;return/iPhone/.test((null===(e=navigator)||void 0===e||null===(e=e.userAgentData)||void 0===e?void 0:e.platform)||(null===(t=navigator)||void 0===t?void 0:t.platform)||(null===(n=navigator)||void 0===n?void 0:n.userAgent))};const Bo=({props:e={},events:t=[]})=>{t.forEach(e=>{s_object.events=s_object.apl(s_object.events,e,",",",",!1)}),Object.entries(e).forEach(([e,t])=>{s_object[e]=t})},Go="cmp-choice",Vo=(e,t)=>{const n=sessionStorage.getItem(Go)===`${e}`;return n&&(sessionStorage.removeItem(Go),((e={})=>{We("sourcepoint_cmp_click",e)})(t)),n},Jo=()=>{const e=new URLSearchParams(window.location.search),{source:t,medium:n,campaign:i,term:r,content:o}=new Proxy(e,{get:(e,t)=>e.get(`utm_${t}`)});return t?{campaign:[`S:${t}`,`M:${n}`,`Ca:${i}`,`T:${r}`,`Co:${o}`].join("|")}:{}},zo="control",qo="variant-1",Wo="variant-2",Ho="variant-3",Fo="startsWith",Yo=new Map([["/",{name:"frontpage"}],["/contact-us",{name:"Contact Us",type:Fo}],["/jobs",{name:"Jobs",type:Fo}],["/news/code-of-conduct",{name:"Code of conduct and complaints",type:Fo}],["/service/external-contributors-policy",{name:"Code of conduct and complaints",type:Fo}],["/service/cookie-policy",{name:"Cookie policies",type:Fo}],["/service/privacy-policy",{name:"Privacy notice",type:Fo}],["/service/user-policies",{name:"User policies",type:Fo}],["/subscribe",{name:"Subscribe",featureModeName:"feat__selling_page_redesign",featureFlagVariants:{[v]:"Subscribe no app",[_]:"Subscribe - Sticky CTA"},featureModeVariants:{[zo]:"Subscribe",[qo]:"Subscribe - Redesign - v1",[Wo]:"Subscribe - Redesign - v2",[Ho]:"Subscribe - Redesign - v3"}}],["/donate",{name:"Donate",featureFlagVariants:{[y]:"Donation page no name"}}],["/subscribe/app",{name:"Subscribe - App"}],["/subscribe/register",{name:"Subscribe - Register"}],["/subscribe/login",{name:"Subscribe Login"}],["/subscribe/our-story",{name:"Subscribe - Our Story"}],[Re,{name:"Web notification Landing Page"}],["/donations",{name:"Donations",type:Fo}],["/archive",{name:"Archive",type:Fo}],["/topics-list",{name:"All topics",type:Fo}],["/vouchercodes",{name:"Voucher codes",type:Fo}],["/login",{name:"Login",type:Fo}],["/register",{name:"Register",type:Fo}],["/independent-premium",{name:"Independent Premium",type:Fo}],["/profile",{name:"Account Details",type:Fo}]]),Ko=(e,t)=>{try{for(const[t,{name:i,type:r,featureFlagVariants:o={},featureModeVariants:a={},featureModeName:s=""}]of Yo)if(r===Fo){if(e.startsWith(t))return i}else if(e===t){const e=Object.entries(o);for(const[t,n]of e)if("true"===Y(t))return n;if(s){var n;const e=null===(n=JSGlobals.featureModes)||void 0===n?void 0:n[s];if(e)return a[e]}return i}return"Channel frontpage"===t.page_type&&t.site_sections||"Topic"===t.page_type&&t.site_sections?`${t.site_sections.split(":").join("/")}/home`:"Article"===t.page_type&&t.site_sections?`${t.site_sections.split(":").join("/")}/article${t.article_id.replace(/\D/g,"")}`:"Video Article"===t.page_type&&t.site_sections?`${t.site_sections.split(":").join("/")}/article${t.article_id}`:e}catch(t){return console.warn("getPageName() error",t),e}},Qo=(e=!0)=>{const t={width:window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,height:window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight};return e?`${t.width}x${t.height}`:t};function Xo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function Zo(e){for(var t=1;t{try{(e=>{const{auto_refresh:t,site_sections:n,page_domain:i,page_path:r,page_query:o,page_type:a,page_previous_url:s,section_type:c,components_list:l,commercial_campaign:d,logged_in_status:p,uid:u,registration_date:m,user_status:b,main_js_version:g}=digitalData,_=null==n?void 0:n.split(":"),w=ko("link_click_label"),v=ko("link_click_position");switch(Bo({events:[..."Topic"===a?["event2"]:[],...t?["event6"]:[]],props:Zo(Zo(Zo(Zo(Zo({pageName:Ko(e,digitalData)},_&&{hier1:_.join(","),channel:_[0],[mr]:_.slice(0,2).join(":"),[br]:_.slice(0,3).join(":")}),{},{[gr]:i,[wr]:a,[yr]:n,[Or]:r,[Ir]:o,[jr]:s,[Dr]:l,[$r]:Ge("locale"),[Rr]:"Native",[Nr]:d,[no]:p,[io]:u,[ro]:m,[ao]:b,[Zr]:g,[li]:Eo(mr),[di]:Eo(br),[pi]:i,[gi]:a,[Oi]:c,[xi]:Eo(Dr),[$i]:Eo($r),[Ni]:Eo(Rr),[Gi]:Eo(Nr),[Vi]:"D=g"},w&&{[Ur]:"D=pageName",[Ji]:"D=pageName",[Br]:w,[zi]:Eo(Br),[eo]:v,[nr]:Eo(eo)}),{},{[rr]:Eo(no),[or]:Eo(io),[ar]:Eo(ro),[cr]:Eo(ao)},Uo()&&{[ir]:Qo(),[to]:Qo()}),JSGlobals.httpStatusCode>=400&&{pageName:"",pageType:"errorPage"}),{},{[Zi]:Eo(Zr)},Jo())}),w){case"Visible Nav":Bo({events:[ei],props:{[mi]:ko("link_click_text"),[bi]:"Visible Nav"}});break;case"Burger Nav":Bo({events:[ei],props:{[Ri]:ko("link_click_text"),[bi]:"Burger Nav"}});break;case"Bulletin Nav":Bo({events:[ei],props:{[mi]:ko("link_click_text"),[bi]:"Bulletin Nav"}});break;case"Temp Link":Bo({events:[ei],props:{[Mi]:ko("link_click_text")}});break;case"RHR Most Popular":Bo({events:["event19"]});break;case"RHR Popular Videos":Bo({events:["event30"]});break;case"RHR Sponsored Features":Bo({events:["event31"]});break;case"RHR Indy100 Trending":Bo({events:[Fn]});break;case"RHR Bulletin":Bo({events:["event121"]});break;case"Article in-line Link":Bo({events:["event39"]});break;case"Article Topic Tag Link":Bo({events:["event40"],props:{[Bi]:ko("topic_tag")}});break;case"Article Bullet Related Link":case"Live Blog Article Bullet Related Link":Bo({events:["event57"]});break;case"Live Blog In-line Article Link":Bo({events:["event58"]});break;case"Most Commented Section Click":Bo({events:[ni]});break;case"Register Now":Bo({events:[ti]});break;case"Most Watched":Bo({events:["event51"],props:{[qr]:ko("video_algorithm"),[Yi]:Eo(qr)}});break;case"Edition Link":Bo({events:["event81"],props:{[$i]:ko("link_click_text")}})}const f=ko("link_click_related_embed_position");if(null!=w&&w.startsWith("Related Articles - ")&&Bo({events:["event13"],props:Zo({[Cr]:f,[Li]:Eo(Cr)},w.startsWith("Related Articles - Auto")&&{[Tr]:ko("video_algorithm"),[Di]:Eo(Tr)})}),null!=w&&w.startsWith("Next Article")){const e=$o();e.startsWith(Mo)&&Bo({events:["event5"]}),e.startsWith(No)&&Bo({events:["event15"]})}const h=ko("topic_link_click_label");if(h)switch(Bo({props:{[Br]:h,[zi]:Eo(Br)}}),h){case"Article in-line Link (Topic Page)":Bo({events:["event72"],props:{[zi]:"Article in-Line Click (Topic Page)"}});break;case"Article in-line Link (Non-Topic Page)":Bo({events:["event73"],props:{[zi]:"Article in-Line Click (Non-Topic Page)"}})}})(e)}catch(e){console.error("Something went wrong building page generic tracking vars",e)}switch(e){case"/":Bo({props:{hier1:"news",channel:"news"}});break;case"/subscribe/confirmation":{const e=Ze(He);if(Object.values(e).every(e=>void 0===e))return;Bo({events:[Xn],props:Zo(Zo({},Po(e)),{},{[qi]:Eo(Gr),[Wi]:Eo(Vr),[Hi]:Eo(Jr)})});break}case"/donate":{const e="true"===Ge("feat__support_now_donate_copy");Bo({events:["event110"],props:{[Br]:e?"Donate":"Support Now",[zi]:Eo(Br)}});break}case"/register":case"/subscribe/register":{const e=Ze(He);Bo({events:["event22"],props:Zo(Zo({},Po(e)),{},{[qi]:Eo(Gr),[Wi]:Eo(Vr),[Hi]:Eo(Jr),[Xi]:Eo(Fr)})});break}case"/thank-you":{const e="true"===ko("marketing_opt_in");Bo({events:[Kn,...e?[Qn]:[]],props:{[Wr]:e?"Opt in":"Opt out",[Ki]:Eo(Wr)}});break}case"/subscribe/payment":if("/subscribe/register"===digitalData.page_previous_path){const e=Ze(He),t="true"===ko("marketing_opt_in");Bo({events:[Kn,...t?[Qn]:[]],props:Zo(Zo({},Po(e)),{},{[Ki]:Eo(Wr),[qi]:Eo(Gr),[Wi]:Eo(Vr),[Hi]:Eo(Jr),[lr]:Eo(co),[Xi]:Eo(Fr)})})}break;case"/subscribe/consent":Vo(Co.CUSTOM_JS,{label:"Reject All"});break;case Me:"true"===new URLSearchParams(window.location.search).get("isConsentOrPay")&&Vo(Co.CUSTOM_JS,{label:"Log In"})}if(Ro()){var t;const e=null!==(t=window.localStorage.getItem("color-mode"))&&void 0!==t?t:Lo,r=(n=e,null!==(i={[Lo]:"Light mode",[To]:"Dark mode"}[n])&&void 0!==i?i:"Light mode");Bo({props:{[fo]:r}})}var n,i;e.startsWith("/tv/")&&Bo({events:[Hn],props:{[hr]:digitalData.video_title,[Hr]:"Independent Video Hub",[vi]:Eo(hr),[fi]:digitalData.article_page_filename,[Qi]:Eo(Qi),[_i]:Eo(vr),[wi]:Eo(fr),[hi]:Eo(kr),[ki]:digitalData.lead_media_item,[Si]:digitalData.first_published_date,[Oi]:Eo(Pr),[Ii]:Eo(Er),[Ei]:Eo(xr),[ji]:Eo(Ar),[Bi]:digitalData.article_topic_tags,[er]:digitalData.published_date,[tr]:digitalData.article_premium_status,[vr]:digitalData.article_id,[fr]:digitalData.article_publication_time,[kr]:digitalData.article_author,[Pr]:digitalData.article_category,[Er]:digitalData.content_source,[xr]:digitalData.word_count,[Ar]:digitalData.internal_links_count}}),"Article"===digitalData.page_type&&Bo({props:{[hr]:digitalData.article_title,[kr]:digitalData.article_author,[Sr]:digitalData.topic_pages,[Pr]:digitalData.article_category,[Er]:digitalData.content_source,[xr]:digitalData.word_count,[Ar]:digitalData.internal_links_count,[Dr]:`${digitalData.components_list}${digitalData.mostWatched_algorithm?`,4,${"no-love"===digitalData.mostWatched_algorithm?5:""}`:""}`,[Nr]:digitalData.commercial_campaign,[zr]:digitalData.mostWatched_paragraph_number,[po]:digitalData.affiliate_links_count,[fr]:digitalData.article_publication_time,[vr]:digitalData.article_id,[_i]:Eo(vr),[wi]:Eo(fr),[vi]:Eo(hr),[fi]:digitalData.article_page_filename,[hi]:Eo(kr),[yi]:Eo(Sr),[ki]:digitalData.lead_media_item,[Si]:digitalData.first_published_date,[Oi]:Eo(Pr),[Ii]:Eo(Er),[Ei]:Eo(xr),[ji]:Eo(Ar),[xi]:Eo(Dr),[Ai]:digitalData.product_carousel_failure,[Ti]:digitalData.article_modification_date,[Ci]:digitalData.article_swap,[Bi]:digitalData.article_topic_tags,[Gi]:Eo(Nr),[Fi]:Eo(zr),[er]:digitalData.published_date,[tr]:digitalData.article_premium_status},events:[Hn,..."true"===digitalData.auto_gallery_view?["event14"]:[],...digitalData.homepage_section?["event46"]:[]]}),((e=window[JSGlobals.ADOBE_ANALYTICS_OBJECT])=>{e.t()})(),Object.keys(sessionStorage).forEach(e=>{e.startsWith(yo)&&sessionStorage.removeItem(e)})},ta=()=>{!function(){const e=JSGlobals.adobe.reportSuiteId,t=s_gi(e);t.trackingServer=JSGlobals.adobe.trackingServer,t.trackingServerSecure=JSGlobals.adobe.trackingServerSecure,t.server=`www.${JSGlobals.domain}`,t.currencyCode="GBP",t.charSet="UTF-8",t.cookieDomainPeriods=(location.hostname.match(RegExp("\\.","g")||[])||[]).length,t.trackDownloadLinks=!0,t.trackExternalLinks=!0,t.trackInlineStats=!0,t.linkDownloadFileTypes="exe,zip,wav,mp3,mov,mpg,avi,wmv,pdf,doc,docx,xls,xlsx,ppt,pptx,epub",t.linkInternalFilters=["javascript:",".independent.co.uk",".indy100.com",".independentespanol.com",".the-independent.com"].join(),t.linkTrackVars="None",t.linkTrackEvents="None",t.linkLeaveQueryString=!0,"undefined"!=typeof Visitor&&(t.visitor=Visitor.getInstance("28280C0F53DB09900A490D45@AdobeOrg",{trackingServer:t.trackingServer,trackingServerSecure:t.trackingServerSecure,doesOptInApply:!0,previousPermissions:{ecid:!0,aa:!0},isOptInStorageEnabled:!0})),t.usePlugins=!0,t.doPlugins=function(e){const t=["eVar16","eVar17","eVar36","prop3","prop36"];for(let n=0;n{const t=Do[e.detail.eventName];t?t(Ao(Ao({},window.digitalData),e.detail.data||{})):console.warn("Adobe event not recognised!",e.detail.eventName)}),Wn(),ea(document.location.pathname),document.body.dispatchEvent(new CustomEvent(_e))},na=(e=!1)=>{var t;const{url:n}=(null===(t=window.JSGlobals)||void 0===t||null===(t=t.betting)||void 0===t?void 0:t.analytics)||{};var i;n||console.error("No betting analytics tag URL",{cause:null===(i=window.JSGlobals)||void 0===i?void 0:i.betting});e&&n&&window.setTimeout(()=>{ae(n)},5e3)},ia=(e=!1)=>{e&&setTimeout(()=>{(async()=>{try{await ae("https://p.cpx.to/p/11667/px.js")}catch(e){re("Failed to load Captify script",e)}})()},3e3)},ra=e=>{(window._cbv||(window._cbv=[])).push(e)},oa=async()=>{try{await fetch("https://www.npttech.com/advertising.js")}catch{return We("adblock_detected"),!0}return!1};const aa=function(...e){return t=>e.reduce((e,t)=>t(e),t)};var sa=n(4795),ca=n.n(sa);const la=["components_list"];function da(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function pa(e){for(var t=1;t{let{components_list:t}=e,n=At(e,la);const i="desktop_components_list"in n?n.desktop_components_list:"",r="mobile_components_list"in n?n.mobile_components_list:"",a=(window.innerWidth>999?i:r)||null,s=pa(pa({components_list:[...(null==t?void 0:t.split(","))||[],...(null==a?void 0:a.split(","))||[]].join(","),desktop_components_list:i,mobile_components_list:r,page_title:document.title,page_query:document.location.search,page_name:document.location.pathname},ua&&{page_previous_url:`${ua.protocol}//${ua.host}${ua.pathname}`,page_previous_path:ua.pathname,page_previous_query:ua.search}),{},{timestamp:ca()().format("YYYY:MM:DD:HH:mm:ss"),uid:Ge(o),registration_date:Ge("esi_registration_date")});return pa(pa({},n),s)},ba=()=>{var e;const t=(null===(e=document.getElementById("analytics-data"))||void 0===e?void 0:e.textContent)||"{}";return JSON.parse(t)},ga=e=>{var t;return null===(t=window.JSGlobals)||void 0===t||null===(t=t.featureFlags)||void 0===t?void 0:t[e]},_a=(e=!1)=>{ga("feat__fullstory")&&e&&window.setTimeout(()=>{ae("/js/fullstory.raw.js")},3e3)},wa=(e,t)=>new Promise(n=>{if(e){if(0===document.querySelectorAll(`#searchBox${t} #___gcse_0`).length){ae(`https://cse.google.com/cse.js?cx=${e}`,{async:!0});const i=function(){google.search.cse.element.render({div:`searchBox${t}`,tag:"searchbox",gname:`searchbox-only${t}`},{div:`quickSearchresults${t}`,tag:"searchresults-only",gname:`searchbox-only${t}`}),n()},r=function(){google.setOnLoadCallback(i,!0)};window.__gcse=Object.assign(window.__gcse,{parsetags:"explicit",callback:r})}}else n()}),va=e=>{const t={},n="true"===Ge(d),i=!e,r=!!Ge(o);return console.log("%cMETERED: %s","background:yellow;color:purple;font-size:2em",i),console.log("%cSUBSCRIBED: %s","background:yellow;color:purple;font-size:2em",n),console.log("%cLOGGED_IN: %s","background:yellow;color:purple;font-size:2em",r),t.hasAccess=r&&(n||i),t.subscribed=n,t},fa=e=>{const t=document.createElement("a");return t.href=e,!("https:"!==t.protocol||!/(^|\.)google\.(com?|[a-z]{2}|com?\.[a-z]{2}|cat)$/.test(t.hostname))},ha=`${window.location.origin}/iframe/registration_widget`,ya=document.getElementById("open-drawer-button"),ka=document.referrer,Sa=location.search,Oa=Date.now(),Ia=((e,t,n,i)=>(fa(e)||fa(t))&&((e,t)=>!(!e.gaa_at||!e.gaa_n||!e.gaa_sig||!e.gaa_ts||parseInt(e.gaa_ts,16){const t={};return e.substring(1).split("&").forEach(e=>{const n=e.split("=");t[n[0]]=n[1]}),t})(n),i))(ka,new URLSearchParams(window.location.search).get("referrer"),Sa,Oa),Pa={};let Ea=new Promise(e=>{Pa.resolve=e});(()=>{if("true"!==Ge(g))return new Promise(e=>{Ia?(ae(["https://news.google.com/swg/js/v1/swg-gaa.js"]),ae(["https://news.google.com/swg/js/v1/swg.js"],{attributes:[["subscriptions-control","manual"]]}),ae(["https://apis.google.com/js/platform.js"]),(self.SWG=self.SWG||[]).push(async t=>{var n,i;const r=({entitlement:e,isUserRegistered:n})=>{t.setShowcaseEntitlement({entitlement:e,isUserRegistered:n}),ne("entitlement: ",e," , isUserRegistered: ",n)};if(t.init(null===(n=JSGlobals)||void 0===n?void 0:n.showcaseProductId),t.setOnNativeSubscribeRequest(()=>{ne("%c%s","background:dodgerblue;color:yellow;padding:10px;","subscribe event"),localStorage.setItem("returnUrl",window.location.href),window.location="/subscribe"}),null===(i=JSGlobals)||void 0===i||null===(i=i.article)||void 0===i||!i.premium)return void r({entitlement:"EVENT_SHOWCASE_UNLOCKED_FREE_PAGE",isUserRegistered:Boolean(Ge(c))});const o=await(async()=>{try{const e=await qt("fetch-user-state");return await e.json()}catch(e){return{}}})();o.metering?(ne("user state received"),t.getEntitlements(o),t.setOnEntitlementsResponse(async t=>{let n=await Ea;const{hasAccess:i,subscribed:o}=va(n);if(i)r(o?{entitlement:"EVENT_SHOWCASE_UNLOCKED_BY_SUBSCRIPTION",isUserRegistered:!0}:{entitlement:"EVENT_SHOWCASE_UNLOCKED_BY_METER",isUserRegistered:!0}),ne("Publisher already grants access"),e();else{ne("Not allowed access, try to use Google intervention");let n=await t;ne("entitlements: ",n),n.enablesThisWithGoogleMetering()?(ne("%c%s","background:dodgerblue;color:yellow;padding:10px;","entitlementsEnabled, consume"),n.consume(()=>{})):(Ve(g,"true",{hours:1}),r({entitlement:"EVENT_SHOWCASE_NO_ENTITLEMENTS_PAYWALL",isUserRegistered:!0}),ne("%c%s","background:dodgerblue;color:yellow;padding:10px;","show Paywall"),window.location.reload()),e()}})):(ne("user state not found on server. Probably you are not signed in"),t.setOnLoginRequest(()=>{null==ya||ya.click(),ne("%c%s","background:dodgerblue;color:yellow;padding:10px;","openLoginPage")}),GaaMeteringRegwall.show({iframeUrl:ha}).then(e=>{(async e=>{try{let t=await fetch(`/id-token-cb?idToken=${e}`);if(200===t.status){let e=new URL(window.location);e.searchParams.set("referrer",document.referrer),window.location=e}else if(206===t.status){let t=new URL(window.location.origin);t.pathname="/finish-register";let n=new URL(window.location);n.searchParams.set("referrer",document.referrer),t.searchParams.set("cb",n.href),t.searchParams.set("idToken",e),window.location=t}else console.error(t)}catch(e){return{}}})(e.idToken).then(e=>{t.getEntitlements(e)})}).catch(t=>{ne(t),ne("an error occurred trying to show regwall"),e()}))})):e()});ne("entitlement: ","EVENT_SHOWCASE_NO_ENTITLEMENTS_PAYWALL"," , isUserRegistered: ",!0)})();const ja=async()=>{const e=document.getElementById("googleSignInButton"),t=document.querySelector(`#drawer button[on="tap:${Ie}.close"]`);e&&e.addEventListener("click",()=>{if(Ia){let e=new URL(window.location);e.searchParams.set("referrer",document.referrer),sessionStorage.setItem("cb",encodeURIComponent(e));let t=new URL(window.location.origin);t.pathname="/google-auth",window.location=t}else{let e="scrollbars=no,resizable=no,status=no,location=no,toolbar=no,menubar=no,width=520,height=500,left=500,top=100";window.open("/google-auth","",e),null==t||t.click()}})};var xa=n(53874),Aa=n(1403);const Da=e=>Array.isArray(e)&&e.length>0;function La(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function Ta(e){for(var t=1;t{const e=window.dataLayer||[];window.dataLayer=new Proxy([],{set:(e,t,n)=>{if("length"!==t){const e=new CustomEvent(ge,{detail:n});window.dispatchEvent(e)}return Reflect.set(e,t,n)}}),e.forEach(e=>{window.dataLayer.push(e)})},$a=async()=>{(()=>{window.dataLayer=window.dataLayer||[];let e={event:"pageDataLoaded",trackingId:JSGlobals.ga,pageType:JSGlobals.pageType,headline:void 0,articleId:void 0,headlineWordCount:void 0,publishedDate:void 0,sponsorName:void 0,siteKey:JSGlobals.siteKey};if(JSGlobals.article){const t=Da(JSGlobals.article.authors)?(0,xa.mG)(JSGlobals.article.authors):null,n=Da(JSGlobals.article.authors)?(0,xa.iy)(JSGlobals.article.authors):null,i=(0,Aa.i2)(JSGlobals.article),r=JSGlobals.article.sectionCategory.map(({siteSection:e})=>e).join("|");e=Ta(Ta({},e),{},{articleId:JSGlobals.pageId,headline:JSGlobals.article.title,authorName:t,authorSlug:n,headlineWordCount:JSGlobals.article.title.split(" ").length,publishedDate:JSGlobals.article.publish,sponsorName:JSGlobals.article.sponsorName,pageCategories:i,siteSection:r,additionalKeywords:null})}window.dataLayer.push(e)})();const{containerId:e,auth:t,env:n}=JSGlobals.gtm;Ca(),window.dataLayer=window.dataLayer||[],window.dataLayer.push({"gtm.start":Date.now(),event:"gtm.js"});const i=`https://www.googletagmanager.com/gtm.js?${((e,t=null,n=null)=>t?new URLSearchParams({id:e,gtm_auth:t,gtm_preview:n,gtm_cookies_win:"x"}).toString():new URLSearchParams({id:e}).toString())(e,t,n)}`;await ae([i])},Ra=async()=>{JSGlobals.gtm&&(await $a(),await new Promise((e,t)=>{window.addEventListener(ge,n=>{"gtm.load"===n.detail.event&&(document.body.dispatchEvent(new CustomEvent("gtm_loaded")),e()),ne("Value pushed to dataLayer: ",n.detail),window.google_tag_manager||t("Error firing `fireGTMLoadedCustomEvent` 'google_tag_manager.dataLayer.gtmDom' not found!")})}))},Ma="auto_refresh",Na=[970,90],Ua=[728,90],Ba=[300,50],Ga=[320,50],Va=[300,600],Ja=[300,250],za=[300,240],qa=[280,290],Wa=[1,1],Ha=[336,280],Fa=[250,250],Ya=[200,200],Ka=576,Qa=1024,Xa=650,Za=1300,es=1600,ts=320,ns=375,is=425,rs=595,os=1280,as=1366,ss=1440,cs=2560;function ls(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function ds(e){for(var t=1;t{const e=Tt-1;return window.matchMedia(`(max-width: ${e}px)`).matches},ms=()=>{const e=us(),t={mpu1:"mpu1-m",mpu2:"mpu2-m",mpu3:"mpu3-m",mpu4:"mpu4-m",mpu5:"mpu5-m",mpu6:"mpu6-m",blog1:"blog1-m"},n=Object.fromEntries(Object.entries(t).map(([e,t])=>[t,e]));document.querySelectorAll(["billboard","skin","mpu1","mpu2","mpu3","mpu4","mpu5","mpu6","sidebar1","sidebar2","sidebar3","blog1","mpu1-m","mpu2-m","mpu3-m","mpu4-m","mpu5-m","mpu6-m","blog1-m","mobile_footer"].map(e=>`#${e}`).join(", ")).forEach(i=>{const r=i.id;e?t[r]&&(i.id=t[r]):n[r]&&(i.id=n[r])})};let bs=!1;const gs=e=>{if(e.slot.getSlotElementId()===ke){var t;const e=!("true"!==(null===(t=document.getElementById(ke))||void 0===t?void 0:t.dataset.isVideo)),n=oe(){e.slot.getSlotElementId()===ke&&(setTimeout(()=>{(()=>{const e=document.getElementById(Se),t=()=>{e.classList.remove(M)};new IntersectionObserver(n=>{if(n[0].intersectionRatio<.75){const n=e.animate([{opacity:1},{opacity:0}],{duration:500,easing:"ease-in-out",fill:"forwards"});n.finished.then(()=>{t(),n.cancel()})}else t()}).observe(e.parentElement,{root:null})})()},1e3),googletag.pubads().removeEventListener("slotResponseReceived",gs),googletag.pubads().removeEventListener("impressionViewable",_s))};function ws(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function vs(e){for(var t=1;tlocation.pathname.startsWith("/tv/")?fs:hs[e]||fs;function ks(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function Ss(e){for(var t=1;te.querySelectorAll('[data-mpu]:not([data-initialised="true"])'),Is=(e,t,n)=>{const i=n[e];if(i){const e=[...i].reverse().find(e=>e.from<=t);if(e)return e}},Ps=(e,t,n,i)=>{if(e.dataset.sizeKey){var r;const i=((e,t,n)=>{const i=Is(e,t,n);return i?i.supportedSizes:null})(e.dataset.sizeKey,t,n);return((e,t)=>{var n;const{richMediaMPU2:i,richMediaMPU4:r}=ys(null===(n=window.JSGlobals)||void 0===n?void 0:n.pageType);("mpu2-m"===e&&i||"mpu4-m"===e&&r)&&(t.some(e=>1===e[0]&&1===e[1])||t.push([1,1]))})(e.id,i),i||console.warn(`Incorrect Ad size detected: ${null===(r=e.dataset)||void 0===r?void 0:r.tileName}`),i?{str:i.map(e=>e.join("x")).join("|"),arr:i}:null}const o=((e,t,n)=>t>=n.laptop&&e.dataset.desktopSizes?e.dataset.desktopSizes:t>=n.tablet&&e.dataset.tabletSizes?e.dataset.tabletSizes:te.split("x").map(e=>Number(e)))}},Es=(e,t,n,i)=>({supportedSizes:Ps(e,t,n,i),refreshMS:e.dataset.refreshMs}),js=(e,{registerAsCurrentAd:t,adConfig:{types:n},breakPoints:i})=>{var r;const{supportedSizes:o,refreshMS:a}=Es(e,oe(),n,i),s=[...e.dataset.adUnitPath.split("/").slice(0,-1),e.id].join("/"),c=null!=o&&null!==(r=o.arr)&&void 0!==r&&r.length?((e,t,n,i={})=>{var r;return null===(r=window.googletag.defineSlot(e,t,n))||void 0===r||null===(r=r.setCollapseEmptyDiv(!0))||void 0===r||null===(r=r.updateTargetingFromMap(i))||void 0===r?void 0:r.addService(window.googletag.pubads())})(s,o.arr,e.id,{tile:e.id}):null;return c&&t(e,c,o.str,a),!!c},xs=e=>{window.googletag.cmd.push(()=>{const t=window.googletag.pubads().refresh;window.googletag.pubads().refresh=(n,...i)=>{var r,o,a;r=null==n?void 0:n.map(e=>null==e?void 0:e.getSlotElementId()).filter(e=>!!e),o=e,null===(a=[...document.getElementsByClassName("extraAd")])||void 0===a||a.forEach(e=>{const t=e.id.split(e.dataset.tileNameExtra).slice(0,-1).join(e.dataset.tileNameExtra);r&&!r.includes(t)||(o(e),e.remove())}),t(n,...i)}})},As=e=>Number(document.getElementById(`${e.id}_adIndex`).innerHTML),Ds=e=>{const t=Object.values(e).reduce((e,t)=>Ss(Ss({},e),{},{[t.lineItemId]:(e[t.lineItemId]||0)+1}),{});Object.entries(e).forEach(([n,i])=>{e[n].lineItemCount=t[i.lineItemId]})},Ls=["adConfig","breakPoints","adLoadingBehaviourSettings","beforeSlotsDisplay","beforeSlotRefresh"];function Ts(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function Cs(e){for(var t=1;t{let{adConfig:t,breakPoints:n={tablet:Lt,laptop:Tt},adLoadingBehaviourSettings:i={},beforeSlotsDisplay:r=()=>{},beforeSlotRefresh:o=()=>{}}=e,a=At(e,Ls);const s={},c={},l={},d=[];let p,u=!0;const{renderMarginPercent:m,mobileScaling:b}=Cs(Cs({},Rs),(g=i,Object.fromEntries(Object.entries(g).filter(([,e])=>void 0!==e))));var g;const _=(e,t,n,i)=>{c[e.id]={el:e,slot:t,sizes:n,refreshMS:i,refreshAttempts:0}},w=e=>{const{id:t}=e,n=c[t];n&&(n.slot&&googletag.destroySlots([n.slot]),n.viewed&&clearTimeout(n.refreshTimeout)),e.setAttribute("data-initialised","false"),e.removeAttribute("id"),delete c[t],delete s[t],Ds(s)};xs(w);const v=e=>{const n=e.slot.getSlotElementId(),i=document.getElementById(n);if(null!=i&&i.dataset.sizeKey){var r;const{conditionalAd:s}=Is(i.dataset.sizeKey,oe(),t.types);if(s&&s.if.join("x")===(null===(r=e.size)||void 0===r?void 0:r.join("x"))){const e=`${n}${s.tileNameExtra}`,t=((e,t,n)=>{const i=document.createElement("div");return i.id=e,i.setAttribute("data-mpu","true"),i.setAttribute("data-size",t),i.setAttribute("data-ad-unit-path",n),i.className="extraAd",i})(e,s.then.join("x"),(o=i.dataset.adUnitPath,a=e,[...o.split("/").slice(0,-1),a].join("/")));t.dataset.tileNameExtra=s.tileNameExtra,i.parentElement.appendChild(t)}}var o,a};(({consent:e,slotRenderedCallback:i=()=>{},slotLoadedCallback:a=()=>{},setTargeting:g=()=>{},firstAdLoaded:f=()=>{},allFirstScreenAdsLoaded:y=()=>{}})=>{ne("consent inside GPT",e),googletag.cmd.push(()=>{g(),googletag.pubads().setCentering(!0),googletag.pubads().enableSingleRequest(),googletag.pubads().enableLazyLoad({fetchMarginPercent:-1,renderMarginPercent:m,mobileScaling:b}),googletag.enableServices();let e=oe(),k=!1,S=0,O=!1;const I=[];p=(i=!1)=>{const o=oe();u=i,e!==o&&(e=o,Object.keys(c).forEach(e=>{const i=c[e].el,{supportedSizes:r}=Es(i,o,t.types,n);(null==r?void 0:r.str)!==c[e].sizes&&w(i)})),((e=document)=>e.querySelectorAll('[data-mpu][data-refresh-check="true"][id]'))().forEach(e=>{const t=As(e);void 0!==l[e.id]&&t!==l[e.id]&&(l[e.id]=t,w(e))}),((e=document)=>[...Os(e)].filter(e=>!(e=>!(e.offsetWidth||e.offsetHeight||e.getClientRects().length))(e)))().forEach(e=>{e.setAttribute("data-initialised","true"),e.id||e.setAttribute("id",e.dataset.tileName),ms(),js(e,{registerAsCurrentAd:_,adConfig:t,breakPoints:n})&&d.push(e),"true"===e.dataset.refreshCheck&&(l[e.id]=As(e))}),0===d.length&&i&&!O&&(O=!0,y()),(async()=>{const e=[...d];d.length=0,e.length&&(await r({slotElems:e,slots:e.map(e=>{var t;return null===(t=c[e.id])||void 0===t?void 0:t.slot}).filter(Boolean),isFirstLoad:u}),e.forEach(e=>{googletag.cmd.push(()=>{googletag.display(e.id)})})),setTimeout(p,100)})()},p(!0),googletag.pubads().addEventListener("slotRenderEnded",e=>{v(e),i(e),(async e=>{var n;const i=null!==(n=t.maxEmptySlotRefreshAttempts)&&void 0!==n?n:2;if(0===i)return;const r=e.slot.getSlotElementId(),a=c[r];if(e.isEmpty){if(!a.refreshMS)return;if(a.refreshAttempts>=i)return void console.warn(`Could not find ad to fill '${r}' after ${i} attempts`);a.refreshAttempts++,e.slot.setTargeting($s,a.refreshAttempts),await o({slotElem:a.el,slot:a.slot}),window.googletag.pubads().refresh([a.slot])}else a.refreshAttempts=0,e.slot.clearTargeting($s)})(e)}),googletag.pubads().addEventListener("slotResponseReceived",e=>{(e=>{const t=e.getSlotElementId();s[t]=Cs(Cs({},e.getResponseInformation()),{},{lineItemCount:1}),Ds(s)})(e.slot)}),googletag.pubads().addEventListener("slotOnload",(...e)=>{if(a(...e),k||(k=!0,f()),0===I.length)for(const e in c){const t=c[e].slot.getResponseInformation();"skin"!==e&&null!==t&&I.push(t)}S++,S!==I.length||O||"function"!=typeof y||(O=!0,y())}),googletag.pubads().addEventListener("impressionViewable",e=>{const n=e.slot.getSlotId().getDomId(),i=c[n];if(i.viewed=!0,((e,t)=>{var n;return!!s[e]&&!(null===(n=t[s[e].advertiserId])||void 0===n||!n.disableRefresh)})(n,t.advertisers||{})||((e,t)=>{var n;return!!s[e]&&!(null===(n=t[s[e].campaignId])||void 0===n||!n.disableRefresh)})(n,t.campaigns||{}))return;(((e,t)=>{var n;return!!s[e]&&!(null===(n=t[s[e].advertiserId])||void 0===n||!n.forceRefresh)})(n,t.advertisers||{})||!(s[n].lineItemCount>1)&&i.refreshMS)&&(i.refreshTimeout=setTimeout(async()=>{i.viewed=!1,await o({slotElem:i.el,slot:i.slot}),window.googletag.pubads().refresh([i.slot])},i.refreshMS))}),ga(h)&&(googletag.pubads().addEventListener("slotResponseReceived",gs),googletag.pubads().addEventListener("impressionViewable",_s))})})(a)},Ns="adagio",Us=ce(U),Bs={billboard:{placementId:"billboard"},mpu1:{placementId:"mpu1"},mpu2:{placementId:"mpu2"},mpu3:{placementId:"mpu3"},mpu4:{placementId:"mpu4"},mpu5:{placementId:"mpu5"},mpu6:{placementId:"mpu6"},sidebar1:{placementId:"sidebar1"},sidebar2:{placementId:"sidebar2"},sidebar3:{placementId:"sidebar3"},blog1:{placementId:"blog1"},"mpu1-m":{placementId:"mpu1-m"},"mpu2-m":{placementId:"mpu2-m"},"mpu3-m":{placementId:"mpu3-m"},"mpu4-m":{placementId:"mpu4-m"},"mpu5-m":{placementId:"mpu5-m"},"mpu6-m":{placementId:"mpu6-m"},"mpu_infinite-m":{placementId:"mpu_infinite-m"},"blog1-m":{placementId:"blog1-m"},"blog2-m":{placementId:"blog2-m"},mobile_footer:{placementId:"mobile_footer"},hero_player:{placementId:"hero_player"}},Gs={bidderName:Ns,params:({id:e})=>{const t=Bs[e];return t?{bidder:Ns,params:{organizationId:"1433",site:Us?"the-independent-com":"independent-co-uk",adUnitElementId:t.placementId,placement:t.placementId}}:null}},Vs={bidderName:"amx",params:()=>({bidder:"amx",params:{tagId:"X15ZCNGkm"}})},Js="connatix",zs=ce(U),qs={bidderName:Js,instreamVideoParams:()=>({bidder:Js,params:{placementId:zs?"50ae7c1c-86b7-4ba7-babb-6ae553eb11cf":"5958228a-ec04-4b69-a67b-733344967eed"}})},Ws=e=>e.map(({customer:e,rating:t})=>`${e}-${t}`),Hs=e=>Ws(e).join(","),Fs=e=>e.map(({label:e})=>e),Ys=()=>{const e=localStorage.getItem("_pdfps"),t=e?JSON.parse(e):[];if(!window.JSGlobals)return{permutive:t};const{pageId:n,topictags:i,pageType:r,isLiveBlog:o,isCommercial:a,mantis_channels:s,mantis_context:c}=JSGlobals;return{mantis:(null==s?void 0:s.ratings)&&Ws(s.ratings),mantis_context:c&&Fs(c),topictags:i,pageType:r,liveblog:o?"y":"n",commercial:a?"y":"n",article:n,permutive:t}},Ks="criteo",Qs={bidderName:Ks,params:()=>({bidder:Ks,params:{networkId:1680,keywords:Ys()}})};var Xs;const Zs="richaudience",ec="site",{richMediaMPU2:tc,richMediaMPU4:nc}=ys((null===(Xs=window.JSGlobals)||void 0===Xs?void 0:Xs.pageType)||"index"),ic=ce(U),rc={billboard:{pid:"ybjj7OD9by"},mpu1:{pid:"uRKHKN8EhB"},mpu2:{pid:tc?"M2JutYcsRt":"OWKITvU1vv"},mpu3:{pid:"vhKCFLQEVR"},mpu4:{pid:nc?"hQDRxlQWQo":"kDurvOXU9K"},mpu5:{pid:"ULb1Bqgs9a"},mpu6:{pid:"KsOhYrlAm3"},sidebar1:{pid:"8egyqp7EJS"},sidebar2:{pid:"V2oAeMIdJ5"},sidebar3:{pid:"V2oAeMIdJ5"},blog1:{pid:"rFpPQENaxK"},"mpu1-m":{pid:"F7hplmpd7S"},"mpu2-m":{pid:tc?"XE43qss4PU":"5hmbXFQM58"},"mpu3-m":{pid:"txAl8ci6Pk"},"mpu4-m":{pid:nc?"0z0K1irGPp":"x6qaDPazZi"},"mpu5-m":{pid:"gKj5q9yIDp"},"mpu6-m":{pid:"jXh6bg6GCw"},"mpu_infinite-m":{pid:"ybjj7OD9by"},"blog1-m":{pid:"5hmbXFQM58"},"blog2-m":{pid:"5hmbXFQM58"},mobile_footer:{pid:"H0d70BzyXO"},hero_player:{pid:"XjQTTyR0lC"}},oc={billboard:{pid:"cIFYczGb1E"},mpu1:{pid:"6dLwl35pmL"},mpu2:{pid:tc?"EMA70FTK6r":"BwESRsHoXi"},mpu3:{pid:"9lX6KNWV2Z"},mpu4:{pid:nc?"SbvTT7hNud":"Z7MIfiHfac"},mpu5:{pid:"T2KwyprSqH"},mpu6:{pid:"Z1Y57dGJfJ"},sidebar1:{pid:"5Oqv4zvxlv"},sidebar2:{pid:"Uh3kyDDeqk"},sidebar3:{pid:"Uh3kyDDeqk"},blog1:{pid:"xKfVG5R4us"},"mpu1-m":{pid:"9JUeovKlri"},"mpu2-m":{pid:tc?"kJQb4eryB4":"BoR1tU003y"},"mpu3-m":{pid:"Dy0GL7mfTo"},"mpu4-m":{pid:nc?"hojJWQTG6v":"sL8n1uFMWR"},"mpu5-m":{pid:"ClFvfe0hPf"},"mpu6-m":{pid:"So7P4eTdOm"},"mpu_infinite-m":{pid:"ookxUUHUUD"},"blog1-m":{pid:"KxlwouL9Y1"},"blog2-m":{pid:"n5Pel2QLs0"},mobile_footer:{pid:"EH7fIzU5Us"},hero_player:{pid:"XjQTTyR0lC"}},ac={bidderName:Zs,params:({id:e})=>{const t=ic?oc[e]:rc[e];return t?{bidder:Zs,params:{pid:t.pid,supplyType:ec}}:null},instreamVideoParams:()=>({bidder:Zs,params:{pid:ic?"8TOY5wwJW4":"XjQTTyR0lC",supplyType:ec}})};var sc,cc;function lc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function dc(e){for(var t=1;t{const t=_c?vc[e]:wc[e];return t?{bidder:pc,params:dc(dc({zone:_c?bc:mc,pubId:uc},t.slot&&{slot:t.slot}),t.product&&{product:t.product})}:null}};var hc;function yc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function kc(e){for(var t=1;t{const t=Oc?xc[e]:jc[e];return t?kc(kc({bidder:Sc},t.outstreamVideo&&{mediaTypes:{video:Ec}}),{},{params:{siteId:t.web}}):null},instreamVideoParams:()=>({bidder:Sc,params:{siteId:Oc?"1135368":"1107568",keywords:Ys()}})};var Dc;const Lc="invibes",Tc=ce(U),{richMediaMPU2:Cc,richMediaMPU4:$c}=ys((null===(Dc=window.JSGlobals)||void 0===Dc?void 0:Dc.pageType)||"index"),Rc={mpu1:{placementId:"invibes_independent_d_mpu1"},mpu2:{placementId:Cc?"invibes_independent_d_mpu2_t2":"invibes_independent_d_mpu2_t1"},mpu3:{placementId:"invibes_independent_d_mpu3"},mpu4:{placementId:$c?"invibes_independent_d_mpu4_t2":"invibes_independent_d_mpu4_t1"},mpu5:{placementId:"invibes_independent_d_mpu5"},"mpu1-m":{placementId:"invibes_independent_m_mpu1"},"mpu2-m":{placementId:Cc?"invibes_independent_m_mpu2_t2":"invibes_independent_m_mpu2_t1"},"mpu3-m":{placementId:"invibes_independent_m_mpu3"},"mpu4-m":{placementId:$c?"invibes_independent_m_mpu4_t2":"invibes_independent_m_mpu4_t1"},"mpu5-m":{placementId:"invibes_independent_m_mpu5"},"mpu6-m":{placementId:"invibes_independent_m_mpu6"}},Mc={mpu1:{placementId:"invibes_independentus_d_mpu1"},mpu2:{placementId:Cc?"invibes_independentus_d_mpu2_t2":"invibes_independentus_d_mpu2_t1"},mpu3:{placementId:"invibes_independentus_d_mpu3"},mpu4:{placementId:$c?"invibes_independentus_d_mpu4_t2":"invibes_independentus_d_mpu4_t1"},mpu5:{placementId:"invibes_independentus_d_mpu5"},"mpu1-m":{placementId:"invibes_independentus_m_mpu1"},"mpu2-m":{placementId:Cc?"invibes_independentus_m_mpu2_t2":"invibes_independentus_m_mpu2_t1"},"mpu3-m":{placementId:"invibes_independentus_m_mpu3"},"mpu4-m":{placementId:$c?"invibes_independentus_m_mpu4_t2":"invibes_independentus_m_mpu4_t1"},"mpu5-m":{placementId:"invibes_independentus_m_mpu5"},"mpu6-m":{placementId:"invibes_independentus_m_mpu6"}},Nc={bidderName:Lc,params:({id:e})=>{const t=Tc?Mc[e]:Rc[e];return t?{bidder:Lc,params:{placementId:t.placementId,customEndpoint:"https://prebid.videostep.com/Bid/VideoAdContent"}}:null}};var Uc;function Bc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function Gc(e){for(var t=1;t{const t=Zc?il[e]:nl[e];return t?{bidder:Vc,params:t}:null},instreamVideoParams:()=>({bidder:Vc,params:{placementId:Zc?"_cKaBUs9UBE":"_rnVetCjAeH",keywords:Gc({},Xc)}})},ol="nextMillennium",al={placement_id:"45341"},sl={bidderName:ol,instreamVideoParams:()=>({bidder:ol,params:{placement_id:al.placement_id}})};var cl,ll,dl;function pl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function ul(e){for(var t=1;t{const n=bl?yl[e]:hl[e];return n?{bidder:ml,params:ul({publisherId:wl,siteId:bl?fl:vl,placementId:n.web,customData:[{targeting:ul(ul({},kl),{},{tile:e,permutiveId:localStorage.getItem(a)})}]},t?{video:{skippable:!0,playback_method:["auto_play_sound_off"]}}:{})}:null},instreamVideoParams:()=>({bidder:ml,params:{publisherId:wl,placementId:bl?"3500015404":"3500014821",siteId:bl?fl:vl,keywords:ul({},kl)}})},Ol=()=>{const e=JSON.parse(localStorage.getItem("_psegs")||"[]").map(Number).filter(e=>e>=1e6).map(String),t=JSON.parse(window.localStorage._ppam||"[]"),n=JSON.parse(window.localStorage._pcrprs||"[]");return e.concat(t).concat(n)};var Il;function Pl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function El(e){for(var t=1;t{var t,n;const i=Ys(),r=Object.keys(i).reduce((e,t)=>{const n=`${t}=${JSON.stringify(i[t])}`;return 0===e.length?n:`${e}|${n}`},""),o=xl?Tl[e]:Ll[e];return o?{bidder:jl,params:{publisherId:"160736",adSlot:o.web,keywords:El({p_standard:Ol()},i),outstreamAU:null!==(t=o.outstreamAU)&&void 0!==t?t:"",dctr:r,video:null!==(n=o.video)&&void 0!==n?n:""}}:null},instreamVideoParams:()=>({bidder:jl,params:{publisherId:"160736",adSlot:xl?"6229289":"5982433"}})},$l="rise",Rl="6448fc9664ef8b00016d7fe0",Ml=us(),Nl={mobile_footer:{org:Rl},"mpu3-m":{org:Rl},"mpu5-m":{org:Rl},"mpu6-m":{org:Rl},"mpu_infinite-m":{org:Rl},[Ml?"mpu1-m":"sidebar1"]:{org:Rl},sidebar2:{org:Rl},sidebar3:{org:Rl},mpu2:{org:Rl},[Ml?"blog1-m":"blog1"]:{org:Rl},"blog2-m":{org:Rl},[Ml?"mpu2-m":"mpu1"]:{org:Rl},[Ml?"mpu4-m":"mpu3"]:{org:Rl},billboard:{org:Rl}},Ul={bidderName:$l,params:({id:e})=>{const t=Nl[e];return t?{bidder:$l,params:{org:t.org}}:null},instreamVideoParams:()=>({bidder:$l,params:{org:Rl}})};var Bl;const Gl="rubicon",Vl=547616,Jl=561872,zl=561868,ql=ce(U),{richMediaMPU2:Wl,richMediaMPU4:Hl}=ys((null===(Bl=window.JSGlobals)||void 0===Bl?void 0:Bl.pageType)||"index"),Fl={billboard:{web:3411410},mpu1:{web:3411412},mpu2:{web:Wl?3411936:3411414},mpu3:{web:3411416},mpu4:{web:Hl?3411418:3411938},mpu5:{web:3411420},mpu6:{web:3411422},sidebar1:{web:3411424},sidebar2:{web:3411426},sidebar3:{web:3411426},blog1:{web:3633334},"mpu1-m":{web:3411394},"mpu2-m":{web:Wl?3411940:3411396},"mpu3-m":{web:3411398},"mpu4-m":{web:Hl?3411944:3411400},"mpu5-m":{web:3411402},"mpu6-m":{web:3411404},"mpu_infinite-m":{web:3633308},"blog1-m":{web:3633330},"blog2-m":{web:3633332},mobile_footer:{web:3411406}},Yl={billboard:{web:3681146,siteId:Jl},mpu1:{web:3681258,siteId:Jl},mpu2:{web:Wl?3682914:3542654,siteId:Jl},mpu3:{web:3681260,siteId:Jl},mpu4:{web:Hl?3682916:3542650},mpu5:{web:3681262},mpu6:{web:3681264},sidebar1:{web:3681266,siteId:Jl},sidebar2:{web:3681268,siteId:Jl},sidebar3:{web:3681268,siteId:Jl},blog1:{web:3632804,siteId:Jl},"mpu1-m":{web:3681010,siteId:zl},"mpu2-m":{web:Wl?3682844:3542588,siteId:zl},"mpu3-m":{web:3681074,siteId:zl},"mpu4-m":{web:Hl?3682846:3542584,siteId:zl},"mpu5-m":{web:3681108,siteId:zl},"mpu6-m":{web:3681110,siteId:zl},"mpu_infinite-m":{web:3632778,siteId:zl},"blog1-m":{web:3632780,siteId:zl},"blog2-m":{web:3632782,siteId:zl},mobile_footer:{web:3681128,siteId:zl}},Kl={bidderName:Gl,params:({id:e})=>{var t;const n=ql?Yl[e]:Fl[e];return n?{bidder:Gl,params:{zoneId:n.web,siteId:null!==(t=n.siteId)&&void 0!==t?t:Vl,accountId:17292}}:null},instreamVideoParams:()=>({bidder:Gl,params:{accountId:17292,siteId:ql?579192:Vl,zoneId:ql?3681286:3411428}})},Ql="seedtag",Xl={"mpu2-m":{publisherId:"6530-8683-01",adUnitId:"34961582",placement:"inArticle"},"mpu4-m":{publisherId:"6530-8683-01",adUnitId:"34961584",placement:"inArticle"},mobile_footer:{publisherId:"6530-8683-01",adUnitId:"34960233",placement:"inScreen"},mpu2:{publisherId:"6530-8683-01",adUnitId:"34960245",placement:"inBanner"},mpu4:{publisherId:"6530-8683-01",adUnitId:"34961047",placement:"inBanner"}},Zl={bidderName:Ql,params:({id:e})=>{const t=Xl[e];return t?{bidder:"seedtag",params:{publisherId:t.publisherId,adUnitId:t.adUnitId,placement:t.placement}}:null},instreamVideoParams:()=>({bidder:Ql,params:{publisherId:"6530-8683-01",adUnitId:"34960827",placement:"inStream"}})};var ed;const td="teads",nd=ce(U),{richMediaMPU2:id,richMediaMPU4:rd}=ys((null===(ed=window.JSGlobals)||void 0===ed?void 0:ed.pageType)||"index"),od={billboard:{placementId:"225341",pageId:"208999"},mpu1:{placementId:"225426",pageId:"209084"},mpu2:{placementId:id?"225430":"225345",pageId:id?"209088":"209003"},mpu3:{placementId:"225347",pageId:"209005"},mpu4:{placementId:rd?"225431":"225348",pageId:rd?"209089":"209006"},mpu5:{placementId:"225350",pageId:"209008"},mpu6:{placementId:"225352",pageId:"209010"},sidebar1:{placementId:"225353",pageId:"209011"},sidebar2:{placementId:"225354",pageId:"209012"},sidebar3:{placementId:"225354",pageId:"209012"},blog1:{placementId:"234205",pageId:"217621"},"mpu1-m":{placementId:"225331",pageId:"208989"},"mpu2-m":{placementId:id?"225428":"225332",pageId:id?"209086":"208990"},"mpu3-m":{placementId:"225333",pageId:"208991"},"mpu4-m":{placementId:rd?"225429":"225334",pageId:rd?"209087":"208992"},"mpu5-m":{placementId:"225337",pageId:"208995"},"mpu6-m":{placementId:"225339",pageId:"208997"},"mpu_infinite-m":{placementId:"234208",pageId:"217624"},"blog1-m":{placementId:"234207",pageId:"217623"},"blog2-m":{placementId:"234206",pageId:"217622"},mobile_footer:{placementId:"225340",pageId:"208998"}},ad={billboard:{placementId:"230436",pageId:"213976"},mpu1:{placementId:"230435",pageId:"213975"},mpu2:{placementId:id?"230445":"230434",pageId:id?"213985":"213974"},mpu3:{placementId:"230433",pageId:"213973"},mpu4:{placementId:rd?"230444":"230432",pageId:rd?"213984":"213972"},mpu5:{placementId:"230431",pageId:"213971"},mpu6:{placementId:"230430",pageId:"213970"},sidebar1:{placementId:"230429",pageId:"213969"},sidebar2:{placementId:"230428",pageId:"213968"},sidebar3:{placementId:"230428",pageId:"213968"},blog1:{placementId:"234209",pageId:"217625"},"mpu1-m":{placementId:"230443",pageId:"213983"},"mpu2-m":{placementId:id?"230447":"230442",pageId:id?"213987":"213982"},"mpu3-m":{placementId:"230441",pageId:"213981"},"mpu4-m":{placementId:rd?"230446":"230440",pageId:rd?"213986":"213980"},"mpu5-m":{placementId:"230439",pageId:"213979"},"mpu6-m":{placementId:"230438",pageId:"213978"},"mpu_infinite-m":{placementId:"234212",pageId:"217628"},"blog1-m":{placementId:"234211",pageId:"217627"},"blog2-m":{placementId:"234210",pageId:"217626"},mobile_footer:{placementId:"230437",pageId:"213977"}},sd={bidderName:td,params:({id:e})=>{const t=nd?ad[e]:od[e];return t?{bidder:td,params:t}:null}},cd="ttd",ld="theindependent",dd={billboard:{placementId:"/71347885/_main_independent/billboard"},mpu1:{placementId:"/71347885/_main_independent/mpu1"},mpu2:{placementId:"/71347885/_main_independent/mpu2"},mpu3:{placementId:"/71347885/_main_independent/mpu3"},mpu4:{placementId:"/71347885/_main_independent/mpu4"},mpu5:{placementId:"/71347885/_main_independent/mpu5"},mpu6:{placementId:"/71347885/_main_independent/mpu6"},sidebar1:{placementId:"/71347885/_main_independent/sidebar1"},sidebar2:{placementId:"/71347885/_main_independent/sidebar2"},sidebar3:{placementId:"/71347885/_main_independent/sidebar3"},blog1:{placementId:"/71347885/_main_independent/blog1"},"mpu1-m":{placementId:"/71347885/_main_independent/mpu1-m"},"mpu2-m":{placementId:"/71347885/_main_independent/mpu2-m"},"mpu3-m":{placementId:"/71347885/_main_independent/mpu3-m"},"mpu4-m":{placementId:"/71347885/_main_independent/mpu4-m"},"mpu5-m":{placementId:"/71347885/_main_independent/mpu5-m"},"mpu6-m":{placementId:"/71347885/_main_independent/mpu6-m"},"mpu_infinite-m":{placementId:"/71347885/_main_independent/mpu_infinite-m"},"blog1-m":{placementId:"/71347885/_main_independent/blog1-m"},"blog2-m":{placementId:"/71347885/_main_independent/blog2-m"},mobile_footer:{placementId:"/71347885/_main_independent/sticky_footer"}},pd={bidderName:cd,params:({id:e})=>{const t=dd[e];return t?{bidder:cd,params:{placementId:t.placementId,publisherId:"1",supplySourceId:ld}}:null},instreamVideoParams:()=>({bidder:cd,params:{placementId:"/71347885/_main_independent/hero_player",publisherId:"1",supplySourceId:ld}})},ud="trustx",md=ce(U),bd={"mpu1-m":"423504","mpu2-m":"423511","mpu3-m":"423505","mpu4-m":"423510","mpu5-m":"423513","mpu6-m":"423506","mpu_infinite-m":"423508",mobile_footer:"423509",billboard:"423544",mpu1:"423512",mpu2:"423507",mpu3:"423515",mpu4:"423517",mpu5:"423516",mpu6:"423514",sidebar1:"423520",sidebar2:"423518",hero_player:"423519","blog1-m":"423521","blog2-m":"423522",blog1:"423524"},gd={"mpu1-m":"423523","mpu2-m":"423525","mpu3-m":"423526","mpu4-m":"423527","mpu5-m":"423528","mpu6-m":"423529","mpu_infinite-m":"423530",mobile_footer:"423531",billboard:"423545",mpu1:"423532",mpu2:"423533",mpu3:"423534",mpu4:"423535",mpu5:"423536",mpu6:"423537",sidebar1:"423538",sidebar2:"423539",hero_player:"423540","blog1-m":"423541","blog2-m":"423542",blog1:"423543"},_d={bidderName:ud,params:({id:e})=>{const t=md?gd[e]:bd[e];return t?{bidder:ud,params:{uid:t,site:md?"the-independent-com":"independent-co-uk"}}:null}},wd="vidazoo",vd="653a9441c2a2ad317e174723",fd="66d9bd80ee1dcf28da367063",hd=ce(U),yd={billboard:{cId:vd},mpu1:{cId:vd},mpu2:{cId:vd},mpu3:{cId:vd},mpu4:{cId:vd},mpu5:{cId:vd},mpu6:{cId:vd},sidebar1:{cId:vd},sidebar2:{cId:vd},sidebar3:{cId:vd},blog1:{cId:vd},"mpu1-m":{cId:vd},"mpu2-m":{cId:vd},"mpu3-m":{cId:vd},"mpu4-m":{cId:vd},"mpu5-m":{cId:vd},"mpu6-m":{cId:vd},"mpu_infinite-m":{cId:vd},"blog1-m":{cId:vd},"blog2-m":{cId:vd},mobile_footer:{cId:vd}},kd={billboard:{cId:fd},mpu1:{cId:fd},mpu2:{cId:fd},mpu3:{cId:fd},mpu4:{cId:fd},mpu5:{cId:fd},mpu6:{cId:fd},sidebar1:{cId:fd},sidebar2:{cId:vd},sidebar3:{cId:fd},blog1:{cId:fd},"mpu1-m":{cId:fd},"mpu2-m":{cId:fd},"mpu3-m":{cId:fd},"mpu4-m":{cId:fd},"mpu5-m":{cId:fd},"mpu6-m":{cId:fd},"mpu_infinite-m":{cId:vd},"blog1-m":{cId:fd},"blog2-m":{cId:fd},mobile_footer:{cId:fd}},Sd={bidderName:wd,params:({id:e})=>{const t=hd?kd[e]:yd[e];return t?{bidder:wd,params:{cId:t.cId,pId:"59ac17c192832d0011283fe3",subDomain:"exchange"}}:null}};var Od;function Id(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function Pd(e){for(var t=1;t{const t=Ys(),n=jd?Ld[e]:Dd[e];return n?{bidder:Ed,params:{placementId:parseInt(n.web),keywords:Pd({p_standard:Ol()},t)}}:null},instreamVideoParams:()=>{const e=Ys();return{bidder:Ed,params:{placementId:jd?"34069095":"32798359",keywords:Pd({},e)}}}};var Cd,$d;function Rd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function Md(e){for(var t=1;t({code:e,mediaTypes:{video:{skip:1,playbackmethod:[2],pos:1,startdelay:0,placement:1,minbitrate:10,maxbitrate:9e3,context:"instream",playerSize:t,minduration:5,maxduration:30,mimes:["video/mp4","application/javascript","video/x-ms-wmv"],protocols:[1,2,3,4,5,6,7,8],api:[1,2,3,4,5],linearity:1,plcmt:location.pathname.startsWith("/tv/")?1:2}}}),Gd=us(),Vd=(null===(Cd=window.JSGlobals)||void 0===Cd?void 0:Cd.isSection)||!1,Jd=!Gd&&Vd,{richMediaMPU2:zd,richMediaMPU4:qd}=ys((null===($d=window.JSGlobals)||void 0===$d?void 0:$d.pageType)||"index"),Wd=[...Gd?[]:[{id:"billboard",sizes:ps.BILLBOARD},{id:"mpu1",sizes:ps.THIRD_PARTY_ARTICLE_BODY},Md({id:"mpu2",sizes:ps.THIRD_PARTY_ARTICLE_BODY_DESKTOP},zd&&{video:{context:"outstream",playerSize:[640,360],mimes:["video/mp4"]}}),{id:"mpu3",sizes:ps.THIRD_PARTY_ARTICLE_BODY},{id:"sidebar1",sizes:ps.SIDEBAR},{id:"sidebar2",sizes:ps.SIDEBAR2},{id:"sidebar3",sizes:ps.SIDEBAR},{id:"blog1",sizes:ps.SINGLE_MPU_ARTICLE}],...Jd?[Md({id:"mpu4",sizes:ps.THIRD_PARTY_ARTICLE_BODY_DESKTOP},qd&&{video:{context:"outstream",playerSize:[640,360],mimes:["video/mp4"]}}),{id:"mpu5",sizes:ps.DOUBLE_OR_SINGLE_MPU},{id:"mpu6",sizes:ps.DOUBLE_OR_SINGLE_MPU}]:[],...Gd?[{id:"mpu1-m",sizes:ps.DOUBLE_MPU_EXTRA},Md({id:"mpu2-m",sizes:ps.THIRD_PARTY_ARTICLE_BODY},zd&&{video:{context:"outstream",playerSize:[640,360],mimes:["video/mp4"]}}),{id:"mpu3-m",sizes:ps.THIRD_PARTY_ARTICLE_BODY_MOBILE},Md({id:"mpu4-m",sizes:ps.THIRD_PARTY_ARTICLE_BODY},qd&&{video:{context:"outstream",playerSize:[640,360],mimes:["video/mp4"]}}),{id:"mpu5-m",sizes:ps.SINGLE_MPU_ONLY_MOBILE},{id:"mpu6-m",sizes:ps.SINGLE_MPU_ONLY_MOBILE},{id:"mpu_infinite-m",sizes:ps.SINGLE_MPU_ONLY_MOBILE},{id:"blog1-m",sizes:ps.SINGLE_MPU_SECTION},{id:"blog2-m",sizes:Vd?ps.SINGLE_MPU_SECTION:ps.SINGLE_MPU_ARTICLE},{id:"mobile_footer",sizes:ps.MOBILE_FOOTER}]:[],{id:"gallery",sizes:ps.GALLERY}],Hd=[[1,1],[245,210]].map(e=>e.join(",")),Fd=(e,t)=>{if("mpu_infinite-m"!==e)return!1;if(!t.startsWith("mpu")||!t.endsWith("-m"))return!1;const n=t.replace(/\D+/g,"");return parseInt(n,10)>=7},Yd=async()=>{await ae(["/js/third-party/aps.js"])},Kd=()=>{var e;null===(e=window.apstag)||void 0===e||e.init({pubID:"3579",adServer:"googletag",videoAdServer:"DFP",deals:!0})},Qd=async e=>{const t=await(e=>{const t=window.apstag;Kd();const n={slots:[{slotID:e,mediaType:"video"}],timeout:5e3};return new Promise(function(e){t.fetchBids(n,t=>{e(t)})})})(e),n=t.filter(t=>t.slotID===e)[0];return(null==n?void 0:n.targeting)||[]},Xd=async e=>{await Yd(),Kd();const t=(n=Wd,null==(i=e)?void 0:i.filter(e=>n.find(t=>t.id===e.id||Fd(t.id,e.id))));var n,i;if(!t.length)return;const r=new Promise(e=>{var n;const i=(e=>e.map(e=>({slotID:e.id,sizes:[...new Set(Wd.find(t=>t.id===e.id||Fd(t.id,e.id)).sizes.flatMap(e=>e.supportedSizes).filter(e=>!Hd.includes(e.join(","))))],slotName:e.getAttribute("data-ad-unit-path")})))(t);null===(n=apstag)||void 0===n||n.fetchBids({slots:i},t=>{ne("APS bids:",t),googletag.cmd.push(()=>{var t;null===(t=apstag)||void 0===t||t.setDisplayBids(),e()})})}),o=new Promise(e=>{const n=t.map(e=>e.id),i=window.pbjs||{};i.que=i.que||[],i.que.push(()=>{i.requestBids({timeout:1500,adUnitCodes:n,bidsBackHandler:()=>{t.forEach(e=>{i.setTargetingForGPTAsync([e.id])}),e()}}),ne("pbjs:","request sent")})});await Promise.race([Promise.all([o,r]),new Promise(e=>setTimeout(e,2e3))])},Zd=223590,ep=e=>{var t;return null===(t=JSGlobals.contentSources)||void 0===t?void 0:t.includes(e)},tp=e=>{var t;if(!window.location.search)return null;const n=null===(t=new URLSearchParams(window.location.search).get(e))||void 0===t?void 0:t.trim();return null!=n?n:null},np=(e,t)=>{const n=JSON.stringify({error:"Request has timed out"}),i=e?Hs(e.ratings):n,r=t?Fs(t).join(","):n;googletag.pubads().setTargeting("mantis",i),googletag.pubads().setTargeting("mantis_context",r)},ip=()=>{var e,t;JSGlobals.article&&googletag.pubads().setTargeting("article",null!==(e=null===(t=JSGlobals.pageId)||void 0===t?void 0:t.replace(/\D/g,""))&&void 0!==e?e:"")},rp=["refresh","hasRegGate"];function op(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function ap(e){for(var t=1;t{let{refresh:n,hasRegGate:i=!1}=t,r=At(t,rp);const o=localStorage.getItem("permutive-id"),a=location.pathname.startsWith("/tv/");(e=>{e&&googletag.cmd.push(()=>{googletag.pubads().setPublisherProvidedId(e.replace(/-/g,""))})})(o),Ms(ap(ap({},r),{},{adConfig:ap({types:ps},JSGlobals.adConfig),breakPoints:e,adLoadingBehaviourSettings:JSGlobals.adConfig||{},setTargeting:()=>{var e,t,r,a,s,c,l,d;"cookieDeprecationLabel"in navigator&&(null===(s=navigator.cookieDeprecationLabel)||void 0===s||s.getValue().then(e=>{e&&googletag.pubads().setTargeting("chrome_facilitated_testing",e)})),googletag.pubads().setTargeting("pageType",null!==(c=JSGlobals.pageType)&&void 0!==c?c:""),ip(),np(null===(e=JSGlobals)||void 0===e?void 0:e.mantis_channels,null===(t=JSGlobals)||void 0===t?void 0:t.mantis_context),(e=>{googletag.pubads().setTargeting("reg_gate",e?"1":"0")})(i),(e=>{if(googletag.pubads().getTargeting("permutive").length)return;const t=localStorage.getItem("_pdfps");googletag.pubads().setTargeting("permutive",t?JSON.parse(t):[]),e&&(googletag.pubads().setTargeting("puid",e),googletag.pubads().setTargeting("ptime",Date.now().toString()))})(o),(e=>{googletag.pubads().setTargeting("autorefresh",e?"yes":"no")})(n),googletag.pubads().setTargeting("gdpr",Y("gdpr","none")),(()=>{const e=JSGlobals.topictags||[];e.length&&googletag.pubads().setTargeting("topictags",e)})(),(()=>{const{category1:e,category2:t}=JSGlobals;e&&t&&(googletag.pubads().setTargeting("category1",e),googletag.pubads().setTargeting("category2",t))})(),(()=>{const e=tp("campaign-override");e&&googletag.pubads().setTargeting("display_test",e)})(),(()=>{const e=tp(Vt);e&&googletag.pubads().setTargeting(Vt,e)})(),l=null===(r=JSGlobals)||void 0===r?void 0:r.isLiveBlog,googletag.pubads().setTargeting("liveblog",l?"y":"n"),d=null===(a=JSGlobals)||void 0===a?void 0:a.isCommercial,googletag.pubads().setTargeting("commercial",d?"y":"n"),(()=>{const{page_previous_url:e}=window.digitalData;e&&googletag.pubads().setTargeting("referrer",e)})(),(()=>{const e=ep(Zd);(Ro()||e)&&googletag.pubads().setTargeting("bulletin",(!0).toString())})(),(()=>{var e;const t=(null===(e=JSGlobals.contentSources)||void 0===e?void 0:e.toString())||"";googletag.pubads().setTargeting("contentSources",t)})(),(()=>{var e,t;const n=null!==(e=null===(t=window.s_object)||void 0===t?void 0:t.marketingCloudVisitorID)&&void 0!==e?e:"";googletag.pubads().setTargeting("adobe-visit-id",n)})()},beforeSlotsDisplay:async({slotElems:e})=>{const t=a?null==e?void 0:e.filter(e=>"sidebar1"!==(null==e?void 0:e.id)||"mpu1-m"!==(null==e?void 0:e.id)):e;r.prebidEnabled&&await Xd(t)},beforeSlotRefresh:async({slotElem:e,slot:t})=>{(!a||"sidebar1"!==(null==e?void 0:e.id)&&"mpu1-m"!==(null==e?void 0:e.id))&&(r.prebidEnabled&&await Xd([e]),t.setTargeting("sovrn-reload","True"))}}))};var cp=n(34617);const lp=()=>{Promise.resolve().then(async()=>{if("serviceWorker"in navigator)try{await navigator.serviceWorker.register(`/${cp.SW_FILENAME}`)}catch(e){console.error("Service Worker registration failed:",e)}else console.error("Service Worker is not supported by your browser")})},dp=e=>{if(e.defaultPrevented)return;const{target:t}=e;t instanceof HTMLElement&&(["INPUT","TEXTAREA","SELECT","OPTION"].includes(null==t?void 0:t.tagName)||null!=t&&t.hasAttribute("contenteditable"))||document.body.classList.add(x)},pp=()=>{const e=()=>{document.body.classList.remove(x)};document.addEventListener("keydown",dp),document.addEventListener("mousedown",e);const t="ontouchstart"in window||void 0!==window.navigator.maxTouchPoints&&window.navigator.maxTouchPoints>0||void 0!==window.DocumentTouch;document.body.classList.toggle("mode-touch",t),document.addEventListener("ontouchstart",e);let n=matchMedia("(hover:hover)").matches;if(t){n=!1;const e=()=>{!n&&matchMedia("(hover:hover)").matches&&document.body.classList.add(j)};document.addEventListener("mousemove",e)}document.body.classList.toggle(j,n)},up=e=>new Promise((t,n)=>{try{const n=new IntentIqObject({partner:1995923215,pbjs:e,timeoutInMillis:400,ABTestingConfigurationSource:"IIQServer",allowGDPR:!1,manualWinReportEnabled:!0,domainName:window.location.hostname,vrBrowserBlackList:["chrome"],callback:e=>{t({intentIds:e})},gamObjectReference:googletag});e.onEvent("adRenderSucceeded",function({bid:e}){const{adUnitCode:t,auctionId:i,bidderCode:r,cpm:o,currency:a,originalCpm:s,originalCurrency:c}=e,l={biddingPlatformId:1,bidderCode:r,prebidAuctionId:i,cpm:o,currency:a,originalCpm:s,originalCurrency:c,status:"rendered",placementId:t};ne("intentiq:","auction winning bid ad impression",l);try{n.reportExternalWin(l)}catch(e){re("intentiq:","error reporting ad impression",e)}})}catch(e){n(e)}}),mp=async()=>{const e=`https://${window.location.hostname}/Agent/GA/UniversalID/IIQUniversalID.js`;await ae(e)};class bp extends URL{constructor(e){super(e);const t=super.searchParams.get("cust_params")||"";this._custParams=new URLSearchParams(t||"")}get cust(){return this._custParams.toString()}set cust(e){this._custParams=new URLSearchParams(e||"")}get custParams(){return this._custParams}get search(){return super.searchParams.set("cust_params",this._custParams.toString()),super.searchParams.toString()}set search(e){super.search=e;const t=super.searchParams.get("cust_params")||"";this._custParams=new URLSearchParams(t||"")}toString(){return super.searchParams.set("cust_params",this._custParams.toString()),super.toString()}}const gp=()=>{const e=new URL(document.location.href);return["callback","code","state"].every(t=>e.searchParams.has(t))},_p=e=>`__${e}__`,wp=_p("page-url"),vp=_p("timestamp"),fp=_p("gdpr"),hp=_p("gdpr_consent"),yp=_p("addtl_consent"),kp=(e,t,n)=>{const i={5:e,12:encodeURIComponent(t)};n&&(i[1]=encodeURIComponent(n));const r=Object.keys(i).map(e=>`${e}=${i[Number(e)]}`).join("&");return btoa(r)};var Sp;function Op(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function Ip(e){for(var t=1;te.map(e=>({minViewPort:[e.from,0],sizes:e.supportedSizes})),Dp=(e,t)=>{const n=e.map(({id:e,sizes:n,video:i})=>{const r=us();let o={};o=[r?"mpu2-m":"mpu2",r?"mpu4-m":"mpu4"].includes(e)&&i?{video:i,banner:{sizeConfig:Ap(n)}}:i?{video:i}:{banner:{sizeConfig:Ap(n)}};const a=(({id:e,bidders:t})=>t.map(t=>t.params?t.params({id:e}):null).map(e=>e?Array.isArray(e)?e.map(e=>("rubicon"!==e.bidder&&(e.params?e.params.keywords=Ys():e.params={keywords:Ys()}),e)):("rubicon"!==e.bidder&&(e.params?e.params.keywords=Ys():e.params={keywords:Ys()}),e):null).filter(e=>e).reduce((e,t)=>Array.isArray(t)?[...e,...t]:t?[...e,t]:e,[]))({id:e,bidders:t});return{code:e,mediaTypes:o,bids:a}});return ne("prebidAdConfig: ",n),n},Lp=(e,t,n,i)=>{const r=Nd.filter(e=>e.instreamVideoParams).map(e=>e.instreamVideoParams&&e.instreamVideoParams()),o={ext:{data:{jwTargeting:{playerID:t,mediaID:e}},marketplace:{allowedbidders:["pubmatic"]}}};return Ip(Ip({},Bd(n,i)),{},{bids:r,ortb2Imp:o})};let Tp=!1;const Cp=()=>{var e;const t=[{name:"permutive",waitForIt:!0,params:{acBidders:["appnexus","pubmatic","ix","magnite"]}},{name:"brandmetrics",waitForIt:!0,params:{bidders:["ozone"]}},{name:"greenbidsRtdProvider",waitForIt:!0,params:{pbuid:"the-independent-pbuid",timeout:200}}];return[B].includes(Pp)&&t.push({name:"nodalsAi",waitForIt:!0,params:{propertyId:"1ae3c719"}}),null!==(e=JSGlobals.article)&&void 0!==e&&e.heroMediaId&&t.push({name:"jwplayer",waitForIt:!0,params:{mediaIDs:[JSGlobals.article.heroMediaId]}}),t},$p=async e=>{if(Tp)return;await(async e=>await ae([JSGlobals.manifest[e?"prebid.js":"prebid_non_uk.js"]]))(e);const t=await new Promise(e=>{const t=window.pbjs||{};t.que=t.que||[];const n=jp?Ge(l):null;t.que.push(function(){t.setConfig({appnexusAuctionKeywords:{perid:localStorage.getItem("cohort_ids")?JSON.parse(localStorage.getItem("cohort_ids")||"[]"):[]},useBidCache:!0,bidCacheFilterFunction:e=>"video"!==e.mediaType,realTimeData:{auctionDelay:200,dataProviders:Cp()},fledgeForGpt:{enabled:!0,defaultForSlots:1},consentManagement:Ip({usp:{cmpApi:"iab",timeout:50}},[B,V].includes(Pp)&&{gdpr:{cmpApi:"iab",defaultGdprScope:!0,timeout:6e3,rules:[{purpose:"storage",enforcePurpose:!0,enforceVendor:!0,vendorExceptions:["permutive"]},{purpose:"basicAds",enforcePurpose:!0,enforceVendor:!0,vendorExceptions:[]}]}}),currency:{adServerCurrency:"USD",granularityMultiplier:1},priceGranularity:Ud,userSync:{userIds:[{name:"teadsId",params:{pubId:5668}},{name:"identityLink",params:{pid:Be,notUse3P:!0},storage:{type:"cookie",name:"idl_env",expires:15,refreshInSeconds:43200}},{name:"pairId",params:{liveramp:{storageKey:"_lr_pairId"}}},...xp?[{name:"id5Id",params:{partner:1646,externalModuleUrl:"https://cdn.id5-sync.com/api/1.0/id5PrebidModule.js",pd:kp(n||"",Ge(a)||"",navigator.userAgent)},storage:{type:"html5",name:"id5id",expires:90,refreshInSeconds:7200}}]:[]],filterSettings:{iframe:{bidders:Nd.map(e=>e.bidderName),filter:"include"}},syncDelay:3e3},enableTIDs:!0});const i=Ys(),r=[];i&&i.pageType&&(Array.isArray(i.pageType)?r.push(...i.pageType):"string"==typeof i.pageType&&r.push(i.pageType)),t.setBidderConfig({bidders:["rubicon"],config:{ortb2:{user:{ext:{data:Ip(Ip({},i),{},{pageType:r})}}}}}),t.setBidderConfig({bidders:["appnexus"],config:{ortb2:{user:{keywords:localStorage.getItem("cohort_ids")?JSON.parse(localStorage.getItem("cohort_ids")||"").map(e=>`perid=${e}`).join(", "):[]}}}},!0),t.setBidderConfig({bidders:["criteo","smartadserver"],config:{ortb2:{user:{data:[{name:"anonymised.io",ext:{segtax:1e3},segment:localStorage.getItem("cohort_ids")?JSON.parse(localStorage.getItem("cohort_ids")||"").map(e=>({id:e})):[]}]}}}},!0),t.setBidderConfig({config:{fledgeEnabled:!0,defaultForSlots:1}},!0),t.setBidderConfig({bidders:["aliasName"],config:{forceBidderName:"trustx"}}),t.enableAnalytics([{provider:"atsAnalytics",options:{pid:Be}}]),t.enableAnalytics({provider:"greenbids",options:{pbuid:"the-independent-pbuid",greenbidsSampling:.01}}),xp&&t.enableAnalytics({provider:"id5Analytics",options:{partnerId:1646}}),t.bidderSettings=Ip(Ip({},t.bidderSettings),{},{grid:{bidCpmAdjustment:(e,t)=>(console.log(`Bidder is: ${t.bidderCode}`),.7*e)},adagio:{storageAllowed:!0},amx:{storageAllowed:!0}});const o=Dp(Wd,Nd);t.addAdUnits(o),e(t)})});if([G].includes(Pp)&&Ep)try{await(async e=>Promise.race([up(e),new Promise((e,t)=>setTimeout(()=>t(new Error("Intent setup timed out")),500))]))(t)}catch(e){re("Error adding bid enhancement:",e)}Tp=!0};function Rp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function Mp(e){for(var t=1;t{const r=window.pbjs||{};r.que=r.que||[];const o=Lp(e,t,n,i),a={buckets:[{precision:2,min:0,max:3,increment:.01},{precision:2,min:3,max:8,increment:.05},{precision:2,min:8,max:20,increment:.5},{precision:2,min:20,max:35,increment:1}]};return new Promise(e=>{r.que.push(()=>{r.setConfig({cache:{url:"https://prebid.adnxs.com/pbc/v1/cache"},mediaTypePriceGranularity:{video:a},floors:{data:{schema:{fields:["adUnitCode"]},values:{hero_player:.2}}}}),r.addAdUnits(o),r.requestBids({adUnitCodes:[n],timeout:3e3,bidsBackHandler:()=>{e()}})})})},Up=async(e,t,n,i,r,o)=>{await Yd();const a=Lp(e,t,n,r),s=[Np(e,t,n,r),"in_indybest"!==JSGlobals.category2&&Qd(n)],[,c]=await Promise.all(s);return window.pbjs.adServers.dfp.buildVideoUrl(Mp(Mp({},o?{url:o}:{}),{},{adUnit:a,output:"vast",params:{iu:i,cust_params:c}}))},Bp=async(e,t,n,i)=>Mp({hb_uuid:void 0,hb_cache_id:void 0},await(async()=>{if(!Tp)return{};await Np(e,t,n,i);return window.pbjs.getAdserverTargetingForAdUnitCode([n])})()),Gp=async()=>{if("cookieDeprecationLabel"in navigator){return await navigator.cookieDeprecationLabel.getValue()||""}return""},Vp=()=>{const e=window.localStorage.getItem(a);return e?e.replace(/-/g,""):""};function Jp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function zp(e){for(var t=1;tlocation.pathname.startsWith("/tv/"),Hp=()=>{return Wp()?"videohub":(null===(e=JSGlobals)||void 0===e||null===(e=e.pageId)||void 0===e?void 0:e.replace(/\D/g,""))||"";var e},Fp=(e,t)=>{if((()=>{const e=window.innerWidth;return e/window.innerHeight<1&&e<768})()&&!(()=>{const e=document.querySelector(".video-top-container.video");return!(null==e||!e.classList.contains("sticky"))})()&&(e=>e.ima.ad.getVastMediaWidth()/e.ima.ad.getVastMediaHeight()<1)(t)){e.getContainer().classList.add("fullscreen"),e.isFullscreen=!0,e.originalHeight=e.getHeight(),e.resize("100%","100%")}},Yp=e=>e.getFloating()?"float":"hero",Kp=(e,t,n)=>{const i=t;return!n.includes(i)&&(e>=t&&(n.push(i),!0))},Qp=(e,t,n,i="")=>{const r=t/4,o=Kp(e,r,n),a=Kp(e,2*r,n),s=Kp(e,3*r,n),c=Kp(e,t-.5,n);return ne(`${i} > ${o?1:0} ${a?1:0} ${s?1:0} ${c?1:0} ${e.toFixed(2)}:${t}`),o||a||s||c},Xp=()=>({url:window.location.href,type:"web",domain:window.location.hostname,user_agent:navigator.userAgent}),Zp=e=>!(qp||!e||!window.JSGlobals.permutive),eu=e=>{const t=e.adtitle,n=e.adsystem;return{duration:(e=>{const t=String(e).split(":").map(parseFloat),n=t.pop();return Math.floor(t.reduce((e,t)=>60*t+e,n))})(e.duration),advertiser_name:"",ad_system:n,description:"",universal_ad_id_registry:"",creative_id:"",ad_id:"",min_suggested_duration:30,title:t,universal_ad_id:"",deal_id:""}},tu=e=>{const t=e.mediaid,n=e.title,i=e.tags?e.tags.split(","):[],r=e.description,o=e.duration,a=e.updated_at,s=new Date(0);return s.setUTCSeconds(e.pubdate),{duration:o,name:n,custom_fields:[],video_id:t,description:r,tags:i,created_at:a,published_at:s}},nu=(e,t)=>{ne(`permutiveEventTracking ${e}`),window.permutive.track(e,t)},iu=e=>e.getPlaylistItem(e.getPlaylistIndex()),ru=e=>{var t,n,i,r;e.searchParams.set("sz","640x480"),e.searchParams.set("iu",JSGlobals.videoAdUnitPath),e.searchParams.set("impl","s"),e.searchParams.set("gdfp_req","1"),e.searchParams.set("ad_rule","0"),e.searchParams.set("env","vp"),e.searchParams.set("output","vast"),e.searchParams.set("unviewed_position_start","1"),e.searchParams.set("description_url",wp),e.searchParams.set("correlator",vp),e.searchParams.set("gdpr",fp),JSGlobals.cmp.enabled&&(e.searchParams.set("gdpr_consent",hp),e.searchParams.set("addtl_consent",yp)),e.custParams.set("videoID",null===(t=JSGlobals)||void 0===t||null===(t=t.article)||void 0===t?void 0:t.heroMediaId),e.custParams.set("article",Hp()),e.custParams.set("playerstate","hero"),e.custParams.set("topictags",(null===(i=JSGlobals)||void 0===i||null===(i=i.topictags)||void 0===i?void 0:i.join())||""),e.custParams.set("referrer",document.referrer.split("?")[0]),e.custParams.set("mantis",(null===(r=JSGlobals.mantis_channels)||void 0===r||null===(r=r.ratings)||void 0===r?void 0:r.length)&&Hs(JSGlobals.mantis_channels.ratings)),e.custParams.set("pixels",(()=>{var e;return null!==(e=JSGlobals.article)&&void 0!==e&&e.autoVideo?"video swapped"===JSGlobals.article.autoVideo?"swapped":"reset":""})()),e.custParams.set("permutive",JSON.parse(localStorage._pdfps||"[]").slice(0,250).join(","));const o=JSON.parse(localStorage.getItem(Ce)||"[]");e.custParams.set("Anonymised",o.join(",")),e.custParams.set("contentSources",(null===(n=JSGlobals.contentSources)||void 0===n?void 0:n.toString())||""),(Ro()||ep(Zd))&&e.custParams.set("bulletin",(!0).toString())},ou=e=>{const t=new bp(e);return ru(t),t},au=async(e,{containerId:t,mediaId:n,adUnitCode:i,adUnitPath:r})=>{const o=ou(e);o.custParams.set("playerType","jwplayer");const a=Wp();o.custParams.set("plcmt",a?1:2);const s=await Gp();s.length&&o.custParams.set("chrome_facilitated_testing",s);const c=Vp();c&&o.custParams.set("ppid",c);const l=await(async(e,t,n)=>{await Yd();const i=[Qd(n),Bp(t,e,n,[640,480])];return(await Promise.allSettled(i)).reduce((e,t)=>"fulfilled"===t.status?zp(zp({},e),t.value):(ie(t.reason),e),{})})(t,n,i);return Object.entries(l).forEach(([e,t])=>{o.custParams.set(e,t)}),o.toString()};function su(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function cu(e){for(var t=1;t{let e=(new Date).getTime();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(t){const n=(e+16*Math.random())%16|0;return e=Math.floor(e/16),("x"===t?n:3&n|8).toString(16)})})(),nu("VideoLoad",{video:tu(e),play_id:this.playSessionId,auto_start:!1})),ra(jwplayer),this.adCount=0,Et("JWPlayerReady")},du=function(){if(this.timeElapsed=[],this._isPlacement){const e=window.jwDataStore.custom[this._placementId].ad_tag,t=new bp(e),n=this.getConfig().autostart;t.custParams.set("vpa",n?"auto":"click");const i=Yp(this);t.custParams.set("playerstate",i),t.searchParams.set("adCount",this.adCount++);const r=t.custParams.get("adpos");t.custParams.set("adpos",r?Number(r)+1:0),window.jwDataStore.custom[this._placementId].ad_tag=t.toString()}},pu=e=>{var t;return!(null===(t=e.advertising)||void 0===t||null===(t=t.schedule)||void 0===t||!t.some(e=>"pre"===e.offset))},uu=async function({state:e}){const t=this.getConfig();if(pu(t)&&"idle"===e){var n;const e=(null===(n=this.getConfig().advertising)||void 0===n?void 0:n.tag)||this._preRollTag,t=new bp(e),i=this.getConfig().autostart;t.custParams.set("vpa",i?"auto":"click");const r=Yp(this);null==t||t.custParams.set("playerstate",r);const o=t.toString();this.loadAdTag(o)}},mu=function(){if(this._hasShownPostRollAd)return;this._hasShownPostRollAd=!0;const e=this.getConfig();if(pu(e)&&this._postRollTag){const e=this._postRollTag,t=new bp(e),n=this.getConfig().autostart;t.custParams.set("vpa",n?"auto":"click");const i=Yp(this);null==t||t.custParams.set("playerstate",i);const r=t.toString();this.loadAdTag(r)}},bu=function(){this.adTimeElapsed=[]},gu=function(){var e;(e=this).isFullscreen&&(e=>{e.getContainer().classList.remove("fullscreen"),e.isFullscreen=!1,e.resize("100%",e.originalHeight)})(e);const t=iu(this);Zp(this.consent)&&nu("VideoPlay",{video:cu(cu({},tu(t)),{},{watch_count:1}),play_id:this.playSessionId,auto_start:!0})},_u=function(){const e=iu(this),t=this.playerNow.getTime();Zp(this.consent)&&nu("VideoEvent",{timestamp:t,event:"PressedPause",video:cu(cu({},tu(e)),{},{watch_count:1}),play_id:this.playSessionId})},wu=function(e){const t=iu(this);Zp(this.consent)&&nu("VideoProgress",{seeked:!0,progress:e.offset,video:cu(cu({},tu(t)),{},{watch_count:1}),client:Xp(),play_id:this.playSessionId})},vu=function(e){const t=iu(this);Qp(e.position,e.duration,this.timeElapsed,"video")&&Zp(this.consent)&&nu("VideoProgress",{seeked:!1,progress:e.position,video:cu(cu({},tu(t)),{},{watch_count:1}),client:Xp(),play_id:this.playSessionId})},fu=function(e){Fp(this,e)},hu=function(e){if(Qp(e.position,e.duration,this.adTimeElapsed,"ad")){const t=iu(this);Zp(this.consent)&&nu("VideoAdProgress",{progress:e.position,video:cu(cu({},tu(t)),{},{watch_count:1}),ad:eu(e),play_id:this.playSessionId})}},yu=function(e){const t=iu(this);Zp(this.consent)&&nu("VideoAdPlay",{video:cu(cu({},tu(t)),{},{watch_count:1}),ad:cu(cu({},eu(e)),{},{description:"ad"}),play_id:this.playSessionId})},ku=function(e){var t;const n=iu(this),i=null===(t=e.ima)||void 0===t||null===(t=t.ad)||void 0===t||null===(t=t.data)||void 0===t?void 0:t.clickThroughUrl,r=this.playerNow;Zp(this.consent)&&nu("VideoAdClick",{video:cu(cu({},tu(n)),{},{description:i,watch_count:1,published_at:r}),ad:cu(cu({},eu(e)),{},{description:"ad"}),client:Xp(),play_id:this.playSessionId})},Su=function(e){const{adsManager:t,videoElement:n}=e,i=JSGlobals.adNetworkId,r=this.getWidth(),o=this.getHeight();if(i&&window.googleImaVansAdapter){const e={anId:i,campId:`${r}x${o}`,chanId:JSGlobals.videoAdUnitPath,placementId:"Open Auction",pubOrder:"Video",pubId:"Direct",pubCreative:"Default Creative"};window.googleImaVansAdapter.init(window.google,t,n,e)}},Ou=function(){if(this.nextUrl){const e=new URL(window.location).searchParams.get("ap")||0,t=new URL(this.nextUrl,window.location.origin);t.searchParams.set("ap",Number(e)+1),window.location.href=t.toString()}},Iu=(e={})=>"true"===e[d]?"premium":"true"===e[c]?"registered":"anonymous";const Pu=async()=>{try{const e=await(async()=>{try{let e;return await braze.getDeviceId(t=>e=t),e}catch(e){return re(`Unable to retrieve Braze device id: ${e.message}`),null}})();if(!e)throw new Error("Error: failed to retrieve Braze device id");const t=await fetch(`/api/user/braze-generated-id?device_id=${e}`),n=await t.json();if(t.ok)return n.generatedBrazeId;throw new Error(n.message)}catch(e){return re(`Unable to retrieve generated Braze id: ${e.message}`),null}},Eu=(e=[])=>{document.addEventListener(be,async()=>{const t=[...e],n=await Pu();n&&(t.push({id:n,tag:"braze_id",priority:3}),permutive.identify(t))})};async function ju(){var e;const t=[],n=Ge(o),i=Ge(l),r=Ge("_cb"),a=!!n,s=await(async(e=!1,t)=>e?window.braze?await Pu():(Eu(t),null):null)(a,t),c=null===(e=permutive.context)||void 0===e?void 0:e.user_id;n&&t.push({id:n,tag:"piano_id",priority:0},{id:i,tag:"user_email",priority:1},{id:i,tag:"email_sha256",priority:2},{id:r,tag:"chartbeat_id",priority:4}),s&&t.push({id:s,tag:"braze_id",priority:3}),c&&t.push({id:c,tag:"permutive_id",priority:5}),t.length&&permutive.identify(t)}const xu=e=>!!window.permutive,Au=e=>e instanceof Element,Du=e=>e instanceof HTMLElement;function Lu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function Tu(e){for(var t=1;t{if(window.JSGlobals.permutive){const{workspaceId:e,organizationId:t}=window.JSGlobals.permutive;!function(){const{apiKey:e,workspaceId:t}=window.JSGlobals.permutive;!function(e,t,n){if(!e){e=e||{},window.permutive=e,e.q=[],e.config={consentRequired:!0}||{},e.config.apiKey=t,e.config.workspaceId=n,e.config.environment=e.config.environment||"production",(window.crypto||window.msCrypto)&&(e.config.viewId=([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,function(e){return(e^(window.crypto||window.msCrypto).getRandomValues(new Uint8Array(1))[0]&15>>e/4).toString(16)}));for(var i=["addon","identify","track","trigger","query","segment","segments","ready","on","once","user","consent"],r=0;r{if(!xu(window.permutive))return;const n={comparison:e,affiliate:t};window.permutive.track("AffiliateLinkClick",n)};let Ru=!1;const Mu=[];let Nu;const Uu=async(e,t)=>{try{window.JSGlobals.permutive&&e&&xu(window.permutive)?(window.permutive.consent({opt_in:!0,token:t}),await(async()=>{var e,t;await ju();const n=null!==(e=Y("birth_year"))&&void 0!==e?e:"",i=null!==(t=Y(o))&&void 0!==t?t:"";xu(window.permutive)&&window.permutive.track("PianoProfile",{birth_year:parseInt(n),piano_user_status:Iu(document.cookie.trim().split(";").reduce((e,t)=>{if(!t)return e;const[n]=t.split("=");return F(F({},e),{},{[n.trim()]:Y(n.trim())})},{})),piano_id:i})})(),(()=>{var e;const t=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"][(new Date).getDay()];null!==(e=window.JSGlobals.permutive)&&void 0!==e&&e.data&&xu(window.permutive)&&window.permutive.addon("web",Tu(Tu(Tu({},window.JSGlobals.permutive.data),window.JSGlobals.permutive.data.page?{}:{page:{}}),{},{context:{day_of_week:t}}))})(),(()=>{const e=()=>{var e,t,n;const i=Tu({},null!==(e=null===(t=window.JSGlobals.permutive)||void 0===t?void 0:t.data)&&void 0!==e?e:{});null!==(n=i.page)&&void 0!==n&&n.content&&xu(window.permutive)&&(i.page.content.type="gallery",window.permutive.addon("web",{page:{},galleryData:i}))};[...document.querySelectorAll(`.${D}, .${A}`)].forEach(t=>{t.addEventListener("click",e)})})(),document.querySelectorAll(".body-link[data-vars-item-name]").forEach(e=>e.addEventListener("click",function(e){const t=e.currentTarget;if(!Au(t))return;const n=t.parentNode;if(!Au(n))return;let i=n.previousSibling;for(;i&&"H2"!==i.nodeName;)if(i=i.previousSibling,i&&"H2"===i.nodeName){var r;/(.*):[^\d]*([\d.,\s]*),(.*)$/.exec(null!==(r=i.textContent)&&void 0!==r?r:"")&&$u({comparison:!1,affiliate:""});break}})),[...document.getElementsByClassName("js-product")].forEach(e=>{if(!Du(e))return;const{affiliate:t}=e.dataset,n=e.querySelectorAll(".js-product-buy"),i=e.querySelector(".js-price-comparison");i&&i.addEventListener("click",e=>{if(Au(e.target)&&e.target.className.includes("js-price-comparison-button")){const t=e.target.closest(".js-price-comparison-item");if(!Du(t))return;const{affiliate:n}=t.dataset;$u({comparison:!0,affiliate:n})}}),n.forEach(e=>{e.addEventListener("click",()=>{$u({comparison:!1,affiliate:t})})})})):Nu=!0}catch(e){console.error("Failed to pass content to permutive",e.message)}};const Bu=()=>{try{permutive.readyWithTimeout=async(e,t,n)=>{await Promise.race([new Promise(e=>setTimeout(e,n)),new Promise(e=>permutive.ready(e,t))]),e()}}catch(e){console.error("Failed to init permutive.readyWithTimeout",e.message)}},Gu=()=>{var e;return null!==(e=JSGlobals.article)&&void 0!==e&&e.autoVideo?"video swapped"===JSGlobals.article.autoVideo:null},Vu=()=>{var e;const t="true"===Ge(d)||null!==(e=JSGlobals.article)&&void 0!==e&&e.premium?"independent-premium":Wp()?"videohub":"independent-regular";return{setTimeEvents:!0,isSwapped:!!Gu(),jwplayerSiteId:JSGlobals.jwplayerSiteId,skin:{name:t}}};function Ju(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function zu(e){for(var t=1;t{e.nextUrl=t,e.isFullscreen=!1,e.consent=n||!1,e.playerNow=new Date,e.on("ready",lu),e.on("playlistItem",du),e.on("beforePlay",uu),e.on("beforeComplete",mu),e.on("adRequest",bu),e.on("play",gu),e.on("pause",_u),e.on("seek",wu),e.on("time",vu),e.on("adImpression",fu),e.on("adTime",hu),e.on("adPlay",yu),e.on("adClick",ku),e.on("adsManager",Su),e.on("complete",Ou)},Hu=async(e,t)=>{var n;const i=document.getElementById(e),r=i.dataset.adUnitCode,o=JSGlobals.videoAdUnitPath,a=i.dataset.mediaId,s=await au(qu,{containerId:e,mediaId:a,adUnitCode:r,adUnitPath:o}),c=await(async(e,{adUnitPath:t})=>{const n=ou(e);n.custParams.set("playerType","jwplayer");const i=Wp();n.custParams.set("plcmt",i?1:2);const r=await Gp();r.length&&n.custParams.set("chrome_facilitated_testing",r);const o=Vp();return o&&n.custParams.set("ppid",o),n.searchParams.set("iu",t),n.toString()})(qu,{adUnitPath:[...((null===(n=JSGlobals)||void 0===n?void 0:n.videoAdUnitPath)||"").split("/").slice(0,-1),"ignite_video"].join("/")}),l=jwplayer(e).setup(t);return l._preRollTag=s,l._postRollTag=c,l},Fu=async({containerId:e,options:t,nextUrl:n,consent:i})=>{Pt("JWPlayerSetup");const r=await Hu(e,t);Wu(r,{nextUrl:n,consent:i}),Et("JWPlayerSetup")},Yu=async(e,t)=>{e.forEach(async e=>{const n=e.id,i=e.dataset.jwplayerPlayerType,r=JSON.parse(e.dataset.jwplayerData),o=e.dataset.jwplayerNextUrl;(e=>{const{consent:t}=e;Zp(t)?permutive.readyWithTimeout(Fu.bind(void 0,e),"realtime",2500):Fu(e)})({containerId:n,playerType:i,options:zu(zu({},r),Vu()),nextUrl:o,consent:t})})},Ku=async e=>{const t=document.querySelectorAll("[data-jwplayer]"),n=document.querySelectorAll("[data-jw-placement-id]");"function"==typeof jwplayer&&t.length>0?await Yu(t,e):document.addEventListener("jwplayerLoaded",async()=>{await Ku(e)}),n.length>0&&await(async(e,t)=>{window.jwDataStore={custom:{}};const n=document.querySelectorAll(".jw-data-store")||[];await Promise.all(Array.from(n).map(async e=>{const t=e.dataset.placementId;let n={};try{n=JSON.parse(e.textContent)}catch(e){ie(e)}n.ad_tag=await au(`${qu}?sz=640x480&iu=/71347885/_main_independent&impl=s&gdfp_req=1&ad_rule=0&env=vp&output=vast&unviewed_position_start=1&description_url=__page-url__&correlator=__timestamp__`,{containerId:e.dataset.target,mediaId:n.media_id,adUnitCode:n["ad-unit-code"],adUnitPath:JSGlobals.videoAdUnitPath}),window.jwDataStore.custom[t]=n})),await ae([`https://cdn.jwplayer.com/v2/sites/${JSGlobals.jwplayerSiteId}/placements/embed.js`]),await Promise.all([...e].map(async e=>{var n;const i=e.dataset.jwPlacementId,r=await(null===(n=jwplacements)||void 0===n?void 0:n._getPlacementReadyPromise(i));var o;null!=r&&r.player&&(r.player._placementId=i,r.player._isPlacement=!0,Wu(r.player,{nextUrl:null===(o=jwDataStore.custom[i])||void 0===o?void 0:o["next-url"],consent:t}))}))})(n,e)};const Qu=(e,t)=>{const n=document.getElementById("loginButton"),i=document.getElementById("registerLink");i&&i.setAttribute("href",function(e,t){if(!e&&!t)return"/register";const n=new URLSearchParams;return e&&n.append(Gt,e),t&&n.append("regSourceSection",t),`/register?${n.toString()}`}(e,t)),localStorage.setItem("returnUrl",window.location.href),localStorage.setItem("regSourceMethod",e),localStorage.setItem("regSourceSection",t),n&&n.click()};function Xu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function Zu(e){for(var t=1;tnull==$m?void 0:$m.classList.contains("sticky"),Um=e=>{Mm=!1,Cm.classList.remove("show"),Cm.onclick=null,Tm.classList.remove("fullscreen"),pixels(e).resize("100%",Rm)},Bm=(e,t)=>{Lm&&!Nm()&&(e=>{var t,n;const i=null==e||null===(t=e.ima)||void 0===t||null===(t=t.ad)||void 0===t||null===(t=t.g)||void 0===t?void 0:t.vastMediaWidth,r=null==e||null===(n=e.ima)||void 0===n||null===(n=n.ad)||void 0===n||null===(n=n.g)||void 0===n?void 0:n.vastMediaHeight;return!(!i||!r)&&i/r<1})(t)&&(Mm=!0,setTimeout(function(){Cm.classList.add("show"),Cm.onclick=Um.bind(this,e)},3e3),Tm.classList.add("fullscreen"),Rm=pixels(e).getHeight(),pixels(e).resize("100%","100%"))},Gm=()=>{const e=(()=>{var e;return null!==(e=JSGlobals.article)&&void 0!==e&&e.autoVideo?"video swapped"===JSGlobals.article.autoVideo:null})();return null===e?"":"&pixels="+(e?"swapped":"reset")};(async()=>{jm=await Gp()})();const Vm=(e,t,n,i)=>{var r,o,a,s;const c=Vp(),l=tp(Vt),d=pixels(e).getConfig().autostart,p=location.pathname.startsWith("/tv/");let m,b="";if(b+=`videoID=${n}`,b+="&vpa="+(d?"auto":"click"),b+=`&article=${null===(r=JSGlobals.pageId)||void 0===r?void 0:r.replace(/\D/g,"")}`,b+=`&playerType=${i}`,b+=`&topictags=${JSGlobals.topictags&&JSGlobals.topictags.join()}`,b+=((e={})=>{var t;return null!=e&&null!==(t=e.ratings)&&void 0!==t&&t.length?`&mantis=${Hs(e.ratings)}`:""})(JSGlobals.mantis_channels),b+=Gm(),b+=`&chrome_facilitated_testing=${jm}`,b+=`&referrer=${digitalData.page_previous_url||""}`,b+="&plcmt="+(p?1:2),b+=`&contentSources=${(null===(o=JSGlobals.contentSources)||void 0===o?void 0:o.toString())||""}`,ep(Zd)&&(b+="&bulletin=true"),l&&(b+=`&${Vt}=${l}`),c&&(b+=`&ppid=${c}`),wm){b+=`&${`permutive=${encodeURIComponent(JSON.parse(localStorage._pdfps||"[]").slice(0,250).join(","))}`}`}const g=JSON.parse(localStorage.getItem(Ce)||"[]");b+=`&Anonymised=${encodeURIComponent(g.join(","))}`;b+="&adpos=0",b+="&playerstate=hero",b+=`&adobe-visit-id=${null!==(a=null===(s=window.s_object)||void 0===s?void 0:s.marketingCloudVisitorID)&&void 0!==a?a:""}`,m=encodeURIComponent(b);try{const e=new URL(t),n=new URLSearchParams(e.search);t=n.has("cust_params")?""!==n.get("cust_params")?t.replace(/(cust_params[^&]+)/,`$1%26${m}`):t.replace(/(cust_params[^&]+)/,`$1${m}`):`${t}&cust_params=${m}`,n.has("ad_rule")||(t=`${t}&ad_rule=0`);const i=Ge("gdpr","1");t+=`&gdpr=${i}`,"1"===i&&(t+=`&gdpr_consent=${Ge(u,"none")}`,t+=`&addtl_consent=${Ge("addtl_consent","none")}`);const r=JSGlobals.videoAdUnitPath;r&&(t=t.replace(/(iu=).*?(&)/,`$1${r}$2`))}catch(e){}return t},Jm=(e,t)=>e=e.replace(/(adpos%3D).*?(%26)/,`$1${t-1}$2`),zm=e=>{const t=Nm()?"float":"hero";return e=e.replace(/(playerstate%3D).*?(&)/,`$1${t}$2`)},qm=(e,t)=>!km.includes(t)&&(Math.floor(e)===t&&(km.push(t),!0)),Wm=(e,t)=>!Om.includes(t)&&(Math.floor(e)===t&&(Om.push(t),!0)),Hm=(e,t)=>{wm&&(ne(`permutiveEventTracking ${e}`),window.permutive.track(e,t))},Fm=({containerId:e,options:t,defaultAdTag:n=""})=>{Pt("PixelsPlayerSetup"),pixels(e).setup(t),ra(pixels(e).getVideoPlayerInstance()),pixels(e).on("ready",async()=>{Pt("PixelsPlayerReady"),gm=wm&&(()=>{let e=(new Date).getTime();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(t){const n=(e+16*Math.random())%16|0;return e=Math.floor(e/16),("x"===t?n:3&n|8).toString(16)})})(),am=pixels(e).getMediaId(),bm=n||pixels(e).getAdTag()||"",bm=Vm(e,bm,am,xm),pixels(e).setAdTag(bm),ne("adTag:",bm),Hm("VideoLoad",{video:{duration:lm,name:sm,custom_fields:[],video_id:am,description:cm,tags:Em,created_at:pm,published_at:um},play_id:gm,auto_start:!1}),Et("PixelsPlayerReady")}),pixels(e).on("playlistItem",function(){Sm=!0,rm=pixels(e).getPlaylistIndex(),om=pixels(e).getPlaylistItem(rm),am=om.mediaid,sm=om.title,""!==om.tags&&void 0!==om.tags&&(Em=om.tags.split(",")),cm=om.description,lm=om.duration,pm=om.updated_at,um=new Date(0),um.setUTCSeconds(om.pubdate),mm=Math.floor(lm/4),km=[],Om=[],bm=Jm(bm,ym),pixels(e).setAdTag(bm),ym+=1}),pixels(e).on("beforePlay",async()=>{bm=zm(bm),pixels(e).setAdTag(bm),ne("adTag:",bm),Sm&&(pixels(e).trigger("wt:adReq",{adsRequest:{adTagUrl:bm}}),Sm=!1)}),pixels(e).on("play",function(){Mm&&Um(),Hm("VideoPlay",{video:{duration:lm,name:sm,custom_fields:[],video_id:am,description:cm,tags:Em,watch_count:1,created_at:pm,published_at:um},play_id:gm,auto_start:!0})}),pixels(e).on("pause",function(){Hm("VideoEvent",{timestamp:im.getTime(),event:"PressedPause",video:{duration:lm,name:sm,custom_fields:[],video_id:am,description:cm,tags:Em,watch_count:1,created_at:pm,published_at:um},play_id:gm})}),pixels(e).on("seek",function(e){Hm("VideoProgress",{seeked:!0,progress:e.offset,video:{duration:lm,name:sm,custom_fields:[],video_id:am,description:cm,tags:Em,watch_count:1,created_at:pm,published_at:um},client:{url:window.location.href,type:"web",domain:window.location.hostname,user_agent:navigator.userAgent},play_id:gm})}),pixels(e).on("time",function(e){(qm(e.position,mm)||qm(e.position,2*mm)||qm(e.position,3*mm)||qm(e.position,lm))&&Hm("VideoProgress",{seeked:!1,progress:e.position,video:{duration:e.duration,name:sm,custom_fields:[],video_id:am,description:cm,tags:Em,watch_count:1,created_at:pm,published_at:um},client:{url:window.location.href,type:"web",domain:window.location.hostname,user_agent:navigator.userAgent},play_id:gm})}),pixels(e).initPlaylistPrebidCallback(async t=>{const n=JSGlobals.videoAdUnitPath,i=n.split("/").pop();let r=await Up(t,e,i,n,[640,480]);return r=Vm(e,r,t,xm),r=Jm(r,ym),r=zm(r),r}),pixels(e).on("adImpression",function(t){vm=t.adtitle,fm=t.clickThroughUrl,hm=t.adsystem,Bm(e,t)}),pixels(e).on("adTime",function(e){Pm&&e.position>0&&(Im=parseInt(e.duration,10),_m=Math.floor(lm/4),Pm=!1),(Wm(e.position,_m)||Wm(e.position,2*_m)||Wm(e.position,3*_m)||Wm(e.position,Im))&&Hm("VideoAdProgress",{progress:e.position,video:{duration:lm,name:sm,custom_fields:[],video_id:am,description:cm,tags:Em,watch_count:1,created_at:pm,published_at:um},ad:{duration:Im,advertiser_name:"",ad_system:hm,description:"",universal_ad_id_registry:"",creative_id:"",ad_id:"",min_suggested_duration:30,title:vm,universal_ad_id:"",deal_id:""},play_id:gm})}),pixels(e).on("adPlay",function(){Hm("VideoAdPlay",{ad:{duration:Im,advertiser_name:"",ad_system:hm,description:"ad",universal_ad_id_registry:"",creative_id:"",ad_id:"",min_suggested_duration:30,title:vm,universal_ad_id:"",deal_id:""},video:{duration:lm,name:sm,custom_fields:[],video_id:am,description:cm,tags:Em,watch_count:1,created_at:pm,published_at:um},play_id:gm})}),pixels(e).on("adClick",function(){Hm("VideoAdClick",{ad:{duration:Im,advertiser_name:"",ad_system:hm,description:"Ad",universal_ad_id_registry:"",creative_id:"",ad_id:"",min_suggested_duration:30,title:vm,universal_ad_id:"",deal_id:""},video:{name:vm,custom_fields:[],video_id:am,description:fm,tags:Em,watch_count:1,created_at:pm,published_at:im},client:{url:window.location.href,type:"web",domain:window.location.hostname,user_agent:navigator.userAgent},play_id:gm})}),pixels(e).on("adsManager",function(e){const{adsManager:t,videoElement:n}=e,i=JSGlobals.adNetworkId;if(i&&window.googleImaVansAdapter){const e={anId:i,campId:`${Am}x${Dm}`,chanId:JSGlobals.videoAdUnitPath,placementId:"Open Auction",pubOrder:"Video",pubId:"Direct",pubCreative:"Default Creative"};window.googleImaVansAdapter.init(window.google,t,n,e)}}),Et("PixelsPlayerSetup")},Ym=e=>{const{containerId:t,options:n}=e;pixels(t).initPlayer(n.playerId,Fm.bind(void 0,e))},Km=e=>{wm?permutive.readyWithTimeout(Ym.bind(void 0,e),"realtime",2500):Ym(e)},Qm=()=>{let e=(new Date).getTime();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(t){const n=(e+16*Math.random())%16|0;return e=Math.floor(e/16),("x"===t?n:3&n|8).toString(16)})},Xm=(e,t)=>{var n;ne(`permutive tracking ${e}`),null===(n=window.permutive)||void 0===n||n.track(e,t)};function Zm(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function eb(e){for(var t=1;t{const t=e.detail,n=Qm();let i={};Pt("PrimisPlayerInit"),ne("primis","primisPlayerInit",t),Xm("VideoLoad",{video:i,player_id:n,auto_start:!1}),null==t||t.addEventListener("videoStart",function(e){ne("primis","videoStart",e),i=e,Xm("VideoPlay",{video:eb(eb({},i),{},{watch_count:1}),play_id:n,auto_start:!0})}),null==t||t.addEventListener("adStarted",function(e){ne("primis","adStarted",e)}),null==t||t.addEventListener("adPlay",function(...e){ne("primis","adPlay",e),Xm("VideoAdPlay",{video:eb(eb({},i),{},{watch_count:1}),ad:{}})}),null==t||t.addEventListener("adFirstQuartile",function(...e){ne("primis","adFirstQuartile",e),Xm("VideoAdProgress",{progress:"25%",video:eb(eb({},i),{},{watch_count:1}),ad:{}})}),null==t||t.addEventListener("adMidQuartile",function(...e){ne("primis","adMidQuartile",e),Xm("VideoAdProgress",{progress:"250%",video:eb(eb({},i),{},{watch_count:1}),ad:{}})}),null==t||t.addEventListener("adThirdQuartile",function(...e){ne("primis","adThirdQuartile",e),Xm("VideoAdProgress",{progress:"75%",video:eb(eb({},i),{},{watch_count:1}),ad:{}})}),null==t||t.addEventListener("adCompleted",function(...e){ne("primis","adCompleted",e),Xm("VideoAdProgress",{progress:"100%",video:eb(eb({},i),{},{watch_count:1}),ad:{}})}),null==t||t.addEventListener("adClickthrough",function(...e){ne("primis","adClickthrough",e)}),Et("PrimisPlayerInit")},nb=()=>{window.addEventListener("primisPlayerInit",tb),(()=>{var e,t,n;const{apiId:i,siteId:r}=(null===(e=window.JSGlobals)||void 0===e?void 0:e.primis)||{};if(!i||!r)return;const o=null===(t=document.querySelectorAll("[data-primis]"))||void 0===t?void 0:t[0];if(!(o instanceof HTMLElement))return;if(null==o||!o.dataset.primis)return;const a=JSON.parse(o.dataset.primis),s=new URL("https://live.primis.tech/live/liveView.php");if(s.searchParams.set("s",r||""),s.searchParams.set("playerApiId",i),s.searchParams.set("vp_content",a.videoEmbedId),o.dataset.subId){const e=$o();let t=o.dataset.subId;null!=e&&e.startsWith(Mo)&&(t=`${t}|${Mo}`),null!=e&&e.startsWith(No)&&(t=`${t}|${No}`),s.searchParams.set("subId",t)}const c=null===(n=window)||void 0===n||null===(n=n.document)||void 0===n||null===(n=n.documentElement)||void 0===n?void 0:n.clientWidth;if(c&&c`https://www.google.com/recaptcha/api.js?render=${(window.JSGlobals||{}).recaptureV3Key}`;let rb=!1,ob=!1;const ab=[],sb='input[name="^"]',cb=e=>{e.forEach(e=>{const t=e.querySelector(sb);[...e.querySelectorAll('select,input[type="text"],input[type="password"],input[type="checkbox"],input[type="radio"]')].forEach(e=>e.addEventListener("change",(e=>async()=>{if(""!==e.value)return;const{action:t}=e.dataset,n=await window.grecaptcha.execute(JSGlobals.recaptureV3Key,{action:t});e.value=n})(t)))})},lb=()=>{const e=[...document.forms].filter(e=>e.querySelector(sb)),t=async()=>{await(async()=>{ob||(rb?await new Promise(e=>{ab.push(e)}):(rb=!0,await ae([ib()]),await new Promise(e=>{window.grecaptcha.ready(e)}),ob=!0,ab.forEach(e=>e())))})(),cb(e)},n=new IntersectionObserver(e=>{e.some(e=>e.isIntersecting)&&(n.disconnect(),t())});e.forEach(e=>n.observe(e))};function db(e,t){var n;const i=(null===(n=e.exception)||void 0===n||null===(n=n.values)||void 0===n||null===(n=n[0])||void 0===n||null===(n=n.stacktrace)||void 0===n?void 0:n.frames)||[];return Array.isArray(i)&&i.some(({filename:e,abs_path:n})=>(null==e?void 0:e.includes(t))||(null==n?void 0:n.includes(t)))}function pb(e,t){var n;const i=null===(n=e.exception)||void 0===n||null===(n=n.values)||void 0===n||null===(n=n[0])||void 0===n?void 0:n.value;return"string"==typeof i&&(null==i?void 0:i.includes(t))}const ub=[function(e){return db(e,"/ampproject/")},function(e){return db(e,"yieldmo.com")},function(e){return pb(e,"Can't find variable: __iasPET")},function(e){return pb(e,"Can't find variable: apstag")}];function mb(e,t){return function(e,t){return!t.some(t=>t(e))}(e,ub)?e:null}const bb="skin",gb=(e,t)=>{ga(h)||(e=>{const{slot:t,isEmpty:n}=e,i=t.getSlotElementId(),r=document.getElementById(Se),o=document.getElementById(ke),a=!("true"!==(null==o?void 0:o.dataset.isVideo)),s=oe(){(({slot:e,size:t})=>{const n=document.getElementById("articleHeader");if(n){const i=e.getSlotElementId(),r=null!==t||void 0,o="true"===n.dataset.isVideo;if(i===bb&&o&&r){const e=document.getElementById("frameInner");n.style.marginRight="auto",n.style.marginLeft="auto",n.style.maxWidth="1000px",e.style.paddingTop="0px"}i===bb&&(n.style.backgroundColor="transparent")}})(e),ga(h)||(e=>{const{slot:t}=e,n=t.getSlotElementId(),i=document.getElementById(Se);n===ke&&i&&setTimeout(()=>{i.classList.remove(M)},3e3)})(e)},wb=()=>{const e=window.tp||[];return window.tp=e,e};const vb=()=>{((...e)=>{wb().push(...e)})(["init",()=>{const e=wb();Array.isArray(e)||(e.enableGACrossDomainLinking(),e.experience.init())}])},fb=()=>{let e="";return window.tp=window.tp||[],(e=>{for(let t=1;t{switch(null==e?void 0:e.eventName){case"keep-spanish":Ve(p,"Spanish",{days:90}),location.reload(!0);break;case"keep-english":Ve(p,"English",{days:90})}}])),e},hb=async()=>{window.JSGlobals=window.JSGlobals||{mode:"development"};(async()=>{const e=window.tp||[];window.tp=e;const t=(()=>{try{const e=document.getElementById("piano-meta").innerText;return JSON.parse(e)}catch{return{}}})(),{tags:n=[]}=t,i=fb();if(i&&n.push(i),e.push(["addHandler","checkoutCustomEvent",e=>{if(e&&"offer-close-modal"===e.eventName){const e=document.getElementById("footerPrompt");e&&e.classList.add("hide")}}]),JSGlobals.isSection){const e=document.getElementsByClassName("newsletter-component")[0];if(e){const t=e.getAttribute("data-newsletter-key");t&&n.push(t.trim())}}try{Ia&&(e.push(["addHandler","meterExpired",e=>{"PremiumArticleMeter"===e.meterName&&(ne("PremiumArticleMeter expired"),Pa.resolve(!0))}]),e.push(["addHandler","meterActive",e=>{"PremiumArticleMeter"===e.meterName&&(ne("PremiumArticleMeter not expired"),Pa.resolve(!1))}])),e.push(["setCustomVariable","extendedAccessAllowed",String(Ia)])}catch(e){}finally{e.push(...Object.entries(t).map(([e,t])=>[`set${e.charAt(0).toUpperCase()}${e.slice(1)}`,t])),e.push(["init",()=>{window.tp.enableGACrossDomainLinking()}]),window.tp=e}vb(),document.dispatchEvent(new CustomEvent(pe))})();try{await ae("https://www.npttech.com/advertising.js")}catch(e){document.cookie="__adblocker=true;path=/"}const e=e=>{""!==e.value?e.classList.add("input-has-value"):e.classList.remove("input-has-value")};document.querySelectorAll(".form-textfield, .form-select").forEach(t=>{e(t),t.addEventListener("change",()=>{e(t)})})},yb=()=>{var e;const t=document.getElementById("standard-header-main");if(!t)return;const n=document.getElementById("indytv-link"),i=[...document.getElementsByClassName(S)],r=e=>{i.forEach((t,n)=>{n!==e&&(t.classList.remove("primary-item__open"),t.querySelector(`.${P}`).setAttribute("aria-expanded","false"))})};i.forEach((e,t)=>{const n=e.querySelector(`.${I}`),i=null!=n&&n.textContent?n.textContent:"",o=document.createElement("button"),a=document.createTextNode(i);o.appendChild(a),o.classList.add(P),e.insertBefore(o,n),null==n||n.setAttribute("tabindex","-1"),o.addEventListener("click",n=>{((e,t)=>{const n=e.classList.contains(O);e.classList[n?"remove":"add"](O),t.target.setAttribute("aria-expanded",n?"false":"true")})(e,n),r(t)}),o.addEventListener("focus",()=>{r(t)})}),n&&n.addEventListener("focus",()=>{r(-1)}),null===(e=document.getElementById("frameInner"))||void 0===e||e.addEventListener("click",r),t.addEventListener("click",r)},kb=()=>"true"===Y(d);var Sb,Ob;function Ib(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}ne("Start time recorded"),Ot=Date.now(),Pt("first ad load");const Pb=window.JSGlobals,Eb=gp(),jb="true"===Y(c),xb=Y(b),Ab=Y(s),Db=null!=Ab?Ab:B,Lb=Db===B,Tb=Pb.domain===N,Cb=Pb.isSection,$b=location.search.includes("live-browse"),Rb="1"===Y("afu"),Mb=(Nb=window.location.pathname,Ne.some(e=>`${Nb}`.startsWith(e)));var Nb;const Ub=!!Pb.article,Bb=!!Pb.isSection||Ub,Gb=null===(Sb=Pb.article)||void 0===Sb?void 0:Sb.premium,Vb=Db===G&&Gb,Jb=!$b&&!kb()&&Bb&&(Vb||!Gb)&&!0!==(null===(Ob=Pb.article)||void 0===Ob?void 0:Ob.sensitive)&&!Rb,zb=(!!Ab||"development"===Pb.mode)&&Jb&&"in_indybest"!==Pb.category2&&Pb.prebidEnabled;let qb,Wb=!1;const Hb=(e=>{var t,n,i,r;if(!e)return console.warn("Invalid article object."),!1;const o=null!==(t=null===(n=e.sections)||void 0===n?void 0:n.includes(J))&&void 0!==t&&t,a=null!==(i=null===(r=e.hierarchy)||void 0===r?void 0:r.some(({path:e})=>e.startsWith(q)))&&void 0!==i&&i;return o||a})(Pb.article)||(e=>{var t,n,i,r;if(!e)return console.warn("Invalid article object."),!1;const o=null!==(t=null===(n=e.sections)||void 0===n?void 0:n.includes(z))&&void 0!==t&&t,a=null!==(i=null===(r=e.hierarchy)||void 0===r?void 0:r.some(({path:e})=>e.startsWith(W)))&&void 0!==i&&i;return o||a})(Pb.article);if(window.digitalData=aa(ba,ma,tt)(),!Eb)try{ta()}catch(e){console.error("Analytics error caught: ",e)}const Fb=[{visibleNav:yb,inputDetection:pp},{getATSEnvelope:async()=>{if(jb)if(xb){const e=432e5,t=Date.now(),n=JSON.parse(decodeURIComponent(xb));t-new Date(n.timestamp).getTime()>=e&&await(async e=>{try{if(!e)throw new Error("FormattedATSEnvelope field not found.");const t=await wt(e),n=await mt(t);bt(n),_t(t),ot({status:"success"})}catch(e){throw ot({status:"failure"}),new Error(`Error refreshing ATS envelope: ${e.message}`)}})(n.envelope)}else if(!xb){var e;const t=null!==(e=Y(l))&&void 0!==e?e:"";await vt(t)}}},function(e){for(var t=1;t{Sentry.onLoad(function(){var e;const{release:t,environment:n,sampleRate:i,tracesSampleRate:r,replaysSessionSampleRate:o,replaysOnErrorSampleRate:a}=(null===(e=JSGlobals)||void 0===e?void 0:e.sentry)||{};Sentry.init({dsn:"https://b13d2fa91fcf9109fbcf851a0c86c0f6@o4507226938998784.ingest.de.sentry.io/4507226970980432",release:t,environment:n,sampleRate:i,tracesSampleRate:r,replaysSessionSampleRate:o,replaysOnErrorSampleRate:a,beforeSend:mb,ignoreErrors:["AbortError: The operation was aborted."]})})})},{initServiceWorker:lp}),{checkAdBlocker:async()=>{Wb=await oa()}},{intentiq:ga(f)&&[G].includes(Db)&&mp},{dotmetrics:!Mb&&!Eb&&(async()=>{var e;Ge(s)!==G&&(window.dm=window.dm||{AjaxData:[]},window.dm.AjaxEvent=function(e,t,n,i){dm.AjaxData.push({et:e,d:t,ssid:n,ad:i}),window.DotMetricsObj&&DotMetricsObj.onAjaxDataUpdate()},null!==(e=JSGlobals)&&void 0!==e&&null!==(e=e.dotmetrics)&&void 0!==e&&e.sectionId&&await ae([`https://uk-script.dotmetrics.net/door.js?id=${JSGlobals.dotmetrics.sectionId}`]))}),gtm:async()=>{Wb||$b||Rb||kb()||await Ra()},chartbeat:!Eb&&(async()=>{if(!JSGlobals.chartbeat)return;const e=window.digitalData=window.digitalData||{},t=window._sf_async_config=window._sf_async_config||{};t.idSync=t.idSync||{},t.flickerControl=!1,t.useCanonical=!0,t.useCanonicalDomain=!0,t.autoDetect=!1,t.uid=JSGlobals.chartbeat.uid,t.title=JSGlobals.chartbeat.title,t.authors=JSGlobals.chartbeat.authors,t.sections=JSGlobals.chartbeat.sections,t.idSync.l=JSGlobals.userUid,t.idSync.hashed_email=JSGlobals.hashedEmail;const n=$o();n.startsWith(Mo)&&(t.type="click"),n.startsWith(No)&&(t.type="swipe");const i=window._cbq=window._cbq||[];"premium"===e.user_status?i.push(["_acct","paid"]):"registered"===e.user_status?i.push(["_acct","lgdin"]):i.push(["_acct","anon"]),await ae(["//static.chartbeat.com/js/chartbeat_video.js","//static.chartbeat.com/js/chartbeat_mab.js"]),document.dispatchEvent(new CustomEvent("chartbeatLoaded"))}),permutive:!Eb&&(async()=>{try{if(!window.JSGlobals.permutive)throw new Error("No JSGlobals.permutive config");await Cu()}catch(e){throw Ru=!0,Mu.forEach(t=>t(e)),e}}),consent:{method:async()=>{qb=![B,V].includes(Db)||await Pe()},dependents:{initPushNotifications:((e,t)=>t||e===Re)(window.location.pathname,Ub)&&((e=0)=>{"true"===Y("feat__use_braze_for_push_notifications")?setTimeout(Te,e):setTimeout($e,e)}),permutive:!Eb&&(async()=>{Wb||await Uu(qb,Y(u,"none"))}),anonymised:!Mb&&ga("feat__anonymised")&&(async()=>{await Ee("6274ee2d293cdf1bf415179b","anonymised")&&await ae("//static.anonymised.io/light/loader.js",{id:"idward-plugin-js",attributes:[["idw_client_id","NDEx"],["idw_hide_button","true"]]})}),pubX:!Mb&&Jb&&(async()=>{await Ee("654a71546725a6047bda1db7","pubX")&&ae(window.JSGlobals.manifest["pubX.js"])}),prebid:async()=>!Mb&&zb&&!Wb&&await $p(Lb),permutiveCookieSync:!Eb&&(async()=>{const e=`https://${JSGlobals.staticHost}/iframe/native-cookiesync-frames.html`;(e=>{const t=document.createElement("iframe");Object.entries(e).forEach(([e,n])=>{t.setAttribute(e,n)}),document.body.appendChild(t)})(Zu(Zu({},se),{},{src:e}))})}}},{gpt:!Mb&&!Wb&&Jb&&(async()=>{await(async e=>{await new Promise(t=>{setTimeout(t,3e3),sp({refresh:Cb,slotRenderedCallback:gb,slotLoadedCallback:_b,consent:e,prebidEnabled:zb,firstAdLoaded:()=>{Et("first ad load")},allFirstScreenAdsLoaded:()=>{t()}})})})(qb)}),JWPlayer:async()=>{await(async e=>{Zp(e)&&Bu(),await Ku(e)})(qb)},PixelsPlayer:async()=>{await(async(e,t)=>{if(wm=!nm&&e&&window.JSGlobals.permutive,wm&&Bu(),"function"==typeof pixels){const e=document.querySelectorAll("script[data-pixels-player-uid]");for(let n=0;n{const t=e.detail.uid,n=e.detail.data;Km({containerId:t,options:n})})})(qb,zb)},Primis:async()=>{await nb()}},{captify:()=>ia(qb)},{blockthrough:()=>{Bb&&le(qb,Wb)}},{userStatus:async()=>{Pb.userLogin&&await hb()}},{form:()=>{function e(e){if(e){e.querySelectorAll("input, select").forEach(e=>{e.addEventListener("change",()=>{var t;(t=e).classList.remove("is-pristine"),t.classList.add("is-dirty")}),e.addEventListener("blur",()=>{var t;(t=e).classList.remove("is-untouched"),t.classList.add("is-touched")})})}}e(document.querySelector(".reg-form")),e(document.querySelector(".login-form")),e(document.querySelector(".reg-login-form")),e(document.getElementById(fe)),e(document.getElementById(he))},recaptcha:()=>lb(),hardRefresh:Cb&&(()=>{let e;const t=()=>{et([Ma]),clearInterval(e),e=setTimeout(()=>{Xe({[Ma]:!0}),location.search.includes(Bt)?window.location.href=location.href:window.location.href=function(e,t,n){n||(n=window.location.href);let i,r=new RegExp(`([?&])${e}=.*?(&|#|$)(.*)`,"gi");if(r.test(n))return null!=t?n.replace(r,`$1${e}=${t}$2$3`):(i=n.split("#"),n=i[0].replace(r,"$1$3").replace(/(&|\?)$/,""),void 0!==i[1]&&null!==i[1]&&(n+=`#${i[1]}`),n);if(null!=t){let r=-1!==n.indexOf("?")?"&":"?";return i=n.split("#"),n=`${i[0]+r+e}=${t}`,void 0!==i[1]&&null!==i[1]&&(n+=`#${i[1]}`),n}return n}("CMP",Ut,window.location.href)},15e4)};document.addEventListener("keypress",t),document.addEventListener("click",t),document.addEventListener("mousemove",t),document.addEventListener("scroll",t),t()}),login:()=>{document.querySelectorAll("#login-form .form-submit, #login-page-form .form-submit, #reg-login-form .form-submit").forEach(e=>e.addEventListener("click",()=>{((e={})=>{We("login_success",e)})()})),document.querySelectorAll("[data-js-open-login-drawer]").forEach(e=>{e.addEventListener("click",()=>{const t=e.getAttribute("data-reg-source-method")||"";Qu(t)}),e.setAttribute("data-js-open-login-drawer-ready","")});[...document.getElementsByClassName("subscribeLink")].forEach(e=>{e.addEventListener("click",()=>(localStorage.setItem("regSourceMethod","Nav subscribe CTA"),!1),!0)})},googleSignIn:ja,scoreboard:async()=>{var e;document.querySelector("opta-widget")&&(await(e="//secure.widget.cloud.opta.net/v3/css/v3.football.opta-widgets.css",new Promise((t,n)=>{const i=document.createElement("link");i.onload=t,i.onerror=n,i.rel="stylesheet",i.href=e,document.head.insertAdjacentElement("afterbegin",i)})),await ae("//secure.widget.cloud.opta.net/v3/v3.opta-widgets.js"),window.opta_settings={subscription_id:"7c085cc69a4c1938bf69f73e42b1be98",language:"en_GB",timezone:"Europe/London"})},stickyFooter:()=>{const e=document.querySelector(".sticky-ad-close-button-press");null==e||e.addEventListener("click",()=>{document.getElementById("stickyFooterRoot").style.display="none"})}},{googleSearch:async()=>{Pb.cseId&&await wa(Pb.cseId,0)}},{fullstory:()=>_a(qb)},{betting:()=>Tb&&Hb&&na(qb)},{ready:()=>{document.documentElement.classList.add("indy-ready")}}];xt(Fb)})()})();