Bạn có thể chuyển sang phiên bản mobile rút gọn của Tri thức trực tuyến nếu mạng chậm. Đóng

Ứng dụng đưa hình nền động của iOS 7 lên Android

Hiệu ứng hình nền có thể chuyển động mang tên Parallax trên iOS 7 đã được đưa lên kho ứng dụng Google Play với giá 1,5 USD.

Ứng dụng đưa hình nền động của iOS 7 lên Android

Hiệu ứng hình nền có thể chuyển động mang tên Parallax trên iOS 7 đã được đưa lên kho ứng dụng Google Play với giá 1,5 USD.

Hiệu ứng hình nền có thể chuyển động khi người dùng lắc hoặc di chuyển thiết bị là một tính năng mới, khá thú vị trên iOS 7. Do đó, không lâu sau khi iOS 7 Beta ra mắt, người dùng Android cũng đã có thể trải nghiệm tính năng này thông qua một ứng dụng mang tên 3D Parallax Background.

Clip trải nghiệm ứng dụng 3D Parallax Background trên thiết bị chạy Android.

3D Parallax Background cung cấp một số hình nền có sẵn, và người dùng có thể tùy chọn một hình nền bất kỳ. Nhà phát triển ứng dụng cũng khẳng định, hình nền này gần như không gây ảnh hưởng đến thời lượng pin của thiết bị.

Tuy nhiên, đây không phải là một ứng dụng miễn phí. Người dùng phải bỏ ra 1,5 USD để có cơ hội trải nghiệm nó. Gần đây nhất, Apple cũng đã yêu cầu Google gỡ bỏ một ứng dụng mô phỏng tính năng Control Center - hiệu chỉnh nhanh những cài đặt thông dụng như Wi-Fi, Bluetooth - trên kho ứng dụng Google Play vì vi phạm bản quyền.

Người dùng có thể tải về ứng dụng 3D Parallax Background tại đây.

Thành Duy

Theo Infonet

Bài liên quan

Infonet !function(n){var t={};function e(i){if(t[i])return t[i].exports;var r=t[i]={i:i,l:!1,exports:{}};return n[i].call(r.exports,r,r.exports,e),r.l=!0,r.exports}e.m=n,e.c=t,e.d=function(n,t,i){e.o(n,t)||Object.defineProperty(n,t,{enumerable:!0,get:i})},e.r=function(n){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})},e.t=function(n,t){if(1&t&&(n=e(n)),8&t)return n;if(4&t&&"object"==typeof n&&n&&n.__esModule)return n;var i=Object.create(null);if(e.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:n}),2&t&&"string"!=typeof n)for(var r in n)e.d(i,r,function(t){return n[t]}.bind(null,r));return i},e.n=function(n){var t=n&&n.__esModule?function(){return n.default}:function(){return n};return e.d(t,"a",t),t},e.o=function(n,t){return Object.prototype.hasOwnProperty.call(n,t)},e.p="http://localhost:9000/",e(e.s=95)}({0:function(n,t,e){"use strict";e.d(t,"t",(function(){return i})),e.d(t,"W",(function(){return r})),e.d(t,"c",(function(){return o})),e.d(t,"v",(function(){return u})),e.d(t,"p",(function(){return c})),e.d(t,"B",(function(){return s})),e.d(t,"C",(function(){return h})),e.d(t,"q",(function(){return d})),e.d(t,"i",(function(){return f})),e.d(t,"r",(function(){return l})),e.d(t,"k",(function(){return g})),e.d(t,"l",(function(){return p})),e.d(t,"n",(function(){return m})),e.d(t,"j",(function(){return E})),e.d(t,"m",(function(){return w})),e.d(t,"T",(function(){return b})),e.d(t,"x",(function(){return v})),e.d(t,"F",(function(){return O})),e.d(t,"G",(function(){return T})),e.d(t,"H",(function(){return _})),e.d(t,"Q",(function(){return A})),e.d(t,"M",(function(){return R})),e.d(t,"L",(function(){return S})),e.d(t,"N",(function(){return I})),e.d(t,"P",(function(){return y})),e.d(t,"K",(function(){return C})),e.d(t,"O",(function(){return N})),e.d(t,"I",(function(){return P})),e.d(t,"J",(function(){return L})),e.d(t,"w",(function(){return k})),e.d(t,"o",(function(){return D})),e.d(t,"V",(function(){return x})),e.d(t,"u",(function(){return H})),e.d(t,"db",(function(){return M})),e.d(t,"b",(function(){return B})),e.d(t,"bb",(function(){return G})),e.d(t,"cb",(function(){return U})),e.d(t,"hb",(function(){return z})),e.d(t,"ib",(function(){return V})),e.d(t,"z",(function(){return j})),e.d(t,"U",(function(){return W})),e.d(t,"A",(function(){return F})),e.d(t,"S",(function(){return K})),e.d(t,"h",(function(){return Y})),e.d(t,"g",(function(){return Z})),e.d(t,"f",(function(){return Q})),e.d(t,"e",(function(){return q})),e.d(t,"d",(function(){return X})),e.d(t,"E",(function(){return J})),e.d(t,"eb",(function(){return $})),e.d(t,"X",(function(){return nn})),e.d(t,"Y",(function(){return tn})),e.d(t,"Z",(function(){return en})),e.d(t,"ab",(function(){return rn})),e.d(t,"jb",(function(){return on})),e.d(t,"R",(function(){return an})),e.d(t,"gb",(function(){return un})),e.d(t,"y",(function(){return cn})),e.d(t,"D",(function(){return sn})),e.d(t,"s",(function(){return hn})),e.d(t,"fb",(function(){return dn})),e.d(t,"a",(function(){return fn}));var i=window.location.hostname.replace(/(stg|beta|lifestyle-dev|lifestyle|life|tech|stg-tech)./i,""),r="//static.znews.vn",o="https://adtima.vn/rate-card",a="https://".concat(i,"/interactive/bannerngang/mua-sach-tiki-post2.zing"),u=''),c=(new RegExp("https*:\\/\\/(www\\.){0,1}(youtu\\.be\\/|youtube.com\\/(watch\\?v=|embed\\/))","i"),r+"/images/avatar_silkhouse.gif"),s=r+"/images/logo-zing-home.svg",h=r+"/images/logo-zing-videopage_v3.svg",d=r+"/images/bg_poll.jpg",f=r+"/releases/web/docs/#/changelog",l="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",g=r+"/images/channels/lens-logo-white_1.svg",p=r+"/images/channels/longform-logo-white_1.svg",m=r+"/images/channels/story-logo-white.svg",E=r+"/images/channels/interactive-logo-white.svg",w=r+"/images/channels/podcast_logo_white.svg",b="znews_sid",v=window.location.href.search("/preview/")>=0,O=new RegExp("^(https*:)*//(beta.|dev.|stg.)*".concat(i),"ig"),T=/abtest=(test|control)/i,_=/-post\d+\.html/i,A=/^\/video-.*-post\d+\.html/i,R=/\/.+-tin-tuc(\/|\.html)/i,S=/\/.+-tim-kiem(\/|\.html)/i,I=/\/series\/|\/tieu-diem\//i,y=/\/video\/?|\/video-.*(\/|\.html)/i,C=/\/pictures\//i,N=/\/trending\.html|\/trending\/trang\d+\.html/i,P=/\/oa-trending\.html|\/oa-trending\/trang\d+\.html/i,L=/\.html/i,k=r+"/js/highcharts/highmaps.js",D="/dich-viem-phoi-corona.html?utm_source=self&utm_medium=web&utm_campaign=covid4thwavec",x="zing.vn",H="https://"+i,M="//user."+i,B="adtima.vn",G="trithuctructuyen.vn",U="trithuctructuyen.com.vn",z="zingnews.com.vn",V="znews.vn",j="localhost",W=25200,F={HANOI:"hanoi",HCM:"tphochiminh",DA_NANG:"danang",AN_GIANG:"angiang",BAC_GIANG:"bacgiang",BAC_KAN:"backan"},K={"Hà Nội":"hanoi","TP.HCM":"hochiminh","Hồ Chí Minh":"hochiminh","Đà Nẵng":"danang","An Giang":"angiang","Bắc Giang":"bacgiang","Bắc Kạn":"backan","Bạc Liêu":"baclieu","Bắc Ninh":"bacninh","Bến Tre":"bentre","Bình Định":"binhdinh","Bình Dương":"binhduong","Bình Phước":"binhphuoc","Bình Thuận":"binhthuan","Cà Mau":"camau","Cần Thơ":"cantho","Cao Bằng":"caobang","Đắk Lắk":"daklak","Đắk Nông":"dacnong","Điện Biên":"dienbien","Đồng Nai":"dongnai","Đồng Tháp":"dongthap","Gia Lai":"gialai","Hà Giang":"hagiang","Hà Nam":"hanam","Hà Tĩnh":"hatinh","Hải Dương":"haiduong","Hải Phòng":"haiphong","Hậu Giang":"haugiang","Hòa Bình":"hoabinh","Hoà Bình":"hoabinh","Hưng Yên":"hungyen","Khánh Hòa":"khanhhoa","Kiên Giang":"kiengiang","Kon Tum":"kontum","Lai Châu":"laichau","Lâm Đồng":"lamdong","Lạng Sơn":"langson","Lào Cai":"laocai","Long An":"longan","Nam Định":"namdinh","Nghệ An":"nghean","Ninh Bình":"ninhbinh","Ninh Thuận":"ninhthuan","Phú Thọ":"phutho","Phú Yên":"phuyen","Quảng Bình":"quangbinh","Quảng Nam":"quangnam","Quảng Ngãi":"quangngai","Quảng Ninh":"quangninh","Quảng Trị":"quangtri","Sóc Trăng":"soctrang","Sơn La":"sonla","Tây Ninh":"tayninh","Thái Bình":"thaibinh","Thái Nguyên":"thainguyen","Thanh Hóa":"thanhhoa","Thừa Thiên Huế":"hue","Thừa Thiên - Huế":"hue","Huế":"hue","Tiền Giang":"tiengiang","Trà Vinh":"travinh","Tuyên Quang":"tuyenquang","Vĩnh Long":"vinhlong","Vĩnh Phúc":"vinhphuc","Vũng Tàu":"bariavungtau","Bà Rịa Vũng Tàu":"bariavungtau","Bà Rịa - Vũng Tàu":"bariavungtau","Yên Bái":"yenbai","Quần Đảo Trường Sa":"truongsa","Quần Đảo Hoàng Sa":"hoangsa"},Y={"thoi-trang":7,"am-nhac":8,"phim-anh":9,"song-tre":104,"the-thao":472,"oto-xe-may":474,"cong-nghe":476,"am-thuc":478,"du-lich":479,"giao-duc":501,"the-gioi":503,"nhip-song":529,"kinh-doanh-tai-chinh":572,"giai-tri":585,"thoi-su":605,"phap-luat":609,"chuyen-trang":624,"xuat-ban":626,"suc-khoe":645,"world-cup-2018":717},Z={XUAT_BAN:"xuat-ban",THE_THAO:"the-thao",BONG_DA_VN:"bong-da-viet-nam",BONG_DA_ANH:"bong-da-anh"},Q={7:"Thời trang",8:"Âm nhạc",9:"Phim ảnh",104:"Sống trẻ",472:"Thể thao",474:"Xe 360",476:"Công nghệ",478:"Ẩm thực",479:"Du lịch",501:"Giáo dục",503:"Thế giới",529:"Nhịp sống",572:"Kinh doanh",585:"Giải trí",605:"Thời sự",609:"Pháp luật",624:"Chuyên trang",626:"Xuất bản",645:"Sức khỏe"},q={TEXT:"text",PICTURE:"picture",STREAM:"stream",SPECIAL:"special",VIDEO:"video",INFOGRAPHIC:"infographic",HASVIDEO:"hasvideo"},X={REGULAR:"regular",NO_SIDEBAR:"no-sidebar",SPECICAL:"special"},J={ARTICLE:"article",VIDEO:"video",CATEGORY:"category",SEARCH:"search",TAG:"tag",TOPIC:"topic",HOME:"home",TRENDING:"trending",OA_TRENDING:"oa-trending",AUTHOR:"author",PICTURE:"picture"},$=(window.TEXT_COMMENT_INPUT,window.TEXT_COMMENT_SUBMIT,window.TEXT_LIST_LABEL,["1","2","3","4","5"]),nn={4907:"qna",4885:"gallery",4413:"infographic",4305:"voices",4223:"infocus",3616:"lens",3613:"sliding",3568:"branchvoice",3546:"longform",3535:"quizz",3528:"kover",3483:"story",3478:"panorama",5682:"zingstory",5755:"cover",5771:"timelinecv",5802:"timeline",5873:"podcast",5767:"interactive",5657:"review",5969:"scroll-interactive",6305:"zingstoryad"},tn={QNA:"qna",GALLERY:"gallery",INFOGRAPHIC:"infographic",VOICES:"voices",INFOCUS:"infocus",LENS:"lens",SLIDING:"sliding",BRANCHVOICE:"branchvoice",LONGFORM:"longform",QUIZZ:"quizz",KOVER:"kover",STORY:"story",PANORAMA:"panorama",ZINGSTORY:"zingstory",ZINGSTORY_AD:"zingstoryad",COVER:"cover",TIMELINECV:"timelinecv",TIMELINE:"timeline",PODCAST:"podcast",INTERACTIVE:"interactive",REVIEW:"review",SCROLL_INTERACTIVE:"scroll-interactive"},en={737:"seagame",742:"corona",750:"communist-party",99999:"communist-member",752:"usa-polls",2592:"gold-price",5767:"interactive"},rn={SEAGAME:"seagame",CORONA:"corona",COMMUNIST_PARTY:"communist-party",COMMUNIST_MEMBER:"communist-member",USA_POLLS:"usa-polls",GOLD_PRICE:"gold-price",INTERACTIVE:"interactive",PUBLISH:"xuat-ban",TRAVEL:"du-lich",CAR:"oto-xe-may",BUSSINESS:"kinh-doanh-tai-chinh",SPORT:"the-thao"},on={DEFAULT:"267866779927658906",PR_DEFAULT:"1978897178453043860",NONSKIP:"1523614667798703141",FACEBOOK:"522366200923519947",GOOGLE:"2794372856483904451"},an={PERCENT:"percentage",DETAIL:"detail"},un={DEFAULT:"default",THEATER:"theater",FULLSCREEN:"fullscreen"},cn={1:49,2:50,K:75,L:76,M:77,ESC:27,ENTER:13,V:86,SPACE:32,ARROW_LEFT:37,ARROW_RIGHT:39,ARROW_UP:38,ARROW_DOWN:40,SEMICOLON:186},sn={VERTICAL:"vertical",HORIZONTAL:"horizontal"},hn={UP:"up",DOWN:"down",LEFT:"left",RIGHT:"right"},dn={DESKTOP:0,DESKTOP_AB:2,WAP:1,WAP_AB:3},fn={TEST:"test",CONTROL:"control"}},1:function(n,t){function e(n,t){for(var e=0;e=0,u=/(ipad|tablet|(android(?!.*mobile))|(windows(?!.*phone)(.*touch))|kindle|playbook|silk|(puffin(?!.*(IP|AP|WP))))/.test(r);function c(){return/Android|webOS|iPhone|iPod|BlackBerry|Windows Phone|IEMobile|Mobile Safari|Opera Mini/i.test(navigator.userAgent.toLowerCase())}var s=["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"].includes(navigator.platform)||navigator.userAgent.includes("Mac")&&"ontouchend"in document||a;function h(){var n={platform:i.g,name:i.g,type:i.g,screen:i.g,browser:i.g,screenWidth:screen.width,screenHeight:screen.height},t=n.screenWidth;return n.screen=t&&t>1200?i.e.wide:i.e.standard,u?(n.platform=i.d.ios,n.name=i.c.ipad,n.type=i.f.tablet):r.indexOf("iphone")>-1?(n.platform=i.d.ios,n.name=i.c.iphone,n.type=i.f.smartphone):r.indexOf(i.d.android)>-1?(n.platform=i.d.android,n.type=r.indexOf("mobile")>-1?i.f.smartphone:i.f.tablet):r.indexOf("windows phone")>-1?(n.platform=i.d.windows,n.type=i.f.smartphone):n.type=i.f.desktop,r.indexOf(i.a.chrome)>-1?n.browser=i.a.chrome:r.indexOf(i.a.firefox)>-1?n.browser=i.a.firefox:r.indexOf("msie")>-1||/Trident\/7.0/i.test(r)?n.browser=i.a.ie:r.indexOf(i.a.safari)>-1&&r.indexOf(i.a.chrome)<0&&(n.browser=i.a.safari),n}function d(){var n=document.createElement("canvas");return!!window.WebGLRenderingContext&&(n.getContext("webgl")||n.getContext("experimental-webgl"))}},3:function(n,t){n.exports=function(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}},33:function(n,t,e){"use strict";e.d(t,"a",(function(){return g}));var i=e(16),r=e.n(i),o=e(3),a=e.n(o),u=e(1),c=e.n(u),s=e(12);function h(n,t){var e=Object.keys(n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(n);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),e.push.apply(e,i)}return e}function d(n){for(var t=1;t2&&void 0!==arguments[2]?arguments[2]:{};if("undefined"!=typeof document){var i=Object(s.a)({},f,e);"number"==typeof i.expires&&(i.expires=new Date(Date.now()+864e5*i.expires)),i.expires&&(i.expires=i.expires.toUTCString()),t=encodeURIComponent(String(t)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),n=encodeURIComponent(String(n)).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var r="";for(var o in i)i[o]&&(r+="; "+o,!0!==i[o]&&(r+="="+i[o].split(";")[0]));return document.cookie=n+"="+t+r}}},{key:"get",value:function(n){if("undefined"!=typeof document&&(!arguments.length||n)){for(var t=document.cookie?document.cookie.split("; "):[],e={},i=0;i1&&void 0!==arguments[1]?arguments[1]:{};this.set(n,null,d(d({},t),{},{expires:-1}))}}]),n}()},36:function(n,t,e){"use strict";e.d(t,"a",(function(){return h})),e.d(t,"b",(function(){return c})),e.d(t,"c",(function(){return s}));var i=e(3),r=e.n(i),o=e(1),a=e.n(o),u=function(){function n(){r()(this,n),this.data=[]}return a()(n,[{key:"getItem",value:function(n){return this.data[n]}},{key:"setItem",value:function(n,t){this.data[n]=String(t)}},{key:"removeItem",value:function(n){delete this.data[n]}}]),n}(),c=h()?window.localStorage:new u,s=function(){try{return"sessionStorage"in window&&(window.sessionStorage.setItem("__test__","__test__"),window.sessionStorage.removeItem("__test__"),!0)}catch(n){return!1}}()?window.sessionStorage:new u;function h(){try{return"localStorage"in window&&(window.localStorage.setItem("__test__","__test__"),window.localStorage.removeItem("__test__"),!0)}catch(n){return!1}}},5:function(n,t,e){"use strict";var i=function(n){return null!=n?n.constructor:null},r=function(n,t){return Boolean(n&&t&&n instanceof t)},o=function(n){return null==n},a=function(n){return i(n)===Object},u=function(n){return i(n)===String},c=function(n){return Array.isArray(n)},s=function(n){return r(n,NodeList)},h=function(n){return o(n)||(u(n)||c(n)||s(n))&&!n.length||a(n)&&!Object.keys(n).length};t.a={nullOrUndefined:o,object:a,number:function(n){return i(n)===Number&&!Number.isNaN(n)},string:u,boolean:function(n){return i(n)===Boolean},function:function(n){return i(n)===Function},array:c,weakMap:function(n){return r(n,WeakMap)},nodeList:s,element:function(n){return r(n,Element)},textNode:function(n){return i(n)===Text},event:function(n){return r(n,Event)},cue:function(n){return r(n,window.TextTrackCue)||r(n,window.VTTCue)},track:function(n){return r(n,TextTrack)||!o(n)&&u(n.kind)},url:function(n){if(r(n,window.URL))return!0;var t=n;n.startsWith("http://")&&n.startsWith("https://")||(t="http://".concat(n));try{return!h(new URL(t).hostname)}catch(n){return!1}},empty:h}},57:function(n,t,e){"use strict";var i=function(n,t,e){this.namespaces||(this.namespaces={}),this.namespaces[n]=t;var i=e||!1;return this.addEventListener(n.split(".")[0],t,i),this},r=function(n){return this.removeEventListener(n.split(".")[0],this.namespaces[n]),delete this.namespaces[n],this};window.on=document.on=Element.prototype.on=i,window.off=document.off=Element.prototype.off=r},6:function(n,t,e){"use strict";e.d(t,"f",(function(){return i})),e.d(t,"g",(function(){return r})),e.d(t,"e",(function(){return o})),e.d(t,"c",(function(){return a})),e.d(t,"d",(function(){return u})),e.d(t,"a",(function(){return c})),e.d(t,"b",(function(){return s}));var i={tablet:"tablet",smartphone:"smartphone",desktop:"desktop"},r="unknow",o={standard:"standard",wide:"wide"},a={ipad:"ipad",iphone:"iphone"},u={ios:"ios",windows:"windows",android:"android"},c={chrome:"chrome",firefox:"firefox",ie:"ie",safari:"safari"},s={MINI_SCREEN:1024,MEDIUM_SCREEN:1279}},95:function(n,t,e){"use strict";e.r(t);var i=e(3),r=e.n(i),o=e(1),a=e.n(o),u=e(24),c=e(36),s=e(13),h=e(12),d=e(0),f=e(33),l=e(14),g=e.n(l);e(57);new(function(){function n(){r()(this,n),this.config=window.CONFIG,this.zaConfig=window.zaConfig,this.catePath=window.cate_path,this.ZAPPID=window.ZAPPID,this.cookie=f.a,this.log=g.a,this.handleSwitchVersionClick=this.handleSwitchVersionClick.bind(this),this.switchMobile=this.switchMobile.bind(this),this.init()}return a()(n,[{key:"init",value:function(){this.isMobile()&&this.switchMobile(!1),this.setVersionWithConfig(),this.bindEvents()}},{key:"bindEvents",value:function(){window.addEventListener("DOMContentLoaded",this.handleSwitchVersionClick)}},{key:"handleSwitchVersionClick",value:function(){var n=this,t=document.getId("zing-header"),e=t&&t.find(".version");e&&e.on("click",(function(t){t.preventDefault(),n.switchMobile()}))}},{key:"switchMobile",value:function(){var n=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if("#wap"!=window.location.hash){n&&alert("Bạn sẽ được chuyển sang phiên bản di động của Znews"),Object(c.a)()&&window.localStorage.clear(),this.cookie.remove(s.a.USER_CONTROL),this.cookie.remove(s.a.VERSION,{path:"/series"});var t=this.cookie.get(s.a.VERSION);t&&(window.history.pushState?history.pushState(null,null,"#wap"):window.location.hash="#wap"),this.cookie.set(s.a.VERSION,d.fb.WAP,{expires:this.config.duration}),window.location.reload(!0)}}},{key:"isMobile",value:function(){return!!(Object(u.d)()&&window.innerWidth<600)}},{key:"setVersionWithConfig",value:function(){if(!this.cookie.get(s.a.VERSION)){var n=Object(h.b)(this.config,"version.live.id")||d.fb.DESKTOP,t=this.config.duration;this.cookie.set(s.a.VERSION,n,{expires:t})}this.zaConfig&&(this.zaConfig={pageid:"0"})}}]),n}())}}); !function(t){var n={};function e(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,e),i.l=!0,i.exports}e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:r})},e.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},e.t=function(t,n){if(1&n&&(t=e(t)),8&n)return t;if(4&n&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(e.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&n&&"string"!=typeof t)for(var i in t)e.d(r,i,function(n){return t[n]}.bind(null,i));return r},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},e.p="http://localhost:9000/",e(e.s=93)}([function(t,n,e){"use strict";e.d(n,"t",(function(){return r})),e.d(n,"W",(function(){return i})),e.d(n,"c",(function(){return o})),e.d(n,"v",(function(){return a})),e.d(n,"p",(function(){return c})),e.d(n,"B",(function(){return s})),e.d(n,"C",(function(){return f})),e.d(n,"q",(function(){return d})),e.d(n,"i",(function(){return l})),e.d(n,"r",(function(){return h})),e.d(n,"k",(function(){return p})),e.d(n,"l",(function(){return g})),e.d(n,"n",(function(){return m})),e.d(n,"j",(function(){return v})),e.d(n,"m",(function(){return b})),e.d(n,"T",(function(){return y})),e.d(n,"x",(function(){return w})),e.d(n,"F",(function(){return E})),e.d(n,"G",(function(){return O})),e.d(n,"H",(function(){return T})),e.d(n,"Q",(function(){return A})),e.d(n,"M",(function(){return R})),e.d(n,"L",(function(){return S})),e.d(n,"N",(function(){return C})),e.d(n,"P",(function(){return I})),e.d(n,"K",(function(){return _})),e.d(n,"O",(function(){return N})),e.d(n,"I",(function(){return L})),e.d(n,"J",(function(){return P})),e.d(n,"w",(function(){return x})),e.d(n,"o",(function(){return k})),e.d(n,"V",(function(){return j})),e.d(n,"u",(function(){return H})),e.d(n,"db",(function(){return z})),e.d(n,"b",(function(){return D})),e.d(n,"bb",(function(){return M})),e.d(n,"cb",(function(){return B})),e.d(n,"hb",(function(){return U})),e.d(n,"ib",(function(){return G})),e.d(n,"z",(function(){return $})),e.d(n,"U",(function(){return F})),e.d(n,"A",(function(){return V})),e.d(n,"S",(function(){return W})),e.d(n,"h",(function(){return q})),e.d(n,"g",(function(){return K})),e.d(n,"f",(function(){return X})),e.d(n,"e",(function(){return Y})),e.d(n,"d",(function(){return Q})),e.d(n,"E",(function(){return Z})),e.d(n,"eb",(function(){return J})),e.d(n,"X",(function(){return tt})),e.d(n,"Y",(function(){return nt})),e.d(n,"Z",(function(){return et})),e.d(n,"ab",(function(){return rt})),e.d(n,"jb",(function(){return it})),e.d(n,"R",(function(){return ot})),e.d(n,"gb",(function(){return ut})),e.d(n,"y",(function(){return at})),e.d(n,"D",(function(){return ct})),e.d(n,"s",(function(){return st})),e.d(n,"fb",(function(){return ft})),e.d(n,"a",(function(){return dt}));var r=window.location.hostname.replace(/(stg|beta|lifestyle-dev|lifestyle|life|tech|stg-tech)./i,""),i="//static.znews.vn",o="https://adtima.vn/rate-card",u="https://".concat(r,"/interactive/bannerngang/mua-sach-tiki-post2.zing"),a=''),c=(new RegExp("https*:\\/\\/(www\\.){0,1}(youtu\\.be\\/|youtube.com\\/(watch\\?v=|embed\\/))","i"),i+"/images/avatar_silkhouse.gif"),s=i+"/images/logo-zing-home.svg",f=i+"/images/logo-zing-videopage_v3.svg",d=i+"/images/bg_poll.jpg",l=i+"/releases/web/docs/#/changelog",h="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",p=i+"/images/channels/lens-logo-white_1.svg",g=i+"/images/channels/longform-logo-white_1.svg",m=i+"/images/channels/story-logo-white.svg",v=i+"/images/channels/interactive-logo-white.svg",b=i+"/images/channels/podcast_logo_white.svg",y="znews_sid",w=window.location.href.search("/preview/|/preview-ext/|/video-preview-ext/")>=0,E=new RegExp("^(https*:)*//(beta.|dev.|stg.)*".concat(r),"ig"),O=/abtest=(test|control)/i,T=/-post\d+\.html/i,A=/^\/video-.*-post\d+\.html/i,R=/\/.+-tin-tuc(\/|\.html)/i,S=/\/.+-tim-kiem(\/|\.html)/i,C=/\/series\/|\/tieu-diem\//i,I=/\/video\/?|\/video-.*(\/|\.html)/i,_=/\/pictures\//i,N=/\/trending\.html|\/trending\/trang\d+\.html/i,L=/\/oa-trending\.html|\/oa-trending\/trang\d+\.html/i,P=/\.html/i,x=i+"/js/highcharts/highmaps.js",k="/dich-viem-phoi-corona.html?utm_source=self&utm_medium=web&utm_campaign=covid4thwavec",j="zing.vn",H="https://"+r,z="//user."+r,D="adtima.vn",M="trithuctructuyen.vn",B="trithuctructuyen.com.vn",U="zingnews.com.vn",G="znews.vn",$="localhost",F=25200,V={HANOI:"hanoi",HCM:"tphochiminh",DA_NANG:"danang",AN_GIANG:"angiang",BAC_GIANG:"bacgiang",BAC_KAN:"backan"},W={"Hà Nội":"hanoi","TP.HCM":"hochiminh","Hồ Chí Minh":"hochiminh","Đà Nẵng":"danang","An Giang":"angiang","Bắc Giang":"bacgiang","Bắc Kạn":"backan","Bạc Liêu":"baclieu","Bắc Ninh":"bacninh","Bến Tre":"bentre","Bình Định":"binhdinh","Bình Dương":"binhduong","Bình Phước":"binhphuoc","Bình Thuận":"binhthuan","Cà Mau":"camau","Cần Thơ":"cantho","Cao Bằng":"caobang","Đắk Lắk":"daklak","Đắk Nông":"dacnong","Điện Biên":"dienbien","Đồng Nai":"dongnai","Đồng Tháp":"dongthap","Gia Lai":"gialai","Hà Giang":"hagiang","Hà Nam":"hanam","Hà Tĩnh":"hatinh","Hải Dương":"haiduong","Hải Phòng":"haiphong","Hậu Giang":"haugiang","Hòa Bình":"hoabinh","Hoà Bình":"hoabinh","Hưng Yên":"hungyen","Khánh Hòa":"khanhhoa","Kiên Giang":"kiengiang","Kon Tum":"kontum","Lai Châu":"laichau","Lâm Đồng":"lamdong","Lạng Sơn":"langson","Lào Cai":"laocai","Long An":"longan","Nam Định":"namdinh","Nghệ An":"nghean","Ninh Bình":"ninhbinh","Ninh Thuận":"ninhthuan","Phú Thọ":"phutho","Phú Yên":"phuyen","Quảng Bình":"quangbinh","Quảng Nam":"quangnam","Quảng Ngãi":"quangngai","Quảng Ninh":"quangninh","Quảng Trị":"quangtri","Sóc Trăng":"soctrang","Sơn La":"sonla","Tây Ninh":"tayninh","Thái Bình":"thaibinh","Thái Nguyên":"thainguyen","Thanh Hóa":"thanhhoa","Thừa Thiên Huế":"hue","Thừa Thiên - Huế":"hue","Huế":"hue","Tiền Giang":"tiengiang","Trà Vinh":"travinh","Tuyên Quang":"tuyenquang","Vĩnh Long":"vinhlong","Vĩnh Phúc":"vinhphuc","Vũng Tàu":"bariavungtau","Bà Rịa Vũng Tàu":"bariavungtau","Bà Rịa - Vũng Tàu":"bariavungtau","Yên Bái":"yenbai","Quần Đảo Trường Sa":"truongsa","Quần Đảo Hoàng Sa":"hoangsa"},q={"thoi-trang":7,"am-nhac":8,"phim-anh":9,"song-tre":104,"the-thao":472,"oto-xe-may":474,"cong-nghe":476,"am-thuc":478,"du-lich":479,"giao-duc":501,"the-gioi":503,"nhip-song":529,"kinh-doanh-tai-chinh":572,"giai-tri":585,"thoi-su":605,"phap-luat":609,"chuyen-trang":624,"xuat-ban":626,"suc-khoe":645,"world-cup-2018":717},K={XUAT_BAN:"xuat-ban",THE_THAO:"the-thao",BONG_DA_VN:"bong-da-viet-nam",BONG_DA_ANH:"bong-da-anh"},X={7:"Thời trang",8:"Âm nhạc",9:"Phim ảnh",104:"Sống trẻ",472:"Thể thao",474:"Xe 360",476:"Công nghệ",478:"Ẩm thực",479:"Du lịch",501:"Giáo dục",503:"Thế giới",529:"Nhịp sống",572:"Kinh doanh",585:"Giải trí",605:"Thời sự",609:"Pháp luật",624:"Chuyên trang",626:"Xuất bản",645:"Sức khỏe"},Y={TEXT:"text",PICTURE:"picture",STREAM:"stream",SPECIAL:"special",VIDEO:"video",INFOGRAPHIC:"infographic",HASVIDEO:"hasvideo"},Q={REGULAR:"regular",NO_SIDEBAR:"no-sidebar",SPECICAL:"special"},Z={ARTICLE:"article",VIDEO:"video",CATEGORY:"category",SEARCH:"search",TAG:"tag",TOPIC:"topic",HOME:"home",TRENDING:"trending",OA_TRENDING:"oa-trending",AUTHOR:"author",PICTURE:"picture"},J=(window.TEXT_COMMENT_INPUT,window.TEXT_COMMENT_SUBMIT,window.TEXT_LIST_LABEL,["1","2","3","4","5"]),tt={4907:"qna",4885:"gallery",4413:"infographic",4305:"voices",4223:"infocus",3616:"lens",3613:"sliding",3568:"branchvoice",3546:"longform",3535:"quizz",3528:"kover",3483:"story",3478:"panorama",5682:"zingstory",5755:"cover",5771:"timelinecv",5802:"timeline",5873:"podcast",6382:"vodcast",5767:"interactive",5657:"review",5969:"scroll-interactive",6305:"zingstoryad"},nt={QNA:"qna",GALLERY:"gallery",INFOGRAPHIC:"infographic",VOICES:"voices",INFOCUS:"infocus",LENS:"lens",SLIDING:"sliding",BRANCHVOICE:"branchvoice",LONGFORM:"longform",QUIZZ:"quizz",KOVER:"kover",STORY:"story",PANORAMA:"panorama",ZINGSTORY:"zingstory",ZINGSTORY_AD:"zingstoryad",COVER:"cover",TIMELINECV:"timelinecv",TIMELINE:"timeline",PODCAST:"podcast",VODCAST:"vodcast",INTERACTIVE:"interactive",REVIEW:"review",SCROLL_INTERACTIVE:"scroll-interactive"},et={737:"seagame",742:"corona",750:"communist-party",99999:"communist-member",752:"usa-polls",2592:"gold-price",4468:"exchange-rate",7111:"stock",5767:"interactive"},rt={SEAGAME:"seagame",CORONA:"corona",COMMUNIST_PARTY:"communist-party",COMMUNIST_MEMBER:"communist-member",USA_POLLS:"usa-polls",GOLD_PRICE:"gold-price",EXCHANGE_RATE:"exchange-rate",STOCK:"stock",INTERACTIVE:"interactive",PUBLISH:"xuat-ban",TRAVEL:"du-lich",CAR:"oto-xe-may",BUSSINESS:"kinh-doanh-tai-chinh",SPORT:"the-thao"},it={DEFAULT:"267866779927658906",PR_DEFAULT:"1978897178453043860",NONSKIP:"1523614667798703141",FACEBOOK:"522366200923519947",GOOGLE:"2794372856483904451"},ot={PERCENT:"percentage",DETAIL:"detail"},ut={DEFAULT:"default",THEATER:"theater",FULLSCREEN:"fullscreen"},at={1:49,2:50,K:75,L:76,M:77,ESC:27,ENTER:13,V:86,SPACE:32,ARROW_LEFT:37,ARROW_RIGHT:39,ARROW_UP:38,ARROW_DOWN:40,SEMICOLON:186},ct={VERTICAL:"vertical",HORIZONTAL:"horizontal"},st={UP:"up",DOWN:"down",LEFT:"left",RIGHT:"right"},ft={DESKTOP:0,DESKTOP_AB:2,WAP:1,WAP_AB:3},dt={TEST:"test",CONTROL:"control"}},function(t,n){function e(t,n){for(var e=0;e0&&void 0!==arguments[0]?arguments[0]:"div",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3?arguments[3]:void 0,i=document.createElement(t);return Object.getOwnPropertyNames(n).forEach((function(t){var e=n[t];-1!==t.indexOf("aria-")||"role"===t||"type"===t?i.setAttribute(t,e):i[t]=e})),Object.getOwnPropertyNames(e).forEach((function(t){i.setAttribute(t,e[t])})),r&&g(i,r),i}function y(t){var n=document.createElement("div");return n.innerHTML=t,n.firstChild}function w(t,n){return t.getAttribute(n)}function E(t,n,e){t.setAttribute(n,e)}function O(t,n){t.removeAttribute(n)}function T(t){var n;if(t.getBoundingClientRect&&t.parentNode&&(n=t.getBoundingClientRect()),!n)return{left:0,top:0};var e=document.documentElement,r=document.body,i=e.clientLeft||r.clientLeft||0,o=window.pageXOffset||r.scrollLeft,u=n.left+o-i,a=e.clientTop||r.clientTop||0,c=window.pageYOffset||r.scrollTop,s=n.top+c-a;return{left:Math.round(u),top:Math.round(s)}}function A(t){if(t){var n=t.getBoundingClientRect();return n.height/2<=window.innerHeight-n.top&&n.bottom>=n.height/2}}function R(t,n){var e=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r={},i=T(t),o=e?t.offsetHeight:t.offsetWidth,u=e?t.offsetWidth:t.offsetHeight,a=i.top,c=i.left,s=n.pageY,f=n.pageX;return n.changedTouches&&(f=n.changedTouches[0].pageX,s=n.changedTouches[0].pageY),r.y=Math.max(0,Math.min(1,(a-s+u)/u)),r.x=Math.max(0,Math.min(1,(f-c)/o)),r}function S(t){return void 0===t.button&&void 0===t.buttons||0===t.button&&void 0===t.buttons||0===t.button&&1===t.buttons}function C(t){t&&t.parentNode&&t.parentNode.removeChild(t)}},function(t,n,e){"use strict";e.d(n,"m",(function(){return c})),e.d(n,"f",(function(){return s})),e.d(n,"b",(function(){return f})),e.d(n,"n",(function(){return d})),e.d(n,"a",(function(){return l})),e.d(n,"l",(function(){return h})),e.d(n,"c",(function(){return p})),e.d(n,"d",(function(){return g})),e.d(n,"g",(function(){return m})),e.d(n,"k",(function(){return v})),e.d(n,"r",(function(){return b})),e.d(n,"h",(function(){return y})),e.d(n,"i",(function(){return w})),e.d(n,"p",(function(){return E})),e.d(n,"q",(function(){return O})),e.d(n,"o",(function(){return T})),e.d(n,"e",(function(){return A})),e.d(n,"j",(function(){return R}));var r=e(31),i=e(6),o=e(8),u=e(3),a=e(12);function c(t){return!!(t.offsetWidth||t.offsetHeight||t.getClientRects().length)}function s(t,n){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"body";if(Element.prototype.closest)return t.closest(n);for(var r=t.parentNode;r&&!r.matches(e)&&!r.matches(n);)r=r.parentNode;return r.matches(e)&&(r=null),r}function f(t){var n=document.createElement("tbody");return n.innerHTML=t,n.firstChild}var d=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return n.forEach((function(n){t.classList=t.classList.value.replace(n,"")})),t},l=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return n.forEach((function(n){t.classList.add(n)})),t},h=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;t=Object(r.a)(t);var e=window,i=Object(o.w)(),u=i+e.innerHeight,a=t.offset().top,c=a+t.height();return c>=i-n&&a<=u+n};function p(t){var n=t.getBoundingClientRect(),e=n.top,r=n.right,i=n.bottom,u=n.left,a=n.height,c=n.width;return{top:e+=Object(o.w)(),right:r,bottom:i,left:u+=Object(o.v)(),width:c,height:a}}function g(t,n){return n?Object(i.textContent)(t,n):(t.textContent||t.innerText).trim()}function m(t){for(var n=[],e=t;e;)e=e.previousSibling,n.push(e);return n}var v=function(t){return t instanceof NodeList};function b(t,n){var e=Object(i.createElFromHTML)(n);return t.parentNode.insertBefore(e,t),e.appendChild(t),e}function y(t,n){t&&n&&(u.a.element(n)?Element.prototype.after?t.after(n):t.insertAdjacentElement("afterend",n):u.a.string(n)&&t.insertAdjacentHTML("afterend",n))}function w(t,n){t&&n&&(u.a.element(n)?Element.prototype.before?t.before(n):t.parentNode.insertBefore(n,t):u.a.string(n)&&t.insertAdjacentHTML("beforebegin",n))}var E=function(t){t&&v(t)&&t.forEach((function(t){Object(i.removeFromDom)(t)}))},O=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"a";if(t){var e=t.findAll(n);e.forEach((function(t){t.on("mouseover",(function(){t.setAttribute("data-title",t.getAttribute("title")),t.removeAttribute("title")})),t.on("mouseout",(function(){t.setAttribute("title",t.getAttribute("data-title"))}))}))}},T=function(t){for(var n=t.length,e=0;e=e.top-10}},function(t,n,e){"use strict";e.d(n,"i",(function(){return v})),e.d(n,"j",(function(){return b})),e.d(n,"k",(function(){return w})),e.d(n,"F",(function(){return E})),e.d(n,"G",(function(){return O})),e.d(n,"B",(function(){return T})),e.d(n,"z",(function(){return A})),e.d(n,"H",(function(){return R})),e.d(n,"E",(function(){return S})),e.d(n,"u",(function(){return C})),e.d(n,"C",(function(){return I})),e.d(n,"t",(function(){return _})),e.d(n,"A",(function(){return N})),e.d(n,"m",(function(){return L})),e.d(n,"o",(function(){return x})),e.d(n,"n",(function(){return k})),e.d(n,"q",(function(){return j})),e.d(n,"L",(function(){return H})),e.d(n,"a",(function(){return z})),e.d(n,"D",(function(){return D})),e.d(n,"f",(function(){return M})),e.d(n,"x",(function(){return B})),e.d(n,"l",(function(){return U})),e.d(n,"b",(function(){return G})),e.d(n,"s",(function(){return $})),e.d(n,"p",(function(){return V})),e.d(n,"r",(function(){return W})),e.d(n,"w",(function(){return q})),e.d(n,"v",(function(){return K})),e.d(n,"J",(function(){return X})),e.d(n,"I",(function(){return Y})),e.d(n,"e",(function(){return Q})),e.d(n,"c",(function(){return Z})),e.d(n,"g",(function(){return J})),e.d(n,"M",(function(){return tt})),e.d(n,"h",(function(){return nt})),e.d(n,"d",(function(){return et})),e.d(n,"K",(function(){return rt})),e.d(n,"y",(function(){return it}));var r=e(26),i=e.n(r),o=e(34),u=e.n(o),a=e(17),c=e.n(a),s=e(13),f=e(18),d=e(20),l=(e(14),e(22),e(0)),h=e(7),p=e(12);function g(t,n){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable}))),e.push.apply(e,r)}return e}function m(t){for(var n=1;n1&&void 0!==arguments[1]?arguments[1]:3,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:500;return new Promise((function(i,o){return n().then((function(t){return i(t)})).catch((function(u){return u.err||1===e?o(u):setTimeout((function(){return t(n,e-1,r).then(i,o)}),r)}))}))},b=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3?arguments[3]:void 0,i=Object(s.a)({credentials:"include"},e);return Object(f.fetch)(d.l+t,n,i,r)},y=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=arguments.length>4?arguments[4]:void 0,o=m({credentials:"include"},r),u=r.body?r.body:new URLSearchParams;for(var a in e)u.append(a,e[a]);return o=m(m({},o),{},{body:u}),Object(f.fetch)(t,n,o,i)},w=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3?arguments[3]:void 0,i=Object(s.a)({credentials:"include"},e);return Object(f.fetch)(t,n,i,r)},E=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=arguments.length>4?arguments[4]:void 0,o=Object(s.a)({method:"POST",credentials:"include"},r);return y(d.l+t,n,e,o,i)},O=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=arguments.length>4?arguments[4]:void 0,o=Object(s.a)({method:"POST",credentials:"include"},r);return y(t,n,e,o,i)},T=function(){return window.location.hash.search("app")>=0||window.location.search.search("app")>=0},A=function(t){return window.location.hash.search(t)>=0};function R(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e3;return Math.floor(Math.random()*(n-t+1))+t}var S=function(t){return!!t.match(/^(?:https?:\/\/)?(?:www\.)?(?:youtu\.be\/|youtube\.com\/(?:embed\/|v\/|watch\?v=|watch\?.+&v=))((\w|-){11})(?:\S+)?$/)&&RegExp.$1},C=function(){return window.innerWidth-document.documentElement.clientWidth},I=function(){var t=window.getSelection();return t.anchorNode.parentNode.innerText===t.focusNode.parentNode.innerText},_=function(){return window.getSelection().getRangeAt(0).getBoundingClientRect()},N=function(t){var n=(t||window.location.href).replace(/#.*|\?.*/gi,"").replace(l.F,"");return l.Q.test(n)},L=function(t){t||(t=window.location.href);var n=t.match(/post([0-9]+)\./i);return null!=n&&n.length>1||null!=(n=t.match(/\?id=([0-9]+)/i))&&n.length>1?n[1]:null},P=function(t){var n=t.replace(/#.*|\?.*/gi,"").replace(l.F,"");return"/"==n||""==n?l.E.HOME:l.H.test(n)||l.Q.test(n)?l.E.ARTICLE:l.M.test(n)?l.E.TAG:l.L.test(n)?l.E.SEARCH:l.N.test(n)?l.E.TOPIC:l.P.test(n)?l.E.VIDEO:l.K.test(n)?l.E.PICTURE:l.O.test(n)?l.E.TRENDING:l.I.test(n)?l.E.OA_TRENDING:l.J.test(n)?l.E.CATEGORY:l.E.AUTHOR},x=function(t){var n=t||window.location.pathname;if((n=String(n).toLowerCase()).indexOf(".html")<0)return"";var e=n.replace(".html","").split("/");return e[e.length-1]||""},k=function(t){var n=t||window.location.href,e=L(n);return e?window.location.protocol+"//".concat(l.t,"/znews-post").concat(e,".html"):""},j=function(t){if(t)return P(t);var n=document.body&&document.body.getAttribute("id");return n?"page-homepage"===n?"home":n.replace("page-",""):P(window.location.pathname)},H=function(t,n){return t.sort((function(t,e){return t[n]>e[n]?-1:t[n]=0)return!1;return/[a-z0-9!#$%&'*+\/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+\/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+(?:[A-Z]{2}|com|org|net|gov|mil|biz|info|mobi|name|aero|jobs|museum)\b/i.test(t)},M=function(){var t=document.getId("input-clipboard");t||((t=document.createElement("input")).id="input-clipboard",t.setAttribute("value",window.location.href),document.body.append(t)),t.select(),document.execCommand("copy"),t.parentNode.removeChild(t)},B=function(){return(window.getSelection?window.getSelection().toString():document.selection?document.selection.createRange().text:"").trim()};function U(t){var n=t.zone,e=t.position,r=t.suffix,i=t.zappid;if(!t||!n||!e)throw Error("No tracking information provided");var o=i+"_"+j()+"_";return o+=n.replace(/-/gi,"")+e,r&&(o+="_"+r),o}function G(t){if("string"==typeof t)return t;var n=[];for(var e in t)t.hasOwnProperty(e)&&n.push(encodeURIComponent(e)+"="+encodeURIComponent(t[e]));return n.join("&")}function $(t){return(n=window.location.search,n?(/^[?#]/.test(n)&&(n=n.slice(1)),n.split("&").reduce((function(t,n){var e=n.split("="),r=u()(e,2),i=r[0],o=r[1];return t[i]=o?decodeURIComponent(o.replace(/\+/g," ")):"",t}),{})):{})[t]||"";var n}var F=function(){return Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.clientHeight,document.documentElement.scrollHeight,document.documentElement.offsetHeight)},V=function(){return(new Date).getTime()};function W(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window.location.href;t=t.replace(/[\[\]]/g,"\\$&");var e=new RegExp("[?&]"+t+"(=([^&#]*)|&|#|$)"),r=e.exec(n);if(!r)return null;if(!r[2])return"";try{var i=decodeURIComponent(r[2].replace(/\+/g,""));return i}catch(t){return""}}function q(){return void 0!==window.pageYOffset?window.pageYOffset:(document.documentElement||document.body.parentNode||document.body).scrollTop}function K(){return void 0!==window.pageXOffset?window.pageXOffset:(document.documentElement||document.body.parentNode||document.body).scrollLeft}var X=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e3;return new Promise((function(e){var r=q(),i=V(),o=F(),u=Math.round(o-t-1?t.split("/")[2]:t.split("/")[0]).split(":")[0].split("?")[0].replace(/^www\./i,"")}function et(t){return"object"===i()(t)?JSON.parse(JSON.stringify(t)):t}function rt(t,n){if(n&&n.err<0){var e=m(m({},n),{},{apiUrl:t});p.a.error(e)}}function it(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return n.reduce((function(n,e){var r=String(e[t]).trim();return n[r]=n[r]||[],n[r].push(e),n}),{})}},function(t,n,e){var r=e(26),i=e(11);t.exports=function(t,n){return!n||"object"!==r(n)&&"function"!=typeof n?i(t):n}},function(t,n,e){var r=e(42);t.exports=function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(n&&n.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),n&&r(t,n)}},function(t,n){t.exports=function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}},function(t,n,e){"use strict";e.d(n,"a",(function(){return f}));var r=e(18),i=e(15),o=e.n(i),u=e(18).buildURLWithParam,a=function(t,n){var e=u(t,n),r=document.createElement("img");r.setAttribute("src",e),r.setAttribute("style","display:none")},c=window.location.hostname.includes("stg")?"https://stg.znews.vn/api/v1/log/post":"https://w-api.znews.vn/api/v1/log/post",s=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=new URLSearchParams;for(var o in e)i.append(o,e[o]);var u={method:"POST",credentials:"include",body:i};return Object(r.fetch)(t,n,u)},f={debug:function(){o.a.debug.apply(o.a,arguments)},info:function(){o.a.info.apply(o.a,arguments)},error:function(){for(var t=arguments.length,n=new Array(t),e=0;e-1?i:e),this.mode=n.mode||null,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&n.body)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(n.body)}function d(t){var n=new FormData;return t.trim().split("&").forEach((function(t){if(t){var e=t.split("="),r=e.shift().replace(/\+/g," "),i=e.join("=").replace(/\+/g," ");n.append(decodeURIComponent(r),decodeURIComponent(i))}})),n}function l(t){var n=new r;return t.getAllResponseHeaders().trim().split("\n").forEach((function(t){var e=t.trim().split(":"),r=e.shift().trim(),i=e.join(":").trim();n.append(r,i)})),n}var h=!("undefined"==typeof window||!window.ActiveXObject||window.XMLHttpRequest&&(new XMLHttpRequest).dispatchEvent);function p(t,n){n||(n={}),this._initBody(t),this.type="default",this.url=null,this.status=n.status,this.ok=this.status>=200&&this.status<300,this.statusText=n.statusText,this.headers=n.headers instanceof r?n.headers:new r(n.headers),this.url=n.url||""}return c.call(f.prototype),c.call(p.prototype),window.Headers=r,window.Request=f,window.Response=p,window.fetch=function(t,n){var e;return e=f.prototype.isPrototypeOf(t)&&!n?t:new f(t,n),new fetch.Promise((function(t,n){var r=function(){return h&&!/^(get|post|head|put|delete|options)$/i.test(this.method)?(this.usingActiveXhr=!0,new window.ActiveXObject("Microsoft.XMLHTTP")):new XMLHttpRequest}.call(this);function i(){if(4===r.readyState){var e=1223===r.status?204:r.status;if(e<100||e>599)n(new TypeError("Network request failed"));else{var i={status:e,statusText:r.statusText,headers:l(r),url:"responseURL"in r?r.responseURL:/^X-Request-URL:/m.test(r.getAllResponseHeaders())?r.getResponseHeader("X-Request-URL"):void 0},o="response"in r?r.response:r.responseText;t(new p(o,i))}}}"cors"===e.credentials&&(r.withCredentials=!0),r.onreadystatechange=i,this.usingActiveXhr||(r.onload=i,r.onerror=function(){n(new TypeError("Network request failed"))}),r.open(e.method,e.url,!0),"responseType"in r&&a.blob&&(r.responseType="blob"),e.headers.forEach((function(t,n){n.forEach((function(n){r.setRequestHeader(t,n)}))})),r.send(void 0===e._bodyInit?null:e._bodyInit)}))},fetch.Promise=window.Promise,window.fetch.polyfill=!0,window.fetch.apply(window,t)}e.r(n),e.d(n,"buildParamsQuery",(function(){return a})),e.d(n,"buildURLWithParam",(function(){return c})),e.d(n,"fetch",(function(){return s})),e.d(n,"post",(function(){return f}));var i=e(3);function o(t){for(var n=1;n1&&void 0!==arguments[1]?arguments[1]:{},e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments.length>3?arguments[3]:void 0;return r(c(t,n),e,i).then((function(t){return t.json()})).catch((function(t){return{error:t}}))},f=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=arguments.length>4?arguments[4]:void 0,u=o({credentials:"include"},r),a=r.body?r.body:new FormData;for(var c in e)a.append(c,e[c]);return u=o({},u,{body:a}),s(t,n,u,i)}},,function(t,n,e){"use strict";e.d(n,"k",(function(){return o})),e.d(n,"j",(function(){return u})),e.d(n,"f",(function(){return a})),e.d(n,"e",(function(){return c})),e.d(n,"l",(function(){return s})),e.d(n,"m",(function(){return f})),e.d(n,"n",(function(){return d})),e.d(n,"i",(function(){return l})),e.d(n,"h",(function(){return h})),e.d(n,"a",(function(){return p})),e.d(n,"b",(function(){return g})),e.d(n,"d",(function(){return m})),e.d(n,"c",(function(){return v})),e.d(n,"o",(function(){return b})),e.d(n,"g",(function(){return y}));var r=e(0),i="//log."+r.t,o=window.location.hostname.indexOf("stg.")>-1?"//stg-api.news.zing.vn":"//api."+r.t,u=window.location.hostname.indexOf("stg")>-1?"//stg.znews.vn/api/v1":"//w-api.znews.vn/api/v1",a=i+"/Counter2.aspx",c=o+"/public/v2/submit/feedback",s=o+"/public/v2",f="https://api.znews.vn/public/v3",d=i+"/imps",l=i+"/collect",h="//web.api.adtimaserver.vn/rtb/prepareRTB",p="https://web-api.tjme.io/zvid/vid",g="//web.api.adtimaserver.vn/rendervideodemo",m="//web.api.adtimaserver.vn/zad/zone/znewsPR3",v=s+"/getRawArticles",b=o+"/public/campaign/getUSElectionData",y={COMMENT_GET:"/getComments",COMMNET_POST:"/submit/comment",COMMENT_LIKE_POST:"/submit/likeComment",USER_HISTORY:"/history",POLL_GET:"/getPoll",POLL_POST:"/submit/poll",STATS_GET:"/trendctr",LIVE_GET:"/getLivestream",UTILITIES_GET:"/getUtilities",BOOK_CHAPTERS_GET:"/getArticles",RECOMMENT_ARTICLES:"/content/get/may-interested",ARTICLES_LIST:"/article/getList"}},,function(t,n,e){"use strict";e.d(n,"h",(function(){return i})),e.d(n,"f",(function(){return o})),e.d(n,"c",(function(){return u})),e.d(n,"e",(function(){return a})),e.d(n,"d",(function(){return c})),e.d(n,"b",(function(){return s})),e.d(n,"a",(function(){return f})),e.d(n,"g",(function(){return d}));var r=e(5),i=navigator.userAgent.toLowerCase(),o=window.location.href.match(/https*:\/\/beta\.|\?mode=test/i),u=navigator.platform.toUpperCase().indexOf("MAC")>=0,a=/(ipad|tablet|(android(?!.*mobile))|(windows(?!.*phone)(.*touch))|kindle|playbook|silk|(puffin(?!.*(IP|AP|WP))))/.test(i);function c(){return/Android|webOS|iPhone|iPod|BlackBerry|Windows Phone|IEMobile|Mobile Safari|Opera Mini/i.test(navigator.userAgent.toLowerCase())}var s=["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"].includes(navigator.platform)||navigator.userAgent.includes("Mac")&&"ontouchend"in document||u;function f(){var t={platform:r.g,name:r.g,type:r.g,screen:r.g,browser:r.g,screenWidth:screen.width,screenHeight:screen.height},n=t.screenWidth;return t.screen=n&&n>1200?r.e.wide:r.e.standard,a?(t.platform=r.d.ios,t.name=r.c.ipad,t.type=r.f.tablet):i.indexOf("iphone")>-1?(t.platform=r.d.ios,t.name=r.c.iphone,t.type=r.f.smartphone):i.indexOf(r.d.android)>-1?(t.platform=r.d.android,t.type=i.indexOf("mobile")>-1?r.f.smartphone:r.f.tablet):i.indexOf("windows phone")>-1?(t.platform=r.d.windows,t.type=r.f.smartphone):t.type=r.f.desktop,i.indexOf(r.a.chrome)>-1?t.browser=r.a.chrome:i.indexOf(r.a.firefox)>-1?t.browser=r.a.firefox:i.indexOf("msie")>-1||/Trident\/7.0/i.test(i)?t.browser=r.a.ie:i.indexOf(r.a.safari)>-1&&i.indexOf(r.a.chrome)<0&&(t.browser=r.a.safari),t}function d(){var t=document.createElement("canvas");return!!window.WebGLRenderingContext&&(t.getContext("webgl")||t.getContext("experimental-webgl"))}},,function(t,n,e){"use strict";e.d(n,"a",(function(){return y}));var r=e(2),i=e.n(r),o=e(1),u=e.n(o),a=e(10),c=e.n(a),s=e(9),f=e.n(s),d=e(4),l=e.n(d),h=e(27),p=e(13),g=e(3),m=e(6),v=e(7);function b(t){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var e,r=l()(t);if(n){var i=l()(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return f()(this,e)}}var y=function(t){c()(e,t);var n=b(e);function e(){var t;return i()(this,e),(t=n.call(this)).Dom=m,t}return u()(e,[{key:"find",value:function(t){return this.$el.find(t)}},{key:"findAll",value:function(t){return this.$el.findAll(t)}},{key:"getAttribute",value:function(t){return m.getAttribute(this.$el,t)}},{key:"setAttribute",value:function(t,n){return m.setAttribute(this.$el,t,n),this}},{key:"removeAttribute",value:function(t){return m.removeAttribute(this.$el,t),this}},{key:"setStyles",value:function(t){return m.setStyles(this.$el,t),this}},{key:"hasClass",value:function(t){return m.hasClass(this.$el,t)}},{key:"addClass",value:function(t){var n=this;return t.split(" ").forEach((function(t){m.addClass(n.$el,t)})),this}},{key:"removeClass",value:function(t){var n=this;return t.split(" ").forEach((function(t){n.Dom.removeClass(n.$el,t)})),this}},{key:"toggleClass",value:function(t,n){return m.toggleClass(this.$el,t,n),this}},{key:"show",value:function(){return this.setStyles({display:"block"}),this}},{key:"hide",value:function(){return this.setStyles({display:"none"}),this}},{key:"append",value:function(t){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(g.a.string(t)){var e=document.createElement("div");e.innerHTML=t,t=e.firstChild}return n?this.$el.appendChild(t):this.$el.prepend(t),this}},{key:"prepend",value:function(t){return this.append(t,!1),this}},{key:"insertAfter",value:function(t){return Object(v.h)(this.$el,t),this}},{key:"insertBefore",value:function(t){return Object(v.i)(this.$el,t),this}},{key:"remove",value:function(){return m.removeFromDom(this.$el),this}},{key:"html",value:function(t){return this.$el.innerHTML=t,this}},{key:"render",value:function(){var t=Object(p.a)({},this.attributes);this.id&&(t.id=this.id);var n=Object(p.a)({},this.properties);return this.$el=m.createEl(this.tagName,n,t),this.$el}},{key:"properties",get:function(){return{}}}],[{key:"tagName",get:function(){return"div"}},{key:"events",get:function(){return{}}},{key:"attributes",get:function(){return{}}}]),e}(h.a)},function(t,n,e){"use strict";function r(t){var n=document.body||document.documentElement;if("string"==typeof n.style[t])return t;for(var e=["Moz","Webkit","Khtml","O","ms"],r=e.length,i=t.charAt(0).toUpperCase()+t.substr(1),o=0;o1?t*window.devicePixelRatio:t,e=210;return n>1200?e=1920:n>1024?e=1200:n>960?e=1024:n>860?e=960:n>660?e=860:n>480?e=660:n>360?e=480:n>210&&(e=360),e},a=1;function c(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(t&&t instanceof Element){var e=window,c="data-src",s=t.parentNode.getBoundingClientRect(),f=s.width,d=n.threshold,l=n.getWidthOptimized,h=1e4*Math.random(),p="scroll.".concat(a).concat(h),g="resize.".concat(a).concat(h),m="click.".concat(a).concat(h),v=function(){if(Object(i.m)(t)&&Object(i.l)(t,d)){var e=t.getAttribute(c),a=t.getAttribute("alt");if(e){var s=e.search(/\.gif$/)>-1;if(n.autoscale&&!s){var h=/\/w\d+\//gi;e.search(h)<0&&(e=e.replace(/\/Uploaded\//g,"/w480/Uploaded/")),e=e.replace(h,"/w"+(l?l(f):u(f))+"/")}if(!n.autoscale&&n.widthByParent){e.search(/\/w\d+\//gi)<0&&(e=e.replace(/\/Uploaded\//g,"/w"+parseInt(f)+"/Uploaded/"))}if(n.forceSize){e.search(/\/w\d+\//gi)<0&&(e=e.replace(/\/Uploaded\//g,"/".concat(n.forceSize,"/Uploaded/")))}var p;Object(r.hasClass)(t,"tracking")?(Object(r.addClass)(t,"unveil"),t.setAttribute("src",e),t.removeAttribute("data-src"),b()):t.parentNode&&(t.src=e,t.onerror=function(){o.a.errorImage("Error loadImage fail|src:",{src:e,alt:a})},Object(r.addClass)(t,"unveil"),t.removeAttribute("data-src"),p&&Object(r.removeFromDom)(p),b())}}},b=function(){e.off(p,v),e.off(g,v),e.off(m,v)};e.on(p,v),e.on(g,v),e.on(m,v),v(),a++}}},function(t,n,e){var r=e(44),i=e(45),o=e(37),u=e(46);t.exports=function(t,n){return r(t)||i(t,n)||o(t,n)||u()}},function(t,n,e){"use strict";e.d(n,"a",(function(){return l}));var r=e(26),i=e.n(r),o=e(13);function u(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return t.replace(new RegExp(n.toString().replace(/([.*+?^=!:${}()|[\]\/\\])/g,"\\$1"),"g"),e.toString())}function a(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").toString().replace(/\w\S*/g,(function(t){return t.charAt(0).toUpperCase()+t.substr(1).toLowerCase()}))}function c(){var t=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").toString();return t=u(t,"-"," "),t=u(t,"_"," "),u(t=a(t)," ","")}function s(){var t=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").toString();return(t=c(t)).charAt(0).toLowerCase()+t.slice(1)}var f=e(6),d=e(25);function l(t,n,e,r,u){var a={propertyMap:{marginLeft:"margin",marginRight:"margin",marginBottom:"margin",marginTop:"margin",paddingLeft:"padding",paddingRight:"padding",paddingBottom:"padding",paddingTop:"padding"},enabled:!0,useTransitionEnd:!1},c=document.createElement("div"),l={};l.transition=Object(d.c)("transition"),l.transitionDelay=Object(d.c)("transitionDelay"),l.transform=Object(d.c)("transform"),l.transformOrigin=Object(d.c)("transformOrigin"),l.filter=Object(d.c)("Filter"),l.transform3d=(c.style[l.transform]="",c.style[l.transform]="rotateY(90deg)",""!==c.style[l.transform]);var h=l.transitionEnd={transition:"transitionend",MozTransition:"transitionend",OTransition:"oTransitionEnd",WebkitTransition:"webkitTransitionEnd",msTransition:"MSTransitionEnd"}[l.transition]||null;c=null;var p={ease:"ease",in:"ease-in",out:"ease-out","in-out":"ease-in-out",snap:"cubic-bezier(0,1,.5,1)",easeInCubic:"cubic-bezier(.550,.055,.675,.190)",easeOutCubic:"cubic-bezier(.215,.61,.355,1)",easeInOutCubic:"cubic-bezier(.645,.045,.355,1)",easeInCirc:"cubic-bezier(.6,.04,.98,.335)",easeOutCirc:"cubic-bezier(.075,.82,.165,1)",easeInOutCirc:"cubic-bezier(.785,.135,.15,.86)",easeInExpo:"cubic-bezier(.95,.05,.795,.035)",easeOutExpo:"cubic-bezier(.19,1,.22,1)",easeInOutExpo:"cubic-bezier(1,0,0,1)",easeInQuad:"cubic-bezier(.55,.085,.68,.53)",easeOutQuad:"cubic-bezier(.25,.46,.45,.94)",easeInOutQuad:"cubic-bezier(.455,.03,.515,.955)",easeInQuart:"cubic-bezier(.895,.03,.685,.22)",easeOutQuart:"cubic-bezier(.165,.84,.44,1)",easeInOutQuart:"cubic-bezier(.77,0,.175,1)",easeInQuint:"cubic-bezier(.755,.05,.855,.06)",easeOutQuint:"cubic-bezier(.23,1,.32,1)",easeInOutQuint:"cubic-bezier(.86,0,.07,1)",easeInSine:"cubic-bezier(.47,0,.745,.715)",easeOutSine:"cubic-bezier(.39,.575,.565,1)",easeInOutSine:"cubic-bezier(.445,.05,.55,.95)",easeInBack:"cubic-bezier(.6,-.28,.735,.045)",easeOutBack:"cubic-bezier(.175, .885,.32,1.275)",easeInOutBack:"cubic-bezier(.68,-.55,.265,1.55)"};function g(t,n,e,r){var i=function(t){var n=[];for(var e in t)e=s(e),e=m(e=a.propertyMap[e]||e),l[e]&&(e=m(l[e])),-1===n.indexOf(e)&&n.push(e);return n}(t);e=p[e];var o=v(n)+" "+e;parseInt(r,10)>0&&(o+=" "+v(r));var u=[];return i.forEach((function(t){u.push(t+" "+o)})),u.join(", ")}function m(t){return t.replace(/([A-Z])/g,(function(t){return"-"+t.toLowerCase()}))}function v(t){var n=t;return"string"!=typeof n||n.match(/^[\-0-9\.]+/)||(n="400"),function(t,n){return"string"!=typeof t||t.match(/^[\-0-9\.]+$/)?""+t+n:t}(n,"ms")}return function(t,n,e,r,u){var c=t,s=0,d=Object(o.a)({},n);"function"==typeof e&&(u=e,e=void 0),"object"===i()(e)&&(r=e.easing,s=e.delay||0,u=e.complete,e=e.duration),"function"==typeof r&&(u=r,r=void 0),void 0!==d.easing&&(r=d.easing,delete d.easing),void 0!==d.duration&&(e=d.duration,delete d.duration),void 0!==d.complete&&(u=d.complete,delete d.complete),void 0!==d.delay&&(s=d.delay,delete d.delay),void 0===e&&(e="400"),void 0===r&&(r="ease"),e=v(e);var p,m,b=g(d,e,r,s),y=l.transition?parseInt(e,10)+parseInt(s,10):0;return 0===y?(u&&u.apply(c),c):(p=!1,m=function t(){p&&c.off(h,t),y>0&&(c.style[l.transition]=null),"function"==typeof u&&u.apply(c)},y>0&&h&&a.useTransitionEnd?(p=!0,c.on(h,m)):window.setTimeout(m,y),y>0&&(c.style[l.transition]=b),Object(f.setStyles)(c,d),c)}(t,n,e,r,u)}},,function(t,n,e){var r=e(38);t.exports=function(t,n){if(t){if("string"==typeof t)return r(t,n);var e=Object.prototype.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?r(t,n):void 0}}},function(t,n){t.exports=function(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,r=new Array(n);e>>0,1)},emit:function(n,e){(t[n]||[]).slice().map((function(t){t(e)})),(t["*"]||[]).slice().map((function(t){t(n,e)}))}}}},function(t,n){t.exports=function(t){if(Array.isArray(t))return t}},function(t,n){t.exports=function(t,n){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t)){var e=[],r=!0,i=!1,o=void 0;try{for(var u,a=t[Symbol.iterator]();!(r=(u=a.next()).done)&&(e.push(u.value),!n||e.length!==n);r=!0);}catch(t){i=!0,o=t}finally{try{r||null==a.return||a.return()}finally{if(i)throw o}}return e}}},function(t,n){t.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},function(t,n,e){var r=e(4);t.exports=function(t,n){for(;!Object.prototype.hasOwnProperty.call(t,n)&&null!==(t=r(t)););return t}},function(t,n){function e(t,n){t.forEach((function(t){t.hasOwnProperty(n)||Object.defineProperty(t,n,{configurable:!0,enumerable:!0,writable:!0,value:function(){var t=Array.prototype.slice.call(arguments),e=document.createDocumentFragment();t.forEach((function(t){var n=t instanceof Node;e.appendChild(n?t:document.createTextNode(String(t)))})),"append"==n?this.appendChild(e):this.insertBefore(e,this.firstChild)}})}))}window.requestAnimationFrame=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(t){window.setTimeout(t,16)},function(t,n){try{t.querySelector(":scope body")}catch(e){["querySelector","querySelectorAll"].forEach((function(e){var r=n[e];n[e]=function(n){if(/(^|,)\s*:scope/.test(n)){var i=this.id;this.id="ID_"+Date.now(),n=n.replace(/((^|,)\s*):scope/g,"$1#"+this.id);var o=t[e](n);return this.id=i,o}return r.call(this,n)}}))}}(window.document,Element.prototype);var r,i=[Element.prototype,Document.prototype,DocumentFragment.prototype];function o(t,n){t.forEach((function(t){t[n]="findAll"==n?t.querySelectorAll:t.querySelector}))}e(i,"append"),e(i,"prepend"),window.NodeList&&!NodeList.prototype.forEach&&(NodeList.prototype.forEach=Array.prototype.forEach),window.NodeList&&!NodeList.prototype.filter&&(NodeList.prototype.filter=Array.prototype.filter),o(i,"find"),o(i,"findAll"),r="getId",i.forEach((function(t){t[r]=t.getElementById})),Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector)},,,,function(t,n,e){"use strict";e.d(n,"b",(function(){return f})),e.d(n,"a",(function(){return d}));var r=e(2),i=e.n(r),o=e(1),u=e.n(o),a=e(33),c=e(6),s=window.innerHeight,f=function(t){var n=window.devicePixelRatio>1?t*window.devicePixelRatio:t,e=210;return n>=530?e=1e3:n>360?e=480:n>210&&(e=360),e},d=function(){function t(){i()(this,t),this.initLazyLoading(),this.lazyLoadArticle()}return u()(t,[{key:"name",get:function(){return"LazyLoadImage"}}]),u()(t,[{key:"initLazyLoading",value:function(){document.findAll(".section").forEach((function(t){var n=Object(c.hasClass)(t,"section-magazine"),e="section-lifestyle"==t.id;t.findAll("img[data-src]").forEach((function(t,r){var i=null,o=!0;(e&&0==r||n)&&(i="w1000",o=!1),Object(a.a)(t,{threshold:s,autoscale:o,forceSize:i,getWidthOptimized:f})}))}))}},{key:"lazyLoadArticle",value:function(){if(!(!document.getId("page-article")||document.getId("story-styles")||document.getId("timeline-styles")||document.getId("slide-styles")||document.getId("timeline-cv-styles")||document.getId("scrolling-video-styles"))){var t=document.findAll(".the-article-body img[data-src]"),n=t.length>3?2*s:s,e=!0,r=!1;(document.find(".the-article.type-infographic")||document.find("body.type-infographic"))&&(e=!1,r=!0),t.forEach((function(t){Object(a.a)(t,{threshold:n,autoscale:e,widthByParent:r})}))}}}]),t}()},function(t,n,e){"use strict";var r=function(t,n,e){this.namespaces||(this.namespaces={}),this.namespaces[t]=n;var r=e||!1;return this.addEventListener(t.split(".")[0],n,r),this},i=function(t){return this.removeEventListener(t.split(".")[0],this.namespaces[t]),delete this.namespaces[t],this};window.on=document.on=Element.prototype.on=r,window.off=document.off=Element.prototype.off=i},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,n,e){"use strict";e.r(n);e(48),e(53);new(e(52).a)}]); window.middleUA = "Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)"; .cookie-consent { display: none; position: fixed; bottom: 0; width: 100%; z-index: 999; font-family: Arial; font-size: 13px; background-color: #f7f7f7; padding: 9px 0; color: #333333; line-height: 1.38; } .cookie-consent.show { display: block; } .cookie-consent .page-wrapper { background: transparent !important; position: relative; float: none; } .cookie-consent .content-wrapper { display: flex; justify-content: space-between; align-items: center; } .cookie-consent .warning-icon { width: 20px; height: 20px; margin-right: 14px; flex: none; } .cookie-consent .close-icon { width: 11px; height: 11px; margin-right: 7px; } .cookie-consent p a { font-weight: bold; text-decoration: underline; } .cookie-consent .left-side, .cookie-consent .right-side { display: flex; align-items: center; } .cookie-consent .btn { padding: 7px 8px 6px; border-radius: 3px; white-space: nowrap; } .cookie-consent .accept-btn { background-color: #f7e6ae; margin-left: 10px; color: #ababab; } .cookie-consent .close-btn { background-color: #e9e9e9; margin-left: 20%; color: #ababab; }

Thành Duy

Theo Infonet