1!function(){function e(t,a,n){function o(r,c){if(!a[r]){if(!t[r]){var s="function"==typeof require&&require;if(!c&&s)return s(r,!0);if(i)return i(r,!0);var d=new Error("Cannot find module '"+r+"'");throw d.code="MODULE_NOT_FOUND",d}var l=a[r]={exports:{}};t[r][0].call(l.exports,function(e){return o(t[r][1][e]||e)},l,l.exports,e,t,a,n)}return a[r].exports}for(var i="function"==typeof require&&require,r=0;r<n.length;r++)o(n[r]);return o}return e}()({1:[function(e,t,a){var n={run:function(){function e(){var e=window.location.href;window.location.href=l+"?redirectToUrl="+e}function t(){var e=o();if(!e)return!1;var t=n();return console.log("logged",t,"token",e),!(!e||!t)}function a(e){var t=o();e.setRequestHeader("Authorization","Bearer "+t)}function n(){var e=s+"/service/api/v1/user",t=!1;return $.ajax({url:e,method:"get",contentType:"application/json",dataType:"json",beforeSend:a,async:!1,data:{flag:(new Date).getTime().toString(36)},success:function(e){console.log(e),l=e.login_url,t=!0},error:function(e){}}),t}function o(){var e,t=new RegExp("(^| )access_token=([^;]*)(;|$)");return(e=document.cookie.match(t))?unescape(e[2]):""}function i(){var e=o();e&&$.ajax({url:u,method:"post",data:JSON.stringify({access_token:e}),contentType:"application/json",dataType:"json",async:!0,cache:!1,success:function(e){200==e.code&&(1==e.data?$(".J_msg").addClass("active"):$(".J_msg").removeClass("active")),msgTimeId=setTimeout(i,1e4)},error:function(e){msgTimeId=setTimeout(i,1e4)}})}function r(e){for(var t=document.cookie.split("; "),a=0;a<t.length;a++){var n=t[a].split("=");if(n[0]==e)return n[1]}return null}function c(e){var t=new Date;t.setDate(t.getDate()-1);var a=e+"=1 ;path=/; domain=.cgtn.com ;expires="+t.toUTCString();document.cookie=a}var s,d,l,u,h,g=$(".J_login_warp").attr("data-domain"),p=r("passport_host"),f=r("account_host");p||f?(s=p,d=f,l=p+"/#/login",u=d+"/userInfo/getNotify",h=d+"/user/exit?redirectToUrl="):(s="https://passport.user.cgtn.com",d="https://account.user.cgtn.com",l="https://passport.user.cgtn.com/#/login",g&&(g.indexOf("stage")>-1||g.indexOf("dtest")>-1||g.indexOf("localhost")>-1)&&(s="https://test-passport.user.cgtn.com",d="https://test-account.user.cgtn.com",l="https://test-passport.user.cgtn.com/#/login"),u=d+"/userInfo/getNotify",h=d+"/user/exit?redirectToUrl="),function(){t()?($(".J_login").addClass("active"),$(".J_msg").addClass("active-msg"),$(".J_login_m").length>0&&$(".J_login_m").addClass("active"),$(".js-tools-dialog").hide()):($(".J_login").removeClass("active"),$(".J_msg").removeClass("active-msg"),$(".J_login_m").length>0&&$(".J_login_m").removeClass("active"))}(),i(),$(".J_msg").on("click",function(a){var n=$(".J_login_warp").attr("data-domain");t()?window.location.href=n+"/users/message.html":e()}),$(".J_login").on("click",function(a){t()?$(".J_login").addClass("active"):(e(),$(".J_login").removeClass("active"))}),$(".J_login_m").on("click",function(a){t()?($(".J_login_m").addClass("active"),"none"==$(".J_login_m .J_login_content").css("display")?$(".J_login_m .J_login_content").show():$(".J_login_m .J_login_content").hide()):(e(),$(".J_login_m").removeClass("active"))}),$(".J_accout").on("click",function(a){a.stopPropagation();var n=$(".J_login_warp").attr("data-domain");t()?window.location.href=n+"/users/account.html":e()}),$(".J_signout").on("click",function(e){c("passport_host"),c("account_host"),e.stopPropagation();var t=window.location.href;t&&(t.indexOf("users/account")>-1||t.indexOf("users/message")>-1)&&(t=t.indexOf("stage")>-1||t.indexOf("dtest")>-1?"https://dtest.cgtn.com":"https://www.cgtn.com"),window.location.href=h+t})}};t.exports=n},{}],2:[function(e,t,a){var n=e("../ng-g-login.js"),o={run:function(){function e(){var e=u.getBoundingClientRect(),t=e.bottom;l.style.top=t+"px",l.style.height="calc(100dvh - "+t+"px)"}function t(){var e=f.offsetHeight,t=p.getBoundingClientRect(),a=t.top+t.height/2,n=Math.round(a-e/2),o=window.innerHeight-e-8;n<8&&(n=8),n>o&&(n=o),f.style.top=n+"px"}function a(){v||(v=!0,f.style.display="block",t())}function o(){v&&(v=!1,f.style.display="none")}function i(){clearTimeout(w),w=setTimeout(function(){m||o()},80)}function r(e){var t=localStorage.getItem("x_auth_token"),a={};t&&(a.x_auth_token=t),$.ajax({url:b+"/ask/prepare",type:"GET",data:{question:e}
1,headers:a,success:function(a){if(t){var n="https://www.cgtn.com/newspal/answer?q_id="+a.question_id+"&q="+e+"&is_q=true";window.location.href=n}else{localStorage.setItem("x_auth_token",a.x_auth_token);var n="https://www.cgtn.com/newspal/answer?q_id="+a.question_id+"&q="+e+"&is_q=true";window.location.href=n}},error:function(e,t,a){console.error("ask/prepare error:",t,a)}})}function c(){var e=document.querySelector(".choose-language-wrapper");e.className.indexOf("choose-language-wrapper-visible")>-1&&(e.className=e.className.replace(/\bchoose-language-wrapper-visible\b/g,""))}function s(e,t){if(t&&!e.data("isBindScroll")){var a={posY:0,maxscroll:0};e.on({touchstart:function(e){if($(e.target).closest(".nav-content-md").length)return void(a.elScroll=null);if($(e.target).closest(".choose-language-wrapper").length)return void(a.elScroll=null);var n,o=e.touches?e.touches[0]:e,i=$(e.target);n=i,i.is(t)?n=i:0==(n=i.parents(t)).length&&(n=null),n&&(a.elScroll=n,a.posY=o.pageY,a.scrollY=n.scrollTop(),a.maxscroll=n[0].scrollHeight-n[0].clientHeight)},touchmove:function(e){if($(e.target).closest(".nav-content-md").length)return void(a.elScroll=null);if($(e.target).closest(".choose-language-wrapper").length)return void(a.elScroll=null);a.maxscroll<=0&&e.preventDefault();var t=a.elScroll,n=t.scrollTop(),o=e.touches?e.touches[0]:e,i=o.pageY-a.posY;return i>0&&0==n?void e.preventDefault():i<0&&n+1>=a.maxscroll?void e.preventDefault():void 0},touchend:function(){a.maxscroll=0}}),e.data("isBindScroll",!0)}}var d=document.querySelector("#menu-toggle"),l=document.querySelector(".display-menu"),u=document.querySelector(".ng-header-v4-nav-wrapper");d.addEventListener("change",e);var h=document.querySelector(".left-menu"),g=document.querySelector(".scroll-content"),p=document.querySelector(".nav-item.world-item"),f=document.querySelector(".children-nav-list-wrapper");if(h&&p&&f){var v=!1,m=!1,w=null;p.addEventListener("mouseenter",function(){window.innerWidth>=1261&&(m=!0,a())}),p.addEventListener("mouseleave",function(){window.innerWidth>=1261&&(m=!1,i())}),p.addEventListener("click",function(e){window.innerWidth>=1261||(e.stopPropagation(),v?o():(c(),a()))}),f.addEventListener("mouseenter",function(){m=!0}),f.addEventListener("mouseleave",function(){m=!1,i()}),g.addEventListener("scroll",function(){m=!1,o()}),window.addEventListener("resize",function(){v&&t()});var b="https://newspal-api.cgtn.com";document.querySelector(".left-menu .search-button").addEventListener("click",function(){const e=document.querySelector(".left-menu .search-input").value.trim();e&&r(e)}),document.querySelector(".footer-content-wrapper-v4 .search-button").addEventListener("click",function(){const e=document.querySelector(".footer-content-wrapper-v4 .search-input").value.trim();e&&r(e)});document.querySelector(".language-btn").addEventListener("click",function(e){d.checked&&e.preventDefault()});document.querySelector(".follow-us-btn").addEventListener("click",function(e){e.preventDefault(),d.checked||document.querySelector(".menu-icon").click(),document.querySelector("#left-menu-bm").scrollIntoView({behavior:"smooth",block:"start"})}),function(){var e=document.querySelector(".left-menu-tp-wrapper"),t=document.querySelector(".choose-language-wrapper");e&&t&&e.addEventListener("click",function(e){e.stopPropagation(),t.className.indexOf("choose-language-wrapper-visible")>-1?t.className=t.className.replace(/\bchoose-language-wrapper-visible\b/g,""):(t.className+=" choose-language-wrapper-visible",o())})}();var _=document.querySelector(".left-menu-tp-wrapper-m");_&&_.addEventListener("click",function(){_.classList.toggle("active")});var y=(document.querySelector(".nav-item"),document.querySelector(".nav-item-m"));y&&y.addEventListener("click",function(){y.classList.toggle("active")});var S=document.querySelector(".right-mask");S&&d&&S.addEventListener("click",function(){d.checked&&(d.checked=!1,d.dispatchEvent(new Event("change")))});var d=document.getElementById("menu-toggle");d.addEventListener("change",function(){t(),this.checked?(s($(".ng-header-v4-nav-wrapper"),".scroll-content"),document.body.classList.add("menu-open","no-scroll")):(document.body.classList.remove("menu-open","no-scroll"),c(),o())}),function(){var e,t=document.querySelectorAll(".wechat-share");for(e=0;e<t.length;e++)t[e].addEventListener("click",function(e){e=e||window.event,e.stopPropagation?e.stopPropagation():e.cancelBubble=!0;var t=this.closest(".share-item-wrapper");t&&(t.className.indexOf("open")>-1?t.className=t.className.replace(/\bopen\b/g,""):t.className+=" open")});document.addEventListener("click",function(){var t=document.querySelectorAll(".share-item-wrapper.open");for(e=0;e<t.length;
1e++)t[e].className=t[e].className.replace(/\bopen\b/g,"")})}(),function(){var e,t=document.querySelectorAll(".wechat-share-footer");for(e=0;e<t.length;e++)t[e].addEventListener("click",function(e){e=e||window.event,e.stopPropagation?e.stopPropagation():e.cancelBubble=!0;var t=this.closest(".share-item-wrapper");t&&(t.className.indexOf("open")>-1?t.className=t.className.replace(/\bopen\b/g,""):t.className+=" open")});document.addEventListener("click",function(){var t=document.querySelectorAll(".share-item-wrapper.open");for(e=0;e<t.length;e++)t[e].className=t[e].className.replace(/\bopen\b/g,"")})}(),window.addEventListener("pageshow",function(e){e.persisted&&d.checked&&document.querySelector(".menu-icon").click()});var k=document.querySelector(".left-menu-tp-wrapper-m"),C=document.querySelector(".choose-language-wrapper-m");k.addEventListener("click",function(){"none"===window.getComputedStyle(C).display?(C.classList.add("choose-language-wrapper-m-block"),g&&(g.scrollTop=0)):(C.classList.remove("choose-language-wrapper-m-block"),g&&(g.scrollTop=0))}),n.run()}}};t.exports=o},{"../ng-g-login.js":1}],3:[function(e,t,a){var n={dialog:function(){function e(){var e=new Date;e.setDate(e.getDate()+9999);var t="GDPR=1 ;path=/; domain=.cgtn.com ;expires="+e.toUTCString();document.cookie=t}!function(){var e=~document.body.className.indexOf("iOSBrowser"),t=~document.body.className.indexOf("androidbrowser"),a=~document.body.className.indexOf("ios"),n=~document.body.className.indexOf("android");return e||t||a||n}()?!function(){return~document.cookie.indexOf("GDPR")}()?$(".js-tools-dialog").show():("function"==typeof gtag&>ag("consent","update",{ad_storage:"granted",analytics_storage:"granted",ad_user_data:"granted",ad_personalization:"granted"}),e()):"function"==typeof gtag&>ag("consent","update",{ad_storage:"granted",analytics_storage:"granted",ad_user_data:"granted",ad_personalization:"granted"}),$(".dialog-confirm").click(function(){"function"==typeof gtag&>ag("consent","update",{ad_storage:"granted",analytics_storage:"granted",ad_user_data:"granted",ad_personalization:"granted"}),e(),$(".js-tools-dialog").hide()}),$(".dialog-close").click(function(){$(".js-tools-dialog").hide()})},isIE9:function(){}};t.exports=n},{}],4:[function(e,t,a){var n=e("./play-duration.js"),o=["15px","18px","20px"];window.setFontsize=function(e,t){$(e).children().each(function(e,a){$(a).css("font-size",t),setFontsize($(a),t)})},window.setPageFontsize=function(e){setFontsize("body",o[e])},window.CMSVideo={render:function(e,t,a){var n=jwplayer(e),o=navigator.userAgent;if(o.indexOf("Firefox")>-1&&o.indexOf("Android")>-1)var i=t.replace(/m3u8/g,"mp4");else var i=t;n.setup({file:i,image:a,skin:{name:"mobile"},stretching:"fill",width:"100%",aspectratio:"16:9",androidhls:!0,primary:"html5",autostart:!1,events:{onPlay:function(){$(".jwplayer").each(function(t,a){var n=$(this).attr("id");if(e!=n){jwplayer(n).play(!1)}})},onReady:function(){var t=$(document.getElementById(e));$(".jw-display-icon-container",t).css({left:"0",top:"0",margin:"0",width:"2.75em",height:"2.75em"})}}})},disableFullScreen:function(){$(".m-content .jw-icon-fullscreen").hide()},pauseAll:function(){$(".jwplayer").each(function(e,t){var a=$(this).attr("id");jwplayer(a).play(!1)}),window.CMSVideo.pauseAudioAll()},pauseVideoAll:function(){$(".jwplayer").each(function(e,t){var a=$(this).attr("id");jwplayer(a).play(!1)})},pauseOthers:function(e){$(".jwplayer").each(function(t,a){var n=$(this).attr("id");e!==n&&jwplayer(n).play(!1)}),window.CMSVideo.pauseAudioAll()},pauseAudioOthers:function(e){$(".audio-item").each(function(t,a){var n=$(this).attr("id"),o=$(this).children("audio")[0],i=$(this).find(".audio-play")[0];e!==n?(i.src=i.src.replace("icon2@x2","icon1@x2"),o.pause()):o.paused?i.src=i.src.replace("icon1@x2","icon2@x2"):i.src=i.src.replace("icon2@x2","icon1@x2")}),window.CMSVideo.pauseVideoAll()},pauseAudioAll:function(){$(".audio-item").each(function(e,t){var a=$(this).find(".audio-play")[0];a.src=a.src.replace("icon2@x2","icon1@x2"),$(this).children("audio")[0].pause()})}},window.Share={setFacebookLink:function(e){var t=$(e).attr("shareUrl")?$(e).attr("shareUrl"):encodeURIComponent(location.href);$(e).attr("share_title")&&$(e).attr("share_title");$(e).attr("href","https://www.facebook.com/sharer/sharer.php?u="+t+"&display=popup&app_id=723054267828678")},setTwitterLink:function(e){var t=$(e).attr("shareUrl")?$(e).attr("shareUrl"):encodeURIComponent(location.href),a=$(e).attr("share_title")?$(e).attr("share_title"):"CGTN - Your link to China and world!";$(e).attr("href","https://twitter.com/intent/tweet?text="+a+"&url="+t+"&via=cgtnofficial")},setWeiboLink:function(e){var t=$(e).attr("shareUrl")?$(e).attr("shareUrl"):encodeURIComponent(location.href),a=$(e).attr("share_title")?$(e).attr("share_title"):"CGTN - Your link to China and world!";$(e).attr("href","http://service.weibo.com/share/share.php?appkey=4122844478&title="+a+"&url="+t+"&pic=&searchPic=true&style=simple")},setTumblrLink:function(e){var t=$(e).attr("shareUrl")?$(e).attr("shareUrl"):encodeURIComponent(location.href),a=$(e).attr("share_title")?$(e).attr("share_title"):"CGTN - Your link to China and world!";$(e).attr("href","https://www.tumblr.com/widgets/share/tool?canonicalUrl="+t+"&caption="+a+"&title="+a)},setMailLink:function(e){var t=$(e).attr("shareUrl")?$(e).attr("shareUrl"):location.href,a=$(e).attr("share_title")?$(e).attr("share_title"):"CGTN - Your link to China and world!",n=encodeURIComponent("I thought you might be interested in this news: "+t+"."),o="mailto:?subject="+a+"&body="+n;$(e).attr("href",o)},setQrCode:function(e){var t=$(e).attr("data-shareurl")?$(e).attr("data-shareurl"):location.href,a=t.replace(/(index|share)\.html/,"qrcode.png");$(e).attr("src",a)}};var i=e("../../../web_common/tools"),r={run:function(){function e(){$.ajax({url:"https://wechat.cgtn.com/socialweb/social/weixin/getKeys.do?url="+encodeURIComponent(location.href.split("#")[0]),type:"GET",contentType:"application/json",dataType:"json",success:function(e){console.log(e),wx.config({debug:!1,appId:"wxd61ff47456d31b8e",timestamp:e.data.timestamp,nonceStr:e.data.nonceStr,signature:e.data.signature,jsApiList:["onMenu
1ShareTimeline","onMenuShareAppMessage","onMenuShareQQ","onMenuShareWeibo","onMenuShareQZone"]})}}),wx.ready(function(){var e=$('meta[property="og:title"]').attr("content"),t=$('meta[property="og:image"]').attr("content"),a=$('meta[property="og:description"]').attr("content");wx.onMenuShareTimeline({title:e,link:window.location.href,imgUrl:t,success:function(){console.log("Share Successed!")},cancel:function(){console.log("Share Failed!")}}),wx.onMenuShareAppMessage({title:e,desc:a,link:window.location.href,imgUrl:t,type:"",dataUrl:"",success:function(){console.log("Share Successed!")},cancel:function(){console.log("Share Failed!")}})})}i.dialog(),window.PlayDuration=n,Date.prototype.Format=function(e){var t={"M+":this.getMonth()+1,"d+":this.getDate(),"h+":this.getHours(),"m+":this.getMinutes(),"s+":this.getSeconds(),"q+":Math.floor((this.getMonth()+3)/3),S:this.getMilliseconds()};/(y+)/.test(e)&&(e=e.replace(RegExp.$1,(this.getFullYear()+"").substr(4-RegExp.$1.length)));for(var a in t)new RegExp("("+a+")").test(e)&&(e=e.replace(RegExp.$1,1==RegExp.$1.length?t[a]:("00"+t[a]).substr((""+t[a]).length)));return e};var t=window.location.href,a="";if(a=t.indexOf("test")>-1||t.indexOf("localhost")>-1?"https://uitest.cgtn.com/static/ng/resource/images/icon/zwt-bg.png":t.indexOf("stage")>-1?"https://uistage.cgtn.com/static/ng/resource/images/icon/zwt-bg.png":"https://ui.cgtn.com/static/ng/resource/images/icon/zwt-bg.png",$("img.lazy").lazyload({placeholder:a,effect:"fadeIn",threshold:1e3}),$($.find("[data-anchorgroup]:eq(0)")).removeClass("hidden"),$($.find("[data-anchorgroup]")).on("click",function(e){var t=$(e.target).attr("data-anchorgroup");$($.find("[data-addgroup="+t+"]")).removeClass("hidden"),$($.find("[data-anchorgroup="+parseInt(t)+"]")).addClass("hidden"),$($.find("[data-anchorgroup="+(parseInt(t)+1)+"]")).removeClass("hidden"),$(".common-more .cg-pic, .common-more .cg-video").each(function(e,t){var a=$(t)[0].offsetWidth,n=$(t).find("img"),o=n.attr("data-original"),i=Number(n.attr("data-width"));if(a<=250){var c;i>a&&i>250?(c=r.typeImgs(o,250),r.isImg(c,o,function(e){n.attr("data-original",e),n.attr("data-src",e),n.attr("data-lazy",e)})):(n.attr("data-original",o),n.attr("data-src",o),n.attr("data-lazy",o))}else if(a>250&&a<=750){var s;i>a&&i>750?(s=r.typeImgs(o,750),r.isImg(s,o,function(e){n.attr("data-original",e),n.attr("data-src",e),n.attr("data-lazy",e)})):(n.attr("data-original",o),n.attr("data-src",o),n.attr("data-lazy",o))}}),$(".cg-pic img, .cg-video img").each(function(e,t){var a=$(t)[0].offsetWidth;a>=1e3?$(t).parents(".cg-pic").find(".cg-liveStatus").addClass("cg-liveStatus-one cg2020-liveStatus-one"):Math.round(a)>=640&&Math.round(a)<999?$(t).parents(".cg-pic").find(".cg-liveStatus").addClass("cg-liveStatus-two cg2020-liveStatus-one"):Math.round(a)>=352&&Math.round(a)<640?$(t).parents(".cg-pic").find(".cg-liveStatus").addClass("cg-liveStatus-three cg2020-liveStatus-two"):Math.round(a)>=100&&Math.round(a)<352?$(t).parents(".cg-pic").find(".cg-liveStatus").addClass("cg-liveStatus-four cg2020-liveStatus-three"):Math.round(a)<100&&$(t).parents(".cg-pic").find(".cg-liveStatus").addClass("cg-liveStatus-five"),a>=1e3?$(t).parents(".cg-video").find(".video-control-wrapper").addClass("video-control-wrapper-one video2020-control-wrapper-one"):Math.round(a)>=576&&Math.round(a)<1e3?$(t).parents(".cg-video").find(".video-control-wrapper").addClass("video-control-wrapper-two video2020-control-wrapper-one"):Math.round(a)>=480&&Math.round(a)<576?$(t).parents(".cg-video").find(".video-control-wrapper").addClass("video-control-wrapper-three video2020-control-wrapper-one"):Math.round(a)>=352&&Math.round(a)<480?$(t).parents(".cg-video").find(".video-control-wrapper").addClass("video-control-wrapper-four video2020-control-wrapper-two"):Math.round(a)>=100&&Math.round(a)<352?$(t).parents(".cg-video").find(".video-control-wrapper").addClass("video-control-wrapper-five video2020-control-wrapper-three"):Math.round(a)<100&&$(t).parents(".cg-video").find(".video-control-wrapper").addClass("video-control-wrapper-six")})}),$($.find("[data-anchorgroup-sm]:eq(0)")).removeClass("hidden"),$($.find("[data-anchorgroup-sm]")).on("click",function(e){var t=$(e.target).attr("data-anchorgroup-sm");$($.find("[data-addgroup-sm="+t+"]")).removeClass("hidden"),$($.find("[data-anchorgroup-sm="+parseInt(t)+"]")).addClass("hidden"),$($.find("[data-anchorgroup-sm="+(parseInt(t)+1)+"]")).removeClass("hidden"),$(".cg-pic img, .cg-video img").each(function(e,t){var a=$(t)[0].offsetWidth;a>=1e3?$(t).parents(".cg-pic").find(".cg-liveStatus").addClass("cg-liveStatus-one cg2020-liveStatus-one"):Math.round(a)>=640&&Math.round(a)<999?$(t).parents(".cg-pic").find(".cg-liveStatus").addClass("cg-liveStatus-two cg2020-liveStatus-one"):Math.round(a)>=352&&Math.round(a)<640?$(t).parents(".cg-pic").find(".cg-liveStatus").addClass("cg-liveStatus-three cg2020-liveStatus-two"):Math.round(a)>=100&&Math.round(a)<352?$(t).parents(".cg-pic").find(".cg-liveStatus").addClass("cg-liveStatus-four cg2020-liveStatus-three"):Math.round(a)<100&&$(t).parents(".cg-pic").find(".cg-liveStatus").addClass("cg-liveStatus-five"),a>=1e3?$(t).parents(".cg-video").find(".video-control-wrapper").addClass("video-control-wrapper-one video2020-control-wrapper-one"):Math.round(a)>=576&&Math.round(a)<1e3?$(t).parents(".cg-video").find(".video-control-wrapper").addClass("video-control-wrapper-two video2020-control-wrapper-one"):Math.round(a)>=480&&Math.round(a)<576?$(t).parents(".cg-video").find(".video-control-wrapper").addClass("video-control-wrapper-three video2020-control-wrapper-one"):Math.round(a)>=352&&Math.round(a)<480?$(t).parents(".cg-video").find(".video-control-wrapper").addClass("video-control-wrapper-four video2020-control-wrapper-two"):Math.round(a)>=100&&Math.round(a)<352?$(t).parents(".cg-video").find(".video-control-wrapper").addClass("video-control-wrapper-five video2020-control-wrapper-three"):Math.round(a)<100&&$(t).parents(".cg-video").find(".video-control-wrapper").addClass("video-control-wrapper-six")})}),this.resize(),this.changeImgs(),function(){return"micromessenger"==window.navigator.userAgent.toLowerCase().match(/MicroMessenger/i)}()){var o=document.getElementsByTagName("head")[0],c=document.createElement("script");c.type="text/javascript",c.src="https://res.wx.qq.com/open/js/jweixin-1.2.0.js",o.appendChild(c),c.onreadystatechange=function(){"complete"==this.readyState&&e()},c.onload=function(){e()}}},resize:function(){var e=this,t=0;$(window).resize(function(){clearTimeout(t),t=setTimeout(function(){e.changeRem(),e.setLiveStatusAndPlayIcon(e),e.changeImgs()},200)}).trigger("resize")},setLiveStatusAndPlayIcon:function(e){$(".cg-pic img, .cg-video img").each(function(t,a){var n=$(a)[0].offsetWidth;n>=1e3?e.addLiveStatusClass(a,"cg-liveStatus-one cg2020-liveStatus-one"):Math.round(n)>=640&&Math.round(n)<999?e.addLiveStatusClass(a,"cg-liveStatus-two cg2020-liveStatus-one"):Math.round(n)>=352&&Math.round(n)<640?e.addLiveStatusClass(a,"cg-liveStatus-three cg2020-liveStatus-two"):Math.round(n)>=100&&Math.round(n)<352?e.addLiveStatusClass(a,"cg-liveStatus-four cg2020-liveStatus-three"):Math.round(n)<100&&e.addLiveStatusClass(a,"cg-liveStatus-five"),n>=1e3?e.addVideoClass(a,"video-control-wrapper-one video2020-control-wrapper-one"):Math.round(n)>=576&&Math.round(n)<1e3?e.addVideoClass(a,"video-control-wrapper-two video2020-control-wrapper-one"):Math.round(n)>=480&&Math.round(n)<576?e.addVideoClass(a,"video-control-wrapper-three video2020-control-wrapper-one"):Math.round(n)>=352&&Math.round(n)<480?e.addVideoClass(a,"video-control-wrapper-four video2020-control-wrapper-two"):Math.round(n)>=100&&Math.round(n)<352?e.addVideoClass(a,"video-control-wrapper-five video2020-control-wrapper-three"):Math.round(n)<100&&e.addVideoClass(a,"video-control-wrapper-six")})},addLiveStatusClass:function(e,t){$(e).parents(".cg-pic").find(".cg-liveStatus").addClass(t)},addVideoClass:function(e,t){$(e).siblings(".video-control-wrapper").removeClass("video-control-wrapper-one video-control-wrapper-two video-control-wrapper-three video-control-wrapper-four video-control-wrapper-five video-control-wrapper-six video2020-control-wrapper-one video2020-control-wrapper-two video2020-control-wrapper-three").addClass(t)}
1,changeRem:function(){var e=$(window).width(),t=18*e/480;e>768?$("html").css("font-size","20px"):$("html").css("font-size",t+"px")},isImg:function(e,t,a){var n=new Image;n.onload=function(){1==this.complete&&a(e)},n.onerror=function(){a(t)},n.src=e},typeImgs:function(e,t){return/^(\S+(?=\-\d+))(\-\d+)\.([a-z]{1,})$/gim.test(e)?e.replace(/^(\S+(?=\-\d+))(\-\d+)\.([a-z]{1,})$/gim,"$1-"+t+".$3"):/^(\S+(?!\-\d+))\.([a-z]{1,})$/gim.test(e)?e.replace(/^(\S+(?!\-\d+))\.([a-z]{1,})$/gim,"$1-"+t+".$2"):e},changeImgs:function(){var e=this;$(".cg-pic, .cg-video, .cg-com-lazy").each(function(t,a){var n=$(a)[0].offsetWidth,o=$(a).find("img"),i=o.attr("data-original"),r=Number(o.attr("data-width"));if(n<=250){var c;r>n&&r>250?(c=e.typeImgs(i,250),e.isImg(c,i,function(e){o.attr("data-original",e),o.attr("data-src",e),o.attr("data-lazy",e)})):(o.attr("data-original",i),o.attr("data-src",i),o.attr("data-lazy",i))}else if(n>250&&n<=750){var s;r>n&&r>750?(s=e.typeImgs(i,750),e.isImg(s,i,function(e){o.attr("data-original",e),o.attr("data-src",e),o.attr("data-lazy",e)})):(o.attr("data-original",i),o.attr("data-src",i),o.attr("data-lazy",i))}else if(n>750&&n<=1280){var d;r>n&&r>1280?(d=e.typeImgs(i,1280),e.isImg(d,i,function(e){o.attr("data-original",e),o.attr("data-src",e),o.attr("data-lazy",e)})):(o.attr("data-original",i),o.attr("data-src",i),o.attr("data-lazy",i))}else if(n>1280&&n<=1920){var l;r>n&&r>1920?(l=e.typeImgs(i,1920),e.isImg(l,i,function(e){o.attr("data-original",e),o.attr("data-src",e),o.attr("data-lazy",e)})):(o.attr("data-original",i),o.attr("data-src",i),o.attr("data-lazy",i))}else n>1920&&(o.attr("data-original",i),o.attr("data-src",i),o.attr("data-lazy",i))})}};t.exports=r},{"../../../web_common/tools":3,"./play-duration.js":5}],5:[function(e,t,a){!function(e){"use strict";function a(){i.isBind||(i.isBind=!0,document.addEventListener("visibilitychange",function(){"hidden"===document.visibilityState&&n()}),document.addEventListener("beforeunload",n),document.addEventListener("pagehide",n))}function n(){for(var e=0;e<i.videoList.length;e++){var t=i.videoList[e];t.duration&&"function"==typeof t.callback&&(t.callback(t.duration),t.duration=0)}}function o(e,t){var a={};for(var n in e){var o=void 0===t[n]?e[n]:t[n];a[n]=o}return a}var i={videoList:[],isBind:!1,config:{instance:null,duration:0,timer:null,delay:100}},r=function(e,t){this.callback=e,this._init(t),a()};r.prototype={constructor:this,_init:function(e){e=e||{},this.options=o(i.config,e),this.options.id=(new Date).getTime(),this.options.callback=this.callback,i.videoList.push(this.options)},play:function(){var e=this.options;e.timer=setInterval(function(){e.duration+=(e.delay||e.options.delay)/1e3},e.delay)},pause:function(){clearInterval(this.options.timer)},remove:function(){for(var e=i.videoList,t=0,a=e.length;t<a;t++)if(e[t].id===this.options.id){e.splice(t,1);break}}},void 0!==t&&t.exports&&(t.exports=r),"function"==typeof define&&define(function(){return r}),e.PlayDuration=r}(this)},{}],6:[function(e,t,a){t.exports={run:function(){var e={Editor_Pick:!1,Go_Mobile:!1},t=new IntersectionObserver(function(t){$(t).each(function(t,a){if(a.intersectionRatio>0){var n=$(a.target).hasClass("cg2020_home_2")?"Editor_Pick":"Go_Mobile";e[n]||(e[n]=!0,window.sendWebEvent&&window.sendWebEvent("HomePage","module_impression",n,{}),window.ga4SendWebEvent&&window.ga4SendWebEvent("HomePage","module_impression",n,{}))}})});$(".cg2020_home_2").length>0&&$(".cg2020_home_3").length>0&&(t.observe($(".cg2020_home_2")[0]),t.observe($(".cg2020_home_3")[0]))}}},{}],7:[function(e,t,a){var n={run:function(){var e,t=n;$(".about-us-icon-more").map(function(a,n){$(n).on("click",function(){$(".g-layout").addClass("blur"),$(".aboutus-video-page")[0].style.display="block",$(".top_head")[0].children[0].innerText=t.videoDatas[a].topHeadLine,$(".bottom_head")[0].innerText=t.videoDatas[a].bottomHeadLine,$(".description")[0].children[0].innerText=t.videoDatas[a].detail;var n=t.videoDatas[a].videoUrl,o={newsId:"",headline:t.videoDatas[a].topHeadLine,video:n,origin:""};e=t.floatPlayer("videoArea",n,"16:9",o)})}),$(".close").on("click",function(){$(".g-layout").removeClass("blur"),$(".aboutus-video-page")[0].style.display="none",e()}),$(".m-close").on("click",function(){$(".g-layout").removeClass("blur"),$(".aboutus-video-page")[0].style.display="none",e()})},resize:function(){$(".cg-video-wrapper").each(function(e,t){$(t).parent().resize(function(){var e=$
1(t).parent().width(),a=$(t).find(".cg-player-container").data("ratio"),n=e*a.split(":")[1]/a.split(":")[0];$(t).css({width:e,height:n}),$(t).find(".cg-player-container").css({width:e,height:n})})})},floatPlayer:function(e,t,a,n){if(e&&""!=e){var o=jwplayer(e),i=!1;return o.setup({autostart:!0,file:t,primary:"html5",setFullscreen:!0,width:"100%",aspectratio:a,events:{onPlay:function(){$(".jwplayer").each(function(t,a){var n=$(this).attr("id");if(e!=n){jwplayer(n).play(!1)}})}}}).on("play",function(e){i||(i=!0,console.log("played",e),window.sendVideoPlayEvent(n.sn,n.headline,t,n.origin),window.ga4SendVideoPlayEvent(n.sn,n.headline,t,n.origin))}).on("fullscreen",function(e){console.log("fullscreen: ",e),window.sendVideoOtherEvent("fullscreen",n.sn,n.headline,t,n.origin),window.ga4SendVideoOtherEvent("fullscreen",n.sn,n.headline,t,n.origin)}).on("complete",function(e){console.log("complete : ",e),window.sendVideoOtherEvent("complete",n.sn,n.headline,t,n.origin),window.ga4SendVideoOtherEvent("complete",n.sn,n.headline,t,n.origin)}).on("pause",function(e){console.log("pause: ",e),window.sendVideoOtherEvent("pause",n.sn,n.headline,t,n.origin),window.ga4SendVideoOtherEvent("pause",n.sn,n.headline,t,n.origin)}).on("visualQuality",function(e){console.log("HD: ",e),window.sendVideoOtherEvent("HD: "+e.level.label,n.sn,n.headline,t,n.origin),window.ga4SendVideoOtherEvent("HD: "+e.level.label,n.sn,n.headline,t,n.origin)}),function(){jwplayer().stop()}}},videoDatas:[{id:1,topHeadLine:"Mosul after ISIL",bottomHeadLine:"Best Current Affairs Program, Asian Television Awards.",detail:"The nine-month battle to retake the city of Mosul from ISIL was recapped in this story which highlighted not only the devastation and destruction, but also the human cost of war. It also included some of the most riveting footage of the conflict, with the correspondent reporting from the front lines.",coverImg:"",videoUrl:"https://video.cgtn.com/public/2019-02-27/video/d5fd0778c8d740568495629940cccc52/d5fd0778c8d740568495629940cccc52.m3u8"},{id:2,topHeadLine:"Buddha Style Youth",bottomHeadLine:"Best Single News Story, Asian Television Awards.",detail:"As China's Generation Y take to the internet to claim they are \"becoming buddhas,\" a self-inflicted roast for being lack in desire or ambition, this report sets out to find out what this sweeping phenomenon is all about. The report weaves together voices of young people as well as a real Buddhism practitioner to dissect the latest fad, adopting a rather humorous touch, while reflecting upon some of the underlying issues of today's society.",coverImg:"",videoUrl:"https://video.cgtn.com/public/2019-02-27/video/be846c509ec3480eac74f2e8a81bec50/be846c509ec3480eac74f2e8a81bec50.m3u8"},{id:3,topHeadLine:"My New Year",bottomHeadLine:"Silver winner in the Social Issues category, U.S. International Film & Video Festival.",detail:'There are superstitions surrounding blindness which is seen as a punishment for wrongdoings in a previous life. How did Kyilaï¼a blind lady overcome all the difficulties to establish a kindergarten for blind kids? And how did she bring the insight and confidence to the blind children: "They are normal, and they can do whatever the sighted people can do"? What\'s her dream for their future? With those questions, CGTN crew flied to Tibet twice, lived with Kyila in the Tibetan New Year and produced the documentary.',coverImg:"",videoUrl:"https://video.cgtn.com/public/2019-02-27/video/d62dd1935d6d4dab9b06162cf812b79d/d62dd1935d6d4dab9b06162cf812b79d.m3u8"},{id:4,topHeadLine:"No Child Left Behind",bottomHeadLine:"Gold Camera Award winner for Best Documentary Short, U.S. International Film & Video Festival.", 2detail:"This documentary turns the spotlight on rural education in the more remote parts of China. It describes the close relationship that has developed between the teacher and the only two pupils at a tiny village primary school. By contrasting their situation with that at the much bigger school in town, it reveals some of the challenges being faced in providing a good education for China's rural youth.",coverImg:"",videoUrl:"https://video.cgtn.com/public/2019-02-27/video/9c8fa940391644a4a05050260669e42b/9c8fa940391644a4a05050260669e42b.m3u8"},{id:5,topHeadLine:"Charlottesville Violence",bottomHeadLine:"First place award winner for editing, White House News Photographers Association.",detail:'The incidents in Charlottesville, Virginia, in 2017 left three dead where a "Unite the Right" rally of white nationalist and other right-wing groups had been scheduled to take place, the city tweeted on its verified account.',coverImg:"",videoUrl:"https://video.cgtn.com/public/2019-02-27/video/dd6204178a1048ec
2a5349fca581eec2e/dd6204178a1048eca5349fca581eec2e.m3u8"},{id:6,topHeadLine:"Detroit Hosts Alibaba's Gateway '17",bottomHeadLine:"First place award winner for editing, White House News Photographers Association.",detail:"Gateway '17, a conference held by Alibaba in Detroit, is held on June, features presentations and breakout sessions aimed at educating attendees on what and how to sell to China, especially through e-commerce platforms, so that the US-based small- and medium-enterprises (SEMs) explore opportunities in China.",coverImg:"",videoUrl:"https://video.cgtn.com/public/2019-02-27/video/69a36c87ae03403b91342a7e07aa06c5/69a36c87ae03403b91342a7e07aa06c5.m3u8"},{id:7,topHeadLine:"Louisiana's Isle de Jean Charles In Peril From Climate Change",bottomHeadLine:"Second place award winner for photography, White House News Photographers Association.",detail:"South Louisiana was watching anxiously as Tropical Storm Nate continues to churn away in the region. New Orleans is always a concern â but there is a small barrier island in south Louisiana that could be totally wiped off the map by a strong storm. Isle de Jean Charles, a small spit of land is home to people arguably becoming the first climate refugees in the United States. Many residents are leaving, but some people are refusing â saying it is the only home they have ever known.",coverImg:"",videoUrl:"https://video.cgtn.com/public/2019-02-27/video/179753d44f9a46c5b31ddb25a375799e/179753d44f9a46c5b31ddb25a375799e.m3u8"},{id:8,topHeadLine:"Faces Of Africa",bottomHeadLine:"Silver Winner for Documentary Series, Telly Awards, USA.",detail:"A weekly documentary show, produced at CGTN Africa in Nairobi, Kenya and launched in Jan, 2011. It tells stories of both prominent and ordinary people in Africa.",coverImg:"",videoUrl:"https://video.cgtn.com/public/2019-02-27/video/46096bcfba8f4f7aa197df6f277b02ef/46096bcfba8f4f7aa197df6f277b02ef.m3u8"},{id:9,topHeadLine:"Surfers Not Street Children",bottomHeadLine:"Best Documentary award winner, Cannes Short Film Festival.",detail:"A group of street children in Durban, South Africa, overcome drugs, adversities, becoming international surfing stars.",coverImg:"",videoUrl:"https://video.cgtn.com/public/2019-02-27/video/8cda5c86dbbb4aa7b05de4736acbc02d/8cda5c86dbbb4aa7b05de4736acbc02d.m3u8"},{id:10,topHeadLine:"Ip Man's Last Student: The Tale of 'Wing Tsun King'",bottomHeadLine:"Golden Prize winner in the Short Video category, Global Trend Video Awards.",detail:"The film unfolds the mystery of the Chinese martial art Wing Tsun, a 200-year-old skill that had been previously kept as a secret, and its spirit carried forward by successors in China and around the globe. The video is based on the personal story of Leung Ting, who has passed down the skills from Ip Man across Hong Kong, the rest of China and around the globe. The main idea of the video is to present the skills of this Chinese martial art and how its spirit was sustained over time.",coverImg:"",videoUrl:"https://video.cgtn.com/public/2019-02-27/video/864fd9fe59bc4780912f0e07c9ffa752/864fd9fe59bc4780912f0e07c9ffa752.m3u8"},{id:12,topHeadLine:"Painted Love: A Love Longer Than Death",bottomHeadLine:"Silver Prize winner in the Short Video category, Global Trend Video Awards.",detail:'"Painted Love" is a film based on the memoir "Our Story," written by 97-year-old Rao Pingru, who a decade ago began documenting through paintings the chronicles of his life with his wife Mao Meitang after she passed away. The drawings illustrate the normality of the couple\'s extraordinary bond: their little fights, immense love and years of growing old together. Page after page, Rao visualizes a bond that thrived through war, famine, incarceration, and illness. This is the story of a stubborn love against the backdrop of sweeping historical changes that shaped 20th century China.',coverImg:"",videoUrl:"https://video.cgtn.com/public/2019-02-27/video/bfd5a96da77b468898ba02708515a2b4/bfd5a96da77b468898ba02708515a2b4.m3u8"},{id:13,topHeadLine:"China's Toilet Revolution",bottomHeadLine:"Quest Prize winner in the Best Editing category, Global Trend Video Awards.",detail:'A revolution is underway in China, spearheaded by the government, to wipe out substandard toilets, and promote a clean image of a modern country. A three-year plan to upgrade and expand the scope of public restrooms was introduced in 2015 and renewed last year. China has pumped billions of yuan in its ongoing "toilet revolution," but stains remain. Is culture a culprit?',coverImg:"",videoUrl:"https://video.cgtn.com/public/2019-02-27/video/0edccdc62a1345f3b70c5a83da0dc15e/0edccdc62a1345f3b70c5a83da0dc15e.m3u8"},{id:14,topHeadLine:"Lust for Life and Poetry",bottomHeadLine:"Quest Prize winner in the Short Video category, Global Trend Video Awards.",detail:"The film's premise is that everyone has the right to live poetically by portraying the life of Bai Ruyun, a female farmer who fights against cancer with a lust for life and poetry. It follows Bai over four days over her rural surroundings and showcases impressionist shots reflecting her unyielding yearning for a poetic life, in the hope of forming a sharp comparison between realism and her philosophy.",coverImg:"",videoUrl:"https://video.cgtn.com/public/2019-02-27/video/f463b2ae651e4f779f79a7d1d62d2b8f/f463b2ae651e4f779f79a7d1d62d2b8f.m3u8"},{id:15,topHeadLine:"Protecting the Mountain Kids",bottomHeadLine:"Golden Prize winner in the Short Video category, Global Trend Video Awards.",detail:"The project is the representation of the adherence of the service for people, and changing local health conditions and attitudes. Now, Wang Chunsheng has been working in the county for 38 years.",coverImg:"",videoUrl:"https://video.cgtn.com/public/2019-02-27/video/ed1864a068214794878a74b1c4014772/ed1864a068214794878a74b1c4014772.m3u8"},{id:16,topHeadLine:"Jordan Syrian Refugees",bottomHeadLine:"Silver Medal winner in Current Affairs, New York Festivals World's Best TV & Films.",detail:"This story looks into the uncertainties surrounding the lives of 80,000 Syrians in Jordan's Zaatari camp, one of the world's largest refugee settlements. Even though many of these refugees hope to move on with their lives, they also struggle to cope with the trauma of war.",coverImg:"",videoUrl:"https://video.cgtn.com/public/2019-02-27/video/e93e8fdfab8049bcad0f49054821f90a/e93e8fdfab8049bcad0f49054821f90a.m3u8"},{id:17,topHeadLine:"Philippines Drug War",bottomHeadLine:"Gold Camera Award winner for Best Current Affairs Documentary, US International Films & Video Festival.",detail:"The Philippines' war on drugs has not only claimed the lives of drug dealers but also caused casualties to many others. Through rare access to the people at the root of the problem, the piece checks out the country's efforts in tackling the drug menace.",coverImg:"",videoUrl:"https://video.cgtn.com/public/2019-02-27/video/d9589e95397742f9bbc0acac5919d4e3/d9589e95397742f9bbc0acac5919d4e3.m3u8"}]};t.exports=n},{}],8:[function(e,t,a){var n=e("./analytics/ABTest.js");
2t.exports={run:function(){var e=$("#pageNameContent").val();this.analyticHeadNav(),this.analyticFooter(),this.analyticStable(e),this.analyticNews(e),n.run()},sendNewsClick:function(e,t,a,n,o){var i=t.list;ga("webTracker.ec:addProduct",t),ga("webTracker.ec:setAction","click",t);var r=null;if(i){var c=i.split("="),s=c[1],d=c[0];"special"===s&&(r=d)}window.sendWebEvent&&window.sendWebEvent(e,o,"News_"+a,{list:i,dimension1:t.id,dimension2:a,dimension28:n,dimension30:r})},categoryMap:function(e){return{"Robert Lawrence Kuhn":"Shows","Liu Xin":"Shows",Channel:"Shows","The Point with Liu Xin":"Shows",program:"Shows"}[e]||e},listMap:function(e){return{cg2020_home_1_1_1:"Top_News",cg2020_home_1_1_2:"Top_Stories",cg2020_home_1_2:"Breaking_News",cg2020_home_1_3:"Happening_Now",cg2020_home_1_4:"Opinions",cg2020_home_1_5:"Live",cg2020_home_2:"Editor_Pick",cg2020_home_3:"Go_Mobile",cg2020_home_3_2:"Go_Deep",cg2020_home_4:"Specials_1",cg2020_home_4_2:"Most_Interactive_News",cg2020_home_5:"Live_Now",cg2020_slide_1:"Trending_Videos",cg2020_home_6:"Global_Stringer",cg2020_home_6_2:"Talk_to_us",cg2020_slide_2:"Most_Watched_Pictures",cg2020_home_7:"C_Lab",cg2020_banner_3:"Specials_2",cg2020_home_9:"Flash_News",cg2020_home_8_1:"Reader Choice"}[e]||e},analyticNews:function(e){var t=this,a={},n=new IntersectionObserver(function(n){var o=[];$(n).each(function(n,i){if(i.intersectionRatio>0&&!a[i.target.href]){var r=i.target.getAttribute("data-news-id"),c=i.target.href.substring(i.target.href.indexOf("news/")+5,i.target.href.indexOf("/",i.target.href.indexOf("news/")+5)),s=i.target.getAttribute("data-label"),d=i.target.getAttribute("data-list"),l=t.listMap(d),u=i.target.getAttribute("data-position"),h=i.target.getAttribute("data-time"),g=l?l+"="+u:e,p=i.target.getAttribute("data-index");o.push({id:r||c,name:s,list:g,category:e,variant:h,position:p}),a[i.target.href]=!0}}),o.length>0&&$(o).each(function(e,t){ga("webTracker.ec:addImpression",t)})}),o=$("#pageHeadline").val();$("a").not(".cg-pc-header a,.cg-header a,.cg-m-header a,.cg-footer a").each(function(a,i){var r=$(i).attr("href"),c=$(i).data("news-id"),s=$.trim($(i).attr("data-label")),d=$(i).attr("data-category")||e,l=$(i).attr("data-time"),u=$(i).attr("data-action"),h=$(i).attr("data-label"),g=$(i).attr("data-list"),p=t.listMap(g),f=$(i).attr("data-position"),v=p?p+"="+f:e,a=$(i).attr("data-index");("cg2020_home_1_1_2"===g||c&&r&&-1==r.indexOf("javascript"))&&((r.indexOf("share.html")>0||r.indexOf("share_p.html")>0||r.indexOf("report.do")>0||c||"cg2020_home_1_1_2"===g)&&"Nav_Click"!==u&&(t.newsAllMap.push(r),n.observe(i)),$(i).bind("click",function(n){if("News_Click"===u||"news_click_home_2"===u||"news_click_home_3"===u||"news_click_home_4"===u)u="News_Click",t.sendNewsClick(e,{id:c,name:s,list:v,category:d,variant:l,position:a},s,o,u);else if("Nav_Click"===u){var i=e+"_"+h;t.sendNavClick("HeadNavigation","click",i)}}))})},analyticStable:function(e){setTimeout(function(){window.sendWebEvent&&window.sendWebEvent(e,"Timing","30s",{})},3e4);var t={.2:!1,.4:!1,.6:!1,.8:!1,"1.0":!1};$(window).scroll(function(){var a=$(this).scrollTop(),n=$(document).height();switch(((a+$(this).height())/n).toFixed(1)){case"0.2":t[.2]||(window.sendWebEvent&&window.sendWebEvent(e,"Scroll","20%",{nonInteraction:!0}),t[.2]=!0);break;case"0.4":t[.4]||(window.sendWebEvent&&window.sendWebEvent(e,"Scroll","40%",{nonInteraction:!0}),t[.4]=!0);break;case"0.6":t[.6]||(window.sendWebEvent&&window.sendWebEvent(e,"Scroll","60%",{nonInteraction:!0}),t[.6]=!0);break;case"0.8":t[.8]||(window.sendWebEvent&&window.sendWebEvent(e,"Scroll","80%",{nonInteraction:!0}),t[.8]=!0);break;case"1.0":t["1.0"]||(window.sendWebEvent&&window.sendWebEvent(e,"Scroll","100%",{nonInteraction:!0}),t["1.0"]=!0)}})},newsAllMap:[],getPosition:function(e,t){var a;return $(t).each(function(t,n){if(e==n)return a=t,!1}),a},sendNavClick:function(e,t,a){window.sendWebEvent&&window.sendWebEvent(e,"click",a)},analyticHeadNav:function(){var e=this;$(".nav-list-bj a,.nav-list-eu a").each(function(t,a){"Nav_Click"==$(a).attr("data-action")&&$(a).bind("click",function(t){var n=$.trim($(this).text()),o=($.trim($(a).attr("data-label")),$(a).attr("data-category")),i=$(a).attr("data-news-id"),r=$(a).attr("data-time");e.sendNavClick("HeadNavigation",{id:i,name:"",list:o,category:"",variant:r,position:e.getPosition(a.href,e.newsAllMap)},n)})}),$(".nav-list-bj .sub-section a,.nav-list-eu .sub-section a").bind("click",function(t){var a=$.trim($(this).text());e.sendNavClick("HeadNavigation",null,a)}),this.bindShareIcon(),this.bindHeaderLogo()},bindShareIcon:function(){var e=this;$(".cg-pc-header .icon-list,.cg-m-header .icon-list").each(function(t,a){$(a).find(".fl a").bind("click",function(t){var a=$(t.target).attr("class").replace(/icon|cg-com-sprite|\s*/g,"");e.sendNavClick("HeadNavigation","click",e.titleCase(a||""))}),$(a).find(".js-iconList").bind("click",function(t){var a=$(t.target).hasClass("more"),n=a?"Icon_fold":"Icon_Unfold";e.sendNavClick("HeadNavigation","click",n)})})},bindHeaderLogo:function(){var e=this;$(".cg-pc-header .bar-logo,.cg-m-header .bar-logo2").bind("click",function(){e.sendNavClick("HeadNavigation","click","CGTN_Logo")})},titleCase:function(e){return e.slice(0,1).toUpperCase()+e.slice(1).toLowerCase()},analyticFooter:function(){var e=this;$(".cg-item-w4x .cg-list li a,.cg-item-w3x .cg-list li a").each(function(t,a){var n=$(a).attr("data-action");"Sitemap_Click"!==n&&"ExploreMore_Click"!==n||$(a).bind("click",function(t){var n=$.trim($(this).text()),o=($.trim($(a).attr("data-label")),$(a).attr("data-category")),i=$(a).attr("data-news-id"),r=$(a).attr("data-time");e.sendNavClick("Footer",{id:i,name:"",list:o,category:"",variant:r,position:e.getPosition(a.href,e.newsAllMap)},n)})}),this.bindFooterLogo(),this.bindDownload(),this.bindCopyright()},bindFooterLogo:function(){var e=this;$(".cg-footer .icon-logo").bind("click",function(){e.sendNavClick("Footer","click","CGTN_Logo")})},bindDownload:function(){var e={google:"Google_Play","apple-tv":"App_tv_Store",apple:"App_Store",web:"Website"},t=this;$(".cg-item-w2x .cg-list li a").bind("click",function(a){var n=$(a.target).attr("class").replace(/icon|\s*/g,""),o=e[n];t.sendNavClick("Footer","click",o)})},bindCopyright:function(){var e={TeamOfUs_Click:"Term_of_Use",Copyright_Click:"Copyright",PrivacyPolicy_Click:"Privacy_Policy",AboutUs_Click:"About_US"},t=this;$(".cg-copyright .link a").bind("click",function(a){var n=$(a.target).data("action"),o=e[n];t.sendNavClick("Footer","click",o)})}}},{"./analytics/ABTest.js":6}],9:[function(e,t,a){var n=e("./analytics/ABTest.js");
2t.exports={run:function(){var e=$("#ga4PageNameContent").val();this.ga4AnalyticHeadNav(),this.ga4AnalyticFooter(),this.ga4AnalyticStable(e),this.ga4AnalyticNews(e),n.run()},ga4SendNewsClick:function(e,t,a,n,o){var i=t.list,r=null;if(i){var c=i.split("="),s=c[1],d=c[0];"special"===s&&(r=d)}window.ga4SendWebEvent&&window.ga4SendWebEvent(e,o,"News_"+a,{list:i,dimension1:t.id,dimension2:a,dimension28:n,dimension30:r})},categoryMap:function(e){return{"Robert Lawrence Kuhn":"Shows","Liu Xin":"Shows",Channel:"Shows","The Point with Liu Xin":"Shows",program:"Shows"}[e]||e},listMap:function(e){return{cg2020_home_1_1_1:"Top_News",cg2020_home_1_1_2:"Top_Stories",cg2020_home_1_2:"Breaking_News",cg2020_home_1_3:"Happening_Now",cg2020_home_1_4:"Opinions",cg2020_home_1_5:"Live",cg2020_home_2:"Editor_Pick",cg2020_home_3:"Go_Mobile",cg2020_home_3_2:"Go_Deep",cg2020_home_4:"Specials_1",cg2020_home_4_2:"Most_Interactive_News",cg2020_home_5:"Live_Now",cg2020_slide_1:"Trending_Videos",cg2020_home_6:"Global_Stringer",cg2020_home_6_2:"Talk_to_us",cg2020_slide_2:"Most_Watched_Pictures",cg2020_home_7:"C_Lab",cg2020_banner_3:"Specials_2",cg2020_home_9:"Flash_News",cg2020_home_8_1:"Reader Choice"}[e]||e},ga4AnalyticNews:function(e){var t=this,a={},n=new IntersectionObserver(function(n){var o=[];$(n).each(function(n,i){if(i.intersectionRatio>0&&!a[i.target.href]){var r=i.target.getAttribute("data-news-id"),c=i.target.href.substring(i.target.href.indexOf("news/")+5,i.target.href.indexOf("/",i.target.href.indexOf("news/")+5)),s=i.target.getAttribute("data-label"),d=i.target.getAttribute("data-list"),l=t.listMap(d),u=i.target.getAttribute("data-position"),h=i.target.getAttribute("data-time"),g=l?l+"="+u:e,p=i.target.getAttribute("data-index");o.push({id:r||c,name:s,list:g,category:e,variant:h,position:p}),a[i.target.href]=!0}}),o.length>0&&$(o).each(function(t,a){window.ga4SendWebEvent&&window.ga4SendWebEvent(e,"News_Impression","",{nonInteraction:!0})})}),o=$("#ga4PageHeadline").val();$("a").not(".cg-pc-header a,.cg-header a,.cg-m-header a,.cg-footer a,.pc-header-v3 a,.m-header-v3 a,.foot-v3-pc a,.foot-v3-m a").each(function(a,i){var r=$(i).attr("href"),c=$(i).data("news-id"),s=$.trim($(i).attr("data-label")),d=$(i).attr("data-category")||e,l=$(i).attr("data-time"),u=$(i).attr("data-action"),h=$(i).attr("data-label"),g=$(i).attr("data-list"),p=t.listMap(g),f=$(i).attr("data-position"),v=p?p+"="+f:e,a=$(i).attr("data-index");("cg2020_home_1_1_2"===g||c&&r&&-1==r.indexOf("javascript"))&&((r.indexOf("share.html")>0||r.indexOf("share_p.html")>0||r.indexOf("report.do")>0||c||"cg2020_home_1_1_2"===g)&&"Nav_Click"!==u&&(t.newsAllMap.push(r),n.observe(i)),$(i).bind("click",function(n){if("News_Click"===u||"news_click_home_2"===u||"news_click_home_3"===u||"news_click_home_4"===u||u.indexOf("news_click")>-1)u="News_Click",t.ga4SendNewsClick(e,{id:c,name:s,list:v,category:d,variant:l,position:a},s,o,u);else if("Nav_Click"===u){var i=e+"_"+h;t.ga4SendNavClick("HeadNavigation","click",i)}}))})},ga4AnalyticStable:function(e){setTimeout(function(){window.ga4SendWebEvent&&window.ga4SendWebEvent(e,"Timing","30s",{})},3e4);var t={.2:!1,.4:!1,.6:!1,.8:!1,"1.0":!1};$(window).scroll(function(){var a=$(this).scrollTop(),n=$(document).height();switch(((a+$(this).height())/n).toFixed(1)){case"0.2":t[.2]||(window.ga4SendWebEvent&&window.ga4SendWebEvent(e,"Scroll","20%",{nonInteraction:!0}),t[.2]=!0);break;case"0.4":t[.4]||(window.ga4SendWebEvent&&window.ga4SendWebEvent(e,"Scroll","40%",{nonInteraction:!0}),t[.4]=!0);break;case"0.6":t[.6]||(window.ga4SendWebEvent&&window.ga4SendWebEvent(e,"Scroll","60%",{nonInteraction:!0}),t[.6]=!0);break;case"0.8":t[.8]||(window.ga4SendWebEvent&&window.ga4SendWebEvent(e,"Scroll","80%",{nonInteraction:!0}),t[.8]=!0);break;case"1.0":t["1.0"]||(window.ga4SendWebEvent&&window.ga4SendWebEvent(e,"Scroll","100%",{nonInteraction:!0}),t["1.0"]=!0)}})},newsAllMap:[],ga4GetPosition:function(e,t){var a;return $(t).each(function(t,n){if(e==n)return a=t,!1}),a},ga4SendNavClick:function(e,t,a){window.ga4SendWebEvent&&window.ga4SendWebEvent(e,"click",a)},ga4AnalyticHeadNav:function(){var e=this;$(".header-v3-navlists .nav-v3-link,.header-v3-medialist a").each(function(t,a){"Nav_Click"==$(a).attr("data-action")&&$(a).bind("click",function(t){var n=$.trim($(this).text()),o=($.trim($(a).attr("data-label")),$(a).attr("data-category")),i=$(a).attr("data-news-id"),r=$(a).attr("data-time");e.ga4SendNavClick("HeadNavigation",{id:i,name:"",list:o,category:"",variant:r,position:e.ga4GetPosition(a.href,e.newsAllMap)},n)})}),$(".header-v3-link-content .sub-section a").bind("click",function(t){var a=$.trim($(this).text());e.ga4SendNavClick("HeadNavigation",null,a)}),this.bindShareIcon(),this.bindHeaderLogo()},bindShareIcon:function(){var e=this;$(".pc-header-v3 .header-v3-shareicon,.cg-m-header .header-v3-menulist-share").each(function(t,a){$(a).find(".fl a").bind("click",function(t){var a=$(t.target).attr("class").replace(/icon|cg-com-sprite|\s*/g,"");e.ga4SendNavClick("HeadNavigation","click",e.titleCase(a||""))}),$(a).find(".J-header-v3-more").bind("click",function(t){var a=$(t.target).hasClass("more"),n=a?"Icon_fold":"Icon_Unfold";e.ga4SendNavClick("HeadNavigation","click",n)})})},bindHeaderLogo:function(){var e=this;$(".pc-header-v3 .bar-logo,.m-header-v3 .m-header-v3-logo").bind("click",function(){e.ga4SendNavClick("HeadNavigation","click","CGTN_Logo")})},titleCase:function(e){return e.slice(0,1).toUpperCase()+e.slice(1).toLowerCase()},ga4AnalyticFooter:function(){var e=this;$(".foot-v3-list-site li a,.foot-v3-list-explore li a,.foot-v3-list-site-m li a,.foot-v3-list-explore-m li a").each(function(t,a){var n=$(a).attr("data-action");"Sitemap_Click"!==n&&"ExploreMore_Click"!==n||$(a).bind("click",function(t){var n=$.trim($(this).text()),o=($.trim($(a).attr("data-label")),$(a).attr("data-category")),i=$(a).attr("data-news-id"),r=$(a).attr("data-time");e.ga4SendNavClick("Footer",{id:i,name:"",list:o,category:"",variant:r,position:e.ga4GetPosition(a.href,e.newsAllMap)},n)})}),this.bindFooterLogo(),this.bindDownload(),this.bindCopyright()},bindFooterLogo:function(){var e=this;$(".foot-v3-logo-main,.foot-v3-logo-main-m").bind("click",function(){e.ga4SendNavClick("Footer","click","CGTN_Logo")})},bindDownload:function(){var e={google:"Google_Play","apple-tv":"App_tv_Store",apple:"App_Store",web:"Website"},t=this;$(".foot-v3-list-down li a,.foot-v3-list-down-m li a").bind("click",function(a){var n=$(a.target).attr("class").replace(/icon|\s*/g,""),o=e[n];t.ga4SendNavClick("Footer","click",o)})},bindCopyright:function(){var e={TeamOfUs_Click:"Term_of_Use",Copyright_Click:"Copyright",PrivacyPolicy_Click:"Privacy_Policy",AboutUs_Click:"About_US"},t=this;$(".foot-v3-list-items li a,.foot-v3-list-items-m li a").bind("click",function(a){var n=$(a.target).data("action"),o=e[n];t.ga4SendNavClick("Footer","click",o)})}}},{"./analytics/ABTest.js":6}],10:[function(e,t,a){var n=e("../common/init.js"),o=e("../../../web_common/ng-header-v4/ng-header-v4.js"),i=e("../components/ng-analytics.js"),r=e("../components/ng-ga4.js"),c=e("../components/ng-about-us/video-about/index.js");$(document).ready(function(){n.run(),o.run(),i.run(),r.run(),c.run()})},{"../../../web_common/ng-header-v4/ng-header-v4.js":2,"../common/init.js":4,"../components/ng-about-us/video-about/index.js":7,"../components/ng-analytics.js":8,"../components/ng-ga4.js":9}]},{},[10]);
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.