!function(e){var t={};function i(n){if(t[n])return t[n].exports;var r=t[n]={i:n,l:!1,exports:{}};return e[n].call(r.exports,r,r.exports,i),r.l=!0,r.exports}i.m=e,i.c=t,i.d=function(e,t,n){i.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:n})},i.r=function(e){Object.defineProperty(e,"__esModule",{value:!0})},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="",i(i.s=0)}([function(e,t){!function(){"use strict";try{if(void 0===e)var e={};if(e.defaults={trackingHost:"tt.onthe.io",projectId:"11843",projectSignature:"7b8d042ba04165e01f4fea77c50575c3",projectCodeId:"eeWxyLmN6YqU",projectCodeVersion:"89",projectUniquesBySuperdomain:"0",projectVisitsBySuperdomain:"0",projectVisitsDuration:"15",projectVideosWithoutMarkup:"",holdingHash:"",holdingId:"",excludeReferrersByDomain:""},void 0===e)e={};if(e.doubleLoadingDetector=(document,t=e.defaults,{init:function(){if("object"!=typeof window.__io&&(window.__io={}),window.__io.startedTrackers||(window.__io.startedTrackers=[]),-1!==window.__io.startedTrackers.indexOf(t.projectCodeId))return!0;window.__io.startedTrackers.push(t.projectCodeId)}}),void 0===e)e={};if(e.helpers=function(e,t,i){var n={decodeURIrecursively:function(e){try{for(;decodeURIComponent(e)!=e;)e=decodeURIComponent(e)}catch(e){}return e},encodeURIonce:function(e){return encodeURIComponent(this.decodeURIrecursively(e))},bindOnUrlChange:function(t){var i=e.location.pathname;this.setIntervalSafe(e,function(){e.location.pathname!==i&&(i=e.location.pathname,t())},100)},bindOnElementInsertion:function(i,n,r){r||(r=t);var o=r.querySelectorAll(i);return o=e.Array.prototype.slice.call(o),this.setIntervalSafe(e,function(){var t,s=r.querySelectorAll(i);for(t=0;t<s.length;t++)-1===e.Array.prototype.indexOf.call(o,s[t])&&(o.push(s[t]),n(s[t]))},1e3)}};return n.ElementObserver={lookupDelay:1e3,init:function(e,i){this.elements=[],this.selector=e,this.parentElement=i||t,this.state={running:!1},this.intervalId=null},insertIgnoreAnElement:function(e){-1===this.elements.indexOf(e)&&(this.elements.push(e),this.callback(e))},start:function(t){this.state.running=!0,this.callback=t;var i,n=this.parentElement.querySelectorAll(this.selector);for(i=0;i<n.length;i++){if(!this.state.running)return;this.insertIgnoreAnElement(n[i])}this.intervalId&&(e.clearInterval(this.intervalId),this.intervalId=null),this.intervalId=this._setIntervalSafe(e,function(){if(!this.state.running)return e.clearInterval(this.intervalId),void(this.intervalId=null);var t,i=this.parentElement.querySelectorAll(this.selector);for(t=0;t<i.length;t++){if(!this.state.running)return;this.insertIgnoreAnElement(i[t])}}.bind(this),this.lookupDelay)},stop:function(){this.state.running=!1},_setIntervalSafe:function(){return this.setIntervalSafe.apply(this,arguments)}.bind(n)},n.sendGetRequest=function(t){"function"==typeof e.XMLHttpRequest?this.getRemoteContent(t):(new Image).src=t},n.getRemoteContent=function(t,i){i||(i=function(){});var n=new e.XMLHttpRequest;n.onreadystatechange=function(){this.readyState===e.XMLHttpRequest.DONE&&(200===this.status?i(this.responseText):i(void 0))},n.open("GET",t,!0),n.send()},n.getEnumerableKeys=function(e){var t,i=[];for(t in e)e.hasOwnProperty(t)&&i.push(t);return i},n.getDeepPropertySafe=function(e,t){var i;try{for(i=0;i<t.length;i++)e=e[t[i]];return e}catch(e){return}},n.parseJSONSafe=function(t){try{return e.JSON.parse(t)}catch(e){return}},n.parseURL=function(e){var i=t.createElement("a");i.href=e;var n={hash:i.hash,hostname:i.hostname,hostnameNaked:i.hostname.split(".").length>2?i.hostname.replace(/^www\./,""):i.hostname,host:i.host,href:i.href,origin:i.origin,pathname:i.pathname,port:i.port,protocol:i.protocol,search:i.search};return"/"!==n.pathname.charAt(0)&&(n.pathname="/"+n.pathname),n},n.messageWindow=function(e,t){e.postMessage(JSON.stringify(t),"*")},n.messageFrameWindow=function(e,t){this.messageWindow(e.contentWindow,t)},n.createObject=function(t){if("function"==typeof e.Object.create)return e.Object.create(t);function i(){}return i.prototype=t,new i},n.cloneObjectShallow=function(t){return e.JSON.parse(e.JSON.stringify(t))},n.identifyArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)},n.setIntervalSafe=function(e,t,i){return e.setInterval(function(){try{t.apply(null,arguments)}catch(e){this.trackErrorMetric(e)}}.bind(this),i)},n.addEventListenerSafe=function(e,t,i){var n=function(){try{i.apply(null,arguments)}catch(e){this.trackErrorMetric(e)}}.bind(this);return e.addEventListener(t,n),n},n.trackErrorMetric=function(i,n){n=n||"error_script";var r={title:"string"==typeof i?i:i.message+"\n\n"+i.stack,href:e.location.href,url:e.location.pathname,domain:e.location.hostname,page:t.title,user_agent:e.navigator.userAgent,referrer_uri:t.referrer};this.sendMetric(n,r)},n.getMetricParamString=function(t,n){(n=this.cloneObjectShallow(n)).cdn_version=i.projectCodeVersion;var r=[];for(var o in n)""!==n[o]&&n.hasOwnProperty(o)&&r.push(o+":"+this.encodeURIonce(n[o]));var s=t+"["+r.join()+"]";return s=s.replace(/\\x([0-9A-Fa-f]{2})/g,function(){return String.fromCharCode(e.parseInt(arguments[1],16))}),"/?k[]="+i.projectId+":"+s},n.deferMetricToSendInBatch=function(t,n){if(this.deferMetricToSendInBatch.queue||(this.deferMetricToSendInBatch.queue=[]),this.deferMetricToSendInBatch.queue.push(this.getMetricParamString(t,n)),!this.deferMetricToSendInBatch.isQueueActive)var r=this.setIntervalSafe(e,function(){if(0===this.deferMetricToSendInBatch.queue.length)return this.deferMetricToSendInBatch.isQueueActive=!1,void e.clearInterval(r);this.deferMetricToSendInBatch.isQueueActive=!0;for(var t="";this.deferMetricToSendInBatch.queue.length&&(t+this.deferMetricToSendInBatch.queue[0]).length<1900;)t+="&"+this.deferMetricToSendInBatch.queue.shift();var n="https://"+i.trackingHost+"/"+t+"&s="+i.projectSignature+"&"+Date.now();this.sendGetRequest(n)}.bind(this),1e3)},n.sendMetric=function(e,t,n,r){var o="https://"+i.trackingHost+this.getMetricParamString(e,t)+"&s="+i.projectSignature+(n?"&_v="+n:"")+(r?"&__io="+this.getUserId():"")+"&"+Date.now();this.sendGetRequest(o)},n.hashFnv32a=function(e,t,i){var n,r,o=void 0===i?2166136261:i;for(n=0,r=e.length;n<r;n++)o^=e.charCodeAt(n),o+=(o<<1)+(o<<4)+(o<<7)+(o<<8)+(o<<24);return t?("0000000"+(o>>>0).toString(16)).substr(-8):o>>>0},n.getStorageStatusLocal=function(){try{return e.localStorage.setItem("test","1"),e.localStorage.removeItem("test"),!0}catch(e){return!1}},n.getStorageStatusSession=function(){try{return e.sessionStorage.setItem("test","1"),e.sessionStorage.removeItem("test"),!0}catch(e){return!1}},n.setPreviousURI=function(t){if(this.getStorageStatusSession()){var i=this.parseJSONSafe(e.sessionStorage.getItem("__io_nav_state"))||{};e.sessionStorage.setItem("__io_nav_state",JSON.stringify({current:t,previous:i.current}))}},n.getPreviousURI=function(){if(this.getStorageStatusSession()){var t=this.parseJSONSafe(e.sessionStorage.getItem("__io_nav_state"))||{};return t.previous&&t.previous!==t.current?t.previous:void 0}},n.getPreviousPageTitle=function(){if(this.getStorageStatusSession()){var i,n,r=t.title;if(i=e.sessionStorage.getItem("__io_previous_page_title"),n=e.sessionStorage.getItem("__io_previous_page_title_bak"),i===r){if(n)return n}else if(e.sessionStorage.setItem("__io_previous_page_title",r),i)return e.sessionStorage.setItem("__io_previous_page_title_bak",i),i}},n.getLastestHeadlineTestIds=function(){if(this.getStorageStatusSession()){var t=this.parseJSONSafe(e.sessionStorage.getItem("__io_headline_testing_latest"));if(t&&"object"==typeof t)return t.lifetime<0?(e.sessionStorage.removeItem("__io_headline_testing_latest"),t={}):t.previousPathname!==e.location.pathname&&(t.previousPathname=e.location.pathname,--t.lifetime,e.sessionStorage.setItem("__io_headline_testing_latest",JSON.stringify(t))),{blockId:t.blockId||void 0,headlineId:t.headlineId||void 0}}},n.getSearchParam=function(t,i){var n=(i?this.parseURL(i).search:e.location.search).match("[?&]"+t+"=([^(&?)]*)");return n?n[n.length-1]:""},n.getCookieValue=function(e){var i=t.cookie.match("(^|;)\\s*"+e+"\\s*=\\s*([^;]+)");return i?this.decodeURIrecursively(i[i.length-1]):""},n.setCookie=function(e,i,n,r,o,s){var a=new Date;a.setYear(a.getFullYear()+1),a=a.toUTCString(),n||(n=a),r||(r="/"),i&&(i=encodeURIComponent(i));var c=e+"="+(i||"")+"; expires="+n+"; path="+r+(o?"; domain="+o:"")+(s?"; secure":"");t.cookie=c},n.deleteCookie=function(t,i,n){n===e.location.hostname&&(n=null),this.setCookie(t,null,"Thu, 01 Jan 1970 00:00:01 GMT",i,n)},n.getDepth=function(){var t=new Date((new Date).getTime()+9e5).toUTCString(),i=this.hashFnv32a(e.location.pathname),n=this.getCookieValue("__io_d");if(!n||2!==n.split("_").length)return this.setCookie("__io_d","1_"+i,t),1;var r=n.split("_")[1],o=e.parseInt(n.split("_")[0],10);if(i==r)return o||1;var s=(o||0)+1;return this.setCookie("__io_d",s+"_"+i,t),s},n.getUserId=function(){var e=this.getCookieValue("__io");return e||(e=Math.floor(68719476736*(1+Math.random())).toString(16).substring(1)+"."+Math.floor(68719476736*(1+Math.random())).toString(16).substring(1)+"_"+Date.now()),this.setCookie("__io",e),e},n.getReferrerCurrentExternal=function(n){if(!(n=n||t.referrer))return null;var r=this.parseURL(n).hostnameNaked,o=this.parseURL(e.location.hostname).hostnameNaked;return-1!==n.indexOf(i.excludeReferrersByDomain)?null:r===o?null:r},n.getReferrerCurrentFromParams=function(t){t=t||e.location.href;var i=this.getSearchParam("io_source",t),n=this.getSearchParam("io_utm_social",t),r="?f"===this.parseURL(t).search?"facebook_group":null,o=this.getSearchParam("utm_referrer",t),s=this.getSearchParam("utm_source",t),a=this.getSearchParam("source",t);return i||n||r||o||s||a},n.getReferrer=function(e,t){var i=this.getReferrerCurrentFromParams(t)||this.getReferrerCurrentExternal(e);return i?(this.setCookie("__io_r",i),i):this.getCookieValue("__io_r")},n.getReferrerFirst=function(e){var t=this.getCookieValue("__io_first_source"),i=this.getReferrer(e);return!t&&i?(this.setCookie("__io_first_source",i),i):t},n.getDeviceName=function(){var t=e.navigator.userAgent||"undefined",i="desktop",n=/Android|webOS|iPhone|PlayBook|iPad|iPod|IEMobile|BlackBerry|Mobile|Opera Mini/i.test(t),r=/Tablet|PlayBook|iPad/i.test(t)||/Android/i.test(t)&&!/Mobile/i.test(t)&&!/Opera Mini/i.test(t),o=/Android/i.test(t),s=/iPhone|iPad|iPod/i.test(t);return n&&(r?(i="tablet",i+=o?" (Android)":s?" (iOS)":" (Other)"):(i="smart",i+=o?" (Android)":s?" (iOS)":" (Other)")),i},n.getBrowserNameAndVersion=function(){var t,i,n=e.navigator.userAgent,r="";switch(!0){case-1!==(t=n.indexOf("OPR/")):r=n.substring(t+4);break;case-1!==(t=n.indexOf("Opera"))&&-1!==(t=n.indexOf("Version")):r=n.substring(t+8);break;case-1!==(t=n.indexOf("Opera")):r=n.substring(t+6);break;case-1!==(t=n.indexOf("MSIE")):r=n.substring(t+5);break;case-1!==(t=n.indexOf("Chrome")):r=n.substring(t+7);break;case-1!==(t=n.indexOf("Safari"))&&-1!==(t=n.indexOf("Version")):r=n.substring(t+8);break;case-1!==(t=n.indexOf("Safari")):r=n.substring(t+7);break;case-1!==(t=n.indexOf("Firefox")):r=n.substring(t+8);break;case-1!==n.indexOf("Trident")&&-1!==(t=n.indexOf("rv:")):r=n.substring(t+3).split(")")[0];break;case(t=n.lastIndexOf(" ")+1)<(t=n.lastIndexOf("/")):r=n.substring(t+1)}return r=r.split(";")[0].split(" ")[0],i=(i=e.parseInt(r,10))||"(unknown version)",this.getBrowserName()+" "+i},n.getUserLifeTime=function(){var e=t.cookie.match(/__io=([^;]+)/);return e?(e=e[1].split("_")[1],(e=Math.round((+Date.now()-e)/864e5))<0&&(e=0),0==e?e="0":e<7?e+="d":e=e<30?Math.round(e/7)+"w":Math.round(e/30)+"m",e):"0"},n.getUserLifeTimeNumber=function(){var e=t.cookie.match(/__io_lv=([^;]+)/);return e?(e=e[1],e=Math.round((+Date.now()-e)/864e5)):"0"},n.getUserType=function(){var e="";if(-1==t.cookie.indexOf("__io=")){(n=new Date).setYear(n.getFullYear()+1);var i=Math.floor(68719476736*(1+Math.random())).toString(16).substring(1)+"."+Math.floor(68719476736*(1+Math.random())).toString(16).substring(1);t.cookie="__io="+i+"_"+ +Date.now()+"; expires="+n.toUTCString()+"; path=/"}else{(n=new Date).setYear(n.getFullYear()+1),t.cookie="__io="+(void 0!==this.getCookieValue("__io")?this.getCookieValue("__io")+"; expires="+n.toUTCString()+"; path=/":"")}if(-1==t.cookie.indexOf("__io_lv="))e="new",(n=new Date).setYear(n.getFullYear()+1),t.cookie="__io_lv="+ +Date.now()+"; expires="+n.toUTCString()+"; path=/";else if(0==this.getUserLifeTime())e="new";else{var n,r=1*this.getUserLifeTimeNumber();e=r>30?"new":r>7?"returned":"constant",(n=new Date).setYear(n.getFullYear()+1),t.cookie="__io_lv="+ +Date.now()+"; expires="+n.toUTCString()+"; path=/"}return e},n.getBrowserName=function(){var i,n,r="[object OperaMini]"===Object.prototype.toString.call(e.operamini),o=!(r||(!e.opr||!e.opr.addons)&&!e.opera),s="undefined"!=typeof InstallTrigger,a=/constructor/i.test(e.HTMLElement)||"[object SafariRemoteNotification]"===Object.prototype.toString.call(this.getDeepPropertySafe(e,["safari","pushNotification"]))||"Apple Computer, Inc."===e.navigator.vendor,c=!!t.documentMode,l=[{name:"Opera",isCurrent:o},{name:"Firefox",isCurrent:s},{name:"Safari",isCurrent:a},{name:"IE",isCurrent:c},{name:"Edge",isCurrent:!c&&!!e.StyleMedia},{name:"Chrome",isCurrent:!!e.chrome&&!!e.chrome.webstore},{name:"Opera Mini",isCurrent:r}];for(n=0;n<l.length;n++)if(l[n].isCurrent){if(i)return"Other";i=l[n].name}return i||"Other"},n.getReferenceTimeFromWordsCount=function(t){return Math.round(e.parseInt(t,10)/(190/60))},n.getTextFromElement=function(e){var t,i,n="",r=["SCRIPT","STYLE","NOSCRIPT","VIDEO"];for(i=0;i<e.childNodes.length;i++)t=e.childNodes[i],-1===r.indexOf(t.nodeName)&&(1===t.nodeType?n+=this.getTextFromElement(t):3===t.nodeType&&(n+=t.nodeValue));return n},n.getReferenceTimeFromBlock=function(e){var i,n;if(i=t.querySelector(e))return n=this.getTextFromElement(i).trim().split(/\s+/).length,this.getReferenceTimeFromWordsCount(n)},n.getSortedSemver=function(t){return t.sort(function(t,i){var n,r,o=/(\.0+)+$/,s=t.replace(o,"").split("."),a=i.replace(o,"").split("."),c=Math.min(s.length,a.length);for(n=0;n<c;n++)if(r=e.parseInt(s[n],10)-e.parseInt(a[n],10))return r;return s.length-a.length})},n.injectScriptBySrc=function(e,i){var n=t.getElementsByTagName("script")[0],r=t.createElement("script");r.id=i,r.async=!0,r.src=e,n.parentNode.insertBefore(r,n)},n.loadComponentAsync=function(e){try{return e.init()}catch(e){this.trackErrorMetric(e)}},n}(window,document,e.defaults),void 0===e)e={};if(e.nextPageMetricQueueService=function(e,t,i){var n={};n.storageKey="__io_next_page_metrics"+i.projectId,n._getQueue=function(){return t.parseJSONSafe(e.localStorage.getItem(this.storageKey))||[]},n.insertUpdate=function(i,n,r){if(t.getStorageStatusLocal()&&r){var o,s,a=this._getQueue();for(o=0;o<a.length;o++)a[o].key===r&&(a[o].name=i,a[o].data=n,s=!0);s||a.push({name:i,data:n,key:r}),e.localStorage.setItem(this.storageKey,JSON.stringify(a))}},n.insert=function(i,n,r){if(t.getStorageStatusLocal()){var o=this._getQueue();o.push({name:i,data:n,key:r||void 0}),e.localStorage.setItem(this.storageKey,JSON.stringify(o))}},n.clearBySending=function(){if(t.getStorageStatusLocal()){var i,n=this._getQueue();for(i=0;i<n.length;i++)t.deferMetricToSendInBatch(n[i].name,n[i].data);e.localStorage.removeItem(this.storageKey)}};var r={};return(r=n).init=function(){this.clearBySending()},r}(window,e.helpers,e.defaults),void 0===e)e={};if(e.configParser=function(e,t,i){var n={appendDefaultSlices:function(t,n){if(i.decodeURIrecursively(t.url)!==i.decodeURIrecursively(e.location.pathname)&&(t.url_real=e.location.pathname),!t.reference_time){var r=i.getReferenceTimeFromBlock('[data-io-article-url="'+n+'"]');r&&(t.reference_time=r)}var o=i.getLastestHeadlineTestIds();o&&(t.ab_block_id=o.blockId,t.ab_headline_id=o.headlineId),t.user_agent=e.navigator.userAgent,t.pr=i.getPreviousURI(),t.device=i.getDeviceName(),t.browser_version=i.getBrowserNameAndVersion(),t.browser=i.getBrowserName(),t.referrer=i.getReferrer(null,n),t.first_source=i.getReferrerFirst(),t.depth=i.getDepth(),t.user_type=i.getUserType(),t.user_id=i.getUserId()},transformSliceValue:function(e){return String(e).trim()},transformSliceValuePlural:function(e){var t,i,n=[];for(t=0;t<e.length;t++)(i=this.transformSliceValue(e[t]))&&-1===n.indexOf(i)&&n.push(i);return n.join("|")},getSlicesFromPageDescriptor:function(e){var t,n,r,o={};for(t in e)if(e.hasOwnProperty(t)&&(n=e[t])&&(n=i.identifyArray(n)?this.transformSliceValuePlural(n):this.transformSliceValue(n)))switch(t){case"page_url":o.url||(r=i.parseURL(n),o.domain=r.hostname,o.url=r.pathname);break;case"page_url_canonical":if("main"===e.page_type)break;r=i.parseURL(n),o.domain=r.hostname,o.url=r.pathname+r.search;break;case"page_title":o.page=n;break;case"page_type":"article"!==n||o.author||(o.author="No Author"),"main"===n&&(o.url="/");break;case"page_language":o.language=n;break;case"article_authors":"article"===e.page_type&&(o.author=n);break;case"article_categories":o.category=n;break;case"article_subcategories":o.sub_category=n;break;case"article_type":o.type_article=n;break;case"article_word_count":o.reference_time=i.getReferenceTimeFromWordsCount(n);break;case"article_publication_date":o.pub_date=n;break;default:o[t]=n}return o.page||(o.page="No Title"),o},getLatestConfig:function(){if("[object Object]"===String(e._io_config)){var t=i.getSortedSemver(i.getEnumerableKeys(e._io_config)).pop();return e._io_config[t]}}},r={init:function(e){return this.data=e,this},getSlices:function(){var e=n.getSlicesFromPageDescriptor(this.data);return n.appendDefaultSlices(e,this.data.page_url,e.url),e},defaultTypes:["main","article","default"],optInPageTypes:["video_embed"],getPageType:function(){var e=String(this.data.page_type).trim();return-1==this.defaultTypes.indexOf(e)&&-1!==this.optInPageTypes.indexOf(e)&&(e="default"),e}};return n.PageDescriptor=r,n.getPageDescriptor=function(t,n){n||(n=this.PageDescriptor.defaultTypes);var o=this.getLatestConfig();if(o){var s,a,c,l=t?i.parseURL(t).pathname:e.location.pathname;"/"!==(l=i.decodeURIrecursively(l)).slice(-1)&&(l+="/");for(var d=o.length;d--;)(s=o[d]).page_url&&(a=i.parseURL(s.page_url).pathname,"/"!==(a=i.decodeURIrecursively(a)).slice(-1)&&(a+="/"),a===l&&(c=i.createObject(r).init(s)));return c?-1===n.indexOf(c.getPageType())?null:c:null}},n.bindOnPageDescriptorAppearance=function(t,n,r){var o=this.getPageDescriptor(t,r);if(o)n(o);else var s=i.setIntervalSafe(e,function(){var i=this.getPageDescriptor(t,r);i&&(e.clearInterval(s),n(i))}.bind(this),100)},n}(window,document,e.helpers),void 0===e)e={};if(e.uniqueTracker=function(e,t,i,n){var r={init:function(){n.bindOnPageDescriptorAppearance(e.location.href,function(n){var r="__io_unique_"+t.projectId,o=document.cookie.match(new RegExp(r+"=([^;]+)"));if(-1==document.cookie.indexOf(r+"=")||o&&o[1]&&o[1]!=(new Date).getDate()){var s=new Date((new Date).setYear((new Date).getFullYear()+1)).toUTCString(),a=r+"="+(new Date).getDate()+"; expires="+s+"; path=/";e.parseInt(t.projectUniquesBySuperdomain,10)&&(a+=";domain=."+e.location.hostname.replace(/^www\./,"")),document.cookie=a,i.sendMetric("uniques_instantly",n.getSlices())}})}};return r}(window,e.defaults,e.helpers,e.configParser),void 0===e)e={};if(e.holdingUniqueTracker=function(e,t,i){var n={setStateCookie:function(i){var n=i+"=1; expires="+new Date((new Date).setHours(24,0,0,0)).toUTCString()+"; path=/";e.parseInt(t.projectUniquesBySuperdomain,10)&&(n+=";domain=."+e.location.hostname.replace(/^www\./,"")),document.cookie=n},sendHoldingMetric:function(e){var n="https://"+t.trackingHost+"/?k[]="+t.holdingId+":uniques_holding&s="+t.projectSignature+"&__io="+(e||i.getUserId())+"&"+Date.now();i.sendGetRequest(n)},init:function(){if(t.holdingHash&&t.holdingId&&-1===document.cookie.indexOf("__io_uh")&&(this.setStateCookie("__io_uh"),!document.getElementById("io-holdingjs"))){var n="https://"+t.trackingHost+"/uniques/?current="+(new Date).getDate()+"&holding="+t.holdingHash+"&hash_user="+i.getUserId()+"&"+Date.now();i.injectScriptBySrc(n,"io-holdingjs");var r=i.setIntervalSafe(e,function(){if(void 0!==e._io_uniques_holing_params){if(e.clearInterval(r),"track"===e._io_uniques_holing_params)return this.sendHoldingMetric();var i=e._io_uniques_holing_params.match(new RegExp("(?:^|; )"+("io_uid"+t.holdingHash).replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g,"\\$1")+"=([^;]*)")),n=e._io_uniques_holing_params.match(new RegExp("(?:^|; )"+"io_user_hash".replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g,"\\$1")+"=([^;]*)"));(i&&i[1]&&i[1]!=(new Date).getDate()||!i)&&this.sendHoldingMetric(n[1])}}.bind(this),250)}}};return n}(window,e.defaults,e.helpers),void 0===e)e={};if(e.visitTracker=function(e,t,i,n){var r={init:function(){var r="__io_visit_"+i.projectId;n.bindOnPageDescriptorAppearance(e.location.href,function(n){if(-1===document.cookie.indexOf(r)){var o=e.parseInt(i.projectVisitsDuration,10),s=r+"=1; expires="+new Date((new Date).getTime()+60*o*1e3).toUTCString()+";  path=/";e.parseInt(i.projectVisitsBySuperdomain,10)&&(s+=";domain=."+e.location.hostname.replace(/^www\./,"")),document.cookie=s,t.sendMetric("visits_instantly",n.getSlices(),null,!0)}})}};return r}(window,e.helpers,e.defaults,e.configParser),void 0===e)e={};if(e.viewTracker=function(e,t,i){var n={listenForConfigAndPageMatchOnce:function(){i.bindOnPageDescriptorAppearance(e.location.href,function(e){var i=e.getSlices();t.sendMetric("pageviews",i)}.bind(this))},listenForPageChnages:function(){t.bindOnUrlChange(this.listenForConfigAndPageMatchOnce.bind(this))},init:function(){this.listenForConfigAndPageMatchOnce(),this.listenForPageChnages()}};return n}(window,e.helpers,e.configParser),void 0===e)e={};if(e.readabilityTracker=function(e,t,i,n){var r={getScrollPercent:function(){var t=this.element.getBoundingClientRect().bottom-this.element.getBoundingClientRect().top;if(!t)return 0;var i=(e.innerHeight-this.element.getBoundingClientRect().bottom)/t,n=i>0?0:i<-1?-1:i;return n=100-Math.abs(Math.floor(100*n)),Math.abs(n)},sendMetric:function(e){n.bindOnPageDescriptorAppearance(this.url,function(t){i.sendMetric(e,t.getSlices())})},tryToTrackReadabilityAndUnbind25:function(){this.getScrollPercent()<=25||(t.removeEventListener("scroll",this.boundHandles.tryToTrackReadabilityAndUnbind25),this.sendMetric("read_top"))},tryToTrackReadabilityAndUnbind50:function(){this.getScrollPercent()<=50||(t.removeEventListener("scroll",this.boundHandles.tryToTrackReadabilityAndUnbind50),this.sendMetric("read_middle"))},tryToTrackReadabilityAndUnbind75:function(){this.getScrollPercent()<=75||(t.removeEventListener("scroll",this.boundHandles.tryToTrackReadabilityAndUnbind75),this.sendMetric("read_bottom"))},tryToTrackReadabilityAndUnbind95:function(){this.getScrollPercent()<=95||(t.removeEventListener("scroll",this.boundHandles.tryToTrackReadabilityAndUnbind95),this.sendMetric("read_finished"))},bindEvents:function(){this.boundHandles={},this.boundHandles.tryToTrackReadabilityAndUnbind25=i.addEventListenerSafe(t,"scroll",this.tryToTrackReadabilityAndUnbind25.bind(this)),this.boundHandles.tryToTrackReadabilityAndUnbind50=i.addEventListenerSafe(t,"scroll",this.tryToTrackReadabilityAndUnbind50.bind(this)),this.boundHandles.tryToTrackReadabilityAndUnbind75=i.addEventListenerSafe(t,"scroll",this.tryToTrackReadabilityAndUnbind75.bind(this)),this.boundHandles.tryToTrackReadabilityAndUnbind95=i.addEventListenerSafe(t,"scroll",this.tryToTrackReadabilityAndUnbind95.bind(this))},init:function(e){this.element=e,this.url=e.getAttribute("data-io-article-url"),this.bindEvents()}},o={trackExistingArticles:function(){var e,n,o=t.querySelectorAll("[data-io-article-url]");for(e=0;e<o.length;e++)(n=i.createObject(r)).init(o[e]),this.instances.push(n)},listenForNewArticles:function(){i.bindOnElementInsertion("[data-io-article-url]",function(e){var t=i.createObject(r);t.init(e),this.instances.push(t)}.bind(this))},init:function(){this.instances=this.instances||[],this.trackExistingArticles(),this.listenForNewArticles()}};return{init:function(){o.init()},ArticleReadabilityTracker:o,ArticleToRead:r}}(window,document,e.helpers,e.configParser),void 0===e)e={};if(e.timeTracker=function(e,t,i,n){var r={init:function(){i.setIntervalSafe(e,function(){("function"!=typeof t.hasFocus||t.hasFocus())&&(t.hidden||n.bindOnPageDescriptorAppearance(e.location.href,function(e){var t=e.getSlices();t.url&&i.sendMetric("time",{url:t.url,ab_block_id:t.ab_block_id,ab_headline_id:t.ab_headline_id})}))},1e4)}};return r}(window,document,e.helpers,e.configParser),void 0===e)e={};if(e.videoTracker=function(e,t,i,n,r,o){var s={init:function(e){this.element=e,this.boundFunctions={},this.viewUrl=void 0,this.slices={title:t.title,type:void 0,time_int:void 0,reference_time:void 0},this.state={isViewed:!1,isStarted:!1,isFinished:!1,isLeft:!1,isReadyForTracking:!1},this.isEmbedded=!1,this.setEmbeddedFlag()},saveViewUrl:function(){this.viewUrl=e.location.href},trackView:function(){this.state.isViewed||(this.state.isViewed=!0,this.setSlicesFromConfig(function(){i.sendMetric("video_view",this.slices)}.bind(this)))},trackStart:function(){this.state.isStarted||(this.state.isStarted=!0,this.setSlicesFromConfig(function(){i.sendMetric("video_started",this.slices)}.bind(this)))},trackEnd:function(){this.state.isFinished||(this.state.isFinished=!0,this.state.isLeft=!0,this.setSlicesFromConfig(function(){i.sendMetric("video_watch_finished",this.slices),i.sendMetric("video_left",this.slices)}.bind(this)))},trackExitBeforeEnd:function(){this.state.isLeft||(this.state.isLeft=!0,this.setSlicesFromConfig(function(){i.getStorageStatusLocal()?o.insert("video_left",this.slices):i.sendMetric("video_left",this.slices)}.bind(this)))},setEmbeddedFlag:function(){r.bindOnPageDescriptorAppearance(this.viewUrl,function(e){"video-embed"===e.getPageType()&&(this.isEmbedded=!0)}.bind(this),["main","article","default","video-embed"])},setSlicesFromConfig:function(e){r.bindOnPageDescriptorAppearance(this.viewUrl,function(t){var i,n=t.getSlices();for(i in n)n.hasOwnProperty(i)&&(this.slices.hasOwnProperty(i)||(this.slices[i]=n[i]));e()}.bind(this),["main","article","default","video-embed"])},setSlicesEmbed:function(){var n,r;if(n=t.referrer){var o=n;o=i.decodeURIrecursively(o),o=i.parseURL(o),this.slices.domain=o.hostname,this.slices.url=o.pathname,this.slices.page=o.hostname+o.pathname}else this.slices.domain=e.location.hostname,this.slices.url=e.location.pathname,this.slices.page=e.top===e?"Direct Page Open":"Other Embed Methods";try{r=e.top.document.referrer}catch(e){}r&&(this.slices.referrer=i.getReferrer(r))},isInView:function(){var i=this.element.getBoundingClientRect(),n={left:i.left>=0&&i.left<=(e.innerWidth||t.documentElement.clientWidth),right:i.right>=0&&i.left<=(e.innerWidth||t.documentElement.clientWidth),top:i.top>=0&&i.top<=(e.innerHeight||t.documentElement.clientHeight),bottom:i.bottom>=0&&i.bottom<=(e.innerHeight||t.documentElement.clientHeight)};return(n.left||n.right)&&(n.top||n.bottom)}},a=i.createObject(s);a.elementSelector=n.projectVideosWithoutMarkup?"video[src], video source":"video[src][data-io-video-title], video[data-io-video-title] source",a.bindEvents=function(t){this.isInView()&&(this.saveViewUrl(),this.setSlices(),this.trackView()),this.boundFunctions.listenerViewIntervalId=i.setIntervalSafe(e,function(){this.state.isViewed?e.clearInterval(this.boundFunctions.listenerViewIntervalId):this.isInView()&&(this.saveViewUrl(),this.setSlices(),this.trackView())}.bind(this)),this.boundFunctions.listenerStart=i.addEventListenerSafe(this.element,"timeupdate",function(){this.state.isViewed&&(this.setSlices(),this.trackStart(),this.element.removeEventListener("timeupdate",this.boundFunctions.listenerStart))}.bind(this)),this.boundFunctions.listenerFinish=i.addEventListenerSafe(this.element,"ended",function(){this.state.isStarted&&(this.setSlices(),this.trackEnd(),this.element.removeEventListener("ended",this.boundFunctions.listenerFinish))}.bind(this)),this.boundFunctions.listenerLeave=i.addEventListenerSafe(e,"beforeunload",function(){this.state.isStarted&&(this.state.isFinished||this.setSlices(),this.trackExitBeforeEnd(),e.removeEventListener("beforeunload",this.boundFunctions.listenerLeave))}.bind(this))},a.setSlicesVideoJs=function(){var t,n,r;-1!==(this.element.getAttribute("class")||"").indexOf("vjs-tech")&&(this.slices.type="Video JS","function"==typeof e.videojs&&(t=e.videojs(this.element),n=i.getDeepPropertySafe(t,["mediainfo","id"]),this.slices.video_id=n?"videojs"+n:this.slices.video_id,this.element.attributes.getNamedItem("data-io-video-title")||(r=i.getDeepPropertySafe(t,["mediainfo","name"]),this.slices.title=r||this.slices.title)))},a.setSlicesJwPlayer=function(){if("function"==typeof jwplayer&&"function"==typeof jwplayer().getContainer&&"function"==typeof jwplayer().getContainer().querySelector&&jwplayer().getContainer().querySelector(this.elementSelector)==this.element){this.slices.type="jwplayer";var e="string"!=typeof jwplayer.version||jwplayer.version[0]>6,t=i.getDeepPropertySafe(jwplayer(),["config","image"]);if(e){this.slices.reference_time=i.getDeepPropertySafe(jwplayer().getConfig(),["playlistItem","duration"]),this.slices.time_int=i.getDeepPropertySafe(jwplayer().getConfig(),["position"]);var n=i.getDeepPropertySafe(jwplayer().getConfig(),["playlistItem","mediaid"])||i.getDeepPropertySafe(jwplayer().getConfig(),["playlistItem","sources","0","file"]);n&&(this.slices.video_id=n),t=i.getDeepPropertySafe(jwplayer().getConfig(),["playlistItem","images","0"])||i.getDeepPropertySafe(jwplayer().getConfig(),["playlistItem","image"])||i.getDeepPropertySafe(jwplayer().getConfig(),["image"]);var r=i.getDeepPropertySafe(jwplayer().getConfig(),["playlistItem","title"]);r&&(this.slices.title=r)}t&&(this.slices.image=t.split("//").pop())}},a.setSlicesVideoId=function(){var e=this.element.src||(this.element.getElementsByTagName("source")[0]||{}).src;e&&0===e.indexOf("blob:")&&this.element.attributes.getNamedItem("data-io-video-title")?this.slices.video_id=this.slices.title:e&&(e=i.parseURL(e),this.slices.video_id=e.hostname+e.pathname)},a.setSlices=function(){if(this.slices.type="html5",this.element.duration&&(this.slices.reference_time=this.element.duration),this.element.currentTime&&(this.slices.time_int=this.element.currentTime),this.element.poster){var e=i.parseURL(this.element.poster);this.slices.image=e.href.split(e.protocol).pop().slice("2")}this.element.attributes.getNamedItem("data-io-video-title")?this.slices.title=this.element.attributes.getNamedItem("data-io-video-title").value||"No Title":this.slices.title=t.title||"No Title",this.setSlicesVideoId(),this.setSlicesVideoJs(),this.setSlicesJwPlayer(),this.isEmbedded&&this.setSlicesEmbed()};var c=i.createObject(s);c.elementSelector='iframe[src*="//www.youtube.com/embed"]',c.setSlices=function(){this.slices.type="youtube",this.isEmbedded&&this.setSlicesEmbed()},c.enableJsApi=function(){var t=-1!==this.element.src.indexOf("enablejsapi=1"),n=-1!==this.element.src.indexOf("origin=");t&&n&&this.element.dispatchEvent(new Event("ioVideoApiEnabled"));var r=i.addEventListenerSafe(this.element,"load",function(){this.element.dispatchEvent(new Event("ioVideoApiEnabled")),this.element.removeEventListener("load",r)}.bind(this));if(!t||!n){var o=i.parseURL(this.element.src),s=o.protocol+"//"+o.host+o.pathname+(o.search?o.search:"?")+(t?"":"&enablejsapi=1")+(n?"":"&origin="+i.encodeURIonce(e.location.origin))+(o.hash?"#"+o.hash:"");this.element.src=s}},c.getPlayerId=function(){var e=(this.element.src.match(/^.*(?:(?:youtu\.be\/|v\/|vi\/|u\/\w\/|embed\/)|(?:(?:watch)?\?v(?:i)?=|\&v(?:i)?=)|(?:list=))([^#\&\?]*).*/)||[])[1],t=i.getSearchParam("widgetid",this.element.src),n=this.element.id?(this.element.id.match(/widget([0-9]+)$/)||[])[1]-1:null;return t||n||e},c.processAnEvent=function(t){if(-1!==t.origin.indexOf("//www.youtube.com")){var n,r=i.parseJSONSafe(t.data)||{},o=r.info||{},s=i.getDeepPropertySafe(r,["info","videoData","video_id"]),a=r.id||s,c=i.getDeepPropertySafe(r,["info","videoData","title"]);a==this.getPlayerId()&&(o.duration&&(this.slices.reference_time=o.duration),o.currentTime&&(this.slices.time_int=o.currentTime),c&&(this.slices.title=c),s&&(this.slices.video_id=s,this.slices.image="img.youtube.com/vi/"+s+"/0.jpg"),this.slices.title&&this.slices.video_id&&(this.state.isReadyForTracking=!0,this.state.isViewed&&!this.state.isStarted&&o.currentTime&&this.trackStart(),n=o.currentTime&&e.parseInt(o.currentTime,10)===e.parseInt(this.slices.reference_time,10),this.state.isViewed&&this.state.isStarted&&!this.state.isFinished&&n&&this.trackEnd()))}},c.bindEvents=function(){this.boundFunctions.listenerViewIntervalId=i.setIntervalSafe(e,function(){this.isInView()&&this.state.isReadyForTracking&&(e.clearInterval(this.boundFunctions.listenerViewIntervalId),this.saveViewUrl(),this.setSlices(),this.trackView())}.bind(this)),this.boundFunctions.listenerApiEnabled=i.addEventListenerSafe(this.element,"ioVideoApiEnabled",function(){i.messageFrameWindow(this.element,{event:"listening",id:this.getPlayerId(),channel:"widget"}),this.element.removeEventListener("ioVideoApiEnabled",this.boundFunctions.listenerApiEnabled)}.bind(this)),this.boundFunctions.listenerApiEvents=i.addEventListenerSafe(e,"message",function(t){this.processAnEvent(t),this.state.isFinished&&(e.removeEventListener("beforeunload",this.boundFunctions.listenerLeave),e.removeEventListener("message",this.boundFunctions.listenerApiEvents))}.bind(this)),this.boundFunctions.listenerLeave=i.addEventListenerSafe(e,"beforeunload",function(){this.state.isLeft?e.removeEventListener("beforeunload",this.boundFunctions.listenerLeave):this.state.isStarted&&this.trackExitBeforeEnd()}.bind(this))};var l=i.createObject(s);l.elementSelector='iframe[src*="//player.vimeo.com/video"]',l.getVideoId=function(){return(i.decodeURIrecursively(this.element.src).match(/\/video\/(\d+)/)||[]).pop()},l.setSlices=function(){var e=this.getVideoId();this.slices.type="vimeo",this.slices.video_id=this.slices.type+e,this.slices.image="i.vimeocdn.com/video/"+e+"_480.jpg",this.isEmbedded&&this.setSlicesEmbed()},l.getPlayerId=function(){return i.getSearchParam("player_id",this.element.src)},l.enableJsApi=function(){if(-1===this.element.src.indexOf("player_id=")){var e=i.addEventListenerSafe(this.element,"load",function(){this.element.dispatchEvent(new Event("ioVideoApiEnabled")),this.element.removeEventListener("load",e)}.bind(this)),t=i.parseURL(this.element.src),n=t.protocol+"//"+t.host+t.pathname+(t.search?t.search:"?")+"&player_id="+this.getVideoId()+(t.hash?"#"+t.hash:"");this.element.src=n}else this.element.dispatchEvent(new Event("ioVideoApiEnabled"))},l.processAnEvent=function(t){if(-1!=t.origin.indexOf("//player.vimeo.com")){var n,r=i.parseJSONSafe(t.data);r&&r.player_id==this.getPlayerId()&&("getVideoTitle"===r.method&&r.value&&(this.slices.title=r.value),"getDuration"===r.method&&r.value&&(this.slices.reference_time=r.value),this.slices.title&&this.slices.reference_time&&(this.state.isReadyForTracking=!0,"playProgress"===r.event&&r.data&&(this.slices.reference_time=r.data.duration,this.slices.time_int=r.data.seconds,this.state.isViewed&&!this.state.isStarted&&this.trackStart(),n=r.data.duration&&r.data.seconds&&e.parseInt(r.data.duration,10)===e.parseInt(r.data.seconds,10),this.state.isViewed&&this.state.isStarted&&!this.state.isFinished&&n&&this.trackEnd())))}},l.bindEvents=function(){this.boundFunctions.listenerViewIntervalId=i.setIntervalSafe(e,function(){this.isInView()&&this.state.isReadyForTracking&&(e.clearInterval(this.boundFunctions.listenerViewIntervalId),this.saveViewUrl(),this.setSlices(),this.trackView())}.bind(this)),this.boundFunctions.listenerApiEnabled=i.addEventListenerSafe(this.element,"ioVideoApiEnabled",function(){i.messageFrameWindow(this.element,{method:"getVideoTitle"}),i.messageFrameWindow(this.element,{method:"getDuration"}),i.messageFrameWindow(this.element,{method:"addEventListener",value:"playProgress"}),this.element.removeEventListener("ioVideoApiEnabled",this.boundFunctions.listenerApiEnabled)}.bind(this)),this.boundFunctions.listenerApiEvents=i.addEventListenerSafe(e,"message",function(t){this.processAnEvent(t),this.state.isFinished&&(e.removeEventListener("beforeunload",this.boundFunctions.listenerLeave),e.removeEventListener("message",this.boundFunctions.listenerApiEvents))}.bind(this)),this.boundFunctions.listenerLeave=i.addEventListenerSafe(e,"beforeunload",function(){this.state.isLeft?e.removeEventListener("beforeunload",this.boundFunctions.listenerLeave):this.state.isStarted&&this.trackExitBeforeEnd()}.bind(this))};var d={};return d.VideoGeneric=s,d.VideoYoutube=c,d.VideoHTML5=a,d.VideoVimeo=l,d.trackVideosHTML5=function(){var e=i.createObject(i.ElementObserver);e.init(this.VideoHTML5.elementSelector),e.elementsFiltered=[],e.start(function(t){for(;t&&"VIDEO"!==t.nodeName;)t=t.parentElement;if(t&&-1===e.elementsFiltered.indexOf(t)){e.elementsFiltered.push(t);var n=i.createObject(this.VideoHTML5);n.init(t),n.bindEvents()}}.bind(this))},d.trackVideosYoutube=function(){var e=i.createObject(i.ElementObserver);e.init(this.VideoYoutube.elementSelector),e.start(function(e){var t=i.createObject(this.VideoYoutube);t.init(e),t.bindEvents(),t.enableJsApi()}.bind(this))},d.trackVideosVimeo=function(){var e=i.createObject(i.ElementObserver);e.init(this.VideoVimeo.elementSelector),e.start(function(e){var t=i.createObject(this.VideoVimeo);t.init(e),t.bindEvents(),t.enableJsApi()}.bind(this))},d.init=function(){this.trackVideosHTML5(),this.trackVideosYoutube(),this.trackVideosVimeo()},d}(window,document,e.helpers,e.defaults,e.configParser,e.nextPageMetricQueueService),void 0===e)e={};if(e.widgetLoader=function(e,t,i,n,r){var o={reload:function(){this.clearDOM(),this.insertIntoDOM(),n.bindOnPageDescriptorAppearance(e.location.href,function(e){_io_widget.configSlices=e.getSlices(),_io_widget.configArticleBlockUrl=e.data.page_url,_io_widget.start()}.bind(this))},clearDOM:function(){for(var e=t.querySelectorAll('div[data-io-id="_io_widget_element"], script[data-io-id="_io_widget_element"]'),i=0;i<e.length;i++)e[i].remove()},insertIntoDOM:function(){var e=t.createElement("div"),i=t.createElement("script");i.type="text/javascript",i.text=this.data.widget.js,e.style.position="static",i.id="_io_widget_element_div",i.dataset.ioId=e.dataset.ioId="_io_widget_element",e.innerHTML=this.data.widget.html,t.body.appendChild(e),t.body.appendChild(i)},startWidget:function(e){this.clearDOM(),this.insertIntoDOM(),_io_widget.configSlices=e.getSlices(),_io_widget.configArticleBlockUrl=e.data.page_url,_io_widget.start(this.data.widget.type,this.data.widget.overall)},load:function(i,n,o){e._io_widget={id:n,hash:i};var s=new XMLHttpRequest,a=-1==t.cookie.indexOf("_io_widget_debug")?"https://widget.onthe.io":"https://dev_widget.onthe.io",c={id:n,hash:i,title:t.title,force_type:"main_new",path:e.location.pathname+e.location.search};s.open("POST",a,!0),s.setRequestHeader("Content-type","application/x-www-form-urlencoded"),s.onreadystatechange=function(){if(4==s.readyState&&200==s.status){var i=JSON.parse(s.responseText);if(!i)return;this.data=i;var n=r.setIntervalSafe(e,function(){t.body&&(e.clearInterval(n),this.startWidget(o))}.bind(this),1e3)}}.bind(this);var l="";for(var d in c)l+=d+"="+encodeURIComponent(c[d])+"&";s.send(l)},init:function(){var o=(e.location.hash.match(/^#client-widget-([a-z0-9_]{32})$/i)||[]).pop(),s=(t.cookie.match(/_io_widget=([a-z0-9_]{32})/i)||[]).pop(),a=o||s;if(a){var c=new Date((new Date).setYear((new Date).getFullYear()+1)).toUTCString(),l=e.location.hostname.replace(/^www\./i,""),d=e.location.pathname;if(t.cookie="_io_widget="+a+"; expires="+c+"; domain="+l+"; path="+d,o){var u=e.location.protocol+"//"+e.location.hostname+e.location.pathname+e.location.search;history.pushState("",t.title,u)}n.bindOnPageDescriptorAppearance(e.location.href,function(e){this.load(a,i.projectId,e)}.bind(this)),r.bindOnUrlChange(this.reload.bind(this))}}};return o}(window,document,e.defaults,e.configParser,e.helpers),void 0===e)e={};if(e.instantArticlesTracker=function(e,t){var i={trackPageviews:function(){var i=t.parseURL(e.ia_document.shareURL);t.sendMetric("pageviews_instant",{url:i.pathname,domain:i.hostname,depth:1,referrer:"fb_ia",device:"smart (Other)",user_id:t.getUserId()})},trackTime:function(){t.setIntervalSafe(e,function(){t.sendMetric("time",{url:t.parseURL(e.ia_document.shareURL).pathname})},1e4)},init:function(){if(e.ia_document)return this.trackPageviews(),!0}};return i}(window,e.helpers),void 0===e)e={};if(e.ctrTracker=function(e,t,i){var n={listenForClicks:function(e,t,n,r){i.addEventListenerSafe(t,"click",function(){-1===n.indexOf(JSON.stringify(e.slices_object))&&(n.push(e.slices),-1!=r.indexOf(JSON.stringify(e.slices_object))&&i.sendMetric("io_block_click",e.slices_object))})}};return n.metricDomain=e.location.hostname,n.startTracking=function(){function r(e,t){for(var i=e.parentElement,n=Element.prototype.matches||Element.prototype.matchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector||Element.prototype.oMatchesSelector||Element.prototype.webkitMatchesSelector||function(e){for(var t=(this.document||this.ownerDocument).querySelectorAll(e),i=t.length;--i>=0&&t.item(i)!==this;);return i>-1};i;){if(n.call(i,t))return i;i=i.parentElement}return null}function o(o){var s,a,c,l,d="";if(c=r(s=o.attributes.getNamedItem("data-vr-contentbox")?o:r(o,"[data-vr-contentbox]"),"[data-vr-zone]"),a=s.attributes.getNamedItem("data-vr-title")?s:r(s,"[data-vr-title]"),(l=s.attributes.getNamedItem("data-vr-headline")?s:s.querySelector("[data-vr-headline]"))?d=i.getTextFromElement(l):a&&(d=a.attributes.getNamedItem("data-vr-title").value),(d=d.replace(/\s+/g," ").trim().slice(0,60).trim())||(d=i.getTextFromElement(s)),d=d.replace(/\s+/g," ").trim().slice(0,60).trim()){var u={block_pos:s?(s.getAttribute("data-vr-contentbox")||"").trim():"",block_zon:c?(c.getAttribute("data-vr-zone")||"").trim():"",block_url:o.pathname,block_domain:o.hostname,block_global_pos:o.getAttribute("data-vr-global-position").trim(),block_title:d,url:e.location.pathname,page:t.title,domain:n.metricDomain,device:i.getDeviceName()};return{slices_object:u,zone:u.block_zon}}}var s=t.querySelectorAll('[data-vr-zone] [data-vr-contentbox]:not([data-vr-contentbox=""]) a:not([href="#"]):not([href="/"]):not(.io-ignore), [data-vr-zone] a[data-vr-contentbox]:not([data-vr-contentbox=""]):not([href="#"]):not([href="/"]):not(.io-ignore), a[data-vr-zone][data-vr-contentbox]:not([data-vr-contentbox=""]):not([href="#"]):not([href="/"]):not(.io-ignore)');if(s){!function(e){var i;if(null===t.querySelector("[data-vr-global-position]"))for(i=0;i<e.length;i++)e[i].setAttribute("data-vr-global-position",i+1)}(s);var a,c,l,d,u=[],h=[],f=[],g=[],p=!1;for(a=0;a<s.length;a++)0!==(l=(c=s[a]).getBoundingClientRect().top)&&(d=o(c))&&(f.push({slices_object:d.slices_object,top:l-e.innerHeight,track_zon:d.zone}),this.listenForClicks(d,c,h,u));_();var m=location.pathname,v=i.setIntervalSafe(e,function(){m===location.pathname?_():clearInterval(v)},150)}function _(){for(var e in f)f[e].top<=-t.body.getBoundingClientRect().top&&(-1===u.indexOf(f[e].slices_object)&&(u.push(JSON.stringify(f[e].slices_object)),i.deferMetricToSendInBatch("io_block_view",f[e].slices_object)),-1===g.indexOf(f[e].track_zon)&&(g.push(f[e].track_zon),i.deferMetricToSendInBatch("io_block_view_sum",f[e].slices_object)),p||(p=!0,i.deferMetricToSendInBatch("io_block_view_all",f[e].slices_object)),delete f[e])}},n.init=function(){if(t.querySelectorAll("[data-vr-zone]").length)this.startTracking();else{var e=!1;i.bindOnElementInsertion("[data-vr-zone]",function(){e||(e=!0,this.startTracking())}.bind(this))}},n}(window,document,e.helpers),void 0===e)e={};if(e.onClickViewTracker=function(e,t,i,n){var r={bindOneElement:function(t){i.addEventListenerSafe(t,"click",function(){n.bindOnPageDescriptorAppearance(e.location.href,function(e){i.sendMetric("pageviews",e.getSlices())})})},bindExistingElemets:function(i){var n=t.querySelectorAll(i);n=e.Array.prototype.slice.call(n);for(var r=0;r<n.length;r++)this.bindOneElement(n[r])},listenForNewElements:function(e){i.bindOnElementInsertion(e,function(e){this.bindOneElement(e)}.bind(this))},init:function(){"undefined"!=typeof customCode_onClickViewSelector&&(this.bindExistingElemets(customCode_onClickViewSelector),this.listenForNewElements(customCode_onClickViewSelector))}};return r}(window,document,e.helpers,e.configParser),void 0===e)e={};if(e.subscriptionsTracker=function(e,t,i){var n={defaultBlockSelector:".io-subscription-block",defaultButtonsSelector:".io-subscription-button",alreadyViewed:!1,isScrolledIntoView:function(t){var i=t.getBoundingClientRect(),n=i.top,r=i.bottom;return n>=0&&r<=e.innerHeight},waitForSubscriptionBlockView:function(e){var i=document.querySelector(this.defaultBlockSelector);if(!i)return!1;n.isScrolledIntoView(i)&&!this.alreadyViewed&&(this.alreadyViewed=!0,t.sendMetric("subscription_button_view",e.getSlices()))},init:function(){i.bindOnPageDescriptorAppearance(e.location.href,function(e){t.addEventListenerSafe(document,"scroll",function(){n.waitForSubscriptionBlockView(e)}),t.bindOnElementInsertion(n.defaultButtonsSelector,function(i){t.addEventListenerSafe(i,"click",function(){t.sendMetric("subscription_button_click",e.getSlices());var i=e.getSlices().first_source?e.getSlices().first_source:e.getSlices().referrer,n=location.host.replace("www.","").replace("m.",""),r=new Date((new Date).setHours(720,0,0,0)).toUTCString();t.setCookie("__io_subscription_source",i,r,"/",n),t.setCookie("__io_subscription_url",e.getSlices().url,r,"/",n)})});var i=document.querySelectorAll(n.defaultButtonsSelector);if(0==i.length)return!1;for(var r=0;r<i.length;r++){var o=i[r];t.addEventListenerSafe(o,"click",function(){t.sendMetric("subscription_button_click",e.getSlices());var i=e.getSlices().first_source?e.getSlices().first_source:e.getSlices().referrer,n=location.host.replace("www.","").replace("m.",""),r=new Date((new Date).setHours(720,0,0,0)).toUTCString();t.setCookie("__io_subscription_source",i,r,"/",n),t.setCookie("__io_subscription_url",e.getSlices().url,r,"/",n)})}})}};return n}(window,e.helpers,e.configParser),void 0===e)e={};e.previousPageWatcher=function(e,t,i){var n={listenForConfigAndPageMatchOnce:function(){i.bindOnPageDescriptorAppearance(e.location.href,function(e){var i=e.getSlices();t.setPreviousURI(i.url)}.bind(this))},listenForPageChnages:function(){t.bindOnUrlChange(this.listenForConfigAndPageMatchOnce.bind(this))},init:function(){"object"!=typeof e.__io&&(e.__io={}),e.__io.isPreviousPageWatcherInitialized||(e.__io.isPreviousPageWatcherInitialized=!0,i?(this.listenForConfigAndPageMatchOnce(),this.listenForPageChnages()):(t.setPreviousURI(e.location.pathname),t.bindOnUrlChange(function(){t.setPreviousURI(e.location.pathname)})))}};return n}(window,e.helpers,e.configParser);try{if(function(e){if(-1!==window.location.pathname.indexOf("/video/embed/")&&(window._io_config=window._io_config||{},window._io_config["0.2.0"]=window._io_config["0.2.0"]||[],window._io_config["0.2.0"].push({page_url:window.location.href,page_url_canonical:window.location.href,page_title:document.title,page_type:"video-embed",page_language:"en"})),location.pathname.indexOf("/gallery/")>-1){var t=0,i=0;e.configParser.bindOnPageDescriptorAppearance(window.location.href,function(t){e.helpers.sendMetric("gallery_opened",t.getSlices())}),setInterval(function(){var n=document.querySelector("div.owl-item.active div.big_photo__img__full_screen"),r=document.querySelector("div.owl-item.active div.popup__gallery__slides__inside__item__photo img");n&&t!=n.getAttribute("data-number")&&(e.configParser.bindOnPageDescriptorAppearance(window.location.href,function(t){e.helpers.sendMetric("gallery_photo_viewed",t.getSlices())}),t=n.getAttribute("data-number")),r&&i!=r.getAttribute("src")&&(e.configParser.bindOnPageDescriptorAppearance(window.location.href,function(t){e.helpers.sendMetric("gallery_photo_viewed",t.getSlices())}),i=r.getAttribute("src"))},1e3);var n=[],r=setInterval(function(){(n=document.querySelectorAll("div.big_photos_list__inside:not(.owl-carousel) div.big_photo__img")).length>0&&(n=Array.prototype.slice.call(n),clearInterval(r))},1e3);setInterval(function(){if(n.length>0)for(var t=0;t<n.length;t++)n[t].getBoundingClientRect().top<window.innerHeight&&(e.configParser.bindOnPageDescriptorAppearance(window.location.href,function(t){e.helpers.sendMetric("gallery_photo_viewed",t.getSlices())}),n.splice(t,1))},1e3)}}(e))return}catch(t){e.helpers.trackErrorMetric(t)}if(e.helpers.loadComponentAsync(e.doubleLoadingDetector))return;if(e.helpers.loadComponentAsync(e.instantArticlesTracker))return;e.helpers.loadComponentAsync(e.previousPageWatcher),e.helpers.loadComponentAsync(e.nextPageMetricQueueService),e.helpers.loadComponentAsync(e.uniqueTracker),e.helpers.loadComponentAsync(e.holdingUniqueTracker),e.helpers.loadComponentAsync(e.visitTracker),e.helpers.loadComponentAsync(e.viewTracker),e.helpers.loadComponentAsync(e.readabilityTracker),e.helpers.loadComponentAsync(e.timeTracker),e.helpers.loadComponentAsync(e.videoTracker),e.helpers.loadComponentAsync(e.ctrTracker),e.helpers.loadComponentAsync(e.widgetLoader),e.helpers.loadComponentAsync(e.onClickViewTracker),e.helpers.loadComponentAsync(e.subscriptionsTracker)}catch(t){try{e.helpers.trackErrorMetric(t)}catch(e){}}var t}()}]);