window.adsconfig={};window.Times=window.Times||{};window.CPD={};window.CPD.slots=[];window._dfpObj={};window._dfpObj.excludeHB=["1x1","1X1","innov","_195","_P1","flip"];window._dfpObj.refreshSlot={MWEB:{atf:"/7176/TOI_MWeb/TOI_MWeb_REF/TOI_Mweb_ROS_REF_ATF",mrec:"/7176/TOI_MWeb/TOI_MWeb_REF/TOI_Mweb_ROS_REF_Mrec1",mrec1:"/7176/TOI_MWeb/TOI_MWeb_REF/TOI_Mweb_ROS_REF_Mrec2",mrec2:"/7176/TOI_MWeb/TOI_MWeb_REF/TOI_Mweb_ROS_REF_Mrec3",mrec3:"/7176/TOI_MWeb/TOI_MWeb_REF/TOI_Mweb_ROS_REF_Mrec4",bottomOverlay:"/7176/TOI_MWeb/TOI_MWeb_REF/TOI_Mweb_ROS_REF_FBN"},WEB:{masthead:"/7176/TOI/TOI_REF/TOI_ROS_REF_ATF",mrec:"/7176/TOI/TOI_REF/TOI_ROS_REF_Mrec1",mrec1:"/7176/TOI/TOI_REF/TOI_ROS_REF_Mrec2",mrec2:"/7176/TOI/TOI_REF/TOI_ROS_REF_Mrec3",mrec3:"/7176/TOI/TOI_REF/TOI_ROS_REF_Mrec4"}}; window._dfpObj.floorPrice={WEB:{T1:1.4,GCC:0.65,Rest:0.55},MWEB:{T1:1,GCC:0.85,Rest:0.5}};window._dfpObj.ctnSlot={WEB:{"300x250":543539,"980x200":543540,"728x90":543540},MWEB:{"300x250":543542,"320x50":543541}};window._dfpObj.medianetSlot={WEB:{"970x250":338746210,"728x90":338746210,"300x600":464524268,"120x600":137228353,"300x250":534558642},MWEB:{"300x250":476204824,"320x50":645450016,"320x100":498941464,"300x600":847133588}};window._dfpObj.openXSlot={WEB:{"970x250":561028712,"728x90":561028712,"300x600":561028713,"120x600":561028714,"300x250":561028715},MWEB:{"300x250":561028716,"320x50":561028717}}; window._dfpObj.kargo={WEB:{"970x250":"_xJsH7CixCg","728x90":"_xJsH7CixCg","300x600":"_akk09mck4e","300x250":"_k1bQOQ3zek"},MWEB:{"300x250":"_ailf7yLUNA","320x50":"_gmA2vxWNo8"}};window._dfpObj.teads={WEB:{"970x250":'{"placementId":182811,"pageId":167943}',"728x90":'{"placementId":182811,"pageId":167943}',"120x600":'{"placementId":182811,"pageId":167943}',"300x600":'{"placementId":182808,"pageId":167940}',"300x250":'{"placementId":182808,"pageId":167940}'},MWEB:{"300x250":'{"placementId":182808,"pageId":167940}',"320x50":'{"placementId":182811,"pageId":167943}'}}; window._dfpObj.taboola=1781492;try{window.adsconfig={topBand:{countries:["IN"],section:[],sectionl2:["fashion"],templatename:[],platform:["amp","web","mweb"],refresh:35,checkpageconfig:true},minitv:{config:{player:{midRollAdBreak:[30000]},onAdplayer:{adSection:"minitv"}},platform:["mweb"],section:[],templatename:["home","home_us"],countries:[],midfreq:[30000],adSection:"minitv",dynLoadType:"editormweblineup_4",inpageType:"inPage",status:"1",sticky:true,loadstate:"expanded",agency:"customMiniTv",hl:"Vikas Ki Baat: Uttarakhand Leads with Equality & Unified Laws",loadevent:"onscroll",marker:"Now Playing",shareUrl:"http://jeetbetwin.com/videos/spotlight/film-vikas-ki-baat-uttarakhand-ke-saath-from-ensuring-equality-for-all-citizens-to-promoting-a-unified-legal-framework/videoshow/120149016.cms",skipAds:"0",videoId:"1xvibm496z",videoInloop:"1",rosloadevent:"onscroll",imageid:"120253282",checkpageconfig:true,loadeventVal:700,delayOverride:10000,closeTimeout:16,metakeywords:"TOI , TOI orignal, TOI Orignal Videos, TOI exclusive content, Latest News, Breaking News, Bollywood, Sports, Business and Political News | Times of India",bl:"0",sectionName:"minitv",redirectionType:"videoshow",layout:{inline:{listing:5,landing:1}},skipPrime:true,mode:"drop",layoutType:"mwebPip",timeout:0},InlineInterstitial:{Frequency_no:2,Initial_position:2},scorecard_flip_ad:{business:[],platform:["mweb"],templatename:[],size:[[300,100]],mweb:{size:[300,60],adCode:"/23037861279/TOI_MWEB/TOI_MWEB_ACROSS/TOI_MWEB_ACROSS_AX/TOI_MWEB_ACROSS_AX_LOGOFLIP"},adCode:"/7176/TOI/TOI_ROS/TOI_Web_ROS_SC_Flip",maxads:6,nextAdTimout:10,startAfer:3,divId:"adCodeOldGam-mweb-scorecard_flip_ad",adTimeout:5,displayTimout:1000},global_config:{utmBasedAdCodePrefix:[{caimpaign:"np",prefix:"NWP_Oppo",source:"oppo"},{prefix:"NWP_Vivo",source:"vivo",caimpaign:"np"}],minitvDelay:0,isHeaderV2:false,isCPDATF:true,consentPopup:"googlecmp",consentPopupTest:"onetrust"},taboola_perpectual:{checkpageconfig:true,reverse:true,disabled:true},toiad_props:{props:[{type:"clickTracker"},{type:"impTracker"}]}}; window.adsconfig.taboolaPublisherID="timesinternetlimited-timesofindia";window.CPD={slots:[],HP:[],ROS:[],isATF_HP:"",isATF_ROS:"",isMREC_HP_WEB:0,isMREC_ROS_WEB:0,isMREC_HP_mWEB:0,isMREC_ROS_mWEB:0,isBottomOverlay_HP_mWEB:0,isBottomOverlay_ROS_mWEB:0,isTopBanner_HP_mWEB:0,isTopBanner_ROS_mWEB:0,isBillboard_HP_WEB:0,isBillboard_ROS_WEB:0,isSkin_HP_WEB:0,isSkin_ROS_WEB:0,packageID:[],reachCountEnable:true};window.CPD.slots=window.CPD.ROS||[];if(window.location.pathname==="/"){window.CPD.slots=window.CPD.HP||[] }window.toiplus_site_settings={allowedSurvicateSections:[],allowedSurvicatePrimeSections:["india","homepage"],isFBCampaignActive:false,isGoogleCampaignActive:false,isSurvicateActive:false,isUKElectionActive:true,isUSElectionActive:false};window.toi_client_side_settings={popupManager:{priority:[{name:"google_one_tap",repeat:false,priority:4},{name:"grx_notification",repeat:false,priority:5},{name:"truecaller",priority:2}],burninterval:1,burntime:240,popupTimeout:2000,forceTimeout:1000,normalTimeout:8000}}; window.toi_client_side_settings=window.toi_client_side_settings.popupManager;window._dfpObj.scn=window.Times&&window.Times.adsKeys&&window.Times.adsKeys.SCN&&window.Times.adsKeys.SCN.replace(/[^a-z]/g,"")||"";window._dfpObj.etNewGAMAd=window._dfpObj.scn.match("entertainment|tv|lifestyle");if(window.location.pathname.match("/entertainment/")&&window.location.pathname.match("/articleshow/")){window._dfpObj.etNewGAMAd=null}window._dfpObj.isNewGAMAd=window._dfpObj.etNewGAMAd||window._dfpObj.scn.match("world|business|sports|education|astrology|technology"); if(window.location.pathname.match("/technology/")&&window.location.pathname.match("/photostory/")){window._dfpObj.isNewGAMAd=null}if(window.Times&&window.Times.jGlobalVar&&window.Times.jGlobalVar.isNewGam){window._dfpObj.isNewGAMAd=Times.adsKeys&&Times.adsKeys.SCN}}catch(e){}window._dfpObj.newGamCheck=1;window._dfpObj.isToiPage=1;window._dfpObj.colOlyCamp=window.location.href.indexOf("/sports")>-1;window._dfpObj.hbTAM=0;window._dfpObj.hbPrebid=1;if(window.location.href.indexOf("/world/")>-1){window._dfpObj.hbPrebid=0 }window._dfpObj=window._dfpObj||{};window._dfpObj.hbCtr=0;window.Times=window.Times||{};window._dfpObj.business="";window.Times.pageLoadAdsArr=window.Times.pageLoadAdsArr||[];window.apstag=window.apstag||{};window.googletag=window.googletag||{};window.googletag.cmd=window.googletag.cmd||[];window._dfpObj.PREBID_TIMEOUT=window._dfpObj.PREBID_TIMEOUT||1200;window._dfpObj.FAILSAFE_TIMEOUT=window._dfpObj.FAILSAFE_TIMEOUT||1500;window._dfpObj.loadSingleTimes=true;window._dfpObj.excludeHB=window._dfpObj.excludeHB||["1x1","1X1","innov","_195","_ref_atf","_ref_mrec1"]; window._dfpObj.renderedSlots=[];window._dfpObj.definedSlots=[];window._dfpObj.hardRefreshArr=[];window._dfpObj.hardDestroyArr=[];window._dfpObj.periodicRefresh=[];window._dfpObj.filterLazyLoad=[];window._dfpObj.lazyLoadSlots=[];window._dfpObj.observerConfig={root:null,rootMargin:"800px",threshold:0.1};window._dfpObj.primeSlots=window._dfpObj.primeSlots||["masthead","mrec","bottomoverlay","atf","gutter"];window._dfpObj.isAsTmpl=window.location.pathname.match("/articleshow/");window._dfpObj.isBusinessAs=window._dfpObj.isAsTmpl&&window.location.pathname.match("/business/"); window.debugLogs=window.debugLogs||function(a,c){try{if(typeof window==="object"&&window.location.href.indexOf("debugLogs=1")>-1){console.log(a,c)}}catch(b){}};window._dfpObj.docReady=function(a){if(document.readyState==="complete"||document.readyState==="interactive"){setTimeout(a,1)}else{document.addEventListener("DOMContentLoaded",a)}};window._dfpObj.traceLog=function(b,a,f,c){window.dataLayer=window.dataLayer||[];var d={event:f||"user_shown",type:b};return function(g,h){h=h||a;g=g||c;if(g){d.label=g }if(h){d.category=h}dataLayer.push(d)}};(function(){try{var d=window._dfpObj.isToiPage&&(window.location.pathname==="/us"||window._dfpObj.isBusinessAs);if(d){var h={"slow-2g":"1500px","2g":"1200px","3g":"800px","4g":"400px",ethernet:"1500px",wifi:"1200px",cellular:"1200px",wimax:"400px"};var b=navigator.userAgent&&navigator.userAgent.slice&&navigator.userAgent.slice(-120);var f=window._dfpObj.traceLog("ad_speed_type",b);var a=window.navigator&&navigator.connection&&(window.navigator.connection||window.navigator.mozConnection||window.navigator.webkitConnection); var c=a&&(a.effectiveType||a.type);if(h[c]){window._dfpObj.observerConfig.rootMargin=h[c];f(c)}else{f("no_speed_inbuild_fail")}}}catch(g){}})();window._dfpObj.getCcaudData=function(){var a="";if(typeof colaud!=="undefined"){a=window.colaud.aud}else{if(typeof localStorage!=="undefined"&&typeof localStorage.getItem("colaud")!=="undefined"&&localStorage.getItem("colaud")!==null){a=localStorage.getItem("colaud")}}return a};window._dfpObj._parseCookieValue=function(a){var c=a;if(c.indexOf('"')===0){c=c.slice(1,-1).replace(/\\"/g,'"').replace(/\\\\/g,"\\") }try{return decodeURIComponent(c.replace(/\+/g," "))}catch(b){}return undefined};window._dfpObj.setCookie=function(c,f,d){var b=new Date();b.setTime(b.getTime()+(d*60*1000));var a=(window.location.host.indexOf(".jeetbetwin.com")>-1)?"jeetbetwin.com":document.domain;document.cookie=c+"="+f+";expires="+b.toUTCString()+";path=/;domain=."+a};window._dfpObj.delete_cookie=function(b,c){var a=(window.location.host.indexOf(".jeetbetwin.com")>-1)?"jeetbetwin.com":document.domain;a=c;document.cookie=b+"=;path=/; expires=Thu, 01 Jan 1970 00:00:01 GMT;domain=."+a };window._dfpObj.getCookie=function(c){var a=c?undefined:{};var h=typeof document!=="undefined"&&document.cookie?document.cookie.split("; "):[];for(var g=0,b=h.length;g4){return}if(!a){return}var b=window._dfpObj.isMobile()?window._dfpObj.refreshSlot.MWEB[a]:window._dfpObj.refreshSlot.WEB[a];if(!b){return}_fn=function(k,m,j,i,l){return setTimeout(function(){window._dfpObj.destroySlots(k); window.displayAllAdsInArray([{adCode:m,divId:k,size:j,name:i,reloadCounter:l+1}])},30000)};_fn(g,b,d,a,f)};window._dfpObj.destroySlots=function(a){var b=window._dfpObj.renderedSlots.indexOf(a);if(b>-1){window._dfpObj.renderedSlots.splice(b,1)}b=window._dfpObj.definedSlots.indexOf(a);if(b>-1){window._dfpObj.definedSlots.splice(b,1)}b=window._dfpObj.filterLazyLoad.indexOf(a);if(b>-1){window._dfpObj.filterLazyLoad.splice(b,1)}pbjs.que.push(function(){slot=window.googletag.pubads().getSlots().filter(function(c){return a.indexOf(c.getSlotElementId())>-1 });if(slot){window.googletag.cmd.push(function(){googletag.destroySlots(slot)})}});return true};window._dfpObj.filterSlots=function(b,a){if(a==="renderedSlots"){return b.filter(function(c){return window._dfpObj.renderedSlots.indexOf(c.getSlotElementId())===-1})}if(a==="defineSlots"){return window._dfpObj.definedSlots.indexOf(b)>-1}if(a==="filterLazyLoad"){return window._dfpObj.filterLazyLoad.indexOf(b)>-1}};window._dfpObj.loadJS=function(f,d,h){var g=function(b,c,i){var a=document.createElement("script"); a.setAttribute("src",b);a.setAttribute("type","text/javascript");a.setAttribute("async",c);document.body.appendChild(a);a.addEventListener("load",i)};if(document.body){g(f,d,h)}else{document.addEventListener("readystatechange",function(a){g(f,d,h)})}};window._dfpObj.isInnov=function(a){if(typeof a==="string"||a instanceof String){return a.toLowerCase().indexOf("innov")>-1?true:false}else{return a.getAdUnitPath().toLowerCase().indexOf("innov")>-1?true:false}};window._dfpObj.changeStyleInnov=function(){var b=document.createElement("style"); b.type="text/css";var a=".abs_gutter_ad { position: absolute !important;}";b.appendChild(document.createTextNode(a));document.querySelector("body").appendChild(b);if(document.querySelector("#TOI_appgutter_left")){document.querySelector("#TOI_appgutter_left").classList.add("abs_gutter_ad")}if(document.querySelector("#TOI_appgutter_right")){document.querySelector("#TOI_appgutter_right").classList.add("abs_gutter_ad")}};window._dfpObj.failOverExecute=function(d,b){var a=JSON.parse(d.getTargeting("failover")[0]); var c=function(f,g){googletag.pubads().clear([f]);googletag.destroySlots([f]);window._dfpObj.renderAds(g);return true};if(d.getTargeting("match")&&d.getTargeting("match")[0]){if(typeof d.getHtml()==="string"&&d.getHtml().toLowerCase().indexOf(JSON.parse(d.getTargeting("match")[0]))===-1){c(d,a)}}else{if(b){c(d,a)}}return true};window._dfpObj.observer=new IntersectionObserver(function(a){a.forEach(function(b){if(b.isIntersecting){var c=window._dfpObj.lazyLoadSlots[b.target.id];debugLogs("XSLT #### LazyLoad",c.adCode); window._dfpObj.renderAds([c]);window._dfpObj.observer.unobserve(b.target)}})},window._dfpObj.observerConfig);window._dfpObj.containsAny=function(d,c){if(c===undefined||c.length===0){return false}d=d+"$";if(d.indexOf("toi_mweb_fixed_atf$")!=-1){return null}for(var b=0;b!=c.length;b++){var a=c[b].toLowerCase()+"$";if(d.indexOf(a)!=-1){return a}}return null};window._dfpObj.checkJarvis=function(a){if(a.hasOwnProperty("checkJarvisIsAdActive")&&typeof window.checkJarvisIsAdActive==="function"){if(!window.adsconfig.hasOwnProperty(a.checkJarvisIsAdActive)){return true }if(window.checkJarvisIsAdActive(window.adsconfig[a.checkJarvisIsAdActive])!==1){return true}}return false};window._dfpObj._notEligibleForHB=function(a){var b=a.adCode;if(window._dfpObj.containsAny(b.toLowerCase(),window._dfpObj.excludeHB)){return true}if(window._dfpObj.excludeHB.indexOf("excludeAll")>-1){return true}if(window._dfpObj.excludeHB.indexOf("aboveFold")>-1&&a.name&&window._dfpObj.primeSlots.indexOf(a.name.toLowerCase())>-1){return true}if(window._dfpObj.excludeHB.indexOf("belowFold")>-1&&a.name&&window._dfpObj.primeSlots.indexOf(a.name.toLowerCase())===-1){return true }if(a.hasOwnProperty("checkJarvisIsAdActive")){return true}if(window._dfpObj.containsAny(b.toLowerCase(),window.CPD.slots)&&typeof window.geoinfo==="object"&&window.geoinfo.CountryCode==="IN"){return true}if(b.indexOf("_INNOV")>-1){return true}if(b.indexOf("1x1")>-1||b.indexOf("1X1")>-1){return true}if(b.indexOf("_195")>-1){return true}if(b.indexOf("_Tracker")>-1){return true}if(b.indexOf("_AFF_")>-1){return true}return false};window._dfpObj.callWhenBrowserIsIdle=function(a){if(typeof requestIdleCallback==="function"){requestIdleCallback(a,{timeout:10000}) }else{setTimeout(a,0)}};window._dfpObj.callIfInputNotPendingOrIdle=function(a){if(navigator&&navigator.scheduling&&navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending()){window._dfpObj.callWhenBrowserIsIdle(a)}else{a()}};window._dfpObj.isMobile=function(b){var a=false;if(typeof window==="undefined"&&typeof global==="object"&&global.isMobileUserAgent){return true}(function(c){if(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(c)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(c.substr(0,4))){a=true }})(b||navigator.userAgent||navigator.vendor||window.opera);return a};(function(){try{var f=false;var c=[];function b(){c.forEach(function(h){if(typeof h==="function"){h(window.geoinfo)}})}function a(){var h=document.createElement("script");h.type="text/javascript";h.onload=function(i){f=true;window._dfpObj.setCookie("geo_country",window.geoinfo.CountryCode,1);window._dfpObj.setCookie("geo_continent",window.geoinfo.Continent,1);window._dfpObj.setCookie("geo_city",window.geoinfo.city,1);window._dfpObj.setCookie("geo_region",window.geoinfo.region_code,1); b()};h.src="http://geoapi.jeetbetwin.com/?cb=1";h.async=true;document.getElementsByTagName("head")[0].appendChild(h)}window.geoCallback=function(h){if(f){h(window.geoinfo)}else{c.push(h)}};function d(){var k=window.geoinfo&&window.geoinfo.CountryCode?window.geoinfo.CountryCode:window._dfpObj.getCookie("geo_country");var j=window.geoinfo&&window.geoinfo.Continent?window.geoinfo.Continent:window._dfpObj.getCookie("geo_continent");var i=window.geoinfo&&window.geoinfo.city?window.geoinfo.city:window._dfpObj.getCookie("geo_city"); var h=window.geoinfo&&window.geoinfo.region_code?window.geoinfo.region_code:window._dfpObj.getCookie("geo_region");if(k&&j&&i){window.geoinfo={CountryCode:k,Continent:j,city:i||"",region_code:h||""};f=true}else{a()}}d()}catch(g){}})();var jCheck={};(function(){jCheck._removeSplchracterFromStr=function(a){return typeof a==="string"?a.replace(/[^a-zA-Z0-9_\/]/g,"").toLowerCase():""};jCheck._getSubSecNavFrmUrl=function(a){var b=window.location.pathname.split("/");a=["videos"].indexOf(b[1])>-1?a+1:a; return b[a]?b[a]:""};jCheck.isValidProperty=function(b,c){try{b=Array.isArray(b)?b:[b];var a=[];var f=[];b.forEach(function(g){g=g||"";g=g.toLowerCase();if(g.indexOf("ex-")===0){var i=g.split("ex-")[1];i=jCheck._removeSplchracterFromStr(i);a.push(i)}else{var h=jCheck._removeSplchracterFromStr(g);f.push(h)}});c=jCheck._removeSplchracterFromStr(c);if(b.length>0){if(a.length&&a.indexOf(c)>-1){return 0}else{if(b.indexOf("all")===-1&&f.length&&f.indexOf(c)===-1){return 0}}}return 1}catch(d){console.error("J_LOG",d); return 0}}})();window.checkJarvisIsAdActive=function(k){try{if(k.jActive===1){return 1}var f=window._dfpObj&&window._dfpObj.isMobile&&typeof window._dfpObj.isMobile==="function"&&window._dfpObj.isMobile()?"mweb":"web";var p=window.Times&&window.Times.adsKeys||{};var a=window.toiprops||{};var c=p.Channel||a._Channel;var n=p.SCN||jCheck._getSubSecNavFrmUrl(1);var l=p.Tmpl_SCN||a._Tmpl_SCN||a._Tmpl_pg;n=l==="home"?"home":n;var g=p.SubSCN||jCheck._getSubSecNavFrmUrl(2);var m=p.LastSubSCN||jCheck._getSubSecNavFrmUrl(3); var q=window._dfpObj.currentCountry||(window.geoinfo&&window.geoinfo.CountryCode)||window.geoCode;window._dfpObj.currentCountry=q;var s=window._dfpObj.currentCity||(window._dfpObj.getCookie&&window._dfpObj.getCookie("geo_city"))||(window.geoinfo&&window.geoinfo.city);window._dfpObj.currentCity=s;var j=[{k:"countries",v:q},{k:"city",v:s},{k:"business",v:c},{k:"platform",v:f},{k:"section",v:n},{k:"sectionl2",v:g},{k:"sectionl3",v:m},{k:"templatename",v:l},{k:"customurl",v:window.location.pathname}]; for(var h=0;h-1){var g=window.adsconfig&&window.adsconfig.global_config&&window.adsconfig.global_config.utmBasedAdCodePrefix; var b="";if(g&&g.length&&c.adCode&&c.adCode.indexOf("/23037861279/")==-1){var h=window._dfpObj.getParameterByName("utm_source");var j=window._dfpObj.getParameterByName("utm_campaign");for(var a=0;a-1){pbjs.bidPrice=window._dfpObj.isMobile()?window._dfpObj.floorPrice.MWEB.T1:window._dfpObj.floorPrice.WEB.T1; pbjs.videoBidPrice=window._dfpObj.isMobile()?window._dfpObj.videoFloorPrice.MWEB.T1:window._dfpObj.videoFloorPrice.WEB.T1}if(typeof window.geoinfo!="undefined"&&window.geoinfo.hasOwnProperty("CountryCode")&&["SA","AE","QA","KW","OM","BH"].indexOf(window.geoinfo.CountryCode)>-1){pbjs.bidPrice=window._dfpObj.isMobile()?window._dfpObj.floorPrice.MWEB.GCC:window._dfpObj.floorPrice.WEB.GCC;pbjs.videoBidPrice=window._dfpObj.isMobile()?window._dfpObj.videoFloorPrice.MWEB.GCC:window._dfpObj.videoFloorPrice.WEB.GCC }pbjs.myConfig={debug:location.search.indexOf("prebidDebugLogs=1")>-1?true:false,enableTIDs:true,enableSendAllBids:true,useBidCache:true,deviceAccess:true,bidderTimeout:window._dfpObj.PREBID_TIMEOUT,priceGranularity:"dense",floors:{currency:"USD",skipRate:5,modelVersion:"Model",schema:{fields:["mediaType"]},values:{banner:pbjs.bidPrice,video:pbjs.videoBidPrice}},userSync:{filterSettings:{iframe:{bidders:"*",filter:"include"}},userIds:[{name:"uid2"},{name:"unifiedId",params:{partner:"kg9dznt"}},{name:"lotamePanoramaId"},{name:"hadronId"},{name:"criteo"},{name:"sharedId",storage:{type:"cookie",name:"_sharedid",expires:365}}]},ortb2:{site:{keywords:Times.hasOwnProperty("adsKeys")&&Times.adsKeys.hasOwnProperty("Meta_Keywords")?Times.adsKeys.Meta_Keywords:"",content:{}}}}; if(Times.hasOwnProperty("adsKeys")&&Times.adsKeys.hasOwnProperty("iab")&&Times.adsKeys.iab!=""&&Times.adsKeys.iab!="empty"){pbjs.myConfig.ortb2.site.content.cat=[Times.adsKeys.iab]}pbjs.setConfig(pbjs.myConfig);pbjs.setBidderConfig({bidders:["criteo"],config:{ortb2:{user:{ext:{data:{eids:[{source:window.location.hostname,uids:[{id:"",atype:3,ext:{stype:"hemmd5"}},{id:localStorage.getItem("emhash")?localStorage.getItem("emhash"):"",atype:3,ext:{stype:"hemsha256"}}]}]}}}}}})});pbjs.bidderSettings={ix:{storageAllowed:true},criteo:{storageAllowed:true},pubmatic:{storageAllowed:true},ttd:{storageAllowed:true},taboola:{storageAllowed:true},colombia:{storageAllowed:true},teads:{storageAllowed:true},medianet:{storageAllowed:true},sharethrough:{storageAllowed:true},kargo:{storageAllowed:true},rubicon:{storageAllowed:true},appnexus:{storageAllowed:true},smilewanted:{storageAllowed:true},openx:{storageAllowed:true}}; pbjs._getPlacementID=function(c,a){if(!c||c.length===0){return}var d=(c[0]&&c[0].length>0)?c.join("-").replaceAll(",","x"):c.join("x");for(var b in a){if(d.indexOf(b)>-1){return a[b]}}return 0};pbjs.myBidder=function(d){var c=33893102;if(window.location.host.indexOf("navbharattimes")>-1){c=34121488}if(window.location.host.indexOf("economictimes")>-1){c=34121281}window._dfpObj.hbCtr++;var b=[{bidder:"rubicon",params:{accountId:4642,siteId:534328,zoneId:3277360,position:window._dfpObj.isFirstFold(d)?"atf":"btf",floor:pbjs.bidPrice,keywords:Times.adsKeys&&typeof Times.adsKeys.Meta_Keywords=="string"?Times.adsKeys.Meta_Keywords.split(","):[]}},{bidder:"appnexus",params:{placementId:c,allowSmallerSizes:true,position:window._dfpObj.isFirstFold(d)?"above":"below",supplyType:window._dfpObj.isMobile()?"mobile_web":"web",reserve:pbjs.bidPrice}},{bidder:"smilewanted",params:{zoneId:"timesofindia.com_hb_display_1"}},{bidder:"criteo",params:{zoneId:(window._dfpObj.isUS())?1788775:1788770}},{bidder:"sharethrough",params:{pkey:"X4rDoAG09y3bLrKdTOaGk50D"}},{bidder:"ttd",params:{supplySourceId:"timesinternet",publisherId:1,bidfloor:pbjs.bidPrice}},{bidder:"pubmatic",params:{publisherId:"164398",adSlot:"5748079",kadfloor:pbjs.bidPrice.toString()}},{bidder:"ix",params:{siteId:"1075035"}}]; if(window._dfpObj.teads&&pbjs._getPlacementID(d.size,window._dfpObj.isMobile()?window._dfpObj.teads.MWEB:window._dfpObj.teads.WEB)){var a=pbjs._getPlacementID(d.size,window._dfpObj.isMobile()?window._dfpObj.teads.MWEB:window._dfpObj.teads.WEB);if(typeof(a)!="undefined"){b.push({bidder:"teads",params:JSON.parse(a)})}}if(window._dfpObj.taboola){b.push({bidder:"taboola",params:{tagId:"placement_"+window._dfpObj.hbCtr,publisherId:window._dfpObj.taboola,position:window._dfpObj.hbCtr,bidfloor:pbjs.bidPrice}}) }if(window._dfpObj.ctnSlot&&pbjs._getPlacementID(d.size,window._dfpObj.isMobile()?window._dfpObj.ctnSlot.MWEB:window._dfpObj.ctnSlot.WEB)>0){if(window.location.host.indexOf("timesofindia")>-1&&window.location.pathname.indexOf("/astrology")>-1){b.push({bidder:"colombia",params:{placementId:pbjs._getPlacementID(d.size,window._dfpObj.isMobile()?window._dfpObj.ctnSlot.MWEB:window._dfpObj.ctnSlot.WEB),pageurl:window.location.href,keywords:Times.hasOwnProperty("adsKeys")&&Times.adsKeys.hasOwnProperty("Meta_Keywords")?Times.adsKeys.Meta_Keywords:"",category:Times.hasOwnProperty("adsKeys")&&Times.adsKeys.hasOwnProperty("SCN")?Times.adsKeys.SCN:"",pageType:Times.hasOwnProperty("adsKeys")&&Times.adsKeys.hasOwnProperty("Tmpl_SCN")?Times.adsKeys.Tmpl_SCN:"",dsmi:(window._dfpObj.getCookie("_col_uuid"))?window._dfpObj.getCookie("_col_uuid"):"empty"}}) }else{b.push({bidder:"colombia",params:{placementId:pbjs._getPlacementID(d.size,window._dfpObj.isMobile()?window._dfpObj.ctnSlot.MWEB:window._dfpObj.ctnSlot.WEB),pageurl:window.location.href,keywords:Times.hasOwnProperty("adsKeys")&&Times.adsKeys.hasOwnProperty("Meta_Keywords")?Times.adsKeys.Meta_Keywords:"",category:Times.hasOwnProperty("adsKeys")&&Times.adsKeys.hasOwnProperty("SCN")?Times.adsKeys.SCN:"",pageType:Times.hasOwnProperty("adsKeys")&&Times.adsKeys.hasOwnProperty("Tmpl_SCN")?Times.adsKeys.Tmpl_SCN:""}}) }}if(window._dfpObj.openXSlot&&pbjs._getPlacementID(d.size,window._dfpObj.isMobile()?window._dfpObj.openXSlot.MWEB:window._dfpObj.medianetSlot.WEB)>0){b.push({bidder:"openx",params:{unit:pbjs._getPlacementID(d.size,window._dfpObj.isMobile()?window._dfpObj.openXSlot.MWEB:window._dfpObj.medianetSlot.WEB),delDomain:"timesinternet-d.openx.net",customFloor:pbjs.bidPrice}})}if(window._dfpObj.medianetSlot&&pbjs._getPlacementID(d.size,window._dfpObj.isMobile()?window._dfpObj.medianetSlot.MWEB:window._dfpObj.medianetSlot.WEB)>0){b.push({bidder:"medianet",params:{cid:"8CUM8C0J2",crid:pbjs._getPlacementID(d.size,window._dfpObj.isMobile()?window._dfpObj.medianetSlot.MWEB:window._dfpObj.medianetSlot.WEB),bidfloor:pbjs.bidPrice}}) }if(window._dfpObj.kargo&&pbjs._getPlacementID(d.size,window._dfpObj.isMobile()?window._dfpObj.kargo.MWEB:window._dfpObj.kargo.WEB)){b.push({bidder:"kargo",params:{placementId:pbjs._getPlacementID(d.size,window._dfpObj.isMobile()?window._dfpObj.kargo.MWEB:window._dfpObj.kargo.WEB)}})}if(window._dfpObj.bidderList&&window._dfpObj.bidderList.length>0){return b.filter(function(f){if(window._dfpObj.bidderList.indexOf(f.bidder)>-1){return true}})}if(window._dfpObj.isEU()){window.pbjs.getConsent()}return b };window.googletag.cmd.push(function(){window.googletag.pubads().addEventListener("impressionViewable",function(a){if(window.adsconfig&&window.adsconfig.ad_refresh&&window.checkJarvisIsAdActive&&window.checkJarvisIsAdActive(window.adsconfig.ad_refresh)===1){window._dfpObj.destroyAndRefresh(a)}if(a.slot.getTargeting("name").length>0&&JSON.parse(a.slot.getTargeting("name"))==="webInterstitial"){window._dfpObj.setCookie("webInterstitial",1,10)}});window.googletag.pubads().addEventListener("slotRenderEnded",function(b){var d=b.slot; window._dfpObj.callBaseScript("slotRenderEnded",b);if(!b.isEmpty&&window._dfpObj.executeFuncAfterLazyADFile){window._dfpObj.executeFuncAfterLazyADFile("emitSlotLoadEvent",b.slot)}if(!b.isEmpty&&window._dfpObj.showInterstitialAfterLoadEvent){window._dfpObj.showInterstitialAfterLoadEvent(b.slot)}if(d.getTargeting("periodicRefresh").length>0){setTimeout(function(){googletag.pubads().refresh([d])},parseInt(JSON.parse(d.getTargeting("periodicRefresh")[0]))*1000)}if(d.getTargeting("failover").length>0){var c=window._dfpObj.isInnov(d); if(c&&typeof window._dfpObj._createGutterFailoverElement==="function"){window._dfpObj._createGutterFailoverElement()}var a=1;if(c&&window.innerWidth&&window.innerWidth<1340){a=0}if(a){window._dfpObj.failOverExecute(d,b.isEmpty)}}if(window._dfpObj.isInnov(d)){document.body.classList.add("gutter");document.body.classList.add("bgImg");if(document.getElementsByClassName("leftsocial").length>0){document.getElementsByClassName("leftsocial")[0].style.visibility="hidden"}if(b.isEmpty){window._dfpObj.changeStyleInnov() }}})});window._dfpObj.callBaseScript=function(a,b){if(typeof window._loadDelayedResources==="function"&&typeof _delayedResourcesLoaded!=="undefined"&&!_delayedResourcesLoaded){debugLogs("########## "+a+" Event fired : loading callBaseScript",(performance.now()/1000).toFixed(2)+"seconds");window._loadDelayedResources()}if(typeof window._baseScript==="function"&&!window.__baseScript){debugLogs("########## "+a+" Event fired : loading callBaseScript",(performance.now()/1000).toFixed(2)+"seconds");window._baseScript() }if(window._dfpObj.loadSingleTimes){window._dfpObj.loadSingleTimes=false;window.displayAllAdsInArray(window.Times.pageLoadAdsArr.filter(function(c){return !window._dfpObj.isFirstFold(c)}));if(typeof window._dfpObj.executeFuncAfterFirstADCall==="function"){window._dfpObj.executeFuncAfterFirstADCall(0,1)}}};window._dfpObj.noHBctr=0;window._dfpObj.gamFailedTriggerGa=function(b){window.dataLayer=window.dataLayer||[];var a="";try{var d=window._dfpObj.device||(window._dfpObj.isMobile()?"mWeb":"Web");a=b.split("/").pop(); if(window.location.pathname.indexOf(".cms")>-1){a+=window.Times&&window.Times.adsKeys&&window.Times.adsKeys.Tmpl_SCN;a+="|";a+=window.Times&&window.Times.adsKeys&&window.Times.adsKeys.Article_ID}else{a+=window.location.pathname}a+="|";a+=d;a+="|";a+=window.geoinfo&&window.geoinfo.CountryCode;a=a.length>120?a.slice(-120):a;b=b.length>120?b.slice(-120):b}catch(c){}dataLayer.push({event:"user_shown",type:"new_gam_failed",label:b,category:a})};window._dfpObj._findNestedSizeArr=function(a,b,d){for(var c=0; c-1&&window.location.host.indexOf("timesofindia")>-1){window._dfpObj.gamFailedTriggerGa(v.adCode)}return true});var f=false;var g=function(x,v,u){if(v===undefined&&(m===false||l===false)){return}x=window._dfpObj.filterSlots(x,"renderedSlots");x.map(function(y){window._dfpObj.renderedSlots.push(y.getSlotElementId())});if(x.length===0){return}var w=v&&u?"[ "+u+" ]":"";debugLogs("XSLT #### "+w+" GAM REQUEST SENT Total ("+x.length+") : "+(performance.now()/1000).toFixed(2)+"seconds",JSON.stringify(x.map(function(z){var y={}; y.code=z.getAdUnitPath();y.id=z.getSlotElementId();return y})));window.googletag.cmd.push(function(){window.googletag.pubads().refresh(x)});return true};var h=function(u){var v=u.map(function(w){return w.divId?w.divId:w.slotID});return window.googletag.pubads().getSlots().filter(function(w){return v.indexOf(w.getSlotElementId())>-1})};var s=function(w,v,u){googletag.cmd.push(function(){debugLogs("XSLT #### "+v+" Bid Received "+u+": "+(performance.now()/1000).toFixed(2)+"seconds ",w.map(function(x){if(x){return x.slotName }}));g(h(w))})};var q=function(w){var z=-1*Math.pow(2,32);var x=z;var u={};for(key in w){var y=w[key].bids;for(var v=0;vy[v].cpm){continue}else{x=y[v].cpm;u=y[v]}}}return u};var p=function(v){var u=[];v.map(function(y){if(!y.adCode){return}if(!y.size){return}if(!y.divId){return}if(y.divId==="NIL"){return}if(window._dfpObj._notEligibleForHB(y)){return}if(y.size&&y.size.indexOf("fluid")>-1){y.size.splice(y.size.indexOf("fluid"),1)}var w=y.size&&y.size[0].length>0?y.size[0].join("x"):y.size.join("x"); var x={banner:{sizes:y.size}};if(y.isMrec){x.video={api:[1,2,7],context:"outstream",linearity:1,maxduration:300,mimes:["application/javascript","video/mp4","video/x-ms-wmv","video/webm","video/x-flv"],minduration:0,plcmt:4,playbackmethod:[6],playerSize:[336,280],renderer:{url:"http://cdn.adpushup.com/apOutstreamRenderer.js"},skip:0,pos:1,startdelay:1,delivery:[1],protocols:[2,3,5,6]}}return u.push({code:y.divId,divId:y.divId,slotName:y.adCode,slotID:y.divId,ortb2Imp:{ext:{gpid:y.adCode+"#"+w}},mediaTypes:x,bids:pbjs.myBidder(y)}) });return u};var c=function(u){u=p(u);pbjs.que.push(function(){pbjs.adUnits=[];pbjs.addAdUnits(u);if(u.length===0){m=true;return}if(typeof pbjs.requestBids!=="function"){m=true;d=true;s(u,"Prebid","SDK not yet loaded");return}debugLogs("XSLT #### Prebid request :"+(performance.now()/1000).toFixed(2)+"seconds",u.map(function(v){if(v){return v.slotName}}));pbjs.requestBids({bidsBackHandler:function(){googletag.cmd.push(function(){pbjs.que.push(function(){if(f===false){pbjs.setTargetingForGPTAsync(); m=true;s(u,"Prebid","Successfully")}})})},timeout:window._dfpObj.PREBID_TIMEOUT})})};var r=function(v){var u=[];v.map(function(w){if(!w.adCode){return}if(!w.size){return}if(!w.divId){return}if(w.divId==="NIL"){return}if(window._dfpObj._notEligibleForHB(w)){return}if(w.size.indexOf("fluid")>-1){w.size.splice(w.size.indexOf("fluid"),1)}return u.push({slotID:w.divId,sizes:w.size&&w.size[0].length>1?w.size:[w.size],slotName:w.adCode,floor:{value:parseInt(pbjs.bidPrice*100),currency:"USD"}})});return u };var i=function(u){u=r(u);if(u.length===0){l=true;return}if(typeof apstag.fetchBids!=="function"){l=true;o=true;s(u,"TAM","SDK not yet loaded");return}debugLogs("XSLT #### TAM request :"+(performance.now()/1000).toFixed(2)+"seconds",u.map(function(v){if(v){return v.slotName}}));window.apstag.init({pubID:"5025",adServer:"googletag"});apstag.fetchBids({slots:u,timeout:window._dfpObj.PREBID_TIMEOUT},function(v){googletag.cmd.push(function(){apstag.setDisplayBids();l=true;s(u,"TAM","Successfully")}) })};var l=false;var m=false;var o=false;var d=false;var a=function(u){setTimeout(function(){c(u)},0);setTimeout(function(){i(u)},0)};window._dfpObj.getParameterByName=function(v,u){u=u||window.location.href;v=v.replace(/[\[\]]/g,"\\$&");var x=new RegExp("[?&]"+v+"(=([^&#]*)|&|#|$)"),w=x.exec(u);if(!w){return null}if(!w[2]){return""}return decodeURIComponent(w[2].replace(/\+/g," "))};var t=function(B,J){var w="";var H=0;var y="";var F="";var I=window._dfpObj.getCookie("_col_uuid");var x=window._dfpObj.getCcaudData()||[]; var A=I?"true":"false";if(typeof window._dfpObj.createKeyValueObj=="function"){window._dfpObj.createKeyValueObj()}window.googletag.pubads().setTargeting("sg",x);window.googletag.pubads().setTargeting("aud_flag",A);if(I){window.googletag.pubads().setTargeting("col_key",I);window.googletag.pubads().setPublisherProvidedId(I)}if(window._dfpObj.frmapp){window.googletag.pubads().setTargeting("frmapp","yes")}if(window.location.search.indexOf("eisamay")>-1){window.googletag.pubads().setTargeting("LANGbackToHome",1) }if(window.adsconfig.hasOwnProperty("channel")&&window.adsconfig.channel=="np"){window.googletag.pubads().setTargeting("Channel","np");if(J.length&&J[0].hasOwnProperty("targeting")){window.Times.adsKeys=J[0].targeting}else{if(window.Times&&window.Times.pageLoadAdsArr[0]&&window.Times.pageLoadAdsArr[0].hasOwnProperty("targeting")){window.Times.adsKeys=window.Times.pageLoadAdsArr[0].targeting}}}if(window.Times&&window.Times.adsKeys){for(var v in window.Times.adsKeys){if(typeof window.Times.adsKeys[v]!="undefined"){window.googletag.pubads().setTargeting(v,window.Times.adsKeys[v]+"") }}window.tgtkeys=window.Times.adsKeys}if(window._dfpObj.colOlyCamp&&window.tgtkeys){window.tgtkeys.ctnkeyword="olympics"}if(window.location.href.indexOf("utm_source=")>-1){if(window._dfpObj.getParameterByName("utm_source")==="iz"){var z=window._dfpObj.isMobile()?"iz_wap":"iz_web";window.googletag.pubads().setTargeting("_ref",z)}window.googletag.pubads().setTargeting("utm_source",window._dfpObj.getParameterByName("utm_source"))}var u="";if(window.location.href.indexOf("utm_source=")>-1){u+=u?(","+window._dfpObj.getParameterByName("utm_source")):window._dfpObj.getParameterByName("utm_source") }if(window.location.href.indexOf("utm_campaign=")>-1){u+=u?(","+window._dfpObj.getParameterByName("utm_campaign")):window._dfpObj.getParameterByName("utm_campaign")}if(u){window.googletag.pubads().setTargeting("Columbia",u)}if(typeof window._dfpObj.getParameterByName==="function"){var E=window._dfpObj.getParameterByName("toi_dfp_test");if(!!E){window.googletag.pubads().setTargeting("toi_dfp_test",E)}E=window._dfpObj.getParameterByName("back");var G="TOI";G=window.adsconfig.channel&&window.adsconfig.channel!==""?window.adsconfig.channel.toUpperCase():G; G=G+"backToHome";if(!!E){window.googletag.pubads().setTargeting(G,E)}else{E=document.referrer||"";if(E.indexOf("back")>-1){window.googletag.pubads().setTargeting(G,2)}}}var D=window._dfpObj.getCookie("__uid2_advertising_token")?"1":"0";window.googletag.pubads().setTargeting("_uid2",D);var C=window._dfpObj.getCookie("ssoid")?"yes":"no";window.googletag.pubads().setTargeting("loggedin",C)};var j=function(v){var u={};u.direct=[];u.hb=[];v.forEach(function(x){var B=x;if(!B.hasOwnProperty("adCode")){return }if(B.adCode.indexOf("Andbeyond")>-1&&window._dfpObj.business!=="it"){return}if(window._dfpObj.checkJarvis(x)){return}if(typeof window._dfpObj._getAdBasedOnFlags==="function"){B=window._dfpObj._getAdBasedOnFlags(B)}var z=B.adCode;if(z){z=z.trim()}var y=B.divId;var A=B.size;if(window._dfpObj.filterSlots(y,"defineSlots")){return}window._dfpObj.definedSlots.push(y);if(A&&!Array.isArray(A)){A=JSON.parse(A)}if(z.toLowerCase().indexOf("_innov1")>-1&&window.location.href.indexOf("gutterunfill")>-1){z="/7176/TOI/TOI_TEST/TOI_ROS_Test_Nofill_Innov1" }if(window.location.href.indexOf("test=expando")>-1&&z.indexOf("_ATF")>-1){z="/7176/TOI_MWeb/TOI_MWeb_Test/TOI_Mweb_Test3_ATF"}if(B.hasOwnProperty("name")&&B.name==="webInterstitial"){adCodeObj=googletag.defineOutOfPageSlot(z,googletag.enums.OutOfPageFormat.INTERSTITIAL);debugLogs("XSLT #### webInterstitial",(performance.now()/1000).toFixed(2)+"seconds");if(adCodeObj){adCodeObj.addService(googletag.pubads());debugLogs("XSLT #### webInterstitial present",(performance.now()/1000).toFixed(2)+"seconds"); u.direct.push(adCodeObj)}}else{if(!A){adCodeObj=window.googletag.defineOutOfPageSlot(z,y).addService(googletag.pubads());u.direct.push(adCodeObj)}else{if(window._dfpObj._notEligibleForHB(x)){adCodeObj=window.googletag.defineSlot(z,A,y).addService(googletag.pubads());u.direct.push(adCodeObj)}else{adCodeObj=window.googletag.defineSlot(z,A,y).addService(googletag.pubads());u.hb.push(adCodeObj)}}}debugLogs((performance.now()/1000).toFixed(2)+"seconds -- XSLT @@@ DefineSlot "+z+"----"+y+" : ",A);if(B.hasOwnProperty("name")){adCodeObj.setTargeting("name",JSON.stringify(B.name)) }if(B.hasOwnProperty("size")){adCodeObj.setTargeting("size",JSON.stringify(A))}if(B.hasOwnProperty("reloadCounter")){adCodeObj.setTargeting("reloadCounter",JSON.stringify(B.reloadCounter))}if(B.hasOwnProperty("failover")){adCodeObj.setTargeting("failover",JSON.stringify(B.failover))}if(z.indexOf("Etimes_APV_1000x602")>-1||z.indexOf("Etimes_Mweb_APV_400x461")>-1){B.periodicRefresh=15}if(window._dfpObj.isToiPage&&(z.indexOf("_AFF_")>-1||z.indexOf("_AFF1_")>-1)){B.periodicRefresh=10}var w=window.adsconfig&&window.adsconfig.toiad_props; if(w&&w.adRefresh&&window.checkJarvisIsAdActive&&window.checkJarvisIsAdActive(w.adRefresh)===1){switch(w.adRefresh.pattern){case"primeAd":if(window._dfpObj.isFirstFold(B)){B.periodicRefresh=w.adRefresh.periodicRefresh||15}break}}if(B.hasOwnProperty("periodicRefresh")){adCodeObj.setTargeting("periodicRefresh",B.periodicRefresh)}if(window.__CLIENT__&&window.__CLIENT__.indexOf("newszop")>-1){adCodeObj.setTargeting("retry","-1");if(A&&A.length>0&&A[0][0]==320&&A[0][1]==50){adCodeObj.setTargeting("pricing-rule-active",true) }if(A){adCodeObj.setTargeting("pos","newszop-".concat(A[0].join().replace(",","x")))}}if(B.hasOwnProperty("hardRefresh")){window._dfpObj.hardRefreshArr.push(adCodeObj)}});return u};var n=function(z,v){var u=window.location.pathname.length>0?window.location.pathname.split("/"):[];var y=window.location.pathname.split("/");if(y.length===0||!y[1]){y=["default","home"]}var w=u[1]||y[1];if(z&&z.length===0){return}t(w,z);var x=j(z);if(x.direct.length===0&&x.hb.length===0){f=false;return}googletag.pubads().enableSingleRequest(); googletag.enableServices();googletag.pubads().disableInitialLoad();if(x.direct.length>0){g(x.direct,true,"Direct")}if(x.hb.length>0&&(typeof pbjs.requestBids==="function"||typeof apstag.fetchBids==="function")&&v!=="noBidSDK"){setTimeout(function(){g(x.hb,true,"failover")},window._dfpObj.FAILSAFE_TIMEOUT)}else{g(x.hb,true,"noSDK")}};var k=function(u){setTimeout(function(){a(u);googletag.cmd.push(function(){n(u)})},0)};if(!window._dfpObj.isEU()){k(b)}else{if(typeof __tcfapi==="function"){k(b)}else{setTimeout(function(){k(b); debugLogs((typeof __tcfapi==="function")+" XSLT #### "+(performance.now()/1000).toFixed(2)+"seconds")},1000)}}};window._dfpObj._isdfplazyAd=function(d){var a=window.adsconfig&&window.adsconfig.toiad_props;if(a&&a.skipLazyAd&&window.checkJarvisIsAdActive&&window.checkJarvisIsAdActive(a.skipLazyAd)===1){d.skipLazy=1}if(d&&d.name==="atf"&&d.articleIndex>0){var c=window.location.pathname.match("/city/|/sports/|/world/");var b=window.adsconfig&&window.adsconfig.global_config&&window.adsconfig.global_config.isCPDATF; if(!b&&c){return true}return false}return false};window.displayAllAdsInArray=function(b){var a=[];if(typeof window._dfpObj.modifyAdsArray==="function"){b=window._dfpObj.modifyAdsArray(b)}if(typeof _updateArr==="function"){b=_updateArr(b)}try{b.map(function(g){if(!g.adCode){return}if(window._dfpObj.updateNewgamAd&&window._dfpObj.isNewGAMAd&&g.adCode.indexOf("/7176/")>-1){g.adCode=window._dfpObj.updateNewgamAd(g.adCode)}if(g.adCode.indexOf("Newspoint")>-1){g.skipLazy=1}if(window._dfpObj.filterSlots(g.divId,"defineSlots")){return }if(window._dfpObj.filterSlots(g.divId,"filterLazyLoad")){return}var f=window._dfpObj._isdfplazyAd(g);if(f||g.adCode&&g.size&&g.adCode.indexOf("1x1")===-1&&g.skipLazy!==1&&g.adCode.toLowerCase().indexOf("interstitial")===-1&&g.adCode.toLowerCase().indexOf("topband")===-1&&!g.hasOwnProperty("force")&&!window._dfpObj.isFirstFold(g)&&!window._dfpObj._notEligibleForHB(g)){g=typeof window._dfpObj.lazyactualUnitCode==="function"?window._dfpObj.lazyactualUnitCode(g):g;var d=document.getElementById(g.divId); if(d){window._dfpObj.observer.observe(d);window._dfpObj.lazyLoadSlots[g.divId]=g;window._dfpObj.filterLazyLoad.push(g.divId)}}else{g=typeof window._dfpObj.lazyactualUnitCode==="function"?window._dfpObj.lazyactualUnitCode(g):g;a.push(g)}});if(a.length>0){window._dfpObj.renderAds(a)}}catch(c){console.log(c)}};window._dfpObj.device=window._dfpObj.isMobile()?"mWeb":"Web";window._dfpObj.geoCountry=window._dfpObj.getCookie("geo_country");function execute_ads(){if(window.Times.pageLoadAdsArr.length===0){return }window._dfpObj.geoCountry=window._dfpObj.getCookie("geo_country");window._dfpObj.renderAds(window.Times.pageLoadAdsArr.filter(function(a){if(a.force){return true}return window._dfpObj.isFirstFold(a)}))}if(typeof window.geoCallback==="function"){window.geoCallback(execute_ads)}else{execute_ads()}window._dfpObj.exeTaboolaSDK=false;window._dfpObj.taboolasection="";(function(){if(window.Times&&window.Times.adsKeys){var d=Times.adsKeys&&Times.adsKeys.SubSCN;var c=Times.adsKeys&&Times.adsKeys.SCN;var b=["Cricket"]; if(window._dfpObj.isMobile()){b.push("horoscopetoday","zodiacsastrology","bengaluru","delhi")}var a=["Sports","City"];b.forEach(function(f){if(d===f.toLowerCase()){window._dfpObj.taboolasection=f}});if(!window._dfpObj.taboolasection){a.forEach(function(f){if(c===f.toLowerCase()){window._dfpObj.taboolasection=f}})}}})();window._dfpObj.exeTaboolaContainer=function(b){window._taboola=window._taboola||[];if(window._dfpObj.exeTaboolaSDK===false){return}if(b===true&&window.adsconfig&&adsconfig.taboola_perpectual&&adsconfig.taboola_perpectual.disabled&&window.location&&window.location.pathname.indexOf("/articleshow/")>-1){return }var a=true;var d=window._dfpObj.isMobile()?"mWeb":"web";var c=0;Array.from(document.getElementsByClassName("wdt-taboola")).forEach(function(m){var i=m.getAttribute("data-mode");if(i==="thumbnails-mid"&&window._dfpObj.isMobile()){i="thumbnails-mid-mobile"}var j=m.getAttribute("id");var h=j.replace(/^\D+/,"");var g=m.getAttribute("data-target_type");var n=m.getAttribute("data-placement");try{if(m.parentElement&&m.parentElement.classList&&m.parentElement.classList.contains&&m.parentElement.classList.contains("mgid_country_osv_parent")){return }}catch(k){}if(parseInt(h)>1000&&window.location.href.indexOf(h)===-1){return}if(a){var o=n?n.replace(/ /gi,"-"):"";if(!c){var f=m.getAttribute("data-pagetype")||"article";var l={url:window.location.href};l[f]="auto";_taboola.push(l);c=1}window.dataLayer=window.dataLayer||[];dataLayer.push({event:"component_load",type:"taboola_ad_widget",placement:o,browsing_platform:d});debugLogs("XSLT #### Taboola body :",(performance.now()/1000).toFixed(2)+"seconds")}a=false;n=window._dfpObj.taboolasection?(n+" "+window._dfpObj.taboolasection):n; _taboola.push({mode:i,container:j,placement:n,target_type:g});m.classList.remove("wdt-taboola")})};window._dfpObj.exeTaboola=function(){if(window._dfpObj.exeTaboolaSDK){window._dfpObj.exeTaboolaContainer();return}if(document.getElementsByClassName("wdt-taboola").length===0){return}if(window.adsconfig&&!window.adsconfig.hasOwnProperty("taboolaPublisherID")){return}window._dfpObj.loadJS("//cdn.taboola.com/libtrc/"+window.adsconfig.taboolaPublisherID+"/loader.js",true,window._dfpObj.exeTaboolaContainer); debugLogs("XSLT #### Taboola SDK :",(performance.now()/1000).toFixed(2)+"seconds");window._dfpObj.exeTaboolaSDK=true};(function(){window._dfpObj.exeTaboola();document.addEventListener("readystatechange",function(a){if(document.readyState==="interactive"){window._dfpObj.exeTaboola()}})})();window._dfpObj.bytesToBase64=function(a){return Array.from(a,function(b){return String.fromCharCode(b)}).join("")};window._dfpObj.btoa=function(a){return btoa(a)};window._dfpObj.hash=function(a,c,b){if(a==="email"){c=window._dfpObj.getNormalisedEmail(c) }else{if(a==="phone"){c=window._dfpObj.getNormalisedPhone(c,b)}}var d=new Promise(function(g,f){window.crypto.subtle.digest("SHA-256",new TextEncoder().encode(c)).then(function(h){g(window._dfpObj.btoa(window._dfpObj.bytesToBase64(new Uint8Array(h))))})});d.then(function(f){if(a==="email"){localStorage.setItem("emhash",f)}else{if(a==="phone"){localStorage.setItem("phhash",f)}}});return c};window._dfpObj.getNormalisedEmail=function(a){a=a.toString().trim().toLowerCase();var b=a.split("@");b[0]=b[0].replace(/\./g,""); if(b[1]=="gmail.com"){b[0]=b[0].split("+")[0]}a=b.join("@");return a};window._dfpObj.getNormalisedPhone=function(b,a){b=b.toString().trim();a=a||"+91";b=b.toLowerCase().replace(/[^\w]/gi,"");b=a+b;return b};var clientSideConfig={subscriptionId:"ywgdSVrfvs",serverPublicKey:"UID2-X-P-MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAE9sRQ0q5rG1WacJTCCS2gkDBJxuBX88urAHoaLOQhaWNrwSFzHQcWLM0xxAvkiq8SanHek/ZRX387nqA5PykPJw=="};window.getUid2AdvertisingToken=function(){return window._dfpObj.getCookie("__uid2_advertising_token") };window.__uid2=window.__uid2||{};window.__uid2.callbacks=window.__uid2.callbacks||[];window.__uid2.callbacks.push(function(b,d){switch(b){case"SdkLoaded":__uid2.init({});break;case"InitCompleted":if(d.identity){var a=d.identity.advertising_token;window._dfpObj.setCookie("__uid2isLoginV2",1,720);window._dfpObj.setCookie("__uid2_advertising_token",a,518400)}else{try{var f=new Promise(function(h,g){if(window._dfpObj.emhash){__uid2.setIdentityFromEmailHash(window._dfpObj.emhash,clientSideConfig)}else{__uid2.setIdentityFromPhoneHash(window._dfpObj.phhash,clientSideConfig) }h()});f.then(function(){googletag.cmd.push(function(){window.googletag.secureSignalProviders.clearAllCache()})})}catch(c){console.log("********",c)}}window._dfpObj.setCookie("__uid2isLoginV2",1,720);break;case"IdentityUpdated":var a=d.identity.advertising_token;window._dfpObj.setCookie("__uid2_advertising_token",a,518400);window._dfpObj.setCookie("__uid2isLoginV2",1,720);break}});window._dfpObj.storedHash=function(){window._dfpObj.emhash=localStorage.getItem("emhash")||window._dfpObj.getCookie("dmp_emhash"); window._dfpObj.phhash=localStorage.getItem("phhash")||window._dfpObj.getCookie("dmp_phhash")};window._dfpObj.storedHash();window._dfpObj.uuid=function(){window._dfpObj.loadJS("http://cdn.prod.uidapi.com/uid2-sdk-3.2.0.js",true);window._dfpObj.storedHash();window._dfpObj.loadJS("http://cdn.prod.uidapi.com/uid2SecureSignal.js")};window.addEventListener("load",function(){window._dfpObj.storedHash();if(window._dfpObj.emhash||window._dfpObj.phhash){window._dfpObj.callWhenBrowserIsIdle(window._dfpObj.uuid) }});googletag.cmd.push(function(){var a=window._dfpObj.getCookie("__uid2_advertising_token")?"1":"0";window.googletag.pubads().setTargeting("_uid2",a);window._dfpObj.delete_cookie("__uid2_advertising_token","jeetbetwin.com")});window._dfpObj.id5Execute=function(){var a=[];if(window._dfpObj.emhash){a[1]=window._dfpObj.emhash}else{if(window._dfpObj.phhash){a[2]=window._dfpObj.phhash}}pdString=btoa(Object.keys(a).map(function(c){return c+"="+a[c]}).join("&"));var b=ID5.init({partnerId:173,pd:pdString}).onAvailable(function(c){window._dfpObj.myID5=c.getUserId(); localStorage.setItem("id5id",window._dfpObj.myID5)})};window._dfpObj.id5=function(){window._dfpObj.loadJS("http://cdn.id5-sync.com/api/1.0/id5-api.js",true,window._dfpObj.id5Execute)};if(window.location.href.indexOf("105566030")>-1){window._dfpObj.id5()}(function(){var b=function(){var d=window.location.host.indexOf("stg")>-1?"toidev":"timesofindia";d=window.location.host.indexOf("toidev")>-1?"toidev":d;d=window.location.host.indexOf("localhost")>-1?"toidev":d;d=window.location.href.indexOf("liveAdFile")>-1?"timesofindia":d; window._dfpObj.loadJS("http://"+d+".jeetbetwin.com/toiads_react_lazy/minify-1.cms",true)};var a=[b];window._dfpObj.lazyQueue=[];window._dfpObj.executeFuncAfterFirstADCall=function(d,f){if(a===0&&typeof d==="function"){d()}else{if(f){a.forEach(function(g){g()});a=0}else{a.push(d)}}};window._dfpObj.executeFuncAfterLazyADFile=function(f,d){window._dfpObj.lazyQueue.push({action:f,args:d})};var c=window._dfpObj.isToiPage&&!window._dfpObj.isNewGAMAd;if(c){window.geoCallback(function(d){window.googletag.cmd.push(function(){var h=window.adsconfig&&window.adsconfig.toiad_props&&window.adsconfig.toiad_props.props; var f=h&&h[0]&&h[0].ref&&window.checkJarvisIsAdActive(h[0].ref)===1&&h[0].ref.lists;var l=h&&h[1]&&h[1].ref&&window.checkJarvisIsAdActive(h[1].ref)===1&&h[1].ref.lists;if(l){for(var g=0;g