From cca78b2d6e44ce99994ef28be233b84e0d6bb681 Mon Sep 17 00:00:00 2001 From: llays <andrew@lays.name> Date: Mon, 26 Feb 2018 14:20:12 +0200 Subject: [PATCH] Update vam.min.js --- vam.min.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vam.min.js b/vam.min.js index a352fdc..a37dfd3 100644 --- a/vam.min.js +++ b/vam.min.js @@ -1 +1 @@ -var UserGestureSaver=function(){var A;return void 0===A?A=new function(){var A=1e3,e=100,t=[],i=[],n=function(){i.forEach(function(A){clearTimeout(A)});for(var n=1;n<=A/e;n++){var o=setTimeout(function(){t=t.filter(function(A){A()})},e*n);i.push(o)}};this.push=function(A){"function"==typeof A&&t.push(A)},window.addEventListener("touchend",n)}:A}(),VideoAdManager=function(A){var e,t=this,n={},o=!1;this.tid_=(""+Math.random()).split(".")[1],this.config_=A,this.states_={};this.createCreativeContainer_=function(){this.creativeContainer_=document.createElement("div"),this.creativeContainer_.className="VAMContainer creativeContainer "+this.config_.target.creative_type+"Container","SU"==this.config_.target.creative_type?("iFrameDispatcher"==this.config_.dispatcher_name&&(window.frameElement.style.maxHeight=this.config_.video_height+"px",window.frameElement.style.position="fixed",window.frameElement.style.bottom=0,window.frameElement.style.right=0,window.frameElement.style[this.config_.target.position]="0px!important",window.frameElement.style.transition="max-width 1s ease-out"),this.creativeContainer_.style.maxHeight=this.config_.video_height+"px","left"==this.config_.target.position&&this.creativeContainer_.classList.add("mwayss_left")):this.creativeContainer_.style.maxWidth=this.config_.video_width+"px","dynamic"==this.config_.target.creation_type?(this.targetContainer_=document.querySelector(this.config_.target.container),"IU"==this.config_.target.creative_type&&(this.config_.target.position="prepend"),this.targetContainer_.insertBefore(this.creativeContainer_,"prepend"==this.config_.target.position?this.targetContainer_.firstChild:null),this.createVideoPlayer_()):(this.videoPlayer_=document.querySelector(this.config_.target.container),this.targetContainer_=this.videoPlayer_.parentNode,this.targetContainer_.insertBefore(this.creativeContainer_,this.videoPlayer_.nextSibling),this.creativeContainer_.appendChild(this.videoPlayer_)),this.prepareVideoPlayer_()}.bind(this),this.createVideoPlayer_=function(){this.videoPlayer_=this.videoContainer_=document.createElement("video"),this.videoPlayer_.setAttribute("class","videoPlayer videoContainer nonVisibleContainer"),this.videoPlayer_.setAttribute("preload","auto"),this.videoPlayer_.volume=0,l()&&(this.videoPlayer_.muted=!0,this.videoPlayer_.setAttribute("webkit-playsinline",""),this.videoPlayer_.setAttribute("playsinline","")),this.creativeContainer_.appendChild(this.videoPlayer_)}.bind(this),this.prepareVideoPlayer_=function(){var A=this;this.videoPlayer_.src=this.config_.content_video_src,this.videoPlayer_.controls=void 0!==this.config_.ui&&void 0!==this.config_.ui.controls&&this.config_.ui.controls,"on_hover"==this.config_.volume_manager.active?(this.videoContainer_.addEventListener("mouseenter",function(){var e=(this.config_.volume_manager.level-this.videoPlayer_.volume)/10,t=0,i=setInterval(function(){++t>10?clearInterval(i):A.videoPlayer_.volume=A.videoPlayer_.volume+e},100)}.bind(this)),this.videoContainer_.addEventListener("mouseleave",function(){var e=this.videoPlayer_.volume/10,t=0,i=setInterval(function(){++t>10?clearInterval(i):A.videoPlayer_.volume=A.videoPlayer_.volume-e},100)}.bind(this))):l()||(this.videoPlayer_.volume=this.config_.volume_manager.level);var e={loadedmetadata:this.onContentLoaded_,ended:this.onContentComplete_};n.events.attach(this.videoPlayer_,e),this.videoPlayer_.load()};var a=function(){google.ima.settings.setVpaidMode(google.ima.ImaSdkSettings.VpaidMode[t.config_.vpaid_mode.toUpperCase()]),google.ima.settings.setAutoPlayAdBreaks(!1)},r=function(A,e){var i,a,r={},s=this;this._container=void 0,this._manager=void 0,this._data=void 0;var d=function(){this._container=function(){var n=document.createElement("div");n.className="adContainer hiddenContainer",A.appendChild(n),"on_hover"==t.config_.volume_manager.active&&(n.addEventListener("mouseenter",function(){var A=(t.config_.volume_manager.level-s._manager.getVolume())/10,e=0,i=setInterval(function(){++e>10?clearInterval(i):s._manager.setVolume(s._manager.getVolume()+A)},100)}.bind(this)),n.addEventListener("mouseleave",function(){var A=s._manager.getVolume()/10,e=0,t=setInterval(function(){++e>10?clearInterval(t):s._manager.setVolume(s._manager.getVolume()-A)},100)}.bind(this)));var o=new google.ima.AdDisplayContainer(n,e);return{getElement:function(){return n},getDisplayContainer:function(){return o},destroy:function(){s._manager&&s._manager.destroy(),i.destroy(),o.destroy(),n.parentNode&&n.parentNode.removeChild(n)}}}(),(i=new google.ima.AdsLoader(this._container.getDisplayContainer())).getSettings().setDisableCustomPlaybackForIOS10Plus(!0),i.addEventListener(google.ima.AdErrorEvent.Type.AD_ERROR,c),i.addEventListener(google.ima.AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED,g)}.bind(this),c=function(A){var e=A.getError?A.getError():A;h({type:e.getType(),info:e.getMessage().split(" ").join("_")+e.getVastErrorCode()}),n.events.dispatch(this,"onError")}.bind(this),g=function(A){h(A);var i=m();this._manager=A.getAdsManager(e,i),this._manager.setVolume("on_hover"==t.config_.volume_manager.active||l()?0:t.config_.volume_manager.level);var o={};o[google.ima.AdErrorEvent.Type.AD_ERROR]=c,o[google.ima.AdEvent.Type.LOG]=h,o[google.ima.AdEvent.Type.LOADED]=_,o[google.ima.AdEvent.Type.IMPRESSION]=v,o[google.ima.AdEvent.Type.STARTED]=h,o[google.ima.AdEvent.Type.CLICK]=h,o[google.ima.AdEvent.Type.FIRST_QUARTILE]=h,o[google.ima.AdEvent.Type.MIDPOINT]=h,o[google.ima.AdEvent.Type.THIRD_QUARTILE]=h,o[google.ima.AdEvent.Type.SKIPPABLE_STATE_CHANGED]=p,o[google.ima.AdEvent.Type.SKIPPED]=u,o[google.ima.AdEvent.Type.COMPLETE]=u,n.events.attach(this._manager,o);try{this._manager.init(t.config_.video_width,t.config_.video_height,google.ima.ViewMode.NORMAL)}catch(A){c(A)}}.bind(this),_=function(A){this._data=A.getAdData(),h({type:A.type,info:this._data}),w({requesting:!1,loaded:!0}),n.events.dispatch(this,"onLoaded")}.bind(this),v=function(A){h(A),w("plays",!0),n.events.dispatch(this,"onImpression"),this._process(),y.check()}.bind(this),p=function(){void 0!==t.config_.auto_skip&&(C.enable(),n.events.dispatch(this,"onSkippableStateChanged"))}.bind(this),u=function(A){h(A),w({plays:!1,complete:!0}),n.events.dispatch(this,"onComplete")}.bind(this),m=function(){var A=new google.ima.AdsRenderingSettings;return A.enablePreloading=!0,A.loadVideoTimeout=1e3*t.config_.load_video_timeout,A},f=function(){var A=Math.round(1e3*this._manager.getRemainingTime().toFixed(3));return A<0?0:A}.bind(this),y=function(){var A,e=[];return{add:function(A,t,i){i=i||!1;var n=e.push({time:A,callback:t,inverseState:i});return{changeTime:function(A){e[--n].time=A}}},check:function(){A=setInterval(function(){var t=f(),i=1e3*this._data.duration-t;e=e.filter(function(A){if(A.inverseState&&A.time<t||!A.inverseState&&A.time>i)return!0;A.callback()}),t||clearInterval(A)}.bind(this),50)}.bind(this)}}.bind(this)(),E=function(){var A;return{enable:function(){n.events.attach(this,{onError:E.disable}),i.addEventListener(google.ima.AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED,E.disable),A=setTimeout(function(){c({getType:function(){return"adLoadError"},getMessage:function(){return"Ad request reached a timeout."},getVastErrorCode:function(){return 301}})},1e3*t.config_.load_vast_timeout)}.bind(this),disable:function(){clearTimeout(A)}}}.bind(this)(),C=function(){var A,e;return{enable:function(){var t=Math.random();t>.6||(e=Math.floor(6*t)+2,A=setTimeout(function(){this.skip(e)}.bind(this),1e3*e),this._manager.addEventListener(google.ima.AdEvent.Type.SKIPPED,C.cancel),this._manager.addEventListener(google.ima.AdEvent.Type.COMPLETE,C.cancel))}.bind(this),cancel:function(){clearTimeout(A),e=null},getTimeout:function(){return e||!1}}}.bind(this)(),w=n.states.set.bind(this),b=n.states.get.bind(this);this.states_={},this.setTag=function(A){a=A},this.request=function(){if(!b("requesting")&&!b("loaded")){h({type:"request"});var A=new google.ima.AdsRequest;A.adTagUrl=a.url,A.linearAdSlotWidth=720,A.linearAdSlotHeight=405,A.nonLinearAdSlotWidth=720,A.nonLinearAdSlotHeight=405,i.requestAds(A),w("requesting",!0),E.enable()}},this.start=function(){if(!b("plays")&&!b("complete")&&b("loaded")){h({type:"starting"});try{if(this._container.getDisplayContainer().initialize(),this._manager.setVolume(0),l()&&o)return void UserGestureSaver.push(function(){this._prepare(),this._manager.start()}.bind(this));this._prepare(),this._manager.start()}catch(A){c(A)}}},this.skip=function(A){this._manager.getAdSkippableState()&&(h({type:"adAutoSkip",info:A}),this._manager.skip())},this.destroy=function(){i.destroy(),this._container.destroy()},this._prepare=function(){l()&&(t.videoPlayer_.style.opacity="0.01",t.videoPlayer_.style.position="fixed",t.videoPlayer_.style.top=0,t.videoPlayer_.style.left=0,t.videoContainer_.classList.remove("nonVisibleContainer")),this._container.getElement().style.position="fixed",this._container.getElement().classList.remove("hiddenContainer")},this.addEventListener=function(A,e){r[A]=r[A]||[],r[A].push(e)},this.dispatchEvent=function(A){r[A.eventName]&&r[A.eventName].forEach(function(A){A()})},this.getData=function(){return this._data},this.getState=function(A){return b(A)},this.addTimeBreakpoint=function(A,e,t){return y.add.apply(null,arguments)},this.getAutoSkipTimeout=function(){return C.getTimeout()},this.getRemainingTime=function(){return f()},d()};r.IU=function(){r.apply(this,arguments),this._process=function(){var A=t.targetContainer_.getBoundingClientRect();this._manager.resize(A.width,A.height,google.ima.ViewMode.NORMAL),t.prepareCreativeContainer_(A.width,A.height),l()&&(t.videoPlayer_.style.removeProperty("position"),t.videoPlayer_.style.removeProperty("top"),t.videoPlayer_.style.removeProperty("left"),t.videoPlayer_.style.opacity=1),this._container.getElement().style.removeProperty("position"),this._container.getElement().style.opacity=1}},r.RVU=r.CRU=function(){r.apply(this,arguments),this._process=function(){var A,e,i=("iFrameDispatcher"==t.config_.dispatcher_name?window.frameElement:t.targetContainer_).parentNode.parentNode,n=parseFloat(window.getComputedStyle(i,null).getPropertyValue("padding-left"))+parseFloat(window.getComputedStyle(i,null).getPropertyValue("padding-right")),o=i.getBoundingClientRect().width-n;o>=t.config_.video_width?(A=t.config_.video_width,e=t.config_.video_height,this._manager.resize(A,e,google.ima.ViewMode.NORMAL)):(A=o,e=o/((this._data.vastMediaWidth||t.config_.video_width)/(this._data.vastMediaHeight||t.config_.video_height)),this._manager.resize(A,e,google.ima.ViewMode.NORMAL));t.prepareCreativeContainer_(A,e),l()&&(t.videoPlayer_.style.removeProperty("position"),t.videoPlayer_.style.removeProperty("top"),t.videoPlayer_.style.removeProperty("left"),t.videoPlayer_.style.opacity=1),this._container.getElement().style.removeProperty("position"),this._container.getElement().style.opacity=1}},r.SU=function(){r.apply(this,arguments),this._process=function(){var A,e,i=("iFrameDispatcher"==t.config_.dispatcher_name?window.frameElement.ownerDocument.documentElement:document.documentElement).clientWidth;i>=t.config_.video_width?(A=t.config_.video_width,e=t.config_.video_height,this._manager.resize(A,e,google.ima.ViewMode.NORMAL)):(A=i,e=i/((this._data.vastMediaWidth||t.config_.video_width)/(this._data.vastMediaHeight||t.config_.video_height)),this._manager.resize(A,e,google.ima.ViewMode.NORMAL));t.prepareCreativeContainer_(A,e),l()&&(t.videoPlayer_.style.removeProperty("position"),t.videoPlayer_.style.removeProperty("top"),t.videoPlayer_.style.removeProperty("left"),t.videoPlayer_.style.opacity=1),this._container.getElement().style.removeProperty("position"),this._container.getElement().style.opacity=1,t.config_.cross.enabled&&setTimeout(function(){var A=document.createElement("img");A.src="https://cdn2.iconfinder.com/data/icons/flat-ui-icons-24-px/24/cross-24-16.png",A.style="position: absolute; right: 5px; top: 5px; width: 13px; height: 13px; cursor: pointer;",A.addEventListener("click",function(A){A.target.parentNode.removeChild(A.target),this._manager.skip(),t.creativeContainer_.style.maxWidth=0,"iFrameDispatcher"==t.config_.dispatcher_name&&(window.frameElement.style.maxWidth=0),setTimeout(function(){this._container.destroy(),setTimeout(function(){t.targetContainer_.parentNode.removeChild(t.targetContainer_)},200)}.bind(this),1e3)}.bind(this)),t.creativeContainer_.appendChild(A)}.bind(this),1e3*t.config_.cross.time)}};var s=function(){var A={list:[],active:[],current:void 0};this._ads=A;var e=function(){var e=t.config_.ads_container_max_count-(A.list.length+A.active.length);if(e)for(var n=0;n<e;n++)i()},i=function(){var e=t.config_.target.creative_type,i=new r[e](t.creativeContainer_,t.videoContainer_);A.list.push(i)},o=function(t){t.destroy();for(var i=0;i<A.active.length;i++)if(A.active[i]===t){A.active.splice(i,1);break}e()};this._requestAd=function(){if(!(!d("requesting")&&t.config_.tags_list.length&&d("played")<t.config_.rotations&&d("content.loadedmetadata")))return!1;c("requesting",!0);var e,i,o=(i=A.list.shift(),A.active.push(i),A.current=i,i),r=(e=t.config_.tags_list.shift(),t.config_.is_loopped&&t.config_.tags_list.push(e),e);o.setTag(r);var l={onError:function(){a(o)},onLoaded:s,onImpression:function(){h(o,r)},onComplete:function(){g(o)}};return n.events.attach(o,l),o.request(),!0};var a=function(A){c({requesting:!1,pending:!1}),o(A),this._waterfallResolver()}.bind(this),s=function(){c({requesting:!1,pending:!0}),this._startAd()}.bind(this),h=function(A){c({pending:!1,playing:!0,played:+d("played")+1});var e=1e3*t.config_.ads_request_trigger_offset_in_sec,i=A.addTimeBreakpoint(e,function(){this._waterfallResolver(A)}.bind(this),!0);A.addEventListener("onSkippableStateChanged",function(){var t=A.getAutoSkipTimeout();if(t){var n=A.getRemainingTime()-t+e;i.changeTime(n)}})}.bind(this),g=function(A){c("playing",!1),o(A),this._waterfallResolver()}.bind(this);this._startAd=function(){d("in_view")&&!d("playing")&&A.current.start()},this._waterfallResolver=function(e){if(!d("requesting")&&!d("pending"))if(this._requestAd()){if(void 0===e)return;n.events.attach(e,{onComplete:function(){A.current.getState("loaded")&&this._startAd()}.bind(this)})}else d("played")?(void 0===e||e.getState("complete"))&&t.startContent_():"enabled"==t.config_.passback.status&&t.config_.passback.code.call(t)}.bind(this),e()};s.inViewDispatcher=function(){s.apply(this,arguments);var A=window.inView(),e={top:-1*t.config_.ads_request_trigger_offset,bottom:-1*t.config_.ads_request_trigger_offset,left:0,right:0};A.offset(e);var i=function(){h({type:"inview_request_zone"}),this._requestAd()}.bind(this);A.is(t.creativeContainer_)?i():A(t.creativeContainer_).once("enter",i);var n=window.inView();e.top=e.bottom=t.config_.video_height/2,"RVU"!=t.config_.target.creative_type&&(e.top=-1*e.top),n.offset(e);var o=function(){h({type:"inview_start_zone"}),c("in_view",!0),this._startAd()}.bind(this);n.is(t.creativeContainer_)?o():n(t.creativeContainer_).once("enter",o)},s.iFrameDispatcher=function(){if(s.apply(this,arguments),"CRU"==t.config_.target.creative_type)window.frameElement.style.transition="height 1s ease-out";else{var A=t.targetContainer_.getBoundingClientRect();window.frameElement.width=A.width,window.frameElement.height=A.height}h({type:"request_zone"}),this._requestAd(),h({type:"start_zone"}),c("in_view",!0),this._startAd()},s.gameDispatcher=function(){s.apply(this,arguments);var A=window.inView(),e={top:-1*t.config_.ads_request_trigger_offset,bottom:-1*t.config_.ads_request_trigger_offset,left:0,right:0};A.offset(e);var i=function(){h({type:"inview_request_zone"}),this._requestAd()}.bind(this);A.is(t.creativeContainer_)?i():A(t.creativeContainer_).once("enter",i);var o=window.inView();e.top=e.bottom=t.config_.video_height/2,"RVU"!=t.config_.target.creative_type&&(e.top=-1*e.top),o.offset(e);var a=function(){h({type:"inview_start_zone"}),c("in_view",!0),this._startAd()}.bind(this);o.is(t.creativeContainer_)?a():o(t.creativeContainer_).once("enter",a),this._waterfallResolver=function(A){if(!d("requesting")&&!d("pending"))if(this._requestAd()){if(void 0===A)return;n.events.attach(A,{onComplete:function(){this._ads.current.getState("loaded")&&this._startAd()}.bind(this)})}else d("played")?(void 0===A||A.getState("complete"))&&t.targetContainer_.parentNode.removeChild(t.targetContainer_):"enabled"==t.config_.passback.status&&t.config_.passback.code.call(t)}.bind(this)},s.initialDispatcher=function(){s.apply(this,arguments),this._requestAd(),c("in_view",!0),this._startAd()},this.prepareCreativeContainer_=function(A,e){if("IU"==this.config_.target.creative_type)this.creativeContainer_.style.maxWidth=this.videoContainer_.style.maxWidth=A+"px",this.creativeContainer_.style.maxHeight=this.videoContainer_.style.maxHeight=this.creativeContainer_.style.height=this.videoContainer_.style.height=e+"px";else if("CRU"==this.config_.target.creative_type||"RVU"==this.config_.target.creative_type){if(d("ad.expanded"))return;if("iFrameDispatcher"==t.config_.dispatcher_name){window.frameElement.parentNode.getBoundingClientRect();window.frameElement.width=A,window.frameElement.height=e}this.creativeContainer_.style.maxWidth=this.videoContainer_.style.width=A+"px",this.creativeContainer_.style.maxHeight=this.videoContainer_.style.maxHeight=this.creativeContainer_.style.height=this.videoContainer_.style.height=e+"px",c("ad.expanded",!0)}else if("SU"==this.config_.target.creative_type){if(d("ad.expanded"))return;"iFrameDispatcher"==this.config_.dispatcher_name&&(window.frameElement.style.maxWidth=window.frameElement.style.width=A+"px",window.frameElement.style.maxHeight=window.frameElement.style.height=e+"px"),this.creativeContainer_.style.maxWidth=this.videoContainer_.style.width=A+"px",this.creativeContainer_.style.maxHeight=this.videoContainer_.style.maxHeight=this.creativeContainer_.style.height=this.videoContainer_.style.height=e+"px",c("ad.expanded",!0)}}.bind(this),this.resetCreativeContainer_=function(){this.creativeContainer_.setAttribute("style","max-width: "+("SU"==this.config_.target.creative_type?0:this.config_.video_width+"px")),"iFrameDispatcher"==this.config_.dispatcher_name&&"SU"==this.config_.target.creative_type&&(window.frameElement.style.maxWidth=0),"CRU"!=this.config_.target.creative_type&&"SU"!=this.config_.target.creative_type||(c("ad.expanded",!1),"iFrameDispatcher"==t.config_.dispatcher_name&&(window.frameElement.width=0,window.frameElement.height=0))}.bind(this),this.prepareContent_=function(){this.videoContainer_.classList.remove("nonVisibleContainer"),"IU"==this.config_.target.creative_type&&(this.creativeContainer_.style.maxWidth=this.config_.banner_width+"px",this.creativeContainer_.style.maxHeight=this.config_.banner_height+"px"),this.creativeContainer_.style.opacity=1}.bind(this),this.startContent_=function(){h({type:"contentStart"}),this.prepareContent_(),l()&&(this.videoPlayer_.src=this.config_.content_video_src),l()&&o?UserGestureSaver.push(function(){this.videoPlayer_.play()}.bind(this)):this.videoPlayer_.play(),c({"content.plays":!0,playback:"content"}),void 0!==this.config_.content_video_auto_skip_timeout&&(e=setTimeout(function(){h({type:"contentAutoSkip",info:1e3*this.config_.content_video_auto_skip_timeout}),this.videoPlayer_.pause(),this.onContentComplete_({type:"ended"})}.bind(this),1e3*this.config_.content_video_auto_skip_timeout))}.bind(this),this.onContentLoaded_=function(A){h(A),c("content.loadedmetadata",!0),this._requestAd()}.bind(this),this.onContentComplete_=function(A){clearTimeout(e),h(A),this.videoContainer_.classList.add("nonVisibleContainer"),this.videoPlayer_.currentTime=0,c("content.plays",!1),"ads_pod"==this.config_.rotations_logic&&this.resetCreativeContainer_()}.bind(this),n.events={attach:function(A,e){for(var t in e)A.addEventListener(t,e[t])},dispatch:function(A,e){var t;"function"==typeof window.CustomEvent?t=new CustomEvent(e):document.createEvent?(t=document.createEvent("Event")).initEvent(e,!0,!0):document.createEventObject&&((t=document.createEventObject()).eventType=e),t.eventName=e,A.dispatchEvent?A.dispatchEvent(t):A.fireEvent?A.fireEvent("on"+t.eventType,t):A[e]?A[e]():A["on"+e]&&A["on"+e]()}},n.states={set:function(A,e){var t={};for(i in A===Object(A)?t=A:t[A]=e,t)this.states_[i]=t[i]},get:function(A){return this.states_[A]||!1}};var d=n.states.get.bind(this),c=n.states.set.bind(this),h=function(A){if(t.config_.thirdPartyLogger&&t.config_.thirdPartyLogger(A.type,A.info),"init"==A.type&&"on_init"==t.config_.impression.fire&&g(t.config_.impression.tp_list),"inview_start_zone"==A.type&&"in_view"==t.config_.impression.fire&&g(t.config_.impression.tp_list),"impression"==A.type&&("every_ad_impression"==t.config_.impression.fire?g(t.config_.impression.tp_list):"first_ad_impression"!=t.config_.impression.fire||t.config_.impression.fired||(t.config_.impression.fired=!0,g(t.config_.impression.tp_list))),t.config_.log_level){var e={tid:t.tid_,placement_id:t.config_.placement_id,timeout:Date.now(),type:A.type,info:A.info};console.log(e)}},g=function(A){for(var e in A)A.hasOwnProperty(e)&&((new Image).src=A[e].replace(/{timestamp}/g,Date.now()))},l=function(){return/ipad|iphone|ipod|android/i.test(navigator.userAgent)&&!window.MSStream},_=function(){var A=document.createElement("script"),e=document.getElementsByTagName("script")[0];if(A.src="//imasdk.googleapis.com/js/sdkloader/ima3.js",l()){var i=document.createElement("video"),n=document.createElement("source"),r=document.createElement("source");n.src="data:video/mp4;base64,AAAAFGZ0eXBNU05WAAACAE1TTlYAAAOUbW9vdgAAAGxtdmhkAAAAAM9ghv7PYIb+AAACWAAACu8AAQAAAQAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgAAAnh0cmFrAAAAXHRraGQAAAAHz2CG/s9ghv4AAAABAAAAAAAACu8AAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAABAAAAAAFAAAAA4AAAAAAHgbWRpYQAAACBtZGhkAAAAAM9ghv7PYIb+AAALuAAANq8AAAAAAAAAIWhkbHIAAAAAbWhscnZpZGVBVlMgAAAAAAABAB4AAAABl21pbmYAAAAUdm1oZAAAAAAAAAAAAAAAAAAAACRkaW5mAAAAHGRyZWYAAAAAAAAAAQAAAAx1cmwgAAAAAQAAAVdzdGJsAAAAp3N0c2QAAAAAAAAAAQAAAJdhdmMxAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAFAAOABIAAAASAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGP//AAAAEmNvbHJuY2xjAAEAAQABAAAAL2F2Y0MBTUAz/+EAGGdNQDOadCk/LgIgAAADACAAAAMA0eMGVAEABGjuPIAAAAAYc3R0cwAAAAAAAAABAAAADgAAA+gAAAAUc3RzcwAAAAAAAAABAAAAAQAAABxzdHNjAAAAAAAAAAEAAAABAAAADgAAAAEAAABMc3RzegAAAAAAAAAAAAAADgAAAE8AAAAOAAAADQAAAA0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YL/QACIhgAPuC/rKgnKGWgQu4ANEBAAEQEAAYABhYL/QACIhgAPuC/rOgnKGWgQ0FANEBAAEQEAAYABhYL/QACIhgAPuC/rOgnKGWgQ5TANEBAAEQEAAYABhYL/QACIhgAPuC/rKgnKGWgQ+gANEBAAEQEAAYABhYL/QACIhgAPuC/rOgnKGWgRDtANEBAAEQEAAYABhYL/QACIhgAPuC/rOgnKGWgRI7ANEBAAEQEAAYABhYL/QACIhgAPuC/rIcU7trQOC7jLOBALeH94EB8YIUzLuNs4IBTbeH94EB8YIUzLuNs4ICm7eH94EB8YIUzLuNs4ID6LeH94EB8YIUzLuNs4IFNbeH94EB8YIUzLuNs4IGg7eH94EB8YIUzLuNs4IH0LeH94EB8YIUzLuNs4IJHbeH94EB8YIUzLuNs4IKa7eH94EB8YIUzLuNs4ILuLeH94EB8YIUzLuNs4INBbeH94EB8YIUzLuNs4IOU7eH94EB8YIUzLuNs4IPoLeH94EB8YIUzLuNs4IQ7beH94EB8YIUzLuNs4ISO7eH94EB8YIUzBFNm3SPTbuMU6uEH0O2dVOsghTM",i.appendChild(r),i.appendChild(n),i.id="mw_test_video",i.style="position: fixed; left: -9999px; opacity: 0; visibility: hidden;",i.volume=0,document.getElementsByTagName("body")[0].appendChild(i),i=document.getElementById("mw_test_video");try{i.play()}catch(A){o=!0}o||Object.defineProperty(navigator,"userAgent",{configurable:!0,get:function(){return"Mozilla/5.0 (iPad; CPU OS 9_0 like Mac OS X) AppleWebKit/601.1.17 (KHTML, like Gecko) Version/8.0 Mobile/13A175 Safari/600.1.4"}}),setTimeout(function(){i.parentNode.removeChild(i)},300)}var d=0;A.onload=A.onreadystatechange=function(){this.readyState&&"loaded"!==this.readyState&&"complete"!==this.readyState||(this.onload=this.onreadystatechange=null,++d>1&&(delete navigator.userAgent,navigator.screen=screen,h({type:"init",info:navigator}),t.config_.tags_list=t.config_.tags_list.filter(function(A){return""!=A}).map(function(A,e){return{url:A,index:e}}),t.config_.rotations_logic="ads_pod",t.config_.vpaid_mode=t.config_.vpaid_mode||"disabled",a(),t.createCreativeContainer_(),"SU"==t.config_.target.creative_type&&(t.config_.target.position="left"==t.config_.target.position?"left":"right",t.config_.dispatcher_name="iFrameDispatcher"==t.config_.dispatcher_name?"iFrameDispatcher":"initialDispatcher"),new s[t.config_.dispatcher_name||"inViewDispatcher"]))};var c=document.createElement("script");c.src="//ad.mediawayss.com/ad/inView.min.js",c.onload=c.onreadystatechange=A.onload,e.parentNode.insertBefore(A,e).parentNode.insertBefore(c,e)}.bind(this);this.config_.content_video_src?_():function(A){var e="c"+t.tid_;window[e]=function(e){A(e)};var i=document.createElement("script");i.src=t.config_.content_video_playlist+"?callback="+e,document.body.appendChild(i)}(function(A){this.config_.content_video_src=A,_()}.bind(this))}; +var UserGestureSaver=function(){var A;return void 0===A?A=new function(){var A=1e3,e=100,t=[],i=[],n=function(){i.forEach(function(A){clearTimeout(A)});for(var n=1;n<=A/e;n++){var o=setTimeout(function(){t=t.filter(function(A){A()})},e*n);i.push(o)}};this.push=function(A){"function"==typeof A&&t.push(A)},window.addEventListener("touchend",n)}:A}(),VideoAdManager=function(A){var e,t,n=this,o={},a=!1;this.tid_=(""+Math.random()).split(".")[1],this.config_=A,this.states_={};this.createCreativeContainer_=function(){this.creativeContainer_=document.createElement("div"),this.creativeContainer_.className="VAMContainer creativeContainer "+this.config_.target.creative_type+"Container","SU"==this.config_.target.creative_type?("iFrameDispatcher"==this.config_.dispatcher_name&&(window.frameElement.style.maxHeight=this.config_.video_height+"px",window.frameElement.style.position="fixed",window.frameElement.style.bottom=0,window.frameElement.style.right=0,window.frameElement.style[this.config_.target.position]="0px!important",window.frameElement.style.transition="max-width 1s ease-out"),this.creativeContainer_.style.maxHeight=this.config_.video_height+"px","left"==this.config_.target.position&&this.creativeContainer_.classList.add("mwayss_left")):this.creativeContainer_.style.maxWidth=this.config_.video_width+"px","dynamic"==this.config_.target.creation_type?(this.targetContainer_=document.querySelector(this.config_.target.container),"IU"==this.config_.target.creative_type&&(this.config_.target.position="prepend"),this.targetContainer_.insertBefore(this.creativeContainer_,"prepend"==this.config_.target.position?this.targetContainer_.firstChild:null),this.createVideoPlayer_()):(this.videoPlayer_=document.querySelector(this.config_.target.container),this.targetContainer_=this.videoPlayer_.parentNode,this.targetContainer_.insertBefore(this.creativeContainer_,this.videoPlayer_.nextSibling),this.creativeContainer_.appendChild(this.videoPlayer_)),this.prepareVideoPlayer_()}.bind(this),this.createVideoPlayer_=function(){this.videoPlayer_=this.videoContainer_=document.createElement("video"),this.videoPlayer_.setAttribute("class","videoPlayer videoContainer nonVisibleContainer"),this.videoPlayer_.setAttribute("preload","auto"),this.videoPlayer_.volume=0,t=this.videoPlayer_,_()&&(this.videoPlayer_.muted=!0,this.videoPlayer_.setAttribute("webkit-playsinline",""),this.videoPlayer_.setAttribute("playsinline","")),this.creativeContainer_.appendChild(this.videoPlayer_)}.bind(this),this.prepareVideoPlayer_=function(){var A=this;this.videoPlayer_.src=this.config_.content_video_src,this.videoPlayer_.controls=void 0!==this.config_.ui&&void 0!==this.config_.ui.controls&&this.config_.ui.controls,"on_hover"==this.config_.volume_manager.active?(this.videoContainer_.addEventListener("mouseenter",function(){var e=(this.config_.volume_manager.level-this.videoPlayer_.volume)/10,t=0,i=setInterval(function(){++t>10?clearInterval(i):A.videoPlayer_.volume=A.videoPlayer_.volume+e},100)}.bind(this)),this.videoContainer_.addEventListener("mouseleave",function(){var e=this.videoPlayer_.volume/10,t=0,i=setInterval(function(){++t>10?clearInterval(i):A.videoPlayer_.volume=A.videoPlayer_.volume-e},100)}.bind(this))):_()||(this.videoPlayer_.volume=this.config_.volume_manager.level);var e={loadedmetadata:this.onContentLoaded_,ended:this.onContentComplete_};o.events.attach(this.videoPlayer_,e),this.videoPlayer_.load()};var r=function(){google.ima.settings.setVpaidMode(google.ima.ImaSdkSettings.VpaidMode[n.config_.vpaid_mode.toUpperCase()]),google.ima.settings.setAutoPlayAdBreaks(!1)},s=function(A,e){var t,i,r={},s=this;this._container=void 0,this._manager=void 0,this._data=void 0;var d=function(){this._container=function(){var i=document.createElement("div");i.className="adContainer hiddenContainer",A.appendChild(i),"on_hover"==n.config_.volume_manager.active&&(i.addEventListener("mouseenter",function(){var A=(n.config_.volume_manager.level-s._manager.getVolume())/10,e=0,t=setInterval(function(){++e>10?clearInterval(t):s._manager.setVolume(s._manager.getVolume()+A)},100)}.bind(this)),i.addEventListener("mouseleave",function(){var A=s._manager.getVolume()/10,e=0,t=setInterval(function(){++e>10?clearInterval(t):s._manager.setVolume(s._manager.getVolume()-A)},100)}.bind(this)));var o=new google.ima.AdDisplayContainer(i,e);return{getElement:function(){return i},getDisplayContainer:function(){return o},destroy:function(){s._manager&&s._manager.destroy(),t.destroy(),o.destroy(),i.parentNode&&i.parentNode.removeChild(i)}}}(),(t=new google.ima.AdsLoader(this._container.getDisplayContainer())).getSettings().setDisableCustomPlaybackForIOS10Plus(!0),t.addEventListener(google.ima.AdErrorEvent.Type.AD_ERROR,c),t.addEventListener(google.ima.AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED,h)}.bind(this),c=function(A){var e=A.getError?A.getError():A;g({type:e.getType(),info:e.getMessage().split(" ").join("_")+e.getVastErrorCode()}),o.events.dispatch(this,"onError")}.bind(this),h=function(A){g(A);var t=m();this._manager=A.getAdsManager(e,t),this._manager.setVolume("on_hover"==n.config_.volume_manager.active||_()?0:n.config_.volume_manager.level);var i={};i[google.ima.AdErrorEvent.Type.AD_ERROR]=c,i[google.ima.AdEvent.Type.LOG]=g,i[google.ima.AdEvent.Type.LOADED]=l,i[google.ima.AdEvent.Type.IMPRESSION]=v,i[google.ima.AdEvent.Type.STARTED]=g,i[google.ima.AdEvent.Type.CLICK]=g,i[google.ima.AdEvent.Type.FIRST_QUARTILE]=g,i[google.ima.AdEvent.Type.MIDPOINT]=g,i[google.ima.AdEvent.Type.THIRD_QUARTILE]=g,i[google.ima.AdEvent.Type.SKIPPABLE_STATE_CHANGED]=p,i[google.ima.AdEvent.Type.SKIPPED]=u,i[google.ima.AdEvent.Type.COMPLETE]=u,o.events.attach(this._manager,i);try{this._manager.init(n.config_.video_width,n.config_.video_height,google.ima.ViewMode.NORMAL)}catch(A){c(A)}}.bind(this),l=function(A){this._data=A.getAdData(),g({type:A.type,info:this._data}),w({requesting:!1,loaded:!0}),o.events.dispatch(this,"onLoaded")}.bind(this),v=function(A){g(A),w("plays",!0),o.events.dispatch(this,"onImpression"),this._process(),y.check()}.bind(this),p=function(){void 0!==n.config_.auto_skip&&(C.enable(),o.events.dispatch(this,"onSkippableStateChanged"))}.bind(this),u=function(A){g(A),w({plays:!1,complete:!0}),o.events.dispatch(this,"onComplete")}.bind(this),m=function(){var A=new google.ima.AdsRenderingSettings;return A.enablePreloading=!0,A.loadVideoTimeout=1e3*n.config_.load_video_timeout,A},f=function(){var A=Math.round(1e3*this._manager.getRemainingTime().toFixed(3));return A<0?0:A}.bind(this),y=function(){var A,e=[];return{add:function(A,t,i){i=i||!1;var n=e.push({time:A,callback:t,inverseState:i});return{changeTime:function(A){e[--n].time=A}}},check:function(){A=setInterval(function(){var t=f(),i=1e3*this._data.duration-t;e=e.filter(function(A){if(A.inverseState&&A.time<t||!A.inverseState&&A.time>i)return!0;A.callback()}),t||clearInterval(A)}.bind(this),50)}.bind(this)}}.bind(this)(),E=function(){var A;return{enable:function(){o.events.attach(this,{onError:E.disable}),t.addEventListener(google.ima.AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED,E.disable),A=setTimeout(function(){c({getType:function(){return"adLoadError"},getMessage:function(){return"Ad request reached a timeout."},getVastErrorCode:function(){return 301}})},1e3*n.config_.load_vast_timeout)}.bind(this),disable:function(){clearTimeout(A)}}}.bind(this)(),C=function(){var A,e;return{enable:function(){var t=Math.random();t>.6||(e=Math.floor(6*t)+2,A=setTimeout(function(){this.skip(e)}.bind(this),1e3*e),this._manager.addEventListener(google.ima.AdEvent.Type.SKIPPED,C.cancel),this._manager.addEventListener(google.ima.AdEvent.Type.COMPLETE,C.cancel))}.bind(this),cancel:function(){clearTimeout(A),e=null},getTimeout:function(){return e||!1}}}.bind(this)(),w=o.states.set.bind(this),b=o.states.get.bind(this);this.states_={},this.setTag=function(A){i=A},this.request=function(){if(!b("requesting")&&!b("loaded")){g({type:"request"});var A=new google.ima.AdsRequest;A.adTagUrl=i.url,A.linearAdSlotWidth=720,A.linearAdSlotHeight=405,A.nonLinearAdSlotWidth=720,A.nonLinearAdSlotHeight=405,t.requestAds(A),w("requesting",!0),E.enable()}},this.start=function(){if(!b("plays")&&!b("complete")&&b("loaded")){g({type:"starting"});try{if(this._container.getDisplayContainer().initialize(),this._manager.setVolume(0),_()&&a)return void UserGestureSaver.push(function(){this._prepare(),this._manager.start()}.bind(this));this._prepare(),this._manager.start()}catch(A){c(A)}}},this.skip=function(A){this._manager.getAdSkippableState()&&(g({type:"adAutoSkip",info:A}),this._manager.skip())},this.destroy=function(){t.destroy(),this._container.destroy()},this._prepare=function(){_()&&(n.videoPlayer_.style.opacity="0.01",n.videoPlayer_.style.position="fixed",n.videoPlayer_.style.top=0,n.videoPlayer_.style.left=0,n.videoContainer_.classList.remove("nonVisibleContainer")),this._container.getElement().style.position="fixed",this._container.getElement().classList.remove("hiddenContainer")},this.addEventListener=function(A,e){r[A]=r[A]||[],r[A].push(e)},this.dispatchEvent=function(A){r[A.eventName]&&r[A.eventName].forEach(function(A){A()})},this.getData=function(){return this._data},this.getState=function(A){return b(A)},this.addTimeBreakpoint=function(A,e,t){return y.add.apply(null,arguments)},this.getAutoSkipTimeout=function(){return C.getTimeout()},this.getRemainingTime=function(){return f()},d()};s.IU=function(){s.apply(this,arguments),this._process=function(){var A=n.targetContainer_.getBoundingClientRect();this._manager.resize(A.width,A.height,google.ima.ViewMode.NORMAL),n.prepareCreativeContainer_(A.width,A.height),_()&&(n.videoPlayer_.style.removeProperty("position"),n.videoPlayer_.style.removeProperty("top"),n.videoPlayer_.style.removeProperty("left"),n.videoPlayer_.style.opacity=1),this._container.getElement().style.removeProperty("position"),this._container.getElement().style.opacity=1}},s.RVU=s.CRU=function(){s.apply(this,arguments),this._process=function(){var A,e,t=("iFrameDispatcher"==n.config_.dispatcher_name?window.frameElement:n.targetContainer_).parentNode.parentNode,i=parseFloat(window.getComputedStyle(t,null).getPropertyValue("padding-left"))+parseFloat(window.getComputedStyle(t,null).getPropertyValue("padding-right")),o=t.getBoundingClientRect().width-i;o>=n.config_.video_width?(A=n.config_.video_width,e=n.config_.video_height,this._manager.resize(A,e,google.ima.ViewMode.NORMAL)):(A=o,e=o/((this._data.vastMediaWidth||n.config_.video_width)/(this._data.vastMediaHeight||n.config_.video_height)),this._manager.resize(A,e,google.ima.ViewMode.NORMAL));n.prepareCreativeContainer_(A,e),_()&&(n.videoPlayer_.style.removeProperty("position"),n.videoPlayer_.style.removeProperty("top"),n.videoPlayer_.style.removeProperty("left"),n.videoPlayer_.style.opacity=1),this._container.getElement().style.removeProperty("position"),this._container.getElement().style.opacity=1}},s.SU=function(){s.apply(this,arguments),this._process=function(){var A,e,t=("iFrameDispatcher"==n.config_.dispatcher_name?window.frameElement.ownerDocument.documentElement:document.documentElement).clientWidth;t>=n.config_.video_width?(A=n.config_.video_width,e=n.config_.video_height,this._manager.resize(A,e,google.ima.ViewMode.NORMAL)):(A=t,e=t/((this._data.vastMediaWidth||n.config_.video_width)/(this._data.vastMediaHeight||n.config_.video_height)),this._manager.resize(A,e,google.ima.ViewMode.NORMAL));n.prepareCreativeContainer_(A,e),_()&&(n.videoPlayer_.style.removeProperty("position"),n.videoPlayer_.style.removeProperty("top"),n.videoPlayer_.style.removeProperty("left"),n.videoPlayer_.style.opacity=1),this._container.getElement().style.removeProperty("position"),this._container.getElement().style.opacity=1,n.config_.cross.enabled&&setTimeout(function(){var A=document.createElement("img");A.src="https://cdn2.iconfinder.com/data/icons/flat-ui-icons-24-px/24/cross-24-16.png",A.style="position: absolute; right: 5px; top: 5px; width: 13px; height: 13px; cursor: pointer;",A.addEventListener("click",function(A){A.target.parentNode.removeChild(A.target),this._manager.skip(),n.creativeContainer_.style.maxWidth=0,"iFrameDispatcher"==n.config_.dispatcher_name&&(window.frameElement.style.maxWidth=0),setTimeout(function(){this._container.destroy(),setTimeout(function(){n.targetContainer_.parentNode.removeChild(n.targetContainer_)},200)}.bind(this),1e3)}.bind(this)),n.creativeContainer_.appendChild(A)}.bind(this),1e3*n.config_.cross.time)}};var d=function(){var A={list:[],active:[],current:void 0};this._ads=A;var e=function(){var e=n.config_.ads_container_max_count-(A.list.length+A.active.length);if(e)for(var t=0;t<e;t++)i()},i=function(){var e=n.config_.target.creative_type,t=new s[e](n.creativeContainer_,n.videoContainer_);A.list.push(t)},a=function(t){t.destroy();for(var i=0;i<A.active.length;i++)if(A.active[i]===t){A.active.splice(i,1);break}e()};this._requestAd=function(){if(!(!c("requesting")&&n.config_.tags_list.length&&c("played")<n.config_.rotations&&c("content.loadedmetadata")))return!1;if(!c("content.loadedmetadata"))return t.addEventListener("loadedmetadata",function(){h("content.loadedmetadata",!0),this._requestAd()}.bind(this)),!1;h("requesting",!0);var e,i,a=(i=A.list.shift(),A.active.push(i),A.current=i,i),s=(e=n.config_.tags_list.shift(),n.config_.is_loopped&&n.config_.tags_list.push(e),e);a.setTag(s);var _={onError:function(){r(a)},onLoaded:d,onImpression:function(){g(a,s)},onComplete:function(){l(a)}};return o.events.attach(a,_),a.request(),!0};var r=function(A){h({requesting:!1,pending:!1}),a(A),this._waterfallResolver()}.bind(this),d=function(){h({requesting:!1,pending:!0}),this._startAd()}.bind(this),g=function(A){h({pending:!1,playing:!0,played:+c("played")+1});var e=1e3*n.config_.ads_request_trigger_offset_in_sec,t=A.addTimeBreakpoint(e,function(){this._waterfallResolver(A)}.bind(this),!0);A.addEventListener("onSkippableStateChanged",function(){var i=A.getAutoSkipTimeout();if(i){var n=A.getRemainingTime()-i+e;t.changeTime(n)}})}.bind(this),l=function(A){h("playing",!1),a(A),this._waterfallResolver()}.bind(this);this._startAd=function(){c("in_view")&&!c("playing")&&A.current.start()},this._waterfallResolver=function(e){if(!c("requesting")&&!c("pending"))if(this._requestAd()){if(void 0===e)return;o.events.attach(e,{onComplete:function(){A.current.getState("loaded")&&this._startAd()}.bind(this)})}else c("played")?(void 0===e||e.getState("complete"))&&n.startContent_():"enabled"==n.config_.passback.status&&n.config_.passback.code.call(n)}.bind(this),e()};d.inViewDispatcher=function(){d.apply(this,arguments);var A=window.inView(),e={top:-1*n.config_.ads_request_trigger_offset,bottom:-1*n.config_.ads_request_trigger_offset,left:0,right:0};A.offset(e);var t=function(){g({type:"inview_request_zone"}),this._requestAd()}.bind(this);A.is(n.creativeContainer_)?t():A(n.creativeContainer_).once("enter",t);var i=window.inView();e.top=e.bottom=n.config_.video_height/2,"RVU"!=n.config_.target.creative_type&&(e.top=-1*e.top),i.offset(e);var o=function(){g({type:"inview_start_zone"}),h("in_view",!0),this._startAd()}.bind(this);i.is(n.creativeContainer_)?o():i(n.creativeContainer_).once("enter",o)},d.iFrameDispatcher=function(){if(d.apply(this,arguments),"CRU"==n.config_.target.creative_type)window.frameElement.style.transition="height 1s ease-out";else{var A=n.targetContainer_.getBoundingClientRect();window.frameElement.width=A.width,window.frameElement.height=A.height}g({type:"request_zone"}),this._requestAd(),g({type:"start_zone"}),h("in_view",!0),this._startAd()},d.gameDispatcher=function(){d.apply(this,arguments);var A=window.inView(),e={top:-1*n.config_.ads_request_trigger_offset,bottom:-1*n.config_.ads_request_trigger_offset,left:0,right:0};A.offset(e);var t=function(){g({type:"inview_request_zone"}),this._requestAd()}.bind(this);A.is(n.creativeContainer_)?t():A(n.creativeContainer_).once("enter",t);var i=window.inView();e.top=e.bottom=n.config_.video_height/2,"RVU"!=n.config_.target.creative_type&&(e.top=-1*e.top),i.offset(e);var a=function(){g({type:"inview_start_zone"}),h("in_view",!0),this._startAd()}.bind(this);i.is(n.creativeContainer_)?a():i(n.creativeContainer_).once("enter",a),this._waterfallResolver=function(A){if(!c("requesting")&&!c("pending"))if(this._requestAd()){if(void 0===A)return;o.events.attach(A,{onComplete:function(){this._ads.current.getState("loaded")&&this._startAd()}.bind(this)})}else c("played")?(void 0===A||A.getState("complete"))&&n.targetContainer_.parentNode.removeChild(n.targetContainer_):"enabled"==n.config_.passback.status&&n.config_.passback.code.call(n)}.bind(this)},d.initialDispatcher=function(){d.apply(this,arguments),this._requestAd(),h("in_view",!0),this._startAd()},this.prepareCreativeContainer_=function(A,e){if("IU"==this.config_.target.creative_type)this.creativeContainer_.style.maxWidth=this.videoContainer_.style.maxWidth=A+"px",this.creativeContainer_.style.maxHeight=this.videoContainer_.style.maxHeight=this.creativeContainer_.style.height=this.videoContainer_.style.height=e+"px";else if("CRU"==this.config_.target.creative_type||"RVU"==this.config_.target.creative_type){if(c("ad.expanded"))return;if("iFrameDispatcher"==n.config_.dispatcher_name){window.frameElement.parentNode.getBoundingClientRect();window.frameElement.width=A,window.frameElement.height=e}this.creativeContainer_.style.maxWidth=this.videoContainer_.style.width=A+"px",this.creativeContainer_.style.maxHeight=this.videoContainer_.style.maxHeight=this.creativeContainer_.style.height=this.videoContainer_.style.height=e+"px",h("ad.expanded",!0)}else if("SU"==this.config_.target.creative_type){if(c("ad.expanded"))return;"iFrameDispatcher"==this.config_.dispatcher_name&&(window.frameElement.style.maxWidth=window.frameElement.style.width=A+"px",window.frameElement.style.maxHeight=window.frameElement.style.height=e+"px"),this.creativeContainer_.style.maxWidth=this.videoContainer_.style.width=A+"px",this.creativeContainer_.style.maxHeight=this.videoContainer_.style.maxHeight=this.creativeContainer_.style.height=this.videoContainer_.style.height=e+"px",h("ad.expanded",!0)}}.bind(this),this.resetCreativeContainer_=function(){this.creativeContainer_.setAttribute("style","max-width: "+("SU"==this.config_.target.creative_type?0:this.config_.video_width+"px")),"iFrameDispatcher"==this.config_.dispatcher_name&&"SU"==this.config_.target.creative_type&&(window.frameElement.style.maxWidth=0),"CRU"!=this.config_.target.creative_type&&"SU"!=this.config_.target.creative_type||(h("ad.expanded",!1),"iFrameDispatcher"==n.config_.dispatcher_name&&(window.frameElement.width=0,window.frameElement.height=0))}.bind(this),this.prepareContent_=function(){this.videoContainer_.classList.remove("nonVisibleContainer"),"IU"==this.config_.target.creative_type&&(this.creativeContainer_.style.maxWidth=this.config_.banner_width+"px",this.creativeContainer_.style.maxHeight=this.config_.banner_height+"px"),this.creativeContainer_.style.opacity=1}.bind(this),this.startContent_=function(){g({type:"contentStart"}),this.prepareContent_(),_()&&(this.videoPlayer_.src=this.config_.content_video_src),_()&&a?UserGestureSaver.push(function(){this.videoPlayer_.play()}.bind(this)):this.videoPlayer_.play(),h({"content.plays":!0,playback:"content"}),void 0!==this.config_.content_video_auto_skip_timeout&&(e=setTimeout(function(){g({type:"contentAutoSkip",info:1e3*this.config_.content_video_auto_skip_timeout}),this.videoPlayer_.pause(),this.onContentComplete_({type:"ended"})}.bind(this),1e3*this.config_.content_video_auto_skip_timeout))}.bind(this),this.onContentLoaded_=function(A){g(A),h("content.loadedmetadata",!0)}.bind(this),this.onContentComplete_=function(A){clearTimeout(e),g(A),this.videoContainer_.classList.add("nonVisibleContainer"),this.videoPlayer_.currentTime=0,h("content.plays",!1),"ads_pod"==this.config_.rotations_logic&&this.resetCreativeContainer_()}.bind(this),o.events={attach:function(A,e){for(var t in e)A.addEventListener(t,e[t])},dispatch:function(A,e){var t;"function"==typeof window.CustomEvent?t=new CustomEvent(e):document.createEvent?(t=document.createEvent("Event")).initEvent(e,!0,!0):document.createEventObject&&((t=document.createEventObject()).eventType=e),t.eventName=e,A.dispatchEvent?A.dispatchEvent(t):A.fireEvent?A.fireEvent("on"+t.eventType,t):A[e]?A[e]():A["on"+e]&&A["on"+e]()}},o.states={set:function(A,e){var t={};for(i in A===Object(A)?t=A:t[A]=e,t)this.states_[i]=t[i]},get:function(A){return this.states_[A]||!1}};var c=o.states.get.bind(this),h=o.states.set.bind(this),g=function(A){if(n.config_.thirdPartyLogger&&n.config_.thirdPartyLogger(A.type,A.info),"init"==A.type&&"on_init"==n.config_.impression.fire&&l(n.config_.impression.tp_list),"inview_start_zone"==A.type&&"in_view"==n.config_.impression.fire&&l(n.config_.impression.tp_list),"impression"==A.type&&("every_ad_impression"==n.config_.impression.fire?l(n.config_.impression.tp_list):"first_ad_impression"!=n.config_.impression.fire||n.config_.impression.fired||(n.config_.impression.fired=!0,l(n.config_.impression.tp_list))),n.config_.log_level){var e={tid:n.tid_,placement_id:n.config_.placement_id,timeout:Date.now(),type:A.type,info:A.info};console.log(e)}},l=function(A){for(var e in A)A.hasOwnProperty(e)&&((new Image).src=A[e].replace(/{timestamp}/g,Date.now()))},_=function(){return/ipad|iphone|ipod|android/i.test(navigator.userAgent)&&!window.MSStream},v=function(){var A=document.createElement("script"),e=document.getElementsByTagName("script")[0];if(A.src="//imasdk.googleapis.com/js/sdkloader/ima3.js",_()){var t=document.createElement("video"),i=document.createElement("source"),o=document.createElement("source");i.src="data:video/mp4;base64,AAAAFGZ0eXBNU05WAAACAE1TTlYAAAOUbW9vdgAAAGxtdmhkAAAAAM9ghv7PYIb+AAACWAAACu8AAQAAAQAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgAAAnh0cmFrAAAAXHRraGQAAAAHz2CG/s9ghv4AAAABAAAAAAAACu8AAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAABAAAAAAFAAAAA4AAAAAAHgbWRpYQAAACBtZGhkAAAAAM9ghv7PYIb+AAALuAAANq8AAAAAAAAAIWhkbHIAAAAAbWhscnZpZGVBVlMgAAAAAAABAB4AAAABl21pbmYAAAAUdm1oZAAAAAAAAAAAAAAAAAAAACRkaW5mAAAAHGRyZWYAAAAAAAAAAQAAAAx1cmwgAAAAAQAAAVdzdGJsAAAAp3N0c2QAAAAAAAAAAQAAAJdhdmMxAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAFAAOABIAAAASAAAAAAAAAABAAAAAAAAAA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gAPuC/rOgnKGWgQKbANEBAAEQEAAYABhYL/QACIhgAPuC/rKgnKGWgQPoANEBAAEQEAAYABhYL/QACIhgAPuC/rOgnKGWgQU1ANEBAAEQEAAYABhYL/QACIhgAPuC/rOgnKGWgQaDANEBAAEQEAAYABhYL/QACIhgAPuC/rKgnKGWgQfQANEBAAEQEAAYABhYL/QACIhgAPuC/rOgnKGWgQkdANEBAAEQEBRgAGFgv9AAIiGAAPuC/rOgnKGWgQprANEBAAEQEAAYABhYL/QACIhgAPuC/rKgnKGWgQu4ANEBAAEQEAAYABhYL/QACIhgAPuC/rOgnKGWgQ0FANEBAAEQEAAYABhYL/QACIhgAPuC/rOgnKGWgQ5TANEBAAEQEAAYABhYL/QACIhgAPuC/rKgnKGWgQ+gANEBAAEQEAAYABhYL/QACIhgAPuC/rOgnKGWgRDtANEBAAEQEAAYABhYL/QACIhgAPuC/rOgnKGWgRI7ANEBAAEQEAAYABhYL/QACIhgAPuC/rIcU7trQOC7jLOBALeH94EB8YIUzLuNs4IBTbeH94EB8YIUzLuNs4ICm7eH94EB8YIUzLuNs4ID6LeH94EB8YIUzLuNs4IFNbeH94EB8YIUzLuNs4IGg7eH94EB8YIUzLuNs4IH0LeH94EB8YIUzLuNs4IJHbeH94EB8YIUzLuNs4IKa7eH94EB8YIUzLuNs4ILuLeH94EB8YIUzLuNs4INBbeH94EB8YIUzLuNs4IOU7eH94EB8YIUzLuNs4IPoLeH94EB8YIUzLuNs4IQ7beH94EB8YIUzLuNs4ISO7eH94EB8YIUzBFNm3SPTbuMU6uEH0O2dVOsghTM",t.appendChild(o),t.appendChild(i),t.id="mw_test_video",t.style="position: fixed; left: -9999px; opacity: 0; visibility: hidden;",t.volume=0,document.getElementsByTagName("body")[0].appendChild(t),t=document.getElementById("mw_test_video");try{t.play()}catch(A){a=!0}a||Object.defineProperty(navigator,"userAgent",{configurable:!0,get:function(){return"Mozilla/5.0 (iPad; CPU OS 9_0 like Mac OS X) AppleWebKit/601.1.17 (KHTML, like Gecko) Version/8.0 Mobile/13A175 Safari/600.1.4"}}),setTimeout(function(){t.parentNode.removeChild(t)},300)}var s=0;A.onload=A.onreadystatechange=function(){this.readyState&&"loaded"!==this.readyState&&"complete"!==this.readyState||(this.onload=this.onreadystatechange=null,++s>1&&(delete navigator.userAgent,navigator.screen=screen,g({type:"init",info:navigator}),n.config_.tags_list=n.config_.tags_list.filter(function(A){return""!=A}).map(function(A,e){return{url:A,index:e}}),n.config_.rotations_logic="ads_pod",n.config_.vpaid_mode=n.config_.vpaid_mode||"disabled",r(),n.createCreativeContainer_(),"SU"==n.config_.target.creative_type&&(n.config_.target.position="left"==n.config_.target.position?"left":"right",n.config_.dispatcher_name="iFrameDispatcher"==n.config_.dispatcher_name?"iFrameDispatcher":"initialDispatcher"),new d[n.config_.dispatcher_name||"inViewDispatcher"]))};var c=document.createElement("script");c.src="//ad.mediawayss.com/ad/inView.min.js",c.onload=c.onreadystatechange=A.onload,e.parentNode.insertBefore(A,e).parentNode.insertBefore(c,e)}.bind(this);this.config_.content_video_src?v():function(A){var e="c"+n.tid_;window[e]=function(e){A(e)};var t=document.createElement("script");t.src=n.config_.content_video_playlist+"?callback="+e,document.body.appendChild(t)}(function(A){this.config_.content_video_src=A,v()}.bind(this))};