var _yt_player={};(function(g){var window=this;var ba,ca,aaa,ga,fa,ha,la,ma,ra,daa,eaa,Aa,Ca,Ea,E,Ga,Ha,naa,oaa,Ia,Ja,Ka,La,paa,Qa,Ua,Va,Wa,raa,Xa,saa,cb,gb,lb,pb,sb,xb,ub,zb,taa,vb,uaa,Bb,Db,vaa,Hb,Kb,waa,Qb,Mb,Rb,Sb,Ub,Vb,Xb,bc,dc,cc,ec,fc,gc,hc,yaa,ic,rc,tc,qc,mc,yc,Ac,vc,Bc,Cc,Dc,Ec,Fc,Gc,Hc,Kc,J,Baa,Lc,Aaa,Mc,Caa,Pc,Oc,Qc,Rc,Tc,Sc,Vc,Wc,Xc,Yc,Zc,$c,ad,bd,cd,dd,ed,Nc,Uc,gd,hd,id,kd,ld,md,nd,pd,qd,rd,td,ud,wd,vd,Bd,Paa,Ad,Dd,Ed,Gd,Kd,Uaa,Vaa,Nd,be,ee,fe,he,oe,te,xe,ze,Ae,Be,Xaa,Rd,Ie,Ne,Pe,Qe,aba,Te,Ue,We,Xe,Ze,$e,Ve,cf,bba,jf,ff,of,nf,cba,
bf,rf,sf,tf,uf,dba,vf,wf,yf,eba,zf,Af,fba,Gf,Hf,If,Lf,Nf,Of,Pf,gba,iba,jba,Vf,Sf,Tf,Jf,Qf,lba,Yf,Wf,Xf,bg,kba,Zf,hba,eg,hg,mba,nba,oba,pba,lg,kg,ng,og,qg,rg,xg,yg,zg,Ag,Cg,Eg,Gg,Ig,Jg,Kg,Mg,tba,Ug,Vg,Wg,Xg,Zg,$g,ah,eh,jh,kh,oh,hh,uba,yh,zh,Ah,vba,wba,Ch,xba,Kh,Lh,Mh,Nh,Oh,Ph,Qh,yba,zba,Aba,Th,Uh,Vh,Wh,Yh,bi,di,ei,fi,ii,ji,ki,li,pi,si,ti,Dba,ui,wi,vi,xi,Di,zi,Ei,Gba,Fba,Fi,Gi,Hi,Ii,Ji,Ki,Li,Mi,Ni,Oi,Pi,Qi,Si,Ri,Ti,Ui,Vi,Hba,Wi,Xi,Yi,Zi,$i,bj,dj,aj,fj,ej,gj,hj,jj,kj,lj,mj,nj,oj,Jba,Kba,rj,Pba,uj,Mba,
Nba,Lba,Oba,vj,pj,Rba,xj,qj,sj,Sba,yj,Tba,Uba,Vba,$ba,zj,aca,Aj,Bj,Cj,Dj,Fj,Gj,bca,dca,Ij,cca,eca,Jj,fca,Hj,Kj,Lj,gca,jca,ica,kca,Mj,Nj,Oj,lca,Pj,mca,Qj,Rj,Sj,Tj,Uj,Vj,Wj,Xj,Zj,Yj,oca,ck,pca,qca,ek,gk,fk,hk,qk,nk,kk,sca,sk,rca,pk,ak,zk,vca,Fk,tk,rk,wca,Ik,Hk,xca,yca,uca,vk,zca,Aca,Jk,Lk,Mk,Kk,Nk,Ok,Bca,Pk,Tk,Uk,Vk,Wk,Cca,Xk,Dca,Qk,al,$k,bl,cl,el,Ica,Eca,il,jl,ll,kl,ml,nl,ol,Lca,Kca,pl,ql,Mca,sl,rl,Rca,vl,wl,xl,yl,Tca,Uca,zl,Bl,Dl,Vca,Fl,Hl,Il,Gl,Jl,Kl,Wca,Ml,Ql,Wl,Xl,Zca,Rl,Tl,$ca,$l,am,Zl,cm,Vl,
bm,Xca,em,im,jm,hm,km,lm,ada,om,pm,qm,rm,sm,cda,dda,um,eda,vm,wm,tm,fda,xm,ym,zm,Am,Bm,gda,ida,Fm,jda,kda,Cm,hda,Dm,Hm,Im,Gm,mda,Mm,Jm,oda,Om,Nm,Pm,Qm,Sm,Tm,Rm,Vm,rda,Wm,Ym,Zm,$m,an,Xm,bn,cn,dn,gn,hn,ln,on,jn,qn,sn,tn,un,vn,wn,xn,yn,zn,An,Dn,Fn,En,Gn,Hn,In,Ln,sda,Kn,Nn,Mn,On,Pn,Rn,Sn,Tn,Un,tda,uda,Vn,Yn,$n,Zn,zda,bo,Xn,co,Ada,fo,eo,Bda,go,io,ko,jo,lo,mo,no,Cda,Dda,oo,po,qo,ro,so,to,wo,xo,yo,zo,Ao,Bo,Co,Do,Eo,Fo,Q,Io,Lo,Mo,Eda,Qo,Ro,Ida,To,Zo,$o,bp,Po,Yo,Wo,Oda,Pda,Qda,Rda,cp,dp,ep,fp,hp,ip,gp,Sda,
lp,mp,np,op,pp,qp,rp,sp,up,tp,wp,xp,Tda,Uda,yp,Bp,zp,Ap,Cp,Dp,Wda,Xda,Ep,Fp,Yda,Gp,Op,$da,Rp,Sp,Tp,Up,Vp,bea,Wp,bq,cq,Xp,dq,eq,fea,Yp,eea,Zp,$p,aq,dea,jq,kq,lq,pq,kea,lea,qq,nea,oea,sq,rea,uq,mea,vq,wq,xq,yq,sea,zq,Aq,Bq,tea,Dq,Eq,Fq,Gq,uea,Hq,vea,Cq,Iq,Jq,Kq,wea,xea,yea,zea,Lq,Aea,Oq,Sq,Vq,Wq,kp,jp,Bea,Cea,Dea,Xq,Eea,Yq,Fea,Gea,Hea,Iea,Jea,Kea,Lea,Mea,Nea,Zq,$q,br,ar,cr,Oea,Pea,Qea,Rea,er,Tea,gr,jr,Vea,mr,or,lr,pr,qr,rr,sr,tr,ur,vr,wr,xr,yr,Ar,zr,Zea,$ea,Er,cfa,Dr,Cr,Fr,Gr,Hr,Ir,Kr,gq,dfa,Ur,Vr,
Wr,Xr,Lr,hfa,Yr,Zr,iq,bs,ds,iea,es,fs,gs,fq,jea,cs,hs,is,js,ks,ls,ms,ns,kfa,lfa,jfa,mfa,as,nfa,xs,pfa,ys,Jr,zs,As,Bs,Cs,qfa,Ds,Pr,$r,ws,Es,Fs,Gs,vs,hq,Or,Is,Tr,Js,Ks,Mr,Qr,us,ifa,sfa,Sr,Ls,Ms,tfa,Ns,ufa,Os,Ps,Qs,Ss,Ts,Us,xfa,Vs,Ws,Xs,Ys,Zs,$s,at,bt,ct,dt,et,ft,gt,ht,jt,Bfa,it,Cfa,lt,kt,mt,nt,Dfa,Ffa,Gfa,pt,qt,Hfa,At,zt,Bt,Ct,Ifa,Ht,It,Kt,Jt,Lt,Mt,Nt,Ot,Pt,Jfa,Ut,Rt,Tt,Xt,Yt,Zt,$t,Vt,cu,Wt,eu,Kfa,fu,gu,hu,iu,ju,du,Lfa,ku,Mfa,lu,mu,nu,Nfa,ou,pu,Ofa,qu,uu,vu,Pfa,wu,xu,Qfa,zu,Au,Rfa,Cu,Du,Sfa,Hu,Iu,Ju,
Ku,Lu,Mu,Nu,Tfa,Ou,Pu,Qu,Su,Ru,Ufa,Tu,Uu,Vu,Wu,Vfa,Xu,Yu,Xfa,Wfa,Zu,$u,av,bv,cv,dv,fr,ev,fv,gv,hv,iv,jv,kv,lv,mv,nv,qs,Mq,ps,Uq,os,ts,uv,hr,Tq,tv,Qq,Nq,Pq,Rq,wv,ir,rv,rs,zv,Av,Cv,Yfa,Dv,Ev,Fv,Gv,Hv,Iv,Jv,Kv,Lv,Mv,Nv,Ov,Pv,Zfa,Qv,Rv,Sv,Tv,Uv,Vv,$fa,Wv,Xv,Yv,Zv,$v,aw,cw,dw,cga,ew,dga,aga,fga,fw,gga,hw,bw,ega,kga,jga,iga,gw,iw,jw,kw,lw,nw,ow,pw,qw,rw,tw,uw,vw,ww,xw,zw,Aw,Bw,yw,Cw,Dw,lga,mga,Gw,Ew,Jw,Fw,Kw,Iw,Lw,oga,pga,Mw,Nw,Ow,qga,Rw,Sw,Qw,Tw,tga,uga,Uw,Vw,Ww,Xw,vga,wga,Yw,Zw,$w,bx,xga,ax,ex,cx,yga,
zga,Aga,fx,gx,hx,ix,jx,kx,lx,mx,nx,px,qx,rx,ox,sx,tx,ux,vx,Ega,Dga,xx,wx,Ax,Fga,Bx,Cx,Gga,Cga,Dx,Fx,Iga,Hga,Gx,Hx,Kga,Jx,Ix,Lx,Mx,Nx,Mga,Nga,Ox,Px,Oga,Qx,zx,Pga,Rx,Sx,yx,Qga,Tx,Ux,Vx,Wx,Rga,Xx,Yx,Zx,ay,by,$x,Uga,Sga,dy,gy,hy,fy,ey,cy,iy,ky,ly,ny,py,my,qy,ry,Xga,ty,sy,uy,Yga,Zga,$ga,vy,wy,yy,zy,Ay,By,Cy,Dy,aha,Ey,cha,Ky,Fy,Gy,Hy,Ry,Ly,Ny,My,Uy,Py,Oy,Sy,Qy,eha,Jy,Iy,fha,Vy,bha,Wy,Xy,Yy,hha,Zy,bz,cz,ez,dz,fz,gz,hz,jha,iha,kha,jz,lha,mha,kz,lz,iz,nha,mz,nz,oha,oz,pha,qha,rha,sha,pz,qz,rz,tz,uz,vz,sz,
xz,tha,uha,wz,yz,zz,Az,Bz,Cz,vha,Dz,Gz,Iz,Hz,Jz,Kz,Lz,Nz,Mz,Pz,Oz,Qz,Rz,wha,Vz,Wz,Xz,Yz,Zz,$z,aA,bA,cA,dA,eA,gA,hA,fA,iA,jA,kA,xha,lA,yha,oA,pA,mA,nA,rA,vA,sA,tA,qA,uA,zha,wA,xA,yA,zA,BA,AA,Aha,DA,CA,Cha,Dha,Bha,EA,Eha,Fha,Gha,Hha,FA,Jha,Kha,Lha,rq,IA,JA,KA,LA,MA,NA,OA,PA,RA,SA,TA,YA,XA,bB,cB,VA,dB,eB,fB,gB,UA,WA,ZA,iB,Sha,jB,Tha,Uha,Vha,kB,Xha,lB,mB,nB,oB,pB,Yha,qB,Zha,$ha,rB,aia,bia,sB,tB,cia,eia,fia,uB,gia,wB,yB,kia,vB,lia,zB,Wha,AB,nia,oia,BB,pia,qia,DB,GB,ria,IB,HB,JB,sia,dha,KB,LB,OB,PB,QB,
RB,SB,uia,TB,UB,VB,WB,MB,wia,xia,ZB,yia,$B,aC,bC,YB,cC,XB,dC,zia,Ty,Bia,oy,Aia,eC,fC,gC,hC,iC,jC,Cia,kC,lC,nC,oC,mC,wC,Dia,zC,pC,AC,CC,vC,uC,tC,EC,DC,FC,GC,IC,KC,LC,Eia,MC,NC,OC,SC,UC,PC,WC,TC,ZC,YC,QC,XC,$C,bD,JC,VC,aD,dD,cD,RC,HC,BC,rC,fD,Fia,jD,kD,lD,mD,Gia,pD,qD,rD,sD,tD,vD,wD,xD,yD,zD,BD,DD,FD,ED,GD,AD,CD,JD,ID,KD,LD,WD,XD,YD,$D,aE,bE,cE,eE,fE,gE,hE,iE,kE,lE,mE,nE,pE,rE,Iia,AE,CE,DE,EE,GE,Jia,Kia,Lia,LE,Mia,Nia,JE,OE,QE,RE,SE,TE,VE,WE,XE,YE,NE,Oia,cF,bF,dF,eF,fF,gF,Sia,jF,kF,mF,lF,nF,sF,uF,vF,
xF,Tia,yF,zF,AF,Via,HF,IF,JF,PF,QF,UF,SF,WF,VF,XF,Zia,YF,lG,mG,kG,uG,tG,xG,yG,zG,EG,GG,FG,aja,bja,RG,TG,SG,UG,dja,VG,WG,eja,fja,YG,hja,$G,gja,eH,gH,jja,hH,jH,oH,kja,lja,pH,qH,mja,vH,xH,nja,yH,zH,oja,EH,FH,DH,GH,IH,JH,KH,LH,HH,MH,pja,PH,QH,rja,RH,qja,OH,SH,TH,UH,WH,sja,VH,XH,YH,ZH,$H,bI,cI,XG,dI,eI,fI,mI,qI,sI,tja,tI,uja,uI,vI,vja,wI,zI,wja,AI,xja,BI,yja,zja,Aja,Bja,yI,xI,CI,FI,GI,DI,JI,II,KI,LI,MI,NI,OI,PI,QI,RI,SI,TI,UI,VI,WI,XI,ZI,aJ,Eja,bJ,cJ,dJ,eJ,fJ,gJ,iJ,U,hJ,kJ,jJ,mJ,nJ,oJ,Gja,rJ,uJ,wJ,xJ,
yJ,Hja,zJ,AJ,Jja,CJ,EJ,GJ,HJ,IJ,JJ,KJ,LJ,MJ,NJ,QJ,OJ,SJ,TJ,UJ,VJ,WJ,YJ,ZJ,$J,aK,bK,dK,eK,gK,iK,Kja,jK,Lja,kK,lK,nK,sJ,pK,rK,sK,tK,uK,vK,wK,Nja,xK,qK,zK,AK,Oja,CK,BK,DK,EK,GK,HK,IK,LK,MK,NK,KK,JK,OK,PK,Pja,QK,RK,TK,SK,UK,Qja,VK,XK,YK,ZK,$K,aL,bL,cL,WK,dL,eL,gL,hL,iL,jL,Rja,kL,lL,mL,nL,oL,pL,qL,rL,sL,uL,xL,tL,vL,BL,CL,zL,wL,DL,EL,yL,AL,Sja,FL,GL,HL,IL,JL,KL,LL,ML,NL,OL,PJ,RJ,PL,QL,Vja,RL,SL,Wja,Xja,Yja,UL,TL,VL,WL,XL,YL,ZL,Zja,$ja,dM,eM,fM,gM,aka,hM,iM,bka,kM,jM,lM,mM,cka,pM,rM,tM,sM,nM,xM,dka,yM,oM,
wM,qM,vM,uM,zM,AM,BM,CM,DM,EM,FM,eka,GM,HM,IM,JM,KM,LM,MM,NM,PM,QM,RM,OM,hka,TM,UM,VM,WM,ika,jka,YM,kka,ZM,$M,bN,cN,dN,eN,gN,fN,hN,iN,jN,kN,lN,mN,lka,nN,mka,nka,rka,ska,oka,pka,qka,pN,qN,rN,sN,tka,tN,uka,uN,vN,wka,vka,wN,xka,xN,AN,zka,BN,Aka,CN,DN,EN,FK,Bka,FN,yN,yka,HN,JN,KN,IN,NN,ON,PN,QN,RN,Cka,UN,VN,TN,YN,Ika,dO,Qka,cO,bO,Hka,bM,kO,lO,mO,rO,qO,sO,tO,uO,vO,wO,xO,yO,AO,CO,OO,PO,yK,QO,RO,SO,TO,VO,JO,MO,KO,$O,Xka,NO,cP,kP,lP,nP,mP,Yka,Zka,oP,pP,sP,GP,JP,AP,KP,wP,MP,FP,zP,EP,BP,ala,bla,NP,DP,HP,xP,
IP,OP,qP,tP,rP,hla,PP,QP,SP,TP,VP,YP,jla,ZP,kla,nla,mla,aQ,pla,qla,rla,sla,bQ,tla,cQ,dQ,eQ,fQ,iQ,kQ,jQ,mQ,lQ,hQ,nQ,gQ,oQ,pQ,qQ,ula,vla,wQ,xQ,Cla,yQ,AQ,BQ,EQ,GQ,HQ,JQ,KQ,LQ,MQ,CQ,Dla,xla,yla,zla,wla,PQ,QQ,Fla,uQ,Ala,UQ,VQ,WQ,XQ,Gla,Hla,Ila,Jla,SQ,YQ,ZQ,aR,bR,dR,eR,fR,gR,hR,Kla,Lla,Mla,iR,kR,lR,mR,nR,oR,pR,qR,rR,jR,sR,tR,uR,Ola,Pla,Qla,Rla,vR,Nla,xR,wR,zR,yR,Sla,Tla,Ula,AR,BR,CR,DR,ER,FR,HR,IR,JR,GR,KR,LR,MR,OR,Wla,NR,QR,RR,SR,TR,PR,UR,WR,VR,XR,YR,ZR,$R,aS,cS,bS,dS,eS,gS,iS,fS,hS,lS,mS,Xla,pS,qS,rS,
kS,sS,tS,jS,uS,vS,wS,xS,oS,nS,yS,zS,AS,Yla,BS,CS,DS,ES,Zla,$la,JS,KS,IS,MS,FS,ama,GS,HS,bma,LS,cma,NS,OS,dma,ema,fma,PS,gma,QS,hma,RS,SS,TS,US,jma,kma,WS,YS,$S,cT,dT,eT,gT,hT,kT,jT,lT,mT,mma,pT,oT,qT,nT,rT,fT,lma,sT,tT,XS,VS,uT,ZS,bT,vT,nma,oma,pma,qma,wT,xT,yT,zT,AT,rma,sma,BT,DT,CT,ET,uma,vma,wma,FT,HT,IT,KT,JT,xma,yma,LT,zma,MT,NT,OT,PT,QT,RT,Ama,ST,TT,VT,bU,Bma,XT,dU,fU,iU,hU,UT,pU,nU,oU,Dma,jU,uU,tU,AU,CU,DU,EU,qU,FU,rU,vU,ZT,BU,Gma,wU,HU,mU,IU,sU,kU,LU,Hma,MU,$T,Ema,NU,KU,aU,OU,lU,Fma,zU,Ima,
WT,JU,PU,yU,xU,gU,QU,TU,$U,dV,jV,vV,Jma,yV,AV,EV,FV,GV,HV,LV,PV,QV,SV,TV,VV,WV,Kma,XV,YV,ZV,$V,aW,bW,eW,Nma,Oma,Lma,Mma,Pma,gW,hW,iW,lW,mW,oW,sW,rW,qW,uW,Qma,vW,Rma,wW,Vma,xW,yW,zW,Wma,Xma,AW,Yma,BW,EW,DW,CW,FW,GW,HW,IW,JW,KW,MW,OW,SW,TW,Zma,UW,VW,WW,$ma,XW,YW,ZW,$W,aX,bX,cX,dX,ana,eX,fX,bna,gX,hX,iX,cna,jX,ena,dna,fna,lX,gna,nX,mX,qX,pX,oX,rX,hna,sX,tX,uX,vX,ina,yX,AX,BX,CX,DX,jna,EX,GX,kna,wX,FX,zX,xX,MX,NX,IX,HX,LX,KX,OX,PX,QX,RX,lna,qna,nna,pna,SX,TX,UX,VX,WX,XX,rna,YX,$X,ZX,aY,sna,bY,tna,cY,
dY,gY,hY,iY,jY,kY,una,mY,vna,nY,lY,oY,pY,qY,rY,wna,xna,zna,yna,sY,tY,Ana,Bna,Cna,uY,wY,yY,zY,AY,xY,vY,BY,DY,FY,GY,IY,dW,cW,JX,KY,LY,MY,NY,PW,LW,SY,JY,TY,WY,eY,ZY,UY,RW,QW,aZ,HY,pW,bZ,eZ,fZ,dZ,gZ,Ena,Gna,Fna,iZ,lZ,jZ,oZ,NW,hZ,pZ,qZ,sZ,tZ,rZ,vZ,uZ,wZ,xZ,Hna,Ina,yZ,zZ,CZ,BZ,DZ,EZ,FZ,GZ,IZ,JZ,LZ,MZ,NZ,OZ,KZ,QZ,SZ,UZ,TZ,WZ,VZ,XZ,YZ,ZZ,a_,$Z,b_,c_,d_,e_,f_,g_,h_,i_,l_,j_,k_,Kna,q_,Lna,w_,x_,A_,B_,C_,D_,E_,H_,I_,G_,F_,J_,L_,K_,M_,N_,P_,R_,O_,T_,V_,U_,Mna,S_,W_,X_,Y_,Z_,$_,a0,Nna,b0,c0,d0,e0,f0,g0,h0,j0,
i0,l0,k0,m0,n0,o0,p0,t0,r0,q0,s0,v0,u0,w0,x0,z0,B0,C0,A0,E0,F0,G0,H0,D0,J0,N0,I0,Q0,R0,S0,L0,T0,K0,V0,P0,M0,U0,W0,O0,X0,a1,b1,c1,d1,e1,f1,g1,i1,h1,j1,k1,l1,m1,n1,o1,p1,q1,r1,s1,t1,u1,w1,v1,x1,y1,z1,A1,C1,B1,E1,G1,F1,H1,J1,m_,L1,K1,I1,M1,y0,O1,S1,Q1,R1,T1,U1,N1,V1,W1,X1,Sna,Rna,a2,c2,d2,QY,Z1,e2,RY,PY,f2,h2,g2,i2,k2,Tna,Una,o2,n2,$1,t2,u2,Y1,w2,VU,x2,y2,m2,l2,B2,C2,s2,YY,E2,G2,r2,D2,H2,J2,I2,K2,M2,N2,O2,A2,z2,P2,kV,$Y,lJ,Q2,q2,Vna,S2,mV,VY,XY,Wna,F2,Xna,Yna,T2,v2,Zna,U2,$na,aoa,V2,doa,eoa,X2,Z2,foa,
$2,loa,poa,moa,ooa,a3,uoa,voa,xoa,zoa,yoa,Aoa,Coa,f3,Doa,Boa,Eoa,Foa,ea,da,baa,Hw,pa,wa,caa;ba=function(a){return function(){return g.aa[a].apply(this,arguments)}};
ca=function(){ca=function(){};
da.Symbol||(da.Symbol=aaa)};
aaa=function(a){return"jscomp_symbol_"+(a||"")+baa++};
ga=function(){ca();var a=da.Symbol.iterator;a||(a=da.Symbol.iterator=da.Symbol("iterator"));"function"!=typeof Array.prototype[a]&&ea(Array.prototype,a,{configurable:!0,writable:!0,value:function(){return fa(this)}});
ga=function(){}};
fa=function(a){var b=0;return ha(function(){return b<a.length?{done:!1,value:a[b++]}:{done:!0}})};
ha=function(a){ga();a={next:a};a[da.Symbol.iterator]=function(){return this};
return a};
g.ka=function(a){ga();var b=a[window.Symbol.iterator];return b?b.call(a):fa(a)};
g.p=function(a,b){function c(){}
c.prototype=b.prototype;a.aa=b.prototype;a.prototype=new c;a.prototype.constructor=a;for(var d in b)if(Object.defineProperties){var e=Object.getOwnPropertyDescriptor(b,d);e&&Object.defineProperty(a,d,e)}else a[d]=b[d]};
la=function(a,b){if(b){for(var c=da,d=a.split("."),e=0;e<d.length-1;e++){var f=d[e];f in c||(c[f]={});c=c[f]}d=d[d.length-1];e=c[d];f=b(e);f!=e&&null!=f&&ea(c,d,{configurable:!0,writable:!0,value:f})}};
ma=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)};
g.t=function(a){return void 0!==a};
g.u=function(a){return"string"==typeof a};
g.na=function(a){return"boolean"==typeof a};
g.oa=function(a){return"number"==typeof a};
g.v=function(a,b,c){a=a.split(".");c=c||pa;a[0]in c||!c.execScript||c.execScript("var "+a[0]);for(var d;a.length&&(d=a.shift());)!a.length&&g.t(b)?c[d]=b:c[d]&&c[d]!==Object.prototype[d]?c=c[d]:c=c[d]={}};
g.x=function(a,b){for(var c=a.split("."),d=b||pa,e;e=c.shift();)if(null!=d[e])d=d[e];else return null;return d};
g.y=function(){};
g.qa=function(a){a.Zc=void 0;a.getInstance=function(){return a.Zc?a.Zc:a.Zc=new a}};
ra=function(a){var b=typeof a;if("object"==b)if(a){if(a instanceof Array)return"array";if(a instanceof Object)return b;var c=Object.prototype.toString.call(a);if("[object Window]"==c)return"object";if("[object Array]"==c||"number"==typeof a.length&&"undefined"!=typeof a.splice&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("splice"))return"array";if("[object Function]"==c||"undefined"!=typeof a.call&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("call"))return"function"}else return"null";
else if("function"==b&&"undefined"==typeof a.call)return"object";return b};
g.sa=function(a){return"array"==ra(a)};
g.ta=function(a){var b=ra(a);return"array"==b||"object"==b&&"number"==typeof a.length};
g.ua=function(a){return"function"==ra(a)};
g.va=function(a){var b=typeof a;return"object"==b&&null!=a||"function"==b};
g.xa=function(a){return a[wa]||(a[wa]=++caa)};
daa=function(a,b,c){return a.call.apply(a.bind,arguments)};
eaa=function(a,b,c){if(!a)throw Error();if(2<arguments.length){var d=Array.prototype.slice.call(arguments,2);return function(){var c=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(c,d);return a.apply(b,c)}}return function(){return a.apply(b,arguments)}};
g.A=function(a,b,c){Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?g.A=daa:g.A=eaa;return g.A.apply(null,arguments)};
g.ya=function(a,b){var c=Array.prototype.slice.call(arguments,1);return function(){var b=c.slice();b.push.apply(b,arguments);return a.apply(this,b)}};
g.za=function(a,b){for(var c in b)a[c]=b[c]};
Aa=function(a,b){b&&(a=a.replace(/\{\$([^}]+)}/g,function(a,d){return null!=b&&d in b?b[d]:a}));
return a};
g.Ba=function(a,b,c){g.v(a,b,c)};
g.C=function(a,b){function c(){}
c.prototype=b.prototype;a.aa=b.prototype;a.prototype=new c;a.prototype.constructor=a;a.Y0=function(a,c,f){for(var d=Array(arguments.length-2),e=2;e<arguments.length;e++)d[e-2]=arguments[e];return b.prototype[c].apply(a,d)}};
Ca=function(a){if(Error.captureStackTrace)Error.captureStackTrace(this,Ca);else{var b=Error().stack;b&&(this.stack=b)}a&&(this.message=String(a))};
g.Da=function(a,b){return 0==a.lastIndexOf(b,0)};
Ea=function(a,b){var c=a.length-b.length;return 0<=c&&a.indexOf(b,c)==c};
E=function(a){return/^[\s\xa0]*$/.test(a)};
g.Fa=function(a){return(0,window.encodeURIComponent)(String(a))};
Ga=function(a){return(0,window.decodeURIComponent)(a.replace(/\+/g," "))};
Ha=function(a){if(!faa.test(a))return a;-1!=a.indexOf("&")&&(a=a.replace(gaa,"&amp;"));-1!=a.indexOf("<")&&(a=a.replace(haa,"&lt;"));-1!=a.indexOf(">")&&(a=a.replace(iaa,"&gt;"));-1!=a.indexOf('"')&&(a=a.replace(jaa,"&quot;"));-1!=a.indexOf("'")&&(a=a.replace(kaa,"&#39;"));-1!=a.indexOf("\x00")&&(a=a.replace(laa,"&#0;"));return a};
naa=function(a){var b={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"'};var c=pa.document.createElement("div");return a.replace(maa,function(a,e){var d=b[a];if(d)return d;if("#"==e.charAt(0)){var k=Number("0"+e.substr(1));(0,window.isNaN)(k)||(d=String.fromCharCode(k))}d||(c.innerHTML=a+" ",d=c.firstChild.nodeValue.slice(0,-1));return b[a]=d})};
oaa=function(a){return a.replace(/&([^;]+);/g,function(a,c){switch(c){case "amp":return"&";case "lt":return"<";case "gt":return">";case "quot":return'"';default:if("#"==c.charAt(0)){var b=Number("0"+c.substr(1));if(!(0,window.isNaN)(b))return String.fromCharCode(b)}return a}})};
Ia=function(a,b){a.length>b&&(a=a.substring(0,b-3)+"...");return a};
Ja=function(a,b){return-1!=a.indexOf(b)};
Ka=function(a,b){return Ja(a.toLowerCase(),b.toLowerCase())};
La=function(a){return String(a).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")};
g.Na=function(a,b,c){a=g.t(c)?a.toFixed(c):String(a);c=a.indexOf(".");-1==c&&(c=a.length);return Ma("0",Math.max(0,b-c))+a};
g.F=function(a){return null==a?"":String(a)};
paa=function(a){return Array.prototype.join.call(arguments,"")};
g.Oa=function(){return Math.floor(2147483648*Math.random()).toString(36)+Math.abs(Math.floor(2147483648*Math.random())^(0,g.G)()).toString(36)};
g.Ra=function(a,b){for(var c=0,d=Pa(String(a)).split("."),e=Pa(String(b)).split("."),f=Math.max(d.length,e.length),k=0;0==c&&k<f;k++){var l=d[k]||"",m=e[k]||"";do{l=/(\d*)(\D*)(.*)/.exec(l)||["","","",""];m=/(\d*)(\D*)(.*)/.exec(m)||["","","",""];if(0==l[0].length&&0==m[0].length)break;c=Qa(0==l[1].length?0:(0,window.parseInt)(l[1],10),0==m[1].length?0:(0,window.parseInt)(m[1],10))||Qa(0==l[2].length,0==m[2].length)||Qa(l[2],m[2]);l=l[3];m=m[3]}while(0==c)}return c};
Qa=function(a,b){return a<b?-1:a>b?1:0};
g.Ta=function(a){for(var b=0,c=0;c<a.length;++c)b=31*b+a.charCodeAt(c)>>>0;return b};
Ua=function(){return"goog_"+qaa++};
Va=function(a){var b=Number(a);return 0==b&&E(a)?window.NaN:b};
Wa=function(a){return String(a).replace(/\-([a-z])/g,function(a,c){return c.toUpperCase()})};
raa=function(a){var b=g.u(void 0)?La(void 0):"\\s";return a.replace(new RegExp("(^"+(b?"|["+b+"]+":"")+")([a-z])","g"),function(a,b,e){return b+e.toUpperCase()})};
Xa=function(a){(0,window.isFinite)(a)&&(a=String(a));return g.u(a)?/^\s*-?0x/i.test(a)?(0,window.parseInt)(a,16):(0,window.parseInt)(a,10):window.NaN};
g.Ya=function(a){return a[a.length-1]};
saa=function(a,b){var c=0;(0,g.H)(a,function(a,e,f){b.call(void 0,a,e,f)&&++c},void 0);
return c};
g.$a=function(a,b,c){b=g.Za(a,b,c);return 0>b?null:g.u(a)?a.charAt(b):a[b]};
g.Za=function(a,b,c){for(var d=a.length,e=g.u(a)?a.split(""):a,f=0;f<d;f++)if(f in e&&b.call(c,e[f],f,a))return f;return-1};
cb=function(a,b){var c=g.ab(a,b,void 0);return 0>c?null:g.u(a)?a.charAt(c):a[c]};
g.ab=function(a,b,c){for(var d=g.u(a)?a.split(""):a,e=a.length-1;0<=e;e--)if(e in d&&b.call(c,d[e],e,a))return e;return-1};
g.eb=function(a,b){return 0<=(0,g.db)(a,b)};
g.fb=function(a){return 0==a.length};
gb=function(a){if(!g.sa(a))for(var b=a.length-1;0<=b;b--)delete a[b];a.length=0};
g.ib=function(a,b){g.eb(a,b)||a.push(b)};
g.kb=function(a,b){var c=(0,g.db)(a,b),d;(d=0<=c)&&g.jb(a,c);return d};
g.jb=function(a,b){Array.prototype.splice.call(a,b,1)};
lb=function(a,b){var c=g.Za(a,b,void 0);0<=c&&g.jb(a,c)};
g.nb=function(a){return Array.prototype.concat.apply([],arguments)};
g.ob=function(a){var b=a.length;if(0<b){for(var c=Array(b),d=0;d<b;d++)c[d]=a[d];return c}return[]};
pb=function(a,b){for(var c=1;c<arguments.length;c++){var d=arguments[c];if(g.ta(d)){var e=a.length||0,f=d.length||0;a.length=e+f;for(var k=0;k<f;k++)a[e+k]=d[k]}else a.push(d)}};
g.rb=function(a,b,c,d){Array.prototype.splice.apply(a,g.qb(arguments,1))};
g.qb=function(a,b,c){return 2>=arguments.length?Array.prototype.slice.call(a,b):Array.prototype.slice.call(a,b,c)};
sb=function(a,b,c){function d(a){return g.va(a)?"o"+g.xa(a):(typeof a).charAt(0)+a}
b=b||a;c=c||d;for(var e={},f=0,k=0;k<a.length;){var l=a[k++],m=c(l);Object.prototype.hasOwnProperty.call(e,m)||(e[m]=!0,b[f++]=l)}b.length=f};
g.wb=function(a,b,c){return ub(a,c||vb,!1,b)};
xb=function(a,b){return ub(a,b,!0,void 0,void 0)};
ub=function(a,b,c,d,e){for(var f=0,k=a.length,l;f<k;){var m=f+k>>1,n;c?n=b.call(e,a[m],m,a):n=b(d,a[m]);0<n?f=m+1:(k=m,l=!n)}return l?f:~f};
g.yb=function(a,b){a.sort(b||vb)};
zb=function(a,b,c){var d=c||vb;g.yb(a,function(a,c){return d(b(a),b(c))})};
taa=function(a,b){zb(a,function(a){return a[b]},void 0)};
g.Ab=function(a,b){if(!g.ta(a)||!g.ta(b)||a.length!=b.length)return!1;for(var c=a.length,d=uaa,e=0;e<c;e++)if(!d(a[e],b[e]))return!1;return!0};
vb=function(a,b){return a>b?1:a<b?-1:0};
uaa=function(a,b){return a===b};
Bb=function(a,b,c){c=g.wb(a,b,c);0>c&&g.rb(a,-(c+1),0,b)};
g.Cb=function(a,b,c){var d={};(0,g.H)(a,function(e,f){d[b.call(c,e,f,a)]=e});
return d};
Db=function(a){for(var b=[],c=0;c<a;c++)b[c]=0;return b};
g.Eb=function(a){for(var b=[],c=0;c<arguments.length;c++){var d=arguments[c];if(g.sa(d))for(var e=0;e<d.length;e+=8192)for(var f=g.Eb.apply(null,g.qb(d,e,e+8192)),k=0;k<f.length;k++)b.push(f[k]);else b.push(d)}return b};
g.Fb=function(a){for(var b=[],c=0,d=0;d<a.length;d++){for(var e=a.charCodeAt(d);255<e;)b[c++]=e&255,e>>=8;b[c++]=e}return b};
vaa=function(a){return(0,g.I)(a,function(a){a=a.toString(16);return 1<a.length?a:"0"+a}).join("")};
Hb=function(a){return Ja(g.Gb,a)};
g.Ib=function(a,b,c){for(var d in a)b.call(c,a[d],d,a)};
g.Jb=function(a,b,c){var d={},e;for(e in a)b.call(c,a[e],e,a)&&(d[e]=a[e]);return d};
Kb=function(a,b){for(var c in a)if(b.call(void 0,a[c],c,a))return!0;return!1};
g.Lb=function(a){var b=0,c;for(c in a)b++;return b};
waa=function(a,b){return Mb(a,b)};
g.Nb=function(a){var b=[],c=0,d;for(d in a)b[c++]=a[d];return b};
g.Ob=function(a){var b=[],c=0,d;for(d in a)b[c++]=d;return b};
g.Pb=function(a,b){for(var c=g.ta(b),d=c?b:arguments,c=c?0:1;c<d.length&&(a=a[d[c]],g.t(a));c++);return a};
Qb=function(a,b){return null!==a&&b in a};
Mb=function(a,b){for(var c in a)if(a[c]==b)return!0;return!1};
Rb=function(a,b,c){for(var d in a)if(b.call(c,a[d],d,a))return d};
Sb=function(a,b){var c=Rb(a,b,void 0);return c&&a[c]};
g.Tb=function(a){for(var b in a)return!1;return!0};
Ub=function(a,b){b in a&&delete a[b]};
Vb=function(a,b,c){return null!==a&&b in a?a[b]:c};
g.Wb=function(a){var b={},c;for(c in a)b[c]=a[c];return b};
Xb=function(a){var b=ra(a);if("object"==b||"array"==b){if(g.ua(a.clone))return a.clone();var b="array"==b?[]:{},c;for(c in a)b[c]=Xb(a[c]);return b}return a};
g.Zb=function(a,b){for(var c,d,e=1;e<arguments.length;e++){d=arguments[e];for(c in d)a[c]=d[c];for(var f=0;f<Yb.length;f++)c=Yb[f],Object.prototype.hasOwnProperty.call(d,c)&&(a[c]=d[c])}};
bc=function(a){var b=arguments.length;if(1==b&&g.sa(arguments[0]))return bc.apply(null,arguments[0]);for(var c={},d=0;d<b;d++)c[arguments[d]]=!0;return c};
dc=function(){return Hb("Safari")&&!(cc()||Hb("Coast")||Hb("Opera")||Hb("Edge")||Hb("Silk")||Hb("Android"))};
cc=function(){return(Hb("Chrome")||Hb("CriOS"))&&!Hb("Edge")};
ec=function(){return Hb("iPhone")&&!Hb("iPod")&&!Hb("iPad")};
fc=function(){return ec()||Hb("iPad")||Hb("iPod")};
gc=function(a){gc[" "](a);return a};
hc=function(a,b){try{return gc(a[b]),!0}catch(c){}return!1};
yaa=function(a,b){var c=xaa;return Object.prototype.hasOwnProperty.call(c,a)?c[a]:c[a]=b(a)};
ic=function(){var a=pa.document;return a?a.documentMode:void 0};
g.kc=function(a){return yaa(a,function(){return 0<=g.Ra(jc,a)})};
g.lc=function(a){return Number(zaa)>=a};
g.pc=function(a,b){g.ta(a);mc();for(var c=b?nc:oc,d=[],e=0;e<a.length;e+=3){var f=a[e],k=e+1<a.length,l=k?a[e+1]:0,m=e+2<a.length,n=m?a[e+2]:0,q=f>>2,f=(f&3)<<4|l>>4,l=(l&15)<<2|n>>6,n=n&63;m||(n=64,k||(l=64));d.push(c[q],c[f],c[l],c[n])}return d.join("")};
rc=function(a){var b=[];qc(a,function(a){b.push(a)});
return b};
tc=function(a){!g.sc||g.kc("10");var b=new window.Uint8Array(Math.ceil(3*a.length/4)),c=0;qc(a,function(a){b[c++]=a});
return b.subarray(0,c)};
qc=function(a,b){function c(b){for(;d<a.length;){var c=a.charAt(d++),e=uc[c];if(null!=e)return e;if(!E(c))throw Error("Unknown base64 encoding at char: "+c);}return b}
mc();for(var d=0;;){var e=c(-1),f=c(0),k=c(64),l=c(64);if(64===l&&-1===e)break;b(e<<2|f>>4);64!=k&&(b(f<<4&240|k>>2),64!=l&&b(k<<6&192|l))}};
mc=function(){if(!oc){oc={};uc={};nc={};for(var a=0;65>a;a++)oc[a]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(a),uc[oc[a]]=a,nc[a]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_.".charAt(a),62<=a&&(uc["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_.".charAt(a)]=a)}};
yc=function(a,b,c){this.o=null;this.D=this.F=this.g=this.B=this.A=0;this.C=!1;a&&vc(this,a,b,c)};
Ac=function(a,b,c){if(zc.length){var d=zc.pop();a&&vc(d,a,b,c);return d}return new yc(a,b,c)};
vc=function(a,b,c,d){b=b.constructor===window.Uint8Array?b:b.constructor===window.ArrayBuffer?new window.Uint8Array(b):b.constructor===Array?new window.Uint8Array(b):b.constructor===String?tc(b):new window.Uint8Array(0);a.o=b;a.A=g.t(c)?c:0;a.B=g.t(d)?a.A+d:a.o.length;a.g=a.A};
Bc=function(a){var b=a.o;var c=b[a.g+0];var d=c&127;if(128>c)return a.g+=1,d;c=b[a.g+1];d|=(c&127)<<7;if(128>c)return a.g+=2,d;c=b[a.g+2];d|=(c&127)<<14;if(128>c)return a.g+=3,d;c=b[a.g+3];d|=(c&127)<<21;if(128>c)return a.g+=4,d;c=b[a.g+4];d|=(c&15)<<28;if(128>c)return a.g+=5,d>>>0;a.g+=10;return d};
Cc=function(a,b,c){this.g=Ac(a,b,c);this.o=this.A=-1;this.B=!1};
Dc=function(a){var b=a.g;if(b.g==b.B||a.getError())return!1;var b=Bc(a.g),c=b&7;if(0!=c&&5!=c&&1!=c&&2!=c&&3!=c&&4!=c)return a.B=!0,!1;a.A=b>>>3;a.o=c;return!0};
Ec=function(a){switch(a.o){case 0:if(0!=a.o)Ec(a);else{for(a=a.g;a.o[a.g]&128;)a.g++;a.g++}break;case 1:1!=a.o?Ec(a):(a=a.g,a.g+=8);break;case 2:if(2!=a.o)Ec(a);else{var b=Bc(a.g);a=a.g;a.g+=b}break;case 5:5!=a.o?Ec(a):(a=a.g,a.g+=4);break;case 3:b=[a.A];do{if(!Dc(a)){a.B=!0;break}if(3==a.o)b.push(a.A);else if(4==a.o&&a.A!=b.pop()){a.B=!0;break}}while(0<b.length)}};
Fc=function(a){var b=Bc(a.g);a=a.g;for(var c,d,e=a.o,f=a.g,b=f+b,k=[],l="";f<b;){var m=e[f++];if(128>m)k.push(m);else if(192>m)continue;else if(224>m)d=e[f++],k.push((m&31)<<6|d&63);else if(240>m)d=e[f++],c=e[f++],k.push((m&15)<<12|(d&63)<<6|c&63);else if(248>m){d=e[f++];c=e[f++];var n=e[f++];c=(m&7)<<18|(d&63)<<12|(c&63)<<6|n&63;c-=65536;k.push((c>>10&1023)+55296,(c&1023)+56320)}8192<=k.length&&(l+=String.fromCharCode.apply(null,k),k.length=0)}l+=String.fromCharCode.apply(null,k);a.g=f;return l};
Gc=function(a){var b=Bc(a.g);a=a.g;if(0>b||a.g+b>a.o.length)a.C=!0,b=new window.Uint8Array(0);else{var c=a.o.subarray(a.g,a.g+b);a.g+=b;b=c}return b};
Hc=function(){};
Kc=function(a,b,c,d){a.g=null;b||(b=[]);a.F=void 0;a.B=-1;a.o=b;a:{if(a.o.length){b=a.o.length-1;var e=a.o[b];if(e&&"object"==typeof e&&!g.sa(e)&&!(Ic&&e instanceof window.Uint8Array)){a.C=b-a.B;a.A=e;break a}}a.C=Number.MAX_VALUE}a.D={};if(c)for(b=0;b<c.length;b++)e=c[b],e<a.C?(e+=a.B,a.o[e]=a.o[e]||Jc):a.A[e]=a.A[e]||Jc;d&&d.length&&(0,g.H)(d,g.ya(Aaa,a))};
J=function(a,b){if(b<a.C){var c=b+a.B;var d=a.o[c];return d===Jc?a.o[c]=[]:d}d=a.A[b];return d===Jc?a.A[b]=[]:d};
Baa=function(a){if(null==a||a instanceof window.Uint8Array)return a;if(g.u(a))return tc(a);ra(a);return null};
Lc=function(a,b,c){b<a.C?a.o[b+a.B]=c:a.A[b]=c};
Aaa=function(a,b){var c,d;(0,g.H)(b,function(b){var e=J(a,b);null!=e&&(c=b,d=e,Lc(a,b,void 0))});
return c?(Lc(a,c,d),c):0};
Mc=function(a,b,c){a.g||(a.g={});if(!a.g[c]){var d=J(a,c);d&&(a.g[c]=new b(d))}return a.g[c]};
Caa=function(a){var b=Nc;a.g||(a.g={});if(!a.g[1]){for(var c=J(a,1),d=[],e=0;e<c.length;e++)d[e]=new b(c[e]);a.g[1]=d}b=a.g[1];b==Jc&&(b=a.g[1]=[]);return b};
Pc=function(a){if(a.g)for(var b in a.g){var c=a.g[b];if(g.sa(c))for(var d=0;d<c.length;d++)c[d]&&Oc(c[d]);else c&&Oc(c)}};
Oc=function(a){Pc(a);return a.o};
Qc=function(a){var b;if(g.sa(a)){for(var c=Array(a.length),d=0;d<a.length;d++)null!=(b=a[d])&&(c[d]="object"==typeof b?Qc(b):b);return c}if(Ic&&a instanceof window.Uint8Array)return new window.Uint8Array(a);c={};for(d in a)null!=(b=a[d])&&(c[d]="object"==typeof b?Qc(b):b);return c};
Rc=function(a){Kc(this,a,null,null)};
Tc=function(a){return Mc(a,Sc,1)};
Sc=function(a){Kc(this,a,null,null)};
Vc=function(a){return Mc(a,Uc,5)};
Wc=function(a){Kc(this,a,null,null)};
Xc=function(a){Kc(this,a,null,Daa)};
Yc=function(a){Kc(this,a,null,Eaa)};
Zc=function(a){Kc(this,a,null,null)};
$c=function(a){Kc(this,a,null,null)};
ad=function(a){Kc(this,a,null,null)};
bd=function(a){Kc(this,a,null,Faa)};
cd=function(a){Kc(this,a,null,null)};
dd=function(a){Kc(this,a,null,null)};
ed=function(a){Kc(this,a,Gaa,null)};
Nc=function(a){Kc(this,a,null,null)};
Uc=function(a){Kc(this,a,null,Haa)};
gd=function(){this.g="";this.o=fd};
hd=function(a){return a instanceof gd&&a.constructor===gd&&a.o===fd?a.g:"type_error:Const"};
id=function(a){var b=new gd;b.g=a;return b};
kd=function(){this.g="";this.o=jd};
ld=function(a){var b=new kd;b.g=a;return b};
md=function(a,b){return b?a.replace(Iaa,""):a};
nd=function(a,b){for(var c=0,d=0,e=!1,f=md(a,b).split(Jaa),k=0;k<f.length;k++){var l=f[k];Kaa.test(md(l,void 0))?(c++,d++):Laa.test(l)?e=!0:Maa.test(md(l,void 0))?d++:Naa.test(l)&&(e=!0)}return 0==d?e?1:0:.4<c/d?-1:1};
pd=function(){this.g="";this.o=od};
qd=function(a){if(a instanceof pd&&a.constructor===pd&&a.o===od)return a.g;ra(a);return"type_error:TrustedResourceUrl"};
rd=function(a){var b=new pd;b.g=a;return b};
td=function(){this.g="";this.o=sd};
ud=function(a){if(a instanceof td&&a.constructor===td&&a.o===sd)return a.g;ra(a);return"type_error:SafeUrl"};
wd=function(a){if(a instanceof td)return a;a=a.bh?a.pg():String(a);Oaa.test(a)||(a="about:invalid#zClosurez");return vd(a)};
vd=function(a){var b=new td;b.g=a;return b};
g.yd=function(){this.g="";this.A=xd;this.o=null};
g.zd=function(a){if(a instanceof g.yd&&a.constructor===g.yd&&a.A===xd)return a.g;ra(a);return"type_error:SafeHtml"};
Bd=function(a){if(a instanceof g.yd)return a;var b=null;a.Oq&&(b=a.Pi());a=Ha(a.bh?a.pg():String(a));return Ad(a,b)};
Paa=function(a){function b(a){g.sa(a)?(0,g.H)(a,b):(a=Bd(a),d+=g.zd(a),a=a.Pi(),0==c?c=a:0!=a&&c!=a&&(c=null))}
var c=0,d="";(0,g.H)(arguments,b);return Ad(d,c)};
Ad=function(a,b){var c=new g.yd;c.g=a;c.o=b;return c};
Dd=function(a,b,c){var d=null,e="";if(b)for(B in b){if(!Cd.test(B))throw Error('Invalid attribute name "'+B+'".');var f=b[B];if(null!=f){var k=a;var l=B;var m=f;if(m instanceof gd)m=hd(m);else if("style"==l.toLowerCase()){f=void 0;k=m;if(!g.va(k))throw Error('The "style" attribute requires goog.html.SafeStyle or map of style properties, '+typeof k+" given: "+k);if(!(k instanceof kd)){m="";for(f in k){if(!/^[-_a-zA-Z0-9]+$/.test(f))throw Error("Name allows only [-_a-zA-Z0-9], got: "+f);var n=k[f];
if(null!=n){if(n instanceof gd)n=hd(n);else if(Qaa.test(n)){for(var q=!0,r=!0,w=0;w<n.length;w++){var z=n.charAt(w);"'"==z&&r?q=!q:'"'==z&&q&&(r=!r)}q&&r||(n="zClosurez")}else n="zClosurez";m+=f+":"+n+";"}}k=m?ld(m):Raa}k instanceof kd&&k.constructor===kd&&k.o===jd?f=k.g:(ra(k),f="type_error:SafeStyle");m=f}else{if(/^on/i.test(l))throw Error('Attribute "'+l+'" requires goog.string.Const value, "'+m+'" given.');if(l.toLowerCase()in Saa)if(m instanceof pd)m=qd(m);else if(m instanceof td)m=ud(m);else if(g.u(m))m=
wd(m).pg();else throw Error('Attribute "'+l+'" on tag "'+k+'" requires goog.html.SafeUrl, goog.string.Const, or string, value "'+m+'" given.');}m.bh&&(m=m.pg());l=l+'="'+Ha(String(m))+'"';e+=" "+l}}var B="<"+a+e;null!=c?g.sa(c)||(c=[c]):c=[];!0===Taa[a.toLowerCase()]?B+=">":(d=Paa(c),B+=">"+g.zd(d)+"</"+a+">",d=d.Pi());(a=b&&b.dir)&&(/^(ltr|rtl|auto)$/i.test(a)?d=0:d=null);return Ad(B,d)};
Ed=function(a,b,c){var d={},e;for(e in a)d[e]=a[e];for(e in b)d[e]=b[e];for(e in c){var f=e.toLowerCase();if(f in a)throw Error('Cannot override "'+f+'" attribute, got "'+e+'" with value "'+c[e]+'"');f in b&&delete d[f];d[e]=c[e]}return d};
g.Fd=function(a,b){var c=b instanceof td?b:wd(b);a.href=ud(c)};
Gd=function(a,b){return Ad(b,null)};
g.Hd=function(a,b,c){return Math.min(Math.max(a,b),c)};
g.Id=function(a,b){var c=a%b;return 0>c*b?c+b:c};
Kd=function(a,b,c){return a+c*(b-a)};
Uaa=function(a){return Ld(arguments,function(a,c){return a+c},0)};
Vaa=function(a){return Uaa.apply(null,arguments)/arguments.length};
g.Md=function(a,b){this.x=g.t(a)?a:0;this.y=g.t(b)?b:0};
Nd=function(a,b){return a==b?!0:a&&b?a.x==b.x&&a.y==b.y:!1};
g.Od=function(a,b){return new g.Md(a.x-b.x,a.y-b.y)};
g.Pd=function(a,b){this.width=a;this.height=b};
g.Qd=function(a,b){return a==b?!0:a&&b?a.width==b.width&&a.height==b.height:!1};
g.Ud=function(a){return a?new Rd(g.Sd(a)):Td||(Td=new Rd)};
g.Vd=function(a){return g.u(a)?window.document.getElementById(a):a};
g.Xd=function(a,b){var c=b||window.document;return c.querySelectorAll&&c.querySelector?c.querySelectorAll("."+a):g.Wd("*",a,b)};
g.K=function(a,b){var c=b||window.document,d=null;c.getElementsByClassName?d=c.getElementsByClassName(a)[0]:c.querySelectorAll&&c.querySelector?d=c.querySelector("."+a):d=g.Wd("*",a,b)[0];return d||null};
g.Wd=function(a,b,c){var d=window.document;c=c||d;var e=a&&"*"!=a?String(a).toUpperCase():"";if(c.querySelectorAll&&c.querySelector&&(e||b))return c.querySelectorAll(e+(b?"."+b:""));if(b&&c.getElementsByClassName){d=c.getElementsByClassName(b);if(e){c={};for(var f=a=0,k;k=d[f];f++)e==k.nodeName&&(c[a++]=k);c.length=a;return c}return d}d=c.getElementsByTagName(e||"*");if(b){c={};for(f=a=0;k=d[f];f++)e=k.className,"function"==typeof e.split&&g.eb(e.split(/\s+/),b)&&(c[a++]=k);c.length=a;return c}return d};
g.Zd=function(a,b){g.Ib(b,function(b,d){b&&b.bh&&(b=b.pg());"style"==d?a.style.cssText=b:"class"==d?a.className=b:"for"==d?a.htmlFor=b:Yd.hasOwnProperty(d)?a.setAttribute(Yd[d],b):g.Da(d,"aria-")||g.Da(d,"data-")?a.setAttribute(d,b):a[d]=b})};
g.ae=function(a){a=a.document;a=g.$d(a)?a.documentElement:a.body;return new g.Pd(a.clientWidth,a.clientHeight)};
g.ce=function(a){var b=be(a);a=a.parentWindow||a.defaultView;return g.sc&&g.kc("10")&&a.pageYOffset!=b.scrollTop?new g.Md(b.scrollLeft,b.scrollTop):new g.Md(a.pageXOffset||b.scrollLeft,a.pageYOffset||b.scrollTop)};
be=function(a){return a.scrollingElement?a.scrollingElement:!g.de&&g.$d(a)?a.documentElement:a.body||a.documentElement};
ee=function(a){return a?a.parentWindow||a.defaultView:window};
g.ge=function(a,b,c){return fe(window.document,arguments)};
fe=function(a,b){var c=String(b[0]),d=b[1];if(!Waa&&d&&(d.name||d.type)){c=["<",c];d.name&&c.push(' name="',Ha(d.name),'"');if(d.type){c.push(' type="',Ha(d.type),'"');var e={};g.Zb(e,d);delete e.type;d=e}c.push(">");c=c.join("")}c=a.createElement(c);d&&(g.u(d)?c.className=d:g.sa(d)?c.className=d.join(" "):g.Zd(c,d));2<b.length&&he(a,c,b,2);return c};
he=function(a,b,c,d){function e(c){c&&b.appendChild(g.u(c)?a.createTextNode(c):c)}
for(;d<c.length;d++){var f=c[d];!g.ta(f)||g.va(f)&&0<f.nodeType?e(f):(0,g.H)(Xaa(f)?g.ob(f):f,e)}};
g.ie=function(a){return window.document.createElement(String(a))};
g.je=function(a){return window.document.createTextNode(String(a))};
g.$d=function(a){return"CSS1Compat"==a.compatMode};
g.ke=function(a,b){a.appendChild(b)};
g.le=function(a,b){he(g.Sd(a),a,arguments,1)};
g.me=function(a){for(var b;b=a.firstChild;)a.removeChild(b)};
g.ne=function(a,b){b.parentNode&&b.parentNode.insertBefore(a,b.nextSibling)};
oe=function(a,b,c){a.insertBefore(b,a.childNodes[c]||null)};
g.pe=function(a){return a&&a.parentNode?a.parentNode.removeChild(a):null};
g.qe=function(a,b){var c=b.parentNode;c&&c.replaceChild(a,b)};
g.se=function(a){return Yaa&&void 0!=a.children?a.children:(0,g.re)(a.childNodes,function(a){return 1==a.nodeType})};
g.ue=function(a){return g.t(a.firstElementChild)?a.firstElementChild:te(a.firstChild)};
te=function(a){for(;a&&1!=a.nodeType;)a=a.nextSibling;return a};
g.ve=function(a){var b;if(Zaa&&!(g.sc&&g.kc("9")&&!g.kc("10")&&pa.SVGElement&&a instanceof pa.SVGElement)&&(b=a.parentElement))return b;b=a.parentNode;return g.va(b)&&1==b.nodeType?b:null};
g.we=function(a,b){if(!a||!b)return!1;if(a.contains&&1==b.nodeType)return a==b||a.contains(b);if("undefined"!=typeof a.compareDocumentPosition)return a==b||!!(a.compareDocumentPosition(b)&16);for(;b&&a!=b;)b=b.parentNode;return b==a};
g.Sd=function(a){return 9==a.nodeType?a:a.ownerDocument||a.document};
xe=function(a){try{return a.contentWindow||(a.contentDocument?ee(a.contentDocument):null)}catch(b){}return null};
g.ye=function(a,b){if("textContent"in a)a.textContent=b;else if(3==a.nodeType)a.data=b;else if(a.firstChild&&3==a.firstChild.nodeType){for(;a.lastChild!=a.firstChild;)a.removeChild(a.lastChild);a.firstChild.data=b}else g.me(a),a.appendChild(g.Sd(a).createTextNode(String(b)))};
ze=function(a){if("outerHTML"in a)return a.outerHTML;var b=g.Sd(a).createElement("DIV");b.appendChild(a.cloneNode(!0));return b.innerHTML};
g.Ce=function(a){var b;if((b="A"==a.tagName||"INPUT"==a.tagName||"TEXTAREA"==a.tagName||"SELECT"==a.tagName||"BUTTON"==a.tagName?!a.disabled&&(!Ae(a)||Be(a)):Ae(a)&&Be(a))&&g.sc){var c;!g.ua(a.getBoundingClientRect)||g.sc&&null==a.parentElement?c={height:a.offsetHeight,width:a.offsetWidth}:c=a.getBoundingClientRect();a=null!=c&&0<c.height&&0<c.width}else a=b;return a};
Ae=function(a){return g.sc&&!g.kc("9")?(a=a.getAttributeNode("tabindex"),null!=a&&a.specified):a.hasAttribute("tabindex")};
Be=function(a){a=a.tabIndex;return g.oa(a)&&0<=a&&32768>a};
Xaa=function(a){if(a&&"number"==typeof a.length){if(g.va(a))return"function"==typeof a.item||"string"==typeof a.item;if(g.ua(a))return"function"==typeof a.item}return!1};
g.Ee=function(a,b,c,d){if(!b&&!c)return null;var e=b?String(b).toUpperCase():null;return g.De(a,function(a){return(!e||a.nodeName==e)&&(!c||g.u(a.className)&&g.eb(a.className.split(/\s+/),c))},!0,d)};
g.Fe=function(a,b){return g.Ee(a,null,b,void 0)};
g.De=function(a,b,c,d){a&&!c&&(a=a.parentNode);for(c=0;a&&(null==d||c<=d);){if(b(a))return a;a=a.parentNode;c++}return null};
g.Ge=function(){var a=window.document;try{return a&&a.activeElement}catch(b){}return null};
Rd=function(a){this.g=a||pa.document||window.document};
g.He=function(a){a=a.g;return a.parentWindow||a.defaultView};
Ie=function(a){for(var b=[],c=a=ee(a.ownerDocument);c!=a.top;c=c.parent)if(c.frameElement)b.push(c.frameElement);else break;return b};
g.M=function(){this.Za=this.Za;this.Sa=this.Sa};
g.N=function(a,b){g.Je(a,g.ya(g.Ke,b))};
g.Je=function(a,b){a.Za?g.t(void 0)?b.call(void 0):b():(a.Sa||(a.Sa=[]),a.Sa.push(g.t(void 0)?(0,g.A)(b,void 0):b))};
g.Ke=function(a){a&&"function"==typeof a.dispose&&a.dispose()};
g.Le=function(a){for(var b=0,c=arguments.length;b<c;++b){var d=arguments[b];g.ta(d)?g.Le.apply(null,d):g.Ke(d)}};
g.Me=function(a,b){this.type=a;this.currentTarget=this.target=b;this.o=!1;this.DA=!0};
Ne=function(a){a.stopPropagation()};
Pe=function(a){return g.de?"webkit"+a:g.Oe?"o"+a.toLowerCase():a.toLowerCase()};
Qe=function(a,b){g.Me.call(this,a?a.type:"");this.relatedTarget=this.currentTarget=this.target=null;this.button=this.screenY=this.screenX=this.clientY=this.clientX=this.C=this.B=0;this.key="";this.charCode=this.keyCode=0;this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1;this.g=this.state=null;a&&this.init(a,b)};
g.Se=function(a){return!(!a||!a[g.Re])};
aba=function(a,b,c,d,e){this.listener=a;this.g=null;this.src=b;this.type=c;this.capture=!!d;this.Ef=e;this.key=++$aa;this.Aj=this.Tl=!1};
Te=function(a){a.Aj=!0;a.listener=null;a.g=null;a.src=null;a.Ef=null};
Ue=function(a){this.src=a;this.listeners={};this.g=0};
We=function(a,b,c,d,e,f){var k=b.toString();b=a.listeners[k];b||(b=a.listeners[k]=[],a.g++);var l=Ve(b,c,e,f);-1<l?(a=b[l],d||(a.Tl=!1)):(a=new aba(c,a.src,k,!!e,f),a.Tl=d,b.push(a));return a};
Xe=function(a,b){var c=b.type;if(!(c in a.listeners))return!1;var d=g.kb(a.listeners[c],b);d&&(Te(b),0==a.listeners[c].length&&(delete a.listeners[c],a.g--));return d};
g.Ye=function(a){var b=0,c;for(c in a.listeners){for(var d=a.listeners[c],e=0;e<d.length;e++)++b,Te(d[e]);delete a.listeners[c];a.g--}};
Ze=function(a,b,c,d,e){a=a.listeners[b.toString()];b=-1;a&&(b=Ve(a,c,d,e));return-1<b?a[b]:null};
$e=function(a,b){var c=g.t(b),d=c?b.toString():"",e=g.t(void 0);return Kb(a.listeners,function(a){for(var b=0;b<a.length;++b)if(!(c&&a[b].type!=d||e&&void 0!=a[b].capture))return!0;return!1})};
Ve=function(a,b,c,d){for(var e=0;e<a.length;++e){var f=a[e];if(!f.Aj&&f.listener==b&&f.capture==!!c&&f.Ef==d)return e}return-1};
g.af=function(a,b,c,d,e){if(g.sa(b)){for(var f=0;f<b.length;f++)g.af(a,b[f],c,d,e);return null}c=bf(c);return g.Se(a)?a.X(b,c,d,e):cf(a,b,c,!1,d,e)};
cf=function(a,b,c,d,e,f){if(!b)throw Error("Invalid event type");var k=!!e,l=g.df(a);l||(a[ef]=l=new Ue(a));c=We(l,b,c,d,e,f);if(c.g)return c;d=bba();c.g=d;d.src=a;d.listener=c;if(a.addEventListener)a.addEventListener(b.toString(),d,k);else if(a.attachEvent)a.attachEvent(ff(b.toString()),d);else throw Error("addEventListener and attachEvent are unavailable.");gf++;return c};
bba=function(){var a=cba,b=hf?function(c){return a.call(b.src,b.listener,c)}:function(c){c=a.call(b.src,b.listener,c);
if(!c)return c};
return b};
jf=function(a,b,c,d,e){if(g.sa(b)){for(var f=0;f<b.length;f++)jf(a,b[f],c,d,e);return null}c=bf(c);return g.Se(a)?We(a.ze,String(b),c,!0,d,e):cf(a,b,c,!0,d,e)};
g.kf=function(a,b,c,d,e){if(g.sa(b))for(var f=0;f<b.length;f++)g.kf(a,b[f],c,d,e);else c=bf(c),g.Se(a)?a.za(b,c,d,e):a&&(a=g.df(a))&&(b=Ze(a,b,c,!!d,e))&&g.lf(b)};
g.lf=function(a){if(g.oa(a)||!a||a.Aj)return!1;var b=a.src;if(g.Se(b))return Xe(b.ze,a);var c=a.type,d=a.g;b.removeEventListener?b.removeEventListener(c,d,a.capture):b.detachEvent&&b.detachEvent(ff(c),d);gf--;(c=g.df(b))?(Xe(c,a),0==c.g&&(c.src=null,b[ef]=null)):Te(a);return!0};
ff=function(a){return a in mf?mf[a]:mf[a]="on"+a};
of=function(a,b,c,d){var e=!0;if(a=g.df(a))if(b=a.listeners[b.toString()])for(b=b.concat(),a=0;a<b.length;a++){var f=b[a];f&&f.capture==c&&!f.Aj&&(f=nf(f,d),e=e&&!1!==f)}return e};
nf=function(a,b){var c=a.listener,d=a.Ef||a.src;a.Tl&&g.lf(a);return c.call(d,b)};
cba=function(a,b){if(a.Aj)return!0;if(!hf){var c=b||g.x("window.event"),d=new Qe(c,this),e=!0;if(!(0>c.keyCode||void 0!=c.returnValue)){a:{var f=!1;if(0==c.keyCode)try{c.keyCode=-1;break a}catch(m){f=!0}if(f||void 0==c.returnValue)c.returnValue=!0}c=[];for(f=d.currentTarget;f;f=f.parentNode)c.push(f);for(var k=a.type,l=c.length-1;!d.o&&0<=l;l--)d.currentTarget=c[l],f=of(c[l],k,!0,d),e=e&&f;for(l=0;!d.o&&l<c.length;l++)d.currentTarget=c[l],f=of(c[l],k,!1,d),e=e&&f}return e}return nf(a,new Qe(b,this))};
g.df=function(a){a=a[ef];return a instanceof Ue?a:null};
bf=function(a){if(g.ua(a))return a;a[pf]||(a[pf]=function(b){return a.handleEvent(b)});
return a[pf]};
g.qf=function(){g.M.call(this);this.ze=new Ue(this);this.kc=this;this.Ra=null};
rf=function(a,b,c,d){b=a.ze.listeners[String(b)];if(!b)return!0;b=b.concat();for(var e=!0,f=0;f<b.length;++f){var k=b[f];if(k&&!k.Aj&&k.capture==c){var l=k.listener,m=k.Ef||k.src;k.Tl&&Xe(a.ze,k);e=!1!==l.call(m,d)&&e}}return e&&0!=d.DA};
sf=function(a,b,c){this.C=c;this.A=a;this.B=b;this.o=0;this.g=null};
tf=function(a,b){a.B(b);a.o<a.C&&(a.o++,b.next=a.g,a.g=b)};
uf=function(a){return function(){return a}};
dba=function(a){var b=b||0;return function(){return a.apply(this,Array.prototype.slice.call(arguments,0,b))}};
vf=function(a){var b=!1,c;return function(){b||(c=a(),b=!0);return c}};
wf=function(a){pa.setTimeout(function(){throw a;},0)};
yf=function(a,b){var c=a;b&&(c=(0,g.A)(a,b));!g.ua(pa.setImmediate)||pa.Window&&pa.Window.prototype&&!Hb("Edge")&&pa.Window.prototype.setImmediate==pa.setImmediate?(xf||(xf=eba()),xf(c)):pa.setImmediate(c)};
eba=function(){var a=pa.MessageChannel;"undefined"===typeof a&&"undefined"!==typeof window&&window.postMessage&&window.addEventListener&&!Hb("Presto")&&(a=function(){var a=window.document.createElement("IFRAME");a.style.display="none";a.src="";window.document.documentElement.appendChild(a);var b=a.contentWindow,a=b.document;a.open();a.write("");a.close();var c="callImmediate"+Math.random(),d="file:"==b.location.protocol?"*":b.location.protocol+"//"+b.location.host,a=(0,g.A)(function(a){if(("*"==d||
a.origin==d)&&a.data==c)this.port1.onmessage()},this);
b.addEventListener("message",a,!1);this.port1={};this.port2={postMessage:function(){b.postMessage(c,d)}}});
if("undefined"!==typeof a&&!Hb("Trident")&&!Hb("MSIE")){var b=new a,c={},d=c;b.port1.onmessage=function(){if(g.t(c.next)){c=c.next;var a=c.Zu;c.Zu=null;a()}};
return function(a){d.next={Zu:a};d=d.next;b.port2.postMessage(0)}}return"undefined"!==typeof window.document&&"onreadystatechange"in window.document.createElement("SCRIPT")?function(a){var b=window.document.createElement("SCRIPT");
b.onreadystatechange=function(){b.onreadystatechange=null;b.parentNode.removeChild(b);b=null;a();a=null};
window.document.documentElement.appendChild(b)}:function(a){pa.setTimeout(a,0)}};
zf=function(){this.o=this.g=null};
Af=function(){this.next=this.scope=this.g=null};
g.Ff=function(a,b){Bf||fba();Cf||(Bf(),Cf=!0);var c=Df,d=Ef.get();d.set(a,b);c.o?c.o.next=d:c.g=d;c.o=d};
fba=function(){if(-1!=String(pa.Promise).indexOf("[native code]")){var a=pa.Promise.resolve(void 0);Bf=function(){a.then(Gf)}}else Bf=function(){yf(Gf)}};
Gf=function(){for(var a;a=Df.remove();){try{a.g.call(a.scope)}catch(b){wf(b)}tf(Ef,a)}Cf=!1};
Hf=function(a){a.prototype.then=a.prototype.then;a.prototype.$goog_Thenable=!0};
If=function(a){if(!a)return!1;try{return!!a.$goog_Thenable}catch(b){return!1}};
g.Kf=function(a,b){this.g=0;this.F=void 0;this.B=this.o=this.A=null;this.C=this.D=!1;if(a!=g.y)try{var c=this;a.call(b,function(a){Jf(c,2,a)},function(a){Jf(c,3,a)})}catch(d){Jf(this,3,d)}};
Lf=function(){this.next=this.context=this.o=this.B=this.g=null;this.A=!1};
Nf=function(a,b,c){var d=Mf.get();d.B=a;d.o=b;d.context=c;return d};
Of=function(a){if(a instanceof g.Kf)return a;var b=new g.Kf(g.y);Jf(b,2,a);return b};
Pf=function(a){return new g.Kf(function(b,c){c(a)})};
g.Rf=function(a,b,c){Qf(a,b,c,null)||g.Ff(g.ya(b,a))};
gba=function(a){return new g.Kf(function(b,c){a.length||b(void 0);for(var d=0,e;d<a.length;d++)e=a[d],g.Rf(e,b,c)})};
iba=function(){var a,b,c=new g.Kf(function(c,e){a=c;b=e});
return new hba(c,a,b)};
jba=function(a,b){var c=Nf(b,b,void 0);c.A=!0;Sf(a,c)};
g.Uf=function(a,b){return Tf(a,null,b,void 0)};
Vf=function(a,b){if(0==a.g)if(a.A){var c=a.A;if(c.o){for(var d=0,e=null,f=null,k=c.o;k&&(k.A||(d++,k.g==a&&(e=k),!(e&&1<d)));k=k.next)e||(f=k);e&&(0==c.g&&1==d?Vf(c,b):(f?(d=f,d.next==c.B&&(c.B=d),d.next=d.next.next):Wf(c),Xf(c,e,3,b)))}a.A=null}else Jf(a,3,b)};
Sf=function(a,b){a.o||2!=a.g&&3!=a.g||Yf(a);a.B?a.B.next=b:a.o=b;a.B=b};
Tf=function(a,b,c,d){var e=Nf(null,null,null);e.g=new g.Kf(function(a,k){e.B=b?function(c){try{var e=b.call(d,c);a(e)}catch(n){k(n)}}:a;
e.o=c?function(b){try{var e=c.call(d,b);!g.t(e)&&b instanceof Zf?k(b):a(e)}catch(n){k(n)}}:k});
e.g.A=a;Sf(a,e);return e.g};
Jf=function(a,b,c){0==a.g&&(a===c&&(b=3,c=new TypeError("Promise cannot resolve to itself")),a.g=1,Qf(c,a.J,a.K,a)||(a.F=c,a.g=b,a.A=null,Yf(a),3!=b||c instanceof Zf||kba(a,c)))};
Qf=function(a,b,c,d){if(a instanceof g.Kf)return Sf(a,Nf(b||g.y,c||null,d)),!0;if(If(a))return a.then(b,c,d),!0;if(g.va(a))try{var e=a.then;if(g.ua(e))return lba(a,e,b,c,d),!0}catch(f){return c.call(d,f),!0}return!1};
lba=function(a,b,c,d,e){function f(a){l||(l=!0,d.call(e,a))}
function k(a){l||(l=!0,c.call(e,a))}
var l=!1;try{b.call(a,k,f)}catch(m){f(m)}};
Yf=function(a){a.D||(a.D=!0,g.Ff(a.G,a))};
Wf=function(a){var b=null;a.o&&(b=a.o,a.o=b.next,b.next=null);a.o||(a.B=null);return b};
Xf=function(a,b,c,d){if(3==c&&b.o&&!b.A)for(;a&&a.C;a=a.A)a.C=!1;if(b.g)b.g.A=null,bg(b,c,d);else try{b.A?b.B.call(b.context):bg(b,c,d)}catch(e){cg.call(null,e)}tf(Mf,b)};
bg=function(a,b,c){2==b?a.B.call(a.context,c):a.o&&a.o.call(a.context,c)};
kba=function(a,b){a.C=!0;g.Ff(function(){a.C&&cg.call(null,b)})};
Zf=function(a){Ca.call(this,a)};
hba=function(a,b,c){this.g=a;this.resolve=b;this.reject=c};
g.dg=function(a,b){g.qf.call(this);this.o=a||1;this.g=b||pa;this.A=(0,g.A)(this.sG,this);this.B=(0,g.G)()};
eg=function(a,b){a.o=b;a.De&&a.enabled?(a.stop(),a.start()):a.De&&a.stop()};
g.fg=function(a,b,c){if(g.ua(a))c&&(a=(0,g.A)(a,c));else if(a&&"function"==typeof a.handleEvent)a=(0,g.A)(a.handleEvent,a);else throw Error("Invalid listener argument");return 2147483647<Number(b)?-1:pa.setTimeout(a,b||0)};
g.gg=function(a){pa.clearTimeout(a)};
hg=function(){return Math.round((0,g.G)()/1E3)};
mba=function(a){var b=window.performance&&window.performance.timing&&window.performance.timing.domLoading&&0<window.performance.timing.domLoading?Math.round(window.performance.timing.domLoading/1E3):null;return null!=b?b:null!=a?a:hg()};
nba=function(){this.o=-1};
oba=function(a){return/^\s*$/.test(a)?!1:/^[\],:{}\s\u2028\u2029]*$/.test(a.replace(/\\["\\\/bfnrtu]/g,"@").replace(/(?:"[^"\\\n\r\u2028\u2029\x00-\x08\x0a-\x1f]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?)[\s\u2028\u2029]*(?=:|,|]|}|$)/g,"]").replace(/(?:^|:|,)(?:[\s\u2028\u2029]*\[)+/g,""))};
g.jg=function(a){try{return pa.JSON.parse(a)}catch(d){var b=d}a=String(a);if(oba(a))try{var c=eval("("+a+")");b&&ig("Invalid JSON: "+a,b);return c}catch(d){}throw Error("Invalid JSON string: "+a);};
pba=function(a){try{return pa.JSON.parse(a)}catch(d){var b=d}var c=eval("("+a+")");b&&ig("Invalid JSON: "+a,b);return c};
g.mg=function(a){return kg(new lg(void 0),a)};
lg=function(a){this.g=a};
kg=function(a,b){var c=[];ng(a,b,c);return c.join("")};
ng=function(a,b,c){if(null==b)c.push("null");else{if("object"==typeof b){if(g.sa(b)){var d=b;b=d.length;c.push("[");for(var e="",f=0;f<b;f++)c.push(e),e=d[f],ng(a,a.g?a.g.call(d,String(f),e):e,c),e=",";c.push("]");return}if(b instanceof String||b instanceof Number||b instanceof Boolean)b=b.valueOf();else{c.push("{");f="";for(d in b)Object.prototype.hasOwnProperty.call(b,d)&&(e=b[d],"function"!=typeof e&&(c.push(f),og(d,c),c.push(":"),ng(a,a.g?a.g.call(b,d,e):e,c),f=","));c.push("}");return}}switch(typeof b){case "string":og(b,
c);break;case "number":c.push((0,window.isFinite)(b)&&!(0,window.isNaN)(b)?String(b):"null");break;case "boolean":c.push(String(b));break;case "function":c.push("null");break;default:throw Error("Unknown type: "+typeof b);}}};
og=function(a,b){b.push('"',a.replace(qba,function(a){var b=pg[a];b||(b="\\u"+(a.charCodeAt(0)|65536).toString(16).substr(1),pg[a]=b);return b}),'"')};
qg=function(a){this.g=a||{cookie:""}};
rg=function(a){a=(a.g.cookie||"").split(";");for(var b=[],c=[],d,e,f=0;f<a.length;f++)e=Pa(a[f]),d=e.indexOf("="),-1==d?(b.push(""),c.push(e)):(b.push(e.substring(0,d)),c.push(e.substring(d+1)));return{keys:b,values:c}};
g.sg=function(a,b,c,d,e,f,k){var l="";a&&(l+=a+":");c&&(l+="//",b&&(l+=b+"@"),l+=c,d&&(l+=":"+d));e&&(l+=e);f&&(l+="?"+f);k&&(l+="#"+k);return l};
g.tg=function(a){return a.match(rba)};
g.ug=function(a){return a?(0,window.decodeURI)(a):a};
g.vg=function(a){return g.ug(g.tg(a)[3]||null)};
g.wg=function(a){return Number(g.tg(a)[4]||null)||null};
xg=function(a,b){if(a)for(var c=a.split("&"),d=0;d<c.length;d++){var e=c[d].indexOf("="),f=null;if(0<=e){var k=c[d].substring(0,e);f=c[d].substring(e+1)}else k=c[d];b(k,f?Ga(f):"")}};
yg=function(a,b){if(!b)return a;var c=a.indexOf("#");0>c&&(c=a.length);var d=a.indexOf("?");if(0>d||d>c){d=c;var e=""}else e=a.substring(d+1,c);c=[a.substr(0,d),e,a.substr(c)];d=c[1];c[1]=b?d?d+"&"+b:b:d;return c[0]+(c[1]?"?"+c[1]:"")+c[2]};
zg=function(a,b,c){if(g.sa(b))for(var d=0;d<b.length;d++)zg(a,String(b[d]),c);else null!=b&&c.push(a+(""===b?"":"="+g.Fa(b)))};
Ag=function(a,b){for(var c=[],d=b||0;d<a.length;d+=2)zg(a[d],a[d+1],c);return c.join("&")};
g.Bg=function(a){var b=[],c;for(c in a)zg(c,a[c],b);return b.join("&")};
Cg=function(a,b){var c=2==arguments.length?Ag(arguments[1],0):Ag(arguments,1);return yg(a,c)};
g.Dg=function(a,b){var c=g.Bg(b);return yg(a,c)};
Eg=function(a,b,c,d){for(var e=c.length;0<=(b=a.indexOf(c,b))&&b<d;){var f=a.charCodeAt(b-1);if(38==f||63==f)if(f=a.charCodeAt(b+e),!f||61==f||38==f||35==f)return b;b+=e+1}return-1};
Gg=function(a,b){var c=a.search(Fg),d=Eg(a,0,b,c);if(0>d)return null;var e=a.indexOf("&",d);if(0>e||e>c)e=c;d+=b.length+1;return Ga(a.substr(d,e-d))};
g.Hg=function(a,b){for(var c=a.search(Fg),d=0,e,f=[];0<=(e=Eg(a,d,b,c));)f.push(a.substring(d,e)),d=Math.min(a.indexOf("&",e)+1||c,c);f.push(a.substr(d));return f.join("").replace(sba,"$1")};
Ig=function(a,b,c){a=g.Hg(a,b);return yg(a,b+(null!=c?"="+g.Fa(c):""))};
Jg=function(){this.g={};return this};
Kg=function(a,b){a.g.eb=Vb(a.g,"eb",0)|b};
g.Lg=function(a,b,c,d){this.top=a;this.right=b;this.bottom=c;this.left=d};
Mg=function(a,b,c){b instanceof g.Md?(a.left+=b.x,a.right+=b.x,a.top+=b.y,a.bottom+=b.y):(a.left+=b,a.right+=b,g.oa(c)&&(a.top+=c,a.bottom+=c));return a};
g.Ng=function(a,b,c,d){this.left=a;this.top=b;this.width=c;this.height=d};
g.Pg=function(a){return new g.Lg(a.top,a.left+a.width,a.top+a.height,a.left)};
g.Qg=function(a,b){return a==b?!0:a&&b?a.left==b.left&&a.width==b.width&&a.top==b.top&&a.height==b.height:!1};
g.Rg=function(a,b){var c=Math.max(a.left,b.left),d=Math.min(a.left+a.width,b.left+b.width);if(c<=d){var e=Math.max(a.top,b.top),f=Math.min(a.top+a.height,b.top+b.height);if(e<=f)return a.left=c,a.top=e,a.width=d-c,a.height=f-e,!0}return!1};
g.Sg=function(a){return new g.Pd(a.width,a.height)};
g.Tg=function(a){return new g.Md(a.left,a.top)};
tba=function(){this.g={};this.o=0};
Ug=function(a,b){this.C=a;this.A=!0;this.g=b};
Vg=function(a,b){Ug.call(this,String(a),b);this.B=a;this.g=!!b};
Wg=function(a,b){Ug.call(this,a,b)};
Xg=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 Wg("",new g.Ng(c,b,Number(a[3])-c,Number(a[2])-b))}return new Wg("",new g.Ng(0,0,0,0))};
Zg=function(){Yg||(Yg=new tba);return Yg};
$g=function(a,b){a.g[b.C]=b};
g.bh=function(a,b,c){if(g.u(b))(b=ah(a,b))&&(a.style[b]=c);else for(var d in b){c=a;var e=b[d],f=ah(c,d);f&&(c.style[f]=e)}};
ah=function(a,b){var c=ch[b];if(!c){var d=Wa(b),c=d;void 0===a.style[d]&&(d=(g.de?"Webkit":g.dh?"Moz":g.sc?"ms":g.Oe?"O":null)+raa(d),void 0!==a.style[d]&&(c=d));ch[b]=c}return c};
eh=function(a,b){var c=a.style[Wa(b)];return"undefined"!==typeof c?c:a.style[ah(a,b)]||""};
g.fh=function(a,b){var c=g.Sd(a);return c.defaultView&&c.defaultView.getComputedStyle&&(c=c.defaultView.getComputedStyle(a,null))?c[b]||c.getPropertyValue(b)||"":""};
g.gh=function(a,b){return g.fh(a,b)||(a.currentStyle?a.currentStyle[b]:null)||a.style&&a.style[b]};
g.ih=function(a,b,c){if(b instanceof g.Md){var d=b.x;b=b.y}else d=b,b=c;a.style.left=hh(d,!1);a.style.top=hh(b,!1)};
jh=function(a){return new g.Md(a.offsetLeft,a.offsetTop)};
kh=function(a){try{var b=a.getBoundingClientRect()}catch(c){return{left:0,top:0,right:0,bottom:0}}g.sc&&a.ownerDocument.body&&(a=a.ownerDocument,b.left-=a.documentElement.clientLeft+a.body.clientLeft,b.top-=a.documentElement.clientTop+a.body.clientTop);return b};
g.lh=function(a){if(g.sc&&!g.lc(8))return a.offsetParent;var b=g.Sd(a),c=g.gh(a,"position"),d="fixed"==c||"absolute"==c;for(a=a.parentNode;a&&a!=b;a=a.parentNode)if(11==a.nodeType&&a.host&&(a=a.host),c=g.gh(a,"position"),d=d&&"static"==c&&a!=b.documentElement&&a!=b.body,!d&&(a.scrollWidth>a.clientWidth||a.scrollHeight>a.clientHeight||"fixed"==c||"absolute"==c||"relative"==c))return a;return null};
g.nh=function(a){for(var b=new g.Lg(0,window.Infinity,window.Infinity,0),c=g.Ud(a),d=c.g.body,e=c.g.documentElement,f=be(c.g);a=g.lh(a);)if(!(g.sc&&0==a.clientWidth||g.de&&0==a.clientHeight&&a==d)&&a!=d&&a!=e&&"visible"!=g.gh(a,"overflow")){var k=g.mh(a),l=new g.Md(a.clientLeft,a.clientTop);k.x+=l.x;k.y+=l.y;b.top=Math.max(b.top,k.y);b.right=Math.min(b.right,k.x+a.clientWidth);b.bottom=Math.min(b.bottom,k.y+a.clientHeight);b.left=Math.max(b.left,k.x)}d=f.scrollLeft;f=f.scrollTop;b.left=Math.max(b.left,
d);b.top=Math.max(b.top,f);c=g.ae(g.He(c)||window);b.right=Math.min(b.right,d+c.width);b.bottom=Math.min(b.bottom,f+c.height);return 0<=b.top&&0<=b.left&&b.bottom>b.top&&b.right>b.left?b:null};
g.mh=function(a){var b=g.Sd(a),c=new g.Md(0,0);var d=b?g.Sd(b):window.document;d=!g.sc||g.lc(9)||g.$d(g.Ud(d).g)?d.documentElement:d.body;if(a==d)return c;a=kh(a);b=g.ce(g.Ud(b).g);c.x=a.left+b.x;c.y=a.top+b.y;return c};
g.ph=function(a,b){var c=new g.Md(0,0),d=ee(g.Sd(a));if(!hc(d,"parent"))return c;var e=a;do{var f=d==b?g.mh(e):oh(e);c.x+=f.x;c.y+=f.y}while(d&&d!=b&&d!=d.parent&&(e=d.frameElement)&&(d=d.parent));return c};
g.rh=function(a,b){var c=g.qh(a),d=g.qh(b);return new g.Md(c.x-d.x,c.y-d.y)};
oh=function(a){a=kh(a);return new g.Md(a.left,a.top)};
g.qh=function(a){if(1==a.nodeType)return oh(a);a=a.changedTouches?a.changedTouches[0]:a;return new g.Md(a.clientX,a.clientY)};
g.th=function(a,b,c){if(b instanceof g.Pd)c=b.height,b=b.width;else if(void 0==c)throw Error("missing height argument");g.sh(a,b);a.style.height=hh(c,!0)};
hh=function(a,b){"number"==typeof a&&(a=(b?Math.round(a):a)+"px");return a};
g.sh=function(a,b){a.style.width=hh(b,!0)};
g.uh=function(a){var b=uba;if("none"!=g.gh(a,"display"))return b(a);var c=a.style,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};
uba=function(a){var b=a.offsetWidth,c=a.offsetHeight,d=g.de&&!b&&!c;return g.t(b)&&!d||!a.getBoundingClientRect?new g.Pd(b,c):(a=kh(a),new g.Pd(a.right-a.left,a.bottom-a.top))};
g.vh=function(a){var b=g.mh(a);a=g.uh(a);return new g.Ng(b.x,b.y,a.width,a.height)};
g.wh=function(a,b){var c=a.style;"opacity"in c?c.opacity=b:"MozOpacity"in c?c.MozOpacity=b:"filter"in c&&(c.filter=""===b?"":"alpha(opacity="+100*Number(b)+")")};
g.O=function(a,b){a.style.display=b?"":"none"};
g.xh=function(a){return"none"!=a.style.display};
yh=function(a){var b=new g.Ng(-Number.MAX_VALUE/2,-Number.MAX_VALUE/2,Number.MAX_VALUE,Number.MAX_VALUE),c=new g.Ng(0,0,0,0);if(!a||0==a.length)return c;for(var d=0;d<a.length;d++)if(!g.Rg(b,a[d]))return c;return b};
zh=function(a,b){var c=a.getBoundingClientRect(),d=g.ph(a,b);return new g.Ng(Math.round(d.x),Math.round(d.y),Math.round(c.right-c.left),Math.round(c.bottom-c.top))};
Ah=function(a,b,c){if(b&&c){a:{var d=Math.max(b.left,c.left);var e=Math.min(b.left+b.width,c.left+c.width);if(d<=e){var f=Math.max(b.top,c.top),k=Math.min(b.top+b.height,c.top+c.height);if(f<=k){d=new g.Ng(d,f,e-d,k-f);break a}}d=null}e=d?d.height*d.width:0;f=d?b.height*b.width:0;d=d&&f?Math.round(e/f*100):0;$g(a,new Ug("vp",d));d&&0<d?(e=g.Pg(b),f=g.Pg(c),e=e.top>=f.top&&e.top<f.bottom):e=!1;$g(a,new Vg(512,e));d&&0<d?(e=g.Pg(b),f=g.Pg(c),e=e.bottom<=f.bottom&&e.bottom>f.top):e=!1;$g(a,new Vg(1024,
e));d&&0<d?(e=g.Pg(b),f=g.Pg(c),e=e.left>=f.left&&e.left<f.right):e=!1;$g(a,new Vg(2048,e));d&&0<d?(b=g.Pg(b),c=g.Pg(c),c=b.right<=c.right&&b.right>c.left):c=!1;$g(a,new Vg(4096,c))}};
vba=function(a,b){var c=0;g.Pb(ee(),"ima","video","client","tagged")&&(c=1);var d=null;a&&(d=a());if(d){var e=d;d=Zg();d.g={};var f=new Vg(32,!0);f.A=!1;$g(d,f);f=ee().document;f=f.webkitVisibilityState||f.mozVisibilityState||f.visibilityState||f.msVisibilityState||"";$g(d,new Vg(64,"hidden"!=f.toLowerCase().substring(f.length-6)?!0:!1));try{var k=ee().top;try{var l=!!k.location.href||""===k.location.href}catch(r){l=!1}if(l){var m=Ie(e);var n=m&&0!=m.length?"1":"0"}else n="2"}catch(r){n="2"}$g(d,
new Vg(256,"2"==n));$g(d,new Vg(128,"1"==n));m=l=ee().top;"2"==n&&(m=ee());k=zh(e,m);$g(d,new Wg("er",k));try{var q=m.document&&!m.document.body?null:g.ae(m||window)}catch(r){q=null}q?(m=g.ce(g.Ud(m.document).g),$g(d,new Vg(16384,!!m)),q=m?new g.Ng(m.x,m.y,q.width,q.height):null):q=null;$g(d,new Wg("vi",q));if(q&&"1"==n){n=Ie(e);e=[];for(m=0;m<n.length;m++)(f=zh(n[m],l))&&e.push(f);e.push(q);q=yh(e)}Ah(d,k,q);d.o&&(n=hg()-d.o,$g(d,new Ug("ts",n)));d.o=hg()}else d=Zg(),d.g={},d.o=hg(),$g(d,new Vg(32,
!1));this.A=d;this.g=new Jg;this.g.set("ve",4);c&&Kg(this.g,1);g.Pb(ee(),"ima","video","client","crossdomainTag")&&Kg(this.g,4);g.Pb(ee(),"ima","video","client","sdkTag")&&Kg(this.g,8);g.Pb(ee(),"ima","video","client","jsTag")&&Kg(this.g,2);b&&Vb(b,"fullscreen",!1)&&Kg(this.g,16);this.o=d=null;if(c&&(c=g.Pb(ee(),"ima","video","client"),c.getEData)){this.o=c.getEData();if(c=g.Pb(ee(),"ima","video","client","getLastSnapshotFromTop"))if(n=c())this.o.extendWithDataFromTopIframe(n.tagstamp,n.playstamp,
n.lactstamp),c=this.A,d=n.er,n=n.vi,d&&n&&(d=Xg(d).getValue(),n=Xg(n).getValue(),e=null,Vb(c.g,"er",null)&&(e=Vb(c.g,"er",null).getValue(),e.top+=d.top,e.left+=d.left,$g(c,new Wg("er",e))),Vb(c.g,"vi",null)&&(q=Vb(c.g,"vi",null).getValue(),q.top+=d.top,q.left+=d.left,l=[],l.push(q),l.push(d),l.push(n),d=yh(l),Ah(c,e,d),$g(c,new Wg("vi",n))));a:{if(this.o){if(this.o.getTagLoadTimestamp){d=this.o.getTagLoadTimestamp();break a}if(this.o.getTimeSinceTagLoadSeconds){d=this.o.getTimeSinceTagLoadSeconds();
break a}}d=null}}this.g.set("td",hg()-mba(d))};
wba=function(a,b){try{var c=new vba(a,b),d=[],e=Number(c.g.get("eb"));c.g.remove("eb");var f,k=c.g,l=[],m;for(m in k.g)l.push(m+k.g[m]);(f=l.join("_"))&&d.push(f);if(c.o){var n=c.o.serialize();n&&d.push(n)}var q,r=c.A;f=e;k=[];f||(f=0);for(var w in r.g){var z=r.g[w];if(z instanceof Vg)z.getValue()&&(f|=z.B);else{var B,D=r.g[w];(B=D.A?D.o():"")&&k.push(w+B)}}k.push("eb"+String(f));(q=k.join("_"))&&d.push(q);c.g.set("eb",e);return d.join("_")}catch(L){return"tle;"+Ia(L.name,12)+";"+Ia(L.message,40)}};
g.Bh=function(){var a=window.navigator.userAgent.match(/Chrome\/([0-9]+)/);return a?(0,window.parseInt)(a[1],10):0};
Ch=function(a){return!!window.document.currentScript&&(-1!=window.document.currentScript.src.indexOf("?"+a)||-1!=window.document.currentScript.src.indexOf("&"+a))};
g.Dh=function(){return"function"==typeof window.__onGCastApiAvailable?window.__onGCastApiAvailable:null};
xba=function(a,b){var c=new window.XMLHttpRequest;c.onreadystatechange=function(){4==c.readyState&&200==c.status&&b(!0)};
c.onerror=function(){b(!1)};
try{c.open("GET",a,!0),c.send()}catch(d){b(!1)}};
g.Jh=function(a){if(a>=Eh.length)g.Fh();else{var b=Eh[a],c="chrome-extension://"+b+g.Gh;0<=Hh.indexOf(b)?xba(c,function(d){d?(window.chrome.cast=window.chrome.cast||{},window.chrome.cast.extensionId=b,g.Ih(c,g.Fh)):g.Jh(a+1)}):g.Ih(c,function(){g.Jh(a+1)})}};
g.Ih=function(a,b,c){var d=window.document.createElement("script");d.onerror=b;c&&(d.onload=c);d.src=a;(window.document.head||window.document.documentElement).appendChild(d)};
g.Fh=function(){var a=g.Dh();a&&a(!1,"No cast extension found")};
Kh=function(a,b,c){this.type=a;this.label=b;this.Wd=c};
Lh=function(a,b){return new Kh(a,1,b)};
Mh=function(a){return new Kh("m",3,a)};
Nh=function(a){return Lh("m",a)};
Oh=function(a,b,c,d){if(d)c=a+("&"+b+"="+c);else{var e="&"+b+"=",f=a.indexOf(e);0>f?c=a+e+c:(f+=e.length,e=a.indexOf("&",f),c=0<=e?a.substring(0,f)+c+a.substring(e):a.substring(0,f)+c)}return 2E3<c.length?g.t(void 0)?Oh(a,b,void 0,d):a:c};
Ph=function(a){try{return!!a&&null!=a.location.href&&hc(a,"foo")}catch(b){return!1}};
Qh=function(a,b){for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&b.call(void 0,a[c],c,a)};
yba=function(a){var b=0;Qh(a,function(){b++});
return b};
zba=function(){var a=pa;try{for(var b=null;b!=a;b=a,a=a.parent)switch(a.location.protocol){case "https:":return!0;case "file:":return!1;case "http:":return!1}}catch(c){}return!0};
Aba=function(){var a=Rh;if(!a)return"";var b=/.*[&#?]google_debug(=[^&]*)?(&.*)?$/;try{var c=b.exec((0,window.decodeURIComponent)(a));if(c)return c[1]&&1<c[1].length?c[1].substring(1):"true"}catch(d){}return""};
Th=function(a,b,c,d){a.addEventListener?a.addEventListener(b,c,Sh?d:d?d.capture||!1:!1):a.attachEvent&&a.attachEvent("on"+b,c)};
Uh=function(a,b,c){a.removeEventListener?a.removeEventListener(b,c,Sh?void 0:!1):a.detachEvent&&a.detachEvent("on"+b,c)};
Vh=function(a){a=a||pa;var b=a.context;if(!b)try{b=a.parent.context}catch(c){}try{if(b&&"pageViewId"in b&&"canonicalUrl"in b)return b}catch(c){}return null};
Wh=function(a,b,c){a.google_image_requests||(a.google_image_requests=[]);var d=a.document.createElement("img");if(c){var e=function(a){c(a);Uh(d,"load",e);Uh(d,"error",e)};
Th(d,"load",e);Th(d,"error",e)}d.src=b;a.google_image_requests.push(d)};
Yh=function(a){a.u_tz=-(new Date).getTimezoneOffset();try{var b=Xh.history.length}catch(c){b=0}a.u_his=b;if(b=!!Xh.navigator)b="unknown"!==typeof Xh.navigator.javaEnabled;a.u_java=b&&!!Xh.navigator.javaEnabled&&Xh.navigator.javaEnabled();Xh.screen&&(a.u_h=Xh.screen.height,a.u_w=Xh.screen.width,a.u_ah=Xh.screen.availHeight,a.u_aw=Xh.screen.availWidth,a.u_cd=Xh.screen.colorDepth);Xh.navigator&&Xh.navigator.plugins&&(a.u_nplug=Xh.navigator.plugins.length);Xh.navigator&&Xh.navigator.mimeTypes&&(a.u_nmime=
Xh.navigator.mimeTypes.length)};
bi=function(){if(Zh&&!Ph($h)){var a="."+ai.domain;try{for(;2<a.split(".").length&&!Ph($h);)ai.domain=a=a.substr(a.indexOf(".")+1),$h=window.parent}catch(b){}Ph($h)||($h=window)}return $h};
di=function(){var a=window.event||ci;if(!a)return null;var b;(b=a.which?1<<Bba[a.which-1]:a.button)&&a.shiftKey&&(b|=8);b&&a.altKey&&(b|=16);b&&a.ctrlKey&&(b|=32);return b};
ei=function(){this.g=!0};
fi=function(){return{visible:1,hidden:2,prerender:3,preview:4}[ai.webkitVisibilityState||ai.mozVisibilityState||ai.visibilityState||""]||0};
ii=function(){var a=Xh&&Xh.document;gi.e=-1;gi.i=6;gi.n=7;gi.t=8;if(!hi){var b=[];Qh(gi,function(a,c){b[a+1]=c});
var c=b.join("");hi=(c=a&&a[c])&&(0,g.A)(c,a)}return hi};
ji=function(a){a=a.match(/[\d]+/g);if(!a)return"";a.length=3;return a.join(".")};
ki=function(a){return(a=a.exec(g.Gb))?a[1]:""};
li=function(a){return 0<=g.Ra(Cba,a)};
pi=function(){return g.sc&&9>jc||g.dh||mi&&ni&&li("6.0.1")?!1:0<=g.Ra(oi,"11")};
si=function(a){a=a||!1;var b=qi&&0<=g.Ra(ri,9),c=ni&&g.kc(601);return!a&&(b||c)};
ti=function(){this.g=0;this.C=!1;this.o=-1;this.D=0;this.A=!1};
Dba=function(a,b){this.g=a;this.o=b};
ui=function(a,b,c){this.url=a;this.ht=b;this.tx=!!c;this.depth=g.oa(void 0)?void 0:null};
wi=function(a){a=a?a:vi();for(var b=new ui(pa.location.href,pa,!1),c=a.length-1,d=c;0<=d;--d){var e=a[d];if(e.url&&!e.tx){b=e;break}}d=null;e=a.length&&a[c].url;0!=b.depth&&e&&(d=a[c]);return new Dba(b,d)};
vi=function(){var a=pa,b=[],c=null;do{var d=a;if(Ph(d)){var e=d.location.href;c=d.document&&d.document.referrer||null}else e=c,c=null;b.push(new ui(e||"",d));try{a=d.parent}catch(f){a=null}}while(a&&d!=a);a=0;for(d=b.length-1;a<=d;++a)b[a].depth=d-a;d=pa;if(d.location&&d.location.ancestorOrigins&&d.location.ancestorOrigins.length==b.length-1)for(a=1;a<b.length;++a)e=b[a],e.url||(e.url=d.location.ancestorOrigins[a-1]||"",e.tx=!0);return b};
xi=function(a,b){var c=a||Xh;null!==c&&c.top!=c&&(c=c.top);try{return c.document&&!c.document.body?new g.Pd(-1,-1):b?(new g.Pd(c.innerWidth,c.innerHeight)).round():g.ae(c||window).round()}catch(d){return new g.Pd(-12245933,-12245933)}};
Di=function(a){var b=0<=yi?zi()-yi:-1,c=Ai?zi()-Bi:-1,d=0<=Ci?zi()-Ci:-1;if(79463068==a)return 500;if(947190538==a){a=[4E3];var e=[250,1E3]}else if(947190541==a)a=[4E3],e=[100,1E3];else{if(947190542==a)return 100;if(79463069==a)return 200;a=[2E3,4E3];e=[250,500,1E3]}var f=b;-1!=c&&c<b&&(f=c);for(var k,b=0;b<a.length;++b)if(f<a[b]){k=e[b];break}void 0===k&&(k=e[a.length]);return-1!=d&&1500<d&&4E3>d?500:k};
zi=function(){return(new Date).getTime()-Eba};
Ei=function(){var a=g.ge("DIV");a.style.cssText="position:relative;left:0px;top:0px;width:0;height:0;";return a};
Gba=function(a){return Fi(a,function(a,c){return!(!hc(c,"style")||!c.style||"none"!==eh(c,"display"))},function(a){return a},!1)?!0:Fba(a)};
Fba=function(a){var b=!g.sc||g.kc(8);return Fi(a,function(a,d){var c=hc(d,"style")&&d.style&&eh(d,"visibility");return{hidden:"hidden"===c,visible:b&&"visible"===c}},function(a){return a.hidden||a.visible},{hidden:!1,
visible:!1}).hidden};
Fi=function(a,b,c,d){if(!a)return d;d=Gi(a,b,c,d);if(!d.done)try{var e=g.Sd(a),f=e&&ee(e);return Fi(f&&f.frameElement,b,c,d.value)}catch(k){}return d.value};
Gi=function(a,b,c,d){if(!a)return{value:d,done:!1};d=b(d,a);var e=c(d,a);return!e&&hc(a,"parentElement")?Gi(g.ve(a),b,c,d):{done:e,value:d}};
Hi=function(a){return new g.Lg(a.top,a.right,a.bottom,a.left)};
Ii=function(a){return null!=a&&0<=a&&1>=a};
Ji=function(){ti.call(this);this.B=!1;this.volume=void 0;this.paused=!1};
Ki=function(a){return Ii(a.volume)&&.1<=a.volume};
Li=function(){this.Za=[0,0,0,0,0];this.V=[0,0,0,0,0];this.ha=[0,0,0,0,0];this.K=this.Sa=0;this.oa=this.B=-1;this.ua=1E3};
Mi=function(a,b,c){for(;0<=b&&4>=b;b++)a[b]+=c};
Ni=function(a){var b=-1;1<=a?b=0:.75<=a?b=1:.5<=a?b=2:.3<=a?b=3:0<a&&(b=4);return b};
Oi=function(a,b,c){c=void 0===c?{}:c;this.error=a;this.context=b.context;this.line=b.line||-1;this.msg=b.message||"";this.file=b.file||"";this.id=b.id||"jserror";this.meta=c};
Pi=function(a,b,c,d,e){this.D=c||4E3;this.A=a||"&";this.F=b||",$";this.B=g.t(d)?d:"trn";this.J=e||null;this.C=!1;this.o={};this.G=0;this.g=[]};
Qi=function(a,b){var c={};c[a]=b;return[c]};
Si=function(a,b,c,d,e){var f=[];Qh(a,function(a,l){var k=Ri(a,b,c,d,e);k&&f.push(l+"="+k)});
return f.join(b)};
Ri=function(a,b,c,d,e){if(null==a)return"";b=b||"&";c=c||",$";"string"==typeof c&&(c=c.split(""));if(a instanceof Array){if(d=d||0,d<c.length){for(var f=[],k=0;k<a.length;k++)f.push(Ri(a[k],b,c,d+1,e));return f.join(c[d])}}else if("object"==typeof a)return e=e||0,2>e?(0,window.encodeURIComponent)(Si(a,b,c,d,e+1)):"...";return(0,window.encodeURIComponent)(String(a))};
Ti=function(a,b,c,d){a.g.push(b);a.o[b]=Qi(c,d)};
Ui=function(a,b,c){var d=a.G++;b=Qi(b,c);a.g.push(d);a.o[d]=b};
Vi=function(a,b,c,d){b=b+"//"+c+d;var e=Hba(a)-d.length-0;if(0>e)return"";a.g.sort(function(a,b){return a-b});
d=null;c="";for(var f=0;f<a.g.length;f++)for(var k=a.g[f],l=a.o[k],m=0;m<l.length;m++){if(!e){d=null==d?k:d;break}var n=Si(l[m],a.A,a.F);if(n){n=c+n;if(e>=n.length){e-=n.length;b+=n;c=a.A;break}else a.C&&(c=e,n[c-1]==a.A&&--c,b+=n.substr(0,c),c=a.A,e=0);d=null==d?k:d}}f="";a.B&&null!=d&&(f=c+a.B+"="+(a.J||d));return b+f+""};
Hba=function(a){if(!a.B)return a.D;var b=1,c;for(c in a.o)b=c.length>b?c.length:b;return a.D-a.B.length-b-a.A.length-1};
Wi=function(a,b,c,d){if(Math.random()<(d||a.g))try{if(c instanceof Pi)var e=c;else e=new Pi,Qh(c,function(a,b){Ui(e,b,a)});
var f=Vi(e,a.B,a.o,a.A+b+"&");f&&Wh(pa,f)}catch(k){}};
Xi=function(a,b,c,d){this.label=a;this.type=b;this.value=c;this.duration=void 0===d?0:d;this.uniqueId=this.label+"_"+this.type+"_"+Math.random()};
Yi=function(a,b){this.events=[];this.g=b||pa;var c=null;b&&(b.google_js_reporting_queue=b.google_js_reporting_queue||[],this.events=b.google_js_reporting_queue,c=b.google_measure_js_timing);a:{try{var d=(this.g||pa).top.location.hash;if(d){var e=d.match(/\bdeid=([\d,]+)/);var f=e&&e[1]||"";break a}}catch(k){}f=""}f=f.indexOf&&0<=f.indexOf("1337");this.o=(this.o=null!=c?c:Math.random()<a)||f;c=this.g.performance;this.D=!!(c&&c.mark&&c.clearMarks&&f)};
Zi=function(){var a=pa.performance;return a&&a.now?a.now():(0,g.G)()};
$i=function(a,b,c,d){this.B=a;this.D=b;this.A=c;this.C=this.o;this.g=void 0===d?null:d};
bj=function(a,b,c,d,e){try{if(a.g&&a.g.o){var f=a.g.start(b.toString(),3);var k=c();a.g.end(f)}else k=c()}catch(m){c=a.A;try{a.g&&f&&a.g.ov(f);var l=aj(m);c=(e||a.C).call(a,b,l,void 0,d)}catch(n){a.o(217,n)}if(!c)throw m;}return k};
dj=function(a,b,c,d){var e=cj;return function(f){for(var k=[],l=0;l<arguments.length;++l)k[l-0]=arguments[l];return bj(e,a,function(){return b.apply(c,k)},d,void 0)}};
aj=function(a){return new ej(fj(a),a.fileName,a.lineNumber)};
fj=function(a){var b=a.toString();a.name&&-1==b.indexOf(a.name)&&(b+=": "+a.name);a.message&&-1==b.indexOf(a.message)&&(b+=": "+a.message);if(a.stack){a=a.stack;var c=b;try{-1==a.indexOf(c)&&(a=c+"\n"+a);for(var d;a!=d;)d=a,a=a.replace(/((https?:\/..*\/)[^\/:]*:\d+(?:.|\n)*)\2/,"$1");b=a.replace(/\n */g,"\n")}catch(e){b=c}}return b};
ej=function(a,b,c){Oi.call(this,Error(a),{message:a,file:void 0===b?"":b,line:void 0===c?-1:c})};
gj=function(a,b){return bj(cj,a,b,void 0,Iba)};
hj=function(a,b,c,d){return dj(a,b,c,d)};
jj=function(a,b){cj.o(a,b,void 0,void 0)};
kj=function(a,b){this.A=null;this.F=a;this.J=b||1;this.o="u"};
lj=function(a,b){var c=b.right-b.left,d=b.bottom-b.top,e=Math.floor(c/2),f=Math.floor(d/2);switch(a.J){case 4:return a.F?(e=Math.floor(.3*c),f=Math.floor(.3*d),[new g.Md(e,f),new g.Md(c-e,f),new g.Md(e,d-f),new g.Md(c-e,d-f)]):[new g.Md(e,0),new g.Md(0,f),new g.Md(e,d-1),new g.Md(c-1,f)];case 3:return[new g.Md(c-1,0),new g.Md(e,f),new g.Md(0,d-1)];default:return[new g.Md(e,f)]}};
mj=function(a,b){try{var c=b||a.A.getBoundingClientRect()}catch(e){c=new g.Lg(0,0,0,0)}var d=lj(a,c);(0,g.H)(d,function(a){a.x+=c.left;a.y+=c.top});
return d};
nj=function(a,b){kj.call(this,a,b);this.g=[];this.G=!1;this.B=-1;this.C=this.D=0};
oj=function(a,b,c){this.snapshot=a;this.o=b;this.g=c};
Jba=function(a,b,c){if(!(b&&b.getBoundingClientRect&&0<=g.Ra(oi,"11")&&c)||g.sc&&9>jc||0<a.g.length)return!1;try{var d=b.getBoundingClientRect()}catch(n){return!1}var e="DIV"==b.tagName||"INS"==b.tagName,f=g.Sd(b),k=[];if(e){var l=Ei();d=lj(a,d);(0,g.H)(d,function(a,b){var d=new pj("e",f,c,String(b));this.g.push(d);k.push((0,g.A)(d.G,d,l,a))},a);
oe(b,l,0)}else d=mj(a,d),(0,g.H)(d,function(a,d){var e=new pj("e",f,c,String(d));this.g.push(e);k.push((0,g.A)(e.F,e,b,a))},a);
var m=!0;(0,g.H)(k,function(a){m=m&&a()});
m?(a.o="l",a.A=b,a.G=!e):((0,g.H)(a.g,function(a){a.remove()}),a.g=[]);
return m};
Kba=function(a){if(a.A&&a.G){var b=mj(a);(0,g.H)(b,function(a,b){this.g[b]&&qj(this.g[b],a)},a)}};
rj=function(a){(0,g.H)(a.g,function(a){a.remove()});
a.g=[];a.o="d"};
Pba=function(a){var b=(0,g.G)(),c=a.D?b-a.D:0,d=-1,e=(0,g.I)(a.g,function(a){return sj(a,b)});
4==a.g.length?d=a.F?Lba(e):Mba(e):3==a.g.length?d=Nba(e):1==a.g.length&&(d=[-1,0,1,2,3,5][sj(a.g[0],b)+1]);a.C=d==a.B?a.C+c:0;c=new oj(d,a.B,c);a.B=d;a.D=b;Oba(a,d);Kba(a);return c};
uj=function(a){var b=Db(g.Lb(tj));(0,g.H)(a,function(a){0<=a&&++b[a]});
return b};
Mba=function(a){a=uj(a);return 4==a[4]?6:3<=a[4]?5:0<a[4]?4:4==a[2]?2:4==a[1]?1:4==a[0]?0:3};
Nba=function(a){var b=uj(a);return 4==a[0]&&4==a[2]?6:4==a[1]?5:0<b[4]?4:3==b[2]?2:3==b[1]?1:3==b[0]?0:3};
Lba=function(a){a=uj(a);return 3<=a[4]?5:2==a[4]?8:0<a[4]?7:4==a[2]?2:4==a[1]?1:4==a[0]?0:3};
Oba=function(a,b){if(0==b&&vj(a))a.o="n";else switch(b){case -1:a.o="d";break;case 0:a.o="l";break;case 1:a.o="f";break;case 2:a.o="c";break;case 3:case 4:case 5:case 6:a.o="r"}};
vj=function(a){return"n"==a.o?!0:"l"==a.o&&3E3<=a.C};
pj=function(a,b,c,d){this.g=null;this.D=a;this.Aa="e"==a?String(c)+"~"+String(d):"";this.o=[];this.A=-1;this.C=0;this.B=Db(g.Lb(Qba));this.K=Db(g.Lb(tj));"e"==this.D&&(wj[this.Aa]=(0,g.A)(this.J,this));g.sc?(a=b.createElement("div"),a.innerHTML='<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" style="opacity:0;-ms-filter:\'progid:DXImageTransform.Microsoft.Alpha(opacity=0)\';filter:alpha(opacity=0)"><param name="movie" value="'+xj(this,!0)+'"></param><param name="allowscriptaccess" value="always"></param><param name="wmode" value="transparent"></param></object>',
a=a.firstChild,a.id=String(Math.random())):a=Rba(this,b);a.width=1;a.height=1;a.style.zIndex=-999999;this.g=a};
Rba=function(a,b){function c(a,c,d){var e=b.createElement("param");e.name=c;e.value=d;a.appendChild(e)}
var d=xj(a),e=b.createElement("object");e.type="application/x-shockwave-flash";e.data=d;c(e,"movie",d);c(e,"allowscriptaccess","always");c(e,"wmode","opaque");e.style.visibility="hidden";e.style.opacity=0;return e};
xj=function(a,b){var c=Cg("//pagead2.googlesyndication.com/osd/hbe.swf","id",a.Aa);b&&(c=Cg(c,"delay","1"));return c};
qj=function(a,b){a.g&&!Nd(b,jh(a.g))&&g.ih(a.g,b)};
sj=function(a,b){if("e"==a.D){var c=null;try{c=a.g.it()}catch(f){}null===c?(c=0,0<a.A&&(c=2)):c=c?3:4;++a.K[c+1];a.A=c}else{var d=Number(b),c=null;try{c=a.g.fc()}catch(f){}var e=c;Sba(a,e,d);c=a.o[a.o.length-1];if(null===e){if(e=d=0,0<a.A||g.oa(c.ho))e=d=2}else null===c.ho||c.timeMs>=d?(d=10<=e?4:0,e=0):e>c.ho?(c=(e-c.ho)/(d-c.timeMs)*1E3,d=10<=c?4:3,c=0==c?1:1>c?3:4>c?4:23>c?6:26>c?8:9,6==a.C&&6==c&&(c=7),e=c):e=d=1;6==a.C&&(--a.B[6],4==e||8==e?++a.B[5]:++a.B[7]);++a.B[e];a.A=d;a.C=e}return a.A};
Sba=function(a,b,c){var d=c-1E3,e=a.o.length;(0,g.H)(a.o,function(a,b){a.timeMs<=d&&(e=Math.min(e,b+1))});
var f=a.o.length-e;0<f&&a.o.splice(e,f);a.o.unshift({ho:b,timeMs:c})};
yj=function(a,b){kj.call(this,a,b);this.g=[];this.D=!1;this.C=0;this.B=-1};
Tba=function(a,b){var c=b.getBoundingClientRect();var d="DIV"==b.tagName||"INS"==b.tagName,e=g.Sd(b),f=!0,k=a.g;if(d){var l=Ei();c=lj(a,c);oe(b,l,0);(0,g.H)(c,function(a){var b=new zj(e);k.push(b);var c;if(c=f)if(b.g){b.g.style.position="absolute";Aj(b,a);a=!0;try{l.appendChild(b.g)}catch(r){a=!1}c=a}else c=!1;f=c})}else c=mj(a,c),(0,g.H)(c,function(a){var c=new zj(e);
k.push(c);var d;if(d=f)if(c.g&&b.parentNode){c.g.style.position="fixed";Aj(c,a);a=!0;try{g.ne(c.g,b)}catch(r){a=!1}d=a}else d=!1;f=d});
f?(a.A=b,a.D=!d):((0,g.H)(k,function(a){a.remove()}),a.g=[]);
return f};
Uba=function(a){if(a.A&&a.D){var b=mj(a);(0,g.H)(b,function(a,b){this.g[b]&&Aj(this.g[b],a)},a)}};
Vba=function(a){(0,g.H)(a.g,function(a){a.remove()});
a.g=[]};
$ba=function(a){var b=(0,g.G)(),c=a.C?b-a.C:0,d=saa(a.g,function(a){return a.isVisible(b)}),d=4==a.g.length?a.F?Wba[d]:Xba[d]:3==a.g.length?Yba[d]:1==a.g.length?Zba[d]:-1,c=new oj(d,a.B,c);
a.B=d;a.C=b;Uba(a);return c};
zj=function(a){this.g=null;this.A=this.o=0;aca(this,a)};
aca=function(a,b){var c=b.createElement("iframe");c.srcdoc="";c.frameBorder=0;c.style.width="1px";c.style.height="1px";c.style.opacity="0";c.style.zIndex=-999999;a.g=c;var d=dj(245,a.B,a,void 0);c.addEventListener("load",hj(244,function(){c.contentWindow.requestAnimationFrame(d)}))};
Aj=function(a,b){a.g&&!Nd(b,jh(a.g))&&g.ih(a.g,b)};
Bj=function(a,b,c,d){c=dj(d,c,void 0,void 0);Th(a,b,c,{capture:void 0});return c};
Cj=function(){};
Dj=function(){this.G=!1;this.J=void 0;this.A=!Ph(Xh.top);var a=vi();this.domain=0<a.length&&null!=a[a.length-1]&&null!=a[a.length-1].url?g.vg(a[a.length-1].url)||"":"";this.B=this.K=this.D=this.o=null;this.O=0;this.C=!1;this.F=new g.Lg(0,0,0,0);this.M=0;this.g="geo"};
Fj=function(a,b,c){this.position=Ej.clone();this.Pc=0;this.uc=this.Lm();this.tc=-2;this.Ai=(0,g.G)();this.Jg=-1;this.O=b;this.ca=-1!=b;this.Ra=null;this.opacity=-1;this.Hg=c;this.Lg=this.Cc=g.y;this.G=this.element=a;this.fa=this.B=null;this.ka=1;this.ne=this.da=this.sa=!1;this.tb=1;this.Ed=!0;this.D=!1;this.yi=Dj.getInstance().O++;this.domain=null;this.kc=0;this.g=this.Yp();this.Ig=-1;this.Ta=new g.Lg(0,0,0,0);this.zi=new ei};
Gj=function(a,b){return null===a||null===b?Ej.clone():new g.Lg(Math.max(a.top,b.top),Math.min(a.right,b.right),Math.min(a.bottom,b.bottom),Math.max(a.left,b.left))};
bca=function(a,b,c,d,e){if(a.ca){var f=Xh.innerWidth,k=Xh.innerHeight,l=new g.Lg(Math.round(Xh.mozInnerScreenY),Math.round(Xh.mozInnerScreenX+f),Math.round(Xh.mozInnerScreenY+k),Math.round(Xh.mozInnerScreenX));c=new g.Lg(Xh.screenY+d,Xh.screenX+c.width,Xh.screenY+c.height,Xh.screenX);e||(d=new g.Lg(l.top-c.top,l.right-c.left,l.bottom-c.top,l.left-c.left),d.top>a.position.top?a.position=d:(a.position.right=a.position.left+f,a.position.bottom=a.position.top+k),a.Pc=f*k);a.ag(l,c,b,e,!0,!0)}};
dca=function(a,b,c){var d;if(a.ca&&(d=ii())){c||Hj(a,Xh,!0);if(a.ne){d=cca(a,d);var e=!0}else{e=Math.floor((a.position.left+a.position.right)/2);var f=Math.floor((a.position.top+a.position.bottom)/2),k=g.ce(window.document);d=d(e-k.x,f-k.y)?.5:0;e=!1}a.ag(a.position,d,b,c,!0,e)}};
Ij=function(a,b,c){if(c(b))return b;for(;;){var d=Math.floor((a+b)/2);if(d==a||d==b)return a;c(d)?a=d:b=d}};
cca=function(a,b){var c=g.ce(window.document),d=a.tb,e=Math.floor(a.position.left-c.x)+1,f=Math.floor(a.position.top-c.y)+1,k=Math.floor(a.position.right-c.x)-d,l=Math.floor(a.position.bottom-c.y)-d,c=(l-f)*(k-e);if(f>l||e>k)return 0;var d=!!b(e,f),m=!!b(k,l);if(d&&m)return 1;var n=!!b(k,f),q=!!b(e,l);if(d)l=Ij(f,l,function(a){return!!b(e,a)}),k=Ij(e,k,function(a){return!!b(a,f)});
else if(n)l=Ij(f,l,function(a){return!!b(k,a)}),e=Ij(k,e,function(a){return!!b(a,f)});
else if(q)f=Ij(l,f,function(a){return!!b(e,a)}),k=Ij(e,k,function(a){return!!b(a,l)});
else if(m)f=Ij(l,f,function(a){return!!b(k,a)}),e=Ij(k,e,function(a){return!!b(a,l)});
else{var r=Math.floor((e+k)/2),w=Math.floor((f+l)/2);if(!b(r,w))return 0;f=Ij(w,f,function(a){return!!b(r,a)});
l=Ij(w,l,function(a){return!!b(r,a)});
e=Ij(r,e,function(a){return!!b(a,w)});
k=Ij(r,k,function(a){return!!b(a,w)})}return(l-f)*(k-e)/c};
eca=function(a,b,c,d,e){a.ca&&(d||Hj(a,Xh,e),a.ag(a.position,c,b,d,!1,!0))};
Jj=function(a,b,c){if(a.ca){var d=c?a.g.g:a.kc,e;if(e=a.Ta){e=a.Ta;var f=new g.Lg(0,0,0,0);e=!(e==f||e&&f&&e.top==f.top&&e.right==f.right&&e.bottom==f.bottom&&e.left==f.left)}e&&(d=Mg(a.Ta.clone(),a.position.left,a.position.top));a.ag(a.position,d,b,c,!0,!0)}};
fca=function(a,b,c){if(a.ca&&a.ba){var d=bi(),e=Dj.getInstance();Hj(a,d,e.A);d=a.ba.o();e=d.o()||d.A();a.ag(a.position,d.g(),b,c,!0,e)}};
Hj=function(a,b,c,d){if(d)a.position=d;else{b=c?b:b.top;try{var e=Ej.clone(),f=new g.Md(0,0);if(a.G){var k=1==a.Hg;!c&&k&&Gba(a.G)||(e=a.G.getBoundingClientRect());f=g.ph(a.G,b)}var l=f.x,m=f.y;a.position=new g.Lg(Math.round(m),Math.round(l+(e.right-e.left)),Math.round(m+(e.bottom-e.top)),Math.round(l))}catch(n){a.position=Ej.clone()}}a.Pc=(a.position.bottom-a.position.top)*(a.position.right-a.position.left)};
Kj=function(a){a=a.uc;return a.Sa>=a.ua};
Lj=function(a,b){var c=Math.pow(10,b);return Math.floor(a*c)/c};
gca=function(a){a.ba||a.B&&rj(a.B)};
jca=function(a,b){var c=!1,d=a.G;b.document&&b.document.body&&12==a.Hg&&(d=b.document.body);if(null===d)return!1;gj(152,function(){var e=new b.IntersectionObserver(function(c){try{Mj(b,c,a)}catch(k){try{e.unobserve(d),jj("osd_adblock::nioc",k)}catch(l){}}},hca);
e.observe(d);ica(d);c=!0});
return c};
ica=function(a){if(a&&(a=a.style)){var b=a.opacity;a.opacity=.98;a.opacity=.99;a.opacity=b}};
kca=function(a,b){var c=!1;gj(151,function(){var d=Vh(b).j1(function(c){try{Mj(b,c,a)}catch(f){try{d(),jj("osd_adblock::aioc",f)}catch(k){}}});
c=!0});
return c};
Mj=function(a,b,c){if(!b||!b.length||0>=b.length)var d=null;else{d=b[0];for(var e=1;e<b.length;e++)b[e].time>d.time&&(d=b[e])}d&&(b=Hi(d.boundingClientRect),e=Hi(d.intersectionRect),c.g.g=g.Hd(d.intersectionRect.width*d.intersectionRect.height/(d.boundingClientRect.width*d.boundingClientRect.height),0,1),c.kc=c.g.g,Hj(c,a,!0,b),a=Gj(b,e),c.Ta=0>=c.Pc||a.top>=a.bottom||a.left>=a.right?new g.Lg(0,0,0,0):Mg(a,-b.left,-b.top))};
Nj=function(a,b,c,d){d&&(a.Lg=d);switch(c){case "nio":return jca(a,b);case "aio":return kca(a,b);case "swf":return a.gp();case "raf":return a.Bs();case "geo":case "xde":case "iem":return!0}return!1};
Oj=function(){this.g={};this.g.vs=[1,0];this.g.vw=[0,1];this.g.am=[2,2];this.g.a=[4,4];this.g.f=[8,8];this.g.bm=[16,16];this.g.b=[32,32];this.g.avw=[0,64];this.g.cm=[128,128];this.g.pv=[256,256];this.g.gdr=[0,512];this.g.p=[0,1024];this.g.r=[0,2048];this.g.m=[0,4096];this.g.um=[0,8192];this.g.ef=[0,16384];this.g.s=[0,32768];this.o={};for(var a in this.g)0<this.g[a][1]&&(this.o[a]=0);this.A=0};
lca=function(a){return Pj(a,g.Ob(a.g))};
Pj=function(a,b){var c=0,d;for(d in a.o)g.eb(b,d)&&1==a.o[d]&&(c+=a.g[d][1],a.o[d]=2);return c};
mca=function(a){var b=0,c;for(c in a.o){var d=a.o[c];if(1==d||2==d)b+=a.g[c][1]}return b};
Qj=function(){this.g=[]};
Rj=function(){Li.call(this);this.sa=this.P=this.da=this.ca=this.ba=this.o=0;this.C=-1;this.D=this.J=this.G=this.F=this.ga=this.ra=this.M=0;this.fa=[0,0,0,0,0];this.A=this.g=-1;this.O=this.ka=0;this.ua=2E3};
Sj=function(a,b,c){var d=a.sa;Ai||c||-1==a.C||(d+=b-a.C);return d};
Tj=function(a,b,c,d){Fj.call(this,b,c,d);this.sb=0;this.J={};this.A=new Oj;this.Oe={};this.Bj=this.C="";this.Mg=!1;this.F=[];this.rf=this.Bh=this.Ch=this.P=!1;this.K=void 0;this.M=-1;this.Zb=void 0;this.ob=!1;this.Fa=this.Za=0;this.Ia=1;this.Oa=-1;this.Vb=this.oe=!1;this.V=this.Kg=0;this.Rd=!1;this.sf=this.tf=-1;this.Na=this.ra=this.o=0;this.Ah=this.Bb=-1;this.Fg=0;this.Pe=[0,0,0,0,0];this.ha=this.Cd=this.zb=0;this.Sa=-1;this.Dd=0;this.ua=!1;this.Gb=null;this.ke=this.Ng=!1;this.kb=g.y;this.oa=[this.Lm()];
this.Gg=!1;this.ne=!0;this.tb=2;b=Dj.getInstance();Hj(this,a,b.A);this.ga={};this.ga.pause="p";this.ga.resume="r";this.ga.skip="s";this.ga.mute="m";this.ga.unmute="um";this.ga.exitfullscreen="ef"};
Uj=function(a){return g.t(a)?Number(a)?Lj(a,3):0:a};
Vj=function(a,b){if(-1==a.O)return 0;var c=b-a.O||1,d=1E4;g.t(a.M)&&-1!=a.M&&(d=Math.max(d,a.M/3));return c>d?1:c};
Wj=function(a,b,c){return 15E3<=b?!0:a.oe?c?!0:-1!=a.M?b>=a.M/2:-1!=a.Oa?b>=a.Oa:!1:!1};
Xj=function(a,b){for(var c=a.F,d=uf({YR:0,hn:void 0}),e=c.length;e<b+1;)c.push(d()),e++;a.F[b]={viewableArea:Lj(a.g.g,2),instantaneousState:a.A.A}};
Zj=function(a,b){var c=a.Oe[b];if(null!=c)return c;a:if(g.eb(nca,b))c=!0;else{c=a.J[b];if(g.t(c)&&(a.J[b]=!0,!c)){c=!0;break a}c=!1}c=Yj(a,c,c);"fully_viewable_audible_half_duration_impression"==b&&(c.std="csm",c.ic=Pj(a.A,["gdr"]));return c};
Yj=function(a,b,c){if(a.da)return{"if":0};var d=a.position.clone();d.round();var e=(0,g.I)(a.F,function(a){return 100*a.YR|0}),f=Dj.getInstance(),k=a.Ce(),l={};
a.Gg&&(l.avms="raf");l["if"]=f.A?1:void 0;l.sdk=a.K?a.K:void 0;l.t=a.Ai;l.p=[d.top,d.left,d.bottom,d.right];l.tos=k.Za;l.mtos=k.V;l.ps=void 0;l.pt=e;l.vht=Sj(k,zi(),!!a.P);l.mut=k.ra;l.a=Uj(a.g.volume);l.mv=Uj(k.A);l.fs=a.D?1:0;l.ft=k.ka;l.at=k.ga;l.as=.1<=k.g?1:0;l.atos=k.fa;l.uac=a.Kg;l.vpt=k.o;"nio"==f.g&&(l.nio=1,l.avms="nio");l.gmm="4";l.gdr=Wj(a,k.o,!0)?1:0;a.ne&&(l.efpf=a.tb);a.B&&(l.swf=a.B.getStatus(),l.px=a.ka,l.avms="swf");0<a.Dd&&(l.nnut=a.Dd);l.tcm=a.Ia;l.nmt=a.Cd;l.bt=a.ha;l.pst=a.Sa;
l.vpaid=a.Zb;l.dur=a.M;l.vmtime=a.Za;l.is=a.A.A;1<=a.F.length&&(l.i0=a.F[0].hn);2<=a.F.length&&(l.i1=a.F[1].hn);3<=a.F.length&&(l.i2=a.F[2].hn);4<=a.F.length&&(l.i3=a.F[3].hn);l.cs=mca(a.A);b&&(l.ic=lca(a.A),l.dvpt=k.ba,l.dvs=k.da,l.dfvs=k.P,l.davs=k.J,l.dafvs=k.D,c&&(k.ba=0,k.da=0,k.P=0,k.J=0,k.D=0),Kj(a)&&(l.dtos=k.ca,l.dav=k.G,l.dtoss=a.sb+1,c&&(k.ca=0,k.G=0,a.sb++)),l.dat=k.F,l.dft=k.O,c&&(k.F=0,k.O=0));f.B&&(l.ps=[f.B.width,f.B.height]);f.o&&(l.bs=[f.o.width,f.o.height]);f.D&&(l.scs=[f.D.width,
f.D.height]);l.dom=f.domain;a.sa&&(l.fmf="1",l.px=a.ka);a.V&&(l.vds=a.V);a.o&&(l.vmer=a.o);a.ra&&(l.vmmk=a.ra);a.Na&&(l.vmiec=a.Na);a.ba&&(l.avms=a.ba.A(),g.Zb(l,a.ba.g()));"exc"==f.g&&(l.femt=a.Bb,l.femvt=a.Ah,l.emc=a.Fg,l.emb=a.Pe,l.emuc=a.zb,l.avms="exc");ak()?(l.c=Lj(a.g.g,2),l.ss=Lj(oca(a),2)):l.tth=zi()-bk;l.mc=Lj(k.oa,2);l.nc=Lj(k.B,2);l.mv=Uj(k.A);l.nv=Uj(k.g);l.lte=Lj(a.tc,2);b=a.oa[a.oa.length-1];l.qmtos=b.V;l.qnc=Lj(b.B,2);l.qmv=Uj(b.A);l.qnv=Uj(b.g);l.qas=.1<=b.g?1:0;l.qi=a.C;null!==a.Gb&&
(l.nvat=a.Gb?1:0);l.avms||(l.avms="geo");return l};
oca=function(a){if(a.D)return 1;var b=Xh.screen.width*Xh.screen.height;return 0>=b?-1:Math.min(a.Pc*a.g.g/b,1)};
ck=function(a){for(var b=0,c=a,d=0;a&&a!=a.parent;)a=a.parent,d++,Ph(a)&&(c=a,b=d);return{ht:c,level:b}};
pca=function(){this.S={}};
qca=function(a){var b=[],c=[];g.Ib(a,function(a,e){if(!(e in Object.prototype)&&"undefined"!=typeof a){g.sa(a)&&(a=a.join(","));var d=[e,"=",a].join("");switch(e){case "r":case "tt":case "error":case "mtos":case "tos":case "p":case "bs":case "aio":case "nio":case "swf":case "iem":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)};
g.dk=function(a,b,c){g.M.call(this);this.B=null!=c?(0,g.A)(a,c):a;this.A=b;this.o=(0,g.A)(this.KP,this);this.g=[]};
ek=function(a){a.Th=g.fg(a.o,a.A);a.B.apply(null,a.g)};
gk=function(){return!fk()&&(Hb("iPod")||Hb("iPhone")||Hb("Android")||Hb("IEMobile"))};
fk=function(){return Hb("iPad")||Hb("Android")&&!Hb("Mobile")||Hb("Silk")};
hk=function(){var a=Dj.getInstance().g;return"nio"==a||"aio"==a};
qk=function(){if(!ik){ik=!0;var a=pa.requestAnimationFrame||pa.webkitRequestAnimationFrame||pa.mozRequestAnimationFrame||pa.oRequestAnimationFrame||pa.msRequestAnimationFrame;if(!jk&&!hk()){if(a){var b=dj(136,kk,void 0,void 0);var c=function(){a(function(){Xh.setTimeout(b,0)})}}else c=kk;
lk=new g.dk(dj(137,c,void 0,void 0),100);c=(0,g.A)(lk.Xi,lk);jk=Bj(Xh,"scroll",c,138)}if(!mk&&!hk()){if(a){var d=dj(139,nk,void 0,void 0);c=function(){a(function(){Xh.setTimeout(d,0)})}}else c=nk;
ok=new g.dk(dj(140,c,void 0,void 0),100);c=(0,g.A)(ok.Xi,ok);mk=Bj(Xh,"resize",c,141)}rca();pk()}};
nk=function(){rk(!1);kk()};
kk=function(){sk(tk(),!1)};
sca=function(){var a=Dj.getInstance();uk&&!a.C&&(a.o=xi(Xh,uk));var b=new vk;switch(a.g){case "xde":var c=wk;rk(!1);var d=Dj.getInstance(),e=d.K,a=e.height-c;0>=a&&(a=e.height,c=0);d.o=new g.Pd(e.width,a);a=new vk;a.A=d.o;a.g=e;a.B=c;return a;case "geo":a:{a=a.o;b=new vk;b.A=a;if(null!=a&&-1!=a.width&&-1!=a.height&&-12245933!=a.width&&-12245933!=a.height){var f=Dj.getInstance();if(f.C)c=f.F;else try{var f=uk,k=Xh||Xh,k=k.top,d=a||xi(k,f),e=g.ce(g.Ud(k.document).g),c=-1==d.width||-12245933==d.width?
new g.Lg(d.width,d.width,d.width,d.width):new g.Lg(e.y,e.x+d.width,e.y+d.height,e.x)}catch(l){c=b;break a}b.o=c}c=b}return c;default:return b}};
sk=function(a,b,c){if(!xk)if(window.clearTimeout(yk),yk=null,gj("osd::debugRemoveZombies",function(){for(var b=a.length-1;0<=b;b--);}),0==a.length)b||zk();
else{var d=sca(),e=Dj.getInstance();try{var f=zi();if(null!=Cj.getInstance().g)for(var k=0;k<a.length;k++)fca(a[k],f,b);else switch(e.g){case "exc":for(k=0;k<a.length;k++)Jj(a[k],f,b);break;case "nis":for(k=0;k<a.length;k++)g.t(c)?a[k].ro(c):a[k].Gx(f);break;case "gsv":for(k=0;k<a.length;k++)g.t(c)?a[k].yw(c):a[k].Fx(f);break;case "aio":case "nio":for(k=0;k<a.length;k++)Jj(a[k],f,b);break;case "xde":if(d.g)for(k=0;k<a.length;k++)bca(a[k],f,d.g,d.B,b);break;case "iem":for(k=0;k<a.length;k++)dca(a[k],
f,b);break;case "swf":(0,g.H)(a,function(a){if(b){if(a.B){var c=a.B;3<=c.B&&(c.B=3);a.g.g=0}}else if(a.B&&"d"!=a.B.getStatus()){var c=Pba(a.B),d=[0,0,0,0,0,.01,.5,1,.01,.3],e=d[c.snapshot+1];a.g.g=d[c.o+1];a.ag(a.position,e,a.O+c.g,!1,!0,!1);Kj(a)&&1!=a.Yg()&&!a.Ed&&a.B&&rj(a.B);(c=2==c.snapshot||vj(a.B))||(c=a.B,c="f"==c.o&&3E3<=c.C);c&&(a.Lg(a),a.Ed=!1,a.B&&rj(a.B))}});
break;case "raf":(0,g.H)(a,function(a){if(b)a.fa&&(a.fa.B=3,a.g.g=0);else if(a.fa){var c=$ba(a.fa),d=[0,0,0,0,0,.01,.5,1,.01,.3],e=d[c.snapshot+1];a.g.g=d[c.o+1];a.ag(a.position,e,a.O+c.g,!1,!0,!1);Kj(a)&&1!=a.Yg()&&!a.Ed&&a.fa&&Vba(a.fa)}});
break;case "geo":if(d.o)for(k=0;k<a.length;k++)eca(a[k],f,d.o,b,e.A)}++tca}finally{b?(0,g.H)(a,function(a){a.g.g=0}):zk()}}};
rca=function(){var a=pk,b;ai.mozVisibilityState?b="mozvisibilitychange":ai.webkitVisibilityState?b="webkitvisibilitychange":ai.visibilityState&&(b="visibilitychange");b&&(Ck=Ck||Bj(ai,b,a,142))};
pk=function(){var a=ak(),b=zi();a?(Ai||(Bi=b,(0,g.H)(Dk,function(a){var c=a.Ce();c.sa=Sj(c,b,!!a.P)})),Ai=!0,rk(!0)):(Ai=!1,bk=b,(0,g.H)(Dk,function(a){a.ca&&(a.Ce().C=b)}));
sk(tk(),!a)};
ak=function(){if(uca())return!0;var a=fi(),b=1===a,a=0===a;return Dj.getInstance(),b||a};
zk=function(){Xh&&(yk=Xh.setTimeout(hj(143,function(){sk(tk(),!1)}),Di(Dj.getInstance().J)))};
vca=function(a){return null!=a&&(0,g.Ek)(Dk,function(b){return b.element==a})};
Fk=function(a){return g.$a(Dk,function(b){return b.C==a})};
tk=function(){return 0==Dk.length?Gk:0==Gk.length?Dk:g.nb(Gk,Dk)};
rk=function(a){var b=Dj.getInstance();b.o=b.C?(new g.Pd(b.F.Eb(),b.F.getHeight())).round():xi(Xh,uk);if(!a){b.K=Xh&&Xh.outerWidth?new g.Pd(Xh.outerWidth,Xh.outerHeight):new g.Pd(-12245933,-12245933);a=Xh;null!==a&&a.top!=a&&(a=a.top);var c=0,d=0,e=Dj.getInstance().o;try{var f=a.document,k=f.body,l=f.documentElement;if("CSS1Compat"==f.compatMode&&l.scrollHeight)c=l.scrollHeight!=e.height?l.scrollHeight:l.offsetHeight,d=l.scrollWidth!=e.width?l.scrollWidth:l.offsetWidth;else{var m=l.scrollHeight,n=
l.scrollWidth,q=l.offsetHeight,r=l.offsetWidth;l.clientHeight!=q&&(m=k.scrollHeight,n=k.scrollWidth,q=k.offsetHeight,r=k.offsetWidth);m>e.height?m>q?(c=m,d=n):(c=q,d=r):m<q?(c=m,d=n):(c=q,d=r)}var w=new g.Pd(d,c)}catch(z){w=new g.Pd(-12245933,-12245933)}b.B=w}};
wca=function(a,b,c){if(a=Hk(a,"swf",b,c))Dj.getInstance().g="swf",Dj.getInstance().g="swf",(0,g.H)(b,function(a){a.B||c(a)});
return a};
Ik=function(){var a=Hk(Xh,"raf",tk());a&&(Dj.getInstance().g="raf");return a};
Hk=function(a,b,c,d){var e=!1;(0,g.H)(c,function(c){Nj(c,a,b,d)&&(e=!0)});
return e};
xca=function(a){var b=[];(0,g.H)(a,function(a){vca(a.element)||(Dk.push(a),b.push(a))})};
yca=function(a){var b=[];(0,g.H)(a,function(a){null==g.$a(Dk,function(b){return b.element==a.element&&b.Bj==a.Bj})&&(Dk.push(a),b.push(a))})};
uca=function(){return(0,g.Ek)(tk(),function(a){return a.D})};
vk=function(){this.g=this.A=null;this.B=0;this.o=null};
zca=function(a){var b=[];g.Ib(a,function(a,d){d in Object.prototype||"undefined"==typeof a||(g.sa(a)&&(a=a.join(",")),b.push([d,"=",a].join("")))});
return b.join("&")};
Aca=function(a){if(!a)return"";var b=a.document,c=[];c.push("url="+(0,window.encodeURIComponent)(a.location.href.substring(0,512)));b&&b.referrer&&c.push("referrer="+(0,window.encodeURIComponent)(b.referrer.substring(0,512)));return c.join("&")};
Jk=function(a){return function(b){return!g.t(b[a])&&g.t(0)?0:b[a]}};
Lk=function(){var a=[0,2,4];return function(b){b=b.tos;if(g.sa(b)){for(var c=Array(b.length),d=0;d<b.length;d++)c[d]=0<d?c[d-1]+b[d]:b[d];return g.t(a)?Kk(c,a):c}}};
Mk=function(a,b){return function(c){c=c[a];if(g.sa(c))return Kk(c,b)}};
Kk=function(a,b){return(0,g.re)(a,function(a,d){return g.eb(b,d)})};
Nk=function(){this.A=this.D=!1;this.g={};this.g.start=this.pH;this.g.firstquartile=this.cH;this.g.midpoint=this.iH;this.g.thirdquartile=this.qH;this.g.complete=this.YG;this.g.pause=this.lH;this.g.resume=this.nH;this.g.skip=this.oH;this.g.viewable_impression=this.sH;this.g.mute=this.jH;this.g.unmute=this.rH;this.g.fullscreen=this.dH;this.g.exitfullscreen=this.bH;this.g.fully_viewable_audible_half_duration_impression=this.eH;this.g.measurable_impression=this.hH;this.g.abandon=this.XG;this.g.engagedview=
this.aH;this.g.impression=this.fH;this.g.creativeview=this.ZG;this.g.progress=this.mH;this.o={};this.o.overlay_resize=this.kH;this.o.abandon=this.rq;this.o.close=this.rq;this.o.collapse=this.rq;Dj.getInstance().M=3};
Ok=function(a,b,c){c||(b=-1);return new Tj(Xh,a,b,7)};
Bca=function(a){var b=Dj.getInstance();Qj.getInstance();(function(){b.C=!1;Pk(this)}).call(a)};
Pk=function(a){var b;if(b=null!=Xh.IntersectionObserver)if(b=Hk(Xh,"nio",tk()))Dj.getInstance().g="nio";if(b)qk();else if(si()&&Ik())qk();else{if(g.dh&&g.oa(Xh.screenX)&&g.oa(Xh.mozInnerScreenX)&&g.oa(Xh.outerWidth)){b=Xh.navigator.userAgent;var c=b.indexOf("Firefox/");if(0<=c){var c=Math.floor(b.substr(c+8))||-1,d=b.indexOf("Mac OS X 10."),e=-1;0<=d&&(e=Number(b.substr(d+12,1))||-1);var f=0<e?-1:b.indexOf("Windows NT "),d=-1;0<=f&&(d={"6.0":0,"6.1":1,"6.2":2}[b.substr(f+11,3)]||-1);b=148;5<=e?b=
4<=c?108:3<=c?127:108:0<=d&&(16==c||17==c||18==c)&&(b=[[146,146,146],[148,147,148],[131,130,136]][d][c-16])}else b=null;null!==b&&(wk=b,Dj.getInstance().g="xde");b=!0}else b=!1;b?qk():(g.sc&&g.kc(8)&&g.ua(ii())?(Dj.getInstance().g="iem",b=!0):b=!1,b?qk():pi()&&wca(Xh,Dk,(0,g.A)(a.Fw,a))?qk():a.lq("i"))}};
Tk=function(a,b){if(!a.Mg){var c=Zj(a,"start"),c=Qk(c,Rk),d=Sk||Xh,e=[];e.push("v=581v");e.push("r="+b);var f=0;"swf"==Dj.getInstance().g&&(f=1);e.push("efm="+f);e.push(c);e.push(Aca(d));Wh(Xh,("//pagead2.googlesyndication.com/pagead/gen_204?id=lidarvf&"+e.join("&")).substring(0,2E3),void 0);a.Mg=!0}};
Uk=function(a,b,c,d){sk([a],!ak(),d);Xj(a,c);b=Zj(a,b);if(4!=c){d=a.oa;a=a.Lm;for(var e=d.length;e<c+1;)d.push(a()),e++}return b};
Vk=function(a,b,c){var d=a.Ce();d.sa=Sj(d,zi(),!!a.P);d=!ak();sk([a],d,c);a.P=!0;return Zj(a,b)};
Wk=function(a,b){if(g.u(b)){if(1==a)var c=Dk;else if(2==a)c=Gk;else return;var d=g.Za(c,function(c){return c.Yg()!=a?!1:c.C==b});
0<=d&&(gca(c[d]),g.jb(c,d))}};
Cca=function(a,b,c){var d=g.$a(Dk,function(a){return a.element==c});
null!==d&&d.C!=b&&(Wk(1,d.C),d=null);d||(d=Xk(a,c),d.C=b,d.K="h");return d};
Xk=function(a,b){var c=Ok(b,zi(),!1);c.Cc=(0,g.A)(a.Um,a);Dj.getInstance().J=79463069;yca([c]);qk();return c};
Dca=function(a,b){var c=Rb(Yk,function(b){return b==a}),c={sv:"581",
cb:"j",e:Zk[c]},d=Zj(b,a);g.Zb(c,d);b.Oe[a]=d;return 2==b.Yg()?qca(c).join("&"):Qk(c,Rk)};
Qk=function(a,b,c,d,e){var f={};if(g.t(a))if(null!=b)for(var k in b){var l=b[k];k in Object.prototype||null!=l&&(g.ua(l)?f[k]=l(a):f[k]=a[l])}else g.Zb(f,a);g.t(c)&&g.Zb(f,c);a=zca(f);0!=a.length&&g.t(d)&&g.t(e)&&(e=e(a),a+="&"+d+"="+e);return a};
al=function(a,b){var c={sv:"581",cb:"j"};c.nas=Dk.length;c.msg=a;if(g.t(b)){var d=$k(b);d&&(c.e=Zk[d])}return c};
$k=function(a){var b=a.toLowerCase();return Rb(Yk,function(a){return a==b})};
bl=function(a,b){var c=a[b];g.t(c)&&(a[b]=Math.floor(1E3*c))};
cl=function(a){return!a||"function"!==typeof a||0>String(Function.prototype.toString).indexOf("[native code]")?!1:0<=String(a).indexOf("[native code]")&&!0||!1};
el=function(a){return!!(1<<a&dl)};
Ica=function(){try{Eca()}catch(d){}var a="a=1&b="+dl+"&",b=[],c=99;(0,g.H)(Fca,function(a,c){var d=!1;try{d=a(Xh)}catch(k){}b[c/32>>>0]|=d<<c%32});
(0,g.H)(b,function(b,e){a+=String.fromCharCode(c+e)+"="+(b>>>0).toString(16)+"&"});
c=105;(0,g.H)(Gca,function(b){var d="false";try{d=b(Xh)}catch(f){}a+=String.fromCharCode(c++)+"="+d+"&"});
(0,g.H)(Hca,function(b){var d="";try{var f=b(Xh),d=g.pc(g.Fb(f),!0)}catch(k){}a+=String.fromCharCode(c++)+"="+d+"&"});
return a.slice(0,-1)};
Eca=function(){if(!fl){var a=function(){gl=!0;Xh.document.removeEventListener("webdriver-evaluate",a,!0)};
Xh.document.addEventListener("webdriver-evaluate",a,!0);var b=function(){hl=!0;Xh.document.removeEventListener("webdriver-evaluate-response",b,!0)};
Xh.document.addEventListener("webdriver-evaluate-response",b,!0);fl=!0}};
il=function(){this.o=64;this.g=Array(4);this.C=Array(this.o);this.B=this.A=0;this.reset()};
jl=function(a,b,c){c||(c=0);var d=Array(16);if(g.u(b))for(var e=0;16>e;++e)d[e]=b.charCodeAt(c++)|b.charCodeAt(c++)<<8|b.charCodeAt(c++)<<16|b.charCodeAt(c++)<<24;else for(e=0;16>e;++e)d[e]=b[c++]|b[c++]<<8|b[c++]<<16|b[c++]<<24;b=a.g[0];c=a.g[1];var e=a.g[2],f=a.g[3];var k=b+(f^c&(e^f))+d[0]+3614090360&4294967295;b=c+(k<<7&4294967295|k>>>25);k=f+(e^b&(c^e))+d[1]+3905402710&4294967295;f=b+(k<<12&4294967295|k>>>20);k=e+(c^f&(b^c))+d[2]+606105819&4294967295;e=f+(k<<17&4294967295|k>>>15);k=c+(b^e&(f^
b))+d[3]+3250441966&4294967295;c=e+(k<<22&4294967295|k>>>10);k=b+(f^c&(e^f))+d[4]+4118548399&4294967295;b=c+(k<<7&4294967295|k>>>25);k=f+(e^b&(c^e))+d[5]+1200080426&4294967295;f=b+(k<<12&4294967295|k>>>20);k=e+(c^f&(b^c))+d[6]+2821735955&4294967295;e=f+(k<<17&4294967295|k>>>15);k=c+(b^e&(f^b))+d[7]+4249261313&4294967295;c=e+(k<<22&4294967295|k>>>10);k=b+(f^c&(e^f))+d[8]+1770035416&4294967295;b=c+(k<<7&4294967295|k>>>25);k=f+(e^b&(c^e))+d[9]+2336552879&4294967295;f=b+(k<<12&4294967295|k>>>20);k=e+
(c^f&(b^c))+d[10]+4294925233&4294967295;e=f+(k<<17&4294967295|k>>>15);k=c+(b^e&(f^b))+d[11]+2304563134&4294967295;c=e+(k<<22&4294967295|k>>>10);k=b+(f^c&(e^f))+d[12]+1804603682&4294967295;b=c+(k<<7&4294967295|k>>>25);k=f+(e^b&(c^e))+d[13]+4254626195&4294967295;f=b+(k<<12&4294967295|k>>>20);k=e+(c^f&(b^c))+d[14]+2792965006&4294967295;e=f+(k<<17&4294967295|k>>>15);k=c+(b^e&(f^b))+d[15]+1236535329&4294967295;c=e+(k<<22&4294967295|k>>>10);k=b+(e^f&(c^e))+d[1]+4129170786&4294967295;b=c+(k<<5&4294967295|
k>>>27);k=f+(c^e&(b^c))+d[6]+3225465664&4294967295;f=b+(k<<9&4294967295|k>>>23);k=e+(b^c&(f^b))+d[11]+643717713&4294967295;e=f+(k<<14&4294967295|k>>>18);k=c+(f^b&(e^f))+d[0]+3921069994&4294967295;c=e+(k<<20&4294967295|k>>>12);k=b+(e^f&(c^e))+d[5]+3593408605&4294967295;b=c+(k<<5&4294967295|k>>>27);k=f+(c^e&(b^c))+d[10]+38016083&4294967295;f=b+(k<<9&4294967295|k>>>23);k=e+(b^c&(f^b))+d[15]+3634488961&4294967295;e=f+(k<<14&4294967295|k>>>18);k=c+(f^b&(e^f))+d[4]+3889429448&4294967295;c=e+(k<<20&4294967295|
k>>>12);k=b+(e^f&(c^e))+d[9]+568446438&4294967295;b=c+(k<<5&4294967295|k>>>27);k=f+(c^e&(b^c))+d[14]+3275163606&4294967295;f=b+(k<<9&4294967295|k>>>23);k=e+(b^c&(f^b))+d[3]+4107603335&4294967295;e=f+(k<<14&4294967295|k>>>18);k=c+(f^b&(e^f))+d[8]+1163531501&4294967295;c=e+(k<<20&4294967295|k>>>12);k=b+(e^f&(c^e))+d[13]+2850285829&4294967295;b=c+(k<<5&4294967295|k>>>27);k=f+(c^e&(b^c))+d[2]+4243563512&4294967295;f=b+(k<<9&4294967295|k>>>23);k=e+(b^c&(f^b))+d[7]+1735328473&4294967295;e=f+(k<<14&4294967295|
k>>>18);k=c+(f^b&(e^f))+d[12]+2368359562&4294967295;c=e+(k<<20&4294967295|k>>>12);k=b+(c^e^f)+d[5]+4294588738&4294967295;b=c+(k<<4&4294967295|k>>>28);k=f+(b^c^e)+d[8]+2272392833&4294967295;f=b+(k<<11&4294967295|k>>>21);k=e+(f^b^c)+d[11]+1839030562&4294967295;e=f+(k<<16&4294967295|k>>>16);k=c+(e^f^b)+d[14]+4259657740&4294967295;c=e+(k<<23&4294967295|k>>>9);k=b+(c^e^f)+d[1]+2763975236&4294967295;b=c+(k<<4&4294967295|k>>>28);k=f+(b^c^e)+d[4]+1272893353&4294967295;f=b+(k<<11&4294967295|k>>>21);k=e+(f^
b^c)+d[7]+4139469664&4294967295;e=f+(k<<16&4294967295|k>>>16);k=c+(e^f^b)+d[10]+3200236656&4294967295;c=e+(k<<23&4294967295|k>>>9);k=b+(c^e^f)+d[13]+681279174&4294967295;b=c+(k<<4&4294967295|k>>>28);k=f+(b^c^e)+d[0]+3936430074&4294967295;f=b+(k<<11&4294967295|k>>>21);k=e+(f^b^c)+d[3]+3572445317&4294967295;e=f+(k<<16&4294967295|k>>>16);k=c+(e^f^b)+d[6]+76029189&4294967295;c=e+(k<<23&4294967295|k>>>9);k=b+(c^e^f)+d[9]+3654602809&4294967295;b=c+(k<<4&4294967295|k>>>28);k=f+(b^c^e)+d[12]+3873151461&4294967295;
f=b+(k<<11&4294967295|k>>>21);k=e+(f^b^c)+d[15]+530742520&4294967295;e=f+(k<<16&4294967295|k>>>16);k=c+(e^f^b)+d[2]+3299628645&4294967295;c=e+(k<<23&4294967295|k>>>9);k=b+(e^(c|~f))+d[0]+4096336452&4294967295;b=c+(k<<6&4294967295|k>>>26);k=f+(c^(b|~e))+d[7]+1126891415&4294967295;f=b+(k<<10&4294967295|k>>>22);k=e+(b^(f|~c))+d[14]+2878612391&4294967295;e=f+(k<<15&4294967295|k>>>17);k=c+(f^(e|~b))+d[5]+4237533241&4294967295;c=e+(k<<21&4294967295|k>>>11);k=b+(e^(c|~f))+d[12]+1700485571&4294967295;b=c+
(k<<6&4294967295|k>>>26);k=f+(c^(b|~e))+d[3]+2399980690&4294967295;f=b+(k<<10&4294967295|k>>>22);k=e+(b^(f|~c))+d[10]+4293915773&4294967295;e=f+(k<<15&4294967295|k>>>17);k=c+(f^(e|~b))+d[1]+2240044497&4294967295;c=e+(k<<21&4294967295|k>>>11);k=b+(e^(c|~f))+d[8]+1873313359&4294967295;b=c+(k<<6&4294967295|k>>>26);k=f+(c^(b|~e))+d[15]+4264355552&4294967295;f=b+(k<<10&4294967295|k>>>22);k=e+(b^(f|~c))+d[6]+2734768916&4294967295;e=f+(k<<15&4294967295|k>>>17);k=c+(f^(e|~b))+d[13]+1309151649&4294967295;
c=e+(k<<21&4294967295|k>>>11);k=b+(e^(c|~f))+d[4]+4149444226&4294967295;b=c+(k<<6&4294967295|k>>>26);k=f+(c^(b|~e))+d[11]+3174756917&4294967295;f=b+(k<<10&4294967295|k>>>22);k=e+(b^(f|~c))+d[2]+718787259&4294967295;e=f+(k<<15&4294967295|k>>>17);k=c+(f^(e|~b))+d[9]+3951481745&4294967295;a.g[0]=a.g[0]+b&4294967295;a.g[1]=a.g[1]+(e+(k<<21&4294967295|k>>>11))&4294967295;a.g[2]=a.g[2]+e&4294967295;a.g[3]=a.g[3]+f&4294967295};
ll=function(a){var b=a||vi();a=b.length-1;var c=wi(b),b=c.g,d=c.o,c=[];d?(b&&c.push(kl(a,[d.url,2],0,[b.url,0],b.depth)),c.push(kl(a,[d.url,2],0))):b.url&&(c.push(kl(a,void 0,void 0,[b.url,0],b.depth)),(d=(d=Jca.exec(b.url))&&d[0]||"")&&c.push(kl(a,[d,1],b.depth)));c.push(kl(a));return c};
kl=function(a,b,c,d,e){a=[a];if(g.t(b)&&g.t(c)){for(var f=0;f<c;f++)a.push("");a.push(b)}if(g.t(d)&&g.t(e)){b=e-a.length+1;for(f=0;f<b;f++)a.push("");a.push(d)}return a};
ml=function(){var a=ll();return(0,g.I)(a,function(a){return Ri(a)})};
nl=function(){Nk.call(this);this.B=void 0;this.C=null};
ol=function(a,b,c,d){d=Ok(null,d,!0);d.K=c;d.Cc=(0,g.A)(a.Um,a);xca([d]);d.C=b;return d};
Lca=function(a,b,c){var d=g.$a(Dk,(0,g.A)(function(a){return a.element?pl(a.element,c)==b&&a.Bj==c:!1},a));
null!==d&&d.C!=b&&(Wk(1,d.C),d=void 0);if(d)return d;d=Kca(c);if(d=g.$a(d,(0,g.A)(function(a){return pl(a,c)==b},a)))return d=Xk(a,d),d.K="as",d.C=b,d.Bj=c,d};
Kca=function(a){var b=Xh.document,c=g.Eb((0,g.I)(["embed","object"],function(a){return g.ob(b.getElementsByTagName(a))})),d="metricID"+a;
return c=(0,g.re)(c,function(a){if(!a||!g.va(a)||1!=a.nodeType||!g.ua(a.getBoundingClientRect))return!1;var b=a.getBoundingClientRect();return 0!=b.width&&0!=b.height&&a[d]&&g.ua(a[d])?!0:!1})};
pl=function(a,b){var c="metricID"+b;if(!a||!a[c]||!g.ua(a[c]))return null;try{var d=a[c]()}catch(e){return null}return d.queryID};
ql=function(a,b){var c=Dj.getInstance();switch(a.K){case "h":var d=g.x("exc"==c.g?"ima.bridge.triggerExternalActivityEvent":"ima.common.triggerExternalActivityEvent");break;case "m":d=g.x("ima.common.triggerExternalActivityEvent");break;case "n":d=g.x("ima.bridge.triggerExternalActivityEvent");break;case "as":var e="triggerExternalActivityEvent"+a.Bj;a.element&&g.ua(a.element[e])&&(d=function(b,c,d){a.element[e](d)});
break;default:return a.V|=4,!1}if(g.ua(d)){c=Dca(b,a);try{return d(a.C,c,b),!0}catch(f){a.V|=2}}else a.V|=1;return!1};
Mca=function(a){return g.Jb(g.Wb(a||{}),function(a,c){return"qmtos"==c||"qnc"==c||"qmv"==c||"qnv"==c?!1:!0})};
sl=function(a,b,c){var d={};d.viewability=c?Qk(b,Rk):Qk(Mca(b),Rk);c=dl=(new Date).getTime();var e=el(5);c=(gl?!e:e)?c|2:c&-3;e=el(2);c=(hl?!e:e)?c|8:c&-9;c={s1:(c>>>0).toString(16)};a.C||(a.C=Ica());d.moatInit=a.C;d.moatViewability=Qk(b,Nca,c,"h",rl("kArwaWEsTs"));d.integralAdsViewability=Qk(b,Oca,{},"h",rl("b96YPMzfnx"));d.doubleVerifyViewability=Qk(b,Pca,{},"h",rl("yb8Wev6QDg"));d.googleViewability=Qk(b,Qca);return d};
rl=function(a){return function(b){var c=new il;c.update(b+a);return vaa(c.digest()).slice(-8)}};
Rca=function(a,b,c){a=Dj.getInstance();if(a.G!=b){a.G=b;var d=(0,g.Ek)(Dk,function(a){return a.ke});
(0,g.H)(Dk,function(a){b||d||(a.O=c);a.ua=b;a.ke=!1})}};
vl=function(a,b,c){var d=nl.getInstance(),e={};g.Zb(e,{opt_adElement:void 0,opt_fullscreen:void 0},c||{});if(e.opt_bounds)a=sl(d,al("ol",a),!1);else{b:{if($k(a)){if(tl){e=al("ue",a);break b}b=d.Nm(b,e);if(!b){e=al("nf",a);break b}if(!d.D){d.D=!0;try{var f=zi(),k=Dj.getInstance();yi=f;Sk=ck(Xh).ht;rk(!1);var l=Dj.getInstance();Xh.screen&&(l.D=new g.Pd(Xh.screen.width,Xh.screen.height));if("nis"!=k.g&&"gsv"!=k.g){var m=Xh.document;m.body&&m.body.getBoundingClientRect?((0,g.A)(d.lq,d),Cj.getInstance(),
!k.A&&si()&&Ik()?qk():k.A&&"exc"!=k.g?k.C?Bca(d):Pk(d):qk()):tl=!0}}catch(q){throw Dk=[],Gk=[],q;}}"i"==ul&&(b.da=!0,d.us(b));f=e.opt_fullscreen;g.t(f)&&(b.D=!!f);f=Dj.getInstance().g;if(k=Xh&&Xh.g||"nis"===f||"gsv"===f?!1:0===fi())Tk(b,"pvu"),d.lq("pvu");f=a.toLowerCase();!k&&g.eb(Sca,f)&&(b.Ng||("i"!=ul&&(xk=!1),k=Cj.getInstance(),null!=k.g&&(k=null!=k.g?new k.g.constructor:null,b.ba=k,b.ba.B(Xh,b.G,b.zi)),Nj(b,Xh,Dj.getInstance().g,(0,g.A)(d.Fw,d)),k=g.t(e)?e.opt_nativeTime:void 0,Ci=k=g.oa(k)?
k:zi(),b.ca=!0,l=ak(),b.Ng=!0,b.J={},b.J.firstquartile=!1,b.J.midpoint=!1,b.J.thirdquartile=!1,b.J.complete=!1,b.J.pause=!1,b.J.skip=!1,b.J.viewable_impression=!1,b.sb=0,l||(b.Ce().C=k),sk([b],!l,e)),d.Cw(b));(k=b.ga[f])&&b.A.Ga(k);var n;1==b.Yg()?n=d.g[f]:2==b.Yg()&&(n=d.o[f]);if(n&&(e=n.call(d,b,e),g.t(e))){n=al(void 0,f);g.Zb(n,e);e=n;break b}}e=void 0}a=sl(d,e,"firstquartile"==a||"midpoint"==a||"thirdquartile"==a||"complete"==a||"skip"==a||"abandon"==a?!0:!1)}return a};
wl=function(a,b){var c=g.x("ima.common.triggerViewabilityMeasurementUpdate");if(g.ua(c)){var d={},e=Dj.getInstance();d.insideIframe=e.A;d.unmeasurable=b.da;d.position=b.position;d.coverage=b.g.g;d.documentSize=e.B;d.viewportSize=e.o;d.nativeVolume=a.B;c(b.C,d)}};
xl=function(a){nl.getInstance();var b=Qj.getInstance();g.ib(b.g,a)};
yl=function(a){if(!a)return"";a=a.split("#")[0].split("?")[0];a=a.toLowerCase();0==a.indexOf("//")&&(a=window.location.protocol+a);/^[\w\-]*:\/\//.test(a)||(a=window.location.href);var b=a.substring(a.indexOf("://")+3),c=b.indexOf("/");-1!=c&&(b=b.substring(0,c));a=a.substring(0,a.indexOf("://"));if("http"!==a&&"https"!==a&&"chrome-extension"!==a&&"file"!==a&&"android-app"!==a&&"chrome-search"!==a)throw Error("Invalid URI scheme in origin");var c="",d=b.indexOf(":");if(-1!=d){var e=b.substring(d+
1),b=b.substring(0,d);if("http"===a&&"80"!==e||"https"===a&&"443"!==e)c=":"+e}return a+"://"+b+c};
Tca=function(){function a(){e[0]=1732584193;e[1]=4023233417;e[2]=2562383102;e[3]=271733878;e[4]=3285377520;q=n=0}
function b(a){for(var b=k,c=0;64>c;c+=4)b[c/4]=a[c]<<24|a[c+1]<<16|a[c+2]<<8|a[c+3];for(c=16;80>c;c++)a=b[c-3]^b[c-8]^b[c-14]^b[c-16],b[c]=(a<<1|a>>>31)&4294967295;a=e[0];for(var d=e[1],f=e[2],l=e[3],m=e[4],n,q,c=0;80>c;c++)40>c?20>c?(n=l^d&(f^l),q=1518500249):(n=d^f^l,q=1859775393):60>c?(n=d&f|l&(d|f),q=2400959708):(n=d^f^l,q=3395469782),n=((a<<5|a>>>27)&4294967295)+n+m+q+b[c]&4294967295,m=l,l=f,f=(d<<30|d>>>2)&4294967295,d=a,a=n;e[0]=e[0]+a&4294967295;e[1]=e[1]+d&4294967295;e[2]=e[2]+f&4294967295;
e[3]=e[3]+l&4294967295;e[4]=e[4]+m&4294967295}
function c(a,c){if("string"===typeof a){a=(0,window.unescape)((0,window.encodeURIComponent)(a));for(var d=[],e=0,k=a.length;e<k;++e)d.push(a.charCodeAt(e));a=d}c||(c=a.length);d=0;if(0==n)for(;d+64<c;)b(a.slice(d,d+64)),d+=64,q+=64;for(;d<c;)if(f[n++]=a[d++],q++,64==n)for(n=0,b(f);d+64<c;)b(a.slice(d,d+64)),d+=64,q+=64}
function d(){var a=[],d=8*q;56>n?c(l,56-n):c(l,64-(n-56));for(var k=63;56<=k;k--)f[k]=d&255,d>>>=8;b(f);for(k=d=0;5>k;k++)for(var m=24;0<=m;m-=8)a[d++]=e[k]>>m&255;return a}
for(var e=[],f=[],k=[],l=[128],m=1;64>m;++m)l[m]=0;var n,q;a();return{reset:a,update:c,digest:d,RF:function(){for(var a=d(),b="",c=0;c<a.length;c++)b+="0123456789ABCDEF".charAt(Math.floor(a[c]/16))+"0123456789ABCDEF".charAt(a[c]%16);return b}}};
Uca=function(a,b,c){var d=[],e=[];if(1==(g.sa(c)?2:1))return e=[b,a],(0,g.H)(d,function(a){e.push(a)}),zl(e.join(" "));
var f=[],k=[];(0,g.H)(c,function(a){k.push(a.key);f.push(a.value)});
c=Math.floor((new Date).getTime()/1E3);e=g.fb(f)?[c,b,a]:[f.join(":"),c,b,a];(0,g.H)(d,function(a){e.push(a)});
a=zl(e.join(" "));a=[c,a];g.fb(k)||a.push(k.join(""));return a.join("_")};
zl=function(a){var b=Tca();b.update(a);return b.RF().toLowerCase()};
g.Al=function(a){var b=yl(String(pa.location.href)),c=pa.__OVERRIDE_SID;null==c&&(c=(new qg(window.document)).get("SID"));if(c&&(b=(c=0==b.indexOf("https:")||0==b.indexOf("chrome-extension:"))?pa.__SAPISID:pa.__APISID,null==b&&(b=(new qg(window.document)).get(c?"SAPISID":"APISID")),b)){var c=c?"SAPISIDHASH":"APISIDHASH",d=String(pa.location.href);return d&&b&&c?[c,Uca(yl(d),b,a||null)].join(" "):null}return null};
Bl=function(){};
Dl=function(a){if(a instanceof Bl)return a;if("function"==typeof a.Sd)return a.Sd(!1);if(g.ta(a)){var b=0,c=new Bl;c.next=function(){for(;;){if(b>=a.length)throw Cl;if(b in a)return a[b++];b++}};
return c}throw Error("Not implemented");};
g.El=function(a,b,c){if(g.ta(a))try{(0,g.H)(a,b,c)}catch(d){if(d!==Cl)throw d;}else{a=Dl(a);try{for(;;)b.call(c,a.next(),void 0,a)}catch(d){if(d!==Cl)throw d;}}};
Vca=function(a){if(g.ta(a))return g.ob(a);a=Dl(a);var b=[];g.El(a,function(a){b.push(a)});
return b};
Fl=function(a,b){this.o={};this.g=[];this.zh=this.La=0;var c=arguments.length;if(1<c){if(c%2)throw Error("Uneven number of arguments");for(var d=0;d<c;d+=2)this.set(arguments[d],arguments[d+1])}else if(a){a instanceof Fl?(c=a.Cb(),d=a.fb()):(c=g.Ob(a),d=g.Nb(a));for(var e=0;e<c.length;e++)this.set(c[e],d[e])}};
Hl=function(a,b){return Gl(a.o,b)};
Il=function(a){var b,c;if(a.La!=a.g.length){for(b=c=0;c<a.g.length;){var d=a.g[c];Gl(a.o,d)&&(a.g[b++]=d);c++}a.g.length=b}if(a.La!=a.g.length){var e={};for(b=c=0;c<a.g.length;)d=a.g[c],Gl(e,d)||(a.g[b++]=d,e[d]=1),c++;a.g.length=b}};
Gl=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)};
Jl=function(a){if(a.fb&&"function"==typeof a.fb)return a.fb();if(g.u(a))return a.split("");if(g.ta(a)){for(var b=[],c=a.length,d=0;d<c;d++)b.push(a[d]);return b}return g.Nb(a)};
Kl=function(a){if(a.Cb&&"function"==typeof a.Cb)return a.Cb();if(!a.fb||"function"!=typeof a.fb){if(g.ta(a)||g.u(a)){var b=[];a=a.length;for(var c=0;c<a;c++)b.push(c);return b}return g.Ob(a)}};
Wca=function(a,b){if(a.forEach&&"function"==typeof a.forEach)a.forEach(b,void 0);else if(g.ta(a)||g.u(a))(0,g.H)(a,b,void 0);else for(var c=Kl(a),d=Jl(a),e=d.length,f=0;f<e;f++)b.call(void 0,d[f],c&&c[f],a)};
g.Ll=function(a,b){this.o=this.G=this.B="";this.C=null;this.J=this.A="";this.D=!1;var c;a instanceof g.Ll?(this.D=g.t(b)?b:a.D,Ml(this,a.B),this.G=a.G,g.Nl(this,a.o),g.Ol(this,a.C),g.Pl(this,a.A),Ql(this,a.g.clone()),this.J=a.Qh()):a&&(c=g.tg(String(a)))?(this.D=!!b,Ml(this,c[1]||"",!0),this.G=Rl(c[2]||""),g.Nl(this,c[3]||"",!0),g.Ol(this,c[4]),g.Pl(this,c[5]||"",!0),Ql(this,c[6]||"",!0),this.J=Rl(c[7]||"")):(this.D=!!b,this.g=new g.Sl(null,0,this.D))};
Ml=function(a,b,c){a.B=c?Rl(b,!0):b;a.B&&(a.B=a.B.replace(/:$/,""))};
g.Nl=function(a,b,c){a.o=c?Rl(b,!0):b;return a};
g.Ol=function(a,b){if(b){b=Number(b);if((0,window.isNaN)(b)||0>b)throw Error("Bad port number "+b);a.C=b}else a.C=null;return a};
g.Pl=function(a,b,c){a.A=c?Rl(b,!0):b};
Ql=function(a,b,c){b instanceof g.Sl?(a.g=b,Xca(a.g,a.D)):(c||(b=Tl(b,Yca)),a.g=new g.Sl(b,0,a.D));return a};
g.Ul=function(a,b,c){a.g.set(b,c);return a};
Wl=function(a,b,c){g.sa(c)||(c=[String(c)]);Vl(a.g,b,c)};
Xl=function(a){g.Ul(a,"zx",g.Oa());return a};
g.Yl=function(a){return a instanceof g.Ll?a.clone():new g.Ll(a,void 0)};
Zca=function(a,b,c,d){var e=new g.Ll(null,void 0);a&&Ml(e,a);b&&g.Nl(e,b);c&&g.Ol(e,c);d&&g.Pl(e,d);return e};
Rl=function(a,b){return a?b?(0,window.decodeURI)(a.replace(/%25/g,"%2525")):(0,window.decodeURIComponent)(a):""};
Tl=function(a,b,c){return g.u(a)?(a=(0,window.encodeURI)(a).replace(b,$ca),c&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null};
$ca=function(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)};
g.Sl=function(a,b,c){this.La=this.g=null;this.o=a||null;this.A=!!c};
$l=function(a){a.g||(a.g=new Fl,a.La=0,a.o&&xg(a.o,function(b,c){Zl(a,Ga(b),c)}))};
am=function(a){var b=Kl(a);if("undefined"==typeof b)throw Error("Keys are undefined");var c=new g.Sl(null,0,void 0);a=Jl(a);for(var d=0;d<b.length;d++){var e=b[d],f=a[d];g.sa(f)?Vl(c,e,f):Zl(c,e,f)}return c};
Zl=function(a,b,c){$l(a);a.o=null;b=bm(a,b);var d=a.g.get(b);d||a.g.set(b,d=[]);d.push(c);a.La=a.La+1};
cm=function(a,b){$l(a);b=bm(a,b);return Hl(a.g,b)};
Vl=function(a,b,c){a.remove(b);0<c.length&&(a.o=null,a.g.set(bm(a,b),g.ob(c)),a.La=a.La+c.length)};
bm=function(a,b){var c=String(b);a.A&&(c=c.toLowerCase());return c};
Xca=function(a,b){b&&!a.A&&($l(a),a.o=null,a.g.forEach(function(a,b){var c=b.toLowerCase();b!=c&&(this.remove(b),Vl(this,c,a))},a));
a.A=b};
g.dm=function(a){g.M.call(this);this.B=a;this.o={}};
g.fm=function(a,b,c,d,e,f){em(a,b,c,d,e,f)};
em=function(a,b,c,d,e,f){g.sa(c)||(c&&(gm[0]=c.toString()),c=gm);for(var k=0;k<c.length;k++){var l=g.af(b,c[k],d||a.handleEvent,e||!1,f||a.B||a);if(!l)break;a.o[l.key]=l}return a};
im=function(a,b,c,d){hm(a,b,c,d,void 0)};
jm=function(a,b,c,d,e){hm(a,b,c,d,!1,e)};
hm=function(a,b,c,d,e,f){if(g.sa(c))for(var k=0;k<c.length;k++)hm(a,b,c[k],d,e,f);else(b=jf(b,c,d||a.handleEvent,e,f||a.B||a))&&(a.o[b.key]=b)};
km=function(a){g.Ib(a.o,function(a,c){this.o.hasOwnProperty(c)&&g.lf(a)},a);
a.o={}};
lm=function(a,b,c){g.M.call(this);this.o=a;this.A=b;this.D=c;this.C=0;this.g=new g.dm(this);ada(this)};
ada=function(a){a.D.forEach(function(a,c){this.g.X(c,"mousedown",this.F);this.g.X(c,"mouseup",this.J)},a);
a.g.X(a.A,"mouseover",a.G)};
g.mm=function(a,b){return a.replace(bda,function(a,d){try{var c=Vb(b,d);if(null==c)return a;c=c.toString();if(""==c||!E(g.F(c)))return(0,window.encodeURIComponent)(c).replace(/%2C/g,",")}catch(f){}return a})};
om=function(a,b){var c=[],d="",e="";if(null!=b){for(var d=b,e=[],f=0;d&&25>f;++f){a:{if(d&&d.nodeName&&d.parentElement){var k=d.nodeName.toString().toLowerCase();for(var l=d.parentElement.childNodes,m=0,n=0;n<l.length;++n){var q=l[n];if(q.nodeName&&q.nodeName.toString().toLowerCase()===k){if(d===q){k="."+m;break a}++m}}}k=""}e.push((d.nodeName&&d.nodeName.toString().toLowerCase())+""+k);d=d.parentElement}d=e.join();if(b){e=(e=b.ownerDocument)&&(e.defaultView||e.parentWindow)||null;f=[];if(e)try{var r=
e.parent;for(k=0;r&&r!==e&&25>k;++k){for(var w=r.frames,l=0;l<w.length;++l)if(e===w[l]){f.push(l);break}e=r;r=e.parent}}catch(z){}e=f.join()}else e=""}c.push(d,e);if(null!=a){for(r=0;r<nm.length-1;++r)c.push(Gg(a,nm[r])||"");r=Gg(a,"videoad_start_delay");w="";r&&(r=(0,window.parseInt)(r,10),w=0>r?"postroll":0==r?"preroll":"midroll");c.push(w)}else for(r=0;r<nm.length;++r)c.push("");c=c.join(":");r=c.length;if(0==r)c=0;else{w=305419896;for(d=0;d<r;d++)w^=(w<<5)+(w>>2)+c.charCodeAt(d)&4294967295;c=
0<w?w:4294967296+w}return c.toString()};
pm=function(a,b,c){this.g=a;this.o=b;this.A=c};
qm=function(a,b){this.g=a;this.Tf=b};
rm=function(a,b){g.Me.call(this,"adError");this.A=a;this.g=b?b:null};
sm=function(a,b,c){g.Me.call(this,a);this.A=b;this.g=null!=c?c:null};
cda=function(a){this.g=a};
dda=function(){var a=tm();return um(a,"disableExperiments")};
um=function(a,b){if(Qb(a.g,b)){var c=a.g[b];if(g.na(c))return c}return!1};
eda=function(a){if(Qb(a.g,"forceExperimentIds")){a=a.g.forceExperimentIds;var b=[],c=0;g.sa(a)&&(0,g.H)(a,function(a){g.oa(a)&&(b[c++]=a)});
return b}return null};
vm=function(a){return(a=a.match(/^\w{2,3}([-_]|$)/))?a[0].replace(/[_-]/g,""):""};
wm=function(){this.B="always";this.O=4;this.F=1;this.o=this.M=this.C=!1;this.da=this.J=!0;this.A=this.ba=!1;this.K=!0;this.P=null;this.ca=3E3;this.sb=this.D=this.V=!1;try{this.fa=ll(void 0)[0]}catch(a){}};
tm=function(){var a=P;if(null==a.P){var b={},c=(new g.Ll(ee().location.href)).g;if(cm(c,"tcnfp"))try{b=g.jg(c.get("tcnfp"))}catch(d){}a.P=new cda(b)}return a.P};
fda=function(a){switch(a){case "BREAK_TYPE_PRE_ROLL":return 1;case "BREAK_TYPE_MID_ROLL":return 2;case "BREAK_TYPE_POST_ROLL":return 3;case "BREAK_TYPE_INDEPENDENT":return 5;case "BREAK_TYPE_RELATED":return 6;default:return 0}};
xm=function(a){g.Me.call(this,a);this.F=[];this.D={};this.g=null;this.A=!0};
ym=function(a,b,c){this.B=b;this.o=c;this.C=a;this.A=!0};
zm=function(){};
Am=function(a,b,c,d){this.Aa=a;this.g=g.Hd(c||0,0,1);this.o=null!=d?d:!0};
Bm=function(a){this.Aa=a;this.o=new Fl;this.bb=this.g=null};
gda=function(a){var b=Math.random(),c=0,d=a.o.fb();(0,g.H)(d,function(a){c+=a.g},a);
var e=1<c?c:1;a.g=null;for(var f=0,k=0;k<d.length;++k)if(f+=d[k].g,f/e>=b){a.g=d[k];break}};
ida=function(){this.A=null!=pa.G_testRunner;this.g=new zm;this.o=new Fl;P.g()||(Cm(this,"GvnExternalLayer",31061774,.01),Cm(this,"GvnExternalLayer",31061775,.01),Cm(this,"GvnExternalLayer",41351088,.01),Cm(this,"GvnExternalLayer",41351089,.01),Cm(this,"GvnExternalLayer",420706008,.05),Cm(this,"GvnExternalLayer",420706009,.05),Cm(this,"GvnExternalLayer",420706024,.01),Cm(this,"GvnExternalLayer",420706025,.01),Cm(this,"GvnExternalLayer",420706029,.01),Cm(this,"GvnExternalLayer",41351073,.01),Cm(this,
"GvnExternalLayer",41351074,.01),Cm(this,"GvnExternalLayer",41351075,.01),Cm(this,"GvnExternalLayer",634360101,0),Cm(this,"GvnExternalLayer",634360102,0),Cm(this,"GvnExternalLayer",21592080,.1),Cm(this,"GvnExternalLayer",21592081,.1),Cm(this,"GvnExternalLayer",21592082,.01),Cm(this,"GvnExternalLayer",413051059,.05),Cm(this,"GvnExternalLayer",413051060,.05),Cm(this,"GvnExternalLayer",324123E3,.05),Cm(this,"GvnExternalLayer",324123001,.05),Cm(this,"GvnExternalLayer",420706068,.01),Cm(this,"GvnExternalLayer",
420706069,.01),Cm(this,"GvnExternalLayer",324123020,.01),Cm(this,"GvnExternalLayer",324123021,.01),Cm(this,"GvnExternalLayer",420706081,.01),Cm(this,"GvnExternalLayer",420706082,.01),si(!1)&&(Ph(Xh.top)?(Cm(this,"ActiveViewExternalLayer",509445010,.01),Cm(this,"ActiveViewExternalLayer",509445011,.01)):(Cm(this,"ActiveViewExternalLayer",509445012,.01),Cm(this,"ActiveViewExternalLayer",509445013,.01))));hda(this);var a=tm();a=eda(a);null!=a&&(this.A=!1,Dm(this,a.map(String)))};
Fm=function(){Em||(Em=new ida);return Em};
jda=function(a,b){a.g=b};
kda=function(){var a=Fm();(0,g.H)(a.o.Cb(),function(a){g.Da(a,"FORCED_PUB_EXP_LAYER_")&&this.o.remove(a)},a)};
Cm=function(a,b,c,d){E(g.F(b))||(0,window.isNaN)(c)||0>=c||(c=new Am(c,0,d),Gm(a,b).o.set(c.getId(),c))};
hda=function(a){dda()||(0,g.H)(a.o.fb(),function(a){gda(a)},a)};
Dm=function(a,b){(0,g.H)(b,function(a){var b=Number(a);a="FORCED_PUB_EXP_LAYER_"+a;(0,window.isNaN)(b)||0>=b||E(g.F(a))||(Gm(this,a).g=new Am(b,0,0,!0))},a)};
Hm=function(a,b){return a.A?!1:(0,g.Ek)(a.o.fb(),function(a){return!!a.g&&a.g.getId()==b})};
Im=function(a){if(a.A)return"";var b=[];(0,g.H)(a.o.fb(),function(a){(a=a.g)&&a.o&&b.push(a.getId())});
return b.sort().join(",")};
Gm=function(a,b){var c=a.o.get(b);null==c&&(c=new Bm(b),a.o.set(b,c));return c};
mda=function(){var a=[],b=Fm();(0,g.H)(lda,function(c){(c=(c=Gm(b,c))?c.g:null)&&a.push(c.getId())});
return a};
Mm=function(a){return null!=a?Jm(nda,a):!1};
Jm=function(a,b){try{var c=(new g.Ll(b)).o,c=c.replace(/^www./i,"");return(0,g.Ek)(a,function(a){return oda(a,c)})}catch(d){return!1}};
oda=function(a,b){if(E(g.F(b)))return!1;a=a.toLowerCase();b=b.toLowerCase();return"*."==a.substr(0,2)?(a=a.substr(2),a.length>b.length?!1:b.substr(-a.length)==a&&(b.length==a.length||"."==b.charAt(b.length-a.length-1))):a==b};
Om=function(a){var b=!1;Nm(a,pda)?b=!1:Mm(a)?b=!0:"https:"==window.location.protocol&&(Nm(a,qda)||P.g())&&(b=!0);if(b){b=new g.Ll(a);if("https"==b.B)return a;Ml(b,"https");return b.toString()}return a};
Nm=function(a,b){return(new RegExp("^https?://([a-z0-9-]{1,63}\\.)*("+b.join("|").replace(/\./g,"\\.")+")(:[0-9]+)?([/?#]|$)","i")).test(a)};
Pm=function(a){if(E(g.F(a)))return!1;a=new g.Ll(a);if(!a.B||"http"!=a.B&&"https"!=a.B)return!1;a=a.o;return-1==a.indexOf(".")||a.match(/^[\.0-9]*$/)?!1:!0};
Qm=function(a){E(g.F(a))||window.open(a,"_blank")};
Sm=function(a,b,c){null!=a?(g.Ul(a,"label",b),null!=c&&g.Ul(a,"value",c.join(";")),a=a.toString()):a="";Rm(a)};
Tm=function(a,b,c,d){null!=a&&null!=b&&(a=g.mm(a,b));try{if(null!=c){b=a;var e=(c||{}).viewability||"na";if(E(g.F(e)))a=b;else{var f=new g.Ll(b);cm(f.g,"label")?(g.Ul(f,"acvw",e),a=f.toString().replace(/%2C/g,",")):a=b}}a:{c=a;var k=c.length-11-2;if(!(-1==c.indexOf("URL_SIGNALS")||2048<=k||!d&&!window.Goog_AdSense_Lidar_getUrlSignalsArray))for(d=d||window.Goog_AdSense_Lidar_getUrlSignalsArray(),k={},e=0;e<d.length;++e){k.URL_SIGNALS=d[e];var l=g.mm(c,k);if(2048>l.length){a=l;break a}}a=c}}catch(m){}return a};
Rm=function(a,b,c,d){a=Tm(a,b,c,void 0);try{a=Om(a);var e=Fm(),f=!P.g()||Hm(e,41351089);b=!1;P.g()||!Hm(Fm(),634360102)||(b=!0);null!=d&&d?Um.PA(a,f):P.K?Um.mR(a,f,b):Um.LA(a,f,b)}catch(k){}};
Vm=function(a,b){null!=a&&(0,g.H)(a,function(a){Rm(a,b)})};
rda=function(a,b){if(E(g.F(b)))return a;var c=new g.Ll(a),d=c.o;return null!=d&&Ea(d,".g.doubleclick.net")?(g.Ul(c,"ged",b),c.toString()):a};
Wm=function(a,b){this.message=a;this.errorCode=b};
Ym=function(a,b,c){return Xm("adLoadError",a,b||null,g.qb(arguments,2))};
Zm=function(a,b,c){return Xm("adPlayError",a,b||null,g.qb(arguments,2))};
$m=function(a,b,c,d,e){var f=a.apply(null,g.nb([c,d],g.qb(arguments,3)));b.dispatchEvent(new sm("log",null,f))};
an=function(a,b,c){$m(Zm,a,b,c,void 0)};
Xm=function(a,b,c,d){if(c instanceof ym)return c;var e=b.errorCode;b=b.message;if(0<d.length)for(var f=0;f<d.length;f++)b=b.replace(new RegExp("\\{"+f+"\\}","ig"),d[f]);a=new ym(a,b,e);a.yk=c;return a};
bn=function(a,b,c,d){var e=Zm.apply(null,g.nb([b,c],g.qb(arguments,3)));a.dispatchEvent(new rm(e))};
cn=function(a,b){g.Me.call(this,"vpaidEventType");this.g=a;this.data=b};
dn=function(){return gk()||fk()};
gn=function(){return en&&!fn||Ka(g.Gb,"iPod")};
hn=function(){return gn()||fn};
ln=function(a){return hn()&&jn(kn,a)};
on=function(a){return g.mn&&jn(nn,a)};
jn=function(a,b){if(null==pn[b]){var c=qn(a);c?(c=c.replace(/_/g,"."),pn[b]=0<=g.Ra(c,b)):pn[b]=!1}return pn[b]};
qn=function(a){E(rn)&&(a=a.exec(g.Gb))&&(rn=a[1]);return rn};
sn=function(){var a=g.Gb;return a?Ka(a,"Nintendo WiiU"):!1};
tn=function(){var a;(a=Ka(g.Gb,"CrKey")||Ka(g.Gb,"PlayStation")||Ka(g.Gb,"Roku"))||(a=(a=g.Gb)?Ka(a,"AppleTV")||Ka(a,"GoogleTV")||Ka(a,"HbbTV")||Ka(a,"NetCast.TV")||Ka(a,"Opera TV")||Ka(a,"POV_TV")||Ka(a,"SMART-TV")||Ka(a,"SmartTV")||Ka(a,"TV Store")||Ka(a,"OMI/")||Ka(a,"Presto")&&Ka(a,"Linux")&&!Ka(a,"X11")&&!Ka(a,"Android")&&!Ka(a,"Mobi"):!1);return a||Ka(g.Gb,"Xbox")};
un=function(){var a=Fm();return en&&!fn&&ln(10)&&P.g()&&a.g.g("mweb_enable_skippables_on_iphone")||!P.g()&&(en&&!fn&&ln(10),0)?!0:gn()||g.mn&&!on(4)||!P.g()&&tn()?!1:!0};
vn=function(){return P.o||hn()&&(en&&!fn&&ln(10),!0)||g.mn&&!on(4)||tn()?!0:!1};
wn=function(){this.reset()};
xn=function(a,b){null!=b&&a.o!=b?(a.g=1,a.o=b):a.g=null!=b?a.g+1:1;return a.g};
yn=function(a,b,c,d,e,f){g.u(a)?(this.C="y"==a?b:0,this.B="m"==a?b:0,this.days="d"==a?b:0,this.g="h"==a?b:0,this.o="n"==a?b:0,this.A="s"==a?b:0):(this.C=a||0,this.B=b||0,this.days=c||0,this.g=d||0,this.o=e||0,this.A=f||0)};
g.Bn=function(a,b,c){g.oa(a)?(this.date=zn(a,b||0,c||1),An(this,c||1)):g.va(a)?(this.date=zn(a.getFullYear(),a.getMonth(),a.getDate()),An(this,a.getDate())):(this.date=new Date((0,g.G)()),a=this.date.getDate(),this.date.setHours(0),this.date.setMinutes(0),this.date.setSeconds(0),this.date.setMilliseconds(0),An(this,a))};
zn=function(a,b,c){b=new Date(a,b,c);0<=a&&100>a&&b.setFullYear(b.getFullYear()-1900);return b};
g.Cn=function(a){a=a.getTimezoneOffset();if(0==a)a="Z";else{var b=Math.abs(a)/60,c=Math.floor(b),b=60*(b-c);a=(0<a?"-":"+")+g.Na(c,2)+":"+g.Na(b,2)}return a};
An=function(a,b){a.getDate()!=b&&a.date.setUTCHours(a.date.getUTCHours()+(a.getDate()<b?1:-1))};
Dn=function(){this.o=this.g=null};
Fn=function(){this.g=En();this.M=-1;this.O=this.P=this.C=this.K=this.o=null;this.B=En();this.A=null;this.ba=this.F=this.J="";this.G=this.V=this.da=this.D=null;this.ca=!1;this.fa=0};
En=function(){return Math.floor(4503599627370496*Math.random())};
Gn=function(a){null==a.C&&(a.C=new wn);return a.C};
Hn=function(a){if(P.o)return"h.3.0.0";var b="h."+a.ba;null!=a.D&&(b+="/n."+a.D,null!=a.o&&(b+="/"+a.o));return b};
In=function(){this.g=.01>Math.random();this.o=Math.floor(4503599627370496*Math.random())};
Ln=function(a,b,c,d){if(a.g||d){c=c||{};c.lid=b;c.sdkv=Hn(Jn);b=Im(Fm());E(g.F(b))||(c.e=b);c=sda(a,c);var e=new g.Ll("http://pagead2.googlesyndication.com/pagead/gen_204");g.Ib(c,function(a,b){g.Ul(e,b,null!=a?"boolean"==typeof a?a?"t":"f":""+a:"")},a);
a=Kn();Ml(e,a.B);Rm(e.toString())}};
sda=function(a,b){b.id="ima_html5";var c=Kn();b.c=a.o;b.domain=c.o;return b};
Kn=function(){var a=ee(),b=window.document;return new g.Ll(a.parent==a?a.location.href:b.referrer)};
Nn=function(){this.cf=Mn()};
Mn=function(){return P.g()||Hm(Fm(),420706082)?15E3:8E3};
On=function(){g.qf.call(this)};
Pn=function(){g.qf.call(this);this.g=new Fl;this.o=null;this.J=new g.dm(this);g.N(this,this.J);this.C="";this.B=this.K=this.F=this.A=null;this.G=-1};
Rn=function(){null!=Qn||(Qn=new Pn);return Qn};
Sn=function(a,b){var c={};c.queryId=a;c.viewabilityString=b;Rn().dispatchEvent(new sm("measurable_impression",null,c))};
Tn=function(a,b){var c={};c.queryId=a;c.viewabilityString=b;Rn().dispatchEvent(new sm("viewable_impression",null,c))};
Un=function(a,b,c){var d={};d.queryId=a;d.viewabilityString=b;d.eventName=c;Rn().dispatchEvent(new sm("externalActivityEvent",null,d))};
tda=function(a,b){if(a.o)if(a.B){var c=(0,g.G)()-a.G;b(a.B+"_ct"+c)}else{var d=a.g,c=window.setTimeout(function(){b("timeout");(0,g.H)(d.Cb(),function(a){d.get(a)===b&&d.remove(a)})},200);
a.g.set(c,b);var e={};e.osdId=a.C;e.eventId=c;In.getInstance().isLoggingEnabled()&&(a.D=(0,g.G)(),e.loggingId=Math.random(),Ln(In.getInstance(),43,{step:"sendingMessage",logid:e.loggingId,time:a.D}));a.o.send("activityMonitor","fetchAdTagUrl",e)}else b("")};
uda=function(a,b,c,d){if(a.o){var e={};e.queryId=c;e.vastEvent=b;a.C&&(e.osdId=a.C);e.isOverlay=null!=a.A;a.A&&(e.overlayBounds=g.vh(a.A));var f=a.g;b=window.setTimeout(function(){d({viewability:"timeout"});(0,g.H)(f.Cb(),function(a){f.get(a)===d&&f.remove(a)})},200);
a.g.set(b,d);e.eventId=b;a.o.send("activityMonitor","reportVastEvent",e)}else d({})};
Vn=function(){};
Yn=function(a,b){if(null==a||0>=a.width||0>=a.height)throw Zm(Wn,null,"ad slot size",a.toString());this.o=a;this.g=null!=b?b:new Vn;this.C=Xn(vda,this.g.A)?this.g.A:"All";this.B=Xn(wda,this.g.creativeType)?this.g.creativeType:"All";this.F=Xn(xda,this.g.B)?this.g.B:"SelectExactMatch";this.G=Xn(yda,this.g.o)?this.g.o:"DisallowResize";this.A=null!=this.g.C?this.g.C:[];this.D=g.oa(this.g.g)&&0<this.g.g&&100>=this.g.g?this.g.g:90};
$n=function(a,b){var c=[];(0,g.H)(b,function(a){a.Rw()&&((0,window.isNaN)(a.g.g)||(0,window.isNaN)(a.Xp())||a.Xp()==a.g.g)&&Zn(this,a)?c.push(a):(a=zda(this,a),null!=a&&a.Rw()&&c.push(a))},a);
return c};
Zn=function(a,b){var c;if(c="Flash"!=b.hd()||ao){if(c="All"==a.C||a.C==b.g.O)c=b.hd(),c=null!=c?"All"==a.B||a.B==c:!0;c&&(c=b.o,c=g.fb(a.A)?!0:null!=c?0<=(0,g.db)(a.A,c):!1)}if(c){var d=b.an();if("IgnoreSize"==a.F||g.Qd(a.o,d))c=!0;else if(c="SelectNearMatch"==a.F)"ResizeSmaller"==a.G&&(d=d.width<=a.o.width&&d.height<=a.o.height?d:bo(d,a.o)),c=d.width,d=d.height,c=c>a.o.width||d>a.o.height||c<a.D/100*a.o.width||d<a.D/100*a.o.height?!1:!0}else c=!1;return c};
zda=function(a,b){var c=b.A;return null!=c?g.$a(c,function(a){return Zn(this,a)},a):null};
bo=function(a,b){var c=Math.min(b.width/a.width,b.height/a.height);return new g.Pd(c*a.width,c*a.height)};
Xn=function(a,b){return null!=b&&Mb(a,b)};
co=function(a){a=0>a?0:Math.round(a);return 3600<=a?""+Math.floor(a/3600)+":"+("0"+Math.floor(a/60)%60).slice(-2)+":"+("0"+a%60).slice(-2):""+Math.floor(a/60)%60+":"+("0"+a%60).slice(-2)};
Ada=function(a){var b={};(0,g.H)(a.split(","),function(a){var c=a.split("=");2==c.length&&(a=Pa(c[0]),c=Pa(c[1]),0<a.length&&(b[a]=c))});
return b};
fo=function(a,b){if(a[b])return eo(a[b]);var c=b.toLowerCase(),d;for(d in a)if(d&&d.toLowerCase()==c)return eo(a[d]);return!1};
eo=function(a){return a?-1!=a.toString().search(/(?:true|1)/i):!1};
Bda=function(){this.g=this.Yf=1;this.o=this.B=0;this.A=1};
go=function(){g.qf.call(this);this.g=null;this.D=new g.dm(this);g.N(this,this.D);this.o=new Fl;this.F=new Fl;this.B=null;this.A=!1;this.C=null};
io=function(){null!=ho||(ho=new go);return ho};
ko=function(a){if(null==a)return!1;if(gn()&&null!=a.webkitDisplayingFullscreen)return a.webkitDisplayingFullscreen;var b=window.screen.availWidth||window.screen.width,c=window.screen.availHeight||window.screen.height;a=jo(a);return 0>=b-a.width&&42>=c-a.height};
jo=function(a){return g.ua(a.getBoundingClientRect)&&g.we(g.Sd(a),a)?a.getBoundingClientRect():{left:a.offsetLeft,top:a.offsetTop,width:a.offsetWidth,height:a.offsetHeight}};
lo=function(a,b,c,d,e){if(a.A){if(a.C)return a.C(b,c,e);e=e||{};if(d=d?a.F.get(d):P.G)null!=e.opt_fullscreen||(e.opt_fullscreen=ko(d)),null!=e.opt_adElement||(e.opt_adElement=d);a.B&&(P.o&&(e.opt_overlayAdElement=a.B),null!=e.opt_bounds||(e.opt_bounds=jo(a.B)));return gj("lidar::handlevast_html5",g.ya(vl,b,c,e))||{}}return{}};
mo=function(a,b){var c=[];a.o.forEach(g.ya(function(a,b,c,k){c==b&&a.push(k)},c,b));
(0,g.H)(c,a.o.remove,a.o)};
no=function(a){if(g.ua(window.Goog_AdSense_Lidar_getUrlSignalsArray)){var b={};b.pageSignals=window.Goog_AdSense_Lidar_getUrlSignalsArray();a.g.send("activityMonitor","pageSignals",b)}};
Cda=function(){if(!(pa.ima&&pa.ima.video&&pa.ima.video.client&&pa.ima.video.client.tagged)){g.v("ima.video.client.sdkTag",!0,void 0);var a=pa.document,b=a.createElement("script"),c=a.location.protocol;"http:"!=c&&"https:"!=c&&(c="");b.src=c+"//s0.2mdn.net/instream/video/client.js";b.async=!0;b.type="text/javascript";a=a.getElementsByTagName("script")[0];a.parentNode.insertBefore(b,a)}};
Dda=function(a,b,c){if(!P.J)return"";var d=b?a.F.get(b):P.G;a={};null!=c&&(a.fullscreen=c);c="";try{c=wba(function(){return d},a)}catch(e){c="sdktle;"+Ia(e.name,12)+";"+Ia(e.message,40)}return c};
oo=function(a,b){g.Me.call(this,a);this.g=b};
po=function(a,b){this.J=a;this.G=(0,g.I)(b,function(a){return a.clone()});
this.F="";this.g=null;this.o=this.B=0;this.A=!0;this.D=[];this.C=[]};
qo=function(a,b,c,d,e){a.F="<div></div>";a.g=b;a.B=c;a.o=d;a.A=!1;a.D=e||[];a.C=[]};
ro=function(a){a.F="";a.g=null;a.B=0;a.o=0;a.A=!0;a.D=[];a.C=[]};
so=function(a){g.Me.call(this,a)};
to=function(a){if(a&&a.items&&a.items.length){a=a.items[0];this.channelId=a.id;var b=a.snippet;b&&(this.authorName=b.title,this.channelIconThumbnailUrl=g.Pb(b,"thumbnails","default","url"));if(b=a.statistics)this.videoCount=b.videoCount;if(a=a.brandingSettings)this.g=g.Pb(a,"image","bannerImageUrl")}};
g.uo=function(a){this.g="number"==typeof a?0<a?1:0>a?-1:null:null==a?null:a?-1:1};
g.vo=function(a,b){var c=a.o(b,void 0);return-1==(0==c?a.g:c)?"rtl":"ltr"};
wo=function(){throw Error("Do not instantiate directly");};
xo=function(a,b){this.content=String(a);this.lg=null!=b?b:null};
yo=function(){wo.call(this)};
zo=function(){wo.call(this)};
Ao=function(){wo.call(this)};
Bo=function(){wo.call(this)};
Co=function(){wo.call(this)};
Do=function(){wo.call(this)};
Eo=function(a,b){return null!=a&&a.yf===b};
Fo=function(a){if(null!=a)switch(a.lg){case 1:return 1;case -1:return-1;case 0:return 0}return null};
Q=function(a){return null!=a&&a.yf===Go?a:a instanceof g.yd?Ho(g.zd(a),a.Pi()):Ho(Ha(String(String(a))),Fo(a))};
Io=function(a){function b(a){this.content=a}
b.prototype=a.prototype;return function(a){return new b(String(a))}};
Lo=function(a,b,c){var d="key_"+a+":"+b,e=Jo[d];if(void 0===e||0>e)Jo[d]=0,Ko[d]=c;else if(0==e)throw Error('Encountered two active delegates with the same priority ("'+a+":"+b+'").');};
Mo=function(a,b){var c=Ko["key_"+a+":"+b];c||""==b||(c=Ko["key_"+a+":"]);return c?c:Eda;throw Error('Found no active impl for delegate call to "'+a+":"+b+'" (and not allowemptydefault="true").');};
Eda=function(){return""};
Qo=function(a){return Eo(a,Go)?String(String(a.gd()).replace(No,"").replace(Oo,"&lt;")).replace(Fda,Po):Ha(String(a))};
Ro=function(a){return Eo(a,Go)?String(String(a.gd()).replace(No,"").replace(Oo,"&lt;")).replace(Gda,Po):String(a).replace(Hda,Po)};
Ida=function(a){return"%"+a.charCodeAt(0).toString(16)};
To=function(a){a=g.Fa(String(a));So.lastIndex=0;return So.test(a)?a.replace(So,Ida):a};
Zo=function(a){Eo(a,Uo)||Eo(a,Vo)?a=Wo(a):a instanceof td?a=Wo(ud(a)):a instanceof pd?a=Wo(qd(a)):(a=String(a),a=Jda.test(a)?a.replace(Xo,Yo):"about:invalid#zSoyz");return a};
$o=function(a){Eo(a,Uo)||Eo(a,Vo)?a=Wo(a):a instanceof td?a=Wo(ud(a)):a instanceof pd?a=Wo(qd(a)):(a=String(a),a=Kda.test(a)?a.replace(Xo,Yo):"about:invalid#zSoyz");return a};
bp=function(a){var b=ap[1]||(ap[1]=new g.uo(1)),c=Fo(a);null==c&&(c=nd(a+"",Eo(a,Go)));return Lda(c!=b.g?-1==c?'dir="rtl"':1==c?'dir="ltr"':"":"")};
Po=function(a){return Mda[a]};
Yo=function(a){return Nda[a]};
Wo=function(a){return String(a).replace(Xo,Yo)};
Oda=function(a){return'<div class="text-container '+(a.image?"pyv":"")+'"><div class="text-inner-container">'+(a.image?(a.Lc?'<a class="text-image-link" target="_blank" href="'+Q(a.Lc)+'">':'<a class="text-image-link" target="_blank">')+'<img src="'+Q(a.image)+'" class="text-image '+(a.vB?"yt-video-image":"")+'">'+(a.duration?'<div class="text-image-duration">'+Q(a.duration)+"</div>":"")+"</a>":"")+(a.Lc?'<a class="text-title" href="'+Q(a.Lc)+'" target="_blank" dir='+Q(a.dir)+">"+Q(a.title)+"</a>":
"")+'<div class="text-description" dir='+Q(a.dir)+">"+Q(a.text)+"</div>"+(a.wB&&a.Lc?'<a target="_blank" href="'+Q(a.Lc)+'" class="text-ad-channel">'+Q(a.wB)+"</a>":"")+"</div></div>"};
Pda=function(a){return'<div class="flash-container '+(a.capture?"click-capture":"")+'">'+(a.Lc?'<a class="click-layer" target="_blank" href="'+Q(a.Lc)+'"></a>':"")+'<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="//download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="'+Q(a.width)+'" height="'+Q(a.height)+'"><param name="movie" value="'+Q(a.url)+'"><param name="quality" value="high"><param name="wmode" value="transparent"><param name="AllowScriptAccess" value="never"><param name="FlashVars" value="clickTAG='+
To(a.Lc)+'"><embed width="'+Q(a.width)+'" height="'+Q(a.height)+'" wmode="transparent" type="application/x-shockwave-flash" src="'+Q(a.url)+'" allowscriptaccess="never" pluginspage="//www.macromedia.com/go/getflashplayer" flashvars="clickTAG='+To(a.Lc)+'"></object></div>'};
Qda=function(a){return'<div class="image-container" id="'+Q(a.id)+'" style="width:'+Q(a.width)+";height:"+Q(a.height)+';">'+(a.Lc?'<a target="_blank" href="'+Q(a.Lc)+'">':'<a target="_blank">')+'<img src="'+Q(a.url)+'" border="0"></a></div>'};
Rda=function(a){return'<div class="image-container" id="'+Q(a.id)+'">'+(a.Lc?'<a target="_blank" href="'+Q(a.Lc)+'">':'<a target="_blank">')+'<img src="'+Q(a.url)+'" border="0" style="max-width:100%;max-height:100%;"></a></div>'};
cp=function(a){return'<div class="image-container" id="'+Q(a.id)+'" style="width:'+Q(a.width)+";height:"+Q(a.height)+';"></div>'};
dp=function(){this.g=new Fl};
ep=function(a,b){this.A=a;this.g=b};
fp=function(a,b){ep.call(this,"progress",a);this.o=b};
hp=function(a,b){(0,g.H)(b,function(a){var b=a.bc().toLowerCase(),c=gp(this,b);c.push(a);this.g.set(b,c)},a)};
ip=function(a,b,c,d){b=b.toLowerCase();c=null!=d?new fp(c,d):new ep(b,c);d=gp(a,b);d.push(c);a.g.set(b,d)};
gp=function(a,b){return null!=b?a.g.get(b.toLowerCase(),[]):[]};
Sda=function(a,b){var c=gp(a,"progress");(0,g.H)(c,function(a){jp(a.o,b)});
g.yb(c,function(a,b){return kp(a.o)-kp(b.o)})};
lp=function(a,b){return(0,g.I)(gp(a,b),function(a){return a.g})};
mp=function(){this.Sa=-1;this.G={};this.sa="";this.ej=new dp};
np=function(a,b,c){a.sa=b;a.G=c};
op=function(a,b){var c=[],d=a.Im();(0,g.H)(d,function(a){a=gp(a.ej,b)||[];c=g.nb(a,c)},a);
return c};
pp=function(a,b,c){var d=c||!1;return g.$a(b.F,function(a){var b=a.g==this.g;return a instanceof this.constructor&&(d||b)},a)};
qp=function(a,b,c,d,e,f,k,l,m,n){this.B=a;this.g=b;this.F=c;(0,window.isNaN)(d)&&(0,window.isNaN)(e)&&(0,window.isNaN)(f)?f=e=0:(0,window.isNaN)(e)&&!(0,window.isNaN)(f)?e=f:!(0,window.isNaN)(e)&&(0,window.isNaN)(f)?f=e:!(0,window.isNaN)(d)&&(0,window.isNaN)(e)&&(0,window.isNaN)(f)&&(e=f=d);this.ih=e;this.Lf=f;this.D=k;this.C=l;this.o=Om(g.F(m));this.A=n};
rp=function(a,b,c,d,e,f){mp.call(this);this.Sa=a;this.B=b;this.A=c;this.o=g.ob(d);this.C=null;this.D=e;this.Za=g.ob(f);sb(this.Za,null,function(a){return a.M})};
sp=function(a){var b=new Fl,c=a.Im();(0,g.H)(c,function(a){if(a instanceof rp){var c=a.A;(0,g.H)(c.Cb(),function(a){b.set(a,g.nb(c.get(a),b.get(a)||[]))},this)}},a);
return b};
up=function(a){return tp(a,"x-shockwave-flash")};
tp=function(a,b){var c=g.$a(a.o,function(a){return!E(g.F(a.g))&&-1!=a.g.indexOf(b)&&("VPAID"==a.A||"surveys"==a.A)});
return null!=c?c:null};
wp=function(a,b,c,d,e){mp.call(this);E(g.F(a))&&(a=Ua()+"_ima");this.Aa=g.F(a);this.Ia=b;this.O=c;this.ra=d;this.A=e;this.M=[];null!=this.ra?this.da=vp[this.ra]||"Other":this.da=null};
xp=function(a,b,c){g.M.call(this);this.o=a;this.C=b;this.K=c;this.B=0;this.g={};this.A=new g.dm(this);g.N(this,this.A);Tda(this)};
Tda=function(a){(0,g.H)(a.K,function(a){this.A.X(a.element,"mousedown",this.F,!0);this.A.X(a.element,"mouseup",g.ya(this.J,a),!0)},a);
a.A.X(a.C,"mouseenter",a.G)};
Uda=function(a,b){g.Ib(a.g,function(a,d){b=Ig(b,d,a)});
return b};
yp=function(a,b,c,d,e){wp.call(this,a,b,c,d,e);this.ha=this.B=null;this.Fa=-2;this.o=null;this.ga=this.ba=g.y;this.ca=[];this.Ra=[];this.D=!1;this.bb=null};
Bp=function(a,b){a.o=b;null!=a.B&&null!=b&&(zp(a,a.ba),Ap(a,a.ga))};
zp=function(a,b){null!=a.o&&null!=a.B&&(0,g.H)(a.ca,function(a){this.o.za(a,"click",this.ba);!E(g.F(this.Ze()))&&this.o.X(a,"click",b)},a);
a.ba=b};
Ap=function(a,b){null!=a.o&&null!=a.B&&(a.o.za(a.B,"creativeview",a.ga),a.o.X(a.B,"creativeview",b));a.ga=b};
Cp=function(a,b){var c=a.Aa,d={};d.style="cursor:default;position:relative;z-index:1001;height:"+a.getHeight()+"px;";"Text"!=a.hd()&&(d.style+="width:"+a.Eb()+"px");E(g.F(c))||(d.id=c);return g.ge("DIV",d,b)};
Dp=function(a){if(!a.D)return null;var b=op(a,"start");pb(b,op(a,"creativeview"));if(null!=b&&!g.fb(b)){var c=[];(0,g.H)(b,function(a){if(!E(g.F(a))){var b=g.Ud().uG("IFRAME",{frameborder:0,style:"border:0;vertical-align:bottom;",src:Vda});g.bh(b,{display:"block",height:"0px",width:"0px"});var d="iframe"+Math.floor(1E9*Math.random());b.setAttribute("height",0);b.setAttribute("width",0);b.setAttribute("src",Om(a.g));b.setAttribute("id",d);this.Ra.push(d);g.ib(c,b)}},a);
return c}return null};
Wda=function(a,b){if(null!=a.B)if(Fm().g.g("cleanup_text_overlay_spam_signals")){var c=[];(0,g.H)(a.ca,function(a){c.push({element:a,HF:this.Up(a)})},a);
new xp(b,a.B,c)}else c=new Fl,(0,g.H)(a.ca,function(a){c.set(a,this.Up(a))},a),new lm(b,a.B,c)};
Xda=function(a){var b=[],c=a.Im();(0,g.H)(c,function(a){b=g.nb(b,a.M)},a);
return b};
Ep=function(a,b,c){var d=c||!1;return g.$a(b.F,function(a){var b=a.g==this.g;return this instanceof a.constructor&&(d||b)},a)};
Fp=function(a,b){this.g=null!=a?a:new dp;this.J=null!=b?b:[]};
Yda=function(a,b){var c=b.g;(0,g.H)(c.Cb(),function(a){hp(this.g,c.get(a))},a)};
Gp=function(a,b){var c=lp(a.g,b);return null!=c?c:[]};
g.Hp=function(a){if(a.classList)return a.classList;a=a.className;return g.u(a)&&a.match(/\S+/g)||[]};
g.Ip=function(a,b){return a.classList?a.classList.contains(b):g.eb(g.Hp(a),b)};
g.R=function(a,b){a.classList?a.classList.add(b):g.Ip(a,b)||(a.className+=0<a.className.length?" "+b:b)};
g.Jp=function(a,b){if(a.classList)(0,g.H)(b,function(b){g.R(a,b)});
else{var c={};(0,g.H)(g.Hp(a),function(a){c[a]=!0});
(0,g.H)(b,function(a){c[a]=!0});
a.className="";for(var d in c)a.className+=0<a.className.length?" "+d:d}};
g.Kp=function(a,b){a.classList?a.classList.remove(b):g.Ip(a,b)&&(a.className=(0,g.re)(g.Hp(a),function(a){return a!=b}).join(" "))};
g.Lp=function(a,b){a.classList?(0,g.H)(b,function(b){g.Kp(a,b)}):a.className=(0,g.re)(g.Hp(a),function(a){return!g.eb(b,a)}).join(" ")};
g.S=function(a,b,c){c?g.R(a,b):g.Kp(a,b)};
g.Mp=function(a,b,c){g.Ip(a,b)&&(g.Kp(a,b),g.R(a,c))};
g.Np=function(a,b){var c=!g.Ip(a,b);g.S(a,b,c);return c};
Op=function(a,b){var c=a(b||Zda,void 0,void 0);var d=g.Ud().createElement("DIV");c=$da(c);d.innerHTML=c;1==d.childNodes.length&&(c=d.firstChild,1==c.nodeType&&(d=c));return d};
$da=function(a){if(!g.va(a))return String(a);if(a instanceof wo){if(a.yf===Go)return a.gd();if(a.yf===Pp)return Ha(a.gd())}return"zSoyz"};
Rp=function(a,b){yp.call(this,a,b,"Static","text","")};
Sp=function(a){null!=a?Jm(aea,a)?(a=a.match(/yt_vid\/([a-zA-Z0-9_-]{11})/),a=null!=a&&1<a.length?a[1]:null):a=Mm(a)?bea(a):null:a=null;return a};
Tp=function(a,b,c){if(null==a)return null;c=new g.Ll((null!=c?c:"//www.youtube.com/")+"watch");var d=c.g;d.set("v",a);d.set("feature",b?"trueview-instream":"instream");Ql(c,d);return c.toString()};
Up=function(a){a=null!=a?a:{};var b=new g.Ll("//www.youtube.com/gen_204");Ml(b,"https");a=am(a);Ql(b,a);return b.toString()};
Vp=function(a){return null===a?!1:"pharma"==(new g.Ll(a)).Qh().toLowerCase()};
bea=function(a){if(E(g.F(a)))return null;var b=a.match(/^https?:\/\/[^\/]*youtu\.be\/([a-zA-Z0-9_-]+)$/);if(null!=b&&2==b.length)return b[1];b=a.match(/^https?:\/\/[^\/]*youtube.com\/video\/([a-zA-Z0-9_-]+)$/);if(null!=b&&2==b.length)return b[1];b=a.match(/^https?:\/\/[^\/]*youtube.com\/watch\/([a-zA-Z0-9_-]+)$/);if(null!=b&&2==b.length)return b[1];a=(new g.Ll(a)).g;return cm(a,"v")?a.get("v").toString():cm(a,"video_id")?a.get("video_id").toString():null};
Wp=function(a){return E(g.F(a))?null:"//i1.ytimg.com/vi/"+a+"/mqdefault.jpg"};
bq=function(a,b,c){var d={};a=new Xp(a,g.t(b)?b:null,g.t(c)?c:null);Yp(d,a);b=a.error;d.ERRORCODE=1E3>b.o?b.o:900;Zp(d);$p(d,a);aq(d,a);b=a.error.Lb();d.ERROR_MSG=a.error.ud();d.IMA_ERROR=b;d.INTERNAL_ID="0";d.BLOCKING_ERROR=-1!=(0,g.db)(cea,b)?"1":"0";d.YT_ERROR_CODE=3;return d};
cq=function(a,b){var c={},d=new Xp(null,a,g.t(b)?b:null);Yp(c,d);Zp(c);$p(c,d);aq(c,d);c.BREAK_TYPE="0";c.SLOT_POS="0";c.MIDROLL_POS="0";if(null!=d.g){var e=d.g.A;if(null!=e&&null!=e.Dh&&null!=e.Dh.video_start_delay)e=e.Dh.video_start_delay,0==e?c.BREAK_TYPE="1":-1==e?c.BREAK_TYPE="3":(c.BREAK_TYPE="2",c.MIDROLL_POS=e);else{e=d.g.C;c.BREAK_TYPE=0==e.B?"1":-1==e.B?"3":"2";var f=d.g.Ue();f&&(c.BREAK_TYPE=f);c.SLOT_POS=e.g-1;e=d.g.A;e=null!=e&&null!=e.Fc&&null!=e.Fc.GET_MIDROLL_POSITION_IN_SEC?e.Fc.GET_MIDROLL_POSITION_IN_SEC:
null;f=Math.round(d.g.C.o);e=0<f&&e?e(f):f;0<e&&(c.MIDROLL_POS=e)}}dea(c,d);eea(c,d);d=a.kb;for(e=a;null!=e;)d=e.Na+","+d,e=e.o;c.RWT=d;return c};
Xp=function(a,b,c){this.error=a;this.g=b;this.o=c};
dq=function(a,b){null!=b&&(a.VIEWABILITY=b)};
eq=function(a,b,c,d){fea(c,b)?a[c]=d||"":a[c]=""};
fea=function(a,b){return(0,g.Ek)(gea[a],function(a){return null!=b.match(a)})};
Yp=function(a,b){a.CACHEBUSTING={toString:function(){return Math.round(1E8*Math.random()+1E8).toString().slice(1)}};
a.ASSETURI={toString:function(){return null!=b.o?b.o.getVideoUrl():""}};
a.TIMESTAMP={toString:function(){return(new Date).toISOString()}}};
eea=function(a,b){a.AD_CPN={toString:function(){return b.o.Be()}};
a.AD_MT={toString:function(){return Math.round(Math.max(0,1E3*b.o.getCurrentTime())).toString()}};
a.MT={toString:function(){return b.o?Math.round(Math.max(0,1E3*b.o.getCurrentTime(1))).toString():"0"}};
a.P_W={toString:function(){return null!=b.o&&null!=b.o.Hf()?b.o.Hf().width.toString():""}};
a.P_H={toString:function(){return null!=b.o&&null!=b.o.Hf()?b.o.Hf().height.toString():""}}};
Zp=function(a){a.SDKV=Hn(Jn);a.EL="adunit";a.CONN="0";a.WT={toString:function(){return Date.now()}};
a.VED=""};
$p=function(a,b){if(null!=b.g&&null!=b.g.A&&null!=b.g.A.Fc&&P.g()){var c=b.g.A.Fc;(0,g.H)(hea,function(b){b in c&&(a[b]=c[b])})}};
aq=function(a,b){if(null!=b.g){a.AD_ID=iea(b.g);a.AD_SYS=jea(b.g);var c=fq(b.g);a.AQI=null!=c?c:"";a.AD_V={toString:function(){if(null!=b.o){var a=Sp(b.o.getVideoUrl());if(null!=a)return a}return"0"}};
a.FORMAT_NAMESPACE="0";a.FORMAT_TYPE="0";a.FORMAT_SUBTYPE="0";c=[];try{c=gq(b.g).split("_")}catch(d){}1<=c.length&&(a.FORMAT_NAMESPACE=c[0]);2<=c.length&&(a.FORMAT_TYPE=c[1]);3<=c.length&&(a.FORMAT_SUBTYPE=c[2]);a.FINAL="1"}};
dea=function(a,b){null!=b.g&&(a.AD_LEN={toString:function(){var a=b.g.getDuration();return 0>a?"-1":Math.round(1E3*a).toString()}},a.VOL={toString:function(){return null!=b.o?b.o.cj()?"0":Math.round(100*b.o.getVolume()).toString():""}})};
jq=function(a,b,c){var d=null,e=c+b;(0,g.H)(a.F,function(f){if(fo(f.G,"rm")){var k=cq(a);hq(a)&&(k.FILLED_OPPORTUNITY=0);Vm(a.ba,k);(k=a.A)&&k.afcRmFallback&&(d=f)}else{if(k=f instanceof yp)0==c&&0==b||f instanceof Rp?k=!0:(k=f.af(),k=k.width<=b&&k.height<=c);k&&(k=0==c&&0==b?0:c-f.af().height+b-f.af().width,"Flash"!=f.hd()||ao)&&(null!=d?k<e?(d=f,e=k):k==e&&("Flash"==d.hd()&&"Javascript"==f.hd()?d=f:f.g<d.g&&(d=f)):(d=f,e=k))}});
iq(a,d)};
kq=function(a){var b=null;(0,g.H)(a.F,function(a){a instanceof rp&&(null===b||a.g<b.g)&&(b=a)});
iq(a,b)};
lq=function(a,b,c,d){this.B=a;this.F=b;this.ads=0<this.B.length?this.B:this.F;this.D=c;this.C=this.G=!0;this.o=-1;this.g=null;this.K=this.A=0;this.M=d;this.logger=null};
pq=function(a,b,c){var d=[],e=(0,g.A)(function(a){this.Ff()?this.Te(function(a){d.push(a);e(null)},function(a){301==a.Lb()?c(Ym(mq)):e(a)}):0<d.length?b(d):(null==a&&(a=Ym(nq)),1012==a.Lb()&&(a=Ym(oq)),c(a))},a);
e(null)};
kea=function(a,b){a.C=b;a.ads=a.Wv(a.B,a.F);a.o=-1};
lea=function(a,b,c,d){var e=a.D.clone();e.o="";e.g=b.Gb;qq(a,b,e,c,d)};
qq=function(a,b,c,d,e){var f=b.getExtension("LocalRedirect");null!=f&&(f=f.A,null!=f&&(c.o=f));a.M.fetch(c,(0,g.A)(function(a){a instanceof lq?(mea(a,b,this.C&&b.ob,b.sb),d(a)):a instanceof rq?e(new ym("adLoadError","Ad source cannot contain playlist response.",2)):e(new ym("adLoadError","Unknown ad source.",2))},a),e)};
nea=function(a){var b=0;for(a=a.o;null!=a;)a=a.o,b++;return b};
oea=function(a,b,c){a.g.Ff()?a.g.Te((0,g.A)(function(a){this.Ln(a,b,(0,g.A)(function(a){this.Ff()?this.Te(b,c):c(a)},this))},a),(0,g.A)(function(a){sq(this.ads[this.o],a);
this.g=null;P.g()||301!=a.Lb()?this.Ff()?this.Te(b,c):c(a):c(a)},a)):(0==a.g.A&&sq(a.ads[a.o],Ym(tq)),a.g=null,a.Te(b,c))};
sq=function(a,b){if(b.A){1012==b.Lb()&&(b=Ym(oq));var c=bq(b,a),d=a.oa;P.g()&&Fm().g.g("disable_reporting_html5_no_vast_ads_as_error")&&303==b.Lb()&&(d=(0,g.re)(d,function(a){return!Ja(a,".youtube.com/api/stats/ads")}));
Vm(d,c)}};
rea=function(a,b,c){a.o++;var d=a.ads[a.o];d.ha||d.ga?d.ga?lea(a,d,(0,g.A)(function(a){this.g=a;this.Te(b,c)},a),(0,g.A)(function(a){a=uq(a);
sq(d,a);c(a)},a)):nea(d)>=P.O?(a=Ym(pea,null,String(P.O)),sq(d,a),c(a)):a.G?a.hs(d,(0,g.A)(function(a){this.g=a;
this.Te(b,c)},a),(0,g.A)(function(a){a=uq(a);
sq(d,a);c(a)},a)):c(Ym(qea)):a.Ln(d,b,c)};
uq=function(a){switch(a.Lb()){case 300:case 301:case 302:case 303:case 200:case 1012:break;default:a=Ym(tq)}return a};
mea=function(a,b,c,d){(0,g.H)(a.ads,function(a){a.o=b});
kea(a,c);a.G=d};
vq=function(a){Fp.call(this);this.o=(0,window.isNaN)(a)?-1:a};
wq=function(a,b,c,d){lq.call(this,[],a,b,c);this.J=d};
xq=function(a){var b=a.ads.length-(0>a.o?1:a.o+1);return null!=a.g&&a.g instanceof wq?b+xq(a.g):b};
yq=function(a){g.Ll.call(this,a);this.F=new Fl;a=this.A;var b=a.indexOf(";"),c=null;0<=b?(g.Pl(this,a.substring(0,b)),c=a.substring(b+1)):g.Pl(this,a);sea(this,c)};
sea=function(a,b){E(g.F(b))||(0,g.H)(b.split(";"),function(a){var b=a.indexOf("=");if(0<b){var c=Ga(a.substring(0,b));a=Ga(a.substring(b+1));b=this.F.get(c);null!=b?g.eb(b,a)||b.push(a):b=[g.F(a)];this.F.set(c,b)}},a)};
zq=function(a,b){if(E(g.F(b)))return null;var c=a.F.get(b);return null!=c?c:null};
Aq=function(a,b,c){E(g.F(b))||(c=g.I(c,g.F),a.F.set(b,c))};
Bq=function(a,b){var c=[g.F(b)];pb(c,tea(a));return c.join(";")};
tea=function(a){var b=zq(a,"ord");null!=b?E(g.F("ord"))||a.F.remove("ord"):b=[g.F((0,g.G)())];var c=[];(0,g.H)(a.F.Cb(),function(a){(0,g.H)(this.F.get(a),function(b){pb(c,a+"="+b)})},a);
pb(c,"ord="+b[0]);Aq(a,"ord",b);return c};
Dq=function(a){if(null==a)return!1;a=new g.Ll(a);var b=a.A;return Ea(a.o,"googleads.g.doubleclick.net")&&Cq("/pagead/(live/)?ads",b)};
Eq=function(a){a=a.g;return null!=a?"bid.g.doubleclick.net"==(new g.Ll(a)).o:!1};
Fq=function(a){if(null==a)return!1;var b=new yq(a);a=b.o;b=Bq(b,b.A);return!Ea(a,".g.doubleclick.net")&&Ea(a,"doubleclick.net")&&Cq("/(ad|pfad)[x|i|j]?/",b)};
Gq=function(a){if(null==a)return!1;a=new g.Ll(a);var b=a.A;return Ea(a.o,"doubleclick.net")&&Cq("/gampad/(live/)?ads",b)};
uea=function(a){return Dq(a.g)||Fq(a.g)||Gq(a.g)||Eq(a)};
Hq=function(a){a=a.g;if(null==a)return!1;a=new g.Ll(a);var b=a.A;return Ea(a.o,"youtube.com")&&Cq("/get_midroll_info",b)};
vea=function(a){a=a.g;if(null==a)return null;a=(new g.Ll(a)).g;return null!=a.get("ms")?g.F(a.get("ms")):null};
Cq=function(a,b){return E(g.F(b))?!1:(new RegExp(a)).test(b)};
Iq=function(a,b,c,d){this.g=a;this.A=b;this.o=c;this.B=null!=d?d:!1};
Jq=function(a,b){a.g.J=b;(0,g.H)(a.A,function(a){Jq(a,b)},a)};
Kq=function(a){return Ho('<div class="iv-endcap-background"><div class="iv-endcap-slot"><div class="iv-endcap-card"><a class="iv-endcap-image" href="'+Qo(Zo(a.target))+'" target="_blank"><img src="'+Qo($o(a.image))+'"></a><div class="iv-endcap-text" dir='+Ro(a.dir)+'><a href="'+Qo(Zo(a.target))+'" target="_blank"><div class="iv-endcap-headline">'+Q(a.headline)+'</div><div class="iv-endcap-description">'+Q(a.description)+'</div></a></div><a class="iv-endcap-action" href="'+Qo(Zo(a.target))+'" target="_blank" dir='+
Ro(a.dir)+">"+(a.action?Q(a.action):'<span class="iv-endcap-action-icon"></span>')+'</a></div></div><div class="iv-endcap-bottom"><svg class="iv-endcap-countdown" viewBox="0 0 20 20"><circle class="iv-endcap-countdown-inner" r="5" cx="10" cy="10" /><circle class="iv-endcap-countdown-outer" r="10" cx="10" cy="10" /></svg></div></div>')};
wea=function(){var a=Aa("Next");return Ho(""+a)};
xea=function(){var a=Aa("Previous");return Ho(""+a)};
yea=function(a){var b='<div class="iv-cards-companion"><div class="iv-cards-attribution"><span class="yt-badge yt-badge-ad">'+Lq()+"</span>";if(a.Ku&&a.Lc)var c=Aa("Shop products from {$advertiserName}",{advertiserName:Q(a.Ku)}),b=b+('<a class="ad-companion-clickthrough" href="'+Qo(Zo(a.Lc))+'" target="_blank">'+c+"</a>");for(var b=b+('<div class="yt-uix-hovercard ad-info-container"><span class="yt-uix-hovercard-target" data-position="topright" data-orientation="horizontal"><span class="ad-info-icon"></span></span><div class="yt-uix-hovercard-content"><p>'+
Q(a.pe)+'</p></div></div></div><div class="iv-cards-slider"><div class="iv-cards-slider-body"><ul class="iv-cards-slider-list">'),c=a.cards,d=c.length,e=0;e<d;e++){var f=c[e];f=Ho('<div class="iv-cards-slider-unit"><a href="'+Qo(Zo(f.target))+'" target="_blank"><div class="iv-cards-slider-image"><span class="iv-cards-image-helper"></span><img src="'+Qo($o(f.image))+'"></div><div class="yt-ui-ellipsis yt-ui-ellipsis-4 iv-cards-slider-text">'+Q(f.headline)+'</div><span class="iv-cards-slider-action">'+
Q(f.action)+"</span></a></div>");b+='<li class="iv-cards-slider-item">'+f+"</li>"}b+="</ul></div>"+(a.fR?'<button class="iv-cards-slider-button iv-cards-slider-prev" type="button" onclick=";return false;"><span class="iv-cards-slider-prev-icon yt-uix-tooltip yt-sprite" data-tooltip-text="'+Qo(a.oA)+'" title="'+Qo(a.oA)+'" /></button><button class="iv-cards-slider-button iv-cards-slider-next" type="button" onclick=";return false;"><span class="iv-cards-slider-next-icon yt-uix-tooltip yt-sprite" data-tooltip-text="'+
Qo(a.dz)+'" title="'+Qo(a.dz)+'"></span></button>':"")+"</div></div>";return Ho(b)};
zea=function(a){return Ho('<div class="iv-website-companion"><div class="yt-uix-hovercard ad-info-container iv-website-companion-ad-info"><span class="yt-uix-hovercard-target" data-position="topright" data-orientation="horizontal"><span class="ad-info-icon"></span></span><div class="yt-uix-hovercard-content"><p>'+Q(a.pe)+'</p></div></div><a href="'+Qo(Zo(a.target))+'" target="_blank">'+(a.Uu?'<img class="iv-website-companion-banner" src="'+Qo($o(a.Uu))+'">':"")+'<div class="iv-website-companion-block"><div class="iv-website-companion-icon"><img src="'+
Qo($o(a.BH))+'"></div><div class="iv-website-companion-text"><div class="iv-website-companion-header">'+Q(a.headline)+'</div><div class="iv-website-companion-desc"><span class="yt-badge yt-badge-ad">'+Lq()+'</span><span class="iv-website-companion-domain">'+Q(a.descriptionText)+'</span></div></div><div class="iv-website-companion-action yt-uix-button-size-default yt-uix-button-primary">'+(a.Eu?Q(a.Eu):'<span class="iv-website-companion-action-icon"></span>')+'</div></div><a href="'+Qo(Zo(a.target))+
'" target="_blank"></div>')};
Lq=function(){var a=Aa("Ad");return Ho(""+a)};
Aea=function(a){var b=Mq(a);if(!b)return{};var c=Nq(b);return c?{shoppingCompanionItemRenderer:{headline:Oq(b.jd()),merchant:Oq(Pq(c)),image:{thumbnails:[{url:Qq(b).getImageUrl()}]},priceText:Oq(Rq(c)),clickthroughEndpoint:Sq(Tq(Uq(a)))}}:{}};
Oq=function(a){return{runs:[{text:a}]}};
Sq=function(a){a=a||"";return{webNavigationEndpointData:{url:a},urlEndpoint:{url:a,target:"TARGET_NEW_WINDOW"}}};
Vq=function(a){return{baseUrl:a}};
Wq=function(a,b){this.g=a;this.o=b};
kp=function(a){return a.o?-1:a.g};
jp=function(a,b){a.o&&(a.o=!1,a.g=a.g*b/100)};
Bea=function(a,b,c){b=c||b;a=a||{};return""+Mo("a",a.tm)(a,null,b)};
Cea=function(a){return'<div class="videoAdUi"><div class="videoAdUiTopBar"><div class="videoAdUiAttributionContainer videoAdUiAttributionContainer-gvn"><div class="videoAdUiAttribution"'+Q(bp(a.attributionText))+">"+Q(a.attributionText)+'</div></div></div><div class="videoAdUiProgressBar" dir="ltr"><div class="videoAdUiProgress"></div></div></div>'};
Dea=function(a){return'<div class="videoAdUi"><div class="videoAdUiTopBar"><div class="videoAdUiAttributionContainer videoAdUiAttributionContainer-gvn"><div class="videoAdUiAttribution"'+Q(bp(a.attributionText))+">"+Q(a.attributionText)+'</div></div><div class="videoAdUiLearnMoreText videoAdUiLearnMoreText-gvn">'+Q(a.fh)+'<div class="videoAdUiLearnMoreIcon"></div></div></div><div class="videoAdUiProgressBar" dir="ltr"><div class="videoAdUiProgress"></div></div></div>'};
Xq=function(){return Ho('<div class="videoAdUiPreSkipContainer"><div class="videoAdUiPreSkipButton"><div class="videoAdUiPreSkipText"></div><div class="videoAdUiPreSkipThumbnail" aria-hidden="true"></div></div></div>')};
Eea=function(){return Ho('<div class="videoAdUiPreSkipContainer videoAdUiPreSkipContainerPlainThumbnailCountdown"><div class="videoAdUiPreSkipButton"><div class="videoAdUiPreSkipText">You can skip to video in</div><div class="videoAdUiPreSkipThumbnail"><div class="videoAdUiPreSkipThumbnailCountdown"><span class="videoAdUiPreSkipTextTimeLeft"></span></div></div></div></div>')};
Yq=function(a){a=a||{};return""+Aa("Your video will begin in {$xSeconds}",{xSeconds:Q(a.Eg)})};
Fea=function(a){return Ho('<div class="videoAdUiBrandPrecapContainer html5-stop-propagation"><div class="videoAdUiBrandPrecapContent"><div class="videoAdUiBrandPrecapImageContainer" aria-hidden="true"><img class="videoAdUiBrandPrecapBrandImage" src="'+Qo($o(a.AF))+'"></div><div class="videoAdUiBrandPrecapTextContainer"><div class="videoAdUiBrandPrecapBrandName">'+Q(a.CF)+'</div><div class="videoAdUiBrandPrecapBrandMessage">'+Q(a.BF)+"</div></div></div></div>")};
Gea=function(a){return Ho('<div class="videoAdUiBrandPrecapContainer html5-stop-propagation"><img class="videoAdUiBrandPrecapAutoGenImage" src="'+Qo($o(a.zF))+'"></div>')};
Hea=function(a){a=a||{};return Ho('<div class="videoAdUiBrandInteractionUnit html5-stop-propagation"><span class="videoAdUiBrandInteractionPreMessageText">'+Q(a.preMessageText)+'</span><div class="videoAdUiBrandInteractionButtonContainer"><button class="videoAdUiBrandInteractionButton videoAdUiBrandInteractionLikeButton"><div class="videoAdUiBrandInteractionIcon videoAdUiBrandInteractionLikeIcon"></div></button><span class="videoAdUiBrandInteractionMessageBox videoAdUiLikeMsg"></span></div><div class="videoAdUiBrandInteractionButtonContainer"><button class="videoAdUiBrandInteractionButton videoAdUiBrandInteractionDislikeButton"><div class="videoAdUiBrandInteractionIcon videoAdUiBrandInteractionDislikeIcon"></div></button><span class="videoAdUiBrandInteractionMessageBox videoAdUiDislikeMsg"></span></div></div>')};
Iea=function(a){return Ho('<div class="videoAdUiBrandInteractionUnit videoAdUiBrandInteractionUnitConfirmationMsg html5-stop-propagation"><div class="videoAdUiBrandInteractionPostMessageText">'+Q(a.postMessageText)+"</div></div>")};
Jea=function(a){a=a||{};return Ho('<div class="videoAdUiReasonToWatchBox html5-stop-propagation"><div class="videoAdUiReasonToWatchText">'+Q(a.TQ)+"</div></div>")};
Kea=function(a){a=a||{};return Ho('<div class="videoAdUiReasonToWatchBox videoAdUiReasonToWatchDynamicBox html5-stop-propagation"><div class="videoAdUiReasonToWatchDynamicPrefixText">'+Q(a.SQ)+'</div><div class="videoAdUiReasonToWatchDynamicTopic">'+Q(a.UQ)+"</div></div>")};
Lea=function(a){return'<div class="videoAdUiSkipContainer html5-stop-propagation"><button class="videoAdUiSkipButton videoAdUiAction">'+Q(a.Es)+'<div class="videoAdUiSkipIcon"></div></button></div>'};
Mea=function(a){return'<div class="videoAdUiSkipContainer html5-stop-propagation"><button class="videoAdUiSkipButton videoAdUiAction"><div class="videoAdUiSkipButtonExperimentalText">'+Q(a.Es)+'</div><div class="videoAdUiSkipIcon"></div></button></div>'};
Nea=function(a){return'<div class="videoAdUiSkipContainer html5-stop-propagation videoAdUiSkipContainerWithThumbnail"><div class="videoAdUiSkipText">'+Q(a.Es)+'</div><button class="videoAdUiSkipButton videoAdUiAction videoAdUiSkipButtonWithThumbnail"><div class="videoAdUiSkipIconContainer"><div class="videoAdUiSkipIcon"></div></div></button></div>'};
Zq=function(a){var b="";a=2<=a.Cg&&1<=a.gg?Aa("Ad {$adPosition} of {$totalAds} {$timeLeft}",{adPosition:Q(a.gg),totalAds:Q(a.Cg),timeLeft:Q(a.Ag)}):Aa("Ad {$timeLeft}",{timeLeft:Q(a.Ag)});return b+=a};
$q=function(a){var b="";a=2<=a.Cg&&1<=a.gg?Aa("{$adPosition} of {$totalAds} {$timeLeft}",{adPosition:Q(a.gg),totalAds:Q(a.Cg),timeLeft:Q(a.Ag)}):Aa("{$timeLeft}",{timeLeft:Q(a.Ag)});return b+=a};
br=function(){var a=ar(),b=Ho("</a>"),a=Aa("Visit Google's {$beginFormat}Ad Settings{$endFormat} to learn more about how ads are targeted or to opt out of personalized ads.",{beginFormat:Q(a),endFormat:Q(b)});return Ho(""+("<div class='videoAdUiAdSettingsLongTooltip'>"+a+"</div>"))};
ar=function(){return Ho('<a href="https://www.google.com/settings/ads/onweb" target="_blank">')};
cr=function(a){return Ho("<div class='videoAdUiPopupBackground'><div class='videoAdUiPopupCloseIcon'><svg height=\"100%\" viewBox=\"0 0 24 24\" width=\"100%\"><path d=\"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z\" fill=\"#fff\"></path></svg></div><div class='videoAdUiPopupPositioner'><form class='videoAdUiPopupFrame'><div class='videoAdUiPopupHeading videoAdUiHideIfEmpty'>"+Q(a.heading)+"</div><div class='videoAdUiPopupText'>"+Q(a.message)+
"</div><div class='videoAdUiPopupButtons'>"+Q(a.buttons)+"</div></form></div></div>")};
Oea=function(a){for(var b="<ul class='videoAdUiWhyThisAdReasons videoAdUiHideIfEmpty'>",c=a.targetingReasons,d=c.length,e=0;e<d;e++)b+="<li>"+Q(c[e])+"</li>";b+="</ul><div class='videoAdUiWhyThisAdGenericMessage'>"+Q(a.Qp)+"</div><a class='videoAdUiWhyThisAdMute videoAdUiHideIfEmpty'>"+Q(a.mute)+"</a><a class='videoAdUiWhyThisAdControl videoAdUiHideIfEmpty' href='https://www.google.com/settings/ads/onweb' target='_blank'>"+Q(a.control)+"</a>";a=""+cr({heading:dr(""+Q(a.heading)),message:dr(b),buttons:dr("<button class='videoAdUiWhyThisAdCloseButton videoAdUiPopupDefaultButton'>"+
Q(a.close)+"</button>")});return Ho(a)};
Pea=function(a){for(var b=""+Q(a.question),c=a.options,d=c.length,e=0;e<d;e++)var f=c[e],b=b+("<label for='videoAdUiMuteOption"+Qo(e)+"'><input type='radio' id='videoAdUiMuteOption"+Qo(e)+"' name='videoAdUiMuteOption' class='videoAdUiMuteOption"+Qo(e)+"' />"+Q(f)+"</label>");a=""+cr({heading:dr(Q(a.heading)+" <a class='videoAdUiMuteUndo'>"+Q(a.undo)+"</a>"),message:dr(b),buttons:dr("<button class='videoAdUiMuteCancel videoAdUiPopupButton'>"+Q(a.cancel)+"</button><button class='videoAdUiMuteConfirm videoAdUiPopupDefaultButton'>"+
Q(a.confirm)+"</button>")});return Ho(a)};
Qea=function(a){var b=String(""+a.heading);return Ho(cr({heading:b?new xo(b,void 0):"",message:dr(""+Q(a.message)),buttons:dr("<button class='videoAdUiMuteCancel videoAdUiPopupButton'>"+Q(a.cancel)+"</button><button class='videoAdUiMuteConfirm videoAdUiPopupDefaultButton'>"+Q(a.confirm)+"</button>")}))};
Rea=function(){return Ho('<div class=\'videoAdUiMuteToggleButton\'><div class=\'videoAdUiMutedIcon\'><svg width="100%" height="100%" viewBox="0 0 16 16"><path d="M2.398,5.5496307 L0,5.5496307 L0,10.4483665 L2.4,10.4483665 L7,15.5093253 L7,0.4886719 L2.398,5.5496307 Z" fill="#fff"></path><path d="M9.6314915,5.9285684 L10.6837982,4.9386188 L12.8157457,6.9442323 L14.9476933,4.9386188 L16,5.9285684 L13.8680525,7.9341818 L16,9.9397952 L14.9476933,10.9297447 L12.8157457,8.9241313 L10.6837982,10.9297447 L9.6314915,9.9397952 L11.7634391,7.9341818 L9.6314915,5.9285684 Z" fill="#fff"></path></svg></div><div class=\'videoAdUiUnmutedIcon\'><svg width="100%" height="100%" viewBox="0 0 16 16"><path d="M2.398,5.5496307 L0,5.5496307 L0,10.4483665 L2.4,10.4483665 L7,15.5093253 L7,0.4886719 L2.398,5.5496307 Z" fill="#fff"></path><path d="M9,11.4457379 C10.7427023,10.9390412 12,9.5931906 12,7.9969959 C12,6.4008011 10.7427023,5.0549506 9,4.5492552 L9,11.4457379 Z" fill="#fff"></path><path d="M14.2494529,8 C14.2494529,11.0361747 12.0131291,13.5866817 9,14.3156841 L9,16 C12.9934354,15.2419577 16,11.9484291 16,8 C16,4.0505695 12.9934354,0.7570409 9,0 L9,1.6833146 C12.0131291,2.4123169 14.2494529,4.9638253 14.2494529,8 L14.2494529,8 Z" fill="#fff"></path></svg></div></div>')};
er=function(a,b,c){yp.call(this,"1",Sea,"Html",null,"dummy");this.F=0;this.ua=a.length;Bp(this,new g.dm(this));this.P=Tea(a,b);this.Ta=g.K("iv-cards-slider-list",this.P);if(this.V=g.K("iv-cards-slider-prev",this.P))this.o.X(this.V,"click",this.Oa),g.O(this.V,!1);(this.fa=g.K("iv-cards-slider-next",this.P))&&this.o.X(this.fa,"click",this.Na);this.o.X(this.P,"click",g.ya(function(a,b,c){c.target!=a&&Vm(b)},g.K("ad-companion-clickthrough",this.P),c))};
Tea=function(a,b){var c=(0,g.I)(a,function(a){var b=Mq(a),c=Nq(b);a=Uq(a);return{headline:b.jd(),description:fr(b,"description"),image:Qq(b).getImageUrl(),action:Rq(c),target:Tq(a),merchant:Pq(c)}}),d=3<a.length;
return Op(yea,{cards:c,Ku:c[0].merchant,dz:wea(),oA:xea(),pe:br(),Lc:b,fR:d})};
gr=function(a){a.Ta.style.left=125*-a.F+"px";a.V&&g.O(a.V,0<a.F);a.fa&&g.O(a.fa,a.F<a.ua-3)};
jr=function(a){yp.call(this,"1",Uea,"Html",null,"website_actions_companion");Bp(this,new g.dm(this));var b=a.g(),c=b&&b.og(),d=b&&b.Gm();a=Uq(a);b={headline:b&&b.jd()||"",BH:c&&c.getImageUrl()||"",Uu:d&&d.getImageUrl()||"",Eu:a&&hr(a)||"",descriptionText:b&&ir(b)||"",target:a&&Tq(a)||"",pe:br()};this.F=Op(zea,b)};
Vea=function(){if(!g.sc)return!1;try{return new window.ActiveXObject("MSXML2.DOMDocument"),!0}catch(a){return!1}};
mr=function(a,b){if(b&&!a)throw Error("Can't create document with namespace and no root tag");if(window.document.implementation&&window.document.implementation.createDocument)return window.document.implementation.createDocument(b||"",a||"",null);if(kr){var c=lr();if(c)return a&&c.appendChild(c.createNode(1,a,b||"")),c}throw Error("Your browser does not support creating new documents");};
g.nr=function(a){if("undefined"!=typeof window.DOMParser)return(new window.DOMParser).parseFromString(a,"application/xml");if(kr){var b=lr();b.loadXML(a);return b}throw Error("Your browser does not support loading xml documents");};
or=function(a){var b=a.xml;if(b)return b;if("undefined"!=typeof window.XMLSerializer)return(new window.XMLSerializer).serializeToString(a);throw Error("Your browser does not support serializing XML documents");};
lr=function(){var a=new window.ActiveXObject("MSXML2.DOMDocument");a.resolveExternals=!1;a.validateOnParse=!1;try{a.setProperty("ProhibitDTD",!0),a.setProperty("MaxXMLSize",2048),a.setProperty("MaxElementDepth",256)}catch(b){}return a};
pr=function(a){return Ym(Wea,null,a.parentNode.nodeName,a.nodeName)};
qr=function(a){return Ym(Xea,null,a.parentNode.nodeName,a.nodeName)};
rr=function(a){var b=mr(a.tagName,a.namespaceURI),c=g.ue(b);c||(c=b.createElementNS(a.namespaceURI,a.tagName),b.appendChild(c));for(var d=0;d<a.attributes.length;d++){var e=a.attributes.item(d);c.setAttribute(e.name,e.value)}for(;d=a.firstChild;)c.appendChild(d);return b};
sr=function(a,b){return null!=a?(0,g.re)(g.se(a),function(a){return a.nodeName==b}):[]};
tr=function(a,b){var c=a.getAttribute(b);return null!=c?c.toLowerCase():null};
ur=function(a,b){if(null==a)return null;for(var c="",d=0,e=a.childNodes.length;d<e;d++){var f=a.childNodes[d];switch(f.nodeType){case 4:case 3:c+=f.nodeValue}}c=Pa(c);b&&(c=Ja(c,"&")?"document"in pa?naa(c):oaa(c):c);return c};
vr=function(a,b,c,d){if(null!=a){a=g.se(a);for(var e=0,f=a.length;e<f;e++){var k=a[e];if(k.nodeName!=b)throw pr(k);c.call(d,k)}}};
wr=function(a){a=g.F(a);return E(a)?window.NaN:Va(a)};
xr=function(a,b){if(null!=a){var c=a.split(":");if(3==c.length)return c=new yn(0,0,0,Va(c[0]),Va(c[1]),Va(c[2])),60*(60*(24*c.days+c.g)+c.o)+c.A}return null!=b?b:-1};
yr=function(a,b){var c=g.F(a);if(!E(c))switch(c.toLowerCase()){case "true":case "1":return!0;case "false":case "0":return!1}return null!=b?b:!1};
Ar=function(a,b){if(b)return a;var c=g.F(a);E(c)?c=a:Yea.test(c)&&(Ja(c,"/pagead/adview")||Ja(c,"/pagead/conversion")||Ja(c,"/gampad/live/conversion")?Zea(c):Ja(c,"/pcs/view")&&$ea(c))?(c=zr(c,"&sdkv="+Hn(Jn)),Jn.ca&&(c=zr(c,"&ssss=gima"))):c=a;return c};
zr=function(a,b){var c=a.indexOf("&adurl=");return-1!=c?paa(a.substr(0,c),b,a.substr(c,a.length)):a+b};
Zea=function(a){a=a||"";return(0,g.Br)(afa,function(b){return 0<=Eg(a,0,b,a.search(Fg))})};
$ea=function(a){a=a||"";return(0,g.Br)(bfa,function(b){return 0<=Eg(a,0,b,a.search(Fg))})};
Er=function(a,b,c){var d=new dp;vr(a,"Tracking",function(a){var e=tr(a,"event"),k=Ar(ur(a),b);Cr(k)&&null!=e&&(null!=c&&(k=c(e,k)),"progress"==e?(a=tr(a,"offset"),a=Dr(a),null!=a&&ip(d,e,k,a)):ip(d,e,k))});
return d};
cfa=function(a){if(E(g.F(a)))return null;a=new g.Ll(a);if("thismessage"!=a.B||"extensions"!=a.o)return null;a=a.A;if(!g.Da(a,"/"))return null;a=a.substr(1);return E(g.F(a))?null:a};
Dr=function(a){if(E(g.F(a)))return null;var b=a.indexOf("%");if(0<b){if(a=Number(a.substr(0,b)),!(0,window.isNaN)(a)&&0<=a)return new Wq(a,!0)}else if(a=xr(a),0<=a)return new Wq(a,!1);return null};
Cr=function(a){if(E(g.F(a)))return!1;try{new g.Ll(a)}catch(b){return!1}return!0};
Fr=function(a,b){Fp.call(this);this.o=a;this.A=b};
Gr=function(){};
Hr=function(a,b){Fp.call(this,b);this.o=a};
Ir=function(a){Fp.call(this);this.o=a};
Kr=function(a,b,c,d,e,f,k,l,m,n,q,r,w,z,B,D,L,Y){this.ua=a;this.ra=b;this.V=c;this.zb=e;this.Oa=(0,window.isNaN)(m)||""==m||0==m?-1:m;this.oa=n?g.ob(n):[];this.ba=q?g.ob(q):[];this.F=r?g.ob(r):[];this.fa=[];this.O=[];this.M=null;this.ca=[];this.Ia=!0;this.o=this.g=this.J=null;this.G=new Fl(z);this.ga=null!=Y;this.ob=(this.ha=null!=B)?D||!1:!1;this.sb=this.xI?L||!1:!1;this.Bb=g.F(B);this.Gb=g.F(Y);this.tb=this.A=null;this.C=new Bda;this.da=new g.Pd(0,0);this.K=String(Math.floor(1E9*Math.random()));
this.Ta=this.ka=this.P=this.D=null;this.kb=(0,g.G)();this.Ra=this.Na=0;this.sa=this.Za=!1;this.B=[];this.Sa=null;this.Fa=!1;(0,g.H)(this.F,function(a){a.J=this},this);
Jr(this,w)};
gq=function(a){var b=a.getExtension("AdFormat");if(null!=b&&Ea(b.o+"_"+b.A+"_"+b.B,"2_4"))return b.o+"_"+b.A+"_"+b.B;b=Lr(a);b=Mr(a,Nr)?"14":fo(b,"hideMaster")||fo(b,"blockAllAds")?"3":a.Wb()?Or(a)?"2_3":a.isSkippable()?Pr(a)?"2_1":"2_2":"2":"1";return dfa(a)+"_"+b};
dfa=function(a){if(hq(a))return 4;if(Mr(a,Nr))return 14;if(Mr(a,efa))return 17;if(Mr(a,ffa))return 15;if(Qr(a,gfa)||Qr(a,Rr))return 1;var b=Fm().g;return b&&b.g("fix_petra_ad_foramt")&&(b=Sr(a),null!=b&&(Gq(b)||Fq(b)))?1:Tr(a)?2:0};
Ur=function(a){return null!=a.ra?a.ra:""};
Vr=function(a){return null!=a.o?g.nb(Vr(a.o),a.oa):a.oa};
Wr=function(a){return null!=a.o?g.nb(Wr(a.o),a.ba):a.ba};
Xr=function(a){return null!=a.o?g.nb(a.O,Xr(a.o)):a.O};
Lr=function(a){return null!=a.g?a.g.G:{}};
hfa=function(a){var b={};(0,g.H)(a.F,function(a){a=a.G;for(var c in a)b[c]=a[c]});
return b};
Yr=function(a){return null!=a.g?a.g.sa:""};
Zr=function(a,b){var c=[];(0,g.H)(a.G.fb(),function(a){pb(c,Gp(a,b))});
return c};
iq=function(a,b){a.g=b;a.da=new g.Pd(0,0);if(null!=a.g){a.g instanceof yp&&(a.da=a.g.af());var c=a.o;if(null!=c){var d=pp(a.g,c)||pp(a.g,c,!0);iq(c,d)}}P.g()&&ifa(a)&&g.fb(Xr(a))?P.g()&&P.A?(c=a.B,g.fb(c)?c={}:(d=Mq(c[0])&&Nq(Mq(c[0]))&&Pq(Nq(Mq(c[0])))||"",d=Aa("Shop products from {$advertiserName}",{advertiserName:Q(d)}),d=Ho(""+d),c={shoppingCompanionRenderer:{shopText:Oq(d.toString()),itemList:{horizontalListRenderer:{items:(0,g.I)(c,Aea),visibleItemCount:3,webHorizontalListRendererExtensionData:{nextButton:{buttonRenderer:{style:"STYLE_DEFAULT",
size:"SIZE_DEFAULT",icon:{iconType:"CHEVRON_RIGHT"}}},previousButton:{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CHEVRON_LEFT"}}}}}},adBadgeText:Oq(Lq().toString()),clickToAdvSiteEndpoint:Sq($r(a)),clickTrackingEndpoints:[{loggingUrls:(0,g.I)(Zr(a,"companionClick"),Vq)}],impressionEndpoints:[{loggingUrls:(0,g.I)(Zr(a,"companionImpression"),Vq)}]}}),a.J=c):jfa(a,a.B):P.g()&&g.fb(Xr(a))&&!Fm().g.g("website_actions_holdback")&&as(a,a.B)};
bs=function(a){return null!=a.ua?a.ua:""};
ds=function(a){if(null==a.o||cs(a.o.V))return[];var b=[bs(a.o)];pb(b,ds(a.o));return b};
iea=function(a){var b=ds(a).reverse();b.push(bs(a));return b};
es=function(a){if(null==a.o||cs(a.o.V))return[];var b=a.o.g;null!=b?(b=b.ka,b=null!=b?b:""):b="";b=[b];pb(b,es(a.o));return b};
fs=function(a){if(null==a.o||cs(a.o.V))return[];var b=[Ur(a.o)];pb(b,fs(a.o));return b};
gs=function(a){if(a.o){var b=gs(a.o);if(b)return b}return(a=a.getExtension("metrics"))?a.o:null};
fq=function(a){if(a.o){var b=fq(a.o);if(b)return b}return P.g()?(a=a.getExtension("viral"))?a.o:null:(a=a.getExtension("metrics"))?a.A:null};
jea=function(a){var b=fs(a).reverse();b.push(Ur(a));return b};
cs=function(a){return"YT:ADSENSE"==a||"YT:DOUBLECLICK"==a};
hs=function(a){if(null==a.o)return[a.V];var b=hs(a.o);b.push(a.V);cs(b[0])&&b.shift();return b};
is=function(a){a=a.getExtension("waterfall");return null!=a&&-1!=a.Xd()?a.Xd():-1};
js=function(a){if(-1!=a.Oa)return a.Oa;a=a.getExtension("pod");return null!=a&&-1!=a.o?a.o:-1};
ks=function(a){a.Fa||(a.Fa=!0,a.Sa.K++,null!=a.o&&ks(a.o))};
ls=function(a){if(a.Sa instanceof wq){var b=a.Sa;if(0<xq(b))return b}return null!=a.o?ls(a.o):null};
ms=function(a,b,c,d){a=Xr(a);return $n(new Yn(new g.Pd(b,c),d),a)};
ns=function(a){var b=a.A.aj,c=a.A.Zi;if(!b||!c)if(a=a.A.g?Gg(a.A.g,"sz"):null)a=a.split("x"),2==a.length&&(b=(0,window.parseInt)(a[0],10)||0,c=(0,window.parseInt)(a[1],10)||0);return new g.Pd(b,c)};
kfa=function(a,b){var c=g.$a(a.ca,function(a){return 4==a.bc()&&os(ps(a))});
if(c){var d=c.g();if(!d.og().getImageUrl()){var e=new qs;rs(e,b.channelIconThumbnailUrl);d.og=function(){return e}}var f=Fm().g;
if(!d.jd()||f.g("website_actions_suppress_advertiser_supplied_text"))d.jd=function(){return b.authorName};
f.g("website_actions_suppress_advertiser_supplied_text")&&Uq(c).setTitle("");c.g=function(){return d}}};
lfa=function(a){var b=(0,g.re)(a,function(a){return os(ps(a))});
0==b.length&&0<a.length&&Fm().g.g("enable_ad_video_end_renderers")&&(b=a.slice(1,2));return b};
jfa=function(a,b){var c=(0,g.re)(b,function(a){return ts(ps(a))});
g.fb(c)&&(c=b);c=new er(c,$r(a),Zr(a,"companionClick"));c.J=a;c.D=!0;us(a,new Iq(c,[],null,!0))};
mfa=function(a,b){var c=g.$a(a.B,function(a){return 4==a.bc()&&ts(ps(a))});
if(!c)return null;var d=c.g();if(!d.og().getImageUrl()){var e=new qs;rs(e,b.channelIconThumbnailUrl);d.og=function(){return e}}var f=Fm().g;
if(!d.Gm().getImageUrl()){var k=new qs;if(f.g("website_actions_use_companion_image_as_banner")){var l=g.$a(Xr(a),function(a){return"Image"==a.hd()});
rs(k,l&&l.g.A||b.g)}else rs(k,b.g);d.Gm=function(){return k}}if(!d.jd()||f.g("website_actions_suppress_advertiser_supplied_text"))d.jd=function(){return b.authorName};
f.g("website_actions_suppress_advertiser_supplied_text")&&Uq(c).setTitle("");c.g=function(){return d};
return c};
as=function(a,b){var c=g.$a(b,function(a){return 4==a.bc()&&ts(ps(a))});
if(c){var d=c.g(),e=d&&d.og().getImageUrl(),f=d&&d.Gm().getImageUrl(),k=d&&d.jd();e&&f&&k&&(P.A?(c=Uq(c),a.J={actionCompanionRenderer:{headline:k,iconImageUrl:e,bannerImageUrl:f,actionTitle:c&&hr(c)||void 0,descriptionText:d&&ir(d)||void 0,target:c&&Tq(c)||void 0}}):(d=new jr(c),d.J=a,d.D=!0,us(a,new Iq(d,[],null,!0))))}};
nfa=function(a){if(!a.A||vs(a)&&!Mr(a,["ADSENSE/ADX"]))return[];var b=ns(a);if(0>=b.width||0>=b.height)return[];var c=new Vn;c.creativeType="All";c.A="All";c.B="SelectNearMatch";c.g=40;var d=ms(a,b.width,b.height,c);if(!g.fb(d))return d;c.o="ResizeSmaller";d=(0,g.re)(Xr(a),function(a){return a.g.xk()},a);
return $n(new Yn(new g.Pd(b.width,b.height),c),d)};
xs=function(a){if(g.fb(a.ca))return!1;var b=Fm().g;if(15>ws(a))return!1;var c=ofa,d=a.ca[0].bc();if(d==c.Au){var e=a.ca[0].g();a=e&&e.og().getImageUrl();e=e&&e.jd();if(!a||!e)return!1}return b.g("enable_ad_video_end_renderers")&&d==c.ZE||!b.g("website_actions_holdback")&&!b.g("website_actions_endcap_holdback")&&d==c.Au};
pfa=function(a){var b=null,c=0;(0,g.H)(nfa(a),function(a){var d=ns(this);d=!a.g.xk()||a.Eb()<=d.width&&a.getHeight()<=d.height?a.an():bo(a.an(),d);d=d.width*d.height;d>c&&(c=d,b=a)},a);
return b};
ys=function(a,b){return b||null==a.o?a.fa:g.nb(a.fa,ys(a.o))};
Jr=function(a,b){a.fa=b?g.ob(b):[];(0,g.H)(a.fa,function(a){pb(this.O,g.ob(a.g))},a);
(0,g.H)(a.O,function(a){Jq(a,this)},a);
if(P.g()&&(a.Wb()&&(a.O=(0,g.re)(a.O,function(a){return 60>=a.getHeight()})),P.A)){var c=a.fa[0];
if((c=c&&c.g[0])&&"Static"===c.g.O){var d=c.g.Ze(),e=c.g.M,f=c.Eb(),k=c.getHeight();a.J={imageCompanionRenderer:{url:c.g.A,clickThroughUrl:d,clickTrackingUrls:e,width:f,height:k}}}}};
zs=function(a,b){return(0,g.Ek)(a.F,function(a){return a instanceof rp&&"linear"==b||a instanceof yp&&"nonlinear"==b?!0:!1})};
As=function(a){var b=a.g;return vs(a)&&null!=b&&b instanceof yp&&(90<a.da.height||null!=a.A&&a.A.Ni)};
Bs=function(a,b){if(null==b)return null;var c=b.getExtension("adx");return null!=c?c:Bs(a,b.o)};
Cs=function(a){var b=Bs(a,a.o);if(null!=b){if("skippable"==b.o)return b.A;if("nonskippable"==b.o)return null}var b=null,c=new Wq(5,!1),d=qfa(a);"implicit"==d&&(b=c);var e=a.g;null==b&&null!=e&&e instanceof rp&&(b=e.D);null!=b||"explicit"!=d||(b=c);return P.g()&&a.Wb()&&null!=b?(0,window.isNaN)(a.A.C)?c:new Wq(a.A.C,!1):b};
qfa=function(a){if(null!=g.$a(a.G.fb(),function(a){return!g.fb(Gp(a,"skip"))}))return"implicit";
var b=a.G.get("DFP");if(b instanceof Hr)switch(b.o){case "InstreamSelect":return"implicit";case "Generic":return"explicit"}a=a.g;return P.g()&&null!=a&&(a=a.ej,null!=a&&!g.fb(gp(a,"skip")))?"explicit":"none"};
Ds=function(a){a=Sr(a);if(null!=a){var b;(b=Dq(a)||Gq(a)||Fq(a))||(null!=a?(a=(new g.Ll(a)).o,b=Ea(a,"viral.adsense.net")):b=!1);a=b}else a=!1;return a};
Pr=function(a){if(null!=a.ra&&null!=a.A){var b;(b=P.g())||!(b=Ds(a)||!1)||(b=vs(a)&&!Mr(a,["ADSENSE/ADX"]))||(Mr(a,Rr)?(b=a.G.get("DFP"),b=null!=b?"InstreamSelect"==b.o:!1):b=!1);a=b||a.o&&a.o.ga&&Ds(a.o)?!0:!1}else a=!1;return a};
$r=function(a){return null===a.g?null:a.g.Ze()};
ws=function(a){return null!=a.g?a.g.getDuration():-1};
Es=function(a){return null===a.M?xs(a)?7:0:10};
Fs=function(a){return null===a.g?null:a.g.Lq()};
Gs=function(a){return null===a.g?null:a.g.Kq()};
vs=function(a){return Mr(a,Hs)||Mr(a,["ADSENSE-VIRAL"])};
hq=function(a){return null!=a.o&&hq(a.o)||Mr(a,rfa)};
Or=function(a){var b=Fs(a);return Mr(a,["402"])||g.u(b)&&null!==b.match("//s0.2mdn.net/instream/html5/survey/survey.html")};
Is=function(a){return vs(a)&&Pr(a)&&!a.isBumper()&&!E(g.F(a.D))&&null!==Cs(a)&&0<kp(Cs(a))};
Tr=function(a){return Qr(a,Hs)||Qr(a,["402"])};
Js=function(a){a=a.getExtension("InfoCards");return null!=a?a.o:null};
Ks=function(a){a=a.getExtension("InfoCardsTracking");return null!=a?a.o:null};
Mr=function(a,b){return null!=a.ra?g.eb(b,a.V):!1};
Qr=function(a,b){for(var c=hs(a),d=c.length-1;0<=d;d--)if("UNKNOWN"!=c[d]){if(g.eb(b,c[d]))return!0;break}return!1};
us=function(a,b){a.O=[b]};
ifa=function(a){return a.Wb()&&0<a.B.length&&(0,g.Br)(a.B,function(a){return 1==a.bc()})};
sfa=function(a){return 0<a.B.length&&(0,g.Br)(a.B,function(a){return 4==a.bc()})};
Sr=function(a){if(null==a.A)return null;var b=a.A.g;null!=b&&Ea(b,"/PrefetchedAd")&&null!=a.o&&(a=a.o.G.get("LocalRedirect"),b=null!=a?a.Tg():null);return b};
Ls=function(a,b){g.qf.call(this);this.g=a;this.ue=new g.dm(this);g.N(this,this.ue);this.ue.X(b,["companion_impression","companion_click"],this.o)};
Ms=function(){g.qf.call(this);this.D=this.J=this.M=this.F=!1;this.g=0;this.A=[];this.G=!1;this.P=this.O=window.Infinity;this.o=0;this.C=!1;this.B=new g.dm(this);this.K={}};
tfa=function(a){Ns(a);!(a.Mh instanceof g.qf)&&"ontouchstart"in window.document.documentElement&&hn()?(a.K={touchstart:(0,g.A)(a.OP,a),touchmove:(0,g.A)(a.NP,a),touchend:(0,g.A)(a.MP,a)},g.Ib(a.K,function(a,c){this.Mh.addEventListener(c,a,!1)},a)):a.B.X(a.Mh,"click",a.Sw)};
Ns=function(a){a.B.za(a.Mh,"click",a.Sw);g.Ib(a.K,function(a,c){this.Mh.removeEventListener(c,a,!1)},a);
a.K={}};
ufa=function(a,b){a.A=[];(0,g.H)(b,function(a){g.ib(this.A,a.identifier)},a)};
Os=function(a,b){return(0,g.Ek)(b,function(a){return g.eb(this.A,a.identifier)},a)};
Ps=function(a){if(!vfa.test(a))throw Error("'"+a+"' is not a valid alpha hex color");5==a.length&&(a=a.replace(wfa,"#$1$1$2$2$3$3$4$4"));a=a.toLowerCase();return[(0,window.parseInt)(a.substr(1,2),16),(0,window.parseInt)(a.substr(3,2),16),(0,window.parseInt)(a.substr(5,2),16),(0,window.parseInt)(a.substr(7,2),16)/255]};
Qs=function(a){var b=a.slice(0);b[3]=Math.round(1E3*a[3])/1E3;return"rgba("+b.join(",")+")"};
g.Rs=function(){g.qf.call(this);this.g=0;this.endTime=this.startTime=null};
Ss=function(a,b){g.sa(b)||(b=[b]);var c=(0,g.I)(b,function(a){return g.u(a)?a:a.property+" "+a.duration+"s "+a.timing+" "+a.delay+"s"});
g.bh(a,"transition",c.join(","))};
Ts=function(a,b,c,d,e){g.Rs.call(this);this.o=a;this.C=b;this.F=c;this.A=d;this.D=g.sa(e)?e:[e]};
Us=function(a,b){g.qf.call(this);this.D=b;this.C=a;this.li=null;this.A=new g.dm(this);g.N(this,this.A);this.g=new Ms;g.N(this,this.g);var c=Mc(Tc(a.g),ad,6);this.B=(this.o=null!=J(c,5)&&!!J(c,5))||null==J(c,7)?"#000000FF":J(c,7);c=this.o?{zF:g.F(J(c,6))}:{CF:g.F(J(c,1)),BF:g.F(J(c,3)),AF:g.F(J(c,2))};this.Fe=xfa(this,c);null!=this.Fe&&g.O(this.Fe,!1);b.appendChild(this.Fe);this.A.X(this.g,"click",this.TH);this.g.Hb(this.Fe)};
xfa=function(a,b){if(a.o){var c=Op(Gea,b);var d=g.K("videoAdUiBrandPrecapAutogenImage",c)}else c=Op(Fea,b),d=g.K("videoAdUiBrandPrecapContent",c),null!=a.B&&(c.style.backgroundColor=Qs(Ps(a.B))),d=g.K("videoAdUiBrandPrecapBrandImage",g.K("videoAdUiBrandPrecapImageContainer",d));null!=d&&(d.e1=function(){return!1});
return c};
Vs=function(a,b,c,d,e){(new Ts(a.Fe,.4,{paddingTop:b,opacity:d},{paddingTop:c,opacity:e},[{property:"padding-top",duration:.4,timing:"ease-in-out",delay:0},{property:"opacity",duration:.4,timing:"ease-in-out",delay:0}])).play()};
Ws=function(a,b){var c=g.Fe(g.ve(a.D),"html5-video-player");null!=c&&g.S(c,"ytp-ad-display-override",b)};
Xs=function(a,b,c,d,e,f){Fp.call(this,f);this.A=a;this.C=b;this.D=c;this.B=d;this.o=e};
Ys=function(a){return null!=a.o?a.o.length:0};
Zs=function(a,b,c,d,e,f,k,l,m){Fp.call(this,e);this.B=a;this.A=b;this.C=c||"";this.D=d||[];this.o=f||null;this.G=k||null;this.F=l||null;this.K=m||null};
$s=function(a,b){this.C=a;this.o=b;this.A=this.B=this.D=this.g=null};
at=function(a){return null!=a.C||null!=a.o};
bt=function(a,b,c){b=g.K(b,a.g);null!=b&&a.B.X(b,"click",c)};
ct=function(a,b,c){null!=a.g&&a.g.parentElement.removeChild(a.g);a.g=Op(b,c);bt(a,"videoAdUiPopupCloseIcon",a.Zl);a.D.appendChild(a.g);b=g.K("videoAdUiPopupFrame",a.g);null!=b&&g.af(b,"submit",function(a){a.preventDefault()});
a=g.K("videoAdUiPopupDefaultButton",a.g);null!=a&&a.focus()};
dt=function(a,b){null!=a.A&&a.A.dispatchEvent(b)};
et=function(){this.attributionText=Zq({Ag:"",gg:0,Cg:0});this.fh=""+Aa("Learn More {$suffix}",{suffix:Q("")});this.visitAdvertiserText=""+Aa("Visit Advertiser's Site");this.pe=br();this.skipOffset=null;this.G=this.Na=this.Oa=this.Ia=this.V=!1;this.M=null;this.ca=6E3;this.D=!0;this.fa=!1;this.ha=this.o=this.ga=!0;this.A=!1;this.O=!P.D;this.ra=this.oa=this.Sa=!1;this.F=!0;this.P=this.Fa=this.ua=this.sa=this.B=!1;this.C={};this.ba=null;this.showContentThumbnail=!0;this.ka=this.J=!1;this.g=null;this.Za=
!1;this.Uf=-1};
ft=function(a,b,c,d,e,f){var k=new et;k.B=a;k.Ra=b;k.skipOffset=c;k.da=null!=e?e.contentId:null;k.ga=e.VR;k.ba=Bea;k.Ta=Tp(b,null!=c,e.Ei);k.showContentThumbnail=null!=e.contentId&&e.showContentThumbnail;k.g=e.Nw;null!=k.g&&null!=J(k.g,1)&&null!=J(Tc(k.g),8)&&(k.ka=!0,k.attributionText=$q({Ag:"",gg:0,Cg:0}));k.Za=e.XF;null!=f&&(k.C=f);null==c&&(a=Fm().g,d&&a.g("show_countdown_on_bumper")&&(k.Oa=!0,k.V=!0),a.g("show_thumbnail_on_standard")&&(k.V=!0),a.g("log_video_preview_interaction")&&(k.Ia=!0),
!d&&a.g("persist_text_on_preview_button")&&(k.Na=!0));P.g()&&null!=k.g&&null!=J(k.g,1)&&(d=Tc(k.g),null!=J(d,6)&&(d=Mc(d,ad,6),null!=J(d,1)&&null!=J(d,2)&&null!=J(d,3)&&(k.G=!0,null!=J(d,4)&&(k.M=J(d,4)))));return k};
gt=function(a,b,c,d,e){return new Ts(a,b,{opacity:d},{opacity:e},{property:"opacity",duration:b,timing:c,delay:0})};
ht=function(a,b){return gt(a,b,"ease-out",0,1)};
jt=function(a,b){g.qf.call(this);this.P=new g.dm(this);g.N(this,this.P);this.ba=a;this.O=b;this.K=!1;this.A=this.F=null;this.V=0;this.B=[];this.C=[];this.D=[];this.J=0;this.G=!1;var c=a.g,c=this.g=null!=c&&null!=Tc(c)?Mc(Tc(c),Zc,3):null;this.da=null!=c&&null!=J(c,7)&&1==J(c,7)?!0:!1;if(null==this.g||null==J(this.g,7))c=null;else var c=J(this.g,7),d=J(this.g,8),c=null!=d&&g.eb(yfa,c)?d:null;c=Op(Hea,{preMessageText:c||""});g.ye(g.K("videoAdUiLikeMsg",c),""+Aa("I like this"));g.ye(g.K("videoAdUiDislikeMsg",
c),""+Aa("I dislike this"));if(null!=this.g){var d=J(this.g,7),e=null!=d?zfa[d]:null;null!=e&&(this.M=d,g.R(c,e))}d=g.K("videoAdUiBrandInteractionLikeButton",c);null!=d&&it(this,d);d=g.K("videoAdUiBrandInteractionDislikeButton",c);null!=d&&it(this,d);g.O(c,!1);this.o=c;this.O.appendChild(this.o)};
Bfa=function(a){if(null==a.g||null==J(a.g,7))return null;var b=J(a.g,7);a=J(a.g,9);return null!=a&&g.eb(Afa,b)?a:null};
it=function(a,b){var c=new Ms;a.P.X(c,"click",a.ca);c.Hb(b)};
Cfa=function(a){if(null!=a.g){var b=Bfa(a);if(null!=b){var c=Op(Iea,{postMessageText:b});a.O.appendChild(c);g.fg(function(){ht(c,.5).play();var a=gt(c,.5,"ease-in",1,0);g.fg(function(){a.play()},3E3,this)},500,a)}}};
lt=function(){g.qf.call(this);this.g=!1;this.A=this.B=this.o=null;this.C=new g.dm(this);this.o=Op(Rea);this.B=g.K("videoAdUiUnmutedIcon",this.o);this.A=g.K("videoAdUiMutedIcon",this.o);kt(this);this.C.X(this.o,"click",this.D)};
kt=function(a){a.B&&a.A&&(a.g?(g.bh(a.B,"display","none"),g.bh(a.A,"display","block")):(g.bh(a.B,"display","block"),g.bh(a.A,"display","none")))};
mt=function(a,b){g.qf.call(this);this.D=a;this.F=1;this.C=this.A=this.g=this.o=null;this.B=a.Oa;this.J=new g.dm(this);g.N(this,this.J);this.G=new Ms;g.N(this,this.G);this.M=!a.Na;this.O=a.Ia;this.K=0;this.o=Op(Xq);this.g=g.K("videoAdUiPreSkipButton",this.o);this.A=g.K("videoAdUiPreSkipText",this.g);g.R(this.A,"videoAdUiPreviewText");this.C=g.K("videoAdUiPreSkipThumbnail",this.g);this.B?g.ye(this.A,Yq({Eg:""})):g.ye(this.A,""+Aa("Video will play after ad"));var c=Wp(this.D.da)||"";if(this.D.showContentThumbnail&&
!E(g.F(c))){var d=g.ie("img");d.setAttribute("src",c);g.R(d,"videoAdUiPreSkipThumbnailImage");this.C.appendChild(d)}else this.B?(g.O(this.C,!1),g.R(this.g,"videoAdUiPreSkipButtonNoThumbnail"),g.R(this.A,"videoAdUiPreSkipTextOnlyCentered")):g.O(this.g,!1);g.O(this.o,!1);b.appendChild(this.o);this.J.X(this.G,"click",this.P);this.G.Hb(this.C)};
nt=function(a,b){g.qf.call(this);this.B=new g.dm(this);g.N(this,this.B);this.K=a;this.A=null;this.F=this.J=0;this.D=this.C=!1;var c=a.g,d;null!=c&&null!=J(c,1)!=null&&null!=Mc(Tc(c),bd,7)&&(d=Mc(Tc(c),bd,7));this.o=d||new bd;c=this.o;null!=J(c,7)&&null!=J(c,8)?(this.A=d=J(c,8),c={SQ:J(c,7),UQ:d},c=Op(Kea,c),Dfa(this,c)):c=Op(Jea,{TQ:J(this.o,1)});null!=J(this.o,6)&&(d=J(this.o,6),g.R(c,Efa[d]));g.O(c,!1);this.g=c;b.appendChild(this.g)};
Dfa=function(a,b){var c=new Ms;a.B.X(c,"click",(0,g.A)(function(){this.J++},a));
c.Hb(b);c=g.K("videoAdUiReasonToWatchDynamicTopic",b);if(null!=c){var d=new Ms;a.B.X(d,"click",(0,g.A)(function(){this.F++},a));
d.Hb(c)}};
Ffa=function(a){var b=new Ts(a.g,1.25,{right:"-265px"},{right:"0px"},[{property:"right",duration:.25,timing:"ease-in-out",delay:1}]),c=new Ts(g.K("videoAdUiReasonToWatchText",a.g),.25,{opacity:0},{opacity:1},[{property:"opacity",duration:.25,timing:"ease-in-out",delay:0}]);b.play();g.fg(function(){c.play()},1250,a);
a.C=!0;g.O(a.g,!0)};
Gfa=function(a){(new Ts(a.g,.25,{right:"0px"},{right:"-265px"},[{property:"right",duration:.25,timing:"ease-in-out",delay:0}])).play();a.D=!0;g.fg(function(){g.O(this.g,!1)},250,a)};
g.ot=function(a,b,c){g.M.call(this);this.Aa=null;this.A=!1;this.C=a;this.B=c;this.g=b||window;this.o=(0,g.A)(this.tG,this)};
pt=function(a){a=a.g;return a.requestAnimationFrame||a.webkitRequestAnimationFrame||a.mozRequestAnimationFrame||a.oRequestAnimationFrame||a.msRequestAnimationFrame||null};
qt=function(a){a=a.g;return a.cancelAnimationFrame||a.cancelRequestAnimationFrame||a.webkitCancelRequestAnimationFrame||a.mozCancelRequestAnimationFrame||a.oCancelRequestAnimationFrame||a.msCancelRequestAnimationFrame||null};
g.rt=function(a,b,c){g.M.call(this);this.g=a;this.B=b||0;this.o=c;this.A=(0,g.A)(this.rw,this)};
g.tt=function(a){a.stop();a.rw()};
g.ut=function(a){a.isActive()&&g.tt(a)};
g.wt=function(){g.vt||(g.vt=new g.rt(function(){Hfa()},20));
var a=g.vt;a.isActive()||a.start()};
Hfa=function(){var a=(0,g.G)();g.Ib(g.xt,function(b){b.rM(a)});
g.Tb(g.xt)||g.wt()};
At=function(a,b){g.qf.call(this);this.config=a;this.da=0;this.ba=!1;this.state=0==kp(this.config.skipOffset)?3:1;this.o=this.ca=this.skipButton=this.ra=this.ga=this.J=this.D=this.A=null;this.gc=new g.dm(this);this.G=this.B=null;this.V=new Ms;this.ka="";this.oa=!1;var c=a.g,c=this.g=null!=c&&null!=Tc(c)?Mc(Tc(c),Xc,1):null;this.sa=null!=c&&J(c,19)?!0:!1;c=this.g;this.O=null!=c&&J(c,24)?!0:!1;c=this.g;this.ua=null!=c&&J(c,23)?!0:!1;c=this.g;this.Fa=null!=c&&J(c,25)?!0:!1;this.A=Op(this.sa?Eea:Xq);this.D=
g.K("videoAdUiPreSkipButton",this.A);this.J=g.K("videoAdUiPreSkipText",this.D);this.ga=g.K("videoAdUiPreSkipTextTimeLeft",this.D);this.ra=g.K("videoAdUiPreSkipThumbnail",this.D);this.ua&&g.O(this.J,!1);Fm().g.g("use_forced_linebreak_preskip_text")&&(this.oa=!0,g.R(this.J,"videoAdUiPreSkipTextForcedLineBreak"));zt(this,0);c=Wp(this.config.da)||"";if(this.config.showContentThumbnail&&!E(g.F(c))){var d=g.ie("img");d.setAttribute("src",c);g.R(d,"videoAdUiPreSkipThumbnailImage");this.ra.appendChild(d)}else P.g()?
(g.R(this.D,"videoAdUiPreSkipButtonNoThumbnail"),g.R(this.J,"videoAdUiPreSkipTextOnlyCentered")):g.R(this.J,"videoAdUiPreSkipTextOnly");d=!P.g()&&P.V;var e=null!=this.g&&null!=Mc(this.g,ed,3)&&!this.O,f=P.g()&&Fm().g.g("fixed_padding_skip_button")&&!this.O;this.o=Op(this.O?Nea:d||e||f?Mea:Lea,{Es:Pa(""+Aa("Skip Ad {$skipSymbol}",{skipSymbol:Q("")}))});this.skipButton=g.K("videoAdUiSkipButton",this.o);e&&(this.ca=g.K("videoAdUiSkipButtonExperimentalText",this.skipButton));if(e=d||P.g()&&Fm().g.g("use_new_skip_icon")){var k=
g.K("videoAdUiSkipIcon",this.skipButton);null!=k&&g.Mp(k,"videoAdUiSkipIcon","videoAdUiExperimentalSkipIcon")}f||d?(g.R(this.skipButton,f?"videoAdUiFixedPaddingSkipButton":"videoAdUiRedesignedSkipButton"),c=g.K("videoAdUiSkipButtonExperimentalText",this.skipButton),null!=c&&g.R(c,"videoAdUiFixedPaddingSkipButtonText"),g.R(g.K(e?"videoAdUiExperimentalSkipIcon":"videoAdUiSkipIcon",this.skipButton),"videoAdUiFixedPaddingSkipButtonIcon")):this.O&&this.config.showContentThumbnail&&!E(g.F(c))&&(d=g.ie("img"),
d.setAttribute("src",c),g.R(d,"videoAdUiPreSkipThumbnailImage"),this.skipButton.appendChild(d));this.Fa&&g.O(g.K("videoAdUiSkipText",this.o),!1);Ifa(this);"4.4.4"===(g.mn?qn(nn):"")&&(this.D.style.backgroundColor="black",this.skipButton.style.backgroundColor="black");g.O(this.A,!1);b.appendChild(this.A);0==kp(this.config.skipOffset)?this.dispatchEvent("skipshown"):(g.O(this.o,!1),g.wh(this.o,0));b.appendChild(this.o);Fm().g.g("move_skip_button_to_top")&&(g.R(this.A,"videoAdUiHighPreSkipContainer"),
g.R(this.o,"videoAdUiHighSkipContainer"));this.gc.X(this.V,"click",this.yR);this.V.Hb(this.skipButton)};
zt=function(a,b){var c=null!=a.config.skipOffset&&-1!=kp(a.config.skipOffset)?kp(a.config.skipOffset):-1;if(!(0>c)){var d=Math.ceil(c-b),c=d.toString();60<=d&&(c=co(d));d={tm:a.oa?"forcedlinebreak":a.ka,Eg:c,bM:"\n"};a.sa&&null!=a.ga?g.ye(a.ga,c):(c=a.J,d=d||{},d=""+Mo("b",d.tm)(d,null,void 0),g.ye(c,d))}};
Bt=function(a){return new Ts(a,.5,{opacity:1,visibility:"shown"},{opacity:.9,visibility:"hidden"},{property:"opacity",duration:.5,timing:"ease-out",delay:0})};
Ct=function(a,b){null!=a.D&&g.O(a.D,b);null!=a.skipButton&&g.O(a.skipButton,b)};
Ifa=function(a){if(null!=a.g){var b=null!=Mc(a.g,cd,1)&&null!=Mc(Mc(a.g,cd,1),dd,1)?J(Mc(Mc(a.g,cd,1),dd,1),1):null,c=null!=Mc(a.g,cd,2)&&null!=Mc(Mc(a.g,cd,2),dd,1)?J(Mc(Mc(a.g,cd,2),dd,1),1):null;b&&(a.skipButton.style.backgroundColor=Qs(Ps(b)),c&&(a.gc.X(g.ve(a.skipButton),"mouseover",function(){this.skipButton.style.backgroundColor=Qs(Ps(c))}),a.gc.X(g.ve(a.skipButton),"mouseout",function(){this.skipButton.style.backgroundColor=Qs(Ps(b))})));
if(null!=Mc(a.g,ed,3)&&null!=a.ca){var d=Caa(Mc(a.g,ed,3));0<d.length&&J(d[0],1)&&g.ye(a.ca,J(d[0],1))}}};
Ht=function(a,b){At.call(this,a,b);var c=this.g;this.ha=null!=c&&J(c,8)?!0:!1;this.fa=!1;this.C=this.M=null;var c=this.g,d=Dt;null!=c&&(null!=J(c,10)&&J(c,10)||null!=J(c,9)&&!J(c,9))&&(d=Et);this.K=d;c=this.g;d=Ft;null!=c&&(null!=J(c,12)&&J(c,12)||null!=J(c,11)&&!J(c,11))&&(d=Gt);this.P=d;this.F=0};
It=function(a){null==a.C&&"4.4.4"!=(g.mn?qn(nn):"")&&1!=a.F&&(g.Ke(a.B),a.B=null,a.C=g.fg(function(){gt(this.o,.5,"ease-in",1,.5).play();this.F=1;this.C=null},0,a))};
Kt=function(a,b){if(0!=a.F){if(b){if(null!=a.C||"4.4.4"==(g.mn?qn(nn):""))return;a.C=g.fg(function(){gt(this.o,.5,"ease-in",.5,1).play();this.C=null},0,a)}else Jt(a),g.wh(a.o,1);
a.F=0}};
Jt=function(a){null!=a.C&&(g.gg(a.C),a.C=null)};
Lt=function(a){null!=a.M&&(g.gg(a.M),a.M=null)};
Mt=function(a,b,c){var d=null;switch(c){case Ft:null!=b&&null!=b.skipOffset&&(d=1E3*(a-kp(b.skipOffset)));break;case Gt:a=g.x("window.yt.util.activity.getTimeSinceActive"),d=(a=null!=a?a().toString():null)?Xa(a):null}return d};
Nt=function(a,b){var c=1E3*a.Jv;null!=b&&null!=J(b,13)&&(c=J(b,13));return c};
Ot=function(a,b,c,d,e,f,k,l,m){this.A=a;this.M=b;this.C=c;this.D=d;this.o=e;this.F=f;this.G=k;this.J=l;this.K=m;this.g=this.A.kg()};
Pt=function(a){var b=a.g,c=g.uh(a.B),c="left"==a.C?"0px":"right"==a.C?c.width-a.A.af().width+"px":a.C+"px",d=g.uh(a.B);a="bottom"==a.D?"0px":"top"==a.D?d.height-a.A.af().height+"px":d.height-a.A.af().height-Xa(a.D)+"px";g.bh(b,{position:"absolute",overflow:"hidden",left:c,bottom:a})};
Jfa=function(a){g.xh(a.g)||(g.O(a.g,!0),(0,g.H)(a.K,function(a){Rm(a)}))};
Ut=function(a,b,c){this.M=b||Qt.sD;this.ga=c||0;this.P=40;this.o=1;this.ca=0;this.D=3;this.V=this.A=0;this.fa=!1;this.O=this.G="";this.B="-";this.J="";this.g=1;this.F=!1;this.C=[];this.ba=this.da=!1;this.K=0;if("number"==typeof a)switch(a){case 1:Rt(this,Qt.Ot);break;case 2:Rt(this,Qt.FE);break;case 3:Rt(this,Qt.uE);break;case 4:a=Qt.oD;b=["0"];c=St[this.M][0]&7;if(0<c){b.push(".");for(var d=0;d<c;d++)b.push("0")}a=a.replace(/0.00/g,b.join(""));Rt(this,a);break;case 5:Tt(this,1);break;case 6:Tt(this,
2);break;default:throw Error("Unsupported pattern type.");}else Rt(this,a)};
Rt=function(a,b){b.replace(/ /g,"\u00a0");var c=[0];a.G=Vt(a,b,c);for(var d=c[0],e=-1,f=0,k=0,l=0,m=-1,n=b.length,q=!0;c[0]<n&&q;c[0]++)switch(b.charAt(c[0])){case "#":0<k?l++:f++;0<=m&&0>e&&m++;break;case "0":if(0<l)throw Error('Unexpected "0" in pattern "'+b+'"');k++;0<=m&&0>e&&m++;break;case ",":0<m&&a.C.push(m);m=0;break;case ".":if(0<=e)throw Error('Multiple decimal separators in pattern "'+b+'"');e=f+k+l;break;case "E":if(a.ba)throw Error('Multiple exponential symbols in pattern "'+b+'"');a.ba=
!0;a.V=0;c[0]+1<n&&"+"==b.charAt(c[0]+1)&&(c[0]++,a.fa=!0);for(;c[0]+1<n&&"0"==b.charAt(c[0]+1);)c[0]++,a.V++;if(1>f+k||1>a.V)throw Error('Malformed exponential pattern "'+b+'"');q=!1;break;default:c[0]--,q=!1}0==k&&0<f&&0<=e&&(k=e,0==k&&k++,l=f-k,f=k-1,k=1);if(0>e&&0<l||0<=e&&(e<f||e>f+k)||0==m)throw Error('Malformed pattern "'+b+'"');l=f+k+l;a.D=0<=e?l-e:0;0<=e&&(a.A=f+k-e,0>a.A&&(a.A=0));a.o=(0<=e?e:l)-f;a.ba&&(a.P=f+a.o,0==a.D&&0==a.o&&(a.o=1));a.C.push(Math.max(0,m));a.da=0==e||e==l;d=c[0]-d;
a.O=Vt(a,b,c);c[0]<b.length&&";"==b.charAt(c[0])?(c[0]++,1!=a.g&&(a.F=!0),a.B=Vt(a,b,c),c[0]+=d,a.J=Vt(a,b,c)):(a.B+=a.G,a.J+=a.O)};
Tt=function(a,b){a.K=b;Rt(a,Qt.Ot);a.A=0;a.D=2;if(0<a.A)throw Error("Can't combine significant digits and minimum fraction digits");a.ca=2};
Xt=function(a,b){var c=Math.pow(10,a.D);if(0>=a.ca)var d=Math.round(b*c);else{d=b*c;var e=a.D;if(d){var f=a.ca-Wt(d)-1;f<-e?(e=Math.pow(10,e),d=Math.round(d/e)*e):(e=Math.pow(10,f),d=Math.round(d*e)/e)}d=Math.round(d)}e=d;(0,window.isFinite)(e)?(d=Math.floor(e/c),c=Math.floor(e-d*c)):(d=b,c=0);return{intValue:d,jG:c}};
Yt=function(a,b,c,d){if(a.A>a.D)throw Error("Min value must be less than max value");d||(d=[]);b=Xt(a,b);var e=Math.pow(10,a.D),f=b.intValue,k=b.jG,l=0<a.A||0<k||!1;b=a.A;l&&(b=a.A);for(var m="",n=f;1E20<n;)m="0"+m,n=Math.round(n/10);var m=n+m,q=Qt.Pt,n=Qt.Zo.charCodeAt(0),r=m.length,w=0;if(0<f||0<c){for(f=r;f<c;f++)d.push(String.fromCharCode(n));if(2<=a.C.length)for(c=1;c<a.C.length;c++)w+=a.C[c];c=r-w;if(0<c)for(var f=a.C,w=r=0,z,B=Qt.Lo,D=m.length,L=0;L<D;L++){if(d.push(String.fromCharCode(n+1*
Number(m.charAt(L)))),1<D-L)if(z=f[w],L<c){var Y=c-L;(1===z||0<z&&1===Y%z)&&d.push(B)}else w<f.length&&(L===c?w+=1:z===L-c-r+1&&(d.push(B),r+=z,w+=1))}else{c=m;m=a.C;f=Qt.Lo;z=c.length;B=[];for(r=m.length-1;0<=r&&0<z;r--){w=m[r];for(D=0;D<w&&0<=z-D-1;D++)B.push(String.fromCharCode(n+1*Number(c.charAt(z-D-1))));z-=w;0<z&&B.push(f)}d.push.apply(d,B.reverse())}}else l||d.push(String.fromCharCode(n));(a.da||l)&&d.push(q);a=""+(k+e);for(e=a.length;"0"==a.charAt(e-1)&&e>b+1;)e--;for(f=1;f<e;f++)d.push(String.fromCharCode(n+
1*Number(a.charAt(f))))};
Zt=function(a,b,c){c.push(Qt.Tt);0>b?(b=-b,c.push(Qt.eE)):a.fa&&c.push(Qt.vE);b=""+b;for(var d=Qt.Zo,e=b.length;e<a.V;e++)c.push(d);c.push(b)};
$t=function(a){a=a.charCodeAt(0);if(48<=a&&58>a)return a-48;var b=Qt.Zo.charCodeAt(0);return b<=a&&a<b+10?a-b:-1};
Vt=function(a,b,c){for(var d="",e=!1,f=b.length;c[0]<f;c[0]++){var k=b.charAt(c[0]);if("'"==k)c[0]+1<f&&"'"==b.charAt(c[0]+1)?(c[0]++,d+="'"):e=!e;else if(e)d+=k;else switch(k){case "#":case "0":case ",":case ".":case ";":return d;case "\u00a4":if(c[0]+1<f&&"\u00a4"==b.charAt(c[0]+1))c[0]++,d+=a.M;else switch(a.ga){case 0:d+=St[a.M][1];break;case 2:var k=a.M,l=St[k],d=d+(k==l[1]?k:k+" "+l[1]);break;case 1:d+=St[a.M][2]}break;case "%":if(!a.F&&1!=a.g)throw Error("Too many percent/permill");if(a.F&&
100!=a.g)throw Error("Inconsistent use of percent/permill characters");a.g=100;a.F=!1;d+=Qt.eu;break;case "\u2030":if(!a.F&&1!=a.g)throw Error("Too many percent/permill");if(a.F&&1E3!=a.g)throw Error("Inconsistent use of percent/permill characters");a.g=1E3;a.F=!1;d+=Qt.fu;break;default:d+=k}}return d};
cu=function(a,b){var c=1==a.K?au.Mt:au.YC;null==c&&(c=au.Mt);if(3>b)return bu;b=Math.min(14,b);for(var d=c[Math.pow(10,b)],e=b-1;!d&&3<=e;)d=c[Math.pow(10,e)],e--;if(!d)return bu;c=d.other;return c&&"0"!=c?(c=/([^0]*)(0+)(.*)/.exec(c))?{prefix:c[1],fB:c[3],Lp:e+1-(c[2].length-1)}:bu:bu};
Wt=function(a){if(!(0,window.isFinite)(a))return 0<a?a:0;for(var b=0;1<=(a/=10);)b++;return b};
eu=function(a,b,c,d){g.qf.call(this);this.g=a;this.Vb=this.ga=!1;this.ra=c;this.tc=d;this.Ia=this.ca=this.G=this.D=this.V=this.Na=this.fa=this.M=this.Bb=this.Fa=this.Ta=this.O=this.o=null;this.zb=!1;this.Gb=this.kb=this.ob=this.P=this.ba=this.K=this.ua=this.sa=this.oa=this.B=this.C=this.tb=this.ka=this.ha=this.J=null;this.A=new g.dm(this);this.Oa=[];a=this.g;this.uc=null!=a&&null!=a.g&&null!=Tc(a.g)?Mc(Tc(a.g),Yc,2):null;a=this.g;this.Zb=null!=a&&null!=a.g&&null!=Tc(a.g)?Mc(Tc(a.g),bd,7):null;this.F=
!1;this.da=[];this.ga=!this.g.J&&P.g();this.sb=!P.g()&&P.sb;a="";this.ga?a="redesign2014q4":this.sb&&(a="fixedDirectionality");a={attributionText:this.g.attributionText,fh:this.g.fh,pe:this.g.pe,tm:a};this.o=Op(this.g.ba,a);this.g.Za||this.A.X(this.o,"touchmove",this.UH);this.ka=g.K("videoAdUiProgress",this.o);this.tb=g.K("videoAdUiBuffer",this.o);this.O=g.K("videoAdUiAttributionContainer",this.o);this.Ta=g.K("videoAdUiAttributionIconContainer",this.o);this.Fa=g.K("videoAdUiAttribution",this.o);if(this.g.ka&&
(c=this.g.g,null!=Mc(Tc(c),Wc,8)&&(c=J(Mc(Tc(c),Wc,8),1),null!=c))){d=g.K("videoAdUiAttributionWithBadge",this.O);switch(c){case 1:g.R(d,"videoAdUiAttributionYellowBadge");this.F=!0;break;case 2:g.R(d,"videoAdUiAttributionGreyBadgeYellowText");this.F=!0;break;case 3:g.R(d,"videoAdUiAttributionWhiteBadgeYellowText");this.F=!0;break;case 4:g.R(d,"videoAdUiAttributionGreenBadge");this.F=!0;break;case 5:g.R(d,"videoAdUiAttributionPurpleBadge");this.F=!0;break;case 6:g.R(d,"videoAdUiAttributionWhiteBadgeGreyText"),
this.F=!0}this.F&&(this.Fa=g.K("videoAdUiAttributionText",this.o),g.R(b,"videoAdUiInstreamBadgeExperiment"))}this.Bb=g.K("videoAdUiVisitAdvertiserLink",this.o);this.M=g.K("videoAdUiVisitAdvertiserLinkText",this.o);this.fa=g.K("videoAdUiVisitAdvertiserIcon",this.o);this.Na=g.K("videoAdUiBottomBarMessage",this.o);this.V=g.K("videoAdUiAuthorIcon",this.o);this.D=g.K("videoAdUiAuthorName",this.o);this.G=g.K("videoAdUiLearnMore",this.o);this.ca=g.K("videoAdUiLearnMoreText",this.o);this.ga?(this.P=g.K("videoAdUiTopButtonShare",
this.o),this.ob=g.K("videoAdUiTopButtonShareTooltip",this.o),this.kb=g.K("videoAdUiTopButtonInfo",this.o),this.Gb=g.K("videoAdUiTopButtonWatchLater",this.o)):this.P=g.K("videoAdUiShare",this.o);this.J=g.K("videoAdUiTitle",this.o);this.ha=g.K("videoAdUiTopBar",this.o);this.Ia=g.K("videoAdUiBottomBar",this.o);null!=this.V&&this.A.X(this.V,"click",this.wF);null!=this.D&&(c=new Ms,this.da.push(c),this.A.X(c,"click",this.xF),c.Hb(this.D));null!=this.G&&(c=new Ms,c.C=!0,this.da.push(c),this.A.X(c,"click",
this.zx),c.Hb(this.G));null!=this.ca&&(c=new Ms,c.C=!0,this.da.push(c),this.A.X(c,"click",this.zx),c.Hb(this.ca));null!=this.P&&this.A.X(this.P,"click",this.vR);null!=this.J&&(c=new Ms,this.da.push(c),this.A.X(c,"click",this.GR),c.Hb(this.J));null==this.ha||!P.g()&&dn()||this.A.X(this.o,"mouseover",this.sR);null!=this.M&&this.A.X(this.M,"click",this.uo);null!=this.fa&&this.A.X(this.fa,"click",this.uo);null!=this.O&&null!=this.g.K&&at(this.g.K)&&(g.R(this.O,"videoAdUiWtaClickable"),this.A.X(this.O,
"click",this.xQ),this.A.X(this,"why_this_ad_got_it",this.aS));null!=this.g.skipOffset?(this.B=P.g()?new Ht(this.g,this.o):new At(this.g,this.o),this.B.uh(this),this.B.ka=a.tm):!this.g.V||3==this.tc&&3500>this.ra||(this.K=new mt(this.g,this.o),g.N(this,this.K),this.K.uh(this));this.g.G&&(this.oa=new Us(this.g,this.o),g.N(this,this.oa),this.oa.uh(this));a=this.g.g;P.g()&&null!=a&&null!=J(a,1)&&null!=J(Tc(a),3)&&J(Mc(Tc(a),Zc,3),1)&&(this.sa=new jt(this.g,this.o));a=this.g.g;P.g()&&null!=a&&null!=J(a,
1)&&null!=J(Tc(a),7)?(c=Mc(Tc(a),bd,7),a=null!=J(c,1)||null!=J(c,7)&&null!=J(c,8),c=J(c,5),a=a&&c?!0:!1):a=!1;a&&(this.ua=new nt(this.g,this.o));this.g.Sa&&(this.ba=new lt,this.ba.uh(this),this.Ia.insertBefore(this.ba.o,this.O));400>=((0,window.parseInt)(g.fh(b,"width"),10)||b.width)&&g.R(this.o,"videoAdUi-mobile");this.g.J&&(g.R(this.o,"blazer"),window.settings&&window.settings.isTablet?g.R(this.o,"tablet"):g.R(this.o,"phone"));a=g.Fe(b,"html5-video-player");null!=a&&(this.ga&&g.R(a,"videoAdUiRedesign"),
g.S(a,"ytp-video-ad-learn-more-ui",this.g.B));g.O(this.o,!1);b.appendChild(this.o);this.g.B||this.ga||!this.g.ga||(this.C=g.ge("DIV",{style:"width:100%;height:100%;pointer-events:auto;"}),this.o.appendChild(this.C));du(this)};
Kfa=function(a){null!=a.C&&g.O(a.C,!1)};
fu=function(a,b,c){if(null!=a.sa){var d=a.sa,e=null!=a.g.skipOffset;if(!d.G){var f={action:"condor-brand-interaction"};null!=b&&(f.trigger="skip"==b?"s":"complete"==b?"c":"abandon"==b?"a":"u");f.skip=e?"t":"f";f.rt=c;f.numclk=d.V;g.fb(d.B)&&(d.B.push("n"),d.C.push("0"),d.D.push("0"));f.opt=d.B.join(",");f.clk_time_ms=d.C.join(",");f.rel_clk_time_sec=d.D.join(",");null!=d.M&&(f.icon_sty=d.M);f.ei="[EID]";f.cpn="[CPN]";f.content_v="[CONTENT_V]";f.ad_cpn="[AD_CPN]";f.ad_v="[AD_V]";f.ad_id="[AD_ID]";
f.ad_len="[AD_LEN]";e=Up(f);e=g.mm(e,d.ba.C);Rm(e);d.G=!0}}null!=a.ua&&(d=a.ua,a=null!=a.g.skipOffset,null!=d.A&&(e={action:"condor-robin"},e.topic=d.A,null!=b&&(e.trigger="skip"==b?"s":"complete"==b?"c":"abandon"==b?"a":"u"),e.skip=a?"t":"f",e.rt=c,e.num_clk_whole=d.J,e.num_clk_topic=d.F,e.ei="[EID]",e.cpn="[CPN]",e.content_v="[CONTENT_V]",e.ad_cpn="[AD_CPN]",e.ad_v="[AD_V]",e.ad_id="[AD_ID]",e.ad_len="[AD_LEN]",b=Up(e),b=g.mm(b,d.K.C),Rm(b),d.G=!0))};
gu=function(a){a.B&&(a.B.dispose(),a.B=null)};
hu=function(a,b){a.Oa=b;(0,g.H)(b,function(a){a.B=this.o;a.B.appendChild(a.g);Pt(a);g.O(a.g,!1);var b=a.Gc();if(null!=b){var c=new Ms;c.C=!0;this.da.push(c);this.A.X(c,"click",(0,g.A)(this.zH,this,a));c.Hb(b)}},a)};
iu=function(a){null!=a.M&&(g.O(a.M,!0),g.ye(a.M,a.g.visitAdvertiserText));null!=a.fa&&g.O(a.fa,!0)};
ju=function(a,b){if(null!=a.o){var c=g.Fe(g.ve(a.o),"html5-video-player");null!=c&&(g.S(c,"ytp-ad-end-cap",b),g.S(c,"ytp-ad-display-override",b))}};
du=function(a){var b=a.g.F&&(a.ra>a.g.ca||0==a.ra),c=b&&a.g.ua,d=b&&a.g.Fa,e=b&&a.g.A,f=b&&a.g.ra,b=b&&a.g.P,k=a.g.oa&&a.g.o,l="0px";var m=a.uc;m=P.g()&&null!=m&&J(m,1)?!1:!0;var n=a.g;var q=a.Zb;if(P.g()&&null!=q&&null!=J(q,1)&&J(q,2)){var r=J(q,1)||"";Ja(r,"[VC_RAW]")?(q=J(q,3),n=0<n.Uf&&null!=q&&0<q&&n.Uf>=q):n=!0}else n=!1;null!=a.J&&(g.O(a.J,b),null!=a.V&&g.O(a.V,c),null!=a.D&&g.O(a.D,d),null!=a.P&&(g.O(a.P,f),f&&a.dispatchEvent("videoShareShown")),null!=a.kb&&g.O(a.kb,!1),null!=a.Gb&&g.O(a.Gb,
!1),null!=a.ha&&g.O(a.ha,b||c||d||e));null!=a.O&&ku(a);null!=a.ka&&(g.O(a.ka,k),k&&(l=g.fh(a.ka,"height")));null!=a.Ia&&!P.g()&&g.bh(a.Ia,"bottom",l);lu(a);null!=a.Ta&&g.O(a.Ta,a.g.fa);null!=a.Bb&&g.O(a.Bb,m);if(null!=a.Na&&n){a:if(c=a.g,d=a.Zb,P.g()&&null!=d&&null!=J(d,1)){d=J(d,1)||"";if(Ja(d,"[VC_RAW]")){c=(new Ut(1)).format(c.Uf);if(E(c)){c="";break a}e=new RegExp(La("[VC_RAW]"),"g");d=d.replace(e,c.replace(/\$/g,"$$$$"))}c=d}else c="";g.ye(a.Na,c);g.O(a.Na,!0)}P.g()||!a.g.O||P.D||(null!=a.G&&
g.O(a.G,!1),null!=a.ca&&g.O(a.ca,!1))};
Lfa=function(a,b,c,d,e){var f=a.F?$q({Ag:"",gg:0,Cg:0}):Zq({Ag:"",gg:0,Cg:0});a.g.o&&a.g.ha&&(b=co(c-b),b=a.g.J?" \u2022 "+b:a.ga?" \u00b7 "+b:": ("+b+")",f=a.F?$q({Ag:b,gg:d,Cg:e}):Zq({Ag:b,gg:d,Cg:e}));g.ye(a.Fa,f);ku(a)};
ku=function(a){g.O(a.O,a.g.D&&(!a.g.o||a.zb))};
Mfa=function(a,b){null!=a.oa&&a.oa.show(b)};
lu=function(a){var b=a.g.F&&(a.ra>a.g.ca||0==a.ra)&&a.g.A?a.g.O?!P.D||a.Vb:!0:!1;null!=a.G&&g.O(a.G,b);null!=a.ca&&g.O(a.ca,P.g()&&a.g.B&&!b)};
mu=function(){g.M.call(this);this.B="";this.bb=null;this.A=new dp;this.o=new Fl;this.D=[];this.J=!1;this.g={};this.G={};this.C=-1;this.F=[]};
nu=function(a,b,c){c=c||lp(a.A,b.type);if(P.o){var d=lo(io(),b.type,a.B);a.K(b.type,c,d)}else uda(Rn(),b.type,a.B,(0,g.A)(a.K,a,b.type,c))};
Nfa=function(a,b){null!=b&&(0,g.H)(b,function(a){g.eb(this.F,a)||this.F.push(a)},a)};
ou=function(a,b,c){null!=c.viewability&&dq(a.g,c.viewability);var d;P.o||(d=Rn().K||void 0);var e=[];(0,g.H)(b,function(a){var b=this.g;eq(b,a,"MOAT_INIT",c.moatInit);eq(b,a,"MOAT_VIEWABILITY",c.moatViewability);eq(b,a,"IAS_VIEWABILITY",c.integralAdsViewability);eq(b,a,"DV_VIEWABILITY",c.doubleVerifyViewability);eq(b,a,"GOOGLE_VIEWABILITY",c.googleViewability);e.push(Tm(a,this.g,c,d))},a);
dq(a.g,"na");return e};
pu=function(a,b,c){(0,g.H)(b,function(a){Rm(a,void 0,void 0,c)},a)};
Ofa=function(a,b){switch(b){case "abandon":return!Hl(a.o,b)&&!Hl(a.o,"skip")&&!Hl(a.o,"instreamAdComplete")&&(Hl(a.o,"impression")||a.J);case "instreamAdComplete":case "complete":return!Hl(a.o,b)&&!Hl(a.o,"skip");case "progress":case "click":case "mute":case "unmute":case "rewind":case "fullscreen":case "exitfullscreen":case "expand":case "collapse":return!0;default:return!Hl(a.o,b)}};
qu=function(a){g.qf.call(this);this.ads=a;this.Uc=null;this.ue=new g.dm(this);g.N(this,this.ue);this.Xc="normal";this.Qa=this.volume=null;this.Va=new Nn;this.be=!1;this.content={};this.Sb=new mu;this.Ha=null;this.hm=!1;Rn();this.vo=(0,g.A)(this.rG,this);this.Ii=null;var b=0;(0,g.H)(a,function(a){b+=a.getDuration()});
(0,g.H)(a,function(b,d){var c=b.C;c.Yf=a.length;var f=d+1;c.g=f;c.A=f})};
uu=function(a,b){if(a.Uc=b)a.Sb.B=b.K;if(P.o){var c=io();mo(c,a.vo);b&&c.o.set(b.K,a.vo)}};
vu=function(a,b){return null==b?!1:null!=b.getExtension("adx")?!0:vu(a,b.o)};
Pfa=function(a){return(0,g.Ek)(a.ads,function(a){return(0,g.Ek)(this.Ug(a),function(a){return!E(g.F(Sp(a.o)))})},a)};
wu=function(a){a=a.g;return null!=a&&a instanceof rp};
xu=function(a,b){nu(a.Sb,new g.Me(b));a.la(b)};
Qfa=function(a,b){return(0,g.Br)(g.Ob(b),function(a){return Qb(this.Va,a)},a)};
zu=function(a){if(!a.Kc())throw Zm(yu,null,"Ads manager is not correctly configured.");};
Au=function(a,b){for(var c=b;null!=c;)(0,g.H)(c.G.fb(),a.VQ,a),c=c.o};
Rfa=function(a){if(!g.sa(a))throw Zm(yu,null,"adsRenderingSettings.mimeTypes should be an array");var b=g.nb(g.Nb(Bu),g.Nb(vp));(0,g.H)(a,function(a){if(!g.eb(b,a))throw Zm(yu,null,"Invalid or unsuppoted mime type "+a);})};
Cu=function(a){var b=a.ma();if(null!=b){var c=b.g;if(c instanceof rp&&(c=c.Za,null!=c&&!g.fb(c))){var d=window.document.body,e=cq(a.ma()),e=ft(!1,null,null,!1,a.Va,e);e.F=!1;e.D=!1;e.o=!1;b=b.Ue();a.Ha=new eu(e,d,1E3*a.getDuration(),b);hu(a.Ha,c);a.Ha.show();a.Xa().X(a.Ha,"videoIconClicked",a.KN)}}};
Du=function(a,b,c){null!=a.Ha&&0<=c&&0<=b&&a.Ha.update(b,0,c,0,0)};
Sfa=function(a,b){function c(a,b){for(var c in a)for(var d=c.toLowerCase(),e=0;e<Eu.length;e++){var m=Eu[e];if(d==m)throw Error('Cannot override "'+m+'" '+b+', got "'+c+'" with value "'+a[c]+'"');}}
c(a,"attribute");c(b,"param")};
g.Fu=function(){};
g.Gu=function(a){g.qf.call(this);this.J=a||g.Ud();this.Aa=null;this.Ge=!1;this.g=null;this.D=void 0;this.F=this.M=this.B=null};
Hu=function(a,b){if(a.Ge)throw Error("Component already rendered");a.g||a.Rm();b?b.insertBefore(a.g,null):a.J.g.body.appendChild(a.g);a.B&&!a.B.Ge||a.Li()};
Iu=function(a,b){a.M&&(0,g.H)(a.M,b,void 0)};
Ju=function(a,b){g.Gu.call(this,b);this.K=a;this.A=new g.dm(this);this.o=new Fl};
Ku=function(a){return a.pa()?a.pa().firstChild:null};
Lu=function(a){g.qf.call(this);this.bb=null;this.D=a;this.o=null;this.B=-1;this.C=!1;this.A=Ua()};
Mu=function(){};
Nu=function(a,b,c){this.g=a;this.vf=c;this.o=b};
Tfa=function(a,b){this.g=a;this.o=b};
Ou=function(a,b,c,d){yp.call(this,a,b,"Static",c,d);this.Yu=!1};
Pu=function(a,b,c,d){yp.call(this,a,b,"Html",c,d)};
Qu=function(a,b,c,d){yp.call(this,a,b,"Static",c,d)};
Su=function(a,b,c){if(g.fb(c))return new yp(a,b,"",null,"");var d=Ru(c);c=d.o;var e=d.g,d=d.A;switch(c){case "Html":return new Pu(a,b,e,d);case "Static":switch(vp[e]){case "Image":return new Qu(a,b,e,d);case "Flash":return new Ou(a,b,e,d);case "Text":return new Rp(a,b)}}return new yp(a,b,c,e,d)};
Ru=function(a){var b=g.$a(a,function(a){return"Static"==a.o&&"Flash"==vp[a.g]}),c=g.$a(a,function(a){return"IFrame"==a.o}),d=g.$a(a,function(a){return"Html"==a.o}),e=g.$a(a,function(a){return"Static"==a.o&&"Image"==vp[a.g]}),f=g.$a(a,function(a){return"Static"==a.o&&"Text"==vp[a.g]});
return ao&&null!=b?b:null!=c?c:null!=d?d:null!=e?e:null!=f?f:a[0]};
Ufa=function(a,b,c,d,e,f){var k=Ru(f),l=Su(a.id,a.size,[k]);l.D=!0;l.K=a.apiFramework;l.oa=b;l.M=c;l.g=d;e&&(l.ej=e);g.kb(f,k);var m=[];(0,g.H)(f,function(f){f=Su(a.id,a.size,[f]);f.D=!0;f.K=a.apiFramework;f.oa=b;f.M=c;f.g=d;e&&(f.ej=e);m.push(new Iq(f,[],a.adSlotId))});
return new Iq(l,m,a.adSlotId)};
Tu=function(a,b,c){this.o=a;this.g=b;this.A=c};
Uu=function(a,b,c){Fp.call(this);this.o=a;this.A=b;this.B=c};
Vu=function(){this.bb=null};
Wu=function(){this.C=null;this.D="http://www.google.com/adsense/support";this.F=0;this.g=15;this.B=5;this.A=3;this.o=!1};
Vfa=function(a,b){a.g=b};
Xu=function(a,b,c,d,e,f,k,l,m,n,q){Fp.call(this,n,q);this.C=a;this.D=b;this.B=c;this.F=m;this.G=k;this.o=f;this.A=e};
Yu=function(){};
Xfa=function(a,b){var c;(0,g.H)(g.se(b),function(a){switch(a.nodeName){case "context":c="default"==a.getAttribute("data")?new Wu:null;break;case "params":null!=c&&Wfa(this,c,a)}},a);
return c};
Wfa=function(a,b,c){(0,g.H)(g.se(c),function(a){var c=a.attributes[0].value;switch(a.nodeName){case "attribution_url":b.D=c;break;case "attribution_text":b.C=c;break;case "signals":b.F=(0,window.parseInt)(c,10);break;case "audio_muted_on_start":b.o=yr(c,!1)}},a)};
Zu=function(){this.bb=null};
$u=function(){};
av=function(){};
bv=function(){};
cv=function(a){this.data=a||{}};
dv=function(a,b,c){a=a.data[b];return null!=a?a:c};
fr=function(a,b){return dv(a,b,"")};
ev=function(a,b,c){a=a.data;a[b]||(a[b]=[]);return a[b][c]};
fv=function(a,b){return a.data[b]?a.data[b].length:0};
gv=function(a){this.data=a||{}};
hv=function(a){this.data=a||{}};
iv=function(a){this.data=a||{}};
jv=function(a){this.data=a||{}};
kv=function(a){this.data=a||{}};
lv=function(a){this.data=a||{}};
mv=function(a){this.data=a||{}};
nv=function(a){this.data=a||{}};
qs=function(a){this.data=a||{}};
Mq=function(a){return new lv(a.data.product_card)};
ps=function(a){return new iv(a.data.placement)};
Uq=function(a){return new jv(ev(a,"action",0))};
os=function(a){return!!dv(a,"show_in_endcap",void 0)};
ts=function(a){return!!dv(a,"show_in_companion",void 0)};
uv=function(){if(!ov){var a={};ov={g:a};a.type=pv;a.id=qv;a.link_url=qv;a.title=qv;a.image=Nh(rv());var b=tv();a.event=Mh(b);a.target=qv}return ov};
hr=function(a){return fr(a,"title")};
Tq=function(a){return fr(a,"target")};
tv=function(){if(!vv){var a={};vv={g:a};a.type=pv;a.base_url=qv}return vv};
Qq=function(a){return new qs(a.data.image)};
Nq=function(a){return new mv(ev(a,"offer",0))};
Pq=function(a){return fr(a,"merchant")};
Rq=function(a){return fr(a,"price")};
wv=function(a){return new jv(ev(a,"action",0))};
ir=function(a){return fr(a,"description")};
rv=function(){if(!xv){var a={};xv={g:a};a.image_url=qv;a.thumbnail_url=qv;a.image_height=yv;a.image_width=yv}return xv};
rs=function(a,b){a.data.image_url=b};
zv=function(a,b,c){Fp.call(this,c);this.o=a;this.A=b||null};
Av=function(a){this.g=a};
Cv=function(a,b,c){for(var d={},e=0;e<b.attributes.length;e++){var f=b.attributes[e],k=c.g[f.nodeName];if(k)switch(k.type){case "b":d[f.nodeName]="false"!=f.nodeValue;break;case "d":case "f":d[f.nodeName]=(0,window.parseFloat)(f.nodeValue);break;case "e":d[f.nodeName]=Bv[b.nodeName][f.nodeName][f.nodeValue];break;case "i":d[f.nodeName]=(0,window.parseInt)(f.nodeValue,10);break;default:d[f.nodeName]=f.nodeValue}}for(e=0;e<b.childNodes.length;e++)if(f=b.childNodes[e],f.nodeType==window.Node.ELEMENT_NODE){var k=
c.g[f.nodeName],l=Cv(a,f,k.Wd);3==k.label?(d[f.nodeName]||(d[f.nodeName]=[]),d[f.nodeName].push(l)):d[f.nodeName]=l}return d};
Yfa=function(a,b){var c=new dp;(0,g.H)(g.se(b),function(a){"CustomTracking"==a.nodeName&&null!=g.se(a)&&(c=Er(a,!1,(0,g.A)(function(a,b){return Dv(a,b)},this)))},a);
return c};
Dv=function(a,b){return g.mm(b,{ACTTYPE:{toString:function(){switch(a){case "video_card_endcap_action":return"action_headline_click";default:return""}}}})};
Ev=function(a,b){Fp.call(this);this.A=a;this.o=g.F(b)};
Fv=function(a,b){Fp.call(this);this.o=a;this.A=b};
Gv=function(){this.bb=null};
Hv=function(a,b){this.logger=null;this.A=b;this.g={};this.o=[];this.g.CustomTracking=Er;this.g.UI=this.C};
Iv=function(a,b){if(null==b)return null;var c={};(0,g.H)(g.se(b),function(a){c[a.nodeName]=null!=this.g[a.nodeName]?this.g[a.nodeName].call(this,a):null},a);
return null!=c.UI?c:null};
Jv=function(){Hv.call(this,0,"mute_");this.g.SurveyOptions=this.B};
Kv=function(){Fp.call(this);this.o=""};
Lv=function(){this.bb=null};
Mv=function(a,b,c,d){Fp.call(this);this.B=a;this.A=b;this.C=c;this.o=d};
Nv=function(){this.bb=null};
Ov=function(){Fp.call(this)};
Pv=function(){this.bb=null};
Zfa=function(a,b){(0,g.H)(g.se(b),function(a){a.nodeName==this.g.TE&&ur(a)},a)};
Qv=function(a,b,c,d,e,f){Fp.call(this);this.C=a||"";this.D=b||"";this.F=c||"";this.B=d;this.o=e;this.A=f};
Rv=function(){this.bb=null};
Sv=function(a){Fp.call(this);this.o=a};
Tv=function(){this.bb=null};
Uv=function(){Hv.call(this,0,"why_this_ad_");this.o.push("targeting_reason")};
Vv=function(a,b){return null!=a?(0,g.Br)(b,function(b){return b in a}):!1};
$fa=function(a,b){return null!=a?(0,g.Ek)(b,function(b){return b in a}):!1};
Wv=function(){};
Xv=function(){Fp.call(this)};
Yv=function(){};
Zv=function(){};
$v=function(a){this.B=a;this.logger=null};
aw=function(a){if(null==a)return!1;a=g.ue(a);return null!=a&&"VAST"==a.nodeName};
cw=function(a,b){var c=[],d=null;try{var e=g.nr(a),f=g.ue(e);null!=f&&"CompanionAds"==f.nodeName&&(d=bw($v.prototype,f,b))}catch(k){}null!=d&&c.push(d);return c};
dw=function(a){if(null==a)return 0;a=(0,window.parseInt)(a.getAttribute("version"),10);return g.oa(a)&&!(0,window.isNaN)(a)?a:0};
cga=function(a){var b=[],c=g.ue(a.B),d=dw(c);vr(c,a.g.FC,function(a){var c=ew(a);if(null==c)throw pr(a);var e=a.getAttribute(this.o.Al);a=Number(a.getAttribute(this.o.iu));var l=e||null;e=a||0;var m=null,n=null;a=[];for(var q=[],r=[],w=[],z=new Fl,B,D=c.nodeName==this.g.gF,L=D,Y=D,Sa=null,bb=g.se(c),ia=0,$b=bb.length;ia<$b;ia++){var tb=bb[ia];switch(tb.nodeName){case this.g.GC:ur(tb);case this.g.wE:break;case this.g.cF:if(D){if(null!=B)throw qr(tb);B=ur(tb);Sa=cfa(B);L=yr(c.getAttribute(this.o.MC),
L);Y=yr(c.getAttribute(this.o.ED),Y)}else throw pr(tb);break;case this.g.JC:m=ur(tb);break;case this.g.KC:n=ur(tb);break;case this.g.uD:ur(tb);break;case this.g.RE:ur(tb);break;case this.g.Cl:tb=ur(tb);Cr(tb)&&a.push(Ar(tb));break;case this.g.ERROR:tb=ur(tb);q.push(Ar(tb));break;case this.g.lD:w=aga(this,tb);r=w.creatives;w=w.LF;break;case this.g.BD:var $f=tb,z=Sa,tb=new Fl;try{for(var ag=sr($f,this.g.EXTENSION),$f=0,Ak=ag.length;$f<Ak;$f++){var wc=ag[$f],ac=wc.getAttribute(this.o.zu);null!=ac?ac=
ac.toLowerCase():ac="generic";switch(ac){case "programmatic":var xc=(new Lv).parse(wc);break;case "geo":xc=(new Yv).parse(wc);break;case "pod":xc=(new Wv).parse(wc);break;case "waterfall":xc=(new Zv).parse(wc);break;case "dart":xc=(new $u).parse(wc);break;case "dfp":ac="DFP";xc=(new av).parse(wc);break;case "adsense":ac="AdSense";xc=(new Zu).parse(wc);break;case "textad":ac="TextAd";xc=(new Rv).parse(wc);break;case "templatead":ac="TemplateAd";xc=(new Pv).parse(wc);break;case "infocards":var ac="InfoCards",
ru=new Av(!0);xc=ru.parse(wc);break;case "infocardstracking":ac="InfoCardsTracking";ru=new Av(!1);xc=ru.parse(wc);break;case z:case "prefetchedad":ac="LocalRedirect";var ij=wc;if(null==ij)xc=null;else{var Bk=null,Qp=sr(ij,"AdXml");if(1==Qp.length){var Km=g.ue(Qp[0]);if(Fm().g.g("html5_reuse_parsed_xml")&&null!=Km)try{Bk=rr(Km)}catch(Og){Bk='<?xml version="1.0" encoding="UTF-8"?>'+or(Km)}else Bk='<?xml version="1.0" encoding="UTF-8"?>'+or(Km)}var Jd=sr(ij,"VASTAdTagURI"),ij=null;1==Jd.length&&(ij=
Jd[0].textContent);xc=new Ev(Bk,ij)}break;case "viral":ac="viral";xc=(new Tv).parse(wc);break;case "metrics":ac="metrics";xc=(new Gv).parse(wc);break;case "adx":ac="adx";xc=(new Gr).parse(wc);break;case "why_this_ad":ac="why_this_ad";xc=(new Uv).parse(wc);break;case "mute":ac="mute";xc=(new Jv).parse(wc);break;case "sodar":xc=(new Nv).parse(wc);break;case "adformat":ac="AdFormat";xc=(new Vu).parse(wc);break;default:var Lm=new bv,ac="generic";xc=Lm.parse(wc)}if(null!=xc){var tu=tb.get(ac);null!=tu?
"generic"==ac&&(Yda(tu,xc.g),tb.set(ac,tu)):tb.set(ac,xc)}}}catch(Og){if(!g.ua(Og.Lb)||1105==Og.Lb())throw Og;}z=tb}}c=g.F(l);ag=m;a:if(E(g.F(m)))Ak="UNKNOWN";else switch(Ak=m.toUpperCase(),Ak){case "ADSENSE":case "ADSENSE/ADX":case "ADSENSE-VIRAL":case "DART":case "DART_DFP":case "DART_DFA":case "FREEWHEEL":case "GDFP":case "SHOPPING":case "402":case "YT:ADSENSE":case "YT:DOUBLECLICK":case "YT:SHOPPING":case "YT:FREEWHEEL":case "VIRAL":case "VIRAL-RESERVE":break a;default:Ak="UNKNOWN"}z.get("programmatic");
wc=z;ac=null;z=z.get("AdSense");null!=z&&(z=Gp(z,"vast2tracking"),null!=z&&!g.fb(z)&&(ac=z[0]));e=new Kr(c,ag,Ak,0,n,0,0,0,e,q,a,r,w,wc,B,L,Y,ac);null!=e&&(e.Ra=d,b.push(e))},a);
return b};
ew=function(a){var b=null;a=g.se(a);for(var c=0,d=a.length;c<d;c++)switch(b=a[c],b.nodeName){case "InLine":case "Wrapper":break;default:throw pr(b);}return b};
dga=function(a){if(E(g.F(a)))return"none";switch(a){case "all":case "any":case "none":return a;default:return"none"}};
aga=function(a,b){var c=[],d=[];vr(b,a.g.kD,function(a){var b=a.getAttribute(this.o.iu),e=window.NaN;E(g.F(b))||(e=(0,window.parseFloat)(b));a.getAttribute(this.o.HC);var b=a.getAttribute(this.o.Al),l=!1,m=[];a=g.se(a);for(var n=0,q=a.length;n<q;n++){var r=a[n];switch(r.nodeName){case this.g.aF:var w=r,z=ur(w),z=g.F(z);E(z)&&w.getAttribute(this.o.OD);r.getAttribute(this.o.ND);break;case this.g.LINEAR:if(l)throw qr(r);l=ega(this,r,(0,window.isNaN)(e)?0:e,b||null);pb(c,l);pb(m,l);l=!0;break;case this.g.aD:if(l)throw qr(r);
l=bw(this,r,(0,window.isNaN)(e)?0:e);pb(d,l);l=!0;break;case this.g.lE:if(l)throw qr(r);l=fga(this,r,(0,window.isNaN)(e)?0:e,b||null);pb(c,l);pb(m,l);l=!0}}n=0;for(q=m.length;n<q;n++);},a);
return{creatives:c,LF:d}};
fga=function(a,b,c,d){var e=[],f=new dp;b=g.se(b);for(var k=0,l=b.length;k<l;k++){var m=b[k];switch(m.nodeName){case a.g.kE:m=gga(a,m,c,d);null!=m&&e.push(m);break;case a.g.Xo:f=Er(m);break;default:throw pr(m);}}0!=e.length||f.isEmpty()||(a=new yp(null,new g.Pd(-1,-1),"",null,""),a.g=c,a.ka=d,e.push(a));(0,g.H)(e,function(a){f&&(a.ej=f)});
return e};
fw=function(a,b){var c={};c.id=b.getAttribute(a.o.Al);c.adSlotId=b.getAttribute(a.o.IC);c.apiFramework=b.getAttribute(a.o.xl);var d=Va(b.getAttribute(a.o.Fl)),e=Va(b.getAttribute(a.o.yl));c.size=new g.Pd(d,e);d=b.getAttribute(a.o.AD);e=b.getAttribute(a.o.zD);E(g.F(d))||E(g.F(e))||(c.b1=new g.Pd(Va(d),Va(e)));return c};
gga=function(a,b,c,d){var e=fw(a,b);b.getAttribute(a.o.xl);b.getAttribute(a.o.EE);b.getAttribute(a.o.XD);var f=b.getAttribute(a.o.gE),f=xr(f,-1),k=[];new Fl;var l={},m="",n=null,q=[];b=g.se(b);for(var r=0,w=b.length;r<w;r++){var z=b[r];switch(z.nodeName){case a.g.nE:q.push(ur(z));break;case a.g.mE:n=ur(z);break;case a.g.Eo:l=gw(z);m=g.F(ur(z));break;case a.g.Bl:case a.g.Dl:case a.g.zl:z=hw(a,z);null!=z&&k.push(z);break;default:throw pr(z);}}a=Su(e.id,e.size,k);np(a,m,l);a.K=e.apiFramework;a.oa=n;
a.M=q;a.Fa=f;a.g=c;a.ka=d;return a};
hw=function(a,b){var c=tr(b,a.o.mD);if(null!=c&&"text/javascript"==c)return null;a:{var d=b.nodeName;switch(d){case a.g.Dl:d="Static";break a;case a.g.Bl:d="IFrame";break a;case a.g.zl:d="Html";break a;default:throw Ym(hga,null,d);}}var e=ur(b);null!=e||(e="");return new Tu(d,c,e)};
bw=function(a,b,c){var d=[],e=dga(tr(b,a.o.BE));vr(b,a.g.ZC,function(a){var b=fw(this,a);var e=[],f=new dp,n=null,q=[];a=g.se(a);for(var r=0,w=a.length;r<w;r++){var z=a[r];switch(z.nodeName){case this.g.cD:q.push(ur(z));break;case this.g.Xo:f=Er(z,!0);break;case this.g.bD:n=ur(z);break;case this.g.NC:ur(z);break;case this.g.Eo:ur(z);break;case this.g.Bl:case this.g.Dl:case this.g.zl:z=hw(this,z);null!=z&&e.push(z);break;default:throw pr(z);}}b=g.fb(e)?null:Ufa(b,n,q,c,f,e);null!=b&&d.push(b)},a);
return new Tfa(d,e)};
ega=function(a,b,c,d){var e=new dp,f={},k="",l=[],m=null,n=new Fl,q=[],r=[],w=0,z=Dr(tr(b,a.o.JE));b=g.se(b);for(var B=0,D=b.length;B<D;B++){var L=b[B];switch(L.nodeName){case a.g.ID:r=iga(a,L);break;case a.g.Eo:f=gw(L);k=g.F(ur(L));break;case a.g.Io:w=xr(ur(L),0);break;case a.g.Xo:e=Er(L);break;case a.g.bE:q=jga(a,L);break;case a.g.dF:l=kga(a,L);n=l.customClicks;m=l.clickThrough;l=l.clickTrackingUrls;break;default:throw pr(L);}}(0,g.H)(l,function(a){ip(e,"click",a)});
a=new rp(w,m,n,q,z,r);np(a,k,f);a.g=c;a.ka=d;e&&(a.ej=e);return a};
kga=function(a,b){for(var c=null,d=[],e=new Fl,f=g.se(b),k=0,l=f.length;k<l;k++){var m=f[k];switch(m.nodeName){case a.g.WC:c=ur(m);break;case a.g.XC:m=ur(m);d.push(m);break;case a.g.pD:var n=tr(m,a.o.Al);null!=n||(n="");var q=e.get(n,[]);q.push(ur(m));e.set(n,q);break;default:throw pr(m);}}return{clickThrough:c,clickTrackingUrls:d,customClicks:e}};
jga=function(a,b){for(var c=[],d=sr(b,a.g.aE),e=0,f=d.length;e<f;e++){var k=d[e],l=tr(k,a.o.tD),m=tr(k,a.o.zu),n=tr(k,a.o.eF),q=Va(k.getAttribute(a.o.Fl)),r=Va(k.getAttribute(a.o.yl)),w=k.getAttribute(a.o.xl),z=ur(k),B=wr(k.getAttribute(a.o.Kt)),D=wr(k.getAttribute(a.o.fE)),k=wr(k.getAttribute(a.o.ZD)),l=new qp(l,m,n,B,D,k,q,r,z,w);c.push(l)}return c};
iga=function(a,b){var c=[];vr(b,a.g.HD,function(a){var b=a.getAttribute(this.o.xE);var d=tr(a,this.o.hF),k=tr(a,this.o.kF),l=Va(a.getAttribute(this.o.Fl)),m=Va(a.getAttribute(this.o.yl)),n=new g.Pd(l,m),l=a.getAttribute(this.o.xl),m=Dr(tr(a,this.o.oE)),q=a.getAttribute(this.o.Io),q=xr(q,-1),r=[],w=[],z={};a=g.se(a);for(var B=0,D=a.length;B<D;B++){var L=a[B];switch(L.nodeName){case this.g.MD:w.push(ur(L));break;case this.g.JD:for(var z=[],Y=null,L=g.se(L),Sa=0,bb=L.length;Sa<bb;Sa++){var ia=L[Sa];
switch(ia.nodeName){case this.g.KD:Y=ur(ia);break;case this.g.LD:z.push(ur(ia));break;default:throw pr(ia);}}z={iconClickThrough:Y,AH:z};break;case this.g.Bl:case this.g.Dl:case this.g.zl:Y=hw(this,L);null!=Y&&r.push(Y);break;default:throw pr(L);}}g.fb(r)?b=null:(a=z,n=Su("icon"+b,n,r),n.K=l,b=new Ot(n,b,d,k,q,m,a.iconClickThrough,a.AH,w));null!=b&&c.push(b)},a);
return c};
gw=function(a){a=ur(a);return null!=a?Ada(a):{}};
iw=function(a){qu.call(this,a);this.g=this.bb=null;this.O={};this.A=!0;this.K=this.J=this.F=!1;this.D=this.M=0;this.o=null;this.C=0;this.B=1;this.G=-1;this.V=!1;this.P=2==P.F};
jw=function(a){var b=a.Yc("getAdLinear");return g.na(b)?b:a.A};
kw=function(a){if(!a.A){var b=a.Yc("getAdRemainingTime");b=g.oa(b)?b:-2;if(!g.oa(b)||0>b)b=30;g.gg(a.G);a.G=g.fg(a.stop,1E3*b,a)}};
lw=function(a){a.V||(a.V=!0,xu(a,"complete"))};
nw=function(a,b){var c=Zm(mw,b,void 0),d=bq(c,a.ma()),e=Vr(a.ma());Vm(e,d);mw.message=c.ud();bn(a,mw,b)};
ow=function(a){qu.call(this,a);this.C=this.g=this.bb=null;this.A=!0;this.ba=this.M=this.F=!1;this.V=Ua();this.J=this.O=0;this.G=-1;this.o=null;this.D=0;this.B=1;this.K=-1;this.P=!1};
pw=function(a){var b=a.dd("getAdLinear");return g.na(b)?b:a.A};
qw=function(a){if(!a.A){var b=a.dd("getAdRemainingTime");b=g.oa(b)?b:-2;if(!g.oa(b)||0>b)b=30;g.gg(a.K);a.K=g.fg(a.stop,1E3*b,a)}};
rw=function(a,b,c,d){d=Zm(b,c,d);var e=bq(d,a.ma()),f=Vr(a.ma());Vm(f,e);b.message=d.ud();bn(a,b,c)};
tw=function(a){a.P||(a.P=!0,xu(a,"complete"))};
uw=function(a){sm.call(this,"adMetadata",a)};
vw=function(a){switch(a){case 1:return"endslate";default:return"fullslot"}};
ww=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"}};
xw=function(){};
zw=function(a){var b;(b=a.g)||(b={},yw(a)&&(b[0]=!0,b[1]=!0),b=a.g=b);return b};
Aw=function(){};
Bw=function(a){return(a=yw(a))?new window.ActiveXObject(a):new window.XMLHttpRequest};
yw=function(a){if(!a.o&&"undefined"==typeof window.XMLHttpRequest&&"undefined"!=typeof window.ActiveXObject){for(var b=["MSXML2.XMLHTTP.6.0","MSXML2.XMLHTTP.3.0","MSXML2.XMLHTTP","Microsoft.XMLHTTP"],c=0;c<b.length;c++){var d=b[c];try{return new window.ActiveXObject(d),a.o=d}catch(e){}}throw Error("Could not create ActiveXObject. ActiveX might be disabled, or MSXML might not be installed");}return a.o};
Cw=function(a){g.qf.call(this);this.headers=new Fl;this.M=a||null;this.A=!1;this.K=this.g=null;this.V="";this.o=0;this.D="";this.B=this.P=this.J=this.O=!1;this.C=0;this.F=null;this.ca="";this.ba=this.G=!1};
Dw=function(a,b){a.C=Math.max(0,b)};
lga=function(a){return g.sc&&g.kc(9)&&g.oa(a.timeout)&&g.t(a.ontimeout)};
mga=function(a){return"content-type"==a.toLowerCase()};
Gw=function(a,b){a.A=!1;a.g&&(a.B=!0,a.g.abort(),a.B=!1);a.D=b;a.o=5;Ew(a);Fw(a)};
Ew=function(a){a.O||(a.O=!0,a.dispatchEvent("complete"),a.dispatchEvent("error"))};
Jw=function(a){if(a.A&&"undefined"!=typeof Hw)if(a.K[1]&&4==Iw(a)&&2==a.getStatus())a.getStatus();else if(a.J&&4==Iw(a))g.fg(a.ww,0,a);else if(a.dispatchEvent("readystatechange"),4==Iw(a)){a.getStatus();a.A=!1;try{var b=a.getStatus();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=0===b){var f=g.tg(String(a.V))[1]||null;if(!f&&pa.self&&pa.self.location)var k=pa.self.location.protocol,f=k.substr(0,k.length-1);e=!nga.test(f?
f.toLowerCase():"")}d=e}if(d)a.dispatchEvent("complete"),a.dispatchEvent("success");else{a.o=6;try{var l=2<Iw(a)?a.g.statusText:""}catch(m){l=""}a.D=l+" ["+a.getStatus()+"]";Ew(a)}}finally{Fw(a)}}};
Fw=function(a,b){if(a.g){Kw(a);var c=a.g,d=a.K[0]?g.y:null;a.g=null;a.K=null;b||a.dispatchEvent("ready");try{c.onreadystatechange=d}catch(e){}}};
Kw=function(a){a.g&&a.ba&&(a.g.ontimeout=null);g.oa(a.F)&&(g.gg(a.F),a.F=null)};
Iw=function(a){return a.g?a.g.readyState:0};
Lw=function(a){try{return a.g?a.g.responseText:""}catch(b){return""}};
oga=function(a,b,c,d){var e=new g.Ll("https://www.googleapis.com/youtube/v3/videos");g.Ul(e,"id",a);g.Ul(e,"part","snippet,status,statistics");g.Ul(e,"fields","items/id,items/snippet/title,items/snippet/channelId,items/status/privacyStatus,items/statistics/viewCount");null!=d&&(b=(0,g.A)(b,d),c=(0,g.A)(c,d));Mw(new Cw,e,b,c)};
pga=function(a,b,c,d){var e=new g.Ll("https://www.googleapis.com/youtube/v3/channels");g.Ul(e,"id",a);g.Ul(e,"part","snippet,statistics,brandingSettings");g.Ul(e,"fields","items/id,items/snippet/title,items/snippet/thumbnails/default/url,items/statistics/videoCount,items/brandingSettings/image/bannerImageUrl");null!=d&&(b=(0,g.A)(b,d),c=(0,g.A)(c,d));Mw(new Cw,e,b,c)};
Mw=function(a,b,c,d){g.Ul(b,"key","AIzaSyA-dlBUjVQeuc4a6ZN4RkNUYDFddrVLxrA");Dw(a,2E3);var e=new g.dm(a);im(e,a,"success",function(a){a=a.target;var b=a.g?g.jg(a.g.responseText):void 0;c(b||{});e.dispose();a.dispose()});
im(e,a,["error","timeout"],function(a){a=a.target;var b=null;0!=a.o&&(b=Error(ww(a.o)));d(b);e.dispose();a.dispose()});
a.send(b)};
Nw=function(a,b,c,d,e,f,k,l){f=void 0===f?window.Infinity:f;k=void 0===k?!1:k;Yi.call(this,a,l);this.C=0;this.K=f;this.ba=b;this.M=c;this.V=d;this.ca=e;this.da=!("csi.gstatic.com"!==this.M||!this.g.navigator||!this.g.navigator.sendBeacon);this.F={};this.g.performance&&this.g.performance.now||(this.F.dat=1);this.G={};this.O=!k;this.B=(0,g.A)(this.P,this);this.J=g.ya(this.g.setTimeout,this.B,1100);this.A=0;this.A=this.g.setTimeout(this.B,1E4);"complete"===this.g.document.readyState?this.g.setTimeout(this.B,
0):Th(this.g,"load",this.J);Th(this.g,"unload",this.B)};
Ow=function(a){var b=a.label+"."+Math.round(a.value).toString(36);a=Math.round(a.duration);0<a&&(b+="_"+a.toString(36));return b};
qga=function(a,b){var c=new Pi(void 0,"~");Qh(a.F,function(a,b){Ui(c,b,a)});
Qh(a.G,function(b,d){Ui(c,d,b);delete a.G[d]});
Qh(b,function(a,b){Ui(c,b,a)});
var d=Vi(c,a.ba,a.M,""+a.V+a.ca+"&");a.da&&a.g.navigator.sendBeacon(d,null)||Wh(a.g,d)};
Rw=function(){this.g=null;if((Hm(Fm(),21592081)||Hm(Fm(),21592082))&&!P.g()){this.g=new Nw(1,"https:","csi.gstatic.com","/csi?v=2&s=","ima",void 0,!0);if(Pw)var a=Pw;else{(a=Vh())?(a=a.master,a=Ph(a)?a:null):a=null;a=a||bi();var b=a.google_persistent_state_async;a=null!=b&&"object"==typeof b&&null!=b.S&&"object"==typeof b.S?Pw=b:a.google_persistent_state_async=Pw=new pca}var b=bi(),c=Vh(b);c?((b=c||Vh())?(c=b.pageViewId,g.u(b.clientId)&&(c+=b.clientId.replace(/\D/g,"").substr(0,6)),b=c):b=null,b=
+b):(b=ck(b).ht,(c=b.google_global_correlator)||(b.google_global_correlator=c=1+Math.floor(Math.random()*Math.pow(2,43))),b=c);c=rga[7]||"google_ps_7";a=a.S;var d=a[c];a=void 0===d?a[c]=b:d;Qw(this,"c",a);a=Im(Fm());E(g.F(a))||Qw(this,"e",a)}this.o="0"};
Sw=function(){var a=Rw.getInstance();a.g&&(a.g.rj(),a.g=null)};
Qw=function(a,b,c){a.g&&c&&(a.g.F[b]=c)};
Tw=function(a){var b=Rw.getInstance();if(b.g&&sga){var c=b.g,d=Zi();c.o&&c.Qn(new Xi(a,4,d,0));Hm(Fm(),21592082)&&(a=b.g,!a.A&&a.o&&a.O&&(a.A=a.g.setTimeout(a.B,Math.min(1E3<<a.C,6E4))))}};
tga=function(a,b){if(b){var c=/iu\=\/(\d+)\//.exec(Ga(b)),d=g.F((new g.Ll(b)).g.get("client"));a.o=c&&2==c.length?c[1]:E(d)?"0":d}else a.o="0"};
uga=function(a,b){this.o=a;this.g=b};
Uw=function(a){this.K=a;this.g=[];this.o=new g.dg(500);g.N(this,this.o);this.C=new g.dm(this);em(this.C,this.o,"tick",this.D,!1,this);g.N(this,this.C);this.B=1;this.J=!1;this.F=this.A=0;this.G=P.ca};
Vw=function(a){if(!a.o.enabled){a.D();a.o.start();var b=(0,g.G)();a.F=b;0===a.A&&(a.A=b)}};
Ww=function(a){var b=0,c=0,d=0;2<a.g.length&&(b=a.g[a.g.length-1].g-a.g[0].g,c=a.g[a.g.length-1].o-a.g[0].o);0<a.g.length&&(d=a.g[a.g.length-1].o);var e=-1,f=(0,g.G)()-a.A;a.A===a.F&&0<e&&(e=d/f);Ln(In.getInstance(),47,{t:a.J,lpp:a.B,wl:a.g.length,se:b,me:c,n:!1,am:!1,mt:d,opp:e,ose:f,mwl:a.G},!0)};
Xw=function(a){if(a&&a.items&&a.items.length){a=a.items[0];this.videoId=a.id;var b=a.statistics;b&&null!=b.viewCount&&(b=Xa(b.viewCount),this.Uf=(0,window.isNaN)(b)?-1:b);if(b=a.snippet)this.channelId=b.channelId,this.title=b.title;if(a=a.status)this.isListed="unlisted"!=a.privacyStatus}};
vga=function(a){return'<a target="_blank" href="'+Q(a.url)+'" class="fullslot-attribution-button">'+Q(a.text)+"</a>"};
wga=function(a){return'<div class="fullslot-autoclose">'+Q(a.yF)+"</div></div>"};
Yw=function(a){return""+Aa("Ad will close in {$xSeconds}",{xSeconds:Q(a.Eg)})};
Zw=function(a){g.qf.call(this);this.C=new g.dg(200);g.N(this,this.C);this.A=0;this.o=!1;this.O=a;this.K=new g.dm(this);this.K.X(this.C,"tick",this.TO)};
$w=function(a){a.C.stop();a.o=!1};
bx=function(a,b,c,d,e){Zw.call(this,b.g);this.G=b;this.F=c;this.J=this.G.g;this.g=a;this.B=this.D=null;g.R(this.g,vw(this.F));a=this.g;b=new et;b.skipOffset=new Wq(this.G.B,!1);this.B=new At(b,a);d&&d.text&&(d=Op(vga,d),this.g.appendChild(d));e?(e=this.g,d=Yw({Eg:ax(this.J)}),a=Op(wga,{yF:d}),g.ye(a,d),e.appendChild(a),e=a):e=null;this.D=e};
xga=function(a){var b=g.K("videoAdUiSkipButton",a.g);return b?g.rh(b,a.g):new g.Md(0,0)};
ax=function(a){a=Math.ceil(a);return"0:"+(10>a?"0"+a:""+a)};
ex=function(a,b,c,d,e){Zw.call(this,d);this.J=a;this.V=b;this.P=e;this.B=new g.dm(this);g.N(this,this.B);this.D=new Ms;g.N(this,this.D);this.M=new Ms;g.N(this,this.M);this.G=new Ms;g.N(this,this.G);(a=cx(c))?(c=a(c),b.appendChild(c),b=g.K("iv-endcap-action",c),this.B.X(this.D,"click",this.F),this.D.Hb(b),b=g.K("iv-endcap-text",c),this.B.X(this.M,"click",this.F),this.M.Hb(b),b=g.K("iv-endcap-image",c),this.B.X(this.G,"click",this.F),this.G.Hb(b),b=c):b=null;this.g=b?g.K("iv-endcap-countdown-inner",
b):null;null!=this.g&&g.bh(this.g,"stroke-dasharray","0 "+dx)};
cx=function(a){switch(a.bc()){case 1:return yga;case 4:return zga}return null};
yga=function(a){var b=Mq(a);a=0<fv(a,"action")?Uq(a):null;return Op(Kq,{headline:b.jd(),description:fr(b,"description"),image:Qq(b).getImageUrl(),action:a?hr(a):"",target:a?Tq(a)||fr(a,"link_url"):""})};
zga=function(a){var b=a.g();a=0<fv(a,"action")?Uq(a):null;return Op(Kq,{headline:b.jd(),description:ir(b),image:b.og().getImageUrl(),action:a?hr(a):"",target:a?Tq(a)||fr(a,"link_url"):""})};
Aga=function(){var a=Aa("Your video will play after this ad.");return Ho(""+('<div class="videoAdInterstitial"><p>'+a+"</p></div>"))};
fx=function(){g.M.call(this);this.A=Op(Aga);this.g=0};
gx=function(a){a.g&&(g.gg(a.g),a.o(g.y))};
hx=function(a,b,c,d,e,f,k,l,m,n,q,r,w,z,B){this.B=a;this.C=n;this.D=b;this.F=d;this.J=l;this.K=r;this.M=e;this.P=f;this.O=w;this.g=k;this.o=m;this.A=q;this.G=z;this.V=B};
ix=function(a){g.Me.call(this,a)};
jx=function(a){g.qf.call(this);this.bb=null;this.B=a;this.O=new Fl;this.K=-1;this.G=this.P=!1;this.F=""};
kx=function(a){this.paused=!1;this.mute=a.cj();this.volume=a.getVolume()};
lx=function(a,b,c,d){if(!c||null==a.O.get(b)){d&&!a.G&&(b="error");a.O.set(b,!0);a:{c=b;if(a.A&&a.A.g.A){if("click"==c)break a;"videoLearnMoreClicked"==c&&nu(a.B,new g.Me("click"))}d=Bga[c]||null;null!=d&&null!=a.g&&a.g.ws(d);nu(a.B,new g.Me(c))}a.dispatchEvent(b)}};
mx=function(a){0>a.K||a.P||!a.g.Zj(a.K)&&!a.g.ah()||!a.G||(a.P=!0,lx(a,"engagedview",!0,!0),a.dispatchEvent(new ix("viewCount")))};
nx=function(a){mx(a);if(P.g()){var b=a.B;if(!(Hl(b.o,"skip")||0>b.C)){for(var c=gp(b.A,"progress"),d=[],e=b.C;e<c.length;e++){var f=c[e];b.C=e+1;d.push(f.g)}0<d.length&&nu(b,new g.Me("progress"),d)}}lx(a,"complete",!0,!0)};
px=function(a){this.g=new Fl;a&&ox(this,a)};
qx=function(a){var b=typeof a;return"object"==b&&a||"function"==b?"o"+g.xa(a):b.substr(0,1)+a};
rx=function(a,b){a.g.set(qx(b),b)};
ox=function(a,b){for(var c=Jl(b),d=c.length,e=0;e<d;e++)rx(a,c[e])};
sx=function(a){qu.call(this,a);this.g=null;this.F=!1;this.B=new jx(this.Sb);this.bb=null;this.P=this.ca=this.G=!1;this.ba=this.D=1;this.A=null;this.V=new fx;this.J=new px;this.fa=!1;this.M=[];this.O=!1;this.o=this.C=null;this.da=!dn()&&P.g();this.K=!1;Hm(Fm(),324123001)&&(P.V=!0);Hm(Fm(),324123021)&&(P.V=!0);if(a=0<a.length?a[0]:null){var b=Rw.getInstance();Qw(b,"gqid",gs(a));Qw(b,"qqid",fq(a))}Cga(this)};
tx=function(a,b){var c=g.fg(function(){this.J.remove(c);b.call(this)},0,a);
rx(a.J,c)};
ux=function(a){a.C&&(g.Ke(a.C),a.C=null);g.Ke(a.Ha);a.Ha=null;g.Ke(a.B);g.Ke(a.Sb);a.P=!1};
vx=function(a){a.il();null!=a.o&&Ww(a.o);a.yb()?a.start():a.stop()};
Ega=function(a){if(!a.yb())return!1;var b=a.Qa.Cf();if(null==b)return!1;var c=a.ma(),d;if(d=c.M?c.M.g.xk()?c.M.g.Mq():c.M.gd():"")Dga(a,b,d);else if(xs(c)&&(d=c.ca,d=g.fb(d)?null:d[0],null!=d&&g.ua(cx(d)))){var e=1==d.bc();a.g=new ex(a.Ea,b,d,Es(c),e);a.Xa().X(a.g,"click",(0,g.A)(a.Pv,a,null));a.Ha&&ju(a.Ha,!0);a.Qa.nd()}null!=a.g&&(a.Xa().X(a.g,"timeUpdate",a.eA),a.Xa().X(a.g,"end",a.ZF),a.g.start(),xu(a,"video_card_endcap_impression"));return null!=a.g};
Dga=function(a,b,c){Ln(In.getInstance(),34,{evt:"start"},!0);var d=g.ge("DIV");g.R(d,"controls");var e=g.ge("DIV");g.R(e,"adDisplay");g.R(e,"endslate");e.innerHTML=c;(c=g.se(e)[0])&&g.bh(c,{margin:"0 auto"});(0,g.H)(c.getElementsByTagName("a"),function(a){var b=a.getAttribute("href");b&&this.Xa().X(a,"click",(0,g.A)(this.Pv,this,b))},a);
d.appendChild(e);e=new Wu;Vfa(e,Es(a.ma()));e.B=0;e.A=0;a.g=new bx(d,e,1,{},!0);a.Xa().X(a.g,"skip",a.Qv);b.appendChild(a.g.g);a.Qa.nd();a.Ha&&(Kfa(a.Ha),gu(a.Ha))};
xx=function(a,b){wx(a);null!=a.Ea&&a.Ea.Dq();a.la("complete");xu(a,b);a.Ga("instreamAdComplete");vx(a)};
wx=function(a){a.g&&(a.g.dispose(),a.g=null);a.Ha&&ju(a.Ha,!1);a.F=!1};
Ax=function(a,b,c){yx(a)&&c?zx(a,b).then(a.Iu,null,a):(a.Iu(),c&&zx(a,b))};
Fga=function(a){null!=a.Ea&&a.Ea.Cq();var b=Fm().g,b=b.g("use_forced_brand_precap_duration")?b.o("forced_brand_precap_duration_ms"):2E3;Mfa(a.Ha,b);var c=g.fg(function(){null!=this.Ea&&this.Ea.Dq();this.J.remove(c);this.V.show(this.Qa.pk(),(0,g.A)(this.Ea.play,this.Ea))},b,a);
rx(a.J,c)};
Bx=function(a,b,c,d){b=gp(b.g,c);g.fb(b)||(a[d]=b[0].g)};
Cx=function(a,b,c){b=c.getExtension(b);null!=b&&(Bx(a,b,"annotation_click","cta_annotation_clicked"),Bx(a,b,"annotation_close","cta_annotation_closed"),Bx(a,b,"annotation_start","cta_annotation_shown"))};
Gga=function(a,b){var c=vs(b)&&!b.ha?bs(b):null,d=b.isSkippable()&&!Pr(b),e=null!=a.Ha&&a.Ha.g.B,f=b.A,k=Vp(a.Ti());if(!k){var l=b.getExtension("AdSense");null!=l&&(k=l.isPharma())}var m=Fm().g,l=m.g("use_variable_load_timeout")?m.o("variable_load_timeout_ms"):a.Va.cf,n=gq(b);if(a.Ha){var q={};Cx(q,"AdSense",b);Cx(q,"dart",b);Cx(q,"DFP",b)}else q=null;var f=f?f.eo:!1,r=fq(b),w=a.Va.vj,m=m.g("legacy_autoplay_flag");var z=Zr(a.ma(),"endscreenClick");z=g.fb(z)?null:g.mg({endscreenClick:z});return new hx(n,
c,0,q,e,d,l,f,!1,r,w,k,m,z,yx(a))};
Cga=function(a){var b=0,c=0;(0,g.H)(a.ads,function(a){!wu(a)||P.g()&&0!=c||(c++,b+=a.getDuration())},a);
var d=1;(0,g.H)(a.ads,function(a){var b=a.C;b.Yf=c;wu(a)&&(b.g=d,b.A=d,d++)},a)};
Dx=function(a){var b=a.o;return b&&b.ga&&(b=b.F,!g.fb(b)&&b[0]instanceof rp)?b[0].Ze():$r(a)};
Fx=function(a,b){if(!wu(b))throw Zm(Ex);var c=b.g,d=c.C;if(null!=d)return d;var d=a.Ug(b),e=a.Ea.EA(d,a.Va.bitrate,a.Va.mimeTypes||[],null!=b&&!0&&(P.g()||a.Qa.Zm()||a.Qa.xq()||dn()));Hga(d,a.Va.bitrate,e,Ur(b));if(null!=e)return c.C=e;try{Iga(a,b)}catch(f){}throw Zm(Jga);};
Iga=function(a,b){if(In.getInstance().isLoggingEnabled()){var c=new px,d=!1;(0,g.H)(a.Ug(b),function(a){rx(c,a.g);"VPAID"==a.A&&(d=!0)},a);
var e=a.Ea.Zp(),e={aid:bs(b),mt:c.fb().join(","),smt:e.join(","),hvp:d,st:hs(b).join(",")};Ln(In.getInstance(),28,e)}};
Hga=function(a,b,c,d){if(!P.g())try{var e=(0,g.I)(a,function(a){return a.Lf}),f=(0,g.I)(a,function(a){return a.g});
a={};a.brs=e.join(",");a.mts=f.join(",");a.pubbr=b;a.selbr=null===c?-1:c.Lf;a.selmt=null===c?"":c.g;a.ic=!1;a.nat=!1;a.iyh=Mm(c.o)?"1":"0";a.as=d;Ln(In.getInstance(),22,a)}catch(k){}};
Gx=function(a){if(null!=a.A){var b=Rw.getInstance();Qw(b,"br",a.A.ih);Qw(b,"mt",a.A.g);Qw(b,"iyh",Mm(a.A.o)?"1":"0");Qw(b,"smb",a.Va.bitrate);if(a.Ea){var c=a.Ea.Hf();c&&Qw(b,"ps",c.width+"x"+c.height)}var c=a.A.Eb(),d=a.A.getHeight();null!=c&&null!=d&&Qw(b,"vs",c+"x"+d);a=a.A.F;E(g.F(a))||Qw(b,"vc",a)}};
Hx=function(a,b){b in a.M||(a.M.push(b),a.la(b))};
Kga=function(a){var b=a.ma(),c={};c.pubbr=a.Va.bitrate;c.ic=!1;c.nat=!1;if(null!=b){a=a.Ug(b);var d=b.g,d=d?d.C:null,e=(0,g.I)(a,function(a){return a.Lf});
a=(0,g.I)(a,function(a){return a.g});
c.brs=e.join(",");c.mts=a.join(",");c.as=Ur(b);null===d?(c.selbr=-1,c.selmt="",c.iyh="0",c.murl=""):(c.selbr=d.Lf,c.selmt=d.g,c.iyh=Mm(d.o)?"1":"0",c.murl=d.o)}Ln(In.getInstance(),45,c)};
Jx=function(a,b,c){Ix(a,c);a.il();a.yb()?(an(a,b,c),a.start()):(bn(a,b,c),a.stop())};
Ix=function(a,b){var c=Zm(Kx,b),c=bq(c,a.ma(),a.Ea),d=Vr(a.ma());Vm(d,c)};
Lx=function(a){if(P.o||P.g()){var b=Dx(a.ma());null!=b&&Qm(b);a.la("click")}else a.K&&a.la("click")};
Mx=function(a,b){if(Mb(Lga,b)){var c=a.Xa();em(c,a.B,b,a.aA,!1,a)}};
Nx=function(a){if(!a.O){var b=a.ma(),c=b.D;if(Is(b)&&!P.g()&&!a.Qa.Zm()&&c){var b=a.Ea.getCurrentTime(),d=a.Ea.getDuration(),e=new g.Ll("//s.youtube.com/s");g.Ul(e,"ns","yt");g.Ul(e,"el","adunit");g.Ul(e,"docid",c);g.Ul(e,"eurl",window.document.URL);g.Ul(e,"len",d.toFixed(2));g.Ul(e,"tv","1");g.Ul(e,"ps","trueview-instream");g.Ul(e,"st",b.toFixed(2));g.Ul(e,"et",b.toFixed(2));g.Ul(e,"rt",b.toFixed(2));Rm(e.toString());a.O=!0}}};
Mga=function(a){var b=a.ma().P;if(null!=b){var b=b.videoId,c=a.Va.Ei;if(E(g.F(b)))b=null;else{var c=new g.Ll((null!=c?c:"//www.youtube.com/")+"watch"),d=c.g;d.set("v",b);Ql(c,d);c.J="action=share";b=c.toString()}null!=b&&(Qm(b),a.NA())}};
Nga=function(a){a=Ox(a)||Px(a);null!=a&&Sm(a,"sharebuttondisplayed")};
Ox=function(a){a=a.ma().getExtension("AdSense");return null!=a?new g.Ll(a.B):null};
Px=function(a){if(a=a.ma().g)if(a=op(a,"start"),!g.fb(a))return new g.Ll(a[0].g);return null};
Oga=function(a){var b=a.ma(),c=b.P;null!=c&&(b=Tp(c.videoId,null!=Cs(b),a.Va.Ei),null!==b&&(a.Ea.pause(),Qm(b)))};
Qx=function(a){tx(a,function(){this.la("skip");vx(this)})};
zx=function(a,b){return g.Uf(Pga(a,b).then(a.uR,null,a).then(a.ZQ,null,a).then(a.tR,null,a).then(a.NF,null,a),g.y)};
Pga=function(a,b){return new g.Kf(function(a,d){oga(b,function(b){b=new Xw(b);this.yb()&&this.ma().D==b.videoId?a(b):d()},function(){d()},this)},a)};
Rx=function(a){return a.yb()&&null!=a.ma().P&&a.ma().P.isListed};
Sx=function(a){var b=a.ma().ka;if(Rx(a)&&null!=b){var c=a.Va.Ei;b=g.F(b.channelId);c=E(b)?null:(null!=c?c:"//www.youtube.com/")+"channel/"+(g.Da(b,"UC")&&24==b.length?b:"UC"+b);null!==c&&(a.Ea.pause(),Qm(c))}};
yx=function(a){if(Fm().g.g("website_actions_holdback"))return!1;a=a.ma();if(!a||!a.D)return!1;var b=g.$a(a.B,function(a){return 4==a.bc()&&!!dv(ps(a),"show_in_cta",void 0)});
return P.g()&&Is(a)&&null!=b};
Qga=function(a,b,c){var d=a.yb()?a.ma().D:null;a=a.ma();if(!a||!d)return b;a=g.$a(a.B,function(a){return 4==a.bc()&&!!dv(ps(a),"show_in_cta",void 0)});
if(!a)return b;var d=a.g();var e=Uq(a);a=Ha(e&&Tq(e)||"");if(Fm().g.g("website_actions_suppress_advertiser_supplied_text")){e=" ";var f=Ha(c.authorName)}else e=Ha(e&&hr(e)||" "),f=Ha(d.jd()||c.authorName);var k=Ha(ir(d)||"");c=Ha(d.og().getImageUrl()||c.channelIconThumbnailUrl);c='<card type="TYPE_WEBSITE"><action target="'+a+'" title="'+e+'" type="TYPE_EXTERNAL"/><placement hide_in_drawer="true" show_in_cta="true"/><website_card headline="'+f+'" description="'+k+'"><icon image_url="'+c+'"/></website_card></card>';
d=/(<\s*Extension\s+type\s*=\s*"\s*InfoCards\s*"\s*>)/i;return E(b)?b+'<Extension type="InfoCards">'+c+"</Extension>":b.replace(d,"$1"+c)};
Tx=function(a){g.qf.call(this);this.sessionId=a||Ua();this.o=[]};
Ux=function(a,b,c,d,e){g.Me.call(this,a);this.Md=b;this.Mf=c;this.Pw=d;this.A=e};
Vx=function(a,b){Tx.call(this,b);this.A=a;this.kf=null;this.B=new g.dm(this);this.logger=null;this.B.X(ee(),"message",this.receive)};
Wx=function(a){if(null==a||!g.u(a)||!g.Da(a,"ima://"))return null;a=a.substr(6);try{return g.jg(a)}catch(b){return null}};
Rga=function(a,b,c,d){var e={};e.name=b;e.type=c;null!=d&&(e.data=d);e.sid=a.sessionId;e.channel=a.A;return"ima://"+g.mg(e)};
Xx=function(a,b){if(null==b)return!1;var c=b.channel;if(null==c||c!=a.A)return!1;c=b.sid;return null==c||"*"!=a.sessionId&&c!=a.sessionId?!1:!0};
Yx=function(a,b){g.Me.call(this,"vpaidEvent");this.sessionId=b};
Zx=function(a){qu.call(this,a);this.da=this.O=this.Sc=!1;this.G=[];this.C=Ua();this.bb=this.g=null;this.o=!0;this.K=-1;this.J=new g.dg(500);this.V=this.F=-1;this.B=1;this.ca=this.ba="";this.P=this.M=this.D=!1};
ay=function(a){var b=Yr(a.ma());P.g()&&(b=Sga(a,b));var c=g.F($r(a.ma())),d=a.ma();if(wu(d)){var e=d.g,f=tp(e,"javascript");null!=f&&(e.C=f)}d=Fs(d);c={desiredBitrate:a.Va.bitrate,creativeData:b,viewMode:a.Xc,clickThroughUrl:c,adUrl:d,volume:a.B};d.match("//s0.2mdn.net/instream/html5/survey/survey.html")&&0<=b.indexOf("yt_override")&&null!=a.Va.surveyCreativeData&&(c.creativeData=a.Va.surveyCreativeData);$x(a,"initAd",c);(0,g.H)(a.G,function(a){$x(this,a.type,a.params)},a);
a.Sc=!0;a.G=[]};
by=function(a,b,c){c=c||null;a.Sc?$x(a,b,c):a.G.push({type:b,params:c})};
$x=function(a,b,c){c=c||{};c.session=a.C;c.type=b;cy()?window.parent.postMessage(g.mg(c),"*"):null!=a.A.contentWindow&&a.A.contentWindow.postMessage(g.mg(c),"*")};
Uga=function(a,b){var c={};b=Pa(b);var d;b.length?d=b.split(/\s+/):d=[];(0,g.H)(d,function(a){c[a]=!0});
g.Ib(Tga,function(a,b){Fm().g.g(b)&&(c[a]=!0)},a);
return g.Ob(c).join(" ")};
Sga=function(a,b){var c=g.nr(b),d=a.ma().getExtension("why_this_ad");if(null!=d){var e=d.o;e&&3==e.length&&(0,g.H)(c.firstChild.childNodes,function(a){a.setAttribute("ad_settings_text_prefix",e[0]);a.setAttribute("ad_settings_text_link",e[1]);a.setAttribute("ad_settings_text_suffix",e[2])},a)}return or(c)};
dy=function(a,b,c,d){d=Zm(b,c,d);var e=bq(d,a.ma()),f=Vr(a.ma());Vm(f,e);b.message=d.ud();bn(a,b,c)};
gy=function(a,b){if(g.u(b.type))switch(b.type){case "friendlyReady":ay(a);break;case "videoCall":switch(b.func){case "load":case "play":a.Qa.rg();a.ca!=b.src&&(a.ca=b.src,a.g.load(b.src,b.mimetype));a.g.play();break;case "pause":a.g.pause()}break;case "returnDuration":a.F=b.duration;break;case "returnRemainingTime":a.K=b.remainingTime;break;case "AdClickThru":a.Ga("click");a.la("click");break;case "AdDurationChange":a.F=b.duration;a.K=b.remainingTime;a.ma().g.Sa=a.F;a.la("durationChange");break;case "AdError":dy(a,
mw,Error(b.message));a.stop();break;case "AdExpandedChange":a.la("expandedChanged");break;case "AdImpression":var c=a.ma();g.fb(Xr(c))||a.rd(c);xu(a,"impression");a.M=!0;ey(a,51);break;case "AdLinearChange":c=b.isLinear;!a.o&&c?(a.la("contentPauseRequested"),by(a,"becameLinear")):!c&&a.o&&(a.la("contentResumeRequested"),by(a,"becameNonlinear"),by(a,"getAdRemainingTime"),by(a,"getAdDuration"));a.o=c;var d=a.ma();d.Za=!0;d.sa=c;a.la("linearChanged");break;case "AdLoaded":g.gg(a.V);a.O=!0;d=b.companions;
c=a.ma();g.fb(Xr(c))&&(d=cw(d,c.g.g),g.fb(d)||Jr(c,d));fy(a);xu(a,"loaded");break;case "AdPaused":a.D=!0;xu(a,"pause");break;case "AdPlaying":a.D=!1;xu(a,"resume");break;case "AdRemainingTimeChange":a.K=b.remainingTime;c=a.ma().getDuration();d=c-a.Nc();Du(a,d,c);break;case "AdSkipped":xu(a,"skip");a.stop();break;case "AdSkippableStateChange":xu(a,"skippableStateChanged");break;case "AdStarted":a.Ga("creativeview");ey(a,52);break;case "AdStopped":a.Ga("stop");a.stop();break;case "AdUserAcceptInvitation":a.o?
a.Ga("acceptinvitationlinear"):a.Ga("acceptinvitation");break;case "AdUserMinimize":a.Ga("collapse");break;case "AdUserClose":xu(a,"userClose");break;case "AdVideoComplete":a.M&&a.P||(c={},c.aic=a.M,c.avc=a.P,ey(a,56,c));xu(a,"complete");break;case "AdVideoFirstQuartile":xu(a,"firstquartile");break;case "AdVideoMidpoint":xu(a,"midpoint");break;case "AdVideoStart":a.Ga("start");a.la("start");a.P=!0;break;case "AdVideoThirdQuartile":xu(a,"thirdquartile");break;case "AdVolumeChange":c=b.volume;c!=a.B&&
a.la("volumeChange",{volume:c});0==c&&0!=a.B?(a.Ga("mute"),a.la("mute")):0==a.B&&0!=c&&a.Ga("unmute");a.B=c;a.g.setVolume(c);break;case "AdInteraction":c={};c.id=b.id;a.la("interaction",c);break;case "Ping":Rm(b.url)}};
hy=function(a,b){cy()||$x(a,"wrapperCall",{messageType:b})};
fy=function(a){a.O&&a.da&&(by(a,"startAd"),a.J.start(),a.o||(by(a,"becameNonlinear"),by(a,"getAdRemainingTime")),by(a,"getAdDuration"))};
ey=function(a,b,c){try{c=c||{};c.dn=a.ba;c["if"]=cy();c.pid=Rw.getInstance().o;var d=es(a.ma()).join();c.xy=d;Ln(In.getInstance(),b,c,!0)}catch(e){}};
cy=function(){return 2==P.F};
iy=function(){qu.call(this,[]);this.bb=null;this.Td=this.Ud=-1;this.F=!1};
ky=function(a,b,c,d){if(a.g){var e=a.g,f=a.Xa();em(f,e,jy,a.dispatchEvent,!1,a);f=a.Xa();em(f,e,"companionBackfill",a.dispatchEvent,!1,a);f=a.Xa();em(f,e,"adError",a.mz,!1,a);f=a.Xa();em(f,e,"allAdsCompleted",g.y,!1,a);f=a.Xa();em(f,e,"contentPauseRequested",a.vz,!1,a);f=a.Xa();em(f,e,"contentResumeRequested",a.Sr,!1,a);f=a.Xa();em(f,e,"userClose",a.ki,!1,a);f=a.Xa();em(f,e,"autoClose",a.ji,!1,a);a.g.zg(a.Gd);a.g.Qc(b,c,d)}};
ly=function(a){a.g&&(a.g.destroy(),a.g=null);a.Qa&&a.Qa.hide();g.Ke(a.gc);a.gc=null};
ny=function(a,b,c){iy.call(this);this.A=c;this.o=null;this.C=this.D=this.B=!1;this.g&&ly(this);this.g=b;my(this,b)};
py=function(a,b,c){var d=(0,g.A)(function(a){an(this,Vga,c);try{var b=oy([a[0]]);if(b)var d=b;else throw Error("Ads manager creation failure, failed to determine ad type.");my(this,d);a=d;try{this.g&&ly(this),this.g=a,ky(this,this.Qa,this.content,this.Va),this.F&&this.g.fj(),this.g.Ab(this.Ud,this.Td,this.Xc),this.g.init(this.Xc),this.start()}catch(m){d=m;var e=a.Kb();ks(e);py(this,ls(e),Error(d.ud()))}}catch(m){e=m,bn(this,e.ud(),e.yk)}},a);
a=(0,g.A)(function(){this.la("contentResumeRequested");bn(this,Wga,c);this.destroy()},a);
null!=b?pq(b,d,a):a(null)};
my=function(a,b){a.o&&a.o.dispose();a.o=new g.dm(a);g.N(a,a.o);em(a.o,b,"start",a.lM,!1,a)};
qy=function(a){qu.call(this,[]);this.bb=null;this.o=a;this.A=0;this.g=this.o[this.A];this.B=this.D=this.C=null;this.Td=this.Ud=-1;this.F=!1;Xga(this)};
ry=function(a,b,c,d){if(a.g){a.C=new g.dm(a);var e=a.g,f=a.C;em(f,e,jy,a.dispatchEvent,!1,a);em(f,e,"start",a.MH,!1,a);em(f,e,"companionBackfill",a.dispatchEvent,!1,a);em(f,e,"adError",a.kM,!1,a);em(f,e,"allAdsCompleted",g.y,!1,a);em(f,e,"contentPauseRequested",a.oh,!1,a);em(f,e,"contentResumeRequested",a.Qf,!1,a);em(f,e,"userClose",a.ki,!1,a);em(f,e,"autoClose",a.ji,!1,a);a.g.Qc(b,c,d)}};
Xga=function(a){var b=0,c=a.o.length;(0,g.H)(a.o,function(a){b+=a.Se().getDuration()},a);
var d=1;(0,g.H)(a.o,function(a){a=a.Se().C;a.Yf=c;a.g=d;a.A=d;d++},a)};
ty=function(a,b,c){a.A+1>=a.o.length?bn(a,Kx,c.yk):(an(a,Kx,c.yk),sy(a,b))};
sy=function(a,b){if(a.g===b)if(uy(a),a.A++,a.A<a.o.length)try{a.g=a.o[a.A],a.g===a.B?(a.C=a.D,a.B=null,a.D=null,a.Qa.hide(),a.Qa.wq()):(ry(a,a.Qa,a.content,a.Va),a.g.Ab(a.Ud,a.Td,a.Xc),a.g.init(a.Xc)),a.start()}catch(c){ty(a,a.g,c)}else a.la("contentResumeRequested"),a.destroy()};
uy=function(a){a.C&&(a.C.dispose(),a.C=null);a.g&&(a.g.destroy(),a.g=null);a.Qa&&a.Qa.hide()};
Yga=function(a){return'<div class="close-padding"><a class="close-button" title="'+Q(a.close)+'" role="button" tabindex="0"></a></div>'};
Zga=function(){return'<div class="recall-button"></div>'};
$ga=function(a){return'<a target="_blank" href="'+Q(a.url)+'" class="attribution-button">'+Q(a.text)+"</a>"};
vy=function(a,b){this.K=a;this.J=g.ge("DIV",{"class":"controls"});this.g=g.ge("DIV",{"class":"adDisplay"});this.ba=b||g.y;this.Ef=new g.dm(this)};
wy=function(a){var b=g.ge("DIV",{"class":"ima-container"});Ss(b,"opacity 0.4s");a.Ef.X(b,"mouseover",a.xH);a.Ef.X(b,"mouseout",a.PR);b.appendChild(a.J);a.J.appendChild(a.g);return b};
yy=function(a){var b=window.document.createEvent("Event");b.initEvent("creativeview",!0,!0);a.dispatchEvent(b)};
zy=function(a){qu.call(this,a);this.containerElement=null;this.K=g.ge("DIV",{style:"display:none;position:absolute;top:0;left:0;bottom:0;right:0;z-index:2000"});this.B=!1;this.F=[]};
Ay=function(a,b){var c=Xda(b);(0,g.H)(c,function(a){ip(this.Sb.A,"click",a)},a)};
By=function(a,b){var c=bq(b,a.ma()),d=Vr(a.ma());Vm(d,c)};
Cy=function(a,b,c,d,e,f,k){g.qf.call(this);this.o=this.J=0;this.G=a;this.Dc=b;this.ka=c;this.D=null;this.ib=d;this.ba=f;this.ca=P.B;this.M=this.C=this.F=this.g=null;this.Td=this.Ud=-1;this.fa="normal";this.V=null;this.B=e;this.A=[];this.ga=this.O=this.ha=this.P=!1;this.da=k;this.bb=null;aha(this)};
Dy=function(a,b,c,d){a.Ud=b;a.Td=c;null!=d&&(a.fa=d);null!=a.g&&a.g.Ab(b,c,d)};
aha=function(a){(0,g.H)(a.G,function(a){bha(a)})};
Ey=function(a){return a.J<a.G.length&&null!=a.G[a.J]};
cha=function(a,b){var c;if(c=P.g()&&!g.fb(b)&&0==a.Dc)c=b[0],c=null!=c&&null==Fs(c)&&zs(c,"nonlinear");return c?(c=fs(b[0]),"ADSENSE"==(0<c.length?c.pop():Ur(b[0])).toUpperCase()):!1};
Ky=function(a){!Ey(a)||2<=a.A.length-a.o?a.ha||(Gy(a),a.Tf()&&Hy(a,a.o)&&Iy(a,a.o)&&Jy(a,a.o),a.ha=!0,a.dispatchEvent("adBreakInitialized")):Fy(a)};
Fy=function(a){var b=a.G[a.J];em(a.K,a.ib,"adsLoaderSdkAdLoaded",a.kz,!1,a);P.B="on_master_ad";dha(a.ib,b.o,b)};
Gy=function(a){null==a.Dc||(0,g.Ek)(a.A,function(a){return!a.isBumper()})||(a.A=(0,g.re)(a.A,function(a){return!(a.isBumper()&&!a.A)}))};
Hy=function(a,b){if(b<a.A.length){var c=a.A[b];g.fb(c.g)?c=!1:(c=c.g[0],c=null!=c?!fo(Lr(c),"rm"):!1)}else c=!1;return c};
Ry=function(a){if(Hy(a,a.o)){var b=a.A[a.o];try{a.O?Ly(a,a.g):a.Tf()&&Iy(a,a.o)?(null===a.C&&Jy(a,a.o),My(a),a.g=a.C,a.F=a.M,a.C=null,a.M=null,a.B.wq()):(My(a),a.F=new g.dm(a),a.g=Ny(a,b,a.F),Ly(a,a.g));null!=a.D&&(a.D.dispose(),a.D=null);if(Oy(a.g)){var c=a.Kb();if(null==c||!As(c)){var d=a.g.ma().g;if(null!==d){var e=d.Fa;0>=e&&!a.ba.Su||(0>=e&&(e=15),a.D=new g.dg(1E3*e),jm(a.F,a.D,"tick",a.BO,a))}}}if(Oy(a.g))a.dispatchEvent("contentResumeRequested"),a.B.nd(),a.g.start(),null!=a.D&&a.D.start();
else{var f=a.g;if(null!=f&&f instanceof sx)a.B.rg(),a.g.start();else{var k=a.g;if(null!=k&&k instanceof Zx){var l=a.g;a.B.nd();l.Wb()?cy()||a.B.rg():a.dispatchEvent("contentResumeRequested");a.g.start()}else{var m=a.g;if(null!=m&&(m instanceof ow||m instanceof iw))a.B.nd(),a.g.Wb()||a.dispatchEvent("contentResumeRequested"),a.g.start();else{var n;if(!(n=Py(a.g))){var q=a.g;n=null!=q&&q instanceof ny}if(n)a.g.start();else throw Error("Unknown ads manager type.");}}}}a.Tf()&&Hy(a,a.o+1)&&Iy(a,a.o+1)&&
1==Qy(a)&&Jy(a,a.o+1)}catch(r){a.o++,Ry(a)}Ey(a)&&Fy(a)}else a.dispatchEvent("contentResumeRequested"),Sy(a)};
Ly=function(a,b){if(null===b)throw Error("Ads manager must be constructed before initialization");b.init(a.fa);null!=a.V&&b.setVolume(a.V)};
Ny=function(a,b,c){b=Ty(a.ib.A,b.g);var d=new qm(a.B,a.Tf());b.zg(a.da);em(c,b,jy,a.lz,!1,a);em(c,b,"companionBackfill",a.lz,!1,a);em(c,b,"adError",a.iM,!1,a);em(c,b,"allAdsCompleted",g.y,!1,a);em(c,b,"contentPauseRequested",a.oh,!1,a);em(c,b,"contentResumeRequested",a.Qf,!1,a);em(c,b,"userClose",a.ki,!1,a);em(c,b,"autoClose",a.ji,!1,a);b.Qc(d,{currentTime:0},a.ba);b.Ab(a.Ud,a.Td,a.fa);return b};
My=function(a){a.B.hide();null!=a.D&&(a.D.dispose(),a.D=null);null!=a.F&&(a.F.dispose(),a.F=null);null!=a.g&&(a.g.destroy(),a.g=null)};
Uy=function(a){null!=a.M&&(a.M.dispose(),a.M=null);null!=a.C&&(a.C.destroy(),a.C=null)};
Py=function(a){return null!=a&&a instanceof qy};
Oy=function(a){return null!=a&&a instanceof zy};
Sy=function(a){a.P=!1;a.dispatchEvent("allAdsCompleted")};
Qy=function(a){return null===a.g||g.fb(a.g.ads)?0:a.g.ads.length};
eha=function(a,b,c){if("loaded"==b||"start"==b||"adMetadata"==b||"companionBackfill"==b||"firstquartile"==b){var d=0,e=0;(0,g.H)(a.A,function(a,b){var f=a.g;-1!=(0,g.db)(f,c)&&a.isBumper();d+=f.length;b<this.o&&(e+=f.length)},a);
b=c.C;var f=e+b.A;b.Yf=d+(a.G.length-a.J);b.g=f;b.B=a.ka;b.o=a.Dc}};
Jy=function(a,b){var c=a.A[b];a.M=new g.dm(a);a.C=Ny(a,c,a.M);Ly(a,a.C)};
Iy=function(a,b){if(0<=b&&b<a.A.length){var c=a.A[b].g[0];return null!=Fs(c)||null!=Gs(c)?!1:!0}return!1};
fha=function(a){this.o=a};
Vy=function(a){this.o=a;this.g=this.isBumper=!1;this.A=null};
bha=function(a){if(null!=a.o.g&&(a=g.tg(a.o.g)[6]||null)){var b=null;xg(a,function(a,d){if(null==b)switch(a){case "max_ad_duration":case "pmxd":b=d/1E3}})}};
Wy=function(){this.g=new Fl};
Xy=function(a,b,c){if((0,window.isNaN)(c)||!g.oa(c))throw Error("Incorrect time offset.");var d=[];Hl(a.g,c)&&(d=a.g.get(c,[]));(0,g.H)(b,function(a){null!=a&&g.ib(d,a)});
a.g.set(c,d)};
Yy=function(a,b){this.g=a;this.o=b};
hha=function(a){var b=new Wy;(0,g.H)(g.se(g.ue(a.g)),function(a){switch(a.nodeName){case "Preroll":a=Zy(this,a);Xy(b,a,0);break;case "Midroll":var c=tr(a,"timeOffset"),e=xr(c);if(-1==e)throw Ym($y,null,"timeOffset",g.F(c));a=Zy(this,a);Xy(b,a,e);break;case "Postroll":a=Zy(this,a);Xy(b,a,-1);break;default:throw Ym(az,null,a.parentNode.nodeName,a.nodeName);}},a);
if(0==b.g.Cb().length)throw Ym(gha);return b};
Zy=function(a,b){var c=[];(0,g.H)(g.se(b),function(a){switch(a.nodeName){case "Ad":var b=g.F(ur(a));if(!E(b)){a=tr(a,"bumper");var d=this.o.clone();d.g=b;b=new Vy(d);b.isBumper=null!=a;b.g="always"==a;g.ib(c,b)}break;default:throw Ym(az,null,a.parentNode.nodeName,a.nodeName);}},a);
return c};
bz=function(a){g.Me.call(this,a);this.g=this.A=null};
cz=function(){g.qf.call(this);this.currentTime=0};
ez=function(a,b,c){g.qf.call(this);c=c||new dz;this.o=a;this.D=c.F;this.J=c.D;this.O=c.C;this.K=c.g;this.M=c.A;this.F=c.o;this.G=c.B;this.C=!1;this.B=null;this.A=!1;this.g=iha(b)};
dz=function(){this.D=0;this.A=this.g=this.F=this.C=!1;this.B=this.o=5};
fz=function(a){this.g=a.Dc;this.C=g.xa(a);this.A=this.o=!1;this.rI=5==a.Ue();this.B=this.be=!1};
gz=function(a,b){return vb(a.g,b.g)};
hz=function(a){a.o.start();a.A=!0};
jha=function(a){if(a.A){var b=g.$a(a.g,function(a){return-1==a.g},a);
null!=b&&iz(a,!0,b)}};
iha=function(a){var b=[];(0,g.H)(a,g.ya(function(a,b){a(new fz(b))},g.ya(function(a,b){Bb(a,b,gz)},b)));
return b};
kha=function(a,b){for(var c=[],d=0;d<a.g.length;d++){var e=a.g[d];-1!=e.g&&e.g<=b&&g.ib(c,e)}return c};
jz=function(a,b){return cb(a,g.ya(function(a,b){return b.rI==a},b))};
lha=function(a){var b=[],c=jz(a,!1);c&&b.push(c);(a=jz(a,!0))&&Bb(b,a,gz);return b};
mha=function(a,b){for(var c=0;c<a.g.length;c++){var d=a.g[c];if(kz(a,d,a.J,b,!0,a.O)&&!a.g[c].o)return d}return null};
kz=function(a,b,c,d,e,f){return-1==b.g?f&&0<a.o.duration&&d>=a.o.duration-c:e&&d>=b.g-c&&d<b.g};
lz=function(a,b){var c=new bz("contentTrackingError");c.setDescription(b);a.dispatchEvent(c)};
iz=function(a,b,c){null!=c&&(c.o||(mz(a,"requestAds",c),c.o=!0),b&&!c.A&&(mz(a,"playAds",c),c.A=!0))};
nha=function(a,b){var c;a:{for(c=0;c<a.g.length;c++){var d=a.g[c];if(kz(a,d,-1==d.g?a.G:a.F,b,a.K,a.M)&&d.be&&!d.B){c=d;break a}}c=null}null==c?a.C&&(a.dispatchEvent(new bz("discardAdNotify")),a.C=!1):a.C||c.A||(mz(a,"adNotify",c),a.C=!0)};
mz=function(a,b,c){b=new bz(b);b.A=c.g;b.g=c.C;a.dispatchEvent(b)};
nz=function(a){cz.call(this);this.currentTime=a.currentTime;if(!("currentTime"in a)||(0,window.isNaN)(a.currentTime))throw Zm(Wn,null,"content","currentTime");this.duration="duration"in a&&!(0,window.isNaN)(a.duration)?a.duration:-1;this.o=a;this.g=new g.dg(250);this.A=new g.dm(this);em(this.A,this.g,"tick",this.B,!1,this)};
oha=function(){};
oz=function(a,b,c){if(g.fb(a))return null;a=(0,g.re)(a,function(a){var b=a.B;return"application/x-mpegurl"==g.F(a.g).toLowerCase()||"application/dash+xml"==g.F(a.g).toLowerCase()||"progressive"==b});
g.fb(c)||(c=(0,g.I)(c,function(a){return a.toLowerCase()}),a=(0,g.re)(a,function(a){return g.eb(c,g.F(a.g).toLowerCase())}));
if(!g.oa(b)||0>=b)b=gk()?500:1E3;return pha(a,b)};
pha=function(a,b){return qha(a,b)||rha(a,b)||sha(a,b)};
qha=function(a,b){var c=null;(0,g.H)(a,function(a){var d=a.ih,f=a.Lf;d>b||f<b||!(null==c||c.ih>d)||(c=a)});
return c};
rha=function(a,b){var c=null;(0,g.H)(a,function(a){var d=a.ih,f=a.Lf;f>b||(null==c||c.Lf<f?c=a:null!=c&&c.Lf==f&&c.ih>d&&(c=a))});
return c};
sha=function(a,b){var c=null;(0,g.H)(a,function(a){var d=a.ih,f=a.Lf;if(!(d<b))if(null!=c&&c.ih==d&&c.Lf<f)c=a;else if(null==c||c.ih>d)c=a});
return c};
pz=function(a){this.o=0;this.A=a||100;this.g=[]};
qz=function(a,b){if(b>=a.g.length)throw Error("Out of bounds exception");return a.g.length<a.A?b:(a.o+Number(b))%a.A};
rz=function(a){g.qf.call(this);this.g=a;this.V=new pz(4);this.A=0;this.P=this.B=this.Sc=this.F=!1;this.M=this.Hf();this.K=this.bj();this.ba=Mn();this.O=!1};
tz=function(a){a.Sc=!1;a.B=!1;a.F=!1;a.A=0;a.P=!1;a.V.clear();sz(a);g.Ke(a.C)};
uz=function(a){a.B||(a.B=!0,sz(a),a.dispatchEvent("start"),g.ua(a.g.getAttribute)&&a.g.getAttribute("playsinline"),un()||!g.mn||on(3)||gn()&&!ln(4)||a.Eq())};
vz=function(a){for(var b=a.g.buffered.length-1;0<=b;){if(a.g.buffered.start(b)<=a.g.currentTime)return a.g.buffered.end(b);b--}return 0};
sz=function(a){a.J&&(g.gg(a.J),a.J=null)};
xz=function(){g.qf.call(this);this.o=new wz;this.g=new g.dm(this);var a=tm();if(a){a:{if(Qb(a.g,"videoElementMockDuration")&&(a=a.g.videoElementMockDuration,g.oa(a)))break a;a=window.NaN}this.duration=a}};
tha=function(){var a=["video/mp4"],b=["video/ogg"],c=new xz;c.canPlayType=function(c){return g.eb(a,c)?"probably":g.eb(b,c)?"maybe":""};
c.width=0;c.height=0;c.offsetWidth=0;c.offsetHeight=0;return c};
uha=function(a){this.startTime=0;this.endTime=a};
wz=function(){this.length=0;this.g=[]};
yz=function(a,b,c,d){if(null==a||!g.we(g.Sd(a),a))throw Zm(Wn,null,"containerElement","element");this.C=a;this.o=this.g=null;this.B=b;this.F=!d;this.D=c||!1;this.A=null;this.g=g.ge("DIV",{style:"display:none;"});this.C.appendChild(this.g);this.F&&(a=tm(),um(a,"useVideoElementMock")?(a=tha(),b=g.ge("DIV",{style:"position:absolute;width:100%;height:100%;top:0px;left:0px;"}),g.za(b,a),a.Tj=g.ge("DIV",{style:"position:absolute;width:100%;height:100%;top:0px;left:0px;background-color:#000"}),a.cn=g.ge("P",
{style:"position:absolute;top:25%;margin-left:10px;font-size:24px;color:#fff;"}),a.Tj.appendChild(a.cn),b.appendChild(a.Tj),a.g.X(a,["loadeddata","playing","pause","ended"],a.cQ),a=b):a=g.ge("VIDEO",{style:"background-color:#000;position:absolute;width:100%;height:100%;",title:""+Aa("Advertisement")}),a.setAttribute("webkit-playsinline",!0),a.setAttribute("playsinline",!0),this.o=a,this.g.appendChild(this.o));this.B&&(a="display:none;position:absolute;width:100%;height:100%;",P.C||(a+="background-color:#000;"),
a=g.ge("DIV",{id:this.B,style:a}),this.g.appendChild(a));this.D&&(this.A=g.ge("DIV",{style:"position:absolute;width:100%;height:100%;"}),this.g.appendChild(this.A))};
zz=function(a,b,c,d){g.M.call(this);this.B=b||null;this.F="*";this.o=c||null;this.sessionId=null;this.channel=d||null;this.K=!!a;this.C=(0,g.A)(this.G,this);window.addEventListener("message",this.C)};
Az=function(a,b){"null"!=b.origin&&(a.o=a.F=b.origin);a.B=b.source};
Bz=function(a){zz.call(this,!0);this.sessionId=a;this.channel="remoteplayer";this.o="*";this.g={};this.A=[];this.D=!1};
Cz=function(a){a.D=!0;(0,g.H)(a.A,function(a){this.sendMessage(a)},a);
a.A.length=0};
vha=function(){};
Dz=function(a,b){this.g=a;this.C=new px;this.F=(0,g.A)(this.G,this);this.K=Math.floor(2147483646*Math.random())+1;this.o=b||new Bz(this.K);g.N(this,this.o);this.A=new g.dm(this);g.N(this,this.A);var c=(0,g.A)(a.play,a);this.o.g.play=c;c=(0,g.A)(a.load,a);this.o.g.load=c;c=(0,g.A)(a.pause,a);this.o.g.pause=c;c=(0,g.A)(this.D,this);this.o.g.listen=c;c=(0,g.A)(this.J,this);this.o.g.unlisten=c;c=(0,g.A)(this.B,this,"src");this.o.g.setSource=c;c=(0,g.A)(this.B,this,"muted");this.o.g.setMuted=c;c=(0,g.A)(this.B,
this,"volume");this.o.g.setVolume=c};
Gz=function(a){g.qf.call(this);this.P="ima-chromeless-video";var b=null;null!=a&&(g.u(a)?this.P=a:b=a);this.V=new g.dm(this);this.D=null;this.B=!1;this.ra=this.Hf();this.ka=this.bj();this.K=-1;this.fa=!1;this.F=-1;this.A=this.da=this.M=null;this.ca="";this.o=!1;this.ha=null!=b;this.sa=this.O=this.ga=this.g=null;this.C=void 0;this.J=this.oa=null;this.G=this.ua=0;this.ha?(this.o=!0,this.g=b,this.C=2):(a=(0,g.A)(this.OF,this),Ez?a():(Fz.push(a),a=g.ie("script"),a.src="https://www.youtube.com/iframe_api",
b=window.document.getElementsByTagName("script")[0],b.parentNode.insertBefore(a,b)))};
Iz=function(a,b,c){null!==b&&(a.ca=b,a.o?Hz(a,b,c):(a.M=b,a.da=c))};
Hz=function(a,b,c){var d={autoplay:"1"};P.C&&(d.dash=0);if(null!=a.A){var e=a.A.D;null!=e&&(d.agcid=e);e=a.A.B;null!=e&&(d.adformat=e);e=a.A.C;null!=e&&(d.ad_query_id=e);(e=a.A.F)&&(d.cta_conversion_urls=e);(e=a.A.G)&&(d.endscreen_ad_tracking_data=e);(e=a.A.V)&&(d.wait_for_vast_info_cards_xml=e);a.A.isPharma()&&(d.is_pharma=1);d.iv_load_policy=a.A.M?1:3;a.A.J&&(d.noiba=1);a.A.P&&(d.utpsa=1);a.A.O&&(d.autoplay="1");a.A.A&&g.Zb(d,a.A.A)}e=Sp(b);null===e?d.url_encoded_third_party_media="url="+(0,window.encodeURIComponent)(b)+
"&type="+(0,window.encodeURIComponent)(null===c?"":c):d.videoId=e;!P.g()&&(d.enabled_engage_types="3,4,5,6");a.B=!1;a.A&&a.A.o?(a.oa=d,a.g.preloadVideoByPlayerVars(a.oa)):a.g.cueVideoByPlayerVars(d);a.dispatchEvent("loaded")};
Jz=function(a){a.V.za(a.D,"tick",a.yz);null!=a.D&&(a.D.stop(),a.D=null)};
Kz=function(a){null!=a.Fa&&g.gg(a.Fa)};
Lz=function(a,b){g.qf.call(this);this.B=a;this.A=b;this.g={};this.o=new g.dm(this);this.o.X(ee(),"message",this.C);this.bb=null};
Nz=function(a,b,c,d){a.g.hasOwnProperty(b)||(c=new Vx(b,c),a.o.X(c,a.B,function(a){a=new Mz(a.type,a.Md,a.Mf,a.Pw,a.getOrigin(),b);this.dispatchEvent(a)}),c.kf=d,c.connect(),a.g[b]=c)};
Mz=function(a,b,c,d,e,f){Ux.call(this,a,b,c,d,e);this.g=f};
Pz=function(){var a=g.x("google.ima.gptProxyInstance",ee());if(null!=a)return a;g.dm.call(this);this.A=new Lz("gpt",!0);g.N(this,this.A);this.X(this.A,"gpt",this.D);this.bb=this.g=null;Oz()||ee().top===ee()||(this.g=new Lz("gpt",!1),g.N(this,this.g),this.X(this.g,"gpt",this.C))};
Oz=function(){return!!g.x("googletag.cmd",ee())};
Qz=function(){var a=g.x("googletag.console",ee());return null!=a?a:null};
Rz=function(){this.g=(0,g.G)()};
wha=function(a,b){var c=Array.prototype.slice.call(arguments),d=c.shift();if("undefined"==typeof d)throw Error("[goog.string.format] Template required");return d.replace(/%([0\-\ \+]*)(\d+)?(\.(\d+))?([%sfdiu])/g,function(a,b,d,l,m,n,q,r){if("%"==n)return"%";var e=c.shift();if("undefined"==typeof e)throw Error("[goog.string.format] Not enough arguments");arguments[0]=e;return Sz[n].apply(null,arguments)})};
Vz=function(a,b){g.qf.call(this);this.o=new g.dm(this);this.J=!1;this.K=Ua();this.G=new Fl;var c=this.K,d=(zba()?"https:":"http:")+wha("//imasdk.googleapis.com/js/core/bridge0.0.0_%s.html","en");a:{var e=window;try{do{try{if(0==e.location.href.indexOf(d)||0==e.document.referrer.indexOf(d)){var f=!0;break a}}catch(k){}e=e.parent}while(e!=e.top)}catch(k){}f=!1}f&&(d+="?f="+c);c=g.ge("IFRAME",{src:d+"#"+c,allowFullscreen:!0,style:"border:0; opacity:0; margin:0; padding:0; position:relative;"});im(this.o,
c,"load",this.kG);a.appendChild(c);this.A=c;c=this.G.get("*");null==c&&(c=new Vx(this.K,"*"),this.J&&(c.kf=xe(this.A),c.connect()),this.G.set("*",c));this.F=c;this.D=b;this.g=this.D.o;this.bb=this.B=this.C=null;this.o.X(this.F,"mouse",this.GG);this.o.X(this.F,"touch",this.WG);null!=this.g&&(this.o.X(this.F,"displayContainer",this.BG),this.o.X(this.F,"videoDisplay",this.TG),this.o.X(this.F,"preloadVideoDisplay",this.NG),this.o.X(this.g,g.Nb(Tz),this.Sf),this.o.X(this.g,Uz,this.Sf));c=ee();d=g.x("google.ima.gptProxyInstance",
c);null==d&&(d=new Pz,g.v("google.ima.gptProxyInstance",d,c))};
Wz=function(a,b){var c=g.mh(a.A),d=!!("TouchEvent"in window&&0<window.TouchEvent.length),e=(0,g.I)(b,function(a){return d?new window.Touch({identifier:a.identifier,target:this.A,clientX:a.clientX,clientY:a.clientY,screenX:a.screenX,screenY:a.screenY,pageX:a.pageX+c.x,pageY:a.pageY+c.y}):window.document.createTouch(window,this.A,a.identifier,a.pageX+c.x,a.pageY+c.y,a.screenX,a.screenY)},a);
return window.document.createTouchList.apply(window.document,e)};
Xz=function(a){a=a.playbackOptions;return new hx(a.adFormat,a.adSenseAgcid,0,a.ctaAnnotationTrackingEvents,a.showAnnotations,a.viewCountsDisabled,a.loadVideoTimeout,a.ibaDisabled,a.enablePreloading,a.adQemId,null,a.isPharma,a.useAutoplayFlag,a.endscreenAdTracking,a.waitForVastInfoCardsXml)};
Yz=function(a,b,c,d,e){if(!(e||null!=a&&g.we(g.Sd(a),a)))throw Zm(Wn,null,"containerElement","element");this.D=a;var f=null!=b||null!=d;Hm(Fm(),136961005)&&(P.M=!0);e=b?b:null;null!=e&&g.ua(e.getAttribute)&&e.getAttribute("playsinline");var k=f;e=!1;P.M?P.o||(vn()&&f||(k=!1),!k&&P.M&&!P.g()&&dn()&&(P.C=!0),!P.C&&dn()||tn()||(e=!0)):P.o||vn()&&f||(!P.C&&dn()||tn()||(e=!0),k=!1);this.F=k;this.M=e||k&&null!=d;P.o?a=null:(f=g.ge("DIV",{style:"position:absolute"}),a.insertBefore(f,a.firstChild),a=f);this.A=
a;this.g=this.F||!this.A||P.o||!dn()?null:new yz(this.A,null,!0);f=a=null;this.F?b?(a=new rz(b),f=b):d&&(a=new Gz(d)):this.g&&(a=new rz(this.g.o),f=this.g.o);k=null;f&&P.C&&e&&(k=new Dz(f));this.K=k;this.o=a;this.C=this.B=null;e=g.mn&&!on(4);a=gn()&&dn();this.g&&this.o&&this.A&&!this.F&&!tn()&&!e&&!a&&this.A&&(this.B=new yz(this.A,null,!0),this.C=new rz(this.B.o));this.G=this.o?c||null:null;this.O=null!=this.G;Ln(In.getInstance(),8,{enabled:this.F,yt:null!=d,customClick:null!=this.G});null===this.A?
(b=this.D,P.G=b):this.F&&b&&!g.ua(b.getBoundingClientRect)&&(b=this.D,P.G=b);this.J=null==this.A||P.o?null:new Vz(this.A,this)};
Zz=function(a){return a.O&&a.G?a.G:null!=a.g?a.g.A:null};
$z=function(a){this.g=a};
aA=function(a,b){g.Me.call(this,"adsManagerLoaded");this.g=a;this.A=b};
bA=function(a,b,c,d){a.g.Qc(new $z(b),c,d);return a.g};
cA=function(){};
dA=function(){g.qf.call(this);this.be=!1;this.impressionUrls=[]};
eA=function(a,b,c){g.Me.call(this,a);this.A=b||null;this.g=c||null};
gA=function(a,b){g.qf.call(this);this.g=a;this.D=!!b;this.B=fA(this);if(!this.B){var c=g.sc&&!g.kc("7")?"readystatechange":"load";this.o=g.af(this.g,c,this.C,!1,this);this.A=window.setInterval((0,g.A)(this.C,this),100)}};
hA=function(a){a.A&&(window.clearInterval(a.A),a.A=null)};
fA=function(a){var b=!1;try{if(a.D||!g.sc||g.kc("11"))var c=a.g,d=(c.contentDocument||c.contentWindow.document).body,b=a.D?!!d&&!!d.firstChild:!!d;else b="complete"==a.g.readyState}catch(e){}return b};
iA=function(){dA.call(this);this.F=[];this.C=!1;this.A="not_loaded";this.o=null;this.B=0;this.g=this.bb=null;this.G=new Rd};
jA=function(a){var b=["googletag","googletag.cmd"];return g.$a(a,function(a){return(0,g.Br)(b,function(b){return null!==g.x(b,a)})})||null};
kA=function(a){return a.be?(0,g.I)(a.F,function(a){return a.clone()}):[]};
xha=function(a){a=kA(a);if(null!=a)return(0,g.I)(a,function(a){return a.G})};
lA=function(a,b,c){var d=0,e=0;null!=b&&(b=new g.Ll(b.g),d=Number(b.g.get("pod")||0),e=Number(b.g.get("ppos")||0));if(null!=a.setVideoSession)try{a.setVideoSession(Jn.g,d,e,c)}catch(f){}};
yha=function(a,b){var c=mA(a);if(null!==c){lA(c,b,!0);try{c.refreshAllSlots()}catch(d){}}};
oA=function(a,b,c){a=nA(a);if(null!=a)try{a.setVideoContent(b,c)}catch(d){}};
pA=function(a,b){a.D=b;oA(a,"","");var c=mA(a);null===c||lA(c,null,!1)};
mA=function(a){null==a.g&&qA(a);return null!=a.g&&null!=a.g.googletag&&null!=a.g.googletag.companionAds?a.g.googletag.companionAds():null};
nA=function(a){null==a.g&&qA(a);return null!=a.g&&null!=a.g.googletag&&null!=a.g.googletag.pubads?a.g.googletag.pubads():null};
rA=function(a){a.o&&(a.o.stop(),a.o.za("tick",a.Kz,!1,a),a.o.dispose(),a.o=null)};
vA=function(a){if("retrieved"!=a.A&&"not_available"!=a.A&&null!==mA(a)){var b=mA(a);if(null!==b&&g.ua(b.getDisplayAdsCorrelator))try{var c=g.F(b.getDisplayAdsCorrelator())}catch(f){c=null}else c=null;switch(c){case "not_loaded":case "not_available":a.A=c;break;default:c=Number(c),(0,window.isNaN)(c)?a.A="not_available":(a.D=c,a.A="retrieved")}}(c=sA(a))||(c=tA(a)&&"not_available"==a.A);if(c){if(!a.J&&tA(a)){try{if(null==a.g)var d=[];else{var e=a.g.googleGetCompanionAdSlots();d=(0,g.I)(e,a.nR,a)}}catch(f){d=
[]}a.F=d;a.J=!0}a.be=!0;rA(a);sA(a)?a.dispatchEvent(new eA("companions_success")):uA(a)}else a.o||(a.B=(0,g.G)()+15E3,a.o=new g.dg(100),a.o.X("tick",a.Kz,!1,a),a.o.start())};
sA=function(a){return tA(a)&&"retrieved"==a.A};
tA=function(a){a.C||(qA(a),a.C=null!=a.g&&null!=a.g.googleGetCompanionAdSlots);return a.C};
qA=function(a){var b=g.He(a.G);try{a.g=jA([b,b.top])}catch(c){a.g=null}};
uA=function(a){a.dispatchEvent(new eA("companion_initialization_failed",Error("Partial or full service initialization failure.")))};
zha=function(a,b,c){var d=new gA(b,!0);d.Pb()?wA(a,c,b):jf(d,"ifload",g.ya(function(a){wA(this,c,a)},b),!1,a)};
wA=function(a,b,c){a.dispatchEvent(new eA("companion_slot_init",null,b));var d=c;"IFRAME"==c.tagName&&(d=(c.contentDocument||c.contentWindow.document).body);null!=d&&g.af(d,"click",(0,g.A)(a.cN,a,b),!1,a)};
xA=function(){g.qf.call(this);this.A=[]};
yA=function(){return new Kr("empty-ad","GDFP","GDFP",0,"",0,0,0,0,[],[],[],[],new Fl)};
zA=function(a){xA.call(this);this.g=a;this.G=this.bb=null;this.F=!1;this.B=null;this.C=new g.dm;em(this.C,this.g,["companions_success","companion_initialization_failed"],this.vP,!1,this);em(this.C,this.g,"companion_display_error",this.eN,!1,this);em(this.C,this.g,["companion_slot_init","companion_click"],this.aN,!1,this);this.g.be?this.F=!0:this.g.initialize()};
BA=function(a){var b=a.B;a.B=null;if(null!=a.g)if(g.fb(a.A))AA(a,Error("Companion slots not available."));else if(null!=b){var c=Aha(a,b);a.g.rd(a.A);if(0<c.length&&b.Ia){a=a.g;var d;if(d=0!=c.length)d=hs(b),d="GDFP"==(cs(d[0])&&1<d.length?d[1]:d[0]);if(d){d=[];for(var e=0;e<c.length;e++)d.push(c[e].J);b=b.A;c=mA(a);if(null!==c){lA(c,b,!1);try{c.notifyUnfilledSlots(d)}catch(f){}}}}}else AA(a,Error("Invalid master ad."))};
AA=function(a,b){a.dispatchEvent(new oo("companion_display_error",b))};
Aha=function(a,b){var c=[],d=[];(0,g.H)(a.A,function(a){ro(a);(0,g.Ek)(a.G,function(d){a:{d=ms(b,d.width,d.height);if(!g.fb(d)&&(d=Bha(d,c),null!=d)){var e=d.o;if(null!=e&&0!=a.J.indexOf(e)){d=!1;break a}e=d.g.M;pb(e,Zr(b,"companionClick"));var f=Zr(b,"companionImpression"),k=P.g()&&"Html"==d.g.O&&d.B;c.push(d);if(k)qo(a,d.Gc(),d.Eb(),d.getHeight(),f);else{var k=d.gd(),q=d.Eb(),r=d.getHeight();d="IFrame"!=d.g.O;a.F=k;a.g=null;a.B=q;a.o=r;a.A=d;a.D=f||[];a.C=e||[]}d=!0;break a}d=!1}return d},this)||
d.push(a)},a);
var e=CA(b);a.D=DA(e,c);a.D||(0,g.H)(a.A,function(a){ro(a)},a);
return d};
DA=function(a,b){if(null==a)return!0;var c=a.g;return"all"==a.o?Cha(c,b):"any"==a.o?Dha(c,b):!0};
CA=function(a){return null==a||null==a.g||(0,window.isNaN)(a.g.g)?null:g.$a(ys(a,!0),function(a){a=a.g;return g.fb(a)?!1:(0,window.isNaN)(a[0].g.g)?!1:a[0].g.g==a[0].Xp()})};
Cha=function(a,b){return(0,g.Br)(a,function(a){return g.eb(b,a)})};
Dha=function(a,b){return(0,g.Ek)(a,function(a){return g.eb(b,a)})};
Bha=function(a,b){return g.$a(a,function(a){return!g.eb(b,a)})};
EA=function(a,b){this.B=a;this.o=b;this.g=this.bb=null};
Eha=function(a){var b=[],c=sr(a,"vmap:Extensions")[0];if(c){var d;vr(c,"vmap:Extension",function(a){"vmap:YTBreakTime"==c.getAttribute("type")&&(d=a)});
if(d&&(b=sr(d,"yt:BreakTime"),!g.fb(b)))return(0,g.I)(b,function(a){return tr(a,"timeOffset")})}return[tr(a,"timeOffset")]};
Fha=function(a,b){return(0,g.I)(b,function(a){var b=new Vy(a.o.clone());b.isBumper=a.isBumper;b.g=a.g;return b},a)};
Gha=function(a){return(a=g.$a(g.se(a),function(a){return"vmap:VASTData"==a.nodeName||"vmap:VASTAdData"==a.nodeName}))?g.$a(g.se(a),function(a){return"VAST"==a.nodeName}):null};
Hha=function(a){a=g.$a(a,g.ya(FA,"type","youtube"));if(!a)return null;a=(0,g.re)(a.getElementsByTagName("*"),function(a){return"yt:BreakProperty"==a.tagName});
if(g.fb(a))return null;a=a[0];return a.hasAttribute("break_type")?fda(a.getAttribute("break_type")):null};
FA=function(a,b,c){return tr(c,a)==b};
Jha=function(a,b){if(null!=a){if(null!=a){var c=g.ue(a);c=null!=c&&"Playlist"==c.nodeName}else c=!1;if(c)return Sw(),new Yy(a,b);null!=a?(c=g.ue(a),c=null!=c&&"vmap:VMAP"==c.nodeName):c=!1;if(c)return Sw(),new EA(a,b);if(aw(a)){if(!aw(a))throw Ym(az);c=g.ue(a);var d=dw(c);if(1>d||4<d)throw Ym(Iha);c=sr(c,"Ad");if(g.fb(c))throw Ym(GA);c=ew(c[0]);if(null==c)throw Ym(HA);if(1!=sr(c,"AdSystem").length)throw Ym(HA);return new $v(a)}}return null};
Kha=function(a){a=(0,g.re)(a,function(a){return 0<js(a)});
g.yb(a,function(a,c){return js(a)-js(c)});
return a};
Lha=function(a){return(0,g.re)(a,function(a){return-1==js(a)})};
rq=function(a){this.vf=a};
IA=function(a,b){this.o=a;this.A=b};
JA=function(a,b){"auto"!=a.o.xi&&"click"!=a.o.xi||b.set("vpa",a.o.xi)};
KA=function(a){E(P.getPlayerType())||(a.set("mpt",P.getPlayerType()),E("")||a.set("mpv",""))};
LA=function(a,b){var c=a.A.D,d=a.A.o;null!=c&&b.set("js","ima-"+c);null!=d&&b.set("an",d);c=a.o.M;null!=c&&b.set("mv",c+"."+(a.o.K||""))};
MA=function(a,b){var c=2,d=Xh&&Xh.g?!1:0===fi();!tn()&&d&&(c|=2048);b.set("osd",c);-1!=a.A.M&&b.set("frm",a.A.M);c=a.A.da;null!=c&&b.set("ms",c);b.set("sdr",1)};
NA=function(a){return P.o?"h.3.0.0":null!=a.A?Hn(a.A):null};
OA=function(){this.g=["video"]};
PA=function(a,b){a.set("sz",Math.max(null!=b.aj?b.aj:0,null!=b.Ye?b.Ye:0)+"x"+Math.max(null!=b.Zi?b.Zi:0,null!=b.Xe?b.Xe:0))};
RA=function(a){var b={};Yh(b);for(var c in b)a.set(c,b[c]);a.set("dt",QA)};
SA=function(a){if(a.Fc&&a.Fc.LACT){var b=a.Fc.LACT.toString();if(b)return Xa(b)}return a.G};
TA=function(a){return P.g()&&a.Fc&&a.Fc.VIS?a.Fc.VIS.toString():null};
YA=function(a,b,c){var d=new Fl;d.set("ad_type",b.adType);ao&&d.set("flash",oi);PA(d,a);UA(b)&&(d.set("ea","0"),null!=a.Ye&&null!=a.Xe&&d.set("image_size",VA(b,a.Ye,a.Xe,a.Ni)));WA(d,c);d.set("lact",SA(a));(b=TA(a))&&d.set("yt_vis",b);d.set("videoad_start_delay",a.Ao);RA(d);XA(a,d,!0);return d};
XA=function(a,b,c){E(g.F(a.referrer))||(a=a.referrer,c&&(a=g.Fa(a)),ZA("ref",a,b))};
bB=function(a,b,c){a=null!=b?b.split("_"):a;(0,g.H)(a,function(a){if(!Mb(Mha,a))throw Ym(Wn,null,"ad_type",String(b));});
if(c){var d=[];(0,g.H)(a,function(a){g.eb($A,a)||d.push(a)});
a=d}c=g.eb(a,"video");var e=g.eb(a,"skippablevideo");!hn()||P.g()||Ln(In.getInstance(),53,{playsInline:!1,iOS_version:hn()?qn(kn):"",wv:(Hb("iPad")||Hb("iPhone"))&&!dc()&&!cc()&&!Hb("Coast")&&Hb("AppleWebKit"),rq_video:c,rq_skip:e,dis_cp:!1});var f=Fm();if(!un()){d=[];(0,g.H)(a,function(a){"video"==a?(d.push("standardvideo"),!P.g()&&Hm(f,413051060)&&d.push("bumpervideo")):"skippablevideo"!=a&&d.push(a)});
if(0==d.length)throw Ym(aB,null,"skippablevideo");a=d}return a};
cB=function(a,b){return null!=b?b.split(/[+, ]/):a};
VA=function(a,b,c,d){a.o&&(c=Math.min(c,90));var e=0,f=0;a=!P.g();d=d&&a;a&&(e=15,f=65);var k=[];(0,g.H)(Nha,function(a){var l=b-e>=a.width&&c-f>=a.height,n=!d&&!l&&90>=a.height&&b>=a.width&&c>=a.height;(l||n)&&k.push(a.width+"x"+a.height)});
return k.join(",")};
dB=function(a,b){return null==b||(0,window.isNaN)(b)?a:Number(b)};
eB=function(a,b){return null!=b?String(b):null!=a?a:null};
fB=function(a,b){if(null==b)return a;switch(b.toLowerCase()){case "true":case "1":return!0;case "false":case "0":return!1}return a};
gB=function(a,b,c){return null!=b&&Mb(c,b)?b:a};
UA=function(a){return(0,g.Ek)($A,function(b){return g.eb(a.g,b)})};
WA=function(a,b){ao?a.set("ca_type","flash"):a.set("ca_type","image");if(null!=b){var c=b.A;null!=c&&0<c.length&&(c=c[0].G,0<c.length&&(a.set("ca_w",c[0].width),a.set("ca_h",c[0].height)))}};
ZA=function(a,b,c){null!=b&&c.set(a,b)};
iB=function(a,b,c){IA.call(this,a,b);var d=new OA,e=(new g.Ll(a.g)).g;d.Hq=gB(d.Hq,e.get("cust_age"),Oha);d.Il=gB(d.Il,e.get("adsafe"),hB);d.g=bB(d.g,e.get("ad_type"));d.adType=d.g.join("_");d.ep=dB(d.ep,e.get("videoad_start_delay"));d.fp=eB(d.fp,e.get("slotname"));d.Gq=fB(d.Gq,e.get("adtest"))||"on"==e.get("adtest");d.ip=fB(d.ip,e.get("scs"));d.jp=eB(d.jp,e.get("alternate_ad_url"));d.channels=cB(d.channels,e.get("channel"));d.Fp=dB(d.Fp,e.get("cpm"));d.bk=eB(d.bk,e.get("description_url"));d.experimentIds=
eB(d.experimentIds,e.get("eid"));d.gender=gB(d.gender,e.get("cust_gender"),Pha);d.o=fB(d.o,e.get("overlay"));d.host=eB(d.host,e.get("host"));d.A=cB(d.A,e.get("h_ch"));d.hostTierId=dB(d.hostTierId,e.get("ht_id"));d.isLiveStream=fB(d.isLiveStream,e.get("lsv"));if(null!=this.o.language)var f=this.o.language;else f=pa.navigator||null,f=vm(f.language||f.userLanguage||f.browserLanguage||f.systemLanguage||"");var k=null!=e.get("hl")?String(e.get("hl")):null;f=eB(k,f);var l;null!=f&&!E(g.F(f))&&(l=vm(f));
d.language=eB(d.language,l);d.bx=dB(d.bx,e.get("linearAdSlotWidth"));d.ax=dB(d.ax,e.get("linearAdSlotHeight"));d.qn=dB(d.qn,e.get("max_ad_duration"));d.kr=dB(d.kr,e.get("min_ad_duration"));d.sn=dB(d.sn,e.get("sdmax"));d.gx=dB(d.gx,e.get("nonLinearAdSlotWidth"));d.fx=dB(d.fx,e.get("nonLinearAdSlotHeight"));d.yj=eB(d.yj,e.get("client"));d.Nn=eB(d.Nn,e.get("t_pyv"));l=e.get("sdki");d.Vn=dB(d.Vn,g.u(l)?(0,window.parseInt)(l,16):l);d.tagForChildDirectedTreatment=dB(d.tagForChildDirectedTreatment,e.get("tfcd"));
d.Kn=eB(d.Kn,e.get("pucrd"));d.targeting=gB(d.targeting,e.get("targeting"),Qha);d.bn=dB(d.bn,e.get("video_format"));d.Ys=dB(d.Ys,e.get("video_cpm"));d.Iq=eB(d.Iq,e.get("loeid"));d.qt=eB(d.qt,e.get("yt_pt"));d.jt=eB(d.jt,e.get("ytdevice"));d.kt=eB(d.kt,e.get("ytdevicever"));d.lt=eB(d.lt,e.get("dbp"));d.B=eB(d.B,e.get("ms"));d.adBlock=dB(d.adBlock,e.get("adBlock"));d.url=eB(d.url,e.get("url"));d.sp=eB(d.sp,e.get("avo"));d.Xs=eB(d.Xs,e.get("v_p"));d.eI=a.D;d.fI=a.B;d.gI=a.F;d.yo=dB(d.yo,e.get("ad_block"));
this.g=d;this.J=b;this.K=c;E(g.F(this.g.experimentIds))||(a=this.g.experimentIds.split(","),Dm(Fm(),a))};
Sha=function(a){return(0,g.Ek)(Rha,function(a){return g.eb(this.g.g,a)},a)};
jB=function(a){return P.g()?1:g.eb(a.g.adType.split("_"),"text")?3:1};
Tha=function(a){a=a.g.channels?a.g.channels:[];sb(a);a=g.qb(a,0,30);return a.join("+")};
Uha=function(){this.bb=null;this.g=0};
Vha=function(a,b,c,d,e,f,k){var l=(0,g.A)(function(a){d(a,Error(ww(a)))},a),m=(0,g.A)(function(a){6==a?kB(this,b,!1,c,l,e,f):l(a)},a);
kB(a,b,!0,c,m,e,f,k)};
kB=function(a,b,c,d,e,f,k,l){var m=new Cw;m.G=c;Dw(m,Wha(f));var n=new g.dm,q=(0,g.A)(function(){n.dispose();m.dispose()},a);
c=(0,g.A)(function(){e(m.o);q()},a);
jm(n,m,"success",function(){try{var a=m.g?m.g.responseXML:null}catch(B){a=null}if(null==a){var b=Lw(m);try{a=g.nr(b)}catch(B){a=mr("parsererror")}}d(a);q()},a);
jm(n,m,["error","timeout"],c,a);if("POST"==k){b=new g.Ll(b);var r=b.g.toString();Ql(b,"");b=b.toString()}P.g()&&"POST"!=k&&(l=Xha(b,k,l),b=l.url,k=l.kR,r=l.content);a.g=(0,g.G)();m.send(Om(b),k,r)};
Xha=function(a,b,c){var d=new cA;d.g=a;if(Hq(d)){var e=new g.Ll(a),d=e.g.get("post_data");if(g.t(d)){b="POST";e.g.remove("post_data");a=e.toString();var f=(0,window.decodeURIComponent)(d);g.t(c)&&(c=c.clone(),d=Gg(d,"pat"),null!=d&&(c.g=(0,window.decodeURIComponent)(d)),c=new iB(c,Jn,null),c=c.B(c.C()).toString(),f=f+"&cat="+(0,window.encodeURIComponent)(c))}}return{url:a,kR:b,content:f}};
lB=function(a,b){IA.call(this,a,b)};
mB=function(a,b){IA.call(this,a,b)};
nB=function(a){IA.call(this,a,null)};
oB=function(a){IA.call(this,a,null)};
pB=function(a,b){IA.call(this,a,b);P.g()&&(this.A.B=En())};
Yha=function(a){var b=[];(0,g.H)(a,function(a){0<a.length&&b.push((0,g.I)(a,function(a){return a.width+"x"+a.height}).join("|"))});
return b.join(",")};
qB=function(a,b,c){pB.call(this,a,b);b=Fm();this.J=E(g.F(a.A));a=new OA;a.g=bB(a.g,this.o.A);a.adType=a.g.join("_");a.experimentIds=eB(a.experimentIds,this.o.J);this.g=a;this.F=c;E(g.F(this.g.experimentIds))||Dm(b,this.g.experimentIds.split(","))};
Zha=function(a){var b=YA(a.o,a.g,a.F);b.set("sdkv",NA(a));b.set("sdki",a.D().toString(16));return b};
$ha=function(a,b){var c=Zha(a),d=(0,g.I)(c.Cb(),function(a){var b=c.get(a);return a+"="+(null!=b?b:"")});
g.Ul(b,"afvparams",d.join("&"))};
rB=function(a,b,c){IA.call(this,a,b);Fm();this.J=E(g.F(a.A));a=new OA;a.g=bB(a.g,this.o.A);a.adType=a.g.join("_");a.experimentIds=eB(a.experimentIds,this.o.J);this.g=a;this.F=c;E(g.F(this.g.experimentIds))||(a=this.g.experimentIds.split(","),c=Fm(),Dm(c,a))};
aia=function(a){var b=YA(a.o,a.g,a.F);b.set("sdkv",NA(a));return b};
bia=function(a,b){var c=aia(a),d=(0,g.I)(c.Cb(),function(a){var b=c.get(a);return a+"="+(null!=b?b:"")});
Aq(b,"afvparams",[g.Fa(d.join("&"))])};
sB=function(a,b){IA.call(this,a,b)};
tB=function(a,b){var c=new g.Ll(g.mm(a.o.g,cia(a,b)));Ml(c,"https");return c};
cia=function(a,b){if(null==a.o||null==a.o.Fc)return{};var c={},d=a.o.Fc;(0,g.H)(dia,function(a){a in d&&(c[a]=d[a])});
var e=eia(a,d.DESCRIPTION_URL);e&&(c.AD_BLOCK=e);null!=b&&(c.BISCOTTI_ID=b);return c};
eia=function(a,b){return null!=b?xn(Gn(a.A),b):null};
fia=function(a,b){if(!Fq(a.g)&&!Gq(a.g)||E(g.F(a.A))||null==a.g||-1==a.g.search("afvbase="))if(Fq(a.g))var c=new mB(a,Jn);else Dq(a.g)?c=new iB(a,Jn,b):Gq(a.g)?c=new pB(a,Jn):Eq(a)?c=new lB(a,Jn):(c=a.g,null!=c?(c=(new g.Ll(c)).o,c=Ea(c,".fwmrm.net")):c=!1,c=c?new nB(a):Hq(a)?new sB(a,Jn):new oB(a));else c=Fq(a.g)?new rB(a,Jn,b):new qB(a,Jn,b);return c};
uB=function(a,b,c,d,e){this.C=a;this.A=b;this.B=c;this.g=d;this.D=e;this.bb=null};
gia=function(a,b,c,d){if(b.o instanceof window.Document)var e=b.o;else try{e=g.nr(b.o)}catch(f){d(Ym(az,f));return}null!=e?vB(a,e,b,c,d):d(Ym(az))};
wB=function(a,b,c,d){var e;if(e=null!=b.g){a:{try{Ga(b.g)}catch(f){e=!1;break a}e=!0}e=!e}e?d(Ym(hia,null,b.g)):P.J?tda(Rn(),(0,g.A)(a.o,a,b,c,d)):a.o(b,c,d)};
yB=function(a,b,c,d,e,f){b=rda(b,f);f=c.Wm&&Jm(iia,b)?"POST":"GET";Vha(a.A,b,(0,g.A)(function(a){vB(this,a,c,d,e)},a),(0,g.A)(function(a,b){var d=8==a?Ym(mq):5==a||6==a?Ym(jia):Ym(xB,b);
e(d);d="third_party";Dq(c.g)?d="adsense":Fq(c.g)?d="dart":Gq(c.g)&&(d="xfp");d={rt:d,ec:a};Ln(In.getInstance(),18,d,!0)},a),a.D,f,c);
kia(c)};
kia=function(a){var b="third_party";Dq(a.g)?b="adsense":Fq(a.g)?b="dart":Gq(a.g)?b="xfp":Eq(a)&&(b="dbm");a={rt:b};Ln(In.getInstance(),17,a,!0)};
vB=function(a,b,c,d,e){try{var f=Jha(b,c);if(!f)throw Ym(az);var k=f.A();lia(a,k,c,d)}catch(l){l instanceof ym?e(l):e(Ym(mia,l))}};
lia=function(a,b,c,d){var e=b.vf;if(null!=e)d(new rq(e));else{e=b.o;if(null==e)throw Ym(GA);(0,g.H)(e,function(a){a.A=c;var d=tm();d&&um(d,"useCompanionsAsEndSlate")&&(a.M=pfa(a));var d=[],e=a.getExtension("InfoCards");if(null!=e)for(var e=e.A?e.A:new gv,f=0;f<fv(e,"card");f++)d.push(new hv(ev(e,"card",f)));a.B=d;a.ca=lfa(a.B);a.Na=this.A.g;P.g()&&(a.tb=b.g)},a);
var f=Kha(e),k=Lha(e),l;0<k.length&&0<=is(k[0])?l=new wq(k,c,a,a.C):l=new lq(f,k,c,a);(0,g.H)(e,function(a){a.Sa=l});
d(l)}};
zB=function(a){this.g=a+(0,g.G)()};
Wha=function(a){var b=(0,g.G)();a=a.g-b;return 0<a?a:0};
AB=function(a,b,c){this.D=b;this.B=c;this.C=null;this.o=new g.dm(this);this.K=a;this.A=this.g=null;this.G=!1;this.bb=null};
nia=function(a){if(null===a.C)BB(a);else{var b=new g.Ll(a.C.g),c=g.F(b.g.get("vid")),b=g.F(b.g.get("cmsid")),d=a.B.J,e=a.B.F;a.B.J=c;a.B.F=b;if(E(g.F(c))||E(g.F(b)))BB(a);else if(c==d&&b==e)BB(a);else{var f=a.D.Ph();oA(f,c,b);yha(f,a.C);a.A=new g.dg(100);g.fm(a.o,a.A,"tick",function(){a:{var a=nA(f);if(null!=a)try{var b=!1!==a.isAdRequestFinished();break a}catch(m){b=!0;break a}b=!1}b&&BB(this)},!1,a);
a.A.start()}}};
oia=function(a){a.g=new g.dg;jm(a.o,a.g,"tick",function(){BB(this)},a);
eg(a.g,a.K);a.g.start()};
BB=function(a){null!=a.o&&(a.o.dispose(),a.o=null);null!=a.g&&(a.g.stop(),a.g=null);null!=a.A&&(a.A.stop(),a.A=null);a.G=!0;null===a.F||a.F()};
pia=function(a,b){this.g=a;this.o=b;this.bb=null;P.o&&io().init();a:{try{var c=window.top.location.href}catch(d){c=2;break a}c=null!=c?c==window.document.location.href?0:1:2}Jn.M=c};
qia=function(a,b,c,d){if(P.g()){var e=b.zo;e&&jda(Fm(),e)}e=null;null!=a.g&&!P.g()&&(e=new AB(1E3,a.g,a.o));var f=vea(b);null!=f&&uea(b)&&(a.o.da=f);f=8E3;!P.g()&&Hm(Fm(),41351074)?f=5E3:!P.g()&&Hm(Fm(),41351075)&&(f=2E3);(new uB(a.o,new Uha,a.g,e,new zB(f))).fetch(b,(0,g.A)(function(a){a instanceof rq?c(a):pq(a,c,d)},a),d)};
g.CB=function(){this.g=[];this.o=[]};
DB=function(a){g.fb(a.g)&&(a.g=a.o,a.g.reverse(),a.o=[])};
g.EB=function(a,b){a.o.push(b)};
g.FB=function(a){DB(a);return a.g.pop()};
GB=function(a){DB(a);return g.Ya(a.g)};
ria=function(a){this.ib=a;this.g=new g.CB;this.Kf=!1;this.bb=null};
IB=function(a,b,c,d){var e=(0,g.A)(function(a){c(a);g.FB(this.g);this.Kf=!1;HB(this)},a),f=(0,g.A)(function(a){d(a);
g.FB(this.g);this.Kf=!1;HB(this)},a);
g.EB(a.g,(0,g.A)(function(){qia(this.ib,b,e,f)},a));
HB(a)};
HB=function(a){if(!a.Kf){var b=GB(a.g);null!=b&&(a.Kf=!0,b())}};
JB=function(a,b,c){g.qf.call(this);this.ib=new ria(new pia(b,c));this.A=a;this.o=b;this.g=!0;this.B=c;this.bb=null};
sia=function(a,b,c){if(a.g){var d=null!=c?c:{};tga(Rw.getInstance(),b.g);IB(a.ib,b,(0,g.A)(function(a){KB(this,a,d)},a),(0,g.A)(function(a){LB(this,a,d)},a))}};
dha=function(a,b,c){if(!a.g){var d=null!=c?c:{};IB(a.ib,b,(0,g.A)(function(a){KB(this,a,d)},a),(0,g.A)(function(a){LB(this,a,d)},a))}};
KB=function(a,b,c){if(a.g)if(b instanceof rq)b=new MB(b.vf,a,a.A.xv),b.zg(a.o),a.dispatchEvent(new aA(b,c));else try{var d=Ty(a.A,b);d.zg(a.o);a.dispatchEvent(new aA(d,c))}catch(e){LB(a,Ym(NB,null),c)}else b instanceof rq?LB(a,Ym(tia,null,"Unsupported ad format."),c):(d=new xm("adsLoaderSdkAdLoaded"),d.F=b,d.D=c,a.dispatchEvent(d))};
LB=function(a,b,c){a.g?("always"==P.B&&null!=a.o&&a.o.rd(yA()),a.dispatchEvent(new rm(b,c))):(c=new xm("adsLoaderSdkAdError"),c.g=b,a.dispatchEvent(c))};
OB=function(a,b){this.M=a;this.V=new Fl;this.P=15E3;this.F=g.ge("SPAN");vy.call(this,a[0],b);this.g.appendChild(this.F)};
PB=function(a,b){vy.call(this,a[0],b);this.B=a;g.R(this.g,"ima-container-stack")};
QB=function(a){zy.call(this,a);this.C=!1;this.o=this.A=null;this.G=!1};
RB=function(a){var b=a.ads[0].getExtension("AdSense"),c=b.C,b=b.D;a={text:null!=c?c:a.J.C,url:null!=b?b:a.J.D};null==a.text&&(c=Aa("Ads by Google"),c=Ho(""+c),a.text=c);return a};
SB=function(a){return a.yb()&&As(a.ma())};
uia=function(a){var b=TB(a);b.rba=a.B;Ln(In.getInstance(),37,b)};
TB=function(a){var b=[],c=[];(0,g.H)(a.A,function(a){b.push(a.Eb()+"x"+a.getHeight());c.push(a.hd())},a);
var d={};d.pid=Rw.getInstance().o;d.fsmode=null!=a.o;0<b.length&&(d.cz=b.join(","));0<c.length&&(d.ct=c.join(","));d.vm=a.Xc;return d};
UB=function(a,b){if(a.o){a.Sm(new g.Me("close"));var c={};c.pid=Rw.getInstance().o;c.evt=b;Ln(In.getInstance(),35,c)}};
VB=function(a,b){g.M.call(this);this.B=a;this.g=-1;this.A=b};
WB=function(a,b){VB.call(this,a,b)};
MB=function(a,b,c){qu.call(this,[]);this.vf=a;this.Db=new Fl;this.Ub=this.ub=null;this.xv=c;this.dk=new g.CB;this.Hd=null;this.ib=b;this.hp=this.im=!1;this.ai=null;this.Yf=0;this.Td=this.Ud=-1;this.fd=null;this.gs=0;this.bb=null;this.ck=!1};
wia=function(a,b){if(null!==a.Qa){var c=1;a.Yf=0;var d=new px;(0,g.H)(b,function(a){if((0,window.isNaN)(a))throw Ym($y,null,"timeOffset",String(a));if(-1!=a&&-1>=a){var b=this.vf;if((0,window.isNaN)(a)||!g.oa(a))throw Error("Incorrect time offset.");Hl(b.g,a)&&b.g.remove(a)}else if(b=g.oa(a)&&!(0,window.isNaN)(a)?this.vf.g.get(a,[]):[],!g.fb(b)){this.Yf+=b.length;var e=0==a||-1==a?a:c++;b=new Cy(b,a,e,this.ib,this.Qa,this.Va,this.Gd);if(d.contains(a))throw Ym(via,null,"Multiple ad breaks cannot share same ad play time.");
this.Db.set(g.xa(b),b);rx(d,a)}},a)}};
xia=function(a,b){a.ai=g.Ya(b);(0,g.Ek)(b,function(a){if(-1==a)return this.ai=a,!0;this.ai=this.ai<a?a:this.ai;return!1},a)};
ZB=function(a,b){a.ck=!1;a.Ji(b);0==b.Dc?a.Qf():(-1==b.Dc?(XB(a)||!P.g()&&a.im)&&YB(a):hz(a.Ub),a.Hd=null)};
yia=function(a){if(null!=a.Ub){$B(a);var b=a.Xa();em(b,a.Ub,["requestAds","playAds","contentTrackingError","discardAdBreak"],a.handleEvent,!1,a);em(b,a.Ub,"adBreakReady",a.fM,!1,a);em(b,a.Ub,"adNotify",a.Tk,!1,a);em(b,a.Ub,"discardAdNotify",a.Vk,!1,a);em(b,a.ib,"contentComplete",a.gN,!1,a);a.ib.g=!1}};
$B=function(a){null!=a.gc&&(a.gc.dispose(),a.gc=null);a.im=!1;null!=a.Ub&&a.Ub.Vc()};
aC=function(a){if(null==a.Hd){var b=g.FB(a.dk);if(null!=b){a.Hd=b;var c=a.Db.get(a.Hd.g);if(null!=c)if(b=b.type,"requestAds"!=b&&"playAds"!=b)a.Hd=null,aC(a);else if(null!=a.fd&&a.fd.o(c))a.Hd=null,aC(a);else if("requestAds"==b)a.ck?(a.dk.isEmpty()||"playAds"!=GB(a.dk).type||g.FB(a.dk),ZB(a,c)):0==c.Dc&&a.Tf()||bC(a,c);else{if("playAds"==b)if(a.ck)ZB(a,c);else if(null!=a.ub&&a.ub.xb()&&a.Ji(a.ub),a.ub=c,a.ub.setVolume(a.volume),Dy(a.ub,a.Ud,a.Td,a.Xc),a.ub.O&&a.Hd.A<a.gs){c=a.ub;if(c.o<c.A.length){b=
c.A[c.o];My(c);try{c.F=new g.dm(c),c.g=Ny(c,b,c.F)}catch(e){c.o++,Ry(c)}}var c=a.Ub,b=a.gs,d=new fz(a.ub);d.g=b;d.o=!0;Bb(c.g,d,gz);a.la("contentResumeRequested");a.Hd=null;aC(a)}else a.ub.start()}else a.Hd=null,aC(a)}}};
bC=function(a,b){var c=a.Xa();em(c,b,jy,a.dispatchEvent,!1,a);em(c,b,"adError",a.bw,!1,a);em(c,b,"allAdsCompleted",a.fz,!1,a);em(c,b,"contentPauseRequested",a.oh,!1,a);em(c,b,"contentResumeRequested",a.Qf,!1,a);em(c,b,"userClose",a.ki,!1,a);em(c,b,"autoClose",a.ji,!1,a);em(c,b,"adBreakInitialized",a.gz,!1,a);b.init(a.Ud,a.Td,a.Xc)};
YB=function(a){if(!a.hp){a.hp=!0;a.ib.g=!0;try{Ln(In.getInstance(),44,{cmpl:!0})}catch(b){}a.la("allAdsCompleted");-1==a.ai&&cC(a)}};
cC=function(a){Hm(Fm(),420706009)||Jn.clear();null!=a.Gd&&(a=a.Gd.Ph(),null!=a&&pA(a,Jn.g))};
XB=function(a){return 0==a.Db.fb().length};
dC=function(a){return null!=a.ub?a.ub:null!=a.Hd?a.Db.get(a.Hd.g):null};
zia=function(){this.xv=new oha;this.bb=null};
Ty=function(a,b){if(g.fb(b))throw Error("Ads manager creation failure, no ads.");if(Aia(a,b)){var c=Bia(a,b);if(!g.fb(c))return new qy(c)}c=oy(b);P.g()||(c=c&&null!=ls(b[0])?new ny(0,c,b[0]):c);if(c)return c;throw Error("Ads manager creation failure, failed to determine ad type.");};
Bia=function(a,b){var c=[];(0,g.H)(b,function(a){var b=oy([a]);b&&a.Wb()&&g.ib(c,b)},a);
return c};
oy=function(a){var b=a[0];switch(eC(b)){case "overlay":return vs(b)?new QB(a):new zy(a);case "video":return new sx(a);case "vpaid":return new Zx(a);case "flash_vpaid":return 2==P.F?new iw(a):new ow(a)}return null};
Aia=function(a,b){if(1==b.length)return!1;var c=eC(b[0]);return(0,g.Ek)(b,function(a){a=eC(a);return c!=a||"vpaid"==a||"flash_vpaid"==a?!0:!1},a)};
eC=function(a){var b=Or(a)&&P.g(),b=0!=P.F||b;return null!=Fs(a)&&b?"vpaid":ao&&null!=Gs(a)&&0!=P.F?"flash_vpaid":vs(a)&&null==Fs(a)&&zs(a,"nonlinear")?"overlay":zs(a,"linear")?"video":zs(a,"nonlinear")&&null==Fs(a)?"overlay":null};
fC=function(a){g.qf.call(this);this.o=a;a=new zA(new iA);this.g=new JB(new zia,a,Jn);this.g.X("adsManagerLoaded",this.dispatchEvent,!1,this);this.g.X("adError",this.dispatchEvent,!1,this);this.g.X("adLoadError",this.dispatchEvent,!1,this)};
gC=function(a,b,c){kda();var d="",e=wi(),f=e.o,e=e.g;f&&f.url?d=f.url:e&&e.url&&(d=e.url);b.location=d;b.referrer=window.document.referrer;b.Ne=om(b.g,a.o.D);b.Hs=a.o.M;sia(a.g,b,c)};
hC=function(a,b){this.o=new lg(a);this.g=b?pba:g.jg};
iC=function(a,b,c,d,e,f,k,l){this.g=a;this.F=b;this.A=c;this.C=d;this.B=e;this.D=f;this.o=k;this.G=l};
jC=function(a,b){if(0==b)return a.g;if(1==b)return a.o;var c=Kd(a.g,a.A,b),d=Kd(a.A,a.B,b),e=Kd(a.B,a.o,b),c=Kd(c,d,b),d=Kd(d,e,b);return Kd(c,d,b)};
Cia=function(a,b){var c=(b-a.g)/(a.o-a.g);if(0>=c)return 0;if(1<=c)return 1;for(var d=0,e=1,f=0,k=0;8>k;k++){var f=jC(a,c),l=(jC(a,c+1E-6)-f)/1E-6;if(1E-6>Math.abs(f-b))return c;if(1E-6>Math.abs(l))break;else f<b?d=c:e=c,c-=(f-b)/l}for(k=0;1E-6<Math.abs(f-b)&&8>k;k++)f<b?(d=c,c=(c+e)/2):(e=c,c=(c+d)/2),f=jC(a,c);return c};
kC=function(a,b,c,d){this.B=a;this.C=b;this.g=this.A=a;this.D=c||0;this.F=d||2};
lC=function(a,b,c,d,e){this.g=a;this.A=c;this.G=d;this.F=e||1;this.C=45E3;this.B=new g.dm(this);this.o=new g.dg;eg(this.o,250)};
nC=function(a,b,c){a.Yi=1;a.Zg=Xl(b.clone());a.mi=c;a.D=!0;mC(a,null)};
oC=function(a,b,c,d,e){a.Yi=1;a.Zg=Xl(b.clone());a.mi=null;a.D=c;e&&(a.FA=!1);mC(a,d)};
mC=function(a,b){a.fl=(0,g.G)();pC(a);a.th=a.Zg.clone();Wl(a.th,"t",a.F);a.ql=0;a.cd=a.g.Hp(a.g.kl()?b:null);0<a.kq&&(a.On=new g.dk((0,g.A)(a.zB,a,a.cd),a.kq));a.B.X(a.cd,"readystatechange",a.RQ);var c=a.Uh?g.Wb(a.Uh):{};a.mi?(a.to="POST",c["Content-Type"]="application/x-www-form-urlencoded",a.cd.send(a.th,a.to,a.mi,c)):(a.to="GET",a.FA&&!g.de&&(c.Connection="close"),a.cd.send(a.th,a.to,null,c));a.g.gf(1)};
wC=function(a,b,c){for(var d=!0;!a.Gh&&a.ql<c.length;){var e=Dia(a,c);if(e==qC){4==b&&(a.Vh=4,rC(),d=!1);break}else if(e==sC){a.Vh=4;rC();d=!1;break}else tC(a,e)}4==b&&0==c.length&&(a.Vh=1,rC(),d=!1);a.lf=a.lf&&d;d||(uC(a),vC(a))};
Dia=function(a,b){var c=a.ql,d=b.indexOf("\n",c);if(-1==d)return qC;c=Number(b.substring(c,d));if((0,window.isNaN)(c))return sC;d+=1;if(d+c>b.length)return qC;var e=b.substr(d,c);a.ql=d+c;return e};
zC=function(a,b){a.fl=(0,g.G)();pC(a);var c=b?window.location.hostname:"";a.th=a.Zg.clone();g.Ul(a.th,"DOMAIN",c);g.Ul(a.th,"t",a.F);try{a.nf=new window.ActiveXObject("htmlfile")}catch(n){uC(a);a.Vh=7;rC();vC(a);return}var d="<html><body>";if(b){for(var e="",f=0;f<c.length;f++){var k=c.charAt(f);if("<"==k)e+="\\x3c";else if(">"==k)e+="\\x3e";else{var l=k;if(l in xC)k=xC[l];else if(l in yC)k=xC[l]=yC[l];else{var m=l.charCodeAt(0);if(31<m&&127>m)k=l;else{if(256>m){if(k="\\x",16>m||256<m)k+="0"}else k=
"\\u",4096>m&&(k+="0");k+=m.toString(16).toUpperCase()}k=xC[l]=k}e+=k}}d+='<script>document.domain="'+e+'"\x3c/script>'}d+="</body></html>";c=Gd(id("b/12014412"),d);a.nf.open();a.nf.write(g.zd(c));a.nf.close();a.nf.parentWindow.m=(0,g.A)(a.TP,a);a.nf.parentWindow.d=(0,g.A)(a.Zz,a,!0);a.nf.parentWindow.rpcClose=(0,g.A)(a.Zz,a,!1);c=a.nf.createElement("DIV");a.nf.parentWindow.document.body.appendChild(c);d=wd(a.th.toString());d=Ha(ud(d));d=Gd(id("b/12014412"),'<iframe src="'+d+'"></iframe>');c.innerHTML=
g.zd(d);a.g.gf(1)};
pC=function(a){a.gt=(0,g.G)()+a.C;AC(a,a.C)};
AC=function(a,b){if(null!=a.Pj)throw Error("WatchDog timer not null");a.Pj=BC((0,g.A)(a.kQ,a),b)};
CC=function(a){a.Pj&&(pa.clearTimeout(a.Pj),a.Pj=null)};
vC=function(a){a.g.tw()||a.Gh||a.g.Fn(a)};
uC=function(a){CC(a);g.Ke(a.On);a.On=null;a.o.stop();km(a.B);if(a.cd){var b=a.cd;a.cd=null;b.abort();b.dispose()}a.nf&&(a.nf=null)};
tC=function(a,b){try{a.g.Sz(a,b),a.g.gf(4)}catch(c){}};
EC=function(a,b,c,d,e){if(0==d)c(!1);else{var f=e||0;d--;DC(a,b,function(e){e?c(!0):pa.setTimeout(function(){EC(a,b,c,d,f)},f)})}};
DC=function(a,b,c){var d=new window.Image;d.onload=function(){try{FC(d),c(!0)}catch(e){}};
d.onerror=function(){try{FC(d),c(!1)}catch(e){}};
d.onabort=function(){try{FC(d),c(!1)}catch(e){}};
d.ontimeout=function(){try{FC(d),c(!1)}catch(e){}};
pa.setTimeout(function(){if(d.ontimeout)d.ontimeout()},b);
d.src=a};
FC=function(a){a.onload=null;a.onerror=null;a.onabort=null;a.ontimeout=null};
GC=function(a){this.g=a;this.o=new hC(null,!0)};
IC=function(a){var b=HC(a.g,a.Uj,"/mail/images/cleardot.gif");Xl(b);EC(b.toString(),5E3,(0,g.A)(a.EF,a),3,2E3);a.gf(1)};
KC=function(a){var b=a.g.K;if(null!=b)rC(),b?(rC(),JC(a.g,a,!1)):(rC(),JC(a.g,a,!0));else if(a.he=new lC(a,0,void 0,void 0,void 0),a.he.Uh=a.hq,b=a.g,b=HC(b,b.kl()?a.sk:null,a.jq),rC(),!g.sc||g.lc(10))Wl(b,"TYPE","xmlhttp"),oC(a.he,b,!1,a.sk,!1);else{Wl(b,"TYPE","html");var c=a.he;a=!!a.sk;c.Yi=3;c.Zg=Xl(b.clone());zC(c,a)}};
LC=function(a,b,c,d){this.G=a||null;this.g=1;this.o=[];this.B=[];this.C=new hC(null,!0);this.J=b||null;this.K=null!=c?c:null;this.D=d||!1};
Eia=function(a,b){this.g=a;this.map=b;this.context=null};
MC=function(a){g.Me.call(this,"statevent",a)};
NC=function(a,b){g.Me.call(this,"timingevent",a);this.size=b};
OC=function(a){g.Me.call(this,"serverreachability",a)};
SC=function(a){PC(a);if(3==a.g){var b=a.Rk++,c=a.Dm.clone();g.Ul(c,"SID",a.A);g.Ul(c,"RID",b);g.Ul(c,"TYPE","terminate");QC(a,c);b=new lC(a,0,a.A,b,void 0);b.Yi=2;b.Zg=Xl(c.clone());(new window.Image).src=b.Zg;b.fl=(0,g.G)();pC(b)}RC(a)};
UC=function(a){a.aG(1,0);a.Dm=HC(a,null,a.gq);TC(a)};
PC=function(a){a.Rg&&(a.Rg.abort(),a.Rg=null);a.yc&&(a.yc.cancel(),a.yc=null);a.ig&&(pa.clearTimeout(a.ig),a.ig=null);VC(a);a.Jd&&(a.Jd.cancel(),a.Jd=null);a.Sg&&(pa.clearTimeout(a.Sg),a.Sg=null)};
WC=function(a,b){if(0==a.g)throw Error("Invalid operation: sending map when state is closed");a.o.push(new Eia(a.cM++,b));2!=a.g&&3!=a.g||TC(a)};
TC=function(a){a.Jd||a.Sg||(a.Sg=BC((0,g.A)(a.Xz,a),0),a.ik=0)};
ZC=function(a,b){if(1==a.g){if(!b){a.Rk=Math.floor(1E5*Math.random());var c=a.Rk++,d=new lC(a,0,"",c,void 0);d.Uh=null;var e=XC(a),f=a.Dm.clone();g.Ul(f,"RID",c);a.G&&g.Ul(f,"CVER",a.G);QC(a,f);nC(d,f,e);a.Jd=d;a.g=2}}else 3==a.g&&(b?YC(a,b):0==a.o.length||a.Jd||YC(a))};
YC=function(a,b){if(b)if(6<a.Ih){a.o=a.B.concat(a.o);a.B.length=0;var c=a.Rk-1;var d=XC(a)}else c=b.G,d=b.mi;else c=a.Rk++,d=XC(a);var e=a.Dm.clone();g.Ul(e,"SID",a.A);g.Ul(e,"RID",c);g.Ul(e,"AID",a.ij);QC(a,e);c=new lC(a,0,a.A,c,a.ik+1);c.Uh=null;c.setTimeout(Math.round(1E4)+Math.round(1E4*Math.random()));a.Jd=c;nC(c,e,d)};
QC=function(a,b){if(a.kd){var c=a.kd.cw(a);c&&g.Ib(c,function(a,c){g.Ul(b,c,a)})}};
XC=function(a){var b=Math.min(a.o.length,1E3),c=["count="+b];if(6<a.Ih&&0<b){var d=a.o[0].g;c.push("ofs="+d)}else d=0;for(var e=0;e<b;e++){var f=a.o[e].g,k=a.o[e].map,f=6>=a.Ih?e:f-d;try{g.Ib(k,function(a,b){c.push("req"+f+"_"+b+"="+(0,window.encodeURIComponent)(a))})}catch(l){c.push("req"+f+"_type="+(0,window.encodeURIComponent)("_badmap"))}}a.B=a.B.concat(a.o.splice(0,b));
return c.join("&")};
$C=function(a){a.yc||a.ig||(a.F=1,a.ig=BC((0,g.A)(a.Wz,a),0),a.Di=0)};
bD=function(a){if(a.yc||a.ig||3<=a.Di)return!1;a.F++;a.ig=BC((0,g.A)(a.Wz,a),aD(a,a.Di));a.Di++;return!0};
JC=function(a,b,c){a.so=c;a.Ve=b.qg;a.D||UC(a)};
VC=function(a){null!=a.Kh&&(pa.clearTimeout(a.Kh),a.Kh=null)};
aD=function(a,b){var c=5E3+Math.floor(1E4*Math.random());a.isActive()||(c*=2);return c*b};
dD=function(a,b){if(2==b||9==b){var c=null;a.kd&&(c=null);var d=(0,g.A)(a.ER,a);c||(c=new g.Ll("//www.google.com/images/cleardot.gif"),Xl(c));DC(c.toString(),1E4,d)}else rC();cD(a,b)};
cD=function(a,b){a.g=0;a.kd&&a.kd.cv(a,b);RC(a);PC(a)};
RC=function(a){a.g=0;a.Ve=-1;if(a.kd)if(0==a.B.length&&0==a.o.length)a.kd.zp(a);else{var b=g.ob(a.B),c=g.ob(a.o);a.B.length=0;a.o.length=0;a.kd.zp(a,b,c)}};
HC=function(a,b,c){var d=g.Yl(c);if(""!=d.o)b&&g.Nl(d,b+"."+d.o),g.Ol(d,d.C);else var e=window.location,d=Zca(e.protocol,b?b+"."+e.hostname:e.hostname,e.port,c);a.fk&&g.Ib(a.fk,function(a,b){g.Ul(d,b,a)});
g.Ul(d,"VER",a.Ih);QC(a,d);return d};
BC=function(a,b){if(!g.ua(a))throw Error("Fn must not be null and must be a function");return pa.setTimeout(function(){a()},b)};
rC=function(){eD.dispatchEvent(new MC(eD))};
fD=function(){};
g.gD=function(a,b,c,d,e,f){a=a.clone();b=b.clone();var k=0;if(d||0!=c)c&4?a.x-=b.width+(d?d.right:0):c&2?a.x-=b.width/2:d&&(a.x+=d.left),c&1?a.y-=b.height+(d?d.bottom:0):d&&(a.y+=d.top);if(f){if(e){k=a;c=b;d=0;65==(f&65)&&(k.x<e.left||k.x>=e.right)&&(f&=-2);132==(f&132)&&(k.y<e.top||k.y>=e.bottom)&&(f&=-5);k.x<e.left&&f&1&&(k.x=e.left,d|=1);if(f&16){var l=k.x;k.x<e.left&&(k.x=e.left,d|=4);k.x+c.width>e.right&&(c.width=Math.min(e.right-k.x,l+c.width-e.left),c.width=Math.max(c.width,0),d|=4)}k.x+c.width>
e.right&&f&1&&(k.x=Math.max(e.right-c.width,e.left),d|=1);f&2&&(d|=(k.x<e.left?16:0)|(k.x+c.width>e.right?32:0));k.y<e.top&&f&4&&(k.y=e.top,d|=2);f&32&&(l=k.y,k.y<e.top&&(k.y=e.top,d|=8),k.y+c.height>e.bottom&&(c.height=Math.min(e.bottom-k.y,l+c.height-e.top),c.height=Math.max(c.height,0),d|=8));k.y+c.height>e.bottom&&f&4&&(k.y=Math.max(e.bottom-c.height,e.top),d|=2);f&8&&(d|=(k.y<e.top?64:0)|(k.y+c.height>e.bottom?128:0));e=d}else e=256;k=e}e=new g.Ng(0,0,0,0);e.left=a.x;e.top=a.y;e.width=b.width;
e.height=b.height;return{rect:e,status:k}};
g.hD=function(a){g.M.call(this);this.Ld=1;this.A=[];this.B=0;this.g=[];this.o={};this.C=!!a};
Fia=function(a,b,c){g.Ff(function(){a.apply(b,c)})};
g.iD=function(a){this.g=a};
jD=function(a){this.g=a};
kD=function(a){this.data=a};
lD=function(a){return!g.t(a)||a instanceof kD?a:new kD(a)};
mD=function(a){this.g=a};
g.nD=function(a){var b=a.creation;a=a.expiration;return!!a&&a<(0,g.G)()||!!b&&b>(0,g.G)()};
g.oD=function(a){this.g=a};
Gia=function(){};
pD=function(){};
qD=function(a){this.g=a};
rD=function(){var a=null;try{a=window.localStorage||null}catch(b){}this.g=a};
sD=function(){var a=null;try{a=window.sessionStorage||null}catch(b){}this.g=a};
tD=function(a,b){this.o=a;this.g=b+"::"};
g.uD=function(a){var b=new rD;return b.isAvailable()?a?new tD(b,a):b:null};
vD=function(a,b){this.Ld=a;this.g=b};
wD=function(a){this.g=[];if(a)a:{if(a instanceof wD){var b=a.Cb();a=a.fb();if(0>=this.Mc()){for(var c=this.g,d=0;d<b.length;d++)c.push(new vD(b[d],a[d]));break a}}else b=g.Ob(a),a=g.Nb(a);for(d=0;d<b.length;d++)xD(this,b[d],a[d])}};
xD=function(a,b,c){var d=a.g;d.push(new vD(b,c));b=d.length-1;a=a.g;for(c=a[b];0<b;)if(d=b-1>>1,a[d].Ld>c.Ld)a[b]=a[d],b=d;else break;a[b]=c};
yD=function(){wD.call(this)};
zD=function(a,b){this.C=[];this.O=a;this.M=b||null;this.B=this.g=!1;this.A=void 0;this.J=this.P=this.F=!1;this.D=0;this.o=null;this.G=0};
BD=function(a,b,c){a.g=!0;a.A=c;a.B=!b;AD(a)};
DD=function(a){if(a.g){if(!a.J)throw new CD;a.J=!1}};
FD=function(a,b,c){ED(a,b,null,c)};
ED=function(a,b,c,d){a.C.push([b,c,d]);a.g&&AD(a)};
GD=function(a){return(0,g.Ek)(a.C,function(a){return g.ua(a[1])})};
AD=function(a){if(a.D&&a.g&&GD(a)){var b=a.D,c=HD[b];c&&(pa.clearTimeout(c.Aa),delete HD[b]);a.D=0}a.o&&(a.o.G--,delete a.o);for(var b=a.A,d=c=!1;a.C.length&&!a.F;){var e=a.C.shift(),f=e[0],k=e[1],e=e[2];if(f=a.B?k:f)try{var l=f.call(e||a.M,b);g.t(l)&&(a.B=a.B&&(l==b||a.isError(l)),a.A=b=l);if(If(b)||"function"===typeof pa.Promise&&b instanceof pa.Promise)d=!0,a.F=!0}catch(m){b=m,a.B=!0,GD(a)||(c=!0)}}a.A=b;d&&(l=(0,g.A)(a.K,a,!0),d=(0,g.A)(a.K,a,!1),b instanceof zD?(ED(b,l,d),b.P=!0):b.then(l,d));
c&&(b=new ID(b),HD[b.Aa]=b,a.D=b.Aa)};
CD=function(){Ca.call(this)};
JD=function(){Ca.call(this)};
ID=function(a){this.Aa=pa.setTimeout((0,g.A)(this.o,this),0);this.g=a};
KD=function(a){Kc(this,a,Hia,null)};
LD=function(a,b){if(1<b.length)a[b[0]]=b[1];else{var c=b[0],d;for(d in c)a[d]=c[d]}};
g.ND=function(a){LD(g.MD,arguments)};
g.OD=function(a,b){return a in g.MD?g.MD[a]:b};
g.T=function(a,b,c){b=void 0===b?{}:b;a=(a=a in PD?PD[a]:c)||"";c={};for(var d in b)c.In=d,a=a.replace(new RegExp("\\$"+c.In,"gi"),function(a){return function(){return b[a.In]}}(c)),c={In:c.In};
return a};
g.QD=function(a){LD(PD,arguments)};
g.RD=function(){g.QD({YTP_TRANSLATE_MENU_ITEM:"Translate captions",YTP_CONTRIBUTE_MENU_ITEM:"Add subtitles/CC",YTP_ASR_SETTINGS_LABEL:"Automatic Captions",YTP_LANGUAGE_OFF:"Off",YTP_FONT_FAMILY:"Font family",YTP_FONT_SIZE:"Font size",YTP_FONT_COLOR:"Font color",YTP_FONT_OPACITY:"Font opacity",YTP_BACKGROUND_COLOR:"Background color",YTP_BACKGROUND_OPACITY:"Background opacity",YTP_WINDOW_COLOR:"Window color",YTP_WINDOW_OPACITY:"Window opacity",YTP_COLOR_WHITE:"White",YTP_COLOR_YELLOW:"Yellow",YTP_COLOR_GREEN:"Green",
YTP_COLOR_CYAN:"Cyan",YTP_COLOR_BLUE:"Blue",YTP_COLOR_MAGENTA:"Magenta",YTP_COLOR_RED:"Red",YTP_COLOR_BLACK:"Black",YTP_FONT_FAMILY_MONO_SERIF:"Monospaced Serif",YTP_FONT_FAMILY_PROP_SERIF:"Proportional Serif",YTP_FONT_FAMILY_MONO_SANS:"Monospaced Sans-Serif",YTP_FONT_FAMILY_PROP_SANS:"Proportional Sans-Serif",YTP_FONT_FAMILY_CASUAL:"Casual",YTP_FONT_FAMILY_CURSIVE:"Cursive",YTP_FONT_FAMILY_SMALL_CAPS:"Small Capitals",YTP_CHAR_EDGE_STYLE:"Character edge style",YTP_EDGE_STYLE_NONE:"None",YTP_EDGE_STYLE_RAISED:"Raised",
YTP_EDGE_STYLE_DEPRESSED:"Depressed",YTP_EDGE_STYLE_OUTLINE:"Outline",YTP_EDGE_STYLE_DROP_SHADOW:"Drop Shadow",YTP_CLICK_FOR_SETTINGS:"Click $GEAR_ICON for settings"})};
g.TD=function(){return g.SD?{H:"div",ea:["ytp-icon","ytp-icon-cast-desktop-on"]}:{H:"svg",R:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},L:[{H:"path",Pa:!0,R:{d:"M7,24 L7,27 L10,27 C10,25.34 8.66,24 7,24 L7,24 Z M7,20 L7,22 C9.76,22 12,24.24 12,27 L14,27 C14,23.13 10.87,20 7,20 L7,20 Z M25,13 L11,13 L11,14.63 C14.96,15.91 18.09,19.04 19.37,23 L25,23 L25,13 L25,13 Z M7,16 L7,18 C11.97,18 16,22.03 16,27 L18,27 C18,20.92 13.07,16 7,16 L7,16 Z M27,9 L9,9 C7.9,9 7,9.9 7,11 L7,14 L9,14 L9,11 L27,11 L27,25 L20,25 L20,27 L27,27 C28.1,27 29,26.1 29,25 L29,11 C29,9.9 28.1,9 27,9 L27,9 Z",
fill:"#fff"}}]}};
g.UD=function(){return g.SD?{H:"div",ea:["ytp-icon","ytp-icon-chevron-back"]}:{H:"svg",R:{height:"100%",version:"1.1",viewBox:"0 0 32 32",width:"100%"},L:[{H:"path",R:{d:"M 19.41,20.09 14.83,15.5 19.41,10.91 18,9.5 l -6,6 6,6 z",fill:"#fff"}}]}};
g.VD=function(){return g.SD?{H:"div",ea:["ytp-icon","ytp-icon-chevron-forward"]}:{H:"svg",R:{height:"100%",version:"1.1",viewBox:"0 0 32 32",width:"100%"},L:[{H:"path",R:{d:"m 12.59,20.34 4.58,-4.59 -4.58,-4.59 1.41,-1.41 6,6 -6,6 z",fill:"#fff"}}]}};
WD=function(){return g.SD?{H:"div",ea:["ytp-icon","ytp-icon-clip-clear"]}:{H:"svg",R:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},L:[{H:"path",R:{d:"M14,14 L14,0 L0,0 L0,14 L14,14 Z"}},{H:"path",R:{d:"M7.15,8.35 L9.25,10.45 L10.65,9.05 L8.55,6.95 L10.7,4.8 L9.3,3.4 L7.15,5.55 L5,3.4 L3.6,4.8 L5.75,6.95 L3.65,9.05 L5.05,10.45 L7.15,8.35 Z",fill:"#fff"}}]}};
XD=function(){return g.SD?{H:"div",ea:["ytp-icon","ytp-icon-clip-end"]}:{H:"svg",R:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},L:[{H:"path",Pa:!0,R:{d:"M2,14 L5,11 L5,3 L2,0 L9,0 L9,14 L2,14 L2,14 Z",fill:"#eaeaea"}}]}};
YD=function(){return g.SD?{H:"div",ea:["ytp-icon","ytp-icon-clip-start"]}:{H:"svg",R:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},L:[{H:"path",Pa:!0,R:{d:"M12,14 L9,11 L9,3 L12,0 L5,0 L5,14 L12,14 Z",fill:"#eaeaea"}}]}};
g.ZD=function(){return g.SD?{H:"div",ea:["ytp-icon","ytp-icon-close"]}:{H:"svg",R:{height:"100%",viewBox:"0 0 24 24",width:"100%"},L:[{H:"path",R:{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z",fill:"#fff"}}]}};
$D=function(){return g.SD?{H:"div",ea:["ytp-icon","ytp-icon-closed-captioning"]}:{H:"svg",R:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},L:[{H:"path",Pa:!0,R:{d:"M11,11 C9.89,11 9,11.9 9,13 L9,23 C9,24.1 9.89,25 11,25 L25,25 C26.1,25 27,24.1 27,23 L27,13 C27,11.9 26.1,11 25,11 L11,11 Z M17,17 L15.5,17 L15.5,16.5 L13.5,16.5 L13.5,19.5 L15.5,19.5 L15.5,19 L17,19 L17,20 C17,20.55 16.55,21 16,21 L13,21 C12.45,21 12,20.55 12,20 L12,16 C12,15.45 12.45,15 13,15 L16,15 C16.55,15 17,15.45 17,16 L17,17 L17,17 Z M24,17 L22.5,17 L22.5,16.5 L20.5,16.5 L20.5,19.5 L22.5,19.5 L22.5,19 L24,19 L24,20 C24,20.55 23.55,21 23,21 L20,21 C19.45,21 19,20.55 19,20 L19,16 C19,15.45 19.45,15 20,15 L23,15 C23.55,15 24,15.45 24,16 L24,17 L24,17 Z",
fill:"#fff"}}]}};
aE=function(){return g.SD?{H:"div",ea:["ytp-icon","ytp-icon-forward-five-seconds"]}:{H:"svg",R:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},L:[{H:"path",Pa:!0,N:"ytp-svg-fill",R:{d:"m 10,19 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 h -2 c 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 0,-3.3 2.7,-6 6,-6 v 4 l 5,-5 -5,-5 v 4 c -4.4,0 -8,3.6 -8,8 z m 6.7,.9 .2,-2.2 h 2.4 v .7 h -1.7 l -0.1,.9 c 0,0 .1,0 .1,-0.1 0,-0.1 .1,0 .1,-0.1 0,-0.1 .1,0 .2,0 h .2 c .2,0 .4,0 .5,.1 .1,.1 .3,.2 .4,.3 .1,.1 .2,.3 .3,.5 .1,.2 .1,.4 .1,.6 0,.2 0,.4 -0.1,.5 -0.1,.1 -0.1,.3 -0.3,.5 -0.2,.2 -0.3,.2 -0.5,.3 C 18.3,22 18.1,22 17.9,22 17.7,22 17.5,22 17.4,21.9 17.3,21.8 17.1,21.8 16.9,21.7 16.7,21.6 16.7,21.5 16.6,21.3 16.5,21.1 16.5,21 16.5,20.8 h .8 c 0,.2 .1,.3 .2,.4 .1,.1 .2,.1 .4,.1 .1,0 .2,0 .3,-0.1 L 18.4,21 c 0,0 .1,-0.2 .1,-0.3 v -0.6 l -0.1,-0.2 -0.2,-0.2 c 0,0 -0.2,-0.1 -0.3,-0.1 h -0.2 c 0,0 -0.1,0 -0.2,.1 -0.1,.1 -0.1,0 -0.1,.1 0,.1 -0.1,.1 -0.1,.1 h -0.6 z"}}]}};
bE=function(){return g.SD?{H:"div",ea:["ytp-icon","ytp-icon-link"]}:{H:"svg",R:{height:"100%",viewBox:"0 0 36 36",width:"100%"},L:[{H:"path",R:{d:"M5.85 18.0c0.0-2.56 2.08-4.65 4.65-4.65h6.0V10.5H10.5c-4.14 .0-7.5 3.36-7.5 7.5s3.36 7.5 7.5 7.5h6.0v-2.85H10.5c-2.56 .0-4.65-2.08-4.65-4.65zM12.0 19.5h12.0v-3.0H12.0v3.0zm13.5-9.0h-6.0v2.85h6.0c2.56 .0 4.65 2.08 4.65 4.65s-2.08 4.65-4.65 4.65h-6.0V25.5h6.0c4.14 .0 7.5-3.36 7.5-7.5s-3.36-7.5-7.5-7.5z",fill:"#fff"}}]}};
cE=function(){return g.SD?{H:"div",ea:["ytp-icon","ytp-icon-next"]}:{H:"svg",R:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},L:[{H:"path",Pa:!0,N:"ytp-svg-fill",R:{d:"M 12,24 20.5,18 12,12 V 24 z M 22,12 v 12 h 2 V 12 h -2 z"}}]}};
g.dE=function(){return g.SD?{H:"div",ea:["ytp-icon","ytp-icon-notifications-active"]}:{H:"svg",R:{fill:"#fff",height:"24px",viewBox:"0 0 24 24",width:"24px"},L:[{H:"path",R:{d:"M7.58 4.08L6.15 2.65C3.75 4.48 2.17 7.3 2.03 10.5h2c.15-2.65 1.51-4.97 3.55-6.42zm12.39 6.42h2c-.15-3.2-1.73-6.02-4.12-7.85l-1.42 1.43c2.02 1.45 3.39 3.77 3.54 6.42zM18 11c0-3.07-1.64-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.63 5.36 6 7.92 6 11v5l-2 2v1h16v-1l-2-2v-5zm-6 11c.14 0 .27-.01.4-.04.65-.14 1.18-.58 1.44-1.18.1-.24.15-.5.15-.78h-4c.01 1.1.9 2 2.01 2z"}}]}};
eE=function(){return g.SD?{H:"div",ea:["ytp-icon","ytp-icon-pause"]}:{H:"svg",R:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},L:[{H:"path",Pa:!0,N:"ytp-svg-fill",R:{d:"M 12,26 16,26 16,10 12,10 z M 21,26 25,26 25,10 21,10 z"}}]}};
fE=function(){return g.SD?{H:"div",ea:["ytp-icon","ytp-icon-play"]}:{H:"svg",R:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},L:[{H:"path",Pa:!0,N:"ytp-svg-fill",R:{d:"M 12,26 18.5,22 18.5,14 12,10 z M 18.5,22 25,18 25,18 18.5,14 z"}}]}};
gE=function(){return g.SD?{H:"div",ea:["ytp-icon","ytp-icon-prev"]}:{H:"svg",R:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},L:[{H:"path",Pa:!0,N:"ytp-svg-fill",R:{d:"m 12,12 h 2 v 12 h -2 z m 3.5,6 8.5,6 V 12 z"}}]}};
hE=function(){return g.SD?{H:"div",ea:["ytp-icon","ytp-icon-replay"]}:{H:"svg",R:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},L:[{H:"path",Pa:!0,N:"ytp-svg-fill",R:{d:"M17,9 C12,9 8,13 8,18 C8,23 12,27 17,27 C19.5,27 21.82,25.95 23.45,24.26 L22.04,22.85 C20.77,24.17 19,25 17,25 C13,25 10,21.86 10,18 C10,14.13 13.13,11 17,11 C20.86,11 24,14 24,18 L21,18 L25,22 L29,18 L26,18 C26,13 22,9 17,9 Z"}}]}};
iE=function(){return g.SD?{H:"div",ea:["ytp-icon","ytp-icon-rewind-five-seconds"]}:{H:"svg",R:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},L:[{H:"path",Pa:!0,N:"ytp-svg-fill",R:{d:"M 18,11 V 7 l -5,5 5,5 v -4 c 3.3,0 6,2.7 6,6 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 h -2 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 0,-4.4 -3.6,-8 -8,-8 z m -1.3,8.9 .2,-2.2 h 2.4 v .7 h -1.7 l -0.1,.9 c 0,0 .1,0 .1,-0.1 0,-0.1 .1,0 .1,-0.1 0,-0.1 .1,0 .2,0 h .2 c .2,0 .4,0 .5,.1 .1,.1 .3,.2 .4,.3 .1,.1 .2,.3 .3,.5 .1,.2 .1,.4 .1,.6 0,.2 0,.4 -0.1,.5 -0.1,.1 -0.1,.3 -0.3,.5 -0.2,.2 -0.3,.2 -0.4,.3 C 18.5,22 18.2,22 18,22 17.8,22 17.6,22 17.5,21.9 17.4,21.8 17.2,21.8 17,21.7 16.8,21.6 16.8,21.5 16.7,21.3 16.6,21.1 16.6,21 16.6,20.8 h .8 c 0,.2 .1,.3 .2,.4 .1,.1 .2,.1 .4,.1 .1,0 .2,0 .3,-0.1 L 18.5,21 c 0,0 .1,-0.2 .1,-0.3 v -0.6 l -0.1,-0.2 -0.2,-0.2 c 0,0 -0.2,-0.1 -0.3,-0.1 h -0.2 c 0,0 -0.1,0 -0.2,.1 -0.1,.1 -0.1,0 -0.1,.1 0,.1 -0.1,.1 -0.1,.1 h -0.7 z"}}]}};
g.jE=function(){return g.SD?{H:"div",ea:["ytp-icon","ytp-icon-settings"]}:{H:"svg",R:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},L:[{H:"path",Pa:!0,R:{d:"m 23.94,18.78 c .03,-0.25 .05,-0.51 .05,-0.78 0,-0.27 -0.02,-0.52 -0.05,-0.78 l 1.68,-1.32 c .15,-0.12 .19,-0.33 .09,-0.51 l -1.6,-2.76 c -0.09,-0.17 -0.31,-0.24 -0.48,-0.17 l -1.99,.8 c -0.41,-0.32 -0.86,-0.58 -1.35,-0.78 l -0.30,-2.12 c -0.02,-0.19 -0.19,-0.33 -0.39,-0.33 l -3.2,0 c -0.2,0 -0.36,.14 -0.39,.33 l -0.30,2.12 c -0.48,.2 -0.93,.47 -1.35,.78 l -1.99,-0.8 c -0.18,-0.07 -0.39,0 -0.48,.17 l -1.6,2.76 c -0.10,.17 -0.05,.39 .09,.51 l 1.68,1.32 c -0.03,.25 -0.05,.52 -0.05,.78 0,.26 .02,.52 .05,.78 l -1.68,1.32 c -0.15,.12 -0.19,.33 -0.09,.51 l 1.6,2.76 c .09,.17 .31,.24 .48,.17 l 1.99,-0.8 c .41,.32 .86,.58 1.35,.78 l .30,2.12 c .02,.19 .19,.33 .39,.33 l 3.2,0 c .2,0 .36,-0.14 .39,-0.33 l .30,-2.12 c .48,-0.2 .93,-0.47 1.35,-0.78 l 1.99,.8 c .18,.07 .39,0 .48,-0.17 l 1.6,-2.76 c .09,-0.17 .05,-0.39 -0.09,-0.51 l -1.68,-1.32 0,0 z m -5.94,2.01 c -1.54,0 -2.8,-1.25 -2.8,-2.8 0,-1.54 1.25,-2.8 2.8,-2.8 1.54,0 2.8,1.25 2.8,2.8 0,1.54 -1.25,2.8 -2.8,2.8 l 0,0 z",
fill:"#fff"}}]}};
kE=function(){return g.SD?{H:"div",ea:["ytp-icon","ytp-icon-stop"]}:{H:"svg",R:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},L:[{H:"path",Pa:!0,N:"ytp-svg-fill",R:{d:"M 12,25 19,25 19,11 12,11 z M 19,25 26,25 26,11 19,11 z"}}]}};
lE=function(){return g.SD?{H:"div",ea:["ytp-icon","ytp-icon-volume-high"]}:{H:"svg",R:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},L:[{H:"path",Pa:!0,R:{d:"M8,21 L12,21 L17,26 L17,10 L12,15 L8,15 L8,21 Z M19,14 L19,22 C20.48,21.32 21.5,19.77 21.5,18 C21.5,16.26 20.48,14.74 19,14 Z M19,11.29 C21.89,12.15 24,14.83 24,18 C24,21.17 21.89,23.85 19,24.71 L19,26.77 C23.01,25.86 26,22.28 26,18 C26,13.72 23.01,10.14 19,9.23 L19,11.29 Z",fill:"#fff"}}]}};
mE=function(){return g.SD?{H:"div",ea:["ytp-icon","ytp-icon-volume-low"]}:{H:"svg",R:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},L:[{H:"path",Pa:!0,R:{d:"M8,21 L12,21 L17,26 L17,10 L12,15 L8,15 L8,21 Z M19,14 L19,22 C20.48,21.32 21.5,19.77 21.5,18 C21.5,16.26 20.48,14.74 19,14 Z",fill:"#fff"}}]}};
nE=function(){return g.SD?{H:"div",ea:["ytp-icon","ytp-icon-volume-muted"]}:{H:"svg",R:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},L:[{H:"path",Pa:!0,N:"ytp-svg-fill",R:{d:"m 21.48,17.98 c 0,-1.77 -1.02,-3.29 -2.5,-4.03 v 2.21 l 2.45,2.45 c .03,-0.2 .05,-0.41 .05,-0.63 z m 2.5,0 c 0,.94 -0.2,1.82 -0.54,2.64 l 1.51,1.51 c .66,-1.24 1.03,-2.65 1.03,-4.15 0,-4.28 -2.99,-7.86 -7,-8.76 v 2.05 c 2.89,.86 5,3.54 5,6.71 z M 9.25,8.98 l -1.27,1.26 4.72,4.73 H 7.98 v 6 H 11.98 l 5,5 v -6.73 l 4.25,4.25 c -0.67,.52 -1.42,.93 -2.25,1.18 v 2.06 c 1.38,-0.31 2.63,-0.95 3.69,-1.81 l 2.04,2.05 1.27,-1.27 -9,-9 -7.72,-7.72 z m 7.72,.99 -2.09,2.08 2.09,2.09 V 9.98 z"}}]}};
pE=function(a){a=a.split("");oE["do"](a,67);oE.NI(a,3);oE.gH(a,13);oE.NI(a,2);return a.join("")};
g.qE=function(a,b){var c=g.x("yt.logging.errors.log");c?c(a,b,void 0,void 0,void 0):(c=g.OD("ERRORS",[]),c.push([a,b,void 0,void 0,void 0]),g.ND("ERRORS",c))};
rE=function(a){return a&&window.yterr?function(){try{return a.apply(this,arguments)}catch(b){g.qE(b)}}:a};
Iia=function(){if(!sE)return null;var a=sE();return"open"in a?a:null};
g.tE=function(a){switch(a&&"status"in a?a.status:-1){case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 304:return!0;default:return!1}};
g.uE=function(a){window.clearInterval(a)};
g.vE=function(a){window.clearTimeout(a)};
g.wE=function(a,b){g.ua(a)&&(a=rE(a));return window.setInterval(a,b)};
g.xE=function(a,b){g.ua(a)&&(a=rE(a));return window.setTimeout(a,b)};
g.yE=function(a){a=a.split("&");for(var b={},c=0,d=a.length;c<d;c++){var e=a[c].split("=");if(1==e.length&&e[0]||2==e.length){var f=Ga(e[0]||""),e=Ga(e[1]||"");f in b?g.sa(b[f])?pb(b[f],e):b[f]=[b[f],e]:b[f]=e}}return b};
g.zE=function(a){"?"==a.charAt(0)&&(a=a.substr(1));return g.yE(a)};
AE=function(a,b,c){var d=a.split("#",2);a=d[0];var d=1<d.length?"#"+d[1]:"",e=a.split("?",2);a=e[0];var e=g.zE(e[1]||""),f;for(f in b)if(c||!Qb(e,f))e[f]=b[f];return g.Dg(a,e)+d};
g.BE=function(a,b){return AE(a,b||{},!1)};
CE=function(a){var b=[];g.Ib(a,function(a,d){var c=g.Fa(d),f;g.sa(a)?f=a:f=[a];(0,g.H)(f,function(a){""==a?b.push(c):b.push(c+"="+g.Fa(a))})});
return b.join("&")};
DE=function(){if(!a)var a=window.document.location.href;a=g.tg(a)[1]||null;return null!==a&&"https"==a};
EE=function(a){if(!b)var b=window.location.href;var c=g.tg(a)[1]||null,d=g.vg(a);c&&d?(a=g.tg(a),b=g.tg(b),a=a[3]==b[3]&&a[1]==b[1]&&a[4]==b[4]):a=d?g.vg(b)==d&&g.wg(b)==g.wg(a):!0;return a};
g.FE=function(a){return-1!=a.indexOf("?")?(a=(a||"").split("#")[0],a=a.split("?",2),g.zE(1<a.length?a[1]:a[0])):{}};
GE=function(a){a=a.split(",");return a=a.map(function(a){return g.zE(a)})};
g.HE=function(a,b){return AE(a,b||{},!0)};
Jia=function(a,b){b=void 0===b?{}:b;var c=EE(a),d;for(d in IE){var e=g.OD(IE[d]),f;if((f=e)&&!(f=c)){var k=a;f=d;var l=g.OD("CORS_HEADER_WHITELIST")||{};f=(k=g.vg(k))?(l=l[k])?g.eb(l,f):!1:!0}f&&(b[d]=e)}return b};
Kia=function(a,b){var c=g.OD("XSRF_FIELD_NAME",void 0),d;b.headers&&(d=b.headers["Content-Type"]);return!b.a1&&(!g.vg(a)||b.withCredentials||g.vg(a)==window.document.location.hostname)&&"POST"==b.method&&(!d||"application/x-www-form-urlencoded"==d)&&!(b.Rb&&b.Rb[c])};
g.KE=function(a,b){var c=b.format||"JSON";b.c1&&(a=window.document.location.protocol+"//"+window.document.location.hostname+(window.document.location.port?":"+window.document.location.port:"")+a);var d=g.OD("XSRF_FIELD_NAME",void 0),e=g.OD("XSRF_TOKEN",void 0),f=b.Wc;f&&(f[d]&&delete f[d],a=g.HE(a,f));var k=b.postBody||"",f=b.Rb;Kia(a,b)&&(f||(f={}),f[d]=e);f&&g.u(k)&&(d=g.zE(k),g.Zb(d,f),k=b.lA&&"JSON"==b.lA?JSON.stringify(d):g.Bg(d));var l=!1,m,n=JE(a,function(a){if(!l){l=!0;m&&g.vE(m);var d=g.tE(a),
e=null;if(d||400<=a.status&&500>a.status)e=Lia(c,a,b.Z0);if(d)a:if(204==a.status)d=!0;else{switch(c){case "XML":d=0==(0,window.parseInt)(e&&e.return_code,10);break a;case "RAW":d=!0;break a}d=!!e}var e=e||{},f=b.context||pa;d?b.Mb&&b.Mb.call(f,a,e):b.onError&&b.onError.call(f,a,e);b.zd&&b.zd.call(f,a,e)}},b.method,k,b.headers,b.responseType,b.withCredentials);
b.bd&&0<b.timeout&&(m=g.xE(function(){l||(l=!0,n.abort(),g.vE(m),b.bd.call(b.context||pa,n))},b.timeout));
return n};
Lia=function(a,b,c){var d=null;switch(a){case "JSON":a=b.responseText;b=b.getResponseHeader("Content-Type")||"";a&&0<=b.indexOf("json")&&(d=JSON.parse(a));break;case "XML":if(b=(b=b.responseXML)?Mia(b):null)d={},(0,g.H)(b.getElementsByTagName("*"),function(a){d[a.tagName]=Nia(a)})}c&&LE(d);
return d};
LE=function(a){if(g.va(a))for(var b in a)"html_content"==b||Ea(b,"_html")?a[b]=Gd(id("HTML that is escaped and sanitized server-side and passed through yt.net.ajax"),a[b]):LE(a[b])};
Mia=function(a){return a?(a=("responseXML"in a?a.responseXML:a).getElementsByTagName("root"))&&0<a.length?a[0]:null:null};
Nia=function(a){var b="";(0,g.H)(a.childNodes,function(a){b+=a.nodeValue});
return b};
g.ME=function(a,b){b.method="POST";b.Rb||(b.Rb={});g.KE(a,b)};
JE=function(a,b,c,d,e,f,k){function l(){4==(m&&"readyState"in m?m.readyState:0)&&b&&rE(b)(m)}
c=void 0===c?"GET":c;d=void 0===d?"":d;var m=Iia();if(!m)return null;"onloadend"in m?m.addEventListener("loadend",l,!1):m.onreadystatechange=l;m.open(c,a,!0);f&&(m.responseType=f);k&&(m.withCredentials=!0);c="POST"==c;if(e=Jia(a,e))for(var n in e)m.setRequestHeader(n,e[n]),"content-type"==n.toLowerCase()&&(c=!1);c&&m.setRequestHeader("Content-Type","application/x-www-form-urlencoded");m.send(d);return m};
OE=function(){return NE("android")&&NE("chrome")&&!(NE("trident/")||NE("edge/"))};
g.PE=function(){return NE("cobalt")};
QE=function(){return NE("(ps3; leanback shell)")||NE("ps3")&&g.PE()};
RE=function(){return NE("(ps4; leanback shell)")||NE("ps4")&&g.PE()};
SE=function(){return g.PE()&&(NE("ps4 vr")||NE("ps4 pro vr"))};
TE=function(){var a=/WebKit\/([0-9]+)/.exec(g.Gb);return!!(a&&600<=(0,window.parseInt)(a[1],10))};
VE=function(){return g.UE&&NE("crkey")};
WE=function(){return NE("nintendo wiiu")};
XE=function(){return NE("iemobile")||NE("windows phone")&&NE("edge")};
YE=function(){return g.mn&&NE("version/")};
NE=function(a){var b=g.Gb;return b?0<=b.toLowerCase().indexOf(a):!1};
g.ZE=function(a,b,c){a&&(c&&!g.PE()?a&&(a=g.ge("IFRAME",{src:'javascript:"data:text/html,<body><img src=\\"'+a+'\\"></body>"',style:"display:none"}),g.Sd(a).body.appendChild(a)):g.OD("USE_NET_AJAX_FOR_PING_TRANSPORT",!1)?JE(a,b):Oia(a,b))};
Oia=function(a,b){var c=new window.Image,d=""+Pia++;$E[d]=c;c.onload=c.onerror=function(){b&&$E[d]&&b();delete $E[d]};
c.src=a};
g.aF=function(a){return g.OD("EXPERIMENT_FLAGS",{})[a]};
cF=function(a,b){var c=g.Wb(b);return new g.Kf(function(b,e){c.Mb=function(a){g.tE(a)?b(a):e(new bF("Request failed, status="+a.status,"net.badstatus",a))};
c.onError=function(a){e(new bF("Unknown request error","net.unknown",a))};
c.bd=function(a){e(new bF("Request timed out","net.timeout",a))};
g.KE(a,c)})};
bF=function(a,b,c){Ca.call(this,a+", errorCode="+b);this.errorCode=b;this.g=c;this.name="PromiseAjaxError"};
dF=function(a,b,c,d){function e(d,l,m){return g.Uf(d,function(d){return 0>=l||403===d.g.status?Pf(new bF("Request retried too many times","net.retryexhausted",d.g)):f(m).then(function(){return e(cF(a,b),l-1,Math.pow(2,c-l+1)*m)})})}
function f(a){return new g.Kf(function(b){(0,window.setTimeout)(b,a)})}
return e(cF(a,b),c-1,d)};
eF=function(a){Ca.call(this,a.message||a.description||a.name);this.o=a instanceof Qia&&a.errorCode==Ria.TIMEOUT;this.A=a instanceof Zf};
fF=function(){Ca.call(this,"Biscotti ID is missing from server")};
gF=function(a,b){this.o=a;this.g=b};
Sia=function(){hF||(hF=g.Uf(cF("//googleads.g.doubleclick.net/pagead/id",iF).then(jF),function(a){return kF(2,a)}));
return hF};
jF=function(a){a=a.responseText;if(!g.Da(a,")]}'"))throw new fF;a=JSON.parse(a.substr(4));if((g.Pb(window,"settings","experiments","flags","html5_serverside_ignore_biscotti_id_on_retry")||g.OD("EXP_HTML5_SERVERSIDE_IGNORE_BISCOTTI_ID_ON_RETRY",!1)||g.aF("html5_serverside_ignore_biscotti_id_on_retry"))&&1<(a.type||1))throw new fF;a=a.id;lF(a);hF=new gF(a);mF(18E5,2);return a};
kF=function(a,b){var c=new eF(b);lF("");hF=new gF(void 0,c);0<a&&mF(12E4,a-1);throw c;};
mF=function(a,b){g.xE(function(){g.Uf(cF("//googleads.g.doubleclick.net/pagead/id",iF).then(jF,function(a){return kF(b,a)}),g.y)},a)};
lF=function(a){g.v("yt.ads.biscotti.lastId_",a,void 0)};
nF=function(){try{var a=g.x("yt.ads.biscotti.getId_");return a?a():Sia()}catch(b){return Pf(b)}};
g.pF=function(a){return oF[a]||(oF[a]=String(a).replace(/\-([a-z])/g,function(a,c){return c.toUpperCase()}))};
g.qF=function(a,b){return a?a.dataset?a.dataset[g.pF(b)]:a.getAttribute("data-"+b):null};
g.rF=function(a,b,c){a&&(a.dataset?a.dataset[g.pF(b)]=String(c):a.setAttribute("data-"+b,c))};
sF=function(a,b){var c;(0,g.Ek)(a,function(a){c=b[a];return!!c});
return c};
uF=function(a,b){if(a in b)return b[a];var c=tF+a.charAt(0).toUpperCase()+a.substr(1);if(c in b)return b[c]};
vF=function(){return!!sF(["fullscreenEnabled","webkitFullscreenEnabled","mozFullScreenEnabled","msFullscreenEnabled"],window.document)};
g.wF=function(){var a=sF(["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"],window.document);return a?a:null};
xF=function(a){var b;vF()?g.wF()==a&&(b=window.document):b=a;b&&(a=sF(["exitFullscreen","webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen"],b))&&a.call(b)};
Tia=function(){var a=window.document;return g.$a(["fullscreenerror","webkitfullscreenerror","mozfullscreenerror","MSFullscreenError"],function(b){return"on"+b.toLowerCase()in a})};
yF=function(a){return g.$a(["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(b){return"on"+b.toLowerCase()in a})};
zF=function(a){this.type="";this.state=this.source=this.data=this.currentTarget=this.relatedTarget=this.target=null;this.charCode=this.keyCode=0;this.shiftKey=this.ctrlKey=this.altKey=!1;this.rotation=this.clientY=this.clientX=0;this.scale=1;this.changedTouches=this.touches=null;if(a=a||window.event){this.event=a;for(var b in a)b in Uia||(this[b]=a[b]);this.scale=a.scale;this.rotation=a.rotation;(b=a.target||a.srcElement)&&3==b.nodeType&&(b=b.parentNode);this.target=b;if(b=a.relatedTarget)try{b=b.nodeName?
b:null}catch(c){b=null}else"mouseover"==this.type?b=a.fromElement:"mouseout"==this.type&&(b=a.toElement);this.relatedTarget=b;this.clientX=void 0!=a.clientX?a.clientX:a.pageX;this.clientY=void 0!=a.clientY?a.clientY:a.pageY;this.keyCode=a.keyCode?a.keyCode:a.which;this.charCode=a.charCode||("keypress"==this.type?this.keyCode:0);this.altKey=a.altKey;this.ctrlKey=a.ctrlKey;this.shiftKey=a.shiftKey;this.g=a.pageX;this.o=a.pageY}};
AF=function(a){if(window.document.body&&window.document.documentElement){var b=window.document.body.scrollTop+window.document.documentElement.scrollTop;a.g=a.clientX+(window.document.body.scrollLeft+window.document.documentElement.scrollLeft);a.o=a.clientY+b}};
Via=function(a,b,c,d){d=void 0===d?!1:d;a.addEventListener&&("mouseenter"!=b||"onmouseenter"in window.document?"mouseleave"!=b||"onmouseenter"in window.document?"mousewheel"==b&&"MozBoxSizing"in window.document.documentElement.style&&(b="MozMousePixelScroll"):b="mouseout":b="mouseover");return Rb(BF,function(e){return!!e.length&&e[0]==a&&e[1]==b&&e[2]==c&&e[4]==!!d})};
g.DF=function(a,b,c,d){d=void 0===d?!1:d;if(!a||!a.addEventListener&&!a.attachEvent)return"";var e=Via(a,b,c,d);if(e)return e;var e=++CF.count+"",f=!("mouseenter"!=b&&"mouseleave"!=b||!a.addEventListener||"onmouseenter"in window.document);var k=f?function(d){d=new zF(d);if(!g.De(d.relatedTarget,function(b){return b==a},!0))return d.currentTarget=a,d.type=b,c.call(a,d)}:function(b){b=new zF(b);
b.currentTarget=a;return c.call(a,b)};
k=rE(k);a.addEventListener?("mouseenter"==b&&f?b="mouseover":"mouseleave"==b&&f?b="mouseout":"mousewheel"==b&&"MozBoxSizing"in window.document.documentElement.style&&(b="MozMousePixelScroll"),a.addEventListener(b,k,d)):a.attachEvent("on"+b,k);BF[e]=[a,b,c,k,d];return e};
g.EF=function(a){a&&("string"==typeof a&&(a=[a]),(0,g.H)(a,function(a){if(a in BF){var b=BF[a],d=b[0],e=b[1],f=b[3],b=b[4];d.removeEventListener?d.removeEventListener(e,f,b):d.detachEvent&&d.detachEvent("on"+e,f);delete BF[a]}}))};
g.FF=function(a){a=a||window.event;a=a.target||a.srcElement;3==a.nodeType&&(a=a.parentNode);return a};
g.GF=function(a){a=a||window.event;return a.keyCode?a.keyCode:a.which};
HF=function(a){a=a||window.event;var b=a.pageX,c=a.pageY;window.document.body&&window.document.documentElement&&(g.oa(b)||(b=a.clientX+window.document.body.scrollLeft+window.document.documentElement.scrollLeft),g.oa(c)||(c=a.clientY+window.document.body.scrollTop+window.document.documentElement.scrollTop));return new g.Md(b,c)};
IF=function(a){a=a||window.event;var b=a.relatedTarget;b||("mouseover"==a.type?b=a.fromElement:"mouseout"==a.type&&(b=a.toElement));return b};
JF=function(a){a=a||window.event;return a.path&&a.path.length?a.path[0]:g.FF(a)};
g.KF=function(a){a=a||window.event;return!1===a.returnValue||a.ox&&a.ox()};
g.LF=function(a,b,c){var d;return d=g.DF(a,b,function(){g.EF(d);c.apply(a,arguments)},!1)};
g.MF=function(a){a=a||window.event;a.returnValue=!1;a.preventDefault&&a.preventDefault()};
g.NF=function(a){this.o=a||window;this.g=[]};
g.OF=function(a){g.EF(a.g);a.g.length=0};
PF=function(a){g.M.call(this);this.g=[];this.o=a};
QF=function(a){for(;a.g.length;){var b=a.g.pop();b.target.removeEventListener(b.name,b.jg,!1)}};
g.RF=function(){g.M.call(this);this.ba=new g.hD;g.N(this,this.ba)};
g.TF=function(a,b,c,d){g.RF.call(this);this.A=!!b;this.D=a;this.J=c||a;this.G=!!d;this.g=new PF(this);g.N(this,this.g);this.C=this.F=null;this.B=this.o=!1;b&&(g.de&&a.setAttribute("draggable","true"),a.style.touchAction="none");SF(this)};
UF=function(a,b,c){a.g.T(a.J,b,c,void 0,!a.A)};
SF=function(a){a.C=null;a.F=null;UF(a,VF("over"),a.Px);UF(a,"touchstart",a.pr);a.A&&UF(a,VF("down"),a.UL)};
WF=function(a,b){for(var c=0;c<b.changedTouches.length;c++){var d=b.changedTouches[c];if(d.identifier==a.F)return d}return null};
VF=function(a){return window.navigator.msPointerEnabled?"MSPointer"+a.charAt(0).toUpperCase()+a.substr(1):"mouse"+a};
XF=function(a){a=a||{};this.url=a.url||"";this.urlV9As2=a.url_v9as2||"";this.args=a.args||g.Wb(Wia);this.assets=a.assets||{};this.attrs=a.attrs||g.Wb(Xia);this.params=a.params||g.Wb(Yia);this.minVersion=a.min_version||"8.0.0";this.fallback=a.fallback||null;this.fallbackMessage=a.fallbackMessage||null;this.html5=!!a.html5;this.disable=a.disable||{};this.loaded=!!a.loaded;this.messages=a.messages||{}};
Zia=function(a){a instanceof XF||(a=new XF(a));return a};
YF=function(a){for(var b=0;b<a.length;b++){var c=a[b];"send_follow_on_ping_action"==c.name&&c.data&&c.data.follow_on_url&&g.ZE(c.data.follow_on_url)}};
g.ZF=function(a,b,c){this.o=a;this.B=b;this.A=c;this.g=void 0};
g.dG=function(a,b,c){var d=g.$F();if(d){var e=d.subscribe(a,function(){var d=arguments;var k=function(){g.aG[e]&&b.apply(c||window,d)};
try{bG[a]?k():g.xE(k,0)}catch(l){g.qE(l)}},c);
g.aG[e]=!0;g.cG[a]||(g.cG[a]=[]);g.cG[a].push(e);return e}return 0};
g.eG=function(a){var b=g.$F();b&&(g.oa(a)?a=[a]:g.u(a)&&(a=[(0,window.parseInt)(a,10)]),(0,g.H)(a,function(a){b.unsubscribeByKey(a);delete g.aG[a]}))};
g.$F=function(){return g.x("ytPubsubPubsubInstance")};
g.fG=function(a,b){var c=g.$F();return c?c.publish.apply(c,arguments):!1};
g.gG=function(a,b){var c=g.dG(a,function(a){b.apply(void 0,arguments);g.eG(c)},void 0)};
g.hG=function(a,b){bG[a]=!0;var c=g.$F();c&&c.publish.apply(c,arguments);bG[a]=!1};
g.nG=function(a,b){iG[a.endpoint]=b;if(a.lm){var c=a.lm;var d={};c.videoId?d.videoId=c.videoId:c.playlistId&&(d.playlistId=c.playlistId);jG[a.lm.token]=d;c=kG(a.endpoint,a.lm.token)}else c=kG(a.endpoint);c.push(a.kA);d=Number(g.aF("web_logging_max_batch")||0)||20;c.length>=d?lG():mG()};
lG=function(){g.vE(oG);if(!g.Tb(pG)){for(var a in pG){var b=qG[a];if(!b){var c=iG[a];if(!c)continue;b=new c;qG[a]=b}var c=void 0,d=a,e=b,f=$ia[d],k=rG[d]||{};rG[d]=k;b=Math.round((0,g.sG)());for(c in pG[d]){var l=e.o();l[f]=kG(d,c);k.dispatchedEventCount=k.dispatchedEventCount||0;k.dispatchedEventCount+=l[f].length;l.requestTimeMs=b;var m=jG[c];if(m)a:{var n=l,q=c;if(m.videoId)var r="VIDEO";else if(m.playlistId)r="PLAYLIST";else break a;n.credentialTransferTokenTargetId=m;n.context=n.context||{};
n.context.user=n.context.user||{};n.context.user.credentialTransferTokens=[{token:q,scope:r}]}delete jG[c];e.A(d,l,{})}c=k;d=b;c.previousDispatchMs&&(b=d-c.previousDispatchMs,e=c.diffCount||0,c.averageTimeBetweenDispatchesMs=e?(c.averageTimeBetweenDispatchesMs*e+b)/(e+1):b,c.diffCount=e+1);c.previousDispatchMs=d;delete pG[a]}g.Tb(pG)||mG()}};
mG=function(){g.vE(oG);oG=g.xE(lG,g.OD("LOGGING_BATCH_TIMEOUT",1E4))};
kG=function(a,b){b||(b="");pG[a]=pG[a]||{};pG[a][b]=pG[a][b]||[];return pG[a][b]};
uG=function(){if(null==g.x("_lact",window)){var a=(0,window.parseInt)(g.OD("LACT"),10),a=(0,window.isFinite)(a)?(0,g.G)()-Math.max(a,0):-1;g.v("_lact",a,window);g.v("_fact",a,window);-1==a&&tG();g.DF(window.document,"keydown",tG);g.DF(window.document,"keyup",tG);g.DF(window.document,"mousedown",tG);g.DF(window.document,"mouseup",tG);g.dG("page-mouse",tG);g.dG("page-scroll",tG);g.dG("page-resize",tG)}};
tG=function(){null==g.x("_lact",window)&&(uG(),g.x("_lact",window));var a=(0,g.G)();g.v("_lact",a,window);-1==g.x("_fact",window)&&g.v("_fact",a,window);g.fG("USER_ACTIVE")};
g.vG=function(){var a=g.x("_lact",window);return null==a?-1:Math.max((0,g.G)()-a,0)};
g.wG=function(a,b,c,d){var e={};e.eventTimeMs=Math.round(d||(0,g.sG)());e[a]=b;e.context={lastActivityMs:String(g.vG())};g.nG({endpoint:"log_event",kA:e,lm:void 0},c)};
xG=function(a){a={client:{hl:a.Sq,gl:a.Rq,clientName:a.Qq,clientVersion:a.innertubeContextClientVersion}};g.OD("DELEGATED_SESSION_ID")&&(a.user={onBehalfOfUser:g.OD("DELEGATED_SESSION_ID")});return a};
yG=function(){return{apiaryHost:g.OD("APIARY_HOST",void 0),mp:g.OD("APIARY_HOST_FIRSTPARTY",void 0),gapiHintOverride:!!g.OD("GAPI_HINT_OVERRIDE",void 0),gapiHintParams:g.OD("GAPI_HINT_PARAMS",void 0),innertubeApiKey:g.OD("INNERTUBE_API_KEY",void 0),innertubeApiVersion:g.OD("INNERTUBE_API_VERSION",void 0),Qq:g.OD("INNERTUBE_CONTEXT_CLIENT_NAME","WEB"),innertubeContextClientVersion:g.OD("INNERTUBE_CONTEXT_CLIENT_VERSION",void 0),Sq:g.OD("INNERTUBE_CONTEXT_HL",void 0),Rq:g.OD("INNERTUBE_CONTEXT_GL",
void 0),xhrApiaryHost:g.OD("XHR_APIARY_HOST",void 0)||"",gn:g.OD("INNERTUBE_HOST_OVERRIDE",void 0)||""}};
zG=function(a,b,c){c.context&&c.context.capabilities&&(c=c.context.capabilities,c.snapshot||c.golden)&&(a="vix");return"/youtubei/"+a+"/"+b};
g.AG=function(a){this.g=a||yG()};
g.BG=function(){return!!g.x("yt.scheduler.instance")};
g.CG=function(a,b,c){(0,window.isNaN)(c)&&(c=void 0);var d=g.x("yt.scheduler.instance.addJob");return d?d(a,b,c):void 0===c?(a(),window.NaN):g.xE(a,c||0)};
g.DG=function(a){if(!(0,window.isNaN)(a)){var b=g.x("yt.scheduler.instance.cancelJob");b?b(a):g.vE(a)}};
EG=function(a){var b=g.x("yt.scheduler.instance.setPriorityThreshold");b&&b(a)};
GG=function(a,b){var c=Object.keys(a).join("");FG("info_"+c+"_"+b)||(a.clientActionNonce=b,g.wG("latencyActionInfo",a,g.AG))};
FG=function(a){HG[a]=HG[a]||{count:0};var b=HG[a];b.count++;b.time=(0,g.sG)();IG||(IG=g.CG(aja,0,5E3));if(10<b.count){if(11==b.count){b=Error("CSI data exceeded logging limit with key: "+a);a={name:g.OD("INNERTUBE_CONTEXT_CLIENT_NAME",1),version:g.OD("INNERTUBE_CONTEXT_CLIENT_VERSION",void 0)};var c=window&&window.yterr||void 0||!1;if(b&&c&&!(5<=JG)){var c=b.stacktrace,d=b.columnNumber;var e=g.x("window.location.href");if(g.u(b))b={message:b,name:"Unknown error",lineNumber:"Not available",fileName:e,
stack:"Not available"};else{var f=!1;try{var k=b.lineNumber||b.line||"Not available"}catch(q){k="Not available",f=!0}try{var l=b.fileName||b.filename||b.sourceURL||pa.$googDebugFname||e}catch(q){l="Not available",f=!0}b=!f&&b.lineNumber&&b.fileName&&b.stack&&b.message&&b.name?b:{message:b.message||"Not available",name:b.name||"UnknownError",lineNumber:k,fileName:l,stack:b.stack||"Not available"}}c=c||b.stack;k=b.lineNumber.toString();(0,window.isNaN)(k)||(0,window.isNaN)(d)||(k=k+":"+d);if(!(KG[b.message]||
0<=c.indexOf("/YouTubeCenter.js")||0<=c.indexOf("/mytube.js"))){l=b.fileName;k={Wc:{a:"logerror",t:"jserror",type:b.name,msg:b.message.substr(0,1E3),line:k,level:"ERROR"},Rb:{url:g.OD("PAGE_NAME",window.location.href),file:l},method:"POST"};c&&(k.Rb.stack=c);for(var m in a)k.Rb["client."+m]=a[m];if(m=g.OD("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS",void 0))for(var n in m)k.Rb[n]=m[n];g.KE("/error_204",k);KG[b.message]=!0;JG++}}}return!0}return!1};
aja=function(){var a=(0,g.sG)(),b;for(b in HG)6E4<a-HG[b].time&&delete HG[b];IG=0};
g.NG=function(a,b,c){var d=c&&0<c?c:0;c=d?(0,g.G)()+1E3*d:0;if((d=d?g.LG:MG)&&window.JSON){g.u(b)||(b=JSON.stringify(b,void 0));try{d.set(a,b,c)}catch(e){d.remove(a)}}};
g.OG=function(a){if(!MG&&!g.LG||!window.JSON)return null;try{var b=MG.get(a)}catch(c){}if(!g.u(b))try{b=g.LG.get(a)}catch(c){}if(!g.u(b))return null;try{b=JSON.parse(b,void 0)}catch(c){}return b};
g.PG=function(a){try{MG&&MG.remove(a),g.LG&&g.LG.remove(a)}catch(b){}};
g.QG=function(){var a=g.OD("client-screen-nonce",void 0);a||(a=g.OD("EVENT_ID",void 0));return a};
bja=function(a,b){this.action=a;this.params=b||{}};
RG=function(a){this.app=this.name=this.id="";this.type="REMOTE_CONTROL";this.avatar=this.username="";this.A=!1;this.capabilities=new px;this.experiments=new px;this.theme="u";new Fl;this.g=this.o="";if(a){this.id=a.id||a.name;this.name=a.name;this.app=a.app;this.type=a.type||"REMOTE_CONTROL";this.username=a.user||"";this.avatar=a.userAvatarUri||"";this.theme=a.theme||"u";var b=a.capabilities||"";this.capabilities.clear();ox(this.capabilities,(0,g.re)(b.split(","),g.ya(waa,cja)));b=a.experiments||
"";this.experiments.clear();ox(this.experiments,b.split(","));this.o=a.remoteControllerUrl||"";this.g=a.localChannelEncryptionKey||""}};
TG=function(a,b){g.M.call(this);this.o=new g.rt(this.C,0,this);g.N(this,this.o);this.A=this.g=0;if(g.ua(a))b&&(a=(0,g.A)(a,b));else if(a&&g.ua(a.handleEvent))a=(0,g.A)(a.handleEvent,a);else throw Error("Invalid listener argument");this.B=a;SG(this)};
SG=function(a){a.o.stop();a.g=5E3+2E4*Math.random()};
UG=function(a,b,c){this.M=a;this.D=b;this.A=new g.hD;this.o=new TG(this.jS,this);this.g=this.bb=null;this.K=!1;this.C=null;this.J="";this.G=this.B=0;this.F=[];this.O=c||!1};
dja=function(a){return{firstTestResults:[""],secondTestResults:!a.g.so,sessionId:a.g.A,arrayId:a.g.ij}};
VG=function(a,b){a.G=b||0;a.o.stop();a.g&&(3==a.g.g&&ZC(a.g),SC(a.g));a.G=0};
WG=function(a){return!!a.g&&3==a.g.g};
eja=function(a,b){(a.D.loungeIdToken=b)||a.o.stop()};
fja=function(){var a=XG;YG();ZG.push(a);$G(ZG)};
g.aH=function(a,b){YG();var c=ZG,d=gja(a,String(b));g.fb(c)?hja(d):($G(c),(0,g.H)(c,function(a){a(d)}))};
YG=function(){ZG||(ZG=g.x("yt.mdx.remote.debug.handlers_")||[],g.v("yt.mdx.remote.debug.handlers_",ZG,void 0))};
hja=function(a){var b=(bH+1)%50;bH=b;cH[b]=a;dH||(dH=49==b)};
$G=function(a){var b=cH;if(b[0]){var c=bH,d=dH?c:-1;do{var d=(d+1)%50,e=b[d];(0,g.H)(a,function(a){a(e)})}while(d!=c);
cH=Array(50);bH=-1;dH=!1}};
gja=function(a,b){var c=((0,g.G)()-ija)/1E3;c.toFixed&&(c=c.toFixed(3));var d=[];d.push("[",c+"s","] ");d.push("[","yt.mdx.remote","] ");d.push(a+": "+b,"\n");return d.join("")};
eH=function(a){a=a||{};this.name=a.name||"";this.id=a.id||a.screenId||"";this.token=a.token||a.loungeToken||"";this.uuid=a.uuid||a.dialId||""};
g.fH=function(a,b){return!!b&&(a.id==b||a.uuid==b)};
gH=function(a){return{name:a.name,screenId:a.id,loungeToken:a.token,dialId:a.uuid}};
jja=function(a){return new eH(a)};
hH=function(a){return g.sa(a)?(0,g.I)(a,jja):[]};
g.iH=function(a){return a?'{name:"'+a.name+'",id:'+a.id.substr(0,6)+"..,token:"+(a.token?".."+a.token.slice(-6):"-")+",uuid:"+(a.uuid?".."+a.uuid.slice(-6):"-")+"}":"null"};
jH=function(a){return g.sa(a)?"["+g.I(a,g.iH).join(",")+"]":"null"};
g.kH=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(a){var b=16*Math.random()|0;return("x"==a?b:b&3|8).toString(16)})};
g.lH=function(a,b){return g.$a(a,function(a){return a||b?!a!=!b?!1:a.id==b.id:!0})};
g.mH=function(a,b){return g.$a(a,function(a){return g.fH(a,b)})};
g.nH=function(a){g.RF.call(this);this.F=a;this.g=[]};
oH=function(a,b){var c=a.get(b.uuid)||a.get(b.id);if(c){var d=c.name;c.id=b.id||c.id;c.name=b.name;c.token=b.token;c.uuid=b.uuid||c.uuid;return c.name!=d}a.g.push(b);return!0};
kja=function(a,b){var c=a.g.length!=b.length;a.g=(0,g.re)(a.g,function(a){return!!g.lH(b,a)});
for(var d=0,e=b.length;d<e;d++)c=oH(a,b[d])||c;return c};
lja=function(a,b){var c=a.g.length;a.g=(0,g.re)(a.g,function(a){return!(a||b?!a!=!b?0:a.id==b.id:1)});
return a.g.length<c};
pH=function(a,b,c,d){g.RF.call(this);this.F=a;this.D=b;this.B=c;this.C=d;this.A=0;this.g=null;this.o=window.NaN};
g.uH=function(){var a=qH(),b=g.rH();g.sH()&&Bb(a,b);a=mja(a);if(g.fb(a))try{tH.remove("remote_sid","/","youtube.com")}catch(c){}else try{tH.set("remote_sid",a.join(","),-1,"/","youtube.com")}catch(c){}};
qH=function(){var a=g.OG("yt-remote-connected-devices")||[];g.yb(a);return a};
mja=function(a){if(g.fb(a))return[];var b=a[0].indexOf("#"),c=-1==b?a[0]:a[0].substring(0,b);return(0,g.I)(a,function(a,b){return 0==b?a:a.substring(c.length)})};
vH=function(a){g.NG("yt-remote-connected-devices",a,86400)};
g.rH=function(){if(wH)return wH;var a=g.OG("yt-remote-device-id");a||(a=g.kH(),g.NG("yt-remote-device-id",a,31536E3));for(var b=qH(),c=1,d=a;g.eb(b,d);)c++,d=a+"#"+c;return wH=d};
xH=function(){return g.OG("yt-remote-session-browser-channel")};
g.sH=function(){return g.OG("yt-remote-session-screen-id")};
nja=function(a){5<a.length&&(a=a.slice(a.length-5));var b=(0,g.I)(yH(),function(a){return a.loungeToken}),c=(0,g.I)(a,function(a){return a.loungeToken});
(0,g.Br)(c,function(a){return!g.eb(b,a)})&&zH();
g.NG("yt-remote-local-screens",a,31536E3)};
yH=function(){return g.OG("yt-remote-local-screens")||[]};
zH=function(){g.NG("yt-remote-lounge-token-expiration",!0,86400)};
oja=function(a,b){g.NG("yt-remote-session-browser-channel",a);g.NG("yt-remote-session-screen-id",b);var c=qH(),d=g.rH();g.eb(c,d)||c.push(d);vH(c);g.uH()};
g.AH=function(a){a||(g.PG("yt-remote-session-screen-id"),g.PG("yt-remote-session-video-id"));g.uH();a=qH();g.kb(a,g.rH());vH(a)};
g.CH=function(){if(!BH){var a=g.uD();a&&(BH=new g.iD(a))}return BH?!!BH.get("yt-remote-use-staging-server"):!1};
EH=function(a){g.nH.call(this,"LocalScreenService");this.A=a;this.o=window.NaN;DH(this);this.info("Initializing with "+jH(this.g))};
FH=function(a){if(a.g.length){var b=(0,g.I)(a.g,function(a){return a.id}),c=a.A.Sh("/pairing/get_lounge_token_batch");
a.A.tt(c,{screen_ids:b.join(",")},(0,g.A)(a.EG,a),(0,g.A)(a.DG,a))}};
DH=function(a){var b=hH(yH()),b=(0,g.re)(b,function(a){return!a.uuid});
return kja(a,b)};
GH=function(a,b){nja((0,g.I)(a.g,gH));b&&zH()};
IH=function(a,b){g.RF.call(this);this.D=b;for(var c=g.OG("yt-remote-online-screen-ids")||"",c=c?c.split(","):[],d={},e=this.D(),f=0,k=e.length;f<k;++f){var l=e[f].id;d[l]=g.eb(c,l)}this.g=d;this.C=a;this.A=this.B=window.NaN;this.o=null;HH("Initialized with "+g.mg(this.g))};
JH=function(a,b,c){var d=a.C.Sh("/pairing/get_screen_availability");a.C.tt(d,{lounge_token:b.token},(0,g.A)(function(a){a=a.screens||[];for(var d=0,e=a.length;d<e;++d)if(a[d].loungeToken==b.token){c("online"==a[d].status);return}c(!1)},a),(0,g.A)(function(){c(!1)},a))};
KH=function(a,b){a:if(g.Lb(b)!=g.Lb(a.g))var c=!1;else{c=g.Ob(b);for(var d=0,e=c.length;d<e;++d)if(!a.g[c[d]]){c=!1;break a}c=!0}c||(HH("Updated online screens: "+g.mg(a.g)),a.g=b,a.Y("screenChange"));pja(a)};
LH=function(a){(0,window.isNaN)(a.A)||g.vE(a.A);a.A=g.xE((0,g.A)(a.qs,a),0<a.B&&a.B<(0,g.G)()?2E4:1E4)};
HH=function(a){g.aH("OnlineScreenService",a)};
MH=function(a){var b={};(0,g.H)(a.D(),function(a){a.token?b[a.token]=a.id:this.oc("Requesting availability of screen w/o lounge token.")});
return b};
pja=function(a){a=g.Ob(g.Jb(a.g,function(a){return a}));
g.yb(a);a.length?g.NG("yt-remote-online-screen-ids",a.join(","),60):g.PG("yt-remote-online-screen-ids")};
g.NH=function(a){g.nH.call(this,"ScreenService");this.D=a;this.o=this.A=null;this.B=[];this.C={};qja(this)};
PH=function(a,b,c,d,e,f){a.info("getAutomaticScreenByIds "+c+" / "+b);c||(c=a.C[b]);var k=a.Zd();if(k=(c?g.mH(k,c):null)||g.mH(k,b)){k.uuid=b;var l=OH(a,k);JH(a.o,l,function(a){e(a?l:null)})}else c?rja(a,c,(0,g.A)(function(a){var f=OH(this,new eH({name:d,
screenId:c,loungeToken:a,dialId:b||""}));JH(this.o,f,function(a){e(a?f:null)})},a),f):e(null)};
QH=function(a,b){for(var c=0,d=a.g.length;c<d;++c)if(a.g[c].name==b)return a.g[c];return null};
rja=function(a,b,c,d){a.info("requestLoungeToken_ for "+b);var e={Rb:{screen_ids:b},method:"POST",context:a,Mb:function(a,e){var f=e&&e.screens||[];f[0]&&f[0].screenId==b?c(f[0].loungeToken):d(Error("Missing lounge token in token response"))},
onError:function(){d(Error("Request screen lounge token failed"))}};
g.KE(a.D.Sh("/pairing/get_lounge_token_batch"),e)};
RH=function(a){a.g=a.A.Zd();var b=a.C,c={},d;for(d in b)c[b[d]]=d;b=0;for(d=a.g.length;b<d;++b){var e=a.g[b];e.uuid=c[e.id]||""}a.info("Updated manual screens: "+jH(a.g))};
qja=function(a){SH(a);a.A=new EH(a.D);a.A.subscribe("screenChange",(0,g.A)(a.RG,a));RH(a);a.B=hH(g.OG("yt-remote-automatic-screen-cache")||[]);SH(a);a.info("Initializing automatic screens: "+jH(a.B));a.o=new IH(a.D,(0,g.A)(a.Zd,a,!0));a.o.subscribe("screenChange",(0,g.A)(function(){this.Y("onlineScreenChange")},a))};
OH=function(a,b){var c=a.get(b.id);c?(c.uuid=b.uuid,b=c):((c=g.mH(a.B,b.uuid))?(c.id=b.id,c.token=b.token,b=c):a.B.push(b),g.NG("yt-remote-automatic-screen-cache",(0,g.I)(a.B,gH)));SH(a);a.C[b.uuid]=b.id;g.NG("yt-remote-device-id-map",a.C,31536E3);return b};
SH=function(a){a.C=g.OG("yt-remote-device-id-map")||{}};
TH=function(a,b,c){g.RF.call(this);this.O=c;this.J=a;this.o=b;this.A=null};
UH=function(a,b){g.aH(a.O,b)};
WH=function(a,b){TH.call(this,a,b,"CastSession");this.g=null;this.B=0;this.D=(0,g.A)(this.sS,this);this.C=(0,g.A)(this.uQ,this);this.B=g.xE((0,g.A)(function(){VH(this,null)},this),12E4)};
sja=function(a){a.info("sendYoutubeMessage_: getMdxSessionStatus "+g.mg(void 0));var b={type:"getMdxSessionStatus"};a.g?a.g.sendMessage("urn:x-cast:com.google.youtube.mdx",b,g.y,(0,g.A)(function(){UH(this,"Failed to send message: getMdxSessionStatus.")},a)):UH(a,"Sending yt message without session: "+g.mg(b))};
VH=function(a,b){g.vE(a.B);if(b){if(a.info("onConnectedScreenId_: Received screenId: "+b),!a.A||a.A.id!=b){var c=(0,g.A)(a.Gn,a),d=(0,g.A)(a.fe,a);a.kw(b,c,d,5)}}else a.fe(Error("Waiting for session status timed out."))};
XH=function(a,b){TH.call(this,a,b,"DialSession");this.B=this.G=null;this.K="";this.C=null;this.F=g.y;this.D=window.NaN;this.M=(0,g.A)(this.vS,this);this.g=g.y};
YH=function(a){a.g=a.J.FB(a.K,a.o.label,a.o.friendlyName,(0,g.A)(function(a){this.g=g.y;this.Gn(a)},a),(0,g.A)(function(a){this.g=g.y;
this.fe(a)},a))};
ZH=function(a){var b={};b.pairingCode=a.K;if(a.C){var c=a.C.currentTime||0;b.v=a.C.videoId;b.t=c}g.CH()&&(b.env_useStageMdx=1);return g.Bg(b)};
$H=function(a,b){TH.call(this,a,b,"ManualSession");this.g=g.xE((0,g.A)(this.jj,this,null),150)};
g.aI=function(a,b){g.RF.call(this);this.o=a;this.D=b||"233637DE";this.g=null;this.C=!1;this.A=[];this.B=(0,g.A)(this.bP,this)};
bI=function(a,b){return b?g.$a(a.A,function(a){return g.fH(b,a.label)},a):null};
cI=function(a){g.aH("Controller",a)};
XG=function(a){window.chrome&&window.chrome.cast&&window.chrome.cast.logMessage&&window.chrome.cast.logMessage(a)};
dI=function(a){return a.C||!!a.A.length||!!a.g};
eI=function(a,b,c){b!=a.g&&(g.Ke(a.g),(a.g=b)?(c?a.Y("yt-remote-cast2-receiver-resumed",b.o):a.Y("yt-remote-cast2-receiver-selected",b.o),b.subscribe("sessionScreen",(0,g.A)(a.Uz,a,b)),b.A?a.Y("yt-remote-cast2-session-change",b.A):c&&a.g.jj(null)):a.Y("yt-remote-cast2-session-change",null))};
fI=function(a){var b=a.o.EB(),c=a.g&&a.g.o;a=(0,g.I)(b,function(a){c&&g.fH(a,c.label)&&(c=null);var b=a.uuid?a.uuid:a.id,d=bI(this,a);d?(d.label=b,d.friendlyName=a.name):(d=new window.chrome.cast.Receiver(b,a.name),d.receiverType=window.chrome.cast.ReceiverType.CUSTOM);return d},a);
c&&(c.receiverType!=window.chrome.cast.ReceiverType.CUSTOM&&(c=new window.chrome.cast.Receiver(c.label,c.friendlyName),c.receiverType=window.chrome.cast.ReceiverType.CUSTOM),a.push(c));return a};
g.gI=function(a){this.index=-1;this.videoId=this.listId="";this.volume=this.g=-1;this.muted=!1;this.audioTrackId=null;this.A=this.G=0;this.o=null;this.hasNext=this.Gf=!1;this.K=this.J=this.B=this.D=0;this.C=window.NaN;this.F=!1;this.reset(a)};
g.hI=function(a){a.audioTrackId=null;a.o=null;a.g=-1;a.Gf=!1;a.hasNext=!1;a.G=0;a.A=(0,g.G)();a.D=0;a.B=0;a.J=0;a.K=0;a.C=window.NaN;a.F=!1};
g.iI=function(a,b){a.G=b;a.A=(0,g.G)()};
g.jI=function(a){switch(a.g){case 1:return((0,g.G)()-a.A)/1E3+a.G;case -1E3:return 0}return a.G};
g.kI=function(a,b,c){var d=a.videoId;a.videoId=b;a.index=c;b!=d&&g.hI(a)};
g.lI=function(a){var b={};b.index=a.index;b.listId=a.listId;b.videoId=a.videoId;b.playerState=a.g;b.volume=a.volume;b.muted=a.muted;b.audioTrackId=a.audioTrackId;b.trackData=Xb(a.o);b.hasPrevious=a.Gf;b.hasNext=a.hasNext;b.playerTime=a.G;b.playerTimeAt=a.A;b.seekableStart=a.D;b.seekableEnd=a.B;b.duration=a.J;b.loadedTime=a.K;b.liveIngestionTime=a.C;return b};
mI=function(a,b,c){this.name=a;this.id=b;this.isDefault=c};
g.nI=function(a){this.languageCode=a.languageCode;this.languageName=a.languageName||null;this.g=a.languageOriginal||null;this.id=a.id||null;this.isDefault=a.is_default||!1};
g.oI=function(a){a=void 0===a?{}:a;this.M=a.formats||"";this.A=a.format||1;if(1==this.A)for(var b=this.M.split(","),c=0;c<b.length;c++){var d=(0,window.parseInt)(b[c],10);(0,window.isNaN)(d)||(this.A=Math.max(d,this.A))}this.o=a.languageCode||"";this.D=a.languageName;this.B=a.kind||"";this.C=a.name;this.Aa=a.id;this.O=a.is_servable;this.G=a.is_translateable;this.J=a.url||null;this.F=a.vss_id||"";this.g=null;a.translationLanguage&&(this.g=new g.nI(a.translationLanguage))};
g.pI=function(a){var b=a.D||"",c=[b];"asr"==a.B&&-1==b.indexOf("(")&&c.push(" ("+g.T("YTP_ASR_SETTINGS_LABEL")+")");a.C&&c.push(" - "+a.C);a.g&&c.push(" >> "+a.g.languageName);return c.join("")};
qI=function(a,b){this.id=a;this.Rc=b;this.captionTracks=[];this.hk=this.qm=null;this.Xu="UNKNOWN"};
g.rI=function(a,b,c){g.RF.call(this);this.C=window.NaN;this.P=!1;this.K=this.J=this.M=this.O=window.NaN;this.V=[];this.B=this.F=this.A=this.gb=this.g=null;this.sa=a;this.V.push(g.DF(window,"beforeunload",(0,g.A)(this.vG,this)));this.o=[];this.gb=new g.gI;this.da=b.id;this.g=tja(this,c);this.g.subscribe("handlerOpened",this.PM,this);this.g.subscribe("handlerClosed",this.MM,this);this.g.subscribe("handlerError",this.NM,this);this.g.subscribe("handlerMessage",this.OM,this);eja(this.g,b.token);this.subscribe("remoteQueueChange",
function(){var a=this.gb.videoId;g.sH()&&g.NG("yt-remote-session-video-id",a)},this)};
sI=function(a){g.aH("conn",a)};
tja=function(a,b){return new UG(a.sa.Sh("/bc",void 0,!1),b)};
tI=function(a,b){a.Y("proxyStateChange",b)};
uja=function(a){a.C=g.xE((0,g.A)(function(){sI("Connecting timeout");this.D(1)},a),2E4)};
uI=function(a){g.vE(a.C);a.C=window.NaN};
vI=function(a){g.vE(a.O);a.O=window.NaN};
vja=function(a){wI(a);a.M=g.xE((0,g.A)(function(){xI(this,"getNowPlaying")},a),2E4)};
wI=function(a){g.vE(a.M);a.M=window.NaN};
zI=function(a,b){b&&(uI(a),vI(a));b==(WG(a.g)&&(0,window.isNaN)(a.C))?b&&(tI(a,1),xI(a,"getSubtitlesTrack")):b?(a.ca()&&a.gb.reset(),tI(a,1),xI(a,"getNowPlaying"),yI(a)):a.D(1)};
wja=function(a,b){var c=b.params.videoId;delete b.params.videoId;c==a.gb.videoId&&(g.Tb(b.params)?a.gb.o=null:a.gb.o=b.params,a.Y("remotePlayerChange"))};
AI=function(a,b){var c=b.params.videoId||b.params.video_id,d=(0,window.parseInt)(b.params.currentIndex,10);a.gb.listId=b.params.listId||a.gb.listId;g.kI(a.gb,c,d);a.Y("remoteQueueChange")};
xja=function(a,b){b.params=b.params||{};AI(a,b);BI(a,b);a.Y("autoplayDismissed")};
BI=function(a,b){var c=(0,window.parseInt)(b.params.currentTime||b.params.current_time,10);g.iI(a.gb,(0,window.isNaN)(c)?0:c);c=(0,window.parseInt)(b.params.state,10);c=(0,window.isNaN)(c)?-1:c;-1==c&&-1E3==a.gb.g&&(c=-1E3);a.gb.g=c;c=Number(b.params.loadedTime);a.gb.K=(0,window.isNaN)(c)?0:c;c=Number(b.params.duration);a.gb.J=(0,window.isNaN)(c)?0:c;var c=a.gb,d=Number(b.params.liveIngestionTime);c.C=d;c.F=(0,window.isNaN)(d)?!1:!0;var c=a.gb,d=Number(b.params.seekableStartTime),e=Number(b.params.seekableEndTime);
c.D=(0,window.isNaN)(d)?0:d;c.B=(0,window.isNaN)(e)?0:e;1==a.gb.g?vja(a):wI(a);a.Y("remotePlayerChange")};
yja=function(a,b){if(-1E3!=a.gb.g){var c=1083;switch((0,window.parseInt)(b.params.adState,10)){case 1:c=1081;break;case 2:c=1082}a.gb.g=c;a.Y("remotePlayerChange")}};
zja=function(a,b){var c="true"==b.params.muted;a.gb.volume=(0,window.parseInt)(b.params.volume,10);a.gb.muted=c;a.Y("remotePlayerChange")};
Aja=function(a,b){a.F=b.params.videoId;a.Y("nowAutoplaying",(0,window.parseInt)(b.params.timeout,10))};
Bja=function(a,b){var c="true"==b.params.hasNext;a.gb.Gf="true"==b.params.hasPrevious;a.gb.hasNext=c;a.Y("previousNextChange")};
yI=function(a){g.vE(a.K);a.K=g.xE((0,g.A)(a.D,a,1),864E5)};
xI=function(a,b,c){c?sI("Sending: action="+b+", params="+g.mg(c)):sI("Sending: action="+b);a.g.sendMessage(b,c)};
CI=function(a,b){this.g=a||0;this.spatialAudioType=b||0};
FI=function(a,b,c,d,e,f,k,l,m,n,q){this.width=a;this.height=b;this.quality=f||DI(a,b);this.o=g.EI[this.quality];this.isAccelerated=!!k;this.fps=c||0;this.stereoLayout=!e||null!=d&&0!=d&&1!=d?0:e;this.projectionType=d?2==d&&2==e?3:d:0;(a=l)||(a=this.fps,b=this.projectionType,c=g.EI[this.quality],a=0==c?g.T("YTP_AUTO"):c+(2==b||3==b||4==b?"s":"p")+(55<a?"60":49<a?"50":39<a?"48":""));this.qualityLabel=a;this.g=m||"";this.primaries=n||"";this.A=!1!==q};
GI=function(a){return"smpte2084"==a.g||"arib-std-b67"==a.g};
DI=function(a,b){for(var c=Math.max(a,b),d=Math.min(a,b),e=HI[0],f=0;f<HI.length;f++){var k=HI[f],l=g.EI[k];if(c>=Math.floor(16*l/9)*FI.prototype.B||d>=l*FI.prototype.B)return e;e=k}return"tiny"};
JI=function(a,b,c,d,e,f,k,l){this.id=a;this.A=0<=b.indexOf("/mp4")?1:0<=b.indexOf("/webm")?2:0<=b.indexOf("/x-flv")?3:0<=b.indexOf("/vtt")?4:0;this.mimeType=b;this.g=k||0;this.B=l||0;this.audio=c||null;this.video=d||null;this.Rc=e||null;this.ed=f||null;this.o=Cja[II(this)]||""};
II=function(a){return a.id.split(";",1)[0]};
KI=function(a){return"9"==a.o||"("==a.o||"9h"==a.o||"(h"==a.o};
LI=function(a){return"9h"==a.o||"(h"==a.o};
MI=function(a){return 1==a.A};
NI=function(a){return!(a.audio&&a.video)};
OI=function(a){return 0<=a.indexOf("opus")||0<=a.indexOf("vorbis")||0<=a.indexOf("mp4a")};
PI=function(a){return 0<=a.indexOf("vp9")||0<=a.indexOf("vp8")||0<=a.indexOf("avc1")};
QI=function(a,b,c,d,e,f,k){var l=new CI;b in g.EI||(b="small");d&&e?(e=(0,window.parseInt)(e,10),d=(0,window.parseInt)(d,10)):(e=g.EI[b],d=Math.round(16*e/9));b=new FI(d,e,0,null,void 0,b,f,void 0,void 0,void 0,k);a=(0,window.unescape)(a.replace(/&quot;/g,'"'));return new JI(c,a,l,b)};
RI=function(a,b){this.experimentIds=a?a.split(","):[];this.flags=g.yE(b||"");var c={};(0,g.H)(this.experimentIds,function(a){c[a]=!0});
this.experiments=c;this.B=!!c["9414740"]};
SI=function(a,b){this.g=a;this.o=!!b;this.A=!1};
TI=function(a){this.Ae=a};
UI=function(a,b,c){this.o=a||0;this.g=b||0;this.A=c};
VI=function(a,b){return a.o==b.o&&a.g==b.g&&a.A==b.A};
WI=function(a,b,c){return new UI(g.EI[a]||0,g.EI[b]||0,c)};
XI=function(a){var b=g.EI.auto;return a.o==b&&a.g==b};
ZI=function(a,b){if(b.A&&XI(b))return YI;if(b.A||XI(a))return b;if(a.A||XI(b))return a;var c=a.o&&b.o?Math.max(a.o,b.o):a.o||b.o,d=a.g&&b.g?Math.min(a.g,b.g):a.g||b.g,c=Math.min(c,d);return c==a.o&&d==a.g?a:new UI(c,d,!1)};
g.$I=function(a){var b=a.g||a.o;return Sb(Dja,function(a){return g.EI[a]==b})||"auto"};
aJ=function(a,b){var c=g.EI[b];return a.o<=c&&(!a.g||a.g>=c)};
Eja=function(){var a=g.OG("yt-player-volume")||{},b=a.volume;return{volume:(0,window.isNaN)(b)?100:g.Hd(Math.floor(b),0,100),muted:!!a.muted}};
bJ=function(a){g.NG("yt-player-bandwidth",a,2592E3)};
cJ=function(){return g.OG("yt-player-quality")||"auto"};
dJ=function(a){g.NG("yt-player-watch-later-pending",a)};
eJ=function(){return g.OG("yt-player-performance-cap")||0};
fJ=function(a,b,c){if(g.va(a)){b="endSeconds startSeconds mediaContentUrl suggestedQuality videoId two_stage_token".split(" ");c={};for(var d=0;d<b.length;d++){var e=b[d];a[e]&&(c[e]=a[e])}return c}return{videoId:a,startSeconds:b,suggestedQuality:c}};
gJ=function(a,b,c){g.u(a)&&(a={mediaContentUrl:a,startSeconds:b,suggestedQuality:c});b=/\/([ve]|embed)\/([^#?]+)/.exec(a.mediaContentUrl);a.videoId=b&&b[2]?b[2]:null;return fJ(a)};
iJ=function(a,b){g.M.call(this);this.app=a;this.g=!0;this.o=null;this.B={};this.C={};this.F={};this.D={};this.A=null;this.G=new window.Set;this.playerType=b;U(this,"cueVideoById",this.Sx);U(this,"loadVideoById",this.uJ);U(this,"cueVideoByUrl",this.jJ);U(this,"loadVideoByUrl",this.vJ);U(this,"playVideo",this.ad);U(this,"pauseVideo",this.ld);U(this,"stopVideo",this.Pf);U(this,"clearVideo",this.hJ);U(this,"getVideoBytesLoaded",this.oJ);U(this,"getVideoBytesTotal",this.pJ);U(this,"getVideoLoadedFraction",
this.sr);U(this,"getVideoStartBytes",this.qJ);U(this,"cuePlaylist",this.iJ);U(this,"loadPlaylist",this.tJ);U(this,"nextVideo",this.oj);U(this,"previousVideo",this.Jk);U(this,"playVideoAt",this.Wx);U(this,"setShuffle",this.setShuffle);U(this,"setLoop",this.xJ);U(this,"getPlaylist",this.Nf);U(this,"getPlaylistIndex",this.Ux);U(this,"getPlaylistId",this.getPlaylistId);U(this,"loadModule",this.Ik);U(this,"unloadModule",this.tn);U(this,"setOption",this.yd);U(this,"getOption",this.Ac);U(this,"getOptions",
this.ci);U(this,"mute",this.mute);U(this,"unMute",this.ug);U(this,"isMuted",this.Ie);U(this,"setVolume",this.setVolume);U(this,"getVolume",this.getVolume);U(this,"seekTo",this.xc);U(this,"getPlayerState",this.Hk);U(this,"getPlaybackRate",this.Tc);U(this,"setPlaybackRate",this.Of);U(this,"getAvailablePlaybackRates",this.nj);U(this,"getPlaybackQuality",this.Gk);U(this,"setPlaybackQuality",this.Kk);U(this,"getAvailableQualityLevels",this.rr);U(this,"getCurrentTime",this.getCurrentTime);U(this,"getDuration",
this.getDuration);U(this,"addEventListener",this.addEventListener);U(this,"removeEventListener",this.removeEventListener);U(this,"getVideoUrl",this.getVideoUrl);U(this,"getDebugText",this.Fk);U(this,"getVideoEmbedCode",this.Vx);U(this,"getVideoData",this.ia);U(this,"addCueRange",this.Rx);U(this,"removeCueRange",this.Xx);U(this,"setSize",this.setSize);U(this,"getApiInterface",this.kJ);U(this,"destroy",this.destroy);U(this,"showVideoInfo",this.ay);U(this,"hideVideoInfo",this.rJ);U(this,"getMediaReferenceTime",
this.mJ);hJ(this,"getInternalApiInterface",this.lJ);hJ(this,"getAdState",this.Tx);hJ(this,"isNotServable",this.sJ);hJ(this,"getUpdatedConfigurationData",this.nJ);hJ(this,"sendAbandonmentPing",this.wJ);hJ(this,"setAutonav",this.Yx);hJ(this,"setAutonavState",this.Zx);hJ(this,"startInteractionLogging",this.yJ);hJ(this,"channelSubscribed",this.fJ);hJ(this,"channelUnsubscribed",this.gJ)};
U=function(a,b,c){a.B[b]=(0,g.A)(function(){jJ(this,b);return c.apply(this,arguments)},a)};
hJ=function(a,b,c){a.C[b]=(0,g.A)(function(){jJ(this,b);return c.apply(this,arguments)},a)};
kJ=function(a){a.A||(a.A=g.Wb(a.B),a.A.addEventListener=(0,g.A)(a.bG,a),a.A.removeEventListener=(0,g.A)(a.cG,a));return a.A};
jJ=function(a,b){var c=a.app.Z;c.experiments.g("web_player_api_logging")&&!a.G.has(b)&&(a.G.add(b),c={callerUrl:c.P,methodName:b},a.app.Z.experiments.g("web_player_gel_logging_killswitch")||a.app.ba.Y("onLogToGel",{payload_name:"webPlayerApiCalled",payload:c}))};
mJ=function(a,b,c){b=g.Hd(Math.floor(b),0,100);(0,window.isFinite)(b)&&lJ(a.app,{volume:b,muted:a.Ie()},c)};
nJ=function(a,b){lJ(a.app,{muted:!0,volume:a.getVolume()},b)};
oJ=function(a,b){lJ(a.app,{muted:!1,volume:Math.max(5,a.getVolume())},b)};
g.pJ=function(a,b,c){this.start=a;this.end=b;this.A=Fja++;a=c||{};this.Aa=a.id||"";this.B=a.priority||7;this.active=!0;this.visible=a.visible||!1;this.style=a.style||"ytp-ad-progress";this.namespace=a.namespace||"";this.color="";a.color&&(b=a.color.toString(16),this.color="#"+Array(7-b.length).join("0")+b);this.g=null;this.tooltip=a.tooltip;this.visible=this.visible;this.style=this.style;this.start=this.start};
Gja=function(a){switch(a.style){case "ytp-chapter-marker":return 8;case "ytp-ad-progress":return 6;case "ytp-time-marker":return Number.POSITIVE_INFINITY;default:return 0}};
g.qJ=function(a,b){return a.start-b.start||a.B-b.B||a.A-b.A};
rJ=function(a,b,c,d){this.videoData=a;this.g=b;this.reason=c;this.o=d};
uJ=function(a){this.g=a;this.o=0;this.C=-1;this.M=this.g.td().volume;this.J=this.g.td().muted;this.D=window.NaN;this.B=0;this.qb=[];this.A=sJ(this.g);this.K=g.tJ(this.g);this.F=this.G=0};
g.vJ=function(a){a.A.startTime=a.B;a.A.endTime=a.o;a.qb.length&&g.Ya(a.qb).isEmpty()?a.qb[a.qb.length-1]=a.A:a.qb.length&&a.A.isEmpty()||a.qb.push(a.A);var b=g.tJ(a.g),c=a.g.g.experiments.o("html5_min_vss_watchtime_to_cut_secs_redux");if(c){var d=b-a.K;var e=a.A;e=(e.endTime-e.startTime)/e.playbackRate;var f=a.g.g.experiments.o("html5_max_vss_watchtime_ratio");e>c&&e>d*f&&(c=g.Wb(a.A),a.A.endTime=a.A.startTime+.001,c.startTime=c.endTime-.001,a.qb.push(c))}a.G+=a.o-a.B;a.A=sJ(a.g);a.B=a.o;a.K=b};
wJ=function(a){return a.G+a.g.o()-a.B};
xJ=function(a){a.qb.length&&a.o==a.B||g.vJ(a);var b=a.qb;a.qb=[];return b};
yJ=function(a,b,c){c-=a.D;return b==a.o&&.5<c};
Hja=function(a,b){if(!a.g.g.experiments.g("segment_volume_reporting"))return!1;var c=a.g.td().volume,d=c!=a.M,e=a.g.td().muted;if(e!=a.J)return a.J=e,!0;!d||0<=a.C||(a.M=c,a.C=b);c=b-a.C;return 0<=a.C&&2<c?(a.C=-1,!0):!1};
zJ=function(a,b){this.g=b;this.A=!1;this.videoData=a};
AJ=function(a,b,c){zJ.call(this,b,c);this.B=a};
g.BJ=function(a){return(a=Ija[a.toString()])?a:"YTP_ERROR_LICENSE"};
Jja=function(){this.C=this.g=window.NaN;this.A=this.B=this.o=!1};
CJ=function(a,b,c,d){if(d=1<d)a.B=!0;if(a.o)b!=a.g&&(a.o=!1);else if(0<b&&a.g==b)return c-a.C>(d||!a.B?1500:400);a.g=b;a.C=c;return!1};
g.DJ=function(a){g.M.call(this);this.P=[];this.Bb=a||this};
EJ=function(a,b,c,d){for(var e=0;e<c.length;e++)a.T(b,c[e],d)};
g.FJ=function(a){for(;a.P.length;){var b=a.P.pop();b.target.removeEventListener(b.name,b.jg)}};
GJ=function(a,b){if(!a)return-1;for(var c=0;c<a.length;c++)if(a.start(c)<=b&&a.end(c)>=b)return c;return-1};
HJ=function(a,b){var c=GJ(a,b);return 0<=c?a.end(c):window.NaN};
IJ=function(a){return a&&a.length?a.end(a.length-1):window.NaN};
JJ=function(){var a=[],b=[];return{start:function(b){return a[b]},
end:function(a){return b[a]},
length:a.length}};
KJ=function(a,b){var c=HJ(a,b);return 0<=c?c-b:0};
LJ=function(a){var b="";if(a)for(var c=0;c<a.length;c++)b+=a.start(c).toFixed(3)+"-"+a.end(c).toFixed(3)+",";return b};
MJ=function(){};
NJ=function(){g.M.call(this);this.o=null;this.D=this.C=!1;this.B=new g.qf;g.N(this,this.B)};
QJ=function(a,b){var c="";b&&(OJ(a,b),c=b.g);a.wd()&&""==c||(c&&a.wd()!=c&&PJ(a,c),b&&b.o||a.load(),a.D||(a.addEventListener("volumechange",a.lv),a.D=!0))};
OJ=function(a,b){a.o&&null!=b&&b.g==a.o.g||(a.o&&a.o.dispose(),a.o=b)};
SJ=function(a){return KJ(RJ(a),a.getCurrentTime())};
TJ=function(a){var b=RJ(a);return 0<IJ(b)&&a.getDuration()?HJ(b,a.getCurrentTime()):0};
UJ=function(a){var b=a.getDuration();return window.Infinity==b?1:b?TJ(a)/b:0};
VJ=function(a){return{vct:a.getCurrentTime().toFixed(3),vd:a.getDuration().toFixed(3),vpl:LJ(a.g.played||JJ()),vbu:LJ(RJ(a)),vpa:a.g.paused,vsk:a.g.seeking,ven:a.g.ended,vpr:a.Tc(),vrs:a.g.readyState,vns:a.g.networkState,vec:a.Lb(),vvol:a.getVolume()}};
WJ=function(a,b,c){g.Me.call(this,b,a);this.g=c||null};
g.XJ=function(a,b){this.o=a||64;this.g=b||null};
YJ=function(a,b){return CJ(a,b.getCurrentTime(),(0,g.sG)(),SJ(b))};
ZJ=function(a,b,c){return b==a.o&&c==a.g||b&128&&!c||b&2&&b&16?a:new g.XJ(b,c)};
$J=function(a,b){return ZJ(a,a.o|b)};
aK=function(a,b){return ZJ(a,a.o&~b)};
bK=function(a){return ZJ(a,(a.o|4)&-9)};
g.V=function(a,b){return!!(a.o&b)};
g.cK=function(a,b){return b.o==a.o&&b.g==a.g};
dK=function(a){return g.V(a,8)&&!g.V(a,2)};
eK=function(a){return g.V(a,64)&&!g.V(a,8)&&!g.V(a,4)};
g.fK=function(a){return g.V(a,1)&&!g.V(a,2)};
gK=function(a){return g.V(a,128)?-1:g.V(a,2)?0:g.V(a,1)&&!g.V(a,32)?3:g.V(a,64)?-1:g.V(a,8)?1:g.V(a,4)?2:-1};
g.hK=function(a,b){this.state=a;this.g=b};
iK=function(a,b){return g.V(a.state,b)&&!g.V(a.g,b)?1:!g.V(a.state,b)&&g.V(a.g,b)?-1:0};
Kja=function(){this.A=0;this.o=this.F=this.B=this.C=window.NaN;this.D=0;this.K=this.M=this.G=this.J=window.NaN;this.g=""};
jK=function(){this.endTime=this.startTime=-1;this.xp="-";this.playbackRate=1;this.visibilityState=0;this.qp="";this.volume=this.connectionType=this.Fh=0;this.muted=!1};
Lja=function(a,b,c,d,e,f,k,l,m,n,q,r,w){this.videoData=a;this.g=b;this.td=c;this.C=d;this.o=e;this.D=f;this.O=k;this.K=l;this.M=m;this.F=n;this.B=q;this.G=r||function(){};
this.A=null;this.J=w||function(){}};
g.tJ=function(a){return kK(a)()};
kK=function(a){if(!a.A){var b=g.ya(function(a){var b=(0,g.sG)();a&&631152E6>=b&&(g.qE(Error("invalid yt.global.now value: "+b)),b=(new Date).getTime()+2);return b},a.g.experiments.g("html5_validate_yt_now"));
a.A=g.ya(function(a){return Math.round(b()-a)/1E3},b());
a.J()}return a.A};
lK=function(a){var b=a.td();g.za(b,a.videoData.td());return b};
nK=function(){return window.navigator.connection&&window.navigator.connection.type?mK[window.navigator.connection.type]||mK.other:0};
sJ=function(a){var b=new jK;b.xp=a.td().cc||"-";b.playbackRate=a.M();var c=a.B();0!=c&&(b.visibilityState=c);a.g.Fh&&(b.Fh=1);c=a.K();c.Rc&&c.Rc.id&&"und"!=c.Rc.id&&(b.qp=c.Rc.id);b.connectionType=nK();b.volume=a.td().volume;b.muted=a.td().muted;return b};
pK=function(a){g.M.call(this);var b=this;this.g=a;this.o={};this.oa=1;this.V=window.NaN;this.A="N";this.D=this.ca=this.B=0;this.K=this.fa="";this.ba=0;this.ga=-1;this.J=this.M=0;this.P=this.G=!1;this.ha=[];this.F=null;(a=window.navigator.getBattery?window.navigator.getBattery():null)&&a.then&&a.then(function(a){b.F=a});
this.O=(this.g.g.experiments.o("html5_disable_qoe_percentage")||0)>Math.floor(100*Math.random());this.g.g.experiments.g("html5_qoe_unstarted_in_initialization")&&g.oK(this,0,"vps",["N"])};
g.oK=function(a,b,c,d){var e=a.o[c];e||(e=[],a.o[c]=e);e.push(b.toFixed(3)+":"+d.join(":"))};
rK=function(a,b){b=0<=b?b:g.tJ(a.g);var c=a.g.D();if(!(0,window.isNaN)(a.da)&&!(0,window.isNaN)(c.B)){var d=c.B-a.da;0<d&&g.oK(a,b,"bwm",[d,(c.F-a.ra).toFixed(3)])}a.da=c.B;a.ra=c.F;(0,window.isNaN)(c.o)||g.oK(a,b,"bwe",[c.o.toFixed(0)]);a.g.videoData.dh&&c.g&&qK(a,"bwinfo",c.g);(0,window.isNaN)(c.A)||(d=c.A,c.C<d&&(d=c.C),g.oK(a,b,"bh",[d.toFixed(3)]));a.F&&g.oK(a,b,"bat",[a.F.level,a.F.charging?"1":"0"]);d=a.g.B();a.ga!=d&&(g.oK(a,b,"vis",[d]),a.ga=d);g.oK(a,b,"cmt",[a.g.o().toFixed(3)]);(d=nK())&&
d!=a.ba&&(g.oK(a,b,"conn",[d]),a.ba=d);0<c.D&&g.oK(a,b,"e2el",[c.D,c.J.toFixed(3),c.G.toFixed(3),c.M.toFixed(3),c.K.toFixed(3)]);null!==a.g.videoData.Gl&&(a.o.acc=[a.g.videoData.Gl.join(":")])};
sK=function(a){var b={event:"streamingstats"};if(a.g.videoData.Ma){b.fmt=II(a.g.videoData.Ma);var c=a.g.videoData.qd;c&&II(c)!=b.fmt&&(b.afmt=II(c))}b.cpn=a.g.videoData.clientPlaybackNonce;b.ei=a.g.videoData.eventId;b.el=a.g.g.g;b.docid=a.g.videoData.videoId;b.ns=a.g.g.Ta;b.fexp=a.g.g.experiments.experimentIds.toString();b.cl=a.g.g.Oa;a.g.videoData.adFormat&&(b.adformat=a.g.videoData.adFormat);a.g.videoData.Ca&&(b.live=a.g.videoData.hg?"dvr":"live");b.seq=a.oa++;return b};
tK=function(a,b){a.g.g.experiments.g("html5_ajax_qoe_retry")?g.Uf(dF(b,{},3,500),g.y):g.ZE(b)};
uK=function(a){var b=0,c;for(c in a.o)b+=c.length+Ld(a.o[c],function(a,b){return a+b.length},0);
1E3<b&&(new g.rt(a.C,0,a)).start()};
vK=function(a,b,c,d){var e=a.g.o();c=[c,e.toFixed(3)];d&&c.push(d);g.oK(a,b,"error",c)};
wK=function(a,b){g.oK(a,g.tJ(a.g),"lra",[b]);qK(a,"live-readahead-seconds",b.toString())};
Nja=function(a){if(g.V(a,128))return"ER";if(g.V(a,512))return"SU";if(g.V(a,16)||g.V(a,32))return"S";var b=Mja[gK(a)];"B"==b&&g.V(a,4)&&(b="PB");return b};
xK=function(a,b){var c=a.o.cat||[];c.push(b);a.o.cat=c};
qK=function(a,b,c,d){var e=a.o.ctmp||[],f=-1!=a.ha.indexOf(b);f||a.ha.push(b);d&&f||(d||(c="t."+g.tJ(a.g).toFixed(3)+";"+c),e.push(b+":"+c),a.o.ctmp=e,uK(a))};
zK=function(a,b,c,d){this.K=b;this.segments=[];this.experimentIds=[];this.If=this.Na=this.M=this.ra=this.Fa=this.ba=this.autoplay=this.autonav=!1;this.ga="yt";this.xh=this.o=this.D=null;this.ca=!1;this.C="watchtime"==c;this.B="playback"==c;this.J="delayplay"==c;this.G="atr"==c;this.Ia="engage"==c;this.Ej=!1;this.Sa=this.G?"/api/stats/"+c:"//"+b.Ng+"/api/stats/"+c;d&&(this.M=d.fs,d.rtn&&(this.o=d.rtn),this.C?(this.Bb=d.state,0<d.rti&&(this.D=d.rti)):(this.Oa=d.mos,this.Ta=d.volume,d.at&&(this.adType=
d.at)),d.autonav&&(this.autonav=d.autonav),d.inview&&(this.ka=d.inview),d.size&&(this.ha=d.size));b.experiments.g("legacy_autoplay_flag")&&(this.autoplay=b.da);this.sb=b.ua;this.tb=g.Wb(b.B);this.ba=b.F;this.ua=b.oa;this.zb=b.g;this.experimentIds=b.experiments.experimentIds;this.oa=b.Ia;this.ga=b.Ta;this.region=b.region;this.Gb=b.Oa?b.Oa.toString():"";this.userAge=b.userAge;this.userGender=b.userGender;this.ob=g.vG();this.Ej=b.Na;this.F=a.oauthToken||this.F;this.adFormat=a.adFormat;this.autoplay=
yK(this.K,a,this.M);this.autonav=a.jn||this.autonav;this.xh=a.xh;this.clientPlaybackNonce=a.clientPlaybackNonce;this.V=a.vssCredentialsToken;this.sa=a.wo;this.mdxEnvironment=a.mdxEnvironment;this.zf=a.zf;this.Af=a.Af;a.Ma&&(this.Za=II(a.Ma),a.qd&&II(a.qd)!=this.Za&&(this.P=II(a.qd)));this.If=a.If;this.gj=a.gj;a.Ca&&(this.Ra=a.hg?"dvr":"live");this.Ek=a.Ek;this.qh=a.qh;this.playbackId=a.playbackId;this.eventId=a.eventId;this.playlistId=a.Js||a.playlistId;this.Rn=a.Rn;this.Wf=a.Wf;this.hf=a.hf;this.co=
a.co;this.subscribed=a.subscribed;this.videoId=a.videoId;this.videoMetadata=a.videoMetadata;this.visitorData=a.visitorData;this.osid=a.osid;this.Yr=a.Yr;this.referrer=a.referrer;this.sh=a.ls||a.sh;this.Oj=a.Oj;this.lo=a.lo;this.Oh=a.Oh};
AK=function(a,b){if(a.G)return null;var c=a.F&&DE(),d=a.Ej&&!!a.visitorData;if(!c&&!d)return null;var e={};c&&(e.Authorization="Bearer "+a.F);d&&(e["X-Goog-Visitor-Id"]=a.visitorData);return{headers:e,withCredentials:!0,zd:b}};
Oja=function(a,b,c,d){b.cmt=b.len;b.lact="0";d=d();d=d.toFixed(3);b.rt=(1*d).toString();a=g.Dg(a,b);c?g.KE(a,c):g.ZE(a)};
CK=function(a){var b={ns:a.ga,el:a.zb,cpn:a.clientPlaybackNonce,docid:a.videoId,ver:2,referrer:a.referrer,cmt:a.g(a.zf),plid:a.playbackId,ei:a.eventId,fmt:a.Za,fs:a.M?"1":"0",rt:a.g(a.kb),of:a.Yr,adformat:a.adFormat,content_v:a.sb,euri:a.ua,lact:a.ob,live:a.Ra,cl:a.Gb,mos:a.Oa,osid:a.osid,state:a.Bb,vm:a.videoMetadata,volume:a.Ta};a.subscribed&&(b.subscribed="1");g.za(b,a.tb);a.autonav&&(b.autonav="1");if(a.K.experiments.g("legacy_autoplay_flag"))a.autoplay&&(b.autoplay="1");else if(a.autoplay||a.If)b.autoplay=
"1";a.ba&&(b.dni="1");a.ra&&(b["final"]="1");a.If&&(b.splay="1");a.Af&&(b.delay=a.Af);a.oa&&(b.hl=a.oa);a.region&&(b.cr=a.region);g.t(a.userAge)&&a.userGender&&(b.uga=a.userGender+a.userAge);g.t(a.fa)&&(b.len=a.g(a.fa));!a.C&&0<a.experimentIds.length&&(b.fexp=a.experimentIds.toString());null!=a.o&&(b.rtn=a.g(a.o));a.sh&&(b.feature=a.sh);a.playlistId&&(b.list=a.playlistId);a.Wf&&(b.ctrl=a.Wf);a.hf&&(b.ytr=a.hf);a.co&&(b.ssrt="1");a.P&&(b.afmt=a.P);a.da&&(b.lio=a.g(a.da));a.C?(b.idpj=a.gj,b.ldpj=a.Ek,
null!=a.D&&(b.rti=a.g(a.D))):g.t(a.adType)&&(b.at=a.adType);(a.B||a.J)&&a.xh&&(b.tst=a.xh);a.ha&&(a.B||a.J)&&(b.size=a.ha);null!=a.ka&&(a.B||a.J)&&(b.inview=a.g(a.ka));a.C&&(a.K.experiments.g("segment_volume_reporting")&&(b.volume=BK(a,(0,g.I)(a.segments,function(a){return a.volume})),b.muted=BK(a,(0,g.I)(a.segments,function(a){return a.muted}))),b.st=BK(a,(0,g.I)(a.segments,function(a){return a.startTime})),b.et=BK(a,(0,g.I)(a.segments,function(a){return a.endTime})),(0,g.Ek)(a.segments,function(a){return 1!=
a.playbackRate})&&(b.rate=BK(a,(0,g.I)(a.segments,function(a){return a.playbackRate}))));
(0,g.Ek)(a.segments,function(a){return 0!=a.visibilityState})&&(b.vis=BK(a,(0,g.I)(a.segments,function(a){return a.visibilityState})));
(0,g.Ek)(a.segments,function(a){return 0!=a.connectionType})&&(b.conn=BK(a,(0,g.I)(a.segments,function(a){return a.connectionType})));
(0,g.Ek)(a.segments,function(a){return 0!=a.Fh})&&(b.blo=BK(a,(0,g.I)(a.segments,function(a){return a.Fh})));
(0,g.Ek)(a.segments,function(a){return"-"!=a.xp})&&(b.cc=(0,g.I)(a.segments,function(a){return a.xp}).join(","));
if((0,g.Ek)(a.segments,function(a){return!!a.qp})){var c="au";
a.B&&(c="au_d");b[c]=(0,g.I)(a.segments,function(a){return a.qp}).join(",")}DE()&&a.V&&(b.ctt=a.V,b.cttype=a.sa,b.mdx_environment=a.mdxEnvironment);
a.Ia&&(b.etype=g.t(a.A)?a.A:0);a.Oj&&(b.uoo=a.Oj);a.lo&&(b.upt=a.lo);a.Oh&&(b.wpid=a.Oh);return b};
BK=function(a,b){return(0,g.I)(b,a.g).join(",")};
DK=function(a){g.M.call(this);this.g=a;this.o=new pK(a);g.N(this,this.o);this.A=new uJ(a);this.D="paused";this.F=window.NaN;this.J=[10,10,10,40];this.K=this.G=0;this.P=this.V=this.O=this.M=this.B=!1;this.C=window.NaN;this.ba=new AJ(this.A,this.g.videoData,this.g.g)};
EK=function(a,b,c){var d=g.tJ(a.g);c=(0,window.isNaN)(c)?d:c;c=Math.ceil(c);var e=a.J[a.G];a.G+1<a.J.length&&a.G++;c+=e;d=1E3*(c-d);a.F=g.xE((0,g.A)(a.nN,a,c,b),d);return c};
GK=function(a,b){var c=lK(a.g);g.za(c,{state:a.D});c=new zK(a.g.videoData,a.g.g,b,c);c.zf=a.g.o();a.g.videoData.Ca||(c.fa=a.g.C());if(a.g.videoData.va){var d=FK(a.g.videoData.va,c.zf);d&&(c.da=d-c.zf)}c.kb=g.tJ(a.g);c.segments=[sJ(a.g)];return c};
HK=function(a,b){var c=GK(a,"watchtime");c.segments=b;c.zf=a.A.o;return c};
IK=function(a){a.A.update();return HK(a,xJ(a.A))};
LK=function(a){a.g.videoData.remarketingUrl&&!a.V&&(JK(a,a.g.videoData.remarketingUrl),a.V=!0);a.g.videoData.ppvRemarketingUrl&&!a.P&&(JK(a,a.g.videoData.ppvRemarketingUrl),a.P=!0);KK(a)};
MK=function(a,b){if(!a.na()){g.V(b.state,2)?(a.D="paused",0<iK(b,2)&&a.B&&IK(a).send()):g.V(b.state,8)?(a.D="playing",a.B&&(0,window.isNaN)(a.F)&&EK(a,!1)):a.D="paused";var c=a.o,d=b.state,e=g.tJ(c.g),f=Nja(b.state);if(f!=c.A){if(!(e<c.B)){if("PL"==c.A)c.J+=e-c.B;else if("B"==c.A&&c.G&&(c.G=!1,c.M+=e-c.B,!c.P&&10<=c.M&&180>=c.J)){c.g.G();if(!c.na()&&!c.O){var k=sK(c);k.qoealert="1";k=g.Dg(c.g.g.Lg,k);tK(c,k)}c.P=!0}"B"!=f||"PL"!=c.A&&"PB"!=c.A||(c.G=!0);c.B=e}"B"==f&&"PL"==c.A||c.g.videoData.dh?rK(c,
e):g.oK(c,e,"cmt",[c.g.o().toFixed(3)]);g.oK(c,e,"vps",[f]);c.A=f;c.B=e}g.V(d,128)&&vK(c,e,d.g.errorCode,d.g.errorDetail);(g.V(d,2)||g.V(d,128))&&c.C(e);g.V(d,8)&&c.g.videoData.Jn&&(c.o.user_intent=[g.tJ(c.g).toString()]);uK(c);a.C&&g.V(b.state,128)&&(a.Xn("error-100"),g.vE(a.C))}};
NK=function(a){a.C=g.wE((0,g.A)(a.Xn,a,"heartbeat"),3E4)};
KK=function(a){a.g.videoData.we.eventLabel=a.g.g.g;a.g.videoData.we.playerStyle=a.g.g.o;a.g.videoData.Mn&&(a.g.videoData.we.feature="pyv");a.g.videoData.we.vid=a.g.videoData.videoId;a.g.videoData.we.isAd=!("adunit"!=a.g.g.g&&!a.g.videoData.Mn)};
JK=function(a,b,c){a.g.g.Na&&a.g.videoData.visitorData&&EE(b)?g.KE(b,{zd:c,headers:{"X-Goog-Visitor-Id":a.g.videoData.visitorData}}):g.ZE(b,c)};
OK=function(a,b){iJ.call(this,a,b);this.g=!1;U(this,"getPresentingPlayerType",this.Wa);U(this,"addInfoCardXml",this.zJ);U(this,"cueVideoByPlayerVars",this.BJ);U(this,"loadVideoByPlayerVars",this.vn);U(this,"preloadVideoByPlayerVars",this.fy);U(this,"seekBy",this.de);U(this,"updatePlaylist",this.WJ);U(this,"updateLastActiveTime",this.VJ);U(this,"updateVideoData",this.XJ);U(this,"getPlayerResponse",this.getPlayerResponse);U(this,"getStoryboardFormat",this.getStoryboardFormat);U(this,"getProgressState",
this.kh);U(this,"getHousebrandProperties",this.EJ);U(this,"setPlaybackQualityRange",this.gy);U(this,"getCurrentPlaylistSequence",this.DJ);U(this,"canPlayType",this.AJ);U(this,"sendVideoStatsEngageEvent",this.fi);U(this,"setCardsVisible",this.Lk);U(this,"handleGlobalKeyDown",this.HJ);U(this,"getAudioTrack",this.jh);U(this,"setAudioTrack",this.vr);U(this,"getAvailableAudioTracks",this.tr);U(this,"getMaxPlaybackQuality",this.FJ);U(this,"setSizeStyle",this.QJ);U(this,"forceFrescaUpdate",this.CJ);U(this,
"setAutonav",this.Yx);U(this,"setAutonavState",this.Zx);U(this,"showControls",this.TJ);U(this,"hideControls",this.IJ);U(this,"getVisibilityState",this.un);U(this,"shouldSendVisibilityState",this.SJ);U(this,"getVideoContentRect",this.ey);U(this,"setSafetyMode",this.PJ);U(this,"setFauxFullscreen",this.MJ);U(this,"cancelPlayback",this.vp);U(this,"getVideoStats",this.qw);U(this,"updateSubtitlesUserSettings",this.wn);U(this,"getSubtitlesUserSettings",this.di);U(this,"resetSubtitlesUserSettings",this.ur);
U(this,"isFastLoad",this.JJ);U(this,"isPeggedToLive",this.isPeggedToLive);U(this,"setMinimized",this.OJ);U(this,"getSphericalConfig",this.GJ);U(this,"setSphericalConfig",this.RJ);U(this,"setBlackout",this.LJ);U(this,"onAdUxClicked",this.KJ);U(this,"toggleSettingsMenu",this.UJ);U(this,"getPlayerSize",this.by);U(this,"setGlobalCrop",this.NJ);U(this,"wakeUpControls",this.ZR);U(this,"isMutedByMutedAutoplay",this.uI)};
PK=function(a,b){OK.call(this,a,b)};
Pja=function(){this.g=8192;this.o=17;this.D=13E4;this.F=.5;this.C=.1;this.B=!1;this.M=!0;this.O=!1;this.G=60;this.A=0;this.K=this.J=!1};
QK=function(a){this.C=Math.exp(Math.log(.5)/a);this.A=this.B=0};
RK=function(a,b,c){this.J=0;this.F=a;this.C=b||.5;this.D=c||0;this.G="index";this.A=0;this.B=[]};
TK=function(a,b){SK(a,"value");var c=b*a.A,d=0,e=window.NaN;a.B.some(function(a){d+=a.weight;e=a.value;if(d>=c)return!0});
return e};
SK=function(a,b){a.G!=b&&(a.G=b,taa(a.B,b))};
UK=function(a){this.B=a;this.A=[]};
Qja=function(a){this.policy=a;this.J=this.K=0;this.B=-1;this.F=(0,g.sG)();this.D=new RK(4,.6);this.G=a.K?new RK(5,.5,.2):new QK(4);this.A=this.policy.B?new QK(this.policy.o):new RK(this.policy.o,.5,this.policy.C);this.C=new UK(this.policy.o);this.g=this.policy.O?new QK(this.policy.G):null;this.o=new RK(30,.5);a=g.OG("yt-player-bandwidth")||{};var b=0<a.byterate?a.byterate:this.policy.D;this.A.g(this.policy.F,b);this.g&&this.g.g(this.policy.F,0<a.ltByterate?a.ltByterate:b);0<a.delay&&this.D.g(1,Math.min(+a.delay,
2));0<a.stall?this.G.g(1,+a.stall):0<a.tailDelay&&this.G.g(1,+a.tailDelay);this.B=(0,g.sG)()};
VK=function(a,b,c){b=Math.max(b,.05);a.A.g(b,c/b);a.g&&a.g.g(b,c/b);a.F=(0,g.sG)()};
XK=function(a,b,c){b=Math.max(b,a.policy.g);a.G.g(1,c/b);WK(a)};
YK=function(a){a=a.D.o();a=(0,window.isNaN)(a)?.5:a;return a=Math.min(a,5)};
ZK=function(a,b,c){(0,window.isNaN)(c)||(a.J+=c);(0,window.isNaN)(b)||(a.K+=b)};
$K=function(a){return a.G.o()||0};
aL=function(a){var b=a.A.o(),b=0<b?b:1;if(!a.policy.M)return b;a=a.C.o();a=0<a?a:1;return a>2*b?(b+a)/2:b};
bL=function(a){a=a.g.o();return 0<a?a:1};
cL=function(a){var b={};b.delay=YK(a);b.stall=$K(a);b.byterate=aL(a);a.g&&(b.ltByterate=bL(a));return b};
WK=function(a){-1<a.B&&3E4<(0,g.sG)()-a.B&&(bJ(cL(a)),a.B=(0,g.sG)())};
dL=function(a){return 4E3<=(0,g.sG)()-a.F};
eL=function(a,b,c,d,e,f,k,l){this.duration=c;this.endTime=b+c;this.ingestionTime=d;this.Ba=a;this.sourceURL=e;this.startTime=b;this.o=k||0;this.range=f||null;this.g=l||!1};
g.fL=function(){this.segments=[]};
gL=function(a,b){if(b>a.Hc())a.segments=[];else{var c=g.Za(a.segments,function(a){return a.Ba>=b},a);
0<c&&a.segments.splice(0,c)}};
hL=function(a,b,c,d,e){this.data=a;this.offset=b;this.size=c;this.type=d;this.o=e?0:8;this.g=this.offset+this.o};
iL=function(a){var b=a.data.getInt32(a.offset+a.o);a.o+=4;return b};
jL=function(a){var b=a.data.getUint32(a.offset+a.o);a.o+=4;return b};
Rja=function(a){var b=a.data,c=a.offset+a.o,b=4294967296*b.getUint32(c)+b.getUint32(c+4);a.o+=8;return b};
kL=function(a){var b=[];do{var c=a.data.getUint8(a.offset+a.o);b.push(c);a.o++}while(0!=c);b.pop()};
lL=function(a){this.data=new window.DataView(new window.ArrayBuffer(a));this.g=0};
mL=function(a,b){a.data.setInt32(a.g,b);a.g+=4};
nL=function(a,b){for(var c=0;c+4<=b.size;)mL(a,b.data.getUint32(b.offset+c)),c+=4;for(;c<b.size;)a.data.setUint8(a.g++,b.data.getUint8(b.offset+c++))};
oL=function(a,b,c){this.Pd=a;this.durationSecs=b;this.context=c};
pL=function(a){this.g=a;this.o=(0,window.parseInt)(this.g["Sequence-Number"],10)||0;this.ingestionTime=((0,window.parseInt)(this.g["Ingestion-Walltime-Us"],10)||0)/1E6;this.A=(((0,window.parseInt)(this.g["First-Frame-Time-Us"],10)||0)+((0,window.parseInt)(this.g["First-Frame-Uncertainty-Us"],10)||0))/1E6;this.F=((0,window.parseInt)(this.g["Target-Duration-Us"],10)||0)/1E6;this.D="T"==this.g["Overlayed-With-Slate"];this.C="T"==this.g["Stream-Finished"];this.B="T"==this.g.Streamable};
qL=function(a){return a.g["Cuepoint-Type"]?new oL((0,window.parseFloat)(a.g["Cuepoint-Playhead-Time-Sec"])||0,(0,window.parseFloat)(a.g["Cuepoint-Total-Duration-Sec"])||0,a.g["Cuepoint-Context"]):null};
rL=function(a,b,c){this.A=a||0;this.yaw=b||0;this.o=c;this.g=c.getUint32(4)};
sL=function(a){var b={};a=a.split("\r\n");for(var c=0;c<a.length;c++){if(0==a[c].length)return b;var d=a[c].match(/([^:]+):\s+([\S\s]+)/);null!=d&&(b[d[1]]=d[2])}return null};
uL=function(a,b){var c=tL(a.data,a.g,1952868452),d=tL(a.data,a.g,1953658222),e=iL(c);iL(c);e&2&&iL(c);var c=e&8?iL(c):0,f=iL(d),k=f&1,e=f&4,l=f&256,m=f&512,n=f&1024,f=f&2048,q=jL(d);k&&iL(d);e&&iL(d);for(var r=k=0;r<q;r++){var w=l?iL(d):c;m&&iL(d);e&&0==r||!n||iL(d);f&&iL(d);k+=w}return k/b};
xL=function(a){a=new window.DataView(a.buffer,a.byteOffset,a.byteLength);return(a=vL(a,1836476516))?wL(a):window.NaN};
tL=function(a,b,c){for(;yL(a,b);){var d=zL(a,b);if(d.type==c)return d;b+=d.size}return null};
vL=function(a,b){for(var c=0;yL(a,c);){var d=zL(a,c);if(d.type==b)return d;c=AL(d.type)?c+8:c+d.size}return null};
BL=function(a,b){if(a.data.getUint8(a.g)){var c=a.data,d=a.g+4;c.setUint32(d,Math.floor(b/4294967296));c.setUint32(d+4,b&4294967295)}else a.data.setUint32(a.g+4,b)};
CL=function(a){if(a.data.getUint8(a.g)){var b=a.data;a=a.g+4;b=4294967296*b.getUint32(a)+b.getUint32(a+4)}else b=a.data.getUint32(a.g+4);return b};
zL=function(a,b){var c=a.getUint32(b),d=a.getUint32(b+4);return new hL(a,b,c,d)};
wL=function(a){var b=a.data.getUint8(a.g)?20:12;return a.data.getUint32(a.g+b)};
DL=function(a){return a.data.getUint32(a.g+8)};
EL=function(a){var b=a.data.getUint8(a.g);a.data.getUint16(a.g+(0==b?22:30));return a.data.getUint32(a.g+(0==b?28:36))};
yL=function(a,b){if(8>a.byteLength-b)return!1;var c=a.getUint32(b);if(8>c||a.byteLength-b<c)return!1;c=a.getUint32(b+4);if(1635148593==c||1635148611==c||1937126244==c||1936995172==c)return!0;for(c=4;8>c;c++){var d=a.getInt8(b+c);if(97>d||122<d)return!1}return!0};
AL=function(a){return 1836019558==a||1836019574==a||1835297121==a||1835626086==a||1937007212==a||1953653094==a||1953653099==a};
Sja=function(a){var b=vL(a,1937011556);if(!b)return null;b=tL(a,b.g+8,1635148593);if(!b)return null;var c=tL(a,b.g+78,1936995172),d=tL(a,b.g+78,1937126244);if(!d)return null;b=null;if(c)switch(c.skip(4),b=c.data.getUint8(c.offset+c.o),c.o+=1,b){default:b=0;break;case 1:b=2;break;case 2:b=1;break;case 3:b=255}c=null;if(d=tL(a,d.g,1886547818)){var e=tL(a,d.g,1886546020),f=tL(a,d.g,2037673328);if(!f&&(f=tL(a,d.g,1836279920),!f))return null;e&&(iL(e),c=iL(e)/65536,iL(e));a=new window.DataView(f.data.buffer,
f.g,f.size-8);return new rL(b,c,a)}return null};
FL=function(a){return(a=tL(a,0,1836019558))?a.offset+a.size:null};
GL=function(a,b){for(var c=tL(a,0,b);c;)a.setUint32(c.offset+4,1936419184),c=tL(a,c.offset+c.size,b)};
HL=function(a,b,c,d){d=void 0===d?!1:d;var e=tL(a,0,1836019558);if(!e)return null;var f=tL(a,e.g,1835427940),k=tL(a,e.g,1953653094),l=tL(a,e.g,1886614376);if(!f||!k)return null;var m=tL(a,k.g,1952868452),n=tL(a,k.g,1953658222),q=tL(a,k.g,1952867444);if(!m||!n||!q)return null;var r=tL(a,k.g,1935763823),w=tL(a,k.g,1935763834);if(r){var z=iL(r);var B=iL(r);if(0!=z||1!=B)return null;z=iL(r)}for(var B=tL(a,k.g,1935828848),k=tL(a,k.g,1936158820),D=iL(m),L=iL(m),Y=D&2,Sa=D&1?Rja(m):0,bb=Y?iL(m):0,ia=D&8?
iL(m):0,$b=D&16?iL(m):0,tb=D&32?iL(m):0,D=iL(n),$f=D&1,ag=D&4,Ak=D&256,m=D&512,wc=D&1024,ac=D&2048,D=iL(n),xc=$f?iL(n):0,ru=ag?iL(n):0,$f=[],ij=[],Bk=[],Qp=[],Km=0,Jd=0,Lm=0;Lm<D;Lm++){var tu=Ak?iL(n):ia;m&&$f.push(iL(n));var Og=tb;ag&&0==Lm?Og=ru:wc&&(Og=iL(n));ij.push(Og);Og=ac?iL(n):0;0==Lm&&(Km=Og);Bk.push(Jd+Og);Qp.push(Lm);Jd+=tu}1<=Math.abs(Jd-b)&&c({flaw:"segDurMismatch",dts:Jd.toFixed(),seg:b.toFixed()});g.yb(Qp,function(a,b){return Bk[a]-Bk[b]});
c=[];for(Jd=0;Jd<D;Jd++)c[Qp[Jd]]=Jd;Jd=Y?4:0;tb=16*D;ag=68+Jd+q.size+tb+(r?r.size:0)+(w?w.size:0)+(B?B.size:0)+(k?k.size:0)+(l?l.size:0);n=ag-e.size;ia=new lL(ag+(d?0:e.offset));!d&&e.offset&&ia.jm(a,0,e.offset);mL(ia,ag);mL(ia,1836019558);nL(ia,f);mL(ia,ag-24-(l?l.size:0));mL(ia,1953653094);mL(ia,16+Jd);mL(ia,1952868452);mL(ia,131072|(Y?2:0));mL(ia,L);Y&&mL(ia,bb);nL(ia,q);mL(ia,20+tb);mL(ia,1953658222);mL(ia,16781057);mL(ia,D);mL(ia,Sa+xc+n);for(a=Jd=0;a<D;a++)e=c[a],d=Math.round(b*e/D),e=Math.round(b*
(e+1)/D)-d,d=d-Jd+Km,mL(ia,e),mL(ia,m?$f[a]:$b),mL(ia,ij[a]),mL(ia,d),Jd+=e;r&&(mL(ia,r.size),mL(ia,1935763823),mL(ia,0),mL(ia,1),mL(ia,z+n));w&&nL(ia,w);B&&nL(ia,B);k&&nL(ia,k);l&&nL(ia,l);return ia.data.buffer};
IL=function(){var a=g.x("yt.player.utils.videoElement_");a||(a=g.ie("VIDEO"),g.v("yt.player.utils.videoElement_",a,void 0));return a};
JL=function(a){var b=IL();try{if(b.canPlayType){a=a?Tja:Uja;for(var c=0;c<a.length;c++)if(b.canPlayType(a[c]))return null}return"fmt.noneavailable"}catch(d){return"html5.missingapi"}};
KL=function(){var a=IL();try{var b=a.muted;a.muted=!b;return a.muted!=b}catch(c){}return!1};
LL=function(a){a=g.ge("DIV",{"class":a});window.document.body.appendChild(a);var b="none"==g.fh(a,"display");g.pe(a);return b};
ML=function(){this.length=1};
NL=function(){this.buffered=new ML};
OL=function(a){NJ.call(this);this.g=a;this.A={}};
PJ=function(a,b){var c=a.Tc();a.g.src=b;a.Of(c)};
RJ=function(a){return a.g.buffered||JJ()};
PL=function(a,b,c){g.bh(a.g,b,c)};
QL=function(a,b){this.o=a;this.A=b;this.B=0;Object.defineProperty(this,"timestampOffset",{get:this.dS,set:this.hS});Object.defineProperty(this,"buffered",{get:this.bS})};
Vja=function(){this.length=0};
RL=function(a){this.activeSourceBuffers=this.sourceBuffers=[];this.g=a;this.o=window.NaN;this.A=0;Object.defineProperty(this,"duration",{get:this.cS,set:this.gS});Object.defineProperty(this,"readyState",{get:this.eS});this.g.addEventListener("webkitsourceclose",(0,g.A)(this.fS,this),!0)};
SL=function(a,b,c,d,e,f){g.DJ.call(this);this.o=this.g=null;this.C=b;this.A=window.MediaSource?new window.MediaSource:window.WebKitMediaSource?new window.WebKitMediaSource:new RL(a.pa());this.G=this.D=this.F=null;this.K=d;this.V=c;this.J=e;this.B=f;EJ(this,this.A,["sourceopen","webkitsourceopen"],this.O);EJ(this,this.A,["sourceclose","webkitsourceclose"],this.M)};
Wja=function(a,b){a.D=b};
Xja=function(a,b){a.G=b};
Yja=function(a){if(!a.F){var b=a.A;b=b.qT?b.g.webkitMediaSourceURL:window.URL.createObjectURL(b);a.F=new SI(b,!0)}return a.F};
UL=function(a,b){TL(a)?a.A.duration=b:a.C=b};
TL=function(a){try{return"open"==a.A.readyState}catch(b){return!1}};
VL=function(a){try{return"closed"==a.A.readyState}catch(b){return!0}};
WL=function(a){return!!(a.g&&a.g.updating||a.o&&a.o.updating)};
XL=function(){return!(!window.MediaSource||!window.MediaSource.isTypeSupported)};
YL=function(a){return a.g?!!a.g.appendBuffer:XL()};
ZL=function(a){if(/opus/.test(a)&&(g.UE&&!li("38")||VE()))return!1;if(window.MediaSource&&window.MediaSource.isTypeSupported)return window.MediaSource.isTypeSupported(a);if(/webm/.test(a)&&!RE())return!1;'audio/mp4; codecs="mp4a.40.2"'==a&&(a='video/mp4; codecs="avc1.4d401f"');return!!IL().canPlayType(a)};
g.$L=function(){this.Gg=this.Fg=!1;this.C=20971520;this.G=8388608;this.o=window.NaN;this.fa=3145728;this.M=62914560;this.ga=10485760;this.Oe=this.kb=0;this.K=window.NaN;this.dr=65536;this.Ng=this.tc=2;this.Mg=25;this.F=2097152;this.Lg=1048576;this.ba=!1;this.P=1800;this.Ta=this.oe=5;this.ob=10;this.V=30;this.Gb=1;this.g=1.15;this.B=1.05;this.Pe=8;this.Vm=!1;this.tf=!0;var a;!(a=NE("xboxone"))&&(a=TE())&&(a=/WebKit\/([0-9]+)/.exec(g.Gb),a=!(a&&602<=(0,window.parseInt)(a[1],10)));this.ar=a||OE();this.Na=
15;this.Bb=90;this.ra=!1;this.Sa=this.oa=!0;this.uc=g.UE&&!0;this.Mr=!0;this.Em=this.ua=!1;this.Ah=.8;this.Kg=this.Jg=!1;this.ka=!0;this.ca=0;this.Vb=this.J=this.Ed=!1;this.Ia=25;this.Ql=!0;this.Bh=this.zb=!1;this.O=6;this.ke=!1;this.xm=this.kc=this.Zb=0;this.Ig=!1;this.da=0;this.sb=this.Za=!1;this.D=.5;this.ha=0;this.Hg=!1;this.Ra=0;this.Rd=this.rf=this.Fa=!1;this.tb=0;this.sf=this.A=this.Cc=this.ne=this.Cd=!1;this.Oa=0;this.Dd=this.sa=!1;this.zi=.5;this.Ai=2;this.Ch=.8;this.yi=.2};
Zja=function(a,b){1080<b.video.o&&!a.Fg&&(a.C=36700160,a.G=5242880,a.fa=10485760,a.F=4194304,a.Fg=!0);2160<b.video.o&&!a.Gg&&(a.C=104857600,a.K=13107200,a.Gg=!0);a.Lg=Math.min(a.F,5*b.g)};
$ja=function(a,b){var c=new g.$L;c.Gb=a.experiments.o("html5_throttle_rate")||c.Gb;a.experiments.g("html5_streaming_xhr")&&(c.ua=!0);c.ca=a.experiments.o("html5_idle_preload_secs");a.experiments.g("html5_use_mediastream_timestamp")&&(c.J=!0);c.Vm=a.experiments.g("html5_use_long_term_bandwidth_estimator");c.O=a.experiments.o("html5_min_buffer_to_resume");c.Zb=a.experiments.o("html5_variability_discount");c.kc=a.experiments.o("html5_variability_no_discount_thresh");c.xm=a.experiments.o("html5_variability_full_discount_thresh");
a.experiments.o("html5_max_av_sync_drift")&&(c.Ia=a.experiments.o("html5_max_av_sync_drift"));var d=a.schedule;d.A.o()==d.policy.D?c.V=10:c.V=a.experiments.o("html5_throttle_burst_secs")||c.V;a.experiments.o("html5_min_secs_between_format_selections")&&(c.Pe=a.experiments.o("html5_min_secs_between_format_selections"));c.da=a.experiments.o("html5_local_max_byterate_lookahead");c.Za=a.experiments.g("html5_stop_overlapping_requests");c.kb=a.experiments.o("html5_min_readbehind_secs");c.Oe=a.experiments.o("html5_min_readbehind_cap_secs");
a.experiments.g("html5_no_clear_on_quota_exceeded")&&(c.sb=!0,c.D=.8);c.ha=a.experiments.o("html5_min_startup_smooth_target")||c.ha;c.Hg=a.experiments.g("html5_preload_size_excludes_metadata");c.Ra=a.experiments.o("html5_max_readahead_bandwidth_cap");c.Fa=a.experiments.g("disable_html5_copy_pre_moof");c.rf=a.experiments.g("html5_disable_audio_append_cap");c.Rd=a.experiments.g("html5_disable_non_contiguous");c.tb=a.experiments.o("html5_post_interrupt_readahead");c.Cd=a.experiments.g("html5_disable_urgent_upgrade_for_quality");
c.ne=a.experiments.g("html5_log_quota_exceeded");a.experiments.g("html5_always_enable_timeouts")&&(c.uc=!1);c.Cc=a.experiments.g("html5_clearance_fix");c.Ta=a.experiments.o("html5_repredict_misses")||c.Ta;a.experiments.g("html5_new_fallback")&&(c.A=!0,c.Bb=10,c.oe=10);c.sf=a.experiments.g("html5_no_downgrade_with_tbd");c.Oa=a.experiments.o("html5_observed_downgrade_prop");c.Dd=a.experiments.g("html5_enable_subsegment_readahead");c.zi=a.experiments.o("html5_subsegment_readahead_target_buffer_health_secs");
c.Ai=a.experiments.o("html5_subsegment_readahead_timeout_secs");c.Ch=a.experiments.o("html5_subsegment_readahead_progress_timeout_fraction");c.yi=a.experiments.o("html5_subsegment_readahead_tail_margin_secs");if(TE()||a.experiments.g("dash_html5_safari8_workarounds"))c.ra=!0;if(NE("trident/")||NE("edge/"))c.o=240;g.dh&&(c.M=41943040);g.aM(a)||!XL()?(c.C=8388608,c.G=524288,c.tc=5,c.fa=2097152,c.F=1048576,c.Ng=1.5,c.Mg=15,c.ba=!XL(),c.tf=!1,c.K=4587520,QE()&&(c.K=786432),c.g*=1.1,c.B*=1.1,c.Kg=!0,c.M=
c.C,c.ga=c.G):a.isMobile&&(c.g*=1.3,c.B*=1.3);VE()&&(d="CHROMECAST/ANCHOVY"==a.B.cmodel,c.C=20971520,c.G=1572864,d&&(c.K=812500,c.P=1E3));c.Mr=a.D;c.Em=!a.experiments.g("disable_fpa_sei_removal")&&NE("windows nt")&&b.Zh();b.bf()&&(a.experiments.g("disable_html5_manifestless_delay")||(c.Ed=!0),c.oa=!1,a.experiments.g("html5_manifestless_always")&&(c.Sa=!1,c.sa=!0));a.isAd()&&(c.O=0);a.experiments.g("html5_streaming_response_mediastream_rewrite")&&b.jb&&b.jb.videoInfos.length&&MI(b.jb.videoInfos[0])&&
!g.PE()&&(c.ua=!0,c.J=!0,c.Vb=!0);/^re/.test(b.clientPlaybackNonce)&&(c.Ig=!0,c.zb=!0);c.ke=b.dh;/^pp/.test(b.clientPlaybackNonce)&&(c.Bh=!0,c.zb=!0);a.schedule.policy.A=b.bf()?.5:0;if(d=a.experiments.o("html5_deadzone_multiplier"))c.g*=d,c.B*=d;if(d=a.experiments.o("html5_request_sizing_multiplier"))c.Ah=d;a.experiments.g("html5_strip_emsg")&&(c.Jg=!0);c.o=a.experiments.o("html5_max_buffer_duration")||c.o;c.Na=a.experiments.o("html5_max_buffer_health_for_downgrade")||c.Na;c.ob=a.experiments.o("html5_min_upgrade_health")||
c.ob;a.experiments.g("disable_html5_streaming_response_timing")&&(c.Ql=!1);bM(a.O,cM)&&(c.K=window.NaN);return c};
dM=function(a,b){this.start=a;this.end=b;this.length=b-a+1};
eM=function(a){a=a.split("-");return 2==a.length&&(a=new dM((0,window.parseInt)(a[0],10),(0,window.parseInt)(a[1],10)),!(0,window.isNaN)(a.start)&&!(0,window.isNaN)(a.end)&&!(0,window.isNaN)(a.length)&&0<a.length)?a:null};
fM=function(a,b){return new dM(a,a+b-1)};
gM=function(a,b,c,d,e,f,k,l,m){this.g=b;this.range=c;this.type=a;this.Ba=0<=d?d:-1;this.startTime=e||0;this.duration=f||0;this.o=k||0;this.wb=0<=l?l:this.range?this.range.length:window.NaN;this.D=!!m;this.range?(this.A=this.o+this.wb==this.range.length,this.C=this.startTime+this.duration*this.o/this.range.length,this.F=this.duration*this.wb/this.range.length):(this.A=0!=this.wb,this.C=this.startTime,this.F=this.duration);this.B=this.C+this.F};
aka=function(a,b,c){var d=!(!b||b.g!=a.g||b.type!=a.type||b.Ba!=a.Ba);return c?d&&(a.range&&b.range?b.range.end==a.range.end:b.range==a.range)&&b.o+b.wb==a.o+a.wb:d};
hM=function(a){return 1==a.type||2==a.type};
iM=function(a,b,c){return c||a.g==b.g?a.range&&b.range?a.range.start+a.o+a.wb==b.range.start+b.o:a.Ba==b.Ba?a.o+a.wb==b.o:a.Ba+1==b.Ba&&0==b.o&&a.A:!1};
bka=function(a){1==a.length||(0,g.Br)(a,function(a){return!!a.range});
for(var b=1;b<a.length;b++);b=a[a.length-1];return new dM(a[0].range.start+a[0].o,b.range.start+b.o+b.wb-1)};
kM=function(a){var b="";g.Ib(jM(a),function(a,d){b+=d+"="+a+","});
return b.slice(0,-1)};
jM=function(a){var b={};b.itag=II(a.g.info);b.seg=a.Ba;a.range&&(b.range=""+(a.range.start+a.o)+"-"+(a.range.start+a.o+a.wb-1));b.time=""+a.C.toFixed(1)+"-"+(a.C+a.F).toFixed(1);b.off=a.o;return b};
lM=function(a,b){this.o=a;this.g=0;this.A=b||0};
mM=function(a){return a.g>=a.o.byteLength};
cka=function(a){var b=new lM(a);nM(b);if(oM(b,[408125543,374648427,174,224]))b=pM(b);else return null;for(var c=a=null;!mM(b);){var d=qM(b,!1);if(21432==d)switch(rM(b)){default:a=0;break;case 1:a=1;break;case 3:a=2;break;case 15:a=255}else 30320==d?c=pM(b):sM(b)}if(!c)return null;for(var b=null,e;!mM(c);)switch(d=qM(c,!1),d){case 30321:if(3!=rM(c))return null;break;case 30324:tM(c);break;case 30323:b=tM(c);break;case 30325:tM(c);break;case 30322:e=qM(c,!0);e=uM(c,e);e=new window.DataView(e.buffer,
e.byteOffset,e.byteLength);break;default:sM(c)}return e?new rL(a,b,e):null};
pM=function(a){var b=qM(a,!0),c=a.o.byteOffset+a.g,c=new window.DataView(a.o.buffer,c,Math.min(b,a.o.buffer.byteLength-c)),c=new lM(c,a.A+a.g);a.g+=b;return c};
rM=function(a){for(var b=qM(a,!0),c=vM(a),d=1;d<b;d++)c=256*c+vM(a);return c};
tM=function(a){var b=qM(a,!0),c=0;4==b?c=a.o.getFloat32(a.g):8==b&&(c=a.o.getFloat64(a.g));a.g+=b;return c};
sM=function(a){var b=qM(a,!0);a.g+=b};
nM=function(a){var b=a.g;a.g=0;var c=!1;wM(a,440786851)&&(a.g=0,wM(a,408125543)&&(c=!0));a.g=b;return c};
xM=function(a){var b=a.g;a.g=0;var c=1E6;oM(a,[408125543,357149030,2807729])&&(c=rM(a));a.g=b;return c};
dka=function(a,b){var c=a.g;a.g=0;if(!yM(a)||!wM(a,160))return a.g=c,window.NaN;qM(a,!0);var d=a.g;if(!wM(a,161))return a.g=c,window.NaN;qM(a,!0);vM(a);var e=vM(a)<<8|vM(a);a.g=d;if(!wM(a,155))return a.g=c,window.NaN;d=rM(a);a.g=c;return(e+d)*b/1E9};
yM=function(a){if(nM(a)){if(!wM(a,408125543))return!1;qM(a,!0)}if(!wM(a,524531317))return!1;qM(a,!0);return!0};
oM=function(a,b){for(var c=0;c<b.length;c++){if(!wM(a,b[c]))return!1;c!=b.length-1&&qM(a,!0)}return!0};
wM=function(a,b){if(mM(a))return!1;for(;qM(a,!1)!=b;)if(sM(a),mM(a))return!1;return!0};
qM=function(a,b){var c=vM(a);if(1==c){for(var d=c=0;7>d;d++)c=256*c+vM(a);return c}for(var e=128,d=0;6>d&&e>c;d++)c=256*c+vM(a),e*=128;return b?c-e:c};
vM=function(a){return a.o.getUint8(a.g++)};
uM=function(a,b){var c=new window.Uint8Array(a.o.buffer,a.o.byteOffset+a.g,b);a.g+=b;return c};
zM=function(a,b,c,d,e){this.info=a;this.g=b;this.range=c;this.o=null;this.B=d;this.A=e};
AM=function(a){return a.range?new window.DataView(a.g,a.range.start,a.range.length):new window.DataView(a.g)};
BM=function(a,b){b=Math.min(b,a.info.wb);var c=fM(a.range.start,b);return[new zM(new gM(a.info.type,a.info.g,a.info.range,a.info.Ba,a.info.startTime,a.info.duration,a.info.o,b,!1),a.g,c,a.B,a.A),new zM(new gM(a.info.type,a.info.g,a.info.range,a.info.Ba,a.info.startTime,a.info.duration,a.info.o+b,a.info.wb-b,a.info.D),a.g,new dM(c.end+1,a.range.end),a.B,!1)]};
CM=function(a,b){if(MI(a.info.g.info)){for(var c=a.info.g.g,d=new window.DataView(a.g),e=window.NaN,f=window.NaN,k=0;yL(d,k);){var l=zL(d,k);(0,window.isNaN)(e)&&(1936286840==l.type?e=DL(l):1836476516==l.type&&(e=wL(l)));if(1952867444==l.type){!e&&c&&(e=xL(c));var m=CL(l);(0,window.isNaN)(f)&&(f=Math.round(b*e)-m);BL(l,m+f)}k=AL(l.type)?k+8:k+l.size}return!0}c=new lM(new window.DataView(a.g));e=a.A?c:new lM(new window.DataView(a.info.g.g.buffer));d=b;f=xM(e);e=c.g;c.g=0;if(yM(c)&&wM(c,231))if(k=qM(c,
!0),d=Math.floor(1E9*d/f),Math.ceil(Math.log(d)/Math.log(2)/8)>k)c=!1;else{for(f=k-1;0<=f;f--)c.o.setUint8(c.g+f,d&255),d>>>=8;c.g=e;c=!0}else c=!1;return c};
DM=function(a){var b;if(MI(a.info.g.info)){for(var c=b=0,d=new window.DataView(a.g);yL(d,b);){var e=zL(d,b);if(1936286840==e.type)var f=DL(e),k=EL(e),c=c+k/f;b=AL(e.type)?b+8:b+e.size}b=c||window.NaN;if(!(0<=b))a:{b=a.info.g.g;for(var c=0,d=new window.DataView(a.g),l,e=0;yL(d,c);){f=zL(d,c);if(1836476516==f.type)l=wL(f);else if(1836019558==f.type){!l&&b&&(l=xL(b));if(!l){b=window.NaN;break a}k=tL(f.data,f.g,1953653094);e+=uL(k,l)}c=AL(f.type)?c+8:c+f.size}b=e||window.NaN}}else l=new lM(new window.DataView(a.g)),
b=a.A?l:new lM(new window.DataView(a.info.g.g.buffer)),b=dka(l,xM(b));return b||a.info.F};
EM=function(a){var b=new window.DataView(a.g);b=(b=vL(b,1936286840))?DL(b):window.NaN;(0,window.isNaN)(b)&&(b=a.info.g.g,a=new window.DataView(a.g),b=(a=vL(a,1836476516))?wL(a):b?xL(b):window.NaN);return b};
FM=function(a){return MI(a.info.g.info)?a.o?a.o.D&&!!tL(new window.DataView(a.g),0,1718909296):!1:nM(new lM(new window.DataView(a.g)))};
eka=function(){this.g=this.mf=this.o=this.A=0};
GM=function(a){a.A=(0,g.sG)();a.o=0;a.mf=0;a.g=0};
HM=function(a,b){a[b]||(a[b]=new eka);return a[b]};
IM=function(a){return(a=fka.exec(a))?a[0]:""};
JM=function(a){return gka.test("https://"+a+"/")};
KM=function(a){a=new g.Ll(a);Ml(a,window.document.location.protocol);g.Nl(a,window.document.location.hostname);window.document.location.port&&g.Ol(a,window.document.location.port);return a.toString()};
LM=function(a){a=new g.Ll(a);Ml(a,window.document.location.protocol);return a.toString()};
MM=function(a){this.B=a;this.C=this.o=this.D="";this.g={};this.A=""};
NM=function(a){a.A||(a.A=hka(a));return a.A};
PM=function(a){OM(a);return a.C};
QM=function(a){OM(a);return Kb(a.g,function(a){return null!==a})};
RM=function(a,b){OM(a);if("/videoplayback"!=a.o){var c=a.clone();c.set("playerfallback",""+b);return c}var d=NM(a),e=new g.Ll(d),c=e.o.match("\\.a1\\.googlevideo\\.com$");e.o.match("\\.googlevideo\\.com$")?(g.Nl(e,"redirector.googlevideo.com"),d=e.toString()):e.o.match("r[1-9].*\\.c\\.youtube\\.com$")?(g.Nl(e,"www.youtube.com"),d=e.toString()):d=KM(d);d=new MM(d);b&&d.set("cmo=pf",""+b);c&&d.set("cmo=td","a1.googlevideo.com");return d};
OM=function(a){if(a.B){if(!SM.test(a.B))throw Error("Untrusted URL: "+a.B);var b=g.Yl(a.B);a.D=b.B;a.C=b.o+(null!=b.C?":"+b.C:"");var c=b.A;if(0==c.indexOf("/videoplayback"))a.o="/videoplayback",c=c.substr(14);else if(0==c.indexOf("/api/manifest/")){var d=c.indexOf("/",14);0<d?(a.o=c.substr(0,d),c=c.substr(d+1)):(a.o=c,c="")}else a.o=c,c="";d=a.g;a.g=TM(c);g.za(a.g,UM(b.jw()));g.za(a.g,d);"index.m3u8"==a.g.file&&(delete a.g.file,a.o+="/file/index.m3u8");a.B="";a.A=""}};
hka=function(a){OM(a);var b=a.D+(a.D?"://":"//")+a.C+a.o;if(QM(a)){var c=[];g.Ib(a.g,function(a,b){null!==a&&c.push(b+"="+a)});
b+="?"+c.join("&")}return b};
TM=function(a){a=a.split("/");var b=0;a[0]||b++;for(var c={};b<a.length;b+=2)a[b]&&VM(c,a[b],a[b+1]);return c};
UM=function(a){a=a.split("&");for(var b={},c=0;c<a.length;c++){var d=a[c],e=d.indexOf("=");0<e?VM(b,d.substr(0,e),d.substr(e+1)):d&&(b[d]="")}return b};
VM=function(a,b,c){if("cmo"==b){var d;0<=(d=c.indexOf("="))?(b="cmo="+c.substr(0,d),c=c.substr(d+1)):0<=(d=c.indexOf("%3D"))&&(b="cmo="+c.substr(0,d),c=c.substr(d+3))}a[b]=c};
WM=function(a){this.g=a;this.o={};this.A=""};
ika=function(a,b){var c=b.indexOf("?");if(0<c){var d=UM(b.substr(c+1));g.Ib(d,function(a,b){this.set(b,a)},a);
b=b.substr(0,c)}c=TM(b);g.Ib(c,function(a,b){this.set(b,a)},a)};
g.XM=function(a){a.A||(a.A=jka(a));return a.A};
jka=function(a){var b=NM(a.g),c=[];g.Ib(a.o,function(a,b){c.push(b+"="+a)});
if(!c.length)return b;var d=c.join("&");a=QM(a.g)?"&":"?";return b+a+d};
YM=function(a,b){var c=new MM(b),d=c.get("req_id");d&&a.set("req_id",d);g.Ib(a.o,function(a,b){c.set(b,null)});
return c};
kka=function(a){this.C=a.clone();this.D=a;this.o=null;this.A=0;this.B=-1;this.g=0};
ZM=function(a){a.o||(a.o=RM(a.C,a.A||1));return a.o};
$M=function(a,b){this.o=a[0].g.C;this.B=b||"";this.g=a;this.range=this.g[0].range&&0<this.g[0].wb?bka(this.g):null;this.A=window.NaN;this.requestId=null};
g.aN=function(a,b,c,d){if(/http[s]?:\/\//.test(a.B))var e=new WM(new MM(a.B));else{var f=a.o;e=f.D;if(b.A){if(b=HM(c,PM(e)),2<=b.mf||1<=b.g)f=ZM(f),c=HM(c,PM(f)),c.mf+c.g<=b.mf+b.g&&(e=f)}else 0<f.A&&(e=ZM(f));e=new WM(e);a.B&&ika(e,a.B)}(d=d||a.range)&&e.set("range",d.toString());a.requestId&&e.set("req_id",a.requestId);(0,window.isNaN)(a.A)||e.set("headm",a.A.toString());return e};
bN=function(a){if(a.range)return a.range.length;a=a.g[0];return Math.round(a.F*a.g.info.g)};
cN=function(a,b,c,d){this.index=null;this.info=b;this.initRange=c||null;this.Jj=!(void 0===d||!d);this.g=null;this.B=this.o=!1;this.C=new kka(a);this.F=null};
dN=function(a,b,c,d,e,f,k){k=void 0===k?0:k;cN.call(this,a,b,d,void 0===f?!1:f);this.index=e||new g.fL;this.D=k;this.J=c;this.G=!0;if(this.A=!c)this.o=!0};
eN=function(a,b,c){this.segments=[];this.o=a;this.A=void 0===b?0:b;this.g=void 0===c?!1:c};
gN=function(a,b,c){b=fN(a,b);return 0<=b&&(c||!a.segments[b].g)};
fN=function(a,b){return g.wb(a.segments,{Ba:b},function(a,b){return a.Ba-b.Ba})};
hN=function(a,b,c){return new eL(b,c.startTime-(c.Ba-b)*a.o,a.o,0,"sq/"+b,void 0,void 0,!0)};
iN=function(a,b,c,d,e,f){e=void 0===e?!1:e;f=void 0===f?14400:f;dN.call(this,a,b,"",void 0,void 0,c,d);this.index=new eN(d||0,f,e)};
jN=function(a){return a.match(/^(\d{4})-(\d{2})-(\d{2})T(\d{2})\:(\d{2})\:(\d{2})\.(\d{3})$/)?a+"Z":a};
kN=function(a,b,c){for(;a;a=a.parentNode)if(a.attributes&&(!c||a.nodeName==c)){var d=a.getAttribute(b);if(d)return d}return""};
lN=function(a,b){for(var c=a;c;c=c.parentNode){var d=c.getElementsByTagName(b);if(0<d.length)return d[0]}return null};
mN=function(a){if(!a)return 0;var b=a.match(/PT(([0-9]*)H)?(([0-9]*)M)?(([0-9.]*)S)?/);return b?3600*(0,window.parseFloat)(b[2]||0)+60*(0,window.parseFloat)(b[4]||0)+(0,window.parseFloat)(b[6]||0):(0,window.parseFloat)(a)};
lka=function(a,b,c,d,e){this.Ba=a;this.Pd=b;this.durationSecs=c;this.g=d||window.NaN;this.o=e||window.NaN};
nN=function(){this.g=[];this.o=null;this.C=0;this.B=[];this.A=!1;this.D=""};
mka=function(a){var b=a.B;a.B=[];return b};
nka=function(){this.B=[];this.g=null;this.o={};this.A={}};
rka=function(a,b,c){var d=[];b=g.ka(b.getElementsByTagName("SegmentTimeline"));for(var e=b.next();!e.done;e=b.next()){var e=e.value,f=e.parentNode.parentNode,k=null;"Period"==f.nodeName?k=oka(a):"AdaptationSet"==f.nodeName?k=pka(a,f.attributes.id?f.attributes.id.value:f.attributes.mimetype.value):"Representation"==f.nodeName&&(k=qka(a,f.attributes.id.value));if(null==k)return;k.update(e,c);pb(d,mka(k))}zb(d,function(a){return a.Pd});
pb(a.B,d)};
ska=function(a){a.g&&(a.g.g=[]);g.Ib(a.o,function(a){a.g=[]});
g.Ib(a.A,function(a){a.g=[]})};
oka=function(a){a.g||(a.g=new nN);return a.g};
pka=function(a,b){a.o[b]||(a.o[b]=new nN);return a.o[b]};
qka=function(a,b){a.A[b]||(a.A[b]=new nN);return a.A[b]};
g.oN=function(){this.La=0;this.g=new window.Float64Array(128);this.o=new window.Float64Array(128);this.B=1;this.A=!1};
pN=function(a){if(a.g.length<a.La+1){var b=2*a.g.length,b=b+2,c=a.g;a.g=new window.Float64Array(b+1);var d=a.o;a.o=new window.Float64Array(b+1);for(b=0;b<a.La+1;b++)a.g[b]=c[b],a.o[b]=d[b]}};
qN=function(a,b,c,d,e,f,k){cN.call(this,a,b,c||void 0,void 0===k?!1:k);this.indexRange=d;this.D=null;this.index=new g.oN;this.A=e;this.lastModified=f};
rN=function(a,b,c,d){for(var e=[];b<=a.index.Hc();b++){var f=a.index,f=fM(f.xn(b),b+1<f.La||f.A?f.g[b+1]-f.g[b]:-1),k=a.index.df(b),l=a.index.getDuration(b),m=Math.max(0,c-f.start),n=Math.min(f.end+1,c+d)-(f.start+m);e.push(new gM(3,a,f,b,k,l,m,n,b==a.index.Hc()&&m+n==f.length));if(f.start+m+n>=c+d)break}return new $M(e)};
sN=function(a,b,c){return a(b,c).then(function(b){var d=!b.responseText||2048<b.responseText.length?"":0==b.responseText.indexOf("https://")?b.responseText:"";return d?sN(a,d,c):b})};
tka=function(a,b){return sN(function(a,b){return dF(a,b,4,1E3)},a,b)};
tN=function(a,b,c){a=void 0===a?"":a;b=void 0===b?null:b;c=void 0===c?!1:c;g.RF.call(this);this.V=this.duration=0;this.isLive=this.A=!1;this.K=(0,g.sG)();this.D=window.Infinity;this.g={};this.ca=a||"";this.F=this.M=0;this.C=null;this.ka=!!b&&b.g("html5_live_nonzero_first_segment_start_time");this.o=!1;this.G=[];this.oa=!!b&&b.g("html5_live_self_init_segments");this.B=null;this.ra=c;this.ha=!b||!b.g("html5_manifest_without_credentials");this.O=0;this.P=!!b&&b.g("disable_html5_manifest_namespace_redux");
this.fa="";this.J=window.NaN;this.ga=b&&b.g("disable_html5_duration_caching")?window.Infinity:10;this.da=!!b&&b.o("html5_stale_dash_manifest_retry_factor")||1};
uka=function(a){return Kb(a.g,function(a){return!!a.info.video&&2160<=a.info.video.o})};
uN=function(a){return Kb(a.g,function(a){return!!a.info.ed})};
vN=function(a,b,c,d,e,f){c=void 0===c?0:c;e=void 0===e?!1:e;return(void 0===d?0:d)?vka(a,b,e,f):wka(a,b,c,e)};
wka=function(a,b,c,d){c=void 0===c?0:c;d=void 0===d?!1:d;var e=new tN;e.duration=c||0;(0,g.H)(a,function(a){var c=wN(a,b,e.duration),f=eM(a.init),m=eM(a.index),n=(0,window.parseInt)(a.clen,10),q=xN(a.url,c,a.s);a=(0,window.parseInt)(a.lmt,10);q&&(c=new qN(q,c,f,m,n,a,d),e.g[c.info.id]=c)});
return e};
vka=function(a,b,c,d){c=void 0===c?!1:c;var e=new tN("",null,!0);(0,g.H)(a,function(a){var f=wN(a,b),l=xN(a.url,f,a.s);a=(0,window.parseInt)(a.target_duration_sec,10);l&&(f=new iN(l,f,c,a,d&&d.g("html5_manifestless_always")),e.g[f.info.id]=f)});
e.A=!0;e.o=!0;e.isLive=!0;return e};
wN=function(a,b,c){c=void 0===c?0:c;var d=a.type,e=a.itag,f=xka(a),k=null;PI(d)&&(k=(a.size||"640x360").split("x"),k=new FI(+k[0],+k[1],+a.fps,+a.projection_type,+a.stereo_layout,void 0,!!a.isAccelerated,a.quality_label,a.eotf,a.primaries,!!a.isAcceleratedUiEnabled),d=yka(d,k));var l=null,m=null;if(OI(d)){l=0;if("258"==e||"261"==e)l=6;l=new CI(l,+a.spatial_audio_type);a.name&&(m=new mI(a.name,a.audio_track_id,"1"==a.isDefault))}var e=(0,window.parseInt)(a.bitrate,10)/8,n=(0,window.parseInt)(a.clen,
10);c=c&&n?n/c:0;var q=null;b&&a.drm_families&&(q={},(0,g.H)(a.drm_families.split(","),function(a){q[a]=b[a]}));
return new JI(f,d,l,k,m,q,e,c)};
xka=function(a){var b=a.itag;a.xtags&&(b=a.itag+";"+a.xtags);return b};
xN=function(a,b,c){c=void 0===c?"":c;var d=new MM(a);a.match(/https:\/\/yt.akamaized.net/)||d.set("alr","yes");d.set("keepalive","yes");d.set("ratebypass","yes");d.set("mime",(0,window.encodeURIComponent)(b.mimeType.split(";")[0]));c&&d.set("signature",pE(c));return d};
AN=function(a,b){var c=kN(b,"id"),c=c.replace(":",";");"captions"==c&&(c=kN(b,"lang"));var d=kN(b,"mimeType"),e=kN(b,"codecs"),d=e?d+'; codecs="'+e+'"':d,e=(0,window.parseInt)(kN(b,"bandwidth"),10)/8,f=(0,window.parseInt)(lN(b,"BaseURL").getAttribute(yN(a,"contentLength")),10),f=a.duration&&f?f/a.duration:0,k=null;if(PI(d)){var k=(0,window.parseInt)(kN(b,"width"),10),l=(0,window.parseInt)(kN(b,"height"),10),m=(0,window.parseInt)(kN(b,"frameRate"),10),n=zka(kN(b,yN(a,"projectionType")));a:switch(kN(b,
yN(a,"stereoLayout"))){case "layout_left_right":var q=1;break a;case "layout_top_bottom":q=2;break a;default:q=0}k=new FI(k,l,m,n,q)}m=l=null;if(OI(d)){kN(b,"audioSamplingRate");var l=(0,window.parseInt)(kN(b.getElementsByTagName("AudioChannelConfiguration")[0],"value"),10),r,m=kN(b,yN(a,"spatialAudioType"));"spatial_audio_type_ambisonics_5_1"==m?r=1:"spatial_audio_type_ambisonics_quad"==m&&(r=2);l=new CI(l,r);r=kN(b,"lang")||"und";(m=lN(b,"Role"))?(q=kN(m,"value")||"",Qb(zN,q)?(m=r+"."+zN[q],n="main"==
q,r=kN(b,yN(a,"langName"))||r+" - "+q,m=new mI(r,m,n)):m=null):m=null}n=null;if(r=lN(b,"ContentProtection"))if(g.PE())if((n=r.attributes.schemeIdUri)&&"http://youtube.com/drm/2012/10/10"==n.value)for(n={},r=r.firstChild;null!=r;r=r.nextSibling)"yt:SystemURL"==r.nodeName&&(n[r.attributes.type.value]=r.textContent.trim());else n=null;else if((n=r.attributes.schemeIdUri)&&"http://youtube.com/drm/2012/10/10"==n.textContent)for(n={},r=r.firstChild;null!=r;r=r.nextSibling)"SystemURL"==r.localName&&"http://youtube.com/yt/2012/10/10"==
r.namespaceURI&&(n[r.attributes.type.textContent]=r.textContent.trim());else n=null;return new JI(c,d,l,k,m,n,e,f)};
zka=function(a){switch(a){case "equirectangular":return 2;case "equirectangular_threed_top_bottom":return 3;case "mesh":return 4;case "rectangular":return 1;default:return 0}};
BN=function(a,b){b=void 0===b?"":b;a.F=1;a.K=(0,g.sG)();return g.Uf(tka(b||a.ca,{format:"RAW",method:"GET",withCredentials:a.ha}).then((0,g.A)(a.zG,a)),(0,g.A)(a.CG,a))};
Aka=function(a,b,c){var d=a.getAttribute("media"),e=null;c||(a=a.getAttribute("mediaRange"),null!=a&&(0<=(0,window.parseInt)(a.split("-")[1],10)?e=eM(a):d=d+"?range="+a));return new eL(b.Ba,b.Pd,b.durationSecs,b.g,d,e,b.o)};
CN=function(a){return a.isLive&&(0,g.sG)()-a.K>=a.D};
DN=function(a,b){var c=b||1<=a.da?a.D:a.D*a.da*(1+Math.random());(0,window.isFinite)(c)&&(CN(a)?a.jy():(c=Math.max(0,a.K+c-(0,g.sG)()),a.B||(a.B=new g.rt(a.jy,c,a),g.N(a,a.B)),a.B.start(c)))};
EN=function(a){if(!(0,window.isNaN)(a.J))return a.J;var b=a.g,c;for(c in b){var d=b[c].index;if(d&&d.Pb()){b=0;for(c=d.ng();c<=d.Hc();c++)b+=d.getDuration(c);b/=d.Ri();b=.5*Math.round(b/.5);d.Ri()>a.ga&&(a.J=b);return b}if(a.isLive&&(d=b[c],d.D))return d.D}return window.NaN};
FK=function(a,b){for(var c in a.g){var d=a.g[c].index;if(d&&d.Pb()){var e=d.Xg(b),f=d.wr(e);if(f)return f+b-d.df(e)}}return window.NaN};
Bka=function(a,b){g.Ib(a.g,function(a){g.Ib(b,function(b,c){var d=a.C;d.D.set(c,b);d.C.set(c,b);d.o&&d.o.set(c,b)})})};
FN=function(a,b){var c=!1,d;for(d in a.g){var e=a.g[d].index;gN(e,b.Ba)||(e.iy(b),c=!0)}return c};
yN=function(a,b){return a.P?"yt:"+b:a.fa+":"+b};
yka=function(a,b){if('video/webm; codecs="vp9.2"'!=a)return a;null===GN&&(GN=window.MediaSource&&window.MediaSource.isTypeSupported&&window.MediaSource.isTypeSupported('video/webm; codecs="vp09.02.51.10.01.09.16"')&&!window.MediaSource.isTypeSupported('video/webm; codecs="vp09.02.51.10.01.09.99"'));GN&&(a='video/webm; codecs="vp09.02.51.10.01.'+("bt2020"==b.primaries?"09":"01")+"."+("smpte2084"==b.g?"16":"arib-std-b67"==b.g?"18":"01")+'"');return a};
HN=function(a,b,c,d){this.g=a;this.o=b;this.C=c;this.B={};this.A=null;this.fairPlayCert="";this.D=!!d&&d.g("edge_nonprefixed_eme")};
JN=function(a){return a.D?!1:!a.A&&!!IN()&&"com.microsoft.playready"==a.o};
KN=function(a){return!a.A&&!!IN()&&"com.apple.fps.1_0"==a.o};
IN=function(){var a=window.MSMediaKeys;TE()&&!a&&(a=window.WebKitMediaKeys);return a&&a.isTypeSupported?a:null};
NN=function(a){return window.navigator.requestMediaKeySystemAccess?g.UE?li("45"):g.LN?a.g("edge_nonprefixed_eme"):g.MN?li("47"):!a.g("html5_no_nonprefixed_eme_for_other"):!1};
ON=function(a,b,c){this.videoInfos=a;this.g=b||null;this.audioTracks=[];this.o=c||null;if(this.g){var d={};(0,g.H)(this.g,(0,g.A)(function(a){if(a.Rc&&!d[a.id]){var b=new qI(a.id,a.Rc);d[a.id]=b;this.audioTracks.push(b)}},this))}};
PN=function(a){this.A=a||null;this.o=0;this.g=null};
QN=function(a){var b=new PN;b.o=2;b.g=a;return b};
RN=function(a){var b=new PN;b.o=1;b.g=a;return b};
Cka=function(a,b,c){this.A=a;this.g=b;this.D=c;this.B={};this.C=!!g.x("cast.receiver.platform.canDisplayType");this.o=!this.C&&g.x("cast.receiver.platform.getValue")&&window.cast.receiver.platform.getValue("max-video-resolution-vpx")||null};
UN=function(a,b,c){if(2.2!=SN&&JL(a.g)||c)return QN();var d={};a=IL();b=g.ka(b);for(c=b.next();!c.done;c=b.next())if(c=c.value,II(c.Ae)in Dka||"5"==II(c.Ae)?0:TN(a,c.Ae.mimeType)){var e=c.Ae.video.quality;d[e]&&2!=d[e].Ae.A||(d[e]=c)}var f=[];d.auto&&f.push(d.auto);(0,g.H)(HI,function(a){(a=d[a])&&f.push(a)});
return RN(f)};
VN=function(){var a=OE()&&!li(29),b=NE("google tv")&&NE("chrome")&&!li(30);return a||b?!1:!!(window.MediaSource||window.WebKitMediaSource||window.HTMLMediaElement&&window.HTMLMediaElement.prototype.webkitSourceAddId)};
TN=function(a,b){var c=a.canPlayType(b);WN?c=c||Eka[b]:2.2==SN?c=c||Fka[b]:OE()&&(c=c||Gka[b]);return!!c};
g.XN=function(){return!(!TN(IL(),"application/x-mpegURL")&&!VN())};
YN=function(a,b){var c={},d;for(d in b.g){var e=b.g[d],f=II(e.info);("304"!=f&&"266"!=f||b.A)&&Hka(a,e.info)&&(c[e.info.o]=c[e.info.o]||[],c[e.info.o].push(e.info))}return c};
Ika=function(a,b,c){var d={},e;g.Ib(b,function(a,b){var f=a.filter(function(a){return a.ed?c&&a.ed[c.g]&&c.B[a.mimeType]?"261"!=II(a)||bM(this,ZN)?!0:(e||(e=IL()),!1):!1:!0},this);
f.length&&(d[b]=f)},a);
return d};
dO=function(a,b,c,d,e){function f(a){return!!k[a]}
var k=YN(a,b);uN(b)&&(k=Ika(a,k,c));var l=a.A.g("html5_disable_vp9_hdr_enc")?Jka:Kka;a.g?!NE("windows nt 5.1")||g.MN&&!a.A.g("html5_prefer_h264_on_xp")?(b.eh()||b.tg())&&$N&&6>=SN&&(l=aO):l=aO:l=Lka;c=Mka;d&&(a.g&&(l=aO),c=Nka);if(QE()||RE()||bM(a,ZN))c=Oka;(b.eh()||b.tg())&&e&&(c=Pka.concat(c));b=g.$a(l,f);d=g.$a(c,f);if(!b||!d)return QN();"9"==b&&k.h&&(e=function(a,b){return Math.max(a,b.video.height)},c=Ld(k["9"],e,0),Ld(k.h,e,0)>1.5*c&&(b="h"));
e=k[b];c=k[d];e=bO(a,e);cO(e,c);return RN(new ON(e,c,Qka(a,k,b,d)))};
Qka=function(a,b,c,d){var e=a.g?b.h:b[c];b=b.a;c=a.g&&"h"!=c;return e&&b&&(c||"a"!=d)?(e=bO(a,e),cO(e,b),new ON(e,b)):null};
cO=function(a,b){g.yb(a,function(a,b){return b.video.height*b.video.width-a.video.height*a.video.width||b.g-a.g});
g.yb(b,function(a,b){return b.g-a.g})};
bO=function(a,b){var c=(0,g.Ek)(b,function(a){return 32<a.video.fps});
c&&(b=a.D||bM(a,eO)?(0,g.re)(b,function(a){var b;(b=32<a.video.fps)||(a=a.video,b=!(854<a.width||480<a.height));return b}):(0,g.re)(b,function(a){return!(32<a.video.fps)}));
c&&QE()&&(b=(0,g.re)(b,function(a){return"299"!=II(a)}));
return b};
Hka=function(a,b){if("0"==II(b)&&!a.g)return!0;var c=b.mimeType;if(b.video&&(GI(b.video)||"bt2020"==b.video.primaries)&&48!=window.screen.pixelDepth&&!bM(a,fO)||"338"==II(b)&&!(a.A.g("html5_chrome_ambisonics_opus")&&g.UE&&li(53)))return!1;var d={};b.video&&(b.video.width&&(d[gO.name]=b.video.width),b.video.height&&(d[hO.name]=b.video.height),b.video.fps&&(d[eO.name]=b.video.fps),b.video.g&&(d[fO.name]=b.video.g),b.g&&(d[cM.name]=8*b.g),"("==b.o&&(d[iO.name]="subsample"));b.audio&&b.audio.g&&(d[ZN.name]=
b.audio.g);for(var e in jO){var f=jO[e];if(d[f.name]&&!(f==fO&&0<b.mimeType.indexOf("vp09.02")))if(bM(a,f))if(a.o){if(a.o[f.name]<d[f.name])return!1}else c=c+"; "+f.name+"="+d[f.name];else if(LI(b)&&f==fO)return!1}!a.A.g("disable_html5_cast_hdcp_filter2")&&a.C&&b.video&&1080<b.video.o&&b.ed&&(c+="; hdcp=2.2");return kO(a,c)};
bM=function(a,b){if(!(b.name in a.B)){var c=a.B,d=b.name;if(a.o)var e=!!a.o[b.name];else b.video?(e='video/webm; codecs="vp9"',kO(a,e)||(e='video/mp4; codecs="avc1.4d401e"')):(e='audio/webm; codecs="opus"',kO(a,e)||(e='audio/mp4; codecs="mp4a.40.2"')),e=kO(a,e+"; "+b.name+"="+b.valid)&&!kO(a,e+"; "+b.name+"="+b.Yh);c[d]=e}return a.B[b.name]};
kO=function(a,b){return a.C?window.cast.receiver.platform.canDisplayType(b):ZL(b)};
lO=function(){g.RF.call(this);this.Ka={}};
mO=function(a,b,c){if(!a.Ka[b]&&(c.Hh||c.Nj)){var d=a.Ka,e=c;Object.isFrozen&&!Object.isFrozen(c)&&(e=Object.create(c),Object.freeze(e));d[b]=e;a.Y("vast_info_card_add",b)}};
rO=function(a,b,c){var d;(d=a.adformat)||(d=(a=a.attrib)&&Qb(nO,a)&&Qb(oO,a)?oO[a]+"_"+nO[a]:void 0);a=d;if(!a)return null;d=a.match(pO);if(!d||5!=d.length)return null;d=qO(a);return b||c||d?a:null};
qO=function(a){a=a.match(pO);var b=(0,window.parseInt)(a[3],10),c=[7,8,10,5,6];return!(1==(0,window.parseInt)(a[1],10)&&8==b)&&0<=c.indexOf(b)};
sO=function(a,b){return void 0==b?a:"1"==b?!0:!1};
tO=function(a,b,c){for(var d in c)if(c[d]==b)return c[d];return a};
uO=function(a,b){return void 0==b?a:Number(b)};
vO=function(a,b){return void 0==b?a:b.toString()};
wO=function(a,b){if(b){if("fullwidth"==a)return window.Infinity;if("fullheight"==a)return 0}if(a){var c=a.match(Rka);if(c){var d=(0,window.parseFloat)(c[2]);if(0<d)return(0,window.parseFloat)(c[1])/d}}return window.NaN};
xO=function(a,b){var c=g.EI.auto,d=g.EI[b];return d>g.EI.medium?new UI(d,c,!1):d>=c?new UI(c,d,!1):a};
yO=function(a){return a.docid||a.video_id||a.videoId||a.id};
AO=function(){if(window.crypto&&window.crypto.getRandomValues)try{var a=Array(16),b=new window.Uint8Array(16);window.crypto.getRandomValues(b);for(var c=0;c<a.length;c++)a[c]=b[c];return a}catch(e){}a=Array(16);for(b=0;16>b;b++){for(var c=(0,g.G)(),d=0;d<c%23;d++)a[b]=Math.random();a[b]=Math.floor(256*Math.random())}if(zO)for(b=1,c=0;c<zO.length;c++)a[b%16]=a[b%16]^a[(b-1)%16]/4^zO.charCodeAt(c),b++;return a};
g.BO=function(){return(0,g.I)(AO(),function(a){return(a&15).toString(16)}).join("")};
CO=function(){for(var a=AO(),b=[],c=0;c<a.length;c++)b.push("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_".charAt(a[c]&63));return b.join("")};
OO=function(a){g.M.call(this);a=g.Wb(a);this.g="detailpage";this.ca=null;this.Wq=this.Gb=this.ga=!1;this.K={};this.Bh=vO("",a.csp_nonce);this.experiments=new RI(a.fexp,a.fflags);this.forcedExperiments=a.forced_experiments||null;try{var b=window.document.location.toString()}catch(f){b=""}this.sb=b;var c=this.P=(this.A=Ska.test(this.sb))?vO("",a.loaderUrl):this.sb,d=this.experiments.g("disable_trusted_ad_domains_player_check");b=Tka.test(c);if(d=!d)d=(new RegExp("^(https?:)?//([a-z0-9-]{1,63}\\.)*("+
Uka.join("|").replace(/\./g,".")+")(:[0-9]+)?([/?#]|$)","i")).test(c);!b&&d&&(c=Error("isTrustedLoader("+c+") behavior is not consistent"),.01>Math.random()&&g.qE(c,"WARNING"));this.Fb=b||d;this.sf=DO.test(this.P);this.ha=(this.NR=(this.Hg=sO(!1,a.ssl_stream))||sO(!1,a.ssl))?"https":"http";this.baseYtUrl=IM(a.BASE_YT_URL)||IM(this.sb)||this.ha+"://www.youtube.com/";"adunit"==a.el?this.g=this.sf?"adunit":"embedded":"embedded"==a.el||this.Fb?this.g=tO(this.g,a.el,Vka):a.el&&(this.g="embedded");uG();
b=null;c=a.ps;d=g.eb(EO,c);!c||d&&!this.Fb||(b=c);this.o=b;this.J=(this.zc=g.eb(EO,this.o))&&"play"!=this.o&&"jamboard"!=this.o;this.rf=!this.J;b={};this.B=(b.c=a.c||"web",b.cver=a.cver||"html5",b.cplayer="UNIPLAYER",b);this.Fa=!(!IL().defaultPlaybackRate||g.Oe&&!NE("chrome")||FO||GO||NE("android")||NE("silk"));this.isMobile=sO("blazer"==this.o,a.is_html5_mobile_device);this.xm=this.experiments.g("uniplayer_dbp")&&this.isMobile&&(!(this.A&&this.experiments.g("disallow_background_check_for_embed"))||
OE()&&li(54));this.V="3"==this.C||this.isMobile||sO(!1,a.use_media_volume);this.M=KL();this.Mr=HO;this.Dd=(g.IO(this)||"TV_UNPLUGGED_CAST"==this.B.c)&&this.experiments.g("use_rawcc_captions");this.F=sO(!1,a.is_dni);this.ob=vO("#cc181e",a.dni_color);this.tc=sO("adunit"!=this.g&&"detailpage"!=this.g&&!this.zc,this.experiments.g("embed_show_infobar")&&!this.F||a.showinfo);this.Fg=sO(!1,a.playsinline);b=this.isMobile&&$N&&2.3>=SN;c=this.isMobile&&!(this.experiments.g("html5_prefer_standard_controls")&&
g.mn&&!YE());c=JO(this)||!b&&sO(c,a.use_native_controls)?"3":"1";this.C="0"!=a.controls?c:"0";this.useTabletControls=this.isMobile;this.color=tO("red",a.color,Wka);this.Em="3"==this.C||sO(!1,a.modestbranding)&&"red"==this.color;this.ka=0==this.P.indexOf(this.baseYtUrl);this.Jg=(c=!this.ka&&"detailpage"!=this.g&&!this.J&&!this.zc)&&(this.F||!this.Em)&&"1"==this.C;this.Kg="embedded"==this.g&&c&&!this.tc&&!this.Jg;this.CR=this.Vm=b;this.Ed=!GO||g.kc(601)?!0:!1;this.Ai=this.A||!1;this.oa="detailpage"==
this.g?"":(this.P||a.post_message_origin||"").substring(0,128);this.widgetReferrer=vO("",a.widget_referrer);this.tb=(!this.Fb||sO(!0,a.enablecastapi))&&"1"==this.C&&!this.isMobile&&("detailpage"==this.g||"embedded"==this.g||"profilepage"==this.g);this.sa=sO(!1,a.enableunplugged);this.Ch=(this.da=sO(!1,a.autoplay))||"detailpage"==this.g;this.Rd=!this.isMobile&&!WE()&&!NE("nintendo 3ds")||sO(!1,a.autoplayoverride);b=!1;this.M&&!JO(this)&&this.experiments.g("mweb_muted_autoplay")?qi&&g.kc(602)?b=!0:
g.mn&&g.UE&&(b=YE()?57<=(0,window.parseFloat)(/Chrome\/(\d+)/.exec(g.Gb)[1]):53<=(0,window.parseFloat)(/Chrome\/(\d+)/.exec(g.Gb)[1])):b=!1;this.Cd=b;b=("detailpage"==this.g||"adunit"==this.g)&&("blazer"==this.o||"mweb-polymer"==this.o);this.Bb=!sO(!0,a.fs);this.ra=!this.Bb&&(b||vF());this.Ah=this.experiments.g("uniplayer_block_pip")&&OE()&&li(58);this.uc=sO(!1,a.force_rel)||sO(!this.zc,a.rel);this.OQ="adunit"!=this.g;this.Ra="profilepage"==this.g;this.kc="blazer"==this.o||"mweb-polymer"==this.o;
switch(this.o){case "blogger":b="bl";break;case "gmail":b="gm";break;case "books":b="gb";break;case "docs":b="gd";break;case "google-live":b="gl";break;case "play":b="gp";break;case "picasaweb":b="pw";break;default:b="yt"}this.Ta=b;this.Ec=vO("",a.authuser);this.eR=(this.experiments.g("embed_show_watchlater_login")&&this.A||!!this.Ec)&&sO(!this.J,a.showwatchlater);this.oe=sO(!1,a.disablekb);this.Oe=vO("",a.ecver);this.zi=this.experiments.g("mweb_autonav")&&KO();this.loop=sO(!1,a.loop);this.pageId=
vO("",a.pageid);this.ar=xO(YI,a.vq);this.dr=vO("",a.playerapiid);this.NQ=sO(!0,a.canplaylive);this.yi=sO(this.zc,a.ss);(b=a.video_container_override)?(c=b.split("x"),2!=c.length?b=null:(b=(0,window.parseInt)(c[0],10),c=(0,window.parseInt)(c[1],10),b=(0,window.isNaN)(b)||(0,window.isNaN)(c)||0>=b*c?null:new g.Pd(b,c))):b=null;this.Mg=b;this.mute=(this.Fb||this.sf)&&sO(!1,a.mute);this.storeUserVolume=!this.mute&&sO("0"!=this.C,a.store_user_volume);this.Pg="3"==this.C?3:tO(void 0,a.iv_load_policy,LO);
this.Hi=vO("",a.cc_lang_pref);b=tO(2,a.cc_load_policy,LO);"3"==this.C&&2==b&&(b=3);this.Qg=b;this.ua=void 0==a.content_v?void 0:a.content_v.toString();this.Ql=void 0==a.framer?void 0:a.framer.toString();this.Ia=vO("en_US",a.hl);this.region=vO("US",a.cr);this.hostLanguage=vO("en",a.host_language);this.Vb=sO(!1,a.privembed);this.fa=!this.Vb&&this.experiments.g("player_interaction_logging");this.tf="";this.zb=new window.Set;this.D=sO(!0,a.deviceHasDisplay);this.sg=uO(this.sg,a.ismb);this.Zf(a);this.K=
a;this.G=new lO;g.N(this,this.G);this.ba=this.isMobile;b=a;b.innertube_api_key&&b.innertube_api_version&&this.B.c&&b.innertube_context_client_version&&this.hostLanguage&&this.region||this.experiments.g("disable_innertube_config_reporting")||g.qE(Error("MISSING_INNERTUBE_CONFIG,api_key="+b.innertube_api_key+",api_version="+b.innertube_api_version+",interface="+this.B.c+",context_client_version="+b.innertube_context_client_version+",host_language="+this.hostLanguage+",region="+this.region));var c=vO("",
b.apiary_host),d=vO("",b.apiary_host_firstparty),e=vO("",b.xhr_apiary_host);this.experiments.g("disable_html5_apiary_url_validation")||(JM(c)||(c=""),JM(d)||(d=""),JM(e)||(e=""));this.Pe={apiaryHost:c,mp:d,gapiHintOverride:sO(!1,b.gapi_hint_override),gapiHintParams:vO("",b.gapi_hint_params),innertubeApiKey:vO("",b.innertube_api_key),innertubeApiVersion:vO("",b.innertube_api_version),Qq:this.B.c,innertubeContextClientVersion:vO("",b.innertube_context_client_version),Sq:this.hostLanguage,Rq:this.region,
gn:"",xhrApiaryHost:e};this.Ig=void 0!=window.WebKitPlaybackTargetAvailabilityEvent;this.O=new Cka(this.experiments,this.D,MO(this)||QE()||RE()||/STEAK/.test(this.B.cmodel));b=new Pja;g.aM(this)&&(b.B=!0,b.F=.1);this.experiments.g("html5_ewma_bandwidth_estimator")&&(b.B=!0);this.experiments.g("html5_pctile_on_tv")&&(b.B=!1);this.experiments.g("html5_disable_aux_bandwidth_estimator")&&(b.M=!1);this.experiments.g("html5_use_long_term_bandwidth_estimator")&&(b.O=!0,b.G=this.experiments.o("html5_long_term_bandwidth_window_size")||
b.G);this.experiments.g("html5_elbow_tracking_tweaks")&&(b.J=!0,b.g=2048);this.sg&&(b.D=this.sg/8);b.C=this.experiments.o("html5_bandwidth_multisample_width")||b.C;b.o=this.experiments.o("html5_bandwidth_window_size")||b.o;b.K=this.experiments.g("html5_stall_pctile");this.schedule=new Qja(b);this.enableSafetyMode=sO(!1,a.enable_safety_mode);this.ke=NO(this)&&"blazer"!=this.o&&"mweb-polymer"!=this.o;this.Na=sO(!1,a.send_visitor_id_header)||this.experiments.B;this.Fh=!1;this.Gg=YI};
PO=function(a,b){a.ne=b.get("d",a.ne);a.Cc=b.get("f",a.Cc)};
yK=function(a,b,c){return b.rh&&(a.experiments.g("legacy_autoplay_flag")||"detailpage"!=a.g||c||b.jn)};
QO=function(a){return a.experiments.g("king_crimson_player_redux")&&!a.zc&&OE()&&li(55)&&!a.isAd()};
RO=function(a){var b=g.vg(a.baseYtUrl);(a=g.wg(a.baseYtUrl))&&(b+=":"+a);return"www.youtube-nocookie.com"==b?"www.youtube.com":b};
SO=function(a){return"gaming"==a.o?"gaming.youtube.com":RO(a)};
TO=function(a,b,c){return a.ha+"://i1.ytimg.com/vi/"+b+"/"+(c||"hqdefault.jpg")};
g.UO=function(a,b){return a.baseYtUrl+"timedtext_video?ref=player&v="+b.videoId};
VO=function(a){return"detailpage"==a.g&&"gaming"!=a.o&&!g.IO(a)};
JO=function(a){return GO&&!a.Fg||WE()||NE("nintendo 3ds")?!0:!1};
g.aM=function(a){return VE()||"TV"==a.B.cplatform};
g.WO=function(){return 1<window.devicePixelRatio?window.devicePixelRatio:1};
MO=function(a){return"web"==a.B.c.toLowerCase().substr(0,3)};
g.IO=function(a){return"WEB_UNPLUGGED"==a.B.c};
KO=function(){g.x("yt.mobile.blazer.blazer_config.isMobilePersistentUniplayer");return!1};
g.XO=function(a){return a.D&&g.UE&&!WN&&"3"!==a.C?g.mn?a.experiments.g("spherical_on_android_iframe")&&a.A&&g.kc(51):!0:!1};
g.YO=function(a){return a.D&&g.MN&&!WN&&"3"!==a.C?g.mn?a.experiments.g("spherical_on_android_iframe")&&a.A&&g.kc(48):g.kc(38):!1};
$O=function(a){return g.XO(a)||g.YO(a)||(a.D&&g.Oe&&!WN&&"3"!==a.C?g.mn?a.experiments.g("spherical_on_android_iframe")&&a.A&&g.kc(37):g.kc(27):!1)||a.D&&g.ZO&&!XE()&&g.kc(11)||a.D&&ni&&a.experiments.g("safari_enable_spherical")};
Xka=function(a){return a.experiments.g("disable_html5_ambisonic_audio")||!($O(a)||a.experiments.g("html5_enable_spherical")||a.experiments.g("html5_enable_spherical3d"))||"embedded"==a.g&&$N||g.MN&&(!g.kc(47)||!g.kc(52)&&g.kc(51))?!1:window.AudioContext||window.webkitAudioContext?!0:!1};
NO=function(a){return"detailpage"==a.g||"detailpage"==a.ca};
g.aP=function(a,b){this.version=a;this.args=b};
g.bP=function(a,b){this.topic=a;this.g=b};
g.dP=function(a,b){var c=cP();c&&c.publish.call(c,a.toString(),a,b)};
g.hP=function(a,b,c){var d=cP();if(!d)return 0;var e=d.subscribe(a.toString(),function(d,k){var f=g.x("ytPubsub2Pubsub2SkipSubKey");f&&f==e||(f=function(){if(eP[e])try{if(k&&a instanceof g.bP&&a!=d)try{var f=a.g,l=k;if(!l.args||!l.version)throw Error("yt.pubsub2.Data.deserialize(): serializedData is incomplete.");try{if(!f.zh){var q=new f;f.zh=q.version}var r=f.zh}catch(w){}if(!r||l.version!=r)throw Error("yt.pubsub2.Data.deserialize(): serializedData version is incompatible.");try{k=window.Reflect.construct(f,
g.ob(l.args))}catch(w){throw w.message="yt.pubsub2.Data.deserialize(): "+w.message,w;}}catch(w){throw w.message="yt.pubsub2.pubsub2 cross-binary conversion error for "+a.toString()+": "+w.message,w;}b.call(c||window,k)}catch(w){g.qE(w)}},fP[a.toString()]?g.BG()?g.CG(f,1,void 0):g.xE(f,0):f())});
eP[e]=!0;gP[a.toString()]||(gP[a.toString()]=[]);gP[a.toString()].push(e);return e};
g.iP=function(a){var b=cP();b&&(g.oa(a)&&(a=[a]),(0,g.H)(a,function(a){b.unsubscribeByKey(a);delete eP[a]}))};
cP=function(){return g.x("ytPubsub2Pubsub2Instance")};
kP=function(a,b){var c=g.hP(jP,function(d){a.apply(b,arguments);g.iP(c)},b);
return c};
lP=function(a,b){g.aP.call(this,1,arguments);this.g=a};
nP=function(a){this.g=a||window;this.J=this.A=0;if(this.g.performance&&this.g.performance.timing&&this.g.performance.getEntriesByType){a=g.ae(this.g||window);this.G=new g.Ng(0,0,a.width,a.height);var b;a=[];for(var c=this.g.document.getElementsByTagName("*"),d=0,e=c.length;d<e;d++){var f=c[d];if("IMG"==f.tagName||"IFRAME"==f.tagName)if(b=mP(this,f,f.src)){if("IFRAME"==f.tagName){try{var k=(new nP(f.contentWindow)).A}catch(l){k=0}0<k&&(b.timing=k)}a.push(b)}(b=this.g.getComputedStyle(f)["background-image"])&&
(b=nP.g.exec(b))&&1<b.length&&(b=mP(this,f,b[1]))&&a.push(b)}this.o=a;this.C=this.g.performance.getEntriesByType("resource");this.F=this.g.performance.getEntriesByType("mark");k={};a=0;for(c=this.C.length;a<c;a++)d=this.C[a],k[d.name]=d.responseEnd;a=0;for(c=this.F.length;a<c;a++)d=this.F[a],"mark_iframe_loaded: "==d.name.slice(0,20)&&(k[d.name.slice(20)]=d.startTime);a=0;for(c=this.o.length;a<c;a++)d=this.o[a],d.timing||(d.timing=k[d.url]||0);this.D=Yka(this);this.B=Zka(this);f=k=0;if(this.B.length)for(c=
a=0,d=this.B.length;c<d;c++)e=this.B[c],f=e.timing-f,0<f&&1>a&&(k+=(1-a)*f),f=e.timing,a=e.progress;this.A=Math.round(k||this.D);this.J=f}};
mP=function(a,b,c){return c&&b.getBoundingClientRect&&(b=b.getBoundingClientRect(),b=new g.Ng(b.left,b.top,b.width,b.height),g.Rg(b,a.G))?new oP(b,c):null};
Yka=function(a){var b=a.g,c=b.performance.timing.navigationStart;if("msFirstPaint"in b.performance.timing)var d=b.performance.timing.g-c;else if("chrome"in b&&"loadTimes"in b.chrome){var e=b.chrome.loadTimes(),f=e.firstPaintTime;if(0<f){var k=e.startLoadTime;"requestTime"in e&&(k=e.requestTime);f>=k&&(d=1E3*(f-k))}}if(void 0===d||0>d||12E4<d){d=b.performance.timing.responseStart-c;for(var l={},b=b.document.getElementsByTagName("head")[0].children,c=0,e=b.length;c<e;c++)f=b[c],"SCRIPT"==f.tagName&&
f.src&&!f.async?l[f.src]=!0:"LINK"==f.tagName&&"stylesheet"==f.rel&&f.href&&(l[f.href]=!0);a.C.some(function(a){if(!l[a.name]||"script"!=a.initiatorType&&"link"!=a.initiatorType)return!0;a=a.responseEnd;if(void 0===d||a>d)d=a})}return Math.max(d,0)||0};
Zka=function(a){var b={0:0},c=0;var d=a.D;for(var e=0,f=a.o.length;e<f;e++){var k=a.o[e],l=d;k.timing>d&&(l=k.timing);b[l]||(b[l]=0);k=g.Sg(k.region).Pc();b[l]+=k;c+=k}e=g.Sg(a.G).Pc();0<e&&(e=.1*Math.max(e-c,0),d in b||(b[d]=0),b[d]+=e,c+=e);a=[];if(c){for(var m in b)d=new pP((0,window.parseFloat)(m),b[m]),a.push(d);a.sort(function(a,b){return a.timing-b.timing});
e=b=0;for(f=a.length;e<f;e++)d=a[e],b+=d.Pc,d.progress=b/c}return a};
oP=function(a,b){this.region=a;this.url=b};
pP=function(a,b){this.Pc=b;this.timing=a};
sP=function(a){qP(a);$ka();rP(!1,a);a||(g.OD("TIMING_ACTION")&&g.ND("PREVIOUS_ACTION",g.OD("TIMING_ACTION")),g.ND("TIMING_ACTION",""))};
GP=function(a,b){a:if(!tP(a)){if(!g.aF("send_empty_timing")){var c=g.OD("CSI_SERVICE_NAME","youtube");if(!g.OD((a||"")+"TIMING_ACTION",void 0)||!c)break a}g.uP("aa",void 0,a);g.vP("ap",1,a);g.vP("yt_fss","c",a);if(g.aF("enable_csi_abandonment_info")&&!a&&!wP("yt_lt")){var c=g.OD("TIMING_INFO",{}),d;for(d in c)g.vP(d,c[d]);g.vP("is_nav",1);(d=g.QG())&&g.vP("csn",d);(d=g.OD("PREVIOUS_ACTION",void 0))&&g.vP("pa",d);c=xP();c.p=g.OD("CLIENT_PROTOCOL")||"unknown";c.t=g.OD("CLIENT_TRANSPORT")||"unknown";
yP.now&&yP.timing?(d=yP.timing.navigationStart+yP.now(),d=Math.round((0,g.G)()-d)):d=null;null!=d&&g.vP("yt_hrd",d);window.navigator&&window.navigator.sendBeacon&&g.vP("ba",1);g.vP("yt_vis",zP());if("cold"==c.yt_lt){d=yP.timing||{};g.aF("cold_load_nav_start_web")&&d.navigationStart&&(g.uP("srt",d.responseStart),1!=c.prerender&&AP("n",d.navigationStart));b:if(d.msFirstPaint)c=Math.max(0,d.msFirstPaint);else{if(c=window.chrome)if(c=c.loadTimes,g.ua(c)){var c=c(),e=1E3*Math.min(c.requestTime||window.Infinity,
c.startLoadTime||window.Infinity),e=window.Infinity===e?0:d.navigationStart-e,c=Math.max(0,Math.round(1E3*c.firstPaintTime+e)||0);break b}c=0}0<c&&g.uP("fpt",c);g.uP("nreqs",d.requestStart,void 0);g.uP("nress",d.responseStart,void 0);g.uP("nrese",d.responseEnd,void 0);0<d.redirectEnd-d.redirectStart&&(g.uP("nrs",d.redirectStart,void 0),g.uP("nre",d.redirectEnd,void 0));0<d.domainLookupEnd-d.domainLookupStart&&(g.uP("ndnss",d.domainLookupStart,void 0),g.uP("ndnse",d.domainLookupEnd,void 0));0<d.connectEnd-
d.connectStart&&(g.uP("ntcps",d.connectStart,void 0),g.uP("ntcpe",d.connectEnd,void 0));d.secureConnectionStart>=d.navigationStart&&0<d.connectEnd-d.secureConnectionStart&&(g.uP("nstcps",d.secureConnectionStart,void 0),g.uP("ntcpe",d.connectEnd,void 0));yP.getEntriesByType&&ala();d=g.OD("SPEEDINDEX_FOR_ACTIONS",void 0);c=g.OD("TIMING_ACTION",void 0);d&&-1<d.indexOf(c)&&(d=(0,g.sG)(),c=new nP,e=(0,g.sG)(),0<c.A&&(g.vP("si",c.A),g.uP("vsc",BP(c.J)),g.uP("sics",d),g.uP("sice",e)));d=[];if(window.document.querySelector&&
yP&&yP.getEntriesByName)for(var f in CP)c=CP[f],bla(f,c)&&d.push(c);d.length&&g.vP("rc",d.join(","))}g.aF("csi_on_gel")&&(f={},f.actionType=dla[g.OD("TIMING_ACTION",void 0)]||"LATENCY_ACTION_UNKNOWN",d=DP(),GG(f,d))}EP(a)}sP(a);g.ND(a+"TIMING_AFT_KEYS",b);g.ND(a+"TIMING_ACTION",a);AP("c",void 0,a);g.v("ytglobal.timing"+(a||"")+"ready_",!0,void 0);FP(a)};
g.uP=function(a,b,c){if(!b&&"_"!=a[0]){var d=a;yP.mark&&(g.Da(d,"mark_")||(d="mark_"+d),c&&(d+=" ("+c+")"),yP.mark(d))}var d=HP(c),e=b||(0,g.sG)();d[a]&&(d["_"+a]=d["_"+a]||[d[a]],d["_"+a].push(e));d[a]=e;IP(c)["tick_"+a]=b;c||b||(0,g.sG)();g.aF("csi_on_gel")?(d=DP(c),"_start"==a?FG("baseline_"+d)||g.wG("latencyActionBaselined",{clientActionNonce:d},g.AG,b):FG("tick_"+a+"_"+d)||g.wG("latencyActionTicked",{tickName:a,clientActionNonce:d},g.AG,b),a=!0):a=!1;a||FP(c)};
JP=function(a){var b="above_the_fold";yP&&yP.measure&&(g.Da(b,"measure_")||(b="measure_"+b),a?yP.measure(b,a):yP.measure(b))};
AP=function(a,b,c){g.vP("yt_sts",a,c);g.uP("_start",b,c)};
KP=function(a,b){var c=HP(b);return a in c};
g.vP=function(a,b,c){var d=xP(c)[a]=b;IP(c)["info_"+a]=d;if(g.aF("csi_on_gel"))if(a in LP){b={};a=LP[a].split(".");g.eb(ela,a)&&(d=!!d);for(var e=b,f=0;f<a.length-1;f++)e[a[f]]=e[a[f]]||{},e=e[a[f]];b[a[a.length-1]]=d;c=DP(c);GG(b,c)}else g.eb(fla,a)||g.qE(Error("Unknown label "+a+" logged with GEL CSI."))};
wP=function(a){var b=xP(void 0);return a in b};
MP=function(a){var b=HP(a);if(b.aft)return b.aft;a=g.OD((a||"")+"TIMING_AFT_KEYS",["ol"]);for(var c=a.length,d=0;d<c;d++){var e=b[a[d]];if(e)return e}return window.NaN};
FP=function(a){if(!tP(a)){var b=g.OD((a||"")+"TIMING_ACTION",void 0),c=HP(a);if(g.x("ytglobal.timing"+(a||"")+"ready_")&&b&&c._start&&MP(a))if(a)EP(a);else{var b=!0,d=g.OD("TIMING_WAIT",[]);if(d.length)for(var e=0,f=d.length;e<f;++e)if(!(d[e]in c)){b=!1;break}b&&EP(a)}}};
zP=function(){switch(uF("visibilityState",window.document)){case "hidden":return 0;case "visible":return 1;case "prerender":return 2;case "unloaded":return 3}return-1};
EP=function(a){if(!g.aF("csi_on_gel")){var b=HP(a),c=xP(a),d=b._start,e;for(e in b)if(g.Da(e,"_")&&g.sa(b[e])){var f=e.slice(1);if(f in gla){var k=(0,g.I)(b[e],function(a){return Math.round(a-d)});
c["all_"+f]=k.join()}delete b[e]}f=!!c.ap;if(k=g.x("ytglobal.timingReportbuilder_")){if(k=k(b,c,a))NP(k,f),sP(a)}else{var l=g.OD("CSI_SERVICE_NAME","youtube");k={v:2,s:l,action:g.OD((a||"")+"TIMING_ACTION",void 0)};var m=c.srt;void 0!==b.srt&&delete c.srt;if(c.h5jse){var n=window.location.protocol+g.x("ytplayer.config.assets.js");(n=yP.getEntriesByName?yP.getEntriesByName(n)[0]:null)?c.h5jse=Math.round(c.h5jse-n.responseEnd):delete c.h5jse}b.aft=MP(a);hla(a)&&"youtube"==l&&(g.vP("yt_lt","hot_bg",
a),l=b.vc,n=b.pbs,delete b.aft,c.aft=Math.round(n-l));for(var q in c)"_"!=q.charAt(0)&&(k[q]=c[q]);b.ps=(0,g.sG)();c={};q=[];for(e in b)"_"!=e.charAt(0)&&(l=Math.round(b[e]-d),c[e]=l,q.push(e+"."+l));k.rt=q.join(",");(b=g.x("ytdebug.logTiming"))&&b(k,c);NP(k,f,a);g.dP(jP,new lP(c.aft+(m||0),a))}}};
BP=function(a){return Math.round(yP.timing.navigationStart+a)};
ala=function(){var a=window.location.protocol,b=yP.getEntriesByType("resource"),c=g.$a(b,function(b){return 0==b.name.indexOf(a+"//fonts.googleapis.com/css?family=")}),b=(0,g.re)(b,function(b){return 0==b.name.indexOf(a+"//fonts.gstatic.com/s/")}),b=Ld(b,function(a,b){return b.duration>a.duration?b:a},{duration:0});
c&&0<c.startTime&&0<c.responseEnd&&(g.uP("wfcs",BP(c.startTime)),g.uP("wfce",BP(c.responseEnd)));b&&0<b.startTime&&0<b.responseEnd&&(g.uP("wffs",BP(b.startTime)),g.uP("wffe",BP(b.responseEnd)))};
bla=function(a,b){var c=window.document.querySelector(a);if(!c)return!1;var d="",e=c.nodeName;"SCRIPT"==e?(d=c.src,d||(d=c.getAttribute("data-timing-href"))&&(d=window.location.protocol+d)):"LINK"==e&&(d=c.href);return d?(c=yP.getEntriesByName(d))&&c[0]&&(c=c[0],d=window.performance.timing.navigationStart,g.uP("rsf_"+b,d+Math.round(c.fetchStart)),g.uP("rse_"+b,d+Math.round(c.responseEnd)),void 0!==c.transferSize&&(wP("rc")||g.vP("rc",""),0===c.transferSize))?!0:!1:!1};
NP=function(a,b,c){if(g.aF("debug_csi_data")){var d=g.x("yt.timing.csiData");d||(d=[],g.v("yt.timing.csiData",d,void 0));d.push({page:window.location.href,time:new Date,args:a})}var d="",e;for(e in a)d+="&"+e+"="+a[e];a="/csi_204?"+d.substring(1);if(window.navigator&&window.navigator.sendBeacon&&b)try{window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(a,"")||g.ZE(a,void 0)}catch(f){g.ZE(a,void 0)}else g.ZE(a);rP(!0,c)};
DP=function(a){var b=OP(a).nonce;b||(b=CO(),OP(a).nonce=b);return b};
HP=function(a){return OP(a).tick};
xP=function(a){return OP(a).info};
IP=function(a){a=OP(a);"gel"in a||(a.gel={});return a.gel};
OP=function(a){return g.x("ytcsi."+(a||"")+"data_")||qP(a)};
qP=function(a){var b={tick:{},info:{}};g.v("ytcsi."+(a||"")+"data_",b,void 0);return b};
tP=function(a){return!!g.x("yt.timing."+(a||"")+"pingSent_")};
rP=function(a,b){g.v("yt.timing."+(b||"")+"pingSent_",a,void 0)};
hla=function(a){var b=HP(a),c=b.pbr,d=b.vc,b=b.pbs;return c&&d&&b&&c<d&&d<b&&1==xP(a).yt_pvis};
PP=function(a,b,c){this.Z=a;this.g=void 0===b?"":b;this.A=c||null;this.B=!1};
QP=function(a,b){var c=a.Z;if(c.kc&&("detailpage"==c.g||"leanback"==c.g||"embedded"==c.g&&(c.da&&c.Rd||c.experiments.g("html5_playlist_preload")))&&!a.B){a.B=!0;a.Z.experiments.g("html5_skip_default_csi_configs")||(g.OD("TIMING_ACTION")||g.ND("TIMING_ACTION",a.Z.csiPageType),a.Z.kb&&g.ND("CSI_SERVICE_NAME",a.Z.kb));if(a.A){var c=a.A.ca;for(d in c)g.uP(d,c[d],a.g);var d=a.A.ba;for(var e in d)g.vP(e,d[e],a.g);e=a.A;e.ca={};e.ba={}}g.vP("yt_pvis",zP(),a.g);g.vP("yt_pt","html5",a.g);b&&!KP("pbs",a.g)&&
a.o("pbs",b);e=a.Z;("detailpage"!=e.g||"blazer"==e.o)&&KP("_start",a.g)&&EP(a.g)}};
g.RP=function(a,b,c){this.errorCode=a;this.g=b;this.details=c||{}};
SP=function(a){var b;for(b in a){var c=(""+a[b]).replace(/[:,]/g,"_");var d=(d?d+";":"")+b+"."+c}return d||""};
TP=function(a,b){this.type=a||"";this.id=b||""};
g.UP=function(a){return new TP(a.substr(0,2),a.substr(2))};
VP=function(a){a=a.url;return 0==a.indexOf("//")?"https:"+a:a};
YP=function(a,b){var c={},d;for(d in WP){var e=b?b+d:d,e=a[e+"_webp"]||a[e];g.XP.test(e)&&(c[WP[d]]=e)}return c};
jla=function(a){var b={};if(!a||!a.thumbnails)return b;var c=null;a=g.ka(a.thumbnails);for(var d=a.next();!d.done;d=a.next()){var d=d.value,e=VP(d);if(g.XP.test(e)){var f=ila[d.width];f&&(b[f]=e);if(!c||c.width<d.width)c=d}}c&&1280<c.width&&(b["maxresdefault.jpg"]=VP(c));return b};
ZP=function(a,b){g.M.call(this);this.o=[];this.g={};this.B={};this.A=null;this.C=b;kla(this,a)};
kla=function(a,b){for(var c in b)for(var d=g.ka(b[c]),e=d.next();!e.done;e=d.next()){e=e.value;if(!e.ed)return;for(var f in e.ed){if(!$P[f])return;for(var k=g.ka($P[f]),l=k.next();!l.done;l=k.next())l=l.value,a.g[l]=a.g[l]||new HN(f,l,e.ed[f],a.C),a.B[f]=a.B[f]||{},a.B[f][e.mimeType]=!0}}a.o=lla.filter(function(b){return!!a.g[b]})};
nla=function(a){if(IN()&&ni)a.A(new HN("fairplay","com.apple.fps.1_0","",a.C));else{var b=mla(),c=g.$a(a.o,function(c){var d=a.g[c],f=!1,k=!1,l;for(l in a.B[d.g])b(l,c)&&(d.B[l]=!0,f=f||0==l.indexOf("audio/"),k=k||0==l.indexOf("video/"));return f&&k}),c=c?a.g[c]:null;
a.o=[];a.A(c)}};
mla=function(){var a=IN();if(a)return function(b,d){return a.isTypeSupported(d,b)};
var b=IL();return b&&(b.addKey||b.webkitAddKey)?(0,g.A)(b.canPlayType,b):function(){return!1}};
aQ=function(a){if(a){var b=[],c;for(c in a)ola.has(c)||b.push(c);b.length&&.01>Math.random()&&g.qE(Error("Unknown house brand player vars: "+b),"WARNING")}};
pla=function(a,b){this.o=a;this.g=b;this.A=0};
qla=function(a){for(var b=[],c=[],d=0,e=a.g.length;d<e;++d){var f=a.g[d];f.bitrate<=a.A?b.push(f):c.push(f)}b.sort(function(a,b){return b.bitrate-a.bitrate});
c.sort(function(a,b){return a.bitrate-b.bitrate});
a.g=b.concat(c)};
rla=function(a,b,c,d,e,f,k,l,m){this.itag=a;this.url=b;this.uv=c;this.width=d;this.height=e;this.bitrate=k;this.fps=f;this.audioItag=l||null;this.g=m||""};
sla=function(a){for(var b={},c=0,d=a.length;c<d;++c){var e=a[c];var f=e.type.match(/codecs="([^"]*)"/);e=new rla(e.itag,e.url,f?f[1]:"",+e.width,+e.height,+e.fps,+e.bitrate,e.audio_itag,e.drm_families);b[e.itag]=e}return b};
bQ=function(a,b){this.Ae=a;this.B=b;this.o=null};
tla=function(a,b,c){if(!WN&&!TE())return QN();b=sla(b);if(!b)return QN();var d={},d=(d.fairplay="https://youtube.com/api/drm/fps?ek=uninitialized",d),e=[],f=[],k=[],l;for(l in b){var m=b[l];if(m.width){var n=b[m.audioItag];if(n){e.push(m);var q="fairplay"==m.g?d:null;k.push(cQ([n],[m],m.itag,m.width,m.height,m.fps,void 0,void 0,q))}}else f.push(m)}q=k.reduce(function(a,b){return!!b.Ae.ed&&a},!0)?d:null;
k.push(cQ(f,e,"93",0,0,0,"auto",c,q));return UN(a.O,k,QO(a))};
cQ=function(a,b,c,d,e,f,k,l,m){var n=new CI;d=new FI(d,e,f,null,void 0,k);c=new JI(c,"application/x-mpegURL",n,d,void 0,m);a=new pla(a,b);a.A=l?l:1369843;return new bQ(c,a)};
dQ=function(a,b){this.Ae=a;this.o=b};
eQ=function(a,b,c){var d=[];b=g.ka(b);for(var e=b.next();!e.done;e=b.next()){var f=e.value;if(f.url){e=new MM(f.url);f.sig?e.set("signature",f.sig):f.s&&e.set("signature",pE(f.s));for(var k in c)e.set(k,c[k]);f=QI(f.type,f.quality,f.itag,f.width,f.height,!!f.isAccelerated,!!f.isAcceleratedUiEnabled);d.push(new dQ(f,e))}}return UN(a.O,d,QO(a))};
fQ=function(a){g.RF.call(this);this.B=new yD;this.o=null;this.G={};this.F=a||""};
iQ=function(a,b,c){for(c=gQ(a,c);0<=c;){var d=a.g[c];if(d.Pb(Math.floor(b/(d.columns*d.rows)))&&(d=hQ(d,b)))return d;c--}return hQ(a.g[0],b)};
kQ=function(a,b,c){c=gQ(a,c);for(var d,e;0<=c;c--)if(d=a.g[c],e=Math.floor(b/(d.columns*d.rows)),!d.Pb(e)){d=a;var f=c,k=f+"-"+e;d.G[k]||(d.G[k]=!0,xD(d.B,f,{Ax:f,Uy:e}))}jQ(a)};
jQ=function(a){if(!a.o&&!a.B.isEmpty()){var b=a.B.remove(),c=new window.Image;a.F&&(c.crossOrigin=a.F);c.src=lQ(a.g[b.Ax],b.Uy);c.onload=(0,g.A)(a.K,a,b.Ax,b.Uy);a.o=c}};
mQ=function(a,b,c,d){this.Sc={};this.M=a;this.J=b;a=c.split("#");this.F=(0,window.parseInt)(a[0],10);this.D=(0,window.parseInt)(a[1],10);this.o=(0,window.parseInt)(a[2],10);this.columns=(0,window.parseInt)(a[3],10);this.rows=(0,window.parseInt)(a[4],10);this.B=(0,window.parseInt)(a[5],10);this.A=a[6];this.C=a[7];this.K=d};
lQ=function(a,b){var c=a.J,c=c.replace("$N",a.A),c=c.replace("$L",a.M.toString()),c=c.replace("$M",b.toString());a.C&&(c=g.Dg(c,{sigh:a.C}));return LM(c)};
hQ=function(a,b){var c=Math.floor(b/(a.columns*a.rows)),d=a.columns*a.rows,e=b%d,f=e%a.columns,e=Math.floor(e/a.columns),k=a.Ft()+1-d*c;if(k<a.columns){var l=k;d=1}else l=a.columns,d=k<d?Math.ceil(k/a.columns):a.rows;return{url:lQ(a,c),KF:f,columns:l,Oc:e,rows:d,Vy:a.F*l,Ty:a.D*d}};
nQ=function(a,b,c){fQ.call(this,c);this.g=this.A(a,b);this.C={};1<this.g.length&&this.g[0].isDefault()&&this.g.splice(0,1)};
gQ=function(a,b){var c=a.C[b];if(c)return c;for(var c=a.g.length,d=0;d<c;d++)if(a.g[d].Eb()>=b)return a.C[b]=d;a.C[b]=c-1;return c-1};
oQ=function(a,b,c,d){c=c.split("#");c=[c[1],c[2],0,c[3],c[4],-1,c[0],""].join("#");mQ.call(this,a,b,c,0);this.g=null;this.G=d?3:0};
pQ=function(a,b){this.M=b;nQ.call(this,a,0)};
qQ=function(a,b){this.Ae=a;this.o=b};
ula=function(a){var b=[];(0,g.H)(a,function(a){if(a.url){var c=QI(a.type,"medium","0");b.push(new qQ(c,a.url))}});
return b};
vla=function(a){var b=null,c=a.text;a.bold&&(b=g.ge("B",null,b||c));a.italics&&(b=g.ge("I",null,b||c));a.strikethrough&&(b=g.ge("STRIKE",null,b||c));if(a.navigationEndpoint&&a.navigationEndpoint.urlEndpoint){a=a.navigationEndpoint.urlEndpoint;var d={href:a.url};"TARGET_NEW_WINDOW"==a.target&&(d.target="_blank");b=g.ge("A",d,b||c)}return b||g.ge("SPAN",null,c)};
g.rQ=function(a){if(a.simpleText)return a.simpleText;if(a.simpleText)a=window.document.createTextNode(a.simpleText);else{var b=[];if(a.runs)for(var c=0;c<a.runs.length;c++){var d=a.runs[c];d.text&&b.push(vla(d))}a=1==b.length?b[0]:g.ge("SPAN",null,b)}b=g.ie("div");b.appendChild(a);return b.textContent};
g.sQ=function(a){g.RF.call(this);this.adModule=!1;this.adaptiveFormats="";this.ed=null;this.allowEmbed=!0;this.hg=this.backgroundable=!1;this.wf="";this.Nl=this.Ll=this.Kl=!1;this.relativeLoudness=0;this.wc=1;this.watchAjaxToken=this.xh=null;this.author="";this.zf=0;this.Jp=this.Ul=!1;this.clientScreenNonce=this.clientPlaybackNonce=this.Cs=this.channelPath=this.Vl="";this.contentCheckOk=!1;this.Af=0;this.enableCardioBeforePlayback=this.enableCardio=!1;this.Ki=0;this.Jw=this.hh=!1;this.sg=this.gj=
0;this.jn=!1;this.gA=0;this.isMdxPlayback=this.isLowLatencyLiveStream=this.isLiveDefaultBroadcast=this.isLiveDestination=this.Ca=this.Ck=this.isListed=this.Uq=this.rh=!1;this.mdxControlMode=null;this.isPharma=!1;this.ni=0;this.os="";this.Yq=this.vx=this.If=!1;this.liveChunkReadahead=window.NaN;this.liveStartWalltime=0;this.gr=null;this.Ek=this.lengthSeconds=0;this.playerParams=null;this.paygated=!1;this.profilePicture=void 0;this.racyCheckOk=!1;this.rootVeType=0;this.autonavState=1;this.jl=YI;this.mg=
!1;this.kx=this.startSeconds=0;this.spacecastModule=!1;this.Gl=null;this.nl=YI;this.Lj=null;this.hlsFormats=this.yh=this.title="";this.Ib=null;this.wo="vvt";this.requiresPurchase=!1;this.clipStart=0;this.clipEnd=window.Infinity;this.Jn=this.hj=this.ak=!1;this.eq="";this.ie=this.rs=this.ow=0;this.qx=!1;this.Mj={};this.sq=!1;this.captionTracks=[];this.Vj=[];this.wp=0;this.captionTranslationLanguages=[];this.Wj=!1;this.pm=new qI("und",new mI("Default","und",!0));this.fr=0;this.Ej=this.yA=!1;this.Jf=
null;this.Eh=[];this.Hw=!1;this.pi={};this.HA=new g.rt(this.IA,5E3,this);g.N(this,this.HA);this.cq=0;this.pw=!0;this.Jj=!1;this.ti=this.Nb=null;this.dh=!1;this.ge=[];this.Yb={};this.keywords={};this.we={};this.setData(a)};
wQ=function(a,b,c){b=b||{};var d={};if(!c)d=a.Nb||{};else if(b.player_response)for(d=g.jg(b.player_response)||{},a.Nb||(a.Nb={}),c=0;c<tQ.length;c++){var e=tQ[c];e in d&&(a.Nb[e]=d[e])}(c=uQ(d))?(a.wf=LM(c.invideoUrl),a.Kl=!!c.adsOnly,a.Ll=!!c.allowInPlaceSwitch):(b.iv_invideo_url&&(a.wf=LM(b.iv_invideo_url)),a.Kl=sO(a.Kl,b.iv_ads_only),a.Ll=sO(a.Ll,b.iv_allow_in_place_switch));b.cta_conversion_urls&&(a.Ou=b.cta_conversion_urls);a.isPharma=sO(a.isPharma,b.is_pharma);a.author=vO(a.author,b.author);
a.Ul=sO(a.Ul,b.cc_asr);c=b.ttsurl;vQ.test(c)?a.Vl=c:c&&(c=KM(c),vQ.test(c)&&(a.Vl=c));d.captions&&d.captions.playerCaptionsTracklistRenderer?wla(a,d.captions.playerCaptionsTracklistRenderer):(a.sq=void 0!=b.caption_tracks,b.caption_tracks&&b.caption_audio_tracks&&(xla(a,b.caption_tracks),yla(a,b.caption_audio_tracks),b.default_audio_track_index&&(a.wp=(0,window.parseInt)(b.default_audio_track_index,10)||0),b.caption_translation_languages&&zla(a,b.caption_translation_languages)),a.Wj=sO(a.Wj,b.cc_contribute));
a.channelPath=vO(a.channelPath,b.channel_path);a.Cs=vO(a.Cs,b.short_subscriber_count_text);a.clientPlaybackNonce=vO(a.clientPlaybackNonce,b.cpn);a.subscribed=sO(a.subscribed,b.subscribed);a.Uf=uO(a.Uf,b.view_count);a.shortViewCount=vO(a.shortViewCount,b.short_view_count_text);a.title=vO(a.title,b.title);a.ypcPreview=vO(a.ypcPreview,b.ypc_preview);a.ypcOrigin=vO(a.ypcOrigin,b.ypc_origin);a.paygated=sO(a.paygated,b.paygated);a.requiresPurchase=sO(a.requiresPurchase,b.requires_purchase);b.keywords&&
(a.keywords=Ala(b.keywords));b.rvs&&(a.Xf=GE(b.rvs));a.contentCheckOk=sO(a.contentCheckOk,"1"==b.cco);a.racyCheckOk=sO(a.racyCheckOk,"1"==b.rco);a.oauthToken=vO(a.oauthToken,b.oauth_token);a.visitorData=vO(a.visitorData,b.visitor_data);b.session_data&&(a.Od=g.yE(b.session_data));b.endscreen_autoplay_session_data&&(a.Sv=g.yE(b.endscreen_autoplay_session_data));a.Rv=vO(a.Rv,b.endscreen_ad_tracking_data);a.xB=sO(a.xB,b.wait_for_vast_info_cards_xml);a.Oh=vO(a.Oh,b.wpid);a.Js=vO(a.Js,b.tracking_list||
b.tv_list);(0,g.H)(Bla,function(a){a in b&&(this.Yb[a]=b[a])},a)};
xQ=function(a){return!(!a.jb||!a.jb.videoInfos.length)};
Cla=function(a){return a.o&&ZL('video/webm; codecs="vp9"')&&Kb(a.g,function(a){return KI(a.info)})};
yQ=function(a){return!VN()||a.Jp?!0:!1};
g.zQ=function(a){if(!a.ti)return null;var b=g.t(a.ti.latitudeE7)&&g.t(a.ti.longitudeE7)?a.ti.latitudeE7+","+a.ti.longitudeE7:",";return b+=","+(a.ti.clientPermissionState||0)};
AQ=function(a){a.na()||(a.hh=!1,a.Y("dataloaded",a.Yb))};
BQ=function(a,b,c){c&&a.va&&a.va.dispose();a.va=b;g.N(a,b);(a.tg()||a.eh()||a.Zh())&&a.ge.push("webgl");a.va.isLive||(a.Ca=!1)};
g.DQ=function(a,b){if(a.na())return QN();a.jb=null;a.wg=null;a.al=null;var c=b.B,d=c.c,c=c.cmodel;a.dh=/^rq/.test(a.clientPlaybackNonce)||/^r/.test(a.clientPlaybackNonce)&&/UNPLUGGED/.test(d)||/FUGU/.test(c);yQ(a)||b.Wq||!a.spacecastAdaptiveFormats?d=QN():(BQ(a,vN(CQ(a,a.spacecastAdaptiveFormats),a.ed,a.lengthSeconds,void 0,a.Jj),!0),d=dO(b.O,a.va,a.Jf,!0,!1).then(a.As,void 0,a).then(a.Xv,void 0,a));return d.then(void 0,(0,g.A)(a.QI,a,b)).then(void 0,(0,g.A)(a.LI,a,b)).then(void 0,(0,g.A)(a.MI,a,
b)).then(void 0,(0,g.A)(a.RI,a,b)).then(void 0,(0,g.A)(a.OI,a,b))};
EQ=function(a,b){var c={cpn:a.clientPlaybackNonce,c:b.B.c,cver:b.B.cver};a.Yk&&(c.ptk=a.Yk,c.oid=a.iA,c.ptchn=a.hA,c.pltype=a.jA);return c};
g.FQ=function(a){return a.Ma&&a.Ma.ed||null};
GQ=function(a){var b=a.Nb&&a.Nb.paidContentOverlay&&a.Nb.paidContentOverlay.paidContentOverlayRenderer||null;return b&&b.text?g.rQ(b.text):a.zQ};
HQ=function(a){var b=a.Nb&&a.Nb.paidContentOverlay&&a.Nb.paidContentOverlay.paidContentOverlayRenderer||null;return b&&b.durationMs?(a=b.durationMs,g.u(a)?Va(a):a):a.gA};
g.IQ=function(a,b){return g.u(a.keywords[b])?a.keywords[b]:null};
JQ=function(a){if(!a.Ib)if(a.Nb&&a.Nb.storyboards){var b=a.Nb.storyboards;b.playerStoryboardSpecRenderer?a.Ib=new nQ(b.playerStoryboardSpecRenderer.spec,a.lengthSeconds):b.playerLiveStoryboardSpecRenderer&&a.va&&(a.Ib=new pQ(b.playerLiveStoryboardSpecRenderer.spec,a.va))}else a.Yb.storyboard_spec?a.Ib=new nQ(a.Yb.storyboard_spec,a.lengthSeconds):a.Yb.live_storyboard_spec&&a.va&&(a.Ib=new pQ(a.Yb.live_storyboard_spec,a.va));return a.Ib};
KQ=function(a,b){if(a.va&&a.Ca){var c=a.va.g[a.Ma.id];if(!c||!c.index)return null;var d=c.index.Xg(b),c=c.index.df(d);return{sequence:d,elapsed:Math.floor(1E3*(b-c))}}return null};
LQ=function(a){return!!(a.xe||a.adaptiveFormats||a.yh||a.Lj||a.spacecastFormatMap||a.spacecastAdaptiveFormats||a.hlsvp)};
MQ=function(a){var b=g.eb(a.ge,"ypc");a.ypcPreview&&(b=!1);return a.He()&&!a.hh&&(LQ(a)||g.eb(a.ge,"fresca")||g.eb(a.ge,"heartbeat")||b)};
CQ=function(a,b,c){b=GE(b);var d={};c&&(0,g.H)(c.split(","),function(a){(a=a.match(/^([0-9]+)\/([0-9]+)x([0-9]+)(\/|$)/))&&(d[a[1]]={width:a[2],height:a[3]})});
(0,g.H)(b,function(a){var b=d[a.itag];b&&(a.width=b.width,a.height=b.height)},a);
return b};
Dla=function(a){a=GE(a);var b={};(0,g.H)(a,function(a){var c=a.family;a=a.url;c&&a&&(b[c]=a)});
return b};
xla=function(a,b){for(var c=GE(b),d=0;d<c.length;d++){var e=c[d],f=e.u;vQ.test(f)&&a.captionTracks.push(new g.oI({is_translateable:sO(!1,e.t),languageCode:e.lc,languageName:e.n,url:f,vss_id:e.v,kind:e.k,format:3}))}};
yla=function(a,b){var c=GE(b);a.Vj=[];(0,g.H)(c,function(a){var b={};g.t(a.aid)&&(b.audioTrackId=a.aid);a.i&&(b.captionTrackIndices=(0,g.I)(a.i.split(","),function(a){return(0,window.parseInt)(a,10)}));
b.hasDefaultTrack=g.t(a.d);b.hasDefaultTrack&&(b.defaultCaptionTrackIndex=(0,window.parseInt)(a.d,10)||void 0);b.hasForcedTrack=g.t(a.f);b.hasForcedTrack&&(b.forcedCaptionTrackIndex=(0,window.parseInt)(a.f,10));b.visibility=Ela[(0,window.parseInt)(a.v,10)]||"UNKNOWN";this.Vj.push(b)},a)};
zla=function(a,b){for(var c=GE(b),d=0;d<c.length;d++){var e=c[d];a.captionTranslationLanguages.push(new g.nI({languageCode:e.lc,languageName:e.n}))}};
wla=function(a,b){a.sq=!0;a.captionTracks=[];b.captionTracks&&(0,g.H)(b.captionTracks,function(a){var b=a.baseUrl;vQ.test(b)&&(a=new g.oI({is_translateable:!!a.isTranslatable,languageCode:a.languageCode,languageName:a.name&&g.rQ(a.name),url:b,vss_id:a.vssId,kind:a.kind,format:3}),this.captionTracks.push(a))},a);
a.Vj=b.audioTracks||[];a.wp=b.defaultAudioTrackIndex||0;a.captionTranslationLanguages=b.translationLanguages?(0,g.I)(b.translationLanguages,function(a){return new g.nI({languageCode:a.languageCode,languageName:g.rQ(a.languageName)})}):[];
a.Wj=!!b.contribute&&!!b.contribute.captionsMetadataRenderer};
g.NQ=function(a,b){return!!a.Yb[b]};
g.OQ=function(a){return a.Ca&&!a.hg};
PQ=function(a){return a.Ca&&a.hg};
QQ=function(a){var b=g.Wb(a.Yb);!a.Ca&&0<a.startSeconds&&(b.start=a.startSeconds);return b};
Fla=function(a){a.jb=a.jb.o};
g.RQ=function(a){var b=a.Yb.iv_endscreen_url;b||(b=a.Nb&&a.Nb.endscreen&&a.Nb.endscreen.endscreenUrlRenderer&&a.Nb.endscreen.endscreenUrlRenderer.url);return b};
uQ=function(a){return a&&a.annotations&&(a=a.annotations[0],a.playerAnnotationsUrlsRenderer)?a.playerAnnotationsUrlsRenderer:null};
Ala=function(a){var b={};(0,g.H)(a.split(","),function(a){var c=a.split("=");2==c.length?b[c[0]]=c[1]:b[a]=!0});
return b};
g.TQ=function(a){g.RF.call(this);this.startSeconds=0;this.bB=!1;this.jc=0;this.title="";this.gh=0;this.Ka=[];this.Kf=this.Sc=!1;this.Od=this.Sv=this.bl=null;this.views=0;this.sF=0!=a.fetch;this.Nd=[];this.jc=Math.max(0,a.index||0);this.loop=!!a.loop;this.startSeconds=a.startSeconds||0;this.ZL="1"==a.mob;this.title=a.playlist_title||"";this.description=a.playlist_description||"";this.author=a.author||a.playlist_author||"";this.Mj={};a.video_id&&(this.Ka[this.jc]=a);a.api&&("string"==typeof a.api&&
16==a.api.length?a.list="PL"+a.api:a.playlist=a.api);this.mn=0;if(a.list)switch(a.listType){case "user_uploads":Gla(this,a.list);break;case "user_favorites":Hla(this,a.list);break;case "search":Ila(this,a.list);break;default:a.playlist_length&&(this.gh=a.playlist_length),this.listId=g.UP(a.list),a.video?(this.Ka=a.video.slice(0),this.Sc=!0):Jla(this)}else if(a.playlist){var b=a.playlist.toString().split(",");0<this.jc&&(this.Ka=[]);(0,g.H)(b,function(a){a&&this.Ka.push({video_id:a})},this);
this.gh=this.Ka.length;b=(0,g.I)(this.Ka,function(a){return a.video_id});
SQ(this,"/list_ajax?style=json&action_get_templist=1",{video_ids:b.join(",")});this.Sc=!0}this.setShuffle(!!a.shuffle);a.suggestedQuality&&(this.quality=a.suggestedQuality);this.Mj=YP(a,"playlist_");this.jB=a.thumbnail_ids?a.thumbnail_ids.split(","):[]};
UQ=function(a){return!!(a.playlist||a.list||a.api)};
VQ=function(a){var b=a.jc+1;return b>=a.gh?0:b};
WQ=function(a){var b=a.jc-1;return 0>b?a.gh-1:b};
XQ=function(a,b){a.jc=g.Hd(b,0,a.gh-1);a.startSeconds=0};
Gla=function(a,b){a.Kf||(a.listId=new TP("UU","PLAYER_"+b),SQ(a,"/list_ajax?style=json&action_get_user_uploads_by_user=1",{username:b}))};
Hla=function(a,b){a.Kf||(a.listId=new TP("FL","PLAYER_"+b),SQ(a,"/list_ajax?style=json&action_get_favorited_by_user=1",{username:b}))};
Ila=function(a,b){if(!a.Kf){a.listId=new TP("SR",b);var c={search_query:b};a.ZL&&(c.mob="1");SQ(a,"/search_ajax?style=json&embeddable=1",c)}};
Jla=function(a){if(!a.Kf){var b={list:a.listId},c=a.hc();c&&c.videoId&&(b.v=c.videoId);SQ(a,"/list_ajax?style=json&action_get_list=1",b)}};
SQ=function(a,b,c){a.sF&&g.KE(g.Dg(b,c),{format:"JSON",Mb:(0,g.A)(function(a,b){YQ(this,b)},a),
onError:(0,g.A)(function(){this.Y("error")},a)})};
YQ=function(a,b){if(b.video&&b.video.length){a.title=b.title;a.description=b.description;a.views=b.views;a.author=b.author;b.loop&&(a.loop=b.loop);var c=a.hc();a.Ka=[];(0,g.H)(b.video,function(a){a&&(a.video_id=a.encrypted_id,this.Ka.push(a))},a);
a.gh=a.Ka.length;b.index?a.jc=b.index:a.gk(c);a.setShuffle(!1);a.Kf=!1;a.Sc=!0;a.mn++;a.bl&&a.bl()}};
g.$Q=function(a){g.M.call(this);this.xa={};this.Ia={};this.element=ZQ(this,a)};
ZQ=function(a,b,c){c=c||"svg"==b.H;var d=c?window.document.createElementNS("http://www.w3.org/2000/svg",b.H):g.ie(b.H);var e=b.N;if(e){if(e=aR(a,d,"class",e))bR(a,d,"class",e),a.xa[e]=d}else{var f=b.ea;if(f){for(e=0;e<f.length;e++)a.xa[f[e]]=d;bR(a,d,"class",f.join(" "))}}if(f=b.L)for(var k=0,e=0;e<f.length;e++){var l=f[e];if(l)if(g.u(l))l=aR(a,d,"child",l),null!=l&&d.appendChild(g.je(l));else if(l.element)d.appendChild(l.element);else{var m=l,l=ZQ(a,m,c);d.appendChild(l);m.Pa&&(m=g.$Q.g(),l.id=m,
l=window.document.createElementNS("http://www.w3.org/2000/svg","use"),l.setAttribute("class","ytp-svg-shadow"),l.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+m),oe(d,l,k++))}}if(b=b.R)for(var n in b)c=b[n],null!=c&&bR(a,d,n,g.u(c)?aR(a,d,n,c):c);return d};
aR=function(a,b,c,d){return"{{"==d.substr(0,2)?(a.Ia[d]=[b,c],null):d};
bR=function(a,b,c,d){if("child"==c){g.me(b);if(!g.sa(d)||g.va(d)&&g.u(d.H))d=[d];c=[];for(var e=0;e<d.length;e++){var f=d[e];if(null!=f)if(!f.nodeType||1!=f.nodeType&&3!=f.nodeType)if(g.va(f)&&g.u(f.H))c.push(ZQ(a,f));else if(f.element)c.push(f.element);else if(g.u(f)&&-1!=f.indexOf("\n"))for(var f=f.split("\n"),k=0;k<f.length;k++)0<k&&c.push(g.ie("BR")),c.push(g.je(f[k]));else c.push(g.je(f));else c.push(f)}for(a=0;a<c.length;a++)b.appendChild(c[a])}else"style"==c?b.style.cssText=d?d:"":null===d?
b.removeAttribute(c):b.setAttribute(c,d.toString())};
g.cR=function(a,b){a&&(a.style.display=b)};
dR=function(a,b){var c=uF("requestAnimationFrame",window);return g.xE(function(){c?c.call(window,a):a()},b||0)};
eR=function(a){if(window.document.createRange){var b=window.document.createRange();b.selectNodeContents(a);window.getSelection().removeAllRanges();window.getSelection().addRange(b)}};
g.W=function(a){g.$Q.call(this,a);this.g=!0;this.ca=[]};
fR=function(a,b,c){this.audio=a;this.video=b;this.reason=c};
gR=function(a){this.g=window.Float32Array?new window.Float32Array(a):Array(a);this.o=a-1};
hR=function(a,b){a.o=(a.o+1)%a.g.length;a.g[a.o]=b};
Kla=function(){this.C=new gR(50);this.o=null;this.D=this.B=0;this.g=[];this.A=null};
Lla=function(a,b){0!=a.g.length&&(b.D=a.g.length,b.J=Ld(a.g,function(a,b){return a+b},0),b.G=g.Ya(a.g),b.M=Math.min.apply(Math,a.g),b.K=Math.max.apply(Math,a.g),a.g=[])};
Mla=function(a){var b=(0,window.isNaN)(a.liveChunkReadahead)?3:a.liveChunkReadahead;a.Ck&&b--;a.isLowLatencyLiveStream||b++;a.va&&uka(a.va)&&(b+=2);this.g=Math.max(0,b);this.o=[];this.A=0;this.B=a};
iR=function(a){return(a.B.va?EN(a.B.va)||5:5)*a.g};
kR=function(a){this.g=new jR(0,0,null);this.B=8;this.C=[];this.A=this.D=window.NaN;this.J=this.o=this.G=0;this.F=window.NaN;this.K=0;this.M=void 0===a?!0:a};
lR=function(a){return{startTime:a.F/a.o,duration:a.J/a.o}};
mR=function(a){return!(0,window.isNaN)(a.A)&&a.o?a.A/a.o:a.K};
nR=function(a,b,c){var d=b.getUint32(c);b=b.getUint32(c+4);a.g=new jR(b,d,a.g);return 8};
oR=function(a){a.o&&!(0,window.isNaN)(a.D)&&(a.A=Math.floor(a.D*a.o),a.D=window.NaN)};
pR=function(a){return 0==a.g.type||1836019574==a.g.type||1952867444==a.g.type||1936286840==a.g.type||1953653094==a.g.type||1836019558==a.g.type};
qR=function(a,b,c){for(var d=c;d<b.byteLength;d++)a.C.push(b.getUint8(d));return new window.DataView(b.buffer,b.byteOffset,c)};
rR=function(a,b,c){return new hL(b,c,a.g.size,a.g.type,!0)};
jR=function(a,b,c){this.type=a;this.size=b;this.g=c;this.offset=this.version=0};
sR=function(a,b){g.RF.call(this);this.C=0;this.B=a;this.g=[];this.A=null;this.K=b;this.F=this.D=window.NaN;this.P=null;this.ca=(0,g.A)(function(a){this.B.ka&&(this.Y("timestamprewrite",a),this.B.ka=!1)},this);
this.V=this.O=this.G=this.o=null;this.M=!1;this.J=null;this.B.Vb&&(this.o=new kR(this.B.Sa))};
tR=function(a){return a.g.length?a.g[0]:null};
uR=function(a){return a.g.length?a.g[a.g.length-1]:null};
Ola=function(a,b){var c=Nla(a,b);(0,g.H)(c,function(b){a.g.push(b)})};
Pla=function(a){return(0,g.Ek)(a.g,function(a){return a.info.A})};
Qla=function(a,b){if(b){var c=g.Za(a.g,function(a){return a.info.A});
-1!=c&&(a.g=g.qb(a.g,0,c+1))}else a.g=[]};
Rla=function(a){if(!a.g.length)return 0;for(var b=a.g[0].B.length,c=1;c<a.g.length;c++)a.g[c].g!=a.g[c-1].g&&(b+=a.g[c].B.length);a.A&&(b+=a.A.B.length);return b};
vR=function(a){return(0,g.I)(a.g,function(a){return a.info})};
Nla=function(a,b){if(!b.verify()||b.info.g.Vq()){var c=jM(b.info);c.verification="1";a.Y("error",c||{})}if(wR(a,b)){if(MI(b.info.g.info))if(c=AM(b),c=tL(c,0,1701671783)){0==c.data.getUint32(c.g)&&c.skip(4);kL(c);kL(c);jL(c);jL(c);jL(c);jL(c);var d=new window.Uint8Array(new window.ArrayBuffer(c.size-c.o)),e=new window.Uint8Array(c.data.buffer,c.offset+c.o,c.size-c.o);d.set(e);c.o=c.size;c=String.fromCharCode.apply(String,new window.Uint8Array(d.buffer));c=(c=sL(c))?new pL(c):null}else c=null;else c=
new lM(AM(b)),d=c.g,c.g=0,e=null,oM(c,[408125543,307544935,29555,26568,17543])&&(e=qM(c,!0),e=String.fromCharCode.apply(String,uM(c,e)),e=(e=sL(e))?new pL(e):null),c.g=d,c=e;b.o=c;b.o&&(a.G=b.o,a.M=!!a.o)}a.G&&(c=a.G,b.info.Ba=c.o,b.info.D=c.C);b.info.A&&(a.V=b.info);a.B.Jg&&wR(a,b)&&GL(AM(b),1701671783);if(a.B.J){if(!a.K.te()&&(a.O&&!iM(a.O,b.info,!0)&&(a.o&&a.o.reset(),a.D=window.NaN,a.C=0),a.O=b.info,a.o?((c=!(0,window.isNaN)(a.F))||(c=a.o,c=!(!(0,window.isNaN)(c.A)||!(0,window.isNaN)(c.D))),c&&
(c=a.o,c.D=(0,window.isNaN)(a.F)?(0,window.isNaN)(a.D)?b.info.startTime:a.D:a.F,oR(c),a.F=window.NaN),c=AM(b),d=a.o.process(c),d!=c&&(b.g=d.buffer,b.B=fM(d.byteOffset,d.byteLength),b.range=b.B)):(c=(0,window.isNaN)(a.F)?(0,window.isNaN)(a.D)?b.info.startTime:a.D:a.F,a.F=window.NaN,a.B.Sa&&!CM(b,c)?(c=jM(b.info),c.smst=1,a.Y("error",c||{})):a.D=c+DM(b)),!b.range.length))return[];if(!a.K.te()&&a.G)if(b.info.A){a.M=!1;a.J=null;c=a.G;if(a.o)e=lR(a.o),d=a.o,d.F=window.NaN,d.J=0,d=e.startTime,e=e.duration;
else{if(MI(b.info.g.info)){for(var d=b.info.g.g,f=e=window.NaN,k=0,l=new window.DataView(b.g);yL(l,k);){var m=zL(l,k);1936286840==m.type?f=DL(m):1836476516==m.type?f=wL(m):1952867444==m.type&&(0,window.isNaN)(e)&&(e=CL(m));k=AL(m.type)?k+8:k+m.size}!f&&d&&(f=xL(d));d=e/f}else d=new lM(AM(b)),e=b.A?d:new lM(new window.DataView(b.info.g.g.buffer)),f=xM(e),e=d.g,d.g=0,yM(d)?wM(d,231)?(f=rM(d)*f/1E9,d.g=e,d=f):(d.g=e,d=window.NaN):(d.g=e,d=window.NaN);d=d||b.info.C;e=DM(b)}a.Y("segmentinfo",xR(c,d,e,
!1));if(e=qL(c))e.Pd+=d,a.Y("cuepoint",e,c.o)}else a.M&&!(0,window.isNaN)(a.o.F)&&(c=xR(a.G,lR(a.o).startTime,a.G.F,!0),a.J=c,a.Y("placeholderinfo",c),a.M=!1);if(a.B.oa&&!a.K.te()&&(0==b.info.o||a.A)&&MI(b.info.g.info)&&3==b.info.type&&!FM(b)&&b.info.duration&&!a.B.Vb&&(a.C+=1E3*(DM(b)-b.info.duration),a.P&&Math.abs(a.C-a.P.C)>=a.B.Ia))return c=(a.P.C-a.C)/1E3,d=DM(b)+c,e=d*EM(b),(e=yR(a,b,e))&&e.length&&(f=jM(b.info),f.fds=d.toFixed(3),f.com=a.C.toFixed(3),a.Y("timestamprewrite",f),a.D+=c,a.C+=1E3*
c),e?e:zR(a,b);if(a.B.ra&&a.K.te()&&(0==b.info.o||a.A)&&MI(b.info.g.info))return c=b.info.g.index.Hm(b.info.Ba),(c=yR(a,b,c))?c:zR(a,b)}return[b]};
xR=function(a,b,c,d){return new eL(a.o,b,c,a.ingestionTime,"sq/"+a.o,void 0,void 0,d)};
wR=function(a,b){return!a.K.te()&&3==b.info.type&&0==b.info.o&&(MI(b.info.g.info)||2==b.info.g.info.A)};
zR=function(a,b){if(a.A&&a.A!=b){var c=[a.A,b];a.A=null;return c}return[]};
yR=function(a,b,c){if(a.A){var d=a.A;var e=new window.Uint8Array(d.range.length+b.range.length);e.set(new window.Uint8Array(d.g,d.range.start,d.range.length));e.set(new window.Uint8Array(b.g,b.range.start,b.range.length),d.range.length);d=new window.DataView(e.buffer);FL(d)}else d=AM(b),d=(e=FL(d))&&e<d.byteLength?d:null;if(!d)return a.A=b,null;(c=HL(d,c,a.ca,a.B.Fa))?(d=FL(d),a.A&&(d-=a.A.range.length,a.A=null),a=BM(b,d),a[0].g=c,a[0].range=fM(0,c.byteLength),a[0].B=fM(0,c.byteLength)):a=null;return a};
Sla=function(a,b){this.o=a;this.D=this.C=!1;this.length=b?b:0;this.g=0;this.A=[];this.B=null;this.length?1!=this.o.length||this.o[0].wb||(this.o[0].wb=this.length):1==this.o.length||(0,g.Br)(this.o,function(a){return!!a.range})};
Tla=function(a){var b=a.length-a.g;(0,g.H)(a.A,function(a){b+=a.range.length});
return b};
Ula=function(a,b,c,d,e){this.g=a;this.ba=b;this.fa=c;this.da=e;this.O=this.o=window.NaN;this.ca=0;this.A=this.J=this.D=window.NaN;this.V=this.P=this.B=!1;this.C=0;this.F=cL(this.g);this.M=this.K=window.NaN;this.G=d};
AR=function(a){return{rt:(((0,g.G)()-a.o)/1E3).toFixed(2),lb:a.A,pt:a.K.toFixed(2),pb:a.ba,stall:a.C.toFixed(2),elbowTime:((a.O-a.o)/1E3).toFixed(2),elbowBytes:a.ca}};
BR=function(a,b,c){var d=(b-a.D)/1E3,e=c-a.A;if(a.B)!a.G&&0<e&&(.2<d||1024>e?(a.C+=d,.2<d&&VK(a.g,.05,e)):VK(a.g,d,e),a.V=!0);else if(c>=a.g.policy.g){if(!a.G){var f=a.g;f.D.g(1,(b-a.o)/1E3);WK(f)}a.O=b;a.ca=c;a.B=!0}ZK(a.g,d,e);a.D=b;a.A=c};
CR=function(a){return a.A>=a.g.policy.g};
DR=function(a){return Math.max(0,((0,g.G)()-a.J)/1E3)};
ER=function(a){var b=a.ba-a.A,b=1E3*(b*a.F.stall+b/a.F.byterate),c=(0,g.G)(),b=CR(a)?b+c:b+Math.max(c,a.o+1E3*a.F.delay);a.M=b};
FR=function(a,b,c,d,e){this.status=0;this.G=this.response=null;this.M=d;this.D=c;this.P=e;this.o=[];this.B=null;this.A=this.g=0;this.Aa=Vla++;this.O=window.NaN;this.C=null;a=new window.Request(a,{method:"GET",credentials:"include"});(0,window.fetch)(a).then(rE((0,g.A)(this.QQ,this)),rE((0,g.A)(this.yn,this)));(0,g.G)();this.K=this.J=this.F=!1;b()};
HR=function(a){a.K=!0;a.o.push(a.B.subarray(0,a.g));a.g=0;a.B=a.F?null:new window.Uint8Array(GR(a))};
IR=function(a,b){if(b.length+a.g>GR(a)){var c=new window.Uint8Array(a.g+b.length);c.set(a.B,0);a.B=c}a.B.set(b,a.g);a.g+=b.length};
JR=function(a){a.C.read().then(rE((0,g.A)(a.QM,a)),rE((0,g.A)(a.ZO,a)));var b=(0,g.G)();a.O=b};
GR=function(a){a=a.Vp()||0;return Math.max(16384,.125*a)};
KR=function(a,b,c,d,e){this.status=0;this.response=null;this.o=this.A=!1;this.g=new window.XMLHttpRequest;this.g.open("GET",a);this.g.responseType="arraybuffer";this.g.withCredentials=!0;this.g.onreadystatechange=(0,g.A)(this.cK,this);this.B=d;this.D=c;this.C=e;a=rE((0,g.A)(this.aK,this));this.g.addEventListener("load",a,!1);this.g.addEventListener("error",a,!1);this.g.send();b();this.g.addEventListener("progress",rE((0,g.A)(this.bK,this)),!1)};
LR=function(a,b,c,d){this.A=a;this.info=b;this.timing=c;this.P=d;this.state=1;this.g=null;this.O=this.ie=this.G=0;this.F=window.NaN;this.D=this.B=this.K=null;this.C=0;this.J=this.o=null;this.M=0;this.V=!1};
MR=function(a){return a.B?PM(a.B.g):""};
OR=function(a){var b=AR(a.timing);b.shost=MR(a);b.rn=a.G.toString();a.C&&(b.rc=a.C.toString());b.itag=""+II(a.info.g[0].g.info);b.ml=""+ +a.info.g[0].g.xd();410!=a.C&&500!=a.C&&503!=a.C||(b.isPotentialFormatUnavaliable="true");(a=NR(a))&&(b.action=a);return b};
Wla=function(a){var b=AR(a.timing);return{rn:a.G.toString(),rt:b.rt,pt:b.pt,stall:b.stall,elt:b.elbowTime,elb:b.elbowBytes}};
NR=function(a){if(7==a.state&&!PR(a)){var b=QR(a);if(b=0<b.o&&0==b.A)b=a.info.o,b=!(a.G>b.B&&0<b.A);return b?"fastfallback":10<=a.ie?"fallback":"retry"}return""};
QR=function(a){MR(a);return HM(a.P,MR(a))};
RR=function(a){if(a.A.A){if(1==a.state)return!0;a=QR(a);return 20>a.mf&&6>a.g}if(10>a.ie)a=!0;else{var b=a.info.o;a=!(a.G>b.B&&0<b.A)}return a};
SR=function(a,b){a.state=b;if(5<=a.state){var c=a.timing;c.B&&(c.B=!1)}a.K&&a.K(a)};
TR=function(a){return(0,g.Br)(a.info.g,function(a){return 3==a.type})};
PR=function(a){return a.A.A?!0:a.info.g[0].g.xd()||CR(a.timing)?7==a.state&&("net.timeout"==a.D||"net.connect"==a.D&&204==a.C):!1};
UR=function(a){if(a.g){var b=a.g;a.g=null;b.abort()}a=a.timing;a.B&&(a.B=!1)};
WR=function(a){var b=a.g.lh("content-type"),c=a.g.Vp();return(!VR(a)||!b||-1!=b.indexOf("text/plain"))&&(!c||2048>=c)};
VR=function(a){return a.g?a.g.gB():!1};
XR=function(a){return 2<=a.state&&!!a.o&&!!a.o.A.length};
YR=function(a,b){if(b||VR(a)&&!WR(a)){if(!a.o){var c;VR(a)||(c=a.g.Rp());a.o=new Sla(a.info.g,c)}for(;a.g.Xq();){c=a.o;for(var d=a.g.ZA(),e=b&&!a.g.Xq(),f=0,k=0,l=g.ka(c.o),m=l.next();!m.done;m=l.next())if(m=m.value,m.range&&f+m.wb<=c.g)f+=m.wb;else{var n=c,q=m;if(1==q.type){n.C=!0;var r=!1}else 3==q.type||4==q.type?(q=n.C&&!n.D,n.D=!0,r=q):r=!1;var n=c,w=c.g-f,q=k,z=d,B=r||m.g.ky(),D=z.length-q;m.range&&(D=Math.min(m.wb-w,D));r=m.range?m.o+w+D==m.range.length:!!e;w=new gM(m.type,m.g,m.range,m.Ba,
m.startTime,m.duration,m.o+w,D,r&&m.D);w.A=r;n.A.push(new zM(w,z.buffer,fM(z.byteOffset+q,D),fM(z.byteOffset,z.length),B));n=D;c.g+=n;k+=n;f+=m.wb;if(k==d.length)break}}}};
ZR=function(){this.g=this.o=!1};
$R=function(a,b){this.K=a;this.Ua=b;this.A=[];this.o=new sR(a,b);this.B=this.g=null;this.ba=0;this.O=b.info.g;this.P=this.M=!1;this.J=new ZR;this.C=null;this.D=0;this.G=b.bf();this.F=-1;this.V=0};
aS=function(a,b){a.A.push(b);a.g=g.Ya(b.info.g)};
cS=function(a,b){for(;a.A.length&&6==a.A[0].state;){var c=a.A.shift();bS(a,c);var d=c.timing;a.ba=(d.D-d.o)/1E3;a.M||(c=c.info,a.V=Math.max(a.V,Math.max(0,c.g[c.g.length-1].B-b)))}a.A.length&&XR(a.A[0])&&!hM(a.A[0].info.g[0])&&bS(a,a.A[0])};
bS=function(a,b){if(XR(b)){b.V=!0;var c=b.o,d=c.A;c.A=[];c.B=g.Ya(d).info;(0,g.H)(d,a.da,a)}};
dS=function(a){return!(!a.o.g.length||!MI(tR(a.o).info.g.info)||0!=tR(a.o).info.o)};
eS=function(a){var b=AM(tR(a.o)),c=FL(b);return(!c||c>b.byteLength)&&1==a.o.g.length};
gS=function(a,b,c){eS(a);var d=tR(a.o),e=fS(a);if(!e)return null;c=c||d.info.g.index.Hm(d.info.Ba);return(a=HL(e,c,b,a.K.Fa))?a:null};
iS=function(a){var b=tR(a.o),c=fS(a);if(c&&(c=FL(c)))if(c>AM(b).byteLength){var d=a.o.g[1];hS(a,b.range);hS(a,fM(d.range.start,c-b.range.length))}else hS(a,fM(b.range.start,c))};
fS=function(a){var b=tR(a.o),c=AM(b),d=FL(c);if(!d||d>c.byteLength){d=a.o.g[1];a=new window.Uint8Array(b.range.length+d.range.length);a.set(new window.Uint8Array(b.g,b.range.start,b.range.length));a.set(new window.Uint8Array(d.g,d.range.start,d.range.length),b.range.length);d=FL(new window.DataView(a.buffer));if(!d||d>a.byteLength)return null;c=new window.DataView(a.buffer.slice(0,d))}return c};
hS=function(a,b){for(var c=a.o,d=[],e;c.g.length;){if(c.g[0].range.end>b.end){var f=BM(c.g[0],b.end-c.g[0].range.start+1);e=f[0];c.g[0]=f[1]}else e=c.g.shift();d.push(e);if(e.range.end==b.end)break}d.length&&(0,g.H)(d,a.fa,a)};
lS=function(a,b){a.Ua.xd();a.V=0;var c=jS(a,b);if(0<=c)return c;a.g=a.Ua.Wg(b).g[0];kS(a)&&(a.B=null);a.C=null;a.D=0;return a.g.startTime};
mS=function(a,b){a.G=!0;a.F=-1;lS(a,window.Infinity);a.K.J?a.o.F=b:a.C=b};
Xla=function(a,b){var c=a.o.g.length?uR(a.o).info:a.B;if(b&&c&&!c.A){for(var d=c.Ba,c=[],e=g.ka(a.A),f=e.next();!f.done;f=e.next())f=f.value,(0,g.Ek)(f.info.g,function(a){return a.Ba==d})?c.push(f):nS(a,f);
a.A=c;a.g=a.A.length?g.Ya(g.Ya(a.A).info.g):null}else oS(a)};
pS=function(a){var b=0;(0,g.H)(a.A,function(a){var c=b;a=a.o&&a.o.length?Tla(a.o):bN(a.info);b=c+a},a);
return b+=Rla(a.o)};
qS=function(a,b){var c=!!a.Ua.info.video&&!!a.B&&!a.B.A,d=1<=b&&c;Qla(a.o,d);a.M=d;Xla(a,2<=b&&c)};
rS=function(a){a.J.o||a.J.start();qS(a,0);kS(a)&&(a.B=null)};
kS=function(a){return!!a.B&&a.B.D};
sS=function(a){var b=[];a.B&&b.push(a.B);b=g.nb(b,vR(a.o));(0,g.H)(a.A,function(a){(0,g.H)(a.info.g,function(a){3!=a.type&&4!=a.type||b.push(a)})});
a.g&&!aka(a.g,g.Ya(b),a.g.g.te())&&b.push(a.g);return b};
tS=function(a){if(!a.g||!a.g.wb)return!1;a=sS(a);if(!a.length)return!1;for(var b=1;b<a.length;b++)if(!(1E-6>=Math.abs(a[b].C-a[b-1].B)))return!1;return!0};
jS=function(a,b){if(tS(a)){a:{var c=sS(a);c=g.ka(c);for(var d=c.next();!d.done;d=c.next())if(d=d.value,d.C<=b&&d.startTime+d.duration>=b){c=d;break a}c=null}if(c)return c.startTime}return window.NaN};
uS=function(a){return(0,g.Ek)(a.A,function(a){return 4<=a.state})};
vS=function(a){return!(!a.g||!a.Ua.xd()||a.g.g==a.Ua)};
wS=function(a){return vS(a)&&a.g.g.info.g<a.Ua.info.g};
xS=function(a,b,c){return(a=uR(a.o)?uR(a.o).info:a.B)&&!a.D?a.B>b&&a.B<b+c:!1};
oS=function(a){(0,g.H)(a.A,function(a){nS(this,a)},a);
a.A=[];a.g=null};
nS=function(a,b){if(b.V){var c=a.o,d=b.info;c.M=!1;c.J&&(c.Y("placeholderrollback",c.J),c.J=null);if(c.o){var e=window.NaN;(0,window.isNaN)(c.F)&&(e=d.g[0].range?d.g[0].C:lR(c.o).startTime);c.o.reset();c.O=c.V;(0,window.isNaN)(e)||(d=c.o,d.D=e,oR(d))}c.G=null}b.dispose()};
yS=function(a){return!!a.g&&-1!=a.g.Ba&&a.g.Ba<a.Ua.index.ng()};
zS=function(a){if(a.g){var b=uR(a.o);b&&3==b.info.type&&-1==a.g.Ba&&(a.g.Ba=b.info.Ba)}};
AS=function(a){a.K.J?(a=a.o,a=a.o?mR(a.o):a.D||0):a=a.C||0;return a};
Yla=function(a,b){this.g=a;this.o=b;this.A=1};
BS=function(a,b,c,d){d/=a.A;var e=$K(a.g)+1/aL(a.g);var f=Math.max(.9*(d-3),YK(a.g)+a.g.policy.g*e);c=f/e*a.o.Ah/(b+c);c=Math.min(c,d);c=Math.max(a.o.Ng,Math.min(a.o.Mg,c));return Math.min(a.o.F,Math.max(65536,Math.ceil(c*b)))};
CS=function(a,b){var c=a.o.Lg;if(a.o.Ed)return b;var d=1E-9+YK(a.g)+c*$K(a.g),c=b*Math.min(1,c/(b*d));a.o.Zb&&(d=((TK(a.g.o,.98)||0)-a.o.kc)/(a.o.xm-a.o.kc),d=Math.max(0,Math.min(1,d)),c*=1-a.o.Zb*d);return c};
DS=function(a){return CS(a,aL(a.g))};
ES=function(a){return DS(a)/a.A};
Zla=function(a,b,c,d){this.ca=a;this.A=b;this.F=c;this.K=d;this.o=this.O=this.D=null;this.G="i";this.P=-1;this.g=this.B=null;this.C=[];this.ba={};this.V=this.fa=0;this.ga=null;this.M=this.J=!1;this.da=0};
$la=function(a,b,c){"m"==c&&a.D.isLocked()&&!b.isLocked()&&(c="a");a.J=a.J||!1;if("m"==c&&b.isLocked())return a.G=c,FS(a,b),GS(a),HS(a),a.M|=a.o!=a.g,a.o=a.g,new fR(a.B,a.o,c);var d=VI(a.D,b);if("m"==a.G&&a.D.isLocked()&&d)return null;"r"!=c||d||(a.P=-1);FS(a,b);HS(a);if("r"==c&&a.g==a.o){if(d)return null;a.o=a.g;return new fR(a.B,a.g,c)}a.G=c;IS(a);return null};
JS=function(a){return!!a.V&&(0,g.sG)()-a.V<=1E3*a.A.Bb};
KS=function(a){return a.D.isLocked()};
IS=function(a){a.o&&a.g&&LS(a,a.o.info)<LS(a,a.g.info)&&(a.J|="r"==a.G,a.J=a.A.Cd?a.J|("v"==a.G&&a.g.info.video.width>a.o.info.video.width):a.J|a.g.info.video.width>1.6*a.o.info.video.width)};
MS=function(a){var b=a.G;a.G="a";a.P=(0,g.sG)();a.J=!1;return new fR(a.O,a.o,b)};
FS=function(a,b){a.D=b;var c=a.K.videoInfos;if(!KS(a)&&(c=(0,g.re)(c,function(a){return a.g>this.A.K?!1:this.A.A?4<this.F.g[a.id].C.g?!1:!0:!this.F.g[a.id].B},a),JS(a))){var c=(0,g.re)(c,function(a){return a.id!=this.ga.id},a),d=(0,g.re)(c,function(a){a=II(a);
return"140"==a||"134"==a||"243"==a});
d.length&&(c=d)}c.length||(c=a.K.videoInfos);d=(0,g.re)(c,b.B,b);d.length||(d=[c[0]]);d.sort((0,g.A)(function(a,b){return LS(this,a)-LS(this,b)},a));
for(c=1;c<d.length;c++){var e=d[c-1],f=d[c];e.video.width>f.video.width?(g.jb(d,c),c--):LS(a,e)*a.A.g>LS(a,f)&&(g.jb(d,c-1),c--)}c=d[d.length-1];a.C=d;Zja(a.A,c)};
ama=function(a,b){if(b)a.B=a.F.g[b];else{var c=g.$a(a.K.g,function(a){return!!a.Rc&&a.Rc.isDefault}),c=c||a.K.g[0];
a.B=a.F.g[c.id]}GS(a)};
GS=function(a){if(!a.B.info.Rc&&(a.B=a.F.g[a.K.g[0].id],1<a.K.g.length)){if(a.D.isLocked())var b=240>a.D.g;else{for(b=0;b+1<a.C.length&&"tiny"==a.C[b].video.quality;)b++;var c=ES(a.ca)/a.A.g;b=LS(a,a.B.info)+LS(a,a.C[b])>c}b&&(a.B=a.F.g[a.K.g[1].id])}};
HS=function(a){if(KS(a))a.g=a.F.g[a.C[a.C.length-1].id];else{for(var b=Math.min(a.fa,a.C.length-1),c=ES(a.ca),d=LS(a,a.B.info),e=c/a.A.B-d;0<b&&!(LS(a,a.C[b])<=e);b--);c=c/a.A.g-d;a.A.Vm&&(e=a.ca,d=CS(e,bL(e.g))/e.A/a.A.g-d,c=Math.min(c,d));for(;b<a.C.length-1&&!(LS(a,a.C[b+1])>=c);b++);a.g=a.F.g[a.C[b].id];a.fa=b;IS(a)}};
bma=function(a){var b=a.A.B,c=ES(a.ca)/b-LS(a,a.B.info),b=g.ab(a.C,function(a){return LS(this,a)<c},a);
0>b&&(b=0);a.fa=b;a.g=a.F.g[a.C[b].id]};
LS=function(a,b){if(!a.A.da)return b.g;if(!a.ba[b.id]){var c=a.F.g[b.id].index.hw(a.da,a.A.da),c=b.B&&a.o&&a.o.index.Pb()?c||b.B:c||b.g;a.ba[b.id]=c}return a.ba[b.id]};
cma=function(){this.g=this.o=0;this.A=[]};
NS=function(a,b){return(a[b]<<24)+(a[b+1]<<16)+(a[b+2]<<8)+a[b+3]};
OS=function(a,b,c,d){this.o=a;this.D=b;this.C=d;this.B=c;this.g=0};
dma=function(a,b){this.o=a;this.F=b;this.C=this.B=this.g=null;this.D=this.A=window.NaN};
ema=function(a,b,c){return a.Dd&&b.o?new dma(a,c):null};
fma=function(a,b){var c=tR(b.o);if(!c)return-1;var d=c.o;if(!d||!d.B||!d.A)return-1;var e=b.A.length?b.A[0]:null;if(!(e&&3<=e.state&&7!=e.state&&VR(e))||0!=e.info.A||0>PS(a,d,c.info))return-1;var f=a.o.Ch/(c.info.g.info.video.fps||30);a.g=e;a.B=d;a.C=c.info;a.A=f;a.D=(0,g.G)()/1E3;return window.NaN};
PS=function(a,b,c){b=(0,g.G)()/1E3-(a.F.o()||0)-b.A-a.o.zi;if(0>=b)return-1;var d=c.g.index;if(!gN(d,c.Ba,!0))return-1;var e=d.getDuration(c.Ba);c=d.df(c.Ba);a=Math.min(c+b,c+e-a.o.yi);return a<=c?-1:a};
gma=function(){this.g=[];this.o=g.qJ};
QS=function(a,b){for(var c=[],d=g.ka(a.g),e=d.next();!e.done&&!(e=e.value,e.contains(b)&&c.push(e),e.start>b);e=d.next());return c};
hma=function(a){return a.g.slice(RS(a,0x7ffffffffffff),a.g.length)};
RS=function(a,b){var c=xb(a.g,function(a){return b-a.start||1});
return 0>c?-(c+1):c};
SS=function(a,b){for(var c=void 0,d=g.ka(a.g),e=d.next();!e.done;e=d.next())if(e=e.value,e.contains(b)&&(void 0==c||e.end<c)&&(c=e.end),e.start>b&&(void 0==c||e.start<c)){c=e.start;break}return c};
TS=function(a,b,c,d){g.M.call(this);this.B=window.NaN;this.J=!1;this.G=null;this.K=this.M=this.C=!1;this.ca=a;this.ba=b;this.O=c;this.V=d;this.P=new g.rt(this.A,250,this);g.N(this,this.P);this.D=new g.rt(this.A,0,this);g.N(this,this.D);this.o=[];this.g=new gma};
US=function(a,b){a.A();var c=a.g;if(1<b.length&&b.length>c.g.length)c.g=c.g.concat(b),c.g.sort(c.o);else for(var d=g.ka(b),e=d.next();!e.done;e=d.next())e=e.value,!c.g.length||0<c.o(e,c.g[c.g.length-1])?c.g.push(e):Bb(c.g,e,c.o);a.B=window.NaN;a.A()};
jma=function(a,b){var c=[];if(!b.length)return c;for(var d=0;d<b.length;d++){var e=b[d];e.active&&-1==a.o.indexOf(e)&&(a.o.push(e),c.push([1,e]))}return c};
kma=function(a,b){var c=[];if(!b.length)return c;b.sort(g.qJ);for(var d=0;d<b.length;d++){var e=b[d];a.o.splice(a.o.indexOf(e),1);c.push([2,e])}return c};
WS=function(a,b,c,d,e){g.RF.call(this);this.M=a;this.o=b;this.C=c;this.kb=e||null;this.g=this.B=null;this.K=new Yla(a,b);this.A=null;this.F=new Zla(this.K,b,this.C,d);this.ga=this.Fa=window.NaN;this.Ia=new g.rt(this.ee,void 0,this);this.D=this.Na=window.NaN;this.O=!1;this.J=window.NaN;this.Ta=0;this.fa=this.G=!1;this.ob={};this.da="";this.ka=this.oa=0;this.Oa=b.Em?new cma:null;this.ua=new QK(5);this.sb=(0,g.A)(function(a){this.o.ka&&(VS(this,!1,"qoe.avsync",a),this.o.ka=!1)},this);
this.ra=!1;this.tb={};this.sa="";this.Ra=window.NaN;this.V=!1;this.P=ema(this.o,this.C,this.ua)};
YS=function(a,b){b=b||a.g&&a.g.g&&a.g.g.startTime||a.D;var c=a.g,d=a.F;if(d.A.da){var e=d.g&&d.g.index.Xg(b)||0;d.da!=e&&(d.ba={},d.da=e,FS(d,d.D))}!KS(d)&&-1<d.P&&(0,g.sG)()-d.P<1E3*d.A.Pe||(d.V&&!JS(d)&&(d.V=0,FS(d,d.D)),GS(d),HS(d),d.M|=d.g!=d.o);d.g.index.Pb()||(d.da=-1);d=d.g;c.Ua!=d&&(c.Ua=d,d.o||XS(a,c,!1));c=a.B;d=a.F.B;c.Ua!=d&&(c.Ua=d,d.o||XS(a,c,!1))};
$S=function(a){0==a.D&&(a.g.Ua.o||XS(a,a.g,!0),a.B.Ua.o||XS(a,a.B,!0));a.seek(a.D);ZS(a,"gv")};
g.aT=function(a,b){if(b.B){var c=a.g.Ua.info.mimeType;b.g=b.A.addSourceBuffer(a.B.Ua.info.mimeType);b.J?b.o=b.A.addSourceBuffer(c):b.o=new NL}a.A=b;a.B.P=!1;a.g.P=!1;a.B.B=null;a.g.B=null;a.resume();YL(b)&&(b.g.addEventListener("updateend",(0,g.A)(a.ee,a),!1),b.o.addEventListener("updateend",(0,g.A)(a.ee,a),!1),b.g.addEventListener("error",(0,g.A)(a.Dn,a,!0),!1),b.o.addEventListener("error",(0,g.A)(a.Dn,a,!1),!1));ZS(a,"msa");g.uP("msa",void 0,"video_to_ad");yP.measure&&yP.getEntriesByName("mark_vta").length&&
yP.measure("measure_vta_to_msa","mark_vta");a.ha&&a.ca&&(c=g.x("yt.scheduler.instance.enablePriorityThreshold"))&&c(1);a.ee();a.Na=g.wE((0,g.A)(a.ee,a),1E4)};
cT=function(a){a.A&&a.A.g&&a.A.g.removeEventListener&&(a.A.g.removeEventListener("updateend",(0,g.A)(a.ee,a),!1),a.A.o.removeEventListener("updateend",(0,g.A)(a.ee,a),!1),a.A.g.removeEventListener("error",(0,g.A)(a.Dn,a,!0),!1),a.A.o.removeEventListener("error",(0,g.A)(a.Dn,a,!1),!1));a.A=null;a.G=!0;bT(a)};
dT=function(a){a.A&&VL(a.A)&&cT(a)};
eT=function(a,b,c){if(!b.J.o||!c.remove)return!1;if(c.updating)return!0;if(!b.J.g&&c.buffered.length)return a=c.buffered.end(c.buffered.length-1),c.remove(0,a),b.J.g=!0;b.J.reset();a.Y("seekelementrequired");return!1};
gT=function(a,b,c){if(a.G&&(!a.o.ca||!dL(a.M)))return!1;if(a.C.o){if(0<b.A.length&&!a.o.Za)return!1;if(b.G)return!0}if(!(b.g||a.C.o&&a.o.Za&&b.G)){if(!b.Ua.xd())return b.Ua.o||XS(a,b,!1),!1;lS(b,a.D)}var d=b.A.length+c.A.length;(uS(b)||uS(c)||a.C.isLive&&(!a.o.Za||!b.A.length))&&--d;if(2<=d+1)return!1;d=b.g;if(!d)return!0;4==d.type&&d.g.xd()&&(b.g=g.Ya(d.g.Tn(d)),d=b.g);!d.D&&!d.g.hi(d)||d.g.info.audio&&4==d.type?a=!1:wS(b)&&!a.o.ba?a=!0:(!(c=d.D||pS(b)+pS(c)>a.o.fa||!!(c.g&&!c.g.D&&c.g.B<d.B)&&(!a.C.o||
c.g.B&&d.B))&&(c=3==d.type)&&(d=d.B,b=fT(a,b,!0),!KS(a.F)&&0<a.o.V&&(c=((0,g.sG)()-a.Ta)/1E3,b=Math.min(b,a.o.V+a.o.Gb*c)),b=a.D+b,a.o.tb?(c=Math.min(b,lma(a)+a.o.tb),c!=b&&a.kj("mrl","ori."+b+";mod."+c,!0),a=c):a=b,c=d>a),a=c?!1:!0);return a};
hT=function(a,b,c){if(!(a.A&&!TL(a.A)&&!YL(a.A)||a.O||a.o.Cc&&!a.F.J)){var d=a.D,e=a.K;c=BS(e,b.Ua.info.g,c.Ua.info.g,0);var f=YK(e.g)+c*$K(e.g)+c/aL(e.g),d=d+Math.max(f,f+e.o.ob-c/b.Ua.info.g);a:{a=a.F.J;if(b.A.length){if(b.A[0].info.g[0].startTime<=d)break a;oS(b)}e=b.o;for(c=e.g.length-1;0<=c;c--)e.g[c].info.startTime>d&&e.g.pop();b.A.length?b.g=g.Ya(g.Ya(b.A).info.g):b.o.g.length?b.g=uR(b.o).info:b.g=b.B;a&&b.g&&d<b.g.startTime&&(b.C=null,b.D=0,b.g=b.Ua.Wg(d,!0).g[0])}}};
kT=function(a,b,c){gT(a,b,c);var d=b.g;if(b.G)a.ra=!0,d=b.Ua.Wg(window.Infinity),d.A=a.Ra;else if(b.g.g.xd()){!wS(b)||a.o.ba||a.C.o||(hT(a,b,c),b.g||lS(b,a.D));var d=b.g,e=d.B-a.D,f=!d.range||0==d.wb&&0==d.o?0:d.range.length-(d.o+d.wb);if(vS(b)){var k=a.o.Oa?Math.min(fT(a,b,!0),b.V)*a.o.Oa:Math.min(a.o.Na,.5*fT(a,b,!0));var l;if(l=a.o.sf)if(l=!!b.A.length)l=b.A[0].info,l=4==l.g[l.g.length-1].type;k=wS(b)||e<=k&&!l}else k=!1;k&&0==f&&(a.C.o?d.g=b.Ua:(f=d.startTime+iT,d.wb&&(f+=d.duration),lS(b,f),
d=b.g));d.g.te()?(c=BS(a.K,d.g.info.g,c.Ua.info.g,e),e=vS(b),c=d.g.gi(d,c),c.range&&1<c.g.length&&(e||a.o.A&&c.o.g?c=d.g.gi(d,c.g[0].wb):(e=c.g[c.g.length-1],f=e.wb/c.range.length,!e.A&&.4>f&&(c=d.g.gi(d,c.range.length-e.wb)))),d=c):d=d.g.Mk(d)}else d.g.te()?(c=BS(a.K,b.Ua.info.g,c.Ua.info.g,0),d=d.g.gi(d,c)):d=d.g.Mk(d);aS(b,jT(a,d))};
jT=function(a,b){if(3==b.g[b.g.length-1].type){a:{var c=a.F;var d=b.g[0].g;if(d.info.video){if(c.o!=d){c.o=d;c=MS(c);break a}}else c.O=d;c=null}c&&a.Y("videoformatchange",c)}c=bN(b);var d=a.M,e=a.K,f=Math.min(2.5,YK(e.g)),e=DS(e);c=new Ula(d,c,c-f*e,a.o.Ql&&a.ra,hM(b.g[0]));c=new LR(a.o,b,c,a.tb);d=(0,g.A)(a.kP,a);c.K=d;c.start(Math.max(0,b.g[0].C-a.D));b.g[0].g.info.video&&(d=MR(c))&&(a.sa=d.substr(0,d.indexOf(".")));return c};
lT=function(a){if((0,window.isNaN)(a.Fa)){var b=(0,g.A)(a.ee,a);a.Fa=g.xE(b,0)}};
mT=function(a){if((0,window.isNaN)(a.ga)){var b=(0,g.A)(function(){this.ga=window.NaN;this.ee()},a);
a.ga=g.xE(b,1E3)}};
mma=function(a){if(a.P){var b=!!a.P.g,c=a.P,d=a.g;c.g?!(c.g.na()||5<=c.g.state)&&(0,g.G)()/1E3-c.D<c.o.Ai&&DR(c.g.timing)<c.A?c=window.NaN:(d=PS(c,c.B,c.C),c.g=null,c.B=null,c.C=null,c.A=window.NaN,c.D=window.NaN,c=d):c=fma(c,d);(b||a.P.g)&&a.kj("ssr","ca."+c);if(!c)return!0;0<c&&a.Y("seekplayerrequired",c,!0)}if(a.C.A)return!1;if(b=a.O){if(b=0<a.o.ha&&a.g&&a.B){var b=a.K,e=a.g,f=a.B,c=a.o.ha;if(0==e.A.length&&0==f.A.length)b=!0;else{for(var d=0,k=vR(e.o).concat(vR(f.o)),k=g.ka(k),l=k.next();!l.done;l=
k.next())d+=l.value.wb;e=e.O+f.O;d/=e;b=d>c?!0:e*(c-d)/ES(b)<c}b=!b}b||(b=a.g,b=0<b.A.length&&1==b.o.g.length&&tR(b.o).info.F<b.ba)}if(b)return!0;if(!a.fa||!a.o.O||10>a.D||360<a.g.Ua.info.video.o)return!1;b=xS(a.g,a.D,a.o.O)||xS(a.B,a.D,a.o.O);return(0<a.g.A.length||0<a.B.A.length||gT(a,a.g,a.B)||gT(a,a.B,a.g))&&b};
pT=function(a,b,c,d,e){if(c.updating)return!0;var f=tR(b.o);if(!f)return!1;!b.B||b.B.A||iM(b.B,f.info)||(b.B=null,TL(a.A)&&c.abort(),c.g=null);var k=a.C.isLive&&FM(f),l=!a.C.A&&b.K.ra&&dS(b);a.o.Kg&&a.C.A&&0==f.info.o&&MI(f.info.g.info)&&(a.C.o?null!=b.B&&b.B.g==f.info.g:null!=c.g&&c.g==f.info.g.g)&&(GL(AM(f),1836019574),GL(AM(f),1718909296),f.A=!1);if(!a.C.A||0==f.info.o)if(k=k||a.C.o||f.A,l||!k){if(f.info.g.xd(),k=f.info.g.g,c.g==k?k=!1:(nT(a,c,k),c.g=k,a.Y("initsegment",c.g),k=c.updating),k)return!0}else c.g=
null;k=fT(a,b,!1);k=a.D+k;null!==d&&0<=d&&(k=Math.min(k,d));d=k;if(b.M)d=tR(b.o).range;else if(k=b.o,!k.g.length||k.g[0].info.C>=d)d=null;else{var m;for(m=1;m<k.g.length;m++){var n=k.g[m].g!=k.g[m-1].g;if(k.g[m].info.C>d||n||k.B.ra)break}m--;d=new dM(k.g[0].A?0:k.g[0].range.start,k.g[m].range.end)}if(!d)return!1;if(l){if(eS(b))return!1;if(k=gS(b,a.sb))return oT(a,c,new window.Uint8Array(k),f,b)?(iS(b),!0):!1}k=new window.Uint8Array(f.g,d.start,d.length);if(a.Oa&&f.info.g.info.video&&MI(f.info.g.info)&&
(m=a.Oa,0==f.info.o&&(m.o=0,m.g=0,m.A.length=0),!((0,window.isNaN)(m.o)||8>k.length))){for(var n=new window.DataView(k.buffer,k.byteOffset),q=!1;!q;)if(m.o==m.g)a:{var r,q=m,w=k.length;if(q.o+7>=w){for(r=q.o;r<w;r++)q.A.push(n.getUint8(r));q=!0}else{if(0<q.A.length){for(r=0;8>q.A.length;r++)q.A.push(n.getUint8(r));var z=NS(q.A,0);r=NS(q.A,4);q.A.length=0}else z=n.getUint32(q.g),r=n.getUint32(q.g+4);if(1836019558==r||1836019574==r||1718909296==r||1936286840==r)q.o+=z,q.g=q.o;else if(1835295092==r)q.o+=
z,q.g+=8;else{q.o=window.NaN;q=!0;break a}q=q.g>=w}}else a:if(q=m,w=k.length,q.g+5>=w){for(r=q.g;r<w;r++)q.A.push(n.getUint8(r));q=!0}else{if(0<q.A.length){for(r=0;6>q.A.length;r++)q.A.push(n.getUint8(r));r=NS(q.A,0);12==r&&6==q.A[4]&&45==q.A[5]&&n.setUint8(q.g+5,63);q.g+=r+4;q.A.length=0}for(;q.g<q.o&&q.g+5<w;){r=n.getUint32(q.g);if(0>=r){q.o=window.NaN;q=!0;break a}12==r&&6==n.getUint8(q.g+4)&&45==n.getUint8(q.g+5)&&n.setUint8(q.g+5,63);q.g+=r+4}q=q.g>=w}(0,window.isNaN)(m.o)||(m.o-=k.length,m.g-=
k.length)}m=!1;if(3==f.info.type&&(MI(f.info.g.info)||2==f.info.g.info.A))if(m=MI(f.info.g.info)&&a.o.ar&&!l&&!b.P&&0==f.info.o&&0<f.info.startTime)CM(f,0);else if(a.C.A&&0==f.info.o&&!a.o.J){a:if(b.K.oa&&dS(b)&&!FM(tR(b.o))&&eS(b))e=!1;else{null===b.C||!a.o.Rd&&b.B&&!iM(b.B,f.info,!0)?(null!==b.C&&(l=jM(f.info),l.startTime="1",l.pSeg=b.B.Ba,l.seg=f.info.Ba,VS(a,!1,"qoe.avsync",l)),n=f.info.startTime):n=b.C;if(a.o.Sa&&0==CM(f,n))l=jM(f.info),l.smst=1,VS(a,!0,"fmt.unparseable",l);else if(l=DM(f),b.C=
n+l,a.C.o&&f.info.g.info.video&&FN(a.C,new eL(f.info.Ba,n,l,f.o.ingestionTime,"sq/"+f.info.Ba))&&(l=qL(f.o)))l.Pd+=n,n=a.C,n.G.push(l),n.Y("cuepointsadded");l=0;f.info.g.info.video&&null!==e&&f.info.duration&&!a.C.o&&(n=1E3*(DM(f)-f.info.duration),e-=b.D+n,Math.abs(e)>=a.o.Ia&&(l=e/1E3));e=l;l=DM(f);n=l+e;e&&!FM(f)&&(q=jM(f.info),q.deltaOffsetMs=1E3*(l-f.info.duration).toFixed(3),q.cumOffsetMs=b.D.toFixed(3),q.finalDurSecs=n.toFixed(3),VS(a,!1,"qoe.avsync",q));if(b.K.oa&&dS(b)&&!FM(tR(b.o))&&e&&0<
n){if(b.D+=1E3*(l-f.info.duration+e),b.C+=e,e=gS(b,g.y,n*EM(f))){if(oT(a,c,new window.Uint8Array(e),f,b)){iS(b);e=!0;break a}e=!1;break a}}else b.D+=1E3*(l-f.info.duration);e=null}if(null!=e)return e}if(!oT(a,c,k,f,b))return!1;b.P=!0;m?(CM(f,f.info.startTime),c.abort(),c.g=null):hS(b,d);f.A&&(c.g=f.info.g.g,a.Y("initsegment",c.g));return!0};
oT=function(a,b,c,d,e){c=nT(a,b,c);if(0!=c){if(2!=c){if(d.info.g.info.video){var f=a.o;f.C=Math.floor(f.C*f.D);f.M=Math.floor(f.M*f.D);f.o=Math.floor(f.o*f.D);f.sb||(f.F=Math.floor(f.F*f.D))}else f=a.o,f.G=Math.floor(f.G*f.D),f.ga=Math.floor(f.ga*f.D),f.o=Math.floor(f.o*f.D);if(1==c&&a.o.sb&&b.remove&&!b.updating){a=!1;e=b.buffered.length;for(c=0;!a&&c<e;c++)b.buffered.start(c)>d.info.B&&(b.remove(b.buffered.start(c),b.buffered.end(e-1)),a=!0);a||b.remove(0,d.info.startTime-5)}else rS(e)}return!1}return!0};
qT=function(a,b){FN(a.C,b)&&a.o.sa&&a.V&&(a.V=!1,a.Y("seekplayerrequired",b.startTime+.1,!0))};
nT=function(a,b,c){try{YL(a.A)?b.appendBuffer(c):b.append(c)}catch(d){if(11==d.code)return VS(a,!1,"html5.invalidstate",{updating:""+ +b.updating,mrs:a.A.A.readyState}),2;if(22!=d.code&&0!=d.message.indexOf("Not enough storage"))return g.qE(d),4;a.o.ne&&a.kj("quex","br."+LJ(b.buffered).replace(/,/g,"_"));return 1}return VL(a.A)?3:0};
rT=function(a,b){b.o.subscribe("error",a.gO,a);b.o.subscribe("timestamprewrite",a.kO,a);b==a.g&&(b.o.subscribe("placeholderinfo",a.hO,a),b.o.subscribe("placeholderrollback",a.iO,a),b.o.subscribe("segmentinfo",a.jO,a),b.o.subscribe("cuepoint",a.fO,a))};
fT=function(a,b,c){if(a.o.ca&&a.G)return a.o.ca;var d=b.Ua.info.audio?a.o.G:a.o.C;!a.o.ba&&KS(a.F)&&(d=Math.max(d,b.Ua.info.audio?a.o.ga:a.o.M));c&&(d+=a.o.fa);c=KS(a.F)?b.g?b.g.g.info.g:b.Ua.info.g:b.O;d/=c;0<a.o.kb&&a.A&&TL(a.A)&&(b=b.Ua.info.video?a.A.o:a.A.g)&&!b.updating&&(c=GJ(b.buffered,a.D),0<=c&&(b=a.D-b.buffered.start(c),d+=Math.max(0,Math.min(b-a.o.kb,a.o.Oe))));0<a.o.o&&(d=Math.min(d,a.o.o));a.o.Ra&&!KS(a.F)&&(b=a.F,b=LS(b,b.C[0])+LS(b,b.K.g[0]),c=a.o.Ra*(b/DS(a.K)),c<d&&25>c&&a.kj("bwcapped",
"1",!0),c=Math.max(c,25,2.5*a.o.F/b),d=Math.min(d,c));return d};
lma=function(a){if(!a.kb)return window.Infinity;for(var b=(0,g.re)(a.kb.g.g,function(a){return"ad"==a.namespace}),b=g.ka(b),c=b.next();!c.done;c=b.next())if(c=c.value,c.start/1E3>a.D)return c.start/1E3;
return window.Infinity};
sT=function(a,b,c){var d=(0,g.A)(a.Y,a,"error");a=a.o.zb?(0,g.A)(a.kj,a,"pathprobe"):null;(new OS(b,c,a,d)).send()};
tT=function(a,b,c,d){if(b.Ua.xd())if(d){var e=HJ(d.buffered,c),f=window.NaN,k=b.B;k&&(f=HJ(d.buffered,k.g.index.df(k.Ba)));if(e==f&&tS(b))return c;d=jS(b,c);if(0<=d)return d;qS(b,b.Ua.te()?1:2);b.Ua.info.video&&b.B&&!b.B.A&&!Pla(b.o)&&b.Ua.te()&&(d=b.B,b.o.g.length&&(d=uR(b.o).info),d=b.g||d,d=d.g.gi(d,d.range.length-(d.wb+d.o)),aS(b,jT(a,d)));if((0,window.isNaN)(e))return lS(b,c);lS(b,e+iT)}else lS(b,c);else b.Ua.o||XS(a,b,!1),0!=c&&oS(b);return c};
XS=function(a,b,c){c=b.Ua.Km(a.o,c);(0,g.H)(c,function(a){if("f"!=a.g[0].g.info.o){var c=jT(this,a);!hM(a.g[a.g.length-1])&&aS(b,c)}},a);
b.Ua.o=!0};
VS=function(a,b,c,d){a.na()||(a.Y("error",new g.RP(c,b,d)),b&&a.dispose())};
uT=function(a){var b={lct:a.D.toFixed(3),lsk:a.O,lmf:KS(a.F),lbw:aL(a.M).toFixed(3),lhd:YK(a.M).toFixed(3),lst:(1E9*$K(a.M)).toFixed(3),laa:a.B.B?kM(a.B.B):"",lva:a.g.B?kM(a.g.B):"",lar:a.B.g?kM(a.B.g):"",lvr:a.g.g?kM(a.g.g):"",lvh:a.sa};a.A&&!VL(a.A)&&(b.lab=LJ(a.A.g.buffered),b.lvb=LJ(a.A.o.buffered));return b};
ZS=function(a,b,c){a.ob[b]=c?window.performance.timing.navigationStart+c:(0,g.sG)()};
bT=function(a){a.B&&qS(a.B,0);a.g&&qS(a.g,0)};
vT=function(a,b,c){if(!b||!c)return!0;c=-1!=GJ(c.buffered,a);var d=uR(b.o)?uR(b.o).info.B>=a:!1,e=b.A.length?b.A[0]:null;a=(b=e?e.info.g[0]:b.g)&&b.startTime<=a;return!!(c||d||a)};
nma=function(a,b,c){this.url=a;this.interval=b;this.g=c};
oma=function(a,b){this.message=a;this.number=b;this.g=new kC(5E3,2E4,.2)};
pma=function(a,b,c,d){this.statusCode=a;this.statusMessage=b;this.headers=c;this.message=d};
qma=function(a){var b=String.fromCharCode.apply(String,a.subarray(0,16384)),c=b.indexOf("\r\n\r\n");if(-1==c)return null;var d=b.indexOf("\r\n"),e=b.slice(0,d).match(/^GLS\/1.\d ([0-9]{1,3}) (\w+)$/);if(null==e)return null;var f=Xa(e[1]),e=e[2],b=sL(b.slice(d+2));return null==b?null:new pma(f,e,b,a.subarray(c+4))};
wT=function(a,b){this.g=a;this.contentType=(void 0===b?"":b)||null;this.o=this.B=window.NaN;this.A=!1;this.C=[]};
xT=function(a,b,c,d,e){g.M.call(this);this.C=a;this.M=b;this.G=c;this.g=d;this.o=e;this.sessionId="";this.A=this.K=this.J=this.D=this.F=null;this.B=new g.DJ(this);g.N(this,this.B);this.g?(this.B.T(this.g,"message",this.OK),this.B.T(this.g,"keystatuseschange",this.PK)):this.o&&(EJ(this.B,this.o,["mskeymessage","webkitkeymessage"],this.Nz),EJ(this.B,this.o,["mskeyerror","webkitkeyerror"],this.Mz),EJ(this.B,this.o,["mskeyadded","webkitkeyadded"],this.Lz))};
yT=function(a){return!(!a.g||!a.g.keyStatuses)};
zT=function(a,b){g.M.call(this);this.o=a;this.g=b;this.F={};this.B=null;this.C=new g.DJ(this);g.N(this,this.C);this.A=this.D=null};
AT=function(a){if(a.g.A)return a.g.A.createMediaKeys().then(rE((0,g.A)(function(a){this.D=a;this.o.setMediaKeys(a)},a)));
JN(a.g)?a.A=new (IN())(a.g.o):KN(a.g)?(a.A=new (IN())(a.g.o),a.o.webkitSetMediaKeys(a.A)):rma(a);return null};
rma=function(a){EJ(a.C,a.o,["keymessage","webkitkeymessage"],a.K);EJ(a.C,a.o,["keyerror","webkitkeyerror"],a.J);EJ(a.C,a.o,["keyadded","webkitkeyadded"],a.G)};
sma=function(a,b){var c=b.g;if(a.g.A){var d=a.D.createSession(),c=d.generateRequest(b.contentType,c),d=new xT(null,null,null,d,null);c.then(null,rE((0,g.A)(d.oz,d,"t.g")));return d}if(JN(a.g)){for(var d=new window.Uint8Array(270),e=0;135>e;e++)d[2*e]='<PlayReadyCDMData type="LicenseAcquisition"><LicenseAcquisition version="1.0" Proactive="true"></LicenseAcquisition></PlayReadyCDMData>'.charCodeAt(e);c=a.A.createSession("video/mp4",c,d);return new xT(null,null,null,null,c)}if(KN(a.g)){for(var d=c.subarray(4),
d=String.fromCharCode.apply(null,new window.Uint16Array(d.buffer,d.byteOffset,d.byteLength/2)).match(/ek=([0-9a-f]+)/)[1],e="",f=0;f<d.length;f+=2)e+=String.fromCharCode((0,window.parseInt)(d.substr(f,2),16));for(var f=a.g.fairPlayCert,d=new window.Uint8Array(new window.ArrayBuffer(f.length)),k=0;k<f.length;k++)d[k]=f.charCodeAt(k);for(var f=new window.ArrayBuffer(2*e.length),k=new window.Uint16Array(f),l=0;l<e.length;l++)k[l]=e.charCodeAt(l);e=new window.Uint8Array(f);f=0;l=new window.ArrayBuffer(c.byteLength+
4+e.byteLength+4+d.byteLength);k=new window.Uint8Array(l);l=new window.DataView(l);k.set(c);f+=c.byteLength;l.setUint32(f,e.length,!0);f+=4;k.set(e,f);f+=e.length;l.setUint32(f,d.byteLength,!0);k.set(d,f+4);c=a.A.createSession("video/mp4",k);return new xT(null,null,null,null,c)}a.o.generateKeyRequest?a.o.generateKeyRequest(a.g.o,c):a.o.webkitGenerateKeyRequest(a.g.o,c);a.B=new xT(a.o,a.g,c,null,null);return a.B};
BT=function(a,b){var c=a.F[b.sessionId];!c&&a.B&&(c=a.B,a.B=null,c.sessionId=b.sessionId,a.F[b.sessionId]=c);return c};
DT=function(a,b,c,d,e,f){f=void 0===f?!1:f;g.M.call(this);this.C=a;this.o=d;this.o.subscribe("oauthtoken",this.ly,this);this.F={session_id:e};this.V=!!f;this.P=0;a=this.C.C;KN(this.C)&&(a=c.g.subarray(4),a=String.fromCharCode.apply(null,new window.Uint16Array(a.buffer,a.byteOffset,a.byteLength/2)).replace("skd://","https://"));CT(this,a);this.D=this.K=!1;g.uP("drm_gk_s");try{var k=sma(b,c)}catch(l){b="t.g",l instanceof window.DOMException&&(b+=";c."+l.code),this.o.Y("licenseerror","drm.unavailable",
!0,b,"YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK"),k=null}if(this.A=k)b=this.A,k=this.eK,a=this.dK,d=this.gK,b.F=this.fK,b.D=k,b.J=a,b.K=d,b.A=this,g.N(this,this.A);this.ba=c.C;this.G=[];this.g={};this.M=window.NaN;this.B=c.B||window.NaN};
CT=function(a,b){if(tma.test(b)){for(var c in a.F)b=Ig(b,c,a.F[c]);a.J=b}else ET(a,"drm.net",!0,"t.x")};
ET=function(a,b,c,d,e){a.na()||a.o.Y("licenseerror",b,c,d,e);c&&a.dispose()};
uma=function(a){if(!a)return{};var b={};(0,g.H)(a.split(";"),function(a){a=a.split(",");2==a.length&&(b[a[1]]={type:a[0],status:"unknown"})});
return b};
vma=function(a){var b={requestedKeyIds:a.ba,cryptoPeriodIndex:a.B};a.A&&(b.keyStatuses=a.g);return b};
wma=function(a){if(!yT(a.A))return a.G.join(",");var b=[],c;for(c in a.g)b.push.apply(b,[c,a.g[c].type,a.g[c].status]);return b.join(",")};
FT=function(){this.keys=[];this.values=[]};
HT=function(a,b,c,d,e){e=void 0===e?"":e;g.RF.call(this);a&&(a.addKey||a.webkitAddKey)||IN()||NN(c);this.M=c;this.J=a;this.g=b;this.subscribe("newlicense",this.zO,this);this.subscribe("newsession",this.AO,this);this.subscribe("sessionready",this.wP,this);this.subscribe("keystatuseschange",this.hK,this);this.ga=e||g.BO();this.ca=null;this.A=new FT;this.B=this.D=null;this.o=[];this.F="fairplay"==this.g.g?YI:GT;this.O=new zT(a,b);g.N(this,this.O);this.C=null;JN(b)&&(this.C=new zT(a,b),g.N(this,this.C));
this.da=2;this.K=new g.DJ(this);g.N(this,this.K);this.P=!1;this.V=null;this.G=!1;a=this.J;this.g.A?this.K.T(a,"encrypted",this.uN):EJ(this.K,a,JN(this.g)?["msneedkey"]:["needkey","webkitneedkey"],this.wO);(a=AT(this.O))?a.then(rE((0,g.A)(this.dO,this)),rE((0,g.A)(this.AM,this))):this.G=!0;this.C&&AT(this.C);this.fa=d};
IT=function(a,b){a.ca=b;a.Y("oauthtoken",b)};
KT=function(a,b,c){a.na()||JN(a.g)==c||a.P&&a.fa||(a.P=!0,a.o.push(b),1<a.o.length||a.G&&JT(a))};
JT=function(a){for(;a.o.length;){var b=a.o[0];if(g.Ab(a.D,b.g))a.o.shift();else{if(a.A.get(b.g))if("fairplay"==a.g.g)a.A.remove(b.g);else{a.o.shift();continue}if("widevine"==a.g.g){a:{var c=b.g;try{for(var d=0,e=new window.DataView(c.buffer);d<e.byteLength-8;){var f=e.getUint32(d);if(1>=f)break;if(1886614376==e.getUint32(d+4)){var k=32;if(0<e.getUint8(d+8))var l=e.getUint32(d+28),k=k+(16*l+4);var m=e.getUint32(d+k-4);try{for(var n,q=new Cc(c.subarray(d+k,d+k+m)),r=new KD,k=q;Dc(k)&&4!=k.o;)switch(k.A){case 1:var w=
k.g;b:{for(var z,B,D=w,L=0,Y=0;4>Y;Y++)if(B=D.o[D.g++],L|=(B&127)<<7*Y,128>B){D.F=L>>>0;D.D=0;break b}B=D.o[D.g++];L|=(B&127)<<28;z=0|(B&127)>>4;if(128>B)D.F=L>>>0,D.D=z>>>0;else{for(Y=0;5>Y;Y++)if(B=D.o[D.g++],z|=(B&127)<<7*Y+3,128>B){D.F=L>>>0;D.D=z>>>0;break b}D.C=!0}}var Sa=w.F,bb=w.D;if(D=bb&2147483648)Sa=~Sa+1>>>0,bb=~bb>>>0,0==Sa&&(bb=bb+1>>>0);L=4294967296*bb+Sa;var ia=D?-L:L;Lc(r,1,ia);break;case 2:D=ia=Gc(k);J(r,2).push(D);break;case 3:ia=Fc(k);Lc(r,3,ia);break;case 4:ia=Gc(k);Lc(r,4,ia);
break;case 5:ia=Fc(k);Lc(r,5,ia);break;case 6:ia=Fc(k);Lc(r,6,ia);break;case 7:ia=Bc(k.g);Lc(r,7,ia);break;case 8:ia=Gc(k);Lc(r,8,ia);break;case 9:ia=Bc(k.g);Lc(r,9,ia);break;case 10:ia=Bc(k.g);Lc(r,10,ia);break;default:Ec(k)}n=r;if(null!=n){var $b=n;break a}}catch(tb){}}d+=f}$b=null}catch(tb){$b=null}}if(null!=$b)for(c=J($b,7),null!=c&&(b.B=c),c=J($b,10),null!=c&&0<c&&(b.o=c),c=J($b,2),c=!c.length||c[0]instanceof window.Uint8Array?c:(0,g.I)(c,Baa),c=g.ka(c),d=c.next();!d.done;d=c.next())b.C.push(g.pc(d.value,
!0).replace(/[\.]{1,2}$/,""));a:{if(!(a.M.g("disable_license_delay")||"widevine"!=a.g.g||b.A||(0,window.isNaN)(b.B)))for(c=g.ka(a.A.values),d=c.next();!d.done;d=c.next())if(1>=Math.abs(d.value.B-b.B)){c=!0;break a}c=!1}if(c){xma(a,b);a.o.shift();continue}}break}}a.o.length&&(b=a.o[0],a.A.get(b.g),$b=new DT(a.g,a.O,b,a,a.ga,a.M.g("html5_use_drm_retry")),$b.ly(a.ca),"playready"==a.g.g&&a.M.g("playready_on_borg")&&(g.Zb($b.F,{prob:"1"}),CT($b,$b.J)),a.A.set(b.g,$b))};
xma=function(a,b){a.B&&a.B.dispose();a.D=b.g;a.B=new g.rt(function(){a.D=null;a.B=null;b.A=!0;a.o.push(b);1<a.o.length||JT(a)},yma(b.o));
a.B.start()};
yma=function(a){return 1E3*Math.max(0,Math.random()*(((0,window.isNaN)(a)?120:a)-30))};
LT=function(a){var b={};this.A=(b.c1a=(0,g.A)(this.C,this),b.c3a=(0,g.A)(this.D,this),b.c6a=(0,g.A)(this.B,this),b);(this.g=a)&&this.g.Sj?this.o=g.zE(this.g.Sj):this.o=[]};
zma=function(a,b){this.Z=a;this.g=b};
MT=function(a,b){var c=ZI(ZI(a.Z.ar,b.jl),b.nl);"auto"!=cJ()||(c=a.Z.experiments.g("html5_restore_performance_cap")?ZI(c,new UI(0,eJ(),!1)):ZI(c,a.Z.Gg));return c};
NT=function(a,b){var c=cJ();if("auto"!=c)var d=WI("auto",c,!1);else if(g.aM(a.Z)&&bM(a.Z.O,hO))d=YI;else{var e,c=!!b.jb.g;JO(a.Z)&&(e=window.screen&&window.screen.width?new g.Pd(window.screen.width,window.screen.height):null);e||(e=a.Z.Mg?a.Z.Mg.clone():a.g.Ya());(GO||mi||c)&&e.scale(g.WO());c=b.jb.videoInfos;if(c.length){var f=.85,k=3==c[0].video.projectionType;2!=c[0].video.projectionType||$N?k&&!$N&&(f*=.25):f*=.5;for(k=0;k<c.length&&!(d=c[k].video,null===e||d.width*f<e.width&&d.height*f<e.height);k++);
d=WI("auto",d.quality,!1)}else d=YI;e=d.g;VE()&&(e=Math.max(e,g.EI.hd1080));(NE("armv7")||NE("android"))&&!g.aM(a.Z)&&KI(b.jb.videoInfos[0])&&(e=Math.min(e,g.EI.large));e=Math.max(e,g.EI.medium);a.Z.experiments.o("html5_default_quality_cap")&&(e=Math.min(e,a.Z.experiments.o("html5_default_quality_cap")));d.g!=e&&(d=new UI(d.o,e,d.A))}return d};
OT=function(){g.M.call(this);this.A={};this.g={};this.o=new g.rt(this.dR,500,this);g.N(this,this.o)};
PT=function(a,b){return a.g[b]?a.g[b].g.fb():[]};
QT=function(a){this.A=a;this.g=new gR(100);this.o=window.NaN};
RT=function(){var a=uF("visibilityState",window.document);return!(!a||"visible"==a)};
Ama=function(a){var b=ST();b&&window.document.addEventListener(b,a,!1)};
ST=function(){if(window.document.visibilityState)var a="visibilitychange";else{if(!window.document[tF+"VisibilityState"])return"";a=tF+"visibilitychange"}return a};
TT=function(a,b,c,d,e,f){g.RF.call(this);this.Ta=new Jja;this.G=c;this.tb=d;this.oe=f;c=(0,g.A)(function(b,c){b!="crn_"+TT.g||!a.experiments.g("use_legacy_ended_cue_range_behavior")&&g.V(this.A,32)||UT(this);e(b,c)},this);
this.D=new TS((0,g.A)(this.getCurrentTime,this),(0,g.A)(this.JB,this),(0,g.A)(this.wS,this),c);g.N(this,this.D);this.oa=window.NaN;this.V=this.F=null;this.Z=a;this.ra=new zma(a,this.tb);this.Fa=!1;this.J=this.B=null;this.fa=[];this.ga=new ZR;this.O=new ZR;this.Dd=this.uc=this.Oe=this.sa=!1;this.kb=window.NaN;this.A=new g.XJ;this.Na=[];this.Ed=b;this.ha=null;this.P=window.NaN;this.ka=new g.DJ;g.N(this,this.ka);this.g=new g.sQ;this.o=null;this.da=window.NaN;this.C=null;this.Rd=this.Ia=!1;this.Oa=window.NaN;
this.Vb=this.Zb=this.ob=this.Ra=!1;this.sb=this.kc=window.NaN;this.rf=a.experiments.g("html5_force_play_on_suspend_event");this.sf=a.experiments.g("html5_force_play_on_suspend_event_limited");this.K=null;this.tf=this.Z.experiments.g("html5_playing_event_buffer_underrun");this.ca=new OT;g.N(this,this.ca);this.ca.Hb("bufferhealth",(0,g.A)(this.dw,this));this.ca.Hb("bandwidth",(0,g.A)(this.lG,this));this.ca.Hb("networkactivity",(0,g.A)(this.nG,this),!0);this.ca.start();this.Cd=!1;this.zb=!0;this.tc=
this.Gb=!1;this.ua=1;this.M=null;this.ke=(0,g.A)(this.iQ,this);Ama(this.ke);this.Pe=new g.rt(this.ks,0,this);g.N(this,this.Pe);this.ne=this.Cc=0};
VT=function(a){g.BG()?g.DG(a.Oa):g.vE(a.Oa)};
bU=function(a,b,c,d){a.fa.length=0;a.ga.reset();a.O.reset();a.oa=window.NaN;a.P=window.NaN;a.Ia=!1;a.Gb=!1;a.o&&a.o.Pf();WT(a);XT(a);ZT(a);VT(a);a.ca.clear();a.Pe.stop();a.K=null;a.M=null;g.Ke(a.g);if(2==a.Ed||DO.test(a.Z.P))b.vx=!0;var e=rO(b.Yb,a.Z.A,a.Z.Fb);e&&(b.adFormat=e);a.Z.ga&&(b.autonavState=a.g.autonavState);a.zb=0!=d;a.g=b;a.g.subscribe("dataupdated",a.bQ,a);a.g.subscribe("dataloaded",a.kv,a);a.g.subscribe("dataloaderror",a.Rj,a);a.g.subscribe("onStatusFail",a.aQ,a);b.Ki&&b.Ki>b.startSeconds&&
(b=b.Ki,a.V&&(a.D.F(a.V),a.V=null),a.V=new g.pJ(1E3*b,0x7ffffffffffff),a.V.namespace=TT.g,US(a.D,[a.V]));Bma(a,c);a.Ra=!1;$T(a,"newdata");aU(a,new g.XJ)};
Bma=function(a,b){XT(a);if(!a.g.Lj){var c=new Lja(a.g,a.Z,b,(0,g.A)(a.getDuration,a),(0,g.A)(a.getCurrentTime,a),(0,g.A)(a.oG,a),(0,g.A)(a.tb.Ya,a.tb),(0,g.A)(a.wt,a),(0,g.A)(a.JB,a),(0,g.A)(a.bq,a),a.oe,(0,g.A)(a.AG,a),(0,g.A)(function(){this.G.o("qoes")},a));
a.C=new DK(c)}};
XT=function(a){if(a.C){var b=a.C;if(!b.na()&&b.B){b.D="paused";var c=IK(b);c.ra=!0;c.send();c=b.o;"PL"==c.A&&(c.A="N");var d=g.tJ(c.g);g.oK(c,d,"vps",[c.A]);c.C(d);g.vE(b.C);b.dispose()}g.Ke(a.C);a.C=null}};
dU=function(a){if(a.g.He())return!0;g.cU(a,"api.invalidparam",void 0,"invalidVideodata.1");return!1};
fU=function(a,b){a.sa=!!b;if(dU(a)&&!a.ga.o){a.ga.start();if(a.C){var c=a.C.o;c.g.g.experiments.g("html5_qoe_unstarted_in_initialization")?g.tJ(c.g):g.oK(c,g.tJ(c.g),"vps",["N"]);c.g.videoData.Jn?xK(c,"prefetch"):c.o.user_intent=["0"];c.g.videoData.ni&&(qK(c,"reload",c.g.videoData.os),qK(c,"reloadcount",c.g.videoData.ni.toString()));c.g.videoData.Ck&&xK(c,"monitor");c.g.videoData.Ca&&xK(c,"live");c.g.videoData.dh&&xK(c,"rqs");c.g.videoData.Wf&&qK(c,"ctrl",c.g.videoData.Wf,!0);c.g.videoData.hf&&qK(c,
"ytp",c.g.videoData.hf,!0);if(c.g.videoData.uA){var d=c.g.videoData.uA.replace(/,/g,".");qK(c,"ytrexp",d,!0)}if(!c.g.g.experiments.g("html5_disable_gpu_reporting")){var e=c.g.videoData,d=c.g.g.experiments.g("enable_white_noise"),f=e.Zh()||e.eh()||e.tg()||e.uk(),e=0==e.clientPlaybackNonce.indexOf("gp");(d||f||e)&&(d=eU())&&(c.o.gpu=[d])}c.V=g.wE((0,g.A)(c.C,c),1E4)}a.kv()}};
iU=function(a){a.o&&QJ(a.o);fU(a);dU(a)&&!g.V(a.A,128)&&(a.O.o||(a.O.start(),a.Z.experiments.g("html5_suspended_state")?aU(a,$J($J(a.A,8),1)):(aU(a,$J(a.A,8)),a.g.Pb()||(aU(a,$J(a.A,1)),gU(a,"waiting_videodata")))),hU(a))};
hU=function(a){if(!a.O.g&&a.ga.g&&!g.V(a.A,128)&&!a.fa.length){if(!a.D.C){var b=a.D;b.C=!0;b.A()}if(!jU(a)){a.B&&(b=a.B,a.Oe=!!b.ca&&!!b.ha);a.O.g||(a.O.g=!0);a.g.Ca&&(kU(a,window.Infinity,!0),lU(a,!0),RT()&&(a.Rd=!0));if(a.C&&(b=a.C,b.g.videoData.enableCardio&&b.g.videoData.enableCardioBeforePlayback&&(b.Xn("connected"),NK(b)),b.g.videoData.Ca)){var b=b.o,c=b.g.videoData.va;b.g.videoData.bf()&&xK(b,"manifestless");c&&EN(c)&&xK(b,"live-segment-"+EN(c).toFixed(1))}a.Y("playbackready",a);KP("pbr",a.G.g)||
(a.G.o("pbr"),g.uP("pbr",void 0,"video_to_ad"))}}};
UT=function(a,b){mU(a);aU(a,0==b?new g.XJ:new g.XJ(14))};
pU=function(a,b,c,d){a.g.Ma=c;a.g.qd=d||c;if(a.C){var e=nU(a),e=new rJ(a.g,c,b,e?II(e):"");d&&"i"==b&&oU(a,b,d);d=a.C.o;c=g.tJ(d.g);g.oK(d,c,"vfs",[e.g.id,e.o,d.fa,"b"==e.reason?"a":e.reason]);d.fa=e.g.id;e=d.g.O();if(0<e.width&&0<e.height){var e=[Math.round(e.width),Math.round(e.height)],f=g.WO();1<f&&e.push(f);g.oK(d,c,"view",e)}g.oK(d,c,"vps",[d.A]);d.C(c);a.Z.experiments.g("html5_report_performance_cap")&&"i"==b&&(d=eJ())&&a.Vd("perfCap",""+d)}a.Cc=0;a.Y("internalvideoformatchange",a.g,"m"==b)};
nU=function(a){if(!a.g.jb)return null;var b=ZI(ZI(NT(a.ra,a.g),qU(a)),rU(a));return g.$a(a.g.jb.videoInfos,(0,g.A)(b.B,b))};
oU=function(a,b,c){a.g.qd=c;if(a.C){var d=a.C.o;c=new rJ(a.g,c,b,"");var e=g.tJ(d.g);c.g.id!=d.K&&(g.oK(d,e,"afs",[c.g.id,d.K,c.reason]),d.K=c.g.id)}"i"!=b&&a.Y("internalaudioformatchange",a.g,"m"==b)};
g.cU=function(a,b,c,d){var e,f;Mb(Cma,c)?e=c:c?f=c:e="YTP_ERROR_GENERIC_WITHOUT_LINK";b={errorCode:b,errorDetail:d,message:f||g.T(e),messageKey:e};aU(a,ZJ(a.A,128,b));VT(a);ZT(a);sU(a)};
Dma=function(a,b){a.fa=a.fa.filter(function(a){return b!=a});
a.O.o&&hU(a)};
jU=function(a){var b;(b=!!a.fa.length)||(a=a.D.g.g[0],b=!!a&&-0x8000000000000>=a.start);return b};
uU=function(a,b){a.o&&tU(a);a.Z.experiments.g("html5_suspended_state")&&!a.A.isError()&&aU(a,aK(a.A,512));a.o=b;a.o.g.loop=a.tc;a.o.Of(a.ua);Ema(a)};
tU=function(a){a.g&&a.Z.experiments.g("new_ended_replay")&&(a.g.startSeconds=a.getCurrentTime());a.J&&(a.J.dispose(),a.J=null);a.B&&(lT(a.B),a.B.G=!0);a.o&&(a.Z.experiments.g("html5_suspended_state")&&a.O.o&&!a.A.isError()&&!g.V(a.A,2)?aU(a,$J(a.A,512)):a.C&&a.ga.o&&g.V(a.A,64)&&!a.g.mg&&vU(a),WT(a),g.FJ(a.ka),a.o.Pf(),a.o=null)};
AU=function(a){if(!g.V(a.A,128))if(a.Cd)a.Cd=!1,wU(a);else if(iU(a),g.V(a.A,64)&&aU(a,$J(a.A,8)),a.O.g&&a.o)if(a.g.jb){a.Z.experiments.g("new_ended_replay")&&g.V(a.A,2)&&kU(a,0,!0);if(a.g.Ca){var b=xU(a),c=g.OQ(a.g)&&g.V(a.A,4);if(b||c)!c&&a.Z.experiments.g("html5_live_pin_to_tail")?kU(a,a.Ic(),!0):kU(a,window.Infinity,!0);yU(a)?lU(a,!0):a.isPeggedToLive()&&kU(a,window.Infinity,!0)}zU(a)?Fma(a):a.o.ad()}else b=a.g.Ca&&!g.XN()?"html5.unsupportedlive":"fmt.noneavailable",g.cU(a,b,"YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK",
"selectableFormats.1")};
CU=function(a){WT(a);ZT(a);BU(a)};
DU=function(a){if(a.g.jb){var b=qU(a)||YI;a=(0,g.re)(a.g.jb.videoInfos,(0,g.A)(b.B,b));for(var b=[],c={},d=0;d<a.length;d++){var e=a[d].video;c[e.quality]||(b.push(e),c[e.quality]=!0)}a=b}else a=[];return a};
EU=function(a){return ZI(ZI(ZI(MT(a.ra,a.g),NT(a.ra,a.g)),qU(a)),rU(a))};
qU=function(a){return a.F?a.F.F:xQ(a.g)&&a.g.jb.g&&uN(a.g.va)?GT:YI};
FU=function(a,b,c){if(!a.na()&&!g.V(a.A,128)&&(c&&(a.g.nl=c),xQ(a.g))){"m"==b&&c&&XI(c)&&(b="a");c=EU(a);if(a.g.jb.g){if(a.B&&"i"!=b){var d=a.B;if(!d.na()&&d.g){(c=$la(d.F,c,b))&&d.Y("videoformatchange",c);YS(d);if(KS(d.F)&&"m"==b&&d.F.M||"b"==b)rS(d.g),rS(d.B);wS(d.g)&&hT(d,d.g,d.B);lT(d)}}}else{a:if(d=a.g.al,c.g){for(var e=0;e<d.length;e++){var f=d[e].Ae,k=g.EI[f.video.quality];if((!c.A||"auto"!=f.video.quality)&&k<=c.g){c=d[e];break a}}c=d[d.length-1]}else c=d[0];a.g.wg=c;pU(a,b,a.g.wg.Ae)}a.A.xb()&&
AU(a)}};
g.GU=function(a){Bka(a.g.va,{cpn:a.g.clientPlaybackNonce,c:a.Z.B.c,cver:a.Z.B.cver});var b=$ja(a.Z,a.g);a.Z.schedule.policy.A=a.g.bf()?.5:0;a.B=new WS(a.Z.schedule,b,a.g.va,a.g.jb,a.D);a.B.subscribe("initsegment",a.MN,a);a.B.subscribe("videoformatchange",a.WN,a);a.B.subscribe("audioformatchange",a.VN,a);a.B.subscribe("error",a.Rj,a);a.B.subscribe("ctmp",a.Vd,a);a.B.subscribe("seekelementrequired",a.hR,a);a.B.subscribe("seekplayerrequired",(0,g.A)(function(a,b){kU(this,a,!0,void 0,b)},a));
var b=g.eb(a.fa,"spacecast")||a.sa,c=a.wt(),c=c.Rc.isDefault?void 0:c;a.B.initialize(a.g.startSeconds,EU(a),b,c);a.g.probeUrl&&(a.B.da=a.g.probeUrl);if(a.fa.length||a.sa)a.B.G=!0;a.sa&&vU(a)};
rU=function(a){var b=a.Z.experiments.o("html5_background_quality_cap");a=a.Z.experiments.o("html5_background_cap_idle_secs");return!b||"auto"!=cJ()||g.vG()/1E3<a?YI:RT()?new UI(0,b,!1):YI};
vU=function(a){a.Z.experiments.g("html5_suspended_state")||MK(a.C,new g.hK(new g.XJ(4),a.A))};
ZT=function(a){a.B&&(a.B.dispose(),a.B=null);a.J&&(a.J.dispose(),a.J=null)};
BU=function(a){a.J||(a.B?a.B.seek(a.getCurrentTime()):g.GU(a),a.J=new SL(a.o,a.g.lengthSeconds,a.g.jb.videoInfos[0].mimeType,a.g.jb.g[0].mimeType,a.Z.D,a.Z.experiments.g("html5_deferred_source_buffer_creation")),Wja(a.J,(0,g.A)(a.eO,a)),Xja(a.J,(0,g.A)(function(a){this.Z.experiments.g("html5_msi_error_fallback")?(this.Rj(new g.RP("qoe.restart",!1,{msi:"1",ename:a.name})),this.g.Jp=!0,a=(0,g.A)(function(){FU(this,"a");AU(this)},this),g.DQ(this.g,this.Z).then(a,a)):g.cU(this,"fmt.unplayable",void 0,
"msi.1;ename."+a.name)},a)));
try{return Yja(a.J)}catch(b){return b.message="window.URL object overwritten by external code",window.setTimeout(function(){throw b;},0),g.cU(a,"html5.missingapi","YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK","updateMs.1"),null}};
Gma=function(a){return 403==a.details.rc?(a=a.errorCode,"net.badstatus"==a||"manifest.net.retryexhausted"==a):!1};
wU=function(a){!a.g.mg&&a.g.ni||a.ob||(a.ob=!0,a.Y("signatureexpired"))};
HU=function(a){return"net.retryexhausted"==a.errorCode||"net.badstatus"==a.errorCode&&!!a.details.isPotentialFormatUnavaliable};
mU=function(a,b){if(g.V(a.A,64)&&!b)if(g.V(a.A,8))aU(a,bK(a.A));else if(!a.Z.experiments.g("legacy_html5_unstarted_paused"))return;a.o&&(g.V(a.A,128)||(b?aU(a,$J(a.A,256)):aU(a,bK(a.A))),a.o&&a.o.pause())};
IU=function(a){var b=a.Z.experiments.g("disable_html5_stopvideo_cancel_requests");mU(a,b);a.B&&(a.B.G=!0,b||bT(a.B))};
sU=function(a,b){a.o&&(a.o.pause(),WT(a),ZT(a),a.g&&(a.g.startSeconds=a.getCurrentTime()),a.P=window.NaN,a.o.Pf(),g.V(a.A,128)||(b?aU(a,bK(a.A)):aU(a,ZJ(a.A))),a.Z.G.remove(a.g.videoId))};
kU=function(a,b,c,d,e){if(!a.o||!a.O.g||!a.o.wd()&&a.Z.experiments.g("new_ended_replay"))a.g.startSeconds=b||0;else{if(a.M&&b&&!(0,window.isFinite)(b)&&a.B){if(a.Z.experiments.g("html5_use_adaptive_live_readahead")&&a.g.isLowLatencyLiveStream){var f=a.M;if(f.o.length){var k=f.g;1<Math.min.apply(null,f.o)?f.g=Math.max(f.g-1,1):f.g=Math.min(f.g+1,8);if(k=k!=f.g)f.o=[],f.A=0;f=k}else f=!1;f&&a.C&&(f=iR(a.M),wK(a.C.o,f))}a.B.Ra=Math.max(0,a.M.g-1)}if(b&&!(0,window.isFinite)(b)&&a.g.mg&&a.g.bf()&&a.B){var l=
a.B;bT(l);f=Math.max(AS(l.g),AS(l.B));mS(l.g,f);mS(l.B,f);var k=l.C,m;for(m in k.g)gL(k.g[m].index,window.Infinity);l.o.sa&&(l.V=!0);lT(l);l=f+.1}l||(l=g.Hd(b||0,a.Ic(),JU(a,!1,e)));b=a.g.Ca&&!g.V(a.A,4)&&yU(a,l);lU(a,b);a.g.startSeconds=l;a.P=l;b=a.Ta;b.g=l;b.o=!0;c?a.IB():(g.V(a.A,32)||(aU(a,$J(a.A,32)),g.V(a.A,8)&&mU(a,!0),a.Y("beginseeking",a)),d&&(a.ha||(a.ha=new g.rt(a.IB,d,a)),a.ha.start()),KU(a,!0));a.V&&l>a.g.Ki&&(a.D.F(a.V),a.V=null);l<JU(a,!1)&&aU(a,aK(a.A,2));a.Y("seekto",a,l)}};
LU=function(a){return a.g.Ca&&a.g.va?FK(a.g.va,a.getCurrentTime()):window.NaN};
Hma=function(a){if(!a.o)return 0;if(g.OQ(a.g))return 1;if(PQ(a.g)){if(a.isPeggedToLive())return 1;var b=a.o,c=RJ(b),b=(0<IJ(c)&&b.getDuration()?c.end(c.length-1):0)-a.Ic();a=JU(a,!0)-a.Ic();return Math.max(0,Math.min(1,b/a))}return UJ(a.o)};
MU=function(a,b){var c={};if(b){a.C?g.za(c,CK(GK(a.C,"playback"))):a.g&&(c.cpn=a.g.clientPlaybackNonce);a.o&&g.za(c,VJ(a.o));a.B&&g.za(c,uT(a.B));if(a.F){for(var d=a.F,e=d.g,e={systemInfo:{flavor:e.g,keySystem:e.o},sessions:[]},d=g.ka(d.A.values),f=d.next();!f.done;f=d.next())e.sessions.push(vma(f.value));c.drm=e}c.state=a.A.o.toString(16);g.V(a.A,128)&&(c.debug_error=a.A.g);jU(a)&&(c.preroll="1");a.g.sg&&(c.ismb=a.g.sg);a.g.isLowLatencyLiveStream&&(c.lowlatency="1");a.g.Ca&&(a.g.va&&EN(a.g.va)&&
(c.segduration=EN(a.g.va)),a.K&&(e=a.K.C,c.lat=e.g[e.o]||0));c.relative_loudness=a.g.relativeLoudness.toFixed(3);if(e=nU(a))c.optimal_format=e.video.qualityLabel;c.user_qual=cJ()}c.debug_videoId=a.g.videoId;return c};
$T=function(a,b){a.Y("internalvideodatachange",b||"dataupdated",a,a.g)};
Ema=function(a){(0,g.H)("loadstart loadeddata loadedmetadata play playing pause ended suspend progress seeking seeked timeupdate durationchange ratechange error waiting abort resize".split(" "),function(a){this.ka.T(this.o,a,this.yS,this)},a);
a.Z.Ig&&(a.ka.T(a.o,"webkitplaybacktargetavailabilitychanged",a.oM,a),a.ka.T(a.o,"webkitcurrentplaybacktargetiswirelesschanged",a.pM,a))};
NU=function(a){var b=a.getCurrentTime(),c=a.g;!KP("pbs",a.G.g)&&yP.measure&&yP.getEntriesByName&&(yP.getEntriesByName("mark_nr")[0]?JP("mark_nr"):JP());c.videoId&&a.G.info("docid",c.videoId);c.eventId&&a.G.info("ei",c.eventId);c.clientPlaybackNonce&&a.G.info("cpn",c.clientPlaybackNonce);0<c.startSeconds&&a.G.info("start",c.startSeconds.toString());a.o&&a.o.g.paused&&a.G.info("paused",1);c.Ma?a.G.info("fmt",II(c.Ma)):a.G.info("fmt","-1");c.Jn&&a.G.info("yt_pre",a.Oe?"2":"1");a.Z.ga&&a.G.info("yt_fs",
"1");a.G.info("cmt",b.toFixed(3));if(a.B){b=a.B;window&&window.performance&&window.performance.getEntriesByName&&(c=window.performance.getEntriesByName(b.ha),c.length&&(c=c[0],ZS(b,"vri",c.fetchStart),ZS(b,"vdns",c.domainLookupEnd),ZS(b,"vreq",c.requestStart),ZS(b,"fvb",c.responseStart),ZS(b,"vrc",c.responseEnd)),c=window.performance.getEntriesByName(b.ca),c.length&&(c=c[0],ZS(b,"ari",c.fetchStart),ZS(b,"adns",c.domainLookupEnd),ZS(b,"areq",c.requestStart),ZS(b,"avb",c.responseStart),ZS(b,"arc",c.responseEnd)));
var b=b.ob,d;for(d in b)a.G.o(d,b[d])}};
KU=function(a,b){if(a.o&&a.g){var c=a.getCurrentTime();if(xU(a)&&a.A.xb())a.Z.experiments.g("html5_live_pin_to_tail")?kU(a,a.Ic(),!0):kU(a,window.Infinity,!0);else{if(a.isPeggedToLive()){if(!yU(a,c)){if(a.A.xb()&&(a.g.Ck||g.OQ(a.g))){kU(a,window.Infinity,!0);return}a.g.Ca&&lU(a,!1)}if(a.Z.experiments.g("html5_use_adaptive_live_readahead")&&a.M){var d=a.M,e=a.dw();d.A++;3>d.A||(d.o.push(e),50<d.o.length&&d.o.shift())}}else a.g.Ca&&yU(a,c)&&lU(a,!0);if(a.B&&(d=a.B,d.A)){d.D!=c&&d.resume();if(d.O&&!VL(d.A)){var e=
d.D<=c&&c<d.D+10,f=0<=GJ(d.A.o.buffered,d.D+iT);e&&f&&(d.O=!1)}d.O||(d.D=c);mT(d)}5<c&&(a.g.startSeconds=c);(d=g.BG())?g.DG(a.Oa):g.vE(a.Oa);!g.fK(a.A)&&a.o.g.paused||g.V(a.A,128)||(e=(0,g.A)(a.PG,a),a.Oa=0==(a.o.g.played||JJ()).length?d?g.CG(e,1,100):g.xE(e,100):d?g.CG(e,1,500):g.xE(e,500));a.g.zf=c;!b&&a.A.xb()&&a.C&&(c=a.C,c.A.update(),c.g.videoData.Pb()&&c.g.videoData.Af&&!c.O&&wJ(c.A)>=c.g.videoData.Af&&(c.B&&c.g.videoData.Af&&(d=GK(c,"delayplay"),d.Fa=!0,d.send(),c.O=!0),LK(c)),d=c.ba,d.A||
!d.g.rf||d.g.Vb||!d.videoData.lengthSeconds?d=!1:(e=Math.min(.8*d.videoData.lengthSeconds,180),d=wJ(d.B)>=e),d&&c.ba.send());a.Y("progresssync",a,b)}}};
aU=function(a,b){if(!g.cK(a.A,b)){var c=new g.hK(b,a.A);a.A=b;var d=!a.Na.length;a.Na.push(c);if(0<iK(c,1)&&!g.V(c.g,16)&&g.V(a.A,8)&&!g.V(a.A,64)&&a.B){a.B.fa=!0;a.g.dh&&a.o&&a.Vd("rbinfo","rs."+a.o.g.readyState+";lact."+g.vG());var e=a.Z.experiments.o("html5_nnr_downgrade_count");if(e&&a.o&&5<=SJ(a.o)){a.Cc++;var f=a.g.Ma.video.o;a.Cc==e&&360<f&&(e=a.ra,e.Z.Gg=new UI(0,f-1,!1),e.Z.experiments.g("html5_report_performance_cap")&&g.NG("yt-player-performance-cap",f-1,2592E3),FU(a,"b"),a.Z.experiments.g("html5_report_performance_cap")&&
a.Vd("perfDowngrade",""+f))}}0>iK(c,8)&&(g.vE(a.da),a.da=window.NaN,lU(a,!1));0<iK(c,8)&&!a.g.mg&&(0,window.isNaN)(a.da)&&(a.da=g.xE((0,g.A)(a.Ez,a),15E3));0<iK(c,32)&&lU(a,!1);g.V(c.state,2)&&PQ(a.g)&&(f=a.getCurrentTime(),a.g.lengthSeconds!=f&&(a.g.lengthSeconds=f,$T(a)),KU(a,!0));0<iK(c,2)&&a.ts();a.Z.experiments.g("html5_suspend_manifest_on_pause")&&a.g.va&&a.g.Ca&&(0>iK(c,8)?(f=a.g.va,f.B&&f.B.stop()):0<iK(c,8)&&a.g.va.resume());0<iK(c,1)&&(a.sb=g.xE((0,g.A)(a.aR,a),5E3));a.C&&MK(a.C,c);if(d)try{for(d=
0;d<a.Na.length;d++){var c=a.Na[d],k=a.D,f=c;if(k.C&&!k.J&&(k.A(),g.V(f.g,16))){var f=k,l=SS(f.g,Math.max(f.B-2E3,0));null!=l&&0x7ffffffffffff>l&&f.D.start()}a.Y("statechange",c)}}finally{a.Na.length=0}}};
OU=function(a){g.V(a.A,2)||g.V(a.A,32)||(a.P=window.NaN)};
lU=function(a,b){a.g.Ca&&a.Fa!=b&&(a.Fa=b)};
Fma=function(a){a.Z.Mr?g.xE((0,g.A)(function(){this.o.ad()},a),0):a.o.ad()};
zU=function(a){if(!a.o||!a.g.jb)return!1;if(a.g.jb.g){var b=BU(a);a.B.resume()}else ZT(a),b=a.g.wg.g();var c=a.o.o;return c&&null!=b&&b.g==c.g?!1:(a.G.o("vta"),g.uP("vta",void 0,"video_to_ad"),QJ(a.o,b),Ima(a),a.J&&EG(4),g.vE(a.da),!a.g.mg&&dK(a.A)&&(a.da=g.xE((0,g.A)(a.Ez,a),15E3)),!0)};
Ima=function(a){if(g.FQ(a.g)&&a.o){var b=a.g.Jf;if(b){if(a.F)if("fairplay"==b.g)WT(a);else return;var c=a.o.pa();a.F=new HT(c,b,a.Z.experiments,"widevine"==b.g&&!a.g.Ca&&!a.g.Tq,a.g.drmSessionId);a.F.subscribe("newsession",a.yO,a);a.F.subscribe("licenseerror",a.QN,a);a.F.subscribe("qualitychange",a.RN,a);a.F.subscribe("heartbeatparams",a.xS,a);a.F.subscribe("keystatuseschange",(0,g.A)(function(a){this.Vd("keystatuses",wma(a))},a));
IT(a.F,a.g.oauthToken)}else g.cU(a,"fmt.unplayable","YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK","drm.1")}};
WT=function(a){a.F&&(a.F.dispose(),a.F=null)};
JU=function(a,b,c){if(!a.o)return 0;if(!a.g.Ca)return a.g.mk();if(b&&(a.isPeggedToLive()||g.OQ(a.g)))return a.getCurrentTime();if(a.g.jb&&a.g.jb.g){b=a.Ic();var d=a.g.mk();a.M&&!c&&(d-=iR(a.M));return Math.max(d,b)||0}a=a.o.g.seekable||JJ();return(1>a.length?window.NaN:a.end(a.length-1))||0};
PU=function(a,b){a.ua=b;a.o&&a.o.Of(b)};
yU=function(a,b){void 0==b&&(b=a.getCurrentTime());var c=b,d=JU(a,!1);if(a.g.va){var e=a.Z.experiments.o("html5_allowable_liveness_drift_chunks")||2;0<e&&!a.Fa&&e--;var f=EN(a.g.va);e=(0,window.isNaN)(f)?e:e*f}else e=window.NaN;return c>=d-e};
xU=function(a){return a.getCurrentTime()<a.Ic()-15};
gU=function(a,b){a.Z.experiments.g("html5_log_rebuffer_reason")&&a.Vd("bufreason","r."+b+";lact."+g.vG())};
QU=function(a,b){OK.call(this,a,b)};
g.RU=function(a){return a.app.A};
g.SU=function(a){a=g.RU(a).J;return!!a&&a.my()};
TU=function(a){var b=g.RU(a);a=g.X(a);var c=b.J;return c&&c.oy()?!a.experiments.g("mweb_autonav")||c.isAvailable:g.NQ(b.U.ia(),"ypc_module")};
g.UU=function(a,b){3==a.Wa()?a.Y("mdxautoplaycancel"):a.Y("autonavcancel",b)};
g.X=function(a){return a.app.Z};
g.YU=function(a){var b=a.app;a=a.playerType;return 3==VU(b)?g.WU(b.A).F:g.XU(b,a).A};
g.ZU=function(a){return a.app.F};
$U=function(a){var b=g.WU(g.RU(a));return a.app.V&&!a.isFullscreen()||3==a.Wa()&&b.hasNext()&&b.Gf()||!!a.Nf()};
g.aV=function(a){if(vF())if(a.isFullscreen())xF(a.getRootNode());else{a=a.getRootNode();var b=sF(["requestFullscreen","webkitRequestFullscreen","mozRequestFullScreen","msRequestFullscreen"],a);b&&b.call(a)}else a.ya("onFullscreenToggled",a.isFullscreen())};
g.bV=function(a){var b={};a=DU(g.XU(a.app));a=g.ka(a);for(var c=a.next();!c.done;c=a.next())c=c.value,b[c.quality]=c;return b};
g.cV=function(a){return(a=g.XU(a.app))?g.$I(MT(a.ra,a.g)):"unknown"};
dV=function(a){a=(a=g.XU(a.app))?(a=nU(a))?a.video.o:0:0;return a};
g.eV=function(a){return(a=g.RU(a).B)?a.NB():{}};
g.gV=function(a,b){g.X(a).experiments.g("ui_logging")&&g.fV(a,"controlclicked",{controlClicked:b})};
g.fV=function(a,b,c,d){var e=g.XU(a.app);c.event=b;a.isFullscreen()&&(c.fs=1);c.ux=1;e.logEvent(c,d)};
g.hV=function(a){a=g.RU(a).A;return!!a&&a.rl()};
g.iV=function(a){a=g.RU(a).A;return!!a&&a.KB()};
jV=function(a){a=g.XU(a.app);return!!a&&a.Vb};
g.lV=function(a,b,c){kV(a.app,b,c||a.playerType)};
g.nV=function(a,b,c){var d=a.app;a=c||a.playerType;if(c=g.XU(d,a))c.D.F.apply(c.D,b),a&&VU(d)!=a||mV(d,"cuerangesremoved",b)};
g.oV=function(a,b,c){var d=a.app;a=c||a.playerType;if(c=g.XU(d,a)){c=c.D;for(var e=[],f=c.g.g,k=f.length-1;0<=k;k--){var l=f[k];if(l.namespace==b){var m=c.o.indexOf(l);0<=m&&c.o.splice(m,1);var n=c.g,m=n.g,n=g.wb(m,l,n.o);0<=n&&g.jb(m,n);e.push(l)}}c.A();a&&VU(d)!=a||mV(d,"cuerangesremoved",e)}};
g.pV=function(a,b){var c=g.XU(a.app,a.playerType);c&&Dma(c,b)};
g.qV=function(a){a=a.ia().Ma;return!!a&&!NI(a)&&"application/x-mpegURL"!=a.mimeType};
g.rV=function(a){a=a.ia();return!!(a.adaptiveFormats||a.hlsFormats||a.xe)};
g.sV=function(a,b,c){a=g.ZU(a).element;var d=xb(a.children,function(a){a=(0,window.parseInt)(a.getAttribute("data-layer"),10);return c-a||1});
0>d&&(d=-(d+1));oe(a,b,d);b.setAttribute("data-layer",c)};
g.tV=function(a){var b=g.X(a);if(!b.ke)return!1;var c=a.ia();if(!c||3==a.Wa())return!1;b=c.Ca&&(!b.experiments.g("allow_live_autoplay")||c.isLiveDefaultBroadcast);return!c.ypcPreview&&!b&&!g.eb(c.ge,"ypc")&&!a.Nf()};
vV=function(a,b,c){if(g.X(a).fa){a=a.app.da;g.ib(a.A,b);var d=String(a.G++);b.element.setAttribute("data-visual-id",d);g.uV(a,"onLogClientVeCreated",{id:d,ve_type:c});g.Je(b,(0,g.A)(a.F,a,b))}};
g.wV=function(a,b){g.X(a).fa&&a.app.da.click(b)};
g.xV=function(a,b,c){g.X(a).fa&&(a=a.app.da,b=b.element.getAttribute("data-visual-id"),c?g.ib(a.g,b):g.kb(a.g,b),c&&!g.eb(a.o,b)&&(g.uV(a,"onLogVesShown",{ids:[b]}),g.ib(a.o,b)))};
Jma=function(){a:{try{var a=window.top.location.href}catch(b){a=2;break a}a=null!=a?a==window.document.location.href?0:1:2}a={dt:QA,flash:oi||"0",frm:a};Yh(a);return a};
yV=function(a,b){var c=g.OD("VALID_SESSION_TEMPDATA_DOMAINS",[]),d=g.vg(window.location.href);d&&c.push(d);d=g.vg(a);if(g.eb(c,d)||!d&&g.Da(a,"/"))if(g.aF("autoescape_tempdata_url")&&(c=window.document.createElement("a"),g.Fd(c,a),a=c.href),a&&(c=g.tg(a),c=g.sg(null,null,null,null,c[5],c[6],c[7]),d=c.indexOf("#"),c=0>d?c:c.substr(0,d))){if(b.itct||b.ved)b.csn=b.csn||g.QG();c="ST-"+g.Ta(c).toString(36);d=b?g.Bg(b):"";tH.set(""+c,d,5,"/","youtube.com");b&&(c=b.itct||b.ved,d=g.x("yt.logging.screen.storeParentElement"),
c&&d&&d(new g.ZF(c)))}};
g.zV=function(a){var b=void 0===b?{}:b;var c=void 0===c?"":c;var d=void 0===d?window:d;d=d.location;a=g.Dg(a,b)+c;a=a instanceof td?a:wd(a);d.href=ud(a)};
AV=function(a){(window.ytspf||{}).enabled?window.spf.navigate(a):g.zV(a)};
g.BV=function(a,b,c){b=void 0===b?{}:b;c=void 0===c?!1:c;var d=g.OD("EVENT_ID");d&&(b.ei||(b.ei=d));b&&yV(a,b);if(c)return!1;AV(a);return!0};
g.CV=function(a,b,c){c&&yV(a,c);window.open(a,b||g.Ta(a).toString(36))};
g.DV=function(a){g.RF.call(this);this.g=a;this.loaded=!1};
EV=function(a){g.DV.call(this,a);this.Wd="";this.M=new g.DJ(this);g.N(this,this.M);this.C=!1};
FV=function(a,b,c){for(var d=0;d<b.length;d++)b[d].namespace=a.Wd;g.lV(a.g,b,c)};
GV=function(a){g.pV(a.g,a.Wd)};
HV=function(a,b,c){var d={},e;for(e in b)d[a.Wd+"_"+e]=b[e];b={};for(var f in c)b[a.Wd+"_"+f]=c[f];a=g.RU(a.g);g.za(a.ca,d||null);g.za(a.ba,b||null)};
g.IV=function(a){g.W.call(this,a);this.ba=new g.RF;g.N(this,this.ba)};
g.JV=function(a){var b=Math.abs(Math.floor(a)),c=Math.floor(b/86400),d=Math.floor(b%86400/3600),e=Math.floor(b%3600/60),b=Math.floor(b%60),f="";0<c&&(f+=c+":",10>d&&(f+="0"));if(0<c||0<d)f+=d+":",10>e&&(f+="0");f+=e+":";10>b&&(f+="0");f+=b;return 0<=a?f:"-"+f};
g.KV=function(a){return(!g.oa(a.button)||0==a.button)&&!a.shiftKey&&!a.altKey&&!a.metaKey&&!a.ctrlKey};
LV=function(a,b){(a=g.Vd(a))&&a.style&&(g.O(a,b),g.S(a,"hid",!b))};
g.MV=function(a){(0,g.H)(arguments,function(a){!g.ta(a)||a instanceof window.Element?LV(a,!0):(0,g.H)(a,function(a){g.MV(a)})})};
g.NV=function(a){(0,g.H)(arguments,function(a){!g.ta(a)||a instanceof window.Element?LV(a,!1):(0,g.H)(a,function(a){g.NV(a)})})};
g.OV=function(a,b,c,d){g.M.call(this);this.o=a;c||a.hide();this.B=null==d?b:d;this.g=null;this.A=new g.rt(this.po,0,this);g.N(this,this.A)};
PV=function(a,b){var c=a.o.element;b?c.setAttribute("aria-hidden",!0):c.removeAttribute("aria-hidden")};
QV=function(){return{H:"div",N:"ytp-spinner-dots",L:[{H:"div",ea:["ytp-spinner-dot","ytp-spinner-dot-0"]},{H:"div",ea:["ytp-spinner-dot","ytp-spinner-dot-1"]},{H:"div",ea:["ytp-spinner-dot","ytp-spinner-dot-2"]},{H:"div",ea:["ytp-spinner-dot","ytp-spinner-dot-3"]},{H:"div",ea:["ytp-spinner-dot","ytp-spinner-dot-4"]},{H:"div",ea:["ytp-spinner-dot","ytp-spinner-dot-5"]},{H:"div",ea:["ytp-spinner-dot","ytp-spinner-dot-6"]},{H:"div",ea:["ytp-spinner-dot","ytp-spinner-dot-7"]}]}};
g.RV=function(a,b,c,d){if((void 0===c||!c)&&g.KV(a))return g.MF(a),!0;b.ld();a=a.currentTarget.getAttribute("href");g.BV(a,d,!0);return!1};
SV=function(a,b,c){if(VO(g.X(b))&&2!=b.Wa()){if(g.KV(c))return b.isFullscreen()&&g.aV(b),g.MF(c),!0}else{var d=g.KV(c);d&&b.ld();g.BV(a,void 0,!0);d&&(g.CV(a),g.MF(c))}return!1};
TV=function(a){var b=!g.X(a).Bb&&3!=a.Wa();return a.isFullscreen()||b};
VV=function(a,b){this.g=a;this.o=g.oa(b)?b:null;if(g.eb(UV,this.g)){if(!g.oa(this.o)||0>this.o)throw Error("Must have valid offset");}else if(null!==this.o)throw Error("Must not have offset");};
WV=function(a){var b=a.o;if(null!==b)return b;switch(a.g){case 1:return 0;case 3:return-1;default:return-100}};
Kma=function(a,b){var c=a.g,d=b.g;if(c!=d){if(1==c||3==d)return-1;if(1==d||3==c)return 1}var e=a.o,f=b.o;return e!=f?null===e?1:null===f?-1:e-f:c-d};
XV=function(a){this.o=a};
YV=function(a){return a?-1!=a.toString().search(/(?:true|1)/i):!1};
ZV=function(a,b){if(a){var c="getErrorCode"in a?a.Lb():null;c?b.error_code=c:(c="getMessage"in a&&g.ua(a.getMessage)?a.ud():a.message,c=Ia(c||"",50),b.error_message=c)}};
$V=function(a,b){if(a){var c=ds(a).reverse();b.ad_id=g.nb(c,bs(a)).join(",");c=fs(a).reverse();b.ad_sys=g.nb(c,Ur(a)).join(",");c=fq(a);null!=c&&(b.aqi=c)}};
aW=function(a,b){if(a[b])return YV(a[b]);var c=b.toLowerCase(),d;for(d in a)if(d&&d.toLowerCase()==c)return YV(a[d]);return!1};
bW=function(a,b,c){var d=new Nn;d.Ei=b.baseYtUrl;d.contentId=c.videoId;d.Vs=!0;d.tB=!0;d.uB=a.P;d.showContentThumbnail=a.showContentThumbnail;d.vj={};c.Wf&&(d.vj.ctrl=c.Wf);c.hf&&(d.vj.ytr=c.hf);c.gm&&(d.vj.ytrcc=c.gm);c.isMdxPlayback&&(d.vj.mdx="1");a.D?(d.kp=!0,d.Kv=!0,d.showContentThumbnail=!1,d.Ts=!0,d.Us=!0,d.Vs=!1):a.G&&(d.kp=!0);d.Nw=a.g;return d};
eW=function(a){var b=new cA;b.C=a.o.Ta;var c=a.app.F.Ya();b.aj=c.width;b.Zi=c.height;b.Ye=c.width;b.Xe=100;b.Ov=!0;c=new zm;c.g=(0,g.A)(cW(a).experiments.g,cW(a).experiments);c.o=(0,g.A)(cW(a).experiments.o,cW(a).experiments);c.A=(0,g.A)(cW(a).experiments.A,cW(a).experiments);b.zo=c;if(c=b.Ov?g.vG():-1)b.G=c;a.o.tagForChildDirected&&(b.eo=!0);a.o.Cc&&(b.Wm=!0);c=dW(a);b.Fc={CA_TYPE:ao?"flash":"image",CONTENT_V:c.videoId,CPN:c.clientPlaybackNonce,EID:c.eventId,LACT:Lma(a),VIS:Mma(a)};g.Ib(Jma(),function(a,
c){b.Fc[c.toUpperCase()]=a});
b.language=cW(a).Ia;var d=0;b.Rl=function(){var b=new XV(a),c=Nma(cW(a).experiments);if(0==d)if(a.je("a_bid_s"),If(c)){var k=(0,g.A)(a.je,a,"a_bid_f");c.then(k,k)}else a.je("a_bid_f");Oma(c,cW(a).experiments,b,d);d++;return c};
return b};
Nma=function(a){function b(a){if(d)return"ERR_BID";throw a;}
var c=a.g("html5_serverside_call_server_on_biscotti_timeout"),d=a.g("html5_serverside_call_server_on_biscotti_error"),e=null,f=null;nF().then(function(a){e=a},function(a){c&&a.o?e="NO_BID":d?e="ERR_BID":f=a});
if(null!=e)return e;if(null!=f)return f;var k=a.o("html5_serverside_biscotti_id_wait_ms");if(0==k)return c?"NO_BID":d?"ERR_BID":fW;if((0,window.isNaN)(k))return a=g.Uf(nF(),b),g.Uf(a,g.y),a;var l;a=new g.Kf(function(a,b){l=new g.rt(function(){c?a("NO_BID"):b(fW)},k);
l.start()});
a=g.Uf(gba([nF(),a]),b);jba(g.Uf(a,g.y),function(){l.dispose()});
return a};
Oma=function(a,b,c,d){function e(a){a==fW||a instanceof eF&&a.o?f({"bid.type":"timeout","bid.count":d,"bid.msg":a.toString(),"bid.timeout":b.o("html5_serverside_biscotti_id_wait_ms")}):f({"bid.type":"error","bid.count":d,"bid.msg":a.toString()})}
if(b.g("html5_serverside_get_biscotti_id_from_client")){var f=(0,g.A)(c.g,c,["html5_serverside_get_biscotti_id_from_client"],"coldwatch");If(a)?a.then(null,e):a instanceof Error&&e(a)}};
Lma=function(a){return{toString:function(){return null==a||a.na()?a=null:g.vG().toString()}}};
Mma=function(a){return{toString:function(){return null==a||a.na()?a=null:a.g.un().toString()}}};
Pma=function(a){return{toString:function(){if(null==a||a.na())return a=null;var b=a.fd?a.fd.g:null;return null==b||0>b?"0":Math.ceil(.001*(0,g.G)()-b).toString()}}};
gW=function(a,b,c,d){this.o=this.B="";this.A=a;this.F=b;this.g=c;this.D=d};
hW=function(a){var b={};b.l_ns=a.F;b.l_state=a.D;b.break_type=a.A.g;b.sst=WV(a.A);b.sidx=0;a.B&&(b.at=a.B);a.o&&(b.ad_id=a.o);return b};
iW=function(){g.M.call(this);this.o=new g.rt((0,g.A)(this.D,this),1E3);g.N(this,this.o);this.B=this.A=0;this.g=iba();this.C=!1};
lW=function(){var a=g.x("yt.www.watch.ads.loadAfc");g.ua(a)?(a(),jW=!0):kW=!0};
mW=function(){window.google_ad_output="html";window.google_ad_height="250";window.google_ad_format="300x250_as";window.google_container_id="google_companion_ad_div"};
oW=function(){var a=g.x("window.google_show_companion_ad");var b=g.x("yt.www.watch.ads.getGlobals");g.ua(a)&&g.ua(b)?(b=b(),b=!(!b||!b.length)):b=!1;b?a():nW=!0};
sW=function(a){if(P.A){if(!a)return Pf();pW(a,{afvMpu:{}});return Of()}oW();qW();return rW()};
rW=function(){tW||(tW=new iW);var a=tW;a.C||(a.o.start(),a.C=!0);return a.g.g};
qW=function(){tW&&(tW.dispose(),tW=null)};
uW=function(){var a=g.x("yt.www.watch.ads.setCompanion");a&&a()};
Qma=function(a){var b=g.x("yt.www.watch.ads.showForcedMpu");b&&b(a)};
vW=function(a,b,c,d){g.RF.call(this);this.g=a;this.o=d;this.videoData=null;this.adType=c;this.adSystem=b};
Rma=function(a,b,c){this.g=a;this.o=b;this.A=c||0};
wW=function(a){var b=[];(0,g.H)(a.split("_"),function(a,b){this[b]=Va(a)},b);
return new Rma(Mb(Sma,b[0])?b[0]:0,Mb(Tma,b[1])?b[1]:0,Mb(Uma,b[2])?b[2]:0)};
Vma=function(){this.clickThroughUrl="";this.isSkippable=this.isBumper=!1;this.skipShown=this.skip=g.y;this.skipTime=0;this.videoUrl=this.videoId="";this.adSystem=0;this.muteAdInfo=this.whyThisAdInfo=null;this.whyThisAdClosed=this.whyThisAdClicked=this.muteAd=this.sendAdsPing=g.y};
xW=function(a){var b={H:"div",N:"video-ads",L:[{H:"div",N:"video-ad-status-bar",L:[{H:"div",N:"video-ad-label",L:[g.T("YTP_ADVERTISEMENT")]}]},{H:"div",N:"ad-container"}]};g.W.call(this,b);this.B=a;this.A=this.o=null};
yW=function(a){a.o||(a.o=a.xa["ad-container"],g.X(a.B).Ed&&(GO&&!(0<=g.Ra(ri,"10.0"))&&g.X(a.B).experiments.g("disable_mweb_iphone_ad_click_handling_functionality")||g.R(a.o,"ad-container-single-media-element-annotations")));return a.o};
zW=function(a){if(!a.A){var b=g.ie("div");g.Jp(b,["video-click-tracking","ad-video"]);yW(a).appendChild(b);a.A=b}return a.A};
Wma=function(a){this.g=a};
Xma=function(a){switch((0,window.parseInt)(a.toString(),10)){case 12:return 2;case 13:case 53:return 3;case 14:return 4;case 15:return 5;case 22:case 52:case 61:return 7;case 30:return 8;case 32:case 33:return 9;case 51:case 55:case 60:case 90:return 10;case 54:return 1;case 56:return 11;case 57:return 12;case 58:return 13}return 0};
AW=function(a){switch((0,window.parseInt)(a.toString(),10)){case 2:return 1;case 3:case 4:return 2;case 5:return 3;case 6:return 4;case 7:return 5;case 15:case 100:return 6;case 14:return 7;case 777:return 8;case 19:return 10;default:return 0}};
Yma=function(a,b){this.C=null;this.A=window.NaN;this.o=null;this.g=a;this.B=b};
BW=function(a,b,c){a.g.Y("AD_LOGGING_EVENT",b,c)};
EW=function(a,b,c){CW(a);var d=DW(a);c&&g.za(d,c);d.ad_error=b;BW(a,7,d)};
DW=function(a){var b={},c=a.g.videoData,d=a.g.Fm(),e=a.g.ul();$V(a.g.Kb(),b);d&&0<d&&(b.ad_len=d);b.ad_v="0";c&&c.videoId?b.ad_v=c.videoId:e&&(c=g.vg(e),b.ad_dom=c,(c=a.B.o)&&c.G&&(b.ad_v_url=e.substr(0,512)));e=a.g;(e=e.o?e.o.Be():null)&&(b.ad_cpn=e);b.format=a.g.qf();b.at=a.g.Rh();b.ad_mt=Math.round(1E3*Math.max(Zma(a.g),0));return b};
CW=function(a){a.C||(a.C="InstreamAdDisplay ("+a.g.qf()+")")};
FW=function(a,b){g.M.call(this);this.B=Math.max(0,a);this.A=this.o=0;this.C=b;this.g=window.NaN};
GW=function(a,b){this.o=a;this.g=b};
HW=function(a,b){return a.o+b*a.getLength()};
IW=function(a,b,c){if(!a.getLength())return null!=c?c:window.Infinity;a=(b-a.o)/a.getLength();return g.Hd(a,0,1)};
JW=function(){this.o=this.position=this.B=this.g=this.C=this.A=this.width=window.NaN};
KW=function(a,b,c,d,e){var f=b.Ty/b.rows,k=Math.min(c/(b.Vy/b.columns),d/f),l=b.Vy*k,m=b.Ty*k,l=Math.floor(l/b.columns)*b.columns,m=Math.floor(m/b.rows)*b.rows,n=l/b.columns,q=m/b.rows,r=-b.KF*n,w=-b.Oc*q;e&&45>=f&&(q-=1/k);n-=2/k;a=a.style;a.width=n+"px";a.height=q+"px";e||(d=(d-q)/2,c=(c-n)/2,a.marginTop=Math.floor(d)+"px",a.marginBottom=Math.ceil(d)+"px",a.marginLeft=Math.floor(c)+"px",a.marginRight=Math.ceil(c)+"px");a.background="url("+b.url+") "+r+"px "+w+"px/"+l+"px "+m+"px";if(e)return new g.Pd(n,
q)};
MW=function(a,b,c,d,e,f,k,l){vW.call(this,b,a,2,c);this.P=!1;this.F=this.da=this.V=null;this.g.subscribe("control_toggle_play_pause",this.dC,this);this.g.subscribe("control_play",this.ds,this);this.g.subscribe("control_pause",this.Zr,this);this.C=new Yma(this,this.g);this.A=new g.NF(this);this.B=LW(b);this.B.subscribe("statechange",this.bC,this);this.B.subscribe("internalAbandon",this.ez,this);this.B.subscribe("internalvideodatachange",this.cC,this);this.G=!1;this.J=this.O=null;this.D=!1;this.fa=
d;this.ka=e;this.ca=!!f;this.ga=!!k;this.M=l;this.K=new FW(15E3,(0,g.A)(this.abort,this));this.ha=b.o.P&&"3"==cW(b).C};
OW=function(a,b){if(!a.na()&&a.ha){var c=a.g.app.F;c.F=!b;NW(c)}};
SW=function(a){GP("ad_to_video",["pbresume"]);a.M&&g.vP("yt_abt",a.M,"ad_to_video");a.videoData&&a.videoData.clientPlaybackNonce&&g.vP("ad_cpn",a.videoData.clientPlaybackNonce,"ad_to_video");a.videoData&&a.videoData.videoId&&g.vP("ad_docid",a.videoData.videoId,"ad_to_video");g.uP("adc",void 0,"ad_to_video");var b=a.g.o;if(b&&(b.sa||b.ua||b.Fa||b.Ia)){var c=PW(a.g);if(c&&null!==a.O&&null!==a.J){a.videoData.wc=a.J;var d=c.getVolume();1E-6>=Math.abs(d-a.O*b.K)&&c.setVolume(a.O)}}sU(LW(a.g));QW(a.g,0);
RW(a.g,0);a.Y("adEnd",a);OW(a,!0)};
TW=function(a,b){cW(a.g).experiments.g("html5_ad_error_releases")?sU(a.B):UT(a.B);QW(a.g,0);a.Y("adError",b)};
Zma=function(a){return a.B?a.B.getCurrentTime():0};
UW=function(a){a=a.Kb();return a?(a=a.G.get("why_this_ad"))?{menuTitle:a.B,closeButton:a.A,targetingReasonHeader:a.C,targetingReasons:g.ob(a.D),adSettingsLink:g.ob(a.o),controlText:a.G,continueButton:a.F,cancelButton:a.K}:null:null};
VW=function(a){a=a.Kb();if(!a)return null;a=a.G.get("mute");if(!a)return null;for(var b=Ys(a),c=[],d=0;d<b;d++)c.push({label:a.o[d].label,url:a.o[d].url});return{goneText:a.A,questionText:a.C,undoText:a.D,hoverText:a.B,surveyOptions:c}};
WW=function(a,b){a.J=a.videoData.wc;a.O=b.getVolume()};
$ma=function(a,b){this.g=a;this.C=b;this.g.qf();this.o=this.B=0;this.A=null};
XW=function(a,b,c){a.g.Y("AD_LOGGING_EVENT",b,c)};
YW=function(a){var b={};$V(a.g.Kb(),b);a.B&&a.o&&(b.ot=a.o-a.B);var c=a.C.isFullscreen()?2:a.C.app.oa?1:0;b.ad_ps=c;b.format=a.g.qf();b.at=a.g.Rh();return b};
ZW=function(a,b,c,d){vW.call(this,b,a,1,c);this.A=null;this.D=!1;this.G=null;this.C=new $ma(this,b);this.B=new g.NF(this);this.F=!!d};
$W=function(a,b){var c=a.g.getRootNode();g.S(c,"ytp-ad-overlay-open",b);g.S(c,"ytp-ad-overlay-closed",!b)};
aX=function(a,b,c,d){g.M.call(this);this.K=null;this.G=a;this.o=b.Tb;this.C=b;this.J=b.getId();this.g=c;this.D=d;this.A=new gW(this.o,this.G,c,d);this.ib=null;this.O=new g.dm(this);this.B=new g.dm(this);this.M=/^(http(s)?:\/\/)(.*.)?youtube.com\/.*$/};
bX=function(a,b){a.K=b;var c=b.qf();a.A.B=c};
cX=function(a,b){var c=g.x("yt.www.watch.ads.setAdId");c&&c(b);a.A.o=b};
dX=function(a){sW(a.g).then(function(){this.A.C()},g.y,a)};
ana=function(a){this.g=a};
eX=function(a){vW.call(this,a,2,3,null)};
fX=function(a,b,c){aX.call(this,2,a,b,c);this.F=new ana(this.g.o);mW()};
bna=function(a,b){this.g=a?a:"";this.jc=b};
gX=function(a,b,c,d){ZW.call(this,1,a,b,d);this.J=c};
hX=function(a,b,c){aX.call(this,1,a,b,c);this.F=new bna(this.g.o.adTag,this.J)};
iX=function(a,b){var c=b.o;this.F=c.forceAdUrl;var d=0,c=c.forceAdType.toUpperCase();"INVIDEO"==c?d=4:"INSTREAM"==c?d=1:"MPU"==c&&(d=8);aX.call(this,2,a,b,d)};
cna=function(a){a=Mq(a);var b=Nq(a);return{plaShelfItemRenderer:{headline:jX(a.jd()),merchant:jX(Pq(b)),image:{thumbnails:[{url:Qq(a).getImageUrl()}]},priceText:jX(Rq(b)),reviewText:jX(fr(b,"review_text")),rating:dv(b,"rating",0),clickthroughEndpoint:{webNavigationEndpointData:{url:Tq(wv(b))},urlEndpoint:{url:Tq(wv(b)),target:"TARGET_NEW_WINDOW"}}}}};
jX=function(a){return{runs:[{text:a}]}};
ena=function(){kX||(kX=dna()?Of():new g.Kf(function(a){g.gG("watchAdsInit",a)}));
return kX};
dna=function(){var a=g.x("yt.www.watch.ads.promotionShelfShow");return g.ua(a)};
fna=function(a){var b=g.x("yt.www.watch.ads.promotionShelfClear");b&&b();b=g.x("yt.www.watch.ads.promotionShelfShow");null!=b&&b(a)};
lX=function(){this.B=new g.W({H:"button",ea:["ad-carousel-nav-button","ad-carousel-nav-prev"],R:{type:"button",onclick:"return false;"},L:[{H:"span",ea:["ad-carousel-prev-icon","yt-uix-tooltip","yt-sprite"],R:{"data-tooltip-text":"Prev",title:"Prev"}}]});g.N(this,this.B);this.B.X("click",this.F,this);this.A=new g.W({H:"button",ea:["ad-carousel-nav-button","ad-carousel-nav-next"],R:{type:"button",onclick:"return false;"},L:[{H:"span",ea:["ad-carousel-next-icon","yt-uix-tooltip","yt-sprite"],R:{"data-tooltip-text":"Next",
title:"Next"}}]});g.N(this,this.A);this.A.X("click",this.D,this);g.W.call(this,{H:"div",N:"ad-carousel",L:[{H:"div",N:"ad-carousel-clip",L:[{H:"ul",ea:["ad-carousel-list","ad-carousel-list-animation"],L:["{{items}}"]}]},this.B,this.A]});this.C=this.xa["ad-carousel-list"];this.o=0;this.Ka=[]};
gna=function(a,b){a.clear();a.Ka=(0,g.I)(b,function(a){var b=new g.W({H:"li",N:"ad-carousel-listitem",L:[{H:"div",N:"ad-carousel-item",L:[a]}]});g.N(b,a);return b});
a.Da("items",a.Ka)};
nX=function(a){a.C&&g.bh(a.C,"left",(2>a.Ka.length?0:-a.o*a.Ka[1].element.clientWidth)+"px");a.B.Jb(0<a.o);a.A.Jb(a.o<a.Ka.length-mX(a))};
mX=function(a){return 2>a.Ka.length?1:Math.round((a.element.clientWidth-a.Ka[0].element.clientWidth)/a.Ka[1].element.clientWidth)+1};
qX=function(a){var b=Mq(a),c=Nq(b),d=["iv-btp-small-card"];d.push("yt-uix-hovercard-target");var e={href:Tq(wv(c)),target:"_blank"},f={H:"div",ea:["iv-btp-card-image","yt-uix-hovercard-anchor"],L:[{H:"span"},{H:"div",N:"iv-btp-card-image-aligned",L:[{H:"img",R:{src:Qq(b).getImageUrl()}}]}]},k={H:"div",N:"iv-btp-card-info",L:[{H:"span",N:"iv-btp-card-action",L:[Rq(c)]},oX(a)]};var l=Mq(a);var m=Nq(l);l={H:"div",ea:["yt-uix-hovercard-content","iv-btp-hovercard"],L:[{H:"div",N:"iv-btp-hovercard-text-box",
L:[{H:"a",R:{href:Tq(wv(m)),target:"_blank"},L:[{H:"div",ea:["yt-ui-ellipsis","yt-ui-ellipsis-4","iv-btp-hovercard-headline"],L:[l.jd()]}]},{H:"div",N:"iv-btp-hovercard-info",L:[{H:"span",N:"iv-btp-hovercard-action",L:[Rq(m)]},oX(a)]},pX(a)]}]};d={H:"div",ea:d,R:{"data-position":"bottomright","data-orientation":"vertical"},L:[f,k,l]};b={H:"div",N:"iv-btp-large-card",L:[{H:"div",N:"iv-btp-card-image",L:[{H:"span"},{H:"div",N:"iv-btp-card-image-aligned",L:[{H:"img",R:{src:Qq(b).getImageUrl()}}]}]},
{H:"div",N:"iv-btp-card-info",L:[{H:"div",N:"iv-btp-card-text-box",L:[{H:"div",N:"iv-btp-card-text-valign",L:[{H:"div",ea:["yt-ui-ellipsis","yt-ui-ellipsis-4","iv-btp-card-headline"],L:[b.jd()]}]}]},{H:"span",N:"iv-btp-card-action",L:[Rq(c)]},oX(a),pX(a)]}]};c=[];a=Nq(Mq(a));f={TRIGGER_TYPE:"YOUTUBE_DRAWER_AUTO_OPEN"};for(k=0;k<fv(a,"event");k++)l=new kv(ev(a,"event",k)),7==l.bc()&&(l=g.mm(fr(l,"base_url"),f),c.push({H:"img",R:{src:l}}));g.IV.call(this,{H:"div",N:"iv-btp-card",L:[{H:"a",N:"iv-btp-card-content",
R:e,L:[{H:"div",L:[d,b,{H:"div",N:"iv-btp-impressions",L:c}]}]}]})};
pX=function(a){a=Nq(Mq(a));return.01>dv(a,"rating",0)?{H:"div"}:{H:"div",N:"iv-btp-card-review",L:[{H:"div",N:"iv-btp-card-rating",L:[{H:"span",N:"iv-btp-card-rating-bg",L:[{H:"span",N:"iv-btp-card-rating-fg",R:{style:"width: "+Math.floor(100*dv(a,"rating",0)/5)+"%;"}}]}]},{H:"span",N:"iv-btp-card-reviews",L:[fr(a,"review_text")]}]}};
oX=function(a){return{H:"div",N:"iv-btp-card-merchant",L:[{H:"span",N:"iv-btp-card-merchant-text",L:[Pq(Nq(Mq(a)))]}]}};
rX=function(){this.o=new lX;this.C=new g.DJ(this);g.N(this,this.C);this.D=new g.rt(this.Os,200,this);g.N(this,this.D);var a={H:"div",N:"iv-btp-companion",L:[{H:"div",N:"iv-btp-block-clicks"},{H:"div",N:"iv-btp-attribution",L:[{H:"span",N:"iv-btp-title",L:["{{title}}"]},{H:"div",ea:["yt-uix-hovercard","ad-info-container"],L:[{H:"span",N:"iv-btp-sponsored",L:[g.T("YTP_SPONSORED"),{H:"span",N:"yt-uix-hovercard-target",R:{"data-position":"topright","data-orientation":"horizontal"},L:[{H:"span",N:"ad-info-icon"}]}]},
{H:"div",N:"yt-uix-hovercard-content",L:[{H:"span",N:"ytp-ad_settings",L:[g.T("YTP_SPONSORED_PRODUCT_INFO")]}]}]}]},this.o]};g.IV.call(this,a);this.B=this.xa["iv-btp-block-clicks"];this.A=new g.rt(g.ya(function(a){g.O(a,!1)},this.B),1E3);
g.N(this,this.A);this.C.T(window,"resize",this.KG)};
hna=function(a,b){a.clear();g.O(a.B,!0);var c=(0,g.I)(b,g.ya(function(a){return new qX(a)}));
a.Da("title",0<b.length?fr(b[0],"teaser_text"):"");gna(a.o,c);a.Os()};
sX=function(a,b){vW.call(this,a,14,14,b);this.A=new rX;g.N(this,this.A)};
tX=function(a){return(0,g.re)(a.o.Kb().B,function(a){return!!dv(ps(a),"show_in_promotion_shelf",void 0)})};
uX=function(a,b,c){aX.call(this,14,a,b,c)};
vX=function(a,b,c){aX.call(this,14,a,b,c)};
ina=function(a,b,c,d,e){this.B=a;this.o=b;this.g=c;this.Z=cW(this.B);this.C=d;this.D=dW(this.B).lengthSeconds;this.F=e;this.A="html5";"embedded"==this.Z.g?this.A="html5_embed":GO||FO?this.A="html5_ios":NE("android")?this.A="html5_android":XE()?this.A="html5_wp":QE()?this.A="html5_ps3":"leanback"==this.Z.g?(a=(g.Pb(window,"environment","brand")||"").toLowerCase(),b=(g.Pb(window,"environment","model")||"").toLowerCase(),this.A="roku"==a||"bskyb"==a?"roku":"wiiu"==b?"wii":"html5_tv_leanback"):this.A=
WE()?"html5_wii":"html5_desktop"};
yX=function(a){return wX(a.o)?"preroll":xX(a.o)?"postroll":"midroll"};
AX=function(a){return(a=a.B.A)?(0,g.Ek)(a.Db,function(a){return zX(a)||xX(a)}):!1};
BX=function(a,b){ZW.call(this,4,a,b)};
CX=function(a,b,c){aX.call(this,4,a,b,c);var d=this.g.o;this.F=g.F(d.sb);this.P=new ina(b,a,d,c,!(!dW(this.g)||!dW(this.g).spacecastModule))};
DX=function(a,b){this.o=a;this.g=b};
jna=function(a){return 0<(a.g&3)};
EX=function(a,b,c,d,e){g.RF.call(this);this.F=!0;this.o=!1;this.isVisible=!0;this.B="unloaded";this.G=!1;this.Aa=b;this.A=a;this.Tb=c;this.D=d;this.C=this.g=null;this.J=!!e};
GX=function(a){return wX(a)?a.Pb()&&FX(a)?-0x8000000000000:0:g.oa(a.Tb.o)?1E3*WV(a.Tb):0x8000000000000};
kna=function(a){var b=!cW(a.A).experiments.g("disable_fetching_previous_nonadjacent_midrolls");return wX(a)||b&&a.A.g&&1E3*a.A.g.getCurrentTime()>=GX(a)?!1:(0,g.Br)(a.D,function(a){switch(a.bc()){case 1:case 2:case 5:return!0;default:return!1}})};
wX=function(a){return 1==a.Tb.g};
FX=function(a){if(!a.Pb())throw Error("Preroll status is undefined before ad load.");return wX(a)&&a.o};
zX=function(a){return 2==a.Tb.g};
xX=function(a){return 3==a.Tb.g};
MX=function(a){a.B="loading";wX(a)&&!(0,g.Ek)(a.D,jna)&&GV(a.A);if(a.J)a.B="loaded",a.o=!0,HX(a);else{var b=a.D.shift();b?(wX(a)&&a.A.je("nl"),b=b.create(a,a.A),g.N(a,b),b.load()):a.A.o.J&&5!=a.Tb.g?IX(a,new eX(a.A),a.Tb):(JX(a.A,2,KX(a,{})),LX(a,!1),a.B="error",HX(a))}};
NX=function(a){a.g&&(a.g.unsubscribe("adEnd",a.iz,a),a.g.unsubscribe("adError",a.SB,a),a.g.unsubscribe("AD_LOGGING_EVENT",a.UB,a),a.g.unsubscribe("select",a.RB,a),a.g.unsubscribe("adCompanionInitialized",a.TB,a))};
IX=function(a,b,c){a.g=b;a.Tb=c;g.N(a,a.g);0==a.Aa&&(b=a.g.Rh(),a.A.da.at=b);a.g instanceof MW?a.o=!0:a.g instanceof eX?a.isVisible=!1:a.g instanceof BX?a.isVisible=!1:a.g instanceof gX&&(a.isVisible=!1);a.B="loaded";HX(a)};
HX=function(a){a.Y("adBreakComplete",a)};
LX=function(a,b){a.C&&(a.C.Dj({FILLED_OPPORTUNITY:b?1:0}),a.C.dispose(),a.C=null)};
KX=function(a,b){b.break_type=a.Tb.g;b.sst=WV(a.Tb);b.sidx=0;return b};
OX=function(a){var b=0;a.ba&&(b|=1);a.V&&(b|=2);var c=0;a.M&&a.O&&(c=4);a=new Fl;a.set(3,b);a.set(4,c);return a};
PX=function(a,b){var c=[];if(a.fa)return c.push("pla"==(a.forceAdType||"").toLowerCase()?new DX(8,16):new DX(4,0)),c;if(a.independentBreakOffsets&&5==b)return a.ka&&c.push(new DX(7,16)),c;if(a.ga){var d=0;if(a.A||a.C)d|=1;a.ha&&(d|=4);a.J&&(d|=8);c.push(new DX(5,d))}a.da&&(d=0,a.A&&(d|=1),a.C&&(d|=2),a.ha&&a.M&&(d|=4),a.J&&a.M&&(d|=8),d&&c.push(new DX(2,d)));var d=OX(a),e=d.get(3);e&&c.push(new DX(1,e));!a.independentBreakOffsets&&a.ka&&c.push(new DX(7,16));(d=d.get(4))&&c.push(new DX(1,d));return c};
QX=function(a){this.g=a};
RX=function(a){var b=[];(0,g.H)(lna(a),function(a,d){var c=new EX(this.g,d,a,PX(this.g.o,a.g));b.push(c)},a);
return b};
lna=function(a){var b=a.g.o;a=[];if(b.oa)for(var c=b.oa.split(","),d=0;d<c.length;d++){var e=Va(c[d]),e=0>e?new VV(3):0<e?new VV(2,e):new VV(1);a.push(e)}else a=mna;if(b.independentBreakOffsets)for(b=b.independentBreakOffsets.split(","),d=0;d<b.length;d++)a.push(new VV(5,Va(b[d])));g.yb(a,Kma);return a};
qna=function(a,b){this.Z=a;this.D=this.Z.isMobile;this.G="leanback"==this.Z.g;this.B=this.D||this.G;this.P=!this.G&&!JO(a);this.A=YV(b.instream);this.isLiveStream=1==b.livestream;this.C=YV(b.trueview);this.ca=YV(b.aftv);this.oa=b.ad_slots;this.independentBreakOffsets=b.independent_break_offsets;this.adFlags=b.ad_flags||0;this.kb=b.cafe_experiment_id;this.adTag=b.ad_tag;this.tc=!!b.adtest;this.afvAdTag=b.afv_ad_tag;nna(this.afvAdTag);this.afvInvideoAdTag=b.afv_invideo_ad_tag;this.Oa=(0,window.parseInt)(b.ad_age,
10);this.applyFadeOnMidrolls=!!b.apply_fade_on_midrolls&&(this.A||this.C)&&!this.Z.V;this.ob=b.cid;this.Ra=yO(b);this.excludedAds=b.excluded_ads;this.fadeInDurationMilliseconds=(0,window.parseInt)(b.fade_in_duration_milliseconds,10)||0;this.fadeInStartMilliseconds=(0,window.parseInt)(b.fade_in_start_milliseconds,10)||0;this.fadeOutDurationMilliseconds=(0,window.parseInt)(b.fade_out_duration_milliseconds,10)||0;this.fadeOutStartMilliseconds=(0,window.parseInt)(b.fade_out_start_milliseconds,10)||0;
this.Ta=(0,window.parseInt)(b.forced_skip_offset,10);this.forceAdType=b.force_ad_type;this.forceAdUrl=b.force_ad_url;this.sb=b.freewheel_ad_tag;this.gender=Sb(ona,function(a){return a==b.ad_gender});
this.ra=b.dbp;this.O=YV(b.afv)&&!this.B;this.V=this.ca&&this.C;this.ba=this.ca&&this.A&&!YV(b.no_afv_instream);this.da=YV(b.dclk);YV(b.gpt_migration);this.fa=YV(b.forced_ad);this.ga=1==(0,window.parseInt)(b.tpas_ad_type_id,10);this.uc=!!b.fqsf;this.ha=YV(b.invideo)&&!this.B;this.J=YV(b.mpu)&&!this.B;this.ka=!!b.pla;this.Vb=YV(b.shortform);this.M=YV(b.sffb);this.Za=b.ad_language_iso639_2;this.o=this.B||!this.Z.experiments.g("disable_client_side_midroll_freq_capping")?(0,window.parseInt)(b.midroll_freqcap,
10):-1;(0,window.isNaN)(this.o)&&(this.o=-1);this.midrollPrefetchSize=(0,window.parseInt)(b.midroll_prefetch_size,10)||0;this.Zb=b.pla_ad_tag;this.tagForChildDirected=YV(b.tag_for_child_directed);this.serverPrefetchedVast=b.server_prefetched_vast;this.surveyCreativeData=b.surveyCreativeData;this.Gb=this.ca&&this.M&&!this.O;this.Bb=this.O||this.Gb;this.kc=(0,window.parseInt)(b.ad_device,10);this.Na=b.tpas_video_id;this.Sa=b.tpas_partner_id;this.vmap=b.vmap;this.zc=this.Z.zc;this.Cc=b.post_ad_requests;
this.showContentThumbnail=!0;g.na(b.show_content_thumbnail)&&(this.showContentThumbnail=b.show_content_thumbnail);this.g=pna(b.serialized_ad_ux_config);this.K=(this.F=!this.A&&!this.C||this.Z.V||null==this.g||null==J(this.g,1)||null==J(Tc(this.g),5)?!1:!0)&&null!=J(Vc(Tc(this.g)),5)?(0,window.parseInt)(J(Vc(Tc(this.g)),5),10)/100:1;this.tb=this.F&&null!=J(Vc(Tc(this.g)),4)?(0,window.parseInt)(J(Vc(Tc(this.g)),4),10):null;this.zb=this.F&&null!=J(Vc(Tc(this.g)),8)?(0,window.parseInt)(J(Vc(Tc(this.g)),
8),10):null;this.Fa=this.F&&J(Vc(Tc(this.g)),3)?!0:!1;this.sa=this.F&&J(Vc(Tc(this.g)),6)?!0:!1;this.ua=this.F&&J(Vc(Tc(this.g)),2)?!0:!1;this.Ia=this.F&&J(Vc(Tc(this.g)),7)?!0:!1};
nna=function(a){if(a&&!E(g.F(a))&&(a=g.tg(a)[6]||null)){var b=null;xg(a,function(a,d){b||"channel"!=a||(b=d)})}};
pna=function(a){if(a)try{var b=g.jg(a);return new Rc(b)}catch(c){}return null};
SX=function(a,b){g.M.call(this);this.C=a;this.ue=new g.dm(this);g.N(this,this.ue);this.o=null;this.g=!1;this.ue.X(b,"companionImpression",this.B);this.ue.X(b,"companionClick",this.A)};
TX=function(a){g.M.call(this);this.g=a;this.o=window.NaN;this.C={};a=a.o;this.D=a.fadeInDurationMilliseconds;this.F=a.fadeInStartMilliseconds;this.A=a.fadeOutDurationMilliseconds;this.B=a.fadeOutStartMilliseconds;this.eB()};
UX=function(a,b){a.C[b]&&(g.nV(a.g.g,[a.C[b]],void 0),delete a.C[b])};
VX=function(a,b,c,d){0>=c||((0,window.isNaN)(a.o)||g.vE(a.o),c=(0,g.G)()+c,a.o=0==d?dR((0,g.A)(a.gC,a,b,c,100),0):dR((0,g.A)(a.fC,a,b,c,100),0))};
WX=function(a){TX.call(this,a)};
XX=function(a,b,c){g.M.call(this);this.g=a;this.D=b;this.B=c;this.o=-1;this.C=window.NaN;this.B&&0<this.g.o.o&&this.g.subscribe("endseeking",this.A,this)};
rna=function(a,b){YX(a);0<b&&(a.C=g.xE((0,g.A)(a.A,a),1E3*b))};
YX=function(a){g.vE(a.C);a.C=window.NaN};
$X=function(a,b){if(!a.B||!zX(b)&&!xX(b))return!1;var c=a.g.o.o;if(0>=c||0>=a.o)return!1;var d=(0,g.G)()/1E3,e=ZX(a,b)-a.g.g.getCurrentTime();0<e&&(d+=e);return d-a.o<=c};
ZX=function(a,b){return xX(b)?a.g.g.ia().lengthSeconds:WV(b.Tb)};
aY=function(a,b){g.M.call(this);this.K=this.g=null;this.O=[];this.P=window.NaN;this.Db=b;this.G=[];this.A={};this.D={};this.o=a;var c=a.o,d=!c.isLiveStream&&(0,g.Ek)(this.Db,function(a){return zX(a)||xX(a)});
this.C=new XX(this.o,this,d);this.B=c.applyFadeOnMidrolls?new TX(a):new WX(a);this.da=(0,g.Ek)(this.Db,function(a){return wX(a)})};
sna=function(a){a.G.length||(a.G=(0,g.re)(a.Db,function(a){return"unloaded"==a.B}),0==a.G.length?GV(a.o):(a.da||GV(a.o),bY(a)))};
bY=function(a){if(a.G.length){var b=a.G.shift();b.subscribe("adBreakComplete",a.sj,a);b.subscribe("adCompanionInitialized",a.Rr,a);MX(b)}};
tna=function(a,b){function c(a){return a&&5!=a.Tb.g}
var d=(0,g.db)(a.Db,b),e=g.qb(a.Db,d+1);return{previous:g.$a(g.qb(a.Db,0,d),c),next:g.$a(e,c)}};
cY=function(a,b,c){var d=GX(b);if(!(0,window.isNaN)(d)){var e={};e.priority=-2!=WV(b.Tb)?2:3;e.id=String(b.getId());e.visible=b.isVisible;d=a.B.YA(b,d);c=a.B.XA(b,c);c=new g.pJ(d,c,e);a.D[b.getId()]=c;FV(a.o,[c]);a.B.Gu(b)}};
dY=function(a,b){var c=b.getId();a.D[c]&&(UX(a.B,c),g.nV(a.o.g,[a.D[c]],void 0),delete a.D[c])};
gY=function(a,b){if(g.t(b)){var c=a.Oi(b);if(c)if(a.g==c&&!c.o&&c.isVisible)c.show();else{if(a.g){if(5==c.Tb.g){a.g.o?a.O.push(b):c.show();return}a.Lh(a.g)}if($X(a.C,c))a.g=null,c=a.D[c.getId()],c.visible||(c.visible=!0,FV(a.o,[c],1));else{5!=c.Tb.g&&(a.g=c);c.subscribe("adBreakComplete",a.Sk,a);c.subscribe("adCompanionInitialized",a.Rr,a);if(c.o){1!=c.Tb.g&&GP("video_to_ad",["apbs"]);var d=a.o;d.O=!0;d.B||eY(d);d=a.C.o;d={tfla:0<d?Math.floor((0,g.G)()/1E3-d):0};a.o.Ii.g(fY,"show_instream_ads",d)}a.B.hC(c);
c.show()}}}};
hY=function(a,b,c){aY.call(this,a,b);this.J=[];this.M=[];this.F=[];this.ca=c;this.ba=window.NaN;this.V=a.o.o;var d=!cW(a).experiments.g("disable_fetching_previous_nonadjacent_midrolls"),e=1E3*a.g.getCurrentTime(),d=d?null:cb(b,function(b){return a.g&&e>=GX(b)});
if(1<=c)for(c=0;c<b.length;c++){var f=b[c];if(kna(f)&&f!=d){var k=new EX(f.A,f.Aa,f.Tb,f.D,!0);b[c]=k;this.J.push(f)}}this.da||this.wj()};
iY=function(a){g.vE(a.ba);a.ba=window.NaN};
jY=function(a,b){aY.call(this,a,b);this.ba=a;this.ca=!0;this.J=[];this.ha=1;this.M=0};
kY=function(a){if(null==a.g&&0<a.J.length){var b=a.J[0];b.isVisible?(a.ca=a.F.isPeggedToLive(),a.ga=Math.ceil((0,g.G)()/1E3),b.subscribe("adBreakComplete",a.V,a),a.g=b,b.show()):a.V()}else null!=a.g&&a.M++};
una=function(a,b){this.J=a;this.D=b;this.G=(0,g.G)();this.C=0;this.g=a.o;this.B={};this.F=new Wma(a);var c=[];this.g.ga&&this.g.A&&c.push("4_2");this.g.da&&(this.g.A&&c.push("1_2"),this.g.C&&c.push("1_2_1"),this.g.ha&&c.push("1_1"),this.g.J&&c.push("1_3"));this.g.V&&c.push("2_2_1");this.g.ba&&c.push("2_2");this.g.O&&c.push("2_1");this.g.Bb&&c.push("2_3");this.g.ka&&c.push("14_14");this.o=c.join(",");this.A="";this.B.allowed=this.o;(c=this.g.excludedAds)&&(this.B.ex_ads=c)};
mY=function(a,b,c){g.M.call(this);this.o=a;this.B=b;this.fd=c;this.C=this.D=-1;this.g=lY(this.B.Re());a=this.B.Re();a.length&&(a=a[a.length-1],-1==a&&FV(this.o,[this.g[a]]));0<this.o.o.o&&this.o.subscribe("endseeking",this.A,this)};
vna=function(a,b){nY(a);0<b&&(a.C=g.xE((0,g.A)(a.A,a),1E3*b))};
nY=function(a){-1!=a.C&&(g.vE(a.C),a.C=-1)};
lY=function(a){if(!a.length)return{};for(var b={},c=0;c<a.length-1;c++){var d=a[c];var e=a[c+1];e=-1==e?0x8000000000000:1E3*e;b[d]=new g.pJ(-1==d?0x8000000000000:1E3*d,0x8000000000000==e?e:e-1,{id:String(d),visible:!0})}d=a[a.length-1];b[d]=new g.pJ(-1==d?0x8000000000000:1E3*d,0x8000000000000,{id:String(d),visible:!0});return b};
oY=function(){g.M.call(this)};
pY=function(a){if(!/^\d+?(:\d+){0,2}(\.\d+)?$/.test(a))return null;var b=0;(0,g.H)(a.split(":"),function(a){b=60*b+Math.abs((0,window.parseFloat)(a))});
return 1E3*b};
qY=function(a){g.M.call(this);this.g=a;this.o=null;this.A={};this.C={};a=a.o;this.D=a.fadeInDurationMilliseconds;this.J=a.fadeInStartMilliseconds;this.K=a.fadeOutDurationMilliseconds;this.B=a.fadeOutStartMilliseconds;this.M=1E3*this.g.g.ia().lengthSeconds;this.F=this.B+this.K;this.G=new g.DJ(this);g.N(this,this.G);this.G.T(this.g.g,"applicationplayerstatechange",this.rC)};
rY=function(a,b){return 0!=b&&-1!=b&&-2!=b&&0<b&&b<a.M};
wna=function(a){a=a.getAttribute("breakType");return!!a&&(0,g.Ek)(a.split(","),function(a){a=Pa(a);return"linear"==a})};
xna=function(a){var b=3;var c=!0;b=b?b:0;c=c?c:!1;var d=(0,window.parseFloat)(g.Na(a/1E3,2,b));a=Math.floor(d/60);var e=Math.floor(a/60);a%=60;b=g.Na(d%60,2,b);c=b=e||c?e+":"+g.Na(a,2)+":"+b:a+":"+b;return 1==c.split(":")[0].length?"0".concat(c):c};
zna=function(a,b){var c=Math.max(Math.abs(a.B),Math.abs(a.F));(0,g.H)(b,(0,g.A)(function(a){var d=(0,g.Ek)(b,function(b){return a!=b&&b>=a-c&&b<=a+c}),f=yna(this,a);
!d&&f&&(this.A[f]=a)},a));
return 0<g.Lb(a.A)};
yna=function(a,b){var c=1E3*Math.round((b+a.F)/1E3),d=b+a.B,e=b+a.J;return rY(a,b)&&rY(a,c)&&rY(a,d)&&rY(a,e)?c:null};
sY=function(a,b,c,d){0>=c||(d=0==d?a.qC:a.pC,c=(0,g.G)()+c,a.o=dR((0,g.A)(d,a,b,c,100),0))};
tY=function(a){g.M.call(this);this.fd=this.A=this.B=this.F=this.o=null;this.M=this.J=!1;this.g=a;this.G=this.ib=null;this.O={};this.P=new g.dm(this);this.C=new g.dm(this);this.K=new g.DJ(this);g.N(this,this.K);this.D=null};
Ana=function(a,b,c){a=a.cloneNode(!0);a.setAttribute("timeOffset",b);(0,g.H)(a.getElementsByTagName("VASTAdTagURI"),function(a){if("end"==b){var d="post";var f=-1;var k="postroll"}else d="mid",f=pY(b).toString(),k="midroll";var l={"[INDEX]":c.toString(),"[POSITION]":d,"[START]":f,"[GPTPOS]":k};a.textContent=a.textContent.replace(/\[[A-Z_]+\]/g,function(a){return l[a]||a})});
return a};
Bna=function(a,b,c){var d=g.nr(b);if(!d)return b;var e=g.ue(d);if(!e)return c?b:d;var f=g.$a(g.se(e),function(a){return"#1"==a.getAttribute("timeOffset")});
if(f){var k=g.$a(g.se(f),function(a){return"vmap:Extensions"==a.tagName}),l=k?g.se(k):[],l=g.$a(l,function(a){return"YTBreakTime"==a.getAttribute("type")}),k=(k=k.removeChild(l))?g.se(k):[],m=f,n=1;
(0,g.H)(k,function(a){a=a.getAttribute("timeOffset");a=Ana(f,a,n);n++;e.insertBefore(a,m.nextSibling);m=a});
e.removeChild(f)}k=a.D.qA(e);k||(g.Ke(a.D),a.D=new oY);return f||k||!c?c?or(d):d:b};
Cna=function(a){var b=bW(a.g.o,cW(a.g),dW(a.g));b.SF=!0;b.Su=!1;b.mA=10;b.es=a.D.iw();return b};
uY=function(a,b){var c=a.fd?a.fd.g:0,c={tfla:0<c?Math.floor((0,g.G)()/1E3-c):0};a.g.Ii.g(fY,b,c)};
wY=function(a,b){if(b){mW();var c=sW(a.g),d=dC(a.o);if(d){var e=d.Ue(),d=g.eb(UV,e)?new VV(e,d.Dc):new VV(e),e=wW(gq(b)),d=new gW(d,e.g,a.g,14==e.o?16:4);c.then(d.C,g.y,d)}}else a.g.o.J&&(a.B=new eX(a.g),vY(a,a.B),a.B.show())};
yY=function(a,b){b&&"adLoadError"==b.bc()&&(cW(a.g).experiments.g("enable_no_ads_ping_for_mpu_disable")&&!a.g.o.J&&a.oC(dC(a.o),0,2,{}),xY(a))};
zY=function(a){a.B&&(a.B.dispose(),a.B=null)};
AY=function(a){var b=fs(a);a=0<b.length?b.pop():Ur(a);a=Dna[a.toUpperCase()];return null!=a?a:0};
xY=function(a){a.J||(GV(a.g),a.J=!0)};
vY=function(a,b){b.subscribe("AD_LOGGING_EVENT",(0,g.A)(a.oC,a,dC(a.o),b.adType))};
BY=function(a){g.W.call(this,{H:"div",N:"ytp-ad-notification-container",L:["{{content}}"]});this.U=a;this.o=null;this.C=-1;this.A=new g.OV(this,250,!1,150);g.N(this,this.A);this.T(this.U,"adnotify",this.Tk);this.T(this.U,"discardadnotify",this.Vk)};
DY=function(a){CY=a&&a.data};
FY=function(a){EY=a&&a.data};
GY=function(){CY=null};
IY=function(a,b){EV.call(this,b);this.Wd="ad";this.app=a;this.o=this.A=this.D=null;this.O=this.ca=!1;this.B=this.ib=null;P.o=!0;P.J=!1;P.da=!1;P.ba=!0;P.K=!g.PE();P.F=0;var c=a.Z.experiments.o("sdk_wrapper_levels_allowed");!(0,window.isNaN)(c)&&0<c&&(P.O=c);HY(this)&&(P.A=!0);this.J=null;this.fa={};this.da={at:"0"};c=g.X(this.g).experiments;if(c.g("enable_midroll_notify")||c.g("enable_postroll_notify"))c=new BY(this.g),g.N(this,c),g.sV(this.g,c.element,5);this.G=new xW(this.g);g.sV(this.g,this.G.element,
5);this.P=this.F=null;this.V=-1;this.Ii=new XV(this);this.K=new g.DJ(this);g.N(this,this.K)};
dW=function(a){return a.app.o.g};
cW=function(a){return a.app.Z};
JX=function(a,b,c){if(a.D){a=a.D;c=c||{};var d=((0,g.G)()-a.G)/1E3;c.art=d;d=cW(a.J);d.sh&&(c.feature=d.Cc);c.ad_flags=a.g.adFlags;(d=a.g.ob)&&(c.cid=d);c.mt=a.D.getCurrentTime();(d=g.vG())&&(c.lact=d);(d=a.D.getDuration())&&(c.len=d);a.g.uc&&(c.fqsf=1);c.sdkv="3";c.ad_event=b;if(3==b||4==b)a.A=c.at;b=a.F;a:{if(7==c.ad_event&&(a=c.ad_error,21==a||30==a||54==a||32==a&&(1009==c.error_code||!c.ad_id))){a=!1;break a}a=0!=(c&&c.ad_event?AW(c.ad_event):0)?!0:!1}if(a){var e;c.at&&(e=c.at);var f;c.sst&&(f=
c.sst);"2_1"==e&&10==f&&(c.break_type=1);cW(b.g).experiments.g("fix_api_stats_ads_companion_backfill_break_type")&&(a=Vb(c,"trsp","0"),"2_3"==e&&10==f&&"0"!=a&&(c.break_type=1));e={};e.device=b.g.o.kc;e.ns=1;e.sdkv="h.3.0";e.ver="2.0";for(var k in c){f=e;a=k;var d=c[k],l=c;switch(a){case "trsp":f.slot_pos=d;break;case "break_type":g.eb(UV,Va(d))&&(f.m_pos=l.sst);case "format":case "ad_id":case "ad_v":case "ad_cpn":case "ad_mt":case "aqi":case "ad_sys":f[a]=d;break;case "ad_len":f[a]=Math.round(1E3*
d);break;case "ad_error":f.error_code=Xma(d);break;case "error_code":f.ima_error=d;case "error_message":f.error_msg=d;break;case "ad_event":f.event=AW(d);break;case "ck_xy":a=d.split("x"),2==a.length&&(f.i_x=a[0],f.i_y=a[1])}}f=LW(b.g);k=dW(b.g);e.cpn=k.clientPlaybackNonce;e.content_v=k.videoId;c.at&&c.at.match(/\d+_2.*/g)?(a=b.g.A,e.mt=null!=a&&null!=a.g?1E3*WV(a.g.Tb):0):e.mt=Math.round(1E3*f.getCurrentTime());e.ei=k.eventId;e.lact=g.vG();e.vol=Math.round(b.g.app.J.getVolume());e.vis=b.g.g.un();
a=JY(b.g);e.p_w=a.width;e.p_h=a.height;e.rt=(0,g.G)();if(f=(f=f.o?f.o.pa():null)&&g.Sd(f)===window.document?g.nh(f):null)e.pv_h=f.getHeight(),e.pv_w=f.Eb();2==(c&&c.ad_event?AW(c.ad_event):0)&&k.adSafetyReason&&(e.asr=k.adSafetyReason);c=am(e);k=new g.Ll(cW(b.g).baseYtUrl+"api/stats/ads");Ql(k,c);g.ZE(k.toString())}}};
KY=function(a,b,c){c=c||{};c.ad_error=b;JX(a,7,c)};
LY=function(a,b,c){a.app.J.ya(b,c)};
MY=function(a){if(!a.ca||a.app.Z.experiments.g("enable_html5_midroll_tsla_update"))g.ZE(cW(a).baseYtUrl+"mac_204?action_fcts=1"),a.ca=!a.app.Z.experiments.g("enable_html5_midroll_tsla_update")};
NY=function(a){return a.A instanceof jY?a.A:null};
PW=function(a){return g.XU(a.app).o};
LW=function(a){if(g.OY(a)){if(!a.F){var b=g.Wb(cW(a).K);cW(a).experiments.g("legacy_autoplay_flag")&&(b.autoplay="1");b.eventid=dW(a).eventId;b.content_v=dW(a).videoId;b=new OO(b);b.g="adunit";a.F=new TT(b,2,new PP(b,""),a.app.F,(0,g.A)(a.app.K.Y,a.app.K),(0,g.A)(a.app.mj,a.app))}return a.F}return PY(a.g.app,2)};
g.OY=function(a){return a.app.Z.experiments.g("legacy_ads_videoplayer")};
SY=function(a){var b=g.we(yW(a.G),g.Ge());if(g.OY(a)){if(!a.F||a.F!=g.XU(a.app))return;var c=a.app;a.F!=c.o?QY(c,c.o):RY(c)}else if(c=a.g,2==VU(c.app)){var c=c.app,d=g.XU(c,2);d&&(d!=c.o?QY(c,c.o):RY(c))}c=g.X(a.g);"3"!=c.C||JO(c)||(c=g.ZU(a.g),c.F=!1,NW(c));b&&a.g.getRootNode().focus()};
JY=function(a){return a.o.G?(a=a.app.F.Ya(),new g.Ng(0,0,a.width,a.height)):g.vh(a.getRootNode())};
TY=function(a,b){a.je("bd");var c=a.o;var d=c.midrollPrefetchSize;c=c.isLiveStream?new jY(a,b):0<d?new hY(a,b,d):new aY(a,b);a.A=c;sna(a.A)};
WY=function(a){UY(a);var b=a.app;g.xE(function(){VY(b)},0)};
eY=function(a){var b=a.app;g.xE(function(){XY(b)},0)};
ZY=function(a,b){var c=a.app;g.xE(function(){YY(c,b)},0)};
UY=function(a){a.O=!1;var b=g.XU(a.app,2);b&&a.app.Z.G.remove(b.g.videoId)};
RW=function(a,b){switch(b){case 1:a.V=1;LY(a,"onAdStart");break;case 0:a.V=0,LY(a,"onAdEnd")}};
QW=function(a,b,c){c&&LY(a,"onAdInfoChange",c);a=a.app;1==b&&(a.G.o("vr"),a.ga||(a.ga=kP(a.wz,a)),NU(a.C),QP(a.G,$Y(a)));c=a.Z;("leanback"==c.g&&c.Fb||g.IO(c))&&a.g.ya("onAdStateChange",b)};
aZ=function(a){return!!(a.o.M&&a.A&&1<a.A.Db.length)};
HY=function(a){a=a.app.Z;return MO(a)&&!g.IO(a)&&"desktop-polymer"==a.o};
pW=function(a,b){b.contentVideoId||(b.contentVideoId=dW(a).videoId);LY(a,"updatekevlarcompanion",b)};
bZ=function(a,b,c){g.M.call(this);window._exportCheck=g.Ba;this.da=b;this.ga=c;this.F=this.O=this.G=this.A=this.P=this.V=this.M=this.B=this.J=this.g=null;this.ba={};this.ca={};this.fa=null;this.U=a;this.D=this.C=this.K=this.o=null};
g.cZ=function(a){var b=g.X(a.U);if("leanback"==b.g||b.zc||!b.uc&&!b.Ra)return!1;var c=a.U.Wa();if(2==c)return!1;if(3==c)return b.experiments.g("desktop_enable_autoplay");if(b.experiments.g("allow_live_autoplay"))return!0;a=a.U.ia();return b.zi&&!a.Xf?!1:!!a&&!a.Ca};
eZ=function(a,b,c,d){try{var e="ytmod.player."+b,f=g.x(e);if(d){if(f){var k=a.da,l=f._version;if(l&&l!=k)g.v(e,null,void 0);else return f._version=k,new f(a.U)}"creatorendscreen"==b?dZ(a,"annotations_module",c):dZ(a,b,c)}else g.pV(a.U,b)}catch(m){g.pV(a.U,b),g.qE(m)}return null};
fZ=function(a,b){a.g&&(b||a.g.Ad())&&(g.Ke(a.g),a.g=null);a.J&&(b||a.J.Ad())&&(g.Ke(a.J),a.J=null);a.B&&(b||a.B.Ad())&&(g.Ke(a.B),a.B=null);a.M&&(b||a.M.Ad())&&(g.Ke(a.M),a.M=null);a.V&&(b||a.V.Ad())&&(g.Ke(a.V),a.V=null);a.P&&(b||a.P.Ad())&&(g.Ke(a.P),a.P=null);a.A&&(b||a.A.Ad())&&(g.Ke(a.A),a.A=null);a.G&&(b||a.G.Ad())&&(g.Ke(a.G),a.G=null);a.O&&(b||a.O.Ad())&&(g.Ke(a.O),a.O=null);a.F&&(b||a.F.Ad())&&(g.Ke(a.F),a.F=null);a.K&&(b||a.K.Ad())&&(g.Ke(a.K),a.K=null);a.C&&(b||a.C.Ad())&&(g.Ke(a.C),a.C=
null);a.o&&(b||a.o.Ad())&&(g.Ke(a.o),a.o=null)};
g.WU=function(a){return g.X(a.U).tb?a.K:null};
dZ=function(a,b,c){if(a.da){for(var d=a.da+b+".js",e=window.document.getElementsByTagName("SCRIPT"),f=!1,k,l=0;l<e.length;l++){var m=e[l];m.src==d&&(k=m)}k||(k=g.ie("SCRIPT"),g.X(a.U).experiments.g("enable_player_async_scripts")&&(k.async=!0),f=!0);var n=(0,g.A)(function(){this.na()||c.call(this)},a),q=(0,g.A)(function(){this.na()||g.pV(this.U,b)},a);
k.onload=g.ya(function(a){yf(n);a&&a()},k.onload);
k.onerror=g.ya(function(a){yf(q);a&&a()},k.onerror);
k.onreadystatechange=g.ya(function(a){switch(k.readyState){case "loaded":case "complete":yf(n,this)}a&&a()},k.onreadystatechange);
f&&((e=g.X(a.U).Bh)&&k.setAttribute("nonce",e),k.src=d,d=window.document.getElementsByTagName("HEAD")[0]||window.document.body,d.insertBefore(k,d.firstChild),g.Je(a,function(){k.parentNode&&k.parentNode.removeChild(k);g.v("ytmod.player."+b,null,void 0);"annotations_module"==b&&g.v("ytmod.player.creatorendscreen",null,void 0)}))}};
gZ=function(a){var b=a.Z,c=["html5-video-player"];b.F&&c.push("ytp-dni");g.W.call(this,{H:"div",ea:c,R:{tabindex:-1,id:a.ca.attrs.id},L:[{H:"div",N:"html5-video-container",R:{"data-layer":0}}]});g.rF(this.element,"version",a.ca.assets.js);this.app=a;this.containerElement=this.xa["html5-video-container"];this.V=!!this.containerElement;this.B=new g.Ng(0,0,0,0);this.o=null;this.D=new g.Ng(0,0,0,0);this.J=this.O=this.M=window.NaN;this.F=!1;this.G=window.NaN;this.K=!1;this.C=null;this.addEventListener=
(0,g.A)(this.element.addEventListener,this.element);this.removeEventListener=(0,g.A)(this.element.removeEventListener,this.element);this.dispatchEvent=function(){};
VO(b)&&"blazer"!=b.o&&"mweb-polymer"!=b.o&&window.matchMedia&&(this.P="desktop-polymer"==b.o?[{query:window.matchMedia("(max-width: 656px)"),size:new g.Pd(426,240)},{query:window.matchMedia("(max-width: 856px)"),size:new g.Pd(640,360)},{query:window.matchMedia("(max-width: 999px)"),size:new g.Pd(854,480)},{query:window.matchMedia("(min-width: 1720px) and (min-height: 980px)"),size:new g.Pd(1280,720)},{query:window.matchMedia("(min-width: 1294px) and (min-height: 630px)"),size:new g.Pd(854,480)},{query:window.matchMedia("(min-width: 1000px)"),
size:new g.Pd(640,360)}]:[{query:window.matchMedia("(max-width: 656px)"),size:new g.Pd(426,240)},{query:window.matchMedia("(min-width: 1720px) and (min-height: 980px)"),size:new g.Pd(1280,720)},{query:window.matchMedia("(min-width: 1294px) and (min-height: 630px)"),size:new g.Pd(854,480)},{query:window.matchMedia("(min-width: 657px)"),size:new g.Pd(640,360)}]);this.A=null;g.QD({YTP_ADVERTISEMENT:"Advertisement",YTP_AD_BADGE:"Ad",YTP_AD_NOTIFICATION:"Ad in $X_SECONDSs",YTP_AD_POD_POSITION:"$AD_INDEX of $ADS_COUNT",
YTP_AIRPLAY:"AirPlay",YTP_AUDIO_TRACK_TITLE:"Audio track",YTP_AUTO:"Auto",YTP_AUTO_WITH_QUALITY_2:"Auto ($VIDEO_QUALITY)",YTP_CAN_SKIP_AD_SOON:"You can skip to video in $REMAINING_SECONDS",YTP_CARDS_BUTTON_ARIA_LABEL:"Show cards",YTP_CHANGE_QUALITY_WITH_QUALITY_2:"Change quality ($VIDEO_QUALITY)",YTP_COPY_DEBUG_INFO:"Copy debug info",YTP_COPY_VIDEO_URL:"Copy video URL",YTP_COPY_VIDEO_URL_AT_TIME:"Copy video URL at current time",YTP_DRAWER_CLOSE_BUTTON_ARIA_LABEL:"Hide cards",YTP_DRAWER_HEADER_TEXT_2:"More info",
YTP_DRAWER_POLL_PERCENT:"$PERCENT%",YTP_DRAWER_POLL_SIGNIN_TITLE:"Want to vote?",YTP_DRAWER_POLL_TITLE_ARIA_LABEL:"$POLL_TITLE - Sign in to vote.",YTP_GET_DEBUG_INFO:"Get debug info",YTP_GET_VIDEO_URL:"Get video URL",YTP_GET_VIDEO_URL_AT_TIME:"Get video URL at current time",YTP_GET_EMBED:"Get embed code",YTP_DECREASE_PLAYBACK_SPEED:"Decrease playback speed",YTP_PLAYBACK_SPEED_CHANGED:"Speed is $RATE",YTP_DEFAULT_VIEW:"Default view",YTP_EMBED_COPY:"Copy embed code",YTP_ERROR_GENERIC_WITHOUT_LINK:"An error occurred. Please try again later.",
YTP_ERROR_GENERIC_WITH_LINK_AND_CPN:"An error occurred. Please try again later. (Playback ID: $CPN) $BEGIN_LINKLearn More$END_LINK",YTP_EXIT_FULLSCREEN:"Exit full screen",YTP_FULLSCREEN_GENERIC_ERROR:"Full screen is unavailable. $BEGIN_LINKLearn More$END_LINK",YTP_FULLSCREEN_UNSUPPORTED_ERROR:"Your browser doesn't support full screen. $BEGIN_LINKLearn More$END_LINK",YTP_VOLUME_UNSUPPORTED_ERROR:"Your browser doesn't support changing the volume. $BEGIN_LINKLearn More$END_LINK",YTP_FEATURED:"Featured",
YTP_FULLSCREEN:"Full screen",YTP_INCREASE_PLAYBACK_SPEED:"Increase playback speed",YTP_INVIDEO_PROMOTION_ARIA_LABEL:"Promotion",YTP_GOTO_LIVE_TOOLTIP:"Skip ahead to live broadcast.",YTP_KEYBOARD_SHORTCUTS:"Keyboard shortcuts",YTP_LIVE:"Live",YTP_LIVE_NOW:"LIVE NOW",YTP_LOOP:"Loop",YTP_MIX:"Mix",YTP_MORE:"More",YTP_MORE_VIDEOS:"More videos",YTP_MDX_TITLE:"Play on",YTP_MDX_TOOLTIP:"Play on TV",YTP_MDX_MY_COMPUTER:"This computer",YTP_MDX_CAST_SELECTOR:"Cast...",YTP_MUTE:"Mute",YTP_NEXT:"Next",YTP_NEXT_VIDEO_IN:"Next video in $TIME_LEFT",
YTP_NORMAL_SPEED:"Normal",YTP_ON:"On",YTP_OFF:"Off",YTP_OPTIONS:"Options",YTP_PLAY_ALL:"Play all",YTP_PLAY_PAUSE:"Toggle play/pause",YTP_PREVIOUS:"Previous",YTP_PLAYBACK_STALLED_AT_START:"If playback doesn't begin shortly, try restarting your device.",YTP_MISSING_FORMATS:"Missing options?",YTP_PLAYLIST:"Playlist",YTP_PLAYLIST_UP_NEXT:"Up Next",YTP_QUALITY_TITLE:"Quality",YTP_SUGGESTED_VIDEOS:"Suggested videos",YTP_REPLAY:"Replay",YTP_TROUBLESHOOT_ISSUE:"Troubleshoot playback issue",YTP_SEEK_BACK:"Seek back 10 seconds",
YTP_SEEK_FORWARD:"Seek forward 10 seconds",YTP_SEEK_PERCENT:"Seek to 0%-90%.",YTP_SETTINGS:"Settings",YTP_SHARE:"Share",YTP_SHARE_LINK:"Share link",YTP_SHARE_WITH_PLAYLIST_2:"Include playlist",YTP_SHOW_VIDEO_INFO:"Stats for nerds",YTP_SIGN_IN:"Sign in",YTP_SPHERICAL_CONTROL:"Spherical video control. Use the arrow keys to pan the video.",YTP_SKIP_AD:"Skip Ad",YTP_SPEED_TITLE:"Speed",YTP_ST_COLLAPSE:"Collapse",YTP_ST_EXPAND:"Expand",YTP_SUBSCRIBE:"Subscribe",YTP_SUBSCRIBED:"Subscribed",YTP_SUBTITLES:"Subtitles/CC",
YTP_SUBTITLES_TOOLTIP:"Subtitles/closed captions",YTP_SUBTITLES_OFF:"Subtitles/closed captions off",YTP_SUBTITLES_ON:"Subtitles/closed captions on",YTP_TAP_TO_UNMUTE:"Tap to unmute",YTP_THREED_SHORT:"3D",YTP_THREED_VIEWMODE_2D:"2D",YTP_THREED_VIEWMODE_ANAGLYPH:"Anaglyph",YTP_THEATER_MODE:"Theater mode",YTP_TOGGLE_FULLSCREEN:"Toggle fullscreen.",YTP_TOGGLE_MUTE:"Toggle mute",YTP_UNMUTE:"Unmute",YTP_UNSUBSCRIBE:"Unsubscribe",YTP_URL_NAVIGATE:"Watch on YouTube.com",YTP_URL_NAVIGATE_TO:"Watch on $WEBSITE",
YTP_WATCH_ALL:"Watch entire video",YTP_WATCH_LATER:"Watch Later",YTP_WATCH_LATER_2:"Watch later",YTP_WATCH_LATER_AS_2:"Watch later as $USER_NAME",YTP_ADDED_TO_WATCH_LATER_AS:"Added as $USER_NAME",YTP_WEBGL_3D_ANAGLYPH:"Anaglyph",YTP_WEBGL_3D_2D:"2D",YTP_SUBSCRIBE_AS:"Subscribe as $USER_NAME",YTP_LIKE_AS:"Like as $USER_NAME",YTP_DISLIKE_AS:"Dislike as $USER_NAME",YTP_WATCH_NEXT:"Watch next",YTP_PLAY:"Play",YTP_WATERMARK:"Watermark",YTP_ERROR_STREAMING_UNAVAILABLE:"Video playback is unavailable right now because this video has been downloaded for offline viewing.",
YTP_ERROR_LICENSE:"Sorry, there was an error licensing this video.",YTP_ERROR_VIDEO_NOT_FOUND:"This video can not be found.",YTP_ERROR_ALREADY_PINNED_ON_A_DEVICE:"This video has already been downloaded on the maximum number of devices allowed by the copyright holder. Before you can play the video here, it needs to be unpinned on another device.",YTP_ERROR_CANNOT_ACTIVATE_RENTAL:"An error occurred when activating your rental. Please reload this page or try again later.",YTP_ERROR_PURCHASE_NOT_FOUND:"This video requires payment.",
YTP_ERROR_PURCHASE_REFUNDED:"This video's purchase has been refunded.",YTP_ERROR_STOPPED_BY_ANOTHER_PLAYBACK:"Your account is playing this video in another location. Please reload this page to resume watching.",YTP_ERROR_TOO_MANY_STREAMS_PER_USER:"Playback stopped because too many videos belonging to the same account are playing.",YTP_ERROR_TOO_MANY_STREAMS_PER_ENTITLEMENT:"Playback stopped because this video has been played on too many devices.",YTP_ERROR_STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED:"Too many devices/IP addresses have been used over the 24 hour period.",
YTP_ERROR_UNUSUAL_ACTIVITY:"Due to unusual account activity, this video is not currently available.",YTP_ERROR_STREAM_LICENSE_NOT_FOUND:"Video playback interrupted. Please try again.",YTP_ERROR_NOT_SIGNED_IN:"Please sign in to resume watching.",YTP_CLOSE:"Close",YTP_EXPAND:"Expand",YTP_ANNOTATIONS:"Annotations",YTP_DONE:"Done",YTP_SHARE_THIS_PLAYLIST:"Share this playlist",YTP_SEEK_SLIDER:"Seek slider",YTP_PAUSE:"Pause",YTP_AUTOPLAY:"Autoplay",YTP_AUTOPLAY_COUNTDOWN_2:"Next video in $SECONDS_LEFT",
YTP_AUTOPLAY_NEXT:"Play next video",YTP_AUTOPLAY_PAUSED:"Busy? We've paused autoplay.",YTP_AUTOPLAY_PAUSED_2:"Autoplay is paused.",YTP_AUTOPLAY_PAUSED_3:"Autoplay is paused",YTP_AUTOPLAY_CANCEL:"Cancel autoplay",YTP_WATCH_VIDEO_OR_PLAYLIST:"Watch $TITLE",YTP_CANCEL:"Cancel",YTP_ON_GOOGLE_PLUS:"On Google+",YTP_STILL_THERE:"Are you still there? If so, please click the button below to continue watching the playlist.",YTP_DISMISS:"OK",YTP_RESET:"Reset",YTP_STOP:"Stop live playback",YTP_LIKE:"Like",YTP_DISLIKE:"Dislike",
YTP_SCREENREADER_VOLUME_SETTING:"volume",YTP_SCREENREADER_VOLUME_MUTED:"muted",YTP_SCREENREADER_VOLUME_MUTE:"mute",YTP_SCREENREADER_VOLUME_UNMUTE:"unmute",YTP_SCREENREADER_CONTROL_TOGGLE:"toggle",YTP_SAMPLE_SUBTITLES:"Captions look like this",YTP_HTML5_PROTECTED_FLASH_FALLBACK:"To watch this video, install the latest Flash Player, or try a different browser. $BEGIN_LINKGet Flash Player$END_LINK.",YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK:"This video format is not supported.",YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK:"Your browser does not currently recognize any of the video formats available. $BEGIN_LINKClick here to visit our frequently asked questions about HTML5 video.$END_LINK",
YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK_FLASH:"The Adobe Flash Player is required for video playback. $BEGIN_LINKGet the latest Flash Player$END_LINK.",YTP_ERROR_CAST_SESSION_DEVICE_MISMATCHED:"The device in the cast session doesn't match the requested one.",YTP_ERROR_CAST_SESSION_VIDEO_MISMATCHED:"The video in the cast session doesn't match the requested one.",YTP_ERROR_CAST_TOKEN_EXPIRED:"Cast session was expired. Please refresh.",YTP_ERROR_CAST_TOKEN_FAILED:"Cast session not available. Please refresh or try again later.",
YTP_ERROR_CAST_TOKEN_MALFORMED:"Invalid cast session. Please refresh or try again later.",YTP_ERROR_GEO_FAILURE:"This video isn't available in your country.",YTP_ERROR_INVALID_DRM_MESSAGE:"The DRM system specific message is invalid.",YTP_ERROR_RENTAL_EXPIRED:"This video's rental has expired.",YTP_ERROR_RETRYABLE_ERROR:"There was a temporary server error. Please try again later.",YTP_ERROR_SERVER_ERROR:"There was an internal server error. Please try again later.",YTP_ERROR_STREAMING_NOT_ALLOWED:"Playback not allowed because this video is pinned on another device.",
YTP_ERROR_UNSUPPORTED_DEVICE:"Playback isn't supported on this device.",YTP_ERROR_VIDEO_FORBIDDEN:"Access to this video is forbidden.",YTP_ERROR_FORMAT_UNAVALIABLE:"This video isn't avaliable at the selected quality. Please try again later.",YTP_MDX_STATUS_CONNECTED_2:"Connected to $RECEIVER_NAME",YTP_MDX_STATUS_ERROR_2:"Error on $RECEIVER_NAME",YTP_MDX_STATUS_PLAYING_2:"Playing on $RECEIVER_NAME",YTP_MDX_PLAYER_ERROR:"This video is not available for remote playback.",YTP_MDX_PLAYER_RECONNECT_TIME:"Please check your Internet connection. Retrying in $FORMATTED_TIME...",
YTP_MDX_PLAYER_RECONNECT_BUTTON:"Reconnect",YTP_DEVICE_FALLBACK:"Sorry, this video is not available on this device.",YTP_AD_INTERRUPT_MESSAGE:"Your video will play after this ad.",YTP_VISIT_ADVERTISERS_SITE:"Visit advertiser's site",YTP_PROGRESS_LABEL_2:"$PLAY_PROGRESS of $DURATION",YTP_PLAYLIST_NAME:"Playlist: $PLAYLIST_NAME",YTP_PLAYLIST_POSITION:"$CURRENT_POSITION/$PLAYLIST_LENGTH",YTP_SHARE_PANEL_ERROR:"An error occurred while retrieving sharing information. Please try again later.",YTP_PLAYLIST_AUTHOR_AND_POSITION:"by $AUTHOR \u2022 $CURRENT_POSITION/$PLAYLIST_LENGTH",
YTP_PLAYER_NORMAL:"YouTube Video Player",YTP_PLAYER_FULLSCREEN:"YouTube Video Player in Fullscreen",YTP_SPONSORED:"Sponsored",YTP_SPONSORED_PRODUCT_INFO:"You are seeing this product because we think it is relevant to the video. Google may be compensated by the merchant.",YTP_SPONSORED_PRODUCT_BADGE:"Shop",YTP_AD_SETTINGS_INFO:"Visit Google's $BEGIN_FORMATAd Settings$END_FORMAT to learn more about how ads are targeted or to opt out of personalized ads.",YTP_PIP:"Picture in Picture",YTP_AUTO_TRANSLATE:"Auto-translate",
YTP_SWITCH_CAMERA:"Switch camera",YTP_MULTICAM_INDEX:"Viewing $CAMERA_INDEX of $CAMERA_COUNT",YTP_MORE_CAMERAS_AVAILABLE:"More cameras available",YTP_VIDEO_SUBTITLES_OVERRIDE:"Video Override",YTP_VIDEO_SUBTITLES_OVERRIDE_DESC:"Allow for a different caption style if specified by the video."});Ena(this);this.T(a.g,"mutedautoplaychange",this.oT)};
Ena=function(a){var b=a.app.g,c=(0,g.A)(a.tH,a),d=(0,g.A)(a.nT,a),e=(0,g.A)(a.mT,a),f=(0,g.A)(a.OG,a);b.addEventListener("initializingmode",c);b.addEventListener("videoplayerreset",d);b.addEventListener("videodatachange",e);b.addEventListener("presentingplayerstatechange",f);g.Je(a,function(){b.removeEventListener("initializingmode",c);b.removeEventListener("videoplayerreset",d);b.removeEventListener("videodatachange",e);b.removeEventListener("presentingplayerstatechange",f)})};
Gna=function(a,b){a.o=b;a.F=!1;if(!a.o.parentNode)try{oe(a.containerElement,a.o,0)}catch(c){throw Error("videoElement_: "+!!a.o+", containerElement: "+!!a.containerElement+", containerElement.childNodes: "+!(!a.containerElement||!a.containerElement.childNodes)+", containerInitiallyTruthy: "+a.V+", isDisposed: "+a.na());}a.A&&(a.A.disconnect(),a.A=null);!a.app.Z.experiments.g("no_detect_bad_extensions2")&&window.MutationObserver&&(a.A=new window.MutationObserver((0,g.A)(function(a){for(var b=0;b<a.length;b++){var c=
a[b];"style"==c.attributeName&&"100%"==c.target.style.height&&(window.console.warn("Detected an extension setting the video size to an invalid height, which hides video playback. Restoring the original height..."),this.D=new g.Ng(0,0,0,0),hZ(this))}},a)),a.A.observe(a.o,{attributes:!0}));
a.D=new g.Ng(0,0,0,0);hZ(a);NW(a);Fna(a)};
Fna=function(a){g.R(a.o,"video-stream");g.R(a.o,"html5-main-video");var b=a.app.Z;b.Bb&&a.o.setAttribute("data-no-fullscreen",!0);b.Fg&&(a.o.setAttribute("webkit-playsinline",""),a.o.setAttribute("playsinline",""));b.Vm&&a.o&&a.T(a.o,"click",a.o.play,a.o)};
iZ=function(a,b){if(a.o){var c=a.app.Z;WN&&(a.o.setAttribute("x-webkit-airplay","allow"),b.title?a.o.setAttribute("title",b.title):a.o.removeAttribute("title"));a.o.setAttribute("controlslist","nodownload");c.CR&&b.videoId&&(a.o.poster=b.ac(c,"default.jpg"))}c=g.IQ(b,"yt:bgcolor");a.containerElement.style.backgroundColor=c?c:"";a.M=wO(g.IQ(b,"yt:stretch"));a.O=wO(g.IQ(b,"yt:crop"),!0);a.app.Z.experiments.g("use_legacy_crop_resize")||a.fg()};
g.kZ=function(a){var b=a.app.Z.experiments.g("html5_aspect_from_adaptive_format");if(b){var c=g.XU(a.app);if((c=c?c.g:null)&&c.jb&&c.jb.g)return b=c.jb.videoInfos[0],jZ(b.video.width,b.video.height)}return(a=a.o)?jZ(a.videoWidth,a.videoHeight):b?16/9:window.NaN};
g.mZ=function(a,b){var c=a.Ya(),d=lZ(a,c,g.kZ(a),b);return new g.Ng((c.width-d.width)/2,(c.height-d.height)/2,d.width,d.height)};
lZ=function(a,b,c,d){(0,window.isNaN)(a.M)||(c=a.M);var e=c;(0,window.isNaN)(a.J)?(0,window.isNaN)(a.O)||(e=a.O):e=a.J;a=jZ(b.width,b.height);(0,window.isFinite)(e)||(e=Math.max(c,a));var f;e>a?f={width:b.width,height:b.width/e,aspectRatio:e}:e<a?f={width:b.height*e,height:b.height,aspectRatio:e}:f={width:b.width,height:b.height,aspectRatio:a};d||(0,window.isNaN)(c)||(c>e?f.width=f.height*c:c<e&&(f.height=f.width/c),f.aspectRatio=c);return f};
jZ=function(a,b){return 1>Math.abs(nZ*b-a)||1>Math.abs(nZ/a-b)?nZ:a/b};
oZ=function(a){return 1==a.app.O?!1:(a=g.YU(a.app.g))&&!g.V(a,2)&&!eK(a)};
NW=function(a){var b="3"==a.app.Z.C&&!a.F&&oZ(a)&&!a.app.ka;a.o.controls=b;a.o.tabIndex=b?0:-1};
hZ=function(a){var b=g.kZ(a),c=a.Ya(),d=1,e=!1,f=lZ(a,c,b),k=XE();if(oZ(a)){var l=(0,window.isNaN)(b);WN&&!g.kc(601)?b=f.aspectRatio:l=l||"3"==a.app.Z.C;l?l=new g.Ng(0,0,c.width,c.height):(d=f.aspectRatio/b,l=new g.Ng((c.width-f.width/d)/2,(c.height-f.height)/2,f.width/d,f.height),1==d&&ni&&(b=l.width-c.height*b,0<b&&(l.width+=b,l.height+=b)));k&&(a.o.style.display="");a.K=!0}else b=-c.height,WN?b*=window.devicePixelRatio:g.ZO&&(b-=window.screen.height),l=new g.Ng(0,b,c.width,c.height),k&&(a.o.style.display=
"none"),a.K=!1;g.Qg(a.D,l)||(a.D=l,g.IO(a.app.Z)?(a.o.style.setProperty("width",l.width+"px","important"),a.o.style.setProperty("height",l.height+"px","important")):g.th(a.o,g.Sg(l)),g.ih(a.o,g.Tg(l)),e=!0);c=new g.Ng((c.width-f.width)/2,(c.height-f.height)/2,f.width,f.height);g.Qg(a.B,c)||(a.B=c,e=!0);g.bh(a.o,"transform",1==d?"":"scaleX("+d+")");return e};
pZ=function(a,b,c,d){g.RF.call(this);this.A=a;this.V=(0,g.A)(b,null);this.o=0;this.F=!1;this.C=new g.Md(window.NaN,window.NaN);this.g=new g.DJ(this);g.N(this,this.g);b=d?4E3:3E3;this.J=new g.rt(g.ya(this.qc,1,!1),b,this);g.N(this,this.J);this.K=new g.rt(g.ya(this.qc,2,!1),b,this);g.N(this,this.K);this.O=new g.rt(g.ya(this.qc,512,!1),0,this);g.N(this,this.O);this.P=c&&0<c.Eh.length?5E3:3E3;d||(this.B=this.g.T(a,"mouseover",this.Gt),this.g.T(a,"mousemove",this.jT),this.g.T(a,"mouseleave",this.VL));
g.dh?this.g.T(a,"keypress",this.zI):this.g.T(a,"focusin",this.dG);this.D=this.g.T(a,"mousedown",this.uC);this.G=this.g.T(a,"touchstart",this.wC,void 0,!0);this.ca=null;this.qc(640,!0)};
qZ=function(a){a.qc(4,!1);a.M&&(a.g.za(a.M),a.M=null,a.B=a.g.T(a.A,"mouseover",a.Gt));a.B&&(a.g.za(a.B),a.B=a.g.T(a.A,"mouseover",a.Gt))};
sZ=function(a,b){g.W.call(this,{H:"canvas",N:"ytp-tv-static"});this.A=this.element.getContext("2d");this.height=this.width=window.NaN;this.K=null;this.G=this.J=this.C=this.B=0;this.D=-75;this.o=new g.ot(this.M,void 0,this);g.N(this,this.o);this.F=new g.rt(this.o.qk,75,this.o);g.N(this,this.F);rZ(this,a,b)};
tZ=function(a){for(var b=Math.floor(.6*a),c=b;c<a;++c){for(var d=!1,e=2;e<Math.sqrt(c);e++){if(!(c%e)){d=!1;break}d=!0}if(d)return c}return b};
rZ=function(a,b,c){if(b&&c){a.width=a.element.width=b;a.height=a.element.height=c;var d=g.ie("CANVAS");d.width=b;d.height=c;for(var e=d.getContext("2d"),f=e.getImageData(0,0,b,c),k=b*c,l=0;l<k;l++){var m=4*l;f.data[m]=f.data[m+1]=f.data[m+2]=Math.floor(35*Math.random());f.data[m+3]=255}e.putImageData(f,0,0);a.K=d;a.J=tZ(b);a.G=tZ(c/10);a.A.scale(1.5,1.5);a.A.fillStyle="rgba(255, 255, 255, 0.02)"}};
vZ=function(a){g.W.call(this,{H:"div",ea:["ytp-error"],R:{role:"alert"},L:[{H:"div",N:"ytp-error-content",L:[{H:"div",N:"ytp-error-content-wrap",L:["{{content}}"]}]}]});this.o=a;this.B=[];try{this.A=new sZ(1,1),g.N(this,this.A),this.A.Ja(this.element,0)}catch(b){}uZ(this,g.ZU(this.o).Ya())};
uZ=function(a,b){wZ(a,function(a){rZ(a,b.width,b.height)})};
wZ=function(a,b){if(a.A)try{b.call(a,a.A)}catch(c){a.A.dispose(),a.A=null}};
xZ=function(a,b,c,d,e){e||(e=g.X(a.o).A);a=d?{CPN:a.o.ia().clientPlaybackNonce}:null;b=g.T(b,a).split(/\$(BEGIN|END)_LINK/);return{H:"span",L:[b[0],{H:"br"},{H:"a",R:{href:c,target:e?"_blank":null},L:[b[2]]},b[4]]}};
Hna=function(a,b,c){yZ("add_to_watch_later_list",a,b,c)};
Ina=function(a,b,c){yZ("delete_from_watch_later_list",a,b,c)};
yZ=function(a,b,c,d){a=c?c+"playlist_video_ajax?action_"+a+"=1":"/playlist_video_ajax?action_"+a+"=1";c={feature:b.feature||null,authuser:b.Ec||null,pageid:b.pageId||null};var e={video_ids:b.videoIds||null,source_playlist_id:b.sourcePlaylistId||null,full_list_id:b.fullListId||null,delete_from_playlists:b.f1||null,add_to_playlists:b.X0||null,plid:g.OD("PLAYBACK_ID")||null};g.KE(a,{method:"POST",Wc:c,Rb:e,context:b.context,onError:b.onError,Mb:function(a,c){var d=c.result;d&&d.actions&&YF(d.actions);
b.Mb.call(this,a,c)},
zd:b.zd,withCredentials:!!d})};
zZ=function(){this.g=[];this.o=[];this.A=[]};
CZ=function(a,b,c){c=g.ie(c?"AUDIO":"VIDEO");g.za(c,Jna);g.DF(c,"loadeddata",(0,g.A)(c.o,c));GO&&6<=AZ&&g.DF(c,"webkitbeginfullscreen",(0,g.A)(c.play,c));a.o.push(c);b?a.A.push(c):BZ(a,c);return c};
BZ=function(a,b){g.eb(a.o,b)&&!g.eb(a.g,b)&&(b.src||b.load(),g.kb(a.A,b)||a.g.push(b))};
DZ=function(){g.W.call(this,{H:"div",N:"ytp-sparkline"})};
EZ=function(a,b){for(var c=a.element.children.length;c<b.length;c++){var d=g.ie("SPAN");d.style.width=100/b.length+"%";a.element.appendChild(d)}d=Math.max.apply(Math,b)||1;for(c=0;c<b.length;c++)a.element.children[c].style.height=b[c]/d*100+"%";for(;a.element.children.length>b.length;)g.pe(a.element.lastChild)};
FZ=function(a){var b={H:"button",ea:["html5-video-info-panel-close","ytp-button"],R:{title:"close"},L:["[x]"]};g.W.call(this,{H:"div",N:"html5-video-info-panel",L:[b,{H:"div",N:"html5-video-info-panel-content",L:[{H:"div",L:[{H:"div",L:["Video ID:"]},{H:"span",L:["{{video_id}}"]}]},{H:"div",L:[{H:"div",L:["Dimensions:"]},{H:"span",L:["{{dimensions}}"]}]},{H:"div",L:[{H:"div",L:["Resolution:"]},{H:"span",L:["{{resolution}}"]}]},{H:"div",L:[{H:"div",L:["Optimal Resolution:"]},{H:"span",L:["{{optimal_resolution}}"]}]},
{H:"div",L:[{H:"div",L:["Volume:"]},{H:"span",L:["{{volume}}"]}]},{H:"div",L:[{H:"div",L:["Stream Host:"]},{H:"span",L:["{{stream_host}}"]}]},{H:"div",L:[{H:"div",L:["Stream Type:"]},{H:"span",L:["{{stream_type}}"]}]},{H:"div",R:{style:"{{cpn_style}}"},L:[{H:"div",L:["CPN:"]},{H:"span",R:{style:"font-family:monospace"},L:["{{cpn}}"]}]},{H:"div",L:[{H:"div",L:["Mime Type:"]},{H:"span",L:["{{mime}}"]}]},{H:"div",L:[{H:"div",L:["DASH:"]},{H:"span",L:["{{dash}}"]}]},{H:"div",R:{style:"{{color_style}}"},
L:[{H:"div",L:["Color:"]},{H:"span",L:["{{color}}"]}]},{H:"div",R:{style:"{{drm_style}}"},L:[{H:"div",L:["Protected:"]},{H:"span",L:["{{drm}}"]}]},{H:"div",L:[{H:"div",L:["Connection Speed:"]},{H:"span",L:[{H:"span",L:["{{bandwidth_sparkline}}"]},{H:"span",L:["{{bandwidth_kbps}}"]}]}]},{H:"div",L:[{H:"div",L:["Buffer Health:"]},{H:"span",L:[{H:"span",L:["{{buffer_health_sparkline}}"]},{H:"span",L:["{{buffer_health_seconds}}"]}]}]},{H:"div",L:[{H:"div",L:["Network Activity:"]},{H:"span",L:[{H:"span",
L:["{{network_activity_sparkline}}"]},{H:"span",L:["{{network_activity_bytes}}"]}]}]},{H:"div",R:{style:"{{live_latency_style}}"},L:[{H:"div",L:["Live Latency:"]},{H:"span",L:[{H:"span",L:["{{live_latency_sparkline}}"]},{H:"span",L:["{{live_latency_message}}"]}]}]},{H:"div",L:[{H:"div",L:["Dropped Frames:"]},{H:"span",L:["{{dropped_frames}}"]}]},{H:"div",R:{style:"{{sequence_number_style}}"},L:[{H:"div",L:["Sequence Number:"]},{H:"span",L:["{{sequence_number}}"]}]}]}]});b&&this.T(this.xa["html5-video-info-panel-close"],
"click",this.hide);this.A=new DZ;g.N(this,this.A);this.Da("bandwidth_sparkline",this.A);this.C=new DZ;g.N(this,this.C);this.Da("live_latency_sparkline",this.C);this.B=new DZ;g.N(this,this.B);this.Da("buffer_health_sparkline",this.B);this.D=new DZ;g.N(this,this.D);this.Da("network_activity_sparkline",this.D);this.F=new g.rt(this.G,500,this);g.N(this,this.F);this.o=a};
GZ=function(a,b){g.M.call(this);this.A=a||window.NaN;this.g=b||null;this.o=[]};
g.HZ=function(a){return UQ(a)?(a.fetch=0,new g.TQ(a)):new g.sQ(a)};
IZ=function(a){this.o=null;for(var b=[],c=0;100>=c;c++)b.push(c/100);b={threshold:b};(this.g=window.IntersectionObserver?new window.IntersectionObserver((0,g.A)(this.A,this),b):null)&&this.g.observe(a)};
JZ=function(a){g.W.call(this,{H:"div",N:"ytp-bezel",R:{role:"status","aria-label":"{{label}}"},L:[{H:"div",N:"ytp-bezel-icon",L:["{{icon}}"]}]});this.A=new g.rt(this.show,10,this);g.N(this,this.A);this.o=new g.rt(this.hide,500,this);g.N(this,this.o);this.U=a;this.hide()};
LZ=function(a,b){if(b)g.V(g.YU(a.U),64)||KZ(a,fE(),g.T("YTP_PLAY"));else{var c=a.U.ia();c.Ca&&!c.hg?KZ(a,kE(),g.T("YTP_STOP")):KZ(a,eE(),g.T("YTP_PAUSE"))}};
MZ=function(a,b,c){0>=b?(c=nE(),b=g.T("YTP_SCREENREADER_VOLUME_MUTED")):(c=c?mE():lE(),b=Math.floor(b)+"% "+g.T("YTP_SCREENREADER_VOLUME_SETTING"));KZ(a,c,b)};
NZ=function(a,b,c){c=c?g.SD?{H:"div",ea:["ytp-icon","ytp-icon-fast-rewind"]}:{H:"svg",R:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},L:[{H:"path",Pa:!0,N:"ytp-svg-fill",R:{d:"M 17,24 V 12 l -8.5,6 8.5,6 z m .5,-6 8.5,6 V 12 l -8.5,6 z"}}]}:g.SD?{H:"div",ea:["ytp-icon","ytp-icon-fast-forward"]}:{H:"svg",R:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},L:[{H:"path",Pa:!0,N:"ytp-svg-fill",R:{d:"M 10,24 18.5,18 10,12 V 24 z M 19,12 V 24 L 27.5,18 19,12 z"}}]};b=g.T("YTP_PLAYBACK_SPEED_CHANGED",
{RATE:b});KZ(a,c,b)};
OZ=function(a){KZ(a,gE(),g.T("YTP_PREVIOUS"))};
KZ=function(a,b,c){a.Da("label",void 0===c?"":c);a.Da("icon",b);g.ut(a.o);a.A.start()};
g.PZ=function(a,b){b=b||{H:"div",N:"ytp-thumbnail-overlay"};g.W.call(this,b);this.A=new g.OV(this,250);g.N(this,this.A);this.o=a};
QZ=function(a){g.PZ.call(this,a,{H:"div",ea:["ytp-thumbnail-overlay","ytp-cued-thumbnail-overlay"],L:[{H:"div",N:"ytp-thumbnail-overlay-image"}]});this.C=new g.DJ(this);g.N(this,this.C);this.D=this.xa["ytp-thumbnail-overlay-image"];this.B=new g.rt(this.Cy,0,this);g.N(this,this.B);this.Cy();this.T(a,"presentingplayerstatechange",this.YK);this.T(a,"ypcStateChanged",this.vQ);"detailpage"==g.X(a).g&&this.T(a,"videoplayerreset",this.XK)};
SZ=function(a,b,c){var d=eK(c),e=!g.X(b).experiments.g("disable_new_pause_state3");b=g.V(c,2)&&!TU(b)&&(!e||!g.RZ(b.app));d||b?a.show():(a.hide(),g.V(c,1)||a.stop())};
UZ=function(a){var b=["ytp-large-play-button","ytp-button"],c=g.X(a);c.F&&c.ob?c=[{H:"div",N:"ytp-large-play-button-circle",R:{style:"background-color: "+c.ob}},g.SD?{H:"div",ea:["ytp-icon","ytp-icon-dni-large-play-button"]}:{H:"svg",R:{height:"100%",version:"1.1",viewBox:"4 -6 60 60",width:"100%"},L:[{H:"path",R:{d:"m 26.96,13.67 18.37,9.62 -18.37,9.55 -0.00,-19.17 z",fill:"#fff"}}]}]:c.ba&&!c.zc?c=[g.SD?{H:"div",ea:["ytp-icon","ytp-icon-large-play-button-hover"]}:{H:"svg",R:{height:"100%",version:"1.1",
viewBox:"0 0 68 48",width:"100%"},L:[{H:"path",N:"ytp-large-play-button-bg",R:{d:"m .66,37.62 c 0,0 .66,4.70 2.70,6.77 2.58,2.71 5.98,2.63 7.49,2.91 5.43,.52 23.10,.68 23.12,.68 .00,-1.3e-5 14.29,-0.02 23.81,-0.71 1.32,-0.15 4.22,-0.17 6.81,-2.89 2.03,-2.07 2.70,-6.77 2.70,-6.77 0,0 .67,-5.52 .67,-11.04 l 0,-5.17 c 0,-5.52 -0.67,-11.04 -0.67,-11.04 0,0 -0.66,-4.70 -2.70,-6.77 C 62.03,.86 59.13,.84 57.80,.69 48.28,0 34.00,0 34.00,0 33.97,0 19.69,0 10.18,.69 8.85,.84 5.95,.86 3.36,3.58 1.32,5.65 .66,10.35 .66,10.35 c 0,0 -0.55,4.50 -0.66,9.45 l 0,8.36 c .10,4.94 .66,9.45 .66,9.45 z",
fill:"#cc181e"}},{H:"path",R:{d:"m 26.96,13.67 18.37,9.62 -18.37,9.55 -0.00,-19.17 z",fill:"#fff"}},{H:"path",R:{d:"M 45.02,23.46 45.32,23.28 26.96,13.67 43.32,24.34 45.02,23.46 z",fill:"#ccc"}}]}]:(c.isMobile&&b.push("ytp-touch-device"),c=[c.zc?g.SD?{H:"div",ea:["ytp-icon","ytp-icon-house-brand-large-play-button"]}:{H:"svg",R:{height:"100%",version:"1.1",viewBox:"0 0 60 60",width:"100%"},L:[{H:"path",N:"ytp-large-play-button-bg",R:{"clip-rule":"evenodd",d:"M59.6,1.35c0.26,.5,.4,1.13,.4,1.9v53.5c0,.76-0.13,1.4-0.4,1.9c-0.5,.9-1.45,1.35-2.85,1.35H3.25c-1.4,0-2.33-0.43-2.8-1.3C0.15,58.16,0,57.51,0,56.75V3.25c0-0.83,.16-1.5,.5-2C1,.41,1.91,0,3.25,0h53.5C58.15,0,59.1,.45,59.6,1.35z M21,41.65l22.7-11.8L21,18V41.65z",
fill:"#1f1f1f","fill-rule":"evenodd"}},{H:"path",R:{d:"M21,41.65 L21,18 L43.7,29.85 L21,41.65 Z",fill:"#fff"}}]}:g.SD?{H:"div",ea:["ytp-icon","ytp-icon-large-play-button"]}:{H:"svg",R:{height:"100%",version:"1.1",viewBox:"0 0 68 48",width:"100%"},L:[{H:"path",N:"ytp-large-play-button-bg",R:{d:"m .66,37.62 c 0,0 .66,4.70 2.70,6.77 2.58,2.71 5.98,2.63 7.49,2.91 5.43,.52 23.10,.68 23.12,.68 .00,-1.3e-5 14.29,-0.02 23.81,-0.71 1.32,-0.15 4.22,-0.17 6.81,-2.89 2.03,-2.07 2.70,-6.77 2.70,-6.77 0,0 .67,-5.52 .67,-11.04 l 0,-5.17 c 0,-5.52 -0.67,-11.04 -0.67,-11.04 0,0 -0.66,-4.70 -2.70,-6.77 C 62.03,.86 59.13,.84 57.80,.69 48.28,0 34.00,0 34.00,0 33.97,0 19.69,0 10.18,.69 8.85,.84 5.95,.86 3.36,3.58 1.32,5.65 .66,10.35 .66,10.35 c 0,0 -0.55,4.50 -0.66,9.45 l 0,8.36 c .10,4.94 .66,9.45 .66,9.45 z",
fill:"#1f1f1e","fill-opacity":"0.81"}},{H:"path",R:{d:"m 26.96,13.67 18.37,9.62 -18.37,9.55 -0.00,-19.17 z",fill:"#fff"}},{H:"path",R:{d:"M 45.02,23.46 45.32,23.28 26.96,13.67 43.32,24.34 45.02,23.46 z",fill:"#ccc"}}]}]);g.W.call(this,{H:"button",ea:b,R:{"aria-label":"{{label}}"},L:c});this.o=a;this.B=!1;this.A=new g.OV(this,250);g.N(this,this.A);this.T(a,"presentingplayerstatechange",this.C);TZ(this,g.YU(a))};
TZ=function(a,b){if(g.X(a.o).OQ&&!a.B){SZ(a.A,a.o,b);var c=(c=a.o.ia())&&c.title?g.T("YTP_WATCH_VIDEO_OR_PLAYLIST",{TITLE:c.title}):g.T("YTP_PLAY");a.Da("label",c)}else a.hide()};
WZ=function(a,b){g.DJ.call(this);this.U=a;this.A=b;this.o=new window.Set;this.g=window.navigator.mediaSession;VZ(this,"play",function(){LZ(b,!0);a.ad()});
VZ(this,"pause",function(){LZ(b,!1);a.ld()});
VZ(this,"seekbackward",function(){KZ(b,iE());a.de(-5*a.Tc())});
VZ(this,"seekforward",function(){KZ(b,aE());a.de(5*a.Tc())});
this.T(a,"videodatachange",this.C);this.T(a,"presentingplayerstatechange",this.B);this.C()};
VZ=function(a,b,c){a.g.setActionHandler(b,c?(0,g.A)(c,a):null);a.o.add(b)};
XZ=function(a){g.W.call(this,{H:"div",N:"ytp-paid-content-overlay",R:{"aria-live":"assertive","aria-atomic":"true"}});this.J=new g.W({H:"div",ea:["ytp-button","ytp-paid-content-overlay-text"]});g.N(this,this.J);this.J.Ja(this.element);this.U=a;this.A=null;this.F=!1;this.C=new g.OV(this.J,250,!1,100);g.N(this,this.C);this.D=this.o=null;this.B={};this.G=0;this.T(a,"videodatachange",this.O);this.T(a,"presentingplayerstatechange",this.M)};
YZ=function(a,b){var c=GQ(b),d=HQ(b);a.o?b.videoId&&b.videoId!=a.A&&(g.ut(a.o),a.A=b.videoId,c=a.B[b.videoId]||0,a.F=!!d&&3E3>c):c&&d&&(a.o=new g.rt(a.K,d,a),g.N(a,a.o),g.ye(g.K("ytp-paid-content-overlay-text",a.element),c))};
ZZ=function(a,b){a.o&&g.V(b,8)&&a.F&&(a.F=!1,a.C.show(),a.G=(0,g.G)(),a.o.start())};
a_=function(a){g.W.call(this,{H:"div",N:"ytp-spinner",L:[QV(),{H:"div",N:"ytp-spinner-message",L:[g.T("YTP_PLAYBACK_STALLED_AT_START")]}]});this.B=this.xa["ytp-spinner-message"];this.A=a;this.o=new g.rt(this.show,500,this);g.N(this,this.o);this.T(a,"presentingplayerstatechange",this.C);this.T(a,"onFrescaStateChange",this.D);this.T(a,"playbackstalledatstart",this.F);$Z(this,g.YU(a))};
$Z=function(a,b){if(g.V(b,128))var c=0;else!(c=g.V(b,16))&&(c=g.V(b,1))&&(c=g.RU(a.A).F,c=!(c&&c.loaded));c?a.o.start():a.hide()};
b_=function(a,b,c,d){d=void 0===d?!1:d;g.IV.call(this,b);this.U=a;this.da=d;this.K=null;this.J=new g.DJ(this);g.N(this,this.J);this.M=new g.OV(this,c,!0);g.N(this,this.M);this.C=null};
c_=function(a){a.C&&(window.document.activeElement&&g.we(a.element,window.document.activeElement)&&(g.Ce(a.C),a.C.focus()),a.C.removeAttribute("aria-expanded"),a.C=null);g.FJ(a.J);a.K=null};
d_=function(a){return a.g&&3!=a.M.g};
e_=function(a){var b=g.X(a).experiments.A("mweb_muted_autoplay_animation"),c=[],d=[];"none"!=b&&(c.push("ytp-unmute-animated"),d.push({H:"div",ea:["ytp-unmute-box"]}),"expand"==b?c.push("ytp-unmute-expand"):"shrink"==b&&c.push("ytp-unmute-shrink"));b_.call(this,a,{H:"div",ea:["ytp-unmute","ytp-popup"].concat(c),L:[{H:"div",N:"ytp-unmute-inner",L:[{H:"div",ea:["ytp-unmute-icon"],L:[g.SD?{H:"div",ea:["ytp-icon","ytp-icon-volume-muted-dark"]}:{H:"svg",R:{height:"100%",version:"1.1",viewBox:"0 0 36 36",
width:"100%"},L:[{H:"path",Pa:!0,N:"ytp-svg-fill",R:{d:"m 21.48,17.98 c 0,-1.77 -1.02,-3.29 -2.5,-4.03 v 2.21 l 2.45,2.45 c .03,-0.2 .05,-0.41 .05,-0.63 z m 2.5,0 c 0,.94 -0.2,1.82 -0.54,2.64 l 1.51,1.51 c .66,-1.24 1.03,-2.65 1.03,-4.15 0,-4.28 -2.99,-7.86 -7,-8.76 v 2.05 c 2.89,.86 5,3.54 5,6.71 z M 9.25,8.98 l -1.27,1.26 4.72,4.73 H 7.98 v 6 H 11.98 l 5,5 v -6.73 l 4.25,4.25 c -0.67,.52 -1.42,.93 -2.25,1.18 v 2.06 c 1.38,-0.31 2.63,-0.95 3.69,-1.81 l 2.04,2.05 1.27,-1.27 -9,-9 -7.72,-7.72 z m 7.72,.99 -2.09,2.08 2.09,2.09 V 9.98 z"}}]}]},
{H:"div",ea:["ytp-unmute-text"],L:[g.T("YTP_TAP_TO_UNMUTE")]}].concat(d)}]},100);this.o=a;this.A=!1;this.T(a,"mutedautoplaychange",this.B,this);this.X("click",this.onClick,this);this.Jb(a.app.ka)};
f_=function(a){g.DJ.call(this);g.RD();var b=g.X(a),c=g.ZU(a);this.g=a;this.tb=!1;this.O=null;this.sa=!1;var d=new QZ(a);g.N(this,d);g.sV(a,d.element,5);var e=new a_(a);g.N(this,e);g.sV(a,e.element,5);this.F=new JZ(a);g.N(this,this.F);g.sV(a,this.F.element,5);this.ba=new UZ(a);g.N(this,this.ba);this.ba.Ja(d.element);var f=a.ia();this.B=new pZ(c,(0,g.A)(this.QK,this),f,b.useTabletControls);g.N(this,this.B);this.B.subscribe("autohideupdate",this.Pr,this);var k=new XZ(a);g.N(this,k);g.sV(a,k.element,
5);this.ca=new e_(a);g.N(this,this.ca);g.sV(this.g,this.ca.element,3);this.kb=!1;this.T(a,"mutedautoplaychange",this.RK);this.ha=new g.rt(this.zy,200,this);g.N(this,this.ha);this.ua=f.videoId;this.D=null;this.M=!1;this.Ta=null;this.ra=[];f=a.getRootNode();f.setAttribute("aria-label",g.T("YTP_PLAYER_NORMAL"));switch(b.color){case "white":g.R(f,"ytp-color-white")}g.mn&&!YE()&&b.experiments.g("html5_prefer_standard_controls")&&g.R(f,"ytp-exp-std-controls");!g.X(a).experiments.g("disable_mediasession2")&&
"mediaSession"in window.navigator&&!window.navigator.mediaSession.metadata&&window.navigator.mediaSession.setActionHandler&&(f=new WZ(a,this.F),g.N(this,f));this.T(a,"appresize",this.Ab);this.T(a,"presentingplayerstatechange",this.UO);this.T(a,"videodatachange",this.yy);this.T(a,"videoplayerreset",this.QO);this.T(a,"autonavvisibility",this.wi,this);this.T(a,"minimized",this.Dg,this);this.T(a,"onFrescaStateChange",this.Dg,this);this.T(c,"click",this.nP,this);this.T(c,"dblclick",this.oP,this);b.ra&&
(this.T(c,"gesturechange",this.pP,this),this.T(c,"gestureend",this.qP,this));this.ob=[c.containerElement,e.element,d.element,this.F.element,this.ba.element]};
g_=function(a,b){if(!b)return!1;var c=a.g.app.D.pa();if(c&&g.we(c,b))return c.controls;for(c=0;c<a.ob.length;c++)if(g.we(a.ob[c],b))return!1;return g.Ip(b,"ytp-player-content")||g.Ip(b,"html5-endscreen")||b==a.g.getRootNode()?!1:!0};
h_=function(a,b,c){a.g.isFullscreen()?c<1-b&&g.aV(a.g):c>1+b&&g.aV(a.g)};
i_=function(a){g.IV.call(this,{H:"div",N:"ytp-ad-persistent-progress-bar-container",L:[{H:"div",N:"ytp-ad-persistent-progress-bar"}]});this.A=a;this.D=this.xa["ytp-ad-persistent-progress-bar"];this.o=null;this.T(a,"presentingplayerstatechange",this.C);this.hide();this.C()};
l_=function(a,b){var c={H:"button",ea:["ytp-button","ytp-cards-button"],R:{"aria-label":g.T("YTP_CARDS_BUTTON_ARIA_LABEL"),"aria-owns":"iv-drawer","aria-haspopup":!0},L:[{H:"span",N:"ytp-cards-button-icon-default",L:[g.SD?{H:"div",ea:["ytp-icon","ytp-icon-info-card"]}:{H:"svg",R:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},L:[{H:"path",Pa:!0,N:"ytp-svg-fill",R:{d:"M18,8 C12.47,8 8,12.47 8,18 C8,23.52 12.47,28 18,28 C23.52,28 28,23.52 28,18 C28,12.47 23.52,8 18,8 L18,8 Z M17,16 L19,16 L19,24 L17,24 L17,16 Z M17,12 L19,12 L19,14 L17,14 L17,12 Z"}}]}]},
{H:"span",N:"ytp-cards-button-icon-shopping",L:[g.SD?{H:"div",ea:["ytp-icon","ytp-icon-shopping-card"]}:{H:"svg",R:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},L:[{H:"path",N:"ytp-svg-shadow",R:{d:"M 27.99,18 A 9.99,9.99 0 1 1 8.00,18 9.99,9.99 0 1 1 27.99,18 z"}},{H:"path",N:"ytp-svg-fill",R:{d:"M 18,8 C 12.47,8 8,12.47 8,18 8,23.52 12.47,28 18,28 23.52,28 28,23.52 28,18 28,12.47 23.52,8 18,8 z m -4.68,4 4.53,0 c .35,0 .70,.14 .93,.37 l 5.84,5.84 c .23,.23 .37,.58 .37,.93 0,.35 -0.13,.67 -0.37,.90 L 20.06,24.62 C 19.82,24.86 19.51,25 19.15,25 c -0.35,0 -0.70,-0.14 -0.93,-0.37 L 12.37,18.78 C 12.13,18.54 12,18.20 12,17.84 L 12,13.31 C 12,12.59 12.59,12 13.31,12 z m .96,1.31 c -0.53,0 -0.96,.42 -0.96,.96 0,.53 .42,.96 .96,.96 .53,0 .96,-0.42 .96,-0.96 0,-0.53 -0.42,-0.96 -0.96,-0.96 z",
"fill-opacity":"1"}},{H:"path",N:"ytp-svg-shadow-fill",R:{d:"M 24.61,18.22 18.76,12.37 C 18.53,12.14 18.20,12 17.85,12 H 13.30 C 12.58,12 12,12.58 12,13.30 V 17.85 c 0,.35 .14,.68 .38,.92 l 5.84,5.85 c .23,.23 .55,.37 .91,.37 .35,0 .68,-0.14 .91,-0.38 L 24.61,20.06 C 24.85,19.83 25,19.50 25,19.15 25,18.79 24.85,18.46 24.61,18.22 z M 14.27,15.25 c -0.53,0 -0.97,-0.43 -0.97,-0.97 0,-0.53 .43,-0.97 .97,-0.97 .53,0 .97,.43 .97,.97 0,.53 -0.43,.97 -0.97,.97 z",fill:"#000","fill-opacity":"0.15"}}]}]}]};
g.W.call(this,c);this.U=a;this.B=b;this.o=null;this.A=new g.OV(this,250,!0,100);g.N(this,this.A);this.hide();this.X("click",this.C);this.X("mouseover",this.D);j_(this,!0);c=new k_(a,this);g.N(this,c);g.sV(a,c.element,6)};
j_=function(a,b){b?a.o=m_(a.B.o,a.element):(a.o(),a.o=null)};
k_=function(a,b){g.W.call(this,{H:"div",N:"ytp-cards-teaser",L:[{H:"div",N:"ytp-cards-teaser-box"},{H:"div",N:"ytp-cards-teaser-text",L:[{H:"span",N:"ytp-cards-teaser-label",L:["{{text}}"]}]}]});this.U=a;this.C=new g.OV(this,250,!1,250);g.N(this,this.C);this.F=b;this.o=null;this.J=new g.rt(this.vO,300,this);this.G=new g.rt(this.tO,2E3,this);this.K=new g.uo(null);this.D=[];this.B=this.A=null;this.T(b.element,"mouseover",this.Ay);this.T(b.element,"mouseout",this.ph);this.T(a,"cardsteasershow",this.JP);
this.T(a,"cardsteaserhide",this.Pk);this.T(a,"cardstatechange",this.pB);this.T(a,"presentingplayerstatechange",this.pB);this.X("click",this.TK);this.X("mouseenter",this.SK)};
Kna=function(a,b){a.Da("text",b.teaserText);a.element.setAttribute("dir",g.vo(a.K,b.teaserText));a.C.show();a.A=new g.rt(function(){g.R(this.U.getRootNode(),"ytp-cards-teaser-shown")},0,a);
a.A.start();j_(a.F,!1);a.o=new g.rt(a.Pk,580+b.durationMs,a);a.o.start();a.D.push(a.X("mouseover",a.Ay,a));a.D.push(a.X("mouseout",a.ph,a))};
g.o_=function(a,b,c,d){g.IV.call(this,a);this.priority=b;c&&g.n_(this,c);d&&this.dc(d)};
g.p_=function(a,b,c){a=void 0===a?{}:a;b=void 0===b?[]:b;c=void 0===c?!1:c;b.push("ytp-menuitem");"role"in a||(a.role="menuitem");c||"tabindex"in a||(a.tabindex=0);return{H:c?"a":"div",ea:b,R:a,L:[{H:"div",N:"ytp-menuitem-label",L:["{{label}}"]},{H:"div",N:"ytp-menuitem-content",L:["{{content}}"]}]}};
g.n_=function(a,b){a.Da("label",b)};
q_=function(a,b,c,d,e){var f={H:"div",N:"ytp-panel"};if(c){var k="ytp-panel-title";var l={H:"div",N:"ytp-panel-header",L:[{H:"button",ea:["ytp-button",k],L:[c]}]};if(e){var m="ytp-panel-options";l.L.push({H:"button",ea:["ytp-button",m],L:[d]})}f.L=[l]}g.IV.call(this,f);this.P=b;b.Ja(this.element);this.fa=!1;c&&(this.T(this.xa[k],"click",this.ha),this.fa=!0,e&&this.T(this.xa[m],"click",e));b.subscribe("size-change",this.ga,this);this.T(a,"fullscreentoggled",this.ga)};
g.r_=function(a,b,c,d,e){b=new g.IV({H:"div",N:"ytp-panel-menu",R:{role:"menu",id:void 0===b?null:b}});q_.call(this,a,b,c,d,e);this.D=b;g.N(this,this.D);this.Ka=[]};
g.s_=function(a,b,c){if(void 0===c?0:c)a.Ka.push(b),a.D.element.appendChild(b.element);else{c=g.wb(a.Ka,b,Lna);if(0<=c)return;c=~c;g.rb(a.Ka,c,0,b);oe(a.D.element,b.element,c)}b.subscribe("size-change",a.V,a);a.D.Y("size-change")};
g.t_=function(a,b){b.unsubscribe("size-change",a.V,a);a.na()||(g.kb(a.Ka,b),a.D.element.removeChild(b.element),a.D.Y("size-change"))};
g.u_=function(a){for(var b=g.ka(a.Ka),c=b.next();!c.done;c=b.next())c.value.unsubscribe("size-change",a.V,a);a.Ka=[];g.me(a.D.element);a.D.Y("size-change")};
Lna=function(a,b){return b.priority-a.priority};
g.v_=function(a,b){b_.call(this,a,{H:"div",ea:["ytp-popup",b||null]},100,!0);this.o=[];this.size=new g.Pd(0,0);this.D=this.F=null;this.O=this.P=0;this.X("keydown",this.kL)};
w_=function(a){g.th(a.element,a.P||"100%",a.O||"100%");var b=a.o[a.o.length-1];b.element.style.width="";b.element.style.height="";b.element.style.maxWidth="100%";b.element.style.maxHeight="100%";b.P.element.style.height="";var c=g.uh(b.element);c.width+=1;c.height+=1;b.element.style.width=c.width+"px";b.element.style.height=c.height+"px";b.element.style.maxWidth="";b.element.style.maxHeight="";var d=0;b.fa&&(d=g.uh(b.xa["ytp-panel-header"]).height);b.P.element.style.height=c.height-d+"px";a.size=
c};
g.y_=function(a,b){var c=a.o[a.o.length-1];a.o.push(b);x_(a,c,b)};
g.z_=function(a){var b=a.o.pop(),c=a.o[0];a.o=[c];x_(a,b,c,!0)};
x_=function(a,b,c,d){A_(a);!g.Ip(c.element,"ytp-panel-animate-back")&&g.Ip(c.element,"ytp-panel-animate-forward");b&&(b.unsubscribe("size-change",a.oo,a),b.unsubscribe("back",a.Le,a));c.subscribe("size-change",a.oo,a);c.subscribe("back",a.Le,a);if(a.g){g.R(c.element,d?"ytp-panel-animate-back":"ytp-panel-animate-forward");c.Ja(a.element);c.focus();a.element.scrollLeft=0;a.element.scrollTop=0;var e=a.size;w_(a);g.th(a.element,e);a.F=new g.rt(g.ya(a.zR,b,c,d),20,a);a.F.start()}else c.Ja(a.element),b&&
b.detach()};
A_=function(a){a.F&&g.tt(a.F);a.D&&g.tt(a.D)};
B_=function(a){var b=g.p_({"aria-haspopup":!0});g.o_.call(this,b,a);this.X("keydown",this.o)};
C_=function(a,b){a.element.setAttribute("aria-haspopup",b)};
D_=function(a,b){var c=g.p_({role:"menuitemcheckbox","aria-checked":!1});g.o_.call(this,c,b,a,{H:"div",N:"ytp-menuitem-toggle-checkbox"});this.o=!1;this.X("click",this.J)};
E_=function(a,b){a.o=b;a.element.setAttribute("aria-checked",a.o)};
H_=function(a,b,c){g.r_.call(this,a);this.U=a;this.M=b;this.K=c;this.B=new B_(8);g.N(this,this.B);g.s_(this,this.B,!0);this.B.X("click",this.HN,this);vV(a,this.B,28659);this.A=new B_(7);g.N(this,this.A);g.s_(this,this.A,!0);this.A.X("click",this.GN,this);vV(a,this.A,28660);this.o=new B_(6);g.N(this,this.o);g.s_(this,this.o,!0);this.o.X("click",this.EN,this);vV(a,this.o,28658);this.F=new D_(g.T("YTP_LOOP"),5);g.N(this,this.F);g.s_(this,this.F,!0);this.F.X("click",this.ZN,this);vV(a,this.F,28661);this.O=
new g.o_(g.p_({href:"{{href}}",target:"_blank"},void 0,!0),4,g.T("YTP_TROUBLESHOOT_ISSUE"));g.N(this,this.O);g.s_(this,this.O,!0);this.O.X("click",this.iP,this);this.J=new B_(3);g.N(this,this.J);g.s_(this,this.J,!0);this.J.X("click",this.DN,this);b=new g.o_(g.p_(),2,g.T("YTP_SHOW_VIDEO_INFO"));g.N(this,b);g.s_(this,b,!0);b.X("click",this.AP,this);this.G=new g.IV({H:"div",ea:["ytp-copytext","ytp-no-contextmenu"],R:{draggable:!1,tabindex:1},L:["{{text}}"]});g.N(this,this.G);this.G.X("click",this.jN,
this);this.da=new q_(a,this.G);g.N(this,this.da);this.C=null;b=window.document.queryCommandSupported&&window.document.queryCommandSupported("copy");g.UE&&g.kc(43)&&(b=!0);g.MN&&!g.kc(41)&&(b=!1);b&&(this.C=new g.W({H:"textarea",N:"ytp-html5-clipboard"}),g.N(this,this.C),this.C.Ja(this.element));this.T(a,"loopchange",this.YN);this.T(a,"videodatachange",this.VK);F_(this);G_(this,this.U.ia())};
I_=function(a,b){if(a.C){a.C.element.value=b;a.C.element.select();try{var c=window.document.execCommand("copy")}catch(d){}}c?a.K.Qb():(a.G.dc(b,"text"),g.y_(a.K,a.da),eR(a.G.element),a.C&&(a.C=null,F_(a)));return c};
G_=function(a,b){var c=g.X(a.U),d=2!=a.U.Wa()||b.isListed,d=!c.J&&!!b.videoId&&d;"play"!=c.o?c="https://support.google.com/youtube/?p=report_playback":(c={contact_type:"playbackissue",html5:1,plid:b.playbackId,ei:b.eventId,v:b.videoId,p:"movies_playback"},b.Ma&&(c.fmt=II(b.Ma)),b.clientPlaybackNonce&&(c.cpn=b.clientPlaybackNonce),b.qh&&(c.partnerid=b.qh),c=g.Dg("//support.google.com/googleplay/",c));a.o.Jb(d&&b.allowEmbed);a.B.Jb(d);a.A.Jb(d&&!b.Ca);a.O.dc(c,"href")};
F_=function(a){var b=!!a.C;g.n_(a.J,g.T(b?"YTP_COPY_DEBUG_INFO":"YTP_GET_DEBUG_INFO"));C_(a.J,!b);g.n_(a.o,g.T(b?"YTP_EMBED_COPY":"YTP_GET_EMBED"));C_(a.o,!b);g.n_(a.B,g.T(b?"YTP_COPY_VIDEO_URL":"YTP_GET_VIDEO_URL"));C_(a.B,!b);g.n_(a.A,g.T(b?"YTP_COPY_VIDEO_URL_AT_TIME":"YTP_GET_VIDEO_URL_AT_TIME"));C_(a.A,!b)};
J_=function(a,b){g.xV(a.U,a.o,b);g.xV(a.U,a.B,b);g.xV(a.U,a.A,b);g.xV(a.U,a.F,b)};
L_=function(a,b){g.v_.call(this,a);this.A=a;this.V=b;this.B=new g.DJ(this);g.N(this,this.B);this.G=null;vV(a,this,28656);g.R(this.element,"ytp-contextmenu");g.X(a).F&&g.R(this.element,"ytp-dni");K_(this);this.hide()};
K_=function(a){g.FJ(a.B);"gvn"!=g.X(a.A).o&&a.B.T(g.ZU(a.A),"contextmenu",a.iN)};
M_=function(a){a.A.isFullscreen()?g.sV(a.A,a.element,10):a.Ja(window.document.body)};
N_=function(a,b,c,d,e,f){g.DJ.call(this);this.g=a;this.F=c;this.C=d;this.o=e;this.D=f;this.B=new g.rt(g.ya(this.Ey,!1),1E3,this);g.N(this,this.B);this.A="";a=g.ya(this.zs,!1);this.T(b,"mousedown",a);this.T(c.element,"mousedown",a);this.T(b,"keydown",this.Dw);this.T(c.element,"keydown",this.Dw);this.T(b,"keyup",this.Ew);this.T(c.element,"keyup",this.Ew)};
P_=function(a,b,c){var d=!1,e=g.X(a.g);if(!e.oe){switch(b){case 80:c&&(OZ(a.o),a.g.Jk(),d=!0);break;case 78:c&&(KZ(a.o,cE(),g.T("YTP_NEXT")),a.g.oj(),d=!0);break;case 74:a.g.Kd()&&(KZ(a.o,g.SD?{H:"div",ea:["ytp-icon","ytp-icon-rewind-ten-seconds"]}:{H:"svg",R:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},L:[{H:"path",Pa:!0,N:"ytp-svg-fill",R:{d:"M 18,11 V 7 l -5,5 5,5 v -4 c 3.3,0 6,2.7 6,6 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 h -2 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 0,-4.4 -3.6,-8 -8,-8 z M 16.9,22 H 16 V 18.7 L 15,19 v -0.7 l 1.8,-0.6 h .1 V 22 z m 4.3,-1.8 c 0,.3 0,.6 -0.1,.8 l -0.3,.6 c 0,0 -0.3,.3 -0.5,.3 -0.2,0 -0.4,.1 -0.6,.1 -0.2,0 -0.4,0 -0.6,-0.1 -0.2,-0.1 -0.3,-0.2 -0.5,-0.3 -0.2,-0.1 -0.2,-0.3 -0.3,-0.6 -0.1,-0.3 -0.1,-0.5 -0.1,-0.8 v -0.7 c 0,-0.3 0,-0.6 .1,-0.8 l .3,-0.6 c 0,0 .3,-0.3 .5,-0.3 .2,0 .4,-0.1 .6,-0.1 .2,0 .4,0 .6,.1 .2,.1 .3,.2 .5,.3 .2,.1 .2,.3 .3,.6 .1,.3 .1,.5 .1,.8 v .7 z m -0.9,-0.8 v -0.5 c 0,0 -0.1,-0.2 -0.1,-0.3 0,-0.1 -0.1,-0.1 -0.2,-0.2 -0.1,-0.1 -0.2,-0.1 -0.3,-0.1 -0.1,0 -0.2,0 -0.3,.1 l -0.2,.2 c 0,0 -0.1,.2 -0.1,.3 v 2 c 0,0 .1,.2 .1,.3 0,.1 .1,.1 .2,.2 .1,.1 .2,.1 .3,.1 .1,0 .2,0 .3,-0.1 l .2,-0.2 c 0,0 .1,-0.2 .1,-0.3 v -1.5 z"}}]}),
a.g.de(-10*a.g.Tc()),d=!0);break;case 76:a.g.Kd()&&(KZ(a.o,g.SD?{H:"div",ea:["ytp-icon","ytp-icon-forward-ten-seconds"]}:{H:"svg",R:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},L:[{H:"path",Pa:!0,N:"ytp-svg-fill",R:{d:"m 10,19 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 h -2 c 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 0,-3.3 2.7,-6 6,-6 v 4 l 5,-5 -5,-5 v 4 c -4.4,0 -8,3.6 -8,8 z m 6.8,3 H 16 V 18.7 L 15,19 v -0.7 l 1.8,-0.6 h .1 V 22 z m 4.3,-1.8 c 0,.3 0,.6 -0.1,.8 l -0.3,.6 c 0,0 -0.3,.3 -0.5,.3 C 20,21.9 19.8,22 19.6,22 19.4,22 19.2,22 19,21.9 18.8,21.8 18.7,21.7 18.5,21.6 18.3,21.5 18.3,21.3 18.2,21 18.1,20.7 18.1,20.5 18.1,20.2 v -0.7 c 0,-0.3 0,-0.6 .1,-0.8 l .3,-0.6 c 0,0 .3,-0.3 .5,-0.3 .2,0 .4,-0.1 .6,-0.1 .2,0 .4,0 .6,.1 .2,.1 .3,.2 .5,.3 .2,.1 .2,.3 .3,.6 .1,.3 .1,.5 .1,.8 v .7 z m -0.8,-0.8 v -0.5 c 0,0 -0.1,-0.2 -0.1,-0.3 0,-0.1 -0.1,-0.1 -0.2,-0.2 -0.1,-0.1 -0.2,-0.1 -0.3,-0.1 -0.1,0 -0.2,0 -0.3,.1 l -0.2,.2 c 0,0 -0.1,.2 -0.1,.3 v 2 c 0,0 .1,.2 .1,.3 0,.1 .1,.1 .2,.2 .1,.1 .2,.1 .3,.1 .1,0 .2,0 .3,-0.1 l .2,-0.2 c 0,0 .1,-0.2 .1,-0.3 v -1.5 z"}}]}),
a.g.de(10*a.g.Tc()),d=!0);break;case 77:a.g.Ie()?(a.g.ug(),MZ(a.o,a.g.getVolume(),!1)):(a.g.mute(),MZ(a.o,0,!0));d=!0;break;case 75:d=!dK(g.YU(a.g));LZ(a.o,d);d?a.g.ad():a.g.ld();d=!0;break;case 190:if(c){if(e.Fa)for(b=a.g.nj(),c=a.g.Tc(),e=0;e<b.length-1;e++)b[e]==c&&(d=b[e+1],a.g.Of(d,!0),NZ(a.o,d,!1),d=!0)}else a.g.Kd()&&(O_(a,1),d=!0);break;case 188:if(c){if(e.Fa)for(b=a.g.nj(),c=a.g.Tc(),e=b.length-1;1<=e;e--)b[e]==c&&(d=b[e-1],a.g.Of(d,!0),NZ(a.o,d,!0),d=!0)}else a.g.Kd()&&(O_(a,-1),d=!0);break;
case 70:TV(a.g)&&(g.aV(a.g),d=!0)}d&&a.C.qc(2,!0)}return d};
R_=function(a,b,c,d){if(g.RU(a.g).g){for(var e=a.g.di(),f,k=0;k<g.Q_.length;k++){var l=g.Q_[k];if(l.option==b){f=l.options;break}}for(var m,k=0;k<f.length;k++)f[k].option==e[b]&&(m=k);if(d)if(c){if(0==m)return!1}else if(m==f.length-1)return!1;d={};d[b]=f[(m+(c?f.length-1:1))%f.length].option;a.g.wn(d);a.Ey(!0);a.B.start();return!0}return!1};
O_=function(a,b){a.g.Kd();if(g.V(g.YU(a.g),4)){var c=a.g.ia().Ma;c&&(c=c.video)&&a.g.de(b/(c.fps||30))}};
T_=function(a,b){g.W.call(this,{H:"div",N:"ytp-pause-overlay",L:[{H:"div",N:"ytp-suggestions"}]});this.o=a;this.da=b;this.B=new g.DJ(this);g.N(this,this.B);this.J=new g.OV(this,250,!1,100);g.N(this,this.J);var c=g.X(a);this.D=[];this.A=[];this.F=0;this.fa=c.A&&!c.F;this.V=!1;this.O=new g.W({H:"button",ea:["ytp-button","ytp-previous"],R:{"aria-label":g.T("YTP_PREVIOUS")},L:[g.UD()]});g.N(this,this.O);this.O.Ja(this.element);this.O.X("click",this.mL,this);c=g.UE||g.Oe?{style:"will-change: opacity"}:
null;this.ba=new S_((0,g.A)(this.qB,this));g.N(this,this.ba);this.P=this.C=0;this.M=this.xa["ytp-suggestions"];for(var d=0;16>d;d++){var e=new g.W({H:"a",N:"ytp-suggestion-link",R:{href:"{{link}}",target:"_blank"},L:[{H:"div",N:"ytp-suggestion-image"},{H:"div",N:"ytp-suggestion-overlay",R:c,L:[{H:"div",N:"ytp-suggestion-title",L:["{{title}}"]},{H:"div",N:"ytp-suggestion-author",L:["{{author_and_views}}"]},{H:"div",N:"ytp-suggestion-duration",L:["{{duration}}"]}]}]});g.N(this,e);e.Ja(this.M);var f=
e.xa["ytp-suggestion-link"];g.bh(f,"transitionDelay",d/20+"s");this.B.T(f,"click",g.ya(this.WM,d));this.D.push(e)}this.K=new g.W({H:"button",ea:["ytp-button","ytp-next"],R:{"aria-label":g.T("YTP_NEXT")},L:[g.VD()]});g.N(this,this.K);this.K.Ja(this.element);this.K.X("click",this.lL,this);c=new g.W({H:"button",ea:["ytp-button","ytp-collapse"],R:{"aria-label":g.T("YTP_CLOSE")},L:[g.SD?{H:"div",ea:["ytp-icon","ytp-icon-small-close"]}:{H:"svg",R:{height:"100%",viewBox:"0 0 16 16",width:"100%"},L:[{H:"path",
R:{d:"M13 4L12 3 8 7 4 3 3 4 7 8 3 12 4 13 8 9 12 13 13 12 9 8z",fill:"#fff"}}]}]});g.N(this,c);c.Ja(this.element);c.X("click",this.SM,this);this.G=new g.W({H:"button",ea:["ytp-button","ytp-expand"],L:[g.T("YTP_MORE_VIDEOS")]});g.N(this,this.G);this.G.Ja(this.element);this.G.X("click",this.UM,this);this.B.T(this.o,"appresize",this.Dr);this.B.T(this.o,"fullscreentoggled",this.nL);this.B.T(this.o,"presentingplayerstatechange",this.oL);this.B.T(this.o,"videodatachange",this.pL);this.Dr(g.ZU(this.o).Ya())};
V_=function(a,b){var c=g.Hd(b,a.F-a.A.length*(a.P+8),0);a.ba.start(a.C,c,1E3);a.C=c;U_(a)};
U_=function(a){var b=a.C,c=a.F-a.A.length*(a.P+8);g.S(a.element,"ytp-scroll-min",0<=b);g.S(a.element,"ytp-scroll-max",b<=c)};
Mna=function(a){for(var b=g.X(a.o),c=0;c<a.A.length;c++){var d=a.A[c].hc(),e=a.D[c],f=d.shortViewCount?d.author+" \u2022 "+d.shortViewCount:d.author;e.element.style.display="";e.update({author_and_views:f,duration:d.lengthSeconds?g.JV(d.lengthSeconds):0,link:d.Om(b),title:d.title});e=e.xa["ytp-suggestion-image"];d=d.ac(b);e.style.backgroundImage=d?"url("+d+")":""}for(;c<a.D.length;c++)a.D[c].element.style.display="none";U_(a)};
S_=function(a){g.M.call(this);this.C=a;this.B=new iC(0,0,.4,0,.2,1,1,1);this.o=new g.ot(this.A,window,this);g.N(this,this.o)};
W_=function(a,b,c){var d=b.hc(c),e=g.X(a),f=d.ac(e,"default.jpg");g.W.call(this,{H:"a",ea:["ytp-video-menu-item","ytp-button"],R:{role:"menuitemradio","aria-label":d.title,href:e.getVideoUrl(d.videoId,b.listId?b.listId.toString():null)},L:[{H:"div",N:"ytp-video-menu-item-index",L:[""+(c+1)]},{H:"div",N:"ytp-video-menu-item-now-playing",L:["\u25b6"]},{H:"div",N:"ytp-video-menu-item-thumbnail",R:{style:f?"background-image: url("+f+");":null}},{H:"div",N:"ytp-video-menu-item-title",L:[d.title]},{H:"div",
N:"ytp-video-menu-item-author",L:[d.author]}]});this.o=a;this.jc=c;this.X("click",this.A)};
X_=function(a){b_.call(this,a,{H:"div",N:"ytp-playlist-menu",R:{role:"dialog",id:"ytp_playlist_menu"},L:[{H:"div",N:"ytp-playlist-menu-header",L:[{H:"div",N:"ytp-playlist-menu-title",L:[{H:"a",N:"ytp-playlist-menu-title-name",R:{href:"{{playlisturl}}"},L:["{{title}}"]},{H:"button",ea:["ytp-playlist-menu-close","ytp-button"],R:{"aria-label":g.T("YTP_CLOSE")},L:[g.ZD()]}]},{H:"div",N:"ytp-playlist-menu-subtitle",L:["{{subtitle}}"]}]},{H:"div",N:"ytp-playlist-menu-items",R:{role:"menu"}}]},250);this.T(this.xa["ytp-playlist-menu-close"],
"click",this.Qb);this.T(this.xa["ytp-playlist-menu-title-name"],"click",this.LP);this.A=a;this.B=this.G=this.o=null;this.Ka=this.xa["ytp-playlist-menu-items"];this.F=new g.DJ(this);g.N(this,this.F);this.D=[];this.hide()};
Y_=function(a,b){if(a.o!=b)if(a.o&&a.o.unsubscribe("shuffle",a.Sn,a),a.o=b,a.G=null,b){b.subscribe("shuffle",a.Sn,a);var c=b.author;a.update({title:b.title,subtitle:g.T(c?"YTP_PLAYLIST_AUTHOR_AND_POSITION":"YTP_PLAYLIST_POSITION",{AUTHOR:c,CURRENT_POSITION:b.Xd()+1,PLAYLIST_LENGTH:b.getLength()}),playlisturl:a.A.getVideoUrl(!0)});a.Sn()}else a.g&&a.hide();else a.o&&a.Sn()};
Z_=function(a,b,c){var d={H:"button",ea:["ytp-playlist-menu-button","ytp-button"],R:{title:"{{title}}","aria-owns":"ytp_playlist_menu","aria-haspopup":!0,"aria-label":g.T("YTP_PLAYLIST")},L:[{H:"div",N:"ytp-playlist-menu-button-icon",L:[g.SD?{H:"div",ea:["ytp-icon","ytp-icon-playlist"]}:{H:"svg",R:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},L:[{H:"path",Pa:!0,R:{d:"m 22.53,21.42 0,6.85 5.66,-3.42 -5.66,-3.42 0,0 z m -11.33,0 9.06,0 0,2.28 -9.06,0 0,-2.28 0,0 z m 0,-9.14 13.6,0 0,2.28 -13.6,0 0,-2.28 0,0 z m 0,4.57 13.6,0 0,2.28 -13.6,0 0,-2.28 0,0 z",
fill:"#fff"}}]}]},{H:"div",N:"ytp-playlist-menu-button-text",L:["{{text}}"]}]};g.W.call(this,d);this.B=a;this.o=null;this.C=b.o;this.T(a,"videodatachange",this.D);this.T(a,"onPlaylistUpdate",this.D);this.T(a,"presentingplayerstatechange",this.A);this.T(a,"appresize",this.A);this.hide();this.D();g.Je(this,m_(this.C,this.element));this.X("click",(0,g.A)(c.wh,c,this.element,!1))};
$_=function(a,b){g.W.call(this,{H:"button",ea:["ytp-replay-button","ytp-button"],R:{title:g.T("YTP_REPLAY")},L:[hE()]});this.o=a;this.T(a,"presentingplayerstatechange",this.B);this.X("click",this.A,this);var c=g.YU(a);this.Jb(g.V(c,2));m_(b.o,this.element)};
a0=function(a,b){var c={H:"div",N:"ytp-share-panel",R:{id:"ytp-share-panel",role:"dialog","aria-labelledby":"ytp-share-panel-title"},L:[{H:"button",ea:["ytp-share-panel-close","ytp-button"],R:{title:g.T("YTP_CLOSE")},L:[g.ZD()]},{H:"div",N:"ytp-share-panel-inner-content",L:[{H:"div",N:"ytp-share-panel-title",R:{id:"ytp-share-panel-title"},L:[g.T("YTP_SHARE")]},{H:"a",ea:["ytp-share-panel-link","ytp-no-contextmenu"],R:{href:"{{link}}",target:"_blank",title:g.T("YTP_SHARE_LINK"),"aria-label":g.T("YTP_SHARE_LINK")},
L:["{{linkText}}"]},{H:"label",N:"ytp-share-panel-include-playlist",L:[{H:"input",N:"ytp-share-panel-include-playlist-checkbox",R:{type:"checkbox",checked:!0}},g.T("YTP_SHARE_WITH_PLAYLIST_2")]},{H:"div",N:"ytp-share-panel-loading-spinner",L:[QV()]},{H:"div",N:"ytp-share-panel-service-buttons",L:["{{buttons}}"]},{H:"div",N:"ytp-share-panel-error",L:[g.T("YTP_SHARE_PANEL_ERROR")]}]}]};b_.call(this,a,c,250);this.o=a;this.A=b.o;this.B=[];this.O=this.xa["ytp-share-panel-inner-content"];this.F=this.xa["ytp-share-panel-close"];
this.T(this.F,"click",this.Qb);g.Je(this,m_(this.A,this.F));this.G=this.xa["ytp-share-panel-include-playlist-checkbox"];this.T(this.G,"click",this.My);this.D=this.xa["ytp-share-panel-link"];g.Je(this,m_(this.A,this.D));this.X("click",this.JO);this.T(a,"videoplayerreset",this.hide);this.T(a,"fullscreentoggled",this.FL);this.hide()};
Nna=function(a){switch(a){case "facebook":return g.SD?{H:"div",ea:["ytp-icon","ytp-icon-share-facebook"]}:{H:"svg",R:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},L:[{H:"rect",R:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{H:"path",R:{d:"M 34.2,0 3.8,0 C 1.70,0 .01,1.70 .01,3.8 L 0,34.2 C 0,36.29 1.70,38 3.8,38 l 30.4,0 C 36.29,38 38,36.29 38,34.2 L 38,3.8 C 38,1.70 36.29,0 34.2,0 l 0,0 z m -1.9,3.8 0,5.7 -3.8,0 c -1.04,0 -1.9,.84 -1.9,1.9 l 0,3.8 5.7,0 0,5.7 -5.7,0 0,13.3 -5.7,0 0,-13.3 -3.8,0 0,-5.7 3.8,0 0,-4.75 c 0,-3.67 2.97,-6.65 6.65,-6.65 l 4.75,0 z",
fill:"#39579b"}}]};case "googleplus":return g.SD?{H:"div",ea:["ytp-icon","ytp-icon-share-googleplus"]}:{H:"svg",R:{height:"100%",version:"1.0",viewBox:"0 0 38 38",width:"100%"},L:[{H:"rect",R:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{H:"path",R:{d:"M34.3,0H3.7C1.7,0,0,1.7,0,3.7v30.5c0,2,1.7,3.7,3.7,3.7h30.5c2,0,3.7-1.7,3.7-3.7V3.7C38,1.7,36.3,0,34.3,0z M13.3,28.5c-5.2,0-9.5-4.3-9.5-9.5c0-5.2,4.3-9.5,9.5-9.5c2.6,0,4.7,.9,6.4,2.5l-2.7,2.7c-1-0.9-2.2-1.4-3.6-1.4 c-3.1,0-5.6,2.6-5.6,5.7s2.5,5.7,5.6,5.7c2.8,0,4.7-1.6,5.1-3.8h-5.1v-3.6h8.9c0.1,.6,.2,1.3,.2,2C22.4,24.6,18.8,28.5,13.3,28.5 z M34.2,19.6H31v3.2h-2.2v-3.2h-3.2v-2.2h3.2v-3.2H31v3.2h3.2V19.6z",
fill:"#dc4537"}}]};case "twitter":return g.SD?{H:"div",ea:["ytp-icon","ytp-icon-share-twitter"]}:{H:"svg",R:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},L:[{H:"rect",R:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{H:"path",R:{d:"M 34.2,0 3.8,0 C 1.70,0 .01,1.70 .01,3.8 L 0,34.2 C 0,36.29 1.70,38 3.8,38 l 30.4,0 C 36.29,38 38,36.29 38,34.2 L 38,3.8 C 38,1.70 36.29,0 34.2,0 l 0,0 z M 29.84,13.92 C 29.72,22.70 24.12,28.71 15.74,29.08 12.28,29.24 9.78,28.12 7.6,26.75 c 2.55,.40 5.71,-0.60 7.41,-2.06 -2.50,-0.24 -3.98,-1.52 -4.68,-3.56 .72,.12 1.48,.09 2.17,-0.05 -2.26,-0.76 -3.86,-2.15 -3.95,-5.07 .63,.28 1.29,.56 2.17,.60 C 9.03,15.64 7.79,12.13 9.21,9.80 c 2.50,2.75 5.52,4.99 10.47,5.30 -1.24,-5.31 5.81,-8.19 8.74,-4.62 1.24,-0.23 2.26,-0.71 3.23,-1.22 -0.39,1.23 -1.17,2.09 -2.11,2.79 1.03,-0.14 1.95,-0.38 2.73,-0.77 -0.47,.99 -1.53,1.9 -2.45,2.66 l 0,0 z",
fill:"#01abf0"}}]};default:return null}};
b0=function(a){for(var b=g.ka(a.B),c=b.next();!c.done;c=b.next())c=c.value,c.detach(),g.Ke(c);a.B=[]};
c0=function(a,b,c,d){g.W.call(this,{H:"button",ea:["ytp-button","ytp-share-button"],R:{title:g.T("YTP_SHARE"),"aria-haspopup":!0,"aria-owns":"ytp-share-panel"},L:[{H:"div",N:"ytp-share-icon",L:["{{icon}}"]},{H:"div",N:"ytp-share-title",L:["{{share}}"]}]});this.o=a;this.A=d;this.G=c;vV(a,this,28664);this.X("click",this.F);this.T(a,"videodatachange",this.C);this.T(a,"appresize",this.C);this.C();g.Je(this,m_(b.o,this.element))};
d0=function(a,b){g.W.call(this,{H:"button",ea:["ytp-airplay-button","ytp-button"],R:{title:g.T("YTP_AIRPLAY")},L:["{{icon}}"]});this.o=a;this.X("click",this.B);this.T(a,"airplayactivechange",this.A);this.T(a,"airplayavailabilitychange",this.A);this.A();g.Je(this,m_(b.o,this.element))};
e0=function(a,b){g.IV.call(this,{H:"div",N:"ytp-storyboard",L:[{H:"div",N:"ytp-storyboard-filmstrip",L:[{H:"div",N:"ytp-storyboard-thumbnail"}]},{H:"div",N:"ytp-storyboard-lens",L:[{H:"div",N:"ytp-storyboard-lens-thumbnail"},{H:"div",N:"ytp-storyboard-lens-timestamp-wrapper",L:[{H:"span",N:"ytp-storyboard-lens-timestamp"}]}]}]});this.o=a;this.da=b.o;this.O=new g.dk(this.aL,250,this);g.N(this,this.O);this.J=g.ZU(a).Ya().width;this.A=this.xa["ytp-storyboard-filmstrip"];this.fa=this.xa["ytp-storyboard-lens"];
this.ga=this.xa["ytp-storyboard-lens-thumbnail"];this.ha=this.xa["ytp-storyboard-lens-timestamp"];this.V=this.xa["ytp-storyboard-thumbnail"];g.pe(this.V);this.K=0;this.P=!1;this.M=this.C=this.B=window.NaN;this.Ib=this.D=null;this.F=new g.DJ(this);g.N(this,this.F);this.G=new g.OV(this,100);g.N(this,this.G);this.T(this.o,"appresize",this.ZK);this.T(this.o,"presentingplayerstatechange",this.bL)};
f0=function(a,b){var c=!!a.Ib;c&&a.Ib.unsubscribe("l",a.qo,a);a.Ib=b&&JQ(b);a.P=!!b&&b.Ca;a.Ib?(c||(a.F.T(a.o,"videodatachange",a.cL),a.F.T(a.o,"progresssync",a.An),a.F.T(a.o,"videoplayerreset",a.An)),a.Ib.subscribe("l",a.qo,a),a.M=window.NaN,a.B=window.NaN,a.C=window.NaN,a.An(),a.G.show(200)):(c&&g.FJ(a.F),a.O.stop(),g.DG(a.K),a.G.hide(),a.G.stop())};
g0=function(a,b,c,d){var e=a.V.cloneNode(!1);a=iQ(a.Ib,b,c);KW(e,a,c,d);return e};
h0=function(a){g.W.call(this,{H:"div",N:"ytp-storyboard-framepreview",L:[{H:"div",N:"ytp-storyboard-framepreview-img"}]});this.D=this.xa["ytp-storyboard-framepreview-img"];this.o=a;this.Ib=null;this.C=window.NaN;this.A=new g.DJ(this);g.N(this,this.A);this.B=new g.OV(this,100);g.N(this,this.B);this.T(this.o,"presentingplayerstatechange",this.fL)};
j0=function(a,b){var c=!!a.Ib;a.Ib=b&&JQ(b);a.Ib?(c||(a.A.T(a.o,"videodatachange",a.hL),a.A.T(a.o,"progresssync",a.gL),a.A.T(a.o,"appresize",a.eL)),a.C=window.NaN,i0(a),a.B.show(200)):(c&&g.FJ(a.A),a.B.hide(),a.B.stop())};
i0=function(a){var b=a.o.getCurrentTime(),c=g.ZU(a.o).Ya(),d=gQ(a.Ib,c.width),b=a.Ib.g[d].Do(b);b!=a.C&&(a.C=b,kQ(a.Ib,b,c.width),b=iQ(a.Ib,b,c.width),KW(a.D,b,c.width,c.height))};
l0=function(a,b){g.W.call(this,{H:"button",ea:["ytp-fullscreen-button","ytp-button"],R:{title:"{{title}}"},L:["{{icon}}"]});this.A=a;this.D=b;this.o=null;this.B=m_(b.o,this.element);this.C=new g.rt(this.FF,2E3,this);g.N(this,this.C);this.T(a,"fullscreentoggled",this.TA);this.T(a,"presentingplayerstatechange",this.Dy);this.X("click",this.iL);if(vF()){var c=g.ZU(this.A);this.T(c,Tia(),this.Bz);this.T(c,yF(window.document),this.jL)}g.X(a).ra||k0(this);this.Dy();this.TA(a.isFullscreen())};
k0=function(a){if(!a.o){var b=g.T(null!=sF(["requestFullscreen","webkitRequestFullscreen","mozRequestFullScreen","msRequestFullscreen"],window.document.body)?"YTP_FULLSCREEN_GENERIC_ERROR":"YTP_FULLSCREEN_UNSUPPORTED_ERROR").split(/\$(BEGIN|END)_LINK/);a.o=new b_(a.A,{H:"div",ea:["ytp-popup","ytp-generic-popup"],R:{role:"alert",tabindex:0},L:[b[0],{H:"a",R:{href:"https://support.google.com/youtube/answer/6276924",target:"_blank"},L:[b[2]]},b[4]]},100,!0);a.o.hide();g.N(a,a.o);a.o.subscribe("show",
(0,g.A)(a.D.Op,a.D,a.o));g.sV(a.A,a.o.element,5);a.element.setAttribute("aria-disabled",!0);a.element.setAttribute("aria-haspopup",!0);a.B();a.B=null}};
m0=function(a){var b={H:"div",N:"ytp-multicam-menu",R:{role:"dialog"},L:[{H:"div",N:"ytp-multicam-menu-header",L:[{H:"div",N:"ytp-multicam-menu-title",L:[g.T("YTP_SWITCH_CAMERA"),{H:"button",ea:["ytp-multicam-menu-close","ytp-button"],R:{"aria-label":g.T("YTP_CLOSE")},L:[g.ZD()]}]}]},{H:"div",N:"ytp-multicam-menu-items"}]};b_.call(this,a,b,250);this.B=new g.DJ(this);g.N(this,this.B);this.T(this.xa["ytp-multicam-menu-close"],"click",this.Qb);this.o=a;this.Ka=this.xa["ytp-multicam-menu-items"];this.A=
[];this.hide()};
n0=function(a,b,c){g.W.call(this,{H:"button",ea:["ytp-multicam-button","ytp-button"],R:{title:g.T("YTP_SWITCH_CAMERA"),"aria-haspopup":!0,"data-preview":"{{preview}}","data-tooltip-text":"{{text}}"},L:[g.SD?{H:"div",ea:["ytp-icon","ytp-icon-switch-camera"]}:{H:"svg",R:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},L:[{H:"path",Pa:!0,R:{d:"M 26,10 22.83,10 21,8 15,8 13.17,10 10,10 c -1.1,0 -2,.9 -2,2 l 0,12 c 0,1.1 .9,2 2,2 l 16,0 c 1.1,0 2,-0.9 2,-2 l 0,-12 c 0,-1.1 -0.9,-2 -2,-2 l 0,0 z m -5,11.5 0,-2.5 -6,0 0,2.5 -3.5,-3.5 3.5,-3.5 0,2.5 6,0 0,-2.5 3.5,3.5 -3.5,3.5 0,0 z",
fill:"#fff"}}]}]});this.o=a;this.C=!1;this.A=b.o;this.D=new g.rt(this.G,400,this);g.N(this,this.D);this.X("click",(0,g.A)(c.wh,c,this.element,!1));this.T(a,"presentingplayerstatechange",g.ya(this.B,!1));this.T(a,"videodatachange",this.F);this.B(!0);g.Je(this,m_(this.A,this.element))};
o0=function(){g.M.call(this);this.A=null;this.C=this.g=0;this.B=new g.ot(this.o,null,this);g.N(this,this.B)};
p0=function(a,b){if("path"==b.H)return b.R.d;if(b.L)for(var c=0;c<b.L.length;c++){var d=b.L[c];if(d&&!g.u(d)&&(d=p0(a,d)))return d}};
t0=function(a,b,c){c=p0(a,c);var d=b.getElementsByTagName("path")[0],e=d.getAttribute("d");if(d.getAttribute("id")){var f=g.$Q.g();b=b.getElementsByTagName("use");for(var k=0;k<b.length;k++)b[k].setAttributeNS("http://www.w3.org/1999/xlink","href","#"+f);d.setAttribute("id",f)}var l=q0(e),m=q0(c);r0(a,function(a){d.setAttribute("d",s0(l,m,a))},200)};
r0=function(a,b,c){a.A=b;a.C=(0,g.sG)();a.g=c;a.o()};
q0=function(a){var b=[];a=a.match(Ona);for(var c=0;c<a.length;c++){var d=(0,window.parseFloat)(a[c]);b.push((0,window.isNaN)(d)?a[c]:d)}return b};
s0=function(a,b,c){var d,e="";for(d=0;d<a.length;d++)var f=a[d],e=g.oa(f)?e+(f+(b[d]-f)*c):e+f;return e};
v0=function(a,b){var c=g.X(a);g.W.call(this,{H:"button",ea:["ytp-mute-button","ytp-button"],R:c.M?{title:"{{title}}"}:{"aria-disabled":!0,"aria-haspopup":!0},L:["{{icon}}"]});this.Da("icon",nE());this.o=a;this.fa=b.o;this.J=this.M=this.K=this.P=window.NaN;this.F=[];this.D=[];this.G=this.B=!1;g.X(this.o).ba||(this.A=new g.$Q({H:"svg",R:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},L:[{H:"defs",L:[{H:"clipPath",R:{id:"ytp-svg-volume-animation-mask"},L:[{H:"path",R:{d:"m 14.35,-0.14 -5.86,5.86 20.73,20.78 5.86,-5.91 z"}},
{H:"path",R:{d:"M 7.07,6.87 -1.11,15.33 19.61,36.11 27.80,27.60 z"}},{H:"path",N:"ytp-svg-volume-animation-mover",R:{d:"M 9.09,5.20 6.47,7.88 26.82,28.77 29.66,25.99 z"}}]},{H:"clipPath",R:{id:"ytp-svg-volume-animation-slash-mask"},L:[{H:"path",N:"ytp-svg-volume-animation-mover",R:{d:"m -11.45,-15.55 -4.44,4.51 20.45,20.94 4.55,-4.66 z"}}]}]},{H:"path",Pa:!0,ea:["ytp-svg-fill","ytp-svg-volume-animation-speaker"],R:{"clip-path":"url(#ytp-svg-volume-animation-mask)",d:"M8,21 L12,21 L17,26 L17,10 L12,15 L8,15 L8,21 Z M19,14 L19,22 C20.48,21.32 21.5,19.77 21.5,18 C21.5,16.26 20.48,14.74 19,14 Z",
fill:"#fff"}},{H:"path",Pa:!0,ea:["ytp-svg-fill","ytp-svg-volume-animation-hider"],R:{"clip-path":"url(#ytp-svg-volume-animation-slash-mask)",d:"M 9.25,9 7.98,10.27 24.71,27 l 1.27,-1.27 Z",fill:"#fff"}}]}),g.N(this,this.A),this.V=this.A.xa["ytp-svg-volume-animation-speaker"],this.ka=this.V.getAttribute("d"),this.F=g.Xd("ytp-svg-volume-animation-mover",this.A.element),this.D=g.Xd("ytp-svg-volume-animation-hider",this.A.element));this.C=null;this.ba=new o0;g.N(this,this.ba);this.O=new o0;g.N(this,
this.O);this.X("click",this.ha);this.T(a,"appresize",this.pd);this.T(a,"onVolumeChange",this.ga);var d=null;c.M?g.Je(this,m_(b.o,this.element)):(c=g.T("YTP_VOLUME_UNSUPPORTED_ERROR").split(/\$(BEGIN|END)_LINK/),d=new b_(a,{H:"span",ea:["ytp-popup","ytp-generic-popup"],R:{tabindex:0},L:[c[0],{H:"a",R:{href:"https://support.google.com/youtube/?p=noaudio",target:"_blank"},L:[c[2]]},c[4]]},100,!0),g.N(this,d),d.hide(),d.subscribe("show",(0,g.A)(b.Op,b,d)),g.sV(a,d.element,5));this.da=d;vV(a,this,28662);
this.pd(g.ZU(a).Ya());u0(this,a.getVolume(),a.Ie())};
u0=function(a,b,c){var d=c?0:b/100,e=g.X(a.o);if(e.ba)d=0==d?nE():0<d&&.5>d?mE():lE(),d!=a.C&&(a.Da("icon",d),a.C=d);else{b=0==d?1:50<b?1:0;if(a.K!=b){var f=a.P;(0,window.isNaN)(f)?w0(a,b):r0(a.ba,(0,g.A)(function(a){w0(this,f+(this.K-f)*a)},a),250);
a.K=b}d=0==d?1:0;if(a.J!=d){var k=a.M;(0,window.isNaN)(k)?x0(a,d):r0(a.O,(0,g.A)(function(a){x0(this,k+(this.J-k)*a)},a),250);
a.J=d}}e.M&&(a.Da("title",c?g.T("YTP_UNMUTE"):g.T("YTP_MUTE")),y0(a.fa))};
w0=function(a,b){a.P=b;var c=a.ka;b&&(c+=s0(Pna,Qna,b));a.V.setAttribute("d",c)};
x0=function(a,b){a.M=b;for(var c=20*b,d=0;d<a.F.length;d++)a.F[d].setAttribute("transform","translate("+c+", "+c+")");var e;1==b?e=nE():e=a.A;for(c=0;c<a.D.length;c++)a.D[c].style.display=0==b?"none":"";e!=a.C&&(a.Da("icon",e),a.C=e)};
z0=function(a,b){g.W.call(this,{H:"button",ea:["ytp-pip-button","ytp-button"],R:{title:g.T("YTP_PIP")},L:[g.SD?{H:"div",ea:["ytp-icon","ytp-icon-pip"]}:{H:"svg",R:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},L:[{H:"path",Pa:!0,R:{d:"M25,17 L17,17 L17,23 L25,23 L25,17 L25,17 Z M29,25 L29,10.98 C29,9.88 28.1,9 27,9 L9,9 C7.9,9 7,9.88 7,10.98 L7,25 C7,26.1 7.9,27 9,27 L27,27 C28.1,27 29,26.1 29,25 L29,25 Z M27,25.02 L9,25.02 L9,10.97 L27,10.97 L27,25.02 L27,25.02 Z",fill:"#fff"}}]}]});
this.o=a;this.X("click",this.A);g.Je(this,m_(b.o,this.element))};
B0=function(a,b){g.W.call(this,{H:"button",ea:["ytp-play-button","ytp-button"],R:{title:"{{title}}","aria-label":"{{label}}"},L:["{{icon}}"]});this.o=a;this.A=null;this.C=b.o;this.B=null;this.D=new o0;g.N(this,this.D);this.T(a,"fullscreentoggled",this.F);this.T(a,"presentingplayerstatechange",this.G);this.T(a,"videodatachange",this.F);A0(this,g.YU(a));this.X("click",this.J,this)};
C0=function(a){switch(a){case 1:return fE();case 2:return eE();case 3:return hE();case 4:return kE();default:return null}};
A0=function(a,b){var c=g.OQ(a.o.ia()),d=!1;if(dK(b))var e=c?4:2;else g.V(b,2)?(e=3,d=c):e=1;a.element.disabled=d;if(a.A!=e){switch(e){case 2:var f=g.T("YTP_PAUSE");break;case 3:f=g.T("YTP_REPLAY");break;case 1:f=g.T("YTP_PLAY");break;case 4:f=g.T("YTP_STOP")}3==e?(a.B||(a.B=m_(a.C,a.element)),a.update({title:f,label:null,icon:C0(e)})):(a.B&&(a.B(),a.B=null),a.update({title:null,label:f}),(c=C0(e))&&a.A&&3!=a.A&&!g.X(a.o).ba?t0(a.D,a.element,c):a.Da("icon",c));y0(a.C);a.A=e}};
E0=function(a,b,c){if(c){var d="ytp-next-button";var e=cE()}else d="ytp-prev-button",e=gE();g.W.call(this,{H:"a",ea:[d,"ytp-button"],R:{title:"{{title}}",href:"{{url}}","data-preview":"{{preview}}","data-tooltip-text":"{{text}}","data-duration":"{{duration}}","aria-disabled":"{{disabled}}","data-next":"{{next}}","data-prev":"{{prev}}"},L:[e]});this.o=a;this.M=b.o;this.B=c;this.A=this.G=null;this.K=!1;this.F=this.J=this.C=null;this.D=!1;this.T(a,"fullscreentoggled",this.pj);this.T(a,"videodatachange",
this.pj);this.T(a,"onPlaylistUpdate",this.pj);this.B||this.T(a,"appresize",this.pd);this.T(a,"mdxpreviousnextchange",function(){D0(this);this.pd()});
this.pj()};
F0=function(a){a.A&&a.A.unsubscribe("shuffle",a.pj,a)};
G0=function(a){return!!a.A&&!a.B&&3<=a.o.getCurrentTime()&&2!=a.o.Wa()};
H0=function(a){var b=g.WU(g.RU(a.o));return b?a.B?b.hasNext():b.Gf():!1};
D0=function(a){var b={duration:null,preview:null,text:null,title:null,url:null},c=g.X(a.o),d=$U(a.o),e=a.B&&g.tV(a.o),f=H0(a);if(a.D)b.title=g.T("YTP_REPLAY");else if(d){var k=null;a.A&&(k=a.A.hc(a.B?VQ(a.A):WQ(a.A)));if(k){if(k.videoId){var l=a.A.listId;b.url=c.getVideoUrl(k.videoId,l?l.toString():void 0)}b.text=k.title;b.duration=k.lengthSeconds?g.JV(k.lengthSeconds):null;b.preview=k.ac(c,"mqdefault.jpg")}b.title=g.T(a.B?"YTP_NEXT":"YTP_PREVIOUS")}else e&&(a.G.Xf&&a.G.Xf.length&&(k=g.HZ(a.G.Xf[0]),
b.url=k.Om(c),b.text=k.title,b.duration=k instanceof g.sQ?g.JV(k.lengthSeconds):null,b.preview=k.ac(c,"mqdefault.jpg")),b.title=g.T("YTP_NEXT"));b.disabled=!e&&!d&&!f;a.update(b);a.K=!!b.url;e||d||a.D||f?a.C||(a.C=m_(a.M,a.element),a.J=a.X("click",a.rL,a)):a.C&&(a.C(),a.C=null,a.za(a.J),a.J=null);y0(a.M)};
J0=function(a,b){g.IV.call(this,{H:"div",N:"ytp-progress-bar-container",R:{"aria-disabled":!0},L:[{H:"div",N:"ytp-progress-bar",R:{tabindex:0,role:"slider","aria-label":g.T("YTP_SEEK_SLIDER"),"aria-valuemin":"{{ariamin}}","aria-valuemax":"{{ariamax}}","aria-valuenow":"{{arianow}}","aria-valuetext":"{{arianowtext}}"},L:[{H:"div",N:"ytp-progress-bar-padding"},{H:"div",N:"ytp-progress-list",L:[{H:"div",ea:["ytp-play-progress","ytp-swatch-background-color"]},{H:"div",N:"ytp-load-progress"},{H:"div",N:"ytp-hover-progress"},
{H:"div",N:"ytp-clip-start-exclude"},{H:"div",N:"ytp-clip-end-exclude"},{H:"div",N:"ytp-ad-progress-list"},{H:"div",N:"ytp-marker-crenellation-list"},{H:"div",N:"ytp-marker-progress-list"}]},{H:"div",N:"ytp-scrubber-container",L:[{H:"div",ea:["ytp-scrubber-button","ytp-swatch-background-color"],L:[{H:"div",N:"ytp-scrubber-pull-indicator"}]}]}]},{H:"div",N:"ytp-bound-time-left",L:["{{boundTimeLeft}}"]},{H:"div",N:"ytp-bound-time-right",L:["{{boundTimeRight}}"]},{H:"div",N:"ytp-clip-start",R:{title:g.T("YTP_WATCH_ALL")},
L:["{{clipstarticon}}"]},{H:"div",N:"ytp-clip-end",R:{title:g.T("YTP_WATCH_ALL")},L:["{{clipendicon}}"]}]});this.Da("clipstarticon",YD());this.Da("clipendicon",XD());this.A=a;this.Fa=b.o;this.Na=!1;this.C=this.Vb=0;this.V=1;this.Bb=this.G=0;this.D=window.NaN;this.ob=!1;this.K=this.da=0;this.Zb=this.xa["ytp-ad-progress-list"];this.kc=this.xa["ytp-marker-progress-list"];this.kb=this.xa["ytp-marker-crenellation-list"];this.P={};this.ka={};this.M=window.Infinity;var c=b.o;this.fa=this.xa["ytp-clip-end"];
g.Je(this,m_(c,this.fa));this.oa=new g.TF(this.fa,!0);g.N(this,this.oa);this.oa.subscribe("hoverstart",this.Hy,this);this.oa.subscribe("hoverend",this.Gy,this);this.T(this.fa,"click",this.Bn);this.Ta=this.xa["ytp-clip-end-exclude"];this.tc=this.xa["ytp-clip-start-exclude"];this.O=0;this.ga=this.xa["ytp-clip-start"];g.Je(this,m_(c,this.ga));this.ra=new g.TF(this.ga,!0);g.N(this,this.ra);this.ra.subscribe("hoverstart",this.Hy,this);this.ra.subscribe("hoverend",this.Gy,this);this.T(this.ga,"click",this.Bn);
this.tb=this.xa["ytp-load-progress"];this.ha=0;this.uc=this.xa["ytp-play-progress"];this.Oa=this.xa["ytp-hover-progress"];this.F=0;this.zb=this.xa["ytp-progress-bar"];this.B=null;this.Gb=this.xa["ytp-scrubber-button"];this.Cc=this.xa["ytp-scrubber-container"];this.sa=new g.Md;this.sb=new JW;this.o=new GW(0,0);this.J=this.ua=!1;this.Ra=null;this.T(a,"presentingplayerstatechange",this.tL);this.T(a,"videodatachange",this.Fy);this.T(a,"videoplayerreset",this.MG);this.T(a,"cuerangesadded",this.Ky);this.T(a,
"cuerangesremoved",this.BL);this.T(a,"cuerangemarkersupdated",this.Ky);this.T(a,"onPlaybackQualityChange",this.uL);I0(this,a.ia(),!0)};
N0=function(a){if(a.C){var b=a.A.kh(),c=new GW(b.seekableStart,b.seekableEnd),d=IW(c,b.loaded,0),b=IW(c,b.current,0),e=a.o.o!=c.o||a.o.g!=c.g;a.o=c;K0(a,b,d);e&&L0(a);M0(a)}};
I0=function(a,b,c){c=void 0===c?!1:c;var d=!!b&&b.He();a.ua=d&&b.hg;O0(a,a.A.Kd());c&&(d?(c=b.clipEnd,a.O=b.clipStart,a.M=c,P0(a),K0(a,a.F,a.ha)):a.Bn(),b=a.Fa,1==b.o&&b.We());N0(a)};
Q0=function(a){return!!a&&a.He()&&!!a.Ma&&a.Ma.video.isAccelerated&&a.Ma.video.A};
R0=function(a,b){a.ob=b;g.S(a.tb,"ytp-fast-load",b)};
S0=function(a,b,c,d){b=g.Hd(b,0,a.J?60:40);a.G=b;var e=a.V,f=Math.max(a.o.getLength()/a.C,1);a.V=b/(a.J?60:40)*(f-1)+1;b=a.C*a.V;a.K=g.Hd(d*b-c,0,b-a.C);e!=a.V&&L0(a)};
L0=function(a){var b=T0(a),c=-b.A/b.g,d=(-b.A+b.width)/b.g,e=g.se(a.kb),f=0;if(a.G>.2*(a.J?60:40))for(var k=c*(a.o.getLength()/60),l=d*(a.o.getLength()/60),k=Math.ceil(k);k<l;k++){var m=e[f];m||(m=g.ie("DIV"),a.kb.appendChild(m));f++;m.className=0==k%60?"ytp-60m-progress":0==k%30?"ytp-30m-progress":0==k%15?"ytp-15m-progress":"ytp-1m-progress";var n=(60*k/a.o.getLength()-c)*b.g;m.style.left=n+"px"}b=a.ua?a.o.g:0;a.update({boundTimeLeft:g.JV(HW(a.o,c)-b),boundTimeRight:g.JV(HW(a.o,d)-b)});for(c=e.length-
1;c>=f;c--)g.pe(e[c]);a.element.style.height=a.G+(a.J?8:5)+"px";a.Y("height-change",a.G);a.Gb.style.height=a.G+(a.J?20:13)+"px";for(var q in a.P)U0(a,a.P[q],a.ka[q]);P0(a);K0(a,a.F,a.ha)};
T0=function(a){var b=a.sa.x,c=a.C*a.V,b=g.Hd(b,0,a.C);a.sb.update(b,a.C,-a.K,-(c-a.K-a.C));return a.sb};
K0=function(a,b,c){a.F=b;a.ha=c;var d=T0(a),e=a.o.g,f=HW(a.o,a.F);a.update({ariamin:Math.floor(a.o.o),ariamax:Math.floor(e),arianow:Math.floor(f),arianowtext:g.T("YTP_PROGRESS_LABEL_2",{PLAY_PROGRESS:g.JV(f),DURATION:g.JV(e)})});var e=IW(a.o,a.O,0),k=IW(a.o,a.M,1),f=g.Hd(b,e,k);c=a.ob?1:g.Hd(c,e,k);k=b*d.g+d.A;a.Gb.style.display=0<=k&&b<=d.width?"":"none";g.bh(a.Cc,"transform","translateX("+k+"px)");V0(a,a.uc,d,e,f);V0(a,a.tb,d,e,c)};
V0=function(a,b,c,d,e,f){b.style.left=Math.max(d*c.g+c.A,0)+"px";d=Math.min((e-d)*c.g+c.A,c.width);(void 0===f?0:f)||g.X(a.A).isMobile?(b.style.width=d+"px",eh(b,"transform")):g.bh(b,"transform","scalex("+(c.width?d/c.width:0)+")")};
P0=function(a){var b=a.O>a.o.o,c=0<a.o.g&&a.M<a.o.g;g.S(a.element,"ytp-clip-start-enabled",b);g.S(a.element,"ytp-clip-end-enabled",c);b=b?IW(a.o,a.O,0):0;c=c?IW(a.o,a.M,1):1;a.ga.style.left=Math.round(1E3*b)/10+"%";a.fa.style.left=Math.round(1E3*c)/10+"%";a.tc.style.width=Math.round(1E3*b)/10+"%";a.Ta.style.left=Math.round(1E3*c)/10+"%";a.Ta.style.width=Math.round(1E3*(1-c))/10+"%"};
M0=function(a){var b=T0(a);V0(a,a.Oa,b,a.F,b.o);g.S(a.Oa,"ytp-hover-progress-light",b.o>a.F)};
U0=function(a,b,c){var d=T0(a),e=IW(a.o,b.start/1E3,0),f=Gja(b)/d.width;switch(b.style){case "ytp-chapter-marker":var k=e+f/2;e-=f/2;break;default:k=IW(a.o,b.end/1E3,1),f!=Number.POSITIVE_INFINITY&&(e=g.Hd(e,0,k-f)),k=Math.min(k,e+f),b.color&&(c.style.background=b.color)}V0(a,c,d,e,k,!0);c.className=b.style};
W0=function(a,b){var c=b.getId();a.P[c]==b&&(g.pe(a.ka[c]),delete a.P[c],delete a.ka[c])};
O0=function(a,b){b?a.B||(a.element.removeAttribute("aria-disabled"),a.B=new g.TF(a.zb,!0),a.B.subscribe("hovermove",a.yL,a),a.B.subscribe("hoverend",a.xL,a),a.B.subscribe("dragstart",a.wL,a),a.B.subscribe("dragmove",a.AL,a),a.B.subscribe("dragend",a.zL,a),a.Ra=a.X("keydown",a.vL)):a.B&&(a.element.setAttribute("aria-disabled",!0),a.za(a.Ra),a.B.cancel(),a.B.dispose(),a.B=null)};
X0=function(a,b){D_.call(this,g.T("YTP_ANNOTATIONS"),5);this.B=b;this.U=a;this.A=!1;this.T(a,"videodatachange",this.C);this.T(a,"onApiChange",this.C);this.subscribe("select",this.D,this);this.C()};
g.Y0=function(a,b,c,d,e,f){var k=g.p_({"aria-haspopup":!0});g.o_.call(this,k,b,a);this.A=d;this.G=!1;this.D=null;this.o={};this.C=new g.r_(c,void 0,a,e,f);g.N(this,this.C);this.X("keydown",this.CL);this.X("click",this.open)};
g.Z0=function(a,b){if(a.D){var c=a.o[a.D];c.element.getAttribute("aria-checked");c.element.removeAttribute("aria-checked")}a.o[b].element.setAttribute("aria-checked",!0);a.dc(a.ff(b));a.D=b};
g.$0=function(a,b){g.u_(a.C);for(var c={},d=!1,e=0;e<b.length;e++){var f=b[e],k=a.o[f],l=f==a.D;l&&(d=!0);k&&k.priority==-e?(g.n_(a.o[f],a.ff(f,!0)),delete a.o[f]):(k=new g.o_({H:"div",ea:["ytp-menuitem"],R:{tabindex:0,role:"menuitemradio","aria-checked":l?!0:null},L:[{H:"div",ea:["ytp-menuitem-label"],L:["{{label}}"]}]},-e,a.ff(f,!0)),k.X("click",(0,g.A)(a.DL,a,f)));c[f]=k;g.s_(a.C,k,!0)}d||(a.D=null);for(var m in a.o)a.o[m].dispose();a.o=c};
a1=function(a,b){g.Y0.call(this,g.T("YTP_AUDIO_TRACK_TITLE"),2,a,b);this.U=a;this.J=new g.W({H:"div",L:[{H:"span",L:[g.T("YTP_AUDIO_TRACK_TITLE")]},{H:"span",N:"ytp-menuitem-label-count",L:["{{content}}"]}]});g.n_(this,this.J);this.K={};this.T(a,"videodatachange",this.F);this.T(a,"onPlaybackAudioChange",this.F);this.F()};
b1=function(a,b){D_.call(this,g.T("YTP_AUTOPLAY"),6);this.D=b;this.U=a;this.B=!1;this.A=[];this.T(a,"presentingplayerstatechange",this.C);this.subscribe("select",this.G,this);this.C()};
c1=function(a,b){g.Y0.call(this,g.T("YTP_QUALITY_TITLE"),1,a,b);g.R(this.C.element,"ytp-quality-menu");this.U=a;this.K={};this.J="unknown";this.F=0;this.O=g.X(a).experiments.g("html5_dim_superoptimal_formats");this.T(a,"videodatachange",this.B);this.T(a,"videoplayerreset",this.B);this.T(a,"onPlaybackQualityChange",this.M);this.B()};
d1=function(a,b,c){var d=a.K[b],e=g.EI[b];var f=d?d.qualityLabel:e?e+"p":g.T("YTP_AUTO");a.O&&a.F&&e>a.F&&(c=c||[],c.push("ytp-quality-superoptimal"));a={H:"span",ea:c,L:[]};d&&d.isAccelerated&&d.A&&a.L.push({H:"div",N:"ytp-menuitem-badge-container",L:[{H:"svg",R:{fill:"#00838f",height:"11px",viewBox:"0 0 48 48",width:"11px"},L:[{H:"path",R:{d:"M0 0v48h48V0H0zm10.6 30.64L4 24.05l6.69-6.69 6.6 6.59-6.69 6.69zM24 44l-6.7-6.7 13.35-13.35-13.32-13.28L24 4l20 20-20 20z"}},{H:"path",R:{d:"M 24,44 44,24 24,4 17.33,10.67 30.65,23.95 17.3,37.3 z M 10.6,30.64 17.29,23.95 10.69,17.36 4,24.05 z",
fill:"#fff"}}]}]});a.L.push(f);var k;"highres"==b?k="8K":"hd2880"==b?k="5K":"hd2160"==b?k="4K":0==b.indexOf("hd")&&(k="HD");k&&(a.L.push(" "),a.L.push({H:"sup",N:"ytp-swatch-color",L:[k]}));return a};
e1=function(a,b,c){g.W.call(this,{H:"button",ea:["ytp-button","ytp-settings-button"],R:{"aria-haspopup":!0,"aria-owns":"ytp-main-menu-id",title:g.T("YTP_SETTINGS")},L:[g.jE()]});this.A=c;this.U=a;this.B=!0;this.X("click",this.C);this.T(a,"onPlaybackQualityChange",this.o);this.T(a,"settingsmenutoggle",this.C);this.T(a,"videodatachange",this.o);this.T(a,"webglsettingschanged",this.o);this.T(a,"appresize",this.pd);g.Je(this,m_(b.o,this.element));this.o();this.pd(g.ZU(a).Ya())};
f1=function(a,b){a.B=!!b;a.pd(g.ZU(a.U).Ya())};
g1=function(a,b){g.Y0.call(this,g.T("YTP_SPEED_TITLE"),4,a,b);this.U=a;this.B=null;this.T(a,"presentingplayerstatechange",this.Ny);this.Ny()};
i1=function(a,b,c,d){var e=g.T("YTP_VIDEO_SUBTITLES_OVERRIDE"),f=new g.r_(b,void 0,e);g.Y0.call(this,h1(d),a,b,c,e,function(){return g.y_(c,f)});
g.R(this.element,"ytp-subtitles-options-menu-item");this.K=d.option.toString();this.M=g.Cb(d.options,this.O,this);this.J=f;g.N(this,this.J);a=new g.o_({H:"div",N:"ytp-menuitemtitle",L:[g.T("YTP_VIDEO_SUBTITLES_OVERRIDE_DESC")]},0);g.N(this,a);g.s_(this.J,a,!0);this.F=new g.o_({H:"div",N:"ytp-menuitem",R:{role:"menuitemradio",tabindex:0},L:[{H:"div",N:"ytp-menuitem-label",L:[g.T("YTP_ON")]}]},-1);g.N(this,this.F);g.s_(this.J,this.F,!0);this.T(this.F.element,"click",g.ya(this.P,!0));this.B=new g.o_({H:"div",
N:"ytp-menuitem",R:{role:"menuitemradio",tabindex:0},L:[{H:"div",N:"ytp-menuitem-label",L:[g.T("YTP_OFF")]}]},-2);g.N(this,this.B);g.s_(this.J,this.B,!0);this.T(this.B.element,"click",g.ya(this.P,!1));g.$0(this,(0,g.I)(d.options,this.O))};
h1=function(a){return(a.message?g.T(a.message):a.text)||""};
j1=function(a,b){g.r_.call(this,a,void 0,g.T("YTP_OPTIONS"));this.o={};for(var c=0;c<g.Q_.length;c++){var d=g.Q_[c],e=new i1(-c,a,b,d);g.N(this,e);e.subscribe("settingChange",this.A,this);this.o[d.option.toString()]=e;g.s_(this,e,!0)}c=new g.o_(g.p_(),-g.Q_.length,g.T("YTP_RESET"));g.N(this,c);c.X("click",(0,g.A)(this.A,this,"reset",!0));g.s_(this,c,!0)};
k1=function(a,b){for(var c in b){var d=a.o[c];if(d){var e=b[c].toString(),f=!!b[c+"Override"];d.o[e]&&(g.Z0(d,e),d.F.element.setAttribute("aria-checked",!f),d.B.element.setAttribute("aria-checked",f))}}};
l1=function(a,b){g.Y0.call(this,g.T("YTP_AUTO_TRANSLATE"),0,a,b);this.B={}};
m1=function(a,b){var c=new j1(a,b);g.Y0.call(this,g.T("YTP_SUBTITLES"),3,a,b,g.T("YTP_OPTIONS"),function(){return g.y_(b,c)});
this.U=a;this.B={};this.M=new g.rt(g.ya(this.Qy,!1),3E3,this);g.N(this,this.M);this.J=new g.W({H:"div",L:[{H:"span",L:[g.T("YTP_SUBTITLES")]},{H:"span",N:"ytp-menuitem-label-count",L:["{{content}}"]}]});g.N(this,this.J);g.n_(this,this.J);this.F=new l1(a,b);g.N(this,this.F);this.F.subscribe("select",this.NL,this);this.K=c;g.N(this,this.K);this.K.subscribe("settingChange",this.ML,this);this.T(a,"videodatachange",this.Qk);this.T(a,"onApiChange",this.Qk);this.T(a,"onCaptionsTrackListChanged",this.Qk);
this.T(a,"captionschanged",this.Qk);this.Qk()};
n1=function(a){g.v_.call(this,a,"ytp-settings-menu");this.A=a;this.B=new g.r_(a);g.N(this,this.B);this.G=null;this.V=!1;this.hide();g.y_(this,this.B)};
o1=function(a){if(!a.V){a.V=!0;var b=new c1(a.A,a);g.N(a,b);b=new m1(a.A,a);g.N(a,b);b=new X0(a.A,a);g.N(a,b);g.X(a.A).Fa&&(b=new g1(a.A,a),g.N(a,b));g.X(a.A).ke&&(b=new b1(a.A,a),g.N(a,b));b=new a1(a.A,a);g.N(a,b);f1(a.G,a.B.Ka.length)}};
p1=function(a,b){g.s_(a.B,b);f1(a.G,a.B.Ka.length)};
q1=function(a,b){a.g&&1>=a.B.Ka.length&&a.hide();g.t_(a.B,b);f1(a.G,a.B.Ka.length)};
r1=function(a,b,c){g.W.call(this,{H:"button",ea:["ytp-remote-button","ytp-button"],R:{title:g.T("YTP_MDX_TOOLTIP"),"aria-haspopup":!0},L:["{{icon}}"]});this.U=a;this.B=c;this.A=null;this.T(a,"onMdxReceiversChange",this.o);this.T(a,"presentingplayerstatechange",this.o);this.T(a,"appresize",this.o);this.o();this.X("click",this.C,this);g.Je(this,m_(b.o,this.element))};
s1=function(a,b){g.W.call(this,{H:"button",ea:["ytp-size-button","ytp-button"],R:{title:"{{title}}"},L:["{{icon}}"]});this.o=a;this.C=b.o;this.B=null;this.D=new o0;g.N(this,this.D);this.T(a,"sizestylechange",this.A);this.T(a,"fullscreentoggled",this.A);this.T(a,"presentingplayerstatechange",this.A);this.A();this.X("click",this.F);g.Je(this,m_(this.C,this.element))};
t1=function(a,b){g.W.call(this,{H:"button",ea:["ytp-subtitles-button","ytp-button"],R:{"aria-pressed":"{{pressed}}",title:g.T("YTP_SUBTITLES_TOOLTIP")},L:[$D()]});this.A=a;this.T(a,"videodatachange",this.o);this.T(a,"appresize",this.o);this.T(a,"onApiChange",this.o);this.T(a,"onCaptionsTrackListChanged",this.o);this.T(a,"captionschanged",this.o);this.o();this.X("click",this.B);g.Je(this,m_(b.o,this.element))};
u1=function(a,b){g.W.call(this,{H:"div",ea:["ytp-time-display","notranslate"],L:[{H:"span",N:"ytp-time-current",L:["{{currenttime}}"]},{H:"span",N:"ytp-time-separator",L:[" / "]},{H:"span",N:"ytp-time-duration",L:["{{duration}}"]}]});this.D=new g.W({H:"button",ea:["ytp-live-badge","ytp-button"],R:{disabled:!0},L:[g.T("YTP_LIVE")]});g.N(this,this.D);this.D.Ja(this.element);this.o=a;this.K=b.o;this.A=null;this.F=this.B=!1;this.J=this.G=null;this.X("click",this.M);this.T(a,"presentingplayerstatechange",
this.C);this.T(a,"appresize",this.C);this.T(a,"videodatachange",this.O);var c=a.ia();c&&(this.B=c.Ca,g.S(this.element,"ytp-live",this.B));this.C()};
w1=function(a,b,c){g.W.call(this,{H:"div",N:"ytp-volume-panel",R:{role:"slider","aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":"{{valuenow}}","aria-valuetext":"{{valuetext}}",tabindex:0},L:[{H:"div",N:"ytp-volume-slider",L:[{H:"div",N:"ytp-volume-slider-handle"}]}]});this.o=a;this.F=b;this.O=c;this.K=!1;this.G=b.ce();this.V=this.C=0;this.P=this.xa["ytp-volume-slider"];this.ba=this.xa["ytp-volume-slider-handle"];this.J=new g.TF(this.P,!0);g.N(this,this.J);this.J.subscribe("dragstart",this.FP,
this);this.J.subscribe("dragmove",this.EP,this);this.J.subscribe("dragend",this.DP,this);this.M=null;this.A=this.B=this.D=!1;this.T(a,"onVolumeChange",this.QL);this.T(a,"appresize",this.pd);this.T(a,"fullscreentoggled",this.OL);this.T(a,"onShowControls",this.jv);this.T(a,"onHideControls",this.jv);this.T(this.element,"keydown",this.GP);this.T(this.element,"focus",g.ya(this.Sy,!0));this.T(this.element,"blur",g.ya(this.Sy,!1));this.pd(g.ZU(a).Ya());v1(this,a.getVolume(),a.Ie())};
v1=function(a,b,c){var d=Math.floor(b),e=d+"% "+g.T("YTP_SCREENREADER_VOLUME_SETTING")+(c?" "+g.T("YTP_SCREENREADER_VOLUME_MUTED"):"");c=c?0:b/100;a.Da("valuenow",d);a.Da("valuetext",e);a.ba.style.left=(a.G?60:40)*c+"px";a.C=b};
x1=function(a,b,c,d,e){var f=a.B||a.D||a.A||a.K;a.B=b;a.D=c;a.A=d;a.K=e;b=a.B||a.D||a.A||a.K;f!=b&&(b?a.M=a.T(a.element,"wheel",a.PL):(a.za(a.M),a.M=null),g.S(a.O,"ytp-volume-slider-active",b))};
y1=function(a,b){var c=g.X(a),d=SO(c);0==d.indexOf("www.")&&(d=d.substring(4));var e=["ytp-youtube-button","ytp-button","yt-uix-sessionlink"];(c="gaming"==c.o)&&e.push("ytp-youtube-gaming-button");g.W.call(this,{H:"a",ea:e,R:{href:"{{url}}",target:"_blank",title:g.T("YTP_URL_NAVIGATE_TO",{WEBSITE:d}),"data-sessionlink":"feature=player-button"},L:[c?g.SD?{H:"div",ea:["ytp-icon","ytp-icon-logo-gaming"]}:{H:"svg",R:{height:"100%",version:"1.1",viewBox:"0 0 98 36",width:"100%"},L:[{H:"path",Pa:!0,N:"ytp-svg-fill",
R:{d:"M19.40,22.92 L19.40,22.08 C18.87,22.71 18.42,23.03 17.93,23.03 C17.50,23.03 17.20,22.82 17.05,22.44 C16.96,22.21 16.89,21.85 16.89,21.32 L16.89,15.23 L18.29,15.23 L18.29,21.47 C18.33,21.69 18.41,21.76 18.59,21.76 C18.86,21.76 19.10,21.52 19.40,21.09 L19.40,15.23 L20.80,15.23 L20.80,22.92 L19.40,22.92 Z M15.41,15.91 C15.04,15.39 14.45,15.17 13.86,15.17 C13.19,15.17 12.69,15.39 12.31,15.91 C12.02,16.30 11.87,16.93 11.87,17.75 L11.87,20.48 C11.87,21.30 12.01,21.86 12.29,22.25 C12.67,22.77 13.27,23.05 13.86,23.05 C14.45,23.05 15.07,22.77 15.44,22.25 C15.73,21.86 15.86,21.30 15.86,20.48 L15.86,17.74 C15.86,16.92 15.70,16.30 15.41,15.91 L15.41,15.91 Z M14.45,20.63 C14.53,21.40 14.30,21.77 13.86,21.77 C13.43,21.77 13.20,21.40 13.27,20.63 L13.27,17.59 C13.20,16.83 13.43,16.47 13.86,16.47 C14.30,16.47 14.53,16.83 14.45,17.59 L14.45,20.63 Z M10.32,22.92 L8.84,22.92 L8.84,18.73 C8.84,18.73 7.31,13.60 7,12.64 L8.55,12.64 L9.58,16.65 L10.61,12.64 L12.16,12.64 L10.32,18.73 L10.32,22.92 Z"}},
{H:"path",ea:["ytp-svg-fill","ytp-svg-fill-logo-tube-text"],R:{d:"M23,12 L43,12 L43,24 L23,24 Z",fill:"none"}},{H:"path",Pa:!0,ea:["ytp-svg-fill","ytp-svg-fill-logo-tube-lozenge"],R:{d:"M42.90,11.22 C42.06,10.32 41.12,10.32 40.69,10.26 C37.60,10.03 32.97,10.03 32.97,10.03 C32.96,10.03 28.34,10.03 25.25,10.26 C24.82,10.32 23.88,10.32 23.04,11.22 C22.38,11.91 22.16,13.47 22.16,13.47 C22.16,13.47 21.94,15.30 21.94,17.13 L21.94,18.85 C21.94,20.68 22.16,22.51 22.16,22.51 C22.16,22.51 22.38,24.07 23.04,24.76 C23.88,25.66 24.98,25.63 25.47,25.73 C27.24,25.90 32.97,25.96 32.97,25.96 C32.97,25.96 37.60,25.95 40.69,25.72 C41.12,25.67 42.06,25.66 42.90,24.76 C43.56,24.07 43.77,22.51 43.77,22.51 C43.77,22.51 43.99,20.68 43.99,18.85 L43.99,17.13 C43.99,15.30 43.77,13.47 43.77,13.47 C43.77,13.47 43.56,11.91 42.90,11.22 L42.90,11.22 Z M25.31,22.92 L25.31,14.16 L23.76,14.16 L23.76,12.72 L28.41,12.71 L28.41,14.16 L26.79,14.16 L26.79,22.92 L25.31,22.92 Z M30.70,22.92 L30.70,22.08 C30.17,22.71 29.72,23.03 29.23,23.03 C28.79,23.03 28.50,22.82 28.35,22.44 C28.25,22.21 28.19,21.85 28.19,21.32 L28.19,15.30 L29.59,15.30 L29.59,21.47 C29.63,21.69 29.71,21.76 29.89,21.76 C30.16,21.76 30.40,21.52 30.70,21.09 L30.70,15.30 L32.10,15.30 L32.10,22.92 L30.70,22.92 Z M37.05,22.16 C36.87,22.72 36.48,23.02 35.95,23.02 C35.48,23.02 34.95,22.72 34.50,22.15 L34.50,22.92 L32.98,22.92 L32.98,12.71 L34.50,12.71 L34.50,16.04 C34.93,15.49 35.46,15.18 35.95,15.18 C36.48,15.18 36.84,15.50 37.02,16.07 C37.11,16.37 37.20,16.87 37.20,17.59 L37.20,20.63 C37.20,21.34 37.14,21.83 37.05,22.16 L37.05,22.16 Z M40.73,21.21 C40.75,21.14 40.74,20.81 40.74,20.25 L42.15,20.25 L42.15,20.47 C42.15,20.91 42.11,21.23 42.10,21.37 C42.05,21.67 41.95,21.95 41.79,22.19 C41.42,22.74 40.87,23.02 40.17,23.02 C39.47,23.02 38.94,22.76 38.55,22.24 C38.27,21.86 38.09,21.29 38.09,20.48 L38.09,17.82 C38.09,17.00 38.25,16.37 38.54,15.99 C38.92,15.47 39.45,15.19 40.14,15.19 C40.81,15.19 41.34,15.47 41.71,15.99 C41.99,16.37 42.15,16.97 42.15,17.78 L42.15,19.34 L39.49,19.34 L39.49,20.71 C39.48,21.41 39.68,21.76 40.14,21.76 C40.47,21.76 40.66,21.58 40.73,21.21 L40.73,21.21 Z M40.12,16.45 C39.68,16.45 39.49,16.64 39.49,17.36 L39.49,18.20 L40.74,18.20 L40.74,17.37 C40.74,16.66 40.57,16.45 40.12,16.45 L40.12,16.45 Z M34.54,16.80 L34.54,21.42 C34.76,21.65 35.02,21.76 35.24,21.76 C35.62,21.76 35.80,21.47 35.80,20.71 L35.80,17.44 C35.80,16.67 35.62,16.45 35.24,16.45 C35.02,16.45 34.76,16.57 34.54,16.80 L34.54,16.80 Z",
fill:"#fff"}},{H:"g",Pa:!0,N:"ytp-svg-fill",L:[{H:"path",R:{d:"M50.85,16.34 C50.14,16.34 49.78,16.77 49.72,17.30 C49.61,18.30 49.61,19.64 49.72,20.65 C49.78,21.18 50.14,21.61 50.85,21.61 C51.55,21.61 52.03,21.21 52.03,20.67 L52.03,20.16 C52.03,20.09 51.98,20.04 51.91,20.04 L51.12,20.04 C50.99,20.04 50.89,19.93 50.89,19.80 L50.89,18.66 C50.89,18.53 50.99,18.42 51.12,18.42 L53.39,18.42 C53.52,18.42 53.63,18.53 53.63,18.66 L53.63,20.67 C53.63,22.11 52.45,23.30 50.85,23.30 C49.25,23.30 48.25,22.09 48.08,20.65 C47.97,19.64 47.97,18.30 48.08,17.30 C48.25,15.86 49.25,14.65 50.85,14.65 C52.46,14.65 53.63,15.79 53.63,17.39 C53.63,17.52 53.52,17.63 53.39,17.63 L52.23,17.63 C52.10,17.63 52.01,17.52 52.00,17.39 C51.95,16.77 51.52,16.34 50.85,16.34"}},
{H:"path",R:{d:"M57.57,19.76 C57.55,19.86 57.60,19.90 57.67,19.90 L58.74,19.90 C58.81,19.90 58.85,19.86 58.83,19.76 L58.27,16.89 C58.26,16.85 58.25,16.84 58.21,16.84 L58.19,16.84 C58.16,16.84 58.14,16.85 58.13,16.89 L57.57,19.76 Z M56.80,22.98 C56.78,23.09 56.69,23.16 56.58,23.16 L55.36,23.16 C55.17,23.16 55.10,23.03 55.13,22.93 L57.21,14.96 C57.24,14.85 57.33,14.78 57.43,14.78 L58.99,14.78 C59.10,14.78 59.19,14.85 59.21,14.96 L61.29,22.93 C61.31,23.03 61.24,23.16 61.06,23.16 L59.83,23.16 C59.73,23.16 59.65,23.09 59.61,22.98 L59.25,21.75 C59.23,21.66 59.18,21.57 59.08,21.57 L57.31,21.57 C57.20,21.57 57.15,21.64 57.13,21.75 L56.80,22.98 Z"}},
{H:"path",R:{d:"M65.75,17.32 C65.78,17.44 65.92,17.44 65.96,17.32 L66.61,14.99 C66.64,14.84 66.73,14.78 66.85,14.78 L68.46,14.78 C68.59,14.78 68.69,14.89 68.69,15.02 L68.69,22.93 C68.69,23.06 68.59,23.16 68.46,23.16 L67.32,23.16 C67.19,23.16 67.09,23.06 67.09,22.93 L67.09,18.18 C67.09,18.12 67.02,18.11 66.99,18.17 L66.45,19.97 C66.40,20.11 66.33,20.17 66.20,20.17 L65.51,20.17 C65.39,20.17 65.32,20.11 65.27,19.97 L64.71,18.17 C64.69,18.11 64.62,18.12 64.62,18.18 L64.62,22.93 C64.62,23.06 64.51,23.16 64.38,23.16 L63.24,23.16 C63.12,23.16 63.01,23.06 63.01,22.93 L63.01,15.02 C63.01,14.89 63.12,14.78 63.24,14.78 L64.85,14.78 C64.98,14.78 65.06,14.84 65.10,14.99 L65.75,17.32 Z"}},
{H:"path",R:{d:"M72.68,16.52 C72.68,16.45 72.63,16.40 72.56,16.40 L71.39,16.40 C71.27,16.40 71.16,16.29 71.16,16.16 L71.16,15.02 C71.16,14.89 71.27,14.78 71.39,14.78 L75.59,14.78 C75.72,14.78 75.82,14.89 75.82,15.02 L75.82,16.16 C75.82,16.29 75.72,16.40 75.59,16.40 L74.42,16.40 C74.35,16.40 74.31,16.45 74.31,16.52 L74.31,21.43 C74.31,21.50 74.35,21.55 74.42,21.55 L75.70,21.55 C75.83,21.55 75.94,21.66 75.94,21.79 L75.94,22.93 C75.94,23.06 75.83,23.16 75.70,23.16 L71.28,23.16 C71.15,23.16 71.05,23.06 71.05,22.93 L71.05,21.79 C71.05,21.66 71.15,21.55 71.28,21.55 L72.56,21.55 C72.63,21.55 72.68,21.50 72.68,21.43 L72.68,16.52 Z"}},
{H:"path",R:{d:"M83.53,22.93 C83.53,23.06 83.42,23.16 83.30,23.16 L81.92,23.16 C81.72,23.16 81.64,23.06 81.61,22.96 L80.02,18.76 C80.00,18.69 79.92,18.71 79.92,18.78 L79.92,22.93 C79.92,23.06 79.81,23.16 79.69,23.16 L78.52,23.16 C78.39,23.16 78.29,23.06 78.29,22.93 L78.29,15.02 C78.29,14.89 78.39,14.78 78.52,14.78 L79.91,14.78 C80.08,14.78 80.16,14.89 80.20,15.00 L81.79,19.55 C81.82,19.62 81.90,19.60 81.90,19.52 L81.90,15.02 C81.90,14.89 82.00,14.78 82.13,14.78 L83.30,14.78 C83.42,14.78 83.53,14.89 83.53,15.02 L83.53,22.93 Z"}},
{H:"path",R:{d:"M88.59,16.34 C87.88,16.34 87.52,16.77 87.46,17.30 C87.35,18.30 87.35,19.64 87.46,20.65 C87.52,21.18 87.88,21.61 88.59,21.61 C89.29,21.61 89.77,21.21 89.77,20.67 L89.77,20.16 C89.77,20.09 89.72,20.04 89.65,20.04 L88.86,20.04 C88.73,20.04 88.63,19.93 88.63,19.80 L88.63,18.66 C88.63,18.53 88.73,18.42 88.86,18.42 L91.13,18.42 C91.26,18.42 91.37,18.53 91.37,18.66 L91.37,20.67 C91.37,22.11 90.19,23.30 88.59,23.30 C86.99,23.30 85.99,22.09 85.82,20.65 C85.71,19.64 85.71,18.30 85.82,17.30 C85.99,15.86 86.99,14.65 88.59,14.65 C90.20,14.65 91.37,15.79 91.37,17.39 C91.37,17.52 91.26,17.63 91.13,17.63 L89.97,17.63 C89.84,17.63 89.75,17.52 89.74,17.39 C89.69,16.77 89.26,16.34 88.59,16.34"}}]}]}:
g.SD?{H:"div",ea:["ytp-icon","ytp-icon-logo"]}:{H:"svg",R:{height:"100%",version:"1.1",viewBox:"0 0 51 36",width:"100%"},L:[{H:"path",Pa:!0,N:"ytp-svg-fill",R:{d:"M19.40,22.92 L19.40,22.08 C18.87,22.71 18.42,23.03 17.93,23.03 C17.50,23.03 17.20,22.82 17.05,22.44 C16.96,22.21 16.89,21.85 16.89,21.32 L16.89,15.23 L18.29,15.23 L18.29,21.47 C18.33,21.69 18.41,21.76 18.59,21.76 C18.86,21.76 19.10,21.52 19.40,21.09 L19.40,15.23 L20.80,15.23 L20.80,22.92 L19.40,22.92 Z M15.41,15.91 C15.04,15.39 14.45,15.17 13.86,15.17 C13.19,15.17 12.69,15.39 12.31,15.91 C12.02,16.30 11.87,16.93 11.87,17.75 L11.87,20.48 C11.87,21.30 12.01,21.86 12.29,22.25 C12.67,22.77 13.27,23.05 13.86,23.05 C14.45,23.05 15.07,22.77 15.44,22.25 C15.73,21.86 15.86,21.30 15.86,20.48 L15.86,17.74 C15.86,16.92 15.70,16.30 15.41,15.91 L15.41,15.91 Z M14.45,20.63 C14.53,21.40 14.30,21.77 13.86,21.77 C13.43,21.77 13.20,21.40 13.27,20.63 L13.27,17.59 C13.20,16.83 13.43,16.47 13.86,16.47 C14.30,16.47 14.53,16.83 14.45,17.59 L14.45,20.63 Z M10.32,22.92 L8.84,22.92 L8.84,18.73 C8.84,18.73 7.31,13.60 7,12.64 L8.55,12.64 L9.58,16.65 L10.61,12.64 L12.16,12.64 L10.32,18.73 L10.32,22.92 Z"}},
{H:"path",ea:["ytp-svg-fill","ytp-svg-fill-logo-tube-text"],R:{d:"M23,12 L43,12 L43,24 L23,24 Z",fill:"none"}},{H:"path",Pa:!0,ea:["ytp-svg-fill","ytp-svg-fill-logo-tube-lozenge"],R:{d:"M42.90,11.22 C42.06,10.32 41.12,10.32 40.69,10.26 C37.60,10.03 32.97,10.03 32.97,10.03 C32.96,10.03 28.34,10.03 25.25,10.26 C24.82,10.32 23.88,10.32 23.04,11.22 C22.38,11.91 22.16,13.47 22.16,13.47 C22.16,13.47 21.94,15.30 21.94,17.13 L21.94,18.85 C21.94,20.68 22.16,22.51 22.16,22.51 C22.16,22.51 22.38,24.07 23.04,24.76 C23.88,25.66 24.98,25.63 25.47,25.73 C27.24,25.90 32.97,25.96 32.97,25.96 C32.97,25.96 37.60,25.95 40.69,25.72 C41.12,25.67 42.06,25.66 42.90,24.76 C43.56,24.07 43.77,22.51 43.77,22.51 C43.77,22.51 43.99,20.68 43.99,18.85 L43.99,17.13 C43.99,15.30 43.77,13.47 43.77,13.47 C43.77,13.47 43.56,11.91 42.90,11.22 L42.90,11.22 Z M25.31,22.92 L25.31,14.16 L23.76,14.16 L23.76,12.72 L28.41,12.71 L28.41,14.16 L26.79,14.16 L26.79,22.92 L25.31,22.92 Z M30.70,22.92 L30.70,22.08 C30.17,22.71 29.72,23.03 29.23,23.03 C28.79,23.03 28.50,22.82 28.35,22.44 C28.25,22.21 28.19,21.85 28.19,21.32 L28.19,15.30 L29.59,15.30 L29.59,21.47 C29.63,21.69 29.71,21.76 29.89,21.76 C30.16,21.76 30.40,21.52 30.70,21.09 L30.70,15.30 L32.10,15.30 L32.10,22.92 L30.70,22.92 Z M37.05,22.16 C36.87,22.72 36.48,23.02 35.95,23.02 C35.48,23.02 34.95,22.72 34.50,22.15 L34.50,22.92 L32.98,22.92 L32.98,12.71 L34.50,12.71 L34.50,16.04 C34.93,15.49 35.46,15.18 35.95,15.18 C36.48,15.18 36.84,15.50 37.02,16.07 C37.11,16.37 37.20,16.87 37.20,17.59 L37.20,20.63 C37.20,21.34 37.14,21.83 37.05,22.16 L37.05,22.16 Z M40.73,21.21 C40.75,21.14 40.74,20.81 40.74,20.25 L42.15,20.25 L42.15,20.47 C42.15,20.91 42.11,21.23 42.10,21.37 C42.05,21.67 41.95,21.95 41.79,22.19 C41.42,22.74 40.87,23.02 40.17,23.02 C39.47,23.02 38.94,22.76 38.55,22.24 C38.27,21.86 38.09,21.29 38.09,20.48 L38.09,17.82 C38.09,17.00 38.25,16.37 38.54,15.99 C38.92,15.47 39.45,15.19 40.14,15.19 C40.81,15.19 41.34,15.47 41.71,15.99 C41.99,16.37 42.15,16.97 42.15,17.78 L42.15,19.34 L39.49,19.34 L39.49,20.71 C39.48,21.41 39.68,21.76 40.14,21.76 C40.47,21.76 40.66,21.58 40.73,21.21 L40.73,21.21 Z M40.12,16.45 C39.68,16.45 39.49,16.64 39.49,17.36 L39.49,18.20 L40.74,18.20 L40.74,17.37 C40.74,16.66 40.57,16.45 40.12,16.45 L40.12,16.45 Z M34.54,16.80 L34.54,21.42 C34.76,21.65 35.02,21.76 35.24,21.76 C35.62,21.76 35.80,21.47 35.80,20.71 L35.80,17.44 C35.80,16.67 35.62,16.45 35.24,16.45 C35.02,16.45 34.76,16.57 34.54,16.80 L34.54,16.80 Z",
fill:"#fff"}}]}]});this.o=a;vV(a,this,28666);this.X("click",this.D);this.T(a,"videodatachange",this.C);this.C();g.Je(this,m_(b.o,this.element))};
z1=function(a,b,c){g.DJ.call(this);var d=g.X(a);this.U=a;this.A=b;this.ba=window.NaN;this.V=null;this.M=c;this.M.subscribe("autohideupdate",this.Py,this);c=!eK(g.YU(a));var e=new g.W({H:"div",N:"ytp-gradient-bottom"});g.N(this,e);g.sV(a,e.element,9);this.K=new g.OV(e,250,c,100);g.N(this,this.K);this.o=new g.W({H:"div",N:"ytp-chrome-bottom",L:[{H:"div",N:"ytp-chrome-controls"}]});g.N(this,this.o);g.sV(a,this.o.element,9);this.J=new g.OV(this.o,250,c,100);g.N(this,this.J);c=this.o.element.children[0];
d.F&&(c.style.background=d.ob);this.g=new n1(a);g.N(this,this.g);g.sV(a,this.g.element,7);this.g.subscribe("show",this.UR,this);this.g.subscribe("show",(0,g.A)(b.rR,b,this.g));this.B=new J0(a,b);g.N(this,this.B);this.B.Ja(this.o.element,0);e=new e0(a,b);g.N(this,e);g.sV(a,e.element,5);this.B.subscribe("height-change",e.dL,e);e=new h0(a);g.N(this,e);g.sV(a,e.element,5);e=new g.$Q({H:"div",N:"ytp-left-controls"});g.N(this,e);e.Ja(c);var f=new E0(a,b,!1);g.N(this,f);f.Ja(e.element);f=new B0(a,b);g.N(this,
f);f.Ja(e.element);f=new E0(a,b,!0);g.N(this,f);f.Ja(e.element);var k=new g.W({H:"span"});g.N(this,k);k.Ja(e.element);if(!d.V&&(this.C=new v0(a,b),g.N(this,this.C),this.C.Ja(k.element),d.M)){f=new w1(a,b,this.o.element);g.N(this,f);f.Ja(k.element);k=new g.TF(k.element);g.N(this,k);var l=(0,g.A)(f.UA,f,!0);k.subscribe("hoverstart",l);k=new g.TF(e.element);g.N(this,k);f=(0,g.A)(f.UA,f,!1);k.subscribe("hoverend",f)}this.O=new u1(a,b);g.N(this,this.O);this.O.Ja(e.element);e=new g.$Q({H:"div",N:"ytp-right-controls"});
g.N(this,e);e.Ja(c);c=new t1(a,b);g.N(this,c);c.Ja(e.element);c=new e1(a,b,this.g);g.N(this,c);this.g.G=c;c.Ja(e.element);c=new m0(a);g.N(this,c);g.sV(a,c.element,6);c.subscribe("show",(0,g.A)(b.Np,b,c));c=new n0(a,b,c);g.N(this,c);c.Ja(e.element);d.Jg&&(this.D=new y1(a,b),g.N(this,this.D),this.D.Ja(e.element));c=new s1(a,b);g.N(this,c);c.Ja(e.element);d.tb&&(c=new r1(a,b,this.g),g.N(this,c),c.Ja(e.element));d.Ig&&(d=new d0(a,b),g.N(this,d),d.Ja(e.element));d=IL();d.webkitSetPresentationMode&&g.ua(d.webkitSupportsPresentationMode)&&
d.webkitSupportsPresentationMode("picture-in-picture")&&(d=new z0(a,b),g.N(this,d),d.Ja(e.element));this.ca=new l0(a,b);g.N(this,this.ca);this.ca.Ja(e.element);this.F=new g.ot(this.JN,null,this);g.N(this,this.F);this.G=null;this.T(a,"appresize",this.Jr);this.T(a,"fullscreentoggled",this.Jr);this.T(a,"presentingplayerstatechange",this.Rs);this.Jr()};
A1=function(a,b){if(eK(g.YU(a.U))||b){if(b){a.J.hide();a.K.hide();if(a.C){var c=a.C;c.G=!1;g.xV(c.o,c,c.B&&!1)}a.D&&(c=a.D,c.B=!1,g.xV(c.o,c,c.A&&!1));a.A.o.Gi(a.pa())}}else b||(a.J.show(),a.K.show(),a.C&&(c=a.C,c.G=!0,g.xV(c.o,c,c.B&&!0)),a.D&&(c=a.D,c.B=!0,g.xV(c.o,c,c.A&&!0)),a.Py())};
C1=function(a){var b=g.ZU(a.U).Ya().width;return Math.max(b-2*B1(a),100)};
B1=function(a){var b=a.A.ce();return 12*(g.X(a.U).F?0:b?2:1)};
g.D1=function(a,b,c,d,e,f,k,l,m,n,q,r){f&&(a=a.charAt(0)+a.substring(1).toLowerCase(),c=c.charAt(0)+c.substring(1).toLowerCase());if("0"===b||"-1"===b)b=null;if("0"===d||"-1"===d)d=null;if(q){c=g.X(r).g;q={href:q,"aria-label":a,tabindex:"-1"};if("embedded"==c||"profilepage"==c)q.target="_blank";g.W.call(this,{H:"div",ea:["ytp-button","ytp-sb"],L:[{H:"a",N:"ytp-sb-subscribe",R:q,L:[{H:"div",N:"ytp-sb-text",L:[{H:"div",N:"ytp-sb-icon"},a]},b?{H:"div",N:"ytp-sb-count",L:[b]}:""]}]});this.X("click",function(a){a.stopPropagation()});
f&&g.R(this.element,"ytp-sb-classic")}else{g.W.call(this,{H:"div",ea:["ytp-button","ytp-sb"],L:[{H:"div",N:"ytp-sb-subscribe",R:{tabindex:"-1","aria-label":a},L:[{H:"div",N:"ytp-sb-text",L:[{H:"div",N:"ytp-sb-icon"},a]},b?{H:"div",N:"ytp-sb-count",L:[b]}:""]},{H:"div",N:"ytp-sb-unsubscribe",R:{tabindex:"-1","aria-label":c},L:[{H:"div",N:"ytp-sb-text",L:[{H:"div",N:"ytp-sb-icon"},c]},d?{H:"div",N:"ytp-sb-count",L:[d]}:""]}]});var w=this;this.o=k;this.U=r;var z=this.xa["ytp-sb-subscribe"],B=this.xa["ytp-sb-unsubscribe"];
f&&g.R(this.element,"ytp-sb-classic");if(e){l&&g.R(this.element,"ytp-sb-subscribed");a=g.X(r);var D=null;"gaming"==a.o&&(D="gaming_channels");if(m){var L=a.baseYtUrl+"subscription_ajax";var Y=function(){return{method:"POST",Wc:{action_create_subscription_to_channel:1,c:w.o},Rb:{feature:m,silo_name:D},withCredentials:!0}};
var Sa=function(){return{method:"POST",Wc:{action_remove_subscriptions:1},Rb:{c:w.o,silo_name:D},withCredentials:!0}}}else if(n)L="/subscription_service",Y=function(){return{method:"POST",
Wc:{action_subscribe:1},Rb:{channel_ids:w.o,itct:n}}},Sa=function(){return{method:"POST",
Wc:{action_unsubscribe:1},Rb:{channel_ids:w.o,itct:n}}};
else return;var bb=function(a){a.stopPropagation();g.KE(L,Y());r.ya("SUBSCRIBE");B.focus();B.removeAttribute("aria-hidden");z.setAttribute("aria-hidden",!0)},ia=function(a){a.stopPropagation();
g.KE(L,Sa());r.ya("UNSUBSCRIBE");z.focus();z.removeAttribute("aria-hidden");B.setAttribute("aria-hidden",!0)};
this.T(z,"click",bb);this.T(B,"click",ia);this.T(z,"keypress",function(a){13==a.keyCode&&bb(a)});
this.T(B,"keypress",function(a){13==a.keyCode&&ia(a)});
var $b=(0,g.A)(this.A,this),tb=(0,g.A)(this.B,this);r.addEventListener("SUBSCRIBE",$b);r.addEventListener("UNSUBSCRIBE",tb);g.Je(this,function(){r.removeEventListener("SUBSCRIBE",$b);r.removeEventListener("UNSUBSCRIBE",tb)})}else g.R(z,"ytp-sb-disabled"),g.R(B,"ytp-sb-disabled")}};
E1=function(a){var b=new g.W({H:"a",N:"ytp-title-channel-logo",R:{href:"{{channelLink}}",target:"_blank"}}),c=g.X(a).experiments.g("embed_author_metadata"),d=null,e=null,f=null;c&&(d={H:"div",N:"ytp-title-beacon"},e=new g.W({H:"button",ea:["ytp-button","ytp-title-notifications"],L:[{H:"div",N:"ytp-title-notifications-on",L:[g.dE()]},{H:"div",N:"ytp-title-notifications-off",L:[g.SD?{H:"div",ea:["ytp-icon","ytp-icon-notifications-inactive"]}:{H:"svg",R:{fill:"#fff",height:"24px",viewBox:"0 0 24 24",
width:"24px"},L:[{H:"path",R:{d:"M18 11c0-3.07-1.64-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.63 5.36 6 7.92 6 11v5l-2 2v1h16v-1l-2-2v-5zm-6 11c.14 0 .27-.01.4-.04.65-.14 1.18-.58 1.44-1.18.1-.24.15-.5.15-.78h-4c.01 1.1.9 2 2.01 2z"}}]}]}]}),f=a.ia(),f=new g.D1(g.T("YTP_SUBSCRIBE"),null,g.T("YTP_SUBSCRIBED"),null,!0,!1,f.ol,!1,"embed_title",null,null,a));g.W.call(this,{H:"div",N:"ytp-title",L:[{H:"div",N:"ytp-title-channel",L:[d,b,{H:"div",N:"ytp-title-channel-popup",L:[{H:"div",
N:"ytp-title-channel-heading",L:[{H:"h2",N:"ytp-title-channel-text",L:[{H:"a",R:{href:"{{popupChannelLink}}",target:"_blank"},L:["{{popupChannelName}}"]}]},{H:"h3",N:"ytp-title-channel-subtext",L:["{{subscriberCount}}"]}]},f,e]}]},{H:"div",N:"ytp-title-text",L:[{H:"a",ea:["ytp-title-link","yt-uix-sessionlink"],R:{target:"_blank",href:"{{url}}","data-sessionlink":"feature=player-title"},L:["{{title}}"]},{H:"div",N:"ytp-title-subtext",L:[{H:"a",N:"ytp-title-channel-name",R:{href:"{{channelLink}}",target:"_blank"},
L:["{{channelName}}"]},{H:"span",N:"ytp-title-view-count",L:["{{viewCount}}"]}]}]}]});var k=this;g.N(this,b);this.o=a;this.A=null;this.O=this.xa["ytp-title-link"];this.G=b;this.B=f;this.C=!1;this.K=this.M=this.J=null;vV(a,this,23851);this.T(a,"videodatachange",this.D);this.T(a,"videoplayerreset",this.D);c&&(this.T(a,"SUBSCRIBE",function(){g.R(k.element,"ytp-subscribed")}),this.T(a,"UNSUBSCRIBE",function(){g.Kp(k.element,"ytp-subscribed")}),g.N(this,e),g.N(this,f),b=this.xa["ytp-title-channel"],this.T(b,
"mouseenter",function(){k.F.stop();
var b=a.getRootNode();g.R(b,"ytp-title-channel-expanded");g.Kp(b,"ytp-title-channel-collapsed")}),this.T(b,"mouseleave",function(){k.F.start()}),this.T(e.element,"click",function(){g.KE("/subscription_ajax?action_update_subscription_preferences=1",{method:"POST",
Rb:{channel_id:k.K,receive_all_updates:!k.C}});k.C=!k.C;g.S(k.element,"ytp-notifications-enabled",k.C)}),this.F=new g.rt(function(){var b=a.getRootNode();
g.Kp(b,"ytp-title-channel-expanded");g.R(b,"ytp-title-channel-collapsed")},1E3),g.N(this,this.F));
this.D()};
G1=function(a){var b=a.o.ia(),c=b.videoId&&(2==a.o.Wa()||g.X(a.o).experiments.g("embed_author_metadata")),d=a.o.getRootNode();c&&b.videoId==a.J?g.R(d,"ytp-title-extra-info"):(g.Kp(d,"ytp-title-extra-info"),c&&(b.author&&b.channelPath&&b.profilePicture?F1(a,b.videoId,b.ol,b.author,b.channelPath,b.profilePicture,b.Cs):b.videoId!=a.M&&(c=g.X(a.o),d={video_id:b.videoId,html5:1,page_subscribe:0},c.Ec&&(d.authuser=c.Ec),c.pageId&&(d.pageid=c.pageId),c=g.Dg(c.baseYtUrl+"get_video_metadata",d),g.KE(c,{method:"GET",
Mb:(0,g.A)(a.V,a,b.videoId),withCredentials:!0}),a.M=b.videoId)))};
F1=function(a,b,c,d,e,f,k){e=g.X(a.o).ha+"://"+RO(g.X(a.o))+e;a.G.element.style.backgroundImage="url("+f+")";a.B&&(a.B.o=c);a.G.Da("channelLink",e);a.Da("channelLink",e);a.Da("channelName",d);a.Da("popupChannelLink",e);a.Da("popupChannelName",d);a.Da("subscriberCount",k);a.K=c;a.J=b;G1(a)};
H1=function(a,b){var c=g.ZU(a).Ya();g.W.call(this,{H:"div",L:[{H:"div",N:"ytp-tooltip-bg",L:[{H:"div",N:"ytp-tooltip-duration",L:["{{duration}}"]}]},{H:"div",N:"ytp-tooltip-text-wrapper",L:[{H:"div",N:"ytp-tooltip-image"},{H:"div",N:"ytp-tooltip-title",L:["{{title}}"]},{H:"span",N:"ytp-tooltip-text",L:["{{text}}"]}]}]});this.O=a;this.ka=b;this.fa=g.X(a).isMobile;this.G=this.xa["ytp-tooltip-bg"];this.oa=this.xa["ytp-tooltip-image"];this.ha=(0,g.A)(this.sO,this);this.P=(0,g.A)(this.uO,this);this.V=
(0,g.A)(this.We,this);this.A=null;this.J=new g.OV(this,100);g.N(this,this.J);this.o=null;this.M=!1;this.B=null;this.C=window.NaN;this.F="";this.ga=c.width;this.K=!0;this.D=1;this.ba=new g.rt(this.FI,250,this);g.N(this,this.ba);this.da=new g.rt(this.We,5E3,this);g.N(this,this.da)};
J1=function(a,b){if(null!=a.o)if(b)switch(a.o){case 3:case 2:I1(a);a.J.show();break;default:a.J.show()}else a.J.hide();a.K=b};
m_=function(a,b){if(a.fa)return g.y;b.addEventListener("mouseover",a.P);return(0,g.A)(function(){this.A==b&&this.We();b.removeEventListener("mouseover",this.P)},a)};
L1=function(a,b,c){if(a.o)if(3==a.o)a.We();else return;K1(a,b,3,c)};
K1=function(a,b,c,d){(0,window.isNaN)(a.C)||(a.C=window.NaN,a.G.style.background="");a.A=b;a.M=!!d;d?a.F=d:(a.F=b.getAttribute("title"),b.removeAttribute("title"));a.element.className="ytp-tooltip";if(b=b.getAttribute("data-tooltip-image"))a.oa.style.backgroundImage="url("+b+")";g.S(a.element,"ytp-tooltip-image-enabled",!!b);a.o=c;a.O.addEventListener("appresize",a.V);a.K&&(I1(a),a.J.show(0))};
I1=function(a){var b=a.A.getAttribute("data-tooltip-text");if(b&&!a.M){a.Da("text",b);var c=a.A.getAttribute("data-duration");a.update({title:a.F,duration:c});var d=a.A.getAttribute("data-preview"),e=160*a.D,f=90*a.D,k=160*a.D,l=90*a.D;a.G.style.width=e+"px";a.G.style.height=f+"px";a.G.style.backgroundImage=d?"url("+d+")":"";a.G.style.backgroundPosition=(e-k)/2+"px "+(f-l)/2+"px";a.G.style.backgroundSize=k+"px "+l+"px";g.Jp(a.element,["ytp-text-detail","ytp-preview"]);g.S(a.element,"ytp-has-duration",
!!c)}else a.Da("text",a.F),g.Lp(a.element,["ytp-text-detail","ytp-preview","ytp-has-duration"]);3==a.o?a.element.setAttribute("role","status"):a.element.removeAttribute("role");M1(a,!!b)};
M1=function(a,b,c){a.element.style.maxWidth=b?"":Math.min(a.ga,200*a.D)+"px";N1(a.ka,a.element,a.A,c,1==a.o);a.element.style.top?g.R(a.element,"ytp-bottom"):a.element.style.bottom&&g.R(a.element,"ytp-top");3==a.o&&a.da.start()};
y0=function(a){a.A&&!a.M&&a.A.hasAttribute("title")&&(a.F=a.A.getAttribute("title"),a.A.removeAttribute("title"),a.K&&I1(a))};
O1=function(a,b){g.S(a.element,"ytp-preview",0<=b);if(!(0>b||b==a.C)){a.C=b;var c=160*a.D,d=160*a.D,e=iQ(a.B,a.C,c);KW(a.G,e,c,d,!0);a.ba.start()}};
g.P1=function(a,b,c,d,e){d=d||375;e=e||440;var f=window.document.location.protocol+"//"+window.document.domain+"/post_login";b&&(f=Cg(f,"mode",b));b=Cg("/signin?context=popup","next",f);c&&(b=Cg(b,"feature",c));if(c=window.open(b,"loginPopup","width="+d+",height="+e+",resizable=yes,scrollbars=yes",!0))b=g.dG("LOGGED_IN",function(b){g.eG(g.OD("LOGGED_IN_PUBSUB_KEY",void 0));g.ND("LOGGED_IN",!0);a(b)}),g.ND("LOGGED_IN_PUBSUB_KEY",b),c.moveTo((window.screen.width-d)/2,(window.screen.height-e)/2)};
S1=function(a,b,c){g.W.call(this,{H:"button",ea:["ytp-watch-later-button","ytp-button"],R:{title:"{{title}}","data-tooltip-image":"{{image}}"},L:[{H:"div",N:"ytp-watch-later-icon",L:["{{icon}}"]},{H:"div",N:"ytp-watch-later-title",L:["{{watch_later}}"]}]});this.o=a;this.G=b.o;this.F=c;g.R(c,"ytp-watch-later-button-visible");this.D=null;this.B=this.A=!1;vV(a,this,28665);this.X("click",this.RL,this);this.T(a,"videoplayerreset",this.SL);this.T(a,"appresize",this.pd);this.pd(g.ZU(a).Ya());a=g.X(this.o);
c=g.OG("yt-player-watch-later-pending");a.experiments.g("embed_show_watchlater_login")&&a.A&&c?(dJ(),Q1(this,c.videoId)):R1(this,2);g.Je(this,m_(b.o,this.element))};
Q1=function(a,b){if(!a.B){a.B=!0;R1(a,3);var c=g.X(a.o);(a.A?Ina:Hna)({videoIds:b,Ec:c.Ec,pageId:c.pageId,onError:a.mQ,Mb:a.A?a.nQ:a.lQ,context:a},c.baseYtUrl,!0)}};
R1=function(a,b,c){if(b!=a.D){switch(b){case 3:var d=QV();break;case 1:d=g.SD?{H:"div",ea:["ytp-icon","ytp-icon-watch-later-added"]}:{H:"svg",R:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},L:[{H:"path",Pa:!0,N:"ytp-svg-fill",R:{d:"M15.03,26 L7,17.91 L9.83,15.05 L14.94,20.19 L25.07,10 L28,12.94 L15.03,26 Z"}}]};break;case 2:d=g.SD?{H:"div",ea:["ytp-icon","ytp-icon-watch-later"]}:{H:"svg",R:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},L:[{H:"path",Pa:!0,N:"ytp-svg-fill",
R:{d:"M18,8 C12.47,8 8,12.47 8,18 C8,23.52 12.47,28 18,28 C23.52,28 28,23.52 28,18 C28,12.47 23.52,8 18,8 L18,8 Z M16,19.02 L16,12.00 L18,12.00 L18,17.86 L23.10,20.81 L22.10,22.54 L16,19.02 Z"}}]};break;case 4:d=g.SD?{H:"div",ea:["ytp-icon","ytp-icon-alert"]}:{H:"svg",R:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},L:[{H:"path",Pa:!0,N:"ytp-svg-fill",R:{d:"M21,7.91 L19.60,20.91 L16.39,20.91 L15,7.91 L21,7.91 Z M18,27.91 C16.61,27.91 15.5,26.79 15.5,25.41 C15.5,24.03 16.61,22.91 18,22.91 C19.38,22.91 20.5,24.03 20.5,25.41 C20.5,26.79 19.38,27.91 18,27.91 Z"}}]}}a.Da("icon",
d);a.D=b}c?a.update({title:c,image:null}):(b=g.X(a.o),b.userDisplayName?(c={USER_NAME:b.userDisplayName},a.update({title:a.A?g.T("YTP_ADDED_TO_WATCH_LATER_AS",c):g.T("YTP_WATCH_LATER_AS_2",c),image:b.userDisplayImage})):a.update({title:g.T("YTP_WATCH_LATER"),image:null}));y0(a.G)};
T1=function(a){g.W.call(this,{H:"a",ea:["ytp-watermark","yt-uix-sessionlink"],R:{target:"_blank",href:"{{url}}","aria-label":g.T("YTP_URL_NAVIGATE_TO",{WEBSITE:SO(g.X(a))}),"data-sessionlink":"feature=player-watermark"},L:[g.SD?{H:"div",ea:["ytp-icon","ytp-icon-watermark"]}:{H:"svg",R:{height:"100%",version:"1.1",viewBox:"0 0 77 34",width:"100%"},L:[{H:"path",Pa:!0,N:"ytp-svg-fill",R:{d:"m 26.81,26.92 0,-1.67 c -1.06,1.25 -1.96,1.89 -2.94,1.89 -0.86,0 -1.46,-0.41 -1.76,-1.17 -0.18,-0.46 -0.31,-1.18 -0.31,-2.23 l 0,-12.18 2.80,0 0,12.48 c .06,.42 .24,.58 .59,.58 .53,0 1.02,-0.48 1.61,-1.34 l 0,-11.72 2.80,0 0,15.38 -2.80,0 0,0 z M 18.83,12.91 c -0.74,-1.05 -1.91,-1.48 -3.10,-1.48 -1.33,0 -2.35,.43 -3.10,1.48 -0.57,.77 -0.88,2.02 -0.88,3.66 l -0.00,5.46 c 0,1.63 .27,2.76 .84,3.53 .74,1.04 1.95,1.60 3.13,1.60 1.18,0 2.41,-0.55 3.16,-1.60 .56,-0.76 .82,-1.89 .82,-3.53 l 0,-5.48 c 0,-1.64 -0.32,-2.87 -0.88,-3.65 l 0,0 0,0 z m -1.91,9.44 c .14,1.52 -0.31,2.27 -1.18,2.27 -0.87,0 -1.32,-0.75 -1.18,-2.27 l 0,-6.09 c -0.14,-1.52 .31,-2.23 1.18,-2.23 .87,0 1.33,.71 1.18,2.23 l -0.00,6.09 0,0 z m -8.27,4.56 -2.95,0 0,-8.37 c 0,0 -3.06,-10.27 -3.69,-12.18 l 3.10,0 2.07,8.02 2.06,-8.02 3.10,0 -3.69,12.18 0,8.37 0,0 z"}},
{H:"path",ea:["ytp-svg-fill","ytp-svg-fill-logo-tube-text"],R:{d:"m 34,5.07 40,0 0,24 -40,0 z",fill:"none"}},{H:"path",Pa:!0,ea:["ytp-svg-fill","ytp-svg-fill-logo-tube-lozenge"],R:{d:"M 73.80,3.53 C 72.12,1.72 70.24,1.72 69.38,1.61 63.21,1.15 53.95,1.15 53.95,1.15 c -0.01,0 -9.27,0 -15.44,.45 -0.86,.10 -2.74,.11 -4.41,1.91 -1.32,1.37 -1.75,4.49 -1.75,4.49 0,0 -0.44,3.66 -0.44,7.32 l 0,3.43 c 0,3.66 .44,7.32 .44,7.32 0,0 .43,3.11 1.75,4.49 1.67,1.80 3.88,1.74 4.86,1.93 C 42.48,32.89 53.94,33 53.94,33 c 0,0 9.26,-0.01 15.43,-0.47 .86,-0.10 2.74,-0.11 4.41,-1.91 1.32,-1.37 1.75,-4.49 1.75,-4.49 0,0 .44,-3.66 .44,-7.32 l 0,-3.43 c 0,-3.66 -0.44,-7.32 -0.44,-7.32 0,0 -0.43,-3.11 -1.75,-4.49 l 0,0 0,0 z m -35.17,23.39 0,-17.51 -3.10,0 0,-2.89 9.30,-0.00 0,2.89 -3.24,0 0,17.51 -2.95,0 0,0 z m 10.78,0 0,-1.67 c -1.06,1.25 -1.96,1.89 -2.94,1.89 -0.86,0 -1.46,-0.41 -1.76,-1.17 -0.18,-0.46 -0.31,-1.18 -0.31,-2.23 l 0,-12.03 2.80,0 0,12.33 c .06,.42 .24,.58 .59,.58 .53,0 1.02,-0.48 1.61,-1.34 l 0,-11.57 2.80,0 0,15.23 -2.80,0 0,0 z m 12.70,-1.52 c -0.35,1.13 -1.13,1.71 -2.19,1.71 -0.95,0 -2.01,-0.58 -2.90,-1.72 l -0.00,1.53 -3.02,0 0,-20.40 3.02,0 -0.00,6.65 c .86,-1.09 1.92,-1.71 2.91,-1.71 1.06,0 1.78,.63 2.13,1.77 .17,.61 .35,1.59 .35,3.03 l 0,6.09 c 0,1.40 -0.11,2.40 -0.29,3.04 l 0,0 0,0 z m 7.36,-1.89 c .02,-0.15 .02,-0.80 .02,-1.91 l 2.80,0 0,.43 c 0,.88 -0.07,1.51 -0.09,1.79 -0.09,.61 -0.30,1.16 -0.62,1.65 -0.73,1.10 -1.83,1.64 -3.23,1.64 -1.39,0 -2.46,-0.51 -3.23,-1.55 -0.56,-0.76 -0.93,-1.89 -0.93,-3.51 l 0,-5.33 c 0,-1.62 .33,-2.88 .89,-3.65 .77,-1.04 1.83,-1.59 3.20,-1.59 1.34,0 2.40,.55 3.15,1.59 .55,.76 .86,1.95 .86,3.58 l 10e-4,3.11 -5.32,0 0,2.73 c -0.00,1.40 .37,2.11 1.29,2.11 .65,0 1.04,-0.36 1.19,-1.10 l 0,0 0,0 z m -1.21,-9.51 c -0.89,0 -1.27,.38 -1.27,1.81 l 0,1.68 2.51,-0.00 0,-1.66 c 0,-1.40 -0.35,-1.83 -1.23,-1.83 l 0,0 0,0 z m -11.16,.69 -0.00,9.23 c .44,.46 .95,.69 1.39,.69 .77,0 1.11,-0.58 1.11,-2.10 l 0,-6.54 c 0,-1.52 -0.34,-1.97 -1.11,-1.97 -0.44,0 -0.94,.23 -1.39,.69 l 0,0 0,0 z",
fill:"#fff"}}]}]});this.A=a;this.o=null;this.T(a,"videodatachange",this.B);this.T(a,"presentingplayerstatechange",this.D);a=g.YU(a);this.Jb(!g.V(a,2));this.B()};
U1=function(a){f_.call(this,a);var b=g.X(a),c=g.ZU(a),d=g.X(this.g),e=d.ba;if(LL("ytp-normal-css-loaded")){var f=LL("ytp-sprite-mode-css-loaded");e!=f&&g.qE(Error("Player sprite mode mismatch. playerInSpriteMode: "+e+", spriteModeCssServed: "+f+", isMobile: "+d.isMobile),"WARNING")}this.V=null;this.G=[];d=new g.W({H:"div",N:"ytp-gradient-top"});g.N(this,d);g.sV(a,d.element,1);this.Ra=new g.OV(d,250,!0,100);g.N(this,this.Ra);this.C=new g.W({H:"div",N:"ytp-chrome-top"});g.N(this,this.C);g.sV(a,this.C.element,
1);this.Oa=new g.OV(this.C,250,!0,100);g.N(this,this.Oa);this.ka=[];this.o=new H1(a,this);g.N(this,this.o);g.sV(a,this.o.element,5);!b.experiments.g("related_on_pause_killswitch")&&b.A&&b.uc&&(this.sb=new T_(a,this),g.N(this,this.sb),g.sV(a,this.sb.element,5));this.J=new l_(a,this);g.N(this,this.J);g.sV(a,this.J.element,2);d=new X_(a);g.N(this,d);g.sV(a,d.element,6);d.subscribe("show",(0,g.A)(this.Np,this,d));this.ka.push(d);d=new Z_(a,this,d);g.N(this,d);d.Ja(this.C.element);this.Ia=new E1(a);g.N(this,
this.Ia);this.Ia.Ja(this.C.element);d=new g.$Q({H:"div",N:"ytp-chrome-top-buttons"});g.N(this,d);d.Ja(this.C.element);b.experiments.g("embed_show_top_buttons")&&b.A&&g.R(d.element,"ytp-chrome-top-show-buttons");b.eR&&(this.oa=new S1(a,this,this.C.element),g.N(this,this.oa),this.oa.Ja(d.element));e=new a0(a,this);g.N(this,e);g.sV(a,e.element,6);e.subscribe("show",(0,g.A)(this.Np,this,e));this.ka.push(e);this.Na=new c0(a,this,e,this.C.element);g.N(this,this.Na);this.Na.Ja(d.element);(this.A="1"==b.C?
new z1(a,this,this.B):null)&&g.N(this,this.A);"3"==b.C&&(d=new $_(a,this),g.N(this,d),g.sV(a,d.element,9));this.K=new L_(a,this);g.N(this,this.K);this.K.subscribe("show",this.By,this);this.Fa=!1;b.Kg&&(d=new T1(a),g.N(this,d),g.sV(a,d.element,8));d=new i_(a);g.N(this,d);g.sV(a,d.element,5);this.fa=new g.W({H:"div",R:{tabindex:0}});this.fa.X("focus",this.eG,this);g.N(this,this.fa);this.da=new g.W({H:"div",R:{tabindex:0}});this.da.X("focus",this.fG,this);g.N(this,this.da);(this.ga=b.useTabletControls?
null:new N_(a,c,this.K,this.B,this.F,(0,g.A)(this.sm,this)))&&g.N(this,this.ga);this.T(a,"fullscreentoggled",this.UK);this.T(a,"offlineslatestatechange",this.DO,this);this.T(a,"cardstatechange",this.Dg,this)};
N1=function(a,b,c,d,e){b.style.left="";b.style.top="";b.style.bottom="";var f=g.uh(b);e=e||a.A&&g.we(a.A.pa(),c);if(null==d||!e){var k=g.uh(c);var l=g.rh(c,a.g.getRootNode())}d=(null==d?l.x+k.width/2:d)-f.width/2;e?(k=B1(a.A),l=C1(a.A),c=g.ZU(a.g).Ya().height,d=g.Hd(d,k,k+l-f.width),f=c-(a.A.A.ce()?72:50)-f.height):g.we(a.C.element,c)?(k=g.ZU(a.g).Ya().width,d=g.Hd(d,12,k-f.width-12),f=a.ce()?69:48,"gvn"==g.X(a.g).o&&(f+=20)):(a=g.ZU(a.g).Ya(),d=g.Hd(d,12,a.width-f.width-12),f=l.y>(a.height-k.height)/
2?l.y-f.height-12:l.y+k.height+12);b.style.top=f+"px";b.style.left=d+"px"};
V1=function(a,b,c){b=c?b.lastElementChild:b.firstElementChild;for(var d=null;b;){if("none"!=g.fh(b,"display")&&"true"!=b.getAttribute("aria-hidden")){var e=void 0;0<=b.tabIndex?e=b:e=V1(a,b,c);e&&(d?c?e.tabIndex>d.tabIndex&&(d=e):e.tabIndex<d.tabIndex&&(d=e):d=e)}b=c?b.previousElementSibling:b.nextElementSibling}return d};
W1=function(a){this.J=a;this.D=null;this.A=[];this.o=[];this.C=[];this.G=1;this.g=[];this.B=!1};
g.uV=function(a,b,c){a.B?a.C.push({type:b,data:c}):a.J.Y(b,c)};
X1=function(a,b){g.M.call(this);var c=this;this.ca=Zia(b);var d=this.ca.args||{};this.Z=new OO(d);g.N(this,this.Z);this.Z.experiments.g("legacy_autoplay_flag")||"detailpage"!=this.Z.g||(d.autoplay="1");this.Cc=sO("detailpage"==this.Z.g&&"blazer"!=this.Z.o,d.enablesizebutton);this.oa=sO(!1,d.player_wide);this.V=this.Z.Fb&&sO(!1,d.external_list);this.ua=(this.kc=this.Z.Fb&&sO(!1,d.external_play_video))&&this.Z.experiments.g("player_unified_fullscreen_transitions");this.P=new g.DJ(this);g.N(this,this.P);
ig=function(a,b){g.qE(b,"WARNING")};
this.Oa=null;this.K=new g.hD;this.ba=new g.hD;this.da=new W1(this.ba);this.da.pause();this.g=new QU(this);g.N(this,this.g);this.J=new QU(this,1);g.N(this,this.J);this.F=new gZ(this);g.N(this,this.F);this.O=1;this.Ta={};this.M=this.Z.storeUserVolume?Eja():{volume:100,muted:this.Z.mute};this.U=this.Z.Fb?new OK(this,1):new iJ(this,1);g.N(this,this.U);this.D=null;this.Ra={};d={};this.tb=(d.internalAbandon=this.wM,d.internalvideodatachange=this.vM,d.playbackready=this.xM,d.playbackstarted=this.yM,d.statechange=
this.zM,d.signatureexpired=this.BP,d);this.A=Rna(this);g.N(this,this.A);this.G=new PP(this.Z,"",this.A);this.o=Sna(this);d={};this.uc=(d.airplayactivechange=this.mM,d.airplayavailabilitychange=this.nM,d.beginseeking=this.HM,d.endseeking=this.vN,d.internalAbandon=this.NN,d.internalaudioformatchange=this.BM,d.internalvideodatachange=this.qr,d.internalvideoformatchange=this.dQ,d.liveviewshift=this.TN,d.playbackstalledatstart=this.HP,d.progresssync=this.bJ,d.seekto=this.cJ,d.onLoadProgress=this.UN,d.onVideoProgress=
this.eJ,d.playbackready=this.OO,d.statechange=this.dA,d.connectionissue=this.fN,d.newelementrequired=this.xO,d.heartbeatparams=this.ZI,d.videoelementevent=this.dJ,d);this.C=null;this.ra=new GZ(5,function(a){a!=g.XU(c,a.getPlayerType())&&a.dispose()});
g.N(this,this.ra);this.zb=this.Bb=-1;this.ob=new g.rt(this.F.fg,16,this.F);g.N(this,this.ob);this.sb=!1;this.fa=!0;this.sa=this.Na=this.B=null;this.Gb=!1;this.Vb=this.tc=null;this.kb=this.ga=0;this.ka=this.Ia=!1;this.Fa=this.ha=null;this.P.T(this.g,"crn_appapi",this.tM);this.P.T(this.g,"crx_appapi",this.uM);this.P.T(this.g,"crn_appad",this.nz);this.P.T(this.g,"crx_appad",this.nz);this.P.T(this.g,"presentingplayerstatechange",this.aJ);this.P.T(this.g,"resize",this.lP);this.F.Ja(g.Vd(a));this.Zb=this.Z.experiments.g("html5_enable_embedded_player_visibility_signals")&&
this.Z.A?new IZ(this.F.element):null;g.N(this,this.Zb);g.SD=this.Z.ba;Tna(this);this.G.o("fs");Una(this);this.Fa=new U1(this.g);this.A.D=this.Fa;this.Fa.init();g.gV(this.J,"init")};
Sna=function(a){var b=new TT(a.Z,1,a.G,a.F,(0,g.A)(a.K.Y,a.K),(0,g.A)(a.mj,a));PU(b,a.Z.A?1:Y1(a,g.OG("yt-player-playback-rate")||1));Z1(a,b,a.tb);return b};
Rna=function(a){var b="",c=a.ca.assets.js||"";0==c.indexOf("//")&&(c=a.Z.ha+":"+c);"/base.js"==c.substr(-8)&&(b=c.substr(0,c.length-8)+"/");b=new bZ(a.g,b,a);c={};a=(c.loaded=(0,g.A)(a.oO,a),c.unloaded=(0,g.A)(a.pO,a),c.destroyed=(0,g.A)(a.Or,a),c);b.fa=a;return b};
a2=function(a,b){a.Oa||(a.Oa=new FZ(a),g.N(a,a.Oa),g.sV(a.g,a.Oa.element,5));a.Oa.Jb(b);$1(a)&&g.WU(a.A).uK()};
c2=function(a){var b=b2.getTag(!0,!a.Z.D);a.D=new OL(b);a.C&&uU(a.C,a.D);try{if(a.Z.V)a.sa&&a.P.za(a.sa),a.sa=a.P.T(a.D,"volumechange",a.lO);else{a.D.setVolume(a.M.volume/100);var c=a.D,d=a.M.muted;KL();c.g.muted=d}}catch(e){b="setvolume.1;emsg."+(e.message&&e.message.replace(/[;:,]/g,"_"));g.cU(a.o,"html5.missingapi","YTP_ERROR_UNSUPPORTED_DEVICE",b);return}Gna(a.F,b);try{QJ(a.D)}catch(e){b="activate.1;emsg."+(e.message&&e.message.replace(/[;:,]/g,"_")),g.cU(a.o,"html5.missingapi","YTP_ERROR_UNSUPPORTED_DEVICE",
b)}};
d2=function(a){if(a.D){a.sa&&(a.P.za(a.sa),a.sa=null);a.C&&tU(a.C);var b=a.F;b.o&&(g.pe(b.o),b.o=null);b2.releaseTag(a.D.pa());a.D=null}};
QY=function(a,b){if(a.C!=b){var c=null;a.C&&(c=a.C.A,fZ(a.A),mV(a,"cuerangesremoved",a.C.D.g.g||[]),RY(a));e2(a,b);a.C=b;a.D&&uU(b,a.D);Z1(a,b,a.uc);a.qr("newdata",b,b.g);a.Z.experiments.g("disable_new_presenting_state_change")||!c||g.cK(c,b.A)||a.dA(new g.hK(b.A,c));b.ga.g&&a.qr("dataloaded",b,b.g);b.g.Ma&&a.g.ya("onPlaybackQualityChange",b.g.Ma.video.quality);mV(a,"cuerangesadded",a.C.D.g.g||[]);dK(b.A)&&AU(b)}};
Z1=function(a,b,c){for(var d in c)b.subscribe(d,c[d],a)};
e2=function(a,b){if(b!=a.o){var c=b.getPlayerType();a.Ra[c]=b}};
RY=function(a){tU(a.C);var b=a.C,c=a.uc,d;for(d in c)b.unsubscribe(d,c[d],a);b=a.C;b!=a.o&&(c=b.getPlayerType(),a.Ra[c]==b&&delete a.Ra[c]);a.C=null};
g.XU=function(a,b){return b?1==b?a.o:a.Ra[b]||null:a.C};
PY=function(a,b){var c=g.XU(a,b);c||(c=f2(a,b),e2(a,c));return c};
f2=function(a,b){if(2==b){var c=g.Wb(a.Z.K);a.Z.experiments.g("legacy_autoplay_flag")&&(c.autoplay="1");c.eventid=g2(a).eventId;c.content_v=g2(a).videoId;c=new OO(c);c.g="adunit";c=new TT(c,2,new PP(c,""),a.F,(0,g.A)(a.K.Y,a.K),(0,g.A)(a.mj,a))}else c=new TT(a.Z,b,a.G,a.F,(0,g.A)(a.K.Y,a.K),(0,g.A)(a.mj,a));return c};
h2=function(a){var b=a.A;if(!b.o)try{b.U.ia(1).adModule?(b.o=new IY(b.ga,b.ga.J),b.o.create()):g.pV(b.U,"ad")}catch(c){g.pV(b.U,"ad"),g.qE(c)}b.Ev();b.Av();b.Gv();b.Iv();b.Hv();b.Dv();b.yv();b.zv();b.Cv();b.Bv();b.Gp();b.Fv();a.g.Y("videoready",g2(a))};
g2=function(a){return a.C.g};
i2=function(a,b){var c=g.XU(a,b);return(c=c?c.o:null)?UJ(c):0};
g.j2=function(a,b,c){(a=g.XU(a,void 0===c?1:c))&&UT(a,b)};
k2=function(a){var b=a.o.g;return a.Z.experiments.g("legacy_autoplay_flag")?a.Z.Ch:b.rh};
Tna=function(a){var b=new g.sQ(a.ca.args);g.sH()&&b.ge.push("remote");b.He()&&(bU(a.o,b,(0,g.A)(a.td,a)),k2(a)&&(a.Z.Rd||a.Z.Cd)&&fU(a.o))};
Una=function(a){var b=a.F,c=b.app.Z;c.Ed||b.Ht("tag-pool-enabled");c.zc&&b.Ht("house-brand");"gvn"==c.o&&(b.Ht("ytp-gvn"),b.element.style.backgroundColor="transparent");c.ka&&(b.G=g.dG("yt-dom-content-change",b.fg,b));b.T(window,"resize",b.fg,b);b=a.U;b.o=a.F.element;for(var d in b.B)b.o[d]=b.B[d];for(d in b.C)b.o[d]=b.C[d];(d=yF(a.F.element))&&a.P.T(a.F,d,a.CN);a.P.T(window,"resize",a.mP);b=a.ca.args;c2(a);d=a.o.g;a.g.ya("onVolumeChange",a.M);if(b&&UQ(b))if((c=VO(a.Z))&&!a.V&&(b.fetch=0),l2(a,b),
c&&!a.V)m2(a);else if(!d.He())a.B.onReady((0,g.A)(a.Wr,a));if(b=a.ca.args.jsapicallback)g.ua(b)||(b=g.x(b)),b&&(0,g.A)(b,pa,a.Z.dr);QY(a,a.o);g.V(a.o.A,128)||(b=JL(a.Z.D),"fmt.noneavailable"==b?g.cU(a.o,"html5.missingapi","YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK","nocodecs.1"):"html5.missingapi"==b?g.cU(a.o,b,"YTP_ERROR_UNSUPPORTED_DEVICE","nocanplaymedia.1"):d&&d.He()&&k2(a)&&(a.Z.Rd||a.Z.Cd)?n2(a):"leanback"!=a.Z.g&&o2(a))};
o2=function(a){a.g.Y("initializingmode");g.p2(a,2);a.A.Gp()};
n2=function(a){if(g.V(a.o.A,128))return!1;k2(a)&&a.Z.Cd&&(b2.hasTags(void 0)&&a.ka?(lJ(a,{muted:!1,volume:a.M.volume},!1),q2(a,!1)):b2.hasTags(void 0)||a.M.muted||(lJ(a,{muted:!0,volume:a.M.volume},!1),q2(a,!0)));r2(a,1,a.o.g.videoId);a.g.Y("initializingmode");QY(a,a.o);g.p2(a,3);var b;if(!(b=!a.Z.Ed||KO()&&!a.Gb)){if(b=a.ha)b=a.D,b=!!b&&b==a.ha.g;b=b&&a.Gb}b&&(d2(a),c2(a),uU(a.o,a.D));iU(a.o);if(g.V(a.o.A,128))return!1;s2(a,3);return a.Gb=!0};
$1=function(a){a=g.WU(a.A);return!!a&&a.loaded};
t2=function(a,b){if(a.C==a.o&&a.C.tc!=b){var c=a.C;c.tc=b;c.o&&(c.o.g.loop=b);a.g.Y("loopchange",b)}};
u2=function(a,b,c){(0,window.isNaN)(b)||(b=Y1(a,b),a.o.ua!=b&&(PU(a.o,b),c&&!a.Z.A&&g.NG("yt-player-playback-rate",b),a.g.ya("onPlaybackRateChange",b)))};
Y1=function(a,b){var c=1,c=a.g.nj();return c=1>b?g.$a(c,function(a){return a>=b}):cb(c,function(a){return a<=b})};
w2=function(a,b){var c=MU(a.o,b);a.C&&a.C!=a.o&&(c=v2(c,MU(a.C,b),"ad_"));if(b&&a.D){c["0sz"]=0==g.uh(a.D.g).Pc();c.op=eh(a.D.g,"opacity");var d=jh(a.D.g).y+g.uh(a.D.g).height;c.yof=0>=d;c.dis=eh(a.D.g,"display")}(d=b?eU():null)&&(c.gpu=d);c.cgr=!0;c.debug_playbackQuality=a.J.Gk();c.debug_date=(new Date).toString();delete c.uga;delete c.q;(d=a.A.F)&&(c=v2(c,d.MB(),"fresca_"));return JSON.stringify(c,null,2)};
VU=function(a){return 1==a.O?1:$1(a)?3:g.XU(a).getPlayerType()};
x2=function(a,b){return 3==VU(a)?gK(g.WU(a.A).F):2==b?a.zb:a.Bb};
y2=function(a){var b=a.A.o;b&&b.C&&b.destroy();t2(a,!1);a.Ta={};a=a.G;b=a.A;b.ca={};b.ba={};a.B=!1};
m2=function(a){var b=z2();if(b)if(!b.list)a.Yl();else if(a.B&&a.B.listId.toString()==b.list)if(0<=b.index){var c=b.video;a.g.isFullscreen()&&((c=c[a.B.Xd()])&&c.encrypted_id!=a.B.hc().videoId||(b.index=a.B.Xd()));YQ(a.B,b);a.Na&&A2(a,a.Na)}else a.Na=null};
l2=function(a,b){a.B&&(a.B.unsubscribe("error",a.Yl,a),g.Ke(a.B),a.B=null);b&&(a.V&&(b.fetch=0),a.B=new g.TQ(b),a.B.subscribe("error",a.Yl,a))};
B2=function(a,b,c,d){b in a.Ta||(c=new g.pJ(c,d,{id:b,priority:1}),c.namespace="appad",US(a.o.D,[c]),a.Ta[b]=c)};
C2=function(a,b,c){c={label:c};a.Z.experiments.g("send_pyv_ad_mt_and_abandon_pings")&&(a=1E3*a.getCurrentTime(),c.ad_mt=Math.round(Math.max(0,a)).toString());return g.HE(b,c)};
g.p2=function(a,b){b!=a.O&&(2==b&&(s2(a,-1),s2(a,5)),a.O=b,a.g.Y("appstatechange",b))};
s2=function(a,b){a.C&&2==a.C.getPlayerType()?a.zb!=b&&(a.zb=b,a.g.ya("onAdStateChange",b)):a.Bb!=b&&(a.Bb=b,a.g.ya("onStateChange",b))};
YY=function(a,b,c,d,e){c=0!=c;if(e=g.XU(a,e))2==a.O&&n2(a),kU(e,b,c,d)};
E2=function(a,b,c,d,e){a.Z.zc&&aQ(b);a.Z.experiments.g("legacy_autoplay_flag")||"detailpage"!=a.Z.g||(b.autoplay="1");var f=new g.sQ(b);d||(b&&UQ(b)?(VO(a.Z)&&!a.V&&(b.fetch=0),l2(a,b)):a.B&&l2(a,null),a.V=sO(!1,b.external_list),VO(a.Z)&&!a.V&&m2(a));return D2(a,f,c,e)};
G2=function(a,b,c,d){a.ra.get(c+b.videoId)||(b.Jn=!0,d?(d=g.XU(a,c),F2(a,c)):d=f2(a,c),bU(d,b,(0,g.A)(a.td,a)),fU(d,!0),a.ra.set(c+b.videoId,d))};
r2=function(a,b,c){var d=b+c;if(c=a.ra.get(d)){a.ra.remove(d);if(c==g.XU(a,b))return c;if(1==c.getPlayerType()){c.g.autonavState=a.o.g.autonavState;b=a.o;var d=a.tb;for(e in d)b.unsubscribe(e,d[e],a);var e=a.o.ua;a.o.dispose();a.o=c;PU(a.o,e);Z1(a,c,a.tb);y2(a)}else(e=g.XU(a,b))&&e.dispose();a.C.getPlayerType()==c.getPlayerType()?QY(a,c):e2(a,c)}return c};
D2=function(a,b,c,d){KP("_start",a.G.g)||(AP("p",void 0,a.G.g),a.G.info("srt",0));var e=r2(a,c||a.C.getPlayerType(),b.videoId);if(!e){e=g.XU(a,c);if(!e)return!1;a.ob.stop();F2(a,c);bU(e,b,(0,g.A)(a.td,a),d)}if(!dU(e))return!1;a.sb&&(e.ob=!1,a.sb=!1);if(e==a.o)return g.p2(a,1),n2(a);iU(e);return!0};
H2=function(a,b,c){c=g.XU(a,c);b&&c==a.o&&(c.g.If=!0)};
J2=function(a,b,c){a.Z.zc&&aQ(b);if(b&&UQ(b))if(a.fa=!0,l2(a,b),(b=a.B.hc())&&b.He())I2(a,b,c);else a.B.onReady((0,g.A)(a.Wr,a));else c||(c=VU(a)),1==c&&a.Yl(),I2(a,new g.sQ(b),c)};
I2=function(a,b,c){var d=g.XU(a,c);d&&(F2(a,c),bU(d,b,(0,g.A)(a.td,a)),d.Z.Zf(b.Yb),d==a.o&&(g.p2(a,1),o2(a)))};
g.L2=function(a,b,c,d,e,f){if(!b&&!d)throw Error("Playback source is invalid");a.g.isFullscreen()&&!a.ua||!NO(a.Z)?(c=a.G,f=c.A,f.ca={},f.ba={},c.B=!1,a.G.reset(),b={video_id:b},e&&(b.autoplay="1"),d?(b.list=d,a.fa=!1,K2(a,b,void 0,void 0,void 0)):E2(a,b,1)):(c=c||{},c.lact=g.vG(),c.vis=a.mj(),a.kc||"gaming"==a.Z.o?a.g.ya("onPlayVideo",{videoId:b,sessionData:c,listId:d}):(d=f&&g2(a).isLiveDestination?a.Z.P:a.Z.getVideoUrl(b,d),e=g.x("yt.player.exports.navigate"),a.Z.experiments.g("legacy_navigate_with_player")?
(e(d,c,!0),AV(d)):e(d,c)))};
K2=function(a,b,c,d,e){if(g.va(b)&&!g.sa(b)){c="playlist list listType index startSeconds suggestedQuality".split(" ");d={};for(e=0;e<c.length;e++){var f=c[e];b[f]&&(d[f]=b[f])}b=d}else c={index:c,startSeconds:d,suggestedQuality:e},g.u(b)&&16==b.length?c.list="PL"+b:c.playlist=b,b=c;l2(a,b);a.B.onReady((0,g.A)(a.Wr,a))};
g.RZ=function(a){if(a.g.app.ka)return!1;if(3==VU(a))return!0;VO(a.Z)&&!a.V&&m2(a);return!(!a.B||!a.B.hasNext())};
M2=function(a,b){a.o.g.autonavState=b;a.g.Y("autonavchange",b)};
N2=function(a,b,c){var d=g.XU(a,1).g.Xf;g.tV(a.g)&&d?(d=g.I(d,g.HZ),b=d[0],d=c?b.Sv:b.Od,g.L2(a,b.hc().videoId,d,b.getPlaylistId(),c)):!a.V||a.g.isFullscreen()&&!a.ua?3==VU(a)?g.WU(a.A).sK():a.B&&(VO(a.Z)&&!a.g.isFullscreen()?A2(a,"yt.www.watch.lists.next"):(a.B.hasNext(b)&&XQ(a.B,VQ(a.B)),a.B.Sc?D2(a,a.B.hc(void 0,c),1):a.fa=!1)):a.g.ya("onPlaylistNext")};
O2=function(a,b){!a.V||a.g.isFullscreen()&&!a.ua?3==VU(a)?g.WU(a.A).tK():a.B&&(VO(a.Z)&&!a.g.isFullscreen()?A2(a,"yt.www.watch.lists.prev"):(a.B.Gf(b)&&XQ(a.B,WQ(a.B)),a.B.Sc?D2(a,a.B.hc(),1):a.fa=!1)):a.g.ya("onPlaylistPrevious")};
A2=function(a,b){var c=g.x(b);if(c){var d=z2();d&&d.list&&c();a.Na=null}else a.Na=b};
z2=function(){var a=g.x("yt.www.watch.lists.getState");return a?a():null};
P2=function(a,b,c,d,e,f){b={id:b};"chapter"==f?(b.style="ytp-chapter-marker",b.visible=!0):(0,window.isNaN)(e)||("ad"==f?b.style="ytp-ad-progress":(b.style="ytp-time-marker",b.color=e),b.visible=!0);c=new g.pJ(1E3*c,1E3*d,b);c.namespace="appapi";kV(a,[c],1);return!0};
kV=function(a,b,c){var d=g.XU(a,c);d&&(US(d.D,b),c&&VU(a)!=c||mV(a,"cuerangesadded",b))};
$Y=function(a){var b=(0,g.sG)(),c=a.getCurrentTime();return b-Math.max(1E3*(c-g2(a).startSeconds),0)};
lJ=function(a,b,c){a.Z.M&&(a.M=b,b.muted||q2(a,!1),c&&a.Z.storeUserVolume&&!a.Z.V&&(c={volume:Math.floor(b.volume),muted:b.muted},c.unstorable||(g.NG("yt-player-volume",c),g.NG("yt-player-volume",c,2592E3))),Q2(a),c=g.UE&&!a.D.wd(),!a.Z.V||c)&&(b=g.Wb(b),a.Z.storeUserVolume||(b.unstorable=!0),a.g.ya("onVolumeChange",b))};
Q2=function(a){var b=g2(a);b.Nl||(a.D.setVolume(a.M.volume*(a.Z.V?1:b.wc)/100),b=a.D,a=a.M.muted,KL(),b.g.muted=a)};
q2=function(a,b){b!=a.ka&&(a.ka=b,a.g.Y("mutedautoplaychange",b))};
Vna=function(a,b){var c=window.screen&&window.screen.orientation;if(a.Z.experiments.g("lock_fullscreen2")&&c&&c.lock&&(!g.UE||!g.R2))if(b){var d=0==c.type.indexOf("portrait"),e=g.kZ(a.F),f=d;1>e?f=!0:1<e&&(f=!1);if(!a.Ia||f!=d){if(c=c.lock(f?"portrait":"landscape"))c["catch"](g.y);a.Ia=!0}}else a.Ia&&(a.Ia=!1,c.unlock())};
S2=function(a,b){var c=!!b,d=!!a.kb!=c;a.kb=b;a.Z.experiments.g("legacy_player_fullscreen_order")?d&&(a.G.o("fsc"),a.Z.ga=c,a.F.fg()):(a.Z.ga=c,a.F.fg(),d&&a.G.o("fsc"));d&&(a.g.Y("fullscreentoggled",c),d=a.o.g,c={fullscreen:c,videoId:d.ypcOrigin||d.videoId,time:a.getCurrentTime()},a.J.getPlaylistId()&&(c.listId=a.J.getPlaylistId()),a.g.ya("onFullscreenChange",c))};
mV=function(a,b,c){a.g.Y(b,c);var d=g.aM(a.Z)||g.IO(a.Z);if(c&&d){switch(b){case "cuerangemarkersupdated":var e="onCueRangeMarkersUpdated";break;case "cuerangesadded":e="onCueRangesAdded";break;case "cuerangesremoved":e="onCueRangesRemoved"}e&&a.g.ya(e,c)}};
VY=function(a,b){var c=g.XU(a,b);c&&(2==a.O?n2(a):!a.Z.experiments.g("disable_reload_on_error")&&c.A.isError()?T2(a,"user"):!a.Z.experiments.g("new_ended_replay")&&g.V(c.A,2)?YY(a,0):AU(c))};
XY=function(a,b){var c=g.XU(a,b);c&&mU(c)};
Wna=function(a){var b=a.o.g,b=new g.sQ({video_id:b.videoId,oauth_token:b.oauthToken});I2(a,b,1)};
F2=function(a,b){g.iP(a.ga);a.ga=0;var c=g.XU(a,b);if(c&&1!=a.O&&2!=a.O){fZ(a.A);if(1==b){var d=a.A.o;d&&d.C&&d.destroy()}sU(c);mV(a,"cuerangesremoved",a.C.D.g.g||[]);c.D.reset()}};
Xna=function(a,b,c,d,e){c=0!=c;var f=g.XU(a,e);if(!f||2!=f.getPlayerType()&&!g.OQ(f.g))3==VU(a)?g.WU(a.A).Nk("control_seek",b,c):YY(a,b,c,d,e)};
Yna=function(a,b,c){a.Cc=b;a.oa=c;a.g.Y("sizestylechange",b,c);a.F.fg()};
T2=function(a,b,c){if(!a.sb){c&&(d2(a),c2(a));a.sb=!0;c=g.XU(a);c.ob=!0;c.Vd("reloading","reason."+b);c=g2(a);var d={};d.video_id=c.videoId;c.Ca||(d.start=g.XU(a).getCurrentTime(),d.resume="1");c.cg&&(d.vvt=c.cg);c.vssCredentialsToken&&(d.vss_credentials_token=c.vssCredentialsToken,d.vss_credentials_token_type=c.wo);c.oauthToken&&(d.oauth_token=c.oauthToken);d.autoplay=1;d.reload_count=c.ni+1;d.reload_reason=b;c.Oj&&(d.unplugged_partner_opt_out=c.Oj);E2(a,d)}};
v2=function(a,b,c){for(var d in b)a[c+d]=b[d];return a};
Zna=function(){};
U2=function(a,b,c){return a[b]=a[b]||c};
$na=function(a){for(var b=0;b<this.length;b++)if(this[b]===a)return b;return-1};
aoa=function(a){a=a.sort();for(var b=[],c=void 0,d=0;d<a.length;d++){var e=a[d];e!=c&&b.push(e);c=e}return b};
V2=function(){var a;if((a=Object.create)&&boa.test(a))a=a(null);else{a={};for(var b in a)a[b]=void 0}return a};
doa=function(){var a=coa.href;if(W2.dpo)var b=W2.h;else{b=W2.h;var c=RegExp("([#].*&|[#])jsh=([^&#]*)","g"),d=RegExp("([?#].*&|[?#])jsh=([^&#]*)","g");if(a=a&&(c.exec(a)||d.exec(a)))try{b=(0,window.decodeURIComponent)(a[2])}catch(e){}}return b};
eoa=function(a){var b=U2(W2,"PQ",[]);W2.PQ=[];var c=b.length;if(0===c)a();else for(var d=0,e=function(){++d===c&&a()},f=0;f<c;f++)b[f](e)};
X2=function(a){return U2(U2(W2,"H",V2()),a,V2())};
Z2=function(a,b,c){b&&0<b.length&&(b=foa(b),c&&0<c.length&&(b+="___"+foa(c)),28<b.length&&(b=b.substr(0,28)+(b.length-28)),c=b,b=U2(goa,"_p",V2()),U2(b,c,V2())[a]=(new Date).getTime(),b=Y2.r,"function"===typeof b?b(a,"_p",c):b.push([a,"_p",c]))};
foa=function(a){return a.join("__").replace(/\./g,"_").replace(/\-/g,"_").replace(/\,/g,"_")};
$2=function(a){throw Error("Bad hint"+(a?": "+a:""));};
loa=function(a,b,c,d){var e=a.split(";"),f=e.shift(),k=hoa[f],l=null;k?l=k(e,b,c,d):$2("no hint processor for: "+f);l||$2("failed to generate load url");b=l;c=b.match(ioa);(d=b.match(joa))&&1===d.length&&koa.test(b)&&c&&1===c.length||$2("failed sanity: "+a);return l};
poa=function(a,b,c,d){function e(a){return(0,window.encodeURIComponent)(a).replace(/%2C/g,",")}
a=moa(a);noa.test(c)||$2("invalid_callback");b=ooa(b);d=d&&d.length?ooa(d):null;return[(0,window.encodeURIComponent)(a.BQ).replace(/%2C/g,",").replace(/%2F/g,"/"),"/k=",e(a.version),"/m=",e(b),d?"/exm="+e(d):"","/rt=j/sv=1/d=1/ed=1",a.Fu?"/am="+e(a.Fu):"",a.CA?"/rs="+e(a.CA):"",a.DC?"/t="+e(a.DC):"","/cb=",e(c)].join("")};
moa=function(a){"/"!==a.charAt(0)&&$2("relative path");for(var b=a.substring(1).split("/"),c=[];b.length;){a=b.shift();if(!a.length||0==a.indexOf("."))$2("empty/relative directory");else if(0<a.indexOf("=")){b.unshift(a);break}c.push(a)}a={};for(var d=0,e=b.length;d<e;++d){var f=b[d].split("="),k=(0,window.decodeURIComponent)(f[0]),l=(0,window.decodeURIComponent)(f[1]);2==f.length&&k&&l&&(a[k]=a[k]||l)}b="/"+c.join("/");qoa.test(b)||$2("invalid_prefix");c=0;for(d=roa.length;c<d;++c)roa[c].test(b)&&
$2("invalid_prefix");c=a3(a,"k",!0);d=a3(a,"am");e=a3(a,"rs");a=a3(a,"t");return{BQ:b,version:c,Fu:d,CA:e,DC:a}};
ooa=function(a){for(var b=[],c=0,d=a.length;c<d;++c){var e=a[c].replace(/\./g,"_").replace(/-/g,"_");soa.test(e)&&b.push(e)}return b.join(",")};
a3=function(a,b,c){a=a[b];!a&&c&&$2("missing: "+b);if(a){if(toa.test(a))return a;$2("invalid: "+b)}return null};
uoa=function(){var a=doa();if(!a)throw Error("Bad hint");return a};
voa=function(a,b){for(var c=[],d=0;d<a.length;++d){var e=a[d];e&&0>$na.call(b,e)&&c.push(e)}return c};
xoa=function(){var a=W2.nonce;if(void 0!==a)return a&&a===String(a)&&a.match(woa)?a:W2.nonce=null;var b=U2(W2,"us",[]);if(!b||!b.length)return W2.nonce=null;for(var c=b3.getElementsByTagName(c3),d=0,e=c.length;d<e;++d){var f=c[d];if(f.src&&(a=String(f.nonce||f.getAttribute("nonce")||"")||null)){for(var k=0,l=b.length;k<l&&b[k]!==f.src;++k);if(k!==l&&a&&a===String(a)&&a.match(woa))return W2.nonce=a}}return null};
zoa=function(a){if("loading"!=b3.readyState)yoa(a);else{var b=xoa(),c="";null!==b&&(c=' nonce="'+b+'"');b3.write("<"+c3+' src="'+(0,window.encodeURI)(a)+'"'+c+"></"+c3+">")}};
yoa=function(a){var b=b3.createElement(c3);b.setAttribute("src",a);a=xoa();null!==a&&b.setAttribute("nonce",a);b.async="true";(a=b3.getElementsByTagName(c3)[0])?a.parentNode.insertBefore(b,a):(b3.head||b3.body||b3.documentElement).appendChild(b)};
Aoa=function(a,b){var c=b&&b._c;if(c)for(var d=0;d<d3.length;d++){var e=d3[d][0],f=d3[d][1];f&&Object.prototype.hasOwnProperty.call(c,e)&&f(c[e],a,b)}};
Coa=function(a,b,c){Boa(function(){var c=b===doa()?U2(e3,"_",V2()):V2();c=U2(X2(b),"_",c);a(c)},c)};
f3=function(a,b){var c=b||{};"function"==typeof b&&(c={},c.callback=b);Aoa(a,c);var d=a?a.split(":"):[],e=c.h||uoa(),f=U2(W2,"ah",V2());if(f["::"]&&d.length){for(var k=[],l=null;l=d.shift();){var m=l.split("."),m=f[l]||f[m[1]&&"ns:"+m[0]||""]||e,n=k.length&&k[k.length-1]||null,q=n;n&&n.hint==m||(q={hint:m,features:[]},k.push(q));q.features.push(l)}var r=k.length;if(1<r){var w=c.callback;w&&(c.callback=function(){0==--r&&w()})}for(;d=k.shift();)Doa(d.features,c,d.hint)}else Doa(d||[],c,e)};
Doa=function(a,b,c){function d(a,b){if(r)return 0;g3.clearTimeout(q);w.push.apply(w,B);var d=((e3||{}).config||{}).update;d?d(f):f&&U2(W2,"cu",[]).push(f);if(b){Z2("me0",a,z);try{Coa(b,c,n)}finally{Z2("me1",a,z)}}return 1}
a=aoa(a)||[];var e=b.callback,f=b.config,k=b.timeout,l=b.ontimeout,m=b.onerror,n=void 0;"function"==typeof m&&(n=m);var q=null,r=!1;if(k&&!l||!k&&l)throw"Timeout requires both the timeout parameter and ontimeout parameter to be set";var m=U2(X2(c),"r",[]).sort(),w=U2(X2(c),"L",[]).sort(),z=[].concat(m);0<k&&(q=g3.setTimeout(function(){r=!0;l()},k));
var B=voa(a,w);if(B.length){var B=voa(a,m),D=U2(W2,"CP",[]),L=D.length;D[L]=function(a){function b(){var a=D[L+1];a&&a()}
function c(b){D[L]=null;d(B,a)&&eoa(function(){e&&e();b()})}
if(!a)return 0;Z2("ml1",B,z);0<L&&D[L-1]?D[L]=function(){c(b)}:c(b)};
if(B.length){var Y="loaded_"+W2.I++;e3[Y]=function(a){D[L](a);e3[Y]=null};
a=loa(c,B,"gapi."+Y,m);m.push.apply(m,B);Z2("ml0",B,z);b.sync||g3.___gapisync?zoa(a):yoa(a)}else D[L](Zna)}else d(B)&&e&&e()};
Boa=function(a,b){if(W2.hee&&0<W2.hel)try{return a()}catch(c){b&&b(c),W2.hel--,f3("debug_error",function(){try{window.___jsl.hefn(c)}catch(d){throw c;}})}else try{return a()}catch(c){throw b&&b(c),c;
}};
g.i3=function(a){this.g=a||yG();h3||(h3=Eoa(this.g))};
Eoa=function(a){return(new g.Kf(function(b){try{var c={gapiHintOverride:a.gapiHintOverride,_c:{jsl:{h:a.gapiHintParams}},callback:b};b=c;b=void 0===b?{}:b;g.ua(b)&&(b={callback:b});b._c&&b._c.jsl&&b._c.jsl.h||g.Zb(b,{_c:{jsl:{h:g.OD("GAPI_HINT_PARAMS",void 0)}}});c=b;if(c.gapiHintOverride||g.OD("GAPI_HINT_OVERRIDE")){var d=g.FE(window.document.location.href).gapi_jsh;d&&g.Zb(c,{_c:{jsl:{h:d}}})}f3("client",c)}catch(e){g.qE(e)}})).then(function(){})};
Foa=function(a,b,c,d){var e={path:zG(a.g.innertubeApiVersion,b,c),headers:{"X-Goog-Visitor-Id":g.OD("VISITOR_DATA")},method:"POST",body:g.mg(c)},f=(0,g.A)(a.B,a);h3.then(function(){f();g.x("gapi.client.request")(e).execute(d||g.y)})};
g.aa=[];ea="function"==typeof Object.defineProperties?Object.defineProperty:function(a,b,c){a!=Array.prototype&&a!=Object.prototype&&(a[b]=c.value)};
da="undefined"!=typeof window&&window===this?this:"undefined"!=typeof window.global&&null!=window.global?window.global:this;baa=0;
la("String.prototype.startsWith",function(a){return a?a:function(a,c){if(null==this)throw new TypeError("The 'this' value for String.prototype.startsWith must not be null or undefined");if(a instanceof RegExp)throw new TypeError("First argument to String.prototype.startsWith must not be a regular expression");var b=this+"";a+="";for(var e=b.length,f=a.length,k=Math.max(0,Math.min(c|0,b.length)),l=0;l<f&&k<e;)if(b[k++]!=a[l++])return!1;return l>=f}});
la("Array.prototype.fill",function(a){return a?a:function(a,c,d){var b=this.length||0;0>c&&(c=Math.max(0,b+c));if(null==d||d>b)d=b;d=Number(d);0>d&&(d=Math.max(0,b+d));for(c=Number(c||0);c<d;c++)this[c]=a;return this}});
la("Promise",function(a){function b(a){this.g=0;this.B=void 0;this.o=[];var b=this.C();try{a(b.resolve,b.reject)}catch(l){b.reject(l)}}
function c(){this.g=null}
if(a)return a;c.prototype.o=function(a){null==this.g&&(this.g=[],this.B());this.g.push(a)};
c.prototype.B=function(){var a=this;this.A(function(){a.D()})};
var d=da.setTimeout;c.prototype.A=function(a){d(a,0)};
c.prototype.D=function(){for(;this.g&&this.g.length;){var a=this.g;this.g=[];for(var b=0;b<a.length;++b){var c=a[b];delete a[b];try{c()}catch(m){this.C(m)}}}this.g=null};
c.prototype.C=function(a){this.A(function(){throw a;})};
b.prototype.C=function(){function a(a){return function(d){c||(c=!0,a.call(b,d))}}
var b=this,c=!1;return{resolve:a(this.M),reject:a(this.D)}};
b.prototype.M=function(a){if(a===this)this.D(new TypeError("A Promise cannot resolve to itself"));else if(a instanceof b)this.O(a);else{a:switch(typeof a){case "object":var c=null!=a;break a;case "function":c=!0;break a;default:c=!1}c?this.K(a):this.F(a)}};
b.prototype.K=function(a){var b=void 0;try{b=a.then}catch(l){this.D(l);return}"function"==typeof b?this.P(b,a):this.F(a)};
b.prototype.D=function(a){this.G(2,a)};
b.prototype.F=function(a){this.G(1,a)};
b.prototype.G=function(a,b){if(0!=this.g)throw Error("Cannot settle("+a+", "+b|"): Promise already settled in state"+this.g);this.g=a;this.B=b;this.J()};
b.prototype.J=function(){if(null!=this.o){for(var a=this.o,b=0;b<a.length;++b)a[b].call(),a[b]=null;this.o=null}};
var e=new c;b.prototype.O=function(a){var b=this.C();a.A(b.resolve,b.reject)};
b.prototype.P=function(a,b){var c=this.C();try{a.call(b,c.resolve,c.reject)}catch(m){c.reject(m)}};
b.prototype.then=function(a,c){function d(a,b){return"function"==typeof a?function(b){try{e(a(b))}catch(B){f(B)}}:b}
var e,f,k=new b(function(a,b){e=a;f=b});
this.A(d(a,e),d(c,f));return k};
b.prototype["catch"]=function(a){return this.then(void 0,a)};
b.prototype.A=function(a,b){function c(){switch(d.g){case 1:a(d.B);break;case 2:b(d.B);break;default:throw Error("Unexpected state: "+d.g);}}
var d=this;null==this.o?e.o(c):this.o.push(function(){e.o(c)})};
b.resolve=function(a){return a instanceof b?a:new b(function(b){b(a)})};
b.reject=function(a){return new b(function(b,c){c(a)})};
b.g=function(a){return new b(function(c,d){for(var e=g.ka(a),f=e.next();!f.done;f=e.next())b.resolve(f.value).A(c,d)})};
b.all=function(a){var c=g.ka(a),d=c.next();return d.done?b.resolve([]):new b(function(a,e){function f(b){return function(c){k[b]=c;l--;0==l&&a(k)}}
var k=[],l=0;do k.push(void 0),l++,b.resolve(d.value).A(f(k.length-1),e),d=c.next();while(!d.done)})};
b.$jscomp$new$AsyncExecutor=function(){return new c};
return b});
la("WeakMap",function(a){function b(a){this.Aa=(f+=Math.random()+1).toString();if(a){ca();ga();a=g.ka(a);for(var b;!(b=a.next()).done;)b=b.value,this.set(b[0],b[1])}}
function c(a){ma(a,e)||ea(a,e,{value:{}})}
function d(a){var b=Object[a];b&&(Object[a]=function(a){c(a);return b(a)})}
if(function(){if(!a||!Object.seal)return!1;try{var b=Object.seal({}),c=Object.seal({}),d=new a([[b,2],[c,3]]);if(2!=d.get(b)||3!=d.get(c))return!1;d["delete"](b);d.set(c,4);return!d.has(b)&&4==d.get(c)}catch(n){return!1}}())return a;
var e="$jscomp_hidden_"+Math.random().toString().substring(2);d("freeze");d("preventExtensions");d("seal");var f=0;b.prototype.set=function(a,b){c(a);if(!ma(a,e))throw Error("WeakMap key fail: "+a);a[e][this.Aa]=b;return this};
b.prototype.get=function(a){return ma(a,e)?a[e][this.Aa]:void 0};
b.prototype.has=function(a){return ma(a,e)&&ma(a[e],this.Aa)};
b.prototype["delete"]=function(a){return ma(a,e)&&ma(a[e],this.Aa)?delete a[e][this.Aa]:!1};
return b});
la("Map",function(a){function b(){var a={};return a.previous=a.next=a.head=a}
function c(a,b){var c=a.g;return ha(function(){if(c){for(;c.head!=a.g;)c=c.previous;for(;c.next!=c.head;)return c=c.next,{done:!1,value:b(c)};c=null}return{done:!0,value:void 0}})}
function d(a,b){var c=b&&typeof b;"object"==c||"function"==c?f.has(b)?c=f.get(b):(c=""+ ++k,f.set(b,c)):c="p_"+b;var d=a.o[c];if(d&&ma(a.o,c))for(var e=0;e<d.length;e++){var l=d[e];if(b!==b&&l.key!==l.key||b===l.key)return{id:c,list:d,index:e,sd:l}}return{id:c,list:d,index:-1,sd:void 0}}
function e(a){this.o={};this.g=b();this.size=0;if(a){a=g.ka(a);for(var c;!(c=a.next()).done;)c=c.value,this.set(c[0],c[1])}}
if(function(){if(!a||!a.prototype.entries||"function"!=typeof Object.seal)return!1;try{var b=Object.seal({x:4}),c=new a(g.ka([[b,"s"]]));if("s"!=c.get(b)||1!=c.size||c.get({x:4})||c.set({x:4},"t")!=c||2!=c.size)return!1;var d=c.entries(),e=d.next();if(e.done||e.value[0]!=b||"s"!=e.value[1])return!1;e=d.next();return e.done||4!=e.value[0].x||"t"!=e.value[1]||!d.next().done?!1:!0}catch(r){return!1}}())return a;
ca();ga();var f=new window.WeakMap;e.prototype.set=function(a,b){var c=d(this,a);c.list||(c.list=this.o[c.id]=[]);c.sd?c.sd.value=b:(c.sd={next:this.g,previous:this.g.previous,head:this.g,key:a,value:b},c.list.push(c.sd),this.g.previous.next=c.sd,this.g.previous=c.sd,this.size++);return this};
e.prototype["delete"]=function(a){a=d(this,a);return a.sd&&a.list?(a.list.splice(a.index,1),a.list.length||delete this.o[a.id],a.sd.previous.next=a.sd.next,a.sd.next.previous=a.sd.previous,a.sd.head=null,this.size--,!0):!1};
e.prototype.clear=function(){this.o={};this.g=this.g.previous=b();this.size=0};
e.prototype.has=function(a){return!!d(this,a).sd};
e.prototype.get=function(a){return(a=d(this,a).sd)&&a.value};
e.prototype.entries=function(){return c(this,function(a){return[a.key,a.value]})};
e.prototype.keys=function(){return c(this,function(a){return a.key})};
e.prototype.values=function(){return c(this,function(a){return a.value})};
e.prototype.forEach=function(a,b){for(var c=this.entries(),d;!(d=c.next()).done;)d=d.value,a.call(b,d[1],d[0],this)};
e.prototype[window.Symbol.iterator]=e.prototype.entries;var k=0;return e});
la("Set",function(a){function b(a){this.g=new window.Map;if(a){a=g.ka(a);for(var b;!(b=a.next()).done;)this.add(b.value)}this.size=this.g.size}
if(function(){if(!a||!a.prototype.entries||"function"!=typeof Object.seal)return!1;try{var b=Object.seal({x:4}),d=new a(g.ka([b]));if(!d.has(b)||1!=d.size||d.add(b)!=d||1!=d.size||d.add({x:4})!=d||2!=d.size)return!1;var e=d.entries(),f=e.next();if(f.done||f.value[0]!=b||f.value[1]!=b)return!1;f=e.next();return f.done||f.value[0]==b||4!=f.value[0].x||f.value[1]!=f.value[0]?!1:e.next().done}catch(k){return!1}}())return a;
ca();ga();b.prototype.add=function(a){this.g.set(a,a);this.size=this.g.size;return this};
b.prototype["delete"]=function(a){a=this.g["delete"](a);this.size=this.g.size;return a};
b.prototype.clear=function(){this.g.clear();this.size=0};
b.prototype.has=function(a){return this.g.has(a)};
b.prototype.entries=function(){return this.g.entries()};
b.prototype.values=function(){return this.g.values()};
b.prototype.keys=b.prototype.values;b.prototype[window.Symbol.iterator]=b.prototype.values;b.prototype.forEach=function(a,b){var c=this;this.g.forEach(function(d){return a.call(b,d,d,c)})};
return b});
la("Reflect.apply",function(a){if(a)return a;var b=Function.prototype.apply;return function(a,d,e){return b.call(a,d,e)}});
var Goa="function"==typeof Object.create?Object.create:function(a){function b(){}
b.prototype=a;return new b};
la("Reflect.construct",function(a){return a?a:function(a,c,d){void 0===d&&(d=a);d=Goa(d.prototype||Object.prototype);return window.Reflect.apply(a,d,c)||d}});
Hw=Hw||{};pa=this;wa="closure_uid_"+(1E9*Math.random()>>>0);caa=0;g.G=Date.now||function(){return+new Date};g.C(Ca,Error);Ca.prototype.name="CustomError";var Td;var Pa=String.prototype.trim?function(a){return a.trim()}:function(a){return a.replace(/^[\s\xa0]+|[\s\xa0]+$/g,"")},gaa=/&/g,haa=/</g,iaa=/>/g,jaa=/"/g,kaa=/'/g,laa=/\x00/g,faa=/[\x00&<>"']/,maa=/&([^;\s<&]+);?/g,yC={"\x00":"\\0",
"\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\x0B":"\\x0B",'"':'\\"',"\\":"\\\\","<":"<"},xC={"'":"\\'"},Ma=String.prototype.repeat?function(a,b){return a.repeat(b)}:function(a,b){return Array(b+1).join(a)},qaa=2147483648*Math.random()|0;var Hoa,Ld;g.db=Array.prototype.indexOf?function(a,b,c){return Array.prototype.indexOf.call(a,b,c)}:function(a,b,c){c=null==c?0:0>c?Math.max(0,a.length+c):c;
if(g.u(a))return g.u(b)&&1==b.length?a.indexOf(b,c):-1;for(;c<a.length;c++)if(c in a&&a[c]===b)return c;return-1};
Hoa=Array.prototype.lastIndexOf?function(a,b,c){return Array.prototype.lastIndexOf.call(a,b,null==c?a.length-1:c)}:function(a,b,c){c=null==c?a.length-1:c;
0>c&&(c=Math.max(0,a.length+c));if(g.u(a))return g.u(b)&&1==b.length?a.lastIndexOf(b,c):-1;for(;0<=c;c--)if(c in a&&a[c]===b)return c;return-1};
g.H=Array.prototype.forEach?function(a,b,c){Array.prototype.forEach.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=g.u(a)?a.split(""):a,f=0;f<d;f++)f in e&&b.call(c,e[f],f,a)};
g.re=Array.prototype.filter?function(a,b,c){return Array.prototype.filter.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=[],f=0,k=g.u(a)?a.split(""):a,l=0;l<d;l++)if(l in k){var m=k[l];
b.call(c,m,l,a)&&(e[f++]=m)}return e};
g.I=Array.prototype.map?function(a,b,c){return Array.prototype.map.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=Array(d),f=g.u(a)?a.split(""):a,k=0;k<d;k++)k in f&&(e[k]=b.call(c,f[k],k,a));
return e};
Ld=Array.prototype.reduce?function(a,b,c,d){d&&(b=(0,g.A)(b,d));return Array.prototype.reduce.call(a,b,c)}:function(a,b,c,d){var e=c;
(0,g.H)(a,function(c,k){e=b.call(d,e,c,k,a)});
return e};
g.Ek=Array.prototype.some?function(a,b,c){return Array.prototype.some.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=g.u(a)?a.split(""):a,f=0;f<d;f++)if(f in e&&b.call(c,e[f],f,a))return!0;
return!1};
g.Br=Array.prototype.every?function(a,b,c){return Array.prototype.every.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=g.u(a)?a.split(""):a,f=0;f<d;f++)if(f in e&&!b.call(c,e[f],f,a))return!1;
return!0};a:{var Ioa=pa.navigator;if(Ioa){var Joa=Ioa.userAgent;if(Joa){g.Gb=Joa;break a}}g.Gb=""};var Yb="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");gc[" "]=g.y;var Koa,mi,en,fn,Loa,qi,j3;g.Oe=Hb("Opera");g.sc=Hb("Trident")||Hb("MSIE");g.LN=Hb("Edge");g.ZO=g.LN||g.sc;g.dh=Hb("Gecko")&&!(Ka(g.Gb,"WebKit")&&!Hb("Edge"))&&!(Hb("Trident")||Hb("MSIE"))&&!Hb("Edge");g.de=Ka(g.Gb,"WebKit")&&!Hb("Edge");Koa=g.de&&Hb("Mobile");mi=Hb("Macintosh");g.R2=Hb("Windows");g.mn=Hb("Android");en=ec();fn=Hb("iPad");Loa=Hb("iPod");qi=fc();
a:{var k3="",l3=function(){var a=g.Gb;if(g.dh)return/rv\:([^\);]+)(\)|;)/.exec(a);if(g.LN)return/Edge\/([\d\.]+)/.exec(a);if(g.sc)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(a);if(g.de)return/WebKit\/(\S+)/.exec(a);if(g.Oe)return/(?:Version)[ \/]?(\S+)/.exec(a)}();
l3&&(k3=l3?l3[1]:"");if(g.sc){var m3=ic();if(null!=m3&&m3>(0,window.parseFloat)(k3)){j3=String(m3);break a}}j3=k3}var jc=j3,xaa={},Moa;var Noa=pa.document;Moa=Noa&&g.sc?ic()||("CSS1Compat"==Noa.compatMode?(0,window.parseInt)(jc,10):5):void 0;var zaa=Moa;var GO,FO,HO,ni;g.MN=Hb("Firefox");GO=ec()||Hb("iPod");FO=Hb("iPad");HO=Hb("Android")&&!(cc()||Hb("Firefox")||Hb("Opera")||Hb("Silk"));g.UE=cc();ni=dc()&&!fc();var oc=null,uc=null,nc=null;var zc=[];yc.prototype.clone=function(){return Ac(this.o,this.A,this.B-this.A)};
yc.prototype.clear=function(){this.o=null;this.g=this.B=this.A=0;this.C=!1};
yc.prototype.reset=function(){this.g=this.A};
yc.prototype.getError=function(){return this.C||0>this.g||this.g>this.B};Cc.prototype.getError=function(){return this.B||this.g.getError()};
Cc.prototype.reset=function(){this.g.reset();this.o=this.A=-1};var Ic="function"==typeof window.Uint8Array,Jc=[];Hc.prototype.toString=function(){Pc(this);return this.o.toString()};
Hc.prototype.getExtension=function(a){if(this.A){this.g||(this.g={});var b=a.A;if(a.B){if(a.o())return this.g[b]||(this.g[b]=(0,g.I)(this.A[b]||[],function(b){return new a.g(b)})),this.g[b]}else if(a.o())return!this.g[b]&&this.A[b]&&(this.g[b]=new a.g(this.A[b])),this.g[b];
return this.A[b]}};
Hc.prototype.clone=function(){return new this.constructor(Qc(Oc(this)))};g.C(Rc,Hc);g.C(Sc,Hc);g.C(Wc,Hc);g.C(Xc,Hc);var Daa=[[9,10],[11,12],[18,19,20,21]];g.C(Yc,Hc);var Eaa=[[2,3]];g.C(Zc,Hc);g.C($c,Hc);g.C(ad,Hc);g.C(bd,Hc);var Faa=[[2,4,5]];g.C(cd,Hc);g.C(dd,Hc);g.C(ed,Hc);var Gaa=[1];g.C(Nc,Hc);g.C(Uc,Hc);var Haa=[[1,6,2,3,7]];window.console&&"function"===typeof window.console.log&&(0,g.A)(window.console.log,window.console);var Waa,Yaa,Zaa;Waa=!g.sc||g.lc(9);Yaa=!g.dh&&!g.sc||g.sc&&g.lc(9)||g.dh&&g.kc("1.9.1");g.Ooa=g.sc&&!g.kc("9");Zaa=g.sc||g.Oe||g.de;var Taa={area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0};gd.prototype.bh=!0;gd.prototype.pg=function(){return this.g};
gd.prototype.toString=function(){return"Const{"+this.g+"}"};
var fd={};id("");kd.prototype.bh=!0;var jd={};kd.prototype.pg=function(){return this.g};
var Raa=ld(""),Qaa=/^([-,."'%_!# a-zA-Z0-9]+|(?:rgb|hsl)a?\([0-9.%, ]+\))$/;var Iaa=/<[^>]*>|&[^;]+;/g,Poa=RegExp("[\u0591-\u06ef\u06fa-\u07ff\u200f\ufb1d-\ufdff\ufe70-\ufefc]"),Maa=RegExp("[A-Za-z\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02b8\u0300-\u0590\u0800-\u1fff\u200e\u2c00-\ufb1c\ufe00-\ufe6f\ufefd-\uffff]"),Kaa=RegExp("^[^A-Za-z\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02b8\u0300-\u0590\u0800-\u1fff\u200e\u2c00-\ufb1c\ufe00-\ufe6f\ufefd-\uffff]*[\u0591-\u06ef\u06fa-\u07ff\u200f\ufb1d-\ufdff\ufe70-\ufefc]"),Laa=/^http:\/\/.*/,Jaa=/\s+/,Naa=/[\d\u06f0-\u06f9]/;pd.prototype.bh=!0;pd.prototype.pg=function(){return this.g};
pd.prototype.Oq=!0;pd.prototype.Pi=function(){return 1};
var od={};td.prototype.bh=!0;td.prototype.pg=function(){return this.g};
td.prototype.Oq=!0;td.prototype.Pi=function(){return 1};
var Oaa=/^(?:(?:https?|mailto|ftp):|[^:/?#]*(?:[/?#]|$))/i,sd={};vd("about:blank");g.yd.prototype.Oq=!0;g.yd.prototype.Pi=function(){return this.o};
g.yd.prototype.bh=!0;g.yd.prototype.pg=function(){return this.g};
var Cd=/^[a-zA-Z0-9-]+$/,Saa={action:!0,cite:!0,data:!0,formaction:!0,href:!0,manifest:!0,poster:!0,src:!0},Qoa={APPLET:!0,BASE:!0,EMBED:!0,IFRAME:!0,LINK:!0,MATH:!0,META:!0,OBJECT:!0,SCRIPT:!0,STYLE:!0,SVG:!0,TEMPLATE:!0},xd={};Ad("<!DOCTYPE html>",0);Ad("",0);Ad("<br>",0);g.h=g.Md.prototype;g.h.clone=function(){return new g.Md(this.x,this.y)};
g.h.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this};
g.h.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this};
g.h.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this};
g.h.scale=function(a,b){var c=g.oa(b)?b:a;this.x*=a;this.y*=c;return this};g.h=g.Pd.prototype;g.h.clone=function(){return new g.Pd(this.width,this.height)};
g.h.Pc=function(){return this.width*this.height};
g.h.aspectRatio=function(){return this.width/this.height};
g.h.isEmpty=function(){return!this.Pc()};
g.h.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};
g.h.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};
g.h.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};
g.h.scale=function(a,b){var c=g.oa(b)?b:a;this.width*=a;this.height*=c;return this};var Yd={cellpadding:"cellPadding",cellspacing:"cellSpacing",colspan:"colSpan",frameborder:"frameBorder",height:"height",maxlength:"maxLength",nonce:"nonce",role:"role",rowspan:"rowSpan",type:"type",usemap:"useMap",valign:"vAlign",width:"width"};g.h=Rd.prototype;g.h.pa=function(a){return g.u(a)?this.g.getElementById(a):a};
g.h.getElementsByTagName=function(a,b){return(b||this.g).getElementsByTagName(String(a))};
g.h.uG=function(a,b,c){return fe(this.g,arguments)};
g.h.createElement=function(a){return this.g.createElement(String(a))};
g.h.appendChild=g.ke;g.h.canHaveChildren=function(a){if(1!=a.nodeType)return!1;switch(a.tagName){case "APPLET":case "AREA":case "BASE":case "BR":case "COL":case "COMMAND":case "EMBED":case "FRAME":case "HR":case "IMG":case "INPUT":case "IFRAME":case "ISINDEX":case "KEYGEN":case "LINK":case "NOFRAMES":case "NOSCRIPT":case "META":case "OBJECT":case "PARAM":case "SCRIPT":case "SOURCE":case "STYLE":case "TRACK":case "WBR":return!1}return!0};
g.h.removeNode=g.pe;g.h.contains=g.we;var hf=!g.sc||g.lc(9),Roa=g.sc&&!g.kc("9");!g.de||g.kc("528");g.dh&&g.kc("1.9b")||g.sc&&g.kc("8")||g.Oe&&g.kc("9.5")||g.de&&g.kc("528");g.dh&&!g.kc("8")||g.sc&&g.kc("9");g.M.prototype.Za=!1;g.M.prototype.na=function(){return this.Za};
g.M.prototype.dispose=function(){this.Za||(this.Za=!0,this.W())};
g.M.prototype.W=function(){if(this.Sa)for(;this.Sa.length;)this.Sa.shift()()};g.Me.prototype.stopPropagation=function(){this.o=!0};
g.Me.prototype.preventDefault=function(){this.DA=!1};var Soa={Go:"click",CZ:"rightclick",yV:"dblclick",VX:"mousedown",bY:"mouseup",aY:"mouseover",ZX:"mouseout",YX:"mousemove",WX:"mouseenter",XX:"mouseleave",IZ:"selectionchange",JZ:"selectstart",K0:"wheel",tX:"keypress",sX:"keydown",uX:"keyup",HU:"blur",xW:"focus",zV:"deactivate",yW:g.sc?"focusin":"DOMFocusIn",zW:g.sc?"focusout":"DOMFocusOut",ZU:"change",sZ:"reset",HZ:"select",r_:"submit",cX:"input",jZ:"propertychange",eW:"dragstart",ZV:"drag",bW:"dragenter",dW:"dragover",cW:"dragleave",gW:"drop",aW:"dragend",
K_:"touchstart",J_:"touchmove",I_:"touchend",H_:"touchcancel",FU:"beforeunload",lV:"consolemessage",oV:"contextmenu",MV:"devicemotion",NV:"deviceorientation",TV:"DOMContentLoaded",ERROR:"error",OW:"help",LOAD:"load",NX:"losecapture",KY:"orientationchange",oZ:"readystatechange",tZ:"resize",EZ:"scroll",f0:"unload",OU:"canplay",PU:"canplaythrough",hW:"durationchange",lW:"emptied",ENDED:"ended",DX:"loadeddata",EX:"loadedmetadata",PAUSE:"pause",PLAY:"play",PLAYING:"playing",nZ:"ratechange",FZ:"seeked",
GZ:"seeking",e_:"stalled",s_:"suspend",y_:"timeupdate",D0:"volumechange",H0:"waiting",c_:"sourceopen",b_:"sourceended",a_:"sourceclosed",tT:"abort",l0:"update",o0:"updatestart",m0:"updateend",IW:"hashchange",NY:"pagehide",OY:"pageshow",cZ:"popstate",qV:"copy",QY:"paste",vV:"cut",AU:"beforecopy",BU:"beforecut",DU:"beforepaste",HY:"online",EY:"offline",MESSAGE:"message",kV:"connect",eX:"install",uT:"activate",vW:"fetch",AW:"foreignfetch",TX:"messageerror",h_:"statechange",n0:"updatefound",pV:"controllerchange",
qU:Pe("AnimationStart"),oU:Pe("AnimationEnd"),pU:Pe("AnimationIteration"),N_:Pe("TransitionEnd"),VY:"pointerdown",bZ:"pointerup",UY:"pointercancel",YY:"pointermove",aZ:"pointerover",ZY:"pointerout",WY:"pointerenter",XY:"pointerleave",GW:"gotpointercapture",OX:"lostpointercapture",gY:"MSGestureChange",hY:"MSGestureEnd",iY:"MSGestureHold",jY:"MSGestureStart",kY:"MSGestureTap",lY:"MSGotPointerCapture",mY:"MSInertiaStart",nY:"MSLostPointerCapture",oY:"MSPointerCancel",pY:"MSPointerDown",qY:"MSPointerEnter",
rY:"MSPointerHover",sY:"MSPointerLeave",tY:"MSPointerMove",uY:"MSPointerOut",vY:"MSPointerOver",wY:"MSPointerUp",TEXT:"text",v_:g.sc?"textinput":"textInput",iV:"compositionstart",jV:"compositionupdate",hV:"compositionend",CU:"beforeinput",sW:"exit",BX:"loadabort",CX:"loadcommit",FX:"loadredirect",GX:"loadstart",HX:"loadstop",xZ:"responsive",UZ:"sizechanged",h0:"unresponsive",C0:"visibilitychange",m_:"storage",YV:"DOMSubtreeModified",UV:"DOMNodeInserted",WV:"DOMNodeRemoved",XV:"DOMNodeRemovedFromDocument",
VV:"DOMNodeInsertedIntoDocument",RV:"DOMAttrModified",SV:"DOMCharacterDataModified",EU:"beforeprint",eU:"afterprint"};g.C(Qe,g.Me);
Qe.prototype.init=function(a,b){var c=this.type=a.type,d=a.changedTouches?a.changedTouches[0]:null;this.target=a.target||a.srcElement;this.currentTarget=b;var e=a.relatedTarget;e?g.dh&&(hc(e,"nodeName")||(e=null)):"mouseover"==c?e=a.fromElement:"mouseout"==c&&(e=a.toElement);this.relatedTarget=e;null===d?(this.B=g.de||void 0!==a.offsetX?a.offsetX:a.layerX,this.C=g.de||void 0!==a.offsetY?a.offsetY:a.layerY,this.clientX=void 0!==a.clientX?a.clientX:a.pageX,this.clientY=void 0!==a.clientY?a.clientY:
a.pageY,this.screenX=a.screenX||0,this.screenY=a.screenY||0):(this.clientX=void 0!==d.clientX?d.clientX:d.pageX,this.clientY=void 0!==d.clientY?d.clientY:d.pageY,this.screenX=d.screenX||0,this.screenY=d.screenY||0);this.button=a.button;this.keyCode=a.keyCode||0;this.key=a.key||"";this.charCode=a.charCode||("keypress"==c?a.keyCode:0);this.ctrlKey=a.ctrlKey;this.altKey=a.altKey;this.shiftKey=a.shiftKey;this.metaKey=a.metaKey;this.state=a.state;this.g=a;a.defaultPrevented&&this.preventDefault()};
Qe.prototype.stopPropagation=function(){Qe.aa.stopPropagation.call(this);this.g.stopPropagation?this.g.stopPropagation():this.g.cancelBubble=!0};
Qe.prototype.preventDefault=function(){Qe.aa.preventDefault.call(this);var a=this.g;if(a.preventDefault)a.preventDefault();else if(a.returnValue=!1,Roa)try{if(a.ctrlKey||112<=a.keyCode&&123>=a.keyCode)a.keyCode=-1}catch(b){}};var $aa;g.Re="closure_listenable_"+(1E6*Math.random()|0);$aa=0;Ue.prototype.remove=function(a,b,c,d){a=a.toString();if(!(a in this.listeners))return!1;var e=this.listeners[a];b=Ve(e,b,c,d);return-1<b?(Te(e[b]),g.jb(e,b),0==e.length&&(delete this.listeners[a],this.g--),!0):!1};var ef="closure_lm_"+(1E6*Math.random()|0),mf={},gf=0,pf="__closure_events_fn_"+(1E9*Math.random()>>>0);g.C(g.qf,g.M);g.qf.prototype[g.Re]=!0;g.h=g.qf.prototype;g.h.uh=function(a){this.Ra=a};
g.h.addEventListener=function(a,b,c,d){g.af(this,a,b,c,d)};
g.h.removeEventListener=function(a,b,c,d){g.kf(this,a,b,c,d)};
g.h.dispatchEvent=function(a){var b=this.Ra;if(b){var c=[];for(var d=1;b;b=b.Ra)c.push(b),++d}b=this.kc;d=a.type||a;if(g.u(a))a=new g.Me(a,b);else if(a instanceof g.Me)a.target=a.target||b;else{var e=a;a=new g.Me(d,b);g.Zb(a,e)}var e=!0;if(c)for(var f=c.length-1;!a.o&&0<=f;f--){var k=a.currentTarget=c[f];e=rf(k,d,!0,a)&&e}a.o||(k=a.currentTarget=b,e=rf(k,d,!0,a)&&e,a.o||(e=rf(k,d,!1,a)&&e));if(c)for(f=0;!a.o&&f<c.length;f++)k=a.currentTarget=c[f],e=rf(k,d,!1,a)&&e;return e};
g.h.W=function(){g.qf.aa.W.call(this);this.ze&&g.Ye(this.ze);this.Ra=null};
g.h.X=function(a,b,c,d){return We(this.ze,String(a),b,!1,c,d)};
g.h.za=function(a,b,c,d){return this.ze.remove(String(a),b,c,d)};sf.prototype.get=function(){if(0<this.o){this.o--;var a=this.g;this.g=a.next;a.next=null}else a=this.A();return a};var xf;var Ef=new sf(function(){return new Af},function(a){a.reset()},100);
zf.prototype.remove=function(){var a=null;this.g&&(a=this.g,this.g=this.g.next,this.g||(this.o=null),a.next=null);return a};
Af.prototype.set=function(a,b){this.g=a;this.scope=b;this.next=null};
Af.prototype.reset=function(){this.next=this.scope=this.g=null};var Bf,Cf=!1,Df=new zf;Lf.prototype.reset=function(){this.context=this.o=this.B=this.g=null;this.A=!1};
var Mf=new sf(function(){return new Lf},function(a){a.reset()},100);
g.Kf.prototype.then=function(a,b,c){return Tf(this,g.ua(a)?a:null,g.ua(b)?b:null,c)};
Hf(g.Kf);g.Kf.prototype.cancel=function(a){0==this.g&&g.Ff(function(){var b=new Zf(a);Vf(this,b)},this)};
g.Kf.prototype.J=function(a){this.g=0;Jf(this,2,a)};
g.Kf.prototype.K=function(a){this.g=0;Jf(this,3,a)};
g.Kf.prototype.G=function(){for(var a;a=Wf(this);)Xf(this,a,this.g,this.F);this.D=!1};
var cg=wf;g.C(Zf,Ca);Zf.prototype.name="cancel";g.C(g.dg,g.qf);g.h=g.dg.prototype;g.h.enabled=!1;g.h.De=null;g.h.sG=function(){if(this.enabled){var a=(0,g.G)()-this.B;0<a&&a<.8*this.o?this.De=this.g.setTimeout(this.A,this.o-a):(this.De&&(this.g.clearTimeout(this.De),this.De=null),this.dispatchEvent("tick"),this.enabled&&(this.De=this.g.setTimeout(this.A,this.o),this.B=(0,g.G)()))}};
g.h.start=function(){this.enabled=!0;this.De||(this.De=this.g.setTimeout(this.A,this.o),this.B=(0,g.G)())};
g.h.stop=function(){this.enabled=!1;this.De&&(this.g.clearTimeout(this.De),this.De=null)};
g.h.W=function(){g.dg.aa.W.call(this);this.stop();delete this.g};var ig=g.y,pg={'"':'\\"',"\\":"\\\\","/":"\\/","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\x0B":"\\u000b"},qba=/\uffff/.test("\uffff")?/[\\\"\x00-\x1f\x7f-\uffff]/g:/[\\\"\x00-\x1f\x7f-\xff]/g;var Toa={};g.h=qg.prototype;g.h.isEnabled=function(){return window.navigator.cookieEnabled};
g.h.set=function(a,b,c,d,e,f){if(/[;=\s]/.test(a))throw Error('Invalid cookie name "'+a+'"');if(/[;\r\n]/.test(b))throw Error('Invalid cookie value "'+b+'"');g.t(c)||(c=-1);e=e?";domain="+e:"";d=d?";path="+d:"";f=f?";secure":"";c=0>c?"":0==c?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date((0,g.G)()+1E3*c)).toUTCString();this.g.cookie=a+"="+b+e+d+c+f};
g.h.get=function(a,b){for(var c=a+"=",d=(this.g.cookie||"").split(";"),e=0,f;e<d.length;e++){f=Pa(d[e]);if(0==f.lastIndexOf(c,0))return f.substr(c.length);if(f==a)return""}return b};
g.h.remove=function(a,b,c){var d=g.t(this.get(a));this.set(a,"",0,b,c);return d};
g.h.Cb=function(){return rg(this).keys};
g.h.fb=function(){return rg(this).values};
g.h.isEmpty=function(){return!this.g.cookie};
g.h.Mc=function(){return this.g.cookie?(this.g.cookie||"").split(";").length:0};
g.h.clear=function(){for(var a=rg(this).keys,b=a.length-1;0<=b;b--)this.remove(a[b])};
var tH=new qg("undefined"==typeof window.document?null:window.document);tH.o=3950;var rba=/^(?:([^:/?#.]+):)?(?:\/\/(?:([^/?#]*)@)?([^/#?]*?)(?::([0-9]+))?(?=[/#?]|$))?([^?#]+)?(?:\?([^#]*))?(?:#([\s\S]*))?$/,Fg=/#|$/,sba=/[?&]($|#)/;Jg.prototype.remove=function(a){Ub(this.g,a)};
Jg.prototype.set=function(a,b){this.g[a]=b};
Jg.prototype.get=function(a){return Vb(this.g,a,null)};g.h=g.Lg.prototype;g.h.Eb=function(){return this.right-this.left};
g.h.getHeight=function(){return this.bottom-this.top};
g.h.clone=function(){return new g.Lg(this.top,this.right,this.bottom,this.left)};
g.h.contains=function(a){return this&&a?a instanceof g.Lg?a.left>=this.left&&a.right<=this.right&&a.top>=this.top&&a.bottom<=this.bottom:a.x>=this.left&&a.x<=this.right&&a.y>=this.top&&a.y<=this.bottom:!1};
g.h.expand=function(a,b,c,d){g.va(a)?(this.top-=a.top,this.right+=a.right,this.bottom+=a.bottom,this.left-=a.left):(this.top-=a,this.right+=Number(b),this.bottom+=Number(c),this.left-=Number(d));return this};
g.h.ceil=function(){this.top=Math.ceil(this.top);this.right=Math.ceil(this.right);this.bottom=Math.ceil(this.bottom);this.left=Math.ceil(this.left);return this};
g.h.floor=function(){this.top=Math.floor(this.top);this.right=Math.floor(this.right);this.bottom=Math.floor(this.bottom);this.left=Math.floor(this.left);return this};
g.h.round=function(){this.top=Math.round(this.top);this.right=Math.round(this.right);this.bottom=Math.round(this.bottom);this.left=Math.round(this.left);return this};
g.h.scale=function(a,b){var c=g.oa(b)?b:a;this.left*=a;this.right*=a;this.top*=c;this.bottom*=c;return this};g.h=g.Ng.prototype;g.h.clone=function(){return new g.Ng(this.left,this.top,this.width,this.height)};
g.h.contains=function(a){return a instanceof g.Md?a.x>=this.left&&a.x<=this.left+this.width&&a.y>=this.top&&a.y<=this.top+this.height:this.left<=a.left&&this.left+this.width>=a.left+a.width&&this.top<=a.top&&this.top+this.height>=a.top+a.height};
g.h.ceil=function(){this.left=Math.ceil(this.left);this.top=Math.ceil(this.top);this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};
g.h.floor=function(){this.left=Math.floor(this.left);this.top=Math.floor(this.top);this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};
g.h.round=function(){this.left=Math.round(this.left);this.top=Math.round(this.top);this.width=Math.round(this.width);this.height=Math.round(this.height);return this};
g.h.scale=function(a,b){var c=g.oa(b)?b:a;this.left*=a;this.width*=a;this.top*=c;this.height*=c;return this};var Yg=null;Ug.prototype.getValue=function(){return this.g};
Ug.prototype.o=function(){return String(this.g)};
g.C(Vg,Ug);Vg.prototype.o=function(){return this.g?"1":"0"};
g.C(Wg,Ug);Wg.prototype.o=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 ch={};new g.dg(200);var Hh,Voa,Eh;g.Gh=Ch("loadGamesSDK")?"/cast_game_sender.js":"/cast_sender.js";g.Uoa=Ch("loadCastFramework")||Ch("loadCastApplicationFramework");Hh=["boadgeojelhgndaghljhdicfkmllpafd","dliochdbjfkdbacpmhlcpmleaejidimm","enhhojjnijigcajfphajepfemndkmdlo","fmfcbgogabcbclcofgocippekhfcmgfj"];Voa=["pkedcjkdefgpdelpbcmbmeomcjbeemfm","fjhoaacokmgbjemoflkofnenfaiekifl"];Eh=50<=g.Bh()?Voa.concat(Hh):Hh.concat(Voa);var n3=Lh("f"),yv=Lh("i"),o3=Lh("b"),pv=Lh("e"),qv=Lh("s");var ai=window.document,Xh=window;var Jca=/https?:\/\/[^\/]+/;var Sh=function(){var a=!1;try{var b=Object.defineProperty({},"passive",{get:function(){a=!0}});
pa.addEventListener("test",null,b)}catch(c){}return a}();var Zh=!!window.google_async_iframe_id,$h=Zh&&window.parent||window;var Bba=[0,2,1],ci=null;window.document.addEventListener&&window.document.addEventListener("mousedown",function(a){ci=a},!0);
window.mb=function(a){if(a){var b=di();b&&(window.css?(0,window.css)(a.id,"mb",b,void 0,void 0):a&&(a.href=Oh(a.href,"mb",b,void 0)))}};ei.prototype.enable=function(){this.g=!0};
ei.prototype.isEnabled=function(){return this.g};
ei.prototype.reset=function(){this.g=!0};var gi={},hi=null;gi.le=0;gi.nt=2;gi.Fr=3;gi.Po=5;gi.me=1;gi.om=4;var p3=!1,q3="";
(function(){if(window.navigator.plugins&&window.navigator.plugins.length){var a=window.navigator.plugins["Shockwave Flash"];if(a&&(p3=!0,a.description)){q3=ji(a.description);return}if(window.navigator.plugins["Shockwave Flash 2.0"]){p3=!0;q3="2.0.0.11";return}}if(window.navigator.mimeTypes&&window.navigator.mimeTypes.length&&(a=window.navigator.mimeTypes["application/x-shockwave-flash"],p3=!(!a||!a.enabledPlugin))){q3=ji(a.enabledPlugin.description);return}try{var b=new window.ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");p3=
!0;q3=ji(b.GetVariable("$version"));return}catch(c){}try{b=new window.ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");p3=!0;q3="6.0.21";return}catch(c){}try{b=new window.ActiveXObject("ShockwaveFlash.ShockwaveFlash"),p3=!0,q3=ji(b.GetVariable("$version"))}catch(c){}})();
var ao=p3,oi=q3;var ri=function(){if(g.R2){var a=/Windows NT ([0-9.]+)/;return(a=a.exec(g.Gb))?a[1]:"0"}return mi?(a=/10[_.][0-9_.]+/,(a=a.exec(g.Gb))?a[0].replace(/_/g,"."):"10"):g.mn?(a=/Android\s+([^\);]+)(\)|;)/,(a=a.exec(g.Gb))?a[1]:""):en||fn||Loa?(a=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(a=a.exec(g.Gb))?a[1].replace(/_/g,"."):""):""}();var Cba=function(){if(g.MN)return ki(/Firefox\/([0-9.]+)/);if(g.sc||g.LN||g.Oe)return jc;if(g.UE)return fc()?ki(/CriOS\/([0-9.]+)/):ki(/Chrome\/([0-9.]+)/);if(ni&&!fc())return ki(/Version\/([0-9.]+)/);if(GO||FO){var a=/Version\/(\S+).*Mobile\/(\S+)/.exec(g.Gb);if(a)return a[1]+"."+a[2]}else if(HO)return(a=ki(/Android\s+([0-9.]+)/))?a:ki(/Version\/([0-9.]+)/);return""}();var Woa={currentTime:1,duration:2,isVpaid:4,volume:8,isYouTube:16,isPlaying:32},Yk={qu:"start",Ut:"firstquartile",au:"midpoint",xu:"thirdquartile",Nt:"complete",dE:"metric",PAUSE:"pause",CE:"resume",lu:"skip",Cu:"viewable_impression",hE:"mute",bF:"unmute",Vt:"fullscreen",yD:"exitfullscreen",Wt:"fully_viewable_audible_half_duration_impression",Zt:"measurable_impression",EC:"abandon",Rt:"engagedview",Cl:"impression",nD:"creativeview",No:"loaded",hZ:"progress",CLOSE:"close",cV:"collapse",pE:"overlay_resize",
qE:"overlay_unmeasurable_impression",rE:"overlay_unviewable_impression",tE:"overlay_viewable_immediate_impression",sE:"overlay_viewable_end_of_session_impression"},Sca="start firstquartile midpoint thirdquartile resume loaded".split(" "),nca=["abandon"],Zk={UNKNOWN:-1,qu:0,Ut:1,au:2,xu:3,Nt:4,dE:5,PAUSE:6,CE:7,lu:8,Cu:9,hE:10,bF:11,Vt:12,yD:13,Wt:14,Zt:15,EC:16,Rt:17,Cl:18,nD:19,No:20};ti.prototype.isVisible=function(){return this.A?.3<=this.g:.5<=this.g};var bk=0,Eba=(new Date).getTime(),yi=-1,Ai=!1,Bi=-1,Ci=-1;g.C(Ji,ti);Li.prototype.update=function(a,b,c,d,e,f){e=Ni(c.g);var k=Ni(b.g);k=-1==e||-1==k?-1:Math.max(e,k);e=d?k:e;this.B=-1!=this.B?Math.min(this.B,b.g):b.g;f&&(this.oa=Math.max(this.oa,b.g));-1!=e&&(this.Za[e]+=a);Mi(this.ha,e,a);f=this.V;k=this.ha;for(var l=[0,0,0,0,0],m=0;4>=m;m++)l[m]=Math.max(f[m],k[m]);this.V=l;f=this.ha;k=Ni(b.g);for(l=0;4>=l;++l)if(l<k||b.C||-1==k)f[l]=0;if(d?c.isVisible()&&b.isVisible():c.isVisible())this.K+=a,this.Sa=Math.max(this.Sa,this.K);b.isVisible()||(this.K=0);return e};var sga={e0:0,AY:1,vZ:2,rW:3,A_:4,EW:5,MX:6,wZ:7,zU:8,HW:9};g.h=Yi.prototype;g.h.rj=function(){this.events!=this.g.google_js_reporting_queue&&(this.events.length=0,this.D&&(0,g.H)(this.events,this.ov,this));this.o=!1};
g.h.Qn=function(a){this.o&&this.events.push(a)};
g.h.ov=function(a){if(a&&this.D){var b=this.g.performance;b.clearMarks("goog_"+a.uniqueId+"_start");b.clearMarks("goog_"+a.uniqueId+"_end")}};
g.h.start=function(a,b){if(!this.o)return null;var c=new Xi(a,b,Zi());this.D&&this.g.performance.mark("goog_"+c.uniqueId+"_start");return c};
g.h.end=function(a){this.o&&(a.duration=Zi()-a.value,this.D&&this.g.performance.mark("goog_"+a.uniqueId+"_end"),this.Qn(a))};$i.prototype.o=function(a,b,c,d,e){e=e||this.D;try{var f=new Pi;f.C=!0;Ti(f,1,"context",a);b.error&&b.meta&&b.id||(b=aj(b));b.msg&&Ti(f,2,"msg",b.msg.substring(0,512));b.file&&Ti(f,3,"file",b.file);0<b.line&&Ti(f,4,"line",b.line);var k=b.meta||{};if(d)try{d(k)}catch(m){}b=[k];f.g.push(5);f.o[5]=b;var l=wi();l.o&&Ti(f,6,"top",l.o.url||"");Ti(f,7,"url",l.g.url||"");Wi(this.B,e,f,c)}catch(m){try{Wi(this.B,e,{context:"ecmserr",rctx:a,msg:fj(m),url:l.g.url},c)}catch(n){}}return this.A};
g.p(ej,Oi);var cj,r3=bi(),s3=new Yi(1,r3);cj=new $i(new function(){this.B="http:"===Xh.location.protocol?"http:":"https:";this.o="pagead2.googlesyndication.com";this.A="/pagead/gen_204?id=";this.g=.01},"jserror",!0,s3);
"complete"==r3.document.readyState?r3.google_measure_js_timing||s3.rj():s3.o&&Th(r3,"load",function(){r3.google_measure_js_timing||s3.rj()});
var Iba=cj.o;kj.prototype.getStatus=function(){return this.o};
g.C(nj,kj);var tj={d0:-1,LOADING:0,FD:1,jD:2,rX:3,VISIBLE:4},Qba={LOADING:0,FD:1,jD:2,E_:3,FY:4,P_:5,Q_:6,O_:7,IY:8,D_:9},wj={};pj.prototype.G=function(a,b){if(!this.g)return!1;this.g.style.position="absolute";qj(this,b);var c=!0;try{a.appendChild(this.g)}catch(d){c=!1}return c};
pj.prototype.F=function(a,b){if(!this.g||!a.parentNode)return!1;this.g.style.position="fixed";qj(this,b);var c=!0;try{g.ne(this.g,a)}catch(d){c=!1}return c};
pj.prototype.remove=function(){if(this.g)try{g.pe(this.g)}catch(a){}this.g=null};
pj.prototype.J=function(a){this.A=a?3:4};
g.v("gteh",hj(145,function(a,b){var c=wj[a];g.ua(c)&&c(b)}),void 0);
g.C(yj,kj);var Wba=[3,7,8,5,5],Xba=[3,4,4,5,6],Yba=[3,4,5,6],Zba=[3,5];zj.prototype.B=function(a){this.g&&this.g.contentWindow&&(this.g.contentWindow.requestAnimationFrame(dj(245,this.B,this,void 0)),this.o||(this.o=(0,g.G)()-a),this.A=a)};
zj.prototype.isVisible=function(a){return 50>a-this.o-this.A};
zj.prototype.remove=function(){try{g.pe(this.g)}catch(a){}this.g=null};if(ai&&ai.URL){var Rh=ai.URL,Xoa=!(Rh&&0<Aba().length);cj.A=Xoa};g.qa(Cj);g.qa(Dj);var Ej=new g.Lg(0,0,0,0),hca={threshold:[0,.3,.5,.75,1]};g.h=Fj.prototype;g.h.Lm=function(){return new Li};
g.h.Ce=function(){return this.uc};
g.h.Gx=g.y;g.h.Fx=g.y;g.h.yw=g.y;g.h.ro=g.y;
g.h.ag=function(a,b,c,d,e,f,k){var l=k||{};k=this.mw(c,l);l=this.up(a,b,d,l);g.oa(b)||(this.Ra=new g.Pd(b.right-b.left,b.bottom-b.top));this.Qs(k,l,e&&.5<=this.g.g,f);this.O=c;0<l.g&&-1===this.Ig&&(this.Ig=c);-1==this.Jg&&Kj(this)&&(this.Jg=c);if(-2==this.tc)try{a:{var m=g.oa(b)?null:b;if(a&&a!=Ej&&0!=this.Pc){if(!m){if(!this.Ra){var n=-1;break a}m=new g.Lg(0,this.Ra.width,this.Ra.height,0)}n=m.Eb&&0<m.Eb()&&m.getHeight&&0<m.getHeight()?this.Xj(a,m):-1}else n=-1}this.tc=n}catch(q){jj(207,q)}this.g=
l;d&&(this.g.g=0);this.Cc(this)};
g.h.Qs=function(a,b,c,d){this.Ce().update(a,b,this.g,c,.5,d)};
g.h.Yp=function(){return new ti};
g.h.up=function(a,b,c){var d=this.Yp();d.C=c;c=fi();d.o=0==c?-1:1==c?0:1;if(g.oa(b))d.g=this.Xj(b);else{var e=b;d.g=this.Xj(a,e)}(a=e||null)?(a=(a.bottom-a.top)*(a.right-a.left),a=0<a?Math.min(this.Pc*d.g/a,1):0):a=0;d.D=a;d.A=!1;return d};
g.h.mw=function(a){if(-1==this.O)return 0;a=a-this.O||1;return 1E4<a?1:a};
g.h.Xj=function(a,b){if(g.oa(a))return a;if(b){var c=Gj(a,b);return 0>=this.Pc||0>=c.Eb()||0>=c.getHeight()?0:(c.bottom-c.top)*(c.right-c.left)/this.Pc}return 0};
g.h.gp=function(a){if(this.B)return!0;if(this.sa)return!1;this.ka=a||1;if(!this.G||!pi())return this.sa=!0,!1;a=new nj(!1,this.ka);var b=Jba(a,this.G,String(this.yi));b?this.B=a:this.sa=!0;return b};
g.h.Yg=function(){return 0};
g.h.Bs=function(a){if(!this.G)return!1;a=a||1;var b=new yj(!1,a),c=Tba(b,this.G);c&&(this.ka=a,this.fa=b);return c};Oj.prototype.Ga=function(a){var b=this.g[a],c=b[1];this.A+=b[0];0<c&&0==this.o[a]&&(this.o[a]=1)};g.qa(Qj);g.C(Rj,Li);Rj.prototype.update=function(a,b,c,d,e,f){if(b.paused)return-1;d=Rj.aa.update.call(this,a,b,c,d,e,f);e=Ni(e);e=-1!=d&&d<=e;f=Ki(b)&&Ki(c);Ii(b.volume)&&(this.g=-1!=this.g?Math.min(this.g,b.volume):b.volume,this.A=Math.max(this.A,b.volume));e&&(this.ca+=a,this.da+=a);this.o+=a;this.ba+=a;c.B&&(this.ka+=a,this.O+=a);0==d&&(this.P+=a);f&&(this.ga+=a,this.F+=a,Mi(this.fa,d,a),0==d&&(this.D+=a),e?(this.G+=a,this.J+=a):this.M+=a,this.ra=Math.max(this.M,this.ra));if(e||!Ki(b))this.M=0;return d};g.C(Tj,Fj);g.h=Tj.prototype;g.h.Bs=function(a){Dj.getInstance();var b=Qj.getInstance(),c=g.eb(b.g,509445011);return g.eb(b.g,509445013)||c?(this.Gg=!0,Tj.aa.Bs.call(this,a||3)):!1};
g.h.gp=function(a){return Tj.aa.gp.call(this,a||3)};
g.h.Gx=function(a){if(!this.Rd||1E3<a-this.tf){var b=g.x("ima.bridge.getNativeViewability");g.ua(b)&&(b(this.C,(0,g.A)(this.JG,this)),this.Rd=!0,this.tf=a)}};
g.h.Fx=function(a){var b=Dj.getInstance();a-this.sf>Di(b.J)&&(a=g.x("ima.admob.getViewability"),g.ua(a)&&a(this.C))};
g.h.JG=function(a){this.Rd=!1;this.ua&&(this.ke=!0);g.Tb(a)&&this.Dd++;this.ro(a)};
g.h.yw=function(a){this.sf=zi();this.ro(a)};
g.h.ro=function(a){var b=a.opt_nativeViewBounds||{},c=a.opt_nativeViewVisibleBounds||{},d=a.opt_nativeTime||-1,e=a.opt_nativeVolume,f=a.opt_nativeViewAttached;a=a.opt_nativeViewHidden;void 0!==f&&(this.Gb=!!f);b=new g.Lg(b.top||0,b.left+b.width||0,b.top+b.height||0,b.left||0);c=a?Ej.clone():new g.Lg(c.top||0,c.left+c.width||0,c.top+c.height||0,c.left||0);f=void 0;"n"==this.K&&(f={},f.volume=e);this.Pc=(b.bottom-b.top)*(b.right-b.left);this.position=b;this.ag(b,c,d,!1,!0,!0,f)};
g.h.ag=function(a,b,c,d,e,f,k){var l=this.kb(this)||{};g.Zb(l,k||{});this.M=l.duration||this.M;this.Zb=l.isVpaid||this.Zb;this.ob=f;Tj.aa.ag.call(this,a,b,c,d,e,f,l)};
g.h.Qs=function(a,b,c,d){Tj.aa.Qs.call(this,a,b,c,d);this.oa[this.oa.length-1].update(a,b,this.g,c,.5,d);this.Vb=Ki(this.g)&&Ki(b);-1==this.Oa&&this.oe&&(this.Oa=this.Ce().o);this.A.A=0;a=this.g;b=Kj(this);.5<=a.g&&this.A.Ga("vs");b&&this.A.Ga("vw");Ii(a.volume)&&this.A.Ga("am");this.Vb&&this.A.Ga("a");this.D&&this.A.Ga("f");-1!=a.o&&(this.A.Ga("bm"),1==a.o&&this.A.Ga("b"));this.Vb&&b&&this.A.Ga("avw");this.ob&&this.A.Ga("cm");this.ob&&0<a.g&&this.A.Ga("pv");Wj(this,this.Ce().o,!0)&&this.A.Ga("gdr")};
g.h.Lm=function(){return new Rj};
g.h.Ce=function(){return this.uc};
g.h.Yp=function(){return new Ji};
g.h.up=function(a,b,c,d){a=Tj.aa.up.call(this,a,b,c,d);a.B=this.D;a.paused=this.P;a.volume=d.volume;Ii(a.volume)||(this.Kg++,d=this.g,Ii(d.volume)&&(a.volume=d.volume));return a};
g.h.mw=function(a,b){var c=g.t(b.currentTime)?b.currentTime:this.Za,d=Vj(this,a),e=c-this.Za,f=b.isYouTube,k=g.t(b.isPlaying)?b.isPlaying:!0,l=0;2!=this.Ia?(0<=e?(this.Fa+=d,this.ha+=Math.max(d-e,0),l=Math.min(e,this.Fa)):this.Cd+=Math.abs(e),0!=e&&(this.Fa=0),-1==this.Sa&&0<e&&(this.Sa=0<=Ci?zi()-Ci:-1)):(k||this.P||(this.ha+=d),-1==this.Sa&&k&&(this.Sa=0<=Ci?zi()-Ci:-1));this.Za=c;if(f){if(1==this.Ia)return l;if(2==this.Ia)return k?d:0}return Vj(this,a)};
g.h.Xj=function(a,b){return this.ua?0:this.D?1:Tj.aa.Xj.call(this,a,b)};
g.h.Yg=function(){return 1};var Pw=null,rga={8:"google_prev_ad_formats_by_region",9:"google_prev_ad_slotnames_by_region"};g.Yoa=!g.sc&&!dc();g.C(g.dk,g.M);g.h=g.dk.prototype;g.h.Hj=!1;g.h.Zk=0;g.h.Th=null;g.h.Xi=function(a){this.g=arguments;this.Th||this.Zk?this.Hj=!0:ek(this)};
g.h.stop=function(){this.Th&&(g.gg(this.Th),this.Th=null,this.Hj=!1,this.g=[])};
g.h.pause=function(){this.Zk++};
g.h.resume=function(){this.Zk--;this.Zk||!this.Hj||this.Th||(this.Hj=!1,ek(this))};
g.h.W=function(){g.dk.aa.W.call(this);this.stop()};
g.h.KP=function(){this.Th=null;this.Hj&&!this.Zk&&(this.Hj=!1,ek(this))};var jk=null,lk=null,mk=null,ok=null,Ck=null,ik=!1,Dk=[],Gk=[],xk=!1,yk=null,wk=0,uk=fk()||gk(),tca=0;var Sk=null,ul="",tl=!1;var Rk={sv:"sv",cb:"cb",e:"e",nas:"nas",msg:"msg","if":"if",sdk:"sdk",p:"p",tos:"tos",mtos:"mtos",ps:"ps",scs:"scs",bs:"bs",pt:"pt",vht:"vht",mut:"mut",a:"a",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",mc:"mc",nc:"nc",mv:"mv",nv:"nv",qmt:"qmtos",qnc:"qnc",qmv:"qmv",qnv:"qnv",raf:"raf",rafc:"rafc",lte:"lte",tth:"tth",femt:"femt",femvt:"femvt",emc:"emc",emuc:"emuc",emb:"emb",avms:"avms",nvat:"nvat",qi:"qi"},Nca={c:Jk("c"),at:"at",atos:Mk("atos",[0,2,4]),ta:function(a,b){return function(c){if(!g.t(c[a]))return b}}("tth","1"),
a:"a",dur:"dur",p:"p",tos:Lk(),j:"dom",mtos:Mk("mtos",[0,2,4]),gmm:"gmm",gdr:"gdr",ss:Jk("ss"),vsv:uf("w2"),t:"t"},Qca={atos:"atos",avt:Mk("atos",[2]),davs:"davs",dafvs:"dafvs",dav:"dav",ss:Jk("ss"),t:"t"},Oca={a:"a",tos:Lk(),at:"at",c:Jk("c"),mtos:Mk("mtos",[0,2,4]),dur:"dur",fs:"fs",p:"p",vpt:"vpt",vsv:uf("ias_w2"),dom:"dom",gmm:"gmm",gdr:"gdr",t:"t"},Pca={tos:Lk(),at:"at",c:Jk("c"),mtos:Mk("mtos",[0,2,4]),p:"p",vpt:"vpt",vsv:uf("dv_w4"),gmm:"gmm",gdr:"gdr",dom:"dom",t:"t",mv:"mv",qmpt:Mk("qmtos",
[0,2,4]),qvs:function(a,b){return function(c){var d=c[a];if(g.oa(d))return(0,g.I)(b,function(a){return 0<d&&d>=a?1:0})}}("qnc",[1,
.5,0]),qmv:"qmv",qa:"qas",a:"a"};g.h=Nk.prototype;g.h.Nm=function(){};
g.h.Cw=g.y;g.h.vA=g.y;g.h.gv=g.y;g.h.Ju=g.y;g.h.lq=function(a){window.clearTimeout(yk);yk=null;ul=a;xk=!0};
g.h.Fw=function(a){a&&(Tk(a,"fp"),a.da=!0,this.us(a))};
g.h.pH=function(a){Xj(a,0);return Zj(a,"start")};
g.h.mH=function(a,b){sk([a],!ak(),b);return Zj(a,"progress")};
g.h.cH=function(a,b){return Uk(a,"firstquartile",1,b)};
g.h.iH=function(a,b){a.oe=!0;return Uk(a,"midpoint",2,b)};
g.h.qH=function(a,b){return Uk(a,"thirdquartile",3,b)};
g.h.YG=function(a,b){var c=Uk(a,"complete",4,b);a.D=!1;Wk(1,a.C);return c};
g.h.lH=function(a,b){return Vk(a,"pause",b)};
g.h.XG=function(a,b){return Vk(a,"abandon",b)};
g.h.nH=function(a,b){var c=ak();a.P&&!c&&(a.Ce().C=zi());sk([a],!c,b);a.P=!1;return Zj(a,"resume")};
g.h.sH=function(a){return Zj(a,"viewable_impression")};
g.h.oH=function(a,b){var c=!ak();sk([a],c,b);c=Zj(a,"skip");a.D=!1;Wk(1,a.C);return c};
g.h.jH=function(a,b){sk([a],!ak(),b);return Zj(a,"mute")};
g.h.rH=function(a,b){sk([a],!ak(),b);return Zj(a,"unmute")};
g.h.dH=function(a,b){a.D=!0;sk([a],!ak(),b);return Zj(a,"fullscreen")};
g.h.bH=function(a,b){a.D=!1;sk([a],!ak(),b);return Zj(a,"exitfullscreen")};
g.h.eH=function(a){return Zj(a,"fully_viewable_audible_half_duration_impression")};
g.h.hH=function(a){return Zj(a,"measurable_impression")};
g.h.aH=function(a){return Zj(a,"engagedview")};
g.h.fH=function(a){return Zj(a,"impression")};
g.h.ZG=function(a){return Zj(a,"creativeview")};
g.h.kH=function(a,b){sk([a],!ak(),b);return a.o()};
g.h.rq=function(a,b){sk([a],!ak(),b);Wk(2,a.C);return a.o()};
g.h.Um=function(a){Kj(a)&&!a.Ch&&this.vA(a);this.gv(a)};
g.h.us=g.y;var dl=(new Date).getTime(),fl=!1,gl=!1,hl=!1,Fca=[function(a){return!(!a.chrome||!a.chrome.webstore)},
function(a){return!!a.document.documentMode},
function(a){return!!a.document.fonts.ready},
function(){return el(0)},
function(a){return!!a.ActiveXObject},
function(a){return!!a.chrome},
function(a){return!!a.navigator.serviceWorker},
function(a){return!!a.opera},
function(a){return!!a.sidebar},
function(){return!+"\v1"},
function(){return el(1)},
function(a){return!a.ActiveXObject},
function(a){return"-ms-ime-align"in a.document.documentElement.style},
function(a){return"-ms-scroll-limit"in a.document.documentElement.style},
function(a){return"-webkit-font-feature-settings"in a.document.body.style},
function(){return el(2)},
function(a){return"ActiveXObject"in a},
function(a){return"MozAppearance"in a.document.documentElement.style},
function(a){return"_phantom"in a},
function(a){return"callPhantom"in a},
function(a){return"content"in a.document.createElement("template")},
function(a){return"getEntriesByType"in a.performance},
function(){return el(3)},
function(a){return"image-rendering"in a.document.body.style},
function(a){return"object-fit"in a.document.body.style},
function(a){return"open"in a.document.createElement("details")},
function(a){return"orientation"in a.screen},
function(a){return"performance"in a},
function(a){return"shape-image-threshold"in a.document.body.style},
function(){return el(4)},
function(a){return"srcset"in a.document.createElement("img")},
function(){return gl},
function(){return hl},
function(){return el(5)},
function(a){a=a.document.createElement("div");a.style.width="1px";a.style.width="-webkit-min-content";a.style.width="min-content";return"1px"!=a.style.width},
function(a){a=a.document.createElement("div");a.style.width="1px";a.style.width="calc(1px - 1px)";a.style.width="-webkit-calc(1px - 1px)";return"1px"!=a.style.width},
function(){var a=!1;eval('var DummyFunction1 = function(x){ "use strict"; var a = 12; b = a + x*35; }');try{(0,window.DummyFunction1)()}catch(b){a=!0}return a},
function(){var a=!1;try{(0,window.DummyFunction2)()}catch(b){a=!0}return a},
function(){return!1},
function(){return el(6)},
function(a){var b=a.document.createElement("canvas");b.width=b.height=1;b=b.getContext("2d");b.globalCompositeOperation="multiply";b.fillStyle="rgb(0,255,255)";b.fillRect(0,0,1,1);b.fill();b.fillStyle="rgb(255,255,0)";b.fillRect(0,0,1,1);b.fill();b=b.getImageData(0,0,1,1).data;return b[0]==b[2]&&b[1]==b[3]||cl(a.navigator.vibrate)},
function(a){a=a.document.createElement("canvas");a.width=a.height=1;a=a.getContext("2d");a.globalCompositeOperation="multiply";a.fillStyle="rgb(0,255,255)";a.fillRect(0,0,1,1);a.fill();a.fillStyle="rgb(255,255,0)";a.fillRect(0,0,1,1);a.fill();a=a.getImageData(0,0,1,1).data;return a[0]==a[2]&&a[1]==a[3]},
function(a){a=a.document.createElement("div");return cl(a.matches)},
function(a){a=a.document.createElement("input");a.setAttribute("type","range");return"text"!==a.type},
function(a){return a.CSS.supports("image-rendering","pixelated")},
function(a){return a.CSS.supports("object-fit","contain")},
function(){return el(7)},
function(a){return a.CSS.supports("object-fit","inherit")},
function(a){return a.CSS.supports("shape-image-threshold","0.9")},
function(a){return a.CSS.supports("word-break","keep-all")},
function(){return eval("1 == [for (item of [1,2,3]) item][0]")},
function(a){return cl(a.CSS.supports)},
function(){return cl(window.Intl.Collator)},
function(a){return cl(a.document.createElement("dialog").show)},
function(){return el(8)},
function(a){return cl(a.document.createElement("div").animate([{transform:"scale(1)",WF:"ease-in"},{transform:"scale(1.3)",WF:"ease-in"}],{duration:1300,d1:1}).reverse)},
function(a){return cl(a.document.createElement("div").animate)},
function(a){return cl(a.document.documentElement.webkitRequestFullScreen)},
function(a){return cl(a.navigator.getBattery)},
function(a){return cl(a.navigator.permissions.query)},
function(){return!1},
function(){return el(9)},
function(){return cl(window.webkitRequestAnimationFrame)},
function(a){return cl(a.BroadcastChannel.call)},
function(a){return cl(a.FontFace)},
function(a){return cl(a.Gamepad)},
function(){return el(10)},
function(a){return cl(a.MutationEvent)},
function(a){return cl(a.MutationObserver)},
function(a){return cl(a.crypto.getRandomValues)},
function(a){return cl(a.document.body.createShadowRoot)},
function(a){return cl(a.document.body.webkitCreateShadowRoot)},
function(a){return cl(a.fetch)},
function(){return el(11)},
function(a){return cl(a.navigator.serviceWorker.register)},
function(a){return cl(a.navigator.webkitGetGamepads)},
function(a){return cl(a.speechSynthesis.speak)},
function(a){return cl(a.webkitRTCPeerConnection)},
function(a){return a.CSS.supports("--fake-var","0")},
function(){return el(12)},
function(a){return a.CSS.supports("cursor","grab")},
function(a){return a.CSS.supports("cursor","zoom-in")},
function(a){return a.CSS.supports("image-orientation","270deg")},
function(){return el(13)},
function(a){return a.CSS.supports("position","sticky")},
function(a){return void 0===a.document.createElement("style").scoped},
function(a){return a.performance.getEntriesByType("resource")instanceof Array},
function(){return"undefined"==typeof window.InstallTrigger},
function(){return"object"==typeof(new window.Intl.Collator).resolvedOptions()},
function(a){return"boolean"==typeof a.navigator.onLine},
function(){return el(14)},
function(a){return"undefined"==typeof a.navigator.k1},
function(a){return"number"==typeof a.performance.now()},
function(){return 0==(new window.Uint16Array(1))[0]},
function(a){return-1==a.ActiveXObject.toString().indexOf("native")},
function(a){return-1==Object.prototype.toString.call(a.HTMLElement).indexOf("Constructor")}],Gca=[function(a){a=a.document.createElement("div");
var b=null,c=["{45EA75A0-A269-11D1-B5BF-0000F8051515}","{3AF36230-A269-11D1-B5BF-0000F8051515}","{89820200-ECBD-11CF-8B85-00AA005B4383}"];try{a.style.behavior="url(#default#clientcaps)"}catch(e){}for(var d=0;d<c.length;d++){try{b=a.getComponentVersion(c[d],"componentid").replace(/,/g,".")}catch(e){}if(b)return b.split(".")[0]}return!1},
function(){return(new Date).getTimezoneOffset()},
function(a){return(a.innerWidth||a.document.documentElement.clientWidth||a.document.body.clientWidth)/(a.innerHeight||a.document.documentElement.clientHeight||a.document.body.clientHeight)},
function(a){return(a.outerWidth||a.document&&a.document.body&&a.document.body.offsetWidth)/(a.outerHeight||a.document&&a.document.body&&a.document.body.offsetHeight)},
function(a){return a.screen.availWidth/a.screen.availHeight},
function(a){return a.screen.width/a.screen.height}],Hca=[function(a){return a.navigator.userAgent},
function(a){return a.navigator.platform},
function(a){return a.navigator.vendor}];g.C(il,nba);il.prototype.reset=function(){this.g[0]=1732584193;this.g[1]=4023233417;this.g[2]=2562383102;this.g[3]=271733878;this.B=this.A=0};
il.prototype.update=function(a,b){g.t(b)||(b=a.length);for(var c=b-this.o,d=this.C,e=this.A,f=0;f<b;){if(0==e)for(;f<=c;)jl(this,a,f),f+=this.o;if(g.u(a))for(;f<b;){if(d[e++]=a.charCodeAt(f++),e==this.o){jl(this,d);e=0;break}}else for(;f<b;)if(d[e++]=a[f++],e==this.o){jl(this,d);e=0;break}}this.A=e;this.B+=b};
il.prototype.digest=function(){var a=Array((56>this.A?this.o:2*this.o)-this.A);a[0]=128;for(var b=1;b<a.length-8;++b)a[b]=0;for(var c=8*this.B,b=a.length-8;b<a.length;++b)a[b]=c&255,c/=256;this.update(a);a=Array(16);for(b=c=0;4>b;++b)for(var d=0;32>d;d+=8)a[c++]=this.g[b]>>>d&255;return a};g.C(nl,Nk);g.qa(nl);g.h=nl.prototype;g.h.Nm=function(a,b){switch(Dj.getInstance().g){case "nis":var c=Fk(a);c||(c=ol(this,a,"n",b.opt_nativeTime||-1),c.ua=Dj.getInstance().G);break;case "gsv":(c=Fk(a))||(c=ol(this,a,"m",b.opt_nativeTime||-1));break;case "exc":(c=Fk(a))||(c=ol(this,a,"h",-1));break;default:b.opt_adElement?c=Cca(this,a,b.opt_adElement):(c=Lca(this,a,b.opt_sdkID||""))||(c=Fk(a)||void 0)}c&&c.kb==g.y&&(c.kb=(0,g.A)(this.Ju,this));return c};
g.h.Ju=function(a){var b=Dj.getInstance();a.o=0;a.Na=0;if("as"==a.K)if(b="getVideoMetadata"+a.Bj,g.ua(a.element[b]))try{var c=a.element[b]()}catch(e){a.o|=4}else a.o|=2;else if("h"==a.K||"n"==a.K)if(b=g.x("exc"==b.g||"nis"==b.g?"ima.bridge.getVideoMetadata":"ima.common.getVideoMetadata"),g.ua(b))try{c=b(a.C)}catch(e){a.o|=4}else a.o|=2;else a.o|=1;a.o||(g.t(c)?null===c?a.o|=16:g.Tb(c)?a.o|=32:null!=c.errorCode&&(a.Na=c.errorCode,a.o|=64):a.o|=8);null!=c||(c={});b=c;a.ra=0;for(var d in Woa)null==b[d]&&
(a.ra|=Woa[d]);bl(b,"currentTime");bl(b,"duration");Ii(c.volume)&&Ii(this.B)&&(c.volume*=this.B);return c};
g.h.vA=function(a){ql(a,"viewable_impression")&&(a.Ch=!0)};
g.h.gv=function(a){Wj(a,a.Ce().fa[0])&&!a.rf&&ql(a,"fully_viewable_audible_half_duration_impression")&&(a.rf=!0)};
g.h.Cw=function(a){a.Bh||a.da||this.A||!ql(a,"measurable_impression")||(a.Bh=!0)};
g.h.Um=function(a){this.A?wl(this,a):nl.aa.Um.call(this,a)};
g.h.us=function(a){this.A&&1==a.Yg()&&wl(this,a)};
g.v("Goog_AdSense_Lidar_sendVastEvent",hj(193,vl,void 0,function(){return{v:"581","if":Dj.getInstance().A?"1":"0",nas:String(Dk.length)}}),void 0);
g.v("Goog_AdSense_Lidar_getViewability",dj(194,function(a,b){var c=nl.getInstance();var d={};g.Zb(d,{opt_adElement:void 0,opt_fullscreen:void 0},b||{});if(d.opt_bounds)c=sl(c,al("ol"),!1);else{if(tl)d=al("ue");else if(d=c.Nm(a,d)){var e=al();g.Zb(e,Yj(d,!0,!1));d=e}else d=al("nf");c=sl(c,d,!0)}return c},void 0,void 0),void 0);
g.v("Goog_AdSense_Lidar_getUrlSignalsArray",hj(195,function(){return ml()}),void 0);
g.v("Goog_AdSense_Lidar_getUrlSignalsList",hj(196,function(){return g.mg(ml())}),void 0);
g.v("Goog_AdSense_Lidar_addExperimentId",dj(249,xl,void 0,void 0),void 0);var QA=(new Date).getTime();var Cl="StopIteration"in pa?pa.StopIteration:{message:"StopIteration",stack:""};Bl.prototype.next=function(){throw Cl;};
Bl.prototype.Sd=function(){return this};g.h=Fl.prototype;g.h.Mc=function(){return this.La};
g.h.fb=function(){Il(this);for(var a=[],b=0;b<this.g.length;b++)a.push(this.o[this.g[b]]);return a};
g.h.Cb=function(){Il(this);return this.g.concat()};
g.h.isEmpty=function(){return 0==this.La};
g.h.clear=function(){this.o={};this.zh=this.La=this.g.length=0};
g.h.remove=function(a){return Gl(this.o,a)?(delete this.o[a],this.La--,this.zh++,this.g.length>2*this.La&&Il(this),!0):!1};
g.h.get=function(a,b){return Gl(this.o,a)?this.o[a]:b};
g.h.set=function(a,b){Gl(this.o,a)||(this.La++,this.g.push(a),this.zh++);this.o[a]=b};
g.h.forEach=function(a,b){for(var c=this.Cb(),d=0;d<c.length;d++){var e=c[d],f=this.get(e);a.call(b,f,e,this)}};
g.h.clone=function(){return new Fl(this)};
g.h.Sd=function(a){Il(this);var b=0,c=this.zh,d=this,e=new Bl;e.next=function(){if(c!=d.zh)throw Error("The map has changed since the iterator was created");if(b>=d.g.length)throw Cl;var e=d.g[b++];return a?e:d.o[e]};
return e};g.h=g.Ll.prototype;g.h.toString=function(){var a=[],b=this.B;b&&a.push(Tl(b,Zoa,!0),":");var c=this.o;if(c||"file"==b)a.push("//"),(b=this.G)&&a.push(Tl(b,Zoa,!0),"@"),a.push(g.Fa(c).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),c=this.C,null!=c&&a.push(":",String(c));if(c=this.A)this.o&&"/"!=c.charAt(0)&&a.push("/"),a.push(Tl(c,"/"==c.charAt(0)?$oa:apa,!0));(c=this.g.toString())&&a.push("?",c);(c=this.Qh())&&a.push("#",Tl(c,bpa));return a.join("")};
g.h.resolve=function(a){var b=this.clone(),c=!!a.B;c?Ml(b,a.B):c=!!a.G;c?b.G=a.G:c=!!a.o;c?g.Nl(b,a.o):c=null!=a.C;var d=a.A;if(c)g.Ol(b,a.C);else if(c=!!a.A){if("/"!=d.charAt(0))if(this.o&&!this.A)d="/"+d;else{var e=b.A.lastIndexOf("/");-1!=e&&(d=b.A.substr(0,e+1)+d)}e=d;if(".."==e||"."==e)d="";else if(Ja(e,"./")||Ja(e,"/.")){for(var d=g.Da(e,"/"),e=e.split("/"),f=[],k=0;k<e.length;){var l=e[k++];"."==l?d&&k==e.length&&f.push(""):".."==l?((1<f.length||1==f.length&&""!=f[0])&&f.pop(),d&&k==e.length&&
f.push("")):(f.push(l),d=!0)}d=f.join("/")}else d=e}c?g.Pl(b,d):c=""!==a.g.toString();c?Ql(b,a.g.clone()):c=!!a.J;c&&(b.J=a.Qh());return b};
g.h.clone=function(){return new g.Ll(this)};
g.h.jw=function(){return this.g.toString()};
g.h.Qh=function(){return this.J};
var Zoa=/[#\/\?@]/g,apa=/[\#\?:]/g,$oa=/[\#\?]/g,Yca=/[\#\?@]/g,bpa=/#/g;g.h=g.Sl.prototype;g.h.Mc=function(){$l(this);return this.La};
g.h.remove=function(a){$l(this);a=bm(this,a);return Hl(this.g,a)?(this.o=null,this.La=this.La-this.g.get(a).length,this.g.remove(a)):!1};
g.h.clear=function(){this.g=this.o=null;this.La=0};
g.h.isEmpty=function(){$l(this);return 0==this.La};
g.h.forEach=function(a,b){$l(this);this.g.forEach(function(c,d){(0,g.H)(c,function(c){a.call(b,c,d,this)},this)},this)};
g.h.Cb=function(){$l(this);for(var a=this.g.fb(),b=this.g.Cb(),c=[],d=0;d<b.length;d++)for(var e=a[d],f=0;f<e.length;f++)c.push(b[d]);return c};
g.h.fb=function(a){$l(this);var b=[];if(g.u(a))cm(this,a)&&(b=g.nb(b,this.g.get(bm(this,a))));else{a=this.g.fb();for(var c=0;c<a.length;c++)b=g.nb(b,a[c])}return b};
g.h.set=function(a,b){$l(this);this.o=null;a=bm(this,a);cm(this,a)&&(this.La=this.La-this.g.get(a).length);this.g.set(a,[b]);this.La=this.La+1;return this};
g.h.get=function(a,b){var c=a?this.fb(a):[];return 0<c.length?String(c[0]):b};
g.h.toString=function(){if(this.o)return this.o;if(!this.g)return"";for(var a=[],b=this.g.Cb(),c=0;c<b.length;c++)for(var d=b[c],e=g.Fa(d),d=this.fb(d),f=0;f<d.length;f++){var k=e;""!==d[f]&&(k+="="+g.Fa(d[f]));a.push(k)}return this.o=a.join("&")};
g.h.clone=function(){var a=new g.Sl;a.o=this.o;this.g&&(a.g=this.g.clone(),a.La=this.La);return a};var Um={PD:5E3,QD:15E3,zE:"://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/sul www.google.com/pagead/xsul www.youtube.com/pagead/sul www.youtube.com/pagead/psul www.youtube.com/pagead/slav".split(" "),AE:/\bocr\b/,Ep:0,xg:{},mR:function(a,b,c){a&&(Um.vI(a)?Um.PA(a,b):Um.LA(a,b,c))},
vI:function(a){return E(g.F(a))?!1:0<=a.indexOf("://pagead2.googlesyndication.com/pagead/gen_204?id=yt3p&sr=1&")||(new g.Ll(a)).Qh().match(Um.AE)?!0:null!=g.$a(Um.zE,function(b){return null!=a.match(b)})},
PA:function(a,b){if(a&&(a=Um.mG(a),!E(a))){var c='javascript:"<body><img src=\\""+'+a+'+"\\"></body>"';b?Um.rx(function(b){Um.JA(b?c:'javascript:"<body><object data=\\""+'+a+'+"\\" width=1 height=1 style=\\"visibility:hidden;\\"></body>"')}):Um.JA(c)}},
JA:function(a){var b=g.ge("IFRAME",{src:a,style:"display:none"});a=g.Sd(b).body;var c=g.fg(function(){g.lf(d);g.pe(b)},Um.QD);
var d=jf(b,["load","error"],function(){g.fg(function(){g.gg(c);g.pe(b)},Um.PD)});
a.appendChild(b)},
rx:function(a,b){var c=Um.xg.imageLoadingEnabled;if(null!=c)a(c);else{var d=!1,c=function(b,c){delete Um.xg[c];d||(d=!0,null!=Um.xg.imageLoadingEnabled||(Um.xg.imageLoadingEnabled=b),a(b))};
b?b(c):Um.GI(c)}},
GI:function(a){var b=new window.Image,c=""+Um.Ep++;Um.xg[c]=b;b.onload=function(){(0,window.clearTimeout)(d);a(!0,c)};
var d=(0,window.setTimeout)(function(){a(!1,c)},300);
b.src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="},
lR:function(a){if(a){var b=g.ie("OBJECT");b.data=a;b.width="1";b.height="1";b.style.visibility="hidden";var c=""+Um.Ep++;Um.xg[c]=b;b.onload=b.onerror=function(){delete Um.xg[c]};
window.document.body.appendChild(b)}},
KA:function(a){if(a){var b=new window.Image,c=""+Um.Ep++;Um.xg[c]=b;b.onload=b.onerror=function(){delete Um.xg[c]};
b.src=a}},
LA:function(a,b,c){if(a){if(c)try{if(pa.navigator&&pa.navigator.sendBeacon&&pa.navigator.sendBeacon(a,""))return}catch(d){}b?Um.rx(function(b){b?Um.KA(a):Um.lR(a)}):Um.KA(a)}},
mG:function(a){a=ud(wd(a));if("about:invalid#zClosurez"===a)return"";a=g.zd(Bd(a));return g.Fa(g.mg(a))}};g.C(g.dm,g.M);var gm=[];g.dm.prototype.X=function(a,b,c,d){return em(this,a,b,c,d)};
g.dm.prototype.za=function(a,b,c,d,e){if(g.sa(b))for(var f=0;f<b.length;f++)this.za(a,b[f],c,d,e);else c=c||this.handleEvent,e=e||this.B||this,c=bf(c),d=!!d,b=g.Se(a)?Ze(a.ze,String(b),c,d,e):a?(a=g.df(a))?Ze(a,b,c,d,e):null:null,b&&(g.lf(b),delete this.o[b.key]);return this};
g.dm.prototype.W=function(){g.dm.aa.W.call(this);km(this)};
g.dm.prototype.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented");};g.C(lm,g.M);lm.prototype.F=function(){this.B=(0,g.G)()};
lm.prototype.J=function(a){var b=null!=a.target.href?a.target:a.target.parentNode,c=[];this.o&1&&c.push("nm="+this.C);this.o&2&&c.push("nb="+this.D.get(b));if(this.o&8){var d=g.mh(this.A);c.push("nx="+(a.clientX-d.x));c.push("ny="+(a.clientY-d.y))}this.o&16&&null!=this.B&&c.push("clkt="+((0,g.G)()-this.B));0<c.length&&(b.href+=0<=b.href.indexOf("?")?"&"+c.join("&"):"?"+c.join("&"))};
lm.prototype.G=function(){this.C++};
lm.prototype.W=function(){lm.aa.W.call(this);this.g.dispose()};var bda=/(?:\[|%5B)([a-zA-Z0-9_]+)(?:\]|%5D)/g;var nm="ad_type vpos mridx pos vad_type videoad_start_delay".split(" ");pm.prototype.isBumper=function(){return this.o};g.h=qm.prototype;g.h.Tp=function(){return this.g.Tp()};
g.h.pk=function(){return this.g.pk()};
g.h.Cf=function(){return this.g.Cf()};
g.h.Xm=function(a){return this.Tf?this.g.uq():this.g.Xm(a)};
g.h.setSize=function(a,b){this.g.setSize(a,b)};
g.h.Ip=function(){return this.g.Ip()};
g.h.Ym=function(){return this.g.Ym()};
g.h.xq=function(){return this.g.xq()};
g.h.Zm=function(){return this.g.Zm()};
g.h.hide=g.y;g.h.rg=g.y;g.h.nd=g.y;g.h.uq=function(){return this.g.uq()};
g.h.wq=g.y;g.C(rm,g.Me);rm.prototype.getError=function(){return this.A};var jy="adMetadata callFlashVpaidMethod adCanPlay click companionBackfill companionInitialized complete destroyInsecureFlashVpaid durationChange firstquartile impression interaction initInsecureFlashVpaid youtubeKevlarCompanionShow loaded log mediaUrlPinged midpoint mute pause resume skipshown skippableStateChanged skip start thirdquartile trackingUrlPinged videoClicked volumeChange vpaidEvent youTubeChannelMetadata".split(" "),t3="abandon acceptinvitation acceptinvitationlinear click close collapse companionClick complete creativeview endscreenClick engagedview exitfullscreen expand externalActivityEvent firstquartile fullscreen instreamAdComplete measurable_impression midpoint mute MUTE_AD pause progress replay resume rewind show_ad skipshown skip start stop thirdquartile unmute userClose video_card_endcap_action video_card_endcap_collapse video_card_endcap_dismiss video_card_endcap_impression videoShareClicked videoShareShown viewable_impression why_this_ad_url why_this_ad_got_it why_this_ad_settings_url why_this_ad_learn_more mute_interaction_url mute_url mute_undo_url".split(" "),
cpa="acceptinvitation click close collapse creativeview expand progress".split(" "),u3="viewable_impression measurable_impression overlay_unmeasurable_impression overlay_unviewable_impression overlay_viewable_immediate_impression overlay_viewable_end_of_session_impression externalActivityEvent".split(" "),v3={measurable_impression:"measurable_impression",viewable_impression:"viewable_impression",fully_viewable_audible_half_duration_impression:"fully_viewable_audible_half_duration_impression",overlay_unmeasurable_impression:"overlay_unmeasurable_impression",
overlay_unviewable_impression:"overlay_unviewable_impression",overlay_viewable_immediate_impression:"overlay_viewable_immediate_impression",overlay_viewable_end_of_session_impression:"overlay_viewable_end_of_session_impression"};g.C(sm,g.Me);sm.prototype.Ob=function(){return this.A};
var Lga={wT:"adCanPlay",yT:"adNotify",mV:"contentPauseRequested",nV:"contentResumeRequested",Go:"click",QV:"discardAdNotify",x0:"videoClicked",z0:"videoIconClicked",Rt:"engagedview",tW:"expandedChanged",g_:"start",Cl:"impression",Zt:"measurable_impression",Cu:"viewable_impression",Wt:"fully_viewable_audible_half_duration_impression",pE:"overlay_resize",qE:"overlay_unmeasurable_impression",rE:"overlay_unviewable_impression",tE:"overlay_viewable_immediate_impression",sE:"overlay_viewable_end_of_session_impression",
uW:"externalActivityEvent",PAUSED:"pause",yZ:"resume",Ut:"firstquartile",au:"midpoint",xu:"thirdquartile",Nt:"complete",iW:"durationChange",vU:"autoClose",q0:"userClose",r0:"userRecall",eZ:"prefetched",No:"loaded",mU:"allAdsCompleted",lu:"skip",KE:"skipshown",AX:"linearChanged",XZ:"skippableStateChanged",xT:"adMetadata",vT:"adBreakReady",LX:"log",VOLUME_CHANGED:"volumeChange",F0:"mute",lX:"interaction",dV:"companionBackfill",U0:"youTubeVideoMetadata",S0:"youTubeChannelMetadata",p0:"urlNavigationRequested",
M_:"trackingUrlPinged",t0:"video_card_endcap_action",u0:"video_card_endcap_collapse",v0:"video_card_endcap_dismiss",w0:"video_card_endcap_impression",P0:"why_this_ad_url",O0:"why_this_ad_got_it",yY:"MUTE_AD",gV:"companionInitialized",fV:"companionImpression",eV:"companionClick",SX:"mediaUrlPinged",T0:"youtubeKevlarCompanionShow"};wm.prototype.g=function(){return this.ba};
wm.prototype.getPlayerType=function(){return""};
var P=new wm;var dpa={NORMAL:"normal",Vt:"fullscreen"};var Hs=["ADSENSE","ADSENSE/ADX"],gfa=["DART","DART_DFA","DART_DFP"],rfa=["FREEWHEEL","YT:FREEWHEEL"],Nr=["SHOPPING","YT:SHOPPING"],Rr=["GDFP"],ffa=["VIRAL","ADSENSE-VIRAL"],efa=["VIRAL-RESERVE"],vp={"application/flash":"Flash","application/shockwave-flash":"Flash","application/x-shockwave-flash":"Flash","application/javascript":"Javascript","text/javascript":"Javascript","image/jpeg":"Image","image/jpg":"Image","image/png":"Image","image/gif":"Image",text:"Text"},Bu={xV:"application/dash+xml",dY:"video/mp4",
fY:"video/mpeg",PX:"application/x-mpegURL",GY:"video/ogg",w_:"video/3gpp",I0:"video/webm",cY:"audio/mpeg",eY:"audio/mp4"};g.C(xm,g.Me);g.C(ym,Error);ym.prototype.ud=function(){return this.B};
ym.prototype.Lb=function(){return this.o};
ym.prototype.bc=function(){return this.C};
ym.prototype.toString=function(){return"AdError "+this.Lb()+": "+this.ud()+(null!=this.yk?" Caused by: "+this.yk:"")};zm.prototype.g=function(){return!1};
zm.prototype.o=function(){return window.NaN};
zm.prototype.A=function(){return""};Am.prototype.getId=function(){return this.Aa};Bm.prototype.getId=function(){return this.Aa};var lda=["ActiveViewExternalLayer"],Em=null;var aea=["*.googlesyndication.com","gcdn.2mdn.net"],nda=["*.youtu.be","*.youtube.com"],qda="ad.doubleclick.net bid.g.doubleclick.net corp.google.com 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 static.doubleclick.net surveys.g.doubleclick.net youtube.com ytimg.com".split(" "),pda=["c.googlesyndication.com"],
iia=["googleads.g.doubleclick.net","pubads.g.doubleclick.net"];Wm.prototype.Lb=function(){return this.errorCode};
Wm.prototype.ud=function(){return this.message};
var tia=new Wm("Unable to request ads from server. Cause: {0}.",1005),jia=new Wm("Unable to request ads from server due to network error.",1012),$y=new Wm("Cannot parse the {0} value for the adslist response: {1}.",900),yu=new Wm("Invalid usage of the API. Cause: {0}",900),Vga=new Wm("Asset fallback ad replacement.",1021),Wga=new Wm("Asset fallback no ad replacement.",1021),w3=new Wm("Unable to display one or more required companions.",602),xB=new Wm("There was a problem requesting ads from the server.",
1005),epa=new Wm("There was a problem requesting the biscotti ID.",1005),hia=new Wm("Ad tag URI {0} is invalid. It must be properly encoded before being passed.",1013),aB=new Wm("The provided ad type: {0} is not supported.",1005),Wn=new Wm("The provided {0} information: {1} is invalid.",1101),fpa=new Wm("The provided skip offset was invalid.",1105),gpa=new Wm("The extension contained is neither skippable nor nonskippable.",1105),nq=new Wm("The response does not contain any valid ads.",1009),hpa=new Wm("The overlay ad content could not be displayed since creative dimensions do not align with display area.",
501),gha=new Wm("The ad playlist response was malformed or empty.",1010),az=new Wm("The ad response was not understood and cannot be parsed.",1010),mia=new Wm("An unexpected error occurred and the cause is not known. Refer to the inner error for more info.",900),via=new Wm("The ad response contains unexpected element. Cause {0}.",1010),NB=new Wm("No assets were found in the VAST ad response.",200),Xea=new Wm("Duplicate node in <{0}>: {1}",101),GA=new Wm("The VAST response document is empty.",1009),
Jga=new Wm("Linear assets were found in the VAST ad response, but none of them matched the video player's capabilities.",403),mq=new Wm("Ad request reached a timeout.",301),HA=new Wm("VAST response was malformed and could not be parsed.",100),x3=new Wm("VAST media file loading reached a timeout of {0} seconds.",402),oq=new Wm("Ad request could not be completed due to a network error.",301),ipa=new Wm("Non linear assets were found in the VAST ad response, but none of them matched the video player's capabilities.",
503),jpa=new Wm("There was an error displaying the media file.",405),pea=new Wm("The maximum number of VAST wrappers ({0}) has been reached.",302),kpa=new Wm("VAST media file duration differs from the VAST response duration by {0} seconds.",202),Ex=new Wm("Video player received an ad with unexpected or incompatible linearity",201),Wea=new Wm("Unknown node in <{0}>: {1}",101),hga=new Wm("Invalid VAST resource type: {0}",101),Iha=new Wm("Invalid VAST version",102),qea=new Wm("No additional VAST wrappers allowed.",
300),tq=new Wm("No Ads VAST response after one or more Wrappers",303),Kx=new Wm("There was an error playing the video ad.",400),lpa=new Wm("VMAP unsupported node in <{0}>: {1}",1010),mw=new Wm("An unexpected error occurred within the VPAID creative. Refer to the inner error for more info.",901);g.C(cn,g.Me);var Uz="abort canplay canplaythrough durationchange emptied loadstart loadeddata loadedmetadata progress ratechange seeked seeking stalled suspend waiting".split(" ");var pn={},rn="",kn=/OS (\S+) like/,mpa=/OS X (\S+)\)/,nn=/Android ([\d\.]+)/;wn.prototype.reset=function(){this.g=0;this.o=null};var npa;
npa={xD:["BC","AD"],wD:["Before Christ","Anno Domini"],jE:"JFMAMJJASOND".split(""),NE:"JFMAMJJASOND".split(""),du:"January February March April May June July August September October November December".split(" "),mu:"January February March April May June July August September October November December".split(" "),ju:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),nu:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),Du:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),pu:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),
ku:"Sun Mon Tue Wed Thu Fri Sat".split(" "),ou:"Sun Mon Tue Wed Thu Fri Sat".split(" "),zY:"SMTWTFS".split(""),OE:"SMTWTFS".split(""),GE:["Q1","Q2","Q3","Q4"],yE:["1st quarter","2nd quarter","3rd quarter","4th quarter"],Jt:["AM","PM"],Ho:["EEEE, MMMM d, y","MMMM d, y","MMM d, y","M/d/yy"],yu:["h:mm:ss a zzzz","h:mm:ss a z","h:mm:ss a","h:mm a"],rD:["{1} 'at' {0}","{1} 'at' {0}","{1}, {0}","{1}, {0}"],Jo:6,fF:[5,6],Ko:5};g.y3=npa;g.y3=npa;yn.prototype.clone=function(){return new yn(this.C,this.B,this.days,this.g,this.o,this.A)};
yn.prototype.times=function(a){return new yn(this.C*a,this.B*a,this.days*a,this.g*a,this.o*a,this.A*a)};
g.h=g.Bn.prototype;g.h.zm=g.y3.Jo;g.h.Bm=g.y3.Ko;g.h.clone=function(){var a=new g.Bn(this.date);a.zm=this.zm;a.Bm=this.Bm;return a};
g.h.getFullYear=function(){return this.date.getFullYear()};
g.h.getMonth=function(){return this.date.getMonth()};
g.h.getDate=function(){return this.date.getDate()};
g.h.getTime=function(){return this.date.getTime()};
g.h.getDay=function(){return this.date.getDay()};
g.h.getUTCFullYear=function(){return this.date.getUTCFullYear()};
g.h.getUTCMonth=function(){return this.date.getUTCMonth()};
g.h.getUTCDate=function(){return this.date.getUTCDate()};
g.h.getUTCHours=function(){return this.date.getUTCHours()};
g.h.getUTCMinutes=function(){return this.date.getUTCMinutes()};
g.h.getTimezoneOffset=function(){return this.date.getTimezoneOffset()};
g.h.set=function(a){this.date=new Date(a.getFullYear(),a.getMonth(),a.getDate())};
g.h.Pm=function(a,b){return[this.getFullYear(),g.Na(this.getMonth()+1,2),g.Na(this.getDate(),2)].join(a?"-":"")+(b?g.Cn(this):"")};
g.h.toString=function(){return this.Pm()};
g.h.valueOf=function(){return this.date.valueOf()};Dn.prototype.reset=function(){this.o=this.g=null};var Jn=new Fn;Fn.prototype.clear=function(){this.g=En();this.C=this.K=this.o=null;this.B=En();this.A=null;this.ba=this.F=this.J="";this.G=this.V=this.D=null;this.ca=!1};g.qa(In);In.prototype.isLoggingEnabled=function(){return this.g};g.h=Nn.prototype;g.h.tF=!1;g.h.Mu=!1;g.h.Ru=!0;g.h.Ei=null;g.h.bitrate=-1;g.h.contentId=null;g.h.Kv=!1;g.h.mimeTypes=null;g.h.surveyCreativeData=null;g.h.VR=!0;g.h.Us=!1;g.h.WR=!1;g.h.Vs=!1;g.h.Ws=!1;g.h.tB=!1;g.h.uB=!0;g.h.XF=!1;g.h.XR=!0;g.h.kp=!1;g.h.SF=!1;g.h.iS=0;g.h.showContentThumbnail=!0;g.h.Ts=!1;g.h.vj=null;g.h.cf=8E3;g.h.Su=!0;g.h.mA=0;g.h.es=-1;g.h.Nw=null;g.h.Uf=-1;g.h.shortViewCount=null;g.C(On,g.qf);var Tz={GU:"beginFullscreen",Go:"click",mW:"end",nW:"endFullscreen",ERROR:"error",No:"loaded",RX:"mediaLoadTimeout",PAUSE:"pause",PLAY:"play",WZ:"skip",KE:"skipShown",PZ:"shareClicked",qu:"start",z_:"timeUpdate",RU:"cardsStateChange",x_:"timedMetadata",E0:"volumeChange"};g.h=On.prototype;g.h.Vw=function(){return!1};
g.h.xb=function(){return!0};
g.h.ws=g.y;g.h.Xw=g.y;g.h.Aq=g.y;g.h.Be=function(){return null};
g.h.Dq=g.y;g.h.Cq=g.y;g.C(Pn,g.qf);var Qn=null;Pn.prototype.Fj=function(a){this.A=a};
Pn.prototype.destroy=function(){this.J.za(this.o,"activityMonitor",this.M);this.o=null};
Pn.prototype.M=function(a){var b=a.Mf;switch(a.Md){case "appStateChanged":Rca(nl.getInstance(),b.appState,b.nativeTime);break;case "externalActivityEvent":Un(b.queryId,b.viewabilityString,b.eventName);break;case "measurableImpression":Sn(b.queryId,b.viewabilityString);break;case "pageSignals":this.K=b.pageSignals;break;case "viewableImpression":Tn(b.queryId,b.viewabilityString);break;case "engagementData":b=b.engagementString;Rn().B=b;Rn().G=(0,g.G)();break;case "viewability":a=b.eventId;window.clearTimeout(a);
var c=this.g.get(a);c&&(this.g.remove(a),c(b.viewabilityData));break;case "viewabilityMeasurement":var d=nl.getInstance(),e=b.queryId,b=b.viewabilityData;a=Dj.getInstance();if("exc"==a.g){d.B=b.nativeVolume;var c=b.coverage||0,f=b.unmeasurable,d=d.Nm(e,{});-1==d.Bb&&(d.Bb=zi(),d.Ah=d.Ce().o);d.zb+=f?1:0;d.Fg++;d.Pe[Ni(c)]++;e=b.insideIframe;g.t(e)&&0==e&&(a.A=!1);d.da=f||d.da;b.position&&Hj(d,Xh,a.A,new g.Lg(b.position.top,b.position.right,b.position.bottom,b.position.left));b.documentSize&&(a.B=
new g.Pd(b.documentSize.width,b.documentSize.height));b.viewportSize&&(a.o=new g.Pd(b.viewportSize.width,b.viewportSize.height));d.g.g=g.Hd(c,0,1);d.kc=d.g.g}break;case "engagement":a=b.eventId,window.clearTimeout(a),c=this.g.get(a),In.getInstance().isLoggingEnabled()&&(f=-1,this.D&&(f=(0,g.G)()-this.D),d=!1,c||(d=!0),Qb(b,"loggingId")&&Ln(In.getInstance(),43,{step:"receivedResponse",time:(0,g.G)(),timeout:d,logid:b.loggingId,timediff:f})),c&&(this.g.remove(a),c(b.engagementString))}};
g.v("ima.bridge.getNativeViewability",function(a,b){Rn();b({})},void 0);
g.v("ima.bridge.getVideoMetadata",function(){var a=Rn().F;return g.ua(a)?a():{}},void 0);
g.v("ima.bridge.triggerViewEvent",Tn,void 0);g.v("ima.bridge.triggerMeasurableEvent",Sn,void 0);g.v("ima.bridge.triggerExternalActivityEvent",Un,void 0);var wda={RD:"Image",DD:"Flash",ALL:"All"},vda={VW:"Html",ZW:"IFrame",i_:"Static",ALL:"All"},xda={aX:"IgnoreSize",KZ:"SelectExactMatch",LZ:"SelectNearMatch"},yda={PV:"DisallowResize",uZ:"ResizeSmaller"};g.C(go,g.qf);var ho=null;g.h=go.prototype;g.h.destroy=function(){this.D.za(this.g,"activityMonitor",this.Qw);this.A=!1;this.o.clear()};
g.h.W=function(){this.destroy();go.aa.W.call(this)};
g.h.init=function(a){if(!this.A){if(this.g=a||null)this.D.X(this.g,"activityMonitor",this.Qw),no(this);P.J&&Cda();P.o||P.g()||(nl.getInstance().A=!0);this.C=(g.ua(null),null);this.A=!0;a=mda();(0,g.H)(a,function(a){xl(a)})}};
g.h.Fj=function(a){this.B=a};
g.h.Qw=function(a){var b=a.Mf,c=b.queryId,d={};d.eventId=b.eventId;switch(a.Md){case "getPageSignals":no(this);break;case "reportVastEvent":var e=b.vastEvent;a=b.osdId;var f={};f.opt_fullscreen=b.isFullscreen;b.isOverlay&&(f.opt_bounds=b.overlayBounds);d.viewabilityData=lo(this,e,c,a,f);this.g.send("activityMonitor","viewability",d);break;case "fetchAdTagUrl":d={},d.eventId=b.eventId,a=b.osdId,c=null,Qb(b,"isFullscreen")&&(c=b.isFullscreen),Qb(b,"loggingId")&&(b=b.loggingId,d.loggingId=b,Ln(In.getInstance(),
43,{step:"beforeLookup",logid:b,time:(0,g.G)()},!0)),d.engagementString=Dda(this,a,c),this.g.send("activityMonitor","engagement",d)}};
g.v("ima.common.getVideoMetadata",function(a){a=io().o.get(a);return g.ua(a)?a():{}},void 0);
g.v("ima.common.triggerViewEvent",function(a,b){var c={};c.queryId=a;c.viewabilityString=b;var d=io().g;d?d.send("activityMonitor","viewableImpression",c):io().dispatchEvent(new sm("viewable_impression",null,c))},void 0);
g.v("ima.common.triggerViewabilityMeasurementUpdate",function(a,b){var c=io().g,d={};d.queryId=a;d.viewabilityData=b;c&&c.send("activityMonitor","viewabilityMeasurement",d)},void 0);
g.v("ima.common.triggerMeasurableEvent",function(a,b){var c={};c.queryId=a;c.viewabilityString=b;var d=io().g;d?d.send("activityMonitor","measurableImpression",c):io().dispatchEvent(new sm("measurable_impression",null,c))},void 0);
g.v("ima.common.triggerExternalActivityEvent",function(a,b,c){var d={};d.queryId=a;d.viewabilityString=b;d.eventName=c;(a=io().g)?a.send("activityMonitor","externalActivityEvent",d):io().dispatchEvent(new sm("externalActivityEvent",null,d))},void 0);
g.v("ima.common.updateEngagementDetectionValue",function(a){if(P.J){var b=io().g;if(b){var c={};c.engagementString=a;b.send("activityMonitor","engagementData",c)}}},void 0);
io();g.C(oo,g.Me);oo.prototype.getError=function(){return this.g};po.prototype.gd=function(){return this.F};
po.prototype.Gc=function(){return this.g};
po.prototype.clone=function(){var a=new po(this.J,this.G);if(null!=this.g)qo(a,this.Gc(),this.B,this.o,this.D);else{var b=this.gd(),c=this.B,d=this.o,e=this.A,f=this.D,k=this.C;a.F=b;a.g=null;a.B=c;a.o=d;a.A=e;a.D=f||[];a.C=k||[]}return a};g.C(so,g.Me);to.prototype.videoCount=0;g.sc&&g.kc(8);g.uo.prototype.o=nd;var Go={},Uo={},Vo={},Pp={};wo.prototype.lg=null;wo.prototype.gd=function(){return this.content};
wo.prototype.toString=function(){return this.content};
g.C(xo,wo);xo.prototype.yf=Pp;g.C(yo,wo);yo.prototype.yf=Go;g.C(zo,wo);zo.prototype.yf={};zo.prototype.lg=1;g.C(Ao,wo);Ao.prototype.yf=Uo;Ao.prototype.lg=1;g.C(Bo,wo);Bo.prototype.yf=Vo;Bo.prototype.lg=1;g.C(Co,wo);Co.prototype.yf={};Co.prototype.lg=1;g.C(Do,wo);Do.prototype.yf={};Do.prototype.lg=1;var Ho=function(a){function b(a){this.content=a}
b.prototype=a.prototype;return function(a,d){var c=new b(String(a));void 0!==d&&(c.lg=d);return c}}(yo);
Io(zo);Io(Ao);Io(Bo);var Lda=Io(Co);Io(Do);var Jo={},Ko={},dr=function(a){function b(a){this.content=a}
b.prototype=a.prototype;return function(a,d){var c=String(a);if(!c)return"";c=new b(c);void 0!==d&&(c.lg=d);return c}}(yo),So=/['()]/g,ap={},Mda={"\x00":"&#0;",
"\t":"&#9;","\n":"&#10;","\x0B":"&#11;","\f":"&#12;","\r":"&#13;"," ":"&#32;",'"':"&quot;","&":"&amp;","'":"&#39;","-":"&#45;","/":"&#47;","<":"&lt;","=":"&#61;",">":"&gt;","`":"&#96;","\u0085":"&#133;","\u00a0":"&#160;","\u2028":"&#8232;","\u2029":"&#8233;"},Nda={"\x00":"%00","\u0001":"%01","\u0002":"%02","\u0003":"%03","\u0004":"%04","\u0005":"%05","\u0006":"%06","\u0007":"%07","\b":"%08","\t":"%09","\n":"%0A","\x0B":"%0B","\f":"%0C","\r":"%0D","\u000e":"%0E","\u000f":"%0F","\u0010":"%10","\u0011":"%11",
"\u0012":"%12","\u0013":"%13","\u0014":"%14","\u0015":"%15","\u0016":"%16","\u0017":"%17","\u0018":"%18","\u0019":"%19","\u001a":"%1A","\u001b":"%1B","\u001c":"%1C","\u001d":"%1D","\u001e":"%1E","\u001f":"%1F"," ":"%20",'"':"%22","'":"%27","(":"%28",")":"%29","<":"%3C",">":"%3E","\\":"%5C","{":"%7B","}":"%7D","\u007f":"%7F","\u0085":"%C2%85","\u00a0":"%C2%A0","\u2028":"%E2%80%A8","\u2029":"%E2%80%A9","\uff01":"%EF%BC%81","\uff03":"%EF%BC%83","\uff04":"%EF%BC%84","\uff06":"%EF%BC%86","\uff07":"%EF%BC%87",
"\uff08":"%EF%BC%88","\uff09":"%EF%BC%89","\uff0a":"%EF%BC%8A","\uff0b":"%EF%BC%8B","\uff0c":"%EF%BC%8C","\uff0f":"%EF%BC%8F","\uff1a":"%EF%BC%9A","\uff1b":"%EF%BC%9B","\uff1d":"%EF%BC%9D","\uff1f":"%EF%BC%9F","\uff20":"%EF%BC%A0","\uff3b":"%EF%BC%BB","\uff3d":"%EF%BC%BD"},Fda=/[\x00\x22\x27\x3c\x3e]/g,Hda=/[\x00\x09-\x0d \x22\x26\x27\x2d\/\x3c-\x3e`\x85\xa0\u2028\u2029]/g,Gda=/[\x00\x09-\x0d \x22\x27\x2d\/\x3c-\x3e`\x85\xa0\u2028\u2029]/g,Xo=/[\x00- \x22\x27-\x29\x3c\x3e\\\x7b\x7d\x7f\x85\xa0\u2028\u2029\uff01\uff03\uff04\uff06-\uff0c\uff0f\uff1a\uff1b\uff1d\uff1f\uff20\uff3b\uff3d]/g,
Jda=/^(?![^#?]*\/(?:\.|%2E){2}(?:[\/?#]|$))(?:(?:https?|mailto):|[^&:\/?#]*(?:[\/?#]|$))/i,Kda=/^[^&:\/?#]*(?:[\/?#]|$)|^https?:|^data:image\/[a-z0-9+]+;base64,[a-z0-9+\/]+=*$|^blob:/i,No=/<(?:!|\/?([a-zA-Z][a-zA-Z0-9:\-]*))(?:[^>'"]|"[^"]*"|'[^']*')*>/g,Oo=/</g;ep.prototype.bc=function(){return this.A};
g.C(fp,ep);dp.prototype.isEmpty=function(){return this.g.isEmpty()};g.h=mp.prototype;g.h.getDuration=function(){return this.Sa};
g.h.Lq=function(){return null};
g.h.Kq=function(){return null};
g.h.Jq=function(){return null};
g.h.Ob=function(){return this.J};
g.h.Im=function(){for(var a=[this],b=this.J.o;b;){var c=pp(this,b)||pp(this,b,!0);null!=c&&a.push(c);b=b.o}return a};qp.prototype.Eb=function(){return this.D};
qp.prototype.getHeight=function(){return this.C};g.C(rp,mp);g.h=rp.prototype;g.h.Ze=function(){return this.B};
g.h.Ug=function(){return this.o};
g.h.Vg=function(){return null!=this.C?this.C.o:null};
g.h.Lq=function(){var a=tp(this,"javascript");return null!=a?a.o:null};
g.h.Kq=function(){var a=up(this);return null!=a?a.o:null};
g.h.Jq=function(){return null!=this.C?this.C.A:1==this.o.length?this.o[0].A:null};g.C(wp,mp);g.h=wp.prototype;g.h.gd=function(){return ze(this.Gc())};
g.h.xk=function(){return!1};
g.h.Mq=function(){return this.xk()?ze(this.Gc(!0)):""};
g.h.hd=function(){return this.da};
g.h.af=function(){return this.Ia};
g.h.Eb=function(){return this.af().width};
g.h.getHeight=function(){return this.af().height};
g.h.Vg=function(){return this.A};
g.h.Lq=function(){return"VPAID"==this.K&&"Javascript"==this.da?this.A:null};
g.h.Kq=function(){return"VPAID"==this.K&&"Flash"==this.da?this.A:null};
g.h.Jq=function(){return this.K};
g.h.Ze=function(){return this.oa};g.C(xp,g.M);xp.prototype.F=function(){this.D=(0,g.G)()};
xp.prototype.J=function(a,b){var c=a.element;1==(this.o&1)&&(0==this.B&&this.B++,this.g.nm=this.B);2==(this.o&2)&&(this.g.nb=a.HF);if(8==(this.o&8)){var d=g.mh(this.C);this.g.nx=Math.round(b.clientX-d.x);this.g.ny=Math.round(b.clientY-d.y)}16==(this.o&16)&&null!=this.D&&(d=(0,g.G)()-this.D,this.g.clkt=d);512==(this.o&512)&&(d=di())&&(this.g.mb=d);"A"==c.tagName.toUpperCase()&&g.Fd(c,Uda(this,c.href))};
xp.prototype.G=function(){this.B++};var Vda=g.sc?'javascript:""':"about:blank";g.C(yp,wp);g.h=yp.prototype;g.h.Bi=function(a){null==this.o||E(g.F(this.Ze()))||(this.o.X(a,"click",this.ba),this.ca.push(a))};
g.h.Gc=function(a){a?(null==this.ha&&(this.ha=this.kg(a),g.le(this.ha,Dp(this))),a=this.ha):(null==this.B&&(this.B=this.kg(),g.le(this.B,Dp(this))),a=this.B);null!=this.o&&this.o.X(a,"creativeview",this.ga);return a};
g.h.kg=function(){var a=g.F(this.A);E(g.F(this.Ze()))||(a=new g.Ll(a),g.Ul(a,"clickTAG",g.Fa(this.Ze())),a=a.toString());var b=g.ge("IFRAME",{marginwidth:0,marginheight:0,hspace:0,vspace:0,frameborder:0,scrolling:"no"},null);b.height=this.getHeight();"Text"!=this.hd()&&(b.width=this.Eb());b.setAttribute("src",Om(a));this.Bi(b);return Cp(this,b)};
g.h.Up=function(){Fm().g.g("cleanup_text_overlay_spam_signals");return 2};
g.h.Im=function(){for(var a=[this],b=this.Ob().o;b;){var c=this.D?pp(this,b)||pp(this,b,!0):Ep(this,b)||Ep(this,b,!0);null!=c&&a.push(c);b=b.o}return a};var Zda={};g.C(Rp,yp);g.h=Rp.prototype;g.h.af=function(){return new g.Pd(this.Eb(),this.getHeight())};
g.h.getHeight=function(){return 63};
g.h.Eb=function(){return null!=this.F?g.vh(this.F).width:0};
g.h.Up=function(a){return Fm().g.g("cleanup_text_overlay_spam_signals")?g.Ip(a,"text-image-link")?9:g.Ip(a,"text-ad-channel")?1:0:g.Ip(a,"text-image")?9:g.Ip(a,"text-ad-channel")?1:0};
g.h.kg=function(){var a=this.Ob(),b=a.getExtension("AdSense"),c=a.getExtension("TextAd"),d=c.C,e="rtl";null!=d&&(e=Poa.test(md(d,void 0))?"rtl":"ltr");d={title:d,text:c.D+" "+c.F,dir:e,Lc:this.Ze()};if(e=c.getImageUrl())d.image=Om(e),d.vB=!0,P.g()&&(d.vB=0==c.o||0==c.A),a=g.$a(a.F,function(a){return a instanceof rp}),null!=a&&(d.duration=co(a.getDuration()));
b.A&&(d.wB=b.A);this.F=Op(Oda,d);(0,g.H)(this.F.getElementsByTagName("a"),this.Bi,this);this.F.id=this.Aa;this.F.style.height=this.getHeight()+"px";return this.F};var cea=[202,1009],hea="CONTENT_V CPN DISALLOW EID LACT VIS".split(" "),gea={MOAT_INIT:["://yts\\.moatads\\.com","://yts-testing\\.moatads\\.com","://pagead2\\.googlesyndication\\.com/pagead/gen_204"],MOAT_VIEWABILITY:["://[^.]*.moatads.com","://pagead2.googlesyndication.com/pagead/gen_204","://pubads.g.doubleclick.net"],IAS_VIEWABILITY:["://[^.]*.adsafeprotected.com","://[^.]*.test-adsafeprotected.com","://pagead2.googlesyndication.com/pagead/gen_204","://pubads.g.doubleclick.net"],DV_VIEWABILITY:["://[^.]*.yt.srs.doubleverify.com",
"://pagead2.googlesyndication.com/pagead/gen_204","://pubads.g.doubleclick.net"],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(" ")};g.h=lq.prototype;g.h.Ff=function(){return null!=this.g&&this.g.Ff()?!0:0<this.ads.length&&this.o<this.ads.length-1};
g.h.Te=function(a,b){null!=this.g?oea(this,a,b):this.Ff()?rea(this,a,(0,g.A)(function(c){!this.Ff()||!P.g()&&301==c.Lb()?b(c):this.Te(a,b)},this)):b(new ym("adLoadError","The ad source contains no more ads.",1005))};
g.h.Wv=function(a,b){return this.C?0<a.length?a:b:g.qb(b,0,1)};
g.h.Ln=function(a,b,c){var d;if(!(d=null!=a.g)){var e=this.D;d=e.Ye||0;e=e.Xe||0;vs(a)&&!a.ha?zs(a,"nonlinear")?jq(a,d,e):kq(a):zs(a,"linear")?kq(a):zs(a,"nonlinear")&&jq(a,d,e);d=null!=a.g}d?(this.A++,b(a)):(b=g.fb(a.F)?Ym(HA):a.Wb()?Ym(NB):Ym(ipa),d=bq(b,a),fo(hfa(a),"rm")?b.A=!1:Vm(a.oa,d),c(b))};
g.h.hs=function(a,b,c){var d=this.D.clone();d.o="";d.g=a.Bb;d.Ne=om(d.g,d.containerElement);qq(this,a,d,b,c)};g.C(vq,Fp);vq.prototype.Xd=function(){return this.o};g.C(wq,lq);wq.prototype.Ff=function(){if(null!=this.g&&this.g.Ff())return!0;var a=0==this.A||this.A==this.K;return 0<this.ads.length&&a&&this.o<this.ads.length-1};
wq.prototype.Wv=function(a,b){return b};
wq.prototype.Ln=function(a,b,c){var d=null==this.g?is(a):is(this.ads[this.o]);this.J.A=d;wq.aa.Ln.call(this,a,b,c)};
wq.prototype.hs=function(a,b,c){this.J.A=-1;wq.aa.hs.call(this,a,b,c)};g.C(yq,g.Ll);yq.prototype.toString=function(){return Bq(this,yq.aa.toString.call(this))};
yq.prototype.jw=function(){return""};
yq.prototype.Qh=function(){return""};
yq.prototype.clone=function(){return new yq(this.toString())};g.h=Iq.prototype;g.h.gd=function(){return this.g.gd()};
g.h.Gc=function(){return this.g.Gc()};
g.h.hd=function(){return this.g.hd()};
g.h.Eb=function(){return this.g.Eb()};
g.h.getHeight=function(){return this.g.getHeight()};
g.h.Rw=function(){return!E(g.F(this.g.A))};
g.h.Xp=function(){var a=this.g.Ob().g;return null!=a?a.g:window.NaN};
g.h.an=function(){return this.g.af()};
g.h.Ob=function(){return this.g.Ob()};Lo("a","",function(a){a=a||{};return'<div class="videoAdUi"><div class="videoAdUiTopBar videoAdUiTopBarWithGradients"><div class="videoAdUiAuthorIcon"></div><div class="videoAdUiTitle ellipsisText"></div><div class="videoAdUiAuthorName ellipsisText"></div><div class="videoAdUiLearnMore">'+Q(a.fh)+'</div><div class="videoAdUiShare"></div></div><div class="videoAdUiBottomBar"><div class="videoAdUiLearnMoreText">'+Q(a.fh)+'<div class="videoAdUiLearnMoreIcon"></div></div><div class="videoAdUiAttributionContainer"><div class="videoAdUiAttribution"'+
Q(bp(a.attributionText))+">"+Q(a.attributionText)+'</div><div class="videoAdUiAttributionIconContainer"><div class="videoAdUiAttributionIcon" id="videoAdUiAttributionIcon"></div><div class="videoAdUiAdInfoPopup"><div class="videoAdUiAdInfoPopupCallout"></div><div class="videoAdUiAdInfoPopupText" '+Q(bp(a.pe))+">"+Q(a.pe)+'</div></div></div></div></div><div class="videoAdUiProgressBar" dir="ltr"><div class="videoAdUiBuffer"></div><div class="videoAdUiProgress"></div></div></div>'});
Lo("a","fixedDirectionality",function(a){a=a||{};return'<div class="videoAdUi"><div class="videoAdUiTopBar videoAdUiTopBarWithGradients"><div class="videoAdUiAuthorIcon"></div><div class="videoAdUiTitle ellipsisText"></div><div class="videoAdUiAuthorName ellipsisText"></div><div class="videoAdUiLearnMore">'+Q(a.fh)+'</div><div class="videoAdUiShare"></div></div><div class="videoAdUiBottomBar"><div class="videoAdUiLearnMoreText">'+Q(a.fh)+'<div class="videoAdUiLearnMoreIcon"></div></div><div class="videoAdUiAttributionContainer"><div class="videoAdUiAttribution">'+
Q(a.attributionText)+'</div><div class="videoAdUiAttributionIconContainer"><div class="videoAdUiAttributionIcon" id="videoAdUiAttributionIcon"></div><div class="videoAdUiAdInfoPopup"><div class="videoAdUiAdInfoPopupCallout"></div><div class="videoAdUiAdInfoPopupText">'+Q(a.pe)+'</div></div></div></div></div><div class="videoAdUiProgressBar" dir="ltr"><div class="videoAdUiBuffer"></div><div class="videoAdUiProgress"></div></div></div>'});
Lo("a","redesign2014q4",function(a){a=a||{};return'<div class="videoAdUi"><div class="videoAdUiTopBar videoAdUiTopBarWithGradients"><div class="videoAdUiAuthorIcon"></div><div class="videoAdUiTopButtons"><div class="videoAdUiTopButton videoAdUiTopButtonInfo"><div class="videoAdUiTopButtonCallout"><div class="videoAdUiTopButtonTooltip">'+Q(a.infoText)+'</div></div></div><div class="videoAdUiTopButton videoAdUiTopButtonShare"><div class="videoAdUiTopButtonCallout"><div class="videoAdUiTopButtonTooltip videoAdUiTopButtonShareTooltip">'+
Q(a.g1)+'</div></div></div><div class="videoAdUiTopButton videoAdUiTopButtonWatchLater"><div class="videoAdUiTopButtonCallout"><div class="videoAdUiTopButtonTooltip">'+Q(a.h1)+'</div></div></div></div><div class="videoAdUiTitle ellipsisText"></div><div class="videoAdUiAuthorName ellipsisText"></div></div><div class="videoAdUiBottomBar"><div class="videoAdUiBottomBarText"><div class="videoAdUiAttributionContainer"><div class="videoAdUiAttributionWithBadge"><div class="videoAdUiAttributionBadge yt-badge yt-badge-ad">Ad</div><div class="videoAdUiAttributionText"'+
Q(bp(a.attributionText))+">"+Q(a.attributionText)+'</div></div><div class="videoAdUiAttribution"'+Q(bp(a.attributionText))+">"+Q(a.attributionText)+'</div><div class="videoAdUiAttributionIconContainer"><div class="videoAdUiAttributionIcon" id="videoAdUiAttributionIcon"></div><div class="videoAdUiAdInfoPopup"><div class="videoAdUiAdInfoPopupCallout"></div><div class="videoAdUiAdInfoPopupText" '+Q(bp(a.pe))+">"+Q(a.pe)+'</div></div></div></div><div class="videoAdUiVisitAdvertiserLink"><div class="videoAdUiVisitAdvertiserLinkText"></div><div class="videoAdUiVisitAdvertiserIcon"></div></div></div><div class="videoAdUiBottomBarMessage"></div></div><div class="videoAdUiProgressBar" dir="ltr"><div class="videoAdUiBuffer"></div><div class="videoAdUiProgress"></div></div></div>'});
Lo("b","",function(a){a=a||{};return""+Aa("You can skip this ad in {$xSeconds}",{xSeconds:Q(a.Eg)})});
Lo("b","redesign2014q4",function(a){a=a||{};return""+Aa("You can skip to video in {$xSeconds}",{xSeconds:Q(a.Eg)})});
Lo("b","forcedlinebreak",function(a){a=a||{};return""+Aa("You can skip to{$newline}video in {$xSeconds}",{newline:Q(a.bM),xSeconds:Q(a.Eg)})});g.C(er,yp);var Sea=new g.Pd(300,250);er.prototype.Oa=function(){this.F=Math.max(0,this.F-1);gr(this)};
er.prototype.Na=function(){this.F=Math.min(this.ua-3,this.F+1);gr(this)};
er.prototype.kg=function(){return this.P};g.C(jr,yp);var Uea=new g.Pd(300,250);jr.prototype.kg=function(){return this.F};var kr=g.sc&&Vea();var Yea=/(doubleclick.net|googleadservices.com)/,afa=["ai","sigh"],bfa=["xai","sig"];g.C(Fr,Fp);Gr.prototype.parse=function(a){a=g.ue(a);var b=ur(a),c;"skippable"==b?c="skippable":"nonskippable"==b&&(c="nonskippable");if(null==c)throw Ym(gpa);a=a.getAttribute("offset");a=Dr(a);if("skippable"==c&&null==a)throw Ym(fpa);return new Fr(c,a)};g.C(Hr,Fp);g.C(Ir,Fp);g.h=Kr.prototype;g.h.hd=function(){if(null!=Fs(this))return"application/javascript";if(null!=Gs(this))return"application/x-shockwave-flash";var a=this.g,b="";if(null===a)return b;if(a instanceof rp)a=a.C,null===a||(b=g.F(a.g));else if(a instanceof yp)switch(a.O){case "IFrame":case "Html":case "Static":b=g.F(a.ra)}return b};
g.h.getExtension=function(a){return this.G.get(a)};
g.h.isBumper=function(){return-1!=this.getDuration()&&0!=this.getDuration()&&7>=this.getDuration()};
g.h.Wb=function(){return this.Za?this.sa:As(this)?!0:vs(this)?"video"==this.zb:zs(this,"linear")};
g.h.isSkippable=function(){return null!=Cs(this)};
g.h.xI=function(){return this.ha};
g.h.getDuration=function(){return ws(this)+Es(this)};
g.h.Vg=function(){var a=null,b=this.g;null!=b&&(a=b.Vg(),E(g.F(a))&&(a=null));return a};
g.h.Eb=function(){return this.Wb()?0:this.da.width};
g.h.getHeight=function(){return this.Wb()?0:this.da.height};
g.h.Ue=function(){return this.Ta};
g.h.toString=function(){return"Ad: "+this.ua};g.C(Ls,g.qf);Ls.prototype.o=function(a){switch(a.type){case "companion_impression":this.dispatchEvent(new sm("companionImpression",this.g));break;case "companion_click":this.dispatchEvent(new sm("companionClick",this.g))}};g.C(Ms,g.qf);g.h=Ms.prototype;g.h.Hb=function(a){null==a||this.F||(this.Mh=a,tfa(this),this.F=!0)};
g.h.Vc=function(){null!=this.Mh&&this.F&&(Ns(this),this.D=this.J=this.F=!1,this.g=0,this.A=[],this.G=!1)};
g.h.OP=function(a){this.J=!0;this.g=a.touches.length;this.o&&(window.clearTimeout(this.o),this.o=0,this.M=!0);(this.G=Os(this,a.touches)||1!=a.touches.length)?this.P=this.O=window.Infinity:(this.O=a.touches[0].clientX,this.P=a.touches[0].clientY);ufa(this,a.touches)};
g.h.NP=function(a){this.g=a.touches.length;if(!ln(8)||Math.pow(a.changedTouches[0].clientX-this.O,2)+Math.pow(a.changedTouches[0].clientY-this.P,2)>Math.pow(5,2))this.D=!0};
g.h.MP=function(a){this.C?this.Kp():(!this.J||1!=this.g||this.D||this.M||this.G||!Os(this,a.changedTouches)||(this.o=window.setTimeout((0,g.A)(this.Kp,this),300)),this.g=a.touches.length,0==this.g&&(this.D=this.J=!1,this.A=[]),this.M=!1)};
g.h.Sw=function(){this.Kp()};
g.h.Kp=function(){this.o=0;this.dispatchEvent(new g.Me("click"))};
g.h.W=function(){this.Vc();this.B.dispose();this.B=null;Ms.aa.W.call(this)};var wfa=/#(.)(.)(.)(.)/,vfa=/^#(?:[0-9a-f]{4}){1,2}$/i;g.C(g.Rs,g.qf);g.h=g.Rs.prototype;g.h.xb=function(){return 1==this.g};
g.h.En=function(){this.ye("begin")};
g.h.Wk=function(){this.ye("end")};
g.h.zd=function(){this.ye("finish")};
g.h.ye=function(a){this.dispatchEvent(a)};var opa=vf(function(){if(g.sc)return g.kc("10.0");var a=g.ie("DIV"),b=g.de?"-webkit":g.dh?"-moz":g.sc?"-ms":g.Oe?"-o":null,c={transition:"opacity 1s linear"};b&&(c[b+"-transition"]="opacity 1s linear");b={style:c};if(!Cd.test("div"))throw Error("Invalid tag name <div>.");if("DIV"in Qoa)throw Error("Tag name <div> is not allowed for SafeHtml.");b=Dd("div",b,void 0);a.innerHTML=g.zd(b);return""!=eh(a.firstChild,"transition")});g.C(Ts,g.Rs);g.h=Ts.prototype;g.h.play=function(){if(this.xb())return!1;this.En();this.ye("play");this.startTime=(0,g.G)();this.g=1;if(opa())return g.bh(this.o,this.F),this.B=g.fg(this.DQ,void 0,this),!0;this.Gs(!1);return!1};
g.h.DQ=function(){g.uh(this.o);Ss(this.o,this.D);g.bh(this.o,this.A);this.B=g.fg((0,g.A)(this.Gs,this,!1),1E3*this.C)};
g.h.stop=function(){this.xb()&&this.Gs(!0)};
g.h.Gs=function(a){g.bh(this.o,"transition","");g.gg(this.B);g.bh(this.o,this.A);this.endTime=(0,g.G)();this.g=0;a?this.ye("stop"):this.zd();this.Wk()};
g.h.W=function(){this.stop();Ts.aa.W.call(this)};
g.h.pause=function(){};g.C(Us,g.qf);g.h=Us.prototype;g.h.W=function(){null!=this.li&&(g.gg(this.li),this.li=null);null!=this.Fe&&(g.pe(this.Fe),this.Fe=null);Us.aa.W.call(this)};
g.h.uF=function(){this.li=null;Vs(this,"0%","100%","1","0");this.li=g.fg((0,g.A)(function(){this.li=null;Ws(this,!1);null!=this.Fe&&g.O(this.Fe,!1);this.Dk("complete")},this),400)};
g.h.show=function(a){this.Dk("impression");Vs(this,"100%","0%","0","1");Ws(this,!0);null!=this.Fe&&g.O(this.Fe,!0);this.li=g.fg(this.uF,a,this)};
g.h.TH=function(a){P.g()||a.stopPropagation()};
g.h.Dk=function(a){a=Up({action:"condor-brand-precap",event:a,ei:"[EID]",cpn:"[CPN]",content_v:"[CONTENT_V]",ad_v:"[AD_V]",ad_id:"[AD_ID]",ad_len:"[AD_LEN]"});a=g.mm(a,this.C.C);Rm(a)};g.C(Xs,Fp);g.C(Zs,Fp);g.h=$s.prototype;
g.h.fA=function(){var a={heading:"",targetingReasons:[],learnMore:"",Qp:"",control:"",mute:""};if(null!=this.C){a.heading=this.C.C;var b=this.C.o;if(b&&3==b.length){var c=b[1],d=b[2],b=Ho(Q(b[0])+ar()+Q(c)+Ho("</a>")+Q(d));a.Qp=b}a.targetingReasons=g.ob(this.C.D);a.close=this.C.A}else a.Qp=br(),b=Aa("Got It"),a.close=""+b;null!=this.o&&(a.mute=this.o.B);ct(this,Oea,a);bt(this,"videoAdUiWhyThisAdCloseButton",this.Zl);bt(this,"videoAdUiWhyThisAdControl",this.Nv);bt(this,"videoAdUiWhyThisAdMute",this.wQ);
a=g.K("videoAdUiWhyThisAdGenericMessage",this.g);null!=a&&(a=a.getElementsByTagName("A")[0],null!=a&&this.B.X(a,"click",this.Nv))};
g.h.Zl=function(){null!=this.B&&(this.B.dispose(),this.B=null);at(this)&&null!=this.g&&(null!=this.A&&(dt(this,"why_this_ad_got_it"),this.A.dispose(),this.A=null),this.g.parentElement.removeChild(this.g),this.g=null)};
g.h.Nv=function(){dt(this,"why_this_ad_settings_url")};
g.h.wQ=function(){if(null!=this.o){dt(this,"mute_interaction_url");var a=Ys(this.o);if(0==a){var b={heading:"",message:"Are you sure you want to stop seeing this ad?",confirm:"YES",cancel:"CANCEL"};ct(this,Qea,b);bt(this,"videoAdUiMuteCancel",this.fA);bt(this,"videoAdUiMuteConfirm",this.MF)}else{dt(this,"mute_url");b={heading:this.o.A,undo:this.o.D,question:this.o.C,options:[],confirm:"SEND",cancel:"CLOSE"};var c=this.o?(c=gp(this.o.g,"mute_undo_url"))&&0<c.length:!1;c||(b.undo="");for(c=0;c<a;c++)b.options.push(this.o.o[c].label);
ct(this,Pea,b);bt(this,"videoAdUiMuteUndo",this.OR);bt(this,"videoAdUiMuteConfirm",this.AR);bt(this,"videoAdUiMuteCancel",this.Cp)}}};
g.h.MF=function(){dt(this,"mute_url");this.Cp()};
g.h.OR=function(){dt(this,"mute_undo_url");this.Zl()};
g.h.AR=function(){if(null!=this.o){for(var a=Ys(this.o),b=!1,c=0;c<a;c++){var d=g.K("videoAdUiMuteOption"+c,this.g);if(null!=d&&d.checked){b=!0;Rm(this.o.o[c].url);break}}if(!b)return}this.Cp()};
g.h.Cp=function(){dt(this,"MUTE_AD");this.Zl()};g.C(jt,g.qf);var zfa={1:"videoAdUiBrandInteractionHorizontalRect"},yfa=[1],Afa=[1];jt.prototype.update=function(a){this.K||(this.F=ht(this.o,.5),g.N(this,this.F),this.F.play(),g.O(this.o,!0),this.K=!0);this.J=a};
jt.prototype.ca=function(a){P.g()||a.stopPropagation();var b=a.target.Mh;null!=b&&(this.V++,a=(0,g.G)(),g.Np(b,"selected")?(g.R(this.o,"optionSelected"),null!=this.A&&g.Kp(this.A,"selected"),this.A=b):(g.Kp(this.o,"optionSelected"),this.A=null),this.da&&(gt(this.o,.5,"ease-in",1,0).play(),g.fg(function(){g.O(this.o,!1)},500,this)),Cfa(this),b=null!=this.A?g.Ip(this.A,"videoAdUiBrandInteractionLikeButton")?"l":g.Ip(this.A,"videoAdUiBrandInteractionDislikeButton")?"d":"n":"n",this.B.push(b),this.C.push(a.toString()),
this.D.push(this.J.toString()))};
jt.prototype.W=function(){null!=this.o&&(g.pe(this.o),this.o=null);this.A=null;jt.aa.W.call(this)};g.C(lt,g.qf);lt.prototype.D=function(){this.g?this.dispatchEvent("videoUnmuteClicked"):this.dispatchEvent("videoMuteClicked")};
lt.prototype.W=function(){this.C.dispose();this.C=null;lt.aa.W.call(this)};g.C(mt,g.qf);mt.prototype.W=function(){null!=this.o&&(g.pe(this.o),this.o=null);mt.aa.W.call(this)};
mt.prototype.update=function(a,b){if(!(0>=b))if(0>a)this.F=1;else if(1==this.F)ht(this.o,.5).play(),g.O(this.o,!0),this.F=2,this.Dk("i");else if(this.B){var c=Math.round(b-a);0>c||g.ye(this.A,Yq({Eg:c}))}else this.M&&5<a&&(this.M=!1,g.O(this.A,!1))};
mt.prototype.P=function(){g.xh(this.A)||g.O(this.A,!0);this.K++;this.Dk("c")};
mt.prototype.Dk=function(a){this.O&&(a=Up({action:"condor-video-preview",event:a,ei:"[EID]",cpn:"[CPN]",content_v:"[CONTENT_V]",ad_v:"[AD_V]",ad_id:"[AD_ID]",ad_len:"[AD_LEN]",m_pos:"[MIDROLL_POS]",show_countdown:Number(this.B),num_clicks:this.K}),a=g.mm(a,this.D.C),Rm(a))};g.C(nt,g.qf);var Efa={1:"videoAdUiReasonToWatchBoxWhiteTheme"};nt.prototype.update=function(a){this.C||Ffa(this);!this.D&&10<=a&&Gfa(this)};
nt.prototype.W=function(){null!=this.g&&(g.pe(this.g),this.g=null);nt.aa.W.call(this)};g.C(g.ot,g.M);g.h=g.ot.prototype;g.h.start=function(){this.stop();this.A=!1;var a=pt(this),b=qt(this);a&&!b&&this.g.mozRequestAnimationFrame?(this.Aa=g.af(this.g,"MozBeforePaint",this.o),this.g.mozRequestAnimationFrame(null),this.A=!0):this.Aa=a&&b?a.call(this.g,this.o):this.g.setTimeout(dba(this.o),20)};
g.h.qk=function(){this.isActive()||this.start()};
g.h.stop=function(){if(this.isActive()){var a=pt(this),b=qt(this);a&&!b&&this.g.mozRequestAnimationFrame?g.lf(this.Aa):a&&b?b.call(this.g,this.Aa):this.g.clearTimeout(this.Aa)}this.Aa=null};
g.h.isActive=function(){return null!=this.Aa};
g.h.tG=function(){this.A&&this.Aa&&g.lf(this.Aa);this.Aa=null;this.C.call(this.B,(0,g.G)())};
g.h.W=function(){this.stop();g.ot.aa.W.call(this)};g.C(g.rt,g.M);g.h=g.rt.prototype;g.h.Aa=0;g.h.W=function(){g.rt.aa.W.call(this);this.stop();delete this.g;delete this.o};
g.h.start=function(a){this.stop();this.Aa=g.fg(this.A,g.t(a)?a:this.B)};
g.h.ae=function(a){this.isActive()||this.start(a)};
g.h.stop=function(){this.isActive()&&g.gg(this.Aa);this.Aa=0};
g.h.isActive=function(){return 0!=this.Aa};
g.h.rw=function(){this.Aa=0;this.g&&this.g.call(this.o)};g.xt={};g.vt=null;g.C(At,g.qf);g.h=At.prototype;g.h.W=function(){g.Ke(this.B);this.B=null;g.Ke(this.G);this.G=null;null!=this.A&&(g.pe(this.A),this.A=null);null!=this.skipButton&&(this.skipButton=null);null!=this.o&&(g.pe(this.o),this.o=null);this.V.dispose();this.V=null;this.gc.dispose();this.gc=null;At.aa.W.call(this)};
g.h.update=function(a,b){this.da=b;this.Bp(a);2==this.state&&zt(this,a)};
g.h.skip=function(){return null==this.config.skipOffset||3!=this.state||this.ba?!1:(this.ba=!0,this.dispatchEvent("PUBLISHER_INVOKED_SKIP"),!0)};
g.h.Bp=function(a){if(!(0>=this.da||null==this.config.skipOffset||0>kp(this.config.skipOffset))){var b=kp(this.config.skipOffset);b>=this.da||3==this.state||(0>a?this.state=1:a<=b?(2!=this.state&&(zt(this,0),ht(this.A,.5).play(),g.O(this.A,!0)),this.state=2):(3!=this.state&&this.Nu(),this.state=3,this.dispatchEvent("skipshown")))}};
g.h.Nu=function(){g.O(this.o,!0);this.G=Bt(this.A);this.G.play();this.B=ht(this.o,.5);this.B.play();this.skipButton.autofocus&&this.skipButton.focus()};
g.h.yR=function(a){P.g()||a.stopPropagation();3!=this.state||this.ba||(this.ba=!0,this.dispatchEvent("skip"))};g.C(Ht,At);var Dt={Uv:0,Tv:1},Et={Uv:1,Tv:0},Ft={Jv:15},Gt={Jv:300};g.h=Ht.prototype;g.h.W=function(){Ht.aa.W.call(this);Jt(this);Lt(this)};
g.h.Bp=function(a){Ht.aa.Bp.call(this,a);if(3==this.state&&!this.ha&&!this.fa){var b=Nt(this.P,this.g);if(a=Mt(a,this.config,this.P))if(this.F==this.K.Uv&&a>=b)switch(this.K){case Dt:It(this);break;case Et:Kt(this,!0)}else if(this.F==this.K.Tv&&a<b)switch(this.K){case Et:It(this);break;case Dt:Kt(this,!0)}}};
g.h.Nu=function(){g.O(this.o,!0);this.G=Bt(this.A);this.G.play();if(this.ha)var a=!1;else{a=Nt(this.P,this.g);var b=Mt(kp(this.config.skipOffset),this.config,this.P);if(null!=b){var c=!1;switch(this.K){case Et:c=b<a;break;case Dt:c=b>a}a=c}else a=!1}a?(this.F=1,this.B=gt(this.o,.5,"ease-in",0,.5)):this.B=ht(this.o,.5);this.B.play();this.skipButton.autofocus&&this.skipButton.focus();this.ha||(this.gc.X(g.ve(this.o),"mouseover",this.XL),this.gc.X(g.ve(this.o),"mouseout",this.WL))};
g.h.XL=function(){Lt(this);0!=this.F&&Kt(this,!1);this.fa=!0};
g.h.WL=function(){Lt(this);this.M=g.fg(function(){this.fa=!1;this.M=null},5E3,this)};Ot.prototype.getDuration=function(){return this.o};
Ot.prototype.Gc=function(){return this.g};
Ot.prototype.update=function(a,b){var c=null!=this.F?kp(this.F):0;this.o=0<=this.o?this.o:b;c<=a&&c+this.o>=a?Jfa(this):g.O(this.g,!1)};var ppa={Mt:{1E3:{other:"0K"},1E4:{other:"00K"},1E5:{other:"000K"},1E6:{other:"0M"},1E7:{other:"00M"},1E8:{other:"000M"},1E9:{other:"0B"},1E10:{other:"00B"},1E11:{other:"000B"},1E12:{other:"0T"},1E13:{other:"00T"},1E14:{other:"000T"}},YC:{1E3:{other:"0 thousand"},1E4:{other:"00 thousand"},1E5:{other:"000 thousand"},1E6:{other:"0 million"},1E7:{other:"00 million"},1E8:{other:"000 million"},1E9:{other:"0 billion"},1E10:{other:"00 billion"},1E11:{other:"000 billion"},1E12:{other:"0 trillion"},1E13:{other:"00 trillion"},
1E14:{other:"000 trillion"}}},au=ppa,au=ppa;var St={AED:[2,"dh","\u062f.\u0625.","DH"],ALL:[0,"Lek","Lek"],AUD:[2,"$","AU$"],BDT:[2,"\u09f3","Tk"],BGN:[2,"lev","lev"],BRL:[2,"R$","R$"],CAD:[2,"$","C$"],CDF:[2,"FrCD","CDF"],CHF:[2,"CHF","CHF"],CLP:[0,"$","CL$"],CNY:[2,"\u00a5","RMB\u00a5"],COP:[32,"$","COL$"],CRC:[0,"\u20a1","CR\u20a1"],CZK:[50,"K\u010d","K\u010d"],DKK:[50,"kr.","kr."],DOP:[2,"RD$","RD$"],EGP:[2,"\u00a3","LE"],ETB:[2,"Birr","Birr"],EUR:[2,"\u20ac","\u20ac"],GBP:[2,"\u00a3","GB\u00a3"],HKD:[2,"$","HK$"],HRK:[2,"kn","kn"],HUF:[34,
"Ft","Ft"],IDR:[0,"Rp","Rp"],ILS:[34,"\u20aa","IL\u20aa"],INR:[2,"\u20b9","Rs"],IRR:[0,"Rial","IRR"],ISK:[0,"kr","kr"],JMD:[2,"$","JA$"],JPY:[0,"\u00a5","JP\u00a5"],KRW:[0,"\u20a9","KR\u20a9"],LKR:[2,"Rs","SLRs"],LTL:[2,"Lt","Lt"],MNT:[0,"\u20ae","MN\u20ae"],MVR:[2,"Rf","MVR"],MXN:[2,"$","Mex$"],MYR:[2,"RM","RM"],NOK:[50,"kr","NOkr"],PAB:[2,"B/.","B/."],PEN:[2,"S/.","S/."],PHP:[2,"\u20b1","PHP"],PKR:[0,"Rs","PKRs."],PLN:[50,"z\u0142","z\u0142"],RON:[2,"RON","RON"],RSD:[0,"din","RSD"],RUB:[50,"\u20bd",
"RUB"],SAR:[2,"Rial","Rial"],SEK:[50,"kr","kr"],SGD:[2,"$","S$"],THB:[2,"\u0e3f","THB"],TRY:[2,"TL","YTL"],TWD:[2,"NT$","NT$"],TZS:[0,"TSh","TSh"],UAH:[2,"\u0433\u0440\u043d.","UAH"],USD:[2,"$","US$"],UYU:[2,"$","$U"],VND:[48,"\u20ab","VN\u20ab"],YER:[0,"Rial","Rial"],ZAR:[2,"R","ZAR"]};var qpa={Pt:".",Lo:",",eu:"%",Zo:"0",vE:"+",eE:"-",Tt:"E",fu:"\u2030",Mo:"\u221e",iE:"NaN",Ot:"#,##0.###",FE:"#E0",uE:"#,##0%",oD:"\u00a4#,##0.00",sD:"USD"},Qt=qpa,Qt=qpa;Ut.prototype.parse=function(a,b){var c=b||[0];if(0!=this.K)throw Error("Parsing of compact numbers is unimplemented");a=a.replace(/ /g,"\u00a0");var d=a.indexOf(this.G,c[0])==c[0],e=a.indexOf(this.B,c[0])==c[0];d&&e&&(this.G.length>this.B.length?e=!1:this.G.length<this.B.length&&(d=!1));d?c[0]+=this.G.length:e&&(c[0]+=this.B.length);if(a.indexOf(Qt.Mo,c[0])==c[0]){c[0]+=Qt.Mo.length;var f=window.Infinity}else{f=a;var k=!1,l=!1,m=!1,n=1,q=Qt.Pt,r=Qt.Lo,w=Qt.Tt;if(0!=this.K)throw Error("Parsing of compact style numbers is not implemented");
for(var z="";c[0]<f.length;c[0]++){var B=f.charAt(c[0]),D=$t(B);if(0<=D&&9>=D)z+=D,m=!0;else if(B==q.charAt(0)){if(k||l)break;z+=".";k=!0}else if(B==r.charAt(0)&&("\u00a0"!=r.charAt(0)||c[0]+1<f.length&&0<=$t(f.charAt(c[0]+1)))){if(k||l)break}else if(B==w.charAt(0)){if(l)break;z+="E";l=!0}else if("+"==B||"-"==B)z+=B;else if(1==this.g&&B==Qt.eu.charAt(0)){if(1!=n)break;n=100;if(m){c[0]++;break}}else if(1==this.g&&B==Qt.fu.charAt(0)){if(1!=n)break;n=1E3;if(m){c[0]++;break}}else break}1!=this.g&&(n=
this.g);f=(0,window.parseFloat)(z)/n}if(d){if(a.indexOf(this.O,c[0])!=c[0])return window.NaN;c[0]+=this.O.length}else if(e){if(a.indexOf(this.J,c[0])!=c[0])return window.NaN;c[0]+=this.J.length}return e?-f:f};
Ut.prototype.format=function(a){if((0,window.isNaN)(a))return Qt.iE;var b=[];var c=a;if(0==this.K)c=bu;else{c=Math.abs(c);var d=cu(this,1>=c?0:Wt(c)).Lp;c=cu(this,d+Wt(Xt(this,c/Math.pow(10,d)).intValue))}a/=Math.pow(10,c.Lp);b.push(c.prefix);d=0>a||0==a&&0>1/a;b.push(d?this.B:this.G);if((0,window.isFinite)(a))if(a=a*(d?-1:1)*this.g,this.ba){var e=a;if(0==e)Yt(this,e,this.o,b),Zt(this,0,b);else{a=Math.floor(Math.log(e)/Math.log(10)+2E-15);var f=Math.pow(10,a);(0,window.isFinite)(f)&&0!==f?e/=f:(f=
Math.pow(10,Math.floor(a/2)),e=e/f/f,1==a%2&&(e=0<a?e/10:10*e));f=this.o;if(1<this.P&&this.P>this.o){for(;0!=a%this.P;)e*=10,a--;f=1}else 1>this.o?(a++,e/=10):(a-=this.o-1,e*=Math.pow(10,this.o-1));Yt(this,e,f,b);Zt(this,a,b)}}else Yt(this,a,this.o,b);else b.push(Qt.Mo);b.push(d?this.J:this.O);b.push(c.fB);return b.join("")};
var bu={prefix:"",fB:"",Lp:0};g.C(eu,g.qf);g.h=eu.prototype;g.h.show=function(){null!=this.o&&g.O(this.o,!0)};
g.h.skip=function(){var a;if(a=null!=this.B)a=this.B,a=null!=a.config.skipOffset&&3==a.state;return a?this.B.skip():!1};
g.h.W=function(){null!=this.o&&(g.pe(this.o),this.o=null);gu(this);(0,g.H)(this.da,function(a){a.Vc()});
this.da=[];this.C=null;this.A.dispose();this.A=null;this.zb=!1;eu.aa.W.call(this)};
g.h.update=function(a,b,c,d,e){this.zb=!0;null!=this.o&&(null!=this.Fa&&Lfa(this,a,c,d,e),null!=this.ka&&g.sh(this.ka,a/c*100+"%"),null!=this.tb&&g.sh(this.tb,b/c*100+"%"),0<c&&null!=this.g.skipOffset&&null!=this.B&&(jp(this.g.skipOffset,c),this.B.update(a,c)),0<c&&null!=this.sa&&this.sa.update(a),0<c&&null!=this.ua&&this.ua.update(a),0<c&&null!=this.K&&this.K.update(a,c),this.g.P&&0<c&&5>c-a&&g.R(this.ha,"videoAdUiTopBarNoFade"),(0,g.H)(this.Oa,function(b){b.update(a,c)},this))};
g.h.wF=function(){this.dispatchEvent("videoAuthorIconClicked")};
g.h.xF=function(){this.dispatchEvent("videoAuthorClicked")};
g.h.zH=function(a){var b=a.G;a=a.J;E(g.F(b))||this.dispatchEvent(new sm("videoIconClicked",null,{clickThroughUrl:b}));(0,g.H)(a,function(a){Rm(a)})};
g.h.zx=function(){this.dispatchEvent("videoLearnMoreClicked")};
g.h.vR=function(){this.dispatchEvent("videoShareClicked")};
g.h.GR=function(){this.dispatchEvent("videoTitleClicked")};
g.h.UH=function(a){a.preventDefault()};
g.h.uo=function(){this.dispatchEvent("click")};
g.h.Ab=function(){null!=this.Oa&&(0,g.H)(this.Oa,function(a){Pt(a)},this)};
g.h.sR=function(){g.R(this.ha,"videoAdUiTopBarTransitions")};
g.h.xQ=function(){var a=g.Fe(this.o,"html5-video-player");if(null!=a){var b=this.g.K;null!=a&&(b.B=new g.dm(b),b.A=new g.qf,b.A.uh(this),b.D=a,b.fA(),dt(b,"why_this_ad_url"));null!=this.B&&Ct(this.B,!1);null!=this.K&&(a=this.K,null!=a.g&&g.O(a.g,!1))}};
g.h.aS=function(){null!=this.B&&Ct(this.B,!0);if(null!=this.K){var a=this.K;null!=a.g&&g.O(a.g,!0)}};g.C(mu,g.M);mu.prototype.K=function(a,b,c){c=g.Wb(c||{});if("timeout"==(c.viewability||"")){var d=this.G[a];null!=d&&(c.viewability=d)}if("impression"==a&&!this.J&&null!=this.D&&0<this.D.length){var d=P.K&&g.eb(this.F,"impression"),e=ou(this,this.D,c);pu(this,e,d);this.J=!0}Ofa(this,a)&&0<b.length&&(d=P.K&&g.eb(this.F,a),b=ou(this,b,c),pu(this,b,d),this.o.set(a,!0))};g.C(qu,g.qf);g.h=qu.prototype;g.h.lk=function(){if(this.yb()){var a=Js(this.Uc);if(null!=a)return a}return""};
g.h.kk=function(){if(this.yb()){var a=Ks(this.Uc);if(null!=a)return a}return""};
g.h.Se=function(){return g.fb(this.ads)?null:this.ads[0]};
g.h.ma=function(){if(this.yb()){if(this.Uc.isSkippable()&&!un())throw Zm(aB,null,"skippablevideo");if(null!=Fs(this.Uc)&&vu(this,this.Uc.o))throw Zm(aB,null,"vpaidWithSkippabilityOverride");return this.Uc}throw Zm(yu,null,"An ad has not been selected.\n"+Error().stack);};
g.h.yb=function(){return null!==this.Uc};
g.h.il=function(){var a=(0,g.db)(this.ads,this.Uc);-1!=a&&++a<this.ads.length?uu(this,this.ads[a]):uu(this,null)};
g.h.vk=function(){var a=(0,g.db)(this.ads,this.Uc);return-1==a?!1:a+1<this.ads.length};
g.h.Te=function(){return this.vk()?this.ads[(0,g.db)(this.ads,this.Uc)+1]:null};
g.h.Ug=function(a){var b=a.o;if(b&&b.ga&&(b=b.F,!g.fb(b)&&b[0]instanceof rp))return b[0].Ug();b=a.g;return wu(a)?b.Ug():[]};
g.h.Wn=function(){if(!this.yb()){if(g.fb(this.ads))throw Zm(NB);uu(this,this.ads[0]);if(null==this.Uc.g)throw Ym(NB);}};
g.h.la=function(a,b){var c=this.yb()?this.ma():null;this.dispatchEvent(new sm(a,c,b))};
g.h.zg=function(a){this.Gd=a};
g.h.Xa=function(){null==this.gc&&(this.gc=new g.dm(this));return this.gc};
g.h.bN=function(){};
g.h.Qr=function(){};
g.h.rd=function(a){if(P.g()&&P.A)Fm().g.g("show_kevlar_companion_on_video_ad_start")||this.la("youtubeKevlarCompanionShow");else if(null!=this.Gd){km(this.ue);im(this.ue,this.Gd,"companion_display_error",function(){});
var b=this.Gd.rd(a);null!=b&&(this.ue.X(b,"companion_impression",this.bN),this.ue.X(b,"companion_click",this.Qr),P.g()&&(a=new Ls(a,b),this.la("companionInitialized",a)));if(!this.Gd.Pu())throw Zm(w3);}};
g.h.destroy=function(){this.dispose()};
g.h.W=function(){this.yb()&&(iq(this.Uc,null),this.Uc=null);g.Ke(this.gc);this.Gd=this.gc=null;this.hm=!1;P.o?mo(io(),this.vo):Rn().F=null;this.Ha&&(g.Ke(this.Ha),this.Ha=null);qu.aa.W.call(this)};
g.h.Re=function(){return[]};
g.h.Kb=function(){return this.ads[0]};
g.h.fj=function(){(0,g.H)(this.ads,function(a){var b;for(b=a.getExtension("sodar");!b&&(a=a.o);)b=a.getExtension("sodar");if(b){var c=b.B;a=b.A;var d=b.C,e=b.o;b="//tpc.googlesyndication.com/sodar/"+(0,window.encodeURIComponent)(c)+".js";var f="//pagead2.googlesyndication.com/bg/"+(0,window.encodeURIComponent)(d)+".js";if(c&&a&&d&&e){var d=window,c=d.document,k={};a&&(k._scs_=a);k._bgu_=f;k._bgp_=e;k._li_="v_h.0.0.0";(a=d.GoogleTyFxhY)&&"function"==typeof a.push||(a=d.GoogleTyFxhY=[]);a.push(k);a=
c.createElement("script");a.type="text/javascript";a.async=!0;a.src=b;c.getElementsByTagName("head")[0].appendChild(a)}}})};
g.h.init=function(a){zu(this);this.Bc(a);this.be=!0;this.tj();P.o||(Rn().F=this.vo)};
g.h.tj=function(){this.la("loaded")};
g.h.Dj=function(a){this.yb()&&P.g()&&Vm(Wr(this.ma()),a)};
g.h.OA=g.y;g.h.Qc=function(a,b,c){if(!this.hm){if(null==a)throw Zm(Wn,null,"displayContainer");null!=c&&this.Me(c);this.content=b;this.Qa=a;this.Wn();this.Ea=this.Qa.Xm(Pfa(this));this.hm=!0}};
g.h.yg=function(a){a=fo(Lr(a),"rm")?a.ba:Wr(a);(0,g.H)(a,function(a){g.ib(this.Sb.D,a)},this)};
g.h.Vf=function(a,b){(0,g.H)(b,function(b){b=op(a,b);hp(this.Sb.A,b)},this)};
g.h.zj=function(a){if(a instanceof rp){var b=sp(a);(0,g.H)(b.Cb(),function(a){var c=b.get(a);(0,g.H)(c,function(b){ip(this.Sb.A,a,b)},this)},this)}};
g.h.Ga=function(a){nu(this.Sb,new g.Me(a))};
g.h.getCurrentTime=function(){return-1};
g.h.getDuration=function(){return-1};
g.h.Nc=function(){return-1};
g.h.xb=function(){return null!=this.Ea?this.Ea.xb():!1};
g.h.Ab=function(a,b,c){this.Bc(c)};
g.h.pause=g.y;g.h.resume=g.y;g.h.skip=g.y;g.h.muteAd=g.y;g.h.whyThisAdClicked=g.y;g.h.whyThisAdClosed=g.y;g.h.Me=function(a){if(null==a||!Qfa(this,a))throw Zm(Wn,null,"adsRenderingSettings should be instance of AdsRenderingSettings");var b=this.Va;if(null==a.bitrate||0>=a.bitrate)a.bitrate=-1;null==a.mimeTypes&&(a.mimeTypes=[]);Rfa(a.mimeTypes);if(!g.oa(a.cf)||0>=a.cf)a.cf=Mn();g.Zb(b,a)};
g.h.start=function(){zu(this);if(!this.be)throw Ym(yu,null,"Must call init before start.");};
g.h.stop=function(){this.destroy()};
g.h.getVolume=function(){return null!=this.volume?this.volume:0};
g.h.setVolume=function(a){((0,window.isNaN)(a)||0>a||1<a)&&bn(this,Wn,null,"volume",String(a));this.volume=a};
g.h.expand=function(){zu(this);this.Bc("fullscreen")};
g.h.collapse=function(){zu(this);this.Bc("normal")};
g.h.Bc=function(a){if(!Mb(dpa,a))throw Zm(Wn,null,"view mode",a);this.Xc=a};
g.h.Kc=function(){return this.hm};
g.h.hasListeners=function(a){return(0,g.Br)(a,function(a){if(g.Se(this))a=$e(this.ze,g.t(a)?String(a):void 0);else{var b=g.df(this);a=!!b&&$e(b,a)}return a},this)};
g.h.Vg=function(){return null};
g.h.Ti=function(){return null};
g.h.SA=function(){return null};
g.h.Be=function(){return null};
g.h.jf=function(){this.Ga("abandon")};
g.h.rG=function(){return{currentTime:this.getCurrentTime(),duration:this.getDuration(),isPlaying:this.xb(),isVpaid:this.yb()&&null!=Fs(this.ma()),isYouTube:P.g(),volume:this.getVolume()}};
g.h.Bk=function(a){do if(vs(a))return!1;while(a=a.o);return!0};
g.h.Ak=function(){for(var a=0;a<this.ads.length;++a)if(!this.Bk(this.ads[a]))return!1;return dn()};
g.h.VQ=function(a){var b=g.nb(t3,g.Nb(v3));sb(b);(0,g.H)(b,function(b){var c=gp(a.g,b);g.fb(c)||this.ms(b,c)},this);
Nfa(this.Sb,a.J)};
g.h.ms=function(a,b){(0,g.H)(b,function(a){ip(this.Sb.A,a.bc(),a.g)},this)};
g.h.KN=function(a){this.Va.Kv||(a=a.g,null!=a&&(a=a.clickThroughUrl,null!=a&&(Qm(a),this.pause())))};
g.h.uj=function(a){var b=a.type;if(g.eb(u3,b)){if("externalActivityEvent"==b&&(b=a.g.eventName,!v3[b]))return;xu(this,b)}};var Eu=["classid","data","movie","type","typemustmatch"];g.qa(g.Fu);g.Fu.prototype.g=0;g.C(g.Gu,g.qf);g.h=g.Gu.prototype;g.h.DH=g.Fu.getInstance();g.h.getId=function(){return this.Aa||(this.Aa=":"+(this.DH.g++).toString(36))};
g.h.pa=function(){return this.g};
g.h.uh=function(a){if(this.B&&this.B!=a)throw Error("Method not supported");g.Gu.aa.uh.call(this,a)};
g.h.Rm=function(){this.g=this.J.createElement("DIV")};
g.h.Li=function(){this.Ge=!0;Iu(this,function(a){!a.Ge&&a.pa()&&a.Li()})};
g.h.ek=function(){Iu(this,function(a){a.Ge&&a.ek()});
this.D&&km(this.D);this.Ge=!1};
g.h.W=function(){this.Ge&&this.ek();this.D&&(this.D.dispose(),delete this.D);Iu(this,function(a){a.dispose()});
this.g&&g.pe(this.g);this.B=this.g=this.F=this.M=null;g.Gu.aa.W.call(this)};
g.h.Gc=function(){return this.g};
g.h.removeChild=function(a,b){if(a){var c=g.u(a)?a:a.getId();a=this.F&&c?Vb(this.F,c)||null:null;if(c&&a){Ub(this.F,c);g.kb(this.M,a);b&&(a.ek(),a.g&&g.pe(a.g));c=a;if(null==c)throw Error("Unable to set parent component");c.B=null;g.Gu.aa.uh.call(c,null)}}if(!a)throw Error("Child is not in parent component");return a};g.C(Ju,g.Gu);g.h=Ju.prototype;g.h.bb=null;g.h.xo="window";g.h.Jl="sameDomain";g.h.setSize=function(a,b){this.G=g.u(a)?a:Math.round(a)+"px";this.C=g.u(b)?b:Math.round(b)+"px";this.pa()&&g.th(Ku(this),this.G,this.C);return this};
g.h.Li=function(){Ju.aa.Li.call(this);for(var a=this.pa(),b=this.o.Cb(),c=this.o.fb(),d=[],e=0;e<b.length;e++)d.push(g.Fa(b[e])+"="+g.Fa(c[e]));var b=d.join("&");if(g.sc&&!g.lc(11)){d=this.K;c={allowFullScreen:"true",AllowScriptAccess:this.Jl,allowNetworking:"all",bgcolor:"#000000",FlashVars:b,quality:"high",SeamlessTabbing:"false",wmode:this.xo};b={"class":"goog-ui-media-flash-object",id:this.getId(),name:this.getId()};Sfa(b,c);e={allownetworking:"none",allowscriptaccess:"never",movie:d};d={};for(k in e)d[k]=
e[k];for(k in c){var f=k.toLowerCase();f in e&&delete d[f];d[k]=c[k]}c=[];for(k in d)c.push(Dd("param",{name:k,value:d[k]}));var k=Ed({classid:"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"},{},b);k=Dd("object",k,c)}else k={AllowScriptAccess:this.Jl,allowFullScreen:"true",allowNetworking:"all",bgcolor:"#000000","class":"goog-ui-media-flash-object",FlashVars:b,id:this.getId(),name:this.getId(),quality:"high",SeamlessTabbing:"false",wmode:this.xo},k=Ed({src:this.K,type:"application/x-shockwave-flash",
pluginspage:"https://www.macromedia.com/go/getflashplayer"},{allownetworking:"none",allowscriptaccess:"never"},k),k=Dd("embed",k);a.innerHTML=g.zd(k);this.G&&this.C&&this.setSize(this.G,this.C);this.A.X(this.pa(),g.Nb(Soa),Ne)};
g.h.Rm=function(){if(null!=this.O&&!(0<=g.Ra(oi,this.O)))throw Error("Method not supported");var a=this.J.createElement("DIV");a.className="goog-ui-media-flash";this.g=a};
g.h.W=function(){Ju.aa.W.call(this);this.o=null;this.A.dispose();this.A=null};
g.h.Pb=function(){return this.Ge&&this.pa()?g.ZO&&Ku(this).readyState&&"complete"==Ku(this).readyState||Ku(this).readyState&&4==Ku(this).readyState||"PercentLoaded"in Ku(this)&&100==Ku(this).PercentLoaded()?!0:!1:!1};g.C(Lu,g.qf);var rpa=rd(hd(id("https://imasdk.googleapis.com/flash/sdkloader/flashinhtml.swf")));rd(hd(id("http://imasdk.googleapis.com/flash/sdkloader/flashinhtml.swf")));g.h=Lu.prototype;g.h.dispose=function(){this.g&&(this.g.dispose(),this.o=null);window[this.A]&&delete window[this.A];g.gg(this.B)};
g.h.load=function(a,b,c,d){window[this.A]=(0,g.A)(this.FH,this);this.g=new Ju(rpa);this.g.setSize(b,c);this.g.Jl="always";this.g.xo="transparent";this.g.o.set("vpaid",a);this.g.o.set("vpaidEventHandler",this.A);Hu(this.g,this.D);this.o=Ku(this.g);this.B=g.fg(this.GH,d,this)};
g.h.EH=function(a){if(!this.o)return null;var b=Array.prototype.slice.call(arguments),c=b.shift();if(!this.C&&"handshakeVersion"!=c&&"initAd"!=c)return null;try{if(this.o[c])return this.o[c].apply(this.o,b)}catch(d){}return null};
g.h.FH=function(a,b){"AdLoaded"==a&&(g.gg(this.B),this.C=!0);this.dispatchEvent(new cn(a,b||null))};
g.h.GH=function(){this.dispatchEvent("loadError")};g.C(Ou,yp);Ou.prototype.kg=function(){var a=this.Jq(),a=null!=a&&"clicktag"==a.toLowerCase(),a={url:Om(g.F(this.A)),width:this.Eb(),height:this.getHeight(),Lc:this.Ze(),capture:this.Yu||!a},b=P.g()&&fo(this.G,"hideMaster")?cp:Pda,a=Op(b,a);a.style.width=this.Eb()+"px";a.style.height=this.getHeight()+"px";a.id=this.Aa;(0,g.H)(a.getElementsByTagName("object"),this.Bi,this);(0,g.H)(a.getElementsByTagName("a"),this.Bi,this);return a};g.C(Pu,yp);Pu.prototype.kg=function(){var a=g.ge("DIV");a.innerHTML=this.A;this.Bi(a);return Cp(this,a)};g.C(Qu,yp);Qu.prototype.gd=function(){var a=Qu.aa.gd.call(this);this.D&&(a=a.replace('src=""','src="'+Om(g.F(this.A))+'"'));return a};
Qu.prototype.Mq=function(){var a=Qu.aa.Mq.call(this);this.D&&(a=a.replace('src=""','src="'+Om(g.F(this.A))+'"'));return a};
Qu.prototype.kg=function(a){var b="";this.D||(b=Om(g.F(this.A)));b={id:this.Aa,url:b,Lc:this.Ze(),width:this.Eb()+"px",height:this.getHeight()+"px"};a=P.g()&&fo(this.G,"hideMaster")?cp:a?Rda:Qda;a=Op(a,b);(0,g.H)(a.getElementsByTagName("a"),this.Bi,this);return a};
Qu.prototype.xk=function(){return!0};Tu.prototype.hd=function(){return null!=this.g?vp[this.g]||"Other":null};g.C(Uu,Fp);Vu.prototype.parse=function(a){if(null==a)return null;var b,c,d;(0,g.H)(g.se(a),function(a){switch(a.nodeName){case "AdFormat":b=a.getAttribute("ad_system"),c=a.getAttribute("ad_type"),d=a.getAttribute("instream_type")}},this);
return null!=b&&null!=c&&null!=d?new Uu(b,c,d):null};g.C(Xu,Fp);Xu.prototype.isPharma=function(){return this.F};Yu.prototype.parse=function(a){var b;vr(a,"config",function(a){null!=b||(b=Xfa(this,a))},this);
return b};Zu.prototype.parse=function(a){if(null==a)return null;var b,c,d,e,f,k,l,m=!1,n=!1;(0,g.H)(g.se(a),function(a){switch(a.nodeName){case "AttributionText":c=ur(a);break;case "AttributionUrl":d=ur(a);break;case "ConversionUrl":f=ur(a);break;case "CustomTracking":null!=g.se(a)&&(e=Er(a));break;case "is_pharma":a=tr(a,"bool");n=yr(g.F(a));break;case "CheckedEvents":a=g.se(a);b=(0,g.I)(a,function(a){return tr(a,"id")});
null!=b||(b=[]);break;case "PreviousAdInformation":ur(a);break;case "VisibleUrl":k=ur(a);break;case "UI":l=(new Yu).parse(a);break;case "ShowYouTubeAnnotations":var q=ur(a);m=yr(g.F(q),!1);case "QueryId":ur(a)}},this);
null!=l||(l=new Wu);return new Xu(c,d,f,0,k,l,m,0,n,e,b)};$u.prototype.parse=function(a){if(null==a)return null;var b;(0,g.H)(g.se(a),function(a){switch(a.nodeName){case "CustomTracking":null!=g.se(a)&&(b=Er(a))}});
a=null;null!=b&&0<gp(b,"skip").length&&(a="Generic");return new Hr(a,b)};av.prototype.parse=function(a){if(null==a)return null;var b,c;(0,g.H)(g.se(a),function(a){switch(a.nodeName){case "SkippableAdType":b=ur(a);break;case "CustomTracking":null!=g.se(a)&&(c=Er(a))}});
return new Hr(b,c)};bv.prototype.parse=function(a){if(null==a)return null;var b;(0,g.H)(g.se(a),function(a){switch(a.nodeName){case "CustomTracking":null!=g.se(a)&&(b=Er(a))}},this);
return new Fp(b)};var z3;g.C(gv,cv);var A3;g.C(hv,cv);var B3,C3;g.C(iv,cv);var ov;g.C(jv,cv);var vv;g.C(kv,cv);var D3;g.C(lv,cv);var E3;g.C(mv,cv);var F3,G3;g.C(nv,cv);var H3,I3,J3,xv;g.C(qs,cv);var K3,L3,M3,N3,ofa={YE:0,ZE:1,S_:2,b0:3,Au:4,Z_:5,a0:6},O3={YE:0,X_:1,V_:2,T_:3,U_:4,W_:5,R_:6,Y_:7,XE:8,UE:9,VE:10,WE:11};hv.prototype.bc=function(){return dv(this,"type",0)};
hv.prototype.g=function(){return new nv(this.data.website_card)};
jv.prototype.bc=function(){return dv(this,"type",0)};
jv.prototype.getId=function(){return fr(this,"id")};
jv.prototype.setTitle=function(a){this.data.title=a};
kv.prototype.bc=function(){return dv(this,"type",0)};
lv.prototype.jd=function(){return fr(this,"headline")};
lv.prototype.setDescription=function(a){this.data.description=a};
mv.prototype.setDescription=function(a){this.data.description=a};
nv.prototype.jd=function(){return fr(this,"headline")};
nv.prototype.setDescription=function(a){this.data.description=a};
nv.prototype.og=function(){return new qs(this.data.icon)};
nv.prototype.Gm=function(){return new qs(this.data.banner_image)};
qs.prototype.getImageUrl=function(){return fr(this,"image_url")};var Bv;
Bv={action:{type:{TYPE_APPLICATION_STORE:4,TYPE_ATTRIBUTION:5,TYPE_CALL_PROMPT:22,TYPE_CHANNEL:2,TYPE_COLLAPSE:17,TYPE_ENGAGEMENT_PANEL:20,TYPE_EXTERNAL:16,TYPE_FUNDRAISING:10,TYPE_GOOGLE_MAP_DIRECTIONS:23,TYPE_GOOGLE_MAP_PLACES:24,TYPE_HEADLINE:1,TYPE_HELPOUTS:15,TYPE_INLINE_APPLICATION_STORE:19,TYPE_INTERNAL:13,TYPE_IRDB:8,TYPE_LETTERMAN:14,TYPE_MERCH:9,TYPE_NONE:0,TYPE_PLAYLIST:7,TYPE_RESPONSE:12,TYPE_RESULTS:11,TYPE_SLAP:21,TYPE_SUBSCRIPTION:6,TYPE_VIDEO:3,TYPE_VOTE:18}},ad_card:{attribution_position:{POSITION_BOTTOM_LEFT:0,POSITION_BOTTOM_RIGHT:3,
POSITION_TOP_LEFT:1,POSITION_TOP_RIGHT:2}},card:{prominence:{PROMINENCE_FEATURE:2,PROMINENCE_HIGHLIGHT:1,PROMINENCE_NONE:0},type:{TYPE_APP:2,TYPE_LOCATION:5,TYPE_NONE:0,TYPE_PRODUCT:1,TYPE_STORE_VISITS:6,TYPE_VOTE:3,TYPE_WEBSITE:4}},event:{type:{TYPE_ACTION:6,TYPE_ACTION_ENDCAP:9,TYPE_COLLAPSE:3,TYPE_COLLAPSE_ENDCAP:10,TYPE_DISMISS:4,TYPE_DISMISS_ENDCAP:11,TYPE_EXPAND:2,TYPE_HEADLINE_CLICK:5,TYPE_IMPRESSION:1,TYPE_IMPRESSION_ENDCAP:8,TYPE_IMPRESSION_GALLERY:7,TYPE_NONE:0}},open_hours:{day_of_week:{DAY_FRIDAY:6,
DAY_MONDAY:2,DAY_SATURDAY:7,DAY_SUNDAY:1,DAY_THURSDAY:5,DAY_TUESDAY:3,DAY_UNKNOWN:0,DAY_WEDNESDAY:4}}};g.C(zv,Fp);Av.prototype.parse=function(a){var b=or(a);if(E(g.F(b)))return null;if(this.g){var c=Cv;if(!z3){var d={};z3={g:d};if(!A3){var e={};A3={g:e};e.type=pv;if(!B3){var f={};B3={g:f};f.major_version=yv;f.minor_version=yv}e.version=Nh(B3);e.priority=yv;e.start_time_ms=Lh("j");e.end_time_ms=Lh("j");e.action=Mh(uv());e.event=Mh(tv());H3||(f={},H3={g:f},f.headline=qv,f.description=qv,f.attribution_icon_url=qv,f.skippable_seconds=yv,f.attribution_position=pv);e.ad_card=Nh(H3);if(!D3){f={};D3={g:f};f.headline=
qv;f.image=Nh(rv());f.description=qv;f.rating=n3;f.review_text=qv;if(!E3){var k={};E3={g:k};k.merchant=qv;k.price=qv;k.shipping=qv;k.shipping_tax=qv;k.condition=qv;k.unit_price=qv;k.energy_label=qv;k.description=qv;k.rating=n3;k.review_text=qv;k.action=Mh(uv());k.event=Mh(tv())}f.offer=Mh(E3)}e.product_card=Nh(D3);F3||(f={},F3={g:f},f.app_id=qv,f.app_name=qv,f.icon=Nh(rv()),f.price=qv,f.rating_image=qv,f.review_count=yv,f.app_store_logo=Nh(rv()),f.button_text=qv,f.screenshots=Mh(rv()),f.rating=n3,
f.back_button_text=qv,f.screenshots_text=qv,f.cover_photo=Nh(rv()));e.app_card=Nh(F3);G3||(f={},G3={g:f},f.headline=qv,f.description=qv,f.icon=Nh(rv()),f.banner_image=Nh(rv()));e.website_card=Nh(G3);e.prominence=pv;I3||(f={},I3={g:f},f.call_to_action_text=qv);e.social_card=Nh(I3);J3||(f={},J3={g:f},f.vote_line_1=qv,f.vote_line_2=qv,f.confirm_line_1=qv,f.confirm_line_2=qv);e.vote_card=Nh(J3);e.sponsored=o3;e.teaser_text=qv;C3||(f={},C3={g:f},f.hide_in_drawer=o3,f.show_in_endcap=o3,f.show_in_companion=
o3,f.show_in_cta=o3,f.override_clickthrough=o3,f.show_in_promotion_shelf=o3);e.placement=Nh(C3);K3||(f={},K3={g:f},f.latitude_e6=yv,f.longitude_e6=yv,f.address=qv,f.image=Nh(rv()),f.headline=qv);e.location_card=Nh(K3);L3||(f={},L3={g:f},f.icon=Nh(rv()),f.display_name=qv,f.latitude_e7=yv,f.longitude_e7=yv,N3||(k={},N3={g:k},k.display_address=qv,k.city_province=qv),f.address=Nh(N3),f.display_phone_number=qv,M3||(k={},M3={g:k},k.day_of_week=pv,k.display_day_of_week=qv,k.display_hours=qv),f.open_hours=
Mh(M3),f.images=Mh(rv()),f.distance_to_user_meters=yv,f.average_rating=yv,f.num_reviews=yv);e.merchant_location=Nh(L3)}d.card=Mh(A3);d.event=Mh(tv())}a=c(this,a,z3);a=c=new gv(a);d=new dp;for(e=0;e<fv(a,"card");e++)if(f=new hv(ev(a,"card",e)),os(ps(f)))for(k=0;k<fv(f,"event");k++){var l=new kv(ev(f,"event",k)),m=null;switch(l.bc()){case O3.UE:m="video_card_endcap_action";break;case O3.VE:m="video_card_endcap_collapse";break;case O3.WE:m="video_card_endcap_dismiss";break;case O3.XE:m="video_card_endcap_impression"}m&&
ip(d,m,Dv(m,fr(l,"base_url")))}a=d}else a=Yfa(this,a);return new zv(b,c,a)};g.C(Ev,Fp);Ev.prototype.Tg=function(){return this.o};g.C(Fv,Fp);Gv.prototype.parse=function(a){if(!a)return null;var b,c;(0,g.H)(g.se(a),function(a){switch(a.nodeName){case "FeEventId":b=ur(a);break;case "AdEventId":c=ur(a)}},this);
return new Fv(b,c)};Hv.prototype.C=function(a){var b={};(0,g.H)(this.o,function(a){b[a]=[]});
var c=new RegExp("^"+this.A);(0,g.H)(g.se(a),function(a){"config"==a.nodeName&&(0,g.H)(g.se(a),function(a){"params"==a.nodeName&&(0,g.H)(g.se(a),function(a){var d=this.A?a.nodeName.replace(c,""):a.nodeName,e=a.getAttribute("data");null!=e||(e=ur(a));null!=a.getAttribute("learn_more")&&(e+="|");g.eb(this.o,d)?b[d].push(e):b[d]=e},this)},this)},this);
return b};g.C(Jv,Hv);Jv.prototype.parse=function(a){if(null==a)return null;a=Iv(this,a);var b=a.UI;return new Xs(b.gone,b.question,b.undo,b.hover_text,a.SurveyOptions||[],a.CustomTracking)};
Jv.prototype.B=function(a){var b=[],c=0;(0,g.H)(g.se(a),function(a){if("SurveyOption"==a.nodeName){var d,f;(0,g.H)(g.se(a),function(a){switch(a.nodeName){case "DisplayName":d=ur(a);break;case "URL":f=ur(a)}},this);
null!=d&&null!=f&&(b.push({label:d,url:f}),c++)}},this);
return b};g.C(Kv,Fp);Lv.prototype.parse=function(a){if(null==a)return null;var b=new Kv;(0,g.H)(g.se(a),function(a){if("DealId"!=a.nodeName)return null;a=ur(a);a=g.F(a);E(a)||(b.o=a)},this);
return b};g.C(Mv,Fp);Nv.prototype.g={ME:"Siub",LE:"Scs",RC:"Bgub",QC:"Bgp"};Nv.prototype.parse=function(a){if(null==a)return null;var b,c,d,e;(0,g.H)(g.se(a),function(a){switch(a.nodeName){case this.g.ME:b=ur(a);break;case this.g.LE:c=ur(a);break;case this.g.RC:d=ur(a);break;case this.g.QC:e=ur(a)}},this);
return b&&c&&d&&e?new Mv(b,c,d,e):null};g.C(Ov,Fp);Pv.prototype.g={SE:"TEMPLATE_PARAMETERS",TE:"TEMPLATE_URL"};Pv.prototype.parse=function(a){if(null==a)return null;(0,g.H)(g.se(a),function(a){switch(a.nodeName){case this.g.SE:Zfa(this,a)}},this);
return new Ov};g.C(Qv,Fp);Qv.prototype.getImageUrl=function(){return this.B};Rv.prototype.g={TD:"Line1",UD:"Line2",VD:"Line3",SD:"ImageUrl"};Rv.prototype.parse=function(a){if(null==a)return null;var b,c,d,e,f=0,k=0;(0,g.H)(g.se(a),function(a){switch(a.nodeName){case this.g.TD:b=ur(a,!0);break;case this.g.UD:c=ur(a,!0);break;case this.g.VD:d=ur(a,!0);break;case this.g.SD:e=ur(a);var l=Number(a.getAttribute("width"));f=(0,window.isNaN)(l)?0:l;a=Number(a.getAttribute("height"));k=(0,window.isNaN)(a)?0:a}},this);
return new Qv(b,c,d,e,f,k)};g.C(Sv,Fp);Tv.prototype.parse=function(a){if(null==a)return null;var b;(0,g.H)(g.se(a),function(a){switch(a.nodeName){case "ViralExtensionData":a=a.getAttribute("query_id"),E(g.F(a))||(b=a)}},this);
return new Sv(b)};g.C(Uv,Hv);var spa=["menu","got_it"],tpa=[["generic_message_left","generic_message_hypertext","generic_message_right"]];Uv.prototype.parse=function(a){if(null==a)return null;a=Iv(this,a);var b=a.UI;if(!Vv(b,spa))return null;var c,d=!0,e=!1;(0,g.H)(tpa,function(a){$fa(b,a)&&(Vv(b,a)?e=!0:d=!1)});
if(!d||!e)return null;null!=b.generic_message_left&&(c=[b.generic_message_left,b.generic_message_hypertext,b.generic_message_right]);return new Zs(b.menu,b.got_it,b.targeting_reason_header,b.targeting_reason,a.CustomTracking,c,b.control)};Wv.prototype.parse=function(a){if(null==a)return null;a=a.getAttribute("sequence");a=null!=a?Va(a):window.NaN;a=(0,window.isNaN)(a)?-1:a;return new Ir(a)};g.C(Xv,Fp);Yv.prototype.parse=function(a){return null!=a?new Xv:null};Zv.prototype.parse=function(a){if(null==a)return null;a=a.getAttribute("fallback_index");a=null!=a?Va(a):window.NaN;return new vq(a)};g.C($v,Mu);
$v.prototype.g={FC:"Ad",Eo:"AdParameters",JC:"AdSystem",KC:"AdTitle",GC:"Advertiser",NC:"AltText",WC:"ClickThrough",XC:"ClickTracking",ZC:"Companion",aD:"CompanionAds",bD:"CompanionClickThrough",cD:"CompanionClickTracking",kD:"Creative",rV:"CreativeExtensions",lD:"Creatives",pD:"CustomClick",uD:"Description",Io:"Duration",ERROR:"Error",EXTENSION:"Extension",BD:"Extensions",zl:"HTMLResource",HD:"Icon",ID:"Icons",JD:"IconClicks",KD:"IconClickThrough",LD:"IconClickTracking",MD:"IconViewTracking",Bl:"IFrameResource",
Cl:"Impression",bX:"InLine",LINEAR:"Linear",aE:"MediaFile",bE:"MediaFiles",kE:"NonLinear",lE:"NonLinearAds",mE:"NonLinearClickThrough",nE:"NonLinearClickTracking",wE:"Pricing",Dl:"StaticResource",RE:"Survey",L_:"Tracking",Xo:"TrackingEvents",aF:"UniversalAdId",s0:"VAST",cF:"VASTAdTagURI",dF:"VideoClicks",gF:"Wrapper"};
$v.prototype.o={HC:"adId",IC:"adSlotID",MC:"allowMultipleAds",xl:"apiFramework",Kt:"bitrate",mD:"creativeType",tD:"delivery",Io:"duration",qW:"event",ED:"followAdditionalWrappers",zD:"expandedHeight",AD:"expandedWidth",yl:"height",Al:"id",ND:"idRegistry",OD:"idValue",XD:"maintainAspectRatio",ZD:"maxBitrate",fE:"minBitrate",gE:"minSuggestedDuration",oE:"offset",xE:"program",BE:"required",EE:"scalable",iu:"sequence",JE:"skipoffset",zu:"type",VERSION:"version",eF:"codec",Fl:"width",hF:"xPosition",kF:"yPosition"};
$v.prototype.A=function(){return new Nu(this.B,cga(this),null)};g.C(iw,qu);g.h=iw.prototype;g.h.W=function(){this.F=!1;null===this.g?this.P&&this.dispatchEvent(new sm("destroyInsecureFlashVpaid",this.ma())):this.g.dispose();this.A&&this.la("contentResumeRequested");this.la("allAdsCompleted");iw.aa.W.call(this)};
g.h.Nc=function(){var a=this.Yc("getAdRemainingTime");return g.oa(a)?a:-1};
g.h.getVolume=function(){var a=this.Yc("getAdVolume");return g.oa(a)?a:-1};
g.h.Qc=function(a,b,c){iw.aa.Qc.call(this,a,b,c);this.A=this.ma().g instanceof rp};
g.h.init=function(a){iw.aa.init.call(this,a);a=this.ma();var b=Gs(a),b=g.F(b);if(E(b))nw(this,Error("Flash VPAID ad url is empty.")),this.stop();else{if(wu(a)){var c=a.g,d=up(c);null!=d&&(c.C=d)}this.Xa().X(Rn(),u3,this.uj);this.P?this.dispatchEvent(new sm("initInsecureFlashVpaid",a,{url:g.F(b)})):null===this.Qa.Cf()?(nw(this,Error("Container must be provided for flash VPAID.")),this.stop()):(this.Qa.nd(),null===this.g&&(this.g=new Lu(this.Qa.Cf())),this.Xa().X(this.g,"loadError",this.BN),this.Xa().X(this.g,
"vpaidEventType",this.Rf),this.g.load(b,this.M,this.D,this.Va.cf))}};
g.h.start=function(){if(this.F){iw.aa.start.call(this);var a=this.ma();this.Sb.B=a.K;var b=cq(a);this.Sb.g=b;if(b=a.g)this.yg(a),this.Vf(b,t3),this.zj(b),Au(this,a);this.Qa.nd();Cu(this);this.Ga("show_ad");this.setVolume(this.B);this.o=new g.dg(250);this.Xa().X(this.o,"tick",this.IH);this.A?this.la("contentPauseRequested"):(this.la("contentResumeRequested"),kw(this));this.o.start();this.Yc("startAd")}else this.J=!0};
g.h.stop=function(){this.K||(this.Yc("stopAd"),this.Qa.hide(),null!=this.o&&(this.o.stop(),this.o=null),iw.aa.stop.call(this),this.K=!0)};
g.h.Ab=function(a,b,c){iw.aa.Ab.call(this,a,b,c);if(null!==this.g){var d=this.g;d.g&&d.g.setSize(a,b)}this.M=a;this.D=b;this.Yc("resizeAd",a,b,c)};
g.h.pause=function(){null!=this.o&&this.o.stop();this.Yc("pauseAd")};
g.h.resume=function(){null!=this.o&&this.o.start();this.Yc("resumeAd")};
g.h.setVolume=function(a){this.B=a;this.O.getAdVolume=a;this.Yc("setAdVolume",a)};
g.h.expand=function(){this.Yc("expandAd")};
g.h.collapse=function(){this.Yc("collapseAd")};
g.h.tj=g.y;g.h.Wb=function(){return jw(this)};
g.h.skip=function(){this.Yc("skipAd")};
g.h.getDuration=function(){var a=this.Yc("getAdDuration");if(g.oa(a))return a;a=this.Nc();return 0<=a?this.C/1E3+a:-2};
g.h.IH=function(){this.C+=250;var a=this.getDuration(),b=a-this.Nc();Du(this,b,a)};
g.h.Yc=function(a){if(this.K)return null;for(var b=[],c=0;c<arguments.length;c++)b.push(arguments[c]);return this.P?(c=b.shift(),this.dispatchEvent(new sm("callFlashVpaidMethod",this.yb()?this.ma():null,{methodName:c,args:b})),this.O[c]):null===this.g?null:this.g.EH.apply(this.g,b)};
g.h.BN=function(){nw(this,Error("Flash VPAID loader failed to load."));this.stop()};
g.h.getCurrentTime=function(){return this.C/1E3};
g.h.Rf=function(a){var b=a.data;switch(a.g){case "flashVpaidMethodResults":b&&(this.O[b.methodName]=b.result);break;case "flashReady":this.Yc("handshakeVersion","2.0");b=Yr(this.ma());this.Yc("initAd",this.M,this.D,this.Xc,this.Va.bitrate,b);break;case "AdLoaded":this.F=!0;b=this.Yc("getAdCompanions");a=g.u(b)?b:"";b=this.ma();g.fb(Xr(b))&&(a=cw(a,b.g.g),g.fb(a)||Jr(b,a));xu(this,"loaded");this.J&&(this.J=!1,this.start());break;case "AdStarted":this.Ga("impression");this.Ga("creativeview");this.la("start");
break;case "AdVideoStart":this.Ga("start");break;case "AdClickThru":b&&b.playerHandles&&((b=b.url)||(b=g.F($r(this.ma()))),b&&Qm(b));this.Ga("click");this.la("click");break;case "AdDurationChange":this.la("durationChange");break;case "AdRemainingTimeChange":this.la("durationChange");kw(this);break;case "AdError":a="AdError";b&&(a=b.message);nw(this,Error(a));this.stop();break;case "AdExpandedChange":this.la("expandedChanged");break;case "AdImpression":b=this.ma();g.fb(Xr(b))||this.rd(b);this.la("impression");
break;case "AdLinearChange":b=jw(this);!this.A&&b?(this.la("contentPauseRequested"),g.gg(this.G)):this.A&&!b&&(this.la("contentResumeRequested"),kw(this));this.A=b;a=this.Uc;a.Za=!0;a.sa=b;this.la("linearChanged");break;case "AdVolumeChange":b=this.getVolume();b!=this.B&&(this.la("volumeChange"),0==b&&0!=this.B?(this.Ga("mute"),this.la("mute")):0==this.B&&0!=b&&this.Ga("unmute"),this.B=b);break;case "AdPaused":xu(this,"pause");break;case "AdUserClose":xu(this,"userClose");break;case "AdUserMinimize":this.Ga("collapse");
break;case "AdVideoFirstQuartile":xu(this,"firstquartile");break;case "AdVideoMidpoint":xu(this,"midpoint");break;case "AdVideoThirdQuartile":xu(this,"thirdquartile");break;case "AdVideoComplete":lw(this);break;case "AdUserAcceptInvitation":this.A?this.Ga("acceptinvitationlinear"):this.Ga("acceptinvitation");break;case "AdStopped":lw(this);this.Ga("stop");this.stop();break;case "AdSkipped":xu(this,"skip");break;case "AdSkippableStateChange":xu(this,"skippableStateChanged");break;case "AdPlaying":xu(this,
"resume");break;case "AdLog":this.la("log")}};g.C(ow,qu);var upa=rd(hd(id("https://imasdk.googleapis.com/flash/sdkloader/flashinhtml.swf")));rd(hd(id("http://imasdk.googleapis.com/flash/sdkloader/flashinhtml.swf")));g.h=ow.prototype;g.h.W=function(){this.F=!1;this.g&&(this.g.dispose(),this.C=null);g.gg(this.G);this.A&&this.la("contentResumeRequested");this.la("allAdsCompleted");ow.aa.W.call(this)};
g.h.Nc=function(){var a=this.dd("getAdRemainingTime");return g.oa(a)?a:-1};
g.h.getVolume=function(){var a=this.dd("getAdVolume");return g.oa(a)?a:-1};
g.h.Qc=function(a,b,c){ow.aa.Qc.call(this,a,b,c);this.A=this.ma().g instanceof rp};
g.h.init=function(a){ow.aa.init.call(this,a);window[this.V]=(0,g.A)(this.JH,this);this.Xa().X(Rn(),u3,this.uj);this.g=new Ju(upa);this.g.setSize(this.O,this.J);this.g.Jl="always";var b=this.ma();a=Gs(b);a=g.F(a);if(E(a))rw(this,mw,Error("Flash VPAID ad url is empty.")),this.stop();else{if(wu(b)){var b=b.g,c=up(b);null!=c&&(b.C=c)}this.g.o.set("vpaid",a);this.g.xo="transparent";this.g.o.set("vpaidEventHandler",this.V);this.Qa.nd();Hu(this.g,this.Qa.Cf());this.C=Ku(this.g);this.G=g.fg(this.LH,this.Va.cf,
this)}};
g.h.start=function(){if(this.F){ow.aa.start.call(this);var a=this.ma();this.Sb.B=a.K;var b=cq(a);this.Sb.g=b;if(b=a.g)this.yg(a),this.Vf(b,t3),this.zj(b),Au(this,a);this.Qa.nd();Cu(this);this.Ga("show_ad");this.setVolume(this.B);this.o=new g.dg(250);this.Xa().X(this.o,"tick",this.KH);this.A?this.la("contentPauseRequested"):(this.la("contentResumeRequested"),qw(this));this.o.start();this.dd("startAd")}else this.M=!0};
g.h.stop=function(){this.ba||(this.ba=!0,this.dd("stopAd"),this.Qa.hide(),null!=this.o&&(this.o.stop(),this.o=null),ow.aa.stop.call(this))};
g.h.Ab=function(a,b,c){ow.aa.Ab.call(this,a,b,c);this.O=a;this.J=b;null!=this.g&&this.g.setSize(a,b);this.dd("resizeAd",a,b,c)};
g.h.pause=function(){null!=this.o&&this.o.stop();this.dd("pauseAd")};
g.h.resume=function(){null!=this.o&&this.o.start();this.dd("resumeAd")};
g.h.setVolume=function(a){this.B=a;this.dd("setAdVolume",a)};
g.h.expand=function(){this.dd("expandAd")};
g.h.collapse=function(){this.dd("collapseAd")};
g.h.tj=function(){};
g.h.Wb=function(){return pw(this)};
g.h.skip=function(){this.dd("skipAd")};
g.h.getDuration=function(){var a=this.dd("getAdDuration");if(g.oa(a))return a;a=this.Nc();return 0<=a?this.D/1E3+a:-2};
g.h.KH=function(){this.D+=250;var a=this.getDuration(),b=a-this.Nc();Du(this,b,a)};
g.h.dd=function(a){if(!this.g||!this.C)return null;for(var b=[],c=0;c<arguments.length;c++)b.push(arguments[c]);var c=b.shift(),d=!1;this.F&&(d=!0);if("handshakeVersion"==c||"initAd"==c)d=!0;if(d)try{if(null!=this.C[c])return this.C[c].apply(this.C,b)}catch(e){}return null};
g.h.LH=function(){rw(this,x3,null,(this.Va.cf/1E3).toString());this.stop()};
g.h.getCurrentTime=function(){return this.D/1E3};
g.h.JH=function(a,b){switch(a){case "flashReady":this.dd("handshakeVersion","2.0");var c=Yr(this.ma());this.C.initAd(this.O,this.J,this.Xc,this.Va.bitrate,c);break;case "AdLoaded":g.gg(this.G);this.F=!0;var c=this.dd("getAdCompanions"),d=g.u(c)?c:"",c=this.ma();g.fb(Xr(c))&&(d=cw(d,c.g.g),g.fb(d)||Jr(c,d));xu(this,"loaded");this.M&&(this.M=!1,this.start());break;case "AdStarted":this.Ga("impression");this.Ga("creativeview");this.la("start");break;case "AdVideoStart":this.Ga("start");break;case "AdClickThru":b&&
b.playerHandles&&((c=b.url)||(c=g.F($r(this.ma()))),null!=c&&Qm(c));this.Ga("click");this.la("click");break;case "AdDurationChange":this.la("durationChange");break;case "AdRemainingTimeChange":this.la("durationChange");qw(this);break;case "AdError":c="AdError";b&&(c=b.message);rw(this,mw,Error(c));this.stop();break;case "AdExpandedChange":this.la("expandedChanged");break;case "AdImpression":c=this.ma();g.fb(Xr(c))||this.rd(c);this.la("impression");break;case "AdLinearChange":c=pw(this);!this.A&&c?
(this.la("contentPauseRequested"),g.gg(this.K)):this.A&&!c&&(this.la("contentResumeRequested"),qw(this));this.A=c;d=this.Uc;d.Za=!0;d.sa=c;this.la("linearChanged");break;case "AdVolumeChange":c=this.getVolume();c!=this.B&&(c!=this.B&&this.la("volumeChange"),0==c&&0!=this.B?(this.Ga("mute"),this.la("mute")):0==this.B&&0!=c&&this.Ga("unmute"),this.B=c);break;case "AdPaused":xu(this,"pause");break;case "AdUserClose":xu(this,"userClose");break;case "AdUserMinimize":this.Ga("collapse");break;case "AdVideoFirstQuartile":xu(this,
"firstquartile");break;case "AdVideoMidpoint":xu(this,"midpoint");break;case "AdVideoThirdQuartile":xu(this,"thirdquartile");break;case "AdVideoComplete":tw(this);break;case "AdUserAcceptInvitation":this.A?this.Ga("acceptinvitationlinear"):this.Ga("acceptinvitation");break;case "AdStopped":tw(this);this.Ga("stop");this.stop();break;case "AdSkipped":xu(this,"skip");break;case "AdSkippableStateChange":xu(this,"skippableStateChanged");break;case "AdPlaying":xu(this,"resume");break;case "AdLog":this.la("log")}};g.C(uw,sm);xw.prototype.g=null;var P3;g.C(Aw,xw);P3=new Aw;g.C(Cw,g.qf);Cw.prototype.bb=null;var nga=/^https?$/i,vpa=["POST","PUT"];g.h=Cw.prototype;
g.h.send=function(a,b,c,d){if(this.g)throw Error("[goog.net.XhrIo] Object is active with another request="+this.V+"; newUri="+a);b=b?b.toUpperCase():"GET";this.V=a;this.D="";this.o=0;this.O=!1;this.A=!0;this.g=this.M?Bw(this.M):Bw(P3);this.K=this.M?zw(this.M):zw(P3);this.g.onreadystatechange=(0,g.A)(this.ww,this);try{this.getStatus(),this.P=!0,this.g.open(b,String(a),!0),this.P=!1}catch(f){this.getStatus();Gw(this,f);return}a=c||"";var e=this.headers.clone();d&&Wca(d,function(a,b){e.set(b,a)});
d=g.$a(e.Cb(),mga);c=pa.FormData&&a instanceof pa.FormData;!g.eb(vpa,b)||d||c||e.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");e.forEach(function(a,b){this.g.setRequestHeader(b,a)},this);
this.ca&&(this.g.responseType=this.ca);"withCredentials"in this.g&&this.g.withCredentials!==this.G&&(this.g.withCredentials=this.G);try{Kw(this),0<this.C&&(this.ba=lga(this.g),this.getStatus(),this.ba?(this.g.timeout=this.C,this.g.ontimeout=(0,g.A)(this.xw,this)):this.F=g.fg(this.xw,this.C,this)),this.getStatus(),this.J=!0,this.g.send(a),this.J=!1}catch(f){this.getStatus(),Gw(this,f)}};
g.h.xw=function(){"undefined"!=typeof Hw&&this.g&&(this.D="Timed out after "+this.C+"ms, aborting",this.o=8,this.getStatus(),this.dispatchEvent("timeout"),this.abort(8))};
g.h.abort=function(a){this.g&&this.A&&(this.getStatus(),this.A=!1,this.B=!0,this.g.abort(),this.B=!1,this.o=a||7,this.dispatchEvent("complete"),this.dispatchEvent("abort"),Fw(this))};
g.h.W=function(){this.g&&(this.A&&(this.A=!1,this.B=!0,this.g.abort(),this.B=!1),Fw(this,!0));Cw.aa.W.call(this)};
g.h.ww=function(){this.na()||(this.P||this.J||this.B?Jw(this):this.aP())};
g.h.aP=function(){Jw(this)};
g.h.isActive=function(){return!!this.g};
g.h.getStatus=function(){try{return 2<Iw(this)?this.g.status:-1}catch(a){return-1}};g.p(Nw,Yi);Nw.prototype.P=function(){if(this.o&&this.O){if(0<this.events.length||0<yba(this.G)){var a={};200<this.events.length&&(this.events.length=200);(0,g.H)(this.events,function(b){var c="met."+b.type;a[c]?a[c].push(Ow(b)):a[c]=[Ow(b)]});
qga(this,a);this.C++;this.C===this.K&&this.rj()}this.events.length=0;this.g.clearTimeout(this.A);this.A=0}};
Nw.prototype.Qn=function(a){this.C<this.K&&(Yi.prototype.Qn.call(this,a),200<=this.events.length&&this.P())};
Nw.prototype.rj=function(){Yi.prototype.rj.call(this);this.g.clearTimeout(this.A);this.A=0;Uh(this.g,"unload",this.B);Uh(this.g,"load",this.J)};Rw.prototype.isLoggingEnabled=function(){return!!this.g};
g.qa(Rw);g.C(Uw,g.M);Uw.prototype.W=function(){this.o.enabled&&this.o.stop();this.g=[];Uw.aa.W.call(this)};
Uw.prototype.D=function(){var a=1E3*this.K.getCurrentTime(),b=(0,g.G)();this.g.push(new uga(a,b));for(a=b-this.g[0].g;1E4<a;)this.g.shift(),a=b-this.g[0].g;2>this.g.length?b=!0:(a=this.g.length-1,b=this.g[a].g-this.g[0].g,a=this.g[a].o-this.g[0].o,b<this.G||0>a?b=!0:(b=a/b,b<this.B&&(this.B=b),b=.5<=b));b||(this.J=!0,b=this.K,null!=b.o&&Ww(b.o),Jx(b,jpa,Zm(jpa)))};Xw.prototype.isListed=!0;Xw.prototype.Uf=-1;g.C(Zw,g.qf);g.h=Zw.prototype;g.h.start=function(){this.zq();this.A=0;$w(this);this.o=!0;this.C.start()};
g.h.play=function(){this.o||($w(this),this.o=!0,this.C.start())};
g.h.pause=function(){this.o&&$w(this)};
g.h.stop=function(){this.o&&$w(this);this.dispatchEvent("end")};
g.h.zq=function(){};
g.h.TO=function(){this.A+=.2;this.yq(this.A,this.O);this.dispatchEvent("timeUpdate");0>=this.O-this.A&&this.stop()};
g.h.yq=g.y;g.h.W=function(){this.o=!1;this.K.dispose();Zw.aa.W.call(this)};g.C(bx,Zw);g.h=bx.prototype;g.h.start=function(){this.zq();this.B.update(0,this.J);ht(this.g,this.G.A).play();this.K.X(this.B,"skip",this.qF);bx.aa.start.call(this)};
g.h.zq=function(){var a=g.uh(this.g);if(1==this.F){var b=400>=(0,window.parseInt)(g.fh(this.g,"width"),10)||400>=a.width;g.S(this.g,"videoAdUi-mobile",b)}else if(2==this.F){var c=g.ue(this.g),d=g.uh(c),e=65>=(a.height-d.height)/2;g.S(this.g,"fullslotAdUi-mobile",e);b=165>=(a.width-d.width)/2;g.S(this.g,"videoAdUi-mobile",b&&e);c.style.top=Math.max(5,Math.floor((a.height-d.height-65)/2))+"px"}};
g.h.qF=function(){this.pause();this.dispatchEvent("skip")};
g.h.yq=function(a,b){this.B.update(a,b);if(this.D){var c=Yw({Eg:ax(b-a)});g.ye(this.D,c)}};
g.h.W=function(){this.B&&this.B.dispose();g.me(this.g);bx.aa.W.call(this)};g.C(ex,Zw);var dx=Math.ceil(10*3.14);ex.prototype.F=function(a){P.g()||a.stopPropagation();this.dispatchEvent("click")};
ex.prototype.start=function(){ex.aa.start.call(this);null==this.g?this.stop():this.J&&(this.P&&780<=g.uh(this.V).width&&this.J.Xw(!0),this.J.Cq())};
ex.prototype.yq=function(a,b){var c=a/b*dx+" "+dx;null!=this.g&&g.bh(this.g,"stroke-dasharray",c)};g.C(fx,g.M);fx.prototype.show=function(a,b){gx(this);GO&&a?(a.appendChild(this.A),this.g=g.fg((0,g.A)(this.o,this,b),2E3)):b()};
fx.prototype.o=function(a){this.g=0;g.pe(this.A);a()};
fx.prototype.W=function(){gx(this);fx.aa.W.call(this)};hx.prototype.isPharma=function(){return this.K};g.C(ix,g.Me);g.C(jx,g.qf);kx.prototype.muted=function(a,b){return!this.mute&&a||0!=this.volume&&0==b};
var Bga={click:3,videoLearnMoreClicked:3,videoShareClicked:8,videoTitleClicked:14,videoAuthorClicked:15,videoAuthorIconClicked:15};g.h=jx.prototype;g.h.W=function(){this.Vc();jx.aa.W.call(this)};
g.h.Vc=function(){null!=this.o&&this.o.dispose();null!=this.g&&this.g.Vc();null!=this.D&&this.D.dispose();this.D=null;null!=this.J&&this.J.dispose();this.J=null;this.O.clear();this.K=-1;this.F="";this.G=this.P=!1};
g.h.Hb=function(a,b,c,d){this.Vc();this.B.B=a.K;this.g=b;this.A=d||null;this.g.Hb();this.C=new kx(this.g);this.M=c||null;this.o=new g.dm(this);this.F=a.K;a=P.o?io():Rn();this.o.X(a,"externalActivityEvent",this.zN);this.o.X(a,"measurable_impression",this.cO);this.o.X(a,"viewable_impression",this.hQ);this.o.X(this.g,"timeUpdate",this.oI);this.o.X(this.g,"volumeChange",this.pI);this.o.X(this.g,"pause",this.lI);this.o.X(this.g,"play",this.mI);this.o.X(this.g,"end",this.wN);this.o.X(this.g,"beginFullscreen",
this.jI);this.o.X(this.g,"endFullscreen",this.yN);this.o.X(this.g,"skip",this.ix);this.o.X(this.g,"skipShown",this.Vz);this.o.X(this.g,"start",this.nI);this.o.X(this.g,"error",this.iI);this.o.X(this.g,"mediaLoadTimeout",this.kI);null!=this.A&&(this.o.X(this.A,"videoIconClicked",(0,g.A)(function(a){this.dispatchEvent(a)},this)),this.o.X(this.A,"urlNavigationRequested",(0,g.A)(function(a){this.dispatchEvent(a)},this)),this.o.X(this.A,"videoShareShown",this.gQ),this.o.X(this.A,"skipshown",this.Vz),this.o.X(this.A,
"skip",this.ix),this.o.X(this.A,"PUBLISHER_INVOKED_SKIP",this.XO),this.o.X(this.A,"MUTE_AD videoAuthorIconClicked videoAuthorClicked videoClicked videoLearnMoreClicked videoMuteClicked videoTitleClicked videoShareClicked videoUnmuteClicked why_this_ad_url why_this_ad_got_it why_this_ad_settings_url why_this_ad_learn_more mute_interaction_url mute_url mute_undo_url".split(" "),this.iG))};
g.h.cO=function(a){var b=a.g;this.B.G.measurable_impression=null!=b?b.viewabilityString:null;a.g.queryId==this.F&&lx(this,"measurable_impression",!0,!1)};
g.h.hQ=function(a){a=a.g;a.queryId==this.F&&(this.B.G.viewable_impression=null!=a?a.viewabilityString:null,lx(this,"viewable_impression",!0,!0))};
g.h.zN=function(a){a=a.g;var b=v3[a.eventName];b&&a.queryId==this.F&&(this.B.G[b]=null!=a?a.viewabilityString:null,lx(this,b,!0,!0))};
g.h.oI=function(){if(this.G){var a=this.g.getDuration();if(-1!=a){this.g.Zj(.25*a)&&lx(this,"firstquartile",!0,!0);this.g.Zj(.5*a)&&lx(this,"midpoint",!0,!0);this.g.Zj(.75*a)&&lx(this,"thirdquartile",!0,!0);var b=this.B,c=this.g.getCurrentTime();if(!Hl(b.o,"skip")){0>b.C&&(Sda(b.A,a),b.C=0);for(var a=gp(b.A,"progress"),d=[],e=b.C;e<a.length;e++){var f=a[e];if(kp(f.o)>c)break;b.C=e+1;d.push(f.g)}0<d.length&&nu(b,new g.Me("progress"),d)}}mx(this)}};
g.h.nI=function(){this.G=!0;lx(this,"impression",!0,!0);lx(this,"creativeview",!0,!0);null!=this.M||null!=this.A||this.o.X(this.g,"click",this.Nq);null!=this.M&&(this.D=new Ms,this.o.X(this.D,"click",this.Nq,!1),this.D.Hb(this.M));null!=this.A&&(this.J=new Ms,this.o.X(this.J,"click",this.Nq,!1),this.J.Hb(this.A));lx(this,"start",!0,!0);(this.g.cj()||0==this.g.getVolume())&&lx(this,"mute",!1,!1)};
g.h.pI=function(){var a=this.g.cj(),b=this.g.getVolume(),c=this.C;c.mute&&!a||!a&&0==c.volume&&0<b?lx(this,"unmute",!1,!1):this.C.muted(a,b)&&lx(this,"mute",!1,!1);this.C.mute=a;this.C.volume=b};
g.h.lI=function(){this.g.ah()?nx(this):this.g.Xh()&&!this.g.Ww()&&(this.C.paused=!0,lx(this,"pause",!1,!1))};
g.h.mI=function(){this.C.paused&&(this.C.paused=!1,lx(this,"resume",!1,!1))};
g.h.wN=function(){nx(this)};
g.h.Nq=function(){lx(this,"click",!1,!1)};
g.h.iI=function(){lx(this,"error",!1,!1)};
g.h.kI=function(){lx(this,"mediaLoadTimeout",!1,!1)};
g.h.Vz=function(){lx(this,"skipshown",!0,!1)};
g.h.iG=function(a){lx(this,a.type,!1,!1)};
g.h.gQ=function(){lx(this,"videoShareShown",!0,!1)};
g.h.ix=function(){lx(this,"skip",!0,!1)};
g.h.XO=function(){lx(this,"skip",!0,!1)};
g.h.jI=function(){lx(this,"fullscreen",!1,!1)};
g.h.yN=function(){lx(this,"exitfullscreen",!1,!1)};g.h=px.prototype;g.h.Mc=function(){return this.g.Mc()};
g.h.remove=function(a){return this.g.remove(qx(a))};
g.h.clear=function(){this.g.clear()};
g.h.isEmpty=function(){return this.g.isEmpty()};
g.h.contains=function(a){return Hl(this.g,qx(a))};
g.h.fb=function(){return this.g.fb()};
g.h.clone=function(){return new px(this)};
g.h.Sd=function(){return this.g.Sd(!1)};g.C(sx,qu);g.h=sx.prototype;g.h.W=function(){wx(this);this.V.dispose();ux(this);g.H(this.J.fb(),g.gg);var a=!1;null!=this.Qa&&(a=this.Qa.Ym(),this.Qa.hide(),this.Qa=null);this.G&&(this.G=!1,this.Ea.Xh()||this.Ea.ah()||this.Ea.pause(),hn()&&!a&&(this.Ea.dj(.001),this.Ea.load("","")),gn()&&this.Ea.bj()&&!a&&this.Ea.Bq(),this.la("contentResumeRequested"),this.la("allAdsCompleted"));null!=this.Ea&&this.Ea.unload();null!=this.o&&(g.Ke(this.o),this.o=null);sx.aa.W.call(this)};
g.h.muteAd=function(){P.g()&&(this.Ga("mute_interaction_url"),this.Ga("mute_url"),this.la("MUTE_AD"),tx(this,function(){vx(this)}))};
g.h.whyThisAdClicked=function(){P.g()&&this.Ga("why_this_ad_url")};
g.h.whyThisAdClosed=function(){P.g()&&this.Ga("why_this_ad_got_it")};
g.h.il=function(){ux(this);sx.aa.il.call(this);this.yb()&&(this.Sb=new mu,this.B=new jx(this.Sb),this.O=!1,this.la("loaded"))};
g.h.Qr=function(a){sx.aa.Qr.call(this,a);null!=this.Ea&&this.Ea.ws(1)};
g.h.Pv=function(a,b){b.preventDefault();this.F||(this.F=!0,xu(this,"video_card_endcap_action"));a&&(this.g.pause(),Qm(a))};
g.h.Qv=function(){tx(this,function(){xx(this,"video_card_endcap_dismiss")})};
g.h.ZF=function(){xx(this,"video_card_endcap_collapse")};
g.h.EI=function(a,b,c){var d=Sp(b);d&&(a.D=d);var e=a.getExtension("AdSense");null!=e&&null!=e.o&&e.o.o&&this.setVolume(0);if(this.Va.uB){d=a.getExtension("AdSense");(e=this.da)||(e=null===b?!1:"modules"==(new g.Ll(b)).Qh().toLowerCase()||Vp(b));var f=e||null!=d&&d.G,d=a.isBumper()?null:Cs(a);if((P.g()||tn()?0:dn()&&(!this.Ak()||null==this.Qa||!this.Qa.Ip())||Is(a)||this.Va.Ws)||!P.g()&&f)this.Va.Us=!0,this.Va.Ws=!0;e=cq(a,this.Ea);if(P.g()||this.Va.Ws){var k=E(g.F($r(a)))?!1:this.Va.Us,l=a.isBumper(),
m=this.Va,n=P.g()||!1,q=P.g(),d=ft(f,a.D,d,l,m,e);d.A=k;d.Sa=m.WR;d.oa=n;d.ha=!0;d.fa=q;d.J=m.Ts;d.ra=m.Vs;d.sa=m.XR;d.ca=0;m.Ts&&(d.fh=""+Aa("Visit Advertiser"))}else Tr(a)?(k=a.D,m=a.isBumper(),!E(g.F(k))&&null!==d&&0<kp(d)&&(f=!0),d=ft(f,k,d,m,this.Va,e),d.ba=f?Dea:Cea):(k=a.isBumper(),d=ft(f,a.D,d,k,this.Va,e),d.F=!1,d.D=!1,d.o=!1);Hm(Fm(),420706069)&&(P.D=!0);!P.g()&&P.D&&(d.O=!0);e=d;f=this.Qa.pk();null===f?f=window.document.body:g.me(f);k=this.ma();m=1E3*k.getDuration();n=k.getExtension("why_this_ad");
q=k.getExtension("mute");e.K=new $s(n,q);at(e.K)&&(q=null!=n?n.B:void 0,n="<span class='videoAdUiAdSettingsShortTooltip'>",q?n+=Q(q):(q=Aa("Click for Ad Settings"),n+=q),n=Ho(n+"</span>"),e.pe=n);this.Ha=new eu(e,f,m,k.Ue());f=k.D;null!=f&&Ax(this,f,e.sa);e=this.Ha;e.ba&&(e=e.ba,f=0==this.D,e.g!=f&&(e.g=f,kt(e)));this.da&&(f=a.getExtension("AdSense"),null!=f?(e=this.Ha,f=g.F(f.A),null!=e.M&&(g.O(e.M,!0),f=new g.Ll(f),f=Ia((f.o+f.A).replace(/^www\./i,""),35),E(g.F(f))?iu(e):g.ye(e.M,f)),null!=e.fa&&
g.O(e.fa,!0)):iu(this.Ha));e=[];d.D&&e.push("adAttribution");d.o&&e.push("countdown")}else d&&Ax(this,d,this.Va.kp);if(d=this.Ea)this.Fs(a),d.Yn(Gga(this,a)),d.load(b,c)};
g.h.Iu=function(a){var b=this.yb()?this.ma().D:null;if(b){var c=this.lk();yx(this)&&a&&(c=Qga(this,c,a));a=this.kk();c||a||!yx(this)||(c=" ");(c||a)&&this.Ea.Aq(b,c||null,a||null)}};
g.h.CQ=function(a,b,c){null!==a.M&&Ln(In.getInstance(),34,{evt:"filled"},!0);this.ca||(this.ca=!0,this.la("contentPauseRequested"));this.EI(a,b,c);this.G=!0;this.setVolume(this.D);this.Ha&&(E(g.F(Dx(a)))?(b=this.Ha,null!=b.C&&(b.A.za(b.C,"click",b.uo),g.bh(b.C,"cursor","default"))):(b=this.Ha,null!=b.C&&(b.A.X(b.C,"click",b.uo),null!=b.G&&!g.xh(b.G)&&g.bh(b.C,"cursor","pointer"))),b=a.g.Za,g.fb(b)||hu(this.Ha,b),this.Ha.show());this.Ga("show_ad");this.Qa.rg();try{this.rd(a)}catch(d){Jx(this,w3,d);
return}Gx(this);Tw("pi");if(b=null!=this.Ha)b=this.Ha,b=dn()?!1:null!=b.g.M?b.g.G&&b.g.M==bs(a):b.g.G;b?Fga(this):this.V.show(this.Qa.pk(),(0,g.A)(this.Ea.play,this.Ea))};
g.h.Fs=function(a){this.B.Hb(a,this.Ea,this.Qa.Tp(),this.Ha);this.Xa().X(this.B,"engagedview urlNavigationRequested videoAuthorIconClicked videoAuthorClicked videoClicked videoIconClicked videoLearnMoreClicked videoMuteClicked videoShareClicked videoShareShown videoTitleClicked videoUnmuteClicked start".split(" "),this.aA);this.Xa().X(this.Ea,"loaded",this.eQ);this.Xa().X(this.Ea,"cardsStateChange",this.OH);this.Xa().X(this.Ea,"timeUpdate",this.eA);this.Xa().X(this.Ea,"volumeChange",this.RH);this.Xa().X(this.Ea,
"shareClicked",this.NA);this.yg(a);var b=cq(a,this.Ea);this.Sb.g=b;b=a.g;null!=b&&b instanceof rp&&(this.Vf(b,t3),this.zj(b),b=this.Xa(),em(b,this.B,"error",this.PH,!1,this),em(b,this.B,"mediaLoadTimeout",this.QH,!1,this));Au(this,a);a.isSkippable()&&(this.B.K=30)};
g.h.tj=function(){this.la("loaded");this.dispatchEvent(new uw(this.ma()))};
g.h.skip=function(){this.yb()&&this.ma().isSkippable()&&(null!=this.Ha?this.Ha.skip():(this.Ga("skip"),Qx(this)))};
g.h.OA=function(){xu(this,"skipshown")};
g.h.start=function(){sx.aa.start.call(this);this.M=[];try{var a=this.ma();this.A=Fx(this,a);Gx(this);Tw("am");tx(this,(0,g.A)(sx.prototype.CQ,this,a,this.A.o,this.A.g))}catch(b){Ix(this,b),this.il(),this.yb()?(an(this,Kx,b),this.start()):(this.G?an(this,Kx,b):(null!=this.Gd&&this.Gd.rd(yA()),bn(this,Kx,b)),this.stop())}};
g.h.getVolume=function(){zu(this);return this.Ea.cj()?0:this.Ea.getVolume()};
g.h.setVolume=function(a){zu(this);this.G?this.Ea.setVolume(a):this.D=a};
g.h.pause=function(){zu(this);this.g?this.g.pause():this.Ea.pause();if(null!=this.o){var a=this.o;a.o.enabled&&a.o.stop();a.g=[]}};
g.h.resume=function(){zu(this);this.g?this.g.play():this.Ea.play();null!=this.o&&Vw(this.o)};
g.h.getCurrentTime=function(){zu(this);var a=this.g?this.g.A:0;return this.Ea.getCurrentTime()+a};
g.h.getDuration=function(){zu(this);var a=this.yb()?Es(this.ma()):0;return this.Ea.getDuration()+a};
g.h.Nc=function(){zu(this);var a=this.getDuration(),b=this.getCurrentTime();return 0<=a&&0<=b?Math.max(0,a-b):-1};
g.h.Be=function(){return this.Ea.Be()};
g.h.PH=function(){Jx(this,Kx,Zm(Kx,this.Ea.getError()))};
g.h.QH=function(){Kga(this);Jx(this,x3,Zm(x3,null,(this.Va.cf/1E3).toString()))};
g.h.ms=function(a,b){sx.aa.ms.call(this,a,b);Mx(this,a)};
g.h.aA=function(a){switch(a.type){case "start":Tw("ff");this.la("start");P.g()&&P.A&&this.ma()&&this.ma().J&&this.la("youtubeKevlarCompanionShow");this.fj();null!=this.o&&(g.Ke(this.o),this.o=null);Hm(Fm(),420706029)&&(P.ca=5E3);!Hm(Fm(),420706025)&&!Hm(Fm(),420706029)||P.g()||(this.o=new Uw(this),Vw(this.o));this.K=!0;this.Ha&&(P.D&&!P.g()&&(this.Ha.Vb=!0),lu(this.Ha));break;case "impression":this.la("impression");break;case "viewable_impression":this.la("viewable_impression");break;case "why_this_ad_url":this.fa=
this.Ea.Xh();Hx(this,"why_this_ad_url");this.pause();break;case "pause":this.la("pause");break;case "why_this_ad_got_it":Hx(this,"why_this_ad_got_it");this.fa||this.resume();break;case "resume":this.la("resume");break;case "firstquartile":this.la("firstquartile");break;case "midpoint":this.la("midpoint");break;case "thirdquartile":this.la("thirdquartile");break;case "complete":this.Ha&&fu(this.Ha,"complete",this.getCurrentTime(),ws(this.ma()));Ega(this)||(this.la("complete"),this.Ga("instreamAdComplete"),
vx(this));break;case "click":this.Ha&&this.Ha.g.A?this.Ea.Xh()?this.resume():this.pause():Lx(this);break;case "engagedview":Nx(this);this.la("engagedview");break;case "urlNavigationRequested":this.dispatchEvent(a);break;case "videoAuthorIconClicked":Sx(this);break;case "videoAuthorClicked":Sx(this);break;case "videoClicked":this.la("videoClicked");break;case "videoIconClicked":this.dispatchEvent(a);break;case "videoLearnMoreClicked":this.g&&!this.F&&(this.F=!0,xu(this,"video_card_endcap_action"));
!P.g()&&Nx(this);Lx(this);this.Ea.pause();break;case "videoShareClicked":Mga(this);break;case "videoShareShown":Nga(this);break;case "videoTitleClicked":Oga(this);break;case "videoMuteClicked":this.ba=this.D;this.setVolume(0);break;case "videoUnmuteClicked":this.setVolume(this.ba);break;case "skipshown":this.la("skippableStateChanged");break;case "skip":this.Ha&&fu(this.Ha,"skip",this.getCurrentTime(),ws(this.ma()));this.g?this.Qv():Qx(this);break;case "MUTE_AD":this.la("MUTE_AD"),tx(this,function(){vx(this)})}};
g.h.jf=function(){sx.aa.jf.call(this);this.Ha&&fu(this.Ha,"abandon",this.getCurrentTime(),ws(this.ma()));this.C&&(g.Ke(this.C),this.C=null)};
g.h.NA=function(){var a=Ox(this)||Px(this);null!=a&&Sm(a,"sharebuttonclicked")};
g.h.yg=function(a){sx.aa.yg.call(this,a);Mx(this,"impression")};
g.h.Vf=function(a,b){sx.aa.Vf.call(this,a,b);(0,g.H)(b,function(a){Mx(this,a)},this)};
g.h.zj=function(a){sx.aa.zj.call(this,a);a instanceof rp&&(a=sp(a),(0,g.H)(a.Cb(),function(a){Mx(this,a)},this))};
g.h.Ti=function(){if(!this.yb())return null;try{var a=this.ma();if(null==a)return null;var b=Fx(this,a);return null!=b?b.o:null}catch(c){return null}};
g.h.Vg=function(){if(!this.yb())return null;var a=this.ma();if(!wu(a))throw Zm(Ex);a=a.g.Ug();return g.fb(a)?null:a[0].o};
g.h.eQ=function(){this.la("adCanPlay")};
g.h.OH=function(){var a=this.Ha;null!=a.o&&g.S(a.o,"ytp-iv-drawer-open",this.Ea.Vw())};
g.h.eA=function(){var a=this.getDuration();zu(this);var b=this.g?this.getDuration():this.Ea.ew();var c=this.getCurrentTime(),d=0,e=0;this.yb()&&(e=this.ma(),d=e.C.g,e=e.C.Yf);if(null!=this.Ha&&0<=a&&0<=c){if(!this.P&&3==this.ma().Ra){var f=this.Ea.getDuration(),k=ws(this.ma()),f=Math.abs(f-k);2<f&&(f=Zm(kpa,null,Number(f).toFixed(2)),f=bq(f,this.ma(),this.Ea),k=Vr(this.ma()),Vm(k,f));this.P=!0}this.Ha.update(c,b,a,d,e)}};
g.h.RH=function(){var a=this.Ea.getVolume();if(a!=this.D&&(this.D=a,this.la("volumeChange",{volume:a}),0==a&&this.la("mute"),this.Ha)){var b=this.Ha;b.ba&&(b=b.ba,a=0==a,b.g!=a&&(b.g=a,kt(b)))}};
g.h.ZQ=function(a){var b=this.yb()&&sfa(this.ma());return!a||E(g.F(a.channelId))||!a.isListed&&!b?Pf():new g.Kf(function(b,d){pga(a.channelId,function(a){a=new to(a);b(a)},function(){d()},this)},this)};
g.h.NF=function(a){var b=Fm().g,c=this.ma();if((g.fb(Xr(c))||!Xr(c)[0].B)&&!b.g("website_actions_holdback")&&P.g()&&Is(c)){var d=mfa(c,a);if(d){as(c,[d]);P.A&&b.g("show_kevlar_companion_on_video_ad_start")&&this.K&&c.J&&this.la("youtubeKevlarCompanionShow");try{this.rd(c)}catch(n){Jx(this,w3,n)}}}if(d=this.Ha)var d=this.ma(),e=d.P,d=P.g()&&g.fb(Xr(d))&&null!=d.ka&&null!=e&&e.isListed;P.A&&(d=d&&!c.J);if(d){this.Xa().X(window,"message",this.yG);var d=this.ma(),e=d.ka.channelId,f=gq(d),k=this.Va.contentId,
l=this.Va.Ei,l=new g.Ll((null!=l?l:"//www.youtube.com/")+"ad_companion"),m=l.g;m.set("adformat",f);m.set("p",e);m.set("render","video_wall_companion");k&&m.set("content",k);e=new yp("1",new g.Pd(300,250),"IFrame",null,l.toString());e.J=d;e.D=!0;d=new Iq(e,[],null,!0);P.A?(P.g()&&P.A&&"IFrame"===d.g.O&&(e=d.an(),c.J={iframeCompanionRenderer:{width:e.width,height:e.height,url:d.g.A}}),b.g("show_kevlar_companion_on_video_ad_start")&&this.K&&c.J&&this.la("youtubeKevlarCompanionShow")):us(c,d);this.rd(c)}xs(c)||
b.g("website_actions_holdback")||b.g("website_actions_endcap_holdback")||!Is(c)||kfa(c,a);return a};
g.h.yG=function(a){var b=a.g;if("companion-setup-complete"==b.data){a=this.ma();var c=(0,window.encodeURIComponent)(g.F($r(a)))+","+(0,window.encodeURIComponent)((Ox(this)||Px(this)).toString());b.source.postMessage(c,"*");b=b.source.frameElement;b.parentNode.style.cssText="";b.width=370;b.height=null!=$r(a)?210:185}else"pause-video"==b.data&&this.pause()};
g.h.uR=function(a){if(null!=this.Ha&&a.isListed){var b=this.Ha,c=a.title;b.g.P=!E(g.F(c));b.g.title=c;null!=b.J&&g.ye(b.J,b.g.title);du(b);b=this.Ha;null!=b.ob?g.ye(b.ob,""+Aa("Share")):null!=b.P&&g.ye(b.P,""+Aa("Share"));b=this.Ha;c=a.Uf;null!=c&&(b.g.Uf=c);du(b)}this.yb()&&(this.ma().P=a,this.la("youTubeVideoMetadata"));return a};
g.h.tR=function(a){if(null!=this.Ha&&Rx(this)){var b=this.Ha,c=a.authorName;b.g.Fa=!E(g.F(c));b.g.authorName=c;null!=b.D&&(c=Aa("by {$userDisplayName}",{userDisplayName:""+b.g.authorName}),g.ye(b.D,(new xo(""+c,void 0)).gd()));du(b);b=this.Ha;c=a.channelIconThumbnailUrl;b.g.ua=!E(g.F(c));if(null!=b.V){var d=g.ie("img");d.setAttribute("src",c);g.R(d,"videoAdUiAuthorIconImage");b.V.appendChild(d);null!=b.J&&g.R(b.J,"videoAdUiTitleWithAuthorIcon");null!=b.D&&g.R(b.D,"videoAdUiAuthorNameWithAuthorIcon")}du(b)}this.yb()&&
(this.ma().ka=a,this.la("youTubeChannelMetadata"));return a};
g.h.Ab=function(a,b,c){sx.aa.Ab.call(this,a,b,c);null!=this.Ha&&this.Ha.Ab()};g.C(Tx,g.qf);Tx.prototype.g=!1;Tx.prototype.connect=function(){for(this.g=!0;!g.fb(this.o);){var a=this.o.shift();this.sendMessage(a.name,a.type,a.data)}};
Tx.prototype.isConnected=function(){return this.g};
Tx.prototype.send=function(a,b,c){this.g?this.sendMessage(a,b,c):this.o.push({name:a,type:b,data:c})};
g.C(Ux,g.Me);Ux.prototype.getOrigin=function(){return this.A};
Ux.prototype.toString=function(){return""};g.C(Vx,Tx);Vx.prototype.sendMessage=function(a,b,c){null!=this.kf&&null!=this.kf.postMessage&&this.kf.postMessage(Rga(this,a,b,c),"*");null!=this.kf&&null==this.kf.postMessage&&Ln(In.getInstance(),11)};
Vx.prototype.W=function(){this.B.dispose();Vx.aa.W.call(this)};
Vx.prototype.receive=function(a){a=a.g;var b=Wx(a.data);if(Xx(this,b)){if(null==this.kf)this.kf=a.source,this.isConnected()||this.connect();else if(this.kf!=a.source)return;Xx(this,b)&&this.dispatchEvent(new Ux(b.name,b.type,b.data||{},b.sid,a.origin))}};g.C(Yx,g.Me);g.C(Zx,qu);g.h=Zx.prototype;
g.h.init=function(a){Zx.aa.init.call(this,a);this.V=g.fg(this.SH,this.Va.cf,this);this.Xa().X(window,"message",this.jQ);this.Xa().X(this.J,"tick",this.GQ);a=P.o?io():Rn();this.Xa().X(a,u3,this.uj);if(cy())this.dispatchEvent(new Yx(0,this.C));else{a=Fs(this.ma());if(/\.html(\?.*)?$/.test(a)){if(a.match("//s0.2mdn.net/instream/html5/survey/survey.html")){var b="en".replace("-","_");a=a.replace(".html","_"+b+".html");null!=this.Va.contentId&&(a=Ig(a,"v",this.Va.contentId));P.g()&&(b=Gg(a,"st"),b=Uga(this,
b?b+" yt":"yt"),a=Ig(a,"st",b))}a=g.F(a)}else{var b=new g.Ll(a),c=new g.Ll("http://tpc.googlesyndication.com/pagead/js/loader13.html");"https"==b.B&&Ml(c,"https");this.ba=b.o;a=Ql(c,a||"",void 0).toString()}this.A=g.ge("IFRAME",{src:Om(a),allowFullscreen:!0,allowtransparency:!0,background:"transparent",style:"border:0; opacity:1; margin:0; overflow:hidden;padding:0; width:100%; height:100%;position: absolute;display:none;"});this.Xa().X(this.A,"load",this.PF);this.Qa.Cf().appendChild(this.A)}};
g.h.Qc=function(a,b,c){Zx.aa.Qc.call(this,a,b,c);this.o=this.ma().g instanceof rp;this.g=a.Xm(!1);cy()||(this.Xa().X(this.g,"click end error loaded mediaLoadTimeout pause play timeUpdate volumeChange".split(" "),this.hP),this.Xa().X(this.g,Uz,this.ZM))};
g.h.stop=function(){this.J.stop();this.Qa.hide();Zx.aa.stop.call(this)};
g.h.Wb=function(){return 1==this.o};
g.h.start=function(){Zx.aa.start.call(this);if(!P.g()){var a={};a.pid=Rw.getInstance().o;a.dn=this.ba;a["if"]=cy();Ln(In.getInstance(),29,a,!0)}a=this.ma();this.Sb.B=a.K;var b=cq(a,this.g);this.Sb.g=b;if(b=a.g)this.yg(a),this.Vf(b,t3),this.zj(b),Au(this,a);this.g.Hb();this.Ga("show_ad");this.Qa.nd();Cu(this);null!=this.A&&(this.A.style.display="block");this.g.setVolume(this.B);this.da=!0;this.o&&this.la("contentPauseRequested");fy(this)};
g.h.Ab=function(a,b,c){Zx.aa.Ab.call(this,a,b,c);by(this,"resizeAd",{width:a,height:b,viewMode:c})};
g.h.pause=function(){this.D||by(this,"pauseAd")};
g.h.resume=function(){this.D&&(by(this,"resumeAd"),hy(this,"play"))};
g.h.setVolume=function(a){this.B=a;Zx.aa.setVolume.call(this,a);by(this,"setAdVolume",{value:a})};
g.h.W=function(){cy()&&this.dispatchEvent(new Yx(0,this.C));g.pe(this.A);this.o&&(!this.O||this.g.Xh()||this.g.ah()||this.g.pause(),this.la("contentResumeRequested"));this.la("allAdsCompleted");this.Sc=!1;this.G=[];g.gg(this.V);this.J.dispose();Zx.aa.W.call(this)};
g.h.tj=function(){};
g.h.PF=function(){if(!cy()){var a=this.g.Zp();g.fb(a)&&(a=this.Va.mimeTypes);by(this,"wrapperCall",{messageType:"supportedMimeTypes",supportedMimeTypes:a})}ay(this)};
var Tga={use_fast_fade_in_0s:"ffi-0",use_fast_fade_in_1s:"ffi-1",use_new_style:"new",hide_preskip:"nps",use_sound:"snd",hide_progress_bar:"npb",use_skip_in_10s:"skip-10",use_skip_in_15s:"skip-15",use_skip_in_20s:"skip-20",use_survey_length_15s:"time-15",use_survey_length_45s:"time-45",use_skip_in_0s:"sec-0",use_survey_length_unlimited:"time-ul",hide_advertisement_text:"nat",use_skip_survey_text:"skip_survey",show_interstitial_white:"intr-white",show_interstitial_blue:"intr-blue",show_interstitial_for_3s:"intr-time-3",
show_interstitial_for_5s:"intr-time-5",show_interstitial_close_icon:"intr-close-icon",set_interstitial_survey_text:"intr-txt-survey",set_interstitial_question_text:"intr-txt-question"};g.h=Zx.prototype;g.h.jQ=function(a){a=a.g;if(cy()){if(a=Wx(a.data),null!=a){try{var b=g.jg(a.data)}catch(c){return}null!=b&&b.session==this.C&&gy(this,b)}}else if(a.source==this.A.contentWindow){try{b=g.jg(a.data)}catch(c){return}b.session==this.C&&gy(this,b)}};
g.h.SH=function(){dy(this,x3,null,(this.Va.cf/1E3).toString());this.stop()};
g.h.hP=function(a){switch(a.type){case "timeUpdate":a=this.g.getDuration();var b=this.g.getCurrentTime();$x(this,"wrapperCall",{messageType:"timeupdate",duration:a,currentTime:b});break;case "end":hy(this,"ended");break;case "loaded":hy(this,"loadstart");break;case "mediaLoadTimeout":hy(this,"stalled");break;case "play":hy(this,"playing");break;default:hy(this,a.type)}};
g.h.ZM=function(a){a=a.type;"loadedmetadata"==a?(a=this.g.getDuration(),$x(this,"wrapperCall",{messageType:"loadedmetadata",duration:a})):hy(this,a)};
g.h.getCurrentTime=function(){return-1==this.getDuration()||-1==this.Nc()?-1:this.getDuration()-this.Nc()};
g.h.getDuration=function(){return this.F};
g.h.Nc=function(){return this.K};
g.h.xb=function(){return!this.D};
g.h.GQ=function(){by(this,"getAdRemainingTime")};g.C(iy,qu);g.h=iy.prototype;g.h.lk=function(){return this.Kc()?this.g.lk():""};
g.h.kk=function(){return this.Kc()?this.g.kk():""};
g.h.Se=function(){return this.Kc()?this.g.Se():null};
g.h.ma=function(){if(this.g)return this.g.Se();throw Zm(yu,null,"Proxied ads manager not available.\n"+Error().stack);};
g.h.yb=function(){return null!=this.g&&null!=this.g.Se()};
g.h.vk=function(){return!1};
g.h.Te=function(){return null};
g.h.Wn=function(){this.yb()&&(this.ads=[this.ma()],this.Uc=this.ma())};
g.h.destroy=function(){this.g&&(this.g.destroy(),this.g=null);iy.aa.destroy.call(this)};
g.h.Kb=function(){return this.g?this.g.Kb():null};
g.h.fj=function(){this.F=!0;this.g&&this.g.fj()};
g.h.init=function(a){this.Bc(a);this.Kc()&&this.g.init(a)};
g.h.Qc=function(a,b,c){a&&a instanceof qm&&(a=a.g);iy.aa.Qc.call(this,a,b,c);ky(this,a,b,c)};
g.h.W=function(){this.la("allAdsCompleted");ly(this);iy.aa.W.call(this)};
g.h.getCurrentTime=function(){return this.Kc()?this.g.getCurrentTime():-1};
g.h.getDuration=function(){return this.Kc()?this.g.getDuration():-1};
g.h.Nc=function(){return this.Kc()?this.g.Nc():-1};
g.h.Ab=function(a,b,c){this.Ud=a;this.Td=b;this.Bc(c);this.Kc()&&this.g.Ab(a,b,c)};
g.h.pause=function(){this.Kc()&&this.g.pause()};
g.h.resume=function(){this.Kc()&&this.g.resume()};
g.h.skip=function(){this.Kc()&&this.g.skip()};
g.h.muteAd=function(){this.Kc()&&this.g.muteAd()};
g.h.whyThisAdClicked=function(){this.Kc()&&this.g.whyThisAdClicked()};
g.h.whyThisAdClosed=function(){this.Kc()&&this.g.whyThisAdClosed()};
g.h.start=function(){if(this.Kc()){var a=this.g,b=this.Qa;a&&b&&(null!=a&&a instanceof sx?b.rg():null!=a&&a instanceof Zx?(b.nd(),b.rg()):null!=a&&(a instanceof ow||a instanceof iw)&&b.nd());null!=this.volume&&!(0,window.isNaN)(this.volume)&&this.g.setVolume(this.volume);this.g.start()}};
g.h.stop=function(){this.Kb()&&this.Kb().Wb()&&this.la("contentResumeRequested");this.destroy()};
g.h.getVolume=function(){return this.Kc()?this.g.getVolume():0};
g.h.setVolume=function(a){a=(0,window.isNaN)(a)||0>a?0:a;iy.aa.setVolume.call(this,a);this.Kc()&&this.g.setVolume(a)};
g.h.Bc=function(a){iy.aa.Bc.call(this,a);this.g&&this.g.Bc(a)};
g.h.Be=function(){return this.g?this.g.Be():null};
g.h.jf=function(){this.g&&this.g.jf()};
g.h.Bk=function(a){return this.g?this.g.Bk(a):!1};
g.h.Ak=function(){return this.g?this.g.Ak():!1};
g.h.Ti=function(){return this.g?this.g.Ti():null};
g.h.mz=function(a){this.dispatchEvent(a)};
g.h.vz=function(a){this.dispatchEvent(a)};
g.h.Sr=function(a){this.dispatchEvent(a)};
g.h.zg=function(a){iy.aa.zg.call(this,a);this.g&&this.g.zg(a)};
g.h.ki=function(){this.la("userClose")};
g.h.ji=function(){this.la("autoClose")};
g.h.Rf=function(a){this.g&&this.g instanceof iw&&this.g.Rf(a)};
g.h.Kc=function(){return null!=this.g&&this.g.Kc()};g.C(ny,iy);g.h=ny.prototype;g.h.Kb=function(){return this.A};
g.h.dispatchEvent=function(a){if(a instanceof sm){if("loaded"==a.type&&this.C)return a.stopPropagation(),!1;"loaded"==a.type&&(this.C=!0)}return ny.aa.dispatchEvent.call(this,a)};
g.h.vk=function(){return null!=ls(this.A)&&ls(this.A).Ff()};
g.h.mz=function(a){if(this.B)this.dispatchEvent(a);else{var b=a.getError()||Zm(Kx);a=a.target.Kb();ks(a);py(this,ls(a),Error(b.ud()))}};
g.h.Sr=function(a){this.B&&(ny.aa.Sr.call(this,a),this.destroy())};
g.h.vz=function(a){this.D||(this.D=!0,this.dispatchEvent(a))};
g.h.lM=function(){this.o&&this.o.dispose();this.B=!0};g.C(qy,qu);g.h=qy.prototype;g.h.lk=function(){return this.g?this.g.lk():""};
g.h.kk=function(){return this.g?this.g.kk():""};
g.h.Se=function(){return this.g?this.g.Se():null};
g.h.ma=function(){if(this.g)return this.g.Se();throw Zm(yu,null,"Current ads manager not available.\n"+Error().stack);};
g.h.yb=function(){return null!=this.g&&null!=this.g.Se()};
g.h.vk=function(){return this.A+1<this.o.length};
g.h.Te=function(){return this.vk()?this.o[this.A+1].Se():null};
g.h.Wn=function(){this.yb()&&(this.ads=[this.ma()],this.Uc=this.ma())};
g.h.Xa=function(){};
g.h.destroy=function(){this.g&&this.g.destroy();qy.aa.destroy.call(this)};
g.h.Kb=function(){return this.g?this.g.Kb():null};
g.h.fj=function(){this.g&&this.g.fj()};
g.h.init=function(a){this.Bc(a);this.g&&this.g.init(a)};
g.h.Qc=function(a,b,c){a&&a instanceof qm&&(a=a.g);qy.aa.Qc.call(this,a,b,c);ry(this,a,b,c)};
g.h.W=function(){(0,g.H)(this.o,function(a){a!==this.g&&a.destroy()},this);
uy(this);this.D&&(this.D.dispose(),this.D=null);this.B&&(this.B.destroy(),this.B=null);this.la("allAdsCompleted");qy.aa.W.call(this)};
g.h.getCurrentTime=function(){return this.g?this.g.getCurrentTime():-1};
g.h.getDuration=function(){return this.g?this.g.getDuration():-1};
g.h.Nc=function(){return this.g?this.g.Nc():-1};
g.h.Ab=function(a,b,c){this.Ud=a;this.Td=b;this.Bc(c);this.g&&this.g.Ab(a,b,c)};
g.h.pause=function(){this.g&&this.g.pause()};
g.h.resume=function(){this.g&&this.g.resume()};
g.h.skip=function(){this.g&&this.g.skip()};
g.h.muteAd=function(){this.g&&this.g.muteAd()};
g.h.whyThisAdClicked=function(){this.g&&this.g.whyThisAdClicked()};
g.h.whyThisAdClosed=function(){this.g&&this.g.whyThisAdClosed()};
g.h.start=function(){if(this.g){var a=this.g,b=this.Qa;a&&b&&(null!=a&&a instanceof sx?b.rg():null!=a&&a instanceof Zx?(b.nd(),b.rg()):null!=a&&(a instanceof ow||a instanceof iw)&&b.nd());null!=this.volume&&!(0,window.isNaN)(this.volume)&&this.g.setVolume(this.volume);this.g.start()}};
g.h.Me=function(a){qy.aa.Me.call(this,a);null!=this.g&&this.g.Me(a);null!=this.B&&this.B.Me(a);(0,g.H)(this.o,function(b){b.Me(a)})};
g.h.stop=function(){this.destroy();this.la("contentResumeRequested")};
g.h.getVolume=function(){return this.g?this.g.getVolume():0};
g.h.setVolume=function(a){a=(0,window.isNaN)(a)||0>a?0:a;qy.aa.setVolume.call(this,a);this.g&&this.g.setVolume(a)};
g.h.Bc=function(a){qy.aa.Bc.call(this,a);this.g&&this.g.Bc(a)};
g.h.Be=function(){return this.g?this.g.Be():null};
g.h.jf=function(){this.g&&this.g.jf()};
g.h.Bk=function(a){return this.g?this.g.Bk(a):!1};
g.h.Ak=function(){return this.g?this.g.Ak():!1};
g.h.Ti=function(){return this.g?this.g.Ti():null};
g.h.kM=function(a){var b=a.getError()||Zm(Kx);ty(this,a.target,b)};
g.h.oh=function(){this.F||(this.la("contentPauseRequested"),this.F=!0)};
g.h.Qf=function(a){sy(this,a.target)};
g.h.MH=function(){};
g.h.zg=function(a){(0,g.H)(this.o,function(b){b.zg(a)},this)};
g.h.ki=function(){this.la("userClose")};
g.h.ji=function(){this.la("autoClose")};
g.h.Rf=function(a){this.g&&this.g instanceof iw&&this.g.Rf(a)};g.C(vy,g.M);g.h=vy.prototype;g.h.wk=!1;g.h.Uw=1E3;g.h.Hx=30;g.h.Ix=45E3;g.h.tA=15E3;g.h.yB=!1;g.h.Dp=function(){var a=wy(this);this.g.appendChild(this.K);yy(this.K);this.play();return a};
g.h.pa=function(){null==this.O&&(this.O=this.Dp());return this.O};
g.h.play=function(){null==this.o&&(this.o=g.fg(function(){this.wk||(this.hide(),this.yB=!0);this.o=null},this.yB?this.tA:this.Ix,this))};
g.h.stop=function(){null!=this.o&&(g.gg(this.o),this.o=null)};
g.h.show=function(){g.wh(this.pa(),1);null!=this.A&&(g.gg(this.A),this.A=null)};
g.h.hide=function(){g.wh(this.pa(),this.Hx/100);null==this.A&&(this.A=g.fg(function(){this.ba();this.A=null},400,this))};
g.h.xH=function(){this.show();this.wk=!0;this.D=g.fg(function(){this.wk&&this.stop();this.D=null},this.Uw,this)};
g.h.PR=function(){null!=this.D&&(g.gg(this.D),this.D=null);this.wk&&this.play();this.wk=!1};
g.h.W=function(){vy.aa.W.call(this);this.stop();g.Ke(this.Ef)};g.C(zy,qu);g.h=zy.prototype;g.h.start=function(){zy.aa.start.call(this);this.Qa.nd();this.containerElement=this.Qa.Cf();if(null!=this.containerElement){this.Ga("show_ad");g.me(this.containerElement);var a=this.Wu(),b=this.yb()?this.ma().g.Gc():a,c;P.o?c=io():c=Rn();c.Fj(b);this.containerElement.appendChild(a);this.Wl();(0,g.H)(this.F,function(a){a()});
gb(this.F);this.B=!0}};
g.h.init=function(a){zy.aa.init.call(this,a);var b;P.o?b=io():b=Rn();this.Xa().X(b,u3,this.uj)};
g.h.expand=function(){null!=this.g&&this.g.show();this.Ga("expand")};
g.h.collapse=function(){null!=this.g&&this.g.hide();this.Ga("collapse")};
g.h.Ab=function(a,b,c){zy.aa.Ab.call(this,a,b,c);this.Wl();this.B&&this.Ga("overlay_resize")};
g.h.W=function(){g.Ke(this.g);this.Qa=this.g=null;this.B=!1;P.o?io().Fj(null):Rn().Fj(null);null!=this.containerElement&&(g.me(this.containerElement),this.containerElement=null);zy.aa.W.call(this)};
g.h.Wu=function(){var a=this.ma().g;if(null==a)throw a=Zm(NB),By(this,a),a;var b=this.ma();Bp(a,this.Xa());zp(a,this.NH);a.D||Ap(a,g.ya(this.oq,b,a));try{this.rd(b)}catch(d){throw By(this,d),d;}this.yg(b);var c=cq(b,this.Ea);this.Sb.g=c;b.g&&(this.yg(b),c=b.g)&&(this.Vf(c,cpa),Au(this,b));this.Vf(a,["start"]);Ay(this,a);return this.Ml([a.Gc()])};
g.h.Tw=function(a,b){return new vy(a[0],b)};
g.h.Ml=function(a){null!=this.g&&this.g.stop();this.g=this.Tw(a,(0,g.A)(this.wm,this));a=this.g.pa();g.S(a,"autoalign",this.Va.Ru);P.g()&&g.S(a,"viewmode-fullscreen","fullscreen"==this.Xc);a.appendChild(this.K);this.Xa().X(a,"click",Ne);(this.yb()&&vs(this.ma())||this.Va.tB)&&this.np(this.g.g);return a};
g.h.np=function(a){var b=this.Xa();this.D=Op(Zga);b.X(this.D,"click",this.QG);var c=Aa("Close"),c=Op(Yga,{close:""+c});b.X(c,"click",this.Sm);g.R(a,"extra-padding");null!=this.M&&728<=this.M.Eb()&&g.R(a,"wide-overlay-ad");a.appendChild(c)};
g.h.Wl=function(a,b){if(null!=this.g){var c=a?a:0,d=b?b:0,e=g.uh(this.Qa.Cf());var f=P.g()?g.uh(g.ue(this.g.g)):g.uh(this.g.g);if(f.width+c>e.width||f.height+d>e.height)throw c=Zm(hpa,null),By(this,c),d={},this.ads[0].A&&(d.pid=Rw.getInstance().o),d.cz=f.width+"x"+f.height,d.sz=e.width+"x"+e.height,d.ct=this.ma().g.hd(),d.vm=this.Xc,Ln(In.getInstance(),38,d,!0),this.stop(),c;}};
g.h.NH=function(a){xu(this,"click");Ne(a)};
g.h.Sm=function(){this.Ga("close");this.wm(!0)};
g.h.oq=function(a,b){Ap(b,g.y);this.B?this.dl(a,b):this.F.push((0,g.A)(this.dl,this,a,b))};
g.h.dl=function(a){a=cq(a,this.Ea);this.Sb.g=a;xu(this,"impression");this.Ga("creativeview");xu(this,"start")};
g.h.wm=function(a){null!=this.g&&(this.g.stop(),null!=this.D&&g.qe(this.D,this.g.g),a?this.la("userClose"):this.la("autoClose"))};
g.h.QG=function(a){Ne(a);this.g.show();this.g.play();g.qe(this.g.g,this.D);g.fg(function(){g.O(this.K,!1)},500,this);
g.O(this.K,!0);this.la("userRecall")};
g.h.uj=function(a){this.yb()&&this.ma().K==a.g.queryId&&zy.aa.uj.call(this,a)};g.C(Cy,g.qf);g.h=Cy.prototype;g.h.init=function(a,b,c){Dy(this,a,b,c);null==this.K&&(this.K=new g.dm(this),em(this.K,this.ib,"adsLoaderSdkAdError",this.hM,!1,this));Ky(this)};
g.h.start=function(){this.P=!0;Gy(this);0<this.A.length?Ry(this):("always"==P.B&&(null!=this.da&&this.da.rd(yA()),P.g()&&5!=this.Ue()&&this.dispatchEvent(new sm("companionBackfill",null))),$m(Ym,this,nq,void 0,void 0),0==this.Dc&&this.dispatchEvent("contentResumeRequested"),Sy(this))};
g.h.destroy=function(){null!=this.K&&(this.K.dispose(),this.K=null);My(this);Uy(this);P.B=this.ca;this.P=!1};
g.h.Kb=function(){return this.o<this.A.length?this.A[this.o].g[0]:null};
g.h.xb=function(){return this.P};
g.h.pause=function(){null!=this.g&&this.g.pause()};
g.h.resume=function(){null!=this.g&&this.g.resume()};
g.h.skip=function(){null!=this.g&&this.g.skip()};
g.h.jf=function(){null!=this.g&&this.g.jf()};
g.h.getCurrentTime=function(){return null!=this.g?this.g.getCurrentTime():-1};
g.h.getDuration=function(){return null!=this.g?this.g.getDuration():-1};
g.h.Nc=function(){return null!=this.g?this.g.Nc():-1};
g.h.setVolume=function(a){null!=a&&(this.V=a,null!=this.g&&this.g.setVolume(this.V))};
g.h.Me=function(a){this.ba=a;null!=this.g&&this.g.Me(a);null!=this.C&&this.C.Me(a)};
g.h.kz=function(a){P.B=this.ca;var b=a.F;g.fb(b)?this.J++:(a=a.D,(0,g.H)(b,g.ya(function(a,b){null!=a.A&&(b.Ta=a.A);a.isBumper&&(b.Ia=!1)},a)),this.O=cha(this,b),g.ib(this.A,new pm(b,a.isBumper,a.g)),this.J++,this.K.za(this.ib,"adsLoaderSdkAdLoaded",this.kz,!1,this));
Ky(this)};
g.h.hM=function(a){a=a.g;P.B=this.ca;a.ud();$m(Ym,this,nq,void 0,void 0);this.J++;if(!Ey(this)||2<=this.A.length-this.o)a=Ym(nq),this.dispatchEvent(new rm(a));Ky(this)};
g.h.BO=function(){My(this);Uy(this);Sy(this)};
g.h.iM=function(a){a=a.getError().Lb();try{var b={};b.ec=a;Ln(In.getInstance(),44,b)}catch(c){}this.o++;Ry(this)};
g.h.ki=function(){this.dispatchEvent("userClose")};
g.h.ji=function(){this.dispatchEvent("autoClose")};
g.h.Qf=function(){this.o++;Ry(this)};
g.h.oh=function(){this.ga||(this.dispatchEvent("contentPauseRequested"),this.ga=!0)};
g.h.Ue=function(){return g.fb(this.G)?null:this.G[0].A};
g.h.Rf=function(a){this.g instanceof iw?this.g.Rf(a):Py(this.g)&&this.g.Rf(a)};
g.h.lz=function(a){switch(a.type){case "impression":try{Ln(In.getInstance(),44,{imp:!0})}catch(c){}break;case "start":var b;if(b=this.Tf()&&Hy(this,this.o+1)&&1<Qy(this))b=a.Ob(),b=null===b||null===this.g||g.fb(this.g.ads)?!1:this.g.ads[this.g.ads.length-1]===b;b&&Jy(this,this.o+1)}"vpaidEvent"!=a.type&&eha(this,a.type,a.Ob());this.dispatchEvent(a)};
g.h.Tf=function(){if(null===this.B)var a=!1;else a=this.B,a=!(null===a||a.Ym()||P.g()||gn()||tn()||g.mn&&!on(4))&&!1;return a};g.C(Vy,fha);g.C(Yy,Mu);Yy.prototype.A=function(){return new Nu(this.g,null,hha(this))};g.C(bz,g.Me);bz.prototype.setDescription=function(){};g.C(cz,g.qf);g.C(ez,g.qf);g.h=ez.prototype;g.h.Hb=function(){this.A||(null==this.B&&(this.B=new g.dm(this)),this.B.X(this.o,"currentTimeUpdate",this.Ow,!1),this.B.X(this.o,"contentWrapperError",this.MO,!1));this.o.start();this.A=!0};
g.h.getCurrentTime=function(){return this.o.currentTime};
g.h.Vc=function(){null!=this.B&&(this.B.dispose(),this.B=null);this.o.stop();this.A=!1};
g.h.Ow=function(){if(this.A){var a=this.o.currentTime;if((0,window.isNaN)(a)||0>a)lz(this,"The currentTime is not a valid time value:"+a);else{var b=kha(this,a);this.D?(0,g.H)(b,function(a){iz(this,!0,a)},this):(0,g.H)(lha(b),function(a){iz(this,!0,a)},this);
iz(this,!1,mha(this,a));nha(this,a)}}};
g.h.MO=function(){lz(this,"There was an error while tracking the content:The content current time is invalid.")};g.C(nz,cz);nz.prototype.start=function(){this.g.start()};
nz.prototype.stop=function(){this.g.stop()};
nz.prototype.W=function(){nz.aa.W.call(this);this.A.dispose();this.g.dispose()};
nz.prototype.B=function(){if("currentTime"in this.o&&!(0,window.isNaN)(this.o.currentTime)){var a=this.currentTime;this.currentTime=this.o.currentTime;a!=this.currentTime&&this.dispatchEvent(new g.Me("currentTimeUpdate"))}else this.dispatchEvent(new g.Me("contentWrapperError")),this.stop()};g.h=pz.prototype;g.h.get=function(a){a=qz(this,a);return this.g[a]};
g.h.set=function(a,b){a=qz(this,a);this.g[a]=b};
g.h.Mc=function(){return this.g.length};
g.h.isEmpty=function(){return 0==this.g.length};
g.h.clear=function(){this.o=this.g.length=0};
g.h.fb=function(){for(var a=this.Mc(),b=this.Mc(),c=[],a=this.Mc()-a;a<b;a++)c.push(this.get(a));return c};
g.h.Cb=function(){for(var a=[],b=this.Mc(),c=0;c<b;c++)a[c]=c;return a};g.C(rz,On);g.h=rz.prototype;g.h.EA=function(a,b,c,d){if(d&&(d=g.$a(a,function(a){return null!==Sp(a.o)}),null!==d))return d;
a=(0,g.re)(a,function(a){var b=a.g;E(g.F(a.o))||"progressive"!=a.B&&"application/x-mpegurl"!=g.F(b).toLowerCase()?a=!1:(b=g.F(b).toLowerCase(),a=E(b)||on(2.3)&&Ja(b,"application/ogg")?!1:g.mn&&(Ja(b,"video/mp4")||Ja(b,"video/3gpp"))||hn()&&(Ja(b,"application/x-mpegurl")||Ja(b,"application/vnd.apple.mpegurl"))?!0:!E(this.g.canPlayType(b)));return a},this);
return oz(a,b,c)};
g.h.Zp=function(){return(0,g.re)(g.Nb(Bu),function(a){return!E(this.g.canPlayType(a))},this)};
g.h.Yn=function(a){this.ba=0<a.g?a.g:Mn()};
g.h.load=function(a){tz(this);a&&(this.g.src=a);this.g.load()};
g.h.unload=function(){tz(this);this.g.src="";this.g.load()};
g.h.getVideoUrl=function(){return this.g.src};
g.h.setVolume=function(a){this.g.volume=a;this.g.muted=0==a?!0:!1};
g.h.getVolume=function(){return this.g.volume};
g.h.play=function(){this.O=!1;this.g.play();this.J||(this.J=g.fg(this.GF,this.ba,this))};
g.h.pause=function(){this.O=!0;this.g.pause();sz(this)};
g.h.Xh=function(){return this.g.paused?hn()||g.UE?this.g.currentTime<this.g.duration:!0:!1};
g.h.cj=function(){return this.g.muted};
g.h.Bq=function(){gn()&&this.g.webkitDisplayingFullscreen&&this.g.webkitExitFullscreen()};
g.h.bj=function(){return ko(this.g)};
g.h.Zj=function(a){var b;a:{for(b=this.V.fb();b.length;){var c=b.pop();if(0<c){b=c;break a}}b=-1}return b>=a};
g.h.dj=function(a){this.g.currentTime=a};
g.h.getCurrentTime=function(){return this.g.currentTime};
g.h.ew=function(){return vz(this)};
g.h.getDuration=function(){return(0,window.isNaN)(this.g.duration)?-1:this.g.duration};
g.h.ah=function(){return this.g.ended};
g.h.Hf=function(){return new g.Pd(this.g.offsetWidth,this.g.offsetHeight)};
g.h.Ww=function(){return this.g.seeking};
g.h.W=function(){this.Vc();rz.aa.W.call(this)};
g.h.getError=function(){return null};
g.h.Hb=function(){this.Vc();this.o=new g.dm(this);this.o.X(this.g,Uz,this.KO);this.o.X(this.g,"canplay",this.IM);this.o.X(this.g,"ended",this.WH);this.o.X(this.g,"webkitbeginfullscreen",this.Eq);this.o.X(this.g,"webkitendfullscreen",this.Zw);this.o.X(this.g,"pause",this.ZH);this.o.X(this.g,"playing",this.SO);this.o.X(this.g,"timeupdate",this.aI);this.o.X(this.g,"volumechange",this.bI);this.o.X(this.g,"error",this.Yw);this.o.X(this.g,HO||hn()&&!ln(8)?"loadeddata":"canplay",this.YH);this.D=new Ms;this.o.X(this.D,
"click",this.VH);this.D.Hb(this.g);this.G=new g.dg(1E3);this.o.X(this.G,"tick",this.XH);this.G.start()};
g.h.Vc=function(){null!=this.D&&(this.D.Vc(),this.D=null);null!=this.G&&this.G.dispose();null!=this.o&&(this.o.dispose(),this.o=null);tz(this)};
g.h.KO=function(a){this.dispatchEvent(a.type)};
g.h.IM=function(){var a;if(a=ni)a=g.Gb,a=!(a&&(Ka(a,"SMART-TV")||Ka(a,"SmartTV")));a&&!this.P&&(this.dj(.001),this.P=!0)};
g.h.YH=function(){this.Sc||(this.Sc=!0,this.dispatchEvent("loaded"))};
g.h.SO=function(){this.dispatchEvent("play");hn()||HO||uz(this)};
g.h.aI=function(){if(!this.B&&(hn()||HO)){if(0>=this.getCurrentTime())return;if(HO&&this.ah()&&1==this.getDuration()){this.Yw();return}uz(this)}if(hn()||sn()){if(1.5<this.getCurrentTime()-this.A){this.F=!0;this.dj(this.A);return}this.F=!1;this.getCurrentTime()>this.A&&(this.A=this.getCurrentTime())}var a=this.V;a.g[a.o]=this.g.currentTime;a.o=(a.o+1)%a.A;this.dispatchEvent("timeUpdate")};
g.h.bI=function(){this.dispatchEvent("volumeChange")};
g.h.ZH=function(){if(this.B&&hn()&&!this.O&&(2>vz(this)-this.g.currentTime||this.F)){this.C=new g.dg(250);this.o.X(this.C,"tick",this.EM);this.C.start();var a=!0}else a=!1;a||this.dispatchEvent("pause")};
g.h.WH=function(){var a=!0;if(hn()||sn())a=this.A>=this.g.duration-1.5;!this.F&&a&&this.dispatchEvent("end")};
g.h.Eq=function(){this.dispatchEvent("beginFullscreen")};
g.h.Zw=function(){this.dispatchEvent("endFullscreen")};
g.h.Yw=function(){sz(this);this.dispatchEvent("error")};
g.h.VH=function(){this.dispatchEvent("click")};
g.h.XH=function(){var a=this.Hf(),b=this.bj();if(a.width!=this.M.width||a.height!=this.M.height)!this.K&&b?this.Eq():this.K&&!b&&this.Zw(),this.M=a,this.K=b};
g.h.GF=function(){if(!this.B){try{Ln(In.getInstance(),16)}catch(a){}tz(this);this.dispatchEvent("mediaLoadTimeout")}};
g.h.EM=function(){if(this.ah()||!this.Xh())g.Ke(this.C);else{var a=this.g.duration-this.g.currentTime,b=vz(this)-this.g.currentTime;0<b&&(2<=b||2>a)&&(g.Ke(this.C),this.play())}};g.C(xz,g.qf);var wpa=new Fl;wz.prototype.start=function(a){return this.g[a].startTime};
wz.prototype.end=function(a){return this.g[a].endTime};
g.h=xz.prototype;g.h.readyState=0;g.h.currentTime=0;g.h.duration=window.NaN;g.h.paused=!0;g.h.hx=!1;g.h.autoplay=!1;g.h.loop=!1;g.h.controls=!1;g.h.volume=1;g.h.muted=!1;g.h.src="";g.h.hI=1;g.h.playbackRate=0;g.h.Bg=null;g.h.nn=0;g.h.FQ=4;g.h.Tj=null;g.h.cn=null;
g.h.play=function(){this.hx&&(this.currentTime=0,this.dispatchEvent("timeupdate"));this.paused&&(this.paused=!1,this.dispatchEvent("play"),this.readyState=this.FQ,2>=this.readyState?this.dispatchEvent("waiting"):this.dispatchEvent("playing"));if(null===this.Bg||this.Bg.na())this.Bg=new g.dg(10),this.Bg.X("tick",(0,g.A)(this.kB,this));this.nn=(0,g.G)();this.Bg.start();this.autoplay=!1};
g.h.pause=function(){this.autoplay=!1;this.paused||(this.Bg.stop(),this.paused=!0,this.dispatchEvent("timeupdate"),this.dispatchEvent("pause"))};
g.h.load=function(){this.readyState=0;this.paused=!0;this.dispatchEvent("loadstart");this.setProperty("duration",(0,window.isNaN)(this.duration)?10+20*Math.random():this.duration);var a=this.o;a.g.push(new uha(this.duration));a.length=a.g.length;this.dispatchEvent("loadedmetadata");0<this.currentTime&&this.dispatchEvent("timeupdate");this.dispatchEvent("loadeddata");this.dispatchEvent("canplay");this.dispatchEvent("canplaythrough");this.dispatchEvent("progress");this.playbackRate=this.hI};
g.h.setProperty=function(a,b){switch(a){case "currentTime":var c=Number(b);this.dispatchEvent("seeking");this.currentTime=c;this.dispatchEvent("seeked");this.kB();break;case "duration":this.duration=Number(b);this.dispatchEvent("durationchange");break;case "volume":this.volume=Number(b),this.dispatchEvent("volumechange")}};
g.h.setAttribute=function(a,b){null!=a&&wpa.set(a,b)};
g.h.getAttribute=function(a){return wpa.get(a)};
g.h.kB=function(){var a=(0,g.G)()-this.nn,b=this.currentTime+a/1E3;this.nn+=a;2<this.readyState&&(this.currentTime=Math.min(b,this.duration));this.dispatchEvent("timeupdate");this.currentTime==this.duration&&(this.hx=this.paused=!0,this.Bg.stop(),this.dispatchEvent("ended"))};
g.h.W=function(){this.Bg&&this.Bg.dispose();this.g.dispose()};
g.h.cQ=function(a){var b=null,c=null;switch(a.type){case "loadeddata":b="Loaded";break;case "playing":b="Playing";c="#00f";break;case "pause":b="Paused";break;case "ended":b="Ended",c="#000"}b&&this.cn&&(this.cn.innerText=b);c&&this.Tj&&(this.Tj.style.backgroundColor=c)};g.C(yz,g.M);yz.prototype.initialize=function(){this.o&&dn()&&this.o.load()};
yz.prototype.W=function(){g.pe(this.g);yz.aa.W.call(this)};
yz.prototype.show=function(){var a=this.g;null!=a&&(a.style.display="block")};
yz.prototype.hide=function(){var a=this.g;null!=a&&(a.style.display="none")};g.C(zz,g.M);zz.prototype.G=function(a){if(!("*"!=this.o&&a.origin!=this.o||this.B&&a.source!=this.B)&&g.u(a.data)){try{var b=g.jg(a.data)}catch(c){return}if(!(null==b||this.K&&(this.sessionId&&this.sessionId!=b.id||this.channel&&this.channel!=b.channel))&&b)switch(b.event){case "syn":Az(this,a);Cz(this);this.sendMessage({event:"ack"});break;case "ack":Az(this,a);Cz(this);break;case "command":a=b.func,a in this.g&&this.g[a].apply(null,b.args)}}};
zz.prototype.sendMessage=function(a,b){var c=b||this.B;if(c){this.sessionId&&(a.id=this.sessionId);this.channel&&(a.channel=this.channel);try{var d=g.mg(a);c.postMessage(d,this.F)}catch(e){}}};
zz.prototype.W=function(){window.removeEventListener("message",this.C);zz.aa.W.call(this)};g.C(Bz,zz);Bz.prototype.J=function(a,b){var c={event:"command",func:a},d=Array.prototype.slice.call(arguments,1);0<d.length&&(c.args=d);this.D?this.sendMessage(c):100>this.A.length&&this.A.push(c)};g.C(Dz,g.M);Dz.prototype.G=function(a){a=a.type;var b=new vha;b.duration=this.g.duration;b.currentTime=this.g.currentTime;b.readyState=this.g.readyState;this.g.error&&(b.errorCode=this.g.error.code);b.muted=this.g.muted;b.paused=this.g.paused;b.g=this.g.ended;b.volume=this.g.volume;this.o.J("notify",a,b)};
Dz.prototype.D=function(a){rx(this.C,a);this.A.X(this.g,a,this.F)};
Dz.prototype.J=function(a){this.C.remove(a);this.A.za(this.g,a)};
Dz.prototype.B=function(a,b){this.g[a]=b};g.C(Gz,On);var xpa=["video/mp4","video/webm"],ypa={el:"adunit",controls:0,html5:1,playsinline:1,ps:"gvn",showinfo:0},Fz=[],Ez=!1;g.h=Gz.prototype;g.h.EA=function(a,b,c){var d=g.$a(a,function(a){return null!==Sp(a.o)});
if(null!==d)return d;a=(0,g.re)(a,function(a){a=g.F(a.g);return this.o?this.g.canPlayType(a):g.eb(xpa,a)},this);
g.fb(c)||(d=oz(a,b,c));return null!=d?d:oz(a,b,[])};
g.h.Yn=function(a){this.A=a};
g.h.load=function(a,b){Iz(this,a,b)};
g.h.unload=function(){Iz(this,"","")};
g.h.getVideoUrl=function(){return this.ca};
g.h.setVolume=function(a){this.ha?this.dispatchEvent("volumeChange"):this.o?(a=g.Hd(100*a,0,100),this.g.setVolume(a),this.F=-1,this.dispatchEvent("volumeChange")):this.F=a};
g.h.getVolume=function(){return this.o?this.g.getVolume()/100:this.F};
g.h.play=function(){if(!E(g.F(this.ca))){if(!this.B){Kz(this);var a=Mn();null!=this.A&&0<this.A.g&&(a=this.A.g);this.Fa=g.fg(this.NO,a,this)}this.o?(this.fa=!1,!this.B&&this.A&&this.A.o?this.g.loadVideoByPlayerVars(this.oa):this.g.playVideo()):this.fa=!0}};
g.h.pause=function(){this.o&&this.B&&this.g.pauseVideo()};
g.h.Xh=function(){return this.o?2==this.g.getPlayerState(this.C):!1};
g.h.cj=function(){return this.o?this.g.isMuted():0==this.getVolume()};
g.h.Bq=function(){};
g.h.bj=function(){var a=P.o?P.G:window.document.getElementById(this.P);return a?ko(a):!1};
g.h.Zj=function(a){return this.o?this.g.getCurrentTime(this.C)>=a:!1};
g.h.dj=function(a){this.o?this.g.seekTo(a,!1):this.K=a};
g.h.getCurrentTime=function(a){return this.o?this.g.getCurrentTime(a||this.C):-1};
g.h.ew=function(){return this.o&&this.B?this.g.getVideoLoadedFraction(this.C)*this.g.getDuration(this.C):0};
g.h.getDuration=function(){return this.o&&this.B?this.g.getDuration(this.C):-1};
g.h.getError=function(){return null};
g.h.Zp=function(){return g.Nb(Bu)};
g.h.ah=function(){return this.o?0==this.g.getPlayerState(this.C):!1};
g.h.Hf=function(){var a=P.o?P.G:window.document.getElementById(this.P);return a?new g.Pd(a.offsetWidth,a.offsetHeight):new g.Pd(0,0)};
g.h.Ww=function(){return!1};
g.h.Vw=function(){return 1==this.ua};
g.h.xb=function(){return this.o?1==this.g.getPlayerState(this.C):!1};
g.h.dI=function(){var a=this.Hf(),b=this.bj();if(a.width!=this.ra.width||a.height!=this.ra.height)!this.ka&&b?this.dispatchEvent("beginFullscreen"):this.ka&&!b&&this.dispatchEvent("endFullscreen"),this.ra=a,this.ka=b};
g.h.Hb=function(){this.ga=(0,g.A)(this.Iz,this);this.O=(0,g.A)(this.Fq,this);this.sa=(0,g.A)(this.Jz,this);this.Ia=(0,g.A)(this.yP,this);this.ha&&(this.g.addEventListener("onAdStateChange",this.O),this.g.addEventListener("onReady",this.ga),this.g.addEventListener("onStateChange",this.O),this.g.addEventListener("onVolumeChange",this.sa),this.g.addEventListener("onSharePanelOpened",this.Ia));this.ba=new g.dg(1E3);this.V.X(this.ba,"tick",this.dI);this.ba.start()};
g.h.Vc=function(){this.ha&&(this.g.removeEventListener("onAdStateChange",this.O),this.g.removeEventListener("onReady",this.ga),this.g.removeEventListener("onStateChange",this.O),this.g.removeEventListener("onVolumeChange",this.sa),this.g.removeEventListener("onSharePanelOpened",this.Ia));null!=this.ba&&this.ba.dispose()};
g.h.OF=function(){var a=g.Wb(ypa);P.C&&(a.ps="gvn",a.remoteve=Jn.fa,a.remotevewin="discover");var b=this.P,a={playerVars:a,events:{cardstatechange:(0,g.A)(this.cI,this),onError:(0,g.A)(this.PO,this),onReady:(0,g.A)(this.Iz,this),onAdStateChange:(0,g.A)(this.Fq,this),onStateChange:(0,g.A)(this.Fq,this),onVolumeChange:(0,g.A)(this.Jz,this)}},c=g.x("YT");this.g=null!=c&&null!=c.Player?new c.Player(b,a):null};
g.h.PO=function(){this.dispatchEvent("error")};
g.h.Iz=function(){this.o=!0;this.J&&this.Aq(this.J.videoId,this.J.Hh,this.J.Nj);-1!=this.F&&(this.setVolume(this.F),this.F=-1);null!=this.M&&(Hz(this,this.M,this.da),this.da=this.M=null);-1!=this.K&&(this.dj(this.K),this.K=-1);this.fa&&this.play()};
g.h.cI=function(a){this.ua=a.data;this.dispatchEvent("cardsStateChange")};
g.h.Fq=function(a){switch(a.data){case 0:this.B?this.dispatchEvent("end"):this.dispatchEvent("error");break;case 1:this.B||(Kz(this),this.B=!0,this.G=0,this.dispatchEvent("start"));this.dispatchEvent("play");Jz(this);this.D=new g.dg(100);this.V.X(this.D,"tick",this.yz);this.D.start();break;case 2:this.dispatchEvent("pause"),Jz(this)}};
g.h.Jz=function(){this.dispatchEvent("volumeChange")};
g.h.yP=function(){this.dispatchEvent("shareClicked")};
g.h.yz=function(){var a=Fm().g;if(a.g("seek_back_for_all")||a.g("seek_back_for_all_no_leanback")&&!tn()||a.g("seek_back_for_safari")&&mi&&jn(mpa,10)&&Ka(g.Gb,"Safari")||GO||sn()){if(1.5<this.getCurrentTime()-this.G){this.o&&this.g.seekTo(this.G,!0);return}this.getCurrentTime()>this.G&&(this.G=this.getCurrentTime())}this.dispatchEvent("timeUpdate")};
g.h.NO=function(){this.dispatchEvent("mediaLoadTimeout")};
g.h.Aq=function(a,b,c){if(b||c)this.o?this.g.addInfoCardXml(a,b,c):this.J={videoId:a,Hh:b,Nj:c}};
g.h.Be=function(){if(!this.o)return null;var a=this.g.getVideoData();return a?a.cpn:null};
g.h.ws=function(a){this.o&&Sp(this.getVideoUrl())&&this.g.sendVideoStatsEngageEvent(a)};
g.h.Xw=function(a){this.o&&this.g.setCardsVisible(a,!1,"YOUTUBE_DRAWER_AUTO_OPEN")};
g.h.Dq=function(){this.o&&this.g.showControls()};
g.h.Cq=function(){this.o&&this.g.hideControls()};
g.h.W=function(){Jz(this);Kz(this);this.Vc();this.o=!1;this.V.dispose();this.K=-1;this.da=null;this.fa=!1;this.M=null;this.F=-1;this.ga=this.g=this.A=null;this.B=!1;this.ca="";Gz.aa.W.call(this)};
g.v("onYouTubeIframeAPIReady",function(){Ez=!0;(0,g.H)(Fz,function(a){a()});
gb(Fz)},window);g.C(Lz,g.qf);Lz.prototype.send=function(a){var b=a.g;this.g.hasOwnProperty(b)&&this.g[b].send(a.type,a.Md,a.Mf)};
Lz.prototype.W=function(){this.o.dispose();for(var a in this.g)g.Ke(this.g[a]);Lz.aa.W.call(this)};
Lz.prototype.C=function(a){a=a.g;var b=Wx(a.data);if(null!=b){var c=b.channel;if(this.A&&!this.g.hasOwnProperty(c)){var d=b.sid;Nz(this,c,d,a.source);this.dispatchEvent(new Mz(b.name,b.type,b.data||{},d,a.origin,c))}}};
g.C(Mz,Ux);g.C(Pz,g.dm);
Pz.prototype.D=function(a){var b=a.getOrigin(),c=g.tg("//imasdk.googleapis.com"),b=g.tg(b);if(c[3]==b[3]&&c[4]==b[4])if(null!=this.g)Nz(this.g,a.g,a.Pw,ee().parent),null!=this.g&&this.g.send(a);else if(c=a.Mf,null!=c&&g.t(c.scope)){var b=c.scope,c=c.args,d;if("proxy"==b)c=a.Md,"isGptPresent"==c?d=Oz():"isConsolePresent"==c&&(d=null!=Qz());else if(Oz())if("pubads"==b||"companionAds"==b){d=a.Md;var e=ee().googletag;if(null!=e&&null!=e[b]&&(e=e[b](),null!=e&&(d=e[d],null!=d)))try{var f=d.apply(e,c)}catch(k){}d=
f}else if("console"==b){if(e=a.Md,f=Qz(),null!=f&&(e=f[e],null!=e))try{e.apply(f,c)}catch(k){}}else if(null===b){f=a.Md;d=ee();if(g.eb(["googleGetCompanionAdSlots","googleSetCompanionAdContents"],f)&&(f=d[f],null!=f))try{e=f.apply(d,c)}catch(k){}d=e}g.t(d)&&(a.Mf.returnValue=d,this.A.send(a))}};
Pz.prototype.C=function(a){this.A.send(a)};new Rz;Rz.prototype.set=function(a){this.g=a};
Rz.prototype.reset=function(){this.set((0,g.G)())};
Rz.prototype.get=function(){return this.g};var Sz={s:function(a,b,c){return(0,window.isNaN)(c)||""==c||a.length>=Number(c)?a:a=-1<b.indexOf("-",0)?a+Ma(" ",Number(c)-a.length):Ma(" ",Number(c)-a.length)+a},
f:function(a,b,c,d,e){d=a.toString();(0,window.isNaN)(e)||""==e||(d=(0,window.parseFloat)(a).toFixed(e));var f=0>Number(a)?"-":0<=b.indexOf("+")?"+":0<=b.indexOf(" ")?" ":"";0<=Number(a)&&(d=f+d);if((0,window.isNaN)(c)||d.length>=Number(c))return d;d=(0,window.isNaN)(e)?Math.abs(Number(a)).toString():Math.abs(Number(a)).toFixed(e);a=Number(c)-d.length-f.length;return d=0<=b.indexOf("-",0)?f+d+Ma(" ",a):f+Ma(0<=b.indexOf("0",0)?"0":" ",a)+d},
d:function(a,b,c,d,e,f,k,l){return Sz.f((0,window.parseInt)(a,10),b,c,d,0,f,k,l)}};
Sz.i=Sz.d;Sz.u=Sz.d;g.C(Vz,g.qf);g.h=Vz.prototype;g.h.W=function(){this.o.dispose();null!==this.B&&(this.B.dispose(),this.B=null);g.El(this.G.Sd(!1),function(a){a.dispose()});
this.G.clear();g.pe(this.A);Vz.aa.W.call(this)};
g.h.GG=function(a){var b=a.Mf,c=g.mh(this.A),d=window.document.createEvent("MouseEvent");d.initMouseEvent(a.Md,!0,!0,window,b.detail,b.screenX,b.screenY,b.clientX+c.x,b.clientY+c.y,b.ctrlKey,b.altKey,b.shiftKey,b.metaKey,b.button,null);if(!ni||hn()||0==window.document.webkitIsFullScreen)this.A.blur(),window.focus();this.A.dispatchEvent(d)};
g.h.WG=function(a){var b=a.Mf,c=g.mh(this.A);if("TouchEvent"in window&&0<window.TouchEvent.length){var d={bubbles:!0,cancelable:!0,view:window,detail:b.detail,ctrlKey:b.ctrlKey,altKey:b.altKey,shiftKey:b.shiftKey,metaKey:b.metaKey,touches:Wz(this,b.touches),targetTouches:Wz(this,b.targetTouches),changedTouches:Wz(this,b.changedTouches)};d=new window.TouchEvent(a.Md,d);this.A.dispatchEvent(d)}else d=window.document.createEvent("TouchEvent"),d.initTouchEvent(a.Md,!0,!0,window,b.detail,b.screenX,b.screenY,
b.clientX+c.x,b.clientY+c.y,b.ctrlKey,b.altKey,b.shiftKey,b.metaKey,Wz(this,b.touches),Wz(this,b.targetTouches),Wz(this,b.changedTouches),b.scale,b.rotation),this.A.dispatchEvent(d)};
g.h.TG=function(a){if(null!=this.g){var b=a.Mf;switch(a.Md){case "startTracking":this.g.Hb();break;case "stopTracking":this.g.Vc();break;case "exitFullscreen":this.g.Bq();break;case "play":this.g.play();break;case "pause":this.g.pause();break;case "load":this.g.load(b.videoUrl,b.mimeType);break;case "setCurrentTime":this.g.dj(b.currentTime);break;case "setPlaybackOptions":this.g.Yn(Xz(b));break;case "setVolume":this.g.setVolume(b.volume)}}};
g.h.NG=function(a){if(null!=this.C){var b=a.Mf;switch(a.Md){case "startTracking":this.C.Hb();break;case "stopTracking":this.C.Vc();break;case "setPlaybackOptions":this.C.Yn(Xz(b));break;case "load":this.C.load(b.videoUrl,b.mimeType)}}};
g.h.Sf=function(a){var b={};switch(a.type){case "beginFullscreen":a="fullscreen";break;case "endFullscreen":a="exitFullscreen";break;case "click":a="click";break;case "end":a="end";break;case "error":a="error";break;case "loaded":a="loaded";break;case "mediaLoadTimeout":a="mediaLoadTimeout";break;case "pause":a="pause";b.ended=this.g.ah();break;case "play":a="play";break;case "skip":a="skip";break;case "start":a="start";break;case "timeUpdate":a="timeupdate";b.currentTime=this.g.getCurrentTime();
b.duration=this.g.getDuration();break;case "volumeChange":a="volumeChange";b.volume=this.g.getVolume();break;case "loadedmetadata":a=a.type;b.duration=this.g.getDuration();break;case "abort":case "canplay":case "canplaythrough":case "durationchange":case "emptied":case "loadstart":case "loadeddata":case "progress":case "ratechange":case "seeked":case "seeking":case "stalled":case "suspend":case "waiting":a=a.type;break;default:return}this.F.send("videoDisplay",a,b)};
g.h.BG=function(a){switch(a.Md){case "showVideo":null!=this.B?this.B.Vc():(this.B=new Ms,this.o.X(this.B,"click",this.ZP));this.B.Hb(Zz(this.D));a=this.D;null!=a.g&&a.g.show();break;case "hide":null!==this.B&&(this.B.dispose(),this.B=null);this.D.hide();break;case "getPreloadDisplay":null!=this.g&&null==this.C&&(this.C=this.D.C);break;case "swapVideoDisplays":if(null!=this.g&&null!=this.C){this.o.za(this.g,g.Nb(Tz),this.Sf);this.o.za(this.g,Uz,this.Sf);a=this.D;if(a.g&&a.o&&a.B&&a.C){var b=a.o;a.o=
a.C;a.C=b;b=a.g;a.g=a.B;a.B=b;if(a.K&&a.o instanceof rz){var b=a.K,c=a.o.g;km(b.A);b.g=c;(0,g.H)(b.C.fb(),b.D,b)}null!=a.J&&(b=a.J,a=a.o,null!=b.g&&(b.o.za(b.g,g.Nb(Tz),b.Sf),b.o.za(b.g,Uz,b.Sf)),b.g=a,b.o.X(b.g,g.Nb(Tz),b.Sf),b.o.X(b.g,Uz,b.Sf))}this.g=this.D.o;this.C=this.D.C;this.o.X(this.g,g.Nb(Tz),this.Sf);this.o.X(this.g,Uz,this.Sf)}}};
g.h.ZP=function(){this.F.send("displayContainer","videoClick")};
g.h.kG=function(){g.El(this.G.Sd(!1),function(a){a.kf=xe(this.A);a.connect()},this);
this.J=!0};Yz.prototype.initialize=function(){null!=this.g&&this.g.initialize();null!=this.B&&this.B.initialize()};
Yz.prototype.destroy=function(){g.Ke(this.g);g.Ke(this.B);g.Ke(this.J);g.Ke(this.o);g.Ke(this.C);g.Ke(this.K);g.pe(this.A)};
Yz.prototype.hide=function(){null!=this.g&&this.g.hide()};
Yz.prototype.setSize=function(a,b){var c=this.A;null!=c&&(-1==a?(c.style.right="0",c.style.left="0"):c.style.width=a+"px",-1==b?(c.style.bottom="0",c.style.top="0"):c.style.height=b+"px");null!=this.J&&(c=this.J,c.A.width=-1==a?"100%":a,c.A.height=-1==b?"100%":b)};g.h=$z.prototype;g.h.Tp=function(){return Zz(this.g)};
g.h.pk=function(){return this.g.D};
g.h.Cf=function(){return this.g.D};
g.h.Xm=function(){var a=this.g.o;return null!=a?a:new Gz};
g.h.rg=function(){var a=this.g;null!=a.g&&a.g.show()};
g.h.nd=function(){};
g.h.Ip=function(){return null!=this.g.G};
g.h.Ym=function(){return this.g.F};
g.h.xq=function(){return!1};
g.h.Zm=function(){return this.g.M};
g.h.setSize=function(a,b){this.g.setSize(a,b)};
g.h.hide=function(){};
g.h.uq=function(){return null};
g.h.wq=function(){};g.C(aA,g.Me);g.h=cA.prototype;
g.h.clone=function(){var a=new cA;"auto"==this.xi?a.xi="auto":"click"==this.xi&&(a.xi="click");a.g=this.g;a.Dh=g.Wb(this.Dh);a.o=this.o;a.Rl=this.Rl;a.D=this.D;a.B=this.B?g.ob(this.B):null;a.F=this.F;a.Fc=g.Wb(this.Fc);a.C=this.C;a.location=this.location;a.referrer=this.referrer;a.G=this.G;a.language=this.language;a.aj=this.aj;a.Zi=this.Zi;a.Ye=this.Ye;a.Xe=this.Xe;a.Ne=this.Ne;a.eo=this.eo;a.Wm=this.Wm;a.Hs=this.Hs;a.A=this.A;a.Ao=this.Ao;a.containerElement=this.containerElement;a.afcRmFallback=
this.afcRmFallback;a.M=this.M;a.K=this.K;a.Ni=this.Ni;a.zo=this.zo;a.Bx=this.Bx;a.mx=this.mx;a.bp=this.bp?this.bp.clone():null;return a};
g.h.Dh=null;g.h.Rl=null;g.h.Fc=null;g.h.xi="unknown";g.h.Bx=0;g.h.aj=0;g.h.Zi=0;g.h.Ye=0;g.h.Xe=0;g.h.Ni=!1;g.h.Ne=null;g.h.eo=!1;g.h.Wm=!1;g.h.Hs=!0;g.h.zo=new zm;g.h.Ao=0;g.h.Ov=!0;g.h.containerElement=null;g.h.afcRmFallback=!1;g.h.mx=!0;g.h.bp=null;g.C(dA,g.qf);g.C(eA,g.Me);eA.prototype.getError=function(){return this.A};g.C(gA,g.qf);gA.prototype.o=null;gA.prototype.Pb=function(){return this.B};
gA.prototype.W=function(){delete this.g;hA(this);g.lf(this.o);gA.aa.W.call(this)};
gA.prototype.C=function(){fA(this)&&(hA(this),g.lf(this.o),this.o=null,this.B=!0,this.dispatchEvent("ifload"))};g.C(iA,dA);g.qa(iA);g.h=iA.prototype;g.h.W=function(){this.o&&this.o.dispose();iA.aa.W.call(this)};
g.h.initialize=function(){if(!this.be){var a=g.He(new Rd);try{g.x("googletag");jA([a,a.top]);var b=!0}catch(c){b=!1}b?vA(this):(this.be=!0,this.A="not_available")}};
g.h.rd=function(a){try{this.g.googleSetCompanionAdContents((0,g.I)(a,this.rF,this)),this.Dj()}catch(b){this.dispatchEvent(new eA("companion_display_error",b))}};
g.h.Kz=function(){0<this.B&&(0,g.G)()>=this.B?(this.be=!0,rA(this),uA(this)):vA(this)};
g.h.nR=function(a){var b=(0,g.I)(a.adSizes,function(a){return new g.Pd(a.adWidth,a.adHeight)});
return new po(a.slotId,b)};
g.h.rF=function(a){var b={};b.slotId=a.J;b.adContent=a.gd();b.adWidth=a.B;b.adHeight=a.o;b.friendlyIframeRendering=a.A;null==a.g&&g.fb(a.C)||(b.onAdContentSet=(0,g.A)(this.dN,this,a));return b};
g.h.dN=function(a,b){if(null!=a.g){var c=g.ue(b);c||(c=g.ie("div"),b.appendChild(c));var d=a.Gc();c.appendChild(d);wA(this,a,c)}else c=a.A?b.querySelector("iframe"):(c=g.ue(b))?g.ue(c):null,(c=c&&"IFRAME"==c.tagName?c:null)&&zha(this,c,a)};
g.h.cN=function(a){this.dispatchEvent(new eA("companion_click",null,a))};
g.h.Dj=function(a){Vm(this.impressionUrls,a)};g.C(xA,g.qf);xA.prototype.Pu=function(){return!0};
xA.prototype.Ph=function(){return null};g.C(zA,xA);g.h=zA.prototype;g.h.W=function(){this.destroy();zA.aa.W.call(this)};
g.h.destroy=function(){null!=this.C&&this.C.dispose();this.B=null;(0,g.H)(this.A,function(a){ro(a)},this);
this.o=null};
g.h.rd=function(a){g.Ke(this.o);this.o=new g.qf;this.B=a;this.D=!0;this.F?BA(this):(this.D=DA(CA(a),[]),this.D||(this.o=this.B=null));return this.o};
g.h.Pu=function(){return this.D};
g.h.vP=function(){null!=this.G&&(this.G.stop(),this.G.dispose(),this.G=null);if(null!=this.g){var a=kA(this.g);null!=a&&(this.A=a)}this.F=!0;null!=this.B&&BA(this);this.dispatchEvent(new g.Me("initialized"))};
g.h.eN=function(a){AA(this,a.getError())};
g.h.aN=function(a){if(null!=a.g){var b=a.g;"companion_slot_init"==a.type?(Vm(b.D),yf(function(){null!=this.o&&this.o.dispatchEvent(new so("companion_impression"))},this)):"companion_click"==a.type&&(Vm(b.C),null!=this.o&&this.o.dispatchEvent(new so("companion_click")))}};
g.h.Ph=function(){return this.g};g.C(EA,Mu);
EA.prototype.A=function(){if(null===this.g){for(var a=this.B,b=new Wy,c=g.se(g.ue(this.B)),d=0,e=c.length;d<e;d++){var f=c[d];if("vmap:AdBreak"==f.nodeName){var k=f;var l=[];for(var m="",n=null,q=!1,r=!1,w=null,z=g.se(k),B=0,D=z.length;B<D;B++){var L=z[B];switch(L.nodeName){case "vmap:AdSource":if(!n&&(n=Gha(L),!n)){var m=L,L=sr(m,"vmap:AdTagURI"),Y="";L.length&&(Y=g.F(ur(L[0])));if(E(Y))throw Ym(lpa,null,m.parentNode.nodeName,m.nodeName);m=Y}break;case "vmap:Extensions":w=sr(L,"vmap:Extension"),L=
g.$a(w,g.ya(FA,"type","bumper")),null!=L&&(q=!0,r=tr(L,"suppress_bumper"),r=null!=r?"true"==r:!0),w=Hha(w)}}z=null;if(n){z=n;n=null;if(Fm().g.g("html5_reuse_parsed_xml"))try{n=rr(z)}catch(Sa){n=or(z)}else n=or(z);z=this.o.clone();z.o=n;z.g=""}else E(m)||(n=m,z=this.o.clone(),z.o="",z.g=n);z&&(P.g()&&(n=z,k=tr(k,"timeOffset"),B=xr(k),n.Ao="start"==k||0==B?0:"end"==k||-1==B?-1:1E3*B),k=new Vy(z),k.isBumper=q,k.g=q&&!r,k.A=w,g.ib(l,k));f=Eha(f);q=0;for(r=f.length;q<r;q++)if(k=f[q],w=xr(k),0<q&&(l=Fha(this,
l)),"start"==k||0==w)Xy(b,l,0);else if("end"==k)Xy(b,l,-1);else{if(-1==w)throw Ym($y,null,"timeOffset",g.F(k));Xy(b,l,w)}}}if(0==b.g.Cb().length)throw Ym(nq);this.g=new Nu(a,null,b)}return this.g};IA.prototype.G=function(){var a=this.B(this.C());return If(a)?a.then(function(a){return a.toString()}):a instanceof Error?a:a.toString()};
IA.prototype.D=function(){var a=1;un()&&(a+=4);if(!P.g()){var b=15360;P.da&&(b+=8);a+=b}return a};var hB={c0:"ultrahigh",QW:"high",cE:"medium"},Oha={fU:1E3,gU:1001,hU:1002,iU:1003,jU:1004,kU:1005,lU:1006},Pha={YD:1,CD:2},Qha={fD:"content",SZ:"site",TZ:"site_content"};g.h=OA.prototype;g.h.Il="high";g.h.Gq=!1;g.h.ep=1;g.h.fp=null;g.h.adType="video";g.h.adBlock=1;g.h.Hq=null;g.h.ip=!0;g.h.jp=null;g.h.Fp=null;g.h.bk=null;g.h.experimentIds=null;g.h.gender=null;g.h.host=null;g.h.hostTierId=null;g.h.isLiveStream=!1;g.h.language=null;g.h.bx=null;g.h.ax=null;g.h.qn=1E5;g.h.sn=null;g.h.gx=null;g.h.fx=null;
g.h.kr=0;g.h.yj=null;g.h.Nn=null;g.h.Vn=null;g.h.targeting=null;g.h.tagForChildDirectedTreatment=-1;g.h.Kn=null;g.h.url=null;g.h.bn=null;g.h.Ys=null;g.h.Iq=null;g.h.qt=null;g.h.jt=null;g.h.kt=null;g.h.lt=null;g.h.sp=null;g.h.Xs=null;g.h.yo=null;g.h.eI=null;g.h.fI=null;g.h.gI=null;var Mha={MU:"bumpervideo",DD:"flash",RD:"image",YZ:"skippablevideo",f_:"standardvideo",j_:"staticimage",TEXT:"text",VIDEO:"video"},$A=["flash","image","staticimage"],Nha=[new g.Pd(200,200),new g.Pd(250,250),new g.Pd(300,250),new g.Pd(336,280),new g.Pd(450,50),new g.Pd(468,60),new g.Pd(480,70),new g.Pd(728,90)];g.C(iB,IA);var Rha=["bumpervideo","skippablevideo","standardvideo","video"];iB.prototype.F={LC:"allow",St:"exclude",rZ:"require"};iB.prototype.D=function(){var a=iB.aa.D.call(this);P.g()&&this.g.Vn&&(a|=this.g.Vn);return a};
iB.prototype.B=function(a){var b=new g.Ll(this.o.g),c=new g.Ll("//"+b.o+b.A),b=a.Cb();(0,g.H)(b,function(b){g.Ul(c,b,a.get(b))});
Ml(c,"https");return c};
iB.prototype.C=function(){var a=new Fl;a.set("sdkv",NA(this));a.set("sdki",this.D().toString(16));a.set("video_product_type",null!=this.g.yj?P.g()?5:g.Da(this.g.yj,"ca-games-")?4:g.Da(this.g.yj,"ca-video-")?0:-1:-1);a.set("correlator",this.J.g);a.set("client",this.g.yj);P.g()&&!E(g.F(this.g.url))?a.set("url",this.g.url):a.set("url",this.o.location?this.o.location:this.o.referrer);null!=this.o.Ne&&a.set("adk",this.o.Ne);a.set("num_ads",jB(this));a.set("channel",Tha(this));a.set("output","xml_vast3");
this.g.Gq&&a.set("adtest","on");ao&&a.set("flash",oi);ZA("alternate_ad_url",this.g.jp,a);ZA("cpm",this.g.Fp,a);PA(a,this.o);P.g()||Mb(hB,this.g.Il)&&a.set("adsafe",this.g.Il);this.g.host&&(a.set("host",this.g.host),ZA("ht_id",this.g.hostTierId,a),null!=this.g.A&&ZA("h_ch",this.g.A.join("+"),a));ZA("hl",this.g.language,a);ZA("cust_age",this.g.Hq,a);ZA("cust_gender",this.g.gender,a);-1!=this.g.tagForChildDirectedTreatment&&ZA("tfcd",this.g.tagForChildDirectedTreatment,a);null!=this.g.Kn&&ZA("pucrd",
this.g.Kn,a);ZA("slotname",this.g.fp,a);if(UA(this.g)&&(a.set("ea","0"),null!=this.o.Ye&&null!=this.o.Xe)){var b=VA(this.g,this.o.Ye,this.o.Xe,this.o.Ni);a.set("image_size",b);E(b)&&(this.g.g=bB(this.g.g,this.g.adType,!0),this.g.adType=this.g.g.join("_"))}a.set("ad_type",this.g.adType);b=Im(Fm());E(g.F(b))||a.set("eid",b);RA(a);var b=this.J,c=this.g,d=this.g.bk;if(null!=d){var e=Gn(b),c=null!=c.yo?c.yo:xn(e,d);1!=c&&a.set("ad_block",c);null==b.O&&(b.O=new Dn);var c=b.O,f=d!=b.P;(e=0==e.g%100||f)||
(e=36E5<(null===c.g?0:(new g.Bn).getTime()-c.g));e&&c.reset();b.P=d;b=c.o;null!==b&&a.set("tok",b)}a.set("unviewed_position_start","1");b=this.g.ep;a.set("videoad_start_delay",null!=b?b:1);LA(this,a);MA(this,a);JA(this,a);Sha(this)&&a.set("video_format",null!=this.g.bn&&P.g()?this.g.bn:g.UE&&li(6)||g.MN&&li(4)||on(2.3)?43:18);b=null!=this.g.Nn?this.g.Nn:g.eb(this.g.adType.split("_"),"text")?P.g()&&Fm().g.g("exclude_pyv_overlays_on_desktop_watch")?this.F.St:this.F.LC:this.F.St;a.set("t_pyv",b);ZA("min_ad_duration",
this.g.kr,a);0<this.g.qn&&a.set("max_ad_duration",Math.round(1.1*(this.g.qn||0)+0*jB(this)));0<this.g.sn&&a.set("sdmax",Math.round(1.1*(this.g.sn||0)+0*jB(this)));WA(a,this.K);P.g()&&(b=Sp(this.g.bk),null!=b&&a.set("video_doc_id","yt_"+b));ZA("description_url",this.g.bk,a);P.g()&&(ZA("lact",SA(this.o),a),ZA("loeid",this.g.Iq,a),ZA("lsv",this.g.isLiveStream,a),this.g.ip||ZA("scs","false",a),ZA("targeting",this.g.targeting,a),ZA("video_cpm",this.g.Ys,a),ZA("yt_pt",this.g.qt,a),ZA("ytdevice",this.g.jt,
a),ZA("ytdevicever",this.g.kt,a),ZA("yt_vis",TA(this.o),a),ZA("dbp",this.g.lt,a),ZA("avo",this.g.sp,a),ZA("v_p",this.g.Xs,a));null!=a.get("ms")||ZA("ms",this.g.B,a);ZA("vid_kw",this.o.B?this.o.B.join(","):null,a);ZA("vid_d",this.o.D,a);ZA("vid_t",this.o.F,a);KA(a);XA(this.o,a,!1);null!=this.o.Dh&&ZA("loc",this.o.Dh.page_location,a);return a};g.C(lB,IA);lB.prototype.B=function(a){var b=new g.Ll(this.o.g);(0,g.H)(a.Cb(),function(c){E(a.get(c))?b.g.remove(c):g.Ul(b,c,a.get(c))});
Ml(b,"https");return b};
lB.prototype.C=function(){var a=new Fl;a.set("sdkv",NA(this));MA(this,a);JA(this,a);KA(a);null!=this.o.Ne&&a.set("adk",this.o.Ne);return a};g.C(mB,IA);mB.prototype.C=function(){return new Fl};
mB.prototype.B=function(){var a=new yq(this.o.g),b=NA(this);b&&Aq(a,"dc_sdkv",[b]);(b=this.D().toString(16))&&Aq(a,"dc_sdki",[b]);(b=this.A.K)&&Aq(a,"dc_submodel",[b]);null!=this.o.Ne&&Aq(a,"dc_adk",[this.o.Ne]);b=Im(Fm());E(g.F(b))||Aq(a,"dc_eid",[b]);b=P.fa;null!=b&&Aq(a,"dc_rfl",[Ri(b)]);b=new Fl;LA(this,b);MA(this,b);JA(this,b);KA(b);Hl(b,"js")&&Aq(a,"dc_js",[b.get("js")]);Hl(b,"msid")&&Aq(a,"dc_msid",[b.get("msid")]);Hl(b,"frm")&&Aq(a,"dc_frm",[b.get("frm")]);Hl(b,"osd")&&Aq(a,"dc_osd",[b.get("osd")]);
Hl(b,"sdr")&&Aq(a,"dc_sdr",[b.get("sdr")]);Aq(a,"dcmt",["text/xml"]);Hl(b,"vpa")&&Aq(a,"vpa",[b.get("vpa")]);Hl(b,"mpt")&&Aq(a,"mpt",[b.get("mpt")]);Hl(b,"mpv")&&Aq(a,"mpv",[b.get("mpv")]);b=zq(a,"dc_output");null!=b&&(g.eb(b,"vast")||g.eb(b,"xml_vast2"))&&Aq(a,"dc_output",["xml_vast3"]);Ml(a,"https");return a};g.C(nB,IA);nB.prototype.B=function(a){a=new g.Ll(a.get("adTagUrl"));Ml(a,"https");return a};
nB.prototype.G=function(){var a=g.F(this.C().get("adTagUrl"));return a=a.replace(/^http:/i,"https:")};
nB.prototype.C=function(){var a=new Fl;a.set("adTagUrl",this.o.g);a.set("adsResponse",this.o.o);return a};g.C(oB,IA);oB.prototype.B=function(a){return new g.Ll(a.get("adTagUrl"))};
oB.prototype.C=function(){var a=new Fl;a.set("adTagUrl",this.o.g);a.set("adsResponse",this.o.o);return a};g.C(pB,IA);pB.prototype.B=function(a){var b=new g.Ll(this.o.g);(0,g.H)(a.Cb(),function(c){E(a.get(c))?b.g.remove(c):g.Ul(b,c,a.get(c))});
Ml(b,"https");return b};
pB.prototype.C=function(){var a=new Fl,b=Im(Fm());E(g.F(b))||a.set("eid",b);a.set("sdkv",NA(this));a.set("sdki",this.D().toString(16));a.set("correlator",this.A.B);a.set("scor",this.A.g);null!=this.o.Ne&&a.set("adk",this.o.Ne);LA(this,a);MA(this,a);JA(this,a);KA(a);var b=(new g.Ll(this.o.g)).g,c=new OA;c.o=fB(c.o,b.get("overlay"));a.set("afvsz",VA(c,this.o.Ye,this.o.Xe,this.o.Ni));b=this.A.A;null!=b&&(this.A.A=null,a.set("fbidx",b));b=this.A.V;null!=b&&a.set("ppid",b);b="null";c=this.A.o;null!=c?
b=c:Pm(this.o.location)?b=this.o.location:Pm(this.o.referrer)&&(b=this.o.referrer);a.set("url",b);b=this.A.K;null!=b&&a.set("submodel",b);b=this.A.G;null==b||P.g()||(b=Yha(b),a.set("ciu_szs",b));b=(new g.Ll(this.o.g)).g.get("output");null!=b&&("vast"!=b&&"xml_vast2"!=b||a.set("output","xml_vast3"));a.set("impl","");a.set("unviewed_position_start","1");return a};g.C(qB,pB);qB.prototype.B=function(a){a=qB.aa.B.call(this,a);this.J||$ha(this,a);return a};g.C(rB,mB);rB.prototype.B=function(a){a=rB.aa.B.call(this,a);this.J||bia(this,a);return a};g.C(sB,IA);var dia="CA_TYPE CPN DT FLASH FRM LACT MT TSLA U_AH U_AW U_CD U_H U_HIS U_JAVA U_NMIME U_NPLUG U_TZ U_W VIS".split(" ");sB.prototype.B=function(){if(!/\[BISCOTTI_ID\]/.test(this.o.g))return tB(this);var a=this.o.Rl();return If(a)?a.then(function(a){return tB(this,a)},function(a){throw Ym(epa,a);
},this):a instanceof Error?Ym(epa,a):tB(this,a)};
sB.prototype.C=function(){return new Fl};uB.prototype.fetch=function(a,b,c){null!=a.o&&(g.u(a.o)&&!E(a.o)||a.o instanceof window.Document)?gia(this,a,b,c):Gq(a.g)&&null!=this.g&&!this.g.G?this.g.start(a,(0,g.A)(function(){wB(this,a,b,c)},this)):wB(this,a,b,c)};
uB.prototype.o=function(a,b,c,d){var e=fia(a,this.B).G();If(e)?e.then(function(e){yB(this,e,a,b,c,d)},function(a){a instanceof ym?c(a):c(Ym(xB,a))},this):e instanceof ym?c(e):e instanceof Error?c(Ym(xB,e)):yB(this,e,a,b,c,d)};zB.prototype.reset=function(a){this.g=a+(0,g.G)()};AB.prototype.start=function(a,b){this.C=a;this.F=b;oia(this);this.D.F?this.J():jm(this.o,this.D,"initialized",this.J,this)};
AB.prototype.J=function(){var a=this.D.Ph();var b=a.be&&"retrieved"==a.A?a.D:void 0;a=xha(a);null!=b&&(this.B.B=b);null!=a&&(this.B.G=a);nia(this)};g.h=g.CB.prototype;g.h.Mc=function(){return this.g.length+this.o.length};
g.h.isEmpty=function(){return g.fb(this.g)&&g.fb(this.o)};
g.h.clear=function(){this.g=[];this.o=[]};
g.h.contains=function(a){return g.eb(this.g,a)||g.eb(this.o,a)};
g.h.remove=function(a){var b=this.g;var c=Hoa(b,a);0<=c?(g.jb(b,c),b=!0):b=!1;return b||g.kb(this.o,a)};
g.h.fb=function(){for(var a=[],b=this.g.length-1;0<=b;--b)a.push(this.g[b]);for(var c=this.o.length,b=0;b<c;++b)a.push(this.o[b]);return a};g.C(JB,g.qf);g.C(OB,vy);g.h=OB.prototype;g.h.Dp=function(){var a=wy(this);g.R(a,"ima-container-rotator");this.G=g.ge("DIV");this.g.appendChild(this.G);(0,g.H)(this.M,function(a,c){g.R(a,"ima-container-highlight");var b=63/this.M.length*(c+.5)-5,e=g.ge("DIV",{id:Ua(),"class":"ima-container-selector"});e.style.top=b+"px";this.Ef.X(e,"click",function(a){this.Cj(a.target)});
this.V.set(e.id,a);this.F.appendChild(e)},this);
this.Cj(g.ue(this.F));this.play();return a};
g.h.play=function(){null==this.B&&(this.B=new g.dg(this.P),this.Ef.X(this.B,"tick",this.cR));OB.aa.play.call(this);this.B.start()};
g.h.stop=function(){null!=this.B&&this.B.stop();OB.aa.stop.call(this)};
g.h.cR=function(){var a=this.C;this.Cj((g.t(a.nextElementSibling)?a.nextElementSibling:te(a.nextSibling))||g.ue(this.C.parentNode))};
g.h.Cj=function(a){this.C&&g.Kp(this.C,"ima-container-active");g.R(a,"ima-container-active");var b=this.V.get(a.id);g.qe(b,this.G);this.C=a;this.G=b;yy(b)};g.C(PB,vy);PB.prototype.hide=g.y;PB.prototype.Dp=function(){var a=wy(this);(0,g.H)(this.B,function(a){g.R(a,"ima-container-highlight");this.g.appendChild(a);yy(a)},this);
this.play();return a};g.C(QB,zy);g.h=QB.prototype;g.h.Tw=function(a,b){if(this.C||null==b)b=g.y;if(P.g()&&this.C)var c=new vy(a[0],b);else 1<a.length?SB(this)||"fullscreen"==this.Xc&&P.g()?c=new PB(a):(c=new OB(a),c.P=15E3):c=new vy(a[0],b);c.Uw=100;this.C&&(c.Hx=30);c.Ix=45E3;c.tA=6E3;g.S(c.g,"scalable",this.C);g.S(c.pa(),"yt-text-overlay",P.g()&&this.C);return c};
g.h.iR=function(a){var b=a.g;null!=b?(null==this.J&&(this.J=a.getExtension("AdSense").o),Ap(b,g.ya(this.oq,a,b)),zp(b,g.ya(this.wG,a,b)),"Text"==b.hd()&&(this.C=!0),this.A.push(b)):(b=Ym(NB),b=bq(b,a),Vm(Vr(a),b))};
g.h.Qc=function(a,b,c){QB.aa.Qc.call(this,a,b,c);this.Va.Ru=!0;a=this.ma();g.fb(Xr(a))?P.g()&&this.la("companionBackfill"):this.rd(a)};
g.h.Wu=function(){null==this.A&&(this.A=[],(0,g.H)(this.ads,this.iR,this));if(0==this.A.length)throw Zm(NB);var a=[];(0,g.H)(this.A,function(b){Bp(b,this.Xa());"Flash"!=b.hd()||b.Ob().getExtension("TemplateAd")||(b.Yu=!0);a.push(b.Gc());Wda(b,this.J.F)},this);
if(0==a.length)throw Zm(NB);uia(this);return this.Ml(a)};
g.h.start=function(){QB.aa.start.call(this);!this.G&&SB(this)&&(this.G=!0,this.la("contentPauseRequested"));null!=this.o&&this.o.start();if(this.B){var a=TB(this);Ln(In.getInstance(),33,a)}};
g.h.Sm=function(a){QB.aa.Sm.call(this,a);(0,g.H)(this.A,function(a){var b=cq(a.Ob(),this.Ea);this.Sb.g=b;this.Vf(a,["close"]);this.Ga("close");this.Sb=new mu},this)};
g.h.wm=function(a){QB.aa.wm.call(this,a);SB(this)&&(null!=this.containerElement&&g.me(this.containerElement),P.o?io().Fj(null):Rn().Fj(null),this.G&&(this.G=!1,this.la("contentResumeRequested")))};
g.h.Ml=function(a){a=QB.aa.Ml.call(this,a);if(SB(this)){var b=vw(2);g.R(this.g.g,b);g.R(a,b)}return a};
g.h.np=function(a){if(SB(this)){var b=g.ve(a);b&&((a=g.se(a)[0])&&g.bh(a,{margin:"0 auto"}),a=this.ads[0].getExtension("AdSense").o||new Wu,this.o=new bx(b,a,2,RB(this),!0),this.Xa().X(this.o,"skip",this.UG),this.Xa().X(this.o,"end",this.HH))}else QB.aa.np.call(this,a),b=Op($ga,RB(this)),a.appendChild(b)};
g.h.oq=function(a,b){this.B?this.dl(a,b):this.F.push((0,g.A)(this.dl,this,a,b));Ap(b,g.y);this.la("impression")};
g.h.dl=function(a,b){var c=cq(a,this.Ea);this.Sb.g=c;this.yg(a);this.Vf(b,["creativeview"]);this.Ga("impression");this.Ga("creativeview");xu(this,"start");this.Sb=new mu};
g.h.wG=function(a,b,c){a=a.getExtension("AdSense");a=new g.Ll(a.B);var d=b.Eb();(0,window.isNaN)(d)&&(d=g.uh(b.Gc()).width);var e=b.getHeight();(0,window.isNaN)(e)&&(e=g.uh(b.Gc()).height);var f=g.qh(c),k=c instanceof Qe;b=k&&g.t(c.B)?c.B:f.x;c=k&&g.t(c.C)?c.C:f.y;f=Fm();c=["0","aw="+d,"ah="+e,"nx="+b,"ny="+c,"viewMode="+this.Xc,"sdkv=h.0.0.0","eids="+Im(f)];P.g()||(d=g.uh(this.Qa.Cf()),e=this.o?xga(this.o):new g.Md(-1,-1),c=c.concat(["bw="+d.width,"bh="+d.height,"sx="+e.x,"sy="+e.y]));Sm(a,"elementclick",
c);(0,g.H)(this.A,function(a){var b=cq(a.Ob(),this.Ea);this.Sb.g=b;Ay(this,a);this.Ga("click");this.Sb=new mu},this);
this.la("click")};
g.h.Bc=function(a){this.Xc!=a&&(QB.aa.Bc.call(this,a),this.la("expandedChanged"))};
g.h.Wl=function(){QB.aa.Wl.call(this,this.o?15:0,this.o?65:0)};
g.h.UG=function(){UB(this,"skip")};
g.h.HH=function(){UB(this,"close")};g.C(VB,g.M);VB.prototype.o=function(a){if(0==a.Dc||0>=this.A||0>=this.g)return!1;var b=(0,g.G)()/1E3;a=a.Dc-this.B.currentTime;0<a&&(b+=a);return b-this.g<=this.A};g.C(WB,VB);WB.prototype.o=function(a){return 5==a.Ue()?!1:WB.aa.o.call(this,a)};g.C(MB,qu);g.h=MB.prototype;
g.h.Qc=function(a,b,c){null!=this.Ub&&(this.Ub.Vc(),this.Ub.dispose(),this.Ub=null);MB.aa.Qc.call(this,a,b,c);a=this.vf.g.Cb();b=new nz(b);var d=4;c&&0<=c.es&&(d=c.es);var e=new dz;e.D=d;d=Fm().g;e.C=d.g("enable_prefetch_for_postrolls");e.g=d.g("enable_midroll_notify");e.A=d.g("enable_postroll_notify");e.o=d.o("midroll_notify_time_seconds");e.B=d.o("postroll_notify_time_seconds");this.gs=null!=c?c.mA:0;wia(this,a);this.Ub=new ez(b,this.Db.fb(),e);a=this.vf.g.Cb();xia(this,a);yia(this);c=g.$a(this.Db.fb(),
function(a){return 0==a.Dc});
null!=c&&this.Tf()&&bC(this,c);try{c={cfg:!0},c.ads=this.Yf,Ln(In.getInstance(),44,c)}catch(f){}};
g.h.init=function(a){MB.aa.init.call(this,a);this.Fs()};
g.h.tj=function(){this.Re();this.dispatchEvent(new uw(null))};
g.h.destroy=function(){this.dispose()};
g.h.W=function(){this.ib.g=!0;if(0<this.Db.Mc()){var a=this.Db.fb();(0,g.H)(a,this.Ji,this);this.Db.clear()}$B(this);cC(this);null!=this.Qa&&(this.Qa.hide(),this.Qa=null);MB.aa.W.call(this)};
g.h.start=function(){MB.aa.start.call(this)};
g.h.stop=function(){null!=this.ub&&(this.Ji(this.ub),this.Qf())};
g.h.Ab=function(a,b,c){MB.aa.Ab.call(this,a,b,c);this.Ud=a;this.Td=b;this.Xc=c;null!=this.ub&&Dy(this.ub,this.Ud,this.Td,this.Xc)};
g.h.pause=function(){null!=this.ub&&this.ub.pause()};
g.h.resume=function(){null!=this.ub&&this.ub.resume()};
g.h.skip=function(){null!=this.ub&&this.ub.skip()};
g.h.jf=function(){null!=this.ub&&this.ub.jf()};
g.h.setVolume=function(a){MB.aa.setVolume.call(this,a);null!=this.ub&&this.ub.setVolume(a)};
g.h.getCurrentTime=function(){return null!=this.ub?this.ub.getCurrentTime():-1};
g.h.getDuration=function(){return null!=this.ub?this.ub.getDuration():-1};
g.h.Nc=function(){return null!=this.ub?this.ub.Nc():-1};
g.h.Re=function(){var a=g.ob(this.vf.g.Cb());(0,g.H)(this.Db.fb(),g.ya(function(a,c){5==c.Ue()&&g.kb(a,c.Dc)},a));
return a};
g.h.Kb=function(){return null!=this.ub?this.ub.Kb():null};
g.h.Wn=function(){};
g.h.Me=function(a){MB.aa.Me.call(this,a);null!=this.Db&&(0,g.H)(this.Db.fb(),function(b){b.Me(a)})};
g.h.Fs=function(){this.Ub.Hb();this.Ub.Ow();var a=g.oa(0)&&!(0,window.isNaN)(0)?this.vf.g.get(0,[]):[];g.fb(a)&&this.la("contentResumeRequested")};
g.h.handleEvent=function(a){switch(a.type){case "contentTrackingError":break;case "discardAdBreak":ZB(this,this.Db.get(a.g));break;default:g.EB(this.dk,a),aC(this)}};
g.h.ki=function(){this.la("userClose")};
g.h.ji=function(){this.la("autoClose")};
g.h.Ji=function(a){a.destroy();this.Db.remove(g.xa(a));this.ub=null;null!=this.gc&&(this.gc.za(a,jy,this.dispatchEvent,!1,this),this.gc.za(a,"adError",this.bw,!1,this),this.gc.za(a,"allAdsCompleted",this.fz,!1,this),this.gc.za(a,"contentPauseRequested",this.oh,!1,this),this.gc.za(a,"contentResumeRequested",this.Qf,!1,this),this.gc.za(a,"adBreakInitialized",this.gz,!1,this))};
g.h.gN=function(a){this.im=!0;-1==this.ai?a.A=!1:P.g()&&!XB(this)||YB(this);jha(this.Ub)};
g.h.Tk=function(a){if(null!=a.A){var b={};b.adBreakTime=a.A;this.dispatchEvent(new sm("adNotify",null,b))}};
g.h.Vk=function(){this.dispatchEvent(new sm("discardAdNotify",null))};
g.h.fM=function(a){var b=a.A,c=0==b,d=-1==b;this.ck?(c?this.la("contentResumeRequested"):!d||P.g()&&!XB(this)||YB(this),this.ck=!1):(d?g.fg(function(){var b=this.Db.get(a.g);b&&this.Ji(b);P.g()&&!XB(this)||YB(this)},500,this):c&&g.fg(function(){this.la("contentResumeRequested")},100,this),c={},c.adBreakTime=b,this.dispatchEvent(new sm("adBreakReady",null,c)))};
g.h.bw=function(a){var b=a.getError(),c=b.Lb();try{var d={};d.ec=c;Ln(In.getInstance(),44,d)}catch(e){}if(P.g()&&b&&"adLoadError"==b.bc()&&(this.dispatchEvent(a),null!=this.Ub))for(b=this.Ub,a=a.target.Dc,c=0;c<b.g.length;c++)b.g[c].g==a&&(b.g[c].B=!0)};
g.h.fz=function(a){this.Ji(a.target);(XB(this)||!P.g()&&this.im)&&YB(this);this.Hd=null;aC(this)};
g.h.oh=function(){var a=this.Ub;a.o.stop();a.A=!1;this.la("contentPauseRequested")};
g.h.Qf=function(){this.la("contentResumeRequested");this.hp||hz(this.Ub);this.Hd=null};
g.h.gz=function(a){this.Hd=null;var b=a.target;a={};a.adBreakTime=b.Dc;this.dispatchEvent(new sm("prefetched",b.Kb(),a));if(null!=this.Ub){a=this.Ub;for(var b=b.Dc,c=0;c<a.g.length;c++)a.g[c].g==b&&(a.g[c].be=!0)}aC(this)};
g.h.la=function(a){var b=null;null!=this.ub&&(b=this.ub.Kb());this.dispatchEvent(new sm(a,b))};
g.h.Oi=function(a){return g.$a(this.Db.fb(),g.ya(function(a,c){return c.Dc==a},a))};
g.h.SA=function(a,b){P.g()?this.fd=new WB(a,b):this.fd=new VB(a,b);return this.fd};
g.h.Be=function(){return P.g()&&null!=dC(this)&&null!=dC(this).g?dC(this).g.Be():null};
g.h.Rf=function(a){null!=dC(this)&&dC(this).Rf(a)};
g.h.Tf=function(){return!1};g.C(fC,g.qf);fC.prototype.W=function(){null!=this.g&&(this.g.za("adsManagerLoaded",this.dispatchEvent),this.g.za("adError",this.dispatchEvent),this.g.za("adLoadError",this.dispatchEvent),this.g=null);fC.aa.W.call(this)};bc("A AREA BUTTON HEAD INPUT LINK MENU META OPTGROUP OPTION PROGRESS STYLE SELECT SOURCE TEXTAREA TITLE TRACK".split(" "));hC.prototype.stringify=function(a){return kg(this.o,a)};
hC.prototype.parse=function(a){return this.g(a)};iC.prototype.clone=function(){return new iC(this.g,this.F,this.A,this.C,this.B,this.D,this.o,this.G)};kC.prototype.o=0;kC.prototype.reset=function(){this.g=this.A=this.B;this.o=0};
kC.prototype.getValue=function(){return this.A};g.h=lC.prototype;g.h.Uh=null;g.h.lf=!1;g.h.Pj=null;g.h.gt=null;g.h.fl=null;g.h.Yi=null;g.h.Zg=null;g.h.th=null;g.h.mi=null;g.h.cd=null;g.h.ql=0;g.h.nf=null;g.h.to=null;g.h.Vh=null;g.h.tk=-1;g.h.FA=!0;g.h.Gh=!1;g.h.kq=0;g.h.On=null;var sC={},qC={};g.h=lC.prototype;g.h.setTimeout=function(a){this.C=a};
g.h.RQ=function(a){a=a.target;var b=this.On;b&&3==Iw(a)?b.Xi():this.zB(a)};
g.h.zB=function(a){try{if(a==this.cd)a:{var b=Iw(this.cd),c=this.cd.o,d=this.cd.getStatus();if(g.sc&&!g.lc(10)||g.de&&!g.kc("420+")){if(4>b)break a}else if(3>b||3==b&&!g.Oe&&!Lw(this.cd))break a;this.Gh||4!=b||7==c||(8==c||0>=d?this.g.gf(3):this.g.gf(2));CC(this);var e=this.cd.getStatus();this.tk=e;var f=Lw(this.cd);(this.lf=200==e)?(4==b&&uC(this),this.D?(wC(this,b,f),g.Oe&&this.lf&&3==b&&(this.B.X(this.o,"tick",this.HQ),this.o.start())):tC(this,f),this.lf&&!this.Gh&&(4==b?this.g.Fn(this):(this.lf=
!1,pC(this)))):(this.Vh=400==e&&0<f.indexOf("Unknown SID")?3:0,rC(),uC(this),vC(this))}}catch(k){}finally{}};
g.h.HQ=function(){var a=Iw(this.cd),b=Lw(this.cd);this.ql<b.length&&(CC(this),wC(this,a,b),this.lf&&4!=a&&pC(this))};
g.h.TP=function(a){BC((0,g.A)(this.SP,this,a),0)};
g.h.SP=function(a){this.Gh||(CC(this),tC(this,a),pC(this))};
g.h.Zz=function(a){BC((0,g.A)(this.RP,this,a),0)};
g.h.RP=function(a){this.Gh||(uC(this),this.lf=a,this.g.Fn(this),this.g.gf(4))};
g.h.cancel=function(){this.Gh=!0;uC(this)};
g.h.kQ=function(){this.Pj=null;var a=(0,g.G)();0<=a-this.gt?(2!=this.Yi&&this.g.gf(3),uC(this),this.Vh=2,rC(),vC(this)):AC(this,this.gt-a)};g.h=GC.prototype;g.h.hq=null;g.h.he=null;g.h.Pn=!1;g.h.uw=null;g.h.Am=null;g.h.iq=null;g.h.jq=null;g.h.Ee=null;g.h.qg=-1;g.h.sk=null;g.h.Uj=null;g.h.connect=function(a){this.jq=a;a=HC(this.g,null,this.jq);rC();this.uw=(0,g.G)();var b=this.g.J;null!=b?(this.sk=b[0],(this.Uj=b[1])?(this.Ee=1,IC(this)):(this.Ee=2,KC(this))):(Wl(a,"MODE","init"),this.he=new lC(this,0,void 0,void 0,void 0),this.he.Uh=this.hq,oC(this.he,a,!1,null,!0),this.Ee=0)};
g.h.EF=function(a){if(a)this.Ee=2,KC(this);else{rC();var b=this.g;b.Ve=b.Rg.qg;dD(b,9)}a&&this.gf(2)};
g.h.Hp=function(a){return this.g.Hp(a)};
g.h.abort=function(){this.he&&(this.he.cancel(),this.he=null);this.qg=-1};
g.h.tw=function(){return!1};
g.h.Sz=function(a,b){this.qg=a.tk;if(0==this.Ee)if(b){try{var c=this.o.parse(b)}catch(d){c=this.g;c.Ve=this.qg;dD(c,2);return}this.sk=c[0];this.Uj=c[1]}else c=this.g,c.Ve=this.qg,dD(c,2);else if(2==this.Ee)if(this.Pn)rC(),this.iq=(0,g.G)();else if("11111"==b){if(rC(),this.Pn=!0,this.Am=(0,g.G)(),c=this.Am-this.uw,!g.sc||g.lc(10)||500>c)this.qg=200,this.he.cancel(),rC(),JC(this.g,this,!0)}else rC(),this.Am=this.iq=(0,g.G)(),this.Pn=!1};
g.h.Fn=function(){this.qg=this.he.tk;if(this.he.lf)0==this.Ee?this.Uj?(this.Ee=1,IC(this)):(this.Ee=2,KC(this)):2==this.Ee&&((!g.sc||g.lc(10)?!this.Pn:200>this.iq-this.Am)?(rC(),JC(this.g,this,!1)):(rC(),JC(this.g,this,!0)));else{0==this.Ee?rC():2==this.Ee&&rC();var a=this.g;a.Ve=this.qg;dD(a,2)}};
g.h.kl=function(){return this.g.kl()};
g.h.isActive=function(){return this.g.isActive()};
g.h.gf=function(a){this.g.gf(a)};g.h=LC.prototype;g.h.fk=null;g.h.Jd=null;g.h.yc=null;g.h.gq=null;g.h.Dm=null;g.h.Tu=null;g.h.Qm=null;g.h.Rk=0;g.h.cM=0;g.h.kd=null;g.h.Sg=null;g.h.ig=null;g.h.Kh=null;g.h.Rg=null;g.h.so=null;g.h.ij=-1;g.h.yx=-1;g.h.Ve=-1;g.h.ik=0;g.h.Di=0;g.h.Ih=8;var eD=new g.qf;g.C(MC,g.Me);g.C(NC,g.Me);g.C(OC,g.Me);g.h=LC.prototype;g.h.connect=function(a,b,c,d,e){rC();this.gq=b;this.fk=c||{};d&&g.t(e)&&(this.fk.OSID=d,this.fk.OAID=e);this.D?(BC((0,g.A)(this.vv,this,a),100),UC(this)):this.vv(a)};
g.h.vv=function(a){this.Rg=new GC(this);this.Rg.hq=null;this.Rg.o=this.C;this.Rg.connect(a)};
g.h.tw=function(){return 0==this.g};
g.h.Xz=function(a){this.Sg=null;ZC(this,a)};
g.h.Wz=function(){this.ig=null;this.yc=new lC(this,0,this.A,"rpc",this.F);this.yc.Uh=null;this.yc.kq=0;var a=this.Tu.clone();g.Ul(a,"RID","rpc");g.Ul(a,"SID",this.A);g.Ul(a,"CI",this.so?"0":"1");g.Ul(a,"AID",this.ij);QC(this,a);if(!g.sc||g.lc(10))g.Ul(a,"TYPE","xmlhttp"),oC(this.yc,a,!0,this.Qm,!1);else{g.Ul(a,"TYPE","html");var b=this.yc,c=!!this.Qm;b.Yi=3;b.Zg=Xl(a.clone());zC(b,c)}};
g.h.Sz=function(a,b){if(0!=this.g&&(this.yc==a||this.Jd==a))if(this.Ve=a.tk,this.Jd==a&&3==this.g)if(7<this.Ih){try{var c=this.C.parse(b)}catch(f){c=null}if(g.sa(c)&&3==c.length)if(0==c[0])a:{if(!this.ig){if(this.yc)if(this.yc.fl+3E3<this.Jd.fl)VC(this),this.yc.cancel(),this.yc=null;else break a;bD(this);rC()}}else this.yx=c[1],0<this.yx-this.ij&&37500>c[2]&&this.so&&0==this.Di&&!this.Kh&&(this.Kh=BC((0,g.A)(this.FM,this),6E3));else dD(this,11)}else b!=Toa.wV.g&&dD(this,11);else if(this.yc==a&&VC(this),
!E(b)){c=this.C.parse(b);g.sa(c);for(var d=0;d<c.length;d++){var e=c[d];this.ij=e[0];e=e[1];2==this.g?"c"==e[0]?(this.A=e[1],this.Qm=e[2],e=e[3],null!=e?this.Ih=e:this.Ih=6,this.g=3,this.kd&&this.kd.ev(this),this.Tu=HC(this,this.kl()?this.Qm:null,this.gq),$C(this)):"stop"==e[0]&&dD(this,7):3==this.g&&("stop"==e[0]?dD(this,7):"noop"!=e[0]&&this.kd&&this.kd.dv(this,e),this.Di=0)}}};
g.h.FM=function(){null!=this.Kh&&(this.Kh=null,this.yc.cancel(),this.yc=null,bD(this),rC())};
g.h.Fn=function(a){if(this.yc==a){VC(this);this.yc=null;var b=2}else if(this.Jd==a)this.Jd=null,b=1;else return;this.Ve=a.tk;if(0!=this.g)if(a.lf)1==b?((0,g.G)(),eD.dispatchEvent(new NC(eD,a.mi?a.mi.length:0)),TC(this),this.B.length=0):$C(this);else{var c=a.Vh,d;if(!(d=3==c||7==c||0==c&&0<this.Ve)){if(d=1==b)this.Jd||this.Sg||1==this.g||2<=this.ik?d=!1:(this.Sg=BC((0,g.A)(this.Xz,this,a),aD(this,this.ik)),this.ik++,d=!0);d=!(d||2==b&&bD(this))}if(d)switch(c){case 1:dD(this,5);break;case 4:dD(this,
10);break;case 3:dD(this,6);break;case 7:dD(this,12);break;default:dD(this,2)}}};
g.h.aG=function(a){if(!g.eb(arguments,this.g))throw Error("Unexpected channel state: "+this.g);};
g.h.ER=function(a){a?rC():(rC(),cD(this,8))};
g.h.Hp=function(a){if(a)throw Error("Can't create secondary domain capable XhrIo object.");a=new Cw;a.G=!1;return a};
g.h.isActive=function(){return!!this.kd&&this.kd.isActive(this)};
g.h.gf=function(){eD.dispatchEvent(new OC(eD))};
g.h.kl=function(){return!(!g.sc||g.lc(10))};
g.h=fD.prototype;g.h.ev=function(){};
g.h.dv=function(){};
g.h.cv=function(){};
g.h.zp=function(){};
g.h.cw=function(){return{}};
g.h.isActive=function(){return!0};g.C(g.hD,g.M);g.h=g.hD.prototype;g.h.subscribe=function(a,b,c){var d=this.o[a];d||(d=this.o[a]=[]);var e=this.Ld;this.g[e]=a;this.g[e+1]=b;this.g[e+2]=c;this.Ld=e+3;d.push(e);return e};
g.h.unsubscribe=function(a,b,c){if(a=this.o[a]){var d=this.g;if(a=g.$a(a,function(a){return d[a+1]==b&&d[a+2]==c}))return this.Qd(a)}return!1};
g.h.Qd=function(a){var b=this.g[a];if(b){var c=this.o[b];0!=this.B?(this.A.push(a),this.g[a+1]=g.y):(c&&g.kb(c,a),delete this.g[a],delete this.g[a+1],delete this.g[a+2])}return!!b};
g.h.Y=function(a,b){var c=this.o[a];if(c){for(var d=Array(arguments.length-1),e=1,f=arguments.length;e<f;e++)d[e-1]=arguments[e];if(this.C)for(e=0;e<c.length;e++){var k=c[e];Fia(this.g[k+1],this.g[k+2],d)}else{this.B++;try{for(e=0,f=c.length;e<f;e++)k=c[e],this.g[k+1].apply(this.g[k+2],d)}finally{if(this.B--,0<this.A.length&&0==this.B)for(;k=this.A.pop();)this.Qd(k)}}return 0!=e}return!1};
g.h.clear=function(a){if(a){var b=this.o[a];b&&((0,g.H)(b,this.Qd,this),delete this.o[a])}else this.g.length=0,this.o={}};
g.h.Mc=function(a){if(a){var b=this.o[a];return b?b.length:0}a=0;for(b in this.o)a+=this.Mc(b);return a};
g.h.W=function(){g.hD.aa.W.call(this);this.clear();this.A.length=0};g.iD.prototype.set=function(a,b){g.t(b)?this.g.set(a,g.mg(b)):this.g.remove(a)};
g.iD.prototype.get=function(a){try{var b=this.g.get(a)}catch(c){return}if(null!==b)try{return g.jg(b)}catch(c){throw"Storage: Invalid value was encountered";}};
g.iD.prototype.remove=function(a){this.g.remove(a)};g.C(jD,g.iD);jD.prototype.set=function(a,b){jD.aa.set.call(this,a,lD(b))};
jD.prototype.o=function(a){a=jD.aa.get.call(this,a);if(!g.t(a)||a instanceof Object)return a;throw"Storage: Invalid value was encountered";};
jD.prototype.get=function(a){if(a=this.o(a)){if(a=a.data,!g.t(a))throw"Storage: Invalid value was encountered";}else a=void 0;return a};g.C(mD,jD);mD.prototype.set=function(a,b,c){if(b=lD(b)){if(c){if(c<(0,g.G)()){mD.prototype.remove.call(this,a);return}b.expiration=c}b.creation=(0,g.G)()}mD.aa.set.call(this,a,b)};
mD.prototype.o=function(a,b){var c=mD.aa.o.call(this,a);if(c)if(!b&&g.nD(c))mD.prototype.remove.call(this,a);else return c};g.C(g.oD,mD);g.C(pD,Gia);pD.prototype.Mc=function(){var a=0;g.El(this.Sd(!0),function(){a++});
return a};
pD.prototype.clear=function(){var a=Vca(this.Sd(!0)),b=this;(0,g.H)(a,function(a){b.remove(a)})};g.C(qD,pD);g.h=qD.prototype;g.h.isAvailable=function(){if(!this.g)return!1;try{return this.g.setItem("__sak","1"),this.g.removeItem("__sak"),!0}catch(a){return!1}};
g.h.set=function(a,b){try{this.g.setItem(a,b)}catch(c){if(0==this.g.length)throw"Storage mechanism: Storage disabled";throw"Storage mechanism: Quota exceeded";}};
g.h.get=function(a){a=this.g.getItem(a);if(!g.u(a)&&null!==a)throw"Storage mechanism: Invalid value was encountered";return a};
g.h.remove=function(a){this.g.removeItem(a)};
g.h.Mc=function(){return this.g.length};
g.h.Sd=function(a){var b=0,c=this.g,d=new Bl;d.next=function(){if(b>=c.length)throw Cl;var d=c.key(b++);if(a)return d;d=c.getItem(d);if(!g.u(d))throw"Storage mechanism: Invalid value was encountered";return d};
return d};
g.h.clear=function(){this.g.clear()};
g.h.key=function(a){return this.g.key(a)};g.C(rD,qD);g.C(sD,qD);g.C(tD,pD);tD.prototype.set=function(a,b){this.o.set(this.g+a,b)};
tD.prototype.get=function(a){return this.o.get(this.g+a)};
tD.prototype.remove=function(a){this.o.remove(this.g+a)};
tD.prototype.Sd=function(a){var b=this.o.Sd(!0),c=this,d=new Bl;d.next=function(){for(var d=b.next();d.substr(0,c.g.length)!=c.g;)d=b.next();return a?d.substr(c.g.length):c.o.get(d)};
return d};vD.prototype.getValue=function(){return this.g};
vD.prototype.clone=function(){return new vD(this.Ld,this.g)};g.h=wD.prototype;g.h.remove=function(){var a=this.g,b=a.length,c=a[0];if(!(0>=b)){if(1==b)gb(a);else{a[0]=a.pop();for(var a=0,b=this.g,d=b.length,e=b[a];a<d>>1;){var f=2*a+1,k=2*a+2,f=k<d&&b[k].Ld<b[f].Ld?k:f;if(b[f].Ld>e.Ld)break;b[a]=b[f];a=f}b[a]=e}return c.getValue()}};
g.h.fb=function(){for(var a=this.g,b=[],c=a.length,d=0;d<c;d++)b.push(a[d].getValue());return b};
g.h.Cb=function(){for(var a=this.g,b=[],c=a.length,d=0;d<c;d++)b.push(a[d].Ld);return b};
g.h.clone=function(){return new wD(this)};
g.h.Mc=function(){return this.g.length};
g.h.isEmpty=function(){return g.fb(this.g)};
g.h.clear=function(){gb(this.g)};g.C(yD,wD);/*
 Portions of this code are from MochiKit, received by
 The Closure Authors under the MIT license. All other code is Copyright
 2005-2009 The Closure Authors. All Rights Reserved.
*/
zD.prototype.cancel=function(a){if(this.g)this.A instanceof zD&&this.A.cancel();else{if(this.o){var b=this.o;delete this.o;a?b.cancel(a):(b.G--,0>=b.G&&b.cancel())}this.O?this.O.call(this.M,this):this.J=!0;this.g||(a=new JD,DD(this),BD(this,!1,a))}};
zD.prototype.K=function(a,b){this.F=!1;BD(this,a,b)};
zD.prototype.jg=function(a){DD(this);BD(this,!0,a)};
zD.prototype.then=function(a,b,c){var d,e,f=new g.Kf(function(a,b){d=a;e=b});
ED(this,d,function(a){a instanceof JD?f.cancel():e(a)});
return f.then(a,b,c)};
Hf(zD);zD.prototype.isError=function(a){return a instanceof Error};
g.C(CD,Ca);CD.prototype.message="Deferred has already fired";CD.prototype.name="AlreadyCalledError";g.C(JD,Ca);JD.prototype.message="Deferred was canceled";JD.prototype.name="CanceledError";ID.prototype.o=function(){delete HD[this.Aa];throw this.g;};
var HD={};g.C(KD,Hc);var Hia=[2];var Sma={DT:0,BT:1,zT:2,EV:3,CT:4,JV:5,IV:6,GV:7,FV:8,BV:9,CV:10,HV:11,AV:12,ET:13,FT:14,AT:15,GT:16,HT:17},Tma={XT:0,UT:1,TT:2,VT:3,ST:4,NT:5,QT:6,RT:7,PT:8,LT:9,cU:10,KT:11,OT:12,JT:13,aU:14,IT:15,bU:16,ZT:17},Uma={hX:0,iX:1,kX:2,jX:3,fX:4,gX:5,KV:6};g.sG=window.performance&&window.performance.timing&&window.performance.now?function(){return window.performance.timing.navigationStart+window.performance.now()}:function(){return(new Date).getTime()};g.MD=window.yt&&window.yt.config_||window.ytcfg&&window.ytcfg.data_||{};g.v("yt.config_",g.MD,void 0);var PD=window.yt&&window.yt.msgs_||window.ytcfg&&window.ytcfg.msgs||{};g.v("yt.msgs_",PD,void 0);Aa=function(a,b){b=void 0===b?{}:b;var c=a in PD?PD[a]:a,d;for(d in b)var e=(""+b[d]).replace(/\$/g,"$$$$"),c=c.replace(new RegExp("\\{\\$"+d+"\\}","gi"),e),c=c.replace(new RegExp("\\$"+d,"gi"),e);return c};g.SD=void 0;var oE={"do":function(a,b){var c=a[0];a[0]=a[b%a.length];a[b]=c},
gH:function(a){a.reverse()},
NI:function(a,b){a.splice(0,b)}};var zpa,gka,fka,Apa,vQ,tma,Ska,Bpa,SM,DO,Tka;zpa=/^https?:\/\/([^.]*\.moatads\.com\/|e[0-9]+\.yt\.srs\.doubleverify\.com|pagead2\.googlesyndication\.com\/pagead\/gen_204\?id=yt3p&sr=1&|pm\.adsafeprotected\.com\/youtube|pm\.test-adsafeprotected\.com\/youtube|youtube[0-9]+\.moatpixel\.com\/)/;gka=/^https?:\/\/([A-Za-z0-9-]{1,63}\.)*(corp\.google\.com|borg\.google\.com|googleapis\.com|prod\.google\.com|sandbox\.google\.com|staging\-www\.sandbox\.googleapis\.com)(:[0-9]+)?\//;fka=/^http:\/\/0\.[a-z0-9\-_]+\.[a-z0-9\-_]+\.l2gfe\.[a-z0-9_]+\.([a-z]{2}|i)\.borg\.google\.com(:[0-9]+)?\/|^https?:\/\/((?:uytfe\.corp|dev-uytfe\.corp|uytfe\.sandbox)\.google\.com\/|([-\w]*www[-\w]*\.|[-\w]*web[-\w]*\.|[-\w]*canary[-\w]*\.|[-\w]*dev[-\w]*\.|[-\w]{1,3}\.)+youtube(education|-nocookie)?\.com\/|([a-z]+\.)?[a-z0-9\-]{1,63}\.([a-z]{3}|i)\.corp\.google\.com(:[0-9]+)?\/|(docs|drive)\.google\.com\/(a\/[^/\\%]+\/|)|[A-Za-z0-9]+(-v6)?\.prod\.google\.com(:[0-9]+)?\/|m?web-ppg\.corp\.google\.com\/|play\.google\.com\/)/;
Apa=/^https?:\/\/(www\.google\.com\/pagead\/sul|www\.google\.com\/pagead\/xsul|www\.youtube\.com\/pagead\/psul|www\.youtube\.com\/pagead\/slav|www\.youtube\.com\/pagead\/sul)/;vQ=/^https?:\/\/([A-Za-z0-9-]{1,63}\.)*(corp\.google\.com|docs\.google\.com|drive\.google\.com|prod\.google\.com|sandbox\.google\.com|plus\.google\.com|mail\.google\.com|youtube\.com|youtubeeducation\.com)(:[0-9]+)?\//;tma=/^https?:\/\/([A-Za-z0-9-]{1,63}\.)*(corp\.google\.com|borg\.google\.com|prod\.google\.com|sandbox\.google\.com|youtube\.com)(:[0-9]+)?\//;
Ska=/^https?:\/\/([A-Za-z0-9-]{1,63}\.)*(corp\.google\.com|borg\.google\.com|prod\.google\.com|video\.google\.com|youtube\.com|youtube\.googleapis\.com|youtube\-nocookie\.com|youtubeeducation\.com)(:[0-9]+)?\/\/*embed(\/+|\?|#|$)/;g.XP=/^((http(s)?):)?\/\/((((lh[3-6](-tt|-d[a-g,z])?\.((ggpht)|(googleusercontent)|(google)))|(([1-4]\.bp\.blogspot)|(bp[0-3]\.blogger))|((((cp|ci|gp)[3-6])|(ap[1-2]))\.(ggpht|googleusercontent))|(gm[1-4]\.ggpht)|(((yt[3-4])|(sp[1-3]))\.(ggpht|googleusercontent)))\.com)|(dp[3-6]\.googleusercontent\.cn)|(dp4\.googleusercontent\.com)|(photos\-image\-(dev|qa)(-auth)?\.corp\.google\.com)|((dev|dev2|dev3|qa|qa2|qa3|qa-red|qa-blue|canary)[-.]lighthouse\.sandbox\.google\.com\/image)|(image\-dev\-lighthouse(-auth)?\.sandbox\.google\.com(\/image)?))\/|^https?:\/\/(([A-Za-z0-9-]{1,63}\.)*(corp\.google\.com|borg\.google\.com|docs\.google\.com|drive\.google\.com|googleplex\.com|play\.google\.com|prod\.google\.com|sandbox\.google\.com|plus\.google\.com|video\.google\.com|youtube\.com|ytimg\.com)(:[0-9]+)?\/|s2\.googleusercontent\.com\/s2\/favicons\?|yt[3-4]\.ggpht\.com\/)/;
Bpa=/^https?.*#ocr$|^https?:\/\/(aksecure\.imrworldwide\.com\/|cdn\.imrworldwide\.com\/|secure\-..\.imrworldwide\.com\/)/;g.Q3=/^https?:\/\/(googleads\.g\.doubleclick\.net\/(aclk|pagead\/conversion)|www\.google\.com\/(aclk|pagead\/conversion)|www\.googleadservices\.com\/(aclk|pagead\/(aclk|conversion)))/;SM=/^((http(s)?):)?\/\/((((lh[3-6](-tt|-d[a-g,z])?\.((ggpht)|(googleusercontent)|(google)))|(([1-4]\.bp\.blogspot)|(bp[0-3]\.blogger))|((((cp|ci|gp)[3-6])|(ap[1-2]))\.(ggpht|googleusercontent))|(gm[1-4]\.ggpht)|(((yt[3-4])|(sp[1-3]))\.(ggpht|googleusercontent)))\.com)|(dp[3-6]\.googleusercontent\.cn)|(dp4\.googleusercontent\.com)|(photos\-image\-(dev|qa)(-auth)?\.corp\.google\.com)|((dev|dev2|dev3|qa|qa2|qa3|qa-red|qa-blue|canary)[-.]lighthouse\.sandbox\.google\.com\/image)|(image\-dev\-lighthouse(-auth)?\.sandbox\.google\.com(\/image)?))\/|^https?:\/\/([A-Za-z0-9-]{1,63}\.)*(ba\.l\.google\.com|c\.googlesyndication\.com|corp\.google\.com|borg\.google\.com|docs\.google\.com|drive\.google\.com|googleplex\.com|googlevideo\.com|play\.google\.com|prod\.google\.com|sandbox\.google\.com|plus\.google\.com|mail\.google\.com|ed\.video\.google\.com|vp\.video\.l\.google\.com|youtube\.com|youtubeeducation\.com|xfx7\.com|yt\.akamaized\.net)(:[0-9]+)?\//;
DO=/^https?:\/\/(([A-Za-z0-9-]{1,63}\.)*(imasdk\.googleapis\.com|2mdn\.net|googlesyndication\.com|corp\.google\.com|borg\.google\.com|googleads\.g\.doubleclick\.net|prod\.google\.com|static\.doubleclick\.net|static\.googleadsserving\.cn|studioapi\.doubleclick\.net|youtube\.com|youtube\.googleapis\.com|youtube\-nocookie\.com|youtubeeducation\.com|ytimg\.com)(:[0-9]+)?\/|lightbox-(demos|builder)\.appspot\.com\/|s[01](qa)?\.2mdn\.net\/ads\/richmedia\/studio\/mu\/templates\/tetris|tpc\.googlesyndication\.com\/safeframe\/|www\.gstatic\.com\/doubleclick\/studio\/innovation\/h5\/layouts\/tetris|www\.gstatic\.com\/doubleclick\/studio\/innovation\/ytplayer)/;
Tka=/^https?:\/\/(([A-Za-z0-9-]{1,63}\.)*(imasdk\.googleapis\.com|corp\.google\.com|borg\.google\.com|docs\.google\.com|drive\.google\.com|googleads\.g\.doubleclick\.net|googleplex\.com|play\.google\.com|prod\.google\.com|sandbox\.google\.com|photos\.google\.com|picasaweb\.google\.com|get\.google\.com|lh2\.google\.com|plus\.google\.com|spaces\.google\.com|books\.googleusercontent\.com|blogger\.com|mail\.google\.com|play\-books\-internal\-sandbox\.googleusercontent\.com|talkgadget\.google\.com|survey\.g\.doubleclick\.net|youtube\.com|youtube\.googleapis\.com|youtube\-nocookie\.com|youtubeeducation\.com|vevo\.com|jamboard\.google\.com)(:[0-9]+)?\/|(www\.|encrypted\.)?google\.(cat|com(\.(a[fgiru]|b[dhnorz]|c[ouy]|do|e[cgt]|fj|g[hit]|hk|jm|kh|kw|l[bcy]|m[mtxy]|n[afgip]|om|p[aeghkry]|qa|s[abglv]|t[jnrw]|ua|uy|vc|vn))?|a[cdelmstz]|c[acdfghilmnvz]|b[aefgijsty]|ee|es|d[ejkmz]|g[aefglmpry]|f[imr]|i[emoqrst]|h[nrtu]|k[giz]|je|jo|m[degklnsuvw]|l[aiktuv]|n[eloru]|p[lnst]|s[cehikmnort]|r[osuw]|us|t[dgklmnot]|ws|vg|vu|co\.(ao|bw|ck|cr|i[dln]|jp|ke|kr|ls|ma|mz|nz|th|tz|u[gkz]|ve|vi|z[amw]))\/(search|webhp)\?|24e12c4a-a-95274a9c-s-sites\.googlegroups\.com\/a\/google\.com\/flash-api-test-harness\/apiharness\.swf|lightbox-(demos|builder)\.appspot\.com\/|s0\.2mdn\.net\/instream\/html5\/native\/|s[01](qa)?\.2mdn\.net\/ads\/richmedia\/studio\/mu\/templates\/tetris|tpc\.googlesyndication\.com\/safeframe\/|www\.gstatic\.com\/doubleclick\/studio\/innovation\/h5\/layouts\/tetris)/;(0,g.G)();var sE=g.t(window.XMLHttpRequest)?function(){return new window.XMLHttpRequest}:g.t(window.ActiveXObject)?function(){return new window.ActiveXObject("Microsoft.XMLHTTP")}:null;var IE={"X-Goog-Visitor-Id":"SANDBOXED_VISITOR_ID","X-YouTube-Client-Name":"INNERTUBE_CONTEXT_CLIENT_NAME","X-YouTube-Client-Version":"INNERTUBE_CONTEXT_CLIENT_VERSION","X-Youtube-Identity-Token":"ID_TOKEN","X-YouTube-Page-CL":"PAGE_CL","X-YouTube-Page-Label":"PAGE_BUILD_LABEL","X-YouTube-Variants-Checksum":"VARIANTS_CHECKSUM"};var WN=GO||FO;var $E={},Pia=0;var Ria={yU:"net.badstatus",AZ:"net.retryexhausted",TIMEOUT:"net.timeout",UNKNOWN:"net.unknown"};g.p(bF,Ca);var Qia=bF;g.p(eF,Ca);eF.prototype.name="BiscottiError";g.p(fF,Ca);fF.prototype.name="BiscottiMissingError";gF.prototype.then=function(a,b,c){try{if(g.t(this.o))return a?Of(a.call(c,this.o)):Of(this.o);if(g.t(this.g)){if(!b)return Pf(this.g);var d=b.call(c,this.g);return!g.t(d)&&this.g.A?Pf(this.g):Of(d)}throw Error("Invalid Result state");}catch(e){return Pf(e)}};
Hf(gF);var iF={format:"RAW",method:"GET",timeout:5E3,withCredentials:!0},hF=null;var oF={};var Cpa,tF;Cpa=0;tF=g.de?"webkit":g.dh?"moz":g.sc?"ms":g.Oe?"o":"";g.Dpa=g.x("ytDomDomGetNextId")||function(){return++Cpa};
g.v("ytDomDomGetNextId",g.Dpa,void 0);var Uia={stopImmediatePropagation:1,stopPropagation:1,preventMouseEvent:1,preventManipulation:1,preventDefault:1,layerX:1,layerY:1,screenX:1,screenY:1,scale:1,rotation:1,webkitMovementX:1,webkitMovementY:1};zF.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())};
zF.prototype.ox=function(){return this.event?!1===this.event.returnValue:!1};
zF.prototype.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())};
zF.prototype.stopImmediatePropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopImmediatePropagation&&this.event.stopImmediatePropagation())};var BF=g.x("ytEventsEventsListeners")||{};g.v("ytEventsEventsListeners",BF,void 0);var CF=g.x("ytEventsEventsCounter")||{count:0};g.v("ytEventsEventsCounter",CF,void 0);var Epa=vf(function(){var a=!1;try{var b=Object.defineProperty({},"passive",{get:function(){a=!0}});
window.addEventListener("test",null,b)}catch(c){}return a});g.NF.prototype.X=function(a,b,c,d){c=(0,g.A)(c,d||this.o);a=g.DF(a,b,c);this.g.push(a);return a};
g.NF.prototype.za=function(a){g.EF(a);g.kb(this.g,a)};g.p(PF,g.M);PF.prototype.T=function(a,b,c,d,e){c=rE((0,g.A)(c,d||this.o));c={target:a,name:b,jg:c};var f;e&&Epa()&&(f={passive:!0});a.addEventListener(b,c.jg,f);this.g.push(c);return c};
PF.prototype.za=function(a){for(var b=0;b<this.g.length;b++)if(this.g[b]==a){this.g.splice(b,1);a.target.removeEventListener(a.name,a.jg,!1);break}};
PF.prototype.W=function(){QF(this);g.M.prototype.W.call(this)};g.C(g.RF,g.M);g.RF.prototype.subscribe=function(a,b,c){return this.na()?0:this.ba.subscribe(a,b,c)};
g.RF.prototype.unsubscribe=function(a,b,c){return this.na()?!1:this.ba.unsubscribe(a,b,c)};
g.RF.prototype.Qd=function(a){return this.na()?!1:this.ba.Qd(a)};
g.RF.prototype.Y=function(a,b){return this.na()?!1:this.ba.Y.apply(this.ba,arguments)};g.p(g.TF,g.RF);g.h=g.TF.prototype;g.h.cancel=function(){this.B&&(this.B=!1,this.Y("dragend",0,0,null));this.o&&(this.o=!1,this.Y("hoverend",0,0,null),QF(this.g),SF(this))};
g.h.Px=function(a){QF(this.g);UF(this,VF("move"),this.Nx);UF(this,VF("out"),this.Ox);UF(this,"touchstart",this.pr);this.A&&UF(this,VF("down"),this.nr);var b=g.FF(a);a=HF(a);this.o=!0;this.Y("hoverstart",a.x,a.y,b);this.Y("hovermove",a.x,a.y,b)};
g.h.Nx=function(a){var b=g.FF(a);a=HF(a);if(this.C){var c=this.C;this.C=null;if(IF(c)==b&&Nd(HF(c),a))return}this.Y("hovermove",a.x,a.y,b)};
g.h.Ox=function(a){var b=HF(a),c=IF(a);c&&g.we(this.D,c)?(this.C=a,this.Y("hovermove",b.x,b.y,c)):(QF(this.g),SF(this),this.o=!1,this.Y("hoverend",b.x,b.y,c))};
g.h.UL=function(a){this.Px(a);this.nr(a)};
g.h.nr=function(a){if(!g.oa(a.button)||0==a.button){QF(this.g);this.g.T(window.document,VF("move"),this.TL);this.g.T(window.document,VF("up"),this.XI);var b=g.FF(a);if(g.de)UF(this,"dragstart",this.UF);else if(g.MF(a),(g.ZO||g.dh)&&b)a:{for(var c=b;c;){if(g.Ce(c)||"-1"===c.getAttribute("tabindex")){c.focus();break a}c=c.parentElement}window.document.activeElement.blur()}this.B=!0;a=HF(a);this.Y("dragstart",a.x,a.y,b);this.Y("dragmove",a.x,a.y,b)}};
g.h.UF=function(a){g.MF(a)};
g.h.TL=function(a){var b=g.FF(a);b==window.document&&(b=null);a=HF(a);this.Y("hovermove",a.x,a.y,b);this.Y("dragmove",a.x,a.y,b)};
g.h.XI=function(a){QF(this.g);this.B=!1;var b=JF(a),c=g.FF(a);a=HF(a);b&&g.we(this.D,b)?(UF(this,VF("move"),this.Nx),UF(this,VF("out"),this.Ox),UF(this,VF("down"),this.nr),UF(this,"touchstart",this.pr),this.Y("dragend",a.x,a.y,c)):(SF(this),this.o=!1,this.Y("dragend",a.x,a.y,c),this.Y("hoverend",a.x,a.y,c))};
g.h.pr=function(a){var b=a.changedTouches[0];b&&(QF(this.g),UF(this,"touchmove",this.YI),UF(this,"touchend",this.Qx),UF(this,"touchcancel",this.Qx),this.F=b.identifier,a=g.FF(a),this.o||(this.o=!0,this.Y("hoverstart",b.pageX,b.pageY,a)),this.Y("hovermove",b.pageX,b.pageY,a),this.A&&(this.B=!0,this.Y("dragstart",b.pageX,b.pageY,a),this.Y("dragmove",b.pageX,b.pageY,a)))};
g.h.YI=function(a){var b=WF(this,a);b&&(this.A&&g.MF(a),a=g.FF(a),this.Y("hovermove",b.pageX,b.pageY,a),this.A&&this.Y("dragmove",b.pageX,b.pageY,a))};
g.h.Qx=function(a){var b=WF(this,a);if(b){QF(this.g);SF(this);this.o=!1;var c=g.FF(a);this.A&&(this.G||g.MF(a),this.B=!1,this.Y("dragend",b.pageX,b.pageY,c));this.Y("hoverend",b.pageX,b.pageY,c)}};
g.h.W=function(){this.A&&(g.de&&this.D.removeAttribute("draggable"),this.D.style.touchAction="");QF(this.g);g.RF.prototype.W.call(this)};var Wia={enablejsapi:1},Xia={},Yia={allowscriptaccess:"always",allowfullscreen:"true",bgcolor:"#000000"};XF.prototype.clone=function(){var a=new XF,b;for(b in this)if(this.hasOwnProperty(b)){var c=this[b];"object"==ra(c)?a[b]=g.Wb(c):a[b]=c}return a};var KG={},JG=0;var cja={uU:"atp",VZ:"ska",mZ:"que",xY:"mus",RZ:"sus"};var Fpa=g.x("ytPubsubPubsubInstance")||new g.hD;g.hD.prototype.subscribe=g.hD.prototype.subscribe;g.hD.prototype.unsubscribeByKey=g.hD.prototype.Qd;g.hD.prototype.publish=g.hD.prototype.Y;g.hD.prototype.clear=g.hD.prototype.clear;g.v("ytPubsubPubsubInstance",Fpa,void 0);g.aG=g.x("ytPubsubPubsubSubscribedKeys")||{};g.v("ytPubsubPubsubSubscribedKeys",g.aG,void 0);g.cG=g.x("ytPubsubPubsubTopicToKeys")||{};g.v("ytPubsubPubsubTopicToKeys",g.cG,void 0);var bG=g.x("ytPubsubPubsubIsSynchronous")||{};
g.v("ytPubsubPubsubIsSynchronous",bG,void 0);var $ia={log_event:"events",log_interaction:"interactions"},Gpa=Object.create(null);Gpa.log_event="GENERIC_EVENT_LOGGING";Gpa.log_interaction="INTERACTION_LOGGING";var qG={},iG={},oG=0,pG=g.x("ytLoggingTransportLogPayloadsQueue_")||{};g.v("ytLoggingTransportLogPayloadsQueue_",pG,void 0);var jG=g.x("ytLoggingTransportTokensToCttTargetIds_")||{};g.v("ytLoggingTransportTokensToCttTargetIds_",jG,void 0);var rG=g.x("ytLoggingTransportDispatchedStats_")||{};g.v("ytLoggingTransportDispatchedStats_",rG,void 0);
var Hpa=g.x("ytLoggingTransportCapturedTime_")||{};g.v("ytytLoggingTransportCapturedTime_",Hpa,void 0);var Ipa=tG;g.AG.prototype.o=function(){return{context:xG(this.g)}};
g.AG.prototype.A=function(a,b,c){g.OD("VISITOR_DATA")||g.qE(Error("Missing VISITOR_DATA when sending innertube request."));var d={headers:{"Content-Type":"application/json","X-Goog-Visitor-Id":g.OD("VISITOR_DATA","")},Rb:b,lA:"JSON",bd:c.bd,Mb:function(a,b){c.Mb&&c.Mb(b)},
onError:function(a,b){if(c.onError)c.onError(b)},
timeout:c.timeout,withCredentials:!0},e=g.Al([]);e&&(d.headers.Authorization=e,d.headers["X-Goog-AuthUser"]=g.OD("SESSION_INDEX",0));var f=this.g.xhrApiaryHost;f&&!f.startsWith("http")&&(f="//"+f);g.aF("youtubei_for_web")&&(f="");var k=this.g.gn;k&&(f=k);e&&!f&&(d.headers["x-origin"]=window.location.origin);g.ME(""+f+zG(this.g.innertubeApiVersion,a,b)+"?alt=json&key="+this.g.innertubeApiKey,d)};var HG=g.x("ytLoggingLatencyUsageStats_")||{};g.v("ytLoggingLatencyUsageStats_",HG,void 0);var IG=0;var Jpa;Jpa=new rD;g.LG=Jpa.isAvailable()?new g.oD(Jpa):null;var MG,Kpa=new sD;MG=Kpa.isAvailable()?new g.oD(Kpa):null;RG.prototype.jm=function(){var a=new RG({id:this.id,name:this.name,app:this.app,type:this.type,user:this.username,userAvatarUri:this.avatar,theme:this.theme,capabilities:this.capabilities.fb().join(","),experiments:this.experiments.fb().join(",")});a.A=this.A;a.o=this.o;a.g=this.g;return a};g.C(TG,g.M);TG.prototype.C=function(){500<this.g&&24E4>2*this.g&&(this.g*=2);this.B();this.A&&this.start()};
TG.prototype.start=function(){this.o.ae(this.g);this.A=(0,g.G)()+this.g};
TG.prototype.stop=function(){this.o.stop();this.A=0};
TG.prototype.isActive=function(){return this.o.isActive()};g.C(UG,fD);g.h=UG.prototype;g.h.subscribe=function(a,b,c){return this.A.subscribe(a,b,c)};
g.h.unsubscribe=function(a,b,c){return this.A.unsubscribe(a,b,c)};
g.h.Qd=function(a){return this.A.Qd(a)};
g.h.Y=function(a,b){return this.A.Y.apply(this.A,arguments)};
g.h.dispose=function(){this.K||(this.K=!0,g.Ke(this.A),VG(this),g.Ke(this.o),this.o=null)};
g.h.na=function(){return this.K};
g.h.connect=function(a,b,c){if(!this.g||2!=this.g.g){this.J="";this.o.stop();this.C=a||null;this.B=b||0;a=this.M+"/test";b=this.M+"/bind";var d=new LC("1",c?c.firstTestResults:null,c?c.secondTestResults:null,this.O),e=this.g;e&&(e.kd=null);d.kd=this;this.g=d;e?this.g.connect(a,b,this.D,e.A,e.ij):c?this.g.connect(a,b,this.D,c.sessionId,c.arrayId):this.g.connect(a,b,this.D)}};
g.h.sendMessage=function(a,b){var c={_sc:a};b&&g.Zb(c,b);this.o.isActive()||2==(this.g?this.g.g:0)?this.F.push(c):WG(this)&&WC(this.g,c)};
g.h.ev=function(){SG(this.o);this.C=null;this.B=0;if(this.F.length){var a=this.F;this.F=[];for(var b=0,c=a.length;b<c;++b)WC(this.g,a[b])}this.Y("handlerOpened")};
g.h.cv=function(a,b){var c=2==b&&401==this.g.Ve;if(4!=b&&!c){if(6==b||410==this.g.Ve)c=this.o,c.o.stop(),c.g=500;this.o.start()}this.Y("handlerError",b)};
g.h.zp=function(a,b,c){if(!this.o.isActive())this.Y("handlerClosed");else if(c)for(a=0,b=c.length;a<b;++a){var d=c[a].map;d&&this.F.push(d)}};
g.h.cw=function(){var a={v:2};this.J&&(a.gsessionid=this.J);0!=this.B&&(a.ui=""+this.B);0!=this.G&&(a.ui=""+this.G);this.C&&g.Zb(a,this.C);return a};
g.h.dv=function(a,b){"S"==b[0]?this.J=b[1]:"gracefulReconnect"==b[0]?(SG(this.o),this.o.start(),SC(this.g)):this.Y("handlerMessage",new bja(b[0],b[1]))};
g.h.jS=function(){this.o.isActive();var a=this.g,b=0;a.yc&&b++;a.Jd&&b++;0!=b?this.o.start():this.connect(this.C,this.B)};var ija=(0,g.G)(),ZG=null,cH=Array(50),bH=-1,dH=!1;g.C(g.nH,g.RF);g.nH.prototype.Zd=function(){return this.g};
g.nH.prototype.contains=function(a){return!!g.lH(this.g,a)};
g.nH.prototype.get=function(a){return a?g.mH(this.g,a):null};
g.nH.prototype.info=function(a){g.aH(this.F,a)};g.C(pH,g.RF);var Lpa=[2E3,2E3,1E3,1E3,1E3,2E3,2E3,5E3,5E3,1E4];g.h=pH.prototype;g.h.start=function(){!this.g&&(0,window.isNaN)(this.o)&&this.DB()};
g.h.stop=function(){this.g&&(this.g.abort(),this.g=null);(0,window.isNaN)(this.o)||(g.vE(this.o),this.o=window.NaN)};
g.h.W=function(){this.stop();pH.aa.W.call(this)};
g.h.DB=function(){this.o=window.NaN;this.g=g.KE(this.F.Sh("/pairing/get_screen"),{method:"POST",Rb:{pairing_code:this.D},timeout:5E3,Mb:(0,g.A)(this.oS,this),onError:(0,g.A)(this.nS,this),bd:(0,g.A)(this.pS,this)})};
g.h.oS=function(a,b){this.g=null;var c=b.screen||{};c.dialId=this.B;c.name=this.C;this.Y("pairingComplete",new eH(c))};
g.h.nS=function(a){this.g=null;a.status&&404==a.status?this.A>=Lpa.length?this.Y("pairingFailed",Error("DIAL polling timed out")):(a=Lpa[this.A],this.o=g.xE((0,g.A)(this.DB,this),a),this.A++):this.Y("pairingFailed",Error("Server error "+a.status))};
g.h.pS=function(){this.g=null;this.Y("pairingFailed",Error("Server not responding"))};var BH,wH="";g.C(EH,g.nH);g.h=EH.prototype;g.h.start=function(){DH(this)&&this.Y("screenChange");!g.OG("yt-remote-lounge-token-expiration")&&FH(this);g.vE(this.o);this.o=g.xE((0,g.A)(this.start,this),1E4)};
g.h.Bo=function(a,b){DH(this);oH(this,a);GH(this,!1);this.Y("screenChange");b(a);a.token||FH(this)};
g.h.remove=function(a,b){var c=DH(this);lja(this,a)&&(GH(this,!1),c=!0);b(a);c&&this.Y("screenChange")};
g.h.no=function(a,b,c,d){var e=DH(this),f=this.get(a.id);f?(f.name!=b&&(f.name=b,GH(this,!1),e=!0),c(a)):d(Error("no such local screen."));e&&this.Y("screenChange")};
g.h.W=function(){g.vE(this.o);EH.aa.W.call(this)};
g.h.EG=function(a){DH(this);var b=this.g.length;a=a&&a.screens||[];for(var c=0,d=a.length;c<d;++c){var e=a[c],f=this.get(e.screenId);f&&(f.token=e.loungeToken,--b)}GH(this,!b);b&&g.aH(this.F,"Missed "+b+" lounge tokens.")};
g.h.DG=function(a){g.aH(this.F,"Requesting lounge tokens failed: "+a)};g.C(IH,g.RF);g.h=IH.prototype;g.h.start=function(){var a=(0,window.parseInt)(g.OG("yt-remote-fast-check-period")||"0",10);(this.B=(0,g.G)()-144E5<a?0:a)?LH(this):(this.B=(0,g.G)()+3E5,g.NG("yt-remote-fast-check-period",this.B),this.qs())};
g.h.isEmpty=function(){return g.Tb(this.g)};
g.h.update=function(){HH("Updating availability on schedule.");var a=this.D(),b=g.Jb(this.g,function(b,d){return b&&!!g.mH(a,d)},this);
KH(this,b)};
g.h.W=function(){g.vE(this.A);this.A=window.NaN;this.o&&(this.o.abort(),this.o=null);IH.aa.W.call(this)};
g.h.qs=function(){g.vE(this.A);this.A=window.NaN;this.o&&this.o.abort();var a=MH(this);if(g.Lb(a)){var b=this.C.Sh("/pairing/get_screen_availability");this.o=this.C.tt(b,{lounge_token:g.Ob(a).join(",")},(0,g.A)(this.tP,this,a),(0,g.A)(this.sP,this))}else KH(this,{}),LH(this)};
g.h.tP=function(a,b){this.o=null;var c=g.Ob(MH(this));if(g.Ab(c,g.Ob(a))){for(var c=b.screens||[],d={},e=0,f=c.length;e<f;++e)d[a[c[e].loungeToken]]="online"==c[e].status;KH(this,d);LH(this)}else this.oc("Changing Screen set during request."),this.qs()};
g.h.sP=function(a){this.oc("Screen availability failed: "+a);this.o=null;LH(this)};
g.h.oc=function(a){g.aH("OnlineScreenService",a)};g.C(g.NH,g.nH);g.h=g.NH.prototype;g.h.start=function(){this.A.start();this.o.start();this.g.length&&(this.Y("screenChange"),this.o.isEmpty()||this.Y("onlineScreenChange"))};
g.h.Bo=function(a,b,c){this.A.Bo(a,b,c)};
g.h.remove=function(a,b,c){this.A.remove(a,b,c);this.o.update()};
g.h.no=function(a,b,c,d){this.A.contains(a)?this.A.no(a,b,c,d):(a="Updating name of unknown screen: "+a.name,g.aH(this.F,a),d(Error(a)))};
g.h.Zd=function(a){return a?this.g:g.nb(this.g,(0,g.re)(this.B,function(a){return!this.contains(a)},this))};
g.h.EB=function(){return(0,g.re)(this.Zd(!0),function(a){return!!this.o.g[a.id]},this)};
g.h.FB=function(a,b,c,d,e){this.info("getDialScreenByPairingCode "+a+" / "+b);var f=new pH(this.D,a,b,c);f.subscribe("pairingComplete",(0,g.A)(function(a){g.Ke(f);d(OH(this,a))},this));
f.subscribe("pairingFailed",function(a){g.Ke(f);e(a)});
f.start();return(0,g.A)(f.stop,f)};
g.h.rS=function(a,b,c,d){g.KE(this.D.Sh("/pairing/get_screen"),{method:"POST",Rb:{pairing_code:a},timeout:5E3,Mb:(0,g.A)(function(a,d){var e=new eH(d.screen||{});if(!e.name||QH(this,e.name)){a:{var f=e.name;for(var m=2,n=b(f,m);QH(this,n);){m++;if(20<m)break a;n=b(f,m)}f=n}e.name=f}c(OH(this,e))},this),
onError:(0,g.A)(function(a){d(Error("pairing request failed: "+a.status))},this),
bd:(0,g.A)(function(){d(Error("pairing request timed out."))},this)})};
g.h.W=function(){g.Ke(this.A);g.Ke(this.o);g.NH.aa.W.call(this)};
g.h.RG=function(){RH(this);this.Y("screenChange");this.o.update()};
g.NH.prototype.dispose=g.NH.prototype.dispose;g.C(TH,g.RF);g.h=TH.prototype;g.h.Gn=function(a){this.A=a;this.Y("sessionScreen",this.A)};
g.h.fe=function(a){this.na()||(a&&UH(this,""+a),this.A=null,this.Y("sessionScreen",null))};
g.h.info=function(a){g.aH(this.O,a)};
g.h.HB=function(){return null};
g.h.ys=function(a){var b=this.o;a?(b.displayStatus=new window.chrome.cast.ReceiverDisplayStatus(a,[]),b.displayStatus.showStop=!0):b.displayStatus=null;window.chrome.cast.setReceiverDisplayStatus(b,(0,g.A)(function(){this.info("Updated receiver status for "+b.friendlyName+": "+a)},this),(0,g.A)(function(){UH(this,"Failed to update receiver status for: "+b.friendlyName)},this))};
g.h.W=function(){this.ys("");TH.aa.W.call(this)};g.C(WH,TH);g.h=WH.prototype;g.h.xs=function(a){if(this.g){if(this.g==a)return;UH(this,"Overriding cast sesison with new session object");this.g.removeUpdateListener(this.D);this.g.removeMessageListener("urn:x-cast:com.google.youtube.mdx",this.C)}this.g=a;this.g.addUpdateListener(this.D);this.g.addMessageListener("urn:x-cast:com.google.youtube.mdx",this.C);sja(this)};
g.h.jj=function(a){this.info("launchWithParams no-op for Cast: "+g.mg(a))};
g.h.stop=function(){this.g?this.g.stop((0,g.A)(function(){this.fe()},this),(0,g.A)(function(){this.fe(Error("Failed to stop receiver app."))},this)):this.fe(Error("Stopping cast device witout session."))};
g.h.ys=g.y;g.h.W=function(){this.info("disposeInternal");g.vE(this.B);this.B=0;this.g&&(this.g.removeUpdateListener(this.D),this.g.removeMessageListener("urn:x-cast:com.google.youtube.mdx",this.C));this.g=null;WH.aa.W.call(this)};
g.h.uQ=function(a,b){if(!this.na())if(b){a:{var c;if(pa.JSON)try{var d=c=pa.JSON.parse(b);break a}catch(e){}d=c=g.jg(b)}if(d)switch(c=""+d.type,d=d.data||{},this.info("onYoutubeMessage_: "+c+" "+g.mg(d)),c){case "mdxSessionStatus":VH(this,d.screenId);break;default:UH(this,"Unknown youtube message: "+c)}else UH(this,"Unable to parse message.")}else UH(this,"No data in message.")};
g.h.kw=function(a,b,c,d){PH(this.J,this.o.label,a,this.o.friendlyName,(0,g.A)(function(e){e?b(e):0<=d?(UH(this,"Screen "+a+" appears to be offline. "+d+" retries left."),g.xE((0,g.A)(this.kw,this,a,b,c,d-1),300)):c(Error("Unable to fetch screen."))},this),c)};
g.h.HB=function(){return this.g};
g.h.sS=function(a){this.na()||a||(UH(this,"Cast session died."),this.fe())};g.C(XH,TH);g.h=XH.prototype;g.h.xs=function(a){this.B=a;this.B.addUpdateListener(this.M)};
g.h.jj=function(a){this.C=a;this.F()};
g.h.stop=function(){this.g();this.g=g.y;g.vE(this.D);this.B?this.B.stop((0,g.A)(this.fe,this,null),(0,g.A)(this.fe,this,"Failed to stop DIAL device.")):this.fe()};
g.h.W=function(){this.g();this.g=g.y;g.vE(this.D);this.B&&this.B.removeUpdateListener(this.M);this.B=null;XH.aa.W.call(this)};
g.h.vS=function(a){this.na()||a||(UH(this,"DIAL session died."),this.g(),this.g=g.y,this.fe())};
g.h.Pq=function(a){this.K=g.kH();if(this.C){var b=new window.chrome.cast.DialLaunchResponse(!0,ZH(this));a(b);YH(this)}else this.F=(0,g.A)(function(){g.vE(this.D);this.F=g.y;this.D=window.NaN;var b=new window.chrome.cast.DialLaunchResponse(!0,ZH(this));a(b);YH(this)},this),this.D=g.xE((0,g.A)(function(){this.F()},this),100)};
g.h.sI=function(a,b){PH(this.J,this.G.receiver.label,a,this.o.friendlyName,(0,g.A)(function(a){a&&a.token?(this.Gn(a),b(new window.chrome.cast.DialLaunchResponse(!1))):this.Pq(b)},this),(0,g.A)(function(a){UH(this,"Failed to get DIAL screen: "+a);
this.Pq(b)},this))};g.C($H,TH);$H.prototype.stop=function(){this.fe()};
$H.prototype.xs=g.y;$H.prototype.jj=function(){g.vE(this.g);this.g=window.NaN;var a=g.mH(this.J.Zd(),this.o.label);a?this.Gn(a):this.fe(Error("No such screen"))};
$H.prototype.W=function(){g.vE(this.g);this.g=window.NaN;$H.aa.W.call(this)};g.C(g.aI,g.RF);g.h=g.aI.prototype;
g.h.init=function(a,b){window.chrome.cast.timeout.requestSession=3E4;var c=new window.chrome.cast.SessionRequest(this.D);c.dialRequest=new window.chrome.cast.DialRequest("YouTube");var d=window.chrome.cast.AutoJoinPolicy.TAB_AND_ORIGIN_SCOPED,e=a?window.chrome.cast.DefaultActionPolicy.CAST_THIS_TAB:window.chrome.cast.DefaultActionPolicy.CREATE_SESSION,c=new window.chrome.cast.ApiConfig(c,(0,g.A)(this.Tz,this),(0,g.A)(this.fP,this),d,e);c.customDialLaunchCallback=(0,g.A)(this.pN,this);window.chrome.cast.initialize(c,
(0,g.A)(function(){this.na()||(window.chrome.cast.addReceiverActionListener(this.B),fja(),this.o.subscribe("onlineScreenChange",(0,g.A)(this.GB,this)),this.A=fI(this),window.chrome.cast.setCustomReceivers(this.A,g.y,(0,g.A)(function(a){this.oc("Failed to set initial custom receivers: "+g.mg(a))},this)),this.Y("yt-remote-cast2-availability-change",dI(this)),b(!0))},this),(0,g.A)(function(a){this.oc("Failed to initialize API: "+g.mg(a));
b(!1)},this))};
g.h.pR=function(a,b){cI("Setting connected screen ID: "+a+" -> "+b);if(this.g){var c=this.g.A;if(!a||c&&c.id!=a)cI("Unsetting old screen status: "+this.g.o.friendlyName),eI(this,null)}if(a&&b){if(!this.g){c=g.mH(this.o.Zd(),a);if(!c){cI("setConnectedScreenStatus: Unknown screen.");return}var d=bI(this,c);d||(cI("setConnectedScreenStatus: Connected receiver not custom..."),d=new window.chrome.cast.Receiver(c.uuid?c.uuid:c.id,c.name),d.receiverType=window.chrome.cast.ReceiverType.CUSTOM,this.A.push(d),
window.chrome.cast.setCustomReceivers(this.A,g.y,(0,g.A)(function(a){this.oc("Failed to set initial custom receivers: "+g.mg(a))},this)));
cI("setConnectedScreenStatus: new active receiver: "+d.friendlyName);eI(this,new $H(this.o,d),!0)}this.g.ys(b)}else cI("setConnectedScreenStatus: no screen.")};
g.h.qR=function(a){this.na()?this.oc("Setting connection data on disposed cast v2"):this.g?this.g.jj(a):this.oc("Setting connection data without a session")};
g.h.uS=function(){this.na()?this.oc("Stopping session on disposed cast v2"):this.g?(this.g.stop(),eI(this,null)):cI("Stopping non-existing session")};
g.h.requestSession=function(){window.chrome.cast.requestSession((0,g.A)(this.Tz,this),(0,g.A)(this.xP,this))};
g.h.W=function(){this.o.unsubscribe("onlineScreenChange",(0,g.A)(this.GB,this));window.chrome&&window.chrome.cast&&window.chrome.cast.removeReceiverActionListener(this.B);var a=XG,b=g.x("yt.mdx.remote.debug.handlers_");g.kb(b||[],a);g.Ke(this.g);g.aI.aa.W.call(this)};
g.h.oc=function(a){g.aH("Controller",a)};
g.h.Uz=function(a,b){this.g==a&&(b||eI(this,null),this.Y("yt-remote-cast2-session-change",b))};
g.h.bP=function(a,b){if(!this.na())if(a)switch(a.friendlyName=window.chrome.cast.unescape(a.friendlyName),cI("onReceiverAction_ "+a.label+" / "+a.friendlyName+"-- "+b),b){case window.chrome.cast.ReceiverAction.CAST:if(this.g)if(this.g.o.label!=a.label)cI("onReceiverAction_: Stopping active receiver: "+this.g.o.friendlyName),this.g.stop();else{cI("onReceiverAction_: Casting to active receiver.");this.g.A&&this.Y("yt-remote-cast2-session-change",this.g.A);break}switch(a.receiverType){case window.chrome.cast.ReceiverType.CUSTOM:eI(this,
new $H(this.o,a));break;case window.chrome.cast.ReceiverType.DIAL:eI(this,new XH(this.o,a));break;case window.chrome.cast.ReceiverType.CAST:eI(this,new WH(this.o,a));break;default:this.oc("Unknown receiver type: "+a.receiverType)}break;case window.chrome.cast.ReceiverAction.STOP:this.g&&this.g.o.label==a.label?this.g.stop():this.oc("Stopping receiver w/o session: "+a.friendlyName)}else this.oc("onReceiverAction_ called without receiver.")};
g.h.pN=function(a){if(this.na())return window.Promise.reject(Error("disposed"));var b=a.receiver;b.receiverType!=window.chrome.cast.ReceiverType.DIAL&&(this.oc("Not DIAL receiver: "+b.friendlyName),b.receiverType=window.chrome.cast.ReceiverType.DIAL);var c=this.g?this.g.o:null;if(!c||c.label!=b.label)return this.oc("Receiving DIAL launch request for non-clicked DIAL receiver: "+b.friendlyName),window.Promise.reject(Error("illegal DIAL launch"));if(c&&c.label==b.label&&c.receiverType!=window.chrome.cast.ReceiverType.DIAL){if(this.g.A)return cI("Reselecting dial screen."),
this.Y("yt-remote-cast2-session-change",this.g.A),window.Promise.resolve(new window.chrome.cast.DialLaunchResponse(!1));this.oc('Changing CAST intent from "'+c.receiverType+'" to "dial" for '+b.friendlyName);eI(this,new XH(this.o,b))}b=this.g;b.G=a;return b.G.appState==window.chrome.cast.DialAppState.RUNNING?new window.Promise((0,g.A)(b.sI,b,(b.G.extraData||{}).screenId||null)):new window.Promise((0,g.A)(b.Pq,b))};
g.h.Tz=function(a){if(!this.na()){cI("New cast session ID: "+a.sessionId);var b=a.receiver;if(b.receiverType!=window.chrome.cast.ReceiverType.CUSTOM){if(!this.g)if(b.receiverType==window.chrome.cast.ReceiverType.CAST)cI("Got resumed cast session before resumed mdx connection."),b.friendlyName=window.chrome.cast.unescape(b.friendlyName),eI(this,new WH(this.o,b),!0);else{this.oc("Got non-cast session without previous mdx receiver event, or mdx resume.");return}var c=this.g.o,d=g.mH(this.o.Zd(),c.label);
d&&g.fH(d,b.label)&&c.receiverType!=window.chrome.cast.ReceiverType.CAST&&b.receiverType==window.chrome.cast.ReceiverType.CAST&&(cI("onSessionEstablished_: manual to cast session change "+b.friendlyName),g.Ke(this.g),this.g=new WH(this.o,b),this.g.subscribe("sessionScreen",(0,g.A)(this.Uz,this,this.g)),this.g.jj(null));this.g.xs(a)}}};
g.h.tS=function(){return this.g?this.g.HB():null};
g.h.xP=function(a){this.na()||(this.oc("Failed to estabilish a session: "+g.mg(a)),a.code!=window.chrome.cast.ErrorCode.CANCEL&&eI(this,null))};
g.h.fP=function(a){cI("Receiver availability updated: "+a);if(!this.na()){var b=dI(this);this.C=a==window.chrome.cast.ReceiverAvailability.AVAILABLE;dI(this)!=b&&this.Y("yt-remote-cast2-availability-change",dI(this))}};
g.h.GB=function(){this.na()||(this.A=fI(this),cI("Updating custom receivers: "+g.mg(this.A)),window.chrome.cast.setCustomReceivers(this.A,g.y,(0,g.A)(function(){this.oc("Failed to set custom receivers.")},this)),this.Y("yt-remote-cast2-availability-change",dI(this)))};
g.aI.prototype.setLaunchParams=g.aI.prototype.qR;g.aI.prototype.setConnectedScreenStatus=g.aI.prototype.pR;g.aI.prototype.stopSession=g.aI.prototype.uS;g.aI.prototype.getCastSession=g.aI.prototype.tS;g.aI.prototype.requestSession=g.aI.prototype.requestSession;g.aI.prototype.init=g.aI.prototype.init;g.aI.prototype.dispose=g.aI.prototype.dispose;g.gI.prototype.reset=function(a){this.listId="";this.index=-1;this.videoId="";g.hI(this);this.volume=-1;this.muted=!1;a&&(this.index=a.index,this.listId=a.listId,this.videoId=a.videoId,this.g=a.playerState,this.volume=a.volume,this.muted=a.muted,this.audioTrackId=a.audioTrackId,this.o=a.trackData,this.Gf=a.hasPrevious,this.hasNext=a.hasNext,this.G=a.playerTime,this.A=a.playerTimeAt,this.D=a.seekableStart,this.B=a.seekableEnd,this.J=a.duration,this.K=a.loadedTime,this.C=a.liveIngestionTime,this.F=
!(0,window.isNaN)(this.C))};
g.gI.prototype.xb=function(){return 1==this.g};
g.gI.prototype.getDuration=function(){return this.F?this.J+((0,g.G)()-this.A)/1E3:this.J};
g.gI.prototype.clone=function(){return new g.gI(g.lI(this))};mI.prototype.o=function(){return this.name};
mI.prototype.getId=function(){return this.id};
mI.prototype.g=function(){return this.isDefault};
mI.prototype.toString=function(){return this.name};
mI.prototype.getName=mI.prototype.o;mI.prototype.getId=mI.prototype.getId;mI.prototype.getIsDefault=mI.prototype.g;g.nI.prototype.toString=function(){return this.languageCode+"_"+this.languageName+"_"+this.g+"_"+this.id+"_"+this.isDefault};g.oI.prototype.toString=function(){return this.o+": "+g.pI(this)+" - "+this.F};
g.oI.prototype.K=ba(0);g.oI.prototype.He=function(){return!(!this.o||this.g&&!this.g.languageCode)};qI.prototype.g=function(){return this.Rc};
qI.prototype.toString=function(){return this.Rc.name};
qI.prototype.getLanguageInfo=qI.prototype.g;g.C(g.rI,g.RF);g.h=g.rI.prototype;g.h.connect=function(a,b){if(b){var c=b.listId,d=b.videoId,e=b.index,f=b.currentTime||0;5>=f&&(f=0);var k={videoId:d,currentTime:f};c&&(k.listId=c);g.t(e)&&(k.currentIndex=e);c&&(this.gb.listId=c);this.gb.videoId=d;this.gb.index=e||0;this.gb.state=3;g.iI(this.gb,f);this.B="UNSUPPORTED";sI("Connecting with setPlaylist and params: "+g.mg(k));this.g.connect({method:"setPlaylist",params:g.mg(k)},a,xH())}else sI("Connecting without params"),this.g.connect({},a,xH());uja(this)};
g.h.dispose=function(){this.na()||(this.Y("beforeDispose"),tI(this,3));g.rI.aa.dispose.call(this)};
g.h.W=function(){uI(this);wI(this);vI(this);g.vE(this.J);this.J=window.NaN;g.vE(this.K);this.K=window.NaN;this.A=null;g.EF(this.V);this.V.length=0;this.g.dispose();g.rI.aa.W.call(this);this.B=this.F=this.o=this.gb=this.g=null};
g.h.vG=function(){this.D(2)};
g.h.PM=function(){sI("Channel opened");this.P&&(this.P=!1,vI(this),this.O=g.xE((0,g.A)(function(){sI("Timing out waiting for a screen.");this.D(1)},this),15E3));
oja(dja(this.g),this.da)};
g.h.MM=function(){sI("Channel closed");(0,window.isNaN)(this.C)?g.AH(!0):g.AH();this.dispose()};
g.h.NM=function(a){g.AH();(0,window.isNaN)(this.G())?(sI("Channel error: "+a+" without reconnection"),this.dispose()):(this.P=!0,sI("Channel error: "+a+" with reconnection in "+this.G()+" ms"),tI(this,2))};
g.h.OM=function(a){a.params?sI("Received: action="+a.action+", params="+g.mg(a.params)):sI("Received: action="+a.action+" {}");switch(a.action){case "loungeStatus":a=g.jg(a.params.devices);this.o=(0,g.I)(a,function(a){return new RG(a)});
a=!!g.$a(this.o,function(a){return"LOUNGE_SCREEN"==a.type});
zI(this,a);break;case "loungeScreenDisconnected":lb(this.o,function(a){return"LOUNGE_SCREEN"==a.type});
zI(this,!1);break;case "remoteConnected":var b=new RG(g.jg(a.params.device));g.$a(this.o,function(a){return b?a.id==b.id:!1})||g.ib(this.o,b);
break;case "remoteDisconnected":b=new RG(g.jg(a.params.device));lb(this.o,function(a){return b?a.id==b.id:!1});
break;case "gracefulDisconnect":break;case "playlistModified":AI(this,a);break;case "nowPlaying":xja(this,a);break;case "onStateChange":BI(this,a);break;case "onAdStateChange":yja(this,a);break;case "onVolumeChanged":zja(this,a);break;case "onSubtitlesTrackChanged":wja(this,a);break;case "nowAutoplaying":Aja(this,a);break;case "autoplayDismissed":this.Y("autoplayDismissed");break;case "autoplayUpNext":this.F=a.params.videoId||null;this.Y("autoplayUpNext",this.F);break;case "onAutoplayModeChanged":this.B=
a.params.autoplayMode;this.Y("autoplayModeChange",this.B);"DISABLED"==this.B&&this.Y("autoplayDismissed");break;case "onHasPreviousNextChanged":Bja(this,a);break;default:sI("Unrecognized action: "+a.action)}};
g.h.bR=function(){if(this.A){var a=this.A;this.A=null;this.gb.videoId!=a&&xI(this,"getNowPlaying")}};
g.rI.prototype.subscribe=g.rI.prototype.subscribe;g.rI.prototype.unsubscribeByKey=g.rI.prototype.Qd;g.rI.prototype.ka=function(){var a=3;this.na()||(a=0,(0,window.isNaN)(this.G())?WG(this.g)&&(0,window.isNaN)(this.C)&&(a=1):a=2);return a};
g.rI.prototype.getProxyState=g.rI.prototype.ka;g.rI.prototype.D=function(a){sI("Disconnecting with "+a);uI(this);this.Y("beforeDisconnect",a);1==a&&g.AH();VG(this.g,a);this.dispose()};
g.rI.prototype.disconnect=g.rI.prototype.D;g.rI.prototype.ha=function(){var a=this.gb;this.A&&(a=this.gb.clone(),g.kI(a,this.A,a.index));return g.lI(a)};
g.rI.prototype.getPlayerContextData=g.rI.prototype.ha;
g.rI.prototype.ra=function(a){var b=new g.gI(a);b.videoId&&b.videoId!=this.gb.videoId&&(this.A=b.videoId,g.vE(this.J),this.J=g.xE((0,g.A)(this.bR,this),5E3));var c=[];this.gb.listId==b.listId&&this.gb.videoId==b.videoId&&this.gb.index==b.index||c.push("remoteQueueChange");this.gb.g==b.g&&this.gb.volume==b.volume&&this.gb.muted==b.muted&&g.jI(this.gb)==g.jI(b)&&g.mg(this.gb.o)==g.mg(b.o)||c.push("remotePlayerChange");this.gb.reset(a);(0,g.H)(c,function(a){this.Y(a)},this)};
g.rI.prototype.setPlayerContextData=g.rI.prototype.ra;g.rI.prototype.ca=function(){var a=this.g.D.id,b=g.$a(this.o,function(b){return"REMOTE_CONTROL"==b.type&&b.id!=a});
return b?b.id:""};
g.rI.prototype.getOtherConnectedRemoteId=g.rI.prototype.ca;g.rI.prototype.G=function(){var a=this.g;return a.o.isActive()?a.o.A-(0,g.G)():window.NaN};
g.rI.prototype.getReconnectTimeout=g.rI.prototype.G;g.rI.prototype.fa=function(){return this.B||"UNSUPPORTED"};
g.rI.prototype.getAutoplayMode=g.rI.prototype.fa;g.rI.prototype.ga=function(){return this.F||""};
g.rI.prototype.getAutoplayVideoId=g.rI.prototype.ga;g.rI.prototype.ua=function(){if(!(0,window.isNaN)(this.G())){var a=this.g.o;g.tt(a.o);a.start()}};
g.rI.prototype.reconnect=g.rI.prototype.ua;g.rI.prototype.oa=function(a,b){xI(this,a,b);yI(this)};
g.rI.prototype.sendMessage=g.rI.prototype.oa;g.NH.prototype.$_st=g.NH.prototype.start;g.NH.prototype.$_gspc=g.NH.prototype.rS;g.NH.prototype.$_gsppc=g.NH.prototype.FB;g.NH.prototype.$_c=g.NH.prototype.contains;g.NH.prototype.$_g=g.NH.prototype.get;g.NH.prototype.$_a=g.NH.prototype.Bo;g.NH.prototype.$_un=g.NH.prototype.no;g.NH.prototype.$_r=g.NH.prototype.remove;g.NH.prototype.$_gs=g.NH.prototype.Zd;g.NH.prototype.$_gos=g.NH.prototype.EB;g.NH.prototype.$_s=g.NH.prototype.subscribe;g.NH.prototype.$_ubk=g.NH.prototype.Qd;var nZ=16/9,Mpa=[.25,.5,.75,1,1.25,1.5,2];var Cja={0:"f",160:"h",133:"h",134:"h",135:"h",136:"h",137:"h",264:"h",266:"h",138:"h",298:"h",299:"h",304:"h",140:"a",327:"sa",258:"m",161:"H",142:"H",143:"H",144:"H",222:"H",223:"H",145:"H",224:"H",225:"H",146:"H",226:"H",147:"H",149:"A",261:"M",278:"9",242:"9",243:"9",244:"9",247:"9",248:"9",271:"9",313:"9",272:"9",302:"9",303:"9",308:"9",315:"9",330:"9h",331:"9h",332:"9h",333:"9h",334:"9h",335:"9h",336:"9h",337:"9h",171:"v",338:"so",250:"o",251:"o",194:"*",195:"*",220:"*",221:"*",196:"*",197:"*",
198:"V",279:"(",280:"(",273:"(",274:"(",275:"(",276:"(",314:"(",277:"(",362:"(h",363:"(h",364:"(h",365:"(h",366:"(h",367:"(h",368:"(h"};var gO={name:"width",video:!0,valid:640,Yh:99999},hO={name:"height",video:!0,valid:360,Yh:99999},eO={name:"framerate",video:!0,valid:30,Yh:9999},cM={name:"bitrate",video:!0,valid:3E5,Yh:2E9},fO={name:"eotf",video:!0,valid:"bt709",Yh:"catavision"},ZN={name:"channels",video:!1,valid:2,Yh:99},iO={name:"cryptoblockformat",video:!0,valid:"subsample",Yh:"invalidformat"},jO={Fl:gO,yl:hO,DW:eO,Kt:cM,oW:fO,aV:ZN,sV:iO};var Dja={tU:"auto",B_:"tiny",zX:"light",ZZ:"small",cE:"medium",wX:"large",NW:"hd720",JW:"hd1080",KW:"hd1440",LW:"hd2160",MW:"hd2880",TW:"highres",UNKNOWN:"unknown"};var R3;R3={};g.EI=(R3.auto=0,R3.tiny=144,R3.light=144,R3.small=240,R3.medium=360,R3.large=480,R3.hd720=720,R3.hd1080=1080,R3.hd1440=1440,R3.hd2160=2160,R3.hd2880=2880,R3.highres=4320,R3);var HI="highres hd2880 hd2160 hd1440 hd1080 hd720 large medium small tiny".split(" ");FI.prototype.B=1.3;RI.prototype.g=function(a){return"true"==this.flags[a]};
RI.prototype.o=function(a){return(0,window.parseFloat)(this.flags[a])||0};
RI.prototype.A=function(a){return this.flags[a]?this.flags[a].toString():""};SI.prototype.dispose=function(){if(!this.A){if(this.o)try{window.URL.revokeObjectURL(this.g)}catch(a){}this.A=!0}};
SI.prototype.na=function(){return this.A};var Dka={52:!0,53:!0,54:!0,55:!0,60:!0,79:!0,87:!0};TI.prototype.g=function(){return null};
TI.prototype.A=function(){return!1};var GT=WI("auto","large",!1),YI=WI("auto","auto",!1);UI.prototype.isLocked=function(){return this.A&&!!this.o&&this.o==this.g};
UI.prototype.B=function(a){return a.video?aJ(this,a.video.quality):!1};var S3={},Npa=(S3["api.invalidparam"]=2,S3.auth=150,S3["drm.auth"]=150,S3["heartbeat.net"]=150,S3["heartbeat.servererror"]=150,S3["heartbeat.stop"]=150,S3["html5.unsupportedads"]=5,S3["fmt.noneavailable"]=5,S3["fmt.decode"]=5,S3["fmt.unplayable"]=5,S3["html5.missingapi"]=5,S3["html5.unsupportedlive"]=5,S3["drm.unavailable"]=5,S3);g.p(iJ,g.M);g.h=iJ.prototype;g.h.kJ=function(){return g.Ob(this.B)};
g.h.lJ=function(){return g.Ob(this.C)};
g.h.pa=function(){return this.o};
g.h.addEventListener=function(a,b){if(g.u(b)){var c=function(){g.x(b).apply(window,arguments)};
this.F[b]=c}else c=b;this.app.ba.subscribe(a,c)};
g.h.bG=function(a,b){var c=this,d=g.u(b)?a+b:a+g.xa(b);if(!this.D[d]){var e;g.u(b)?e=function(){g.x(b).apply(window,arguments)}:e=b;
var f=function(a){e({target:c.A,data:a})};
this.D[d]=f;this.app.ba.subscribe(a,f)}};
g.h.removeEventListener=function(a,b){if(g.u(b)){var c=this.F[b];Ub(this.F,b);b=c}this.app.ba.unsubscribe(a,b)};
g.h.cG=function(a,b){var c=g.u(b)?a+b:a+g.xa(b),d=this.D[c];d&&(this.app.ba.unsubscribe(a,d),Ub(this.D,c))};
g.h.Hk=function(){return x2(this.app)};
g.h.xc=function(a,b){this.g&&H2(this.app,!0,this.playerType);Xna(this.app,a,b,void 0,this.playerType)};
g.h.getCurrentTime=function(){return this.app.getCurrentTime(this.playerType)};
g.h.mJ=function(){var a=g.XU(this.app,this.playerType);if(!a)return 0;a=LU(a);return(0,window.isNaN)(a)?this.getCurrentTime():a};
g.h.getDuration=function(){return this.app.getDuration(this.playerType)};
g.h.getVolume=function(){return this.app.M.volume};
g.h.setVolume=function(a){mJ(this,a)};
g.h.Ie=function(){return this.app.M.muted};
g.h.mute=function(){nJ(this)};
g.h.ug=function(){oJ(this)};
g.h.ad=function(){this.g&&H2(this.app,!0,this.playerType);var a=VU(this.app);2==a?(a=this.app.A.o)&&a.Y("control_play"):3==a?g.WU(this.app.A).Nk("control_play"):VY(this.app,this.playerType)};
g.h.ld=function(){var a=VU(this.app);2==a?(a=this.app.A.o)&&a.Y("control_pause"):3==a?g.WU(this.app.A).Nk("control_pause"):XY(this.app,this.playerType)};
g.h.Pf=function(){var a=this.app;a.Z.ka&&(a.g.isFullscreen()&&!a.Z.experiments.g("player_external_control_on_classic_desktop")&&g.aV(a.g),a.g.Y("pageTransition"));Wna(a)};
g.h.hJ=function(){};
g.h.Tc=function(){return g.XU(this.app,1).ua};
g.h.Of=function(a){u2(this.app,a)};
g.h.nj=function(){return this.app.Z.Fa?Mpa:[1]};
g.h.Gk=function(){var a=g.XU(this.app,this.playerType);if(a){var b="unknown";a.g.Ma&&(b=a.g.Ma.video.quality,!a.Z.experiments.g("disable_video_quality_from_size")&&"auto"==b&&a.o&&(a=a.o?a.o.pa():null)&&0<a.videoHeight&&(b=DI(a.videoWidth,a.videoHeight)))}else b="unknown";return b};
g.h.Kk=function(a){if(!this.app.Z.isMobile){var b=g.XU(this.app,this.playerType);b&&FU(b,"p",WI(a,a,!0))}};
g.h.rr=function(){var a=g.XU(this.app,this.playerType);return a?(a=(0,g.I)(DU(a),function(a){return a.quality}),a.length&&("auto"==a[0]&&a.shift(),a=a.concat(["auto"])),a):[]};
g.h.oJ=function(){return this.sr()};
g.h.pJ=function(){return 1};
g.h.sr=function(){return i2(this.app)};
g.h.qJ=function(){return 0};
g.h.setSize=function(){this.app.F.fg()};
g.h.Yx=function(a){M2(this.app,a?2:1)};
g.h.Zx=function(a){M2(this.app,a)};
g.h.fJ=function(){this.app.g.ya("SUBSCRIBE")};
g.h.gJ=function(){this.app.g.ya("UNSUBSCRIBE")};
g.h.Ik=function(a){"captions"==a&&(a=this.app.A.g)&&!a.loaded&&a.load()};
g.h.tn=function(a){"captions"==a&&(a=this.app.A.g)&&a.loaded&&a.QR()};
g.h.uJ=function(a,b,c){a=fJ(a,b,c);a=E2(this.app,a,this.playerType);this.g&&H2(this.app,a,this.playerType)};
g.h.Sx=function(a,b,c){a=fJ(a,b,c);J2(this.app,a,this.playerType)};
g.h.vJ=function(a,b,c){a=gJ(a,b,c);b=E2(this.app,a,this.playerType);this.g&&H2(this.app,b,this.playerType);b=this.app;(a=(new g.Ll(a.mediaContentUrl)).g)&&PO(b.Z,a)};
g.h.jJ=function(a,b,c){b=gJ(a,b,c);J2(this.app,b,this.playerType);a=this.app;(b=(new g.Ll(b.mediaContentUrl)).g)&&PO(a.Z,b)};
g.h.getVideoUrl=function(){var a=this.app.Z;if(a.J)return"";var b=this.app.o.g,c=void 0;b.Ca||(c=Math.floor(this.app.getCurrentTime(1)));return a.getVideoUrl(b.videoId,this.getPlaylistId()||void 0,c)};
g.h.Fk=function(){return w2(this.app)};
g.h.Vx=function(){var a=this.app.Z;if(a.J)var b="";else{var c=this.app.o.g.videoId;b=this.app.F.Ya();var d=this.getPlaylistId()||void 0,c="https://"+SO(a)+"/embed/"+c;d&&(c=g.Dg(c,{list:d}));d=!a.experiments.g("enable_responsive_embed_snippet");a.experiments.g("embed_snippet_includes_version")&&(c=g.Dg(c,{ecver:d?"1":"2"}));a=b.width;b=b.height;d?(d=Ha(c),b='<iframe width="'+a+'" height="'+b+'" src="'+d+'" frameborder="0" allowfullscreen></iframe>'):(d=Math.round(360*a/b),b='<div style="position:relative;height:0;padding-bottom:'+
Math.round(1E4*b/a)/100+'%"><iframe src="'+Ha(c)+'" style="position:absolute;width:100%;height:100%;left:0" width="'+d+'" height="360" frameborder="0" allowfullscreen></iframe></div>')}return b};
g.h.Rx=function(a,b,c){return P2(this.app,a,b,c)};
g.h.Xx=function(a){a:{for(var b=this.app,c=b.o.D.g.g||[],d=0;d<c.length;d++){var e=c[d];if(e.getId()==a){b.o.D.F(e);mV(b,"cuerangesremoved",[e]);a=!0;break a}}a=!1}return a};
g.h.tJ=function(a,b,c,d){var e=this.app;e.fa=!1;K2(e,a,b,c,d);this.g&&H2(this.app,!0,this.playerType)};
g.h.iJ=function(a,b,c,d){var e=this.app;e.fa=!0;K2(e,a,b,c,d)};
g.h.oj=function(){N2(this.app);this.g&&H2(this.app,!0,this.playerType)};
g.h.Jk=function(){O2(this.app);this.g&&H2(this.app,!0,this.playerType)};
g.h.Wx=function(a){var b=this.app;!b.V||b.g.isFullscreen()&&!b.ua?b.B&&(b.B.Sc?D2(b,b.B.hc(a),1):b.fa=!1,XQ(b.B,a)):b.g.ya("onPlaylistIndex",a);this.g&&H2(this.app,!0,this.playerType)};
g.h.setShuffle=function(a){var b=this.app.B;b&&b.setShuffle(a)};
g.h.xJ=function(a){var b=this.app.B;b&&(b.loop=a)};
g.h.Nf=function(){var a=this.app.B;if(!a)return null;for(var b=[],c=0;c<a.getLength();c++){var d=a.hc(c);d&&b.push(d.videoId)}return b};
g.h.Ux=function(){var a=this.app.B;return a?a.Xd():-1};
g.h.getPlaylistId=function(){var a=this.app.B;return a&&a.listId?a.listId.toString():null};
g.h.yd=function(a,b,c){if(!b)return null;var d=this.app.A;return"captions"==a?(a=d.g)&&a.yr(b,c):null};
g.h.Ac=function(a,b,c){return this.yd(a,b,c)};
g.h.ci=function(a){var b=this.app.A;return"captions"==a?(b=b.g)&&b.vK():a?null:(a=[],b.g&&a.push("captions"),a)};
g.h.ia=function(){var a={},b=g.XU(this.app,this.playerType);if(b&&(b=b.g,a.video_id=b.videoId,a.author=b.author,a.title=b.title,b.Ma)){a.video_quality=b.Ma.video.quality;var b=b.Ma.video,c=[];32<b.fps&&c.push("hfr");GI(b)&&c.push("hdr");"bt2020"==b.primaries&&c.push("wcg");a.video_quality_features=c}(b=this.getPlaylistId())&&(a.list=b);return a};
g.h.ay=function(){a2(this.app,!0)};
g.h.rJ=function(){a2(this.app,!1)};
g.h.Tx=function(){var a=this.app.A.o;return a?a.Bt():-1};
g.h.sJ=function(a){if(a!=this.app.ca.args.video_id)return!1;a=(a=g.XU(this.app,1))?a.A:null;return!(!a||!g.V(a,128)||5!=Npa[a.g.errorCode])};
g.h.nJ=function(){var a=this.app.ca.clone();g.za(a.args,QQ(this.app.o.g));return a};
g.h.yJ=function(){this.app.Z.fa&&this.app.da.resume()};
g.h.destroy=function(){this.app.dispose()};
g.h.wJ=function(){var a=g.XU(this.app);a&&!g.V(a.A,128)&&(a.Y("internalAbandon"),XT(a),VT(a))};
g.h.W=function(){if(this.o){for(var a in this.B)this.o[a]=null;for(a in this.C)this.o[a]=null;this.o=null}this.F=this.D=null;g.M.prototype.W.call(this)};var Fja=1;g.pJ.prototype.getId=function(){return this.Aa};
g.pJ.prototype.getId=g.pJ.prototype.getId;g.pJ.prototype.contains=function(a,b){return a>=this.start&&(a<this.end||a==this.end&&this.start==this.end)&&(null==b||a<b&&b<=this.end)};g.T3={NONE:0,RAISED:1,DEPRESSED:2,Bu:3,DROP_SHADOW:4};g.U3={Yo:"#fff",iF:"#ff0",GD:"#0f0",qD:"#0ff",PC:"#00f",WD:"#f0f",hu:"#f00",Fo:"#080808"};g.V3={Qt:0,cu:1,gu:2,bu:3,So:4,CASUAL:5,CURSIVE:6,Vo:7};uJ.prototype.update=function(){var a=this.g.o()||0,b=g.tJ(this.g);if(a!=this.o||yJ(this,a,b)){if(a<this.o||a-this.o>b-this.D+2||yJ(this,a,b)||Hja(this,b))g.vJ(this),this.B=a;this.D=b;this.o=a}};zJ.prototype.o=function(){return{ps:this.g.o,el:this.g.g}};
zJ.prototype.send=function(){if(!this.A){var a=this.o();a=g.Dg(this.g.baseYtUrl+"set_awesome",a);this.g.Na&&this.videoData.visitorData&&EE(a)?g.KE(a,{headers:{"X-Goog-Visitor-Id":this.videoData.visitorData}}):g.ZE(a);this.A=!0}};g.C(AJ,zJ);
AJ.prototype.o=function(){var a=AJ.aa.o.call(this);g.za(a,this.g.B);g.za(a,{html5:"1",video_id:this.videoData.videoId,eurl:this.g.oa,framer:this.g.Ql,list:this.videoData.Js||this.videoData.playlistId,w:g.Hd(this.videoData.zf/this.videoData.lengthSeconds,0,1),l:this.videoData.lengthSeconds,plid:this.videoData.playbackId,ei:this.videoData.eventId,access_token:this.videoData.oauthToken,tpmt:wJ(this.B),cpn:this.videoData.clientPlaybackNonce,feature:this.videoData.sh});this.videoData.adFormat&&(a.adformat=
this.videoData.adFormat);var b;(b=(b=this.videoData.referrer)?b.slice(0,128):"")&&(a.referrer=b);if(this.g.experiments.g("legacy_autoplay_flag")?this.g.da:this.videoData.rh)a.autoplay="1";this.g.Ec&&(a.authuser=this.g.Ec);this.g.pageId&&(a.pageid=this.g.pageId);this.videoData.If&&(a.splay="1");this.videoData.subscribed&&(a.subscribed=this.videoData.subscribed);g.za(a,AJ.aa.o.call(this));g.za(a,this.g.B);return a};var Cma={nU:"YTP_ERROR_ALREADY_PINNED_ON_A_DEVICE",AUTHENTICATION_EXPIRED:"ERROR_AUTHENTICATION_EXPIRED",rU:"ERROR_AUTHENTICATION_MALFORMED",sU:"ERROR_AUTHENTICATION_MISSING",xU:"ERROR_BAD_REQUEST",NU:"YTP_ERROR_CANNOT_ACTIVATE_RENTAL",XU:"ERROR_CGI_PARAMS_MALFORMED",YU:"ERROR_CGI_PARAMS_MISSING",OV:"YTP_DEVICE_FALLBACK",pW:"YTP_ERROR_LICENSE",wW:"YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK_FLASH",BW:"YTP_ERROR_FORMAT_UNAVALIABLE",FW:"YTP_ERROR_GEO_FAILURE",WW:"YTP_ERROR_GENERIC_WITHOUT_LINK",YW:"YTP_HTML5_PROTECTED_FLASH_FALLBACK",
XW:"YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK",qX:"YTP_ERROR_INVALID_DRM_MESSAGE",yX:"LEARN_MORE",DY:"YTP_ERROR_NOT_SIGNED_IN",kZ:"YTP_ERROR_PURCHASE_NOT_FOUND",lZ:"YTP_ERROR_PURCHASE_REFUNDED",qZ:"YTP_ERROR_RENTAL_EXPIRED",SU:"YTP_ERROR_CAST_SESSION_DEVICE_MISMATCHED",TU:"YTP_ERROR_CAST_SESSION_VIDEO_MISMATCHED",VU:"YTP_ERROR_CAST_TOKEN_FAILED",UU:"YTP_ERROR_CAST_TOKEN_EXPIRED",WU:"YTP_ERROR_CAST_TOKEN_MALFORMED",MZ:"YTP_ERROR_SERVER_ERROR",l_:"YTP_ERROR_STOPPED_BY_ANOTHER_PLAYBACK",q_:"YTP_ERROR_STREAM_LICENSE_NOT_FOUND",
n_:"YTP_ERROR_STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED",o_:"YTP_ERROR_STREAMING_NOT_ALLOWED",p_:"YTP_ERROR_STREAMING_UNAVAILABLE",zZ:"YTP_ERROR_RETRYABLE_ERROR",G_:"YTP_ERROR_TOO_MANY_STREAMS_PER_USER",F_:"YTP_ERROR_TOO_MANY_STREAMS_PER_ENTITLEMENT",j0:"YTP_ERROR_UNSUPPORTED_DEVICE",k0:"YTP_ERROR_UNUSUAL_ACTIVITY",y0:"YTP_ERROR_VIDEO_FORBIDDEN",A0:"YTP_ERROR_VIDEO_NOT_FOUND"},Ija={300:"YTP_ERROR_STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED",301:"YTP_ERROR_ALREADY_PINNED_ON_A_DEVICE",303:"YTP_ERROR_STOPPED_BY_ANOTHER_PLAYBACK",
304:"YTP_ERROR_TOO_MANY_STREAMS_PER_USER",305:"YTP_ERROR_TOO_MANY_STREAMS_PER_ENTITLEMENT",400:"YTP_ERROR_VIDEO_NOT_FOUND",401:"YTP_ERROR_GEO_FAILURE",402:"YTP_ERROR_STREAMING_NOT_ALLOWED",403:"YTP_ERROR_UNSUPPORTED_DEVICE",405:"YTP_ERROR_VIDEO_FORBIDDEN",500:"YTP_ERROR_PURCHASE_NOT_FOUND",501:"YTP_ERROR_RENTAL_EXPIRED",502:"YTP_ERROR_PURCHASE_REFUNDED",5E3:"ERROR_BAD_REQUEST",5001:"ERROR_CGI_PARAMS_MISSING",5002:"ERROR_CGI_PARAMS_MALFORMED",5100:"ERROR_AUTHENTICATION_MISSING",5101:"ERROR_AUTHENTICATION_MALFORMED",
5102:"ERROR_AUTHENTICATION_EXPIRED",5200:"YTP_ERROR_CAST_TOKEN_MALFORMED",5201:"YTP_ERROR_CAST_TOKEN_EXPIRED",5202:"YTP_ERROR_CAST_TOKEN_FAILED",5203:"YTP_ERROR_CAST_SESSION_VIDEO_MISMATCHED",5204:"YTP_ERROR_CAST_SESSION_DEVICE_MISMATCHED",6E3:"YTP_ERROR_INVALID_DRM_MESSAGE",7E3:"YTP_ERROR_SERVER_ERROR",8E3:"YTP_ERROR_RETRYABLE_ERROR"};g.C(g.DJ,g.M);g.DJ.prototype.T=function(a,b,c,d,e){c=rE((0,g.A)(c,d||this.Bb));c={target:a,name:b,jg:c};var f;e&&Epa()&&(f={passive:!0});a.addEventListener(b,c.jg,f);this.P.push(c);return c};
g.DJ.prototype.za=function(a){for(var b=0;b<this.P.length;b++)if(this.P[b]==a){this.P.splice(b,1);a.target.removeEventListener(a.name,a.jg);break}};
g.DJ.prototype.W=function(){g.FJ(this);g.DJ.aa.W.call(this)};var AZ,W3;var Opa=g.Gb,Ppa=Opa.match(/\((iPad|iPhone|iPod)( Simulator)?;/);if(!Ppa||2>Ppa.length)AZ=void 0;else{var X3=Opa.match(/\((iPad|iPhone|iPod)( Simulator)?; (U; )?CPU (iPhone )?OS (\d+_\d)[_ ]/);AZ=X3&&6==X3.length?Number(X3[5].replace("_",".")):0}(W3=0<=AZ)&&0<=g.Gb.search("Safari")&&g.Gb.search("Version");var Qpa=W3&&4>AZ?.1:0,Jna=new MJ;MJ.prototype.g=null;MJ.prototype.getDuration=function(){return this.duration||0};
MJ.prototype.getCurrentTime=function(){return this.currentTime||0};
MJ.prototype.o=function(){this.hasAttribute("controls")&&this.setAttribute("controls","true")};g.C(NJ,g.M);g.h=NJ.prototype;g.h.ad=function(){this.g.ended&&this.xc(0);!this.wd()&&this.o&&(PJ(this,this.o.g),this.o.o||this.load());this.play();W3&&7<=AZ&&g.LF(this,"playing",(0,g.A)(function(){g.xE((0,g.A)(this.aw,this,this.getCurrentTime(),0),500)},this))};
g.h.aw=function(a,b){this.g.paused||this.getCurrentTime()>a||10<b||(this.play(),g.xE((0,g.A)(this.aw,this,this.getCurrentTime(),b+1),500))};
g.h.xc=function(a){0<this.g.readyState&&(W3&&4>AZ&&(a=Math.max(.1,a)),this.g.currentTime=a)};
g.h.Pf=function(){this.wd()&&(WN&&0<this.getCurrentTime()&&this.xc(0),this.g.removeAttribute("src"),this.load(),OJ(this,null))};
g.h.addEventListener=function(a,b){this.B.X(a,b,!1,this);if(!this.A[a]){var c=(0,g.A)(this.pT,this);this.g.addEventListener(a,c);this.A[a]=c}};
g.h.removeEventListener=function(a,b){this.B.za(a,b,!1,this)};
g.h.dispatchEvent=function(a){return this.B.dispatchEvent(a)};
g.h.lv=function(){this.C&&!this.g.muted&&(KL(),this.g.muted=!0)};
g.h.W=function(){this.D&&this.removeEventListener("volumechange",this.lv);NJ.aa.W.call(this)};g.p(WJ,g.Me);WJ.prototype.preventDefault=function(){g.Me.prototype.preventDefault.call(this);this.g&&this.g.preventDefault()};
WJ.prototype.stopPropagation=function(){g.Me.prototype.stopPropagation.call(this);this.g&&this.g.stopPropagation()};var eU=vf(function(){var a="";try{var b=g.ie("CANVAS").getContext("webgl");b&&(b.getExtension("WEBGL_debug_renderer_info"),a=b.getParameter(37446),a=a.replace(/[ :]/g,"_"))}catch(c){}return a});g.XJ.prototype.xb=function(){return g.V(this,8)&&!g.V(this,64)&&!g.V(this,2)};
g.XJ.prototype.isError=function(){return g.V(this,128)};jK.prototype.isEmpty=function(){return this.endTime==this.startTime};var mK={other:1,none:2,wifi:3,cellular:7};g.p(pK,g.M);
pK.prototype.C=function(a){if(!this.na()){a=0<=a?a:g.tJ(this.g);var b=this.g.g.experiments.g("html5_qoe_always_report_playing")&&!g.Tb(this.o),c=a>=this.B+30;"PL"==this.A&&(b||c)&&(g.oK(this,a,"vps",[this.A]),this.B=a);if(!g.Tb(this.o)&&!this.O){rK(this,a);var b=a,c=this.g.F(),d=c.droppedVideoFrames,e=d-this.ca;if(d>c.totalVideoFrames||5E3<e)this.onError("html5.badframedropcount","df."+d+";tf."+c.totalVideoFrames);else 0<e&&g.oK(this,b,"df",[e]);this.ca=d;!this.g.g.experiments.g("disable_webgl_reporting")&&0<
this.D&&(g.oK(this,a,"glf",[this.D]),this.D=0);a=sK(this);g.Zb(a,this.g.g.B);a=g.Dg(this.g.g.Lg,a);for(var f in this.o)null==this.o[f]?g.qE(Error("Stats report key has invalid value: "+f),"WARNING"):a+="&"+f+"="+this.o[f].join(",");tK(this,a);this.o={}}}};
pK.prototype.ka=function(){this.g.videoData.Jf&&xK(this,"drm-"+this.g.videoData.Jf.g)};
pK.prototype.onError=function(a,b){var c=g.tJ(this.g);vK(this,c,a,b);rK(this,c);uK(this)};
pK.prototype.W=function(){g.M.prototype.W.call(this);g.uE(this.V)};
var Y3={},Mja=(Y3[5]="N",Y3[-1]="N",Y3[3]="B",Y3[0]="EN",Y3[2]="PA",Y3[1]="PL",Y3);zK.prototype.send=function(a){if(!this.ca){var b=CK(this),b=g.Dg(this.Sa,b);if(this.G)this.O&&(a={method:"POST",Rb:{atr:this.O}},this.Ej&&this.visitorData&&(a.headers={"X-Goog-Visitor-Id":this.visitorData}),g.KE(b,a));else{var c=AK(this,a);c?g.KE(b,c):g.ZE(b,a)}this.ca=!0}};
zK.prototype.g=function(a){void 0==a&&(a=window.NaN);return(1*a.toFixed(3)).toString()};g.C(DK,g.M);g.h=DK.prototype;g.h.nN=function(a,b){if(!this.na()){this.F=window.NaN;this.A.update();var c=xJ(this.A),d=HK(this,c);b&&(d.D=a);var e=400<this.K;!(1<c.length)&&c[0].isEmpty()||e||(d.o=EK(this,!0,a));d.send();this.K++}};
g.h.onError=function(a,b){if(!this.na())this.o.onError(a,b)};
g.h.Xn=function(a){var b=this.g.g,c=this.g.videoData,d={ns:b.Ta,el:b.g,eurl:b.oa,fmt:c.Ma?II(c.Ma):0,html5:1,list:c.playlistId,plid:c.playbackId,cpn:c.clientPlaybackNonce,ei:c.eventId,ps:b.o,noflv:1,st:this.g.o(),video_id:c.videoId,metric:a};if(b.experiments.g("legacy_autoplay_flag")?b.da:c.rh)d.autoplay="1";"heartbeat"==a&&(d.tpmt=wJ(this.A));g.za(d,b.B);JK(this,g.Dg("//www.youtube.com/live_204",d))};
g.h.bb=function(){};
g.h.W=function(){DK.aa.W.call(this);g.vE(this.F);this.F=window.NaN;var a=this.A;g.uE(a.F);a.F=window.NaN};g.p(OK,iJ);g.h=OK.prototype;g.h.Wa=function(){return VU(this.app)};
g.h.Rx=function(a,b,c,d,e){return P2(this.app,a,b,c,d,e)};
g.h.zJ=function(a,b,c){mO(this.app.Z.G,a,{Hh:b,Nj:c})};
g.h.BJ=function(a,b){J2(this.app,a,b||this.playerType)};
g.h.Hk=function(a){return x2(this.app,a)};
g.h.vn=function(a,b,c,d){E2(this.app,a,c||this.playerType,b,d)};
g.h.fy=function(a,b,c){var d=this.app;b=b||this.playerType||1;c=c||!1;d.ra.get(b+yO(a))||(a=new g.sQ(a),G2(d,a,b,c))};
g.h.oj=function(a,b){N2(this.app,a,b)};
g.h.Jk=function(a){O2(this.app,a)};
g.h.de=function(a,b,c){Xna(this.app,this.app.getCurrentTime()+a,b,c,this.playerType)};
g.h.WJ=function(a){if(a){var b=this.getPlaylistId();if(!b||b==a.list){var c=a.video;(b=this.app.B)?this.app.J.isFullscreen()&&((c=c[b.Xd()])&&c.encrypted_id!=b.hc().videoId||(a.index=b.Xd())):l2(this.app,{list:a.list,index:a.index,playlist_length:c.length});YQ(this.app.B,a);this.ya("onPlaylistUpdate")}}else a=this.app,m2(a),a.g.ya("onPlaylistUpdate")};
g.h.VJ=function(){Ipa()};
g.h.XJ=function(a,b){var c=g.XU(this.app,this.playerType||1);c&&c.g.Zf(a,b)};
g.h.getPlayerResponse=function(){var a=g.XU(this.app,this.playerType);return a?a.g.getPlayerResponse():null};
g.h.getStoryboardFormat=function(){return g2(this.app).getStoryboardFormat()};
g.h.EJ=function(){var a=this.app.Z;return{zc:a.zc,Fb:a.Fb}};
g.h.ia=function(){var a=iJ.prototype.ia.call(this),b=g.XU(this.app,this.playerType);b&&(b=b.g,a.backgroundable=b.backgroundable,a.cpn=b.clientPlaybackNonce,a.isLive=b.Ca,a.itct=b.fn,a.paidContentOverlayText=GQ(b),a.paidContentOverlayDurationMs=HQ(b));return a};
g.h.getCurrentTime=function(a){return a?this.app.getCurrentTime(a):iJ.prototype.getCurrentTime.call(this)};
g.h.getDuration=function(a){return a?this.app.getDuration(a):iJ.prototype.getDuration.call(this)};
g.h.kh=function(){if(3==this.Wa())return g.WU(this.app.A).rK();var a=g2(this.app),b=g.XU(this.app),c=this.app.Kd(),d=a.clipEnd,a=a.clipStart,e=this.getCurrentTime(),f=this.getDuration(),k=LU(b),l=b.isPeggedToLive(),m=g.XU(this.app,void 0),n;m?(m.o&&(n=TJ(m.o)),n=0<=n?n:m.getCurrentTime()):n=0;return{allowSeeking:c,clipEnd:d,clipStart:a,current:e,displayedStart:-1,duration:f,ingestionTime:k,isPeggedToLive:l,loaded:n,seekableEnd:JU(b,!0),seekableStart:b.Ic()}};
g.h.sr=function(a){return i2(this.app,a)};
g.h.AJ=function(a){return!!IL().canPlayType(a)};
g.h.gy=function(a,b){var c=g.XU(this.app,this.playerType);if(c){b=b||a;var d=WI(a,b,!0);g.NG("yt-player-quality",b,2592E3);FU(c,"m",d)}};
g.h.DJ=function(){return KQ(g2(this.app),this.app.getCurrentTime())};
g.h.fi=function(a){var b=this.app,c=g.XU(b,this.playerType);c&&b.Z.zb.has(a.toString())&&c.C&&(b=GK(c.C,"engage"),b.A=a,b.send(void 0))};
g.h.Lk=function(a,b,c){var d=this.app.A.A;d&&d.rl()&&d.zt(a,b,c)};
g.h.HJ=function(a,b){var c=this.app.A.D;c&&c.ga&&P_(c.ga,a,b)};
g.h.jh=function(){var a=g.XU(this.app,this.playerType);return a?a.wt():g2(this.app).pm};
g.h.vr=function(a){3==this.Wa()&&g.WU(this.app.A).Nk("control_set_audio_track",a);var b=g.XU(this.app,this.playerType),c;if(c=b)if(c=!b.na()&&!g.V(b.A,128)&&!!b.g.jb.g){c=b.B;if(c.na())a=!0;else{var d=c.F;a=a.id;d.G="m";d.B=d.F.g[a];d.O=d.B;c.Y("audioformatchange",new fR(d.O,d.o,d.G));c.A&&!c.A.g.remove?a=!1:(YS(c),rS(c.g),rS(c.B),lT(c),a=!0)}c=!a}c&&(CU(b),AU(b))};
g.h.tr=function(){var a=g.XU(this.app,this.playerType);return a.g.jb?a.g.jb.audioTracks:[]};
g.h.FJ=function(){var a=g.XU(this.app,this.playerType);return a&&a.g.Ma?g.$I(NT(a.ra,a.g)):"unknown"};
g.h.QJ=function(a,b){Yna(this.app,a,b)};
g.h.CJ=function(){var a=this.app.A.F;a&&a.hG()};
g.h.TJ=function(){var a=this.app.A.D;a&&(a.sa=!1,a.Dg())};
g.h.IJ=function(){var a=this.app.A.D;a&&(a.sa=!0,a.Dg())};
g.h.un=function(){return this.app.mj()};
g.h.SJ=function(){return!0};
g.h.ey=function(a){a=g.mZ(this.app.F,a);return{left:a.left,top:a.top,width:a.width,height:a.height}};
g.h.PJ=function(a){this.app.Z.enableSafetyMode=a};
g.h.MJ=function(a){vF();S2(this.app,a?2:0)};
g.h.vp=function(){var a=this.app.A.o;a&&a.C&&a.destroy();(a=g.XU(this.app))&&IU(a);(a=this.app.A.J)&&a.tI()&&g.UU(this.app.J,!0)};
g.h.Pf=function(){var a=this.app.Z;!a.experiments.g("disable_new_pause_state3")&&VO(a)&&"blazer"!=a.o?this.vp():iJ.prototype.Pf.call(this)};
g.h.qw=function(){return MU(g.XU(this.app,this.playerType),!0)};
g.h.wn=function(a){this.app.A.g.Ss(a,!0)};
g.h.di=function(){var a=this.app.A.g;return a?a.aq():null};
g.h.ur=function(){this.app.A.g.AA()};
g.h.JJ=function(){var a=g.XU(this.app,this.playerType);if(!a)return!1;a=a.g;return!!a&&a.He()&&!!a.Ma&&a.Ma.video.isAccelerated&&a.Ma.video.A};
g.h.isPeggedToLive=function(){return this.app.isPeggedToLive()};
g.h.OJ=function(a){var b=this.app;b.Z.Gb=a;b.g.Y("minimized")};
g.h.Fk=function(a){return w2(this.app,a)};
g.h.GJ=function(){var a=this.app.A.B;if(!a)return{};a=a.NB();return"Spherical"!=a.shader&&"Spherical3D"!=a.shader?{}:{yaw:g.Id(180*(a.yaw||0)/Math.PI,360),pitch:180*(a.pitch||0)/Math.PI}};
g.h.RJ=function(a){var b=this.app.A.B;if(b){var c={shader:"Spherical"};g.oa(a.yaw)&&!(0,window.isNaN)(a.yaw)&&(c.yaw=g.Id(a.yaw,360)*Math.PI/180);g.oa(a.pitch)&&!(0,window.isNaN)(a.pitch)&&(c.pitch=g.Hd(a.pitch,-90,90)*Math.PI/180);b.OB(c)}};
g.h.LJ=function(a){var b=this.app;b.Z.Fh=a;b.C&&(a=b.C,a.C&&g.vJ(a.C.A))};
g.h.Y=function(a,b){for(var c=1;c<arguments.length;++c);this.app.Z.Fb&&("videodatachange"==a||"audiotrackchanged"==a||"resize"==a||"cardstatechange"==a)&&this.app.ba.Y.apply(this.app.ba,arguments);this.app.K.Y.apply(this.app.K,arguments)};
g.h.ya=function(a,b){this.app.ba.Y.apply(this.app.ba,arguments);this.app.K.Y.apply(this.app.K,arguments)};
g.h.KJ=function(){};
g.h.UJ=function(){this.ya("settingsmenutoggle")};
g.h.setVolume=function(a,b){mJ(this,a,b)};
g.h.mute=function(a){nJ(this,a)};
g.h.ug=function(a){oJ(this,a)};
g.h.uI=function(){return this.app.ka};
g.h.Ik=function(a){if("annotations_module"==a){var b=this.app.A.A;b&&!b.loaded&&b.load()}iJ.prototype.Ik.call(this,a)};
g.h.tn=function(a){if("annotations_module"==a){var b=this.app.A.A;b&&b.loaded&&b.unload()}iJ.prototype.tn.call(this,a)};
g.h.yd=function(a,b,c){if(!b)return null;var d=this.app.A;switch(a){case "ad":return(c=d.o)&&c.YB&&c.YB(b);case "remote":return(a=g.WU(d))&&a.qK(b,c);case "unplugged":return(a=g.X(d.U).sa?d.C:null)&&a.A(b,c);case "spacecast":return(c=d.P)&&c.C(b);case "annotations_module":return(a=d.A)&&a.zS(b,c);case "creatorendscreen":return(a=d.G)&&a.ca(b,c)}return iJ.prototype.yd.call(this,a,b,c)};
g.h.ci=function(a){var b=this.app.A;switch(a){case "ad":return(b=b.o)&&b.RS&&"addata adstate breakscount displaystate getContentVideoData loadedadbreaks midrollfreqcap".split(" ");case "remote":return g.WU(b)&&["casting","receivers","currentReceiver","quickCast"];case "annotations_module":return(b=b.A)&&b.AS();case "unplugged":return(g.X(b.U).sa?b.C:null)&&["hideSettingsMenu","showSettingsMenu","toggleSettingsMenu"]}return a?iJ.prototype.ci.call(this,a):(a=iJ.prototype.ci.call(this),b.o&&a.push("ad"),
g.WU(b)&&a.push("remote"),b.A&&a.push("annotations_module"),b.G&&a.push("creatorendscreen"),g.X(b.U).sa&&b.C&&a.push("unplugged"),a)};
g.h.by=function(){var a=this.app.F.Ya();return{width:a.width,height:a.height}};
g.h.NJ=function(a){var b=this.app.F;b.J=wO(a,!0);b.fg()};
g.h.ZR=function(){var a=this.app.A.D;a&&a.B.qc(2,!0)};g.p(PK,OK);g.h=PK.prototype;g.h.ad=function(){H2(this.app,!0,this.playerType);VY(this.app,this.playerType)};
g.h.ld=function(){XY(this.app,this.playerType)};
g.h.de=function(a,b,c){H2(this.app,!0,this.playerType);var d=this.app,e=this.playerType;YY(d,d.getCurrentTime()+a,b,c,e)};
g.h.xc=function(a,b){H2(this.app,!0,this.playerType);YY(this.app,a,b,void 0,this.playerType)};
g.h.Pf=function(){Wna(this.app)};var Wka={hu:"red",Yo:"white"};QK.prototype.g=function(a,b){var c=Math.pow(this.C,a);this.A=b*(1-c)+c*this.A;this.B+=a};
QK.prototype.o=function(){return this.A/(1-Math.pow(this.C,this.B))};RK.prototype.g=function(a,b){SK(this,"index");this.B.push({index:this.J++,weight:a,value:b});this.A+=a;for(SK(this,"index");this.A>this.F;){var c=this.A-this.F,d=this.B[0];d.weight<=c?(this.A-=d.weight,this.B.shift()):(this.A-=c,d.weight-=c)}};
RK.prototype.o=function(){return this.D?(TK(this,this.C-this.D)+TK(this,this.C)+TK(this,this.C+this.D))/3:TK(this,this.C)};UK.prototype.g=function(a,b){this.A.push(b);this.A.length>this.B&&this.A.shift()};
UK.prototype.o=function(){return Vaa.apply(null,this.A)};var Vka={dU:"adunit",LV:"detailpage",jW:"editpage",kW:"embedded",xX:"leanback",fZ:"previewpage",gZ:"profilepage",g0:"unplugged"};g.h=g.fL.prototype;g.h.iy=function(a){this.segments.push(a)};
g.h.getDuration=function(a){return(a=this.Nh(a))?a.duration:0};
g.h.Hm=function(a){return this.getDuration(a)};
g.h.ng=function(){return this.segments.length?this.segments[0].Ba:-1};
g.h.wr=function(a){return(a=this.Nh(a))?a.ingestionTime:window.NaN};
g.h.Hc=function(){return this.segments.length?this.segments[this.segments.length-1].Ba:-1};
g.h.Jm=function(){var a=this.segments[this.segments.length-1];return a?a.endTime:window.NaN};
g.h.Ic=function(){return this.segments[0].startTime};
g.h.Ri=function(){return this.segments.length};
g.h.xn=function(){return 0};
g.h.Xg=function(a){return(a=this.ym(a))?a.Ba:-1};
g.h.lw=function(a){return(a=this.Nh(a))?a.sourceURL:""};
g.h.df=function(a){return(a=this.Nh(a))?a.startTime:0};
g.h.Mm=ba(2);g.h.Pb=function(){return 0<this.segments.length};
g.h.Nh=function(a){a=g.wb(this.segments,new eL(a,0,0,0,""),function(a,c){return a.Ba-c.Ba});
return 0<=a?this.segments[a]:null};
g.h.ym=function(a){a=g.wb(this.segments,{startTime:a},function(a,c){return a.startTime-c.startTime});
return 0<=a?this.segments[a]:this.segments[Math.max(0,-a-2)]};
g.h.hw=function(){return 0};hL.prototype.skip=function(a){this.o+=a};lL.prototype.jm=function(a,b,c){(new window.Uint8Array(this.data.buffer,this.g,c)).set(new window.Uint8Array(a.buffer,b+a.byteOffset,c));this.g+=c};var Rpa=wL;var SN,$N;var Z3=g.Gb,Z3=Z3.toLowerCase();if(Ja(Z3,"android")){var Spa=Z3.match(/android\D*(\d\.\d)[^\;|\)]*[\;\)]/);if(Spa)SN=Number(Spa[1]);else{var Tpa={cupcake:1.5,donut:1.6,eclair:2,froyo:2.2,gingerbread:2.3,honeycomb:3,"ice cream sandwich":4,jellybean:4.1,kitkat:4.4,lollipop:5.1,marshmallow:6,nougat:7.1},Upa=Z3.match("("+g.Ob(Tpa).join("|")+")");SN=Upa?Tpa[Upa[0]]:0}}else SN=void 0;$N=0<=SN;var Tja=['video/mp4; codecs="avc1.42001E, mp4a.40.2"','video/webm; codecs="vp8.0, vorbis"'],Uja=['audio/mp4; codecs="mp4a.40.2"'];ML.prototype.start=function(){return 0};
ML.prototype.end=function(){return window.Infinity};g.h=NL.prototype;g.h.addEventListener=function(){};
g.h.removeEventListener=function(){};
g.h.dispatchEvent=function(){return!1};
g.h.abort=function(){};
g.h.remove=function(){};
g.h.appendBuffer=function(){};g.C(OL,NJ);g.h=OL.prototype;g.h.pa=function(){return this.g};
g.h.wd=function(){return this.g.src};
g.h.Tc=function(){try{return this.g.playbackRate}catch(a){return 1}};
g.h.Of=function(a){this.Tc()!=a&&(this.g.playbackRate=a);return a};
g.h.getCurrentTime=function(){return this.g.currentTime};
g.h.getDuration=function(){return this.g.duration};
g.h.load=function(){var a=this.g.playbackRate;this.g.load();this.g.playbackRate=a};
g.h.pause=function(){this.g.pause()};
g.h.play=function(){var a=this.g.play();a&&a.then&&a.then(void 0,function(a){1E-4>Math.random()&&g.qE(a)})};
g.h.Lb=function(){return this.g.error?this.g.error.code:null};
g.h.setSize=function(a){return g.th(this.g,a)};
g.h.getVolume=function(){return this.g.volume};
g.h.setVolume=function(a){KL();this.g.volume=a};
g.h.pT=function(a){this.dispatchEvent(new WJ(this,a.type,a))};
g.h.setAttribute=function(a,b){this.g.setAttribute(a,b)};
g.h.removeAttribute=function(a){this.g.removeAttribute(a)};
g.h.hasAttribute=function(a){return this.g.hasAttribute(a)};
g.h.W=function(){for(var a in this.A)this.g.removeEventListener(a,this.A[a]);OL.aa.W.call(this)};g.h=QL.prototype;g.h.append=function(a){this.o.webkitSourceAppend(this.A,a)};
g.h.abort=function(){this.o.webkitSourceAbort(this.A)};
g.h.bS=function(){return this.o.webkitSourceState==this.o.SOURCE_CLOSED?new Vja:this.o.webkitSourceBuffered(this.A)};
g.h.dS=function(){return this.B};
g.h.hS=function(a){this.B=a;this.o.webkitSourceTimestampOffset(this.A,a)};g.h=RL.prototype;g.h.addEventListener=function(a,b,c){this.g.addEventListener(a,b,c)};
g.h.removeEventListener=function(a,b,c){this.g.removeEventListener(a,b,c)};
g.h.qT=function(){return this.g.webkitMediaSourceURL};
g.h.addSourceBuffer=function(a){var b=(this.A++).toString();this.g.webkitSourceAddId(b,a);a=new QL(this.g,b);this.sourceBuffers.push(a);return a};
g.h.removeSourceBuffer=function(a){for(var b=0;b<this.sourceBuffers.length;b++)if(a===this.sourceBuffers[b]){this.g.webkitSourceRemoveId(a.A);for(a=b+1;a<this.sourceBuffers.length;a++)this.sourceBuffers[a-1]=this.sourceBuffers[a];this.sourceBuffers.pop();break}};
g.h.eS=function(){switch(this.g.webkitSourceState){case this.g.SOURCE_CLOSED:return"closed";case this.g.SOURCE_OPEN:return"open";case this.g.SOURCE_ENDED:return"ended"}return""};
g.h.endOfStream=function(){this.g.webkitSourceEndOfStream(this.g.EOS_NO_ERROR)};
g.h.fS=function(){gb(this.sourceBuffers)};
g.h.cS=function(){return this.o};
g.h.gS=function(a){this.o=a;this.g.webkitSourceSetDuration&&this.g.webkitSourceSetDuration(a)};g.C(SL,g.DJ);SL.prototype.O=function(){if(!this.na()&&TL(this)&&!(0,window.isNaN)(this.C)){this.B||(this.A.duration=this.C,this.C=window.NaN);try{this.B||(this.g=this.A.addSourceBuffer(this.K),this.J?this.o=this.A.addSourceBuffer(this.V):this.o=new NL),this.D&&(this.D(this),this.D=null)}catch(a){this.G&&this.G(a)}}};
SL.prototype.M=function(){this.dispose()};dM.prototype.toString=function(){return this.start+"-"+(null==this.end?"":this.end)};zM.prototype.verify=function(){if(this.info.wb!=this.range.length)return!1;if(1==this.info.g.info.A){if(8>this.info.wb||4==this.info.type)return!0;var a=AM(this),b=a.getUint32(0,!1),a=a.getUint32(4,!1);if(2==this.info.type)return b==this.info.wb&&1936286840==a;if(3==this.info.type&&0==this.info.o)return 1836019558==a||1936286840==a||1937013104==a||1718909296==a||1701671783==a||1936419184==a}else if(2==this.info.g.info.A){if(4>this.info.wb||4==this.info.type)return!0;b=AM(this).getUint32(0,!1);if(3==
this.info.type&&0==this.info.o)return 524531317==b||440786851==b}return!0};var Uka=["2mdn.net"];MM.prototype.set=function(a,b){this.g[a]!==b&&(this.g[a]=b,this.A="")};
MM.prototype.get=function(a){OM(this);return this.g[a]||null};
MM.prototype.clone=function(){var a=new MM(this.B);a.D=this.D;a.o=this.o;a.C=this.C;a.g=g.Wb(this.g);a.A=this.A;return a};WM.prototype.set=function(a,b){this.g.get(a);this.o[a]=b;this.A=""};
WM.prototype.get=function(a){return this.o[a]||this.g.get(a)};var $3=0;g.h=cN.prototype;g.h.te=function(){};
g.h.bf=function(){};
g.h.Vq=function(){return!1};
g.h.xd=function(){return!!this.g&&!!this.index&&this.index.Pb()};
g.h.hi=function(){};
g.h.ky=function(){return!1};
g.h.Km=function(){};
g.h.gi=function(){};
g.h.Mk=function(){};
g.h.Wg=function(){};
g.h.pq=function(){};
g.h.BA=function(a){return[a]};
g.h.Tn=function(a){return[a]};g.p(dN,cN);g.h=dN.prototype;g.h.te=function(){return!1};
g.h.bf=function(){return!1};
g.h.ky=function(){return this.A};
g.h.Km=function(){return this.A?[]:[new $M([new gM(1,this,this.initRange)],this.J)]};
g.h.gi=function(){};
g.h.Mk=function(a){this.hi(a);return this.km(a.A?a.Ba+1:a.Ba,!1)};
g.h.Wg=function(a,b){b=void 0===b?!1:b;var c=this.index.Xg(a);b&&(c=Math.min(this.index.Hc(),c+1));return this.km(c,!0)};
g.h.pq=function(a){this.g=new window.Uint8Array(AM(a).buffer)};
g.h.Vq=function(){return!1};
g.h.hi=function(a){return 0==a.wb?!0:this.index.Hc()>a.Ba&&this.index.ng()<=a.Ba+1};
g.h.update=function(a,b,c){var d=this.index;if(0!=a.length)if(a=g.ob(a),0==d.segments.length)d.segments=a;else{var e=d.segments.length?g.Ya(d.segments).endTime:0,f=a[0].Ba-d.Hc();1<f&&gb(d.segments);for(f=0<f?0:-f+1;f<a.length;f++){var k=a[f];k.startTime=e;k.endTime=k.startTime+k.duration;e+=a[f].duration;d.segments.push(a[f])}}gL(this.index,c);this.G=b};
g.h.xd=function(){return this.A?!0:cN.prototype.xd.call(this)};
g.h.km=function(a,b){var c=this.index.lw(a),d=this.index.df(a),e=this.index.getDuration(a),f;b?e=f=0:f=0<this.info.g?this.info.g*e:1E3;return new $M([new gM(3,this,null,a,d,e,0,f,a==this.index.Hc()&&!this.G&&0<f)],c)};g.p(eN,g.fL);g.h=eN.prototype;g.h.ng=function(){return this.g?this.segments.length?this.ym(this.Ic()).Ba:-1:g.fL.prototype.ng.call(this)};
g.h.Ic=function(){return this.g?this.segments.length?Math.max(g.Ya(this.segments).endTime-this.A,0):0:g.fL.prototype.Ic.call(this)};
g.h.Ri=function(){return this.g?this.segments.length?this.Hc()-this.ng()+1:0:g.fL.prototype.Ri.call(this)};
g.h.iy=function(a){var b=fN(this,a.Ba);0<=b?this.segments[b]=a:this.segments.splice(-(b+1),0,a)};
g.h.ym=function(a){if(!this.g)return g.fL.prototype.ym.call(this,a);if(!this.segments.length)return null;var b=g.wb(this.segments,{startTime:a},function(a,b){return a.startTime-b.startTime}),c=this.segments[0<=b?b:Math.max(-(b+2),0)];
return c.startTime+c.duration>a&&c.startTime<=a?c:-1==b?hN(this,c.Ba-Math.ceil((c.startTime-a)/this.o),c):hN(this,c.Ba+Math.ceil((a-c.endTime)/this.o),c)};
g.h.Nh=function(a){if(!this.g)return g.fL.prototype.Nh.call(this,a);if(!this.segments.length)return null;var b=fN(this,a);return 0<=b?this.segments[b]:hN(this,a,this.segments[Math.max(-(b+2),0)])};g.p(iN,dN);g.h=iN.prototype;g.h.bf=function(){return!0};
g.h.xd=function(){return!0};
g.h.hi=function(){return!0};
g.h.Km=function(){return[]};
g.h.Wg=function(a,b){return g.oa(a)&&!(0,window.isFinite)(a)?new $M([new gM(3,this,null,-1)],""):dN.prototype.Wg.call(this,a,b)};
g.h.km=function(a,b){if(gN(this.index,a))return dN.prototype.km.call(this,a,b);var c=this.index.df(a);return new $M([new gM(3,this,null,a,c,void 0,void 0,this.D*this.info.g)],0<=a?"sq/"+a:"")};nN.prototype.update=function(a,b){var c=void 0;this.o&&(c=this.o);var d=new nN,e=a.getElementsByTagName("S");if(e.length){var f=+kN(a,"timescale")||1,k=(+e[0].getAttribute("t")||0)/f,l=+kN(a,"startNumber")||0;var m=k;var n=+kN(a,"presentationTimeOffset")||0;m=c?c.Pd+c.durationSecs:b?m-n/f:0;n=Date.parse(jN(kN(a,"yt:segmentIngestTime")))/1E3;d.A="SegmentTemplate"==a.parentNode.tagName;d.A&&(d.D=kN(a,"media"));var q=c?l-c.Ba:1;d.C=0<q?0:-q+1;for(q=0;q<e.length;q++)for(var r=e[q],w=+r.getAttribute("d")/
f,z=(+r.getAttribute("yt:sid")||0)/f,B=+r.getAttribute("r")||0,D=0;D<=B;D++)if(c&&l<=c.Ba)l++;else{var L=new lka(l,m,w,n+z,k);d.g.push(L);var Y=r;var Sa=f,bb=L.Pd,ia=Y.getAttribute("yt:cuepointTimeOffset"),L=Y.getAttribute("yt:cuepointDuration");ia&&L?(bb=+ia/Sa+bb,Sa=+L/Sa,Y=Y.getAttribute("yt:cuepointContext")||null,Y=new oL(bb,Sa,Y)):Y=null;Y&&d.B.push(Y);l++;m+=w;k+=w;n+=w+z}d.g.length&&(d.o=g.Ya(d.g))}this.C=d.C;this.o=d.o||this.o;pb(this.g,d.g);pb(this.B,d.B);this.A=d.A;this.D=d.D};
nN.prototype.Vg=function(a,b,c,d){for(var e=this.D.split("$$"),f=0;f<e.length;f++)e[f]=e[f].replace("$RepresentationID$",a),e[f]=e[f].replace("$Number$",c.toString()),e[f]=e[f].replace("$Bandwidth$",b.toString()),e[f]=e[f].replace("$Time$",d.toString());return e.join("$")};g.h=g.oN.prototype;g.h.xn=function(a){return this.g[a]};
g.h.df=function(a){return this.o[a]/this.B};
g.h.Mm=ba(1);g.h.wr=function(){return window.NaN};
g.h.getDuration=function(a){a=this.Hm(a);return 0<=a?a/this.B:-1};
g.h.Hm=function(a){return a+1<this.La||this.A?this.o[a+1]-this.o[a]:-1};
g.h.ng=function(){return 0};
g.h.Hc=function(){return this.La-1};
g.h.Jm=function(){return this.A?this.o[this.La]/this.B:window.NaN};
g.h.Ic=function(){return 0};
g.h.Ri=function(){return this.La};
g.h.lw=function(){return""};
g.h.Xg=function(a){a=g.wb(this.o.subarray(0,this.La),a*this.B);return 0<=a?a:Math.max(0,-a-2)};
g.h.Pb=function(){return 0<=this.Hc()};
g.h.hw=function(a,b){if(a>=this.Hc())return 0;for(var c=0,d=this.df(a)+b,e=a;e<this.Hc()&&d>this.df(e);e++)c=Math.max(c,(e+1<this.La||this.A?this.g[e+1]-this.g[e]:-1)/this.getDuration(e));return c};
g.h.cap=function(a,b){pN(this);this.A=!0;this.o[this.La]=b;this.g[this.La]=a};g.p(qN,cN);g.h=qN.prototype;g.h.Km=function(a,b){var c=new gM(1,this,this.initRange),d=new gM(2,this,this.indexRange),e=[],f=[c];iM(c,d)?f.push(d):(e.push(new $M([d])),b=!1);(0,window.isNaN)(this.A)&&(b=!1);var c=f[f.length-1],d=c.range.end-f[0].range.start+1,k=0;if(b){var k=a.dr,l=this.info.video?2:a.tc;0<l&&(k=Math.floor(Math.max(k,l*this.info.g)));k=Math.min(a.F,k,this.A);k=a.Hg?Math.min(k,this.A-d):k-d}0<k&&f.push(new gM(4,this,fM(c.range.end+1,k)));e.push(new $M(f));return e};
g.h.pq=function(a){if(1==a.info.type){if(this.g)return;if(a.g.slice)var b=new window.Uint8Array(a.g.slice(a.range.start,a.range.end+1));else b=new window.Uint8Array(a.g,a.range.start,a.range.end+1),b=new window.Uint8Array(b);this.g=b}else if(2==a.info.type){if(this.D||0<=this.index.Hc())return;if(MI(this.info)){b=this.index;var c=AM(a),d=a.info.range.start;a=0;var e=c.getUint32(0,!1),f=c.getUint8(a+8);a+=12;var k=c.getUint32(a+4,!1);b.B=k;a+=8;0==f?(f=c.getUint32(a,!1),k=c.getUint32(a+4,!1),a+=8):
(f=4294967296*c.getUint32(a,!1)+c.getUint32(a+4,!1),k=4294967296*c.getUint32(a+8,!1)+c.getUint32(a+12,!1),a+=16);b.g[0]=k+(e+d);b.o[0]=f;b.A=!0;d=c.getUint16(a+2,!1);a+=4;for(e=0;e<d;e++){f=c.getUint32(a,!1);k=c.getUint32(a+4,!1);a+=12;var l=b;l.La++;pN(l);l.g[l.La]=l.g[l.La-1]+f;l.o[l.La]=l.o[l.La-1]+k}}else this.D=AM(a)}if(2==this.info.A&&this.g&&this.D){a=new window.DataView(this.g.buffer);b=this.index;k=this.D;c=this.indexRange.end;a=new lM(a);if(wM(a,440786851)&&(sM(a),wM(a,408125543)&&(e=a,
f=e.g,d=qM(e,!0),e.g=f,a=pM(a),e=a.A+a.g,wM(a,357149030)))){a=pM(a);for(var l=1E6,m=1E9,f=0;!mM(a);){var n=qM(a,!1);2807729==n?l=rM(a):2807730==n?m=rM(a):17545==n?f=tM(a):sM(a)}b.B=m/l;a=new lM(k);if(wM(a,475249515)){a=pM(a);k=!0;for(l=!1;wM(a,187);){m=pM(a);if(wM(m,179))if(n=rM(m),wM(m,183)){for(var m=pM(m),q=e;wM(m,241);)q=rM(m)+e;m=[q,n]}else m=null;else m=null;q=m;k&&c==q[0]&&(l=!0);k=!1;l&&(q[0]+=1);m=b;n=q[0];q=q[1];pN(m);m.g[m.La]=n;m.o[m.La]=q;m.La++}b.cap(d+e,f)}}this.D=null}};
g.h.BA=function(a){for(var b=this.Tn(a.info),c=[],d=a.A,e=0;e<b.length;e++)c.push(new zM(b[e],a.g,fM(b[e].range.start+b[e].o-a.info.range.start+a.range.start,b[e].wb),a.B,d)),d=!1;return c};
g.h.Tn=function(a){for(var b=0;b<this.index.Hc()&&a.range.start>=this.index.xn(b+1);)b++;return rN(this,b,a.range.start,a.range.length).g};
g.h.hi=function(a){return this.xd()?!0:(0,window.isNaN)(this.A)?!1:a.range.end+1<this.A};
g.h.gi=function(a,b){this.hi(a);if(!this.xd()){var c=fM(a.range.end+1,b);c.end+1>this.A&&(c=new dM(c.start,this.A-1));return new $M([new gM(4,a.g,c)])}4==a.type&&(c=this.Tn(a),a=c[c.length-1]);var c=0,d=a.range.start+a.o+a.wb;3==a.type&&(c=a.Ba,d==a.range.end+1&&(c+=1));return rN(this,c,d,b)};
g.h.Mk=function(){return null};
g.h.Wg=function(a,b){var c=this.index.Xg(a);b&&(c=Math.min(this.index.Hc(),c+1));return rN(this,c,this.index.xn(c),0)};
g.h.Vq=function(){var a;if(a=this.xd()&&!(0,window.isNaN)(this.A))a=this.index,a=(a.A?a.g[a.La]:-1)!=this.A;return a};
g.h.te=function(){return!0};
g.h.bf=function(){return!1};g.p(tN,g.RF);g.h=tN.prototype;g.h.eh=function(){return Kb(this.g,function(a){return a.info.video?2==a.info.video.projectionType:!1})};
g.h.tg=function(){return Kb(this.g,function(a){return a.info.video?3==a.info.video.projectionType:!1})};
g.h.uk=function(){return Kb(this.g,function(a){return a.info.video?4==a.info.video.projectionType:!1})};
g.h.Zh=function(){return Kb(this.g,function(a){return a.info.video?1==a.info.video.stereoLayout:!1})};
g.h.AQ=function(a){var b=a.getElementsByTagName("Representation");if(0<a.getElementsByTagName("SegmentList").length||0<a.getElementsByTagName("SegmentTemplate").length){this.A=!0;this.C||(this.C=new nka);rka(this.C,a,this.ka);this.Y("refresh");for(a=0;a<b.length;a++){var c=AN(this,b[a]),d=this.isLive&&MI(c)&&this.oa;if(!this.g[c.id]){var e=xN(lN(b[a],"BaseURL").textContent,c),f=lN(b[a],"Initialization"),k=kN(f,"sourceURL"),f=eM(kN(f,"range"));d&&(k="",f=void 0);this.g[c.id]=new dN(e,c,k,null===f?
void 0:f)}c=this.g[c.id];e=kN(b[a],"id","AdaptationSet");e=""!=e?e:kN(b[a],"mimetype","AdaptationSet");k=this.C;e=k.A[c.info.id]||k.o[e]||k.g||null;k=e.g;if(e.A)for(d=[],k=g.ka(k),f=k.next();!f.done;f=k.next()){var f=f.value,l=e.Vg(c.info.id,8*c.info.g,f.Ba,f.Pd);d.push(new eL(f.Ba,f.Pd,f.durationSecs,f.g,l,null,f.o))}else{e=g.qb(lN(b[a],"SegmentList").getElementsByTagName("SegmentURL"),e.C);f=[];for(l=0;l<e.length;l++)f.push(Aka(e[l],k[l],d));d=f}c.update(d,this.isLive,this.V)}ska(this.C);return!0}this.duration=
mN(kN(a,"mediaPresentationDuration"));a:{for(a=0;a<b.length;a++){k=b[a];c=AN(this,k);e=lN(k,"BaseURL");d=xN(e.textContent,c);f=lN(k,"SegmentBase");k=eM(f.attributes.indexRange.value);f=eM(f.getElementsByTagName("Initialization")[0].attributes.range.value);e=(0,window.parseInt)(e.getAttribute(yN(this,"contentLength")),10);c=new qN(d,c,f,k,e,window.NaN);if(!c){b=!1;break a}this.g[c.info.id]=c}b=!0}return b};
g.h.Re=function(a){return this.C?g.qb(this.C.B,a):this.G.length?g.qb(this.G,a):[]};
g.h.zG=function(a){if(this.na())return this;this.M=a.status;a=a.responseText;a=(new window.DOMParser).parseFromString(a,"text/xml").getElementsByTagName("MPD")[0];this.D=1E3*mN(kN(a,"minimumUpdatePeriod"))||window.Infinity;if(!this.P){var b;a:{for(b=0;b<a.attributes.length;b++)if("http://youtube.com/yt/2012/10/10"==a.attributes[b].value){b=a.attributes[b].name.split(":")[1];break a}b=""}this.fa=b}this.isLive=window.Infinity>this.D&&this.ra;this.V=(0,window.parseInt)(kN(a,yN(this,"earliestMediaSequence")),
10)||0;if(b=Date.parse(jN(kN(a,yN(this,"mpdResponseTime")))))this.O=((0,g.G)()-b)/1E3;a=this.isLive&&0>=a.getElementsByTagName("SegmentTimeline").length?!1:(0,g.Br)(a.getElementsByTagName("Period"),this.AQ,this);this.F=2;this.Y("loaded");DN(this,a);return this};
g.h.CG=function(a){this.M=a.g.status;this.F=3;this.Y("loaderror");return Pf(a.g)};
g.h.jy=function(){if(1!=this.F&&!this.na()){var a=this.ca;a:{var b=this.g;for(var c in b){var d=b[c].index;if(d&&d.Pb()){b=d.Hc()+1;break a}}b=0}a=g.Dg(a,{start_seq:b.toString()});BN(this,a)}};
g.h.resume=function(){DN(this,!0)};
g.h.mk=function(){var a=this.g,b=window.NaN,c;for(c in a){var d=a[c].index;d&&d.Pb()&&((0,window.isNaN)(b)||d.Jm()<b)&&(b=d.Jm())}return Math.floor(b)};
g.h.Ic=function(){var a=this.g,b;for(b in a){var c=a[b].index;if(c&&c.Pb())return c.Ic()}return 0};
g.h.ZJ=function(){return this.O};
var GN=null,zN={commentary:1,alternate:2,dub:3,main:4};var a4={},$P=(a4.playready=["com.youtube.playready","com.microsoft.playready"],a4.widevine=["com.widevine.alpha"],a4),lla=g.nb($P.widevine,$P.playready);PN.prototype.then=function(a,b,c){return this.A?this.A.then(a,b,c):1==this.o&&a?(a=a.call(c,this.g),If(a)?a:RN(a)):2==this.o&&b?(a=b.call(c,this.g),If(a)?a:QN(a)):this};
Hf(PN);PN.prototype.getValue=function(){return this.g};var Kka="9h 9 h 8 (h ( H *".split(" "),Jka="9h 9 h 8 ( H *".split(" "),aO="h98H(*".split(""),Mka="oMavAV".split(""),Pka=["so","sa"],Oka="moMavAV".split(""),Nka="aoMvAV".split(""),Lka=["f"],Fka={'video/mp4; codecs="avc1.42001E, mp4a.40.2"':"maybe"},Gka={"application/x-mpegURL":"maybe"},Eka={"application/x-mpegURL":"maybe"};var LO={IX:1,JX:2,KX:3};g.C(lO,g.RF);lO.prototype.remove=function(a){var b=this.get(a);delete this.Ka[a];return b};
lO.prototype.get=function(a){return this.Ka[a]||null};
lO.prototype.isEmpty=function(){return g.Tb(this.Ka)};var nO={"ad-trueview-indisplay-pv":6,"ad-trueview-insearch":7},oO={"ad-trueview-indisplay-pv":2,"ad-trueview-insearch":2},pO=/^(\d*)_((\d*)_?(\d*))$/;var Rka=/^([0-9\.]+)\:([0-9\.]+)$/;var zO=(0,g.G)().toString();var EO="blogger books docs google-live play picasaweb gmail jamboard".split(" ");g.p(OO,g.M);
OO.prototype.Zf=function(a){var b=rO(a,this.A,this.Fb),c=!0;b&&(this.K.adformat=a.adformat,qO(b)||(this.ca="adunit"==this.g?this.ca:this.g,this.g="adunit",c=!1));c&&this.ca&&(this.g=this.ca,this.ca=null);if(b=a.video_id&&a.video_id!=this.tf)this.tf=a.video_id;if(a.adpings||b)this.cp=a.adpings?g.zE(a.adpings):null;this.rf?(c=a.videostats_playback_base_url&&a.videostats_playback_base_url.split("/")[2]||"s.youtube.com",this.experiments.g("www_for_videostats")&&"s.youtube.com"==c&&(c="www.youtube.com")):
c="video.google.com";this.Ng=c;this.Lg="//"+this.Ng+"/api/stats/qoe";if(a.feature||b)this.sh=c=a.feature,this.K.feature=c;if(a.referrer||b)this.referrer=b=a.referrer,this.K.referrer=b;for(var d in Vpa)b=Vpa[d],c=a[b],void 0!=c&&(this.B[b]=c);!this.Oa&&a.cl&&(this.Oa=+a.cl);this.userAge=uO(this.userAge,a.user_age);this.userDisplayImage=vO(this.userDisplayImage,a.user_display_image);g.XP.test(this.userDisplayImage)||(this.userDisplayImage="");this.userDisplayName=vO(this.userDisplayName,a.user_display_name);
this.userGender=vO(this.userGender,a.user_gender);this.Zb=vO(this.Zb,a.eventid);this.csiPageType=vO(this.csiPageType,a.csi_page_type);this.kb=vO(this.kb,a.csi_service_name);this.kc=sO(this.kc,a.enablecsi);a.enabled_engage_types&&(this.zb=new window.Set(a.enabled_engage_types.split(",")))};
OO.prototype.getVideoUrl=function(a,b,c,d,e){b={list:b};c&&(e?b.time_continue=c:b.t=c);c=SO(this);d&&"www.youtube.com"==c?d="https://youtu.be/"+a:g.IO(this)?(d="https://"+c+"/fire",b.v=a):(d=this.ha+"://"+c+"/watch",b.v=a,WN&&(a=g.x("yt.ads.biscotti.lastId_")||"")&&(b.ebc=a));return g.Dg(d,b)};
OO.prototype.isAd=function(){return"adunit"==this.g};
var Vpa={IU:"cbrand",JU:"cbr",KU:"cbrver",mX:"c",pX:"cver",oX:"ctheme",nX:"cplayer",UX:"cmodel",BY:"cnetwork",LY:"cos",MY:"cosver",RY:"cplatform"};g.bP.prototype.toString=function(){return this.topic};var Wpa=g.x("ytPubsub2Pubsub2Instance")||new g.hD;g.hD.prototype.subscribe=g.hD.prototype.subscribe;g.hD.prototype.unsubscribeByKey=g.hD.prototype.Qd;g.hD.prototype.publish=g.hD.prototype.Y;g.hD.prototype.clear=g.hD.prototype.clear;g.v("ytPubsub2Pubsub2Instance",Wpa,void 0);var eP=g.x("ytPubsub2Pubsub2SubscribedKeys")||{};g.v("ytPubsub2Pubsub2SubscribedKeys",eP,void 0);var gP=g.x("ytPubsub2Pubsub2TopicToKeys")||{};g.v("ytPubsub2Pubsub2TopicToKeys",gP,void 0);
var fP=g.x("ytPubsub2Pubsub2IsAsync")||{};g.v("ytPubsub2Pubsub2IsAsync",fP,void 0);g.v("ytPubsub2Pubsub2SkipSubKey",null,void 0);var yP=window.performance||window.mozPerformance||window.msPerformance||window.webkitPerformance||{};g.C(lP,g.aP);var jP=new g.bP("timing-sent",lP);oP.prototype.toString=function(){return this.region.toString()+": "+this.timing+" => "+this.url};
pP.prototype.toString=function(){return["progress",this.progress,"timing",this.timing,"area",this.Pc].join(": ")};
nP.o=.1;nP.g=/url\(["']?(http[^'"\)]+)['"]?\)/i;nP.A="mark_iframe_loaded: ";nP.B=20;var gla={vc:!0},CP={'script[name="scheduler/scheduler"]':"sj",'script[name="player/base"]':"pj",'link[rel="stylesheet"][name="www-player"]':"pc",'link[rel="stylesheet"][name="player/www-player"]':"pc",'script[name="desktop_polymer/desktop_polymer"]':"dpj",'link[rel="import"][name="desktop_polymer"]':"dph",'script[name="mobile_polymer/mobile_polymer"]':"mpj",'link[rel="import"][name="mobile_polymer"]':"mph",'script[name="player-plasma-phone/base"]':"mpppj",'script[name="player-plasma-tablet/base"]':"mpptj",
'link[rel="stylesheet"][name="mobile-polymer-player"]':"mppc","#player_css":"mbpc","#player_js":"mbpj"},LP={ad_at:"adType",cpn:"clientPlaybackNonce",csn:"clientScreenNonce",is_nav:"isNavigation",yt_lt:"loadType",yt_ad:"isMonetized",yt_ad_pr:"prerollAllowed",yt_red:"isRedSubscriber",yt_vis:"isVisible",docid:"videoId",plid:"videoId",fmt:"playerInfo.itag"},fla="ap c cver ei yt_fss yt_li".split(" "),dla={ad_to_ad:"LATENCY_ACTION_AD_TO_AD",ad_to_video:"LATENCY_ACTION_AD_TO_VIDEO",browse:"LATENCY_ACTION_BROWSE",
channels:"LATENCY_ACTION_CHANNELS","channel.analytics":"LATENCY_ACTION_CREATOR_CHANNEL_ANALYTICS","channel.videos":"LATENCY_ACTION_CREATOR_CHANNEL_VIDEOS",embed:"LATENCY_ACTION_EMBED",home:"LATENCY_ACTION_HOME",library:"LATENCY_ACTION_LIBRARY",live:"LATENCY_ACTION_LIVE",results:"LATENCY_ACTION_RESULTS",search:"LATENCY_ACTION_RESULTS",video_to_ad:"LATENCY_ACTION_VIDEO_TO_AD",watch:"LATENCY_ACTION_WATCH","watch,watch7":"LATENCY_ACTION_WATCH","watch,watch7_html5":"LATENCY_ACTION_WATCH","watch,watch7ad":"LATENCY_ACTION_WATCH",
"watch,watch7ad_html5":"LATENCY_ACTION_WATCH","video.analytics":"LATENCY_ACTION_CREATOR_VIDEO_ANALYTICS","video.comments":"LATENCY_ACTION_CREATOR_VIDEO_COMMENTS"},ela=["isNavigation","isMonetized","prerollAllowed","isRedSubscriber","isVisible"],$ka=(0,g.A)(yP.clearResourceTimings||yP.webkitClearResourceTimings||yP.mozClearResourceTimings||yP.msClearResourceTimings||yP.oClearResourceTimings||g.y,yP);PP.prototype.reset=function(){sP(this.g)};
PP.prototype.o=function(a,b){g.uP(a,b,this.g)};
PP.prototype.info=function(a,b){g.vP(a,b,this.g)};TP.prototype.toString=function(){return this.type+this.id};var WP={iurl:"default.jpg",iurlmq:"mqdefault.jpg",iurlhq:"hqdefault.jpg",iurlsd:"sddefault.jpg",iurlpop1:"pop1.jpg",iurlpop2:"pop2.jpg",iurlhq720:"hq720.jpg",iurlmaxres:"maxresdefault.jpg"},ila={120:"default.jpg",320:"mqdefault.jpg",480:"hqdefault.jpg",560:"pop1.jpg",640:"sddefault.jpg",854:"pop2.jpg",1280:"hq720.jpg"};g.p(ZP,g.M);
ZP.prototype.D=function(){if(!this.na())if(0==this.o.length)this.A(null);else{var a=this.o.shift(),b=this.g[a],c=b.g,d={initDataTypes:["cenc","webm"],audioCapabilities:[],videoCapabilities:[]},e;for(e in this.B[c]){var f=0==e.indexOf("audio/"),k=f?d.audioCapabilities:d.videoCapabilities;this.C.g("html5_widevine_robustness_strings")&&"widevine"==c?f?k.push({contentType:e,robustness:"SW_SECURE_CRYPTO"}):(k.push({contentType:e,robustness:"HW_DECODE_ALL"}),k.push({contentType:e,robustness:"SW_SECURE_DECODE"})):k.push({contentType:e})}window.navigator.requestMediaKeySystemAccess(a,
[d]).then(rE((0,g.A)(this.F,this,b)),rE((0,g.A)(this.D,this)))}};
ZP.prototype.F=function(a,b){function c(b){a.B[b.contentType]=!0}
if(!this.na()){a.A=b;var d=b.getConfiguration();d.audioCapabilities&&d.audioCapabilities.forEach(c);d.videoCapabilities&&d.videoCapabilities.forEach(c);this.A(a)}};var ola=new window.Set("BASE_URL BASE_YT_URL abd allow_embed authuser autoplay captions_load_policy cc_load_policy cc3_module dash dashmpd docid el enable_cardio enablecastapi enablepostapi fmt_list fmt_stream_map hl hlsdvr hlsrange hlsvp html5 iurl iurlhq iurlmq length_seconds live_playback nohtml5 origin override_hl partnerid plid postid ps public rel reload_count reload_reason reportabuseurl resume start status streaminglib_load_policy streaminglib_preroll t timestamp title token ttsurl use_native_controls url_encoded_fmt_stream_map video_id videoid wmode".split(" "));g.p(bQ,TI);
bQ.prototype.g=function(){if(!this.o||this.o.na()){var a=this.B;qla(a);for(var b=["#EXTM3U","#EXT-X-INDEPENDENT-SEGMENTS"],c={},d=0,e=a.o.length;d<e;++d){var f=a.o[d];c[f.itag]=f;b.push('#EXT-X-MEDIA:TYPE=AUDIO,NAME="audio",DEFAULT=YES,AUTOSELECT=YES,GROUP-ID="'+f.itag.toString()+'",URI="'+f.url+'"')}d=0;for(e=a.g.length;d<e;++d){var k=a.g[d];f=c[k.audioItag];b.push("#EXT-X-STREAM-INF:BANDWIDTH="+(k.bitrate+f.bitrate)+',CODECS="'+(k.uv+","+f.uv)+'",RESOLUTION='+(k.width+"x"+k.height)+',AUDIO="'+f.itag.toString()+
'",CLOSED-CAPTIONS=NONE');b.push(k.url)}this.o=new SI("data:application/x-mpegurl;charset=utf-8,"+(0,window.encodeURIComponent)(b.join("\n")))}return this.o};g.p(dQ,TI);dQ.prototype.g=function(){return new SI(NM(this.o))};
dQ.prototype.A=function(){this.o=RM(this.o,1);return!0};g.C(fQ,g.RF);fQ.prototype.K=function(a,b){this.o=this.o.onload=null;var c=this.g[a];c.Sc[b]=!0;jQ(this);var d=c.columns*c.rows;var e=b*d;c=Math.min(e+d-1,c.Wp()-1);e=[e,c];this.Y("l",e[0],e[1])};
fQ.prototype.W=function(){this.o&&(this.o=this.o.onload=null);fQ.aa.W.call(this)};g.h=mQ.prototype;g.h.Eb=function(){return this.F};
g.h.getHeight=function(){return this.D};
g.h.Wp=function(){return this.o};
g.h.isDefault=function(){return-1!=this.A.indexOf("default")};
g.h.Pb=function(a){return!!this.Sc[a]};
g.h.Do=function(a){var b=this.Wp()-1;return g.Hd(0==this.B?Math.round(a*this.o/this.K):Math.round(1E3*a/this.B),0,b)};
g.h.Ft=function(){return this.o-1};
g.h.sC=function(){return this.o?0:-1};
g.h.tC=function(){};g.C(nQ,fQ);nQ.prototype.A=function(a,b){for(var c=[],d=a.split("|"),e=d[0],f=1;f<d.length;f++){var k=this.D(f-1,e,d[f],b);180>k.getHeight()&&c.push(k)}return c};
nQ.prototype.D=function(a,b,c,d){return new mQ(a,b,c,d)};
nQ.prototype.J=function(){};g.C(oQ,mQ);g.h=oQ.prototype;g.h.Wp=function(){return this.g?this.g.Ri():-1};
g.h.Do=function(a){var b=this.rows*this.columns*this.G,c=-1,d=-1,e=this.g;e&&(c=e.Hc(),d=e.Xg(a));return d>c-b?-1:d};
g.h.Ft=function(){return this.g?this.g.Hc():-1};
g.h.sC=function(){return this.g?this.g.ng():-1};
g.h.tC=function(a){this.g=a?a.index:null};g.C(pQ,nQ);pQ.prototype.A=function(a,b){return pQ.aa.A.call(this,"$N|"+a,b)};
pQ.prototype.D=function(a,b,c){return new oQ(a,b,c,this.M.isLive)};
pQ.prototype.J=function(a){for(var b=0;b<this.g.length;b++)this.g[b].tC(a)};g.p(qQ,TI);qQ.prototype.g=function(){return new SI(this.o)};var Ela={0:"UNKNOWN",1:"OFF",2:"ON",3:"FORCED_ON"},b4={},Xpa=(b4.ALWAYS=1,b4.BY_REQUEST=3,b4),Bla,tQ;g.p(g.sQ,g.RF);g.h=g.sQ.prototype;g.h.Zf=function(a,b){b?(this.setData(a),MQ(this)&&AQ(this)):(wQ(this,a,!0),this.Y("dataupdated"))};
g.h.setData=function(a){a=a||{};a.player_response&&(this.Nb=g.jg(a.player_response));this.hg="1"!=a.hlsdvr?!1:VN()?!0:FO&&5>AZ?!1:!0;this.oF=a.ad_query_id;this.adSafetyReason=a.encoded_ad_safety_reason;this.pF=a.agcid;this.Nl="1"==a.infringe||"1"==a.muted;this.Qu=a.authkey;this.Ec=a.authuser;this.clientPlaybackNonce||(this.clientPlaybackNonce=a.cpn||CO());this.enableCardio=sO(this.enableCardio,a.enable_cardio);this.enableCardioBeforePlayback=sO(this.enableCardioBeforePlayback,a.enable_cardio_before_playback);
this.Ki=uO(this.Ki,a.end||a.endSeconds);this.fn=vO(this.fn,a.itct);this.Uq=sO(this.Uq,a.noiba);this.Ck="1"==a.livemonitor;this.Ca="1"==a.live_playback||!!a.fresca_preroll||!!a.heartbeat_preroll;this.isLiveDestination=sO(this.isLiveDestination,a.is_live_destination);this.isLiveDefaultBroadcast="1"==a.live_default_broadcast;this.isLowLatencyLiveStream="1"==a.is_low_latency_live_stream;this.isMdxPlayback=sO(this.isMdxPlayback,a.mdx);a.mdx_control_mode&&(this.mdxControlMode=Va(a.mdx_control_mode));this.ni=
uO(this.ni,a.reload_count);this.os=vO(this.os,a.reload_reason);this.Yq=sO(this.Yq,a.utpsa);this.cycToken=a.cyc;this.lB=a.tkn;this.Mj="1"==a.innertube_thumbnail&&this.Nb.videoDetails.thumbnail?jla(this.Nb.videoDetails.thumbnail):YP(a);this.cg=vO(this.cg,a.vvt);this.mdxEnvironment=vO(this.mdxEnvironment,a.mdx_environment);this.dM=a.osig;this.hA=a.ptchn;this.iA=a.oid;this.Yk=a.ptk;this.jA=a.pltype;this.playbackId=a.plid;this.eventId=a.eventid;this.osid=a.osid;this.videoMetadata=a.vm;this.Yr=a.of;this.lo=
a.upt;this.playlistId=vO(this.playlistId,a.list);this.rA=a.pyv_view_beacon_url;this.KQ=a.pyv_quartile25_beacon_url;this.LQ=a.pyv_quartile50_beacon_url;this.MQ=a.pyv_quartile75_beacon_url;this.JQ=a.pyv_quartile100_beacon_url;a.remarketing_url&&(this.remarketingUrl=a.remarketing_url);a.ppv_remarketing_url&&(this.ppvRemarketingUrl=a.ppv_remarketing_url);this.Rn=a.sdetail;!this.ls&&a.session_data&&(this.ls=g.yE(a.session_data).feature);this.isFling=1==uO(this.isFling?1:0,a.is_fling);this.vnd=uO(this.vnd,
a.vnd);this.Pp=vO(this.Pp,a.force_ads_url);this.Wf=vO(this.Wf,a.ctrl);this.hf=vO(this.hf,a.ytr);this.gm=a.ytrcc;this.uA=a.ytrexp;this.jl=xO(this.jl,a.vq);this.nl=xO(this.nl,a.suggestedQuality);this.co=sO(this.co,a.ssrt);this.videoId=yO(a)||this.videoId;this.vssCredentialsToken=vO(this.vssCredentialsToken,a.vss_credentials_token);this.wo=vO(this.wo,a.vss_credentials_token_type);this.ypcGid=vO(this.ypcGid,a.ypc_gid);this.heartbeatToken=vO(this.heartbeatToken,a.heartbeat_token);this.heartbeatInterval=
uO(this.heartbeatInterval,a.heartbeat_interval);this.heartbeatRetries=uO(this.heartbeatRetries,a.heartbeat_retries);this.heartbeatSoftFail=sO(this.heartbeatSoftFail,a.heartbeat_soft_fail);this.Tq=sO(this.Tq,a.ithb);this.lx=sO(this.lx,a.strpro);if(a.ad3_module||a.ad_module)"1"==a.allow_html5_ads?(this.adModule=!0,"1"==a.ad_preroll&&this.ge.push("ad")):"1"!=a.supported_without_ads&&(this.Jw=!0);a.adaptive_fmts&&(this.adaptiveFormats=a.adaptive_fmts);this.Nb&&this.Nb.attestation&&this.Nb.attestation.playerAttestationRenderer?
this.Sj=this.Nb.attestation.playerAttestationRenderer.challenge:void 0!=a.atc&&(this.Sj=a.atc);a.license_info&&(this.ed=Dla(a.license_info));a.allow_embed&&(this.allowEmbed="1"==a.allow_embed);a.backgroundable&&(this.backgroundable="1"==a.backgroundable);a.autonav&&(this.jn="1"==a.autonav);a.autoplay&&(this.rh="1"==a.autoplay);if(a.iv_load_policy)this.Pg=tO(this.Pg,a.iv_load_policy,LO);else{var b=uQ(this.Nb);b&&b.loadPolicy&&(this.Pg=Xpa[b.loadPolicy])}a.cc_lang_pref&&(this.Hi=vO(a.cc_lang_pref,this.Hi));
a.cc_load_policy&&(this.Qg=tO(this.Qg,a.cc_load_policy,LO));"0"==a.dash&&(this.Jp=!0);if(a.dashmpd){this.xe=g.Dg(a.dashmpd,{cpn:this.clientPlaybackNonce});var b=/\/s\/([0-9A-F.]+)/,c=b.exec(this.xe);c&&(c=pE(c[1]),this.xe=this.xe.replace(b,"/signature/"+c))}a.delay&&(this.Af=Va(a.delay));a.drm_session_id&&(this.drmSessionId=a.drm_session_id);void 0!=a.end&&(this.clipEnd=a.end);a.fair_play_cert&&window.atob&&(this.fairPlayCert=(0,window.atob)(a.fair_play_cert));a.fmt_list&&(this.fmtList=a.fmt_list);
a.fresca_preroll&&this.ge.push("fresca");a.heartbeat_preroll&&this.ge.push("heartbeat");a.idpj&&(this.gj=Va(a.idpj));a.ismb&&(this.sg=Va(a.ismb));a.is_listed&&(this.isListed=sO(this.isListed,a.is_listed));a.paid_content_overlay_duration_ms&&(this.gA=Va(a.paid_content_overlay_duration_ms));a.paid_content_overlay_text&&(this.zQ=a.paid_content_overlay_text);a.url_encoded_fmt_stream_map&&(this.yh=a.url_encoded_fmt_stream_map);a.hls_formats&&(this.hlsFormats=a.hls_formats);a.hlsvp&&(this.hlsvp=a.hlsvp);
a.length_seconds&&(this.lengthSeconds=Va(a.length_seconds));a.live_chunk_readahead&&(this.liveChunkReadahead=uO(this.liveChunkReadahead,a.live_chunk_readahead));a.live_start_walltime&&(this.liveStartWalltime=Va(a.live_start_walltime));a.live_manifest_duration&&(this.gr=Va(a.live_manifest_duration));a.ldpj&&(this.Ek=Va(a.ldpj));a.player_params&&(this.playerParams=a.player_params);a.relative_loudness&&(this.relativeLoudness=Va(a.relative_loudness),this.wc=Math.min(1,Math.pow(10,-this.relativeLoudness/
20)));a.partnerid&&(this.qh=Va(a.partnerid));a.probe_url&&(this.probeUrl=LM(g.Dg(a.probe_url,{cpn:this.clientPlaybackNonce})));a.profile_picture&&(this.profilePicture=vO(a.profile_picture,this.profilePicture));a.pyv_billable_url&&g.Q3.test(a.pyv_billable_url)&&(this.Mn=a.pyv_billable_url);a.pyv_conv_url&&g.Q3.test(a.pyv_conv_url)&&(this.xj=a.pyv_conv_url);a.video_masthead_ad_quartile_urls&&(b=a.video_masthead_ad_quartile_urls,this.lr=b.quartile_0_url,this.Kx=b.quartile_25_url,this.Lx=b.quartile_50_url,
this.Mx=b.quartile_75_url,this.Jx=b.quartile_100_url);"1"==a.spacecast_playback&&(this.ge.push("spacecast"),this.spacecastModule=!0,this.pi.EQ=!0);a.spacecast_addrs&&(this.spacecastModule=!0,b={},b.addresses=a.spacecast_addrs.split(","),b.probe=!0,a.spacecast_query_params&&(b.applianceQueryParams=a.spacecast_query_params),this.pi.init=b);0<this.startSeconds||(this.kx=this.startSeconds=uO(this.startSeconds,a.start||a.startSeconds));void 0==a.start||"1"==a.resume||this.Ca||(this.clipStart=a.start);
a.two_stage_token&&(this.xh=a.two_stage_token);a.url_encoded_third_party_media&&(this.Lj=GE(a.url_encoded_third_party_media));a.watch_ajax_token&&(this.watchAjaxToken=a.watch_ajax_token);a.ypc_module&&this.ge.push("ypc");a.ypc_clickwrap_module&&this.ge.push("ypc_clickwrap");this.ol=vO(this.ol,a.ucid);(0,g.H)("baseUrl uid oeid ieid ppe engaged subscribed".split(" "),function(b){a[b]&&(this.we[b]=a[b])},this);
this.we.focEnabled=sO(this.we.focEnabled,a.focEnabled);this.we.rmktEnabled=sO(this.we.rmktEnabled,a.rmktEnabled);this.Yb=a;wQ(this,a,!1);yQ(this)||(this.adaptiveFormats&&!this.Ca?(BQ(this,vN(CQ(this,this.adaptiveFormats),this.ed,this.lengthSeconds,void 0,this.Jj)),uN(this.va)&&(this.hj=!0)):this.xe&&(this.ak=!0));a.adpings&&(this.cp=a.adpings?g.zE(a.adpings):null);a.feature&&(this.sh=a.feature);a.referrer&&(this.referrer=a.referrer);a.multifeed_metadata_list&&(this.Eh=GE(a.multifeed_metadata_list));
this.clientScreenNonce=vO(this.clientScreenNonce,a.csn);this.rootVeType=uO(this.rootVeType,a.root_ve_type);a.unplugged_location_info&&(this.ti=a.unplugged_location_info);a.unplugged_partner_opt_out&&(this.Oj=vO("",a.unplugged_partner_opt_out));this.zk=vO(this.zk,a.internal_ip_override);this.innertubez=vO(this.innertubez,a.innertubez)};
g.h.Kd=function(){return!this.Ca||this.hg};
g.h.AI=function(a){(this.Jf=a)&&"fairplay"==this.Jf.g&&(this.Jf.fairPlayCert=this.fairPlayCert);AQ(this)};
g.h.bf=function(){return!(!this.va||!this.va.o)};
g.h.lN=function(a){this.na()||(BQ(this,a),this.Ca&&this.va.subscribe("refresh",this.zz,this),g.uP("mrc"),uN(this.va)&&(this.hj=!0),AQ(this))};
g.h.kN=function(a){this.na()||(this.hh=!1,this.Y("dataloaderror",new g.RP("manifest.net.retryexhausted",!0,{backend:"manifest",rc:a.status})))};
g.h.zz=function(){this.na()||(this.va.isLive||this.va.unsubscribe("refresh",this.zz,this),this.hv())};
g.h.hv=function(){var a=this.va.Re(this.fr);0<a.length&&(this.Y("cuepointupdated",a),this.fr+=a.length)};
g.h.QI=function(a){if(this.spacecastFormatMap){var b=CQ(this,this.spacecastFormatMap);return eQ(a,b,EQ(this,a)).then(this.ao,void 0,this).then(this.Xv,void 0,this)}return QN()};
g.h.LI=function(a){var b=yQ(this)||a.Wq;if(this.va&&!b){if(!a.D){var b=this.va,c=this.Ca;if(!b.g["0"]){var d=new FI(0,0,0,void 0,void 0,"auto"),d=new JI("0","",void 0,d);b.g["0"]=c?new dN(new MM("http://www.youtube.com/videoplayback"),d,"fake"):new qN(new MM("http://www.youtube.com/videoplayback"),d,new dM(0,0),new dM(0,0),0,window.NaN)}}return dO(a.O,this.va,this.Jf,!1,Xka(a)).then(this.As,void 0,this)}return QN()};
g.h.MI=function(a){if(this.hlsFormats){var b=CQ(this,this.hlsFormats);return tla(a,b,this.sg).then(this.ao,void 0,this)}return QN()};
g.h.RI=function(a){if(this.Lj&&this.vx){var b=ula(this.Lj);a=UN(a.O,b,QO(a)).then(this.ao,void 0,this)}else a=QN();return a};
g.h.OI=function(a){var b=CQ(this,this.yh,this.fmtList);if(this.hlsvp){var c=this.hlsvp,d=this.sg,e={cpn:this.clientPlaybackNonce};-1==c.indexOf("/ibw/")&&(e.ibw=d?String(d):"1369843");c={url:g.Dg(c,e),type:"application/x-mpegURL",quality:"auto",itag:"93"};b.push(c)}return eQ(a,b,EQ(this,a)).then(this.ao,void 0,this)};
g.h.As=function(a){this.jb=a;this.dh=this.dh||/^r/.test(this.clientPlaybackNonce)&&!!this.jb.videoInfos.length&&1080<this.jb.videoInfos[0].video.o;a=this.jb?this.jb.audioTracks:[];a=a.concat(this.pm);for(var b=0;b<this.Vj.length;b++)for(var c=this.Vj[b],d=0;d<a.length;d++){var e=a[d],f=e.Rc.id==c.audioTrackId;if(e.Rc.isDefault&&b==this.wp||f){if(c.captionTrackIndices)for(f=0;f<c.captionTrackIndices.length;f++)e.captionTracks[f]=this.captionTracks[c.captionTrackIndices[f]];g.t(c.defaultCaptionTrackIndex)&&
(e.qm=this.captionTracks[c.defaultCaptionTrackIndex]);g.t(c.forcedCaptionTrackIndex)&&(e.hk=this.captionTracks[c.forcedCaptionTrackIndex]);e.Xu=c.visibility||"UNKNOWN"}}};
g.h.ao=function(a){this.al=a;this.As(new ON((0,g.I)(this.al,function(a){return a.Ae})))};
g.h.Xv=function(){var a=Ld(this.jb.videoInfos,function(a,c){return c.video.isAccelerated&&(!a||a.height<c.video.height)?c.video:a},null);
a&&(this.nl=this.jl=a=WI(a.quality,a.quality,!0))};
g.h.td=function(){var a={};this.Ma&&(a.fmt=II(this.Ma),this.qd&&II(this.qd)!=II(this.Ma)&&(a.afmt=II(this.qd)));a.plid=this.playbackId;a.ei=this.eventId;a.list=this.playlistId;a.cpn=this.clientPlaybackNonce;this.videoId&&(a.v=this.videoId);this.Nl&&(a.infringe=1);this.If&&(a.splay=1);this.Ca&&(a.live=this.hg?"dvr":"live");this.rh&&(a.autoplay=1);this.Rn&&(a.sdetail=this.Rn);this.qh&&(a.partnerid=this.qh);this.osid&&(a.osid=this.osid);return a};
g.h.getStoryboardFormat=function(){if(this.Nb&&this.Nb.storyboards){var a=this.Nb.storyboards;return(a=a.playerStoryboardSpecRenderer||a.playerLiveStoryboardSpecRenderer)&&a.spec||null}return this.Yb.storyboard_spec||this.Yb.live_storyboard_spec};
g.h.mk=function(){return this.va&&!(0,window.isNaN)(this.va.mk())?this.va.mk():this.lengthSeconds};
g.h.Ic=function(){return this.va&&!(0,window.isNaN)(this.va.Ic())?this.va.Ic():0};
g.h.He=function(){return!this.na()&&!(!this.videoId&&!this.Lj)};
g.h.Pb=function(){return MQ(this)&&!this.ak&&!this.hj};
g.h.IA=function(){var a={format:"RAW",method:"GET",withCredentials:this.yA};this.Ej&&this.visitorData&&(a.headers={"X-Goog-Visitor-Id":this.visitorData});0<this.cq&&(a.timeout=this.cq);var b=this.eq;0<this.ie&&(b=g.BE(b,{playerretry:this.ie}));this.pw?sN(cF,b,a).then(rE(this.Cz),rE(this.FN),this):(a.context=this,a.Mb=this.Cz,a.onError=this.nq,g.KE(b,a));g.uP("vir");g.uP("vir",void 0,"video_to_ad");this.ow=(0,g.sG)()};
g.h.ac=function(a,b){if(30==this.qh){var c=this.Mj["default.jpg"];return c?c:this.videoId?g.Dg("//docs.google.com/vt",{id:this.videoId,authuser:this.Ec,authkey:this.Qu}):"//docs.google.com/images/doclist/cleardot.gif"}b||(b="hqdefault.jpg");return(c=this.Mj[b])||a.J||"pop1.jpg"==b||"pop2.jpg"==b||"sddefault.jpg"==b||"hq720.jpg"==b||"maxresdefault.jpg"==b?c:TO(a,this.videoId,b)};
g.h.Cz=function(a){if(!this.na()){var b=a.responseText;if(b){this.hh=!1;var c=g.zE(b);this.qx&&aQ(c);"fail"==c.status?this.Y("onStatusFail",c):(g.uP("virc"),g.uP("virc",void 0,"video_to_ad"),(0,g.H)(g.Ypa,function(a){a in this.Yb&&(c[a]=this.Yb[a])},this),this.setData(c),MQ(this)?AQ(this):this.Y("dataloaderror",new g.RP("manifest.net.retryexhausted",!0,{successButUnplayable:"1"})))}else this.nq(a)}};
g.h.FN=function(a){this.nq(a.g)};
g.h.nq=function(a){if(!this.na()){var b=a?a.status:-1;a=this.ie>=this.rs||400==b;var c=200<b?"manifest.net.badstatus":"manifest.net.connect",d=(((0,g.sG)()-this.ow)/1E3).toFixed(3),b={backend:"gvi",rc:b,rt:d};a&&this.rs?(c="manifest.net.retryexhausted",b.urllen=this.eq.length):a||(this.ie++,this.HA.start());this.Y("dataloaderror",new g.RP(c,a,b))}};
g.h.getPlayerResponse=function(){return this.Nb};
g.h.getPlaylistId=function(){return null};
g.h.hc=function(){return this};
g.h.Om=function(a){return a.getVideoUrl(this.videoId)};
g.h.eh=function(){return!!this.va&&this.va.eh()};
g.h.tg=function(){return!!this.va&&this.va.tg()};
g.h.uk=function(){return!!this.va&&this.va.uk()};
g.h.Zh=function(){return!!this.va&&this.va.Zh()};
g.Ypa="ypc_buy_url ypc_full_video_message ypc_item_thumbnail ypc_item_title ypc_item_url ypc_module ypc_offer_button_text ypc_offer_description ypc_offer_headline ypc_offer_id ypc_offer_type ypc_overlay_timeout ypc_preview ypc_signin_message ypc_vid".split(" ");Bla="author cc_asr cc_load_policy iv_load_policy iv_new_window keywords oauth_token requires_purchase rvs subscribed title ttsurl ypc_buy_url ypc_full_video_length ypc_item_thumbnail ypc_item_title ypc_item_url ypc_offer_button_text ypc_offer_description ypc_offer_headline ypc_offer_id ypc_preview ypc_price_string ypc_video_rental_bar_text".split(" ");
tQ=["annotations","captions","storyboard"];g.C(g.TQ,g.RF);g.h=g.TQ.prototype;g.h.hasNext=function(a){return this.loop||!!a||this.jc+1<this.gh};
g.h.Gf=function(a){return this.loop||!!a||0<=this.jc-1};
g.h.hc=function(a,b){var c=void 0!=a?a:this.jc,c=this.Ka&&c in this.Ka?this.Ka[this.Nd[c]]:null,d=null;c&&(b&&(c.autoplay="1"),d=new g.sQ(c),d.startSeconds=this.startSeconds||d.clipStart||0,this.listId&&(d.playlistId=this.listId.toString()));return d};
g.h.setShuffle=function(a){this.bB=a;a=this.Nd&&null!=this.Nd[this.jc]?this.Nd[this.jc]:this.jc;this.Nd=[];for(var b=0;b<this.Ka.length;b++)this.Nd.push(b);this.jc=a;this.mn++;if(this.bB){a=this.Nd[this.jc];for(b=1;b<this.Nd.length;b++){var c=Math.floor(Math.random()*(b+1)),d=this.Nd[b];this.Nd[b]=this.Nd[c];this.Nd[c]=d}for(b=0;b<this.Nd.length;b++)this.Nd[b]==a&&(this.jc=b);this.mn++}this.Y("shuffle")};
g.h.ac=function(a,b){b=b||"hqdefault.jpg";var c=this.Mj[b];if(c||a.J||"sddefault.jpg"==b||"hq720.jpg"==b||"maxresdefault.jpg"==b)return c;if(this.jB.length)return TO(a,this.jB[0],b)};
g.h.Xd=function(){return this.jc};
g.h.getLength=function(){return this.gh};
g.h.gk=function(a){if(a&&(a=a.videoId,!this.Ka[this.jc]||this.Ka[this.jc].video_id!=a))for(var b=0;b<this.Ka.length;b++)if(this.Ka[b].video_id==a){this.jc=b;break}};
g.h.onReady=function(a){this.bl=a;this.Sc&&g.xE(this.bl,0)};
g.h.getPlaylistId=function(){return this.listId?this.listId.toString():null};
g.h.Om=function(a){return a.getVideoUrl(this.hc().videoId,this.getPlaylistId())};
g.h.W=function(){this.bl=null;g.Le(this.Ka);g.TQ.aa.W.call(this)};g.C(g.$Q,g.M);g.h=g.$Q.prototype;g.h.Ja=function(a,b){g.t(b)?oe(a,this.element,b):a.appendChild(this.element)};
g.h.detach=function(){g.pe(this.element)};
g.h.update=function(a){for(var b in a)this.Da(b,a[b])};
g.h.Da=function(a,b){var c=this.Ia["{{"+a+"}}"];c&&bR(this,c[0],c[1],b)};
g.h.W=function(){this.xa={};this.Ia={};this.detach();g.$Q.aa.W.call(this)};
g.$Q.o=1;g.$Q.g=function(){return"ytp-svg-"+g.$Q.o++};g.C(g.W,g.$Q);g.h=g.W.prototype;g.h.dc=function(a,b){this.Da(b||"content",a)};
g.h.show=function(){this.g||(g.cR(this.element,""),this.g=!0)};
g.h.hide=function(){this.g&&(g.cR(this.element,"none"),this.g=!1)};
g.h.Jb=function(a){a?this.show():this.hide()};
g.h.X=function(a,b,c){return this.T(this.element,a,b,c)};
g.h.T=function(a,b,c,d){c=(0,g.A)(c,d||this);d={target:a,type:b,listener:c};this.ca.push(d);a.addEventListener(b,c);return d};
g.h.za=function(a){for(var b=0;b<this.ca.length;b++)if(this.ca[b]==a){a=this.ca.splice(b,1)[0];a.target.removeEventListener(a.type,a.listener);break}};
g.h.focus=function(){g.Ce(this.element);this.element.focus()};
g.h.W=function(){for(;this.ca.length;){var a=this.ca.pop();a.target.removeEventListener(a.type,a.listener)}g.W.aa.W.call(this)};gR.prototype.forEach=function(a){for(var b=this.o+1;b<this.g.length;b++)a(this.g[b]||0);for(b=0;b<=this.o;b++)a(this.g[b]||0)};
gR.prototype.fb=function(){var a=[];this.forEach((0,g.A)(a.push,a));return a};
gR.prototype.clear=function(){for(var a=this.g.length,b=0;b<a;b++)this.g[b]=0;this.o=this.g.length-1};kR.prototype.reset=function(){this.K=mR(this);this.F=window.NaN;this.J=0;this.g=new jR(0,0,null);this.B=8;this.C=[];this.A=this.D=window.NaN;this.o=this.G=0};
kR.prototype.process=function(a){if(this.C.length){if(pR(this)&&this.C.length+a.byteLength<this.B)return qR(this,a,0);var b=this.C.length,c=new window.Uint8Array(b+a.byteLength);c.set(this.C,0);c.set(new window.Uint8Array(a.buffer,a.byteOffset,a.byteLength),b);this.C=[];a=new window.DataView(c.buffer)}for(b=0;b<a.byteLength;){var c=a.byteLength-b,d=window.NaN;if(pR(this)){if(c<this.B)return qR(this,a,b);switch(this.g.type){case 0:case 1836019574:case 1836019558:d=nR(this,a,b);break;case 1953653094:c=
a;d=b;this.G||(this.G=uL(rR(this,c,d),this.o));d=nR(this,c,d);break;case 1836476516:this.o=Rpa(rR(this,a,b));oR(this);d=this.g.size-8;break;case 1952867444:c=a;d=b;(0,window.isNaN)(this.A)||((0,window.isNaN)(this.F)&&(this.F=this.A),this.M&&BL(rR(this,c,d),this.A),this.A+=this.G,this.J+=this.G);d=this.g.size-8;break;case 1936286840:c=rR(this,a,b),d=EL(c),this.o=DL(c),oR(this),this.G=d,d=this.g.size-8}}else d=Math.min(this.B,c);this.g.offset+=d;this.B-=d;b+=d;if(0==this.B){for(;0!=this.g.type&&this.g.offset==
this.g.size&&this.g.g;)this.g.g.offset+=this.g.size,this.g=this.g.g;switch(this.g.type){case 0:case 1836019574:case 1836019558:case 1953653094:this.B=8;break;default:this.B=this.g.size-8}}}return a};g.p(sR,g.RF);var Vla=0;g.h=FR.prototype;g.h.QQ=function(a){this.status=a.status;a.ok?(this.C=a.body.getReader(),this.D?(this.G=a.headers,this.P(),this.B=new window.Uint8Array(GR(this)),JR(this)):this.C.cancel("Cancelling")):this.yn()};
g.h.QM=function(a){if(this.D)if((0,g.G)(),a.done)this.C=null,this.yn();else{a=a.value;this.D({timeStamp:(0,g.G)(),loaded:this.A});this.A+=a.length;var b=a.length>=Math.max(GR(this)/2,16384),c=a.length+this.g>GR(this);this.K?((b||c)&&0!==this.g&&HR(this),b?this.o.push(a):IR(this,a)):(IR(this,a),16384<=this.A&&HR(this));JR(this)}};
g.h.yn=function(){this.D&&(this.F=!0,this.M())};
g.h.ZO=function(){this.J=!0;this.yn()};
g.h.lh=function(a){return this.G.get(a)};
g.h.Iw=function(){return!!this.G};
g.h.Rp=function(){return this.A};
g.h.Vp=function(){return+this.lh("content-length")};
g.h.Gw=function(){return 200<=this.status&&300>this.status&&!!this.A};
g.h.Xq=function(){return!!this.o.length||this.F&&0<this.g};
g.h.ZA=function(){this.o.length||HR(this);return this.o.shift()};
g.h.hy=function(){this.o.length||HR(this);return this.o[0]};
g.h.abort=function(){this.C&&this.C.cancel("Cancelling");this.M=this.D=null};
g.h.gB=function(){return!0};
g.h.sA=function(){return this.J};g.h=KR.prototype;g.h.aK=function(a){if(!this.o){this.status=this.g.status;try{this.response=this.g.response}catch(b){}this.A=!0;this.B(a)}};
g.h.cK=function(){2==this.g.readyState&&this.C()};
g.h.bK=function(a){this.o||(this.status=this.g.status,this.D(a))};
g.h.Iw=function(){return 2<=this.g.readyState};
g.h.lh=function(a){try{return this.g.getResponseHeader(a)}catch(b){return g.qE(b),""}};
g.h.Vp=function(){return+this.lh("content-length")};
g.h.Rp=function(){return this.response.byteLength};
g.h.Gw=function(){return 200<=this.status&&300>this.status&&!!this.response&&!!this.response.byteLength};
g.h.Xq=function(){return this.A&&!!this.response&&!!this.response.byteLength};
g.h.ZA=function(){var a=this.response;this.response=null;return new window.Uint8Array(a)};
g.h.hy=function(){return new window.Uint8Array(this.response)};
g.h.abort=function(){this.o=!0;this.g.abort()};
g.h.gB=function(){return!1};
g.h.sA=function(){return!1};g.h=LR.prototype;g.h.Lb=function(){return this.D};
g.h.start=function(a){var b=1==this.state,c=NR(this);1==this.state||5==this.state||c&&RR(this);SR(this,2);if("fallback"==c||"fastfallback"==c)c=this.info.o,this.G<=c.B||(c.A++,c.B=$3-1),this.ie=0;else if("retry"==c){this.ie++;b=1E4*(.5+Math.random());1==this.ie&&(b=2E3);g.xE((0,g.A)(this.xr,this,a),b);return}c=0;this.A.A&&1<this.info.o.g&&(c=1E3*Math.pow(1.6,this.info.o.g-1));b&&!c?this.xr(a):g.xE((0,g.A)(this.xr,this,a),c)};
g.h.xr=function(a){if(!this.na()){this.G=$3++;if(this.o){var b=this.info,c=this.o.g;this.J=b.range?new dM(b.range.start+c,b.range.end):fM(c,this.o.length);this.B=g.aN(this.info,this.A,this.P,this.J)}else this.J=this.info.range,this.B=g.aN(this.info,this.A,this.P);this.B.set("rn",this.G.toString());this.ie&&this.B.set("playerretry",this.ie.toString());0<=a&&this.B.set("rbuf",(1E3*a).toFixed().toString());a=g.XM(this.B);try{var d=(0,g.A)(this.qQ,this),e=(0,g.A)(this.tQ,this),f=(0,g.A)(this.sQ,this),
k=(0,g.A)(this.rQ,this);this.g=this.A.ua&&"function"==typeof window.fetch&&window.ReadableStream&&TR(this)?new FR(a,e,f,d,k):new KR(a,e,f,d,k)}catch(l){this.D="net.ssl",SR(this,7)}0<this.A.P&&(this.F=g.xE((0,g.A)(this.wA,this),this.A.P))}};
g.h.tQ=function(){this.O=0;var a=QR(this);(0,g.sG)();a.o+=1;a=this.timing;a.o=(0,g.G)();a.D=a.o;a.J=a.o;a.A=0;a.P=!1;a.V=!1;a.C=0;a.F=cL(a.g);ER(a);a.K=(a.M-a.o)/1E3};
g.h.sQ=function(a){if(!this.na()){this.C=this.g.status;YR(this,!1);var b=this.timing,c=a.timeStamp;a=a.loaded;c=c>b.o&&4E12>c?c:(0,g.G)();b.J=c;50>c-b.D&&(CR(b)||!b.g.policy.J)||BR(b,c,a);b=this.timing;b.A>b.fa&&b.A>b.g.policy.g&&4>this.state?SR(this,4):VR(this)&&XR(this)&&SR(this,Math.max(3,this.state))}};
g.h.rQ=function(){if(!this.na()&&!this.M&&this.g.Iw()&&this.g.lh("X-Walltime-Ms")){var a=(0,window.parseInt)(this.g.lh("X-Walltime-Ms"),10);this.M=((0,g.G)()-a)/1E3}};
g.h.qQ=function(){var a=this.g;if(!this.na()){this.F&&(g.vE(this.F),this.F=window.NaN);this.C=a.status;var b=!1;if(400<=a.status)b=!0,this.D="net.badstatus";else if(a.Gw()){var c="";WR(this)&&(c=a.hy(),2048<c.length?c="":(c=String.fromCharCode.apply(String,c),c=SM.test(c)?c:""));if(c){GM(QR(this));var a=this.info,d=this.B,e=a.o;d.g===e.D&&(e.D=YM(d,c));d.g===e.o&&(e.o=YM(d,c));a.requestId=d.get("req_id");SR(this,5)}else if(c=a.Rp(),(d=!!this.J&&this.J.length)&&d!=c||a.sA())b=!0,this.D="net.closed";
else{YR(this,!0);e=TR(this)?this.g.lh("X-Bandwidth-Est"):0;a=this.timing;d=(0,g.G)();e=e?(0,window.parseInt)(e,10):0;if(!a.P){a.P=!0;d=d>a.o&&4E12>d?d:(0,g.G)();a.J=d;BR(a,d,c);a.G&&e?VK(a.g,a.A/e,a.A):(e=(d-a.o)/1E3,(e<=a.g.policy.A||!a.g.policy.A)&&!a.V&&CR(a)&&VK(a.g,e,c),CR(a)&&XK(a.g,c,a.C));var c=a.g,d=(d-a.o)/1E3,e=a.K,f=a.da;c.C.g(d,a.A/d);c.F=(0,g.sG)();f||c.o.g(1,d-e);a.B&&(a.B=!1)}GM(QR(this));this.info.o.g=0;SR(this,6)}}else b=!0,this.D="net.connect";b&&(RR(this),(0,g.G)(),"net.connect"==
this.D?(b=QR(this),b.mf+=1):(b=QR(this),b.g+=1),this.info.o.g+=1,SR(this,7))}};
g.h.wA=function(){this.F=window.NaN;if(!(this.na()||this.A.uc&&this.g&&CR(this.timing)&&"quic"==this.g.lh("client-protocol"))){var a=(0,g.G)(),b=!1;if(CR(this.timing)){var c=this.timing.M;ER(this.timing);this.timing.M-c>=.8*this.A.P?(this.O++,b=this.O>=this.A.Ta):this.O=0}else b=this.timing,b=a-(b.o+1E3*b.F.delay),c=1E3*this.A.oe,this.A.A&&2>QR(this).mf&&(c=2E3),b=b>c;if(b){b=this.timing;a=a>b.o&&4E12>a?a:(0,g.G)();c=(a-b.o)/1E3;if(!b.G)if(CR(b))b.C+=(a-b.D)/1E3,XK(b.g,b.ba,b.C);else{var d=b.g;d.D.g(1,
c);WK(d);b.O=a}var d=b.g,e=b.K,f=b.da;d.C.g(c,b.A/c);d.F=(0,g.sG)();f||d.o.g(1,c-e);ZK(b.g,(a-b.D)/1E3,0);b=QR(this);b.mf+=1;this.info.o.g+=1;UR(this);this.D="net.timeout";SR(this,7)}else this.F=g.xE((0,g.A)(this.wA,this),this.A.P)}};
g.h.na=function(){return-1==this.state};
g.h.dispose=function(){hM(this.info.g[0])&&6!=this.state&&(this.info.g[0].g.o=!1);SR(this,-1);this.K=null;UR(this);g.vE(this.F);this.F=window.NaN};
LR.DEBUG=!1;ZR.prototype.start=function(){this.o=!0};
ZR.prototype.reset=function(){this.g=this.o=!1};$R.prototype.da=function(a){switch(a.info.type){case 1:case 2:this.ca(a);break;case 4:var b=a.info.g.BA(a);a=a.info;var c=this.g;c&&c.g==a.g&&c.type==a.type&&(a.range&&c.range?c.range.start==a.range.start&&c.range.end==a.range.end:c.range==a.range)&&c.Ba==a.Ba&&c.o==a.o&&c.wb==a.wb&&(this.g=g.Ya(b).info);(0,g.H)(b,this.da,this);break;case 3:Ola(this.o,a)}};
$R.prototype.ca=function(a){if(1==a.info.type){var b=AM(a);if(KI(a.info.g.info)&&!LI(a.info.g.info)){var c=new lM(b);nM(c);wM(c,408125543);c=pM(c);wM(c,374648427);c=pM(c);wM(c,174);c=pM(c);wM(c,224);c=pM(c);if(wM(c,21936)){var d=c.A+c.g,c=qM(c,!0);b.setUint8(d-2,236);b.setUint8(d-1,128|c+1)}}a.info.g.info.video&&(d=a.info.g,d.Jj&&d.info&&d.info.video&&4==d.info.video.projectionType&&(MI(d.info)?d.F=Sja(b):2==d.info.A&&(d.F=cka(b))));if(2==a.info.g.info.A&&a.info.g.info.video){var e=new lM(b);nM(e);
if(oM(e,[408125543,374648427,174,224])&&(e=pM(e),wM(e,30320))){var d=e.A+e.g,c=qM(e,!0),f=e.A+e.g-d+1;f||(f=Math.ceil(Math.log(c+2)/Math.log(2)/7));for(var k=1<<8-f,e=[];e.length<f-1;)e.unshift(c%256),c=Math.floor(c/256);e.unshift(c|k);b.setUint8(d-2,236);for(c=0;c<e.length;c++)b.setUint8(d-1+c,e[c])}}}a.info.g.pq(a)};
$R.prototype.fa=function(a){this.B=a=a.info;this.M&&this.B.A&&(this.M=!1);a.g.info.g>=this.O&&(this.O=a.g.info.g)};
$R.prototype.getDuration=function(){return this.Ua.index.Jm()};OS.prototype.send=function(){g.KE(this.o,{format:"RAW",responseType:"arraybuffer",timeout:1E4,zd:this.A,bd:this.A,context:this});this.g=(0,g.sG)()};
OS.prototype.A=function(a){var b={rc:a.status,lb:a.response?a.response.byteLength:0,rt:(((0,g.sG)()-this.g)/1E3).toFixed(3),shost:g.vg(this.o),trigger:this.D};204==a.status||a.response?this.B&&this.B(SP(b)):this.C(new g.RP("pathprobe.net",!1,b))};g.C(TS,g.M);TS.prototype.F=function(a){for(var b=arguments.length-1;0<=b;b--){var c=arguments[b];if(c){var d=this.o.indexOf(c);0<=d&&this.o.splice(d,1);var e=this.g,d=e.g,c=g.wb(d,c,e.o);0<=c&&g.jb(d,c)}}this.A()};
TS.prototype.reset=function(){this.C=this.J=!1;this.D.stop();this.g.g=[];this.o=[];this.A();this.G=null};
TS.prototype.A=function(){this.K=!0;if(!this.M){for(var a=3;this.K&&a;){this.K=!1;this.M=!0;if(this.C&&!this.J){this.D.stop();var b=this.O();g.V(b,32)&&this.P.start();for(var c=g.V(this.O(),2)?0x8000000000000:1E3*this.ca(),d=g.V(b,2),e=[],f=[],k=0;k<this.o.length;k++){var l=this.o[k];l.active&&(d?0x8000000000000>l.end:!l.contains(c))&&f.push(l)}e=e.concat(kma(this,f));if(d)b=QS(this.g,0x7ffffffffffff),b=b.concat(hma(this.g));else if(this.B<=c&&b.xb()&&!g.V(b,16)&&!g.V(b,32)){b=this.g;d=c;f=[];for(k=
RS(b,this.B);k<b.g.length&&!(l=b.g[k],(l.end<=d||l.contains(d))&&f.push(l),l.start>d);++k);b=f}else b=QS(this.g,c);e=e.concat(jma(this,b));this.B=c;!this.J&&this.G&&(this.G=null);c=e;for(e=0;e<c.length;e++)b=c[e],d=b[1],1==b[0]?(d.g&&d.g.Y("onEnter",d),this.V("crn_"+d.namespace,d)):(d.g&&d.g.Y("onExit",d),this.V("crx_"+d.namespace,d))}this.M=!1;a--}this.O().xb()&&(a=SS(this.g,this.B),null!=a&&0x7ffffffffffff>a&&(a=(a-this.B)/this.ba(),this.D.start(a)))}};
TS.prototype.W=function(){this.G=this.g=this.o=null;TS.aa.W.call(this)};g.p(WS,g.RF);g.h=WS.prototype;g.h.initialize=function(a,b,c,d){a=a||0;var e=this.F;d=d&&d.id;e.G="i";"auto"!=cJ()&&(e.G="s");FS(e,b);ama(e,d);e.O=e.B;bma(e);e.o=e.g;b=MS(e);this.B=new $R(this.o,b.audio);this.g=new $R(this.o,b.video);rT(this,this.B);rT(this,this.g);this.g.o.P=this.B.o;this.Y("videoformatchange",b);this.V=this.g.G;this.D=a;c?(this.G=!0,mT(this)):$S(this)};
g.h.resume=function(){if(this.G||this.fa)this.fa=this.G=!1};
g.h.kP=function(a){if(!this.na()&&3<=a.state){var b=a.info.g[0].g,c=!this.ha&&b.info.video,d=!this.ca&&b.info.audio,e=Math.max(0,a.info.g[0].C-this.D);this.o.ke&&5<=a.state&&this.kj("rqs",SP(Wla(a)));if(5==a.state)c?ZS(this,"vrr"):d&&ZS(this,"arr"),a.start(e);else if(6==a.state||this.o.ua&&3<=a.state&&!(5<=a.state)){c?(this.ha=a.B?g.XM(a.B):"",EG(4)):d&&(this.ca=a.B?g.XM(a.B):"");b=b.info.video?this.g:this.B;this.C.o&&(b.G=!1,a.M&&this.ua.g(1,a.M));if(e=hM(a.info.g[0]))e=a.info,e=!!hM(e.g[e.g.length-
1]);e&&(0,g.H)(a.o.A,b.ca,b);this.ee()}else if(4==a.state)this.ee(),c&&EG(4);else if(7==a.state&&RR(a)){if(c=b.info.video&&(0<a.ie||this.o.A&&1<b.C.g||410==a.C||500==a.C||503==a.C)&&this.o.Bb&&!JS(this.F),d=OR(a),c&&(d.stun="1"),VS(this,!1,a.Lb(),d),!this.na()){if(c){var d=this.F,f=b.info;JS(d);d.ga=f;d.V=(0,g.sG)();d.P=-1;FS(d,d.D)}if(PR(a)||c){b=b.info.video?this.g:this.B;for(e=0;e<b.A.length&&a!==b.A[e];e++);if(e==b.A.length)nS(b,a);else{for(;e<b.A.length;)nS(b,b.A.pop());3==a.info.g[0].type?(a.o&&
a.o.B?(a=a.o.B,a=new gM(a.type,a.g,a.range,a.Ba,a.startTime+a.duration,0,a.o+a.wb,0,!1)):(a=a.info.g[0],a=new gM(a.type,a.g,a.range,a.Ba,a.startTime,0,a.o,0,!1)),b.g=a):b.g=null}this.ee()}else a.start(e),this.o.Bh&&!RR(a)&&(a="https://www.youtube.com/generate_204?cpn="+(b.C.C.get("cpn")||"")+"&rn="+$3++,sT(this,a,"error"))}}else hM(a.info.g[0])?(b.B=!0,this.ee()):VS(this,!0,"net.retryexhausted",OR(a))}};
g.h.ee=function(){this.Fa=window.NaN;this.Ia.stop();dT(this);if(this.A&&TL(this.A)&&!WL(this.A))if(this.C.isLive)(0,window.isNaN)(this.J)?(this.J=this.D+3600,UL(this.A,this.J)):this.J<=this.D+1800&&(this.J=Math.max(this.J+1800,this.D+3600),UL(this.A,this.J));else{var a=Math.max(this.B.getDuration(),this.g.getDuration());(!(0,window.isFinite)(this.J)||this.J!=a)&&0<a&&(UL(this.A,a),this.J=a)}if(!this.na())if(CN(this.C)&&3==this.C.F)VS(this,!0,"manifest.net.retryexhausted",{rc:this.C.M.toString()});
else if(this.C.isLive&&(yS(this.g)||yS(this.B)))this.Y("seekplayerrequired",window.Infinity);else if("prerender"==window.document.webkitVisibilityState)mT(this);else if(dT(this),cS(this.g,this.D),!this.na()&&(cS(this.B,this.D),!this.na())){if(this.C.o){zS(this.g);zS(this.B);var b=-1!=this.g.F,a=-1!=this.B.F;if(!b||!a)if(b=!b&&tR(this.g.o),a=!a&&tR(this.B.o),b||a){var a=b?this.g:this.B,b=b?this.B:this.g,c=tR(a.o).info.Ba;if(-1!=b.F&&b.F!=c){var d=b.F;qS(a,0);lS(a,window.Infinity);a.g.Ba=d-1;VS(this,
!1,"qoe.avsync",{start:"1",target:b.F,actual:c})}else a.F=c}(a=tR(this.g.o))&&a.o&&(this.ra=tR(this.g.o).o.B)}this.B.Ua.o&&this.g.Ua.o||(!this.G||dL(this.M)?$S(this):mT(this));if(this.A&&!eT(this,this.B,this.A.g)&&!eT(this,this.g,this.A.o)&&!mma(this)&&((a=pT(this,this.g,this.A.o,null,this.B.D))&&!this.oa&&(this.oa=(0,g.G)(),ZS(this,"vda"),g.uP("vda",void 0,"video_to_ad"),this.ka&&EG(4)),!VL(this.A))){b=HJ(this.A.o.buffered,this.D+iT);if(!(0,window.isNaN)(b)||kS(this.g)||!this.A.g.buffered.length){if(kS(this.g)||
this.o.rf)b=window.NaN;b=pT(this,this.B,this.A.g,b,null);a=a||b;b&&!this.ka&&(this.ka=(0,g.G)(),ZS(this,"ada"),g.uP("ada",void 0,"video_to_ad"),this.oa&&EG(4))}kS(this.g)&&kS(this.B)&&TL(this.A)&&!WL(this.A)&&(b=this.A,TL(b)&&b.A.endOfStream(),b=this.M,bJ(cL(b)),b.B=(0,g.sG)());a&&!YL(this.A)&&lT(this)}YS(this);this.g.Ua.B||this.B.Ua.B?VS(this,!0,"net.retryexhausted",{metadata:"1",video:this.g.Ua.B?"1":"0",audio:this.B.Ua.B?"1":"0"}):(gT(this,this.g,this.B)&&kT(this,this.g,this.B),gT(this,this.B,
this.g)&&kT(this,this.B,this.g),this.o.tf&&this.da&&!this.G&&dL(this.M)&&(sT(this,this.da,"cms"),this.da="",this.o.Ig&&(a=NM(RM(this.B.Ua.C.C,0)),sT(this,a,"redir"),sT(this,a.replace("redirector.googlevideo.com","www.youtube.com"),"www-redir"))),this.C.A&&mT(this),this.P&&(a=this.P,a.g?(a=1E3*(a.A-DR(a.g.timing)),a=0>=a?0:a+1):a=window.NaN,(0,window.isNaN)(a)||this.Ia.ae(a)))}};
g.h.Dn=function(a){a=(a=a?this.B:this.g)&&a.B;VS(this,!0,"fmt.unplayable",a?jM(a):void 0)};
g.h.gO=function(a){VS(this,!0,"fmt.unparseable",a)};
g.h.kO=function(a){VS(this,!1,"qoe.avsync",a)};
g.h.hO=function(a){this.C.o&&qT(this,a)};
g.h.iO=function(a){if(this.C.o){var b=this.C,c;for(c in b.g){var d=b.g[c].index,e=fN(d,a.Ba);0<=e&&d.segments.splice(e,1)}}};
g.h.jO=function(a){this.C.o&&qT(this,a)};
g.h.fO=function(a,b){if(this.g.Ua.index.Hc()<=b){var c=this.C;c.G.push(a);c.Y("cuepointsadded")}};
g.h.seek=function(a){if(!this.na()&&!this.g.G&&!this.B.G){dT(this);this.Ta=(0,g.sG)();YS(this,a);var b=tT(this,this.g,a,this.A&&this.A.o),c=tT(this,this.B,b,this.A&&this.A.g);this.D=Math.max(a,b,c);this.O=!0;this.C.o&&this.o.sa&&!gN(this.g.Ua.index,this.g.g.Ba)&&(this.V=!0);lT(this)}};
g.h.W=function(){cT(this);this.B&&(oS(this.B),oS(this.g));g.uE(this.Na);g.vE(this.ga);this.Ia.dispose();g.RF.prototype.W.call(this)};
g.h.YJ=function(){return this.ua.o()||0};
g.h.kj=function(a,b,c){this.Y("ctmp",a,b,void 0===c?!1:c)};
var iT=2/24;g.p(xT,g.M);g.h=xT.prototype;g.h.OK=function(a){this.F.call(this.A,new window.Uint8Array(a.message))};
g.h.PK=function(){this.K.call(this.A,this.g.keyStatuses)};
g.h.oz=function(a,b){g.qE(b);var c=a;b instanceof window.DOMException&&(c+=";n."+b.name+";m."+b.message);this.D.call(this.A,c)};
g.h.Nz=function(a){this.F.call(this.A,a.message)};
g.h.Mz=function(a){if(this.o){var b=this.o.error.code;a=this.o.error.systemCode}else b=a.errorCode&&a.errorCode.code,a=a.systemCode;this.D.call(this.A,";c."+b+";sc."+a)};
g.h.Lz=function(){this.J.call(this.A)};
g.h.update=function(a){if(this.g)return this.g.update(a).then(null,rE((0,g.A)(this.oz,this,"t.u")));this.o?this.o.update(a):this.C.addKey?this.C.addKey(this.M.o,a,this.G,this.sessionId):this.C.webkitAddKey(this.M.o,a,this.G,this.sessionId);return RN()};
g.h.W=function(){this.g&&this.g.close();this.C=null;g.M.prototype.W.call(this)};g.p(zT,g.M);zT.prototype.K=function(a){var b=BT(this,a);b&&b.Nz(a)};
zT.prototype.J=function(a){var b=BT(this,a);b&&b.Mz(a)};
zT.prototype.G=function(a){(a=BT(this,a))&&a.Lz()};
zT.prototype.W=function(){this.o=null;g.M.prototype.W.call(this)};g.p(DT,g.M);g.h=DT.prototype;g.h.ly=function(a){this.O=a};
g.h.fK=function(a){if(!this.na()){this.K||(g.uP("drm_gk_f"),this.K=!0,this.o.Y("newsession",this));if(JN(this.C)){for(var b="",c=0;c<a.length;c+=2)b+=String.fromCharCode(a[c]);a=(new window.DOMParser).parseFromString(b,"text/xml").querySelector("Challenge");a=new window.Uint8Array(rc(a.childNodes[0].data))}if(KN(this.C))for(b=g.pc(a),a=new window.Uint8Array(new window.ArrayBuffer(b.length)),c=0;c<b.length;c++)a[c]=b.charCodeAt(c);a=new oma(a,++this.P);this.MA(a)}};
g.h.dK=function(){this.na()||this.D||(this.o.Y("sessionready"),this.D=!0)};
g.h.gK=function(a){var b=this;this.na()||(a.forEach(function(a,d){var c=g.pc(new window.Uint8Array(d),!0).replace(/[\.]{1,2}$/,"");b.g[c]?b.g[c].status=a:b.g[c]={type:"",status:a}}),this.o.Y("keystatuseschange",this))};
g.h.MA=function(a){g.uP("drm_net_s");a={format:"RAW",method:"POST",postBody:a.message,responseType:"arraybuffer",withCredentials:!0,timeout:3E4,Mb:(0,g.A)(this.SN,this,a),onError:(0,g.A)(this.Dz,this,a)};var b=this.J;this.O&&(b=Ig(b,"access_token",this.O));g.KE(b,a)};
g.h.SN=function(a,b){if(!this.na())if(0!=b.status&&b.response){g.uP("drm_net_r");var c=new window.Uint8Array(b.response);if(c=qma(c))if(0!=c.statusCode)ET(this,"drm.auth",!0,"t.f;c."+c.statusCode,g.BJ(c.statusCode));else{g.uP("drm_kr_s");var d=null,e=c.headers["Heartbeat-Url"];e&&(d=new nma(e,(0,window.parseInt)(c.headers["Heartbeat-Interval-Secs"],10)||60,(0,window.parseInt)(c.headers["Heartbeat-Num-Retries"],10)||4));d&&this.o.Y("newlicense",d);if(d=c.headers["Authorized-Format-Types"])this.G=d.split(","),
yT(this.A)||this.o.Y("keystatuseschange",this);c.headers["Key-Ids"]&&(this.g=uma(c.headers["Key-Ids"]));KN(this.C)&&(c.message=new window.Uint8Array(rc(String.fromCharCode.apply(null,c.message))));this.A.update(c.message).then(function(){g.uP("drm_kr_f")});
this.D&&(this.M=(0,g.sG)())}else ET(this,"drm.net",!0,"t.p","YTP_ERROR_SERVER_ERROR")}else this.Dz(a,b)};
g.h.eK=function(a){this.na()||ET(this,"drm.keyerror",!0,"t.s"+a)};
g.h.Dz=function(a,b){var c=!1;if(3<=a.g.o||this.V&&36E4<(0,g.sG)()-this.M){var d="drm.net.retryexhausted";c=!0}else d=b.status?"drm.net.badstatus":"drm.net.connect";ET(this,d,c,"t.r;c."+b.status);if(this.V&&this.D?0:!c&&this.P==a.number)d=a.g.getValue(),d=new g.rt((0,g.A)(this.MA,this,a),d),g.N(this,d),d.start(),d=a.g,d.g=Math.min(d.C,d.g*d.F),d.A=Math.min(d.C,d.g+(d.D?Math.round(d.D*(Math.random()-.5)*2*d.g):0)),d.o++};
g.h.W=function(){this.o=null;g.M.prototype.W.call(this)};FT.prototype.get=function(a){a=this.gk(a);return-1!=a?this.values[a]:null};
FT.prototype.remove=function(a){a=this.gk(a);-1!=a&&(this.keys.splice(a,1),this.values.splice(a,1))};
FT.prototype.set=function(a,b){var c=this.gk(a);-1!=c?this.values[c]=b:(this.keys.push(a),this.values.push(b))};
FT.prototype.gk=function(a){return g.ab(this.keys,function(b){return g.Ab(a,b)})};g.p(HT,g.RF);g.h=HT.prototype;g.h.uN=function(a){a=new wT(new window.Uint8Array(a.initData),a.initDataType);KT(this,a,!0)};
g.h.wO=function(a){KT(this,new wT(a.initData,a.contentType),!0)};
g.h.dO=function(){this.na()||(this.G=!0,JT(this))};
g.h.AM=function(a){if(!this.na()){g.qE(a);var b="t.a";a instanceof window.DOMException&&(b+=";n."+a.name+";m."+a.message);this.Y("licenseerror","drm.unavailable",!0,b,"YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK")}};
g.h.zO=function(a){this.na()||!a||this.V||(this.V=a,this.Y("heartbeatparams",a))};
g.h.AO=function(){this.na()||(this.o.shift(),JT(this))};
g.h.wP=function(){if(JN(this.g)&&(this.da--,0==this.da)){var a=this.C;a.o.msSetMediaKeys(a.A)}};
g.h.hK=function(a){if(!this.na()){var b=[];if(yT(a.A))for(var c in a.g)"usable"==a.g[c].status&&b.push(a.g[c].type);else b=a.G;a=g.eb(b,"UHD2")?"highres":g.eb(b,"UHD1")?"hd2160":g.eb(b,"HD")?"hd1080":g.eb(b,"HD720")?"hd720":"large";aJ(this.F,a)||(this.F=WI("auto",a,!1),this.Y("qualitychange"))}};
g.h.W=function(){this.g.A&&this.J.setMediaKeys(null);this.J=null;this.o=[];for(var a=g.ka(this.A.values),b=a.next();!b.done;b=a.next())b.value.dispose();a=this.A;a.keys=[];a.values=[];this.B&&(this.B.dispose(),this.B=null);this.D=null;g.RF.prototype.W.call(this)};LT.prototype.C=function(){var a=g.x("yt.abuse.botguardInitialized");return a&&a()?(a=g.x("yt.abuse.invokeBotguard")())?"r1a="+a:null:null};
LT.prototype.D=function(a){return"r3a="+Math.floor(this.g.lengthSeconds%Va(a.c3a))};
LT.prototype.B=function(a){a=Va(a.c);var b=g.x("yt.abuse.dclkstatus.checkDclkStatus")();return"r6a="+(a^b)};g.C(OT,g.M);g.h=OT.prototype;g.h.start=function(){this.o.start()};
g.h.stop=function(){this.o.stop()};
g.h.Hb=function(a,b,c){this.A[a]=b;this.g[a]=new QT(!!c)};
g.h.clear=function(){for(var a in this.g)this.g[a].clear()};
g.h.dR=function(){for(var a in this.A)this.g[a].update(this.A[a]());this.o.start()};
QT.prototype.update=function(a){this.A?(hR(this.g,a-this.o||0),this.o=a):hR(this.g,a)};
QT.prototype.clear=function(){this.g.clear();this.o=0};g.C(TT,g.RF);TT.o=2;TT.B=5;TT.C=5;TT.g="endcr";TT.A=96;g.h=TT.prototype;g.h.W=function(){g.vE(this.da);g.uE(this.kb);g.vE(this.sb);var a=ST();a&&window.document.removeEventListener(a,this.ke,!1);XT(this);ZT(this);VT(this);tU(this);g.Le(this.ha,this.g);this.V=null;this.Ra=!1};
g.h.kv=function(){if(this.g.Pb())g.V(this.A,128)||(this.g.Pb(),this.zb=this.ga.g=!0,4!=this.Ed&&(this.fa=g.ob(this.g.ge)),g.DQ(this.g,this.Z).then(this.Yv,this.Yv,this));else{var a=this.g;if(a.Ca&&a.adaptiveFormats&&!a.Hw&&(g.OQ(a)||this.Z.experiments.g("html5_manifestless_always"))){var a=this.g,b=this.Z.experiments;if(!yQ(a)){a.Hw=!0;var c=vN(CQ(a,a.adaptiveFormats),a.ed,a.lengthSeconds,!0,a.Jj,b);!b.g("html5_manifestless_vp9")&&Cla(c)||a.sq?c.dispose():(a.ak=!1,BQ(a,c),c.subscribe("cuepointsadded",
a.hv,a),uN(a.va)&&(a.hj=!0));AQ(a)}}else if(this.g.ak)a=this.g,b=this.Z.experiments,a.hh=!0,a.ak=!1,SM.test(a.xe)||g.qE(Error("DASH MPD Origin invalid: "+a.xe),"WARNING"),c=a.xe,c=g.Dg(c,{mpd_version:b.o("dash_manifest_version")||4}),!a.isLowLatencyLiveStream&&b.g("html5_live_disable_dg_pacing")&&(c=g.Dg(c,{pacing:0})),BN(new tN(c,b,a.Ca),c).then(a.lN,a.kN,a),g.uP("mrs");else if(this.g.hj)this.C&&(a=this.C.o,xK(a,"protected"),a.g.videoData.Jf?a.ka():a.g.videoData.subscribe("dataloaded",a.ka,a)),a=
this.g,b=this.Z.O,c=this.Z.experiments,uN(a.va),b=new ZP(YN(b,a.va),c),g.N(a,b),a.hj=!1,a.hh=!0,a=(0,g.A)(a.AI,a),b.A=a,NN(b.C)?b.D():nla(b);else if(!this.g.hh&&this.zb){a:{var b=this.Z,a=this.g,d=this.tb.Ya(),e=this.oe(),f=this.Z.ga;switch(a.qh){case 38:b=a.videoId.indexOf(":");a=g.Dg("//play.google.com/books/volumes/"+a.videoId.slice(0,b)+"/content/media",{aid:a.videoId.slice(b+1),sig:a.dM});break a;case 30:c="https://docs.google.com/get_video_info";b.experiments.g("restore_nonsense_docs_behavior")&&
b.baseYtUrl!=OO.prototype.baseYtUrl&&(c=b.baseYtUrl+"get_video_info");a=g.Dg(c,{docid:a.videoId,authuser:a.Ec,authkey:a.Qu,eurl:b.oa});break a;case 33:a=g.Dg("//google-liveplayer.appspot.com/get_video_info",{key:a.videoId});break a;default:c={html5:"1",video_id:a.videoId,cpn:a.clientPlaybackNonce,eurl:b.oa,ps:b.o,el:b.g,hl:b.Ia,list:a.playlistId,agcid:a.pF,aqi:a.oF,sts:17303,lact:g.vG()},g.za(c,b.B),b.Oe&&(c.ecver=b.Oe),b.forcedExperiments&&(c.forced_experiments=b.forcedExperiments),a.cg?(c.vvt=a.cg,
a.mdxEnvironment&&(c.mdx_environment=a.mdxEnvironment)):a.oauthToken&&(c.access_token=a.oauthToken),a.adFormat&&(c.adformat=a.adFormat),b.Hi&&(c.cc_lang_pref=b.Hi),b.Qg&&2!=b.Qg&&(c.cc_load_policy=b.Qg),b.mute&&(c.mute=b.mute),a.Pg&&2!=b.Pg&&(c.iv_load_policy=a.Pg),a.fn&&(c.itct=a.fn),yK(b,a,f)&&(c.autoplay="1"),a.jn&&(c.autonav="1"),a.Uq&&(c.noiba="1"),a.isMdxPlayback&&(c.mdx="1",c.ytr=a.hf),a.mdxControlMode&&(c.mdx_control_mode=a.mdxControlMode),a.gm&&(c.ytrcc=a.gm),a.Yq&&(c.utpsa="1"),a.isFling&&
(c.is_fling="1"),a.vnd&&(c.vnd=a.vnd),a.Pp&&(c.force_ad_param_ad_type="video_ad",c.force_ad_param_url=a.Pp,c.force_ad_param_break_type="1",c.force_ad_param_offset_value=0),d.width&&(c.width=d.width),d.height&&(c.height=d.height),a.If&&(c.splay="1"),a.ypcPreview&&(c.ypc_preview="1"),b.ua&&(c.content_v=b.ua),a.Ck&&(c.livemonitor=1),b.Ec&&(c.authuser=b.Ec),b.pageId&&(c.pageid=b.pageId),b.Zb&&(c.ei=b.Zb),b.Hg&&(c.ssl_stream="1"),b.A&&(c.iframe="1"),a.xh&&(c.tst=a.xh),a.contentCheckOk&&(c.cco="1"),a.racyCheckOk&&
(c.rco="1"),b.Fb&&a.liveStartWalltime&&(c.live_start_walltime=a.liveStartWalltime),b.Fb&&a.gr&&(c.live_manifest_duration=a.gr),b.Fb&&a.playerParams&&(c.player_params=a.playerParams),b.Fb&&a.cycToken&&(c.cyc=a.cycToken),b.Fb&&a.lB&&(c.tkn=a.lB),0!=e&&(c.vis=e),b.enableSafetyMode&&(c.enable_safety_mode="1"),b.widgetReferrer&&(c.widget_referrer=b.widgetReferrer.substring(0,128)),(d=b.K.embedding_app)&&(c.embedding_app=d),(d=b.K.developer_api_key)&&(c.developer_api_key=d),(d=g.zQ(a))&&(c.uloc=d),a.zk&&
(c.internalipoverride=a.zk),a.innertubez&&(c.innertubez=a.innertubez),a.lx&&(c.strpro="1"),b.Fb&&a.Oh&&(c.wpid=a.Oh),a=g.Dg(b.baseYtUrl+"get_video_info",c)}}b=2;this.Z.isAd()&&(b=0);c=this.g;d=this.Z.Na;e=this.Z.experiments;f=this.Z.zc;c.na()||(c.eq=a,c.rs=b,c.Ej=!!d,c.qx=!!f,e&&(c.yA=!e.g("disable_gvi_cors"),c.cq=e.o("html5_get_video_info_timeout_ms")||0,c.pw=e.g("html5_get_video_info_promiseajax"),c.Jj=SE()&&!!e.g("enable_mesh_ps4")||!!e.g("enable_mesh_cobalt")||!!e.g("html5_enable_mesh_projection")),
c.hh=!0,c.IA())}}};
g.h.Yv=function(){if(xQ(this.g)){if(this.g.Ca){this.K=new Kla;this.M=new Mla(this.g);if(this.C){var a=iR(this.M);wK(this.C.o,a)}kU(this,JU(this,!1),!0)}this.g.jb.g&&g.GU(this);FU(this,"i");this.K&&(this.g.bf()?(a=(0,g.A)(this.B.YJ,this.B),this.K.A=a):this.g.va&&(a=(0,g.A)(this.g.va.ZJ,this.g.va),this.K.A=a))}this.sa&&zU(this);$T(this,"dataloaded");this.O.o?hU(this):this.Z.experiments.g("html5_suspended_state")&&this.sa&&aU(this,$J($J(this.A,512),1))};
g.h.logEvent=function(a,b){if(this.C){var c=this.C,d={};d.rt=g.tJ(c.g).toFixed(3);g.za(d,lK(c.g));var e=c.g.g,f=c.g.videoData,k={ns:e.Ta,html5:"1",el:e.g,ps:e.o,fexp:e.experiments.experimentIds.join(",")||void 0,feature:f.ls||e.sh||void 0,ctrl:f.Wf||void 0,ytr:f.hf||void 0,list:f.playlistId,d:e.ne,f:e.Cc};if(e.experiments.g("legacy_autoplay_flag")?e.da:f.rh)k.autoplay="1";f.subscribed&&(k.subscribed=f.subscribed);g.za(d,k);delete d.fexp;g.za(d,a);d=g.HE(c.g.g.baseYtUrl+"player_204",d);JK(c,d,b)}};
g.h.isPeggedToLive=function(){return this.Fa};
g.h.wS=function(){return this.A};
g.h.getPlayerType=function(){return this.Ed};
g.h.wt=function(){var a=this.g,b=a.qd;if(!b)return a.pm;var c=g.$a(this.g.jb?this.g.jb.audioTracks:[],function(a){return a.id==b.id});
return c?c:a.pm};
g.h.iQ=function(){this.Z.experiments.o("html5_background_quality_cap")&&this.B&&FU(this,"v");this.Z.xm&&!this.g.backgroundable&&this.o&&(RT()&&this.o.o?(this.Vd("bgmobile","suspend"),sU(this,!0)):zU(this)&&this.Vd("bgmobile","resume"))};
g.h.eO=function(a){this.Dd?this.uc=!0:(a.B&&UL(a,this.g.lengthSeconds),g.aT(this.B,a))};
g.h.MN=function(a){if(this.F){var b=this.F;if(JN(b.g)){for(var c=new window.Uint8Array(0),d=new window.DataView(a.buffer,a.byteOffset,a.length),e=0;e<a.length-8;){var f=d.getUint32(e);if(1>=f)break;var k=d.getUint32(e+4);if(1836019574==k)e+=8;else{if(1886614376==k){var k=a.subarray(e,e+f),l=new window.Uint8Array(c.length+k.length);l.set(c);l.set(k,c.length);c=l}e+=f}}a=c;0!=a.length&&KT(b,new wT(a),!1)}}};
g.h.WN=function(a){pU(this,a.reason,a.video.info,a.audio.info);var b=JQ(this.g);b&&b.J(a.video);this.K&&(this.K.o=a.audio.index)};
g.h.VN=function(a){oU(this,a.reason,a.audio.info)};
g.h.Rj=function(a){if("html5.invalidstate"==a.errorCode&&this.o){var b=this.o.Lb();a.details.merr=b?b.toString():"0"}b=/^pp/.test(this.g.clientPlaybackNonce);Gma(a)?g.V(this.A,4)?(this.Cd=!0,ZT(this)):wU(this):HU(a)&&this.g.jb.o?(this.Vd("highrepfallback","1",!0),Fla(this.g),CU(this),AU(this)):a.g?(b=this.B?this.B.F.D:null,b=HU(a)&&b&&b.isLocked()?"YTP_ERROR_FORMAT_UNAVALIABLE":void 0,g.cU(this,a.errorCode,b,SP(a.details))):this.C&&(this.C.onError(a.errorCode,SP(a.details)),b&&"manifest.net.connect"==
a.errorCode&&(a="https://www.youtube.com/generate_204?cpn="+this.g.clientPlaybackNonce+"&t="+(0,g.sG)(),(new OS(a,"manifest",(0,g.A)(function(a){this.Vd("pathprobe",a)},this),(0,g.A)(function(a){this.onError(a.errorCode,SP(a.details))},this.C))).send()))};
g.h.IB=function(){if(!(0,window.isNaN)(this.P)&&this.o){var a=this.getDuration(),b=this.Z.experiments.g("legacy_html5_seek_end")?Math.floor(a):JU(this,!1);!this.g.Ca&&this.P>=b?(this.P=a,this.Y("endseeking",this),mU(this,!0),UT(this)):(this.B&&this.B.seek(this.P),(!this.g.Ca||1<=this.o.g.readyState)&&this.o.xc(this.P),this.B&&!g.V(this.A,2)&&aU(this,$J(this.A,16)))}this.ha&&(this.ha.dispose(),this.ha=null);g.V(this.A,32)&&(aU(this,$J(aK(this.A,32),16)),this.Y("endseeking",this))};
g.h.getCurrentTime=function(){if(!(0,window.isNaN)(this.P))return this.P;var a=0;this.o&&1<=this.o.g.readyState?a=this.o.getCurrentTime():this.g&&(a=this.Z.experiments.g("new_ended_replay")?this.g.startSeconds||0:this.g.zf||this.g.startSeconds||0);this.Z.experiments.g("new_ended_replay")&&(a=g.Hd(a,this.Ic(),JU(this,!1)));return a};
g.h.getDuration=function(){return this.g.lengthSeconds?this.g.lengthSeconds:JU(this,!1)?JU(this,!1):0};
g.h.oG=function(){var a=new Kja;if(this.B){var b=this.Z.schedule;a.B=b.J;a.F=b.K;a.o=aL(b);a.g="d."+YK(b).toFixed(2)+";st."+(1E9*$K(b)).toFixed(2)+";bw."+b.A.o().toFixed(0)+";abw."+b.C.o().toFixed(0)+";v50."+TK(b.o,.5).toFixed(2)+";v92."+TK(b.o,.92).toFixed(2)+";v96."+TK(b.o,.96).toFixed(2)+";v98."+TK(b.o,.98).toFixed(2);b.g&&(a.g+=";ltbw."+b.g.o().toFixed(0));b=this.B;b.A&&!VL(b.A)&&(a.A=kS(b.g)?b.g.B.B:KJ(b.A.o.buffered,b.D),a.C=kS(b.B)?b.B.B.B:KJ(b.A.g.buffered,b.D));a.o=DS(b.K)}else this.o&&(a.A=
SJ(this.o));this.K&&Lla(this.K,a);return a};
g.h.bQ=function(){this.F&&IT(this.F,this.g.oauthToken);$T(this)};
g.h.aQ=function(a){g.cU(this,"auth",(0,window.unescape)(a.reason),a.errordetail||"sec."+a.errorcode)};
g.h.yS=function(a){var b=a.target.wd();if(this.o&&this.o.wd()&&this.o.wd()==b){var c=!1;switch(a.type){case "error":if(!this.Gb&&(4==this.o.Lb()||3==this.o.Lb()||2==this.o.Lb())){this.Gb=!0;if(a=this.Z.experiments.g("html5_progressive_signature_reload"))a=this.g,a=(a.wg&&+g.FE(a.wg.g().g).expire)<Date.now()/1E3+1800;this.C&&(c={e:3==this.o.Lb()?"decode":2==this.o.Lb()?"network":"unplayable"},this.J&&(c.msopened=""+ +!!this.J.g),a&&(c.stale="1"),this.C.onError("qoe.restart",SP(c)));if(a){wU(this);
return}if(NE("philips"))try{window.close()}catch(n){}this.ks();return}break;case "durationchange":var d=this.o.getDuration();(!this.J||(0,window.isFinite)(d)&&0<d)&&1!=d&&this.g.lengthSeconds!=d&&(this.g.lengthSeconds=d,$T(this));break;case "ratechange":this.B&&(this.B.K.A=Math.max(1,this.o.Tc()));d=this.D;d.C=!0;d.A();break;case "loadedmetadata":this.g.startSeconds&&(0<(this.o.g.seekable||JJ()).length?this.Z.experiments.g("new_ended_replay")?kU(this,this.g.startSeconds,!0):this.o.g.currentTime=this.g.startSeconds:
(this.oa=this.g.startSeconds,mU(this,!0)));case "loadstart":g.uE(this.kb);this.Ap()||(this.kb=g.wE((0,g.A)(this.Ap,this),100));break;case "progress":this.oa&&this.o&&(d=this.o.g.seekable||JJ(),d.length&&d.end(0)>this.oa&&(this.o.g.currentTime=this.oa,this.oa=window.NaN,this.Bb=this.ka.T(this.o,"canplay",this.mN,this)));case "suspend":KU(this);this.Y("onLoadProgress",this,Hma(this));g.V(this.A,8)&&(this.rf?c=!0:this.sf&&((0,window.isNaN)(this.kc)||this.kc+1<this.o.getCurrentTime())&&(c=!0,this.kc=
this.o.getCurrentTime()));break;case "seeked":OU(this);break;case "seeking":d=this.Z.experiments.g("disable_html5_videoplayer_seeking_time")?this.o.getCurrentTime():this.getCurrentTime();this.B&&this.B.seek(d);var e=this.Ta;e.g=d;e.o=!0;break;case "playing":this.G.o("plev");g.uP("plev",void 0,"video_to_ad");this.Rd&&(this.Rd=!1,yU(this)||kU(this,window.Infinity,!0));g.vE(this.sb);this.sb=window.NaN;break;case "timeupdate":d=this.o&&!this.o.getCurrentTime();e=!this.Z.experiments.g("disable_have_nothing_timeupdate")&&
this.o&&0==this.o.g.readyState;if(d&&(!this.Ia||e))return;this.Ia|=!!this.o.getCurrentTime();this.Ap();OU(this);KU(this);if(!this.o||this.o.wd()!=b)return;this.Y("onVideoProgress",this,this.o.getCurrentTime());this.K&&this.Fa&&(d=this.K,e=this.o.getCurrentTime(),!d.o||e>=d.B&&e<d.D||(e=d.o.Xg(e),-1!=e&&(d.B=d.o.df(e),d.D=d.B+d.o.getDuration(e),e=(0,g.G)()/1E3-d.o.wr(e),d.A&&(e-=d.A()),hR(d.C,e),d.g.push(e))));break;case "waiting":if(0<(this.o.g.played||JJ()).length&&0==RJ(this.o).length&&0<this.o.getCurrentTime()&&
5>this.o.getCurrentTime()&&this.B)return;break;case "resize":this.g.Ma&&"auto"==this.g.Ma.video.quality&&this.Y("internalvideoformatchange",this.g,!1)}if(this.o&&this.o.wd()==b){this.Y("videoelementevent",a);a:{var b=this.A,f=this.Ta,k=this.tf,l=this.Z.experiments.g("html5_timeupdate_readystate_check");if(!g.V(b,128)){var d=b.o,e=b.g,m=a.target;if(!g.V(b,64)||"ended"!=a.type&&"pause"!=a.type)if("pause"==a.type&&m.g.ended||"ended"==a.type&&(m.g.ended||1>Math.abs(m.getCurrentTime()-m.getDuration())))0<
m.g.networkState&&m.wd()&&(d=14,e=null);else if("pause"==a.type)g.V(b,256)?(d^=256)||(d=64):g.V(b,32)||g.V(b,2)||g.V(b,4)||(d=4,g.V(b,1)&&g.V(b,8)&&(d|=1),e=null);else if("playing"==a.type)d=8,e=null,g.V(b,32)&&(d|=32),k&&g.V(b,1)&&YJ(f,m)&&(d|=1);else if("error"==a.type){b:{if(2==m.Lb())f="progressive.net.retryexhausted";else if(3==m.Lb())f="fmt.decode";else if(4==m.Lb())f="fmt.unplayable";else{m=null;break b}l="mediaElem.1";m.g.error&&m.g.error.message&&(l+=";msg."+(m.g.error?m.g.error.message:
""));.001>Math.random()&&(l+=";gpu."+eU());m={errorCode:f,errorDetail:l,message:g.T("YTP_ERROR_GENERIC_WITHOUT_LINK"),messageKey:"YTP_ERROR_GENERIC_WITHOUT_LINK"}}m&&(e=m,d|=128)}else if("progress"==a.type)dK(b)&&YJ(f,m)&&(d|=1);else if("seeked"==a.type)d&=-17;else if("seeking"==a.type)d|=16,0>=SJ(m)&&(d|=1),d&=-3;else if("waiting"==a.type)g.V(b,2)||(d|=1);else if("timeupdate"==a.type)k=2<m.g.readyState,f.A|=k,g.V(b,16)||g.V(b,4)||(YJ(f,m)?d|=1:l&&!k&&f.A||(d&=-2)),1<m.g.readyState&&0<m.getCurrentTime()&&
(d&=-65);else break a;b=ZJ(b,d,e)}}!g.V(this.A,1)&&g.V(b,1)&&gU(this,"evt_"+a.type);aU(this,b);c&&this.o.play()}}};
g.h.oM=function(a){a="available"==a.g.availability;a!=this.Zb&&(this.Zb=a,this.Y("airplayavailabilitychange"))};
g.h.pM=function(){var a=!!this.o.g.webkitCurrentPlaybackTargetIsWireless;a!=this.Vb&&(function(){this.Z.Wq=a}.apply(this),this.Vb=a)&&(g.DQ(this.g,this.Z),FU(this,"m"));
this.Y("airplayactivechange")};
g.h.Ap=function(){var a=this.o;a&&this.Ia&&!this.g.mg&&!KP("vfp",this.G.g)&&2<=a.g.readyState&&!a.g.ended&&0<IJ(RJ(a))&&this.G.o("vfp");if((a=this.o)&&!this.g.mg&&0<a.getDuration()&&(!KP("pbp",this.G.g)&&a.g.paused&&2<=a.g.readyState&&0<IJ(RJ(a))&&this.G.o("pbp"),0<a.getCurrentTime())){g.uE(this.kb);g.vE(this.da);this.da=window.NaN;this.g.mg=!0;NU(this);if(this.C){a=this.C;if(!a.B){var b=GK(a,"playback");a.J=[10+a.g.videoData.gj,10,10,40+a.g.videoData.Ek-a.g.videoData.gj,40];var c=a.A;g.uE(c.F);c.F=
window.NaN;c.F=g.wE((0,g.A)(c.update,c),100);c.D=g.tJ(c.g);c.A=sJ(c.g);b.o=EK(a,!0);b.Na=!0;b.send();a.g.videoData.Yk&&(b=a.g.g,c=a.g.videoData,b=g.Dg(b.baseYtUrl+"ptracking",{html5:"1",video_id:c.videoId,cpn:c.clientPlaybackNonce,plid:c.playbackId,ei:c.eventId,ptk:c.Yk,oid:c.iA,ptchn:c.hA,pltype:c.jA,content_v:b.ua}),JK(a,b));a.g.videoData.enableCardio&&(a.Xn("playback"),a.C||NK(a));a.g.videoData.Af||LK(a);a.B=!0;a=a.A;a.o=a.g.o();a.D=g.tJ(a.g);!(0==a.B&&5>a.o)&&2<a.o-a.B&&(a.B=a.o)}g.xE((0,g.A)(this.ts,
this),4500)}this.Y("playbackstarted");g.BG()&&((a=g.x("yt.scheduler.instance.clearPriorityThreshold"))?a():EG(0));return!0}return!1};
g.h.mN=function(){this.Bb&&(this.ka.za(this.Bb),delete this.Bb,this.o.ad())};
g.h.PG=function(){if(this.o){var a=this.getCurrentTime();if(g.V(this.A,8)&&CJ(this.Ta,a,(0,g.sG)(),SJ(this.o))){var b=this.getDuration();!this.g.Ca&&b&&1.1>Math.abs(b-a)?this.o.g.loop?kU(this,0,!0):UT(this):(g.fK(this.A)||gU(this,"progress_fix"),aU(this,$J(this.A,1)))}else g.V(this.A,4)&&g.fK(this.A)&&5<SJ(this.o)&&aU(this,aK(this.A,1));KU(this)}};
g.h.lG=function(){return this.B?DS(this.B.K):aL(this.Z.schedule)};
g.h.dw=function(){return this.o?SJ(this.o):0};
g.h.nG=function(){return this.Z.schedule.J};
g.h.aR=function(){var a;if(a=g.V(this.A,1)&&this.B){a=this.B;var b=this.getCurrentTime();a=!(!a.A||VL(a.A)||WL(a.A)||vT(b,a.g,a.A.o)&&vT(b,a.B,a.A.g))}a&&(a=uT(this.B),this.Vd("reseek",SP({cur:a.lct,vb:a.lvb,ab:a.lab})),kU(this,this.getCurrentTime(),!0))};
g.h.AG=function(){this.g.Ca||this.Y("connectionissue")};
g.h.hR=function(){this.o.xc(this.o.getCurrentTime()+.1)};
g.h.yO=function(a){var b={};g.za(b,this.Z.B);b.cpn=this.g.clientPlaybackNonce;this.g.cg&&(b.vvt=this.g.cg,this.g.mdxEnvironment&&(b.mdx_environment=this.g.mdxEnvironment));this.Z.Ec&&(b.authuser=this.Z.Ec);this.Z.pageId&&(b.pageid=this.Z.pageId);g.Zb(a.F,b);CT(a,a.J)};
g.h.QN=function(a,b,c,d){d=g.t(d)?d:"YTP_ERROR_LICENSE";c=c.substr(0,256);"drm.keyerror"==a&&1<this.F.A.keys.length&&96>this.ne&&!this.Z.experiments.g("html5_disable_drm_reload")&&(a="drm.sessionlimitexhausted",b=!1);if(b)g.cU(this,a,d,c);else if(this.C)this.C.onError(a,c);"drm.sessionlimitexhausted"==a&&(this.ne++,this.ks())};
g.h.RN=function(){FU(this,"r");$T(this)};
g.h.xS=function(a){this.Y("heartbeatparams",a)};
g.h.Ez=function(){if(!this.g.mg&&this.o){var a="0";0<this.o.g.readyState&&5<=SJ(this.o)&&this.g.jb.g&&(aU(this,$J(this.A,1)),gU(this,"load_soft_timeout"),this.Y("playbackstalledatstart"),a="1");this.C&&(a={preroll:""+ +jU(this),restartmsg:a},this.B&&g.za(a,uT(this.B)),this.o&&g.za(a,VJ(this.o)),this.C.onError("qoe.start15s",SP(a)));this.Y("loadsofttimeout")}};
g.h.ts=function(){if(!this.Ra){var a=new LT(this.g);if("c1a"in a.o){var b=g.x("yt.abuse.botguardInitialized");b=!(b&&b())}else b=!1;if(b)g.xE((0,g.A)(this.ts,this),4500);else{if(a.g&&a.g.Sj){b=[a.g.Sj];for(d in a.A)if(a.o[d]&&a.A[d]){var c=a.A[d](a.o);c&&b.push(c)}var d=b.join("&")}else d=null;d&&this.C&&(a=this.C,a.M||(b=GK(a,"atr"),b.O=d,b.send(),a.M=!0),this.Ra=!0)}}};
g.h.Ic=function(){return this.g.Ic()};
g.h.JB=function(){return this.ua};
g.h.bq=function(){if(this.o)a:{var a=this.o;var b={};if(a.g){if(a.g.getVideoPlaybackQuality){a=a.g.getVideoPlaybackQuality();break a}a.g.webkitDecodedFrameCount&&(b.totalVideoFrames=a.g.webkitDecodedFrameCount,b.droppedVideoFrames=a.g.webkitDroppedFrameCount)}a=b}else a={};return a};
g.h.ks=function(){this.o&&(this.J?CU(this):(this.g.wg&&this.g.wg.A(this.Z.experiments),this.o.Pf()),AU(this))};
g.h.Vd=function(a,b,c){if(this.C){var d=this.C;d.na()||qK(d.o,a,b,c)}};g.p(QU,OK);g.h=QU.prototype;g.h.getPlayerType=function(){return this.playerType};
g.h.getRootNode=function(){return g.ZU(this).element};
g.h.Nf=function(){return this.app.B};
g.h.ia=function(a){return(a=g.XU(this.app,a||this.playerType))&&a.g};
g.h.isFullscreen=function(){return this.app.Z.ga};
g.h.ad=function(a){3==this.Wa()?g.WU(this.app.A).Nk("control_play"):VY(this.app,a)};
g.h.Pf=function(a){IU(g.XU(this.app,a))};
g.h.addEventListener=function(a,b){this.app.K.subscribe(a,b)};
g.h.removeEventListener=function(a,b){this.app.K.unsubscribe(a,b)};
g.h.Kk=function(a){this.gy(a,a)};
g.h.Fk=function(a){return w2(this.app,a)};
g.h.getVideoUrl=function(a,b,c,d){var e=this.Wa(),f=2==e;if(d&&f||3==e)f=!1,e=1;d=this.ia(e);if(!d)return"";var k;a||d.Ca||(k=Math.floor(this.getCurrentTime(e)));return this.app.Z.getVideoUrl(d.videoId,f?void 0:this.getPlaylistId()||void 0,k,b,c)};
g.h.Lk=function(a,b,c){var d=g.RU(this).A;d&&d.zt(a,b,c)};
g.h.Kd=function(){var a=g.XU(this.app,1);if(!a)return!1;var b=a.g;return b.He()&&!g.OQ(b)&&2!=this.Wa()&&(!jU(a)||3==this.Wa())};
g.h.fi=function(a,b){var c=this.app,d=g.XU(c,this.playerType);d&&c.Z.zb.has(a.toString())?d.C?(c=GK(d.C,"engage"),c.A=a,c.send(b)):b&&b():b&&b()};
g.h.Of=function(a,b){u2(this.app,a,b)};
g.h.setVolume=function(a){a=g.Hd(a,0,100);lJ(this.app,{volume:a,muted:this.Ie()},!0)};
g.h.mute=function(){lJ(this.app,{muted:!0,volume:this.getVolume()},!0)};
g.h.ug=function(){lJ(this.app,{muted:!1,volume:Math.max(5,this.getVolume())},!0)};g.C(g.DV,g.RF);g.h=g.DV.prototype;g.h.load=function(){this.loaded=!0};
g.h.unload=function(){this.loaded=!1};
g.h.Ad=function(){return!0};
g.h.W=function(){this.loaded&&this.unload();g.DV.aa.W.call(this)};
g.h.MB=function(){return{}};g.C(EV,g.DV);g.h=EV.prototype;g.h.Bt=function(){return-1};
g.h.create=function(){this.C||(g.R(this.g.getRootNode(),this.Wd+"-created"),this.M.T(this.g,"crn_"+this.Wd,this.Tr),this.M.T(this.g,"crx_"+this.Wd,this.Ur),this.C=!0)};
g.h.destroy=function(){g.Kp(this.g.getRootNode(),this.Wd+"-created");g.FJ(this.M);this.C=!1;this.Y("destroyed",this.Wd)};
g.h.Tr=function(){};
g.h.Ur=function(){};
g.h.Ct=function(){return null};
g.h.W=function(){this.C&&this.destroy();EV.aa.W.call(this)};g.C(g.IV,g.W);g.IV.prototype.subscribe=function(a,b,c){return this.ba.subscribe(a,b,c)};
g.IV.prototype.unsubscribe=function(a,b,c){return this.ba.unsubscribe(a,b,c)};
g.IV.prototype.Qd=function(a){return this.ba.Qd(a)};
g.IV.prototype.Y=function(a,b){return this.ba.Y.apply(this.ba,arguments)};g.C(g.OV,g.M);g.h=g.OV.prototype;g.h.show=function(a){1!=this.g&&2!=this.g&&(3==this.g&&this.po(),4==this.g?(this.o.show(),this.g=null,this.A.stop()):this.o.g||(PV(this,!0),this.g=1,a?this.A.start(a):this.po()))};
g.h.hide=function(){3!=this.g&&(1==this.g||2==this.g?(this.o.hide(),this.g=null,this.A.stop()):this.o.g&&(PV(this,!0),this.g=3,this.A.start(this.B)))};
g.h.po=function(){switch(this.g){case 1:this.o.show();this.g=2;this.A.start(10);break;case 2:PV(this,!1);this.g=null;break;case 3:this.o.hide();PV(this,!1);this.g=4;this.A.start(0);break;case 4:this.g=null}};
g.h.stop=function(){for(;null!=this.g&&4!=this.g;)this.A.stop(),this.po()};
g.h.W=function(){this.o.na()||this.o.element.removeAttribute("aria-hidden");g.OV.aa.W.call(this)};var UV=[2,5];var fY=[];XV.prototype.g=function(a,b,c){a=a||fY;(0,g.Ek)(a,function(a){return cW(this.o).experiments.g(a)},this)&&(a=c||{},a.cdp=1,a["var"]=b,a.sdkv="h.3.0",g.fV(this.o.g,"ad",a))};var fW=Error("Timed out while waiting for Biscotti ID");gW.prototype.C=function(){var a=hW(this);a.format="2_3";a.at="2_3";a.trsp="1";JX(this.g,3,a)};g.C(iW,g.M);iW.prototype.W=function(){this.g.reject();iW.aa.W.call(this)};
iW.prototype.D=function(){this.A++;var a=g.x("yt.www.watch.ads.isAfcAdVisible");a&&g.ua(a)&&a()&&this.B++;4<=this.B?this.g.resolve():5<=this.A?this.g.reject("Timed out waiting for MPU to become visible"):this.o.start()};var tW,kW=!1,nW=!1,jW=!1;g.dG("showCompanionAdLoaded",function(){nW&&(oW(),nW=!1)});
g.dG("watchAdsInit",function(){kW&&(kW=!1,lW())});g.C(vW,g.RF);vW.prototype.qf=function(){return this.adSystem+"_"+this.adType};
vW.prototype.Rh=function(){return this.qf()};
vW.prototype.Kb=function(){return this.o?this.o.Kb():null};
vW.prototype.abort=g.y;g.C(xW,g.W);xW.prototype.W=function(){xW.aa.W.call(this);g.me(yW(this));g.me(zW(this));this.A=this.o=null;delete this.B};g.C(FW,g.M);FW.prototype.start=function(){!this.na()&&(0,window.isNaN)(this.g)&&(this.A=(0,g.G)(),this.g=g.fg(this.C,this.B-this.o,this))};
FW.prototype.stop=function(){(0,window.isNaN)(this.g)||(this.A=this.o=0,g.gg(this.g),this.g=window.NaN)};
FW.prototype.pause=function(){(0,window.isNaN)(this.g)||(this.o=(0,g.G)()-this.A,g.gg(this.g),this.g=window.NaN)};
FW.prototype.W=function(){(0,window.isNaN)(this.g)||g.gg(this.g);FW.aa.W.call(this)};GW.prototype.getLength=function(){return this.g-this.o};JW.prototype.update=function(a,b,c,d){this.width=b;this.A=c;this.C=d;this.g=b-c-d;this.B=g.Hd(a-c,0,this.g);this.position=this.B+c;this.o=this.B/this.g};g.C(MW,vW);MW.g=15;MW.o=-21;g.h=MW.prototype;g.h.abort=function(){EW(this.C,13);this.ca||this.o.destroy();this.D=this.G=!1;SW(this)};
g.h.qf=function(){var a=this.Kb();var b=gq(a);if(4==wW(b).A)return b;if(Or(a))a=3;else if(a.isSkippable())a=Pr(a)?1:2;else return this.adSystem+"_"+this.adType;return this.adSystem+"_"+this.adType+"_"+a};
g.h.Rh=function(){return this.adSystem+"_"+this.adType};
g.h.show=function(){uW();HY(this.g)&&pW(this.g,{});var a=this.g;if(g.OY(a)){var b=LW(a);QY(a.app,b)}else a=a.g.app,QY(a,PY(a,2));this.C.A=(0,g.sG)();this.F=this.g.getRootNode();this.B.subscribe("progresssync",this.jz,this);this.g.o.P&&g.pe(g.K("video-ad-status-bar",this.F));g.Jp(this.F,["ad-showing","ad-interrupting"]);this.g.subscribe("resize",this.Dt,this);try{this.A.X(this.o,"adError",this.TS),this.A.X(this.o,"click",this.SS),this.A.X(this.o,"complete",this.VS),this.A.X(this.o,"engagedview",this.xN),
this.A.X(this.o,"pause",this.ZB),this.A.X(this.o,"start",this.aC),this.A.X(this.o,"skip",this.XS),this.A.X(this.o,"MUTE_AD",this.abort),this.A.X(this.o,"skippableStateChanged",this.CP),this.A.X(this.o,"youTubeChannelMetadata",this.mO),this.A.X(this.o,"companionInitialized",this.US),HY(this.g)&&this.A.X(this.o,"youtubeKevlarCompanionShow",this.ON),this.A.X(yW(this.g.G),"mouseup",this.WS),this.Dt(),this.ca||this.o.start()}catch(c){TW(this,c)}this.g.o.D&&cW(this.g).experiments.g("ad_info_icon_in_card")&&
LY(this.g,"onAdMetadataAvailable",{showAdInfoIcon:!0})};
g.h.cC=function(a,b,c){if("newdata"==a&&this.videoData!=c){a=new Vma;a.isSkippable=this.fa;a.isBumper=this.ka;a.skip=(0,g.A)(this.o.skip,this.o);a.muteAd=(0,g.A)(this.o.muteAd,this.o);a.whyThisAdClicked=(0,g.A)(this.o.whyThisAdClicked,this.o);a.whyThisAdClosed=(0,g.A)(this.o.whyThisAdClosed,this.o);a.sendAdsPing=g.ZE;a.skipShown=(0,g.A)(this.o.OA,this.o);if(b=this.Kb()){a.clickThroughUrl=$r(b)||"";var d;(d=this.g.o.Ta)||(d=c.lengthSeconds,(b=Cs(b))?(jp(b,d),d=kp(b)):d=null);a.skipTime=d||0;a.adSystem=
this.adSystem;if(b=UW(this))a.whyThisAdInfo=b;if(d=VW(this))a.muteAdInfo=d;var e=cW(this.g);this.g.o.D&&e.experiments.g("ad_info_icon_in_card")&&(e={showAdInfoIcon:!0},e.whyThisAdInfo=b,e.muteAdInfo=d,LY(this.g,"onAdMetadataAvailable",e))}a.videoId=c.videoId;a.videoId||(a.videoUrl=this.ul()||"");c.spacecastModule=this.ga;QW(this.g,-1,a)}this.videoData=c};
g.h.bC=function(a){a=a.state;g.V(a,1)||this.K.pause();g.V(a,128)?TW(this,Error(a.g.message||"Video player error.")):g.V(a,1)&&this.K.start()};
g.h.aC=function(){this.P=!0;this.D=!1;if(!this.G){this.G=!0;var a=this.C;CW(a);var b=DW(a);if((0,window.isNaN)(a.A))CW(a);else{var c=(0,g.sG)()-a.A;b.ad_stl=c}BW(a,4,b);RW(this.g,1);OW(this,!1);b=this.g.o;b.sa&&(a=PW(this.g))&&(WW(this,a),this.videoData.wc=Math.min(1,this.videoData.wc*b.K),c=Math.min(1,a.getVolume()*b.K),a.setVolume(c));if(b.ua){var a=PW(this.g),d=Math.max(-21,dW(this.g).relativeLoudness),c=this.videoData.relativeLoudness;a&&0>d&&c>d&&(WW(this,a),this.videoData.wc=Math.min(this.videoData.wc,
Math.pow(10,-(c-d)/20)),c=Math.min(1,a.getVolume()/this.J*this.videoData.wc),a.setVolume(c))}b.Fa&&(a=PW(this.g),c=b.tb,d=g.vG(),a&&null!==c&&d>c&&(WW(this,a),this.videoData.wc=Math.min(1,this.videoData.wc*b.K),c=Math.min(1,a.getVolume()*b.K),a.setVolume(c)));b.Ia&&(a=PW(this.g),c=this.videoData.relativeLoudness,b=b.zb,a&&c>b&&(WW(this,a),this.videoData.wc=Math.min(this.videoData.wc,Math.pow(10,b/20)),c=Math.min(1,a.getVolume()/this.J*this.videoData.wc),a.setVolume(c)));this.M&&1!=this.M&&g.vP("yt_abt",
this.M,"video_to_ad");this.videoData&&this.videoData.clientPlaybackNonce&&g.vP("ad_cpn",this.videoData.clientPlaybackNonce,"video_to_ad");this.videoData&&this.videoData.videoId&&g.vP("ad_docid",this.videoData.videoId,"video_to_ad");g.vP("cpn",dW(this.g).clientPlaybackNonce,"video_to_ad");g.uP("apbs",void 0,"video_to_ad");(a=g.T("ADS_INSTREAM_FIRST_PLAY"))&&LY(this.g,"onAdAnnounce",a)}QW(this.g,1);this.Y("adPlay",this)};
g.h.ZB=function(){this.P&&(this.P=!1,QW(this.g,2))};
g.h.VS=function(){if(!this.D){var a=this.C;CW(a);var b=DW(a),c=a.g.jk();c?b.ad_fmt=c:CW(a);BW(a,5,b);cW(this.g).Fb&&LY(this.g,"onAdComplete");SW(this);this.D=this.G=!1}};
g.h.xN=function(){var a=this.C;a.g.Y("AD_LOGGING_EVENT",777,DW(a))};
g.h.XS=function(){this.D=!0;var a=this.C,b=DW(a),c=a.g.jk();c?b.ad_fmt=c:CW(a);BW(a,14,b);cW(this.g).Fb&&LY(this.g,"onAdSkip");SW(this)};
g.h.CP=function(){cW(this.g).experiments.g("html5_ad_no_buffer_abort_after_skippable")&&this.K.dispose();var a=g.T("ADS_INSTREAM_SKIPPABLE");a&&LY(this.g,"onAdAnnounce",a)};
g.h.mO=function(){var a;if(!this.na()&&(a=this.g.o)){var b=this.Kb();if(b){var c=b.P,b=b.ka,d=cW(this.g),e=UW(this),f=VW(this);b&&c&&c.isListed?(a={},a.videoTitle=c.title,a.channelThumbnailUrl=b.channelIconThumbnailUrl,a.channelTitle=b.authorName,a.channelVideoCount=b.videoCount,a.showAdInfoIcon=this.g.o.D&&d.experiments.g("ad_info_icon_in_card"),a.whyThisAdInfo=e,a.muteAdInfo=f,LY(this.g,"onAdMetadataAvailable",a)):a.D&&d.experiments.g("ad_info_icon_in_card")&&(a={showAdInfoIcon:!0},a.whyThisAdInfo=
e,a.muteAdInfo=f,LY(this.g,"onAdMetadataAvailable",a))}}};
g.h.US=function(a){a=a.event;var b=a.g;b&&b instanceof g.qf&&this.Y("adCompanionInitialized",a.Ob(),b)};
g.h.ON=function(a){HY(this.g)&&(a=(a=a.event.Ob())&&a.J)&&pW(this.g,a)};
g.h.TS=function(a){var b={};try{b.error_code=a.event.getError().Lb()}catch(c){b.error_code=900,b.error_message=c.toString()}EW(this.C,32,b);TW(this,a.event.getError())};
g.h.SS=function(){var a=this.C;CW(a);var b=DW(a);if(a.o){var c=JY(a.B);b.ck_xy=Math.round(a.o.x-c.left)+"x"+Math.round(a.o.y-c.top);b.ck_wh=c.width+"x"+c.height}BW(a,15,b);this.o.pause();this.Y("select")};
g.h.jz=function(){};
g.h.ez=function(){this.o.jf();if(this.G&&!this.D){var a=this.C;a.g.Y("AD_LOGGING_EVENT",19,DW(a))}OW(this,!0)};
g.h.W=function(){this.g.unsubscribe("control_toggle_play_pause",this.dC,this);this.g.unsubscribe("control_play",this.ds,this);this.g.unsubscribe("control_pause",this.Zr,this);this.g.unsubscribe("resize",this.Dt,this);g.OF(this.A);this.B.unsubscribe("statechange",this.bC,this);this.B.unsubscribe("internalAbandon",this.ez,this);this.B.unsubscribe("internalvideodatachange",this.cC,this);this.B.unsubscribe("progresssync",this.jz,this);this.ca||this.o.destroy();this.V&&(g.me(this.V),this.V=null);this.da&&
(g.pe(this.da),this.da=null);this.F&&(g.Lp(this.F,["ad-showing","ad-interrupting"]),this.F=null);this.D=!1;SY(this.g);this.K.dispose();this.K=null;MW.aa.W.call(this)};
g.h.Fm=function(){return this.B.getDuration()};
g.h.jk=function(){return this.videoData&&this.videoData.Ma?this.videoData.Ma.mimeType:null};
g.h.ul=function(){return this.videoData&&this.videoData.wg?this.videoData.wg.g().g:null};
g.h.dC=function(){this.P?this.Zr():this.ds()};
g.h.ds=function(){this.o.resume();this.aC()};
g.h.Zr=function(){this.o.pause();this.ZB()};
g.h.Dt=function(){g.th(yW(this.g.G),this.g.app.F.Ya())};
g.h.WS=function(a){g.t(a.g)||AF(a);var b=a.g;g.t(a.o)||AF(a);this.C.o=new g.Md(b,a.o)};g.C(ZW,vW);g.h=ZW.prototype;g.h.Fm=function(){};
g.h.jk=function(){};
g.h.ul=function(){};
g.h.show=function(){if(!this.D||!aZ(this.g)){var a=this.g.getRootNode();g.R(a,"ad-showing");this.A=yW(this.g.G);a=this.o.Kb().getHeight();this.A.style.height=hh(a,!0);g.R(this.A,"ad-overlay");this.B.X(this.A,"mouseup",this.aT);try{this.B.X(this.o,"autoClose",this.DM),this.B.X(this.o,"userClose",this.XP),this.B.X(this.o,"userRecall",this.YP),this.B.X(this.o,"click",this.ZS),this.B.X(this.o,"impression",this.LN),this.B.X(this.o,"adError",this.YS),this.Bc("normal"),this.F||this.o.start(),this.Et(),this.g.subscribe("resize",
this.Co,this),this.g.subscribe("presentingplayerstatechange",this.eC,this),this.Y("adEnd",this)}catch(b){this.Y("adError",b)}}};
g.h.W=function(){var a=this.g.getRootNode();g.Lp(a,["ytp-ad-overlay-open","ytp-ad-overlay-closed"]);g.OF(this.B);this.g.unsubscribe("resize",this.Co,this);this.g.unsubscribe("presentingplayerstatechange",this.eC,this);g.Kp(a,"ad-showing");this.o&&(this.F||this.o.destroy(),this.o=null);this.A&&g.Kp(this.A,"ad-overlay");this.A=null;this.D=!1;ZW.aa.W.call(this)};
g.h.XP=function(){this.A&&this.o&&this.o.Kb()&&(this.A.style.height=hh(0,!0));this.D=!0;var a=this.C;a.o=(0,g.G)();var b=YW(a);XW(a,6,b);$W(this,!1)};
g.h.DM=function(){$W(this,!1)};
g.h.YP=function(){$W(this,!0)};
g.h.ZS=function(){eY(this.g);var a=this.C;a.o=(0,g.G)();var b=YW(a);if(a.A){var c=JY(a.C);b.ck_xy=Math.round(a.A.x-c.left)+"x"+Math.round(a.A.y-c.top);b.ck_wh=c.width+"x"+c.height}XW(a,100,b)};
g.h.LN=function(){var a=g.T("ADS_OVERLAY_IMPRESSION");a&&LY(this.g,"onAdAnnounce",a);$W(this,!0)};
g.h.aT=function(a){this.C.A=a.target==a.currentTarget?null:new g.Md(a.pageX,a.pageY)};
g.h.YS=function(a){this.Y("adError",a.event.getError())};
g.h.eC=function(a){g.V(a.state,16)&&this.Bc("normal")};
g.h.Bc=function(a){this.G!=a&&(this.G=a)};
g.h.Co=function(){};
g.h.Et=function(){var a=this.C;a.B=(0,g.G)();var b=YW(a);XW(a,3,b)};g.C(aX,g.M);aX.o="rm";aX.g=10;aX.C=200;aX.A=200;aX.B=190;g.h=aX.prototype;
g.h.load=function(){var a=this.g.app.F.Ya();if(this.g.o.B)var b=!1;else b=0<(this.D&3)?190:200,b=200>a.width||a.height<b;if(b){b=this.A;var c=hW(b);c.ck_wh=a.width+"x"+a.height;KY(b.g,14,c);uW();MX(this.C)}else if(this.ib=this.g.ib)a=this.A,JX(a.g,9,hW(a)),a=eW(this.g),(b=this.g.o.serverPrefetchedVast)&&0<(this.D&3)?(a.o=b,this.g.o.serverPrefetchedVast=void 0):a.g=this.Tg(),this.ib.X("adsManagerLoaded",this.WB,!1,this),this.ib.X("adError",this.VB,!1,this),this.xA(this.ib,a)};
g.h.Sp=function(){var a=bW(this.g.o,cW(this.g),dW(this.g));a.surveyCreativeData=this.g.o.surveyCreativeData;a.iS=this.G;return a};
g.h.WB=function(a){if(a.A===this){g.uP("aml");g.uP("aml",void 0,"video_to_ad");try{var b=this.Sp();var c=a.g}catch(d){this.nh(d);return}this.B.X(c,"companionBackfill",(0,g.A)(this.QS,this,c));this.B.X(c,"loaded",(0,g.A)(this.PS,this,c));this.B.X(c,"adError",(0,g.A)(this.OS,this,c));this.B.X(c,"allAdsCompleted",g.y);this.B.X(c,"contentPauseRequested",g.y);this.B.X(c,"contentResumeRequested",g.y);c=bA(a,this.g.J,{},b);try{c.init("normal")}catch(d){c.destroy(),this.nh(d)}}};
g.h.PS=function(a,b){km(this.B);var c=b.Ob(),d=c.Wb(),e=this.A,f=hW(e);f.ad_man=d?"instream":"overlay";JX(e.g,12,f);e=a.Vg();switch(d?this.Tm(a,c,e):this.Wh(a,c)){case 0:IX(this.C,this.K,this.o);break;case 1:a.destroy();MX(this.C);break;case 2:c=this.A;KY(c.g,21,hW(c));a.destroy();MX(this.C);break;case 3:MX(this.C);break;default:a.destroy()}};
g.h.OS=function(a,b){km(this.B);a.destroy();this.nh(b.getError())};
g.h.VB=function(a){var b=a.getError();"adLoadError"==b.bc()&&a.g===this&&this.nh(b)};
g.h.QS=function(){dX(this)};
g.h.Tm=function(a,b,c){var d=dW(this.g)&&dW(this.g).spacecastModule;if(d&&c&&!this.M.test(c))return 3;cX(this,bs(b));bX(this,new MW(this.G,this.g,a,b.isSkippable(),b.isBumper(),void 0,d,this.o.g));return 0};
g.h.Wh=function(a,b){cX(this,bs(b));bX(this,new ZW(this.G,this.g,a));return 0};
g.h.nh=function(a){if(a){var b=this.A,c=hW(b);a&&ZV(a,c);KY(b.g,32,c);MX(this.C)}};
g.h.W=function(){this.ib&&(this.ib.za("adsManagerLoaded",this.WB,!1,this),this.ib.za("adError",this.VB,!1,this));km(this.O);km(this.B);aX.aa.W.call(this)};
g.h.xA=function(a,b){try{gC(a,b,this),g.uP("ar"),g.uP("ar",void 0,"video_to_ad")}catch(c){this.nh(c)}};g.C(eX,vW);g.h=eX.prototype;g.h.Fm=function(){};
g.h.jk=function(){};
g.h.ul=function(){};
g.h.show=function(){HY(this.g)?pW(this.g,{afcMpu:{logImpression:this.XB.bind(this),logNoAd:this.qq.bind(this)}}):jW?this.qq():(lW(),qW(),rW().then((0,g.A)(this.XB,this),(0,g.A)(this.qq,this)))};
g.h.XB=function(){var a={};a.at=this.Rh();a.format=this.qf();this.Y("AD_LOGGING_EVENT",3,a);this.Y("adEnd",this)};
g.h.qq=function(){var a={};a.at=this.Rh();this.Y("AD_LOGGING_EVENT",2,a);this.Y("adEnd",this)};g.C(fX,aX);fX.prototype.Sp=function(){var a=fX.aa.Sp.call(this);a.Mu=0==this.J;a.tF=aZ(this.g)?a.Mu:!0;return a};
fX.prototype.Tg=function(){var a=WV(this.o);var b=this.F;(b=4==this.D&&b.g.afvInvideoAdTag?b.g.afvInvideoAdTag:b.g.afvAdTag)?(g.Da(b,"http:")&&(b=b.substr(5)),a=g.HE(b,{videoad_start_delay:0==a||-1==a?a:1E3*a})):a="";return a};
fX.prototype.Wh=function(a,b){if(this.g.o.B)return 1;if(1==this.o.g){var c=new VV(2,10);this.o=c;this.A.A=c;JX(this.g,1)}return fX.aa.Wh.call(this,a,b)};g.C(gX,ZW);gX.prototype.Co=function(){};
gX.prototype.qf=function(){return"1_3"};
gX.prototype.Et=function(){1==this.J?this.Y("AD_LOGGING_EVENT",2,{}):gX.aa.Et.call(this)};g.C(hX,aX);hX.prototype.Tg=function(){var a=this.F,b=WV(this.o);if(0<(this.D&3)){var c="mid,"+a.jc;var d="midroll";0==b?(c="pre",d="preroll"):-1==b&&(c="post",d="postroll");var a=new g.Ll(a.g),b=a.g,e=b.get("scp",""),e=(e?e+"&":"").replace(RegExp("&?pos=[^&]*","g"),"");b.set("scp",e+("pos="+c));b.set("vpos",d);c=a.toString()}else c=a.g;return c};
hX.prototype.Wh=function(a,b){cX(this,bs(b));var c=Lr(b);if(aW(c,"rm"))return 1==this.D||aZ(this.g)||uW(),a.Dj(),2;if(aW(c,"blockAllAds"))return a.Dj(),bX(this,new gX(this.g,a,1)),0;if(aW(c,"hideMaster"))return bX(this,new gX(this.g,a,0)),0;if(this.g.o.B)return 1;bX(this,new ZW(this.G,this.g,a));return 0};g.C(iX,aX);iX.o="https://www.googleapis.com/urlshortener/v1/url?key=AIzaSyBbSB-E7SYd1iggX6r2b5C7ljvO6fVqaj0&shortUrl=";iX.A="43";iX.g=function(a){var b=new zD;g.KE(a,{format:"RAW",method:"GET",timeout:5E3,withCredentials:!0,bd:function(){var c=Error(a+" timed out");DD(b);BD(b,!1,c)},
onError:function(c){c=Error("Problem loading "+a+" with status code "+c.status);DD(b);BD(b,!1,c)},
Mb:function(a){b.jg(a)}});
return b};
iX.prototype.Tg=function(){return""};
iX.prototype.xA=function(a,b){var c=this.D;c&1||c&4||c&8?this.F?c&8?Qma(this.F):("goo.gl"==g.vg(this.F)?(c=iX.g("https://www.googleapis.com/urlshortener/v1/url?key=AIzaSyBbSB-E7SYd1iggX6r2b5C7ljvO6fVqaj0&shortUrl="+this.F),FD(c,function(a){a=g.jg(a.responseText);if(!a)throw Error("Invalid expanded forced ad URL.");if(!a.longUrl)throw Error("Missing forced ad URL information.");a=new g.Ll(a.longUrl);g.Ul(a,"video_format","43");return iX.g(a.toString())},this)):c=iX.g(this.F),FD(c,function(c){b.o=c.responseText;
gC(a,b,this)},this),ED(c,null,this.nh,this)):this.nh(Error("Invalid empty URL")):this.nh(Error("Invalid request type: "+c))};var kX=null;g.C(lX,g.W);lX.prototype.clear=function(){for(var a=0;a<this.Ka.length;a++)this.Ka[a].detach(),g.Ke(this.Ka[a]);this.Ka=[]};
lX.prototype.F=function(a){g.MF(a);this.o=Math.max(0,this.o-mX(this));nX(this)};
lX.prototype.D=function(a){g.MF(a);this.o=Math.min(this.Ka.length-1,this.o+mX(this));nX(this)};g.C(qX,g.IV);g.C(rX,g.IV);g.h=rX.prototype;g.h.W=function(){rX.aa.W.call(this);this.clear()};
g.h.clear=function(){this.o.clear();this.A.stop()};
g.h.start=function(){this.A.start();this.Os()};
g.h.Os=function(){nX(this.o)};
g.h.KG=function(){this.D.start()};g.C(sX,vW);sX.prototype.Fm=function(){};
sX.prototype.jk=function(){};
sX.prototype.ul=function(){};
sX.prototype.show=function(){var a=dW(this.g).videoId;if(a){var b=this.o.Kb();mO(cW(this.g).G,a,{Hh:Js(b)||null,Nj:Ks(b)||null});HY(this.g)?(a=tX(this),g.fb(a)||(a={shopText:jX(fr(a[0],"teaser_text")),sponsoredText:jX(g.T("YTP_SPONSORED")),adInfoText:jX(g.T("YTP_SPONSORED_PRODUCT_INFO")),itemList:{horizontalListRenderer:{items:(0,g.I)(a,cna),visibleItemCount:3,webHorizontalListRendererExtensionData:{nextButton:{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CHEVRON_RIGHT"}}},
previousButton:{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CHEVRON_LEFT"}}}}}}},LY(this.g,"onPlaShelfInfoCardsReady",a))):(a=tX(this),g.fb(a)||(hna(this.A,a),a=this.A.element,ena().then(g.ya(fna,a)).then(this.A.start,null,this.A)));a={};a.format=this.qf();a.at=this.Rh();$V(b,a);this.Y("AD_LOGGING_EVENT",3,a)}};g.C(uX,aX);uX.prototype.Tg=function(){return this.g.o.Zb||""};
uX.prototype.Wh=function(a,b){cX(this,bs(b));bX(this,new sX(this.g,a));5!=this.o.g&&dX(this);return 0};
uX.prototype.Tm=function(){return 1};g.C(vX,uX);vX.prototype.Tg=function(){return this.g.o.forceAdUrl||""};g.C(BX,ZW);BX.prototype.Co=function(){};
BX.prototype.qf=function(){return"4_3"};g.C(CX,aX);
CX.prototype.Tg=function(){if(E(this.F)||0!=WV(this.o)){var a=this.P;if(a.g.Sa&&a.g.Na){var b={};var c="youtube_watch_"+a.A;b.nw="10613";b.asnw=a.g.Sa;b.ssnw=a.g.Sa;b.caid=a.g.Na;b.vdur=a.D;b.csid=c;b.resp="vast2";b.metr="121";c={};(0,window.isNaN)(a.g.Oa)||(c._fw_d_001=a.g.Oa);a.g.gender&&(c._fw_d_002=a.g.gender);a.g.Za&&(c["_fwu:10613:lang"]=a.g.Za);a.g.ra&&(c._fw_dbp=a.g.ra);a.g.Ra&&(c._fw_distributorvideoassetid=a.g.Ra);c._fw_yt_type=AX(a)?"long":"short";b.prof=AX(a)?"10613:youtube_html5_w_midroll":"10613:10613_youtube_html5_2014";
b.crtp="youtube";b.flag=wX(a.o)?"+slcb+qtcb+amcb+exvt+emcr":"+slcb+qtcb+amcb+emcr";var d="";if(a.C&1&&!a.F){var e={};d=yX(a);if(zX(a.o)){if(zX(a.o)){var f=0;var k=a.B.A;if(k)for(var k=k.Db,l=0;l<k.length&&(zX(k[l])&&f++,k[l].getId()!=a.o.getId());l++);}else f=0;d+=f}e.slid=d;e.ptgt="a";d="";a.g.C&&!a.g.A?d=";linear-skippable":!a.g.C&&a.g.A&&(d=";video");e.slau=yX(a)+d;e.tpos=xX(a.o)?a.D.toString():WV(a.o.Tb).toString();d=CE(e)+";";e={slid:"page_display1",w:"300",h:"60",ptgt:"s",slau:"display",flag:"+cmpn"};
d+=CE(e)+";"}a.C&4&&(e={slid:"overlay",ptgt:"a",slau:"overlay"},e.tpos=wX(a.o)?"10":xX(a.o)?a.D.toString():WV(a.o.Tb).toString(),d+=CE(e)+";",e={slid:"page_display2",w:"300",h:"250",ptgt:"s",slau:"display",flag:"+cmpn"},d+=CE(e)+";");a.C&8&&(e={slid:"dis",w:"300",h:"250",ptgt:"s",slau:"display",flag:"+cmpn"},d+=CE(e)+";");a=d.substr(0,d.length-1);b="//2975c.v.fwmrm.net/ad/g/1?"+CE(b)+";"+CE(c)+";"+a}else b=""}else b=this.F;return b};
CX.prototype.Tm=function(a,b){return CX.aa.Tm.call(this,a,b,null)};
CX.prototype.Wh=function(a,b){var c=Lr(b);if(aW(c,"rm"))return this.C.C=g.Wb(a),2;if(this.g.o.B)return 1;if(aW(c,"hideMaster")){if(a.Gd&&a.Gd.Ph()){var c=a.Gd.Ph();var d=a.Kb();if(P.g()){var e=d.ba;d.ba=[];d=e}else d=[];c.impressionUrls=d}bX(this,new BX(this.g,a));return 0}return CX.aa.Wh.call(this,a,b)};DX.prototype.bc=function(){return this.o};
DX.prototype.create=function(a,b){switch(this.o){case 1:return new fX(a,b,this.g);case 2:return new hX(a,b,this.g);case 5:return new CX(a,b,this.g);case 4:return new iX(a,b);case 7:return new uX(a,b,this.g);case 8:return new vX(a,b,this.g);default:return null}};g.C(EX,g.RF);g.h=EX.prototype;g.h.Pb=function(){return"loaded"==this.B||"error"==this.B};
g.h.getId=function(){return this.Aa};
g.h.show=function(){this.G?this.g instanceof ZW&&this.g.Bc("normal"):(this.G=!0,this.g instanceof MW&&this.A.je("bs"),this.g.subscribe("adEnd",this.iz,this),this.g.subscribe("adError",this.SB,this),this.g.subscribe("AD_LOGGING_EVENT",this.UB,this),this.g.subscribe("select",this.RB,this),this.g.subscribe("adCompanionInitialized",this.TB,this),this.g.show(),LX(this,!0))};
g.h.iz=function(){this.o&&(NX(this),MY(this.A));HX(this)};
g.h.SB=function(a){if(a){var b={};ZV(a,b);KX(this,b);KY(this.A,32,b)}NX(this);HX(this)};
g.h.UB=function(a,b){KX(this,b);JX(this.A,a,b)};
g.h.RB=function(){this.F=!1};
g.h.TB=function(a,b){this.Y("adCompanionInitialized",a,b)};
g.h.W=function(){NX(this);this.g=null;null!=this.C&&(this.C.dispose(),this.C=null);EX.aa.W.call(this)};var mna=[new VV(1)];var ona={YD:"m",CD:"f"};g.C(SX,g.M);SX.prototype.B=function(a){a=null!=a.Ob()?a.Ob().D:null;if(null!=a){var b=LW(this.C);b&&b.g.videoId==a?b.C?(b=b.C,a=GK(b,"engage"),a.A=1,b=kK(b.g),a=g.ya(Oja,a.Sa,CK(a),AK(a),b)):a=null:a=null;this.o=a}};
SX.prototype.A=function(){this.g&&this.o&&this.o()};g.C(TX,g.M);g.h=TX.prototype;g.h.eB=function(){this.g.subscribe("beginseeking",this.Xl,this)};
g.h.YA=function(a,b){return a.o&&zX(a)?b+this.B+this.A:b};
g.h.XA=function(a,b){return!a.o||xX(a)||0x7ffffffffffff==b||0x8000000000000==b?b:b+this.B+this.A};
g.h.Gu=function(a){if(a.o&&zX(a)&&!(0>=this.A)){var b={priority:2,id:String(a.getId()),style:"ytp-ad-fadeout"},c=GX(a)+this.B,b=new g.pJ(c,c+this.A-1,b);this.C[a.getId()]=b;FV(this.g,[b])}};
g.h.hC=function(a){a.o&&zX(a)&&(UX(this,a.getId()),this.Xl())};
g.h.Xl=function(){(0,window.isNaN)(this.o)||(g.vE(this.o),this.o=window.NaN);var a=PW(this.g),b=this.g.app.J.getVolume()/100;a.setVolume(b*dW(this.g).wc);PL(a,"transition","");PL(a,"opacity","1")};
g.h.iC=function(a){var b=GX(a)+this.B+this.A,b=50>=1E3*this.g.getCurrentTime(1)-b;a.o&&zX(a)&&b&&(a=.001*(GX(a)+this.F),ZY(this.g,a),0>=this.D||(a=PW(this.g),PL(a,"opacity","0"),a.setVolume(0*dW(this.g).wc),g.xE((0,g.A)(this.bT,this),0)))};
g.h.bT=function(){var a=PW(this.g);PL(a,"transition","opacity "+String(this.D)+"ms linear");PL(a,"opacity","1");VX(this,a,this.D,1)};
g.h.gC=function(a,b,c){if(!(0,window.isNaN)(this.o)){var d=Math.max(1,b-(0,g.G)()),d=-1*a.getVolume()*c/d,d=Math.max(0,a.getVolume()+d);a.setVolume(d*dW(this.g).wc);this.o=0<d?dR((0,g.A)(this.gC,this,a,b,c),c):window.NaN}};
g.h.fC=function(a,b,c){if(!(0,window.isNaN)(this.o)){var d=Math.max(1,b-(0,g.G)()),e=this.g.app.J.getVolume()/100,d=(e-a.getVolume())*c/d,d=Math.min(e,a.getVolume()+d);a.setVolume(d*dW(this.g).wc);this.o=d<e?dR((0,g.A)(this.fC,this,a,b,c),c):window.NaN}};
g.h.W=function(){this.Xl();this.g.unsubscribe("beginseeking",this.Xl,this);TX.aa.W.call(this)};g.C(WX,TX);g.h=WX.prototype;g.h.eB=g.y;g.h.YA=function(a,b){return b};
g.h.XA=function(a,b){return b};
g.h.Gu=g.y;g.h.hC=g.y;g.h.iC=g.y;g.h.W=g.y;g.C(XX,g.M);XX.prototype.A=function(){if(this.B){var a=this.g.o;if(null!=a&&(a=a.o,!(0>=a))){var b=this.g.g.getCurrentTime(),c=[],d=null,e=Number.MAX_VALUE;g.Ib(this.D.A,function(a){a.Pb();if(a.isVisible&&!(0>=ZX(this,a))){var f=a.getId();f=this.D.D[f];if(ZX(this,a)>b){var k=!$X(this,a);k!=f.visible&&(f.visible=k,c.push(f));k||(f=ZX(this,a)-b,f<e&&(e=f,d=a))}else f.visible||(f.visible=!0,c.push(f))}},this);
0<c.length&&FV(this.g,c,1);if(d){var f=0;0<this.o&&(f=(0,g.G)()/1E3-this.o);rna(this,a-f-e+2)}else YX(this)}}};
XX.prototype.W=function(){YX(this);this.g.unsubscribe("endseeking",this.A,this);XX.aa.W.call(this)};g.C(aY,g.M);g.h=aY.prototype;g.h.sj=function(a){a.unsubscribe("adBreakComplete",this.sj,this);a.unsubscribe("adCompanionInitialized",this.Rr,this);this.P=g.xE((0,g.A)(this.eM,this,a),0)};
g.h.Rr=function(a,b){g.Ke(this.K);this.K=new SX(this.o,b)};
g.h.eM=function(a){var b=tna(this,a),c=b.previous,b=b.next;this.P=window.NaN;var d=!1;switch(a.Tb.g){case 5:var e=0x7ffffffffffff;d=!0;break;case 3:e=0x8000000000000;break;default:e=b&&g.oa(b.Tb.o)?GX(b)-1:0x7ffffffffffff}0==a.Aa&&(this.o.je("bl"),FX(a)||this.o.je("fb"));"loaded"!=a.B||0==a.Aa&&FX(a)&&b&&1E3*this.o.g.getCurrentTime()>=GX(b)?(c&&c.Pb()&&!d&&(b=e,e=GX(c),e>b&&(b=e),dY(this,c),cY(this,c,b)),this.Lh(a)):(this.A[a.getId()]=a,cY(this,a,e),GV(this.o));g.Lb(this.A)==this.Db.length&&this.C.A();
bY(this)};
g.h.Lh=function(a){a.unsubscribe("adBreakComplete",this.sj,this);a.unsubscribe("adBreakComplete",this.Sk,this);this.g&&a==this.g&&(this.g=null,null!=this.K&&a.o&&(this.K.g=!0));dY(this,a);g.kb(this.Db,a);delete this.A[a.getId()];g.Ke(a)};
g.h.Oi=function(a){return this.A[a]};
g.h.Sk=function(a){a.unsubscribe("adBreakComplete",this.Sk,this);if(a.o){!xX(a)&&a.F?(WY(this.o),this.B.iC(a)):FX(a)&&!a.F?WY(this.o):UY(this.o);this.Lh(a);a=this.C.o;a={tfla:0<a?Math.floor((0,g.G)()/1E3-a):0};this.o.Ii.g(fY,"set_previous_ad_end_time",a);a=this.C;if(a.B){var b=a.g.o;b&&0<b.o&&(a.o=(0,g.G)()/1E3,a.A())}for(;!g.fb(this.O);)gY(this,this.O.shift())}else a.isVisible||this.Lh(a)};
g.h.W=function(){g.vE(this.P);g.Ke(this.B);g.Ke(this.C);(0,g.H)(this.Db,this.Lh,this);g.Ke(this.K);aY.aa.W.call(this)};g.C(hY,aY);g.h=hY.prototype;g.h.Oi=function(a){a=hY.aa.Oi.call(this,a);if(!a)return null;if(!a.J)return a;var b=null;if(this.F.length){var c=b=this.F.shift();c.Tb=a.Tb;c.Aa=a.getId()}b&&"loaded"==b.B?(a.unsubscribe("adBreakComplete",this.sj,this),this.A[a.getId()]=b,this.Db[this.Db.indexOf(a)]=b,g.Ke(a)):(this.wj(),b&&(g.Ke(b),b=null,this.Lh(a)));b&&!b.o&&this.wj();return b};
g.h.sj=function(a){!wX(a)&&(2!=a.Tb.g||10!=WV(a.Tb))||"loaded"==a.B&&a.o||this.wj();hY.aa.sj.call(this,a)};
g.h.Sk=function(a){a.o&&10<this.V?(iY(this),this.ba=g.xE((0,g.A)(this.wj,this),1E3*(this.V-10))):this.wj();hY.aa.Sk.call(this,a)};
g.h.wj=function(){if(!this.na())for(iY(this);this.J.length&&this.M.length+this.F.length<this.ca;){var a=this.J.shift();a.subscribe("adBreakComplete",this.hz,this);this.M.push(a);MX(a)}};
g.h.hz=function(a){a.unsubscribe("adBreakComplete",this.hz,this);g.kb(this.M,a);this.F.push(a)};
g.h.W=function(){iY(this);g.H(this.M,g.Ke);g.H(this.F,g.Ke);g.H(this.J,g.Ke);hY.aa.W.call(this)};g.C(jY,aY);jY.prototype.fa=function(a){"loaded"==a.B&&this.J.push(a);a.unsubscribe("adBreakComplete",this.fa,this)};
jY.prototype.V=function(){if(null!=this.g&&0<this.J.length){var a=this.J.shift();delete this.A[WV(a.Tb)];var b=Math.floor((0,g.G)()/1E3)-this.ga;this.ga=null;a.unsubscribe("adBreakComplete",this.V,this);this.Lh(a);this.g=null}0<this.M?(this.M--,kY(this)):(WY(this.ba),(0,window.isFinite)(b)&&(this.ca?kU(this.F,window.Infinity,!0):kU(this.F,this.F.getCurrentTime()+b,!0)))};g.C(mY,g.M);mY.prototype.F=function(){this.g||(this.g=lY(this.B.Re()));FV(this.o,g.Nb(this.g),1)};
mY.prototype.A=function(){if(this.g){var a=this.o.g.getCurrentTime(),b=[],c=null,d=Number.MAX_VALUE;(0,g.H)(this.B.Re(),function(e){var f=this.g[e];if(f){var k=this.B.Oi(e);k&&k.Dc>a?(e=!this.fd.o(k),e!=f.visible&&(f.visible=e,b.push(f)),e||(f=k.Dc-a,f<d&&(d=f,c=k))):!k||k.xb()?(g.nV(this.o.g,[f],void 0),delete this.g[e]):!f.visible&&k&&(f.visible=!0,b.push(f))}},this);
0<b.length&&FV(this.o,b,1);var e=this.o.o.o;if(0>=e)if(c){var f=0;0<this.D&&(f=(0,g.G)()/1E3-this.D);vna(this,e-f-d+2)}else nY(this)}};
mY.prototype.W=function(){this.o.unsubscribe("endseeking",this.A,this);nY(this);mY.aa.W.call(this)};g.C(oY,g.M);g.h=oY.prototype;g.h.iw=function(){return 4};
g.h.jo=function(a){return a};
g.h.qA=function(){return!1};
g.h.Hu=g.y;g.h.vl=g.y;g.h.jC=g.y;g.h.kC=g.y;g.h.lC=g.y;g.C(qY,g.M);g.h=qY.prototype;g.h.iw=function(){return 4-this.B/1E3};
g.h.jo=function(a){return Qb(this.A,1E3*a)?this.A[1E3*a]/1E3:a};
g.h.qA=function(a){var b=!1,c={};(0,g.H)(g.se(a),(0,g.A)(function(a){var d;if(d=(d=a.getAttribute("timeOffset"))?pY(d):null)b=b||wna(a),c[d]=a},this));
if(!b||0==g.Lb(c))return!1;a=(0,g.I)(g.Ob(c),function(a){return(0,window.parseInt)(a,10)});
if(!zna(this,a))return!1;g.Ib(c,(0,g.A)(function(a,b){var c=(0,window.parseInt)(Rb(this.A,function(a){return a==b}),10);
c&&a.setAttribute("timeOffset",xna(c))},this));
return!0};
g.h.Hu=function(a){if(!(0>=this.K)){var b=[];(0,g.H)(a,(0,g.A)(function(a){if(Qb(this.A,1E3*a)){var c=new g.pJ(1E3*this.jo(a)+this.B,1E3*a+500,{priority:2,id:String(a),style:"ytp-ad-fadeout"});this.C[a]=c;b.push(c)}},this));
FV(this.g,b)}};
g.h.jC=function(a){if(Qb(this.A,1E3*a)){var b=PW(this.g);null!==b&&(a=Math.max(0,1E3*a-1E3*this.g.getCurrentTime(1)),PL(b,"transition","opacity "+String(a)+"ms linear"),PL(b,"opacity","0"),sY(this,b,a,0))}};
g.h.kC=function(a){rY(this,1E3*a)&&(this.C[a]&&(g.nV(this.g.g,[this.C[a]],void 0),delete this.C[a]),this.vl())};
g.h.rC=function(){g.V(g.YU(this.g.g),4)&&this.vl()};
g.h.vl=function(){var a=PW(this.g);if(null!==a){null!=this.o&&(g.vE(this.o),this.o=null);var b=this.g.app.J.getVolume()/100;a.setVolume(b*dW(this.g).wc);PL(a,"transition","");PL(a,"opacity","1")}};
g.h.lC=function(a){if(Qb(this.A,1E3*a)){var b=1E3*a;200>=1E3*this.g.getCurrentTime(1)-b&&(ZY(this.g,this.jo(a)+this.J/1E3),0>=this.D||(a=PW(this.g),null!==a&&(PL(a,"opacity","0"),a.setVolume(0*dW(this.g).wc),null!=this.o&&g.vE(this.o),this.o=dR((0,g.A)(this.iT,this),0))))}};
g.h.iT=function(){var a=PW(this.g);null!==a&&(PL(a,"transition","opacity "+String(this.D)+"ms linear"),PL(a,"opacity","1"),sY(this,a,this.D,1))};
g.h.qC=function(a,b,c){if(null!==this.o){var d=Math.max(1,b-(0,g.G)()),d=-1*a.getVolume()*c/d,d=Math.max(0,a.getVolume()+d);a.setVolume(d*dW(this.g).wc);0<d?this.o=dR((0,g.A)(this.qC,this,a,b,c),c):this.o=null}};
g.h.pC=function(a,b,c){if(null!==this.o){var d=Math.max(1,b-(0,g.G)()),e=this.g.app.J.getVolume()/100,d=(e-a.getVolume())*c/d,d=Math.min(e,a.getVolume()+d);a.setVolume(d*dW(this.g).wc);d<e?this.o=dR((0,g.A)(this.pC,this,a,b,c),c):this.o=null}};
g.h.W=function(){this.vl();this.g.unsubscribe("applicationplayerstatechange",this.rC,this);qY.aa.W.call(this)};g.C(tY,g.M);var Dna={ADSENSE:2,"ADSENSE/ADX":2,"YT:ADSENSE":2,DART:1,DART_DFA:1,DART_DFP:1,GDFP:1,"YT:DOUBLECLICK":1,FREEWHEEL:4,"YT:SHOPPING":14,SHOPPING:14,"ADSENSE-VIRAL":15,"YT:ADSENSE-VIRAL":15,"VIRAL-RESERVE":17,"YT:VIRAL-RESERVE":17};g.h=tY.prototype;
g.h.load=function(a){if(this.ib=this.g.ib){var b=this.g.o,c=!cW(this.g).experiments.g("html5_reuse_parsed_xml");this.D=b.applyFadeOnMidrolls?new qY(this.g):new oY;var d=eW(this.g);d.o=Bna(this,a,c);d.containerElement=this.g.J.D;d.Fc.TSLA=Pma(this);d.Fc.GET_MIDROLL_POSITION_IN_SEC=(0,g.A)(this.D.jo,this.D);d.Fc.DESCRIPTION_URL="http://www.youtube.com/video/"+dW(this.g).videoId;if(a=OX(b).get(3))if(c="",a&2&&a&1?c="video":a&2?c="skippablevideo":a&1&&(c="standardvideo"),a&4&&(c&&(c+="_"),c+="text_image_flash"),
d.A=c,b=b.kb)d.J=b;this.ib.X("adsManagerLoaded",this.nC,!1,this);this.ib.X("adError",this.mC,!1,this);gC(this.ib,d,this);this.g.je("bd")}};
g.h.nC=function(a){if(a.A===this){var b={};Object.defineProperty(b,"currentTime",{get:(0,g.A)(function(){return this.g.getCurrentTime(1)},this),
enumerable:!0});Object.defineProperty(b,"duration",{get:(0,g.A)(function(){return this.g.g.ia().lengthSeconds},this),
enumerable:!0});try{var c=Cna(this);this.o=bA(a,this.g.J,b,c)}catch(d){yY(this,d);return}if(this.fd=this.o.SA(b,this.g.o.o)){this.D.Hu(this.o.Re());this.F=new mY(this.g,this.o,this.fd);g.N(this,this.F);g.xE((0,g.A)(this.F.F,this.F),0);g.eb(this.o.Re(),0)||xY(this);this.C.X(this.o,"companionBackfill",(0,g.A)(this.fT,this));this.C.X(this.o,"prefetched",(0,g.A)(this.jM,this));this.C.X(this.o,"loaded",(0,g.A)(this.dT,this));this.C.X(this.o,"adError",(0,g.A)(this.cT,this),!1);this.C.X(this.o,"start",(0,g.A)(this.eT,
this));this.C.X(this.o,"complete",(0,g.A)(this.gM,this));this.C.X(this.o,"adNotify",(0,g.A)(this.Tk,this));this.C.X(this.o,"discardAdNotify",(0,g.A)(this.Vk,this));this.C.X(this.o,"companionInitialized",(0,g.A)(this.gT,this));this.C.X(this.o,"contentPauseRequested",(0,g.A)(this.oh,this));this.C.X(this.o,"contentResumeRequested",(0,g.A)(this.Qf,this));this.C.X(this.o,"allAdsCompleted",g.y);this.K.T(this.g.g,"applicationplayerstatechange",this.hT);try{this.o.init("normal"),this.o.start()}catch(d){this.g.Ii.g(fY,
"vmap_ads_manager_init_exception",void 0),this.o.destroy(),this.o=null,yY(this,d)}}}};
g.h.hT=function(){if(g.V(g.YU(this.g.g),16)||g.V(g.YU(this.g.g),32)){var a=this.o;null!=a.Ub&&(a=a.Ub,a.o.stop(),a.A=!1)}else a=this.o,null!=a.Ub&&hz(a.Ub)};
g.h.gT=function(a){if(a=a.g)g.Ke(this.G),this.G=new SX(this.g,a)};
g.h.oh=function(a){zY(this);if((this.A=a.Ob())&&this.A.Wb()){a=AY(this.A);var b=this.A.C.o;b=0==b?1:0<b?2:-1==b?3:0;this.B=new MW(a,this.g,this.o,this.A.isSkippable(),this.A.isBumper(),!0,void 0,b);vY(this,this.B);1!=b&&GP("video_to_ad",["apbs"]);a=this.g;a.O=!0;a.B||eY(a);this.D.kC(this.A.C.o);this.B.show();uY(this,"show_instream_ads")}};
g.h.Qf=function(a){xY(this);this.g.getCurrentTime(1)<this.g.g.ia().lengthSeconds&&(WY(this.g),this.A&&this.A.Wb()&&(this.D.lC(this.A.C.o),null!=this.G&&(this.G.g=!0)));a=a.Ob();var b=dC(this.o);b&&b.O&&b.xb()?this.A=null:!a&&this.B instanceof eX||zY(this);var c=!0;if(a&&a!==this.A&&!a.Wb()){if(b&&b.O&&!b.xb()){b=this.F;null!=b.g[0]&&(c=b.g[0],delete b.g[0],b.g[0]=new g.pJ(1E4,c.end,{id:"10",visible:!0}),c.visible=!1,FV(b.o,[c,b.g[0]],1),FV(b.o,[b.g[0]]));this.A=a;return}c=Lr(a);b=AY(a);aW(c,"blockAllAds")?
(this.o.Dj(),this.B=new gX(this.g,this.o,1,!0),c=!1):aW(c,"hideMaster")&&14!=b?(this.B=new gX(this.g,this.o,0,!0),c=!1):(c=this.o,14==b?(this.B=new sX(this.g,c),5!=dC(this.o).Ue()&&wY(this,a)):this.B=new ZW(b,this.g,c,!0),this.B.show(),c=!0)}this.A&&this.A.Wb()&&MY(this.g);this.A&&this.A.Wb()?(uY(this,"set_previous_ad_end_time"),b=this.fd,0<b.A&&(b.g=(0,g.G)()/1E3),b=this.F,b.D=(0,g.G)()/1E3,b.A()):a&&a!==this.A&&!a.Wb()&&c&&(b=this.F,b.D=(0,g.G)()/1E3,b.A());this.F.F();this.A=a};
g.h.eT=function(a){(a=a.Ob())&&this.B&&(a=AY(a),this.B.adSystem=a)};
g.h.gM=function(a){a.Ob().Wb()||this.A!==a.Ob()||(zY(this),this.A=null)};
g.h.Tk=function(a){null!=a.g&&(a=a.g.adBreakTime,null!=a&&this.g.g.Y("adnotify",a))};
g.h.Vk=function(){this.g.g.Y("discardadnotify")};
g.h.jM=function(a){var b=a.Ob();if(null!=b){var c=a.g.adBreakTime;this.O[c]=b;this.M||(this.g.je("bl"),0==c&&a.Ob().Wb()||this.g.je("fb"),this.M=!0)}};
g.h.dT=function(a){null!=a.Ob()&&(a.Ob().Wb()&&this.g.je("bs"),a.Ob().C.B||a.Ob().Wb()||xY(this))};
g.h.cT=function(a){yY(this,a.getError())};
g.h.mC=function(a){var b=a.getError();"adLoadError"==b.bc()&&a.g===this&&yY(this,b)};
g.h.fT=function(a){wY(this,a&&a.Ob())};
g.h.W=function(){zY(this);this.ib&&(this.ib.za("adsManagerLoaded",this.nC,!1,this),this.ib.za("adError",this.mC,!1,this));km(this.P);km(this.C);g.FJ(this.K);this.J=!1;this.o&&(this.o.destroy(),this.o=null);g.Ke(this.D);g.Ke(this.G);tY.aa.W.call(this)};
g.h.oC=function(a,b,c,d){if(3==b||19==c||2==c)a&&(d.break_type=a.Ue(),d.sst=a.Dc,d.sidx=0),JX(this.g,c,d)};g.p(BY,g.W);BY.prototype.Tk=function(a){this.C=-1==a?this.U.ia().lengthSeconds:a;this.o||(this.o=this.T(this.U,"progresssync",this.B));this.B();this.A.show()};
BY.prototype.Vk=function(){this.o&&(this.za(this.o),this.o=null);this.A.hide()};
BY.prototype.B=function(){var a=this.U.getCurrentTime(),a=Math.ceil(this.C-a);0<a?this.dc(g.T("YTP_AD_NOTIFICATION",{X_SECONDS:a})):this.A.hide()};var CY=null,EY=null;g.v("yt.www.ads.eventcache.getLastCompanionData",function(){return CY},void 0);
g.v("yt.www.ads.eventcache.getLastPlaShelfData",function(){return EY},void 0);g.C(IY,EV);IY.A=10;IY.o=1E3;IY.g="livead";g.h=IY.prototype;
g.h.create=function(){IY.aa.create.call(this);this.K.T(this.g,"beginseeking",(0,g.A)(this.Y,this,"beginseeking"));this.K.T(this.g,"endseeking",(0,g.A)(this.Y,this,"endseeking"));this.K.T(this.g,"resize",(0,g.A)(this.Y,this,"resize"));this.K.T(this.g,"presentingplayerstatechange",(0,g.A)(this.Y,this,"presentingplayerstatechange"));this.K.T(this.g,"webglsettingschanged",(0,g.A)(this.Y,this,"webglsettingschanged"));if(HY(this)){var a=kJ(this.app.U);a.addEventListener("updatekevlarcompanion",DY);a.addEventListener("onPlaShelfInfoCardsReady",
FY);window.addEventListener("yt-navigate-start",GY)}this.je("i");a=this.g.ia().Yb||{};this.o=new qna(cW(this),a);this.D=new una(this,this.g);this.ca=!1;if(this.ib)this.ib.g.B.B=En();else{var a=this.o.P?void 0:zW(this.G),b=new PK(this.app,2);this.J=new Yz(yW(this.G),void 0,a,kJ(b),!0);this.J.setSize(-1,-1);this.ib=new fC(this.J)}if(this.o.vmap&&!this.o.fa){this.B=new tY(this);try{this.B.load(this.o.vmap)}catch(c){g.qE(c),this.Ii.g(fY,"vmap_load_exception",void 0),this.B.dispose(),this.B=null,TY(this,
RX(new QX(this)))}}else TY(this,RX(new QX(this)));this.D&&(this.P=this.app.o.g,this.P.subscribe("cuepointupdated",this.xz,this),a=NY(this),null!=a&&(a.F=g.XU(this.app)),a={},a.allowed=this.D.o,HV(this,{},a))};
g.h.destroy=function(){this.O&&UY(this);this.app.Z.experiments.g("disable_new_pause_state3")||g.oV(this.g,this.Wd,void 0);SY(this);g.Le(this.A,this.F,this.B);this.F=this.A=null;this.P.unsubscribe("cuepointupdated",this.xz,this);this.D=this.o=this.B=this.P=null;nW=kW=jW=!1;qW();this.C&&IY.aa.destroy.call(this);if(HY(this)){var a=kJ(this.app.U);a.removeEventListener("updatekevlarcompanion",DY);a.removeEventListener("onPlaShelfInfoCardsReady",FY);window.removeEventListener("yt-navigate-start",GY);CY=
null}};
g.h.isFullscreen=function(){return this.g.isFullscreen()||this.o.G};
g.h.Ct=function(){if(this.D){var a=this.D;var b={allowed:a.o};a.g.excludedAds&&(b.ex_ad=a.g.excludedAds);a.A&&(b.at=a.A);a=b}else a=IY.aa.Ct.call(this);return a};
g.h.getRootNode=function(){return this.g.getRootNode()};
g.h.getCurrentTime=function(a){return this.app.getCurrentTime(a)};
g.h.Bt=function(){return this.V};
g.h.Tr=function(a){IY.aa.Tr.call(this,a);var b=(0,window.parseInt)(a.getId(),10);if(this.A&&!(0,window.isNaN)(b))if("ytp-ad-fadeout"==a.style){var c=this.A,d=c.Oi(b);if(d&&!$X(c.C,d)&&(c=c.B,d.o)){var e=PW(c.g),d=Math.max(0,GX(d)+c.B+c.A-1E3*c.g.getCurrentTime(1));PL(e,"transition","opacity "+String(d)+"ms linear");PL(e,"opacity","0");VX(c,e,d,0)}}else gY(this.A,b);this.B&&!(0,window.isNaN)(b)&&("ytp-ad-fadeout"==a.style?(d=this.B,(c=d.O[b])&&c.Wb()&&d.D.jC(b)):0>b&&(b=this.ib.g,d=new xm("contentComplete"),
b.dispatchEvent(d),d.A&&(Hm(Fm(),420706009)||b.B.clear(),null!=b.o&&(d=b.o.Ph(),null!=d&&pA(d,b.B.g)))));if("livead"===a.getId()&&null!=NY(this)){b=NY(this);for(a=Math.floor(a.start/1E3);g.t(b.A[a]);)a++;d=b.ha++;c=0==a?new VV(1):new VV(2,a);d=new EX(b.ba,d,c,PX(b.ba.o,c.g),!1);b.A[a]=d;d.subscribe("adBreakComplete",b.fa,b);MX(d)}};
g.h.Ur=function(a){IY.aa.Ur.call(this,a);var b=(0,window.parseInt)(a.getId(),10),c=1E3*this.getCurrentTime(1);this.A&&!(0,window.isNaN)(b)&&c>a.start&&(0x8000000000000==a.end||0x7ffffffffffff==a.end)&&(c=this.A,(b=c.A[b])&&c.g==b&&!b.o&&b.isVisible&&b.G&&b.g instanceof ZW&&b.g.Bc("fullscreen"));this.B&&"ytp-ad-fadeout"==a.style&&this.B.D.vl();"livead"===a.getId()&&null!=NY(this)&&1E3*this.getCurrentTime(1)>=a.start&&(g.nV(this.g,[a],1),kY(NY(this)))};
g.h.je=function(a){var b=a;"nl"==a&&(a=this.D,a.C++,b=a.C.toString());this.fa[b]=(0,g.G)();"bs"!=b&&"fb"!=b||HV(this,this.fa,this.da)};
g.h.xz=function(a){var b=NY(this);if(null!=b&&null!=b.F){var c=NY(this).F.getCurrentTime();(0,g.H)(a,function(a){0!=c&&a.Pd>c&&(a=new g.pJ(1E3*Math.floor(c+Math.random()*Math.max(a.Pd-10-c,0)),1E3*a.Pd,{id:"livead",priority:2}),FV(this,[a],1))},this)}};
g.h.YB=function(a){switch(a){case "addata":var b=this.o;return{adTag:b.adTag,adTest:b.tc,forceAdType:b.forceAdType,isAfvSkippableInstreamEnabled:b.V,isAfvStandardInstreamEnabled:b.ba,isBlazer:b.D,isDoubleClickEnabled:b.da,isForcedAd:b.fa,isFreeWheelEnabled:b.ga,isHouseBrandPlayer:b.zc,isLeanback:b.G,isShortform:b.Vb,tagForChildDirected:b.tagForChildDirected};case "adstate":return this.Bt();case "midrollfreqcap":if(this.B)return b=this.o.o,null!=b?b:0;b=this.A instanceof hY?this.A:null;return null!=
b?b.V:0;case "breakscount":return this.B?(b=this.B,b=null!=b.o?b.o.Re().length:0):b=this.A?this.A.Db.length:0,b;case "displaystate":return b=null,this.A&&this.A.g&&(b=this.A.g.g),{adFormat:b instanceof vW?b.adType:!1,adSkipped:b instanceof MW?b.D:!1,hasVideoStarted:b instanceof MW?b.G:!1,skippable:b instanceof MW?b.fa:!1};case "getContentVideoData":return b=dW(this),{adModule:b.adModule,partnerTrackingToken:b.Yk,title:b.title,videoId:b.videoId};case "loadedadbreaks":if(this.A){a=this.A.A;var c=[];
for(b in a)a.hasOwnProperty(b)&&c.push({isInterruptive:a[Number(b)].o});return c}return 0}};
g.h.RS=function(){return"addata adstate breakscount displaystate getContentVideoData loadedadbreaks midrollfreqcap".split(" ")};
g.h.Ad=function(){return!1};g.C(bZ,g.M);g.h=bZ.prototype;g.h.Ev=function(){if(!this.g){var a=this.Ev;if("lb3"==g.X(this.U).o)var b=!1;else b=this.U.ia(),b=b.Vl||b.captionTracks.length||b.Ca&&b.va&&null!=b.va.g.en?!0:!1;(a=eZ(this,"captions",a,b))&&!this.g&&(this.g=a,this.U.ya("onApiChange"))}};
g.h.Av=function(){this.J=this.J||eZ(this,"endscreen",this.Av,g.cZ(this))};
g.h.Gv=function(){var a;if(!(a=this.B)){a=this.Gv;var b=g.X(this.U).experiments;var c=SE(),d=c&&b.g("enable_spherical_ps4"),c=c&&b.g("enable_mesh_ps4"),e=b.g("enable_mesh_cobalt"),f=b.g("enable_spherical_kabuki"),k=this.U.ia(),l=$O(g.X(this.U));b=k.uk()?c||e:k.eh()?l||d||!1||f||b.g("html5_enable_spherical"):k.tg()?l||d||!1||b.g("html5_enable_spherical3d"):k.Zh()?l||b.g("html5_enable_anaglyph3d"):l&&(b.g("enable_webgl_noop")||b.g("enable_white_noise"));a=eZ(this,"webgl",a,b)}this.B=a};
g.h.Iv=function(){this.M=this.M||eZ(this,"ypc",this.Iv,g.NQ(this.U.ia(),"ypc_module"))};
g.h.Hv=function(){this.V=this.V||eZ(this,"ypc_clickwrap",this.Hv,g.NQ(this.U.ia(),"ypc_clickwrap_module"))};
g.h.Dv=function(){this.P=this.P||eZ(this,"spacecast",this.Dv,this.U.ia().spacecastModule)};
g.h.Cv=function(){this.O=this.O||eZ(this,"heartbeat",this.Cv,g.NQ(this.U.ia(),"ypc_license_checker_module"))};
g.h.yv=function(){if(!this.A){var a=this.yv;var b=g.X(this.U);if("3"==b.C)b=!1;else if(b.G.isEmpty()&&"annotation-editor"!=b.o&&"live-dashboard"!=b.o){var c=this.U.ia();b=b.experiments.g("disable_new_iv_module_create_logic")?g.NQ(c,"iv3_module"):!!c.wf}else b=!0;if(this.A=eZ(this,"annotations_module",a,b)){var a=this.A,d;for(d in this.fa)a.subscribe(d,this.fa[d]);this.U.ya("onApiChange")}}};
g.h.Bv=function(){this.F=this.F||eZ(this,"fresca",this.Bv,g.NQ(this.U.ia(),"fresca_module"))};
g.h.Gp=function(){this.K||(this.K=eZ(this,"remote",this.Gp,g.X(this.U).tb))&&this.K.create()};
g.h.Fv=function(){this.C||(this.C=eZ(this,"unplugged",this.Fv,g.X(this.U).sa))&&this.C.init()};
g.h.zv=function(){if(!this.G){var a=this.zv;var b=g.X(this.U);"3"==b.C?b=!1:"creator-endscreen-editor"==b.o?b=!0:(b=this.U.ia(),b=!!b&&!!g.RQ(b));(this.G=eZ(this,"creatorendscreen",a,b))&&this.U.ya("onApiChange")}};
g.h.W=function(){bZ.aa.W.call(this);fZ(this,!0)};g.C(gZ,g.W);gZ.B="(max-width: 656px)";gZ.A="(min-width: 657px)";gZ.o="(min-width: 1294px) and (min-height: 630px)";gZ.g="(min-width: 1720px) and (min-height: 980px)";g.h=gZ.prototype;g.h.tH=function(){this.D=new g.Ng(0,0,0,0);this.B=new g.Ng(0,0,0,0)};
g.h.Ht=function(a){g.Jp(this.element,arguments)};
g.h.fg=function(){if(this.o){var a=this.Ya();if(!a.isEmpty()){var b=!g.Qd(a,g.Sg(this.B)),c=hZ(this);b&&(this.B.width=a.width,this.B.height=a.height);a=this.app.Z;(c||b||a.ka)&&this.app.g.Y("resize",this.Ya())}}};
g.h.mT=function(a,b){iZ(this,b)};
g.h.nT=function(a){a.g&&iZ(this,a.g)};
g.h.Ya=function(){var a=this.app.Z,b=g.wF()==this.element;if(b&&OE())return new g.Pd(window.outerWidth,window.outerHeight);if(b||a.Ai){if(window.matchMedia){a="(width: "+window.innerWidth+"px) and (height: "+window.innerHeight+"px)";this.C&&this.C.media==a||(this.C=window.matchMedia(a));var c=this.C&&this.C.matches}if(c)return new g.Pd(window.innerWidth,window.innerHeight)}else if(this.P&&!this.app.oa)for(a=0;a<this.P.length;a++)if(b=this.P[a],b.query.matches)return new g.Pd(b.size.width,b.size.height);
return new g.Pd(this.element.clientWidth,this.element.clientHeight)};
g.h.OG=function(){this.o&&NW(this);(this.app.Z.experiments.g("player_state_change_resize_killswitch")||oZ(this)!=this.K)&&this.fg()};
g.h.oT=function(){NW(this)};
g.h.W=function(){this.A&&(this.A.disconnect(),this.A=null);this.G&&g.eG(this.G);this.o=null;gZ.aa.W.call(this)};g.C(pZ,g.RF);g.h=pZ.prototype;g.h.jT=function(a){a=HF(a);if(!Nd(a,this.C)){var b=2;this.F&&(b|=8);this.C=a;this.qc(b,!0)}};
g.h.VL=function(){this.F&&this.qc(8,!0);this.qc(2,!1)};
g.h.Gt=function(a){var b=HF(a);Nd(b,this.C)||(this.C=b,(a=g.FF(a))&&this.V(a)&&(this.qc(4,!0),this.g.za(this.B),this.B=this.g.T(this.A,"mouseover",this.vC),this.M=this.g.T(this.A,"mouseout",this.vC)))};
g.h.vC=function(a){a=IF(a);a&&this.V(a)||(this.C=new g.Md(window.NaN,window.NaN),qZ(this))};
g.h.zI=function(){this.qc(1,!0)};
g.h.dG=function(a){a=g.FF(a);a instanceof window.Element&&!(0<a.tabIndex)||this.qc(1,!0)};
g.h.uC=function(){this.F=!0;this.g.za(this.D);this.D=this.g.T(window.document,"mouseup",this.kT)};
g.h.kT=function(){this.F=!1;this.qc(8,!1);this.g.za(this.D);this.D=this.g.T(this.A,"mousedown",this.uC)};
g.h.wC=function(a){if(a=a.changedTouches[0])this.ca=a.identifier,this.g.za(this.G),this.G=this.g.T(this.A,"touchend",this.lT,void 0,!0),this.qc(1024,!0)};
g.h.lT=function(a){for(var b,c=0;c<a.changedTouches.length;c++){var d=a.changedTouches[c];if(d.identifier==this.ca){b=d;break}}b&&(this.g.za(this.G),this.G=this.g.T(this.A,"touchstart",this.wC,void 0,!0),this.qc(1024,!1))};
g.h.qc=function(a,b){var c=!this.o;b?(this.o|=a,a&1&&this.J.start(),a&2&&this.K.start()):(this.o&=~a,a&1&&this.J.stop(),a&2&&this.K.stop(),a&512&&this.O.stop());this.o&512&&!(this.o&128)&&this.O.ae(this.P);var d=!this.o;c!=d&&this.Y("autohideupdate",d)};g.C(sZ,g.W);sZ.prototype.show=function(){sZ.aa.show.call(this);this.M()};
sZ.prototype.M=function(){var a=1-1/1.5;this.B=(this.B+this.J)%(this.width*a);this.C=(this.C+this.G)%(this.height*a);this.A.drawImage(this.K,-1*this.B,-1*this.C);this.A.fillRect(0,this.D,this.width,75);this.D=(this.D+75+7)%this.height-75;this.o.isActive()||this.F.ae()};
sZ.prototype.hide=function(){this.o.stop();this.F.stop();sZ.aa.hide.call(this)};g.C(vZ,g.W);var Zpa=/<a\s+href=["']([^"']+)["'](?:\s+target=["']([^"']+)["'])?>([^<>]+)<\/a>/;vZ.prototype.show=function(){vZ.aa.show.call(this);wZ(this,function(a){a.show()})};
vZ.prototype.hide=function(){vZ.aa.hide.call(this);wZ(this,function(a){a.hide()})};
vZ.prototype.C=function(a){if(g.RV(a,this.o,!VO(g.X(this.o)))){a={as3:!1,html5:!0,player:!0,cpn:this.o.ia().clientPlaybackNonce};var b=this.o;b.ya("onFeedbackArticleRequest",{articleId:3037019,helpContext:"player_error",productData:a});b.isFullscreen()&&g.aV(b)}};g.qa(zZ);var b2=g.x("yt.player.utils.VideoTagPool.instance")||zZ.getInstance();g.v("yt.player.utils.VideoTagPool.instance",b2,void 0);g.h=zZ.prototype;g.h.Vv=function(a){if(!(this.g.length>=a)){a-=this.g.length;for(var b=0;b<a;b++)CZ(this)}};
g.h.qG=function(a,b){if(this.g.length)return this.g.pop();var c=CZ(this,a,b);a||g.kb(this.g,c);return c};
g.h.WQ=function(a){if(a&&g.eb(this.o,a)){a.src&&(WN&&0<a.readyState&&(a.currentTime=Math.max(Qpa,0)),a.removeAttribute("src"),a.load(),a.g&&a.g.o&&(a.g&&a.g.dispose(),a.g=null));for(var b in BF)BF[b][0]==a&&g.EF(b);g.kb(this.o,a);g.kb(this.A,a)}};
g.h.uH=function(a){return this.g.length>=(a||1)};
g.h.nF=function(){for(var a=this.A.length-1;0<=a;a--)BZ(this,this.A[a]);this.g.length==this.o.length&&4<=this.g.length||(4>this.o.length?this.Vv(4):(this.g=[],(0,g.H)(this.o,function(a){BZ(this,a)},this)))};
zZ.prototype.fillPool=zZ.prototype.Vv;zZ.prototype.getTag=zZ.prototype.qG;zZ.prototype.releaseTag=zZ.prototype.WQ;zZ.prototype.hasTags=zZ.prototype.uH;zZ.prototype.activateTags=zZ.prototype.nF;g.C(DZ,g.W);g.C(FZ,g.W);FZ.prototype.show=function(){FZ.aa.show.call(this);this.G()};
FZ.prototype.hide=function(){FZ.aa.hide.call(this);this.F.stop()};
FZ.prototype.G=function(){var a=g.XU(this.o),b=g2(this.o),c=this.o.g.app.D.pa(),d=this.o.Z,e=a.bq(),f=PT(a.ca,"bandwidth"),k=8*g.Ya(f)/1024,l=PT(a.ca,"networkactivity"),m=g.Ya(l)/1024,n=b.Ca;var q=this.o;q=(q=q.o&&q.o.K)?q.C.fb():[0];var r=g.Ya(q),w=PT(a.ca,"bufferhealth"),z=g.Ya(w),r=120<r||0>r?"Uncertain":r.toFixed(1)+" s, "+(b.isLowLatencyLiveStream?"Optimized for Low Latency":"Optimized for Smooth Streaming");if(a.F){var B=a.F.g;B=B.g+" / "+B.o;VI(GT,qU(a))&&(B+=", SD only")}else B="";var D=g.WO(),
L=KQ(b,a.getCurrentTime()),L=L?L.sequence:window.NaN,Y=b.videoId,Sa=b.clientPlaybackNonce,bb=b.clientPlaybackNonce?"":"display:none",e=e.totalVideoFrames?""+(e.droppedVideoFrames||0)+"/"+e.totalVideoFrames:"-",ia=a.B?a.B.sa:"",$b;a:{if(b.yh&&($b=b.yh.match(/url=(https?)/))&&2==$b.length){$b=$b[1];break a}$b=""}c={video_id:Y,cpn:Sa,cpn_style:bb,mime:"",dash:"no",dropped_frames:e,stream_host:ia,stream_type:$b||d.ha,dimensions:c.clientWidth+" x "+c.clientHeight+(1<D?" * "+D:""),resolution:c.videoWidth+
" x "+c.videoHeight,volume:Math.round(this.o.J.getVolume())+"%",bandwidth_kbps:k.toFixed(0)+" Kbps",buffer_health_seconds:z.toFixed(1)+" s",live_latency_style:n?"":"display:none",live_latency_message:r,drm_style:B?"":"display:none",drm:B,sequence_number:L,sequence_number_style:"display:none",network_activity_bytes:m.toFixed(0)+" KB"};b.Ma&&(d=NI(b.Ma)?"yes":"no",d+=" ("+II(b.Ma),b.qd&&NI(b.Ma)&&(d+="/"+II(b.qd)),c.dash=d+")",c.mime=b.Ma.mimeType,d=b.Ma.video.fps,1<d&&(c.resolution+="@"+d),b.Ma.video.g||
b.Ma.video.primaries?(d=b.Ma.video.g||"unknown","smpte2084"==d?d+=" (PQ)":"arib-std-b67"==d&&(d+=" (HLG)"),c.color=d+" / "+(b.Ma.video.primaries||"unknown"),c.color_style=""):c.color_style="display:none");(a=nU(a))&&a.video&&(c.optimal_resolution=a.video.width+" x "+a.video.height,1<a.video.fps&&(c.optimal_resolution+="@"+a.video.fps));EZ(this.A,f);EZ(this.D,l);EZ(this.C,q);EZ(this.B,w);this.update(c);this.F.start()};g.C(GZ,g.M);GZ.prototype.get=function(a){var b=g.$a(this.o,function(b){return b[0]==a});
return b?b[1]:null};
GZ.prototype.set=function(a,b){this.remove(a,!0);for(this.o.push([a,b]);this.o.length>this.A;){var c=this.o.shift();this.g&&this.g(c[1])}};
GZ.prototype.remove=function(a,b){if(b&&this.g){var c=this.get(a);if(c)this.g(c);else return}lb(this.o,function(b){return b[0]==a})};
GZ.prototype.W=function(){this.g&&(0,g.H)(this.o,function(a){this.g(a[1])},this)};g.C(IZ,g.M);IZ.prototype.A=function(a){this.o=a[a.length-1].intersectionRatio};
IZ.prototype.W=function(){IZ.aa.W.call(this);this.o=null;this.g&&this.g.disconnect()};g.c4=vf(function(){var a=pa.AudioContext||pa.webkitAudioContext;try{return new a}catch(b){return b.name}});g.p(JZ,g.W);JZ.prototype.show=function(){g.W.prototype.show.call(this);this.o.ae()};
JZ.prototype.hide=function(){this.A.stop();g.W.prototype.hide.call(this)};g.p(g.PZ,g.W);g.p(QZ,g.PZ);g.h=QZ.prototype;g.h.show=function(){this.g||(this.C.T(this.o,"videodatachange",this.B.ae,this.B),this.C.T(this.o,"videoplayerreset",this.B.ae,this.B));g.PZ.prototype.show.call(this)};
g.h.hide=function(){this.C&&g.FJ(this.C);g.PZ.prototype.hide.call(this)};
g.h.YK=function(a){var b=g.X(this.o);b.experiments.g("disable_new_pause_state3")&&VO(b)&&(a=eK(a.state)&&!eK(a.g)||$U(this.o)&&g.V(a.state,2),g.bh(this.element,"transition-delay",a?"2s":""));this.B.ae()};
g.h.vQ=function(){this.B.ae()};
g.h.XK=function(){this.element.style.backgroundImage=""};
g.h.Cy=function(){var a=g.YU(this.o);3==this.o.Wa()&&(a.xb()||g.V(a,4))?this.A.show():g.RU(this.o).M&&g.RU(this.o).M.xR()?this.A.show():SZ(this.A,this.o,a);this.g&&3!=this.A.g&&this.TR(this.o.Nf(),this.o.ia())};
g.h.TR=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c-0]=arguments[c];for(var c=g.X(this.o),d,b=g.ka(b),e=b.next();!e.done;e=b.next())if(e=e.value,!(!e||e instanceof g.sQ&&!e.videoId)){d=g.ZU(this.o).Ya();var f=g.WO(),k=d.width*f,f=d.height*f;if(1280<k||720<f)if(d=e.ac(c,"maxresdefault.jpg"))break;if(c.experiments.g("enable_popular_thumbnail_size_serving_for_embeds")){if(854<k||480<f)if(d=e.ac(c,"hq720.jpg")||e.ac(c,"maxresdefault.jpg"))break;if(640<k||360<f)if(d=e.ac(c,"pop2.jpg"))break;
if(560<k||315<f)if(d=e.ac(c,"sddefault.jpg"))break;if(480<k||270<f)if(d=e.ac(c,"pop1.jpg"))break}if(640<k||480<f)if(d=e.ac(c,"maxresdefault.jpg"))break;if(c.experiments.g("enable_embed_quality_improvement")){if(480<k||360<f)if(d=e.ac(c,"sddefault.jpg"))break;if(320<k||180<f)if(d=e.ac(c,"hqdefault.jpg"))break;if(120<k||90<f)if(d=e.ac(c,"mqdefault.jpg"))break}if(320<k||180<f)if(d=e.ac(c,"sddefault.jpg")||e.ac(c,"hqdefault.jpg")||e.ac(c,"mqdefault.jpg"))break;if(d=e.ac(c,"default.jpg"))break}this.D.style.backgroundImage=
d?"url("+d+")":""};g.p(UZ,g.W);UZ.prototype.C=function(a){var b=g.X(this.o);b.experiments.g("disable_new_pause_state3")&&VO(b)&&g.bh(this.element,"transition-delay",eK(a.state)&&!eK(a.g)?"2s":"");TZ(this,a.state)};g.p(WZ,g.DJ);WZ.prototype.C=function(){this.B();var a=g.X(this.U),b=this.U.ia(),c=[];a.J||(c.push({src:b.ac(a,"mqdefault.jpg"),sizes:"320x180"}),(a=b.ac(a,"sddefault.jpg"))&&c.push({src:a,sizes:"640x480"}));this.g.metadata=new window.MediaMetadata({title:b.title,artist:b.author,artwork:c});b=$U(this.U);this.o.has("nexttrack")!=b&&(a=c=null,b&&(c=(0,g.A)(function(){KZ(this.A,cE(),g.T("YTP_NEXT"));this.U.oj()},this),a=(0,g.A)(function(){OZ(this.A);
this.U.Jk()},this)),VZ(this,"nexttrack",c),VZ(this,"previoustrack",a))};
WZ.prototype.B=function(){var a=g.YU(this.U);a=a.isError()?"none":dK(a)?"playing":"paused";this.g.playbackState=a};
WZ.prototype.W=function(){this.g.playbackState="none";this.g.metadata=null;for(var a=g.ka(this.o),b=a.next();!b.done;b=a.next())VZ(this,b.value,null);g.DJ.prototype.W.call(this)};g.p(XZ,g.W);XZ.prototype.O=function(a,b){YZ(this,b);this.D&&ZZ(this,this.D)};
XZ.prototype.M=function(a){var b=this.U.ia();this.A!=b.videoId&&YZ(this,b);this.o&&ZZ(this,a.state);this.D=a.state};
XZ.prototype.K=function(){this.C.hide();this.A&&(this.B[this.A]=(this.B[this.A]||0)+((0,g.G)()-this.G));this.G=0};g.p(a_,g.W);a_.prototype.hide=function(){this.o.stop();this.B.style.display="none";g.W.prototype.hide.call(this)};
a_.prototype.C=function(a){$Z(this,a.state)};
a_.prototype.D=function(){$Z(this,g.YU(this.A))};
a_.prototype.F=function(){this.B.style.display="block"};g.p(b_,g.IV);g.h=b_.prototype;g.h.show=function(){var a=d_(this);g.IV.prototype.show.call(this);this.da&&(this.J.T(window,"blur",this.Qb),this.J.T(window.document,"click",this.sL));a||this.Y("show",!0)};
g.h.hide=function(){var a=d_(this);g.IV.prototype.hide.call(this);c_(this);a&&this.Y("show",!1)};
g.h.Je=function(a,b){this.C=a;this.M.show();b?(this.K||(this.K=this.J.T(this.U,"appresize",this.Lu)),this.Lu()):this.K&&(this.J.za(this.K),this.K=null);a&&(a.getAttribute("aria-haspopup"),a.setAttribute("aria-expanded",!0),window.document.activeElement&&g.we(a,window.document.activeElement)&&this.focus())};
g.h.Lu=function(){N1(g.RU(this.U).D,this.element,this.C)};
g.h.Qb=function(){var a=d_(this);c_(this);this.M.hide();a&&this.Y("show",!1)};
g.h.wh=function(a,b){d_(this)?this.Qb():this.Je(a,b)};
g.h.sL=function(a){var b=JF(a);b&&(g.we(this.element,b)||this.C&&g.we(this.C,b)||!g.KV(a))||this.Qb()};g.p(e_,b_);e_.prototype.B=function(a){a?(this.A||(this.A=!0,g.fV(this.o,"mutedAutoplayImpression",{})),this.Je()):this.Qb()};
e_.prototype.onClick=function(){g.fV(this.o,"mutedAutoplayClick",{videoPlayedSeconds:this.o.getCurrentTime()-this.o.ia().kx});this.o.ug()};g.p(f_,g.DJ);g.h=f_.prototype;g.h.init=function(){var a=g.YU(this.g);this.Zn(a);this.wi();this.Ab()};
g.h.yy=function(a,b){if(this.ua!=b.videoId){this.ua=b.videoId;var c=this.B;c.P=b&&0<b.Eh.length?5E3:3E3;c.qc(512,!0);this.wi()}};
g.h.QO=function(){this.yy(0,this.g.ia())};
g.h.Ij=function(){var a=g.hV(this.g)&&g.iV(this.g);(a=this.sa||a)||(a=g.RU(this.g).F,a=!!a&&a.kK());return a||this.kb||this.g.app.Z.Gb};
g.h.Dg=function(){var a=!this.Ij();g.S(this.g.getRootNode(),"ytp-menu-shown",!a);var b=this.ba,a=!a;(b.B=a)?b.hide():SZ(b.A,b.o,g.YU(b.o))};
g.h.QK=function(a){if(!g.we(this.g.getRootNode(),a))return!1;for(;a&&!g.Ce(a);)a=a==this.g.getRootNode()?null:g.ve(a);return!!a};
g.h.Pr=function(a){var b=this.g.getRootNode();g.S(b,"ytp-autohide",a);a&&(this.M=!1,g.Kp(b,"ytp-touch-mode"));b=this.g;a=!a;b.ya("onVideoAreaChange");b.ya(a?"onShowControls":"onHideControls")};
g.h.rP=function(a){if(eK(g.YU(this.g))&&!g.X(this.g).Vb){var b=this.g.ia();b.videoId&&this.g.fy(QQ(b))}this.B.o||g_(this,JF(a))||d_(this.ca)||(g.YU(this.g),g.MF(a));this.M=!0;g.R(this.g.getRootNode(),"ytp-touch-mode");this.B.qc(2,!0)};
g.h.nP=function(a){g.KV(a)&&d_(this.ca)?(this.ca.onClick(),2==this.g.Wa()&&this.g.ad()):g_(this,JF(a))||(this.B.qc(2,!0),g.KV(a)&&(this.sm()?g.MF(a):(a=g.YU(this.g),g.V(a,2)&&TU(this.g)||LZ(this.F,!dK(a)),g.X(this.g).ra&&!eK(a)?this.ha.isActive()?(this.F.hide(),this.ha.stop()):this.ha.start():this.zy())))};
g.h.zy=function(){var a=g.YU(this.g);g.V(a,2)&&TU(this.g)||(dK(a)?this.g.ld():(this.g.ad(),window.document.activeElement==this.ba.element&&this.g.getRootNode().focus()))};
g.h.oP=function(a){g_(this,JF(a))||3!=this.g.Wa()&&g.aV(this.g)};
g.h.pP=function(a){h_(this,.3,a.scale);g.MF(a)};
g.h.qP=function(a){h_(this,.1,a.scale)};
g.h.Ab=function(){var a=this.ce(),b=g.ZU(this.g).Ya(),c=this.g.isFullscreen(),d=this.g.getRootNode();g.X(this.g).experiments.g("autohide_resize_killswitch")||g.UE&&qZ(this.B);g.S(d,"ytp-fullscreen",c);g.S(d,"ytp-small-mode",!a&&(480>b.width||270>b.height));g.S(d,"ytp-big-mode",a);this.D&&uZ(this.D,b)};
g.h.UO=function(a){this.Zn(a.state);this.wi()};
g.h.wi=function(){var a=2==this.g.Wa(),b=!0;if(a){var b=g.RU(this.g).o,c;if(c=g2(b.app).isListed)b=b.o,c=null!=b.g&&null!=J(b.g,1)&&null!=J(Tc(b.g),4)&&J(Mc(Tc(b.g),$c,4),1)?!1:!0;b=c}c=g.X(this.g);var d=c.experiments.g("embed_show_infobar_on_playback")&&c.A&&!c.F&&5==this.g.app.O,a=!!this.ua&&!g.SU(this.g)&&(a?b:c.tc||this.g.isFullscreen()||d);this.O!=a&&(this.O=a,g.S(this.g.getRootNode(),"ytp-hide-info-bar",!a))};
g.h.Zn=function(a){var b=eK(a);b!=this.zb&&(this.zb=b,this.Ta&&this.za(this.Ta),this.Ta=this.T(g.ZU(this.g),"touchstart",this.rP,void 0,b));var c;(c=a.xb()&&!g.V(a,32))||(c=g.RU(this.g).O,c=!!c&&c.mK());this.B.qc(128,!c);c=3==this.g.Wa();this.B.qc(256,c);c=this.g.getRootNode();if(g.V(a,2))var d=["ended-mode"];else d=[],g.V(a,8)?d.push("playing-mode"):g.V(a,4)&&d.push("paused-mode"),g.V(a,1)&&!g.V(a,32)&&d.push("buffering-mode"),g.V(a,32)&&d.push("seeking-mode"),g.V(a,64)&&d.push("unstarted-mode");
g.Ab(this.ra,d)||(g.Lp(c,this.ra),this.ra=d,g.Jp(c,d));d=g.X(this.g);var e=g.V(a,2);g.S(c,"ytp-hide-controls",("3"==d.C?!e:"1"!=d.C)||b);g.S(c,"ytp-native-controls","3"==d.C&&!b&&!e);if(g.V(a,128)){this.D||(this.D=new vZ(this.g),g.N(this,this.D),this.D.Ja(c),g.sV(this.g,this.D.element,5));b=this.D;a=a.g;for(c=0;c<b.B.length;c++)b.za(b.B[c]);b.B=[];c=a.messageKey;d=g.X(b.o);if("YTP_ERROR_GENERIC_WITHOUT_LINK"!=c||d.zc)if("YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK_FLASH"==c||"YTP_HTML5_PROTECTED_FLASH_FALLBACK"==
c)b.dc(xZ(b,c,"https://get.adobe.com/flashplayer/",!1,!0));else if("YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK"!=c||d.zc){a=a.message.split(Zpa);c=[];for(d=0;d<a.length;d+=3){e=a[d++].split("\n");c.push(e[0]);for(var f=1;f<e.length;f++)c.push({H:"br"}),c.push(e[f]);d<a.length&&c.push({H:"a",R:{href:a[d],target:a[d+1]},L:[a[d+2]]})}b.dc({H:"span",L:c})}else b.dc(xZ(b,"YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK","//"+RO(d)+"/html5"));else if(b.dc(xZ(b,"YTP_ERROR_GENERIC_WITH_LINK_AND_CPN","//support.google.com/youtube/?p=player_error1",
!0)),d.ka&&!d.A)for(a=(0,g.A)(b.C,b),d=b.element.getElementsByTagName("a"),e=0;e<d.length;e++)c=b.T(d[e],"click",a),b.B.push(c);this.D.show()}else this.D&&(this.D.dispose(),this.D=null)};
g.h.sm=function(){return g.hV(this.g)&&g.iV(this.g)?(this.g.Lk(!1,!1),!0):g.SU(this.g)?(g.UU(this.g,!0),!0):!1};
g.h.RK=function(a){this.kb=a;this.Dg()};
g.h.ce=function(){return!1};g.C(i_,g.IV);i_.prototype.B=function(){var a=this.A.kh(),a=IW(new GW(a.seekableStart,a.seekableEnd),a.current,0);this.D.style.width=100*a+"%"};
i_.prototype.C=function(){g.IO(g.X(this.A))||(2==this.A.Wa()?this.o||(this.show(),this.o=this.T(this.A,"progresssync",this.B),this.B()):this.o&&(this.hide(),this.za(this.o),this.o=null))};g.p(l_,g.W);l_.prototype.W=function(){this.o&&this.o();g.W.prototype.W.call(this)};
l_.prototype.D=function(){g.fG("iv-button-mouseover")};
l_.prototype.C=function(a){g.hV(this.U);var b=g.Ip(this.U.getRootNode(),"ytp-cards-teaser-shown");g.fG("iv-teaser-clicked",b);a=0==a.screenX&&0==a.screenY;this.U.Lk(!g.iV(this.U),a,"YOUTUBE_DRAWER_MANUAL_OPEN")};
g.p(k_,g.W);g.h=k_.prototype;g.h.pB=function(){g.hV(this.U)&&g.iV(this.U)&&this.g&&3!=this.C.g&&this.Pk()};
g.h.TK=function(){this.Pk();g.fG("iv-teaser-clicked",!!this.o);this.U.Lk(!0,!1,"YOUTUBE_DRAWER_MANUAL_OPEN")};
g.h.SK=function(){g.fG("iv-teaser-mouseover");this.o&&this.o.stop()};
g.h.JP=function(a){this.o||!a||g.iV(this.U)||this.A&&this.A.isActive()||(Kna(this,a),g.fG("iv-teaser-shown"))};
g.h.Ay=function(){this.G.stop();this.o&&this.o.isActive()&&this.J.start()};
g.h.ph=function(){this.J.stop();this.o&&!this.o.isActive()&&this.G.start()};
g.h.vO=function(){this.o&&this.o.stop()};
g.h.tO=function(){this.Pk()};
g.h.Pk=function(){!this.o||this.B&&this.B.isActive()||(this.C.hide(),g.Kp(this.U.getRootNode(),"ytp-cards-teaser-shown"),this.B=new g.rt(function(){for(var a=g.ka(this.D),b=a.next();!b.done;b=a.next())this.za(b.value);this.D=[];this.o&&(this.o.dispose(),this.o=null);j_(this.F,!0)},330,this),this.B.start())};
g.h.W=function(){var a=this.U.getRootNode();a&&g.Kp(a,"ytp-cards-teaser-shown");g.Le(this.A,this.B,this.o);g.W.prototype.W.call(this)};g.p(g.o_,g.IV);g.o_.prototype.Da=function(a,b){g.IV.prototype.Da.call(this,a,b);this.Y("size-change")};g.p(q_,g.IV);q_.prototype.ga=function(){this.Y("size-change")};
q_.prototype.focus=function(){this.P.focus()};
q_.prototype.ha=function(){this.Y("back")};g.p(g.r_,q_);g.r_.prototype.V=function(){this.D.Y("size-change")};
g.r_.prototype.focus=function(){for(var a=0,b=0;b<this.Ka.length;b++)if("true"==this.Ka[b].element.getAttribute("aria-checked")){a=b;break}this.Ka[a].focus()};g.p(g.v_,b_);g.h=g.v_.prototype;g.h.show=function(){b_.prototype.show.call(this);this.oo()};
g.h.hide=function(){b_.prototype.hide.call(this);1<this.o.length&&g.z_(this)};
g.h.oo=function(){A_(this);this.g&&(w_(this),g.th(this.element,this.size))};
g.h.Le=function(){var a=this.o.pop();x_(this,a,this.o[this.o.length-1],!0)};
g.h.zR=function(a,b,c){this.F.dispose();this.F=null;g.R(this.element,"ytp-popup-animating");c?(g.R(a.element,"ytp-panel-animate-forward"),g.Kp(b.element,"ytp-panel-animate-back")):(g.R(a.element,"ytp-panel-animate-back"),g.Kp(b.element,"ytp-panel-animate-forward"));g.th(this.element,this.size);this.D=new g.rt(g.ya(this.qM,a,b),250,this);this.D.start()};
g.h.qM=function(a){g.Kp(this.element,"ytp-popup-animating");a.detach();g.Lp(a.element,["ytp-panel-animate-back","ytp-panel-animate-forward"]);this.D.dispose();this.D=null};
g.h.kL=function(a){if(!g.KF(a))switch(g.GF(a)){case 27:this.Qb();g.MF(a);break;case 37:1<this.o.length&&this.Le();g.MF(a);break;case 39:g.MF(a)}};
g.h.focus=function(){this.o[this.o.length-1].focus()};
g.h.W=function(){b_.prototype.W.call(this);this.F&&this.F.dispose();this.D&&this.D.dispose()};g.p(B_,g.o_);B_.prototype.o=function(a){g.KF(a)||39!=g.GF(a)||(this.element.click(),g.MF(a))};g.p(D_,g.o_);D_.prototype.J=function(){E_(this,!this.o);this.Y("select",this.o)};
D_.prototype.getValue=function(){return this.o};g.p(H_,g.r_);g.h=H_.prototype;g.h.jN=function(){eR(this.G.element)};
g.h.DN=function(){I_(this,this.U.Fk(!0))&&KZ(this.M.F,{H:"svg",R:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},L:[{H:"path",R:{d:"M13.5 24.3L7.2 18.0l-2.1 2.1L13.5 28.5 31.5 10.5l-2.1-2.1L13.5 24.3z",fill:"#fff"}}]})};
g.h.EN=function(){I_(this,this.U.Vx())&&KZ(this.M.F,g.SD?{H:"div",ea:["ytp-icon","ytp-icon-code"]}:{H:"svg",R:{height:"100%",viewBox:"0 0 36 36",width:"100%"},L:[{H:"path",R:{d:"M14.1 24.9L7.2 18.0l6.9-6.9L12.0 9.0l-9.0 9.0 9.0 9.0 2.1-2.1zm7.8 .0l6.9-6.9-6.9-6.9L24.0 9.0l9.0 9.0-9.0 9.0-2.1-2.1z",fill:"#fff"}}]});g.wV(this.U,this.o)};
g.h.HN=function(){I_(this,this.U.getVideoUrl(!0,!0))&&KZ(this.M.F,bE());g.wV(this.U,this.B)};
g.h.GN=function(){I_(this,this.U.getVideoUrl(!1,!0))&&KZ(this.M.F,bE());g.wV(this.U,this.A)};
g.h.YN=function(a){E_(this.F,a)};
g.h.ZN=function(){var a=this.F.getValue();t2(this.U.app,a);this.K.Qb();g.wV(this.U,this.F)};
g.h.iP=function(a){var b=g.XU(this.U.app);b&&b.Rj(new g.RP("feedback",!1,{gpu:eU()}));if(g.RV(a,this.U,!VO(g.X(this.U)))){a=this.U;var b=b={as3:!1,html5:!0,player:!0},c=a.qw();c.debug_error&&(b.player_error=c.debug_error.errorCode,b.player_error_details=c.debug_error.errorDetail);b.debug_text=a.Fk(!0);a.ya("onFeedbackStartRequest",b);a.isFullscreen()&&g.aV(a)}this.K.Qb()};
g.h.AP=function(){this.U.ay();this.K.Qb()};
g.h.VK=function(a,b){G_(this,b)};g.p(L_,g.v_);g.h=L_.prototype;g.h.show=function(){this.G||(this.G=new H_(this.A,this.V,this),g.N(this,this.G),g.y_(this,this.G));g.v_.prototype.show.call(this);g.xV(this.A,this,!0);J_(this.G,!0)};
g.h.hide=function(){K_(this);g.v_.prototype.hide.call(this);g.xV(this.A,this,!1);this.G&&J_(this.G,!1)};
g.h.iN=function(a){var b=JF(a);this.g||b&&(g.Ee(b,"a")||g.Fe(b,"ytp-no-contextmenu"))||(g.MF(a),M_(this),this.element.style.left="",this.element.style.top="",a=HF(a),a.x++,a.y++,this.Je(),b=g.nh(window.document.body),a=g.gD(a,this.size,0,void 0,b,5),g.ih(this.element,g.Tg(a.rect)),g.FJ(this.B),this.B.T(window.document,"contextmenu",this.rN),this.B.T(this.A,"fullscreentoggled",this.WK),this.B.T(this.A,"pageTransition",this.GO))};
g.h.rN=function(a){g.KF(a)||g.we(this.element,JF(a))||this.Qb()};
g.h.WK=function(){this.Qb();M_(this)};
g.h.GO=function(){this.Qb()};var d4,$pa;d4=[{option:g.U3.Yo,message:"YTP_COLOR_WHITE"},{option:g.U3.iF,message:"YTP_COLOR_YELLOW"},{option:g.U3.GD,message:"YTP_COLOR_GREEN"},{option:g.U3.qD,message:"YTP_COLOR_CYAN"},{option:g.U3.PC,message:"YTP_COLOR_BLUE"},{option:g.U3.WD,message:"YTP_COLOR_MAGENTA"},{option:g.U3.hu,message:"YTP_COLOR_RED"},{option:g.U3.Fo,message:"YTP_COLOR_BLACK"}];$pa=[{option:0,text:"0%"},{option:.25,text:"25%"},{option:.5,text:"50%"},{option:.75,text:"75%"},{option:1,text:"100%"}];
g.Q_=[{option:"fontFamily",message:"YTP_FONT_FAMILY",options:[{option:g.V3.cu,message:"YTP_FONT_FAMILY_MONO_SERIF"},{option:g.V3.gu,message:"YTP_FONT_FAMILY_PROP_SERIF"},{option:g.V3.bu,message:"YTP_FONT_FAMILY_MONO_SANS"},{option:g.V3.So,message:"YTP_FONT_FAMILY_PROP_SANS"},{option:g.V3.CASUAL,message:"YTP_FONT_FAMILY_CASUAL"},{option:g.V3.CURSIVE,message:"YTP_FONT_FAMILY_CURSIVE"},{option:g.V3.Vo,message:"YTP_FONT_FAMILY_SMALL_CAPS"}]},{option:"color",message:"YTP_FONT_COLOR",options:d4},{option:"fontSizeIncrement",
message:"YTP_FONT_SIZE",options:[{option:-2,text:"50%"},{option:-1,text:"75%"},{option:0,text:"100%"},{option:1,text:"150%"},{option:2,text:"200%"},{option:3,text:"300%"},{option:4,text:"400%"}]},{option:"background",message:"YTP_BACKGROUND_COLOR",options:d4},{option:"backgroundOpacity",message:"YTP_BACKGROUND_OPACITY",options:$pa},{option:"windowColor",message:"YTP_WINDOW_COLOR",options:d4},{option:"windowOpacity",message:"YTP_WINDOW_OPACITY",options:$pa},{option:"charEdgeStyle",message:"YTP_CHAR_EDGE_STYLE",
options:[{option:g.T3.NONE,message:"YTP_EDGE_STYLE_NONE"},{option:g.T3.DROP_SHADOW,message:"YTP_EDGE_STYLE_DROP_SHADOW"},{option:g.T3.RAISED,message:"YTP_EDGE_STYLE_RAISED"},{option:g.T3.DEPRESSED,message:"YTP_EDGE_STYLE_DEPRESSED"},{option:g.T3.Bu,message:"YTP_EDGE_STYLE_OUTLINE"}]},{option:"textOpacity",message:"YTP_FONT_OPACITY",options:[{option:.25,text:"25%"},{option:.5,text:"50%"},{option:.75,text:"75%"},{option:1,text:"100%"}]}];g.p(N_,g.DJ);g.h=N_.prototype;
g.h.Dw=function(a){var b=!1,c=g.GF(a),d=JF(a),e=!a.altKey&&!a.ctrlKey&&!a.metaKey,f=!1,k=!1,l=g.X(this.g);g.KF(a)?(e=!1,k=!0):l.oe&&(e=!1);if(9==c)b=!0;else{if(d)switch(c){case 32:case 13:if("BUTTON"==d.tagName||"A"==d.tagName||"INPUT"==d.tagName)b=!0,e=!1;else if(e){var m=d.getAttribute("role");!m||"option"!=m&&"button"!=m&&0!=m.indexOf("menuitem")||(b=!0,d.click(),f=!0)}break;case 37:case 39:case 36:case 35:b="slider"==d.getAttribute("role");break;case 38:case 40:m=d.getAttribute("role"),d=38==
c?d.previousSibling:d.nextSibling,"slider"==m?b=!0:e&&("option"==m?(d&&"option"==d.getAttribute("role")&&d.focus(),f=b=!0):m&&0==m.indexOf("menuitem")&&(d&&d.hasAttribute("role")&&0==d.getAttribute("role").indexOf("menuitem")&&d.focus(),f=b=!0))}if((d=g.RU(this.g).B)&&e&&!f&&d.A&&d.A.g)switch(c){case 65:case 68:case 87:case 83:case 107:case 221:case 109:case 219:f=d.A.zw(c)}l.zc||!e||f||(f=String.fromCharCode(c).toLowerCase(),this.A+=f,0=="awesome".indexOf(this.A)?(f=!0,7==this.A.length&&g.Np(this.g.getRootNode(),
"ytp-color-party")):(this.A=f,f=0=="awesome".indexOf(this.A)));if(e&&!f){switch(c){case 32:k=!dK(g.YU(this.g));LZ(this.o,k);k?this.g.ad():this.g.ld();k=f=!0;break;case 37:this.g.Kd()&&(KZ(this.o,iE()),this.g.de(-5*this.g.Tc()),k=f=!0);break;case 39:this.g.Kd()&&(KZ(this.o,aE()),this.g.de(5*this.g.Tc()),k=f=!0);break;case 38:k=Math.min(this.g.getVolume()+5,100);MZ(this.o,k,!1);this.g.setVolume(k);k=f=!0;break;case 40:k=Math.max(this.g.getVolume()-5,0);MZ(this.o,k,!0);this.g.setVolume(k);k=f=!0;break;
case 27:this.D()&&(k=f=!0);break;case 36:this.g.xc(0);k=f=!0;break;case 35:this.g.xc(window.Infinity),k=f=!0}if("3"!=l.C)switch(c){case 67:g.RU(this.g).g&&(k=this.g.Ac("captions","track"),(f=g.RU(this.g).g)&&f.mB(),f=this.o,k=k&&k.displayName?g.T("YTP_SUBTITLES_OFF"):g.T("YTP_SUBTITLES_ON"),KZ(f,$D(),k),k=f=!0);break;case 79:R_(this,"textOpacity")&&(f=!0);break;case 87:R_(this,"windowOpacity")&&(f=!0);break;case 187:R_(this,"fontSizeIncrement",!1,!0)&&(f=!0);break;case 189:R_(this,"fontSizeIncrement",
!0,!0)&&(f=!0)}var n;48<=c&&57>=c?n=c-48:96<=c&&105>=c&&(n=c-96);null!=n&&(k=this.g.kh(),this.g.xc(n/10*(k.seekableEnd-k.seekableStart)+k.seekableStart),k=f=!0)}}b&&this.zs(!0);(b||k)&&this.C.qc(2,!0);(f||e&&P_(this,c,a.shiftKey))&&g.MF(a);l.Fb&&(a={keyCode:g.GF(a),altKey:a.altKey,ctrlKey:a.ctrlKey,metaKey:a.metaKey,shiftKey:a.shiftKey,handled:g.KF(a),fullscreen:this.g.isFullscreen()},this.g.ya("onKeyPress",a))};
g.h.Ew=function(a){a=g.GF(a);var b=g.RU(this.g).B;b&&b.A&&b.A.g&&b.A.Bw(a);9==a&&this.zs(!0)};
g.h.zs=function(a){g.S(this.g.getRootNode(),"ytp-probably-keyboard-focus",a);g.S(this.F.element,"ytp-probably-keyboard-focus",a)};
g.h.Ey=function(a){g.RU(this.g).g&&this.g.yd("captions","sampleSubtitles",a)};
g.h.W=function(){g.ut(this.B);g.DJ.prototype.W.call(this)};g.p(T_,g.W);g.h=T_.prototype;g.h.hide=function(){g.Kp(this.o.getRootNode(),"ytp-expand-pause-overlay");g.W.prototype.hide.call(this)};
g.h.SM=function(){this.V=!0;g.Kp(this.o.getRootNode(),"ytp-expand-pause-overlay");this.G.focus()};
g.h.UM=function(){this.V=!1;g.R(this.o.getRootNode(),"ytp-expand-pause-overlay")};
g.h.lL=function(){V_(this,this.C-this.F)};
g.h.mL=function(){V_(this,this.C+this.F)};
g.h.WM=function(a,b){if(g.RV(b,this.o,this.fa)){var c=this.A[a],d=c.hc().videoId,e=c.getPlaylistId();g.L2(this.o.app,d,c.Od,e,void 0,void 0)}};
g.h.nL=function(){this.Dr(g.ZU(this.o).Ya())};
g.h.oL=function(a){g.V(a.state,1)||g.V(a.state,16)||g.V(a.state,32)||(g.V(a.state,4)&&!g.V(a.state,2)?this.A.length&&(this.V||(g.R(this.o.getRootNode(),"ytp-expand-pause-overlay"),U_(this)),this.J.show()):this.J.hide())};
g.h.Dr=function(a){var b=16/9,c=this.da.ce();a=a.width-(c?136:68);for(var c=Math.ceil(a/(c?320:192)),c=(a-8*c)/c,b=Math.floor(c/b),d=0;d<this.D.length;d++){var e=this.D[d].xa["ytp-suggestion-image"];e.style.width=c+"px";e.style.height=b+"px"}this.M.style.height=b+"px";this.P=c;this.F=a;this.C=0;this.qB(0);U_(this)};
g.h.pL=function(){var a=this.o.ia();a.Xf?(a=(0,g.re)(a.Xf,function(a){return a&&!a.list}),this.A=(0,g.I)(a,function(a){return g.HZ(a)})):this.A.length=0;
Mna(this)};
g.h.qB=function(a){this.M.scrollLeft=-a};
g.p(S_,g.M);S_.prototype.start=function(a,b,c){this.g=a;this.G=b;this.D=c;this.F=(0,g.sG)();this.A()};
S_.prototype.A=function(){var a=(0,g.sG)()-this.F,b=this.B;a=Cia(b,a/this.D);if(0==a)b=b.F;else if(1==a)b=b.G;else var c=Kd(b.F,b.C,a),d=Kd(b.C,b.D,a),b=Kd(b.D,b.G,a),c=Kd(c,d,a),d=Kd(d,b,a),b=Kd(c,d,a);b=g.Hd(b,0,1);this.C((this.G-this.g)*b+this.g);1>b&&this.o.start()};g.p(W_,g.W);W_.prototype.A=function(a){g.RV(a,this.o)&&this.o.Wx(this.jc)};g.p(X_,b_);g.h=X_.prototype;g.h.show=function(){b_.prototype.show.call(this);this.F.T(this.A,"videodatachange",this.Er);this.F.T(this.A,"onPlaylistUpdate",this.Er);this.Er()};
g.h.hide=function(){b_.prototype.hide.call(this);g.FJ(this.F);Y_(this,null)};
g.h.Er=function(){Y_(this,this.A.Nf())};
g.h.Sn=function(){var a=this.o.mn;if(a==this.G)this.B.element.setAttribute("aria-checked",!1),this.B=this.D[this.o.Xd()];else{for(var b=g.ka(this.D),c=b.next();!c.done;c=b.next())c.value.dispose();b=this.o.getLength();this.D=[];for(c=0;c<b;c++){var d=new W_(this.A,this.o,c);this.D.push(d);d.Ja(this.Ka)}this.B=this.D[this.o.Xd()];this.G=a}this.B.element.setAttribute("aria-checked",!0)};
g.h.LP=function(a){var b=this.A.getVideoUrl(!0);SV(b,this.A,a)};
g.h.focus=function(){this.B.focus()};
g.h.W=function(){this.hide();b_.prototype.W.call(this)};g.p(Z_,g.W);Z_.prototype.A=function(){g.S(this.element,"ytp-playlist-menu-button-tiny",400>g.ZU(this.B).Ya().width);this.o&&2!=this.B.Wa()?(this.update({text:g.T("YTP_PLAYLIST_POSITION",{CURRENT_POSITION:this.o.Xd()+1,PLAYLIST_LENGTH:this.o.getLength()}),title:g.T("YTP_PLAYLIST_NAME",{PLAYLIST_NAME:this.o.title})}),this.g||(this.show(),y0(this.C))):this.g&&(this.hide(),y0(this.C))};
Z_.prototype.D=function(){this.o&&this.o.unsubscribe("shuffle",this.A,this);(this.o=this.B.Nf())&&this.o.subscribe("shuffle",this.A,this);this.A()};g.p($_,g.W);$_.prototype.B=function(a){this.Jb(g.V(a.state,2))};
$_.prototype.A=function(){g.YU(this.o);this.o.ad()};g.p(a0,b_);g.h=a0.prototype;g.h.JO=function(a){a=JF(a);g.we(this.O,a)||g.we(this.F,a)||this.wh()};
g.h.Qb=function(){b_.prototype.Qb.call(this);this.A.Gi(this.element)};
g.h.show=function(){var a=this.g;b_.prototype.show.call(this);this.My();a||this.o.ya("onSharePanelOpened")};
g.h.My=function(){g.R(this.element,"ytp-share-panel-loading");g.Kp(this.element,"ytp-share-panel-fail");var a=this.o.ia(),b=this.o.getPlaylistId(),c=b&&this.G.checked;g.S(this.element,"ytp-share-panel-has-playlist",!!b);var d={action_get_share_info:1,feature:"player_embedded",video_id:a.videoId},e=g.X(this.o);e.Ec&&(d.authuser=e.Ec);e.pageId&&(d.pageid=e.pageId);c&&(d.list=b);g.KE(g.X(this.o).baseYtUrl+"share_ajax",{method:"GET",onError:(0,g.A)(this.Ly,this),Mb:(0,g.A)(function(a,b){if(b){if(b.actions&&
YF(b.actions),!this.na()){g.Kp(this.element,"ytp-share-panel-loading");b0(this);for(var c=b.links,d=0,e=0;e<c.length&&3>d;e++){var f=c[e],k=Nna(f.img);k&&(k=new g.W({H:"a",ea:["ytp-share-panel-service-button","ytp-button"],R:{href:f.url,target:"_blank",title:f.sname},L:[k]}),k.X("click",g.ya(this.uP,f.url)),g.Je(k,m_(this.A,k.element)),this.B.push(k),d++)}c=new g.W({H:"a",ea:["ytp-share-panel-service-button","ytp-button"],L:[{H:"span",N:"ytp-share-panel-service-button-more",L:[g.SD?{H:"div",ea:["ytp-icon",
"ytp-icon-share-more"]}:{H:"svg",R:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},L:[{H:"rect",R:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{H:"path",R:{d:"M 34.2,0 3.8,0 C 1.70,0 .01,1.70 .01,3.8 L 0,34.2 C 0,36.29 1.70,38 3.8,38 l 30.4,0 C 36.29,38 38,36.29 38,34.2 L 38,3.8 C 38,1.70 36.29,0 34.2,0 Z m -5.7,21.85 c 1.57,0 2.85,-1.27 2.85,-2.85 0,-1.57 -1.27,-2.85 -2.85,-2.85 -1.57,0 -2.85,1.27 -2.85,2.85 0,1.57 1.27,2.85 2.85,2.85 z m -9.5,0 c 1.57,0 2.85,-1.27 2.85,-2.85 0,-1.57 -1.27,-2.85 -2.85,-2.85 -1.57,0 -2.85,1.27 -2.85,2.85 0,1.57 1.27,2.85 2.85,2.85 z m -9.5,0 c 1.57,0 2.85,-1.27 2.85,-2.85 0,-1.57 -1.27,-2.85 -2.85,-2.85 -1.57,0 -2.85,1.27 -2.85,2.85 0,1.57 1.27,2.85 2.85,2.85 z",
fill:"#4e4e4f","fill-rule":"evenodd"}}]}]}],R:{href:b.more,target:"_blank",title:g.T("YTP_MORE")}});c.X("click",(0,g.A)(this.qO,this,b.more));g.Je(c,m_(this.A,c.element));this.B.push(c);this.Da("buttons",this.B)}}else this.Ly()},this),
Wc:d,withCredentials:!0});a=e.getVideoUrl(a.videoId,c?b:void 0,void 0,!0);this.Da("link",a);this.Da("linkText",a);eR(this.D)};
g.h.Ly=function(){g.Kp(this.element,"ytp-share-panel-loading");g.R(this.element,"ytp-share-panel-fail")};
g.h.uP=function(a,b){if(g.KV(b)){var c=void 0,c=void 0===c?{}:c;c.target=c.target||"YouTube";c.width=c.width||"600";c.height=c.height||"600";var d=c;d||(d={});var c=window;var e=a instanceof td?a:wd("undefined"!=typeof a.href?a.href:String(a));var f=d.target||a.target,k=[];for(l in d)switch(l){case "width":case "height":case "top":case "left":k.push(l+"="+d[l]);break;case "target":case "noreferrer":break;default:k.push(l+"="+(d[l]?1:0))}var l=k.join(",");fc()&&c.navigator&&c.navigator.standalone&&
f&&"_self"!=f?(l=c.document.createElement("A"),g.Fd(l,e),l.setAttribute("target",f),d.noreferrer&&l.setAttribute("rel","noreferrer"),e=window.document.createEvent("MouseEvent"),e.initMouseEvent("click",!0,!0,c,1),l.dispatchEvent(e),c={}):d.noreferrer?(c=c.open("",f,l),e=ud(e),c&&(g.ZO&&Ja(e,";")&&(e="'"+e.replace(/'/g,"%27")+"'"),c.opener=null,e=Gd(id("b/12014412, meta tag with sanitized URL"),'<META HTTP-EQUIV="refresh" content="0; url='+Ha(e)+'">'),c.document.write(g.zd(e)),c.document.close())):
c=c.open(ud(e),f,l);c&&(c.opener||(c.opener=window),c.focus());g.MF(b)}};
g.h.qO=function(a,b){SV(a,this.o,b)&&this.o.ya("SHARE_CLICKED")};
g.h.FL=function(a){!a&&d_(this)&&this.wh()};
g.h.focus=function(){this.D.focus()};
g.h.W=function(){b_.prototype.W.call(this);b0(this)};g.p(c0,g.W);c0.prototype.F=function(){this.G.wh(this.element,!1);g.wV(this.o,this)};
c0.prototype.C=function(){var a=g.X(this.o);this.Da("icon",a.experiments.g("embed_new_share_icon")&&a.A?g.SD?{H:"div",ea:["ytp-icon","ytp-icon-ios-share"]}:{H:"svg",R:{height:"100%",version:"1.1",viewBox:"-6 -6 36 36",width:"100%"},L:[{H:"path",Pa:!0,N:"ytp-svg-fill",R:{d:"M16 5l-1.42 1.42-1.59-1.59V16h-1.98V4.83L9.42 6.42 8 5l4-4 4 4zm4 5v11c0 1.1-0.9 2-2 2H6c-1.11 0-2-0.9-2-2V10c0-1.11.89-2 2-2h3v2H6v11h12V10h-3V8h3c1.1 0 2 .89 2 2z"}}]}:g.SD?{H:"div",ea:["ytp-icon","ytp-icon-sharrow"]}:{H:"svg",
R:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},L:[{H:"path",Pa:!0,N:"ytp-svg-fill",R:{d:"m 20.20,14.19 0,-4.45 7.79,7.79 -7.79,7.79 0,-4.56 C 16.27,20.69 12.10,21.81 9.34,24.76 8.80,25.13 7.60,27.29 8.12,25.65 9.08,21.32 11.80,17.18 15.98,15.38 c 1.33,-0.60 2.76,-0.98 4.21,-1.19 z"}}]});var a=a.yi&&2!=this.o.Wa(),b=g.ZU(this.o).Ya().width;this.B=!!this.o.ia().videoId&&300<=b&&!a;g.S(this.A,"ytp-share-button-visible",this.B);a=480<b;b=g.X(this.o);b.experiments.g("enable_share_button_title")&&
b.A&&(g.S(this.A,"ytp-show-share-title",a),this.Da("share",a?g.T("YTP_SHARE"):""));g.xV(this.o,this,this.B&&this.D)};
c0.prototype.W=function(){g.W.prototype.W.call(this);g.Kp(this.A,"ytp-share-button-visible")};g.p(d0,g.W);d0.prototype.B=function(){var a=g.XU(this.o.app);a&&a.o.g.webkitShowPlaybackTargetPicker()};
d0.prototype.A=function(){var a=g.XU(this.o.app);this.Jb(!!a&&a.Zb);this.Da("icon",jV(this.o)?g.SD?{H:"div",ea:["ytp-icon","ytp-icon-airplay-on"]}:{H:"svg",R:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},L:[{H:"path",Pa:!0,R:{d:"M11,13 L25,13 L25,21 L11,21 L11,13 Z M12,28 L24,28 L18,22 L12,28 Z M27,9 L9,9 C7.9,9 7,9.9 7,11 L7,23 C7,24.1 7.9,25 9,25 L13,25 L13,23 L9,23 L9,11 L27,11 L27,23 L23,23 L23,25 L27,25 C28.1,25 29,24.1 29,23 L29,11 C29,9.9 28.1,9 27,9 L27,9 Z",fill:"#fff"}}]}:
g.SD?{H:"div",ea:["ytp-icon","ytp-icon-airplay-off"]}:{H:"svg",R:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},L:[{H:"path",Pa:!0,N:"ytp-svg-fill",R:{d:"M12,28 L24,28 L18,22 L12,28 Z M27,9 L9,9 C7.9,9 7,9.9 7,11 L7,23 C7,24.1 7.9,25 9,25 L13,25 L13,23 L9,23 L9,11 L27,11 L27,23 L23,23 L23,25 L27,25 C28.1,25 29,24.1 29,23 L29,11 C29,9.9 28.1,9 27,9 L27,9 Z"}}]})};g.p(e0,g.IV);g.h=e0.prototype;g.h.bL=function(a){g.V(a.state,32)?f0(this,this.o.ia()):this.G.hide()};
g.h.An=function(){var a=this.o.kh(),b=a.current,c=gQ(this.Ib,141),b=this.Ib.g[c].Do(b);b!=this.M&&(c=iQ(this.Ib,b,141),this.D=KW(this.ga,c,141,141,!0),g.ih(this.fa,(this.J-this.D.width)/2),this.M=b);g.ye(this.ha,g.JV(this.P?a.current-a.seekableEnd:a.current));g.DG(this.K);a=(0,g.A)(this.qo,this);this.K=g.CG(a,1,void 0);this.O.Xi()};
g.h.cL=function(a,b){f0(this,b)};
g.h.qo=function(){g.O(this.A,!1);g.DG(this.K);var a=Math.round(.5*this.D.width),b=Math.round(.5*this.D.height),c=this.o.kh(),d=c.current/(c.seekableEnd-c.seekableStart),c=this.Ib.g[0].sC(),e=this.Ib.g[0].Ft(),d=a*(e-c+1)*d-this.J/2,f=Math.floor(d/a)+c,e=Math.min(f+Math.min(20,Math.ceil(this.J/a)),e),f=Math.max(f,c),k;if(this.C>=f&&this.B<=e){for(k=this.C;k>e;k--)g.pe(this.A.children[k-this.B]);for(k=f-1;k>=this.B;k--)g.pe(this.A.children[k-this.B]);for(k=this.B-1;k>=f;k--)this.A.insertBefore(g0(this,
k,a,b),this.A.firstChild);k=this.C+1}else g.me(this.A),k=f;for(;k<=e;k++){var l=g0(this,k,a,b);this.A.appendChild(l)}for(k=f;k<=e;k++)g.bh(this.A.children[k-f],"transform","translatex("+(-d+(k-c)*a)+"px)");this.B=f;this.C=e;g.O(this.A,!0)};
g.h.aL=function(){for(var a=this.B;a<=this.C;a++)kQ(this.Ib,a,this.D.width)};
g.h.ZK=function(){var a=g.ZU(this.o).Ya();this.J!=a.width&&(this.J=a.width,this.Ib&&(this.An(),this.qo()))};
g.h.dL=function(a){this.element.style.g=a+"px"};
g.h.show=function(){g.IV.prototype.show.call(this);J1(this.da,!1)};
g.h.hide=function(){this.Ib&&f0(this,null);g.IV.prototype.hide.call(this);J1(this.da,!0)};
g.h.W=function(){f0(this,null);g.IV.prototype.W.call(this)};
e0.g=200;g.p(h0,g.W);g.h=h0.prototype;g.h.fL=function(a){g.V(a.state,32)?j0(this,this.o.ia()):this.g&&(g.V(a.state,16)||g.V(a.state,1))||this.B.hide()};
g.h.hL=function(a,b){j0(this,b)};
g.h.gL=function(){var a=g.YU(this.o);(g.V(a,32)||g.V(a,16))&&i0(this)};
g.h.eL=function(){this.C=window.NaN;i0(this)};
g.h.hide=function(){this.Ib&&j0(this,null);g.W.prototype.hide.call(this)};g.p(l0,g.W);g.h=l0.prototype;g.h.iL=function(){g.X(this.A).ra?(g.gV(this.A,this.A.isFullscreen()?"fullscreen_exit":"fullscreen_enter"),g.aV(this.A)):this.o.wh(this.element,!0)};
g.h.Bz=function(){k0(this);this.o.Je(this.element,!0)};
g.h.jL=function(){g.wF()==this.A.getRootNode()?this.C.start():(this.C.stop(),this.o&&this.o.hide())};
g.h.FF=function(){if(window.screen&&window.outerWidth&&window.outerHeight){var a=.9*window.screen.width,b=.9*window.screen.height,c=Math.max(window.outerWidth,window.innerWidth),d=Math.max(window.outerHeight,window.innerHeight);if(c>d!=a>b)var e=c,c=d,d=e;a>c&&b>d&&this.Bz()}};
g.h.Dy=function(){this.Jb(TV(this.A))};
g.h.TA=function(a){if(a){var b=g.SD?{H:"div",ea:["ytp-icon","ytp-icon-full-screen-close"]}:{H:"svg",R:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},L:[{H:"g",N:"ytp-fullscreen-button-corner-2",L:[{H:"path",Pa:!0,N:"ytp-svg-fill",R:{d:"m 14,14 -4,0 0,2 6,0 0,-6 -2,0 0,4 0,0 z"}}]},{H:"g",N:"ytp-fullscreen-button-corner-3",L:[{H:"path",Pa:!0,N:"ytp-svg-fill",R:{d:"m 22,14 0,-4 -2,0 0,6 6,0 0,-2 -4,0 0,0 z"}}]},{H:"g",N:"ytp-fullscreen-button-corner-0",L:[{H:"path",Pa:!0,N:"ytp-svg-fill",
R:{d:"m 20,26 2,0 0,-4 4,0 0,-2 -6,0 0,6 0,0 z"}}]},{H:"g",N:"ytp-fullscreen-button-corner-1",L:[{H:"path",Pa:!0,N:"ytp-svg-fill",R:{d:"m 10,22 4,0 0,4 2,0 0,-6 -6,0 0,2 0,0 z"}}]}]};a=g.T("YTP_EXIT_FULLSCREEN");window.document.activeElement==this.element&&this.A.getRootNode().focus()}else b=g.SD?{H:"div",ea:["ytp-icon","ytp-icon-full-screen"]}:{H:"svg",R:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},L:[{H:"g",N:"ytp-fullscreen-button-corner-0",L:[{H:"path",Pa:!0,N:"ytp-svg-fill",
R:{d:"m 10,16 2,0 0,-4 4,0 0,-2 L 10,10 l 0,6 0,0 z"}}]},{H:"g",N:"ytp-fullscreen-button-corner-1",L:[{H:"path",Pa:!0,N:"ytp-svg-fill",R:{d:"m 20,10 0,2 4,0 0,4 2,0 L 26,10 l -6,0 0,0 z"}}]},{H:"g",N:"ytp-fullscreen-button-corner-2",L:[{H:"path",Pa:!0,N:"ytp-svg-fill",R:{d:"m 24,24 -4,0 0,2 L 26,26 l 0,-6 -2,0 0,4 0,0 z"}}]},{H:"g",N:"ytp-fullscreen-button-corner-3",L:[{H:"path",Pa:!0,N:"ytp-svg-fill",R:{d:"M 12,20 10,20 10,26 l 6,0 0,-2 -4,0 0,-4 0,0 z"}}]}]},a=g.T("YTP_FULLSCREEN");this.Da("icon",
b);this.Da("title",this.o?null:a);y0(this.D.o)};
g.h.W=function(){this.o||(this.B(),this.B=null);g.W.prototype.W.call(this)};g.p(m0,b_);g.h=m0.prototype;g.h.show=function(){var a=this.g;b_.prototype.show.call(this);a||(this.B.T(this.o,"presentingplayerstatechange",this.Cr),this.B.T(this.o,"videodatachange",this.Cr),this.Cr())};
g.h.hide=function(){this.B&&(g.FJ(this.B),b_.prototype.hide.call(this))};
g.h.Cr=function(){var a=this.o.ia(),b=a.Eh,c;for(c=0;c<b.length;c++){var d=this.A[c];d||(d=new g.W({H:"button",ea:["ytp-multicam-menu-item","ytp-button"],R:{"aria-checked":"{{selected}}","data-id":"{{videoId}}"},L:[{H:"div",N:"ytp-multicam-menu-item-title",L:["{{cameraName}}"]}]}),d.X("click",g.ya(this.VM,c),this),d.Ja(this.Ka),this.A[c]=d);var e=b[c],f=e.id;if(f!=d.element.getAttribute("data-id")){var k=e.thumbnail_url;!k&&f&&(k=TO(g.X(this.o),f,"default.jpg"));d.element.style.backgroundImage=k?
"url("+k+")":""}d.update({cameraName:e.title,videoId:f,selected:f==a.videoId?!0:null})}for(;c<this.A.length;)this.A.pop().dispose();c=g.YU(this.o);a=b.length||!a.Pb();dK(c)||g.V(c,4)||a||!d_(this)||this.wh()};
g.h.VM=function(a){this.o.ia();var b=this.o,c=this.o.ia().Eh[a];a=g.XU(b.app,1).g;var d=b.getCurrentTime();if(c.id==a.videoId)g.XU(b.app)!=g.XU(b.app,1)&&(c=b.app,QY(c,PY(c,1)),a.Ca||b.xc(d));else{var e=b.app;QY(e,PY(e,4));E2(b.app,{videoId:c.id,title:a.title,start:a.Ca?null:d,multifeed_metadata_list:a.Yb.multifeed_metadata_list},4)}};
g.h.focus=function(){for(var a=this.o.ia(),b=a.Eh,c=0;c<b.length;c++)if(b[c].id==a.videoId){this.A[c].focus();break}};
g.h.W=function(){g.Le(this.A);b_.prototype.W.call(this)};g.p(n0,g.W);n0.prototype.F=function(a){this.B("newdata"==a)};
n0.prototype.B=function(a){var b=this.o.ia(),c=b.Eh,d=g.YU(this.o),d=(dK(d)||g.V(d,4))&&0<c.length;this.Jb(d);a&&(this.C=!0);if(d){this.C&&this.D.ae();a=null;for(var d="",e=0;e<c.length;e++)if(c[e].id==b.videoId){a=c[e].title;d=g.T("YTP_MULTICAM_INDEX",{CAMERA_INDEX:e+1,CAMERA_COUNT:c.length})+"\n";break}this.update({text:d+a,preview:b.ac(g.X(this.o),"default.jpg")});y0(this.A)}else this.D.stop()};
n0.prototype.G=function(){L1(this.A,this.element,g.T("YTP_MORE_CAMERAS_AVAILABLE"));this.C=!1};g.C(o0,g.M);var aqa=new iC(0,0,.4,0,.2,1,1,1);o0.prototype.o=function(){var a=(0,g.sG)()-this.C,a=a<this.g?a/this.g:1;this.A(jC(aqa,a));1>a&&this.B.start()};
var Ona=/[0-9.-]+|[^0-9.-]+/g;g.p(v0,g.W);v0.prototype.pd=function(a){this.B=300<=a.width;this.Jb(this.B);g.xV(this.o,this,this.B&&this.G)};
v0.prototype.ha=function(){g.X(this.o).M?this.o.Ie()?(g.gV(this.o,"unmute"),this.o.ug()):(g.gV(this.o,"mute"),this.o.mute()):this.da.wh(this.element,!0);g.wV(this.o,this)};
v0.prototype.ga=function(a){u0(this,a.volume,a.muted)};
var Pna=["M",19,",",11.29," C",21.89,",",12.15," ",24,",",14.83," ",24,",",18," C",24,",",21.17," ",21.89,",",23.85," ",19,",",24.71," L",19,",",24.77," C",21.89,",",23.85," ",24,",",21.17," ",24,",",18," C",24,",",14.83," ",21.89,",",12.15," ",19,",",11.29," L",19,",",11.29," Z"],Qna=["M",19,",",11.29," C",21.89,",",12.15," ",24,",",14.83," ",24,",",18," C",24,",",21.17," ",21.89,",",23.85," ",19,",",24.71," L",19,",",26.77," C",23.01,",",25.86," ",26,",",22.28," ",26,",",18," C",26,",",13.72," ",
23.01,",",10.14," ",19,",",9.23," L",19,",",11.29," Z"];g.p(z0,g.W);z0.prototype.A=function(){var a=g.XU(this.o.app);a&&(a=a.o,a.g.webkitSetPresentationMode("picture-in-picture"==a.g.webkitPresentationMode?"inline":"picture-in-picture"))};g.p(B0,g.W);B0.prototype.G=function(a){A0(this,a.state)};
B0.prototype.F=function(){g.S(this.element,"ytp-play-button-playlist",$U(this.o))};
B0.prototype.J=function(){2==this.A?g.gV(this.o,"pause"):3==this.A?g.gV(this.o,"replay"):1==this.A?g.gV(this.o,"play"):4==this.A&&g.gV(this.o,"stop");dK(g.YU(this.o))?this.o.ld():this.o.ad()};
B0.prototype.W=function(){this.B&&this.B();g.W.prototype.W.call(this)};g.p(E0,g.W);g.h=E0.prototype;g.h.pj=function(){F0(this);this.F&&(this.za(this.F),this.F=null);this.G=this.o.ia(1);if(this.A=this.o.Nf())this.A.subscribe("shuffle",this.pj,this),this.F=this.T(this.o,"progresssync",this.qL);this.D=G0(this);D0(this);this.pd(g.ZU(this.o).Ya())};
g.h.pd=function(a){a=void 0===a?g.ZU(this.o).Ya():a;var b=$U(this.o)||this.B&&g.tV(this.o)||H0(this);this.Jb(b&&(this.B||400<=a.width))};
g.h.rL=function(a){g.gV(this.o,this.B?"next":"previous");var b=!0;this.K?b=g.RV(a,this.o):g.MF(a);b&&(this.B?this.o.oj(!0):this.D?this.o.xc(0):this.o.Jk(!0))};
g.h.qL=function(){var a=G0(this);a!=this.D&&(this.D=a,D0(this))};
g.h.W=function(){this.C&&(this.C(),this.C=null);F0(this);g.W.prototype.W.call(this)};g.p(J0,g.IV);g.h=J0.prototype;g.h.vL=function(a){if(!g.KF(a)){var b=!1;switch(g.GF(a)){case 36:this.A.xc(0);b=!0;break;case 35:this.A.xc(window.Infinity);b=!0;break;case 34:this.A.de(-60);b=!0;break;case 33:this.A.de(60);b=!0;break;case 38:this.A.de(5);b=!0;break;case 40:this.A.de(-5),b=!0}b&&g.MF(a)}};
g.h.Fy=function(a,b){I0(this,b,"newdata"==a)};
g.h.MG=function(){this.Fy("newdata",this.A.ia())};
g.h.uL=function(){Q0(this.A.ia())?g.YU(this.A).xb()&&R0(this,!0):R0(this,!1)};
g.h.tL=function(a){0<iK(a,64)||!Q0(this.A.ia())?R0(this,!1):dK(a.state)&&0>iK(a,64)&&R0(this,!0);this.B&&!g.V(a.state,32)&&3!=this.A.Wa()&&this.B.cancel()};
g.h.yL=function(a,b,c){var d=g.mh(this.element),e=T0(this).g,f=c?c.getAttribute("data-tooltip"):void 0;f&&(a=IW(this.o,Number(c.getAttribute("data-position")),0)*e+g.mh(this.zb).x);this.sa.x=a-d.x;this.sa.y=b-d.y;c=T0(this);a=HW(this.o,c.o);b=this.Fa;c=c.position+this.Vb;d=f||g.JV(this.ua?a-this.o.g:a);f=!!f;b.fa||(3==b.o&&b.We(),1!=b.o&&(b.element.className="ytp-tooltip ytp-bottom",b.o=1,b.K&&b.J.show(),b.B=JQ(b.O.ia()),b.B&&b.B.subscribe("l",b.Ry,b)),b.update({text:d,title:""}),g.S(b.element,"ytp-text-detail",
!!f),d=-1,b.B&&(d=gQ(b.B,160*b.D),d=b.B.g[d].Do(a)),O1(b,d),M1(b,!!f,c));g.S(this.A.getRootNode(),"ytp-progress-bar-hover",!g.V(g.YU(this.A),64));M0(this)};
g.h.xL=function(){var a=this.Fa;1==a.o&&a.We();g.Kp(this.A.getRootNode(),"ytp-progress-bar-hover")};
g.h.wL=function(a,b){g.uE(this.D);this.D=window.NaN;this.Bb=b;this.A.xc(HW(this.o,T0(this).o),!1);g.R(this.element,"ytp-drag");(this.Na=dK(g.YU(this.A)))&&this.A.ld()};
g.h.zL=function(){this.da=0;g.Kp(this.element,"ytp-pull-ui");g.Kp(this.element,"ytp-pulling");if(0<this.G){var a=(0,g.sG)(),b=this.G,c=T0(this).position;g.uE(this.D);this.D=dR((0,g.A)(this.Jy,this,a,b,c),0)}if(g.V(g.YU(this.A),32)||3==this.A.Wa())this.A.xc(HW(this.o,T0(this).o)),g.Kp(this.element,"ytp-drag"),this.Na&&!g.V(g.YU(this.A),2)&&this.A.ad()};
g.h.Jy=function(a,b,c){var d=1-Math.pow(1-((0,g.sG)()-a)/200,3),e=c+d*(this.F*this.C-c);if(0>d||1<d)d=1;S0(this,(1-d)*b,e,this.F);this.D=1>d?dR((0,g.A)(this.Jy,this,a,b,c),0):window.NaN};
g.h.AL=function(a,b){var c=!1,d=!1,e=T0(this);3600<=this.o.getLength()&&(S0(this,this.Bb-b-10,e.position,e.o),d=!0,c=this.G>.1*(this.J?60:40),e=T0(this));g.S(this.element,"ytp-pull-ui",d);c&&g.R(this.element,"ytp-pulling");c=0;e.A&&0>=e.position?c=-1:e.C&&e.position>=e.width&&(c=1);(0,window.isNaN)(this.D)||c&&c==this.da||g.vE(this.D);c&&(this.D=dR((0,g.A)(this.Iy,this,(0,g.sG)(),this.K),0));this.da=c;this.A.xc(HW(this.o,e.o),!1)};
g.h.Iy=function(a,b){if(this.da){var c=this.C*(this.V-1);this.K=g.Hd(b+this.da*((0,g.sG)()-a)*.3,0,c);L0(this);this.A.xc(HW(this.o,T0(this).o),!1);0<this.K&&this.K<c&&(this.D=dR((0,g.A)(this.Iy,this,a,b),0))}};
g.h.Hy=function(){this.Da("clipstarticon",WD());this.Da("clipendicon",WD());g.R(this.element,"ytp-clip-hover")};
g.h.Gy=function(){this.Da("clipstarticon",YD());this.Da("clipendicon",XD());g.Kp(this.element,"ytp-clip-hover")};
g.h.Bn=function(){this.O=0;this.M=window.Infinity;P0(this);K0(this,this.F,this.ha)};
g.h.Ky=function(a){a=g.ka(a);for(var b=a.next();!b.done;b=a.next())if(b=b.value,b.visible){var c=b.getId();if(!this.P[c]){var d=g.ie("DIV");b.tooltip&&(d.setAttribute("data-tooltip",b.tooltip),d.setAttribute("data-position",b.start/1E3));this.P[c]=b;this.ka[c]=d;U0(this,b,d);"ytp-chapter-marker"==b.style?this.kc.appendChild(d):this.Zb.appendChild(d)}}else W0(this,b)};
g.h.BL=function(a){a=g.ka(a);for(var b=a.next();!b.done;b=a.next())W0(this,b.value)};
g.h.W=function(){g.vE(this.D);this.D=window.NaN;O0(this,!1);g.IV.prototype.W.call(this)};g.p(X0,D_);X0.prototype.C=function(){g.RU(this.U).A&&3!=this.U.Wa()?this.A||(p1(this.B,this),this.A=!0):this.A&&(q1(this.B,this),this.A=!1);var a=g.RU(this.U).A;E_(this,!!a&&a.loaded)};
X0.prototype.D=function(a){a?this.U.Ik("annotations_module"):this.U.tn("annotations_module")};
X0.prototype.W=function(){this.A&&q1(this.B,this);D_.prototype.W.call(this)};g.p(g.Y0,g.o_);g.h=g.Y0.prototype;g.h.open=function(){g.y_(this.A,this.C)};
g.h.enable=function(a){this.G?a||(this.G=!1,this.qj(!1)):a&&(this.G=!0,this.qj(!0))};
g.h.qj=function(a){a?p1(this.A,this):q1(this.A,this)};
g.h.md=function(a){this.Y("select",a)};
g.h.DL=function(a){"true"!=this.o[a].element.getAttribute("aria-disabled")&&this.md(a)};
g.h.ff=function(a){return a.toString()};
g.h.CL=function(a){g.KF(a)||39!=g.GF(a)||(this.open(),g.MF(a))};
g.h.W=function(){this.G&&q1(this.A,this);g.o_.prototype.W.call(this);for(var a in this.o)this.o[a].dispose()};g.p(a1,g.Y0);a1.prototype.F=function(){var a=this.U.tr();1<a.length?(g.$0(this,(0,g.I)(a,this.B)),this.K=g.Cb(a,this.B,this),this.J.dc(a.length?" ("+a.length+")":""),this.Y("size-change"),g.Z0(this,this.B(this.U.jh())),this.enable(!0)):this.enable(!1)};
a1.prototype.md=function(a){g.Y0.prototype.md.call(this,a);this.U.vr(this.K[a]);this.A.Le()};
a1.prototype.B=function(a){return a.toString()};g.p(b1,D_);b1.prototype.C=function(){var a=this.U.Wa();if(2!=a&&3!=a&&g.tV(this.U))this.B||(p1(this.D,this),this.B=!0,this.A.push(this.T(this.U,"videodatachange",this.C)),this.A.push(this.T(this.U,"videoplayerreset",this.C)),this.A.push(this.T(this.U,"onPlaylistUpdate",this.C)),this.A.push(this.T(this.U,"autonavchange",this.F)),this.F(this.U.ia().autonavState));else if(this.B){q1(this.D,this);this.B=!1;for(var a=g.ka(this.A),b=a.next();!b.done;b=a.next())this.za(b.value)}};
b1.prototype.F=function(a){E_(this,1!=a)};
b1.prototype.G=function(a){this.U.app.g.ya("onAutonavChangeRequest",1!=(a?2:1))};
b1.prototype.W=function(){this.B&&q1(this.D,this);D_.prototype.W.call(this)};g.p(c1,g.Y0);c1.prototype.B=function(){var a=this.U.Wa();if(2!=a&&3!=a&&(this.F=dV(this.U),this.K=g.bV(this.U),a=this.U.rr(),g.qV(this.U)&&g.rV(this.U)&&a.unshift("missing-qualities"),g.$0(this,a),a.length)){this.M();this.enable(!0);return}this.enable(!1)};
c1.prototype.M=function(){var a=g.cV(this.U);this.o[a]&&(this.J=this.U.Gk(),g.Z0(this,a),"auto"==a&&this.dc(this.ff(a)),dV(this.U)!=this.F&&this.B())};
c1.prototype.md=function(a){"missing-qualities"!=a&&(g.Y0.prototype.md.call(this,a),this.U.Kk(a),this.A.Qb())};
c1.prototype.ff=function(a,b){b=void 0===b?!1:b;if("missing-qualities"==a)return{H:"a",R:{href:"https://support.google.com/youtube/?p=missing_quality",target:"_blank"},L:[g.T("YTP_MISSING_FORMATS")]};var c={H:"div",L:[d1(this,a)]},d=g.cV(this.U);b||"auto"!=d||"auto"!=a||(c.L.push(" "),c.L.push(d1(this,this.J,["ytp-menu-label-secondary"])));return c};g.p(e1,g.W);e1.prototype.pd=function(a){this.Jb(this.B&&400<=a.width)};
e1.prototype.C=function(){g.gV(this.U,"settings");if(this.A.g)this.A.Qb();else{var a=g.RU(this.U).g;a&&!a.loaded&&(a.yr("tracklist",{includeAsr:!0}).length||a.load());this.A.Je(this.element)}};
e1.prototype.o=function(){var a=this.U.Wa(),b=2!=a&&3!=a,c=g.eV(this.U),c=(a=b&&("Anaglyph3D"==c.shader||"Spherical3D"==c.shader))&&1==(0,window.parseInt)(c.displayMode,10),b=a||!b?null:this.U.Gk();g.S(this.element,"ytp-hd-quality-badge","hd720"==b||"hd1080"==b||"hd1440"==b);g.S(this.element,"ytp-4k-quality-badge","hd2160"==b);g.S(this.element,"ytp-5k-quality-badge","hd2880"==b);g.S(this.element,"ytp-8k-quality-badge","highres"==b);g.S(this.element,"ytp-3d-badge-grey",a&&c);g.S(this.element,"ytp-3d-badge",
a&&!c)};g.p(g1,g.Y0);g.h=g1.prototype;g.h.Gr=function(a){return a.toString()};
g.h.ff=function(a){return"1"==a?g.T("YTP_NORMAL_SPEED"):a.toString()};
g.h.Ny=function(){var a=this.U.Wa();this.enable(2!=a&&3!=a)};
g.h.qj=function(a){g.Y0.prototype.qj.call(this,a);a?(this.B=this.T(this.U,"onPlaybackRateChange",this.GL),g.$0(this,(0,g.I)(this.U.nj(),this.Gr)),g.Z0(this,this.Gr(this.U.Tc()))):(this.za(this.B),this.B=null)};
g.h.GL=function(a){g.Z0(this,this.Gr(a))};
g.h.md=function(a){g.Y0.prototype.md.call(this,a);this.U.Of((0,window.parseFloat)(a),!0);this.A.Le()};g.p(i1,g.Y0);i1.prototype.O=function(a){return a.option.toString()};
i1.prototype.ff=function(a){return h1(this.M[a])};
i1.prototype.md=function(a){g.Y0.prototype.md.call(this,a);this.Y("settingChange",this.K,this.M[a].option)};
i1.prototype.P=function(a){this.Y("settingChange",this.K+"Override",!a);this.A.Le()};g.p(j1,g.r_);j1.prototype.A=function(a,b){this.Y("settingChange",a,b)};g.p(l1,g.Y0);l1.prototype.F=function(a){return a.languageCode};
l1.prototype.ff=function(a){return this.B[a].languageName||""};
l1.prototype.md=function(a){this.Y("select",a);g.z_(this.A)};g.p(m1,g.Y0);g.h=m1.prototype;g.h.Kr=function(a){return g.Tb(a)?"__off__":a.displayName};
g.h.ff=function(a){return"__off__"==a?g.T("YTP_LANGUAGE_OFF"):"__translate__"==a?g.T("YTP_AUTO_TRANSLATE"):"__contribute__"==a?g.T("YTP_CONTRIBUTE_MENU_ITEM"):("__off__"==a?{}:this.B[a]).displayName};
g.h.md=function(a){"__translate__"==a?this.F.open():"__contribute__"==a?(this.U.ld(),this.U.isFullscreen()&&g.aV(this.U),a=g.UO(g.X(this.U),this.U.ia()),g.CV(a)):(this.U.yd("captions","track","__off__"==a?{}:this.B[a]),g.Y0.prototype.md.call(this,a),this.A.Le())};
g.h.Qk=function(){var a=-1!=this.U.ci().indexOf("captions"),b=this.U.ia().Wj;if(a||b){if(a){var c=this.U.Ac("captions","track");var d=this.U.Ac("captions","tracklist",{includeAsr:!0});var e=this.U.Ac("captions","translationLanguages");this.B=g.Cb(d,this.Kr,this);var f=(0,g.I)(d,this.Kr);if(e.length){var k=this.F;var l=e;k.B=g.Cb(l,k.F,k);g.$0(k,(0,g.I)(l,k.F));f.push("__translate__")}k=this.Kr(c)}else this.B={},f=[],k="__off__";f.unshift("__off__");this.B.__off__={};b&&f.unshift("__contribute__");
this.B[k]||(this.B[k]=c,f.push(k));g.$0(this,f);g.Z0(this,k);a?(k1(this.K,this.U.di()),this.J.dc(d.length?" ("+d.length+")":""),this.Y("size-change"),a&&e.length&&this.o.__translate__.element.setAttribute("aria-disabled",!!g.Tb(c))):(this.J.dc(""),this.Y("size-change"));this.enable(!0)}else this.enable(!1)};
g.h.Qy=function(a){this.U.yd("captions","sampleSubtitles",a)};
g.h.NL=function(a){var b=this.U.Ac("captions","track"),b=g.Wb(b);b.translationLanguage=this.F.B[a];this.U.yd("captions","track",b)};
g.h.ML=function(a,b){if("reset"==a)this.U.ur();else{var c={};c[a]=b;this.U.wn(c)}this.Qy(!0);this.M.start();k1(this.K,this.U.di())};
g.h.W=function(){g.ut(this.M);g.Y0.prototype.W.call(this)};g.p(n1,g.v_);n1.prototype.Je=function(a){o1(this);0<this.B.Ka.length&&g.v_.prototype.Je.call(this,a)};
n1.prototype.show=function(){g.v_.prototype.show.call(this);g.R(this.A.getRootNode(),"ytp-settings-shown")};
n1.prototype.hide=function(){g.v_.prototype.hide.call(this);g.Kp(this.A.getRootNode(),"ytp-settings-shown")};g.p(r1,g.W);
r1.prototype.o=function(){var a=!1;-1!=this.U.ci().indexOf("remote")&&(a=1<this.U.Ac("remote","receivers").length);this.Jb(a&&400<=g.ZU(this.U).Ya().width);var b=1;a&&this.U.Ac("remote","casting")&&(b=2);if(this.A!=b){this.A=b;switch(b){case 1:this.Da("icon",g.SD?{H:"div",ea:["ytp-icon","ytp-icon-cast-desktop-off"]}:{H:"svg",R:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},L:[{H:"path",Pa:!0,R:{d:"M27,9 L9,9 C7.9,9 7,9.9 7,11 L7,14 L9,14 L9,11 L27,11 L27,25 L20,25 L20,27 L27,27 C28.1,27 29,26.1 29,25 L29,11 C29,9.9 28.1,9 27,9 L27,9 Z M7,24 L7,27 L10,27 C10,25.34 8.66,24 7,24 L7,24 Z M7,20 L7,22 C9.76,22 12,24.24 12,27 L14,27 C14,23.13 10.87,20 7,20 L7,20 Z M7,16 L7,18 C11.97,18 16,22.03 16,27 L18,27 C18,20.92 13.07,16 7,16 L7,16 Z",fill:"#fff"}}]});
break;case 2:this.Da("icon",g.TD())}g.S(this.element,"ytp-remote-button-active",!!this.U.Ac("remote","casting"))}};
r1.prototype.C=function(){g.gV(this.U,"remote");if(this.U.Ac("remote","quickCast"))this.U.yd("remote","quickCast",!0);else{var a=this.B,b=this.element;if(d_(a))a.Qb();else{o1(a);a:{var c=g.ka(a.B.Ka);for(var d=c.next();!d.done;d=c.next())if(d=d.value,0==d.priority){c=d;break a}c=null}c&&(c.open(),a.Je(b));a.Je(b)}}};g.p(s1,g.W);s1.prototype.F=function(){g.gV(this.o,this.o.app.oa?"size_small":"size_large");var a=this.o.app,b=!a.oa;a.Z.experiments.g("player_legacy_set_size_style")&&Yna(a,!0,b);a.g.ya("SIZE_CLICKED",b)};
s1.prototype.A=function(){this.Jb(this.o.app.Cc&&!this.o.isFullscreen()&&3!=this.o.Wa());if(this.g){var a=this.o.app.oa;if(this.B!=a){var b=a?g.SD?{H:"div",ea:["ytp-icon","ytp-icon-default-view"]}:{H:"svg",R:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},L:[{H:"path",Pa:!0,R:{d:"m 26,13 0,10 -16,0 0,-10 z m -14,2 12,0 0,6 -12,0 0,-6 z",fill:"#fff","fill-rule":"evenodd"}}]}:g.SD?{H:"div",ea:["ytp-icon","ytp-icon-theater-mode"]}:{H:"svg",R:{height:"100%",version:"1.1",viewBox:"0 0 36 36",
width:"100%"},L:[{H:"path",Pa:!0,R:{d:"m 28,11 0,14 -20,0 0,-14 z m -18,2 16,0 0,10 -16,0 0,-10 z",fill:"#fff","fill-rule":"evenodd"}}]};g.X(this.o).ba||null==this.B?this.Da("icon",b):t0(this.D,this.element,b);a=(this.B=a)?g.T("YTP_DEFAULT_VIEW"):g.T("YTP_THEATER_MODE");this.Da("title",a);y0(this.C)}}};g.p(t1,g.W);t1.prototype.B=function(){g.gV(this.A,"subtitles");var a=g.RU(this.A).g;a&&a.mB()};
t1.prototype.o=function(){var a=!!g.RU(this.A).g;this.Jb(a&&300<=g.ZU(this.A).Ya().width);a&&this.Da("pressed",!!this.A.Ac("captions","track").displayName)};g.p(u1,g.W);
u1.prototype.C=function(){var a=g.ZU(this.o).Ya().width,b=350<=a&&(!this.B||!g.V(g.YU(this.o),64));this.Jb(b);g.S(this.element,"ytp-time-display-allow-autohide",b&&400>a);a=this.o.kh();b&&(b=g.JV(a.current),this.G!=b&&(this.Da("currenttime",b),this.G=b),b=g.JV(a.duration),this.J!=b&&(this.Da("duration",b),this.J=b));this.B&&(a=a.isPeggedToLive,this.F!=a&&(this.F=a,this.C(),b=this.D.element,(b.disabled=a)?this.A&&(this.A(),this.A=null,b.removeAttribute("title")):(b.title=g.T("YTP_GOTO_LIVE_TOOLTIP"),this.A=
m_(this.K,this.D.element))))};
u1.prototype.O=function(a,b){this.B=b.Ca;g.S(this.element,"ytp-live",this.B);this.C()};
u1.prototype.M=function(a){a.target==this.D.element?(g.gV(this.o,"live"),this.o.xc(window.Infinity),this.o.ad()):g.gV(this.o,"time")};
u1.prototype.W=function(){this.A&&this.A();g.W.prototype.W.call(this)};g.p(w1,g.W);g.h=w1.prototype;g.h.OL=function(){var a=this.F.ce();this.G!=a&&(this.G=a,v1(this,this.o.getVolume(),this.o.Ie()))};
g.h.pd=function(a){this.Jb(350<=a.width)};
g.h.GP=function(a){if(!g.KF(a)){var b=g.GF(a),c=null;37==b?c=this.C-5:39==b?c=this.C+5:36==b?c=0:35==b&&(c=100);null!=c&&(c=g.Hd(c,0,100),0==c?this.o.mute():(this.o.Ie()&&this.o.ug(),this.o.setVolume(c)),g.MF(a))}};
g.h.PL=function(a){var b=a.deltaX||-a.deltaY;a.deltaMode?this.o.setVolume(this.C+(0>b?-10:10)):this.o.setVolume(this.C+g.Hd(b/10,-10,10));g.MF(a)};
g.h.FP=function(){g.gV(this.o,"volume");x1(this,this.B,!0,this.A,this.F.M);this.V=this.C;this.o.Ie()&&this.o.ug()};
g.h.EP=function(a){a-=g.mh(this.P).x;this.o.setVolume(100*g.Hd(a/(this.G?78:52),0,1))};
g.h.DP=function(){x1(this,this.B,!1,this.A,this.F.M);0==this.C&&(this.o.mute(),this.o.setVolume(this.V))};
g.h.QL=function(a){v1(this,a.volume,a.muted)};
g.h.jv=function(){x1(this,this.B,this.D,this.A,this.F.M)};
g.h.Sy=function(a){x1(this,this.B,this.D,a,this.F.M)};
g.h.UA=function(a){g.S(this.element,"ytp-volume-control-hover",a);x1(this,a,this.D,this.A,this.F.M)};
g.h.W=function(){g.W.prototype.W.call(this);g.Kp(this.O,"ytp-volume-slider-active")};g.p(y1,g.W);y1.prototype.C=function(){this.A=!!this.o.ia().videoId;this.Jb(this.A);g.xV(this.o,this,this.A&&this.B);if(this.A){var a=this.o.getVideoUrl(!0,!1,!1,!0);this.Da("url",a)}};
y1.prototype.D=function(a){g.gV(this.o,"youtube");var b=this.o.getVideoUrl(!g.KV(a),!1,!0,!0);SV(b,this.o,a);g.wV(this.o,this)};g.p(z1,g.DJ);g.h=z1.prototype;g.h.Ir=function(){var a=this.B;N0(a);var b=a.A.getCurrentTime();(b<a.O||b>a.M)&&a.Bn();this.O.C()};
g.h.Py=function(){this.Rs();!this.M.o||this.Ir()};
g.h.JN=function(){this.Ir();this.F.start()};
g.h.Rs=function(){var a;if(a=!g.X(this.U).isMobile){a=this.B;var b=2*a.C*g.WO();a=300>1E3*a.o.getLength()/a.A.Tc()/b}a=a&&g.YU(this.U).xb()&&!!window.requestAnimationFrame;b=!a;this.M.o||(a=b=!1);b?this.G||(this.G=this.T(this.U,"progresssync",this.Ir)):this.G&&(this.za(this.G),this.G=null);a?this.F.isActive()||this.F.start():this.F.stop()};
g.h.UR=function(a){J1(this.A.o,!a)};
g.h.Jr=function(){var a=this.A.ce(),b=g.ZU(this.U).Ya(),c=B1(this),d=Math.max(b.width-2*c,100);if(this.ba!=b.width||this.V!=a){this.ba=b.width;this.V=a;var e=C1(this);this.o.element.style.width=e+"px";this.o.element.style.left=c+"px";var f=this.B;f.Vb=c;f.C=e;f.J=a;L0(f);this.A.o.ga=e}c=this.g;b=Math.min(413*(a?1.5:1),Math.round(.82*(b.height-(this.A.ce()?72:50))));c.P=Math.min(570*(a?1.5:1),d);c.O=b;c.oo();this.Rs()};
g.h.pa=function(){return this.o.element};g.p(g.D1,g.W);g.D1.prototype.A=function(){g.R(this.element,"ytp-sb-subscribed")};
g.D1.prototype.B=function(){g.Kp(this.element,"ytp-sb-subscribed")};g.p(E1,g.W);E1.prototype.P=function(a){g.gV(this.o,"title");g.wV(this.o,this);var b=this.o.getVideoUrl(!g.KV(a),!1,!0);SV(b,this.o,a)};
E1.prototype.V=function(a,b,c){var d=c.user_info;if(d){b=d.channel_logo_url||d.image_url;c=d.channel_title||d.username;var e=d.channel_url,f=d.channel_external_id,d=d.subscriber_count;b&&e&&c&&g.XP.test(b)&&F1(this,a,f,c,e,b,d)}};
E1.prototype.D=function(){G1(this);var a=this.o.ia();this.Da("title",a.title);this.B&&(this.B.o=a.ol);var b=g.X(this.o);if(b.experiments.g("embed_view_count")){var c=a.shortViewCount;g.S(this.o.getRootNode(),"ytp-show-title-view-count",!!c);this.Da("viewCount",c)}!b.J&&a.videoId?(this.Da("url",this.o.getVideoUrl(!0)),this.A||(this.A=this.T(this.O,"click",this.P))):this.A&&(this.Da("url",null),this.za(this.A),this.A=null)};g.p(H1,g.W);g.h=H1.prototype;g.h.uO=function(a){3==this.o&&this.We();a=a.currentTarget;this.o||(a.removeEventListener("mouseover",this.P),a.addEventListener("mouseout",this.ha),K1(this,a,2))};
g.h.sO=function(a){(a=IF(a))&&g.we(this.A,a)||this.We()};
g.h.Ry=function(a,b){if(a<=this.C&&this.C<=b){var c=this.C;this.C=window.NaN;O1(this,c)}};
g.h.FI=function(){kQ(this.B,this.C,160*this.D)};
g.h.We=function(){switch(this.o){case 2:this.A.removeEventListener("mouseout",this.ha),this.A.addEventListener("mouseover",this.P);case 3:3==this.o&&this.da.stop();this.O.removeEventListener("appresize",this.V);this.M||this.A.setAttribute("title",this.F);this.F="";this.A=null;break;case 1:this.B&&(this.B.unsubscribe("l",this.Ry,this),this.B=null),this.O.removeEventListener("videoready",this.V),this.ba.stop()}this.o=null;this.K&&this.J.hide()};
g.h.Gi=function(a){if(this.A)for(var b=0;b<arguments.length;b++)g.we(arguments[b],this.A)&&this.We()};
g.h.W=function(){null!=this.o&&this.We();g.W.prototype.W.call(this)};g.v("yt.pubsub.publish",g.fG,void 0);g.p(S1,g.W);g.h=S1.prototype;g.h.pd=function(a){this.C=300<=a.width;this.Jb(this.C);a=480<a.width;var b=g.X(this.o);b.experiments.g("enable_watch_later_button_title")&&b.A&&(g.S(this.F,"ytp-show-watch-later-title",a),this.Da("watch_later",a?g.T("YTP_WATCH_LATER"):""));g.xV(this.o,this,this.C&&this.J)};
g.h.lQ=function(){this.A=!0;this.B=!1;R1(this,1);g.X(this.o).isMobile&&L1(this.G,this.element);g.X(this.o).Fb&&this.o.ya("WATCH_LATER_VIDEO_ADDED")};
g.h.RL=function(){g.gV(this.o,"watchlater");g.wV(this.o,this);var a=this.o.ia().videoId;g.X(this.o).Ec?Q1(this,a):g.P1(function(){dJ({videoId:a});window.location.reload()},null,"wl_button",800,600)};
g.h.mQ=function(a,b){this.B=!1;var c=g.T("YTP_ERROR_GENERIC_WITHOUT_LINK");b&&(c=b.errors&&b.errors.length?b.errors[0]:b.error_message);R1(this,4,c);g.X(this.o).Fb&&this.o.ya("WATCH_LATER_ERROR",c)};
g.h.nQ=function(){this.B=this.A=!1;R1(this,2);g.X(this.o).Fb&&this.o.ya("WATCH_LATER_VIDEO_REMOVED")};
g.h.SL=function(){this.B=this.A=!1;R1(this,2)};
g.h.W=function(){g.W.prototype.W.call(this);g.Kp(this.F,"ytp-watch-later-button-visible")};g.p(T1,g.W);T1.prototype.D=function(a){this.Jb(!g.V(a.state,2))};
T1.prototype.B=function(){if(this.A.ia().videoId){var a=this.A.getVideoUrl(!0,!1,!1,!0);this.Da("url",a);this.o||(this.o=this.X("click",this.C))}else this.o&&(this.Da("url",null),this.za(this.o),this.o=null)};
T1.prototype.C=function(a){var b=this.A.getVideoUrl(!g.KV(a),!1,!0,!0);SV(b,this.A,a)};g.p(U1,f_);g.h=U1.prototype;g.h.Np=function(a,b){b?this.V=a:this.V=null;this.Dg()};
g.h.Op=function(a,b){if(b)this.G.push(a);else for(var c=this.G.length;0<=c;c--)if(this.G[c]==a){this.G.splice(c,1);break}this.B.qc(64,0<this.G.length)};
g.h.Ij=function(){g.hV(this.g)&&g.iV(this.g);return!!this.V||f_.prototype.Ij.call(this)};
g.h.Dg=function(){var a=!this.Ij(),b=a&&g.hV(this.g)&&!g.V(g.YU(this.g),2);a?(this.Oa.show(),this.Ra.show()):(this.Oa.hide(),this.Ra.hide(),this.o.Gi(this.C.element,this.J.element));b?this.J.A.show():this.J.A.hide();g.S(this.C.element,"ytp-cards-available",b);this.A&&A1(this.A,!a);f_.prototype.Dg.call(this)};
g.h.Pr=function(a){a&&(this.o.Gi(this.C.element,this.J.element),this.A&&this.o.Gi(this.A.pa()));f_.prototype.Pr.call(this,a)};
g.h.UK=function(a){var b=this.g.getRootNode();a?b.parentElement?(b.setAttribute("aria-label",g.T("YTP_PLAYER_FULLSCREEN")),b.parentElement.insertBefore(this.fa.element,b),b.parentElement.insertBefore(this.da.element,b.nextSibling)):g.qE(Error("Player not in DOM.")):(b.setAttribute("aria-label",g.T("YTP_PLAYER_NORMAL")),this.fa.detach(),this.da.detach());this.Ab();this.wi()};
g.h.ce=function(){return this.g.isFullscreen()||g.mn&&g.X(this.g).experiments.g("html5_prefer_standard_controls_big")};
g.h.Ab=function(){var a=this.ce();this.o.D=a?1.5:1;g.S(this.K.element,"ytp-big-mode",a);f_.prototype.Ab.call(this)};
g.h.wi=function(){f_.prototype.wi.call(this);g.xV(this.g,this.Ia,!!this.O);var a=this.Na,b=!!this.O;a.D=b;g.xV(a.o,a,a.B&&b);this.oa&&(a=this.oa,b=!!this.O,a.J=b,g.xV(a.o,a,a.C&&b));if(!this.O)for(this.o.Gi(this.C.element,this.J.element),a=0;a<this.ka.length;a++)b=this.ka[a],d_(b)&&b.Qb()};
g.h.Zn=function(a){this.A&&A1(this.A,this.Ij());f_.prototype.Zn.call(this,a)};
g.h.DO=function(){this.B.qc(128,!1)};
g.h.sm=function(){return this.K.g?(this.K.Qb(),!0):this.G.length?(this.G[this.G.length-1].Qb(),!0):this.V?(this.V.Qb(),!0):f_.prototype.sm.call(this)};
g.h.rR=function(a,b){this.tb=b;this.Op(a,b);this.By()};
g.h.By=function(){var a=this.tb||d_(this.K);this.Fa!=a&&(this.Fa=a,this.g.ya("onAutonavPauseRequest",this.Fa))};
g.h.eG=function(){V1(this,this.g.getRootNode(),!0).focus()};
g.h.fG=function(){V1(this,this.g.getRootNode(),!1).focus()};W1.prototype.click=function(a){a=a.element.getAttribute("data-visual-id");g.uV(this,"onLogVeClicked",{id:a})};
W1.prototype.F=function(a){var b=a.element.getAttribute("data-visual-id");g.kb(this.A,a);g.kb(this.o,b);g.kb(this.g,b);a.element.removeAttribute("data-visual-id")};
W1.prototype.pause=function(){this.B=!0};
W1.prototype.resume=function(){this.B=!1;for(var a=g.ka(this.C),b=a.next();!b.done;b=a.next())b=b.value,g.uV(this,b.type,b.data);this.C.length=0};g.p(X1,g.M);g.h=X1.prototype;g.h.xM=function(){$1(this)||g.p2(this,5)};
g.h.OO=function(a){$1(this)||(Q2(this),dK(a.A)&&VY(this))};
g.h.td=function(){var a=this.C?this.C.bq():{},b=this.A,c={};b.g&&g.za(c,b.g.wK());g.za(a,c);(b=this.A.o)&&g.za(a,b.Ct());a.fs=this.g.isFullscreen();a.volume=Math.round(this.J.getVolume());a.mos=this.J.Ie()?1:0;this.Z.experiments.g("html5_enable_embedded_player_visibility_signals")&&this.Z.A&&(this.Zb&&(b=this.Zb,b=null==b.o?null:Math.round(100*b.o)/100,null!=b&&(a.inview=b)),b=this.F.Ya(),0<b.height&&0<b.width&&(b=[Math.round(b.height),Math.round(b.width)],c=g.WO(),1<c&&b.push(c),a.size=b.join(":")));
return a};
g.h.getCurrentTime=function(a){return 3==VU(this)?g.WU(this.A).getCurrentTime():(a=g.XU(this,a))?a.getCurrentTime():0};
g.h.getDuration=function(a){return(a=g.XU(this,a))?a.getDuration():0};
g.h.dJ=function(a){switch(a.type){case "loadedmetadata":KP("fvb",this.G.g)||this.G.o("fvb");g.uP("fvb",void 0,"video_to_ad");this.ob.start();break;case "loadstart":KP("gv",this.G.g)||this.G.o("gv");g.uP("gv",void 0,"video_to_ad");break;case "progress":case "timeupdate":!KP("l2s",this.G.g)&&2<=IJ(RJ(a.target))&&this.G.o("l2s");break;case "playing":g.ZO&&this.ob.start();var b=this.A.B;a="none"==eh(this.D.g,"display")||0==g.uh(this.D.g).Pc();b=!oZ(this.F)||b||!this.Z.D||this.Z.Fh;a&&!b&&(this.C.Vd("hidden",
"1",!0),g2(this).ni||T2(this,"hidden",!0))}};
g.h.UN=function(a,b){this.g.ya("onLoadProgress",b)};
g.h.HP=function(){this.g.Y("playbackstalledatstart")};
g.h.eJ=function(a,b){this.g.ya("onVideoProgress",b)};
g.h.bJ=function(){this.J.Y("progresssync")};
g.h.zM=function(a){!this.Z.experiments.g("disable_live_head_slowdown")&&0<iK(a,1)&&!g.V(a.state,64)&&this.o.g.Ca&&yU(this.o)&&1<this.g.Tc()&&u2(this,1,!0);var b;if(b=0<iK(a,2))this.B&&("embedded"==this.Z.g||this.g.isFullscreen()&&!this.ua)&&g.RZ(this)?(N2(this,!1,!this.Z.experiments.g("legacy_autoplay_flag")),b=!0):b=!1,b=!b;b&&(b=this.o.o)&&xF(b.g);g.V(a.state,128)&&(b=a.state,F2(this),b=b.g,this.g.ya("onError",Npa[b.errorCode]||5),this.g.ya("onDetailedError",b));a.state.xb()&&!g.fK(a.state)&&(b=
g2(this),g.vP("cpn",b.clientPlaybackNonce,"ad_to_video"),b.videoId&&g.vP("docid",b.videoId,"ad_to_video"),b.playbackId&&g.vP("plid",b.playbackId,"ad_to_video"),g.uP("pbresume",void 0,"ad_to_video"));this.g.Y("applicationplayerstatechange",a)};
g.h.dA=function(a){3!=VU(this)&&(!g.V(a.state,32)&&0>iK(a,16)&&(!g.V(a.state,8)||g.V(a.state,64)||this.D.g.ended||g.V(a.state,2)||VY(this)),this.g.Y("presentingplayerstatechange",a))};
g.h.aJ=function(a){s2(this,gK(a.state))};
g.h.vM=function(a){"newdata"==a&&y2(this)};
g.h.BM=function(){this.g.ya("onPlaybackAudioChange",this.g.jh().Rc.name)};
g.h.dQ=function(a){a==this.C.g&&this.g.ya("onPlaybackQualityChange",a.Ma.video.quality)};
g.h.qr=function(a,b,c){if("newdata"==a)fZ(this.A),this.g.Y("videoplayerreset",b);else{if(!this.D)return;if("dataloaded"==a)if(b.Z.Zf(c.Yb),this.C==this.o){if(this.Z.experiments.g("disable_sap_error_check")||!this.o.A.isError()){var d=$1(this);if(d||!this.o.g.Jw||this.Z.isMobile){var e=this.o.g;if(!LQ(e)||d||xQ(this.o.g))e.Pb(),d&&g.p2(this,6),h2(this),d||(e=this.A.o)&&!e.C&&this.A.U.ia(1).adModule&&this.A.o.create();else{var d=e.Ca&&!g.XN()?"html5.unsupportedlive":"fmt.noneavailable",f="YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK";
(!MO(this.Z)||Koa||XE()?0:g.sc||e.ed&&ni)&&(f=e.ed?"YTP_HTML5_PROTECTED_FLASH_FALLBACK":"YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK_FLASH");g.cU(this.o,d,f,"nosupported.1;f18."+ +(0<=e.yh.indexOf("itag=18"))+";f43."+ +(0<=e.yh.indexOf("itag=43")))}}else e="YTP_DEVICE_FALLBACK",(!MO(this.Z)||Koa||XE()?0:g.sc)&&(e="YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK_FLASH"),g.cU(this.o,"html5.unsupportedads",e,void 0)}}else h2(this);1==b.getPlayerType()&&(this.Z.M&&(g2(this).Nl?(e=this.D,e.C=!0,KL(),e.g.muted=!0):
(this.D.C=!1,lJ(this,this.M))),g2(this).Ca&&!this.Z.NQ&&g.cU(this.o,"html5.unsupportedlive","YTP_DEVICE_FALLBACK",void 0),c.Pb()&&(c.Mn||c.lr||c.we.focEnabled||c.we.rmktEnabled||g2(this).cp)&&(e=g2(this),B2(this,"part2viewed",1,0x8000000000000),B2(this,"engagedview",Math.max(1,1E3*e.Af),0x8000000000000),e.Ca||(e=1E3*e.lengthSeconds,B2(this,"videoplaytime25",.25*e,e),B2(this,"videoplaytime50",.5*e,e),B2(this,"videoplaytime75",.75*e,e),B2(this,"videoplaytime100",e,0x8000000000000),B2(this,"conversionview",
e,0x8000000000000))));this.g.Y("videodatachange",a,c,b.getPlayerType())}this.Z.Fb&&this.g.ya("onVideoDataChange",{type:a,playertype:b.getPlayerType()});a=c.clientScreenNonce;c=c.rootVeType;!this.Z.experiments.g("player_change_screen_killswitch")&&a&&c&&(b=this.da,a!=b.D&&(b.D=a,g.uV(b,"onScreenChanged",{csn:a,root_ve_type:c}),b.g.length&&g.uV(b,"onLogVesShown",{ids:b.g}),b.o=g.ob(b.g)))};
g.h.Yl=function(){l2(this,null);this.g.ya("onPlaylistUpdate")};
g.h.nz=function(a){var b=a.getId(),c=this.o.g;if("part2viewed"==b)c.rA&&g.ZE(c.rA),c.lr&&g.ZE(c.lr);else if("conversionview"==b){var d=this.o;d.C&&KK(d.C)}else"engagedview"==b&&g.ZE(c.Mn);c.xj&&(d=C2(this,c.xj,a.getId()),g.ZE(d));switch(b){case "videoplaytime25":c.Kx&&g.ZE(c.Kx);g.ZE(c.KQ);break;case "videoplaytime50":c.Lx&&g.ZE(c.Lx);g.ZE(c.LQ);break;case "videoplaytime75":c.Mx&&g.ZE(c.Mx);g.ZE(c.MQ);break;case "videoplaytime100":c.Jx&&g.ZE(c.Jx),g.ZE(c.JQ)}(b=g2(this).cp)&&b[a.getId()]&&(c=b[a.getId()],
g.ZE(c,void 0,zpa.test(c)||Apa.test(c)||Bpa.test(c)),b=b[a.getId()+"gaia"],g.ZE(b,void 0,zpa.test(b)||Apa.test(b)||Bpa.test(b)));this.o.D.F(a)};
g.h.isPeggedToLive=function(){return this.o.isPeggedToLive()};
g.h.cJ=function(a,b){var c=a.g;if(1==this.O||2==this.O)c.startSeconds=b;2==this.O?n2(this):this.g.Y("seekto",b)};
g.h.mM=function(){this.g.Y("airplayactivechange")};
g.h.nM=function(){this.g.Y("airplayavailabilitychange")};
g.h.HM=function(){this.g.Y("beginseeking")};
g.h.vN=function(){this.g.Y("endseeking")};
g.h.Wr=function(){var a=this.B.hc(),b=g2(this);b.rh||!this.fa?(b=b.If,a=D2(this,a),b&&H2(this,a)):a&&I2(this,a);this.g.ya("onPlaylistUpdate")};
g.h.tM=function(a){this.g.ya("onCueRangeEnter",a.getId())};
g.h.uM=function(a){this.g.ya("onCueRangeExit",a.getId())};
g.h.yM=function(){this.ga||(this.ga=kP(this.wz,this));QP(this.G,$Y(this));if(this.Z.experiments.g("html5_playlist_preload")&&g.RZ(this)){var a=this.B.hc(VQ(this.B));a&&G2(this,a,1,!1)}};
g.h.wM=function(){var a=this.o.g,b=this.o.D.g.g||[],c=this.Ta.videoplaytime100;this.Z.experiments.g("send_pyv_ad_mt_and_abandon_pings")&&a.xj&&0<=b.indexOf(c)&&(a=C2(this,a.xj,"video_abandon"),g.ZE(a))};
g.h.NN=function(){this.J.Y("internalAbandon")};
g.h.wz=function(a){a=a.g;if(!(0,window.isNaN)(a)&&0<a&&this.o){var b=this.o;b.C&&0<a&&(b.C.o.o.aft=[a])}};
g.h.oO=function(){this.Or()};
g.h.pO=function(){this.Or()};
g.h.Or=function(){this.Z.Fb&&this.C?this.g.ya("onApiChange",this.C.getPlayerType()):this.g.ya("onApiChange")};
g.h.lO=function(){var a={volume:g.Hd(Math.floor(100*this.D.getVolume()),0,100),muted:this.D.g.muted};a.muted||q2(this,!1);this.M=g.Wb(a);this.g.ya("onVolumeChange",a)};
g.h.CN=function(){var a=g.wF();S2(this,a==this.F.element?1:0);Vna(this,!!a&&g.we(this.F.element,a))};
g.h.mP=function(){2!=this.kb&&S2(this,g.wF()==this.F.element?1:0);this.Z.Ah&&g2(this)&&!g2(this).backgroundable&&this.D&&.33>window.outerHeight*window.outerWidth/(window.screen.width*window.screen.height)&&xF(this.D.g)};
g.h.TN=function(a){3!=VU(this)&&this.g.Y("liveviewshift",a)};
g.h.lP=function(a){var b=g.mZ(this.F);g.Qg(this.tc,b)||(this.tc=b,this.C&&FU(this.C,"r"),!this.Z.experiments.g("disable_app_resize")&&this.o&&this.o!=this.C&&FU(this.o,"r"),1==this.kb&&this.Ia&&Vna(this,!0));this.Vb&&g.Qd(this.Vb,a)||(this.g.Y("appresize",a),this.Vb=a)};
g.h.Kd=function(){return this.J.Kd()};
g.h.BP=function(){T2(this,"signature")};
g.h.xO=function(){d2(this);c2(this)};
g.h.fN=function(){this.g.ya("CONNECTION_ISSUE")};
g.h.ZI=function(a){this.g.Y("heartbeatparams",a)};
g.h.mj=function(){var a=this.g.isFullscreen()||JO(this.Z),b=this.g.app.Z.Gb;return jV(this.g)?4:RT()?3:a?2:b?1:0};
g.h.W=function(){this.o.dispose();d2(this);g.Le(g.Nb(this.Ra),this.B);g.iP(this.ga);this.ga=0;this.Fa&&this.Fa.dispose();g.M.prototype.W.call(this)};
var e4={};g.v("yt.player.Application.create",function(a,b){try{var c=g.u(a)?a:"player"+g.xa(a);if(e4[c]){try{e4[c].dispose()}catch(e){g.qE(e)}e4[c]=null}var d=new X1(a,b);g.Je(d,function(){e4[c]=null});
return e4[c]=d}catch(e){throw g.qE(e),e.stack;}},void 0);
var bqa=g.x("ytcsi.tick");bqa&&bqa("pe");/*
 gapi.loader.OBJECT_CREATE_TEST_OVERRIDE &&*/
var g3=window,b3=window.document,coa=g3.location,boa=/\[native code\]/,e3=U2(g3,"gapi",{});var W2;W2=U2(g3,"___jsl",V2());U2(W2,"I",0);U2(W2,"hel",10);var Y2=U2(W2,"perf",V2());U2(Y2,"g",V2());var goa=U2(Y2,"i",V2());U2(Y2,"r",[]);V2();V2();var hoa=V2(),d3=[];d3.push(["jsl",function(a){for(var b in a)if(Object.prototype.hasOwnProperty.call(a,b)){var c=a[b];"object"==typeof c?W2[b]=U2(W2,b,[]).concat(c):U2(W2,b,c)}if(b=a.u)a=U2(W2,"us",[]),a.push(b),(b=/^https:(.*)$/.exec(b))&&a.push("http:"+b[1])}]);
var qoa=/^(\/[a-zA-Z0-9_\-]+)+$/,roa=[/\/amp\//,/\/amp$/,/^\/amp$/],toa=/^[a-zA-Z0-9\-_\.,!]+$/,noa=/^gapi\.loaded_[0-9]+$/,soa=/^[a-zA-Z0-9,._-]+$/,koa=/^https?:\/\/[a-z0-9_.-]+\.google\.com(:\d+)?\/[a-zA-Z0-9_.,!=\-\/]+$/,joa=/\/cb=/g,ioa=/\/\//g;hoa.m=function(a,b,c,d){(a=a[0])||$2("missing_hint");return"https://apis.google.com"+poa(a,b,c,d)};
var c3=(0,window.decodeURI)("%73cript"),woa=/^[-+_0-9\/A-Za-z]+={0,2}$/;e3.load=function(a,b){return Boa(function(){return f3(a,b)})};g.i3.prototype.B=function(){var a=g.x("gapi.config.update");a("googleapis.config/auth/useFirstPartyAuth",!0);a("googleapis.config/auth/useFirstPartyAuthV2",!0);var b=this.g.apiaryHost;E(g.F(b))||a("googleapis.config/root",(-1==b.indexOf("://")?"//":"")+b);b=this.g.mp;E(g.F(b))||a("googleapis.config/root-1p",(-1==b.indexOf("://")?"//":"")+b);b=g.OD("SESSION_INDEX");a("googleapis.config/sessionIndex",b);g.x("gapi.client.setApiKey")(this.g.innertubeApiKey)};
g.i3.prototype.o=function(){return{context:xG(this.g)}};
g.i3.prototype.A=function(a,b,c){var d,e=!1;0<c.timeout&&(d=g.xE(function(){e||(e=!0,c.bd&&c.bd())},c.timeout));
Foa(this,a,b,function(a){if(!e)if(e=!0,d&&g.vE(d),a)c.Mb&&c.Mb(a);else if(c.onError)c.onError()})};
var h3=null;})(_yt_player);
