(()=>{var e={65081:(e,t,o)=>{"use strict";var n=o(49945);e.exports={APP_BASE_PATH:n.APP_BASE_PATH,BUILD_PATH:n.BUILD_PATH,PUBLIC_PATH:n.PUBLIC_PATH,SW_FILENAME:n.SW_FILENAME,SCRIPT_FILENAME:n.SCRIPT_FILENAME,ENTRY_FILENAME:n.ENTRY_FILENAME}},49945:(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"},21106:(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}},33371:(e,t)=>{"use strict";t.i2=void 0;var o=["brightcove","youtube","jw_player","dugout-video"];t.i2=function(e){return e.hierarchy.map((function(e){return e.name})).join(",").toString()}},36780:function(e){e.exports=function(){"use strict";var e=1e3,t=6e4,o=36e5,n="millisecond",r="second",i="minute",a="hour",s="day",c="week",l="month",d="quarter",p="year",u="date",m="Invalid Date",_=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,b=/\[([^\]]+)]|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,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"],o=e%100;return"["+e+(t[(o-20)%10]||t[o]||t[0])+"]"}},f=function(e,t,o){var n=String(e);return!n||n.length>=t?e:""+Array(t+1-n.length).join(o)+e},w={s:f,z:function(e){var t=-e.utcOffset(),o=Math.abs(t),n=Math.floor(o/60),r=o%60;return(t<=0?"+":"-")+f(n,2,"0")+":"+f(r,2,"0")},m:function e(t,o){if(t.date()1)return e(a[0])}else{var s=t.name;v[s]=t,r=s}return!n&&r&&(h=r),r||!n&&h},O=function(e,t){if(k(e))return e.clone();var o="object"==typeof t?t:{};return o.date=e,o.args=arguments,new P(o)},I=w;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 g(e){this.$L=S(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[y]=!0}var f=g.prototype;return f.parse=function(e){this.$d=function(e){var t=e.date,o=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 n=t.match(_);if(n){var r=n[2]-1||0,i=(n[7]||"0").substring(0,3);return o?new Date(Date.UTC(n[1],r,n[3]||1,n[4]||0,n[5]||0,n[6]||0,i)):new Date(n[1],r,n[3]||1,n[4]||0,n[5]||0,n[6]||0,i)}}return new Date(t)}(e),this.init()},f.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()},f.$utils=function(){return I},f.isValid=function(){return!(this.$d.toString()===m)},f.isSame=function(e,t){var o=O(e);return this.startOf(t)<=o&&o<=this.endOf(t)},f.isAfter=function(e,t){return O(e){var n=o(42273).Symbol;e.exports=n},38036:(e,t,o)=>{var n=o(50613),r=o(27335),i=o(44082),a=n?n.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?r(e):i(e)}},212:(e,t,o)=>{var n=o(15428),r=/^\s+/;e.exports=function(e){return e?e.slice(0,n(e)+1).replace(r,""):e}},88716:(e,t,o)=>{var n="object"==typeof o.g&&o.g&&o.g.Object===Object&&o.g;e.exports=n},27335:(e,t,o)=>{var n=o(50613),r=Object.prototype,i=r.hasOwnProperty,a=r.toString,s=n?n.toStringTag:void 0;e.exports=function(e){var t=i.call(e,s),o=e[s];try{e[s]=void 0;var n=!0}catch(e){}var r=a.call(e);return n&&(t?e[s]=o:delete e[s]),r}},44082:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},42273:(e,t,o)=>{var n=o(88716),r="object"==typeof self&&self&&self.Object===Object&&self,i=n||r||Function("return this")();e.exports=i},15428:e=>{var t=/\s/;e.exports=function(e){for(var o=e.length;o--&&t.test(e.charAt(o)););return o}},5353:(e,t,o)=>{var n=o(9185),r=o(73224),i=o(12746),a=Math.max,s=Math.min;e.exports=function(e,t,o){var c,l,d,p,u,m,_=0,b=!1,g=!1,f=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function w(t){var o=c,n=l;return c=l=void 0,_=t,p=e.apply(n,o)}function h(e){var o=e-m;return void 0===m||o>=t||o<0||g&&e-_>=d}function v(){var e=r();if(h(e))return y(e);u=setTimeout(v,function(e){var o=t-(e-m);return g?s(o,d-(e-_)):o}(e))}function y(e){return u=void 0,f&&c?w(e):(c=l=void 0,p)}function k(){var e=r(),o=h(e);if(c=arguments,l=this,m=e,o){if(void 0===u)return function(e){return _=e,u=setTimeout(v,t),b?w(e):p}(m);if(g)return clearTimeout(u),u=setTimeout(v,t),w(m)}return void 0===u&&(u=setTimeout(v,t)),p}return t=i(t)||0,n(o)&&(b=!!o.leading,d=(g="maxWait"in o)?a(i(o.maxWait)||0,t):d,f="trailing"in o?!!o.trailing:f),k.cancel=function(){void 0!==u&&clearTimeout(u),_=0,c=m=l=u=void 0},k.flush=function(){return void 0===u?p:y(r())},k}},9185:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},22750:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},68110:(e,t,o)=>{var n=o(38036),r=o(22750);e.exports=function(e){return"symbol"==typeof e||r(e)&&"[object Symbol]"==n(e)}},73224:(e,t,o)=>{var n=o(42273);e.exports=function(){return n.Date.now()}},79378:(e,t,o)=>{var n=o(5353),r=o(9185);e.exports=function(e,t,o){var i=!0,a=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return r(o)&&(i="leading"in o?!!o.leading:i,a="trailing"in o?!!o.trailing:a),n(e,t,{leading:i,maxWait:t,trailing:a})}},12746:(e,t,o)=>{var n=o(212),r=o(9185),i=o(68110),a=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,c=/^0o[0-7]+$/i,l=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(i(e))return NaN;if(r(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=r(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=n(e);var o=s.test(e);return o||c.test(e)?l(e.slice(2),o?2:8):a.test(e)?NaN:+e}},13007:(e,t,o)=>{"use strict";o.d(t,{A:()=>r});var n=o(94678);function r(e,t,o){return(t=(0,n.A)(t))in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}},47771:(e,t,o)=>{"use strict";o.d(t,{A:()=>r});var n=o(46520);function r(e,t){if("object"!=(0,n.A)(e)||!e)return e;var o=e[Symbol.toPrimitive];if(void 0!==o){var r=o.call(e,t||"default");if("object"!=(0,n.A)(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}},94678:(e,t,o)=>{"use strict";o.d(t,{A:()=>i});var n=o(46520),r=o(47771);function i(e){var t=(0,r.A)(e,"string");return"symbol"==(0,n.A)(t)?t:t+""}},46520:(e,t,o)=>{"use strict";function n(e){return n="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},n(e)}o.d(t,{A:()=>n})},77212:(e,t,o)=>{"use strict";o.d(t,{BY:()=>i,Hw:()=>n,L_:()=>a,n5:()=>r});const n=360,r=768,i=1e3,a=1250},22661:(e,t,o)=>{"use strict";o.d(t,{l:()=>k});var n=o(13007),r=o(77212);function i(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function a(e){for(var t=1;ts(e,"name",{value:t,configurable:!0});function l(e){return e?e.charAt(0).toUpperCase()+e.slice(1):""}c(l,"upperFirst");const d=c(((e,t)=>{throw new Error(`Value for ${e} must be greater or equal to ${t}`)}),"handleError");function p(e){return e<1&&d("minWidth",1),`(min-width: ${e}px)`}function u(e){return e<2&&d("maxWidth",2),`(max-width: ${e-1}px)`}function m(e){return Object.entries(e).sort((([,e],[,t])=>e>t?1:-1))}function _(e){return m(e).reduce(((e,[t,o],n,r)=>{const i=r[n+1],s=p(o),c=i&&u(i[1]),d=u(o);if(i&&o===i[1])throw new Error(`Duplicate width value of ${o} detected for ${t} and ${i[0]}`);return e=a(a({},e),{},{[t]:s,[`max${l(t)}`]:d,[`only${l(t)}`]:i?`${s} and ${c}`:s})}),{})}c(p,"minWidth"),c(u,"maxWidth"),c(m,"sortSizesAscending"),c(_,"generateMediaQueryRules");const b=_({mobile:r.Hw,tablet:r.n5,laptop:r.BY,desktop:r.L_}),{mobile:g,maxMobile:f,onlyMobile:w,tablet:h,maxTablet:v,onlyTablet:y,laptop:k,maxLaptop:S,onlyLaptop:O,desktop:I,maxDesktop:P,onlyDesktop:E}=b;Symbol.toStringTag},72727:(e,t,o)=>{"use strict";o.d(t,{BY:()=>n.l});var n=o(22661)}},t={};function o(n){var r=t[n];if(void 0!==r)return r.exports;var i=t[n]={exports:{}};return e[n].call(i.exports,i,i.exports,o),i.exports}o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{"use strict";var e={};o.r(e),o.d(e,{adBreakpointHeight:()=>Vi,adBreakpointLarge:()=>Fi,adBreakpointMedium:()=>qi,desktop:()=>V.L_,desktopL:()=>Zi,desktopM:()=>Qi,desktopS:()=>Xi,desktopXL:()=>ea,laptop:()=>V.BY,mobile:()=>V.Hw,mobileL:()=>Yi,mobileM:()=>Wi,mobileS:()=>Hi,pdf:()=>zi,tablet:()=>V.n5,tabletS:()=>Ki,tideLaptop:()=>Ji});var t=o(13007),n={maxInProgress:5,failFast:!1,nextCheck:function(e,t){return Promise.resolve(e.amountStarted{var t,o;console.log('MOCK ADOBE ANALYTICS "tl" CALL',e),null===(t=(o=window).__CYPRESS__SPY__)||void 0===t||t.call(o,"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)}};const L=e=>{try{const t=e.split(".")[1].replace(/-/g,"+").replace(/_/g,"/"),o=decodeURIComponent(atob(t));return JSON.parse(o)}catch(e){return null}},x=(e,t)=>!!(null!=e&&e.length&&e.length>0&&e[0].sourcePath===t);function A(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function D(e){for(var o=1;o{var o,n;const r=`; ${document.cookie}`.split(`; ${e}=`);return 2===r.length?decodeURIComponent(null!==(o=null===(n=r.pop())||void 0===n?void 0:n.split(";").shift())&&void 0!==o?o:""):t},T=()=>((...e)=>e.map((e=>C(e))))(u,s,c,l,"truncatedName",m,"nickname",_).some((e=>null!==e)),$="indy",N=`${$}:pianoReady`,M=`${$}:spError`,B="analytics-trigger",R="brazeLoaded",U=`${$}:datalayerPush`,G=`${$}:adobeReady`;function z(e,t){if(null==e)return{};var o,n,r=function(e,t){if(null==e)return{};var o={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.includes(n))continue;o[n]=e[n]}return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n{const o=new URLSearchParams(t);return 0===Array.from(o.keys()).length?`${e}`:`${e}?${o}`},Ie=(e,t)=>{const o=new URL(e,window.location.origin);return Oe(o,t)};class Pe{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=Ie(e);localStorage.setItem(this.key,t)}storeCurrentURL(){const e=(()=>{const e=window.location.pathname,t=new URLSearchParams(window.location.search);return Ie(e,t)})();localStorage.setItem(this.key,e)}clear(){localStorage.removeItem(this.key)}}const Ee=new Pe("donate-redirect-url");new Pe("forgotten-password-redirect-url"),new Pe("consent-to-pay-original-page-redirect-url");const je=()=>{const e=(e=>Oe("/donate",e))();var t;Ee.storeCurrentURL(),t=e,location.href=t};function Le(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function xe(e){for(var o=1;o(((e,t={})=>{const o=JSON.stringify(t,null,2),n=o.split("\n").reduce(((e,t)=>t.length>=e?t.length:e),0),r=e.length,i=Math.max(r,n),a=` ${e.padEnd(i)} `,s=o.split("\n").map((e=>` ${e.padEnd(i)} `)),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(B,{detail:{data:xe({},t),eventName:e}})),De=(e,t)=>{return o=Ae(e,t),void document.body.dispatchEvent(o);var o};function Ce(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function Te(e){for(var o=1;o{var e;const t=null!==(e=sessionStorage.getItem($e))&&void 0!==e?e:"{}";return JSON.parse(t)},Me=e=>{const t=Ne(),o=Object.assign({},t,e),n=JSON.stringify(o);sessionStorage.setItem($e,n)},Be=e=>{const t=Ne();return e.reduce(((e,o)=>Te(Te({},e),{},{[o]:t[o]})),{})},Re=e=>{const t=Ne();e.forEach((e=>delete t[e])),sessionStorage.setItem($e,JSON.stringify(t))},Ue=e=>{const t=[...J,"subscribe_button_version","auto_refresh","mostWatched_algorithm","mostWatched_paragraph_number"],o=Be(t);return Te(Te({},e),o)},Ge=({subscription_length:e,subscription_price:t,subscription_package:o,selling_page_variant:n,subscribe_button_version:r})=>{Me({subscription_length:e,subscription_price:t,subscription_package:o,selling_page_variant:n,subscribe_button_version:r})},ze=(e={})=>De("gallery_view",e),Je=(e={})=>De("auto_gallery_view",e),Ve=(e={})=>De("load_more_comments",e),qe=(e={})=>De("liveblog_bulleted_list_click",e),Fe=(e={})=>De("article_bulleted_list_click",e),He=(e={})=>De("update_components_list",e),We=()=>De("burger_menu_click"),Ye="taboola-mid-article-thumbnails",Ke=()=>window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,Xe=(e,{async:t=!0,defer:o=document.location.search.includes("___FORCE_DEFER___"),parent:n=document.body,attributes:r}={})=>{window.JSGlobals=window.JSGlobals||{};const i=window.JSGlobals.loadedJS=[];return new Promise(((a,s)=>{const c=(e instanceof Array?e:[e]).map((e=>i.includes(e)?Promise.resolve():new Promise(((a,s)=>{const c=((e,{id:t,async:o,defer:n,ok:r,error:i,attributes:a})=>{const s=document.createElement("script");return s.onload=r,s.onerror=i,t&&"undefined"!==t&&(s.id=t),o&&!n&&s.setAttribute("async",""),n&&s.setAttribute("defer",""),a&&a.forEach((([e,t])=>{s.setAttribute(e,t)})),s.src=e,s})(e,{async:t,defer:o,ok:a,error:s,attributes:r});n.appendChild(c),i.push(e)}))));return Promise.all(c).then(a,s)}))},Qe={title:"User Sync",width:0,height:0,sandbox:"allow-same-origin allow-scripts",frameborder:0,style:"display: none;"};function Ze(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function et(e){for(var o=1;o{if(e.container){const t=document.getElementById(e.container);if(t){"none"!==window.getComputedStyle(t).getPropertyValue("display")&&window._taboola.push(e)}}},st=()=>{const{host:e,pathname:t}=window.location;return`//${e}${t}`},ct=()=>{window._taboola=window._taboola||[];const{article:e,sectionName:t,sections:o}=window.JSGlobals,{pageType:n,sectionValues:r}=window.JSGlobals.taboola,i=!!e&&x(o,O);if(e){window._taboola.push(et(et(et({},i&&{other:"auto"}),!i&&{article:"auto"}),{},{url:st()}));const t=document.getElementById("stickyFooterContainer");window._taboola.push({listenTo:"visible",handler:e=>{e.detail.placement.includes("Below Article Thumbnails | Card 19")&&t&&(t.style.display="none")}}),(e=>{var t;const{user_status:o,uid:n}=window.digitalData;var r;window._taboola.push({unified_id:n,user_type:(r=o,{premium:"subscriber",registered:"registered",anonymous:"guest"}[r]||"other"),paywall:null!==(t=e.premium)&&void 0!==t&&t&&"premium"!==o})})(e),e.premium&&window._taboola.push({premium:!0})}if("section"===n){const e="News"===t?tt:ot;window._taboola.push({[e]:"auto"}),r.forEach((t=>{delete t.category,(e===tt&&t.pageType===tt||e===ot&&t.pageType===ot)&&at(t)})),rt.forEach((e=>at(e)))}"article"===n&&it.forEach((e=>at(e))),"section"!==n&&nt.forEach((e=>at(e))),window._taboola.push({flush:!0})},lt=async()=>{var e,t;const o=(()=>{var e;const{publisherId:t,publisherIdIndyBest:o}=window.JSGlobals.taboola;return null!==(e=window.location.pathname)&&void 0!==e&&e.includes("indybest")?o:t})();await Xe([`//cdn.taboola.com/libtrc/${o}/loader.js`]),null===(e=window)||void 0===e||null===(e=e.performance)||void 0===e||null===(t=e.mark)||void 0===t||t.call(e,"tbl_ic")};const dt=(e,t,o={})=>{const n=new URLSearchParams;return n.set("__amp_source_origin",window.location.origin),Object.keys(o).forEach((e=>{n.set(e,o[e])})),fetch(`/internal-api/${e}?${n.toString()}`,t)},pt=(e,t,o)=>dt(e,{method:"POST",mode:"same-origin",cache:"no-cache",credentials:"same-origin",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)},o),ut=(e,t)=>dt(e,{method:"GET"},t),mt=(e,t)=>dt(e,{method:"DELETE"},t);function _t(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}const bt=(e={},t)=>{const o=Object.keys(e);window.tp=window.tp||[],window.tp.push(["addHandler","startCheckout",()=>((e={})=>De("payment_form_loaded",e))(e)]),!t&&window.tp.push(["addHandler","checkoutComplete",()=>{((e={})=>{De("payment_details_success",e)})(e),function(){const e=localStorage.getItem(ye);e&&(window._tfa=window._tfa=[],window._tfa.push({notify:"subscription",name:"subscription-completed",sourceurl:e}),Xe(["//cdn.taboola.com/libtrc/unip/1018671/tfa.js"]))}(),Re(o)}]),window.tp.push(["addHandler","checkoutError",()=>{Re(o),((e={})=>{De("payment_details_failed",e)})(e)}])},gt=({offerId:e="",termId:o="",trackingData:n={},isPaymentFlow:r=!1,promoCode:i="",showCloseButton:a=!0}={})=>{bt(n,r),window.tp=window.tp||[],window.tp.push(["init",()=>{window.tp.offer.show(function(e){for(var o=1;o{if(!!!document.querySelector(`.${se}`))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:""})(),t=(e=>"video"===e)(e);return!t||window.matchMedia(`(min-width: ${V.BY}px)`).matches},wt=(e,t=null)=>{const o=`; ${document.cookie}`.split(`; ${e}=`);return 2===o.length?decodeURIComponent(o.pop().split(";").shift()):t},ht=(e,t,o)=>{const n=new Date;if(o){const e=o.days?24*o.days*60*60*1e3:60*o.hours*60*1e3;n.setTime(n.getTime()+e)}const r=[];r.push(`${e}=${encodeURIComponent(t)}`),r.push("path=/"),r.push("secure"),o&&r.push(`expires=${n.toGMTString()}`),document.cookie=r.join(";")},vt=function(e){return null!==wt(e)},yt=["offerId","termId"];function kt(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function St(e){for(var o=1;o{null==e||e.addEventListener(t,o,St({passive:!0},n),r)},It=e=>{const t=e.split("/"),o=t[t.length-1].replace(/\D/g,"");return t.pop(),t.shift(),`${t.join("/")}/article${o}`},Pt=()=>{document.addEventListener(N,(()=>{window.tp=window.tp||[],window.tp.push(["addHandler","customEvent",e=>{"support-now"===e.eventName&&((e={})=>{De("support_now_encore_click",e)})()}])}))},Et=()=>{document.addEventListener(N,(()=>{window.tp=window.tp||[],window.tp.push(["addHandler","customEvent",e=>{var t;"donation-prompt"===e.eventName&&(((e={})=>{De("donation_article_bottom",e)})(),window.location.href=null===(t=e.params)||void 0===t?void 0:t.url)}])}))},jt=()=>{document.querySelectorAll(".social-share amp-social-share, .social-share button[type]").forEach((e=>{Ot(e,"click",(e=>{const t=e.currentTarget.getAttribute("type");"bookmark"!==t&&((e={})=>{De("article_share",e)})({share_provider:t})}))}))},Lt=()=>{window.__gcse||(window.__gcse={}),window.__gcse.searchCallbacks={web:{rendered:(e,t,o,n)=>{var r;const i=null===(r=n[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==i?void 0:i.match(/([\d,]+).*\(.+\)/);((e={})=>{De("search",e)})({search_term:t,search_results_count:a?a[1].replace(",",""):i})}}}},xt=()=>{const e=()=>{document.querySelectorAll(".drawer-menu-navlist a").forEach((e=>{Ot(e,"click",(e=>{const t=e.target.innerText,o=(e=>{const t=e.target.closest(".drawer-menu-section");return t?null==t?void 0:t.querySelector(".drawer-trigger-title").innerText:null===(o=e.target.closest(".section-list"))||void 0===o||null===(o=o.previousSibling)||void 0===o||null===(o=o.querySelector(".link"))||void 0===o?void 0:o.innerText;var o})(e);((e={})=>{De("mega_menu_link_click",e)})({mega_menu_link_text:t,mega_menu_link_category:o})}))}))},t=document.getElementById("MegaMenuButton");null==t||t.addEventListener("click",(()=>{setTimeout(e,500)}))},At=()=>{document.querySelectorAll(`.menu-navbar-item a, .${W} a`).forEach((e=>{Ot(e,"click",(e=>{const t=e.target.closest("ul"),o=e.target.closest("li"),n=[...t.childNodes].findIndex((e=>e===o)),r=e.target.innerText,i=((e,t)=>{const o=e.target.closest(`.${W}`);return o?null==o?void 0:o.querySelector(`.${K}`).innerText:(null===(n=e.target.closest(".menu-navbar-item > ul"))||void 0===n||null===(n=n.previousSibling)||void 0===n?void 0:n.innerText)||t;var n})(e,r);((e={})=>{De("main_nav_link_click",e)})({main_nav_link_text:r,main_nav_link_category:i,main_nav_link_position:n+1})}))}))},Dt=()=>{document.querySelectorAll(".most-popular").forEach((e=>{Ot(e,"click",(e=>{e.stopPropagation();const t=e.target.closest('[role="listitem"]');if(t){var o,n,r;const e=null==t||null===(o=t.children[1])||void 0===o?void 0:o.innerText,i=null===(n=t.dataset)||void 0===n?void 0:n.articleId;((e={})=>{De("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:i})}}))}))},Ct=()=>{document.querySelectorAll(".popular-videos").forEach((e=>{Ot(e,"click",(e=>{e.stopPropagation();const t=e.target.closest('[role="listitem"]');if(t){var o,n,r;const e=null==t||null===(o=t.children[1])||void 0===o?void 0:o.innerText,i=null===(n=t.dataset)||void 0===n?void 0:n.articleId;((e={})=>{De("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:i})}}))}))},Tt=()=>{document.querySelectorAll(".sponsored-features").forEach((e=>{Ot(e,"click",(e=>{e.stopPropagation();const t=e.target.closest('[role="listitem"]');if(t){var o,n,r;const e=null==t||null===(o=t.children[1])||void 0===o?void 0:o.innerText,i=null===(n=t.dataset)||void 0===n?void 0:n.articleId;((e={})=>{De("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:i})}}))}))},$t=()=>{document.querySelectorAll(".indy100-trending").forEach((e=>{Ot(e,"click",(e=>{e.stopPropagation();const t=e.target.closest('[role="listitem"]');if(t){var o,n,r;const e=null==t||null===(o=t.children[1])||void 0===o?void 0:o.innerText,i=null==t||null===(n=t.dataset)||void 0===n?void 0:n.articleId;((e={})=>{De("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:i})}}))}))},Nt=()=>{document.querySelectorAll(".taboola-below-article").forEach((e=>{Ot(e,"click",(e=>{var t,o;e.stopPropagation();((e={})=>{De("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===(o=e.target.closest(".tbl-feed-card"))||void 0===o||null===(o=o.dataset)||void 0===o?void 0:o.cardIndex})}))}))},Mt=()=>{const e=document.querySelectorAll(`.${Q}`);document.querySelectorAll(".related-item").forEach((t=>{Ot(t,"click",(o=>{const{autoLink:n,topicLink:r,algorithm:i,text:a,position:s}=t.dataset,c=t.closest(`.${Q}`);((e={})=>{De("related_articles_link_click",e)})({related_articles_link_text:a,related_articles_autolink:n,related_articles_topiclink:r,related_articles_algorithm:i,related_articles_link_position:s,related_embed_position:Array.prototype.indexOf.call(e,c)+1+1}),o.stopPropagation()}))}))},Bt=()=>{document.querySelectorAll(".premium-menu [data-tab]").forEach((e=>{Ot(e,"click",(()=>{((e={})=>{De("ip_tab_click",e)})({tab_url:document.location.href,tab_name:e.dataset.tab})}))}))},Rt=()=>{document.querySelectorAll('section [data-tab="ebooks"] [id^="ebook"]').forEach((e=>{Ot(e,"click",(()=>{var t;((e={})=>{De("ip_ebook_click",e)})({ebook_url:e.href,ebook_title:null===(t=e.dataset)||void 0===t?void 0:t.title})}))}))},Ut=()=>{document.querySelectorAll('section [data-tab="events"] [href^="#event"]').forEach((e=>{Ot(e,"click",(()=>{var t;((e={})=>{De("ip_event_click",e)})({event_name:null===(t=e.dataset)||void 0===t?void 0:t.title})}))}))},Gt=()=>{document.querySelectorAll(".amp-live-list-item h3 a").forEach(((e,t)=>{Ot(e,"click",(o=>{((e={})=>{De("blog_post_article_link_click",e)})({article_link_text:o.target.innerText,article_link_url:e.href,article_link_position:t+1})}))}))},zt=()=>{[{element:".js-comment-header",text:"Comment Counts",position:"top"},{element:".js-comment-footer",text:"View Comments",position:"bottom"}].forEach((e=>{const{element:t,text:o,position:n}=e;Ot(document.querySelector(t),"click",(()=>{((e={})=>{De("show_comments_click",e)})({show_comments_link_text:o,show_comments_link_position:n})}))}))},Jt=()=>{document.addEventListener("watchMoreLoaded",(e=>{const t=document.querySelector('[id^="playinc-article-component"]');if(t){const o=t.id.replace("playinc-article-component-",""),n={mostWatched_url:e.detail.url,mostWatched_algorithm:e.detail.algorithm,mostWatched_paragraph_number:o};Me(n),((e={})=>{De("most_watched_load",e)})({trackingData:n}),t.addEventListener("click",(()=>{((e={})=>{De("most_watched_click",e)})({mostWatched_link_text:"Most Watched"})}))}}))},Vt=()=>{document.querySelectorAll(`#${he} p a`).forEach((e=>{var t;(null===(t=e.href)||void 0===t?void 0:t.startsWith(document.location.origin))&&Ot(e,"click",(()=>((e={})=>De("contextual_inline_click",e))()))}))},qt=()=>{document.querySelectorAll(`#${he} p a`).forEach((e=>{new RegExp(`^${document.location.origin}/topic/.*$`).test(e.href)&&Ot(e,"click",(()=>((e={})=>De("contextual_inline_topic_click",e))()))}))},Ft=()=>{document.querySelectorAll(`#${he} p a`).forEach((e=>{new RegExp(`^${document.location.origin}/(?!topic/).*$`).test(e.href)&&Ot(e,"click",(()=>((e={})=>De("contextual_inline_non_topic_click",e))()))}))},Ht=()=>{document.addEventListener(N,(()=>{window.addEventListener("message",(e=>{if("changing-subscription"===e.data.type){const{data:t}=e.data;window.tp=window.tp||[],window.tp.push(["init",()=>{((e={})=>{Ge(e),De("change_subscription_package",e)})({subscription_length:t.trackingLength,subscription_price:t.trackingPrice,subscription_package:t.trackingName})}])}}))}))},Wt=()=>{window.addEventListener("message",(e=>{"premium-article-cta-premium"===e.data.type&&((e={})=>{De("premium_article_cta_premium",e)})({})}))},Yt=()=>{window.addEventListener("message",(e=>{"premium-article-cta-tide"===e.data.type&&((e={})=>{De("premium_article_cta_tide",e)})({})}))},Kt=()=>{window.addEventListener("message",(e=>{"expandable-prompt-cta-premium"===e.data.type&&((e={})=>{De("expandable_prompt_cta_premium",e)})({})}))},Xt=()=>{window.addEventListener("message",(e=>{"expandable-prompt-cta-tide"===e.data.type&&((e={})=>{De("expandable_prompt_cta_tide",e)})({})}))},Qt=()=>{window.addEventListener("message",(e=>{if(e.data&&e.data.sellingPageData){const t=e.data,{sellingPageData:{offerId:o,termId:n}}=t,r=z(t.sellingPageData,yt),i={subscription_length:r.trackingLength,subscription_price:r.trackingPrice,subscription_package:r.trackingName,initial_selected_package:r.initialSelectedPackage};((e={})=>{Ge(e),De("subscription_button_click",e)})(St({subscribe_button_version:r.trackingCta},i));const a=new URLSearchParams;a.set("offerId",o),a.set("termId",n),wt(u)&&(window.location.href=`/subscribe/payment?${a.toString()}`),gt({offerId:o,termId:n,trackingData:i})}}))},Zt=()=>{document.addEventListener(N,(()=>{window.tp=window.tp||[],window.tp.push(["addHandler","customEvent",({eventName:e,params:t})=>{if("payment-option-pp"===e){const e=Be(J),o=`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={})=>{De("change_payment_method",e)})(St(St({},e),{},{name_form_field:o}))}}])}))},eo=()=>{document.querySelectorAll(".js-key-points a").forEach((e=>{Ot(e,"click",(e=>{const t=e.target.closest("ul"),o=e.target.closest("li"),n=[...t.childNodes].findIndex((e=>e===o));((e={})=>{De("liveblog_key_points_click",e)})({liveblog_key_points_text:e.target.innerText,liveblog_key_points_destination:e.target.href,liveblog_key_points_position:n+1})}))}))},to=()=>{document.querySelectorAll(".most-commented-link").forEach((e=>{Ot(e,"click",(t=>{const o=t.target.closest(".section-body"),n=t.target.closest(".article-default"),r=[...o.childNodes].findIndex((e=>e===n));((e={})=>{De("most_commented_section_click",e)})({most_commented_section_link_pagename:It(e.getAttribute("href")),most_commented_section_link_position:r+1})}))}))},oo=()=>{document.querySelectorAll("nav.topics > div > a").forEach((e=>{e.addEventListener("click",(e=>{((e={})=>{De("article_topic_tag_click",e)})({tag:e.target.innerHTML})}))}))},no=()=>{window.analytics=window.analytics||{},window.analytics.experienceExecuted=(e,t)=>{((e={})=>{De("experience_executed",e)})({experience_name:e,variant:t})}},ro=()=>{document.querySelectorAll(`#${ge} a`).forEach((e=>{Ot(e,"click",(e=>{((e={})=>{De("voucher_ticker_link_click",e)})({voucher_ticker_text:"All Deals"===e.target.innerText?"All Deals":e.target.previousElementSibling.innerText})}))}))},io=()=>{document.querySelectorAll(`#${ge} .carousel-prev-button,\n #${ge} .carousel-next-button`).forEach((e=>{Ot(e,"click",(e=>{((e={})=>{De("voucher_ticker_arrow_click",e)})({voucher_ticker_arrow_text:e.target.ariaLabel})}))}))},ao=()=>{document.querySelectorAll("[data-edition]").forEach((e=>{Ot(e,"click",(e=>{((e={})=>{De("edition_link_click",e)})({edition_link_text:e.target.innerText})}))}))},so=()=>{document.querySelectorAll(`.${H}, .header-menu-temp-link`).forEach((e=>{const t=e.classList.contains(H)?"Burger":"Visible";Ot(e,"click",(e=>{((e={})=>{De("temporary_link_click",e)})({temp_link_text:`${e.target.innerText} - ${t}`})}))}))},co=()=>{document.querySelectorAll('a[data-affiliate="true"]').forEach((e=>{Ot(e,"click",(e=>{((e={})=>{De("affiliate_link_click",e)})({affiliate_link_click_text:e.target.innerHTML})}))}))},lo=()=>{document.querySelectorAll(`.${ae}`).forEach((e=>{Ot(e,"click",(()=>{De("webpush_signup_click")}))}))},po=()=>{const e=document.querySelector(`.${le}`);Ot(e,"click",(()=>{De("notification_prompt_accept")}))},uo=()=>{const e=document.querySelector(`.${de}`);Ot(e,"click",(()=>{De("notification_prompt_dismiss")}))},mo=()=>{const e=document.querySelector(`.${se}`);((e,t)=>{if(!e)return;let o=e.classList.toString();const n=new MutationObserver((r=>{for(const i of r)if("class"===i.attributeName){const r=e.classList.toString();if(r!==o){t(n),o=r;break}}}));n.observe(e,{attributes:!0})})(e,(()=>{var t;if(null!=e&&null!==(t=e.classList)&&void 0!==t&&t.contains(ce)){const e=ft()?"E2":"E1";((e={})=>{De("notification_prompt_load",e)})({components_list:`${window.digitalData.components_list},${e}`})}}))},_o=()=>{const e=document.getElementById("support-nsc-button-amp");null==e||e.addEventListener("click",(()=>{Ee.storeCurrentURL(),((e={})=>{De("support_nsc_link_click",e)})()}))},bo=()=>{[...document.querySelectorAll(`.${ie}`)].forEach((e=>{e.addEventListener("click",ze)})),[...document.querySelectorAll(`.${re}`)].forEach((e=>{e.addEventListener("click",Je)})),document.addEventListener(N,(()=>{window.tp=window.tp||[],window.tp.push(["addHandler","customEvent",e=>{e.eventName}])})),document.addEventListener(N,(()=>{window.tp=window.tp||[],window.tp.push(["addHandler","customEvent",e=>{"openLogin"===e.eventName&&document.querySelector(`header button[on="tap:${ve}.open"]`).click()}])})),jt(),Lt(),xt(),At(),Dt(),Ct(),Tt(),$t(),Nt(),Mt(),Bt(),Rt(),Ut(),Et(),(()=>{const e=document.querySelectorAll(`.main-wrapper #${he} > div > ul li a`),t=document.querySelectorAll(".article-liveblog").length>0?qe:Fe;e.forEach((e=>{Ot(e,"click",(e=>{const o=e.target.closest("ul"),n=e.target.closest("li"),r=[...o.childNodes].findIndex((e=>e===n)),i=e.target.innerText,a=e.target.href;t({bulleted_list_text:i,bulleted_list_url:a,bulleted_list_position:r+1})}))}))})(),Gt(),document.addEventListener(N,(()=>{window.tp=window.tp||[],window.tp.push(["addHandler","customEvent",({eventName:e})=>{"join-to-read-click-register"===e&&localStorage.setItem("returnUrl",window.location.href)}])})),zt(),document.querySelectorAll('[data-component=NewsletterGroups] input[type="checkbox"]').forEach((e=>{e.addEventListener("change",(e=>{De(`newsletter_prefs_${e.target.checked?"":"un"}subscribe`,{newsletter:e.target.name})}))})),document.querySelectorAll('#reg-lite-form input[type="checkbox"]').forEach((e=>{e.addEventListener("change",(e=>{var t;const o=null===(t=e.target.closest("form"))||void 0===t||null===(t=t.querySelector("input[name=regSourceNewsletter]"))||void 0===t?void 0:t.value;De(`newsletter_prefs_${e.target.checked?"":"un"}subscribe`,{newsletter:o})}))})),document.querySelectorAll(".newsletter-component").forEach((e=>{e.querySelector("button.form-submit").addEventListener("click",(t=>{t.target.disabled||De("newsletter_lite_reg_signup",{newsletter:e.dataset.newsletterKey})}))})),Jt(),Vt(),qt(),Ft(),Ht(),Wt(),Qt(),Zt(),document.addEventListener(N,(()=>{window.tp=window.tp||[],window.tp.push(["addHandler","customEvent",({eventName:e})=>{"click-confirm-subscription"===e&&window.scrollTo(0,0)}])})),eo(),to(),Yt(),(()=>{let e=window.innerWidth>=V.BY,t=window.innerWidth{window.innerWidth>=V.BY&&!e?(e=!0,He({components_list:window.digitalData.desktop_components_list})):window.innerWidth{const e=document.getElementById("MegaMenuButton");Ot(e,"click",We)})(),ao(),so(),co(),lo(),po(),uo(),mo(),(()=>{const e=document.getElementById("header-mobile-support-button"),t=document.getElementById("header-laptop-support-button"),o=document.getElementById("support-drawer-button-amp");[e,t,document.getElementById("reg-login-button-support"),o].forEach((e=>{null==e||e.addEventListener("click",je)}))})(),_o(),Pt()},go="event7",fo="event20",wo="event21",ho="event23",vo="event24",yo="event27",ko="event34",So="event37",Oo="event68",Io="event78",Po="event85",Eo="event86",jo="event87",Lo="event108",xo="event99",Ao="event110",Do="prop7",Co="prop9",To="prop10",$o="prop11",No="prop12",Mo="prop13",Bo="prop15",Ro="prop16",Uo="prop19",Go="prop20",zo="prop22",Jo="prop23",Vo="prop24",qo="prop31",Fo="prop36",Ho="prop37",Wo="prop38",Yo="prop39",Ko="prop41",Xo="prop42",Qo="prop43",Zo="prop44",en="prop45",tn="prop48",on="prop49",nn="prop50",rn="prop65",an="prop66",sn="prop67",cn="eVar1",ln="eVar2",dn="eVar4",pn="eVar9",un="eVar10",mn="eVar11",_n="eVar13",bn="eVar14",gn="eVar19",fn="eVar20",wn="eVar22",hn="eVar23",vn="eVar24",yn="eVar26",kn="eVar27",Sn="eVar31",On="eVar36",In="eVar37",Pn="eVar39",En="eVar41",jn="eVar42",Ln="eVar43",xn="eVar44",An="eVar45",Dn="eVar46",Cn="eVar47",Tn="eVar48",$n="eVar50",Nn="eVar64",Mn="eVar67",Bn="eVar69",Rn="eVar70",Un="eVar71",Gn="eVar72",zn="eVar75",Jn="eVar90",Vn="eVar91",qn="eVar96",Fn="eVar97",Hn="__ADOBE__",Wn=e=>sessionStorage.getItem(`${Hn}${e}`),Yn=(e,t)=>sessionStorage.setItem(`${Hn}${e}`,t),Kn=["subscription_package","subscription_length","subscription_price","subscribe_button_version","selling_page_variant","initial_selected_package"],Xn="marketing_opt_in",Qn=e=>{let{subscription_package:t,subscription_length:o,subscription_price:n,subscribe_button_version:r,selling_page_variant:i,initial_selected_package:a}=e,s=z(e,Kn);return Object.fromEntries([[Ln,t],[xn,o],[An,n],[$n,r],...Object.keys(s).includes(Xn)?[[Tn,s[Xn]?"Opt in":"Opt out"]]:[],[Jn,a]].filter((([,e])=>void 0!==e)))},Zn=e=>`D=v${e.slice(4)}`,er=(e,t={},o=[],n=window[JSGlobals.ADOBE_ANALYTICS_OBJECT])=>{const r=[],i={};o.length&&(r.push("events"),i.linkTrackEvents=o.join(","),i.events=i.linkTrackEvents);const a=Object.fromEntries(Object.entries(t).filter((([,e])=>void 0!==e))),s=[...r,...Object.keys(a)];s.length&&(i.linkTrackVars=s.join(",")),Object.entries(a).forEach((([e,t])=>{i[e]=t})),n.tl(!0,"o",e,i)};function tr(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function or(e){for(var o=1;o{er("Adblock Detected",{[On]:"Native",[jn]:"Adblock Detected",[Fo]:Zn(On),[Xo]:Zn(jn)},["event105"])},article_bookmark:e=>{er("Article Bookmark",{[Go]:e.article_id},["event17"])},article_bulleted_list_click:e=>{Yn("link_click_label","Article Bullet Related Link"),Yn("link_click_position",e.bulleted_list_position)},article_share:e=>{er("Article Share",{[pn]:e.article_id,[gn]:e.article_category,[jn]:e.share_provider,[Gn]:e.share_provider,[Co]:Zn(pn),[Uo]:Zn(gn),[Xo]:Zn(jn),prop72:Zn(Gn)},["event10","event41"])},article_topic_tag_click:e=>{Yn("link_click_label","Article Topic Tag Link"),Yn("topic_tag",e.tag)},auto_renewal_off:()=>{er("Auto Renewal Off",{},["event29"])},blog_post_article_link_click:e=>{Yn("link_click_label","Live Blog In-line Article Link"),Yn("link_click_position",e.article_link_position)},burger_menu_click:()=>{er("Burger Menu Click",{},["event80"])},change_payment_method:e=>{er("Payment Method Selected",or(or({},Qn(e)),{},{[Jn]:e.initial_selected_package,[Vn]:e.name_form_field,[Qo]:Zn(Ln),[Zo]:Zn(xn),[en]:Zn(An)}),["event75"])},change_subscription_package:e=>{er("Subscription Package Changed",or(or({},Qn(e)),{},{[Qo]:Zn(Ln),[Zo]:Zn(xn),[en]:Zn(An)}),["event76"])},comment:e=>{er("Article Comment",{[Co]:e.article_id},["event12"])},comment_tab_click:e=>{er("Article Comment Tab Click",{[En]:"D=pageName",[jn]:"Article Comment Tab",[Co]:e.article_id,prop31:"Article Comment Tab",[Ko]:"D=pageName",[Xo]:Zn(jn)},["event43"])},contextual_inline_click:()=>{Yn("link_click_label","Article in-line Link")},contextual_inline_topic_click:()=>{Yn("topic_link_click_label","Article in-line Link (Topic Page)")},contextual_inline_non_topic_click:()=>{Yn("topic_link_click_label","Article in-line Link (Non-Topic Page)")},donation:e=>{er("Donation Click",or(or({},Qn(e)),{},{[Jn]:e.initial_selected_package,[Qo]:Zn(Ln),[Zo]:Zn(xn),[en]:Zn(An)}),[ko])},donation_apple_pay:e=>{er("Donation Click - Apple Pay",or(or({},Qn(e)),{},{[Jn]:e.initial_selected_package,[Qo]:Zn(Ln),[Zo]:Zn(xn),[en]:Zn(An)}),[ko])},donation_article_bottom:()=>{er("Donation Click (Article Bottom)",{},["event36"])},edition_link_click:e=>{Yn("link_click_label","Edition Link"),Yn("link_click_text",e.edition_link_text)},expandable_prompt_cta_premium:()=>{er("Premium Article Gate CTA Click Premium",{},[wo])},expandable_prompt_cta_tide:()=>{er("Premium Article Gate CTA Click Tide",{},[wo])},focus_reg_subscription_field:(e,t=document.location.pathname)=>{er("Form Field details",or({[Vn]:e.name_form_field},t.includes("/register")?or(or({},Qn(e)),{},{[Jn]:e.initial_selected_package,[Qo]:Zn(Ln),[Zo]:Zn(xn),[en]:Zn(An)}):{}),["event74"])},gallery_view:()=>{er("Gallery Image View",{prop21:"Gallery"},["event3"])},indy100_trending_link_click:e=>{er("RHR Indy100 Trending",{[Ko]:"D=pageName",[Xo]:Zn(jn),[sn]:e.indy100_trending_link_position},[fo])},ip_ebook_click:e=>{er("My Independent Premium eBooks Click",{[jn]:e.ebook_title,[Xo]:Zn(jn)},["event69"])},ip_event_click:e=>{er("My Independent Premium Event Click",{[jn]:e.event_name,[Xo]:Zn(jn)},["event70"])},ip_tab_click:e=>{er("My Independent Premium Event Click",{prop5:e.tab_name,[jn]:`IP ${e.tab_name}`,[Xo]:Zn(jn)},["event18"])},liveblog_bulleted_list_click:e=>{Yn("link_click_label","Live Blog Article Bullet Related Link"),Yn("link_click_position",e.bulleted_list_position)},liveblog_key_points_click:e=>{er("Liveblog Key Points Click",{[En]:e.liveblog_key_points_destination,[jn]:"Liveblog Key Points",[Mn]:e.liveblog_key_points_position,[Ko]:Zn(En),[Xo]:Zn(jn),[sn]:Zn(Mn)},["event60"])},load_more_comments:e=>{er("Load More Comments",{[Co]:e.article_id},["event53"])},login_success:()=>{er("Login Success",{},["event9"])},main_nav_link_click:e=>{Yn("link_click_label","Visible Nav"),Yn("link_click_text",`${e.main_nav_link_category}:${e.main_nav_link_text}`),Yn("link_click_position",e.main_nav_link_position)},marketing_opt:e=>{er("Marketing Opt Changed",or(or({},Qn(e)),{},{[Qo]:Zn(Ln),[Zo]:Zn(xn),[en]:Zn(An),[tn]:Zn(Tn)}),[vo]),Yn("marketing_opt_in",e.marketing_opt_in)},mega_menu_link_click:e=>{Yn("link_click_label","Burger Nav"),Yn("link_click_text",`${e.mega_menu_link_category}:${e.mega_menu_link_text}`)},most_commented_section_click:e=>{er("Most Commented Section Click",{[En]:e.most_commented_section_link_pagename,[jn]:"Most Commented (Section Page)",[Mn]:e.most_commented_section_link_position,[Ko]:Zn(En),[Xo]:Zn(jn),[sn]:Zn(Mn)},[Io])},most_popular_link_click:e=>{Yn("link_click_label","RHR Most Popular"),Yn("link_click_position",e.most_popular_link_position)},most_watched_click:e=>{Yn("link_click_label",e.mostWatched_link_text),Yn("video_algorithm",e.mostWatched_algorithm)},newsletter_lite_reg_signup:e=>{er("Newsletter Inline Signup Prompt",{[In]:e.newsletter,[Ho]:Zn(In)},["event63"])},newsletter_page_signup_button_click:e=>{er("Newsletter Page Signup",{[In]:e.newsletter,[Ho]:Zn(In)},["event66"])},newsletter_prefs_subscribe:e=>{er("Newsletter Prefs Subscribe",{[In]:e.newsletter,[Ho]:Zn(In)},["event64"])},newsletter_prefs_unsubscribe:e=>{er("Newsletter Prefs Unsubscribe",{[In]:e.newsletter,[Ho]:Zn(In)},["event65"])},notification_prompt_accept:()=>{er("Web Notification Opt In",{[jn]:"Yes please",[Xo]:"Yes please"},["event45"])},notification_prompt_dismiss:()=>{er("Web Notification Dismiss",{[jn]:"Not now",[Xo]:"Not now"},["event46"])},notification_prompt_load:e=>{er("Web Notification Prompt Load",{[vn]:e.components_list,[Vo]:Zn(vn)},["event44"])},payment_details_failed:e=>{er("Payment Form Submit Failed",or(or({},Qn(e)),{},{[Qo]:Zn(Ln),[Zo]:Zn(xn),[en]:Zn(An)}),["event32"])},payment_details_success:e=>{er("Payment Form Submit Success",or(or({},Qn(e)),{},{[Qo]:Zn(Ln),[Zo]:Zn(xn),[en]:Zn(An)}),[yo,"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})();er("Payment Form Loaded",or(or({},Qn(e)),{},{[Qo]:Zn(Ln),[Zo]:Zn(xn),[en]:Zn(An)},t?{eVar51:t.get("itm_source"),eVar52:t.get("itm_medium"),eVar53:t.get("itm_campaign"),eVar54:t.get("itm_term")}:{}),["event25"])},popular_videos_link_click:e=>{Yn("link_click_label","RHR Popular Videos"),Yn("link_click_position",e.popular_videos_link_position)},premium_article_cta_premium:()=>{er("Premium Article Gate CTA Click Premium",{},[wo])},premium_article_cta_tide:()=>{er("Premium Article Gate CTA Click Premium",{},[wo])},premium_comment:e=>{er("Article Premium Comment",{[Co]:e.article_id},["event16"])},read_more_articles_link_click:e=>{Yn("link_click_label","Related Articles"),Yn("link_click_position",e.read_more_link_position)},experience_executed:e=>{er("Piano Experience Impression",{eVar93:e.experience_name,eVar94:e.variant},["event84"])},registration_failed:()=>{},registration_success:e=>{const t=[ho];e.marketing_opt_in&&t.push(vo),e.promo_code_applied&&t.push("event26"),er("Registration Success",or(or({},Qn(e)),{},{[Qo]:Zn(Ln),[Zo]:Zn(xn),[en]:Zn(An),[tn]:Zn(Tn)}),t)},registration_success_standard:e=>{const t=[ho];e.marketing_opt_in&&t.push(vo),er("Registration Success",or({},Qn(e)),t)},registration_wall_click:({registration_wall_label:e,is_register_wall_with_register_form:t})=>{if("Register Now"===e){if(!t)return void Yn("link_click_label",e)}else if("I'll try later"!==e&&"Log In"!==e)return;er("Registration Gating Prompt Click",{[jn]:e,[Xo]:Zn(jn)},[Oo])},related_articles_link_click:e=>{const t=e.related_articles_autolink?"Auto":e.related_articles_topiclink?"Audience":"Manual",o=`Related Articles - ${t}, Related Articles ${t} Embed Position ${e.related_embed_position}`;Yn("link_click_label",o),Yn("link_click_position",e.related_articles_link_position),e.related_articles_algorithm&&Yn("video_algorithm",`Related Articles Video ${e.related_articles_algorithm}`);const n=`Related Articles ${t} Embed Position ${e.related_embed_position}`;Yn("link_click_related_embed_position",n)},search:e=>{er("Search",{[dn]:e.search_term,[Xo]:Zn(dn)},["event1"])},selling_page_loaded:()=>{er("Piano Selling Page loaded",{},["event8"])},show_comments_click:e=>{er("Article Show Comments",{[Co]:e.article_id,[Mn]:e.show_comments_link_position,[sn]:Zn(Mn)},["event42"])},sponsored_features_link_click:e=>{Yn("link_click_label","RHR Sponsored Features"),Yn("link_click_position",e.sponsored_features_link_position)},subscription_button_click:e=>{er("Join Premium Button Click",or(or({},Qn(e)),{},{[$n]:e.subscribe_button_version,[Qo]:Zn(Ln),[Zo]:Zn(xn),[en]:Zn(An),[nn]:Zn($n)},e.selling_page_variant_click&&{eVar100:e.selling_page_variant_click}),[wo])},taboola_feed_link_click:()=>{},temporary_link_click:e=>{Yn("link_click_label","Temp Link"),Yn("link_click_text",e.temp_link_text)},update_components_list:e=>{er("Update components list",{[vn]:e.components_list,[Vo]:Zn(vn)},[])},voucher_ticker_link_click:e=>{er("Voucher Ticker Link Click",{[jn]:e.voucher_ticker_text,[Xo]:Zn(jn)},["event82"])},voucher_ticker_arrow_click:()=>{er("Voucher Ticker Arrow Click",{},["event83"])},webpush_signup_click:()=>{er("Get Started Clicks (Web Push Landing Page)",{[Xo]:"Get Started",[jn]:"Get Started"},["event106"])},price_comparison_list_buy_now_click:({name:e,price:t})=>{er("Price Comparison Buy Link Click",{[jn]:"Price Comparison - Buy Link Click",[Xo]:Zn(jn),[qn]:e,[Fn]:t},["event93"])},price_comparison_buttons_buy_now_click:({isLeft:e,index:t,name:o,price:n})=>{const r=`${e?"Left":"Right"} CTA Button - Position ${t++}`;er("Price Comparison Buttons Buy Now Click",{[jn]:r,[Xo]:Zn(jn),[qn]:o,[Fn]:n},["event107"])},product_carousel_buy_now_click:({name:e,price:t,index:o})=>{const n="Top Picks Carousel - Buy Now - Position "+o++;er("Comparison Carousel Buy Link Click",{[jn]:n,[Xo]:Zn(jn),[qn]:e,[Fn]:t},[Lo])},product_carousel_read_review_click:({name:e,price:t})=>{er("Comparison Carousel/Modal Read Review Link Click",{[jn]:"Comparison Carousel - Read Review Link Click",[Xo]:Zn(jn),[qn]:e,[Fn]:t},[xo])},product_comparison_checkbox_click:({name:e,price:t})=>{er("Comparison Carousel Checkbox Click",{[jn]:"Comparison Carousel - Compare Checkbox Selected",[Xo]:Zn(jn),[qn]:e,[Fn]:t},["event100"])},product_comparison_modal_open:()=>{er("Compare Table Pop-up",{[jn]:"Compare Table Pop-up",[Xo]:Zn(jn)},["event101"])},product_comparison_modal_buy_now_click:({name:e,price:t})=>{er("Compare Modal Buy Link Click",{[jn]:"Compare Modal - Buy Link Click",[Xo]:Zn(jn),[qn]:e,[Fn]:t},[Lo])},product_comparison_modal_read_review_click:({name:e,price:t})=>{er("Comparison Carousel/Modal Read Review Link Click",{[jn]:"Comparison Carousel - Read Review Link Click",[Xo]:Zn(jn),[qn]:e,[Fn]:t},[xo])},affiliate_link_click:e=>{er("Affiliate Link Click",{[jn]:e.affiliate_link_click_text,[Xo]:Zn(jn)},["event79"])},registration_gating_show_prompt:()=>{er("Registration Show Prompt",{},["event62"])},registration_gating_first_visit:e=>{er("Registration Gating first visit",{eVar89:e.reg_gating})},account_overview_tab_my_details:()=>{er("Account Overview Tab - My Details",{pageName:"Account Overview Tab - My Details"},[Po])},account_overview_tab_change_password:()=>{er("Account Overview Tab - Change Password",{pageName:"Account Overview Tab - Change Password"},[Po])},account_overview_tab_payments_and_billing:()=>{er("Account Overview Tab - Payments & Billing",{pageName:"Account Overview Tab - Payments & Billing"},[Po])},account_overview_tab_manage_subscription:()=>{er("Account Overview Tab - Manage Subscription",{pageName:"Account Overview Tab - Manage Subscription"},[Po])},account_cancellation_barrier_1:()=>{er("Cancellation journey - Barrier 1",{pageName:"Cancellation journey - Barrier 1",[jn]:"Cancel Subscription - Barrier 1",[Xo]:Zn(jn)},[Eo])},account_cancellation_barrier_2:()=>{er("Cancellation journey - Barrier 2",{pageName:"Cancellation journey - Barrier 2",[jn]:"Cancel Subscription - Barrier 2",[Xo]:Zn(jn)},[Eo])},account_cancellation_keep_subscription:()=>{er("Cancellation journey - Barrier 1",{pageName:"Cancellation journey - Barrier 1",[jn]:"Keep Subscription - Barrier 1",[Xo]:Zn(jn)},[Eo])},account_cancellation_take_this_offer:()=>{er("Cancellation journey - Barrier 2",{pageName:"Cancellation journey - Barrier 2",[jn]:"Take this Offer - Barrier 2",[Xo]:Zn(jn)},[Eo])},account_cancellation_continue_to_payment:()=>{er("Cancellation journey - Thanks",{pageName:"Cancellation journey - Thanks",[jn]:"Continue to Payment - Thank you",[Xo]:Zn(jn)},[Eo])},account_cancellation_reactivate_subscription:()=>{er("Cancellation journey - Thanks",{pageName:"Cancellation journey - Thanks",[jn]:"Reactivate Subscription",[Xo]:Zn(jn)},[Eo])},stage_barrier_1:()=>{er("Cancellation journey - Barrier 1",{pageName:"Cancellation journey - Barrier 1"},[jo])},stage_barrier_2:()=>{er("Cancellation journey - Barrier 2",{pageName:"Cancellation journey - Barrier 2"},[jo])},support_nsc_link_click:()=>{er("Support NSC Link Click",{[jn]:"Support NSC Link Click",[Xo]:Zn(jn)},[Ao])},support_now_encore_click:()=>{er("Support Now Link Click - Encore Component",{[jn]:"Support Now Link Click - Encore Component",[Xo]:Zn(jn)},[Ao])}};const rr=e=>{var t;return null===(t=window.JSGlobals)||void 0===t||null===(t=t.featureFlags)||void 0===t?void 0:t[e]},ir=()=>{var e,t,o;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===(o=navigator)||void 0===o?void 0:o.userAgent))},ar=({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}))},sr=()=>{const e=new URLSearchParams(window.location.search),{source:t,medium:o,campaign:n,term:r,content:i}=new Proxy(e,{get:(e,t)=>e.get(`utm_${t}`)});return t?{campaign:[`S:${t}`,`M:${o}`,`Ca:${n}`,`T:${r}`,`Co:${i}`].join("|")}:{}},cr="startsWith",lr=new Map([["/",{name:"frontpage"}],["/contact-us",{name:"Contact Us",type:cr}],["/jobs",{name:"Jobs",type:cr}],["/news/code-of-conduct",{name:"Code of conduct and complaints",type:cr}],["/service/external-contributors-policy",{name:"Code of conduct and complaints",type:cr}],["/service/cookie-policy",{name:"Cookie policies",type:cr}],["/service/privacy-policy",{name:"Privacy notice",type:cr}],["/service/user-policies",{name:"User policies",type:cr}],["/subscribe",{name:"Subscribe",featureModeName:"feat__selling_page_redesign",featureModeVariants:{control:"Subscribe","variant-1":"Subscribe - Redesign - v1","variant-2":"Subscribe - Redesign - v2","variant-3":"Subscribe - Redesign - v3"}}],["/subscribe/app",{name:"Subscribe - App"}],["/subscribe/register",{name:"Subscribe - Register",featureFlagVariants:{feat__subscribe_before_reg:"Subs before reg - Subscribe Register"}}],["/subscribe/login",{name:"Subs before reg - Subscribe Login"}],["/subscribe/our-story",{name:"Subscribe - Our Story"}],[h,{name:"Web notification Landing Page"}],["/donations",{name:"Donations",type:cr}],["/archive",{name:"Archive",type:cr}],["/topics-list",{name:"All topics",type:cr}],["/vouchercodes",{name:"Voucher codes",type:cr}],["/login",{name:"Login",type:cr}],["/register",{name:"Register",type:cr}],["/independent-premium",{name:"Independent Premium",type:cr}],["/profile",{name:"Account Details",type:cr}]]),dr=(e,t)=>{try{for(const[t,{name:n,type:r,featureFlagVariants:i={},featureModeVariants:a={},featureModeName:s=""}]of lr)if(r===cr){if(e.startsWith(t))return n}else if(e===t){const e=Object.entries(i);for(const[t,o]of e)if(JSGlobals.featureFlags[t])return o;if(s){var o;const e=null===(o=JSGlobals.featureModes)||void 0===o?void 0:o[s];if(e)return a[e]}return n}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}},pr=(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 ur(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function mr(e){for(var o=1;o{try{(e=>{const{auto_refresh:t,site_sections:o,page_domain:n,page_path:r,page_query:i,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:_,main_js_version:b}=digitalData,g=null==o?void 0:o.split(":"),f=Wn("link_click_label"),w=Wn("link_click_position");switch(ar({events:[..."Topic"===a?["event2"]:[],...t?["event6"]:[]],props:mr(mr(mr(mr(mr({pageName:dr(e,digitalData)},g&&{hier1:g.join(","),channel:g[0],[cn]:g.slice(0,2).join(":"),[ln]:g.slice(0,3).join(":")}),{},{eVar3:n,eVar8:a,eVar12:o,eVar16:r,eVar17:i,eVar21:s,[vn]:l,[Sn]:wt("locale"),[On]:"Native",[Pn]:d,[Bn]:p,[Rn]:u,[Un]:m,[zn]:_,[Nn]:b,prop1:Zn(cn),prop2:Zn(ln),prop3:n,prop8:a,[Uo]:c,[Vo]:Zn(vn),[qo]:Zn(Sn),[Fo]:Zn(On),[Yo]:Zn(Pn),prop40:"D=g"},f&&{[En]:"D=pageName",[Ko]:"D=pageName",[jn]:f,[Xo]:Zn(jn),[Mn]:w,[sn]:Zn(Mn)}),{},{prop69:Zn(Bn),prop70:Zn(Rn),prop71:Zn(Un),prop75:Zn(zn)},ir()&&{prop68:pr(),eVar68:pr()}),JSGlobals.httpStatusCode>=400&&{pageName:"",pageType:"errorPage"}),{},{prop64:Zn(Nn)},sr())}),f){case"Visible Nav":ar({events:[So],props:{prop6:Wn("link_click_text"),[Do]:"Visible Nav"}});break;case"Burger Nav":ar({events:[So],props:{prop32:Wn("link_click_text"),[Do]:"Burger Nav"}});break;case"Temp Link":ar({events:[So],props:{prop34:Wn("link_click_text")}});break;case"RHR Most Popular":ar({events:["event19"]});break;case"RHR Popular Videos":ar({events:["event30"]});break;case"RHR Sponsored Features":ar({events:["event31"]});break;case"RHR Indy100 Trending":ar({events:[fo]});break;case"Article in-line Link":ar({events:["event39"]});break;case"Article Topic Tag Link":ar({events:["event40"],props:{[Wo]:Wn("topic_tag")}});break;case"Article Bullet Related Link":case"Live Blog Article Bullet Related Link":ar({events:["event57"]});break;case"Live Blog In-line Article Link":ar({events:["event58"]});break;case"Most Commented Section Click":ar({events:[Io]});break;case"Register Now":ar({events:[Oo]});break;case"Most Watched":ar({events:["event51"],props:{[Cn]:Wn("video_algorithm"),prop47:Zn(Cn)}});break;case"Edition Link":ar({events:["event81"],props:{[qo]:Wn("link_click_text")}})}const h=Wn("link_click_related_embed_position");null!=f&&f.startsWith("Related Articles - ")&&ar({events:["event13"],props:mr({[kn]:h,prop27:Zn(kn)},f.startsWith("Related Articles - Auto")&&{[yn]:Wn("video_algorithm"),prop26:Zn(yn)})});const v=Wn("topic_link_click_label");if(v)switch(ar({props:{[jn]:v,[Xo]:Zn(jn)}}),v){case"Article in-line Link (Topic Page)":ar({events:["event72"],props:{[Xo]:"Article in-Line Click (Topic Page)"}});break;case"Article in-line Link (Non-Topic Page)":ar({events:["event73"],props:{[Xo]:"Article in-Line Click (Non-Topic Page)"}})}})(e)}catch(e){console.error("Something went wrong building page generic tracking vars",e)}switch(e){case"/":ar({props:{hier1:"news",channel:"news"}});break;case"/subscribe/confirmation":{const e=Be(J);if(Object.values(e).every((e=>void 0===e)))return;ar({events:[yo],props:mr(mr({},Qn(e)),{},{[Qo]:Zn(Ln),[Zo]:Zn(xn),[en]:Zn(An)})});break}case"/donate":{const e=rr("feat__support_now_donate_copy");ar({events:["event110"],props:{[jn]:e?"Donate":"Support Now",[Xo]:Zn(jn)}});break}case"/register":case"/subscribe/register":{const e=Be(J);ar({events:["event22"],props:mr(mr({},Qn(e)),{},{[Qo]:Zn(Ln),[Zo]:Zn(xn),[en]:Zn(An),[nn]:Zn($n)})});break}case"/thank-you":{const e="true"===Wn("marketing_opt_in");ar({events:[ho,...e?[vo]:[]],props:{[Tn]:e?"Opt in":"Opt out",[tn]:Zn(Tn)}});break}case"/subscribe/payment":if("/subscribe/register"===digitalData.page_previous_path){const e=Be(J),t="true"===Wn("marketing_opt_in");ar({events:[ho,...t?[vo]:[]],props:mr(mr({},Qn(e)),{},{[tn]:Zn(Tn),[Qo]:Zn(Ln),[Zo]:Zn(xn),[en]:Zn(An),prop90:Zn(Jn),[nn]:Zn($n)})})}}e.startsWith("/tv/")&&ar({events:[go],props:{[mn]:digitalData.video_title,eVar49:"Independent Video Hub",[$o]:Zn(mn),[No]:digitalData.article_page_filename,[on]:Zn(on),[Co]:Zn(pn),[To]:Zn(un),[Mo]:Zn(_n),[Bo]:digitalData.lead_media_item,[Ro]:digitalData.first_published_date,[Uo]:Zn(gn),[Go]:Zn(fn),[zo]:Zn(wn),[Jo]:Zn(hn),[Wo]:digitalData.article_topic_tags,[rn]:digitalData.published_date,[an]:digitalData.article_premium_status,[pn]:digitalData.article_id,[un]:digitalData.article_publication_time,[_n]:digitalData.article_author,[gn]:digitalData.article_category,[fn]:digitalData.content_source,[wn]:digitalData.word_count,[hn]:digitalData.internal_links_count}}),"Article"===digitalData.page_type&&ar({props:{[mn]:digitalData.article_title,[_n]:digitalData.article_author,[bn]:digitalData.topic_pages,[gn]:digitalData.article_category,[fn]:digitalData.content_source,[wn]:digitalData.word_count,[hn]:digitalData.internal_links_count,[vn]:`${digitalData.components_list}${digitalData.mostWatched_algorithm?`,4,${"no-love"===digitalData.mostWatched_algorithm?5:""}`:""}`,[Pn]:digitalData.commercial_campaign,[Dn]:digitalData.mostWatched_paragraph_number,eVar92:digitalData.affiliate_links_count,[un]:digitalData.article_publication_time,[pn]:digitalData.article_id,[Co]:Zn(pn),[To]:Zn(un),[$o]:Zn(mn),[No]:digitalData.article_page_filename,[Mo]:Zn(_n),prop14:Zn(bn),[Bo]:digitalData.lead_media_item,[Ro]:digitalData.first_published_date,[Uo]:Zn(gn),[Go]:Zn(fn),[zo]:Zn(wn),[Jo]:Zn(hn),[Vo]:Zn(vn),prop25:digitalData.product_carousel_failure,prop28:digitalData.article_modification_date,prop30:digitalData.article_swap,[Wo]:digitalData.article_topic_tags,[Yo]:Zn(Pn),prop46:Zn(Dn),[rn]:digitalData.published_date,[an]:digitalData.article_premium_status},events:[go,..."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(Hn)&&sessionStorage.removeItem(e)}))},br=()=>{!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 o=0;o{const t=nr[e.detail.eventName];t?t(or(or({},window.digitalData),e.detail.data||{})):console.warn("Adobe event not recognised!",e.detail.eventName)})),bo(),_r(document.location.pathname),document.body.dispatchEvent(new CustomEvent(G))};let gr,fr;const wr=()=>{if("undefined"==typeof window)return"prod"!=={NODE_ENV:"production",npm_config_domain:""}.SERVER;if("undefined"!=typeof window&&void 0===gr){var e;const t=new URLSearchParams(null===(e=window)||void 0===e||null===(e=e.location)||void 0===e?void 0:e.search);gr=t.has("__DEBUG__")}return gr||"true"===C("__DEBUG__")},hr=()=>(void 0===fr&&(fr=(()=>{var e;return!0===(null===(e=window.JSGlobals)||void 0===e||null===(e=e.featureFlags)||void 0===e?void 0:e[w])})()),fr),vr=(...e)=>{wr()&&console.group(...e)},yr=(...e)=>{wr()&&console.groupEnd(...e)},kr=(...e)=>{wr()&&console.log(...e)},Sr=(...e)=>{const t=wr(),o=hr();t&&console.warn(...e),o&&Sentry.captureException(...e)},Or=(...e)=>{const t=wr(),o=hr();t&&console.error(...e),o&&Sentry.captureException(...e)},Ir=()=>new Promise((e=>{if(!JSGlobals.cmp.enabled)return void e(!0);document.getElementById("sp-script").error&&e(!1),window.addEventListener(M,(()=>{e(!1)}));window.__tcfapi("addEventListener",2,((t,o)=>{var n;if(o)if(["useractioncomplete","tcloaded"].includes(t.eventStatus))if(window.__tcfapi("removeEventListener",2,(()=>{}),t.listenerId),t.gdprApplies){if(kr("Consent Or Pay: valid GDPR tcData ---\x3e",t),null!==(n=t.publisher)&&void 0!==n&&null!==(n=n.consents)&&void 0!==n&&n[1])return kr('Consent Or Pay: tcData.publisher?.consents?.["1"] ---\x3e',t),void e(!0);e(!1)}else e(!0);else kr("Consent Or Pay: !['useractioncomplete', 'tcloaded'].includes(tcData.eventStatus) ---\x3e",{tcData:t,eventStatus:t.eventStatus})}))})),Pr=async(e,t)=>new Promise((o=>{var n;null!==(n=JSGlobals)&&void 0!==n&&null!==(n=n.cmp)&&void 0!==n&&n.enabled?window.__tcfapi&&Ir().then((n=>{n?window.__tcfapi("getCustomVendorConsents",2,(n=>{var r;const i=!(null===(r=n.grants)||void 0===r||null===(r=r[e])||void 0===r||!r.vendorGrant);kr("CMP:getCustomVendorConsents",t,i),o(i)})):o(!1)})):o(!0)})),Er=(e=!1)=>{var t;const{url:o}=(null===(t=window.JSGlobals)||void 0===t||null===(t=t.betting)||void 0===t?void 0:t.analytics)||{};var n;o||console.error("No betting analytics tag URL",{cause:null===(n=window.JSGlobals)||void 0===n?void 0:n.betting});e&&o&&window.setTimeout((()=>{Xe(o)}),5e3)};const jr=e=>{const t=document.getElementById("loginButton"),o=document.getElementById("registerLink");o&&o.setAttribute("href",function(e){if(e){const t=new URLSearchParams;return t.append("regSourceMethod",e),`/register?${t.toString()}`}return"/register"}(e)),localStorage.setItem("returnUrl",window.location.href),localStorage.setItem("regSourceMethod",e),t&&t.click()},Lr=e=>{let t=JSON.parse(localStorage.getItem("premiumBookmarks")||"[]");t=t.filter((t=>t!==e)),localStorage.setItem("premiumBookmarks",JSON.stringify(t))},xr=async(e,t)=>{if(!t.classList.contains("submitting"))try{t.classList.add("submitting");if((await mt(`bookmarks/${e}`)).ok)return[...document.querySelectorAll(`.${te}`)].forEach((e=>e.classList.remove("saved"))),t.classList.remove("submitting"),void Lr(e);throw new Error("Network response was not ok.")}catch(e){[...document.querySelectorAll(`.${te}`)].forEach((e=>e.classList.add("saved"))),t.classList.remove("submitting"),console.error("Fetch failed: ",e.message)}},Ar=async(e,t)=>{if(t.classList.contains("submitting"))return;t.classList.add("submitting");pt("bookmarks",{articleId:e}).then((e=>{if(e.ok)return e.json();throw new Error("Network response was not ok.")})).then((o=>{o.saved?([...document.querySelectorAll(`.${te}`)].forEach((e=>e.classList.add("saved"))),(e=>{const t=JSON.parse(localStorage.getItem("premiumBookmarks")||"[]");t.push(e),localStorage.setItem("premiumBookmarks",JSON.stringify(t))})(e),(()=>{const e=document.querySelector(".bookmark-notification"),t=localStorage.getItem("ignore-bookmark");e&&!t&&(e.classList.add(ne),setTimeout((()=>{e.classList.remove(ne)}),3e3))})(),((e={})=>{De("article_bookmark",e)})()):([...document.querySelectorAll(`.${te}`)].forEach((e=>e.classList.remove("saved"))),Lr(e)),t.classList.remove("submitting")})).catch((e=>{t.classList.remove("submitting"),console.error("Fetch failed: ",e.message)}))},Dr=async()=>{const e=[...document.querySelectorAll(`.${te}`)];document.querySelector(`.${oe}`)&&(e.forEach((e=>{if(e instanceof HTMLButtonElement){const t=e.dataset.articleId||"";wt(u)&&((e,t)=>{JSON.parse(localStorage.getItem("premiumBookmarks")||"[]").indexOf(e)>-1?t.classList.add("saved"):t.classList.remove("saved")})(t,e),e.addEventListener("click",(()=>{((e,t)=>{(t.classList.contains("saved")?xr:Ar)(e,t)})(t,e)}))}})),window.JSGlobals.featureFlags.feat__no_amp||[...document.querySelectorAll(".show-login")].forEach((e=>{e.addEventListener("click",(()=>{const e=document.querySelector("#bookmark-lightbox .close");e instanceof HTMLButtonElement&&e.click(),setTimeout((()=>{jr("bookmarks")}),400)}))})),(()=>{const e=document.querySelector(`.${oe}`);if(!e)return;const t=e.querySelector(".close-notification");t&&t.addEventListener("click",(()=>{e.classList.remove(ne)}));const o=e.querySelector("input");o&&o.addEventListener("click",(()=>{localStorage.setItem("ignore-bookmark","true")}))})())},Cr=()=>{var e;null===(e=document.querySelector(`.${se}`))||void 0===e||null===(e=e.classList)||void 0===e||e.remove(ce)},Tr=()=>{braze.openSession(),Notification.requestPermission(),Cr()},$r=()=>{(e=>{localStorage.setItem(Se,e)})(Date.now()+2592e6)},Nr=()=>{var e;const t=null!==(e=(()=>{const e=localStorage.getItem(Se);return e?JSON.parse(e):null})())&&void 0!==e?e:0;return Date.now()>t};function Mr(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}const Br=()=>{const e=C(c);var t;e&&(null===(t=window.braze)||void 0===t||t.changeUser(e))},Rr=async()=>{if(!!window.braze)return Br(),!0;try{var e;if(!await Pr("5ed8c49c4b8ce4571c7ad801","braze"))return!1;const{braze:{sdkAPIKey:o="",sdkEndpoint:n=""}={}}=window.JSGlobals;return await Xe(["https://js.appboycdn.com/web-sdk/4.8/braze.min.js"]),null===(e=window.braze)||void 0===e||e.initialize(o,function(e){for(var o=1;o{const e=document.querySelector(`.${le}`),t=document.querySelector(`.${de}`);null==e||e.addEventListener("click",Tr),null==t||t.addEventListener("click",(()=>Cr()))})(),document.dispatchEvent(new CustomEvent(R)),!0}catch(e){return Or("Error initializing braze sdk",e),!1}},Ur=async()=>{await Rr()&&!(()=>{const e="true"===sessionStorage.getItem("promptDenied"),t=Nr();return!braze.isPushSupported()||braze.isPushPermissionGranted()||braze.isPushBlocked()||e||!t})()&&((()=>{var e;const t=document.querySelector(`.${se}`);null==t||null===(e=t.classList)||void 0===e||e.add(ce)})(),(()=>{const e=document.querySelector(`.${de}`);null==e||e.addEventListener("click",(()=>{sessionStorage.setItem("promptDenied","true"),$r()}))})())},Gr=()=>{const{brazeSdkDelayAmount:e=5e3}=JSGlobals.braze||{};setTimeout(Ur,e)},zr=async()=>{await Rr()&&window.braze.openSession()},Jr=e=>localStorage.setItem(ke,e),Vr=e=>{(window._cbv||(window._cbv=[])).push(e)},qr=async()=>{try{await fetch("https://www.npttech.com/advertising.js")}catch{return De("adblock_detected"),!0}return!1};let Fr=0;const Hr=e=>{Fr++,kr(`Commenting: Reauthenticating, attempt ${Fr}`),window.vf.session.logout().then(window.vf.session.login.cookie(C(c)||"")).then((()=>{e&&setTimeout(e,500)}))},Wr=(e,t)=>{(async(e,t)=>{const o=new FormData;return Object.keys(t).forEach((e=>{o.append(e,t[e])})),await fetch(e,{method:"POST",mode:"same-origin",cache:"no-cache",credentials:"same-origin",body:o})})(`/internal-api/comments/nickname/submit?__amp_source_origin=${window.location.origin}`,{nickname:e}).then((e=>{if(200!==e.status)return e.json().then((({message:e})=>{t({success:!1,errorMessage:e})}));t({success:!0})})).catch((e=>{t({success:!1,errorMessage:e.message})}))},Yr=()=>{const[e]=document.getElementsByClassName("vf-post-form"),t=e.firstElementChild;t instanceof HTMLDivElement&&(t.style.display="none");const o=(e=>{const t=document.createElement("div"),o=document.createElement("h2"),n=document.createElement("p"),r=document.createElement("div"),i=document.createElement("input"),a=document.createElement("button");return t.id="add-nickname-form",o.innerHTML="We have noticed you don't have a commenting name yet.",n.innerHTML="Your commenting name is what people will see when you make any comments across Independent articles. Please don't use anything rude or anything that could identify you.",i.setAttribute("placeholder","Commenting name"),i.setAttribute("pattern","^[A-Za-z0-9]{3,40}$"),i.required=!0,a.innerHTML="SUBMIT",a.disabled=!0,t.appendChild(o),t.appendChild(n),t.appendChild(r),r.appendChild(i),r.appendChild(a),a.addEventListener("click",(({target:t})=>{if(t instanceof HTMLInputElement&&t.disabled)return!1;e(i.value.trim())})),i.addEventListener("keypress",(e=>{var t;(t=e.key.charCodeAt(0))>64&&t<91||t>96&&t<123||8===t||t>=48&&t<=57||e.preventDefault()})),i.addEventListener("input",(e=>{a.disabled=e.target instanceof HTMLInputElement&&!e.target.checkValidity()})),t})((n=>{Wr(n,(({success:n,errorMessage:r})=>{n?(e.removeChild(o),t instanceof HTMLDivElement&&(t.style.display="block"),Hr()):alert(r)}))}));e.appendChild(o)},Kr=()=>{window.vf.context.get("user").then((e=>{e&&("guest"===e.user_privilege||C(c)!==e.social_login_id?Hr((()=>{Fr<10&&Kr()})):"anonymous"===e.name.toLowerCase()&&(kr("Commenting: User has not set nickname, initialising nickname form"),Yr()))}))},Xr=()=>{var e;null===(e=document.getElementById("comments"))||void 0===e||e.addEventListener("click",(({target:e})=>{var t;e instanceof HTMLElement&&(e.className.split(" ").some((e=>e.startsWith("vf-content-actions__like")||e.startsWith("vf-content-actions__dislike")))?((e={})=>{De("vote_comment_click",e)})({}):["Flag","Flagged"].includes(null===(t=e.innerText)||void 0===t?void 0:t.trim())?((e={})=>{De("flag_comment_click",e)})({}):e.closest(".vf-load-more__button")&&Ve())}))},Qr=()=>C(u),Zr=e=>{[...document.getElementsByClassName(q)].forEach((t=>{if(t instanceof HTMLElement){const o=t.querySelector(`.${F}`);t.dataset.count=e.toString()||"0",o&&(o.innerHTML=e.toString()||"")}}))},ei=()=>{const e=document.querySelector("a.icon-logout");Xr(),window.vf.$prepublish(((e,t,...o)=>{if(console.log(`Commenting: channel = ${e}; event = ${t};`),"commenting"===e&&"loaded"===t){try{(()=>{const e=document.getElementById("comments");if(((null==e?void 0:e.offsetHeight)||0)>600){null==e||e.classList.add("height-limited");const t=document.createElement("button");t.className="show-more",t.innerHTML="See more comments",null==e||e.appendChild(t);const o=()=>{null==e||e.removeChild(t),null==e||e.classList.remove("height-limited"),null==e||e.removeEventListener("click",o),Ve()};null==e||e.addEventListener("click",o)}})()}catch(e){Or("Commenting: Error in initViafora()->limitCommentingHeight()",e)}try{[...document.getElementsByClassName(q)].forEach((e=>{if(e instanceof HTMLElement){const t=e.querySelector(`.${F}`),o=e.querySelector(".js-comment-plural"),n=parseInt(e.dataset.count||"");e.classList.add("comments-loaded"),e.setAttribute("href","#comments-area"),t&&o&&(t.innerHTML=n>0?n.toString():'',o.innerHTML=1===n?"Comment":"Comments")}}))}catch(e){Or("Commenting: Error in initViafora()->changeCTA()",e)}Qr()?Kr():window.vf.context.get("user").then((e=>{var t;0!==e.id&&(null===(t=window.viafoura)||void 0===t||t.session.logout())}))}return"comment"===e&&"created"===t&&((e={})=>{De("comment",e)})({}),"authentication"===e&&"required"===t?(jr("Commenting"),!1):{channel:e,event:t,args:o}})),window.vf.$subscribe("authentication","logout",(()=>{e instanceof HTMLElement&&e.click()}))},ti=()=>!!document.getElementById("comments"),oi=async()=>{ti&&((async()=>{const{endpoint:e,section_uuid:t}=window.JSGlobals.viafoura,o={method:"POST",headers:{accept:"application/json","content-type":"application/json"},body:JSON.stringify([window.digitalData.article_id_root])};try{var n;const r=await fetch(`${e}/v4/livecomments/${t}/content-containers/comment-count-and-status/by-container-ids`,o);return(null===(n=(await r.json())[0])||void 0===n?void 0:n.commentCount)||0}catch(e){console.error(e)}return 0})().then(Zr),await(async()=>{if(!C(c)&&Qr()){const e=await fetch("/api/puid"),t=await e.json();ht(c,t.uid,{days:365})}})(),window.vfQ=window.vfQ||[],window.vfQ.push(ei),Xe("//cdn.viafoura.net/entry/index.js"))},ni=()=>{const e=document.querySelector('iframe[src*="https://xd.wayin.com"]');if(!e)return;const t=document.createElement("div");e.parentElement.appendChild(t),e.setAttribute("frameborder",0),e.loading="lazy",e.onload=function(){e.style.display="none",t.innerHTML="

Loading...

",setTimeout((()=>{e.style.display="block",t.style.display="none"}),2e3),ut("competition-data").then((e=>{if(e.ok)return e.json();throw new Error("Unable to fetch comments")})).then((function({providerUID:o,firstName:n,lastName:r,email:i,provider:a}){NGX.Embed.getUser((function(s){s.id=o,s.firstName=n,s.lastName=r,s.email=i,s.network=a,NGX.Embed.loginUser(s,(function(){e.style.display="block",t.style.display="none"}),(function(){throw new Error("Failed to logged in the user.")}))}))})).catch((t=>{e.style.display="none",console.error(t)}))}};var ri=o(36780),ii=o.n(ri);const ai=["components_list","desktop_components_list","mobile_components_list"];function si(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function ci(e){for(var o=1;o{var t;let{components_list:o,desktop_components_list:n,mobile_components_list:r}=e,i=z(e,ai);const a=ci(ci({components_list:[...(null==o?void 0:o.split(","))||[],...(null===(t=window.innerWidth>999?n:r)||void 0===t?void 0:t.split(","))||[]].join(","),desktop_components_list:n,mobile_components_list:r,page_title:document.title,page_query:document.location.search,page_name:document.location.pathname},li&&{page_previous_url:`${li.protocol}//${li.host}${li.pathname}`,page_previous_path:li.pathname,page_previous_query:li.search}),{},{timestamp:ii()().format("YYYY:MM:DD:HH:mm:ss"),uid:wt(c),registration_date:wt(l)});return ci(ci({},i),a)},pi=()=>{var e;const t=(null===(e=document.getElementById("analytics-data"))||void 0===e?void 0:e.textContent)||"{}";return JSON.parse(t)},ui=()=>{document.getElementsByClassName("fb-post").length>0&&Xe("https://connect.facebook.net/en_US/sdk.js#xfbml=1&version=v11.0")},mi=(e=!1)=>{rr("feat__fullstory")&&e&&window.setTimeout((()=>{Xe("/js/fullstory.raw.js")}),3e3)},_i=(e,t)=>new Promise((o=>{if(e){if(0===document.querySelectorAll(`#searchBox${t} #___gcse_0`).length){Xe(`https://cse.google.com/cse.js?cx=${e}`,{async:!0});const n=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}`}),o()},r=function(){google.setOnLoadCallback(n,!0)};window.__gcse=Object.assign(window.__gcse,{parsetags:"explicit",callback:r})}}else o()})),bi=e=>{const t={},o="true"===wt(b),n=!e,r=!!wt(c);return console.log("%cMETERED: %s","background:yellow;color:purple;font-size:2em",n),console.log("%cSUBSCRIBED: %s","background:yellow;color:purple;font-size:2em",o),console.log("%cLOGGED_IN: %s","background:yellow;color:purple;font-size:2em",r),t.hasAccess=r&&(o||n),t.subscribed=o,t},gi=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))},fi=`${window.location.origin}/iframe/registration_widget`,wi=document.getElementById("open-drawer-button"),hi=document.referrer,vi=location.search,yi=Date.now(),ki=((e,t,o,n)=>(gi(e)||gi(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 o=e.split("=");t[o[0]]=o[1]})),t})(o),n))(hi,new URLSearchParams(window.location.search).get("referrer"),vi,yi),Si={};let Oi=new Promise((e=>{Si.resolve=e}));const Ii="_pc_showpaywall";(()=>{if("true"!==wt(Ii))return new Promise((e=>{ki?(Xe(["https://news.google.com/swg/js/v1/swg-gaa.js"]),Xe(["https://news.google.com/swg/js/v1/swg.js"],{attributes:[["subscriptions-control","manual"]]}),Xe(["https://apis.google.com/js/platform.js"]),(self.SWG=self.SWG||[]).push((async t=>{var o,n;const r=({entitlement:e,isUserRegistered:o})=>{t.setShowcaseEntitlement({entitlement:e,isUserRegistered:o}),kr("entitlement: ",e," , isUserRegistered: ",o)};if(t.init(null===(o=JSGlobals)||void 0===o?void 0:o.showcaseProductId),t.setOnNativeSubscribeRequest((()=>{kr("%c%s","background:dodgerblue;color:yellow;padding:10px;","subscribe event"),localStorage.setItem("returnUrl",window.location.href),window.location="/subscribe"})),null===(n=JSGlobals)||void 0===n||null===(n=n.article)||void 0===n||!n.premium)return void r({entitlement:"EVENT_SHOWCASE_UNLOCKED_FREE_PAGE",isUserRegistered:Boolean(wt(u))});const i=await(async()=>{try{const e=await ut("fetch-user-state");return await e.json()}catch(e){return{}}})();i.metering?(kr("user state received"),t.getEntitlements(i),t.setOnEntitlementsResponse((async t=>{let o=await Oi;const{hasAccess:n,subscribed:i}=bi(o);if(n)r(i?{entitlement:"EVENT_SHOWCASE_UNLOCKED_BY_SUBSCRIPTION",isUserRegistered:!0}:{entitlement:"EVENT_SHOWCASE_UNLOCKED_BY_METER",isUserRegistered:!0}),kr("Publisher already grants access"),e();else{kr("Not allowed access, try to use Google intervention");let o=await t;kr("entitlements: ",o),o.enablesThisWithGoogleMetering()?(kr("%c%s","background:dodgerblue;color:yellow;padding:10px;","entitlementsEnabled, consume"),o.consume((()=>{}))):(ht(Ii,"true",{hours:1}),r({entitlement:"EVENT_SHOWCASE_NO_ENTITLEMENTS_PAYWALL",isUserRegistered:!0}),kr("%c%s","background:dodgerblue;color:yellow;padding:10px;","show Paywall"),window.location.reload()),e()}}))):(kr("user state not found on server. Probably you are not signed in"),t.setOnLoginRequest((()=>{null==wi||wi.click(),kr("%c%s","background:dodgerblue;color:yellow;padding:10px;","openLoginPage")})),GaaMeteringRegwall.show({iframeUrl:fi}).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 o=new URL(window.location);o.searchParams.set("referrer",document.referrer),t.searchParams.set("cb",o.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=>{kr(t),kr("an error occurred trying to show regwall"),e()})))}))):e()}));kr("entitlement: ","EVENT_SHOWCASE_NO_ENTITLEMENTS_PAYWALL"," , isUserRegistered: ",!0)})();const Pi=async()=>{const e=document.getElementById("googleSignInButton"),t=document.querySelector(`#drawer button[on="tap:${ve}.close"]`);e&&e.addEventListener("click",(()=>{if(ki){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 Ei=o(21106),ji=o(33371);const Li=e=>Array.isArray(e)&&e.length>0;function xi(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function Ai(e){for(var o=1;o{const e=window.dataLayer||[];window.dataLayer=new Proxy([],{set:(e,t,o)=>{if("length"!==t){const e=new CustomEvent(U,{detail:o});window.dispatchEvent(e)}return Reflect.set(e,t,o)}}),e.forEach((e=>{window.dataLayer.push(e)}))},Ci=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=Li(JSGlobals.article.authors)?(0,Ei.mG)(JSGlobals.article.authors):null,o=Li(JSGlobals.article.authors)?(0,Ei.iy)(JSGlobals.article.authors):null,n=(0,ji.i2)(JSGlobals.article),r=JSGlobals.article.sectionCategory.map((({siteSection:e})=>e)).join("|");e=Ai(Ai({},e),{},{articleId:JSGlobals.pageId,headline:JSGlobals.article.title,authorName:t,authorSlug:o,headlineWordCount:JSGlobals.article.title.split(" ").length,publishedDate:JSGlobals.article.publish,sponsorName:JSGlobals.article.sponsorName,pageCategories:n,siteSection:r,additionalKeywords:null})}window.dataLayer.push(e)})();const{containerId:e,auth:t,env:o}=JSGlobals.gtm;Di(),window.dataLayer=window.dataLayer||[],window.dataLayer.push({"gtm.start":Date.now(),event:"gtm.js"});const n=`https://www.googletagmanager.com/gtm.js?${((e,t=null,o=null)=>t?new URLSearchParams({id:e,gtm_auth:t,gtm_preview:o,gtm_cookies_win:"x"}).toString():new URLSearchParams({id:e}).toString())(e,t,o)}`;await Xe([n])},Ti=async()=>{JSGlobals.gtm&&(await Ci(),await new Promise(((e,t)=>{window.addEventListener(U,(o=>{"gtm.load"===o.detail.event&&(document.body.dispatchEvent(new CustomEvent("gtm_loaded")),e()),kr("Value pushed to dataLayer: ",o.detail),window.google_tag_manager||t("Error firing `fireGTMLoadedCustomEvent` 'google_tag_manager.dataLayer.gtmDom' not found!")}))})))},$i="auto_refresh",Ni=[728,90],Mi=[320,50],Bi=[300,600],Ri=[300,250],Ui=[280,290],Gi=[1,1],zi=576,Ji=1024,Vi=650,qi=1300,Fi=1600,Hi=320,Wi=375,Yi=425,Ki=595,Xi=1280,Qi=1366,Zi=1440,ea=2560;function ta(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function oa(e){for(var o=1;oe.querySelectorAll('[data-mpu]:not([data-initialised="true"])'),ca=(e,t,o)=>{const n=o[e];if(n){const e=[...n].reverse().find((e=>e.from<=t));if(e)return e}},la=(e,t,o,n)=>{if(e.dataset.sizeKey){var r;const n=((e,t,o)=>{const n=ca(e,t,o);return n?n.supportedSizes:null})(e.dataset.sizeKey,t,o);return n||console.warn(`Incorrect Ad size detected: ${null===(r=e.dataset)||void 0===r?void 0:r.tileName}`),n?{str:n.map((e=>e.join("x"))).join("|"),arr:n}:null}const i=((e,t,o)=>t>=o.laptop&&e.dataset.desktopSizes?e.dataset.desktopSizes:t>=o.tablet&&e.dataset.tabletSizes?e.dataset.tabletSizes:te.split("x").map((e=>Number(e)))))}},da=(e,t,o,n)=>({supportedSizes:la(e,t,o,n),refreshMS:e.dataset.refreshMs}),pa=(e,{registerAsCurrentAd:t,adConfig:{types:o},breakPoints:n})=>{var r;const{supportedSizes:i,refreshMS:a}=da(e,Ke(),o,n),s=null!=i&&null!==(r=i.arr)&&void 0!==r&&r.length?((e,t,o,n={})=>window.googletag.defineSlot(e,t,o).setCollapseEmptyDiv(!0).updateTargetingFromMap(n).addService(window.googletag.pubads()))(e.dataset.adUnitPath,i.arr,e.id,{tile:e.id}):null;return s&&t(e,s,i.str,a),!!s},ua=e=>{window.googletag.cmd.push((()=>{const t=window.googletag.pubads().refresh;window.googletag.pubads().refresh=(o,...n)=>{var r,i,a;r=null==o?void 0:o.map((e=>null==e?void 0:e.getSlotElementId())).filter((e=>!!e)),i=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)||(i(e),e.remove())})),t(o,...n)}}))},ma=e=>Number(document.getElementById(`${e.id}_adIndex`).innerHTML),_a=(e,t)=>[...e.split("/").slice(0,-1),t].join("/"),ba=e=>{const t=Object.values(e).reduce(((e,t)=>aa(aa({},e),{},{[t.lineItemId]:(e[t.lineItemId]||0)+1})),{});Object.entries(e).forEach((([o,n])=>{e[o].lineItemCount=t[n.lineItemId]}))},ga=["adConfig","breakPoints","adLoadingBehaviourSettings","beforeSlotsDisplay","beforeSlotRefresh","enableOutOfPageAd"];function fa(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function wa(e){for(var o=1;o{let{adConfig:t,breakPoints:o={tablet:768,laptop:1e3},adLoadingBehaviourSettings:n={},beforeSlotsDisplay:r=(()=>{}),beforeSlotRefresh:i=(()=>{}),enableOutOfPageAd:a}=e,s=z(e,ga);const c={},l={},d={},p=[];let u,m=!0;const{renderMarginPercent:_,mobileScaling:b}=wa(wa({},va),(g=n,Object.fromEntries(Object.entries(g).filter((([,e])=>void 0!==e)))));var g;const f=(e,t,o,n)=>{l[e.id]={el:e,slot:t,sizes:o,refreshMS:n,refreshAttempts:0}},w=e=>{const{id:t}=e,o=l[t];o&&(o.slot&&googletag.destroySlots([o.slot]),o.viewed&&clearTimeout(o.refreshTimeout)),e.setAttribute("data-initialised","false"),e.removeAttribute("id"),delete l[t],delete c[t],ba(c)};ua(w);const h=e=>{const o=e.slot.getSlotElementId(),n=document.getElementById(o);if(null!=n&&n.dataset.sizeKey){var r;const{conditionalAd:i}=ca(n.dataset.sizeKey,Ke(),t.types);if(i&&i.if.join("x")===(null===(r=e.size)||void 0===r?void 0:r.join("x"))){const e=`${o}${i.tileNameExtra}`,t=((e,t,o)=>{const n=document.createElement("div");return n.id=e,n.setAttribute("data-mpu","true"),n.setAttribute("data-size",t),n.setAttribute("data-ad-unit-path",o),n.className="extraAd",n})(e,i.then.join("x"),_a(n.dataset.adUnitPath,e));t.dataset.tileNameExtra=i.tileNameExtra,n.parentElement.appendChild(t)}}};(({consent:e,slotRenderedCallback:n=(()=>{}),slotLoadedCallback:s=(()=>{}),setTargeting:g=(()=>{}),firstAdLoaded:v=(()=>{}),allFirstScreenAdsLoaded:y=(()=>{})})=>{kr("consent inside GPT",e),googletag.cmd.push((()=>{g(),googletag.pubads().setCentering(!0),a&&(()=>{const e="outofpageslot",t=document.querySelector("[data-mpu]");t&&window.googletag.defineOutOfPageSlot(_a(t.dataset.adUnitPath,e),e).addService(window.googletag.pubads())})(),googletag.pubads().enableSingleRequest(),googletag.pubads().enableLazyLoad({fetchMarginPercent:-1,renderMarginPercent:_,mobileScaling:b}),googletag.enableServices();let e=Ke(),k=!1,S=0,O=!1;const I=[];u=(n=!1)=>{const i=Ke();m=n,e!==i&&(e=i,Object.keys(l).forEach((e=>{const n=l[e].el,{supportedSizes:r}=da(n,i,t.types,o);(null==r?void 0:r.str)!==l[e].sizes&&w(n)}))),((e=document)=>e.querySelectorAll('[data-mpu][data-refresh-check="true"][id]'))().forEach((e=>{const t=ma(e);void 0!==d[e.id]&&t!==d[e.id]&&(d[e.id]=t,w(e))})),((e=document)=>[...sa(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),pa(e,{registerAsCurrentAd:f,adConfig:t,breakPoints:o})&&p.push(e),"true"===e.dataset.refreshCheck&&(d[e.id]=ma(e))})),0===p.length&&n&&!O&&(O=!0,y()),(async()=>{const e=[...p];p.length=0,e.length&&(await r({slotElems:e,slots:e.map((e=>{var t;return null===(t=l[e.id])||void 0===t?void 0:t.slot})).filter(Boolean),isFirstLoad:m}),e.forEach((e=>{googletag.cmd.push((()=>{googletag.display(e.id)}))}))),setTimeout(u,100)})()},u(!0),googletag.pubads().addEventListener("slotRenderEnded",(e=>{h(e),n(e),(async e=>{var o;const n=null!==(o=t.maxEmptySlotRefreshAttempts)&&void 0!==o?o:2;if(0===n)return;const r=e.slot.getSlotElementId(),a=l[r];if(e.isEmpty){if(!a.refreshMS)return;if(a.refreshAttempts>=n)return void console.warn(`Could not find ad to fill '${r}' after ${n} attempts`);a.refreshAttempts++,e.slot.setTargeting(ha,a.refreshAttempts),await i({slotElem:a.el,slot:a.slot}),window.googletag.pubads().refresh([a.slot])}else a.refreshAttempts=0,e.slot.clearTargeting(ha)})(e)})),googletag.pubads().addEventListener("slotResponseReceived",(e=>{(e=>{const t=e.getSlotElementId();c[t]=wa(wa({},e.getResponseInformation()),{},{lineItemCount:1}),ba(c)})(e.slot)})),googletag.pubads().addEventListener("slotOnload",((...e)=>{if(s(...e),k||(k=!0,v()),0===I.length)for(const e in l){const t=l[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 o=e.slot.getSlotId().getDomId(),n=l[o];if(n.viewed=!0,((e,t)=>{var o;return!!c[e]&&!(null===(o=t[c[e].advertiserId])||void 0===o||!o.disableRefresh)})(o,t.advertisers||{})||((e,t)=>{var o;return!!c[e]&&!(null===(o=t[c[e].campaignId])||void 0===o||!o.disableRefresh)})(o,t.campaigns||{}))return;(((e,t)=>{var o;return!!c[e]&&!(null===(o=t[c[e].advertiserId])||void 0===o||!o.forceRefresh)})(o,t.advertisers||{})||!(c[o].lineItemCount>1)&&n.refreshMS)&&(n.refreshTimeout=setTimeout((async()=>{n.viewed=!1,await i({slotElem:n.el,slot:n.slot}),window.googletag.pubads().refresh([n.slot])}),n.refreshMS))}))}))})(s)},ka=e=>e.map((({customer:e,rating:t})=>`${e}-${t}`)),Sa=e=>ka(e).join(","),Oa=e=>e.map((({label:e})=>e)),Ia=()=>{const e=localStorage.getItem("_pdfps"),t=e?JSON.parse(e):[];if(!window.JSGlobals)return{permutive:t};const{pageId:o,topictags:n,pageType:r,isLiveBlog:i,isCommercial:a,mantis_channels:s,mantis_context:c}=JSGlobals;return{mantis:(null==s?void 0:s.ratings)&&ka(s.ratings),mantis_context:c&&Oa(c),topictags:n,pageType:r,liveblog:i?"y":"n",commercial:a?"y":"n",article:o,permutive:t}},Pa="adyoulike",Ea={bottom_mpu_1:{web:"631561064506a8d26e213385c48f8258"},bottom_mpu_2:{web:"dce684d809f523d2b3472ad73aa94cec"},bottom_mpu_3:{web:"5fb6c2385d6ed1c79426d52c6fe434e4"},bottom_mpu_4:{web:"ea2fb05302f71ceda088dfadd7a8331a"},bottom_mpu_5:{web:"18301244018267bcc95fee829ca99c03"},bottom_mpu_6:{web:"e1cdced35a15c4948ee853da654b0259"},bottom_mpu_7:{web:"e98579d6397e99f31d97387f70d67eb2"},bottom_mpu_8:{web:"7a2ee87c492e4499694ed6588c4972fa"},bottom_mpu_9:{web:"383e8bef6d321303591476cb04a52fd8"},bottom_mpu_10:{web:"0beda6e80b9f2a058b56108463a4fc49"},mpu_bottom_sb:{web:"13dce187b21e21e6c8e148e162f1cee4"},mpu_bottom_sb_1:{web:"d899d51b57f2b9d8c9712d0d3f7b8975"},mpu1:{web:"7b7523bfe85e07cf32191f16fcbd9e1e"},mpu2:{web:"3bbbf74cd213703767919452cb99a189"},mpu3:{web:"6a6d675268a5986873cfa7814f5cf0e8"},mpu4:{web:"66b8fb28d2a0d8afa922a5c5a0ab009d"},mpu5:{web:"59245904193110104e6690cb24db740a"},mpu6:{web:"2f0d39560e278b406247036ce164b4cf"},blog_mpu_1:{web:"2d899f05554168e915ab6203b7c9419f"},blog_mpu_2:{web:"76f60fc25096e56650f8efcf844bb88d"},blog_mpu_3:{web:"94bdd1e2d38171c1ddb5163919ba2f16"},blog_mpu_4:{web:"e2fa8caaf2a22e22799c5182032ea86e"},blog_mpu_5:{web:"9ceec554bac91489fb48aed2b421f66a"},blog_mpu_6:{web:"6f2fe5ab2e676d9bbad677c38e40d25f"},blog_mpu_7:{web:"4b0c09849468b91f83d4f2c28c29fa21"},blog_mpu_8:{web:"aa3b7c42796f5f09bba3105cd2f7e1f0"},blog_mpu_9:{web:"830af57c7970aaf39c15c1002537667f"},blog_mpu_10:{web:"52b567f2a6ac54ca08bdb0a46abeffdd"},bottom_banner_0:{web:"5d8c1a0d6b7217d4f0e33426711c5ef3"},top_banner:{web:"3a4c7e81240e55acf222644e65772860"}},ja={bidderName:Pa,params:({id:e})=>{const t=Ea[e];return t?{bidder:Pa,params:{placement:t.web,keywords:Ia()}}:null}},La="adagio",xa={bottom_banner_0:{placementId:"bottom_banner_0"},bottom_mpu_1:{placementId:"bottom_mpu_1"},bottom_mpu_2:{placementId:"bottom_mpu_2"},bottom_mpu_3:{placementId:"bottom_mpu_3"},bottom_mpu_4:{placementId:"bottom_mpu_4"},bottom_mpu_5:{placementId:"bottom_mpu_5"},mpu_bottom_sb:{placementId:"mpu_bottom_sb"},mpu_bottom_sb_1:{placementId:"mpu_bottom_sb_1"},mpu1:{placementId:"mpu1"},mpu2:{placementId:"mpu2"},mpu3:{placementId:"mpu3"},mpu4:{placementId:"mpu4"},mpu5:{placementId:"mpu5"},blog_mpu_1:{placementId:"blog_mpu_1"},blog_mpu_2:{placementId:"blog_mpu_2"},blog_mpu_3:{placementId:"blog_mpu_3"},blog_mpu_4:{placementId:"blog_mpu_4"},thirdparty01:{placementId:"thirdparty01"},thirdparty02:{placementId:"thirdparty02"},top_banner:{placementId:"top_banner"}},Aa={bidderName:La,params:({id:e})=>{const t=xa[e];return t?{bidder:La,params:{organizationId:"1433",site:"independent-co-uk",adUnitElementId:t.placementId,placement:t.placementId}}:null}},Da="criteo",Ca=["thirdparty01","thirdparty02"],Ta={bidderName:Da,params:({id:e})=>Ca.includes(e)?null:{bidder:Da,params:{networkId:1680,keywords:Ia()}}},$a="grid",Na={bidderName:$a,instreamVideoParams:()=>({bidder:$a,params:{uid:381157,keywords:Ia()}})};var Ma;function Ba(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function Ra(e){for(var o=1;o{const t=Ga[e];return t?{bidder:Ua,params:Ra(Ra(Ra({zone:t.zone},Ga[e].pubId&&{pubId:Ga[e].pubId}),Ga[e].slot&&{slot:Ga[e].slot}),Ga[e].product&&{product:Ga[e].product})}:null}};function Ja(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function Va(e){for(var o=1;o{const t=Ha[e];return t?Va(Va({bidder:qa},t.outstreamVideo&&{mediaTypes:{video:Fa}}),{},{params:{siteId:t.web}}):null},instreamVideoParams:()=>({bidder:qa,params:{siteId:"849727",keywords:Ia()}})},Ya="invibes",Ka={bottom_mpu_1:{placementId:"invibes_independent_bottom_mpu_1"},bottom_mpu_2:{placementId:"invibes_independent_bottom_mpu_2"},mpu1:{placementId:"invibes_independent_mpu1"},thirdparty01:{placementId:"invibes_independent_thirdparty01"},thirdparty02:{placementId:"invibes_independent_thirdparty02"}},Xa={bidderName:Ya,params:({id:e})=>{const t=Ka[e];return t?{bidder:Ya,params:{placementId:t.placementId,customEndpoint:"https://bid3.videostep.com/Bid/VideoAdContent"}}:null}};var Qa;function Za(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function es(e){for(var o=1;oe.map((e=>({minViewPort:[e.from,0],sizes:e.supportedSizes}))),ns="display",rs="phone",is=(e,t)=>{const o=e.map((({id:e,sizes:o,video:n})=>{let r={};r=["thirdparty01","thirdparty02"].includes(e)&&n?{video:n,banner:{sizeConfig:os(o)}}:n?{video:n}:{banner:{sizeConfig:os(o)}};const i=(({id:e,bidders:t})=>t.map((t=>t.params?t.params({id:e}):null)).map((e=>e?(e.params?e.params.keywords=Ia():e.params={keywords:Ia()},Array.isArray(e)&&(e=e.map((e=>(e.params?e.params.keywords=Ia():e.params={keywords:Ia()},e)))),e):null)).filter((e=>e)).reduce(((e,t)=>Array.isArray(t)?[...e,...t]:[...e,t]),[]))({id:e,bidders:t});return{code:e,mediaTypes:r,bids:i}}));return kr("prebidAdConfig: ",o),o},as=(e,t,o,n)=>{const r=Ks.filter((e=>e.instreamVideoParams)).map((e=>e.instreamVideoParams())),i={ext:{data:{jwTargeting:{playerID:t,mediaID:e}},marketplace:{allowedbidders:["pubmatic"]}}};return es(es({},Qs(o,n)),{},{bids:r,ortb2Imp:i})};let ss=!1;const cs=()=>{var e;const t=[{name:"permutive",waitForIt:!0,params:{acBidders:["appnexus","pubmatic"]}},{name:"brandmetrics",waitForIt:!0,params:{bidders:["ozone"]}}];return null!==(e=JSGlobals.article)&&void 0!==e&&e.heroMediaId&&t.push({name:"jwplayer",waitForIt:!0,params:{mediaIDs:[JSGlobals.article.heroMediaId]}}),t},ls=()=>new Promise((e=>{if(ss)return void e();ss=!0;const t=window.pbjs||{};t.que=t.que||[],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:cs()},fledgeForGpt:{enabled:!0,defaultForSlots:1},consentManagement:es(es({usp:{cmpApi:"iab",timeout:50}},[E,j].includes(ts)&&{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:Xs,userSync:{userIds:[{name:"teadsId",params:{pubId:5668}}],filterSettings:{iframe:{bidders:Ks.map((e=>e.bidderName)),filter:"include"}}},enableTIDs:!0}),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.bidderSettings=es(es({},t.bidderSettings),{},{grid:{bidCpmAdjustment:(e,t)=>(console.log(`Bidder is: ${t.bidderCode}`),.7*e)},adagio:{storageAllowed:!0}});const o=is(Zs,Ks);t.addAdUnits(o),e()}))}));function ds(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function ps(e){for(var o=1;o{const t=_s[e],o=bs[e];return[...t?[{bidder:us,params:t,labelAny:[ns]}]:[],...o?[{bidder:us,params:o,labelAny:[rs]}]:[]]},instreamVideoParams:()=>({bidder:us,params:{placementId:"_rnVetCjAeH",keywords:ps({},ms)}})},fs="nextMillennium",ws={placement_id:"45341"},hs={bidderName:fs,instreamVideoParams:()=>({bidder:fs,params:{placement_id:ws.placement_id}})};function vs(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function ys(e){for(var o=1;o{const{publisherId:o,siteId:n}=JSGlobals.ozone,r=Ss[e];return r?{bidder:ks,params:ys({publisherId:o,siteId:n,placementId:r.web,customData:[{targeting:ys(ys({},Os),{},{tile:e,permutiveId:localStorage.getItem(d)})}]},t?{video:{skippable:!0,playback_method:["auto_play_sound_off"]}}:{})}:null},instreamVideoParams:()=>({bidder:ks,params:{publisherId:"OZONEESI0001",placementId:"1500000130",siteId:"4204204237",keywords:ys({},Os)}})},Ps=()=>{const e=JSON.parse(localStorage.getItem("_psegs")||"[]").map(Number).filter((e=>e>=1e6)).map(String),t=JSON.parse(window.localStorage._ppam||"[]"),o=JSON.parse(window.localStorage._pcrprs||"[]");return e.concat(t).concat(o)};function Es(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function js(e){for(var o=1;o{var t,o;const n=Ia(),r=Object.keys(n).reduce(((e,t)=>{const o=`${t}=${JSON.stringify(n[t])}`;return 0===e.length?o:`${e}|${o}`}),""),i=xs[e];return i?{bidder:Ls,params:{publisherId:"160736",adSlot:i.web,keywords:js({p_standard:Ps()},n),outstreamAU:null!==(t=i.outstreamAU)&&void 0!==t?t:"",dctr:r,video:null!==(o=i.video)&&void 0!==o?o:""}}:null},instreamVideoParams:()=>({bidder:Ls,params:{publisherId:"160736",adSlot:"independent_prebid_video_0x0_catchall"}})},Ds="rise",Cs="6448fc9664ef8b00016d7fe0",Ts={bottom_banner_0:{org:Cs},bottom_mpu_1:{org:Cs},bottom_mpu_2:{org:Cs},bottom_mpu_3:{org:Cs},bottom_mpu_4:{org:Cs},bottom_mpu_5:{org:Cs},bottom_mpu_6:{org:Cs},bottom_mpu_7:{org:Cs},bottom_mpu_8:{org:Cs},bottom_mpu_9:{org:Cs},bottom_mpu_10:{org:Cs},mpu_bottom_sb:{org:Cs},mpu_bottom_sb_1:{org:Cs},mpu1:{org:Cs},mpu2:{org:Cs},mpu3:{org:Cs},mpu4:{org:Cs},mpu5:{org:Cs},blog_mpu_1:{org:Cs},blog_mpu_2:{org:Cs},blog_mpu_3:{org:Cs},blog_mpu_4:{org:Cs},blog_mpu_5:{org:Cs},blog_mpu_6:{org:Cs},thirdparty01:{org:Cs},thirdparty02:{org:Cs},top_banner:{org:Cs}},$s="rubicon",Ns={bottom_banner_0:{web:2969500},bottom_mpu_0:{web:2969502},bottom_mpu_1:{web:2969512},bottom_mpu_10:{web:2969514},bottom_mpu_2:{web:2969516},bottom_mpu_3:{web:2969518},bottom_mpu_4:{web:2969526},bottom_mpu_5:{web:2969528},bottom_mpu_6:{web:2969530},bottom_mpu_7:{web:2969532},bottom_mpu_8:{web:2969534},bottom_mpu_9:{web:2969536},gtl:{web:2969538},gtr:{web:2969540},mpu_bottom_sb:{web:2969644},mpu_bottom_sb_1:{web:2969648},mpu0:{web:2969650},mpu1:{web:2969652},mpu1_bottom:{web:2969756},mpu2:{web:2969758},mpu2_bottom:{web:2969760},mpu3:{web:2969762},mpu3_bottom:{web:2969764},mpu4:{web:2969766},mpu4_bottom:{web:2969768},mpu5:{web:2969770},mpu5_bottom:{web:2969772},mpu6:{web:2969646},blog_mpu_0:{web:2969726},blog_mpu_1:{web:2969728},blog_mpu_10:{web:2969730},blog_mpu_2:{web:2969732},blog_mpu_3:{web:2969734},blog_mpu_4:{web:2969736},blog_mpu_5:{web:2969738},blog_mpu_6:{web:2969740},blog_mpu_7:{web:2969742},blog_mpu_8:{web:2969744},blog_mpu_9:{web:2969746},thirdparty01:{web:2969748},thirdparty02:{web:2969750},top_banner:{web:2969752}},Ms="teads",Bs={blog_mpu_0:{placementId:"176811",pageId:"162105"},blog_mpu_1:{placementId:"176811",pageId:"162105"},blog_mpu_2:{placementId:"176811",pageId:"162105"},blog_mpu_3:{placementId:"176811",pageId:"162105"},blog_mpu_4:{placementId:"176811",pageId:"162105"},blog_mpu_5:{placementId:"176811",pageId:"162105"},blog_mpu_6:{placementId:"176811",pageId:"162105"},blog_mpu_7:{placementId:"176811",pageId:"162105"},blog_mpu_8:{placementId:"176811",pageId:"162105"},blog_mpu_9:{placementId:"176811",pageId:"162105"},blog_mpu_10:{placementId:"176811",pageId:"162105"},mpu_bottom_sb:{placementId:"176812",pageId:"162106"},mpu_bottom_sb_1:{placementId:"176812",pageId:"162106"},mpu0:{placementId:"176811",pageId:"162105"},mpu1:{placementId:"191844",pageId:"176842"},mpu2:{placementId:"191845",pageId:"176843"},mpu3:{placementId:"191847",pageId:"176845"},mpu4:{placementId:"191851",pageId:"176849"},mpu5:{placementId:"191853",pageId:"176851"},thirdparty01:{placementId:"176811",pageId:"162105"},thirdparty02:{placementId:"176811",pageId:"162105"},top_banner:{placementId:"176812",pageId:"162106"},content:{placementId:"176811",pageId:"162105"}},Rs={blog_mpu_0:{placementId:"176811",pageId:"162105"},blog_mpu_1:{placementId:"176811",pageId:"162105"},blog_mpu_2:{placementId:"176811",pageId:"162105"},blog_mpu_3:{placementId:"176811",pageId:"162105"},blog_mpu_4:{placementId:"176811",pageId:"162105"},blog_mpu_5:{placementId:"176811",pageId:"162105"},blog_mpu_6:{placementId:"176811",pageId:"162105"},blog_mpu_7:{placementId:"176811",pageId:"162105"},blog_mpu_8:{placementId:"176811",pageId:"162105"},blog_mpu_9:{placementId:"176811",pageId:"162105"},blog_mpu_10:{placementId:"176811",pageId:"162105"},bottom_mpu_0:{placementId:"176811",pageId:"162105"},bottom_mpu_1:{placementId:"176812",pageId:"162106"},bottom_mpu_2:{placementId:"176812",pageId:"162106"},bottom_mpu_3:{placementId:"176812",pageId:"162106"},bottom_mpu_4:{placementId:"176812",pageId:"162106"},bottom_mpu_5:{placementId:"176812",pageId:"162106"},bottom_mpu_6:{placementId:"176812",pageId:"162106"},bottom_mpu_7:{placementId:"176812",pageId:"162106"},bottom_mpu_8:{placementId:"176812",pageId:"162106"},bottom_mpu_9:{placementId:"176812",pageId:"162106"},bottom_mpu_10:{placementId:"176812",pageId:"162106"},bottom_banner_0:{placementId:"176812",pageId:"162106"},mpu1:{placementId:"191842",pageId:"176840"},mpu2:{placementId:"191846",pageId:"176844"},mpu3:{placementId:"191850",pageId:"176848"},mpu4:{placementId:"191852",pageId:"176850"},mpu5:{placementId:"191854",pageId:"176852"},thirdparty01:{placementId:"176811",pageId:"162105"},thirdparty02:{placementId:"176811",pageId:"162105"},content:{placementId:"176811",pageId:"162105"}},Us="ttd",Gs="theindependent",zs={bottom_banner_0:{placementId:"independent_1_bottom_banner_0"},bottom_mpu_1:{placementId:"independent_1_bottom_mpu_1"},bottom_mpu_2:{placementId:"independent_1_bottom_mpu_2"},bottom_mpu_3:{placementId:"independent_1_bottom_mpu_3"},bottom_mpu_4:{placementId:"independent_1_bottom_mpu_4"},bottom_mpu_5:{placementId:"independent_1_bottom_mpu_5"},bottom_mpu_6:{placementId:"independent_1_bottom_mpu_6"},bottom_mpu_7:{placementId:"independent_1_bottom_mpu_7"},bottom_mpu_8:{placementId:"independent_1_bottom_mpu_8"},bottom_mpu_9:{placementId:"independent_1_bottom_mpu_9"},bottom_mpu_10:{placementId:"independent_1_bottom_mpu_10"},mpu_bottom_sb:{placementId:"independent_1_mpu_bottom_sb"},mpu_bottom_sb_1:{placementId:"independent_1_mpu_bottom_sb_1"},mpu1:{placementId:"independent_1_mpu1"},mpu2:{placementId:"independent_1_mpu2"},mpu3:{placementId:"independent_1_mpu3"},mpu4:{placementId:"independent_1_mpu4"},mpu5:{placementId:"independent_1_mpu5"},blog_mpu_1:{placementId:"independent_1_blog_mpu_1"},blog_mpu_2:{placementId:"independent_1_blog_mpu_2"},blog_mpu_3:{placementId:"independent_1_blog_mpu_3"},blog_mpu_4:{placementId:"independent_1_blog_mpu_4"},blog_mpu_5:{placementId:"independent_1_blog_mpu_5"},blog_mpu_6:{placementId:"independent_1_blog_mpu_6"},thirdparty01:{placementId:"independent_1_thirdparty01"},thirdparty02:{placementId:"independent_1_thirdparty02"},top_banner:{placementId:"independent_1_top_banner"}},Js="vidazoo",Vs={bottom_banner_0:{cId:"653a9441c2a2ad317e174723",pId:"59ac17c192832d0011283fe3"},bottom_mpu_1:{cId:"653a9441c2a2ad317e174723",pId:"59ac17c192832d0011283fe3"},bottom_mpu_2:{cId:"653a9441c2a2ad317e174723",pId:"59ac17c192832d0011283fe3"},bottom_mpu_3:{cId:"653a9441c2a2ad317e174723",pId:"59ac17c192832d0011283fe3"},bottom_mpu_4:{cId:"653a9441c2a2ad317e174723",pId:"59ac17c192832d0011283fe3"},bottom_mpu_5:{cId:"653a9441c2a2ad317e174723",pId:"59ac17c192832d0011283fe3"},bottom_mpu_6:{cId:"653a9441c2a2ad317e174723",pId:"59ac17c192832d0011283fe3"},bottom_mpu_7:{cId:"653a9441c2a2ad317e174723",pId:"59ac17c192832d0011283fe3"},bottom_mpu_8:{cId:"653a9441c2a2ad317e174723",pId:"59ac17c192832d0011283fe3"},bottom_mpu_9:{cId:"653a9441c2a2ad317e174723",pId:"59ac17c192832d0011283fe3"},bottom_mpu_10:{cId:"653a9441c2a2ad317e174723",pId:"59ac17c192832d0011283fe3"},mpu_bottom_sb:{cId:"653a9441c2a2ad317e174723",pId:"59ac17c192832d0011283fe3"},mpu_bottom_sb_1:{cId:"653a9441c2a2ad317e174723",pId:"59ac17c192832d0011283fe3"},thirdparty01:{cId:"653a9441c2a2ad317e174723",pId:"59ac17c192832d0011283fe3"},thirdparty02:{cId:"653a9441c2a2ad317e174723",pId:"59ac17c192832d0011283fe3"},top_banner:{cId:"653a9441c2a2ad317e174723",pId:"59ac17c192832d0011283fe3"},blog_mpu_0:{cId:"653a9441c2a2ad317e174723",pId:"59ac17c192832d0011283fe3"},blog_mpu_1:{cId:"653a9441c2a2ad317e174723",pId:"59ac17c192832d0011283fe3"},blog_mpu_2:{cId:"653a9441c2a2ad317e174723",pId:"59ac17c192832d0011283fe3"},blog_mpu_3:{cId:"653a9441c2a2ad317e174723",pId:"59ac17c192832d0011283fe3"},blog_mpu_4:{cId:"653a9441c2a2ad317e174723",pId:"59ac17c192832d0011283fe3"},blog_mpu_5:{cId:"653a9441c2a2ad317e174723",pId:"59ac17c192832d0011283fe3"},blog_mpu_6:{cId:"653a9441c2a2ad317e174723",pId:"59ac17c192832d0011283fe3"},mpu1:{cId:"653a9441c2a2ad317e174723",pId:"59ac17c192832d0011283fe3"},mpu2:{cId:"653a9441c2a2ad317e174723",pId:"59ac17c192832d0011283fe3"},mpu3:{cId:"653a9441c2a2ad317e174723",pId:"59ac17c192832d0011283fe3"},mpu4:{cId:"653a9441c2a2ad317e174723",pId:"59ac17c192832d0011283fe3"},mpu5:{cId:"653a9441c2a2ad317e174723",pId:"59ac17c192832d0011283fe3"}};function qs(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function Fs(e){for(var o=1;o{const t=Ia(),o=Ws[e];return o?{bidder:Hs,params:{placementId:parseInt(o.web),keywords:Fs({p_standard:Ps()},t)}}:null},instreamVideoParams:()=>{const e=Ia();return{bidder:Hs,params:{placementId:"24378050",keywords:Fs({},e)}}}},Ks=[Is,Ys,As,Wa,gs,Ta,{bidderName:$s,params:({id:e})=>{const t=Ns[e];return t?{bidder:$s,params:{zoneId:t.web,accountId:17292,siteId:498704}}:null},instreamVideoParams:()=>({bidder:$s,params:{accountId:17292,siteId:437942,zoneId:2510088}})},ja,Na,{bidderName:Ms,params:({id:e})=>{const t=Bs[e];return[...t?[{bidder:Ms,params:t,labelAny:[ns]}]:[],...Rs[e]?[{bidder:Ms,params:Rs[e],labelAny:[rs]}]:[]]}},za,hs,{bidderName:Ds,params:({id:e})=>{const t=Ts[e];return t?{bidder:Ds,params:{org:t.org}}:null},instreamVideoParams:()=>({bidder:Ds,params:{org:Cs}})},Xa,{bidderName:Js,params:({id:e})=>{const t=Vs[e];return t?{bidder:Js,params:{cId:t.cId,pId:t.pId,subDomain:"exchange"}}:null}},Aa,{bidderName:Us,params:({id:e})=>{const t=zs[e];return t?{bidder:Us,params:{placementId:t.placementId,publisherId:"1",supplySourceId:Gs}}:null},instreamVideoParams:()=>({bidder:Us,params:{placementId:"independent_1_hero_player",publisherId:"1",supplySourceId:Gs}})}],Xs={buckets:[{max:3,increment:.02},{max:5,increment:.05},{max:20,increment:.5}]},Qs=(e,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}}}),Zs=[{id:"thirdparty01",sizes:ra.THIRD_PARTY_ARTICLE_BODY,video:{context:"outstream",playerSize:[640,360],mimes:["video/mp4"]}},{id:"thirdparty02",sizes:ra.THIRD_PARTY_ARTICLE_BODY,video:{context:"outstream",playerSize:[640,360],mimes:["video/mp4"]}},{id:"top_banner",sizes:ra.TOP_BANNER},{id:"bottom_mpu_0",sizes:ra.SINGLE_MPU_ONLY_MOBILE},{id:"bottom_mpu_1",sizes:ra.SINGLE_MPU_ONLY_MOBILE},{id:"bottom_mpu_2",sizes:ra.SINGLE_MPU_ONLY_MOBILE},{id:"bottom_mpu_3",sizes:ra.SINGLE_MPU_ONLY_MOBILE},{id:"bottom_mpu_4",sizes:ra.SINGLE_MPU_ONLY_MOBILE},{id:"bottom_mpu_5",sizes:ra.SINGLE_MPU_ONLY_MOBILE},{id:"bottom_mpu_6",sizes:ra.SINGLE_MPU_ONLY_MOBILE},{id:"bottom_mpu_7",sizes:ra.SINGLE_MPU_ONLY_MOBILE},{id:"bottom_mpu_8",sizes:ra.SINGLE_MPU_ONLY_MOBILE},{id:"bottom_mpu_9",sizes:ra.SINGLE_MPU_ONLY_MOBILE},{id:"bottom_mpu_10",sizes:ra.SINGLE_MPU_ONLY_MOBILE},{id:"gallery_mpu_sb",sizes:ra.DOUBLE_MPU},{id:"gallery_mpu",sizes:ra.DOUBLE_MPU},{id:"mpu_bottom_sb",sizes:ra.MPU_BOTTOM_SB},{id:"mpu_bottom_sb_1",sizes:ra.MPU_BOTTOM_SB},{id:"mpu0",sizes:ra.DOUBLE_MPU_EXTRA_NOT_MOBILE},{id:"mpu1",sizes:ra.DOUBLE_MPU_EXTRA},{id:"mpu2",sizes:ra.DOUBLE_MPU_EXTRA_NOT_MOBILE},{id:"mpu3",sizes:ra.DOUBLE_MPU_EXTRA_NOT_MOBILE},{id:"mpu4",sizes:ra.SINGLE_MPU},{id:"mpu5",sizes:ra.DOUBLE_MPU_EXTRA_NOT_MOBILE},{id:"mpu6",sizes:ra.DOUBLE_MPU},{id:"bottom_banner_0",sizes:ra.BOTTOM_BANNER},{id:"blog_mpu_0",sizes:ra.SINGLE_MPU},{id:"blog_mpu_1",sizes:ra.SINGLE_MPU},{id:"blog_mpu_2",sizes:ra.SINGLE_MPU},{id:"blog_mpu_3",sizes:ra.SINGLE_MPU},{id:"blog_mpu_4",sizes:ra.SINGLE_MPU},{id:"blog_mpu_5",sizes:ra.SINGLE_MPU},{id:"blog_mpu_6",sizes:ra.SINGLE_MPU},{id:"blog_mpu_7",sizes:ra.SINGLE_MPU},{id:"blog_mpu_8",sizes:ra.SINGLE_MPU},{id:"blog_mpu_9",sizes:ra.SINGLE_MPU},{id:"blog_mpu_10",sizes:ra.SINGLE_MPU}];var ec=o(72727);const tc=`(min-width: ${Yi}px)`,oc=Object.freeze([[1,1],[245,210]].map((e=>e.join(",")))),nc=async()=>{await Xe(["/js/third-party/aps.js"])},rc=()=>{var e;null===(e=window.apstag)||void 0===e||e.init({pubID:"3579",adServer:"googletag",videoAdServer:"DFP",deals:!0})},ic=async e=>{const t=await(e=>{const t=window.apstag;rc();const o={slots:[{slotID:e,mediaType:"video"}],timeout:5e3};return new Promise((function(e){t.fetchBids(o,(t=>{e(t)}))}))})(e),o=t.filter((t=>t.slotID===e))[0];return(null==o?void 0:o.targeting)||[]},ac=async e=>{await nc(),rc();const t=(o=Zs,null==(n=e)?void 0:n.filter((e=>o.find((t=>t.id===e.id)))));var o,n;if(!t.length)return;const r=new Promise((e=>{var o;const n=(e=>e.map((e=>({slotID:e.id,sizes:[...new Set(Zs.find((t=>t.id===e.id)).sizes.flatMap((e=>e.supportedSizes)).filter((e=>!oc.includes(e.join(",")))))],slotName:e.getAttribute("data-ad-unit-path")}))))(t);null===(o=apstag)||void 0===o||o.fetchBids({slots:n},(t=>{kr("APS bids:",t),googletag.cmd.push((()=>{var t;null===(t=apstag)||void 0===t||t.setDisplayBids(),e()}))}))})),i=new Promise((e=>{const o=t.map((e=>e.id)),n=window.matchMedia(tc).matches?ns:rs,r=window.pbjs||{};r.que=r.que||[],r.que.push((()=>{r.requestBids({labels:[n],timeout:1500,adUnitCodes:o,bidsBackHandler:()=>{t.forEach((e=>{r.setTargetingForGPTAsync([e.id])})),e()}}),kr("pbjs:","request sent")}))}));await Promise.race([Promise.all([i,r]),new Promise((e=>setTimeout(e,2e3)))])},sc=(e,t)=>{const o=JSON.stringify({error:"Request has timed out"}),n=e?Sa(e.ratings):o,r=t?Oa(t).join(","):o;googletag.pubads().setTargeting("mantis",n),googletag.pubads().setTargeting("mantis_context",r)},cc=()=>{JSGlobals.article&&googletag.pubads().setTargeting("article",JSGlobals.pageId.replace(/\D/g,""))},lc=["refresh","hasRegGate"];function dc(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function pc(e){for(var o=1;o{let{refresh:o,hasRegGate:n}=t,r=z(t,lc);const i=localStorage.getItem("permutive-id"),a=location.pathname.startsWith("/tv/");(e=>{e&&googletag.cmd.push((()=>{googletag.pubads().setPublisherProvidedId(e.replace(/-/g,""))}))})(i),ya(pc(pc({},r),{},{adConfig:pc({types:ra},JSGlobals.adConfig),breakPoints:e,adLoadingBehaviourSettings:JSGlobals.adConfig||{},setTargeting:()=>{var e,t,r,a,s,c;"cookieDeprecationLabel"in navigator&&navigator.cookieDeprecationLabel.getValue().then((e=>{e&&googletag.pubads().setTargeting("chrome_facilitated_testing",e)})),googletag.pubads().setTargeting("pageType",JSGlobals.pageType),cc(),sc(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")})(n),(e=>{if(googletag.pubads().getTargeting("permutive").length)return;const t=localStorage.getItem("_pdfps");googletag.pubads().setTargeting("permutive",t?JSON.parse(t):[]),e&&(window.googletag.pubads().setTargeting("puid",e),window.googletag.pubads().setTargeting("ptime",Date.now().toString()))})(i),(e=>{googletag.pubads().setTargeting("autorefresh",e?"yes":"no")})(o),googletag.pubads().setTargeting("gdpr",wt("gdpr","none")),(()=>{const e=JSGlobals.topictags||[];e.length&&googletag.pubads().setTargeting("topictags",e)})(),(()=>{var e;if(!window.location.search)return;const t=null===(e=new URLSearchParams(window.location.search).get("campaign-override"))||void 0===e?void 0:e.trim();t&&googletag.pubads().setTargeting("display_test",t)})(),s=null===(r=JSGlobals)||void 0===r?void 0:r.isLiveBlog,googletag.pubads().setTargeting("liveblog",s?"y":"n"),c=null===(a=JSGlobals)||void 0===a?void 0:a.isCommercial,googletag.pubads().setTargeting("commercial",c?"y":"n"),(()=>{const{page_previous_url:e}=digitalData;e&&googletag.pubads().setTargeting("referrer",e)})()},beforeSlotsDisplay:async({slotElems:e})=>{const t=a?null==e?void 0:e.filter((e=>"mpu1"!==(null==e?void 0:e.id))):e;r.prebidEnabled&&await ac(t)},beforeSlotRefresh:async({slotElem:e,slot:t})=>{a&&"mpu1"===(null==e?void 0:e.id)||(r.prebidEnabled&&await ac([e]),t.setTargeting("sovrn-reload","True"))},enableOutOfPageAd:!1}))};var mc=o(65081);const _c=()=>{Promise.resolve().then((async()=>{if("serviceWorker"in navigator)try{await navigator.serviceWorker.register(`/${mc.SW_FILENAME}`)}catch(e){console.error("Service Worker registration failed:",e)}else console.error("Service Worker is not supported by your browser")}))},bc=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(ee)},gc=()=>{const e=()=>{document.body.classList.remove(ee)};document.addEventListener("keydown",bc),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 o=matchMedia("(hover:hover)").matches;if(t){o=!1;const e=()=>{!o&&matchMedia("(hover:hover)").matches&&document.body.classList.add(Z)};document.addEventListener("mousemove",e)}document.body.classList.toggle(Z,o)},fc=()=>{document.getElementsByClassName("instagram-media").length>0&&Xe("https://www.instagram.com/embed.js")};class wc 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 hc={};let vc;const yc=()=>Date.now()-vc,kc=e=>{const t=yc();hc[e]=t,kr(`starting ${e} load @ ${t}`)},Sc=e=>{const t=yc();kr(`finished ${e} load @ ${t}, duration ${t-hc[e]}`),delete hc[e]},Oc=()=>{const e=new URL(document.location.href);return["callback","code","state"].every((t=>e.searchParams.has(t)))},Ic=e=>`__${e}__`,Pc=Ic("page-url"),Ec=Ic("timestamp"),jc=Ic("gdpr"),Lc=Ic("gdpr_consent"),xc=Ic("addtl_consent");function Ac(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function Dc(e){for(var o=1;o{const r=window.pbjs||{};r.que=r.que||[];const i=as(e,t,o,n),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}}),r.addAdUnits(i),r.requestBids({adUnitCodes:[o],timeout:3e3,bidsBackHandler:()=>{e()}})}))}))},Tc=async(e,t,o,n,r,i)=>{await nc();const a=as(e,t,o,r),s=[Cc(e,t,o,r),ic(o)],[,c]=await Promise.all(s);return window.pbjs.adServers.dfp.buildVideoUrl(Dc(Dc({},i?{url:i}:{}),{},{adUnit:a,output:"vast",params:{iu:n,cust_params:c}}))},$c=async(e,t,o,n)=>Dc({hb_uuid:void 0,hb_cache_id:void 0},await(async()=>{if(window.JSGlobals.prebidEnabled){await Cc(e,t,o,n);return window.pbjs.getAdserverTargetingForAdUnitCode([o])}return{}})()),Nc=async()=>{if("cookieDeprecationLabel"in navigator){return await navigator.cookieDeprecationLabel.getValue()||""}return""},Mc=()=>{const e=window.localStorage.getItem(d);return e?e.replace(/-/g,""):""};function Bc(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function Rc(e){for(var o=1;olocation.pathname.startsWith("/tv/"),zc=()=>{return Gc()?"videohub":(null===(e=JSGlobals)||void 0===e||null===(e=e.pageId)||void 0===e?void 0:e.replace(/\D/g,""))||"";var e},Jc=(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%")}},Vc=e=>e.getFloating()?"float":"hero",qc=(e,t,o)=>{const n=t;return!o.includes(n)&&(e>=t&&(o.push(n),!0))},Fc=(e,t,o,n="")=>{const r=t/4,i=qc(e,r,o),a=qc(e,2*r,o),s=qc(e,3*r,o),c=qc(e,t-.5,o);return kr(`${n} > ${i?1:0} ${a?1:0} ${s?1:0} ${c?1:0} ${e.toFixed(2)}:${t}`),i||a||s||c},Hc=()=>({url:window.location.href,type:"web",domain:window.location.hostname,user_agent:navigator.userAgent}),Wc=e=>!(Uc||!e||!window.JSGlobals.permutive),Yc=e=>{const t=e.adtitle,o=e.adsystem;return{duration:(e=>{const t=String(e).split(":").map(parseFloat),o=t.pop();return Math.floor(t.reduce(((e,t)=>60*t+e),o))})(e.duration),advertiser_name:"",ad_system:o,description:"",universal_ad_id_registry:"",creative_id:"",ad_id:"",min_suggested_duration:30,title:t,universal_ad_id:"",deal_id:""}},Kc=e=>{const t=e.mediaid,o=e.title,n=e.tags?e.tags.split(","):[],r=e.description,i=e.duration,a=e.updated_at,s=new Date(0);return s.setUTCSeconds(e.pubdate),{duration:i,name:o,custom_fields:[],video_id:t,description:r,tags:n,created_at:a,published_at:s}},Xc=(e,t)=>{kr(`permutiveEventTracking ${e}`),window.permutive.track(e,t)},Qc=e=>e.getPlaylistItem(e.getPlaylistIndex()),Zc=e=>{var t,o,n;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",Pc),e.searchParams.set("correlator",Ec),e.searchParams.set("gdpr",jc),JSGlobals.cmp.enabled&&(e.searchParams.set("gdpr_consent",Lc),e.searchParams.set("addtl_consent",xc)),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",zc()),e.custParams.set("playerstate","hero"),e.custParams.set("topictags",(null===(o=JSGlobals)||void 0===o||null===(o=o.topictags)||void 0===o?void 0:o.join())||""),e.custParams.set("referrer",document.referrer.split("?")[0]),e.custParams.set("mantis",(null===(n=JSGlobals.mantis_channels)||void 0===n||null===(n=n.ratings)||void 0===n?void 0:n.length)&&Sa(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(","))},el=async(e,{containerId:t,mediaId:o,adUnitCode:n,adUnitPath:r})=>{const i=(e=>{const t=new wc(e);return Zc(t),t})(e);i.custParams.set("playerType","jwplayer");const a=Gc();i.custParams.set("plcmt",a?1:2);const s=await Nc();s.length&&i.custParams.set("chrome_facilitated_testing",s);const c=Mc();c&&i.custParams.set("ppid",c);const l=await(async(e,t,o,n)=>{await nc();const r=[ic(o),$c(t,e,o,[640,480])];return(await Promise.allSettled(r)).reduce(((e,t)=>"fulfilled"===t.status?Rc(Rc({},e),t.value):(Sr(t.reason),e)),{})})(t,o,n);return Object.entries(l).forEach((([e,t])=>{i.custParams.set(e,t)})),i.toString()};function tl(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function ol(e){for(var o=1;o{let e=(new Date).getTime();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(t){const o=(e+16*Math.random())%16|0;return e=Math.floor(e/16),("x"===t?o:3&o|8).toString(16)}))})(),Xc("VideoLoad",{video:Kc(e),play_id:this.playSessionId,auto_start:!1})),Vr(jwplayer),this.adCount=0,Sc("JWPlayerReady")},rl=async function(){if(this.timeElapsed=[],this._isPlacement){const e=window.jwDataStore.custom[this._placementId].ad_tag,t=new wc(e),o=this.getConfig().autostart;t.custParams.set("vpa",o?"auto":"click");const n=Vc(this);t.custParams.set("playerstate",n),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()}},il=async function({playReason:e}){if(!this._isPlacement){var t;const o=null===(t=this.getConfig().advertising)||void 0===t?void 0:t.tag,n=new wc(o),r=this.getConfig().autostart;n.custParams.set("vpa",r?"auto":"click");const i=Vc(this);null==n||n.custParams.set("playerstate",i),"autostart"===e&&this.playAd(n.toString())}},al=async function(){this.adTimeElapsed=[]},sl=function(){var e;(e=this).isFullscreen&&(e=>{e.getContainer().classList.remove("fullscreen"),e.isFullscreen=!1,e.resize("100%",e.originalHeight)})(e);const t=Qc(this);Wc(this.consent)&&Xc("VideoPlay",{video:ol(ol({},Kc(t)),{},{watch_count:1}),play_id:this.playSessionId,auto_start:!0})},cl=function(){const e=Qc(this),t=this.playerNow.getTime();Wc(this.consent)&&Xc("VideoEvent",{timestamp:t,event:"PressedPause",video:ol(ol({},Kc(e)),{},{watch_count:1}),play_id:this.playSessionId})},ll=function(e){const t=Qc(this);Wc(this.consent)&&Xc("VideoProgress",{seeked:!0,progress:e.offset,video:ol(ol({},Kc(t)),{},{watch_count:1}),client:Hc(),play_id:this.playSessionId})},dl=function(e){const t=Qc(this);Fc(e.position,e.duration,this.timeElapsed,"video")&&Wc(this.consent)&&Xc("VideoProgress",{seeked:!1,progress:e.position,video:ol(ol({},Kc(t)),{},{watch_count:1}),client:Hc(),play_id:this.playSessionId})},pl=function(e){Jc(this,e)},ul=function(e){if(Fc(e.position,e.duration,this.adTimeElapsed,"ad")){const t=Qc(this);Wc(this.consent)&&Xc("VideoAdProgress",{progress:e.position,video:ol(ol({},Kc(t)),{},{watch_count:1}),ad:Yc(e),play_id:this.playSessionId})}},ml=function(e){const t=Qc(this);Wc(this.consent)&&Xc("VideoAdPlay",{video:ol(ol({},Kc(t)),{},{watch_count:1}),ad:ol(ol({},Yc(e)),{},{description:"ad"}),play_id:this.playSessionId})},_l=function(e){var t;const o=Qc(this),n=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;Wc(this.consent)&&Xc("VideoAdClick",{video:ol(ol({},Kc(o)),{},{description:n,watch_count:1,published_at:r}),ad:ol(ol({},Yc(e)),{},{description:"ad"}),client:Hc(),play_id:this.playSessionId})},bl=function(e){const{adsManager:t,videoElement:o}=e,n=JSGlobals.adNetworkId,r=this.getWidth(),i=this.getHeight();if(n&&window.googleImaVansAdapter){const e={anId:n,campId:`${r}x${i}`,chanId:JSGlobals.videoAdUnitPath,placementId:"Open Auction",pubOrder:"Video",pubId:"Direct",pubCreative:"Default Creative"};window.googleImaVansAdapter.init(window.google,t,o,e)}},gl=function(){const e=new URL(window.location).searchParams.get("ap")||0;if(this.nextUrl){const t=new URL(this.nextUrl,window.location.origin);t.searchParams.set("ap",Number(e)+1),window.location.href=t.toString()}},fl=(e={})=>"true"===e[b]?"premium":"true"===e[u]?"registered":"anonymous";function wl(){const{apiKey:e,workspaceId:t}=window.JSGlobals.permutive;!function(e,t,o,n){if(!e){e=e||{},window.permutive=e,e.q=[];e.config={consentRequired:!0}||{},e.config.apiKey=t,e.config.workspaceId=o,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 r=["addon","identify","track","trigger","query","segment","segments","ready","on","once","user","consent"],i=0;i{try{const e=await(async()=>{try{let e;return await braze.getDeviceId((t=>e=t)),e}catch(e){return Or(`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}`),o=await t.json();if(t.ok)return o.generatedBrazeId;throw new Error(o.message)}catch(e){return Or(`Unable to retrieve generated Braze id: ${e.message}`),null}},vl=(e=[])=>{document.addEventListener(R,(async()=>{const t=[...e],o=await hl();o&&(t.push({id:o,tag:"braze_id",priority:3}),permutive.identify(t))}))};async function yl(){var e;const t=[],o=wt(c),n=wt(m),r=wt("_cb"),i=!!o,a=await(async(e=!1,t)=>e?window.braze?await hl():(vl(t),null):null)(i,t),s=null===(e=permutive.context)||void 0===e?void 0:e.user_id;o&&t.push({id:o,tag:"piano_id",priority:0},{id:n,tag:"user_email",priority:1},{id:n,tag:"email_sha256",priority:2},{id:r,tag:"chartbeat_id",priority:4}),a&&t.push({id:a,tag:"braze_id",priority:3}),s&&t.push({id:s,tag:"permutive_id",priority:5}),t.length&&permutive.identify(t)}function kl(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function Sl(e){for(var o=1;o{if(!permutive)return;const o={comparison:e,affiliate:t};permutive.track("AffiliateLinkClick",o)};let Il=!1;const Pl=[];let El;const jl=async(e,t)=>{try{JSGlobals.permutive&&e?(permutive.consent({opt_in:!0,token:t}),await(async()=>{await yl();const e=C(_);permutive.track("PianoProfile",{birth_year:parseInt(e),piano_user_status:fl(document.cookie.trim().split(";").reduce(((e,t)=>{if(!t)return e;const[o]=t.split("=");return D(D({},e),{},{[o.trim()]:C(o.trim())})}),{})),piano_id:JSGlobals.userUid})})(),(()=>{var e,t;const o=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"][(new Date).getDay()];(null===(e=JSGlobals.permutive)||void 0===e?void 0:e.data)&&permutive.addon("web",Sl(Sl(Sl({},JSGlobals.permutive.data),null!==(t=JSGlobals.permutive)&&void 0!==t&&null!==(t=t.data)&&void 0!==t&&t.page?{}:{page:{}}),{},{context:{day_of_week:o}}))})(),(()=>{const e=()=>{const e=Sl({},JSGlobals.permutive.data);e.page.content.type="gallery",permutive.addon("web",{page:{},galleryData:e})};document.body.addEventListener("click",(t=>{t.target.classList.contains("amp-carousel-button")&&e()})),[...document.querySelectorAll(`.${ie}, .${re}`)].forEach((t=>{t.addEventListener("click",e)}))})(),document.querySelectorAll(".body-link[data-vars-item-name]").forEach((e=>e.addEventListener("click",(function(e){let t=e.currentTarget.parentNode.previousSibling;for(;"H2"!==(null===(o=t)||void 0===o?void 0:o.nodeName);){var o;if(t=t.previousSibling,"H2"===t.nodeName){/(.*):[^\d]*([\d.,\s]*),(.*)$/.exec(t.textContent)&&Ol({comparison:!1,affiliate:""});break}}})))),[...document.getElementsByClassName("js-product")].forEach((e=>{const{affiliate:t}=e.dataset,o=e.querySelectorAll(".js-product-buy"),n=e.querySelector(".js-price-comparison");n&&n.addEventListener("click",(e=>{if(e.target.classList.contains("js-price-comparison-button")){const t=e.target.closest(".js-price-comparison-item"),{affiliate:o}=t.dataset;Ol({comparison:!0,affiliate:o})}})),o.forEach((e=>{e.addEventListener("click",(()=>{Ol({comparison:!1,affiliate:t})}))}))}))):El=!0}catch(e){console.error("Failed to pass content to permutive",e.message)}};const Ll=()=>{try{permutive.readyWithTimeout=async(e,t,o)=>{await Promise.race([new Promise((e=>setTimeout(e,o))),new Promise((e=>permutive.ready(e,t)))]),e()}}catch(e){console.error("Failed to init permutive.readyWithTimeout",e.message)}},xl=()=>{var e;return null!==(e=JSGlobals.article)&&void 0!==e&&e.autoVideo?"video swapped"===JSGlobals.article.autoVideo:null},Al=()=>{var e;const t="true"===wt(b)||null!==(e=JSGlobals.article)&&void 0!==e&&e.premium?"independent-premium":Gc()?"videohub":"independent-regular";return{setTimeEvents:!0,isSwapped:!!xl(),jwplayerSiteId:JSGlobals.jwplayerSiteId,skin:{name:t}}};function Dl(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function Cl(e){for(var o=1;o{e.nextUrl=t,e.isFullscreen=!1,e.consent=o||!1,e.playerNow=new Date,e.on("ready",nl),e.on("playlistItem",rl),e.on("beforePlay",il),e.on("adRequest",al),e.on("play",sl),e.on("pause",cl),e.on("seek",ll),e.on("time",dl),e.on("adImpression",pl),e.on("adTime",ul),e.on("adPlay",ml),e.on("adClick",_l),e.on("adsManager",bl),e.on("complete",gl)},$l=({containerId:e,options:t,nextUrl:o,consent:n})=>{kc("JWPlayerSetup");const r=jwplayer(e).setup(t);Tl(r,{nextUrl:o,consent:n}),Sc("JWPlayerSetup")},Nl=async(e,t)=>{e.forEach((async e=>{const o=e.id,n=e.dataset.jwplayerPlayerType,r=JSON.parse(e.dataset.jwplayerData),i=e.dataset.jwplayerNextUrl,a=e.dataset.adUnitCode,s=JSGlobals.videoAdUnitPath,c=JSGlobals.article.heroMediaId,l=!("true"===C(b))?{client:"googima",outstream:!1,tag:await el("https://pubads.g.doubleclick.net/gampad/ads",{containerId:o,mediaId:c,adUnitCode:a,adUnitPath:s}),autoplayadsmuted:!0}:null;(e=>{const{consent:t}=e;Wc(t)?permutive.readyWithTimeout($l.bind(void 0,e),"realtime",2500):$l(e)})({containerId:o,playerType:n,options:Cl(Cl(Cl({},r),Al()),{},{advertising:l}),nextUrl:i,consent:t})}))},Ml=async e=>{const t=document.querySelectorAll("[data-jwplayer]"),o=document.querySelectorAll("[data-jw-placement-id]");"function"==typeof jwplayer&&t.length>0?await Nl(t,e):document.addEventListener("jwplayerLoaded",(async()=>{await Ml(e)})),o.length>0&&await(async(e,t)=>{window.jwDataStore={custom:{}};const o=document.querySelectorAll(".jw-data-store")||[];await Promise.all(Array.from(o).map((async e=>{const t=e.dataset.placementId;let o={};try{o=JSON.parse(e.textContent)}catch(e){Sr(e)}o.ad_tag=await el("https://pubads.g.doubleclick.net/gampad/ads?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:o.media_id,adUnitCode:o["ad-unit-code"],adUnitPath:JSGlobals.videoAdUnitPath}),window.jwDataStore.custom[t]=o}))),await Xe([`https://cdn.jwplayer.com/v2/sites/${JSGlobals.jwplayerSiteId}/placements/embed.js`]),await Promise.all([...e].map((async e=>{var o;const n=e.dataset.jwPlacementId,r=await(null===(o=jwplacements)||void 0===o?void 0:o._getPlacementReadyPromise(n));var i;null!=r&&r.player&&(r.player._placementId=n,r.player._isPlacement=!0,Tl(r.player,{nextUrl:null===(i=jwDataStore.custom[n])||void 0===i?void 0:i["next-url"],consent:t}))})))})(o,e)};var Bl=o(79378);const Rl=()=>{const e=document.querySelectorAll("[data-parallax]");e.length&&window.addEventListener("scroll",(function(){e.forEach((e=>{var t;const o=e.getBoundingClientRect().top;if(!o||o>window.innerHeight)return;const n=null!==(t=e.dataset.parallax)&&void 0!==t?t:"",r=(e=>{const t=window.innerHeight;let o=0;for(let t=e;t;t=t.offsetParent)o+=t.offsetTop;return onull==Sd?void 0:Sd.classList.contains("sticky"),Ed=e=>{Id=!1,kd.classList.remove("show"),kd.onclick=null,yd.classList.remove("fullscreen"),pixels(e).resize("100%",Od)},jd=(e,t)=>{vd&&!Pd()&&(e=>{var t,o;const n=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===(o=e.ima)||void 0===o||null===(o=o.ad)||void 0===o||null===(o=o.g)||void 0===o?void 0:o.vastMediaHeight;return!(!n||!r)&&n/r<1})(t)&&(Id=!0,setTimeout((function(){kd.classList.add("show"),kd.onclick=Ed.bind(this,e)}),3e3),yd.classList.add("fullscreen"),Od=pixels(e).getHeight(),pixels(e).resize("100%","100%"))},Ld=()=>{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()=>{gd=await Nc()})();const xd=(e,t,o,n)=>{var r;const i=Mc(),a=pixels(e).getConfig().autostart,s=location.pathname.startsWith("/tv/");let c,l="";if(l+=`videoID=${o}`,l+="&vpa="+(a?"auto":"click"),l+=`&article=${null===(r=JSGlobals.pageId)||void 0===r?void 0:r.replace(/\D/g,"")}`,l+=`&playerType=${n}`,l+=`&topictags=${JSGlobals.topictags&&JSGlobals.topictags.join()}`,l+=((e={})=>{var t;return null!=e&&null!==(t=e.ratings)&&void 0!==t&&t.length?`&mantis=${Sa(e.ratings)}`:""})(JSGlobals.mantis_channels),l+=Ld(),l+=`&chrome_facilitated_testing=${gd}`,l+=`&referrer=${digitalData.page_previous_url||""}`,l+="&plcmt="+(s?1:2),i&&(l+=`&ppid=${i}`),id){l+=`&${`permutive=${encodeURIComponent(JSON.parse(localStorage._pdfps||"[]").slice(0,250).join(","))}`}`}l+="&adpos=0",l+="&playerstate=hero",c=encodeURIComponent(l);try{const e=new URL(t),o=new URLSearchParams(e.search);t=o.has("cust_params")?""!==o.get("cust_params")?t.replace(/(cust_params[^&]+)/,`$1%26${c}`):t.replace(/(cust_params[^&]+)/,`$1${c}`):`${t}&cust_params=${c}`,o.has("ad_rule")||(t=`${t}&ad_rule=0`);const n=wt("gdpr","1");t+=`&gdpr=${n}`,"1"===n&&(t+=`&gdpr_consent=${wt("euconsent-v2","none")}`,t+=`&addtl_consent=${wt("addtl_consent","none")}`);const r=JSGlobals.videoAdUnitPath;r&&(t=t.replace(/(iu=).*?(&)/,`$1${r}$2`))}catch(e){}return t},Ad=(e,t)=>e=e.replace(/(adpos%3D).*?(%26)/,`$1${t-1}$2`),Dd=e=>{const t=Pd()?"float":"hero";return e=e.replace(/(playerstate%3D).*?(&)/,`$1${t}$2`)},Cd=(e,t)=>!dd.includes(t)&&(Math.floor(e)===t&&(dd.push(t),!0)),Td=(e,t)=>!ud.includes(t)&&(Math.floor(e)===t&&(ud.push(t),!0)),$d=(e,t)=>{id&&(kr(`permutiveEventTracking ${e}`),window.permutive.track(e,t))},Nd=({containerId:e,options:t,defaultAdTag:o=""})=>{kc("PixelsPlayerSetup"),pixels(e).setup(t),Vr(pixels(e).getVideoPlayerInstance()),pixels(e).on("ready",(async()=>{kc("PixelsPlayerReady"),nd=id&&(()=>{let e=(new Date).getTime();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(t){const o=(e+16*Math.random())%16|0;return e=Math.floor(e/16),("x"===t?o:3&o|8).toString(16)}))})(),Yl=pixels(e).getMediaId(),od=o||pixels(e).getAdTag()||"",od=xd(e,od,Yl,fd),pixels(e).setAdTag(od),kr("adTag:",od),$d("VideoLoad",{video:{duration:Ql,name:Kl,custom_fields:[],video_id:Yl,description:Xl,tags:bd,created_at:Zl,published_at:ed},play_id:nd,auto_start:!1}),Sc("PixelsPlayerReady")})),pixels(e).on("playlistItem",(function(){pd=!0,Hl=pixels(e).getPlaylistIndex(),Wl=pixels(e).getPlaylistItem(Hl),Yl=Wl.mediaid,Kl=Wl.title,""!==Wl.tags&&void 0!==Wl.tags&&(bd=Wl.tags.split(",")),Xl=Wl.description,Ql=Wl.duration,Zl=Wl.updated_at,ed=new Date(0),ed.setUTCSeconds(Wl.pubdate),td=Math.floor(Ql/4),dd=[],ud=[],od=Ad(od,ld),pixels(e).setAdTag(od),ld+=1})),pixels(e).on("beforePlay",(async()=>{od=Dd(od),pixels(e).setAdTag(od),kr("adTag:",od),pd&&(pixels(e).trigger("wt:adReq",{adsRequest:{adTagUrl:od}}),pd=!1)})),pixels(e).on("play",(function(){Id&&Ed(),$d("VideoPlay",{video:{duration:Ql,name:Kl,custom_fields:[],video_id:Yl,description:Xl,tags:bd,watch_count:1,created_at:Zl,published_at:ed},play_id:nd,auto_start:!0})})),pixels(e).on("pause",(function(){$d("VideoEvent",{timestamp:Fl.getTime(),event:"PressedPause",video:{duration:Ql,name:Kl,custom_fields:[],video_id:Yl,description:Xl,tags:bd,watch_count:1,created_at:Zl,published_at:ed},play_id:nd})})),pixels(e).on("seek",(function(e){$d("VideoProgress",{seeked:!0,progress:e.offset,video:{duration:Ql,name:Kl,custom_fields:[],video_id:Yl,description:Xl,tags:bd,watch_count:1,created_at:Zl,published_at:ed},client:{url:window.location.href,type:"web",domain:window.location.hostname,user_agent:navigator.userAgent},play_id:nd})})),pixels(e).on("time",(function(e){(Cd(e.position,td)||Cd(e.position,2*td)||Cd(e.position,3*td)||Cd(e.position,Ql))&&$d("VideoProgress",{seeked:!1,progress:e.position,video:{duration:e.duration,name:Kl,custom_fields:[],video_id:Yl,description:Xl,tags:bd,watch_count:1,created_at:Zl,published_at:ed},client:{url:window.location.href,type:"web",domain:window.location.hostname,user_agent:navigator.userAgent},play_id:nd})})),pixels(e).initPlaylistPrebidCallback((async t=>{const o=JSGlobals.videoAdUnitPath,n=o.split("/").pop();let r=await Tc(t,e,n,o,[640,480]);return r=xd(e,r,t,fd),r=Ad(r,ld),r=Dd(r),r})),pixels(e).on("adImpression",(function(t){ad=t.adtitle,sd=t.clickThroughUrl,cd=t.adsystem,jd(e,t)})),pixels(e).on("adTime",(function(e){_d&&e.position>0&&(md=parseInt(e.duration,10),rd=Math.floor(Ql/4),_d=!1),(Td(e.position,rd)||Td(e.position,2*rd)||Td(e.position,3*rd)||Td(e.position,md))&&$d("VideoAdProgress",{progress:e.position,video:{duration:Ql,name:Kl,custom_fields:[],video_id:Yl,description:Xl,tags:bd,watch_count:1,created_at:Zl,published_at:ed},ad:{duration:md,advertiser_name:"",ad_system:cd,description:"",universal_ad_id_registry:"",creative_id:"",ad_id:"",min_suggested_duration:30,title:ad,universal_ad_id:"",deal_id:""},play_id:nd})})),pixels(e).on("adPlay",(function(){$d("VideoAdPlay",{ad:{duration:md,advertiser_name:"",ad_system:cd,description:"ad",universal_ad_id_registry:"",creative_id:"",ad_id:"",min_suggested_duration:30,title:ad,universal_ad_id:"",deal_id:""},video:{duration:Ql,name:Kl,custom_fields:[],video_id:Yl,description:Xl,tags:bd,watch_count:1,created_at:Zl,published_at:ed},play_id:nd})})),pixels(e).on("adClick",(function(){$d("VideoAdClick",{ad:{duration:md,advertiser_name:"",ad_system:cd,description:"Ad",universal_ad_id_registry:"",creative_id:"",ad_id:"",min_suggested_duration:30,title:ad,universal_ad_id:"",deal_id:""},video:{name:ad,custom_fields:[],video_id:Yl,description:sd,tags:bd,watch_count:1,created_at:Zl,published_at:Fl},client:{url:window.location.href,type:"web",domain:window.location.hostname,user_agent:navigator.userAgent},play_id:nd})})),pixels(e).on("adsManager",(function(e){const{adsManager:t,videoElement:o}=e,n=JSGlobals.adNetworkId;if(n&&window.googleImaVansAdapter){const e={anId:n,campId:`${wd}x${hd}`,chanId:JSGlobals.videoAdUnitPath,placementId:"Open Auction",pubOrder:"Video",pubId:"Direct",pubCreative:"Default Creative"};window.googleImaVansAdapter.init(window.google,t,o,e)}})),Sc("PixelsPlayerSetup")},Md=e=>{const{containerId:t,options:o}=e;pixels(t).initPlayer(o.playerId,Nd.bind(void 0,e))},Bd=e=>{id?permutive.readyWithTimeout(Md.bind(void 0,e),"realtime",2500):Md(e)};let Rd=!1;const Ud=async()=>{window.matchMedia(ec.BY).matches&&!Rd&&(await Xe(["//cdn.mediavoice.com/nativeads/script/esi/esi-rr-collection.js"]),Rd=!0)},Gd=()=>`https://www.google.com/recaptcha/api.js?render=${(window.JSGlobals||{}).recaptureV3Key}`;let zd=!1,Jd=!1;const Vd=[],qd='input[name="^"]',Fd=e=>{e.forEach((e=>{const t=e.querySelector(qd);[...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,o=await window.grecaptcha.execute(JSGlobals.recaptureV3Key,{action:t});e.value=o})(t))))}))},Hd=()=>{const e=[...document.forms].filter((e=>e.querySelector(qd))),t=async()=>{await(async()=>{Jd||(zd?await new Promise((e=>{Vd.push(e)})):(zd=!0,await Xe([Gd()]),await new Promise((e=>{window.grecaptcha.ready(e)})),Jd=!0,Vd.forEach((e=>e()))))})(),Fd(e)},o=new IntersectionObserver((e=>{e.some((e=>e.isIntersecting))&&(o.disconnect(),t())}));e.forEach((e=>o.observe(e)))},Wd=()=>{document.getElementsByClassName("reddit-embed-bq").length>0&&Xe("https://embed.reddit.com/widgets.js")};function Yd(e,t){var o;const n=(null===(o=e.exception)||void 0===o||null===(o=o.values)||void 0===o||null===(o=o[0])||void 0===o||null===(o=o.stacktrace)||void 0===o?void 0:o.frames)||[];return Array.isArray(n)&&n.some((({filename:e,abs_path:o})=>(null==e?void 0:e.includes(t))||(null==o?void 0:o.includes(t))))}function Kd(e,t){var o;const n=null===(o=e.exception)||void 0===o||null===(o=o.values)||void 0===o||null===(o=o[0])||void 0===o?void 0:o.value;return"string"==typeof n&&(null==n?void 0:n.includes(t))}const Xd=[function(e){return Yd(e,"/ampproject/")},function(e){return Yd(e,"yieldmo.com")},function(e){return Kd(e,"Can't find variable: __iasPET")},function(e){return Kd(e,"Can't find variable: apstag")}];function Qd(e,t){return function(e,t){return!t.some((t=>t(e)))}(e,Xd)?e:null}let Zd=!1;const ep="skin",tp=(e,t)=>{(e=>{const{slot:t,isEmpty:o}=e,n=t.getSlotElementId(),r=document.getElementById(we),i=document.getElementById(fe),a=!("true"!==(null==i?void 0:i.dataset.isVideo)),s=Ke(){(({slot:e,size:t})=>{const o=document.getElementById("articleHeader");if(o){const n=e.getSlotElementId(),r=null!==t||void 0,i="true"===o.dataset.isVideo;if(n===ep&&i&&r){const e=document.getElementById("frameInner");o.style.marginRight="auto",o.style.marginLeft="auto",o.style.maxWidth="1000px",e.style.paddingTop="0px"}n===ep&&(o.style.backgroundColor="transparent")}})(e),(e=>{const{slot:t}=e,o=t.getSlotElementId(),n=document.getElementById(we);o===fe&&n&&setTimeout((()=>{n.classList.remove(pe)}),3e3)})(e)},np=()=>{document.getElementsByClassName("tiktok-media").length>0&&Xe("https://www.tiktok.com/embed.js")},rp=()=>{document.getElementsByClassName("twitter-post").length>0&&(window.twttr=function(e,t,o){let n,r=e.getElementsByTagName(t)[0],i=window.twttr||{};return e.getElementById(o)||(n=e.createElement(t),n.id=o,n.src="https://platform.twitter.com/widgets.js",r.parentNode.insertBefore(n,r),i._e=[],i.ready=function(e){i._e.push(e)}),i}(document,"script","twitter-wjs"))},ip=async()=>{var e,t,o,n;const r=null===(e=window._sp_)||void 0===e||null===(e=e.metricData)||void 0===e?void 0:e.propertyId;if(!r)throw new Error("Failed to retrieve SourcePoint site id");const i=null!==(t=C("consentUUID"))&&void 0!==t?t:"",a=null!==(o=null===(n=window._sp_)||void 0===n||null===(n=n.config)||void 0===n?void 0:n.authId)&&void 0!==o?o:"",s=new URL(`https://cdn.privacy-mgmt.com/consent/tcfv2/consent/v3/${r}`);s.searchParams.append("consentUUID",i),s.searchParams.append("authId",a);const c=await fetch(s.toString(),{method:"DELETE"});if(!c.ok)throw new Error(`Failed to delete user consent: ${JSON.stringify(c)}`);(e=>{localStorage.removeItem(`_sp_user_consent_${e}`)})(r)},ap=e=>{const t=Date.now();return("number"==typeof e?1e3*e:t)>t},sp=async()=>{const e=await fetch("/api/user/logged-in-cookies/update",{method:"POST"});if(!e.ok){const t=await e.json();throw new Error(t)}},cp=async()=>await sp(),lp=async()=>{const e=await fetch("/api/user/ad-free-access/enable",{method:"POST"});if(!e.ok){const t=await e.json();Or(`Error, failed to identify user as active in Piano custom fields: ${t}`)}},dp=async()=>{const e=await fetch("/api/user/ad-free-access/disable",{method:"POST"});if(!e.ok){const t=await e.json();throw new Error(t)}},pp=async(e=!1,t)=>{try{if(!T())return;if(!e)return void await(async()=>{const e=await fetch("/api/user/ad-free-access/status"),t=await e.json();if("message"in t)throw new Error(t.message);const{isAdFreeUser:o=!1}=t;o&&await Promise.all([ip(),dp()])})();await(async()=>await Promise.all([lp(),cp()]))();if(ap(t))return;await(async()=>await Promise.all([sp(),ip(),dp()]))()}catch(e){Or(`Error, failed to update user's ad-free access on expiration: ${e.message}`)}},up=async(e=!1,t)=>{try{if(!e)return;if(ap(t))return;await sp()}catch(e){Or(`Error, failed to update user's donator access on expiration: ${e.message}`)}},mp=()=>{const e=window.tp||[];return window.tp=e,e},_p=(...e)=>{mp().push(...e)};const bp=()=>{let e="";return window.tp=window.tp||[],(e=>{for(let t=1;t{switch(null==e?void 0:e.eventName){case"keep-spanish":ht(g,"Spanish",{days:90}),location.reload(!0);break;case"keep-english":ht(g,"English",{days:90})}}])),e},gp=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:o=[]}=t,n=bp();if(n&&o.push(n),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&&o.push(t.trim())}}try{ki&&(e.push(["addHandler","meterExpired",e=>{"PremiumArticleMeter"===e.meterName&&(kr("PremiumArticleMeter expired"),Si.resolve(!0))}]),e.push(["addHandler","meterActive",e=>{"PremiumArticleMeter"===e.meterName&&(kr("PremiumArticleMeter not expired"),Si.resolve(!1))}])),e.push(["setCustomVariable","extendedAccessAllowed",String(ki)])}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}_p(["init",()=>{const e=mp();Array.isArray(e)||(e.enableGACrossDomainLinking(),e.experience.init())}]),document.dispatchEvent(new CustomEvent(N))})();try{await Xe("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)}))}))},fp=()=>{var e;const t=document.getElementById("standard-header-main");if(!t)return;const o=document.getElementById("indytv-link"),n=[...document.getElementsByClassName(W)],r=e=>{n.forEach(((t,o)=>{o!==e&&(t.classList.remove("primary-item__open"),t.querySelector(`.${X}`).setAttribute("aria-expanded","false"))}))};n.forEach(((e,t)=>{const o=e.querySelector(`.${K}`),n=null!=o&&o.textContent?o.textContent:"",i=document.createElement("button"),a=document.createTextNode(n);i.appendChild(a),i.classList.add(X),e.insertBefore(i,o),null==o||o.setAttribute("tabindex","-1"),i.addEventListener("click",(o=>{((e,t)=>{const o=e.classList.contains(Y);e.classList[o?"remove":"add"](Y),t.target.setAttribute("aria-expanded",o?"false":"true")})(e,o),r(t)})),i.addEventListener("focus",(()=>{r(t)}))})),o&&o.addEventListener("focus",(()=>{r(-1)})),null===(e=document.getElementById("frameInner"))||void 0===e||e.addEventListener("click",r),t.addEventListener("click",r)},wp="",hp={"product-description":"PD","product-carousel":"C","product-price-comparison":"PC","product-body":"B","news-body":"B","product-verdict":"V","news-price-comparison":"PC"},vp="direct",yp="others",kp={search:[/google\.com$/i,/bing\.com$/i,/yahoo\.com$/i,/baidu\.com$/i,/yandex\.com$/i,/duckduckgo\.com$/i,/ask\.com$/i,/ecosia\.org$/i,/aol\.(com|co\.uk)$/i,/archive\.org$/i,/brave\.com$/i,/petal_search$/i],social:[/pinterest\.com$/i,/instagram\.com$/i,/facebook\.com$/i,/tiktok\.com$/i,/twitter\.com$/i],independent:[/independent/i]};function Sp(e,t){const o=new URLSearchParams(e),{url:n,articleUrl:r,articleId:i,author:a,tags:s,section:c,category:l,subCategory:d,updatedDateTime:p}=t;n?o.set("q",n):o.has("q")||o.append("q",wp),r?o.set("p",r):o.has("p")||o.append("p",wp),i?o.set("article_id",i):o.has("article_id")||o.append("article_id",wp),a?o.set("author",a):o.has("author")||o.append("author",wp),s?o.set("tag",s):o.has("tag")||o.append("tag",wp),c?o.set("section",c):o.has("section")||o.append("section",wp),l?o.set("category",l):o.has("category")||o.append("category",wp),d?o.set("sub_category",d):o.has("sub_category")||o.append("sub_category",wp),p?o.set("updated_time",p):o.has("updated_time")||o.append("updated_time",wp);const{campaign:u,position:m,productName:_}=t,{locationUserAgent:b,locationReferrer:g,locationUtmSource:f}=t;u?o.set("utm_campaign",u):o.has("utm_campaign")||o.append("utm_campaign",wp),u&&m?o.set("utm_term",`${hp[u]}-${m}`):o.has("utm_term")||o.append("utm_term",wp),_?o.set("utm_content",_):o.has("utm_content")||o.append("utm_content",wp),b?o.set("utm_medium",b):o.has("utm_medium")||o.append("utm_medium",wp),g?o.set("ref",function(e){if(!e)return null;try{const{hostname:t}=new URL(e);return t}catch(t){return e}}(g)):o.has("ref")||o.append("ref",wp),g||f?o.set("utm_source",function(e){if(!e)return null;try{const{hostname:t}=new URL(e),[o]=Object.entries(kp).find((([e,o])=>o.some((e=>e.test(t)))));return o}catch(e){return console.warn(e),null}}(g)||f||g&&""!==g&&yp):o.has("utm_source")||o.append("utm_source",vp);const{fbclid:w,gclid:h}=t;return w?o.set("fbclid",w):o.has("fbclid")||o.append("fbclid",wp),h?o.set("gclid",h):o.has("gclid")||o.append("gclid",wp),o}var Op,Ip,Pp,Ep,jp,Lp,xp;function Ap(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function Dp(e){for(var o=1;o{var t,o,n,r;if(!e)return console.warn("Invalid article object."),!1;const i=null!==(t=null===(o=e.sections)||void 0===o?void 0:o.includes(k))&&void 0!==t&&t,a=null!==(n=null===(r=e.hierarchy)||void 0===r?void 0:r.some((({path:e})=>e.startsWith(I))))&&void 0!==n&&n;return i||a})(JSGlobals.article)||(e=>{var t,o,n,r;if(!e)return console.warn("Invalid article object."),!1;const i=null!==(t=null===(o=e.sections)||void 0===o?void 0:o.includes(S))&&void 0!==t&&t,a=null!==(n=null===(r=e.hierarchy)||void 0===r?void 0:r.some((({path:e})=>e.startsWith(P))))&&void 0!==n&&n;return i||a})(JSGlobals.article);if(window.digitalData=((...e)=>t=>e.reduce(((e,t)=>t(e)),t))(pi,di,Ue)(),!Cp)try{br()}catch(e){console.error("Analytics error caught: ",e)}const Wp=[Dp({sentry:rr(w)&&(()=>{Sentry.onLoad((function(){var e;const{release:t,environment:o,sampleRate:n,tracesSampleRate:r,replaysSessionSampleRate:i,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:o,sampleRate:n,tracesSampleRate:r,replaysSessionSampleRate:i,replaysOnErrorSampleRate:a,beforeSend:Qd,ignoreErrors:["AbortError: The operation was aborted."]})}))})},rr(f)&&{initServiceWorker:_c}),{checkAdBlocker:async()=>{Fp=await qr()}},Dp(Dp({},JSGlobals.domain!==y&&(JSGlobals.isLiveBlog||ft())&&{initBrazeInAppMessageWithDelay:Gr}),{},{dotmetrics:!Cp&&(async()=>{var e;"us"!==wt(p)&&(window.dm=window.dm||{AjaxData:[]},window.dm.AjaxEvent=function(e,t,o,n){dm.AjaxData.push({et:e,d:t,ssid:o,ad:n}),window.DotMetricsObj&&DotMetricsObj.onAjaxDataUpdate()},null!==(e=JSGlobals)&&void 0!==e&&null!==(e=e.dotmetrics)&&void 0!==e&&e.sectionId&&await Xe([`https://uk-script.dotmetrics.net/door.js?id=${JSGlobals.dotmetrics.sectionId}`]))}),gtm:async()=>{Fp||Up||await Ti()},chartbeat:!Cp&&(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 o=window._cbq=window._cbq||[];"premium"===e.user_status?o.push(["_acct","paid"]):"registered"===e.user_status?o.push(["_acct","lgdin"]):o.push(["_acct","anon"]),await Xe(["//static.chartbeat.com/js/chartbeat_video.js","//static.chartbeat.com/js/chartbeat_mab.js"]),document.dispatchEvent(new CustomEvent("chartbeatLoaded"))}),permutive:!Cp&&(async()=>{try{if(!JSGlobals.permutive)throw new Error("No JSGlobals.permutive config");await(async()=>{const{workspaceId:e,organizationId:t}=JSGlobals.permutive;wl(),await Xe([`https://${t}.edge.permutive.app/${e}-web.js`])})()}catch(e){throw Il=!0,Pl.forEach((t=>t(e))),e}}),trackonomics:()=>{var e,t;if(null!==(e=JSGlobals)&&void 0!==e&&null!==(e=e.article)&&void 0!==e&&e.isBest&&null!==(t=JSGlobals)&&void 0!==t&&null!==(t=t.trackonomics)&&void 0!==t&&t.customerId){const e=JSGlobals.trackonomics.customerId;Xe(`https://cdn-magiclinks.trackonomics.net/client/static/v2/${e}.js`,{attributes:[["id","funnel-relay-installer"],["data-property-id","PROPERTY_ID"],["data-customer-id",e]],async:!0})}},consent:{method:async()=>{Vp=![E,j].includes($p)||await Ir()},dependents:{permutive:!Cp&&(async()=>{Fp||await jl(Vp,wt("euconsent-v2","none"))}),anonymised:rr("feat__anonymised")&&(async()=>{await Pr("6274ee2d293cdf1bf415179b","anonymised")&&await Xe("//static.anonymised.io/light/loader.js",{id:"idward-plugin-js",attributes:[["idw_client_id","NDEx"],["idw_hide_button","true"]]})}),pubX:rr("feat__pubx_integration")&&(async()=>{await Pr("654a71546725a6047bda1db7","pubX")&&Xe("https://cdn.pbxai.com/b5a8c20e-7642-44b9-82a5-8c896cbfc109.js")}),prebid:async()=>{zp&&!Fp&&(await Xe([JSGlobals.manifest[Mp?"prebid.js":"prebid_non_uk.js"]]),await ls())},permutiveCookieSync:!Cp&&(async()=>{const e=`https://${JSGlobals.staticHost}/iframe/native-cookiesync-frames.html`;(e=>{const t=document.createElement("iframe");Object.entries(e).forEach((([e,o])=>{t.setAttribute(e,o)})),document.body.appendChild(t)})(Gl(Gl({},Qe),{},{src:e}))})}}}),{gpt:!Fp&&Gp&&(async()=>{await(async(e,t=!1)=>{await new Promise((o=>{setTimeout(o,3e3),uc({refresh:Rp,slotRenderedCallback:tp,slotLoadedCallback:op,consent:e,prebidEnabled:zp,hasRegGate:t,firstAdLoaded:()=>{Sc("first ad load")},allFirstScreenAdsLoaded:()=>{o()}})}))})(Vp,qp)}),JWPlayer:async()=>{await(async e=>{Wc(e)&&Ll(),await Ml(e)})(Vp)},PixelsPlayer:async()=>{await(async(e,t)=>{if(id=!ql&&e&&window.JSGlobals.permutive,id&&Ll(),"function"==typeof pixels){const e=document.querySelectorAll("script[data-pixels-player-uid]");for(let o=0;o{const t=e.detail.uid,o=e.detail.data;Bd({containerId:t,options:o})}))})(Vp,zp)}},{userStatus:async()=>{JSGlobals.userLogin&&await gp()},regGate:!Up&&JSGlobals.article&&Bp&&(async()=>{Fp||(qp=await new Promise((e=>{let t=!1;const o=o=>{t||(e(o),t=!0)},n=setTimeout((()=>{console.warn("Piano register wall experience failed to execute within 2 seconds, continuing with hasRegGate = false"),o(!1)}),2e3);window.tp.push(["addHandler","experienceExecute",async()=>{clearTimeout(n),o(!1)}]),document.body.addEventListener("regWallLoaded",(()=>{o(!0),clearTimeout(n)}))})))})},Dp(Dp({initComments:JSGlobals.userComments&&JSGlobals.article&&oi,initBookmark:Bp&&JSGlobals.article&&Dr,initCompetition:JSGlobals.userLogin&&JSGlobals.article&&ni},Np&&{initBrazeOnLoggedInUserVisit:async()=>{const e=Date.now(),t=localStorage.getItem(ke);if(!t)return Jr(e),void await zr();const o=((e,t)=>e-t>864e5)(e,t);o&&(Jr(e),await zr())}}),{},{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(me)),e(document.getElementById(_e))},recaptcha:()=>Hd(),persistentPlayer:()=>{const e="true"===wt(b),t=document.querySelector(".article-liveblog");if(e&&t){let e;const t=function(){window.matchMedia("(min-width: 1000px)").matches?e=(()=>{const e=document.querySelector(".video-top-container.video"),t=document.querySelector(".video-hero-wrapper"),o=()=>{if(window.matchMedia("(min-width: 930px)").matches)if(e.getBoundingClientRect().top+window.scrollY<=window.scrollY+95){if(t.classList.contains("sticky-video"))return;t.classList.add("sticky-video")}else{if(!t.classList.contains("sticky-video"))return;t.classList.remove("sticky-video")}};return window.addEventListener("scroll",o),window.addEventListener("orientationchange",o),o(),{dispose(){t.classList.remove("sticky-video"),window.removeEventListener("orientationchange",o)}}})():e&&e.dispose()};window.addEventListener("orientationchange",t),window.addEventListener("resize",zl(t,100)),t()}else(()=>{var e;const t=document.querySelector(".video-top-container.video"),o=document.querySelector(".video-hero-wrapper"),n=document.querySelector("#video-popout-close"),r=null===(e=document.getElementById(be))||void 0===e||null===(e=e.firstElementChild)||void 0===e||null===(e=e.firstElementChild)||void 0===e?void 0:e.id;let i=2e4;(window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth)<620&&(i=1e4);let a=750;const s=()=>{if(!o||!t||t.classList.contains("closed"))return;const{height:e,top:n}=o.getBoundingClientRect();a=n+e,a<=95?(o.style.height=`${o.clientHeight}px`,!t.classList.contains("sticky")&&t.classList.add("sticky")):(o.style.height=null,t.classList.contains("sticky")&&t.classList.remove("sticky"))},c=zl(s,50);window.addEventListener("scroll",c),s(),n&&(n.addEventListener("click",(()=>{t.classList.add("closed")})),n.classList.contains("sensitive")?n.classList.add("shown"):setTimeout((()=>{n.classList.add("shown")}),i)),"undefined"!=typeof jwplayer&&r&&(jwplayer(r).on("autostartNotAllowed",(({error:e,reason:t,type:o})=>{kr("jwplayer autostartNotAllowed",e,t,o)})),jwplayer(r).on("error",(({code:e,message:t,sourceError:o,type:n})=>{kr("jwplayer error",e,t,o,n)})),jwplayer(r).on("warning",(({code:e,message:t,sourceError:o,type:n})=>{kr("jwplayer warning",e,t,o,n)})))})()},hardRefresh:Rp&&(()=>{let e;const t=()=>{Re([$i]),clearInterval(e),e=setTimeout((()=>{Me({[$i]:!0}),window.location.href.includes("CMP=ILC-refresh")?window.location.href=location.href:window.location.href=function(e,t,o){o||(o=window.location.href);let n,r=new RegExp(`([?&])${e}=.*?(&|#|$)(.*)`,"gi");if(r.test(o))return null!=t?o.replace(r,`$1${e}=${t}$2$3`):(n=o.split("#"),o=n[0].replace(r,"$1$3").replace(/(&|\?)$/,""),void 0!==n[1]&&null!==n[1]&&(o+=`#${n[1]}`),o);if(null!=t){let r=-1!==o.indexOf("?")?"&":"?";return n=o.split("#"),o=`${n[0]+r+e}=${t}`,void 0!==n[1]&&null!==n[1]&&(o+=`#${n[1]}`),o}return o}("CMP","ILC-refresh",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={})=>{De("login_success",e)})()})))),document.querySelectorAll("[data-js-open-login-drawer]").forEach((e=>{e.addEventListener("click",(()=>{const t=e.getAttribute("data-reg-source-method")||"";jr(t)})),e.setAttribute("data-js-open-login-drawer-ready","")}));[...document.getElementsByClassName("subscribeLink")].forEach((e=>{e.addEventListener("click",(()=>(localStorage.setItem("regSourceMethod","Navigation"),!1)),!0)}))},googleSignIn:Pi,navbarScroll:()=>{const e=document.getElementById("leftButton"),t=document.getElementById("rightButton");let o,n,r=0;function i(){n===o.scrollWidth?t.style.display="none":t.style.display="block"}e&&t&&(o=e.previousElementSibling,n=o.clientWidth,i(),t.addEventListener("click",(function(){o.scrollTo({top:0,left:Math.min(r+=500,n),behavior:"smooth"}),o.style.marginLeft="16px",o.scrollLeft=r,o.scrollWidth===Math.floor(n+o.scrollLeft)&&(t.style.display="none"),e.style.display="block"})),e.addEventListener("click",(function(){o.scrollTo({top:0,left:Math.min(r-=500,n),behavior:"smooth"}),o.style.marginLeft="0",o.scrollLeft=r,0===o.scrollLeft&&(e.style.display="none"),t.style.display="block"})),window.addEventListener("resize",Bl((function(){n=o.clientWidth,i()}),100)))},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,o)=>{const n=document.createElement("link");n.onload=t,n.onerror=o,n.rel="stylesheet",n.href=e,document.head.insertAdjacentElement("afterbegin",n)}))),await Xe("//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"}))},locale:Bp&&(()=>{window.JSGlobals.featureFlags[f]||[...document.querySelectorAll("[data-edition]")].forEach((e=>{e.addEventListener("click",(({currentTarget:e})=>{const t=e.getAttribute("data-edition");t&&ht("Locale",t,{hours:1}),vt(g)&&ht(g,"English",{hours:1})}))}))}),populatePermutiveId:!Cp&&(async()=>{var e;if(vt(s)&&!(()=>{const e=wt("esi_permutive_id_saved");return null!=e&&""!==e&&"undefined"!==e})())try{const t=await new Promise(((t,o)=>{setTimeout((()=>{o("Rejected by timeout")}),2e3),wl();const[n,r]=((e,t)=>[e,t])(Il,El);n||r?o("Rejected: permutiveRejected || consentRejected"):Pl.push(o),permutive.ready((()=>{var o;const n=null===(o=permutive)||void 0===o||null===(o=o.context)||void 0===o?void 0:o.user_id;e&&e(n),t(n)}))}));pt("profile/set-permutive-id",{permutiveID:t})}catch(e){return}}),visibleNav:fp,inputDetection:gc,twitterWidgets:rp,facebookSDK:ui,instagramEmbed:fc,tiktokEmbed:np,redditEmbed:Wd,parallax:Rl,trackonomicsAffiliateLinks:()=>{const e=document.querySelectorAll('a[href^="https://clicks.trx-hub.com/xid/esimedia_t58ukgmjkf95_theindependent"]');null==e||e.forEach((e=>{const t=e.getAttribute("href"),o=document.referrer||wp,n=navigator.userAgent,r=new URLSearchParams(window.location.search).get("utm_source"),i=function(e,t){const o=new URL(e),n=Sp(new URLSearchParams(o.search),t);return`${o.origin}${o.pathname}?${n.toString()}`}(t,{locationUserAgent:/mobile/i.test(n)?"mobile":"desktop",locationReferrer:o,locationUtmSource:r});e.setAttribute("href",i)}))},updateAdFreeOrDonatorCookiesOnExpiration:async()=>{const e=(()=>{var e;const t=null!==(e=C(s))&&void 0!==e?e:"";return L(t)})();if(!e)return;const{isAdFreeUser:t,adFreeExpiryTimestamp:o,isActiveRecurringDonator:n,recurringDonatorExpiryTimestamp:r}=e;await Promise.allSettled([pp(t,o),up(n,r)])},detectEsiAuthCookieDeletion:()=>{try{if(!("cookieStore"in window))return;window.cookieStore.onchange=e=>{const t=e.deleted;if(!t.length)return;const[o]=t;o.name===s&&Sr(`Detected deletion of following ESI auth cookie on following page: ${JSON.stringify(o)} | ${window.location.href}`)}}catch(e){Or(`Error detecting ESI auth cookie deletion: ${e.message}`)}}}),{googleSearch:async()=>{JSGlobals.cseId&&(await _i(JSGlobals.cseId,0),!rr(f)&&await _i(JSGlobals.cseId,1))},taboola:(!0!==(null===(Lp=JSGlobals.article)||void 0===Lp?void 0:Lp.sensitive)||x(null===(xp=JSGlobals.article)||void 0===xp?void 0:xp.sectionCategory,O))&&!Jp&&(async()=>{if(!window.JSGlobals.taboola)return;nt.map((e=>document.getElementById(e.container))).length&&((()=>{const e=st();localStorage.setItem(ye,e)})(),await(async()=>{await lt(),ct()})())})},Dp({polar:JSGlobals.article&&JSGlobals.domain!==y&&(()=>{Ud(),window.addEventListener("resize",Bl(Ud,500))})},JSGlobals.domain!==y&&window.location.pathname===h&&{initBrazePushPageNotifications:async()=>{var e,t;await Rr()&&(null===(e=window.braze)||void 0===e||e.requestPushPermission(),null===(t=document.querySelectorAll(`.${ae}`))||void 0===t||t.forEach((e=>{e.addEventListener("click",(()=>{var e;null===(e=window.braze)||void 0===e||e.requestPushPermission()}))})))}}),{fullstory:()=>mi(Vp)},{betting:()=>Bp&&Hp&&Er(Vp)},{ready:()=>{document.documentElement.classList.add("indy-ready")}}],Yp=e=>Object.keys(e).map((t=>async()=>{const o=e[t];if(o){kc(t);try{if(o.method){if(await o.method(),Sc(t),o.dependents){const e=`${t} deps`;vr(e),await a(Yp(o.dependents)),yr(e)}}else await o(),Sc(t)}catch(e){console.warn(`Error caught in ${t}()`),console.error(e)}}}));(async()=>{for(let e=0;e