1/* Source and licensing information for the line(s) below can be found at https://www.lovematters.in/modules/custom/rnw_gdpr_cookie/js/cookie.js. */ 2document.addEventListener('DOMContentLoaded',function(event){var cookie={set:function(name,value,days){if(typeof days==='undefined')days=theme.cookie.timeout;var expires="";if(days){var date=new Date();date.setTime(date.getTime()+(days*24*60*60*1e3));expires="; expires="+date.toGMTString()};document.cookie=name+"="+value+expires+"; path=/"},get:function(name){var name=name+"=",ca=document.cookie.split(';');for(var i=0;i<ca.length;i++){var c=ca[i];while(c.charAt(0)==' ')c=c.substring(1);if(c.indexOf(name)==0)return c.substring(name.length,c.length)};return null},del:function(name){this.create("",name,-1)},check:function(name){if(this.cookieGet(name)!==null)return true;return false},update:function(name,days){if(this.cookieCheck(name)){value=this.cookieGet(name);this.cookieSet(value,name,days);return true};return false}}}) 3/* Source and licensing information for the above line(s) can be found at https://www.lovematters.in/modules/custom/rnw_gdpr_cookie/js/cookie.js. */; 4/* Source and licensing information for the line(s) below can be found at https://www.lovematters.in/modules/custom/rnw_gdpr_cookie/js/consent.js. */ 5document.addEventListener('DOMContentLoaded',function(event){var consent={holder:false,id:'gdpr-banner',cookieValue:null,banner:{yes:{id:'gdpr-banner-agree',func:function(e){consent.hideBanner();consent.given('all')}},no:{id:'gdpr-banner-no',func:function(e){e.preventDefault();consent.hideBanner();consent.given('functional')}}},info:'gdpr-info-message',privacy:{ButtonAll:{id:'gdpr-privacy-button-all',func:function(){consent.given('all')}},ButtonFunctional:{id:'gdpr-privacy-button-functional',func:function(){consent.given('functional')}}},cookieName:'gdpr',days:90,init:function(){this.cookieValue=cookie.get(this.cookieName);if(this.cookieValue==null||this.cookieValue=='nochoice')this.showBanner();this.setGTMValue();this.listenForPrivacyButtons()},listenForBannerButtons:function(){var set={};for(key in this.banner){set[key]=document.getElementById(this.banner[key].id);if(set[key]!=null)set[key].addEventListener("click",consent.banner[key].func)}},listenForPrivacyButtons:function(){var set={};for(key in this.privacy){set[key]=document.getElementById(this.privacy[key].id);if(set[key]!=null)set[key].addEventListener("click",consent.privacy[key].func)};this.setPrivacyValue()},setPrivacyValue:function(){var message=document.getElementById(this.info);if(message==null)return;if(this.cookieValue=='all'){message.innerText=gdprstatus.all}else message.innerText=gdprstatus.functional},showBanner:function(){var el=document.getElementById(this.id);this.holder=el.cloneNode(true);this.holder.classList.remove("display_none");el.parentNode.removeChild(el);document.body.insertBefore(this.holder,document.body.firstChild);this.listenForBannerButtons()},hideBanner:function(){var el=document.getElementById(this.id);el.parentNode.removeChild(el)},given:function(val){cookie.set(this.cookieName,val,this.days);this.setGTMValue();this.cookieValue=val;this.setPrivacyValue()},setGTMValue:function(){var val=false;if(cookie.get(this.cookieName)=='all')val=true;dataLayer.push({event:'allowAdFeatures',eventAction:'allowAdFeatures',eventLabel:val})}},cookie={set:function(name,value,days){if(typeof days==='undefined')days=theme.cookie.timeout;var expires="";if(days){var date=new Date();date.setTime(date.getTime()+(days*24*60*60*1e3));expires="; expires="+date.toGMTString()};document.cookie=name+"="+value+expires+"; path=/"},get:function(name){var name=name+"=",ca=document.cookie.split(';');for(var i=0;i<ca.length;i++){var c=ca[i];while(c.charAt(0)==' ')c=c.substring(1);if(c.indexOf(name)==0)return c.substring(name.length,c.length)};return null},del:function(name){this.create("",name,-1)},check:function(name){if(this.cookieGet(name)!==null)return true;return false},update:function(name,days){if(this.cookieCheck(name)){value=this.cookieGet(name);this.cookieSet(value,name,days);return true};return false}};consent.init()}) 6/* Source and licensing information for the above line(s) can be found at https://www.lovematters.in/modules/custom/rnw_gdpr_cookie/js/consent.js. */; 7/* Source and licensing information for the line(s) below can be found at https://www.lovematters.in/modules/contrib/copyprevention/js/copyprevention.js. */ 8(function($,Drupal,window,document,undefined){Drupal.behaviors.copyprevention={attach:function(context,settings){$.each(settings.copyprevention.body,function(index,value){$('body').bind(value,function(event){return false})});var $images=$('img',context);$.each(settings.copyprevention.images,function(index,value){if(value=='contextmenu')$images.bind('contextmenu',function(event){return false});if(value=='transparentgif')Drupal.copyprevention.initialize($images,settings)})}};Drupal.copyprevention={initialize:function($images,settings){var self=this;$images.each(function(index,Element){if($(this).hasClass('copyprevention-processed'))return;$(this).addClass('copyprevention-processed');
8if(this.naturalWidth==0||this.naturalHeight==0){$(this).bind('load',function(){self.process.call(this,settings)})}else self.process.call(this,settings)})},process:function(settings){if(this.naturalWidth>settings.copyprevention.images_min_dimension||this.naturalHeight>settings.copyprevention.images_min_dimension)$(this).bind('mouseover touchstart',function(event){var pos=$(this).position(),html='<div class="copyprevention-transparent-gif" style="position: absolute; left: '+pos.left+'px; top: '+pos.top+'px"><img src="'+settings.copyprevention.transparentgif+'" style="width: '+this.clientWidth+'px !important; height: '+this.clientHeight+'px !important;"></div>',$overlay=$(html).insertAfter(this).bind('mouseout',function(e){$overlay.remove()})})}}})(jQuery,Drupal,window,this.document) 9/* Source and licensing information for the above line(s) can be found at https://www.lovematters.in/modules/contrib/copyprevention/js/copyprevention.js. */; 10/* Source and licensing information for the line(s) below can be found at https://www.lovematters.in/modules/custom/rnw_google_tagmanager/js/rnw_google_tagmanager_v2.js. */ 11var TGM={pausetime:500,clickEventTracker:function(selector,callback,container){if(typeof container==='undefined')container='body';jQuery(container).on('click',selector,function(e){callback(jQuery(this),e)})},sendData:function(dataArray){dataLayer.push(dataArray);this.pausecomp(this.pausetime)},objToString:function(obj,level){var out='';for(var i in obj)if(obj.hasOwnProperty(i)){for(loop=level;loop>0;loop--)out+=" ";if(obj[i]instanceof Object){out+=i+" (Object):\n";out+=TGM.objToString(obj[i],level+1)}else out+=i+": "+obj[i]+"\n"};return out},pausecomp:function(ms){if(window.location.hostname.indexOf("stage.")>-1||window.location.hostname.indexOf("local.")>-1)console.log(TGM.objToString(dataLayer,0));ms+=new Date().getTime();while(new Date()<ms);},getWordCount:function(nodeContent){working=jQuery(nodeContent).clone();working.find("script,section.comments").remove();var wordCountTemp=working.text().replace(/(^\s*)|(\s*$)/gi,"").replace(/[ ]{2,}/gi," ").replace(/\n /,"\n"),wordCount=wordCountTemp.split(' ').length;if(wordCount>3e3){return"3k+"}else if(wordCount>2500){return"2.5k-3k"}else if(wordCount>2e3){return"2k-2.5k"}else if(wordCount>1500){return"1.5k-2k"}else if(wordCount>1100){return"1.1k-1.5k"}else if(wordCount>800){return"800-1.1k"}else if(wordCount>500){return"500-800"}else if(wordCount>200){return"200-500"}else return"<200"},getTitleLength:function(){var wordCountTemp=document.title;wordCountTemp=wordCountTemp.replace(/(^\s*)|(\s*$)/gi,"");wordCountTemp=wordCountTemp.replace(/[ ]{2,}/gi," ");wordCountTemp=wordCountTemp.replace(/\n /,"\n");var wordCount=wordCountTemp.split(' ').length;if(wordCount>20){return"21+"}else if(wordCount>16){return"17-20"}else if(wordCount>12){return"13-16"}else if(wordCount>10){return"11-12"}else if(wordCount>8){return"9-10"}else if(wordCount>6){return"7-8"}else if(wordCount>4){return"5-6"}else if(wordCount>2){return"3-4"}else return"<3"},getDomainName:function(){var noTLD=location.host.replace(/^(\.com|\.cn|\.nl|\.org|\.in|\.co\.ke)/gi,""),output='';if(location.host==='localhost')return location.host;parts=noTLD.split(".");var cnt=parts.length;if(cnt>=2){output=parts[parts.length-1]}else output=noTLD;return output},getImageCount:function(nodeContent){var numImages=jQuery(nodeContent+" img").length;if(numImages>20){return"21+"}else if(numImages>15){return"16-20"}else if(numImages>10){return"11-15"}else if(numImages>7){return"8-10"}else if(numImages>5){return"6-7"}else if(numImages>3){return"4-5"}else if(numImages>1){return"2-3"}else if(numImages>0){return"1"}else return"0"},getVideoCount:function(nodeContent){var regex=/(?:https?:)?\/\/www\.youtube\.com\/embed\/([\w-]{11})(?:\?.*)?/,content=jQuery(nodeContent).html(),matches=content.match(regex);if(matches&&matches.length>
111){var numVideos=matches.length-1;if(numVideos>9){return"10+"}else if(numVideos>7){return"8-9"}else if(numVideos>5){return"6-7"}else if(numVideos>3){return"4-5"}else if(numVideos>2){return"3"}else if(numVideos>1){return"2"}else if(numVideos>0){return"1"}else return"0"}else return"0"},linkIsExternal:function(linkElement){return(linkElement.host!==window.location.host)},readingTimeout:function(){setTimeout(function(){dataLayer.push({event:'article_interaction',eventAction:'timer_25s',eventLabel:window.location.pathname})},25*1e3)}};jQuery(document).ready(function($){TGM.readingTimeout();var links=document.getElementsByTagName('a');for(var i=0;i<links.length;i++){if(TGM.linkIsExternal(links[i])){if($(links[i]).hasClass('share-button')===true){links[i].dataset.event="social_engagement";links[i].dataset.action="share";links[i].dataset.label=$(links[i]).text()}else if($(links[i]).parent('.social-footer')===true){links[i].dataset.event="social_engagement";links[i].dataset.action="follow";links[i].dataset.label=$(links[i]).text()}else if($(links[i]).hasClass('fontsprite')===false){links[i].dataset.event="external_linkclick";links[i].dataset.action=links[i].getAttribute("href");links[i].dataset.label=window.location.pathname}}else if($(links[i]).hasClass('view-more')===true){links[i].dataset.event="article_interaction";links[i].dataset.action="keep_reading_button";links[i].dataset.label=links[i].getAttribute("href")}else if($(links[i]).closest('#navigation').length){links[i].dataset.event="menu";links[i].dataset.action="hamburger_navigation";links[i].dataset.label=links[i].getAttribute("href")}else if($(links[i]).hasClass('js-ajax-comments-reply')===true){if(dataLayer[0].hasOwnProperty('page_category')){links[i].dataset.event="comment";links[i].dataset.action="reply";links[i].dataset.label=dataLayer[0].page_category}}else if($(links[i]).find('picture').length){links[i].dataset.event="internal_linkclick";links[i].dataset.action="picture";links[i].dataset.label=links[i].getAttribute("href")}else if($(links[i]).is("[typeof]")){if($(links[i]).attr('typeof')==='schema:Person'){links[i].dataset.event="internal_linkclick";links[i].dataset.action="name";links[i].dataset.label=links[i].getAttribute("href")}}else if($(links[i]).closest("div.related-stories").length){links[i].dataset.event="internal_linkclick";links[i].dataset.action="related_story";links[i].dataset.label=links[i].getAttribute("href")}else{linkType='internal';if($(links[i]).find('picture').length||$(links[i]).find('img').length)linkType='image';links[i].dataset.event="internal_linkclick";links[i].dataset.action=linkType;links[i].dataset.label=links[i].getAttribute("href")};if($(links[i]).closest('.grid.footer-boxes').length){links[i].dataset.event="menu";links[i].dataset.action="bottom_navigation";links[i].dataset.label=links[i].getAttribute("href")}} 12function makePageStats(){var nodeContent='main';if(nodeContent!==""){dataLayer.push({event:'image_count',eventAction:'image_count',eventLabel:TGM.getImageCount(nodeContent)});dataLayer.push({event:'word_count',eventAction:'word_count',eventLabel:TGM.getWordCount(nodeContent)});dataLayer.push({event:'video_count',eventAction:'video_count',eventLabel:TGM.getVideoCount(nodeContent)})};dataLayer.push({event:'word_count',eventAction:'title',eventLabel:TGM.getTitleLength()})};makePageStats();if($('section.comments').length)$("section.comments input[type='submit']").on('touchstart mousedown',function(e){e.preventDefault();TGM.sendData({events:{action:'success',category:'comments',label:window.location.pathname},event:'interaction'})});$('body').on('click','a',function(){if($(this).attr('data-event')){if($(this).hasClass('button')&&$(this).hasClass('view-more'))return;if($(this).attr('data-action')!=='undefined'&&$(this).attr('data-event')!=='undefined'&&$(this).attr('data-label')!=='undefined')TGM.sendData({events:{action:$(this).attr('data-action'),category:$(this).attr('data-event'),label:$(this).attr('data-label')},event:'interaction'})}})});var gtmYTPlayers=[];for(var e=document.getElementsByTagName("iframe"),x=e.length;x--;)if(/youtube.com\/embed/.test(e[x].src))if(e[x].src.indexOf('enablejsapi=')===-1)e[x].src+=(e[x].src.indexOf('?')===-1?'?':'&')+'enablejsapi=1' 13function onPlayerPercent(e){if(e.getPlayerState()===YT.PlayerState.PLAYING){var t=e.getDuration()-e.getCurrentTime()<=1.5?1:(Math.floor(e.getCurrentTime()/e.getDuration()*10)/10).toFixed(2);if(parseFloat(t)<0.25){t=0.00}else if(parseFloat(t)<0.5){t=0.25}else if(parseFloat(t)<0.75){t=0.50}else if(parseFloat(t)<0.9){t=0.75}
13else if(parseFloat(t)<1)t=0.90;t=t.toFixed(2);if(!e.lastP||t>e.lastP){var video_data=e.getVideoData(),label=video_data.title,title=label.toLowerCase().replace(/[&\/\\#,+()$~%.'":*?<>{}-]/g,'_').replace(/\s/g,'');e.lastP=t;dataLayer.push({event:"youtube",eventCategory:'video_youtube',eventAction:t*100+"%",eventLabel:title})};if(e.lastP!==1)setTimeout(onPlayerPercent,1e3,e)}} 14function onPlayerStateChange(e){if(e.data===YT.PlayerState.PLAYING)setTimeout(onPlayerPercent,1e3,e.target);var video_data=e.target["getVideoData"](),label=video_data.title,title=label.toLowerCase().replace(/[&\/\\#,+()$~%.'":*?<>{}-]/g,'_').replace(/\s/g,'');if(e.data===YT.PlayerState.PLAYING&&YT.gtmLastAction==="p"){dataLayer.push({event:'youtube',eventCategory:'video_youtube',eventAction:'play',eventLabel:title});YT.gtmLastAction=""};if(e.data===YT.PlayerState.PAUSED){dataLayer.push({event:'youtube',eventCategory:'video_youtube',eventAction:'pause',eventLabel:title});YT.gtmLastAction="p"}} 15function onPlayerError(e){if(e.data===YT.PlayerState.PLAYING)setTimeout(onPlayerPercent,1e3,e.target);var video_data=e.target["getVideoData"](),label=video_data.title,title=label.toLowerCase().replace(/[&\/\\#,+()$~%.'":*?<>{}-]/g,'_').replace(/\s/g,'');dataLayer.push({event:'youtube',eventCategory:'video_youtube',eventAction:'error: '+e,eventLabel:title})} 16function onYouTubeIframeAPIReady(){for(var e=document.getElementsByTagName("iframe"),x=e.length;x--;)if(/youtube.com\/embed/.test(e[x].src)){gtmYTPlayers.push(new YT.Player(e[x],{events:{onStateChange:onPlayerStateChange,onError:onPlayerError}}));YT.gtmLastAction="p"}};window.addEventListener('beforeunload',function(){for(var i=0;i<gtmYTPlayers.length;i++)if(gtmYTPlayers[i].getPlayerState()===1){var video_data=gtmYTPlayers[i]['getVideoData'](),label=video_data.title,title=label.toLowerCase().replace(/[&\/\\#,+()$~%.'":*?<>{}-]/g,'_').replace(/\s/g,'');dataLayer.push({event:'youtube',eventCategory:'video_youtube',eventAction:'exit',eventLabel:title})}});var j=document.createElement("script"),f=document.getElementsByTagName("script")[0];j.src="//www.youtube.com/iframe_api";j.async=true;f.parentNode.insertBefore(j,f) 17/* Source and licensing information for the above line(s) can be found at https://www.lovematters.in/modules/custom/rnw_google_tagmanager/js/rnw_google_tagmanager_v2.js. */;
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.