
    window.__affadblc=window.__affadblc||{cmd:[]};window.affinityAdrecoveryConf=window.affinityAdrecoveryConf||{};window.__affadblc.cmd.push(function(){__affadblc.init({
"version":"1",
"servingFlag":true,
"domain":"telegraphindia.com",
"adunitPath":"/42115163,1088475/IP_telegraphindia.com_Both_Multisize_AdRecovery",
"isMultiSize":true,
"blockSizes":["109x70","156x102","1000x500","86x56","184x120"]
}
)});
    
window.googletag=window.googletag||{};window.googletag.cmd=window.googletag.cmd||[];(function(i,d,a){"use strict";i[a]=i[a]||{};i[a].cmd=i[a].cmd||[];var c={adunitPath:"",servingFlag:true,call_enableServices:true,hvr_rf_flg:"aff-adr",rf_flg:"aff-adrfr",smRfr:true,blRef:false,isMultiSize:false,defaultBlockSizes:["1x1"]};var o=-1<window.location.href.indexOf("adblc_debug=true"),l="",s=i.console||{},g={},r="desktop",f="v2.1";if(i[a].innerWidth<800){r="mob"}if(i[a].______ADBLOCK_RECOVERY_FLAG===undefined){i[a].______ADBLOCK_RECOVERY_FLAG=1}else{s.warn("Ad recovery script already injected !!");return}function u(){var e="";if(localStorage){try{e=localStorage.getItem("_sharedid")+""}catch(t){}}return e}function t(e){var t="script",n=d,o=n.createElement(t),i=n.getElementsByTagName(t)[0];o["async"]=1;o.src=e;i.parentNode.insertBefore(o,i)}function v(e){var o=[];var i=c.hasOwnProperty("blockSizes")?c.blockSizes.concat(c.defaultBlockSizes):c.defaultBlockSizes;e.getSizes().forEach(function(e){var t=[];if(e.width){t[0]=e.width;t[1]=e.height}else if(e.getWidth){t[0]=e.getWidth();t[1]=e.getHeight()}if(c.isMultiSize&&c.isMultiSize===true){var n=t.join("x");if(t[1]>=50&&i.includes(n)==false){g.log("Block Sizessss ::",i);g.log("Slot sizes ::",n);g.log("block list excluded");o.push(t)}}else{if(t[0]>=700){t=[728,90]}else{t=[300,250]}o=t}});return o}function h(e){var t=e.getSlotElementId();var n=[],o={};n=v(e);o={slt:e,sltDivId:t,sltSz:n};g.log("Existing Slot details ::",o);return o}function w(e){var t=d.getElementById(e);if(!t){var n="Slots element not found with id "+e;g.warn(n);throw n}if(window.getComputedStyle(t).display==="none"||window.getComputedStyle(t.parentNode).display==="none"){var n="div blocked with id "+e;g.warn(n);throw n}}function p(e,t){w(t);var n=window.googletag.destroySlots([e]);var o=n===true?" Slot destroyed ":" Slot not destroyed ";o=o+" for slot div id :: "+t;g.log(o);return o}function y(){var e=document.createElement("div");e.style.textAlign="left";e.style.padding="0px";e.style.margin="0px";e.style.position="relative";e.style.top="0px";e.style.left="0px";e.style.zIndex="100000";e.style.transition="opacity 1s ease-out 0s";e.style.opacity="1";e.style.cursor="pointer";e.style.transform="none";var t=document.createElement("span");t.style.display="block";t.style.background="rgba(255, 255, 255, 0.7)";t.style.height="fit-content";t.style.width="fit-content";t.style.top="0px";t.style.left="0px";t.style.color="#444";t.style.fontSize="10px";t.style.fontWeight="bold";t.style.fontFamily="sans-serif";t.style.lineHeight="normal";t.style.textDecoration="none";t.style.margin="0px";t.style.padding="6px";t.style.borderRadius="0 0 5px 0";t.style.position="absolute";t.textContent="Advertisement";e.appendChild(t);return e}function m(e,t){var n=d.getElementById(e);var o={};w(e);if(n){var i=y();var a=d.createElement("div");a.style.width=window.getComputedStyle(n).width;a.style.height=window.getComputedStyle(n).height;a.style.margin="auto";a.id="aff-div-"+(""+Math.random()).split(".")[1];e=a.id;a.setAttribute(c.hvr_rf_flg,"true");a.setAttribute(c.rf_flg,0);n.style.display="none";var l=n.parentNode;if(l){l.insertBefore(a,n)}var s=window.googletag.defineSlot(c.adunitPath,t,e);var r=s.addService(window.googletag.pubads());if(r){o="New slot created for slot div id "+e;g.log(o,r);if(c.call_enableServices){c.call_enableServices=false;window.googletag.enableServices()}window.googletag.display(e)}else{o="Oops something went wrong while creating new slot for slot div id "+e;g.warn(o,r)}}return o}function S(e){return;var t=u();var n="https://hblib.ph.affinity.com/lg?blc=1"+"&adunitPath="+encodeURI(c.adunitPath)+"&hs="+window.location.hostname+"&hr="+encodeURIComponent(window.location.href)+e+"&time="+Date.now()+"&dv="+r+"&uid="+t;if(window.location.href.indexOf("pbjs_debug=true")==-1){if(window.navigator.sendBeacon){window.navigator.sendBeacon(n)}else{(new Image).src=n}g.log(n)}}function b(e,t){if(e===void 0){e=""}if(t===void 0){t=false}var n=Date.now()*1e3+Math.random()*1e3;var o=n.toString(16).replace(/\./g,"").padEnd(14,"0");return"".concat(e).concat(o).concat(t?".".concat(Math.trunc(Math.random()*1e8).toString()):"")}function _(e,o){e.forEach(function(e){try{var t=p(e.slt,e.sltDivId);Object.assign(o[e.sltDivId],{DESLOT:1,msg:t})}catch(n){Object.assign(o[e.sltDivId],{DESLOT:0,msg:n})}});e.forEach(function(e){try{var t=m(e.sltDivId,e.sltSz);Object.assign(o[e.sltDivId],{INJSLOT:1,sts:1,msg:t})}catch(n){Object.assign(o[e.sltDivId],{INJSLOT:0,sts:0,msg:n})}});return o}function n(){function t(e){try{e()}catch(t){g.error(t)}}i[a].cmd.push=t;i[a].cmd.forEach(function(e){t(e)})}function E(){var e=document.getElementsByClassName("adTempText");var t=document.querySelectorAll(".adbox > div > span");if(e.length>0){g.log("Inmargin Advertisement hidden !!");for(var n=0;n<e.length;n++){e[n].style.visibility="hidden"}}if(t.length>0){t.forEach(function(e){if(e.textContent.toLowerCase()=="advertisement"){e.style.display="none"}});g.log("Advertisement text hidden !!")}}function e(e){x();if(!window.googletag.apiReady){t("//securepubads.g.doubleclick.net/tag/js/gpt.js")}i[a].init=function(e){c=Object.assign(c,e);I()};n()}function x(){["log","warn","error","debug","group"].forEach(function(n){if(s[n]){g[n]=function(){if(o){var e=[].slice.call(arguments),t=new Date;e.unshift([t.getHours(),t.getMinutes(),t.getSeconds()].join(":"));e.unshift("background: #1e5f24; color: #FFFFFF");e.unshift("%c AffinityBlocker_"+f);s[n].apply(s,e)}}}else{g[n]=function(){}}});return g}function I(){g.log("BT script injection start !!");t("//btloader.com/tag?o=5719571852427264&upapi=true");g.log("BT script injection end !!");window.addEventListener("BTAADetection",function(e){g.log("Blockthrough Acceptable Ads Response: ",e);var t=b("aff_blc_",true);l="&uqId="+t;var n=[],o={};if(e.detail.ab&&e.detail.acceptable&&c.servingFlag){i[a].______ADBLOCK_RECOVERY_FLAG=3;i.googletag.cmd.push(function(){i.googletag.pubads().addEventListener("slotRequested",function(e){let t=e.slot;let n=t.getAdUnitPath();g.log("New slot request ::",t);if(n!=c.adunitPath){var o=h(t);var i=t.getSlotElementId();var a=[o];var l={};l[i]=[{cd:"1_GETSLOT",sts:""}];_(a,l)}});i.googletag.pubads().addEventListener("slotResponseReceived",e=>{g.log("Slot response received",e.slot)});i.googletag.pubads().addEventListener("slotRenderEnded",e=>{E();const t=e.slot;var n=d.getElementById(t.getSlotElementId());var o=y();g.log(n.id+" Ad rendered (false --ads shown, true -- no ads) :: "+e.isEmpty,e);g.log("After render Sizes for "+n.id,e.size);n.style.width=e.size[0]+"px";n.style.height=e.size[1]+"px";if(n&&n.firstChild!==null){n.firstChild.insertBefore(o,n.firstChild.childNodes[0]);g.log("Label added for "+t.getSlotElementId())}});i.googletag.pubads().getSlots().forEach(function(e){var t;t=h(e);n.push(t);o[t.sltDivId]={GETSLOT:1}});_(n,o);var e=l+"&data="+encodeURIComponent(JSON.stringify(o));S(e)})}})}e(window.affinityAdrecoveryConf)})(window,document,"__affadblc");