"use strict";var __extends=(this&&this.__extends)||(function(){var aa=Object.setPrototypeOf||({__proto__:[]}
instanceof Array&&function(d,b){d.__proto__=b;})||function(d,b){for(var p in b)if(b.hasOwnProperty(p))d[p]=b[p];};return function(d,b){aa(d,b);function __(){this.constructor=d;}
d.prototype=b===null?Object.create(b):(__.prototype=b.prototype,new __());};})();var __assign=(this&&this.__assign)||Object.assign||function(t){for(var s,i=1,n=arguments.length;i<n;i++){s=arguments[i];for(var p in s)if(Object.prototype.hasOwnProperty.call(s,p))t[p]=s[p];}
return t;};var NativeBase=(function(){function NativeBase(){return this;}
NativeBase.prototype.addEvent=function(ba,ca,da){if(ba.addEventListener){ba.addEventListener(ca,da,false);}
else if(ba.attachEvent){ba.attachEvent('on'+ca,da);}};NativeBase.prototype.makeNativeElemCli=function(ea){var fa;if(ea&&typeof ea.imp!=='undefined'&&typeof ea.cl!=='undefined'&&ea.cl.length>0){for(var _i=0,_a=Object.keys(ea.imp);_i<_a.length;_i++){var ga=_a[_i];var ha=document.createElement('img');ha.style.height='0px';ha.style.display='none';ha.src=ea.imp[ga];document.body.insertBefore(ha,document.body.firstChild);}
fa=ea.cl;}
else if(ea&&typeof ea.ext_h!=='undefined'&&typeof ea.ext_cl_js!=='undefined'&&typeof ea.ext_imp_js!=='undefined'){var ia=document.createElement('iframe');ia.style.height='0px';ia.style.display='none';document.body.insertBefore(ia,document.body.firstChild);var ja=ia.contentWindow.document;ja.open();ja.write("<html><body><script>window.addEventListener('message',function(ev){eval(ev.data)},false)</script>");ja.write(ea.ext_h);ja.write('<script>'+ea.ext_imp_js+'</script></body></html>');ja.close();var ka='AdstirNT'+Math.round(Math.random()*10000000000)+'A'+Math.round(Math.random()*10000000000);fa='javascript:'+ka+'()';window[ka]=function(){ia.contentWindow.postMessage(ea.ext_cl_js,'*');};}
return fa;};NativeBase.prototype.replaceTemplateText=function(la,ma,na){la=encodeURIComponent(la);var oa;var pa=la.match(/%25%25AD_UNIT_LOOP_START_([0-9]*)%25%25([\s\S]|.*?)%25%25AD_UNIT_LOOP_END%25%25/);if(pa&&pa[1]&&pa[2]){var qa=pa[1];oa=pa[2];this.loopCnt=na.length>Number(qa)?Number(qa):na.length;}
else{oa=la;this.loopCnt=1;}
var ra='';for(var i=0;i<this.loopCnt;i++){var sa=na[i];sa.clickUrl=this.makeNativeElemCli(sa);var ta=decodeURIComponent(oa);ta=ta.replace(/%%OPTOUT_ICON_RIGHT%%/g,ma.replace(/LEFT_RIGHT_CSS/g,'left: auto; right: 0px; direction: ltr;text-align: right;').replace(/LEFT_RIGHT/g,'right'));ta=ta.replace(/%%OPTOUT_ICON_LEFT%%/g,ma.replace(/LEFT_RIGHT_CSS/g,'right: auto; left: 0px; direction: rtl;text-align: left;').replace(/LEFT_RIGHT/g,'left'));ta=ta.replace(/%%ICON%%/g,typeof sa.icon!=='undefined'?''+sa.icon:'');ta=ta.replace(/%%IMAGE%%/g,typeof sa.image!=='undefined'?''+sa.image:'');ta=ta.replace(/%%TITLE%%/g,typeof sa.title!=='undefined'?''+sa.title:'');ta=ta.replace(/%%DESCRIPTION%%/g,typeof sa.description!=='undefined'?''+sa.description:'');ta=ta.replace(/%%CTA%%/g,typeof sa.cta!=='undefined'?''+sa.cta:'');ta=ta.replace(/%%CLICK_URL%%/g,typeof sa.clickUrl!=='undefined'?''+sa.clickUrl:'');ta=ta.replace(/%%RATING%%/g,typeof sa.rating!=='undefined'?''+sa.rating:'');ta=ta.replace(/%%LANDING_PAGE_URL%%/g,typeof sa.landingPageUrl!=='undefined'?''+sa.landingPageUrl:'');ta=ta.replace(/%%ADVERTISER%%/g,typeof sa.advertiser!=='undefined'?''+sa.advertiser:'');ta=ta.replace(/%%OPTOUT_URL%%/g,sa.optoutUrl);ta=encodeURIComponent(ta);ra+=ta;}
la=(pa&&pa[1]&&pa[2])?la.replace(pa[0],ra):ra;la=decodeURIComponent(la);return la;};return NativeBase;}());var AdstirIvw;(function(va){function measureVimp(wa,xa){var ya='data-adstir-inview-beacon-exec';var za=function(){if(wa.hasAttribute(ya)){return;}
xa();wa.setAttribute(ya,'1');};if(!("IntersectionObserver" in window)){setTimeout(function(){za();},1000);return;}
var Aa=0.5;var Ba=0;var Ca=new IntersectionObserver(function(Da,ob){var Ea=Da[0];if(Ea!=null&&Ea.intersectionRatio>=Aa){if(Ba===0){Ba=setTimeout(function(){za();ob.disconnect();},1000);}}
else if(Ba!==0){clearTimeout(Ba);Ba=0;}},{threshold:Aa});Ca.observe(wa);}
va.measureVimp=measureVimp;function sendIvw(Fa){Fa.forEach(function(Ga){var Ha=document.createElement("div");Ha.setAttribute("style","width:0px !important;height:0px !important;background:url('"+Ga+"')");document.body.insertBefore(Ha,document.body.firstChild);});}
va.sendIvw=sendIvw;})(AdstirIvw||(AdstirIvw={}));var MakeNativeElem=(function(Ia){__extends(MakeNativeElem,Ia);function MakeNativeElem(Ja,Ka,La){var Ma=Ia.call(this)||this;Ma.init=function(){Ma.inviewClassName='adstir_inview_'+Math.floor(Math.random()*100000000).toString()+'A'+Math.floor(Math.random()*100000000).toString();Ma.global=window;if(!(Ma.adtag.crtv instanceof Array)){Ma.adtag.crtv=[Ma.adtag.crtv];}
return Ma;};Ma.makeElem=function(){Ma.makeNativeElemCallback(Ma.adtag,Ma.options);if(Ma.adtag.adtype==='native_html'){var Na='adstir_native_html_callback_'+Math.round(Math.random()*10000000000);Ma.adtag.html=Ma.adtag.html.replace(/<<<NATIVE_HTML_CALLBACK>>>/g,Na);if(Ma.options.native_html){Ma.adtag.html=Ma.adtag.html.replace(/<<<NATIVE_HTML_TEMPLATE>>>/g,'decodeURIComponent("'+encodeURIComponent(Ma.options.native_html)+'")');}
window[Na]=function(Oa){if(Oa){Oa.optoutUrl=Oa.optoutUrl!=null&&Oa.optoutUrl!==''?''+Oa.optoutUrl:'https://ad-stir.com/sp/optout.html';Oa=[Oa];this.options.native_callback({inviewDetectionIdentifier:this.inviewClassName,native_callbacks:Oa,record_viewable:null});}};document.write(Ma.adtag.html);}
else if(Ma.adtag.crtv){var Pa=function(){for(var _i=0,_a=Object.keys(Ma.adtag.crtv);_i<_a.length;_i++){var Qa=_a[_i];for(var _b=0,_c=Object.keys(Ma.adtag.crtv[Qa].ivw);_b<_c.length;_b++){var Ra=_c[_b];var Sa=document.createElement('img');Sa.style.height='0px';Sa.style.display='none';Sa.src=Ma.adtag.crtv[Qa].ivw[Ra];document.body.insertBefore(Sa,document.body.firstChild);}}};var Ta=[];for(var _i=0,_a=Object.keys(Ma.adtag.crtv);_i<_a.length;_i++){var Ua=_a[_i];Ma.adtag.crtv[Ua].optout=Ma.adtag.crtv[Ua].optout!=null&&Ma.adtag.crtv[Ua].optout!==''?''+Ma.adtag.crtv[Ua].optout:'https://ad-stir.com/sp/optout.html';Ta.push({advertiser:Ma.adtag.crtv[Ua].adv,cl:Ma.adtag.crtv[Ua].cl,cta:Ma.adtag.crtv[Ua].cta,description:Ma.adtag.crtv[Ua].desc,ext_cl_js:Ma.adtag.crtv[Ua].ext_cl_js,ext_h:Ma.adtag.crtv[Ua].ext_h,ext_imp_js:Ma.adtag.crtv[Ua].ext_imp_js,icon:Ma.adtag.crtv[Ua].icon,image:Ma.adtag.crtv[Ua].img,imp:Ma.adtag.crtv[Ua].imp,ivw:Ma.adtag.crtv[Ua].ivw,jsv:Ma.adtag.crtv[Ua].jsv,landingPageUrl:Ma.adtag.crtv[Ua].lp,optoutUrl:Ma.adtag.crtv[Ua].optout,rating:Ma.adtag.crtv[Ua].rate,title:Ma.adtag.crtv[Ua].title});}
Ma.options.native_callback({inviewDetectionIdentifier:Ma.inviewClassName,native_callbacks:Ta,record_viewable:function(){Pa();}});}
return Ma;};Ma.adtag=Ja;Ma.options=Ka;Ma.inviewRecursiveCheckFlag=La;return Ma;}
MakeNativeElem.prototype.makeNativeElemCallback=function(Va,Wa){var Xa=this;if(typeof Wa.native_callback==='undefined'&&!Wa.async){Wa.native_callback=function(Ya){var Za=Wa.native_html;var $a='<div style="display: block; line-height: 1; position: relative; margin: 0; padding: 0;">\n<div style="display: block; line-height: 1; position: absolute; margin: 0; padding: 0; z-index: 1; LEFT_RIGHT_CSS ">\n<a style="display:none;line-height:1;margin:0;padding:0;position:static;width:16px;overflow:hidden;-webkit-transition:width 0.5s linear 0s;transition:width 0.5s linear 0s;direction:inherit;text-align:inherit;" href="%%OPTOUT_URL%%"><img style="height:16px;width:85px;position:static;" src="https://js.ad-stir.com/optout/i2LEFT_RIGHT.png"></a>\n<img onclick="(function(tg){var wat=tg.parentNode.getElementsByTagName(\'a\')[0];wat.style.display=\'block\';tg.style.display=\'none\';setTimeout(function(){wat.style.width=\'85px\';},100);setTimeout(function(){wat.style.width=\'16px\';},6000);setTimeout(function(){tg.style.display=\'inline\';wat.style.display=\'none\';},6550);})(this);" style="height:16px;width:16px;margin:0;padding:0;position:static;" src="https://js.ad-stir.com/optout/i1.png">\n</div>\n</div>\n';Za=Xa.replaceTemplateText(Za,$a,Ya.native_callbacks);for(var i=0;i<Xa.loopCnt;i++){var ab=Ya.native_callbacks[i];Xa.makeNativeElemInview(Ya.inviewDetectionIdentifier,i,ab,Wa);}
if(Za.indexOf('%%INVIEW_DETECTION_IDENTIFIER%%')!==-1){Za=Za.replace(/%%INVIEW_DETECTION_IDENTIFIER%%/g,Ya.inviewDetectionIdentifier);document.write(Za);}
else{Xa.inviewRecursiveCheckFlag=true;var el=document.createElement('div');el.innerHTML=Za;var bb=el.children;var db=0;for(var _i=0,_a=Object.keys(bb);_i<_a.length;_i++){var eb=_a[_i];var c=bb[eb];if(typeof c.nodeName==='undefined'||'STYLE'===c.nodeName){continue;}
c.className=c.className+' '+Ya.inviewDetectionIdentifier;c.setAttribute('data-adstir-inview-item-index',String(db));db++;}
document.write(el.innerHTML);}};}};MakeNativeElem.prototype.makeNativeElemInview=function(fb,gb,hb,ib){var jb=this;var kb=hb;if(kb&&kb.ivw&&typeof kb.ivw==='object'&&kb.ivw.length>0&&!ib.use_sdk_ivw){var lb=function(mb){var el=mb;var nb=mb.children;if(typeof nb!=='undefined'){for(var _i=0,_a=Object.keys(nb);_i<_a.length;_i++){var pb=_a[_i];var qb=lb(nb[pb]);if(qb.offsetHeight*qb.offsetWidth>el.offsetHeight*el.offsetWidth){el=qb;}}}
return el;};var rb=function(sb){var tb=document.getElementsByClassName(fb);if(tb.length===0){return undefined;}
var ub;for(var _i=0,_a=Object.keys(tb);_i<_a.length;_i++){var vb=_a[_i];var e=(jb.inviewRecursiveCheckFlag)?lb(tb[vb]):tb[vb];if(typeof e.nodeName==='undefined'){continue;}
var wb=e.getAttribute('data-adstir-inview-item-index');if(typeof wb==='undefined'||sb!==Number(wb)){continue;}
ub=tb[vb];if(ub.offsetHeight*ub.offsetWidth<e.offsetHeight*e.offsetWidth){ub=e;}}
return ub;};var xb=function(lc){if(lc<20){lc++;var el=rb(gb);if(typeof el!=='undefined'&&el.offsetHeight*el.offsetWidth!==0){AdstirIvw.measureVimp(el,function(){AdstirIvw.sendIvw(kb.ivw);});}
else{setTimeout(function(){xb(lc);},500);}}};this.addEvent(window,"DOMContentLoaded",function(){xb(0);});}};return MakeNativeElem;}(NativeBase));var AdstirSwipe=(function(){function AdstirSwipe(yb,zb,Ab,Bb){if(Bb===void 0){Bb=null;}
var Cb=this;this.touchstartFunc=function(e){Cb.startY=e.touches[0].pageY;};this.touchmoveFunc=function(e){e.preventDefault();Cb.endY=e.touches[0].pageY;};this.touchendFunc=function(e){if(Cb.tgtDiv.style.top!=="0px"){if(Cb.endY!==0){Cb.tgtDivChild.style.transformOrigin="50% 100%";Cb.tgtDivChild.style.webkitTransformOrigin="50% 100%";Cb.tgtDivChild.style.left='0px';Cb.tgtDivChild.style.width=Cb.adWidth+'px';Cb.tgtDivChild.style.transition="1s";if(Cb.isExpanded&&Cb.endY-Cb.startY>0){Cb.tgtDivChild.style.transform="scale("+1/Cb.zv+")";Cb.tgtDivChild.style.webkitTransform="scale("+1/Cb.zv+")";Cb.isExpanded=false;var Db=document.getElementById(AdstirSwipe.closeButtonId);if(Db){Db.style.display="block";}
var Eb=document.getElementById(AdstirSwipe.lowerArrowIconId);if(Eb){Eb.style.display="none";}
var Fb=document.getElementById(AdstirSwipe.upperArrowIconId);if(Fb){Fb.style.display="block";}
var Gb=document.getElementById(AdstirSwipe.textMsgId);if(Gb){Gb.style.display="block";}}
else if(!Cb.isExpanded&&Cb.endY-Cb.startY<0){Cb.tgtDivChild.style.transform="scale("+Cb.zv+")";Cb.tgtDivChild.style.webkitTransform="scale("+Cb.zv+")";Cb.isExpanded=true;var Hb=document.getElementById(AdstirSwipe.closeButtonId);if(Hb){Hb.style.display="none";}
var Eb=document.getElementById(AdstirSwipe.lowerArrowIconId);if(Eb){Eb.style.display="block";}
var Fb=document.getElementById(AdstirSwipe.upperArrowIconId);if(Fb){Fb.style.display="none";}
var Gb=document.getElementById(AdstirSwipe.textMsgId);if(Gb){Gb.style.display="none";}}}}};this.topExpand=function(){Cb.tgtDivChild.style.transform="scale("+Cb.zv+")";Cb.tgtDivChild.style.webkitTransform="scale("+Cb.zv+")";Cb.tgtDivChild.style.transition="";Cb.isExpanded=true;var Ib=document.getElementById(AdstirSwipe.closeButtonId);if(Ib){Ib.style.display="none";}
var Jb=document.getElementById(AdstirSwipe.lowerArrowIconId);if(Jb){Jb.style.display="block";}
var Kb=document.getElementById(AdstirSwipe.upperArrowIconId);if(Kb){Kb.style.display="none";}
var Lb=document.getElementById(AdstirSwipe.textMsgId);if(Lb){Lb.style.display="none";}};this.startY=0;this.endY=0;this.tgtDiv=zb;this.tgtDivChild=Ab;this.isExpanded=true;if(Bb===null){this.adWidth=this.getAdWidth(zb);}
else{this.adWidth=Bb;}
this.zv=this.getZoom(yb);var Mb=new MutationObserver(function(Nb){Nb.forEach(function(Ob){if(Ob.type==="attributes"&&Ob.attributeName==="style"){if(Cb.tgtDiv.style.top==="0px"){Cb.tgtDivChild.style.transformOrigin="50% 0%";Cb.tgtDivChild.style.webkitTransformOrigin="50% 0%";Cb.topExpand();}
else if(Cb.tgtDiv.style.bottom==="0px"){Cb.tgtDivChild.style.transformOrigin="50% 100%";Cb.tgtDivChild.style.webkitTransformOrigin="50% 100%";}}});});var Pb={attributes:true,attributeFilter:["style"]};Mb.observe(this.tgtDiv,Pb);}
AdstirSwipe.prototype.getAdWidth=function(Qb){var Rb=0;var Sb=0;var Tb=0;var Ub=Qb.getElementsByTagName('a');for(var i=0;i<Ub.length;i++){var Vb=parseFloat(Ub[i].style.width);if(Vb>Rb)Rb=Vb;}
var Wb=Qb.getElementsByTagName('iframe');for(var i=0;i<Wb.length;i++){Vb=parseFloat(Wb[i].style.width);if(Vb>Sb)Sb=Vb;}
var Xb=Qb.getElementsByTagName('img');for(var i=0;i<Xb.length;i++){Vb=parseFloat(Xb[i].style.width);if(Vb>Tb)Tb=Vb;}
var Yb=Rb;if(Yb<Sb)Yb=Sb;if(Yb<Tb)Yb=Tb;if(Yb<=320)Yb=320;return Yb;};AdstirSwipe.prototype.getZoom=function(Zb){var z=Zb.innerWidth/this.adWidth;if(Zb.innerHeight<Zb.innerWidth){var sh=screen.height,sw=screen.width;z*=(sh<sw?sh / sw : sw / sh);}
return z;};AdstirSwipe.generateLowerArrowIcon=function($b,ac){var bc=document.createElement("div");bc.id=AdstirSwipe.lowerArrowIconId;bc.setAttribute("style","position:absolute;width:"+$b+"px;height:0;top:0;display:block;pointer-events:none;");var cc=document.createElement("div");cc.setAttribute("style","width:25px;height:12.5px;position:absolute;top:0px;right:"+ac+"px;opacity:0.5;background-color:gray;");var dc=document.createElement("img");dc.src="https://js.ad-stir.com/network/lower_arrow.svg";cc.appendChild(dc);bc.appendChild(cc);return bc;};AdstirSwipe.generateUpperArrowIcon=function(ec,fc){var gc=document.createElement("div");gc.id=AdstirSwipe.upperArrowIconId;gc.setAttribute("style","position:absolute;width:"+ec+"px;height:0;top:0;display:block;pointer-events:none;");var hc=document.createElement("div");hc.setAttribute("style","width:25px;height:12.5px;position:absolute;top:0px;right:"+fc+"px;opacity:0.5;background-color:gray;");var ic=document.createElement("img");ic.src="https://js.ad-stir.com/network/upper_arrow.svg";hc.appendChild(ic);gc.appendChild(hc);return gc;};AdstirSwipe.generateCloseButton=function(jc,kc){var mc=document.createElement("div");mc.id=AdstirSwipe.closeButtonId;mc.setAttribute("style","position:absolute;width:"+jc+"px;height:0;top:0;display:none;");var nc=document.createElement("img");nc.src="https://js.ad-stir.com/network/close.png";nc.setAttribute("style","width:16px;height:16px;position:absolute;top:0px;");nc.style.right="-16px";mc.appendChild(nc);nc.addEventListener("click",kc,false);return mc;};AdstirSwipe.generateTextMsg=function(oc){var pc=document.createElement("div");var qc=AdstirSwipe.textMsgId;pc.id=qc;pc.setAttribute("style","position:absolute;width:"+oc+"px;height:0;top:0;display:none;");var rc=document.createElement("div");rc.setAttribute("style","height:16px;position:absolute;top:-16px;right:0;font-size:16px;line-height:16px;test-align:right;background-color:gray;");rc.innerHTML="スワイプで拡大";pc.appendChild(rc);return pc;};AdstirSwipe.closeButtonId="adstir_swipe_ov_close_btn";AdstirSwipe.lowerArrowIconId="adstir_swipe_ov_lower_arrow_icon";AdstirSwipe.upperArrowIconId="adstir_swipe_ov_upper_arrow_icon";AdstirSwipe.textMsgId="adstir_swipe_ov_text_message";return AdstirSwipe;}());var MakeNativeBannerElem=(function(sc){__extends(MakeNativeBannerElem,sc);function MakeNativeBannerElem(tc,uc){var vc=sc.call(this)||this;vc.init=function(){var wc=window;vc.ifid="AdstirIF"+Math.round(Math.random()*10000000000)+"A"+Math.round(Math.random()*10000000000);if(!(vc.adtag.crtv instanceof Array)){vc.adtag.crtv=[vc.adtag.crtv];}
vc.createNativeHtml=vc.makeNativeBannerElemCallback();return vc;};vc.makeElem=function(){var xc=[];for(var _i=0,_a=Object.keys(vc.adtag.crtv);_i<_a.length;_i++){var yc=_a[_i];vc.adtag.crtv[yc].optout=(vc.adtag.crtv[yc].optout!=null&&vc.adtag.crtv[yc].optout!==""?""+vc.adtag.crtv[yc].optout:"https://ad-stir.com/sp/optout.html");xc.push({advertiser:vc.adtag.crtv[yc].adv,cl:vc.adtag.crtv[yc].cl,cta:vc.adtag.crtv[yc].cta,description:vc.adtag.crtv[yc].desc,ext_cl_js:vc.adtag.crtv[yc].ext_cl_js,ext_h:vc.adtag.crtv[yc].ext_h,ext_imp_js:vc.adtag.crtv[yc].ext_imp_js,icon:vc.adtag.crtv[yc].icon,image:vc.adtag.crtv[yc].img,imp:vc.adtag.crtv[yc].imp,ivw:vc.adtag.crtv[yc].ivw,jsv:vc.adtag.crtv[yc].jsv,landingPageUrl:vc.adtag.crtv[yc].lp,optoutUrl:vc.adtag.crtv[yc].optout,rating:vc.adtag.crtv[yc].rate,title:vc.adtag.crtv[yc].title});}
if(vc.adtag.crtv){vc.adtag.html=vc.createNativeHtml(xc);}
else if(vc.adtag.html){var zc="adstir_native_html_callback_"+Math.round(Math.random()*10000000000);vc.adtag.html=vc.adtag.html.replace(/<<<NATIVE_HTML_CALLBACK>>>/g,zc);if(vc.options.native_html){vc.options.native_html="<style>body { margin: 0; }</style>"+vc.options.native_html;vc.adtag.html=vc.adtag.html.replace(/<<<NATIVE_HTML_TEMPLATE>>>/g,"decodeURIComponent(\""+encodeURIComponent(vc.options.native_html)+"\")");vc.adtag.html=vc.adtag.html.replace(/<<<NATIVE_HTML_TEMPLATE_UNESC>>>/g,vc.options.native_html);}
if(vc.adtag.inview&&typeof vc.adtag.inview==='object'&&vc.adtag.inview.length>0){vc.makeInview(vc.adtag.inview);}}
vc.adtag.html=(vc.adtag.nntmpl_disp_w&&vc.adtag.nntmpl_disp_h)?"<iframe id=\""+vc.ifid+"\" srcdoc=\"<html/>\" allowtransparency=\"true\" scrolling=\"no\" style=\"height:"+vc.adtag.nntmpl_disp_h+";width:"+vc.adtag.nntmpl_disp_w+";border:none;vertical-align:bottom;\" frameborder=\"0\"></iframe><script>(function(){var doc = document.getElementById(\""+vc.ifid+"\").contentWindow.document;doc.open();doc.write(decodeURIComponent("+JSON.stringify(encodeURIComponent(vc.adtag.html))+"));doc.close();})();</script>":"<iframe id=\""+vc.ifid+"\" srcdoc=\"<html/>\" allowtransparency=\"true\" scrolling=\"no\" style=\"height:"+vc.adtag.h+"px;width:"+vc.adtag.w+"px;border:none;vertical-align:bottom;\" frameborder=\"0\"></iframe><script>(function(){var doc = document.getElementById(\""+vc.ifid+"\").contentWindow.document;doc.open();doc.write(decodeURIComponent("+JSON.stringify(encodeURIComponent(vc.adtag.html))+"));doc.close();})();</script>";return vc;};vc.adtag=tc;vc.options=uc;return vc;}
MakeNativeBannerElem.prototype.getIfid=function(){return this.ifid;};MakeNativeBannerElem.prototype.makeNativeBannerElemCallback=function(){var Ac=this;return function(Bc){var Cc=window;var Dc="<!DOCTYPE html><html><head><style>body { margin: 0; }</style></head><body>"+Ac.options.native_html;var Ec="<div style=\"display: block; line-height: 1; position: relative; margin: 0; padding: 0;\">\n<div style=\"display: block; line-height: 1; position: absolute; margin: 0; padding: 0; z-index: 1; LEFT_RIGHT_CSS \">\n<a style=\"display:none;line-height:1;margin:0;padding:0;position:static;width:16px;overflow:hidden;-webkit-transition:width 0.5s linear 0s;transition:width 0.5s linear 0s;direction:inherit;text-align:inherit;\" href=\"%%OPTOUT_URL%%\"><img style=\"height:16px;width:85px;position:static;\" src=\"https://js.ad-stir.com/optout/i2LEFT_RIGHT.png\"></a>\n<img onclick=\"(function(tg){var wat=tg.parentNode.getElementsByTagName('a')[0];wat.style.display='block';tg.style.display='none';setTimeout(function(){wat.style.width='85px';},100);setTimeout(function(){wat.style.width='16px';},6000);setTimeout(function(){tg.style.display='inline';wat.style.display='none';},6550);})(this);\" style=\"height:16px;width:16px;margin:0;padding:0;position:static;\" src=\"https://js.ad-stir.com/optout/i1.png\">\n</div>\n</div>\n";Dc=Ac.replaceTemplateText(Dc,Ec,Bc);var Fc=[];for(var i=0;i<Ac.loopCnt;i++){var Gc=Bc[i];if(Gc.ivw&&typeof Gc.ivw==='object'&&Gc.ivw.length>0&&!Ac.options.use_sdk_ivw){Fc=Fc.concat(Gc.ivw);}}
if(Fc){Ac.makeInview(Fc);}
Dc=Dc+'</body></html>';return Dc;};};MakeNativeBannerElem.prototype.makeInview=function(Hc){var Ic=this;var Jc=window;this.addEvent(Jc,"DOMContentLoaded",function(){var Kc=document.getElementById(Ic.ifid);if(Kc){if(Kc.contentWindow&&Kc.contentWindow.document&&Kc.contentWindow.document.readyState==="complete"){setTimeout(function(){AdstirIvw.measureVimp(Kc,function(){AdstirIvw.sendIvw(Hc);});},0);}
else{Ic.addEvent(Kc,"load",function(){AdstirIvw.measureVimp(Kc,function(){AdstirIvw.sendIvw(Hc);});});}
if(Ic.adtag.float===10039||Ic.adtag.float===10040){var Lc=window.parent;var Mc=Lc.document.getElementById("adstir_float");if(Mc){var Nc=Mc.parentNode;var Oc=new AdstirSwipe(Lc,Nc,Mc);if(Kc.contentDocument){Kc.contentDocument.addEventListener("touchstart",Oc.touchstartFunc);Kc.contentDocument.addEventListener("touchmove",Oc.touchmoveFunc,{passive:false});Kc.contentDocument.addEventListener("touchend",Oc.touchendFunc);}}}}});};return MakeNativeBannerElem;}(NativeBase));var AdstirSchain;(function(Pc){function isSupplyChain(Qc){if(typeof Qc!=="object"||Qc===null){return false;}
if(Qc.ver!=="1.0"){return false;}
if(Qc.complete!==1&&Qc.complete!==0){return false;}
if(!Array.isArray(Qc.nodes)){return false;}
return Qc.nodes.every(isSupplyChainNode);}
Pc.isSupplyChain=isSupplyChain;function isSupplyChainNode(Rc){if(typeof Rc!=="object"||Rc===null){return false;}
if(typeof Rc.asi!=="string"){return false;}
if(typeof Rc.sid!=="string"){return false;}
if(typeof Rc.rid!=="undefined"&&typeof Rc.rid!=="string"){return false;}
if(Rc.hp!==1){return false;}
if(typeof Rc.name!=="undefined"&&typeof Rc.name!=="string"){return false;}
if(typeof Rc.domain!=="undefined"&&typeof Rc.domain!=="string"){return false;}
if(typeof Rc.ext!=="undefined"&&(Rc.ext===null||typeof Rc.ext!=="object")){return false;}
return true;}
function serializeSchain(Sc){function escapeValue(Tc){var Uc=[];for(var _i=1;_i<arguments.length;_i++){Uc[_i-1]=arguments[_i];}
return Tc.reduce(function(Vc,Wc,i){var Xc=String(typeof Uc[i-1]!=="undefined"?Uc[i-1]:"");try{return Vc+fixedEncodeURIComponent(Xc)+Wc;}
catch(e){throw e;}},"");}
var Yc=Sc.nodes.map(function(n){return(_a=["",",",",",",",",",",",""],_a.raw=["",",",",",",",",",",",""],escapeValue(_a,n.asi,n.sid,n.hp,n.rid,n.name,n.domain));var _a;}).join("!");return Sc.ver+","+Sc.complete+"!"+Yc;}
Pc.serializeSchain=serializeSchain;function deserializeSchain(Zc){var _a=Zc.split("!"),verAndComplete=_a[0],serializedNodes=_a.slice(1);if(serializedNodes.length<1){throw new Error("no nodes found.");}
var _b=verAndComplete.split(",",2),ver=_b[0],_c=_b[1],rawComplete=_c===void 0?"":_c;if(ver!=="1.0"){throw new Error("unsupported ver: "+ver);}
var $c=parseInt(rawComplete);if($c!==1&&$c!==0){throw new Error("complete is neither 1 nor 0: "+rawComplete);}
var bd=serializedNodes.map(function(sn){try{return deserializeSchainNode(sn);}
catch(e){throw e;}});return{ver:ver,complete:$c,nodes:bd};}
Pc.deserializeSchain=deserializeSchain;function deserializeSchainNode(cd){var _a=cd.split(","),_b=_a[0],rawAsi=_b===void 0?"":_b,_c=_a[1],rawSid=_c===void 0?"":_c,_d=_a[2],rawHp=_d===void 0?"":_d,_e=_a[3],rawRid=_e===void 0?"":_e,_f=_a[4],rawName=_f===void 0?"":_f,_g=_a[5],rawDomain=_g===void 0?"":_g;if(rawAsi===""||rawSid===""||rawHp===""){throw new Error("missing required node parameter");}
var hp=parseInt(rawHp);if(hp!==1){throw new Error("node.hp is not 1: "+rawHp);}
var _h=[rawAsi,rawSid,rawRid,rawName,rawDomain].map(function(s){try{return decodeURIComponent(s);}
catch(e){throw e;}}),asi=_h[0],sid=_h[1],rid=_h[2],name=_h[3],domain=_h[4];return __assign({asi:asi,sid:sid,hp:hp},dropEmptyStringProperties({rid:rid,name:name,domain:domain}));}
function dropEmptyStringProperties(o){var dd=["rid","name","domain"];var fd={};return dd.reduce(function(gd,hd){var v=o[hd];if(v!==""){gd[hd]=v;}
return gd;},fd);}
function fixedEncodeURIComponent(jd){try{return encodeURIComponent(jd).replace(/[!'()*]/g,function(c){return "%"+c.charCodeAt(0).toString(16);});}
catch(e){throw e;}}})(AdstirSchain||(AdstirSchain={}));var AdstirNext=(function(){function AdstirNext(kd){var ld=this;this.timeout=10000;this.inview_recursive_check_flag=false;this.URL={adtag:"//ad.ad-stir.com/ad",float:"//js.ad-stir.com/js/adstir_float_%%NUMBER%%.js?ver=6",ileffect:"//js.ad-stir.com/js/adstir_inline_effect_%%NUMBER%%.js",magnify:"//js.ad-stir.com/js/adstir_magnify.js",nativeTemplate:"//cdnn.ad-stir.com/native/template/",nativeNetworkTemplate:"//cdnn.ad-stir.com/network/template/",secureFrameHtml:"//tpf.adstirservice.com/secureframe/v1/container.html",optoutIframe:"//js.ad-stir.com/js/load_adstir_optout.html",topicsIframe:"//js.ad-stir.com/js/tpcs.html",vp:"//js.ad-stir.com/js/vp/"};this.is_storage_available=null;this.uach_key="adstir_uach";var md=window;var nd=void 0;if(parseFloat(kd.ver)>=5.0){}
else if(parseFloat(kd.ver)>=4.0){kd.center=true;}
else if(parseFloat(kd.ver)>=3.0){kd.center=true;}
else{return;}
this.tid="AdstirTID"+Math.round(Math.random()*10000000000)+"A"+Math.round(Math.random()*10000000000);if(kd.type===nd){kd.type="html";}
if(navigator.userAgentData&&typeof navigator.userAgentData.getHighEntropyValues==="function"&&md.adstir_sua==null){var od=function(pd,qd){return{brand:pd,version:qd.split(".")};};var rd=function(sd){return{browsers:sd.fullVersionList.map(function(_a){var td=_a.brand,version=_a.version;return od(td,version);}),platform:od(sd.platform,sd.platformVersion),mobile:sd.mobile?1:0,architecture:sd.architecture,bitness:sd.bitness,model:sd.model,source:2};};var ud=["model","mobile","bitness","platform","platformVersion","fullVersionList","architecture",];var vd=function(wd){return ud.reduce(function(xd,yd){return __assign({},xd,(_a={},_a[yd]=wd[yd],_a));var _a;},{});};try{if(this.isStorageAvailable()){var zd=window.localStorage.getItem(this.uach_key);if(zd!=null){md.adstir_sua=rd(vd(JSON.parse(zd)));}}}
catch(e){}
navigator.userAgentData.getHighEntropyValues(ud).then(function(Ad){var Bd=vd(Ad);md.adstir_sua=rd(Bd);if(ld.isStorageAvailable()){window.localStorage.setItem(ld.uach_key,JSON.stringify(Ad));}})["catch"](function(e){console.error(e);});}
kd.org_type=kd.type;if(kd.type==="side"){if(window.top!=window.self){kd.org_type="html";}
kd.type="html";}
if(kd.type==="interstitial"){var ua=navigator.userAgent;if(/Android 2/.test(ua))return;if(kd.frequency!=nd&&kd.frequency<Math.random())return;}
if(kd.type==="interstitialpc"){var ua=navigator.userAgent;if(!(ua.indexOf('iPhone')>0||ua.indexOf('iPad')>0||ua.indexOf('Android')>0))return;if(!(/iPhone OS ([5-9]|10)/.test(ua)||/iPad; CPU OS ([5-9]|10)/.test(ua)||/Android ([4-9])/.test(ua)))return;var iw=window.innerWidth;var ih=window.innerHeight;var zv=((iw / 350) > (ih / 300)?(ih / 300) : (iw / 350));if(zv<1)return;if(kd.frequency!=nd&&kd.frequency<Math.random())return;}
if(kd.reload_parameter!==nd&&typeof kd.reload_parameter==='string'){var _a=kd.reload_parameter.split("!"),reload_parameter=_a[0],delete_log_network=_a[1];var Cd=reload_parameter.split("|");var Dd=Cd[0];var Ed=Cd[1];var Fd=Cd[2];var Gd=Dd.split(",");if(Fd!==nd){kd.force_group=Fd;}
kd.exclude_network=Cd[0];if(delete_log_network!=null){kd.delete_log_network=delete_log_network;}
else{kd.delete_log_network=Ed+','+Gd[Gd.length-1];}}
if(kd.type==="native"){this.URL.adtag="//ad.ad-stir.com/nad";}
if(kd.type==="recommend"){kd.type="html";this.URL.adtag="//ad.ad-stir.com/rad";}
if(kd.type==="video"){var ua=navigator.userAgent;if(!(ua.indexOf('iPhone')>0||ua.indexOf('iPad')>0||ua.indexOf('iPod')>0||ua.indexOf('Android')>0))return;if(kd.floating==true&&!(window.top==window.self&&kd.iframe==nd)){return;}
if(!kd.floating&&!(window.top==window.self&&kd.iframe==nd)){if(!(((/iPhone OS (9|1[0-9])/.test(ua)||/iPad; CPU OS (9|1[0-9])/.test(ua))&&/Safari\//.test(ua))||parseInt(ua.slice(ua.indexOf('Chrome/')+7,ua.indexOf('Chrome/')+10))>=51)){return;}}
this.URL.adtag="//ad.ad-stir.com/vad";kd.type="html";}
if(kd.type==="wipe"){if(!(window.top==window.self)){return;}
if(md.adstir_wipead_e||document.getElementById("adstir_wipead")!=null){return;}
this.URL.adtag="//ad.ad-stir.com/wad";if(kd.frequency!=nd&&kd.frequency<=Math.random())return;var Hd=function(Id){window.removeEventListener("touchstart",Hd);if(!kd.wipead_vars)kd.wipead_vars={};var Jd=Id.changedTouches[0];kd.wipead_vars['touchPosition']=Jd.pageX;var Kd=document.getElementById("adstir_wipead");if(Kd!=null){var Ld=JSON.stringify(kd.wipead_vars);Kd.setAttribute("data-set-wipead",Ld);}};window.addEventListener("touchstart",Hd,{passive:false});kd.type="html";kd.floating=true;}
if(kd.debug!==nd){if(kd.debug.url!==nd){for(var Md in kd.debug.url)this.URL[Md]=kd.debug.url[Md];}}
if(typeof document.browsingTopics=="function"&&md.adstir_topics==null){try{if(this.isStorageAvailable()){var Nd=window.localStorage.getItem("adstir_topics");if(Nd!=null){md.adstir_topics=JSON.parse(Nd);}}}
catch(e){}
var Od=new URL("https:"+this.URL.topicsIframe);var Pd=Math.random().toString(32).substring(2);var Qd=function(Rd){if(Rd.origin===Od.origin&&Rd.data.id==Pd){window.removeEventListener("message",Qd);var Sd=Rd.data.v;if(Array.isArray(Sd)&&Sd.length>0){md.adstir_topics=Sd;if(ld.isStorageAvailable()){try{window.localStorage.setItem("adstir_topics",JSON.stringify(Sd));}
catch(e){console.error(e);}}}}};window.addEventListener("message",Qd);var Td=document.createElement("iframe");Td.src=Od.href;Td.style.display="none";Td.onload=function(){if(Td.contentWindow){Td.contentWindow.postMessage({id:Pd},Od.origin);}};if(document.body!=null){document.body.appendChild(Td);}
else{document.addEventListener("DOMContentLoaded",function(){if(document.body!=null){document.body.appendChild(Td);}});}}
var Ud=this.getLocation();var Vd="https:";kd.secure=true;this.URL.adtag="https:"+this.URL.adtag;this.URL.float=Vd+this.URL.float;this.URL.magnify=Vd+this.URL.magnify;this.URL.ileffect=Vd+this.URL.ileffect;this.URL.secureFrameHtml=Vd+this.URL.secureFrameHtml;if(kd.origin===nd&&Ud!==nd){var Wd=Ud.href;if(Wd.length>500)Wd=Wd.substring(0,500);if(Wd.substring(0,4)==='http')kd.origin=Wd;}
var Xd=false;this.addEvent(md,"load",function(){Xd=true;});var Yd;if(kd.iframe||kd.async){Yd=this.makeAsync();}
else{Yd=this.makeSync();}
if(kd.type==="html"){Yd.prewrite(kd);}
Yd.connect(kd,this.URL.adtag,this.getParam(kd),function(Zd){if(Zd!==nd&&(Zd.html!==""||Zd.crtv!==nd||(Zd.med&&ld.arrayContains(kd.supported_functions,"awakeNative")))){if(typeof Zd.html=="string"){Zd.html=Zd.html.replace(/%%TID%%/g,ld.tid);Zd.html=Zd.html.replace(/%%NCK%%/g,kd.floating?"1":"0");}
var $d=Zd.rattr;if($d!=null){var ae=$d.window;if(ae!=null){kd.flags={};for(var Md in ae){kd.flags[Md]=Number(ae[Md]);if(isNaN(kd.flags[Md]))kd.flags[Md]=0;}}
var be=$d.adstir_vars;if(be!=null){var ce=be.line_vars;if(ce){if(!kd.line_vars)kd.line_vars={};for(var Md in ce){kd.line_vars[Md]=ce[Md];}}
var de=be.down_vars;if(de!=null){if(!kd.down_vars)kd.down_vars={};for(var Md in de){kd.down_vars[Md]=de[Md];}}
var ee=be.expand_vars;if(ee!=null){if(!kd.expand_vars)kd.expand_vars={};for(var Md in ee){kd.expand_vars[Md]=ee[Md];}}
var fe=be.close_vars;if(fe!=null){if(!kd.close_vars)kd.close_vars={};for(var Md in fe){kd.close_vars[Md]=fe[Md];}}
var ge=be.shake_vars;if(ge!=null){if(!kd.shake_vars)kd.shake_vars={};for(var Md in ge){kd.shake_vars[Md]=ge[Md];}}
var he=be.commons;if(he!=null){if(!kd.commons)kd.commons={};for(var Md in he){kd.commons[Md]=he[Md];}}
var ie=be.instl_vars;if(ie!=null){if(!kd.instl_vars)kd.instl_vars={};for(var Md in ie){kd.instl_vars[Md]=ie[Md];}}
var je=be.wipead_vars;if(je!=null){if(!kd.wipead_vars)kd.wipead_vars={};for(var ke in je){kd.wipead_vars[ke]=je[ke];}}
var le=be.vp_vars;if(le!=null){kd.vp_vars=__assign({},(kd.vp_vars||{}),le);}}}
if(kd.debug&&Zd.adtype!=="iframe"&&Zd.html)Zd.html='<span class="debug">'+Zd.id+'</span>'+Zd.html;if(kd.use_sdk_ivw&&Zd.inview&&typeof Zd.inview==='object'&&Zd.inview.length>0){var me;var ne=function(e){var oe=e.ratio;if(oe>=0.5){if(me)return;me=setTimeout(function(){for(var i=0;i<Zd.inview.length;i++){var pe=document.createElement("div");pe.setAttribute("style","width:0px !important");pe.setAttribute("style","height:0px !important");pe.style.background="url("+Zd.inview[i]+")";document.body.insertBefore(pe,document.body.firstChild);};window.removeEventListener('changeInViewRatio',ne);},1000);}
else{if(me)clearTimeout(me);me=nd;}};window.addEventListener('changeInViewRatio',ne);}
if(kd.type==="html"){if(kd.org_type==="side"){Zd.magnify=0;Zd.ileffect=null;}
if(Zd.adtype==="vast"){ld.processVASTRes(Zd,kd);}
if(Zd.adtype==="native_banner"){var qe=new MakeNativeBannerElem(Zd,kd);qe.init().makeElem();var re=qe.getIfid();if(Zd.afd!==nd&&typeof Zd.afd==='object'&&Zd.afd.length>0){ld.attachAfdClickEvent(Zd.afd,re,true);}}
if(Zd.adtype=="iframe"){var se="AdstirIF"+Math.round(Math.random()*10000000000)+"A"+Math.round(Math.random()*10000000000);var te=document.createElement("iframe");var ve=Zd.html.split("<!-- %%ADSTIRCONTENTSEP%% -->");if(ve.length===3){var we={};try{we=JSON.parse(ve[1]);}
catch(e){}
if(Array.isArray(we.ads)){var xe="adstirIFREF"+Math.round(Math.random()*10000000000)+"A"+Math.round(Math.random()*10000000000);var ye="<script>function adstirDisplayNextAd(){ window.parent."+xe+"(); }</script>";var ze=function(Ae){return Ae.replace("<!-- %%ADSTIR_VARS%% -->","<script>var adstir_vars = JSON.parse(decodeURIComponent(\""+encodeURIComponent(JSON.stringify(kd))+"\"));</script>").replace("<!-- %%NEXT_AD_FUNC%% -->",ye);};var Be=we.ads;window[xe]=function(){if(Be.length>0){var ad=ze(Be.shift().html);var i=document.querySelector("iframe#"+se);if(i===null){return;}
var Ce=i.contentDocument;Ce.open();Ce.write(ad);Ce.close();}};Zd.html=ze(Be.shift().html).replace("<!-- %%BEACONS_BEFORE%% -->",ve[0]).replace("<!-- %%BEACONS_AFTER%% -->",ve[2]);}}
if(Zd.secure_frame&&te.sandbox instanceof DOMTokenList){Zd.html+="<script>(function(){"+"var afd = "+JSON.stringify(Zd.afd)+";"+"window.document.body.addEventListener('click', () => {"+"for (var i = 0; i < afd.length; i++) {"+"var script = document.createElement('script');"+"script.text = afd[i];"+"window.document.body.appendChild(script);"+"}"+"}, false);"+"})();</script>";var De=JSON.stringify(ld.URL.secureFrameHtml+"#"+encodeURIComponent(Zd.html));Zd.html="<iframe sandbox=\"allow-forms allow-popups allow-scripts allow-top-navigation-by-user-activation allow-popups-to-escape-sandbox allow-same-origin\" id=\""+se+"\" allowtransparency=\"true\" scrolling=\"no\" style=\"height:"+Zd.h+"px;width:"+Zd.w+"px;border:none;vertical-align:bottom;\" frameborder=\"0\" src="+De+"></iframe>";}
else{if(Zd.friendly_iframe)Zd.html='<script>inDapIF=true;</script>'+Zd.html;Zd.html="<iframe id=\""+se+"\" srcdoc=\"<html/>\" allowtransparency=\"true\" scrolling=\"no\" style=\"height:"+Zd.h+"px;width:"+Zd.w+"px;border:none;vertical-align:bottom;\" frameborder=\"0\"></iframe><script>(function(){var doc = document.getElementById(\""+se+"\").contentWindow.document;doc.open();doc.write(decodeURIComponent("+JSON.stringify(encodeURIComponent("<!doctype html><html><head></head><body>"+Zd.html+"</body></html>"))+"));doc.close();})();</script>";if(Zd.afd!==nd&&typeof Zd.afd==='object'&&Zd.afd.length>0){ld.attachAfdClickEvent(Zd.afd,se,true);}}
if(Zd.float===10039||Zd.float===10040){ld.addEvent(md,"load",function(){var Ee=document.getElementById("adstir_float");if(Ee){var Fe=Ee.parentNode;var Ge=new AdstirSwipe(window,Fe,Ee);var He=document.getElementById(se);if(He.contentDocument){He.contentDocument.addEventListener("touchstart",Ge.touchstartFunc);He.contentDocument.addEventListener("touchmove",Ge.touchmoveFunc,{passive:false});He.contentDocument.addEventListener("touchend",Ge.touchendFunc);}}});}}
if(Zd.med&&ld.arrayContains(kd.supported_functions,"awakeNative")){var Ie=Zd.med;Ie.fallback=Zd.html;Zd.ck=false;ld.sendMessage("awakeNative",[ld.makeReload(Zd,kd),Ie]);}
else if(Zd.skadn&&ld.arrayContains(kd.supported_functions,"loadStore")){ld.sendMessage("loadStore",Zd.skadn);Yd.write(Zd,kd);}
else{Yd.write(Zd,kd);}}
if(kd.type==="interstitial"){var Je=ld.getInstlCloseBtnParameters(Zd,kd);if(Zd.adtype==="vast"){ld.processVASTRes(Zd,kd);}
if(Zd.adtype==="native_banner"){var qe=new MakeNativeBannerElem(Zd,kd);qe.init().makeElem();var Ke=qe.getIfid();if(Zd.afd!==nd&&typeof Zd.afd==='object'&&Zd.afd.length>0){ld.attachAfdClickEvent(Zd.afd,Ke,true);}}
if(Zd.id===1126){Zd.magnify=0;kd.instl_vars.loadingIconDuration=-1;try{var Le=ld.getWindowParams();if(Le.screenWidth!==nd&&Le.screenHeight!==nd){Zd.w=Le.screenWidth;Zd.h=Le.screenHeight;}}
catch(e){}}
if(Zd.adtype=="iframe"){var se="AdstirIF"+Math.round(Math.random()*10000000000)+"A"+Math.round(Math.random()*10000000000);Zd.html="<iframe id=\""+se+"\" srcdoc=\"<html/>\" allowtransparency=\"true\" scrolling=\"no\" style=\"height:"+Zd.h+"px;width:"+Zd.w+"px;border:none;vertical-align:bottom;\" frameborder=\"0\"></iframe><script>(function(){var doc = document.getElementById(\""+se+"\").contentWindow.document;doc.open();doc.write(decodeURIComponent("+JSON.stringify(encodeURIComponent(Zd.html))+"));doc.close();})();</script>";if(Zd.afd!==nd&&typeof Zd.afd==='object'&&Zd.afd.length>0){ld.attachAfdClickEvent(Zd.afd,se,true);}}
var Me="adstir_web_inter";var Ne="adstir-instl-close-"+Math.round(Math.random()*10000000000)+"A"+Math.round(Math.random()*10000000000);md.adstir_instl_close_button_id=Ne;var Oe="adstir-instl-noscroll";var Pe=document.createElement("style");Pe.textContent="."+Oe+" { position: fixed; width: 100%; -webkit-overflow-scrolling: auto !important; }";document.head.appendChild(Pe);var Qe="adstir-instl-hide";var Re=document.createElement("style");Re.textContent="."+Qe+" { opacity:0 !important; }";document.head.appendChild(Re);var Se=function(){var Te=document.body;var Ue=document.getElementById(Ne);Te.classList.add(Oe);Ue.style.setProperty("pointer-events","auto","important");Ue.addEventListener("click",function(){Te.classList.remove(Oe);var Ve=document.getElementById(Me);Ve.style.display="none";if(Re.parentNode){Re.parentNode.removeChild(Re);}});};var We=(Zd.id===1087);var Xe=(Zd.w===300&&Zd.h===600);var Ye=(Zd.w===400&&Zd.h===600);var Ze=(Zd.w===300&&Zd.h===500);if(We||Xe||Ye||Ze){Zd.magnify=0;kd.center=false;if(We){Zd.ck=false;kd.js_check=false;}
else{var $e=document.createElement("style");$e.textContent=".adstir_web_inter__close-button-area__btn__img { --adstir-close-button-size: "+Je.buttonsize+"px; }";document.head.appendChild($e);if(Xe){var af=document.createElement("link");af.rel="stylesheet";af.href="https://js.ad-stir.com/network/instl/instl_300x600.css";document.head.appendChild(af);}
else if(Ye){var af=document.createElement("link");af.rel="stylesheet";af.href="https://js.ad-stir.com/network/instl/instl_400x600.css";document.head.appendChild(af);}
else if(Ze){var af=document.createElement("link");af.rel="stylesheet";af.href="https://js.ad-stir.com/network/instl/instl_300x500.css";document.head.appendChild(af);}}
document.write("<div id=\""+Me+"\">\n  <div class=\"adstir_web_inter__flex-wrapper\">\n    <div class=\"adstir_web_inter__flex-container\">\n      <div id=\"adstir_web_inter_close_button\" class=\"adstir_web_inter__close-button-area\" style=\"text-align:"+Je.textalign+"; max-width:"+Je.tmaxwidth+"px; width:100%;\">\n        <button id=\""+Ne+"\" class=\"adstir_web_inter__close-button-area__btn\">\n          <img class=\"adstir_web_inter__close-button-area__btn__img\" src=\"https://js.ad-stir.com/network/close_bright."+(ld.supportsSVG()?"svg":"png")+"\" alt=\"close\" />\n        </button>\n      </div>\n      <div class=\"adstir_web_inter__ad-area\">");Yd.write(Zd,kd);document.write("\n      </div>\n    </div>\n  </div>\n</div>");}
else{var bf=function(t){document.write(t);};bf("<div id=\""+Me+"\" style=\"z-index:2147483647;position:fixed;background-color:rgba(40,40,40,0.9);height:100%;top:0px;width:100%;left:0px;margin:0;padding:0;\">");bf('<div style="display:inline-block;width:0;height:100%;vertical-align:middle;"></div>');bf('<div style="position:relative;display:inline-block;width:100%;text-align:center;vertical-align:middle;">');bf('<div id="adstir_web_inter_close_button" style="position:absolute;z-index:1000;width:100%;max-width:'+Je.tmaxwidth+'px;height:'+Je.buttonsize+'px;text-align:'+Je.textalign+';left:'+Je.tside*-1+'px;right:'+Je.tside+'px;top:'+Je.ttop+'px;margin:0 auto;padding:0 0 0 '+Je.instlclosebuttonpx+'px;line-height:0;"><img style="width:'+Je.buttonsize+'px;height:'+Je.buttonsize+'px;" id="'+Ne+'" src="'+Je.timgsrc+'" /></div>');Yd.write(Zd,kd);bf('</div>');bf('</div>');}
Se();ld.InterstitialLastViewTime(Math.floor(Date.now()/1000));}
if(kd.type==="interstitialpc"){if(Zd.adtype=="iframe"){var se="AdstirIF"+Math.round(Math.random()*10000000000)+"A"+Math.round(Math.random()*10000000000);Zd.html="<iframe id=\""+se+"\" srcdoc=\"<html/>\" allowtransparency=\"true\" scrolling=\"no\" style=\"height:"+Zd.h+"px;width:"+Zd.w+"px;border:none;vertical-align:bottom;\" frameborder=\"0\"></iframe><script>(function(){var doc = document.getElementById(\""+se+"\").contentWindow.document;doc.open();doc.write(decodeURIComponent("+JSON.stringify(encodeURIComponent(Zd.html))+"));doc.close();})();</script>";if(Zd.afd!==nd&&typeof Zd.afd==='object'&&Zd.afd.length>0){ld.attachAfdClickEvent(Zd.afd,se,true);}}
var bf=function(t){document.write(t);};bf('<div id="adstir_web_inter" style="z-index:100000001;position:absolute;background-color:rgba(40,40,40,0.95);height:0;width:0;top:0px;left:0px;overflow:hidden;">');bf('<img id="adstir_web_interi" style="z-index:100000004;position:absolute;top:8%;right:0%;width:0;height:0;" onclick="document.getElementById(\'adstir_web_inter\').style.display=\'none\'" src="https://js.ad-stir.com/network/close.png" />');bf('<div style="display:inline-block;width:0;height:100%;vertical-align:middle;"></div>');bf('<div style="z-index:100000003;display:inline-block;width:100%;text-align:center;vertical-align:middle;"><div id="adstir_web_inter3" style="display:inline-block;box-sizing:border-box;line-height:100%;text-align:left;overflow:hidden;"><div id="adstir_web_inter4" style="display:inline-block;">');Yd.write(Zd,kd);bf('</div></div>');bf('</div>');bf("<script>\n(function(){\nvar aE = function(target,event,callback){\n\tif(target.addEventListener){\n\t\ttarget.addEventListener(event,callback,false);\n\t}else if(target.attachEvent){\n\t\ttarget.attachEvent(\"on\" + event,callback);\n\t}\n};\nvar stop = function(){return window.scrollY || document.documentElement.scrollTop || document.body.scrollTop};\nvar slef = function(){return window.scrollX || document.documentElement.scrollLeft || document.body.scrollLeft;};\nvar wi = document.getElementById(\"adstir_web_inter\");\nvar wii = document.getElementById(\"adstir_web_interi\");\nvar wi3 = document.getElementById(\"adstir_web_inter3\");\nvar wi4 = document.getElementById(\"adstir_web_inter4\");\nvar magnify = function(){\n\tvar iw = window.innerWidth;\n\tvar ih = window.innerHeight;\n\tvar zv = ((iw/350)>(ih/300)?(ih/300):(iw/350));\n\twi.style.top=stop()+\"px\";\n\twi.style.left=slef()+\"px\";\n\twi.style.height=(ih*1.15)+\"px\";\n\twi.style.width=iw+\"px\";\n\twii.style.width=zv*50+\"px\";\n\twii.style.height=zv*50+\"px\";\n\twi4.style.transformOrigin = \"0% 0%\";\n\twi4.style.webkitTransformOrigin = \"0% 0%\";\n\twi4.style.mozTransformOrigin = \"0% 0%\";\n\twi4.style.transform = \"scale(\" + zv + \")\";\n\twi4.style.webkitTransform = \"scale(\" + zv + \")\";\n\twi4.style.mozTransform = \"scale(\" + zv + \")\";\n\tvar checkTransform = (function (){\n\tvar css = getComputedStyle(wi4, \"\");\n\tvar list = [css.transform,css.webkitTransform,css.WebkitTransform,css.mozTransform,css.MozTransform];\n\tfor (var i = 0; i < list.length ; i++){\n\tif(list[i] && list[i].indexOf(\"scale\") >= 0) return true;\n\tif(list[i] && list[i].indexOf(\"matrix\") >= 0) return true;\n\t}\n\treturn false;\n\t})();\n\n\twi3.style.height = zv * 250 + \"px\";\n\twi3.style.width = zv * 300 + \"px\";\n}\nvar stp = function(e){if(document.getElementById('adstir_web_inter').style.display!=='none'){if(e.preventDefault)e.preventDefault();e.returnValue=false;}};\ndocument.getElementById('adstir_web_inter').style.display='block';\nmagnify();\naE(window, \"scroll\", magnify);\naE(window, \"resize\", magnify);\naE(window, \"orientationchange\", magnify);\naE(wi, \"DOMMouseScroll\", stp);\naE(wi, \"mousewheel\", stp);\naE(wi, \"touchmove\", stp);\naE(wi, \"gesturestart\", stp);\n})()\n</script>\n");}
if(kd.type==="native"){var cf=new MakeNativeElem(Zd,kd,ld.inview_recursive_check_flag);cf.init().makeElem();}
var df=kd.fill_callback;if(typeof df==="function"){df();}
if(kd.floating)Yd.overlay(Zd,kd);var ef=function(){if(kd.floating_pc)Yd.overlayPC(Zd,kd);if(!kd.floating)Yd.loadedEnd(Zd,kd);};if(Xd){ef();}
else{ld.addEvent(md,"load",ef);}
ld.appendBypassAoneSyncTag();}
else{var ff=kd.nofill_callback;if(typeof ff==="function"){ff();}}});}
AdstirNext.prototype.sendMessage=function(gf,hf){var jf=window;if(jf.adstir_mraid_connector){jf.adstir_mraid_connector.sendMessage(gf,hf);}};AdstirNext.prototype.getLocation=function(){var kf=window;var lf=undefined;try{var mf=kf;while(mf.parent&&mf.parent!==mf){mf=mf.parent;if(mf.location.protocol){lf=mf.location;}
else{break;}}}
catch(e){}
if(lf===undefined)lf=kf.location;return lf;};AdstirNext.prototype.getLocale=function(){var nf=void 0;var of="en";var pf=window.navigator;if(pf.userLanguage!==nf){of=pf.userLanguage;}
else if(pf.browserLanguage!==nf){of=pf.browserLanguage;}
else if(pf.systemLanguage!==nf){of=pf.systemLanguage;}
else if(pf.language!==nf){var qf=pf.language;if(qf==="en"){var rf=(function(){var ua=pf.userAgent;if(ua===nf)return null;var sf=ua.indexOf("(");var tf=ua.indexOf(")");if(sf===-1||tf===-1)return null;var uf=ua.substring(sf+1,tf).split(";");if(uf.length<4)return null;var vf=uf[3].replace(/(^\s+)|(\s+$)/g,"");if(vf.length===2||(vf.length===5&&vf.charAt(2)==="-")){return vf;}
return null;})();of=(rf||qf);}
else{of=qf;}}
if(of.length===2){return of;}
else if(of.length===5&&of.charAt(2)==="-"){return of.substring(0,2);}
else{return of;}};AdstirNext.prototype.getOrigin=function(){var wf;var xf=true;try{if(window.top.location.href!==undefined){wf=window.top.location.href;}
else{var yf=window.top;var zf=window;while(zf.parent){if(zf.parent.location.href!==undefined){zf=zf.parent;continue;}
break;}
wf=zf.document.referrer;if(zf.parent!=yf){xf=false;}}}
catch(e1){var yf=window.top;var zf=window;try{while(zf.parent){var Af=zf.parent.location.href;zf=zf.parent;}}
catch(e){wf=zf.document.referrer;if(zf.parent!=yf){xf=false;}}}
if(!wf){var Bf=window.location.ancestorOrigins;if(Bf&&Bf.length>0){wf=Bf[Bf.length-1];}}
return{url:wf,isTop:xf};};AdstirNext.prototype.getReferrer=function(){var Cf=void 0;try{if(window!==window.parent){if(window.$sf!==Cf){return Cf;}
else{return window.top.document.referrer;}}
else{return document.referrer;}}
catch(e){return Cf;}};AdstirNext.prototype.getParam=function(Df){var Ef=void 0;var Ff={};Ff.app_id=Df.app_id;Ff.ad_spot_no=Df.ad_spot;Ff.locale=(Df.debug&&Df.debug.locale&&this.getLocale()=="en"?Df.debug.locale:this.getLocale());Ff.ut=+(new Date())+Math.round(Math.random()*100);Ff.topframe=((window.top==window.self&&Df.iframe==Ef)?"1":"0");Ff.platform=Df.platform;if(Df.platform!==Ef)Ff.platform=Df.platform;if(Df.uid!==Ef)Ff.uid=Df.uid;if(Df.id!==Ef)Ff.id=Df.id;if(Df.origin!==Ef)Ff.origin=Df.origin;if(Df.interval!==Ef)Ff.interval=Df.interval;if(Df.click_url!==Ef)Ff.click_url=Df.click_url;if(Df.floating)Ff.floating="1";if(Df.iframe!==Ef)Ff.iframe="1";if(Df.disable_mf===true)Ff.disable_mf="1";if(Df.async!==Ef&&Df.async)Ff.async="1";if(Df.sdk_vendor!==Ef&&Df.sdk_version!==Ef){Ff.sdk_vendor=Df.sdk_vendor;Ff.sdk_version=Df.sdk_version;if(Df.mraid_type!==Ef){Ff.mraid_type=Df.mraid_type;Ff.mraid_sdk_vendor=Df.sdk_vendor;Ff.mraid_sdk_version=Df.sdk_version;}}
if(Df.force_group!==Ef)Ff.force_group=Df.force_group;if(Df.force_network!==Ef)Ff.force_network=Df.force_network;if(Df.exclude_network!==Ef)Ff.exclude_network=Df.exclude_network;if(Df.delete_log_network!==Ef)Ff.delete_log_network=Df.delete_log_network;if(Df.video_support!==Ef)Ff.video_support=Df.video_support;if(Df.ifv!==Ef)Ff.ifv=Df.ifv;try{if(window.adstir_sua!==void 0)Ff.sua=JSON.stringify(window.adstir_sua);}
catch(e){}
try{var Gf=window.adstir_topics;if(Array.isArray(Gf)&&Gf.length>0){var Hf=function(If){return If.map(function(Jf){return{topic:Jf.topic,version:Jf.version};});};Ff.tpcs=JSON.stringify(Hf(Gf));}}
catch(e){}
try{var Kf=window.top.location.href;}
catch(e){Ff.cof="1";}
if(Df.use_sdk_ivw)Ff.use_sdk_ivw="1";if(Df.use_api_only)Ff.use_api_only="1";if(Df.force_layer==="tl"&&Df.force_group===Ef)Ff.force_group=1;if(Df.force_layer==="ul"&&Df.exclude_network===Ef)Ff.exclude_network="27,61";if(Df.instl)Ff.instl="1";if(Df.fs)Ff.fs="1";if(Df.orientation!==Ef)Ff.orientation=Df.orientation;if(Df.type==="interstitial"){Ff.pos=1;}
if(Df.floating===true){Ff.pos=1;}
if(Df.initiator==="hbov"){var Lf=false;try{if(window.top.location.href){Lf=true;}}
catch(e){}
if(Lf){Ff.pos=1;Ff.topframe=1;}}
if(Df.type==="native"){if(typeof(Df.native_callback)==="function")Ff.nacb="1";else if(typeof(Df.native_html)==="string")Ff.naht="1";else Ff.nocb="1";}
if(Df.native_vars!==Ef){var Mf=function(Nf,Of){return(Nf?Nf:Of);};var nv=Df.native_vars;if(nv.sponsoredText!==Ef)Ff.native_pr_text=nv.sponsoredText;if(nv.title!==Ef)Ff.native_title_l=Mf(nv.title.length,10000);if(nv.description!==Ef)Ff.native_desc_l=Mf(nv.description.length,10000);if(nv.cta!==Ef)Ff.native_cta_l=Mf(nv.cta.length,10000);if(nv.image!==Ef&&nv.image===true)Ff.native_img=1;if(nv.icon!==Ef&&nv.icon===true)Ff.native_icon=1;if(nv.rating!==Ef&&nv.rating===true)Ff.native_rate=1;if(nv.landingPageUrl!==Ef&&nv.landingPageUrl===true)Ff.native_lp=1;}
if(Df.secure)Ff.secure="1";try{var Pf=this.getWindowParams();if(Pf.screenWidth!==Ef)Ff.sw=Pf.screenWidth;if(Pf.screenHeight!==Ef)Ff.sh=Pf.screenHeight;if(Pf.pixelRatio!==Ef)Ff.dpr=Pf.pixelRatio;}
catch(e){}
if((Df.dnt!==Ef&&Df.dnt)||(Df.lmt!==Ef&&Df.lmt))Ff.lmt="1";if(Df.att_as!==Ef)Ff.att_as=Df.att_as;var Qf=(Df.floating&&this.isLandscape())?"1":"0";if(Df.org_type==="video"){if(window.top!=window.self){Qf="1";}}
Ff.novideo=Qf;if(Df.platform!=="webview"){var Rf=this.getOrigin();Ff.topurl=Rf.isTop?1:0;Ff.origin=Rf.url;}
if(Df.page!==Ef){if(/https?:\/\/[\w/:%#\$&\?\(\)~\.=\+\-]+/.test(Df.page)){Ff.page=Df.page;}}
if(Df.sknid!==Ef){Ff.sknid=Df.sknid;if(Df.skversion!==Ef){Ff.skversion=Df.skversion;}}
var Sf=this.isStorageAvailable();var Tf=this.getAdstirMediaUid(Sf);if(Tf!==null){Ff.adstir_media_uid=Tf;}
var Uf=this.getHainaFrequency(Sf);if(Uf!==null){Ff.haina_fq=Uf;}
Ff.adstir_optout=this.getAdstirOptout(Sf);if(this.supportsVAST(Df)){Ff.c_vp=1;}
if(typeof Df.schain_serialized==="string"&&Df.schain_serialized!==""){try{var Vf=AdstirSchain.deserializeSchain(Df.schain_serialized);Ff.sco=AdstirSchain.serializeSchain(Vf);}
catch(e){if(Df.debug){console.error(e);}}}
else if(AdstirSchain.isSupplyChain(Df.schain)){try{Ff.sco=AdstirSchain.serializeSchain(Df.schain);}
catch(e){if(Df.debug){console.error(e);}}}
return Ff;};AdstirNext.prototype.makeSync=function(){var Wf=this;var Xf=window;var Yf="AdstirCB"+Math.round(Math.random()*10000000000)+"A"+Math.round(Math.random()*10000000000);var Zf=false;var $f=0;var ag=[];var bg="adstir-ad-slot-"+(Math.floor(Math.random()*100000000)).toString()+'A'+(Math.floor(Math.random()*100000000)).toString();var cg=function(dg,eg,fg){var gg=Array.isArray(dg.ileffect)&&dg.ileffect.some(function(hg){return hg=="ifb"||hg=="ifbm";})&&(window.top!=window.self);if(eg.type==="html"&&(dg.adtype==="html"||dg.adtype==="iframe"||dg.adtype==="vast")&&(dg.w===400&&dg.h===600&&!gg)&&window.innerWidth<dg.w){dg.magnify=1;}
else if(gg){dg.magnify=0;}
var ig=eg.center;var jg=dg.magnify>=1||eg.force_magnify;var kg=Array.isArray(dg.ileffect)&&dg.ileffect.some(function(lg){return lg=="close";});if(kg&&(window.top!=window.self)){jg=false;}
var ig=eg.center||jg;var mg=(dg.ileffect&&typeof(dg.ileffect.length)==="number"?true:false);var ng=(dg.afd!==undefined&&typeof dg.afd==='object'&&dg.afd.length>0);if(jg){var t='';t=t+'<div style="text-align:center;"><div class="adstir_magnify" style="box-sizing:border-box;line-height:100%;text-align:left;"><div style="display:inline-block;">';t=t+fg;t=t+'</div></div></div>';Wf.addJS(Wf.URL.magnify);fg=t;}
if(typeof dg.rdr==="string"&&dg.rdr.indexOf("/rdr")>=0){var og=dg.rdr.replace("/rdr","/ivw");dg.render=Array.isArray(dg.render)?dg.render:[];dg.inview=Array.isArray(dg.inview)?dg.inview:[];dg.render.push(dg.rdr);dg.inview.push(og);}
if(dg.render&&typeof dg.render==='object'&&dg.render.length>0){for(var i=0;i<dg.render.length;i++){fg+='<div style="width:0px !important; height:0px !important; background:url('+dg.render[i]+')"></div>';};}
if(dg.adtype!=="native_banner"&&dg.inview&&typeof dg.inview==='object'&&dg.inview.length>0){var pg="adstir_inview_"+(Math.floor(Math.random()*100000000)).toString()+'A'+(Math.floor(Math.random()*100000000)).toString();if(ng&&dg.adtype&&dg.adtype!=="iframe"){fg='<div id="'+pg+'" '+'class="'+bg+'" '+(jg?'':'style="display:inline-block;vertical-align:bottom;"')+'>'+fg+'</div>';}
else{fg='<div id="'+pg+'" '+(jg?'':'style="display:inline-block;vertical-align:bottom;"')+'>'+fg+'</div>';}
if(!eg.use_sdk_ivw){Wf.addEvent(Xf,"DOMContentLoaded",function(){if(eg.instl_vars&&eg.instl_vars.loadingIconDuration&&parseInt(eg.instl_vars.loadingIconDuration)>=100&&parseInt(eg.instl_vars.loadingIconDuration)<=1000){var qg=document.getElementById('adstir_instl_loading_container');var rg=new MutationObserver(function(sg,ob){sg.forEach(function(tg){if(tg.type==="attributes"&&tg.attributeName==="style"){var ug=document.getElementById(pg);if(ug){AdstirIvw.measureVimp(ug,function(){AdstirIvw.sendIvw(dg.inview);});}}});ob.disconnect();});var vg={attributes:true,attributeFilter:["style"]};if(qg){rg.observe(qg,vg);}}
else{var wg=document.getElementById(pg);if(wg){AdstirIvw.measureVimp(wg,function(){AdstirIvw.sendIvw(dg.inview);});}}});}
if(ng&&dg.adtype&&dg.adtype!=="iframe"&&dg.adtype!=="native_banner"){Wf.attachAfdClickEvent(dg.afd,bg,false);}}
if(mg){var xg=dg.ileffect.indexOf("fadein");var yg=dg.ileffect.indexOf("scrollsticky");if(xg!==-1&&yg!==-1&&xg>yg){dg.ileffect[yg]="fadein";dg.ileffect[xg]="scrollsticky";}
for(var ei=0;ei<dg.ileffect.length;ei++){var zg=dg.ileffect[ei];var Ag="";if(dg.rattr&&dg.rattr.ileffect_param){Ag="AdstirILeffectParam"+Math.round(Math.random()*10000000000)+"A"+Math.round(Math.random()*10000000000);window[Ag]=dg.rattr.ileffect_param;}
var Bg="";if(zg==="wipead"||zg==="wipead2"){if(jg||dg.ileffect.length>1||Xf.adstir_wipead_e||document.getElementById("adstir_wipead")!=null){continue;}
Xf.adstir_wipead_e=true;Bg=' style="visibility: hidden;"';}
else if(zg==="scrollsticky"){var ua=navigator.userAgent;var Cg=ua.match(/Chrome\/(\d+)\./);if(!(/Android/.test(ua)&&Cg&&Cg.length===2&&parseInt(Cg[1])>=74)||jg){continue;}}
var Dg='';if(zg==="ifbm"){zg="ifb";Dg=' data-ifbm="1"';}
if(zg==="ifb"&&kg){continue;}
if(zg==="close"){if(dg.magnify===1){Dg=' data-ilcm="1"';}
dg.magnify=0;}
var Eg=" data-w=\""+dg.w+"px\"";var Fg=" data-h=\""+dg.h+"px\"";if(dg.id===1087){Eg=' data-w="300px"';Fg=' data-h="600px"';}
if(dg.nntmpl_disp_w){Eg=" data-w=\""+dg.nntmpl_disp_w+"\"";}
if(dg.nntmpl_disp_h){Fg=" data-h=\""+dg.nntmpl_disp_h+"\"";}
var Gg="AdstirILEffect"+Math.round(Math.random()*10000000000)+"A"+Math.round(Math.random()*10000000000);var t="";t=t+'<div id="'+Gg+'" class="adstir_inline_effect_'+zg+'" data-adstir-inline-effect="'+Ag+'"'+Bg+Eg+Fg+Dg+'>';if(zg==="scrollsticky"){t=t+'<div style="position:relative;height:'+dg.h+'px;">';t=t+'<div id="adstir_scroll_sticky" style="position:absolute;inset:0;clip-path:inset(0px);">';if(!jg&&ig){t=t+'<div id="adstir_scroll_sticky_pos" style="margin:0;padding:0;left:0;right:0;">';}
else{t=t+'<div id="adstir_scroll_sticky_pos" style="margin:0;padding:0;">';}
t=t+fg;t=t+'</div></div></div></div>';}
else{t=t+'<div>';t=t+fg;t=t+'</div></div>';}
fg=t;var Hg=Wf.URL.ileffect.replace(/%%NUMBER%%/,zg+"");var Ig=document.createElement("script");Ig.src=Hg;if(zg==="scroll2"||zg==="scroll4"){if(!window['AdstirILEffectTargets']){window['AdstirILEffectTargets']=[];}
window['AdstirILEffectTargets'].push({k:Gg,v:false,m:eg.app_id});Ig.defer=true;}
if(zg==="scrollgroup1"||zg==="scrollgroup2"||zg==="scrollgroup3"){if(!window['AdstirILEffectTargetGroups']){window['AdstirILEffectTargetGroups']=[];}
window['AdstirILEffectTargetGroups'].push({k:Gg,v:false,m:eg.app_id,e:zg});Ig.defer=true;}
document.head.appendChild(Ig);}}
if(!jg&&ig){var t="";t=t+'<div style="line-height:100%;text-align:center;">';t=t+fg;t=t+'</div>';fg=t;}
return fg;};var Jg=function(Kg,Lg){var Mg=(Lg.sdk_vendor==="adstir"&&Lg.sdk_version?parseInt(Lg.sdk_version):0);return Kg.ck&&Mg>=20000;};var Ng=function(Og,Pg,Qg){if(Qg===void 0){Qg={};}
if($f!=0){clearTimeout($f);$f=0;}
Wf.rmJsCk();if(Jg(Og,Pg)){Wf.sendMessage("reload",[Wf.makeReload(Og,Pg,Qg)]);return;}
var Rg=document.getElementById(Yf+"DELETE");if(Rg==null){return;}
var id=Og.id;var Sg=Og.gid;var Tg=Og.fgid;Xf.adstir_wipead_e=false;var Ug=function(Vg){if(Vg==undefined)return;if(Vg.w==undefined||Vg.h==undefined){return;}
if(Vg.id===1126){Vg.magnify=0;try{var Wg=Wf.getWindowParams();if(Wg.screenWidth!==undefined&&Wg.screenHeight!==undefined){Vg.w=Wg.screenWidth;Vg.h=Wg.screenHeight;}}
catch(e){}}
var Xg=Vg.w+'px';var Yg=Vg.h+'px';if(typeof Vg.html=="string"){Vg.html=Vg.html.replace(/%%TID%%/g,Wf.tid);Vg.html=Vg.html.replace(/%%NCK%%/g,Pg.floating?"1":"0");}
if(Pg.in_own_if){var p=window.frameElement;if(p!==null){p.style.width=Vg.w+"px";p.style.height=Vg.h+"px";if(Vg.adtype==="native_banner"){if(Vg.nntmpl_disp_w){p.style.width=Vg.nntmpl_disp_w;}
if(Vg.nntmpl_disp_h){p.style.height=Vg.nntmpl_disp_h;}}}}
var Zg=""+Vg.w;var $g=null;if(Vg.adtype==="native_banner"){if(Vg.nntmpl_disp_w&&Vg.nntmpl_disp_h){Xg=Vg.nntmpl_disp_w;Yg=Vg.nntmpl_disp_h;Zg='device-width';if(Vg.nntmpl_disp_w.indexOf("px")!==-1){var ah=Vg.nntmpl_disp_w.replace("px","");if(!isNaN(parseInt(ah))){Zg=ah;}}}
var bh=new MakeNativeBannerElem(Vg,Pg);bh.init().makeElem();var ch=bh.getIfid();if(Vg.afd!==undefined&&typeof Vg.afd==='object'&&Vg.afd.length>0){$g=function(dh){var eh=dh.contentDocument||dh.contentWindow.document;if(!eh){return;}
var fh=eh.getElementById(ch);if(fh==null){return;}
Wf.addEvent(fh,"load",function(){Wf.addEvent(fh.contentWindow.document.body,"click",function(){for(var i=0;i<Vg.afd.length;i++){var gh=document.createElement("script");gh.text=Vg.afd[i];fh.contentWindow.document.body.appendChild(gh);}});});};}}
if(Xf.adstir_instl_close_button_id){var hh=document.getElementById(Xf.adstir_instl_close_button_id);if(hh){var jh=hh.parentElement;var kh=jh.getAttribute("style");if(kh){var lh="left";var mh=kh.match(/text-align:(.*?);/);if(mh&&mh.length>1){lh=mh[1];}
if(Vg.rattr&&Vg.rattr.adstir_vars&&Vg.rattr.adstir_vars.instl_vars){if(!Pg.instl_vars)Pg.instl_vars={};for(var nh in Vg.rattr.adstir_vars.instl_vars){Pg.instl_vars[nh]=Vg.rattr.adstir_vars.instl_vars[nh];}}
var oh=Wf.getInstlCloseBtnParameters(Vg,Pg);kh=kh.replace(/max-width:.*?px;/,"max-width:"+oh.tmaxwidth.toString()+"px;");kh=kh.replace(/text-align:.*?;/,"text-align:"+oh.textalign+";");kh=kh.replace(/height:.*?px;/,"height:"+oh.buttonsize.toString()+"px;");kh=kh.replace(/padding:0 0 0 .*?px;/,"padding:0 0 0 "+oh.instlclosebuttonpx.toString()+"px;");kh=kh.replace(/left:.*?px;/,"left:"+(oh.tside*-1).toString()+"px;");kh=kh.replace(/right:.*?px;/,"right:"+oh.tside.toString()+"px;");kh=kh.replace(/top:.*?px;/,"top:"+oh.ttop.toString()+"px;");jh.setAttribute("style",kh);hh.setAttribute("style","width:"+oh.buttonsize+"px;height:"+oh.buttonsize+"px;");hh.setAttribute("src",oh.timgsrc);}}}
while(Rg.childNodes.length>0)Rg.removeChild(Rg.childNodes[0]);var ph=Xf.document.createElement("div");var qh='<span id="'+Yf+'RE" style="width:'+Xg+';height:'+Yg+';display:inline-block;vertical-align:bottom;">';ph.id=Yf+"DELETE";ph.innerHTML=cg(Vg,Pg,qh);Rg.parentNode.insertBefore(ph,Rg);Rg.parentNode.removeChild(Rg);setTimeout(function(){var rh=document.getElementById(Yf+"RE");if(Vg.adtype==="vast"){Wf.processVASTResAfterCK(Vg,Pg,rh);return;}
var th=Xf.document.createElement("iframe");th.srcdoc="<html/>";th.style.height=Yg;th.style.width=Xg;th.style.border="none";th.style.verticalAlign="bottom";th.scrolling="no";th.setAttribute("frameBorder","0");th.setAttribute("allowTransparency","true");rh.appendChild(th);if(Vg.secure_frame&&th.sandbox instanceof DOMTokenList){th.setAttribute("sandbox","allow-forms allow-popups allow-scripts allow-top-navigation-by-user-activation allow-popups-to-escape-sandbox allow-same-origin");th.src=Wf.URL.secureFrameHtml+"#"+encodeURIComponent(Vg.html);}
else{var d=th.contentWindow.document;if(Vg.ck&&!Jg(Vg,Pg)){$f=setTimeout(function(){if(d.defaultView!=null&&d.documentElement.getBoundingClientRect().height<30){Ng(Vg,Pg);}},4000);Wf.addJsCk(function(Qg){Ng(Vg,Pg,Qg);});}
d.open();var uh='<!doctype html><html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><meta name="viewport" content="width='+Zg+',initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=0"></head><style>html{background-color:transparent;margin:0;padding:0;}body{background-color:transparent;margin:0;padding:0;}</style><body>'+(Vg.friendly_iframe?'<script>inDapIF=true;</script>':'')+Vg.html+'</body></html>';d.write(uh);d.close();if($g!=null){$g(th);}}},10);};Xf[Yf]=function(vh){if(typeof(vh)!=="undefined"&&vh.adtype==="native_banner"){var wh=document.createElement("iframe");wh.width="0";wh.height="0";wh.style.display="none";document.body.appendChild(wh);wh.contentWindow["adstir_network_templates"]=function(xh){Pg.native_html=xh;Ug(vh);};var s=document.createElement("script");s.src="https:"+Wf.URL.nativeNetworkTemplate+vh.nntmplid+".js";wh.contentWindow.document.body.appendChild(s);}
else{Ug(vh);}};var yh=Wf.getParam(Pg);yh.iframe='1';yh.topframe='0';yh.callback=Yf;yh.force_group=Tg;ag.push(id);yh.exclude_network=ag.join(",");yh.delete_log_network=typeof Qg.dln=="string"?Qg.dln:Sg+','+id;var zh=Wf.makeUrl(Wf.URL.adtag,yh);var Ah=document.createElement("script");Ah.src=zh;document.body.appendChild(Ah);};var Bh=document.createElement("div");Bh.id=this.tid;Bh.style.setProperty("display","none","important");(document.body||document.head||document.documentElement).appendChild(Bh);return{prewrite:function(Ch){},connect:function(Dh,Eh,Fh,Gh){if(typeof Dh.exclude_network=="string"){ag=Dh.exclude_network.split(",");}
if(Dh.type=="interstitial"){ag.push(1087);Dh.disable_mf=true;}
var Hh=function(Ih){if(Ih!=null){Wf.addJsCk(function(Jh){Zf=true;Ng(Ih,Dh,Jh);});}
if(typeof(Ih)!=="undefined"&&Dh.in_own_if){var p=window.frameElement;if(p!==null){p.style.width=Ih.w+"px";p.style.height=Ih.h+"px";if(Ih.adtype==="native_banner"){if(Ih.nntmpl_disp_w){p.style.width=Ih.nntmpl_disp_w;}
if(Ih.nntmpl_disp_h){p.style.height=Ih.nntmpl_disp_h;}}}}
if(typeof(Ih)!=="undefined"&&typeof(Ih.ntempid)==="number"){Xf.adstir_native_templates=function(Kh){Dh.native_html=Kh;Gh(Ih);};document.write("<script src=\"https:"+Wf.URL.nativeTemplate+Ih.ntempid+".js"+"\"></script>");}
else if(typeof(Ih)!=="undefined"&&Ih.adtype==="native_banner"){if(typeof(Ih.nntmplid)!=="undefined"&&Ih.nntmplid.length>0){Xf.adstir_network_templates=function(Lh){Dh.native_html=Lh;Gh(Ih);};document.write("<script src=\"https:"+Wf.URL.nativeNetworkTemplate+Ih.nntmplid+".js"+"\"></script>");}}
else{Gh(Ih);}};if(AdstirNext.RTUS){var Mh="adstir_crid";Xf.AdstirCallbackCRTID=function(Nh){if(Nh.status==="OK"){document.cookie=Mh+'='+encodeURIComponent(Nh.userid)+';'+'max-age='+60*15;}};var st=document.cookie.indexOf(Mh+"=");if(st!=-1){st=st+Mh.length+1;var ed=document.cookie.indexOf(";",st);if(ed==-1)ed=document.cookie.length;Fh.crtid=decodeURIComponent(document.cookie.substring(st,ed));}
var Oh="https://rtus-js.ad-stir.com/js/rtus.js?rtuscb=AdstirCallbackCRTID";var Ph=AdstirNext.structScriptTag(Oh);if(Ph instanceof HTMLScriptElement){Ph.async=true;document.getElementsByTagName("head")[0].appendChild(Ph);}}
if(Dh.type==="interstitial"){Fh.instl_first_view=Wf.InterstitialIsFirstView()?'1':'0';Fh.instl_mismatch_referrer=Wf.InterstitialIsMismatchReferrer()?'1':'0';Fh.instl_access_count=Wf.InterstitialAccessCount();Fh.instl_last_view_time=Wf.InterstitialLastViewTime();}
Fh.media_fq_count=Wf.MediaAccessCount();Wf.MediaLastViewTime(Math.floor(Date.now()/1000));var Qh=Wf.processIMUID();if(Qh!==null)Fh.imuid=Qh;Fh.callback=Yf;Xf[Fh.callback]=Hh;if(typeof Dh.intercept_req==="function"){Dh.intercept_req(Wf.makeUrl(Eh,Fh));}
else{document.write("<script src=\""+Wf.makeUrl(Eh,Fh)+"\"></script>");}},write:function(Rh,Sh){var Th=Rh.float>=1||Sh.force_floating;var Uh=Rh.magnify>=1||Sh.force_magnify;var Vh=Sh.center||Uh;var Wh=(Sh.sdk_vendor==="adstir"&&Sh.sdk_version?parseInt(Sh.sdk_version):0);var Xh=Rh.w;var Yh=Rh.h;var Zh=Rh.ck;var $h=Rh.html;var ai=(Rh.afd!==undefined&&typeof Rh.afd==='object'&&Rh.afd.length>0);if(!Th&&!Sh.floating){if(Sh.js_check!=false&&Wh<20000&&Zh){var t='<span style="width:'+Xh+'px;height:'+Yh+'px;display:inline-block;vertical-align:text-bottom;text-align:left;overflow:hidden;">';t=t+'<span id="'+Yf+'" style="display:inline-block;vertical-align:bottom;">';t=t+$h;t=t+'</span>';t=t+'</span>';$h=t;}
$h=cg(Rh,Sh,$h);if(Sh.js_check!=false&&Wh<20000&&Zh){t='<'+(Vh?'div style="display:block"':'span style="display:inline-block"')+' id="'+Yf+'DELETE">';t=t+$h;t=t+'</'+(Vh?"div":'span')+'>';$h=t;}}
if(Th){var bi=Sh.org_type==='wipe'?"adstir_wipead":"adstir_float";var t="";t=t+'<div style="text-align:left;"><div style="position:absolute;top:-10000px;">';t=t+'<div '+(ai?'class="'+bg+'" ':'')+'style="line-height:100%;'+(Vh?'text-align:center;':'')+((Rh.nntmpl_disp_w&&Rh.nntmpl_disp_h)?'width:'+Rh.nntmpl_disp_w+';':'')+'" id="'+bi+'">';t=t+$h;t=t+'</div>';t=t+'</div></div>';$h=t;if(ai&&Rh.adtype&&Rh.adtype!=="iframe"&&Rh.adtype!=="native_banner"){Wf.attachAfdClickEvent(Rh.afd,bg,false);}}
if(Sh.instl_vars&&Sh.instl_vars.loadingIconDuration){var ci=parseInt(Sh.instl_vars.loadingIconDuration);if(ci>=100&&ci<=1000){$h='<img id="adstir_instl_loading_gif" style="position:fixed; top:50%; left:50%" src="https://js.ad-stir.com/network/loading.gif"><div id="adstir_instl_loading_container" style="visibility: hidden;">'+$h+'</div>';window.addEventListener("DOMContentLoaded",function(){var di=document.getElementById("adstir_web_inter_close_button");if(di!=null){var fi=di.clientHeight;var gi="adstir_instl_loading_close_button";var hi=document.createElement("style");hi.textContent="."+gi+" { position: fixed !important; top: calc(50% - "+fi+"px) !important; }";document.head.appendChild(hi);di.classList.add(gi);}
setTimeout(function(){var ii=document.getElementById("adstir_instl_loading_gif");if(ii!=null){ii.style.display="none";}
var ji=document.getElementById("adstir_instl_loading_container");if(ji!=null){ji.style.visibility="visible";}
var di=document.getElementById("adstir_web_inter_close_button");if(di!=null){di.classList.remove("adstir_instl_loading_close_button");}},ci);});}}
if(Sh.org_type==="side"&&typeof Sh.side_id==="string"){var ki=document.getElementById(Sh.side_id);if(ki!=null){ki.setAttribute("style","display:block;position:fixed;transition:1s ease;transition-property:top,left,right,opacity,display,transform;transition-behavior:allow-discrete;z-index:2147483647;");var li=ki.style;var mi=ki.dataset.pagetopClass||"";var ni=function(){if(mi!==""){if(window.scrollY==0){ki.classList.add(mi);}
else{ki.classList.remove(mi);}}};window.addEventListener("scroll",ni);window.addEventListener("resize",ni);ni();document.write($h);var oi=document.createElement("button");oi.setAttribute("style","box-sizing:border-box;background-color:#fff;border:1px solid #666;border-top:none;box-shadow:1px 2px 3px #aaa;border-radius:0 0 7px 7px;padding:0;width:50px;height:22px;line-height:1;");oi.innerHTML='<svg style="height:100%;vertical-align:bottom;" viewbox="0 0 50 50"><g stroke="#666" stroke-width="5"><line x1="5" y1="5" x2="45" y2="45"/><line x1="5" y1="45" x2="45" y2="5"/></g></svg>';oi.addEventListener("click",function(){window.removeEventListener("scroll",ni);window.removeEventListener("resize",ni);li.transform="translateY(-100px)";li.opacity="0";li.display="none";});var pi=document.createElement("div");pi.setAttribute("style","text-align:center");pi.appendChild(oi);ki.appendChild(pi);return;}}
document.write($h);},overlay:function(qi,ri){var si=void 0;var ti=qi.float>=1||ri.force_floating;if(ti){var ui=function(){if(ri.org_type==='wipe'){var vi=document.getElementById("adstir_wipead");if(ri.wipead_vars!==si){var wi=JSON.stringify(ri.wipead_vars);vi.setAttribute("data-set-wipead",wi);}}
else{Xf.adstir_float=document.getElementById("adstir_float");if(ri.flags!==si){var xi=JSON.stringify(ri.flags);Xf.adstir_float.setAttribute("data-flags",xi);}
if(ri.line_vars!==si){var xi=JSON.stringify(ri.line_vars);Xf.adstir_float.setAttribute("data-set",xi);}
if(ri.down_vars!==si){var xi=JSON.stringify(ri.down_vars);Xf.adstir_float.setAttribute("data-set2",xi);}
if(ri.expand_vars!==si){var xi=JSON.stringify(ri.expand_vars);Xf.adstir_float.setAttribute("data-set3",xi);}
if(ri.close_vars!==si){var yi=JSON.stringify(ri.close_vars);Xf.adstir_float.setAttribute("data-set-close",yi);}
if(ri.shake_vars!==si){var zi=JSON.stringify(ri.shake_vars);Xf.adstir_float.setAttribute("data-set-shake",zi);}
if(ri.commons!==si){var xi=JSON.stringify(ri.commons);Xf.adstir_float.setAttribute("data-set-commons",xi);}}};var Ai=Wf.URL.float.replace(/%%NUMBER%%/,qi.float+"");if((document.getElementById("adstir_float")&&Ai.indexOf("_10")>0)||(document.getElementById("adstir_wipead")&&Ai.indexOf("_11")>0)){ui();Wf.writeJS(Ai);}
else{if(document.readyState==="complete"){ui();Wf.addJS(Ai);}
else{Wf.addEvent(window,"load",function(){ui();Wf.addJS(Ai);});}}
if(ri.floating==true&&qi.overlay_refresh_limit!==si&&qi.overlay_refresh_time!==si){Wf.overlayRefresh(qi,ri,Yf,0,function(Bi){if(Bi==si)return;var Ci=ri.org_type==='wipe'?document.getElementById("adstir_wipead"):document.getElementById("adstir_float");var ti=Bi.float>=1||ri.force_floating===true;var Di=Bi.magnify>=1||ri.force_magnify===true;var Ei=ri.center!==false||Di;var Fi=Bi.ck;var Gi=0,iframeHeight=0;var Hi='<iframe id="'+Yf+'" srcdoc="<html/>" allowtransparency="true" '+'scrolling="no" style="border:none;vertical-align:bottom; '+'width:'+Bi.w+'px; height:'+Bi.h+'px;" frameborder="0"></iframe>';var Ii=ri.org_type==='wipe'?"adstir_wipead":"adstir_float";var t="";t=t+'<div style="position:absolute;top:-10000px;">';t=t+'<div style="line-height:100%; text-align:center;"'+'id="'+Ii+'">';t=t+Hi;t=t+'</div></div>';Hi=t;var Ji=Ci.parentNode;Ji.outerHTML=Hi;var Ki=document.getElementById(Yf);var Li=Ki.contentWindow.document;var Mi='<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><meta name="viewport" content="width='+Bi.w+',initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=0"></head>'+'<style>html{background-color:transparent;margin:0;padding:0;}body{background-color:transparent;margin:0;padding:0;} '+'.debug{position:absolute;top:0;left:0;background-color:#8888;padding:2px;color:#FFF;display:inline-block;}</style><body>'+Bi.html+'</body></html>';Li.open();Li.write(Mi);Li.close();if(ri.org_type==='wipe'){var Ni=document.getElementById("adstir_wipead");if(ri.wipead_vars!==si){var Oi=JSON.stringify(ri.wipead_vars);Ni.setAttribute("data-set-wipead",Oi);}}
else{Xf.adstir_float=document.getElementById("adstir_float");if(ri.flags!==si){var Pi=JSON.stringify(ri.flags);Xf.adstir_float.setAttribute("data-flags",Pi);}
if(ri.line_vars!==si){var Pi=JSON.stringify(ri.line_vars);Xf.adstir_float.setAttribute("data-set",Pi);}
if(ri.down_vars!==si){var Pi=JSON.stringify(ri.down_vars);Xf.adstir_float.setAttribute("data-set2",Pi);}
if(ri.expand_vars!==si){var Pi=JSON.stringify(ri.expand_vars);Xf.adstir_float.setAttribute("data-set3",Pi);}
if(ri.close_vars!==si){var Qi=JSON.stringify(ri.close_vars);Xf.adstir_float.setAttribute("data-set-close",Qi);}
if(ri.shake_vars!==si){var Ri=JSON.stringify(ri.shake_vars);Xf.adstir_float.setAttribute("data-set-shake",Ri);}
if(ri.commons!==si){var Pi=JSON.stringify(ri.commons);Xf.adstir_float.setAttribute("data-set-commons",Pi);}}
var Si=document.createElement("script");Si.src=Wf.URL.float.replace(/%%NUMBER%%/,(Bi.float<=1?"1":Bi.float+""));document.body.appendChild(Si);});}}},overlayPC:function(Ti,Ui){},loadedEnd:function(Vi,Wi){var Xi;var id=Vi.id;var Yi=Vi.gid;Xf.setTimeout(function(){var Zi=document.createElement("div");Zi.style.position="absolute";Zi.style.top="0px";Zi.style.left="0px";Zi.style.height="3px";Zi.style.width="3px";Zi.style.background="black";Zi.style.opacity="0.05";document.body.appendChild(Zi);window.setTimeout(function(){document.body.removeChild(Zi);},1000);},1000);var $i=4000;if(Yi!=Xi&&Yi==3){$i=2500;}
if(!Zf){$f=Xf.setTimeout(function(){if(id!=Xi&&Yi!=Xi&&Wi.floating!=true){var aj=document.getElementById(Yf);if(Jg(Vi,Wi)){var bj=(function(){var d=document.documentElement.scrollHeight;return d;})();if(bj<30){Ng(Vi,Wi);}}
else if(aj){var cj=(function(){if(aj&&aj.getBoundingClientRect)return aj.getBoundingClientRect().height;return 1000000;})();if(cj<30){Ng(Vi,Wi);}}}},$i);}}};};AdstirNext.prototype.makeAsync=function(){var dj=this;var ej=window;var fj="AdstirCB"+Math.round(Math.random()*10000000000)+"A"+Math.round(Math.random()*10000000000);var gj=0;var hj=0;var ij=false;var jj=false;return{prewrite:function(kj){gj=kj.iframe.width;hj=kj.iframe.height;ij=kj.center;jj=kj.floating;var lj='<iframe id="'+fj+'" allowtransparency="true" scrolling="no" style="height:'+hj+'px;width:'+gj+'px;border:none;vertical-align:bottom;" frameborder="0"></iframe>';if(ij||jj){var mj=kj.org_type==='wipe'?"adstir_wipead":"adstir_float";var t="";t=t+'<div'+(jj?' style="text-align:left;"':'')+'>';t=t+'<div'+(jj?' style="position:absolute;top:-10000px;"':'')+'>';t=t+'<div style="line-height:100%;'+(ij?'text-align:center;':'')+'"'+(jj?' id="'+mj+'"':'')+'>';t=t+lj;t=t+'</div></div></div>';lj=t;}
ej.document.write(lj);},connect:function(nj,oj,pj,qj){pj.callback="AdstirCB"+Math.round(Math.random()*10000000000)+"A"+Math.round(Math.random()*10000000000);ej[pj.callback]=qj;dj.addJS(dj.makeUrl(oj,pj));},write:function(rj,sj){var tj=ej.document.getElementById(fj);var d=tj.contentWindow.document;d.open();d.write('<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><meta name="viewport" content="width='+gj+',initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=0"></head><style>html{background-color:transparent;margin:0;padding:0;}body{background-color:transparent;margin:0;padding:0;}</style><body>'+rj.html+"</body></html>");d.close();},overlay:function(uj,vj){var wj=void 0;if(vj.org_type==='wipead'){var xj=document.getElementById("adstir_wipead");if(vj.wipead_vars!==wj){var yj=JSON.stringify(vj.wipead_vars);xj.setAttribute("data-set-wipead",yj);}}
else{ej.adstir_float=document.getElementById("adstir_float");if(vj.flags!==wj){var zj=JSON.stringify(vj.flags);ej.adstir_float.setAttribute("data-flags",zj);}
if(vj.line_vars!==wj){var zj=JSON.stringify(vj.line_vars);ej.adstir_float.setAttribute("data-set",zj);}
if(vj.down_vars!==wj){var zj=JSON.stringify(vj.down_vars);ej.adstir_float.setAttribute("data-set2",zj);}
if(vj.expand_vars!==wj){var zj=JSON.stringify(vj.expand_vars);ej.adstir_float.setAttribute("data-set3",zj);}
if(vj.close_vars!==wj){var Aj=JSON.stringify(vj.close_vars);ej.adstir_float.setAttribute("data-set-close",Aj);}
if(vj.shake_vars!==wj){var Bj=JSON.stringify(vj.shake_vars);ej.adstir_float.setAttribute("data-set-shake",Bj);}
if(vj.commons!==wj){var zj=JSON.stringify(vj.commons);ej.adstir_float.setAttribute("data-set-commons",zj);}}
var Cj=document.createElement("script");Cj.src=dj.URL.float.replace(/%%NUMBER%%/,(uj.float<=1?"1":uj.float+""));document.body.appendChild(Cj);},overlayPC:function(Dj,Ej){},loadedEnd:function(Fj,Gj){}};};AdstirNext.prototype.makeUrl=function(Hj,Ij){var Jj;var Kj=Hj;var Lj=true;for(var Mj in Ij){var Nj=Ij[Mj];if(Nj!==Jj){if(Lj){Kj+="?";Lj=false;}
else{Kj+="&";}
Kj+=encodeURIComponent(Mj)+"="+encodeURIComponent(Nj);}}
return Kj;};AdstirNext.prototype.makeReload=function(Oj,Pj,Qj){if(Qj===void 0){Qj={};}
var Rj=Pj.reload_parameter;if(typeof Rj==='string'){var Sj=Rj.split("|");if(Oj.fgid===undefined){Rj=Sj[0]+","+Oj.id+"|"+Oj.gid;}
else{Rj=Sj[0]+","+Oj.id+"|"+Oj.gid+"|"+Oj.fgid;}}
else{if(Oj.fgid===undefined){Rj=Oj.id+"|"+Oj.gid;}
else{Rj=Oj.id+"|"+Oj.gid+"|"+Oj.fgid;}}
if(typeof Qj.dln=="string"){Rj=Rj+"!"+Qj.dln;}
return Rj;};AdstirNext.prototype.addEvent=function(Tj,Uj,Vj){if(Tj.addEventListener){Tj.addEventListener(Uj,Vj,false);}
else if(Tj.attachEvent){Tj.attachEvent("on"+Uj,Vj);}};AdstirNext.prototype.addJS=function(Wj){var Xj=document;var Yj=Xj.createElement("script");Yj.async=true;Yj.src=Wj;var Zj=Xj.getElementsByTagName("script")[0];Zj.parentNode.insertBefore(Yj,Zj);};AdstirNext.prototype.writeJS=function($j){document.write('<script src="'+$j+'"></script>');};AdstirNext.prototype.arrayContains=function(ak,bk){if(ak&&bk){for(var i=0;i<ak.length;i++){if(ak[i]==bk)return true;}}
return false;};AdstirNext.prototype.attachAfdClickEvent=function(dk,ek,fk){var gk=this;if(fk){this.addEvent(window,"DOMContentLoaded",function(){var hk=document.getElementById(ek);if(!hk)return;gk.addEvent(hk,"load",function(){gk.addEvent(hk.contentWindow.document.body,"click",function(){for(var i=0;i<dk.length;i++){var ik=document.createElement("script");ik.text=dk[i];hk.contentWindow.document.body.appendChild(ik);}});});});}
else{this.addEvent(window,"DOMContentLoaded",function(){var jk=document.querySelector("."+ek);gk.addEvent(jk,"click",function(){for(var i=0;i<dk.length;i++){var kk=document.createElement("script");kk.text=dk[i];document.body.appendChild(kk);}});});}};AdstirNext.loadJS=function(lk){document.addEventListener("DOMContentLoaded",function(){var mk=document.getElementsByTagName("script");for(var i=0;i<mk.length;i++){var nk=mk[i];if(nk.src&&nk.src===lk){return;}}
var ok=document.createElement("script");ok.type="text/javascript";ok.charset="utf-8";ok.src=lk;document.body.appendChild(ok);},false);};AdstirNext.structScriptTag=function(pk){var qk=document.getElementsByTagName("script");for(var i=0;i<qk.length;i++){var rk=qk[i];if(rk.src&&rk.src===pk){return;}}
var sk=document.createElement("script");sk.type="text/javascript";sk.charset="utf-8";sk.src=pk;return sk;};AdstirNext.prototype.appendJS=function(tk,uk){if(tk){var vk=AdstirNext.structScriptTag(uk);if(vk instanceof HTMLScriptElement){document.body.appendChild(vk);}}
else{document.write('<script src="'+uk+'"></script>');}};AdstirNext.prototype.getWindowParams=function(){return{screenWidth:window.screen.width||undefined,screenHeight:window.screen.height||undefined,pixelRatio:window.devicePixelRatio||undefined};};AdstirNext.prototype.supportsSVG=function(){return document.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1");};AdstirNext.prototype.isLandscape=function(){return window.innerWidth>window.innerHeight;};AdstirNext.prototype.overlayRefresh=function(wk,xk,yk,zk,Ak){var Bk=this;var Ck=window;if(wk.overlay_refresh_limit>zk){setTimeout(function(){Ck[yk]=Ak;var Dk=Bk.getParam(xk);Dk.iframe='1';Dk.topframe='0';Dk.callback=yk;Dk.oref='1';var Ek=Bk.makeUrl(Bk.URL.adtag,Dk);if(xk.debug){console.log("Refresh. Reload.");console.log(Ek);}
var Fk=document.createElement("script");Fk.src=Ek;document.body.appendChild(Fk);Bk.overlayRefresh(wk,xk,yk,zk+1,Ak);},wk.overlay_refresh_time*1000);}};AdstirNext.prototype.isStorageAvailable=function(){if(this.is_storage_available===null){try{var Gk=window.localStorage;var Hk='__storage_test__';Gk.setItem(Hk,Hk);Gk.removeItem(Hk);this.is_storage_available=true;return true;}
catch(e){this.is_storage_available=false;return false;}}
else{return this.is_storage_available;}};AdstirNext.prototype.processIMUID=function(){if(this.isStorageAvailable()){var Ik=null;var Jk='adstir_im_uid';Ik=window.localStorage.getItem(Jk);var Kk="https://dmp.im-apps.net/sdk/im-uid.js";var Lk=AdstirNext.structScriptTag(Kk);if(Lk instanceof HTMLScriptElement){Lk.async=true;document.getElementsByTagName("head")[0].appendChild(Lk);}
window.IMUIDRequest=window.IMUIDRequest||[];window.IMUIDRequest.push({customerId:1007220,callback:function(Mk){if(Mk.uid){window.localStorage.setItem(Jk,Mk.uid);}},callbackTimeout:1000});return Ik;}
return null;};AdstirNext.prototype.InterstitialIsFirstView=function(){if(this.isStorageAvailable()){var Nk=this.getReferrer();var Ok=this.getOrigin();try{var Pk=new URL(Nk);var Qk=new URL(Ok.url);if(Pk.host!==Qk.host){return true;}
else{return false;}}
catch(e){var Rk='adstir_instl_first_view_time';var Sk=window.localStorage.getItem(Rk);var Tk=Math.floor(Date.now()/1000);if(Sk!==null&&(Tk-parseInt(Sk))>(60*60*24)){window.localStorage.removeItem(Rk);Sk=null;}
if(Sk===null){window.localStorage.setItem(Rk,String(Tk));return true;}}}
return false;};AdstirNext.prototype.InterstitialIsMismatchReferrer=function(){var Uk=this.getReferrer();var Vk=this.getOrigin();var Wk='';var Xk='';try{var Yk=new URL(Uk);Wk=Yk.host;}
catch(e){}
try{var Zk=new URL(Vk.url);Xk=Zk.host;}
catch(e){}
if(Wk===''&&Xk===''){return true;}
if(Wk!==Xk){return true;}
else{return false;}};AdstirNext.prototype.MediaAccessCount=function(){if(this.isStorageAvailable()){var $k=this.MediaLastViewTime();var al='adstir_fq_count';var bl=window.localStorage.getItem(al);var dl=1;if(Math.floor(Date.now()/1000)-$k>86400){dl=1;}
else if(bl!==null){dl=parseInt(bl)+1;}
window.localStorage.setItem(al,String(dl));return dl;}
return 1;};AdstirNext.prototype.MediaLastViewTime=function(fl){var gl=void 0;if(this.isStorageAvailable()){var hl='adstir_fq_last_time';if(fl!==gl){window.localStorage.setItem(hl,String(fl));}
var il=window.localStorage.getItem(hl);if(il===null)return 0;return parseInt(il);}
return 0;};AdstirNext.prototype.InterstitialAccessCount=function(){if(this.isStorageAvailable()){var jl=this.InterstitialLastViewTime();if(jl===0){return 0;}
var kl="adstir_instl_access_count";var ll=window.localStorage.getItem(kl);var ml=1;if(ll!==null){ml=parseInt(ll)+1;}
window.localStorage.setItem(kl,String(ml));return ml;}
return 0;};AdstirNext.prototype.InterstitialLastViewTime=function(nl){var ol=void 0;if(this.isStorageAvailable()){var pl="adstir_instl_last_view_time";if(nl!==ol){window.localStorage.setItem(pl,String(nl));}
var ql=window.localStorage.getItem(pl);if(ql===null)return 0;return parseInt(ql);}
return 0;};AdstirNext.prototype.getAdstirMediaUid=function(rl){if(rl){var sl='adstir_media_uid';var tl=window.localStorage.getItem(sl);if(tl===null){tl=this.generateUuid();window.localStorage.setItem(sl,tl);}
return tl;}
return null;};AdstirNext.prototype.generateUuid=function(){var ul="",i,random;for(i=0;i<32;i++){random=Math.random()*16|0;if(i==8||i==12||i==16||i==20){ul+="-";}
ul+=(i==12?4:(i==16?(random&3|8):random)).toString(16);}
return ul;};AdstirNext.prototype.getHainaFrequency=function(vl){if(vl){var wl='haina_fq';return window.localStorage.getItem(wl);}
return null;};AdstirNext.prototype.getAdstirOptout=function(xl){var yl="1";if(xl){yl=window.localStorage.getItem("adstir_optout");if(yl===null){yl="1";}}
return yl;};AdstirNext.prototype.setAdstirOptout=function(zl){var Al=this;if(zl){this.addEvent(window,"message",function(Bl){var Cl=new URL("https:"+Al.URL.optoutIframe);if(Bl.origin===Cl.origin){if(Bl.data&&(Bl.data==='0'||Bl.data==='1')){window.localStorage.setItem("adstir_optout",Bl.data);}}});}};AdstirNext.prototype.loadAdstirOptout=function(){if(this.isStorageAvailable()){var Dl=window.location.href;var El="https:"+this.URL.optoutIframe+'?url='+Dl;document.write('<iframe src="'+El+'" style="display:none;"></iframe>');}};AdstirNext.prototype.supportsVAST=function(Fl){if(!('Promise' in window)){return false;}
if(Fl.platform&&Fl.platform==='webview'){if(!Fl.use_sdk_ivw){return false;}}
else if(!('IntersectionObserver' in window)){return false;}
return true;};AdstirNext.prototype.processVASTRes=function(Gl,Hl){if(!this.supportsVAST(Hl)){return;}
var id="adstirVP"+Math.round(Math.random()*10000000000)+"A"+Math.round(Math.random()*10000000000);Gl.html="<div id=\""+id+"\" style=\"text-align: center;\"></div>";if(Array.isArray(Gl.crtv)&&Array.isArray(Gl.crtv[0].ue)&&typeof Gl.crtv[0].ue[0]==="string"){Gl.html+="<div style=\"width:0px !important; height:0px !important; background:url('"+Gl.crtv[0].ue[0].replace("/v/ue","/v/rv")+"')\"></div>";}
this.callVASTPlayer(Gl,Hl,id);};AdstirNext.prototype.processVASTResAfterCK=function(Il,Jl,Kl){if(!this.supportsVAST(Jl)){return;}
var id="adstirVP"+Math.round(Math.random()*10000000000)+"A"+Math.round(Math.random()*10000000000);var Ll="<div id=\""+id+"\" style=\"text-align: center;\"></div>";if(Array.isArray(Il.crtv)&&Array.isArray(Il.crtv[0].ue)&&typeof Il.crtv[0].ue[0]==="string"){Ll+="<div style=\"width:0px !important; height:0px !important; background:url('"+Il.crtv[0].ue[0].replace("/v/ue","/v/rv")+"')\"></div>";}
Kl.insertAdjacentHTML("afterbegin",Ll);this.callVASTPlayer(Il,Jl,id);};AdstirNext.prototype.callVASTPlayer=function(Ml,Nl,id){var Ol=this;var Pl=(Ml.vp||{}).id||"";if(Pl===""){return;}
var Ql=__assign({},((Ml.vp||{}).opts||{}),((Nl.vp_vars||{})[Pl]||{}));var Rl=__assign({afd:Ml.afd||null,sdkIvw:!!Nl.use_sdk_ivw,spaceW:Ml.w,spaceH:Ml.h},Ql);function loadScriptOnce(Sl,cb){var s=document.querySelector("script[src=\""+Sl+"\"][data-loadstate]");if(s!=null){if(s.dataset.loadstate=="loaded"){setTimeout(cb,0);}
else{s.addEventListener("load",cb);}}
else{var Tl=document.createElement("script");Tl.src=Sl;Tl.dataset.loadstate="loading";Tl.addEventListener("load",function(){Tl.dataset.loadstate="loaded";cb();});document.head.appendChild(Tl);}}
if(Nl.initiator==="hbov"&&(Pl=="2"||Pl=="4")){Ml.ck=false;loadScriptOnce(this.URL.vp+"pbvp.js",function(){window.AdstirPbVAST.start(""+Pl,Ml.crtv,Rl);});return;}
loadScriptOnce(this.URL.vp+"adstir-vastlib.js",function(){loadScriptOnce(Ol.URL.vp+"adstir-vastp."+Pl+".js",function(){var Ul=document.getElementById(id);if(Ul===null){return;}
window.AdstirVASTPlayer[Pl].start(Ul,Ml.crtv,Rl).then(function(Vl){if(!Vl){Ul.parentNode.removeChild(Ul);}})["catch"](function(_e){console.error(_e);Ul.parentNode.removeChild(Ul);});});});};AdstirNext.prototype.getInstlCloseBtnParameters=function(Wl,Xl){var Yl=44;if(Xl.instl_vars&&Xl.instl_vars.instl_close_button_size){var Zl=parseInt(Xl.instl_vars.instl_close_button_size);Yl=Zl;}
var $l=(Wl.magnify>=1||Xl.force_magnify)?Wl.w*2:Wl.w;var am=this.isLandscape()?0:-1*Yl;var bm=16;var cm=0;var dm=this.isLandscape()?"close":"close_bright";if(Yl>bm){cm=this.isLandscape()?Yl:0;dm="close_bright";}
if(Wl.id===1126){am=0;cm=0;dm="close_circle";try{var em=this.getWindowParams();if(em.screenWidth!==undefined){$l=em.screenWidth;}}
catch(e){}}
var fm=this.supportsSVG()?"https://js.ad-stir.com/network/"+dm+".svg":"https://js.ad-stir.com/network/"+dm+".png";var gm=1;if(Xl.instl_vars){gm=parseInt(Xl.instl_vars.buttonAlignType)||1;if(gm===4){var hm=[1,2];gm=hm[Math.floor(Math.random()*hm.length)];}
else if(gm===5){var hm=[1,2,3];if(this.isLandscape()&&Yl>bm){hm=[1,2];}
gm=hm[Math.floor(Math.random()*hm.length)];}
else if(gm===3){if(this.isLandscape()&&Yl>bm){gm=1;}}}
var im;switch(gm){case 1:im="left";break;case 2:im="right";break;case 3:im="center";break;default:im="left";}
if(gm===2&&this.isLandscape()&&Yl>bm){cm*=-1;}
var jm=0;if(navigator.userAgent.indexOf('iPhone')>0&&(Wl.magnify>=1||Xl.force_magnify)&&!this.isLandscape()&&gm===1){jm=10;}
return{textalign:im,tmaxwidth:$l,instlclosebuttonpx:jm,buttonsize:Yl,ttop:am,tside:cm,timgsrc:fm};};AdstirNext.prototype.appendBypassAoneSyncTag=function(){var km=document.createElement("img");km.src="https://bypass.ad-stir.com/map";km.height=1;km.width=1;km.style.display="none";km.alt="map";document.body.appendChild(km);};AdstirNext.prototype.getEvm=function(){if(typeof this.tid!="string"||this.tid==""){return null;}
return document.getElementById(this.tid);};AdstirNext.prototype.addJsCk=function(cb){var lm=this;var mm="jsck";var nm=this.getEvm();if(nm!=null){this.jsCkF=function(e){nm.removeEventListener(mm,lm.jsCkF);cb((e.detail||{}));};nm.addEventListener(mm,this.jsCkF);}};AdstirNext.prototype.rmJsCk=function(){var om="jsck";var pm=this.getEvm();if(pm!=null&&this.jsCkF!=null){pm.removeEventListener(om,this.jsCkF);}};AdstirNext.RTUS=false;return AdstirNext;}());(function(){var qm=window;if(qm.adstir_vars.platform!=="webview"){var ua=navigator.userAgent;if(ua.indexOf('iPhone')>0||ua.indexOf('iPad')>0){AdstirNext.RTUS=true;}}
new AdstirNext(qm.adstir_vars);qm.adstir_vars=void 0;})();