(window.webpackJsonp=window.webpackJsonp||[]).push([["financial-times-n-tracking"],{d2988f39:function(t,e,n){"use strict";n.r(e),function(t){n.d(e,"SPOOR_API_INGEST_URL",(function(){return yt})),n.d(e,"broadcast",(function(){return g})),n.d(e,"init",(function(){return bt})),n.d(e,"trackers",(function(){return vt}));var i=n("6d73a2e3"),o=n("a4a69ef7"),r=n.n(o),a=n("939738f6"),c=n.n(a),s=n("2c27b745"),u=n("6fd7511d"),d=n("d70d095f"),l=n("b4722769");function f(t){const e=new RegExp(`(?:^| )${t}=([^;]+)`),n=document.cookie&&document.cookie.match(e);return n?n[1]:null}function p(){const t=navigator.connection||navigator.mozConnection||navigator.webkitConnection;return{layout:r.a.getCurrentLayout(),orientation:c.a.getOrientation(),connectionType:t?t.type:void 0,ft_session_publib:f("FTSession_PubLib")}}const m={appName:"app",contentId:"rootContentId",contentType:"rootContentType",conceptId:"rootConceptId",conceptType:"rootConceptType",segmentid:"marketing_segment_id",cpccampaign:"cpc_campaign",abTestState:"active_ammit_flags"};function h(t){const e={};return Object.keys(t).forEach(n=>{let i=t[n];"abTestState"===n&&(i=function(t){const e={};return t.split(",").map(t=>{const[n,i]=t.split(":");n&&i&&(e[n]=i)}),e}(i)),"contentId"===n&&(e.content={...e.content,uuid:i}),"contentType"===n&&(e.content={...e.content,asset_type:i}),e[m[n]||n]=i}),e}function g(t,e){let n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];const i=Element.prototype.isPrototypeOf(this)?this:document.body,o=new CustomEvent(t,{bubbles:n,cancelable:!0,detail:e});i.dispatchEvent(o)}var v="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==t?t:"undefined"!=typeof self?self:{};var y=function(t,e){return t(e={exports:{}},e.exports),e.exports}((function(t){var e=[],n=void 0===v?window:v,i=Math.pow(256,6),o=Math.pow(2,52),r=2*o,a=Math.random;function c(t){var e,n=t.length,i=this,o=0,r=i.i=i.j=0,a=i.S=[];for(n||(t=[n++]);o<256;)a[o]=o++;for(o=0;o<256;o++)a[o]=a[r=255&r+t[o%n]+(e=a[o])],a[r]=e;(i.g=function(t){for(var e,n=0,o=i.i,r=i.j,a=i.S;t--;)e=a[o=255&o+1],n=256*n+a[255&(a[o]=a[r=255&r+e])+(a[r]=e)];return i.i=o,i.j=r,n})(256)}function s(t,e){var n,i=[],o=(typeof t)[0];if(e&&"o"==o)for(n in t)try{i.push(s(t[n],e-1))}catch(t){}return i.length?i:"s"==o?t:t+"\0"}function u(t,e){for(var n,i=t+"",o=0;o