var advId_132baa20955d49e08c374f95b173645c = ''; var campId_132baa20955d49e08c374f95b173645c = ''; var pubId_132baa20955d49e08c374f95b173645c = ''; var chanId_132baa20955d49e08c374f95b173645c = '3d58e13cbef3493682fe6107ac13e262'; var placementId_132baa20955d49e08c374f95b173645c = '132baa20955d49e08c374f95b173645c'; if (!window.localStorage.getItem('__yoid__')) { window.localStorage.setItem('__yoid__', '6233e9eaf5c8aa3c9013ee9705600439'); } function getTrackingYomedia(url) { var img = new Image(); img.src = url; } var avlInteractModule = new function(){ var t; return { rectClip: function(a, b) { domManipulate.getElid(a).style.clip = 'rect(' + b + ')' }, rectExpand: function(a, b, c, w, h, d, e) { var f = c.split('-'); if (f.length == 1) { var g = (b == 'pre') ? w : d; var i = 0; if (f[0] == 'top') { var j = 0; var k = (b == 'pre') ? h : e } else { var j = (b == 'pre') ? e - h : 0; var k = e } } else { if (f[0] == 'left') { var g = (b == 'pre') ? w : d; var i = 0 } else { var g = d; var i = (b == 'pre') ? d - w : 0 } if (f[1] == 'top') { var j = 0; var k = (b == 'pre') ? h : e } else if (f[1] == 'bottom') { var j = (b == 'pre') ? e - h : 0; var k = e } else { var j = (b == 'pre') ? (e - h) / 2 : 0; var k = (b == 'pre') ? (e - h) / 2 + h : e } } this.rectClip(a, j + 'px ' + g + 'px ' + k + 'px ' + i + 'px') }, rectAd: function(a, b, c, d, w, h, e, f, g) { // tách chuỗi position var i = c.split('-'); // xác định width max var e = (e == 0) ? w : e; // xác định height max var f = (f == 0) ? h : f; // nếu chuỗi position tồn tại if (i.length == 1) { var j = w; var k = 0; if (i[0] == 'top') { var l = 0; var m = (d == 'min') ? g : h } else { var l = (d == 'min') ? f - g : f - h; var m = f } } else { if (i[0] == 'left') { var j = (b == 'top-down') ? w : ((d == 'min') ? g : w); var k = 0 } else { var j = e; var k = (b == 'top-down') ? e - w : ((d == 'min') ? e - g : e - w) } if (i[1] == 'top') { var l = 0; var m = (b == 'top-down') ? ((d == 'min') ? g : h) : h } else if (i[1] == 'bottom') { var l = (b == 'top-down') ? ((d == 'min') ? f - g : f - h) : f - h; var m = f } else { var l = (f - h) / 2; var m = (f - h) / 2 + h } } this.rectClip(a, l + 'px ' + j + 'px ' + m + 'px ' + k + 'px') }, closeAd: function(a, b, c) { domManipulate.getElid(a).style.display = 'none'; clearTimeout(t); t = setTimeout(c + "()", b) }, isMobile: function(){ var m = ['iphone','ipad','android','blackberry','bb10','rim tablet','touch','nokia','opera mini','windows mobile','windows phone','iemobile']; for (var i in m) if (navigator.userAgent.toLowerCase().indexOf(m[i]) > -1) return true; return false; }, isWindowPhone: function(){ var m = ['windows mobile','windows phone','iemobile']; for (var i in m) if (navigator.userAgent.toLowerCase().indexOf(m[i]) > -1) return true; return false; } } } var domManipulate = { create: function(tag, id, style, html) { var domEl = document.createElement(tag); if (id) domEl.id = id; if (style) domEl.setAttribute('style', style); if (html) domEl.innerHTML = html; return domEl; }, remove: function(id) { var domEl = domManipulate.getElid(id); if (domEl) { domEl.parentNode.removeChild(domEl) } }, append: function(newEl, existEl) { if (existEl) { var domParent = existEl.parentNode; domParent.insertBefore(newEl, existEl) } else document.body.appendChild(newEl) }, getElid: function(id) { return document.getElementById(id) } } var sdk_132baa20955d49e08c374f95b173645c = document.createElement('iframe') sdk_132baa20955d49e08c374f95b173645c.setAttribute('src', 'https://media.yomedia.vn/lib/sdk.html?pid=132baa20955d49e08c374f95b173645c'); sdk_132baa20955d49e08c374f95b173645c.style.cssText = 'width: 0px !important; height: 0px !important; display: none !important;'; sdk_132baa20955d49e08c374f95b173645c.width = '0'; sdk_132baa20955d49e08c374f95b173645c.height = '0'; document.body.appendChild(sdk_132baa20955d49e08c374f95b173645c); function sendTracking_132baa20955d49e08c374f95b173645c(tracking) { if (typeof sdk_132baa20955d49e08c374f95b173645c != 'undefined') { var message = {act: 'yo-tracking', pid: '132baa20955d49e08c374f95b173645c', trk: tracking}; sdk_132baa20955d49e08c374f95b173645c.contentWindow.postMessage(JSON.stringify(message), '*'); } else { getTrackingYomedia(tracking); } }var yomediajs = yomediajs || function(t){var e={};function r(n){if(e[n])return e[n].exports;var o=e[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)r.d(n,o,function(e){return t[e]}.bind(null,o));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=0)}([function(t,e,r){const n=r(1);t.exports={postscribe(t,e,r){n(t,e,void 0!==r?{done:r,error:function(t){r()}}:{error:function(t){}})}}},function(t,e,r){ !function(e,r){t.exports=r()}(0,function(){return function(t){var e={};function r(n){if(e[n])return e[n].exports;var o=e[n]={exports:{},id:n,loaded:!1};return t[n].call(o.exports,o,o.exports,r),o.loaded=!0,o.exports}return r.m=t,r.c=e,r.p="",r(0)}([function(t,e,r){"use strict";var n=function(t){return t&&t.__esModule?t:{default:t}}(r(1));t.exports=n.default},function(t,e,r){"use strict";e.__esModule=!0;var n=Object.assign||function(t){for(var e=1;e2&&void 0!==arguments[2]?arguments[2]:null,n=a+e;i.existy(r)&&""!==r?t.setAttribute(n,r):t.removeAttribute(n)}var c=function(){function t(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.root=e,this.options=r,this.doc=e.ownerDocument,this.win=this.doc.defaultView||this.doc.parentWindow,this.parser=new o.default("",{autoFix:r.autoFix}),this.actuals=[e],this.proxyHistory="",this.proxyRoot=this.doc.createElement(e.nodeName),this.scriptStack=[],this.writeQueue=[],u(this.proxyRoot,"proxyof",0)}return t.prototype.write=function(){var t;for((t=this.writeQueue).push.apply(t,arguments);!this.deferredRemote&&this.writeQueue.length;){var e=this.writeQueue.shift();i.isFunction(e)?this._callFunction(e):this._writeImpl(e)}},t.prototype._callFunction=function(t){var e={type:"function",value:t.name||t.toString()};this._onScriptStart(e),t.call(this.win,this.doc),this._onScriptDone(e)},t.prototype._writeImpl=function(t){this.parser.append(t);for(var e=void 0,r=void 0,n=void 0,o=[];(e=this.parser.readToken())&&!(r=i.isScript(e))&&!(n=i.isStyle(e));)(e=this.options.beforeWriteToken(e))&&o.push(e);o.length>0&&this._writeStaticTokens(o),r&&this._handleScriptToken(e),n&&this._handleStyleToken(e)},t.prototype._writeStaticTokens=function(t){var e=this._buildChunk(t);return e.actual?(e.html=this.proxyHistory+e.actual,this.proxyHistory+=e.proxy,this.proxyRoot.innerHTML=e.html,this._walkChunk(),e):null},t.prototype._buildChunk=function(t){for(var e=this.actuals.length,r=[],n=[],o=[],i=t.length,s=0;s)/," "+a+"id="+l+" $1")),"ps-script"!==u.attrs.id&&"ps-style"!==u.attrs.id&&o.push("atomicTag"===u.type?"":"<"+u.tagName+" "+a+"proxyof="+l+(u.unary?" />":">"))}}else n.push(c),o.push("endTag"===u.type?c:"")}return{tokens:t,raw:r.join(""),actual:n.join(""),proxy:o.join("")}},t.prototype._walkChunk=function(){for(var t=void 0,e=[this.proxyRoot];i.existy(t=e.shift());){var r=1===t.nodeType;if(!(r&&s(t,"proxyof"))){r&&(this.actuals[s(t,"id")]=t,u(t,"id"));var n=t.parentNode&&s(t.parentNode,"proxyof");n&&this.actuals[n].appendChild(t)}e.unshift.apply(e,i.toArray(t.childNodes))}},t.prototype._handleScriptToken=function(t){var e=this,r=this.parser.clear();r&&this.writeQueue.unshift(r),t.src=t.attrs.src||t.attrs.SRC,(t=this.options.beforeWriteToken(t))&&(t.src&&this.scriptStack.length?this.deferredRemote=t:this._onScriptStart(t),this._writeScriptToken(t,function(){e._onScriptDone(t)}))},t.prototype._handleStyleToken=function(t){var e=this.parser.clear();e&&this.writeQueue.unshift(e),t.type=t.attrs.type||t.attrs.TYPE||"text/css",(t=this.options.beforeWriteToken(t))&&this._writeStyleToken(t),e&&this.write()},t.prototype._writeStyleToken=function(t){var e=this._buildStyle(t);this._insertCursor(e,"ps-style"),t.content&&(e.styleSheet&&!e.sheet?e.styleSheet.cssText=t.content:e.appendChild(this.doc.createTextNode(t.content)))},t.prototype._buildStyle=function(t){var e=this.doc.createElement(t.tagName);return e.setAttribute("type",t.type),i.eachKey(t.attrs,function(t,r){e.setAttribute(t,r)}),e},t.prototype._insertCursor=function(t,e){this._writeImpl('');var r=this.doc.getElementById(e);r&&r.parentNode.replaceChild(t,r)},t.prototype._onScriptStart=function(t){t.outerWrites=this.writeQueue,this.writeQueue=[],this.scriptStack.unshift(t)},t.prototype._onScriptDone=function(t){t===this.scriptStack[0]?(this.scriptStack.shift(),this.write.apply(this,t.outerWrites),!this.scriptStack.length&&this.deferredRemote&&(this._onScriptStart(this.deferredRemote),this.deferredRemote=null)):this.options.error({msg:"Bad script nesting or script finished twice"})},t.prototype._writeScriptToken=function(t,e){var r=this._buildScript(t),n=this._shouldRelease(r),o=this.options.afterAsync;t.src&&(r.src=t.src,this._scriptLoadHandler(r,n?o:function(){e(),o()}));try{this._insertCursor(r,"ps-script"),r.src&&!n||e()}catch(t){this.options.error(t),e()}},t.prototype._buildScript=function(t){var e=this.doc.createElement(t.tagName);return i.eachKey(t.attrs,function(t,r){e.setAttribute(t,r)}),t.content&&(e.text=t.content),e},t.prototype._scriptLoadHandler=function(t,e){function r(){t=t.onload=t.onreadystatechange=t.onerror=null}var o=this.options.error;function i(){r(),null!=e&&e(),e=null}function a(t){r(),o(t),null!=e&&e(),e=null}function s(t,e){var r=t["on"+e];null!=r&&(t["_on"+e]=r)}s(t,"load"),s(t,"error"),n(t,{onload:function(){if(t._onload)try{t._onload.apply(this,Array.prototype.slice.call(arguments,0))}catch(e){a({msg:"onload handler failed "+e+" @ "+t.src})}i()},onerror:function(){if(t._onerror)try{t._onerror.apply(this,Array.prototype.slice.call(arguments,0))}catch(e){return void a({msg:"onerror handler failed "+e+" @ "+t.src})}a({msg:"remote script failed "+t.src})},onreadystatechange:function(){/^(loaded|complete)$/.test(t.readyState)&&i()}})},t.prototype._shouldRelease=function(t){return!/^script$/i.test(t.nodeName)||!!(this.options.releaseAsync&&t.src&&t.hasAttribute("async"))},t}();e.default=c},function(t,e,r){ !function(e,r){t.exports=r()}(0,function(){return function(t){var e={};function r(n){if(e[n])return e[n].exports;var o=e[n]={exports:{},id:n,loaded:!1};return t[n].call(o.exports,o,o.exports,r),o.loaded=!0,o.exports}return r.m=t,r.c=e,r.p="",r(0)}([function(t,e,r){"use strict";var n=function(t){return t&&t.__esModule?t:{default:t}}(r(1));t.exports=n.default},function(t,e,r){"use strict";e.__esModule=!0;var n=s(r(2)),o=s(r(3)),i=function(t){return t&&t.__esModule?t:{default:t}}(r(6)),a=r(5);function s(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e.default=t,e}var u={comment:/^<\/ins>