Popular security solutions provider and leading anti-virus brand, Symantec, has in its latest move looked at safeguarding the popular Android platform, with a new anti-virus app.
{{#if (eq data.displaytext "LIVE") }}
{{/if}}
`;const s=async()=>{let s=e(".widgt_crd_sec_artcl_wrap"),a=s.attr("data-match-id");if(a){let e=`https://cricketnext.nw18.com/sports/csr/feed/match_${a}_en.json`;try{const r=await o(e,{timeout:5e3}),a=await r.json();if(a.hasOwnProperty("matchType")){a.displaytext="LIVE",a.displayclass="sprovr_liv_e",a.displayequation=a.equation,a.displayteamb=a.teamb,a.displayteamb_id=a.teamb_id;let e=a.status.toLowerCase();e=="match yet to begin"?(a.displaytext="UPCOMING",a.displayclass="upcoming",a.displayequation=a.venueName):e=="match abandoned"?(a.displaytext="ABANDONED",a.displayclass="upcoming"):e=="match ended"?(a.displaytext="RESULT",a.displayclass="rslts",a.displayequation=a.matchresult,clearInterval(n),n=null):e=="match cancelled"?(a.displaytext="CANCELLED",a.displayclass="upcoming",clearInterval(n),n=null):e=="innings break"&&(a.displaytext="Innings Break"),a.firstInnings.status&&!a.secondInnings.status&&a.firstInnings.battingTeamId==a.teamb_id&&(a.displayteamb=a.teama,a.displayteamb_id=a.teama_id);const o=a?.fourthInnings?.status==1?a?.fourthInnings:a?.thirdInnings?.status==1?a?.thirdInnings:a?.secondInnings?.status==1?a?.secondInnings:a?.firstInnings?.status==1?a?.firstInnings:[];a.filteredBatsmen=o?.batsmen?.list?.filter(function(e){return e?.Howout==="Batting"}),a.firstBowler=o?.bowler?.list?.find(function(e){return e?.Bowling==="yes"});let r=a.teama_en,c=a.teamb_en;a?.firstInnings&&(r=a?.teams[a?.firstInnings?.battingTeamId]?.name.replace(",","").replace(" ","-").toLowerCase(),c=a?.teams[a?.firstInnings?.Bowlingteam_id]?.name.replace(",","").replace(" ","-").toLowerCase()),a.scorecard_url="/firstcricket/cricket-live-score/"+r+"-vs-"+c+"-"+a.matchType.toLowerCase()+"-live-cricket-score-full/"+a.seriesId+"/"+a.matchId+".html";let l=t.compile(i),d=l({data:a,config});s.html(""),s.append(d)}else s.remove()}catch(e){console.log("Error from fetchCricketData:",e)}}else clearInterval(n),n=null,s.remove()};s(),t.registerHelper("tolower",function(e){return e.fn(this).toLowerCase()}),t.registerHelper("tolowerandunderscore",function(e){return e.fn(this).toLowerCase().replace(/[&/\\#, +()$~%.'":*?<>{}]/g,"-")}),t.registerHelper("eq",function(e,t){return e===t}),n=setInterval(function(){s()},1e4)})
require(["jquery","handlebars"],function(e,t){async function o(e,t={}){const{timeout:s=8e3}=t,n=new AbortController,o=setTimeout(()=>n.abort(),s),i=await fetch(e,{...t,signal:n.signal});return clearTimeout(o),i}let n;var i=`
{{data.match_group}}, {{data.series_name}}
{{data.displaytext}}
{{#if data.teama_stats.events}}
{{#if data.is_shootout}}
({{data.teama_shootout_score}})
{{/if}}
{{data.teama_stats.events.goals}}
{{else}}
{{/if}}
{{#if data.teamb_stats.events}}
{{#if data.is_shootout}}
({{data.teamb_shootout_score}})
{{/if}}
{{data.teamb_stats.events.goals}}
{{else}}
{{data.match_time_ist}} IST
{{/if}}
`;const s=async()=>{let s=e(".fotbl_scorcrd_widgt_wrap"),a=s.attr("data-match-id");if(a){let e=`https://events.nw18.com/n18sports/cricket/v1/en/football/match/${a}`;try{const r=await o(e,{timeout:5e3}),a=await r.json();if(a.hasOwnProperty("data")){const e=a.data;e.league_code=="euro"&&(e.defaultImage="https://images.news18.com/dlxczavtqcctuei/news18/static/images/english/euro-cup/euro-og-image.png"),e.league_code=="epl"&&(e.defaultImage="https://images.news18.com/dlxczavtqcctuei/news18/static/images/english/euro-cup/epl-default.png"),e.league_code=="india_sl"&&(e.defaultImage="https://images.news18.com/dlxczavtqcctuei/news18/static/images/english/Indian_super_league_logo.png"),e.teamaImagePath=e.teama.toLowerCase().replace(/\s+/g,"-"),e.teambImagePath=e.teamb.toLowerCase().replace(/\s+/g,"-");const o=e.match_status.toLowerCase();console.log("status",o),o=="1st half"||o=="2nd half"?(e.displaytext="LIVE",e.displayclass="sprovr_liv_e",e.displayequation=`${e?.match_status} in progress`):o=="half time"?(e.displaytext="LIVE",e.displayclass="sprovr_liv_e",e.displayequation=e?.match_status):o=="yet to begin"?(e.displaytext="UPCOMING",e.displayclass="upcoming",e.displayequation=e.venue_name):o=="match completed"?(e.displaytext="RESULT",e.displayclass="rslts",e.displayequation=e.match_result,clearInterval(n),n=null):o=="match postponed"?(e.displaytext="POSTPONED",e.displayclass="upcoming",e.displayequation=e.venue_name,clearInterval(n),n=null):(e.displaytext=e?.match_status,e.displayclass="upcoming",e.displayequation=e.venue_name);let r=t.compile(i),c=r({data:e});s.html(""),s.append(c)}else s.remove(),clearInterval(n),n=null}catch(e){console.log("Error from fetchFootballData:",e),s.remove(),clearInterval(n),n=null}}else s.remove()};s(),n=setInterval(()=>{s()},1e4)})
require(["jquery","handlebars"],function(e,t){const n="https://www.firstpost.com";function g(){return!(!navigator.userAgent.match(/Android/i)&&!navigator.userAgent.match(/webOS/i)&&!navigator.userAgent.match(/iPhone/i)&&!navigator.userAgent.match(/iPod/i)&&!navigator.userAgent.match(/iPad/i)&&!navigator.userAgent.match(/Blackberry/i)&&!navigator.userAgent.match(/UCWEB/i))}if(!g())return;var d=`
{{#if (eq is_livetv true)}}Live Now{{else}}From our shows{{/if}}
`;const r=async e=>{try{const t=await s(e,{timeout:2e3});if(!t.ok)throw new Error("Failed to fetch config");return await t.json()}catch(e){return console.error("PIP Config Error:",e),{enable_pip:!1}}},l=e=>{try{const t=e?.data?.["event-switcher"]?.data;if(!Array.isArray(t))return console.warn("No valid event-switcher list found"),!1;const n=t.find(e=>e.slug==="mweb-recom-video-pip");return n?n.switcher===1:(console.warn("PIP Config not found for mweb-recom-video-pip"),!1)}catch(e){return console.error("Error parsing event switcher data:",e),!1}},c=async e=>{const d=e.attr("data-event-switcher-api-url"),u=await r(d),h=l(u),s="pipClosed",o=document.getElementById("close-pip"),i=document.getElementById("countdown-text"),n=document.querySelector(".progress-ring-circle"),t=document.querySelector(".ftrvd"),m=sessionStorage.getItem(s);if(!h||m||!t){t.removeAttribute("id");return}let a=!1;const c=()=>{const s=document.querySelector(".livtv_and_video_widgt_wrap"),e=s?.getBoundingClientRect()||{},o=e.top
0,n=document.querySelector(".dtl-vdo-wrap");if(!a){const e=!n||n.getBoundingClientRect().bottom<0;if(e&&window.scrollY>400)t.setAttribute("id","videopip"),a=!0,f();else{t.removeAttribute("id");return}}o?t.removeAttribute("id"):t.setAttribute("id","videopip")},f=()=>{const s=30;let e=s;const a=n.r.baseVal.value,t=2*Math.PI*a;n.style.strokeDasharray=`${t} ${t}`,n.style.strokeDashoffset="0";const r=e=>{const o=t-e/s*t;n.style.strokeDashoffset=o},c=setInterval(()=>{e-=1,e>=0?(i.innerText=e,r(e)):(clearInterval(c),i.style.display="none",o.style.display="flex")},1e3)};o.addEventListener("click",()=>{t.style.display="none",t.innerHTML="",sessionStorage.setItem(s,"true")}),window.addEventListener("scroll",()=>{c()}),c()};async function s(e,t={}){const{timeout:s=8e3}=t,n=new AbortController,o=setTimeout(()=>n.abort(),s),i=await fetch(e,{...t,signal:n.signal});return clearTimeout(o),i}const a=e=>{try{return e&&e.replace(/\\/g,"")}catch(t){return console.log(t),e}};function i(e){const[t,n,s,o]=e.split(":").map(Number);return t*36e5+n*6e4+s*1e3+o}function u(e){return e.reduce((e,t)=>i(t.duration)>i(e.duration)?t:e)}const h=async(e,t)=>{try{const[n,o]=await Promise.all([s(e,{timeout:5e3}),s(t,{timeout:5e3})]),i=await n.json(),a=await o.json(),r=u(a.data),c={data:[r]};return{liveTvData:i,featuredVideoData:c}}catch(e){return console.error("Error fetching data concurrently:",e),null}},m=async()=>{const s=e(".livtv_and_video_widgt_wrap"),l=s.attr("data-livetv-switcher-api-url"),u=s.attr("data-featured-video-api-url"),f=s.attr("data-env"),p=s.attr("data-category"),g=s.attr("data-page-url");if(!l&&!u){s.remove();return}const i=await h(l,u);if(!i||!i.liveTvData.hasOwnProperty("data")){s.remove();return}const o=i.liveTvData.data["FP2.0_fact_live"],m=o?.is_live==="yes";let r={};if(m)r={is_livetv:m,iframeSrcUrl:"https://images.firstpost.com/dlxczavtqcctuei/news18/static/html/fplivetv.html?v=1.2&min-width=156&pip=true",title:o?.authorDetail?.[0]?.name?`${o?.showTitle} by ${o?.authorDetail?.[0]?.name}`:o?.customshowtitle,description:a(o?.title),thumbnailImage:"https://images.firstpost.com/dlxczavtqcctuei/news18/static/images/fp/firstpost-placeholder.jpg",showsName:o?.showTitle=="Vantage"?`${n}/${o?.showSlug}/`:o?.showSlug?`${n}/web-show/${o?.showSlug}/`:"/video-listing/",redirectUrl:"/livetv/"};else{const e=i.featuredVideoData.data[0];r={is_livetv:!1,iframeSrcUrl:`https://images.firstpost.com/dlxczavtqcctuei/news18/prod/firstpost.html?guid=${e?.mongo_id||e?.pg_id}&height=87§ion_name=${p}&article_id=${e?.id}&city_name=''&district_name=''&state_name=''&language=en&video_type='non-local18'&video_event=video_recommendations&domain=www.firstpost.com&language_env=${f}&data-taboola=yes&data-article-type='article'&data-page-url=${g}&v=1.4&min-width=156&pip=true`,title:`${e?.shows[0]?.title} by ${e?.author_byline?.[0]?.name}`,description:a(e?.title),thumbnailImage:e?.images?.["16x9"]?.url,showsName:e.shows[0]?.title=="Vantage"?`${n}/${e.shows[0]?.slug}/`:e.shows[0]?.slug?`${n}/web-show/${e.shows[0]?.slug}/`:"/video-listing/",redirectUrl:e?.weburl?`${n}${e?.weburl}`:"/video-listing/"}}let v=t.compile(d),b=v(r);s.html(""),s.append(b),await c(s)};function f(){setTimeout(()=>{m()},1e3)}function p(){const e=document.querySelector(".mid-taboola");if(!e)return;const t=new IntersectionObserver((e,t)=>{e[0].isIntersecting&&(f(),t.disconnect())},{root:null,threshold:1});t.observe(e)}const o=document.getElementById("ssr_read_more");o&&o.addEventListener("click",e=>{e.stopPropagation(),e.preventDefault(),requestAnimationFrame(()=>{p()})},{once:!0}),t.registerHelper("eq",(e,t)=>e===t)})
require(["jquery","handlebars"],function(e,t){const v="https://www.firstpost.com";function u(){return!(!navigator.userAgent.match(/Android/i)&&!navigator.userAgent.match(/webOS/i)&&!navigator.userAgent.match(/iPhone/i)&&!navigator.userAgent.match(/iPod/i)&&!navigator.userAgent.match(/iPad/i)&&!navigator.userAgent.match(/Blackberry/i)&&!navigator.userAgent.match(/UCWEB/i))}if(u())return;var a,c,s=u(),i=s?120:180,d=s?"100%":320,m=s?"mobile":"desktop",b=`{{#if is_livetv}}
{{else}}
{{/if}}
`;const f=e=>{try{const t=e?.data?.["event-switcher"]?.data;if(!Array.isArray(t))return console.warn("No valid event-switcher list found"),!1;const n=t.find(e=>e.slug==="desktop-recom-video-pip");return!!n&&n.switcher===1}catch(e){return console.error("Error parsing event switcher data:",e),!1}};let n={};const h=async e=>{const r="pipClosed",i=document.getElementById("close-pip"),c=document.getElementById("countdown-text"),n=document.querySelector(".progress-ring-circle"),t=document.getElementById("pip-video"),l=e?.attr("data-event-switcher-api-url");if(!l){console.error("Missing data-event-switcher-api-url attribute.");return}let a=!1;try{const e=await o(l,{timeout:5e3}),t=await e.json();a=f(t)}catch(e){console.error("Error in initializePipVideo:",e)}a||(t.innerHTML="",t.style.display="none");const d=()=>{!sessionStorage.getItem(r)&&a&&setTimeout(()=>{if(t.style.display="block",s){const s=15;let e=s;const o=n.r.baseVal.value,t=2*Math.PI*o;n.style.strokeDasharray=`${t} ${t}`,n.style.strokeDashoffset="0";const a=e=>{const o=t-e/s*t;n.style.strokeDashoffset=o},r=setInterval(()=>{e-=1,e>=0?(c.innerText=e,a(e)):(clearInterval(r),c.style.display="none",i.style.display="flex")},1e3)}else i.style.display="flex"},0)};i.addEventListener("click",()=>{t.style.display="none",t.innerHTML="",sessionStorage.setItem(r,"true")}),window.addEventListener("scroll",()=>{window.innerWidth<768&&(window.scrollY>100?t.classList.add("sticky"):t.classList.remove("sticky"))}),d()};async function o(e,t={}){const{timeout:s=8e3}=t,n=new AbortController,o=setTimeout(()=>n.abort(),s),i=await fetch(e,{...t,signal:n.signal});return clearTimeout(o),i}const r=e=>{try{return e&&e.replace(/\\/g,"")}catch(t){return console.log(t),e}};function l(e){const[t,n,s,o]=e.split(":").map(Number);return t*36e5+n*6e4+s*1e3+o}function p(e){return e.reduce((e,t)=>l(t.duration)>l(e.duration)?t:e)}const g=async(e,t)=>{try{const[n,s]=await Promise.all([o(e,{timeout:5e3}),o(t,{timeout:5e3})]),i=await n.json(),a=await s.json(),r=p(a.data),c={data:[r]};return{liveTvData:i,featuredVideoData:c}}catch(e){return console.error("Error fetching data concurrently:",e),null}};a=function(e){let n=e==="STG"||e==="staging"?"staging":"production";var t,o,s={env:n,access_token:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiI2MjhjZWFkYzUxZmQzZjBjNDBhZGE4ZTgiLCJzY29wZSI6IklOX0hPVVNFIiwic2Vzc2lvbl9pZCI6ImY1OGU3ZWQ0LTdjNGUtNGEzYy1hOWI5LTQzNzE1ZGVjMDQxOCIsImZpcnN0bmFtZSI6IlByZWV0YW0iLCJsYXN0bmFtZSI6IkNoYWtyYWJvcnR5IiwiZW1haWxfaWQiOiJQcmVldGFtLkNAbncxOC5jb20iLCJpYXQiOjE3MTQ2MzY2NTksImV4cCI6MTc0NjE3MjY1OX0.EvDspcfreBf2o8AzcGeBg2GLLYJiBmK3cbTgtN5IhdU",new_access_token:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJkYXRhIjp7InVzZXJJZCI6IjYyMzZhNzIyLTBiY2ItNDM2OC04OTg1LWRmOTcxYmIwNmIzNyJ9LCJpYXQiOjE3NDcxNDE2ODIsImV4cCI6MTc3ODY3NzY4Mn0.6pbnza6tXZk3d71baIduy_aVlk7IHjfWs1cPOamKmIQ",website:{id:"5ee745560f4b0950cbcf4319",c3:"19",title:"Firstpost"},base_href:"https://images.news18.com/dlxczavtqcctuei/news18/prod/player/v-10/",version:"1.4",publisher_id:"6683813"};n!="staging"&&(s.access_token="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiI2ODIzNzE0MWNlNzcyYzE4NDU4YjBmNDUiLCJzY29wZSI6IklOX0hPVVNFIiwic2Vzc2lvbl9pZCI6ImQ4ZDhkMWJkLThhYzItNDA2ZS1hZGM1LTg5NTE1ZTI1ODg2MiIsImZpcnN0bmFtZSI6IlZpZGVvIiwibGFzdG5hbWUiOiJEZXZlbG9wZXIiLCJlbWFpbF9pZCI6IlZpZGVvLkRldmVsb3BlckBudzE4LmNvbSIsInJvdGF0ZSI6dHJ1ZSwiaWF0IjoxNzQ3MTUzNTAyLCJleHAiOjE3Nzg2ODk1MDJ9.DosBGJQQdG8UE81N1jgGhYNCJqLyto2wyj7dxYK0wHU"),window.PUBSTACK_VIDEO_CONFIG=s,o=document.getElementsByTagName("HEAD")[0],t=document.createElement("script"),t.src=`https://images.news18.com/dlxczavtqcctuei/news18/prod/player/v-10/player.fp.web.api.min.js?v=1.4`,t.addEventListener("load",()=>{c()}),t.onerror=function(e){console.error("Error loading Pubstack Player script:",e)},o.appendChild(t)},c=function(){try{var e=setInterval(function(){try{n!==null&&n!=="undefined"&&typeof n=="object"&&Object.keys(n).length>0?(window.pubstackJSLoaded&&clearInterval(e),window.refreshPubstackPlayers(n)):(window.pubstackJSLoaded&&clearInterval(e),window.refreshPubstackPlayers())}catch(e){console.log("err",e)}},1e3)}catch(e){console.error("Error in initializePlayer:",e)}};const j=e=>{let t=e.sort((e,t)=>e.type.toLowerCase().localeCompare(t.type.toLowerCase()));return t},y=(e,t=!0)=>{try{if(e?.sources?.length){let n={success:!0,message:"Success!",data:{videos:[{_id:e?.mongo_id||e?.pg_id,thumbnail:e?.images?.["16x9"]?.url||e?.images?.["9x16"]?.url,sources:j(e?.sources),title:e?.title,duration:e?.duration,player:"VIDGYORJS",ad_tag_desktop:t?"https://pubads.g.doubleclick.net/gampad/ads?iu=/1039154/FSTPST_ENG/FSTPST_ENG_VOD/FSTPST_ENG_VOD_AS/FSTPST_ENG_VOD_PREROL_AS_VOD_640&tfcd=0&npa=0&sz=640x480&gdfp_req=1&output=vast&unviewed_position_start=1&env=vp&impl=s&correlator=":null,ad_tag_pwa:t?"https://pubads.g.doubleclick.net/gampad/ads?iu=/1039154/FSTPST_ENG_PWA/FSTPST_ENG_VOD_PWA/FSTPST_ENG_VOD_PWA_AS/FSTPST_ENG_VOD_PREROL_AS_PWA_VOD_400&tfcd=0&npa=0&sz=400x300&gdfp_req=1&output=vast&unviewed_position_start=1&env=vp&impl=s&correlator=":null}]}};return n}return null}catch{}},_=async()=>{const o=e(".video_pip_sticky_widgt_wrap"),p=o.attr("data-livetv-switcher-api-url"),j=o.attr("data-featured-video-api-url"),_=o.attr("data-env"),w=o.attr("data-category"),O=o.attr("data-page-url");if(!p&&!j){o.remove();return}const l=await g(p,j);if(!l||!l.liveTvData.hasOwnProperty("data")){o.remove();return}const c=l.liveTvData.data["FP2.0_fact_live"],u=c?.is_live==="yes";let f={};if(u)f={is_livetv:u,iframeSrcUrl:"https://images.firstpost.com/dlxczavtqcctuei/news18/static/html/fplivetv.html?v=1.1",title:c?.authorDetail?.[0]?.name?`${c?.showTitle} by ${c?.authorDetail?.[0]?.name}`:c?.customshowtitle,description:r(c?.title),thumbnailImage:"https://images.firstpost.com/dlxczavtqcctuei/news18/static/images/fp/firstpost-placeholder.jpg",iframeHeight:i,iframeWidth:d,redirectUrl:"/livetv/",showTitle:c?.showTitle?c?.showTitle:"Now Playing"};else{const e=l.featuredVideoData.data[0];n=y(e),f={is_livetv:!1,iframeSrcUrl:`https://images.firstpost.com/dlxczavtqcctuei/news18/prod/firstpost.html?guid=${e?.mongo_id||e?.pg_id}&height=${i}§ion_name=${w}&article_id=${e?.id}&city_name=''&district_name=''&state_name=''&language=en&video_type='non-local18'&video_event=video_recommendations&domain=www.firstpost.com&language_env=${_}&data-taboola=yes&data-article-type='article'&data-page-url=${O}&v=1.3`,title:`${e?.shows[0]?.title} by ${e?.author_byline?.[0]?.name}`,description:r(e?.title),thumbnailImage:e?.images?.["16x9"]?.url,iframeHeight:i,iframeWidth:d,videoId:e.mongo_id||e.pg_id,articleId:e.id,platform:m,isMobile:s,redirectUrl:e?.weburl?`${v}${e?.weburl}`:"/video-listing/",showTitle:e?.shows[0]?.title?e?.shows[0]?.title:"Now Playing"}}let x=t.compile(b),C=x(f);o.html(""),o.append(C),h(o),u||a(_)};setTimeout(()=>{sessionStorage.getItem("pipClosed")||_()},5e3),t.registerHelper("eq",(e,t)=>e===t)})
window.addEventListener("load",()=>{try{const e=document.querySelector(".ads"),t=window.innerWidth<=1024;if(e&&t){const e=$(".ads"),t=e.find(".ad_slide");t.length>1&&e.slick({infinite:!0,slidesToShow:1,slidesToScroll:1,arrows:!1,dots:!1,autoplay:!0,autoplaySpeed:3e3})}}catch(e){console.log(e)}})
}