iBet uBet web content aggregator. Adding the entire web to your favor.
iBet uBet web content aggregator. Adding the entire web to your favor.



Link to original content: https://www.ft.com/__assets/hashed/page-kit/zephrBarriersScripts.44b185e87c23.bundle.js
(window.webpackJsonp=window.webpackJsonp||[]).push([["zephrBarriersScripts"],{"1583de32":function(e,t,n){"use strict";e.exports=e=>/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/.test(e)},"18f71bfc":function(e,t,n){"use strict";n.r(t);var r=n("b4722769"),i=n("d2988f39"),o=n("1f9b0fc9");new RegExp(/^DENIED_(SUBX|ZEPHR)_.*$/);const s=e=>{var t;return null===(t=/\/offer\/([0-9a-f-]+)/.exec(e))||void 0===t?void 0:t[1]},a=e=>{const t=[];let n;try{var r;const i=null===(r=e.querySelector("#offer-cards"))||void 0===r?void 0:r.querySelectorAll("input");if(i)t.push(...Array.from(i).map(e=>e.getAttribute("data-offer-id")));else{const n=e.querySelector("#charge-button");t.push(s(n.getAttribute("href")))}const o=e.querySelector('[data-component="recommendedOffers"]');n=Array.from(o.querySelectorAll('a[id^="select-button-"]')).reduce((e,t)=>{if("none"!==getComputedStyle(t).display){const n=s(t.getAttribute("href"));n&&e.push(n)}return e},[])}catch(e){}return{primaryOffersIds:t,otherOffersIds:n}};const c=async(e,t,n,r,i)=>{await async function(){for(;!window.SubxClientEvents;)await new Promise(e=>setTimeout(e,3e3))}();const{primaryOffersIds:o,otherOffersIds:s}=a(e);await u({action:"pageView.barrier",primaryOffersIds:o,otherOffersIds:s,accessDecisionProvider:t,contentClassifications:n,contentTopics:r,userInfo:i})},u=async e=>{let{action:t,primaryOffersIds:n,otherOffersIds:r,accessDecisionProvider:i,contentClassifications:o,contentTopics:s,userInfo:a}=e;try{var c,u;await fetch("/barrier/api/subX",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({identifier:null===(c=window.SubxClientEvents)||void 0===c?void 0:c.identifier,sessionId:null===(u=window.SubxClientEvents)||void 0===u?void 0:u.sessionId,action:t,currentUrl:window.location.href,primaryOffersIds:n,otherOffersIds:r,accessDecisionProvider:i,contentClassifications:o,contentTopics:s,userInfo:a})})}catch(e){}};var d=function(e){let{credentials:t="omit"}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return fetch("https://session-next.ft.com"+e,{credentials:t,useCorsProxy:!0}).then(e=>e.ok?e.json():e.text().then(t=>{throw new Error(`Next session responded with "${t}" (${e.status})`)})).catch(e=>{document.body.dispatchEvent(new CustomEvent("oErrors.log",{bubbles:!0,detail:{error:e,info:{component:"next-session-client"}}}))})};let l={};const f=(e,t)=>{if("object"!=typeof e){if("string"!=typeof e||"string"!=typeof t){if("string"==typeof e&&void 0===t)return l[e]||null;if(void 0===e&&void 0===t)return l;throw new Error("Invalid arguments")}l[e]=t}else l=e};f.clear=()=>{l={}};var p=f;const m={},h=()=>{const[,e]=/FTSession_s=([^;]+)/.exec(document.cookie)||[];return e},v=()=>{const e=p("uuid");if(e)return Promise.resolve({uuid:e});const t=h();return t?(m.uuid||(m.uuid=d("/sessions/s/"+t).then((function(){let{uuid:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return delete m.uuid,e&&p("uuid",e),{uuid:e}}))),m.uuid):Promise.resolve({uuid:void 0})};var g=v,y=h;const b=()=>{const e=(e=>{const t=document.cookie.split("; ").find(t=>t.startsWith(e+"="));return t?decodeURIComponent(t.split("=")[1]):null})("FTConsent");if(e){const t=e.split(",").find(e=>"behaviouraladsOnsite:on"===e);return Boolean(t)}return!1};r.default.dom.then(async()=>{const{flags:e,trackingData:t,appContext:n}=Object(o.a)();if(e.get("oTracking")){var r;const e=(null==t?void 0:t.pageViewContext)||{},o=(e=>{var t,n,r;if("fallback-barrier"===e)return null;try{const e=document.getElementById("barrier-page").querySelectorAll("[data-component]"),i=[];for(const o of e){const e={},s=o.getAttribute("data-component"),a=o.getAttribute("data-component-unique-name")||"unknown";switch(e.component_unique_name=a,e.component_name=`${s}-${a}`,s){case"unlockBanner":e.text=(null===(t=o.querySelector("#text-unlockBanner-"+a))||void 0===t?void 0:t.innerText)||void 0;break;case"subscriptionOptionsHeader":e.text=(null===(n=o.querySelector("#text-subscriptionOptionsHeader-"+a))||void 0===n?void 0:n.innerText)||void 0;break;case"heroOffer":case"articleHeaderHeroOffer":case"articleHeaderHeroRadioOffer":if(e.charge_button_text=o.querySelector("#charge-button").innerText||void 0,"heroOffer"===s){const t=o.getAttribute("data-theme")||"light";e.theme=t,e.component_name=`${s}-${t}-${a}`}break;case"subscriptionOptions":const i=(null===(r=o.querySelector("#title-"+a))||void 0===r?void 0:r.innerText)||void 0;e.title=i;const c=[1,2,3].reduce((t,n)=>{var r;const i=(null===(r=o.querySelector(`#button${n}-${a}`))||void 0===r?void 0:r.innerText)||void 0;return e[`button${n}_text`]=i,i?t+`-${n}-${i}`:t},"");e.component_name=`${s}-${i}${c}-${a}`}i.push(e)}return i}catch(e){return"getTrackingBarrierComponentsError"}})(null==e?void 0:e.barrierType),s=(null===(r=window.Zephr)||void 0===r||null===(r=r.accessDetails)||void 0===r?void 0:r.testGroups)||{},c=document.getElementById("barrier-page"),{primaryOffersIds:u,otherOffersIds:l}=a(c);let f=null!=u?u:[null];for(let e=0;e<3;e++){var d;f.push(null!==(d=null==l?void 0:l[e])&&void 0!==d?d:null)}i.init({appContext:n,pageViewContext:{...e,barrier_components:o,offers:f,zephr_tests:{active_zephr_tests:s}}})}if(e.get("enableSubX")&&b()){var l,f,p,m,h;const e=document.getElementById("barrier-page");try{await(async()=>{if(y()){const{uuid:e}=await g();if(e){const t=document.getElementById("page-kit-app-context"),n=t.textContent,r=JSON.parse(n);r.userUuid=e,t.textContent=JSON.stringify(r)}}})()}catch(e){console.error("Failed to add user UUID to the Pagekit app context")}(()=>{const e=document.createElement("script");e.async=!0,e.src="https://produk.zeddit.com/www.ft.com/SiteScript.js";const t=document.getElementsByTagName("script")[0];t.parentNode.insertBefore(e,t)})();const{pageViewContext:n}=t,r=null!==(l=null==n?void 0:n.access_decision_provider)&&void 0!==l?l:null,i=null!==(f=null==n||null===(p=n.content)||void 0===p?void 0:p.classifications)&&void 0!==f?f:[],o=null!==(m=null==n||null===(h=n.content)||void 0===h?void 0:h.topics)&&void 0!==m?m:[],a=null==n?void 0:n.user;((e,t,n,r)=>{const i=e.querySelector("#charge-button");null==i||i.addEventListener("click",async()=>{const e=[s(i.getAttribute("href"))];await u({action:"click.charge",primaryOffersIds:e,accessDecisionProvider:t,contentClassifications:n,contentTopics:r})})})(e,r,i,o),c(e,r,i,o,a)}})},"1f9b0fc9":function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n("c735c384"),i=n("2e1dcbec"),o=n("9d24bbd0"),s=n("65b28b76");const a=()=>{var e;const{trackingData:t,...n}=null===(e=r.init())||void 0===e?void 0:e.getAll(),a=i.init();return o.init(),a.get("adsDisableInternalCMP")||s.nMessagingClient.init(),{appContext:n,flags:a,trackingData:t}}},"3a98a258":function(e,t,n){"use strict";const r=n("85403878"),i=n("e735d598");e.exports=e=>/^\/(__)?myft\/api\//.test(e)||/^\/(__)?myft\/list/.test(e)||i(e)||r(e)},"4d986f21":function(e,t,n){(function(t){var n=/^\s+|\s+$/g,r=/^[-+]0x[0-9a-f]+$/i,i=/^0b[01]+$/i,o=/^0o[0-7]+$/i,s=parseInt,a="object"==typeof t&&t&&t.Object===Object&&t,c="object"==typeof self&&self&&self.Object===Object&&self,u=a||c||Function("return this")(),d=Object.prototype.toString,l=Math.max,f=Math.min,p=function(){return u.Date.now()};function m(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function h(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==d.call(e)}(e))return NaN;if(m(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=m(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(n,"");var a=i.test(e);return a||o.test(e)?s(e.slice(2),a?2:8):r.test(e)?NaN:+e}e.exports=function(e,t,n){var r,i,o,s,a,c,u=0,d=!1,v=!1,g=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function y(t){var n=r,o=i;return r=i=void 0,u=t,s=e.apply(o,n)}function b(e){return u=e,a=setTimeout(E,t),d?y(e):s}function w(e){var n=e-c;return void 0===c||n>=t||n<0||v&&e-u>=o}function E(){var e=p();if(w(e))return O(e);a=setTimeout(E,function(e){var n=t-(e-c);return v?f(n,o-(e-u)):n}(e))}function O(e){return a=void 0,g&&r?y(e):(r=i=void 0,s)}function C(){var e=p(),n=w(e);if(r=arguments,i=this,c=e,n){if(void 0===a)return b(c);if(v)return a=setTimeout(E,t),y(c)}return void 0===a&&(a=setTimeout(E,t)),s}return t=h(t)||0,m(n)&&(d=!!n.leading,o=(v="maxWait"in n)?l(h(n.maxWait)||0,t):o,g="trailing"in n?!!n.trailing:g),C.cancel=function(){void 0!==a&&clearTimeout(a),u=0,r=c=i=a=void 0},C.flush=function(){return void 0===a?s:O(p())},C}}).call(this,n("fcdffa92"))},"531919e5":function(e,t,n){"use strict";const r=n("3a98a258"),i=n("1583de32");e.exports=function(e,t){if(r(e))return e;if(!t)return e;if(!t.length||!i(t))throw new Error("Invalid user uuid: "+t);return e.replace(/myft(?:\/([a-zA-z\-]*))?(\/.[^$\/])?\/?/,(function(e,n,r){return"myft/"+(n?n+"/":"")+t+(r||"")}))}},"6fd7511d":function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var r,i,o,s=n("0b2f5b41");function a(e){return(a="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})(e)}function c(e){var t=function(e,t){if("object"!==a(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==a(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===a(t)?t:String(t)}class u{constructor(){this.gpcValue=!1,this.privacyLegislation={legislation:void 0,region:void 0},this.consentCookie={behavioral:!1,demographic:!1,programmatic:!1,permutiveadsOnsite:!1,personalisedmarketingOnsite:!1,recommendedcontentOnsite:!0,all:!1}}async init(){await this.updatePrivacyLegislation(),this.updateGpcValue(),this.updateConsentCookie()}async update(){await this.init()}async updatePrivacyLegislation(){try{const{legislation:e,region:t}=await Object(s.fetchLegislation)();this.privacyLegislation={legislation:e,region:t}}catch(e){this.privacyLegislation={legislation:void 0,region:void 0}}return this.privacyLegislation}updateGpcValue(){return this.gpcValue=navigator.globalPrivacyControl,this.gpcValue}updateConsentCookie(){const e=document.cookie.match(/FTConsent=([^;]+)/);if(e){const t=decodeURIComponent(e[1]);this.consentCookie={behavioral:t.includes("behaviouraladsOnsite:on"),demographic:t.includes("demographicadsOnsite:on"),programmatic:t.includes("programmaticadsOnsite:on"),permutiveadsOnsite:t.includes("permutiveadsOnsite:on"),recommendedcontentOnsite:t.includes("recommendedcontentOnsite:on"),personalisedmarketingOnsite:t.includes("personalisedmarketingOnsite:on"),all:t.includes("behaviouraladsOnsite:on")&&t.includes("demographicadsOnsite:on")&&t.includes("programmaticadsOnsite:on")}}else this.consentCookie={behavioral:!1,demographic:!1,programmatic:!1,permutiveadsOnsite:!1,recommendedcontentOnsite:!0,personalisedmarketingOnsite:!1,all:!1};return this.consentCookie}isCcpaAndGpc(){const{legislation:e}=this.privacyLegislation;if(!e)return this.gpcValue;const t=u.legislationPolicy.CCPA;return e.has(t)&&this.gpcValue}isAllowed(){if(this.isCcpaAndGpc())return{behavioral:!1,demographic:!1,programmatic:!1,permutiveadsOnsite:!1,recommendedcontentOnsite:!0,personalisedmarketingOnsite:!1,all:!1};const{behavioral:e,demographic:t,programmatic:n,permutiveadsOnsite:r,personalisedmarketingOnsite:i,recommendedcontentOnsite:o}=this.consentCookie;return{behavioral:e,demographic:t,programmatic:n,permutiveadsOnsite:r,personalisedmarketingOnsite:i,recommendedcontentOnsite:o,all:e&&t&&n}}getLegislation(){return this.privacyLegislation.legislation}getRegion(){return this.privacyLegislation.region}getGpcValue(){return this.gpcValue}getConsentCookie(){return this.consentCookie}}r=u,o={CCPA:"ccpa",GDPR:"gdpr"},(i=c(i="legislationPolicy"))in r?Object.defineProperty(r,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):r[i]=o;const d=async()=>{const e=new u;return await e.init(),e}},"7fe8ac7b":function(e,t,n){"use strict";var r=function(e){let{credentials:t="omit"}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return fetch("https://session-next.ft.com"+e,{credentials:t,useCorsProxy:!0}).then(e=>e.ok?e.json():e.text().then(t=>{throw new Error(`Next session responded with "${t}" (${e.status})`)})).catch(e=>{document.body.dispatchEvent(new CustomEvent("oErrors.log",{bubbles:!0,detail:{error:e,info:{component:"next-session-client"}}}))})};let i={};const o=(e,t)=>{if("object"!=typeof e){if("string"!=typeof e||"string"!=typeof t){if("string"==typeof e&&void 0===t)return i[e]||null;if(void 0===e&&void 0===t)return i;throw new Error("Invalid arguments")}i[e]=t}else i=e};o.clear=()=>{i={}};var s=o;const a={},c=()=>{const[,e]=/FTSession_s=([^;]+)/.exec(document.cookie)||[];return e},u=()=>{const e=s("uuid");if(e)return Promise.resolve({uuid:e});const t=c();return t?(a.uuid||(a.uuid=r("/sessions/s/"+t).then((function(){let{uuid:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return delete a.uuid,e&&s("uuid",e),{uuid:e}}))),a.uuid):Promise.resolve({uuid:void 0})};var d=u,l=()=>(/FTSession=([^;]+)/.exec(document.cookie)||[null,""])[1],f=n("84415bd2"),p=n("531919e5"),m=n.n(p);const h={total:0,items:[],count:0};var v=class{constructor(){let{apiRoot:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!e)throw"User prefs must be constructed with an api root";this.apiRoot=e,this.loaded={}}init(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(this.initialised)return Promise.resolve();this.initialised=!0;return/FTSession_s=/.test(document.cookie)?(this.setPerfMark(),d().then(t=>{let{uuid:n}=t;if(!n)return Promise.reject("Session service returned undefined.");this.userId=n,this.headers={"Content-Type":"application/json","X-FT-Session-Token":l(),accept:"application/json"};let r=new Set([{relationship:"preferred",type:"preference"},{relationship:"enabled",type:"endpoint"},{relationship:"created",type:"list"}]);e.forEach(e=>{r.has(e)||r.add(e)}),r.forEach(e=>this.load(e))}).catch(e=>{if("No session cookie found"!==e.message)throw e})):Promise.reject("No session cookie found")}setPerfMark(){const e=window.performance||window.msPerformance||window.webkitPerformance||window.mozPerformance;e&&e.mark&&Promise.all([new Promise(e=>{document.addEventListener("myft.user.followed.concept.load",e)}),new Promise(e=>{document.addEventListener("myft.user.saved.content.load",e)})]).then(()=>e.mark("myftLoaded"))}emit(e,t){document.body.dispatchEvent(new CustomEvent("myft."+e,{detail:t,bubbles:!0}))}fetchJson(e,t,n){let r={method:e,headers:this.headers,credentials:"include"};if(/undefined/.test(t)){let e="Request should not contain undefined.";return document.body.dispatchEvent(new CustomEvent("oErrors.log",{bubbles:!0,detail:{error:new Error(e)}})),Promise.reject(e)}return"GET"!==e&&(r.body=JSON.stringify(n||{})),fetch(this.apiRoot+t,r).then(f.json)}load(e){const t=`${e.relationship}.${e.type}`;this.fetchJson("GET",`${this.userId}/${e.relationship}/${e.type}`).then(e=>{e||(e=h),this.loaded[t]=e,this.emit(`user.${t}.load`,e)}).catch(e=>{if("No user data exists"!==e.message)throw e;this.loaded[t]=h,this.emit(`user.${t}.load`,h)})}add(e,t,n,r,i,o,s){return t=this.getFallbackActorIdIfNecessary(e,t),this.fetchJson("PUT",`${e}/${t}/${n}/${r}/${i}`,o).then(a=>{const c={actorId:t,results:a,subject:i,data:o,trackingInfo:s};return this.emit(`${e}.${n}.${r}.add`,c),c})}remove(e,t,n,r,i,o,s){return t=this.getFallbackActorIdIfNecessary(e,t),this.fetchJson("DELETE",`${e}/${t}/${n}/${r}/${i}`,o).then(()=>{const a={actorId:t,subject:i,data:o,trackingInfo:s};return this.emit(`${e}.${n}.${r}.remove`,a),a})}updateRelationship(e,t,n,r,i,o,s){return t=this.getFallbackActorIdIfNecessary(e,t),this.fetchJson("PUT",`${e}/${t}/${n}/${r}/${i}`,o).then(a=>{const c={actorId:t,results:a,subject:i,data:o,trackingInfo:s};return this.emit(`${e}.${n}.${r}.update`,c),c})}get(e,t,n){return this.getAll(e,t).then(e=>e.filter(e=>this.getUuid(e)===n))}getAll(e,t){return new Promise(n=>{this.loaded[`${e}.${t}`]?n(this.getItems(e,t)):document.body.addEventListener(`myft.user.${e}.${t}.load`,()=>{n(this.getItems(e,t))})})}getListsContent(){return this.fetchJson("GET",this.userId+"/lists").then(e=>e||h)}has(e,t,n){return this.get(e,t,n).then(e=>e.length>0)}getUuid(e){return e.uuid}getItems(e,t){return this.loaded[`${e}.${t}`]&&this.loaded[`${e}.${t}`].items||[]}personaliseUrl(e){return d().then(t=>{let{uuid:n}=t;return m()(e,n)})}getFallbackActorIdIfNecessary(e,t){if(t)return t;if("user"===e)return this.userId;throw new Error("no actorId specified")}followPlusDigestEmail(e,t){return this.fetchJson("PUT",`${this.userId}/follow-plus-digest-email/${e}`,t).then(n=>{const r={actorId:this.userId,results:n,subject:e,data:t};return this.emit("user.followed.concept.add",r),r})}getPublicList(e){return this.fetchJson("GET","public-list/"+e).catch(e=>{throw new Error(e)})}updateActor(e,t,n){return this.fetchJson("PUT",`${e}/${t}`,n).catch(e=>{throw new Error(e)})}};t.a=new v({apiRoot:"/__myft/api/onsite/"})},"84415bd2":function(e,t,n){e.exports=function e(t,n,r){function i(s,a){if(!n[s]){if(!t[s]){if(o)return o(s,!0);var c=new Error("Cannot find module '"+s+"'");throw c.code="MODULE_NOT_FOUND",c}var u=n[s]={exports:{}};t[s][0].call(u.exports,(function(e){var n=t[s][1][e];return i(n||e)}),u,u.exports,e,t,n,r)}return n[s].exports}for(var o=!1,s=0;s-1)throw new c(e.message);throw new a(e.message)}));t.text()},n.text=function e(t){if(Array.isArray(t))return Promise.all(t.map(e));if(!t.ok)throw t.text(),new s(t.url,t.status,t.statusText);if(204!==t.status)return t.text();t.text()},n.originatedError=function(e){return e.name===s.name||e.name===a.name||e.name===c.name};var s=function(e){function t(e,n,o){i(this,t),r(Object.getPrototypeOf(t.prototype),"constructor",this).call(this),this.message=e+" responded with a "+n+" ("+o+")",this.name="BadServerResponseError"}return o(t,Error),t}();n.BadServerResponseError=s;var a=function(e){function t(e){i(this,t),r(Object.getPrototypeOf(t.prototype),"constructor",this).call(this),this.message=e,this.name="InvalidJsonError"}return o(t,Error),t}();n.InvalidJsonError=a;var c=function(e){function t(e){i(this,t),r(Object.getPrototypeOf(t.prototype),"constructor",this).call(this),this.message=e,this.name="ReadTimeoutError"}return o(t,Error),t}();n.ReadTimeoutError=c},{}]},{},[1])(1)},85403878:function(e,t,n){"use strict";e.exports=function(e){return/\/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/.test(e)}},d70d095f:function(e,t,n){"use strict";n.d(t,"a",(function(){return S})),n.d(t,"b",(function(){return k})),n.d(t,"c",(function(){return N})),n.d(t,"d",(function(){return W})),n.d(t,"e",(function(){return Q})),n.d(t,"f",(function(){return ee}));var r,i,o,s,a,c=-1,u=function(e){addEventListener("pageshow",(function(t){t.persisted&&(c=t.timeStamp,e(t))}),!0)},d=function(){return window.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0]},l=function(){var e=d();return e&&e.activationStart||0},f=function(e,t){var n=d(),r="navigate";return c>=0?r="back-forward-cache":n&&(document.prerendering||l()>0?r="prerender":document.wasDiscarded?r="restore":n.type&&(r=n.type.replace(/_/g,"-"))),{name:e,value:void 0===t?-1:t,rating:"good",delta:0,entries:[],id:"v3-".concat(Date.now(),"-").concat(Math.floor(8999999999999*Math.random())+1e12),navigationType:r}},p=function(e,t,n){try{if(PerformanceObserver.supportedEntryTypes.includes(e)){var r=new PerformanceObserver((function(e){Promise.resolve().then((function(){t(e.getEntries())}))}));return r.observe(Object.assign({type:e,buffered:!0},n||{})),r}}catch(e){}},m=function(e,t,n,r){var i,o;return function(s){t.value>=0&&(s||r)&&((o=t.value-(i||0))||void 0===i)&&(i=t.value,t.delta=o,t.rating=function(e,t){return e>t[1]?"poor":e>t[0]?"needs-improvement":"good"}(t.value,n),e(t))}},h=function(e){requestAnimationFrame((function(){return requestAnimationFrame((function(){return e()}))}))},v=function(e){var t=function(t){"pagehide"!==t.type&&"hidden"!==document.visibilityState||e(t)};addEventListener("visibilitychange",t,!0),addEventListener("pagehide",t,!0)},g=function(e){var t=!1;return function(n){t||(e(n),t=!0)}},y=-1,b=function(){return"hidden"!==document.visibilityState||document.prerendering?1/0:0},w=function(e){"hidden"===document.visibilityState&&y>-1&&(y="visibilitychange"===e.type?e.timeStamp:0,O())},E=function(){addEventListener("visibilitychange",w,!0),addEventListener("prerenderingchange",w,!0)},O=function(){removeEventListener("visibilitychange",w,!0),removeEventListener("prerenderingchange",w,!0)},C=function(){return y<0&&(y=b(),E(),u((function(){setTimeout((function(){y=b(),E()}),0)}))),{get firstHiddenTime(){return y}}},T=function(e){document.prerendering?addEventListener("prerenderingchange",(function(){return e()}),!0):e()},x=[1800,3e3],k=function(e,t){t=t||{},T((function(){var n,r=C(),i=f("FCP"),o=p("paint",(function(e){e.forEach((function(e){"first-contentful-paint"===e.name&&(o.disconnect(),e.startTimer.value&&(r.value=i,r.entries=o,n())},a=p("layout-shift",s);a&&(n=m(e,r,I,t.reportAllChanges),v((function(){s(a.takeRecords()),n(!0)})),u((function(){i=0,r=f("CLS",0),n=m(e,r,I,t.reportAllChanges),h((function(){return n()}))})),setTimeout(n,0))})))},$={passive:!0,capture:!0},P=new Date,j=function(e,t){r||(r=t,i=e,o=new Date,_(removeEventListener),A())},A=function(){if(i>=0&&i1e12?new Date:performance.now())-e.timeStamp;"pointerdown"==e.type?function(e,t){var n=function(){j(e,t),i()},r=function(){i()},i=function(){removeEventListener("pointerup",n,$),removeEventListener("pointercancel",r,$)};addEventListener("pointerup",n,$),addEventListener("pointercancel",r,$)}(t,e):j(t,e)}},_=function(e){["mousedown","keydown","touchstart","pointerdown"].forEach((function(t){return e(t,L,$)}))},D=[100,300],N=function(e,t){t=t||{},T((function(){var n,o=C(),a=f("FID"),c=function(e){e.startTimet.latency){if(n)n.entries.push(e),n.latency=Math.max(n.latency,e.duration);else{var r={id:e.interactionId,latency:e.duration,entries:[e]};z[r.id]=r,H.push(r)}H.sort((function(e,t){return t.latency-e.latency})),H.splice(10).forEach((function(e){delete z[e.id]}))}},W=function(e,t){t=t||{},T((function(){M();var n,r=f("INP"),i=function(e){e.forEach((function(e){e.interactionId&&X(e),"first-input"===e.entryType&&!H.some((function(t){return t.entries.some((function(t){return e.duration===t.duration&&e.startTime===t.startTime}))}))&&X(e)}));var t,i=(t=Math.min(H.length-1,Math.floor(G()/50)),H[t]);i&&i.latency!==r.value&&(r.value=i.latency,r.entries=i.entries,n())},o=p("event",i,{durationThreshold:t.durationThreshold||40});n=m(e,r,q,t.reportAllChanges),o&&(o.observe({type:"first-input",buffered:!0}),v((function(){i(o.takeRecords()),r.value<0&&G()>0&&(r.value=0,r.entries=[]),n(!0)})),u((function(){H=[],V=J(),r=f("INP"),n=m(e,r,q,t.reportAllChanges)})))}))},Z=[2500,4e3],K={},Q=function(e,t){t=t||{},T((function(){var n,r=C(),i=f("LCP"),o=function(e){var t=e[e.length-1];t&&t.startTimeperformance.now())return;n.value=Math.max(o-l(),0),n.entries=[i],r(!0),u((function(){n=f("TTFB",0),(r=m(e,n,Y,t.reportAllChanges))(!0)}))}}))}},e735d598:function(e,t){e.exports=e=>/^\/(__)?myft\/(my-news|my-topics|preferences|product-tour)/.test(e)},fcdffa92:function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},fe53252a:function(e,t,n){var r,i; /*! * JavaScript Cookie v2.2.0 * https://github.com/js-cookie/js-cookie * * Copyright 2006, 2015 Klaus Hartl & Fagner Brack * Released under the MIT license */!function(o){if(void 0===(i="function"==typeof(r=o)?r.call(t,n,t,e):r)||(e.exports=i),!0,e.exports=o(),!!0){var s=window.Cookies,a=window.Cookies=o();a.noConflict=function(){return window.Cookies=s,a}}}((function(){function e(){for(var e=0,t={};e1){if("number"==typeof(o=e({path:"/"},r.defaults,o)).expires){var a=new Date;a.setMilliseconds(a.getMilliseconds()+864e5*o.expires),o.expires=a}o.expires=o.expires?o.expires.toUTCString():"";try{s=JSON.stringify(i),/^[\{\[]/.test(s)&&(i=s)}catch(e){}i=n.write?n.write(i,t):encodeURIComponent(String(i)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),t=(t=(t=encodeURIComponent(String(t))).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent)).replace(/[\(\)]/g,escape);var c="";for(var u in o)o[u]&&(c+="; "+u,!0!==o[u]&&(c+="="+o[u]));return document.cookie=t+"="+i+c}t||(s={});for(var d=document.cookie?document.cookie.split("; "):[],l=/(%[0-9A-Z]{2})+/g,f=0;f