=0?tw()-ow:-1,c=rw?tw()-nw:-1,d=qw>=0?tw()-qw:-1;if(a==947190542)return 100;if(a==79463069)return 200;a=[2E3,4E3];var e=[250,500,1E3];lw(637,Error(),.001);var f=b;c!=-1&&c1500&&d<4E3?500:g};var vw=function(a,b,c){var d=new K(0,0,0,0);this.time=a;this.volume=null;this.l=b;this.g=d;this.j=c};vw.prototype.Ub=function(a,b){return!!a&&(!(b===void 0?0:b)||this.volume==a.volume)&&this.l==a.l&&Cm(this.g,a.g)&&!0};var ww=function(a,b,c,d,e,f,g,h){this.l=a;this.D=b;this.j=c;this.A=d;this.g=e;this.o=f;this.B=g;this.C=h};ww.prototype.getTimestamp=function(){return this.B};ww.prototype.Ub=function(a,b){return this.l.Ub(a.l,b===void 0?!1:b)&&this.D==a.D&&Cm(this.j,a.j)&&Cm(this.A,a.A)&&this.g==a.g&&this.o==a.o&&this.B==a.B&&this.C==a.C};var Lj={Sl:"addEventListener",sm:"getMaxSize",wm:"getScreenSize",xm:"getState",ym:"getVersion",en:"removeEventListener",Rm:"isViewable"},xw=function(a){var b=a!==a.top,c=a.top===Ll(a),d=-1,e=0;if(b&&c&&a.top.mraid){d=3;var f=a.top.mraid}else d=(f=a.mraid)?b?c?2:1:0:-1;f&&(f.IS_GMA_SDK||(e=2),Kj(function(g){return typeof f[g]==="function"})||(e=1));return{Xa:f,oe:e,nl:d}};var yw=function(){var a=window.document;return a&&typeof a.elementFromPoint==="function"};function zw(a,b,c){try{a&&(b=b.top);var d=b;a&&d!==null&&d!=d.top&&(d=d.top);try{var e=(c===void 0?0:c)?(new Em(d.innerWidth,d.innerHeight)).round():Ir(d||window).round()}catch(p){e=new Em(-12245933,-12245933)}a=e;var f=a.height,g=a.width;if(g===-12245933)return new K(g,g,g,g);var h=Jr(Fr(b.document).g),k=h.x,l=h.y;return new K(l,k+g,l+f,k)}catch(p){return new K(-12245933,-12245933,-12245933,-12245933)}};var Bw=function(a,b){if(typeof b==="string")(b=Aw(a,b))&&(a.style[b]=void 0);else for(var c in b){var d=a,e=b[c],f=Aw(d,c);f&&(d.style[f]=e)}},Cw={},Aw=function(a,b){var c=Cw[b];if(!c){var d=$k(b);c=d;a.style[d]===void 0&&(d=(Ac?"Webkit":zc?"Moz":null)+bl(d),a.style[d]!==void 0&&(c=d));Cw[b]=c}return c},Dw=function(a){try{return a.getBoundingClientRect()}catch(b){return{left:0,top:0,right:0,bottom:0}}},Ew=function(a,b){var c=new Bm(0,0),d=Kr(Er(a));if(!xc(d,"parent"))return c;do{if(d==b){var e=Er(a);
var f=new Bm(0,0);if(a!=(e?Er(e):document).documentElement){var g=Dw(a);e=Jr(Fr(e).g);f.x=g.left+e.x;f.y=g.top+e.y}}else f=Dw(a),f=new Bm(f.left,f.top);c.x+=f.x;c.y+=f.y}while(d&&d!=b&&d!=d.parent&&(a=d.frameElement)&&(d=d.parent));return c},Fw=function(){var a="100%";typeof a=="number"&&(a=Math.round(a)+"px");return a},Hw=function(a){var b=Gw;a:{var c=Er(a);if(c.defaultView&&c.defaultView.getComputedStyle&&(c=c.defaultView.getComputedStyle(a,null))){c=c.display||c.getPropertyValue("display")||"";
break a}c=""}c||(c=a.currentStyle?a.currentStyle.display:null);if((c||a.style&&a.style.display)!="none")return b(a);c=a.style;var d=c.display,e=c.visibility,f=c.position;c.visibility="hidden";c.position="absolute";c.display="inline";a=b(a);c.display=d;c.position=f;c.visibility=e;return a},Gw=function(a){var b=a.offsetWidth,c=a.offsetHeight,d=Ac&&!b&&!c;return(b===void 0||d)&&a.getBoundingClientRect?(a=Dw(a),new Em(a.right-a.left,a.bottom-a.top)):new Em(b,c)};var Iw=function(a,b){b=Math.pow(10,b);return Math.floor(a*b)/b},Jw=function(a){return new K(a.top,a.right,a.bottom,a.left)},Kw=function(a){var b=a.top||0,c=a.left||0;return new K(b,c+(a.width||0),b+(a.height||0),c)},Lw=function(a){return a!=null&&a>=0&&a<=1};var Nw=function(){this.F=!1;this.l=!xl(T.top);this.B=Gj()||Hj();var a=Qs();a=a.length>0&&a[a.length-1]!=null&&a[a.length-1].url!=null?((a=a[a.length-1].url.match(cl)[3]||null)?decodeURI(a):a)||"":"";this.domain=a;this.g=new K(0,0,0,0);this.A=new Em(0,0);this.o=new Em(0,0);this.D=new K(0,0,0,0);this.frameOffset=new Bm(0,0);this.L=!1;this.C=0;this.J=!1;this.j=!(!T||!xw(T).Xa);Mw(this)},Ow=function(a,b){b&&b.screen&&(a.A=new Em(b.screen.width,b.screen.height))},Pw=function(a,b){a:{var c=a.g?new Em(a.g.getWidth(),
a.g.getHeight()):new Em(0,0);b=b===void 0?T:b;b!==null&&b!=b.top&&(b=b.top);var d=0,e=0;try{var f=b.document,g=f.body,h=f.documentElement;if(f.compatMode=="CSS1Compat"&&h.scrollHeight)d=h.scrollHeight!=c.height?h.scrollHeight:h.offsetHeight,e=h.scrollWidth!=c.width?h.scrollWidth:h.offsetWidth;else{var k=h.scrollHeight,l=h.scrollWidth,p=h.offsetHeight,n=h.offsetWidth;h.clientHeight!=p&&(k=g.scrollHeight,l=g.scrollWidth,p=g.offsetHeight,n=g.offsetWidth);k>c.height?k>p?(d=k,e=l):(d=p,e=n):k0||a.J)return!0;a=Pv().j.isVisible();var b=Nv();return a||b},Qw=function(){return L(Nw)};var Sw=function(a){this.l=a;this.j=0;this.g=null};Sw.prototype.cancel=function(){Pv().clearTimeout(this.g);this.g=null};var Tw=function(a){var b=Pv(),c=S().g.g;a.g=b.setTimeout(Vv(c,kw(143,function(){a.j++;a.l.sample()})),uw())};var Uw=function(a,b,c){this.l=a;this.Ra=c===void 0?"na":c;this.B=[];this.A=!1;this.o=new vw(-1,!0,this);this.g=this;this.J=b;this.K=this.L=!1;this.ca="uk";this.U=!1;this.C=!0};Uw.prototype.H=function(){return!1};Uw.prototype.initialize=function(){return this.A=!0};Uw.prototype.Uc=function(){return this.g.ca};Uw.prototype.Fd=function(){return this.g.K};var Ww=function(a,b,c){if(!a.K||(c===void 0?0:c))a.K=!0,a.ca=b,a.J=0,a.g!=a||Vw(a)};Uw.prototype.getName=function(){return this.g.Ra};
Uw.prototype.Wb=function(){return this.g.ga()};Uw.prototype.ga=function(){return{}};Uw.prototype.Bb=function(){return this.g.J};var Xw=function(a,b){kc(a.B,b)||(a.B.push(b),b.Xc(a.g),b.Xb(a.o),b.xb()&&(a.L=!0))};Uw.prototype.ba=function(){var a=Qw();a.g=zw(!0,this.l,a.B)};Uw.prototype.aa=function(){Ow(Qw(),this.l)};Uw.prototype.ma=function(){return this.o.g};var Yw=function(a){a=a.g;a.aa();a.ba();var b=Qw();b.D=zw(!1,a.l,b.B);Pw(Qw(),a.l);a.o.g=a.ma()};Uw.prototype.sample=function(){};
var Zw=function(a,b){a.g!=a?Zw(a.g,b):a.C!==b&&(a.C=b,Vw(a))};Uw.prototype.isActive=function(){return this.g.C};var $w=function(a){a.L=a.B.length?fc(a.B,function(b){return b.xb()}):!1},ax=function(a){var b=rc(a.B);ac(b,function(c){c.Xb(a.o)})},Vw=function(a){var b=rc(a.B);ac(b,function(c){c.Xc(a.g)});a.g!=a||ax(a)};m=Uw.prototype;m.Xc=function(a){var b=this.g;this.g=a.Bb()>=this.J?a:this;b!==this.g?(this.C=this.g.C,Vw(this)):this.C!==this.g.C&&(this.C=this.g.C,Vw(this))};
m.Xb=function(a){if(a.j===this.g){var b=!this.o.Ub(a,this.L);this.o=a;b&&ax(this)}};m.xb=function(){return this.L};m.dispose=function(){this.U=!0};m.Fb=function(){return this.U};var bx=function(a,b,c,d){this.j=a;this.g=new K(0,0,0,0);this.o=null;this.B=new K(0,0,0,0);this.l=b;this.P=c;this.O=d;this.N=!1;this.timestamp=-1;this.L=new ww(b.o,this.j,this.g,new K(0,0,0,0),0,0,tw(),0);this.C=void 0};bx.prototype.Ff=function(){return!0};bx.prototype.J=function(){};bx.prototype.dispose=function(){if(!this.Fb()){var a=this.l;nc(a.B,this);a.L&&this.xb()&&$w(a);this.J();this.N=!0}};bx.prototype.Fb=function(){return this.N};
var cx=function(a,b){return a.C?new K(Math.max(b.top+a.C.top,b.top),Math.min(b.left+a.C.right,b.right),Math.min(b.top+a.C.bottom,b.bottom),Math.max(b.left+a.C.left,b.left)):b.clone()};m=bx.prototype;m.Wb=function(){return this.l.Wb()};m.Bb=function(){return this.l.Bb()};m.Uc=function(){return this.l.Uc()};m.Fd=function(){return this.l.Fd()};m.Xc=function(){};m.Xb=function(){this.Tb()};m.xb=function(){return this.O};var dx=function(a){this.A=!1;this.g=a;this.o=function(){}};m=dx.prototype;m.Bb=function(){return this.g.Bb()};m.Uc=function(){return this.g.Uc()};m.Fd=function(){return this.g.Fd()};m.create=function(a,b,c){var d=null;this.g&&(d=this.Xd(a,b,c),Xw(this.g,d));return d};m.kh=function(){return this.md()};m.md=function(){return!1};m.init=function(a){return this.g.initialize()?(Xw(this.g,this),this.o=a,!0):!1};m.Xc=function(a){a.Bb()==0&&this.o(a.Uc(),this)};m.Xb=function(){};m.xb=function(){return!1};
m.dispose=function(){this.A=!0};m.Fb=function(){return this.A};m.Wb=function(){return{}};var ex=function(a,b,c){this.l=c===void 0?0:c;this.j=a;this.g=b==null?"":b},fx=function(a){switch(Math.trunc(a.l)){case -16:return-16;case -8:return-8;case 0:return 0;case 8:return 8;case 16:return 16;default:return 16}},gx=function(a,b){return a.lb.l?!1:a.jb.j?!1:typeof a.gtypeof b.g?!1:a.g0&&(a+="?"+b);return a};var nx=function(a){var b=[],c=[];Ij(a,function(d,e){if(!(e in Object.prototype)&&typeof d!="undefined")switch(Array.isArray(d)&&(d=d.join(",")),d=[e,"=",d].join(""),e){case "adk":case "r":case "tt":case "error":case "mtos":case "tos":case "p":case "bs":b.unshift(d);break;case "req":case "url":case "referrer":case "iframe_loc":c.push(d);break;default:b.push(d)}});return b.concat(c)},ox=function(a){a=a.toString();Pv();Nl(T,a)};var px=function(){this.g=0};var qx=function(a,b,c){ac(a.l,function(d){var e=a.g;if(!d.g&&(d.l(b,c),d.o())){d.g=!0;var f=d.j(),g=new hx;g.add("id","av-js");g.add("type","verif");g.add("vtype",d.A);d=L(px);g.add("i",d.g++);g.add("adk",e);jx(g,f);e=new mx(g);ox(e)}})};var rx=function(){this.j=this.l=this.o=this.g=0},sx=function(a,b,c,d){b&&(a.g+=c,a.j+=c,a.o+=c,a.l=Math.max(a.l,a.o));if(d===void 0?!b:d)a.o=0};var tx=[1,.75,.5,.3,0],ux=function(a){this.j=a=a===void 0?tx:a;this.g=dc(this.j,function(){return new rx})},wx=function(a,b){return vx(a,function(c){return c.g},b===void 0?!0:b)},yx=function(a,b){return xx(a,b,function(c){return c.g})},zx=function(a,b){return vx(a,function(c){return c.l},b===void 0?!0:b)},Ax=function(a,b){return xx(a,b,function(c){return c.l})},Bx=function(a,b){return xx(a,b,function(c){return c.j})},Cx=function(a){ac(a.g,function(b){b.j=0})},Dx=function(a,b,c,d,e,f,g){g=g===void 0?
!0:g;c=f?Math.min(b,c):c;for(f=0;f0&&c>=h;h=!(b>0&&b>=h)||d;sx(a.g[f],g&&k,e,!g||h)}},vx=function(a,b,c){a=dc(a.g,function(d){return b(d)});return c?a:Ex(a)},xx=function(a,b,c){var d=jc(a.j,function(e){return b<=e});return d==-1?0:c(a.g[d])},Ex=function(a){return dc(a,function(b,c,d){return c>0?d[c]-d[c-1]:d[c]})};var Fx=function(){this.j=new ux;this.aa=this.ba=0;this.ga=new rx;this.H=this.B=-1;this.Pa=1E3;this.Ra=new ux([1,.9,.8,.7,.6,.5,.4,.3,.2,.1,0]);this.O=this.K=-1},Gx=function(a,b){return zx(a.j,b===void 0?!0:b)};
Fx.prototype.F=function(a,b,c,d){this.B=this.B!=-1?Math.min(this.B,b.Y):b.Y;this.H=Math.max(this.H,b.Y);this.K=this.K!=-1?Math.min(this.K,b.Ka):b.Ka;this.O=Math.max(this.O,b.Ka);Dx(this.Ra,b.Ka,c.Ka,b.g,a,d);this.ba+=a;b.Y===0&&(this.aa+=a);Dx(this.j,b.Y,c.Y,b.g,a,d);c=d||c.Fc!=b.Fc?c.isVisible()&&b.isVisible():c.isVisible();b=!b.isVisible()||b.g;sx(this.ga,c,a,b)};Fx.prototype.Ib=function(){return this.ga.l>=this.Pa};if(Um&&Um.URL){var Hx=Um.URL,Ix;if(Ix=!!Hx){var Jx;a:{if(Hx){var Kx=RegExp(".*[?]google_debug(=[^&]*)?(&.*)?$");try{var Lx=Kx.exec(decodeURIComponent(Hx));if(Lx){Jx=Lx[1]&&Lx[1].length>1?Lx[1].substring(1):"true";break a}}catch(a){}}Jx=""}Ix=Jx.length>0}gw.Vg(!Ix)}var Mx=function(a,b,c,d){var e=e===void 0?!1:e;c=kw(d,c);Ej(a,b,c,{capture:e})};var Nx=new K(0,0,0,0);function Ox(a,b){b=Px(b);return b===0?0:Px(a)/b}function Px(a){return Math.max(a.bottom-a.top,0)*Math.max(a.right-a.left,0)}function Qx(a,b){if(!a||!b)return!1;for(var c=0;a!==null&&c++<100;){if(a===b)return!0;try{if(a=a.parentElement||a){var d=Er(a),e=d&&Kr(d),f=e&&e.frameElement;f&&(a=f)}}catch(g){break}}return!1}
function Rx(a,b,c){if(!a||!b)return!1;b=Dm(a.clone(),-b.left,-b.top);a=(b.left+b.right)/2;b=(b.top+b.bottom)/2;xl(window.top)&&window.top&&window.top.document&&(window=window.top);if(!yw())return!1;a=window.document.elementFromPoint(a,b);if(!a)return!1;b=(b=(b=Er(c))&&b.defaultView&&b.defaultView.frameElement)&&Qx(b,a);var d=a===c;a=!d&&a&&Wr(a,function(e){return e===c});return!(b||d||a)}
function Sx(a,b,c,d){return Qw().l?!1:a.getWidth()<=0||a.getHeight()<=0?!0:c&&d?jw(208,function(){return Rx(a,b,c)}):!1};var Tx=new K(0,0,0,0),Vx=function(a,b,c){R.call(this);this.position=Tx.clone();this.Se=this.ye();this.xg=-2;this.ul=Date.now();this.zi=-1;this.Je=b;this.Ie=null;this.Cd=!1;this.cf=null;this.opacity=-1;this.bl=c;this.xl=!1;this.zg=function(){};this.Bi=function(){};this.La=new Hv;this.La.fc=a;this.La.g=a;this.Gb=!1;this.zc={Dg:null,Cg:null};this.ti=!0;this.Td=null;this.Zc=this.tk=!1;S().D++;this.Ia=this.og();this.yi=-1;this.X=null;this.Sh=this.qk=!1;this.P=new xv;Fv(this.P);Ux(this);this.bl==1?Av(this.P,
"od",1):Av(this.P,"od",0)};t(Vx,R);Vx.prototype.R=function(){this.La.g&&(this.zc.Dg&&(Fj(this.La.g,"mouseover",this.zc.Dg),this.zc.Dg=null),this.zc.Cg&&(Fj(this.La.g,"mouseout",this.zc.Cg),this.zc.Cg=null));this.Td&&this.Td.dispose();this.X&&this.X.dispose();delete this.Se;delete this.zg;delete this.Bi;delete this.La.fc;delete this.La.g;delete this.zc;delete this.Td;delete this.X;delete this.P;R.prototype.R.call(this)};var Wx=function(a){return a.X?a.X.g:a.position};Vx.prototype.lf=function(a){S().lf(a)};
Vx.prototype.mf=function(a){S().mf(a)};var Ux=function(a){a=a.La.fc;var b;if(b=a&&a.getAttribute)b=/-[a-z]/.test("googleAvInapp")?!1:Gv&&a.dataset?"googleAvInapp"in a.dataset:a.hasAttribute?a.hasAttribute("data-"+al()):!!a.getAttribute("data-"+al());b&&(Qw().j=!0)};Vx.prototype.xb=function(){return!1};Vx.prototype.ye=function(){return new Fx};Vx.prototype.Ga=function(){return this.Se};
var Xx=function(a,b){b!=a.Zc&&(a.Zc=b,a=Qw(),b?a.C++:a.C>0&&a.C--)},Yx=function(a,b){if(a.X){if(b.getName()===a.X.getName())return;a.X.dispose();a.X=null}b=b.create(a.La.g,a.P,a.xb());if(b=b!=null&&b.Ff()?b:null)a.X=b},Zx=function(a,b,c){if(!a.Ie||a.Je==-1||b.getTimestamp()===-1||a.Ie.getTimestamp()===-1)return 0;a=b.getTimestamp()-a.Ie.getTimestamp();return a>c?0:a};Vx.prototype.Oh=function(a){return Zx(this,a,1E4)};
var $x=function(a,b,c){if(a.X){a.X.Tb();var d=a.X.L,e=d.l,f=e.g;if(d.A!=null){var g=d.j;a.cf=new Bm(g.left-f.left,g.top-f.top)}f=a.vf()?Math.max(d.g,d.o):d.g;g={};e.volume!==null&&(g.volume=e.volume);e=a.Oh(d);a.Ie=d;a.ah(f,b,c,!1,g,e,d.C)}},ay=function(a){if(a.Cd&&a.Td){var b=Bv(a.P,"od")==1,c=Qw().g,d=a.Td,e=a.X?a.X.getName():"ns",f=a.cf,g=new Em(c.getWidth(),c.getHeight());c=a.vf();a={ql:e,cf:f,Kl:g,vf:c,Y:a.Ia.Y,Fl:b};if(b=d.j){b.Tb();e=b.L;f=e.l.g;var h=g=null;e.A!=null&&f&&(g=e.j,g=new Bm(g.left-
f.left,g.top-f.top),h=new Em(f.right-f.left,f.bottom-f.top));e=c?Math.max(e.g,e.o):e.g;c={ql:b.getName(),cf:g,Kl:h,vf:c,Fl:!1,Y:e}}else c=null;c&&qx(d,a,c)}};m=Vx.prototype;m.ah=function(a,b,c,d,e,f,g){this.Gb||(this.Cd&&(a=this.Pf(a,c,e,g),d=d&&this.Ia.Y>=(this.Fc()?.3:.5),this.bh(f,a,d),this.Je=b,a.Y>0&&-1===this.yi&&(this.yi=b),this.zi==-1&&this.Ib()&&(this.zi=b),this.xg==-2&&(this.xg=Px(Wx(this))?a.Y:-1),this.Ia=a),this.zg(this))};m.bh=function(a,b,c){this.Ga().F(a,b,this.Ia,c)};m.og=function(){return new kv};
m.Pf=function(a,b,c,d){c=this.og();c.g=b;b=Pv().j;b=Nv()?-1:b.isVisible()?0:1;c.j=b;c.Y=this.Xf(a);c.Fc=this.Fc();c.Ka=d;return c};m.Xf=function(a){return this.opacity===0&&Bv(this.P,"opac")===1?0:a};m.Fc=function(){return!1};m.vf=function(){return this.qk||this.tk};m.Va=function(){return 0};m.Ib=function(){return this.Se.Ib()};m.Ph=function(){var a=this.Cd;a=(this.Sh||this.Fb())&&!a;var b=S().j!==2||this.xl;return this.Gb||b&&a?2:this.Ib()?4:3};m.we=function(){return 0};
var by=function(a,b,c){b&&(a.zg=b);c&&(a.Bi=c)};var cy=function(){};cy.prototype.next=function(){return dy};var dy={done:!0,value:void 0};cy.prototype.Rc=function(){return this};var ey=function(){this.o=this.g=this.l=this.j=this.A=0},fy=function(a){var b={};b=(b.ptlt=Za()-a.A,b);var c=a.j;c&&(b.pnk=c);(c=a.l)&&(b.pnc=c);(c=a.o)&&(b.pnmm=c);(a=a.g)&&(b.pns=a);return b};var gy=function(){kv.call(this);this.fullscreen=!1;this.volume=void 0;this.paused=!1;this.mediaTime=-1};t(gy,kv);var hy=function(a){return Lw(a.volume)&&a.volume>0};var jy=function(a,b,c,d){c=c===void 0?!0:c;d=d===void 0?function(){return!0}:d;return function(e){var f=e[a];if(Array.isArray(f)&&d(e))return iy(f,b,c)}},ky=function(a,b){return function(c){return b(c)?c[a]:void 0}},ly=function(a){return function(b){for(var c=0;c0?f[e-1]+1:0,d+1).reduce(function(g,h){return g+
h},0)})};var my=ly([void 0,1,2,3,4,8,16]),ny=ly([void 0,4,8,16]),oy={sv:"sv",v:"v",cb:"cb",e:"e",nas:"nas",msg:"msg","if":"if",sdk:"sdk",p:"p",p0:ky("p0",ny),p1:ky("p1",ny),p2:ky("p2",ny),p3:ky("p3",ny),cp:"cp",tos:"tos",mtos:"mtos",amtos:"amtos",mtos1:jy("mtos1",[0,2,4],!1,ny),mtos2:jy("mtos2",[0,2,4],!1,ny),mtos3:jy("mtos3",[0,2,4],!1,ny),mcvt:"mcvt",ps:"ps",scs:"scs",bs:"bs",vht:"vht",mut:"mut",a:"a",a0:ky("a0",ny),a1:ky("a1",ny),a2:ky("a2",ny),a3:ky("a3",ny),ft:"ft",dft:"dft",at:"at",dat:"dat",as:"as",
vpt:"vpt",gmm:"gmm",std:"std",efpf:"efpf",swf:"swf",nio:"nio",px:"px",nnut:"nnut",vmer:"vmer",vmmk:"vmmk",vmiec:"vmiec",nmt:"nmt",tcm:"tcm",bt:"bt",pst:"pst",vpaid:"vpaid",dur:"dur",vmtime:"vmtime",dtos:"dtos",dtoss:"dtoss",dvs:"dvs",dfvs:"dfvs",dvpt:"dvpt",fmf:"fmf",vds:"vds",is:"is",i0:"i0",i1:"i1",i2:"i2",i3:"i3",ic:"ic",cs:"cs",c:"c",c0:ky("c0",ny),c1:ky("c1",ny),c2:ky("c2",ny),c3:ky("c3",ny),mc:"mc",nc:"nc",mv:"mv",nv:"nv",qmt:ky("qmtos",my),qnc:ky("qnc",my),qmv:ky("qmv",my),qnv:ky("qnv",my),
raf:"raf",rafc:"rafc",lte:"lte",ces:"ces",tth:"tth",femt:"femt",femvt:"femvt",emc:"emc",emuc:"emuc",emb:"emb",avms:"avms",nvat:"nvat",qi:"qi",psm:"psm",psv:"psv",psfv:"psfv",psa:"psa",pnk:"pnk",pnc:"pnc",pnmm:"pnmm",pns:"pns",ptlt:"ptlt",pngs:"pings",veid:"veid",ssb:"ssb",ss0:ky("ss0",ny),ss1:ky("ss1",ny),ss2:ky("ss2",ny),ss3:ky("ss3",ny),dc_rfl:"urlsigs",obd:"obd",omidp:"omidp",omidr:"omidr",omidv:"omidv",omida:"omida",omids:"omids",omidpv:"omidpv",omidam:"omidam",omidct:"omidct",omidia:"omidia",
omiddc:"omiddc",omidlat:"omidlat",omiddit:"omiddit",nopd:"nopd",co:"co",tm:"tm",tu:"tu"},py=Object.assign({},oy,{avid:function(a){return function(){return a}}("audio"),avas:"avas",vs:"vs"}),qy={atos:"atos",avt:jy("atos",[2]),davs:"davs",dafvs:"dafvs",dav:"dav",ss:function(a,b){return function(c){return c[a]===void 0&&b!==void 0?b:c[a]}}("ss",0),t:"t"};var ry=function(){this.j=this.g=""};var sy=function(){},ty=function(a,b){var c={};if(a!==void 0)if(b!=null)for(var d in b){var e=b[d];d in Object.prototype||e!=null&&(c[d]=typeof e==="function"?e(a):a[e])}else Xj(c,a);return lx(jx(new hx,c))};var uy=function(){var a={};this.j=(a.vs=[1,0],a.vw=[0,1],a.am=[2,2],a.a=[4,4],a.f=[8,8],a.bm=[16,16],a.b=[32,32],a.avw=[0,64],a.avs=[64,0],a.pv=[256,256],a.gdr=[0,512],a.p=[0,1024],a.r=[0,2048],a.m=[0,4096],a.um=[0,8192],a.ef=[0,16384],a.s=[0,32768],a.pmx=[0,16777216],a.mut=[33554432,33554432],a.umutb=[67108864,67108864],a.tvoff=[134217728,134217728],a);this.g={};for(var b in this.j)this.j[b][1]>0&&(this.g[b]=0);this.l=0};
uy.prototype.reportEvent=function(a){var b=this.j[a],c=b[1];this.l+=b[0];c>0&&this.g[a]==0&&(this.g[a]=1)};var vy=function(a){var b=Nj(a.j),c=0,d;for(d in a.g)kc(b,d)&&a.g[d]==1&&(c+=a.j[d][1],a.g[d]=2);return c},wy=function(a){var b=0,c;for(c in a.g){var d=a.g[c];if(d==1||d==2)b+=a.j[c][1]}return b};var yy=function(){this.g=this.j=0};yy.prototype.getValue=function(){return this.j};var zy=function(a,b,c){b>=32||(a.g&1<=.5;Lw(b.volume)&&(this.o=this.o!=-1?Math.min(this.o,b.volume):b.volume,this.C=Math.max(this.C,b.volume));f&&(this.N+=a,this.J+=e?a:0);Dx(this.g,b.Y,c.Y,b.g,a,d,e);sx(this.l,!0,a);sx(this.A,e,a);sx(this.L,c.fullscreen,a);sx(this.lb,e&&!f,a);a=Math.floor(b.mediaTime/1E3);zy(this.U,a,b.isVisible());zy(this.Da,a,b.Y>=1);zy(this.ma,a,hy(b))}};var Cy=function(){this.l=!1};Cy.prototype.j=function(a){this.l||(this.g(a)?(a=this.F.report(this.o,a),this.A|=a,a=a==0):a=!1,this.l=a)};var Dy=function(a,b){this.l=!1;this.o=a;this.F=b;this.A=0};t(Dy,Cy);Dy.prototype.g=function(){return!0};Dy.prototype.C=function(){return!1};Dy.prototype.getId=function(){var a=this,b=Qj(function(c){return c==a.o});return zq[b].toString()};Dy.prototype.toString=function(){var a="";this.C()&&(a+="c");this.l&&(a+="s");this.A>0&&(a+=":"+this.A);return this.getId()+a};var Ey=function(a,b){Dy.call(this,a,b);this.B=[]};t(Ey,Dy);Ey.prototype.j=function(a,b){b=b===void 0?null:b;b!=null&&this.B.push(b);Dy.prototype.j.call(this,a)};var Fy=function(){};var Gy=function(){};t(Gy,Fy);Gy.prototype.j=function(){return null};Gy.prototype.l=function(){return[]};var Hy=function(a,b,c,d){bx.call(this,a,b,c,d)};t(Hy,bx);m=Hy.prototype;m.Qf=function(){if(this.j){var a=this.j,b=this.l.g.l;try{try{var c=Jw(a.getBoundingClientRect())}catch(l){c=new K(0,0,0,0)}var d=c.right-c.left,e=c.bottom-c.top,f=Ew(a,b),g=f.x,h=f.y;var k=new K(Math.round(h),Math.round(g+d),Math.round(h+e),Math.round(g))}catch(l){k=Nx.clone()}this.o=k;this.g=cx(this,this.o)}};m.Ah=function(){this.B=this.l.o.g};m.Uh=function(a){var b=Bv(this.P,"od")==1;return Sx(a,this.B,this.j,b)};
m.Bh=function(){this.timestamp=tw()};
m.Tb=function(){this.Bh();this.Qf();if(this.j&&typeof this.j.videoWidth==="number"&&typeof this.j.videoHeight==="number"){var a=this.j;var b=new Em(a.videoWidth,a.videoHeight);a=this.g;var c=a.getWidth(),d=a.getHeight(),e=b.width;b=b.height;e<=0||b<=0||c<=0||d<=0||(e/=b,b=c/d,a=a.clone(),e>b?(c/=e,d=(d-c)/2,d>0&&(d=a.top+d,a.top=Math.round(d),a.bottom=Math.round(d+c))):(d*=e,c=Math.round((c-d)/2),c>0&&(c=a.left+c,a.left=Math.round(c),a.right=Math.round(c+d))));this.g=a}this.Ah();a=this.g;c=this.B;
a=a.left<=c.right&&c.left<=a.right&&a.top<=c.bottom&&c.top<=a.bottom?new K(Math.max(a.top,c.top),Math.min(a.right,c.right),Math.min(a.bottom,c.bottom),Math.max(a.left,c.left)):new K(0,0,0,0);c=a.top>=a.bottom||a.left>=a.right?new K(0,0,0,0):a;a=this.l.o;b=e=d=0;if((this.g.bottom-this.g.top)*(this.g.right-this.g.left)>0)if(this.Uh(c))c=new K(0,0,0,0);else{d=Qw().A;b=new K(0,d.height,d.width,0);var f;d=Ox(c,(f=this.C)!=null?f:this.g);e=Ox(c,Qw().g);b=Ox(c,b)}f=c.top>=c.bottom||c.left>=c.right?new K(0,
0,0,0):Dm(c,-this.g.left,-this.g.top);Rw()||(e=d=0);this.L=new ww(a,this.j,this.g,f,d,e,this.timestamp,b)};m.getName=function(){return this.l.getName()};var Iy=new K(0,0,0,0),Jy=function(a,b,c){bx.call(this,null,a,b,c);this.F=a.isActive();this.D=0};t(Jy,Hy);m=Jy.prototype;m.Ff=function(){this.A();return!0};m.Xb=function(){Hy.prototype.Tb.call(this)};m.Bh=function(){};m.Qf=function(){};m.Tb=function(){this.A();Hy.prototype.Tb.call(this)};m.Xc=function(a){a=a.isActive();a!==this.F&&(a?this.A():(Qw().g=new K(0,0,0,0),this.g=new K(0,0,0,0),this.B=new K(0,0,0,0),this.timestamp=-1));this.F=a};function Ky(a){return[a.top,a.left,a.bottom,a.right]}
var Ly={},My=(Ly.firstquartile=0,Ly.midpoint=1,Ly.thirdquartile=2,Ly.complete=3,Ly),Ny=function(a,b,c,d,e,f){f=f===void 0?new Gy:f;Vx.call(this,b,c,d);this.Mg=e;this.dg=0;this.pa={};this.la=new uy;this.Fi={};this.Aa="";this.lc=null;this.od=!1;this.g=[];this.Kb=f.j();this.C=f.l();this.A=null;this.l=-1;this.ca=this.F=void 0;this.K=this.H=0;this.U=-1;this.Pa=this.Da=!1;this.O=this.D=this.j=this.ld=this.nd=0;new ux;this.ba=this.ga=0;this.ma=-1;this.wa=0;this.B=yj;this.N=[this.ye()];this.de=2;this.Pc=
{};this.Pc.pause="p";this.Pc.resume="r";this.Pc.skip="s";this.Pc.mute="m";this.Pc.unmute="um";this.Pc.exitfullscreen="ef";this.o=null;this.Ra=this.lb=!1;this.Yd=Math.floor(Date.now()/1E3-1704067200);this.aa=0};t(Ny,Vx);Ny.prototype.xb=function(){return!0};var Oy=function(a){a.Sh=!0;a.wa!=0&&(a.wa=3)},Py=function(a){return a===void 0?a:Number(a)?Iw(a,3):0};m=Ny.prototype;m.Oh=function(a){return Zx(this,a,Math.max(1E4,this.l/3))};
m.ah=function(a,b,c,d,e,f,g){var h=this,k=this.B(this)||{};Xj(k,e);this.l=k.duration||this.l;this.F=k.isVpaid||this.F;this.ca=k.isYouTube||this.ca;Pv();this.Ra=!1;e=Qy(this,b);Ry(this)===1&&(f=e);Vx.prototype.ah.call(this,a,b,c,d,k,f,g);this.Kb&&this.Kb.l&&ac(this.C,function(l){l.j(h)})};
m.bh=function(a,b,c){Vx.prototype.bh.call(this,a,b,c);Sy(this).F(a,b,this.Ia,c);this.Pa=hy(this.Ia)&&hy(b);this.U==-1&&this.Da&&(this.U=this.Ga().l.g);this.la.l=0;a=this.Ib();b.isVisible()&&this.la.reportEvent("vs");a&&this.la.reportEvent("vw");Lw(b.volume)&&this.la.reportEvent("am");hy(b)?this.la.reportEvent("a"):this.la.reportEvent("mut");this.Zc&&this.la.reportEvent("f");b.j!=-1&&(this.la.reportEvent("bm"),b.j==1&&(this.la.reportEvent("b"),hy(b)&&this.la.reportEvent("umutb")));hy(b)&&b.isVisible()&&
this.la.reportEvent("avs");this.Pa&&a&&this.la.reportEvent("avw");b.Y>0&&this.la.reportEvent("pv");Ty(this,this.Ga().l.g,!0)&&this.la.reportEvent("gdr");Ax(this.Ga().j,1)>=2E3&&this.la.reportEvent("pmx");this.Ra&&this.la.reportEvent("tvoff")};m.ye=function(){return new Ay};m.Ga=function(){return this.Se};var Sy=function(a,b){return a.N[b!=null&&b=0?c:-1;return a};
var Ry=function(a){var b=!!Bv(S().P,"umt");return a.F||!b&&!a.ca?0:1},Qy=function(a,b){a.wa==2?b=0:a.Je==-1?b=0:(b-=a.Je,b=b>Math.max(1E4,a.l/3)?0:b);var c=a.B(a)||{};c=c.currentTime!==void 0?c.currentTime:a.H;var d=c-a.H,e=0;d>=0?(a.K+=b,a.ba+=Math.max(b-d,0),e=Math.min(d,a.K)):a.ga+=Math.abs(d);d!=0&&(a.K=0);a.ma==-1&&d>0&&(a.ma=qw>=0?tw()-qw:-1);a.H=c;return e};Ny.prototype.Xf=function(a){return Qw().F?0:this.Zc?1:Vx.prototype.Xf.call(this,a)};Ny.prototype.Va=function(){return 1};
Ny.prototype.getDuration=function(){return this.l};
var Uy=function(a,b){fc(a.C,function(c){return c.o==b.o})||a.C.push(b)},Vy=function(a){var b=yx(a.Ga().g,1);return Ty(a,b)},Ty=function(a,b,c){return b>=15E3?!0:a.Da?(c===void 0?0:c)?!0:a.l>0?b>=a.l/2:a.U>0?b>=a.U:!1:!1},Wy=function(a){var b={},c=Qw();b.insideIframe=c.l;b.unmeasurable=a.Gb;var d=Wx(a),e=a.X?a.X.o:null;b.position=d;e&&!Cm(d,e)&&(b.containerPosition=e);b.exposure=a.Ia.Y;b.documentSize=c.o;b.viewportSize=new Em(c.g.getWidth(),c.g.getHeight());a.o!=null&&(b.presenceData=a.o);b.screenShare=
a.Ia.Ka;return b},Xy=function(a){var b=Iw(a.Ia.Y,2),c=a.la.l,d=a.Ia,e=Sy(a),f=Py(e.o),g=Py(e.C),h=Py(d.volume),k=Iw(e.B,2),l=Iw(e.H,2),p=Iw(d.Y,2),n=Iw(e.K,2),q=Iw(e.O,2);d=Iw(d.Ka,2);var r=Wx(a).clone().round();a=a.X&&a.X.o?(a.X?a.X.o:null).clone().round():null;e=Gx(e,!1);return{Jl:b,Hd:c,We:f,Pe:g,ud:h,Xe:k,Qe:l,Y:p,Ye:n,Re:q,Ka:d,position:r,yd:a,Ze:e}},Zy=function(a,b){Yy(a.g,b,function(){return{Jl:0,Hd:void 0,We:-1,Pe:-1,ud:-1,Xe:-1,Qe:-1,Y:-1,Ye:-1,Re:-1,Ka:-1,position:void 0,yd:void 0,Ze:[]}});
a.g[b]=Xy(a)},Yy=function(a,b,c){for(var d=a.length;d0?1:0;n.atos=wx(l.g);n.ssb=wx(l.Ra,!1);n.amtos=zx(l.g,!1);n.uac=a.nd;n.vpt=l.l.g;p=="nio"&&(n.nio=1,n.avms="nio");n.gmm="4";n.gdr=Ty(a,l.l.g,!0)?1:0;n.efpf=a.de;if(p=="gsv"||p=="nis")p=
a.X,p.D>0&&(n.nnut=p.D);n.tcm=Ry(a);n.nmt=a.ga;n.bt=a.ba;n.pst=a.ma;n.vpaid=a.F;n.dur=a.l;n.vmtime=a.H;n.is=a.la.l;a.g.length>=1&&(n.i0=a.g[0].Hd,n.a0=[a.g[0].ud],n.c0=[a.g[0].Y],n.ss0=[a.g[0].Ka],p=a.g[0].position,f=a.g[0].yd,n.p0=p?Ky(p):void 0,p&&f&&!Cm(f,p)&&(n.cp0=Ky(f)));a.g.length>=2&&(n.i1=a.g[1].Hd,n.a1=cz(a.g[1].We,a.g[1].ud,a.g[1].Pe),n.c1=cz(a.g[1].Xe,a.g[1].Y,a.g[1].Qe),n.ss1=cz(a.g[1].Ye,a.g[1].Ka,a.g[1].Re),p=a.g[1].position,f=a.g[1].yd,n.p1=p?Ky(p):void 0,p&&f&&!Cm(f,p)&&(n.cp1=Ky(f)),
n.mtos1=a.g[1].Ze);a.g.length>=3&&(n.i2=a.g[2].Hd,n.a2=cz(a.g[2].We,a.g[2].ud,a.g[2].Pe),n.c2=cz(a.g[2].Xe,a.g[2].Y,a.g[2].Qe),n.ss2=cz(a.g[2].Ye,a.g[2].Ka,a.g[2].Re),p=a.g[2].position,f=a.g[2].yd,n.p2=p?Ky(p):void 0,p&&f&&!Cm(f,p)&&(n.cp2=Ky(f)),n.mtos2=a.g[2].Ze);a.g.length>=4&&(n.i3=a.g[3].Hd,n.a3=cz(a.g[3].We,a.g[3].ud,a.g[3].Pe),n.c3=cz(a.g[3].Xe,a.g[3].Y,a.g[3].Qe),n.ss3=cz(a.g[3].Ye,a.g[3].Ka,a.g[3].Re),p=a.g[3].position,f=a.g[3].yd,n.p3=p?Ky(p):void 0,p&&f&&!Cm(f,p)&&(n.cp3=Ky(f)),n.mtos3=
a.g[3].Ze);n.cs=wy(a.la);b&&(n.ic=vy(a.la),n.dvpt=l.l.j,n.dvs=Bx(l.j,.5),n.dfvs=Bx(l.j,1),n.davs=Bx(l.g,.5),n.dafvs=Bx(l.g,1),c&&(l.l.j=0,Cx(l.j),Cx(l.g)),a.Ib()&&(n.dtos=l.N,n.dav=l.J,n.dtoss=a.dg+1,c&&(l.N=0,l.J=0,a.dg++)),n.dat=l.A.j,n.dft=l.L.j,c&&(l.A.j=0,l.L.j=0));n.ps=[h.o.width,h.o.height];n.bs=[h.g.getWidth(),h.g.getHeight()];n.scs=[h.A.width,h.A.height];n.dom=h.domain;a.ld&&(n.vds=a.ld);if(a.C.length>0||a.Kb)b=rc(a.C),a.Kb&&b.push(a.Kb),n.pings=dc(b,function(q){return q.toString()});b=dc(cc(a.C,
function(q){return q.C()}),function(q){return q.getId()});sc(b);n.ces=b;a.j&&(n.vmer=a.j);a.D&&(n.vmmk=a.D);a.O&&(n.vmiec=a.O);n.avms=a.X?a.X.getName():"ns";a.X&&Xj(n,a.X.Wb());d?(n.c=Iw(a.Ia.Y,2),n.ss=Iw(a.Ia.Ka,2)):n.tth=tw()-pw;n.mc=Iw(l.H,2);n.nc=Iw(l.B,2);n.mv=Py(l.C);n.nv=Py(l.o);n.lte=Iw(a.xg,2);d=Sy(a,e);Gx(l);n.qmtos=Gx(d);n.qnc=Iw(d.B,2);n.qmv=Py(d.C);n.qnv=Py(d.o);n.qas=d.o>0?1:0;n.qi=a.Aa;n.avms||(n.avms="geo");n.psm=l.U.g;n.psv=l.U.getValue();n.psfv=l.Da.getValue();n.psa=l.ma.getValue();
k=Dv(k.P);k.length&&(n.veid=k);a.o&&Xj(n,fy(a.o));n.avas=a.we();n.vs=a.Ph();n.co=dz(a);n.tm=l.ba;n.tu=l.aa;return n},$y=function(a,b){if(kc(yq,b))return!0;var c=a.pa[b];return c!==void 0?(a.pa[b]=!0,!c):!1};Ny.prototype.Ph=function(){return this.Gb?2:Vy(this)?5:this.Ib()?4:3};Ny.prototype.we=function(){return this.lb?this.Ga().A.l>=2E3?4:3:2};var dz=function(a){var b=a.aa.toString(10).padStart(2,"0");b=""+a.Yd+b;a.aa<99&&a.aa++;return b};var ez=Za(),hz=function(){this.g={};var a=Kr();fz(this,a,document);var b=gz();try{if("1"==b){for(var c=a.parent;c!=a.top;c=c.parent)fz(this,c,c.document);fz(this,a.top,a.top.document)}}catch(d){}},gz=function(){var a=document.documentElement;try{if(!xl(Kr().top))return"2";var b=[],c=Kr(a.ownerDocument);for(a=c;a!=c.top;a=a.parent)if(a.frameElement)b.push(a.frameElement);else break;return b&&b.length!=0?"1":"0"}catch(d){return"2"}},fz=function(a,b,c){Mx(c,"mousedown",function(){return iz(a)},301);
Mx(b,"scroll",function(){return jz(a)},302);Mx(c,"touchmove",function(){return kz(a)},303);Mx(c,"mousemove",function(){return lz(a)},304);Mx(c,"keydown",function(){return mz(a)},305)},iz=function(a){Ij(a.g,function(b){b.l>1E5||++b.l})},jz=function(a){Ij(a.g,function(b){b.g>1E5||++b.g})},kz=function(a){Ij(a.g,function(b){b.g>1E5||++b.g})},mz=function(a){Ij(a.g,function(b){b.j>1E5||++b.j})},lz=function(a){Ij(a.g,function(b){b.o>1E5||++b.o})};var nz=function(){this.g=[];this.j=[]},oz=function(a,b){return gc(a.g,function(c){return c.Aa==b})},pz=function(a,b){return b?gc(a.g,function(c){return c.La.fc==b}):null},qz=function(a,b){return gc(a.j,function(c){return c.Va()==2&&c.Aa==b})},sz=function(){var a=rz;return a.g.length==0?a.j:a.j.length==0?a.g:qc(a.j,a.g)};nz.prototype.reset=function(){this.g=[];this.j=[]};
var tz=function(a,b){a=b.Va()==1?a.g:a.j;var c=hc(a,function(d){return d==b});return c!=-1?(a.splice(c,1),b.X&&b.X.J(),b.dispose(),!0):!1},uz=function(a){var b=rz;if(tz(b,a)){switch(a.Va()){case 0:var c=function(){return null};case 2:c=function(){return qz(b,a.Aa)};break;case 1:c=function(){return oz(b,a.Aa)}}for(var d=c();d;d=c())tz(b,d)}},vz=function(a){var b=rz;a=cc(a,function(c){return!pz(b,c.La.fc)});b.g.push.apply(b.g,v(a))},wz=function(a){var b=[];ac(a,function(c){fc(rz.g,function(d){return d.La.fc===
c.La.fc&&d.Aa===c.Aa})||(rz.g.push(c),b.push(c))})},rz=L(nz);var xz=function(){this.g=this.j=null},yz=function(a,b){if(a.j==null)return!1;var c=function(d,e){b(d,e)};a.g=gc(a.j,function(d){return d!=null&&d.kh()});a.g&&(a.g.init(c)?Yw(a.g.g):b(a.g.g.Uc(),a.g));return a.g!=null};var Az=function(a){a=zz(a);dx.call(this,a.length?a[a.length-1]:new Uw(T,0));this.l=a;this.j=null};t(Az,dx);m=Az.prototype;m.getName=function(){return(this.j?this.j:this.g).getName()};m.Wb=function(){return(this.j?this.j:this.g).Wb()};m.Bb=function(){return(this.j?this.j:this.g).Bb()};m.init=function(a){var b=!1;ac(this.l,function(c){c.initialize()&&(b=!0)});b&&(this.o=a,Xw(this.g,this));return b};m.dispose=function(){ac(this.l,function(a){a.dispose()});dx.prototype.dispose.call(this)};
m.kh=function(){return fc(this.l,function(a){return a.H()})};m.md=function(){return fc(this.l,function(a){return a.H()})};m.Xd=function(a,b,c){return new Hy(a,this.g,b,c)};m.Xb=function(a){this.j=a.j};var zz=function(a){if(!a.length)return[];a=cc(a,function(c){return c!=null&&c.H()});for(var b=1;bc.time?b:c},a[0])};m=Cz.prototype;m.Tb=function(){var a=Ez(this);a.length>0&&Fz(this,a);Hy.prototype.Tb.call(this)};m.Qf=function(){};
m.Uh=function(){return!1};m.Ah=function(){};m.Wb=function(){var a={};return Object.assign(this.l.Wb(),(a.niot_obs=this.K,a.niot_cbk=this.H,a))};m.getName=function(){return"nio"};var Hz=function(a){a=a===void 0?T:a;dx.call(this,new Uw(a,2))};t(Hz,dx);Hz.prototype.getName=function(){return"nio"};Hz.prototype.md=function(){return!Qw().j&&this.g.g.l.IntersectionObserver!=null};Hz.prototype.Xd=function(a,b,c){return new Cz(a,this.g,b,c)};var Jz=function(){var a=Iz();Uw.call(this,T.top,a,"geo")};t(Jz,Uw);Jz.prototype.ma=function(){return Qw().g};Jz.prototype.H=function(){var a=Iz();this.J!==a&&(this.g!=this&&a>this.g.J&&(this.g=this,Vw(this)),this.J=a);return a==2};var Iz=function(){S();var a=Qw();return a.l||a.j?0:2};var Kz=function(){};var Lz=function(){this.done=!1;this.g={Aj:0,rh:0,Un:0,Gh:0,tg:-1,Nj:0,Mj:0,Oj:0,pl:0};this.A=null;this.C=!1;this.l=null;this.B=0;this.j=new Sw(this)},Oz=function(){var a=Mz;a.C||(a.C=!0,Nz(a,function(){return a.o.apply(a,v(Ga.apply(0,arguments)))}),a.o())};Lz.prototype.sample=function(){Pz(this,sz(),!1)};
var Qz=function(){L(Kz);var a=L(xz);a.g!=null&&a.g.g?Yw(a.g.g):Mw(Qw())},Pz=function(a,b,c){if(!a.done&&(a.j.cancel(),b.length!=0)){a.l=null;try{Qz();var d=tw();S().B=d;if(L(xz).g!=null)for(var e=0;e=0?tw()-ow:-1,h=tw();e.g.tg==-1&&(g=h);var k=Qw(),l=S(),p=Cv(l.P),n=sz();try{if(n.length>0){var q=k.g;q&&(p.bs=[q.getWidth(),q.getHeight()]);var r=k.o;r&&(p.ps=[r.width,r.height]);
T.screen&&(p.scs=[T.screen.width,T.screen.height])}else p.url=encodeURIComponent(T.location.href.substring(0,512)),f.referrer&&(p.referrer=encodeURIComponent(f.referrer.substring(0,512)));p.tt=g;p.pt=ow;p.bin=l.j;T.google_osd_load_pub_page_exp!==void 0&&(p.olpp=T.google_osd_load_pub_page_exp);p.deb=[1,e.g.Aj,e.g.rh,e.g.Gh,e.g.tg,0,e.j.j,e.g.Nj,e.g.Mj,e.g.Oj,e.g.pl,-1].join(";");p.tvt=Rz(e,h);k.j&&(p.inapp=1);if(T!==null&&T!=T.top){n.length>0&&(p.iframe_loc=encodeURIComponent(T.location.href.substring(0,
512)));var w=k.D;p.is=[w.getWidth(),w.getHeight()]}}catch(z){p.error=1}Mz.l=p}q=Vj(Mz.l);r=S().g;if(Bv(r.l,"prf")==1){w=new Tv;e=r.g;f=0;e.g>-1&&(f=e.l.g.now()-e.g);e=e.o+f;if(e!=null&&typeof e!=="number")throw Error("Value of float/double field must be a number, found "+typeof e+": "+e);w=Mg(w,1,e,0);e=r.g;w=nh(w,5,e.g>-1?e.j+1:e.j);w=ph(w,2,r.j.g.l());w=ph(w,3,r.j.g.j());r=ph(w,4,r.j.g.g());w={};r=(w.pf=Oc(r.g()),w)}else r={};Xj(q,r);Xj(b,d,c,q,a())}])},Mz=L(Lz);var Uz=null,Vz="",Wz=!1,Xz=function(){var a=Uz||T;if(!a)return"";var b=[];if(!a.location||!a.location.href)return"";b.push("url="+encodeURIComponent(a.location.href.substring(0,512)));a.document&&a.document.referrer&&b.push("referrer="+encodeURIComponent(a.document.referrer.substring(0,512)));return b.join("&")};function Yz(){var a="av.default_js_unreleased_RCxx".match(/_(\d{8})_RC\d+$/)||"av.default_js_unreleased_RCxx".match(/_(\d{8})_\d+_\d+$/)||"av.default_js_unreleased_RCxx".match(/_(\d{8})_\d+\.\d+$/)||"av.default_js_unreleased_RCxx".match(/_(\d{8})_\d+_RC\d+$/),b;if(((b=a)==null?void 0:b.length)==2)return a[1];a="av.default_js_unreleased_RCxx".match(/.*_(\d{2})\.(\d{4})\.\d+_RC\d+$/);var c;return((c=a)==null?void 0:c.length)==3?"20"+a[1]+a[2]:null}
var Zz=function(){return"ima_html5_sdk".includes("ima_html5_sdk")?{pb:"ima",qb:null}:"ima_html5_sdk".includes("ima_native_sdk")?{pb:"nima",qb:null}:"ima_html5_sdk".includes("admob-native-video-javascript")?{pb:"an",qb:null}:"av.default_js_unreleased_RCxx".includes("cast_js_sdk")?{pb:"cast",qb:Yz()}:"av.default_js_unreleased_RCxx".includes("youtube.player.web")?{pb:"yw",qb:Yz()}:"av.default_js_unreleased_RCxx".includes("outstream_web_client")?{pb:"out",qb:Yz()}:"av.default_js_unreleased_RCxx".includes("drx_rewarded_web")?
{pb:"r",qb:Yz()}:"av.default_js_unreleased_RCxx".includes("gam_native_web_video")?{pb:"n",qb:Yz()}:"av.default_js_unreleased_RCxx".includes("admob_interstitial_video")?{pb:"int",qb:Yz()}:{pb:"j",qb:null}},$z=Zz().pb,aA=Zz().qb;var cA=function(a,b){var c={sv:"966"};aA!==null&&(c.v=aA);c.cb=$z;c.nas=rz.g.length;c.msg=a;b!==void 0&&(a=bA(b))&&(c.e=zq[a]);return c},dA=function(a){return a.lastIndexOf("custom_metric_viewable",0)==0},bA=function(a){var b=dA(a)?"custom_metric_viewable":a.toLowerCase();return Qj(function(c){return c==b})};var eA={nm:"visible",Yl:"audible",xn:"time",yn:"timetype"},fA={visible:function(a){return/^(100|[0-9]{1,2})$/.test(a)},audible:function(a){return a=="0"||a=="1"},timetype:function(a){return a=="mtos"||a=="tos"},time:function(a){return/^(100|[0-9]{1,2})%$/.test(a)||/^([0-9])+ms$/.test(a)}},gA=function(){this.g=void 0;this.j=!1;this.l=0;this.o=-1;this.A="tos"},hA=function(a){try{var b=a.split(",");return b.length>Nj(eA).length?null:ec(b,function(c,d){d=d.toLowerCase().split("=");if(d.length!=2||fA[d[0]]===
void 0||!fA[d[0]](d[1]))throw Error("Entry ("+d[0]+", "+d[1]+") is invalid.");c[d[0]]=d[1];return c},{})}catch(c){return null}},iA=function(a,b){if(a.g==void 0)return 0;switch(a.A){case "mtos":return a.j?Ax(b.g,a.g):Ax(b.j,a.g);case "tos":return a.j?yx(b.g,a.g):yx(b.j,a.g)}return 0};var jA=function(a,b,c,d){Dy.call(this,b,d);this.B=a;this.D=c};t(jA,Dy);jA.prototype.getId=function(){return this.B};jA.prototype.C=function(){return!0};jA.prototype.g=function(a){var b=a.Ga(),c=a.getDuration();return fc(this.D,function(d){if(d.g!=void 0)var e=iA(d,b);else b:{switch(d.A){case "mtos":e=d.j?b.A.l:b.l.g;break b;case "tos":e=d.j?b.A.g:b.l.g;break b}e=0}e==0?d=!1:(d=d.l!=-1?d.l:c!==void 0&&c>0?d.o*c:-1,d=d!=-1&&e>=d);return d})};var kA=function(){};t(kA,sy);kA.prototype.g=function(a){var b=new ry;b.g=ty(a,oy);b.j=ty(a,qy);return b};var lA=function(a){Dy.call(this,"fully_viewable_audible_half_duration_impression",a)};t(lA,Dy);lA.prototype.g=function(a){return Vy(a)};var mA=function(a){this.g=a};t(mA,Fy);var nA=function(a,b){Dy.call(this,a,b)};t(nA,Dy);nA.prototype.g=function(a){return a.Ga().Ib()};var oA=function(a){Ey.call(this,"measurable_impression",a)};t(oA,Ey);oA.prototype.g=function(a){var b=kc(this.B,Bv(S().P,"ovms"));return!a.Gb&&(a.wa!=0||b)};var pA=function(){mA.apply(this,arguments)};t(pA,mA);pA.prototype.j=function(){return new oA(this.g)};pA.prototype.l=function(){return[new nA("viewable_impression",this.g),new lA(this.g)]};var qA=function(a,b,c){Jy.call(this,a,b,c)};t(qA,Jy);qA.prototype.A=function(){var a=Ka("ima.admob.getViewability"),b=Bv(this.P,"queryid");typeof a==="function"&&b&&a(b)};qA.prototype.getName=function(){return"gsv"};var rA=function(a){a=a===void 0?T:a;dx.call(this,new Uw(a,2))};t(rA,dx);rA.prototype.getName=function(){return"gsv"};rA.prototype.md=function(){var a=Qw();S();return a.j&&!1};rA.prototype.Xd=function(a,b,c){return new qA(this.g,b,c)};var sA=function(a,b,c){Jy.call(this,a,b,c)};t(sA,Jy);sA.prototype.A=function(){var a=this,b=Ka("ima.bridge.getNativeViewability"),c=Bv(this.P,"queryid");typeof b==="function"&&c&&b(c,function(d){Sj(d)&&a.D++;var e=d.opt_nativeViewVisibleBounds||{},f=d.opt_nativeViewHidden;a.g=Kw(d.opt_nativeViewBounds||{});var g=a.l.o;g.g=f?Iy.clone():Kw(e);a.timestamp=d.opt_nativeTime||-1;Qw().g=g.g;d=d.opt_nativeVolume;d!==void 0&&(g.volume=d)})};sA.prototype.getName=function(){return"nis"};var tA=function(a){a=a===void 0?T:a;dx.call(this,new Uw(a,2))};t(tA,dx);tA.prototype.getName=function(){return"nis"};tA.prototype.md=function(){var a=Qw();S();return a.j&&!1};tA.prototype.Xd=function(a,b,c){return new sA(this.g,b,c)};var uA=function(){Uw.call(this,T,2,"mraid");this.Da=0;this.N=this.O=!1;this.F=null;this.j=xw(this.l);this.o.g=new K(0,0,0,0);this.Pa=!1};t(uA,Uw);uA.prototype.H=function(){return this.j.Xa!=null};uA.prototype.ga=function(){var a={};this.Da&&(a.mraid=this.Da);this.O&&(a.mlc=1);a.mtop=this.j.nl;this.F&&(a.mse=this.F);this.Pa&&(a.msc=1);a.mcp=this.j.oe;return a};
uA.prototype.D=function(a){var b=Ga.apply(1,arguments);try{return this.j.Xa[a].apply(this.j.Xa,b)}catch(c){lw(538,c,.01,function(d){d.method=a})}};var vA=function(a,b,c){a.D("addEventListener",b,c)};
uA.prototype.initialize=function(){var a=this;if(this.A)return!this.Fd();this.A=!0;if(this.j.oe===2)return this.F="ng",Ww(this,"w"),!1;if(this.j.oe===1)return this.F="mm",Ww(this,"w"),!1;Qw().J=!0;this.l.document.readyState&&this.l.document.readyState=="complete"?wA(this):Mx(this.l,"load",function(){Pv().setTimeout(kw(292,function(){return wA(a)}),100)},292);return!0};
var wA=function(a){S().A=!!a.D("isViewable");vA(a,"viewableChange",xA);a.D("getState")==="loading"?vA(a,"ready",yA):zA(a)},zA=function(a){typeof a.j.Xa.AFMA_LIDAR==="string"?(a.O=!0,AA(a)):(a.j.oe=3,a.F="nc",Ww(a,"w"))},AA=function(a){a.N=!1;var b=Bv(S().P,"rmmt")==1,c=!!a.D("isViewable");(b?!c:1)&&Pv().setTimeout(kw(524,function(){a.N||(BA(a),lw(540,Error()),a.F="mt",Ww(a,"w"))}),500);CA(a);vA(a,a.j.Xa.AFMA_LIDAR,DA)},CA=function(a){var b=Bv(S().P,"sneio")==1,c=a.j.Xa.AFMA_LIDAR_EXP_1!==void 0,d=
a.j.Xa.AFMA_LIDAR_EXP_2!==void 0;(b=b&&d)&&(a.j.Xa.AFMA_LIDAR_EXP_2=!0);c&&(a.j.Xa.AFMA_LIDAR_EXP_1=!b)},BA=function(a){a.D("removeEventListener",a.j.Xa.AFMA_LIDAR,DA);a.O=!1};uA.prototype.ba=function(){var a=Qw(),b=EA(this,"getMaxSize");a.g=new K(0,b.width,b.height,0)};uA.prototype.aa=function(){Qw().A=EA(this,"getScreenSize")};
var EA=function(a,b){if(a.D("getState")==="loading")return new Em(-1,-1);b=a.D(b);if(!b)return new Em(-1,-1);a=parseInt(b.width,10);b=parseInt(b.height,10);return isNaN(a)||isNaN(b)?new Em(-1,-1):new Em(a,b)};uA.prototype.dispose=function(){BA(this);Uw.prototype.dispose.call(this)};
var yA=function(){try{var a=L(uA);a.D("removeEventListener","ready",yA);zA(a)}catch(b){lw(541,b)}},DA=function(a,b){try{var c=L(uA);c.N=!0;var d=a?new K(a.y,a.x+a.width,a.y+a.height,a.x):new K(0,0,0,0);var e=tw(),f=Rw();var g=new vw(e,f,c);g.g=d;g.volume=b;c.Xb(g)}catch(h){lw(542,h)}},xA=function(a){var b=S(),c=L(uA);a&&!b.A&&(b.A=!0,c.Pa=!0,c.F&&Ww(c,"w",!0))};var FA=function(a){this.key=a;this.defaultValue=!1;this.valueType="boolean"};var GA=new FA("45381479"),HA=new FA("45378663");var JA=function(){this.A=!1;this.N="";this.l=!1;this.g=this.j=null;var a={};this.ba=(a.start=this.hk,a.firstquartile=this.ck,a.midpoint=this.ek,a.thirdquartile=this.ik,a.complete=this.Zj,a.error=this.ak,a.pause=this.Lg,a.resume=this.ni,a.skip=this.gk,a.viewable_impression=this.tb,a.mute=this.kd,a.unmute=this.kd,a.fullscreen=this.dk,a.exitfullscreen=this.bk,a.fully_viewable_audible_half_duration_impression=this.tb,a.measurable_impression=this.tb,a.abandon=this.Lg,a.engagedview=this.tb,a.impression=
this.tb,a.creativeview=this.tb,a.progress=this.kd,a.custom_metric_viewable=this.tb,a.bufferstart=this.Lg,a.bufferfinish=this.ni,a.audio_measurable=this.tb,a.audio_audible=this.tb,a);a={};this.ca=(a.overlay_resize=this.fk,a.abandon=this.rg,a.close=this.rg,a.collapse=this.rg,a.overlay_unmeasurable_impression=function(b){return bz(b,"overlay_unmeasurable_impression",Rw())},a.overlay_viewable_immediate_impression=function(b){return bz(b,"overlay_viewable_immediate_impression",Rw())},a.overlay_unviewable_impression=
function(b){return bz(b,"overlay_unviewable_impression",Rw())},a.overlay_viewable_end_of_session_impression=function(b){return bz(b,"overlay_viewable_end_of_session_impression",Rw())},a);S().j=3;IA(this);this.F=null};JA.prototype.o=function(a){Xx(a,!1);uz(a)};JA.prototype.J=function(){};var KA=function(a,b,c,d){a=a.C(null,d,!0,b);a.A=c;vz([a]);return a};
JA.prototype.C=function(a,b,c,d){var e=this;a=new Ny(T,a,c?b:-1,7,this.Zf(),this.Eh());a.Aa=d;zv(a.P);Av(a.P,"queryid",a.Aa);a.lf(this.N);by(a,function(){return e.U.apply(e,v(Ga.apply(0,arguments)))},function(){return e.aa.apply(e,v(Ga.apply(0,arguments)))});(d=L(xz).g)&&Yx(a,d);this.F&&(a.X&&(a.X.C=this.F),this.F=null);a.La.fc&&L(Kz);return a};
var LA=function(a,b,c){rq(b);var d=a.g;ac(b,function(e){var f=dc(e.g,function(g){var h=hA(g);if(h==null)g=null;else if(g=new gA,h.visible!=null&&(g.g=h.visible/100),h.audible!=null&&(g.j=h.audible==1),h.time!=null){var k=h.timetype=="mtos"?"mtos":"tos",l=h.time,p=l.length-1;l=p>=0&&l.indexOf("%",p)==p?"%":"ms";h=parseInt(h.time,10);l=="%"&&(h/=100);l=="ms"?(g.l=h,g.o=-1):(g.l=-1,g.o=h);g.A=k===void 0?"tos":k}return g});fc(f,function(g){return g==null})||Uy(c,new jA(e.id,e.event,f,d))})},MA=function(){var a=
[],b=S();a.push(L(Jz));Bv(b.P,"mvp_lv")&&a.push(L(uA));b=[new rA,new tA];b.push(new Az(a));b.push(new Hz(T));return b},OA=function(a){if(!a.A){a.A=!0;try{var b=tw(),c=S(),d=Qw();ow=b;c.o=79463069;a.j!=="o"&&(Uz=Ll(T));if(Qv()){Mz.g.rh=0;Mz.g.tg=tw()-b;var e=MA(),f=L(xz);f.j=e;yz(f,function(){NA()})?Mz.done||(Sz(),Xw(f.g.g,a),Oz()):d.l?NA():Oz()}else Wz=!0}catch(g){throw rz.reset(),g;}}},PA=function(a){Mz.j.cancel();Vz=a;Mz.done=!0},QA=function(a){if(a.j)return a.j;var b=L(xz).g;if(b)switch(b.getName()){case "nis":a.j=
"n";break;case "gsv":a.j="m"}a.j||(a.j="h");return a.j},RA=function(a,b,c){if(a.g==null)return b.ld|=4,!1;a=a.g.report(c,b);b.ld|=a;return a==0};JA.prototype.Xc=function(a){switch(a.Bb()){case 0:if(a=L(xz).g)a=a.g,nc(a.B,this),a.L&&this.xb()&&$w(a);NA();break;case 2:Oz()}};JA.prototype.Xb=function(){};JA.prototype.xb=function(){return!1};var NA=function(){var a=[new Hz(T)],b=L(xz);b.j=a;yz(b,function(){PA("i")})?Mz.done||(Sz(),Oz()):PA("i")};
JA.prototype.aa=function(a,b){a.Gb=!0;switch(a.Va()){case 1:SA(a,b);break;case 2:this.Sg(a)}this.Tg(a)};var SA=function(a,b){if(!a.od){var c=bz(a,"start",Rw());c=a.Mg.g(c).g;var d={id:"lidarv"};d.r=b;d.sv="966";aA!==null&&(d.v=aA);el(c,function(e,f){return d[e]=e=="mtos"||e=="tos"?f:encodeURIComponent(f)});b=Xz();el(b,function(e,f){return d[e]=encodeURIComponent(f)});b="//pagead2.googlesyndication.com/pagead/gen_204?"+lx(jx(new hx,d));ox(b);a.od=!0}};m=JA.prototype;
m.hk=function(a){var b=a.B(a);b&&(b=b.volume,a.lb=Lw(b)&&b>0);Zy(a,0);return bz(a,"start",Rw())};m.kd=function(a,b,c){Pz(Mz,[a],!Rw());return this.tb(a,b,c)};m.tb=function(a,b,c){return bz(a,c,Rw())};m.ck=function(a){return TA(a,"firstquartile",1)};m.ek=function(a){a.Da=!0;return TA(a,"midpoint",2)};m.ik=function(a){return TA(a,"thirdquartile",3)};m.Zj=function(a){var b=TA(a,"complete",4);Oy(a);return b};m.ak=function(a){a.wa=3;return bz(a,"error",Rw())};
var TA=function(a,b,c){Pz(Mz,[a],!Rw());Zy(a,c);c!=4&&Yy(a.N,c,a.ye);return bz(a,b,Rw())};m=JA.prototype;m.ni=function(a,b,c){b=Rw();a.wa!=2||b||(a.Ga().D=tw());Pz(Mz,[a],!b);a.wa==2&&(a.wa=1);return bz(a,c,b)};m.gk=function(a,b){b=this.kd(a,b||{},"skip");Oy(a);return b};m.dk=function(a,b){Xx(a,!0);return this.kd(a,b||{},"fullscreen")};m.bk=function(a,b){Xx(a,!1);return this.kd(a,b||{},"exitfullscreen")};
m.Lg=function(a,b,c){b=a.Ga();b.ca=By(b,tw(),a.wa!=1);Pz(Mz,[a],!Rw());a.wa==1&&(a.wa=2);return bz(a,c,Rw())};m.fk=function(a){Pz(Mz,[a],!Rw());return a.j()};m.rg=function(a){Pz(Mz,[a],!Rw());this.ji(a);Oy(a);return a.j()};
var IA=function(a){Tz(function(){var b=UA();a.j!=null&&(b.sdk=a.j);var c=L(xz);c.g!=null&&(b.avms=c.g.getName());return b})},VA=function(a,b,c,d){var e=pz(rz,c);e!==null&&e.Aa!==b&&(a.o(e),e=null);e||(b=a.C(c,tw(),!1,b),rz.j.length==0&&(S().o=79463069),wz([b]),e=b,e.A=QA(a),d&&(e.lc=d));return e};JA.prototype.U=function(){};var XA=function(a,b){b.D=0;for(var c in vq)a[c]==null&&(b.D|=vq[c]);WA(a,"currentTime");WA(a,"duration")};m=JA.prototype;m.Sg=function(){};m.ji=function(){};m.lh=function(){};
m.Tg=function(){};m.ag=function(){};m.Eh=function(){this.g||(this.g=this.ag());return this.g==null||this.l?new Gy:new pA(this.g)};m.Zf=function(){return new kA};var WA=function(a,b){var c=a[b];c!==void 0&&c>0&&(a[b]=Math.floor(c*1E3))},UA=function(){var a=Qw(),b={},c={},d={};return Object.assign({},(b.sv="966",b),aA!==null&&(c.v=aA,c),(d["if"]=a.l?"1":"0",d.nas=String(rz.g.length),d))};var YA=function(a){Dy.call(this,"audio_audible",a)};t(YA,Dy);YA.prototype.g=function(a){return a.we()==4};var ZA=function(a){Ey.call(this,"audio_measurable",a)};t(ZA,Ey);ZA.prototype.g=function(a){a=a.we();return a==3||a==4};var $A=function(){mA.apply(this,arguments)};t($A,mA);$A.prototype.j=function(){return new ZA(this.g)};$A.prototype.l=function(){return[new YA(this.g)]};var aB=function(){};t(aB,sy);aB.prototype.g=function(a){a&&(a.e===28&&(a=Object.assign({},a,{avas:3})),a.vs===4||a.vs===5)&&(a=Object.assign({},a,{vs:3}));var b=new ry;b.g=ty(a,py);b.j=ty(a,qy);return b};var bB=function(a){this.j=a};bB.prototype.report=function(a,b){var c=this.g(b);if(typeof c==="function"){var d={};var e={};d=Object.assign({},aA!==null&&(d.v=aA,d),(e.sv="966",e.cb=$z,e.e=cB(a),e));e=bz(b,a,Rw());Xj(d,e);b.Fi[a]=e;d=b.Va()==2?nx(d).join("&"):b.Mg.g(d).g;try{return c(b.Aa,d,a),0}catch(f){return 2}}else return 1};var cB=function(a){var b=dA(a)?"custom_metric_viewable":a;a=Qj(function(c){return c==b});return zq[a]};bB.prototype.g=function(){return Ka(this.j)};var dB=function(a,b){this.j=a;this.l=b};t(dB,bB);dB.prototype.g=function(a){if(!a.lc)return bB.prototype.g.call(this,a);if(this.l[a.lc])return function(){};lw(393,Error());return null};var eB=function(){JA.call(this);this.H=void 0;this.K=null;this.L=!1;this.D={};this.O=0;this.B="ACTIVE_VIEW_TRAFFIC_TYPE_UNSPECIFIED"};t(eB,JA);var fB=function(){var a=L(eB),b=QA(a)=="h"||QA(a)=="b",c=!(S(),!1);b&&c&&(a.L=!0,a.K=new hz)};
eB.prototype.J=function(a,b){var c=this,d=L(xz);if(d.g!=null)switch(d.g.getName()){case "nis":var e=gB(this,a,b);break;case "gsv":e=hB(this,a,b);break;case "exc":e=iB(this,a)}e||(b.opt_overlayAdElement?e=void 0:b.opt_adElement&&(e=VA(this,a,b.opt_adElement,b.opt_osdId)));e&&e.Va()==1&&(e.B==yj&&(e.B=function(f){return c.lh(f)}),jB(this,e,b));return e};var jB=function(a,b,c){c=c.opt_configurable_tracking_events;a.g!=null&&Array.isArray(c)&&LA(a,c,b)};
eB.prototype.lh=function(a){a.j=0;a.O=0;if(a.A=="h"||a.A=="n"){if(S().l)var b=Ka("ima.bridge.getVideoMetadata");else if(a.lc&&kB(this)){var c=this.D[a.lc];c?b=function(e){return lB(c,e)}:c!==null&&lw(379,Error())}else b=Ka("ima.common.getVideoMetadata");if(typeof b==="function")try{var d=b(a.Aa)}catch(e){a.j|=4}else a.j|=2}else if(a.A=="b")if(b=Ka("ytads.bulleit.getVideoMetadata"),typeof b==="function")try{d=b(a.Aa)}catch(e){a.j|=4}else a.j|=2;else if(a.A=="ml")if(b=Ka("ima.common.getVideoMetadata"),
typeof b==="function")try{d=b(a.Aa)}catch(e){a.j|=4}else a.j|=2;else a.j|=1;a.j||(d===void 0?a.j|=8:d===null?a.j|=16:Sj(d)?a.j|=32:d.errorCode!=null&&(a.O=d.errorCode,a.j|=64));d==null&&(d={});XA(d,a);Lw(d.volume)&&Lw(this.H)&&(d.volume*=this.H);return d};
var hB=function(a,b,c){var d=oz(rz,b);d||(d=c.opt_nativeTime||-1,d=KA(a,b,QA(a),d),c.opt_osdId&&(d.lc=c.opt_osdId));return d},gB=function(a,b,c){var d=oz(rz,b);d||(d=KA(a,b,"n",c.opt_nativeTime||-1));return d},iB=function(a,b){var c=oz(rz,b);c||(c=KA(a,b,"h",-1));return c};eB.prototype.ag=function(){if(kB(this))return new dB("ima.common.triggerExternalActivityEvent",this.D);var a=mB(this);return a!=null?new bB(a):null};
var mB=function(a){var b=S();switch(QA(a)){case "b":return"ytads.bulleit.triggerExternalActivityEvent";case "n":return"ima.bridge.triggerExternalActivityEvent";case "h":if(b.l)return"ima.bridge.triggerExternalActivityEvent";case "m":case "ml":return"ima.common.triggerExternalActivityEvent"}return null};eB.prototype.Sg=function(a){!a.g&&a.Gb&&RA(this,a,"overlay_unmeasurable_impression")&&(a.g=!0)};
eB.prototype.ji=function(a){a.ti&&(a.Ib()?RA(this,a,"overlay_viewable_end_of_session_impression"):RA(this,a,"overlay_unviewable_impression"),a.ti=!1)};
var nB=function(a,b,c,d){c=c===void 0?{}:c;var e={};Xj(e,{opt_adElement:void 0,opt_fullscreen:void 0},c);var f=a.J(b,c);c=f?f.Mg:a.Zf();if(e.opt_bounds)return c.g(cA("ol",d));if(d!==void 0)if(bA(d)!==void 0)if(Wz)a=cA("ue",d);else if(OA(a),Vz=="i")a=cA("i",d),a["if"]=0;else if(b=a.J(b,e)){b:{Vz=="i"&&(b.Gb=!0,a.Tg(b));f=e.opt_fullscreen;f!==void 0&&Xx(b,!!f);var g;if(g=!Qw().j&&!wr()&&Nv(Pv().j)){switch(b.Va()){case 1:SA(b,"pv");break;case 2:a.Sg(b)}PA("pv")}f=d.toLowerCase();if(g=!g)c:{if(Bv(S().P,
"ssmol")&&(g=a.l,f==="loaded"))break c;g=kc(wq,f)}if(g&&b.wa==0){Vz!="i"&&(Mz.done=!1);g=e!==void 0?e.opt_nativeTime:void 0;qw=g=typeof g==="number"?g:tw();b.Cd=!0;var h=Rw();b.wa=1;b.pa={};b.pa.start=!1;b.pa.firstquartile=!1;b.pa.midpoint=!1;b.pa.thirdquartile=!1;b.pa.complete=!1;b.pa.resume=!1;b.pa.pause=!1;b.pa.skip=!1;b.pa.mute=!1;b.pa.unmute=!1;b.pa.viewable_impression=!1;b.pa.measurable_impression=!1;b.pa.fully_viewable_audible_half_duration_impression=!1;b.pa.fullscreen=!1;b.pa.exitfullscreen=
!1;b.dg=0;h||(b.Ga().D=g);Pz(Mz,[b],!h)}(g=b.Pc[f])&&b.la.reportEvent(g);Bv(S().P,"fmd")||kc(xq,f)&&b.Kb&&b.Kb.j(b,null);switch(b.Va()){case 1:var k=dA(f)?a.ba.custom_metric_viewable:a.ba[f];break;case 2:k=a.ca[f]}if(k&&(d=k.call(a,b,e,d),Bv(S().P,"fmd")&&kc(xq,f)&&b.Kb&&b.Kb.j(b,null),d!==void 0)){e=cA(void 0,f);Xj(e,d);d=e;break b}d=void 0}b.wa==3&&a.o(b);a=d}else a=cA("nf",d);else a=void 0;else Wz?a=cA("ue"):f?(a=cA(),Xj(a,az(f,!0,!1,!1))):a=cA("nf");return typeof a==="string"?c.g():c.g(a)};
eB.prototype.U=function(a){this.l&&a.Va()==1&&oB(this,a)};eB.prototype.Tg=function(a){this.l&&a.Va()==1&&oB(this,a)};var oB=function(a,b){var c;if(b.lc&&kB(a)){var d=a.D[b.lc];d?c=function(f,g){pB(d,f,g)}:d!==null&&lw(379,Error())}else c=Ka("ima.common.triggerViewabilityMeasurementUpdate");if(typeof c==="function"){var e=Wy(b);e.nativeVolume=a.H;c(b.Aa,e)}},kB=function(a){return S().l||QA(a)!="h"&&QA(a)!="m"?!1:a.O!=0};
eB.prototype.C=function(a,b,c,d){if(Yv(S().flags,HA)){var e=Bv(S().P,"mm"),f={};(e=(f[uq.Ii]="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO",f[uq.VIDEO]="ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO",f)[e])&&e&&(this.B=e);this.B==="ACTIVE_VIEW_TRAFFIC_TYPE_UNSPECIFIED"&&lw(1044,Error())}a=JA.prototype.C.call(this,a,b,c,d);this.L&&(b=this.K,a.o==null&&(a.o=new ey),b.g[a.Aa]=a.o,a.o.A=ez);return a};eB.prototype.o=function(a){a&&a.Va()==1&&this.L&&delete this.K.g[a.Aa];return JA.prototype.o.call(this,a)};
eB.prototype.Eh=function(){this.g||(this.g=this.ag());return this.g==null||this.l?new Gy:this.B==="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO"?new $A(this.g):new pA(this.g)};eB.prototype.Zf=function(){return this.B==="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO"?new aB:new kA};var qB=function(a){var b={};return b.viewability=a.g,b.googleViewability=a.j,b},rB=function(a,b,c){c=c===void 0?{}:c;a=nB(L(eB),b,c,a);return qB(a)};C("Goog_AdSense_Lidar_sendVastEvent",kw(193,rB,void 0,UA));
C("Goog_AdSense_Lidar_getViewability",kw(194,function(a,b){b=b===void 0?{}:b;a=nB(L(eB),a,b);return qB(a)}));C("Goog_AdSense_Lidar_getUrlSignalsArray",kw(195,function(){return Rv()}));C("Goog_AdSense_Lidar_getUrlSignalsList",kw(196,function(){return JSON.stringify(Rv())}));var sB=sa(["//tpc.googlesyndication.com/sodar/",""]);A.console&&typeof A.console.log==="function"&&Xa(A.console.log,A.console);var tB=function(a){for(var b=[],c=a=Kr(a.ownerDocument);c!=a.top;c=c.parent)if(c.frameElement)b.push(c.frameElement);else break;return b};var uB=function(a,b){this.type=a;this.currentTarget=this.target=b;this.defaultPrevented=this.g=!1};uB.prototype.stopPropagation=function(){this.g=!0};uB.prototype.preventDefault=function(){this.defaultPrevented=!0};var vB=function(a,b){uB.call(this,a?a.type:"");this.relatedTarget=this.currentTarget=this.target=null;this.button=this.screenY=this.screenX=this.clientY=this.clientX=0;this.key="";this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1;this.state=null;this.pointerId=0;this.pointerType="";this.Qc=null;a&&this.init(a,b)};ab(vB,uB);
vB.prototype.init=function(a,b){var c=this.type=a.type,d=a.changedTouches&&a.changedTouches.length?a.changedTouches[0]:null;this.target=a.target||a.srcElement;this.currentTarget=b;b=a.relatedTarget;b||(c=="mouseover"?b=a.fromElement:c=="mouseout"&&(b=a.toElement));this.relatedTarget=b;d?(this.clientX=d.clientX!==void 0?d.clientX:d.pageX,this.clientY=d.clientY!==void 0?d.clientY:d.pageY,this.screenX=d.screenX||0,this.screenY=d.screenY||0):(this.clientX=a.clientX!==void 0?a.clientX:a.pageX,this.clientY=
a.clientY!==void 0?a.clientY:a.pageY,this.screenX=a.screenX||0,this.screenY=a.screenY||0);this.button=a.button;this.key=a.key||"";this.ctrlKey=a.ctrlKey;this.altKey=a.altKey;this.shiftKey=a.shiftKey;this.metaKey=a.metaKey;this.pointerId=a.pointerId||0;this.pointerType=a.pointerType;this.state=a.state;this.Qc=a;a.defaultPrevented&&vB.ib.preventDefault.call(this)};
vB.prototype.stopPropagation=function(){vB.ib.stopPropagation.call(this);this.Qc.stopPropagation?this.Qc.stopPropagation():this.Qc.cancelBubble=!0};vB.prototype.preventDefault=function(){vB.ib.preventDefault.call(this);var a=this.Qc;a.preventDefault?a.preventDefault():a.returnValue=!1};var wB="closure_listenable_"+(Math.random()*1E6|0),xB=function(a){return!(!a||!a[wB])};var yB=0;var zB=function(a,b,c,d,e){this.listener=a;this.proxy=null;this.src=b;this.type=c;this.capture=!!d;this.Be=e;this.key=++yB;this.Rd=this.ee=!1},AB=function(a){a.Rd=!0;a.listener=null;a.proxy=null;a.src=null;a.Be=null};var BB=function(a){this.src=a;this.g={};this.j=0};BB.prototype.add=function(a,b,c,d,e){var f=a.toString();a=this.g[f];a||(a=this.g[f]=[],this.j++);var g=CB(a,b,d,e);g>-1?(b=a[g],c||(b.ee=!1)):(b=new zB(b,this.src,f,!!d,e),b.ee=c,a.push(b));return b};BB.prototype.remove=function(a,b,c,d){a=a.toString();if(!(a in this.g))return!1;var e=this.g[a];b=CB(e,b,c,d);return b>-1?(AB(e[b]),oc(e,b),e.length==0&&(delete this.g[a],this.j--),!0):!1};
var DB=function(a,b){var c=b.type;c in a.g&&nc(a.g[c],b)&&(AB(b),a.g[c].length==0&&(delete a.g[c],a.j--))};BB.prototype.Dd=function(a,b,c,d){a=this.g[a.toString()];var e=-1;a&&(e=CB(a,b,c,d));return e>-1?a[e]:null};var CB=function(a,b,c,d){for(var e=0;e>>0),JB=function(a){if(typeof a==="function")return a;a[RB]||(a[RB]=function(b){return a.handleEvent(b)});return a[RB]};var U=function(){R.call(this);this.C=new BB(this);this.Pa=this;this.ba=null};ab(U,R);U.prototype[wB]=!0;m=U.prototype;m.addEventListener=function(a,b,c,d){IB(this,a,b,c,d)};m.removeEventListener=function(a,b,c,d){PB(this,a,b,c,d)};
m.dispatchEvent=function(a){var b,c=this.ba;if(c)for(b=[];c;c=c.ba)b.push(c);c=this.Pa;var d=a.type||a;if(typeof a==="string")a=new uB(a,c);else if(a instanceof uB)a.target=a.target||c;else{var e=a;a=new uB(d,c);Xj(a,e)}e=!0;var f;if(b)for(f=b.length-1;!a.g&&f>=0;f--){var g=a.currentTarget=b[f];e=SB(g,d,!0,a)&&e}a.g||(g=a.currentTarget=c,e=SB(g,d,!0,a)&&e,a.g||(e=SB(g,d,!1,a)&&e));if(b)for(f=0;!a.g&&f0){this.j--;var a=this.g;this.g=a.next;a.next=null}else a=this.l();return a};var VB=function(a,b){a.o(b);a.j<100&&(a.j++,b.next=a.g,a.g=b)};var WB=function(){this.j=this.g=null};WB.prototype.add=function(a,b){var c=XB.get();c.set(a,b);this.j?this.j.next=c:this.g=c;this.j=c};WB.prototype.remove=function(){var a=null;this.g&&(a=this.g,this.g=this.g.next,this.g||(this.j=null),a.next=null);return a};var XB=new UB(function(){return new YB},function(a){return a.reset()}),YB=function(){this.next=this.g=this.j=null};YB.prototype.set=function(a,b){this.j=a;this.g=b;this.next=null};YB.prototype.reset=function(){this.next=this.g=this.j=null};var ZB,$B=!1,aC=new WB,cC=function(a,b){ZB||bC();$B||(ZB(),$B=!0);aC.add(a,b)},bC=function(){var a=Promise.resolve(void 0);ZB=function(){a.then(dC)}};function dC(){for(var a;a=aC.remove();){try{a.j.call(a.g)}catch(b){pb(b)}VB(XB,a)}$B=!1};var eC=function(a){if(!a)return!1;try{return!!a.$goog_Thenable}catch(b){return!1}};var gC=function(a){this.g=0;this.B=void 0;this.o=this.j=this.l=null;this.A=this.C=!1;if(a!=yj)try{var b=this;a.call(void 0,function(c){fC(b,2,c)},function(c){fC(b,3,c)})}catch(c){fC(this,3,c)}},hC=function(){this.next=this.context=this.j=this.l=this.g=null;this.o=!1};hC.prototype.reset=function(){this.context=this.j=this.l=this.g=null;this.o=!1};
var iC=new UB(function(){return new hC},function(a){a.reset()}),jC=function(a,b,c){var d=iC.get();d.l=a;d.j=b;d.context=c;return d},lC=function(a,b,c){kC(a,b,c,null)||cC(Ya(b,a))},mC=function(a){return new gC(function(b){var c=a.length,d=[];if(c)for(var e=function(h,k,l){c--;d[h]=k?{Uj:!0,value:l}:{Uj:!1,reason:l};c==0&&b(d)},f,g=0;g1)));g=g.next)e||(f=g);e&&(c.g==0&&d==1?pC(c,b):(f?(d=f,d.next==c.o&&(c.o=d),d.next=d.next.next):qC(c),rC(c,e,3,b)))}a.l=null}else fC(a,3,b)},tC=function(a,b){a.j||a.g!=2&&a.g!=3||sC(a);a.o?a.o.next=b:a.j=b;a.o=b},nC=function(a,b,c,d){var e=jC(null,null,null);e.g=new gC(function(f,g){e.l=b?function(h){try{var k=b.call(d,h);f(k)}catch(l){g(l)}}:f;e.j=c?function(h){try{var k=c.call(d,
h);k===void 0&&h instanceof oC?g(h):f(k)}catch(l){g(l)}}:g});e.g.l=a;tC(a,e);return e.g};gC.prototype.J=function(a){this.g=0;fC(this,2,a)};gC.prototype.L=function(a){this.g=0;fC(this,3,a)};
var fC=function(a,b,c){a.g==0&&(a===c&&(b=3,c=new TypeError("Promise cannot resolve to itself")),a.g=1,kC(c,a.J,a.L,a)||(a.B=c,a.g=b,a.l=null,sC(a),b!=3||c instanceof oC||uC(a,c)))},kC=function(a,b,c,d){if(a instanceof gC)return tC(a,jC(b||yj,c||null,d)),!0;if(eC(a))return a.then(b,c,d),!0;if(Pa(a))try{var e=a.then;if(typeof e==="function")return vC(a,e,b,c,d),!0}catch(f){return c.call(d,f),!0}return!1},vC=function(a,b,c,d,e){var f=!1,g=function(k){f||(f=!0,c.call(e,k))},h=function(k){f||(f=!0,d.call(e,
k))};try{b.call(a,g,h)}catch(k){h(k)}},sC=function(a){a.C||(a.C=!0,cC(a.F,a))},qC=function(a){var b=null;a.j&&(b=a.j,a.j=b.next,b.next=null);a.j||(a.o=null);return b};gC.prototype.F=function(){for(var a;a=qC(this);)rC(this,a,this.g,this.B);this.C=!1};
var rC=function(a,b,c,d){if(c==3&&b.j&&!b.o)for(;a&&a.A;a=a.l)a.A=!1;if(b.g)b.g.l=null,wC(b,c,d);else try{b.o?b.l.call(b.context):wC(b,c,d)}catch(e){xC.call(null,e)}VB(iC,b)},wC=function(a,b,c){b==2?a.l.call(a.context,c):a.j&&a.j.call(a.context,c)},uC=function(a,b){a.A=!0;cC(function(){a.A&&xC.call(null,b)})},xC=pb,oC=function(a){cb.call(this,a)};ab(oC,cb);oC.prototype.name="cancel";var yC=function(a,b){U.call(this);this.j=a||1;this.g=b||A;this.l=Xa(this.tl,this);this.o=Za()};ab(yC,U);m=yC.prototype;m.enabled=!1;m.bb=null;m.setInterval=function(a){this.j=a;this.bb&&this.enabled?(this.stop(),this.start()):this.bb&&this.stop()};m.tl=function(){if(this.enabled){var a=Za()-this.o;a>0&&a2147483647?-1:A.setTimeout(a,b||0)},AC=function(a,b){var c=null;return(new gC(function(d,e){c=zC(function(){d(b)},a);c==-1&&e(Error("Failed to schedule timer."))})).D(function(d){A.clearTimeout(c);throw d;})};var BC=function(){return Math.round(Date.now()/1E3)};var CC=function(){this.g={};return this};CC.prototype.remove=function(a){var b=this.g;a in b&&delete b[a]};CC.prototype.set=function(a,b){this.g[a]=b};var DC=function(a,b){a.g.eb=Uj(a.g,"eb",0)|b};CC.prototype.get=function(a){return Uj(this.g,a,null)};var EC=null,FC=function(){this.g={};this.j=0},GC=function(){EC||(EC=new FC);return EC},HC=function(a,b){a.g[b.getName()]=b},IC=function(a,b){this.o=a;this.l=!0;this.g=b};IC.prototype.getName=function(){return this.o};IC.prototype.getValue=function(){return this.g};IC.prototype.j=function(){return String(this.g)};var JC=function(a,b){IC.call(this,String(a),b);this.A=a;this.g=!!b};t(JC,IC);JC.prototype.j=function(){return this.g?"1":"0"};var KC=function(a,b){IC.call(this,a,b)};t(KC,IC);
KC.prototype.j=function(){return this.g?Math.round(this.g.top)+"."+Math.round(this.g.left)+"."+(Math.round(this.g.top)+Math.round(this.g.height))+"."+(Math.round(this.g.left)+Math.round(this.g.width)):""};var LC=function(a){if(a.match(/^-?[0-9]+\.-?[0-9]+\.-?[0-9]+\.-?[0-9]+$/)){a=a.split(".");var b=Number(a[0]),c=Number(a[1]);return new KC("",new Fm(c,b,Number(a[3])-c,Number(a[2])-b))}return new KC("",new Fm(0,0,0,0))};var MC=function(a){var b=new Fm(-Number.MAX_VALUE/2,-Number.MAX_VALUE/2,Number.MAX_VALUE,Number.MAX_VALUE),c=new Fm(0,0,0,0);if(!a||0==a.length)return c;for(var d=0;d0?(e=Gm(b),f=Gm(c),e=e.top>=f.top&&e.top0?(e=Gm(b),f=Gm(c),e=e.bottom<=f.bottom&&e.bottom>f.top):e=!1;HC(a,new JC(1024,e));d&&d>0?(e=Gm(b),f=Gm(c),e=e.left>=f.left&&e.left0?(b=Gm(b),c=Gm(c),c=b.right<=c.right&&b.right>c.left):c=!1;HC(a,new JC(4096,c))}};var PC=function(a,b){var c=0;Oj(Kr(),"ima","video","client","tagged")&&(c=1);var d=null;a&&(d=a());if(d){a=GC();a.g={};var e=new JC(32,!0);e.l=!1;HC(a,e);e=Kr().document;e=e.visibilityState||e.webkitVisibilityState||e.mozVisibilityState||e.msVisibilityState||"";HC(a,new JC(64,e.toLowerCase().substring(e.length-6)!="hidden"?!0:!1));a:{try{var f=Kr().top;try{var g=!!f.location.href||f.location.href===""}catch(p){g=!1}if(g){var h=tB(d);var k=h&&h.length!=0?"1":"0";break a}k="2";break a}catch(p){k="2";
break a}k=void 0}HC(a,new JC(256,k=="2"));HC(a,new JC(128,k=="1"));h=g=Kr().top;k=="2"&&(h=Kr());f=NC(d,h);HC(a,new KC("er",f));try{var l=h.document&&!h.document.body?null:Ir(h||window)}catch(p){l=null}l?(h=Jr(Fr(h.document).g),HC(a,new JC(16384,!!h)),l=h?new Fm(h.x,h.y,l.width,l.height):null):l=null;HC(a,new KC("vi",l));if(l&&"1"==k){k=tB(d);d=[];for(h=0;h0?Math.round(window.performance.timing.domLoading/1E3):null;c.set.call(c,"td",BC()-(a!=null?a:b!=null?b:BC()))};new yC(200);
var QC=function(a,b){try{var c=new PC(a,b);a=[];var d=Number(c.g.get("eb"));c.g.remove("eb");var e,f=c.g;b=[];for(var g in f.g)b.push(g+f.g[g]);(e=b.join("_"))&&a.push(e);if(c.j){var h=c.j.serialize();h&&a.push(h)}var k,l=c.l;e=d;f=[];e||(e=0);for(var p in l.g){var n=l.g[p];if(n instanceof JC)n.getValue()&&(e|=n.A);else{var q=l.g[p],r=q.l?q.j():"";r&&f.push(p+r)}}f.push("eb"+String(e));(k=f.join("_"))&&a.push(k);c.g.set("eb",d);return a.join("_")}catch(w){return"tle;"+Xk(w.name,12)+";"+Xk(w.message,
40)}};var RC=function(a){this.G=G(a)};t(RC,J);var SC=function(a){this.G=G(a)};t(SC,J);var TC=function(a){this.G=G(a)};t(TC,J);var UC=function(a){this.G=G(a)};t(UC,J);var VC=tj(UC);var WC=function(a){this.G=G(a)};t(WC,J);var XC=function(a){var b=new WC;return Bg(b,1,Qe(a))};var YC=[0,oj];var ZC=function(a){this.G=G(a)};t(ZC,J);var $C=function(a){var b=new ZC;return qh(b,1,a)},aD=function(a){var b=window.Date.now();b=Number.isFinite(b)?Math.round(b):0;return Bg(a,3,af(b))};ZC.prototype.getError=function(){return H(this,WC,10)};ZC.prototype.Qb=function(a){return $g(this,10,a)};var bD=tj(ZC);var cD=[0,ij,-1,bj,ej,-2,bj,aj,gj,YC,gj];var dD=[0,1,[0,dj,-2],-1,ij,-1,gj,[0,3,oj,ij],bj,pj,mj];var eD=function(a){this.G=G(a)};t(eD,J);eD.prototype.g=sj([0,jj,dD,jj,cD]);var fD=function(a){this.G=G(a)};t(fD,J);var gD=tj(fD);var hD=function(a){this.G=G(a)};t(hD,J);var kD=function(){var a=iD;this.A=jD;this.C="jserror";this.j=!0;this.g=a===void 0?null:a;this.l=null;this.o=!1;this.B=this.Jb};m=kD.prototype;m.Ug=function(a){this.l=a};m.pi=function(a){this.C=a};m.Vg=function(a){this.j=a};m.si=function(a){this.o=a};
m.Lc=function(a,b,c){try{if(this.g&&this.g.l){var d=this.g.start(a.toString(),3);var e=b();this.g.end(d)}else e=b()}catch(h){b=this.j;try{fn(d),b=this.B(a,new vj(h,{message:xj(h)}),void 0,c)}catch(k){this.Jb(217,k)}if(b){var f,g;(f=window.console)==null||(g=f.error)==null||g.call(f,h)}else throw h;}return e};m.Og=function(a,b,c,d){var e=this;return function(){var f=Ga.apply(0,arguments);return e.Lc(a,function(){return b.apply(c,f)},d)}};
m.Jb=function(a,b,c,d,e){e=e||this.C;try{var f=new Us;Zs(f,1,"context",a);wj(b)||(b=new vj(b,{message:xj(b)}));b.msg&&Zs(f,2,"msg",b.msg.substring(0,512));var g=b.meta||{};if(this.l)try{this.l(g)}catch(k){}if(d)try{d(g)}catch(k){}Ys(f,3,[g]);var h=Ts();h.j&&Zs(f,4,"top",h.j.url||"");Ys(f,5,[{url:h.g.url||""},{url:h.g.url?dl(h.g.url):""}]);lD(this.A,e,f,this.o,c)}catch(k){try{lD(this.A,e,{context:"ecmserr",rctx:a,msg:xj(k),url:h&&h.g.url},this.o,c)}catch(l){}}return this.j};var mD=function(){this.g=Math.random()},nD=function(){var a=jD,b=window.google_srt;b>=0&&b<=1&&(a.g=b)},lD=function(a,b,c,d,e){if(((d===void 0?0:d)?a.g:Math.random())<(e||.01))try{if(c instanceof Us)var f=c;else f=new Us,Dl(c,function(h,k){var l=f,p=l.o++;Ys(l,p,Vs(k,h))});var g=at(f,"https:","/pagead/gen_204?id="+b+"&");g&&Nl(A,g)}catch(h){}};var jD,oD,iD=new en(1,window);(function(a){jD=a!=null?a:new mD;typeof window.google_srt!=="number"&&(window.google_srt=Math.random());nD();oD=new kD;oD.Ug(function(){});oD.si(!0);window.document.readyState=="complete"?window.google_measure_js_timing||iD.C():iD.l&&Ej(window,"load",function(){window.google_measure_js_timing||iD.C()})})();var pD=function(a){this.G=G(a)};t(pD,J);var qD=function(a){var b=new pD;ch(b,1,Pe,a,Re)};qD([1,8,9,10,11,12,2,3,4,5,15,16,19,20,21]);qD([1,6,7,9,10,11,12,2,3,4,5,13,14,18,19,20,21]);qD([1,6,7,9,10,11,12,22,2,3,4,5,13,14,17,18,19,20,21]);new pD;var rD,sD,tD,uD=function(){return A.navigator?A.navigator.userAgent:""},vD=Ib(uD(),"(iPad")||Ib(uD(),"(Macintosh")||Ib(uD(),"(iPod")||Ib(uD(),"(iPhone");var wD=[0,2,1],xD=null;document.addEventListener&&document.addEventListener("mousedown",function(a){xD=a},!0);
window.mb=function(a){if(a){var b;if(b=window.event||xD){var c;(c=b.which?1<=0?b.substring(0,d)+c+b.substring(e):b.substring(0,d)+c}b=Hk(c.length>6E4?b:c);b=Lk(b);b!==void 0&&(a.href=b)}}};var yD=new Set(["impression","click"]);var zD=/^((market|itms|intent|itms-appss):\/\/)/i;var AD=function(a,b,c){this.l=a;this.j=b;this.g=c};var BD=function(a,b,c,d,e){this.url=a;this.g=b;this.W=d===void 0?null:d;this.mimeType=c===void 0?null:c;this.Vd=!(e===void 0||!e)};var CD=function(a,b){this.url=a;this.g=b===void 0?null:b};var DD=function(a,b,c,d){var e=c===void 0?{}:c;c=e.xa===void 0?null:e.xa;e=e.Md===void 0?null:e.Md;this.eventType=a;this.url=b;this.g=typeof d==="string"?d:null;this.xa=c;this.Md=e;this.id=null};var ED=function(a,b,c,d,e,f){this.g=a;this.url=b;this.o=c===void 0?null:c;this.l=d===void 0?null:d;this.j=e===void 0?null:e;this.id=f===void 0?null:f},FD=function(a){var b=null,c=null;a.xa?b=parseInt(a.xa/1E3,10):a.Md&&(c=a.Md);return new ED(a.eventType,a.url,b,c,a.g,a.id)},GD=function(a,b,c,d){return new ED(a,b,null,null,c,d===void 0?null:d)},HD=function(a){return a.url instanceof CD?a.url.url:a.url},ID=function(a){return a.url instanceof CD?a.url:new CD(a.url,a.j)};ED.prototype.getId=function(){return this.id};var JD=function(){this.Z=new Map;this.M=new Map;this.A=[];this.yb=this.id=null;this.Sb="video";this.D=null;this.U=[];this.sc=null;this.ub=[]};JD.prototype.getId=function(){return this.id};JD.prototype.nb=function(a){this.Z.has(a.g)?this.Z.get(a.g).push(a):this.Z.set(a.g,[a])};var KD=function(a,b,c){this.j=a;this.l=b;this.g=c===void 0?null:c};KD.prototype.getName=function(){return this.j};var LD=function(){if(window.MutationObserver){var a=[];(new MutationObserver(function(){a.forEach(function(b){return b()});a=[]})).observe(document.createTextNode(""),{characterData:!0})}};typeof Promise==="function"&&String(Promise).indexOf("[native code]")>-1||LD();var MD=function(){this.adPosition=1;this.l=-1;this.tc=[];this.j=this.g=0;this.totalAds=1};MD.prototype.getAdPosition=function(){return this.adPosition};MD.prototype.getPodIndex=function(){return this.g};MD.prototype.getTimeOffset=function(){return this.j};MD.prototype.getTotalAds=function(){return this.totalAds};var QD=function(a,b){a=a===void 0?{}:a;b=b===void 0?new Map:b;ND(b,"ADCOUNT",function(){var e=a.ia;return(e=e===void 0?null:e)?e.getAdPosition().toString():"-1"});ND(b,"AD_MT",function(){var e=a.V;e=e===void 0?null:e;return e==null?"-1":Math.round(Math.max(0,e.getCurrentTime()*1E3)).toString()});ND(b,"ADPLAYHEAD",function(){var e=a.V;e=e===void 0?null:e;if(e==null)e="-1";else{e=e.getCurrentTime();var f=!0;f=f===void 0?!1:f;e=e<0?0:e;e=f?e:Math.round(e);if(f){var g=Math.floor(e/3600);if(Number.isFinite(g)){g=
String(g);var h=g.indexOf(".");h===-1&&(h=g.length);var k=g[0]==="-"?"-":"";k&&(g=g.substring(1));g=k+Yk("0",Math.max(0,2-h))+g}else g=String(g);g+=":";h=Math.floor(e/60)%60<10?"0":""}else g=e>=3600?Math.floor(e/3600)+":":"",h=Math.floor(e/60)%60<10&&e>=3600?"0":"";e=""+g+h+Math.floor(e/60)%60+":"+(Math.floor(e%60)<10?"0":"")+Math.floor(e%60)+(f?(e%1).toFixed(3).slice(1):"")}return e});ND(b,"ADSERVINGID",function(){var e=a.ad;return(e=(e=e===void 0?null:e)&&e.sc)?e:"-1"});ND(b,"ASSETURI",function(){var e=
a.V;e=e===void 0?null:e;return e==null?"-1":e.Hf()});OD(b,"CLICKPOS","-1");ND(b,"PODSEQUENCE",function(){var e=a.ad;return(e=e===void 0?null:e)&&e.D?e.D.toString():"-1"});var c=a,d=c.Bl;c=c.Cl;OD(b,"UNIVERSALADID",d&&c?d+" "+c:"-1");return PD(a,b)},PD=function(a,b){a=a===void 0?{}:a;b=b===void 0?new Map:b;ND(b,"ADTYPE",function(){var d=a.ad;return(d=d===void 0?null:d)?d.Sb:"-1"});OD(b,"APPBUNDLE",a.appName||"-1");ND(b,"BREAKMAXADS",function(){var d=a.ia;return(d=d===void 0?null:d)?d.getTotalAds().toString():
"-1"});OD(b,"BREAKMAXADLENGTH","-1");ND(b,"BREAKMAXDURATION",function(){var d=a.ia;return(d=d===void 0?null:d)?d.l.toString():"-1"});OD(b,"BREAKMINADLENGTH","-1");OD(b,"BREAKMINDURATION","-1");ND(b,"BREAKPOSITION",function(){var d=a.ia;d=d===void 0?null:d;d==null?d="-1":(d=d.getPodIndex(),d=d==0?"1":d==-1?"3":"2");return d});ND(b,"CACHEBUSTING",RD);OD(b,"CLICKTYPE",a.Ij||"-1");var c=a;OD(b,"CLIENTUA",SD({ke:c.ke,me:c.me,hf:c.hf,jf:c.jf}));OD(b,"CONTENTID","-1");OD(b,"CONTENTURI","-1");OD(b,"DEVICEIP",
"-1");OD(b,"DEVICEUA","-1");OD(b,"DOMAIN",a.domain||TD());OD(b,"GDPRCONSENT",a.Lh?a.Lh:"-1");OD(b,"IFA","-2");OD(b,"IFATYPE","-2");OD(b,"INVENTORYSTATE","-1");OD(b,"LATLONG","-1");ND(b,"LIMITADTRACKING",function(){return"-1"});ND(b,"MEDIAPLAYHEAD",function(){var d=a.ia;return(d=d===void 0?null:d)?d.getTimeOffset().toString():"-1"});ND(b,"OMIDPARTNER",function(){var d=a.Ig,e=a.Fk;d=d===void 0?null:d;e=e===void 0?null:e;return d==null||e==null?"-1":d+"/"+e});OD(b,"PAGEURL",a.pageUrl||UD());OD(b,"PLACEMENTTYPE",
a.ei||"-1");OD(b,"PLAYERSIZE","-1");OD(b,"PLAYERSTATE","-1");OD(b,"REGULATIONS","-1");OD(b,"SERVERSIDE","0");OD(b,"SERVERUA","-1");ND(b,"TIMESTAMP",VD);ND(b,"TRANSACTIONID",function(){var d=a.Kf;return(d=d===void 0?null:d)?d.transactionId.toString():"-1"});OD(b,"US_PRIVACY",a.El||"-1");a.Oc&&OD(b,"UACH",a.Oc);return b},OD=function(a,b,c){a.set(b,new KD(b,{toString:function(){return c}}))},ND=function(a,b,c){a.set(b,new KD(b,{toString:function(){return c()}}))},SD=function(a){var b=a.ke===void 0?null:
a.ke;var c=a.me===void 0?null:a.me;var d=a.hf===void 0?null:a.hf;a=a.jf===void 0?null:a.jf;if(!b&&!d)return"-1";var e="unknown";b&&(e=b+(c?"/"+c:""));b="";d&&(b=" "+d+(a?"/"+a:""));return e+b},RD=function(){return Math.round(Math.random()*1E8+1E8).toString().slice(1)},TD=function(){var a=Bs()==2?null:Kr().top.location.hostname;return a?a:"-1"},UD=function(){var a=Bs()==2?null:Kr().top.location.href;return a?a:"-1"},VD=function(){return(new Date).toISOString()};var WD=/(?:\[|%5B)([a-zA-Z0-9_]+)(?:\]|%5D)/g,XD=function(a,b){return a.replace(WD,function(c,d){d=b.get(d);if(d==null)return c;if(d.g==null)var e=!0;else try{e=d.g(a)||!1}catch(g){e=!1}if(e){b:{try{var f=d.l.toString();break b}catch(g){}f=null}e=f;e=e==null||e!=""&&D(Zk(e))?null:encodeURIComponent(e).replace(/%2C/g,",")}else e=null;return e!=null?e:c})};var YD=function(a){this.D=a},ZD=function(a,b){return a.map(function(c){c=typeof c==="string"?new CD(c):c;return new CD(XD(c.url,b),c.g==null?null:XD(c.g,b))})},aE=function(a,b,c,d){c=c===void 0?null:c;d=d===void 0?!1:d;b=b.map(function(e){return typeof e==="string"?new CD(e):e});c=c?ZD(b,c):b;$D(a.D,c,d)};var cE=function(a,b,c){c=c===void 0?[]:c;this.D=b;var d=this;this.B=a;this.F=c;this.g=new Map;this.j=new Map;this.l=new Map;this.C=[];this.o=this.A=-1;N(M.getInstance(),"ua_e",navigator&&navigator.userActivation?"1":"0");M.getInstance().g.N.push(function(){return bE(d)})};t(cE,YD);cE.prototype.report=function(a,b){b=b===void 0?dE(this,a):b;eE(this,a,b||[])};
var eE=function(a,b,c){var d=c.map(function(f){return typeof f==="string"?new CD(f):f}),e=[];a.C.forEach(function(f){a:{try{var g=f(b);if(typeof g==="object"&&typeof g.then==="function"){var h=g||Promise.resolve();break a}}catch(k){}h=void 0}f=h;f!==void 0&&e.push(f)});e.length===0?fE(a,b,d):Promise.all(e).then(function(f){f=f[0];Array.isArray(f)&&f.every(function(g){return typeof g==="string"})?fE(a,b,f.map(function(g){return new CD(g)})):fE(a,b,d)})},fE=function(a,b,c){gE(a,b)?hE(a,b,c):iE(a,b)&&
(b=="skip"&&navigator&&navigator.userActivation&&(N(M.getInstance(),"uas_hba",navigator.userActivation.hasBeenActive?"1":"0"),N(M.getInstance(),"uas_ia",navigator.userActivation.isActive?"1":"0")),c.filter(function(d){return d.url.match(/\/aclk.*label=video_engaged_view/)}).length&&(b=="complete"&&un(M.getInstance(),"evoace"),b=="progress"&&un(M.getInstance(),"evoape"),b=="engagedView"&&un(M.getInstance(),"evoaeve")),jE(a,b,c))},jE=function(a,b,c){a.g.has(b)?a.g.set(b,a.g.get(b)+1):a.g.set(b,1);c.length&&
(c.map(function(d){return{qd:hl(d.url,"ad_signals"),th:hl(d.url,"auction_data"),label:hl(d.url,"label"),Uk:hl(d.url,"event_type")}}).filter(function(d){var e=d.qd;d=d.th;return!!e||!!d}).forEach(function(d){var e=d.qd,f=d.th,g=d.Uk||b;d=d.label||"";var h=h===void 0?A:h;if(e!==""||f!=="")if(g==="auctionwinner"){var k;(k=h.fence)==null||k.reportEvent({eventType:"auctionwinner",eventData:f,destination:["buyer"]})}else if(yD.has(g)){var l=new hD;l=qh(l,1,e);l=qh(l,6,d);l=qh(l,10,Date.now().toString());
g==="impression"&&Bg(l,9,Qe(1));l=Ph(l);if(g==="click"){var p;(p=h.fence)==null||p.setReportEventDataForAutomaticBeacons({eventType:"reserved.top_navigation",eventData:l,destination:["buyer"],once:!0});var n;(n=h.fence)==null||n.setReportEventDataForAutomaticBeacons({eventType:"reserved.top_navigation_start",eventData:l,destination:["buyer"],once:!0})}var q;(q=h.fence)==null||q.reportEvent({eventType:g,eventData:l,destination:["buyer"]})}else{h={qd:e,label:d||g};var r=r===void 0?A:r;g=new hD;h!=null&&
(h.qd!=null&&qh(g,1,h.qd),h.zl!=null&&qh(g,3,h.zl),h.label!=null&&qh(g,6,h.label),h.vk!=null&&qh(g,7,h.vk),h.Kj!=null&&qh(g,8,h.Kj),h.dl!=null&&qh(g,11,h.dl));h=r;h=h===void 0?window:h;(l=h.fence)==null||l.reportEvent({eventType:"interaction",eventData:Ph(g),destination:["buyer"]})}}),c=c.filter(function(d){return!hl(d.url,"ad_signals")&&!hl(d.url,"auction_data")}),c.length&&aE(a,c,a.l,a.F.includes(b)));kE(a,b)},kE=function(a,b){var c=null;b==="impression"?c="measurable_impression":b==="measurable_impression"&&
(c="viewable_impression");c!=null&&a.j.has(c)&&(b=a.j.get(c)||[],a.j.delete(c),jE(a,c,b))},lE=function(a,b,c){var d=a.B.get("progress");if(!(d==null||d.length<=0)){var e=[],f=a.A,g=a.o;d.forEach(function(h){var k=h.o,l=h.l;l&&l<=b*1E3*100/c&&l>a.o?(g=l>g?l:g,e.push(ID(h))):k&&k<=b&&k>a.A&&(f=k>f?k:f,e.push(ID(h)))});a.A=f;a.o=g;e.length>0&&a.report("progress",e)}};
cE.prototype.reportError=function(a){un(M.getInstance(),"err");N(M.getInstance(),"aec",String(a));var b=this.l;b=b===void 0?new Map:b;b.set("ERRORCODE",new KD("ERRORCODE",a));this.report("error")};
var mE=function(a,b){a.l.set(b.getName(),b)},nE=function(a,b){b.forEach(function(c){return mE(a,c)})},oE=function(a,b){a.C.push(b)},hE=function(a,b,c){var d=c;a.l!=null&&(d=ZD(c,a.l));a.j.has(b)?d.forEach(function(e){return void a.j.get(b).push(e)}):a.j.set(b,d)},gE=function(a,b){if(a.g.has(b))return!1;switch(b){case "measurable_impression":return!a.g.has("impression");case "viewable_impression":return!a.g.has("impression")||!a.g.has("measurable_impression");default:return!1}},iE=function(a,b){switch(b){case "abandon":return!a.g.has(b)&&
!a.g.has("skip")&&!a.g.has("instreamAdComplete")&&a.g.has("impression");case "instreamAdComplete":case "complete":return!a.g.has(b)&&!a.g.has("skip");case "mute":case "unmute":case "pause":case "resume":case "fullscreen":case "exitFullscreen":case "progress":case "vastProgress":case "error":case "click":case "expand":case "collapse":case "videoIconClicked":case "vastIconRendered":return!0;default:return!a.g.has(b)}},dE=function(a,b){return(a.B.get(b)||[]).map(function(c){return ID(c)})},bE=function(a){N(M.getInstance(),
"rec",Array.from(a.g,function(b){var c=u(b);b=c.next().value;c=c.next().value;return b+"-"+c}).join("|"))};var pE={},qE=(pE.GOOGLE_VIEWABILITY="://pubads.g.doubleclick.net ://googleads.g.doubleclick.net ://ad[.-]([a-z0-9]+.){0,1}doubleclick.net ://ade\\.googlesyndication\\.com ://pagead2.googlesyndication.com ://([a-z0-9]+[.])*youtube.com".split(" "),pE),rE=new Map,sE=function(a,b,c,d,e,f){d=d===void 0?!1:d;e=e===void 0?null:e;f=f===void 0?!1:f;R.call(this);var g=this;this.l=e?e:String(Math.floor(Math.random()*1E9));this.j=b;this.g=c;this.F=d;this.D=f;this.o=new Iv;this.C=(a=a.M.get(AD))?a.j:"";this.A=
a?a.g:"";this.B=a?a.l:[];oE(this.j,function(h){g.H(h)});a=Vo();Ev(a);rE.set(this.l,this)};t(sE,R);sE.prototype.reportEvent=function(a){this.j.report(a)};var uE=function(a,b){mE(a.j,new KD("VIEWABILITY",b.viewability));mE(a.j,new KD("GOOGLE_VIEWABILITY",b.googleViewability,function(c){return function(d){return tE(d,c)}}("GOOGLE_VIEWABILITY")))};
sE.prototype.H=function(a){var b=this.l,c=this.g,d=this.B;d=d===void 0?[]:d;var e=c.mg()||void 0,f={};c=(f.opt_fullscreen=c.ac(),f.opt_adElement=e,f);a=="start"&&(c.opt_configurable_tracking_events=d);a=rB(a,b,c);uE(this,a)};var tE=function(a,b){b=qE[b];return b==null?!0:b.some(function(c){return a.match(c)!=null})};sE.prototype.R=function(){rE.delete(this.l);this.g=this.j=null;this.o=new Iv};C("ima.common.triggerExternalActivityEvent",function(a,b,c){(a=rE.get(a))&&a.reportEvent(c)});
C("ima.common.getVideoMetadata",function(a){return(a=rE.get(a))?{currentTime:a.g.getCurrentTime(),duration:a.g.getDuration(),On:a.D,volume:a.g.Ge()?0:a.g.getVolume()}:{}});var vE=function(a){this.g=a===void 0?null:a};var wE=function(a){this.g=a};var xE=function(a){this.G=G(a)};t(xE,J);xE.prototype.getValue=function(){return kh(this,1)};xE.prototype.getVersion=function(){return I(this,5)};var yE=function(a){this.g=a};var zE=function(a){this.g=a};var AE=function(a){this.g=a},BE=function(){AE.apply(this,arguments)};t(BE,AE);var CE=function(){AE.apply(this,arguments)};t(CE,AE);var DE=function(){};var EE=function(a){this.g=a===void 0?null:a};var FE=function(a,b){var c=b===void 0?{}:b;b=c.vendor===void 0?null:c.vendor;var d=c.Pb===void 0?null:c.Pb;var e=c.parameters===void 0?null:c.parameters;c=c.Z===void 0?[]:c.Z;this.g=a;this.vendor=b;this.parameters=e;this.Pb=d;this.Z=c},GE=function(){this.g=[]},HE=function(a,b,c,d,e,f){a.g.push(new FE(c,{vendor:b,parameters:d,Pb:e,Z:f}))};var IE=function(a){this.g=a};IE.prototype.getDealId=function(){return this.g};var JE=function(a,b,c,d){this.l=a;this.g=d===void 0?null:d;this.o=b;this.j=c};
JE.prototype.init=function(a){var b,c=window,d=this.l,e=(b=this.g)!=null?b:void 0,f=this.o;b=this.j;var g="v_h."+a,h=f?"//pagead2.googlesyndication.com/bg/"+Tk(f)+".js":"";a=c.document;f={};e&&(f._scs_=e);f._bgu_=h;f._bgp_=b;g&&(f._li_=g);(e=c.GoogleTyFxhY)&&typeof e.push=="function"||(e=c.GoogleTyFxhY=[]);e.push(f);e=Nr(Fr(a).g,"SCRIPT");e.type="text/javascript";e.async=!0;d=wl(sB,Tk(d)+".js");Qk(e,d);(c=(c.GoogleTyFxhYEET||{})[e.src])?c():a.getElementsByTagName("head")[0].appendChild(e)};var KE=function(a){this.g=a};var LE=function(a,b,c,d){this.id=a;this.title=b;this.g=c;this.j=d};var ME=function(a,b,c,d,e){this.id=a;this.Hb=d===void 0?!1:d;this.title=b;this.j=c;this.g=!(e===void 0?0:e)};var NE=function(a,b,c){this.j=a;this.l=b;this.g=(c===void 0?null:c)||""};NE.prototype.Hb=function(){return this.j.Hb};var OE=function(a,b,c){b=b===void 0?null:b;c=c===void 0?{}:c;uB.call(this,a);this.l=b;this.j=c};t(OE,uB);OE.prototype.getAd=function(){return this.l};OE.prototype.getAdData=function(){return this.j};var PE=function(a){var b=a.ra;var c=a.Ba;var d=a.height;var e=a.width;a=a.oa===void 0?!1:a.oa;this.ra=b;this.Ba=c;this.height=d;this.width=e;this.oa=a};PE.prototype.getHeight=function(){return this.height};PE.prototype.getWidth=function(){return this.width};var QE=function(){this.j=this.resourceType=this.creativeType=this.content=this.Rb=null;this.height=this.width=-1;this.ue=!1;this.Na=null;this.g=[]};m=QE.prototype;m.getAdSlotId=function(){return this.Rb};m.getContent=function(){return this.content};m.getWidth=function(){return this.width};m.getHeight=function(){return this.height};m.getApiFramework=function(){return this.W};var RE=function(){this.g=this.l=0;this.ka=this.creativeType=this.j=null};RE.prototype.clone=function(){var a=new RE;a.l=this.l;a.g=this.g;a.j=this.j;a.creativeType=this.creativeType;a.ka=this.ka;return a};var SE=function(){this.ka=this.W=this.za=null;this.j=this.g=0;this.F=1;this.Za="left";this.ab="top";this.na=this.xa=-1;this.J=this.l=this.A=this.o=null;this.B=[];this.C=[];this.D=[]};SE.prototype.getApiFramework=function(){return this.W};var aF=function(a,b){this.j=a===void 0?"unknown":a;this.g=b===void 0?"unknown":b};aF.prototype.getAdIdValue=function(){return this.j};aF.prototype.getAdIdRegistry=function(){return this.g};var bF=function(){JD.call(this);this.N=this.l=this.qa=this.description=null;this.j=[];this.o=this.sa=null;this.va=[];this.B=this.creativeId=this.O=null;this.kb=[]};t(bF,JD);var cF=function(a){return a.j.length>0?a.j[0]:null};m=bF.prototype;m.getAdSystem=function(){return this.A.length?this.A[0]:null};m.getApiFramework=function(){return this.W};m.getDescription=function(){return this.description};m.isSkippable=function(){return this.qa!=null};m.getCreativeId=function(){return this.creativeId};
m.getCreativeAdId=function(){return this.B};m.getUniversalAdIds=function(){return this.kb};var dF=RegExp("(doubleclick\\.net|googleadservices\\.com|googlesyndication\\.com)"),eF=["ai","sigh"],fF=["xai","sig"];function gF(a){return a&&dF.test(a)?a.includes("/pagead/adview")||a.includes("/pagead/conversion")||a.includes("/gampad/live/conversion")||a.includes("/pagead/interaction")?eF.every(function(b){return fl(a,0,b,a.search(gl))>=0}):a.includes("/pcs/view")?fF.every(function(b){return fl(a,0,b,a.search(gl))>=0}):!1:!1}
function hF(a,b){var c=a.indexOf("&adurl=");return c!=-1?a.substr(0,c)+b+a.substr(c,a.length):a+b}function iF(a,b){if(a&&b!=null){b=us()?"6":"5";for(var c=a.search(gl),d=0,e,f=[];(e=fl(a,d,"nis",c))>=0;)f.push(a.substring(d,e)),d=Math.min(a.indexOf("&",e)+1||c,c);f.push(a.slice(d));a=f.join("").replace(il,"$1");a=hF(a,"&nis="+b)}return a};var jF={Yk:function(a,b){var c=Zk(a);if(D(c))return a;gF(c)&&(a=hF(a,"&sdkv="+b),a=hF(a,"&ssss=gima"));return a}},kF=function(a){bF.call(this);this.K=a;this.ia=new MD;this.C=null;this.companionAds=[];this.dealId=null;this.F=[];this.J=[];this.L=[];this.H=String(Math.floor(Math.random()*1E9))};t(kF,bF);m=kF.prototype;m.nb=function(a){var b=jF.Yk(HD(a),this.K);bF.prototype.nb.call(this,new ED(a.g,b,a.o,a.l,a.j))};m.getAdPodInfo=function(){return this.ia};m.getAdvertiserName=function(){return this.C};
m.getCompanionAds=function(){return this.companionAds};m.getDealId=function(){return this.dealId};m.getWrapperAdIds=function(){return this.F};m.getWrapperAdSystems=function(){return this.J};m.getWrapperCreativeIds=function(){return this.L};m.ve=function(){return this.H};var lF=function(a){var b=a.Ei;var c=a.Ci;var d=a.uh;var e=a.ra;var f=a.Ba;var g=a.Di;var h=a.vh;PE.call(this,{ra:e,Ba:f,height:a.height,width:a.width,oa:a.oa===void 0?!1:a.oa});this.o=b;this.j=c;this.g=d;this.l=g;this.A=h};t(lF,PE);var mF=function(a){var b=a.Zh;var c=a.mimeType;PE.call(this,{ra:a.ra,Ba:a.Ba,height:a.height,width:a.width,oa:a.oa===void 0?!1:a.oa});this.j=b;this.g=c};t(mF,PE);mF.prototype.getMediaUrl=function(){return this.j};var nF=function(a,b,c){this.Ya=a;this.resourceType=b;this.creativeType=c===void 0?null:c};var oF=function(a){var b=a===void 0?{}:a;a=b.id===void 0?null:b.id;var c=b.Rb===void 0?null:b.Rb;var d=b.W===void 0?null:b.W;var e=b.width===void 0?null:b.width;var f=b.height===void 0?null:b.height;var g=b.ue===void 0?!1:b.ue;var h=b.zb===void 0?null:b.zb;var k=b.Wf===void 0?[]:b.Wf;var l=b.resources===void 0?[]:b.resources;b=b.Z===void 0?[]:b.Z;this.id=a;this.Rb=c;this.W=d;this.width=e;this.height=f;this.ue=g;this.zb=h;this.Wf=k;this.resources=l;this.Z=b};var pF=function(a,b){this.g=a;this.required=b===void 0?"none":b};var qF=function(a){var b=a===void 0?{}:a;a=b.url;var c=b.mimeType===void 0?null:b.mimeType;b=b.language===void 0?null:b.language;this.url=a;this.mimeType=c;this.language=b};var rF=function(a,b,c,d){this.Ob=a;this.width=b===void 0?null:b;this.height=c===void 0?null:c;this.ka=d===void 0?null:d};var sF=function(a){var b=a===void 0?{}:a;a=b.ta===void 0?null:b.ta;var c=b.ob===void 0?[]:b.ob;b=b.xd===void 0?[]:b.xd;this.ta=a;this.ob=c;this.xd=b};var tF=function(a){var b=a===void 0?{}:a;a=b.za===void 0?null:b.za;var c=b.W===void 0?null:b.W;var d=b.Za===void 0?null:b.Za;var e=b.ab===void 0?null:b.ab;var f=b.width===void 0?null:b.width;var g=b.height===void 0?null:b.height;var h=b.ka===void 0?null:b.ka;var k=b.sg===void 0?null:b.sg;var l=b.xa===void 0?null:b.xa;var p=b.na===void 0?null:b.na;var n=b.Mc===void 0?null:b.Mc;var q=b.Ha===void 0?null:b.Ha;var r=b.Yc===void 0?[]:b.Yc;b=b.resources===void 0?[]:b.resources;this.za=a;this.W=c;this.Za=
d;this.ab=e;this.width=f;this.height=g;this.ka=h;this.sg=k;this.xa=l;this.Mc=n;this.na=p;this.Ha=q;this.Yc=r;this.resources=b};var uF=function(a,b){var c=b===void 0?{}:b;b=c.mimeType===void 0?null:c.mimeType;var d=c.W===void 0?null:c.W;c=c.Vd===void 0?null:c.Vd;this.Ob=a;this.W=d;this.mimeType=b;this.Vd=c};var vF=function(a,b){var c=b===void 0?{}:b;b=c.rb===void 0?null:c.rb;var d=c.mimeType===void 0?null:c.mimeType;var e=c.codec===void 0?null:c.codec;var f=c.width===void 0?null:c.width;c=c.height===void 0?null:c.height;this.url=a;this.rb=b;this.mimeType=d;this.codec=e;this.width=f;this.height=c};var wF=function(a,b){var c=b===void 0?{}:b;b=c.height===void 0?null:c.height;var d=c.width===void 0?null:c.width;var e=c.rb===void 0?null:c.rb;var f=c.mimeType===void 0?null:c.mimeType;var g=c.W===void 0?null:c.W;var h=c.bitrate===void 0?null:c.bitrate;var k=c.Ag===void 0?null:c.Ag;var l=c.maxBitrate===void 0?null:c.maxBitrate;var p=c.da===void 0?null:c.da;vF.call(this,a,{rb:e,mimeType:f,codec:c.codec===void 0?null:c.codec,width:d,height:b});this.W=g;this.Ag=k||l||h||0;this.maxBitrate=l||k||h||0;
this.da=p};t(wF,vF);var xF=function(a){var b=a===void 0?{}:a;a=b.ta===void 0?null:b.ta;var c=b.ob===void 0?[]:b.ob;b=b.qe===void 0?[]:b.qe;this.ta=a;this.ob=c;this.qe=b};var yF=function(a){var b=a===void 0?{}:a;a=b.duration===void 0?null:b.duration;var c=b.qa===void 0?null:b.qa;var d=b.Z===void 0?[]:b.Z;var e=b.Te===void 0?[]:b.Te;var f=b.ub===void 0?[]:b.ub;var g=b.Vf===void 0?[]:b.Vf;var h=b.Af===void 0?null:b.Af;var k=b.sa===void 0?null:b.sa;b=b.va===void 0?[]:b.va;this.duration=a;this.sa=k;this.qa=c;this.Z=d;this.Te=e;this.ub=f;this.Vf=g;this.Af=h;this.va=b};var zF=function(a){var b=a===void 0?{}:a;a=b.id===void 0?null:b.id;var c=b.W===void 0?null:b.W;var d=b.height===void 0?null:b.height;var e=b.width===void 0?null:b.width;var f=b.Bg===void 0?null:b.Bg;var g=b.resources===void 0?[]:b.resources;var h=b.Gg===void 0?null:b.Gg;var k=b.Hg===void 0?[]:b.Hg;b=b.sa===void 0?null:b.sa;this.id=a;this.W=c;this.height=d;this.width=e;this.Bg=f;this.resources=g;this.Gg=h;this.Hg=k;this.sa=b};var AF=function(a,b){b=b===void 0?[]:b;this.g=a;this.Z=b};var BF=function(a){var b=a===void 0?{}:a;a=b.Ee===void 0?"unknown":b.Ee;b=b.De===void 0?"unknown":b.De;this.Ee=a||"unknown";this.De=b||"unknown"};var CF=function(a){var b=a===void 0?{}:a;a=b.Na===void 0?null:b.Na;var c=b.id===void 0?null:b.id;var d=b.adId===void 0?null:b.adId;var e=b.vb===void 0?null:b.vb;var f=b.bf===void 0?null:b.bf;var g=b.yc===void 0?null:b.yc;b=b.kb===void 0?[]:b.kb;this.Na=a;this.id=c;this.adId=d;this.vb=e;this.bf=f;this.yc=g;this.kb=b};var DF=function(a,b){this.url=a;this.g=b===void 0?null:b};var EF=function(a){var b=a===void 0?{}:a;a=b.vendor===void 0?null:b.vendor;var c=b.Sd===void 0?null:b.Sd;var d=b.Pb===void 0?null:b.Pb;var e=b.parameters===void 0?null:b.parameters;b=b.Z===void 0?[]:b.Z;this.vendor=a;this.Sd=c;this.Pb=d;this.parameters=e;this.Z=b};var FF=function(a){var b=a===void 0?{}:a;a=b.Sa===void 0?null:b.Sa;var c=b.errors===void 0?[]:b.errors;var d=b.Eb===void 0?[]:b.Eb;var e=b.ua===void 0?[]:b.ua;var f=b.Qa===void 0?[]:b.Qa;b=b.M===void 0?[]:b.M;this.Sa=a;this.g=c;this.j=d;this.ua=e;this.Qa=f;this.M=b};var GF=function(a,b){var c=b===void 0?{}:b;b=c.id===void 0?null:c.id;var d=c.Na===void 0?null:c.Na;c=c.Sb===void 0?null:c.Sb;this.g=a;this.id=b;this.Na=d;this.Sb=c=="audio"?"audio":c=="hybrid"?"hybrid":"video"};var HF=function(a){this.g=a=a===void 0?[]:a};HF.prototype.unshift=function(a){this.g.unshift(a)};var IF=function(a,b){var c=[];a.g.forEach(function(d){c=c.concat(d.g.M.filter(function(e){return e instanceof b}))});return c};var JF=function(a){this.Z=a=a===void 0?[]:a};var KF=function(a,b,c,d){b=b===void 0?[]:b;c=c===void 0?"":c;d=d===void 0?"":d;JF.call(this,a);this.g=b;this.l=c;this.j=d};t(KF,JF);var LF=function(){};LF.prototype.g=function(a,b){var c=[],d="",e="";IF(a,KF).forEach(function(f){c.push.apply(c,v(f.g));d=d||f.l;e=e||f.j});(c.length>0||d||e)&&b.M.set(AD,new AD(c,d,e))};var MF=function(){var a={};var b=a.uc===void 0?"":a.uc;var c=a.wc===void 0?"http://www.google.com/adsense/support":a.wc;var d=a.Of===void 0?!1:a.Of;a=a.Xg===void 0?0:a.Xg;this.uc=b;this.wc=c;this.Of=d;this.Xg=a};var NF=function(a,b){var c=b===void 0?{}:b;b=c.uc===void 0?null:c.uc;var d=c.wc===void 0?null:c.wc;var e=c.Yf===void 0?null:c.Yf;var f=c.wg===void 0?!1:c.wg;var g=c.af===void 0?[]:c.af;var h=c.Wg===void 0?!1:c.Wg;var k=c.uiConfig===void 0?null:c.uiConfig;var l=c.hh===void 0?null:c.hh;c=c.Ef===void 0?null:c.Ef;JF.call(this,a);this.uc=b;this.wc=d;this.Yf=e;this.wg=f;this.af=g;this.Wg=h;this.uiConfig=k;this.hh=l;this.Ef=c};t(NF,JF);var OF=function(){};OF.prototype.g=function(a,b){a=u(a.g);for(var c=a.next();!c.done;c=a.next()){c=u(c.value.g.M);for(var d=c.next();!d.done;d=c.next())if(d=d.value,d instanceof NF){b.M.set(vE,new vE(d.Ef,d.af));return}}};var PF=function(a){this.g=a};function QF(a){return(a==null?[]:a.xd).map(function(b){var c=new RE;c.l=b.width||0;c.g=b.height||0;c.j=b.Ob?b.Ob.Ya:"";c.ka=b.ka;return c})}
function RF(a){var b=a.resources.find(function(f){return f.resourceType==="Static"});if(!b)return null;var c=new SE;c.za=a.za;c.W=a.W;c.ka=a.ka;c.Za=a.Za!=null?a.Za:"left";c.ab=a.ab!=null?a.ab:"top";c.j=a.height?a.height:0;c.g=a.width?a.width:0;c.F=a.Mc?a.Mc:1;c.xa=a.xa?a.xa:0;c.na=a.na?a.na:-1;c.B=a.Yc;if(a.Ha&&a.Ha.ta){c.o=a.Ha.ta.url;c.A=vs(a.Ha.ta);for(var d=u(a.Ha.ob),e=d.next();!e.done;e=d.next())c.C.push(e.value.url)}c.D=QF(a.Ha);c.l=b.Ya;c.J=b.creativeType;return c}var SF=function(){};
SF.prototype.g=function(a,b){a=u(a.g);for(var c=a.next();!c.done;c=a.next()){c=u(c.value.g.M);for(var d=c.next();!d.done;d=c.next())d=d.value,d instanceof PF&&(d=RF(d.g))&&b.M.set(wE,new wE(d))}};var TF="ad.doubleclick.net bid.g.doubleclick.net ggpht.com google.co.uk google.com googleads.g.doubleclick.net googleads4.g.doubleclick.net googleadservices.com googlesyndication.com googleusercontent.com gstatic.com gvt1.com prod.google.com pubads.g.doubleclick.net s0.2mdn.net static.doubleclick.net surveys.g.doubleclick.net youtube.com ytimg.com".split(" "),UF=["c.googlesyndication.com"];
function VF(a,b){b=b===void 0?window.location.protocol:b;var c=!1;a==null||!a.startsWith("http")||(a==null?0:a.startsWith("https"))?c=!1:WF(a,UF)?c=!1:b.includes("https")&&WF(a,TF)&&(c=!0);return c?(a=new Xr(a),N(M.getInstance(),"htp","1"),Yr(a,"https"),a.toString()):a}function XF(a){if(!a)return!1;try{return(typeof a==="string"?new Xr(a):a).o==="gcache"}catch(b){return!1}}function YF(a){var b;if(b=XF(a))b=!!(new Xr(a)).g.get("url");return b}
function ZF(a){try{var b=typeof a==="string"?new Xr(a):a;if(XF(b)){var c,d;return(d=(c=b.g.get("url"))!=null?c:b.g.get("tag.check_url"))!=null?d:null}}catch(e){}return null}function WF(a,b){return(new RegExp("^https?://([a-z0-9-]{1,63}\\.)*("+b.join("|").replace(/\./g,"\\.")+")(:[0-9]+)?([/?#]|$)","i")).test(a)}
function $F(a){a=new Xr(a);var b=a.j;if(a.o!="http"&&a.o!="https")a=!1;else if(b.indexOf(".")==-1||b.match(/^[\.0-9]*$/))a=!1;else a:{try{Sk(a.toString())}catch(c){a=!1;break a}a=!0}return a};var aG=sa(["about:blank"]),bG=sa(["javascript:undefined"]),cG=wl(aG);fk(cG);var dG=wl(bG);fk(dG);var eG=function(){};eG.prototype.g=function(a,b){if(a.g.length!=0&&b instanceof kF){var c,d=((c=b.M.get(wE))==null?void 0:c.g)||null;a=u(a.g);for(c=a.next();!c.done;c=a.next()){c=u(c.value.g.ua);for(var e=c.next();!e.done;e=c.next())if(e=e.value,e.yc!=null)for(var f=u(e.yc.g),g=f.next();!g.done;g=f.next())(g=fG(g.value,e.Na,d))&&b.companionAds.push(g)}}};
var gG=function(a){var b=a.find(function(c){return c.resourceType=="IFrame"});return b||(b=a.find(function(c){return c.resourceType=="Html"}))?b:(b=a.find(function(c){return c.resourceType=="Static"&&rs.includes(c.creativeType||"")}))?b:a.length>0?a[0]:null},fG=function(a,b,c){var d=gG(a.resources);if(!d)return null;var e=hG(a,d,b,c);e.g=a.resources.filter(function(f){return f!=d}).map(function(f){return hG(a,f,b,c)});return e},hG=function(a,b,c,d){var e=new QE;e.Rb=a.Rb;e.width=a.width||-1;e.height=
a.height||-1;e.W=a.W;e.creativeType=b.creativeType;e.resourceType=b.resourceType;e.j=b.Ya;e.Na=c;if(ur())d=null;else{var f=iG(a,b);f?(c=Nr(document,"div"),c.id=a.id,Bw(c,{height:a.height+"px",width:a.width+"px"}),Pr(c,f),a=jG(a.Z),Pr(c,a),"outerHTML"in c?c=c.outerHTML:(a=Nr(Er(c),"DIV"),a.appendChild(c.cloneNode(!0)),c=a.innerHTML),b.resourceType=="Static"&&(b=VF(Zk(b.Ya)),c.indexOf("\n \n \n \n '+c+"\n "),d=c):d=""}e.content=d;return e},iG=function(a,b){if(b.resourceType=="Static"&&rs.includes(b.creativeType||
"")){b=Nr(document,"a");b.target="_blank";var c=a.zb&&a.zb.url;c&&(c=Lk(c),c!==void 0&&(b.href=c),a=a.zb,(a==null?void 0:a.g)!=null&&us()&&b.setAttribute("attributionsrc",Zk(a.g)));a=Nr(document,"img");a.src="";a.border="0";Bw(a,{height:"100%",width:"100%"});Pr(b,a);return b}return b.resourceType=="IFrame"?(b=b.Ya,a.zb!=null&&(b=new Xr(b),ks(b,"clickTAG",encodeURIComponent(String(a.zb.url))),b=b.toString()),c=Mr("IFRAME",{marginwidth:0,marginheight:0,hspace:0,vspace:0,frameborder:0,scrolling:"no"}),
c.height=a.height,c.width=a.width,c.setAttribute("src",VF(b)),c):b.resourceType=="Html"?(a=Mr("DIV"),c=b.Ya,b=document.implementation.createHTMLDocument(""),c=ul(c,b),b=b.body,b.appendChild(c),b=(new XMLSerializer).serializeToString(b),b=b.slice(b.indexOf(">")+1,b.lastIndexOf("")),b=Nk(b),a.nodeType===1&&Pk(a),a.innerHTML=Ok(b),a):null},jG=function(a){a=a.filter(function(b){return b.eventType=="creativeView"||b.eventType=="start"});return a.length==0?null:a.map(function(b){b=b.url;var c=Fr().Lj("IFRAME",
{frameborder:0,style:"border:0;vertical-align:bottom;"});c.src=fk(cG).toString();Bw(c,{display:"block",height:"0px",width:"0px"});var d="iframe"+Math.floor(Math.random()*1E9);c.setAttribute("height",0);c.setAttribute("width",0);c.setAttribute("src",VF(b));c.setAttribute("id",d);return c})};var kG=function(){};kG.prototype.g=function(a,b){a=u(a.g);for(var c=a.next();!c.done;c=a.next())lG(c.value,b)};var lG=function(a,b){a=u(a.g.M);for(var c=a.next();!c.done;c=a.next())c=c.value,c instanceof JF&&c instanceof JF&&c.Z.forEach(function(d){b.nb(FD(d))})};var mG=function(a,b,c,d){this.value=a;this.g=b;this.path=c;this.domain=d};var nG=function(){};nG.prototype.g=function(a,b){a=u(a.g);for(var c=a.next();!c.done;c=a.next()){c=u(c.value.g.M);for(var d=c.next();!d.done;d=c.next())if(d=d.value,d instanceof mG){var e=new xE;qh(e,1,d.value);Bg(e,2,af(d.g));qh(e,3,d.path);qh(e,4,d.domain);b.M.set(yE,new yE(e))}}};var oG=function(a){this.g=a};var pG=function(){};pG.prototype.g=function(a,b){a=u(a.g);for(var c=a.next();!c.done;c=a.next()){c=u(c.value.g.M);for(var d=c.next();!d.done;d=c.next())d=d.value,d instanceof oG&&b.M.set(zE,new zE(d.g))}};var qG=function(a,b,c,d,e){this.value=a;this.g=b;this.path=c;this.domain=d;this.j=e};var rG=function(){};rG.prototype.g=function(a,b){a=u(a.g);for(var c=a.next();!c.done;c=a.next()){c=u(c.value.g.M);for(var d=c.next();!d.done;d=c.next()){var e=d.value;e instanceof qG&&(d=new xE,qh(d,1,e.value),Bg(d,2,af(e.g)),qh(d,3,e.path),qh(d,4,e.domain),e=e.j?CE:BE,d=new e(d),b.M.set(e,d))}}};var sG=function(a,b,c){var d=c===void 0?{}:c;c=d.rb===void 0?null:d.rb;var e=d.da===void 0?null:d.da;var f=d.mimeType===void 0?null:d.mimeType;var g=d.ra===void 0?null:d.ra;var h=d.Ba===void 0?null:d.Ba;var k=d.gh===void 0?null:d.gh;var l=d.Nf===void 0?null:d.Nf;var p=d.oa===void 0?null:d.oa;var n=d.width===void 0?null:d.width;var q=d.height===void 0?null:d.height;d=d.Ab===void 0?null:d.Ab;this.type=b;this.da=e;this.Ba=h;this.gh=k;this.Nf=l;this.oa=p;this.url=a;this.rb=c;this.mimeType=f;this.ra=g;
this.width=n;this.height=q;this.Ab=d};var tG=function(a,b,c,d,e){this.A=a;this.g=b;this.o=c;this.j=d;this.l=e};function uG(a){return new (Function.prototype.bind.apply(a,[null].concat(v(Ga.apply(1,arguments)))))};var vG={},wG=(vG[18]=496,vG[22]=2128,vG[43]=488,vG[44]=848,vG[45]=2128,vG[59]=848,vG[133]=242,vG[134]=400,vG[135]=1E3,vG[136]=2E3,vG[139]=48,vG[140]=128,vG[141]=256,vG[160]=108,vG[242]=150,vG[243]=276,vG[244]=512,vG[245]=1E3,vG[247]=1E3,vG[249]=48,vG[250]=64,vG[251]=128,vG[278]=95,vG[342]=464,vG[343]=1064,vG[344]=2128,vG[345]=496,vG[346]=816,vG[347]=2096,vG),xG={},yG=(xG[18]=-1,xG[22]=-1,xG[43]=350,xG[44]=350,xG[45]=350,xG[59]=-1,xG[133]=350,xG[134]=350,xG[135]=350,xG[136]=350,xG[139]=50,xG[140]=
50,xG[141]=50,xG[160]=350,xG[242]=150,xG[243]=150,xG[244]=150,xG[245]=150,xG[247]=150,xG[249]=50,xG[250]=50,xG[251]=50,xG[278]=150,xG[342]=-1,xG[343]=-1,xG[344]=-1,xG[345]=-1,xG[346]=-1,xG[347]=-1,xG),zG={},AG=(zG[18]=!1,zG[22]=!1,zG[43]=!0,zG[44]=!0,zG[45]=!0,zG[59]=!1,zG[133]=!0,zG[134]=!0,zG[135]=!0,zG[136]=!0,zG[139]=!0,zG[140]=!0,zG[141]=!0,zG[160]=!0,zG[242]=!0,zG[243]=!0,zG[244]=!0,zG[245]=!0,zG[247]=!0,zG[249]=!0,zG[250]=!0,zG[251]=!0,zG[278]=!0,zG[342]=!1,zG[343]=!1,zG[344]=!1,zG[345]=!1,
zG[346]=!1,zG[347]=!1,zG),BG={},CG=(BG[18]="video/mp4",BG[22]="video/mp4",BG[43]="video/webm",BG[44]="video/webm",BG[45]="video/webm",BG[59]="video/mp4",BG[133]="video/mp4",BG[134]="video/mp4",BG[135]="video/mp4",BG[136]="video/mp4",BG[139]="audio/mp4",BG[140]="audio/mp4",BG[141]="audio/mp4",BG[160]="video/mp4",BG[242]="video/webm",BG[243]="video/webm",BG[244]="video/webm",BG[245]="video/webm",BG[247]="video/webm",BG[249]="audio/webm",BG[250]="audio/webm",BG[251]="audio/webm",BG[278]="video/webm",
BG[342]="video/mp4",BG[343]="video/mp4",BG[344]="video/mp4",BG[345]="video/mp4",BG[346]="video/mp4",BG[347]="video/mp4",BG),DG={},EG=(DG[18]="avc1.42001E, mp4a.40.2",DG[22]="avc1.64001F, mp4a.40.2",DG[43]="vp8, vorbis",DG[44]="vp8, vorbis",DG[45]="vp8, vorbis",DG[59]="avc1.4D001F, mp4a.40.2",DG[133]="avc1.4D401E",DG[134]="avc1.4D401E",DG[135]="avc1.4D401E",DG[136]="avc1.4D401E",DG[139]="mp4a.40.2",DG[140]="mp4a.40.2",DG[141]="mp4a.40.2",DG[160]="avc1.4D401E",DG[242]="vp9",DG[243]="vp9",DG[244]="vp9",
DG[245]="vp9",DG[247]="vp9",DG[249]="opus",DG[250]="opus",DG[251]="opus",DG[278]="vp9",DG[342]="avc1.42E01E, mp4a.40.2",DG[343]="avc1.42E01E, mp4a.40.2",DG[344]="avc1.42E01E, mp4a.40.2",DG[345]="avc1.42E01E, mp4a.40.2",DG[346]="avc1.42E01E, mp4a.40.2",DG[347]="avc1.4D001F, mp4a.40.2",DG);var FG=function(a){switch(a){case 0:return"No Error";case 1:return"Access denied to content document";case 2:return"File not found";case 3:return"Firefox silently errored";case 4:return"Application custom error";case 5:return"An exception occurred";case 6:return"Http response at 400 or 500 level";case 7:return"Request was aborted";case 8:return"Request timed out";case 9:return"The resource is not available offline";default:return"Unrecognized error code"}};var GG=function(){U.call(this);this.headers=new Map;this.j=!1;this.g=null;this.H="";this.o=0;this.l=this.F=this.A=this.D=!1;this.K=0;this.B=null;this.U="";this.N=!1};ab(GG,U);
var HG=/^https?$/i,IG=["POST","PUT"],LG=function(a,b,c,d){if(a.g)throw Error("[goog.net.XhrIo] Object is active with another request="+a.H+"; newUri="+b);c=c?c.toUpperCase():"GET";a.H=b;a.o=0;a.D=!1;a.j=!0;a.g=new XMLHttpRequest;a.g.onreadystatechange=TB(Xa(a.O,a));try{a.F=!0,a.g.open(c,String(b),!0),a.F=!1}catch(g){JG(a);return}b=d||"";d=new Map(a.headers);var e=Array.from(d.keys()).find(function(g){return"content-type"==g.toLowerCase()}),f=A.FormData&&b instanceof A.FormData;!kc(IG,c)||e||f||d.set("Content-Type",
"application/x-www-form-urlencoded;charset=utf-8");c=u(d);for(d=c.next();!d.done;d=c.next())e=u(d.value),d=e.next().value,e=e.next().value,a.g.setRequestHeader(d,e);a.U&&(a.g.responseType=a.U);"withCredentials"in a.g&&a.g.withCredentials!==a.N&&(a.g.withCredentials=a.N);try{KG(a),a.K>0&&(a.B=setTimeout(a.ca.bind(a),a.K)),a.A=!0,a.g.send(b),a.A=!1}catch(g){JG(a)}};GG.prototype.ca=function(){typeof Ja!="undefined"&&this.g&&(this.o=8,this.dispatchEvent("timeout"),this.abort(8))};
var JG=function(a){a.j=!1;a.g&&(a.l=!0,a.g.abort(),a.l=!1);a.o=5;MG(a);NG(a)},MG=function(a){a.D||(a.D=!0,a.dispatchEvent("complete"),a.dispatchEvent("error"))};GG.prototype.abort=function(a){this.g&&this.j&&(this.j=!1,this.l=!0,this.g.abort(),this.l=!1,this.o=a||7,this.dispatchEvent("complete"),this.dispatchEvent("abort"),NG(this))};GG.prototype.R=function(){this.g&&(this.j&&(this.j=!1,this.l=!0,this.g.abort(),this.l=!1),NG(this,!0));GG.ib.R.call(this)};
GG.prototype.O=function(){this.Fb()||(this.F||this.A||this.l?OG(this):this.aa())};GG.prototype.aa=function(){OG(this)};
var OG=function(a){if(a.j&&typeof Ja!="undefined")if(a.A&&(a.g?a.g.readyState:0)==4)setTimeout(a.O.bind(a),0);else if(a.dispatchEvent("readystatechange"),(a.g?a.g.readyState:0)==4){a.j=!1;try{var b=PG(a);a:switch(b){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var c=!0;break a;default:c=!1}var d;if(!(d=c)){var e;if(e=b===0){var f=String(a.H).match(cl)[1]||null;!f&&A.self&&A.self.location&&(f=A.self.location.protocol.slice(0,-1));e=!HG.test(f?f.toLowerCase():"")}d=e}d?(a.dispatchEvent("complete"),
a.dispatchEvent("success")):(a.o=6,MG(a))}finally{NG(a)}}},NG=function(a,b){if(a.g){KG(a);var c=a.g;a.g=null;b||a.dispatchEvent("ready");try{c.onreadystatechange=null}catch(d){}}},KG=function(a){a.B&&(clearTimeout(a.B),a.B=null)};GG.prototype.isActive=function(){return!!this.g};var PG=function(a){try{return(a.g?a.g.readyState:0)>2?a.g.status:-1}catch(b){return-1}},QG=function(a){if(a.g){a:{a=a.g.responseText;if(A.JSON)try{var b=A.JSON.parse(a);break a}catch(c){}b=xn(a)}return b}};var RG=RegExp("/itag/(\\d+)/"),SG=RegExp("/cpn/([\\w-]{16})(/|$)"),TG=RegExp("^[\\w-]{16}$");function UG(a){var b=Number(hl(a,"itag"));return b?b:(a=a.match(RG))&&a.length===2?Number(a[1]):null}function VG(a){var b=CG[a];a=EG[a];b?(b=Zk(b).toLowerCase(),b=a?b+'; codecs="'+Zk(a)+'"':b):b="";return b}function WG(a,b){if(typeof CustomEvent==="function")return new CustomEvent(a,{detail:b});var c=document.createEvent("CustomEvent");c.initCustomEvent(a,!1,!0,b);return c};var YG=function(){var a=new XG;this.j=a===void 0?null:a};
YG.prototype.g=function(a,b){if(b instanceof bF&&this.j&&!(b.j.length>0)){a=u(a.g);for(var c=a.next();!c.done;c=a.next()){c=u(c.value.g.M);for(var d=c.next();!d.done;d=c.next())if(d=d.value,d instanceof tG){a:{var e=this.j;un(M.getInstance(),"ghmsh_s");for(var f="",g="",h="",k=0,l=u(d.j),p=l.next();!p.done;p=l.next())p=p.value,f+=p.da+",",p.url.indexOf("gvt1.com")>=0&&k++;l=u(d.l);for(p=l.next();!p.done;p=l.next())p=p.value,g+=p.da+",",p.url.indexOf("gvt1.com")>=0&&k++;l=u(d.g);for(p=l.next();!p.done;p=
l.next())p=p.value,h+=p.da+",",p.url.indexOf("gvt1.com")>=0&&k++;l=u(d.o);for(p=l.next();!p.done;p=l.next())p=p.value,p.mimeType=="application/dash+xml"?N(M.getInstance(),"ghmsh_hd","1"):p.mimeType=="application/vnd.apple.mpegurl"&&N(M.getInstance(),"ghmsh_hh","1");N(M.getInstance(),"ghmsh_mi",f);N(M.getInstance(),"ghmsh_vi",g);N(M.getInstance(),"ghmsh_ai",h);N(M.getInstance(),"ghmsh_gvt",k.toString());e=ZG(e,d);e||(un(M.getInstance(),"ghmsh_f"),d.j.length>0?e=$G(d.j[0]):d.g.length>0&&d.l.length>
0?e=aH(d.l[0],d.g[0]):(un(M.getInstance(),"ghmsh_ff"),e=null));if(e){(f=e)?(N(M.getInstance(),"ams","1"),f.getWidth()&&f.getHeight()&&N(M.getInstance(),"vs",f.getWidth()+"x"+f.getHeight()),f.ra&&N(M.getInstance(),"vc",f.ra),f instanceof mF?(f.g&&N(M.getInstance(),"mt",f.g),f.getMediaUrl().indexOf("gvt1.com")>=0&&N(M.getInstance(),"gvt1","1"),bH(f.getMediaUrl())):f instanceof lF&&(f.l&&N(M.getInstance(),"mt",f.l),f.j&&(N(M.getInstance(),"bit",String(f.j)),f.o.indexOf("gvt1.com")>=0&&N(M.getInstance(),
"gvt1","1")),f.g&&N(M.getInstance(),"bait",String(f.g)),bH(f.o))):N(M.getInstance(),"ams","0");cH(e);if(Oo(ip)&&(f=(f=dH(d,18))?f:null)){e=[e,f];break a}e=[e]}else e=[]}f=void 0;if(e.length>0)for(g=u(e),h=g.next();!h.done;h=g.next())if(h=h.value,k=void 0,h instanceof mF&&(k=h.getMediaUrl()),h instanceof lF&&(k=h.o),k&&(h=k,h=(k=hl(h,"cpn"))&&k.match(TG)?k:(h=h.match(SG))&&h.length===3?h[1]:null,h)){f=h;break}d=f?f:d.A;N(M.getInstance(),"cpn",d);b.O=d;d=u(e);for(e=d.next();!e.done;e=d.next())b.j.push(e.value)}}}};var eH=function(a){this.g=a};var fH=function(){};fH.prototype.g=function(a,b){a=u(a.g);for(var c=a.next();!c.done;c=a.next()){c=u(c.value.g.M);for(var d=c.next();!d.done;d=c.next())if(d=d.value,d instanceof eH)try{var e=d.g;var f=Ib(e,"&")?"document"in A?Vk(e):Wk(e):e;var g=gD(f);b.M.set(DE,new DE(g));return}catch(h){}}};var gH=function(){};gH.prototype.g=function(a,b){b instanceof bF&&(b.o=hH(a),b.o&&(b.o.B.forEach(function(c){b.nb(new ED("vastIconRendered",c))}),b.o.C.forEach(function(c){b.nb(new ED("vastIconClicked",c))})))};
var hH=function(a){a=iH(a);a=u(a);for(var b=a.next();!b.done;b=a.next())if(b=jH(b.value))return b;return null},iH=function(a){var b=[];a=u(a.g);for(var c=a.next();!c.done;c=a.next()){c=u(c.value.g.ua);for(var d=c.next();!d.done;d=c.next())d=d.value,d.vb&&b.push.apply(b,v(d.vb.va))}return b},kH=function(a){return(a==null?[]:a.xd).map(function(b){var c=new RE;c.l=b.width||0;c.g=b.height||0;c.j=b.Ob?b.Ob.Ya:"";c.ka=b.ka;return c})},jH=function(a){var b=a.resources.find(function(f){return f.resourceType===
"Static"});if(!b)return null;var c=new SE;c.za=a.za;c.W=a.W;c.ka=a.ka;c.Za=a.Za!=null?a.Za:"left";c.ab=a.ab!=null?a.ab:"top";c.j=a.height?a.height:0;c.g=a.width?a.width:0;c.F=a.Mc?a.Mc:1;c.xa=a.xa?a.xa:0;c.na=a.na?a.na:-1;c.B=a.Yc;if(a.Ha&&a.Ha.ta){c.o=a.Ha.ta.url;c.A=vs(a.Ha.ta);for(var d=u(a.Ha.ob),e=d.next();!e.done;e=d.next())c.C.push(e.value.url)}c.D=kH(a.Ha);c.l=b.Ya;c.J=b.creativeType;return c};var lH=function(a){var b=a===void 0?{}:a;a=b.sc===void 0?null:b.sc;var c=b.Sa===void 0?null:b.Sa;var d=b.yb===void 0?null:b.yb;var e=b.Zd===void 0?null:b.Zd;var f=b.description===void 0?null:b.description;var g=b.Yg===void 0?null:b.Yg;FF.call(this,{Sa:c,errors:b.errors===void 0?[]:b.errors,Eb:b.Eb===void 0?[]:b.Eb,ua:b.ua===void 0?[]:b.ua,Qa:b.Qa===void 0?[]:b.Qa,M:b.M===void 0?[]:b.M});this.sc=a;this.yb=d;this.Zd=e;this.description=f;this.Yg=g};t(lH,FF);var mH=function(){};
mH.prototype.g=function(a,b){if(b instanceof bF)if(b.j.length>0)N(M.getInstance(),"msm","0");else{N(M.getInstance(),"msm","1");a=u(a.g);for(var c=a.next();!c.done;c=a.next()){c=c.value;for(var d=u(c.g.ua),e=d.next();!e.done;e=d.next())if((e=e.value.vb)&&c.g instanceof lH&&(e=e.Te[0])){var f=new Xr(e.url);f.j==="www.youtube.com"&&f.l==="/get_video"&&N(M.getInstance(),"ugvu","1");f=(e.url=e.url)?UG(e.url):null;f=new mF({Zh:e.url,da:f,mimeType:e.mimeType,ra:e.codec,Ba:e.codec,height:e.height,width:e.width,
Ab:null});b.W=e.W;b.j.push(f)}}}};var nH=function(a,b){this.g=a===void 0?null:a;this.j=b===void 0?null:b};var oH=function(){};oH.prototype.g=function(a,b){a=u(a.g);for(var c=a.next();!c.done;c=a.next()){a:{var d=b;c=u(c.value.g.M);for(var e=c.next();!e.done;e=c.next())if(e=e.value,e instanceof nH){d.M.set(EE,new EE(e.g,e.j));d=!0;break a}d=!1}if(d)break}};var pH=function(){};t(pH,gH);pH.prototype.g=function(a,b){b instanceof bF&&(b.va=qH(a))};var qH=function(a){var b=new Set;return iH(a).map(function(c){return jH(c)}).filter(function(c){if(!c||b.has(c.za))return!1;b.add(c.za);return!0})};var rH=function(a){this.Qa=a=a===void 0?[]:a};var sH=function(){};sH.prototype.g=function(a,b){var c=new GE,d=[];IF(a,rH).forEach(function(e){d=d.concat(e.Qa)});a.g.forEach(function(e){d=d.concat(e.g.Qa)});d.forEach(function(e){var f=e.Sd;if(f){var g=e.Z.map(function(h){return FD(h)});HE(c,e.vendor,f,e.parameters,e.Pb,g)}});c.g.length&&b.M.set(GE,c)};var tH=function(a){this.dealId=a};var uH=function(){};uH.prototype.g=function(a,b){a=u(a.g.slice().reverse());for(var c=a.next();!c.done;c=a.next()){c=u(c.value.g.M);for(var d=c.next();!d.done;d=c.next())if(d=d.value,d instanceof tH&&(d=d.dealId)&&!D(d)){b.M.set(IE,new IE(d));return}}};var yH=function(){this.j=[new LF,new OF,new SF,new eG,new kG,new nG,new pG,new rG,new YG,new fH,new mH,new oH,new pH,new sH,new uH,new vH,new wH,new xH]};yH.prototype.g=function(a,b,c){for(var d=u(this.j),e=d.next();!e.done;e=d.next())e.value.g(a,b,c)};var zH=function(a,b,c,d){this.l=a;this.j=d===void 0?null:d;this.o=b;this.g=c};var vH=function(){};vH.prototype.g=function(a,b){a=u(a.g.slice());for(var c=a.next();!c.done;c=a.next()){c=u(c.value.g.M);for(var d=c.next();!d.done;d=c.next())if(d=d.value,d instanceof zH){b.M.set(JE,new JE(d.l,d.o,d.g,d.j));return}}};var AH=function(a){this.g=a===void 0?!1:a};var wH=function(){};wH.prototype.g=function(a,b){for(var c=u(a.g),d=c.next();!d.done;d=c.next()){d=u(d.value.g.M);for(var e=d.next();!e.done;e=d.next())if(e=e.value,e instanceof AH&&(e=new KE(e.g),!e.g)){b.M.set(KE,e);return}}if(a=a.g.length<1?null:a.g[a.g.length-1])for(a=u(a.g.M),c=a.next();!c.done;c=a.next())c=c.value,c instanceof AH&&b.M.set(KE,new KE(c.g))};var BH=function(a){var b=a===void 0?{}:a;a=b.videoId===void 0?null:b.videoId;var c=b.Hb===void 0?!1:b.Hb;var d=b.Wd===void 0?null:b.Wd;var e=b.Bf===void 0?null:b.Bf;var f=b.cd===void 0?!1:b.cd;var g=b.ie===void 0?null:b.ie;var h=b.wd===void 0?null:b.wd;var k=b.vd===void 0?null:b.vd;var l=b.he===void 0?null:b.he;var p=b.format===void 0?null:b.format;var n=b.gf===void 0?null:b.gf;b=b.Cf===void 0?null:b.Cf;this.videoId=a;this.Hb=c;this.Wd=d;this.Bf=e;this.cd=f;this.ie=g;this.wd=h;this.vd=k;this.he=l;
this.format=p;this.gf=n;this.Cf=b;N(M.getInstance(),"ytext_viu",this.cd?"1":"0");N(M.getInstance(),"ytext_hd",this.Wd&&this.vd&&this.wd?"1":"0");this.cd&&N(M.getInstance(),"ytext_vi",this.videoId?this.videoId:"Undefined")};var xH=function(){};xH.prototype.g=function(a,b){a=u(a.g);for(var c=a.next();!c.done;c=a.next()){c=u(c.value.g.M);for(var d=c.next();!d.done;d=c.next())if(d=d.value,d instanceof BH){b.M.set(NE,new NE(new ME(d.videoId,d.Wd,d.Bf,d.Hb,d.cd),new LE(d.ie,d.wd,d.vd,d.he),d.format,d.Cf,d.gf));return}}};var CH=function(){};CH.prototype.j=function(a){var b=new JD;this.g(a,b);return b};CH.prototype.g=function(a,b){a.g.forEach(function(e){DH(e,b);e.g.Sa&&b.A.push(e.g.Sa)});if(a.g.length>0){var c=a.g[0];c.id&&(b.id=c.id);c.Sb&&(b.Sb=c.Sb);c.Na&&(b.D=c.Na);a=u([].concat(v(a.g)).reverse());for(var d=a.next();!d.done;d=a.next())d=d.value,d.Na&&b.U.push(d.Na);c=c.g;c instanceof lH&&(b.yb=c.yb,b.sc=c.sc,EH(c,b))}};
var DH=function(a,b){var c=a.g.j;a.g.g.forEach(function(d){b.nb(new ED("error",d))});c.forEach(function(d){b.nb(GD("impression",d.url,d.g))})},EH=function(a,b){a=u(a.ua);for(var c=a.next();!c.done;c=a.next())if((c=c.value.vb)&&c.ub&&c.ub.length>0){a=u(c.ub);for(c=a.next();!c.done;c=a.next())c=c.value,b.ub.push(new BD(c.Ob.resourceType==="Url"?c.Ob.Ya:null,c.Ob.resourceType==="Html"?c.Ob.Ya:null,c.mimeType,c.W,c.Vd));break}};var FH=function(a,b){a=Error.call(this,a);this.message=a.message;"stack"in a&&(this.stack=a.stack);this.errorType=b===void 0?900:b};t(FH,Error);var GH=function(a){this.j=a;this.g=Date.now()};GH.prototype.reset=function(){this.g=Date.now()};var HH=function(a){a=a.g+a.j-Date.now();return a>0?a:0};var IH="://secure-...imrworldwide.com/ ://cdn.imrworldwide.com/ ://aksecure.imrworldwide.com/ ://[^.]*.moatads.com ://youtube[0-9]+.moatpixel.com ://pm.adsafeprotected.com/youtube ://pm.test-adsafeprotected.com/youtube ://e[0-9]+.yt.srs.doubleverify.com www.google.com/pagead/xsul www.youtube.com/pagead/slav".split(" "),JH=/\bocr\b/;function KH(a){if(D(Zk(a))||yc&&a.length>2048)return!1;try{if((new Xr(a)).C.match(JH))return!0}catch(b){}return IH.find(function(b){return a.match(b)!=null})!=null};var LH=function(a,b){var c=Error.call(this,a);this.message=c.message;"stack"in c&&(this.stack=c.stack);this.errorCode=a;this.mk=b};t(LH,Error);var MH=function(a){if(typeof DOMParser!="undefined"){var b=new DOMParser;a=Nk(a===null?"null":a===void 0?"undefined":a);return b.parseFromString(Ok(a),"application/xml")}throw Error("Your browser does not support loading xml documents");};var NH=function(a){R.call(this);this.j=a;this.g={}};ab(NH,R);var OH=[];NH.prototype.listen=function(a,b,c,d){Array.isArray(b)||(b&&(OH[0]=b.toString()),b=OH);for(var e=0;e0?a[a.length-1]:null}
function V(a){if(a.childNodes.length==0)return null;var b="";a=u(a.childNodes);for(var c=a.next();!c.done;c=a.next())switch(c=c.value,c.nodeType){case 4:case 3:b+=c.nodeValue}return b.trim()}function kI(a){var b=null;if(a.hasAttribute("attributiontype")){var c=a.getAttribute("attributiontype");c==="SINGLE_PING"?b="":c==="DOUBLE_PING"&&a.hasAttribute("attributionsrc")&&(b=a.getAttribute("attributionsrc"))}else a.hasAttribute("attributionsrc")&&(b=a.getAttribute("attributionsrc"));return b}
function lI(a,b){return a.hasAttribute("type")&&a.getAttribute("type").toLowerCase()==b.toLowerCase()}function mI(a){var b=(a||"").split(":");if(b.length==3){a=parseInt(b[0],10);var c=parseInt(b[1],10),d=b[2].split("."),e=parseInt(d[0],10);b=0;d.length==2&&(b=parseInt(d[1],10));if(!(isNaN(a)||isNaN(c)||isNaN(e)||isNaN(b)))return a=a*60*60*1E3+c*60*1E3+e*1E3,a+=b}}
function nI(a){var b=[];a=u(P(a));for(var c=a.next();!c.done;c=a.next()){var d=c.value;if(d.nodeName=="Verification"){c={vendor:d.getAttribute("vendor"),Z:[]};d=u(P(d));for(var e=d.next();!e.done;e=d.next())switch(e=e.value,e.nodeName){case "JavaScriptResource":c.Sd=V(e);c.Pb=e.getAttribute("apiFramework");break;case "VerificationParameters":c.parameters=V(e);break;case "TrackingEvents":c.Z=oI(e)}c.Sd!=null&&b.push(new EF(c))}}return b}
function pI(a){var b=[];a=u(P(a));for(var c=a.next();!c.done;c=a.next())c=c.value,c.nodeName=="CustomTracking"&&b.push.apply(b,v(oI(c)));return b}function qI(a,b){var c=a.getAttribute("id");a=kI(a);b=new Cr(b,c,a);b.url=iF(b.url,b.g);return b}
function oI(a){var b=[];a=u(P(a));for(var c=a.next();!c.done;c=a.next()){var d=c.value;if(d.nodeName=="Tracking"){c=d.getAttribute("event");var e=V(d);if(e!=null&&!D(e)){var f=d.getAttribute("offset"),g=null,h=null;f&&f.endsWith("%")?h=parseInt(f,10):f&&f.includes(":")&&(g=mI(f));d=kI(d);e=iF(e,d);b.push(new DD(c,e,{xa:g,Md:h},d))}}}return b}function rI(a){return a==null||a==="about:blank"?null:a}
function sI(a){var b={};b.za=a.getAttribute("program");b.W=a.getAttribute("apiFramework");b.ka=a.getAttribute("altText");b.sg=a.getAttribute("hoverText");b.width=gI(a,"width");b.height=gI(a,"height");b.Za=a.getAttribute("xPosition");b.ab=a.getAttribute("yPosition");b.na=mI(a.getAttribute("duration"));b.Mc=mI(a.getAttribute("pxratio"));b.xa=tI(a.getAttribute("offset"),b.na);b.resources=uI(a);b.Yc=[];a=u(P(a));for(var c=a.next();!c.done;c=a.next()){var d=c.value;switch(d.nodeName){case "IconViewTracking":b.Yc.push(V(d));
break;case "IconClicks":c=null;var e=[],f=[];d=u(P(d));for(var g=d.next();!g.done;g=d.next()){g=g.value;var h=V(g),k=g.getAttribute("id");switch(g.nodeName){case "IconClickThrough":h!=null&&(c=qI(g,h));break;case "IconClickTracking":h!=null&&e.push(new Cr(h,k));break;case "IconClickFallbackImages":f=vI(g)}}b.Ha=new sF({ta:c,ob:e,xd:f})}}return new tF(b)}function tI(a,b){if(a!=null)return a.endsWith("%")&&b!=null?parseInt(a,10)*b/100:mI(a)}
function uI(a){var b=[];a=u(P(a));for(var c=a.next();!c.done;c=a.next()){c=c.value;var d=V(c);if(d!=null)switch(c.nodeName){case "StaticResource":b.push(new nF(d,"Static",c.getAttribute("creativeType")));break;case "HTMLResource":b.push(new nF(d,"Html"));break;case "IFrameResource":b.push(new nF(d,"IFrame"))}}return b}
function vI(a){var b=[];a=u(P(a));for(var c=a.next();!c.done;c=a.next()){var d=c.value;c=uI(d).filter(function(g){return g.resourceType=="Static"});if(c.length>0){var e=gI(d,"width"),f=gI(d,"height");d=wI(d);b.push(new rF(c[0],e,f,d))}}return b}function wI(a){a=u(P(a));for(var b=a.next();!b.done;b=a.next())if(b=b.value,b.nodeName=="AltText")return V(b);return null};var xI=function(){this.g=[]},yI=function(a,b){a.g.includes(b)||a.g.push(b)},zI=function(a,b){var c=[];b=u(b);for(var d=b.next();!d.done;d=b.next())if(d=d.value,d.nodeName=="Extension")for(var e=u(a.g),f=e.next();!f.done;f=e.next())if(f=f.value.g(d),f!=null){c.push(f);break}return c},AI=function(a){var b={kb:[]};b.Na=gI(a,"sequence");b.id=a.getAttribute("id");b.adId=a.getAttribute("adId");for(var c=u(P(a)),d=c.next();!d.done;d=c.next()){var e=d.value;switch(e.nodeName){case "Linear":for(var f=void 0,
g=void 0,h=void 0,k=[],l=[],p=[],n=[],q=[],r=u(P(e)),w=r.next();!w.done;w=r.next()){var z=w.value;switch(z.nodeName){case "TrackingEvents":k=oI(z);break;case "VideoClicks":for(var B=null,E=[],da=[],pa=u(P(z)),Ta=pa.next();!Ta.done;Ta=pa.next()){var qb=Ta.value,Cd=V(qb);if(Cd!=null){var qe=qb.getAttribute("id");switch(qb.nodeName){case "ClickThrough":B=qI(qb,Cd);break;case "ClickTracking":var Dd=kI(qb);E.push(new Cr(Cd,qe,Dd));break;case "CustomClick":da.push(new Cr(Cd,qe))}}}h=new xF({ta:B,ob:E,qe:da});
break;case "MediaFiles":for(var Ed=[],bb=[],mf=[],re=u(P(z)),se=re.next();!se.done;se=re.next()){var Na=se.value;switch(Na.nodeName){case "MediaFile":var te=void 0,lc=V(Na);if(lc==null)var sg=null;else{lc.indexOf("www.youtube.com/get_video")!=-1?N(M.getInstance(),"hgvu","1"):lc.indexOf("redirector.gvt1.com/get_video")!=-1&&N(M.getInstance(),"hgvuc","1");var Ab={};Ab.height=gI(Na,"height");Ab.width=gI(Na,"width");Ab.rb=Na.getAttribute("delivery");Ab.bitrate=gI(Na,"bitrate");Ab.Ag=gI(Na,"minBitrate");
Ab.maxBitrate=gI(Na,"maxBitrate");Ab.mimeType=(te=Na.getAttribute("type"))==null?void 0:te.toLowerCase();Ab.W=Na.getAttribute("apiFramework");Ab.codec=Na.getAttribute("codec");var nf=UG(lc);nf!=null&&(Ab.da=nf);sg=new wF(lc,Ab)}var Fd=sg;Fd!==null&&Ed.push(Fd);break;case "ClosedCaptionFiles":for(var rb=[],ad=u(P(Na)),ue=ad.next();!ue.done;ue=ad.next()){var ve=ue.value,we=V(ve);if(we!==null){var xe={url:we},of=void 0;xe.mimeType=(of=ve.getAttribute("type"))==null?void 0:of.toLowerCase();xe.language=
ve.getAttribute("language");rb.push(new qF(xe))}}mf=rb;break;case "InteractiveCreativeFile":var pf=void 0,Dc=jI(Na,"HTMLResource");if(Dc){var lb="Html";var Gd=V(Dc)}else lb="Url",Gd=V(Na);if(!Gd||D(Gd))var Hd=null;else{var Id=new nF(Gd,lb),ye={};ye.mimeType=(pf=Na.getAttribute("type"))==null?void 0:pf.toLowerCase();ye.W=Na.getAttribute("apiFramework");ye.Vd=hI(Na.getAttribute("variableDuration"));var tg=new uF(Id,ye);lb==="Html"?vn("lima_p_ich"):vn("lima_p_icu");Hd=tg}var Ec=Hd;Ec!==null&&bb.push(Ec)}}N(M.getInstance(),
"vmfc",""+Ed.length);var ug=mf.length===0?"0":"1";N(M.getInstance(),"vhc",ug);var qf=Ed;var bi=mf;var lo=bb;l=qf;n=bi;p=lo;break;case "Duration":g=mI(V(z));break;case "AdParameters":f=Zk(V(z));break;case "Icons":for(var kk=[],lk=u(P(z)),vg=lk.next();!vg.done;vg=lk.next()){var mk=vg.value;mk.nodeName=="Icon"&&kk.push(sI(mk))}var nk=q=kk;N(M.getInstance(),"icc",nk.length.toString());if(nk.length>0){for(var ok=0,mo=0,pk=0,no=0,rf=null,oo="ns",po="ns",Bb=u(nk),ci=Bb.next();!ci.done;ci=Bb.next()){for(var sf=
ci.value,wg=u(sf.resources),tf=wg.next();!tf.done;tf=wg.next())switch(tf.value.resourceType){case "Html":ok++;break;case "IFrame":mo++;break;case "Static":pk++;break;default:no++}rf=sf.za;po=sf.width?sf.width.toString():"ns";oo=sf.height?sf.height.toString():"ns"}N(M.getInstance(),"icrh",ok.toString());N(M.getInstance(),"icri",mo.toString());N(M.getInstance(),"icrs",pk.toString());N(M.getInstance(),"icru",no.toString());rf&&(rf.length>16&&(rf=rf.substring(0,15)+"*"),N(M.getInstance(),"icp",rf));N(M.getInstance(),
"icdi",oo+"x"+po)}}}var qk=tI(e.getAttribute("skipoffset"),g);b.vb=new yF({duration:g,qa:qk,Z:k,Te:l,ub:p,Vf:n,Af:h,sa:f,va:q});break;case "NonLinearAds":for(var rk=[],di=[],ei=u(P(e)),fi=ei.next();!fi.done;fi=ei.next()){var gi=fi.value;switch(gi.nodeName){case "NonLinear":for(var sk=rk,qo=sk.push,Fc=gi,ro=uI(Fc),uf=Fc.getAttribute("id"),so=gI(Fc,"width"),to=gI(Fc,"height"),vu=Fc.getAttribute("apiFramework"),uo=mI(Fc.getAttribute("minSuggestedDuration")),ze=null,tk=null,uk=[],vk=u(P(Fc)),wk=vk.next();!wk.done;wk=
vk.next()){var vf=wk.value,sb=V(vf);if(sb!=null)switch(vf.nodeName){case "NonLinearClickThrough":tk=qI(vf,sb);break;case "NonLinearClickTracking":var Cb=kI(vf);uk.push(new Cr(sb,vf.getAttribute("id"),Cb));break;case "AdParameters":ze=Zk(sb)}}qo.call(sk,new zF({id:uf,W:vu,width:so,height:to,Bg:uo,Gg:tk,Hg:uk,resources:ro,sa:ze}));break;case "TrackingEvents":di=oI(gi)}}b.bf=new AF(rk,di);var xk=b.bf.g;N(M.getInstance(),"nlc",xk.length.toString());if(xk.length>0){for(var vo=0,yk=0,wo=0,xo=0,zk=!1,yo=
u(xk),Ak=yo.next();!Ak.done;Ak=yo.next())for(var zo=u(Ak.value.resources),hi=zo.next();!hi.done;hi=zo.next()){var Ao=hi.value;switch(Ao.resourceType){case "Html":vo++;zk=zk||Ib(Ao.Ya,"<");break;case "IFrame":yk++;break;case "Static":wo++;break;default:xo++}}N(M.getInstance(),"nlrh",vo.toString());N(M.getInstance(),"nlri",yk.toString());N(M.getInstance(),"nlrs",wo.toString());N(M.getInstance(),"nlru",xo.toString());N(M.getInstance(),"nlrhc",zk.toString())}break;case "CompanionAds":var Bo=[],Ae=e.getAttribute("required");
Ae!="any"&&Ae!="all"&&(Ae="none");for(var Co=u(P(e)),Bk=Co.next();!Bk.done;Bk=Co.next()){var Ck=Bk.value;if(Ck.nodeName=="Companion"){for(var Do=Bo,Dk=Do.push,Db=void 0,mc=Ck,Eo=uI(mc),Ek=mc.getAttribute("id"),Fo=mc.getAttribute("adSlotID"),Fk=mc.getAttribute("apiFramework"),wu=mc.getAttribute("width")==="fluid"&&mc.getAttribute("height")==="fluid",xu=gI(mc,"width"),Go=gI(mc,"height"),Ho=[],xg=null,ii=[],Io=u(P(mc)),ji=Io.next();!ji.done;ji=Io.next()){var wf=ji.value;switch(wf.nodeName){case "TrackingEvents":Ho=
oI(wf);break;case "CompanionClickThrough":Db=V(wf);Db==null||D(Db)||(xg=qI(wf,Db));break;case "CompanionClickTracking":if(Db=V(wf),Db!=null&&!D(Db)){var ZS=kI(wf);ii.push(new Cr(Db,wf.getAttribute("id"),ZS))}}}Dk.call(Do,new oF({id:Ek,Rb:Fo,W:Fk,width:xu,height:Go,ue:wu,zb:xg,Wf:ii,resources:Eo,Z:Ho}))}}b.yc=new pF(Bo,Ae);var yu=b.yc.g;N(M.getInstance(),"ccc",yu.length.toString());if(yu.length>0){for(var TE=0,UE=0,VE=0,WE=0,zu=!1,XE=u(yu),Au=XE.next();!Au.done;Au=XE.next())for(var YE=u(Au.value.resources),
Bu=YE.next();!Bu.done;Bu=YE.next()){var ZE=Bu.value;switch(ZE.resourceType){case "Html":TE++;zu=zu||Ib(ZE.Ya,"<");break;case "IFrame":UE++;break;case "Static":VE++;break;default:WE++}}N(M.getInstance(),"ccrh",TE.toString());N(M.getInstance(),"ccri",UE.toString());N(M.getInstance(),"ccrs",VE.toString());N(M.getInstance(),"ccru",WE.toString());N(M.getInstance(),"ccrhc",zu.toString())}break;case "UniversalAdId":var $E=b.kb,$S=$E.push,Cu=V(e);Cu||(Cu=e.getAttribute("idValue"));var aT=e.getAttribute("idRegistry");
$S.call($E,new BF({De:aT,Ee:Cu}))}}return new CF(b)};var BI=function(a,b){this.j=a;this.g=b===void 0?null:b};var CI=function(a,b){JF.call(this,a);this.g=b};t(CI,JF);var DI=function(){};t(DI,CH);DI.prototype.j=function(a){var b=new bF;this.g(a,b);return b};
DI.prototype.g=function(a,b){CH.prototype.g.call(this,a,b);for(var c=u(a.g),d=c.next();!d.done;d=c.next())d=d.value,EI(d,b),d=d.g,d instanceof lH&&(b.description=d.description);a:if(c=a.g.length<1?null:a.g[0])if(d=IF(a,BI),d.length>0)for(a=u(d),c=a.next();!c.done;c=a.next())c=c.value,c.j&&(b.qa=c.g?c.g:5E3);else{c=u(c.g.ua);for(d=c.next();!d.done;d=c.next())if((d=d.value.vb)&&d.qa!=null){b.qa=d.qa;break a}c=IF(a,JF);c=u(c);for(d=c.next();!d.done;d=c.next()){d=u(d.value.Z);for(var e=d.next();!e.done;e=
d.next())if(e.value.eventType=="skip"){b.qa=5E3;break a}}a=IF(a,CI);a=u(a);for(c=a.next();!c.done;c=a.next())if(c.value.g=="Generic"){b.qa=5E3;break}}};
var EI=function(a,b){for(var c=u(a.g.ua),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.vb;if(e){b.creativeId=d.id;b.B=d.adId;b.kb=d.kb.map(function(k){return new aF(k.Ee,k.De)});for(var f=u(e.Z),g=f.next();!g.done;g=f.next())b.nb(FD(g.value));if(f=e.Af){g=u(f.ob);for(var h=g.next();!h.done;h=g.next())h=h.value,b.nb(GD("click",h.url,h.g,h.id));g=u(f.qe);for(h=g.next();!h.done;h=g.next())h=h.value,h.id&&b.nb(new ED(h.id,h.url))}a.g instanceof lH&&(b.na=d.vb.duration,e.sa&&(b.sa=e.sa),f&&f.ta&&(b.g=
f.ta.url,b.l=vs(f.ta),b.N=f.ta.g))}}};var FI=function(a){this.l=a};t(FI,DI);FI.prototype.j=function(a){var b=new kF(this.l);this.g(a,b);return b};FI.prototype.g=function(a,b){DI.prototype.g.call(this,a,b);b.C=a.g[0].g.Zd};function GI(a,b){b=b!=null?b:"";yc&&(b="");if(!D(Zk(a))){var c=a instanceof gk||!zD.test(a)?a:new gk(a);if(c instanceof gk)a=c;else{var d=d===void 0?Gk:d;a=Hk(a,d)||hk}d=window;a=Lk(a);a!==void 0&&d.open(a,"_blank",b)}};function HI(a,b){for(var c;!(c=a.next()).done;)b(c.value)}var II=function(a,b){this.g=a[A.Symbol.iterator]();this.j=b};II.prototype[Symbol.iterator]=function(){return this};II.prototype.next=function(){var a=this.g.next();return{value:a.done?void 0:this.j.call(void 0,a.value),done:a.done}};var JI=function(a,b){return new II(a,b)};var KI=function(a,b){var c=new Set(a);HI(b[Symbol.iterator](),function(d){return c.add(d)});return c};var LI=new Map,MI=function(){this.j=this.g=null};function NI(a,b,c,d){var e=Hw(a);b==e||b&&e&&b.width==e.width&&b.height==e.height?(e=setTimeout(function(){return NI(a,b,c,d)},200),d.j=e):(OI(d),c(e))}
function PI(a){var b=new MI,c=new Promise(function(f){var g=Hw(a);if("ResizeObserver"in window){var h=new ResizeObserver(function(k){window.requestAnimationFrame(function(){for(var l=new Em(0,0),p=u(k),n=p.next();!n.done;n=p.next())if(n=n.value,n.contentBoxSize?(n=Array.isArray(n.contentBoxSize)?n.contentBoxSize[0]:n.contentBoxSize,l.width=Math.floor(n.inlineSize),l.height=Math.floor(n.blockSize)):(l.width=Math.floor(n.contentRect.width),l.height=Math.floor(n.contentRect.height)),!(g==l||g&&l&&g.width==
l.width&&g.height==l.height))return OI(b),f(l)})});b.g=h;h.observe(a)}else NI(a,g,f,b)}),d,e=(d=LI.get(c))!=null?d:new Set;e.add(b);LI.set(c,e);return c}function QI(a){var b=b===void 0?new Em(1,1):b;var c=function(g){var h=PI(a),k,l=(k=LI.get(g))!=null?k:new Set,p;k=(p=LI.get(h))!=null?p:new Set;LI.set(g,KI(l,k));return h},d=function(g,h){c(g).then(function(k){return b.width<=k.width&&b.height<=k.height?(RI(g),h(k)):d(g,h)})},e,f=new Promise(function(g){e=g});d(f,e);return f}
function RI(a){a=LI.get(a);a=u(a);for(var b=a.next();!b.done;b=a.next())OI(b.value)}function OI(a){a.j&&window.clearTimeout(a.j);a.g&&(a.g.disconnect(),a.g=null)};var SI=function(a){U.call(this);this.j=a;this.o=this.A=!1;this.B=this.D=0;this.g=new yC(1E3);kt(this,this.g);IB(this.g,"tick",this.F,!1,this);IB(this.j,"pause",this.l,!1,this);IB(this.j,"playing",this.l,!1,this);IB(this.j,"ended",this.l,!1,this);IB(this.j,"timeupdate",this.l,!1,this)};t(SI,U);var TI=function(a){var b;return(b=a.j.currentTime)!=null?b:a.j.getCurrentTime()};
SI.prototype.l=function(a){switch(a.type){case "playing":UI(this);break;case "pause":case "ended":this.g.enabled&&this.g.stop();break;case "timeupdate":!this.A&&TI(this)>0&&(this.A=!0,UI(this))}};var UI=function(a){!a.g.enabled&&a.A&&(a.D=TI(a)*1E3,a.B=Date.now(),a.o=!1,a.g.start())};SI.prototype.F=function(){var a=Date.now(),b=a-this.B,c=TI(this)*1E3;c-this.D3;if(c){a.o===null&&(a.o=400);var d=WG("media_source_error",{code:a.l>0?MediaError.MEDIA_ERR_NETWORK:MediaError.MEDIA_ERR_SRC_NOT_SUPPORTED,message:'Response code "'+a.o+'" with '+a.g+" bytes requested and "+a.l+" bytes loaded"});a.dispatchEvent(d)}a.l=400)return N(M.getInstance(),"lvlfes",d.status.toString()),a.o=d.status,k.return(Promise.reject());f=(e=d.body)==null?void 0:e.getReader();if(!f)return un(M.getInstance(),"lvlmr"),a.o=d.status,k.return(Promise.reject());g=[];h=function(){var l,p,n,q,r,w;return y(function(z){if(z.g==1)return x(z,f.read(),2);l=z.j;p=l.done;n=l.value;if(p)return q=b0&&a.j.Jf(d.buffer,a.uri,0,c)},cJ=function(a,b){b!==null&&(b=b.slice(0),a.l+=b.byteLength,a.dispatchEvent({type:"progress",Rf:b}))};YI.prototype.R=function(){var a;((a=this.j)==null?0:a.Gc())&&this.j.close();XI.prototype.R.call(this)};var fJ=function(a){this.uri=a;this.g=eJ(a)},eJ=function(a){return new Map(a.l.split("/").reduce(function(b,c,d,e){d%2&&b.set(e[d-1],c);return b},new Map))},gJ=function(a){var b,c;return(b=a.uri)==null?void 0:(c=b.l)==null?void 0:c.startsWith("/videoplayback")};fJ.prototype.getId=function(){return hJ(this,"id")};fJ.prototype.Ed=function(){return hJ(this,"source")};
var iJ=function(a){a=a.uri.g.get("range");if(!a)return null;a=a.split("-")[0];return!a||isNaN(Number(a))?null:Number(a)},hJ=function(a,b){var c=a.uri.g.get(b);return c?c:(a=a.g.get(b))?a:null};var jJ=["doubleclick.net"];
function kJ(){if(Yb()||F("iPad")||F("iPod"))var a=!1;else if(Xb()){if(tD===void 0){a:{if(rD===void 0){if(vD){a=Ib(uD(),"Safari");var b=(new Xr(window.location.href)).g.Wc("js");b:{if((b=b.length?b[0]:"")&&b.lastIndexOf("afma-",0)==0){var c=b.lastIndexOf("v");if(c>-1&&(b=b.substr(c+1).match(/^(\d+\.\d+\.\d+|^\d+\.\d+|^\d+)(-.*)?$/))){b=b[1];break b}}b="0.0.0"}if(!a||b!=="0.0.0"){a=rD=!0;break a}}rD=!1}a=rD}a||(sD===void 0&&(sD=Ib(uD(),"afma-sdk-a")?!0:!1),a=sD);tD=a}a=tD?!0:Gj()?!1:lJ()}else a=!1;
return a}function lJ(){var a=!1,b=(new Xr(window.location.href)).j;jJ.forEach(function(c){b.includes(c)&&(a=!0)});return a};var mJ,pJ=function(a,b,c){if(typeof a==="number")var d={name:nJ(a)};else d=a,a=oJ(a.name);this.code=a;this.g=d;b="Error "+b+": "+this.getName();c&&(b+=", "+c);cb.call(this,b)};ab(pJ,cb);pJ.prototype.getName=function(){return this.g.name||""};
var qJ={vj:1,Tm:2,NOT_FOUND_ERR:3,Pi:4,Ti:5,Um:6,uj:7,ABORT_ERR:8,sj:9,zn:10,TIMEOUT_ERR:11,rj:12,INVALID_ACCESS_ERR:13,INVALID_STATE_ERR:14},rJ=(A.g||A.j||qJ).vj,sJ=(A.g||A.j||qJ).NOT_FOUND_ERR,tJ=(A.g||A.j||qJ).Pi,uJ=(A.g||A.j||qJ).Ti,vJ=(A.g||A.j||qJ).uj,wJ=(A.g||A.j||qJ).ABORT_ERR,xJ=(A.g||A.j||qJ).sj,yJ=(A.g||A.j||qJ).TIMEOUT_ERR,zJ=(A.g||A.j||qJ).rj,AJ=(A.DOMException||qJ).INVALID_ACCESS_ERR,BJ=(A.DOMException||qJ).INVALID_STATE_ERR,oJ=function(a){switch(a){case "UnknownError":return rJ;case "NotFoundError":return sJ;
case "ConstraintError":return tJ;case "DataError":return uJ;case "TransactionInactiveError":return vJ;case "AbortError":return wJ;case "ReadOnlyError":return xJ;case "TimeoutError":return yJ;case "QuotaExceededError":return zJ;case "InvalidAccessError":return AJ;case "InvalidStateError":return BJ;default:return rJ}},nJ=function(a){switch(a){case rJ:return"UnknownError";case sJ:return"NotFoundError";case tJ:return"ConstraintError";case uJ:return"DataError";case vJ:return"TransactionInactiveError";
case wJ:return"AbortError";case xJ:return"ReadOnlyError";case yJ:return"TimeoutError";case zJ:return"QuotaExceededError";case AJ:return"InvalidAccessError";case BJ:return"InvalidStateError";default:return"UnknownError"}},CJ=function(a,b){return"error"in a?new pJ(a.error,b):new pJ({name:"UnknownError"},b)},DJ=function(a,b){return"name"in a?new pJ(a,b+": "+a.message):new pJ({name:"UnknownError"},b)};var EJ=function(a){this.g=a},FJ=A.IDBKeyRange||A.webkitIDBKeyRange;/*
Copyright 2005, 2007 Bob Ippolito. All Rights Reserved.
Copyright The Closure Library Authors.
SPDX-License-Identifier: MIT
*/
var GJ=function(){this.A=[];this.o=this.l=!1;this.j=void 0;this.F=this.L=this.B=!1;this.C=0;this.g=null;this.D=0};GJ.prototype.cancel=function(a){if(this.l)this.j instanceof GJ&&this.j.cancel();else{if(this.g){var b=this.g;delete this.g;a?b.cancel(a):(b.D--,b.D<=0&&b.cancel())}this.F=!0;this.l||HJ(this,new IJ(this))}};GJ.prototype.J=function(a,b){this.B=!1;JJ(this,a,b)};var JJ=function(a,b,c){a.l=!0;a.j=c;a.o=!b;KJ(a)},MJ=function(a){if(a.l){if(!a.F)throw new LJ(a);a.F=!1}};
GJ.prototype.callback=function(a){MJ(this);JJ(this,!0,a)};var HJ=function(a,b){MJ(a);JJ(a,!1,b)},OJ=function(a,b){return NJ(a,b,null)},NJ=function(a,b,c,d){a.A.push([b,c,d]);a.l&&KJ(a);return a};GJ.prototype.then=function(a,b,c){var d,e,f=new gC(function(g,h){e=g;d=h});NJ(this,e,function(g){g instanceof IJ?f.cancel():d(g);return PJ},this);return f.then(a,b,c)};GJ.prototype.$goog_Thenable=!0;
var QJ=function(a){return fc(a.A,function(b){return typeof b[1]==="function"})},PJ={},KJ=function(a){if(a.C&&a.l&&QJ(a)){var b=a.C,c=RJ[b];c&&(A.clearTimeout(c.g),delete RJ[b]);a.C=0}a.g&&(a.g.D--,delete a.g);b=a.j;for(var d=c=!1;a.A.length&&!a.B;){var e=a.A.shift(),f=e[0],g=e[1];e=e[2];if(f=a.o?g:f)try{var h=f.call(e||null,b);h===PJ&&(h=void 0);h!==void 0&&(a.o=a.o&&(h==b||h instanceof Error),a.j=b=h);if(eC(b)||typeof A.Promise==="function"&&b instanceof A.Promise)d=!0,a.B=!0}catch(k){b=k,a.o=!0,
QJ(a)||(c=!0)}}a.j=b;d&&(h=Xa(a.J,a,!0),d=Xa(a.J,a,!1),b instanceof GJ?(NJ(b,h,d),b.L=!0):b.then(h,d));c&&(b=new SJ(b),RJ[b.g]=b,a.C=b.g)},LJ=function(){cb.call(this)};ab(LJ,cb);LJ.prototype.message="Deferred has already fired";LJ.prototype.name="AlreadyCalledError";var IJ=function(){cb.call(this)};ab(IJ,cb);IJ.prototype.message="Deferred was canceled";IJ.prototype.name="CanceledError";var SJ=function(a){this.g=A.setTimeout(Xa(this.l,this),0);this.j=a};
SJ.prototype.l=function(){delete RJ[this.g];throw this.j;};var RJ={};var TJ=function(){U.call(this)};ab(TJ,U);TJ.prototype.g=null;TJ.prototype.next=function(a){if(a)this.g["continue"](a);else this.g["continue"]()};TJ.prototype.remove=function(){var a=new GJ;try{var b=this.g["delete"]()}catch(c){return HJ(a,DJ(c,"deleting via cursor")),a}b.onsuccess=function(){a.callback()};b.onerror=function(c){HJ(a,CJ(c.target,"deleting via cursor"))};return a};TJ.prototype.getValue=function(){return this.g.value};
var UJ=function(a,b){var c=new TJ;try{var d=a.openCursor(b?b.g:null)}catch(e){throw c.dispose(),DJ(e,a.name);}d.onsuccess=function(e){c.g=e.target.result||null;c.g?c.dispatchEvent("n"):c.dispatchEvent("c")};d.onerror=function(){c.dispatchEvent("e")};return c};var VJ=function(a){this.g=a};VJ.prototype.getName=function(){return this.g.name};var WJ=function(a,b,c){var d=new GJ;try{var e=a.g.get(c)}catch(f){return b+=" with key "+Rk(c),HJ(d,DJ(f,b)),d}e.onsuccess=function(f){d.callback(f.target.result)};e.onerror=function(f){b+=" with key "+Rk(c);HJ(d,CJ(f.target,b))};return d};VJ.prototype.get=function(a){return WJ(this,"getting from index "+this.getName(),a)};var XJ=function(a,b){return UJ(a.g,b)};var YJ=function(a){this.g=a};YJ.prototype.getName=function(){return this.g.name};var ZJ=function(a,b,c,d,e){var f=new GJ;try{var g=e?a.g[b](d,e):a.g[b](d)}catch(h){return c+=Rk(d),e&&(c+=", with key "+Rk(e)),HJ(f,DJ(h,c)),f}g.onsuccess=function(h){f.callback(h.target.result)};g.onerror=function(h){c+=Rk(d);e&&(c+=", with key "+Rk(e));HJ(f,CJ(h.target,c))};return f},$J=function(a,b){return ZJ(a,"put","putting into "+a.getName()+" with value",b)};
YJ.prototype.add=function(a,b){return ZJ(this,"add","adding into "+this.getName()+" with value ",a,b)};YJ.prototype.remove=function(a){var b=new GJ;try{var c=this.g["delete"](a instanceof EJ?a.g:a)}catch(e){return c="removing from "+this.getName()+" with key "+Rk(a),HJ(b,DJ(e,c)),b}c.onsuccess=function(){b.callback()};var d=this;c.onerror=function(e){var f="removing from "+d.getName()+" with key "+Rk(a);HJ(b,CJ(e.target,f))};return b};
YJ.prototype.get=function(a){var b=new GJ;try{var c=this.g.get(a)}catch(e){return c="getting from "+this.getName()+" with key "+Rk(a),HJ(b,DJ(e,c)),b}c.onsuccess=function(e){b.callback(e.target.result)};var d=this;c.onerror=function(e){var f="getting from "+d.getName()+" with key "+Rk(a);HJ(b,CJ(e.target,f))};return b};
YJ.prototype.clear=function(){var a="clearing store "+this.getName(),b=new GJ;try{var c=this.g.clear()}catch(d){return HJ(b,DJ(d,a)),b}c.onsuccess=function(){b.callback()};c.onerror=function(d){HJ(b,CJ(d.target,a))};return b};var aK=function(a){try{return new VJ(a.g.index("timestamp"))}catch(b){throw DJ(b,"getting index timestamp");}};var bK=function(a,b){U.call(this);this.g=a;this.l=b;this.j=new NH(this);this.j.listen(this.g,"complete",Xa(this.dispatchEvent,this,"complete"));this.j.listen(this.g,"abort",Xa(this.dispatchEvent,this,"abort"));this.j.listen(this.g,"error",this.ej)};ab(bK,U);m=bK.prototype;m.ej=function(a){a.target instanceof pJ?this.dispatchEvent({type:"error",target:a.target}):this.dispatchEvent({type:"error",target:CJ(a.target,"in transaction")})};
m.objectStore=function(a){try{return new YJ(this.g.objectStore(a))}catch(b){throw DJ(b,"getting object store "+a);}};m.commit=function(a){if(this.g.commit||!a)try{this.g.commit()}catch(b){throw DJ(b,"cannot commit the transaction");}};m.wait=function(){var a=new GJ;HB(this,"complete",Xa(a.callback,a));var b=HB(this,"abort",function(){QB(c);HJ(a,new pJ(wJ,"waiting for transaction to complete"))});var c=HB(this,"error",function(e){QB(b);HJ(a,e.target)});var d=this.l;return OJ(a,function(){return d})};
m.abort=function(){this.g.abort()};m.R=function(){bK.ib.R.call(this);this.j.dispose()};var cK=function(a){U.call(this);this.g=a;this.j=new NH(this);this.j.listen(this.g,"abort",Xa(this.dispatchEvent,this,"abort"));this.j.listen(this.g,"error",this.fj);this.j.listen(this.g,"versionchange",this.Rj);this.j.listen(this.g,"close",Xa(this.dispatchEvent,this,"close"))};ab(cK,U);m=cK.prototype;m.Jg=!0;m.fj=function(a){a=(a=a.target)&&a.error;this.dispatchEvent({type:"error",errorCode:a&&a.severity})};m.Rj=function(a){this.dispatchEvent(new dK(a.oldVersion,a.newVersion))};
m.close=function(){this.Jg&&(this.g.close(),this.Jg=!1)};m.Gc=function(){return this.Jg};m.getName=function(){return this.g.name};m.getVersion=function(){return Number(this.g.version)};var eK=function(a){var b=["MediaSourceVideoChunk"];try{var c=a.g.transaction(b,"readwrite");return new bK(c,a)}catch(d){throw DJ(d,"creating transaction");}};cK.prototype.R=function(){cK.ib.R.call(this);this.j.dispose()};var dK=function(a,b){uB.call(this,"versionchange");this.oldVersion=a;this.newVersion=b};ab(dK,uB);var fK=function(a){var b=new GJ;mJ==void 0&&(mJ=A.indexedDB||A.mozIndexedDB||A.webkitIndexedDB||A.moz_indexedDB);var c=mJ.open("IndexedDbVideoChunkPersistentStorage",6);c.onsuccess=function(d){d=new cK(d.target.result);b.callback(d)};c.onerror=function(d){HJ(b,CJ(d.target,"opening database IndexedDbVideoChunkPersistentStorage"))};c.onupgradeneeded=function(d){if(a){var e=new cK(d.target.result);a(new dK(d.oldVersion,d.newVersion),e,new bK(d.target.transaction,e))}};c.onblocked=function(){};return b};var gK=function(){U.apply(this,arguments);this.g=null};t(gK,U);gK.prototype.initialize=function(){var a=this;return Promise.resolve(fK(this.j)).then(function(b){a.g=b},function(b){N(M.getInstance(),"codf",b.message)})};gK.prototype.Gc=function(){return this.g!==null&&this.g.Gc()};gK.prototype.close=function(){var a=this;return(new Promise(function(b){hK(a,b)})).then(function(){return iK()}).then(function(){a.g.close()})};
var iK=function(){var a;return((a=navigator.storage)==null?0:a.estimate)?navigator.storage.estimate().then(function(b){N(M.getInstance(),"csue",String(b.usage))}):Promise.resolve(void 0)};gK.prototype.qg=function(a){return(a=jK(a,0))?kK(this,lK(a),a.Ke):Promise.resolve(null)};gK.prototype.Jf=function(a,b,c,d){(b=jK(b,c))?(c=b.startIndex,mK(this,{Fn:lK(b),startIndex:c,ig:c+a.byteLength-1,Ke:b.Ke,timestamp:new Date(Date.now()),Id:d,da:b.da,video:a})):Promise.resolve(void 0)};
gK.prototype.j=function(a,b){if(b.g.objectStoreNames.contains("MediaSourceVideoChunk"))try{b.g.deleteObjectStore("MediaSourceVideoChunk")}catch(d){throw DJ(d,"deleting object store MediaSourceVideoChunk");}a={keyPath:"cacheId"};try{var c=new YJ(b.g.createObjectStore("MediaSourceVideoChunk",a))}catch(d){throw DJ(d,"creating object store MediaSourceVideoChunk");}b={unique:!1};try{c.g.createIndex("timestamp","timestamp",b)}catch(d){throw DJ(d,"creating new index timestamp with key path timestamp");}};
var hK=function(a,b){var c=new Date(Date.now());c.setDate(c.getDate()-30);c=new EJ(FJ.upperBound(c,void 0));var d=XJ(aK(eK(a.g).objectStore("MediaSourceVideoChunk")),c),e=d.listen("n",function(){d.remove();d.next()});HB(d,"c",function(){QB(e);b()})},jK=function(a,b){var c=new fJ(a);a=c.getId();var d=hJ(c,"itag"),e=c.Ed(),f=hJ(c,"lmt");c=iJ(c);var g=[];a?d?e?f?c===null&&g.push("startIndex"):g.push("lmt"):g.push("source"):g.push("itag"):g.push("videoId");return g.length>0?(N(M.getInstance(),"civp",
g.join("-")),null):{videoId:a,da:d,source:e,Ke:f,startIndex:c+b}},lK=function(a){for(var b=[a.videoId,a.source,a.startIndex].join(),c=0,d=0;d3;if(c&&a.o!==null){var d=WG("media_source_error",{code:a.j>0?MediaError.MEDIA_ERR_NETWORK:MediaError.MEDIA_ERR_SRC_NOT_SUPPORTED,message:'Response code "'+a.o+'" with '+a.g+" bytes requested and "+a.j+" bytes loaded"});a.dispatchEvent(d)}a.j=400)N(M.getInstance(),"lvlxes",d.status.toString()),a.o=d.status,c();else{var g=d.response;g.byteLength0&&a.l.Jf(g,a.uri,0,g.byteLength=400)a.o=d.status;else{var g=tK(a,d.response,e);e+=g}});d.responseType="arraybuffer";d.open("get",a.uri.toString());d.send(null)})},tK=function(a,b,c){if(b===null)return 0;b=b.slice(c);a.j+=b.byteLength;a.dispatchEvent({type:"progress",Rf:b});return b.byteLength};nK.prototype.R=function(){this.A&&this.l.Gc()&&this.l.close();XI.prototype.R.call(this)};var uK=function(){};uK.prototype.Dk=function(a,b,c){return c===0?1E6:b-a<5E3?3E5:0};var wK=function(a,b){var c=this;this.g=a;this.index=b;this.j=[];this.g||un(M.getInstance(),"msms_sbf"+this.index);this.g.addEventListener("updateend",function(){vK(c)});this.g.addEventListener("error",function(){un(M.getInstance(),"msms_sbe"+c.index)})},vK=function(a){if(a.j.length>0&&!a.g.updating){var b=a.j.shift();a.g.appendBuffer(b)}};var xK=function(){this.g=this.cache=null};m=xK.prototype;m.initialize=function(){var a=this;return window.caches.open("CACHE_VIDEO_CHUNK_PERSISTENT_STORAGE").then(function(b){a.cache=b},function(b){N(M.getInstance(),"codf",b.message)})};m.Gc=function(){return this.cache!==null};m.close=function(){return Promise.resolve()};
m.qg=function(a){var b=this;a=yK(this,a);return this.Gc()&&a?this.cache.match(a).then(function(c){if(!c)return N(M.getInstance(),"cenf","1"),Promise.resolve(null);N(M.getInstance(),"cef","1");return c.arrayBuffer().then(function(d){var e=iJ(b.g),f;(f=b.g.uri.g.get("range"))?(f=f.split("-")[1],f=!f||isNaN(Number(f))?null:Number(f)):f=null;e=e+d.byteLength-1;f=f>e;return{da:hJ(b.g,"itag"),ig:e,Id:f,video:d}})},function(c){N(M.getInstance(),"cgvf",c.message);return Promise.resolve(null)}):(N(M.getInstance(),
"cgvf","1"),Promise.resolve(null))};m.Jf=function(a,b){b=yK(this,b);a=new Response(a);this.Gc()&&b?this.cache.put(b,a).then(function(){N(M.getInstance(),"cavs","1")},function(c){N(M.getInstance(),"cavf",c.message)}):(N(M.getInstance(),"cavf","1"),Promise.resolve())};
var yK=function(a,b){a.g=new fJ(b);b=a.g.getId();var c=hJ(a.g,"itag"),d=a.g.Ed(),e=hJ(a.g,"lmt");a=hJ(a.g,"range");if(b&&c&&d&&a)return new Request("http://url/videoplayback?id="+b+"&itag="+c+"&source="+d+"&lmt="+e+"&range="+a);N(M.getInstance(),"civp","1");return null};var BK=function(a){U.call(this);var b=this;this.l=a;this.g=[];this.A=null;this.B=0;this.N=!1;this.F=0;this.D=[];if(Oo(op)){var c=null;kJ()&&(Oo(qp)?c=uG(xK):c=uG(gK));this.o=this.l.map(function(d){return uG(YI,d.url,YF(d.url)?null:c)})}else this.o=this.l.map(function(d){return uG(nK,d.url)});this.j=uG(MediaSource);this.K=function(){zK(b)};this.j.addEventListener("sourceopen",this.K);this.H=AK(this)};t(BK,U);
var AK=function(a){for(var b=[],c=0;c0&&!d.oc.updating){var e=a.D.shift();d.oc.appendBuffer(e)}}}(b)),b.oc.addEventListener("error",function(d){return function(){un(M.getInstance(),"msms_sbe"+d.Wa)}}(b)),b.Me.listen("progress",function(d){return function(e){var f=
d.oc,g=d.Me;e=e.Rf;e.byteLength!==0&&(Oo(op)?f.updating?a.D.push(e):f.appendBuffer(e):f.appendBuffer(e));g.B()&&(a.B++,a.B===a.g.length&&CK(a))}}(b)),b.Me.listen("media_source_error",function(d){a.dispatchEvent(d)}),a.g.push(b.oc)):un(M.getInstance(),"msms_sbf"+b.Wa))}N(M.getInstance(),"msms_ns",a.g.length.toString());a.N=!0;DK(a)},CK=function(a){Promise.all(a.g.map(function(b){return new Promise(function(c){b.updating?b.addEventListener("updateend",function(){c()}):c()})})).then(function(){a.j.endOfStream()})},
DK=function(a){if(a.N)for(var b=0;b0&&this.A==0)for(;c=this.o.pop();)this.C(c)}}}};var XK=function(a,b,c){cC(function(){a.apply(b,c)})};
UK.prototype.clear=function(a){if(a){var b=this.j[a];b&&(b.forEach(this.C,this),delete this.j[a])}else this.g.length=0,this.j={}};UK.prototype.R=function(){UK.ib.R.call(this);this.clear();this.o.length=0};var YK=function(a){R.call(this);this.g=new UK(a);kt(this,this.g)};ab(YK,R);YK.prototype.clear=function(a){this.g.clear(a!==void 0?a.toString():void 0)};var ZK=function(a){a=a===void 0?null:a;R.call(this);this.g=new NH(this);kt(this,this.g);this.jb=a};t(ZK,R);var $K=function(a,b,c){a.jb&&(VK(a.jb.g,b,c),jt(a,function(){WK(a.jb.g,b,c)}))};var aL=function(a,b){ZK.call(this,b);$K(this,function(c){a.g.mode=c?"showing":"hidden"},this)};t(aL,ZK);var bL=function(){U.call(this);this.j=new NH(this);kt(this,this.j)};t(bL,U);var dL=function(a,b,c){c=c===void 0?!0:c;bL.call(this);a.setAttribute("crossorigin","anonymous");var d=Mr("TRACK");d.setAttribute("kind","captions");d.setAttribute("src",b);d.setAttribute("default","");a.appendChild(d);this.g=a.textTracks[0];cL(this);this.g.mode=c?"showing":"hidden"};t(dL,bL);var cL=function(a){var b=a.g;b.addEventListener("cuechange",function(){for(var c=b.cues,d=0;d0&&d>0&&e>0&&f>0?(b=b.width/b.height,c/=d,c=Math.min(c,b)/Math.max(c,
b)>=.97?"cover":"contain"):c=null;c!==null&&Bw(a.T,{"object-fit":c})})});a.T.addEventListener("play",function(){a.ki||(LK(a.T,"first_play"),a.ki=!0)});a.T.addEventListener("pause",function(){a.qf||(LK(a.T,"first_pause"),NK(a.T),a.qf=!0)});IB(A,"pagehide",function(){a.qf||(LK(a.T,"first_pause"),NK(a.T),a.qf=!0)});a.T.addEventListener("stalled",function(){N(M.getInstance(),"ves","1")});(new SI(a.T)).listen("playbackStalled",function(){return N(M.getInstance(),"pbs","1")});a.T.addEventListener("media_source_error",
function(b){wL(a);b=b.detail;xL(a,new mL(b.code,b.message))});AL(a)},qL=function(a){var b=lL(a.childNodes);b&&BL(a,b);a.ge===null&&CL(a)},CL=function(a){if(A.MutationObserver){var b=new MutationObserver(function(c){c=u(c);for(var d=c.next();!d.done;d=c.next())if(d=d.value,d.type==="childList"&&(d=lL(d.addedNodes))){BL(a,d);b.disconnect();break}});b.observe(a,iL)}},pL=function(a){a.T.addEventListener("volumechange",function(){a.jb.g.l(SK.toString(),a.T.muted);a.Al||a.jb.g.l(TK.toString(),a.T.muted)})},
BL=function(a,b){if(a.ge===null&&b.hasAttribute("src")){var c=b.getAttribute("src");a.ge=new dL(a.T,c,b.hasAttribute("default"));new aL(a.ge,a.jb);c.includes("kind=asr")&&N(M.getInstance(),"act","1")}},tL=function(a,b){if(b!==a.hi){a.hi=b;a.Dl&&b&&XF(b)&&(b=ZF(b));var c=b?UG(b):null,d=!!c&&WI(c);N(M.getInstance(),"umsem",d?"1":"0");d?(b=uG(MK,b,VG(c),yG[c]*1E3,null),a.Ja=uG(BK,[b]),a.zd&&a.Ja.tf(a.zd),a.Ja.listen("media_source_error",function(e){e=WG("media_source_error",e.detail);a.T.dispatchEvent(e)}),
a.Od=function(){var e=a.Ja;e.F=a.T.currentTime*1E3;DK(e)},a.T.addEventListener("timeupdate",a.Od),vL(a,"src",EK(a.Ja))):(wL(a),vL(a,"src",b));a.wi||sL(a)}},uL=function(a){a.src&&xL(a,new mL(MediaError.MEDIA_ERR_ABORTED,"Setting demuxed src after src is already set."));if(!a.Sc&&!a.Ac&&a.Ja)wL(a),vL(a,"src",null),sL(a);else if(a.Sc&&a.Ac){var b=UG(XF(a.Ac)?ZF(a.Ac):a.Ac),c=UG(XF(a.Sc)?ZF(a.Sc):a.Sc);if(b&&WI(b))if(c&&WI(c)){var d=!!b&&WI(b)&&!!c&&WI(c);N(M.getInstance(),"umsed",d?"1":"0");b=uG(MK,
a.Ac,VG(b),-1,null);c=uG(MK,a.Sc,VG(c),-1,null);a.Ja=uG(BK,[b,c]);a.zd&&a.Ja.tf(a.zd);a.Ja.listen("media_source_error",function(e){e=WG("media_source_error",e.detail);a.T.dispatchEvent(e)});a.Od=function(){var e=a.Ja;e.F=a.T.currentTime*1E3;DK(e)};a.T.addEventListener("timeupdate",a.Od);vL(a,"src",EK(a.Ja));a.wi||sL(a)}else xL(a,new nL('Audio itag "'+c+'" not supported.'));else xL(a,new nL('Video itag "'+b+'" not supported.'))}},yL=function(a){for(var b=u(hL),c=b.next(),d={};!c.done;d={Nb:void 0,
getValue:void 0},c=b.next())d.Nb=c.value,d.Nb in a.T&&(typeof a.T[d.Nb]==="function"?(d.getValue=a.T[d.Nb].bind(a.T),Object.defineProperty(a,d.Nb,{set:function(e){return function(f){a.T[e.Nb]=f}}(d),get:function(e){return function(){return e.getValue}}(d)})):Object.defineProperty(a,d.Nb,{set:function(e){return function(f){a.T[e.Nb]=f}}(d),get:function(e){return function(){return a.T[e.Nb]}}(d)}))},zL=function(a){Object.defineProperty(a,"error",{set:function(){},get:function(){return a.T.error?a.T.error:
a.sh}})},AL=function(a){a.T.style.width=Fw();a.T.style.height=Fw()};rL.prototype.disconnectedCallback=function(){this.Df&&RI(this.Df);kL.prototype.disconnectedCallback&&kL.prototype.disconnectedCallback.call(this)};
ea.Object.defineProperties(rL.prototype,{Sc:{configurable:!0,enumerable:!0,set:function(a){this.setAttribute("demuxedaudiosrc",a)},get:function(){return this.getAttribute("demuxedaudiosrc")}},Ac:{configurable:!0,enumerable:!0,set:function(a){this.setAttribute("demuxedvideosrc",a)},get:function(){return this.getAttribute("demuxedvideosrc")}},src:{configurable:!0,enumerable:!0,set:function(a){this.setAttribute("src",a)},get:function(){return this.getAttribute("src")}}});
ea.Object.defineProperties(rL,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return gL}}});A.customElements&&(A.customElements.get("lima-video")||A.customElements.define("lima-video",rL));var DL=function(a,b,c,d){b=b===void 0?!1:b;c=c===void 0?!1:c;d=d===void 0?!1:d;U.call(this);this.g=a;this.A=d;this.loaded=this.l=!1;this.o=null;this.j=new NH(this);kt(this,this.j);this.D=b&&Bc&&!Ic||c;this.B=[]};t(DL,U);m=DL.prototype;m.dispatchEvent=function(a){return this.A?(this.B.push(a),!0):U.prototype.dispatchEvent.call(this,a)};m.releaseEvents=function(){var a=this;this.A&&(this.A=!1,this.B.forEach(function(b){a.dispatchEvent(b)}))};
m.wf=function(){this.qc();this.j.listen(this.g,"ended",this.gj);this.j.listen(this.g,"pause",this.Kk);this.j.listen(this.g,"playing",this.Lk);this.j.listen(this.g,"timeupdate",this.wb);this.j.listen(this.g,"volumechange",this.Qk);this.j.listen(this.g,"error",this.mh);this.j.listen(this.g,"canplay",this.Gk);this.j.listen(this.g,"canplaythrough",this.Hk);this.j.listen(this.g,"loadstart",this.Jk);this.j.listen(this.g,"durationchange",this.Ik);this.j.listen(this.g,"waiting",this.Rk);this.j.listen(this.g,
"seeked",this.Nk);this.j.listen(this.g,"seeking",this.Ok);this.j.listen(this.g,"stalled",this.Pk);this.j.listen(this.g,"progress",this.Mk);this.j.listen(this.g,"loadeddata",this.di);this.j.listen(this.g,"windowFocusChanged",this.Sk)};m.qc=function(){QH(this.j)};m.getCurrentTime=function(){return this.g.currentTime};m.getDuration=function(){return isNaN(this.g.duration)?-1:this.g.duration};m.getVolume=function(){return this.Ge()?0:this.g.volume};m.mg=function(){return this.g};m.vg=function(){return this.g.paused};
m.Ge=function(){return this.g.muted};m.Fe=function(){return this.g.ended};m.ac=function(){return!1};m.gj=function(){this.dispatchEvent("end");EL(this)};m.Kk=function(){this.Fe()||this.dispatchEvent("pause");EL(this)};m.Lk=function(){this.dispatchEvent("play");this.D&&FL(this)};var FL=function(a){a.l||(a.l=!0,EL(a),a.dispatchEvent("start"))};m=DL.prototype;m.wb=function(){var a=this.getCurrentTime();if(!this.l){if(a<=0)return;if(Ic&&this.Fe()&&this.getDuration()===1){this.mh();return}FL(this)}this.dispatchEvent("timeUpdate")};
m.Rk=function(){this.dispatchEvent("waiting")};m.Qk=function(){this.dispatchEvent("volumeChange")};m.Ik=function(){this.dispatchEvent("durationChange")};m.mh=function(){EL(this);this.dispatchEvent("error")};m.Gk=function(){this.dispatchEvent("canPlay");this.di()};m.Hk=function(){this.dispatchEvent("canPlayThrough")};m.Jk=function(){this.dispatchEvent("loadStart")};m.Nk=function(){this.dispatchEvent("seeked")};m.Ok=function(){this.dispatchEvent("seeking")};m.Pk=function(){this.dispatchEvent("stalled")};
m.Mk=function(){this.g.buffered&&this.g.buffered.length&&this.g.buffered.end(this.g.buffered.length-1)===this.getDuration()&&(un(M.getInstance(),"vfl"),this.dispatchEvent("fullyLoaded"))};m.di=function(){this.loaded||(un(M.getInstance(),"vil"),this.loaded=!0,this.dispatchEvent("loaded"))};m.Sk=function(a){this.dispatchEvent(a)};m.load=function(a){a&&(this.g.src=a,this.g.load())};
m.unload=function(){this.g.removeAttribute("src");this.g.removeAttribute("demuxedVideoSrc");this.g.removeAttribute("demuxedAudioSrc");this.g.load()};m.play=function(){this.l||GL(this);return this.g.play()};m.pause=function(){this.g.pause()};var GL=function(a){a.o||(a.o=zC(function(){a.l||a.dispatchEvent("mediaPlaybackTimeout")},8E3))},EL=function(a){a.o&&(A.clearTimeout(a.o),a.o=null)};DL.prototype.setVolume=function(a){this.g.volume=a};
DL.prototype.canPlayType=function(a){if(typeof this.g.canPlayType!=="function")return N(M.getInstance(),"vmcpy","1"),!0;a=this.g.canPlayType(a);return a!==""&&a!=null};DL.prototype.Hf=function(){return this.g.currentSrc};function bH(a){a=new fJ(new Xr(a));var b=hJ(a,"manifest"),c=hJ(a,"itag");b=b||c||0;a=a.Ed()||"none";N(M.getInstance(),"vsrc",a);N(M.getInstance(),"bit",String(b))}
function HL(a){if(a instanceof lF){var b=a.j,c=a.g;if(b===243&&c){var d=a.l+'; codecs="vp09.00.10.08"',e=a.A+'; codecs="'+a.Ba+'"';b=wG[b]*1E3||4E5;c=wG[c]*1E3||4E5;var f=Ir(window),g=a.getHeight()||f.height;a=a.getWidth()||f.width;return{type:"media-source",audio:{contentType:e,channels:"2",bitrate:c,samplerate:44100},video:{contentType:d,width:a,height:g,bitrate:b,framerate:30}}}}return null};var XG=function(){var a;this.g=a=a===void 0?[]:a},ZG=function(a,b){var c=null;a=u(a.g);for(var d=a.next();!d.done;d=a.next()){var e=d.value;switch(e.type){case "dash":if(c=IL(b,"application/dash+xml"))return c;break;case "hls":if(c=IL(b,"application/vnd.apple.mpegurl"))return c;break;case "itag":if(e.Bk)c=dH(b,e.Bk);else if(e.Il){d=c=void 0;var f=b,g=e.Il;e=e.Cn;for(var h=u(f.l),k=h.next();!k.done;k=h.next())k=k.value,k.da==g&&(d=k);if(e)for(f=u(f.g),g=f.next();!g.done;g=f.next())g=g.value,g.da==
e&&(c=g);c=d&&c?aH(d,c):d?new lF({Ei:d.url,Ej:"",Ci:d.da,uh:null,Di:d.mimeType,vh:"",ra:d.ra,Ba:"",height:d.height,width:d.width,oa:d.oa||!1,Hl:d.Ab,Dj:0}):null}if(c)return c}}return null},IL=function(a,b){a=u(a.o);for(var c=a.next();!c.done;c=a.next())if(c=c.value,c.mimeType==b)return $G(c);return null},dH=function(a,b){a=u(a.j);for(var c=a.next();!c.done;c=a.next())if(c=c.value,c.da==b)return $G(c);return null},$G=function(a){return new mF({Zh:a.url,mimeType:a.mimeType,da:a.da,ra:a.ra,Ba:a.Ba,height:a.height,
width:a.width,oa:a.oa||!1,Ab:a.Ab})},aH=function(a,b){return new lF({Ei:a.url,Ej:b.url,Ci:a.da,uh:b.da,Di:a.mimeType,vh:b.mimeType,ra:a.ra,Ba:b.Ba,height:a.height,width:a.width,oa:a.oa&&b.oa||!1,Hl:a.Ab,Dj:b.Ab})},cH=function(a){a=HL(a);var b,c;a&&((b=navigator)==null?0:(c=b.mediaCapabilities)==null?0:c.decodingInfo)&&navigator.mediaCapabilities.decodingInfo(a).then(function(d){N(M.getInstance(),"mcsu",d.supported?"1":"0");N(M.getInstance(),"mcsm",d.smooth?"1":"0");N(M.getInstance(),"mcpe",d.powerEfficient?
"1":"0")})};RegExp.prototype.hasOwnProperty("sticky");function JL(a){return typeof a!="object"?!1:Yd(a.width)&&Yd(a.height)&&Yd(a.x)&&Yd(a.y)};var KL=function(a){a=a===void 0?{}:a;this.sa=a.sa;this.Tf=a.Tf;this.Uf=a.Uf;this.creativeWidth=a.creativeWidth;this.creativeHeight=a.creativeHeight;this.creativeX=a.creativeX;this.creativeY=a.creativeY;this.code=a.code;this.currentTime=a.currentTime;this.duration=a.duration;this.errorCode=a.errorCode;this.fullscreen=a.fullscreen;this.message=a.message;this.muted=a.muted;this.Eg=a.Eg;this.gd=a.gd;this.hd=a.hd;this.Zg=a.Zg;this.uri=a.uri;this.fh=a.fh;this.version=a.version;this.videoHeight=a.videoHeight;
this.videoWidth=a.videoWidth;this.videoX=a.videoX;this.videoY=a.videoY;this.volume=a.volume;this.url=a.url};function LL(a){a=a.trackingUrls;if(!(a instanceof Array))return un(M.getInstance(),"sp_s_vrt_ia"),!1;if(a.every(function(b){return typeof b=="string"}))return un(M.getInstance(),"sp_s_vrt_s"),!0;un(M.getInstance(),"sp_s_vrt_iu");return!1}
function ML(a){if(!JL(a.videoDimensions))return un(M.getInstance(),"sp_s_vr_ivd"),!1;if(!JL(a.creativeDimensions))return un(M.getInstance(),"sp_s_vr_icd"),!1;if(typeof a.fullscreen!="boolean")return un(M.getInstance(),"sp_s_vr_ifs"),!1;un(M.getInstance(),"sp_s_vr_s");return!0}
var NL=function(){},OL=function(a,b){switch(a){case "SIMID:Creative:requestChangeAdDuration":return a=b.duration,isNaN(a)||typeof a!="number"?null:new KL({duration:a});case "SIMID:Creative:reportTracking":return LL(b)?new KL({Zg:b.trackingUrls}):null;case "SIMID:Creative:requestResize":return ML(b)?new KL({videoX:b.videoDimensions.x,videoY:b.videoDimensions.y,videoWidth:b.videoDimensions.width,videoHeight:b.videoDimensions.height,creativeX:b.creativeDimensions.x,creativeY:b.creativeDimensions.y,creativeWidth:b.creativeDimensions.width,
creativeHeight:b.creativeDimensions.height,fullscreen:b.fullscreen}):null;case "SIMID:Creative:requestChangeVolume":return new KL({volume:b.volume,muted:b.muted});case "SIMID:Creative:requestNavigation":return typeof b.uri!="string"?null:new KL({uri:b.uri});case "SIMID:Creative:log":return typeof b.message!="string"?null:new KL({message:b.message})}return new KL};var PL=function(a,b,c,d){this.type=a;this.args=d;this.messageId=b;this.g=c};var QL=function(a,b,c){uB.call(this,a.type);this.resolve=b;this.reject=c;this.args=a.args};t(QL,uB);var RL=function(a,b,c,d){d=d===void 0?{}:d;a=d.te===void 0?!1:d.te;d=d.se===void 0?!1:d.se;U.call(this);this.B=new bv;this.H=c;this.A={te:a,se:d};this.l="";this.K=1;this.D=this.F=window;this.g=b;this.o=new NH(this);kt(this,this.o);this.j=new Map};t(RL,U);
var VL=function(a){a.o.listen(window,"message",function(b){a:{b=b.Qc;var c=a.D===b.source;if(a.A.te){var d=a.g==null||a.g==="*"||b.origin===a.g;if(!c||!d)break a}else if(b.origin!==a.g&&!c&&a.g!="*")break a;b:if(b.data){c={};try{c=JSON.parse(b.data)}catch(h){b=null;break b}b=typeof c!="object"?null:c}else b=null;var e=b;if(e!=null&&(b=e.type,c=e.sessionId,c==a.l||b=="createSession")&&(!a.A.se||b!=="createSession"||a.l==null)&&(d=e.args,e=e.messageId,e!=null)){var f=null;try{if(b=="resolve"||b=="reject"){var g=
d.messageId;f=g==null?null:new KL({hd:g,gd:d.value})}else f=OL(b,d)}catch(h){if(h.cause===1210){g=JSON.stringify({type:"TimingEvent",key:"smd_ss_nfo_init"});a.sendMessage("SIMID:Creative:log",new KL({message:g}));g=JSON.stringify({type:"OneShotParameter",key:"smd_ss_nfo_init_r",value:h.message});a.sendMessage("SIMID:Creative:log",new KL({message:g}));break a}throw h;}if(f)switch(b==="SIMID:Player:init"&&(g=JSON.stringify({type:"TimingEvent",key:"smd_ss_so_init"}),a.sendMessage("SIMID:Creative:log",
new KL({message:g}))),g=new PL(b,e,c,f),g.type){case "resolve":case "reject":if(b=g.args.hd)c=g.args.gd||{},a.j.has(b)&&(d=a.j.get(b),g.type=="resolve"?d.resolve(c):g.type=="reject"&&d.reject(c),a.j.delete(b));break;case "createSession":a.l=g.g;SL(a,g.messageId);a.B.resolve();break;default:TL(a,g)}else UL(a,e,{errorCode:1211,message:"Invalid message arguments."})}}})};
RL.prototype.sendMessage=function(a,b){b=b===void 0?new KL:b;var c=this.K++,d={};d.type=a;d.sessionId=this.l;d.messageId=c;d.timestamp=Date.now();if(a=="resolve"||a=="reject"){var e={};b=(e.messageId=b.hd,e.value=b.gd,e)}else{e={};switch(a){case "SIMID:Player:init":var f={};f=(f.adParameters=b.sa,f.clickThruUri=b.Tf,f.clickThruUrl=b.Uf,f);var g={},h={},k={};b=(k.videoDimensions=(g.height=b.videoHeight,g.width=b.videoWidth,g.x=0,g.y=0,g),k.creativeDimensions=(h.height=b.videoHeight,h.width=b.videoWidth,
h.x=0,h.y=0,h),k.fullscreen=b.fullscreen,k.fullscreenAllowed=!0,k.variableDurationAllowed=b.fh,k.skippableState="adHandles",k.navigationSupport=b.Eg,k.version="1.0",k.muted=b.muted,k.volume=b.volume,k);e.environmentData=b;e.creativeData=f;break;case "SIMID:Media:timeupdate":e.currentTime=b.currentTime;break;case "SIMID:Media:volumechange":e.volume=b.volume;e.muted=b.muted;break;case "SIMID:Media:durationchange":e.duration=b.duration;break;case "SIMID:Player:adStopped":e.code=b.code;break;case "SIMID:Player:resize":f=
{};f=(f.height=b.creativeHeight,f.width=b.creativeWidth,f.x=b.creativeX,f.y=b.creativeY,f);g={};g=(g.height=b.videoHeight,g.width=b.videoWidth,g.x=b.videoX,g.y=b.videoY,g);e.creativeDimensions=f;e.videoDimensions=g;e.fullscreen=b.fullscreen;break;case "SIMID:Player:fatalError":e.errorCode=b.errorCode;break;case "SIMID:Player:log":e.message=b.message}b=e}d.args=b;this.F.postMessage(JSON.stringify(d),"*");return this.H.includes(a)?(a=new bv,this.j.set(c,a),a.promise):Promise.resolve({})};
var TL=function(a,b){a.dispatchEvent(new QL(b,function(c){c=c===void 0?{}:c;SL(a,b.messageId,c)},function(c){c=c===void 0?{}:c;UL(a,b.messageId,c)}))},SL=function(a,b,c){c=c===void 0?{}:c;a.sendMessage("resolve",new KL({hd:b,gd:c}))},UL=function(a,b,c){a.sendMessage("reject",new KL({hd:b,gd:c}))},WL=function(a,b){var c=b.source;b=b.target;a.D=c;a.F=b};function XL(a){return(a=a.ub.find(function(b){return Zk(b.W)=="SIMID"&&b.mimeType=="text/html"&&!!b.url&&!D(b.url)}))?a.url:null}function YL(a){return(a=a.ub.find(function(b){return Zk(b.W)=="SIMID"&&b.mimeType=="text/html"&&!!b.g&&!D(b.g)}))?a.g:null}function ZL(a){return YL(a)!=null||XL(a)!=null};var $L="SIMID:Player:adSkipped SIMID:Player:adStopped SIMID:Player:appBackgrounded SIMID:Player:fatalError SIMID:Player:init SIMID:Player:startCreative".split(" "),aM=function(a,b,c){c=c===void 0?!1:c;U.call(this);var d=null;if(a){if(c)try{var e=(new URL(a,window.location.href)).origin}catch(f){e=null}else e=(a=new Xr(a),a.o+"://"+a.j);d=e}this.g=new RL(new NL,d,$L,b);this.j=null;this.l=0};t(aM,U);
var bM=function(a){VL(a.g);Object.values(Ds).forEach(function(b){a.g.listen(b,function(c){b==="SIMID:Creative:log"&&c.args.message==="cr"?a.l=0:a.dispatchEvent(c)})})},cM=function(a){return a.g.sendMessage("SIMID:Player:startCreative")};aM.prototype.log=function(a){return this.g.sendMessage("SIMID:Player:log",new KL({message:a}))};
var eM=function(a){if(!a.j)return a.l=0,a.j=new bv,dM(a),a.j.promise},dM=function(a){a.j&&(a.l===2?(a.j.resolve(),a.j=null):(a.log("pp"),a.l++,setTimeout(function(){return dM(a)},2E3)))};var fM={ENDED:"ended",ERROR:"error",PLAY:"play",PAUSE:"pause",Vl:"appBackgrounding",Wl:"appForegrounding",SEEKED:"seeked",SEEKING:"seeking",SKIPPED:"skipped",STALLED:"stalled",TIME_UPDATE:"timeUpdate",yj:"volumeChange",DURATION_CHANGE:"durationChange",tn:"resize"};var gM=function(a,b,c){R.call(this);this.g=a;this.j=b;this.o=c;kt(this,this.o);this.A=new NH(this);kt(this,this.A);this.l=null};t(gM,R);
var hM=function(a,b,c){a=new gM(b,a,c);kt(a,b);return a},kM=function(a){if(a.l)return a.l.promise;var b=iM(a.o);a.l=new bv;bM(a.g);WL(a.g.g,b);return a.g.g.B.promise.then(function(){jM(a);return a.l.promise})},oM=function(a){var b=!0;b=b===void 0?!1:b;a.l||kM(a);a.A.listen(a.g,Object.values(Ds),function(c){return void lM(a,c)});a.A.listen(a.j,Object.values(fM),function(c){return void mM(a,c)});b?a.l.promise.then(function(){nM(a.o.g,"showIframe")}).then(function(){return cM(a.g)}):a.l.promise.then(function(){return cM(a.g)}).then(function(){nM(a.o.g,
"showIframe")})},jM=function(a){pM(a.j).then(function(b){var c=Hw(a.j.V.g),d={};a:{var e=a.j.ad.sa||"";d=(d.sdkv=Eu(Du.getInstance()),d.eid=So().sort().join(","),d.ssss="gima",d);try{var f=JSON.parse(e)}catch(g){break a}e=typeof f==="object"&&f.hasOwnProperty("youtubeVideoId")?JSON.stringify(Object.assign({},f,d)):e}b={sa:e,Tf:a.j.ad.g,Uf:a.j.ad.g,fullscreen:b.fullscreen,muted:b.muted,Eg:Mu()?"notSupported":"adHandles",fh:!1,videoWidth:c.width,videoHeight:c.height,volume:b.volume};a.g.g.sendMessage("SIMID:Player:init",
new KL(b)).then(a.l.resolve).catch(a.l.reject);un(M.getInstance(),"ima_si");Number.isInteger(c.width)&&Number.isInteger(c.height)||un(M.getInstance(),"ima_vsni")})},mM=function(a,b){switch(b.type){case "appBackgrounding":a.g.g.sendMessage("SIMID:Player:appBackgrounded");break;case "appForegrounding":a.g.g.sendMessage("SIMID:Player:appForegrounded");break;case "ended":a.g.g.sendMessage("SIMID:Media:ended");case "error":case "pause":a.g.g.sendMessage("SIMID:Media:pause");break;case "play":a.g.g.sendMessage("SIMID:Media:play");
break;case "seeked":a.g.g.sendMessage("SIMID:Media:seeked");break;case "seeking":a.g.g.sendMessage("SIMID:Media:seeking");break;case "skipped":a.g.g.sendMessage("SIMID:Player:adSkipped");break;case "stalled":a.g.g.sendMessage("SIMID:Media:stalled");break;case "timeUpdate":pM(a.j).then(function(e){return a.g.g.sendMessage("SIMID:Media:timeupdate",new KL({currentTime:e.currentTime}))});break;case "volumeChange":pM(a.j).then(function(e){return a.g.g.sendMessage("SIMID:Media:volumechange",new KL({volume:e.volume,
muted:e.muted}))});break;case "durationChange":pM(a.j).then(function(e){return a.g.g.sendMessage("SIMID:Media:durationchange",new KL({duration:e.duration}))});break;case "resize":b=Hw(a.j.V.g);var c=new Fm(0,0,b.width,b.height),d=qM(a.j);a.g.g.sendMessage("SIMID:Player:resize",new KL({creativeX:c.left,creativeY:c.top,creativeWidth:c.width,creativeHeight:c.height,videoX:d.left,videoY:d.top,videoWidth:d.width,videoHeight:d.height,fullscreen:ws(b.width,b.height)}))}},lM=function(a,b){rM(a,b.type,b.args).then(function(c){return b.resolve(c)}).catch(function(c){return b.reject(c)})},
rM=function(a,b,c){switch(b){case "SIMID:Creative:clickThru":return sM(a.j);case "SIMID:Creative:getMediaState":return pM(a.j).then(function(d){var e={};return e.currentSrc=d.currentSrc,e.currentTime=d.currentTime,e.duration=d.duration,e.ended=d.ended,e.muted=d.muted,e.paused=d.paused,e.volume=d.volume,e.fullscreen=d.fullscreen,e});case "SIMID:Creative:reportTracking":return tM(c.Zg);case "SIMID:Creative:requestPause":return a.j.pause();case "SIMID:Creative:requestPlay":return a.j.play();case "SIMID:Creative:requestSkip":return a.j.skip().then(function(){return a.g.g.sendMessage("SIMID:Player:adSkipped")});
case "SIMID:Creative:requestChangeVolume":return Promise.resolve(void 0);case "SIMID:Creative:requestResize":return uM(a,c);case "SIMID:Creative:requestNavigation":return Promise.reject();case "SIMID:Creative:requestStop":return a.j.stop();case "SIMID:Creative:log":return a.j.log(c.message);default:return Promise.reject()}},uM=function(a,b){var c=b.videoWidth,d=b.videoHeight,e=b.videoX,f=b.videoY,g=b.creativeWidth,h=b.creativeHeight,k=b.creativeX;b=b.creativeY;var l=Hw(a.j.V.g);l=new Fm(0,0,l.width,
l.height);c=new Fm(e,f,c,d);Hm(l,new Fm(k,b,g,h))||un(M.getInstance(),"sp_rrc");g=Im(l,c);if(!g)return un(M.getInstance(),"sp_rrv_oob"),Promise.reject();Hm(g,c)?un(M.getInstance(),"sp_arv"):un(M.getInstance(),"sp_arv_c");return a.j.resize(g)};var vM=function(a){var b=a===void 0?{}:a;a=b.currentSrc;var c=b.currentTime===void 0?-1:b.currentTime;var d=b.duration===void 0?-1:b.duration;var e=b.ended===void 0?!1:b.ended;var f=b.fullscreen===void 0?!1:b.fullscreen;var g=b.muted===void 0?!1:b.muted;var h=b.paused===void 0?!1:b.paused;b=b.volume===void 0?1:b.volume;this.currentSrc=a;this.currentTime=c;this.duration=d;this.ended=e;this.fullscreen=f;this.muted=g;this.paused=h;this.volume=b};var wM=function(){};
wM.prototype.g=function(a){if(!lI(a,"activeview"))return null;var b=[],c=iI(a,"trackingConfiguration");c=u(c);for(var d=c.next();!d.done;d=c.next()){d=iI(d.value,"trackingEventConfiguration");d=u(d);for(var e=d.next();!e.done;e=d.next()){var f=e.value;e=f.getAttribute("event");var g=f.getAttribute("id");if(g==null||e==null)e=null;else{e=e.toLowerCase();g=g.toLowerCase();var h=[];f=iI(f,"trackingEventCriteria");f=u(f);for(var k=f.next();!k.done;k=f.next())k=k.value.getAttribute("value"),k!=null&&h.push(k.toLowerCase());
e=h.length?new qq(g,e,h):null}e&&b.push(e)}}c=pI(a);e=jI(a,"activeViewMetadata");d="";e&&(d=V(e)||"");a=jI(a,"activeViewFlags");e="";a&&(e=V(a)||"");return new KF(c,b,d,e)};var xM=function(){};
xM.prototype.g=function(a){if(!lI(a,"adsense"))return null;for(var b=null,c=null,d=null,e,f=[],g,h=null,k=null,l=null,p=u(P(a)),n=p.next();!n.done;n=p.next())switch(n=n.value,n.nodeName.toLowerCase()){case "attributiontext":b=V(n);break;case "attributionurl":c=V(n);break;case "conversionurl":d=V(n);break;case "is_pharma":e=hI(n.getAttribute("bool"));break;case "checkedevents":f=yM(n);break;case "showyoutubeannotations":g=hI(V(n));break;case "ui":h=null;n=jI(n,"config");if(n!=null){var q=jI(n,"context");
if(q!=null&&q.getAttribute("data").toLowerCase()=="default"&&(h=new MF,q=jI(n,"params"))){n=h;q=u(P(q));for(var r=q.next();!r.done;r=q.next())switch(r=r.value,r.nodeName.toLowerCase()){case "audio_muted_on_start":n.Of=hI(r.getAttribute("bool"))||!1;break;case "attribution_text":n.uc=r.getAttribute("data");break;case "attribution_url":n.wc=r.getAttribute("data");break;case "signals":n.Xg=gI(r,"int")||0}}}break;case "visibleurl":k=V(n);break;case "whythisad":a:{l=u(P(n));for(n=l.next();!n.done;n=l.next())if(n=
n.value,n.nodeName.toLowerCase()=="wtaclickthroughurl"){l=V(n);break a}l=null}l&&N(M.getInstance(),"wta","1")}return new NF(pI(a),{uc:b,wc:c,Yf:d,wg:e,af:f,Wg:g,uiConfig:h,hh:k,Ef:l})};var yM=function(a){var b=[];Array.from(P(a)).forEach(function(c){(c=c.getAttribute("id"))&&b.push(c.toLowerCase())});return b};var zM=function(){};zM.prototype.g=function(a){if(!lI(a,"AdVerifications"))return null;var b=[];a=iI(a,"AdVerifications");a=u(a);for(var c=a.next();!c.done;c=a.next())b.push.apply(b,v(nI(c.value)));return new rH(b)};var AM=function(){};AM.prototype.g=function(a){if(!lI(a,"companion_about_this_ad"))return null;a=iI(a,"Icon");if(a.length<1)return null;a=sI(a[0]);return new PF(a)};var BM=function(){};BM.prototype.g=function(a){a=pI(a);return a.length>0?new JF(a):null};var CM=function(){};CM.prototype.g=function(a){if(!lI(a,"eoid_cookie"))return null;a=u(P(a));for(var b=a.next();!b.done;b=a.next()){var c=b.value;if(c.nodeName=="Cookie"){b=c.getAttribute("domain");var d=gI(c,"expires"),e=c.getAttribute("path"),f=void 0;c=(f=c.getAttribute("value"))!=null?f:"";if(b&&d!=null&&e)return new mG(c,d,e,b)}}return null};var DM=function(){};DM.prototype.g=function(a){if(!lI(a,"esp"))return null;var b=[];a=u(P(a));for(var c=a.next();!c.done;c=a.next()){var d=c.value;d.nodeName=="EspLibrary"&&(c=jI(d,"LibraryName"))&&(c=V(c))&&(d=(d=jI(d,"LibraryUrl"))?V(d):null,b.push({ne:c,Pn:d}))}return new oG(b)};var EM=function(){};EM.prototype.g=function(a){var b=lI(a,"gfp_cookie"),c=lI(a,"gfp_cookie_v2");if(!b&&!c)return null;a=u(P(a));for(b=a.next();!b.done;b=a.next()){var d=b.value;if(d.nodeName=="Cookie"){b=d.getAttribute("domain");var e=gI(d,"expires"),f=d.getAttribute("path"),g=void 0;d=(g=d.getAttribute("value"))!=null?g:"";if(b&&e!=null&&f)return new qG(d,e,f,b,c)}}return null};var FM=function(){};
FM.prototype.g=function(a){if(!lI(a,"GoogleHostedMedia"))return null;N(M.getInstance(),"hghme","1");var b=[],c=[],d=[],e=[],f,g=jI(a,"clientplaybacknonce");g&&(f=V(g));a=u(P(a));for(g=a.next();!g.done;g=a.next()){var h=g.value;g=null;switch(h.nodeName.toLowerCase()){case "audiourls":g="audio";break;case "manifestsurls":g="manifest";break;case "muxedmediaurls":g="muxed";break;case "videourls":g="video"}if(g){h=u(P(h));for(var k=h.next();!k.done;k=h.next()){k=k.value;var l=V(k),p=k.getAttribute("delivery"),
n=gI(k,"itag"),q=void 0,r=(q=k.getAttribute("mimeType"))==null?void 0:q.toLowerCase();q=hI(k.getAttribute("mseCompatible"));var w=gI(k,"contentLength"),z=null,B=null,E=null,da=null,pa=null,Ta=null;if(g=="video"||g=="muxed")z=k.getAttribute("videoCodec"),B=gI(k,"videoBitrate"),pa=gI(k,"width"),Ta=gI(k,"height");if(g=="audio"||g=="muxed")E=k.getAttribute("audioCodec"),da=gI(k,"audioBitrate");if(l!=null&&g!=null)switch(k=new sG(l,g,{rb:p,da:n,mimeType:r,ra:z,Ba:E,gh:B,Nf:da,oa:q,width:pa,height:Ta,Ab:w}),
g){case "audio":b.push(k);break;case "manifest":c.push(k);break;case "muxed":d.push(k);break;case "video":e.push(k)}}}}return new tG(f?f:"None",b,c,d,e)};var GM=function(){};GM.prototype.g=function(a){if(!lI(a,"gpid_wta"))return null;a=u(P(a));for(var b=a.next();!b.done;b=a.next())if(b=b.value,b.nodeName=="AttributionData"&&(b=V(b)))return new eH(b);return null};var HM=function(){};HM.prototype.g=function(a){if(!lI(a,"metrics"))return null;a=u(P(a));for(var b=a.next();!b.done;b=a.next())switch(b=b.value,b.nodeName){case "AdEventId":var c=Vr(b);break;case "FeEventId":var d=Vr(b)}return new nH(c,d)};var IM=function(){};IM.prototype.g=function(a){return lI(a,"programmatic")?(a=jI(a,"DealId"))&&(a=V(a))&&!D(a)?new tH(a):null:null};var JM=function(){};JM.prototype.g=function(a){if(!lI(a,"sodar"))return null;var b=null;a=u(P(a));for(var c=a.next();!c.done;c=a.next())switch(c=c.value,c.nodeName){case "Siub":var d=V(c);break;case "Scs":b=V(c)||null;break;case "Bgub":var e=V(c);break;case "Bgp":var f=V(c)}return d&&b&&e&&f?new zH(d,e,f,b):null};var KM=function(){};KM.prototype.g=function(a){if(!lI(a,"uisettings"))return null;var b;(a=jI(a,"uihideable"))&&(b=hI(V(a)));return new AH(b)};var LM=function(){};
LM.prototype.g=function(a){if(!lI(a,"youtubehostedad"))return null;var b=null,c=!1,d=null,e=null,f=!1,g=null,h=null,k=null,l=null,p=null,n=null,q=null,r=jI(a,"youtubevideoid");r&&(b=V(r));if(r=jI(a,"istrueview"))r=hI(V(r)),r!=void 0&&(c=r);(r=jI(a,"videotitle"))&&(d=V(r));(r=jI(a,"videothumbnailurl"))&&(e=V(r));if(r=jI(a,"isvideounlisted"))r=hI(V(r)),r!=void 0&&(f=r);(r=jI(a,"channelid"))&&(g=V(r));(r=jI(a,"channeltitle"))&&(h=V(r));(r=jI(a,"channelthumbnailurl"))&&(k=V(r));(r=jI(a,"channelcustomurl"))&&
(l=V(r));(r=jI(a,"format"))&&(p=V(r));(r=jI(a,"youtubeownershipfingerprint"))&&(n=V(r));(a=jI(a,"youtubevisitordata"))&&(q=V(a));return new BH({videoId:b,Hb:c,Wd:d,Bf:e,cd:f,ie:g,wd:h,vd:k,he:l,format:p,gf:n,Cf:q})};function MM(a){if(!a)return!1;if(a=a.M.get(NE)){if(a.g=="TRUEVIEW"||a.g=="SKIPPABLE")return!0;if(a.g)return!1;un(M.getInstance(),"ytu_nf");return a.Hb()}return!1};var NM=function(a){this.jb=new YK;this.l=a;this.g=this.j=null},OM=function(a){return!(!a.j||!a.j.g)};function PM(){var a=Kr(),b=document;return new Xr(a.parent===a?a.location.href:b.referrer)}function QM(a,b){ks(a,"url","");try{var c=2083-a.toString().length-1;if(c<=0)return a.toString();for(var d=b.slice(0,c),e=encodeURIComponent(d),f=c;f>0&&e.length>c;)d=b.slice(0,f--),e=encodeURIComponent(d);ks(a,"url",d)}catch(g){}return a.toString()};var RM="acceptInvitation acceptInvitationLinear click collapse complete exitFullscreen expand firstQuartile fullscreen impression loaded midpoint pause resume skip start thirdQuartile videoClicked volumeChange".split(" ");var SM=new XH;function TM(a){var b=b===void 0?SM:b;var c=c===void 0?null:c;bI(b,new CD(a,c?c:c))};var UM=function(){this.g=Math.random()<.01;this.l=Math.floor(Math.random()*4503599627370496);this.j=null};
UM.prototype.report=function(a,b,c){b=b===void 0?{}:b;if(A.G_testRunner==null&&(this.g||(c===void 0?0:c))){b.lid=a;Eu(Du.getInstance())&&(b.sdkv=Eu(Du.getInstance()));this.j&&(b.palv=this.j);a=So().sort().join(",");D(Zk(a))||(b.e=a);b=VM(this,b);var d=new Xr("http://pagead2.googlesyndication.com/pagead/gen_204");Ij(b,function(e,f){e!=null&&ks(d,f,e==null?"":typeof e==="boolean"?e?"t":"f":""+e)},this);b=PM().o;b!=="http"&&b!=="https"||Yr(d,b);b=d.toString();a=d.g.get("url");a!=null&&Tb()&&b.length>
2083&&(b=QM(d,a));TM(b)}};var VM=function(a,b){b.id="ima_html5";var c=PM();b.c=a.l;b.domain=c.j;return b};UM.getInstance=function(){return L(UM)};function WM(a){var b=Date.now(),c={};a=(c["x-afma-token-requester-type"]=a,c);c="https://pubads.g.doubleclick.net/adsid/integrator.json?aos="+encodeURIComponent(av());return(new RH).get({url:c,withCredentials:!0,timeout:new GH(5E3),headers:a}).then(function(d){var e=Date.now();d=d.newToken||"";var f={};UM.getInstance().report(182,(f.t=e-b,f.aos=av(),f));return new XM(d)}).catch(function(d){var e="not instanceof Error";d instanceof Error&&(e=FG(Number(d.message)));d=Date.now();var f={};UM.getInstance().report(182,
(f.except=e,f.t=d-b,f));return Promise.resolve(YM)})}var ZM=function(){U.call(this);this.g=null;this.o=new NH(this);kt(this,this.o);this.j=new yC(72E5);this.l=Promise.resolve(YM)};t(ZM,U);var $M=function(a){var b="requester_type_8";b=b===void 0?"requester_type_9":b;var c=function(d){a.g=d;return a.g};a.l=WM(b).then(c);a.j=new yC(72E5);a.o.listen(a.j,"tick",function(){a.l=WM(b).then(c)});a.j.start();jt(a,function(){a.j.stop()})};
ZM.prototype.getId=function(){var a=this;return y(function(b){if(b.g==1)return a.g!=null&&a.g!==YM?(b.g=2,b=void 0):b=x(b,a.l,3),b;b.g!=2&&(a.g=b.j);return b.return(a.g)})};var XM=function(a){this.id=a},YM=new XM("");function aN(a){for(var b=a.length,c=new Uint8Array(b),d=0;d0);c instanceof bF?h=(h=c.M.get(NE))?h.j:null:h=null;k.j=h;c instanceof bF?h=(h=c.M.get(NE))?h.l:null:h=null;k.g=h;OM(k)&&(k.j.title&&k.jb.g.l(RK.toString(),k.j.title),k.g&&k.g.title&&k.jb.g.l(QK.toString(),k.g.title),k.g&&k.g.g&&k.jb.g.l(PK.toString(),k.g.g));var B;if(OM(k))if(k.g){var E=E===void 0?null:E;(B=B===void 0?null:B)||(B="//www.youtube.com/");E?B+=E:(E=Zk(k.g.id),
B=D(E)?null:B+"channel/"+(E.lastIndexOf("UC",0)==0&&E.length==24?E:"UC"+E))}else B=null;else B=null;E=OM(k)&&k.g?k.g.title:null;h=OM(k)&&k.g?k.g.g:null;OM(k)?(l=k.j.id,k=k.l,k=k===void 0?!1:k,l==null?k=null:(p=new Xr("//www.youtube.com/watch"),n=p.g,n.set("v",l),n.set("feature",k?"trueview-instream":"instream"),as(p,n),k=p.toString())):k=null;if(c=c.yb)l={},c=(l.required=!1,l.clickable=!0,l.text=c,l),k&&(c.clickUrl=k),z.set("adTitle",c);E&&(c={},c=(c.required=!1,c.clickable=!!B,c.text=E,c),B&&(c.clickUrl=
B),z.set("authorTitle",c));h&&(c={},c=(c.required=!1,c.clickable=!!B,c.imageUrl=h,c),B&&(c.clickUrl=B),E&&(c.text=E),z.set("authorIcon",c))}this.config=new a(d.call(b,e,f,g,v(z)))};t(dN,U);var eN=function(a){this.data=a;this.position=0},fN=function(a,b){if(b<0||b>a.data.length-a.position)throw Error("Invalid skip");a.position+=b},gN=function(a){var b=a.data[a.position]&255;a.position++;return b},hN=function(a,b){if(b<0||b>a.data.length-a.position)throw Error("Invalid byteCount");var c=[],d=0;b=a.position+b;for(var e=a.position;e4&&fN(a.g,f-4);e-=f}(d&8)!==0&&(e-=10);for(d=e;d>0;){e=hN(a.g,4);f=String.fromCharCode.apply(null,e);e=iN(a.g);if(e<=1){a=b;break a}fN(a.g,2);if("TXXX"===f){f=gN(a.g);switch(f){case 0:case 2:case 3:break;default:throw Error("Unsupported encoding "+
f);}var g=DataView,h=a.g,k=e-1;if(k<0||k>h.data.length-h.position)throw Error("Invalid byteCount");var l=new ArrayBuffer(k);l=new Uint8Array(l);for(var p=0,n=h.position+k,q=h.position;q191&&l<224?(p=f[h++],g[k++]=String.fromCharCode((l&31)<<6|p&63)):l>239&&l<365?(p=f[h++],n=f[h++],q=f[h++],l=((l&7)<<18|(p&63)<<12|(n&63)<<6|q&63)-65536,g[k++]=String.fromCharCode(55296+
(l>>10)),g[k++]=String.fromCharCode(56320+(l&1023))):(p=f[h++],n=f[h++],g[k++]=String.fromCharCode((l&15)<<12|(p&63)<<6|n&63));f=g.join("");break b;default:f="";break b}f=void 0}b.push(f)}else fN(a.g,e-1);d-=e+10}if(b.length===0)throw Error("No TXXX frames found.");a=b}a=a[0]}else a=b;a.indexOf("google_")===0&&(a={value:a,Rh:!1},c=Math.floor(c),this.g.has(c)?this.g.get(c).push(a):this.g.set(c,[a]))}};var pN=function(a,b,c){this.key=a;this.duration=b;this.position=c};var qN=function(a){this.data=a};m=qN.prototype;m.getAdPosition=function(a){return((this.data.ads||{})[a]||{}).position||0};m.Vb=function(a){return((this.data.ads||{})[a]||{})["break"]||""};m.getTotalAds=function(a){return((this.data.breaks||{})[a]||{}).ads||0};m.ng=function(a){return((this.data.breaks||{})[a]||{}).duration||0};m.Mh=function(a){return((this.data.breaks||{})[a]||{}).expected_duration||0};
m.pg=function(a){var b=this.data.ads||{},c=this.getAdPosition(a);a=this.Vb(a);for(var d=0,e=u(Object.keys(b)),f=e.next();!f.done;f=e.next()){f=b[f.value]||{};var g=f.position||Number.MAX_SAFE_INTEGER,h=f.duration||0;a===f["break"]&&g>0&&g0}).sort(function(g,h){return g.position-h.position})};var rN=function(a){var b=a===void 0?{}:a;a=b.adBreakDuration===void 0?0:b.adBreakDuration;var c=b.pd===void 0?0:b.pd;var d=b.adPeriodDuration===void 0?0:b.adPeriodDuration;var e=b.adPosition===void 0?0:b.adPosition;var f=b.rd===void 0?0:b.rd;var g=b.currentTime===void 0?0:b.currentTime;var h=b.duration===void 0?0:b.duration;var k=b.tc===void 0?[]:b.tc;b=b.totalAds===void 0?0:b.totalAds;this.adBreakDuration=a;this.pd=c;this.adPeriodDuration=d;this.adPosition=e;this.rd=f;this.currentTime=g;this.duration=
h;this.tc=k;this.totalAds=b},sN=function(a){var b={};b.adBreakDuration=a.adBreakDuration;b.adBreakStartTime=a.pd;b.adPeriodDuration=a.adPeriodDuration;b.adPosition=a.adPosition;b.adStartTime=a.rd;b.currentTime=a.currentTime;b.duration=a.duration;b.adsDurationsMs=a.tc;b.totalAds=a.totalAds;return b};var tN=function(a){this.played=!1;this.data=a};tN.prototype.contains=function(a){return Math.floor(uN(this))<=a&&a<=Math.ceil(vN(this))};var uN=function(a){return a.data.start_float},vN=function(a){return a.data.end_float};tN.prototype.bd=function(){return uN(this)<=vN(this)};tN.prototype.Ub=function(a){return a?uN(this)===uN(a)&&vN(this)===vN(a)&&this.played===a.played:!1};var wN=function(a){var b={};b.end=vN(a);b.start=uN(a);b.played=a.played;return b};var xN={html:"Html",iframe:"IFrame","static":"Static"};
function yN(a,b){var c=a.deal_id||null;b=new kF(b);b.A=zN(a);b.yb=a.title||null;b.C=a.advertiser||null;b.g=a.clickthrough_url||"";b.l=a.attribution_params;b.creativeId=a.creative_id||null;b.B=a.creative_ad_id||null;b.description=a.description||null;b.na=a.duration*1E3||-1;b.id=a.ad_id||null;b.kb=AN(a);b.L=BN(a,"creative_id");b.F=BN(a,"ad_id");b.J=BN(a,"system");b.dealId=CN(a)||c;if(c=a.skip_metadata)b.qa=c.offset*1E3,b.Z.set("skip",[new ED("skip",c.tracking_url)]);c=(a.extensions||[]).map(function(d){return MH(d).documentElement});
c=zI(DN(),c);c=new HF([new GF(new lH({ua:EN(a.companions),M:c}))]);(new yH).g(c,b,new As);(a=FN(a))&&b.M.set(GE,a);return b}function GN(a,b){var c=a.vast||"";if(!c)return null;b=HN(c,b);if(!b)return null;b.L=BN(a,"creative_id");b.J=BN(a,"system");b.F=BN(a,"ad_id");a=CN(a);b.dealId=a||b.dealId;return b}function CN(a){a=u(a.wrappers||[]);for(var b=a.next();!b.done;b=a.next())if(b=b.value,b.deal_id)return b.deal_id;return""}
function EN(a){if(!a||a.length===0)return[];var b=[];a=u(a);for(var c=a.next();!c.done;c=a.next())b.push(IN(c.value));return b}function IN(a){var b=new Cr(a.click_data.url),c=a.tracking_events.map(function(d){return new DD(d.event,d.uri)});return new CF({yc:new pF([new oF({Rb:a.ad_slot_id,W:a.api_framework,width:a.width,height:a.height,zb:b,Z:c,resources:[new nF(a.resource,xN[a.type],a.creative_type)]})])})}
function BN(a,b){var c=[];(a.wrappers||[]).forEach(function(d){return c.push(d[b]||"")});return c.reverse()}
function HN(a,b){try{var c=MH(a);if(c){var d=c.documentElement;if(d&&ts(d)){var e=DN();if(!d)throw Error("VAST string is empty.");if(!ts(d))throw Error("Response string is not a valid VAST document.");a=[];c=[];for(var f=u(P(d)),g=f.next();!g.done;g=f.next()){var h=g.value;switch(h.nodeName){case "Ad":d=void 0;var k=e,l={};l.id=h.getAttribute("id");l.Na=gI(h,"sequence");l.Sb=h.getAttribute("adType");for(var p=u(P(h)),n=p.next();!n.done;n=p.next()){var q=n.value;if(q.nodeName=="InLine"){for(var r=
void 0,w=void 0,z=void 0,B=void 0,E=void 0,da=void 0,pa=void 0,Ta=[],qb=[],Cd=[],qe=[],Dd=u(P(q)),Ed=Dd.next();!Ed.done;Ed=Dd.next()){var bb=Ed.value;switch(bb.nodeName){case "AdServingId":pa=V(bb);break;case "AdSystem":da=V(bb);break;case "AdTitle":E=V(bb);break;case "AdVerifications":qe=qe.concat(nI(bb));break;case "Advertiser":B=V(bb);break;case "Creatives":for(var mf=u(P(bb)),re=mf.next();!re.done;re=mf.next()){var se=re.value;se.nodeName=="Creative"&&Cd.push(AI(se))}break;case "Description":z=
V(bb);break;case "Error":V(bb)!=null&&Ta.push(V(bb));break;case "Extensions":r=zI(k,P(bb));break;case "Impression":var Na=rI(V(bb)),te=kI(bb);Na!=null&&qb.push(new DF(Na,te));break;case "Survey":w=V(bb)}}d=new lH({sc:pa,Sa:da,yb:E,Zd:B,description:z,Yg:w,errors:Ta,Eb:qb,ua:Cd,Qa:qe,M:r});break}else if(q.nodeName=="Wrapper"){z=w=r=void 0;B=k;E=q;da=[];pa=[];k=[];Ta=[];for(var lc=E.getAttribute("followAdditionalWrappers")!="false",sg=E.getAttribute("allowMultipleAds")=="true",Ab=E.getAttribute("fallbackOnNoAd")==
"true",nf=u(P(E)),Fd=nf.next();!Fd.done;Fd=nf.next()){var rb=Fd.value;switch(rb.nodeName){case "AdSystem":z=V(rb);break;case "VASTAdTagURI":var ad=V(rb);w=ad?ad:void 0;break;case "Creatives":for(var ue=u(P(rb)),ve=ue.next();!ve.done;ve=ue.next()){var we=ve.value;we.nodeName=="Creative"&&k.push(AI(we))}break;case "Error":var xe=V(rb);xe!=null&&da.push(xe);break;case "AdVerifications":Ta=Ta.concat(nI(rb));break;case "Extensions":r=zI(B,P(rb));break;case "Impression":var of=rI(V(rb)),pf=kI(rb);of!=null&&
pa.push(new DF(of,pf))}}d=new fI({Sa:z,lg:lc,Lf:sg,kg:Ab,If:w,errors:da,Eb:pa,ua:k,Qa:Ta,M:r});break}}if(!d)throw Error("Vast Ad contains neither inline nor wrapper data.");a.push(new GF(d,l));break;case "Error":var Dc=V(h);Dc&&c.push(Dc)}}for(var lb=M.getInstance(),Gd=u(["lima_p_ich","lima_p_icu"]),Hd=Gd.next();!Hd.done;Hd=Gd.next()){var Id=Hd.value;lb.j.has(Id)?(N(lb,Id,""+lb.j.get(Id)),lb.j.delete(Id)):N(lb,Id,"0")}var ye=lb.g;ye.U=!0;kn(ye);var tg=new eI({ads:a,Fg:c})}else tg=null;var Ec=tg}else Ec=
null;if(!Ec)return null;var ug=new HF(Ec.g),qf=(new FI(b)).j(ug);if(!qf)return null;(new yH).g(ug,qf,new As);return qf}catch(bi){return null}}function DN(){var a=new xI;yI(a,new wM);yI(a,new xM);yI(a,new zM);yI(a,new IM);yI(a,new JM);yI(a,new BM);yI(a,new KM);yI(a,new HM);yI(a,new LM);yI(a,new FM);yI(a,new EM);yI(a,new CM);yI(a,new DM);yI(a,new GM);yI(a,new AM);return a}function zN(a){var b=a.ad_system||"";a=BN(a,"system");return[b].concat(v(a))}
function FN(a){a=a.verifications||null;if(!a)return null;var b=new GE;a.forEach(function(c){var d=c.vendor,e=c.parameters,f=JN(c);c=c.java_script_resources||[];c.length>0&&(c=c[0],HE(b,d,c.script_url||"",e,c.api_framework||"",f))});return b}function JN(a){var b=[];(a.tracking_events||[]).forEach(function(c){b.push(new ED(c.event,c.uri))});return b}function AN(a){return(a=a.universal_ad_id||null)?[new aF(a.id_value||"unknown",a.id_registry||"unknown")]:[]};var KN=function(){qN.apply(this,arguments)};t(KN,qN);KN.prototype.Gf=function(a){return((this.data.tags||{})[a]||{}).type||""};KN.prototype.nh=function(a){return((this.data.tags||{})[a]||{}).ad||""};KN.prototype.getAd=function(a,b){var c=(this.data.ads||{})[a];if(!c)return null;b=GN(c,b);if(!b)return null;b.ia=this.getAdPodInfo(a);return b};KN.prototype.g=function(){for(var a=this.data.tags||{},b=u(Object.keys(a)),c=b.next();!c.done;c=b.next())if((a[c.value].type||"")==="progress")return!0;return!1};
var LN=function(a,b){a=a.Gf(b);if(!a)return!1;switch(a.toLowerCase()){case "progress":case "vastprogress":return!1;default:return!0}};KN.prototype.getAdPodInfo=function(a,b){b=qN.prototype.getAdPodInfo.call(this,a,b===void 0?0:b);a=this.Vb(a);var c=((this.data.breaks||{})[a]||{}).type||"";b.g=-2;switch(c){case "pre":b.g=0;break;case "mid":a=Number(a),isNaN(a)||(b.g=a)}return b};var MN=function(){KN.apply(this,arguments)};t(MN,KN);m=MN.prototype;m.Gf=function(a){return NN(this,a).type||""};m.nh=function(a){return NN(this,a).ad||""};m.Vb=function(a){return((this.data.ads||{})[a]||{}).ad_break_id||""};m.getTotalAds=function(a){return((this.data.ad_breaks||{})[a]||{}).ads||0};m.ng=function(a){return((this.data.ad_breaks||{})[a]||{}).duration||0};m.Mh=function(a){return((this.data.ad_breaks||{})[a]||{}).expected_duration||0};
m.pg=function(a){var b=this.data.ads||{},c=this.getAdPosition(a);a=this.Vb(a);for(var d=0,e=u(Object.keys(b)),f=e.next();!f.done;f=e.next()){f=b[f.value]||{};var g=f.position||Number.MAX_SAFE_INTEGER,h=f.duration||0;a===f.ad_break_id&&g>0&&g0}).sort(function(g,h){return g.position-h.position})};var NN=function(a,b){a=a.data.tags||{};for(var c=u(Object.keys(a)),d=c.next();!d.done;d=c.next())if(d=d.value,b.startsWith(d))return a[d];return{}};var ON=function(a,b){b=b===void 0?{}:b;uB.call(this,a);this.data=b||{}};t(ON,uB);var PN=function(a){this.data=a=a===void 0?{}:a},QN=function(a){return a.data.metadata_url||""},RN=function(a){var b=a.data.polling_frequency;return isNaN(b)||b==null||b<0?10:a.data.polling_frequency},SN=function(a){return a.data.stream_id||""};PN.prototype.ze=function(){return this.data.pod_manifest_url||""};
PN.prototype.Ae=function(){var a={};return a.pod_manifest_url=this.ze(),a.manifestFormat=this.data.manifest_format||"",a.streamUrl=this.data.stream_manifest||"",a.subtitles=this.data.subtitles||[],a.streamId=SN(this),a};var TN=function(a){return a.data.stream_type==="live"};var UN=function(){qN.apply(this,arguments)};t(UN,qN);UN.prototype.getCuePoints=function(){var a=(this.data.cuepoints||[]).map(function(b){return new tN(b)});a=a.filter(function(b){return b.bd()});a.sort(function(b,c){return uN(b)-uN(c)});return a};UN.prototype.getAd=function(a,b,c){c=c===void 0?0:c;var d=(this.data.ads||{})[a];if(!d)return null;b=GN(d,b);if(!b)return null;b.ia=this.getAdPodInfo(a,c);return b};
UN.prototype.g=function(){for(var a=this.data.times||{},b=u(Object.keys(a)),c=b.next();!c.done;c=b.next()){c=a[c.value];for(var d=0;d0&&uN(a[0])===0;a.some(function(e,f){return e.contains(b||0)?(c.g=d?f:f+1,c.j=uN(e),!0):!1})}return c};var VN=function(){U.call(this);this.j=this.currentTime=0;this.g=!1};t(VN,U);VN.prototype.wb=function(a){this.currentTime=a;a=Math.abs(this.currentTime-this.j);this.g&&a>2.5&&(this.g=!1,this.dispatchEvent(new ON("adPeriodEnded")))};VN.prototype.reset=function(){this.j=this.currentTime=0;this.g=!1};function WN(a,b){var c=b;a.forEach(function(d){var e=uN(d);d=vN(d);b>=d?c-=d-e:be&&(c-=b-e)});return c}function XN(a,b){var c=b,d=0,e=0;a.forEach(function(f){var g=uN(f);f=vN(f);d+=g-e;if(d>b)return c;c+=f-g;e=f});return c};var YN=function(a,b,c,d){this.B=a;this.D=b;this.ba=c;this.aa=d;this.l=null;this.F=0;this.j="";this.J=0;this.C=!1;this.U=!0;this.H=!1;this.o=0;this.A=this.g=null;this.K=this.L=this.O=!1;this.volume=1;this.N=new Set},ZN=function(a){it(a.g);a.K=!1;a.g=null;a.l=null;a.j=""},$N=function(a){a.C||(a.F=a.o,a.C=!0,a.dispatchEvent(new ON("adBreakStarted")))},aO=function(a){a.C&&(a.U&&(a.U=!1,(TN(a.B)||a.B.data.stream_type==="on_demand")&&UM.getInstance().report(206,{st:TN(a.B)?"live":"vod",meta:a.H?"1":"0",
pt:Ls.getPlayerType()||"",pv:Ls.getPlayerVersion()||"",n:"0",ctv:Mu()?"1":"0"},!1)),a.dispatchEvent(new ON("adBreakEnded")),a.C=!1)};YN.prototype.Ta=function(){if(this.A){var a=this.A;var b=this.j,c=this.o,d=this.J;if(a==null||D(b))a=null;else{var e=a.Vb(b);a=new rN({adBreakDuration:a.ng(e),pd:this.F,adPeriodDuration:a.Mh(e),adPosition:a.getAdPosition(b),rd:d,currentTime:c-d,duration:((a.data.ads||{})[b]||{}).duration||0,totalAds:a.getTotalAds(e),tc:a.getAdPodInfo(b,d).tc})}}else a=null;return a};
YN.prototype.getCurrentTime=function(){var a=this.Ta();return a!=null?a.currentTime:0};YN.prototype.getDuration=function(){var a=this.Ta();return a!=null?a.duration:0};YN.prototype.getVolume=function(){return this.volume};
var eO=function(a,b){D(a.j)||a.j!==b||(bO(a,!0),cO(a,"hideAdUi"),cO(a,"complete"),dO(a))},fO=function(a,b,c){return D(a.j)||a.j!==c?!1:(cO(a,b),!0)},gO=function(a,b,c){!D(a.j)&&a.j===b&&a.g!=null&&a.g.report("progress",c.filter(function(d){return d.length>0}))},iO=function(a,b){if(a.N.has(b)||!a.A)return null;a.N.add(b);var c=a.A.getAd(b,a.D,a.o);if(!c)return ZN(a),null;a.l=c;a.j=b;a.J=a.o;hO(a,c);return c};
YN.prototype.Cb=function(a,b){var c;cO(this,a,(c=jO(b))!=null?c:void 0);a==="skip"&&(cO(this,"hideAdUi"),dO(this))};var kO=function(a){(a=a.M.get(JE))&&a.init("3.677.0")},lO=function(a){var b=a.B.Ae();a.dispatchEvent(new ON("loadStream",b))};YN.prototype.Jc=function(a){this.O||(mO(this,a),this.O=!0);this.L&&(cO(this,"resume"),this.L=!1)};YN.prototype.Ic=function(){this.L||(cO(this,"pause"),this.L=!0)};YN.prototype.Kc=function(a){mO(this,a)};
var nO=function(a){if(a.l){var b=a.Ta();a.dispatchEvent(new ON("adProgress",b!=null?sN(b):{}));a.g&&(b=a.getDuration()*1E3,lE(a.g,a.getCurrentTime(),b))}},bO=function(a,b){b=b===void 0?!1:b;var c;!a.K&&(c=a.l)!=null&&c.isSkippable()&&(a.getCurrentTime()>=30||b)&&(a.K=!0,cO(a,"engagedView"))},oO=function(a){if(!a.C&&a.A){var b=a.A.pg(a.j);a.F=a.J-b;a.C=!0;a.dispatchEvent(new ON("adBreakStarted"))}cO(a,"loaded");cO(a,"adCanPlay");cO(a,"impression");cO(a,"creativeView");cO(a,"start");cO(a,"showAdUi");
a.volume===0&&cO(a,"mute")},cO=function(a,b,c){a.l&&(a.g!=null&&a.g.report(b,c),a.dispatchEvent(new OE(b,a.l)))},dO=function(a){var b=a.A,c=a.j;if(b==null||D(c))var d=!0;else d=b.getTotalAds(b.Vb(c)),b=b.getAdPosition(c),d=typeof d!=="number"||typeof b!=="number"?!0:b>=d;ZN(a);d&&aO(a)};YN.prototype.dispatchEvent=function(a){this.ba.dispatchEvent(a)};
var hO=function(a,b){it(a.g);a.g=new cE(b.Z,new XH(!1));b=QD({ei:"1",ia:b.getAdPodInfo(),ad:b,V:a.aa});nE(a.g,b);mE(a.g,new KD("SDKV",{toString:function(){return a.D}}))},mO=function(a,b){if(a.l!=null){var c=b===0,d=a.volume===0;c&&!d?cO(a,"mute"):!c&&d&&cO(a,"unmute");a.volume!==b&&a.dispatchEvent(new OE("volumeChange",a.l,{volume:b}))}a.volume=b};
function jO(a){if(!a)return null;a=a.data;return a instanceof Object?a.trackingUrls&&(a=a.trackingUrls,a instanceof Object&&a.eventUrls&&(a=a.eventUrls,a instanceof Array&&a.length))?a:null:null};function pO(a){var b;return((b=a.M.get(EE))==null?void 0:b.g)||null}function qO(a){return a.some(function(b){return b.za==="GoogleWhyThisAd"})}function rO(a){a.forEach(function(b){if(b.za==="GoogleWhyThisAd"||b.za==="AdChoices")b.Za="left",b.ab="top",b.g=20,b.j=20})}function sO(a){a.forEach(function(b){b.za==="GoogleWhyThisAd"&&(b.g<46||b.j<46)&&(b.g=46,b.j=46)})}var tO=function(){this.l=-1;this.j=this.g=!0;this.o=!1;this.A=!0;this.B=this.L=!1;this.F=null;this.va=[];this.D=!1;this.C=null};
tO.prototype.getUiElements=function(){var a=[];this.g&&a.push("adAttribution");this.j&&a.push("countdown");return a};tO.prototype.isSkippable=function(){return this.l>=0};function uO(a){var b={};return b.skipTime=a.l,b.enableAttributionBar=a.g,b.enableCountdown=a.j,b.enableLearnMoreButton=a.o,b.enableTitleBar=a.A,b.enableYouTubeMetadata=a.L,b.gvnStyleAnnotation=a.B,b.wtaClickthroughUrl=a.F,b.icons=a.va.map(function(c){var d={};return d.program=c.za,d.apiFramework=c.W,d.widthPx=c.g,d.heightPx=c.j,d.pxRatio=c.F,d.xPosition=c.Za,d.yPosition=c.ab,d.offsetMs=c.xa,d.durationMs=c.na,d.clickthroughUrl=c.o,d.attributionParams=c.A,d.staticResourceUrl=c.l,d.staticResourceMimeType=
c.J,d.iconViewTrackingUrls=c.B,d.iconClickTrackingUrls=c.C,d}),b.hasClickthrough=a.D,b.gpidAttributionData=a.J?JSON.stringify(Oh(a.J)):null,b};var vO=function(){},wO=function(a,b){a=new Xr(a);b.g&&Zr(a,"dai.google.com");return a},xO=function(a){var b=a.adTagParameters,c=new Map;if(b!=null)for(var d=u(Object.keys(b)),e=d.next();!e.done;e=d.next()){e=e.value;var f=b[e];f!=null&&c.set(e,f)}c.set("api-key",a.apiKey);c.set("auth-token",a.authToken);c.set("dai-sam-id",a.streamActivityMonitorId);a.g&&c.set("cld","1");return c};vO.prototype.yh=function(){return null};vO.prototype.xh=function(){return null};function yO(a,b,c){return a+"/"+b+"/vid/"+c+"/streams"}function zO(a,b){var c={},d={},e={};return e.url="https://videostitcher.googleapis.com/v1/projects/"+a.projectNumber+"/locations/"+a.region+"/liveSessions",e.content=Object.assign({},a.videoStitcherSessionOptions,(d.live_config="projects/"+a.projectNumber+"/locations/"+a.region+"/liveConfigs/"+a.liveStreamEventId,d.gam_settings=(c.stream_id=b,c),d)),e}
function AO(a,b){var c={},d={},e={};return e.url="https://videostitcher.googleapis.com/v1/projects/"+a.projectNumber+"/locations/"+a.region+"/vodSessions",e.content=Object.assign({},a.videoStitcherSessionOptions,(d.ad_tag_uri=a.adTagUrl,d.source_uri=a.contentSourceUrl,d.ad_tracking="CLIENT",d.vod_config=a.vodConfigId?"projects/"+a.projectNumber+"/locations/"+a.region+"/vodConfigs/"+a.vodConfigId:"",d.gam_settings=(c.network_code=a.networkCode,c.stream_id=b,c),d)),e}
function BO(a,b){b.forEach(function(c,d){D(c)||ks(a,d,c)})};var CO=function(){};t(CO,vO);CO.prototype.Nc=function(a){return DO(a)&&a.format==="dash"};CO.prototype.xc=function(a,b){b=b===void 0?new Map:b;var c=wO(D(a.assetKey)?yO("https://pubads.g.doubleclick.net/ondemand/dash/content",a.contentSourceId,a.videoId):"https://pubads.g.doubleclick.net/ssai/event/"+a.assetKey+"/streams",a);a=xO(a);BO(c,a);BO(c,b);return c.toString()};var EO=function(){};t(EO,vO);EO.prototype.Nc=function(a){return DO(a)&&a.format!=="dash"};EO.prototype.xc=function(a,b){b=b===void 0?new Map:b;var c=wO(D(a.assetKey)?yO("https://pubads.g.doubleclick.net/ondemand/hls/content",a.contentSourceId,a.videoId):"https://pubads.g.doubleclick.net/ssai/event/"+a.assetKey+"/streams",a);a=xO(a);BO(c,a);BO(c,b);return c.toString()};var FO=function(){};t(FO,vO);FO.prototype.Nc=function(a){return GO(a)||HO(a)};FO.prototype.xc=function(a,b){b=b===void 0?new Map:b;var c=wO("https://pubads.g.doubleclick.net/ssai/pods/api/v1/network/"+a.networkCode+"/custom_asset/"+a.customAssetKey+"/stream",a),d=xO(a);BO(c,d);BO(c,b);ks(c,"manifest-type",a.format);return c.toString()};var IO=function(){};t(IO,vO);IO.prototype.Nc=function(a){return JO(a)||KO(a)||LO(a)};IO.prototype.xc=function(a){return wO("https://pubads.g.doubleclick.net/ondemand/pods/api/v1/network/"+a.networkCode+"/stream_registration",a).toString()};IO.prototype.yh=function(a){var b=Object.fromEntries(a);Object.keys(b).forEach(function(c){b[c]=String(b[c])});a={};return JSON.stringify((a.targeting_parameters=b,a))};IO.prototype.xh=function(){var a={};return a["Content-Type"]="application/json",a};var MO=function(){};t(MO,vO);MO.prototype.Nc=function(a){return DO(a)&&a.o};
MO.prototype.xc=function(a,b){b=b===void 0?new Map:b;var c=new Xr(GO(a)?"https://truman-qa.sandbox.google.com/ssai/pods/api/v1/network/"+a.networkCode+"/custom_asset/"+a.customAssetKey+"/stream":D(a.assetKey)?a.format==="dash"?yO("https://truman-qa.sandbox.google.com/ondemand/dash/content",a.contentSourceId,a.videoId):yO("https://truman-qa.sandbox.google.com/ondemand/hls/content",a.contentSourceId,a.videoId):"https://truman-qa.sandbox.google.com/ssai/event/"+a.assetKey+"/streams"),d=xO(a);BO(c,d);
BO(c,b);GO(a)&&!D(a.format)&&ks(c,"manifest-type",a.format);return c.toString()};var NO=function(){};t(NO,vO);NO.prototype.Nc=function(){return!1};NO.prototype.xc=function(){return""};var OO=function(){this.g=[]},PO=function(a,b){a=u(a.g);for(var c=a.next();!c.done;c=a.next())if(c=c.value,c.Nc(b))return c;return new NO};var QO=function(){};t(QO,vO);QO.prototype.Nc=function(){return!1};QO.prototype.xc=function(a,b){b=b===void 0?new Map:b;var c="";D(a.assetKey)?RO(a)?c=a.contentSourceId:GO(a)&&(c=a.networkCode):c=a.assetKey;c=new Xr(c);a=xO(a);BO(c,a);BO(c,b);return c.toString()};var SO=function(){this.g=new OO},TO=function(a,b){b&&a.g.g.push(b)};
SO.prototype.fetch=function(a,b,c){c=c===void 0?new Map:c;var d=new FH("Invalid stream initialization request.",2001);if(!DO(a))return Promise.reject(d);var e=PO(this.g,a),f=e.xc(a,c);b.Hc==="tvos"&&f.startsWith("https://pubads.g.doubleclick.net")&&Oo(up)&&(f=f.replace("https://pubads.g.doubleclick.net/","https://pubads-att.g.doubleclick.net/"));var g=e.xh();c=e.yh(c);if(D(f))return Promise.reject(d);var h=Date.now();return TH({headers:g!=null?g:void 0,url:f,timeout:new GH(UO(a)),withCredentials:!a.g,
content:c!=null?c:void 0}).then(function(k){var l=b.lb;var p=new tm;p=ph(p,1,h);p=ph(p,2,Date.now());$g(l,14,p);l=new PN(k);if(l.data.stream_id==null)throw new FH("Stream initialization response was invalid.\nResponse: "+JSON.stringify(k),2002);return l}).catch(function(k){var l=new FH("Stream initialization failed",2002);k instanceof FH?l=k:k instanceof LH?l=VO(a,f,k.mk):k instanceof Error&&(k=Number(k.message),k=isNaN(k)?500:Math.floor(k),l=VO(a,f,k));throw l;})};
var VO=function(a,b,c){var d=2002,e="Stream initialization failed because\nHTTP status code: ";c===404?(d=2002,D(a.assetKey)?RO(a)&&(e="Stream initialization failed because either: \n1. Content source ID or video ID was incorrect. \n2. The stream is inactive.\nHTTP status code: "):e="Stream initialization failed because either: \n1. Asset key was incorrect.\n2. The stream is inactive.\nHTTP status code: "):c===401||c===403?(d=2004,e="Stream initialization failed because: \nAPI key was incorrect. Access unauthorized\nHTTP status code: "):
c===408&&(d=2003,e="Stream initialization failed because: \nRequest timed out\nHTTP status code: ");return new FH(e+(c+" with URL: "+b),d)};var WO=function(){this.adTagParameters=null;this.customAssetKey=this.contentSourceUrl=this.contentSourceId=this.authToken=this.assetKey=this.apiKey="";this.g=this.j=!1;this.streamActivityMonitorId=this.networkCode="";this.o=!1;this.videoId="";this.omidAccessModeRules={};this.vodConfigId=this.adTagUrl=this.oAuthToken=this.projectNumber=this.region=this.liveStreamEventId="";this.enableNonce=!1;this.Ma=this.videoStitcherSessionOptions=this.l=null;this.format="hls"},UO=function(a){if(!a.adTagParameters)return 8E3;
a=a.adTagParameters["dai-apto"];isFinite(a)&&(a=String(a));a=typeof a==="string"?/^\s*-?0x/i.test(a)?parseInt(a,16):parseInt(a,10):NaN;return isNaN(a)?8E3:a+4E3},DO=function(a){return!D(a.assetKey)||RO(a)||GO(a)||JO(a)||KO(a)||LO(a)||HO(a)},GO=function(a){return!D(a.networkCode)&&!D(a.customAssetKey)},JO=function(a){return!D(a.networkCode)&&!GO(a)&&!(KO(a)||LO(a))&&!HO(a)&&!!D(a.assetKey)&&!RO(a)},HO=function(a){return GO(a)&&!D(a.liveStreamEventId)&&!D(a.region)&&!D(a.projectNumber)&&!D(a.oAuthToken)},
KO=function(a){return!D(a.vodConfigId)&&!D(a.region)&&!D(a.projectNumber)&&!D(a.oAuthToken)&&!D(a.networkCode)},LO=function(a){return D(a.vodConfigId)&&!D(a.networkCode)&&!D(a.region)&&!D(a.projectNumber)&&!D(a.oAuthToken)&&!D(a.adTagUrl)&&!D(a.contentSourceUrl)},RO=function(a){return!D(a.contentSourceId)&&!D(a.videoId)};var XO=function(a,b,c){b=b===void 0?null:b;c=c===void 0?null:c;uB.call(this,a);this.ad=b;this.j=c};t(XO,uB);var YO=function(a){return new XO(a.type,null,a.data)};XO.prototype.getAd=function(){return this.ad};XO.prototype.getAdData=function(){return this.j};var bP=function(a){if(a instanceof ZO||a instanceof $O||a instanceof aP)return a;if(typeof a.next=="function")return new ZO(function(){return a});if(typeof a[Symbol.iterator]=="function")return new ZO(function(){return a[Symbol.iterator]()});if(typeof a.Rc=="function")return new ZO(function(){return a.Rc()});throw Error("Not an iterator or iterable.");},ZO=function(a){this.g=a};ZO.prototype.Rc=function(){return new $O(this.g())};ZO.prototype[Symbol.iterator]=function(){return new aP(this.g())};
ZO.prototype.j=function(){return new aP(this.g())};var $O=function(a){this.g=a};t($O,cy);$O.prototype.next=function(){return this.g.next()};$O.prototype[Symbol.iterator]=function(){return new aP(this.g)};$O.prototype.j=function(){return new aP(this.g)};var aP=function(a){ZO.call(this,function(){return a});this.l=a};t(aP,ZO);aP.prototype.next=function(){return this.l.next()};var cP=function(a,b){this.j={};this.g=[];this.l=this.size=0;var c=arguments.length;if(c>1){if(c%2)throw Error("Uneven number of arguments");for(var d=0;d2*this.size&&dP(this),!0):!1};var dP=function(a){if(a.size!=a.g.length){for(var b=0,c=0;b=d.g.length)return dy;var f=d.g[b++];return{value:a?f:d.j[f],done:!1}};return e};var eP=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)};var gP=null,hP=function(){U.call(this);this.D=this.V=this.j=null;this.F=-1;this.g=new cP;this.l=new Map;this.o=new NH(this);kt(this,this.o);this.B=new Map;S().l=!0;Ju()};t(hP,U);
var iP=function(){gP==null&&(gP=new hP);return gP},jP=function(a,b){var c={};a=(c.queryId=a,c.viewabilityString=b,c);iP().dispatchEvent(YO({type:"measurable_impression",data:a}))},kP=function(a,b){var c={};a=(c.queryId=a,c.viewabilityString=b,c);iP().dispatchEvent(YO({type:"viewable_impression",data:a}))},lP=function(a,b,c){var d={};a=(d.queryId=a,d.viewabilityString=b,d.eventName=c,d);iP().dispatchEvent(YO({type:"externalActivityEvent",data:a}))};
hP.prototype.destroy=function(){this.o.Ud(this.j,"activityMonitor",this.A);this.j=null};
hP.prototype.A=function(a){var b=a.j(),c;switch(a.l()){case "appStateChanged":L(eB);b=b.appState;a=Qw();a.F!=b&&(a.F=b,(a=L(xz).g)&&Zw(a.g,!b));break;case "externalActivityEvent":lP(b.queryId,b.viewabilityString,b.eventName);break;case "measurableImpression":jP(b.queryId,b.viewabilityString);break;case "viewableImpression":kP(b.queryId,b.viewabilityString);break;case "engagementData":b=b.engagementString;iP().D=b;iP().F=Za();break;case "viewability":(c=this.V)==null||c.getVolume();a=b.queryId;c=b.vastEvent;
this.l.get(a)&&c==="start"&&this.l.get(a);a=b.eventId;clearTimeout(a);if(c=this.g.get(a))this.g.delete(a),c(b.viewabilityData);break;case "viewabilityMeasurement":L(eB);S();break;case "engagement":a=b.eventId;clearTimeout(a);c=this.g.get(a);if(UM.getInstance().g){var d=!1;c||(d=!0);Pj(b,"loggingId")&&UM.getInstance().report(43,{step:"receivedResponse",time:Za(),timeout:d,logid:b.loggingId,timediff:-1})}c&&(this.g.delete(a),c(b.engagementString))}};
C("ima.bridge.getNativeViewability",function(a,b){iP();b({})});C("ima.bridge.getVideoMetadata",function(a){return(a=iP().B.get(a))?a():{}});C("ima.bridge.triggerViewEvent",kP);C("ima.bridge.triggerMeasurableEvent",jP);C("ima.bridge.triggerExternalActivityEvent",lP);var mP=function(){U.apply(this,arguments)};t(mP,U);mP.prototype.Ai=function(){return null};mP.prototype.uf=function(){};mP.prototype.ri=function(){};var nP=Object.values({FULL:"full",DOMAIN:"domain",LIMITED:"limited"});function oP(a,b){return Object.keys(a).some(function(c){return nP.includes(c)})?pP(a,b):qP(a,b)}function pP(a,b){return rP(a,"limited",b)?"limited":rP(a,"domain",b)?"domain":rP(a,"full",b)?"full":qP({},b)}function rP(a,b,c){return(a[b]||[]).some(function(d){return d.test(c)})}function qP(a,b){b=Ar(b);Object.keys(a).includes(""+b)||(b=1);return(a=a[b])&&nP.includes(a)?a:"limited"};function sP(a){UM.getInstance().report(211,{message:a})};var tP=sa(["https://pagead2.googlesyndication.com/omsdk/releases/live/omweb-v1.js"]),uP=sa(["https://pagead2.googlesyndication.com/omsdk/releases/control/omweb-v1.js"]),vP=sa(["https://pagead2.googlesyndication.com/omsdk/releases/canary/omweb-v1.js"]),wP=sa(["https://pagead2.googlesyndication.com/omsdk/releases/experimental/omweb-v1.js"]),xP=wl(tP),yP=wl(uP),zP=wl(vP),AP=wl(wP);var BP=!1;
function CP(a){var b=new Map;var c=new DP;var d=c.ad,e=c.ia,f=c.Kf;c=c.display;var g=Du.getInstance().appName,h=Mu()?"0":Hj()||Gj()?"2":"1",k=null,l=null;d instanceof bF&&d.kb.length>0&&(l=d.kb[0],k=l.getAdIdValue(),l=l.getAdIdRegistry());var p=null,n=null;Ku()&&(p="Google1",n="3.677.0");var q=Du.getInstance().j;q=(new Xr(q)).j||"";var r=(f==null?void 0:f.pageUrl)||null;r=$F(r)?r:Du.getInstance().j;var w=Ls.getPlayerType(),z=Ls.getPlayerVersion(),B=Ut(Du.getInstance().g),E=Du.getInstance().Oc,da=
Yt(Du.getInstance().g),pa=Ut(Du.getInstance().g);/^[\.\w_-]*$/.test(pa)||BP||(UM.getInstance().report(141,{tcstring:pa}),BP=!0);QD({V:c,ei:"1",ia:e,ad:d,Kf:f,appName:g,Ij:h,Cl:k,Bl:l,Ig:p,Fk:n,ke:w,me:z,hf:"IMA",jf:"3.677.0",domain:q,pageUrl:r,Lh:B,Oc:E,El:da},b);d=b;d=d===void 0?new Map:d;OD(d,"REASON",a);return b}var DP=function(){var a=null;this.Kf=this.display=this.ia=this.ad=null;this.error=a===void 0?null:a};var EP=function(a,b,c,d){this.isSkippable=a;this.j=b;this.g=c;this.position=d};EP.prototype.toJSON=function(){return{isSkippable:this.isSkippable,skipOffset:this.j,isAutoPlay:this.g,position:this.position}};function FP(a,b){if(!b)throw Error("Value for "+a+" is undefined, null or blank.");if(typeof b!=="string"&&!(b instanceof String))throw Error("Value for "+a+" is not a string.");if(b.trim()==="")throw Error("Value for "+a+" is empty string.");}function GP(a,b){if(b==null)throw Error("Value for "+a+" is undefined or null");}function HP(a,b){if(b==null)throw Error(a+" must not be null or undefined.");if(typeof b!=="number"||isNaN(b))throw Error("Value for "+a+" is not a number");}
function IP(a,b){HP(a,b);if(b<0||b>1)throw Error("Value for "+a+" is outside the range [0,1]");};function JP(){return/\d+\.\d+\.\d+(-.*)?/.test("1.5.2-google_20241009")}function KP(){for(var a=["1","5","2"],b=["1","0","3"],c=0;c<3;c++){var d=parseInt(a[c],10),e=parseInt(b[c],10);if(d>e)break;else if(d=0&&(b=b.adEvents);eQ.indexOf(a)>=0&&(b=b.mediaEvents);b=b[a];if(!b)throw Error("Unrecognized method name: "+a+".");b.apply(null,v(c))};var jQ=function(a,b,c){GP("AdSession.context",a);this.g=QP();this.o=a;this.D=!1;var d=this.o.g||void 0;if(!b){var e;typeof e==="undefined"&&typeof window!=="undefined"&&window&&(e=window);e=WP(e)?e:VP;var f=f===void 0?TP:f;b=[e,WP(e)?e.top:VP];d&&b.unshift(d);a:{d=u(b);for(var g=d.next();!g.done;g=d.next()){b:{b=e;g=g.value;var h=f;if(!XP(g))try{var k=$P(g);if(k){var l=new UP(k);break b}}catch(p){}l=h(g)?new YP(b,g):null}if(b=l)break a}b=null}}this.A=b;this.J=c||new gQ;this.F=this.H=this.L=!1;this.l=
this.j=null;this.B=!1;this.C={};this.A&&(this.A.onMessage=this.Yj.bind(this));this.fa("setClientInfo","1.5.2-google_20241009",this.o.j.name,this.o.j.version,this.g);hQ(this,a.C);(a=a.o)&&this.fa("setContentUrl",a,this.g);iQ(this)},kQ=function(a){return!!a.A||a.J.g!=null};m=jQ.prototype;m.registerSessionObserver=function(a){this.sendMessage("registerSessionObserver",a,this.g)};m.start=function(){this.fa("startSession",{customReferenceData:this.o.A,underEvaluation:this.o.l},this.g)};
m.error=function(a,b){this.fa("sessionError",a,b,this.g)};m.fa=function(a){this.sendMessage.apply(this,[a,null].concat(v(Ga.apply(1,arguments))))};m.sendMessage=function(a,b){var c=Ga.apply(2,arguments);if(this.A){var d=QP();b&&(this.C[d]=b);c=new LP(d,"SessionService."+a,"1.5.2-google_20241009",JP()&&KP()?c:JSON.stringify(c));this.A.sendMessage(c)}else if(this.J.g!=null)try{this.J.sendMessage(a,b,c)}catch(e){RP("Failed to communicate with SessionInterface with error:"),RP(e)}};
m.Yj=function(a){var b=a.method,c=a.g;a=a.args;if(b==="response"&&this.C[c]){var d=JP()&&KP()?a?a:[]:a&&typeof a==="string"?JSON.parse(a):[];this.C[c].apply(this,d)}b==="error"&&window.console&&RP(a)};var hQ=function(a,b){b&&(b=b.map(function(c){return c.toJSON()}),a.fa("injectVerificationScriptResources",b,a.g))},iQ=function(a){a.registerSessionObserver(function(b){b.type==="sessionStart"&&(a.F=!0,a.j=b.data.creativeType,a.l=b.data.impressionType);b.type==="sessionFinish"&&(a.F=!1)})};
zr("OmidSessionClient.AdSession",jQ);var lQ=function(a){GP("AdEvents.adSession",a);this.j=a.g;try{if(a.L)throw Error("AdEvents already registered.");a.L=!0;a.fa("registerAdEvents",a.g);this.g=a}catch(b){throw Error("AdSession already has an ad events instance registered");}};
lQ.prototype.loaded=function(a){a=a===void 0?null:a;var b=this.g;if(b.j==="definedByJavaScript")throw Error("Creative type has not been redefined");if(b.l==="definedByJavaScript")throw Error("Impression type has not been redefined");b.B=!0;a=a?a.toJSON():null;this.g.fa("loaded",a,this.j)};zr("OmidSessionClient.AdEvents",lQ);var mQ=function(a){GP("MediaEvents.adSession",a);this.j=a.g;try{if(a.H)throw Error("MediaEvents already registered.");a.H=!0;a.fa("registerMediaEvents",a.g);this.g=a}catch(b){throw Error("AdSession already has a media events instance registered");}};mQ.prototype.start=function(a,b){HP("MediaEvents.start.duration",a);IP("MediaEvents.start.mediaPlayerVolume",b);this.g.fa("start",a,b,this.j)};mQ.prototype.pause=function(){this.g.fa("pause",this.j)};mQ.prototype.resume=function(){this.g.fa("resume",this.j)};
var nQ=function(a,b){GP("MediaEvents.playerStateChange.playerState",b);a.g.fa("playerStateChange",b,a.j)},oQ=function(a,b){GP("MediaEvents.adUserInteraction.interactionType",b);a.g.fa("adUserInteraction",b,a.j)};zr("OmidSessionClient.MediaEvents",mQ);var pQ=function(a,b,c,d,e){U.call(this);this.ad=a;this.N=b;this.K=c;this.omidAccessModeRules=d;this.aa=e;this.l=null;this.B=[];this.H=this.O=this.D=this.U=!1;this.A=this.g=this.F=this.j=null;this.o=new NH(this);this.o.listen(this.N,RM,this.ga);this.o.listen(this.N,["adError","streamError"],this.ca)};t(pQ,U);
var xQ=function(a,b,c){var d=qQ(a);rQ(d);d.length===0?sQ(a,"noVerifications"):(b=new cQ(b,d,a.aa.j),c&&(b.uf(c),c=Object.keys(a.omidAccessModeRules).length>0,b.l=!c,UM.getInstance().report(159,{pcp:c})),a.j=new jQ(b),sP("sc"),kQ(a.j)?(a.F=new lQ(a.j),a.g=new mQ(a.j),a.j.registerSessionObserver(function(e){if(!tQ(a))switch(e.type){case "sessionStart":sP("ss");e=e.data;a.D=!0;uQ(a,e==null?void 0:e.creativeType);vQ(a,e==null?void 0:e.impressionType);wQ(a);break;case "sessionFinish":sP("sf");a.O=!0;a.dispatchEvent(new uB("omidAdSessionCompleted"));
break;case "sessionError":sP("se")}}),a.U=!0,uQ(a),vQ(a),a.j.start(),sP("ssa")):(a.j=null,sQ(a,"notSupported")))};pQ.prototype.ga=function(a){this.H||tQ(this)||(a.type!=="firstQuartile"||this.D||sP("bf"),a.type!=="complete"||this.D||sP("bc"),this.B.push(a),wQ(this))};pQ.prototype.ca=function(a){this.B.push(a);wQ(this)};pQ.prototype.ma=function(){wQ(this)};
var yQ=function(a){if(!a.H){a.H=!0;var b;(b=a.j)!=null&&b.fa("finishSession",b.g);zC(function(){tQ(a)||(sP("le"),sQ(a,"sessionLingering"))},5E3)}},wQ=function(a){if(a.D&&!tQ(a))for(;a.B.length>0;){var b=a.B[0];if(b.type==="start"&&(a.l==null?0:a.l.getVolume())<0)break;a.B.shift();var c=a;if(b instanceof XO||b instanceof OE){var d=void 0;if(c.F&&c.g)switch(b.type){case "loaded":sP("oml");b=c.F;d=b.loaded;var e=c;c="preroll";e.ad.getAdPodInfo().getPodIndex()<0?c="postroll":e.ad.getAdPodInfo().getPodIndex()>
0&&(c="midroll");var f=e.ad.isSkippable(),g=e.ad.getSkipTimeOffset();e=e.ad;d.call(b,new EP(f,g,e.g&&e.g.adTagParameters?e.g.adTagParameters.vpa==="auto":!1,c));break;case "impression":sP("i");c=c.F;if(!c.g.F)throw Error("Session not started.");b=c.g;if(b.j==="definedByJavaScript")throw Error("Creative type has not been redefined");if(b.l==="definedByJavaScript")throw Error("Impression type has not been redefined");b.D=!0;c.g.fa("impressionOccurred",c.j);break;case "start":sP("ps");c.g.start(c.ad.getDuration(),
c.l==null?0:c.l.getVolume());((d=c.l)==null?0:d.ac())&&nQ(c.g,"fullscreen");break;case "firstQuartile":c=c.g;c.g.fa("firstQuartile",c.j);break;case "midpoint":c=c.g;c.g.fa("midpoint",c.j);break;case "thirdQuartile":c=c.g;c.g.fa("thirdQuartile",c.j);break;case "complete":b=c.g;b.g.fa("complete",b.j);yQ(c);break;case "pause":c.g.pause();break;case "resume":c.g.resume();break;case "skip":b=c.g;b.g.fa("skipped",b.j);yQ(c);break;case "volumeChange":b=b.getAdData();c=c.g;b=b.volume;IP("MediaEvents.volumeChange.mediaPlayerVolume",
b);c.g.fa("volumeChange",b,c.j);break;case "click":case "videoClicked":oQ(c.g,"click");break;case "fullscreen":nQ(c.g,"fullscreen");break;case "exitFullscreen":nQ(c.g,"normal");break;case "expand":nQ(c.g,"expanded");break;case "collapse":nQ(c.g,"collapsed");break;case "acceptInvitation":case "acceptInvitationLinear":oQ(c.g,"invitationAccept")}}else b instanceof ON&&b.type==="streamError"&&(d=void 0,(d=c.j)==null||d.error("video",b.data.errorMessage||""),yQ(c))}},sQ=function(a,b){a.A=b;a.dispatchEvent(new uB("omidAdSessionAbandoned"));
sP("ab");a.A==="notSupported"&&zQ(a,AQ(a.ad),"3","notSupported")},uQ=function(a,b){b=b===void 0?null:b;if(a.j&&(!b||b==="definedByJavaScript")){b=a.j;a=a.ad.getContentType().startsWith("audio")?"audio":"video";if(a==="definedByJavaScript")throw Error("Creative type cannot be redefined with value definedByJavaScript");if(b.D)throw Error("Impression has already occurred");if(b.B)throw Error("Creative has already loaded");if(b.j&&b.j!=="definedByJavaScript")throw Error("Creative type cannot be redefined");
if(b.j===void 0)throw Error("Native integration is using OMID 1.2 or earlier");b.fa("setCreativeType",a,b.g);b.j=a}},vQ=function(a,b){b=b===void 0?null:b;if(a.j&&(!b||b==="definedByJavaScript")){a=a.j;if(a.D)throw Error("Impression has already occurred");if(a.B)throw Error("Creative has already loaded");if(a.l&&a.l!=="definedByJavaScript")throw Error("Impression type cannot be redefined");if(a.l===void 0)throw Error("Native integration is using OMID 1.2 or earlier");a.fa("setImpressionType","beginToRender",
a.g);a.l="beginToRender"}},tQ=function(a){return a.O||a.A!=null};pQ.prototype.getAd=function(){return this.ad};
var qQ=function(a){for(var b=[],c=a.ad;c!=null;){var d=AQ(c);c=[];d=u(d);for(var e=d.next();!e.done;e=d.next())if(e=e.value,e.Pb==="omid")if(e.g==null)zQ(a,[e],"3","nullUrl");else{var f=new bQ(e.g,e.vendor||void 0,e.parameters||void 0,oP(a.omidAccessModeRules,e.g));b.push(f);c.push(e)}else zQ(a,[e],"2");c=null}return b},zQ=function(a,b,c,d){var e=[];b=u(b);for(var f=b.next();!f.done;f=b.next())f=f.value,e=[].concat(v(e),v(f.Z.map(function(g){return HD(g)})));d&&(e=e.map(function(g){g=new Xr(g);ks(g,
"dbg",d);return g.toString()}));nE(a.K,CP(c));a.K.report("verificationNotExecuted",e)};pQ.prototype.R=function(){QH(this.o);it(this.o);U.prototype.R.call(this)};var rQ=function(a){a=a.map(function(b){return[b.j||"",b.g]});UM.getInstance().report(129,{omData:JSON.stringify(a)});sP("oms")};var BQ=null,CQ=function(){U.call(this);this.o=!0;this.Ig=new aQ("Google1","3.677.0");this.j=[];this.A=this.g=null;this.l=new NH(this)};t(CQ,U);CQ.prototype.ri=function(){this.o=!1;this.dispatchEvent(new uB("omidUnavailable"));UM.getInstance().report(128,{status:"disabled",reason:"iframeLoadFailed",description:"The OM SDK iframe failed to load. No measurements can be taken."})};
CQ.prototype.Ai=function(a,b,c,d,e){var f=this;e=e===void 0?{}:e;sP("omo");var g=new pQ(a,b,c,e,d);if(!this.o)return zQ(g,AQ(a),"3","notEnabled"),null;this.l.Ld(b,["show_ad","start","adError"],function(h){switch(h.type){case "show_ad":DQ(f,g);break;case "start":DQ(f,g);break;case "adError":g.D||zQ(g,AQ(g.getAd()),"3","A fatal ad error occurred, so no OMID ad session was started.")}});this.l.listen(g,"omidAdSessionAbandoned",function(){EQ(!0,g);g.dispose();f.g=null;FQ(f)});this.l.listen(g,"omidAdSessionCompleted",
function(){EQ(!1,g);g.dispose();f.g=null;FQ(f)});return g};var DQ=function(a,b){b.U||tQ(b)||a.j.includes(b)||(a.j.push(b),a.g&&(sP("saa"),yQ(a.g)),FQ(a))},FQ=function(a){a.o&&!a.g&&a.j.length!==0&&a.A&&(a.g=a.j.shift(),xQ(a.g,a.Ig,a.A))};CQ.prototype.uf=function(a){this.A=a;FQ(this)};var EQ=function(a,b){var c={es:a?"abandon":"complete",ai:b.getAd().getAdId(),qy:b.getAd().ve()};a&&b.A!=null&&(c.ar=b.A);UM.getInstance().report(87,c)};function GQ(){if(Mu())var a=new mP;else BQ==null&&(BQ=new CQ),a=BQ;return a};var HQ=function(a,b){this.ad=a;this.g=b};HQ.prototype.getDuration=function(){var a=this.ad.na;return a?a/1E3:0};var AQ=function(a){return(a=a.ad.M.get(GE))?a.g:[]};m=HQ.prototype;m.isSkippable=function(){return this.ad.isSkippable()};m.getSkipTimeOffset=function(){var a=this.ad.qa;return a!=null?a/1E3:-1};m.getAdPodInfo=function(){return this.ad.getAdPodInfo()};
m.getContentType=function(){if(!this.g)return"";switch(this.g.format){case "dash":return"application/dash+xml";case "hls":return"application/x-mpegURL";default:return""}};m.ve=function(){return this.ad.ve()};m.getAdId=function(){return this.ad.getId()};function IQ(a,b,c){if(!a)return null;a=new sE(b,a,c,Ju(),b.ve());fB();a.F&&a.o.bd()&&(Qw().L=!0,L(eB),b=a.o,S().C=b);b=L(eB);c=a.C;b.N=c;S().lf(c);L(eB);b=a.A;c=S();try{var d=Qc(b);c.mf(d)}catch(e){aw(cw,"lidarv",{processDecodedFlagsFailure:1},!0,1E-6),c.mf(b)}Av(c.P,"fmd",Yv(c.flags,GA)?1:0);return a}function JQ(a,b,c,d,e,f){var g=GQ();c.g&&(b=g.Ai(new HQ(e,d),b,c.g,f,d.omidAccessModeRules))&&(b.l=a,b.o.listen(b.l,"start",b.ma))};var KQ=function(a,b){U.call(this);this.j=a;this.V=b;this.g=null};t(KQ,U);m=KQ.prototype;m.getVolume=function(){return this.V.getVolume()};m.Fe=function(){return this.V.Fe()};m.ac=function(){return this.V.ac()};m.vg=function(){return this.V.vg()};m.Ge=function(){return this.V.Ge()};m.getCurrentTime=function(){return this.j.getCurrentTime()};m.getDuration=function(){return this.j.getDuration()||-1};m.Hf=function(){return this.V.Hf()};
m.wf=function(){this.qc();this.g=new NH(this);this.g.listen(this.j,"adProgress",this.wb);this.g.listen(this.j,"complete",this.hj)};m.qc=function(){var a;(a=this.g)==null||a.dispose();this.g=null};m.mg=function(){return this.V.mg()};m.wb=function(){this.dispatchEvent("timeUpdate")};m.hj=function(){this.dispatchEvent("end");this.qc()};var LQ={Hj:[],Fj:0,Qj:[],Vn:!1};function MQ(a,b,c){b=b===void 0?window:b;c=c===void 0?function(){}:c;try{return b.localStorage.getItem(a)}catch(d){return c(d),null}}function NQ(a,b,c){var d=window;d=d===void 0?window:d;c=c===void 0?function(){}:c;return fh(b,5)?MQ(a,d,c):null}function OQ(a,b,c,d){c=c===void 0?window:c;d=d===void 0?function(){}:d;try{return c.localStorage.setItem(a,b),!0}catch(e){d(e)}return!1}function PQ(a,b,c,d){var e=window;e=e===void 0?window:e;d=d===void 0?function(){}:d;return fh(c,5)?OQ(a,b,e,d):!1};var QQ=function(){};QQ.getInstance=function(){throw Error("Must be overridden");};var RQ=function(){this.g=0};t(RQ,QQ);RQ.Dc=void 0;RQ.getInstance=function(){return RQ.Dc?RQ.Dc:RQ.Dc=new RQ};function SQ(a,b,c,d){c=c===void 0?null:c;d=d===void 0?{}:d;var e=RQ.getInstance();e.g===0&&(e.g=Math.random()<.001?2:1);e.g===2&&(e={},Pl(Object.assign({},(e.c=String(a),e.pc=String(Jl()),e.em=c,e.lid=b,e.eids=L(Lo).g().join(),e),d),"esp"))};function TQ(){var a=window;var b=b===void 0?function(){}:b;return new Promise(function(c){var d=function(){c(b());Fj(a,"load",d)};Ej(a,"load",d)})};var UQ=function(){this.cache={}},WQ=function(){VQ||(VQ=new UQ);return VQ},XQ=function(a){var b=ff(yg(a,3));if(!b)return 3;if(eh(a,2)===void 0)return 4;a=Date.now();return a>b+2592E5?2:a>b+432E5?1:0};
UQ.prototype.get=function(a,b){if(this.cache[a])return{jd:this.cache[a],success:!0};var c="_GESPSK-"+a,d="",e=!1;if(Qt(b))d=NQ(c,b,function(k){SQ(6,a,k==null?void 0:k.message);e=!0});else try{d=b.getItem(c)}catch(k){var f;SQ(6,a,(f=k)==null?void 0:f.message);e=!0}if(e)return{jd:null,success:!1};if(!d)return{jd:null,success:!0};try{var g=bD(d);this.cache[a]=g;return{jd:g,success:!0}}catch(k){var h;SQ(5,a,(h=k)==null?void 0:h.message);return{jd:null,success:!1}}};
UQ.prototype.set=function(a,b){var c=eh(a,1),d="_GESPSK-"+c;aD(a);if(Qt(b)){if(!PQ(d,Ph(a),b,function(f){SQ(7,c,f==null?void 0:f.message)}))return!1}else try{b.setItem(d,Ph(a))}catch(f){var e;SQ(7,c,(e=f)==null?void 0:e.message);return!1}this.cache[c]=a;return!0};UQ.prototype.remove=function(a,b){a=eh(a,1);try{b.removeItem("_GESPSK-"+a),delete this.cache[a]}catch(d){var c;SQ(8,a,(c=d)==null?void 0:c.message)}};var VQ=null;function YQ(a,b){return Zg(a,ZC,2,Cg()).some(function(c){return eh(c,1)===b&&eh(c,2)!=null})};var ZQ=function(a){a=Error.call(this,a);this.message=a.message;"stack"in a&&(this.stack=a.stack);Object.setPrototypeOf(this,ZQ.prototype);this.name="InputError"};t(ZQ,Error);var $Q=function(){this.bc=!1},aR=function(){$Q.apply(this,arguments);this.nf=new bv};t(aR,$Q);var bR=function(a,b){a.bc||(a.bc=!0,a.ff=b,a.nf.resolve(b))};
ea.Object.defineProperties(aR.prototype,{promise:{configurable:!0,enumerable:!0,get:function(){return this.nf.promise}},mi:{configurable:!0,enumerable:!0,get:function(){return this.bc}},error:{configurable:!0,enumerable:!0,get:function(){return this.Kg}}});var cR=function(){aR.apply(this,arguments)};t(cR,aR);var dR=function(a,b){bR(a,b)},eR=function(a,b){b.then(function(c){bR(a,c)})};cR.prototype.Qb=function(a){this.bc||(this.bc=!0,this.ff=null,this.Kg=a,this.nf.reject(a))};
var fR=function(a){this.bc=!1;this.g=a};t(fR,$Q);fR.prototype.mi=function(){return this.g.bc};ea.Object.defineProperties(fR.prototype,{error:{configurable:!0,enumerable:!0,get:function(){return this.g.Kg}}});var gR=function(a){fR.call(this,a);this.g=a};t(gR,fR);ea.Object.defineProperties(gR.prototype,{value:{configurable:!0,enumerable:!0,get:function(){return this.g.ff}}});var hR=function(a){fR.call(this,a);this.g=a};t(hR,fR);
ea.Object.defineProperties(hR.prototype,{value:{configurable:!0,enumerable:!0,get:function(){var a;return(a=this.g.ff)!=null?a:null}}});var iR=function(){aR.apply(this,arguments)};t(iR,aR);iR.prototype.notify=function(){bR(this,null)};var jR=function(){R.apply(this,arguments);this.g=[];this.j=[];this.l=[]};t(jR,R);var kR=function(a,b){a.j.push({ce:!1,eg:b})};jR.prototype.ce=function(a){var b=this.j.find(function(c){return c.eg===a});b&&(b.ce=!0)};jR.prototype.R=function(){this.g.length=0;this.l.length=0;this.j.length=0;R.prototype.R.call(this)};function lR(a,b){var c,d;return y(function(e){if(e.g==1)return c=b?a.filter(function(f){return!f.ce}):a,x(e,Promise.all(c.map(function(f){return f.eg.promise})),2);if(a.length===c.length)return e.return();d=a.filter(function(f){return f.ce});return x(e,Promise.race([Promise.all(d.map(function(f){return f.eg.promise})),new Promise(function(f){return void setTimeout(f,b)})]),0)})}var mR=function(a,b){R.call(this);this.id=a;this.timeoutMs=b;this.A=!1;this.g=new jR;kt(this,this.g)};t(mR,R);
mR.prototype.start=function(){var a=this,b,c;return y(function(d){if(d.g==1){if(a.A)return d.return();a.A=!0;d.l=2;return x(d,lR(a.g.j,(b=a.O)!=null?b:a.timeoutMs),4)}if(d.g!=2){if(!a.Fb()){for(var e=0,f=u(a.g.l),g=f.next();!g.done;g=f.next()){if(g.value.g.ff==null)throw Error("missing input: "+a.id+"/"+e);++e}a.j()}return ya(d,0)}c=za(d);if(a.Fb())return d.return();if(!(c instanceof ZQ)&&c instanceof Error&&(a.D?a.D(a.id,c):a.reportError(c),a.g.g.length))for(e=new ZQ(c.message),f=u(a.g.g),g=f.next();!g.done;g=
f.next())if(g=g.value,!g.mi){var h=e;g.bc=!0;g.Kg=h;g.nf.reject(h)}d.g=0})};var nR=function(a){var b=b===void 0?new cR:b;a.g.g.push(b);return b},oR=function(a){var b=b===void 0?new iR:b;a.g.g.push(b);return b},pR=function(a,b){kR(a.g,b);b=new gR(b);a.g.l.push(b);return b},qR=function(a,b){kR(a.g,b);return new hR(b)};var rR=function(){};var sR=function(){R.call(this);this.o=[];this.C=[];this.A={};this.g=[];this.j=new bv;this.l={}};t(sR,R);
var tR=function(a,b){kt(a,b);a.o.push(b)},uR=function(a,b){b=u(b);for(var c=b.next();!c.done;c=b.next())tR(a,c.value)},vR=function(a){var b,c,d,e,f,g,h,k,l,p,n,q;y(function(r){switch(r.g){case 1:if(!a.g.length){r.g=2;break}return x(r,Promise.all(a.g.map(function(w){return w.j.promise})),2);case 2:b=u(a.o);for(c=b.next();!c.done;c=b.next())d=c.value,d.start();e=u(a.C);for(f=e.next();!f.done;f=e.next())g=f.value,vR(g);if(!a.l){r.g=4;break}h=Object.keys(a.l);if(!h.length){r.g=4;break}return x(r,Promise.all(Object.values(a.l).map(function(w){return w.promise})),
6);case 6:for(k=r.j,l=0,p=u(h),n=p.next();!n.done;n=p.next())q=n.value,a.A[q]=k[l++];case 4:return a.j.resolve(a.A),r.return(a.j.promise)}})};sR.prototype.R=function(){R.prototype.R.call(this);this.o.length=0;this.C.length=0;this.g.length=0};var wR=function(a,b){mR.call(this,a);this.id=a;this.C=b};t(wR,mR);wR.prototype.reportError=function(a){this.C(this.id,a)};var xR=function(a,b,c,d){wR.call(this,1041,d);this.B=pR(this,a);c?this.l=pR(this,c):b&&(this.o=qR(this,b))};t(xR,wR);xR.prototype.j=function(){var a=this.B.value,b,c,d,e=(d=(b=this.l)==null?void 0:b.value)!=null?d:(c=this.o)==null?void 0:c.value;e&&WQ().set(a,e)&&eh(a,2)!=null&&SQ(27,eh(a,1))};var yR=function(a,b){wR.call(this,1094,b);this.l=oR(this);this.o=qR(this,a)};t(yR,wR);yR.prototype.j=function(){var a=this.o.value;if(a){if(a!==void 0)for(var b=u(Object.keys(a)),c=b.next();!c.done;c=b.next())if(c=c.value,c.startsWith("_GESPSK"))try{a.removeItem(c)}catch(d){}VQ=new UQ;this.l.notify()}};var zR=function(a,b){wR.call(this,1048,b);this.l=nR(this);this.o=nR(this);this.B=pR(this,a)};t(zR,wR);zR.prototype.j=function(){var a=this.B.value,b=function(c){var d={};SQ(c,eh(a,1),null,(d.tic=String(Math.round((Date.now()-ff(yg(a,3)))/6E4)),d))};switch(XQ(a)){case 0:b(24);break;case 1:b(25);bR(this.o,a);break;case 2:b(26);bR(this.l,a);break;case 3:SQ(9,eh(a,1));bR(this.l,a);break;case 4:b(23),bR(this.l,a)}};var AR=function(a,b,c,d){wR.call(this,1027,d);this.ne=a;this.l=nR(this);this.o=nR(this);var e;this.B=(e=c!=null?c:b)!=null?e:void 0};t(AR,wR);AR.prototype.j=function(){var a=WQ().get(this.ne,this.B).jd;if(!a){a=aD($C(this.ne));var b=this.o,c=a.Qb(XC(100));bR(b,c)}bR(this.l,a)};var BR=function(a,b,c){wR.call(this,1046,c);this.output=oR(this);this.l=nR(this);this.o=pR(this,b);kR(this.g,a)};t(BR,wR);BR.prototype.j=function(){bR(this.l,this.o.value)};var CR=function(a,b,c){wR.call(this,1047,c);this.collectorFunction=a;this.l=nR(this);this.o=nR(this);this.B=nR(this);this.F=pR(this,b)};t(CR,wR);CR.prototype.j=function(){var a=this,b=this.F.value,c=eh(b,1);SQ(18,c);try{var d=Zm();this.collectorFunction().then(function(e){SQ(29,c,null,{delta:String(Zm()-d)});var f=a.l,g=qh(b,2,e);bR(f,g);bR(a.B,e!=null?e:null)}).catch(function(e){SQ(28,c,DR(e));e=a.o;var f=b.Qb(XC(106));bR(e,f)})}catch(e){SQ(1,c,DR(e)),dR(this.o,b.Qb(XC(107)))}};
function DR(a){return typeof a==="string"?a:a instanceof Error?a.message:null};var ER=function(a,b){wR.call(this,1028,b);this.l=nR(this);this.o=pR(this,a)};t(ER,wR);ER.prototype.j=function(){var a=this.o.value,b=eh(a,1);ff(yg(a,3))!=null||SQ(35,b);bR(this.l,a)};var FR=function(a,b,c,d){wR.call(this,1050,d);this.B=c;this.l=nR(this);this.o=pR(this,a);this.F=qR(this,b)};t(FR,wR);FR.prototype.j=function(){var a=this.o.value,b=eh(a,1),c=this.F.value;if(c==null)SQ(41,b),a.Qb(XC(111)),bR(this.l,a);else if(typeof c!=="string")SQ(21,b),b=this.l,a=a.Qb(XC(113)),bR(b,a);else{if(c.length>this.B){var d={};SQ(12,b,null,(d.sl=String(c.length),d));b=a.Qb(XC(108));Bg(b,2)}else c.length||SQ(20,b),Bg(a,10);bR(this.l,a)}};var GR=function(a){wR.call(this,1046,a);this.output=oR(this)};t(GR,wR);GR.prototype.j=function(){var a=this;TQ().then(function(){a.output.notify()})};function HR(a,b,c,d,e,f,g){var h,k,l,p,n,q,r,w,z,B,E,da,pa,Ta;return y(function(qb){return qb.g==1?(h=new sR(a,2),k=new AR(b,f?null:d,f,g),tR(h,k),l=null,f&&(l=new cR,bR(l,f)),tR(h,new xR(k.o,l?null:e,l,g)),p=new ER(k.l,g),tR(h,p),n=new zR(p.l,g),tR(h,n),q=new CR(c,n.l,g),tR(h,q),tR(h,new xR(q.o,l?null:e,l,g)),r=new FR(q.l,q.B,1024,g),tR(h,r),tR(h,new xR(r.l,l?null:e,l,g)),w=new GR(g),tR(h,w),z=new BR(w.output,n.o,g),tR(h,z),B=new CR(c,z.l,g),tR(h,B),E=new xR(B.l,l?null:e,l,g),tR(h,E),vR(h),Ta=b,
x(qb,r.l.promise,2)):qb.return({id:Ta,collectorGeneratedData:(pa=(da=qb.j)==null?void 0:eh(da,2))!=null?pa:null})})};var IR=function(a,b,c,d,e,f){wR.call(this,1059,f);this.B=a;this.K=c;this.H=d;this.o=nR(this);this.N=pR(this,b);e?this.l=pR(this,e):d&&(this.F=qR(this,d))};t(IR,wR);
IR.prototype.j=function(){var a,b=(a=this.F)==null?void 0:a.value,c;a=((c=this.l)==null?0:c.value)?fh(this.l.value,5):b;if(b||a){var d=this.N.value;a=d.id;c=d.collectorFunction;var e;d=(e=d.networkCode)!=null?e:a;e={};SQ(42,d,null,(e.ea=String(Number(this.K)),e));var f,g;eR(this.o,HR(this.B,d,c,b!=null?b:null,this.H,(g=(f=this.l)==null?void 0:f.value)!=null?g:null,this.C))}};var JR=function(a,b,c){c=c===void 0?LQ:c;wR.call(this,1057,b);this.l=a;this.F=c;this.o=nR(this);this.B=nR(this)};t(JR,wR);
JR.prototype.j=function(){if(this.l)if(typeof this.l!=="object")SQ(46,"UNKNOWN_COLLECTOR_ID"),KR(this,"UNKNOWN_COLLECTOR_ID",112);else{var a=this.l.id,b=this.l.networkCode;a&&b&&(delete this.l.id,SQ(47,a+";"+b));a=b!=null?b:a;typeof a!=="string"?(b={},SQ(37,"INVALID_COLLECTOR_ID",null,(b.ii=JSON.stringify(a),b)),KR(this,"INVALID_COLLECTOR_ID",102)):typeof this.l.collectorFunction!=="function"?(SQ(14,a),KR(this,a,105)):this.F.Qj.includes(a)?(SQ(22,a),KR(this,a,104)):bR(this.B,this.l)}else SQ(39,"UNKNOWN_COLLECTOR_ID"),
KR(this,"UNKNOWN_COLLECTOR_ID",110)};var KR=function(a,b,c){a=a.o;b=$C(b).Qb(XC(c));bR(a,b)};var LR=function(a,b,c,d,e,f){var g=document;g=g===void 0?document:g;f=f===void 0?LQ:f;this.j=a;this.l=c;this.A=d;this.C=g;this.J=e;this.g=f;this.F=[];this.D=[];this.B=[];this.o=0;a=u(b);for(b=a.next();!b.done;b=a.next())this.push(b.value)};
LR.prototype.push=function(a){var b=this;this.A||this.J();var c=function(f,g){return void MR(b,f,g)};a=new JR(a,c,this.g);var d=new xR(a.o,this.l,null,c);c=new IR(this.j,a.B,this.A,this.l,null,c,this.g);var e=new sR(this.j,3);uR(e,[a,d,c]);vR(e);a=c.o.promise;this.F.push(a);d=u(this.D);for(c=d.next();!c.done;c=d.next())a.then(c.value)};LR.prototype.addOnSignalResolveCallback=function(a){this.D.push(a);for(var b=u(this.F),c=b.next();!c.done;c=b.next())c.value.then(a)};
LR.prototype.addErrorHandler=function(a){this.B.push(a)};
LR.prototype.clearAllCache=function(){var a=this,b=this.C.currentScript instanceof HTMLScriptElement?this.C.currentScript.src:"";if(this.o===1){var c={};SQ(49,"",null,(c.url=b,c))}else if(this.g.Hj.includes(String(El(b!=null?b:""))))c={},SQ(48,"",null,(c.url=b,c));else{var d=new sR(this.j,4);c=new yR(this.l,function(e,f){return void MR(a,e,f)});tR(d,c);vR(d);this.o=1;setTimeout(function(){a.o=0},this.g.Fj*1E3);d={};SQ(43,"",null,(d.url=b,d));return c.l.promise}};
var MR=function(a,b,c){a=u(a.B);for(var d=a.next();!d.done;d=a.next())d=d.value,d(b,c)},NR=function(a){this.push=function(b){a.push(b)};this.addOnSignalResolveCallback=function(b){a.addOnSignalResolveCallback(b)};this.addErrorHandler=function(b){a.addErrorHandler(b)};this.clearAllCache=function(){a.clearAllCache()}};function OR(a,b,c,d,e,f,g){g=g===void 0?LQ:g;Al()!==Bl()?SQ(16,""):PR(b,"encryptedSignalProviders",d,f)&&PR(b,"secureSignalProviders",d,f)||(SQ(38,""),QR(a,b,"encryptedSignalProviders",c,g,d,e,f),QR(a,b,"secureSignalProviders",c,g,d,function(){},f))}function PR(a,b,c,d){if(a[b]===void 0||a[b]instanceof Array)return!1;a=a[b];d&&a.addOnSignalResolveCallback(d);a.addErrorHandler(c);return!0}
function QR(a,b,c,d,e,f,g,h){var k;a=new LR(a,(k=b[c])!=null?k:[],d,c==="secureSignalProviders",g,e);b[c]=new NR(a);h&&a.addOnSignalResolveCallback(h);a.addErrorHandler(f)}function RR(a,b,c,d,e,f){f=f===void 0?new rR:f;var g=g===void 0?LQ:g;var h=new cR;bR(h,b);OR(f,a,h,c,d,e,g)}
function SR(a,b,c,d){var e=TR;var f=f===void 0?new rR:f;var g=new Map;b.map(function(h){var k=h.ne;return new Promise(function(l){g.set(k,l)})});RR(a,c,d,e,function(h){var k=h.collectorGeneratedData;h=h.id;var l;return void((l=g.get(h))==null?void 0:l({collectorGeneratedData:k,id:h}))},f)};function UR(){var a;return(a=A.googletag)!=null?a:A.googletag={cmd:[]}};function VR(a){if(au(a))return null;try{return window.localStorage}catch(b){return null}}function WR(a,b){(b=VR(b))&&a.length!==0&&SR(UR(),a,b,function(){})}function TR(){};function YR(a){var b="";a.forEach(function(c,d){D(c)||(c=encodeURIComponent(c),b+=d+"="+c+"&")});return b.slice(0,-1)};function ZR(a){var b;return(b=a.omidSessionInterface)!=null?b:null}
function $R(){var a=document.body,b,c,d,e,f,g;return y(function(h){if(h.g==1)return b=Mr("IFRAME",{style:"display: none",title:"Advertisement"}),c=new Promise(function(k){b.addEventListener("load",function(){k()})}),a.appendChild(b),x(h,c,2);d=Mr("SCRIPT");e=aS();Qk(d,e);f=new Promise(function(k,l){d.addEventListener("load",function(){var p=Rr(b);p&&ZR(p)?k(b):l()})});g=b.contentDocument||b.contentWindow.document;g.head.appendChild(d);return h.return(f)})}
function aS(){switch(L(bq).j(sr.g,sr.defaultValue)){case 0:return xP;case 1:return yP;case 2:return zP;case 3:return AP;default:return xP}};var bS=function(a){this.g=a||{cookie:""}};m=bS.prototype;
m.set=function(a,b,c){var d=!1;if(typeof c==="object"){var e=c.oi;d=c.rf||!1;var f=c.domain||void 0;var g=c.path||void 0;var h=c.Oe}if(/[;=\s]/.test(a))throw Error('Invalid cookie name "'+a+'"');if(/[;\r\n]/.test(b))throw Error('Invalid cookie value "'+b+'"');h===void 0&&(h=-1);this.g.cookie=a+"="+b+(f?";domain="+f:"")+(g?";path="+g:"")+(h<0?"":h==0?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(Date.now()+h*1E3)).toUTCString())+(d?";secure":"")+(e!=null?";samesite="+e:"")};
m.get=function(a,b){for(var c=a+"=",d=(this.g.cookie||"").split(";"),e=0,f;e=0;b--)this.remove(a[b])};
var cS=function(a){a=(a.g.cookie||"").split(";");for(var b=[],c=[],d,e,f=0;f0&&r.set("sdk_apis",lc.join(","));var sg;Nu(a.j||!((sg=a.Ma)==
null||!sg.zj))||r.set("wta","0");k.get("sid")||r.set("sid",c.Zk);var Ab=c.ga;Ab==null||au(l)||r.set("adsid",Ab);var nf;if(au(c.g))var Fd=null;else{var rb=VR(c.g),ad=new eD;SQ(56,"",null);if(rb){var ue=[],ve=RegExp("^_GESPSK-(.+)$");try{for(var we=0;we1024){var Id={};SQ(55,Dc.Gd,null,(Id.sl=String(Hd.length),Id));var ye=lb.Qb(XC(108));Bg(ye,2)}var tg=ad,Ec=lb,ug=ZC,qf=wd(tg.G);Sd(qf);var bi=Yg(tg,qf,ug,2,2,!0);Ec=Ec!=null?Ec:new ug;bi.push(Ec);vd(Ec.G)&2?ud(bi,8):ud(bi,16);var lo=eh(lb,2),kk=void 0,lk=void 0,vg={};SQ(19,Dc.Gd,null,(vg.hs=lo?"1":"0",vg.sl=String((lk=(kk=lo)==null?void 0:kk.length)!=null?lk:-1),vg))}}}}if(Zg(ad,ZC,2,Cg()).length){var mk={};SQ(50,"",null,(mk.ns=String(Zg(ad,ZC,2,
Cg()).length),mk));Fd=Oc(ad.g(),3)}else Fd=null}(nf=Fd)&&r.set("a3p",nf);var nk=c.Jh||{},ok=a.l;ok&&r.set("scar",ok);r.set("ssss","gima");var mo=Map,pk=[],no=pk.concat,rf=v(r),oo=v(nk),po=v(fS(a,c));var Bb=new Map;c.ca?Bb.set("attmas",c.ca):c.A!=null&&Bb.set("is_lat",c.A?"1":"0");if(!au(c.g)){if(Oo(tp)){var ci=new ft;sh(Mg(ci,3,kf(""),""),4,0);var sf=Oc(tb(Ph(ci)),3);Bb.set("psd",sf)}var wg=c.deviceId,tf=c.g;if(tf.j){var qk=Xt(tf,"tfcd");var rk=qk==="0"||qk==="false"?(0).toString():Rt(qk)?(1).toString():
""}else rk="";var di;if(!(di=rk===(1).toString())){if(tf.j){var ei=Xt(tf,"tfua");var fi=ei==="0"||ei==="false"?(0).toString():Rt(ei)?(1).toString():""}else fi="";di=fi===(1).toString()}var gi=di;var sk=wg&&wg!=="00000000-0000-0000-0000-000000000000"&&!gi;c.D&&Bb.set("idtype",c.D);wg&&!gi&&Bb.set("rdid",wg);var qo=c.de;if(qo&&!sk){Bb.set("paid",qo);var Fc=c.Pa;if(Fc){var ro=new Yu;Vu(ro,tb(Fc));var uf=ub(Wu(ro)).substring(0,32).toUpperCase();var so=uf.length===32?[uf.substring(0,8),uf.substring(8,
12),uf.substring(12,16),uf.substring(16,20),uf.substring(20)].join("-"):void 0;so&&Bb.set("vid1",so)}var to=c.zh,vu=!c.Fh;if(to&&(Bb.set("paid2",to),Bb.set("paopt",vu?"1":"0"),Fc)){var uo=new Yu;Vu(uo,tb(Fc));var ze=ub(Wu(uo)).substring(32).toUpperCase();var tk=ze.length===32?[ze.substring(0,8),ze.substring(8,12),ze.substring(12,16),ze.substring(16,20),ze.substring(20)].join("-"):void 0;tk&&Bb.set("vid2",tk)}}var uk=c.ma,vk=c.Da;uk&&vk&&!sk&&(Bb.set("pvid",uk),Bb.set("pvid_s",""+vk))}var wk=v(Bb),
vf=new Map;Nu(!0)||vf.set("wta","0");var sb=c.g,Cb=new Map,xk=Cb.set;if(sb.j){var vo=Xt(sb,"rdp");var yk=Rt(vo)?"1":""}else yk="";xk.call(Cb,"rdp",yk);Cb.set("us_privacy",Yt(sb));var wo=Cb.set,xo=Xt(sb,"npa"),zk=Rt(xo);wo.call(Cb,"npa",sb.j&&zk?"1":"");Cb.set("gdpr",Zt(sb));Cb.set("gdpr_consent",Ut(sb));var yo=Cb.set,Ak=Xt(sb,"addtl_consent");yo.call(Cb,"addtl_consent",sb.g.j||Ak||"");Cb.set("gpp",sb.g.gppString);Cb.set("gpp_sid",sb.g.o);Cb.set("ltd",$t(sb)?"1":"");St(Cb);var zo=Map,hi=[],Ao=hi.concat,
Bo=v(vf);var Ae=new Map;au(c.g)||(D(Ls.g)||Ae.set("adsid",Ls.g),D("")||Ae.set("pucrd",""),D("")||Ae.set("jar",""));var Co=new zo(Ao.call(hi,Bo,v(Ae),v(Cb)));var Bk=v(Co),Ck;var Do=(Ck=fS(a,c).get("url"))!=null?Ck:"",Dk=Oo(mp),Db=new Map;if(!Ls.isCookiesEnabled())Db.set("co","1");else if(c.U&&!au(c.g)){var mc=c.l,Eo=mc!=null&&!/[;\r\n]/.test(mc);Eo&&Db.set("cookie",mc);var Ek=c.B,Fo=Ek!=null&&!/[;\r\n]/.test(Ek);Dk&&Fo&&Db.set("gpic",Ek);if(!Eo||Dk&&!Fo)Db.set("cookie_enabled","1"),dS(Db,Do,c);var Fk=
c.K,wu=Fk!=null&&!/[;\r\n]/.test(Fk);Dk&&wu&&Db.set("pdopt",Fk)}var xu=v(Db),Go,Ho=(Go=fS(a,c).get("url"))!=null?Go:"",xg=new Map,ii=c.C;ii==null||/[;\r\n]/.test(ii)?c.H&&(xg.set("eoidce","1"),dS(xg,Ho,c)):xg.set("eo_id_str",ii);e=new mo(no.call(pk,rf,oo,po,wk,Bk,xu,v(xg)));var Io=d.get("ctv",""),ji={};UM.getInstance().report(197,(ji.pctv=Io,ji));return x(g,gS(a,e,b),2)}f=g.j;return g.return(new Map([].concat(v(d),v(f),v(e))))})}
function gS(a,b,c){var d,e,f,g;return y(function(h){switch(h.g){case 1:d=new Map;e=lN;d.set(e.Hi,a.apiKey);d.set(e.Mi,a.authToken);d.set(e.tj,a.streamActivityMonitorId);!D(a.assetKey)||GO(a)?d.set(e.ph,"0"):Lu(a)&&d.set(e.ph,"1");if(!a.enableNonce){h.g=2;break}h.l=3;f=YR(b);return x(h,c.encrypt(f),5);case 5:g=h.j;d.set(e.aj,g);ya(h,2);break;case 3:za(h);case 2:return h.return(d)}})}
function fS(a,b){var c=a.adTagParameters||{},d;a=(d=c.page_url)!=null?d:"";var e;d=(e=c.description_url)!=null?e:"";e=$F(a)?a:d;e=new Xr(e);d=new Xr(b.F);c=new Xr(b.j);var f="unknown";ls(c,d)?f="flat":ls(e,d)?f="bottom":ls(e,c)&&(f="top");UM.getInstance().report(160,{contentLocation:f});e=new Map;d=b.referrer;D(Zk(d))||e.set("ref",d);if($F(a)){e.set("url",a);var g;e.set("top",(g=b.j)!=null?g:"");e.set("loc",b.F)}else g=e.set,b=b.j&&$F(b.j)?b.j:b.referrer&&$F(b.referrer)?b.referrer:"null",g.call(e,
"url",b);return e}function hS(a,b,c){var d,e;return y(function(f){if(f.g==1)return x(f,eS(a,b,c),2);d=f.j;e=new Xr;d.forEach(function(g,h){D(g)||ks(e,h,g)});return f.return(e.g.toString())})};var iS=function(){this.g=[];this.j=[]};m=iS.prototype;m.isEmpty=function(){return this.g.length===0&&this.j.length===0};m.clear=function(){this.g=[];this.j=[]};m.contains=function(a){return kc(this.g,a)||kc(this.j,a)};m.remove=function(a){var b=this.g;var c=$b(b,a);c>=0?(oc(b,c),b=!0):b=!1;return b||nc(this.j,a)};m.Wc=function(){for(var a=[],b=this.g.length-1;b>=0;--b)a.push(this.g[b]);b=this.j.length;for(var c=0;c=0;c--){var d=b[c];if(uN(d)3)c=[String(Math.floor(a))];else{c=[];for(var d=Math.floor(b);d<=Math.floor(a);d++)c.push(String(d))}c=u(c);for(d=c.next();!d.done;d=c.next())zS(this,d.value);try{a-=b,1<=a&&a<3&&UM.getInstance().report(146,{n:"0",ctv:Mu()?"1":"0"},!0)}catch(e){}AS(this);nO(this.controller)}};
var zS=function(a,b){var c,d=((c=a.g)==null?void 0:(c.data.times||{})[b]||[])||[];d.length===0||a.B.has(b)||(a.B.add(b),d.forEach(function(e){var f=Zk(e.type),g=e.ad||"",h=e.url||"";e=e.event_uris||[];D(g)?D(h)||f.toLowerCase()!=="start"&&f.toLowerCase()!=="complete"||dI([h]):a.handleEvent(b,f,g,e)}))},AS=function(a){a.controller.l&&!a.l.some(function(b){return b.contains(a.controller.o)})&&(ZN(a.controller),aO(a.controller))};m=xS.prototype;m.Pd=function(){this.controller.H=!0};m.Jc=function(){this.controller.Jc(this.j.getVolume())};
m.Ic=function(){this.controller.Ic()};m.Kc=function(a){this.controller.Kc(a)};m.fd=function(){};m.getVolume=function(){return this.controller.getVolume()};m.ac=function(){return this.j.ac()};
m.handleEvent=function(a,b,c,d){d=d===void 0?[]:d;switch(b.toLowerCase()){case "start":(b=iO(this.controller,c))&&this.g&&(this.j.wf(),this.o=IQ(this.controller.g,b,this.j),JQ(this,this,this.controller,this.A,b,this.D),this.g.getAdPosition(this.controller.j)===1&&BS(this,a),oO(this.controller),kO(b));break;case "firstquartile":fO(this.controller,"firstQuartile",c);break;case "midpoint":fO(this.controller,"midpoint",c);break;case "thirdquartile":fO(this.controller,"thirdQuartile",c);break;case "complete":eO(this.controller,
c);it(this.o);this.o=null;this.j.qc();break;case "vastprogress":gO(this.controller,c,d)}};var yS=function(a){var b={};b=(b.cuepoints=a.l.map(function(c){return wN(c)}),b);a.dispatchEvent(new ON("cuepointsChanged",b))},BS=function(a,b){$N(a.controller);a.l.forEach(function(c){Math.floor(uN(c))!==Number(b)||c.played||(c.played=!0,yS(a))})};var CS=function(a,b){uB.call(this,a);this.data=b||{}};t(CS,uB);function DS(a,b,c,d){var e=new bv,f="",g=function(k){try{var l=typeof k.data==="object"?k.data:JSON.parse(k.data);f===l.paw_id&&(Fj(a,"message",g),l.error?e.reject(Error(l.error)):e.resolve(d(l)))}catch(p){}},h=ES(a);return h?(Ej(a,"message",g),f=c(h),e.promise):(c=FS(a))?(f=String(Math.floor(Cl()*2147483647)),Ej(a,"message",g),b(c,f),e.promise):null}
function GS(a){return DS(a,function(b,c){var d,e;return void((d=(e=b.getGmaQueryInfo)!=null?e:b.getGmaSig)==null?void 0:d.postMessage(c))},function(b){return b.getQueryInfo()},function(b){return b.signal})}function HS(){var a=window;return!!ES(a)||!!FS(a)}function ES(a){var b;if(typeof((b=a.gmaSdk)==null?void 0:b.getQueryInfo)==="function")return a.gmaSdk}
function FS(a){var b,c,d,e,f,g;if(typeof((b=a.webkit)==null?void 0:(c=b.messageHandlers)==null?void 0:(d=c.getGmaQueryInfo)==null?void 0:d.postMessage)==="function"||typeof((e=a.webkit)==null?void 0:(f=e.messageHandlers)==null?void 0:(g=f.getGmaSig)==null?void 0:g.postMessage)==="function")return a.webkit.messageHandlers}
(function(a){return Xd(function(b){if(!ae(b))return!1;for(var c=u(Object.entries(a)),d=c.next();!d.done;d=c.next()){var e=u(d.value);d=e.next().value;e=e.next().value;if(!(d in b)){if(e.sk===!0)continue;return!1}if(!e(b[d]))return!1}return!0})})({vc:Zd,pn:Zd,eid:be(),vnm:be(),js:Zd},"RawGmaSdkStaticSignalObject");var IS=function(){this.timeoutMs=500;this.j=GS;this.signal=null;this.g=0},JS=function(a){if(Oo(np)||!HS())return Promise.resolve(null);var b;return((b=a.j(window))!=null?b:Promise.resolve(null)).catch(function(){return"0"})},LS=function(a){var b;return y(function(c){if(c.g==1)return b=Date.now()-a.g,!a.signal||b>3E5?c=x(c,KS(a),3):(c.g=2,c=void 0),c;c.g!=2&&(a.signal=c.j,a.g=Date.now());return c.return(a.signal)})},KS=function(a){return Promise.race([JS(a).then(function(b){if(b==null)return null;
a.signal=b.length>1E4?"0":b;a.g=Date.now();return a.signal}),AC(a.timeoutMs,"0")])};function MS(a,b,c){var d,e,f;a=((f=(d=H(a,TC,2))==null?void 0:(e=Zg(d,SC,1,Cg()))==null?void 0:e.map(function(g){return kh(g,1)}))!=null?f:[]).some(function(g){return g===b});UM.getInstance().report(190,{fm:a,fl:c})};/*
Copyright 2020 Google LLC
SPDX-License-Identifier: Apache-2.0
*/
var W=function(a){a=Error.call(this,a);this.message=a.message;"stack"in a&&(this.stack=a.stack);Object.setPrototypeOf(this,W.prototype)};t(W,Error);W.prototype.name="SecurityException";var NS=function(a){this.G=G(a)};t(NS,J);var OS=function(a){this.G=G(a)};t(OS,J);OS.prototype.getVersion=function(){return hh(this,1)};var PS=function(a){this.G=G(a)};t(PS,J);var QS=function(a){this.G=G(a)};t(QS,J);QS.prototype.getVersion=function(){return hh(this,1)};var RS=function(a){this.G=G(a)};t(RS,J);RS.prototype.getVersion=function(){return hh(this,1)};var SS=[0,nj];var TS=[0,qj,nj];var US=rj(RS,[0,nj,[0,nj,SS,lj],[0,nj,TS,lj]]);var VS=function(a){this.G=G(a)};t(VS,J);var WS=function(a){this.G=G(a)};t(WS,J);WS.prototype.getVersion=function(){return hh(this,3)};var XS=function(a){this.G=G(a)};t(XS,J);var YS=rj(XS,[0,[0,SS,nj],[0,TS,nj,-1]]);var bT=function(a){this.G=G(a)};t(bT,J);bT.prototype.getVersion=function(){return hh(this,1)};var cT=rj(bT,[0,nj,1,lj]);var dT=function(a){this.G=G(a)};t(dT,J);dT.prototype.getVersion=function(){return hh(this,3)};var eT=rj(dT,[0,1,nj,-1]);var fT=function(a){this.G=G(a)};t(fT,J);fT.prototype.getValue=function(){return Jg(this,2)};var gT=function(a){this.G=G(a)};t(gT,J);var hT=[0,1,[0,hj,lj,qj]];var iT=function(a){this.G=G(a)};t(iT,J);var jT=[0,qj,-1,8,lj];var kT=function(a){this.G=G(a)};t(kT,J);var lT=[0,jT,hT,qj];var mT=function(a){this.G=G(a)};t(mT,J);var nT=rj(mT,[0,lT]);var oT=function(a){this.G=G(a)};t(oT,J);oT.prototype.getVersion=function(){return hh(this,1)};var pT=[0,nj,lT,lj,-1];var qT=function(a){this.G=G(a)};t(qT,J);qT.prototype.getVersion=function(){return hh(this,1)};var rT=rj(qT,[0,nj,pT,lj]);var sT=rj(oT,pT);var tT=function(a){this.G=G(a)};t(tT,J);tT.prototype.Bc=function(){return I(this,3)};var uT=[0,qj,-2];var vT=function(a){this.G=G(a)};t(vT,J);var wT=[0,uT];vT.prototype.g=sj(wT);var xT=rj(vT,wT);var yT=function(a){this.G=G(a)};t(yT,J);yT.prototype.getVersion=function(){return hh(this,1)};var zT=[0,nj,uT,lj];var AT=function(a){this.G=G(a)};t(AT,J);AT.prototype.getVersion=function(){return hh(this,1)};var BT=rj(AT,[0,nj,zT,lj]);var CT=rj(yT,zT);var DT=function(a){this.G=G(a)};t(DT,J);DT.prototype.getValue=function(){return Jg(this,2)};var ET=[0,hj,lj,qj];var FT=function(a){this.G=G(a)};t(FT,J);var GT=[0,ET,qj,nj,qj];var HT=function(a){this.G=G(a)};t(HT,J);var IT=function(a){return Zg(a,FT,2,Cg())};var JT=rj(HT,[0,nj,jj,GT]);var KT=function(a){this.g=a};KT.prototype.read=function(){try{var a=JT(this.g)}catch(b){throw new W("Could not parse the given serialized proto as a keyset proto.");}if(IT(a).length===0)throw new W("Could not parse the given serialized proto as a keyset proto.");return a};var X=function(a){a=Error.call(this,a);this.message=a.message;"stack"in a&&(this.stack=a.stack);Object.setPrototypeOf(this,X.prototype)};t(X,Error);X.prototype.name="InvalidArgumentsException";var LT=function(a,b){b=[b];var c=b.concat;if(!Number.isInteger(a)||a<0||a>=4294967296)throw new X("Number has to be unsigned 32-bit integer.");for(var d=Array(4),e=0;e<4;e++)d[e]=255&a>>8*(4-e-1);b=c.call(b,d);return new Uint8Array(b)},MT=new Uint8Array(0);var NT=function(a,b,c){this.l=a;this.g=b;this.j=c};NT.prototype.Ua=function(){return this.l};var OT=function(a){this.l=a;this.j=null;this.g=new Map};OT.prototype.Ca=function(){return this.l};var QT=function(a,b){return(a=PT(a,b))?a:[]},PT=function(a,b){b instanceof Uint8Array&&(b=[].concat(v(b)).toString());return a.g.get(b)};/*
Copyright 2022 Google LLC
SPDX-License-Identifier: Apache-2.0
*/
function RT(a){return a==null?void 0:new Uint8Array(gd(a)||0)}function ST(a){a==null?a=void 0:a=(a=gd(a))?a.length:0;return a};function TT(){for(var a=0,b=0;bNumber.MAX_SAFE_INTEGER)throw new X("cannot convert number larger than "+Number.MAX_SAFE_INTEGER);var b=a%4294967296;a/=4294967296;for(var c=new Uint8Array(8),d=7;d>=4;d--)c[d]=b&255,b>>>=8;for(b=3;b>=0;b--)c[b]=a&255,a>>>=8;return c}function VT(a){for(var b="",c=0;c1?d:"0"+d}return b}
function WT(a){a=a.replace(/-/g,"+").replace(/_/g,"/");return XT(globalThis.atob(a))}function YT(a){for(var b="",c=0;ca&&(c=c.slice(c.length-a,c.length));b.length>a&&(b=b.slice(b.length-a,b.length));d=new Uint8Array(2*
a);d.set(c,0);d.set(b,a);return d;case 2:b=c.x;d=c.y;if(b===void 0)throw new X("x must be provided");if(d===void 0)throw new X("y must be provided");c=WT(b);b=WT(d);c.length>a&&(c=c.slice(c.length-a,c.length));b.length>a&&(b=b.slice(b.length-a,b.length));d=new Uint8Array(1+a);d.set(c,1+a-c.length);d[0]=cU(BigInt("0x"+VT(b)),0)?3:2;return d;default:throw new W("invalid format");}}
function dU(a){switch(a){case 1:return BigInt("115792089210356248762697446949407573530086143415290314195533631308867097853951");case 2:return BigInt("39402006196394479212279040100143613805079739270465446667948293404245721771496870329047266088258938001861606973112319");case 3:return BigInt("6864797660130609714981900799081393217269435300143305409394463459185543183397656052122559640661454554977296311391480858037121987999716643812574028291115057151");default:throw new X("invalid curve");}}
function eU(a){a=a.toString(16);a=a.length%2===0?a:"0"+a;if(a.length%2!=0)throw new X("Hex string length must be multiple of 2");for(var b=new Uint8Array(a.length/2),c=0;c=d)throw new W("x is out of range");d=dU($T(a));var e=d-BigInt(3);a:switch($T(a)){case 1:var f=BigInt("0x5ac635d8aa3a93e7b3ebbd55769886bc651d06b0cc53b0f63bce3c3e27d2604b");break a;case 2:f=BigInt("0xb3312fa7e23ee7e4988e056be3f82d19181d9c6efe8141120314088f5013875ac656398d8a2ed19d2a85c8edd3ec2aef");break a;case 3:f=BigInt("0x051953eb9618e1c9a1f929a21a0b68540eea2da725b99b315f3b8b489918ef109e156193951ec7e937b1652c0bd3bb1bf073573df883d2c34f1ef451fd46b503f00");
break a;default:throw new X("invalid curve");}if(d<=BigInt(0))throw new X("p must be positive");e=((c*c+e)*c+f)%d%d;if(cU(d,0)&&cU(d,1)){var g=d+BigInt(1)>>BigInt(2);if(g===BigInt(0))f=BigInt(1);else{f=e;g=g.toString(2);for(var h=1;hb){for(var d=0;db)throw new W("Version is out of bound, must be between 0 and "+b+".");};var EU=function(a,b){this.key=a;this.dc=b};EU.prototype.encrypt=function(a){var b=this,c,d,e,f;return y(function(g){if(g.g==1)return CU(a),c=wU(b.dc),d=new Uint8Array(16),d.set(c),e={name:"AES-CTR",counter:d,length:128},x(g,globalThis.crypto.subtle.encrypt(e,b.key,a),2);f=g.j;return g.return(TT(c,new Uint8Array(f)))})};
EU.prototype.decrypt=function(a){var b=this,c,d,e;return y(function(f){if(f.g==1){CU(a);if(a.length16)throw new W("invalid IV length, must be at least 12 and at most 16");CU(a);BU(a.length);return x(d,globalThis.crypto.subtle.importKey("raw",a,{name:"AES-CTR",length:a.length},!1,["encrypt","decrypt"]),2)}c=d.j;return d.return(new EU(c,b))})};var GU=function(){};var HU=function(a,b,c){this.hash=a;this.key=b;this.rc=c};t(HU,GU);var IU=function(a,b){var c;return y(function(d){if(d.g==1)return CU(b),x(d,globalThis.crypto.subtle.sign({name:"HMAC",hash:{name:a.hash}},a.key,b),2);c=d.j;return d.return(new Uint8Array(c.slice(0,a.rc)))})},JU=function(a,b,c){var d;return y(function(e){if(e.g==1)return CU(b),CU(c),x(e,IU(a,c),2);d=e.j;if(b.length!==d.length)var f=!1;else{for(var g=f=0;g20)throw new X("tag too long, must not be larger than 20 bytes");break;case "SHA-256":if(c>32)throw new X("tag too long, must not be larger than 32 bytes");break;case "SHA-384":if(c>48)throw new X("tag too long, must not be larger than 48 bytes");break;
case "SHA-512":if(c>64)throw new X("tag too long, must not be larger than 64 bytes");break;default:throw new X(a+" is not supported");}return x(e,globalThis.crypto.subtle.importKey("raw",b,{name:"HMAC",hash:{name:a},length:b.length*8},!1,["sign","verify"]),2)}d=e.j;return e.return(new HU(a,d,c))})};var LU=function(a,b,c,d){this.g=a;this.dc=b;this.j=c;this.rc=d};t(LU,zU);LU.prototype.encrypt=function(a,b){b=b===void 0?new Uint8Array(0):b;var c=this,d,e,f;return y(function(g){if(g.g==1)return CU(a),x(g,c.g.encrypt(a),2);if(g.g!=3)return d=g.j,CU(b),e=UT(b.length*8),x(g,IU(c.j,TT(b,d,e)),3);f=g.j;if(c.rc!=f.length)throw new W("invalid tag size, expected "+c.rc+" but got "+f.length);return g.return(TT(d,f))})};
LU.prototype.decrypt=function(a,b){b=b===void 0?new Uint8Array(0):b;var c=this,d,e,f,g,h;return y(function(k){if(k.g==1){CU(a);if(a.length16)throw new W("Invalid AES CTR HMAC key format: IV size is out of range: "+c);return{Bj:a,ae:b,dc:c}},PU=function(a){if(!a)throw new W("Invalid AES CTR HMAC key format: key format undefined");var b=hh(a,2);if(b<16)throw new W("Invalid AES CTR HMAC key format: HMAC key is too small: "+
hh(a,2));a=H(a,PS,1);if(!a)throw new W("Invalid AES CTR HMAC key format: params undefined");var c=hh(a,2);if(c<10)throw new W("Invalid HMAC params: tag size "+c+" is too small.");if(!QU.has(I(a,1)))throw new W("Unknown hash type.");if(c>QU.get(I(a,1)))throw new W("Invalid HMAC params: tag size "+c+" is out of range.");switch(I(a,1)){case 1:var d="SHA-1";break;case 3:d="SHA-256";break;case 4:d="SHA-512";break;default:d="UNKNOWN HASH"}return{lk:a,kk:b,jk:d,rc:c}},QU=new Map([[1,20],[3,32],[4,64]]),
RU=function(){this.g=new NU};m=RU.prototype;
m.Ua=function(a,b){var c,d,e,f,g,h=this,k,l,p,n,q,r;return y(function(w){if(w.g==1){if(a!=h.Ca())throw new W("Requested primitive type which is not supported by this key manager.");if(b instanceof DT){if(!h.Tc(kh(b,1)))throw new W("Key type "+kh(b,1)+" is not supported. This key manager supports "+h.Fa()+".");try{k=US(b.getValue())}catch(da){throw new W("Could not parse the key in key data as a serialized proto of type.googleapis.com/google.crypto.tink.AesCtrHmacAeadKey");}if(k===null||k===void 0)throw new W("Could not parse the key in key data as a serialized proto of type.googleapis.com/google.crypto.tink.AesCtrHmacAeadKey");
}else if(b instanceof RS)k=b;else throw new W("Given key type is not supported. This key manager supports "+h.Fa()+".");var z=H(k,OS,2);if(!z)throw new W("Invalid AES CTR HMAC key format: key undefined");DU(z.getVersion(),h.getVersion());var B=new VS;var E=H(z,NS,2);B=$g(B,1,E);E=ST(Jg(z,3));B=oh(B,2,E);B=OU(B).dc;f=RT(Jg(z,3));g=B;l=f;p=g;z=H(k,QS,3);if(!z)throw new W("Invalid AES CTR HMAC key format: key undefined");DU(z.getVersion(),h.getVersion());B=new WS;E=H(z,PS,2);B=$g(B,1,E);E=ST(Jg(z,3));
B=oh(B,2,E);E=PU(B);B=E.jk;E=E.rc;c=RT(Jg(z,3));d=B;e=E;n=c;q=d;r=e;return x(w,MU(l,p,q,n,r),2)}return w.return(w.j)})};m.Tc=function(a){return a===this.Fa()};m.Fa=function(){return"type.googleapis.com/google.crypto.tink.AesCtrHmacAeadKey"};m.Ca=function(){return zU};m.getVersion=function(){return 0};m.Vc=function(){return this.g};var SU=function(a){var b=a.key;a=a.Lb;this.key=b;this.Lb=a};SU.prototype.encrypt=function(a,b,c){var d=this,e,f;return y(function(g){if(g.g==1){if(a.length!==12)throw new W("IV must be 12 bytes");e={name:"AES-GCM",iv:a,tagLength:128};c&&(e.additionalData=c);return x(g,globalThis.crypto.subtle.encrypt(e,d.key,b),2)}f=g.j;return g.return(d.Lb?TT(a,new Uint8Array(f)):new Uint8Array(f))})};
SU.prototype.decrypt=function(a,b,c){var d=this,e,f,g,h,k;return y(function(l){if(l.g==1){e=d.Lb?28:16;if(b.length5)){k.g=2;break}d=a.subarray(0,5);return x(k,QT(c.g,d),3);case 3:return e=k.j,f=a.subarray(5,a.length),k.l=4,x(k,$U(e,f,b),6);case 6:g=k.j;ya(k,5);break;case 4:za(k);case 5:if(g)return k.return(g);case 2:return x(k,QT(c.g,MT),7);case 7:return h=k.j,k.return($U(h,a,b))}})};
var $U=function(a,b,c){var d,e,f,g;return y(function(h){switch(h.g){case 1:d=a.length,e=0;case 2:if(!(e5100)throw new X("size too large");break;case "SHA-256":f=32;if(a>8160)throw new X("size too large");break;case "SHA-512":f=64;if(a>16320)throw new X("size too large");break;default:throw new X(b+" is not supported");}CU(c);CU(d);g=e;if(e==null||g===void 0||g.length==0)g=new Uint8Array(f);
CU(g);return x(w,KU(b,g,f),2);case 2:return h=w.j,x(w,IU(h,c),3);case 3:return k=w.j,x(w,KU(b,k,f),4);case 4:h=w.j,l=1,p=0,n=new Uint8Array(0),q=new Uint8Array(a);case 5:return r=new Uint8Array(n.length+d.length+1),r.set(n,0),r.set(d,n.length),r[r.length-1]=l,x(w,IU(h,r),8);case 8:n=w.j;if(p+n.length>8*(a-d-1)&255;return c}function GV(a){var b=a.Zb;var c=a.Yb;return TT(FV,a.Oa,XT(b),c)}function HV(a){var b=a.Cc;var c=a.info;var d=a.Oa;return TT(vV(2,a.length),FV,d,XT(b),c)}function IV(a){switch(a){case 2:return 1;case 4:return 3;default:throw new X("Unrecognized NIST HPKE KEM identifier");}}
function JV(a,b){var c;return y(function(d){return d.g==1?(c=fU(a,1,b),x(d,jU(c),2)):d.return(d.j)})}function KV(a){var b=a.bg;var c=a.publicKey;var d=a.privateKey;var e;return y(function(f){return f.g==1?(e=fU(b,1,c),e.d=YT(d),x(f,kU(e),2)):f.return(f.j)})}function LV(a){var b,c;return y(function(d){if(d.g==1)return b=a.algorithm,x(d,iU(a),2);c=d.j;if(!c.crv)throw new W("Curve has to be defined.");return d.return(aU(b.namedCurve,1,c))})};var MV=function(a,b,c,d){this.hg=a;this.key=b;this.l=c;this.j=d;this.g=BigInt(0);this.o=(BigInt(1)<>BigInt(8*(12-d-1)))&255;b=a.l;if(b.length!==c.length)throw new X("Both byte arrays should be of the same length");d=new Uint8Array(b.length);for(var e=0;e=a.o)throw new W("message limit reached");a.g+=BigInt(1);return d};
function OV(a,b,c,d,e,f){var g,h,k,l,p,n,q;return y(function(r){switch(r.g){case 1:a:{switch(e.He){case 16:var w=BV;break a;case 32:w=CV;break a}w=void 0}a:{switch(d.Ce){case "SHA-256":var z=zV;break a;case "SHA-512":z=AV;break a}z=void 0}g=TT(EV,PV(c),z,w);return x(r,QV(d,{Yb:new Uint8Array(0),Zb:"psk_id_hash",Oa:g}),2);case 2:return h=r.j,x(r,QV(d,{Yb:f,Zb:"info_hash",Oa:g}),3);case 3:return k=r.j,l=TT(wV,h,k),x(r,QV(d,{Yb:new Uint8Array(0),Zb:"secret",Oa:g,salt:b}),4);case 4:return p=r.j,x(r,RV(d,
{gi:p,info:l,Cc:"key",Oa:g,length:e.He}),5);case 5:return n=r.j,x(r,RV(d,{gi:p,info:l,Cc:"base_nonce",Oa:g,length:12}),6);case 6:return q=r.j,r.return(new MV(a,n,q,e))}})}function SV(a,b,c,d,e){var f,g,h;return y(function(k){return k.g==1?x(k,b.gg(a),2):k.g!=3?(f=k.j,g=f.hg,h=f.ml,x(k,OV(g,h,b,c,d,e),3)):k.return(k.j)})}function TV(a,b,c,d,e,f){var g;return y(function(h){return h.g==1?x(h,c.cg(a,b),2):h.g!=3?(g=h.j,x(h,OV(a,g,c,d,e,f),3)):h.return(h.j)})};var UV=function(a,b){this.privateKey=a;this.publicKey=b},VV=function(a){return y(function(b){return b.g==1?x(b,LV(a.publicKey),2):b.return(b.j)})};function WV(a){var b=a.privateKey;var c=a.publicKey;var d=a.bg;var e,f;return y(function(g){if(g.g==1){if(!b)throw new X("KEM private key was null or undefined");if(!c)throw new X("KEM public key was null or undefined");return x(g,JV(ZT(d),c),2)}if(g.g!=3)return e=g.j,x(g,KV({bg:ZT(d),publicKey:c,privateKey:b}),3);f=g.j;return g.return(new UV(f,e))})}
function XV(a){return y(function(b){YV(a.privateKey,"private");YV(a.publicKey,"public");return b.return(new UV(a.privateKey,a.publicKey))})}function YV(a,b){if(b!==a.type)throw new X("keyPair "+b+" key was of type "+a.type);a=a.algorithm;if("ECDH"!==a.name)throw new X("keyPair "+b+" key should be ECDH but found "+a.name);};var ZV=function(a){this.He=a};ZV.prototype.seal=function(a){var b=a.key;var c=a.nonce;var d=a.Xk;var e=a.Mf;var f=this,g;return y(function(h){if(h.g==1){if(b.length!==f.He)throw new W("Unexpected key length: "+b.length.toString());return x(h,TU({key:b,Lb:!1}),2)}return h.g!=3?(g=h.j,x(h,g.encrypt(c,d,e),3)):h.return(h.j)})};
ZV.prototype.open=function(a){var b=a.key;var c=a.nonce;var d=a.Gj;var e=a.Mf;var f=this,g;return y(function(h){if(h.g==1){if(b.length!==f.He)throw new W("Unexpected key length: "+b.length.toString());return x(h,TU({key:b,Lb:!1}),2)}g=h.j;return h.return(g.decrypt(c,d,e))})};var $V=function(a){this.Ce=a},QV=function(a,b){var c=b.Yb;var d=b.Zb;var e=b.Oa;var f=b.salt;return y(function(g){return g.g==1?x(g,aW(a,GV({Zb:d,Yb:c,Oa:e}),f),2):g.return(g.j)})},RV=function(a,b){var c=b.gi;var d=b.info;var e=b.Cc;var f=b.Oa;var g=b.length;return y(function(h){return h.g==1?x(h,a.expand(c,HV({Cc:e,info:d,Oa:f,length:g}),g),2):h.return(h.j)})},bW=function(a,b){var c=b.Yb;var d=b.Zb;var e=b.info;var f=b.Cc;var g=b.Oa;var h=b.length;var k=b.salt;var l;return y(function(p){return p.g==
1?x(p,aW(a,GV({Zb:d,Yb:c,Oa:g}),k),2):p.g!=3?(l=p.j,x(p,a.expand(l,HV({Cc:f,info:e,Oa:g,length:h}),h),3)):p.return(p.j)})};
$V.prototype.expand=function(a,b,c){var d=this,e,f,g,h,k,l,p;return y(function(n){switch(n.g){case 1:if(!Number.isInteger(c))throw new W("length must be an integer");if(c<=0)throw new W("length must be positive");e=cW(d);if(c>255*e)throw new W("length too large");CU(b);return x(n,KU(d.Ce,a,e),2);case 2:f=n.j,g=1,h=0,k=new Uint8Array(0),l=new Uint8Array(c);case 3:return p=new Uint8Array(k.length+b.length+1),p.set(k,0),p.set(b,k.length),p[p.length-1]=g,x(n,IU(f,p),6);case 6:k=n.j;if(h+k.length0?!1:!ZL(a)&&!(a instanceof bF&&MM(a));this.disableUi=b};m=Y.prototype;m.getTraffickingParametersString=function(){return this.ad.sa};
m.getAdId=function(){return this.ad.getId()||""};m.getCreativeId=function(){return this.ad.getCreativeId()||""};m.getCreativeAdId=function(){return this.ad.getCreativeAdId()||""};m.getAdSystem=function(){return this.ad.getAdSystem()||""};m.getAdvertiserName=function(){return this.ad.getAdvertiserName()||""};m.getTitle=function(){return this.ad.yb||""};m.getDescription=function(){return this.ad.getDescription()||""};m.getApiFramework=function(){return this.ad.getApiFramework()};
m.getDuration=function(){return(this.ad.na||0)/1E3||-1};m.getVastMediaWidth=function(){var a=cF(this.ad);return a?a.getWidth()||-1:-1};m.getVastMediaHeight=function(){var a=cF(this.ad);return a?a.getHeight()||-1:-1};m.getWrapperAdIds=function(){return this.ad.getWrapperAdIds()||[]};m.getWrapperCreativeIds=function(){return this.ad.getWrapperCreativeIds()||[]};m.getWrapperAdSystems=function(){return this.ad.getWrapperAdSystems()||[]};m.getUniversalAdIds=function(){return this.ad.getUniversalAdIds().map(function(a){return new LW(a)})};
m.getUniversalAdIdValue=function(){var a=this.getUniversalAdIds();return a.length?a[0].getAdIdValue():"unknown"};m.getUniversalAdIdRegistry=function(){var a=this.getUniversalAdIds();return a.length?a[0].getAdIdRegistry():"unknown"};m.getDealId=function(){return this.ad.getDealId()||""};m.getAdPodInfo=function(){return this.ia};m.getCompanionAds=function(){return this.ad.getCompanionAds().map(function(a){return new JW(a)})};m.isSkippable=function(){return this.ad.isSkippable()};
m.getSkipTimeOffset=function(){return this.isSkippable()?(this.ad.qa||0)/1E3:-1};m.uk=function(){return this.disableUi};Y.prototype.isUiDisabled=Y.prototype.uk;Y.prototype.getSkipTimeOffset=Y.prototype.getSkipTimeOffset;Y.prototype.isSkippable=Y.prototype.isSkippable;Y.prototype.getCompanionAds=Y.prototype.getCompanionAds;Y.prototype.getAdPodInfo=Y.prototype.getAdPodInfo;Y.prototype.getDealId=Y.prototype.getDealId;Y.prototype.getUniversalAdIdRegistry=Y.prototype.getUniversalAdIdRegistry;
Y.prototype.getUniversalAdIdValue=Y.prototype.getUniversalAdIdValue;Y.prototype.getUniversalAdIds=Y.prototype.getUniversalAdIds;Y.prototype.getWrapperAdSystems=Y.prototype.getWrapperAdSystems;Y.prototype.getWrapperCreativeIds=Y.prototype.getWrapperCreativeIds;Y.prototype.getWrapperAdIds=Y.prototype.getWrapperAdIds;Y.prototype.getVastMediaHeight=Y.prototype.getVastMediaHeight;Y.prototype.getVastMediaWidth=Y.prototype.getVastMediaWidth;Y.prototype.getDuration=Y.prototype.getDuration;
Y.prototype.getApiFramework=Y.prototype.getApiFramework;Y.prototype.getDescription=Y.prototype.getDescription;Y.prototype.getTitle=Y.prototype.getTitle;Y.prototype.getAdvertiserName=Y.prototype.getAdvertiserName;Y.prototype.getAdSystem=Y.prototype.getAdSystem;Y.prototype.getCreativeAdId=Y.prototype.getCreativeAdId;Y.prototype.getCreativeId=Y.prototype.getCreativeId;Y.prototype.getAdId=Y.prototype.getAdId;C("google.ima.dai.api.Ad",Y);var MW=function(a){this.adBreakDuration=a.adBreakDuration;this.adPeriodDuration=a.adPeriodDuration;this.adPosition=a.adPosition;this.currentTime=a.currentTime;this.duration=a.duration;this.totalAds=a.totalAds};C("google.ima.dai.api.AdProgressData",MW);var NW=function(a){this.start=a.start;this.end=a.end;this.played=a.played};C("google.ima.dai.api.CuePoint",NW);var OW=function(){};OW.prototype.setFeatureFlags=function(a){Ls.setFeatureFlags(a)};OW.prototype.getFeatureFlags=function(){return Ls.getFeatureFlags()};OW.prototype.getFeatureFlags=OW.prototype.getFeatureFlags;OW.prototype.setFeatureFlags=OW.prototype.setFeatureFlags;C("google.ima.dai.api.DaiSdkSettings",new OW);C("google.ima.dai.api.OmidVerificationVendor",{COMSCORE:7,DOUBLEVERIFY:3,GOOGLE:9,INTEGRAL_AD_SCIENCE:4,MEETRICS:8,MOAT:2,NIELSEN:6,PIXELATE:5,OTHER:1,7:"COMSCORE",3:"DOUBLEVERIFY",9:"GOOGLE",4:"INTEGRAL_AD_SCIENCE",8:"MEETRICS",2:"MOAT",6:"NIELSEN",5:"PIXELATE",1:"OTHER"});var PW=function(a){var b=a=a===void 0?{}:a;a=b.apiKey;var c=b.authToken,d=b.format,e=b.networkCode,f=b.streamActivityMonitorId,g=b.adTagParameters;b=b.Ma;this.omidAccessModeRules={};this.enableNonce=!1;this.g=null;this.apiKey=a||"";this.format=d==="dash"?"dash":"hls";this.networkCode=e||"";this.authToken=c||"";this.streamActivityMonitorId=f||"";this.adTagParameters=g||null;this.Ma=b||null};C("google.ima.dai.api.StreamRequest",PW);C("google.ima.dai.api.StreamRequest.StreamFormat.HLS","hls");
C("google.ima.dai.api.StreamRequest.StreamFormat.DASH","dash");var QW=function(a){a=a===void 0?{}:a;var b=a.assetKey;PW.call(this,{apiKey:a.apiKey,authToken:a.authToken,format:a.format,networkCode:a.networkCode,streamActivityMonitorId:a.streamActivityMonitorId,adTagParameters:a.adTagParameters});this.assetKey=b||""};t(QW,PW);C("google.ima.dai.api.LiveStreamRequest",QW);C("google.ima.dai.api.OmidAccessMode",{LIMITED:"limited",DOMAIN:"domain",FULL:"full"});var RW=function(a){a=a===void 0?{}:a;var b=a.customAssetKey;PW.call(this,{apiKey:a.apiKey,authToken:a.authToken,format:a.format,networkCode:a.networkCode,streamActivityMonitorId:a.streamActivityMonitorId,adTagParameters:a.adTagParameters});this.customAssetKey=b||""};t(RW,PW);C("google.ima.dai.api.PodStreamRequest",RW);var SW=function(a){a=a===void 0?{}:a;PW.call(this,{format:a.format,streamActivityMonitorId:a.streamActivityMonitorId,adTagParameters:a.adTagParameters,networkCode:a.networkCode})};t(SW,PW);C("google.ima.dai.api.PodVodStreamRequest",SW);var TW=function(){this.g=this.url=this.subtitles=this.streamId=this.manifestFormat=this.errorMessage=this.cuepoints=this.adProgressData=null};TW.prototype.ze=function(a,b){return this.g&&!D(this.g)?(a=new Xr(this.g.replace("$pod-id$",a)),ks(a,"pd",b),a.toString()):null};TW.prototype.getStandalonePodManifestUrl=TW.prototype.ze;C("google.ima.dai.api.StreamData",TW);var UW={LOADED:"loaded",AD_BREAK_STARTED:"adBreakStarted",AD_BREAK_ENDED:"adBreakEnded",AD_PERIOD_STARTED:"adPeriodStarted",AD_PERIOD_ENDED:"adPeriodEnded",AD_PROGRESS:"adProgress",CUEPOINTS_CHANGED:"cuepointsChanged",CLICK:"click",ERROR:"error",STARTED:"started",FIRST_QUARTILE:"firstquartile",MIDPOINT:"midpoint",STREAM_INITIALIZED:"streamInitialized",THIRD_QUARTILE:"thirdquartile",COMPLETE:"complete",SKIPPABLE_STATE_CHANGED:"skippableStateChanged",SKIPPED:"skip",VIDEO_CLICKED:"videoClicked",PAUSED:"paused",
RESUMED:"resumed",un:"showAdUi",Am:"hideAdUi"},WW=function(a,b,c){b=b===void 0?{}:b;c=c===void 0?null:c;uB.call(this,VW[a]||"");this.data=b;this.ad=c};t(WW,uB);
WW.prototype.Ae=function(){var a=new TW,b=this.data.manifestFormat,c=this.data.streamId;switch(this.type){case "adProgress":a.adProgressData=new MW(this.data);break;case "loaded":a.manifestFormat=b!=null?b:null;a.streamId=c!=null?c:null;var d;a.subtitles=(d=this.data.subtitles)!=null?d:null;var e;a.url=(e=this.data.streamUrl)!=null?e:null;break;case "streamInitialized":a.streamId=c!=null?c:null;a.manifestFormat=b!=null?b:null;a.g=this.data.pod_manifest_url;break;case "cuepointsChanged":a.cuepoints=
(this.data.cuepoints||[]).map(function(f){return new NW(f)});break;case "error":a.errorMessage=this.data.errorMessage}return a};WW.prototype.getAd=function(){return this.ad};WW.prototype.getAd=WW.prototype.getAd;WW.prototype.getStreamData=WW.prototype.Ae;C("module$exports$google3$javascript$ads$interactivemedia$sdk$dai$api$stream_event.StreamEvent.Type",UW);
var XW={},VW=(XW.adBreakStarted="adBreakStarted",XW.adBreakEnded="adBreakEnded",XW.adPeriodStarted="adPeriodStarted",XW.adPeriodEnded="adPeriodEnded",XW.adProgress="adProgress",XW.cuepointsChanged="cuepointsChanged",XW.loadStream="loaded",XW.streamError="error",XW.streamInitialized="streamInitialized",XW.start="started",XW.firstQuartile="firstquartile",XW.midpoint="midpoint",XW.thirdQuartile="thirdquartile",XW.complete="complete",XW.click="click",XW.skip="skip",XW.skipShown="skippableStateChanged",
XW.videoClicked="videoClicked",XW.pause="paused",XW.resume="resumed",XW.showAdUi="showAdUi",XW.hideAdUi="hideAdUi",XW);C("google.ima.dai.api.StreamEvent",WW);C("google.ima.dai.api.StreamEvent.Type",UW);var YW=function(){this.locale="en"};YW.prototype.getLocale=function(){return this.locale};YW.prototype.setLocale=function(a){if(a=xs(a))this.locale=a};YW.prototype.setLocale=YW.prototype.setLocale;YW.prototype.getLocale=YW.prototype.getLocale;C("google.ima.dai.api.UiSettings",YW);var ZW=function(a){a=a===void 0?{}:a;var b=a.liveStreamEventId,c=a.region,d=a.projectNumber,e=a.oAuthToken,f=a.videoStitcherSessionOptions;RW.call(this,{apiKey:a.apiKey,authToken:a.authToken,format:a.format,streamActivityMonitorId:a.streamActivityMonitorId,adTagParameters:a.adTagParameters,networkCode:a.networkCode,customAssetKey:a.customAssetKey});this.liveStreamEventId=b||"";this.region=c||"";this.projectNumber=d||"";this.oAuthToken=e||"";this.videoStitcherSessionOptions=f||null};t(ZW,RW);
C("google.ima.dai.api.VideoStitcherLiveStreamRequest",ZW);C("google.ima.dai.api.CloudPodStreamRequest",ZW);var $W=function(a){a=a===void 0?{}:a;var b=a.contentSourceUrl,c=a.region,d=a.oAuthToken,e=a.projectNumber,f=a.adTagUrl,g=a.vodConfigId,h=a.videoStitcherSessionOptions;PW.call(this,{apiKey:a.apiKey,authToken:a.authToken,format:a.format,networkCode:a.networkCode,streamActivityMonitorId:a.streamActivityMonitorId,adTagParameters:a.adTagParameters});this.contentSourceUrl=b||"";this.region=c||"";this.oAuthToken=d||"";this.projectNumber=e||"";this.adTagUrl=f||"";this.vodConfigId=g||"";this.videoStitcherSessionOptions=
h||null};t($W,PW);C("google.ima.dai.api.VideoStitcherVodStreamRequest",$W);var aX=function(a){a=a===void 0?{}:a;var b=a.contentSourceId,c=a.videoId;PW.call(this,{apiKey:a.apiKey,authToken:a.authToken,format:a.format,networkCode:a.networkCode,streamActivityMonitorId:a.streamActivityMonitorId,adTagParameters:a.adTagParameters});this.contentSourceId=b||"";this.videoId=c||""};t(aX,PW);C("google.ima.dai.api.VODStreamRequest",aX);var bX=Promise;var cX=function(a){this.j=a};cX.prototype.g=function(a,b,c){this.j.then(function(d){d.g(a,b,c)})};var dX=function(a){this.data=a};var eX=function(a){this.j=a};eX.prototype.g=function(a,b,c){c=c===void 0?[]:c;var d=new MessageChannel;fX(d.port1,b);this.j.postMessage(a,[d.port2].concat(c))};var gX=function(a,b){fX(a,b);return new eX(a)},fX=function(a,b){b&&(a.onmessage=function(c){b(new dX(c.data,gX(c.ports[0])))})};var hX=function(a){this.g=a},iX=function(a){var b=Object.create(null);(typeof a==="string"?[a]:a).forEach(function(c){if(c==="null")throw Error("Receiving from null origin not allowed without token verification. Please use NullOriginConnector.");b[c]=!0});return function(c){return b[c]===!0}};var kX=function(a){var b=a.destination;var c=a.Db;var d=a.origin;var e=a.je===void 0?"ZNWN1d":a.je;var f=a.onMessage===void 0?void 0:a.onMessage;a=a.df===void 0?void 0:a.df;return jX({destination:b,Ed:function(){return c.contentWindow},Tk:d instanceof hX?d:typeof d==="function"?new hX(d):new hX(iX(d)),je:e,onMessage:f,df:a})},jX=function(a){var b=a.destination;var c=a.Ed;var d=a.Tk;var e=a.vl===void 0?void 0:a.vl;var f=a.je;var g=a.onMessage===void 0?void 0:a.onMessage;var h=a.df===void 0?void 0:
a.df;return new cX(new bX(function(k,l){var p=function(n){n.source&&n.source===c()&&d.g(n.origin)&&(n.data.n||n.data)===f&&(b.removeEventListener("message",p,!1),e&&n.data.t!==e?l(Error('Token mismatch while establishing channel "'+f+'". Expected '+e+", but received "+n.data.t+".")):(k(gX(n.ports[0],g)),h&&h(n)))};b.addEventListener("message",p,!1)}))};var mX=function(a,b){var c=Array.prototype.slice.call(arguments),d=c.shift();if(typeof d=="undefined")throw Error("[goog.string.format] Template required");return d.replace(/%([0\- \+]*)(\d+)?(\.(\d+))?([%sfdiu])/g,function(e,f,g,h,k,l,p,n){if(l=="%")return"%";var q=c.shift();if(typeof q=="undefined")throw Error("[goog.string.format] Not enough arguments");arguments[0]=q;return lX[l].apply(null,arguments)})},lX={s:function(a,b,c){return isNaN(c)||c==""||a.length>=Number(c)?a:a=b.indexOf("-",0)>-1?
a+Yk(" ",Number(c)-a.length):Yk(" ",Number(c)-a.length)+a},f:function(a,b,c,d,e){d=a.toString();isNaN(e)||e==""||(d=parseFloat(a).toFixed(e));var f=Number(a)<0?"-":b.indexOf("+")>=0?"+":b.indexOf(" ")>=0?" ":"";Number(a)>=0&&(d=f+d);if(isNaN(c)||d.length>=Number(c))return d;d=isNaN(e)?Math.abs(Number(a)).toString():Math.abs(Number(a)).toFixed(e);a=Number(c)-d.length-f.length;return d=b.indexOf("-",0)>=0?f+d+Yk(" ",a):f+Yk(b.indexOf("0",0)>=0?"0":" ",a)+d},d:function(a,b,c,d,e,f,g,h){return lX.f(parseInt(a,
10),b,c,d,0,f,g,h)}};lX.i=lX.d;lX.u=lX.d;var oX=function(a,b){U.call(this);b=(Gl()?"https:":"http:")+mX("//imasdk.googleapis.com/js/core/dai_iframe3.677.0_%s.html",b);b=new Xr(b);b.g.add("origin",window.location.origin);this.g=b;this.Db=Mr("IFRAME",{src:this.g.toString(),allowFullscreen:!0,style:"height: 100%; border: 0; margin: 0; padding: 0;position: relative; width: 100%; color-scheme: light",title:"Advertisement"});a.appendChild(this.Db);this.j=nX(this,this.Db);a={experimentIds:So().sort().join(",")};b=Ls;var c=c===void 0?null:c;var d=
{};c!=null&&(d.activeViewPushUpdates=c);d.activityMonitorMode=0;d.adsToken=b.g;d.autoPlayAdBreaks=b.A;d.companionBackfill=b.getCompanionBackfill();d.cookiesEnabled=b.isCookiesEnabled();d.disableCustomPlaybackForIOS10Plus=b.getDisableCustomPlaybackForIOS10Plus();d.engagementDetection=!0;d.isFunctionalTest=!1;d.isVpaidAdapter=b.o;d["1pJar"]="";d.numRedirects=b.getNumRedirects();d.pageCorrelator=b.K;d.persistentStateCorrelator=Qm();d.playerType=b.getPlayerType();d.playerVersion=b.getPlayerVersion();
d.ppid=b.getPpid();d.privacyControls="";d.reportMediaRequests=!1;d.sessionId=b.D;d.streamCorrelator=b.U;d.testingConfig=Ks(b).g;d.urlSignals=b.ba;d.vpaidMode=b.j;d.featureFlags=b.getFeatureFlags();d.cookieDeprecationLabel="";d.cookieDeprecationLabelStatus=0;a.imaSdkSettings=d;a.topAccessiblePageUrl=$u();c=Jl();b=eg(Jp());d={};b=(d.experimentStateProto=Ph(b),d);a.genotypeExperimentData=b;a.pvsid=c;nM(this,"loaded",a);Bw(this.Db,{display:"none"})};t(oX,U);
var pX=function(a){var b=a.g.j;return b?a.g.o+"://"+b:window.location.origin},nX=function(a,b){return kX({destination:window,Db:b,origin:pX(a),je:"uiChannel",onMessage:function(c){var d=c.data.type;c=c.data.data;c=c===void 0?{}:c;switch(d){case "iframeCreated":case "videoClicked":case "click":case "pause":case "resume":case "skip":case "skipShown":case "updateGfpCookie":case "videoIconClicked":case "vastIconRendered":a.dispatchEvent(new CS(d,c))}}})};oX.prototype.focus=function(){nM(this,"focus")};
oX.prototype.pause=function(){nM(this,"pause")};oX.prototype.resume=function(){nM(this,"resume")};var nM=function(a,b,c){c=c===void 0?{}:c;var d={};d.type=b;d.data=c;a.j.g(d)};var qX=function(a,b){R.call(this);this.j=a;this.g=b};t(qX,R);var iM=function(a){return{source:a.g.Db.contentWindow,target:a.j}};var rX=function(a,b,c){U.call(this);this.j=a;this.g=b;this.l=c};t(rX,U);var sX=function(a,b){switch(b.type){case "iframeCreated":b=b.data;var c,d=(c=a.j.Db.contentWindow)==null?void 0:c.frames[b];c=hM(a.l,a.g,new qX(d,a.j));kt(a,c);kM(c).then(function(){un(M.getInstance(),"ima_lsc");var e;(e=eM(a.g))==null||e.then(function(){un(M.getInstance(),"ima_csr")},function(){un(M.getInstance(),"ima_cmc")})});oM(c)}};rX.prototype.R=function(){var a;(a=this.g)!=null&&a.j&&(a.j.reject(),a.j=null);U.prototype.R.call(this)};Fr();var tX={},uX=(tX.play="play",tX.pause="pause",tX.seeked="seeked",tX.seeking="seeking",tX.stalled="stalled",tX.timeUpdate="timeUpdate",tX.volumeChange="volumeChange",tX),vX=function(a,b,c,d){U.call(this);var e=this;this.V=a;this.g=b;this.ad=c;this.l=d;this.j=new NH(this);kt(this,this.j);this.j.listen(this.V,Object.keys(uX),function(f){return void e.dispatchEvent(uX[f.type])})};t(vX,U);
var pM=function(a){var b=a.g.Ta(),c=!0;b&&(c=b.duration0&&(Ro.reset(),To(new Xo(e)));if(a==null)throw Error("Media element must be provided.");var f;((f=a.tagName)==null?void 0:
f.toUpperCase())!=="VIDEO"&&console.warn("Media element must be a