var _yt_player={};(function(g){var window=this;var h,p,q,r,v,ca,da,ea,fa,w,ga,ha,ia,ka,na,oa,pa,x,qa,ra,z,sa,ta,ua,A,va,wa,Ea,Ha,Fa,Ga,Ja,Ka,Ma,B,Na,Oa,Ra,Qa,Sa,Ua,Va,Wa,Xa,Ya,Za,$a,cb,ab,eb,db,gb,ib,kb,nb,pb,ob,qb,rb,sb,tb,vb,ub,wb,Ab,Bb,yb,Cb,Db,Eb,Gb,zb,Fb,Hb,Ib,Jb,Kb,Lb,G,H,Mb,Nb,Ob,Pb,Qb,Rb,Sb,Tb,Ub,Wb,Xb,Yb,Zb,$b,Vb,ac,bc,cc,dc,ec,fc,gc,hc,ic,kc,lc,mc,nc,oc,pc,rc,uc,vc,wc,xc,zc,Bc,Ec,Fc,Hc,Jc,Kc,Lc,Oc,Pc,Qc,Rc,Nc,Sc,Uc,Xc,bd,cd,dd,Yc,gd,fd,$c,Vc,Tc,id,jd,kd,ld,md,nd,od,rd,qd,sd,td,zd,vd,Ad,Bd,Cd,Ed,Fd,Hd,Id,Jd,Ld,Md,Nd,Pd,Rd,Td,Ud,Qd,Sd,
Dd,Kd,$d,Xd,Vd,Wd,ae,Zd,Yd,Od,ce,de,ee,fe,ge,he,ie,je,I,ke,me,ne,J,pe,ve,xe,ye,ze,Be,Ce,Ee,Fe,Ie,He,Ke,Le,Me,Oe,Pe,Re,Qe,Ye,Ze,$e,af,bf,df,ef,ff,gf,hf,jf,kf,of,qf,rf,pf,tf,uf,xf,vf,yf,K,zf,Bf,Df,Ef,Ff,Gf,Hf,If,Jf,Lf,Nf,Mf,Pf,Qf,mf,Rf,Sf,Tf,Wf,Uf,Vf,Cf,Yf,Zf,Xf,lf,$f,ag,bg,cg,gg,eg,dg,hg,jg,mg,ng,og,pg,qg,rg,sg,tg,ug,vg,xg,yg,zg,Ag,Cg,Dg,Bg,Eg,Fg,Gg,Hg,Jg,Kg,Lg,Mg,Ng,Og,Pg,Qg,Rg,Sg,Tg,Ug,Vg,Xg,Yg,$g,ah,L,bh,ch,dh,eh,fh,lh,nh,oh,ph,qh,gh,jh,rh,hh,th,sh,vh,mh,uh,ih,wh,yh,zh,Ah,Bh,Ch,Dh,Eh,Fh,Gh,Hh,Ih,
Jh,Kh,Lh,Mh,Nh,Oh,Ph,Qh,Sh,Uh,Wh,Xh,Yh,Zh,ci,di,ei,fi,gi,hi,ni,mi,ji,pi,qi,vi,yi,si,xi,ui,wi,Di,Ei,Fi,Gi,Hi,Ii,Ji,Li,Mi,Ki,Qi,Ri,Ti,Ui,Vi,Wi,Si,Xi,Zi,N,Oi,ej,gj,fj,hj,ij,jj,kj,$i,oj,nj,qj,pj,rj,sj,tj,uj,vj,wj,xj,yj,zj,Aj,Bj,Cj,Dj,Ej,Gj,Ij,Jj,Kj,Lj,Mj,Nj,Oj,Pj,Qj,Sj,Tj,Rj,Uj,Vj,Wj,Zj,Yj,ck,dk,bk,ek,hk,fk,gk,ik,jk,kk,lk,mk,nk,ok,pk,qk,rk,sk,tk,uk,vk,wk,yk,zk,Ak,xk,Ck,Dk,Hk,Nk,Ik,Lk,Ok,Jk,Qk,Kk,Uk,Rk,Tk,Vk,Wk,Yk,$k,al,Zk,bl,dl,el,gl,hl,cl,il,fl,kl,nl,ol,ml,pl,jl,ll,ql,rl,sl,ul,vl,tl,wl,xl,yl,zl,Al,Bl,
Cl,ri,Dl,El,Fl,Ol,Nl,Ul,Vl,Wl,Xl,Zl,$l,am,Gl,cm,Il,Pl,Kl,Hl,Ll,Ml,Yl,Rl,Jl,em,fm,hm,jm,lm,nm,mm,km,om,pm,qm,rm,sm,tm,um,vm,wm,xm,ym,zm,Am,Bm,Cm,Em,Dm,Hm,Im,Gm,Jm,Km,Lm,Mm,Nm,Om,Pm,Rm,Sm,Qm,an,Um,dn,Tm,en,gn,$m,Zm,Ym,kn,jn,ln,mn,on,qn,rn,sn,tn,un,xn,vn,hn,Bn,wn,Cn,zn,Dn,En,Fn,Gn,Hn,In,Mn,Jn,Qn,Pn,Tn,Sn,Kn,Rn,Un,Wn,pn,On,Vn,Yn,Xn,Ln,nn,fn,Wm,$n,bo,ao,co,eo,fo,go,ho,io,jo,ko,lo,mo,no,oo,po,qo,ro,so,to,wo,xo,Ao,uo,Bo,Co,Do,yo,zo,Eo,vo,Go,Fo,Io,Jo,Ho,Ko,Lo,Mo,No,Qo,Oo,So,To,Uo,Wo,Vo,Xo,Ro,Po,Yo,lp,np,
rp,qp,up,tp,pp,sp,gp,yp,vp,Bp,Ap,dp,bp,cp,Cp,zp,fp,op,xp,hp,wp,kp,ap,ip,jp,Ep,Hp,Ip,Jp,Lp,Mp,Np,Op,Pp,Qp,Rp,Sp,Kp,Vp,Yp,Tp,bq,cq,dq,eq,gq,iq,kq,lq,mq,nq,pq,qq,rq,sq,xq,tq,wq,Aq,Bq,Cq,P,uq,Dq,Eq,Fq,Gq,Iq,Hq,Jq,Mq,Kq,Lq,Nq,Oq,Pq,R,Qq,Rq,Sq,Tq,Xq,Zq,$q,Yq,Uq,cr,dr,er,fr,hr,gr,ir,jr,rr,qr,sr,tr,ur,vr,wr,zr,Ar,Br,Hr,Ir,Nr,Or,Pr,Sr,Qr,Rr,Tr,Vr,Ur,Wr,$r,as,Zr,Yr,ds,es,fs,gs,Cr,Er,Dr,hs,Mr,js,is,Kr,ls,Jr,ns,qs,ts,vs,ws,xs,As,Bs,Cs,zs,Es,Gs,Fs,Is,Js,Ks,Ms,Ns,Os,Ps,Rs,Qs,Ts,Vs,Ss,Us,Xs,Ls,Ws,Zs,Ys,$s,at,bt,
ct,dt,ht,it,jt,kt,lt,mt,nt,ot,rt,ut,tt,wt,xt,vt,zt,At,Bt,Ct,Dt,Et,Ft,Gt,It,Ht,Jt,Kt,Lt,Mt,Nt,Ot,Pt,Qt,Rt,St,Tt,Ut,Vt,Wt,Xt,Yt,Zt,$t,bu,cu,eu,du,fu,gu,iu,hu,ju,ku,mu,nu,ou,pu,qu,ru,tu,uu,vu,wu,xu,yu,zu,Bu,Au,Eu,Gu,Hu,Iu,Lu,Mu,Ju,Ku,Ou,Pu,Qu,Su,Ru,Tu,Uu,Wu,Xu,Yu,av,dv,ev,$u,Zu,fv,kv,lv,mv,jv,hv,iv,gv,pv,qv,ov,tv,uv,vv,wv,xv,yv,Av,zv,Bv,Cv,Dv,Fv,Gv,Hv,Iv,Jv,Lv,Mv,Ov,Qv,Vv,Xv,Yv,Tv,Wv,Nv,Sv,Pv,Zv,Rv,Uv,$v,aw,bw,cw,ew,dw,fw,gw,hw,iw,qw,rw,mw,vw,ww,lw,nw,ow,xw,pw,yw,zw,tw,Cw,Dw,Ew,Fw,Gw,Hw,Iw,Lw,Mw,Ow,
Nw,Rw,Pw,Qw,Sw,Uw,Ww,Xw,Yw,Zw,$w,bx,cx,dx,ex,gx,hx,ix,jx,kx,ox,qx,sx,rx,tx,px,ux,vx,xx,wx,zx,Ax,Bx,Cx,Dx,Ex,Fx,Gx,Hx,Ix,Jx,Kx,Mx,Nx,Px,Ox,Qx,aaa,Rx,Sx,Tx,Ux,Vx,Wx,Xx,Yx,caa,Zx,$x,ay,by,cy,dy,ey,daa,fy,gy,hy,iy,jy,ky,ly,ny,my,eaa,oy,qy,ry,sy,ty,uy,gaa,haa,iaa,jaa,kaa,laa,wy,yy,zy,Ay,By,maa,Cy,Dy,Ey,Fy,Vw,Gy,naa,oaa,Hy,Ny,My,Oy,Iy,Py,Qy,Ry,Sy,raa,saa,taa,Wy,uaa,Ty,Uy,vaa,Yy,Xy,Zy,qaa,waa,$y,Vy,az,bz,cz,dz,ez,gz,hz,jz,kz,mz,nz,oz,pz,qz,rz,sz,tz,uz,vz,wz,xz,yz,zz,Az,Fz,Ez,Cz,Hz,Gz,Jz,Kz,Lz,Nz,Mz,Baa,
Oz,Pz,Qz,Rz,Sz,Tz,Uz,Vz,Wz,Xz,Daa,Yz,Zz,Eaa,Faa,Gaa,aA,$z,bA,cA,dA,eA,fA,gA,Haa,kA,iA,nA,mA,wA,Maa,EA,Taa,DA,CA,vA,QA,RA,OA,Nu,WA,XA,YA,ZA,xr,LA,$A,PA,MA,bB,dB,Yaa,eB,fB,gB,hB,iB,jB,Zaa,kB,mB,lB,$aa,nB,aba,oB,bba,cba,pB,qB,dba,rB,vB,eba,wB,xB,yB,zB,AB,BB,CB,DB,FB,EB,GB,IB,QB,MB,JB,KB,LB,NB,OB,PB,UB,TB,SB,kba,WB,VB,XB,YB,$B,bC,ZB,aC,eC,fC,gC,iC,lba,jC,mba,nba,oba,pba,qba,cC,mC,nC,oC,pC,rba,sba,tba,rC,sC,tC,uC,vC,wC,xC,zC,uba,pr,vba,AC,BC,wba,xba,CC,yba,zba,JC,IC,EC,KC,MC,RC,TC,UC,SC,ZC,bD,cD,aD,QC,
dD,PC,NC,OC,VC,XC,$C,YC,Eba,Fba,Gba,hD,iD,jD,kD,Hba,Iba,qD,oD,nD,pD,tD,rD,lD,Jba,mD,Kba,sD,Lba,uD,vD,wD,xD,yD,zD,AD,Mba,FD,ID,BD,GD,ND,KD,HD,PD,MD,JD,LD,OD,CD,QD,Nba,RD,Qba,DD,ED,SD,TD,UD,WD,YD,ZD,aE,bE,Rba,cE,$D,VD,XD,dE,eE,fE,Tba,Uba,Vba,Wba,Xba,Sba,hE,oE,nE,qE,sE,wE,tE,yE,zE,BE,DE,AE,CE,GE,Yba,Zba,IE,JE,FE,KE,LE,EE,ME,NE,OE,HE,PE,QE,RE,$ba,vE,SE,aca,TE,gE,UE,iE,pE,jE,kE,mE,lE,bca,cca,VE,XE,YE,WE,ZE,$E,bF,cF,dF,eF,fF,hF,uE,iF,rE,gF,eca,lF,mF,nF,oF,rF,uF,vF,wF,fca,zF,AF,CF,BF,DF,EF,IF,GF,HF,FF,JF,
yF,KF,LF,MF,pF,NF,OF,qF,tF,PF,RF,SF,QF,UF,VF,gca,WF,XF,hca,YF,ZF,ica,$F,jca,kca,bG,lca,aG,cG,nca,oca,dG,fG,hG,gG,iG,jG,pca,kG,mG,lG,qca,pG,yq,qG,rca,rG,sG,Du,tG,Vu,lu,uG,bv,vG,wG,Fu,oG,xG,yG,zG,AG,BG,tca,CG,DG,EG,aF,GG,FG,uca,IG,JG,KG,LG,MG,NG,OG,qC,PG,vca,QG,RG,wca,sB,xca,yca,zca,SG,TG,uB,xE,UG,VG,Aca,WG,Bca,Cca,Gca,Hca,Dca,Eca,Fca,XG,YG,ZG,$G,aH,xA,AA,BA,bH,Jca,Ica,cH,Kca,dH,fH,gH,Lca,hH,iH,jH,Mca,Nca,kH,Oca,Qca,Rca,mH,nH,oH,pH,qH,sH,uH,tH,wH,vH,rH,xH,yH,zH,AH,Sca,Tca,Uca,Vca,BH,CH,Wca,DH,EH,Xca,
FH,GH,JH,HH,LH,MH,bda,cda,QH,NH,RH,OH,VH,dda,WH,XH,YH,ZH,$H,aI,bI,cI,PH,$ca,ada,Yca,Zca,eda,us,ps,dI,eI,fI,gI,TH,SH,UH,hI,jI,qI,mI,sI,tI,wI,vI,iI,CI,BI,rI,EI,xI,FI,HI,GI,NI,OI,PI,QI,zI,RI,SI,AI,II,nI,LI,JI,TI,DI,ida,WI,oI,gda,XI,jda,ZI,pI,$I,yI,hda,kda,lI,UI,KI,YI,bJ,aJ,dJ,T,cJ,eJ,fJ,lda,jq,iJ,kJ,lJ,S,os,Ky,mJ,oJ,yr,pJ,qJ,rJ,rv,uw,Lr,sJ,hC,Ly,rs,vJ,wJ,xJ,zJ,hq,kw,AJ,mda,BJ,CJ,nda,DJ,EJ,FJ,GJ,HJ,oda,IJ,JJ,pda,qda,rda,KJ,LJ,sda,MJ,NJ,OJ,PJ,QJ,RJ,SJ,tda,TJ,uda,UJ,VJ,WJ,vda,wda,YJ,XJ,ZJ,$J,xda,yda,zda,
aK,bK,Bda,Ada,Cda,Dda,cK,Eda,dK,Fda,eK,fK,gK,hK,Gda,jK,Hda,iK,kK,lK,Ida,mK,nK,Jda,oK,pK,rK,qK,sK,Kda,kF,jF,vK,wK,gD,eD,fD,xK,uK,tK,xF,Lda,Mda,yK,zK,CK,DK,EK,FK,BK,GK,Nda,Oda,Pda,Qda,AK,HK,Rda,IK,JK,KK,LK,MK,NK,OK,PK,QK,RK,SK,UK,TK,VK,WK,XK,YK,ZK,$K,aL,jJ,bL,hJ,eL,fL,gL,hL,iL,jL,kL,lL,mL,pL,oL,qL,rL,sL,tL,uL,vL,Sda,Tda,wL,xL,yL,Vda,Uda,AL,Wda,BL,CL,DL,FL,GL,HL,IL,Zda,JL,KL,LL,nJ,$da,Yda,ML,NL,OL,aea,bea,QL,cea,RL,SL,PL,TL,UL,VL,dea,fea,ZL,gea,hea,WL,eea,XL,aM,bM,$L,dM,cM,jea,iM,eM,jM,lM,mM,kM,oM,mea,
pM,rM,sM,tM,qM,uM,wM,vM,xM,zM,AM,DM,BM,FM,HM,IM,JM,KM,LM,MM,OM,NM,PM,QM,RM,UM,oea,TM,VM,YM,V,ZM,aN,$M,bN,cN,dN,eN,fN,gN,hN,iN,jN,pea,kN,lN,mN,nN,oN,pN,rN,sN,tN,uN,vN,wN,xN,qea,rea,yN,zN,sea,tea,uea,BN,DN,CN,EN,FN,GN,HN,IN,wea,vea,JN,KN,MN,LN,NN,ON,QN,SN,PN,TN,UN,ZN,yea,aO,bO,cO,eO,fO,iO,kO,lO,zea,oO,sO,tO,Bea,uO,vO,wO,xO,yO,Cea,Dea,Eea,BO,Jea,EO,Gea,Hea,Fea,Iea,FO,zO,Lea,HO,AO,CO,IO,Mea,JO,KO,LO,MO,NO,Nea,OO,PO,Oea,Rea,Qea,RO,SO,QO,mO,UO,Sea,Uea,WO,Tea,Vea,XO,YO,ZO,aP,$O,bP,VO,cP,Wea,Zea,Yea,$ea,
eP,afa,bfa,fP,gP,hP,iP,cfa,jP,lP,kP,efa,yP,vP,sP,gfa,AP,ffa,xP,mP,LP,jfa,BP,zP,kfa,lfa,mfa,nfa,ifa,DP,PP,QP,pfa,RP,SP,TP,UP,WP,XP,VP,qfa,YP,rfa,ZP,aQ,bQ,sfa,cQ,tfa,fQ,iQ,hQ,jQ,ufa,kQ,mQ,zfa,vfa,qQ,Bfa,Afa,rQ,sQ,uQ,tQ,Gfa,vQ,yQ,zQ,CQ,EQ,DQ,Mfa,GQ,BQ,HQ,Nfa,JQ,IQ,Ofa,KQ,MQ,OQ,NQ,Pfa,PQ,Qfa,QQ,RQ,Rfa,SQ,Sfa,Tfa,Ufa,Vfa,TQ,Wfa,UQ,Xfa,VQ,WQ,XQ,YQ,Zfa,ZQ,$Q,bR,dR,eR,aR,gR,$fa,aga,fR,hR,iR,jR,kR,dga,nR,oR,pR,Y,rR,sR,tR,uR,vR,wR,xR,AR,BR,ega,FR,GR,iga,IR,OR,PR,RR,ER,NR,LR,oga,pga,qga,rga,SR,TR,sga,tga,UR,
WR,VR,XR,uga,vga,wga,xga,ZR,bS,cS,dS,eS,fS,gS,hS,iS,yga,jS,kS,mS,lS,oS,nS,pS,qS,zga,uS,vS,wS,xS,yS,AS,BS,CS,ES,FS,DS,GS,HS,IS,JS,KS,LS,MS,NS,Aga,QS,RS,OS,PS,TS,XS,US,VS,SS,WS,Bga,YS,ZS,$S,aT,bT,cT,dT,fT,gT,eT,Cga,jT,kT,Dga,lT,Ega,Fga,Gga,Hga,mT,nT,oT,pT,qT,rT,sT,tT,uT,vT,Iga,wT,xT,yT,zT,AT,BT,CT,ET,FT,Kga,Lga,HT,IT,LT,JT,KT,MT,NT,Nga,Oga,OT,PT,VT,WT,QT,XT,Sga,ZT,Tga,RT,Rga,ST,TT,UT,Qga,eU,fU,gU,lU,hU,$ga,aha,mU,cha,Yga,oU,Zga,qU,bha,rU,sU,tU,fha,gha,hha,vU,uU,wU,iha,jha,xU,yU,kha,AU,BU,CU,DU,lha,
mha,zU,EU,FU,GU,HU,IU,JU,KU,LU,MU,PU,OU,NU,pha,QU,iT,hT,TU,sha,SU,RU,UU,VU,WU,XU,YU,ZU,$U,uha,jV,nV,pV,aU,vV,zV,AV,BV,zha,CV,qV,Aha,DV,EV,dU,GV,IV,Wga,JV,$T,Xga,HV,KV,LV,MV,NV,OV,PV,QV,Dha,Eha,Cha,Fha,FV,Gha,aW,Hha,bW,oV,cW,dW,eW,fW,gW,Iha,hW,uV,WV,iW,bU,jW,kW,cU,tV,lW,yV,mW,nW,rV,wV,ZV,Bha,oW,pW,qW,sW,rW,Kha,uW,tW,Mha,Nha,Lha,vW,wW,xW,yW,zW,Oha,AW,Sha,Pha,Qha,BW,Tha,Uha,CW,DW,FW,GW,HW,IW,Vha,Wha,Xha,Yha,JW,KW,Zha,LW,$ha,MW,NW,OW,bia,PW,SW,TW,UW,cia,VW,WW,eia,dia,XW,YW,ZW,$W,aX,RV,SV,VV,bX,fia,gia,
TV,UV,cX,hia,aV,XV,YV,iX,jX,lV,hV,hX,lX,cV,dV,fV,bV,iV,gV,mX,kV,mV,gX,eV,pX,qX,sX,iia,tX,uX,vX,wX,xX,yX,zX,AX,BX,CX,DX,jia,EX,FX,GX,HX,IX,JX,KX,kia,LX,MX,NX,OX,lia,PX,QX,RX,SX,UX,TX,mia,VX,WX,nia,oia,XX,YX,$X,aY,qia,bY,pia,uia,tia,via,sia,ria,xia,cY,yia,eY,ZX,Aia,wia,Dia,Cia,Bia,Eia,Fia,dY,fY,Gia,Jia,Iia,Kia,Lia,Hia,Nia,Pia,Oia,Ria,iY,jY,kY,lY,mY,nY,oY,pY,qY,rY,sY,uY,vY,wY,BY,AY,FY,GY,yY,HY,IY,JY,KY,xY,zY,CY,MY,Yia,NY,Zia,OY,PY,QY,RY,SY,TY,$ia,UY,aja,bja,VY,cja,dja,WY,XY,eja,gja,hja,ija,jja,nU,kja,
lja,YY,ZY,nja,aZ,cZ,rja,$Y,sja,dZ,mja,uja,vja,wja,fZ,eZ,gZ,xja,yja,hZ,iZ,Aja,Bja,Cja,mZ,nZ,oZ,pZ,qZ,rZ,sZ,Dja,Eja,tZ,uZ,vZ,xZ,wZ,yZ,zZ,BZ,AZ,CZ,DZ,EZ,Hja,HZ,Ija,IZ,Jja,JZ,KZ,GZ,Kja,LZ,MZ,FZ,NZ,OZ,PZ,QZ,SZ,Lja,RZ,TZ,UZ,Mja,VZ,WZ,Nja,XZ,YZ,Z,b_,$Z,ZZ,Oja,c_,d_,e_,g_,Pja,h_,i_,j_,k_,Qja,m_,n_,o_,p_,q_,r_,Rja,s_,t_,u_,Sja,w_,x_,y_,z_,A_,B_,C_,D_,E_,F_,G_,H_,J_,K_,L_,Tja,Uja,M_,N_,Q_,O_,Vja,Wja,Xja,R_,S_,T_,U_,V_,W_,X_,Y_,Z_,$_,a0,b0,$ja,Zja,d0,c0,e0,f0,g0,aka,bka,h0,j0,dka,cka,k0,fka,m0,gka,l0,q0,r0,
s0,ika,jka,t0,u0,kka,v0,w0,lka,y0,mka,z0,A0,C0,D0,B0,oka,E0,G0,H0,F0,I0,J0,pka,K0,qka,Q0,L0,M0,O0,V0,R0,T0,S0,Y0,U0,W0,rka,P0,N0,Z0,$0,tka,a1,uka,ska,vka,wka,c1,b1,d1,e1,jZ,yka,zka,h1,i1,j1,g1,k1,f1,Aka,kZ,l1,m1,n1,o1,p1,q1,s1,t1,Bka,Cka,u1,v1,w1,x1,y1,z1,C1,Fka,Dka,Eka,Gka,D1,G1,E1,H1,K1,L1,N1,Q1,P1,O1,S1,Hka,U1,T1,W1,V1,X1,Y1,Z1,$1,a2,b2,c2,Ika,d2,Lka,e2,f2,h2,i2,Mka,Nka,j2,Oka,k2,n2,m2,l2,o2,q2,s2,v2,w2,Pka,x2,y2,Qka,z2,A2,B2,C2,D2,E2,F2,G2,H2,I2,N2,Rka,J2,O2,P2,Q2,R2,L2,S2,T2,U2,V2,X2,Z2,a3,$2,
b3,W2,Y2,e3,d3,f3,g3,Tka,i3,h3,j3,Uka,Xka,Vka,Yka,Wka,l3,Zka,m3,n3,o3,$ka,r3,q3,v3,p3,K2,w3,x3,ala,y3,B3,bla,z3,s3,A3,u3,t3,F3,G3,M2,E3,D3,H3,I3,J3,K3,ela,ila,dla,fla,hla,M3,O3,P3,Q3,R3,S3,T3,U3,V3,W3,jla,X3,Z3,Y3,$3,kla,a4,lla,b4,c4,f4,g4,h4,i4,j4,mla,nla,e4,l4,n4,ola,o4,m4,p4,q4,r4,pla,qla,sla,rla,s4,t4,u4,tla,ula,vla,v4,wla,y4,B4,C4,w4,z4,A4,x4,D4,B1,A1,F1,G4,H4,I4,J4,M4,p2,P4,F4,Q4,T4,d4,R4,u2,t2,C3,V4,N3,W4,Y4,Z4,b5,X4,e5,g5,h5,i5,c5,d5,f5,$4,j5,a5,k5,l5,m5,Ala,zla,p5,r5,Jy,s5,q5,u5,r2,n5,v5,
w5,x5,y5,z5,B5,C5,A5,E5,G5,I5,Cla,Dla,J5,K5,Ela,L5,M5,N5,uI,MI,O5,vq,kI,Q5,VI,R5,K4,S5,U5,nL,V5,W5,X5,Y5,Z5,$5,b6,c6,d6,a6,e6,Ev,g6,h6,i6,j6,k6,l6,n6,m6,o6,q6,r6,p6,s6,t6,u6,Fla,v6,w6,x6,y6,B6,C6,A6,z6,E6,D6,F6,G6,H6,I6,K6,M6,J6,O6,N6,P6,Q6,R6,S6,T6,U6,Gla,V6,W6,X6,Y6,Z6,$6,a7,b7,d7,c7,e7,f7,g7,h7,i7,k7,j7,m7,l7,n7,o7,p7,q7,r7,v7,t7,s7,u7,x7,w7,y7,A7,C7,D7,B7,E7,F7,G7,H7,J7,N7,I7,Q7,R7,S7,L7,T7,K7,V7,P7,M7,U7,W7,O7,Y7,X7,Z7,$7,a8,b8,c8,d8,e8,f8,g8,h8,j8,i8,k8,l8,m8,n8,o8,p8,r8,s8,t8,u8,q8,v8,w8,x8,
z8,y8,A8,B8,C8,D8,E8,F8,H8,G8,I8,K8,f6,M8,L8,J8,N8,z7,P8,R8,Q8,S8,U8,tJ,O8,V8,uJ,T8,W8,Mla,Ola,Dra,$8,Fra,c9,Era,d9,e9,f9,g2,O4,a9,N4,gJ,g9,i9,h9,j9,E4,k9,l9,Gra,Hra,p9,o9,s9,t9,Y8,u9,v9,w9,x9,b9,n9,m9,A9,B9,q9,r9,D9,E9,C9,G9,H9,J9,I9,dL,K9,L9,M9,z9,N9,y9,P9,O9,fq,U4,R9,Q9,S9,T9,yJ,S4,U9,F9,Z8,V9,Ira,W9,X9,Y9,Z9,$9,yn,aa,la,ma,C;p=function(a){return void 0!==a};
g.ba=function(a,b,c){a=a.split(".");c=c||aa;a[0]in c||!c.execScript||c.execScript("var "+a[0]);for(var d;a.length&&(d=a.shift());)!a.length&&p(b)?c[d]=b:c[d]?c=c[d]:c=c[d]={}};
q=function(a,b){for(var c=a.split("."),d=b||aa,e;e=c.shift();)if(null!=d[e])d=d[e];else return null;return d};
r=function(){};
v=function(){throw Error("unimplemented abstract method");};
ca=function(a){a.getInstance=function(){return a.$b?a.$b:a.$b=new a}};
da=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};
ea=function(a){return"array"==da(a)};
fa=function(a){var b=da(a);return"array"==b||"object"==b&&"number"==typeof a.length};
w=function(a){return"string"==typeof a};
ga=function(a){return"boolean"==typeof a};
ha=function(a){return"number"==typeof a};
ia=function(a){return"function"==da(a)};
ka=function(a){var b=typeof a;return"object"==b&&null!=a||"function"==b};
na=function(a){return a[la]||(a[la]=++ma)};
oa=function(a,b,c){return a.call.apply(a.bind,arguments)};
pa=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)}};
x=function(a,b,c){x=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?oa:pa;return x.apply(null,arguments)};
qa=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)}};
ra=function(a,b){for(var c in b)a[c]=b[c]};
z=function(a,b){function c(){}
c.prototype=b.prototype;a.M=b.prototype;a.prototype=new c;a.prototype.constructor=a;a.NQ=function(a,c,f){for(var k=Array(arguments.length-2),l=2;l<arguments.length;l++)k[l-2]=arguments[l];return b.prototype[c].apply(a,k)}};
sa=function(a){if(Error.captureStackTrace)Error.captureStackTrace(this,sa);else{var b=Error().stack;b&&(this.stack=b)}a&&(this.message=String(a))};
ta=function(a,b){return 0==a.lastIndexOf(b,0)};
ua=function(a,b){var c=a.length-b.length;return 0<=c&&a.indexOf(b,c)==c};
A=function(a){return/^[\s\xa0]*$/.test(a)};
va=function(a){return(0,window.encodeURIComponent)(String(a))};
wa=function(a){return(0,window.decodeURIComponent)(a.replace(/\+/g," "))};
Ea=function(a){if(!xa.test(a))return a;-1!=a.indexOf("&")&&(a=a.replace(ya,"&amp;"));-1!=a.indexOf("<")&&(a=a.replace(za,"&lt;"));-1!=a.indexOf(">")&&(a=a.replace(Aa,"&gt;"));-1!=a.indexOf('"')&&(a=a.replace(Ba,"&quot;"));-1!=a.indexOf("'")&&(a=a.replace(Ca,"&#39;"));-1!=a.indexOf("\x00")&&(a=a.replace(Da,"&#0;"));return a};
Ha=function(a){return-1!=a.indexOf("&")?"document"in aa?Fa(a):Ga(a):a};
Fa=function(a){var b={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"'},c;c=aa.document.createElement("div");return a.replace(Ia,function(a,e){var f=b[a];if(f)return f;if("#"==e.charAt(0)){var k=Number("0"+e.substr(1));(0,window.isNaN)(k)||(f=String.fromCharCode(k))}f||(c.innerHTML=a+" ",f=c.firstChild.nodeValue.slice(0,-1));return b[a]=f})};
Ga=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 d=Number("0"+c.substr(1));if(!(0,window.isNaN)(d))return String.fromCharCode(d)}return a}})};
Ja=function(a,b){a.length>b&&(a=a.substring(0,b-3)+"...");return a};
Ka=function(a,b){return-1!=a.toLowerCase().indexOf(b.toLowerCase())};
Ma=function(a,b,c){a=p(c)?a.toFixed(c):String(a);c=a.indexOf(".");-1==c&&(c=a.length);return La("0",Math.max(0,b-c))+a};
B=function(a){return null==a?"":String(a)};
Na=function(a){return Array.prototype.join.call(arguments,"")};
Oa=function(){return Math.floor(2147483648*Math.random()).toString(36)+Math.abs(Math.floor(2147483648*Math.random())^C()).toString(36)};
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};
Sa=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_"+Ta++};
Va=function(a){var b=Number(a);return 0==b&&A(a)?window.NaN:b};
Wa=function(a){return String(a).replace(/\-([a-z])/g,function(a,c){return c.toUpperCase()})};
Xa=function(a){var b=w(void 0)?"undefined".replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08"):"\\s";return a.replace(new RegExp("(^"+(b?"|["+b+"]+":"")+")([a-z])","g"),function(a,b,e){return b+e.toUpperCase()})};
Ya=function(a){(0,window.isFinite)(a)&&(a=String(a));return w(a)?/^\s*-?0x/i.test(a)?(0,window.parseInt)(a,16):(0,window.parseInt)(a,10):window.NaN};
Za=function(a,b,c){a=a.split(b);for(var d=[];0<c&&a.length;)d.push(a.shift()),c--;a.length&&d.push(a.join(b));return d};
$a=function(a){return a[a.length-1]};
cb=function(a,b,c){b=ab(a,b,c);return 0>b?null:w(a)?a.charAt(b):a[b]};
ab=function(a,b,c){for(var d=a.length,e=w(a)?a.split(""):a,f=0;f<d;f++)if(f in e&&b.call(c,e[f],f,a))return f;return-1};
eb=function(a,b){var c=db(a,b,void 0);return 0>c?null:w(a)?a.charAt(c):a[c]};
db=function(a,b,c){for(var d=w(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};
gb=function(a,b){return 0<=fb(a,b)};
ib=function(a){return 0==a.length};
kb=function(a){if(!ea(a))for(var b=a.length-1;0<=b;b--)delete a[b];a.length=0};
nb=function(a,b){gb(a,b)||a.push(b)};
pb=function(a,b){var c=fb(a,b),d;(d=0<=c)&&ob(a,c);return d};
ob=function(a,b){Array.prototype.splice.call(a,b,1)};
qb=function(a,b){var c=ab(a,b,void 0);0<=c&&ob(a,c)};
rb=function(a){return Array.prototype.concat.apply(Array.prototype,arguments)};
sb=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[]};
tb=function(a,b){for(var c=1;c<arguments.length;c++){var d=arguments[c];if(fa(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)}};
vb=function(a,b,c,d){Array.prototype.splice.apply(a,ub(arguments,1))};
ub=function(a,b,c){return 2>=arguments.length?Array.prototype.slice.call(a,b):Array.prototype.slice.call(a,b,c)};
wb=function(a,b,c){function d(a){return ka(a)?"o"+na(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};
Ab=function(a,b,c){return yb(a,c||zb,!1,b)};
Bb=function(a,b){return yb(a,b,!0,void 0,void 0)};
yb=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};
Cb=function(a,b){a.sort(b||zb)};
Db=function(a,b,c){var d=c||zb;Cb(a,function(a,c){return d(b(a),b(c))})};
Eb=function(a,b){Db(a,function(a){return a[b]},void 0)};
Gb=function(a,b){if(!fa(a)||!fa(b)||a.length!=b.length)return!1;for(var c=a.length,d=Fb,e=0;e<c;e++)if(!d(a[e],b[e]))return!1;return!0};
zb=function(a,b){return a>b?1:a<b?-1:0};
Fb=function(a,b){return a===b};
Hb=function(a,b,c){c=Ab(a,b,c);0>c&&vb(a,-(c+1),0,b)};
Ib=function(a,b,c){var d={};F(a,function(e,f){d[b.call(c,e,f,a)]=e});
return d};
Jb=function(a){for(var b=[],c=0;c<a;c++)b[c]=0;return b};
Kb=function(a){for(var b=[],c=0;c<arguments.length;c++){var d=arguments[c];if(ea(d))for(var e=0;e<d.length;e+=8192)for(var f=Kb.apply(null,ub(d,e,e+8192)),k=0;k<f.length;k++)b.push(f[k]);else b.push(d)}return b};
Lb=function(a){for(var b=Math.random,c=a.length-1;0<c;c--){var d=Math.floor(b()*(c+1)),e=a[c];a[c]=a[d];a[d]=e}};
G=function(){this.gb=this.gb;this.La=this.La};
H=function(a,b){Mb(a,qa(Nb,b))};
Mb=function(a,b){a.gb?p(void 0)?b.call(void 0):b():(a.La||(a.La=[]),a.La.push(p(void 0)?x(b,void 0):b))};
Nb=function(a){a&&"function"==typeof a.dispose&&a.dispose()};
Ob=function(a){for(var b=0,c=arguments.length;b<c;++b){var d=arguments[b];fa(d)?Ob.apply(null,d):Nb(d)}};
Pb=function(a,b,c){for(var d in a)b.call(c,a[d],d,a)};
Qb=function(a,b,c){var d={},e;for(e in a)b.call(c,a[e],e,a)&&(d[e]=a[e]);return d};
Rb=function(a,b){var c={},d;for(d in a)c[d]=b.call(void 0,a[d],d,a);return c};
Sb=function(a,b,c){for(var d in a)if(b.call(c,a[d],d,a))return!0;return!1};
Tb=function(a,b){for(var c in a)if(!b.call(void 0,a[c],c,a))return!1;return!0};
Ub=function(a){var b=0,c;for(c in a)b++;return b};
Wb=function(a,b){return Vb(a,b)};
Xb=function(a){var b=[],c=0,d;for(d in a)b[c++]=a[d];return b};
Yb=function(a){var b=[],c=0,d;for(d in a)b[c++]=d;return b};
Zb=function(a,b){for(var c=fa(b),d=c?b:arguments,c=c?0:1;c<d.length&&(a=a[d[c]],p(a));c++);return a};
$b=function(a,b){return null!==a&&b in a};
Vb=function(a,b){for(var c in a)if(a[c]==b)return!0;return!1};
ac=function(a,b,c){for(var d in a)if(b.call(c,a[d],d,a))return d};
bc=function(a,b){var c=ac(a,b,void 0);return c&&a[c]};
cc=function(a){for(var b in a)return!1;return!0};
dc=function(a){for(var b in a)delete a[b]};
ec=function(a,b){b in a&&delete a[b]};
fc=function(a,b,c){return null!==a&&b in a?a[b]:c};
gc=function(a,b){for(var c in a)if(!(c in b)||a[c]!==b[c])return!1;for(c in b)if(!(c in a))return!1;return!0};
hc=function(a){var b={},c;for(c in a)b[c]=a[c];return b};
ic=function(a){var b=da(a);if("object"==b||"array"==b){if(ia(a.clone))return a.clone();var b="array"==b?[]:{},c;for(c in a)b[c]=ic(a[c]);return b}return a};
kc=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<jc.length;f++)c=jc[f],Object.prototype.hasOwnProperty.call(d,c)&&(a[c]=d[c])}};
lc=function(a){var b=arguments.length;if(1==b&&ea(arguments[0]))return lc.apply(null,arguments[0]);for(var c={},d=0;d<b;d++)c[arguments[d]]=!0;return c};
mc=function(a,b){this.type=a;this.currentTarget=this.target=b;this.g=!1;this.jt=!0};
nc=function(a){a.stopPropagation()};
oc=function(a){oc[" "](a);return a};
pc=function(a,b){try{return oc(a[b]),!0}catch(c){}return!1};
rc=function(a,b){var c=qc;return Object.prototype.hasOwnProperty.call(c,a)?c[a]:c[a]=b(a)};
uc=function(a){return-1!=sc.indexOf(a)};
vc=function(){return(uc("Chrome")||uc("CriOS"))&&!uc("Edge")};
wc=function(){return uc("iPhone")&&!uc("iPod")&&!uc("iPad")};
xc=function(){var a=aa.document;return a?a.documentMode:void 0};
zc=function(a){return rc(a,function(){return 0<=Ra(yc,a)})};
Bc=function(a){return Number(Ac)>=a};
Ec=function(a){return Cc?"webkit"+a:Dc?"o"+a.toLowerCase():a.toLowerCase()};
Fc=function(a,b){mc.call(this,a?a.type:"");this.relatedTarget=this.currentTarget=this.target=null;this.charCode=this.keyCode=this.button=this.screenY=this.screenX=this.clientY=this.clientX=0;this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1;this.b=this.state=null;a&&this.init(a,b)};
Hc=function(a){return!(!a||!a[Gc])};
Jc=function(a,b,c,d,e){this.listener=a;this.b=null;this.src=b;this.type=c;this.ag=!!d;this.Qd=e;this.key=++Ic;this.Gg=this.Ei=!1};
Kc=function(a){a.Gg=!0;a.listener=null;a.b=null;a.src=null;a.Qd=null};
Lc=function(a){this.src=a;this.b={};this.g=0};
Oc=function(a,b,c,d,e,f){var k=b.toString();b=a.b[k];b||(b=a.b[k]=[],a.g++);var l=Nc(b,c,e,f);-1<l?(a=b[l],d||(a.Ei=!1)):(a=new Jc(c,a.src,k,!!e,f),a.Ei=d,b.push(a));return a};
Pc=function(a,b){var c=b.type;if(!(c in a.b))return!1;var d=pb(a.b[c],b);d&&(Kc(b),0==a.b[c].length&&(delete a.b[c],a.g--));return d};
Qc=function(a){var b=0,c;for(c in a.b){for(var d=a.b[c],e=0;e<d.length;e++)++b,Kc(d[e]);delete a.b[c];a.g--}};
Rc=function(a,b,c,d,e){a=a.b[b.toString()];b=-1;a&&(b=Nc(a,c,d,e));return-1<b?a[b]:null};
Nc=function(a,b,c,d){for(var e=0;e<a.length;++e){var f=a[e];if(!f.Gg&&f.listener==b&&f.ag==!!c&&f.Qd==d)return e}return-1};
Sc=function(a,b,c,d,e){if(ea(b)){for(var f=0;f<b.length;f++)Sc(a,b[f],c,d,e);return null}c=Tc(c);return Hc(a)?a.O(b,c,d,e):Uc(a,b,c,!1,d,e)};
Uc=function(a,b,c,d,e,f){if(!b)throw Error("Invalid event type");var k=!!e,l=Vc(a);l||(a[Wc]=l=new Lc(a));c=Oc(l,b,c,d,e,f);if(c.b)return c;d=Xc();c.b=d;d.src=a;d.listener=c;if(a.addEventListener)a.addEventListener(b.toString(),d,k);else if(a.attachEvent)a.attachEvent(Yc(b.toString()),d);else throw Error("addEventListener and attachEvent are unavailable.");Zc++;return c};
Xc=function(){var a=$c,b=ad?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};
bd=function(a,b,c,d,e){if(ea(b)){for(var f=0;f<b.length;f++)bd(a,b[f],c,d,e);return null}c=Tc(c);return Hc(a)?Oc(a.jd,String(b),c,!0,d,e):Uc(a,b,c,!0,d,e)};
cd=function(a,b,c,d,e){if(ea(b))for(var f=0;f<b.length;f++)cd(a,b[f],c,d,e);else c=Tc(c),Hc(a)?a.sa(b,c,d,e):a&&(a=Vc(a))&&(b=Rc(a,b,c,!!d,e))&&dd(b)};
dd=function(a){if(ha(a)||!a||a.Gg)return!1;var b=a.src;if(Hc(b))return Pc(b.jd,a);var c=a.type,d=a.b;b.removeEventListener?b.removeEventListener(c,d,a.ag):b.detachEvent&&b.detachEvent(Yc(c),d);Zc--;(c=Vc(b))?(Pc(c,a),0==c.g&&(c.src=null,b[Wc]=null)):Kc(a);return!0};
Yc=function(a){return a in ed?ed[a]:ed[a]="on"+a};
gd=function(a,b,c,d){var e=!0;if(a=Vc(a))if(b=a.b[b.toString()])for(b=b.concat(),a=0;a<b.length;a++){var f=b[a];f&&f.ag==c&&!f.Gg&&(f=fd(f,d),e=e&&!1!==f)}return e};
fd=function(a,b){var c=a.listener,d=a.Qd||a.src;a.Ei&&dd(a);return c.call(d,b)};
$c=function(a,b){if(a.Gg)return!0;if(!ad){var c=b||q("window.event"),d=new Fc(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 f=a.type,k=c.length-1;!d.g&&0<=k;k--){d.currentTarget=c[k];var l=gd(c[k],f,!0,d),e=e&&l}for(k=0;!d.g&&k<c.length;k++)d.currentTarget=c[k],l=gd(c[k],f,!1,d),e=e&&l}return e}return fd(a,new Fc(b,this))};
Vc=function(a){a=a[Wc];return a instanceof Lc?a:null};
Tc=function(a){if(ia(a))return a;a[hd]||(a[hd]=function(b){return a.handleEvent(b)});
return a[hd]};
id=function(){G.call(this);this.jd=new Lc(this);this.Na=this;this.ua=null};
jd=function(a,b,c,d){b=a.jd.b[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.Gg&&k.ag==c){var l=k.listener,m=k.Qd||k.src;k.Ei&&Pc(a.jd,k);e=!1!==l.call(m,d)&&e}}return e&&0!=d.jt};
kd=function(a,b,c){this.B=c;this.o=a;this.A=b;this.g=0;this.b=null};
ld=function(a,b){a.A(b);a.g<a.B&&(a.g++,b.next=a.b,a.b=b)};
md=function(a){return function(){return a}};
nd=function(a){var b;b=b||0;return function(){return a.apply(this,Array.prototype.slice.call(arguments,0,b))}};
od=function(a){aa.setTimeout(function(){throw a;},0)};
rd=function(a,b){var c=a;b&&(c=x(a,b));!ia(aa.setImmediate)||aa.Window&&aa.Window.prototype&&!uc("Edge")&&aa.Window.prototype.setImmediate==aa.setImmediate?(pd||(pd=qd()),pd(c)):aa.setImmediate(c)};
qd=function(){var a=aa.MessageChannel;"undefined"===typeof a&&"undefined"!==typeof window&&window.postMessage&&window.addEventListener&&!uc("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=x(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&&!uc("Trident")&&!uc("MSIE")){var b=new a,c={},d=c;b.port1.onmessage=function(){if(p(c.next)){c=c.next;var a=c.wp;c.wp=null;a()}};
return function(a){d.next={wp: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){aa.setTimeout(a,0)}};
sd=function(){this.g=this.b=null};
td=function(){this.next=this.scope=this.b=null};
zd=function(a,b){ud||vd();wd||(ud(),wd=!0);var c=xd,d=yd.get();d.set(a,b);c.g?c.g.next=d:c.b=d;c.g=d};
vd=function(){if(aa.Promise&&aa.Promise.resolve){var a=aa.Promise.resolve(void 0);ud=function(){a.then(Ad)}}else ud=function(){rd(Ad)}};
Ad=function(){for(var a;a=xd.remove();){try{a.b.call(a.scope)}catch(b){od(b)}ld(yd,a)}wd=!1};
Bd=function(a){a.prototype.then=a.prototype.then;a.prototype.$goog_Thenable=!0};
Cd=function(a){if(!a)return!1;try{return!!a.$goog_Thenable}catch(b){return!1}};
Ed=function(a,b){this.b=0;this.D=void 0;this.A=this.g=this.o=null;this.B=this.C=!1;if(a!=r)try{var c=this;a.call(b,function(a){Dd(c,2,a)},function(a){Dd(c,3,a)})}catch(d){Dd(this,3,d)}};
Fd=function(){this.next=this.context=this.g=this.A=this.b=null;this.o=!1};
Hd=function(a,b,c){var d=Gd.get();d.A=a;d.g=b;d.context=c;return d};
Id=function(a){if(a instanceof Ed)return a;var b=new Ed(r);Dd(b,2,a);return b};
Jd=function(a){return new Ed(function(b,c){c(a)})};
Ld=function(a,b,c){Kd(a,b,c,null)||zd(qa(b,a))};
Md=function(a){return new Ed(function(b,c){a.length||b(void 0);for(var d=0,e;d<a.length;d++)e=a[d],Ld(e,b,c)})};
Nd=function(a){return new Ed(function(b,c){var d=a.length,e=[];if(d)for(var f=function(a,c){d--;e[a]=c;0==d&&b(e)},k=function(a){c(a)},l=0,m;l<a.length;l++)m=a[l],Ld(m,qa(f,l),k);
else b(e)})};
Pd=function(){var a,b,c=new Ed(function(c,e){a=c;b=e});
return new Od(c,a,b)};
Rd=function(a,b){var c=Hd(b,b,void 0);c.o=!0;Qd(a,c)};
Td=function(a,b){return Sd(a,null,b,void 0)};
Ud=function(a,b){if(0==a.b)if(a.o){var c=a.o;if(c.g){for(var d=0,e=null,f=null,k=c.g;k&&(k.o||(d++,k.b==a&&(e=k),!(e&&1<d)));k=k.next)e||(f=k);e&&(0==c.b&&1==d?Ud(c,b):(f?(d=f,d.next==c.A&&(c.A=d),d.next=d.next.next):Vd(c),Wd(c,e,3,b)))}a.o=null}else Dd(a,3,b)};
Qd=function(a,b){a.g||2!=a.b&&3!=a.b||Xd(a);a.A?a.A.next=b:a.g=b;a.A=b};
Sd=function(a,b,c,d){var e=Hd(null,null,null);e.b=new Ed(function(a,k){e.A=b?function(c){try{var e=b.call(d,c);a(e)}catch(n){k(n)}}:a;
e.g=c?function(b){try{var e=c.call(d,b);!p(e)&&b instanceof Yd?k(b):a(e)}catch(n){k(n)}}:k});
e.b.o=a;Qd(a,e);return e.b};
Dd=function(a,b,c){0==a.b&&(a===c&&(b=3,c=new TypeError("Promise cannot resolve to itself")),a.b=1,Kd(c,a.G,a.H,a)||(a.D=c,a.b=b,a.o=null,Xd(a),3!=b||c instanceof Yd||Zd(a,c)))};
Kd=function(a,b,c,d){if(a instanceof Ed)return Qd(a,Hd(b||r,c||null,d)),!0;if(Cd(a))return a.then(b,c,d),!0;if(ka(a))try{var e=a.then;if(ia(e))return $d(a,e,b,c,d),!0}catch(f){return c.call(d,f),!0}return!1};
$d=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)}};
Xd=function(a){a.C||(a.C=!0,zd(a.F,a))};
Vd=function(a){var b=null;a.g&&(b=a.g,a.g=b.next,b.next=null);a.g||(a.A=null);return b};
Wd=function(a,b,c,d){if(3==c&&b.g&&!b.o)for(;a&&a.B;a=a.o)a.B=!1;if(b.b)b.b.o=null,ae(b,c,d);else try{b.o?b.A.call(b.context):ae(b,c,d)}catch(e){be.call(null,e)}ld(Gd,b)};
ae=function(a,b,c){2==b?a.A.call(a.context,c):a.g&&a.g.call(a.context,c)};
Zd=function(a,b){a.B=!0;zd(function(){a.B&&be.call(null,b)})};
Yd=function(a){sa.call(this,a)};
Od=function(a,b,c){this.o=a;this.g=b;this.b=c};
ce=function(a,b){id.call(this);this.b=a||1;this.g=b||aa;this.o=x(this.oz,this);this.A=C()};
de=function(a,b){a.b=b;a.Tc&&a.enabled?(a.stop(),a.start()):a.Tc&&a.stop()};
ee=function(a,b,c){if(ia(a))c&&(a=x(a,c));else if(a&&"function"==typeof a.handleEvent)a=x(a.handleEvent,a);else throw Error("Invalid listener argument");return 2147483647<Number(b)?-1:aa.setTimeout(a,b||0)};
fe=function(a){aa.clearTimeout(a)};
ge=function(a,b,c){G.call(this);this.b=a;this.A=b||0;this.g=c;this.o=x(this.kq,this)};
he=function(a){a.stop();a.kq()};
ie=function(a){if(a.classList)return a.classList;a=a.className;return w(a)&&a.match(/\S+/g)||[]};
je=function(a,b){return a.classList?a.classList.contains(b):gb(ie(a),b)};
I=function(a,b){a.classList?a.classList.add(b):je(a,b)||(a.className+=0<a.className.length?" "+b:b)};
ke=function(a,b){if(a.classList)F(b,function(b){I(a,b)});
else{var c={};F(ie(a),function(a){c[a]=!0});
F(b,function(a){c[a]=!0});
a.className="";for(var d in c)a.className+=0<a.className.length?" "+d:d}};
me=function(a,b){a.classList?a.classList.remove(b):je(a,b)&&(a.className=le(ie(a),function(a){return a!=b}).join(" "))};
ne=function(a,b){a.classList?F(b,function(b){me(a,b)}):a.className=le(ie(a),function(a){return!gb(b,a)}).join(" ")};
J=function(a,b,c){c?I(a,b):me(a,b)};
pe=function(a,b){return b?a.replace(oe,""):a};
ve=function(a,b){for(var c=0,d=0,e=!1,f=pe(a,b).split(qe),k=0;k<f.length;k++){var l=f[k];re.test(pe(l,void 0))?(c++,d++):se.test(l)?e=!0:te.test(pe(l,void 0))?d++:ue.test(l)&&(e=!0)}return 0==d?e?1:0:.4<c/d?-1:1};
xe=function(){this.b="";this.g=we};
ye=function(a){return a instanceof xe&&a.constructor===xe&&a.g===we?a.b:"type_error:Const"};
ze=function(a){var b=new xe;b.b=a;return b};
Be=function(){this.b="";this.g=Ae};
Ce=function(a){var b=new Be;b.b=a;return b};
Ee=function(){this.b="";this.g=De};
Fe=function(a){if(a instanceof Ee&&a.constructor===Ee&&a.g===De)return a.b;da(a);return"type_error:SafeUrl"};
Ie=function(a){if(a instanceof Ee)return a;a=a.Hf?a.Pe():String(a);Ge.test(a)||(a="about:invalid#zClosurez");return He(a)};
He=function(a){var b=new Ee;b.b=a;return b};
Ke=function(){this.b="";this.g=Je};
Le=function(a){if(a instanceof Ke&&a.constructor===Ke&&a.g===Je)return a.b;da(a);return"type_error:TrustedResourceUrl"};
Me=function(a){var b=new Ke;b.b=a;return b};
Oe=function(){this.b="";this.o=Ne;this.g=null};
Pe=function(a){if(a instanceof Oe&&a.constructor===Oe&&a.o===Ne)return a.b;da(a);return"type_error:SafeHtml"};
Re=function(a){function b(a){if(ea(a))F(a,b);else{var f;a instanceof Oe?f=a:(f=null,a.xm&&(f=a.jg()),a=Ea(a.Hf?a.Pe():String(a)),f=Qe(a,f));d+=Pe(f);f=f.jg();0==c?c=f:0!=f&&c!=f&&(c=null)}}
var c=0,d="";F(arguments,b);return Qe(d,c)};
Qe=function(a,b){var c=new Oe;c.b=a;c.g=b;return c};
Ye=function(a,b,c){var d=null,e,f="";if(b)for(e in b){if(!Se.test(e))throw Error('Invalid attribute name "'+e+'".');var k=b[e];if(null!=k){var l,m=a;l=e;if(k instanceof xe)k=ye(k);else if("style"==l.toLowerCase()){if(!ka(k))throw Error('The "style" attribute requires goog.html.SafeStyle or map of style properties, '+typeof k+" given: "+k);if(!(k instanceof Be)){var m="",n=void 0;for(n in k){if(!/^[-_a-zA-Z0-9]+$/.test(n))throw Error("Name allows only [-_a-zA-Z0-9], got: "+n);var t=k[n];if(null!=t){if(t instanceof
xe)t=ye(t);else if(Te.test(t)){for(var u=!0,y=!0,E=0;E<t.length;E++){var D=t.charAt(E);"'"==D&&y?u=!u:'"'==D&&u&&(y=!y)}u&&y||(t="zClosurez")}else t="zClosurez";m+=n+":"+t+";"}}k=m?Ce(m):Ue}k instanceof Be&&k.constructor===Be&&k.g===Ae?k=k.b:(da(k),k="type_error:SafeStyle")}else{if(/^on/i.test(l))throw Error('Attribute "'+l+'" requires goog.string.Const value, "'+k+'" given.');if(l.toLowerCase()in We)if(k instanceof Ke)k=Le(k);else if(k instanceof Ee)k=Fe(k);else if(w(k))k=Ie(k).Pe();else throw Error('Attribute "'+
l+'" on tag "'+m+'" requires goog.html.SafeUrl, goog.string.Const, or string, value "'+k+'" given.');}k.Hf&&(k=k.Pe());l=l+'="'+Ea(String(k))+'"';f+=" "+l}}e="<"+a+f;null!=c?ea(c)||(c=[c]):c=[];!0===Xe[a.toLowerCase()]?e+=">":(d=Re(c),e+=">"+Pe(d)+"</"+a+">",d=d.jg());(a=b&&b.dir)&&(/^(ltr|rtl|auto)$/i.test(a)?d=0:d=null);return Qe(e,d)};
Ze=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};
$e=function(a,b){return Qe(b,null)};
af=function(a,b,c){return Math.min(Math.max(a,b),c)};
bf=function(a,b,c){return a+c*(b-a)};
df=function(a){return cf(arguments,function(a,c){return a+c},0)};
ef=function(a){return df.apply(null,arguments)/arguments.length};
ff=function(a,b){this.x=p(a)?a:0;this.y=p(b)?b:0};
gf=function(a,b){return a==b?!0:a&&b?a.x==b.x&&a.y==b.y:!1};
hf=function(a,b){this.width=a;this.height=b};
jf=function(a,b){return a==b?!0:a&&b?a.width==b.width&&a.height==b.height:!1};
kf=function(a,b){var c;c=b instanceof Ee?b:Ie(b);a.href=Fe(c)};
of=function(a){return a?new lf(mf(a)):nf||(nf=new lf)};
qf=function(a,b){var c=b||window.document;return c.querySelectorAll&&c.querySelector?c.querySelectorAll("."+a):pf("*",a,b)};
rf=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=pf("*",a,b)[0];return d||null};
pf=function(a,b,c){var d=window.document;c=c||d;a=a&&"*"!=a?a.toUpperCase():"";if(c.querySelectorAll&&c.querySelector&&(a||b))return c.querySelectorAll(a+(b?"."+b:""));if(b&&c.getElementsByClassName){c=c.getElementsByClassName(b);if(a){for(var d={},e=0,f=0,k;k=c[f];f++)a==k.nodeName&&(d[e++]=k);d.length=e;return d}return c}c=c.getElementsByTagName(a||"*");if(b){d={};for(f=e=0;k=c[f];f++)a=k.className,"function"==typeof a.split&&gb(a.split(/\s+/),b)&&(d[e++]=k);d.length=e;return d}return c};
tf=function(a,b){Pb(b,function(b,d){"style"==d?a.style.cssText=b:"class"==d?a.className=b:"for"==d?a.htmlFor=b:sf.hasOwnProperty(d)?a.setAttribute(sf[d],b):ta(d,"aria-")||ta(d,"data-")?a.setAttribute(d,b):a[d]=b})};
uf=function(a){a=a.document;a="CSS1Compat"==a.compatMode?a.documentElement:a.body;return new hf(a.clientWidth,a.clientHeight)};
xf=function(a){var b=vf(a);a=a.parentWindow||a.defaultView;return wf&&zc("10")&&a.pageYOffset!=b.scrollTop?new ff(b.scrollLeft,b.scrollTop):new ff(a.pageXOffset||b.scrollLeft,a.pageYOffset||b.scrollTop)};
vf=function(a){return a.scrollingElement?a.scrollingElement:Cc||"CSS1Compat"!=a.compatMode?a.body||a.documentElement:a.documentElement};
yf=function(a){return a?a.parentWindow||a.defaultView:window};
K=function(a,b,c){return zf(window.document,arguments)};
zf=function(a,b){var c=String(b[0]),d=b[1];if(!Af&&d&&(d.name||d.type)){c=["<",c];d.name&&c.push(' name="',Ea(d.name),'"');if(d.type){c.push(' type="',Ea(d.type),'"');var e={};kc(e,d);delete e.type;d=e}c.push(">");c=c.join("")}c=a.createElement(c);d&&(w(d)?c.className=d:ea(d)?c.className=d.join(" "):tf(c,d));2<b.length&&Bf(a,c,b,2);return c};
Bf=function(a,b,c,d){function e(c){c&&b.appendChild(w(c)?a.createTextNode(c):c)}
for(;d<c.length;d++){var f=c[d];!fa(f)||ka(f)&&0<f.nodeType?e(f):F(Cf(f)?sb(f):f,e)}};
Df=function(a){return window.document.createElement(String(a))};
Ef=function(a,b){a.appendChild(b)};
Ff=function(a,b){Bf(mf(a),a,arguments,1)};
Gf=function(a){for(var b;b=a.firstChild;)a.removeChild(b)};
Hf=function(a,b,c){a.insertBefore(b,a.childNodes[c]||null)};
If=function(a){return a&&a.parentNode?a.parentNode.removeChild(a):null};
Jf=function(a,b){var c=b.parentNode;c&&c.replaceChild(a,b)};
Lf=function(a){return Kf&&void 0!=a.children?a.children:le(a.childNodes,function(a){return 1==a.nodeType})};
Nf=function(a){return p(a.firstElementChild)?a.firstElementChild:Mf(a.firstChild)};
Mf=function(a){for(;a&&1!=a.nodeType;)a=a.nextSibling;return a};
Pf=function(a){var b;if(Of&&!(wf&&zc("9")&&!zc("10")&&aa.SVGElement&&a instanceof aa.SVGElement)&&(b=a.parentElement))return b;b=a.parentNode;return ka(b)&&1==b.nodeType?b:null};
Qf=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};
mf=function(a){return 9==a.nodeType?a:a.ownerDocument||a.document};
Rf=function(a){try{return a.contentWindow||(a.contentDocument?yf(a.contentDocument):null)}catch(b){}return null};
Sf=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 Gf(a),a.appendChild(mf(a).createTextNode(String(b)))};
Tf=function(a){if("outerHTML"in a)return a.outerHTML;var b=mf(a).createElement("DIV");b.appendChild(a.cloneNode(!0));return b.innerHTML};
Wf=function(a){var b;if((b="A"==a.tagName||"INPUT"==a.tagName||"TEXTAREA"==a.tagName||"SELECT"==a.tagName||"BUTTON"==a.tagName?!a.disabled&&(!Uf(a)||Vf(a)):Uf(a)&&Vf(a))&&wf){var c;!ia(a.getBoundingClientRect)||wf&&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};
Uf=function(a){a=a.getAttributeNode("tabindex");return null!=a&&a.specified};
Vf=function(a){a=a.tabIndex;return ha(a)&&0<=a&&32768>a};
Cf=function(a){if(a&&"number"==typeof a.length){if(ka(a))return"function"==typeof a.item||"string"==typeof a.item;if(ia(a))return"function"==typeof a.item}return!1};
Yf=function(a,b,c,d){if(!b&&!c)return null;var e=b?b.toUpperCase():null;return Xf(a,function(a){return(!e||a.nodeName==e)&&(!c||w(a.className)&&gb(a.className.split(/\s+/),c))},d)};
Zf=function(a,b){return Yf(a,null,b,void 0)};
Xf=function(a,b,c){for(var d=0;a&&(null==c||d<=c);){if(b(a))return a;a=a.parentNode;d++}return null};
lf=function(a){this.b=a||aa.document||window.document};
$f=function(a){a=a.b;return a.parentWindow||a.defaultView};
ag=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,""))};
bg=function(a){a=String(a);if(ag(a))try{return eval("("+a+")")}catch(b){}throw Error("Invalid JSON string: "+a);};
cg=function(a){return eval("("+a+")")};
gg=function(a){return dg(new eg(void 0),a)};
eg=function(a){this.b=a};
dg=function(a,b){var c=[];hg(a,b,c);return c.join("")};
hg=function(a,b,c){if(null==b)c.push("null");else{if("object"==typeof b){if(ea(b)){var d=b;b=d.length;c.push("[");for(var e="",f=0;f<b;f++)c.push(e),e=d[f],hg(a,a.b?a.b.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),jg(d,c),c.push(":"),hg(a,a.b?a.b.call(b,d,e):e,c),f=","));c.push("}");return}}switch(typeof b){case "string":jg(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);}}};
jg=function(a,b){b.push('"',a.replace(kg,function(a){var b=lg[a];b||(b="\\u"+(a.charCodeAt(0)|65536).toString(16).substr(1),lg[a]=b);return b}),'"')};
mg=function(a,b,c,d){this.top=a;this.right=b;this.bottom=c;this.left=d};
ng=function(a,b,c,d){this.left=a;this.top=b;this.width=c;this.height=d};
og=function(a){return new mg(a.top,a.left+a.width,a.top+a.height,a.left)};
pg=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};
qg=function(a){return new hf(a.width,a.height)};
rg=function(a){return new ff(a.left,a.top)};
sg=function(a){G.call(this);this.yc=1;this.o=[];this.A=0;this.b=[];this.g={};this.B=!!a};
tg=function(a,b,c,d){if(b=a.g[b]){var e=a.b;if(b=cb(b,function(a){return e[a+1]==c&&e[a+2]==d}))return a.Mc(b)}return!1};
ug=function(a,b,c){zd(function(){a.apply(b,c)})};
vg=function(){};
xg=function(a){if(a instanceof vg)return a;if("function"==typeof a.qc)return a.qc(!1);if(fa(a)){var b=0,c=new vg;c.next=function(){for(;;){if(b>=a.length)throw wg;if(b in a)return a[b++];b++}};
return c}throw Error("Not implemented");};
yg=function(a,b,c){if(fa(a))try{F(a,b,c)}catch(d){if(d!==wg)throw d;}else{a=xg(a);try{for(;;)b.call(c,a.next(),void 0,a)}catch(d){if(d!==wg)throw d;}}};
zg=function(a){if(fa(a))return sb(a);a=xg(a);var b=[];yg(a,function(a){b.push(a)});
return b};
Ag=function(a,b){this.g={};this.b=[];this.af=this.ya=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 Ag?(c=a.Ua(),d=a.Pa()):(c=Yb(a),d=Xb(a));for(var e=0;e<c.length;e++)this.set(c[e],d[e])}};
Cg=function(a,b){return Bg(a.g,b)};
Dg=function(a){if(a.ya!=a.b.length){for(var b=0,c=0;b<a.b.length;){var d=a.b[b];Bg(a.g,d)&&(a.b[c++]=d);b++}a.b.length=c}if(a.ya!=a.b.length){for(var e={},c=b=0;b<a.b.length;)d=a.b[b],Bg(e,d)||(a.b[c++]=d,e[d]=1),b++;a.b.length=c}};
Bg=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)};
Eg=function(a){if(a.Pa&&"function"==typeof a.Pa)return a.Pa();if(w(a))return a.split("");if(fa(a)){for(var b=[],c=a.length,d=0;d<c;d++)b.push(a[d]);return b}return Xb(a)};
Fg=function(a){if(a.Ua&&"function"==typeof a.Ua)return a.Ua();if(!a.Pa||"function"!=typeof a.Pa){if(fa(a)||w(a)){var b=[];a=a.length;for(var c=0;c<a;c++)b.push(c);return b}return Yb(a)}};
Gg=function(a,b){if(a.forEach&&"function"==typeof a.forEach)a.forEach(b,void 0);else if(fa(a)||w(a))F(a,b,void 0);else for(var c=Fg(a),d=Eg(a),e=d.length,f=0;f<e;f++)b.call(void 0,d[f],c&&c[f],a)};
Hg=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};
Jg=function(a){return a.match(Ig)};
Kg=function(a){return a?(0,window.decodeURI)(a):a};
Lg=function(a){return Kg(Jg(a)[3]||null)};
Mg=function(a){return Number(Jg(a)[4]||null)||null};
Ng=function(a,b){if(a)for(var c=a.split("&"),d=0;d<c.length;d++){var e=c[d].indexOf("="),f,k=null;0<=e?(f=c[d].substring(0,e),k=c[d].substring(e+1)):f=c[d];b(f,k?wa(k):"")}};
Og=function(a){if(a[1]){var b=a[0],c=b.indexOf("#");0<=c&&(a.push(b.substr(c)),a[0]=b=b.substr(0,c));c=b.indexOf("?");0>c?a[1]="?":c==b.length-1&&(a[1]=void 0)}return a.join("")};
Pg=function(a,b,c){if(ea(b))for(var d=0;d<b.length;d++)Pg(a,String(b[d]),c);else null!=b&&c.push("&",a,""===b?"":"=",va(b))};
Qg=function(a,b,c){for(c=c||0;c<b.length;c+=2)Pg(b[c],b[c+1],a);return a};
Rg=function(a,b){for(var c in b)Pg(c,b[c],a);return a};
Sg=function(a){a=Rg([],a);a[0]="";return a.join("")};
Tg=function(a,b){return Og(2==arguments.length?Qg([a],arguments[1],0):Qg([a],arguments,1))};
Ug=function(a,b){return Og(Rg([a],b))};
Vg=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};
Xg=function(a,b){return 0<=Vg(a,0,b,a.search(Wg))};
Yg=function(a,b){var c=a.search(Wg),d=Vg(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 wa(a.substr(d,e-d))};
$g=function(a,b){for(var c=a.search(Wg),d=0,e,f=[];0<=(e=Vg(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(Zg,"$1")};
ah=function(a,b,c){a=[$g(a,b),"&",b];null!=c&&a.push("=",va(c));return Og(a)};
L=function(a,b){this.g=this.H=this.A="";this.D=null;this.G=this.o="";this.B=!1;var c;a instanceof L?(this.B=p(b)?b:a.B,bh(this,a.A),this.H=a.H,ch(this,a.g),dh(this,a.D),eh(this,a.o),fh(this,a.b.clone()),this.G=a.F()):a&&(c=Jg(String(a)))?(this.B=!!b,bh(this,c[1]||"",!0),this.H=gh(c[2]||""),ch(this,c[3]||"",!0),dh(this,c[4]),eh(this,c[5]||"",!0),fh(this,c[6]||"",!0),this.G=gh(c[7]||"")):(this.B=!!b,this.b=new hh(null,0,this.B))};
bh=function(a,b,c){a.A=c?gh(b,!0):b;a.A&&(a.A=a.A.replace(/:$/,""))};
ch=function(a,b,c){a.g=c?gh(b,!0):b;return a};
dh=function(a,b){if(b){b=Number(b);if((0,window.isNaN)(b)||0>b)throw Error("Bad port number "+b);a.D=b}else a.D=null;return a};
eh=function(a,b,c){a.o=c?gh(b,!0):b};
fh=function(a,b,c){b instanceof hh?(a.b=b,ih(a.b,a.B)):(c||(b=jh(b,kh)),a.b=new hh(b,0,a.B));return a};
lh=function(a,b,c){a.b.set(b,c);return a};
nh=function(a,b,c){ea(c)||(c=[String(c)]);mh(a.b,b,c)};
oh=function(a){lh(a,"zx",Oa());return a};
ph=function(a){return a instanceof L?a.clone():new L(a,void 0)};
qh=function(a,b,c,d){var e=new L(null,void 0);a&&bh(e,a);b&&ch(e,b);c&&dh(e,c);d&&eh(e,d);return e};
gh=function(a,b){return a?b?(0,window.decodeURI)(a.replace(/%25/g,"%2525")):(0,window.decodeURIComponent)(a):""};
jh=function(a,b,c){return w(a)?(a=(0,window.encodeURI)(a).replace(b,rh),c&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null};
rh=function(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)};
hh=function(a,b,c){this.ya=this.b=null;this.g=a||null;this.o=!!c};
th=function(a){a.b||(a.b=new Ag,a.ya=0,a.g&&Ng(a.g,function(b,c){sh(a,wa(b),c)}))};
sh=function(a,b,c){th(a);a.g=null;b=uh(a,b);var d=a.b.get(b);d||a.b.set(b,d=[]);d.push(c);a.ya=a.ya+1};
vh=function(a,b){th(a);b=uh(a,b);return Cg(a.b,b)};
mh=function(a,b,c){a.remove(b);0<c.length&&(a.g=null,a.b.set(uh(a,b),sb(c)),a.ya=a.ya+c.length)};
uh=function(a,b){var c=String(b);a.o&&(c=c.toLowerCase());return c};
ih=function(a,b){b&&!a.o&&(th(a),a.g=null,a.b.forEach(function(a,b){var e=b.toLowerCase();b!=e&&(this.remove(b),mh(this,e,a))},a));
a.o=b};
wh=function(a,b){b.match(/\sstyle\s*=/);a.innerHTML=b};
yh=function(){return xh?{I:"div",fa:["ytp-icon","ytp-icon-cast-desktop-on"]}:{I:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},P:[{I:"path",Ea:!0,U:{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"}}]}};
zh=function(){return xh?{I:"div",fa:["ytp-icon","ytp-icon-clip-clear"]}:{I:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},P:[{I:"path",U:{d:"M14,14 L14,0 L0,0 L0,14 L14,14 Z"}},{I:"path",U:{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"}}]}};
Ah=function(){return xh?{I:"div",fa:["ytp-icon","ytp-icon-clip-end"]}:{I:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},P:[{I:"path",Ea:!0,U:{d:"M2,14 L5,11 L5,3 L2,0 L9,0 L9,14 L2,14 L2,14 Z",fill:"#eaeaea"}}]}};
Bh=function(){return xh?{I:"div",fa:["ytp-icon","ytp-icon-clip-start"]}:{I:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},P:[{I:"path",Ea:!0,U:{d:"M12,14 L9,11 L9,3 L12,0 L5,0 L5,14 L12,14 Z",fill:"#eaeaea"}}]}};
Ch=function(){return xh?{I:"div",fa:["ytp-icon","ytp-icon-close"]}:{I:"svg",U:{height:"100%",viewBox:"0 0 24 24",width:"100%"},P:[{I:"path",U:{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"}}]}};
Dh=function(){return xh?{I:"div",fa:["ytp-icon","ytp-icon-link"]}:{I:"svg",U:{height:"100%",viewBox:"0 0 36 36",width:"100%"},P:[{I:"path",U:{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"}}]}};
Eh=function(){return xh?{I:"div",fa:["ytp-icon","ytp-icon-next"]}:{I:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},P:[{I:"path",Ea:!0,W:"ytp-svg-fill",U:{d:"M 12,24 20.5,18 12,12 V 24 z M 22,12 v 12 h 2 V 12 h -2 z"}}]}};
Fh=function(){return xh?{I:"div",fa:["ytp-icon","ytp-icon-pause"]}:{I:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},P:[{I:"path",Ea:!0,W:"ytp-svg-fill",U:{d:"M 12,26 16,26 16,10 12,10 z M 21,26 25,26 25,10 21,10 z"}}]}};
Gh=function(){return xh?{I:"div",fa:["ytp-icon","ytp-icon-play"]}:{I:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},P:[{I:"path",Ea:!0,W:"ytp-svg-fill",U:{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"}}]}};
Hh=function(){return xh?{I:"div",fa:["ytp-icon","ytp-icon-playlist"]}:{I:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},P:[{I:"path",Ea:!0,U:{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"}}]}};
Ih=function(){return xh?{I:"div",fa:["ytp-icon","ytp-icon-prev"]}:{I:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},P:[{I:"path",Ea:!0,W:"ytp-svg-fill",U:{d:"m 12,12 h 2 v 12 h -2 z m 3.5,6 8.5,6 V 12 z"}}]}};
Jh=function(){return xh?{I:"div",fa:["ytp-icon","ytp-icon-replay"]}:{I:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},P:[{I:"path",Ea:!0,W:"ytp-svg-fill",U:{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"}}]}};
Kh=function(){return xh?{I:"div",fa:["ytp-icon","ytp-icon-settings"]}:{I:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},P:[{I:"path",Ea:!0,U:{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"}}]}};
Lh=function(){return{I:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 22 22",width:"100%"},P:[{I:"svg",U:{x:"7",y:"1"},P:[{I:"circle",fa:["ytp-spinner-dot","ytp-spinner-dot-0"],U:{cx:"4",cy:"4",r:"2"}}]},{I:"svg",U:{x:"11",y:"3"},P:[{I:"circle",fa:["ytp-spinner-dot","ytp-spinner-dot-1"],U:{cx:"4",cy:"4",r:"2"}}]},{I:"svg",U:{x:"13",y:"7"},P:[{I:"circle",fa:["ytp-spinner-dot","ytp-spinner-dot-2"],U:{cx:"4",cy:"4",r:"2"}}]},{I:"svg",U:{x:"11",y:"11"},P:[{I:"circle",fa:["ytp-spinner-dot","ytp-spinner-dot-3"],
U:{cx:"4",cy:"4",r:"2"}}]},{I:"svg",U:{x:"7",y:"13"},P:[{I:"circle",fa:["ytp-spinner-dot","ytp-spinner-dot-4"],U:{cx:"4",cy:"4",r:"2"}}]},{I:"svg",U:{x:"3",y:"11"},P:[{I:"circle",fa:["ytp-spinner-dot","ytp-spinner-dot-5"],U:{cx:"4",cy:"4",r:"2"}}]},{I:"svg",U:{x:"1",y:"7"},P:[{I:"circle",fa:["ytp-spinner-dot","ytp-spinner-dot-6"],U:{cx:"4",cy:"4",r:"2"}}]},{I:"svg",U:{x:"3",y:"3"},P:[{I:"circle",fa:["ytp-spinner-dot","ytp-spinner-dot-7"],U:{cx:"4",cy:"4",r:"2"}}]}]}};
Mh=function(){return xh?{I:"div",fa:["ytp-icon","ytp-icon-stop"]}:{I:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},P:[{I:"path",Ea:!0,W:"ytp-svg-fill",U:{d:"M 12,25 19,25 19,11 12,11 z M 19,25 26,25 26,11 19,11 z"}}]}};
Nh=function(){return xh?{I:"div",fa:["ytp-icon","ytp-icon-subtitles"]}:{I:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},P:[{I:"path",Ea:!0,U:{d:"M11,11 C9.9,11 9,11.9 9,13 L9,23 C9,24.1 9.9,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 M11,17 L14,17 L14,19 L11,19 L11,17 L11,17 Z M20,23 L11,23 L11,21 L20,21 L20,23 L20,23 Z M25,23 L22,23 L22,21 L25,21 L25,23 L25,23 Z M25,19 L16,19 L16,17 L25,17 L25,19 L25,19 Z",fill:"#fff"}}]}};
Oh=function(){return xh?{I:"div",fa:["ytp-icon","ytp-icon-volume-high"]}:{I:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},P:[{I:"path",Ea:!0,U:{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"}}]}};
Ph=function(){return xh?{I:"div",fa:["ytp-icon","ytp-icon-volume-low"]}:{I:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},P:[{I:"path",Ea:!0,U:{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"}}]}};
Qh=function(){return xh?{I:"div",fa:["ytp-icon","ytp-icon-volume-muted"]}:{I:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},P:[{I:"path",Ea:!0,W:"ytp-svg-fill",U:{d:"M8,21 L12,21 L17,26 L17,10 L12,15 L8,15 L8,21 Z"}},{I:"svg",W:"ytp-svg-sound-mute-group",P:[{I:"path",Ea:!0,W:"ytp-svg-fill",U:{d:"M 26.11,15.73 24.85,14.5 22.52,16.76 20.20,14.5 18.94,15.73 21.26,18 18.94,20.26 20.20,21.5 22.52,19.23 24.85,21.5 26.11,20.26 23.79,18 l 2.32,-2.26 0,0 z"}}]}]}};
Sh=function(a,b){if(a in b)return b[a];var c=Rh+a.charAt(0).toUpperCase()+a.substr(1);if(c in b)return b[c]};
Uh=function(a,b){var c;Th(a,function(a){c=b[a];return!!c});
return c};
Wh=function(a){return cb(["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(b){return"on"+b.toLowerCase()in a})};
Xh=function(){var a=window.document;return cb(["fullscreenerror","webkitfullscreenerror","mozfullscreenerror","MSFullscreenError"],function(b){return"on"+b.toLowerCase()in a})};
Yh=function(){return!!Uh(["fullscreenEnabled","webkitFullscreenEnabled","mozFullScreenEnabled","msFullscreenEnabled"],window.document)};
Zh=function(){var a=Uh(["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"],window.document);return a?a:null};
ci=function(a){a=a||{};this.url=a.url||"";this.urlV9As2=a.url_v9as2||"";this.args=a.args||hc($h);this.assets=a.assets||{};this.attrs=a.attrs||hc(ai);this.params=a.params||hc(bi);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||{}};
di=function(a){a instanceof ci||(a=new ci(a));return a};
ei=function(){var a=window.navigator.userAgent.match(/Chrome\/([0-9]+)/);return a?50<=(0,window.parseInt)(a[1],10):!1};
fi=function(a){return window.document.currentScript&&(-1!=window.document.currentScript.src.indexOf("?"+a)||-1!=window.document.currentScript.src.indexOf("&"+a))};
gi=function(){return"function"==typeof window.__onGCastApiAvailable?window.__onGCastApiAvailable:null};
hi=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)}};
ni=function(a){if(a>=ii.length)ji();else{var b=ii[a],c="chrome-extension://"+b+ki;0<=li.indexOf(b)?hi(c,function(d){d?(window.chrome.cast=window.chrome.cast||{},window.chrome.cast.extensionId=b,mi(c,ji)):ni(a+1)}):mi(c,function(){ni(a+1)})}};
mi=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)};
ji=function(){var a=gi();a&&a(!1,"No cast extension found")};
pi=function(){if(oi){var a=2,b=gi(),c=function(){a--;0==a&&b&&b(!0)};
window.__onGCastApiAvailable=c;mi("//www.gstatic.com/cast/sdk/libs/sender/0.1/cast_framework.js",ji,c)}};
qi=function(){if(0<=window.navigator.userAgent.indexOf("CriOS")){var a=window.__gCrWeb&&window.__gCrWeb.message&&window.__gCrWeb.message.invokeOnHost;if(a){pi();a({command:"cast.sender.init"});return}}window.chrome?(pi(),a=window.navigator.userAgent,0<=a.indexOf("Android")&&0<=a.indexOf("Chrome/")&&window.navigator.presentation?(a=ei()?"50":"",mi("//www.gstatic.com/eureka/clank"+a+ki,ji)):ni(0)):ji()};
vi=function(){var a=ri;si();ti.push(a);ui(ti)};
yi=function(a,b){si();var c=ti,d=wi(a,String(b));ib(c)?xi(d):(ui(c),F(c,function(a){a(d)}))};
si=function(){ti||(ti=q("yt.mdx.remote.debug.handlers_")||[],g.ba("yt.mdx.remote.debug.handlers_",ti,void 0))};
xi=function(a){var b=(zi+1)%50;zi=b;Ai[b]=a;Bi||(Bi=49==b)};
ui=function(a){var b=Ai;if(b[0]){var c=zi,d=Bi?c:-1;do{var d=(d+1)%50,e=b[d];F(a,function(a){a(e)})}while(d!=c);
Ai=Array(50);zi=-1;Bi=!1}};
wi=function(a,b){var c=(C()-Ci)/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("")};
Di=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||""};
Ei=function(a,b){return!!b&&(a.id==b||a.uuid==b)};
Fi=function(a){return{name:a.name,screenId:a.id,loungeToken:a.token,dialId:a.uuid}};
Gi=function(a){return new Di(a)};
Hi=function(a){return ea(a)?M(a,Gi):[]};
Ii=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"};
Ji=function(a){return ea(a)?"["+M(a,Ii).join(",")+"]":"null"};
Li=function(a,b,c){a&&(a.dataset?a.dataset[Ki(b)]=c:a.setAttribute("data-"+b,c))};
Mi=function(a){return a?a.dataset?a.dataset[Ki("loaded")]:a.getAttribute("data-loaded"):null};
Ki=function(a){return Ni[a]||(Ni[a]=String(a).replace(/\-([a-z])/g,function(a,c){return c.toUpperCase()}))};
Qi=function(a){Oi(Pi,arguments)};
Ri=function(a,b){return a in Pi?Pi[a]:b};
Ti=function(a,b){ia(a)&&(a=Si(a));return window.setTimeout(a,b)};
Ui=function(a,b){ia(a)&&(a=Si(a));return window.setInterval(a,b)};
Vi=function(a){window.clearTimeout(a)};
Wi=function(a){window.clearInterval(a)};
Si=function(a){return a&&window.yterr?function(){try{return a.apply(this,arguments)}catch(b){throw Xi(b),b;}}:a};
Xi=function(a,b){var c=q("yt.logging.errors.log");c?c(a,b,void 0,void 0,void 0):(c=Ri("ERRORS",[]),c.push([a,b,void 0,void 0,void 0]),Qi("ERRORS",c))};
Zi=function(a){Oi(Yi,arguments)};
N=function(a,b,c){var d=b||{};if(a=a in Yi?Yi[a]:c)for(var e in d)a=a.replace(new RegExp("\\$"+e,"gi"),function(){return d[e]});
return a};
Oi=function(a,b){if(1<b.length){var c=b[0];a[c]=b[1]}else{var d=b[0];for(c in d)a[c]=d[c]}};
ej=function(a,b,c){var d=$i();if(d){var e=d.subscribe(a,function(){if(!aj||aj!=e){var d=arguments,k;k=function(){bj[e]&&b.apply(c||window,d)};
try{cj[a]?k():Ti(k,0)}catch(l){Xi(l)}}},c);
bj[e]=!0;dj[a]||(dj[a]=[]);dj[a].push(e);return e}return 0};
gj=function(a,b){var c=ej(a,function(a){b.apply(void 0,arguments);fj(c)},void 0)};
fj=function(a){var b=$i();b&&("number"==typeof a?a=[a]:"string"==typeof a&&(a=[(0,window.parseInt)(a,10)]),F(a,function(a){b.unsubscribeByKey(a);delete bj[a]}))};
hj=function(a,b){var c=$i();c&&c.publish.apply(c,arguments)};
ij=function(a,b){cj[a]=!0;var c=$i();c&&c.publish.apply(c,arguments);cj[a]=!1};
jj=function(a){dj[a]&&(a=dj[a],F(a,function(a){bj[a]&&delete bj[a]}),a.length=0)};
kj=function(a){var b=$i();if(b)if(b.clear(a),a)jj(a);else for(var c in dj)jj(c)};
$i=function(){return q("yt.pubsub.instance_")};
oj=function(a,b){if(window.spf){var c="";if(a){var d=a.indexOf("jsbin/"),e=a.lastIndexOf(".js"),f=d+6;-1<d&&-1<e&&e>f&&(c=a.substring(f,e),c=c.replace(lj,""),c=c.replace(mj,""),c=c.replace("debug-",""),c=c.replace("tracing-",""))}window.spf.script.load(a,c,b)}else nj(a,b)};
nj=function(a,b){var c=pj(a),d=window.document.getElementById(c),e=d&&Mi(d),f=d&&!e;e?b&&b():(b&&(ej(c,b),na(b)),f||(d=qj(a,c,function(){Mi(d)||(Li(d,"loaded","true"),hj(c),Ti(qa(kj,c),0))})))};
qj=function(a,b,c){var d=window.document.createElement("script");d.id=b;d.onload=function(){c&&(0,window.setTimeout)(c,0)};
d.onreadystatechange=function(){switch(d.readyState){case "loaded":case "complete":d.onload()}};
d.src=a;a=window.document.getElementsByTagName("head")[0]||window.document.body;a.insertBefore(d,a.firstChild);return d};
pj=function(a){var b=window.document.createElement("a");kf(b,a);a=b.href.replace(/^[a-zA-Z]+:\/\//,"//");return"js-"+Sa(a)};
rj=function(){};
sj=function(){};
tj=function(a){this.b=a};
uj=function(){var a=null;try{a=window.localStorage||null}catch(b){}this.b=a};
vj=function(){var a=null;try{a=window.sessionStorage||null}catch(b){}this.b=a};
wj=function(a){this.b=a};
xj=function(a){this.b=a};
yj=function(a){this.data=a};
zj=function(a){return!p(a)||a instanceof yj?a:new yj(a)};
Aj=function(a){this.b=a};
Bj=function(a){var b=a.creation;a=a.expiration;return!!a&&a<C()||!!b&&b>C()};
Cj=function(a){this.b=a};
Dj=function(a,b){var c=[];yg(b,function(a){var b;try{b=Cj.prototype.g.call(this,a,!0)}catch(f){if("Storage: Invalid value was encountered"==f)return;throw f;}p(b)?Bj(b)&&c.push(a):c.push(a)},a);
return c};
Ej=function(a,b){var c=Dj(a,b);F(c,function(a){Cj.prototype.remove.call(this,a)},a)};
Gj=function(){var a=Fj;Ej(a,a.b.qc(!0))};
Ij=function(a,b,c){var d=c&&0<c?c:0;c=d?C()+1E3*d:0;if((d=d?Fj:Hj)&&window.JSON){w(b)||(b=JSON.stringify(b,void 0));try{d.set(a,b,c)}catch(e){d.remove(a)}}};
Jj=function(a){if(!Hj&&!Fj||!window.JSON)return null;var b;try{b=Hj.get(a)}catch(c){}if(!w(b))try{b=Fj.get(a)}catch(c){}if(!w(b))return null;try{b=JSON.parse(b,void 0)}catch(c){}return b};
Kj=function(a){Hj&&Hj.remove(a);Fj&&Fj.remove(a)};
Lj=function(a){return Ri("EXPERIMENT_FLAGS",{})[a]};
Mj=function(a,b){for(var c=a.split(b),d={},e=0,f=c.length;e<f;e++){var k=c[e].split("=");if(1==k.length&&k[0]||2==k.length){var l=wa(k[0]||""),k=wa(k[1]||"");l in d?ea(d[l])?tb(d[l],k):d[l]=[d[l],k]:d[l]=k}}return d};
Nj=function(a,b){var c=[];Pb(a,function(a,b){var f=va(b),k;ea(a)?k=a:k=[a];F(k,function(a){""==a?c.push(f):c.push(f+"="+va(a))})});
return c.join(b)};
Oj=function(a){"?"==a.charAt(0)&&(a=a.substr(1));return Mj(a,"&")};
Pj=function(a){a=a.split(",");return a=a.map(function(a){return Oj(a)})};
Qj=function(a){return-1!=a.indexOf("?")?(a=(a||"").split("#")[0],a=a.split("?",2),Oj(1<a.length?a[1]:a[0])):{}};
Sj=function(a,b){return Rj(a,b||{},!0)};
Tj=function(a,b){return Rj(a,b||{},!1)};
Rj=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=Oj(e[1]||""),f;for(f in b)if(c||!$b(e,f))e[f]=b[f];return Ug(a,e)+d};
Uj=function(a){var b;b||(b=window.location.href);var c=Jg(a)[1]||null,d=Lg(a);c&&d?(a=Jg(a),b=Jg(b),a=a[3]==b[3]&&a[1]==b[1]&&a[4]==b[4]):a=d?Lg(b)==d&&Mg(b)==Mg(a):!0;return a};
Vj=function(){var a;a||(a=window.document.location.href);a=Jg(a)[1]||null;return null!==a&&"https"==a};
Wj=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}};
Zj=function(a,b,c,d,e,f,k){function l(){4==(m&&"readyState"in m?m.readyState:0)&&b&&Si(b)(m)}
var m=Xj&&Xj();if(!("open"in m))return null;"onloadend"in m?m.addEventListener("loadend",l,!1):m.onreadystatechange=l;c=(c||"GET").toUpperCase();d=d||"";m.open(c,a,!0);f&&(m.responseType=f);k&&(m.withCredentials=!0);f="POST"==c;if(e=Yj(a,e))for(var n in e)m.setRequestHeader(n,e[n]),"content-type"==n.toLowerCase()&&(f=!1);f&&m.setRequestHeader("Content-Type","application/x-www-form-urlencoded");m.send(d);return m};
Yj=function(a,b){b=b||{};var c=Uj(a),d;for(d in ak){var e=Ri(ak[d]),f;if((f=e)&&!(f=c)){f=d;var k=Ri("CORS_HEADER_WHITELIST")||{},l=Lg(a);f=l?(k=k[l])?gb(k,f):!1:!0}f&&(b[d]=e)}return b};
ck=function(a,b){b.method="POST";b.Sb||(b.Sb={});bk(a,b)};
dk=function(a,b){var c=Ri("XSRF_FIELD_NAME",void 0),d;b.headers&&(d=b.headers["Content-Type"]);return!b.PQ&&(!Lg(a)||b.withCredentials||Lg(a)==window.document.location.hostname)&&"POST"==b.method&&(!d||"application/x-www-form-urlencoded"==d)&&!(b.Sb&&b.Sb[c])};
bk=function(a,b){var c=b.format||"JSON";b.TQ&&(a=window.document.location.protocol+"//"+window.document.location.hostname+(window.document.location.port?":"+window.document.location.port:"")+a);var d=Ri("XSRF_FIELD_NAME",void 0),e=Ri("XSRF_TOKEN",void 0),f=b.Zc;f&&(f[d]&&delete f[d],a=Sj(a,f));var k=b.postBody||"",f=b.Sb;dk(a,b)&&(f||(f={}),f[d]=e);f&&w(k)&&(d=Oj(k),kc(d,f),k=b.KF&&"JSON"==b.KF?JSON.stringify(d):Sg(d));var l=!1,m,n=Zj(a,function(a){if(!l){l=!0;m&&Vi(m);var d=Wj(a),e=null;if(d||400<=
a.status&&500>a.status)e=ek(c,a,b.Qy);if(d)a:if(Lj("ajax_204_success")&&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||aa;d?b.rb&&b.rb.call(f,a,e):b.onError&&b.onError.call(f,a,e);b.Ac&&b.Ac.call(f,a,e)}},b.method,k,b.headers,b.responseType,b.withCredentials);
b.Kc&&0<b.timeout&&(m=Ti(function(){l||(l=!0,n.abort(),Vi(m),b.Kc.call(b.context||aa,n))},b.timeout));
return n};
ek=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=cg(a));break;case "XML":if(b=(b=b.responseXML)?fk(b):null)d={},F(b.getElementsByTagName("*"),function(a){d[a.tagName]=gk(a)})}c&&hk(d);
return d};
hk=function(a){if(ka(a))for(var b in a)"html_content"==b||ua(b,"_html")?a[b]=$e(ze("HTML that is escaped and sanitized server-side and passed through yt.net.ajax"),a[b]):hk(a[b])};
fk=function(a){return a?(a=("responseXML"in a?a.responseXML:a).getElementsByTagName("root"))&&0<a.length?a[0]:null:null};
gk=function(a){var b="";F(a.childNodes,function(a){b+=a.nodeValue});
return b};
ik=function(a){this.A=this.o="";this.b="/api/lounge";this.g=!0;a=a||window.document.location.href;var b=Mg(a)||"";b&&(this.A=":"+b);this.o=Lg(a)||"";a=sc;0<=a.search("MSIE")&&(a=a.match(/MSIE ([\d.]+)/)[1],0>Ra(a,"10.0")&&(this.g=!1))};
jk=function(a,b,c,d){var e=a.b;if(p(d)?d:a.g)e="https://"+a.o+a.A+a.b;return Ug(e+b,c||{})};
kk=function(a,b,c,d,e){a={format:"JSON",method:"POST",context:a,timeout:5E3,withCredentials:!1,rb:qa(a.C,d,!0),onError:qa(a.B,e),Kc:qa(a.D,e)};c&&(a.Sb=c,a.headers={"Content-Type":"application/x-www-form-urlencoded"});return bk(b,a)};
lk=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)})};
mk=function(a){return M(a,function(a){return{key:a.id,name:a.name}})};
nk=function(a,b){return cb(a,function(a){return a||b?!a!=!b?!1:a.id==b.id:!0})};
ok=function(a,b){return cb(a,function(a){return Ei(a,b)})};
pk=function(){G.call(this);this.ba=new sg;H(this,this.ba)};
qk=function(a){pk.call(this);this.C=a;this.screens=[]};
rk=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.screens.push(b);return!0};
sk=function(a,b){var c=a.screens.length!=b.length;a.screens=le(a.screens,function(a){return!!nk(b,a)});
for(var d=0,e=b.length;d<e;d++)c=rk(a,b[d])||c;return c};
tk=function(a,b){var c=a.screens.length;a.screens=le(a.screens,function(a){return!(a||b?!a!=!b?0:a.id==b.id:1)});
return a.screens.length<c};
uk=function(a,b,c,d){pk.call(this);this.D=a;this.C=b;this.A=c;this.B=d;this.o=0;this.b=null;this.g=window.NaN};
vk=function(a,b){this.g=a;this.b=b+"::"};
wk=function(a){var b=new uj;return b.isAvailable()?a?new vk(b,a):b:null};
yk=function(a){this.b=new Ag;a&&xk(this,a)};
zk=function(a){var b=typeof a;return"object"==b&&a||"function"==b?"o"+na(a):b.substr(0,1)+a};
Ak=function(a,b){a.b.set(zk(b),b)};
xk=function(a,b){for(var c=Eg(b),d=c.length,e=0;e<d;e++)Ak(a,c[e])};
Ck=function(a){this.app=this.name=this.id="";this.type="REMOTE_CONTROL";this.avatar=this.username="";this.capabilities=new yk;this.experiments=new yk;this.theme="u";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();xk(this.capabilities,le(b.split(","),qa(Wb,Bk)));a=a.experiments||"";this.experiments.clear();xk(this.experiments,
a.split(","))}};
Dk=function(a){this.b=a||{cookie:""}};
Hk=function(a){a=(a.b.cookie||"").split(Ek);for(var b=[],c=[],d,e,f=0;e=a[f];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}};
Nk=function(){var a=Ik(),b=Jk();Kk()&&Hb(a,b);a=Lk(a);if(ib(a))try{Mk.remove("remote_sid","/","youtube.com")}catch(c){}else try{Mk.set("remote_sid",a.join(","),-1,"/","youtube.com")}catch(c){}};
Ik=function(){var a=Jj("yt-remote-connected-devices")||[];Cb(a);return a};
Lk=function(a){if(ib(a))return[];var b=a[0].indexOf("#"),c=-1==b?a[0]:a[0].substring(0,b);return M(a,function(a,b){return 0==b?a:a.substring(c.length)})};
Ok=function(a){Ij("yt-remote-connected-devices",a,86400)};
Jk=function(){if(Pk)return Pk;var a=Jj("yt-remote-device-id");a||(a=lk(),Ij("yt-remote-device-id",a,31536E3));for(var b=Ik(),c=1,d=a;gb(b,d);)c++,d=a+"#"+c;return Pk=d};
Qk=function(){return Jj("yt-remote-session-browser-channel")};
Kk=function(){return Jj("yt-remote-session-screen-id")};
Uk=function(a){5<a.length&&(a=a.slice(a.length-5));var b=M(Rk(),function(a){return a.loungeToken}),c=M(a,function(a){return a.loungeToken});
Sk(c,function(a){return!gb(b,a)})&&Tk();
Ij("yt-remote-local-screens",a,31536E3)};
Rk=function(){return Jj("yt-remote-local-screens")||[]};
Tk=function(){Ij("yt-remote-lounge-token-expiration",!0,86400)};
Vk=function(a,b){Ij("yt-remote-session-browser-channel",a);Ij("yt-remote-session-screen-id",b);var c=Ik(),d=Jk();gb(c,d)||c.push(d);Ok(c);Nk()};
Wk=function(a){a||(Kj("yt-remote-session-screen-id"),Kj("yt-remote-session-video-id"));Nk();a=Ik();pb(a,Jk());Ok(a)};
Yk=function(){if(!Xk){var a=wk();a&&(Xk=new wj(a))}return Xk?!!Xk.get("yt-remote-use-staging-server"):!1};
$k=function(a){qk.call(this,"LocalScreenService");this.g=a;this.b=window.NaN;Zk(this);this.info("Initializing with "+Ji(this.screens))};
al=function(a){if(a.screens.length){var b=M(a.screens,function(a){return a.id}),c=jk(a.g,"/pairing/get_lounge_token_batch");
kk(a.g,c,{screen_ids:b.join(",")},x(a.Cz,a),x(a.Bz,a))}};
Zk=function(a){var b=Hi(Rk()),b=le(b,function(a){return!a.uuid});
return sk(a,b)};
bl=function(a,b){Uk(M(a.screens,Fi));b&&Tk()};
dl=function(a,b){pk.call(this);this.C=b;for(var c=Jj("yt-remote-online-screen-ids")||"",c=c?c.split(","):[],d={},e=this.C(),f=0,k=e.length;f<k;++f){var l=e[f].id;d[l]=gb(c,l)}this.b=d;this.B=a;this.o=this.A=window.NaN;this.g=null;cl("Initialized with "+gg(this.b))};
el=function(a,b,c){var d=jk(a.B,"/pairing/get_screen_availability");kk(a.B,d,{lounge_token:b.token},x(function(a){a=a.screens||[];for(var d=0,k=a.length;d<k;++d)if(a[d].loungeToken==b.token){c("online"==a[d].status);return}c(!1)},a),x(function(){c(!1)},a))};
gl=function(a,b){var c;a:if(Ub(b)!=Ub(a.b))c=!1;else{c=Yb(b);for(var d=0,e=c.length;d<e;++d)if(!a.b[c[d]]){c=!1;break a}c=!0}c||(cl("Updated online screens: "+gg(a.b)),a.b=b,a.X("screenChange"));fl(a)};
hl=function(a){(0,window.isNaN)(a.o)||Vi(a.o);a.o=Ti(x(a.Wm,a),0<a.A&&a.A<C()?2E4:1E4)};
cl=function(a){yi("OnlineScreenService",a)};
il=function(a){var b={};F(a.C(),function(a){a.token?b[a.token]=a.id:this.ob("Requesting availability of screen w/o lounge token.")});
return b};
fl=function(a){a=Yb(Qb(a.b,function(a){return a}));
Cb(a);a.length?Ij("yt-remote-online-screen-ids",a.join(","),60):Kj("yt-remote-online-screen-ids")};
kl=function(a){qk.call(this,"ScreenService");this.B=a;this.b=this.g=null;this.o=[];this.A={};jl(this)};
nl=function(a,b,c,d,e,f){a.info("getAutomaticScreenByIds "+c+" / "+b);c||(c=a.A[b]);var k=a.Fc();if(k=(c?ok(k,c):null)||ok(k,b)){k.uuid=b;var l=ll(a,k);el(a.b,l,function(a){e(a?l:null)})}else c?ml(a,c,x(function(a){var f=ll(this,new Di({name:d,
screenId:c,loungeToken:a,dialId:b||""}));el(this.b,f,function(a){e(a?f:null)})},a),f):e(null)};
ol=function(a,b){for(var c=0,d=a.screens.length;c<d;++c)if(a.screens[c].name==b)return a.screens[c];return null};
ml=function(a,b,c,d){a.info("requestLoungeToken_ for "+b);var e={Sb:{screen_ids:b},method:"POST",context:a,rb:function(a,e){var l=e&&e.screens||[];l[0]&&l[0].screenId==b?c(l[0].loungeToken):d(Error("Missing lounge token in token response"))},
onError:function(){d(Error("Request screen lounge token failed"))}};
bk(jk(a.B,"/pairing/get_lounge_token_batch"),e)};
pl=function(a){a.screens=a.g.Fc();var b=a.A,c={},d;for(d in b)c[b[d]]=d;b=0;for(d=a.screens.length;b<d;++b){var e=a.screens[b];e.uuid=c[e.id]||""}a.info("Updated manual screens: "+Ji(a.screens))};
jl=function(a){ql(a);a.g=new $k(a.B);a.g.subscribe("screenChange",x(a.Vz,a));pl(a);a.o=Hi(Jj("yt-remote-automatic-screen-cache")||[]);ql(a);a.info("Initializing automatic screens: "+Ji(a.o));a.b=new dl(a.B,x(a.Fc,a,!0));a.b.subscribe("screenChange",x(function(){this.X("onlineScreenChange")},a))};
ll=function(a,b){var c=a.get(b.id);c?(c.uuid=b.uuid,b=c):((c=ok(a.o,b.uuid))?(c.id=b.id,c.token=b.token,b=c):a.o.push(b),Ij("yt-remote-automatic-screen-cache",M(a.o,Fi)));ql(a);a.A[b.uuid]=b.id;Ij("yt-remote-device-id-map",a.A,31536E3);return b};
ql=function(a){a.A=Jj("yt-remote-device-id-map")||{}};
rl=function(a,b,c){pk.call(this);this.K=c;this.G=a;this.g=b;this.o=null};
sl=function(a,b){yi(a.K,b)};
ul=function(a,b){rl.call(this,a,b,"CastSession");this.b=null;this.A=0;this.C=x(this.XG,this);this.B=x(this.CF,this);this.A=Ti(x(function(){tl(this,null)},this),12E4)};
vl=function(a){a.info("sendYoutubeMessage_: getMdxSessionStatus "+gg(void 0));var b={type:"getMdxSessionStatus"};a.b?a.b.sendMessage("urn:x-cast:com.google.youtube.mdx",b,r,x(function(){sl(this,"Failed to send message: getMdxSessionStatus.")},a)):sl(a,"Sending yt message without session: "+gg(b))};
tl=function(a,b){Vi(a.A);if(b){if(a.info("onConnectedScreenId_: Received screenId: "+b),!a.o||a.o.id!=b){var c=x(a.Aj,a),d=x(a.Jc,a);a.fq(b,c,d,5)}}else a.Jc(Error("Waiting for session status timed out."))};
wl=function(a,b){rl.call(this,a,b,"DialSession");this.A=this.F=null;this.H="";this.B=null;this.D=r;this.C=window.NaN;this.J=x(this.$G,this);this.b=r};
xl=function(a){a.b=a.G.wu(a.H,a.g.label,a.g.friendlyName,x(function(a){this.b=r;this.Aj(a)},a),x(function(a){this.b=r;
this.Jc(a)},a))};
yl=function(a){var b={};b.pairingCode=a.H;if(a.B){var c=a.B.currentTime||0;b.v=a.B.videoId;b.t=c}Yk()&&(b.env_useStageMdx=1);return Sg(b)};
zl=function(a,b){rl.call(this,a,b,"ManualSession");this.b=Ti(x(this.If,this,null),150)};
Al=function(a){pk.call(this);this.g=a;this.b=null;this.B=!1;this.o=[];this.A=x(this.sE,this)};
Bl=function(a,b){return b?cb(a.o,function(a){return Ei(b,a.label)},a):null};
Cl=function(a){yi("Controller",a)};
ri=function(a){window.chrome&&window.chrome.cast&&window.chrome.cast.logMessage&&window.chrome.cast.logMessage(a)};
Dl=function(a){return a.B||!!a.o.length||!!a.b};
El=function(a,b,c){Nb(a.b);(a.b=b)?(c?a.X("yt-remote-cast2-receiver-resumed",b.g):a.X("yt-remote-cast2-receiver-selected",b.g),b.subscribe("sessionScreen",x(a.Cs,a,b)),b.o?a.X("yt-remote-cast2-session-change",b.o):c&&a.b.If(null)):a.X("yt-remote-cast2-session-change",null)};
Fl=function(a){var b=a.g.vu(),c=a.b&&a.b.g;a=M(b,function(a){c&&Ei(a,c.label)&&(c=null);var b=a.uuid?a.uuid:a.id,f=Bl(this,a);f?(f.label=b,f.friendlyName=a.name):(f=new window.chrome.cast.Receiver(b,a.name),f.receiverType=window.chrome.cast.ReceiverType.CUSTOM);return f},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};
Ol=function(a,b,c,d){Gl()?Il(b)&&(Jl(!0),window.chrome&&window.chrome.cast&&window.chrome.cast.isAvailable?Kl(a,c):(window.__onGCastApiAvailable=function(b,d){b?Kl(a,c):(Ll("Failed to load cast API: "+d),Ml(!1),Jl(!1),Kj("yt-remote-cast-available"),Kj("yt-remote-cast-receiver"),Nl(),c(!1))},d?oj("https://www.gstatic.com/cv/js/sender/v1/cast_sender.js"):qi())):Hl("Cannot initialize because not running Chrome")};
Nl=function(){Hl("dispose");var a=Pl();a&&a.dispose();Ql=null;g.ba("yt.mdx.remote.cloudview.instance_",null,void 0);Rl(!1);fj(Sl);Sl.length=0};
Ul=function(){return!!Jj("yt-remote-cast-installed")};
Vl=function(){var a=Jj("yt-remote-cast-receiver");return a?Ha(a.friendlyName):null};
Wl=function(){Hl("clearCurrentReciever");Kj("yt-remote-cast-receiver")};
Xl=function(){return Ul()?Pl()?Ql.getCastSession():(Ll("getCastSelector: Cast is not initialized."),null):(Ll("getCastSelector: Cast API is not installed!"),null)};
Zl=function(){Ul()?Pl()?Yl()?(Hl("Requesting cast selector."),Ql.requestSession()):(Hl("Wait for cast API to be ready to request the session."),Sl.push(ej("yt-remote-cast2-api-ready",Zl))):Ll("requestCastSelector: Cast is not initialized."):Ll("requestCastSelector: Cast API is not installed!")};
$l=function(a){Yl()?Pl().setLaunchParams(a):Ll("setLaunchParams called before ready.")};
am=function(a,b){Yl()?Pl().setConnectedScreenStatus(a,b):Ll("setConnectedScreenStatus called before ready.")};
Gl=function(){var a=0<=sc.search(/\ (CrMo|Chrome|CriOS)\//);return bm||a};
cm=function(a,b){Ql.init(a,b)};
Il=function(a){var b=!1;if(!Ql){var c=q("yt.mdx.remote.cloudview.instance_");c||(c=new Al(a),c.subscribe("yt-remote-cast2-availability-change",function(a){Ij("yt-remote-cast-available",a);hj("yt-remote-cast2-availability-change",a)}),c.subscribe("yt-remote-cast2-receiver-selected",function(a){Hl("onReceiverSelected: "+a.friendlyName);
Ij("yt-remote-cast-receiver",a);hj("yt-remote-cast2-receiver-selected",a)}),c.subscribe("yt-remote-cast2-receiver-resumed",function(a){Hl("onReceiverResumed: "+a.friendlyName);
Ij("yt-remote-cast-receiver",a)}),c.subscribe("yt-remote-cast2-session-change",function(a){Hl("onSessionChange: "+Ii(a));
a||Kj("yt-remote-cast-receiver");hj("yt-remote-cast2-session-change",a)}),g.ba("yt.mdx.remote.cloudview.instance_",c,void 0),b=!0);
Ql=c}Hl("cloudview.createSingleton_: "+b);return b};
Pl=function(){Ql||(Ql=q("yt.mdx.remote.cloudview.instance_"));return Ql};
Kl=function(a,b){Ml(!0);Jl(!1);cm(a,function(a){a?(Rl(!0),hj("yt-remote-cast2-api-ready")):(Ll("Failed to initialize cast API."),Ml(!1),Kj("yt-remote-cast-available"),Kj("yt-remote-cast-receiver"),Nl());b(a)})};
Hl=function(a){yi("cloudview",a)};
Ll=function(a){yi("cloudview",a)};
Ml=function(a){Hl("setCastInstalled_ "+a);Ij("yt-remote-cast-installed",a)};
Yl=function(){return!!q("yt.mdx.remote.cloudview.apiReady_")};
Rl=function(a){Hl("setApiReady_ "+a);g.ba("yt.mdx.remote.cloudview.apiReady_",a,void 0)};
Jl=function(a){g.ba("yt.mdx.remote.cloudview.initializing_",a,void 0)};
em=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 dm||(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.b=a.pageX;this.g=a.pageY}};
fm=function(a){if(window.document.body&&window.document.documentElement){var b=window.document.body.scrollTop+window.document.documentElement.scrollTop;a.b=a.clientX+(window.document.body.scrollLeft+window.document.documentElement.scrollLeft);a.g=a.clientY+b}};
hm=function(a,b,c,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 ac(gm,function(e){return e[0]==a&&e[1]==b&&e[2]==c&&e[4]==!!d})};
jm=function(a,b,c,d){if(!a||!a.addEventListener&&!a.attachEvent)return"";d=!!d;var e=hm(a,b,c,d);if(e)return e;var e=++im.count+"",f=!("mouseenter"!=b&&"mouseleave"!=b||!a.addEventListener||"onmouseenter"in window.document),k;k=f?function(d){d=new em(d);if(!Xf(d.relatedTarget,function(b){return b==a}))return d.currentTarget=a,d.type=b,c.call(a,d)}:function(b){b=new em(b);
b.currentTarget=a;return c.call(a,b)};
k=Si(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);gm[e]=[a,b,c,k,d];return e};
lm=function(a,b,c){var d;return d=jm(a,b,function(){km(d);c.apply(a,arguments)},void 0)};
nm=function(a,b){return mm(a,b,function(a){return je(a,"iv-card-poll-choice-input")})};
mm=function(a,b,c){var d=a||window.document;return jm(d,"change",function(a){var f=Xf(a.target,function(a){return a===d||c(a)});
f&&f!==d&&!f.disabled&&(a.currentTarget=f,b.call(f,a))})};
km=function(a){a&&("string"==typeof a&&(a=[a]),F(a,function(a){if(a in gm){var c=gm[a],d=c[0],e=c[1],f=c[3],c=c[4];d.removeEventListener?d.removeEventListener(e,f,c):d.detachEvent&&d.detachEvent("on"+e,f);delete gm[a]}}))};
om=function(a){a=a||window.event;a=a.target||a.srcElement;3==a.nodeType&&(a=a.parentNode);return a};
pm=function(a){a=a||window.event;return a.path&&a.path.length?a.path[0]:om(a)};
qm=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};
rm=function(a){a=a||window.event;var b=a.pageX,c=a.pageY;window.document.body&&window.document.documentElement&&(b||(b=a.clientX+window.document.body.scrollLeft+window.document.documentElement.scrollLeft),c||(c=a.clientY+window.document.body.scrollTop+window.document.documentElement.scrollTop));return new ff(b,c)};
sm=function(a){a=a||window.event;a.returnValue=!1;a.preventDefault&&a.preventDefault()};
tm=function(a){a=a||window.event;return!1===a.returnValue||a.dr&&a.dr()};
um=function(a){a=a||window.event;return a.keyCode?a.keyCode:a.which};
vm=function(a,b){this.action=a;this.params=b||null};
wm=function(){this.b=C()};
xm=function(a,b){this.g=new eg(a);this.b=b?cg:bg};
ym=function(a){this.g=0;this.o=a||100;this.b=[]};
zm=function(a,b){if(b>=a.b.length)throw Error("Out of bounds exception");return a.b.length<a.o?b:(a.g+Number(b))%a.o};
Am=function(a,b,c){G.call(this);this.A=null!=c?x(a,c):a;this.o=b;this.g=x(this.TE,this);this.b=[]};
Bm=function(a){a.Af=ee(a.g,a.o);a.A.apply(null,a.b)};
Cm=function(a){G.call(this);this.A=a;this.g={}};
Em=function(a,b,c,d,e){Dm(a,b,c,d,!1,e)};
Dm=function(a,b,c,d,e,f){ea(c)||(c&&(Fm[0]=c.toString()),c=Fm);for(var k=0;k<c.length;k++){var l=Sc(b,c[k],d||a.handleEvent,e||!1,f||a.A||a);if(!l)break;a.g[l.key]=l}return a};
Hm=function(a,b,c,d){Gm(a,b,c,d,void 0)};
Im=function(a,b,c,d,e){Gm(a,b,c,d,!1,e)};
Gm=function(a,b,c,d,e,f){if(ea(c))for(var k=0;k<c.length;k++)Gm(a,b,c[k],d,e,f);else{b=bd(b,c,d||a.handleEvent,e,f||a.A||a);if(!b)return;a.g[b.key]=b}};
Jm=function(a){Pb(a.g,function(a,c){this.g.hasOwnProperty(c)&&dd(a)},a);
a.g={}};
Km=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"}};
Lm=function(){};
Mm=function(a){return a.g||(a.g=a.A())};
Nm=function(){};
Om=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};
Pm=function(a,b,c,d,e){this.b=a;this.o=c;this.F=d;this.D=e||1;this.B=45E3;this.A=new Cm(this);this.g=new ce;de(this.g,250)};
Rm=function(a,b,c){a.qg=1;a.Qe=oh(b.clone());a.Jf=c;a.C=!0;Qm(a,null)};
Sm=function(a,b,c,d,e){a.qg=1;a.Qe=oh(b.clone());a.Jf=null;a.C=c;e&&(a.ut=!1);Qm(a,d)};
Qm=function(a,b){a.Dh=C();Tm(a);a.We=a.Qe.clone();nh(a.We,"t",a.D);a.Ph=0;a.Wb=a.b.ol(a.b.Ih()?b:null);0<a.Tl&&(a.Ej=new Am(x(a.mu,a,a.Wb),a.Tl));a.A.O(a.Wb,"readystatechange",a.RF);var c=a.Bf?hc(a.Bf):{};a.Jf?(a.Wj="POST",c["Content-Type"]="application/x-www-form-urlencoded",a.Wb.send(a.We,a.Wj,a.Jf,c)):(a.Wj="GET",a.ut&&!Cc&&(c.Connection="close"),a.Wb.send(a.We,a.Wj,null,c));a.b.td(1)};
an=function(a,b,c){for(var d=!0;!a.rf&&a.Ph<c.length;){var e=Um(a,c);if(e==Vm){4==b&&(a.Cf=4,Wm(),d=!1);break}else if(e==Xm){a.Cf=4;Wm();d=!1;break}else Ym(a,e)}4==b&&0==c.length&&(a.Cf=1,Wm(),d=!1);a.wd=a.wd&&d;d||(Zm(a),$m(a))};
Um=function(a,b){var c=a.Ph,d=b.indexOf("\n",c);if(-1==d)return Vm;c=Number(b.substring(c,d));if((0,window.isNaN)(c))return Xm;d+=1;if(d+c>b.length)return Vm;var e=b.substr(d,c);a.Ph=d+c;return e};
dn=function(a,b){a.Dh=C();Tm(a);var c=b?window.location.hostname:"";a.We=a.Qe.clone();lh(a.We,"DOMAIN",c);lh(a.We,"t",a.D);try{a.xd=new window.ActiveXObject("htmlfile")}catch(n){Zm(a);a.Cf=7;Wm();$m(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{if(k in bn)k=bn[k];else if(k in cn)k=bn[k]=cn[k];else{var l,m=k.charCodeAt(0);if(31<m&&127>m)l=k;else{if(256>m){if(l="\\x",16>m||256<m)l+="0"}else l="\\u",4096>m&&
(l+="0");l+=m.toString(16).toUpperCase()}k=bn[k]=l}e+=k}}d+='<script>document.domain="'+e+'"\x3c/script>'}d+="</body></html>";c=$e(ze("b/12014412"),d);a.xd.open();a.xd.write(Pe(c));a.xd.close();a.xd.parentWindow.m=x(a.dF,a);a.xd.parentWindow.d=x(a.Is,a,!0);a.xd.parentWindow.rpcClose=x(a.Is,a,!1);c=a.xd.createElement("DIV");a.xd.parentWindow.document.body.appendChild(c);d=Ie(a.We.toString());d=Ea(Fe(d));d=$e(ze("b/12014412"),'<iframe src="'+d+'"></iframe>');c.innerHTML=Pe(d);a.b.td(1)};
Tm=function(a){a.An=C()+a.B;en(a,a.B)};
en=function(a,b){if(null!=a.Qg)throw Error("WatchDog timer not null");a.Qg=fn(x(a.uF,a),b)};
gn=function(a){a.Qg&&(aa.clearTimeout(a.Qg),a.Qg=null)};
$m=function(a){a.b.lq()||a.rf||a.b.zj(a)};
Zm=function(a){gn(a);Nb(a.Ej);a.Ej=null;a.g.stop();Jm(a.A);if(a.Wb){var b=a.Wb;a.Wb=null;hn(b);b.dispose()}a.xd&&(a.xd=null)};
Ym=function(a,b){try{a.b.xs(a,b),a.b.td(4)}catch(c){}};
kn=function(a,b,c,d,e){if(0==d)c(!1);else{var f=e||0;d--;jn(a,b,function(e){e?c(!0):aa.setTimeout(function(){kn(a,b,c,d,f)},f)})}};
jn=function(a,b,c){var d=new window.Image;d.onload=function(){try{ln(d),c(!0)}catch(a){}};
d.onerror=function(){try{ln(d),c(!1)}catch(a){}};
d.onabort=function(){try{ln(d),c(!1)}catch(a){}};
d.ontimeout=function(){try{ln(d),c(!1)}catch(a){}};
aa.setTimeout(function(){if(d.ontimeout)d.ontimeout()},b);
d.src=a};
ln=function(a){a.onload=null;a.onerror=null;a.onabort=null;a.ontimeout=null};
mn=function(a){this.b=a;this.g=new xm(null,!0)};
on=function(a){var b=nn(a.b,a.gh,"/mail/images/cleardot.gif");oh(b);kn(b.toString(),5E3,x(a.Iy,a),3,2E3);a.td(1)};
qn=function(a){var b=a.b.G;if(null!=b)Wm(),b?(Wm(),pn(a.b,a,!1)):(Wm(),pn(a.b,a,!0));else if(a.Lc=new Pm(a,0,void 0,void 0,void 0),a.Lc.Bf=a.Ql,b=a.b,b=nn(b,b.Ih()?a.ph:null,a.Sl),Wm(),!wf||Bc(10))nh(b,"TYPE","xmlhttp"),Sm(a.Lc,b,!1,a.ph,!1);else{nh(b,"TYPE","html");var c=a.Lc;a=!!a.ph;c.qg=3;c.Qe=oh(b.clone());dn(c,a)}};
rn=function(a){id.call(this);this.headers=new Ag;this.J=a||null;this.o=!1;this.H=this.b=null;this.N="";this.g=0;this.C="";this.A=this.L=this.F=this.K=!1;this.B=0;this.D=null;this.aa="";this.R=this.G=!1};
sn=function(a,b){a.B=Math.max(0,b)};
tn=function(a){return wf&&zc(9)&&ha(a.timeout)&&p(a.ontimeout)};
un=function(a){return"content-type"==a.toLowerCase()};
xn=function(a,b){a.o=!1;a.b&&(a.A=!0,a.b.abort(),a.A=!1);a.C=b;a.g=5;vn(a);wn(a)};
vn=function(a){a.K||(a.K=!0,a.dispatchEvent("complete"),a.dispatchEvent("error"))};
hn=function(a,b){a.b&&a.o&&(a.getStatus(),a.o=!1,a.A=!0,a.b.abort(),a.A=!1,a.g=b||7,a.dispatchEvent("complete"),a.dispatchEvent("abort"),wn(a))};
Bn=function(a){if(a.o&&"undefined"!=typeof yn)if(a.H[1]&&4==zn(a)&&2==a.getStatus())a.getStatus();else if(a.F&&4==zn(a))ee(a.nq,0,a);else if(a.dispatchEvent("readystatechange"),4==zn(a)){a.getStatus();a.o=!1;try{var b=a.getStatus(),c;a:switch(b){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:c=!0;break a;default:c=!1}var d;if(!(d=c)){var e;if(e=0===b){var f=Jg(String(a.N))[1]||null;if(!f&&aa.self&&aa.self.location)var k=aa.self.location.protocol,f=k.substr(0,k.length-1);e=!An.test(f?
f.toLowerCase():"")}d=e}if(d)a.dispatchEvent("complete"),a.dispatchEvent("success");else{a.g=6;var l;try{l=2<zn(a)?a.b.statusText:""}catch(m){l=""}a.C=l+" ["+a.getStatus()+"]";vn(a)}}finally{wn(a)}}};
wn=function(a,b){if(a.b){Cn(a);var c=a.b,d=a.H[0]?r:null;a.b=null;a.H=null;b||a.dispatchEvent("ready");try{c.onreadystatechange=d}catch(e){}}};
Cn=function(a){a.b&&a.R&&(a.b.ontimeout=null);ha(a.D)&&(fe(a.D),a.D=null)};
zn=function(a){return a.b?a.b.readyState:0};
Dn=function(a){try{return a.b?a.b.responseText:""}catch(b){return""}};
En=function(a,b,c){this.D=a||null;this.b=1;this.g=[];this.A=[];this.B=new xm(null,!0);this.F=b||null;this.G=null!=c?c:null};
Fn=function(a,b){this.b=a;this.map=b;this.context=null};
Gn=function(a){mc.call(this,"statevent",a)};
Hn=function(a,b){mc.call(this,"timingevent",a);this.size=b};
In=function(a){mc.call(this,"serverreachability",a)};
Mn=function(a){Jn(a);if(3==a.b){var b=a.xh++,c=a.Ri.clone();lh(c,"SID",a.o);lh(c,"RID",b);lh(c,"TYPE","terminate");Kn(a,c);b=new Pm(a,0,a.o,b,void 0);b.qg=2;b.Qe=oh(c.clone());(new window.Image).src=b.Qe;b.Dh=C();Tm(b)}Ln(a)};
Jn=function(a){if(a.Le){var b=a.Le;b.Lc&&(b.Lc.cancel(),b.Lc=null);b.ie=-1;a.Le=null}a.Ab&&(a.Ab.cancel(),a.Ab=null);a.ee&&(aa.clearTimeout(a.ee),a.ee=null);On(a);a.wc&&(a.wc.cancel(),a.wc=null);a.Me&&(aa.clearTimeout(a.Me),a.Me=null)};
Qn=function(a,b){if(0==a.b)throw Error("Invalid operation: sending map when state is closed");a.g.push(new Fn(a.KB++,b));2!=a.b&&3!=a.b||Pn(a)};
Pn=function(a){a.wc||a.Me||(a.Me=fn(x(a.Fs,a),0),a.nh=0)};
Tn=function(a,b){if(1==a.b){if(!b){a.xh=Math.floor(1E5*Math.random());var c=a.xh++,d=new Pm(a,0,"",c,void 0);d.Bf=null;var e=Rn(a),f=a.Ri.clone();lh(f,"RID",c);a.D&&lh(f,"CVER",a.D);Kn(a,f);Rm(d,f,e);a.wc=d;a.b=2}}else 3==a.b&&(b?Sn(a,b):0!=a.g.length&&(a.wc||Sn(a)))};
Sn=function(a,b){var c,d;b?6<a.tf?(a.g=a.A.concat(a.g),a.A.length=0,c=a.xh-1,d=Rn(a)):(c=b.F,d=b.Jf):(c=a.xh++,d=Rn(a));var e=a.Ri.clone();lh(e,"SID",a.o);lh(e,"RID",c);lh(e,"AID",a.yg);Kn(a,e);c=new Pm(a,0,a.o,c,a.nh+1);c.Bf=null;c.setTimeout(Math.round(1E4)+Math.round(1E4*Math.random()));a.wc=c;Rm(c,e,d)};
Kn=function(a,b){if(a.Zb){var c=a.Zb.Zp(a);c&&Pb(c,function(a,c){lh(b,c,a)})}};
Rn=function(a){var b=Math.min(a.g.length,1E3),c=["count="+b],d;6<a.tf&&0<b?(d=a.g[0].b,c.push("ofs="+d)):d=0;for(var e=0;e<b;e++){var f=a.g[e].b,k=a.g[e].map,f=6>=a.tf?e:f-d;try{Gg(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.A=a.A.concat(a.g.splice(0,b));
return c.join("&")};
Un=function(a){a.Ab||a.ee||(a.C=1,a.ee=fn(x(a.Es,a),0),a.Yf=0)};
Wn=function(a){if(a.Ab||a.ee||3<=a.Yf)return!1;a.C++;a.ee=fn(x(a.Es,a),Vn(a,a.Yf));a.Yf++;return!0};
pn=function(a,b,c){a.Vj=c;a.ld=b.ie;a.bz(1,0);a.Ri=nn(a,null,a.Pl);Pn(a)};
On=function(a){null!=a.uf&&(aa.clearTimeout(a.uf),a.uf=null)};
Vn=function(a,b){var c=5E3+Math.floor(1E4*Math.random());a.isActive()||(c*=2);return c*b};
Yn=function(a,b){if(2==b||9==b){var c=null;a.Zb&&(c=null);var d=x(a.vG,a);c||(c=new L("//www.google.com/images/cleardot.gif"),oh(c));jn(c.toString(),1E4,d)}else Wm();Xn(a,b)};
Xn=function(a,b){a.b=0;a.Zb&&a.Zb.xp(a,b);Ln(a);Jn(a)};
Ln=function(a){a.b=0;a.ld=-1;if(a.Zb)if(0==a.A.length&&0==a.g.length)a.Zb.bl(a);else{var b=sb(a.A),c=sb(a.g);a.A.length=0;a.g.length=0;a.Zb.bl(a,b,c)}};
nn=function(a,b,c){var d=ph(c);if(""!=d.g)b&&ch(d,b+"."+d.g),dh(d,d.D);else var e=window.location,d=qh(e.protocol,b?b+"."+e.hostname:e.hostname,e.port,c);a.mh&&Pb(a.mh,function(a,b){lh(d,b,a)});
lh(d,"VER",a.tf);Kn(a,d);return d};
fn=function(a,b){if(!ia(a))throw Error("Fn must not be null and must be a function");return aa.setTimeout(function(){a()},b)};
Wm=function(){Zn.dispatchEvent(new Gn(Zn))};
$n=function(){};
bo=function(a,b){ce.call(this);this.B=0;if(ia(a))b&&(a=x(a,b));else if(a&&ia(a.handleEvent))a=x(a.handleEvent,a);else throw Error("Invalid listener argument");this.D=a;Sc(this,"tick",x(this.C,this));ao(this)};
ao=function(a){a.stop();de(a,5E3+2E4*Math.random())};
co=function(a,b){this.J=a;this.C=b;this.o=new sg;this.g=new bo(this.RG,this);this.b=null;this.H=!1;this.B=null;this.G="";this.F=this.A=0;this.D=[]};
eo=function(a){return{firstTestResults:[""],secondTestResults:!a.b.Vj,sessionId:a.b.o,arrayId:a.b.yg}};
fo=function(a,b){a.F=b||0;a.g.stop();a.b&&(3==a.b.b&&Tn(a.b),Mn(a.b));a.F=0};
go=function(a){return!!a.b&&3==a.b.b};
ho=function(a,b){(a.C.loungeIdToken=b)||a.g.stop()};
io=function(){this.b=[];this.g=[]};
jo=function(a){ib(a.b)&&(a.b=a.g,a.b.reverse(),a.g=[])};
ko=function(a,b){a.g.push(b)};
lo=function(a){jo(a);return a.b.pop()};
mo=function(a){jo(a);return $a(a.b)};
no=function(a){this.index=-1;this.videoId=this.listId="";this.volume=this.b=-1;this.muted=!1;this.audioTrackId=null;this.A=this.o=0;this.g=null;this.reset(a)};
oo=function(a){a.audioTrackId=null;a.g=null;a.b=-1;a.o=0;a.A=C()};
po=function(a){a.index=-1;a.videoId="";oo(a)};
qo=function(a,b){a.o=b;a.A=C()};
ro=function(a){switch(a.b){case 1:return(C()-a.A)/1E3+a.o;case -1E3:return 0}return a.o};
so=function(a,b,c){var d=a.videoId;a.videoId=b;a.index=c;b!=d&&oo(a)};
to=function(a){var b={};b.index=a.index;b.listId=a.listId;b.videoId=a.videoId;b.playerState=a.b;b.volume=a.volume;b.muted=a.muted;b.audioTrackId=a.audioTrackId;b.trackData=ic(a.g);b.playerTime=a.o;b.playerTimeAt=a.A;return b};
wo=function(a,b){pk.call(this);this.g=0;this.A=a;this.D=[];this.C=new io;this.B=window.NaN;this.o=this.b=null;this.H=x(this.nC,this);this.F=x(this.yh,this);this.G=x(this.mC,this);var c=0;a?(c=a.getProxyState(),3!=c&&(a.subscribe("proxyStateChange",this.Hn,this),uo(this))):c=3;0!=c&&(b?this.Hn(c):Ti(x(function(){this.Hn(c)},this),0));
vo(this,Xl())};
xo=function(a){return new no(a.A.getPlayerContextData())};
Ao=function(a,b,c,d,e){var f=xo(a),k=e||f.listId;d=d||0;var l={videoId:b,currentIndex:d};so(f,b,d);p(c)&&(qo(f,c),l.currentTime=c);p(k)&&(l.listId=k);yo(a,"setPlaylist",l);e||zo(a,f)};
uo=function(a){F(["remotePlayerChange","remoteQueueChange"],function(a){this.D.push(this.A.subscribe(a,qa(this.eE,a),this))},a)};
Bo=function(a){F(a.D,function(a){this.A.unsubscribeByKey(a)},a);
a.D.length=0};
Co=function(a,b){50>a.C.Pb()&&ko(a.C,b)};
Do=function(a,b,c){var d=xo(a);qo(d,c);-1E3!=d.b&&(d.b=b);zo(a,d)};
yo=function(a,b,c){a.A.sendMessage(b,c)};
zo=function(a,b){Bo(a);a.A.setPlayerContextData(to(b));uo(a)};
Eo=function(a){Vi(a.B);a.B=Ti(x(function(){this.X("remotePlayerChange");this.B=window.NaN},a),2E3)};
vo=function(a,b){a.o&&(a.o.removeUpdateListener(a.H),a.o.removeMediaListener(a.F),a.yh(null));a.o=b;a.o&&(Fo("Setting cast session: "+a.o.sessionId),a.o.addUpdateListener(a.H),a.o.addMediaListener(a.F),a.o.media.length&&a.yh(a.o.media[0]))};
Go=function(a){var b=a.b.customData;if(a.b.media){var c=a.b.media,d=xo(a);c.contentId!=d.videoId&&Fo("Cast changing video to: "+c.contentId);d.videoId=c.contentId;d.b=b.playerState;qo(d,a.b.getEstimatedTime());zo(a,d)}else Fo("No cast media video. Ignoring state update.")};
Fo=function(a){yi("CP",a)};
Io=function(a,b,c){pk.call(this);this.A=window.NaN;this.L=!1;this.H=this.G=this.J=this.K=window.NaN;this.N=[];this.D=this.F=this.o=this.Ta=this.b=null;this.ia=a;this.N.push(jm(window,"beforeunload",x(this.vz,this)));this.g=[];this.Ta=new no;this.aa=b.id;this.b=Ho(this,c);this.b.subscribe("handlerOpened",this.rC,this);this.b.subscribe("handlerClosed",this.oC,this);this.b.subscribe("handlerError",this.pC,this);this.b.subscribe("handlerMessage",this.qC,this);ho(this.b,b.token);this.subscribe("remoteQueueChange",
function(){var a=this.Ta.videoId;Kk()&&Ij("yt-remote-session-video-id",a)},this)};
Jo=function(a){yi("conn",a)};
Ho=function(a,b){return new co(jk(a.ia,"/bc",void 0,!1),b)};
Ko=function(a,b){a.X("proxyStateChange",b)};
Lo=function(a){a.A=Ti(x(function(){Jo("Connecting timeout");this.B(1)},a),2E4)};
Mo=function(a){Vi(a.A);a.A=window.NaN};
No=function(a){Vi(a.K);a.K=window.NaN};
Qo=function(a){Oo(a);a.J=Ti(x(function(){Po(this,"getNowPlaying")},a),2E4)};
Oo=function(a){Vi(a.J);a.J=window.NaN};
So=function(a,b){b&&(Mo(a),No(a));b==(go(a.b)&&(0,window.isNaN)(a.A))?b&&(Ko(a,1),Po(a,"getSubtitlesTrack")):b?(a.R()&&a.Ta.reset(),Ko(a,1),Po(a,"getNowPlaying"),Ro(a)):a.B(1)};
To=function(a,b){var c=b.params.videoId;delete b.params.videoId;c==a.Ta.videoId&&(cc(b.params)?a.Ta.g=null:a.Ta.g=b.params,a.X("remotePlayerChange"))};
Uo=function(a,b){var c=b.params.videoId||b.params.video_id,d=(0,window.parseInt)(b.params.currentIndex,10);a.Ta.listId=b.params.listId||a.Ta.listId;so(a.Ta,c,d);a.X("remoteQueueChange")};
Wo=function(a,b){b.params=b.params||{};Uo(a,b);Vo(a,b)};
Vo=function(a,b){var c=(0,window.parseInt)(b.params.currentTime||b.params.current_time,10);qo(a.Ta,(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.Ta.b&&(c=-1E3);a.Ta.b=c;1==a.Ta.b?Qo(a):Oo(a);a.X("remotePlayerChange")};
Xo=function(a,b){var c="true"==b.params.muted;a.Ta.volume=(0,window.parseInt)(b.params.volume,10);a.Ta.muted=c;a.X("remotePlayerChange")};
Ro=function(a){Vi(a.H);a.H=Ti(x(a.B,a,1),864E5)};
Po=function(a,b,c){c?Jo("Sending: action="+b+", params="+gg(c)):Jo("Sending: action="+b);a.b.sendMessage(b,c)};
Yo=function(a){qk.call(this,"ScreenServiceProxy");this.$b=a;this.b=[];this.b.push(this.$b.$_s("screenChange",x(this.VG,this)));this.b.push(this.$b.$_s("onlineScreenChange",x(this.SD,this)))};
lp=function(a,b){Fj&&Gj();Nk();Zo||(Zo=new ik,Yk()&&(Zo.b="/api/loungedev"));$o||($o=q("yt.mdx.remote.deferredProxies_")||[],g.ba("yt.mdx.remote.deferredProxies_",$o,void 0));ap();var c=bp();if(!c){var d=new kl(Zo);g.ba("yt.mdx.remote.screenService_",d,void 0);c=bp();Ol(a,d,function(a){a?cp()&&am(cp(),"YouTube TV"):d.subscribe("onlineScreenChange",function(){hj("yt-remote-receiver-availability-change")})},!(!b||!b.loadCastApiSetupScript))}if(b&&!q("yt.mdx.remote.initialized_")){g.ba("yt.mdx.remote.initialized_",
!0,void 0);
dp("Initializing: "+gg(b));ep.push(ej("yt-remote-cast2-availability-change",function(){hj("yt-remote-receiver-availability-change")}));
ep.push(ej("yt-remote-cast2-receiver-selected",function(){fp(null);hj("yt-remote-auto-connect","cast-selector-receiver")}));
ep.push(ej("yt-remote-cast2-session-change",gp));ep.push(ej("yt-remote-connection-change",function(a){a?am(cp(),"YouTube TV"):hp()||(am(null,null),Wl())}));
var e=ip();b.isAuto&&(e.id+="#dial");e.name=b.device;e.app=b.app;dp(" -- with channel params: "+gg(e));jp(e);c.start();cp()||kp()}};
np=function(){fj(ep);ep.length=0;Nb(mp);mp=null;$o&&(F($o,function(a){a(null)}),$o.length=0,$o=null,g.ba("yt.mdx.remote.deferredProxies_",null,void 0));
Zo=null};
rp=function(){if(Ul()){var a=[];if(Jj("yt-remote-cast-available")||q("yt.mdx.remote.cloudview.castButtonShown_")||op())a.push({key:"cast-selector-receiver",name:pp()}),g.ba("yt.mdx.remote.cloudview.castButtonShown_",!0,void 0);return a}return q("yt.mdx.remote.cloudview.initializing_")?[]:qp()};
qp=function(){var a;a=bp().$b.$_gos();var b=sp();b&&op()&&(nk(a,b)||a.push(b));return mk(a)};
up=function(){if(Ul()){var a=Vl();return a?{key:"cast-selector-receiver",name:a}:null}return tp()};
tp=function(){var a=qp(),b=sp();b||(b=hp());return cb(a,function(a){return b&&Ei(b,a.key)?!0:!1})};
pp=function(){if(Ul())return Vl();var a=sp();return a?a.name:null};
sp=function(){var a=cp();if(!a)return null;var b=bp().Fc();return ok(b,a)};
gp=function(a){dp("remote.onCastSessionChange_: "+Ii(a));if(a){var b=sp();b&&b.id==a.id?am(b.id,"YouTube TV"):(b&&vp(),wp(a,1))}else vp()};
yp=function(a,b){dp("Connecting to: "+gg(a));if("cast-selector-receiver"==a.key)fp(b||null),$l(b||null);else{vp();fp(b||null);var c=bp().Fc();(c=ok(c,a.key))?wp(c,1):Ti(function(){xp(null)},0)}};
vp=function(){Yl()?Pl().stopSession():Ll("stopSession called before API ready.");var a=op();a?a.disconnect(1):(ij("yt-remote-before-disconnect",1),ij("yt-remote-connection-change",!1));xp(null)};
Bp=function(){var a=zp(),a=a?a.currentTime:0,b=Ap();0==a&&b&&(a=ro(xo(b)));return a};
Ap=function(){var a=op();return a&&3!=a.getProxyState()?new wo(a,void 0):null};
dp=function(a){yi("remote",a)};
bp=function(){if(!mp){var a=q("yt.mdx.remote.screenService_");mp=a?new Yo(a):null}return mp};
cp=function(){return q("yt.mdx.remote.currentScreenId_")};
Cp=function(a){g.ba("yt.mdx.remote.currentScreenId_",a,void 0)};
zp=function(){return q("yt.mdx.remote.connectData_")};
fp=function(a){g.ba("yt.mdx.remote.connectData_",a,void 0)};
op=function(){return q("yt.mdx.remote.connection_")};
xp=function(a){var b=op();fp(null);a?op():Cp("");g.ba("yt.mdx.remote.connection_",a,void 0);$o&&(F($o,function(b){b(a)}),$o.length=0);
b&&!a?ij("yt-remote-connection-change",!1):!b&&a&&hj("yt-remote-connection-change",!0)};
hp=function(){var a=Kk();if(!a)return null;var b=bp().Fc();return ok(b,a)};
wp=function(a,b){cp();Cp(a.id);var c=new Io(Zo,a,ip());c.connect(b,zp());c.subscribe("beforeDisconnect",function(a){ij("yt-remote-before-disconnect",a)});
c.subscribe("beforeDispose",function(){op()&&(op(),xp(null))});
xp(c)};
kp=function(){var a=hp();a?(dp("Resume connection to: "+Ii(a)),wp(a,0)):(Wk(),Wl(),dp("Skipping connecting because no session screen found."))};
ap=function(){var a=ip();if(cc(a)){var a=Jk(),b=Jj("yt-remote-session-name")||"",c=Jj("yt-remote-session-app")||"",a={device:"REMOTE_CONTROL",id:a,name:b,app:c,"mdx-version":3};g.ba("yt.mdx.remote.channelParams_",a,void 0)}};
ip=function(){return q("yt.mdx.remote.channelParams_")||{}};
jp=function(a){a?(Ij("yt-remote-session-app",a.app),Ij("yt-remote-session-name",a.name)):(Kj("yt-remote-session-app"),Kj("yt-remote-session-name"));g.ba("yt.mdx.remote.channelParams_",a,void 0)};
Ep=function(a){return(a=Dp.exec(a))?a[0]:""};
Hp=function(a){var b=Fp.test(a),c;c=(new RegExp("^(https?:)?//([a-z0-9-]{1,63}\\.)*("+Gp.join("|").replace(/\./g,".")+")(:[0-9]+)?([/?#]|$)","i")).test(a);!b&&c&&(a=Error("isTrustedLoader("+a+") behavior is not consistent"),.01>Math.random()&&Xi(a,"WARNING"));return b||c};
Ip=function(a){a=new L(a);bh(a,window.document.location.protocol);ch(a,window.document.location.hostname);window.document.location.port&&dh(a,window.document.location.port);return a.toString()};
Jp=function(a){a=new L(a);bh(a,window.document.location.protocol);return a.toString()};
Lp=function(){return Kp("android")&&Kp("chrome")&&!(Kp("trident/")||Kp("edge/"))};
Mp=function(){return Kp("cobalt")};
Np=function(){return Kp("(ps3; leanback shell)")||Kp("ps3")&&Mp()};
Op=function(){return Kp("(ps4; leanback shell)")||Kp("ps4")&&Mp()};
Pp=function(){var a=/WebKit\/([0-9]+)/.exec(sc);return!!(a&&600<=a[1])};
Qp=function(){return bm&&Kp("crkey")};
Rp=function(){return Kp("nintendo wiiu")};
Sp=function(){return Kp("iemobile")||Kp("windows phone")&&Kp("edge")};
Kp=function(a){var b=sc;return b?0<=b.toLowerCase().indexOf(a):!1};
Vp=function(a,b,c){a&&(c&&!Mp()?a&&(a=K("IFRAME",{src:'javascript:"data:text/html,<body><img src=\\"'+a+'\\"></body>"',style:"display:none"}),mf(a).body.appendChild(a)):Tp(a,b))};
Yp=function(a){return A(B(a))?!1:Wp.test(a)||Xp.test(a)};
Tp=function(a,b){var c=new window.Image,d=""+Zp++;$p[d]=c;c.onload=c.onerror=function(){b&&$p[d]&&b();delete $p[d]};
c.src=a};
bq=function(a,b,c){this.start=a;this.end=b;this.A=aq++;a=c||{};this.wa=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.b=null;this.tooltip=a.tooltip;this.visible=this.visible;this.style=this.style;this.start=this.start};
cq=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}};
dq=function(a,b){return a.start-b.start||a.B-b.B||a.A-b.A};
eq=function(a,b){pk.call(this);this.logEvent=this.Ma="";this.ua=b||"";this.ea=this.loaded=this.D=!1;this.L=this.F=null;this.b=a;if(this.ua){var c=wk("yt-html5-player-modules::"+this.ua);c&&(this.L=new wj(c))}};
gq=function(a){var b=a.b;fq(b.app,a.Ma,b.playerType)};
iq=function(a){hq(a.b,a.Ma)};
kq=function(a,b,c){var d={},e;for(e in b)d[a.Ma+"_"+e]=b[e];b={};for(var f in c)b[a.Ma+"_"+f]=c[f];a=jq(a.b);ra(a.C,d||null);ra(a.A,b||null)};
lq=function(a,b){if(!a.L)return null;var c;try{c=a.L.get(b)}catch(d){a.L&&a.L.remove(b)}return c};
mq=function(a,b,c){if(a.L)try{a.L.set(b,c)}catch(d){}};
nq=function(a){a.X("command_stop_redirect_controls")};
pq=function(a){return(a=oq[a.toString()])?a:"YTP_ERROR_LICENSE"};
qq=function(){};
rq=function(){var a="";try{var b=window.document.createElement("canvas").getContext("webgl");b&&(b.getExtension("WEBGL_debug_renderer_info"),a=b.getParameter(37446),a=a.replace(/[ :]/g,"_"))}catch(c){}return a};
sq=function(a,b){this.g=a||64;this.b=b||null};
xq=function(a,b,c,d){if(P(a,128))return a;var e=a.g,f=a.b,k=b.target;if(!P(a,64)||"ended"!=b.type&&"pause"!=b.type)if("pause"==b.type&&k.Rf()||"ended"==b.type&&(k.Rf()||1>Math.abs(k.getCurrentTime()-k.lf())))0<k.Hl()&&k.hc()&&(e=14,f=null);else if("pause"==b.type)P(a,256)?(e^=256)||(e=64):P(a,32)||P(a,2)||P(a,4)||(e=4,P(a,1)&&P(a,8)&&(e|=1),f=null);else if("playing"==b.type)e=8,f=null,P(a,32)&&(e|=32),d&&P(a,1)&&tq(c,k)&&(e|=1);else if("error"==b.type){a:{if(2==k.jb())b="progressive.net";else if(3==
k.jb())b="fmt.decode";else if(4==k.jb())b="fmt.unplayable";else{b=null;break a}c="mediaElem.1";.001>Math.random()&&(c+=";gpu."+rq());b={errorCode:b,errorDetail:c,message:N("YTP_ERROR_GENERIC_WITHOUT_LINK"),messageKey:"YTP_ERROR_GENERIC_WITHOUT_LINK"}}b&&(f=b,e|=128)}else if("progress"==b.type)uq(a)&&tq(c,k)&&(e|=1);else if("seeked"==b.type)e&=-17;else if("seeking"==b.type)e|=16,0>=vq(k)&&(e|=1),e&=-3;else if("waiting"==b.type)P(a,2)||(e|=1);else if("timeupdate"==b.type)P(a,16)||P(a,4)||(e=tq(c,k)?
e|1:e&-2),1<k.ye()&&0<k.getCurrentTime()&&(e&=-65);else return a;return wq(a,e,f)};
tq=function(a,b){return a?yq(a,b.getCurrentTime(),zq(),vq(b)):!1};
wq=function(a,b,c){return b==a.g&&c==a.b||b&128&&!c||b&2&&b&16?a:new sq(b,c)};
Aq=function(a,b){return wq(a,a.g|b)};
Bq=function(a,b){return wq(a,a.g&~b)};
Cq=function(a){return wq(a,(a.g|4)&-9)};
P=function(a,b){return!!(a.g&b)};
uq=function(a){return P(a,8)&&!P(a,2)};
Dq=function(a){return P(a,64)&&!P(a,8)&&!P(a,4)};
Eq=function(a){return P(a,1)&&!P(a,2)};
Fq=function(a){return P(a,128)?-1:P(a,2)?0:P(a,1)&&!P(a,32)?3:P(a,64)?-1:P(a,8)?1:P(a,4)?2:-1};
Gq=function(a,b,c){pk.call(this);this.C=b;this.b=7500+Math.floor(15E3*Math.random());this.D=c.innertubeApiKey;this.F=JSON.stringify({context:{client:{clientName:c.zm,clientVersion:c.innertubeContextClientVersion,hl:c.Bm,gl:c.Am}},videoId:a});this.G="https://"+(c.apiaryHost||"www.googleapis.com")+"/youtubei/"+c.innertubeApiVersion+"/player/live_state";this.g=new ge(x(this.B,this));H(this,this.g);this.B()?this.g.start(this.b):this.g.start(1E4)};
Iq=function(a){G.call(this);this.pa={};this.ua={};this.element=Hq(this,a)};
Hq=function(a,b,c){if(ea(b)){c=0;var d=Df(b[c++]);if(w(b[c])){var e=b[c++];if(e=Jq(a,d,"class",e))Kq(a,d,"class",e),a.pa[e]=d}else if(ea(b[c])){for(var f=b[c++],e=0;e<f.length;e++)a.pa[f[e]]=d;Kq(a,d,"class",f.join(" "))}for(;c<b.length;c++){var k=b[c];ea(k)||k&&k.I?(e=Hq(a,k),d.appendChild(e)):ka(k)?k.element?d.appendChild(k.element):Lq(a,d,k):w(k)&&(k=Jq(a,d,"child",k),null!=k&&d.appendChild(window.document.createTextNode(String(k))))}}else{d=(c=c||"svg"==b.I)?window.document.createElementNS("http://www.w3.org/2000/svg",
b.I):window.document.createElement(b.I);if(e=b.W){if(e=Jq(a,d,"class",e))Kq(a,d,"class",e),a.pa[e]=d}else if(f=b.fa){for(e=0;e<f.length;e++)a.pa[f[e]]=d;Kq(a,d,"class",f.join(" "))}if(f=b.P)for(var l=0,e=0;e<f.length;e++)if(k=f[e])if(w(k))k=Jq(a,d,"child",k),null!=k&&d.appendChild(window.document.createTextNode(String(k)));else{var m=k,k=Hq(a,m,c);d.appendChild(k);m.Ea&&(m=Iq.b(),k.id=m,k=window.document.createElementNS("http://www.w3.org/2000/svg","use"),k.setAttribute("class","ytp-svg-shadow"),
k.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+m),Hf(d,k,l++))}(b=b.U)&&Lq(a,d,b)}return d};
Jq=function(a,b,c,d){return"{{"==d.substr(0,2)?(a.ua[d]=[b,c],null):d};
Mq=function(a){return ea(a)&&w(a[0])||ka(a)&&w(a.I)};
Kq=function(a,b,c,d){if("child"==c){Gf(b);if(!ea(d)||Mq(d))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(Mq(f))c.push(Hq(a,f));else if(f.element)c.push(f.element);else if(w(f)&&-1!=f.indexOf("\n"))for(var f=f.split("\n"),k=0;k<f.length;k++)0<k&&c.push(window.document.createElement("br")),c.push(window.document.createTextNode(String(f[k])));else c.push(window.document.createTextNode(String(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())};
Lq=function(a,b,c){for(var d in c){var e=c[d];null!=e&&Kq(a,b,d,w(e)?Jq(a,b,d,e):e)}};
Nq=function(a,b){a&&(a.style.display=b)};
Oq=function(a,b){var c=Sh("requestAnimationFrame",window);return Ti(function(){c?c.call(window,a):a()},b||0)};
Pq=function(a){if(window.document.createRange){var b=window.document.createRange();b.selectNodeContents(a);window.getSelection().removeAllRanges();window.getSelection().addRange(b)}};
R=function(a){Iq.call(this,a);this.g=!0;this.aa=[]};
Qq=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};
Rq=function(a){return(!ha(a.button)||0==a.button)&&!a.shiftKey&&!a.altKey&&!a.metaKey&&!a.ctrlKey};
Sq=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};
Tq=function(a){return M(a,function(a){a=a.toString(16);return 1<a.length?a:"0"+a}).join("")};
Xq=function(a,b){fa(a);Uq();for(var c=b?Vq:Wq,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,t=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[t],c[f],c[l],c[n])}return d.join("")};
Zq=function(a){var b="";Yq(a,function(a){b+=String.fromCharCode(a)});
return b};
$q=function(a){var b=[];Yq(a,function(a){b.push(a)});
return b};
Yq=function(a,b){function c(b){for(;d<a.length;){var c=a.charAt(d++),e=ar[c];if(null!=e)return e;if(!A(c))throw Error("Unknown base64 encoding at char: "+c);}return b}
Uq();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))}};
Uq=function(){if(!Wq){Wq={};ar={};Vq={};for(var a=0;65>a;a++)Wq[a]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(a),ar[Wq[a]]=a,Vq[a]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_.".charAt(a),62<=a&&(ar["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_.".charAt(a)]=a)}};
cr=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=C(),d=0;d<c%23;d++)a[b]=Math.random();a[b]=Math.floor(256*Math.random())}if(b=br)for(c=1,d=0;d<b.length;d++)a[c%16]=a[c%16]^a[(c-1)%16]/4^b.charCodeAt(d),c++;return a};
dr=function(){for(var a=cr(),b=[],c=0;c<a.length;c++)b.push("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_".charAt(a[c]&63));return b.join("")};
er=function(){return M(cr(),function(a){return(a&15).toString(16)}).join("")};
fr=function(a){var b=0;-1!=a.indexOf("h")&&(a=a.split("h"),b=3600*a[0],a=a[1]);-1!=a.indexOf("m")&&(a=a.split("m"),b=60*a[0]+b,a=a[1]);-1!=a.indexOf("s")?(a=a.split("s"),b=1*a[0]+b):b=1*a+b;return b};
hr=function(){if(null==q("_lact",window)){var a=(0,window.parseInt)(Ri("LACT"),10),a=(0,window.isFinite)(a)?C()-Math.max(a,0):-1;g.ba("_lact",a,window);-1==a&&gr();jm(window.document,"keydown",gr);jm(window.document,"keyup",gr);jm(window.document,"mousedown",gr);jm(window.document,"mouseup",gr);ej("page-mouse",gr);ej("page-scroll",gr);ej("page-resize",gr)}};
gr=function(){null==q("_lact",window)&&(hr(),q("_lact",window));var a=C();g.ba("_lact",a,window);hj("USER_ACTIVE")};
ir=function(){var a=q("_lact",window);return null==a?-1:Math.max(C()-a,0)};
jr=function(){};
rr=function(){Vi(kr);if(!cc(lr)){for(var a in lr){var b=mr[a];if(!b){b=nr[a];if(!b)continue;b=new b;mr[a]=b}var c=b.b,c={client:{hl:c.Bm,gl:c.Am,clientName:c.zm,clientVersion:c.innertubeContextClientVersion}};Ri("DELEGATED_SESSION_ID")&&(c.user={onBehalfOfUser:Ri("DELEGATED_SESSION_ID")});c={context:c};c.requestTimeMs=Math.round(zq());c[or[a]]=lr[a];pr(b,a,c);delete lr[a]}cc(lr)||qr()}};
qr=function(){Vi(kr);kr=Ti(rr,Ri("LOGGING_BATCH_TIMEOUT",1E4))};
sr=function(a){var b=window.location;a=Ug(a,{})+"";a=a instanceof Ee?a:Ie(a);b.href=Fe(a)};
tr=function(a,b){var c=Ri("EVENT_ID");c&&(b||(b={}),b.ei||(b.ei=c));if(b){var c=b,d=Ri("VALID_SESSION_TEMPDATA_DOMAINS",[]),e=Lg(window.location.href);e&&d.push(e);e=Lg(a);if(gb(d,e)||!e&&ta(a,"/"))if(d=Jg(a),d=Hg(null,null,null,null,d[5],d[6],d[7]),e=d.indexOf("#"),d=0>e?d:d.substr(0,e))Lj("enable_more_related_ve_logging")&&(c.itct||c.ved)&&((e=c.csn)||(e=Ri("client-screen-nonce",void 0))||(e=Ri("EVENT_ID",void 0)),c.csn=e),d="ST-"+Sa(d).toString(36),e=c?Sg(c):"",Mk.set(""+d,e,5,"/","youtube.com"),
c&&(c=c.itct||c.ved,d=q("yt.logging.screenreporter.storeParentElement"),c&&d&&d(new jr))}};
ur=function(a,b){window.open(a,b||Sa(a).toString(36))};
vr=function(a){var b=!S(a).Na&&3!=a.getPresentingPlayerType();return a.Qa()||b};
wr=function(a,b,c,d){if(!c&&Rq(a))return sm(a),d&&S(b).experiments.Z("player_interaction_logging")&&b.app.bc.b.Rb("onLogVeClicked",new jr),!0;b.pauseVideo();a=a.currentTarget.getAttribute("href");tr(a,d);return!1};
zr=function(a,b,c){if(xr(S(b))&&2!=b.getPresentingPlayerType()){if(Rq(c))return b.Qa()&&yr(b),sm(c),!0}else{var d=Rq(c);d&&b.pauseVideo();tr(a,null);d&&(ur(a),sm(c))}return!1};
Ar=function(a){R.call(this,{I:"a",W:"ytp-fresca-suggested-central-link",U:{href:"{{link_destination}}"},P:[{I:"div",W:"ytp-fresca-suggested-promo-central",P:[{I:"div",W:"ytp-fresca-suggested-header",P:["{{suggested_header_central}}"]},{I:"div",W:"ytp-fresca-suggested-central-image",U:{style:"{{image_style}}"},P:[{I:"div",W:"ytp-fresca-suggested-image-badge",P:["{{badge_content}}"]}]},{I:"div",W:"ytp-fresca-suggested-title",P:["{{suggested_title}}"]},{I:"div",W:"ytp-fresca-suggested-content",P:["{{suggested_content}}"]}]}]});
this.b=a;this.O("click",this.o,this)};
Br=function(a){R.call(this,{I:"div",W:"ytp-fresca-suggested-promo-sidebar",P:[{I:"div",W:"ytp-fresca-suggested-sidebar-title",P:["{{suggested_sidebar_title}}"]},{I:"button",fa:["ytp-button","ytp-fresca-suggested-sidebar-close-button"],P:["{{suggested_sidebar_close}}"]},{I:"div",W:"ytp-fresca-suggested-sidebar-items",P:["{{sidebar_items}}"]}]});this.b=[];this.o=a;this.A=!1};
Hr=function(a,b){a.va("suggested_sidebar_title",b.g?N("YTP_FRESCA_SIDEBAR_PROMO_HEADER",{STREAMER_NAME:b.g}):"");a.va("suggested_sidebar_close",Ch());a.S(a.pa["ytp-fresca-suggested-sidebar-close-button"],"click",a.tC);Ob(a.b);a.b=[];F(b.b,function(a,b){if(!(5<=b)&&a){var e=new R({I:"a",W:"ytp-fresca-suggested-sidebar-link",U:{href:"{{link_destination}}"},P:[{I:"div",W:"ytp-fresca-suggested-sidebar",P:[{I:"div",W:"ytp-fresca-suggested-image",U:{style:"{{image_style}}"},P:[{I:"div",W:"ytp-fresca-suggested-image-badge",
P:["{{badge_content}}"]}]},{I:"div",W:"ytp-fresca-suggested-title",P:["{{suggested_title}}"]},{I:"div",W:"ytp-fresca-suggested-content",P:["{{suggested_content}}"]}]}]}),f="background-image:"+Cr(a),k=Dr(a);e.update({suggested_title:a.av,suggested_content:Er(a),badge_content:k,image_style:f,link_destination:a.getVideoUrl()});f=e.pa["ytp-fresca-suggested-image-badge"];J(f,"ytp-fresca-suggested-image-badge-live",a.isLive());f.style.display=k?"":"none";e.O("click",this.JB,this);this.b.push(e)}},a);
a.va("sidebar_items",a.b)};
Ir=function(a){R.call(this,{I:"div",fa:["ytp-fresca-module"],P:[{I:"div",W:"ytp-fresca-slant",P:[{I:"div",W:"ytp-fresca-slant-blur-image"},{I:"div",W:"ytp-fresca-slant-inner",P:[{I:"div",W:"ytp-fresca-slant-overlay"},{I:"div",W:"ytp-fresca-slant-arrows"}]}]},{I:"div",W:"ytp-fresca-band-slate",P:[{I:"div",W:"ytp-fresca-message",P:[{I:"h1",W:"ytp-fresca-heading",P:["{{heading}}"]},{I:"h2",W:"ytp-fresca-byline",P:["{{byline}}"]},{I:"h3",W:"ytp-fresca-countdown",P:["{{countdown}}"]}]}]}]});this.F=a;this.B=
0;this.b=null;this.C=-1;this.A=new Ar(a);H(this,this.A);this.o=new Br(a);H(this,this.o);this.A.oa();this.A.Ba(this.element);this.o.oa();this.o.Ba(this.element)};
Nr=function(a,b,c){if(!a.b||a.b.state!=b.state||a.b.startTime!=b.startTime||a.b.imageUrl!=b.imageUrl||a.b.messageText.join()!=b.messageText.join()||c)if(a.b=b,b=Jr(b),J(a.element,"ytp-fresca-final-day-easter-egg",b),c=!b&&a.b.imageUrl,b=a.pa["ytp-fresca-slant-blur-image"],c=c?"url("+c+")":"",a.element.style.backgroundImage=c,b.style.backgroundImage=c,b=Kr(a.b),a.update({heading:b[0]||"",byline:b[1]||"",countdown:b[2]||""}),a.D(!0),a.b.g&&!Lr(a.F))if(Mr(a.b.g)&&!Jr(a.b)){b=a.A;c=a.b.g.b[0];var d;d=
a.b.g;d=d.g?N("YTP_FRESCA_CENTRAL_PROMO_HEADER",{STREAMER_NAME:d.g}):"";var e="background-image:"+Cr(c);b.update({suggested_header_central:d,suggested_title:c.av,suggested_content:Er(c),badge_content:Dr(c),link_destination:c.getVideoUrl(),image_style:e});J(b.pa["ytp-fresca-suggested-image-badge"],"ytp-fresca-suggested-image-badge-live",c.isLive());a.A.show();a.o.oa()}else b=a.b.g,!(0<b.b.length)||Mr(b)||Jr(a.b)||a.o.A?a.o.oa():(Hr(a.o,a.b.g),a.o.show()),a.A.oa();else a.A.oa(),a.o.oa()};
Or=function(a){var b=Math.floor(C()/1E3);if(b>a)return"";a-=b;return 86400>a?Qq(a):259200>a?N("YTP_FRESCA_COUNTDOWN_HOURS",{HOURS:Math.floor(a/3600)}):N("YTP_FRESCA_COUNTDOWN_DAYS",{DAYS:Math.floor(a/86400)})};
Pr=function(a,b,c,d,e,f){w(a)?(this.C="y"==a?b:0,this.B="m"==a?b:0,this.b="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.b=c||0,this.g=d||0,this.o=e||0,this.A=f||0)};
Sr=function(a,b,c){ha(a)?(this.date=Qr(a,b||0,c||1),Rr(this,c||1)):ka(a)?(this.date=Qr(a.getFullYear(),a.getMonth(),a.getDate()),Rr(this,a.getDate())):(this.date=new Date(C()),a=this.date.getDate(),this.date.setHours(0),this.date.setMinutes(0),this.date.setSeconds(0),this.date.setMilliseconds(0),Rr(this,a))};
Qr=function(a,b,c){b=new Date(a,b,c);0<=a&&100>a&&b.setFullYear(b.getFullYear()-1900);return b};
Rr=function(a,b){a.getDate()!=b&&a.date.setUTCHours(a.date.getUTCHours()+(a.getDate()<b?1:-1))};
Tr=function(){};
Vr=function(a){if("number"==typeof a){var b=new Tr;b.o=a;var c;c=a;if(0==c)c="Etc/GMT";else{var d=["Etc/GMT",0>c?"-":"+"];c=Math.abs(c);d.push(Math.floor(c/60)%100);c%=60;0!=c&&d.push(":",Ma(c,2));c=d.join("")}b.A=c;c=a;0==c?c="UTC":(d=["UTC",0>c?"+":"-"],c=Math.abs(c),d.push(Math.floor(c/60)%100),c%=60,0!=c&&d.push(":",c),c=d.join(""));a=Ur(a);b.B=[c,c];b.b={wP:a,Uo:a};b.g=[];return b}b=new Tr;b.A=a.id;b.o=-a.std_offset;b.B=a.names;b.b=a.names_ext;b.g=a.transitions;return b};
Ur=function(a){var b=["GMT"];b.push(0>=a?"+":"-");a=Math.abs(a);b.push(Ma(Math.floor(a/60)%100,2),":",Ma(a%60,2));return b.join("")};
Wr=function(a,b){for(var c=Date.UTC(b.getUTCFullYear(),b.getUTCMonth(),b.getUTCDate(),b.getUTCHours(),b.getUTCMinutes())/36E5,d=0;d<a.g.length&&c>=a.g[d];)d+=2;return 0==d?0:a.g[d-1]};
$r=function(a,b){this.g=[];this.b=b||Xr;"number"==typeof a?Yr(this,a):Zr(this,a)};
as=function(a){return a.getHours?a.getHours():0};
Zr=function(a,b){for(bs&&(b=b.replace(/\u200f/g,""));b;){for(var c=b,d=0;d<cs.length;++d){var e=b.match(cs[d]);if(e){var f=e[0];b=b.substring(f.length);0==d&&("''"==f?f="'":(f=f.substring(1,"'"==e[1]?f.length-1:f.length),f=f.replace(/\'\'/g,"'")));a.g.push({text:f,type:d});break}}if(c===b)throw Error("Malformed pattern part: "+b);}};
Yr=function(a,b){var c;if(4>b)c=a.b.ji[b];else if(8>b)c=a.b.Ik[b-4];else if(12>b)c=a.b.qo[b-8],c=c.replace("{1}",a.b.ji[b-8]),c=c.replace("{0}",a.b.Ik[b-8]);else{Yr(a,10);return}Zr(a,c)};
ds=function(a,b){var c;c=String(b);var d=a.b||Xr;if(void 0!==d.my){for(var e=[],f=0;f<c.length;f++){var k=c.charCodeAt(f);e.push(48<=k&&57>=k?String.fromCharCode(d.my+k-48):c.charAt(f))}c=e.join("")}return c};
es=function(a){if(!(a.getHours&&a.getSeconds&&a.getMinutes))throw Error("The date to format has no time (probably a goog.date.Date). Use Date or goog.date.DateTime, or use a pattern without time fields.");};
fs=function(a,b,c,d,e,f){var k=b.length;switch(b.charAt(0)){case "G":return c=0<d.getFullYear()?1:0,4<=k?a.b.to[c]:a.b.uo[c];case "y":return c=d.getFullYear(),0>c&&(c=-c),2==k&&(c%=100),ds(a,Ma(c,k));case "M":a:switch(c=d.getMonth(),k){case 5:k=a.b.Io[c];break a;case 4:k=a.b.Bk[c];break a;case 3:k=a.b.Ck[c];break a;default:k=ds(a,Ma(c+1,k))}return k;case "k":return es(e),ds(a,Ma(as(e)||24,k));case "S":return ds(a,(e.getTime()%1E3/1E3).toFixed(Math.min(3,k)).substr(2)+(3<k?Ma(0,k-3):""));case "E":return c=
d.getDay(),4<=k?a.b.Kk[c]:a.b.Dk[c];case "a":return es(e),k=as(e),a.b.xk[12<=k&&24>k?1:0];case "h":return es(e),ds(a,Ma(as(e)%12||12,k));case "K":return es(e),ds(a,Ma(as(e)%12,k));case "H":return es(e),ds(a,Ma(as(e),k));case "c":a:switch(c=d.getDay(),k){case 5:k=a.b.So[c];break a;case 4:k=a.b.Hk[c];break a;case 3:k=a.b.Gk[c];break a;default:k=ds(a,Ma(c,1))}return k;case "L":a:switch(c=d.getMonth(),k){case 5:k=a.b.Ro[c];break a;case 4:k=a.b.Ek[c];break a;case 3:k=a.b.Fk[c];break a;default:k=ds(a,Ma(c+
1,k))}return k;case "Q":return c=Math.floor(d.getMonth()/3),4>k?a.b.Oo[c]:a.b.Mo[c];case "d":return ds(a,Ma(d.getDate(),k));case "m":return es(e),ds(a,Ma(e.getMinutes(),k));case "s":return es(e),ds(a,Ma(e.getSeconds(),k));case "v":return k=f||Vr(c.getTimezoneOffset()),k.A;case "V":return a=f||Vr(c.getTimezoneOffset()),2>=k?a.A:0<Wr(a,c)?p(a.b.Kw)?a.b.Kw:a.b.DST_GENERIC_LOCATION:p(a.b.Uo)?a.b.Uo:a.b.STD_GENERIC_LOCATION;case "w":return c=a.b.li,e=new Date(e.getFullYear(),e.getMonth(),e.getDate()),
b=a.b.ki||0,c=e.valueOf()+864E5*(((p(c)?c:3)-b+7)%7-((e.getDay()+6)%7-b+7)%7),ds(a,Ma(Math.floor(Math.round((c-(new Date((new Date(c)).getFullYear(),0,1)).valueOf())/864E5)/7)+1,k));case "z":return a=f||Vr(c.getTimezoneOffset()),4>k?a.B[0<Wr(a,c)?2:0]:a.B[0<Wr(a,c)?3:1];case "Z":return e=f||Vr(c.getTimezoneOffset()),4>k?(k=-(e.o-Wr(e,c)),a=[0>k?"-":"+"],k=Math.abs(k),a.push(Ma(Math.floor(k/60)%100,2),Ma(k%60,2)),k=a.join("")):k=ds(a,Ur(e.o-Wr(e,c))),k;default:return""}};
gs=function(a){this.B=a.thumbnailUrl?a.thumbnailUrl:null;this.b=a.startTimeSecs?(0,window.parseInt)(a.startTimeSecs,10):null;this.av=a.title;this.g=a.state;this.o=a.currentViewers?(0,window.parseInt)(a.currentViewers,10):null;this.C=a.videoUrl;this.A=a.durationSecs?(0,window.parseInt)(a.durationSecs,10):null};
Cr=function(a){return(a=a.B)?"url("+a+")":""};
Er=function(a){if("COMPLETE"==a.g){var b=Math.floor(C()/1E3);a=a.b?b-a.b:0;return 172800<a?N("YTP_FRESCA_LIVE_DAYS_AGO",{DAYS:Math.floor(a/86400)}):3600<a?N("YTP_FRESCA_LIVE_HOURS_AGO",{HOURS:Math.floor(a/3600)}):N("YTP_FRESCA_LIVE_RECENTLY")}return a.isUpcoming()?(b=Math.floor(C()/1E3),a=a.b?a.b-b:0,172800<a?N("YTP_FRESCA_LIVE_IN_DAYS",{DAYS:Math.floor(a/86400)}):3600<a?N("YTP_FRESCA_LIVE_IN_HOURS",{HOURS:Math.floor(a/3600)}):N("YTP_FRESCA_STREAMING_SOON")):a.o&&2<a.o?N("YTP_FRESCA_VIEWERS_WATCHING_NOW",
{VIEWER_COUNT:a.o}):N("YTP_FRESCA_NO_VIEWERS_STREAMING_NOW")};
Dr=function(a){return"COMPLETE"==a.g&&a.A?Qq(a.A):a.isLive()?N("YTP_FRESCA_LIVE_BADGE"):null};
hs=function(a){this.g=a.channelName?a.channelName:"";this.b=[];if(a=a.suggestedEvents)for(var b=0;b<a.length;b++)this.b.push(new gs(a[b]))};
Mr=function(a){return 1==a.b.length&&a.b[0].isLive()};
js=function(a,b){this.state=-1;this.o=a;this.messageText=[];this.A=!1;b&&is(this,b)};
is=function(a,b){var c=b.lifeCycleState;c&&(a.state=ks[c]||-1);a.startTime=(0,window.parseInt)(b.scheduledStartTime,10);if(c=b.slateBackgroundUrl)a.imageUrl=c;if(c=b.streamStates)a.A=0<=ab(c,function(a){a=a.streamState;return!!a&&"STREAM_STATE_ACTIVE"==a});
if(c=b.broadcastId)a.broadcastId=c;a.g=new hs(b)};
Kr=function(a){return a.messageText.length?a.messageText:ls(a)};
ls=function(a){switch(a.state){case 6:return!a.b()&&a.o?[N("YTP_FRESCA_EVENT_OFFLINE_PREAMBLE"),null,N("YTP_FRESCA_EVENT_OFFLINE")]:a.b()?[]:[N("YTP_FRESCA_EVENT_VIDEO_INTERRUPTED"),N("YTP_FRESCA_STREAMER_STOPPED_STREAMING")];case 8:case 7:if(!a.startTime)return a.o?[N("YTP_FRESCA_EVENT_OFFLINE_PREAMBLE"),null,N("YTP_FRESCA_EVENT_OFFLINE")]:a.o?[N("YTP_FRESCA_EVENT_OFFLINE")]:[N("YTP_FRESCA_EVENT_OVER_MESSAGE"),N("YTP_FRESCA_COMPLETE_MESSAGE")];default:if(Jr(a))return["Dawn of","The final day","-24 hours remain-"];
if(a.startTime){var b=Ri("LOCAL_DATE_TIME_CONFIG"),c="";if(b){var c=a.startTime,d;d=b.formatLongDate;Xr={Bk:b.months,Ek:b.months,Ck:b.shortMonths,Fk:b.shortMonths,ji:b.dateFormats,Kk:b.weekdays,Hk:b.shortMonths,Dk:b.shortWeekdays,Gk:b.shortWeekdays,Yo:b.weekendRange,ki:b.firstDayOfWeek,li:b.firstWeekCutoffDay,xk:b.amPms};c=(new $r(d)).format(new Date(1E3*c))}b=Math.floor(C()/1E3);return[b<=a.startTime?N("YTP_FRESCA_EVENT_STARTS_IN"):3600>b-a.startTime?N("YTP_FRESCA_EVENT_STARTING_SOON"):N("YTP_FRESCA_EVENT_HASNT_STARTED"),
c]}return a.o?[N("YTP_FRESCA_EVENT_OFFLINE_PREAMBLE"),null,N("YTP_FRESCA_EVENT_OFFLINE")]:a.o?[N("YTP_FRESCA_EVENT_OFFLINE")]:[N("YTP_FRESCA_STAND_BY_MESSAGE")]}};
Jr=function(a){if(!a.startTime)return!1;var b=a.startTime-Math.floor(C()/1E3);return gb(ms,a.state)&&86459>=b&&86400<=b};
ns=function(a){eq.call(this,a);this.logEvent=this.Ma="fresca";this.o=this.G=!1;this.A=this.g=this.B=null;Zi({YTP_FRESCA_STARTING_SOON_MESSAGE:"\u0422\u0440\u0430\u043d\u0441\u043b\u044f\u0446\u0438\u044f \u0441\u043a\u043e\u0440\u043e \u043d\u0430\u0447\u043d\u0435\u0442\u0441\u044f...",YTP_FRESCA_EVENT_OVER_MESSAGE:"\u041f\u0440\u044f\u043c\u0430\u044f \u0442\u0440\u0430\u043d\u0441\u043b\u044f\u0446\u0438\u044f \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043d\u0430.",YTP_FRESCA_COMPLETE_MESSAGE:"\u0411\u043b\u0430\u0433\u043e\u0434\u0430\u0440\u0438\u043c \u0437\u0430 \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440!",
YTP_FRESCA_STAND_BY_MESSAGE:"\u041f\u043e\u0436\u0430\u043b\u0443\u0439\u0441\u0442\u0430, \u043f\u043e\u0434\u043e\u0436\u0434\u0438\u0442\u0435.",YTP_FRESCA_EVENT_VIDEO_INTERRUPTED:"\u0422\u0440\u0430\u043d\u0441\u043b\u044f\u0446\u0438\u044f \u043f\u0440\u0435\u0440\u0432\u0430\u043d\u0430",YTP_FRESCA_STREAMER_STOPPED_STREAMING:"\u0410\u0432\u0442\u043e\u0440 \u043f\u0440\u0435\u043a\u0440\u0430\u0442\u0438\u043b \u044d\u0444\u0438\u0440",YTP_FRESCA_EVENT_OFFLINE:"\u043e\u0444\u043b\u0430\u0439\u043d",
YTP_FRESCA_EVENT_OFFLINE_PREAMBLE:"\u0422\u0440\u0430\u043d\u0441\u043b\u044f\u0446\u0438\u044f",YTP_FRESCA_EVENT_STARTS_IN:"\u041f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u0442\u0435 \u043f\u0440\u044f\u043c\u0443\u044e \u0442\u0440\u0430\u043d\u0441\u043b\u044f\u0446\u0438\u044e.",YTP_FRESCA_EVENT_STARTING_SOON:"\u0422\u0440\u0430\u043d\u0441\u043b\u044f\u0446\u0438\u044f \u0432\u043e\u0442-\u0432\u043e\u0442 \u043d\u0430\u0447\u043d\u0435\u0442\u0441\u044f.",YTP_FRESCA_EVENT_HASNT_STARTED:"\u0422\u0440\u0430\u043d\u0441\u043b\u044f\u0446\u0438\u044f \u0435\u0449\u0451 \u043d\u0435 \u043d\u0430\u0447\u0430\u043b\u0430\u0441\u044c.",
YTP_FRESCA_CENTRAL_PROMO_HEADER:"$STREAMER_NAME \u0432 \u044d\u0444\u0438\u0440\u0435!",YTP_FRESCA_SIDEBAR_PROMO_HEADER:"\u0414\u0440\u0443\u0433\u0438\u0435 \u0442\u0440\u0430\u043d\u0441\u043b\u044f\u0446\u0438\u0438 \u0430\u0432\u0442\u043e\u0440\u0430\u00a0$STREAMER_NAME.",YTP_FRESCA_LIVE_BADGE:"\u0412 \u044d\u0444\u0438\u0440\u0435",YTP_FRESCA_LIVE_DAYS_AGO:"\u041f\u0440\u043e\u0432\u0435\u0434\u0435\u043d\u0430 $DAYS\u00a0\u0434\u043d. \u043d\u0430\u0437\u0430\u0434",YTP_FRESCA_LIVE_HOURS_AGO:"\u041f\u0440\u043e\u0432\u0435\u0434\u0435\u043d\u0430 $HOURS\u00a0\u0447. \u043d\u0430\u0437\u0430\u0434",
YTP_FRESCA_LIVE_RECENTLY:"\u041f\u0440\u043e\u0432\u0435\u0434\u0435\u043d\u0430 \u0441\u043e\u0432\u0441\u0435\u043c \u043d\u0435\u0434\u0430\u0432\u043d\u043e",YTP_FRESCA_LIVE_IN_DAYS:"\u0421\u043c\u043e\u0442\u0440\u0438\u0442\u0435 \u0447\u0435\u0440\u0435\u0437 $DAYS\u00a0\u0434\u043d.",YTP_FRESCA_LIVE_IN_HOURS:"\u0421\u043c\u043e\u0442\u0440\u0438\u0442\u0435 \u0447\u0435\u0440\u0435\u0437 $HOURS\u00a0\u0447.",YTP_FRESCA_VIEWERS_WATCHING_NOW:"\u0417\u0440\u0438\u0442\u0435\u043b\u0435\u0439: $VIEWER_COUNT",
YTP_FRESCA_NO_VIEWERS_STREAMING_NOW:"\u0412 \u044d\u0444\u0438\u0440\u0435",YTP_FRESCA_COUNTDOWN_DAYS:"$DAYS\u00a0\u0434\u043d.",YTP_FRESCA_COUNTDOWN_HOURS:"$HOURS\u00a0\u0447."});this.C=!1;this.H="leanback"!=S(this.b).b};
qs=function(a,b){if(!a.H)return!1;var c=!!Kr(b).length||!!b.imageUrl;if(!a.o&&6>b.state)return c;if(a.b.app.g.G&&(b.imageUrl||b.messageText.length))return!0;var d=os(a.b),d=Eq(d)||P(d,2),e;if(e=!a.g.b())(e=!a.o)||(e=!(os(a.b).Za()&&!ps(a.b.getVideoData())&&!a.b.app.g.G)&&d);return e||a.G&&a.b.app.g.G||!a.o&&6<b.state?c:!1};
ts=function(a,b){var c=qs(a,b);if(!a.o)switch(b.state){case 6:b.b()&&(a.o=!0,iq(a));break;case 8:case 7:a.o=!0}c&&Nr(a.B,b);c&&!a.loaded?(a.load(),rs(a.b)):!c&&a.loaded&&(a.unload(),rs(a.b))};
vs=function(a){return us(a.getVideoData(),"fresca_module")?new ns(a):null};
ws=function(a,b){var c;(c=!a.g)||(c=a.g,c=!(b&&c.broadcastId==b.broadcastId&&c.state==b.state&&c.b()==b.b()&&c.imageUrl==b.imageUrl&&Gb(c.messageText,b.messageText)&&(c.startTime==b.startTime||(0,window.isNaN)(c.startTime)&&(0,window.isNaN)(b.startTime))));if(c){a.g=b;c=a.b;var d;d={hasActiveStream:b.b(),imageUrl:b.imageUrl,messageText:Kr(b),startTime:b.startTime,state:b.state};rs(c,d)}};
xs=function(){if(!wf)return!1;try{return new window.ActiveXObject("MSXML2.DOMDocument"),!0}catch(a){return!1}};
As=function(a){if("undefined"!=typeof window.DOMParser)return(new window.DOMParser).parseFromString(a,"application/xml");if(ys){var b=zs();b.loadXML(a);return b}throw Error("Your browser does not support loading xml documents");};
Bs=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");};
Cs=function(a,b){if("undefined"!=typeof a.selectSingleNode){var c=mf(a);"undefined"!=typeof c.setProperty&&c.setProperty("SelectionLanguage","XPath");return a.selectSingleNode(b)}if(window.document.implementation.hasFeature("XPath","3.0")){var c=mf(a),d=c.createNSResolver(c.documentElement);return c.evaluate(b,a,d,window.XPathResult.FIRST_ORDERED_NODE_TYPE,null).singleNodeValue}return null};
zs=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};
Es=function(){return Cc?"Webkit":Ds?"Moz":wf?"ms":Dc?"O":null};
Gs=function(a,b,c){if(w(b))(b=Fs(a,b))&&(a.style[b]=c);else for(var d in b){c=a;var e=b[d],f=Fs(c,d);f&&(c.style[f]=e)}};
Fs=function(a,b){var c=Hs[b];if(!c){var d=Wa(b),c=d;void 0===a.style[d]&&(d=Es()+Xa(d),void 0!==a.style[d]&&(c=d));Hs[b]=c}return c};
Is=function(a,b){var c=a.style[Wa(b)];return"undefined"!==typeof c?c:a.style[Fs(a,b)]||""};
Js=function(a,b){var c=mf(a);return c.defaultView&&c.defaultView.getComputedStyle&&(c=c.defaultView.getComputedStyle(a,null))?c[b]||c.getPropertyValue(b)||"":""};
Ks=function(a,b){return Js(a,b)||(a.currentStyle?a.currentStyle[b]:null)||a.style&&a.style[b]};
Ms=function(a,b,c){var d;b instanceof ff?(d=b.x,b=b.y):(d=b,b=c);a.style.left=Ls(d,!1);a.style.top=Ls(b,!1)};
Ns=function(a){return new ff(a.offsetLeft,a.offsetTop)};
Os=function(a){var b;try{b=a.getBoundingClientRect()}catch(c){return{left:0,top:0,right:0,bottom:0}}wf&&a.ownerDocument.body&&(a=a.ownerDocument,b.left-=a.documentElement.clientLeft+a.body.clientLeft,b.top-=a.documentElement.clientTop+a.body.clientTop);return b};
Ps=function(a){if(wf&&!Bc(8))return a.offsetParent;var b=mf(a),c=Ks(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=Ks(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};
Rs=function(a){for(var b=new mg(0,window.Infinity,window.Infinity,0),c=of(a),d=c.b.body,e=c.b.documentElement,f=vf(c.b);a=Ps(a);)if(!(wf&&0==a.clientWidth||Cc&&0==a.clientHeight&&a==d)&&a!=d&&a!=e&&"visible"!=Ks(a,"overflow")){var k=Qs(a),l=new ff(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=uf($f(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};
Qs=function(a){var b=mf(a),c=new ff(0,0),d;d=b?mf(b):window.document;d=!wf||Bc(9)||"CSS1Compat"==of(d).b.compatMode?d.documentElement:d.body;if(a==d)return c;a=Os(a);b=xf(of(b).b);c.x=a.left+b.x;c.y=a.top+b.y;return c};
Ts=function(a,b){var c=new ff(0,0),d=yf(mf(a));if(!pc(d,"parent"))return c;var e=a;do{var f=d==b?Qs(e):Ss(e);c.x+=f.x;c.y+=f.y}while(d&&d!=b&&d!=d.parent&&(e=d.frameElement)&&(d=d.parent));return c};
Vs=function(a,b){var c=Us(a),d=Us(b);return new ff(c.x-d.x,c.y-d.y)};
Ss=function(a){a=Os(a);return new ff(a.left,a.top)};
Us=function(a){if(1==a.nodeType)return Ss(a);a=a.changedTouches?a.changedTouches[0]:a;return new ff(a.clientX,a.clientY)};
Xs=function(a,b,c){if(b instanceof hf)c=b.height,b=b.width;else if(void 0==c)throw Error("missing height argument");Ws(a,b);a.style.height=Ls(c,!0)};
Ls=function(a,b){"number"==typeof a&&(a=(b?Math.round(a):a)+"px");return a};
Ws=function(a,b){a.style.width=Ls(b,!0)};
Zs=function(a){var b=Ys;if("none"!=Ks(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};
Ys=function(a){var b=a.offsetWidth,c=a.offsetHeight,d=Cc&&!b&&!c;return p(b)&&!d||!a.getBoundingClientRect?new hf(b,c):(a=Os(a),new hf(a.right-a.left,a.bottom-a.top))};
$s=function(a){var b=Qs(a);a=Zs(a);return new ng(b.x,b.y,a.width,a.height)};
at=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)+")")};
bt=function(a,b){a.style.display=b?"":"none"};
ct=function(a){return"none"!=a.style.display};
dt=function(a,b){if(/^\d+px?$/.test(b))return(0,window.parseInt)(b,10);var c=a.style.left,d=a.runtimeStyle.left;a.runtimeStyle.left=a.currentStyle.left;a.style.left=b;var e=a.style.pixelLeft;a.style.left=c;a.runtimeStyle.left=d;return e};
ht=function(a){var b=Ks(a,"fontSize"),c;c=(c=b.match(et))&&c[0]||null;if(b&&"px"==c)return(0,window.parseInt)(b,10);if(wf){if(String(c)in ft)return dt(a,b);if(a.parentNode&&1==a.parentNode.nodeType&&String(c)in gt)return a=a.parentNode,c=Ks(a,"fontSize"),dt(a,b==c?"1em":b)}c=K("SPAN",{style:"visibility:hidden;position:absolute;line-height:0;padding:0;margin:0;border:0;height:1em;"});a.appendChild(c);b=c.offsetHeight;If(c);return b};
it=function(a){this.g=a||window;this.b=[]};
jt=function(a,b,c){c=x(c,a.g);b=lm(b,"mouseleave",c);a.b.push(b);return b};
kt=function(a,b,c,d){c=x(c,d||a.g);b=nm(b,c);a.b.push(b)};
lt=function(a){km(a.b);a.b.length=0};
mt=function(a,b,c){G.call(this);this.wa=null;this.o=!1;this.B=a;this.A=c;this.b=b||window;this.g=x(this.pz,this)};
nt=function(a){a=a.b;return a.requestAnimationFrame||a.webkitRequestAnimationFrame||a.mozRequestAnimationFrame||a.oRequestAnimationFrame||a.msRequestAnimationFrame||null};
ot=function(a){a=a.b;return a.cancelAnimationFrame||a.cancelRequestAnimationFrame||a.webkitCancelRequestAnimationFrame||a.mozCancelRequestAnimationFrame||a.oCancelRequestAnimationFrame||a.msCancelRequestAnimationFrame||null};
rt=function(a){a=na(a);delete pt[a];cc(pt)&&qt&&qt.stop()};
ut=function(){qt||(qt=new ge(function(){tt()},20));
var a=qt;a.isActive()||a.start()};
tt=function(){var a=C();Pb(pt,function(b){vt(b,a)});
cc(pt)||ut()};
wt=function(){id.call(this);this.b=0;this.endTime=this.startTime=null};
xt=function(a,b,c,d){wt.call(this);if(!ea(a)||!ea(b))throw Error("Start and end parameters must be arrays");if(a.length!=b.length)throw Error("Start and end points must be the same length");this.o=a;this.F=b;this.duration=c;this.C=d;this.g=[];this.progress=this.D=0;this.B=null};
vt=function(a,b){a.progress=(b-a.startTime)/(a.endTime-a.startTime);1<=a.progress&&(a.progress=1);a.D=1E3/(b-a.B);a.B=b;zt(a,a.progress);1==a.progress?(a.b=0,rt(a),a.Ac(),a.zh()):a.Za()&&a.Km()};
zt=function(a,b){ia(a.C)&&(b=a.C(b));a.g=Array(a.o.length);for(var c=0;c<a.o.length;c++)a.g[c]=(a.F[c]-a.o[c])*b+a.o[c]};
At=function(a,b){mc.call(this,a);this.x=b.g[0];this.y=b.g[1];this.duration=b.duration;this.progress=b.progress;this.fps=b.D;this.state=b.b};
Bt=function(a){return Math.pow(a,3)};
Ct=function(a){return 3*a*a-2*a*a*a};
Dt=function(a){this.b="number"==typeof a?0<a?1:0>a?-1:null:null==a?null:a?-1:1};
Et=function(a,b){var c=a.g(b,void 0);return-1==(0==c?a.b:c)?"rtl":"ltr"};
Ft=function(){this.b=[];this.g=dq};
Gt=function(a,b){for(var c=[],d=0;d<a.b.length;++d){var e=a.b[d];e.contains(b)&&c.push(e);if(e.start>b)break}return c};
It=function(a){return a.b.slice(Ht(a,0x7ffffffffffff),a.b.length)};
Ht=function(a,b){var c=Bb(a.b,function(a){return b-a.start||1});
return 0>c?-(c+1):c};
Jt=function(a,b){for(var c=void 0,d=0;d<a.b.length;d++){var e=a.b[d];e.contains(b)&&(void 0==c||e.end<c)&&(c=e.end);if(e.start>b&&(void 0==c||e.start<c)){c=e.start;break}}return c};
Kt=function(a,b,c,d){G.call(this);this.o=window.NaN;this.D=!1;this.C=null;this.F=this.G=this.A=!1;this.N=a;this.L=b;this.H=c;this.J=d;this.K=new ge(this.ue,250,this);H(this,this.K);this.B=new ge(this.ue,0,this);H(this,this.B);this.g=[];this.b=new Ft};
Lt=function(a){a.A=!0;a.ue()};
Mt=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.g.indexOf(e)&&(a.g.push(e),c.push([1,e]))}return c};
Nt=function(a,b){var c=[];if(!b.length)return c;b.sort(dq);for(var d=0;d<b.length;d++){var e=b[d];a.g.splice(a.g.indexOf(e),1);c.push([2,e])}return c};
Ot=function(a){return ea(a)&&a.length?a[0]:a};
Pt=function(a){var b=/.+/;return w(a)&&null!=b&&null!=a&&a.match(b)?a:""};
Qt=function(a,b){if(null==a)return b;var c=(0,window.parseInt)(a,0);if((0,window.isNaN)(c))return b;c=c.toString(16);return"#"+"000000".substring(0,6-c.length)+c};
Rt=function(a){return w(a)?a:""};
St=function(a,b,c){for(var d in b)if(b[d]==a)return a;return c};
Tt=function(a,b){return"true"==a||"false"==a?"true"==a:b};
Ut=function(a,b){return w(a)?(0,window.parseFloat)(a):b};
Vt=function(a,b,c,d,e){a=(0,window.parseFloat)(a);if(null!=a&&!(0,window.isNaN)(a)){if(d)return af(a,b,c);if(a>=b&&a<=c)return a}return e};
Wt=function(a){if(null==a)return 0;if("never"==a)return-1;a=a.split(":");if(3<a.length)return 0;var b=0,c=1;F(a,function(a){a=(0,window.parseFloat)(a);0>a&&(c=-c);b=60*b+Math.abs(a)});
return c*b};
Xt=function(a,b){if(null==a)return null;if(fa(a)){var c=[];F(a,function(a){(a=b(a))&&c.push(a)});
return c}var d=b(a);return d?[d]:[]};
Yt=function(a){function b(a){return null!=a&&!(0,window.isNaN)(a)}
return(a=a?new mg((0,window.parseFloat)(a.top),(0,window.parseFloat)(a.right),(0,window.parseFloat)(a.bottom),(0,window.parseFloat)(a.left)):null)&&b(a.top)&&b(a.right)&&b(a.bottom)&&b(a.left)?a:null};
Zt=function(a){function b(a){return le(a.split(/ +/),function(a){return""!=a})}
return null==a?[]:b(a)};
$t=function(a,b,c,d){this.value=a;this.target=b;this.showLinkIcon=c;this.Bj=d};
bu=function(a){if(!a)return null;var b=Rt(a.value);if(!b)return null;var c=St(a.target,au,"current");return null==c?null:new $t(b,c,Tt(a.show_link_icon,!0),null!=a.pause_on_navigation?a.pause_on_navigation:!0)};
cu=function(a){return a.value?a.value:null};
eu=function(a){var b;(b=a)&&!(b=1<a.length?"/"==a.charAt(0)&&"/"!=a.charAt(1):"/"==a)&&(b=du(a),b="com"==b[0]&&"youtube"==b[1]||"be"==b[0]&&"youtu"==b[1]);return b?-1==a.indexOf("/redirect?"):!1};
du=function(a){a=a.replace(/^(https?:)?\/\//,"");a=a.split("/",1);return!a||1>a.length||!a[0]?[]:a[0].toLowerCase().split(".").reverse()};
fu=function(a){a=cu(a);if(!a)return null;a=a.replace(/https?:\/\//g,"");var b;(b=!eu(a))||(b=Kg(Jg(a)[5]||null)||"",b=b.split("/"),b="/"+(1<b.length?b[1]:""),b="/watch"!=b);if(b)return null;b=Qj(a);if(!b||!b.v)return null;if(b.t)return fr(b.t);a=a.split("#",2);return!a||2>a.length?null:(a=Oj(a[1]))&&a.t?fr(a.t):-1};
gu=function(a){a=cu(a);a=a.replace(/https?:\/\//g,"");return eu(a)?(a=Qj(a))&&a.v?a.v:null:null};
iu=function(a,b,c,d){(a=cu(a))?eu(a)?d=Tj(a,{feature:"iv",src_vid:c,annotation_id:b}):(a?(b=du(a),b="com"==b[0]&&"google"==b[1]&&"plus"==b[2]):b=!1,b&&d?(d=qa(hu,d.pageId,d.Ob),a=new L(a),eh(a,d(a.o)),d=a.toString()):d=a):d=null;return d};
hu=function(a,b,c){c=c.replace(/\/(u|b)\/[0-9]+/g,"");var d=/^[0-9]+$/;a&&d.test(a)&&(c="/b/"+a+c);b&&d.test(b)&&(c="/u/"+b+c);return c};
ju=function(a,b){return b?b:eu(a)?"current":"new"};
ku=function(a,b){return a.replace(/(\[|%5B)([a-zA-Z0-9_]+)(\]|%5D)/g,function(a,d,e){try{var f=fc(b,e),f=f.toString();if(!A(B(f)))return(0,window.encodeURIComponent)(f).replace(/%2C/g,",")}catch(k){}return a})};
mu=function(a){this.g=a;this.b=0;this.B=window.NaN;this.o=0;this.ra=[];this.A=lu(this.g);this.C=this.D=0};
nu=function(a){a.A.startTime=a.o;a.A.endTime=a.b;a.ra.length&&$a(a.ra).isEmpty()?a.ra[a.ra.length-1]=a.A:a.ra.length&&a.A.isEmpty()||a.ra.push(a.A);a.D+=a.b-a.o;a.A=lu(a.g);a.o=a.b};
ou=function(a){return a.D+a.g.g()-a.o};
pu=function(a){a.ra.length&&a.b==a.o||nu(a);var b=a.ra;a.ra=[];return b};
qu=function(a,b,c){c-=a.B;return b==a.b&&.5<c};
ru=function(a,b){this.b=b;this.o=!1;this.videoData=a};
tu=function(a,b,c){ru.call(this,b,c);this.C=a};
uu=function(a,b){return new Ed(function(c,d){b.rb=function(a){Wj(a)?c(a):d(a)};
b.onError=d;b.Kc=d;bk(a,b)})};
vu=function(a,b,c,d){function e(d,l,m){return Td(d,function(d){return 0>=l||403===d.status?Jd(d):f(m).then(function(){return e(uu(a,b),l-1,Math.pow(2,c-l+1)*m)})})}
function f(a){return new Ed(function(b){(0,window.setTimeout)(b,a)})}
return e(uu(a,b),c-1,d)};
wu=function(){var a=Jj("yt-player-volume")||{},b=a.volume;return{volume:(0,window.isNaN)(b)?100:af(Math.floor(b),0,100),muted:!!a.muted}};
xu=function(){return Jj("yt-player-quality")||"auto"};
yu=function(a){Ij("yt-player-qoe-failed-count",a,2592E3)};
zu=function(){return Jj("yt-player-qoe-failed-count")||0};
Bu=function(a){G.call(this);this.b=a;this.g={};this.L=window.NaN;this.C=new ge(this.iD,3E4,this);H(this,this.C);this.o="N";this.B=0;this.N=window.NaN;this.R=0;this.G=this.ba="";this.$=-1;this.F=this.H=0;this.K=this.D=!1;this.ca=[];this.A=null;(a=window.navigator.getBattery?window.navigator.getBattery():null)&&a.then&&a.then(x(function(a){this.A=a},this));
this.J=(this.b.b.experiments.b("html5_disable_qoe_percentage")||0)>Math.floor(100*Math.random());this.b.b.experiments.Z("html5_qoe_unstarted_in_initialization")&&Au(this,0,"vps",["N"])};
Au=function(a,b,c,d){var e=a.g[c];e||(e=[],a.g[c]=e);e.push(b.toFixed(3)+":"+d.join(":"))};
Eu=function(a,b){var c=0<=b?b:Du(a.b),d=a.b.C();if(!(0,window.isNaN)(a.aa)&&!(0,window.isNaN)(d.o)){var e=d.o-a.aa;0<e&&Au(a,c,"bwm",[e,(d.C-a.ea).toFixed(3)])}a.aa=d.o;a.ea=d.C;(0,window.isNaN)(d.b)||Au(a,c,"bwe",[d.b.toFixed(0)]);(0,window.isNaN)(d.g)||(e=d.g,d.A<e&&(e=d.A),a.N!=e&&(Au(a,c,"bh",[e.toFixed(3)]),a.N=e));a.A&&Au(a,c,"bat",[a.A.level,a.A.charging?"1":"0"]);e=a.b.getVisibilityState();a.$!=e&&(Au(a,c,"vis",[e]),a.$=e);Au(a,c,"cmt",[a.b.g()]);0<d.B&&Au(a,c,"e2el",[d.B,d.F.toFixed(3),d.D.toFixed(3),
d.H.toFixed(3),d.G.toFixed(3)]);null!==a.b.videoData.xb&&(a.g.acc=[a.b.videoData.xb.join(":")])};
Gu=function(a){var b={event:"streamingstats"};if(a.b.videoData.g){b.fmt=Fu(a.b.videoData.g);var c=a.b.videoData.B;c&&Fu(c)!=b.fmt&&(b.afmt=Fu(c))}b.cpn=a.b.videoData.clientPlaybackNonce;b.ei=a.b.videoData.eventId;b.el=a.b.b.b;b.docid=a.b.videoData.videoId;b.ns=a.b.b.ia;b.fexp=a.b.b.experiments.experimentIds.toString();b.cl=a.b.b.na;a.b.b.adFormat&&(b.adformat=a.b.b.adFormat);a.b.videoData.xa&&(b.live=a.b.videoData.K?"dvr":"live");b.html5="1";return b};
Hu=function(a,b){var c=a.b.b.experiments;c.Z("html5_ajax_qoe")?uu(b,{}).then(a.Os,a.Ns,a):c.Z("html5_ajax_qoe_retry")?vu(b,{},3,500).then(a.Os,a.Ns,a):Vp(b)};
Iu=function(a){if(a.b.b.experiments.Z("html5_flush_long_qoe")){var b=0,c;for(c in a.g)b+=c.length+cf(a.g[c],function(a,b){return a+b.length},0);
1500<b&&(new ge(a.Hg,0,a)).start()}};
Lu=function(a){a.b.b.experiments.Z("html5_qoe_unstarted_in_initialization")?Du(a.b):Au(a,Du(a.b),"vps",["N"]);a.b.videoData.Ie&&Ju(a,"preload");a.b.videoData.ha&&Ku(a,"reload",a.b.videoData.Ke);a.b.videoData.Na&&Ju(a,"monitor");a.b.videoData.xa&&Ju(a,"live");a.b.videoData.zo&&F(a.b.videoData.zo.split(","),x(function(a){Ku(this,"ytrexp",a)},a));
a.L=Ui(x(a.Hg,a),1E4);a.C.start()};
Mu=function(a,b,c,d){var e=a.b.g();c=[c,e.toFixed(3)];d&&c.push(d);Au(a,b,"error",c)};
Ju=function(a,b){var c=a.g.cat||[];c.push(b);a.g.cat=c};
Ku=function(a,b,c,d){var e=a.g.ctmp||[],f=-1!=a.ca.indexOf(b);f||a.ca.push(b);d&&f||(e.push(b+":"+c),a.g.ctmp=e)};
Ou=function(a,b,c,d){this.La=b;this.segments=[];this.experimentIds=[];this.H=this.Ga=this.G=this.ha=this.Ca=this.autoplay=this.autonav=!1;this.$="yt";this.J=this.g=this.B=null;this.aa=!1;this.A="watchtime"==c;this.R="playback"==c;this.Aa="delayplay"==c;this.D="atr"==c;this.Ha="engage"==c;this.ea=!1;this.ca=this.D?"/api/stats/"+c:"//"+b.Hd+"/api/stats/"+c;d&&(this.G=d.fs,d.rtn&&(this.g=d.rtn),this.A?(this.Db=d.state,0<d.rti&&(this.B=d.rti)):(this.Ja=d.mos,this.Oa=d.volume,d.at&&(this.adType=d.at)),
d.autonav&&(this.autonav=d.autonav));this.adFormat=b.adFormat;b.experiments.Z("legacy_autoplay_flag")&&(this.autoplay=b.aa);this.Xa=b.ua;this.ab=hc(b.o);this.na=b.da;this.sb=b.b;this.experimentIds=b.experiments.experimentIds;this.ga=b.qa;this.$=b.ia;this.region=b.region;this.Lb=b.na?b.na.toString():"";this.userAge=b.userAge;this.userGender=b.userGender;this.Wa=ir();this.ea=b.experiments.g;this.C=a.oauthToken||this.C;this.autoplay=Nu(this.La,a,this.G);this.autonav=a.Dc||this.autonav;this.J=a.Gd;this.clientPlaybackNonce=
a.clientPlaybackNonce;this.N=a.vssCredentialsToken;this.qa=a.pf;this.F=a.Ed;this.da=a.da;a.g&&(this.gb=Fu(a.g),a.B&&Fu(a.B)!=this.gb&&(this.L=Fu(a.B)));this.H=a.Ca;this.tb=a.Fd;a.xa&&(this.Na=a.K?"dvr":"live");this.xb=a.dh;this.playbackId=a.playbackId;this.eventId=a.eventId;this.playlistId=a.nf||a.playlistId;this.ma=a.sb;this.ua=a.tb;this.Tb=a.Lo;this.subscribed=a.subscribed;this.videoId=a.videoId;this.videoMetadata=a.videoMetadata;this.visitorData=a.visitorData;this.osid=a.osid;this.yb=a.oy;this.referrer=
a.referrer;this.ia=a.Je||a.Ko;this.searchQuery=a.searchQuery};
Pu=function(a,b){if(a.D)return null;var c=a.C&&Vj(),d=a.ea&&!!a.visitorData;if(!c&&!d)return null;var e={};c&&(e.Authorization="Bearer "+a.C);d&&(e["X-Goog-Visitor-Id"]=a.visitorData);return{headers:e,withCredentials:!0,Ac:b}};
Qu=function(a,b,c,d){b.cmt=b.len;b.lact="0";d=d();d=d.toFixed(3);b.rt=(1*d).toString();a=Ug(a,b);c?bk(a,c):Vp(a)};
Su=function(a){var b={ns:a.$,el:a.sb,cpn:a.clientPlaybackNonce,docid:a.videoId,ver:2,referrer:a.referrer,cmt:a.b(a.F),plid:a.playbackId,ei:a.eventId,fmt:a.gb,fs:a.G?"1":"0",rt:a.b(a.Sa),of:a.yb,adformat:a.adFormat,content_v:a.Xa,euri:a.na,subscribed:a.subscribed,lact:a.Wa,live:a.Na,cl:a.Lb,mos:a.Ja,q:a.searchQuery,osid:a.osid,state:a.Db,vm:a.videoMetadata,volume:a.Oa};ra(b,a.ab);a.autonav&&(b.autonav="1");if(a.La.experiments.Z("legacy_autoplay_flag"))a.autoplay&&(b.autoplay="1");else if(a.autoplay||
a.H)b.autoplay="1";a.ha&&(b["final"]="1");a.H&&(b.splay="1");a.da&&(b.delay=a.da);a.ga&&(b.hl=a.ga);a.region&&(b.cr=a.region);p(a.userAge)&&a.userGender&&(b.uga=a.userGender+a.userAge);p(a.ba)&&(b.len=a.b(a.ba));!a.A&&0<a.experimentIds.length&&(b.fexp=a.experimentIds.toString());null!=a.g&&(b.rtn=a.b(a.g));a.ia&&(b.feature=a.ia);a.playlistId&&(b.list=a.playlistId);a.ma&&(b.ctrl=a.ma);a.ua&&(b.ytr=a.ua);a.Tb&&(b.ssrt="1");a.L&&(b.afmt=a.L);a.A?(b.idpj=a.tb,b.ldpj=a.xb,null!=a.B&&(b.rti=a.b(a.B))):
p(a.adType)&&(b.at=a.adType);(a.R||a.Aa)&&a.J&&(b.tst=a.J);a.A&&(b.st=Ru(a,M(a.segments,function(a){return a.startTime})),b.et=Ru(a,M(a.segments,function(a){return a.endTime})));
Th(a.segments,function(a){return 0!=a.visibilityState})&&(b.vis=Ru(a,M(a.segments,function(a){return a.visibilityState})));
Th(a.segments,function(a){return 1!=a.playbackRate})&&(b.rate=Ru(a,M(a.segments,function(a){return a.playbackRate})));
Th(a.segments,function(a){return"-"!=a.$k})&&(b.cc=M(a.segments,function(a){return a.$k}).join(","));
if(Th(a.segments,function(a){return!!a.Wk})){var c="au";
a.R&&(c="au_d");b[c]=M(a.segments,function(a){return a.Wk}).join(",")}Vj()&&a.N&&(b.ctt=a.N,b.cttype=a.qa);
a.Ha&&(b.etype=p(a.o)?a.o:0);return b};
Ru=function(a,b){return M(b,a.b).join(",")};
Tu=function(a){G.call(this);this.b=a;this.g=new Bu(a);H(this,this.g);this.o=new mu(a);this.C="paused";this.D=window.NaN;this.H=[10,10,10,40];this.J=this.G=0;this.N=this.R=this.L=this.K=this.A=!1;this.B=window.NaN;this.aa=new tu(this.o,this.b.videoData,this.b.b)};
Uu=function(a,b,c){var d=Du(a.b);c=(0,window.isNaN)(c)?d:c;c=Math.ceil(c);var e=a.H[a.G];a.G+1<a.H.length&&a.G++;c+=e;d=1E3*(c-d);a.D=Ti(x(a.ba,a,c,b),d);return c};
Wu=function(a,b){var c=Vu(a.b);ra(c,{state:a.C});c=new Ou(a.b.videoData,a.b.b,b,c);c.F=a.b.g();a.b.videoData.xa||(c.ba=a.b.B());c.Sa=Du(a.b);c.segments=[lu(a.b)];return c};
Xu=function(a,b){var c=Wu(a,"watchtime");c.segments=b;c.F=a.o.b;return c};
Yu=function(a){a.o.update();return Xu(a,pu(a.o))};
av=function(a){a.b.videoData.remarketingUrl&&!a.R&&(Zu(a,a.b.videoData.remarketingUrl),a.R=!0);a.b.videoData.ppvRemarketingUrl&&!a.N&&(Zu(a,a.b.videoData.ppvRemarketingUrl),a.N=!0);$u(a)};
dv=function(a,b){if(!a.isDisposed()){P(b.state,2)?(a.C="paused",0<bv(b,2)&&a.A&&Yu(a).send()):P(b.state,8)?(a.C="playing",a.A&&(0,window.isNaN)(a.D)&&Uu(a,!1)):a.C="paused";var c=a.g,d=b.state,e=Du(c.b),f;f=b.state;if(P(f,128))f="ER";else if(P(f,16)||P(f,32))f="S";else{var k=cv[Fq(f)];"B"==k&&P(f,4)&&(k="PB");f=k}if(f!=c.o){k=f;if(!(e<c.B)){if("PL"==c.o)c.F+=e-c.B;else if("B"==c.o&&c.D&&(c.D=!1,c.H+=e-c.B,!c.K&&10<=c.H&&180>=c.F)){c.b.F();if(!c.isDisposed()&&!c.J){var l=Gu(c);l.qoealert="1";l=Ug(c.b.b.Fd,
l);Hu(c,l)}c.K=!0}"B"!=k||"PL"!=c.o&&"PB"!=c.o||(c.D=!0);c.B=e}"B"==f&&"PL"==c.o?Eu(c,e):Au(c,e,"cmt",[c.b.g().toFixed(3)]);Au(c,e,"vps",[f]);c.o=f}P(d,128)&&Mu(c,e,d.b.errorCode,d.b.errorDetail);(P(d,2)||P(d,128))&&c.Hg(e);Iu(c);a.B&&P(b.state,128)&&(a.F("error-100"),Vi(a.B))}};
ev=function(a){a.B=Ui(x(a.F,a,"heartbeat"),3E4)};
$u=function(a){a.b.videoData.C.eventLabel=a.b.b.b;a.b.videoData.C.playerStyle=a.b.b.g;a.b.videoData.Cd&&(a.b.videoData.C.feature="pyv");a.b.videoData.C.vid=a.b.videoData.videoId;a.b.videoData.C.isAd=!("adunit"!=a.b.b.b&&!a.b.videoData.Cd)};
Zu=function(a,b,c){a.b.b.experiments.g&&a.b.videoData.visitorData&&Uj(b)?bk(b,{Ac:c,headers:{"X-Goog-Visitor-Id":a.b.videoData.visitorData}}):Vp(b,c)};
fv=function(a){this.Y=a;this.b={}};
kv=function(a,b,c,d){if(b){var e=gv(a,b);a.b[b]=e["p-time"];e["iv-event"]=e.link||e["l-class"]||e["link-id"]?2:7;b=sb(c||[]);30==e["a-type"]&&(c=hv(a,e["a-id"],"cta_annotation_shown"))&&b.push(c);iv(a,e,jv(b,d))}};
lv=function(a,b,c,d,e,f){if(b){var k=gv(a,b);k["iv-event"]=3;k["i-time"]=a.b[b]||"";kc(k,d||{});b=sb(e||[]);30==k["a-type"]&&(d=hv(a,k["a-id"],"cta_annotation_clicked"))&&b.push(d);iv(a,k,b,c,f)}};
mv=function(a,b){if(b){var c=gv(a,b);c["iv-event"]=4;c["i-time"]=a.b[b]||"";var d=[];if(30==c["a-type"]){var e=hv(a,c["a-id"],"cta_annotation_closed");e&&d.push(e)}iv(a,c,d)}};
jv=function(a,b){return b?M(a,qa(function(a,b){return ku(b,a)},b||{})):a};
hv=function(a,b,c){a=a.Y.getVideoData();if(a.qp){if((c=a.qp[c])&&nv.test(c))return a=va("[ANNOTATION_ID]"),0<=c.indexOf("[ANNOTATION_ID]")?c=c.replace("[ANNOTATION_ID]",b):0<=c.indexOf(a)&&(c=c.replace(a,b)),c}else if(a.ua)return Sj(a.ua,{label:c,value:"a_id="+b});return""};
iv=function(a,b,c,d,e){var f=1,k,l=-1;if(d){var m=!1;k=function(){f--;f||m||((0,window.clearTimeout)(l),m=!0,d())};
l=(0,window.setTimeout)(function(){m=!0;d()},1E3)}F(c||[],function(a){f++;
Vp(a,k)});
e&&(f++,0!=e&&a.Y.Vg(e,k));ov(a,b,k)};
gv=function(a,b){var c={};if(b){var d=new hh(b);F(d.Ua(),function(a){c[a]=(0,window.escape)(d.get(a,""))})}c["p-time"]=a.Y.getCurrentTime().toFixed(2);
c.ps=S(a.Y).g;return c};
pv=function(a,b,c,d){d=gv(a,d);d["iv-event"]=b;d["a-id"]||(d["a-id"]="card:drawer");d["a-type"]=51;iv(a,d,c)};
qv=function(a,b,c,d){c&&(c=gv(a,c),c["iv-event"]=b,iv(a,c,d))};
ov=function(a,b,c){rv(a.Y,"iv",b,c)};
tv=function(a,b){this.ea=a;this.context=b;this.zn=!1;this.H=0};
uv=function(a,b,c,d,e,f){b=new bq(b,c,{id:d});b.namespace="iv-module";e&&(b.b||(b.b=new sg)).subscribe("onEnter",e,a);f&&(b.b||(b.b=new sg)).subscribe("onExit",f,a);a.context.g.vb([b])};
vv=function(a){return C()-a.H};
wv=function(a,b,c,d,e,f,k){var l=x(function(){k&&this.context.g.pauseVideo();var a=Qj(b),d=null;"ei"in a&&(d={ei:a.ei},b=$g(b,"ei"));tr(b,d);ur(b,"current"==c?"_top":void 0)},a);
"new"==c&&(l(),l=null);var m={};m.interval=vv(a);lv(a.context.logger,d,l,m,e,f)};
xv=function(a,b){ea(b)||(b=[b]);var c=M(b,function(a){return w(a)?a:a.property+" "+a.duration+"s "+a.timing+" "+a.delay+"s"});
Gs(a,"transition",c.join(","))};
yv=function(a,b,c,d){G.call(this);this.g=a;c||a.oa();this.B=null==d?b:d;this.b=null;this.o=new ge(this.A,0,this);H(this,this.o)};
Av=function(a){3!=a.b&&(1==a.b||2==a.b?(a.g.oa(),a.b=null,a.o.stop()):a.g.g&&(zv(a,!0),a.b=3,a.o.start(a.B)))};
zv=function(a,b){var c=a.g.element;b?c.setAttribute("aria-hidden",!0):c.removeAttribute("aria-hidden")};
Bv=function(a,b){R.call(this,["div","ytp-cards-teaser",["div","ytp-cards-teaser-box"],["div","ytp-cards-teaser-text",["span","ytp-cards-teaser-label","{{text}}"]]]);this.Y=a;this.F=new yv(this,250,!1,250);H(this,this.F);this.J=b;this.b=null;this.H=new ge(this.ID,300,this);this.G=new ge(this.GD,2E3,this);this.K=new Dt(null);this.B=[];this.A=this.o=this.D=this.C=null;this.S(b.element,"mouseover",this.Tv);this.S(b.element,"mouseout",this.Ve);this.S(a,"cardsteasershow",this.SE);this.S(a,"cardsteaserhide",
this.fi);this.S(a,"cardstatechange",this.$t);this.S(a,"presentingplayerstatechange",this.$t);this.O("click",this.dJ);this.O("mouseenter",this.bJ);this.O("mouseleave",this.cJ)};
Cv=function(a){if(!a||0==a.length)return"";var b=["ul","ytp-cards-hover-card-metadata"];F(a,function(a){b.push(["li","",a])});
return b};
Dv=function(a,b){if(b){var c=b.jl?"":["h2","ytp-cards-hover-card-title",b.title],d=b.imageUrl,d=["div","ytp-cards-hover-card-image",{style:d?"background-image: url("+d+");":""}];d.push(b.videoDuration?["span","iv-card-video-duration",b.videoDuration]:"");c=["a","ytp-cards-hover-card",["div","ytp-cards-video-image",d],["div","ytp-cards-video-desc",c,Cv(b.oe)]];a.o=new R(c);a.o.Ba(a.element);c=rf("ytp-cards-hover-card",void 0);a.S(c,"click",qa(a.Yr,b));a.S(c,"mouseenter",a.xA);a.S(c,"mouseleave",a.yA)}};
Fv=function(a,b){a.va("text",b.teaserText);a.element.setAttribute("dir",Et(a.K,b.teaserText));a.F.show();Dv(a,b.cj);b.cj&&b.cj.jl&&I(a.element,"ytp-cards-combined-teaser");a.C=new ge(function(){I(this.Y.Da(),"ytp-cards-teaser-shown")},0,a);
a.C.start();Ev(a.J,!1);a.b=new ge(a.fi,580+b.durationMs,a);a.b.start();b.By&&I(a.element,"ytp-cards-auto-open-hover-card");b.FB&&(new ge(function(){I(this.Y.Da(),"ytp-cards-button-teaser-merge")},0,a)).start();
a.B.push(a.O("mouseover",a.Tv,a));a.B.push(a.O("mouseout",a.Ve,a))};
Gv=function(a,b,c){this.id=a;this.timestamp=b.timestamp||0;this.type=b.card_type;this.teaserText=b.teaser_text;this.teaserDurationMs=b.teaser_duration_ms;this.startMs=b.start_ms;this.B=b.auto_open||!1;this.$a=c;this.sponsored=b.sponsored||!1;a=b.tracking||{};this.b={Zq:a.impression,click:a.click,close:a.close,uG:a.teaser_impression,ln:a.teaser_click}};
Hv=function(a,b,c){Gv.call(this,a,b,c);this.channelId=b.channel_id;this.customMessage=b.custom_message;this.profileImageUrl=b.image_url;this.title=b.title;this.oe=b.meta_info;this.url=bu({pause_on_navigation:b.pause_on_navigation,target:b.target||"new",value:b.url})};
Iv=function(a,b,c){Gv.call(this,a,b,c);this.imageUrl=b.image_url;this.displayDomain=b.display_domain;this.showLinkIcon=b.show_link_icon;this.o=b.button_icon_url;this.title=b.title;this.customMessage=b.custom_message;this.url=bu({pause_on_navigation:b.pause_on_navigation,target:b.target||"new",value:b.url});this.g=null;b.signin_url&&(this.g=bu({target:"current",value:b.signin_url}));this.D=b.signin_title||null;this.C=b.signin_message||null};
Jv=function(a,b,c){Iv.call(this,a,b,c);this.F=b.ypc_flow_type;this.A=b.innertube_request_params};
Lv=function(a,b){return Kv&&a.dataset?b in a.dataset?a.dataset[b]:null:a.getAttribute("data-"+String(b).replace(/([A-Z])/g,"-$1").toLowerCase())};
Mv=function(a,b,c){this.b=a;this.g=b;this.A=c;this.o=new Dt(null)};
Ov=function(a,b){var c=["ol",""];F(b.chapters,function(a,b){c.push(["li","",["a","iv-click-target",{href:"#","data-navigation-chapter-index":b},a.title]])},a);
var d=["div",["iv-card","iv-card-navigation"],["div","iv-card-content",Nv(a,"h2","",b.title),c]],d=new R(d);F(qf("iv-click-target",d.element),function(a){this.b.b.O(a,"click",x(this.LD,this,b))},a);
return d};
Qv=function(a,b){var c=["ul","",{role:"radiogroup"}];F(b.choices,function(a){c.push(["li",b.A+"-"+a.index.toString(),["label","",["input","iv-card-poll-choice-input",{type:"checkbox",role:"radio",name:b.A+a.index.toString(),value:a.index.toString(),"data-poll-choice-index":a.index.toString()}],["span","iv-card-poll-choice-text",["span","iv-card-poll-choice-percent"],Nv(this,"span",void 0,a.desc)]],["div","iv-card-poll-result",["div","iv-card-poll-result-bar"]]])},a);
var d={};b.o&&(d["aria-label"]=N("YTP_DRAWER_POLL_TITLE_ARIA_LABEL",{POLL_TITLE:b.title}));var e=["iv-card","iv-card-poll"],d=[["div","iv-card-content",Nv(a,"h2",d,b.title),["form","",["fieldset","",c]]]];b.o&&(e.push("iv-card-unavailable"),d.push(["div",["iv-card-sign-in"],["h2","",N("YTP_DRAWER_POLL_SIGNIN_TITLE")],["a",["iv-card-sign-in-button","iv-button"],{href:cu(b.o)},["span",["iv-button-content"],N("YTP_SIGN_IN")]]]));e=new R(["div",e].concat(d));d=e.element;Pv(b,d);kt(a.b.b,d,qa(a.iE,b),
a);F(qf("iv-card-poll-choice-input",d),function(a){this.b.b.O(a,"focus",qa(this.ms,!0));this.b.b.O(a,"blur",qa(this.ms,!1))},a);
b.o&&a.g(rf("iv-card-sign-in-button",d),b.o,b.id,b.$a,b.b.click,5);return e};
Vv=function(a,b,c,d){var e=Rv(a,b.url,b.id),f=b.displayDomain?["div","iv-card-image-text",b.displayDomain]:"",k=Sv(a,b),l=["iv-card"];b.g&&l.push("iv-card-unavailable");e=["div",l,["a","iv-click-target",{href:e},Tv(b.imageUrl,f),["div","iv-card-content",Nv(a,"h2",void 0,b.title),k]]];b.g&&(e=e.concat([["div",["iv-card-sign-in"],Nv(a,"h2",void 0,b.D||""),["p","",b.C],["a",["iv-card-sign-in-button","iv-button"],{href:cu(b.g)},Nv(a,"span","iv-button-content",N("YTP_SIGN_IN"))]]]));e=new R(e);Uv(a,e,
b,c,d);return e};
Xv=function(a,b,c){var d=Rv(a,b.url,b.id),e=["yt-badge","standalone-ypc-badge-renderer-icon",b.C?"standalone-ypc-badge-renderer-icon-purchased":"standalone-ypc-badge-renderer-icon-available"],f={},e=b.A&&b.o?["span",e,f,b.o]:"";c=["div",["iv-card",c],["a","iv-click-target",{href:d},Tv(b.D,e?["div","iv-card-image-text",e,b.priceText]:""),["div","iv-card-content",["h2","iv-card-primary-link",b.title],Wv(a,b)]]];c=new R(c);Uv(a,c,b);return c};
Yv=function(a,b){return b.customMessage?Nv(a,"div","iv-card-message",b.customMessage):""};
Tv=function(a,b){var c=["div","iv-card-image",{style:"background-image: url("+a+");"}];b&&c.push(b);return c};
Wv=function(a,b){if(!b.oe||0==b.oe.length)return"";var c=["ul","iv-card-meta-info"];F(b.oe,function(a){c.push(Nv(this,"li","",a))},a);
return c};
Nv=function(a,b,c,d){c?w(c)?c={"class":c}:ea(c)&&(c={"class":c.join(" ")}):c={};c.dir=Et(a.o,d);return[b,c,d]};
Sv=function(a,b){if(!b.customMessage)return"";var c=["iv-card-action","iv-card-primary-link"],d={};b.o&&(c.push("iv-card-action-icon"),d.style="background-image: url("+b.o+");");d.dir=Et(a.o,b.customMessage);c=["div",c,d,["span","",b.customMessage]];b.showLinkIcon&&(c.push("\u00a0"),c.push(["span","iv-card-link-icon"]));return c};
Pv=function(a,b){var c=0;F(a.choices,function(a){c+=a.count});
for(var c=c||1,d=0;d<a.choices.length;d++){var e=a.choices[d],f=rf(a.A+"-"+e.index.toString(),b),e=e.count/c;null==a.g&&(e=0);J(f.getElementsByTagName("label")[0],"iv-card-poll-choice-checked",a.g==d);f.getElementsByTagName("input")[0].checked=a.g==d;Sf(rf("iv-card-poll-choice-percent",f),N("YTP_DRAWER_POLL_PERCENT",{PERCENT:Math.floor(100*e).toFixed(0)}));Gs(rf("iv-card-poll-result-bar",f),"transform","scaleX("+e.toFixed(2)+")")}J(b,"iv-card-poll-voted",null!=a.g);J(b,"iv-card-poll-expanded",null!=
a.g&&1<a.choices.length)};
Zv=function(a,b,c,d){d?(c&&a.b.videoData.xa||a.b.g.pauseVideo(),a.b.g.Qa()&&yr(a.b.g),lv(a.b.logger,b.$a,d,void 0,b.b.click,5)):a.A(b.url,b.id,b.$a,b.b.click,5)};
Rv=function(a,b,c){return b?iu(b,c,a.b.videoData.videoId,a.b.o):null};
Uv=function(a,b,c,d,e){c.g&&$v(a,qf("iv-card-sign-in-button",b.element),c,c.g,e);$v(a,qf("iv-click-target",b.element),c,c.url,d)};
$v=function(a,b,c,d,e){F(b,function(a){if(e){var b=x(function(a){a.stopPropagation();a.preventDefault();e();return!1},this);
this.b.b.O(a,"click",b)}else this.g(a,d,c.id,c.$a,c.b.click,5)},a)};
aw=function(a,b,c){Gv.call(this,a,b,c);this.title=b.title;this.chapters=b.chapters};
bw=function(a,b,c){Gv.call(this,a,b,c);this.o=b.image_url;this.playlistVideoCount=b.playlist_video_count;this.customMessage=b.custom_message;this.title=b.title;this.oe=b.meta_info;this.url=bu({pause_on_navigation:b.pause_on_navigation,target:b.target||"new",value:b.url})};
cw=function(a,b,c){Gv.call(this,a,b,c);this.A=this.id.replace(/[^a-z0-9-]/gi,"-");this.title=b.title;this.choices=b.choices;this.g=b.hasOwnProperty("old_vote")?b.old_vote:null;this.o=null;b.signin_url&&(this.o=bu({target:"current",value:b.signin_url}));this.C=b.hasOwnProperty("xsrf_token")?b.xsrf_token:null};
ew=function(a,b,c){Iv.call(this,a,b,c);this.offers=[];a=b.offers||[];for(b=0;b<a.length;b++)this.offers.push(new dw(a[b]))};
dw=function(a){this.merchant=B(a.merchant);this.price=B(a.price)};
fw=function(a,b,c){Iv.call(this,a,b,c);this.F=b.ypc_item_type;this.A=b.ypc_item_id;this.G=b.ypc_flow_type};
gw=function(a,b,c){Gv.call(this,a,b,c);this.o=b.image_url;this.videoDuration=b.video_duration||null;this.customMessage=b.custom_message;this.title=b.title;this.oe=b.meta_info;this.A=!!b.is_live_now;this.url=bu({pause_on_navigation:b.pause_on_navigation,target:b.target||"new",value:b.url})};
hw=function(a,b,c){Gv.call(this,a,b,c);this.D=b.image_url;this.o=b.badge_symbol||"";this.priceText=b.price_text||"";this.title=b.title;this.oe=b.meta_info;this.A=!!b.is_paygated;this.C=!!b.user_has_entitlement;this.url=bu({target:b.target||"new",value:b.url})};
iw=function(a,b,c){tv.call(this,b,c);this.Y=a;this.mj=this.ba=this.A=this.R=this.$=!1;this.ca=null;this.Zk=new ge(r,c.o.useTabletControls?4E3:3E3);this.aa=new ge(r);this.g=new Mv(c,x(this.Lg,this),x(this.pj,this));a=["div","iv-drawer",["div","iv-drawer-header",{"aria-role":"heading"},N("YTP_DRAWER_HEADER_TEXT_2"),["button",["iv-drawer-close-button","ytp-button"],{"aria-label":N("YTP_DRAWER_CLOSE_BUTTON_ARIA_LABEL"),tabindex:"0"}]],["div","iv-drawer-content"]];this.F=new R(a);this.C=this.F.element;
this.N=new yv(this.F,330);this.hd=rf("iv-drawer-content",this.C);a=["iv-drawer-teaser"];this.g.b.o.experiments.Hy&&a.push("iv-exp-cards-teaser-prominent");a=["div",a,["div","iv-drawer-teaser-box"],["div","iv-drawer-teaser-text"],["button",{title:N("YTP_DRAWER_HEADER_TEXT_2"),"aria-label":N("YTP_CARDS_BUTTON_ARIA_LABEL"),"aria-haspopup":"true","class":"iv-drawer-open-button"},["span"]]];new R(a);this.o=[];this.K=this.L=this.B=this.G=this.b=null;this.D=[];uv(this,0,1E3*c.videoData.lengthSeconds,"",
this.qy,this.Vy)};
qw=function(a,b){var c=b&&b.data&&b.data.card_type;if(c&&jw[c]){c=new jw[c](b.id,b.data,b.$a);a.$||(ke(a.la(),["html5-stop-propagation","iv-drawer-manager"]),kw(a.Y,a.C,5),lw(a),a.L=rf("ytp-cards-button"),a.K=rf("iv-drawer-close-button",a.C),a.$=!0);mw(a,c.id);var d=nw(a,c);if(d){var e={bb:c,al:d.element,rr:!1,sj:!1},f=ow(a,e);vb(a.o,f,0,e);d.Ba(a.hd,f);a.Di();c.B?uv(a,c.startMs,0x8000000000000,c.id,qa(a.iG,e)):(d=1E3*a.context.g.getCurrentTime(),5E3>d&&d>c.startMs&&a.cn(e,!1),uv(a,c.startMs,c.startMs+
1,c.id,qa(a.cn,e,!1)),pw(a))}}};
rw=function(a,b){b.data.autoOpenMs&&uv(a,b.data.autoOpenMs,0x8000000000000,"",a.pI);b.data.autoCloseMs&&uv(a,b.data.autoCloseMs,0x8000000000000,"",a.Ji)};
mw=function(a,b){var c=tw(a,b);c&&(c==a.b&&(a.b=null),a.Y.Hu(c.bb.id),If(c.al),pb(a.o,c),a.Di(),pw(a))};
vw=function(a,b,c,d){if(!a.A){a.N.show();a.G=new ge(function(){I(this.context.g.Da(),"ytp-iv-drawer-open")},0,a);
a.G.start();a.A=!0;a.H=C();pv(a.context.logger,7,void 0,d&&d.bb?d.bb.$a:void 0);var e={TRIGGER_TYPE:b};F(a.o,function(a){a.sj||(a.sj=!0,kv(this.context.logger,a.bb.$a,a.bb.b.Zq,e))},a);
uw(a.Y);c&&(a.B=new ge(function(){this.J=this.L;this.K.focus()},330,a),a.B.start())}};
ww=function(a,b){return a.context.o.experiments.Z(b)};
lw=function(a){a.context.b.O(rf("iv-drawer-close-button",a.C),"click",a.My,a);a.context.b.O(a.hd,"touchend",function(){this.Zk.start()},a);
a.context.b.O(a.hd,"scroll",a.Zy,a);a.ca=jm(a.hd,"mousewheel",x(a.qI,a));a.context.A.subscribe("onHideControls",function(){this.mj=!0},a);
a.context.A.subscribe("onShowControls",function(){this.mj=!1},a);
a.context.A.subscribe("onVideoAreaChange",function(){this.mj=je(this.Y.Da(),"ytp-autohide")},a);
a.D.push(ej("iv-teaser-shown",a.EB,a));a.D.push(ej("iv-teaser-clicked",a.CB,a));a.D.push(ej("iv-hover-card-clicked",a.BB,a));ww(a,"teaser_on_button_hover")&&a.D.push(ej("iv-button-mouseover",a.qG,a));ww(a,"log_teaser_hover")&&a.D.push(ej("iv-teaser-mouseover",a.DB,a))};
nw=function(a,b){switch(b.type){case "simple":return Vv(a.g,b);case "collaborator":var c=a.g,d=["div",["iv-card","iv-card-channel"],["a",["iv-click-target","g-hovercard"],{href:Rv(c,b.url,b.id),"data-ytid":b.channelId},Tv(b.profileImageUrl),["div","iv-card-content",Yv(c,b),["h2","iv-card-primary-link",b.title],Wv(c,b)]]],d=new R(d);Uv(c,d,b);return d;case "donation":return c=a.g,d=x(c.RC,c,b),Vv(c,b,d,d);case "episode":return Xv(a.g,b,"iv-card-episode");case "movie":return Xv(a.g,b,"iv-card-movie");
case "navigation":return Ov(a.g,b);case "playlist":return c=a.g,d=["div",["iv-card","iv-card-playlist"],["a","iv-click-target",{href:Rv(c,b.url,b.id)},Tv(b.o,["div","iv-card-image-overlay",["span","iv-card-playlist-video-count",b.playlistVideoCount.toString()]]),["div","iv-card-content",Yv(c,b),Nv(c,"h2","iv-card-primary-link",b.title),Wv(c,b)]]],d=new R(d),Uv(c,d,b),d;case "poll":return Qv(a.g,b);case "productListing":var c=a.g,d=Rv(c,b.url,b.id),e=!ib(b.offers),f=["iv-card"],k="",l=Sv(c,b);e&&(f.push("iv-card-product-listing"),
k="iv-card-primary-link",l=b.offers[0],e=["div",null],l.price&&e.push(["div","iv-card-offer-price",l.price]),l.merchant&&e.push(["div","iv-card-offer-merchant",l.merchant]),l=e);e=b.sponsored?["div","iv-card-sponsored",N("YTP_SPONSORED"),["div","iv-ad-info-container",["div","iv-ad-info","{{adInfo}}"],["div","iv-ad-info-icon-container",["div","iv-ad-info-icon"],["div","iv-ad-info-callout"]]]]:"";d=["div",f,{tabindex:"0"},["a",["iv-card-image","iv-click-target"],{style:"background-image: url("+b.imageUrl+
");",href:d,"aria-hidden":"true",tabindex:"-1"}],["div","iv-card-content",e,["a","iv-click-target",{href:d},Nv(c,"h2",k,b.title),l]]];d=new R(d);f=Df("span");Sf(f,N("YTP_SPONSORED_PRODUCT_INFO"));d.Nb(f,"adInfo");Uv(c,d,b);return d;case "tip":return c=a.g,d=x(c.VE,c,b),Vv(c,b,d,d);case "video":return c=a.g,d=Rv(c,b.url,b.id),f=b.videoDuration?["span","iv-card-video-duration",b.videoDuration]:"",k=b.A?["span",["yt-badge","yt-badge-live"],N("YTP_LIVE_NOW")]:"",d=["div",["iv-card","iv-card-video"],["a",
"iv-click-target",{href:d},Tv(b.o,f),["div","iv-card-content",Yv(c,b),Nv(c,"h2","iv-card-primary-link",b.title),Wv(c,b),k]]],d=new R(d),Uv(c,d,b),d}return null};
ow=function(a,b){if(0==a.o.length)return 0;var c=db(a.o,function(a){return b.bb.startMs>a.bb.startMs||b.bb.startMs==a.bb.startMs&&b.bb.timestamp>=a.bb.timestamp?!0:!1});
return-1==c?0:c+1};
xw=function(a){return a.b?"productListing"==a.b.bb.type:Sk(a.o,function(a){return"productListing"==a.bb.type})};
pw=function(a){J(a.Y.Da(),"ytp-cards-shopping-active",xw(a))};
yw=function(a,b){if(a.F.g){var c=new xt([0,a.hd.scrollTop],[0,b.al.offsetTop],600,Ct);a.context.b.O(c,"animate",function(a){this.hd.scrollTop=a.y},a);
a.context.b.O(c,"finish",function(a){this.hd.scrollTop=a.y},a);
c.play()}else a.F.fb(!0),a.hd.scrollTop=b.al.offsetTop,a.F.fb(!1)};
zw=function(a){return a.b&&a.b.bb||a.o[0]&&a.o[0].bb};
tw=function(a,b){return cb(a.o,function(a){return a.bb.id==b},a)};
Cw=function(a){if(!Aw.test(a))throw Error("'"+a+"' is not a valid hex color");4==a.length&&(a=a.replace(Bw,"#$1$1$2$2$3$3"));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)]};
Dw=function(a,b,c,d,e){xt.call(this,b,c,d,e);this.element=a};
Ew=function(a,b,c,d,e){if(2!=b.length||2!=c.length)throw Error("Start and end points must be 2D");Dw.apply(this,arguments)};
Fw=function(a,b,c){tv.call(this,a,b);this.annotation=c;this.isActive=!1};
Gw=function(a,b,c){Fw.call(this,a,b,c);this.b=null;this.D=!1;this.g=null;this.o=!1;this.A=0;this.C=this.B=null};
Hw=function(a,b,c,d,e,f){this.b=a;this.o=b;this.videoData=c;this.logger=d;this.g=e;this.A=f};
Iw=function(a,b,c){this.type=a;this.b=b;this.url=c};
Lw=function(a){if(!a)return null;var b=St(a.type,Jw),c=St(a.trigger,Kw),d=bu(Ot(a.url));Ot(a.subscribeData);return b?new Iw(b,c,d):null};
Mw=function(a,b,c,d,e,f,k,l,m,n,t,u,y,E){this.A=a;this.bgColor=b;this.C=c;this.b=d;this.g=e;this.H=f;this.B=k;this.textAlign=l;this.textSize=m;this.D=n;this.F=t;this.effects=u;this.o=y;this.G=E};
Ow=function(a){if(!a)return null;var b=Qt(a.fgColor,"#1A1A1A"),c=Qt(a.bgColor,"#FFF"),d=Qt(a.borderColor,"#000"),e=Vt(a.borderWidth,0,5,!1,0),f=Vt(a.bgAlpha,0,1,!1,.8),k=Qt(a.highlightFontColor,"#F2F2F2"),l=Vt(a.highlightWidth,0,5,!1,3),m=Rt(a.textAlign),n=Vt(a.textSize,3.3,30.1,!0,3.6107),t=Rt(a.fontWeight),u=Yt(a.padding),y=Zt(a.effects),E=Vt(a.cornerRadius,0,10,!0,0);if(a=Ot(a.gradient)){var D=Vt(a.x1,0,100,!0,0),W=Vt(a.y1,0,100,!0,0),O=Vt(a.x2,0,100,!0,100),Q=Vt(a.y2,0,100,!0,100),bb=Qt(a.color1,
"#FFF"),jb=Qt(a.color2,"#000");a=new Nw(D,W,O,Q,bb,jb,Vt(a.opacity1,0,100,!0,100),Vt(a.opacity2,0,100,!0,0))}else a=null;return new Mw(b,c,d,e,f,k,l,m,n,t,u,y,E,a)};
Nw=function(a,b,c,d,e,f,k,l){this.B=a;this.D=b;this.C=c;this.F=d;this.b=e;this.g=f;this.o=k;this.A=l};
Rw=function(a,b,c){var d=a.C,e=a.D,f=a.b?a.b:"xy",k=Pw(c,a.A,f);a=Qw(c,a.g,f);var f=640*b.width*k/100,l=360*b.height*a/100;return new ng(0==d?640*b.left*k/100:0<d?d:c.width+d-f,0==e?360*b.top*a/100:0<e?e:c.height+e-l,f,l)};
Pw=function(a,b,c){var d=(c="xx"==c||"xy"==c)?640:360;return(d+((c?a.width:a.height)-d)*b)/d};
Qw=function(a,b,c){var d=(c="xy"==c||"yy"==c)?360:640;return(d+((c?a.height:a.width)-d)*b)/d};
Sw=function(a,b,c,d,e,f,k,l,m,n,t){this.x=a;this.y=b;this.B=c;this.o=d;this.t=e;this.H=f;this.C=k;this.D=l;this.A=m;this.g=n;this.b=t};
Uw=function(a,b){if(!a)return null;var c=Ut(a.x,0),d=Ut(a.y,0),e=Ut(a.w,0),f=Ut(a.h,0),k=Wt(a.t),l=Ut(a.scaleSlope,1);return b(c,d,e,f,k,Ut(a.d,0),Ut(a.px,0),Ut(a.py,0),Ut(a.scaleSlopeX,l),Ut(a.scaleSlopeY,l),St(a.scaleDimension,Tw,"xy"))};
Ww=function(a,b){var c=Vw(b,Rw(a,new ng(a.x,a.y,a.B,a.o),b.b)),d=b.b,e=c.clone();d&&!d.contains(c)&&(c.width<d.width?e.left=af(c.left,d.left,d.left+d.width-c.width):(e.left=d.left,e.width=d.width),c.height<d.height?e.top=af(c.top,d.top,d.top+d.height-c.height):(e.top=d.top,e.height=d.height));return e};
Xw=function(a){return a?Uw(a,function(a,c,d,e,f,k,l,m,n,t,u){return new Sw(a,c,d,e,f,k,l,m,n,t,u)}):null};
Yw=function(a,b,c,d,e,f,k,l,m,n,t,u,y){Sw.call(this,a,b,c,d,e,l,m,n,t,u,y);this.F=f;this.G=k};
Zw=function(a){if(!a)return null;var b=Ut(a.sx,0),c=Ut(a.sy,0);return Uw(a,function(a,e,f,k,l,m,n,t,u,y,E){return new Yw(a,e,f,k,l,b,c,m,n,t,u,y,E)})};
$w=function(a,b,c,d){this.type=a;this.g=b;this.b=c;this.o=d};
bx=function(a){if(!a)return null;var b=St(a.type,ax,"rect"),c=Xt(a.rectRegion,Xw),d=Xt(a.anchoredRegion,Zw);a=Xt(a.shapelessRegion,Xw);return new $w(b,c,d,a)};
cx=function(a){return a.g&&a.g.length?a.g[0]:a.b&&a.b.length?a.b[0]:a.o&&a.o.length?a.o[0]:null};
dx=function(a,b){this.g=a;this.b=b};
ex=function(a,b){this.state=a;this.b=b};
gx=function(a){if(!a)return null;var b=St(a.state,fx);a=Pt(a.ref);return b?new ex(b,a):null};
hx=function(a,b,c,d){this.b=a||[];this.o=b||[];this.A=c;this.g=d;this.value=!1};
ix=function(a){if(!a)return null;var b=Xt(a.condition,gx),c=Xt(a.notCondition,gx),d=Tt(a.show_delay,!1);a=Tt(a.hide_delay,!1);return b||c?new hx(b,c,d,a):null};
jx=function(a,b,c){F(a.b,qa(b,!1),c);F(a.o,qa(b,!0),c)};
kx=function(a,b,c,d,e,f,k,l,m,n,t,u,y,E,D){this.id=a;this.author=b;this.type=c;this.style=d;this.B=e;this.g=f;this.A=k||[];this.F=l||[];this.b=m;this.D=n;this.C=t;this.o=y;this.data=E;this.$a=D};
ox=function(a){if(!a)return null;var b=Pt(a.id),c=Pt(a.author),d=St(a.type,lx),e=St(a.style,mx),f=Rt(Ot(a.TEXT)),k=Rt(a.data),k=0!=k.length?bg(k):{},l;var m=Ot(a.segment);m?(Pt(m.timeRelative),l=Pt(m.spaceRelative),l=(m=Xt(m.movingRegion,bx))?new dx(l,m):null):l=null;var m=Xt(a.action,Lw),n=Xt(a.trigger,ix),t=Ow(Ot(a.appearance));t||(t=Ow({}));var u=St(a.coordinate_system,nx,"video_relative"),y=Tt(a.closeable,!0),E=Rt(a.html_blob);a=Rt(a.log_data);return b&&d?new kx(b,c,d,e,f,l,m,n,t,u,y,0,E,k,a):
null};
qx=function(a){return(a=px(a,function(a){return"openUrl"==a.type&&null!=a.url}))?a.url:null};
sx=function(a){return rx(a,function(a){return"click"==a.b})};
rx=function(a,b){return Th(a.A,b,void 0)};
tx=function(a,b,c){F(a.A,b,c)};
px=function(a,b){return cb(a.A,b,void 0)};
ux=function(a,b,c){F(a.F,b,c)};
vx=function(a,b){M(a.F,b,void 0)};
xx=function(a){return(a=wx(a))?cx(a):null};
wx=function(a){a.g?(a=a.g,a=a.b.length?a.b[0]:null):a=null;return a};
zx=function(a,b){var c=xx(a);return c&&b?Qw(b,c.g,c.b?c.b:"xy"):1};
Ax=function(a,b,c){Fw.call(this,a,b,c);this.D=this.A=this.F=!1;this.C=5E3;this.b=null;this.jh=K("DIV","iv-promo-contents");this.g=this.o=this.Bc=null;this.B=new ge(function(){this.Bc.setAttribute("aria-hidden",!0);bt(this.o,!1);bt(this.g,!0)},700,this)};
Bx=function(a){var b=a.annotation.data,c;if("cta"==a.annotation.style)c=6;else if("video"==a.annotation.style||"playlist"==a.annotation.style)c=7;a.C=b.collapse_delay_ms||a.C;var d=["iv-promo","iv-promo-inactive"];a.la().setAttribute("aria-hidden",!0);a.la().setAttribute("aria-label",N("YTP_INVIDEO_PROMOTION_ARIA_LABEL"));a.la().tabIndex=0;var e;if(b.image_url){e=K("DIV",["iv-promo-img","iv-click-target"]);var f=K("IMG",{src:b.image_url,"aria-hidden":"true"});e.appendChild(f);b.video_duration&&!b.is_live?
(f=K("SPAN","iv-promo-video-duration",b.video_duration),e.appendChild(f)):b.playlist_length&&(f=K("SPAN","iv-promo-playlist-length",b.playlist_length.toString()),e.appendChild(f));a.Lg(e,qx(a.annotation),a.annotation.id,a.annotation.$a,null,c)}f=qx(a.annotation);a.Bc=f?K("A",{href:cu(f),"class":"iv-promo-txt"}):K("DIV","iv-promo-txt");var k,l,m;switch(a.annotation.style){case "cta":case "website":k=K("P",null,K("STRONG",null,b.text_line_1));l=K("P",null,K("SPAN","iv-promo-link",b.text_line_2));I(a.Bc,
"iv-click-target");a.Lg(a.Bc,qx(a.annotation),a.annotation.id,a.annotation.$a,null,c);break;case "playlist":case "video":k=K("P",null,K("SPAN",null,b.text_line_1));l=K("P",null,K("STRONG",null,b.text_line_2));b.is_live&&(k=l,l=K("SPAN",["yt-badge","iv-promo-badge-live"],N("YTP_LIVE_NOW")));I(a.Bc,"iv-click-target");a.Lg(a.Bc,qx(a.annotation),a.annotation.id,a.annotation.$a,null,c);d.push("iv-promo-video");break;case "vote":k=K("P",null,K("STRONG",null,b.text_line_1)),l=K("P",null,K("SPAN",null,b.text_line_2)),
m=K("DIV","iv-promo-button-container"),c=K("BUTTON",["iv-button","iv-promo-button"],K("SPAN","iv-button-content",b.button_text)),a.context.b.O(c,"click",function(a){a.stopPropagation();lv(this.context.logger,this.annotation.$a,null,{contest_vote:"1"},(b.tracking||{}).vote);var c=this.annotation.data;this.Bc=rf("iv-promo-txt",this.jh);a=rf("iv-promo-button-container",this.jh);var d=K("DIV",["iv-promo-txt","iv-click-target"]),e=K("P",null,K("STRONG",null,c.text_line_3)),c=K("P",null,c.text_line_4);
Ff(d,e,c);If(a);Jf(d,this.Bc);me(this.la(),"iv-promo-with-button");this.Lg(d,qx(this.annotation),this.annotation.id,this.annotation.$a)},a),m.appendChild(c),d.push("iv-promo-with-button")}k&&a.Bc.appendChild(k);
l&&a.Bc.appendChild(l);a.jh.appendChild(a.Bc);m&&a.jh.appendChild(m);k=K("DIV","iv-promo-actions");a.g=K("BUTTON",["iv-promo-expand","ytp-button"]);a.g.title=N("YTP_EXPAND");a.context.b.O(a.g,"click",qa(a.Ul,5E3),a);k.appendChild(a.g);bt(a.g,!1);a.context.b.O(a.la(),"mouseover",a.Hz,a);a.context.b.O(a.la(),"mouseout",a.Gz,a);a.context.b.O(a.la(),"touchend",qa(a.Ul,5E3),a);a.o=K("BUTTON",["iv-promo-close","ytp-button"]);a.o.title=N("YTP_CLOSE");a.context.b.O(a.o,"click",a.rI,a);k.appendChild(a.o);
ke(a.la(),d);e&&Ef(a.la(),e);Ef(a.la(),a.jh);Ef(a.la(),k)};
Cx=function(a){a.A||a.D||a.b||(I(a.la(),"iv-promo-collapsed"),a.A=!0,a.B.start())};
Dx=function(a){a.B.stop();a.A&&(me(a.la(),"iv-promo-collapsed"),a.A=!1,a.Bc&&a.Bc.removeAttribute("aria-hidden"),bt(a.g,!1),bt(a.o,!0))};
Ex=function(a,b){a.b||(a.b=ee(function(){this.b&&(fe(this.b),this.b=null);Cx(this)},b,a))};
Fx=function(a){G.call(this);this.K=[];this.na=a||this};
Gx=function(a,b,c,d){for(var e=0;e<c.length;e++)a.S(b,c[e],d)};
Hx=function(a){for(;a.K.length;){var b=a.K.pop();b.target.removeEventListener(b.name,b.Fi)}};
Ix=function(){return!!q("yt.scheduler.instance")};
Jx=function(a,b){(0,window.isNaN)(b)&&(b=void 0);var c=q("yt.scheduler.instance.addJob");return c?c(a,1,b):void 0===b?(a(),window.NaN):Ti(a,b||0)};
Kx=function(a){if(!(0,window.isNaN)(a)){var b=q("yt.scheduler.instance.cancelJob");b?b(a):Vi(a)}};
Mx=function(){var a=q("yt.scheduler.instance.start");a&&(Vi(Lx),a())};
Nx=function(){var a=q("yt.scheduler.instance.pause");a&&(a(),Vi(Lx),Lx=Ti(Mx,800))};
Px=function(a,b,c){this.b={};this.g=!1;this.B="ivTrigger:"+a;this.o=c;jx(b,function(a,b){var c=Ox(b.state,b.b);this.o.subscribe(c,x(this.A,this,c,a));this.b[c]=a},this)};
Ox=function(a,b){var c="ivTriggerCondition:"+a;return b?c+":"+b:c};
Qx=function(a,b,c){this.o=a;this.annotation=b;this.b=c;this.g=null;this.B=this.isVisible=!1;aaa(b,a)};
aaa=function(a,b){vx(a,function(c){return new Px(a.id,c,b)})};
Rx=function(a){tg(a.o,"resize",a.C,a);tg(a.o,"onVideoAreaChange",a.A,a)};
Sx=function(a){a.g&&(a.g.stop(),a.g=null)};
Tx=function(a,b){this.start=a<b?a:b;this.end=a<b?b:a};
Ux=function(){};
Vx=function(a,b,c,d,e,f,k,l){this.B=a;this.D=b;this.C=c;this.F=d;this.G=e;this.H=f;this.o=p(k)?k:null;this.A=p(l)?l:null};
Wx=function(){this.ra=[];this.ya=[];this.Oc=[]};
Xx=function(a,b,c){0==$a(a.ra)?a.Oc.length-=2:(a.ra.push(0),a.ya.push(1));a.Oc.push(b,c);a.uc=a.Jd=[b,c]};
Yx=function(a,b,c,d){var e=a.uc[0]-b*Math.cos(d*Math.PI/180)+b*Math.cos((d+90)*Math.PI/180),f=a.uc[1]-c*Math.sin(d*Math.PI/180)+c*Math.sin((d+90)*Math.PI/180);a.ra.push(3);a.ya.push(1);a.Oc.push(b,c,d,90,e,f);a.Jh=!1;a.uc=[e,f]};
caa=function(a,b){for(var c=a.Oc,d=0,e=0,f=a.ra.length;e<f;e++){var k=a.ra[e],l=baa[k]*a.ya[e];b(k,c.slice(d,d+l));d+=l}};
Zx=function(a,b){this.o=a;this.A=null==b?1:b};
$x=function(a,b,c){this.o=a;this.b=b;this.g=null==c?1:c};
ay=function(){};
by=function(a){id.call(this);this.F=a||of();this.wa=null;this.sd=!1;this.b=null;this.B=void 0;this.C=this.H=this.A=null};
cy=function(a,b){if(a.sd)throw Error("Component already rendered");a.b||a.aj();b?b.insertBefore(a.b,null):a.F.b.body.appendChild(a.b);a.A&&!a.A.sd||a.eg()};
dy=function(a,b){a.H&&F(a.H,b,void 0)};
ey=function(a,b,c,d,e){by.call(this,e);this.width=a;this.height=b;this.o=c||null;this.J=d||null};
daa=function(a){var b=a.mg();return b?b.width/(a.o?new hf(a.o,a.J):a.mg()).width:0};
fy=function(a,b){id.call(this);this.oh=a;this.Ol=b;this[Gc]=!1};
gy=function(a,b,c,d){fy.call(this,a,b);this.Ol.Ft(this,c);this.fill=d;this.Ol.Et(this,d)};
hy=function(a,b){fy.call(this,a,b)};
iy=function(a,b,c,d){gy.call(this,a,b,c,d)};
jy=function(a,b){fy.call(this,a,b)};
ky=function(a,b,c,d){gy.call(this,a,b,c,d)};
ly=function(a,b,c,d,e){ey.call(this,a,b,c,d,e);this.g={};this.K=Cc&&!zc(526);this.G=new Cm(this)};
ny=function(a,b,c){a=a.F.b.createElementNS("http://www.w3.org/2000/svg",b);c&&my(a,c);return a};
my=function(a,b){for(var c in b)a.setAttribute(c,b[c])};
eaa=function(a){var b=[];caa(a,function(a,d){switch(a){case 0:b.push("M");Array.prototype.push.apply(b,d);break;case 1:b.push("L");Array.prototype.push.apply(b,d);break;case 2:b.push("C");Array.prototype.push.apply(b,d);break;case 3:var e=d[3];b.push("A",d[0],d[1],0,180<Math.abs(e)?1:0,0<e?1:0,d[4],d[5]);break;case 4:b.push("Z")}});
return b.join(" ")};
oy=function(a,b,c){if(b in a.g)return a.g[b];var d="_svgdef_"+faa++;c.setAttribute("id",d);a.g[b]=d;a.D.appendChild(c);return d};
qy=function(){py||(py=new ce(400),py.start());return py};
ry=function(){this.b=!1;this.B=this.g=null};
sy=function(a,b,c){a.g?(a.g.setSize(b,c),a.g.clear()):(b=new ly(b,c,void 0,void 0,void 0),a.g=b,a.g.aj(),a.B=K("DIV"),b=a.g.la(),a.B.appendChild(b));return a.g};
ty=function(a,b,c){var d=window.document.createElementNS("http://www.w3.org/2000/svg",a);b&&Pb(b,function(a,b){d.setAttribute(b,a)});
for(var e=2;e<arguments.length;e++)d.appendChild(arguments[e]);return d};
uy=function(a,b){var c=":"+(ay.getInstance().b++).toString(36);b.setAttribute("result",c);a.appendChild(b);return c};
gaa=function(a,b){var c=uy(a,ty("feGaussianBlur",{"in":b,stdDeviation:"1.8"})),c=uy(a,ty("feDiffuseLighting",{"in":c,surfaceScale:"4",diffuseConstant:"1"},ty("feDistantLight",{azimuth:"270",elevation:"15","lighting-color":"white"}))),c=uy(a,ty("feComposite",{"in":c,in2:b,operator:"in"}));return uy(a,ty("feComposite",{in2:c,"in":b,operator:"arithmetic",k2:1,k3:.5,k4:0}))};
haa=function(a,b){var c=uy(a,ty("feOffset",{"in":b,dx:"-7",dy:"-7"})),c=uy(a,ty("feGaussianBlur",{"in":c,stdDeviation:"3"})),c=uy(a,ty("feColorMatrix",{"in":c,type:"matrix",values:"0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.5 0"})),d=uy(a,ty("feColorMatrix",{"in":b,type:"matrix",values:"0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 100 0"})),d=uy(a,ty("feGaussianBlur",{"in":d,stdDeviation:"1"})),c=uy(a,ty("feComposite",{operator:"out","in":c,in2:d}));return uy(a,ty("feComposite",{operator:"over","in":b,in2:c}))};
iaa=function(a,b){return b};
jaa=function(a){var b=ty("filter",{filterUnits:"userSpaceOnUse"}),c="SourceGraphic";F(a,function(a){a:{switch(a){case "bevel":a=gaa;break a;case "dropshadow":a=haa;break a}a=iaa}c=a(b,c)});
return b};
kaa=function(a){a=le(a,function(a){return a in vy});
Cb(a,function(a,c){return vy[a]-vy[c]});
return a};
laa=function(a){return cb(a,function(a){return"dropshadow"==a})?new mg(0,7,7,0):new mg(0,0,0,0)};
wy=function(a,b,c){var d=new Wx;Xx(d,a.left+b+c,a.top+c);d.Hb(a.left+a.width-b-c,a.top+c);Yx(d,b,b,-90);d.Hb(a.left+a.width-c,a.top+a.height-b-c);Yx(d,b,b,0);d.Hb(a.left+b+c,a.top+a.height-c);Yx(d,b,b,90);d.Hb(a.left+c,a.top+b+c);Yx(d,b,b,180);d.close();return d};
yy=function(a,b,c,d){var e=a.G;e?a=new Vx(e.B*b/100,e.D*c/100,e.C*b/100,e.F*c/100,e.b,e.g,e.o,e.A):(b=a.g,a=new Zx(a.bgColor,d?Math.max(b,.9):b));return a};
zy=function(a,b){var c=og(a),d=laa(b);ka(d)?(c.top-=d.top,c.right+=d.right,c.bottom+=d.bottom,c.left-=d.left):(c.top-=d,c.right+=Number(void 0),c.bottom+=Number(void 0),c.left-=Number(void 0));return new ng(c.left,c.top,c.right-c.left,c.bottom-c.top)};
Ay=function(a,b,c){if(c.length&&(b=pf("g",void 0,b),b.length)){var d=kaa(c);if(d){c="effects:"+(d?d.join("|"):"");var e=c in a.g?a.g[c]:null;e?a=e:(d=jaa(d),a=0<d.childNodes.length?oy(a,c,d):null)}else a=null;a&&b[0].setAttribute("filter","url(#"+a+")")}};
By=function(){ry.call(this);this.A=0};
maa=function(a,b){var c=a.top-b.y,d=b.x-a.left-a.width,e=b.y-a.top-a.height,f=a.left-b.x,k=Math.max(c,d,e,f);if(0>k)return"i";switch(k){case c:return"t";case d:return"r";case e:return"b";case f:return"l"}return"i"};
Cy=function(){ry.call(this)};
Dy=function(){ry.call(this)};
Ey=function(){By.call(this)};
Fy=function(a,b){this.b=a;this.g=b||null};
Vw=function(a,b){var c;c=a.g?Ww(a.g,new Fy(a.b)):a.b;var d=b.clone(),e=c.left;c=c.top;e instanceof ff?(d.left+=e.x,d.top+=e.y):(d.left+=e,ha(c)&&(d.top+=c));return d};
Gy=function(a,b,c,d,e){this.b=a;this.aa=b;this.C=c;this.ea=d;this.ca=e;this.L=!1;this.D=new it(this);this.N=this.B=this.F=this.K=this.g=null;this.ba=!1;this.$=this.H=this.J=null;this.Im=new Am(this.Fz,100,this);this.G=new ge(this.wq,500,this);this.R=this.o=this.A=null};
naa=function(a,b){var c=x(function(a,c,f){c=f?Hy(this,c,x(f,this)):Hy(this,c);this.D.O(b,a,c)},a);
c("mouseover","d",a.bv);c("mouseout","c",a.Ve);c("click","a");c("touchend","a")};
oaa=function(a){if(a.b.C){var b;rx(a.b,function(a){return"close"==a.type})?b=a.g:(a.A=K("DIV","annotation-close-button"),bt(a.A,!1),Li(a.A,"annotation_id",a.b.id),a.g.appendChild(a.A),b=a.A);
var c=function(a){a.stopPropagation()};
a.D.O(b,"click",Hy(a,"b",c));a.D.O(b,"touchend",Hy(a,"b",c))}};
Hy=function(a,b,c){return x(function(a){if(this.ca)c&&c(a);else if(a.event.target instanceof window.Element){var e=a.event.target;bt(e,!1);try{var f=window.document.elementFromPoint(a.event.clientX,a.event.clientY);if(Zf(f,"annotation")){var k=window.document.createEvent("MouseEvent");k.initMouseEvent(a.event.type,a.event.bubbles,a.event.cancelable,a.event.view,a.event.detail,a.event.screenX,a.event.screenY,a.event.clientX,a.event.clientY,a.event.ctrlKey,a.event.altKey,a.event.shiftKey,a.event.metaKey,
a.event.button,a.event.relatedTarget);f.dispatchEvent(k)}}finally{bt(e,!0)}}e=$s(a.target);a=new ff(a.clientX,a.clientY);"c"==b&&e.contains(a)||this.ea.Rb(b,this.b)},a)};
Ny=function(a){if(a.g||a.o){var b=xx(a.b);if(b){var c=Iy(a);if(a.g){var b=Ww(b,c),d=Jy(Ky(a.C));Xs(a.g,b.width,b.height);Ms(a.g,b.left,b.top);a.K=new ng(d.left+b.left,d.top+b.top,b.width,b.height);var e;e=(e=xx(a.b))&&d?Pw(d,e.A,e.b?e.b:"xy"):1;var f=zx(a.b,d),d=a.b.b;d.F?d=d.F:(d="speech"==a.b.style?1.6:.8,d=new mg(d,d,d,d));d=new mg(360*d.top*f/100,640*d.right*e/100,360*d.bottom*f/100,640*d.left*e/100);a.B&&(d.right+=1.5*c.b.height/100);a.g.style.padding=d.top+"px "+d.right+"px "+d.bottom+"px "+
d.left+"px";"label"==a.b.style&&a.F&&(a.F.style.padding=a.g.style.padding);var d=c.b,k=!1,l=0,m=0,n;n=Jy(Ky(a.C));var t=Ly(a.C);pg(n,t)?n=null:(t.top+=20,t.height-=40,"player_relative"!=a.b.D&&(t.left-=n.left,t.top-=n.top),n=t);n&&(l=n.top-(b.top+b.height),m=b.top-(n.top+n.height),k=0<l||0<m);if(k&&n){d=n;e=l;var f=m,u;a.B&&(m=My(a,23,b,e,f),a.A&&(u=43-m.width,0<u&&(b.left+m.left-u>d.left&&(m.left-=u),m.width+=u)),u=m,Xs(a.B,m.width,m.height),Ms(a.B,m.left,m.top));a.A&&(u?b=new ff(u.left+u.width-
23-18,a.ba?u.top+2:u.top+u.height-18-2):(u=My(a,18,b,e,f),b=new ff(u.left,u.top),Xs(a.A,u.width,u.height)),Ms(a.A,b));a.N=new ng(a.K.left+u.left,a.K.top+u.top,u.width,u.height);a.J=a.D.O(Ky(a.C),"mousemove",a.ED)}else a.B&&(u=e/f*d.height*4.2/100,u=new hf(u,u),"highlight"==a.b.type||"label"==a.b.style?(e=1.5*d.height/100,u=new ng(b.width-u.width-e,b.height-u.height-e,u.width,u.height)):u=new ng(b.width-u.width-3*d.height/100,(b.height-u.height)/2,u.width,u.height),Xs(a.B,u.width,u.height),Ms(a.B,
u.left,u.top)),a.A&&(u=9<=d.left+d.width-(b.left+b.width),e=9<=b.top-d.top,Ms(a.A,u&&e?new ff(b.width-9,-9):u?new ff(b.width-9,45<b.height?9:b.height-9):e?new ff(45<b.width?b.width-9-18:-9,-9):b.width/d.width>b.height/d.height?new ff(45<b.width?b.width-9-18:-9,b.height-9):new ff(-9,45<b.height?9:b.height-9)))}a.o&&a.o.o(a.b,c);if(a.g){c=a.g;b=a.b.b;c.style.color="highlightText"==a.b.style?b.H:b.A;u=Jy(Ky(a.C));c.style.fontSize=360*b.textSize*zx(a.b,u)/100+"px";u=a.b.style;c.style.textAlign=b.textAlign?
b.textAlign:"title"==u||"highlightText"==u?"center":"left";b.D&&(c.style.fontWeight=b.D);a=a.g;c=a.style.overflow;u=(b=rf("annotation-link-icon",a))?ct(b):!1;e=(d=rf("annotation-close-button",a))?ct(d):!1;u&&bt(b,!1);e&&bt(d,!1);m=f="";if(l=rf("inner-text",a))f=l.style.overflow,m=l.style.position,l.style.overflow="visible",l.style.position="static";a.style.overflow="scroll";if(a.scrollHeight>a.offsetHeight||a.scrollWidth>a.offsetWidth){n=k=ht(a);for(var t=5,y=Math.floor(k/2);y;)a.scrollHeight<=a.offsetHeight&&
a.scrollWidth<=a.offsetWidth?(t=n,n=Math.min(n+y,k)):n=Math.max(n-y,t),y=Math.floor(y/2),a.style.fontSize=n+"px";n!=t&&(a.scrollHeight>a.offsetHeight||a.scrollWidth>a.offsetWidth)&&(a.style.fontSize=t+"px")}a.style.overflow=c;l&&(l.style.overflow=f,l.style.position=m);e&&bt(d,!0);u&&bt(b,!0)}}}};
My=function(a,b,c,d,e){var f=0<e;b=new ng(0,c.height-b,Math.max(c.width,b),b);0<d&&(b.top=c.height,20<d&&(b.height+=d-20),I(a.g,"annotation-extend-down"));f&&(b.top=-b.height,20<e&&(c=e-20,b.top-=c,b.height+=c),I(a.g,"annotation-extend-up"),a.ba=!0);return b};
Oy=function(a){return"label"!=a.b.style||a.o.b};
Iy=function(a){var b;b=Jy(Ky(a.C));if("player_relative"==a.b.D){var c=Ky(a.C).Ia();b=new ng(-b.left,-b.top,c.width,c.height)}else b=new ng(0,0,b.width,b.height);return new Fy(b,a.R?xx(a.R):null)};
Py=function(a,b){return b?new ng(a.x+b.left,a.y+b.top,b.width,b.height):null};
Qy=function(a){eq.call(this,a);this.ea=!0;this.Ma="iv-module";this.logEvent="iv";this.J=0;this.o={};this.K={};this.G=new fv(a);a=paa;this.B=new Fx(this);H(this,this.B);this.subscribe("onHideControls",this.jD,this);this.subscribe("onShowControls",this.JE,this);this.subscribe("presentingplayerstatechange",this.gE,this);this.subscribe("resize",this.ys,this);this.subscribe("d",this.cI,this);this.subscribe("c",this.Ve,this);this.subscribe("a",this.WB,this);this.subscribe("b",this.xC,this);this.subscribe("vast_info_card_add",
this.iF,this);this.R=K("DIV",[a.hx,"html5-stop-propagation"]);this.aa=K("DIV",a.Gw);this.H=this.g=this.A=this.C=null;this.N=[]};
Ry=function(a,b){for(var c={},d=0;d<b.attributes.length;d++){var e=b.attributes[d];c[e.name]=e.nodeValue}for(d=0;d<b.childNodes.length;d++)if(e=b.childNodes[d],e.tagName){var f;if(c[e.tagName])f=c[e.tagName];else if("html_blob"==e.tagName||"data"==e.tagName){S(a.b).experiments.Z("text_content_for_xml_node_value")&&e.textContent?c[e.tagName]=e.textContent.trim():0<e.childNodes.length&&(f=e.childNodes[0].nodeValue,c[e.tagName]="string"==typeof f?f.trim():f);continue}else f=[],c[e.tagName]=f;e&&"TEXT"==
e.tagName?1==e.childNodes.length&&3==e.childNodes[0].nodeType?f.push(e.childNodes[0].nodeValue):f.push(""):e&&f.push(Ry(a,e))}return c};
Sy=function(a,b,c){return!(a.loaded&&a.J==b&&a.b.getVideoData().videoId==c)};
raa=function(a,b){var c=qaa(a,b);if(!c&&"marker"!=b.type)return null;ux(b,function(a){a=x(this.eF,this,b.id,a);this.subscribe("ivTrigger:"+b.id,a)},a);
return new Qx(a.ba,b,c)};
saa=function(a,b){var c=Qy.g(),d=null;switch(b.type){case "branding":if(S(a.b).Ed)break;a.C.element.appendChild(c);d=new Gw(c,Ty(a),b);break;case "promotion":kw(a.b,c,4),d=new Ax(c,Ty(a),b)}d&&d.Mj();return d};
taa=function(a){var b=a.b.getVideoData();if(b.Xf){var c=S(a.b),d=c.G.get(b.videoId);if(d){var e={format:"XML",Zc:{}};c.experiments.Z("disable_iv_cors")||(e.method="POST",e.withCredentials=!0);"gaming"==c.g&&(e.Zc.gaming="1");e.Ac=x(function(a,b,c){Sy(this,a,b)||(a=Wj(c)&&c.responseXML?c.responseXML:null)&&Uy(this,a)},a,a.J,b.videoId);
Ix()&&(e.Ac=Vy(a,e.Ac));e.Sb={ic_only:"1"};Wy(e,d);bk(b.Xf,e)}}};
Wy=function(a,b){a.method="POST";a.Sb=a.Sb||{};b.sf&&(a.Sb.ic_xml=b.sf);b.Og&&(a.Sb.ic_track=b.Og)};
uaa=function(a){var b=new R(["div"]);bt(b.element,!1);var c=new iw(a.b,b.element,Ty(a));b.Ba(a.C.element);c.Mj();return c};
Ty=function(a){a.H||(a.H=new Hw(new it(a),S(a.b),a.b.getVideoData(),a.G,a.b,a.ba));return a.H};
Uy=function(a,b){for(var c=!1,d=b.getElementsByTagName("annotation"),e=0;e<d.length;e++){var f=Ry(a,d[e]),k=null;try{k=ox(f)}catch(l){}k&&(Qy.A(k)?(f=saa(a,k))&&(a.K[k.id]=f):Qy.B(k)?(a.g||(a.g=uaa(a)),"card"==k.type?qw(a.g,k):rw(a.g,k),c=!0):(f=raa(a,k))&&(a.o[k.id]=f))}c&&uw(a.b);Pb(a.o,function(a){var b=a.annotation;b.g&&b.g.g&&(b=this.o[b.g.g])&&(a.b.R=b.annotation)},a)};
vaa=function(a,b,c,d){d?Xy(a,b,c):Yy(a,b,c)};
Yy=function(a,b,c){if(b=a.o[b])Sx(b),c&&c.g?(a=x(a.uq,a,b),b.g=new ge(a,2E3),b.g.start()):a.uq(b)};
Xy=function(a,b,c){if(b=a.o[b])Sx(b),c&&c.A?(a=x(a.Pt,a,b),b.g=new ge(a,2E3),b.g.start()):a.Pt(b)};
Zy=function(a,b,c){if("new"==b.target)return!1;var d=cu(b);if(!d)return!1;d=d.replace(/https?:\/\//g,"");if(!eu(d))return!1;d=Qj(d);if(d.list||d.p)return!1;b=gu(b);if(!b)return!1;if(c==b)return!0;a=S(a.b);return a.D&&a.Aa?!0:!1};
qaa=function(a,b){if(waa(b)){var c=b.C||rx(b,function(a){return"click"==a||"rollOut"==a||"rollOut"==a});
return new Gy(b,x(a.R.appendChild,a.R),a.b,a.ba,c)}return null};
waa=function(a){if("highlight"==a.type||"widget"==a.type)return!0;if("text"==a.type)for(var b in mx)if(a.style==mx[b])return!0;return!1};
$y=function(a,b,c,d){a.X(Ox(b,d),c,d)};
Vy=function(a,b){return x(function(){if(!this.isDisposed()){var a=Array.prototype.slice.call(arguments,0);a.unshift(b);b=qa.apply(window,a);this.N.push(Jx(b,void 0))}},a)};
az=function(a){return!!a.g&&a.g.isAvailable()};
bz=function(a){az(a);return!!a.g&&a.g.A};
cz=function(a,b,c,d){az(a);a.g&&(c=!!c,b?p(d)?vw(a.g,d,c):vw(a.g,"YOUTUBE_DRAWER_AUTO_OPEN",c):a.g.Ji())};
dz=function(a,b,c){a.b.Va(b?"cardsteasershow":"cardsteaserhide",c)};
ez=function(){Zi({YTP_TRANSLATE_MENU_ITEM:"\u041f\u0435\u0440\u0435\u0432\u0435\u0441\u0442\u0438 \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044b",YTP_CONTRIBUTE_MENU_ITEM:"\u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044b",YTP_ASR_SETTINGS_LABEL:"\u0410\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u044b\u0435 \u0442\u0438\u0442\u0440\u044b",YTP_LANGUAGE_OFF:"\u0412\u044b\u043a\u043b.",
YTP_FONT_FAMILY:"\u0421\u0435\u043c\u0435\u0439\u0441\u0442\u0432\u043e \u0448\u0440\u0438\u0444\u0442\u043e\u0432",YTP_FONT_SIZE:"\u0420\u0430\u0437\u043c\u0435\u0440 \u0448\u0440\u0438\u0444\u0442\u0430",YTP_FONT_COLOR:"\u0426\u0432\u0435\u0442 \u0448\u0440\u0438\u0444\u0442\u0430",YTP_FONT_OPACITY:"\u041f\u0440\u043e\u0437\u0440\u0430\u0447\u043d\u043e\u0441\u0442\u044c \u0448\u0440\u0438\u0444\u0442\u0430",YTP_BACKGROUND_COLOR:"\u0426\u0432\u0435\u0442 \u0444\u043e\u043d\u0430",YTP_BACKGROUND_OPACITY:"\u041f\u0440\u043e\u0437\u0440\u0430\u0447\u043d\u043e\u0441\u0442\u044c \u0444\u043e\u043d\u0430",
YTP_WINDOW_COLOR:"\u0426\u0432\u0435\u0442 \u043e\u043a\u043d\u0430",YTP_WINDOW_OPACITY:"\u041f\u0440\u043e\u0437\u0440\u0430\u0447\u043d\u043e\u0441\u0442\u044c \u043e\u043a\u043d\u0430",YTP_COLOR_WHITE:"\u0411\u0435\u043b\u044b\u0439",YTP_COLOR_YELLOW:"\u0416\u0435\u043b\u0442\u044b\u0439",YTP_COLOR_GREEN:"\u0417\u0435\u043b\u0435\u043d\u044b\u0439",YTP_COLOR_CYAN:"\u0413\u043e\u043b\u0443\u0431\u043e\u0439",YTP_COLOR_BLUE:"\u0421\u0438\u043d\u0438\u0439",YTP_COLOR_MAGENTA:"\u041f\u0443\u0440\u043f\u0443\u0440\u043d\u044b\u0439",
YTP_COLOR_RED:"\u041a\u0440\u0430\u0441\u043d\u044b\u0439",YTP_COLOR_BLACK:"\u0427\u0435\u0440\u043d\u044b\u0439",YTP_FONT_FAMILY_MONO_SERIF:"\u041c\u043e\u043d\u043e\u0448\u0438\u0440\u0438\u043d\u043d\u044b\u0439 \u0441 \u0437\u0430\u0441\u0435\u0447\u043a\u0430\u043c\u0438",YTP_FONT_FAMILY_PROP_SERIF:"\u041f\u0440\u043e\u043f\u043e\u0440\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u044b\u0439 \u0441 \u0437\u0430\u0441\u0435\u0447\u043a\u0430\u043c\u0438",YTP_FONT_FAMILY_MONO_SANS:"\u041c\u043e\u043d\u043e\u0448\u0438\u0440\u0438\u043d\u043d\u044b\u0439 \u0431\u0435\u0437 \u0437\u0430\u0441\u0435\u0447\u0435\u043a",
YTP_FONT_FAMILY_PROP_SANS:"\u041f\u0440\u043e\u043f\u043e\u0440\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u044b\u0439 \u0431\u0435\u0437 \u0437\u0430\u0441\u0435\u0447\u0435\u043a",YTP_FONT_FAMILY_CASUAL:"\u041e\u0431\u044b\u0447\u043d\u044b\u0439",YTP_FONT_FAMILY_CURSIVE:"\u041a\u0443\u0440\u0441\u0438\u0432",YTP_FONT_FAMILY_SMALL_CAPS:"\u041c\u0430\u043b\u044b\u0435 \u043f\u0440\u043e\u043f\u0438\u0441\u043d\u044b\u0435",YTP_CHAR_EDGE_STYLE:"\u0421\u0442\u0438\u043b\u044c \u043a\u043e\u043d\u0442\u0443\u0440\u0430 \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432",
YTP_EDGE_STYLE_NONE:"\u0411\u0435\u0437 \u043a\u043e\u043d\u0442\u0443\u0440\u0430",YTP_EDGE_STYLE_RAISED:"\u041f\u0440\u0438\u043f\u043e\u0434\u043d\u044f\u0442\u044b\u0439",YTP_EDGE_STYLE_DEPRESSED:"\u0423\u0442\u043e\u043f\u043b\u0435\u043d\u043d\u044b\u0439",YTP_EDGE_STYLE_OUTLINE:"\u0413\u0440\u0430\u043d\u0438\u0446\u044b",YTP_EDGE_STYLE_DROP_SHADOW:"\u0421 \u0442\u0435\u043d\u044c\u044e",YTP_CLICK_FOR_SETTINGS:"\u0414\u043b\u044f \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u043d\u0430\u0436\u043c\u0438\u0442\u0435 \u043d\u0430 \u0437\u043d\u0430\u0447\u043e\u043a $GEAR_ICON"})};
gz=function(a){a=a.split("");fz.j2(a,43);fz.jX(a,3);fz.qB(a,63);fz.j2(a,65);return a.join("")};
hz=function(a,b,c){this.g=a||0;this.b=b||0;this.o=c};
jz=function(a,b,c){return new hz(iz[a]||0,iz[b]||0,c)};
kz=function(a){var b=iz.auto;return a.g==b&&a.b==b};
mz=function(a,b){if(b.o&&kz(b))return lz;if(b.o||kz(a))return b;if(a.o||kz(b))return a;var c=a.g&&b.g?Math.max(a.g,b.g):a.g||b.g,d=a.b&&b.b?Math.min(a.b,b.b):a.b||b.b,c=Math.min(c,d);return c==a.g&&d==a.b?a:new hz(c,d,!1)};
nz=function(a){var b=a.b||a.g;return bc(xaa,function(a){return iz[a]==b})||"auto"};
oz=function(){pk.call(this);this.b={}};
pz=function(a,b,c){if(!a.b[b]&&(c.sf||c.Og)){var d=a.b,e=c;Object.isFrozen&&!Object.isFrozen(c)&&(e=Object.create(c),Object.freeze(e));d[b]=e;a.X("vast_info_card_add",b)}};
qz=function(){var a=q("yt.player.utils.videoElement_");a||(a=window.document.createElement("video"),g.ba("yt.player.utils.videoElement_",a,void 0));return a};
rz=function(a){var b=qz();try{if(b.canPlayType){a=a?yaa:zaa;for(var c=0;c<a.length;c++)if(b.canPlayType(a[c]))return null}return"fmt.noneavailable"}catch(d){return"html5.missingapi"}};
sz=function(a){a=K("DIV",{"class":a});window.document.body.appendChild(a);var b="none"==Js(a,"display");If(a);return b};
tz=function(a,b){return void 0==b?a:"1"==b?!0:!1};
uz=function(a,b,c){for(var d in c)if(c[d]==b)return c[d];return a};
vz=function(a,b){return void 0==b?a:Number(b)};
wz=function(a,b){return void 0==b?a:b.toString()};
xz=function(a){if(a&&(a=a.match(Aaa))){var b=(0,window.parseFloat)(a[2]);if(0<b)return(0,window.parseFloat)(a[1])/b}return window.NaN};
yz=function(a,b){var c=iz.auto,d=iz[b];return d>iz.medium?new hz(d,c,!1):d>=c?new hz(c,d,!1):a};
zz=function(a){return a.docid||a.video_id||a.videoId||a.id};
Az=function(a,b){this.g=a;this.b=b};
Fz=function(){try{var a=q("yt.www.ads.biscotti.getId_"),b;if(a)b=a();else{if(!Bz){var c=x(Cz,aa,2);Bz=uu("//googleads.g.doubleclick.net/pagead/id",Dz).then(Ez,c)}b=Bz}return b}catch(d){return Jd(d)}};
Ez=function(a){a=a.responseText;if(!ta(a,")]}'"))return Gz(""),Bz=new Az(""),"";a=JSON.parse(a.substr(4)).id;Gz(a);Bz=new Az(a);Hz(18E5,2);return a};
Cz=function(a){var b=Error("Unable to load /pagead/id");Gz("");Bz=new Az(void 0,b);0<a&&Hz(12E4,a-1);throw b;};
Hz=function(a,b){Ti(function(){var a=x(Cz,aa,b);Td(uu("//googleads.g.doubleclick.net/pagead/id",Dz).then(Ez,a),r)},a)};
Gz=function(a){g.ba("yt.www.ads.biscotti.lastId_",a,void 0)};
Jz=function(a,b){this.experimentIds=a?a.split(","):[];this.flags=Mj(b||"","&");var c={};F(this.experimentIds,function(a){c[a]=!0});
this.experiments=c;this.B=!!c["9405409"];this.C=!!c["9416855"];this.A=!!c["9406692"];this.o=!!c["9406693"]||!!c["9417210"]&&Iz&&zc(8);this.Hy=!0;this.enableAudioCast=!!c["9408394"];this.g=!!c["9414740"];this.D=!!c["9407182"]};
Kz=function(a){this.languageCode=a.languageCode;this.languageName=a.languageName||null;this.b=a.languageOriginal||null;this.id=a.id||null;this.isDefault=a.is_default||!1};
Lz=function(a){a=a||{};this.J=a.formats||"";this.A=a.format||1;if(1==this.A)for(var b=this.J.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.g=a.languageCode||"";this.C=a.languageName;this.o=a.kind||"";this.B=a.name;this.wa=a.id;this.K=a.is_servable;this.isDefault=a.is_default;this.F=a.is_translateable;this.G=a.url||null;this.D=a.vss_id||"";this.b=null;a.translationLanguage&&(this.b=new Kz(a.translationLanguage))};
Nz=function(a){var b={format:a.A,languageCode:a.g,languageName:a.C,displayName:Mz(a),kind:a.o,name:a.B,id:a.wa,is_servable:a.K,is_default:a.isDefault,is_translateable:a.F,vss_id:a.D};a.b&&(a=a.b,b.translationLanguage={languageCode:a.languageCode,languageName:a.languageName,languageOriginal:a.b,id:a.id,is_default:a.isDefault});return b};
Mz=function(a){var b=a.C||"",c=[b];"asr"==a.o&&-1==b.indexOf("(")&&c.push(" (",N("YTP_ASR_SETTINGS_LABEL"),")");a.B&&c.push(" - ",a.B);a.b&&c.push(" >> ",a.b.languageName);return c.join("")};
Baa=function(a,b){var c=new Lz;c.g=a.g;c.C=a.C;c.B=a.B;c.o=a.o;c.isDefault=!1;c.F=a.F;c.D=a.D;c.G=a.G;c.b=b;return c};
Oz=function(a,b){this.id=a;this.Vb=b;this.captionTracks=[];this.Qi=this.rl=null;this.up=0};
Pz=function(a,b,c){this.videoInfos=a;this.b=b||null;this.audioTracks=[];this.g=c||null;if(this.b){var d={};F(this.b,x(function(a){if(a.Vb&&!d[a.id]){var b=new Oz(a.id,a.Vb);d[a.id]=b;this.audioTracks.push(b)}},this))}};
Qz=function(a){return(a=a.exec(sc))?a[1]:""};
Rz=function(a){return 0<=Ra(Caa,a)};
Sz=function(){};
Tz=function(){this.buffered=new Sz};
Uz=function(a,b){this.A=a;this.b=!!b;this.o=!1;this.g={}};
Vz=function(a){return a.b?a.A:Ug(a.A,a.g)};
Wz=function(a,b){return null!=b&&Vz(b)==Vz(a)};
Xz=function(a,b){this.g=a;this.o=b;this.A=0;Object.defineProperty(this,"timestampOffset",{get:this.JG,set:this.NG});Object.defineProperty(this,"buffered",{get:this.HG})};
Daa=function(){this.length=0};
Yz=function(a){this.activeSourceBuffers=this.sourceBuffers=[];this.b=a;this.g=window.NaN;this.o=0;Object.defineProperty(this,"duration",{get:this.IG,set:this.MG});Object.defineProperty(this,"readyState",{get:this.KG});this.b.addEventListener("webkitsourceclose",x(this.LG,this),!0)};
Zz=function(a,b,c,d,e){Fx.call(this);this.g=this.b=null;this.A=b;this.o=window.MediaSource?new window.MediaSource:window.WebKitMediaSource?new window.WebKitMediaSource:new Yz(a);this.C=this.B=this.D=null;this.F=d;this.J=c;this.L=e;Gx(this,this.o,["sourceopen","webkitsourceopen"],this.H);Gx(this,this.o,["sourceclose","webkitsourceclose"],this.G)};
Eaa=function(a,b){a.B=b};
Faa=function(a,b){a.C=b};
Gaa=function(a){if(!a.D){var b;b=a.o;b=b.aJ?b.b.webkitMediaSourceURL:window.URL.createObjectURL(b);a.D=new Uz(b,!0)}return a.D};
aA=function(a,b){$z(a)?a.o.duration=b:a.A=b};
$z=function(a){try{return"open"==a.o.readyState}catch(b){return!1}};
bA=function(a){try{return"closed"==a.o.readyState}catch(b){return!0}};
cA=function(a){return a.b.updating||a.g.updating};
dA=function(){return!(!window.MediaSource||!window.MediaSource.isTypeSupported)};
eA=function(a){return a.b?!!a.b.appendBuffer:dA()};
fA=function(a){if(/opus/.test(a)&&(bm&&!Rz("38")||Qp()))return!1;if(window.MediaSource&&window.MediaSource.isTypeSupported)return window.MediaSource.isTypeSupported(a);if(/webm/.test(a)&&!Op())return!1;'audio/mp4; codecs="mp4a.40.2"'==a&&(a='video/mp4; codecs="avc1.4d401f"');return!!qz().canPlayType(a)};
gA=function(a){this.Sc=a};
Haa=function(a,b,c){this.A=a;this.g=b;this.B=c;this.o={};this.b=window.cast&&window.cast.__platform__&&window.cast.__platform__.queryPlatformValue&&window.cast.__platform__.queryPlatformValue("max-video-resolution-vpx")||null};
kA=function(a,b){if(2.2!=hA&&rz(a.g))return[];for(var c={},d=qz(),e=0;e<b.length;e++){var f=b[e];if(Fu(f.Sc)in Iaa||"5"==Fu(f.Sc)?0:iA(d,f.Sc.mimeType)){var k=f.Sc.video.quality;c[k]&&2!=c[k].Sc.g||(c[k]=f)}}var l=[];c.auto&&l.push(c.auto);F(jA,function(a){(f=c[a])&&l.push(f)});
return l};
iA=function(a,b){var c=a.canPlayType(b);lA?c=c||Jaa[b]:2.2==hA?c=c||Kaa[b]:Lp()&&(c=c||Laa[b]);return!!c};
nA=function(){return!(!iA(qz(),"application/x-mpegURL")&&!mA())};
mA=function(){var a=Lp()&&!Rz(29),b=Kp("google tv")&&Kp("chrome")&&!Rz(30);return a||b?!1:!!(window.MediaSource||window.WebKitMediaSource||window.HTMLMediaElement&&window.HTMLMediaElement.prototype.webkitSourceAddId)};
wA=function(a,b){var c={},d;for(d in b.b){var e=b.b[d],f;if(f="304"!=Fu(e.info)||b.o)a:{f=a;var k=e.info;if("0"!=Fu(k)||f.g){var l=k.mimeType,m={};k.video&&(k.video.width&&(m[oA.name]=k.video.width),k.video.height&&(m[pA.name]=k.video.height),k.video.fps&&(m[qA.name]=k.video.fps),k.video.b&&(m[rA.name]=k.video.b),k.b&&(m[sA.name]=8*k.b));k.audio&&k.audio.b&&(m[tA.name]=k.audio.b);k=m;m=void 0;for(m in uA){var n=uA[m];if(k[n.name]&&vA(f,n))if(f.b){if(f.b[n.name]<k[n.name]){f=!1;break a}}else l=l+"; "+
n.name+"="+k[n.name]}f=fA(l)}else f=!0}f&&(c[e.info.o]=c[e.info.o]||[],c[e.info.o].push(e.info))}return c};
Maa=function(a,b,c){var d={},e;Pb(b,function(a,b){var l=a.filter(function(a){return a.hf?c&&a.hf[c.b]&&c.A[a.mimeType]?"261"==Fu(a)?(e||(e=qz()),!1):!0:!1:!0},this);
l.length&&(d[b]=l)},a);
return d};
EA=function(a,b,c,d,e){function f(a){return!!k[a]}
var k=wA(a,b);xA(b)&&(k=Maa(a,k,c));var l=Naa;a.g?!Kp("windows nt 5.1")||yA&&!a.A.Z("html5_prefer_h264_on_xp")||(l=zA):l=Oaa;c=Paa;d&&(a.g&&(l=zA),c=Qaa);a.A.Z("html5_enable_aac_51_clear")&&(Np()||Op()||vA(a,tA))&&(c=Raa);(AA(b)||BA(b))&&e&&(c=Saa.concat(c));b=cb(l,f);d=cb(c,f);if(!b||!d)return null;"9"==b&&k.h&&(e=function(a,b){return Math.max(a,b.video.height)},c=cf(k["9"],e,0),cf(k.h,e,0)>1.5*c&&(b="h"));
e=k[b];c=k[d];e=CA(a,e);DA(e,c);return new Pz(e,c,Taa(a,k,b,d))};
Taa=function(a,b,c,d){var e=b.h;b=b.a;return e&&b&&("h"!=c||"a"!=d)?(e=CA(a,e),DA(e,b),new Pz(e,b)):null};
DA=function(a,b){Cb(a,function(a,b){return b.video.width-a.video.width||b.b-a.b});
Cb(b,function(a,b){return b.b-a.b})};
CA=function(a,b){var c=Th(b,function(a){return 32<a.video.fps});
c&&(b=a.B||vA(a,qA)?le(b,function(a){var b;(b=32<a.video.fps)||(a=a.video,b=!(854<a.width||480<a.height));return b}):le(b,function(a){return!(32<a.video.fps)}));
c&&Np()&&(b=le(b,function(a){return"299"!=Fu(a)}));
return b};
vA=function(a,b){if(!(b.name in a.o)){var c=a.o,d=b.name,e;a.b?e=!!a.b[b.name]:(b.video?(e='video/webm; codecs="vp9"',fA(e)||(e='video/mp4; codecs="avc1.4d401e"')):(e='audio/webm; codecs="opus"',fA(e)||(e='audio/mp4; codecs="mp4a.40.2"')),e=fA(e+"; "+b.name+"="+b.valid)&&!fA(e+"; "+b.name+"="+b.xg));c[d]=e}return a.o[b.name]};
QA=function(a){G.call(this);a=hc(a);this.b="detailpage";this.Em=this.Oa=this.L=!1;this.J={};this.experiments=new Jz(a.fexp,a.fflags);this.forcedExperiments=a.forced_experiments||null;var b;try{b=window.document.location.toString()}catch(e){b=""}this.Ga=b;this.H=(this.D=Uaa.test(this.Ga))?wz("",a.loaderUrl):this.Ga;this.Ra=Hp(this.H);this.ba=(this.dh=(this.oc=tz(!1,a.ssl_stream))||tz(!1,a.ssl))?"https":"http";this.baseYtUrl=Ep(a.BASE_YT_URL)||Ep(this.Ga)||this.ba+"://www.youtube.com/";"adunit"==a.el?
FA.test(this.H)?this.b="adunit":this.b="embedded":"embedded"==a.el||this.Ra?this.b=uz(this.b,a.el,Vaa):a.el&&(this.b="embedded");hr();b=null;var c=a.ps,d=gb(GA,c);!c||d&&!this.Ra||(b=c);this.g=b;this.F=(this.Ub=gb(GA,this.g))&&"play"!=this.g;this.Tb=!this.F;this.o={};this.o.c=a.c||"web";this.o.cver=a.cver||"html5";this.o.cplayer="UNIPLAYER";this.ga=!(!qz().defaultPlaybackRate||Dc&&!Kp("chrome")||HA||IA||Kp("android")||Kp("silk"));this.isMobile=tz("blazer"==this.g,a.is_html5_mobile_device);this.useMediaVolume=
"3"==this.A||this.isMobile||tz(!1,a.use_media_volume);if(b=!this.useMediaVolume)b=qz(),c=b.muted,b.muted=!c,b=b.muted!=c;this.$=b;this.Ie=JA;this.Wa=tz("adunit"!=this.b&&"detailpage"!=this.b&&!this.Ub,a.showinfo);this.nc=tz(!1,a.playsinline);b=this.isMobile&&KA&&2.3>=hA;c=LA(this)||!b&&tz("native"==this.g,a.use_native_controls)?"3":"1";this.A="0"!=a.controls?c:"0";this.useTabletControls=this.isMobile;this.color=uz("red",a.color,Waa);this.Ee="3"==this.A||tz(!1,a.modestbranding)&&"red"==this.color;
tz(!1,a.nologo)&&(c=this.H,Xaa.test(c),Hp(c));this.ca=0==this.H.indexOf(this.baseYtUrl);this.Cd=(c=!this.ca&&"detailpage"!=this.b&&!this.F&&!this.Ub)&&!this.Ee&&"1"==this.A;this.Ed="embedded"==this.b&&c&&!this.Wa&&!this.Cd;this.pf=this.Fe=b;this.R=IA?!1:!0;this.Be=this.D||!1;this.da="detailpage"==this.b?"":(this.H||a.post_message_origin||"").substring(0,128);this.widgetReferrer=wz("",a.widget_referrer);b=this.experiments.Z("legacy_cast2")||tz(!0,a.enablecastapi)||!this.Ra;this.B=!a.disableCast&&b&&
"1"==this.A&&!this.isMobile&&("detailpage"==this.b||"embedded"==this.b||"profilepage"==this.b);this.yb=(this.aa=tz(!1,a.autoplay))||"detailpage"==this.b;this.ab=!this.isMobile&&!Rp()&&!Kp("nintendo 3ds")||tz(!1,a.autoplayoverride);b=("detailpage"==this.b||"adunit"==this.b)&&("blazer"==this.g||"mweb-polymer"==this.g);this.Na=!tz(!0,a.fs);this.Ca=!this.Na&&(b||Yh());this.Dd=tz(!this.Ub,a.rel);this.mf="adunit"!=this.b;this.ha="profilepage"==this.b;this.Sa="blazer"==this.g||"mweb-polymer"==this.g;switch(this.g){case "blogger":b=
"bl";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.ia=b;this.Ob=wz("",a.authuser);this.nf=!!this.Ob&&tz(!this.F,a.showwatchlater);this.Lb=tz(!1,a.disablekb);this.experiments.Z("mweb_autonav")&&MA();this.pageId=wz("",a.pageid);this.Ge=yz(lz,a.vq);this.He=wz("",a.playerapiid);this.Ke=tz(!0,a.canplaylive);this.Ae=tz(this.Ub,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 hf(b,c))):b=null;this.Gd=b;this.mute=this.Ra&&tz(!1,a.mute);this.storeUserVolume=!this.mute&&tz("0"!=this.A,a.store_user_volume);this.Je=tz(!1,a.retryneterr)&&this.Ra;this.be="3"==this.A?3:uz(void 0,a.iv_load_policy,NA);this.Aa=tz(!1,a.iv_allow_in_place_switch);this.sb=wz("",a.cc_lang_pref);this.ma=uz(void 0,a.cc_load_policy,NA);this.ua=void 0==a.content_v?void 0:a.content_v.toString();
this.Ce=void 0==a.framer?void 0:a.framer.toString();this.qa=wz("en_US",a.hl);this.region=wz("US",a.cr);this.hostLanguage=wz("en",a.host_language);this.bc=tz(!1,a.privembed);this.Cc="";this.Ja=new yk;this.C=tz(!0,a.deviceHasDisplay);this.tb=vz(this.tb,a.ismb);OA(this,a);this.J=a;this.G=new oz;this.N=this.isMobile;b=a;b.innertube_api_key&&b.innertube_api_version&&this.o.c&&b.innertube_context_client_version&&this.hostLanguage&&this.region||this.experiments.Z("disable_innertube_config_reporting")||Xi(Error("MISSING_INNERTUBE_CONFIG,api_key="+
b.innertube_api_key+",api_version="+b.innertube_api_version+",interface="+this.o.c+",context_client_version="+b.innertube_context_client_version+",host_language="+this.hostLanguage+",region="+this.region));this.De={apiaryHost:wz("",b.apiary_host),ip:wz("",b.apiary_host_firstparty),gapiHintOverride:tz(!1,b.gapi_hint_override),gapiHintParams:wz("",b.gapi_hint_params),innertubeApiKey:wz("",b.innertube_api_key),innertubeApiVersion:wz("",b.innertube_api_version),zm:this.o.c,innertubeContextClientVersion:wz("",
b.innertube_context_client_version),Bm:this.hostLanguage,Am:this.region};this.Dc=void 0!=window.WebKitPlaybackTargetAvailabilityEvent;this.K=new Haa(this.experiments,this.C,PA(this)||Np()||Op());this.enableSafetyMode=tz(!1,a.enable_safety_mode);this.xb="detailpage"==this.b&&"blazer"!=this.g&&"mweb-polymer"!=this.g};
RA=function(a,b){a.Db=b.get("d",a.Db);a.Xa=b.get("f",a.Xa)};
OA=function(a,b){a.adFormat=void 0;var c;(c=b.adformat)||(c=(c=b.attrib)&&$b(SA,c)&&$b(TA,c)?TA[c]+"_"+SA[c]:void 0);if(c){var d=c.match(/^(\d*)_((\d*)_?(\d*))$/);if(d&&5==d.length){var e=d[3],d=!(1==d[1]&&8==e)&&(7==e||8==e||10==e);if(a.D||a.Ra||d)a.adFormat=c,a.J.adformat=b.adformat,d||(a.b="adunit")}}if(c=b.video_id&&b.video_id!=a.Cc)a.Cc=b.video_id;(b.adpings||c)&&b.adpings&&Oj(b.adpings);a.Tb?(d=b.videostats_playback_base_url&&b.videostats_playback_base_url.split("/")[2]||"s.youtube.com",a.experiments.D&&
"s.youtube.com"==d&&(d="www.youtube.com")):d="video.google.com";a.Hd=d;a.Fd="//"+a.Hd+"/api/stats/qoe";if(b.feature||c)d=b.feature,a.ce=d,a.J.feature=d;if(b.referrer||c)d=b.referrer,a.referrer=d,a.J.referrer=d;if(b.q||c)a.searchQuery=b.q;for(var f in UA)c=UA[f],d=b[c],void 0!=d&&(a.o[c]=d);!a.na&&b.cl&&(a.na=+b.cl);a.userAge=vz(a.userAge,b.user_age);a.userDisplayImage=wz(a.userDisplayImage,b.user_display_image);VA.test(a.userDisplayImage)||(a.userDisplayImage="");a.userDisplayName=wz(a.userDisplayName,
b.user_display_name);a.userGender=wz(a.userGender,b.user_gender);a.ea=wz(a.ea,b.eventid);a.ea&&(br=a.ea);a.csiPageType=wz(a.csiPageType,b.csi_page_type);a.Ha=wz(a.Ha,b.csi_service_name);a.Sa=tz(a.Sa,b.enablecsi);b.enabled_engage_types&&(a.Ja=new yk(b.enabled_engage_types.split(",")));a.Aa=tz(a.Aa,b.iv_allow_in_place_switch)};
Nu=function(a,b,c){return b.J&&(a.experiments.Z("legacy_autoplay_flag")||"detailpage"!=a.b||c||b.Dc)};
WA=function(a,b,c){b={video_id:b,html5:1,page_subscribe:c?1:0};a.Ob&&(b.authuser=a.Ob);a.pageId&&(b.pageid=a.pageId);return Ug(a.baseYtUrl+"get_video_metadata",b)};
XA=function(a){var b=Lg(a.baseYtUrl);(a=Mg(a.baseYtUrl))&&(b+=":"+a);return"www.youtube-nocookie.com"==b?"www.youtube.com":b};
YA=function(a){return"gaming"==a.g?"gaming.youtube.com":XA(a)};
ZA=function(a,b,c){return a.ba+"://i1.ytimg.com/vi/"+b+"/"+(c||"hqdefault.jpg")};
xr=function(a){return"detailpage"==a.b&&"gaming"!=a.g};
LA=function(a){return IA&&!a.nc||Rp()||Kp("nintendo 3ds")?!0:!1};
$A=function(a){return Qp()||"TV"==a.o.cplatform};
PA=function(a){return"web"==a.o.c.toLowerCase().substr(0,3)};
MA=function(){q("yt.mobile.blazer.blazer_config.isMobilePersistentUniplayer");return!1};
bB=function(a){return a.C&&bm&&!aB&&!lA};
dB=function(a){return bB(a)||a.C&&yA&&!aB&&zc(38)||a.C&&Dc&&!aB&&zc(27)||a.C&&cB&&!Sp()&&zc(11)};
Yaa=function(a){return!a.experiments.Z("html5_stream_ambisonic_audio")||!dB(a)||yA&&!zc(47)?!1:window.AudioContext||window.webkitAudioContext?!0:!1};
eB=function(a){this.o=[];this.G=!1;this.A=a;this.C=[];this.D=[];R.call(this,{I:"div",W:"caption-window",U:{id:"caption-window-"+a.id},P:[{I:"span",W:"captions-text",U:{tabindex:0,"aria-live":"assertive"}}]});this.B=this.pa["captions-text"];this.$=null!=this.B.style["box-decoration-break"]||null!=this.B.style["-webkit-box-decoration-break"];this.type=this.J=this.F=0;this.b=null};
fB=function(a){var b=1+.25*(a.fg||0);if(0==a.offset||2==a.offset)b*=.8;return b};
gB=function(a,b){var c={};if(null!=b.fd||b.background){var d=null!=b.fd?b.fd:a.b.Ka.fd,e=Cw(b.background?b.background:a.b.Ka.background);c.background="rgba("+e[0]+","+e[1]+","+e[2]+","+d+")";a.$&&(c["box-decoration-break"]="clone",c["border-radius"]=a.F/8+"px")}if(null!=b.fg||null!=b.offset)c["font-size"]=a.J*fB(b)+"px",c["line-height"]="1.32em";d=1;if(b.color||null!=b.Xe)e=Cw(b.color||a.b.Ka.color),d=null==b.Xe?a.b.Ka.Xe:b.Xe,e="rgba("+e[0]+","+e[1]+","+e[2]+","+d+")",c.color=e,c.fill=e;if(null!=
b.fe&&0!=b.fe){e="rgba(34, 34, 34, "+d+")";d="rgba(204, 204, 204, "+d+")";b.Ap&&(d=e=b.Ap);var f;switch(b.fe){case 4:f="2px 2px 3px "+e+", 2px 2px 4px "+e+", 2px 2px 5px "+e;break;case 1:f="1px 1px "+e+", 2px 2px "+e+", 3px 3px "+e;break;case 2:f="1px 1px "+d+", 0 1px "+d+", -1px -1px "+e+", 0 -1px "+e;break;case 3:f="0 0 4px "+e+", 0 0 4px "+e+", 0 0 4px "+e+", 0 0 4px "+e}c["text-shadow"]=f}f="";switch(b.fontFamily){case 1:f='"Courier New", Courier, "Nimbus Mono L", "Cutive Mono", monospace';break;
case 2:f='"Times New Roman", Times, Georgia, Cambria, "PT Serif Caption", serif';break;case 3:f='"Deja Vu Sans Mono", "Lucida Console", Monaco, Consolas, "PT Mono", monospace';break;case 5:f='"Comic Sans MS", Impact, Handlee, fantasy';break;case 6:f='"Monotype Corsiva", "URW Chancery L", "Apple Chancery", "Dancing Script", cursive';break;case 7:f=Mp()&&Np()?"sans-serif-smallcaps":'"Arial Unicode Ms", Arial, Helvetica, Verdana, "Marcellus SC", sans-serif';break;case 0:case 4:f='Roboto, "Arial Unicode Ms", Arial, Helvetica, Verdana, "PT Sans Caption", sans-serif'}f&&
(c["font-family"]=f);f=b.offset;null==f&&(f=a.b.Ka.offset);switch(f){case 0:c["vertical-align"]="sub";break;case 2:c["vertical-align"]="super"}7==b.fontFamily&&(c["font-variant"]="small-caps");b.bold&&(c["font-weight"]="bold");b.Fm&&(c["font-style"]="italic");b.mn&&(c["text-decoration"]="underline");b.Yl&&(c.visibility="hidden");return c};
hB=function(a){for(var b=1,c=0;c<a.length;c++){var d=a[c];w(d.text)&&(b+=d.text.split("\n").length-1,d.C||0==c||b++)}return b};
iB=function(a,b,c,d){a.G=d||a.G;var e,f=a.C[0];if(f&&c.background==f.background&&c.fd==f.fd&&!!c.Yl==!!f.Yl&&c.fe==f.fe){for(d=0;d<a.C.length;d++)if(gc(c,a.C[d])){e=a.D[d];break}if(!e){d={};for(var k in c)c[k]!=f[k]&&(d[k]=c[k]);e=window.document.createElement("span");Gs(e,gB(a,d));a.D[0].appendChild(e);d=1}a.D.length=d;a.C.length=d}else a.D.length=0,a.C.length=0,e=window.document.createElement("span"),Gs(e,gB(a,c)),a.B.appendChild(e);if(w(b.text)){k=b.text.split("\n");f=a.A.Wf.length;for(d=0;d<k.length;d++){var l=
0<d||0==a.o.length||!b.C,m=!f||a.o.length+1>=f||d+1<k.length;!l||0==a.o.length&&0==d||e.appendChild(window.document.createElement("br"));k[d]?(l&&e.appendChild(window.document.createTextNode("\u00a0")),e.appendChild(window.document.createTextNode(k[d])),m&&e.appendChild(window.document.createTextNode("\u00a0"))):l!=m&&e.appendChild(window.document.createTextNode("\u00a0"))}a.C.push(c);a.D.push(e);a.o.push(b)}else e.appendChild(b.text)};
jB=function(a){a.G=!1;a.o=[];a.C=[];a.D=[];Gf(a.B)};
Zaa=function(){this.o=[];this.b=[];this.g=-1};
kB=function(a,b){return b?a.b.concat(a.o):a.b};
mB=function(a,b){switch(b.o){case "asr":lB(b,a.o);break;default:if(b.isDefault||0>a.g)a.g=a.b.length;lB(b,a.b)}};
lB=function(a,b){cb(b,x(a.H,a))||b.push(a)};
$aa=function(a,b){var c=ab(a.b,x(b.H,b));-1!=c&&(a.g=c)};
nB=function(a){this.$q=!!a;this.b=new Zaa;this.B=[]};
aba=function(a,b){return cb(kB(a.b,!0),function(a){return a.toString()==b})};
oB=function(a){nB.call(this,a.Tb);this.g=null;this.A=void 0;this.o=null;this.B=a.captionTranslationLanguages};
bba=function(){this.qa=this.gb=!1;this.ca=1;this.o=20971520;this.B=8388608;this.b=window.NaN;this.L=3145728;this.N=62914560;this.$=10485760;this.ba=window.NaN;this.Ha=2;this.Aa=25;this.C=2097152;this.H=!1;this.F=1800;this.ea=2;this.g=1.15;this.A=1.05;this.ua=!0;this.liveChunkReadahead=3;this.Wa=Kp("xboxone")||Pp()||Lp();this.K=25;this.aa=!1;this.Sa=bm&&!0;this.Xa=!0;this.ha=this.Oa=this.G=!1;this.Ga=.8;this.ia=this.na=this.Ja=!1;this.da=15;this.ga=10;this.La=1.25;this.D=this.Ca=!1;this.J=0;this.R=
this.ma=!1;this.Na=!0};
cba=function(a,b){1080<b&&!a.gb&&(a.o=36700160,a.B=5242880,a.L=10485760,a.C=4194304,a.gb=!0);2160<b&&!a.qa&&(a.o=104857600,a.qa=!0)};
pB=function(){this.ra=[]};
qB=function(a,b){G.call(this);this.F=b;this.D=new pB;this.o=!0;this.G=this.A=this.B=this.C=this.b=null;this.g=window.NaN};
dba=function(a,b){a.C=b};
rB=function(a){var b;if(b=!a.o&&null!==a.b)b=a.b,b=b.b.Yg(b);return b&&!a.A&&!(a.b&&30<a.b.startTime-a.F.getCurrentTime())};
vB=function(a){a.isDisposed();var b;b=a.b;b=b.b.kk(b);if(!a.D.contains(b.b[0].A)){var c=sB(uB(b));a.A=bk(c,{format:"RAW",Ac:x(a.H,a),withCredentials:!0});a.B=b;var c=a.D,d=a.B.b[0].A,e=Ab(c.ra,d);0<=e||0>e&&1==(-e-1)%2||(e=-e-1,0<e&&1==d-c.ra[e-1]&&e<c.ra.length&&1==c.ra[e]-d?(ob(c.ra,e),ob(c.ra,e-1)):0<e&&1==d-c.ra[e-1]?c.ra[e-1]=d:e<c.ra.length&&1==c.ra[e]-d?c.ra[e]=d:(vb(c.ra,e,0,d),vb(c.ra,e+1,0,d)))}a.b=$a(b.b)};
eba=function(a){a.g=Ui(x(function(){rB(this)&&vB(this)},a),1E3);
rB(a)&&vB(a)};
wB=function(a,b){nB.call(this);this.o=a;this.g=new qB(0,b)};
xB=function(a){eB.call(this,a);this.type=1};
yB=function(a){eB.call(this,a);I(this.element,"ytp-caption-window-rollup");this.type=2;this.H=0;this.K=window.NaN;this.L=null;this.R=this.N=void 0;this.ba=new ge(this.zE,433,this);H(this,this.ba)};
zB=function(a,b,c,d,e,f,k){bq.call(this,a,a+b,{priority:c});this.o=d;this.text=e;this.C=f||!1;this.g=k||null};
AB=function(a,b,c,d,e){bq.call(this,a,a+b,{priority:c});this.id=d;this.params=e;this.Wf=[]};
BB=function(a){return new AB(0,0x8000000000000,0,"0",a||{})};
CB=function(a,b,c,d){nB.call(this,d);c||(c=Qj(a).hl||"",c=c.split("_").join("-"));this.o=Sj(a,{hl:c});this.A=b;this.C={};this.g=null};
DB=function(){this.b=[];this.g=[]};
FB=function(a){DB.call(this);this.g.push(BB());a=a.firstChild.childNodes;for(var b=0,c=a.length;b<c;b++)EB(a[b],this.b)};
EB=function(a,b){var c=a.getAttribute("t"),c=c?(0,window.parseInt)(c,10):1E3*(0,window.parseFloat)(a.getAttribute("start")||0),d=a.getAttribute("d"),d=d?(0,window.parseFloat)(d):1E3*(0,window.parseFloat)(a.getAttribute("dur")||0),e=a.getAttribute("w")||"0",f=!!a.getAttribute("append"),k=f?6:5,l=As("<html>"+(a.firstChild&&a.firstChild.nodeValue||"")+"</html>");GB(c,d,k,e,f,l.firstChild,{},b)};
GB=function(a,b,c,d,e,f,k,l){switch(f.tagName){case "b":k.bold=!0;break;case "i":k.Fm=!0;break;case "u":k.mn=!0;break;case "font":var m=f.getAttribute("color");HB.test(m);k.color=m}for(m=0;m<f.childNodes.length;m++){var n=f.childNodes[m];if(3==n.nodeType)l.push(new zB(a,b,c,d,n.nodeValue,e||0<m,cc(k)?void 0:k));else{var t={};ra(t,k);GB(a,b,c,d,e||0<m,n,t,l)}}};
IB=function(a){DB.call(this);this.o={};for(a=a.firstChild.firstChild;a;){switch(a.tagName){case "window":var b=a,c=b.getAttribute("id");a:{var d=b,e=this.o[c];if(d.getAttribute("t")||d.getAttribute("start")){b=d.getAttribute("start")?1E3*(0,window.parseFloat)(d.getAttribute("start")):(0,window.parseInt)(d.getAttribute("t"),10);e&&(e.end>=b?e.end=b:e=null);switch(d.getAttribute("op")){case "kill":b=null;break a;case "define":e=null}e||(e=BB());var f={};e&&(ra(f,e.params),e=e.params.Ka)&&(f.Ka={},ra(f.Ka,
e));d.getAttribute("rc")&&(f.Eh=(0,window.parseInt)(d.getAttribute("rc"),10));d.getAttribute("cc")&&(f.Hp=(0,window.parseInt)(d.getAttribute("cc"),10));d.getAttribute("ap")&&(e=(0,window.parseInt)(d.getAttribute("ap"),10),f.yi=0>e||8<e?7:e);d.getAttribute("ah")&&(f.oj=(0,window.parseInt)(d.getAttribute("ah"),10));d.getAttribute("av")&&(f.Sj=(0,window.parseInt)(d.getAttribute("av"),10));d.getAttribute("vs")&&(f.isVisible=!!d.getAttribute("vs"));d.getAttribute("ju")&&(f.textAlign=(0,window.parseInt)(d.getAttribute("ju"),
10));d.getAttribute("pd")&&(f.Ng=1,0==(0,window.parseInt)(d.getAttribute("pd"),10)&&(f.Ng=0));d.getAttribute("bc")&&(f.Ka||(f.Ka={}),f.Ka.backgroundColor=d.getAttribute("bc"));d.getAttribute("bo")&&(f.Ka||(f.Ka={}),f.Ka.fd=(0,window.parseInt)(d.getAttribute("bo"),10)/100);d.getAttribute("fc")&&(f.Ka||(f.Ka={}),f.Ka.color=d.getAttribute("fc"));d.getAttribute("sd")&&(f.wG=(0,window.parseInt)(d.getAttribute("sd"),10));e=(0,window.parseInt)(d.getAttribute("d"),10)||1E3*(0,window.parseFloat)(d.getAttribute("dur"))||
0x8000000000000;d=d.getAttribute("id")||"0";b=new AB(b,e,0,d,f)}else b=null}this.o[c]=b;this.g.push(b);break;case "text":for(c=this.b.length,EB(a,this.b);c<this.b.length;c++)b=this.b[c],(f=this.o[b.o])&&f.Wf.push(b)}a=a.nextSibling}0==this.g.length&&this.g.push(BB())};
QB=function(a,b){DB.call(this);a.firstChild.getAttribute("format");this.o=!!b;for(var c={Cj:{},ju:{},ku:{}},d,e,f=a.firstChild.childNodes,k=0;k<f.length;k++){var l=f[k];switch(l.tagName){case "head":d=l;break;case "body":e=l}}if(d)for(d=d.childNodes,f=0;f<d.length;f++){var m=d[f];switch(m.tagName){case "pen":var l=m.getAttribute("id"),k=c.Cj,n=c,t=m,m={},u=t.getAttribute("p");u&&ra(m,n.Cj[u]);n=JB(t,"b");null!=n&&(m.bold=n);n=JB(t,"i");null!=n&&(m.Fm=n);n=JB(t,"u");null!=n&&(m.mn=n);n=KB(t,"et");
null!=n&&(m.fe=n);n=KB(t,"of");null!=n&&(m.offset=n);n=LB(t,"bc");null!=n&&(m.background=n);n=LB(t,"ec");null!=n&&(m.Ap=n);n=LB(t,"fc");null!=n&&(m.color=n);n=KB(t,"fs");void 0!=n&&0!=n&&(m.fontFamily=n);n=MB(t,"sz");void 0!=n&&(m.fg=n/100-1);n=MB(t,"bo");void 0!=n&&(m.fd=n/255);t=MB(t,"fo");void 0!=t&&(m.Xe=t/255);k[l]=m;break;case "ws":k=m.getAttribute("id");c.ku[k]=NB(this,c,m);break;case "wp":k=m.getAttribute("id"),c.ju[k]=OB(c,m)}}if(e)for(d={},f=-1,e=e.childNodes,k=void 0,l=0;l<e.length;l++)switch(m=
e[l],m.tagName){case "w":t=PB(this,c,m);if(m=d[t.id])m.end=t.start;d[t.id]=t;this.g.push(t);break;case "p":var t=c,n=m,y=k,u=[],E=MB(n,"t")||0,D=MB(n,"d")||0,W=n.getAttribute("w")||"0",O=!!JB(n,"a");y&&"\n"==y.text&&!O&&(O=!0);for(var y=O?6:5,Q=t.Cj[n.getAttribute("p")],bb=n.childNodes,jb=0;jb<bb.length;jb++){var lb=bb[jb];if("s"==lb.tagName){0<jb&&(O=!0);var xb=lb,lb=E,fg=D,Fr=W,Gr=O,Nn=y,Fk=xb.textContent?xb.textContent:"",Gk=t.Cj[xb.getAttribute("p")],xb=MB(xb,"t")||0,lb=new zB(lb+xb,fg-xb,Nn,
Fr,Fk,Gr,Gk)}else lb=new zB(E,D,y,W,n.textContent?n.textContent:"",O,Q);u.push(lb)}n=u;if(0<n.length)for(k=n[n.length-1],t=d[n[0].o],t||(t=PB(this,c,m,f--),this.g.push(t)),m=0;m<n.length;m++)u=n[m],n[m].o=t.id,t.Wf.push(u),this.b.push(u)}};
MB=function(a,b){var c=a.getAttribute(b);if(null!=c)return(0,window.parseFloat)(c)};
JB=function(a,b){var c=a.getAttribute(b);if(null!=c)return"1"==c};
KB=function(a,b){var c=MB(a,b);if(void 0!=c)return c};
LB=function(a,b){var c=a.getAttribute(b);if(null!=c)return HB.test(c),c};
NB=function(a,b,c){var d={},e=c.getAttribute("ws");e&&ra(d,b.ku[e]);b=KB(c,"mh");null!=b&&(d.Hm=b);b=KB(c,"ju");null!=b&&(d.textAlign=b);b=KB(c,"pd");null!=b?d.Ng=b:a.o&&(d.Ng=1);a=LB(c,"wfc");null!=a&&(d.windowColor=a);c=MB(c,"wfo");void 0!=c&&(d.Rg=c/255);return d};
OB=function(a,b){var c={},d=b.getAttribute("wp");d&&ra(c,a.ju[d]);d=KB(b,"ap");null!=d&&(c.yi=d);d=MB(b,"cc");null!=d&&(c.Hp=d);d=MB(b,"ah");null!=d&&(c.oj=d);d=MB(b,"rc");null!=d&&(c.Eh=d);d=MB(b,"av");null!=d&&(c.Sj=d);return c};
PB=function(a,b,c,d){d=d||c.getAttribute("id")||"0";var e=MB(c,"t"),f=MB(c,"d")||0x8000000000000,k={};ra(k,OB(b,c));ra(k,NB(a,b,c));return new AB(e,f,0,d,k)};
UB=function(a,b){DB.call(this);this.o=BB({Hm:0});this.g.push(this.o);for(var c=a.split(fba),d=1;d<c.length;d++){var e=c[d],f=b;if(""!=e&&!gba.test(e)){var k=RB.exec(e);if(k&&3<=k.length){var l=SB(k[1]),k=SB(k[2])-l,e=e.substring(RB.lastIndex);RB.lastIndex=0;var f=l+f,l=k,m=e,k={},n=this.o,e=5;if(0>m.indexOf("<"))this.b.push(new zB(f,l,e,n.id,m,!1,cc(k)?void 0:k));else{m=m.split(hba);1!=m.length&&(e=6,n="_"+iba++,n=new AB(f,l,e,n,{}),this.g.push(n));for(var t=f,u=0;u<m.length;u++){var y=m[u];if(0==
u%2){var E=As("<html>"+y+"</html>"),D;E.getElementsByTagName("parsererror").length?(D=E.createElement("span"),D.appendChild(E.createTextNode(y))):D=E.firstChild;TB(this,t,l-(t-f),e,n,0<u,D,k,this.b)}else t=SB(y)}}}RB.lastIndex=0}}};
TB=function(a,b,c,d,e,f,k,l,m){switch(k.tagName){case "b":l.bold=!0;break;case "i":l.Fm=!0;break;case "u":l.mn=!0}for(var n=0;n<k.childNodes.length;n++){var t=k.childNodes[n];if(3==t.nodeType)t=new zB(b,c,d,e.id,t.nodeValue,f||0<n,cc(l)?void 0:l),m.push(t),e!=a.o&&e.Wf.push(t);else{var u={};ra(u,l);TB(a,b,c,d,e,!0,t,u,m)}}};
SB=function(a){a=a.split(":");for(var b=0,c=0;c<a.length;c++)b=60*b+(0,window.parseFloat)(a[c]);return 1E3*b};
kba=function(a,b,c){if("WEBVTT"==a.substring(0,6))return new UB(a,c||0);a=As(a);return a&&a.firstChild?"timedtext"==a.firstChild.tagName?3==(0,window.parseInt)(a.firstChild.getAttribute("format"),10)?(b=jba.test(b.g),new QB(a,b)):new IB(a):new FB(a):new DB};
WB=function(a){eq.call(this,a,"subtitlesModuleData");this.Ma="captions";this.logEvent="cc";ez();this.ea=!0;this.ca=!1;this.V=S(a);this.B=null;this.J=Ky(a);this.Y=a;this.A={Ka:{}};this.C={Ka:{}};this.$=[];this.N={};this.R={};this.ia=this.K=this.ga=!1;var b=a=this.g=this.o=this.G=this.H=null;VB(this)||(a=new ge(this.on,0,this),H(this,a),b=new ge(this.XF,2E3,this),H(this,b));this.ha=a;this.ma=b;this.aa=new Fx(this);H(this,this.aa);this.da=null};
VB=function(a){return"3"!=a.V.A?!1:!!a.Y.app.o.Vt()};
XB=function(a,b){VB(a);if(b&&a.B.captionTracks.length){var c=a.b.Zh().up;if(2==c||3==c)return!0}if(1==a.V.ma||1==a.B.Ho||"alwayson"==a.B.Od("yt:cc")||VB(a))return!0;c=lq(a,"module-enabled");return null!=c?!!c:"on"==a.B.Od("yt:cc")};
YB=function(a){return VB(a)?!a.B.xa:a.B.captionTracks.length&&a.b.Zh().Qi?!0:XB(a,!0)};
$B=function(a){a.g&&a.g==a.o.Ne()&&ZB(a);a.o.rj(x(a.Gs,a),!0,VB(a)?"vtt":void 0,a.b.Zh())};
bC=function(a){VB(a);a.o.Ne()&&aC(a,a.o.Ne())};
ZB=function(a){a.g&&(a.g=null,VB(a)||(gq(a),a.$=[],a.g=null,a.on()),a.o.nn())};
aC=function(a,b,c){VB(a);!b||a.g&&b.H(a.g)||(null!=c&&(a.K=c),a.F?(a.g=b,cC(a),a.Tm("control_subtitles_set_track",Nz(b))):(ZB(a),a.g=b,(3!=a.b.getPresentingPlayerType()||a.V.experiments.Z("legacy_control_redirecting"))&&a.o.qj(b,x(a.Hs,a)),a.b.za("captionschanged",Nz(b))))};
eC=function(a,b,c){b.migrated=!0;var d=dC.Ka;a.A={};ra(a.A,dC);a.A.Ka={};ra(a.A.Ka,d);a.C={Ka:{}};var e=b.backgroundOverride?a.C:a.A,f=b.background||d.background;HB.test(f);e.Ka.background=f;e=b.colorOverride?a.C:a.A;f=b.color||d.color;HB.test(f);e.Ka.color=f;e=b.windowColorOverride?a.C:a.A;f=b.windowColor||dC.windowColor;HB.test(f);e.windowColor=f;e=b.backgroundOpacityOverride?a.C:a.A;f=b.backgroundOpacity;null==f&&(f=d.fd);e.Ka.fd=f;e=b.fontSizeIncrementOverride?a.C:a.A;f=b.fontSizeIncrement;null==
f&&(f=d.fg);e.Ka.fg=f;e=b.textOpacityOverride?a.C:a.A;f=b.textOpacity;null==f&&(f=d.Xe);e.Ka.Xe=f;e=b.windowOpacityOverride?a.C:a.A;f=b.windowOpacity;null==f&&(f=dC.Rg);e.Rg=f;e=b.charEdgeStyleOverride?a.C:a.A;f=b.charEdgeStyle;null==f&&(f=d.fe);e.Ka.fe=f;e=b.fontFamilyOverride?a.C:a.A;f=b.fontFamily;null==f&&(f=d.fontFamily);e.Ka.fontFamily=f;a.au();c&&mq(a,"display-settings",b)};
fC=function(a){var b=dC.Ka,b={background:b.background,backgroundOpacity:b.fd,charEdgeStyle:b.fe,color:b.color,fontFamily:b.fontFamily,fontSizeIncrement:b.fg,textOpacity:b.Xe,windowColor:dC.windowColor,windowOpacity:dC.Rg};a=lq(a,"display-settings");for(var c in a)null!=a[c]&&(b[c]=a[c]);return b};
gC=function(a,b,c){var d={};ra(d,lq(a,"display-settings"));ra(d,b);eC(a,d,c)};
iC=function(a){if(a.loaded){if(!VB(a)){var b=a.ma;b.isActive()&&he(b)}mq(a,"module-enabled",!1);ZB(a);hC(a.b);a.K=!1;a.F?(cC(a),a.Tm("control_subtitles_set_track")):a.b.za("captionschanged",{});VB(a)||bC(a)}};
lba=function(a){return WB.prototype.Cb(a)?new WB(a):null};
jC=function(a,b){VB(a);if(b&&!a.G){var c=BB({Ng:0});a.G=new eB(c);kw(a.b,a.G.element,4);var c=new zB(0,0,0,a.G.A.id,N("YTP_SAMPLE_SUBTITLES")),d=a.J.Ia().width,e=Jy(a.J,!0).height;a.G.$e(a.A,a.C,d,e,[c])}else!b&&a.G&&(a.G.dispose(),a.G=null)};
mba=function(a,b){return a&&w(a)&&HB.test(a)?a:b};
nba=function(a,b){return ha(a)&&!(0,window.isNaN)(a)?Math.max(0,Math.min(1,(0,window.parseFloat)(a))):b};
oba=function(a,b){if(a&&w(a)){var c=kC.indexOf(a);return-1!=c?c:b}return b};
pba=function(a,b){if(a&&w(a)){var c=lC.indexOf(a);return-1!=c?c:b}return b};
qba=function(a,b){return ha(a)&&!(0,window.isNaN)(a)?af(a,-2,4):b};
cC=function(a){var b={};a.g&&(b=Nz(a.g));a.b.za("captionschanged",b)};
mC=function(a,b,c){this.errorCode=a;this.b=b;this.details=c||{}};
nC=function(a){var b,c;for(c in a){var d=a[c].toString().replace(/[:,]/g,"_");b=(b?b+";":"")+c+"."+d}return b||""};
oC=function(a){this.b=window.Float32Array?new window.Float32Array(a):Array(a);this.g=a-1};
pC=function(a,b){a.g=(a.g+1)%a.b.length;a.b[a.g]=b};
rba=function(){this.A=new oC(50);this.g=null;this.B=this.o=0;this.b=[]};
sba=function(a,b){0!=a.b.length&&(b.B=a.b.length,b.F=cf(a.b,function(a,b){return a+b},0),b.D=$a(a.b),b.H=Math.min.apply(Math,a.b),b.G=Math.max.apply(Math,a.b),a.b=[])};
tba=function(a,b){if(a.g&&!(b>=a.o&&b<a.B)){var c=a.g.yf(b);a.o=a.g.ef(c);a.B=a.o+a.g.df(c);c=C()/1E3-qC(a.g,c);pC(a.A,c);a.b.push(c)}};
rC=function(a){this.B=Math.exp(Math.log(.5)/a);this.g=this.A=0};
sC=function(){var a=[],b=[];return{start:function(b){return a[b]},
end:function(a){return b[a]},
length:a.length}};
tC=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};
uC=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};
vC=function(a,b){var c=uC(a,b);return 0<=c?a.end(c):window.NaN};
wC=function(a){return a&&a.length?a.end(a.length-1):window.NaN};
xC=function(a,b){var c=vC(a,b);return 0<=c?c-b:0};
zC=function(){this.b={apiaryHost:Ri("APIARY_HOST",void 0),ip:Ri("APIARY_HOST_FIRSTPARTY",void 0),gapiHintOverride:Ri("GAPI_HINT_OVERRIDE"),gapiHintParams:Ri("GAPI_HINT_PARAMS",void 0),innertubeApiKey:Ri("INNERTUBE_API_KEY",void 0),innertubeApiVersion:Ri("INNERTUBE_API_VERSION",void 0),zm:Ri("INNERTUBE_CONTEXT_CLIENT_NAME","WEB"),innertubeContextClientVersion:Ri("INNERTUBE_CONTEXT_CLIENT_VERSION",void 0),Bm:Ri("INNERTUBE_CONTEXT_HL",void 0),Am:Ri("INNERTUBE_CONTEXT_GL",void 0),ZQ:Ri("XHR_APIARY_HOST",
void 0)};yC||(yC=uba(this.b))};
uba=function(a){return(new Ed(function(b){oj(Ri("GAPI_LOADER_URL",void 0),function(){try{q("yt.gapi.load")("client",{gapiHintOverride:a.gapiHintOverride,_c:{jsl:{h:a.gapiHintParams}},callback:b})}catch(c){Xi(c)}})})).then(function(){})};
pr=function(a,b,c){var d={},e,f=!1;0<d.timeout&&(e=Ti(function(){f||(f=!0,d.Kc&&d.Kc())},d.timeout));
vba(a,b,c,function(a){if(!f)if(f=!0,e&&Vi(e),a)d.rb&&d.rb(a);else if(d.onError)d.onError()})};
vba=function(a,b,c,d){var e={path:"/youtubei/"+a.b.innertubeApiVersion+"/"+b,headers:{"X-Goog-Visitor-Id":Ri("VISITOR_DATA")},method:"POST",body:gg(c)},f=x(a.g,a);yC.then(function(){f();q("gapi.client.request")(e).execute(d||r)})};
AC=function(a,b,c){var d={};d.eventTimeMs=Math.round(c||zq());d[a]=b;lr.log_event=lr.log_event||[];a=lr.log_event;a.push(d);nr.log_event=zC;20<=a.length?rr():qr()};
BC=function(a,b){this.version=a;this.args=b};
wba=function(a){if(!a.af){var b={};a.call(b);a.af=b.version}return a.af};
xba=function(a,b){function c(){a.apply(this,b.args)}
if(!b.args||!b.version)throw Error("yt.pubsub2.Data.deserialize(): serializedData is incomplete.");var d;try{d=wba(a)}catch(e){}if(!d||b.version!=d)throw Error("yt.pubsub2.Data.deserialize(): serializedData version is incompatible.");c.prototype=a.prototype;try{return new c}catch(e){throw e.message="yt.pubsub2.Data.deserialize(): "+e.message,e;}};
CC=function(a,b){this.topic=a;this.b=b};
yba=function(a){var b=DC,c=EC();c&&c.publish.call(c,b.toString(),b,a)};
zba=function(a,b){var c=DC,d=EC();if(!d)return 0;var e=d.subscribe(c.toString(),function(d,k){if(!window.yt.pubsub2.skipSubKey_||window.yt.pubsub2.skipSubKey_!=e){var l=function(){if(FC[e])try{if(k&&c instanceof CC&&c!=d)try{k=xba(c.b,k)}catch(l){throw l.message="yt.pubsub2 cross-binary conversion error for "+c.toString()+": "+l.message,l;}a.call(b||window,k)}catch(l){Xi(l)}};
GC[c.toString()]?Ix()?Jx(l,void 0):Ti(l,0):l()}});
FC[e]=!0;HC[c.toString()]||(HC[c.toString()]=[]);HC[c.toString()].push(e);return e};
JC=function(a,b){var c=zba(function(d){a.apply(b,arguments);IC(c)},b);
return c};
IC=function(a){var b=EC();b&&(ha(a)&&(a=[a]),F(a,function(a){b.unsubscribeByKey(a);delete FC[a]}))};
EC=function(){return q("yt.pubsub2.instance_")};
KC=function(a){BC.call(this,1,arguments);this.b=a};
MC=function(a){LC&&LC.measure&&LC.measure("measure_above_the_fold",a?a:"navigationStart")};
RC=function(a,b,c){if(!b&&"_"!=a[0]){var d=a;LC.mark&&(Aba.test(d)||(d="mark_"+d),LC.mark(d))}var d=NC(c),e=b||zq();d[a]&&(d["_"+a]=d["_"+a]||[d[a]],d["_"+a].push(e));d[a]=e;OC(c)["tick_"+a]=b;Lj("csi_on_gel")?(d=PC(c),"_start"==a?AC("latencyActionBaselined",{clientActionNonce:d},b):AC("latencyActionTicked",{tickName:a,clientActionNonce:d},b),a=!0):a=!1;a||QC(c)};
TC=function(a,b){SC("yt_sts",a,b);RC("_start",void 0,b)};
UC=function(a,b){var c=NC(b);return a in c};
SC=function(a,b,c){var d=VC(c).info[a]=b;OC(c)["info_"+a]=d;Lj("csi_on_gel")&&(a in WC?(b={},a=WC[a],gb(Bba,a)&&(d=!!d),b[a]=d,c=PC(c),b.clientActionNonce=c,AC("latencyActionInfo",b)):Xi(Error("Unknown label "+a+" logged with GEL CSI.")))};
ZC=function(a){XC(a);Cba();YC(!1,a)};
bD=function(a,b){a:if(!$C(a)){if(!Lj("send_empty_timing")){var c=Ri("CSI_SERVICE_NAME","youtube");if(!Ri((a||"")+"TIMING_ACTION",void 0)||!c)break a}RC("aa",void 0,a);SC("ap",1,a);SC("yt_fss","c",a);aD(a)}ZC(a);Qi(a+"TIMING_AFT_KEYS",b);Qi(a+"TIMING_ACTION",a);TC("c",a);g.ba("yt.timing."+(a||"")+"ready_",!0,void 0);QC(a)};
cD=function(a){var b=NC(a);if(b.aft)return b.aft;a=Ri((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};
aD=function(a){var b=NC(a),c=VC(a).info,d=b._start,e;for(e in b)if(ta(e,"_")&&ea(b[e])){var f=e.slice(1);if(f in Dba){var k=M(b[e],function(a){return Math.round(a-d)});
c["all_"+f]=k.join()}delete b[e]}f=!!c.ap;if(k=q("yt.timing.reportbuilder_")){if(k=k(b,c,a))dD(k,f),ZC(a)}else{var l=Ri("CSI_SERVICE_NAME","youtube"),k={v:2,s:l,action:Ri((a||"")+"TIMING_ACTION",void 0)},m=c.srt;delete c.srt;void 0===b.srt&&(m||0===m||(m=LC.timing||{},m=Math.max(0,m.responseStart-m.navigationStart),(0,window.isNaN)(m)&&c.pt&&(m=c.pt)),m||0===m)&&(c.srt=Math.round(m));if(c.h5jse){var n=window.location.protocol+q("ytplayer.config.assets.js");(n=LC.getEntriesByName?LC.getEntriesByName(n)[0]:
null)?c.h5jse=Math.round(c.h5jse-n.responseEnd):delete c.h5jse}b.aft=cD(a);Eba(a)&&"youtube"==l&&(SC("yt_lt","hot_bg",a),l=b.vc,n=b.pbs,delete b.aft,c.aft=Math.round(n-l));for(var t in c)"_"!=t.charAt(0)&&(k[t]=c[t]);b.ps=zq();c={};t=[];for(e in b)"_"!=e.charAt(0)&&(l=Math.round(b[e]-d),c[e]=l,t.push(e+"."+l));k.rt=t.join(",");(b=q("ytdebug.logTiming"))&&b(k,c);Lj("navigation_only_csi_reset")||ZC(a);dD(k,f,a);yba(new KC(c.aft+(m||0)))}};
QC=function(a){if(!$C(a)||!Lj("navigation_only_csi_reset")&&!a){var b=Ri((a||"")+"TIMING_ACTION",void 0),c=NC(a);if(q("yt.timing."+(a||"")+"ready_")&&b&&c._start&&cD(a))if(a)aD(a);else{var b=!0,d=Ri("TIMING_WAIT",[]);if(d.length)for(var e=0,f=d.length;e<f;++e)if(!(d[e]in c)){b=!1;break}b&&aD(a)}}};
dD=function(a,b,c){if(Lj("debug_csi_data")){var d=q("yt.timing.csiData");d||(d=[],g.ba("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,"")||Vp(a,void 0)}catch(f){Vp(a,void 0)}else Vp(a);YC(!0,c)};
PC=function(a){var b=VC(a).nonce;b||(b=dr(),VC(a).nonce=b);return b};
NC=function(a){return VC(a).tick};
OC=function(a){a=VC(a);"gel"in a||(a.gel={});return a.gel};
VC=function(a){return q("ytcsi."+(a||"")+"data_")||XC(a)};
XC=function(a){var b={tick:{},info:{}};g.ba("ytcsi."+(a||"")+"data_",b,void 0);return b};
$C=function(a){return!!q("yt.timing."+(a||"")+"pingSent_")};
YC=function(a,b){g.ba("yt.timing."+(b||"")+"pingSent_",a,void 0)};
Eba=function(a){var b=NC(a),c=b.pbr,d=b.vc,b=b.pbs;return c&&d&&b&&c<d&&d<b&&1==VC(a).info.yt_pvis};
Fba=function(){switch(Sh("visibilityState",window.document)){case "hidden":return 0;case "visible":return 1;case "prerender":return 2;case "unloaded":return 3}return-1};
Gba=function(a,b){this.b=a;this.g=b;this.o=1};
hD=function(a,b,c,d){d/=a.o;var e=eD(a.b)+1/fD(a.b),f;f=Math.max(.9*(d-3),gD(a.b)+8192*e);c=f/e*a.g.Ga/(b+c);c=Math.min(c,d);c=Math.max(a.g.Ha,Math.min(a.g.Aa,c));return Math.min(a.g.C,Math.max(65536,Math.ceil(c*b)))};
iD=function(a){var b=fD(a.b);if(a.g.ma)return b;a=1E-9+gD(a.b)+1048576*eD(a.b);return b*Math.min(1,1048576/(b*a))};
jD=function(a){return iD(a)/a.o};
kD=function(a,b,c){this.audio=a;this.video=b;this.reason=c};
Hba=function(a,b,c,d){this.R=a;this.F=b;this.C=c;this.G=d;this.o=this.J=this.b=null;this.B="i";this.K=-1;this.D=this.A=null;this.g=[];this.L=this.N=0;this.aa=null;this.H=!1};
Iba=function(a,b,c){"m"==c&&a.b.isLocked()&&!b.isLocked()&&(c="a");a.H=a.H||!1;if("m"==c&&b.isLocked())return a.B=c,lD(a,b),mD(a),a.o=nD(a),new kD(oD(a),a.o,c);var d;d=a.b;d=d.g==b.g&&d.b==b.b&&d.o==b.o;if("m"==a.B&&a.b.isLocked()&&d)return null;"r"!=c||d||(a.K=-1);lD(a,b);b=nD(a);if("r"==c&&b==a.o){if(d)return null;a.o=b;return new kD(oD(a),b,c)}a.B=c;pD(a);return null};
qD=function(a){return!!a.L&&9E4>=zq()-a.L};
oD=function(a){rD(a);return a.A};
nD=function(a){rD(a);return a.D};
pD=function(a){a.o&&a.D&&sD(a,a.o.info)<sD(a,a.D.info)&&(a.H=a.H||a.D.info.video.width>1.6*a.o.info.video.width||"r"==a.B)};
tD=function(a){var b=a.B;a.B="a";a.K=zq();a.H=!1;return new kD(a.J,a.o,b)};
rD=function(a){if(!(!a.b.isLocked()&&-1<a.K&&8E3>zq()-a.K)){a.L&&!qD(a)&&(a.L=0,lD(a,a.b));mD(a);var b=jD(a.R);if(a.b.isLocked())a.D=a.C.b[a.g[a.g.length-1].id];else{for(var c=Math.min(a.N,a.g.length-1),d=b/a.F.A-sD(a,a.A.info);0<c&&!(sD(a,a.g[c])<=d);c--);for(b=b/a.F.g-sD(a,a.A.info);c<a.g.length-1&&!(sD(a,a.g[c+1])>=b);c++);a.N=c;a.D=a.C.b[a.g[c].id];pD(a)}}};
lD=function(a,b){a.b=b;var c=a.G.videoInfos;if(!a.b.isLocked()&&(c=le(c,function(a){return sD(this,a)>this.F.ba?!1:!this.C.b[a.id].A},a),qD(a))){var c=le(c,function(a){return a.id!=this.aa.id},a),d=le(c,function(a){a=Fu(a);
return"140"==a||"134"==a||"243"==a});
d.length&&(c=d)}c.length||(c=a.G.videoInfos);d=le(c,b.A,b);d.length||(d=[c[0]]);d.sort(x(function(a,b){return sD(this,a)-sD(this,b)},a));
for(c=1;c<d.length;c++){var e=d[c-1],f=d[c];e.video.width>f.video.width?(ob(d,c),c--):sD(a,e)*a.F.g>sD(a,f)&&(ob(d,c-1),c--)}a.g=d;cba(a.F,d[d.length-1].video.OF)};
Jba=function(a,b){if(b)a.A=a.C.b[b];else{var c=cb(a.G.b,function(a){return!!a.Vb&&a.Vb.isDefault}),c=c||a.G.b[0];
a.A=a.C.b[c.id]}mD(a)};
mD=function(a){if(!a.A.info.Vb&&(a.A=a.C.b[a.G.b[0].id],1<a.G.b.length)){var b;if(a.b.isLocked())b=240>a.b.b;else{for(b=0;b+1<a.g.length&&"tiny"==a.g[b].video.quality;)b++;var c=jD(a.R)/a.F.g;b=sD(a,a.A.info)+sD(a,a.g[b])>c}b&&(a.A=a.C.b[a.G.b[1].id])}};
Kba=function(a){var b=a.F.A,c=jD(a.R)/b-sD(a,a.A.info),b=db(a.g,function(a){return sD(this,a)<c},a);
0>b&&(b=0);a.N=b;a.D=a.C.b[a.g[b].id]};
sD=function(a,b){return a.F.Ja&&b.A?b.A:b.b};
Lba=function(){this.b=this.g=0;this.o=[]};
uD=function(a,b){return(a[b]<<24)+(a[b+1]<<16)+(a[b+2]<<8)+a[b+3]};
vD=function(a,b){this.start=a;this.end=b;this.length=b-a+1};
wD=function(a){a=a.split("-");return 2==a.length&&(a=new vD((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};
xD=function(a,b){return new vD(a,a+b-1)};
yD=function(){this.b=this.g=!1};
zD=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};
AD=function(a,b,c){this.ae=a;this.durationSecs=b;this.context=c};
Mba=function(a){this.b=a;this.o=(0,window.parseInt)(this.b["Sequence-Number"],10)||0;this.ingestionTime=((0,window.parseInt)(this.b["Ingestion-Walltime-Us"],10)||0)/1E6;this.B="T"==this.b["Overlayed-With-Slate"];this.A="T"==this.b["Stream-Finished"];this.g="T"==this.b.Streamable};
FD=function(a,b,c){var d=BD(a,0,1836019558);if(!d)return null;var e=BD(a,d.offset+8,1835427940),f=BD(a,d.offset+8,1953653094);if(!e||!f)return null;var k=BD(a,f.offset+8,1952868452),l=BD(a,f.offset+8,1953658222),m=BD(a,f.offset+8,1952867444);if(!k||!l||!m)return null;var n=BD(a,f.offset+8,1935763823);a=BD(a,f.offset+8,1935763834);if(n){var t=CD(n),f=CD(n);if(0!=t||1!=f)return null;t=CD(n)}for(var u=CD(k),y=CD(k),E=u&2,D=u&1?Nba(k):0,W=E?CD(k):0,O=u&8?CD(k):0,f=u&16?CD(k):0,Q=u&32?CD(k):0,u=CD(l),
bb=u&1,jb=u&4,lb=u&256,k=u&512,xb=u&1024,fg=u&2048,u=CD(l),Fr=bb?CD(l):0,Gr=jb?CD(l):0,bb=[],Nn=[],Fk=[],Gk=[],yx=0,Ve=0,tc=0;tc<u;tc++){var sF=lb?CD(l):O;k&&bb.push(CD(l));var ig=Q;jb&&0==tc?ig=Gr:xb&&(ig=CD(l));Nn.push(ig);ig=fg?CD(l):0;0==tc&&(yx=ig);Fk.push(Ve+ig);Gk.push(tc);Ve+=sF}1<=Math.abs(Ve-b)&&c({flaw:"segDurMismatch",dts:Ve.toFixed(),seg:b.toFixed()});Cb(Gk,function(a,b){return Fk[a]-Fk[b]});
c=[];for(tc=0;tc<u;tc++)c[Gk[tc]]=tc;Ve=E?4:0;tc=16*u;O=68+Ve+m.size+tc+(n?n.size:0)+(a?a.size:0);d=O-d.size;l=new Qba(O);DD(l,O);DD(l,1836019558);ED(l,e);DD(l,O-24);DD(l,1953653094);DD(l,16+Ve);DD(l,1952868452);DD(l,131072|(E?2:0));DD(l,y);E&&DD(l,W);ED(l,m);DD(l,20+tc);DD(l,1953658222);DD(l,16781057);DD(l,u);DD(l,D+Fr+d);for(tc=Ve=0;tc<u;tc++)m=c[tc],e=Math.round(b*m/u),m=Math.round(b*(m+1)/u)-e,ig=e-Ve+yx,DD(l,m),DD(l,k?bb[tc]:f),DD(l,Nn[tc]),DD(l,ig),Ve+=m;n&&(DD(l,n.size),DD(l,1935763823),DD(l,
0),DD(l,1),DD(l,t+d));a&&ED(l,a);return l.data.buffer};
ID=function(a){a=new window.DataView(a.buffer,a.byteOffset,a.byteLength);return(a=GD(a,1836476516))?HD(a):window.NaN};
BD=function(a,b,c){for(;JD(a,b);){var d=KD(a,b);if(d.type==c)return d;b+=d.size}return null};
GD=function(a,b){for(var c=0;JD(a,c);){var d=KD(a,c);if(d.type==b)return d;c=LD(d.type)?c+8:c+d.size}return null};
ND=function(a){return a.data.getUint8(a.offset+8)?MD(a.data,a.offset+12):a.data.getUint32(a.offset+12)};
KD=function(a,b){var c=a.getUint32(b),d=a.getUint32(b+4);return new OD(a,b,c,d)};
HD=function(a){var b=a.data.getUint8(a.offset+8)?28:20;return a.data.getUint32(a.offset+b)};
PD=function(a){return a.data.getUint32(a.offset+16)};
MD=function(a,b){return 4294967296*a.getUint32(b)+a.getUint32(b+4)};
JD=function(a,b){if(8>a.byteLength-b)return!1;var c=a.getUint32(b);if(8>c)return!1;for(var d=4;8>d;d++){var e=a.getInt8(b+d);if(97>e||122<e)return!1}return a.byteLength-b>=c};
LD=function(a){return 1836019558==a||1836019574==a||1953653094==a};
OD=function(a,b,c,d){this.data=a;this.offset=b;this.size=c;this.type=d;this.b=8};
CD=function(a){var b=a.data.getInt32(a.offset+a.b);a.b+=4;return b};
QD=function(a){var b=a.data.getUint32(a.offset+a.b);a.b+=4;return b};
Nba=function(a){var b=MD(a.data,a.offset+a.b);a.b+=8;return b};
RD=function(a){var b,c=[];do b=a.data.getUint8(a.offset+a.b),c.push(b),a.b++;while(0!=b);c.pop()};
Qba=function(a){this.data=new window.DataView(new window.ArrayBuffer(a));this.b=0};
DD=function(a,b){a.data.setInt32(a.b,b);a.b+=4};
ED=function(a,b){for(var c=0;c+4<=b.size;)DD(a,b.data.getUint32(b.offset+c)),c+=4;for(;c<b.size;)a.data.setUint8(a.b++,b.data.getUint8(b.offset+c++))};
SD=function(a){return(a=BD(a,0,1836019558))?a.offset+a.size:null};
TD=function(a,b){for(var c=BD(a,0,b);c;)a.setUint32(c.offset+4,1936419184),c=BD(a,c.offset+c.size,b)};
UD=function(a,b){this.g=a;this.b=0;this.o=b||0};
WD=function(a){var b=VD(a,!0),c=a.g.byteOffset+a.b,c=new window.DataView(a.g.buffer,c,Math.min(b,a.g.buffer.byteLength-c)),c=new UD(c,a.o+a.b);a.b+=b;return c};
YD=function(a){for(var b=VD(a,!0),c=XD(a),d=1;d<b;d++)c=256*c+XD(a);return c};
ZD=function(a){var b=VD(a,!0);a.b+=b};
aE=function(a){var b=a.b;a.b=0;var c=!1;$D(a,440786851)&&(a.b=0,$D(a,408125543)&&(c=!0));a.b=b;return c};
bE=function(a){var b=a.b;a.b=0;var c=1E6;$D(a,408125543)&&(VD(a,!0),$D(a,357149030)&&(VD(a,!0),$D(a,2807729)&&(c=YD(a))));a.b=b;return c};
Rba=function(a,b){var c=a.b;a.b=0;if(!cE(a)||!$D(a,160))return a.b=c,window.NaN;VD(a,!0);if(!$D(a,161))return a.b=c,window.NaN;var d=VD(a,!0);XD(a);var e=XD(a)<<8|XD(a);a.b+=d-3;if(!$D(a,155))return a.b=c,window.NaN;d=YD(a);a.b=c;return(e+d)*b/1E9};
cE=function(a){if(aE(a)){if(!$D(a,408125543))return!1;VD(a,!0)}if(!$D(a,524531317))return!1;VD(a,!0);return!0};
$D=function(a,b){if(a.b>=a.g.byteLength)return!1;for(;VD(a,!1)!=b;)if(ZD(a),a.b>=a.g.byteLength)return!1;return!0};
VD=function(a,b){var c=XD(a);if(1==c){for(var d=c=0;7>d;d++)c=256*c+XD(a);return c}for(var e=128,d=0;6>d&&e>c;d++)c=256*c+XD(a),e*=128;return b?c-e:c};
XD=function(a){return a.g.getUint8(a.b++)};
dE=function(a,b){pk.call(this);this.o=0;this.A=a;this.b=[];this.g=null;this.C=b;this.D=this.B=null;this.F=x(function(a){this.A.D&&(this.X("timestamprewrite",a),this.A.D=!1)},this)};
eE=function(a){return a.b.length?a.b[0]:null};
fE=function(a){return a.b.length?a.b[a.b.length-1]:null};
Tba=function(a,b){var c=Sba(a,b);F(c,function(a){this.b.push(a)},a);
return cf(c,function(a,c){return c.b==b.b?a:a+c.g.length},0)};
Uba=function(a){return Th(a.b,function(a){return a.info.C})};
Vba=function(a,b){if(b){var c=ab(a.b,function(a){return a.info.C});
-1!=c&&(a.b=ub(a.b,0,c+1))}else a.b=[]};
Wba=function(a){if(!a.b.length)return 0;for(var b=a.b[0].g.length,c=1;c<a.b.length;c++)a.b[c].b!=a.b[c-1].b&&(b+=a.b[c].g.length);a.g&&(b+=a.g.g.length);return b};
Xba=function(a){return M(a.b,function(a){return a.info})};
Sba=function(a,b){if(!b.verify()||b.info.b.Dm()){var c=gE(b.info);c.verification="1";a.X("error",c||{})}if(hE(a,b)){c=iE(b);if(c=BD(c,0,1701671783)){RD(c);RD(c);QD(c);QD(c);QD(c);QD(c);var d=new window.Uint8Array(new window.ArrayBuffer(c.size-c.b)),e=new window.Uint8Array(c.data.buffer,c.offset+c.b,c.size-c.b);d.set(e);c.b=c.size;c=String.fromCharCode.apply(String,new window.Uint8Array(d.buffer));c=(c=zD(c))?new Mba(c):null}else c=null;b.o=c;b.o&&(b.info.A=b.o.o,b.info.F=b.o.A)}a.A.na&&hE(a,b)&&TD(iE(b),
1701671783);if(a.A.R){a.C.gd()||(c=null===a.B?b.info.startTime:a.B,jE(b,c)?a.B=c+kE(b):(c=gE(b.info),c.smst=1,a.X("error",c||{})));if(!a.C.gd()&&(0==b.info.g||a.g)&&1==b.info.b.info.g&&3==b.info.type&&!lE(b)&&b.info.duration&&(a.o+=1E3*(kE(b)-b.info.duration),a.D&&25<=Math.abs(a.o-a.D.o))){c=(a.D.o-a.o)/1E3;d=kE(b)+c;e=d*mE(b);if((e=nE(a,b,e))&&e.length){var f=gE(b.info);f.fds=d.toFixed(3);f.com=a.o.toFixed(3);a.X("timestamprewrite",f);a.B+=c;a.o+=1E3*c}return e?e:oE(a,b)}if(a.A.aa&&a.C.gd()&&(0==
b.info.g||a.g)&&1==b.info.b.info.g)return c=b.info.b.index.Si(b.info.A),(c=nE(a,b,c))?c:oE(a,b)}return[b]};
hE=function(a,b){return!a.C.gd()&&3==b.info.type&&1==b.info.b.info.g&&0==b.info.g};
oE=function(a,b){if(a.g&&a.g!=b){var c=[a.g,b];a.g=null;return c}return[]};
nE=function(a,b,c){var d;if(a.g){d=a.g;var e=new window.Uint8Array(d.range.length+b.range.length);e.set(new window.Uint8Array(d.b,d.range.start,d.range.length));e.set(new window.Uint8Array(b.b,b.range.start,b.range.length),d.range.length);d=new window.DataView(e.buffer);SD(d)}else d=iE(b),d=(e=SD(d))&&e<d.byteLength?d:null;if(!d)return a.g=b,null;(c=FD(d,c,a.F))?(d=SD(d),a.g&&(d-=a.g.range.length,a.g=null),a=pE(b,d),a[0].b=c,a[0].range=xD(0,c.byteLength),a[0].g=xD(0,c.byteLength)):a=null;return a};
qE=function(a,b){this.ca=a;this.g=b;this.B=[];this.o=new dE(a,b);this.A=this.b=null;this.C=0;this.R=b.info.b;this.K=this.L=!1;this.J=new yD;this.D=null;this.F=0;this.H=b.Qn();this.G=-1};
sE=function(a,b){a.B.push(b);a.b=$a(b.info.b);a.C+=rE(b)};
wE=function(a){for(;a.B.length&&6==a.B[0].state;)tE(a,a.B.shift());a.B.length&&uE(a.B[0])&&!vE(a.B[0].info.b[0])&&tE(a,a.B[0])};
tE=function(a,b){if(!b.N&&b.o){var c;c=a.C;b.N=!0;c=c-xE(b.info)+rE(b);a.C=c}if(uE(b)){c=b.o;var d=c.o;c.o=[];c.A=$a(d).info;F(d,a.aa,a)}};
yE=function(a){return!(!a.o.b.length||1!=eE(a.o).info.b.info.g||0!=eE(a.o).info.g)};
zE=function(a){var b=iE(eE(a.o)),c=SD(b);return(!c||c>b.byteLength)&&1==a.o.b.length};
BE=function(a,b,c){zE(a);var d=eE(a.o);a=AE(a);if(!a)return null;c=c||d.info.b.index.Si(d.info.A);return(b=FD(a,c,b))?b:null};
DE=function(a){var b=eE(a.o),c=AE(a);if(c&&(c=SD(c)))if(c>iE(b).byteLength){var d=a.o.b[1];CE(a,b.range);CE(a,xD(d.range.start,c-b.range.length))}else CE(a,xD(b.range.start,c))};
AE=function(a){var b=eE(a.o),c=iE(b),d=SD(c);if(!d||d>c.byteLength){d=a.o.b[1];a=new window.Uint8Array(b.range.length+d.range.length);a.set(new window.Uint8Array(b.b,b.range.start,b.range.length));a.set(new window.Uint8Array(d.b,d.range.start,d.range.length),b.range.length);d=SD(new window.DataView(a.buffer));if(!d||d>a.byteLength)return null;c=new window.DataView(a.buffer.slice(0,d))}return c};
CE=function(a,b){for(var c=a.o,d=[],e;c.b.length;){if(c.b[0].range.end>b.end){var f=pE(c.b[0],b.end-c.b[0].range.start+1);e=f[0];c.b[0]=f[1]}else e=c.b.shift();d.push(e);if(e.range.end==b.end)break}d.length&&(F(d,a.$,a),c=$a(d),a.o.b.length&&c.b==eE(a.o).b||(a.C-=c.g.length))};
GE=function(a,b){var c=EE(a,b);if(0<=c)return c;a.b=a.g.ng(b).b[0];FE(a)&&(a.A=null);a.o.B=null;a.D=null;a.F=0;return a.b.startTime};
Yba=function(a,b){var c=a.o.b.length?fE(a.o):a.A;if(b&&c&&!c.C){for(var d=c.A,c=[],e=0;e<a.B.length;e++){var f=a.B[e];Th(f.info.b,function(a){return a.A==d})?c.push(f):a.N(f)}a.B=c;
a.b=a.B.length?$a($a(a.B).info.b):null}else HE(a)};
Zba=function(a){a.C=0;F(a.B,function(a){this.C+=rE(a)},a);
a.C+=Wba(a.o)};
IE=function(a,b){var c=!!a.g.info.video&&!!a.A&&!a.A.C,d=1<=b&&c;Vba(a.o,d);a.L=d;Yba(a,2<=b&&c);Zba(a)};
JE=function(a){a.J.g||a.J.start();IE(a,0);FE(a)&&(a.A=null)};
FE=function(a){return!!a.A&&a.A.F};
KE=function(a){var b=[];a.A&&b.push(a.A);b=rb(b,Xba(a.o));F(a.B,function(a){F(a.info.b,function(a){3!=a.type&&4!=a.type||b.push(a)})});
a.b&&!$ba(a.b,$a(b))&&b.push(a.b);return b};
LE=function(a){if(!a.b||!a.b.o)return!1;a=KE(a);if(!a.length)return!1;for(var b=1;b<a.length;b++)if(!(1E-6>=Math.abs(a[b].B-a[b-1].D)))return!1;return!0};
EE=function(a,b){if(LE(a)){var c;a:{c=KE(a);for(var d=0;d<c.length;d++)if(c[d].B<=b&&c[d].startTime+c[d].duration>=b){c=c[d];break a}c=null}if(c)return c.startTime}return window.NaN};
ME=function(a){return Th(a.B,function(a){return 4<=a.state})};
NE=function(a){return!(!a.b||!a.g.Xc()||a.b.b==a.g)};
OE=function(a){return NE(a)&&a.b.b.info.b<a.g.info.b};
HE=function(a){F(a.B,a.N,a);a.B=[];a.b=null};
PE=function(a){return!!a.b&&-1!=a.b.A&&a.b.A<a.g.index.kg()};
QE=function(a){if(a.b){var b=fE(a.o);b&&3==b.info.type&&b.info.A>a.b.A&&(a.b=b.info)}};
RE=function(a,b,c,d,e,f,k,l,m){this.b=b;this.range=c;this.type=a;this.A=0<=d?d:-1;this.startTime=e||0;this.duration=f||0;this.g=k||0;this.o=0<=l?l:this.range?this.range.length:window.NaN;this.F=!!m;this.range?(this.C=this.g+this.o==this.range.length,this.B=this.startTime+this.duration*this.g/this.range.length,this.G=this.duration*this.o/this.range.length):(this.C=0!=this.o,this.B=this.startTime,this.G=this.duration);this.D=this.B+this.G};
$ba=function(a,b){return!(!b||b.b!=a.b||b.type!=a.type||(a.range&&b.range?b.range.end!=a.range.end:b.range!=a.range)||b.A!=a.A||b.g+b.o!=a.g+a.o)};
vE=function(a){return 1==a.type||2==a.type};
SE=function(a,b){return a.b==b.b&&a.range.start+a.g+a.o==b.range.start+b.g};
aca=function(a){1==a.length||Sk(a,function(a){return!!a.range});
for(var b=1;b<a.length;b++);b=a[a.length-1];return new vD(a[0].range.start+a[0].g,b.range.start+b.g+b.o-1)};
TE=function(a){var b="";Pb(gE(a),function(a,d){b+=d+"="+a+","});
return b.slice(0,-1)};
gE=function(a){var b={};b.itag=Fu(a.b.info);b.seg=a.A;a.range&&(b.range=""+(a.range.start+a.g)+"-"+(a.range.start+a.g+a.o-1));b.time=""+a.B.toFixed(1)+"-"+(a.B+a.G).toFixed(1);return b};
UE=function(a,b,c,d,e){this.info=a;this.b=b;this.range=c;this.o=null;this.g=d;this.B=e};
iE=function(a){return a.range?new window.DataView(a.b,a.range.start,a.range.length):new window.DataView(a.b)};
pE=function(a,b){b=Math.min(b,a.info.o);var c=xD(a.range.start,b);return[new UE(new RE(a.info.type,a.info.b,a.info.range,a.info.A,a.info.startTime,a.info.duration,a.info.g,b,!1),a.b,c,a.g,a.B),new UE(new RE(a.info.type,a.info.b,a.info.range,a.info.A,a.info.startTime,a.info.duration,a.info.g+b,a.info.o-b,a.info.F),a.b,new vD(c.end+1,a.range.end),a.g,!1)]};
jE=function(a,b){if(1==a.info.b.info.g){for(var c=a.info.b.b,d=new window.DataView(a.b),e=window.NaN,f=window.NaN,k=0;JD(d,k);){var l=KD(d,k);(0,window.isNaN)(e)&&(1936286840==l.type?e=PD(l):1836476516==l.type&&(e=HD(l)));if(1952867444==l.type){!e&&c&&(e=ID(c));var m=ND(l);(0,window.isNaN)(f)&&(f=b*e-m);var n=l,m=m+f;if(n.data.getUint8(n.offset+8)){var t=n.data,n=n.offset+12;t.setUint32(n,Math.floor(m/4294967296));t.setUint32(n+4,m&4294967295)}else n.data.setUint32(n.offset+12,m)}k=LD(l.type)?k+8:
k+l.size}return!0}e=new UD(new window.DataView(a.info.b.b.buffer));c=new UD(new window.DataView(a.b));d=b;f=bE(e);e=c.b;c.b=0;if(cE(c)&&$D(c,231))if(k=VD(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.g.setUint8(c.b+f,d&255),d>>>=8;c.b=e;c=!0}else c=!1;return c};
kE=function(a){var b;if(1==a.info.b.info.g){for(var c=b=0,d=new window.DataView(a.b);JD(d,b);){var e=KD(d,b);if(1936286840==e.type){var f=PD(e),k;k=e;var l=k.data.getUint8(k.offset+8);k.data.getUint16(k.offset+(0==l?30:38));k=k.data.getUint32(k.offset+(0==l?36:42));c+=k/f}b=LD(e.type)?b+8:b+e.size}b=c||window.NaN;if(!(0<=b))a:{b=a.info.b.b;for(var c=0,d=new window.DataView(a.b),m,f=0;JD(d,c);){e=KD(d,c);if(1836476516==e.type)m=HD(e);else if(1836019558==e.type){!m&&b&&(m=ID(b));if(!m){b=window.NaN;
break a}l=e;k=m;var n=BD(l.data,l.offset+8,1953653094),t=BD(l.data,n.offset+8,1952868452),l=BD(l.data,n.offset+8,1953658222),n=CD(t);CD(t);n&2&&CD(t);var t=n&8?CD(t):0,u=CD(l),y=u&1,n=u&4,E=u&256,D=u&512,W=u&1024,u=u&2048,O=QD(l);y&&CD(l);n&&CD(l);for(var Q=y=0;Q<O;Q++){var bb=E?CD(l):t;D&&CD(l);n&&0==Q||!W||CD(l);u&&CD(l);y+=bb}f+=y/k}c=LD(e.type)?c+8:c+e.size}b=f||window.NaN}}else m=new UD(new window.DataView(a.info.b.b.buffer)),b=Rba(new UD(new window.DataView(a.b)),bE(m));return b||a.info.G};
mE=function(a){var b;b=new window.DataView(a.b);b=(b=GD(b,1936286840))?PD(b):window.NaN;(0,window.isNaN)(b)&&(b=a.info.b.b,a=new window.DataView(a.b),b=(a=GD(a,1836476516))?HD(a):b?ID(b):window.NaN);return b};
lE=function(a){return 1==a.info.b.info.g?a.o?a.o.B&&!!BD(new window.DataView(a.b),0,1718909296):!1:aE(new UD(new window.DataView(a.b)))};
bca=function(a,b){this.g=a;this.C=this.B=!1;this.length=b;this.b=0;this.o=[];if(1==this.g.length&&!this.g[0].range){var c=this.g[0],d=xD(0,this.length);this.g[0]=new RE(c.type,c.b,d,c.A,c.startTime,c.duration,c.g,d.length,c.F)}this.A=null};
cca=function(a){var b=a.length-a.b;F(a.o,function(a){b+=a.range.length});
return b};
VE=function(a,b,c,d,e){this.status=0;this.D=this.response=null;this.G=d;this.B=c;this.J=e;this.g=[];this.C=null;this.A=this.b=0;this.wa=dca++;this.H=window.NaN;this.o=null;a=new window.Request(a,{method:"GET",credentials:"include"});(0,window.fetch)(a).then(Si(x(this.QF,this)),Si(x(this.lk,this)));C();this.F=!1;b()};
XE=function(a){a.g.push(a.C.subarray(0,a.b));a.b=0;a.C=a.F?null:new window.Uint8Array(WE(a))};
YE=function(a){a.o.read().then(Si(x(a.sC,a)),Si(x(a.lk,a)));var b=C();a.H=b};
WE=function(a){a=a.ig();return Math.max(16384,.125*a)};
ZE=function(a,b,c,d,e){this.status=0;this.response=null;this.g=this.o=!1;this.b=new window.XMLHttpRequest;this.b.open("GET",a);this.b.responseType="arraybuffer";this.b.withCredentials=!0;this.b.onreadystatechange=x(this.XH,this);this.A=d;this.C=c;this.B=e;a=Si(x(this.VH,this));this.b.addEventListener("load",a,!1);this.b.addEventListener("error",a,!1);this.b.send();b();this.b.addEventListener("progress",Si(x(this.WH,this)),!1)};
$E=function(a,b,c){this.A=a;this.info=b;this.timing=c;this.state=1;this.b=null;this.J=this.D=this.H=0;this.C=window.NaN;this.F=this.g=this.K=null;this.B=0;this.o=null;this.N=!1;this.G=null;this.R=window.NaN;this.L=0};
bF=function(a){var b;b=a.timing;b={rt:((C()-b.g)/1E3).toFixed(2),lb:b.b,pt:(b.L/1E3).toFixed(2),pb:b.J};b.shost=a.g?aF(a.g.b):"";b.rn=a.H.toString();a.B&&(b.rc=a.B.toString());b.ml=""+ +a.info.b[0].b.Xc();410!=a.B&&500!=a.B&&503!=a.B||(b.isPotentialFormatUnavaliable="true");return b};
cF=function(a){a.isDisposed();if(2>a.D)a=!0;else{var b=a.info.o;a=!(a.H>b.o&&1<=b.g)}return a};
dF=function(a,b){a.state=b;if(5<=a.state){var c=a.timing;c.A&&(c.A=!1)}a.K&&a.K(a)};
eF=function(a){return Sk(a.info.b,function(a){return 3==a.type})};
fF=function(a){if(a.b){var b=a.b;a.b=null;b.Su()}a=a.timing;a.A&&(a.A=!1)};
hF=function(a){var b=a.b.gf("content-type"),c=a.b.ig();return(!gF(a)||!b||-1!=b.indexOf("text/plain"))&&(!c||2048>=c)};
uE=function(a){return 2<=a.state&&!!a.o&&!!a.o.o.length};
iF=function(a,b){gF(a)&&!a.b.ig()&&(a.A.G=!1,a.A.ha=!1);if(b||gF(a)&&!hF(a)){if(!a.o){var c=b?a.b.wl():a.b.ig();a.o=new bca(a.info.b,c)}for(;a.b.kr();)for(var c=a.o,d=a.b.Ot(),e=0,f=0,k=0;k<c.g.length;k++){var l=c.g[k];if(e+l.o<=c.b)e+=l.o;else{var m;m=c;var n=l;1==n.type?(m.B=!0,m=!1):3==n.type||4==n.type?(n=m.B&&!m.C,m.C=!0,m=n):m=!1;var n=c.b-e,t=Math.min(l.o-n,d.length-f);c.o.push(new UE(new RE(l.type,l.b,l.range,l.A,l.startTime,l.duration,l.g+n,t,l.g+n+t==l.range.length&&l.F),d.buffer,xD(d.byteOffset+
f,t),xD(d.byteOffset,d.length),m||l.b.Uu()));m=t;c.b+=m;f+=m;e+=l.o;if(f==d.length)break}}}};
rE=function(a){return a.o&&a.N?cca(a.o):xE(a.info)};
gF=function(a){return!!(a.A.G||a.A.ha&&a.b&&a.b instanceof VE)};
eca=function(a,b,c,d){this.o=a;this.J=b;this.N=c;this.b=this.C=this.g=window.NaN;this.H=this.K=this.A=!1;this.B=0;this.F=this.L=window.NaN;this.D=d};
lF=function(a,b,c){if(!a.A)8192<=c&&(a.D||jF(a.o,(b-a.g)/1E3),a.A=!0);else if(!a.D){var d=(b-a.C)/1E3,e=c-a.b;0<e&&(.2<d||1024>e?(a.B+=d,.2<d&&kF(a.o,.05,e)):kF(a.o,d,e),a.H=!0)}a.C=b;a.b=c};
mF=function(a){var b=a.J-a.b,b=1E3*(b*a.G.tailDelay+b/a.G.byterate),c=C(),b=8192<=a.b?b+c:b+Math.max(c,a.g+1E3*a.G.delay);a.F=b};
nF=function(a,b,c,d,e,f){this.duration=c;this.endTime=b+c;this.ingestionTime=d;this.b=a;this.g=e;this.startTime=b;this.range=f||null};
oF=function(a,b,c,d){pk.call(this);this.F=a;this.A=b;this.B=c;this.g=this.o=null;this.J=new Gba(a,b);this.b=null;this.D=new Hba(this.J,b,this.B,d);this.C=this.ia=this.N=this.ha=window.NaN;this.K=!1;this.H=window.NaN;this.ua=0;this.G=!1;this.na={};this.R="";this.$=this.ca=0;this.ma=b.Oa?new Lba:null;this.ga=this.da=window.NaN;this.qa=new rC(5);this.Ca=x(function(a){this.A.D&&(this.Nc(!1,"qoe.avsync",a),this.A.D=!1)},this);
this.ea=!1};
rF=function(a){0==a.C&&(a.o.g.o||pF(a,a.o,!0),a.g.g.o||pF(a,a.g,!0));a.seek(a.C);qF(a,"gv")};
uF=function(a){a.b&&a.b.b&&a.b.b.removeEventListener&&(a.b.b.removeEventListener("updateend",x(a.dd,a),!1),a.b.g.removeEventListener("updateend",x(a.dd,a),!1),a.b.b.removeEventListener("error",x(a.vj,a,!0),!1),a.b.g.removeEventListener("error",x(a.vj,a,!1),!1));a.b=null;a.G=!0;tF(a)};
vF=function(a){a.b&&bA(a.b)&&uF(a)};
wF=function(a,b,c){if(!b.J.g||!c.remove)return!1;if(c.updating)return!0;if(!b.J.b&&c.buffered.length)return a=c.buffered.end(c.buffered.length-1),c.remove(0,a),b.J.b=!0;b.J.reset();a.X("seekrequired");return!1};
fca=function(a,b){a.J.o=Math.max(1,b)};
zF=function(a,b,c){if(a.G&&(!a.A.J||!xF(a.F)))return!1;if(a.B.g){if(0<b.B.length)return!1;if(b.H)return!0}if(!b.b){if(!b.g.Xc())return b.g.o||pF(a,b,!1),!1;GE(b,a.C)}var d=b.B.length+c.B.length;(ME(b)||ME(c)||a.B.isLive)&&--d;if(2<=d+1)return!1;d=b.b;4==d.type&&d.b.Xc()&&(b.b=$a(d.b.Ij(d)),d=b.b);if(!d.F&&!d.b.Yg(d)||d.b.info.audio&&4==d.type)a=!1;else if(OE(b)&&!a.A.H)a=!0;else{if(!(c=d.F||b.C+c.C>a.A.L||!!(c.b&&!c.b.F&&c.b.D<d.D)&&(!a.B.g||c.b.D&&d.D))&&(c=3==d.type)){d=d.D;b=yF(a,b,!0);a.D.b.isLocked()||
(c=(zq()-a.ua)/1E3,c=30+a.A.ea*c,b=Math.min(b,c));if(a.A.ia){var e=zq();(0,window.isNaN)(a.da)||(0,window.isNaN)(a.ga)||(c=a.ga+(e-a.da)/1E3,b=Math.min(b,c));a.da=e;a.ga=b}c=d>a.C+b}a=c?!1:!0}return a};
AF=function(a,b,c){if(!a.b||$z(a.b)||eA(a.b)){var d=a.C,e=a.J;c=hD(e,b.g.info.b,c.g.info.b,0);e=gD(e.b)+c*eD(e.b)+c/fD(e.b);a:{d+=Math.max(e,e+5-c/b.g.info.b);a=a.D.H;if(b.B.length){if(b.B[0].info.b[0].startTime<=d)break a;HE(b)}e=b.C;c=b.o;for(var f=0,k=c.b.length-1;0<=k;k--){var l=c.b[k];l.info.startTime>d&&(c.b.pop(),c.b.length&&c.b[k-1].b==l.b||(f+=l.g.length))}b.C=e-f;b.B.length?b.b=$a($a(b.B).info.b):b.o.b.length?b.b=fE(b.o).info:b.b=b.A;a&&b.b&&d<b.b.startTime&&(b.o.B=null,b.D=null,b.F=0,b.b=
b.g.ng(d,!0).b[0])}}};
CF=function(a,b,c){zF(a,b,c);var d=b.b;if(b.H)a.ea=!0,d=b.g.ng(window.Infinity);else if(b.b.b.Xc()){!OE(b)||a.A.H||a.B.g||(AF(a,b,c),b.b||GE(b,a.C));var d=b.b,e=d.D-a.C,f=!d.range||0==d.o&&0==d.g?0:d.range.length-(d.g+d.o);NE(b)&&(OE(b)||e<=a.A.K)&&0==f&&(a.B.g?d.b=b.g:(f=d.startTime+oF.b,d.o&&(f+=d.duration),GE(b,f),d=b.b));d.b.gd()?(c=hD(a.J,d.b.info.b,c.g.info.b,e),e=NE(b),c=d.b.Xg(d,c),c.range&&1<c.b.length&&(e?c=d.b.Xg(d,c.b[0].o):(e=c.b[c.b.length-1],f=e.o/c.range.length,!e.C&&.4>f&&(c=d.b.Xg(d,
c.range.length-e.o)))),d=c):d=d.b.kk(d)}else d.b.gd()?(c=hD(a.J,b.g.info.b,c.g.info.b,0),d=d.b.Xg(d,c)):d=d.b.kk(d);sE(b,BF(a,d))};
BF=function(a,b){if(3==b.b[b.b.length-1].type){var c;a:{c=a.D;var d=b.b[0].b;if(d.info.video){if(c.o!=d){c.o=d;c=tD(c);break a}}else c.J=d;c=null}c&&a.X("videoformatchange",c)}c=xE(b);var d=a.F,e=a.J,f=Math.min(2.5,gD(e.b)),e=iD(e);c=new $E(a.A,b,new eca(d,c,c-f*e,a.A.Na&&a.ea));d=x(a.xE,a);c.isDisposed();c.K=d;c.start(Math.max(0,b.b[0].B-a.C));return c};
DF=function(a){if((0,window.isNaN)(a.ha)){var b=x(a.dd,a);a.ha=Ti(b,0)}};
EF=function(a){if((0,window.isNaN)(a.N)){var b=x(function(){this.N=window.NaN;this.dd()},a);
a.N=Ti(b,1E3)}};
IF=function(a,b,c,d,e){if(c.updating)return!0;var f=eE(b.o);if(!f)return!1;!b.A||b.A.C||SE(b.A,f.info)||(b.A=null,$z(a.b)&&c.abort(),c.b=null);var k=a.B.isLive&&lE(f),l=!a.B.o&&b.ca.aa&&yE(b);a.A.Ca&&a.B.o&&0==f.info.g&&1==f.info.b.info.g&&(a.B.g?null!=b.A&&b.A.b==f.info.b:null!=c.b&&c.b==f.info.b.b)&&(TD(iE(f),1836019574),TD(iE(f),1718909296),f.B=!1);if(!a.B.o||0==f.info.g)if(k=k||a.B.g||f.B,l||!k){if(k=f.info.b.b,c.b==k?k=!1:(FF(a,c,k),c.b=k,a.X("initsegment",c.b),k=c.updating),k)return!0}else c.b=
null;k=yF(a,b,!1);k=a.C+k;null!==d&&0<=d&&(k=Math.min(k,d));if(b.L)d=eE(b.o).range;else a:if(d=b.o,d.b[0].info.B>=k)d=null;else{var m;for(m=1;m<d.b.length;m++){var n=d.b[m].b!=d.b[m-1].b;if(d.b[m].info.B>k||n||d.A.aa)break}m--;m=d.b[m];var n=m.range.end,t=m.info.D-k;if(d.C.gd()&&d.C.info.audio&&0<=d.A.ca&&t>d.A.ca){k=Math.floor((k-m.info.B)/m.info.G*m.info.o);if(0==k){d=null;break a}n=m.range.start+k-1}d=new vD(d.b[0].B?0:d.b[0].range.start,n)}if(!d)return!1;if(l){if(zE(b))return!1;if(k=BE(b,a.Ca))return GF(a,
c,new window.Uint8Array(k),f,b)?(DE(b),!0):!1}k=new window.Uint8Array(f.b,d.start,d.length);if(a.ma&&f.info.b.info.video&&1==f.info.b.info.g&&(m=a.ma,n=k,0==f.info.g&&(m.g=0,m.b=0,m.o=[]),!((0,window.isNaN)(m.g)||8>n.length))){for(var t=new window.DataView(n.buffer,n.byteOffset),u=!1;!u;)if(m.g==m.b)a:{var u=m,y=t,E=n.length;if(u.g+7>=E){for(var D=u.g;D<E;D++)u.o.push(y.getUint8(D));u=!0}else{if(0<u.o.length){for(D=0;8>u.o.length;D++)u.o.push(y.getUint8(D));D=uD(u.o,0);y=uD(u.o,4);u.o=[]}else D=y.getUint32(u.b),
y=y.getUint32(u.b+4);if(1836019558==y||1836019574==y||1718909296==y||1936286840==y)u.g+=D,u.b=u.g;else if(1835295092==y)u.g+=D,u.b+=8;else{u.g=window.NaN;u=!0;break a}u=u.b>=E}}else a:if(u=m,E=t,y=n.length,u.b+5>=y){for(D=u.b;D<y;D++)u.o.push(E.getUint8(D));u=!0}else{if(0<u.o.length){for(D=0;6>u.o.length;D++)u.o.push(E.getUint8(D));D=uD(u.o,0);12==D&&6==u.o[4]&&45==u.o[5]&&E.setUint8(u.b+5,63);u.b+=D+4;u.o=[]}for(;u.b<u.g&&u.b+5<y;){D=E.getUint32(u.b);if(0>=D){u.g=window.NaN;u=!0;break a}12==D&&6==
E.getUint8(u.b+4)&&45==E.getUint8(u.b+5)&&E.setUint8(u.b+5,63);u.b+=D+4}u=u.b>=y}(0,window.isNaN)(m.g)||(m.g-=n.length,m.b-=n.length)}m=!1;if(3==f.info.type&&(1==f.info.b.info.g||2==f.info.b.info.g))if(m=1==f.info.b.info.g&&a.A.Wa&&!l&&!b.K&&0==f.info.g&&0<f.info.startTime)jE(f,0);else if(a.B.o&&0==f.info.g&&!a.A.R){a:if(yE(b)&&!lE(eE(b.o))&&zE(b))e=!1;else{l=null===b.D?f.info.startTime:b.D;0==jE(f,l)?(l=gE(f.info),l.smst=1,a.Nc(!0,"fmt.unparseable",l)):(n=kE(f),b.D=l+n,a.B.g&&f.info.b.info.video&&
HF(a,f,l,n));l=0;f.info.b.info.video&&null!==e&&f.info.duration&&!a.B.g&&(n=1E3*(kE(f)-f.info.duration),e-=b.F+n,25<=Math.abs(e)&&(l=e/1E3));e=l;l=kE(f);n=l+e;e&&!lE(f)&&(t=gE(f.info),t.deltaOffsetMs=1E3*(l-f.info.duration).toFixed(3),t.cumOffsetMs=b.F.toFixed(3),t.finalDurSecs=n.toFixed(3),a.Nc(!1,"qoe.avsync",t));if(yE(b)&&!lE(eE(b.o))&&e&&0<n){if(b.F+=1E3*(l-f.info.duration+e),b.D+=e,e=BE(b,r,n*mE(f))){if(GF(a,c,new window.Uint8Array(e),f,b)){DE(b);e=!0;break a}e=!1;break a}}else b.F+=1E3*(l-f.info.duration);
e=null}if(null!=e)return e}else if(a.A.R&&a.B.g&&f.info.b.info.video){e=f.info.b.b;n=l=window.NaN;t=0;for(u=new window.DataView(f.b);JD(u,t);)E=KD(u,t),1936286840==E.type?n=PD(E):1836476516==E.type?n=HD(E):1952867444==E.type&&(0,window.isNaN)(l)&&(l=ND(E)),t=LD(E.type)?t+8:t+E.size;!n&&e&&(n=ID(e));HF(a,f,l/n||f.info.B,kE(f))}if(!GF(a,c,k,f,b))return!1;b.K=!0;m?(jE(f,f.info.startTime),c.abort(),c.b=null,TE(f.info)):(CE(b,d),TE(b.A),tC(c.buffered));f.B&&(c.b=f.info.b.b,a.X("initsegment",c.b));return!0};
GF=function(a,b,c,d,e){b=FF(a,b,c);return 0!=b?(2!=b&&(d.info.b.info.video?(a=a.A,a.o=Math.floor(.5*a.o),a.N=Math.floor(.5*a.N),a.b=Math.floor(.5*a.b),a.C=Math.floor(.5*a.C)):(a=a.A,a.B=Math.floor(.5*a.B),a.$=Math.floor(.5*a.$),a.b=Math.floor(.5*a.b)),JE(e)),!1):!0};
HF=function(a,b,c,d){d=new nF(b.info.A,c,d,b.o.ingestionTime+(a.qa.o()||0),"sq/"+b.info.A);var e=a.B,f=!1,k;for(k in e.b)d.b>e.b[k].index.Qb()&&(e.b[k].index.ra.push(d),f=!0);f&&(b=b.o,b=b.b["Cuepoint-Type"]?new AD((0,window.parseFloat)(b.b["Cuepoint-Playhead-Time-Sec"])||0,(0,window.parseFloat)(b.b["Cuepoint-Total-Duration-Sec"])||0,b.b["Cuepoint-Context"]):null)&&(b.ae+=c,a=a.B,a.F.push(b),a.X("cuepointsadded"))};
FF=function(a,b,c){try{eA(a.b)?b.appendBuffer(c):b.append(c)}catch(d){return 11==d.code?(a.Nc(!1,"html5.invalidstate",{updating:""+ +b.updating,mrs:a.b.o.readyState}),2):22!=d.code&&0!=d.message.indexOf("Not enough storage")?(Xi(d),4):1}return bA(a.b)?3:0};
JF=function(a,b){b.o.subscribe("error",a.zD,a);b.o.subscribe("timestamprewrite",a.UE,a)};
yF=function(a,b,c){if(a.A.J&&a.G)return a.A.J;var d=b.g.info.audio?a.A.B:a.A.o;!a.A.H&&a.D.b.isLocked()&&(d=Math.max(d,b.g.info.audio?a.A.$:a.A.N));c&&(d+=a.A.L);b=a.D.b.isLocked()?b.b?b.b.b.info.b:b.g.info.b:b.R;d/=b;0<a.A.b&&(d=Math.min(d,a.A.b));a.A.ia&&(c=fD(a.F),d=Math.min(d,a.A.K+a.A.da+Math.max(b-Math.max(1-.4*a.A.La,0)*c,0)*a.A.ga/b));return d};
KF=function(a){if(a.B.isLive){if(!a.o.g.index.ff())return window.NaN;var b=a.o.g.index.kg(),c=a.o.g.index.Qb(),d=a.o.g.index;return 1>a.A.liveChunkReadahead?d.ef(c)+d.df(c)-.2:d.ef(Math.max(b,c-a.A.liveChunkReadahead+1))+.2}return Math.floor(Math.min(a.o.g.index.Wg(),a.g.g.index.Wg()))};
LF=function(a,b,c,d){if(b.g.Xc())if(d){var e=vC(d.buffered,c),f=window.NaN,k=b.A;k&&(f=vC(d.buffered,k.b.index.ef(k.A)));if(e==f&&LE(b))return c;d=EE(b,c);if(0<=d)return d;d=b.g.gd()?1:2;IE(b,d);b.g.info.video&&b.A&&!b.A.C&&!Uba(b.o)&&b.g.gd()&&(d=b.A,b.o.b.length&&(d=fE(b.o).info),d=b.b||d,d=d.b.Xg(d,d.range.length-(d.o+d.g)),sE(b,BF(a,d)));if((0,window.isNaN)(e))return GE(b,c);GE(b,e+oF.b)}else GE(b,c);else b.g.o||pF(a,b,!1),0!=c&&HE(b);return c};
MF=function(a,b,c){b.g!=c&&(b.g=c,c.o||pF(a,b,!1))};
pF=function(a,b,c){var d=c?65536:0;c&&!(0,window.isNaN)(2)&&(d=Math.min(a.A.C,Math.floor(Math.max(d,2*b.g.info.b))));c=b.g.Gl(d);F(c,function(a){if("f"!=a.b[0].b.info.o){var c=BF(this,a);!vE(a.b[a.b.length-1])&&sE(b,c)}},a);
b.g.o=!0};
NF=function(a){if(!a.g.b)return"";a=aF(a.g.b.b.C.b);return a.substr(0,a.indexOf("."))};
OF=function(a){var b={lct:a.C.toFixed(3),lsk:a.K,lmf:a.D.b.isLocked(),lbw:fD(a.F).toFixed(3),lhd:gD(a.F).toFixed(3),ltd:(1E9*eD(a.F)).toFixed(3),laa:a.o.A?TE(a.o.A):"",lva:a.g.A?TE(a.g.A):"",lar:a.o.b?TE(a.o.b):"",lvr:a.g.b?TE(a.g.b):"",lvh:NF(a)};a.b&&!bA(a.b)&&(b.lab=tC(a.b.b.buffered),b.lvb=tC(a.b.g.buffered));return b};
qF=function(a,b,c){a.na[b]=c?window.performance.timing.navigationStart+c:zq()};
tF=function(a){a.o&&IE(a.o,0);a.g&&IE(a.g,0)};
PF=function(a,b,c){this.b=a;this.g=b;this.B=c;this.A={};this.o=null;this.fairPlayCert=""};
RF=function(a){return!a.o&&QF()&&"com.microsoft.playready"==a.g};
SF=function(a){return!a.o&&QF()&&"com.apple.fps.1_0"==a.g};
QF=function(){var a=window.MSMediaKeys;Pp()&&!a&&(a=window.WebKitMediaKeys);return a&&a.isTypeSupported?a:null};
UF=function(a){var b=bm&&Rz("45"),c=TF&&a.Z("edge_nonprefixed_eme");a=yA&&Rz("47")&&a.Z("firefox_eme");return window.navigator.requestMediaKeySystemAccess&&(b||c||a)};
VF=function(a,b,c,d,e){G.call(this);this.B=a;this.J=b;this.F=c;this.g=d;this.b=e;this.sessionId="";this.o=this.H=this.G=this.C=this.D=null;this.A=new Fx(this);H(this,this.A);this.g?(this.A.S(this.g,"message",this.WI),this.A.S(this.g,"keystatuseschange",this.XI)):this.b&&(Gx(this.A,this.b,["mskeymessage","webkitkeymessage"],this.ts),Gx(this.A,this.b,["mskeyerror","webkitkeyerror"],this.rs),Gx(this.A,this.b,["mskeyadded","webkitkeyadded"],this.qs))};
gca=function(a){var b=[];a.g.keyStatuses.forEach(function(a,d){"usable"==a&&b.push(String.fromCharCode.apply(null,new window.Uint8Array(d)))});
return b};
WF=function(a,b){G.call(this);this.g=a;this.b=b;this.C={};this.A=null;this.B=new Fx(this);H(this,this.B);this.o=this.D=null};
XF=function(a){if(a.b.o)return a.b.o.createMediaKeys().then(Si(x(function(a){this.D=a;this.g.setMediaKeys(a)},a)));
RF(a.b)?a.o=new (QF())(a.b.g):SF(a.b)?(a.o=new (QF())(a.b.g),a.g.webkitSetMediaKeys(a.o)):hca(a);return null};
hca=function(a){Gx(a.B,a.g,["keymessage","webkitkeymessage"],a.$I);Gx(a.B,a.g,["keyerror","webkitkeyerror"],a.ZI);Gx(a.B,a.g,["keyadded","webkitkeyadded"],a.YI)};
YF=function(a,b){var c=a.C[b.sessionId];!c&&a.A&&(c=a.A,a.A=null,c.sessionId=b.sessionId,a.C[b.sessionId]=c);return c};
ZF=function(){this.keys=[];this.values=[]};
ica=function(a){a.keys=[];a.values=[]};
$F=function(a,b){return db(a.keys,function(a){return Gb(b,a)})};
jca=function(a,b,c){this.url=a;this.interval=b;this.b=c};
kca=function(a,b,c){this.b=a;this.headers=b;this.message=c};
bG=function(a,b,c,d,e,f){G.call(this);this.o=a;this.b=d;this.b.subscribe("oauthtoken",this.Vu,this);this.A={session_id:e};this.J=f;this.H=0;a=this.o.B;SF(this.o)&&(a=c.b.subarray(4),a=String.fromCharCode.apply(null,new window.Uint16Array(a.buffer,a.byteOffset,a.byteLength/2)).replace("skd://","https://"));aG(this,a);this.C=this.D=!1;var k;try{k=b.createSession(c)}catch(l){b="t.g",l instanceof window.DOMException&&(b+=";c."+l.code),this.b.X("licenseerror","drm.unavailable",!0,b,"YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK"),
k=null}if(this.g=k)b=this.g,c=this.ZH,k=this.YH,a=this.aI,b.D=this.$H,b.C=c,b.G=k,b.H=a,b.o=this,H(this,this.g);this.F={}};
lca=function(a,b){this.message=a;this.number=b;this.b=!1};
aG=function(a,b){if(mca.test(b)){for(var c in a.A)b=ah(b,c,a.A[c]);a.B=b}else cG(a,"drm.net",!0,"t.u")};
cG=function(a,b,c,d,e){a.isDisposed()||a.b.X("licenseerror",b,c,d,e);c&&a.dispose()};
nca=function(a,b){return Th(a,function(a){return"HD"==b[a]})?"auto":"large"};
oca=function(a){if(!a)return{};var b={};F(a.split(";"),function(a){a=a.split(",");2==a.length&&(b[Zq(a[1])]=a[0])});
return b};
dG=function(a,b){this.b=a;this.contentType=b||null};
fG=function(a,b,c,d,e,f){pk.call(this);a.addKey||a.webkitAddKey||QF()||UF(c);this.$=c;this.D=a;this.b=b;this.aa=!!f;this.subscribe("newlicense",this.OD,this);this.subscribe("newsession",this.PD,this);this.subscribe("sessionready",this.GE,this);this.subscribe("keystatuseschange",this.bI,this);this.R=e||er();this.H=null;this.o=new ZF;this.g=[];this.B=eG;this.G=new WF(a,b);H(this,this.G);this.A=null;RF(b)&&(this.A=new WF(a,b),H(this,this.A));this.K=2;this.F=new Fx(this);H(this,this.F);this.J=!1;this.L=
null;this.C=!1;a=this.D;this.b.o?this.F.S(a,"encrypted",this.UC):Gx(this.F,a,RF(this.b)?["msneedkey"]:["needkey","webkitneedkey"],this.MD);(a=XF(this.G))?a.then(Si(x(this.yD,this)),Si(x(this.dC,this))):this.C=!0;this.A&&XF(this.A);this.N=d};
hG=function(a,b,c){a.isDisposed()||RF(a.b)==c||a.J&&"widevine"==a.b.b&&!a.N||(a.J=!0,a.o.get(b.b)||(a.g.push(b),1<a.g.length||a.C&&a.o.set(b.b,gG(a,b))))};
gG=function(a,b){a.o.get(b.b);var c=new bG(a.b,a.G,b,a,a.R,a.aa);c.Vu(a.H);"playready"==a.b.b&&a.$.Z("playready_on_borg")&&(kc(c.A,{prob:"1"}),aG(c,c.B));return c};
iG=function(a){this.g={};this.g.c1a=x(this.B,this);this.g.c3a=x(this.C,this);this.g.c6a=x(this.A,this);(this.b=a)&&this.b.yb?this.o=Oj(this.b.yb):this.o=[]};
jG=function(a,b,c,d){this.videoData=a;this.b=b;this.reason=c;this.g=d};
pca=function(a,b){this.V=a;this.b=b};
kG=function(a,b){return mz(mz(a.V.Ge,b.Sa),b.Wa)};
mG=function(a,b){var c=xu();return"auto"!=c?jz("auto",c,!1):lG(a,b)};
lG=function(a,b){if($A(a.V)&&vA(a.V.K,pA))return lz;var c;c=!!b.o.b;var d;LA(a.V)&&(d=window.screen&&window.screen.width?new hf(window.screen.width,window.screen.height):null);d||(d=a.V.Gd?a.V.Gd.clone():a.b.Ia());(IA||nG||c)&&d.scale(window.devicePixelRatio||1);c=d;var e;d=b.o.videoInfos;if(d.length){var f=.85;2==d[0].video.projectionType?f*=.5:3==d[0].video.projectionType&&(f*=.25);for(var k=0;k<d.length&&!(e=d[k].video,null===c||e.width*f<c.width&&e.height*f<c.height);k++);e=jz("auto",e.quality,
!1)}else e=lz;c=e.b;Qp()&&(c=Math.max(c,iz.hd1080));(Kp("armv7")||Kp("android"))&&!$A(a.V)&&oG(b.o.videoInfos[0])&&(c=Math.min(c,iz.large));c=Math.max(c,iz.medium);e.b!=c&&(e=new hz(e.g,c,e.o));return e};
qca=function(a){this.A=this.b=window.NaN;this.g=this.o=!1;this.B=!!a};
pG=function(a,b){a.b=b;a.o=!0};
yq=function(a,b,c,d){var e=1<d;e&&(a.g=!0);if(a.o)b!=a.b&&(a.o=!1);else if(0<b&&a.b==b)return c-a.A>(e||!a.g?1500:400);a.b=b;a.A=c;return a.B&&a.g&&0>=d};
qG=function(a){if(a.Em)return 4;var b=Sh("visibilityState",window.document);return b&&"visible"!=b?3:a.L?2:a.Oa?1:0};
rca=function(){this.g=0;this.b=this.C=this.o=this.A=window.NaN;this.B=0;this.G=this.H=this.D=this.F=window.NaN};
rG=function(){this.endTime=this.startTime=-1;this.$k="-";this.playbackRate=1;this.visibilityState=0;this.Wk=""};
sG=function(a,b,c,d,e,f,k,l,m,n,t){this.videoData=a;this.b=b;this.A=c;this.B=d;this.g=e;this.C=f;this.J=k;this.G=l;this.H=m;this.D=n;this.F=t||function(){};
this.o=null};
Du=function(a){return tG(a)()};
tG=function(a){if(!a.o){var b=qa(function(a){var b=zq();a&&631152E6>=b&&(Xi(Error("invalid yt.now value: "+b)),b=(new Date).getTime());return b},a.b.experiments.Z("html5_validate_yt_now"));
a.o=qa(function(a){return Math.round(b()-a)/1E3},b())}return a.o};
Vu=function(a){var b=a.A();a=a.videoData;var c={};a.g&&(c.fmt=Fu(a.g),a.B&&Fu(a.B)!=Fu(a.g)&&(c.afmt=Fu(a.B)));c.plid=a.playbackId;c.ei=a.eventId;c.list=a.playlistId;c.cpn=a.clientPlaybackNonce;a.videoId&&(c.v=a.videoId);a.Lb&&(c.infringe=1);a.Ca&&(c.splay=1);a.xa&&(c.live=a.K?"dvr":"live");a.J&&(c.autoplay=1);a.Jo&&(c.sdetail=a.Jo);a.Aa&&(c.partnerid=a.Aa);a.osid&&(c.osid=a.osid);ra(b,c);return b};
lu=function(a){var b=new rG;b.$k=a.A().cc||"-";b.playbackRate=a.H();var c=a.getVisibilityState();0!=c&&(b.visibilityState=c);a=a.G();a.Vb&&a.Vb.id&&"und"!=a.Vb.id&&(b.Wk=a.Vb.id);return b};
uG=function(a,b){this.state=a;this.b=b};
bv=function(a,b){return P(a.state,b)&&!P(a.b,b)?1:!P(a.state,b)&&P(a.b,b)?-1:0};
vG=function(a,b){this.b=a||0;this.spatialAudioType=b||0};
wG=function(a,b,c,d,e,f,k,l){this.id=a;this.g=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.b=k||0;this.A=l||0;this.audio=c||null;this.video=d||null;this.Vb=e||null;this.hf=f||null;this.o=sca[Fu(this)]||""};
Fu=function(a){return a.id.split(";",1)[0]};
oG=function(a){return"9"==a.o||"("==a.o||"9h"==a.o};
xG=function(a){return!(a.audio&&a.video)};
yG=function(a){return 0<=a.indexOf("opus")||0<=a.indexOf("vorbis")||0<=a.indexOf("mp4a")};
zG=function(a){return 0<=a.indexOf("vp9")||0<=a.indexOf("vp8")||0<=a.indexOf("avc1")};
AG=function(a,b,c){this.name=a;this.id=b;this.isDefault=c};
BG=function(a,b,c,d,e,f,k,l,m,n,t){this.width=a;this.height=b;if(!f)a:{f=Math.max(a,b);a=Math.min(a,b);b=jA[0];for(var u=0;u<jA.length;u++){var y=jA[u],E=iz[y];if(f>=Math.floor(16*E/9)*BG.prototype.o||a>=E*BG.prototype.o){f=b;break a}b=y}f="tiny"}this.quality=f;this.OF=iz[this.quality];this.isAccelerated=!!k;this.fps=c||0;this.A=e||0;this.projectionType=d||0;(c=l)||(c=this.fps,d=this.projectionType,e=iz[this.quality],c=0==e?N("YTP_AUTO"):e+(2==d||3==d?"s":"p")+(55<c?"60":49<c?"50":39<c?"48":""));
this.qualityLabel=c;this.b=m||"";this.primaries=n||"";this.g=!1!==t};
tca=function(a){return CG(function(a,c){return vu(a,c,4,1E3)},a,{format:"RAW",
method:"GET"})};
CG=function(a,b,c){return a(b,c).then(function(b){var e=!b.responseText||2048<b.responseText.length?"":0==b.responseText.indexOf("https://")?b.responseText:"";return e?CG(a,e,c):b})};
DG=function(a){this.o=a;this.B=this.A=this.C="";this.b={};this.g=""};
EG=function(a){a.g||(a.g=uca(a));return a.g};
aF=function(a){FG(a);return a.B};
GG=function(a){FG(a);return Sb(a.b,function(a){return null!==a})};
FG=function(a){if(a.o){if(!HG.test(a.o))throw Error("Untrusted URL: "+a.o);var b=ph(a.o);a.C=b.A;a.B=b.g+(null!=b.D?":"+b.D:"");var c=b.o;if(0==c.indexOf("/videoplayback"))a.A="/videoplayback",c=c.substr(14);else if(0==c.indexOf("/api/manifest/")){var d=c.indexOf("/",14);0<d?(a.A=c.substr(0,d),c=c.substr(d+1)):(a.A=c,c="")}d=a.b;a.b=IG(c);ra(a.b,JG(b.J()));ra(a.b,d);a.o="";a.g=""}};
uca=function(a){FG(a);var b=a.C+(a.C?"://":"//")+a.B+a.A;if(GG(a)){var c=[];Pb(a.b,function(a,b){null!==a&&c.push(b+"="+a)});
b+="?"+c.join("&")}return b};
IG=function(a){a=a.split("/");var b=0;a[0]||b++;for(var c={};b<a.length;b+=2)a[b]&&KG(c,a[b],a[b+1]);return c};
JG=function(a){a=a.split("&");for(var b={},c=0;c<a.length;c++){var d=a[c],e=d.indexOf("=");0<e?KG(b,d.substr(0,e),d.substr(e+1)):d&&(b[d]="")}return b};
KG=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};
LG=function(a,b){for(var c=a;c;c=c.parentNode)if(c.attributes){var d=c.attributes[b];if(d)return d.value}return""};
MG=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};
NG=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)};
OG=function(){this.ra=[]};
qC=function(a,b){var c=PG(a,b);return c?c.ingestionTime:window.NaN};
PG=function(a,b){var c=Ab(a.ra,new nF(b,0,0,0,""),function(a,b){return a.b-b.b});
return 0<=c?a.ra[c]:null};
vca=function(a,b){var c=Ab(a.ra,{startTime:b},function(a,b){return a.startTime-b.startTime});
return 0<=c?a.ra[c]:a.ra[Math.max(0,-c-2)]};
QG=function(a,b){if(b>a.Qb())a.ra=[];else{var c=ab(a.ra,function(a){return a.b>=b},a);
0<c&&a.ra.splice(0,c)}};
RG=function(a){this.b=a;this.g={};this.o=""};
wca=function(a,b){var c=b.indexOf("?");if(0<c){var d=JG(b.substr(c+1));Pb(d,function(a,b){this.set(b,a)},a);
b=b.substr(0,c)}d=IG(b);Pb(d,function(a,b){this.set(b,a)},a)};
sB=function(a){a.o||(a.o=xca(a));return a.o};
xca=function(a){var b=EG(a.b),c=[];Pb(a.g,function(a,b){c.push(b+"="+a)});
if(!c.length)return b;var d=c.join("&");a=GG(a.b)?"&":"?";return b+a+d};
yca=function(a,b){var c=new DG(b);Pb(a.g,function(a,b){c.set(b,null)});
return c};
zca=function(a){this.b=a;this.A=a.clone();this.g=0;this.o=-1};
SG=function(a,b,c){this.index=null;this.info=b;this.initRange=c||null;this.b=null;this.A=this.o=!1;this.C=new zca(a)};
TG=function(a,b,c){this.o=a[0].b.C;this.g=b||"";this.b=a;this.range=this.b[0].range&&0<this.b[0].o?aca(this.b):null;this.A=!!c};
uB=function(a,b){var c;/http[s]?:\/\//.test(a.g)?c=new RG(new DG(a.g)):(c=new RG(a.o.b),a.g&&wca(c,a.g));var d=b||a.range;d&&c.set("range",d.toString());return c};
xE=function(a){if(a.range)return a.range.length;a=a.b[0];return Math.round(a.G*a.b.info.b)};
UG=function(a,b,c,d,e,f){SG.call(this,a,b,d);this.index=e||new OG;this.F=c;this.D=!0;this.g=!!f;if(this.B=!c)this.o=!0};
VG=function(a,b,c){if(a.g&&0==a.index.df(b))return a=new RE(3,a,null,b),b=0<=b?"sq/"+b:"",new TG([a],b,!!b);var d=a.index.gq(b),e=a.index.ef(b),f=a.index.df(b);c?f=c=0:c=0<a.info.b?a.info.b*f:1E3;a=new RE(3,a,null,b,e,f,0,c,b==a.index.Qb()&&!a.D&&0<c);return new TG([a],d)};
Aca=function(a,b,c,d){this.b=a;this.ae=b;this.durationSecs=c;this.g=d||window.NaN};
WG=function(){this.b=[];this.g=null;this.A=0;this.o=[]};
Bca=function(a){var b=a.o;a.o=[];return b};
Cca=function(){this.A=[];this.b=null;this.g={};this.o={}};
Gca=function(a,b,c){var d=[];b=b.getElementsByTagName("SegmentTimeline");for(var e=0;e<b.length;e++){var f=b[e].parentNode.parentNode,k=null;"Period"==f.nodeName?k=Dca(a):"AdaptationSet"==f.nodeName?k=Eca(a,f.attributes.mimeType.value):"Representation"==f.nodeName&&(k=Fca(a,f.attributes.id.value));if(null==k)return;k.update(b[e],c);tb(d,Bca(k))}Db(d,function(a){return a.ae});
tb(a.A,d)};
Hca=function(a){a.b&&(a.b.b=[]);Pb(a.g,function(a){a.b=[]});
Pb(a.o,function(a){a.b=[]})};
Dca=function(a){a.b||(a.b=new WG);return a.b};
Eca=function(a,b){a.g[b]||(a.g[b]=new WG);return a.g[b]};
Fca=function(a,b){a.o[b]||(a.o[b]=new WG);return a.o[b]};
XG=function(){this.ya=0;this.b=new window.Float64Array(128);this.g=new window.Float64Array(128);this.A=1;this.o=!1};
YG=function(a){if(a.b.length<a.ya+1){var b=2*a.b.length,b=b+2,c=a.b;a.b=new window.Float64Array(b+1);var d=a.g;a.g=new window.Float64Array(b+1);for(b=0;b<a.ya+1;b++)a.b[b]=c[b],a.g[b]=d[b]}};
ZG=function(a,b,c,d,e,f){SG.call(this,a,b,c||void 0);this.indexRange=d;this.B=null;this.index=new XG;this.g=e;this.lastModified=f};
$G=function(a,b,c,d){for(var e=[];b<=a.index.Qb();b++){var f;f=a.index;f=xD(f.jk(b),b+1<f.ya||f.o?f.b[b+1]-f.b[b]:-1);var k=a.index.ef(b),l=a.index.df(b),m=Math.max(0,c-f.start),n=Math.min(f.end+1,c+d)-(f.start+m);e.push(new RE(3,a,f,b,k,l,m,n,b==a.index.Qb()&&m+n==f.length));if(f.start+m+n>=c+d)break}return new TG(e)};
aH=function(a,b,c){pk.call(this);this.H=this.duration=0;this.isLive=this.o=!1;this.D=zq();this.B=window.Infinity;this.b={};this.K=a||"";this.C=this.G=0;this.A=null;this.aa=!!b&&b.Z("html5_live_nonzero_first_segment_start_time");this.g=!1;this.F=[];this.ca=!!b&&b.Z("html5_live_self_init_segments");this.J=null;this.ea=c};
xA=function(a){return Sb(a.b,function(a){return!!a.info.hf},a)};
AA=function(a){return Sb(a.b,function(a){return a.info.video?2==a.info.video.projectionType:!1},a)};
BA=function(a){return Sb(a.b,function(a){return a.info.video?3==a.info.video.projectionType:!1},a)};
bH=function(a,b,c,d){return d?Ica(a):Jca(a,b,c)};
Jca=function(a,b,c){var d=new aH;d.duration=c||0;F(a,function(a){var c=cH(a,b,d.duration),k=wD(a.init),l=wD(a.index),m=(0,window.parseInt)(a.clen,10),n=dH(a.url,c,a.s);a=(0,window.parseInt)(a.lmt,10);n&&(c=new ZG(n,c,k,l,m,a),d.b[c.info.id]=c)});
return d};
Ica=function(a){var b=new aH;F(a,function(a){var d=cH(a);if(a=dH(a.url,d,a.s))d=new UG(a,d,"",void 0,void 0,!0),b.b[d.info.id]=d});
b.o=!0;b.g=!0;b.isLive=!0;return b};
cH=function(a,b,c){var d=a.type,e=a.itag,f=Kca(a),k=null;zG(d)&&(k=(a.size||"640x360").split("x"),k=new BG(+k[0],+k[1],+a.fps,+a.projection_type,void 0,void 0,!!a.isAccelerated,a.quality_label,a.eotf,a.primaries,!!a.isAcceleratedUiEnabled));var l=null,m=null;if(yG(d)){l=0;if("258"==e||"261"==e)l=6;l=new vG(l,+a.spatial_audio_type);a.name&&(m=new AG(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 t=null;b&&a.drm_families&&
(t={},F(a.drm_families.split(","),function(a){t[a]=b[a]}));
return new wG(f,d,l,k,m,t,e,c)};
Kca=function(a){var b=a.itag;a.xtags&&(b=a.itag+";"+a.xtags);return b};
dH=function(a,b,c){a=new DG(a);a.set("alr","yes");a.set("keepalive","yes");a.set("ratebypass","yes");a.set("mime",(0,window.encodeURIComponent)(b.mimeType.split(";")[0]));c&&a.set("signature",gz(c));return a};
fH=function(a,b){var c=LG(b,"id"),c=c.replace(":",";");"captions"==c&&(c=LG(b,"lang"));var d=LG(b,"mimeType"),e=LG(b,"codecs"),d=e?d+'; codecs="'+e+'"':d,e=(0,window.parseInt)(LG(b,"bandwidth"),10)/8,f=(0,window.parseInt)(MG(b,"BaseURL").getAttribute("yt:contentLength"),10),f=a.duration&&f?f/a.duration:0,k=null;if(zG(d)){var k=(0,window.parseInt)(LG(b,"width"),10),l=(0,window.parseInt)(LG(b,"height"),10),m=(0,window.parseInt)(LG(b,"frameRate"),10),n=LG(b,"yt:stereoLayout"),t="equirectangular"==LG(b,
"yt:projectionType"),u,y;t&&"layout_top_bottom"==n?u=3:t&&!n?u=2:"layout_left_right"==n&&(y=1);k=new BG(k,l,m,u,y)}y=u=null;if(yG(d)){u=(0,window.parseInt)(LG(b.getElementsByTagName("AudioChannelConfiguration")[0],"value"),10);var E;y=LG(b,"yt:spatialAudioType");"spatial_audio_type_ambisonics_5_1"==y?E=1:"spatial_audio_type_ambisonics_quad"==y&&(E=2);u=new vG(u,E);E=LG(b,"lang")||"";(y=MG(b,"Role"))?(y=LG(y,"value")||"",y=E&&$b(eH,y)?new AG(LG(b,"yt:langName")||E+" - "+y,E+"."+eH[y],"main"==y):null):
y=null}l=null;if(E=MG(b,"ContentProtection"))if((l=E.attributes.schemeIdUri)&&"http://youtube.com/drm/2012/10/10"==l.textContent)for(l={},E=E.firstChild;null!=E;E=E.nextSibling)"yt:SystemURL"==E.nodeName&&(l[E.attributes.type.textContent]=E.textContent.trim());else l=null;return new wG(c,d,u,k,y,l,e,f)};
gH=function(a,b){a.C=1;a.D=zq();return Td(tca(b||a.K).then(x(a.N,a)),x(a.R,a))};
Lca=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=wD(a):d=d+"?range="+a));return new nF(b.b,b.ae,b.durationSecs,b.g,d,e)};
hH=function(a){a=a.b;for(var b in a){var c=a[b].index;if(c&&c.ff())return c.Wg()}return window.NaN};
iH=function(a){a=a.b;for(var b in a){var c=a[b].index;if(c&&c.ff())return c.Ru()}return 0};
jH=function(a){var b=a.b,c;for(c in b)if((a=b[c].index)&&a.ff()){c=0;for(b=a.kg();b<=a.Qb();b++)c+=a.df(b);c/=a.Il();return.5*Math.round(c/.5)}return window.NaN};
Mca=function(a,b){Pb(a.b,function(a){Pb(b,function(b,e){var f=a.C;f.b.set(e,b);f.A.set(e,b)})})};
Nca=function(a,b){if(!a.b["0"]){var c=new BG(0,0,0,void 0,void 0,"auto"),c=new wG("0","",void 0,c);a.b["0"]=b?new UG(new DG("http://www.youtube.com/videoplayback"),c,""):new ZG(new DG("http://www.youtube.com/videoplayback"),c,new vD(0,0),new vD(0,0),0,window.NaN)}};
kH=function(a,b){this.g=[];this.b={};this.o={};this.A=null;this.F=b;Oca(this,a)};
Oca=function(a,b){Pb(b,function(a){a.forEach(function(a){a.hf&&Pb(a.hf,function(b,c){lH[c]&&Pb(lH[c],function(b){this.b[b]=this.b[b]||new PF(c,b,a.hf[c]);this.o[c]=this.o[c]||{};this.o[c][a.mimeType]=!0},this)},this)},this)},a);
a.g=Pca.filter(function(a){return!!this.b[a]},a)};
Qca=function(a){var b={initDataTypes:["cenc","webm"],audioCapabilities:[],videoCapabilities:[]};Pb(a,function(a,d){(0==d.indexOf("audio/")?b.audioCapabilities:b.videoCapabilities).push({contentType:d})});
return[b]};
Rca=function(a){var b=QF(),c=qz();if(b){if(Iz){a.A(new PF("fairplay","com.apple.fps.1_0",""));return}var d=function(a,c){return b.isTypeSupported(c,a)}}else c.addKey||c.webkitAddKey?d=x(c.canPlayType,c):d=function(){return!1};
c=(c=cb(a.g,function(a){var b=this.b[a],c,l;Pb(this.o[b.b],function(m,n){d(n,a)&&(b.A[n]=!0,c|=0==n.indexOf("audio/"),l|=0==n.indexOf("video/"))},this);
return c&&l},a))?a.b[c]:null;
a.g=[];a.A(c)};
mH=function(a,b){this.yc=a;this.b=b};
nH=function(a){this.b=[];if(a)a:{var b;if(a instanceof nH){if(b=a.Ua(),a=a.Pa(),0>=this.Pb()){for(var c=this.b,d=0;d<b.length;d++)c.push(new mH(b[d],a[d]));break a}}else b=Yb(a),a=Xb(a);for(d=0;d<b.length;d++)oH(this,b[d],a[d])}};
oH=function(a,b,c){var d=a.b;d.push(new mH(b,c));b=d.length-1;a=a.b;for(c=a[b];0<b;)if(d=b-1>>1,a[d].yc>c.yc)a[b]=a[d],b=d;else break;a[b]=c};
pH=function(){nH.call(this)};
qH=function(a){pk.call(this);this.o=new pH;this.b=null;this.C={};this.B=a||""};
sH=function(a,b,c){for(c=a.lg(c);0<=c;){var d=a.Ad(c);if(d.o[Math.floor(b/(d.Yb*d.rows))]&&(d=rH(d,b)))return d;c--}return rH(a.Ad(0),b)};
uH=function(a,b,c){c=a.lg(c);for(var d,e;0<=c;c--)if(d=a.Ad(c),e=Math.floor(b/(d.Yb*d.rows)),!d.o[e]){d=a;var f=c,k=f+"-"+e;d.C[k]||(d.C[k]=!0,oH(d.o,f,{pr:f,wr:e}))}tH(a)};
tH=function(a){if(!a.b&&!a.o.isEmpty()){var b=a.o.remove(),c=new window.Image;a.B&&(c.crossOrigin=a.B);c.src=vH(a.Ad(b.pr),b.wr);c.onload=x(a.D,a,b.pr,b.wr);a.b=c}};
wH=function(a,b,c,d){this.o={};this.K=a;this.H=b;a=c.split("#");this.F=(0,window.parseInt)(a[0],10);this.D=(0,window.parseInt)(a[1],10);this.g=(0,window.parseInt)(a[2],10);this.Yb=(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.J=d};
vH=function(a,b){var c=a.H,c=c.replace("$N",a.A),c=c.replace("$L",a.K.toString()),c=c.replace("$M",b.toString());a.C&&(c=Ug(c,{sigh:a.C}));return Jp(c)};
rH=function(a,b){var c=Math.floor(b/(a.Yb*a.rows)),d=a.Yb*a.rows,e=b%d,f=e%a.Yb,e=Math.floor(e/a.Yb),k,l=a.Yn()+1-d*c;l<a.Yb?(k=l,d=1):(k=a.Yb,d=l<d?Math.ceil(l/a.Yb):a.rows);return{url:vH(a,c),Ny:f,Yb:k,aG:e,rows:d,xr:a.F*k,vr:a.D*d}};
xH=function(a,b,c){qH.call(this,c);this.g=this.Pm(a,b);this.A={};1<this.g.length&&this.Ad(0).isDefault()&&this.g.splice(0,1)};
yH=function(a,b,c){return a.Ad(b).Ev(c)};
zH=function(a,b,c,d){c=c.split("#");c=[c[1],c[2],0,c[3],c[4],-1,c[0],""].join("#");wH.call(this,a,b,c,0);this.b=null;this.G=d?3:0};
AH=function(a,b){this.F=b;xH.call(this,a,0)};
Sca=function(a,b){this.g=a;this.b=b;this.o=0};
Tca=function(a){for(var b=[],c=[],d=0,e=a.b.length;d<e;++d){var f=a.b[d];f.bitrate<=a.o?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.b=b.concat(c)};
Uca=function(a,b,c,d,e,f,k,l,m){this.itag=a;this.url=b;this.Gp=c;this.width=d;this.height=e;this.bitrate=k;this.fps=f;this.audioItag=l||null;this.b=m||""};
Vca=function(a){for(var b={},c=0,d=a.length;c<d;++c){var e;e=a[c];var f=e.type.match(/codecs="([^"]*)"/);e=new Uca(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};
BH=function(a,b){this.Sc=a;this.o=b;this.b=null};
CH=function(a,b,c,d,e,f,k,l,m){var n=new vG;d=new BG(d,e,f,null,void 0,k);c=new wG(c,"application/x-mpegURL",n,d,void 0,m);a=new Sca(a,b);a.o=l?l:1369843;return new BH(c,a)};
Wca=function(a,b,c){if(!lA&&!Pp())return[];b=Vca(b);if(!b)return[];var d={RQ:"https://youtube.com/api/drm/fps?ek=uninitialized"},e,f=[],k=[],l=[],m;for(m in b){var n=b[m];if(n.width){var t=b[n.audioItag];t&&(f.push(n),e="fairplay"==n.b?d:null,l.push(CH([t],[n],n.itag,n.width,n.height,n.fps,void 0,void 0,e)))}else k.push(n)}e=l.reduce(function(a,b){return!!b.Sc.hf&&a},!0)?d:null;
l.push(CH(k,f,"93",0,0,0,"auto",c,e));return kA(a.K,l)};
DH=function(a,b){this.Sc=a;this.b=b};
EH=function(a,b,c,d,e,f,k,l){var m=new vG;c in iz||(c="small");e&&f?(f=(0,window.parseInt)(f,10),e=(0,window.parseInt)(e,10)):(f=iz[c],e=Math.round(16*f/9));c=new BG(e,f,0,null,void 0,c,k,void 0,void 0,void 0,l);b=(0,window.unescape)(b.replace(/&quot;/g,'"'));return new DH(new wG(d,b,m,c),a)};
Xca=function(a){var b=[];F(a,function(a){a.url&&b.push(EH(a.url,a.type,"medium","0"))});
return b};
FH=function(a,b){for(var c=[],d=0;d<b.length;d++){var e=b[d];if(e.sig||e.s){var f=e.sig||gz(e.s);e.url=Sj(e.url,{signature:f})}e.url&&c.push(EH(e.url,e.type,e.quality,e.itag,e.width,e.height,!!e.isAccelerated,!!e.isAcceleratedUiEnabled))}return kA(a.K,c)};
GH=function(a){pk.call(this);this.adModule=!1;this.adaptiveFormats="";this.na=null;this.allowEmbed=!0;this.K=this.backgroundable=!1;this.Xf="";this.Lb=this.Zo=!1;GH.prototype.Db=GH.g;this.watchAjaxToken=this.Gd=null;this.author="";this.Ed=0;this.zr=this.Tb=!1;this.clientPlaybackNonce=this.Cc=this.bc="";this.contentCheckOk=!1;this.da=0;this.enableCardioBeforePlayback=this.enableCardio=this.Be=!1;this.ga=0;this.fu=this.L=!1;this.ab=this.Fd=0;this.ha=this.isPharma=this.isMdxPlayback=this.isLowLatencyLiveStream=
this.isLiveDefaultBroadcast=this.isLiveDestination=this.xa=this.Na=this.isListed=this.De=this.fr=this.J=this.Dc=!1;this.Ke="";this.Ee=this.iu=this.Ca=!1;this.Ae=3;this.$=window.NaN;this.liveStartWalltime=0;this.Ge=null;this.dh=this.lengthSeconds=0;this.paygated=!1;this.profilePicture="";this.racyCheckOk=!1;this.autonavState=1;GH.prototype.Sa=lz;this.H=!1;this.startSeconds=0;this.spacecastModule=!1;this.xb=null;GH.prototype.Wa=lz;this.ea=null;this.hlsFormats=this.qa=this.title="";this.Hd=null;this.pf=
"vvt";this.requiresPurchase=!1;this.clipStart=0;this.clipEnd=window.Infinity;this.Ie=this.ia=this.Ga=!1;this.kt="";this.mr=this.Xp=!1;this.vk={};this.no="";this.Yt=!1;this.captionTracks=[];this.be=[];this.xq=0;this.captionTranslationLanguages=[];this.ce=!1;this.Ja=new Oz("und",new AG("Default","und",!0));this.Fe=0;this.Co=this.Ao=!1;this.G=null;this.aa=[];this.Wt=!1;this.mf=null;this.Bo=new ge(this.vt,5E3,this);H(this,this.Bo);this.F=[];this.A={};this.keywords={};this.C={};HH(this,a)};
JH=function(a,b){var c=b||{};c.iv_invideo_url&&(a.Xf=Jp(c.iv_invideo_url));c.iv_ads_only&&(a.Zo="1"==c.iv_ads_only);c.cta_conversion_urls&&(a.qp=c.cta_conversion_urls);a.isPharma=tz(a.isPharma,c.is_pharma);a.author=wz(a.author,c.author);a.Tb=tz(a.Tb,c.cc_asr);var d=c.ttsurl;IH.test(d)?a.bc=d:d&&(d=Ip(d),IH.test(d)&&(a.bc=d));a.Yt=void 0!=c.caption_tracks;c.caption_tracks&&c.caption_audio_tracks&&(Yca(a,c.caption_tracks),a.be=Pj(c.caption_audio_tracks),c.default_audio_track_index&&(a.xq=(0,window.parseInt)(c.default_audio_track_index,
10)||0),c.caption_translation_languages&&Zca(a,c.caption_translation_languages));a.ce=tz(a.ce,c.cc_contribute);a.clientPlaybackNonce=wz(a.clientPlaybackNonce,c.cpn);a.subscribed=wz(a.subscribed,c.subscribed);a.shortViewCount=wz(a.shortViewCount,c.short_view_count_text);a.title=wz(a.title,c.title);a.ypcPreview=wz(a.ypcPreview,c.ypc_preview);a.ypcOrigin=wz(a.ypcOrigin,c.ypc_origin);a.paygated=tz(a.paygated,c.paygated);a.requiresPurchase=tz(a.requiresPurchase,c.requires_purchase);c.keywords&&(a.keywords=
$ca(c.keywords));c.rvs&&(a.N=Pj(c.rvs));a.contentCheckOk=tz(a.contentCheckOk,"1"==c.cco);a.racyCheckOk=tz(a.racyCheckOk,"1"==c.rco);a.oauthToken=wz(a.oauthToken,c.oauth_token);a.visitorData=wz(a.visitorData,c.visitor_data);c.session_data&&(a.Ha=Mj(c.session_data,"&"));c.endscreen_autoplay_session_data&&(a.Vs=Mj(c.endscreen_autoplay_session_data,"&"));a.Us=wz(a.Us,c.endscreen_ad_tracking_data);a.nf=wz(a.nf,c.tracking_list||c.tv_list);F(GH.A,function(a){a in c&&(this.A[a]=c[a])},a)};
HH=function(a,b){var c=b||{};a.K="1"!=c.hlsdvr?!1:mA()?!0:HA&&5>KH?!1:!0;a.Gx=c.ad_query_id;a.Mx=c.agcid;a.Lb="1"==c.infringe||"1"==c.muted;a.Rp=c.authkey;a.Ob=c.authuser;a.clientPlaybackNonce||(a.clientPlaybackNonce=c.cpn||dr());a.ly=1E3*vz(C()/1E3,c.timestamp);a.Be=tz(a.Be,c.cenchd);a.enableCardio=tz(a.enableCardio,c.enable_cardio);a.enableCardioBeforePlayback=tz(a.enableCardioBeforePlayback,c.enable_cardio_before_playback);a.ga=vz(a.ga,c.end||c.endSeconds);a.oc=wz(a.oc,c.itct);a.De=tz(a.De,c.noiba);
a.Na="1"==c.livemonitor;a.xa="1"==c.live_playback||!!c.fresca_preroll;a.isLiveDestination=tz(a.isLiveDestination,c.is_live_destination);a.isLiveDefaultBroadcast="1"==c.live_default_broadcast;a.isLowLatencyLiveStream="1"==c.is_low_latency_live_stream;a.isMdxPlayback=tz(a.isMdxPlayback,c.mdx);a.ha=tz(a.ha,c.reload);a.Ke=wz(a.Ke,c.reload_reason);a.Ee=tz(a.Ee,c.utpsa);a.lr=c.cyc;for(var d in GH.b){var e=c[d+"_webp"]||c[d];VA.test(e)&&(a.vk[GH.b[d]]=e)}d=c.murlmq_webp;VA.test(d)&&(a.no=d);a.R=wz(a.R,c.vvt);
a.Vx=c.osig;a.po=c.ptchn;a.ro=c.oid;a.Oa=c.ptk;a.vo=c.pltype;a.playbackId=c.plid;a.eventId=c.eventid;a.osid=c.osid;a.videoMetadata=c.vm;a.oy=c.of;a.playlistId=wz(a.playlistId,c.list);a.yo=c.pyv_view_beacon_url;a.$x=c.pyv_quartile25_beacon_url;a.fy=c.pyv_quartile50_beacon_url;a.hy=c.pyv_quartile75_beacon_url;a.Yx=c.pyv_quartile100_beacon_url;c.remarketing_url&&(a.remarketingUrl=c.remarketing_url);c.ppv_remarketing_url&&(a.ppvRemarketingUrl=c.ppv_remarketing_url);a.Jo=c.sdetail;!a.Je&&c.session_data&&
(a.Je=Mj(c.session_data,"&").feature);a.isFling=1==vz(a.isFling?1:0,c.is_fling);a.vnd=vz(a.vnd,c.vnd);a.Ce=wz(a.Ce,c.force_ads_url);a.sb=wz(a.sb,c.ctrl);a.tb=wz(a.tb,c.ytr);a.nc=c.ytrcc;a.zo=c.ytrexp;a.Sa=yz(a.Sa,c.vq);a.Wa=yz(a.Wa,c.suggestedQuality);a.Xa=c.approx_threed_layout||0;a.Lo=tz(a.Lo,c.ssrt);a.videoId=zz(c)||a.videoId;a.vssCredentialsToken=wz(a.vssCredentialsToken,c.vss_credentials_token);a.pf=wz(a.pf,c.vss_credentials_token_type);a.ypcGid=wz(a.ypcGid,c.ypc_gid);a.heartbeatToken=wz(a.heartbeatToken,
c.heartbeat_token);a.heartbeatInterval=vz(a.heartbeatInterval,c.heartbeat_interval);a.heartbeatRetries=vz(a.heartbeatRetries,c.heartbeat_retries);a.heartbeatSoftFail=tz(a.heartbeatSoftFail,c.heartbeat_soft_fail);c.ad3_module||c.ad_module?"1"==c.allow_html5_ads?(a.adModule=!0,"1"==c.ad_preroll&&a.F.push("ad")):"1"!=c.supported_without_ads&&(a.fu=!0):c.serialized_ad_break_renderers&&(a.adModule=!0,a.F.push("ad"));c.adaptive_fmts&&(a.adaptiveFormats=c.adaptive_fmts);void 0!=c.atc&&(a.yb=c.atc);c.license_info&&
(a.na=ada(c.license_info));c.allow_embed&&(a.allowEmbed="1"==c.allow_embed);c.backgroundable&&(a.backgroundable="1"==c.backgroundable);c.autonav&&(a.Dc="1"==c.autonav);c.autoplay&&(a.J="1"==c.autoplay);c.iv_load_policy&&(a.Dd=uz(a.Dd,c.iv_load_policy,NA));c.cc_lang_pref&&(a.Eo=wz(c.cc_lang_pref,a.Eo));c.cc_load_policy&&(a.Ho=uz(a.Ho,c.cc_load_policy,NA));c.channel_path&&(a.Cc=wz(c.channel_path,a.Cc));"0"==c.dash&&(a.zr=!0);c.dashmpd&&(a.D=Ug(c.dashmpd,{cpn:a.clientPlaybackNonce}),d=/\/s\/([0-9A-F.]+)/,
e=d.exec(a.D))&&(e=gz(e[1]),a.D=a.D.replace(d,"/signature/"+e));c.delay&&(a.da=Va(c.delay));c.drm_session_id&&(a.drmSessionId=c.drm_session_id);void 0!=c.end&&(a.clipEnd=c.end);c.fair_play_cert&&window.atob&&(a.fairPlayCert=(0,window.atob)(c.fair_play_cert));c.featured&&(a.fr="1"==c.featured);c.fmt_list&&(a.fmtList=c.fmt_list);c.fresca_preroll&&a.F.push("fresca");c.idpj&&(a.Fd=Va(c.idpj));c.ismb&&(a.ab=Va(c.ismb));c.is_listed&&(a.isListed=tz(a.isListed,c.is_listed));c.url_encoded_fmt_stream_map&&
(a.qa=c.url_encoded_fmt_stream_map);c.hls_formats&&(a.hlsFormats=c.hls_formats);c.hlsvp&&(a.hlsvp=c.hlsvp);c.length_seconds&&(a.lengthSeconds=Va(c.length_seconds));c.live_chunk_readahead&&(a.Ae=vz(a.Ae,c.live_chunk_readahead));c.live_start_walltime&&(a.liveStartWalltime=Va(c.live_start_walltime));c.live_manifest_duration&&(a.Ge=Va(c.live_manifest_duration));c.ldpj&&(a.dh=Va(c.ldpj));c.loudness&&(a.perceptualLoudnessDb=c.loudness,a.Db=a.perceptualLoudnessDb?Math.pow(10,Math.min(-21-a.perceptualLoudnessDb,
0)/20):GH.g);c.partnerid&&(a.Aa=Va(c.partnerid));c.probe_url&&(a.probeUrl=Jp(Ug(c.probe_url,{cpn:a.clientPlaybackNonce})));c.profile_picture&&(a.profilePicture=wz(c.profile_picture,a.profilePicture));c.pyv_billable_url&&nv.test(c.pyv_billable_url)&&(a.Cd=c.pyv_billable_url);c.pyv_conv_url&&nv.test(c.pyv_conv_url)&&(a.ua=c.pyv_conv_url);c.video_masthead_ad_quartile_urls&&(d=c.video_masthead_ad_quartile_urls,a.He=d.quartile_0_url,a.nu=d.quartile_25_url,a.gw=d.quartile_50_url,a.lo=d.quartile_75_url,
a.lu=d.quartile_100_url);"1"==c.spacecast_module&&(a.F.push("spacecast"),a.spacecastModule=!0);c.spacecast_addrs&&(a.mf=c.spacecast_addrs.split(","),a.spacecastModule=!0);0<a.startSeconds||(a.startSeconds=vz(a.startSeconds,c.start||c.startSeconds));void 0==c.start||"1"==c.resume||a.xa||(a.clipStart=c.start);c.two_stage_token&&(a.Gd=c.two_stage_token);c.url_encoded_third_party_media&&(a.ea=Pj(c.url_encoded_third_party_media));c.watch_ajax_token&&(a.watchAjaxToken=c.watch_ajax_token);c.ypc_module&&
a.F.push("ypc");c.ypc_clickwrap_module&&a.F.push("ypc_clickwrap");a.jy=wz(a.jy,c.ucid);F("baseUrl uid oeid ieid ppe engaged subscribed".split(" "),function(a){c[a]&&(this.C[a]=c[a])},a);
a.C.focEnabled=tz(a.C.focEnabled,c.focEnabled);a.C.rmktEnabled=tz(a.C.rmktEnabled,c.rmktEnabled);a.A=c;JH(a,c);bda(a);c.adpings&&(a.Do=c.adpings?Oj(c.adpings):null);c.feature&&(a.Ko=c.feature);c.referrer&&(a.referrer=c.referrer);c.q&&(a.searchQuery=c.q);c.multifeed_metadata_list&&(a.aa=Pj(c.multifeed_metadata_list))};
LH=function(a){return C()>a.ly+18E6};
MH=function(a){return!(!a.o||!a.o.videoInfos.length)};
bda=function(a){NH(a)||(a.adaptiveFormats&&!a.xa?(OH(a,bH(PH(a,a.adaptiveFormats),a.na,a.lengthSeconds)),xA(a.b)&&(a.ia=!0)):a.D&&(a.Ga=!0))};
cda=function(a){return a.g&&fA('video/webm; codecs="vp9"')&&Sb(a.b,function(a){return oG(a.info)})};
QH=function(a){return!(!a.b||!a.b.g)};
NH=function(a){return!mA()||a.zr?!0:!1};
RH=function(a){a.isDisposed()||(a.L=!1,a.X("dataloaded",a.A))};
OH=function(a,b,c){c&&a.b&&a.b.dispose();a.b=b;H(a,b);(SH(a)||TH(a)||UH(a))&&a.F.push("webgl");a.b.isLive||(a.xa=!1)};
VH=function(a,b){if(!a.isDisposed()){a.o=null;a.ma=null;a.ca=null;var c=NH(a)||b.Em;if(!c&&a.spacecastAdaptiveFormats)OH(a,bH(PH(a,a.spacecastAdaptiveFormats),a.na,a.lengthSeconds),!0),a.o=EA(b.K,a.b,a.G,!0,!1);else if(a.spacecastFormatMap){var d=PH(a,a.spacecastFormatMap);a.ca=FH(b,d);a.o=new Pz(M(a.ca,function(a){return a.Sc}))}a.o&&(d=cf(a.o.videoInfos,function(a,b){return b.video.isAccelerated&&(!a||a.height<b.video.height)?b.video:a},null))&&(d=jz(d.quality,d.quality,!0),a.Sa=d,a.Wa=d);
a.o||c||!a.b||(b.C||Nca(a.b,a.xa),a.o=EA(b.K,a.b,a.G,!1,Yaa(b)));a.o||(a.ca=dda(a,b),a.ca.length&&(a.o=new Pz(M(a.ca,function(a){return a.Sc}))));
eda(a)}};
dda=function(a,b){if(a.hlsFormats){var c=PH(a,a.hlsFormats),c=Wca(b,c,a.ab);if(c.length)return c}if(a.ea&&a.iu)return c=Xca(a.ea),kA(b.K,c);c=PH(a,a.qa,a.fmtList);if(a.hlsvp){var d;d=a.hlsvp;var e=a.ab,f={cpn:a.clientPlaybackNonce};-1==d.indexOf("/ibw/")&&(f.ibw=e?String(e):"1369843");d={url:Ug(d,f),type:"application/x-mpegURL",quality:"auto",itag:"93"};c.push(d)}return FH(b,c)};
WH=function(a){return a.g&&a.g.hf||null};
XH=function(a){a.Hd||(a.A.storyboard_spec?a.Hd=new xH(a.A.storyboard_spec,a.lengthSeconds):a.A.live_storyboard_spec&&a.b&&(a.Hd=new AH(a.A.live_storyboard_spec,a.b)));return a.Hd};
YH=function(a){return a.b&&!(0,window.isNaN)(iH(a.b))?iH(a.b):0};
ZH=function(a,b){if(a.b&&a.xa){var c=a.b.b[a.g.id];if(!c||!c.index)return null;var d=c.index.yf(b),c=c.index.ef(d);return{sequence:d,elapsed:Math.floor(1E3*(b-c))}}return null};
$H=function(a){return!a.isDisposed()&&!(!a.videoId&&!a.ea)};
aI=function(a){return!!(a.D||a.adaptiveFormats||a.qa||a.ea||a.spacecastFormatMap||a.spacecastAdaptiveFormats||a.hlsvp)};
bI=function(a){var b=gb(a.F,"ypc");a.ypcPreview&&(b=!1);return $H(a)&&!a.L&&(aI(a)||gb(a.F,"fresca")||b)};
cI=function(a){return bI(a)&&!a.Ga&&!a.ia};
PH=function(a,b,c){b=Pj(b);var d={};c&&F(c.split(","),function(a){(a=a.match(/^([0-9]+)\/([0-9]+)x([0-9]+)(\/|$)/))&&(d[a[1]]={width:a[2],height:a[3]})});
F(b,function(a){a.url&&(a.url=Ug(a.url,{cpn:this.clientPlaybackNonce}));var b=d[a.itag];b&&(a.width=b.width,a.height=b.height)},a);
return b};
$ca=function(a){var b={};F(a.split(","),function(a){var d=a.split("=");2==d.length?b[d[0]]=d[1]:b[a]=!0});
return b};
ada=function(a){a=Pj(a);var b={};F(a,function(a){var d=a.family;a=a.url;d&&a&&(b[d]=a)});
return b};
Yca=function(a,b){for(var c=Pj(b),d=0;d<c.length;d++){var e=c[d],f=e.u;IH.test(f)&&a.captionTracks.push(new Lz({is_translateable:e.t,languageCode:e.lc,languageName:e.n,url:f,vss_id:e.v,kind:e.k,format:3}))}};
Zca=function(a,b){for(var c=Pj(b),d=0;d<c.length;d++){var e=c[d];a.captionTranslationLanguages.push(new Kz({languageCode:e.lc,languageName:e.n}))}};
eda=function(a){for(var b=a.o?a.o.audioTracks:[],b=b.concat(a.Ja),c=0;c<a.be.length;c++)for(var d=a.be[c],e=0;e<b.length;e++){var f=b[e],k=f.Vb.id==d.aid;if(f==a.Ja&&c==a.xq||k){if(d.i)for(var k=d.i.split(","),l=0;l<k.length;l++)f.captionTracks[l]=a.captionTracks[(0,window.parseInt)(k[l],10)];d.d&&(f.rl=a.captionTracks[(0,window.parseInt)(d.d,10)]);d.f&&(f.Qi=a.captionTracks[(0,window.parseInt)(d.f,10)]);f.up=(0,window.parseInt)(d.v,10)}}};
us=function(a,b){return!!a.A[b]};
ps=function(a){return a.xa&&!a.K};
dI=function(a){return a.xa&&a.K};
eI=function(a){var b=hc(a.A);!a.xa&&0<a.startSeconds&&(b.start=a.startSeconds);return b};
fI=function(a){if(a.Xa||a.Od["3D"])return!0;a=a.Od("yt3d:enable");return"true"==a||"LR"==a||"RL"==a};
gI=function(a,b){(0,window.isNaN)(a.$)&&(a.$=a.Ae,a.Na&&a.$--,a.b&&(5<=jH(a.b)||QH(a)&&!a.isLowLatencyLiveStream)&&b.Z("html5_live_disable_dg_pacing")&&a.$++,a.$=Math.max(0,a.$));return a.$};
TH=function(a){return a.b&&3!=a.Xa?AA(a.b):!1};
SH=function(a){if(!a.b)return!1;for(var b in a.b.b){var c=a.b.b[b].info.video;if(c&&2==c.projectionType&&3==a.Xa)return!0}return BA(a.b)};
UH=function(a){if(fI(a)&&3!=a.Xa&&4!=a.Xa)return!0;if(a.b)for(var b in a.b.b){var c=a.b.b[b].info.video;if(c&&1==c.A)return!0}return!1};
hI=function(a,b,c,d,e,f){pk.call(this);this.Ca=new qca(a.experiments.Z("html5_always_underrun_on_empty_buffer"));this.D=c;this.Na=d;c=x(function(a,b){a=="crn_"+hI.b&&iI(this);e(a,b)},this);
this.C=new Kt(x(this.getCurrentTime,this),x(this.Bu,this),x(this.getPlayerState,this),c);H(this,this.C);this.ha=window.NaN;this.L=this.F=null;this.V=a;this.ma=new pca(a,this.Na);this.G=!1;this.H=this.A=null;this.$=[];this.ca=new yD;this.R=new yD;this.xb=this.Aa=!1;this.Ga=window.NaN;this.B=new sq;this.ua=[];this.J=b;this.ea=this.ga=null;this.K=window.NaN;this.da=new Fx;H(this,this.da);this.b=new GH;this.g=null;this.aa=window.NaN;this.o=null;this.sb=this.Ha=!1;this.ia=window.NaN;this.Wa=this.Xa=this.qa=
this.na=!1;this.Ja=this.ab=window.NaN;this.Lb=a.experiments.Z("html5_force_play_on_suspend_event");this.Tb=a.experiments.Z("html5_force_play_on_suspend_event_limited");this.N=null;this.bc=this.V.experiments.Z("html5_playing_event_buffer_underrun");this.Oa=new oC(50);this.yb=C();this.tb=!1;this.Db=0!=f};
jI=function(a){Ix()?Kx(a.ia):Vi(a.ia)};
qI=function(a,b,c){a.$.length=0;a.ca.reset();a.R.reset();a.ha=window.NaN;a.K=window.NaN;a.Ha=!1;a.g&&kI(a.g);lI(a);mI(a);nI(a);jI(a);a.Oa.clear();Nb(a.b);if(2==a.J||FA.test(a.V.H))b.iu=!0;a.V.L&&(b.autonavState=a.b.autonavState);a.b=b;a.b.subscribe("dataupdated",a.lF,a);a.b.subscribe("dataloaded",a.Ep,a);a.b.subscribe("dataloaderror",a.Uh,a);a.b.subscribe("onStatusFail",a.kF,a);b.ga&&b.ga>b.startSeconds&&(b=b.ga,a.L&&(a.C.Sh(a.L),a.L=null),a.L=new bq(1E3*b,0x7ffffffffffff),a.L.namespace=hI.b,a.C.vb([a.L]));
mI(a);a.b.ea||(c=new sG(a.b,a.V,c,x(a.Th,a),x(a.getCurrentTime,a),x(a.lz,a),x(a.Na.Ia,a.Na),x(a.Jn,a),x(a.Bu,a),x(a.Ml,a),x(a.zz,a)),a.o=new Tu(c));a.na=!1;oI(a,"newdata");pI(a,new sq)};
mI=function(a){if(a.o){var b=a.o;if(!b.isDisposed()&&b.A){b.C="paused";var c=Yu(b);c.ha=!0;c.send();c=b.g;"PL"==c.o&&(c.o="N");var d=Du(c.b);Au(c,d,"vps",[c.o]);c.Hg(d);Vi(b.B);b.dispose()}Nb(a.o);a.o=null}};
sI=function(a){if($H(a.b))return!0;rI(a,"api.invalidparam",void 0,"invalidVideodata.1");return!1};
tI=function(a,b){a.Aa=!!b;sI(a)&&!a.ca.g&&(a.ca.start(),a.o&&Lu(a.o.g),a.Ep())};
wI=function(a){a.g&&uI(a.g);tI(a);sI(a)&&!P(a.B,128)&&(a.R.g||(a.R.start(),pI(a,Aq(a.B,8)),cI(a.b)||pI(a,Aq(a.B,1))),vI(a))};
vI=function(a){a.isDisposed();if(!a.R.b&&a.ca.b&&!P(a.B,128)&&!a.$.length&&(a.C.A||Lt(a.C),!xI(a))){if(a.A){var b=a.A;a.xb=!!b.L&&!!b.aa}a.R.b=!0;a.b.xa&&(a.seekTo(window.Infinity,!0),yI(a,!0),3==qG(a.V)&&(a.sb=!0));if(a.o){b=a.o;b.b.videoData.enableCardio&&b.b.videoData.enableCardioBeforePlayback&&(b.F("connected"),ev(b));if(b.b.videoData.xa){var b=b.g,c=b.b.videoData.b;c&&jH(c)&&Ju(b,"live-segment-"+jH(c).toFixed(1));c=gI(b.b.videoData,b.b.b.experiments);Ju(b,"live-readahead-"+c)}QH(a.b)&&Ku(a.o.g,
"manifestless","1",void 0)}a.X("playbackready",a);UC("pbr",a.D.b)||(a.D.g("pbr"),RC("pbr",void 0,"video_to_ad"))}};
iI=function(a,b){a.pauseVideo();pI(a,0==b?new sq:new sq(14))};
CI=function(a,b,c,d){a.b.g=c;a.b.B=d||c;if(a.o){var e=mz(mz(lG(a.ma,a.b),zI(a)),AI(a)),e=cb(a.b.o.videoInfos,x(e.A,e)),e=new jG(a.b,c,b,e?Fu(e):"");d&&"i"==b&&BI(a,b,d);d=a.o.g;c=Du(d.b);Au(d,c,"vfs",[e.b.id,e.g,d.ba,e.reason]);d.ba=e.b.id;e=d.b.J();if(0<e.width&&0<e.height){var e=[Math.round(e.width),Math.round(e.height)],f=window.devicePixelRatio||1;1<f&&e.push(f);Au(d,c,"view",e)}Au(d,c,"vps",[d.o]);d.Hg(c)}a.X("internalvideoformatchange",a.b,"m"==b)};
BI=function(a,b,c){a.b.B=c;if(a.o){var d=a.o.g;c=new jG(a.b,c,b,"");var e=Du(d.b);c.b.id!=d.G&&(Au(d,e,"afs",[c.b.id,d.G,c.reason]),d.G=c.b.id)}"i"!=b&&a.X("internalaudioformatchange",a.b,"m"==b)};
rI=function(a,b,c,d){var e,f;Vb(fda,c)?e=c:c?f=c:e="YTP_ERROR_GENERIC_WITHOUT_LINK";b={errorCode:b,errorDetail:d,message:f||N(e),messageKey:e};pI(a,wq(a.B,128,b));jI(a);nI(a);DI(a)};
EI=function(a,b){a.$=a.$.filter(function(a){return b!=a});
a.R.g&&vI(a)};
xI=function(a){var b;(b=!!a.$.length)||(a=a.C.b.b[0],b=!!a&&-0x8000000000000>=a.start);return b};
FI=function(a){a.V.experiments.Z("html5_crossorigin_video")&&a.g&&(a.b.ea||!a.b.o||a.b.o.b?a.g.fn(!1):a.g.fn(!0))};
HI=function(a,b){a.g&&GI(a);a.g=b;gda(a);FI(a)};
GI=function(a){a.b&&a.V.experiments.Z("new_ended_replay")&&(a.b.startSeconds=a.getCurrentTime());a.H&&(a.H.dispose(),a.H=null);a.A&&(DF(a.A),a.A.G=!0);a.g&&(a.o&&a.ca.g&&P(a.B,64)&&!a.b.H&&II(a),lI(a),Hx(a.da),kI(a.g),a.g=null)};
NI=function(a){if(!P(a.B,128))if(a.tb)a.tb=!1,JI(a);else if(wI(a),P(a.B,64)&&pI(a,Aq(a.B,8)),a.R.b&&a.g)if(a.b.o){a.V.experiments.Z("new_ended_replay")&&P(a.B,2)&&a.seekTo(0,!0);if(a.b.xa){var b=a.getCurrentTime()<YH(a.b),c=ps(a.b)&&P(a.B,4);(b||c)&&a.seekTo(window.Infinity,!0);KI(a)?yI(a,!0):a.G&&a.seekTo(window.Infinity,!0)}if(a.b.o.b)b=LI(a),a.A.resume();else{nI(a);var b=a.b.ma.g(),c=a.b,d={};c.Oa&&(d.ptk=c.Oa,d.oid=c.ro,d.ptchn=c.po,d.pltype=c.vo);ra(b.g,d);c=a.V.o;ra(b.g,{c:c.c,cver:c.cver})}(c=
a.g.g)&&Wz(c,b)?MI(a.g):hda(a,b)}else b=a.b.xa&&!nA()?"html5.unsupportedlive":"fmt.noneavailable",rI(a,b,"YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK","selectableFormats.1")};
OI=function(a,b){lI(a);nI(a);b||LI(a)};
PI=function(a){if(a.b.o){var b=zI(a)||lz;a=le(a.b.o.videoInfos,x(b.A,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};
QI=function(a){return mz(mz(mz(kG(a.ma,a.b),mG(a.ma,a.b)),zI(a)),AI(a))};
zI=function(a){return a.b.Be?lz:a.F?a.F.B:MH(a.b)&&a.b.o.b&&xA(a.b.b)?eG:lz};
RI=function(a,b,c){if(!a.isDisposed()&&!P(a.B,128)&&(c&&(a.b.Wa=c),MH(a.b))){"m"==b&&c&&kz(c)&&(b="a");c=QI(a);if(a.b.o.b){if(a.A&&"i"!=b){var d=a.A;d.isDisposed()||((c=Iba(d.D,c,b))&&d.X("videoformatchange",c),MF(d,d.g,nD(d.D)),d.D.b.isLocked()&&"m"==b&&(JE(d.g),JE(d.o)),OE(d.g)&&AF(d,d.g,d.o),DF(d))}}else{a:if(d=a.b.ca,c.b){for(var e=0;e<d.length;e++){var f=d[e].Sc,k=iz[f.video.quality];if((!c.o||"auto"!=f.video.quality)&&k<=c.b){c=d[e];break a}}c=d[d.length-1]}else c=d[0];a.b.ma=c;CI(a,b,a.b.ma.Sc)}a.B.Za()&&
NI(a)}};
SI=function(a){Mca(a.b.b,{c:a.V.o.c,cver:a.V.o.cver});var b=a.V,c=a.b,d=new bba;b.experiments.Z("html5_use_tight_max_buffer_depth")&&(d.ia=!0,d.ga=b.experiments.b("html5_tight_max_buffer_allowed_impaired_time")||d.ga,d.La=b.experiments.b("html5_tight_max_buffer_allowed_bandwidth_stddevs")||d.La,d.da=b.experiments.b("html5_tight_max_buffer_abr_avoidance_padding")||d.da);d.ea=b.experiments.b("html5_throttle_rate")||d.ea;b.experiments.Z("html5_streaming_xhr")&&(d.G=!0);d.J=b.experiments.b("html5_idle_preload_secs");
d.D=b.experiments.Z("html5_report_extended_parse_errors");b.experiments.Z("html5_use_mediastream_timestamp")&&(d.R=!0);if(Pp()||b.experiments.Z("dash_html5_safari8_workarounds"))d.aa=!0;Pp()&&(d.ca=-1);if(Kp("trident/")||Kp("edge/"))d.b=240;Ds&&(d.N=41943040);if($A(b)||!dA())d.o=8388608,d.B=524288,d.L=2097152,d.C=1048576,d.Ha=1.5,d.Aa=15,d.H=!dA(),d.ua=!1,Np()&&(d.ba=75E4),d.Ja=!0,d.g*=1.3,d.A*=1.3,d.Ca=!0;if(Qp()){var e="CHROMECAST/ANCHOVY"==b.o.cmodel;d.o=20971520;d.B=1572864;e&&(d.ba=812500,d.F=
1E3)}d.Xa=b.C;d.liveChunkReadahead=gI(c,b.experiments);d.Oa=!b.experiments.Z("disable_fpa_sei_removal")&&Kp("windows nt")&&(fI(c)||SH(c));QH(c)&&!b.experiments.Z("disable_html5_manifestless_delay")&&(d.ma=!0);b.experiments.B&&(d.ba=window.NaN);if(c=b.experiments.b("html5_deadzone_multiplier"))d.g*=c,d.A*=c;if(c=b.experiments.b("html5_request_sizing_multiplier"))d.Ga=c;b.experiments.Z("html5_strip_emsg")&&(d.na=!0);d.b=b.experiments.b("html5_max_buffer_duration")||d.b;d.K=b.experiments.b("html5_max_buffer_health_for_downgrade")||
d.K;b.experiments.Z("disable_html5_streaming_response_timing")&&(d.Na=!1);a.ga.b.g=QH(a.b)?.5:0;a.A=new oF(a.ga,d,a.b.b,a.b.o);a.A.subscribe("initsegment",a.mD,a);a.A.subscribe("videoformatchange",a.uD,a);a.A.subscribe("audioformatchange",a.tD,a);a.A.subscribe("error",a.Uh,a);a.A.subscribe("seekrequired",a.cG,a);b=gb(a.$,"spacecast")||a.Aa;d=a.Jn();d=d.Vb.isDefault?void 0:d;a.A.initialize(a.b.startSeconds,QI(a),b,d);a.b.probeUrl&&(a.A.R=a.b.probeUrl);if(a.$.length||a.Aa)a.A.G=!0;a.Aa&&II(a);if(a.V.experiments.b("html5_background_quality_cap"))a:{a=
x(a.sF,a);if(window.document.visibilityState)b="visibilitychange";else{if(!window.document[Rh+"VisibilityState"])break a;b=Rh+"visibilitychange"}window.document.addEventListener(b,a,!1)}};
AI=function(a){var b=a.V.experiments.b("html5_background_quality_cap"),c=a.V.experiments.b("html5_background_cap_idle_secs");return!b||ir()/1E3<c?lz:3==qG(a.V)?new hz(0,b,!1):lz};
II=function(a){dv(a.o,new uG(new sq(4),a.B))};
nI=function(a){a.A&&(a.A.dispose(),a.A=null);a.H&&(a.H.dispose(),a.H=null)};
LI=function(a){a.H||(a.A?a.A.seek(a.getCurrentTime()):SI(a),a.H=new Zz(a.g.la(),a.b.lengthSeconds,a.b.o.videoInfos[0].mimeType,a.b.o.b[0].mimeType,a.V.C),Eaa(a.H,x(a.A.wy,a.A)),Faa(a.H,x(function(a){rI(this,"fmt.unplayable",void 0,"msi.1;ename."+a.name)},a)));
try{return Gaa(a.H)}catch(b){return b.message="window.URL object overwritten by external code",window.setTimeout(function(){throw b;},0),rI(a,"html5.missingapi","YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK","updateMs.1"),null}};
JI=function(a){LH(a.b);!a.b.H&&a.b.ha||a.qa||(a.qa=!0,a.X("signatureexpired"))};
TI=function(a){return a.details.isPotentialFormatUnavaliable&&("net.retryexhausted"==a.errorCode||"net.badstatus"==a.errorCode)};
DI=function(a){a.g&&(a.g.pause(),lI(a),nI(a),a.b&&(a.b.startSeconds=a.getCurrentTime()),a.K=window.NaN,kI(a.g),P(a.B,128)||pI(a,wq(a.B)),a.V.G.remove(a.b.videoId))};
ida=function(a){if(!a.g)return 0;if(ps(a.b))return 1;if(dI(a.b)){if(a.G)return 1;var b=a.g,c=b.he(),b=(0<wC(c)&&b.lf()?c.end(c.length-1):0)-YH(a.b);a=UI(a,!0)-YH(a.b);return Math.max(0,Math.min(1,b/a))}return VI(a.g)};
WI=function(a,b){var c={};if(b){a.o?ra(c,Su(Wu(a.o,"playback"))):a.b&&(c.cpn=a.b.clientPlaybackNonce);if(a.g){var d;d=a.g;d={vct:d.getCurrentTime().toFixed(3),vd:d.lf().toFixed(3),vpl:tC(d.Vi()),vbu:tC(d.he()),vpa:d.$g(),vsk:d.Ov(),ven:d.Rf(),vpr:d.rk(),vrs:d.ye(),vns:d.Hl(),vec:d.jb(),vvol:d.Bd()};ra(c,d)}a.A&&ra(c,OF(a.A));c.state=a.B.g.toString(16);P(a.B,128)&&(c.debug_error=a.B.b);xI(a)&&(c.preroll="1");a.b.ab&&(c.ismb=a.b.ab);a.b.isLowLatencyLiveStream&&(c.lowlatency="1");a.b.xa&&(a.b.b&&jH(a.b.b)&&
(c.segduration=jH(a.b.b)),a.N&&(d=a.N.A,c.lat=d.b[d.g]||0))}c.debug_videoId=a.b.videoId;return c};
oI=function(a,b){a.X("internalvideodatachange",b||"dataupdated",a,a.b)};
gda=function(a){F("loadstart loadeddata loadedmetadata play playing pause ended suspend progress seeking seeked timeupdate durationchange ratechange error waiting abort".split(" "),function(a){this.da.S(this.g,a,this.iH,this)},a);
a.V.Dc&&a.g.wh()&&(a.da.S(a.g,"webkitplaybacktargetavailabilitychanged",a.TB,a),a.da.S(a.g,"webkitcurrentplaybacktargetiswirelesschanged",a.UB,a))};
XI=function(a){var b=a.getCurrentTime(),c=a.b;!UC("pbs",a.D.b)&&LC.measure&&LC.getEntriesByName&&(LC.getEntriesByName("mark_nr")[0]?MC("mark_nr"):MC());c.videoId&&a.D.info("docid",c.videoId);c.eventId&&a.D.info("ei",c.eventId);c.clientPlaybackNonce&&a.D.info("cpn",c.clientPlaybackNonce);0<c.startSeconds&&a.D.info("start",c.startSeconds.toString());a.g&&a.g.$g()&&a.D.info("paused",1);c.g?a.D.info("fmt",Fu(c.g)):a.D.info("fmt","-1");c.Ie&&a.D.info("yt_pre",a.xb?"2":"1");a.V.L&&a.D.info("yt_fs","1");
a.D.info("cmt",b.toFixed(3));if(a.A){b=a.A;window&&window.performance&&window.performance.getEntriesByName&&(c=window.performance.getEntriesByName(b.aa),c.length&&(c=c[0],qF(b,"vri",c.fetchStart),qF(b,"vdns",c.domainLookupEnd),qF(b,"vreq",c.requestStart),qF(b,"fvb",c.responseStart),qF(b,"vrc",c.responseEnd)),c=window.performance.getEntriesByName(b.L),c.length&&(c=c[0],qF(b,"ari",c.fetchStart),qF(b,"adns",c.domainLookupEnd),qF(b,"areq",c.requestStart),qF(b,"avb",c.responseStart),qF(b,"arc",c.responseEnd)));
var b=b.na,d;for(d in b)a.D.g(d,b[d])}};
jda=function(a){if(a.ha&&a.g){var b=a.g.Wi();b.length&&b.end(0)>a.ha&&(a.g.tk(a.ha),a.ha=window.NaN,a.Sa=a.da.S(a.g,"canplay",a.OC,a))}};
ZI=function(a,b){if(a.g&&a.b){var c=a.getCurrentTime();if(c<YH(a.b)&&a.B.Za())a.seekTo(window.Infinity,!0);else{if(a.G){var d=UI(a,!1);if(c<d-YI(a)){if(a.B.Za()&&(a.b.Na||ps(a.b))){a.seekTo(window.Infinity,!0);return}a.b.xa&&yI(a,!1)}}else a.b.xa&&KI(a,c)&&yI(a,!0);if(a.A&&(d=a.A,d.b)){d.resume();if(d.K&&!bA(d.b)){var e=d.C<=c&&c<d.C+10,f=0<=uC(d.b.g.buffered,d.C+oF.b);e&&f&&(d.K=!1)}d.K||(d.C=c);EF(d)}5<c&&(a.b.startSeconds=c);(d=Ix())?Kx(a.ia):Vi(a.ia);!Eq(a.B)&&a.g.$g()||P(a.B,128)||(e=x(a.Qz,
a),0==a.g.Vi().length?a.ia=d?Jx(e,100):Ti(e,100):a.ia=d?Jx(e,500):Ti(e,500));a.b.Ed=c;!b&&a.B.Za()&&a.o&&(c=a.o,c.o.update(),cI(c.b.videoData)&&c.b.videoData.da&&!c.L&&ou(c.o)>=c.b.videoData.da&&(c.A&&c.b.videoData.da&&(d=Wu(c,"delayplay"),d.Ca=!0,d.send(),c.L=!0),av(c)),c.aa.A()&&c.aa.send());C()>a.yb+1E3&&(a.yb=C(),pC(a.Oa,vq(a.g)));a.X("progresssync",a,b)}}};
pI=function(a,b){var c=a.B;if(b.g!=c.g||b.b!=c.b){c=new uG(b,a.B);a.B=b;var d=!a.ua.length;a.ua.push(c);0>bv(c,8)&&(Vi(a.aa),a.aa=window.NaN,yI(a,!1));0<bv(c,8)&&!a.b.H&&(0,window.isNaN)(a.aa)&&(a.aa=Ti(x(a.$r,a),15E3));0<bv(c,32)&&yI(a,!1);if(P(c.state,2)&&dI(a.b)){var e=a.getCurrentTime();a.b.lengthSeconds!=e&&(a.b.lengthSeconds=e,oI(a));ZI(a,!0)}0<bv(c,2)&&a.Zm();a.V.experiments.Z("html5_check_for_reseek")&&0<bv(c,1)&&(a.Ja=Ti(x(a.YF,a),5E3));a.o&&dv(a.o,c);if(d)try{for(d=0;d<a.ua.length;d++){var c=
a.ua[d],f=a.C,e=c;if(f.A&&!f.D&&(f.ue(),P(e.b,16))){var e=f,k=Jt(e.b,Math.max(e.o-2E3,0));null!=k&&0x7ffffffffffff>k&&e.B.start()}a.X("statechange",c)}}finally{a.ua.length=0}}};
$I=function(a){P(a.B,2)||P(a.B,32)||(a.K=window.NaN)};
yI=function(a,b){a.b.xa&&a.G!=b&&(a.G=b,a.X("liveviewshift",b))};
hda=function(a,b){kda(a,b);a.V.Ie?Ti(x(function(){MI(this.g)},a),0):MI(a.g)};
kda=function(a,b){a.D.g("vta");RC("vta",void 0,"video_to_ad");uI(a.g,b);if(WH(a.b)&&WH(a.b)&&!a.F&&a.g){var c=a.b.G;if(c&&a.g.wh()){var d=a.g.la();a.F=new fG(d,c,a.V.experiments,a.b.xa,a.b.drmSessionId,a.V.experiments.Z("html5_disable_drm_retry"));a.F.subscribe("newsession",a.ND,a);a.F.subscribe("licenseerror",a.oD,a);a.F.subscribe("qualitychange",a.pD,a);a.F.subscribe("heartbeatparams",a.hH,a);c=a.F;d=a.b.oauthToken;c.H=d;c.X("oauthtoken",d)}else rI(a,"fmt.unplayable","YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK",
"drm.1")}a.H&&Nx();Vi(a.aa);a.b.H||(c=15E3,a.V.experiments.Z("html5_log_qoe_start15s_details")&&(c=14E3),a.aa=Ti(x(a.$r,a),c))};
lI=function(a){a.F&&(a.F.dispose(),a.F=null)};
UI=function(a,b){if(!a.g)return 0;if(!a.b.xa){var c=a.b;return c.b&&!(0,window.isNaN)(hH(c.b))?hH(c.b):c.lengthSeconds}if(b&&(a.G||ps(a.b)))return a.getCurrentTime();if(a.A)return c=KF(a.A),Math.max(c,YH(a.b))||0;c=a.g.Wi();return(1>c.length?window.NaN:c.end(c.length-1))||0};
KI=function(a,b){void 0==b&&(b=a.getCurrentTime());return b>=UI(a,!1)-YI(a)};
YI=function(a){if(!a.b.b)return window.NaN;var b=a.V.experiments.b("html5_allowable_liveness_drift_chunks")||2;0<b&&!a.G&&b--;return b*jH(a.b.b)};
bJ=function(a,b,c){w(a)&&(a={mediaContentUrl:a,startSeconds:b,suggestedQuality:c});b=/\/([ve]|embed)\/([^#?]+)/.exec(a.mediaContentUrl);a.videoId=b&&b[2]?b[2]:null;return aJ(a)};
aJ=function(a,b,c){if(ka(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}};
dJ=function(a,b){G.call(this);this.app=a;this.b=null;this.o={};this.A={};this.C={};this.B={};this.g=null;this.playerType=b;T(this,"cueVideoById",this.Kn);T(this,"loadVideoById",this.Gu);T(this,"cueVideoByUrl",this.lH);T(this,"loadVideoByUrl",this.wH);T(this,"playVideo",this.yd);T(this,"pauseVideo",this.pauseVideo);T(this,"stopVideo",this.hk);T(this,"clearVideo",this.jH);T(this,"getVideoBytesLoaded",this.rH);T(this,"getVideoBytesTotal",this.sH);T(this,"getVideoLoadedFraction",this.Ln);T(this,"getVideoStartBytes",
this.tH);T(this,"cuePlaylist",this.kH);T(this,"loadPlaylist",this.Fu);T(this,"nextVideo",this.ek);T(this,"previousVideo",this.fk);T(this,"playVideoAt",this.Mn);T(this,"setShuffle",this.zH);T(this,"setLoop",this.yH);T(this,"getPlaylist",this.ad);T(this,"getPlaylistIndex",this.pH);T(this,"getPlaylistId",this.we);T(this,"loadModule",this.dk);T(this,"unloadModule",this.Lu);T(this,"setOption",this.cf);T(this,"getOption",this.Ib);T(this,"getOptions",this.Xh);T(this,"mute",this.mute);T(this,"unMute",this.Of);
T(this,"isMuted",this.bd);T(this,"setVolume",this.setVolume);T(this,"getVolume",this.Mb);T(this,"seekTo",this.seekTo);T(this,"getPlayerState",this.getPlayerState);T(this,"getPlaybackRate",this.oH);T(this,"setPlaybackRate",this.Yh);T(this,"getAvailablePlaybackRates",this.Vh);T(this,"getPlaybackQuality",this.ck);T(this,"setPlaybackQuality",this.gk);T(this,"getAvailableQualityLevels",this.Du);T(this,"getCurrentTime",this.getCurrentTime);T(this,"getDuration",this.Wh);T(this,"addEventListener",this.addEventListener);
T(this,"removeEventListener",this.removeEventListener);T(this,"getVideoUrl",this.getVideoUrl);T(this,"getDebugText",this.bk);T(this,"getVideoEmbedCode",this.Eu);T(this,"getVideoData",this.getVideoData);T(this,"addCueRange",this.Cu);T(this,"removeCueRange",this.Hu);T(this,"setSize",this.setSize);T(this,"getApiInterface",this.mH);T(this,"destroy",this.destroy);T(this,"showVideoInfo",this.Ku);T(this,"hideVideoInfo",this.uH);cJ(this,"getInternalApiInterface",this.nH);cJ(this,"getAdState",this.getAdState);
cJ(this,"isNotServable",this.vH);cJ(this,"getUpdatedConfigurationData",this.qH);cJ(this,"updateRemoteReceivers",this.AH);cJ(this,"sendAbandonmentPing",this.xH);cJ(this,"setAutonav",this.Iu);cJ(this,"setAutonavState",this.Ju);cJ(this,"channelSubscribed",r);cJ(this,"channelUnsubscribed",r)};
T=function(a,b,c){a.o[b]=x(c,a)};
cJ=function(a,b,c){a.A[b]=x(c,a)};
eJ=function(a,b){dJ.call(this,a,b);T(this,"getPresentingPlayerType",this.getPresentingPlayerType);T(this,"addInfoCardXml",this.BH);T(this,"cueVideoByPlayerVars",this.CH);T(this,"loadVideoByPlayerVars",this.ik);T(this,"preloadVideoByPlayerVars",this.Ou);T(this,"seekBy",this.zd);T(this,"updatePlaylist",this.TH);T(this,"updateLastActiveTime",this.SH);T(this,"updateVideoData",this.UH);T(this,"getStoryboardFormat",this.HH);T(this,"getProgressState",this.Pf);T(this,"getHousebrandProperties",this.FH);T(this,
"setPlaybackQualityRange",this.Qu);T(this,"getCurrentPlaylistSequence",this.EH);T(this,"canPlayType",this.canPlayType);T(this,"sendVideoStatsEngageEvent",this.Vg);T(this,"setCardsVisible",this.$h);T(this,"handleGlobalKeyDown",this.IH);T(this,"getAudioTrack",this.Zh);T(this,"setAudioTrack",this.On);T(this,"getAvailableAudioTracks",this.Mu);T(this,"getMaxPlaybackQuality",this.GH);T(this,"setSizeStyle",this.PH);T(this,"forceFrescaUpdate",this.DH);T(this,"setAutonav",this.Iu);T(this,"setAutonavState",
this.Ju);T(this,"showControls",this.RH);T(this,"hideControls",this.JH);T(this,"getVisibilityState",this.getVisibilityState);T(this,"shouldSendVisibilityState",this.QH);T(this,"getVideoContentRect",this.Nu);T(this,"setSafetyMode",this.OH);T(this,"setFauxFullscreen",this.MH);T(this,"cancelPlayback",this.tp);T(this,"getVideoStats",this.iq);T(this,"updateSubtitlesUserSettings",this.Pn);T(this,"getSubtitlesUserSettings",this.Nn);T(this,"resetSubtitlesUserSettings",this.Pu);T(this,"isFastLoad",this.KH);
T(this,"isPeggedToLive",this.LH);T(this,"setMinimized",this.NH)};
fJ=function(a,b){eJ.call(this,a,b)};
lda=function(a){(a=gJ(a.app))&&OI(a,!0)};
jq=function(a){return a.app.G};
iJ=function(a){a=jq(a).o;return!!a&&hJ(a)};
kJ=function(a){a=jq(a);var b=a.o;return b&&jJ(b)?!0:us(a.Y.getVideoData(),"ypc_module")};
lJ=function(a,b){a.Va("autonavcancel",b)};
S=function(a){return a.app.V};
os=function(a){var b=a.app;a=a.playerType;return 3==b.getPresentingPlayerType()?b.C.K:gJ(b,a).getPlayerState()};
Ky=function(a){return a.app.D};
mJ=function(a){return a.app.R&&!a.Qa()||!!a.ad()};
oJ=function(a){if(a=nJ(jq(a),"captions"))a.K=!0,a.loaded?a.g&&a.g!=a.o.Ne()?iC(a):a.Gs():a.load()};
yr=function(a){if(Yh())if(a.Qa())(a=Uh(["exitFullscreen","webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen"],window.document))&&a.call(window.document);else{a=Ky(a).element;var b=Uh(["requestFullscreen","webkitRequestFullscreen","mozRequestFullScreen","msRequestFullscreen"],a);b&&b.call(a)}else a.za("onFullscreenToggled",a.Qa())};
pJ=function(a){return(a=gJ(a.app))?nz(kG(a.ma,a.b)):"unknown"};
qJ=function(a){(a=jq(a).g)?a.g?(a=a.g,a=a.b?a.b.zf():{}):a={}:a={};return a};
rJ=function(a,b){S(a).experiments.Z("ui_logging")&&rv(a,"controlclicked",{controlClicked:b})};
rv=function(a,b,c,d){var e=gJ(a.app);c.event=b;a.Qa()&&(c.fs=1);c.ux=1;e.logEvent(c,d)};
uw=function(a){a.Va("cardstatechange",Lr(a)&&sJ(a)?1:0)};
Lr=function(a){return(a=nJ(jq(a),"iv-module"))?az(a):!1};
sJ=function(a){return(a=nJ(jq(a),"iv-module"))?bz(a):!1};
hC=function(a){(a=gJ(a.app))&&a.o&&nu(a.o.o)};
Ly=function(a){a=a.app.ma;var b=Ky(a.b).Ia(),b=new ng(0,0,b.width,b.height);if(a.B.g&&!tJ(a)){if(S(a.b).Wa){var c=uJ(a)?69:48;b.top+=c;b.height-=c}a.o&&(b.height-=uJ(a.o.b)?72:50)}return b};
rs=function(a,b){a.za("onFrescaStateChange",b);var c=gJ(a.app);if(c&&b&&c.o){var c=c.o.g,d=b.hasActiveStream;Au(c,Du(c.b),"stream",[d?"A":"I"])}};
vJ=function(a){return(a=nJ(jq(a),"fresca"))?!!a.B&&a.B.o.g:!1};
wJ=function(a){var b=gJ(a.app,1);if(!b)return!1;var c=b.getVideoData();return $H(c)&&!ps(c)&&2!=a.getPresentingPlayerType()&&(!xI(b)||3==a.getPresentingPlayerType())};
xJ=function(a){return a.app.ga.play_pause||2==a.getPresentingPlayerType()?!0:!xI(gJ(a.app,1))};
zJ=function(a,b,c){var d=a.app;a=c||a.playerType;if(c=gJ(d,a))c.C.Sh.apply(c.C,b),a&&d.getPresentingPlayerType()!=a||yJ(d,"cuerangesremoved",b)};
hq=function(a,b){var c=gJ(a.app,a.playerType);c&&EI(c,b)};
kw=function(a,b,c){a=Ky(a).element;var d=Bb(a.children,function(a){a=(0,window.parseInt)(a.getAttribute("data-layer"),10);return c-a||1});
0>d&&(d=-(d+1));Hf(a,b,d);b.setAttribute("data-layer",c)};
AJ=function(a){var b=S(a);if(!b.xb)return!1;var c=a.getVideoData();if(!c)return!1;b=c.xa&&!b.experiments.Z("html5_live_endscreen");return!c.ypcPreview&&!b&&!gb(c.F,"ypc")&&!a.ad()};
mda=function(a){this.id=a.id;this.type=a.type;this.title=a.title;this.metadata=a.metadata;this.callToAction=a.callToAction;this.imageUrl=a.imageUrl;this.B=a.displayImages;this.o=a.animatedDisplayImages;this.F=a.iconUrl;this.left=a.left;this.width=a.width;this.top=a.top;this.aspectRatio=a.aspectRatio;this.startMs=a.startMs;this.endMs=a.endMs;this.videoId=a.videoId;this.videoDuration=a.videoDuration;this.playlistId=a.playlistId;this.playlistLength=a.playlistLength;this.channelId=a.channelId;this.A=
a.htmlBlob;this.H=a.isSubscribe;this.b=a.targetUrl;this.C=a.sessionData||{};this.J=a.targetTab;this.g=a.accessibilityStr;this.G=a.isPlaceholder;this.impressionUrls=a.impressionUrls;this.D=a.hoverUrls;this.clickUrls=a.clickUrls};
BJ=function(a){this.startMs=a.startMs;this.impressionUrls=a.impressionUrls;this.skip=a.skip||!1;this.elements=[];a=a.elements;for(var b=0;b<a.length;b++)this.elements.push(new mda(a[b]))};
CJ=function(a){eq.call(this,a);this.Ma="creatorendscreen";this.o=null;this.G=!1;this.A=null;this.g={};this.C={};this.B=null;this.H=!1;this.J=null};
nda=function(a){return DJ(a)?new CJ(a):null};
DJ=function(a){return EJ(S(a).g)?!0:us(a.getVideoData(),"iv_endscreen_url")};
EJ=function(a){return"creator-endscreen-editor"===a};
FJ=function(a,b){gq(a);a.B&&(a.B.detach(),a.B.dispose(),a.B=null);for(var c in a.g){var d=a.g[c];d.detach();d.dispose()}a.g={};a.C={};if((a.o=b)&&b.elements){c=[];var e=new bq(b.startMs,0x7ffffffffffff,{id:"ytp-ce-in-endscreen"});c.push(e);a.B=new R(["div","ytp-ce-shadow"]);kw(a.b,a.B.element,4);for(e=0;e<b.elements.length;++e){var f=b.elements[e];var d=f,k={VIDEO:a.Ey,PLAYLIST:a.Dy,CHANNEL:a.Cy,WEBSITE:a.Fy}[d.type];k?(k=k.call(a,d),d.G&&I(k.element,"ytp-ce-placeholder"),d=k):d=null;a.g[f.id]=d;
a.C[f.id]=f;kw(a.b,d.element,4);k=new bq(f.startMs,f.endMs,{id:"ytp-ce-element-"+f.id});c.push(k);oda(a,d,f)}a.vb(c);a.Tn()}};
GJ=function(a,b){var c;b.B&&(c=b.B.thumbnails);!EJ(S(a.b).g)&&a.J&&b.o&&b.o.thumbnails&&(c=b.o.thumbnails);return c?c[c.length-1].url:null};
HJ=function(a){return a?{style:"background-image: url("+a+")"}:{}};
oda=function(a,b,c){b.O("mouseenter",x(a.Sn,a,b,c));b.O("mouseleave",x(a.Xu,a,b,c));b.O("click",x(a.Ur,a,c));b.O("keypress",x(a.Ur,a,c));b.O("focus",x(function(a,b){I(a.element,"ytp-ce-force-expand");this.Sn(a,b)},a,b,c));
b.O("blur",x(function(a,b){me(a.element,"ytp-ce-force-expand");this.Xu(a,b)},a,b,c));
b.O("touchstart",x(a.Sn,a,b,c));var d=rf("ytp-ce-expanding-overlay-hider",b.element);d&&b.S(d,"touchstart",function(a){a=a||window.event;a.cancelBubble=!0;a.stopPropagation&&a.stopPropagation();me(b.element,"ytp-ce-element-hover")});
var e=x(function(a,b,c){c=Lf(c);F(c,function(c){e(c);Wf(c)&&(a.S(c,"focus",x(function(a,b){I(a.element,"ytp-ce-force-expand");IJ(this,b.id,!0)},this,a,b)),a.S(c,"click",x(function(a,b){I(a.element,"ytp-ce-force-expand");
IJ(this,b.id,!0);this.H=!0},this,a,b)),a.S(c,"blur",x(function(a,b){this.H?(this.H=!1,a.element.focus()):(me(a.element,"ytp-ce-force-expand"),IJ(this,b.id,!1))},this,a,b)))},this)},a,b,c);
e(b.element)};
IJ=function(a,b,c){J(a.B.element,"ytp-ce-shadow-show",c);for(var d in a.g)d!=b&&J(a.g[d].element,"ytp-ce-element-shadow-show",c)};
JJ=function(a,b,c){function d(){k||(f++,f==e.length&&(l.stop(),c&&c()))}
if(!b||EJ(S(a.b).g))c&&c();else{var e=pda(a,b),f=0,k=!1,l=new ge(function(){k=!0},1E3,a);
l.start();for(a=0;a<e.length;a++)Vp(e[a],d)}};
pda=function(a,b){for(var c=a.b.getVideoData().clientPlaybackNonce,d=a.b.getCurrentTime().toFixed(2),c={CPN:c,AD_CPN:c,MT:d},d=[],e=0;e<b.length;e++)d.push(qda(b[e],c));return d};
qda=function(a,b){return a.replace(/%5B[a-zA-Z_:]+%5D|\[[a-zA-Z_:]+\]/g,function(a){var d=(0,window.unescape)(a),d=d.substring(1,d.length-1);return b[d]?(0,window.escape)(b[d]):a})};
rda=function(a,b){var c=new window.Image;c.onload=x(function(){this.J=0<c.width&&0<c.height;b()},a);
c.onerror=x(function(){this.J=!1;b()},a);
c.src="data:image/webp;base64,UklGRlIAAABXRUJQVlA4WAoAAAASAAAAAAAAAAAAQU5JTQYAAAD/////AABBTk1GJgAAAAAAAAAAAAAAAAAAAGQAAABWUDhMDQAAAC8AAAAQBxAREYiI/gcA"};
KJ=function(a){eq.call(this,a);this.Ma="heartbeat";this.logEvent="ypc_license";this.C=!1;this.B=0;this.A=!1;this.g=window.NaN;this.o=null};
LJ=function(a){return us(a.getVideoData(),"ypc_license_checker_module")};
sda=function(a){return LJ(a)?new KJ(a):null};
MJ=function(a){var b=a.b.getVideoData();return WH(b)?!!a.o:!!b.heartbeatToken};
NJ=function(a,b){if(!a.g&&a.C){var c=a.b.getVideoData();if(MJ(a)||c.xa)c=b,void 0==c&&(c=a.A?a.o?1E3*a.o.interval:a.b.getVideoData().heartbeatInterval||6E4:1E3),a.g=Ti(x(a.eG,a),c)}};
OJ=function(a,b){if(a.g){a.log({errorType:b});a.g=window.NaN;a.B++;var c=a.b.getVideoData();(c.heartbeatSoftFail?0:a.B>=(a.o?a.o.b:c.heartbeatRetries||5))?(c=N("YTP_ERROR_LICENSE"),rI(a.b.app.g,"heartbeat",c,void 0)):NJ(a)}};
PJ=function(a){try{return bg(a)}catch(b){return null}};
QJ=function(a){a.B=0;a.g&&(Vi(a.g),a.g=window.NaN);a.A=!1};
RJ=function(a){a=a.fmt_list;if(!a)return{};var b=[];F(a,function(a){a.itag&&(b[a.itag.toString()]=a)});
return b};
SJ=function(a,b,c,d,e){if(!a)return null;var f=b.docid;b=RJ(b);return f&&b?tda(a,f,b,c,d,e):null};
tda=function(a,b,c,d,e,f){d=M(d.split(","),Oj);var k=le(d,function(a){return!!c[a.itag]});
if(!k.length)return null;var l=Lg(a)||"",m=Mg(a),n={};F(k,function(a){if(a){var b=TJ(a);b&&(n[b]=a)}});
var t=[];F(d,function(a){if(c[a.itag]){var d=dh(ch(ph(a.url),l),m),k=Jg(a.url),d=lh(lh(d,"orig_host",Hg(k[1],k[2],k[3],k[4])),"scid",b),D;for(D in f)d.b.get(D)||lh(d,D,f[D]);a.url=d.toString();D=c[a.itag];"clen"in a&&"byteLen"in D&&(a.clen=D.byteLen.toString());"init"in D&&"index"in D&&"init"in a&&"index"in a&&(a.init=D.init[0].toString()+"-"+D.init[1],a.index=D.index[0].toString()+"-"+D.index[1]);a.isAccelerated="1";e&&(a.isAcceleratedUiEnabled="1")}else if((D=TJ(a))&&n[D])return;t.push(Sg(a))});
return t.join(",")};
TJ=function(a){return a.quality?a.quality:a.quality_label||""};
uda=function(a,b,c,d){var e=UJ(b);e?(e.status="success-prefetch-1",c(e)):a&&!b?c({status:"success"}):a?(a=Tj([a,"v1/cache/videos",b,"metadata"].join("/"),d),bk(a,{format:"JSON",method:"GET",timeout:2E3,rb:function(a,b){null==b&&(b={});b.status="success";c(b)},
onError:function(){c({status:"error"})},
Kc:function(){var a=UJ(b);a?(a.status="success-prefetch-2",c(a)):c({status:"timeout"})}})):c({status:"nodevice"})};
UJ=function(a){var b=window.acceleratorMeta;return(b?b.docid:null)===a?b:null};
VJ=function(a){G.call(this);this.b=a};
WJ=function(a,b,c,d,e,f,k){this.contentProfileToken=e||null;this.deviceId=f||null;this.hostname=a;this.status=b;this.active=c;this.g=d;this.b=k||null};
vda=function(a){function b(){throw Error("encoding error");}
null==a&&b();var c=a.content_profile_token||null;c&&!w(c)&&b();var d=a.device_id||null;d&&!w(d)&&b();var e=a.hostname;e&&w(e)||b();var f=a.status||0;f&&!ha(f)&&b();var k=a.last_probe_tstamp||null;null===k||ha(f)||b();var l=a.active||!1;ga(l)||b();a=!1!==a.ux;ga(a)||b();return new WJ(e,f,l,a,c,d,k)};
wda=function(a){var b=0,c=a.length,d={sc:-1640531527,Pc:-1640531527,c:314159265},e;for(e=c;12<=e;e-=12,b+=12)d.sc+=XJ(a,b),d.Pc+=XJ(a,b+4),d.c+=XJ(a,b+8),YJ(d);d.c+=c;switch(e){case 11:d.c+=a[b+10]<<24;case 10:d.c+=(a[b+9]&255)<<16;case 9:d.c+=(a[b+8]&255)<<8;case 8:d.Pc+=XJ(a,b+4);d.sc+=XJ(a,b);break;case 7:d.Pc+=(a[b+6]&255)<<16;case 6:d.Pc+=(a[b+5]&255)<<8;case 5:d.Pc+=a[b+4]&255;case 4:d.sc+=XJ(a,b);break;case 3:d.sc+=(a[b+2]&255)<<16;case 2:d.sc+=(a[b+1]&255)<<8;case 1:d.sc+=a[b+0]&255}return YJ(d)};
YJ=function(a){var b=a.sc,c=a.Pc,d=a.c,b=b-c-d^d>>>13,c=c-d-b^b<<8,d=d-b,d=d-c^c>>>13,b=b-c,b=b-d,b=b^d>>>12,c=c-d-b^b<<16,d=d-b,d=d-c^c>>>5,b=b-c,b=b-d,b=b^d>>>3,c=c-d-b^b<<10,d=d-b,d=d-c^c>>>15;a.sc=b;a.Pc=c;return a.c=d};
XJ=function(a,b){return ZJ(a[b+0])+(ZJ(a[b+1])<<8)+(ZJ(a[b+2])<<16)+(ZJ(a[b+3])<<24)};
ZJ=function(a){return 127<a?a-256:a};
$J=function(a){this.hash=a};
xda=function(){var a=Jj("yt-accelerator-settings-meta");return null==a?null:new $J((0,window.isNaN)(a.h)?null:a.h)};
yda=function(){return new Ed(function(a,b){"XSRF_TOKEN"in Pi?a():gj("init",function(){"XSRF_TOKEN"in Pi?a():b(Error("no XSRF token after init"))})})};
zda=function(a,b,c,d){var e=gg({appliances:M(a,function(a){var b={active:a.active,status:a.status,ux:a.g};null!==a.contentProfileToken&&(b.content_profile_token=a.contentProfileToken);null!==a.deviceId&&(b.device_id=a.deviceId);return b})}),f=wda(Sq(e+"v2"));
a=xda();null!==a&&a.hash===f?c():(a=function(){var a={client_info:e};b&&(a.session_token=b);bk("/accelerator_settings_ajax?action_update=1",{format:"JSON",method:"POST",Sb:a,timeout:3E4,rb:function(){var a=new $J(f);Ij("yt-accelerator-settings-meta",(0,window.isNaN)(a.hash)?{}:{h:a.hash},600);c()},
onError:function(a){d(a)},
Kc:function(){d(Error("AJAX timeout"))}})},b?a():yda().then(a,d))};
aK=function(a,b,c,d){this.status=a;this.contentProfileToken=b||null;this.deviceId=c||null;this.b=!1!==d;this.timestamp=Date.now()};
bK=function(a,b,c,d){G.call(this);this.o=sb(a);this.C=b;this.A=d||12E4;this.B=c||5E3;this.b=this.g=null;Ada(this)};
Bda=function(a,b){var c=Date.now(),d=a.A,e=!1,f=le(a.o,function(a){var b=a.b,f=c-b>=d;e||!a.active||f||(e=!0);return null===b||f||1!=a.status});
return b&&!e?f:le(f,function(a){a=a.b;return null===a||c-a>=d})};
Ada=function(a){if(!ib(a.o)){var b=function(c){a.g=null;a.b=Cda(a,Bda(a,c||!1));a.b.then(function(){a.b=null;a.g=Ti(b,a.A)})};
b(!0)}};
Cda=function(a,b){var c=M(b,function(b){return Dda(a,b)});
return Td(Nd(c),function(){M(c,function(a){a.cancel()})})};
Dda=function(a,b){var c=null;return(new Ed(function(a){c=bk("//"+b.hostname+"/v1/cache/summary",{format:"JSON",method:"GET",timeout:this.B,rb:function(b,c){var k=!c||!c.hasOwnProperty("ux")||!!c.ux;a(new aK(1,c&&c.cs,c&&c.gcdid,k))},
onError:function(b,c){var k=2;0===(b&&"status"in b?b.status:-1)&&(k=4);var l=!c||!c.hasOwnProperty("ux")||!!c.ux;a(new aK(k,c&&c.cs,c&&c.gcdid,l))},
Kc:function(){a(new aK(3))}})},a)).then(function(a){this.C(b,a)},function(){null!==c&&(c.abort(),c=null)},a)};
cK=function(a,b){G.call(this);this.o="yt-accelerator-mutex-x-"+a;this.g="yt-accelerator-mutex-y-"+a;this.wa=b||Oa();this.b=0};
Eda=function(a,b,c){var d=C()+100;return(new Ed(x(a.A,a,d))).then(function(a){try{b.call(c)}finally{Kj(this.g)}return a},function(a){this.b&&(Vi(this.b),this.b=0);
throw a;},a)};
dK=function(a,b){G.call(this);this.yc="yt-accelerator-master-"+a;this.wa=b||Oa();this.b=new cK("master-"+a,this.wa)};
Fda=function(a,b){return Eda(a.b,function(){var a=Jj(this.yc)||null;if(!a||a.id==this.wa||b&&5E3<C()-a.t)Ij(this.yc,{id:this.wa,t:C()},120);else throw Error(a.id);},a)};
eK=function(){this.b={};this.g={}};
fK=function(){var a=Jj("yt-accelerator-discover"),b=new eK;b.b=Rb(a&&a.addrmap||{},function(a){return vda(a)});
b.g=a&&a.qparamsmap||{};return b};
gK=function(a){for(var b in a.b){var c=a.b[b];if(c.active)return c}return null};
hK=function(a,b){a.g=b};
Gda=function(a){return{addrmap:Rb(a.b,function(a){return{hostname:a.hostname,content_profile_token:a.contentProfileToken,device_id:a.deviceId,status:a.status,active:a.active,ux:a.g,last_probe_tstamp:a.b}}),
qparamsmap:a.g}};
jK=function(a,b,c,d){G.call(this);this.o=new dK("discover");this.A=0;this.g=null;this.b=fK();this.C=c;this.B=jm(window,"storage",x(this.Yz,this));d?hK(this.b,Mj(d,"&")):hK(this.b,{});var e=0;if(!ib(a)){var f=Date.now();a=sb(a);Lb(a);F(a,function(a){if(!ta(a,"dummy")){var b=this.b.b[a]||null;if(null===b){b=this.b;a=new WJ(a,0,!1,!0);if(null!=(b.b[a.hostname]||null))throw Error("entry already exists");b.b[a.hostname]=a;e++}else 12E5<f-b.b&&(b.b=0)}},this)}!b&&0<e&&!gK(this.b)&&((this.b.b[a[0]]||null).active=
!0,iK(this));
b&&(this.sr(!0),this.A=Ui(x(this.sr,this),6E4))};
Hda=function(a){var b=Date.now(),c=[];F(Xb(a.b.b),function(a){a.active&&(!a.b||12E5<b-a.b)?(a.active=!1,a.status=0):!a.active&&1!=a.status&&a.b&&12E5<b-a.b&&c.push(a)});
c&&F(c,function(a){delete this.b.b[a.hostname]},a)};
iK=function(a){cc(a.b.b)?a.reset():Ij("yt-accelerator-discover",Gda(a.b),259200);zda(Xb(a.b.b),a.C,function(){},function(){})};
kK=function(){G.call(this);this.g=this.b=null};
lK=function(a){eq.call(this,a);this.logEvent=this.Ma="spacecast";this.g=null;this.o={}};
Ida=function(a){return a.getVideoData().spacecastModule?new lK(a):null};
mK=function(){};
nK=function(a){eq.call(this,a);this.Ma="ypc_clickwrap";this.logEvent="ypc-clickwrap";Zi({YTP_YPC_START_RENTAL_HEADER:"\u041d\u0430\u0447\u0430\u0442\u044c \u0432\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u0432\u0438\u0434\u0435\u043e, \u0432\u0437\u044f\u0442\u043e\u0433\u043e \u043d\u0430\u043f\u0440\u043e\u043a\u0430\u0442?",YTP_YPC_START_RENTAL_BUTTON:"\u041d\u0430\u0447\u0430\u0442\u044c \u0441\u0440\u043e\u043a \u043f\u0440\u043e\u043a\u0430\u0442\u0430"});
this.o=this.g=null};
Jda=function(a){return us(a.getVideoData(),"ypc_clickwrap_module")?new nK(a):null};
oK=function(){};
pK=function(a,b,c){this.G=0;this.D=a;this.B=b||.5;this.C=c||0;this.F="index";this.g=0;this.A=[]};
rK=function(a,b){qK(a,"value");var c=b*a.g,d=0,e=window.NaN;a.A.some(function(a){d+=a.weight;e=a.value;if(d>=c)return!0});
return e};
qK=function(a,b){a.F!=b&&(a.F=b,Eb(a.A,b))};
sK=function(a){this.A=a;this.g=[]};
Kda=function(a){this.b=a;this.C=this.D=0;this.g=-1;this.H=new oC(100);this.G=0;this.J=zq();this.A=new pK(4,.6);this.B=new rC(4);this.F=new sK(this.b.b);this.b.o?this.o=new rC(this.b.b):this.o=new pK(this.b.b,.5,.1);a=Jj("yt-player-bandwidth")||{};this.o.b(this.b.B,0<a.byterate?a.byterate:this.b.A);0<a.delay&&this.A.b(1,Math.min(+a.delay,2));0<a.tailDelay&&this.B.b(1,+a.tailDelay);this.g=zq()};
kF=function(a,b,c){b=Math.max(b,.05);a.o.b(b,c/b);tK(a)};
jF=function(a,b){a.A.b(1,b);-1<a.g&&3E4<zq()-a.g&&uK(a)};
vK=function(a,b,c){(0,window.isNaN)(c)||(a.C+=c);(0,window.isNaN)(b)||(a.D+=b);a.F.b(b,c/b);tK(a)};
wK=function(a,b,c){b=Math.max(b,8192);a.B.b(1,c/b);-1<a.g&&3E4<zq()-a.g&&uK(a)};
gD=function(a){a=a.A.o();a=(0,window.isNaN)(a)?.5:a;return a=Math.min(a,5)};
eD=function(a){return a.B.o()||0};
fD=function(a){var b=a.o.o(),b=0<b?b:1;if(!a.b.C)return b;a=a.F.o();a=0<a?a:1;return a>2*b?(b+a)/2:b};
xK=function(a){var b={};b.delay=gD(a);b.tailDelay=eD(a);b.byterate=fD(a);return b};
uK=function(a){Ij("yt-player-bandwidth",xK(a),2592E3);a.g=zq()};
tK=function(a){var b=zq();a.J=b;500<b-a.G&&(pC(a.H,1/(1/fD(a)+eD(a))),a.G=b)};
xF=function(a){return 4E3<=zq()-a.J};
Lda=function(){this.b=17;this.A=13E4;this.B=.5;this.o=!1;this.C=!0;this.g=0};
Mda=function(a){var b=new Lda;$A(a)&&(b.o=!0,b.B=.1);a.experiments.Z("html5_ewma_bandwidth_estimator")&&(b.o=!0);a.experiments.Z("html5_disable_aux_bandwidth_estimator")&&(b.C=!1);a.tb&&(b.A=a.tb/8);b.b=a.experiments.b("html5_bandwidth_window_size")||b.b;return b};
yK=function(a,b){this.type=a||"";this.id=b||""};
zK=function(a){return new yK(a.substr(0,2),a.substr(2))};
CK=function(a){pk.call(this);this.startSeconds=0;this.H=!1;this.b=0;this.title="";this.A=0;this.g=[];this.D=this.B=!1;this.Ha=this.Vs=this.C=null;this.views=0;this.L=0!=a.fetch;this.o=[];this.b=Math.max(0,a.index||0);this.G=!!a.loop;this.startSeconds=a.startSeconds||0;this.N="1"==a.mob;this.title=a.playlist_title||"";this.description=a.playlist_description||"";this.author=a.author||a.playlist_author||"";this.K={};a.video_id&&(this.g[this.b]=a);a.api&&("string"==typeof a.api&&16==a.api.length?a.list=
"PL"+a.api:a.playlist=a.api);this.F=0;if(a.list)switch(a.listType){case "user_uploads":Nda(this,a.list);break;case "user_favorites":Oda(this,a.list);break;case "search":Pda(this,a.list);break;default:a.playlist_length&&(this.A=a.playlist_length),this.listId=zK(a.list),a.video?(this.g=a.video.slice(0),this.B=!0):Qda(this)}else if(a.playlist){var b=a.playlist.toString().split(",");0<this.b&&(this.g=[]);F(b,function(a){a&&this.g.push({video_id:a})},this);
this.A=this.g.length;b=M(this.g,function(a){return a.video_id});
AK(this,"/list_ajax?style=json&action_get_templist=1",{video_ids:b.join(",")});this.B=!0}BK(this,!!a.shuffle);a.suggestedQuality&&(this.quality=a.suggestedQuality);for(var c in GH.b)b="playlist_"+c,b=a[b+"_webp"]||a[b],VA.test(b)&&(this.K[GH.b[c]]=b);this.J=a.thumbnail_ids?a.thumbnail_ids.split(","):[]};
DK=function(a){return!!(a.playlist||a.list||a.api)};
EK=function(a){var b=a.b+1;return b>=a.A?0:b};
FK=function(a){var b=a.b-1;return 0>b?a.A-1:b};
BK=function(a,b){a.H=b;var c=a.o&&null!=a.o[a.b]?a.o[a.b]:a.b;a.o=[];for(var d=0;d<a.g.length;d++)a.o.push(d);a.b=c;a.F++;if(a.H){c=a.o[a.b];for(d=1;d<a.o.length;d++){var e=Math.floor(Math.random()*(d+1)),f=a.o[d];a.o[d]=a.o[e];a.o[e]=f}for(d=0;d<a.o.length;d++)a.o[d]==c&&(a.b=d);a.F++}a.X("shuffle")};
GK=function(a,b){a.b=af(b,0,a.A-1);a.startSeconds=0};
Nda=function(a,b){a.D||(a.listId=new yK("UU","PLAYER_"+b),AK(a,"/list_ajax?style=json&action_get_user_uploads_by_user=1",{username:b}))};
Oda=function(a,b){a.D||(a.listId=new yK("FL","PLAYER_"+b),AK(a,"/list_ajax?style=json&action_get_favorited_by_user=1",{username:b}))};
Pda=function(a,b){if(!a.D){a.listId=new yK("SR",b);var c={search_query:b};a.N&&(c.mob="1");AK(a,"/search_ajax?style=json&embeddable=1",c)}};
Qda=function(a){if(!a.D){var b={list:a.listId},c=a.Gb();c&&c.videoId&&(b.v=c.videoId);AK(a,"/list_ajax?style=json&action_get_list=1",b)}};
AK=function(a,b,c){a.L&&bk(Ug(b,c),{format:"JSON",rb:x(function(a,b){HK(this,b)},a),
onError:x(function(){this.X("error")},a)})};
HK=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.G=b.loop);var c=a.Gb();a.g=[];F(b.video,function(a){a&&(a.video_id=a.encrypted_id,this.g.push(a))},a);
a.A=a.g.length;b.index?a.b=b.index:Rda(a,c);BK(a,!1);a.D=!1;a.B=!0;a.F++;a.C&&a.C()}};
Rda=function(a,b){if(b){var c=b.videoId;if(!a.g[a.b]||a.g[a.b].video_id!=c)for(var d=0;d<a.g.length;d++)if(a.g[d].video_id==c){a.b=d;break}}};
IK=function(a){pk.call(this);this.b=a;this.loaded=!1};
JK=function(a){R.call(this,a);this.N=new pk;H(this,this.N)};
KK=function(a,b){JK.call(this,{I:"div",fa:["html5-endscreen","ytp-player-content",b||"base-endscreen"]});this.b=a;this.K=!1};
LK=function(){R.call(this,["div","ytp-subscribe-card",["img","ytp-author-image",{src:"{{image}}"}],["div","ytp-subscribe-card-right",["div","ytp-author-name","{{author}}"],["div","html5-subscribe-button-container"]]])};
MK=function(a,b){R.call(this,b||{I:"div",W:"ytp-thumbnail-overlay"});this.A=new yv(this,250);H(this,this.A);this.b=a};
NK=function(a){MK.call(this,a,{I:"div",fa:["ytp-thumbnail-overlay","ytp-channel-overlay"],P:[{I:"div",W:"ytp-thumbnail-overlay-image",U:{style:"{{background}}"}},{I:"div",W:"ytp-thumbnail-overlay-curtain"}]})};
OK=function(a){KK.call(this,a,"subscribecard-endscreen");this.o=new NK(a);H(this,this.o);kw(this.b,this.o.element,4);this.A=new LK;H(this,this.A);this.oa()};
PK=function(a){return DK(a)?(a.fetch=0,new CK(a)):new GH(a)};
QK=function(a,b,c,d){var e=b.Gb();J(a.element,"ytp-suggestion-set",!!e.videoId);var f=b.Ug();d=b.Gc(c,d?d:"mqdefault.jpg");var k=b instanceof GH?Qq(b.lengthSeconds):null,l=!!f,f=l&&"RD"==zK(f).type;c={title:b.title,author:b.author,author_and_views:e.shortViewCount?b.author+" \u2022 "+e.shortViewCount:b.author,watch:N("YTP_WATCH_VIDEO_OR_PLAYLIST",{TITLE:b.title},b.title),duration:k,url:b.Nl(c),is_featured:e.fr,is_list:l,is_mix:f,background:d?"background-image: url("+d+")":""};b instanceof CK&&(c.playlist_length=
b.A);a.update(c)};
RK=function(a){var b=S(a).experiments.Z("moving_thumbnails_autonav"),c={I:"img",W:"ytp-upnext-moving-thumbnail",U:{src:"{{moving_thumbnail}}"}},c={I:"div",W:"ytp-upnext",U:{"aria-label":"{{watch}}"},P:[{I:"div",W:"ytp-thumbnail-overlay-image",U:{style:"{{background}}"}},b?c:null,{I:"div",W:"ytp-thumbnail-overlay-curtain"},{I:"span",W:"ytp-upnext-top",P:[{I:"span",W:"ytp-upnext-header",P:[N("YTP_PLAYLIST_UP_NEXT")]},{I:"span",W:"ytp-upnext-title",P:["{{title}}"]},{I:"span",W:"ytp-upnext-author",P:["{{author}}"]}]},
{I:"a",W:"ytp-upnext-autoplay-icon",U:{href:"{{url}}"},P:[{I:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 98 98",width:"100%"},P:[{I:"circle",W:"ytp-svg-autoplay-circle",U:{cx:"49",cy:"49",fill:"#000","fill-opacity":"0.8",r:"48"}},{I:"circle",W:"ytp-svg-autoplay-ring",U:{cx:"-49",cy:"49","fill-opacity":"0",r:"46.5",stroke:"#FFFFFF","stroke-dasharray":"293","stroke-dashoffset":"-293","stroke-width":"4",transform:"rotate(-90)"}},{I:"polygon",W:"ytp-svg-autoplay-triangle",U:{fill:"#fff",points:"32,27 72,49 32,71"}}]}]},
{I:"span",W:"ytp-upnext-bottom",P:[{I:"span",W:"ytp-upnext-cancel"},{I:"span",W:"ytp-upnext-paused",P:[N("YTP_AUTOPLAY_PAUSED_2")]}]},{I:"span",W:"ytp-upnext-close"}]};R.call(this,c);var d=this.pa["ytp-upnext-cancel"],c=this.pa["ytp-upnext-close"],e=new R({I:"button",fa:["ytp-upnext-cancel-button","ytp-button"],U:{tabindex:0,"aria-label":N("YTP_AUTOPLAY_CANCEL")},P:[N("YTP_CANCEL")]});H(this,e);e.O("click",this.Mr,this);e.Ba(d);d=new R({I:"button",fa:["ytp-upnext-close-button","ytp-button"]});H(this,
d);d.O("click",this.Mr,this);d.Ba(c);this.o=a;this.G=this.pa["ytp-svg-autoplay-ring"];this.C=this.B=this.b=this.A=null;this.D=new ge(this.Ki,5E3,this);H(this,this.D);this.F=0;this.S(this.pa["ytp-upnext-autoplay-icon"],"click",this.ZD);this.Lr();this.S(a,"autonavvisibility",this.Lr);b&&this.S(this.pa["ytp-upnext-moving-thumbnail"],"load",this.LJ)};
SK=function(a){a.b||(hj("a11y-announce",N("YTP_PLAYLIST_UP_NEXT")+" "+a.A.title),a.F=zq(),a.b=new ge(a.Tk,25,a),a.Tk());me(a.element,"ytp-upnext-autoplay-paused")};
UK=function(a){TK(a);a.F=zq();a.Tk();I(a.element,"ytp-upnext-autoplay-paused")};
TK=function(a){a.b&&(a.b.dispose(),a.b=null)};
VK=function(a){var b=S(a),c=b.experiments.Z("video_wall_moving_thumbnails_autoplay"),d=b.experiments.Z("video_wall_moving_thumbnails_hover"),c=c||d;this.B=b.D;b=bm||Dc?{style:"will-change: opacity"}:null;d={I:"img",W:"ytp-videowall-moving-thumbnail",U:{src:"{{moving_thumbnail}}"}};R.call(this,{I:"a",W:"ytp-videowall-still",U:{href:"{{url}}",target:this.B?"_blank":null,"aria-label":"{{watch}}","data-is-featured":"{{is_featured}}","data-is-list":"{{is_list}}","data-is-mix":"{{is_mix}}"},P:[{I:"div",
W:"ytp-videowall-still-image",U:{style:"{{background}}"}},c?d:null,{I:"span",W:"ytp-videowall-still-featured-label",P:[N("YTP_FEATURED")]},{I:"span",W:"ytp-videowall-still-info",P:[{I:"span",W:"ytp-videowall-still-info-bg",P:[{I:"span",W:"ytp-videowall-still-info-content",U:b,P:[{I:"span",W:"ytp-videowall-still-info-title",P:["{{title}}"]},{I:"span",W:"ytp-videowall-still-info-author",P:["{{author_and_views}}"]},{I:"span",W:"ytp-videowall-still-info-duration",P:["{{duration}}"]}]}]}]},{I:"span",fa:["ytp-videowall-still-listlabel-regular",
"ytp-videowall-still-listlabel"],P:[{I:"span",W:"ytp-videowall-still-listlabel-icon"},N("YTP_PLAYLIST"),{I:"span",W:"ytp-videowall-still-listlabel-length",P:[" (",{I:"span",P:["{{playlist_length}}"]},")"]}]},{I:"span",fa:["ytp-videowall-still-listlabel-mix","ytp-videowall-still-listlabel"],P:[{I:"span",W:"ytp-videowall-still-listlabel-mix-icon"},N("YTP_MIX"),{I:"span",W:"ytp-videowall-still-listlabel-length",P:[" (50+)"]}]}]});this.o=a;this.b=null;this.C=new ge(this.Tt,6E3,this);this.O("click",this.lI);
this.O("keypress",this.mI);c&&this.S(this.pa["ytp-videowall-moving-thumbnail"],"load",this.oI)};
WK=function(a){if(5E5<fD(a.o.app.ha)){var b=a.b.Ui();b&&a.update({moving_thumbnail:b})}};
XK=function(a,b){KK.call(this,a,"videowall-endscreen");this.$=a;this.ba=b;this.F=0;this.B=[];this.G=this.C=this.o=null;this.H=this.R=!1;this.D=new Fx(this);H(this,this.D);this.J=new ge(qa(I,this.element,"ytp-show-tiles"),0);H(this,this.J);var c=new R({I:"button",fa:["ytp-button","ytp-endscreen-previous"],U:{"aria-label":N("YTP_PREVIOUS")},P:[{I:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 32 32",width:"100%"},P:[{I:"path",U:{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"}}]}]});
H(this,c);c.Ba(this.element);c.O("click",this.wC,this);this.L=new Iq({I:"div",W:"ytp-endscreen-content"});H(this,this.L);this.L.Ba(this.element);c=new R({I:"button",fa:["ytp-button","ytp-endscreen-next"],U:{"aria-label":N("YTP_NEXT")},P:[{I:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 32 32",width:"100%"},P:[{I:"path",U:{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"}}]}]});H(this,c);c.Ba(this.element);c.O("click",this.vC,this);this.A=new RK(a);H(this,this.A);kw(this.b,
this.A.element,4);this.oa()};
YK=function(a){return AJ(a.b)&&a.Xk()&&!a.G};
ZK=function(a){return M(a.N,function(a){return PK(a)})};
$K=function(a,b,c){return 0==b&&a.o.length&&(b=c/XK.b,2<=c/XK.b&&2<=b&&S(a.b).experiments.Z("video_wall_emphasize_first"))?2*XK.b:XK.b};
aL=function(a){var b=hJ(a.ba);b!=a.R&&(a.R=b,a.b.Va("autonavvisibility"))};
g.cL=function(a){IK.call(this,a);Zi({});this.g=null;this.o=new Fx(this);H(this,this.o);var b=S(a);bL(a)?this.g=new XK(this.b,this):b.ha?this.g=new OK(this.b):this.g=new KK(this.b);H(this,this.g);kw(this.b,this.g.element,4);this.gt();this.o.S(a,"videodatachange",this.gt,this);this.o.S(a,"crn_endscreen",this.dI,this);this.o.S(a,"crx_endscreen",this.eI,this)};
jJ=function(a){var b=a.b.getVideoData(),c=!bL(a.b)||!(!b.N||!b.N.length),b=us(b,"ypc_module");a=dL(a.b.app);return c&&!b&&!a};
bL=function(a){a=S(a);return a.Dd&&!a.ha};
hJ=function(a){return a.g instanceof XK&&a.g.g&&YK(a.g)};
eL=function(a){this.Y=a;this.g=null;this.b=new ng(0,0,0,0);this.B=new hf(0,0);this.A=this.o=0;cB&&zc(11)&&(this.g=window.document.createElement("canvas").getContext("2d"),zc(12.10532)||(this.o=3))};
fL=function(a,b,c,d,e,f){e>=f?(d+=Math.random()*f|0,f=1):(c+=Math.random()*e|0,e=1);try{a.g.drawImage(b,c,d,e,f,c,d,e,f)}catch(k){if(!(k instanceof window.DOMException)||"IndexSizeError"!=k.name)throw k;}a=a.g.getImageData(c,d,e,f).data;for(b=0;b<a.length;b+=4)if(255<a[b]+a[b+1]+a[b+2]+a[b+3])return!0;return!1};
gL=function(a,b,c){this.F=b||!1;this.C=c||null;this.g="precision mediump float;\nuniform sampler2D uSplr;\nvarying vec2 vTexCrd;\nvoid main(void) {\n  gl_FragColor = texture2D(uSplr, vTexCrd);\n}";this.B=new eL(a)};
hL=function(a,b){gL.call(this,a);this.g="precision mediump float;\nuniform sampler2D uSplr;\nuniform int mode;\nvarying vec2 vTexCrd;\nuniform mat4 mLt;\nuniform mat4 mRt;\nvoid anaglyph(float x, float y) {\n  x *= 0.5;\n  vec4 cLt = texture2D(uSplr, vec2(x, y));\n  vec4 cRt = texture2D(uSplr, vec2(0.5 + x, y));\n  gl_FragColor = mLt * cLt + mRt * cRt;\n}\nvoid main(void) {\n  if (mode == 2) {\n    anaglyph(vTexCrd.x, vTexCrd.y);\n  }\n  else if (mode == 1) {\n    gl_FragColor = texture2D(uSplr, vec2(vTexCrd.x * 0.5, vTexCrd.y));\n  }\n}";
this.D=b;this.A=null;this.b=Jj("yt-player-webgl-anaglyph-3d-display-mode")||2;this.o=!0};
iL=function(a,b){gL.call(this,a,!0,b);this.g="precision highp float;\nuniform sampler2D uSplr;\nuniform sampler2D uNoiseSplr;\nuniform float seed;\nuniform float amount;\nuniform float offset;\nvarying vec2 vTexCrd;\nvoid main(void) {\n  vec4 col = vec4(texture2D(uSplr, vTexCrd).xyz, 1.0);\n  vec4 noiseCol = texture2D(uNoiseSplr, vTexCrd + seed);\n  float maxCol = max(max(col.x, col.y), col.z);\n  float amt = amount * smoothstep(0.0, 0.1, maxCol);\n  amt = amt * smoothstep(0.0, 0.1, 1.0 - maxCol);\n  col.xyz = col.xyz + (noiseCol.x - offset) * amt;\n  gl_FragColor = col;\n}";
this.o=null;this.Y=a;this.J=S(a).experiments.Z("white_noise_with_interval");this.G=S(a).experiments.b("white_noise_amount")||.05;this.H=S(a).experiments.b("white_noise_offset")||-.5;this.A=0};
jL=function(a,b){iL.call(this,a,b);this.g="precision highp float;\nuniform sampler2D uSplr;\nuniform float seed;\nuniform int mode;\nvarying vec2 vTexCrd;\nfloat noise(vec2 crd)\n{\n  return fract(sin(crd.y * 99.87 + crd.x * 0.0978) * seed);\n}\nvoid main(void) {\n  if (mode == 0) { gl_FragColor = texture2D(uSplr,vTexCrd); return; }\n  vec2 texCrdMinusx = vec2(vTexCrd.x - 0.00156, vTexCrd.y);\n  vec2 texCrdMinusy = vec2(vTexCrd.x, vTexCrd.y - 0.00277);\n  vec4 orjcol = texture2D(uSplr,vTexCrd);\n  vec4 col = orjcol * 1.8 -\n      texture2D(uSplr,texCrdMinusx) * 0.4 -\n      texture2D(uSplr,texCrdMinusy) * 0.4;\n  vec4 diff = orjcol * 2.0 -\n      texture2D(uSplr,texCrdMinusx) -\n      texture2D(uSplr,texCrdMinusy);\n  float fDiff = length(diff);\n  float maxCol = max(max(orjcol.x, orjcol.y), orjcol.z);\n  float namt = 0.035;\n  namt = namt * smoothstep(0.0, 0.1, maxCol);\n  namt = namt * smoothstep(0.0, 0.1, 1.0 - maxCol);\n  float noiseL = noise(gl_FragCoord.xy) * namt;\n  float eamt = smoothstep(0.0, 0.05, fDiff);\n  col = eamt * col + (1.0 - eamt) * orjcol;\n  col.xyz = col.xyz + ((1.0 - eamt) * noiseL);\n  gl_FragColor = col;\n}";
this.b=null;this.D=!1};
kL=function(a){this.length=a.length||a;for(var b=0;b<this.length;b++)this[b]=a[b]||0};
lL=function(a){this.length=a.length||a;for(var b=0;b<this.length;b++)this[b]=a[b]||0};
mL=function(a){var b=a[0],c=a[1];a=a[2];return Math.sqrt(b*b+c*c+a*a)};
pL=function(a,b,c,d,e,f,k){this.D=f;this.B=Math.cos(k);this.C=Math.sin(k);this.b=nL(a);this.g=nL(a);this.o=nL(a);this.A=nL(a);c.connect(this.b,b.w,0);c.connect(this.g,b.x,0);c.connect(this.o,b.y,0);c.connect(this.A,b.z,0);this.b.connect(d,0,e);this.g.connect(d,0,e);this.o.connect(d,0,e);this.A.connect(d,0,e);oL(this,0,0);this.b.gain.value=1-this.D};
oL=function(a,b,c){var d=Math.sin(b);b=Math.cos(b);var e=Math.sin(c);c=Math.cos(c);a.g.gain.value=b*c*a.B-d*a.C;a.o.gain.value=d*c*a.B+b*a.C;a.A.gain.value=e*a.B};
qL=function(a,b,c){this.b=a;this.o=c;this.A=this.g=null};
rL=function(a,b,c){qL.call(this,a,0,c);this.C=this.B=null};
sL=function(a){return 1==a?{w:2,x:0,y:1,z:4,channelCount:6}:2==a?{w:0,x:3,y:1,z:2,channelCount:4}:{}};
tL=function(){this.b=new window.Float32Array(16);this.o=new window.Float32Array(16);this.g=new window.Float32Array(16);this.identity()};
uL=function(a,b){for(var c=0;16>c;c+=4)a.g[c+0]=a.b[c+0]*b[0]+a.b[c+1]*b[4]+a.b[c+2]*b[8]+a.b[c+3]*b[12],a.g[c+1]=a.b[c+0]*b[1]+a.b[c+1]*b[5]+a.b[c+2]*b[9]+a.b[c+3]*b[13],a.g[c+2]=a.b[c+0]*b[2]+a.b[c+1]*b[6]+a.b[c+2]*b[10]+a.b[c+3]*b[14],a.g[c+3]=a.b[c+0]*b[3]+a.b[c+1]*b[7]+a.b[c+2]*b[11]+a.b[c+3]*b[15];c=a.b;a.b=a.g;a.g=c};
vL=function(a){var b=new window.Float32Array(3),c=mL(a);b[0]=a[0]/c;b[1]=a[1]/c;b[2]=a[2]/c;a=1/(Math.abs(b[0])+Math.abs(b[1])+Math.abs(b[2]));b[0]*=a;b[1]*=a;b[2]*=a;0<b[2]&&(a=(1-Math.abs(b[0]))*(0<b[1]?1:-1),b[0]=(1-Math.abs(b[1]))*(0<b[0]?1:-1),b[1]=a);b[0]*=.5;b[1]*=.5;b[2]*=.5;b[0]+=.5;b[1]+=.5;a=Math.floor(256*b[0]);b=Math.floor(256*b[1]);256==a&&--a;256==b&&--b;return{x:a,y:255-b}};
Sda=function(a){function b(a,b){var c,d=b;for(c=0;a[c]!=b;++c){var e=a[c];a[c]=d;d=e}a[c]=d;return c}
var c=a.length,d=Array(2*c+3),e=0;d[0]=0;d[1]=c>>8&255;d[2]=c&255;for(var e=3,f=Array(256),k=Array(256),l=Array(256),m=0;256>m;++m)f[m]=m,k[m]=m,l[m]=0;for(var n=0,t=0,m=0;m<c;++m){var u=a[m],y=b(f,u);k[t]==u?l[t]+=4:0==(l[t]>>=1)&&(k[t]=u,l[t]=1);1<l[u]&&b(f,k[u]);t=u;0==y&&++n;if(0!=y||m+1==c){for(;0<n;)--n,0==n%2?d[e++]=0:d[e++]=254,n>>=1;if(255==y||254==y)d[e++]=255;0!=y&&(d[e++]=y)}}return d.slice(0,e)};
Tda=function(){this.C=this.F=this.g=this.D=this.o=0;this.B=new window.Float32Array(3);this.A=-1;this.b=[]};
wL=function(a,b){this.F=a;this.o=null;this.R=b;this.B=new tL;this.ea=this.ca=this.da=this.La=null;this.C=.872;this.aa=this.$=this.ba=this.g=this.b=0;this.J=!0;this.A=this.D=0;this.H=new window.Float32Array(3);this.K=new eL(a);this.ga=new Tda};
xL=function(a,b){wL.call(this,a,b);this.N=null;this.G=Jj("yt-player-webgl-spherical-3d-display-mode")||1;this.L=!0};
yL=function(a,b,c){this.D=c;this.A=Ky(a).b;this.H=10;this.B=!0;this.R=this.L=this.ba=this.o=this.g=null;this.aa=b;this.b=null;this.Y=a;this.C=new ng(0,0,0,0);this.J=!1;this.G=!0};
Vda=function(a,b){a.g=window.document.createElement("canvas");if(!a.g)return 1;a.D.appendChild(a.g);var c=b||S(a.Y).experiments.Z("webgl_use_creation_attribs")?{alpha:!1,antialias:!1,depth:!1,failIfMajorPerformanceCaveat:b}:null;try{a.o=a.g.getContext("webgl",c)||(b?null:a.g.getContext("experimental-webgl"))}catch(e){return 2}if(null==a.o)return 3;c=Uda(a);if(0!=c)return c;var c=a.o,d=c.createBuffer();c.bindBuffer(c.ARRAY_BUFFER,d);c.bufferData(c.ARRAY_BUFFER,new window.Float32Array([-1,-1,0,1,-1,
0,-1,1,0,1,1,0]),c.STATIC_DRAW);a.L=d;c=a.o;d=c.createTexture();c.activeTexture(c.TEXTURE0);c.bindTexture(c.TEXTURE_2D,d);c.texParameteri(c.TEXTURE_2D,c.TEXTURE_MIN_FILTER,c.LINEAR);c.texParameteri(c.TEXTURE_2D,c.TEXTURE_MAG_FILTER,c.LINEAR);c.texParameteri(c.TEXTURE_2D,c.TEXTURE_WRAP_S,c.CLAMP_TO_EDGE);c.texParameteri(c.TEXTURE_2D,c.TEXTURE_WRAP_T,c.CLAMP_TO_EDGE);a.ba=d;c=a.o;c.clearColor(0,0,0,1);c.clear(c.COLOR_BUFFER_BIT|c.DEPTH_BUFFER_BIT);c.bindBuffer(c.ARRAY_BUFFER,a.L);c.vertexAttribPointer(a.N,
3,c.FLOAT,!1,0,0);a.K();a.A.crossOrigin="use-credentials";return 0};
Uda=function(a){var b=a.o,c=b.createShader(b.VERTEX_SHADER);b.shaderSource(c,a.b.Kl());b.compileShader(c);if(!b.getShaderParameter(c,b.COMPILE_STATUS))return 4;var d=b.createShader(b.FRAGMENT_SHADER);b.shaderSource(d,a.b.Bl());b.compileShader(d);if(!b.getShaderParameter(d,b.COMPILE_STATUS))return 5;var e=b.createProgram();b.attachShader(e,c);if(1!=b.getProgramParameter(e,b.ATTACHED_SHADERS))return 6;b.attachShader(e,d);if(2!=b.getProgramParameter(e,b.ATTACHED_SHADERS))return 7;b.linkProgram(e);if(0==
b.getProgramParameter(e,b.LINK_STATUS))return 8;b.validateProgram(e);b.useProgram(e);if(0==b.getProgramParameter(e,b.VALIDATE_STATUS))return 9;a.N=b.getAttribLocation(e,"aVertPos");b.enableVertexAttribArray(a.N);a.R=e;a.b.Yd(b,a.R,a.D);return 0};
g.zL=function(a){IK.call(this,a);this.o=new Fx(this);H(this,this.o);this.A=new R({I:"div",W:"webgl"});H(this,this.A);this.Y=a;this.g=null;this.load()};
AL=function(a,b){if(a.g){var c=a.g;c.b&&c.b.bi(b)}};
Wda=function(a){a=a.A;this.o=a.ypc_offer_button_text;this.description=a.ypc_offer_description;this.heading=a.ypc_offer_headline;this.A=a.ypc_full_video_message;this.offerId=a.ypc_offer_id;this.b=a.ypc_buy_url;this.thumbnail=a.ypc_item_thumbnail;VA.test(this.thumbnail)||(this.thumbnail="");this.title=a.ypc_item_title;this.g=a.ypc_item_url;this.videoId=a.ypc_vid};
BL=function(){JK.call(this,["div",["ytp-drawer","html5-stop-propagation"],["div","ytp-drawer-content","{{content}}"],["button",["ytp-drawer-close-button","ytp-button"],Ch()],["button",["ytp-drawer-open-button","ytp-button"]]]);this.S(this.pa["ytp-drawer-close-button"],"click",this.o);this.S(this.pa["ytp-drawer-open-button"],"click",this.show);this.b=new ge(qa(me,this.element,"ytp-drawer-closed"),0);H(this,this.b);this.Nb(null);this.oa()};
CL=function(a,b,c){pk.call(this);this.o=0==c;this.b=new BL;this.b.subscribe("close-clicked",this.B,this);H(this,this.b);this.A=window.document.createElement("div");I(this.A,"html5-ypc-endscreen");this.g=new R({I:"div",W:"html5-ypc-module",P:[{I:"div",W:"html5-ypc-action-heading",P:["{{heading}}"]},{I:"div",W:"html5-ypc-thumbnail",P:["{{thumbnail_element}}"]},{I:"div",W:"html5-ypc-title",P:["{{title}}"]},{I:"div",W:"html5-ypc-description",P:["{{description}}"]},{I:"button",fa:["html5-ypc-purchase",
"ytp-button"],P:["{{button_label}}"]}]});H(this,this.g);this.D=this.g.pa["html5-ypc-purchase"];this.g.S(this.D,"click",this.C,this);c=b.title;b.g&&(c=["a",{href:b.g,target:"blank_"},b.title]);var d="";b.thumbnail&&(d=["img",{src:b.thumbnail}]);this.g.update({heading:b.heading,title:c,thumbnail_element:d,description:b.description,button_label:b.o});this.Ba(a)};
DL=function(a){a.o||(a.A.appendChild(a.g.element),a.b.Nb(null),Nq(a.A,"block"))};
g.EL=function(a){IK.call(this,a);this.g=this.C=this.o=null;this.D=new ge(function(){var a=this.g;a.o||a.b.oa()},0,this);
this.A=null;this.B=new Fx(this);H(this,this.B);this.load()};
FL=function(a,b){G.call(this);this.F=b;this.B=this.g=this.o=null;this.b=[];this.J={};this.A={};this.C={};this.G=null;this.Y=a;this.D=[];this.H=null};
GL=function(a){var b=S(a.Y);if("leanback"==b.b||b.Ub||!b.Dd&&!b.ha)return!1;var c=a.Y.getPresentingPlayerType();if(2==c||3==c)return!1;if(b.experiments.Z("html5_live_endscreen"))return!0;a=a.Y.getVideoData();return!!a&&!a.xa};
HL=function(a,b,c,d){try{var e=q(Xda[b]),f=null;if(d)if(e){if(!S(a.Y).experiments.Z("no_module_version_warnings")){var k=a.F;e._version&&e._version!=k?Xi(Error("Module "+b+" out of sync: "+k+" != "+e._version,"WARNING")):e._version=k}f=new e(a.Y)}else Yda(a,b,c);else hq(a.Y,b)}catch(l){return hq(a.Y,b),Xi(l),null}return f};
IL=function(a){a.o&&(Nb(a.o),a.o=null);a.g&&(Nb(a.g),a.g=null);a.B&&(Nb(a.B),a.B=null);a.b=le(a.b,function(a){try{a.destroy()}catch(c){Xi(c)}return!1},a)};
Zda=function(a,b,c){JL(a);a.H=b;a.D=sb(c);F(a.b,function(a){0<=fb(c,a.Ma)&&(a.F=b,a.yj(!!a.F))})};
JL=function(a){F(a.D,function(a){if(a=nJ(this,a))a.F=null,a.yj(!1)},a);
a.H=null;a.D=[]};
KL=function(a){a=nJ(a,"iv-module");return!(!a||!a.loaded)};
LL=function(a,b){if(!b)return M(a.b,function(a){return a.Ma});
var c=nJ(a,b);return c?c.Qf():[]};
nJ=function(a,b){return cb(a.b,function(a){return a.Ma==b})};
$da=function(a){var b={};F(a.b,function(a){ra(b,a.ai())});
return b};
Yda=function(a,b,c){if(a.F){for(var d=a.F+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=window.document.createElement("script"),f=!0);var n=x(function(){this.isDisposed()||c.call(this)},a),t=x(function(){this.isDisposed()||hq(this.Y,b)},a);
k.onload=qa(function(a){rd(n);a&&a()},k.onload);
k.onerror=qa(function(a){rd(t);a&&a()},k.onerror);
k.onreadystatechange=qa(function(a){switch(k.readyState){case "loaded":case "complete":rd(n,this)}a&&a()},k.onreadystatechange);
f&&(k.src=d,d=window.document.getElementsByTagName("head")[0]||window.document.body,d.insertBefore(k,d.firstChild),Mb(a,function(){k.parentNode&&k.parentNode.removeChild(k)}))}};
ML=function(a,b,c){this.b=b;this.g=c;this.B=a;this.o=!0};
NL=function(a,b){mc.call(this,"adError");this.o=a;this.b=b?b:null};
OL=function(a,b,c){mc.call(this,a);this.o=b;this.b=null!=c?c:null};
aea=function(a){this.b=a};
bea=function(){var a=PL();return QL(a,"disableExperiments")};
QL=function(a,b){if($b(a.b,b)){var c=a.b[b];if(ga(c))return c}return!1};
cea=function(a){if($b(a.b,"forceExperimentIds")){a=a.b.forceExperimentIds;var b=[],c=0;ea(a)&&F(a,function(a){ha(a)&&(b[c++]=a)});
return b}return null};
RL=function(a){return(a=a.match(/^\w{2,3}([-_]|$)/))?a[0].replace(/[_-]/g,""):""};
SL=function(){this.o="always";this.A=1;this.g=!1;this.H=this.C=!0;this.G=!1;this.D=!0;this.F=null};
PL=function(){var a=U;if(null==a.F){var b={},c=(new L(yf().location.href)).b;if(vh(c,"tcnfp"))try{b=bg(c.get("tcnfp"))}catch(d){}a.F=new aea(b)}return a.F};
TL=function(){};
UL=function(a,b,c,d){this.wa=a;this.b=af(c||0,0,1);this.g=null!=d?d:!0};
VL=function(a){this.wa=a;this.g=new Ag;this.b=null};
dea=function(a){var b=Math.random(),c=0,d=a.g.Pa();F(d,function(a){c+=a.b},a);
var e=1<c?c:1;a.b=null;for(var f=0,k=0;k<d.length;++k)if(f+=d[k].b,f/e>=b){a.b=d[k];break}};
fea=function(){this.o=null!=aa.G_testRunner;this.b=new TL;this.g=new Ag;WL(this,31061774,.01);WL(this,31061775,.01);WL(this,41351016,.05);WL(this,41351017,.05);WL(this,41351020,.05);WL(this,41351021,.05);WL(this,41351088,.01);WL(this,41351089,.01);WL(this,136961001,.01);WL(this,136961002,.01);WL(this,420706008,.05);WL(this,420706009,.05);WL(this,231422001,.05);WL(this,231422002,.05);WL(this,31061780,.01);WL(this,31061781,.01);WL(this,31061782,.01);WL(this,420706010,.2);WL(this,420706011,.2);WL(this,
21592050,.01);WL(this,21592051,.01);eea(this);var a;a=PL();a=cea(a);null!=a&&(this.o=!1,XL(this,a.map(String)))};
ZL=function(){YL||(YL=new fea);return YL};
gea=function(a,b){a.b=b};
hea=function(){var a=ZL();F(a.g.Ua(),function(a){ta(a,"FORCED_PUB_EXP_LAYER_")&&this.g.remove(a)},a)};
WL=function(a,b,c){A(B("GvnExternalLayer"))||(0,window.isNaN)(b)||0>=b||(b=new UL(b,0,c),$L(a,"GvnExternalLayer").g.set(b.getId(),b))};
eea=function(a){bea()||F(a.g.Pa(),function(a){dea(a)},a)};
XL=function(a,b){F(b,function(a){var b=Number(a);a="FORCED_PUB_EXP_LAYER_"+a;(0,window.isNaN)(b)||0>=b||A(B(a))||($L(this,a).b=new UL(b,0,0,!0))},a)};
aM=function(a,b){return a.o?!1:Th(a.g.Pa(),function(a){return!!a.b&&a.b.getId()==b})};
bM=function(a){if(a.o)return"";var b=[];F(a.g.Pa(),function(a){(a=a.b)&&a.g&&b.push(a.getId())});
return b.sort().join(",")};
$L=function(a,b){var c=a.g.get(b);null==c&&(c=new VL(b),a.g.set(b,c));return c};
dM=function(a){return null!=a?cM(iea,a):!1};
cM=function(a,b){try{var c=(new L(b)).g,c=c.replace(/^www./i,"");return Th(a,function(a){return jea(a,c)})}catch(d){return!1}};
jea=function(a,b){if(A(B(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};
iM=function(a){var b=!1;eM(a,kea)?b=!1:dM(a)?b=!0:"https:"==window.location.protocol&&(eM(a,lea)||U.b())&&(b=!0);if(b){b=new L(a);if("https"==b.A)return a;bh(b,"https");return b.toString()}return a};
eM=function(a,b){return(new RegExp("^https?://([a-z0-9-]{1,63}\\.)*("+b.join("|").replace(/\./g,"\\.")+")(:[0-9]+)?([/?#]|$)","i")).test(a)};
jM=function(a){window.open(a,"_blank")};
lM=function(a,b,c){null!=a?(lh(a,"label",b),null!=c&&lh(a,"value",c.join(";")),a=a.toString()):a="";kM(a)};
mM=function(a,b,c,d){null!=a&&null!=b&&(a=ku(a,b));try{if(null!=c){b=a;var e=(c||{}).viewability||"na";if(A(B(e)))a=b;else{var f=new L(b);vh(f.b,"label")?(lh(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=ku(c,k);if(2048>l.length){a=l;break a}}a=c}}catch(m){}return a};
kM=function(a,b,c,d){a=mM(a,b,c,void 0);try{a=iM(a);var e=ZL(),f=!U.b()||aM(e,41351089)||e.b.Z("html5_detect_image_pings"),k=e.b.Z("html5_try_beacons");null!=d&&d?nM.Ct(a,f):U.D?nM.gG(a,f,k):nM.Kj(a,f,k)}catch(l){}};
oM=function(a,b){null!=a&&F(a,function(a){kM(a,b)})};
mea=function(a,b){if(A(B(b)))return a;var c=new L(a),d=c.g;return null!=d&&ua(d,".g.doubleclick.net")?(lh(c,"ged",b),c.toString()):a};
pM=function(a,b){this.message=a;this.errorCode=b};
rM=function(a,b,c){return qM("adLoadError",a,b||null,ub(arguments,2))};
sM=function(a,b,c){return qM("adPlayError",a,b||null,ub(arguments,2))};
tM=function(a,b,c,d,e){var f=a.apply(null,rb([c,d],ub(arguments,3)));b.dispatchEvent(new OL("log",null,f))};
qM=function(a,b,c,d){if(c instanceof ML)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 ML(a,b,e);a.A=c;return a};
uM=function(a,b,c,d){var e=sM.apply(null,rb([b,c],ub(arguments,3)));a.dispatchEvent(new NL(e))};
wM=function(){return!vM()&&(uc("iPod")||uc("iPhone")||uc("Android")||uc("IEMobile"))};
vM=function(){return uc("iPad")||uc("Android")&&!uc("Mobile")||uc("Silk")};
xM=function(){return wM()||vM()};
zM=function(){return nea&&!yM||Ka(sc,"iPod")};
AM=function(){return zM()||yM};
DM=function(a){return aB&&BM(CM,a)};
BM=function(a,b){if(null==EM[b]){var c=FM(a);c?(c=c.replace(/_/g,"."),EM[b]=0<=Ra(c,b)):EM[b]=!1}return EM[b]};
FM=function(a){A(GM)&&(a=a.exec(sc))&&(GM=a[1]);return GM};
HM=function(){var a=sc;return a?Ka(a,"Nintendo WiiU"):!1};
IM=function(){var a;if(!(a=Ka(sc,"CrKey")||Ka(sc,"PlayStation")||Ka(sc,"Roku")))if(a=sc){var b=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");a=aM(ZL(),420706011)?b||Ka(a,"TV Store")||Ka(a,"OMI/")||Ka(a,"Presto")&&Ka(a,"Linux")&&!Ka(a,"X11")&&!Ka(a,"Android")&&!Ka(a,"Mobi"):b}else a=!1;return a||Ka(sc,"Xbox")};
JM=function(){return zM()||aB&&!DM(4)||!U.b()&&IM()?!1:!0};
KM=function(){this.reset()};
LM=function(a,b){null!=b&&a.g!=b?(a.b=1,a.g=b):a.b=null!=b?a.b+1:1;return a.b};
MM=function(){this.g=this.b=null};
OM=function(){this.b=NM();this.J=-1;this.K=this.L=this.C=this.H=this.g=null;this.B=NM();this.A=null;this.R=this.D=this.F="";this.G=this.N=this.ba=this.o=null;this.aa=!1};
NM=function(){return Math.floor(4503599627370496*Math.random())};
PM=function(a){null==a.C&&(a.C=new KM);return a.C};
QM=function(a){if(U.g){var b;return"h.3.0.0"}b="h."+a.R;null!=a.o&&(b+="/n."+a.o,null!=a.g&&(b+="/"+a.g));return b};
RM=function(){this.b=.01>Math.random();this.g=Math.floor(4503599627370496*Math.random())};
UM=function(a,b,c,d){if(a.b||d){c=c||{};c.lid=b;c.sdkv=QM(SM);b=bM(ZL());A(B(b))||(c.e=b);c=oea(a,c);var e=new L("http://pagead2.googlesyndication.com/pagead/gen_204");Pb(c,function(a,b){lh(e,b,null!=a?"boolean"==typeof a?a?"t":"f":""+a:"")},a);
a=TM();bh(e,a.A);kM(e.toString())}};
oea=function(a,b){b.id="";var c=TM();b.c=a.g;b.domain=c.g;return b};
TM=function(){var a=yf(),b=window.document;return new L(a.parent==a?a.location.href:b.referrer)};
VM=function(){};
YM=function(a,b,c){a.b=null;b||(b=[]);a.D=void 0;a.A=-1;a.g=b;a:{if(a.g.length){b=a.g.length-1;var d=a.g[b];if(d&&"object"==typeof d&&!ea(d)&&!(WM&&d instanceof window.Uint8Array)){a.B=b-a.A;a.o=d;break a}}a.B=Number.MAX_VALUE}a.C={};if(c)for(b=0;b<c.length;b++)d=c[b],d<a.B?(d+=a.A,a.g[d]=a.g[d]||XM):a.o[d]=a.o[d]||XM};
V=function(a,b){if(b<a.B){var c=b+a.A,d=a.g[c];return d===XM?a.g[c]=[]:d}d=a.o[b];return d===XM?a.o[b]=[]:d};
ZM=function(a,b,c){a.b||(a.b={});if(!a.b[c]){var d=V(a,c);d&&(a.b[c]=new b(d))}return a.b[c]};
aN=function(a){if(a.b)for(var b in a.b){var c=a.b[b];if(ea(c))for(var d=0;d<c.length;d++)c[d]&&$M(c[d]);else c&&$M(c)}};
$M=function(a){aN(a);return a.g};
bN=function(a){var b;if(ea(a)){for(var c=Array(a.length),d=0;d<a.length;d++)null!=(b=a[d])&&(c[d]="object"==typeof b?bN(b):b);return c}if(WM&&a instanceof window.Uint8Array)return new window.Uint8Array(a);c={};for(d in a)null!=(b=a[d])&&(c[d]="object"==typeof b?bN(b):b);return c};
cN=function(a){YM(this,a,null)};
dN=function(a){YM(this,a,null)};
eN=function(a){YM(this,a,null)};
fN=function(a){YM(this,a,null)};
gN=function(a){YM(this,a,null)};
hN=function(a){YM(this,a,null)};
iN=function(){};
jN=function(){return Math.round(C()/1E3)};
pea=function(a){var b;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:jN()};
kN=function(a){for(var b=[],c=a=yf(a.ownerDocument);c!=a.top;c=c.parent)if(c.frameElement)b.push(c.frameElement);else break;return b};
lN=function(){this.b={};this.g=0};
mN=function(a,b){this.B=a;this.o=!0;this.b=b};
nN=function(a,b){mN.call(this,String(a),b);this.A=a;this.b=!!b};
oN=function(a,b){mN.call(this,a,b)};
pN=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 oN("",new ng(c,b,Number(a[3])-c,Number(a[2])-b))}return new oN("",new ng(0,0,0,0))};
rN=function(){qN||(qN=new lN);return qN};
sN=function(a){var b=new ng(-Number.MAX_VALUE/2,-Number.MAX_VALUE/2,Number.MAX_VALUE,Number.MAX_VALUE),c=new ng(0,0,0,0);if(!a||0==a.length)return c;for(var d=0;d<a.length;d++){var e;a:{e=b;var f=a[d],k=Math.max(e.left,f.left),l=Math.min(e.left+e.width,f.left+f.width);if(k<=l){var m=Math.max(e.top,f.top),f=Math.min(e.top+e.height,f.top+f.height);if(m<=f){e.left=k;e.top=m;e.width=l-k;e.height=f-m;e=!0;break a}}e=!1}if(!e)return c}return b};
tN=function(a,b){var c=a.getBoundingClientRect(),d=Ts(a,b);return new ng(Math.round(d.x),Math.round(d.y),Math.round(c.right-c.left),Math.round(c.bottom-c.top))};
uN=function(a,b,c){if(b&&c){var d;a:{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 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;a.setItem(new mN("vp",d));d&&0<d?(e=og(b),f=og(c),e=e.top>=f.top&&e.top<f.bottom):e=!1;a.setItem(new nN(512,e));d&&0<d?(e=og(b),f=og(c),e=e.bottom<=f.bottom&&e.bottom>f.top):e=!1;a.setItem(new nN(1024,
e));d&&0<d?(e=og(b),f=og(c),e=e.left>=f.left&&e.left<f.right):e=!1;a.setItem(new nN(2048,e));d&&0<d?(b=og(b),c=og(c),c=b.right<=c.right&&b.right>c.left):c=!1;a.setItem(new nN(4096,c))}};
vN=function(){this.g=-1};
wN=function(){this.b={};return this};
xN=function(a,b){a.b.eb=fc(a.b,"eb",0)|b};
qea=function(a,b){var c=0;Zb(yf(),"ima","video","client","tagged")&&(c=1);var d;d=null;a&&(d=a());if(d){var e=d;d=rN();d.b={};var f=new nN(32,!0);f.o=!1;d.setItem(f);f=yf().document;f=f.webkitVisibilityState||f.mozVisibilityState||f.visibilityState||f.msVisibilityState||"";d.setItem(new nN(64,"hidden"!=f.toLowerCase().substring(f.length-6)?!0:!1));var k;try{var l;var m=yf().top;try{l=!!m.location.href||""===m.location.href}catch(u){l=!1}if(l){var n=kN(e);k=n&&0!=n.length?"1":"0"}else k="2"}catch(u){k=
"2"}d.setItem(new nN(256,"2"==k));d.setItem(new nN(128,"1"==k));n=l=yf().top;"2"==k&&(n=yf());m=tN(e,n);d.setItem(new oN("er",m));var t;try{t=n.document&&!n.document.body?null:uf(n||window)}catch(u){t=null}t?(n=xf(of(n.document).b),d.setItem(new nN(16384,!!n)),t=n?new ng(n.x,n.y,t.width,t.height):null):t=null;d.setItem(new oN("vi",t));if(t&&"1"==k){k=kN(e);e=[];for(n=0;n<k.length;n++)(f=tN(k[n],l))&&e.push(f);e.push(t);t=sN(e)}uN(d,m,t);d.g&&(k=jN()-d.g,d.setItem(new mN("ts",k)));d.g=jN()}else d=
rN(),d.b={},d.g=jN(),d.setItem(new nN(32,!1));this.o=d;this.b=new wN;this.b.set("ve",4);c&&xN(this.b,1);Zb(yf(),"ima","video","client","crossdomainTag")&&xN(this.b,4);Zb(yf(),"ima","video","client","sdkTag")&&xN(this.b,8);Zb(yf(),"ima","video","client","jsTag")&&xN(this.b,2);b&&fc(b,"fullscreen",!1)&&xN(this.b,16);this.g=d=null;if(c&&(c=Zb(yf(),"ima","video","client"),c.getEData)){this.g=c.getEData();if(c=Zb(yf(),"ima","video","client","getLastSnapshotFromTop"))if(k=c())this.g.extendWithDataFromTopIframe(k.tagstamp,
k.playstamp,k.lactstamp),c=this.o,d=k.er,k=k.vi,d&&k&&(d=pN(d).getValue(),k=pN(k).getValue(),e=null,c.getItem("er")&&(e=c.getItem("er").getValue(),e.top+=d.top,e.left+=d.left,c.setItem(new oN("er",e))),c.getItem("vi")&&(t=c.getItem("vi").getValue(),t.top+=d.top,t.left+=d.left,l=[],l.push(t),l.push(d),l.push(k),d=sN(l),uN(c,e,d),c.setItem(new oN("vi",k))));a:{if(this.g){if(this.g.getTagLoadTimestamp){d=this.g.getTagLoadTimestamp();break a}if(this.g.getTimeSinceTagLoadSeconds){d=this.g.getTimeSinceTagLoadSeconds();
break a}}d=null}}this.b.set("td",jN()-pea(d))};
rea=function(a,b){try{var c=new qea(a,b),d=[],e=Number(c.b.get("eb"));c.b.remove("eb");var f,k=c.b,l=[],m;for(m in k.b)l.push(m+k.b[m]);(f=l.join("_"))&&d.push(f);if(c.g){var n=c.g.serialize();n&&d.push(n)}var t,u=c.o;f=e;k=[];f||(f=0);for(var y in u.b){var E=u.b[y];if(E instanceof nN)E.getValue()&&(f|=E.A);else{var D,W=u.b[y];(D=W.o?W.g():"")&&k.push(y+D)}}k.push("eb"+String(f));(t=k.join("_"))&&d.push(t);c.b.set("eb",e);return d.join("_")}catch(O){return"tle;"+Ja(O.name,12)+";"+Ja(O.message,40)}};
yN=function(a){try{return!!a&&null!=a.location.href&&pc(a,"foo")}catch(b){return!1}};
zN=function(a,b){for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&b.call(void 0,a[c],c,a)};
sea=function(){var a=aa;try{for(var b=null;b!=a;b=a,a=a.parent)switch(a.location.protocol){case "https:":return!0;case "http:":case "file:":return!1}}catch(c){}return!0};
tea=function(){var a=AN;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""};
uea=function(a,b){this.b=a;this.g=b};
BN=function(a,b){this.url=a;this.ir=!!b;this.depth=ha(void 0)?void 0:null};
DN=function(a){a=a?a:CN();for(var b=new BN(aa.location.href,!1),c=a.length-1,d=c;0<=d;--d){var e=a[d];if(e.url&&!e.ir){b=e;break}}d=null;e=a.length&&a[c].url;0!=b.depth&&e&&(d=a[c]);return new uea(b,d)};
CN=function(){var a=aa,b=[],c,d=null;do{var e=a;yN(e)?(c=e.location.href,d=e.document&&e.document.referrer||null):(c=d,d=null);b.push(new BN(c||""));try{a=e.parent}catch(f){a=null}}while(a&&e!=a);a=0;for(e=b.length-1;a<=e;++a)b[a].depth=e-a;e=aa;if(e.location&&e.location.ancestorOrigins&&e.location.ancestorOrigins.length==b.length-1)for(a=1;a<b.length;++a)c=b[a],c.url||(c.url=e.location.ancestorOrigins[a-1]||"",c.ir=!0);return b};
EN=function(a,b,c,d){a.addEventListener?a.addEventListener(b,c,d||!1):a.attachEvent&&a.attachEvent("on"+b,c)};
FN=function(a,b,c){a.removeEventListener?a.removeEventListener(b,c,!1):a.detachEvent&&a.detachEvent("on"+b,c)};
GN=function(a,b,c,d,e){this.C=c||4E3;this.o=a||"&";this.D=b||",$";this.A=p(d)?d:"trn";this.G=e||null;this.B=!1;this.g={};this.F=0;this.b=[]};
HN=function(a,b){var c={};c[a]=b;return[c]};
IN=function(a,b,c,d){a.b.push(b);a.g[b]=HN(c,d)};
wea=function(a,b,c,d){b=b+"//"+c+d;var e=vea(a)-d.length-0;if(0>e)return"";a.b.sort(function(a,b){return a-b});
d=null;c="";for(var f=0;f<a.b.length;f++)for(var k=a.b[f],l=a.g[k],m=0;m<l.length;m++){if(!e){d=null==d?k:d;break}var n=JN(l[m],a.o,a.D);if(n){n=c+n;if(e>=n.length){e-=n.length;b+=n;c=a.o;break}else a.B&&(c=e,n[c-1]==a.o&&--c,b+=n.substr(0,c),c=a.o,e=0);d=null==d?k:d}}f="";a.A&&null!=d&&(f=c+a.A+"="+(a.G||d));return b+f+""};
vea=function(a){if(!a.A)return a.C;var b=1,c;for(c in a.g)b=c.length>b?c.length:b;return a.C-a.A.length-b-a.o.length-1};
JN=function(a,b,c,d,e){var f=[];zN(a,function(a,l){var m=KN(a,b,c,d,e);m&&f.push(l+"="+m)});
return f.join(b)};
KN=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(KN(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)(JN(a,b,c,d,e+1)):"...";return(0,window.encodeURIComponent)(String(a))};
MN=function(a,b,c,d,e){try{var f;c instanceof GN?f=c:(f=new GN,zN(c,function(a,b){var c=f,d=c.F++,e=HN(b,a);c.b.push(d);c.g[d]=e}));
if((d?a.o:Math.random())<(e||a.b)){var k=wea(f,a.g,a.A,a.B+b+"&");LN(aa,k)}}catch(l){}};
LN=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);FN(d,"load",e);FN(d,"error",e)};
EN(d,"load",e);EN(d,"error",e)}d.src=b;a.google_image_requests.push(d)};
NN=function(a,b,c){this.o=a;this.B=b;this.g=c;this.A=this.b};
ON=function(a,b,c){this.message=a;this.b=b||"";this.g=c||-1};
QN=function(a,b,c,d,e){var f;try{f=c()}catch(m){var k=a.g;try{var l=PN(m),k=(e||a.A).call(a,b,l,void 0,d)}catch(n){a.b("pAR",n)}if(!k)throw m;}finally{}return f};
SN=function(a,b,c,d){var e=RN;return function(){for(var f=[],k=0;k<arguments.length;++k)f[k]=arguments[k];return QN(e,a,function(){return b.apply(c,f)},d)}};
PN=function(a){return new ON(TN(a),a.fileName,a.lineNumber)};
TN=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};
UN=function(a){a.u_tz=-(new Date).getTimezoneOffset();var b;try{b=X.history.length}catch(c){b=0}a.u_his=b;if(b=!!X.navigator)b="unknown"!==typeof X.navigator.javaEnabled;a.u_java=b&&!!X.navigator.javaEnabled&&X.navigator.javaEnabled();X.screen&&(a.u_h=X.screen.height,a.u_w=X.screen.width,a.u_ah=X.screen.availHeight,a.u_aw=X.screen.availWidth,a.u_cd=X.screen.colorDepth);X.navigator&&X.navigator.plugins&&(a.u_nplug=X.navigator.plugins.length);X.navigator&&X.navigator.mimeTypes&&(a.u_nmime=X.navigator.mimeTypes.length)};
ZN=function(a,b){var c=xea;if(!VN)return QN(RN,a,b,void 0,c);var d=WN?X.performance.now():C(),c=QN(RN,a,b,void 0,c),d=Math.round((WN?X.performance.now():C())-d);XN.push(a+"."+d);YN||(YN=X.setTimeout(yea,500));return c};
yea=function(){XN.length&&(MN($N,"execution_time",{data:XN.join(","),nav_api:WN?1:0},!0,VN?1:0),XN=[],X.clearTimeout(YN),YN=void 0)};
aO=function(a,b,c,d){return SN(a,b,c,d)};
bO=function(a,b){return SN(a,b,void 0,void 0)};
cO=function(a){return{visible:1,hidden:2,prerender:3,preview:4}[a.webkitVisibilityState||a.mozVisibilityState||a.visibilityState||""]||0};
eO=function(){var a;dO.mozVisibilityState?a="mozvisibilitychange":dO.webkitVisibilityState?a="webkitvisibilitychange":dO.visibilityState&&(a="visibilitychange");return a};
fO=function(a){a=a.match(/[\d]+/g);if(!a)return"";a.length=3;return a.join(".")};
iO=function(){var a=X&&X.document;gO.e=-1;gO.i=6;gO.n=7;gO.t=8;if(!hO){var b=[];F(Yb(gO),function(a){b[gO[a]+1]=a});
var c=b.join("");hO=(c=a&&a[c])&&x(c,a)}return hO};
kO=function(){return nG&&Iz&&Rz("6.0.1")&&0<=Ra(jO,"10.1")?!0:!1};
lO=function(a,b){var c=a||X;c.top!=c&&(c=c.top);try{return c.document&&!c.document.body?new hf(-1,-1):b?(new hf(c.innerWidth,c.innerHeight)).round():uf(c||window).round()}catch(d){return new hf(-12245933,-12245933)}};
zea=function(){var a=mO.getInstance().F,b=0<=nO?oO()-nO:-1,c=pO?oO()-qO:-1,d=0<=rO?oO()-rO:-1,e;if(79463068==a)return 500;if(947190538==a)a=[4E3],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};
oO=function(){return(new Date).getTime()-Aea};
sO=function(){var a=K("DIV");a.style.cssText="position:relative;left:0px;top:0px;width:0;height:0;";return a};
tO=function(a){for(var b;a&&a!=a.parentElement;){if(a.style&&"none"==Is(a,"display"))return!0;b=a;a=a.parentElement}if(b&&(a=mf(b))){var c,d;try{if(c=yf(a))d=c.frameElement}catch(e){return!1}if(c&&d&&c!=c.parent)return tO(d)}return!1};
Bea=function(){this.B=[0,0,0,0,0];this.o=[0,0,0,0,0];this.b=[0,0,0,0,0];this.D=[0,0,0,0,0];this.A=this.F=this.C=this.g=-1};
uO=function(a,b,c,d){c=SN(d||"osd_or_lidar::"+b,c,void 0,void 0);EN(a,b,c,void 0);return c};
vO=function(a,b){this.A=null;this.D=a;this.G=b||1;this.b="u"};
wO=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.G){case 4:return a.D?(e=Math.floor(.3*c),f=Math.floor(.3*d),[new ff(e,f),new ff(c-e,f),new ff(e,d-f),new ff(c-e,d-f)]):[new ff(e,0),new ff(0,f),new ff(e,d-1),new ff(c-1,f)];case 3:return[new ff(c-1,0),new ff(e,f),new ff(0,d-1)];default:return[new ff(e,f)]}};
xO=function(a,b){var c;try{c=b||a.A.getBoundingClientRect()}catch(e){c=new mg(0,0,0,0)}var d=wO(a,c);F(d,function(a){a.x+=c.left;a.y+=c.top});
return d};
yO=function(a,b){vO.call(this,a,b);this.g=[];this.F=!1;this.o=-1;this.B=this.C=0};
Cea=function(a,b,c){this.snapshot=a;this.g=b;this.b=c};
Dea=function(a,b,c){if(!(b&&b.getBoundingClientRect&&0<=Ra(jO,"11")&&c)||wf&&9>yc||0<a.g.length)return!1;try{var d=b.getBoundingClientRect()}catch(n){return!1}var e="DIV"==b.tagName||"INS"==b.tagName,f=mf(b),k=[];if(e){var l=sO(),d=wO(a,d);F(d,function(a,b){var d=new zO("e",f,c,String(b));this.g.push(d);k.push(x(d.F,d,l,a))},a);
Hf(b,l,0)}else d=xO(a,d),F(d,function(a,d){var e=new zO("e",f,c,String(d));this.g.push(e);k.push(x(e.D,e,b,a))},a);
var m=!0;F(k,function(a){m=m&&a()});
m?(a.b="l",a.A=b,a.F=!e):(F(a.g,function(a){a.remove()}),a.g=[]);
return m};
Eea=function(a){if(a.A&&a.F){var b=xO(a);F(b,function(a,b){this.g[b]&&AO(this.g[b],a)},a)}};
BO=function(a){F(a.g,function(a){a.remove()});
a.g=[];a.b="d"};
Jea=function(a){var b=C(),c=a.C?b-a.C:0,d=-1,e=M(a.g,function(a){return CO(a,b)});
4==a.g.length?d=a.D?Fea(e):Gea(e):3==a.g.length?d=Hea(e):1==a.g.length&&(d=[-1,0,1,2,3,5][CO(a.g[0],b)+1]);a.B=d==a.o?a.B+c:0;c=new Cea(d,a.o,c);a.o=d;a.C=b;Iea(a,d);Eea(a);return c};
EO=function(a){var b=Jb(Ub(DO));F(a,function(a){0<=a&&++b[a]});
return b};
Gea=function(a){a=EO(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};
Hea=function(a){var b=EO(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};
Fea=function(a){a=EO(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};
Iea=function(a,b){if(0==b&&FO(a))a.b="n";else switch(b){case -1:a.b="d";break;case 0:a.b="l";break;case 1:a.b="f";break;case 2:a.b="c";break;case 3:case 4:case 5:case 6:a.b="r"}};
FO=function(a){return"n"==a.b?!0:"l"==a.b&&3E3<=a.B};
zO=function(a,b,c,d){this.b=null;this.A=a;this.wa="e"==a?String(c)+"~"+String(d):"";this.g=[];this.o=-1;this.C=0;this.B=Jb(Ub(Kea));this.H=Jb(Ub(DO));"e"==this.A&&(GO[this.wa]=x(this.G,this));wf?(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="'+HO(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=Lea(this,b);a.width=1;a.height=1;a.style.zIndex=-999999;this.b=a};
Lea=function(a,b){function c(a,c,d){var e=b.createElement("param");e.name=c;e.value=d;a.appendChild(e)}
var d=HO(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="s"==a.A?"":"hidden";e.style.opacity=0;return e};
HO=function(a,b){var c=Tg("//pagead2.googlesyndication.com/osd/hbe.swf","id",a.wa);"s"==a.A&&(c="//pagead2.googlesyndication.com/osd/hbts.swf");b&&(c=Tg(c,"delay","1"));return c};
AO=function(a,b){a.b&&!gf(b,Ns(a.b))&&Ms(a.b,b)};
CO=function(a,b){if("e"==a.A){var c=null;try{c=a.b.it()}catch(f){}null===c?(c=0,0<a.o&&(c=2)):c=c?3:4;++a.H[c+1];a.o=c}else{var d=Number(b),e=IO(a);Mea(a,e,d);c=a.g[a.g.length-1];if(null===e){if(e=d=0,0<a.o||ha(c.Qj))e=d=2}else null===c.Qj||c.timeMs>=d?(d=10<=e?4:0,e=0):e>c.Qj?(c=(e-c.Qj)/(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.o=d;a.C=e}return a.o};
IO=function(a){var b=null;try{b=a.b.fc()}catch(c){}return b};
Mea=function(a,b,c){var d=c-1E3,e=a.g.length;F(a.g,function(a,b){a.timeMs<=d&&(e=Math.min(e,b+1))});
var f=a.g.length-e;0<f&&a.g.splice(e,f);a.g.unshift({Qj:b,timeMs:c})};
JO=function(){this.C=!0;this.g=new zO("s",dO);this.B=!1;this.G=this.D=this.N=this.b=this.A=this.F=this.J=this.K=this.L=this.o=this.H=null};
KO=function(a,b){b!==a.b&&(a.b=b,a.L(b))};
LO=function(a){var b=IO(a.g);null===a.N&&null!==b&&null!==a.D&&(a.N=C()-a.D);return b};
MO=function(a){var b=a.H.getBoundingClientRect(),c;c=null!=a.J?a.J.clone():new ff(Math.floor((b.right-b.left)/2),Math.floor((b.bottom-b.top)/2));a.B&&(c.x+=b.left,c.y+=b.top);return c};
NO=function(a){a.B&&(a.K=MO(a));AO(a.g,a.K);a.F=X.setTimeout(bO("osd_or_lidar::sfm_tpto",x(a.aa,a)),125)};
Nea=function(a){if(a.C){var b=x(function(){1===cO(dO)?(this.A=null,NO(this)):(X.clearTimeout(this.F),KO(this,0))},a),c=eO();
if(c){var d=uO(dO,c,b,"osd_or_lidar::sfm_pv");a.G=function(){FN(dO,c,d);this.G=null}}a.C=!1;
a.b=null;b()}};
OO=function(a){a.C||(X.clearTimeout(a.F),null===a.G||a.G(),a.C=!0)};
PO=function(a,b){vO.call(this,a,b);this.g=[];this.B=this.F=null;this.o=!0;this.C=null};
Oea=function(a,b,c){if(null!==a.B)return!1;a.A=b;a.F=c;c=b.getBoundingClientRect();c="DIV"==b.tagName||"INS"==b.tagName?wO(a,c):xO(a,c);for(var d=0;d<c.length;++d){var e=c[d],f=new JO,k;k=f;var l=b,m=x(a.H,a),n=e;if(null===k.D){var t="DIV"==l.tagName||"INS"==l.tagName;k.B=!t;k.H=l;e=MO(k);if(null!=n){e=n;n=new ff(0,0);if(k.B){var u=k.H.getBoundingClientRect();n.x+=u.left;n.y+=u.top}k.J=new ff(e.x-n.x,e.y-n.y)}k.L=m;t?(k.o=sO(),Hf(l,k.o,0),l=k.g.F(k.o,e)):l=k.g.D(l,e);l?(k.D=C(),k.K=e,k=!0):(k.g.remove(),
k.o&&If(k.o),k=!1)}else k=!1;if(!k)return QO(a),a.b="c",!1;a.g.push(f)}a.B=C();a.b="l";return!0};
Rea=function(a){var b=Jb(Ub(Pea));F(a.g,function(a){null!=a.b&&0<=a.b&&++b[a.b]});
switch(a.G){case 4:return Qea(a,b);case 3:return 1==a.g[0].b&&1==a.g[2].b?3:1==a.g[1].b?2:0<b[1]?1:0;default:return 1==b[1]?2:0}};
Qea=function(a,b){var c=b[1];if(a.D){if(3<=c)return 2;if(2==c)return 5;if(0<c)return 4}else{if(4==c)return 3;if(3==c)return 2;if(0<c)return 1}return 0};
RO=function(a){a.o&&null!==a.B&&"d"!=a.b&&(F(a.g,function(a){Nea(a)}),a.b="r",a.o=!1)};
SO=function(a){a.o||(F(a.g,function(a){OO(a)}),a.o=!0)};
QO=function(a){SO(a);F(a.g,function(a){OO(a);a.g&&(a.g.remove(),a.g=null);a.o&&(If(a.o),a.o=null)});
a.g=[];a.b="d"};
mO=function(){this.D=!1;this.F=void 0;this.g=!yN(X.top);var a=CN();this.G=0<a.length&&null!=a[a.length-1]&&null!=a[a.length-1].url?Lg(a[a.length-1].url)||"":"";this.A=this.C=this.b=null;this.H=0;this.o=!1;this.B=new mg(0,0,0,0)};
UO=function(a,b,c){this.position=TO.clone();this.aa=0;this.J=new Bea;this.Lb=-2;this.pf=C();this.Ce=-1;this.$=b;this.ea=-1!=b;this.ia=-1;this.ha=null;this.nf=c;this.Ee=this.Hd=r;this.ba=this.element=a;this.g=null;this.ca=1;this.Ha=!1;this.A=null;this.nc=this.Ja=!1;this.xb=1;this.Be=!0;this.Dd=!1;this.mf=mO.getInstance().H++;this.Gd=this.o=0};
Sea=function(a,b,c,d,e){if(a.ea){var f=X.innerWidth,k=X.innerHeight,l=new mg(Math.round(X.mozInnerScreenY),Math.round(X.mozInnerScreenX+f),Math.round(X.mozInnerScreenY+k),Math.round(X.mozInnerScreenX));c=new mg(X.screenY+d,X.screenX+c.width,X.screenY+c.height,X.screenX);e||(d=new mg(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.aa=f*k);a.Ze(l,c,b,e,!0,!0)}};
Uea=function(a,b,c){if(a.ea){var d=iO();if(d){c||VO(a,X,!0);if(a.nc)var e=Tea(a,d),d=!0;else var e=Math.floor((a.position.left+a.position.right)/2),f=Math.floor((a.position.top+a.position.bottom)/2),k=xf(window.document),e=d(e-k.x,f-k.y)?.5:0,d=!1;a.Ze(a.position,e,b,c,!0,d)}}};
WO=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}};
Tea=function(a,b){var c=xf(window.document),d=a.xb,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),t=!!b(e,l);if(d)l=WO(f,l,function(a){return!!b(e,a)}),k=WO(e,k,function(a){return!!b(a,f)});
else if(n)l=WO(f,l,function(a){return!!b(k,a)}),e=WO(k,e,function(a){return!!b(a,f)});
else if(t)f=WO(l,f,function(a){return!!b(e,a)}),k=WO(e,k,function(a){return!!b(a,l)});
else if(m)f=WO(l,f,function(a){return!!b(k,a)}),e=WO(k,e,function(a){return!!b(a,l)});
else{var u=Math.floor((e+k)/2),y=Math.floor((f+l)/2);if(!b(u,y))return 0;f=WO(y,f,function(a){return!!b(u,a)});
l=WO(y,l,function(a){return!!b(u,a)});
e=WO(u,e,function(a){return!!b(a,y)});
k=WO(u,k,function(a){return!!b(a,y)})}return(l-f)*(k-e)/c};
Vea=function(a,b,c,d,e){a.ea&&(d||VO(a,X,e),a.Ze(a.position,c,b,d,!1,!0))};
XO=function(a,b,c){a.ea&&a.Ze(a.position,c?a.o:a.Gd,b,c,!0,!0)};
YO=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};
ZO=function(a,b){a.ca=3;if(!a.ba||kO())return a.Ha=!0,!1;var c=new yO(!1,a.ca),d=Dea(c,a.ba,String(a.mf));d?(a.Ee=b,a.g=c):a.Ha=!0;return d};
aP=function(a,b){if(!a.element||!kO())return!1;a.ca=3;var c=new PO(!1,a.ca),d=Oea(c,a.element,x(function(a){$O(this,oO(),!1,b,[0,.01,.5,1,.01,.3][a])},a));
d&&(a.A=c,RO(c));return d};
$O=function(a,b,c,d,e){a.ea&&bP(a)&&(c?a.A&&SO(a.A):(VO(a,d,!0),a.A&&RO(a.A)),a.Ze(a.position,e||a.o,b,c,!1,!1),!a.Se()||a.Cm()||a.A&&QO(a.A))};
bP=function(a){return null!==a.A&&"d"!=a.A.getStatus()};
VO=function(a,b,c,d){if(d)a.position=d;else{b=c?b:b.top;try{var e=TO.clone(),f=new ff(0,0);if(a.ba){var k=1==a.nf;!c&&k&&tO(a.ba)||(e=a.ba.getBoundingClientRect());f=Ts(a.ba,b)}var l=f.x,m=f.y;a.position=new mg(Math.round(m),Math.round(l+(e.right-e.left)),Math.round(m+(e.bottom-e.top)),Math.round(l))}catch(n){a.position=TO.clone()}}a.aa=(a.position.bottom-a.position.top)*(a.position.right-a.position.left)};
cP=function(a,b){var c=Math.pow(10,b);return Math.floor(a*c)/c};
Wea=function(a){a.g&&BO(a.g);a.A&&QO(a.A)};
Zea=function(a){var b=!1,c=a.ba;a.Dd=!0;if(!a.Dd||null===c)return!1;ZN("osd_adblock::sunio",function(){var d=new X.IntersectionObserver(function(b){try{var f;if(!b||!b.length||0>=b.length)f=null;else{for(var k=b[0],l=1;l<b.length;l++)b[l].time>k.time&&(k=b[l]);f=k}if(f){var m,n=f.boundingClientRect;m=new mg(n.top,n.right,n.bottom,n.left);a.o=af(f.intersectionRect.width*f.intersectionRect.height/(f.boundingClientRect.width*f.boundingClientRect.height),0,1);a.Gd=a.o;VO(a,X,!0,m)}}catch(t){try{d.unobserve(c),
RN.b("osd_adblock::nioc",t,void 0,void 0)}catch(u){}}},Xea);
d.observe(c);Yea(c);b=!0});
return b};
Yea=function(a){if(a&&(a=a.style)){var b=a.opacity;a.opacity=.98;a.opacity=.99;a.opacity=b}};
$ea=function(){this.b={};for(var a in dP)this.b[dP[a]]=0};
eP=function(a,b){0==a.b[b]&&(a.b[b]=1)};
afa=function(a){var b=0,c;for(c in a.b){var d=(0,window.parseInt)(c,10);1==a.b[d]&&(b+=d,a.b[d]=2)}return b};
bfa=function(){this.H=this.C=0;this.g=-1;this.B=this.o=this.F=this.G=this.b=0;this.D=!1;this.A=[0,0,0,0,0]};
fP=function(a,b,c){var d=a.H;pO||c||-1==a.g||(d+=b-a.g);return d};
gP=function(a,b,c,d){UO.call(this,b,c,d);this.G=new bfa;this.bc=[0,0,0,0,0];this.Tb=[0,0,0,0,0];this.qa=[0,0,0,0,0];this.tb=this.da=0;this.F={};this.D=new $ea;this.Cd={};this.Ig=this.C="";this.Fe=!1;this.ab=[];this.N=void 0;this.Ed=this.Ie=this.Je=this.Dc=!1;this.K=void 0;this.L=-1;this.H=this.ga=this.Db=void 0;this.ua=!1;this.Na=this.Aa=this.La=0;this.Oa=1;this.Xa=0;this.Wa=-1;this.oc=!1;this.Ga=this.yb=0;this.gb=!1;this.ma=this.Cc=this.Sa=this.Ca=this.b=this.R=this.De=0;this.na=-1;this.ce=this.be=
0;this.He=this.Fd=this.Ke=this.B=!1;this.Ae=0;this.Ge=!1;this.sb=r;b=mO.getInstance();VO(this,a,b.g)};
hP=function(a){return p(a)&&0<=a&&1>=a};
iP=function(a,b){if(-1==a.$)return 0;var c=b-a.$||1,d=1E4;p(a.L)&&-1!=a.L&&(d=Math.max(d,a.L/3));return c>d?1:c};
cfa=function(a){var b=0;.5<=a.o&&(b+=1);hP(a.H)&&(b+=2);a.gb&&(b+=4);a.B&&(b+=8);-1!=a.ia&&(b+=16,1==a.ia&&(b+=32));a.ua&&(b+=128);a.ua&&0<a.o&&(b+=256);return b};
jP=function(a,b){tb(a.ab,Jb(b-a.ab.length+1));a.ab[b]=cP(a.o,2)};
lP=function(a,b){var c=a.Cd[b];if(null!=c)return c;a:if(gb(dfa,b))c=!0;else{c=a.F[b];if(p(c)&&(a.F[b]=!0,!c)){c=!0;break a}c=!1}c=kP(a,c,c);"fully_viewable_audible_half_duration_impression"==b&&(c.std="csm");return c};
kP=function(a,b,c){if(a.Ja)return{"if":0};var d=a.position.clone();d.round();var e=M(a.ab,function(a){return 100*a|0}),f=mO.getInstance(),k=a.G,l={};
l["if"]=f.g?1:void 0;l.sdk=a.K?a.K:void 0;l.t=a.pf;l.p=[d.top,d.left,d.bottom,d.right];l.tos=a.J.B;l.mtos=a.J.o;l.ps=void 0;l.pt=e;l.vht=fP(k,oO(),!!a.N);l.mut=k.G;l.a=a.H;l.ns=a.Ae;l.fs=a.B?1:0;l.ft=a.yb;l.at=k.F;l.as=k.D?1:0;l.atos=k.A;l.uac=a.De;l.vpt=a.Xa;l.is=cfa(a);l.ic=afa(a.D);if("h"==a.K||"as"==a.K)l.gmm="2";a.nc&&(l.efpf=a.xb);a.g&&(l.swf=a.g.getStatus(),l.px=a.ca);a.A&&(l.sfm=a.A.getStatus(),l.px=a.ca);0<a.ce&&(l.nnut=a.ce);l.tcm=a.Oa;l.nmt=a.Cc;l.bt=a.ma;l.pst=a.na;l.mmct=a.be;l.vpaid=
a.Db;l.dur=a.L;l.vmtime=a.Aa;l.vmtos=a.bc;l.vmmtos=a.Tb;b&&(a.Se()&&(l.dtos=k.C,l.vmdtos=a.da,l.dav=k.B,l.dtoss=a.tb+1,c&&(k.C=0,k.B=0,a.da=0,a.tb++)),l.dat=k.o,l.dft=a.Ga,c&&(k.o=0,a.Ga=0));!a.Se()&&2E3<=a.da&&(l.vmdtos=a.da);f.A&&(l.ps=[f.A.width,f.A.height]);l.dom=f.G;a.Ha&&(l.fmf="1",l.px=a.ca);a.Dc&&(l.ven="1");a.Je&&(l.veh="1");a.R&&(l.vds=a.R);a.b&&(l.vmer=a.b);a.Ca&&(l.vmmk=a.Ca);a.Sa&&(l.vmiec=a.Sa);mO.getInstance();mP()?(l.c=cP(a.o,2),l.ss=cP(efa(a),2)):l.tth=oO()-nP;l.mc=cP(a.J.A,2);l.lte=
cP(a.Lb,2);return l};
efa=function(a){if(a.B)return 1;var b=X.screen.width*X.screen.height;return 0>=b?-1:a.aa*a.o/b};
yP=function(){if(!oP){oP=!0;var a=aa.requestAnimationFrame||aa.webkitRequestAnimationFrame||aa.mozRequestAnimationFrame||aa.oRequestAnimationFrame||aa.msRequestAnimationFrame;if(!pP&&!qP&&!rP){var b;if(a){var c=SN("osd_or_lidar::throttled_scroll_raf_callback",sP,void 0,void 0);b=function(){a(function(){X.setTimeout(c,0)})}}else b=sP;
tP=new Am(SN("osd_or_lidar::throttled_scroll_timeout",b,void 0,void 0),100);b=x(tP.pg,tP);pP=uO(X,"scroll",b,"osd_or_lidar::throttled_scroll")}if(!uP&&!qP&&!rP){if(a){var d=SN("osd_or_lidar::throttled_resize_raf_callback",vP,void 0,void 0);b=function(){a(function(){X.setTimeout(d,0)})}}else b=vP;
wP=new Am(SN("osd_or_lidar::throttled_resize_timeout",b,void 0,void 0),100);b=x(wP.pg,wP);uP=uO(X,"resize",b,"osd_or_lidar::throttled_resize")}ffa();xP()}};
vP=function(){zP(!1);sP()};
sP=function(){AP(BP(),!1)};
gfa=function(){var a,b=mO.getInstance();CP&&!b.o&&(b.b=lO(X,CP));if(qP)return a=new DP,a.H=!0,a;if(rP)return a=new DP,a.C=!0,a;if(EP){a=FP;zP(!1);var c=mO.getInstance(),d=c.C,b=d.height-a;0>=b&&(b=d.height,a=0);c.b=new hf(d.width,b);b=new DP;b.F=!0;b.A=c.b;b.b=d;b.B=a;return b}if(GP)return a=new DP,a.D=!0,a;if(HP)return a=new DP,a.G=!0,a;if(IP)return a=new DP,a.J=!0,a;a:{var b=b.b,e=new DP;e.A=b;e.g=!1;if(null!=b&&-1!=b.width&&-1!=b.height&&-12245933!=b.width&&-12245933!=b.height){var f=mO.getInstance();
if(f.o)a=f.B;else try{var f=CP,k=X||X,k=k.top,c=b||lO(k,f),d=xf(of(k.document).b);a=-1==c.width||-12245933==c.width?new mg(c.width,c.width,c.width,c.width):new mg(d.y,d.x+c.width,d.y+c.height,d.x)}catch(l){a=e;break a}e.o=a;e.g=!0}a=e}return a};
AP=function(a,b){var c;if(!JP)if(window.clearTimeout(KP),KP=null,0==a.length)b||LP();else{var d=gfa(),e=mO.getInstance();try{var f=oO();if(d.C)for(c=0;c<a.length;c++)XO(a[c],f,b);else if(d.H)for(c=0;c<a.length;c++)XO(a[c],f,b);else if(d.F&&d.b)for(c=0;c<a.length;c++)Sea(a[c],f,d.b,d.B,b);else if(d.D)for(c=0;c<a.length;c++)Uea(a[c],f,b);else if(d.G)F(a,function(a){if(b){if(a.g){var c=a.g;3<=c.o&&(c.o=3);a.o=0}}else if(a.g&&"d"!=a.g.getStatus()){var c=Jea(a.g),d=[0,0,0,0,0,.01,.5,1,.01,.3],e=d[c.snapshot+
1];a.o=d[c.g+1];a.Ze(a.position,e,a.$+c.b,!1,!0,!1);!a.Se()||a.Cm()||a.Be||a.g&&BO(a.g);(c=2==c.snapshot||FO(a.g))||(c=a.g,c="f"==c.b&&3E3<=c.B);c&&(a.Ee(a),a.Be=!1,a.g&&BO(a.g))}});
else if(d.J)for(c=0;c<a.length;c++)$O(a[c],f,b,X);else if(d.g&&d.o)for(c=0;c<a.length;c++)Vea(a[c],f,d.o,b,e.g);++hfa}finally{b?F(a,function(a){a.o=0}):LP()}}};
ffa=function(){var a=xP,b=eO();b&&(MP=MP||uO(dO,b,a,"osd_or_lidar::visibility"))};
xP=function(){var a=mP(),b=oO();a?(pO||(qO=b,F(NP,function(a){var d=a.G;d.H=fP(d,b,!!a.N)})),pO=!0,zP(!0)):(pO=!1,nP=b,F(NP,function(a){a.ea&&(a.G.g=b)}));
AP(BP(),!a)};
mP=function(){if(ifa())return!0;var a=cO(X.document);return 1==a||0==a};
LP=function(){X&&(KP=X.setTimeout(bO("osd_or_lidar::psamp_to",function(){AP(BP(),!1)}),zea()))};
jfa=function(a){return cb(NP,function(b){return b.C==a})};
BP=function(){return 0==NP.length?OP:0==OP.length?NP:rb(OP,NP)};
zP=function(a){var b=mO.getInstance();b.b=b.o?(new hf(b.B.cb(),b.B.getHeight())).round():lO(X,CP);if(!a){b.C=X&&X.outerWidth?new hf(X.outerWidth,X.outerHeight):new hf(-12245933,-12245933);var c;a=X;a.top!=a&&(a=a.top);var d=0,e=0,f=mO.getInstance().b;try{var k=a.document,l=k.body,m=k.documentElement;if("CSS1Compat"==k.compatMode&&m.scrollHeight)d=m.scrollHeight!=f.height?m.scrollHeight:m.offsetHeight,e=m.scrollWidth!=f.width?m.scrollWidth:m.offsetWidth;else{var n=m.scrollHeight,t=m.scrollWidth,u=
m.offsetHeight,y=m.offsetWidth;m.clientHeight!=u&&(n=l.scrollHeight,t=l.scrollWidth,u=l.offsetHeight,y=l.offsetWidth);n>f.height?n>u?(d=n,e=t):(d=u,e=y):n<u?(d=n,e=t):(d=u,e=y)}c=new hf(e,d)}catch(E){c=new hf(-12245933,-12245933)}b.A=c}};
kfa=function(){F(OP.concat(NP),function(a){Zea(a)&&(qP=!0)});
return qP};
lfa=function(a,b){var c=!1;F(NP,function(b){b=aP(b,a);c=c||b});
(IP=c)&&F(NP,function(a){bP(a)||b(a)});
return c};
mfa=function(a){var b=!1;F(NP,function(c){c=ZO(c,a);b=b||c});
(HP=b)&&F(NP,function(b){b.g||a(b)});
return b};
nfa=function(a){F(a,function(a){null==cb(NP,function(c){return c.element==a.element&&c.Ig==a.Ig})&&NP.push(a)})};
ifa=function(){return Th(NP,function(a){return a.B})};
DP=function(){this.b=this.A=null;this.B=0;this.o=null;this.g=this.J=this.G=this.D=this.F=this.C=this.H=!1};
PP=function(){this.g=64;this.b=Array(4);this.C=Array(this.g);this.A=this.o=0;this.reset()};
QP=function(a,b,c){c||(c=0);var d=Array(16);if(w(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.b[0];c=a.b[1];var e=a.b[2],f=a.b[3],k;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.b[0]=a.b[0]+b&4294967295;a.b[1]=a.b[1]+(e+(k<<21&4294967295|k>>>11))&4294967295;a.b[2]=a.b[2]+e&4294967295;a.b[3]=a.b[3]+f&4294967295};
pfa=function(){var a=CN(),b=a.length-1,c=DN(a),a=c.b,d=c.g,c=[];d?(a&&c.push(RP(b,[d.url,2],0,[a.url,0],a.depth)),c.push(RP(b,[d.url,2],0))):a.url&&(c.push(RP(b,void 0,void 0,[a.url,0],a.depth)),(d=(d=ofa.exec(a.url))&&d[0]||"")&&c.push(RP(b,[d,1],a.depth)));c.push(RP(b));return c};
RP=function(a,b,c,d,e){a=[a];if(p(b)&&p(c)){for(var f=0;f<c;f++)a.push("");a.push(b)}if(p(d)&&p(e)){b=e-a.length+1;for(f=0;f<b;f++)a.push("");a.push(d)}return a};
SP=function(){var a=pfa();return M(a,function(a){return KN(a)})};
TP=function(a){return function(b){return!p(b[a])&&p(0)?0:b[a]}};
UP=function(){return function(a){if(!p(a.tth))return"1"}};
WP=function(){var a=[0,2,4];return function(b){b=b.tos;if(ea(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 p(a)?VP(c,a):c}}};
XP=function(a,b){return function(c){c=c[a];if(ea(c))return VP(c,b)}};
VP=function(a,b){return le(a,function(a,d){return gb(b,d)})};
qfa=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("&")};
YP=function(){this.o=this.g=this.A=!1;this.b={};this.b.start=this.oA;this.b.firstquartile=this.eA;this.b.midpoint=this.jA;this.b.thirdquartile=this.pA;this.b.complete=this.aA;this.b.pause=this.lA;this.b.resume=this.mA;this.b.skip=this.nA;this.b.viewable_impression=this.rA;this.b.mute=this.kA;this.b.unmute=this.qA;this.b.fullscreen=this.fA;this.b.exitfullscreen=this.dA;this.b.fully_viewable_audible_half_duration_impression=this.gA;this.b.measurable_impression=this.iA;this.b.abandon=this.$z;this.b.engagedview=
this.cA;this.b.impression=this.hA;this.b.creativeview=this.bA};
rfa=function(a){var b=mO.getInstance();(function(){b.o=!1;ZP(this)}).call(a)};
ZP=function(a){if(null!=X.IntersectionObserver&&.01>Math.random()&&kfa())yP();else{var b;if(Ds&&ha(X.screenX)&&ha(X.mozInnerScreenX)&&ha(X.outerWidth)){b=X.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&&(FP=b,EP=!0);b=!0}else b=!1;if(b)yP();else if(b=wf&&zc(8)&&ia(iO())?GP=!0:!1,b)yP();else{if(kO()){if(lfa(X,x(a.Xl,a))){yP();a.o=!0;return}}else if(mfa(x(a.Xl,a))){yP();a.g=!0;return}window.clearTimeout(KP);KP=null;$P="i";JP=!0}}};
aQ=function(a,b){var c=a.G;c.H=fP(c,oO(),!!a.N);c=!mP();AP([a],c);a.N=!0;return lP(a,b)};
bQ=function(a){if(w(a)){var b=ab(NP,function(b){return b.C==a});
0<=b&&(Wea(NP[b]),ob(NP,b))}};
sfa=function(a,b,c){var d=cb(NP,function(a){return a.element==c});
null!==d&&d.C!=b&&(bQ(d.C),d=null);d||(d=cQ(a,c),d.C=b,d.K="h");return d};
cQ=function(a,b){var c;c=new gP(X,b,-1,7);c.Hd=x(a.Dz,a);mO.getInstance().F=79463069;nfa([c]);yP();return c};
tfa=function(a,b){var c=ac(dQ,function(b){return b==a}),c={v:"478v",
e:eQ[c]},d=lP(b,a);kc(c,d);b.Cd[a]=d;return fQ(c,gQ)};
fQ=function(a,b,c,d,e){var f={};if(p(a))for(var k in b){var l=b[k];k in Object.prototype||null!=l&&(ia(l)?f[k]=l(a):f[k]=a[l])}p(c)&&kc(f,c);a=ufa(f);0!=a.length&&p(d)&&p(e)&&(e=e(a),a+="&"+d+"="+e);return a};
iQ=function(a,b){var c={v:"478v"};c.nas=NP.length;c.msg=a;if(p(b)){var d=hQ(b);d&&(c.e=eQ[d])}return c};
hQ=function(a){var b=a.toLowerCase();return ac(dQ,function(a){return a==b})};
jQ=function(a,b){var c=a[b];p(c)&&(a[b]=Math.floor(1E3*c))};
ufa=function(a){var b=[];Pb(a,function(a,d){d in Object.prototype||"undefined"==typeof a||(ea(a)&&(a=a.join(",")),b.push([d,"=",a].join("")))});
return b.join("&")};
kQ=function(a){return!a||"function"!==typeof a||0>String(Function.prototype.toString).indexOf("[native code]")?!1:0<=String(a).indexOf("[native code]")&&!0||!1};
mQ=function(a){return!!(1<<a&lQ)};
zfa=function(){try{vfa()}catch(d){}var a="a=1&b="+lQ+"&",b=[],c=99;F(wfa,function(a,c){var f=!1;try{f=a(X)}catch(k){}b[c/32>>>0]|=f<<c%32});
F(b,function(b,e){a+=String.fromCharCode(c+e)+"="+(b>>>0).toString(16)+"&"});
c=105;F(xfa,function(b){var e="false";try{e=b(X)}catch(f){}a+=String.fromCharCode(c++)+"="+e+"&"});
F(yfa,function(b){var e="";try{var f=b(X),e=Xq(Sq(f),!0)}catch(k){}a+=String.fromCharCode(c++)+"="+e+"&"});
return a.slice(0,-1)};
vfa=function(){if(!nQ){var a=function(){oQ=!0;X.document.removeEventListener("webdriver-evaluate",a,!0)};
X.document.addEventListener("webdriver-evaluate",a,!0);var b=function(){pQ=!0;X.document.removeEventListener("webdriver-evaluate-response",b,!0)};
X.document.addEventListener("webdriver-evaluate-response",b,!0);nQ=!0}};
qQ=function(){YP.call(this)};
Bfa=function(a,b,c){var d=cb(NP,x(function(a){return a.element?rQ(a.element,c)==b&&a.Ig==c:!1},a));
null!==d&&d.C!=b&&(bQ(d.C),d=void 0);if(d)return d;d=Afa(c);if(d=cb(d,x(function(a){return rQ(a,c)==b},a)))return d=cQ(a,d),d.K="as",d.C=b,d.Ig=c,d};
Afa=function(a){var b=X.document,c=Kb(M(["embed","object"],function(a){return sb(b.getElementsByTagName(a))})),d="metricID"+a;
return c=le(c,function(a){if(!a||!ka(a)||1!=a.nodeType||!ia(a.getBoundingClientRect))return!1;var b=a.getBoundingClientRect();return 0!=b.width&&0!=b.height&&a[d]&&ia(a[d])?!0:!1})};
rQ=function(a,b){var c="metricID"+b;if(!a||!a[c]||!ia(a[c]))return null;var d;try{d=a[c]()}catch(e){return null}return d.queryID};
sQ=function(a,b){mO.getInstance();var c;switch(a.K){case "h":c=q("ima.common.triggerExternalActivityEvent");break;case "a":c=q("ima.common.triggerExternalActivityEvent");break;case "n":c=q("ima.bridge.triggerExternalActivityEvent");break;case "as":var d="triggerExternalActivityEvent"+a.Ig;a.element&&ia(a.element[d])&&(c=function(b,c,e){a.element[d](e)});
break;default:return a.R|=4,!1}if(ia(c)){var e=tfa(b,a);try{return c(a.C,e,b),!0}catch(f){a.R|=2}}else a.R|=1;return!1};
uQ=function(a){var b={};b.viewability=fQ(a,gQ);var c;c=lQ=(new Date).getTime();var d=mQ(5);c=(oQ?!d:d)?c|2:c&-3;d=mQ(2);c=(pQ?!d:d)?c|8:c&-9;c={s1:(c>>>0).toString(16)};b.moatViewability=fQ(a,Cfa,c,"h",tQ("kArwaWEsTs"));b.integralAdsViewability=fQ(a,Dfa,{},"h",tQ("b96YPMzfnx"));b.doubleVerifyViewability=fQ(a,Efa,{},"h",tQ("yb8Wev6QDg"));b.googleViewability=fQ(a,Ffa,c);return b};
tQ=function(a){return function(b){var c=new PP;c.update(b+a);return Tq(c.B()).slice(-8)}};
Gfa=function(a,b,c){a=mO.getInstance();if(a.D!=b){a.D=b;var d=Th(NP,function(a){return a.Ge});
F(NP,function(a){b||d||(a.$=c);a.Fd=b;a.Ge=!1})}};
vQ=function(){var a={};a.moatInit=zfa();return a};
yQ=function(a,b,c){var d;d=qQ.getInstance();var e={};kc(e,{opt_adElement:void 0,opt_fullscreen:void 0},c||{});if(e.opt_bounds)d=uQ(iQ("ol",a));else{b:{if(hQ(a)){if(wQ){d=iQ("ue",a);break b}b=d.Ll(b,e);if(!b){d=iQ("nf",a);break b}if(!d.A){d.A=!0;try{nO=oO();for(var f=c=X,k=0;c&&c!=c.parent;)c=c.parent,k++,yN(c)&&(f=c);xQ=f;zP(!1);var l=X.document;if(l.body&&l.body.getBoundingClientRect){var m=mO.getInstance();m.g?m.o?rfa(d):ZP(d):yP()}else wQ=!0}catch(n){throw NP=[],OP=[],n;}}"i"==$P&&(b.Ja=!0,d.an(b));
b.nc=!0;b.xb=2;l=e.opt_fullscreen;p(l)&&(b.B=!!l);a=a.toLowerCase();gb(Hfa,a)&&(b.He||(b.He=!0,"i"!=$P&&(JP=!1),!d.g||b.g||b.Ha||ZO(b,x(d.Xl,d)),d.o&&!bP(b)&&aP(b,X),b.F={},b.F.firstquartile=!1,b.F.midpoint=!1,b.F.thirdquartile=!1,b.F.complete=!1,b.F.pause=!1,b.F.skip=!1,b.F.viewable_impression=!1,b.tb=0,l=p(e)?e.opt_nativeTime:void 0,rO=l=ha(l)?l:oO(),b.ea=!0,m=!1,mP()||(m=!0,b.G.g=l),AP([b],m)),d.qq(b));if(l=d.b[a])if(d=l.call(d,b,e),p(d)){e=iQ(void 0,a);kc(e,d);d=e;break b}}d=void 0}d=uQ(d)}return d};
zQ=function(){};
CQ=function(a,b){if(null==a||0>=a.width||0>=a.height)throw sM(AQ,null,"ad slot size",a.toString());this.g=a;this.b=null!=b?b:new zQ;this.B=BQ(Ifa,this.b.o)?this.b.o:"All";this.A=BQ(Jfa,this.b.creativeType)?this.b.creativeType:"All";this.D=BQ(Kfa,this.b.A)?this.b.A:"SelectExactMatch";this.F=BQ(Lfa,this.b.g)?this.b.g:"DisallowResize";this.o=null!=this.b.B?this.b.B:[];this.C=ha(this.b.b)&&0<this.b.b&&100>=this.b.b?this.b.b:90};
EQ=function(a,b){var c=[];F(b,function(a){a.Hq()&&((0,window.isNaN)(a.b.b)||(0,window.isNaN)(a.El())||a.El()==a.b.b)&&DQ(this,a)?c.push(a):(a=Mfa(this,a),null!=a&&a.Hq()&&c.push(a))},a);
return c};
DQ=function(a,b){var c;if(c="Flash"!=b.xc()||FQ){if(c="All"==a.B||a.B==b.b.$)c=b.xc(),c=null!=c?"All"==a.A||a.A==c:!0;c&&(c=b.o,c=ib(a.o)?!0:null!=c?0<=fb(a.o,c):!1)}if(c){var d=b.bm();if("IgnoreSize"==a.D||jf(a.g,d))c=!0;else if(c="SelectNearMatch"==a.D)"ResizeSmaller"==a.F&&(d=d.width<=a.g.width&&d.height<=a.g.height?d:GQ(d,a.g)),c=d.width,d=d.height,c=c>a.g.width||d>a.g.height||c<a.C/100*a.g.width||d<a.C/100*a.g.height?!1:!0}else c=!1;return c};
Mfa=function(a,b){var c=b.A;return null!=c?cb(c,function(a){return DQ(this,a)},a):null};
GQ=function(a,b){var c=Math.min(b.width/a.width,b.height/a.height);return new hf(c*a.width,c*a.height)};
BQ=function(a,b){return null!=b&&Vb(a,b)};
HQ=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)};
Nfa=function(a){var b={};F(a.split(","),function(a){var d=a.split("=");2==d.length&&(a=Pa(d[0]),d=Pa(d[1]),0<a.length&&(b[a]=d))});
return b};
JQ=function(a,b){if(a[b])return IQ(a[b]);var c=b.toLowerCase(),d;for(d in a)if(d&&d.toLowerCase()==c)return IQ(a[d]);return!1};
IQ=function(a){return a?-1!=a.toString().search(/(?:true|1)/i):!1};
Ofa=function(){this.g=this.o=1;this.b=this.A=0;this.B=1};
KQ=function(){id.call(this);this.b=null;this.C=new Cm(this);H(this,this.C);this.g=new Ag;this.G=new Ag;this.A=this.B=null;this.o=!1;this.D=(ia(null),null)};
MQ=function(){null!=LQ||(LQ=new KQ);return LQ};
OQ=function(a){if(null==a)return!1;if(zM()&&null!=a.webkitDisplayingFullscreen)return a.webkitDisplayingFullscreen;var b=window.screen.availWidth||window.screen.width,c=window.screen.availHeight||window.screen.height;a=NQ(a);return 0>=b-a.width&&42>=c-a.height};
NQ=function(a){return ia(a.getBoundingClientRect)&&Qf(mf(a),a)?a.getBoundingClientRect():{left:a.offsetLeft,top:a.offsetTop,width:a.offsetWidth,height:a.offsetHeight}};
Pfa=function(a,b){a.B=b};
PQ=function(a,b,c,d,e){if(a.o){if(a.D)return a.D(b,c,e);e=e||{};if(d=d?a.G.get(d):U.B)null!=e.opt_fullscreen||(e.opt_fullscreen=OQ(d)),null!=e.opt_adElement||(e.opt_adElement=d);null==e.opt_bounds&&a.B&&(e.opt_bounds=NQ(a.B));return ZN("lidar::handlevast_html5",qa(yQ,b,c,e))||{}}return{}};
Qfa=function(){var a=MQ();if(!a.o)return null;if(null!=a.A)return a.A;a.A=ZN("lidar::getinitsignals_html5",vQ)||null;return a.A};
QQ=function(a,b){var c=[];a.g.forEach(qa(function(a,b,c,k){c==b&&a.push(k)},c,b));
F(c,a.g.remove,a.g)};
RQ=function(a){if(ia(window.Goog_AdSense_Lidar_getUrlSignalsArray)){var b={};b.pageSignals=window.Goog_AdSense_Lidar_getUrlSignalsArray();a.b.send("activityMonitor","pageSignals",b)}};
Rfa=function(a,b,c){if(!U.C)return"";var d=b?a.G.get(b):U.B;a={};null!=c&&(a.fullscreen=c);c="";try{c=rea(function(){return d},a)}catch(e){c="sdktle;"+Ja(e.name,12)+";"+Ja(e.message,40)}return c};
SQ=function(a,b,c){if(ib(a))return null;a=le(a,function(a){var b=a.A;return"application/x-mpegurl"==B(a.b).toLowerCase()||"progressive"==b});
ib(c)||(c=M(c,function(a){return a.toLowerCase()}),a=le(a,function(a){return gb(c,B(a.b).toLowerCase())}));
if(!ha(b)||0>=b)b=wM()?500:1E3;return Sfa(a,b)};
Sfa=function(a,b){return Tfa(a,b)||Ufa(a,b)||Vfa(a,b)};
Tfa=function(a,b){var c=null;F(a,function(a){var e=a.Te,f=a.Vd;e>b||f<b||!(null==c||c.Te>e)||(c=a)});
return c};
Ufa=function(a,b){var c=null;F(a,function(a){var e=a.Te,f=a.Vd;f>b||(null==c||c.Vd<f?c=a:null!=c&&c.Vd==f&&c.Te>e&&(c=a))});
return c};
Vfa=function(a,b){var c=null;F(a,function(a){var e=a.Te,f=a.Vd;if(!(e<b))if(null!=c&&c.Te==e&&c.Vd<f)c=a;else if(null==c||c.Te>e)c=a});
return c};
TQ=function(){id.call(this);this.C=this.G=this.K=this.D=!1;this.g=0;this.A=[];this.F=!1;this.N=this.L=window.Infinity;this.o=0;this.J=!1;this.B=new Cm(this);this.H={}};
Wfa=function(a){UQ(a);!(a.b instanceof id)&&"ontouchstart"in window.document.documentElement&&AM()?(a.H={touchstart:x(a.ZE,a),touchmove:x(a.YE,a),touchend:x(a.XE,a)},Pb(a.H,function(a,c){this.b.addEventListener(c,a,!1)},a)):a.B.O(a.b,"click",a.Iq)};
UQ=function(a){a.B.sa(a.b,"click",a.Iq);Pb(a.H,function(a,c){this.b.removeEventListener(c,a,!1)},a);
a.H={}};
Xfa=function(a,b){a.A=[];F(b,function(a){nb(this.A,a.identifier)},a)};
VQ=function(a,b){return Th(b,function(a){return gb(this.A,a.identifier)},a)};
WQ=function(a){null!=a?cM(Yfa,a)?(a=a.match(/yt_vid\/([a-zA-Z0-9_-]{11})/),a=null!=a&&1<a.length?a[1]:null):a=dM(a)?Zfa(a):null:a=null;return a};
XQ=function(a,b,c){if(null==a)return null;c=new L((null!=c?c:"//www.youtube.com/")+"watch");var d=c.b;d.set("v",a);d.set("feature",b?"trueview-instream":"instream");fh(c,d);return c.toString()};
YQ=function(a){return null===a?!1:"pharma"==(new L(a)).F().toLowerCase()};
Zfa=function(a){if(A(B(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 L(a)).b;return vh(a,"v")?a.get("v").toString():vh(a,"video_id")?a.get("video_id").toString():null};
ZQ=function(){id.call(this)};
$Q=function(a){id.call(this);this.b=a;this.R=new ym(4);this.o=0;this.N=this.A=this.J=this.F=!1;this.K=this.qd();this.H=this.Ef();this.aa=15E3;this.L=!1};
bR=function(a){a.J=!1;a.A=!1;a.F=!1;a.o=0;a.N=!1;a.R.clear();aR(a);Nb(a.B)};
dR=function(a){a.A||(a.A=!0,aR(a),a.dispatchEvent("start"),JM()||!aB||DM(3)||zM()&&(!AM()||!BM(cR,4))||a.km())};
eR=function(a){for(var b=a.b.buffered.length-1;0<=b;){if(a.b.buffered.start(b)<=a.b.currentTime)return a.b.buffered.end(b);b--}return 0};
aR=function(a){a.G&&(fe(a.G),a.G=null)};
gR=function(){id.call(this);this.buffered=new fR;this.b=new Cm(this);var a=PL();if(a){a:{if($b(a.b,"videoElementMockDuration")&&(a=a.b.videoElementMockDuration,ha(a)))break a;a=window.NaN}this.duration=a}};
$fa=function(){var a=["video/mp4"],b=["video/ogg"],c=new gR;c.canPlayType=function(c){return gb(a,c)?"probably":gb(b,c)?"maybe":""};
c.width=0;c.height=0;c.offsetWidth=0;c.offsetHeight=0;return c};
aga=function(a){this.startTime=0;this.endTime=a};
fR=function(){this.length=0;this.b=[]};
hR=function(){throw Error("Do not instantiate directly");};
iR=function(){hR.call(this)};
jR=function(){hR.call(this)};
kR=function(a,b){var c;a:{var d=a(b||cga,void 0,void 0);c=of().createElement("DIV");d=dga(d);c.innerHTML=d;if(1==c.childNodes.length&&(d=c.firstChild,1==d.nodeType)){c=d;break a}}return c};
dga=function(a){if(!ka(a))return String(a);if(a instanceof hR){if(a.Ld===lR)return a.dc();if(a.Ld===mR)return Ea(a.dc())}return"zSoyz"};
nR=function(a,b){return null!=a&&a.Ld===b};
oR=function(a){if(null!=a)switch(a.ge){case 1:return 1;case -1:return-1;case 0:return 0}return null};
pR=function(){hR.call(this)};
Y=function(a){return null!=a&&a.Ld===lR?a:a instanceof Oe?qR(Pe(a),a.jg()):qR(Ea(String(String(a))),oR(a))};
rR=function(){hR.call(this)};
sR=function(){hR.call(this)};
tR=function(){hR.call(this)};
uR=function(){hR.call(this)};
vR=function(){hR.call(this)};
wR=function(a,b){this.content=String(a);this.ge=null!=b?b:null};
xR=function(a){function b(a){this.content=a}
b.prototype=a.prototype;return function(a){return new b(String(a))}};
AR=function(a,b,c){var d="key_"+a+":"+b,e=yR[d];if(void 0===e||0>e)yR[d]=0,zR[d]=c;else if(0==e)throw Error('Encountered two active delegates with the same priority ("'+a+":"+b+'").');};
BR=function(a,b){var c=zR["key_"+a+":"+b];c||""==b||(c=zR["key_"+a+":"]);return c?c:ega;throw Error('Found no active impl for delegate call to "'+a+":"+b+'" (and not allowemptydefault="true").');};
ega=function(){return""};
FR=function(a){return nR(a,lR)?String(String(a.dc()).replace(CR,"").replace(DR,"&lt;")).replace(fga,ER):Ea(String(a))};
GR=function(a){return nR(a,lR)?String(String(a.dc()).replace(CR,"").replace(DR,"&lt;")).replace(gga,ER):String(a).replace(hga,ER)};
iga=function(a){return"%"+a.charCodeAt(0).toString(16)};
IR=function(a){a=va(String(a));HR.lastIndex=0;return HR.test(a)?a.replace(HR,iga):a};
OR=function(a){nR(a,JR)||nR(a,KR)?a=LR(a):a instanceof Ee?a=LR(Fe(a)):a instanceof Ke?a=LR(Le(a)):(a=String(a),a=jga.test(a)?a.replace(MR,NR):"about:invalid#zSoyz");return a};
PR=function(a){nR(a,JR)||nR(a,KR)?a=LR(a):a instanceof Ee?a=LR(Fe(a)):a instanceof Ke?a=LR(Le(a)):(a=String(a),a=kga.test(a)?a.replace(MR,NR):"about:invalid#zSoyz");return a};
RR=function(a){var b=QR[1]||(QR[1]=new Dt(1)),c=oR(a);null==c&&(c=ve(a+"",nR(a,lR)));return lga(c!=b.b?-1==c?'dir="rtl"':1==c?'dir="ltr"':"":"")};
ER=function(a){return mga[a]};
NR=function(a){return nga[a]};
LR=function(a){return String(a).replace(MR,NR)};
oga=function(a,b,c){return""+BR("a",a.Ni)(a,null,c)};
pga=function(a){return'<div class="videoAdUi"><div class="videoAdUiTopBar"><div class="videoAdUiAttributionContainer videoAdUiAttributionContainer-gvn"><div class="videoAdUiAttribution"'+Y(RR(a.Id))+">"+Y(a.Id)+'</div></div></div><div class="videoAdUiProgressBar" dir="ltr"><div class="videoAdUiProgress"></div></div></div>'};
qga=function(a){return'<div class="videoAdUi"><div class="videoAdUiTopBar"><div class="videoAdUiAttributionContainer videoAdUiAttributionContainer-gvn"><div class="videoAdUiAttribution"'+Y(RR(a.Id))+">"+Y(a.Id)+'</div></div><div class="videoAdUiLearnMoreText videoAdUiLearnMoreText-gvn">'+Y(a.zg)+'<div class="videoAdUiLearnMoreIcon"></div></div></div><div class="videoAdUiProgressBar" dir="ltr"><div class="videoAdUiProgress"></div></div></div>'};
rga=function(){return'<div class="videoAdUiPreSkipContainer"><div class="videoAdUiPreSkipButton"><div class="videoAdUiPreSkipText"></div><div class="videoAdUiPreSkipThumbnail" aria-hidden="true"></div></div></div>'};
SR=function(){return"\u041f\u043e\u0434\u0435\u043b\u0438\u0442\u044c\u0441\u044f"};
TR=function(a){return""+BR("b",a.Ni)(a,null,void 0)};
sga=function(a){return'<div class="videoAdUiSkipContainer html5-stop-propagation"><button class="videoAdUiSkipButton videoAdUiAction">'+Y(a.Rt)+'<div class="videoAdUiSkipIcon"></div></button></div>'};
tga=function(a){return'<div class="videoAdUiSkipContainer html5-stop-propagation"><button class="videoAdUiSkipButton videoAdUiAction">'+Y(a.Rt)+'<div class="videoAdUiExperimentalSkipIcon"></div></button></div>'};
UR=function(a){var b="";a=2<=a.Lh&&1<=a.eh?"\u041e\u0431\u044a\u044f\u0432\u043b\u0435\u043d\u0438\u0435 "+(Y(a.eh)+(" \u0438\u0437 "+(Y(a.Lh)+(" "+Y(a.Kh))))):"\u041e\u0441\u0442\u0430\u043b\u043e\u0441\u044c "+Y(a.Kh);return b+=a};
WR=function(){var a=VR(),b=qR("</a>"),a="\u041f\u043e\u0441\u0435\u0442\u0438\u0442\u0435 "+(Y(a)+("\u0440\u0430\u0437\u0434\u0435\u043b \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043a \u043e\u0431\u044a\u044f\u0432\u043b\u0435\u043d\u0438\u0439 Google"+(Y(b)+", \u0447\u0442\u043e\u0431\u044b \u0443\u0437\u043d\u0430\u0442\u044c \u0431\u043e\u043b\u044c\u0448\u0435 \u043e \u0442\u0430\u0440\u0433\u0435\u0442\u0438\u043d\u0433\u0435 \u043e\u0431\u044a\u044f\u0432\u043b\u0435\u043d\u0438\u0439 \u0438\u043b\u0438 \u043e\u0442\u043a\u0430\u0437\u0430\u0442\u044c\u0441\u044f \u043e\u0442 \u0430\u0434\u0440\u0435\u0441\u043d\u043e\u0439 \u0440\u0435\u043a\u043b\u0430\u043c\u044b.")));
return qR(""+("<div class='videoAdUiAdSettingsLongTooltip'>"+a+"</div>"))};
VR=function(){return qR('<a href="https://www.google.com/settings/ads/onweb" target="_blank">')};
XR=function(a){return qR("<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'>"+Y(a.heading)+"</div><div class='videoAdUiPopupText'>"+Y(a.message)+
"</div><div class='videoAdUiPopupButtons'>"+Y(a.buttons)+"</div></form></div></div>")};
uga=function(a){for(var b="<ul class='videoAdUiWhyThisAdReasons videoAdUiHideIfEmpty'>",c=a.targetingReasons,d=c.length,e=0;e<d;e++)b+="<li>"+Y(c[e])+"</li>";b+="</ul><div class='videoAdUiWhyThisAdGenericMessage'>"+Y(a.vl)+"</div><a class='videoAdUiWhyThisAdMute videoAdUiHideIfEmpty'>"+Y(a.mute)+"</a><a class='videoAdUiWhyThisAdControl videoAdUiHideIfEmpty' href='https://www.google.com/settings/ads/onweb' target='_blank'>"+Y(a.control)+"</a>";a=""+XR({heading:YR(""+Y(a.heading)),message:YR(b),buttons:YR("<button class='videoAdUiWhyThisAdCloseButton videoAdUiPopupDefaultButton'>"+
Y(a.close)+"</button>")});return qR(a)};
vga=function(a){for(var b=""+Y(a.question),c=a.options,d=c.length,e=0;e<d;e++)var f=c[e],b=b+("<label for='videoAdUiMuteOption"+FR(e)+"'><input type='radio' id='videoAdUiMuteOption"+FR(e)+"' name='videoAdUiMuteOption' class='videoAdUiMuteOption"+FR(e)+"' />"+Y(f)+"</label>");a=""+XR({heading:YR(Y(a.heading)+" <a class='videoAdUiMuteUndo'>"+Y(a.undo)+"</a>"),message:YR(b),buttons:YR("<button class='videoAdUiMuteCancel videoAdUiPopupButton'>"+Y(a.cancel)+"</button><button class='videoAdUiMuteConfirm videoAdUiPopupDefaultButton'>"+
Y(a.confirm)+"</button>")});return qR(a)};
wga=function(a){var b=String(""+a.heading);return qR(XR({heading:b?new wR(b,void 0):"",message:YR(""+Y(a.message)),buttons:YR("<button class='videoAdUiMuteCancel videoAdUiPopupButton'>"+Y(a.cancel)+"</button><button class='videoAdUiMuteConfirm videoAdUiPopupDefaultButton'>"+Y(a.confirm)+"</button>")}))};
xga=function(){return qR('<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>')};
ZR=function(a,b,c){if(null==a||!Qf(mf(a),a))throw sM(AQ,null,"containerElement","element");this.B=a;this.g=this.b=null;this.A=b;this.C=c||!1;this.o=null;this.b=K("DIV",{style:"display:none;"});a=PL();QL(a,"useVideoElementMock")?(a=$fa(),b=K("DIV",{style:"position:absolute;width:100%;height:100%;top:0px;left:0px;"}),ra(b,a),a.fh=K("DIV",{style:"position:absolute;width:100%;height:100%;top:0px;left:0px;background-color:#000"}),a.Pj=K("P",{style:"position:absolute;top:25%;margin-left:10px;font-size:24px;color:#fff;"}),
a.fh.appendChild(a.Pj),b.appendChild(a.fh),a.b.O(a,["loadeddata","playing","pause","ended"],a.mF),a=b):a=K("VIDEO",{style:"background-color:#000;position:absolute;width:100%;height:100%;",title:"\u0420\u0435\u043a\u043b\u0430\u043c\u0430"});a.setAttribute("webkit-playsinline",!0);this.g=a;this.B.appendChild(this.b);this.b.appendChild(this.g);this.A&&(a=K("DIV",{id:this.A,style:"display:none;background-color:#000;position:absolute;width:100%;height:100%;"}),this.b.appendChild(a));this.C&&(this.o=K("DIV",
{style:"position:absolute;width:100%;height:100%;"}),this.b.appendChild(this.o))};
bS=function(a){id.call(this);this.L="ima-chromeless-video";var b=null;null!=a&&(w(a)?this.L=a:b=a);this.N=new Cm(this);this.C=null;this.A=!1;this.ga=this.qd();this.da=this.Ef();this.H=-1;this.$=!1;this.D=-1;this.o=this.ba=this.J=null;this.aa="";this.g=!1;this.ea=null!=b;this.ia=this.K=this.ca=this.b=null;this.B=void 0;this.G=this.ha=null;this.F=this.ma=0;this.ea?(this.g=!0,this.b=b,this.B=2):(a=x(this.Ty,this),$R?a():(aS.push(a),a=Df("script"),a.src="https://www.youtube.com/iframe_api",b=window.document.getElementsByTagName("script")[0],
b.parentNode.insertBefore(a,b)))};
cS=function(a,b,c){var d={autoplay:"1"};if(null!=a.o){var e=a.o.C;null!=e&&(d.agcid=e);e=a.o.A;null!=e&&(d.adformat=e);e=a.o.B;null!=e&&(d.ad_query_id=e);(e=a.o.D)&&(d.cta_conversion_urls=e);(e=a.o.F)&&(d.endscreen_ad_tracking_data=e);a.o.isPharma()&&(d.is_pharma=1);d.iv_load_policy=a.o.J?1:3;a.o.G&&(d.noiba=1);a.o.L&&(d.utpsa=1);a.o.K&&(d.autoplay="1");a.o.o&&kc(d,a.o.o)}e=WQ(b);null===e?d.url_encoded_third_party_media="url="+(0,window.encodeURIComponent)(b)+"&type="+(0,window.encodeURIComponent)(null===
c?"":c):d.videoId=e;!U.b()&&aM(ZL(),41351017)&&(d.enabled_engage_types="3,4,5");a.A=!1;a.o&&a.o.g?(a.ha=d,a.b.preloadVideoByPlayerVars(a.ha)):a.b.cueVideoByPlayerVars(d);a.dispatchEvent("loaded")};
dS=function(a){a.N.sa(a.C,"tick",a.Rr);null!=a.C&&(a.C.stop(),a.C=null)};
eS=function(a){null!=a.qa&&fe(a.qa)};
fS=function(a){id.call(this);this.sessionId=a||Ua();this.g=[]};
gS=function(a,b,c,d,e){mc.call(this,a);this.Ic=b;this.Wd=c;this.Cq=d;this.o=e};
hS=function(a,b){fS.call(this,b);this.o=a;this.ud=null;this.A=new Cm(this);this.logger=null;this.A.O(yf(),"message",this.receive)};
iS=function(a){if(null==a||!w(a)||!ta(a,"ima://"))return null;a=a.substr(6);try{return bg(a)}catch(b){return null}};
yga=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.o;return"ima://"+gg(e)};
jS=function(a,b){if(null==b)return!1;var c=b.channel;if(null==c||c!=a.o)return!1;c=b.sid;return null==c||"*"!=a.sessionId&&c!=a.sessionId?!1:!0};
kS=function(a,b){id.call(this);this.A=a;this.o=b;this.b={};this.g=new Cm(this);this.g.O(yf(),"message",this.B)};
mS=function(a,b,c,d){a.b.hasOwnProperty(b)||(c=new hS(b,c),a.g.O(c,a.A,function(a){a=new lS(a.type,a.Ic,a.Wd,a.Cq,a.getOrigin(),b);this.dispatchEvent(a)}),c.ud=d,c.connect(),a.b[b]=c)};
lS=function(a,b,c,d,e,f){gS.call(this,a,b,c,d,e);this.b=f};
oS=function(){var a=q("google.ima.gptProxyInstance",yf());if(null!=a)return a;Cm.call(this);this.o=new kS("gpt",!0);H(this,this.o);this.O(this.o,"gpt",this.C);this.b=null;nS()||yf().top===yf()||(this.b=new kS("gpt",!1),H(this,this.b),this.O(this.b,"gpt",this.B))};
nS=function(){return!!q("googletag.cmd",yf())};
pS=function(){var a=q("googletag.console",yf());return null!=a?a:null};
qS=function(a,b,c,d,e,f,k,l,m,n,t,u,y,E){this.A=a;this.B=n;this.C=b;this.D=d;this.G=l;this.H=u;this.J=e;this.L=f;this.K=y;this.b=k;this.g=m;this.o=t;this.F=E};
zga=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,t,u){if("%"==n)return"%";var y=c.shift();if("undefined"==typeof y)throw Error("[goog.string.format] Not enough arguments");arguments[0]=y;return rS[n].apply(null,arguments)})};
uS=function(a,b){id.call(this);this.g=new Cm(this);this.G=!1;this.H=Ua();this.F=new Ag;var c=this.H,d=(sea()?"https:":"http:")+zga("//imasdk.googleapis.com/js/core/bridge0.0.0_%s.html","en"),e;a:{var f=window;try{do{try{if(0==f.location.href.indexOf(d)||0==f.document.referrer.indexOf(d)){e=!0;break a}}catch(k){}f=f.parent}while(f!=f.top)}catch(k){}e=!1}e&&(d+="?f="+c);c=K("IFRAME",{src:d+"#"+c,style:"border:0; opacity:0; margin:0; padding:0; position:relative;"});Hm(this.g,c,"load",this.kz);a.appendChild(c);
this.o=c;c=this.F.get("*");null==c&&(c=new hS(this.H,"*"),this.G&&(c.ud=Rf(this.o),c.connect()),this.F.set("*",c));this.D=c;this.C=b;this.b=this.C.g;this.A=this.B=null;this.g.O(this.D,"mouse",this.Ez);this.g.O(this.D,"touch",this.Zz);null!=this.b&&(this.g.O(this.D,"displayContainer",this.Az),this.g.O(this.D,"videoDisplay",this.Wz),this.g.O(this.D,"preloadVideoDisplay",this.Oz),this.g.O(this.b,Xb(sS),this.Zd),this.g.O(this.b,tS,this.Zd));c=yf();d=q("google.ima.gptProxyInstance",c);null==d&&(d=new oS,
g.ba("google.ima.gptProxyInstance",d,c))};
vS=function(a,b){var c=Qs(a.o),d=M(b,function(a){return window.document.createTouch(window,this.o,a.identifier,a.pageX+c.x,a.pageY+c.y,a.screenX,a.screenY)},a);
return window.document.createTouchList.apply(window.document,d)};
wS=function(a){a=a.playbackOptions;return new qS(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)};
xS=function(a,b,c,d,e){if(!(e||null!=a&&Qf(mf(a),a)))throw sM(AQ,null,"containerElement","element");this.C=a;var f=e=null!=b||null!=d,k=!1;U.g||(U.g||AM()||aB&&!DM(4)||IM())&&e||(xM()||IM()||(k=!0),f=!1);this.D=f;this.H=k||f&&null!=d;U.g?a=null:(e=K("DIV",{style:"position:absolute"}),a.insertBefore(e,a.firstChild),a=e);this.o=a;this.b=this.D||!this.o||U.g||!xM()?null:new ZR(this.o,null,!0);a=null;this.D?b?a=new $Q(b):d&&(a=new bS(d)):this.b&&(a=new $Q(this.b.g));this.g=a;this.B=this.A=null;a=aB&&
!DM(4);e=zM()&&xM();this.b&&this.g&&this.o&&!this.D&&!IM()&&!a&&!e&&this.o&&(this.A=new ZR(this.o,null,!0),this.B=new $Q(this.A.g));this.F=this.g?c||null:null;this.J=null!=this.F;UM(RM.getInstance(),8,{enabled:this.D,yt:null!=d,customClick:null!=this.F});null===this.o?(b=this.C,U.B=b):this.D&&b&&!ia(b.getBoundingClientRect)&&(b=this.C,U.B=b);this.G=null==this.o||U.g?null:new uS(this.o,this)};
yS=function(a){return a.J&&a.F?a.F:null!=a.b?a.b.o:null};
AS=function(a,b){var c=[],d="",e="";if(null!=b){for(var d=b,e=[],f=0;d&&25>f;++f){var k;a:{if(d&&d.nodeName&&d.parentElement){k=d.nodeName.toString().toLowerCase();for(var l=d.parentElement.childNodes,m=0,n=0;n<l.length;++n){var t=l[n];if(t.nodeName&&t.nodeName.toString().toLowerCase()===k){if(d===t){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 u=
e.parent;for(k=0;u&&u!==e&&25>k;++k){for(var y=u.frames,l=0;l<y.length;++l)if(e===y[l]){f.push(l);break}e=u;u=e.parent}}catch(E){}e=f.join()}else e=""}c.push(d,e);if(null!=a){for(u=0;u<zS.length-1;++u)c.push(Yg(a,zS[u])||"");u=Yg(a,"videoad_start_delay");y="";u&&(u=(0,window.parseInt)(u,10),y=0>u?"postroll":0==u?"preroll":"midroll");c.push(y)}else for(u=0;u<zS.length;++u)c.push("");c=c.join(":");u=c.length;if(0==u)c=0;else{y=305419896;for(d=0;d<u;d++)y^=(y<<5)+(y>>2)+c.charCodeAt(d)&4294967295;c=
0<y?y:4294967296+y}return c.toString()};
BS=function(){id.call(this);this.currentTime=0};
CS=function(a){BS.call(this);this.currentTime=a.currentTime;if(!("currentTime"in a)||(0,window.isNaN)(a.currentTime))throw sM(AQ,null,"content","currentTime");this.g=a;this.b=new ce(250);this.o=new Cm(this);Em(this.o,this.b,"tick",this.A,this)};
ES=function(a,b){id.call(this);this.b=a;this.C=!!b;this.A=DS(this);if(!this.A){var c=wf&&!zc("7")?"readystatechange":"load";this.g=Sc(this.b,c,this.B,!1,this);this.o=window.setInterval(x(this.B,this),100)}};
FS=function(a){a.o&&(window.clearInterval(a.o),a.o=null)};
DS=function(a){var b=!1;try{if(a.C||!wf||zc("11"))var c=a.b,d=(c.contentDocument||c.contentWindow.document).body,b=a.C?!!d&&!!d.firstChild:!!d;else b="complete"==a.b.readyState}catch(e){}return b};
GS=function(){id.call(this);this.A=!1;this.impressionUrls=[]};
HS=function(a,b,c){mc.call(this,a);this.o=b||null;this.b=c||null};
IS=function(a,b){this.G=a;this.F=M(b,function(a){return a.clone()});
this.D="";this.g=null;this.o=this.B=0;this.A=!0;this.C=[];this.b=[]};
JS=function(a,b,c,d,e,f){a.D="<div></div>";a.g=b;a.B=c;a.o=d;a.A=!1;a.C=e||[];a.b=f||[]};
KS=function(a){a.D="";a.g=null;a.B=0;a.o=0;a.A=!0;a.C=[];a.b=[]};
LS=function(){GS.call(this);this.F=[];this.C=!1;this.o="not_loaded";this.g=null;this.B=0;this.b=null;this.G=new lf};
MS=function(a){var b=["googletag","googletag.cmd"];return cb(a,function(a){return Sk(b,function(b){return null!==q(b,a)})})||null};
NS=function(a,b,c){var d=0,e=0;null!=b&&(b=new L(b.b),d=Number(b.b.get("pod")||0),e=Number(b.b.get("ppos")||0));if(null!=a.setVideoSession)try{a.setVideoSession(SM.b,d,e,c)}catch(f){}};
Aga=function(a,b){var c=OS(a);if(null!==c){NS(c,b,!0);try{c.refreshAllSlots()}catch(d){}}};
QS=function(a,b,c){a=PS(a);if(null!=a)try{a.setVideoContent(b,c)}catch(d){}};
RS=function(a,b){a.D=b;QS(a,"","");var c=OS(a);null===c||NS(c,null,!1)};
OS=function(a){null==a.b&&SS(a);return null!=a.b&&null!=a.b.googletag&&null!=a.b.googletag.companionAds?a.b.googletag.companionAds():null};
PS=function(a){null==a.b&&SS(a);return null!=a.b&&null!=a.b.googletag&&null!=a.b.googletag.pubads?a.b.googletag.pubads():null};
TS=function(a){a.g&&(a.g.stop(),a.g.sa("tick",a.os,!1,a),a.g.dispose(),a.g=null)};
XS=function(a){if("retrieved"!=a.o&&"not_available"!=a.o&&null!==OS(a)){var b;var c=OS(a);if(null!==c&&null!=c.getDisplayAdsCorrelator)try{b=c.getDisplayAdsCorrelator()}catch(f){b=null}else b=null;switch(b){case "not_loaded":case "not_available":a.o=b;break;default:b=Number(b),(0,window.isNaN)(b)?a.o="not_available":(a.D=b,a.o="retrieved")}}(b=US(a))||(b=VS(a)&&"not_available"==a.o);if(b){if(!a.H&&VS(a)){var d;try{if(null==a.b)d=[];else{var e=a.b.googleGetCompanionAdSlots();d=M(e,a.hG,a)}}catch(f){d=
[]}a.F=d;a.H=!0}a.A=!0;TS(a);US(a)?a.dispatchEvent(new HS("companions_success")):WS(a)}else a.g||(a.B=C()+5E3,a.g=new ce(100),a.g.O("tick",a.os,!1,a),a.g.start())};
US=function(a){return VS(a)&&"retrieved"==a.o};
VS=function(a){a.C||(SS(a),a.C=null!=a.b&&null!=a.b.googleGetCompanionAdSlots);return a.C};
SS=function(a){var b=$f(a.G);try{a.b=MS([b,b.top])}catch(c){a.b=null}};
WS=function(a){a.dispatchEvent(new HS("companion_initialization_failed",Error("Partial or full service initialization failure.")))};
Bga=function(a,b,c){var d=new ES(b,!0);d.A?YS(a,c,b):bd(d,"ifload",qa(function(a){YS(this,c,a)},b),!1,a)};
YS=function(a,b,c){a.dispatchEvent(new HS("companion_slot_init",null,b));var d=c;"IFRAME"==c.tagName&&(d=(c.contentDocument||c.contentWindow.document).body);null!=d&&Sc(d,"click",x(a.BC,a,b),!1,a)};
ZS=function(a,b){mc.call(this,a);this.b=b};
$S=function(a){mc.call(this,a)};
aT=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.b=Zb(b,"thumbnails","default","url"));if(b=a.statistics)this.videoCount=b.videoCount;if(a=a.brandingSettings)this.g=Zb(a,"image","bannerImageUrl")}};
bT=function(){this.b=new Ag};
cT=function(a,b){this.o=a;this.b=b};
dT=function(a,b){cT.call(this,"progress",a);this.g=b};
fT=function(a,b){F(b,function(a){var b=a.Fb().toLowerCase(),e=eT(this,b);e.push(a);this.b.set(b,e)},a)};
gT=function(a,b,c,d){b=b.toLowerCase();var e=eT(a,b);null!=d?(d=new dT(c,d),null!=d?e.push(d):e.push(new cT(b,c))):e.push(new cT(b,c));a.b.set(b,e)};
eT=function(a,b){return null!=b?a.b.get(b.toLowerCase())||[]:[]};
Cga=function(a,b){var c=eT(a,"progress");F(c,function(a){hT(a.g,b)});
Cb(c,function(a,b){return iT(a.g)-iT(b.g)})};
jT=function(a,b){return M(eT(a,b)||[],function(a){return a.b})};
kT=function(a,b){this.b=null!=a?a:new bT;this.H=null!=b?b:[]};
Dga=function(a,b){var c=b.b;F(c.Ua(),function(a){fT(this.b,c.get(a))},a)};
lT=function(a,b){var c=jT(a.b,b);return null!=c?c:[]};
Ega=function(a){return'<div class="text-container '+(a.image?"pyv":"")+'"><div class="text-inner-container">'+(a.image?(a.Jb?'<a class="text-image-link" target="_blank" href="'+Y(a.Jb)+'">':'<a class="text-image-link" target="_blank">')+'<img src="'+Y(a.image)+'" class="text-image">'+(a.duration?'<div class="text-image-duration">'+Y(a.duration)+"</div>":"")+"</a>":"")+(a.Jb?'<a class="text-title" href="'+Y(a.Jb)+'" target="_blank" dir='+Y(a.dir)+">"+Y(a.title)+"</a>":"")+'<div class="text-description" dir='+
Y(a.dir)+">"+Y(a.text)+"</div>"+(a.gu&&a.Jb?'<a target="_blank" href="'+Y(a.Jb)+'" class="text-ad-channel">'+Y(a.gu)+"</a>":"")+"</div></div>"};
Fga=function(a){return'<div class="flash-container '+(a.ag?"click-capture":"")+'">'+(a.Jb?'<a class="click-layer" target="_blank" href="'+Y(a.Jb)+'"></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="'+Y(a.width)+'" height="'+Y(a.height)+'"><param name="movie" value="'+Y(a.url)+'"><param name="quality" value="high"><param name="wmode" value="transparent"><param name="AllowScriptAccess" value="never"><param name="FlashVars" value="clickTAG='+
IR(a.Jb)+'"><embed width="'+Y(a.width)+'" height="'+Y(a.height)+'" wmode="transparent" type="application/x-shockwave-flash" src="'+Y(a.url)+'" allowscriptaccess="never" pluginspage="//www.macromedia.com/go/getflashplayer" flashvars="clickTAG='+IR(a.Jb)+'"></object></div>'};
Gga=function(a){return'<div class="image-container" id="'+Y(a.id)+'" style="width:'+Y(a.width)+";height:"+Y(a.height)+';">'+(a.Jb?'<a target="_blank" href="'+Y(a.Jb)+'">':'<a target="_blank">')+'<img src="'+Y(a.url)+'" border="0"></a></div>'};
Hga=function(a){return'<div class="image-container" id="'+Y(a.id)+'">'+(a.Jb?'<a target="_blank" href="'+Y(a.Jb)+'">':'<a target="_blank">')+'<img src="'+Y(a.url)+'" border="0" style="max-width:100%;max-height:100%;"></a></div>'};
mT=function(a){return'<div class="image-container" id="'+Y(a.id)+'" style="width:'+Y(a.width)+";height:"+Y(a.height)+';"></div>'};
nT=function(){this.H=-1;this.D={};this.ha="";this.wg=new bT};
oT=function(a,b,c){a.ha=b;a.D=c};
pT=function(a,b){var c=[],d=a.Ti();F(d,function(a){a=eT(a.wg,b)||[];c=rb(a,c)},a);
return c};
qT=function(a,b,c){var d=c||!1;return cb(b.B,function(a){var b=a.b==this.b;return a instanceof this.constructor&&(d||b)},a)};
rT=function(a,b,c,d,e,f,k,l,m,n){this.A=a;this.b=b;this.D=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.Te=e;this.Vd=f;this.C=k;this.B=l;this.g=iM(B(m));this.o=n};
sT=function(a,b,c,d,e,f){nT.call(this);this.H=a;this.o=b;this.g=c;this.L=sb(d);this.ga=null;this.A=e;this.gb=sb(f);wb(this.gb,null,function(a){return a.G})};
tT=function(a){var b=new Ag,c=a.Ti();F(c,function(a){if(a instanceof sT){var c=a.g;F(c.Ua(),function(a){b.set(a,rb(c.get(a),b.get(a)||[]))},this)}},a);
return b};
uT=function(a,b){var c=cb(a.L,function(a){return!A(B(a.b))&&-1!=a.b.indexOf(b)&&("VPAID"==a.o||"surveys"==a.o)});
return null!=c?c.g:null};
vT=function(a,b,c){G.call(this);this.g=a;this.o=b;this.C=c;this.B=0;this.b=new Cm(this);Iga(this)};
Iga=function(a){a.C.forEach(function(a,c){this.b.O(c,"mousedown",this.D);this.b.O(c,"mouseup",this.G)},a);
a.b.O(a.o,"mouseover",a.F)};
wT=function(a,b){a[b]||(a[b]=[]);return a[b]};
xT=function(a,b){return a[b]?a[b].length:0};
yT=function(a,b,c){this.type=a;this.label=b;this.Ma=c};
zT=function(a,b){return new yT(a,1,b)};
AT=function(a){return new yT("m",3,a)};
BT=function(a){return zT("m",a)};
CT=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?p(void 0)?CT(a,b,void 0,d):a:c};
ET=function(){var a=window.event||DT;if(!a)return null;var b;(b=a.which?1<<Jga[a.which-1]:a.button)&&a.shiftKey&&(b|=8);b&&a.altKey&&(b|=16);b&&a.ctrlKey&&(b|=32);return b};
FT=function(a,b,c){G.call(this);this.g=a;this.B=b;this.H=c;this.A=0;this.b={};this.o=new Cm(this);H(this,this.o);Kga(this)};
Kga=function(a){F(a.H,function(a){this.o.O(a.element,"mousedown",this.D,!0);this.o.O(a.element,"mouseup",qa(this.G,a),!0)},a);
a.o.O(a.B,"mouseenter",a.F)};
Lga=function(a,b){Pb(a.b,function(a,d){b=ah(b,d,a)});
return b};
HT=function(a,b,c,d,e){nT.call(this);A(B(a))&&(a=Ua()+"_ima");this.wa=B(a);this.na=b;this.$=c;this.ba=d;this.B=e;this.J=[];null!=this.ba?this.ua=GT[this.ba]||"Other":this.ua=null};
IT=function(a,b,c,d,e){HT.call(this,a,b,c,d,e);this.La=this.o=null;this.qa=-2;this.g=null;this.da=this.N=r;this.R=[];this.Ha=[];this.A=!1};
LT=function(a,b){a.g=b;null!=a.o&&null!=b&&(JT(a,a.N),KT(a,a.da))};
JT=function(a,b){null!=a.g&&null!=a.o&&F(a.R,function(a){this.g.sa(a,"click",this.N);!A(B(this.Td()))&&this.g.O(a,"click",b)},a);
a.N=b};
KT=function(a,b){null!=a.g&&null!=a.o&&(a.g.sa(a.o,"creativeview",a.da),a.g.O(a.o,"creativeview",b));a.da=b};
MT=function(a,b){var c=a.wa,d={};d.style="cursor:default;position:relative;z-index:1001;height:"+a.getHeight()+"px;";"Text"!=a.xc()&&(d.style+="width:"+a.cb()+"px");A(B(c))||(d.id=c);return K("DIV",d,b)};
NT=function(a){if(!a.A)return null;var b=pT(a,"start");tb(b,pT(a,"creativeview"));if(null!=b&&!ib(b)){var c=[];F(b,function(a){if(!A(B(a))){var b;b=of().qz("IFRAME",{frameborder:0,style:"border:0;vertical-align:bottom;",src:Mga});Gs(b,{display:"block",height:"0px",width:"0px"});var f="iframe"+Math.floor(1E9*Math.random());b.setAttribute("height",0);b.setAttribute("width",0);b.setAttribute("src",iM(a.b));b.setAttribute("id",f);this.Ha.push(f);nb(c,b)}},a);
return c}return null};
Nga=function(a,b){if(null!=a.o)if(ZL().b.Z("cleanup_text_overlay_spam_signals")){var c=[];F(a.R,function(a){c.push({element:a,Ly:this.Al(a)})},a);
new FT(b,a.o,c)}else c=new Ag,F(a.R,function(a){c.set(a,this.Al(a))},a),new vT(b,a.o,c)};
Oga=function(a){var b=[],c=a.Ti();F(c,function(a){b=rb(b,a.J)},a);
return b};
OT=function(a,b,c){var d=c||!1;return cb(b.B,function(a){var b=a.b==this.b;return this instanceof a.constructor&&(d||b)},a)};
PT=function(a,b){IT.call(this,a,b,"Static","text","")};
VT=function(a,b,c){var d={};a=new QT(a,p(b)?b:null,p(c)?c:null);RT(d,a);b=a.error;d.ERRORCODE=1E3>b.g?b.g:900;ST(d);TT(d,a);UT(d,a);b=a.error.jb();d.ERROR_MSG=a.error.b;d.IMA_ERROR=b;d.INTERNAL_ID="0";d.BLOCKING_ERROR=-1!=fb(Pga,b)?"1":"0";d.YT_ERROR_CODE=3;return d};
WT=function(a,b){var c={},d=new QT(null,a,p(b)?b:null);RT(c,d);ST(c);TT(c,d);UT(c,d);c.BREAK_TYPE="0";c.SLOT_POS="0";c.MIDROLL_POS="0";if(null!=d.g){var e=d.g.o;if(null!=e&&null!=e.qf&&null!=e.qf.video_start_delay)e=e.qf.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.A;c.BREAK_TYPE=0==e.A?"1":-1==e.A?"3":"2";c.SLOT_POS=e.g-1;var e=d.g.o,e=null!=e&&null!=e.Eb&&null!=e.Eb.GET_MIDROLL_POSITION_IN_SEC?e.Eb.GET_MIDROLL_POSITION_IN_SEC:null,
f=Math.round(d.g.A.b),e=0<f&&e?e(f):f;0<e&&(c.MIDROLL_POS=e)}}Qga(c,d);Rga(c,d);d=a.Aa;for(e=a;null!=e;)d=e.qa+","+d,e=e.g;c.RWT=d;return c};
QT=function(a,b,c){this.error=a;this.g=b;this.b=c};
XT=function(a,b){null!=b&&(a.VIEWABILITY=b)};
Sga=function(){var a=Qfa();if(null!=a)return a.moatInit};
ZT=function(a,b,c,d,e){d&&!U.b()||!Tga(c,b)?a[c]="":(d=e(),null!=d&&(a[c]=d,nM.jr(b)&&(a[c]=(0,window.encodeURIComponent)(a[c]))))};
Tga=function(a,b){return Th(Uga[a],function(a){return null!=b.match(a)})};
RT=function(a,b){a.CACHEBUSTING={toString:function(){return Math.round(1E8*Math.random()+1E8).toString().slice(1)}};
a.ASSETURI={toString:function(){return null!=b.b?b.b.getVideoUrl():""}}};
Rga=function(a,b){a.AD_CPN={toString:function(){return b.b.hg()}};
a.AD_MT={toString:function(){return Math.round(Math.max(0,1E3*b.b.getCurrentTime())).toString()}};
a.MT={toString:function(){return b.b?Math.round(Math.max(0,1E3*b.b.getCurrentTime(1))).toString():"0"}};
a.P_W={toString:function(){return null!=b.b&&null!=b.b.qd()?b.b.qd().width.toString():""}};
a.P_H={toString:function(){return null!=b.b&&null!=b.b.qd()?b.b.qd().height.toString():""}}};
ST=function(a){a.SDKV=QM(SM);a.EL="adunit";a.CONN="0";a.WT={toString:function(){return Date.now()}}};
TT=function(a,b){if(null!=b.g&&null!=b.g.o&&null!=b.g.o.Eb&&U.b()){var c=b.g.o.Eb;F(Vga,function(b){b in c&&(a[b]=c[b])})}};
UT=function(a,b){if(null!=b.g){a.AD_ID=Wga(b.g);a.AD_SYS=Xga(b.g);var c=$T(b.g);a.AQI=null!=c?c:"";a.AD_V={toString:function(){if(null!=b.b){var a=WQ(b.b.getVideoUrl());if(null!=a)return a}return"0"}};
a.FORMAT_NAMESPACE="0";a.FORMAT_TYPE="0";a.FORMAT_SUBTYPE="0";c=[];try{c=aU(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"}};
Qga=function(a,b){null!=b.g&&(a.AD_LEN={toString:function(){var a=bU(b.g);return 0>a?"-1":Math.round(1E3*a).toString()}},a.VOL={toString:function(){return null!=b.b?b.b.Ff()?"0":Math.round(100*b.b.Sd()).toString():""}})};
eU=function(a,b,c){var d=null,e=c+b;F(a.B,function(f){if(JQ(f.D,"rm")){var k=WT(a);cU(a)&&(k.FILLED_OPPORTUNITY=0);oM(a.J,k);(k=a.o)&&k.afcRmFallback&&(d=f)}else{if(k=f instanceof IT)0==c&&0==b||f instanceof PT?k=!0:(k=f.rd(),k=k.width<=b&&k.height<=c);if(k&&(k=0==c&&0==b?0:c-f.rd().height+b-f.rd().width,"Flash"!=f.xc()||FQ))if(null==d)d=f,e=k;else if(k==e&&f.b<d.b||k<e)d=f,e=k}});
dU(a,d)};
fU=function(a){var b=null;F(a.B,function(a){a instanceof sT&&(null===b||a.b<b.b)&&(b=a)});
dU(a,b)};
gU=function(a,b,c,d){this.C=a;this.H=b;this.ads=0<this.C.length?this.C:this.H;this.F=c;this.D=this.K=!0;this.o=-1;this.b=null;this.N=this.A=0;this.R=d;this.logger=null};
lU=function(a,b,c){var d=[],e=x(function(a){this.g()?hU(this,function(a){d.push(a);e(null)},function(a){301==a.jb()?c(rM(iU)):e(a)}):0<d.length?b(d):(null==a&&(a=rM(jU)),1012==a.jb()&&(a=rM(kU)),c(a))},a);
e(null)};
hU=function(a,b,c){null!=a.b?Yga(a,b,c):a.g()?Zga(a,b,x(function(a){!this.g()||!U.b()&&301==a.jb()?c(a):hU(this,b,c)},a)):c(new ML("adLoadError","The ad source contains no more ads.",1005))};
$ga=function(a,b){a.D=b;a.ads=a.J(a.C,a.H);a.o=-1};
aha=function(a,b,c,d){var e=a.F.clone();e.g="";e.b=b.Sa;mU(a,b,e,c,d)};
mU=function(a,b,c,d,e){var f=b.getExtension("LocalRedirect");null!=f&&(f=f.o,null!=f&&(c.g=f));a.R.fetch(c,x(function(a){a instanceof gU?(bha(a,b,this.D&&b.Ga,b.Ja),d(a)):a instanceof nU?e(new ML("adLoadError","Ad source cannot contain playlist response.",2)):e(new ML("adLoadError","Unknown ad source.",2))},a),e)};
cha=function(a){var b=0;for(a=a.g;null!=a;)a=a.g,b++;return b};
Yga=function(a,b,c){a.b.g()?hU(a.b,x(function(a){this.B(a,b,x(function(a){this.g()?hU(this,b,c):c(a)},this))},a),x(function(a){oU(this.ads[this.o],a);
this.b=null;U.b()||301!=a.jb()?this.g()?hU(this,b,c):c(a):c(a)},a)):(0==a.b.A&&oU(a.ads[a.o],rM(pU)),a.b=null,hU(a,b,c))};
oU=function(a,b){if(b.o){1012==b.jb()&&(b=rM(kU));var c=VT(b,a);oM(a.La,c)}};
Zga=function(a,b,c){a.o++;var d=a.ads[a.o];d.ba||d.aa?d.aa?aha(a,d,x(function(a){this.b=a;hU(this,b,c)},a),x(function(a){a=qU(a);
oU(d,a);c(a)},a)):4<=cha(d)?(a=rM(dha,null,"4"),oU(d,a),c(a)):a.K?a.G(d,x(function(a){this.b=a;
hU(this,b,c)},a),x(function(a){a=qU(a);
oU(d,a);c(a)},a)):c(rM(eha)):a.B(d,b,c)};
qU=function(a){switch(a.jb()){case 300:case 301:case 302:case 303:case 200:case 1012:break;default:a=rM(pU)}return a};
bha=function(a,b,c,d){F(a.ads,function(a){a.g=b});
$ga(a,c);a.K=d};
rU=function(a){kT.call(this);this.g=(0,window.isNaN)(a)?-1:a};
sU=function(a,b,c,d){gU.call(this,[],a,b,c);this.L=d};
tU=function(a){return qR('<div class="iv-endcap-background"><div class="iv-endcap-slot"><div class="iv-endcap-card"><a class="iv-endcap-image" href="'+FR(OR(a.target))+'" target="_blank"><img src="'+FR(PR(a.image))+'"></a><div class="iv-endcap-text" dir='+GR(a.dir)+'><a href="'+FR(OR(a.target))+'" target="_blank"><div class="iv-endcap-headline">'+Y(a.headline)+'</div><div class="iv-endcap-description">'+Y(a.description)+'</div></a></div><a class="iv-endcap-action" href="'+FR(OR(a.target))+'" target="_blank" dir='+
GR(a.dir)+">"+Y(a.action)+'</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>')};
fha=function(a,b,c){c=c||{};var d='<div class="iv-cards-companion"><div class="iv-cards-attribution"><span class="yt-badge yt-badge-ad">'+uU()+"</span>";a.fp&&a.Jb&&(b='\u0422\u043e\u0432\u0430\u0440\u044b \u0440\u0435\u043a\u043b\u0430\u043c\u043e\u0434\u0430\u0442\u0435\u043b\u044f "'+(Y(a.fp)+'"'),d+='<a href="'+FR(OR(a.Jb))+'" target="_blank">'+b+"</a>");d+='<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>'+
Y(a.de)+'</p></div></div></div><div class="iv-cards-slider"><div class="iv-cards-slider-body"><ul class="iv-cards-slider-list">';b=a.cards;for(var e=b.length,f=0;f<e;f++){var k;k=b[f];k=qR('<div class="iv-cards-slider-unit"><a href="'+FR(OR(k.target))+'" target="_blank"><div class="iv-cards-slider-image"><span class="iv-cards-image-helper"></span><img src="'+FR(PR(k.image))+'"></div><div class="yt-ui-ellipsis yt-ui-ellipsis-4 iv-cards-slider-text">'+Y(k.headline)+'</div><span class="iv-cards-slider-action">'+
Y(k.action)+"</span></a></div>");d+='<li class="iv-cards-slider-item">'+k+"</li>"}d+="</ul></div>"+(a.bG?'<button class="iv-cards-slider-button iv-cards-slider-prev" type="button" onclick="'+(c.pl?"/*"+c.pl+"*/":"")+';return false;"><span class="iv-cards-slider-prev-icon yt-uix-tooltip yt-sprite" data-tooltip-text="'+FR(a.Rs)+'" title="'+FR(a.Rs)+'" /></button><button class="iv-cards-slider-button iv-cards-slider-next" type="button" onclick="'+(c.pl?"/*"+c.pl+"*/":"")+';return false;"><span class="iv-cards-slider-next-icon yt-uix-tooltip yt-sprite" data-tooltip-text="'+
FR(a.yr)+'" title="'+FR(a.yr)+'"></span></button>':"")+"</div></div>";return qR(d)};
gha=function(a){return qR('<div class="iv-website-companion">'+(a.Bi?'<img class="iv-website-companion-banner" src="'+FR(PR(a.Bi))+'">':"")+'<div class="iv-website-companion-block"><div class="iv-website-companion-icon"><img src="'+FR(PR(a.yq))+'"></div><div class="iv-website-companion-text"><div class="iv-website-companion-header">'+Y(a.headline)+'</div><div class="iv-website-companion-desc"><span class="iv-website-companion-ad-badge">'+uU()+'</span><span class="iv-website-companion-domain">'+Y(a.descriptionText)+
'</span></div></div><a class="iv-website-companion-action yt-uix-button yt-uix-button-size-default yt-uix-button-primary" href="'+FR(OR(a.target))+'" target="_blank">'+Y(a.$o)+"</a></div></div>")};
hha=function(a){return qR('<div class="iv-website-companion">'+(a.Bi?'<a href="'+FR(OR(a.target))+'" target="_blank"><img class="iv-website-companion-banner" src="'+FR(PR(a.Bi))+'"></a>':"")+'<div class="iv-website-companion-block"><a href="'+FR(OR(a.target))+'" target="_blank"><div class="iv-website-companion-icon"><img src="'+FR(PR(a.yq))+'"></div></a><div class="iv-website-companion-text"><a href="'+FR(OR(a.target))+'" target="_blank"><div class="iv-website-companion-header">'+Y(a.headline)+'</div></a><a href="'+
FR(OR(a.target))+'" target="_blank"><div class="iv-website-companion-desc"><span class="iv-website-companion-ad-badge">'+uU()+'</span><span class="iv-website-companion-domain">'+Y(a.descriptionText)+'</span></div></a></div><a class="iv-website-companion-action yt-uix-button yt-uix-button-size-default yt-uix-button-primary" href="'+FR(OR(a.target))+'" target="_blank">'+Y(a.$o)+"</a></div></div>")};
vU=function(){return qR("\u041f\u0435\u0440\u0435\u0439\u0442\u0438 \u043d\u0430 \u043d\u0430\u0448 \u0441\u0430\u0439\u0442")};
uU=function(){return qR("\u0420\u0435\u043a\u043b\u0430\u043c\u0430")};
wU=function(a){L.call(this,a);this.C=new Ag;a=this.o;var b=a.indexOf(";"),c=null;0<=b?(eh(this,a.substring(0,b)),c=a.substring(b+1)):eh(this,a);iha(this,c)};
iha=function(a,b){A(B(b))||F(b.split(";"),function(a){var b=a.indexOf("=");if(0<b){var e=wa(a.substring(0,b));a=wa(a.substring(b+1));b=this.C.get(e);null!=b?gb(b,a)||b.push(a):b=[B(a)];this.C.set(e,b)}},a)};
jha=function(a){if(A(B("ord")))return null;a=a.C.get("ord");return null!=a?a:null};
xU=function(a,b,c){A(B(b))||(c=M(c,B),a.C.set(b,c))};
yU=function(a,b){var c=[B(b)];tb(c,kha(a));return c.join(";")};
kha=function(a){var b=jha(a);null!=b?A(B("ord"))||a.C.remove("ord"):b=[B(C())];var c=[];F(a.C.Ua(),function(a){F(this.C.get(a),function(b){tb(c,a+"="+b)})},a);
tb(c,"ord="+b[0]);xU(a,"ord",b);return c};
AU=function(a){if(null==a)return!1;a=new L(a);var b=a.o;return ua(a.g,"googleads.g.doubleclick.net")&&zU("/pagead/(live/)?ads",b)};
BU=function(a){a=a.b;return null!=a?"bid.g.doubleclick.net"==(new L(a)).g:!1};
CU=function(a){if(null==a)return!1;var b=new wU(a);a=b.g;b=yU(b,b.o);return!ua(a,".g.doubleclick.net")&&ua(a,"doubleclick.net")&&zU("/(ad|pfad)[x|i|j]?/",b)};
DU=function(a){if(null==a)return!1;a=new L(a);var b=a.o;return ua(a.g,"doubleclick.net")&&zU("/gampad/(live/)?ads",b)};
lha=function(a){return AU(a.b)||CU(a.b)||DU(a.b)||BU(a)};
mha=function(a){a=a.b;if(null==a)return null;a=(new L(a)).b;return null!=a.get("ms")?B(a.get("ms")):null};
zU=function(a,b){return A(B(b))?!1:(new RegExp(a)).test(b)};
EU=function(a){return rM(nha,null,a.parentNode.nodeName,a.nodeName)};
FU=function(a){return rM(oha,null,a.parentNode.nodeName,a.nodeName)};
GU=function(a,b){return null!=a?le(Lf(a),function(a){return a.nodeName==b}):[]};
HU=function(a,b){var c=a.getAttribute(b);return null!=c?c.toLowerCase():null};
IU=function(a,b){if(null==a)return null;var c="";F(a.childNodes,function(a){if(4==a.nodeType||3==a.nodeType)c+=a.nodeValue});
c=Pa(c);return b?Ha(c):c};
JU=function(a,b,c,d){null!=a&&F(Lf(a),function(a){if(a.nodeName==b)c.call(d,a);else throw EU(a);})};
KU=function(a){return A(B(a))?window.NaN:Va(B(a))};
LU=function(a,b){if(null!=a){var c=a.split(":");if(3==c.length)return c=new Pr(0,0,0,Va(c[0]),Va(c[1]),Va(c[2])),60*(60*(24*c.b+c.g)+c.o)+c.A}return null!=b?b:-1};
MU=function(a,b){if(!A(B(a)))switch(a.toLowerCase()){case "true":case "1":return!0;case "false":case "0":return!1}return null!=b?b:!1};
PU=function(a,b){if(b)return a;var c;c=null!=a&&/(doubleclick.net|googleadservices.com)/.test(a)?-1!=a.indexOf("/pagead/adview")?NU(a)?0:2:-1!=a.indexOf("/pcs/view")?pha(a)?0:2:-1!=a.indexOf("/pagead/conversion")?NU(a)?1:2:2:2;0==c||1==c?(c=OU(a,"&sdkv="+QM(SM)),SM.aa&&(c=OU(c,"&ssss=gima"))):c=a;return c};
OU=function(a,b){var c=a.indexOf("&adurl=");return-1!=c?Na(a.substr(0,c),b,a.substr(c,a.length)):a+b};
NU=function(a){return Sk(qha,function(b){return Xg(a||"",b)})};
pha=function(a){return Sk(rha,function(b){return Xg(a||"",b)})};
QU=function(a,b){this.b=a;this.g=b};
iT=function(a){return a.g?-1:a.b};
hT=function(a,b){a.g&&(a.g=!1,a.b=a.b*b/100)};
TU=function(a,b,c){var d=new bT;JU(a,"Tracking",function(a){var f=HU(a,"event"),k=PU(IU(a),b);RU(k)&&null!=f&&(null!=c&&(k=c(f,k)),"progress"==f?(a=HU(a,"offset"),a=SU(a),null!=a&&gT(d,f,k,a)):gT(d,f,k))});
return d};
sha=function(a){if(A(B(a)))return null;a=new L(a);if("thismessage"!=a.A||"extensions"!=a.g)return null;a=a.o;if(!ta(a,"/"))return null;a=a.substr(1);return A(B(a))?null:a};
SU=function(a){if(A(B(a)))return null;var b=null;0<a.indexOf("%")?(a=Number(a.substr(0,a.indexOf("%"))),!(0,window.isNaN)(a)&&0<=a&&(b=new QU(a,!0))):(a=LU(a),0<=a&&(b=new QU(a,!1)));return b};
RU=function(a){var b=!0;if(A(B(a)))b=!1;else try{new L(a)}catch(c){b=!1}return b};
UU=function(a,b){kT.call(this);this.g=a;this.o=b};
VU=function(){};
WU=function(a,b){kT.call(this,b);this.g=a};
XU=function(a){kT.call(this);this.g=a};
YU=function(a,b,c,d){this.b=a;this.A=b;this.o=c;this.g=null!=d?d:!1};
ZU=function(a,b){a.b.F=b;F(a.A,function(a){ZU(a,b)},a)};
$U=function(a,b){IT.call(this,"1",tha,"Html",null,"dummy");this.C=0;this.ia=a.length;LT(this,new Cm(this));this.ea=uha(a,b);this.Ga=rf("iv-cards-slider-list",this.ea);if(this.K=rf("iv-cards-slider-prev",this.ea))this.g.O(this.K,"click",this.Aa),bt(this.K,!1);(this.ca=rf("iv-cards-slider-next",this.ea))&&this.g.O(this.ca,"click",this.Ca)};
uha=function(a,b){var c=M(a,function(a){var b=aV(a),c=bV(b);a=a.Tg(0);return{headline:cV(b),description:dV(b),image:eV(fV(b)),action:gV(c),target:hV(a),merchant:iV(c)}}),d=3<a.length;
return kR(fha,{cards:c,fp:c[0].merchant,yr:qR("\u0414\u0430\u043b\u0435\u0435"),Rs:qR("\u041d\u0430\u0437\u0430\u0434"),de:WR(),Jb:b,bG:d})};
jV=function(a){a.Ga.style.left=125*-a.C+"px";a.K&&bt(a.K,0<a.C);a.ca&&bt(a.ca,a.C<a.ia-3)};
nV=function(a){IT.call(this,"1",vha,"Html",null,"website_actions_companion");LT(this,new Cm(this));ZL().b.Z("website_companion_all_elements_clickable");var b=a.Zi(),c=b&&b.g(),d=b&&b.o();a=a.Tg(0);b={headline:b&&kV(b)||"",yq:c&&eV(c)||"",Bi:d&&eV(d)||"",$o:a&&lV(a)||"",descriptionText:b&&mV(b)||"",target:a&&hV(a)||""};this.C=ZL().b.Z("website_companion_all_elements_clickable")?kR(hha,b):kR(gha,b)};
pV=function(a,b,c,d,e,f,k,l,m,n,t,u,y,E,D,W){this.ma=a;this.ga=b;this.N=c;this.Na=d;this.na=(0,window.isNaN)(k)||""==k||0==k?-1:k;this.La=l?sb(l):[];this.J=m?sb(m):[];this.B=n?sb(n):[];this.da=[];this.G=[];this.F=null;this.R=[];this.gb=!0;this.g=this.b=null;this.D=new Ag(u);this.aa=null!=W;this.Ga=(this.ba=null!=y)?E||!1:!1;this.Ja=this.rB?D||!1:!1;this.Oa=B(y);this.Sa=B(W);this.Ha=this.o=null;this.A=new Ofa;this.ea=new hf(0,0);this.K=String(Math.floor(1E9*Math.random()));this.$=this.ca=this.C=null;
this.Aa=C();this.Ca=this.qa=0;this.ia=this.ha=!1;this.H=[];this.L=null;this.ua=!1;F(this.B,function(a){a.F=this},this);
oV(this,t)};
aU=function(a){var b=a.getExtension("AdFormat");if(null!=b&&ua(b.g+"_"+b.o+"_"+b.A,"2_4"))return b.g+"_"+b.o+"_"+b.A;b=qV(a);b=rV(a,sV)?"14":JQ(b,"hideMaster")||JQ(b,"blockAllAds")?"3":a.kb()?tV(a)?"2_3":a.isSkippable()?uV(a)?"2_1":"2_2":"2":"1";return vV(a)+"_"+b};
vV=function(a){return cU(a)?4:rV(a,sV)?14:rV(a,wha)?17:rV(a,xha)?15:wV(a,yha)||wV(a,xV)?1:yV(a)?2:0};
zV=function(a){return null!=a.ga?a.ga:""};
AV=function(a){return null!=a.g?rb(AV(a.g),a.La):a.La};
BV=function(a){return null!=a.g?rb(BV(a.g),a.J):a.J};
zha=function(a){if(!U.b())return[];var b=a.J;a.J=[];return b};
CV=function(a){return null!=a.g?rb(a.G,CV(a.g)):a.G};
qV=function(a){return null!=a.b?a.b.D:{}};
Aha=function(a){var b={};F(a.B,function(a){a=a.D;for(var d in a)b[d]=a[d]});
return b};
DV=function(a){return null!=a.b?a.b.ha:""};
EV=function(a,b){var c=[];F(a.D.Pa(),function(a){tb(c,lT(a,b))});
return c};
dU=function(a,b){a.b=b;a.ea=null!=a.b&&a.b instanceof IT?a.b.rd():new hf(0,0);if(U.b()&&Bha(a)&&ib(CV(a)))Cha(a,a.H);else{var c=ZL().b;U.b()&&ib(CV(a))&&c.Z("enable_website_actions_info_cards")&&c.Z("enable_website_actions_info_cards_companion")&&FV(a,a.H)}};
GV=function(a){return null!=a.ma?a.ma:""};
IV=function(a){if(null==a.g||HV(a.g.N))return[];var b=[GV(a.g)];tb(b,IV(a.g));return b};
Wga=function(a){var b=IV(a).reverse();b.push(GV(a));return b};
JV=function(a){if(null==a.g||HV(a.g.N))return[];var b=[zV(a.g)];tb(b,JV(a.g));return b};
$T=function(a){if(!U.b())return null;if(null!=a.g){var b=$T(a.g);if(null!=b)return b}a=a.getExtension("viral");return null!=a?a.g:null};
Xga=function(a){var b=JV(a).reverse();b.push(zV(a));return b};
HV=function(a){return"YT:ADSENSE"==a||"YT:DOUBLECLICK"==a};
KV=function(a){if(null==a.g)return[a.N];var b=KV(a.g);b.push(a.N);HV(b[0])&&b.shift();return b};
LV=function(a){a=a.getExtension("waterfall");return null!=a&&-1!=a.g?a.g:-1};
MV=function(a){if(-1!=a.na)return a.na;a=a.getExtension("pod");return null!=a&&-1!=a.g?a.g:-1};
NV=function(a){a.ua||(a.ua=!0,a.L.N++,null!=a.g&&NV(a.g))};
OV=function(a){return a.L instanceof sU&&a.L.g()?a.L:null!=a.g?OV(a.g):null};
PV=function(a,b,c,d){a=CV(a);return EQ(new CQ(new hf(b,c),d),a)};
QV=function(a){var b=a.o.ug,c=a.o.tg;if(!b||!c)if(a=a.o.b?Yg(a.o.b,"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 hf(b,c)};
Dha=function(a,b,c){var d=new RV;d.b.type=4;var e=a.getExtension("AdSense"),f=new SV;f.Nf.hide_in_drawer=!0;f.Nf.show_in_endcap=!0;d.xf=function(){return f};
var k=new TV;k.b.headline=b;var l=new UV;l.b.image_url=c;k.g=function(){return l};
k.b.description=e&&e.g||"";d.Zi=function(){return k};
var m=[new VV];m[0].bf.target=WV(a)||"";b=vU();m[0].setTitle(b);d.Tg=function(a){return m[a]};
d.$j=function(){return m.length};
a.R=[d]};
Eha=function(a){var b=le(a,function(a){return XV(a.xf())});
0==b.length&&0<a.length&&ZL().b.Z("enable_ad_video_end_renderers")&&(b=a.slice(1,2));return b};
Cha=function(a,b){var c=le(b,function(a){return YV(a.xf())});
ib(c)&&(c=b);c=new $U(c,WV(a));c.F=a;c.A=!0;ZV(a,new YU(c,[],null,!0))};
Fha=function(a,b){var c=cb(CV(a),function(a){return"Image"==a.xc()}),c=c&&c.b.B||b.g,d=a.getExtension("AdSense"),d=d&&d.g,e=b.authorName,f=b.b,k=vU(),l=WV(a);
if(!d||!f||!l)return null;var m=new RV;m.b.type=4;var n=new SV;n.Nf.hide_in_drawer=!0;n.Nf.show_in_companion=!0;m.xf=function(){return n};
var t=new TV;t.b.headline=e;var u=new UV;u.b.image_url=f;t.g=function(){return u};
var y=new UV;y.b.image_url=c;t.o=function(){return y};
t.b.description=d;m.Zi=function(){return t};
var E=[new VV];E[0].bf.target=l;E[0].setTitle(k);m.Tg=function(a){return E[a]};
m.$j=function(){return E.length};
return[m]};
FV=function(a,b){var c=cb(b,function(a){return 4==a.Fb()&&YV(a.xf())});
c&&(c=new nV(c),c.F=a,c.A=!0,ZV(a,new YU(c,[],null,!0)))};
Gha=function(a){if(!a.o||rV(a,$V)&&!rV(a,["ADSENSE/ADX"]))return[];var b=QV(a);if(0>=b.width||0>=b.height)return[];var c=new zQ;c.creativeType="All";c.o="All";c.A="SelectNearMatch";c.b=40;var d=PV(a,b.width,b.height,c);if(!ib(d))return d;c.g="ResizeSmaller";d=le(CV(a),function(a){return a.b.vh()},a);
return EQ(new CQ(new hf(b.width,b.height),c),d)};
aW=function(a){if(ib(a.R))return!1;a=a.R[0].Fb();var b=ZL().b;return b.Z("enable_ad_video_end_renderers")&&1==a||b.Z("enable_website_actions_info_cards_endcap")&&4==a};
Hha=function(a){var b=null,c=0;F(Gha(a),function(a){var e;e=QV(this);e=!a.b.vh()||a.cb()<=e.width&&a.getHeight()<=e.height?a.bm():GQ(a.bm(),e);e=e.width*e.height;e>c&&(c=e,b=a)},a);
return b};
bW=function(a,b){return b||null==a.g?a.da:rb(a.da,bW(a.g))};
oV=function(a,b){a.da=b?sb(b):[];F(a.da,function(a){tb(this.G,sb(a.b))},a);
F(a.G,function(a){ZU(a,this)},a);
U.b()&&a.kb()&&(a.G=le(a.G,function(a){return 60>=a.getHeight()}))};
cW=function(a,b){return Th(a.B,function(a){return a instanceof sT&&"linear"==b||a instanceof IT&&"nonlinear"==b?!0:!1})};
dW=function(a){return-1!=bU(a)&&0!=bU(a)&&7>=bU(a)};
eW=function(a){var b=a.b;return rV(a,$V)&&null!=b&&b instanceof IT&&(90<a.ea.height||null!=a.o&&a.o.gg)};
fW=function(a,b){if(null==b)return null;var c=b.getExtension("adx");return null!=c?c:fW(a,b.g)};
gW=function(a){var b=fW(a,a.g);if(null!=b){if("skippable"==b.g)return b.o;if("nonskippable"==b.g)return null}var b=null,c=new QU(5,!1),d=Iha(a);"implicit"==d&&(b=c);var e=a.b;null==b&&null!=e&&e instanceof sT&&(b=e.A);null!=b||"explicit"!=d||(b=c);return U.b()&&a.kb()&&null!=b?(0,window.isNaN)(a.o.B)?c:new QU(a.o.B,!1):b};
Iha=function(a){if(null!=cb(a.D.Pa(),function(a){return!ib(lT(a,"skip"))}))return"implicit";
var b=a.D.get("DFP");if(b instanceof WU)switch(b.g){case "InstreamSelect":return"implicit";case "Generic":return"explicit"}a=a.b;return U.b()&&null!=a&&(a=a.wg,null!=a&&!ib(eT(a,"skip")))?"explicit":"none"};
hW=function(a){if(null==a.o)return!1;var b=a.o.b;null!=b&&ua(b,"/PrefetchedAd")&&null!=a.g&&(b=a.g.D.get("LocalRedirect"),b=null!=b?b.Nd():null);(a=AU(b)||DU(b)||CU(b))||(null!=b?(b=(new L(b)).g,a=ua(b,"viral.adsense.net")):a=!1);return a};
uV=function(a){if(null==a.ga||null==a.o)return!1;var b;(b=hW(a)||!1)&&!(b=rV(a,$V)&&!rV(a,["ADSENSE/ADX"]))&&(rV(a,xV)?(b=a.D.get("DFP"),b=null!=b?"InstreamSelect"==b.g:!1):b=!1);if(b||a.g&&a.g.aa&&hW(a.g))return!0;a=wV(a,["ADSENSE/ADX"])||a.g&&yV(a);return U.b()&&!a};
WV=function(a){return null===a.b?null:a.b.Td()};
iW=function(a){return null!==a.F?10:aW(a)?(a=ZL().b.b("ad_video_end_renderer_duration_milliseconds"),(0,window.isNaN)(a)?5:Math.round(a/1E3)):0};
bU=function(a){return(null!=a.b?a.b.H:-1)+iW(a)};
jW=function(a){return null===a.b?null:a.b.tm()};
kW=function(a){return null===a.b?null:a.b.sm()};
cU=function(a){return null!=a.g&&cU(a.g)||rV(a,Jha)};
tV=function(a){var b=jW(a);return rV(a,["402"])||w(b)&&null!==b.match("//s0.2mdn.net/instream/html5/survey/survey.html")};
lW=function(a){return rV(a,$V)&&uV(a)&&!dW(a)&&!A(B(a.C))&&null!==gW(a)&&0<iT(gW(a))};
yV=function(a){return wV(a,$V)||wV(a,["402"])};
mW=function(a){a=a.getExtension("InfoCards");return null!=a?a.g:null};
nW=function(a){a=a.getExtension("InfoCardsTracking");return null!=a?a.g:null};
rV=function(a,b){return null!=a.ga?gb(b,a.N):!1};
wV=function(a,b){for(var c=KV(a),d=c.length-1;0<=d;d--)if("UNKNOWN"!=c[d]){if(gb(b,c[d]))return!0;break}return!1};
ZV=function(a,b){a.G=[b]};
Bha=function(a){return a.kb()&&0<a.H.length&&Sk(a.H,function(a){return 1==a.Fb()})};
oW=function(){id.call(this);this.o=[]};
pW=function(){return new pV("empty-ad","GDFP","GDFP","",0,0,0,[],[],[],[],new Ag)};
qW=function(a){oW.call(this);this.b=a;this.F=null;this.D=!1;this.A=null;this.B=new Cm;Em(this.B,this.b,["companions_success","companion_initialization_failed"],this.FE,this);Em(this.B,this.b,"companion_display_error",this.DC,this);Em(this.B,this.b,["companion_slot_init","companion_click"],this.zC,this);this.b.A?this.D=!0:this.b.initialize()};
sW=function(a){var b=a.A;a.A=null;if(null!=a.b)if(ib(a.o))rW(a,Error("Companion slots not available."));else if(null!=b){var c=Kha(a,b);a.b.Dq(a.o);0<c.length&&b.gb&&a.b.pp(c,b)}else rW(a,Error("Invalid master ad."))};
rW=function(a,b){a.dispatchEvent(new ZS("companion_display_error",b))};
Kha=function(a,b){var c=[],d=[];F(a.o,function(a){KS(a);Th(a.F,function(d){a:{d=PV(b,d.width,d.height);if(!ib(d)&&(d=Lha(d,c),null!=d)){var e=d.o;if(null!=e&&0!=a.G.indexOf(e)){d=!1;break a}e=d.b.J;tb(e,EV(b,"companionClick"));var m=EV(b,"companionImpression"),n=U.b()&&"Html"==d.b.$&&d.g;c.push(d);if(n)JS(a,d.gc(),d.cb(),d.getHeight(),m,e);else{var n=d.dc(),t=d.cb(),u=d.getHeight();d="IFrame"!=d.b.$;a.D=n;a.g=null;a.B=t;a.o=u;a.A=d;a.C=m||[];a.b=e||[]}d=!0;break a}d=!1}return d},this)||d.push(a)},
a);
var e=tW(b);a.C=uW(e,c);a.C||F(a.o,function(a){KS(a)},a);
return d};
uW=function(a,b){if(null==a)return!0;var c=a.b;return"all"==a.g?Mha(c,b):"any"==a.g?Nha(c,b):!0};
tW=function(a){return null==a||null==a.b||(0,window.isNaN)(a.b.b)?null:cb(bW(a,!0),function(a){a=a.b;return ib(a)?!1:(0,window.isNaN)(a[0].b.b)?!1:a[0].b.b==a[0].El()})};
Mha=function(a,b){return Sk(a,function(a){return gb(b,a)})};
Nha=function(a,b){return Th(a,function(a){return gb(b,a)})};
Lha=function(a,b){return cb(a,function(a){return!gb(b,a)})};
vW=function(a){this.b=a};
wW=function(a,b){mc.call(this,"adsManagerLoaded");this.b=a;this.o=b};
xW=function(a,b,c,d){a.b.Qc(new vW(b),c,d);return a.b};
yW=function(a){mc.call(this,a);this.A=[];this.o={};this.B=null;this.b=!0};
zW=function(){this.o=new Ag;this.g=!U.b()&&.01>Math.random();this.A=0;this.b="0";this.B=""};
Oha=function(){var a=zW.getInstance();a.sendMessage("ff",a.A);a.A=0};
AW=function(a,b,c,d){d=d||{};var e=new L("https://ssl.google-analytics.com/collect?v=1&t=timing&tid=UA-68696278-1&utc="+Pha());d.cid=Qha(a);d.utv=b;d.utt=c;d.cd6=QM(SM);b=bM(ZL());A(B(b))||(d.xid=b);Pb(d,function(a,b){lh(e,b,a)},a);
return e.toString()};
Sha=function(a,b){if(null!=b){var c=wa(b),c=Rha.exec(c),d=B((new L(b)).b.get("client"));a.b=c&&2==c.length?c[1]:A(d)?"0":d}else a.b="0"};
Pha=function(){var a=SM.o,b="html5";null!=a&&(Ka(a,"android")?b="android":Ka(a,"ios")&&(b="ios"));return b};
Qha=function(a){A(a.B)&&(a.B="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(a){var c=16*Math.random()|0;return("x"==a?c:c&3|8).toString(16)}));
return a.B};
BW=function(a,b,c){this.C=b;this.b=c;this.B=null;this.o=new Cm(this);this.H=a;this.A=this.g=null;this.F=!1};
Tha=function(a){if(null===a.B)CW(a);else{var b=new L(a.B.b),c=B(b.b.get("vid")),b=B(b.b.get("cmsid")),d=a.b.F,e=a.b.D;a.b.F=c;a.b.D=b;if(A(B(c))||A(B(b)))CW(a);else if(c==d&&b==e)CW(a);else{var f=a.C.wf();QS(f,c,b);Aga(f,a.B);f.$m();a.A=new ce(100);Em(a.o,a.A,"tick",function(){var a;a:{var b=PS(f);if(null!=b)try{a=!1!==b.isAdRequestFinished();break a}catch(c){a=!0;break a}a=!1}a?CW(this):f.$m()},a);
a.A.start()}}};
Uha=function(a){a.g=new ce;Im(a.o,a.g,"tick",function(){CW(this)},a);
de(a.g,a.H);a.g.start()};
CW=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.F=!0;null===a.D||a.D()};
DW=function(){id.call(this);this.b=new Ag;this.g=null;this.G=new Cm(this);H(this,this.G);this.B="";this.A=this.H=this.D=this.o=null;this.F=-1};
FW=function(){null!=EW||(EW=new DW);return EW};
GW=function(a,b){var c={};c.queryId=a;c.viewabilityString=b;FW().dispatchEvent(new OL("measurable_impression",null,c))};
HW=function(a,b){var c={};c.queryId=a;c.viewabilityString=b;FW().dispatchEvent(new OL("viewable_impression",null,c))};
IW=function(a,b,c){var d={};d.queryId=a;d.viewabilityString=b;d.eventName=c;FW().dispatchEvent(new OL("externalActivityEvent",null,d))};
Vha=function(a,b){a.o=b};
Wha=function(a,b){if(a.g)if(a.A){var c=C()-a.F;b(a.A+"_ct"+c)}else{var d=a.b,c=window.setTimeout(function(){b("timeout");F(d.Ua(),function(a){d.get(a)===b&&d.remove(a)})},200);
a.b.set(c,b);var e={};e.osdId=a.B;e.eventId=c;RM.getInstance().b&&(a.C=C(),e.loggingId=Math.random(),UM(RM.getInstance(),43,{step:"sendingMessage",logid:e.loggingId,time:a.C}));a.g.send("activityMonitor","fetchAdTagUrl",e)}else b("")};
Xha=function(a){return ia(a.getBoundingClientRect)&&Qf(mf(a),a)?a.getBoundingClientRect():{left:a.offsetLeft,top:a.offsetTop,width:a.offsetWidth,height:a.offsetHeight}};
Yha=function(a,b,c,d){if(a.g){var e={};e.queryId=c;e.vastEvent=b;a.B&&(e.osdId=a.B);e.isOverlay=null!=a.o;a.o&&(e.overlayBounds=Xha(a.o));if(aM(ZL(),41351021)||aM(ZL(),31061781)){var f={};f.opt_fullscreen=e.isFullscreen;e.isOverlay&&(f.opt_bounds=e.overlayBounds);d(yQ(b,c,f))}else{var k=a.b;b=window.setTimeout(function(){d({viewability:"timeout"});F(k.Ua(),function(a){k.get(a)===d&&k.remove(a)})},200);
a.b.set(b,d);e.eventId=b}a.g.send("activityMonitor","reportVastEvent",e)}else d({})};
JW=function(){};
KW=function(a,b,c){this.g=a;this.b=c;this.o=b};
Zha=function(a){this.o=a};
LW=function(a){this.o=a;this.g=this.b=!1};
$ha=function(a,b,c){this.b=a;this.g=b;this.o=c};
MW=function(){this.b=new Ag};
NW=function(a,b,c){if((0,window.isNaN)(c)||!ha(c))throw Error("Incorrect time offset.");var d=[];Cg(a.b,c)&&(d=a.b.get(c,[]));F(b,function(a){null!=a&&nb(d,a)});
a.b.set(c,d)};
OW=function(a,b){this.b=a;this.g=b};
bia=function(a){var b=new MW;F(Lf(Nf(a.b)),function(a){switch(a.nodeName){case "Preroll":a=PW(this,a);NW(b,a,0);break;case "Midroll":var d=HU(a,"timeOffset"),e=LU(d);if(-1==e)throw rM(QW,null,"timeOffset",B(d));a=PW(this,a);NW(b,a,e);break;case "Postroll":a=PW(this,a);NW(b,a,-1);break;default:throw rM(RW,null,a.parentNode.nodeName,a.nodeName);}},a);
if(0==b.b.Ua().length)throw rM(aia);return b};
PW=function(a,b){var c=[];F(Lf(b),function(a){switch(a.nodeName){case "Ad":var b=B(IU(a));if(!A(b)){a=HU(a,"bumper");var f=this.g.clone();f.b=b;b=new LW(f);b.b=null!=a;b.g="always"==a;nb(c,b)}break;default:throw rM(RW,null,a.parentNode.nodeName,a.nodeName);}},a);
return c};
SW=function(a,b,c){kT.call(this);this.g=a;this.o=b;this.A=c};
TW=function(){};
UW=function(){this.B=null;this.C="http://www.google.com/adsense/support";this.D=0;this.b=15;this.A=5;this.o=3;this.g=!1};
cia=function(a,b){a.b=b};
VW=function(a,b,c,d,e,f,k,l,m,n,t){kT.call(this,n,t);this.B=a;this.C=b;this.A=c;this.D=m;this.F=k;this.o=f;this.g=e};
WW=function(){};
eia=function(a,b){var c;F(Lf(b),function(a){switch(a.nodeName){case "context":c="default"==a.getAttribute("data")?new UW:null;break;case "params":null!=c&&dia(this,c,a)}},a);
return c};
dia=function(a,b,c){F(Lf(c),function(a){var c=a.attributes[0].value;switch(a.nodeName){case "attribution_url":b.C=c;break;case "attribution_text":b.B=c;break;case "signals":b.D=(0,window.parseInt)(c,10);break;case "audio_muted_on_start":b.g=MU(c,!1)}},a)};
XW=function(){};
YW=function(){};
ZW=function(){};
$W=function(){};
aX=function(a){this.b=a||{}};
RV=function(a){this.b=a||{}};
SV=function(a){this.Nf=a||{}};
VV=function(a){this.bf=a||{}};
bX=function(a){this.b=a||{}};
fia=function(a){this.b=a||{}};
gia=function(a){this.b=a||{}};
TV=function(a){this.b=a||{}};
UV=function(a){this.b=a||{}};
cX=function(a,b){return new RV(wT(a.b,"card")[b])};
hia=function(a){a=a.b.teaser_text;return null!=a?a:""};
aV=function(a){return new fia(a.b.product_card)};
XV=function(a){a=a.Nf.show_in_endcap;return null!=a?!!a:!1};
YV=function(a){a=a.Nf.show_in_companion;return null!=a?!!a:!1};
iX=function(){if(!dX){var a={};dX={Xb:a};a.type=eX;a.id=fX;a.link_url=fX;a.title=fX;a.image=BT(gX());var b=hX();a.event=AT(b);a.target=fX}return dX};
jX=function(a){a=a.bf.link_url;return null!=a?a:""};
lV=function(a){a=a.bf.title;return null!=a?a:""};
hV=function(a){a=a.bf.target;return null!=a?a:""};
hX=function(){if(!kX){var a={};kX={Xb:a};a.type=eX;a.base_url=fX}return kX};
lX=function(a){a=a.b.base_url;return null!=a?a:""};
cV=function(a){a=a.b.headline;return null!=a?a:""};
dV=function(a){a=a.b.description;return null!=a?a:""};
fV=function(a){return new UV(a.b.image)};
bV=function(a){return new gia(wT(a.b,"offer")[0])};
iV=function(a){a=a.b.merchant;return null!=a?a:""};
gV=function(a){a=a.b.price;return null!=a?a:""};
mX=function(a){a=a.b.rating;return null!=a?a:0};
kV=function(a){a=a.b.headline;return null!=a?a:""};
mV=function(a){a=a.b.description;return null!=a?a:""};
gX=function(){if(!nX){var a={};nX={Xb:a};a.image_url=fX;a.thumbnail_url=fX;a.image_height=oX;a.image_width=oX}return nX};
eV=function(a){a=a.b.image_url;return null!=a?a:""};
pX=function(a,b,c){kT.call(this,c);this.g=a;this.o=b||null};
qX=function(a){this.b=a};
sX=function(a,b,c){for(var d={},e=0;e<b.attributes.length;e++){var f=b.attributes[e],k=c.Xb[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]=rX[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.Xb[f.nodeName],l=sX(a,f,k.Ma);3==k.label?(d[f.nodeName]||(d[f.nodeName]=[]),d[f.nodeName].push(l)):d[f.nodeName]=l}return d};
iia=function(a,b){var c=new bT;F(Lf(b),function(a){"CustomTracking"==a.nodeName&&null!=Lf(a)&&(c=TU(a,!1,x(function(a,b){return tX(a,b)},this)))},a);
return c};
tX=function(a,b){return ku(b,{ACTTYPE:{toString:function(){switch(a){case "video_card_endcap_action":return"action_headline_click";default:return""}}}})};
uX=function(a,b){kT.call(this);this.o=a;this.g=B(b)};
vX=function(a,b){this.logger=null;this.o=b;this.b={};this.g=[];this.b.CustomTracking=TU;this.b.UI=this.B};
wX=function(a,b){if(null==b)return null;var c={};F(Lf(b),function(a){c[a.nodeName]=null!=this.b[a.nodeName]?this.b[a.nodeName].call(this,a):null},a);
return null!=c.UI?c:null};
xX=function(a,b,c,d,e,f){kT.call(this,f);this.o=a;this.B=b;this.C=c;this.A=d;this.g=e};
yX=function(a){return null!=a.g?a.g.length:0};
zX=function(){vX.call(this,0,"mute_");this.b.SurveyOptions=this.A};
AX=function(a,b,c,d){kT.call(this);this.A=a;this.o=b;this.B=c;this.g=d};
BX=function(){};
CX=function(){kT.call(this)};
DX=function(){};
jia=function(a,b){F(Lf(b),function(a){a.nodeName==this.b.Xx&&IU(a)},a)};
EX=function(a,b,c,d){kT.call(this);this.o=a;this.A=b;this.B=c;this.g=d};
FX=function(){};
GX=function(a){kT.call(this);this.g=a};
HX=function(){};
IX=function(a,b,c,d,e,f,k,l,m){kT.call(this,e);this.A=a;this.B=b;this.C=c;this.o=d;this.g=f||null;this.G=k||null;this.F=l||null;this.D=m||null};
JX=function(){vX.call(this,0,"why_this_ad_");this.g.push("targeting_reason")};
KX=function(a,b){return null!=a?Sk(b,function(b){return b in a}):!1};
kia=function(a,b){return null!=a?Th(b,function(b){return b in a}):!1};
LX=function(){};
MX=function(){kT.call(this)};
NX=function(){};
OX=function(){};
lia=function(a,b){this.b=a;this.g=b};
PX=function(a,b,c,d){IT.call(this,a,b,"Static",c,d);this.vp=!1};
QX=function(a,b,c,d){IT.call(this,a,b,"Html",c,d)};
RX=function(a,b,c,d){IT.call(this,a,b,"Static",c,d)};
SX=function(a,b,c,d,e){IT.call(this,a,b,c,d,e)};
UX=function(a,b,c){if(ib(c))return new IT(a,b,"",null,"");var d=TX(c);c=d.g;var e=d.b,d=d.o;switch(c){case "Html":return new QX(a,b,e,d);case "Static":switch(GT[e]){case "Image":return new RX(a,b,e,d);case "Flash":return new PX(a,b,e,d);case "Text":return new PT(a,b)}}return new SX(a,b,c,e,d)};
TX=function(a){var b=cb(a,function(a){return"Static"==a.g&&"Flash"==GT[a.b]}),c=cb(a,function(a){return"IFrame"==a.g}),d=cb(a,function(a){return"Html"==a.g}),e=cb(a,function(a){return"Static"==a.g&&"Image"==GT[a.b]}),f=cb(a,function(a){return"Static"==a.g&&"Text"==GT[a.b]});
return FQ&&null!=b?b:null!=c?c:null!=d?d:null!=e?e:null!=f?f:a[0]};
mia=function(a,b,c,d,e,f){var k=TX(f),l=UX(a.id,a.size,[k]);l.A=!0;l.G=a.apiFramework;l.aa=b;l.J=c;l.b=d;e&&(l.wg=e);pb(f,k);var m=[];F(f,function(f){f=UX(a.id,a.size,[f]);f.A=!0;f.G=a.apiFramework;f.aa=b;f.J=c;f.b=d;e&&(f.wg=e);m.push(new YU(f,[],a.adSlotId))});
return new YU(l,m,a.adSlotId)};
VX=function(a,b,c){this.g=a;this.b=b;this.o=c};
WX=function(a,b,c,d,e,f,k){this.o=a;this.G=b;this.B=c;this.C=d;this.g=e;this.D=f;this.F=k;this.b=this.o.Kd()};
nia=function(a){ct(a.b)||(bt(a.b,!0),F(a.F,function(a){kM(a)}))};
oia=function(a,b,c,d,e,f,k,l,m,n){b=UX("icon"+a,b,n);b.G=k;b.aa=l.iconClickThrough;return new WX(b,a,c,d,e,f,m)};
XX=function(a){this.A=a;this.logger=null};
YX=function(a){if(null==a)return!1;a=Nf(a);return null!=a&&"VAST"==a.nodeName};
$X=function(a,b){var c=[],d=null;try{var e=As(a),f=Nf(e);null!=f&&"CompanionAds"==f.nodeName&&(d=ZX(XX.prototype,f,b))}catch(k){}null!=d&&c.push(d);return c};
aY=function(a){if(null==a)return 0;a=(0,window.parseInt)(a.getAttribute("version"),10);return ha(a)&&!(0,window.isNaN)(a)?a:0};
qia=function(a){var b=[],c=Nf(a.A),d=aY(c);JU(c,a.b.iw,function(a){var c;c=bY(a);if(null==c)throw EU(a);var k=a.getAttribute(this.g.oi);a=Number(a.getAttribute(this.g.No));c=pia(this,c,k||null,a||0);null!=c&&(c.Ca=d,b.push(c))},a);
return b};
bY=function(a){var b=null;F(Lf(a),function(a){switch(a.nodeName){case "InLine":case "Wrapper":b=a;break;default:throw EU(a);}});
return b};
pia=function(a,b,c,d){var e,f,k=[],l=[],m=[],n=[],t=new Ag,u,y=b.nodeName==a.b.gy,E=y,D=y,W;F(Lf(b),function(a){switch(a.nodeName){case this.b.ay:if(y){if(null!=u)throw FU(a);u=IU(a);W=sha(u);E=MU(b.getAttribute(this.g.ow),E);D=MU(b.getAttribute(this.g.Tw),D)}else throw EU(a);break;case this.b.kw:e=IU(a);break;case this.b.lw:f=IU(a);break;case this.b.Jw:IU(a);break;case this.b.Ux:IU(a);break;case this.b.ri:a=IU(a);RU(a)&&k.push(PU(a));break;case this.b.ERROR:a=IU(a);l.push(PU(a));break;case this.b.Dw:a=
ria(this,a);m=a.creatives;n=a.Oy;break;case this.b.Qw:t=sia(this,a,W)}},a);
return new pV(B(c),e,tia(e),f,0,0,d,l,k,m,n,t,u,E,D,uia(t))};
uia=function(a){var b=null;a=a.get("AdSense");null!=a&&(a=lT(a,"vast2tracking"),null!=a&&!ib(a)&&(b=a[0]));return b};
tia=function(a){if(A(B(a)))return"UNKNOWN";a=a.toUpperCase();switch(a){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":return a;default:return"UNKNOWN"}};
via=function(a){if(A(B(a)))return"none";switch(a){case "all":case "any":case "none":return a;default:return"none"}};
sia=function(a,b,c){var d=new Ag;try{var e=GU(b,a.b.Pw);F(e,function(a){var b=a.getAttribute(this.g.Wo);null!=b&&(b=b.toLowerCase());switch(b){case "geo":a=(new NX).parse(a);break;case "pod":a=(new LX).parse(a);break;case "waterfall":a=(new OX).parse(a);break;case "dart":a=(new YW).parse(a);break;case "dfp":b="DFP";a=(new ZW).parse(a);break;case "adsense":b="AdSense";a=(new XW).parse(a);break;case "textad":b="TextAd";a=(new FX).parse(a);break;case "templatead":b="TemplateAd";a=(new DX).parse(a);break;
case "infocards":var b="InfoCards",e=new qX(!0);a=e.parse(a);break;case "infocardstracking":b="InfoCardsTracking";e=new qX(!1);a=e.parse(a);break;case c:case "prefetchedad":b="LocalRedirect";if(null!=a){var e=null,m=GU(a,"AdXml");1==m.length&&(e='<?xml version="1.0" encoding="UTF-8"?>'+Bs(Nf(m[0])));a=GU(a,"VASTAdTagURI");m=null;1==a.length&&(m=a[0].textContent);a=new uX(e,m)}else a=null;break;case "viral":b="viral";a=(new HX).parse(a);break;case "adx":b="adx";a=(new VU).parse(a);break;case "why_this_ad":b=
"why_this_ad";a=(new JX).parse(a);break;case "mute":b="mute";a=(new zX).parse(a);break;case "sodar":a=(new BX).parse(a);break;case "adformat":b="AdFormat";a=(new TW).parse(a);break;default:e=new $W,b="generic",a=e.parse(a)}null!=a&&(e=d.get(b),null!=e?"generic"==b&&(Dga(e,a.b),d.set(b,e)):d.set(b,a))},a)}catch(f){if(!ia(f.jb)||1105==f.jb())throw f;
}return d};
ria=function(a,b){var c=[],d=[];JU(b,a.b.Cw,function(a){var b=a.getAttribute(this.g.No),k;A(B(b))||(k=(0,window.parseFloat)(b));var l=a.getAttribute(this.g.oi),m=!1;F(Lf(a),function(a){switch(a.nodeName){case this.b.LINEAR:if(m)throw FU(a);a=wia(this,a,(0,window.isNaN)(k)?0:k,l||null);tb(c,a);m=!0;break;case this.b.yw:if(m)throw FU(a);a=ZX(this,a,(0,window.isNaN)(k)?void 0:k);tb(d,a);m=!0;break;case this.b.Bx:if(m)throw FU(a);a=xia(this,a,(0,window.isNaN)(k)?0:k,l||null);tb(c,a);m=!0}},this)},a);
return{creatives:c,Oy:d}};
xia=function(a,b,c,d){var e=[],f=new bT;F(Lf(b),function(a){switch(a.nodeName){case this.b.Ax:a=yia(this,a,c,d);null!=a&&e.push(a);break;case this.b.Jk:f=TU(a);break;default:throw EU(a);}},a);
0!=e.length||f.isEmpty()||(a=new IT(null,new hf(-1,-1),"",null,""),a.b=c,a.ma=d,e.push(a));F(e,function(a){f&&(a.wg=f)});
return e};
cY=function(a,b){var c={};c.id=b.getAttribute(a.g.oi);c.adSlotId=b.getAttribute(a.g.jw);c.apiFramework=b.getAttribute(a.g.ii);var d=Va(b.getAttribute(a.g.ti)),e=Va(b.getAttribute(a.g.mi));c.size=new hf(d,e);d=b.getAttribute(a.g.Ow);e=b.getAttribute(a.g.Nw);A(B(d))||A(B(e))||(c.QQ=new hf(Va(d),Va(e)));return c};
yia=function(a,b,c,d){var e=cY(a,b);b.getAttribute(a.g.ii);b.getAttribute(a.g.Nx);b.getAttribute(a.g.lx);var f=b.getAttribute(a.g.xx),f=LU(f,-1),k=[];new Ag;var l={},m="",n,t=[];F(Lf(b),function(a){switch(a.nodeName){case this.b.Dx:t.push(IU(a));break;case this.b.Cx:n=IU(a);break;case this.b.wk:l=dY(a);m=B(IU(a));break;case this.b.pi:case this.b.si:case this.b.ni:a=eY(this,a);null!=a&&k.push(a);break;default:throw EU(a);}},a);
a=UX(e.id,e.size,k);oT(a,m,l);a.G=e.apiFramework;a.aa=n;a.J=t;a.qa=f;a.b=c;a.ma=d;return a};
eY=function(a,b){var c=HU(b,a.g.Ew);if(null!=c&&"text/javascript"==c)return null;var d;a:switch(d=b.nodeName,d){case a.b.si:d="Static";break a;case a.b.pi:d="IFrame";break a;case a.b.ni:d="Html";break a;default:throw rM(zia,null,d);}var e=IU(b);null!=e||(e="");return new VX(d,c,e)};
ZX=function(a,b,c){var d=[],e=via(HU(b,a.g.Jx));JU(b,a.b.xw,function(a){a=Aia(this,a,c);null!=a&&d.push(a)},a);
return new lia(d,e)};
Aia=function(a,b,c){var d=cY(a,b),e=[],f=new bT,k,l=[];F(Lf(b),function(a){switch(a.nodeName){case this.b.Aw:l.push(IU(a));break;case this.b.Jk:f=TU(a,!0);break;case this.b.zw:k=IU(a);break;case this.b.pw:IU(a);break;case this.b.wk:IU(a);break;case this.b.pi:case this.b.si:case this.b.ni:a=eY(this,a);null!=a&&e.push(a);break;default:throw EU(a);}},a);
return ib(e)?null:mia(d,k,l,c,f,e)};
wia=function(a,b,c,d){var e=new bT,f={},k="",l=[],m,n=new Ag,t=[],u=[],y,E=SU(HU(b,a.g.Px));F(Lf(b),function(a){switch(a.nodeName){case this.b.Ww:u=Bia(this,a);break;case this.b.wk:f=dY(a);k=B(IU(a));break;case this.b.zk:y=LU(IU(a),0);break;case this.b.Jk:e=TU(a);break;case this.b.rx:t=Cia(this,a);break;case this.b.by:a=Dia(this,a);n=a.customClicks;m=a.clickThrough;l=a.clickTrackingUrls;break;default:throw EU(a);}},a);
F(l,function(a){gT(e,"click",a)});
a=new sT(y,m,n,t,E,u);oT(a,k,f);a.b=c;a.ma=d;e&&(a.wg=e);return a};
Dia=function(a,b){var c,d=[],e=new Ag;F(Lf(b),function(a){switch(a.nodeName){case this.b.vw:c=IU(a);break;case this.b.ww:a=IU(a);d.push(a);break;case this.b.Hw:var b=HU(a,this.g.oi);null!=b||(b="");var l=e.get(b,[]);l.push(IU(a));e.set(b,l);break;default:throw EU(a);}},a);
return{clickThrough:c,clickTrackingUrls:d,customClicks:e}};
Cia=function(a,b){var c=[];JU(b,a.b.qx,function(a){var b=HU(a,this.g.Iw),f=HU(a,this.g.Wo),k=HU(a,this.g.ey),l=Va(a.getAttribute(this.g.ti)),m=Va(a.getAttribute(this.g.mi)),n=a.getAttribute(this.g.ii),t=IU(a),u=KU(a.getAttribute(this.g.mo)),y=KU(a.getAttribute(this.g.wx));a=KU(a.getAttribute(this.g.ox));b=new rT(b,f,k,u,y,a,l,m,t,n);c.push(b)},a);
return c};
Bia=function(a,b){var c=[];JU(b,a.b.Vw,function(a){a=Eia(this,a);null!=a&&c.push(a)},a);
return c};
Eia=function(a,b){var c=b.getAttribute(a.g.Fx),d=HU(b,a.g.iy),e=HU(b,a.g.ky),f=Va(b.getAttribute(a.g.ti)),k=Va(b.getAttribute(a.g.mi)),f=new hf(f,k),k=b.getAttribute(a.g.ii),l=SU(HU(b,a.g.Ex)),m=b.getAttribute(a.g.zk),m=LU(m,-1),n=[],t=[],u={};F(Lf(b),function(a){switch(a.nodeName){case this.b.$w:t.push(IU(a));break;case this.b.Xw:u=Fia(this,a);break;case this.b.pi:case this.b.si:case this.b.ni:a=eY(this,a);null!=a&&n.push(a);break;default:throw EU(a);}},a);
return ib(n)?null:oia(c,f,d,e,m,l,k,u,t,n)};
Fia=function(a,b){var c=[],d;F(Lf(b),function(a){switch(a.nodeName){case this.b.Yw:d=IU(a);break;case this.b.Zw:c.push(IU(a));break;default:throw EU(a);}},a);
return{iconClickThrough:d,SQ:c}};
dY=function(a){a=IU(a);return null!=a?Nfa(a):{}};
fY=function(a,b){this.g=a;this.b=b};
Gia=function(a){var b=[],c=GU(a,"vmap:Extensions")[0];if(c){var d;JU(c,"vmap:Extension",function(a){"vmap:YTBreakTime"==c.getAttribute("type")&&(d=a)});
if(d&&(b=GU(d,"yt:BreakTime"),!ib(b)))return M(b,function(a){return HU(a,"timeOffset")})}return[HU(a,"timeOffset")]};
Jia=function(a){var b=new MW;F(Lf(Nf(a.g)),function(a){if("vmap:AdBreak"==a.nodeName){var d=Hia(this,a);a=Gia(a);F(a,function(a,c){var k=LU(a);0<c&&(d=Iia(this,d));if("start"==a||0==k)NW(b,d,0);else if("end"==a)NW(b,d,-1);else{if(-1==k)throw rM(QW,null,"timeOffset",B(a));NW(b,d,k)}},this)}},a);
if(0==b.b.Ua().length)throw rM(jU);return b};
Iia=function(a,b){return M(b,function(a){var b=new LW(a.o.clone());b.b=a.b;b.g=a.g;return b},a)};
Kia=function(a){a=HU(a,"timeOffset");var b=LU(a);return"start"==a||0==b?0:"end"==a||-1==b?-1:1E3*b};
Lia=function(a){return(a=cb(Lf(a),function(a){return"vmap:VASTData"==a.nodeName||"vmap:VASTAdData"==a.nodeName}))?cb(Lf(a),function(a){return"VAST"==a.nodeName}):null};
Hia=function(a,b){var c=[],d="",e=null,f=!1,k=!1;F(Lf(b),function(a){switch(a.nodeName){case "vmap:AdSource":if(!e){try{e=Cs(a,"vmap:VASTData/VAST")||Cs(a,"vmap:VASTAdData/VAST")}catch(b){}e||(e=Lia(a));if(!e){var c=GU(a,"vmap:AdTagURI"),l="";c.length&&(l=B(IU(c[0])));if(A(l))throw rM(Mia,null,a.parentNode.nodeName,a.nodeName);d=l}}break;case "vmap:Extensions":a=GU(a,"vmap:Extension"),a=Nia(this,a),null!=a&&(f=!0,a=HU(a,"suppress_bumper"),k=null!=a?"true"==a:!0)}},a);
var l=null;e?l=Oia(a,e):A(d)||(l=Pia(a,d));l&&(U.b()&&(l.Qh=Kia(b)),l=new LW(l),l.b=f,l.g=f&&!k,nb(c,l));return c};
Nia=function(a,b){return cb(b,function(a){return"bumper"==HU(a,"type")},a)};
Pia=function(a,b){var c=a.b.clone();A(c.g)||(c.g="");c.b=b;return c};
Oia=function(a,b){var c=a.b.clone();c.g=Bs(b);c.b="";return c};
Ria=function(a,b){if(null!=a){var c;null!=a?(c=Nf(a),c=null!=c&&"Playlist"==c.nodeName):c=!1;if(c)return zW.getInstance().g=!1,new OW(a,b);null!=a?(c=Nf(a),c=null!=c&&"vmap:VMAP"==c.nodeName):c=!1;if(c)return zW.getInstance().g=!1,new fY(a,b);if(YX(a)){if(!YX(a))throw rM(RW);c=Nf(a);var d=aY(c);if(1>d||3<d)throw rM(Qia);c=GU(c,"Ad");if(ib(c))throw rM(gY);c=bY(c[0]);if(null==c)throw rM(hY);if(1!=GU(c,"AdSystem").length)throw rM(hY);return new XX(a)}}return null};
iY=function(){};
jY=function(a,b){this.g=a;this.o=b};
kY=function(a,b){"auto"!=a.g.Mf&&"click"!=a.g.Mf||b.set("vpa",a.g.Mf)};
lY=function(a){A("")||(a.set("mpt",""),A("")||a.set("mpv",""))};
mY=function(a,b){var c=a.o.o,d=a.o.g;null!=c&&b.set("js","ima-"+c);null!=d&&b.set("an",d);c=a.g.G;null!=c&&b.set("mv",c+"."+(a.g.F||""))};
nY=function(a,b){b.set("osd",2);-1!=a.o.J&&b.set("frm",a.o.J);var c=a.o.ba;null!=c&&b.set("ms",c);b.set("sdr",1)};
oY=function(a){return U.g?"h.3.0.0":null!=a.o?QM(a.o):null};
pY=function(){this.b=["video"]};
qY=function(a){switch(a){case 1:return"endslate";default:return"fullslot"}};
rY=function(a,b,c,d){if(null!=d){var e=PM(b);c=null!=c.Yj?c.Yj:LM(e,d);1!=c&&a.set("ad_block",c);null==b.K&&(b.K=new MM);c=b.K;var f=d!=b.L;(e=0==e.b%100||f)||(e=36E5<(null===c.b?0:(new Sr).getTime()-c.b));e&&c.reset();b.L=d;b=c.g;null!==b&&a.set("tok",b)}};
sY=function(a,b){a.set("sz",Math.max(null!=b.ug?b.ug:0,null!=b.od?b.od:0)+"x"+Math.max(null!=b.tg?b.tg:0,null!=b.nd?b.nd:0))};
uY=function(a){var b={};UN(b);for(var c in b)a.set(c,b[c]);a.set("dt",tY)};
vY=function(a){if(a.Eb&&a.Eb.LACT){var b=a.Eb.LACT.toString();if(b)return Ya(b)}return a.D};
wY=function(a){return U.b()&&a.Eb&&a.Eb.VIS?a.Eb.VIS.toString():null};
BY=function(a,b,c,d){var e=new Ag;e.set("ad_type",c.adType);FQ&&e.set("flash",jO);sY(e,a);xY(c)&&(e.set("ea","0"),null!=a.od&&null!=a.nd&&e.set("image_size",yY(c,a.od,a.nd,a.gg)));zY(e,d);e.set("lact",vY(a));(d=wY(a))&&e.set("yt_vis",d);e.set("videoad_start_delay",a.Qh);uY(e);AY(a,e,!0);ZL().b.Z("no_ad_block_param")||rY(e,b,c,a.A);return e};
AY=function(a,b,c){A(B(a.referrer))||(a=a.referrer,c&&(a=va(a)),CY("ref",a,b))};
FY=function(a,b,c){a=null!=b?b.split("_"):a;F(a,function(a){if(!Vb(Sia,a))throw rM(AQ,null,"ad_type",String(b));});
if(c){var d=[];F(a,function(a){gb(DY,a)||d.push(a)});
a=d}if(!JM()){d=[];F(a,function(a){"video"==a?d.push("standardvideo"):"skippablevideo"!=a&&d.push(a)});
if(0==d.length)throw rM(EY,null,"skippablevideo");a=d}return a};
GY=function(a,b){return null!=b?b.split(/[+, ]/):a};
yY=function(a,b,c,d){a.g&&(c=Math.min(c,90));var e=0,f=0;a=!U.b();d=d&&a;a&&(e=15,f=65);var k=[];F(Tia,function(a){var m=b-e>=a.width&&c-f>=a.height,n=!d&&!m&&90>=a.height&&b>=a.width&&c>=a.height;(m||n)&&k.push(a.width+"x"+a.height)});
return k.join(",")};
HY=function(a,b){return null==b||(0,window.isNaN)(b)?a:Number(b)};
IY=function(a,b){return null!=b?String(b):null!=a?a:null};
JY=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};
KY=function(a,b,c){return null!=b&&Vb(c,b)?b:a};
xY=function(a){return Th(DY,function(b){return gb(a.b,b)})};
zY=function(a,b){FQ?a.set("ca_type","flash"):a.set("ca_type","image");if(null!=b){var c=b.o;null!=c&&0<c.length&&(c=c[0].F,0<c.length&&(a.set("ca_w",c[0].width),a.set("ca_h",c[0].height)))}};
CY=function(a,b,c){null!=b&&c.set(a,b)};
MY=function(a,b,c){jY.call(this,a,b);var d=new pY;a=(new L(a.b)).b;d.qm=KY(d.qm,a.get("cust_age"),Uia);d.wi=KY(d.wi,a.get("adsafe"),LY);d.b=FY(d.b,a.get("ad_type"));d.adType=d.b.join("_");d.Lk=HY(d.Lk,a.get("videoad_start_delay"));d.Mk=IY(d.Mk,a.get("slotname"));d.pm=JY(d.pm,a.get("adtest"))||"on"==a.get("adtest");d.Qk=JY(d.Qk,a.get("scs"));d.Rk=IY(d.Rk,a.get("alternate_ad_url"));d.channels=GY(d.channels,a.get("channel"));d.nl=HY(d.nl,a.get("cpm"));d.kh=IY(d.kh,a.get("description_url"));d.experimentIds=
IY(d.experimentIds,a.get("eid"));d.gender=KY(d.gender,a.get("cust_gender"),Via);d.g=JY(d.g,a.get("overlay"));d.host=IY(d.host,a.get("host"));d.o=GY(d.o,a.get("h_ch"));d.hostTierId=HY(d.hostTierId,a.get("ht_id"));d.isLiveStream=JY(d.isLiveStream,a.get("lsv"));var e;null!=this.g.language?e=this.g.language:(e=aa.navigator||null,e=RL(e.language||e.userLanguage||e.browserLanguage||e.systemLanguage||""));var f=null!=a.get("hl")?String(a.get("hl")):null;e=IY(f,e);var k;null!=e&&!A(B(e))&&(k=RL(e));d.language=
IY(d.language,k);d.Vq=HY(d.Vq,a.get("linearAdSlotWidth"));d.Uq=HY(d.Uq,a.get("linearAdSlotHeight"));d.tj=HY(d.tj,a.get("max_ad_duration"));d.Gm=HY(d.Gm,a.get("min_ad_duration"));d.uj=HY(d.uj,a.get("sdmax"));d.Xq=HY(d.Xq,a.get("nonLinearAdSlotWidth"));d.Wq=HY(d.Wq,a.get("nonLinearAdSlotHeight"));d.Eg=IY(d.Eg,a.get("client"));d.Dj=IY(d.Dj,a.get("t_pyv"));k=a.get("sdki");d.Jj=HY(d.Jj,w(k)?(0,window.parseInt)(k,16):k);d.tagForChildDirectedTreatment=HY(d.tagForChildDirectedTreatment,a.get("tfcd"));d.targeting=
KY(d.targeting,a.get("targeting"),Wia);d.lj=HY(d.lj,a.get("video_format"));d.yn=HY(d.yn,a.get("video_cpm"));d.rm=IY(d.rm,a.get("loeid"));d.En=IY(d.En,a.get("yt_pt"));d.Bn=IY(d.Bn,a.get("ytdevice"));d.Cn=IY(d.Cn,a.get("ytdevicever"));d.Dn=IY(d.Dn,a.get("dbp"));d.A=IY(d.A,a.get("ms"));d.adBlock=HY(d.adBlock,a.get("adBlock"));d.url=IY(d.url,a.get("url"));d.Yk=IY(d.Yk,a.get("avo"));d.xn=IY(d.xn,a.get("v_p"));ZL().b.Z("no_ad_block_param")||(d.Yj=HY(d.Yj,a.get("ad_block")));this.b=d;this.G=b;this.H=c;A(B(this.b.experimentIds))||
(b=this.b.experimentIds.split(","),XL(ZL(),b))};
Yia=function(a){return Th(Xia,function(a){return gb(this.b.b,a)},a)};
NY=function(a){return U.b()?1:gb(a.b.adType.split("_"),"text")?3:1};
Zia=function(a){a=a.b.channels?a.b.channels:[];wb(a);a=ub(a,0,30);return a.join("+")};
OY=function(a,b){jY.call(this,a,b)};
PY=function(a,b){jY.call(this,a,b)};
QY=function(a){jY.call(this,a,null)};
RY=function(a){jY.call(this,a,null)};
SY=function(a,b){jY.call(this,a,b);U.b()&&ZL().b.Z("doubleclick_gpt_retagging")&&(this.o.B=NM())};
TY=function(a){if(A(B(a)))return!1;a=new L(a);if(!a.A||"http"!=a.A&&"https"!=a.A)return!1;a=a.g;return-1==a.indexOf(".")||a.match(/^[\.0-9]*$/)?!1:!0};
$ia=function(a){var b=[];F(a,function(a){0<a.length&&b.push(M(a,function(a){return a.width+"x"+a.height}).join("|"))});
return b.join(",")};
UY=function(a,b,c){SY.call(this,a,b);var d=ZL();this.G=A(B(a.o));a=new pY;a.b=FY(a.b,this.g.o);a.adType=a.b.join("_");a.experimentIds=IY(a.experimentIds,this.g.C);this.b=a;this.H=b;this.D=c;A(B(this.b.experimentIds))||XL(d,this.b.experimentIds.split(","))};
aja=function(a){var b=BY(a.g,a.H,a.b,a.D);b.set("sdkv",oY(a));b.set("sdki",a.C().toString(16));return b};
bja=function(a,b){var c=aja(a),d=M(c.Ua(),function(a){var b=c.get(a);return a+"="+(null!=b?b:"")});
lh(b,"afvparams",d.join("&"))};
VY=function(a,b,c){jY.call(this,a,b);ZL();this.G=A(B(a.o));a=new pY;a.b=FY(a.b,this.g.o);a.adType=a.b.join("_");a.experimentIds=IY(a.experimentIds,this.g.C);this.b=a;this.H=b;this.D=c;A(B(this.b.experimentIds))||(c=this.b.experimentIds.split(","),b=ZL(),XL(b,c))};
cja=function(a){var b=BY(a.g,a.H,a.b,a.D);b.set("sdkv",oY(a));return b};
dja=function(a,b){var c=cja(a),d=M(c.Ua(),function(a){var b=c.get(a);return a+"="+(null!=b?b:"")});
xU(b,"afvparams",[va(d.join("&"))])};
WY=function(a,b){jY.call(this,a,b)};
XY=function(a,b){var c=new L(ku(a.g.b,eja(a,b)));bh(c,"https");return c};
eja=function(a,b){if(null==a.g||null==a.g.Eb)return{};var c={},d=a.g.Eb;F(fja,function(a){a in d&&(c[a]=d[a])});
if(!ZL().b.Z("no_ad_block_param")){var e=gja(a,d.DESCRIPTION_URL);e&&(c.AD_BLOCK=e)}null!=b&&(c.BISCOTTI_ID=b);return c};
gja=function(a,b){if(null==b)return null;var c=LM(PM(a.o),b);return 1!=c?c:null};
hja=function(a,b){var c;if(!CU(a.b)&&!DU(a.b)||A(B(a.o))||null==a.b||-1==a.b.search("afvbase="))if(CU(a.b))c=new PY(a,SM);else if(AU(a.b))c=new MY(a,SM,b);else if(DU(a.b))c=new SY(a,SM);else if(BU(a))c=new OY(a,SM);else if(c=a.b,null!=c?(c=(new L(c)).g,c=ua(c,".fwmrm.net")):c=!1,c)c=new QY(a);else{c=a.b;if(null!=c){c=new L(c);var d=c.o;c=ua(c.g,"youtube.com")&&zU("/get_midroll_info",d)}else c=!1;c=c?new WY(a,SM):new RY(a)}else c=CU(a.b)?new VY(a,SM,b):new UY(a,SM,b);return c};
ija=function(a){a=le(a,function(a){return 0<MV(a)});
Cb(a,function(a,c){return MV(a)-MV(c)});
return a};
jja=function(a){return le(a,function(a){return-1==MV(a)})};
nU=function(a){this.b=a};
kja=function(){this.b=0};
lja=function(a,b,c,d,e,f,k){var l=!!k,m=x(function(a){d(a,Error(Km(a)))},a);
k=x(function(a){l||6!=a?m(a):YY(this,b,!1,c,m,e,f)},a);
YY(a,b,!0,c,k,e,f)};
YY=function(a,b,c,d,e,f,k){var l=new rn;l.G=c;sn(l,mja(f));var m=new Cm,n=x(function(){m.dispose();l.dispose()},a);
c=x(function(){e(l.g);n()},a);
Im(m,l,"success",function(){var a;try{a=l.b?l.b.responseXML:null}catch(b){a=null}if(null==a){var c=Dn(l);try{a=As(c)}catch(b){a:if(window.document.implementation&&window.document.implementation.createDocument)a=window.document.implementation.createDocument("","parsererror",null);else{if(ys&&(a=zs())){a.appendChild(a.createNode(1,"parsererror",""));break a}throw Error("Your browser does not support creating new documents");}}}d(a);n()},a);
Im(m,l,["error","timeout"],c,a);var t;"POST"==k&&(b=new L(b),t=b.b.toString(),fh(b,""),b=b.toString());a.b=C();l.send(iM(b),k,t)};
ZY=function(a,b,c,d,e){this.B=a;this.o=b;this.A=c;this.b=d;this.C=e};
nja=function(a,b,c,d){var e;try{e=As(b.g)}catch(f){d(rM(RW,f));return}null!=e?$Y(a,e,b,c,d):d(rM(RW))};
aZ=function(a,b,c,d){var e;if(e=null!=b.b){a:{try{wa(b.b)}catch(f){e=!1;break a}e=!0}e=!e}e?d(rM(oja,null,b.b)):U.C?Wha(FW(),x(a.g,a,b,c,d)):a.g(b,c,d)};
cZ=function(a,b,c,d,e,f){b=mea(b,f);f=c.ej&&cM(pja,b)?"POST":"GET";lja(a.o,b,x(function(a){$Y(this,a,c,d,e)},a),x(function(a,b){var d;
d=8==a?rM(iU):5==a||6==a?rM(qja):rM(bZ,b);e(d);d="third_party";AU(c.b)?d="adsense":CU(c.b)?d="dart":DU(c.b)&&(d="xfp");d={rt:d,ec:a};UM(RM.getInstance(),18,d,!0)},a),a.C,f,c.Ai);
rja(c)};
rja=function(a){var b="third_party";AU(a.b)?b="adsense":CU(a.b)?b="dart":DU(a.b)?b="xfp":BU(a)&&(b="dbm");a={rt:b};UM(RM.getInstance(),17,a,!0)};
$Y=function(a,b,c,d,e){var f;try{var k=Ria(b,c);if(!k)throw rM(RW);f=k.o();sja(a,f,c,d)}catch(l){l instanceof ML?e(l):e(rM(tja,l))}};
sja=function(a,b,c,d){var e=b.b;if(null!=e)d(new nU(e));else{e=b.o;if(null==e)throw rM(gY);F(e,function(a){a.o=c;var d=PL();d&&QL(d,"useCompanionsAsEndSlate")&&(a.F=Hha(a));var d=[],e=a.getExtension("InfoCards");if(null!=e)for(var e=e.o?e.o:new aX,f=0;f<xT(e.b,"card");f++)d.push(cX(e,f));a.H=d;a.R=Eha(a.H);a.qa=this.o.b;U.b()&&(a.Ha=b.g)},a);
var f=ija(e),k=jja(e),l;0<k.length&&0<=LV(k[0])?l=new sU(k,c,a,a.B):l=new gU(f,k,c,a);F(e,function(a){a.L=l});
d(l)}};
dZ=function(a){this.b=a+C()};
mja=function(a){var b=C();a=a.b-b;return 0<a?a:0};
uja=function(a,b){this.b=a;this.g=b;U.g&&MQ().init();var c;a:{try{c=window.top.location.href}catch(d){c=2;break a}c=null!=c?c==window.document.location.href?0:1:2}SM.J=c};
vja=function(a,b,c,d){if(U.b()){var e=b.Zj;e&&gea(ZL(),e)}e=null;null!=a.b&&(e=new BW(1E3,a.b,a.g));var f=mha(b);null!=f&&lha(b)&&(a.g.ba=f);(new ZY(a.g,new kja,a.b,e,new dZ(8E3))).fetch(b,x(function(a){a instanceof nU?c(a):lU(a,c,d)},a),d)};
wja=function(a){this.o=a;this.g=new io;this.b=!1};
fZ=function(a,b,c,d){var e=x(function(a){c(a);lo(this.g);this.b=!1;eZ(this)},a),f=x(function(a){d(a);
lo(this.g);this.b=!1;eZ(this)},a);
ko(a.g,x(function(){vja(this.o,b,e,f)},a));
eZ(a)};
eZ=function(a){if(!a.b){var b=mo(a.g);null!=b&&(a.b=!0,b())}};
gZ=function(a,b,c){id.call(this);this.A=new wja(new uja(b,c));this.g=b;this.b=!0;this.o=c;U.H&&aM(ZL(),31061782)&&(Sc(window,"beforeunload",x(this.B,this)),a=new L("http://pagead2.googlesyndication.com/pagead/gen_204"),b=Math.random(),lh(a,"id",""),lh(a,"lid",46),lh(a,"e",31061782),lh(a,"source","loader"),lh(a,"eventid",b),lh(a,"eventtype","begin"),nM.Kj(a.toString(),!0),lh(a,"eventtype","unload"),this.C=a.toString())};
xja=function(a,b,c){if(a.b){var d=null!=c?c:{};zW.getInstance().end("rtr");Sha(zW.getInstance(),b.b);zW.getInstance().start("vl");fZ(a.A,b,x(function(a){hZ(this,a,d)},a),x(function(a){iZ(this,a,d)},a))}};
yja=function(a,b,c){if(!a.b){var d=null!=c?c:{};fZ(a.A,b,x(function(a){hZ(this,a,d)},a),x(function(a){iZ(this,a,d)},a))}};
hZ=function(a,b,c){if(a.b)if(b instanceof nU)b=new jZ(b.b,a),b.D=a.g,a.dispatchEvent(new wW(b,c));else{var d;try{d=kZ(b),d.D=a.g,a.dispatchEvent(new wW(d,c)),zW.getInstance().end("vl")}catch(e){iZ(a,rM(lZ,null),c)}}else b instanceof nU?iZ(a,rM(zja,null,"Unsupported ad format."),c):(d=new yW("adsLoaderSdkAdLoaded"),d.A=b,d.o=c,a.dispatchEvent(d))};
iZ=function(a,b,c){a.b?("always"==U.o&&null!=a.g&&a.g.th(pW()),a.dispatchEvent(new NL(b,c))):(c=new yW("adsLoaderSdkAdError"),c.B=b,a.dispatchEvent(c))};
Aja=function(a){return'<div class="close-padding"><a class="close-button" title="'+Y(a.close)+'" role="button" tabindex="0"></a></div>'};
Bja=function(){return'<div class="recall-button"></div>'};
Cja=function(a){return'<a target="_blank" href="'+Y(a.url)+'" class="attribution-button">'+Y(a.text)+"</a>"};
mZ=function(a,b){this.H=a;this.G=K("DIV",{"class":"controls"});this.b=K("DIV",{"class":"adDisplay"});this.R=b||r;this.Qd=new Cm(this)};
nZ=function(a){var b=K("DIV",{"class":"ima-container"});xv(b,"opacity 0.4s");a.Qd.O(b,"mouseover",a.wA);a.Qd.O(b,"mouseout",a.AG);b.appendChild(a.G);a.G.appendChild(a.b);return b};
oZ=function(a){var b=window.document.createEvent("Event");b.initEvent("creativeview",!0,!0);a.dispatchEvent(b)};
pZ=function(a,b){this.J=a;this.N=new Ag;this.L=15E3;this.D=K("SPAN");mZ.call(this,a[0],b);this.b.appendChild(this.D)};
qZ=function(a,b){mZ.call(this,a[0],b);this.A=a;I(this.b,"ima-container-stack")};
rZ=function(a,b,c,d,e){wt.call(this);this.g=a;this.B=b;this.D=c;this.o=d;this.C=ea(e)?e:[e]};
sZ=function(a,b,c,d,e){return new rZ(a,b,{opacity:d},{opacity:e},{property:"opacity",duration:b,timing:c,delay:0})};
Dja=function(a){return'<a target="_blank" href="'+Y(a.url)+'" class="fullslot-attribution-button">'+Y(a.text)+"</a>"};
Eja=function(a){return'<div class="fullslot-autoclose">'+Y(a.Ay)+"</div></div>"};
tZ=function(a){return"\u041e\u0431\u044a\u044f\u0432\u043b\u0435\u043d\u0438\u0435 \u0437\u0430\u043a\u0440\u043e\u0435\u0442\u0441\u044f \u0447\u0435\u0440\u0435\u0437 "+(Y(a.Sg)+"\u00a0\u0441\u0435\u043a.")};
uZ=function(a){id.call(this);this.B=new ce(200);H(this,this.B);this.o=0;this.g=!1;this.K=a;this.H=new Cm(this);this.H.O(this.B,"tick",this.jE)};
vZ=function(a){a.B.stop();a.g=!1};
xZ=function(){id.call(this);this.b=!1;this.o=this.A=this.g=null;this.B=new Cm(this);this.g=kR(xga);this.A=rf("videoAdUiUnmutedIcon",this.g);this.o=rf("videoAdUiMutedIcon",this.g);wZ(this);this.B.O(this.g,"click",this.C)};
wZ=function(a){a.A&&a.o&&(a.b?(Gs(a.A,"display","none"),Gs(a.o,"display","block")):(Gs(a.A,"display","block"),Gs(a.o,"display","none")))};
yZ=function(a){if(!Fja.test(a))throw Error("'"+a+"' is not a valid alpha hex color");5==a.length&&(a=a.replace(Gja,"#$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]};
zZ=function(a){var b=a.slice(0);b[3]=Math.round(1E3*a[3])/1E3;return"rgba("+b.join(",")+")"};
BZ=function(a,b){id.call(this);this.o=a;this.aa=0;this.N=!1;this.A=0==iT(this.o.skipOffset)?3:1;this.g=this.b=this.$=this.K=this.G=this.B=null;this.C=new Cm(this);this.F=this.J=this.H=null;this.R=!1;this.L=new TQ;this.ba="";var c=a.F;this.D=null!=c&&null!=ZM(c,dN,1)?ZM(ZM(c,dN,1),eN,1):null;this.B=kR(rga);this.G=rf("videoAdUiPreSkipButton",this.B);this.K=rf("videoAdUiPreSkipText",this.G);this.$=rf("videoAdUiPreSkipThumbnail",this.G);Sf(this.K,TR({Sg:AZ(this)}));c=this.o.La;c=(A(B(c))?null:"//i1.ytimg.com/vi/"+
c+"/mqdefault.jpg")||"";if(this.o.showContentThumbnail&&!A(B(c))){var d=Df("img");d.setAttribute("src",c);I(d,"videoAdUiPreSkipThumbnailImage");this.$.appendChild(d)}else I(this.K,"videoAdUiPreSkipTextOnly");c=ZL().b.Z("use_new_skip_icon")?tga:sga;this.g=kR(c,{Rt:Pa("\u041f\u0440\u043e\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u0440\u0435\u043a\u043b\u0430\u043c\u0443\u00a0"+Y(""))});this.b=rf("videoAdUiSkipButton",this.g);Hja(this);"4.4.4"===(aB?FM(CM):"")&&(this.G.style.backgroundColor="black",
this.b.style.backgroundColor="black");bt(this.B,!1);b.appendChild(this.B);0==iT(this.o.skipOffset)?this.dispatchEvent("skipshown"):(bt(this.g,!1),at(this.g,0));b.appendChild(this.g);this.C.O(this.L,"click",this.rG);this.L.wb(this.b)};
AZ=function(a){return null!=a.o.skipOffset&&-1!=iT(a.o.skipOffset)?iT(a.o.skipOffset):-1};
CZ=function(a,b){var c=AZ(a);if(!(0>c)){var c=Math.ceil(c-b),d=" "+c;60<=c&&(d=" "+HQ(c));c=TR({Sg:d,Ni:a.ba});Sf(a.K,c)}};
DZ=function(a){null!=a.F&&(fe(a.F),a.F=null)};
EZ=function(a,b){null!=a.G&&bt(a.G,b);null!=a.b&&bt(a.b,b)};
Hja=function(a){if(null!=a.D){var b=null!=a.D.getStyle()&&null!=ZM(a.D.getStyle(),hN,1)?V(ZM(a.D.getStyle(),hN,1),1):null,c=null!=ZM(a.D,gN,2)&&null!=ZM(ZM(a.D,gN,2),hN,1)?V(ZM(ZM(a.D,gN,2),hN,1),1):null;b&&(a.b.style.backgroundColor=zZ(yZ(b)),c&&(a.C.O(Pf(a.b),"mouseover",function(){this.b.style.backgroundColor=zZ(yZ(c))}),a.C.O(Pf(a.b),"mouseout",function(){this.b.style.backgroundColor=zZ(yZ(b))})))}};
HZ=function(a,b,c){id.call(this);this.b=a;this.R=!1;this.Aa=c;this.ea=this.ca=this.L=this.C=this.J=this.N=this.F=this.na=this.ga=this.Ha=this.da=this.G=this.g=null;this.qa=!1;this.Ca=this.ha=this.ia=this.H=this.K=this.A=this.B=this.ma=this.$=this.ba=this.D=null;this.o=new Cm(this);this.Ga=[];this.aa=[];this.R=!this.b.B&&U.b();a={Id:this.b.Id,zg:this.b.zg,de:this.b.de,Ni:this.R?"redesign2014q4":""};this.g=kR(this.b.H,a);this.o.O(this.g,"touchmove",this.XA);this.$=rf("videoAdUiProgress",this.g);this.ma=
rf("videoAdUiBuffer",this.g);this.G=rf("videoAdUiAttributionContainer",this.g);this.da=rf("videoAdUiAttributionIconContainer",this.g);this.ga=rf("videoAdUiAttribution",this.g);this.b.g&&(I(b,"videoAdUiInstreamBadgeExperiment"),this.Ha=rf("videoAdUiAttributionBadge",this.G),c=UR({Kh:"",eh:0,Lh:0}),Sf(this.Ha,Pa(c)));this.na=rf("videoAdUiVisitAdvertiserLink",this.g);this.F=rf("videoAdUiVisitAdvertiserLinkText",this.g);this.N=rf("videoAdUiVisitAdvertiserIcon",this.g);this.J=rf("videoAdUiAuthorIcon",
this.g);this.C=rf("videoAdUiAuthorName",this.g);this.L=rf("videoAdUiLearnMore",this.g);this.ca=rf("videoAdUiLearnMoreText",this.g);this.R?(this.H=rf("videoAdUiTopButtonShare",this.g),this.ia=rf("videoAdUiTopButtonShareTooltip",this.g),this.ha=rf("videoAdUiTopButtonInfo",this.g),this.Ca=rf("videoAdUiTopButtonWatchLater",this.g)):this.H=rf("videoAdUiShare",this.g);this.D=rf("videoAdUiTitle",this.g);this.ba=rf("videoAdUiTopBar",this.g);this.ea=rf("videoAdUiBottomBar",this.g);null!=this.J&&this.o.O(this.J,
"click",this.yy);null!=this.C&&(c=new TQ,this.aa.push(c),this.o.O(c,"click",this.zy),c.wb(this.C));null!=this.L&&(c=new TQ,c.J=!0,this.aa.push(c),this.o.O(c,"click",this.or),c.wb(this.L));null!=this.ca&&(c=new TQ,c.J=!0,this.aa.push(c),this.o.O(c,"click",this.or),c.wb(this.ca));null!=this.H&&this.o.O(this.H,"click",this.oG);null!=this.D&&(c=new TQ,this.aa.push(c),this.o.O(c,"click",this.yG),c.wb(this.D));null==this.ba||!U.b()&&xM()||this.o.O(this.g,"mouseover",this.nG);null!=this.F&&this.o.O(this.F,
"click",this.Xj);null!=this.N&&this.o.O(this.N,"click",this.Xj);null!=this.G&&null!=this.b.C&&FZ(this.b.C)&&(I(this.G,"videoAdUiWtaClickable"),this.o.O(this.G,"click",this.FF),this.o.O(this,"why_this_ad_got_it",this.GG));null!=this.b.skipOffset&&(this.A=new BZ(this.b,this.g),this.A.Kg(this),this.A.ba=a.Ni);this.b.N&&(this.K=new xZ,this.K.Kg(this),this.ea.insertBefore(this.K.g,this.G));400>=((0,window.parseInt)(Js(b,"width"),10)||b.width)&&I(this.g,"videoAdUi-mobile");this.b.B&&(I(this.g,"blazer"),
window.settings&&window.settings.isTablet?I(this.g,"tablet"):I(this.g,"phone"));a=Zf(b,"html5-video-player");null!=a&&(this.R&&I(a,"videoAdUiRedesign"),J(a,"ytp-video-ad-learn-more-ui",this.b.o));bt(this.g,!1);b.appendChild(this.g);this.b.o||this.R||!this.b.K||(this.B=K("DIV",{style:"width:100%;height:100%;pointer-events:auto;"}),this.g.appendChild(this.B));GZ(this)};
Ija=function(a){null!=a.B&&bt(a.B,!1)};
IZ=function(a){a.A&&(a.A.dispose(),a.A=null)};
Jja=function(a,b){a.Ga=b;F(b,function(a){a.A=this.g;a.A.appendChild(a.b);var b=a.b,e=Zs(a.A),e="left"==a.B?"0px":"right"==a.B?e.width-a.o.rd().width+"px":a.B+"px",f;f=Zs(a.A);f="bottom"==a.C?"0px":"top"==a.C?f.height-a.o.rd().height+"px":f.height-a.o.rd().height-Ya(a.C)+"px";Gs(b,{position:"absolute",overflow:"hidden",left:e,bottom:f});bt(a.b,!1)},a)};
JZ=function(a){null!=a.F&&(bt(a.F,!0),Sf(a.F,a.b.visitAdvertiserText));null!=a.N&&bt(a.N,!0)};
KZ=function(a,b){if(null!=a.g){var c=Zf(Pf(a.g),"html5-video-player");null!=c&&J(c,"ytp-ad-end-cap",b)}};
GZ=function(a){var b=a.b.ba&&(a.Aa>a.b.da||0==a.Aa),c=b&&a.b.ca,d=b&&a.b.ea,e=b&&a.b.A,f=b&&a.b.aa,b=b&&a.b.G,k=a.b.R&&a.b.b,l="0px",m;m=a.b.F;m=U.b()&&null!=m&&null!=ZM(m,dN,1)&&null!=ZM(ZM(m,dN,1),fN,2)&&V(ZM(ZM(m,dN,1),fN,2),1)?!1:!0;null!=a.D&&(bt(a.D,b),null!=a.J&&bt(a.J,c),null!=a.C&&bt(a.C,d),null!=a.L&&bt(a.L,e),null!=a.H&&(bt(a.H,f),f&&a.dispatchEvent("videoShareShown")),null!=a.ha&&bt(a.ha,!1),null!=a.Ca&&bt(a.Ca,!1),null!=a.ba&&bt(a.ba,b||c||d||e));null!=a.G&&LZ(a);null!=a.$&&(bt(a.$,k),
k&&(l=Js(a.$,"height")));null!=a.ea&&Gs(a.ea,"bottom",l);null!=a.ca&&bt(a.ca,U.b()&&a.b.o&&!e);null!=a.da&&bt(a.da,a.b.J);null!=a.na&&bt(a.na,m)};
Kja=function(a,b,c,d,e){var f;f=a.b.g?"":UR({Kh:"",eh:0,Lh:0});a.b.b&&a.b.L&&(b=HQ(c-b),b=a.b.g?b:a.b.B?" \u2022 "+b:a.R?" \u00b7 "+b:": ("+b+")",f=a.b.g?b:UR({Kh:b,eh:d,Lh:e}));Sf(a.ga,f);LZ(a)};
LZ=function(a){bt(a.G,a.b.D&&(!a.b.b||a.qa))};
MZ=function(a,b){this.B=a;this.o=b;this.g=this.A=this.C=this.b=null};
FZ=function(a){return null!=a.B||null!=a.o};
NZ=function(a,b,c){b=rf(b,a.b);null!=b&&a.A.O(b,"click",c)};
OZ=function(a,b,c){null!=a.b&&a.b.parentElement.removeChild(a.b);a.b=kR(b,c);NZ(a,"videoAdUiPopupCloseIcon",a.Ii);a.C.appendChild(a.b);b=rf("videoAdUiPopupFrame",a.b);null!=b&&Sc(b,"submit",function(a){a.preventDefault()});
a=rf("videoAdUiPopupDefaultButton",a.b);null!=a&&a.focus()};
PZ=function(){this.Id=UR({Kh:"",eh:0,Lh:0});this.zg="\u041f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435... "+Y("");this.visitAdvertiserText="\u041f\u0435\u0440\u0435\u0439\u0442\u0438 \u043d\u0430 \u0441\u0430\u0439\u0442 \u0440\u0435\u043a\u043b\u0430\u043c\u043e\u0434\u0430\u0442\u0435\u043b\u044f";this.de=WR();this.skipOffset=null;this.da=6E3;this.D=!0;this.J=!1;this.L=this.b=this.K=!0;this.aa=this.R=this.N=this.A=!1;this.ba=!0;this.G=this.ea=this.ca=this.$=this.o=!1;this.H=null;this.showContentThumbnail=
!0;this.g=this.B=!1;this.F=null};
QZ=function(a,b,c,d){var e=new PZ;e.o=a;e.ga=b;e.skipOffset=c;e.La=null!=d?d.sg:null;e.K=d.DG;e.H=oga;e.ha=XQ(b,null!=c,d.Zf);e.showContentThumbnail=null!=d.sg&&d.showContentThumbnail;e.F=d.zq;return e};
SZ=function(a,b,c,d,e){uZ.call(this,b.b);this.F=b;this.D=c;this.G=this.F.b;this.b=a;this.A=this.C=null;I(this.b,qY(this.D));a=this.b;b=new PZ;b.skipOffset=new QU(this.F.A,!1);this.A=new BZ(b,a);d&&d.text&&(d=kR(Dja,d),this.b.appendChild(d));e?(e=this.b,d=tZ({Sg:RZ(this.G)}),a=kR(Eja,{Ay:d}),Sf(a,d),e.appendChild(a),e=a):e=null;this.C=e};
Lja=function(a){var b=rf("videoAdUiSkipButton",a.b);return b?Vs(b,a.b):new ff(0,0)};
RZ=function(a){a=Math.ceil(a);return"0:"+(10>a?"0"+a:""+a)};
TZ=function(){G.call(this);this.B="";this.o=new bT;this.g=new Ag;this.C=[];this.G=!1;this.b={};this.F={};this.A=-1;this.D=[]};
UZ=function(a,b){if(U.g){var c=PQ(MQ(),b.type,a.B);a.H(b.type,c)}else Yha(FW(),b.type,a.B,x(a.H,a,b.type))};
Mja=function(a,b){null!=b&&F(b,function(a){gb(this.D,a)||this.D.push(a)},a)};
VZ=function(a,b,c){null!=c.viewability&&XT(a.b,c.viewability);var d;U.g||(d=FW().H||void 0);var e=[];F(b,function(a){var b=this.b;ZT(b,a,"MOAT_INIT",!0,Sga);ZT(b,a,"MOAT_VIEWABILITY",!0,md(c.moatViewability||""));ZT(b,a,"IAS_VIEWABILITY",!0,md(c.integralAdsViewability||""));ZT(b,a,"DV_VIEWABILITY",!0,md(c.doubleVerifyViewability||""));ZT(b,a,"GOOGLE_VIEWABILITY",!1,md(c.googleViewability||""));e.push(mM(a,this.b,c,d))},a);
XT(a.b,"na");return e};
WZ=function(a,b,c){F(b,function(a){kM(a,void 0,void 0,c)},a)};
Nja=function(a,b){switch(b){case "abandon":return!Cg(a.g,b)&&!Cg(a.g,"skip")&&!Cg(a.g,"instreamAdComplete")&&(Cg(a.g,"impression")||a.G);case "click":return!0;case "instreamAdComplete":case "complete":return!Cg(a.g,b)&&!Cg(a.g,"skip");default:return!Cg(a.g,b)}};
XZ=function(a,b){id.call(this);this.b=a;this.g=new Cm(this);H(this,this.g);this.g.O(b,["companion_impression","companion_click"],this.o)};
YZ=function(a){id.call(this);this.ads=a;this.G=null;this.ca=new Cm(this);H(this,this.ca);this.H="normal";this.A=this.volume=null;this.g=new iN;this.Ha=!1;this.content={};this.B=new TZ;this.ea=!1;FW();this.Ca=aM(ZL(),41351021)||aM(ZL(),31061781);this.qa=x(this.nz,this);this.aa=null;var b=0;F(a,function(a){b+=bU(a)});
F(a,function(b,d){var e=b.A;e.o=a.length;var f=d+1;e.g=f;e.B=f})};
Z=function(a){if(ZZ(a)){if(a.G.isSkippable()&&!JM())throw sM(EY,null,"skippablevideo");if(null!=jW(a.G)&&$Z(a,a.G.g))throw sM(EY,null,"vpaidWithSkippabilityOverride");return a.G}throw sM(a_,null,"An ad has not been selected.\n"+Error().stack);};
b_=function(a,b){a.G=b;if(U.g){var c=MQ();QQ(c,a.qa);b&&c.g.set(b.K,a.qa)}};
$Z=function(a,b){return null==b?!1:null!=b.getExtension("adx")?!0:$Z(a,b.g)};
ZZ=function(a){return null!==a.G};
Oja=function(a){return Th(a.ads,function(a){return Th(c_(a),function(a){return!A(B(WQ(a.g)))})},a)};
c_=function(a){var b=a.g;if(b&&b.aa&&(b=b.B,!ib(b)&&b[0]instanceof sT))return b[0].L;b=a.b;return d_(a)?b.L:[]};
d_=function(a){a=a.b;return null!=a&&a instanceof sT};
e_=function(a){null==a.F&&(a.F=new Cm(a));return a.F};
g_=function(a,b){var c=ZL().b;if(!(c.Z("enable_website_actions_info_cards")&&c.Z("enable_website_actions_info_cards_companion")&&!ib(CV(b))&&!CV(b)[0].g&&U.b()&&lW(b)||null==a.D||(Jm(a.ca),Hm(a.ca,a.D,"companion_display_error",function(){}),c=a.D.th(b),null!=c&&(a.ca.O(c,"companion_impression",a.AC),a.ca.O(c,"companion_click",a.Mm),U.b()&&(c=new XZ(b,c),a.ka("companionInitialized",c))),a.D.kp())))throw sM(f_);
};
Pja=function(a){F(a.ads,function(a){if(a=a.getExtension("sodar")){var c=a.A,d=a.o,e=a.B,f=a.g;a="//tpc.googlesyndication.com/sodar/"+(0,window.encodeURIComponent)(c)+".js";var k="//pagead2.googlesyndication.com/bg/"+(0,window.encodeURIComponent)(e)+".js";if(c&&d&&e&&f){var e=window,c=e.document,l={};l._scs_=d;l._bgu_=k;l._bgp_=f;l._li_="v_h.0.0.0";(d=e.GoogleTyFxhY)&&"function"==typeof d.push||(d=e.GoogleTyFxhY=[]);d.push(l);d=c.createElement("script");d.type="text/javascript";d.async=!0;d.src=a;
c.getElementsByTagName("head")[0].appendChild(d)}}})};
h_=function(a,b){UZ(a.B,new mc(b))};
i_=function(a,b){UZ(a.B,new mc(b));a.ka(b)};
j_=function(a){if(!a.ea)throw sM(a_,null,"Ads manager is not correctly configured.");};
k_=function(a,b){for(var c=b;null!=c;)F(c.D.Pa(),a.SF,a),c=c.g};
Qja=function(a){if(!ea(a))throw sM(a_,null,"adsRenderingSettings.mimeTypes should be an array");var b=rb(Xb(l_),Xb(GT));F(a,function(a){if(!gb(b,a))throw sM(a_,null,"Invalid or unsuppoted mime type "+a);})};
m_=function(a){YZ.call(this,a);this.J=null;this.ha=K("DIV",{style:"display:none;position:absolute;top:0;left:0;bottom:0;right:0;z-index:2000"});this.N=!1;this.$=[]};
n_=function(a,b){var c=Oga(b);F(c,function(a){gT(this.B.o,"click",a)},a)};
o_=function(a,b){var c=VT(b,Z(a)),d=AV(Z(a));oM(d,c)};
p_=function(a){m_.call(this,a);this.R=!1;this.C=this.L=null;this.da=!1};
q_=function(a){var b=a.ads[0].getExtension("AdSense"),c=b.B,b=b.C;a={text:null!=c?c:a.ga.B,url:null!=b?b:a.ga.C};null==a.text&&(a.text=qR("\u0420\u0435\u043a\u043b\u0430\u043c\u0430 \u043e\u0442 Google"));return a};
r_=function(a){return ZZ(a)&&eW(Z(a))};
Rja=function(a){var b=s_(a);b.rba=a.N;UM(RM.getInstance(),37,b)};
s_=function(a){var b=[],c=[];F(a.L,function(a){b.push(a.cb()+"x"+a.getHeight());c.push(a.xc())},a);
var d={};d.pid=zW.getInstance().b;d.fsmode=null!=a.C;0<b.length&&(d.cz=b.join(","));0<c.length&&(d.ct=c.join(","));d.vm=a.H;return d};
t_=function(a,b){if(a.C){a.bj(new mc("close"));var c={};c.pid=zW.getInstance().b;c.evt=b;UM(RM.getInstance(),35,c)}};
u_=function(a,b){mc.call(this,"vpaidEventType");this.b=a;this.data=b};
Sja=function(a,b){function c(a,b){for(var c in a)for(var k=c.toLowerCase(),l=0;l<v_.length;l++){var m=v_[l];if(k==m)throw Error('Cannot override "'+m+'" '+b+', got "'+c+'" with value "'+a[c]+'"');}}
c(a,"attribute");c(b,"param")};
w_=function(a,b){by.call(this,b);this.J=a;this.o=new Cm(this);this.g=new Ag};
x_=function(a){return a.la()?a.la().firstChild:null};
y_=function(a){YZ.call(this,a);this.N=this.o=null;this.J=!0;this.Aa=this.ha=this.ba=!1;this.na=Ua();this.da=this.ia=0;this.$=-1;this.C=null;this.R=0;this.L=1;this.ga=-1;this.ma=!1};
z_=function(a){var b=a.tc("getAdLinear");return ga(b)?b:a.J};
A_=function(a){var b;b=a.tc("getAdRemainingTime");b=ha(b)?b:-2;if(!ha(b)||0>b)b=30;fe(a.ga);a.ga=ee(a.stop,1E3*b,a)};
B_=function(a,b,c,d){d=sM(b,c,d);var e=VT(d,Z(a)),f=AV(Z(a));oM(f,e);b.message=d.b;uM(a,b,c)};
C_=function(a){a.ma||(a.ma=!0,i_(a,"complete"))};
D_=function(a){id.call(this);this.C=a;this.b=null;this.A=-1;this.B=!1;this.g=Ua()};
E_=function(a){YZ.call(this,a);this.o=null;this.na={};this.J=!0;this.ga=this.da=this.ba=!1;this.R=this.ha=0;this.C=null;this.N=0;this.L=1;this.$=-1;this.ma=!1;this.ia=2==U.A};
F_=function(a){var b=a.jc("getAdLinear");return ga(b)?b:a.J};
G_=function(a){var b;b=a.jc("getAdRemainingTime");b=ha(b)?b:-2;if(!ha(b)||0>b)b=30;fe(a.$);a.$=ee(a.stop,1E3*b,a)};
H_=function(a){a.ma||(a.ma=!0,i_(a,"complete"))};
J_=function(a,b){var c=sM(I_,b,void 0),d=VT(c,Z(a)),e=AV(Z(a));oM(e,d);I_.message=c.b;uM(a,I_,b)};
K_=function(a,b){this.b=a;this.g=b};
L_=function(a){OL.call(this,"adMetadata",a)};
Tja=function(a,b,c){var d=r,e=new L("https://www.googleapis.com/youtube/v3/videos");lh(e,"id",a);lh(e,"part","snippet,status");lh(e,"fields","items/id,items/snippet/title,items/snippet/channelId,items/status/privacyStatus");null!=c&&(b=x(b,c),d=x(d,c));M_(new rn,e,b,d)};
Uja=function(a,b,c){var d=r,e=new L("https://www.googleapis.com/youtube/v3/channels");lh(e,"id",a);lh(e,"part","snippet,statistics,brandingSettings");lh(e,"fields","items/id,items/snippet/title,items/snippet/thumbnails/default/url,items/statistics/videoCount,items/brandingSettings/image/bannerImageUrl");null!=c&&(b=x(b,c),d=x(d,c));M_(new rn,e,b,d)};
M_=function(a,b,c,d){lh(b,"key","AIzaSyA-dlBUjVQeuc4a6ZN4RkNUYDFddrVLxrA");sn(a,2E3);var e=new Cm(a);Hm(e,a,"success",function(a){a=a.target;var b;b=a.b?bg(a.b.responseText):void 0;c(b||{});e.dispose();a.dispose()});
Hm(e,a,["error","timeout"],function(a){a=a.target;var b=null;0!=a.g&&(b=Error(Km(a.g)));d(b);e.dispose();a.dispose()});
a.send(b)};
N_=function(a){if(a&&a.items&&a.items.length){a=a.items[0];this.videoId=a.id;var b=a.snippet;a.snippet&&(this.channelId=b.channelId,this.title=b.title);if(a=a.status)this.isListed="unlisted"!=a.privacyStatus}};
Q_=function(a,b,c,d,e){uZ.call(this,d);this.G=a;this.N=b;this.L=e;this.A=new Cm(this);H(this,this.A);this.C=new TQ;H(this,this.C);this.J=new TQ;H(this,this.J);this.F=new TQ;H(this,this.F);(a=O_(c))?(c=a(c),b.appendChild(c),b=rf("iv-endcap-action",c),this.A.O(this.C,"click",this.D),this.C.wb(b),b=rf("iv-endcap-text",c),this.A.O(this.J,"click",this.D),this.J.wb(b),b=rf("iv-endcap-image",c),this.A.O(this.F,"click",this.D),this.F.wb(b),b=c):b=null;this.b=b?rf("iv-endcap-countdown-inner",b):null;null!=
this.b&&Gs(this.b,"stroke-dasharray","0 "+P_)};
O_=function(a){switch(a.Fb()){case 1:return Vja;case 4:return Wja}return null};
Vja=function(a){var b=aV(a);a=0<a.$j()?a.Tg(0):null;return kR(tU,{headline:cV(b),description:dV(b),image:eV(fV(b)),action:a?lV(a):"",target:a?hV(a)||jX(a):""})};
Wja=function(a){var b=a.Zi();a=0<a.$j()?a.Tg(0):null;return kR(tU,{headline:kV(b),description:mV(b),image:eV(b.g()),action:a?lV(a):"",target:a?hV(a)||jX(a):""})};
Xja=function(){return qR('<div class="videoAdInterstitial"><p>\u041f\u043e\u043a\u0430\u0437 \u0432\u0438\u0434\u0435\u043e \u043d\u0430\u0447\u043d\u0435\u0442\u0441\u044f \u0441\u0440\u0430\u0437\u0443 \u043f\u043e\u0441\u043b\u0435 \u0440\u0435\u043a\u043b\u0430\u043c\u044b.</p></div>')};
R_=function(){G.call(this);this.o=kR(Xja);this.b=0};
S_=function(a){a.b&&(fe(a.b),a.g(r))};
T_=function(a){mc.call(this,a)};
U_=function(a){id.call(this);this.A=a;this.K=new Ag;this.G=-1;this.H=this.L=!1;this.D=""};
V_=function(a){this.paused=!1;this.mute=a.Ff();this.volume=a.Sd()};
W_=function(a,b,c,d){if(!c||null==a.K.get(b)){d&&!a.H&&(b="error");a.K.set(b,!0);a:{c=b;if(a.o&&a.o.b.A){if("click"==c)break a;"videoLearnMoreClicked"==c&&UZ(a.A,new mc("click"))}d=Yja[c]||null;null!=d&&null!=a.b&&a.b.bn(d);UZ(a.A,new mc(c))}a.dispatchEvent(b)}};
X_=function(a){0>a.G||a.L||!a.b.cg(a.G)&&!a.b.ne()||!a.H||(a.L=!0,W_(a,"engagedview",!0,!0),a.dispatchEvent(new T_("viewCount")))};
Y_=function(a){X_(a);if(U.b()){var b=a.A;if(!(Cg(b.g,"skip")||0>b.A))for(var c=eT(b.o,"progress"),d=b.A;d<c.length;d++){var e=c[d];b.A=d+1;kM(e.b,b.b)}}W_(a,"complete",!0,!0)};
Z_=function(a){YZ.call(this,a);this.C=this.o=null;this.ba=!1;this.L=new U_(this.B);this.ha=this.na=this.$=!1;this.ma=this.R=1;this.J=null;this.Ga=new R_;this.ia=new yk;this.Ja=!1;this.ga=[];this.da=!1;this.N=null;this.Aa=!xM()&&U.b()};
$_=function(a,b){var c=ee(function(){this.ia.remove(c);b.call(this)},0,a);
Ak(a.ia,c)};
a0=function(a){a.N&&(Nb(a.N),a.N=null);Nb(a.o);a.o=null;Nb(a.L);Nb(a.B);a.ha=!1};
b0=function(a){a.Fh();ZZ(a)?a.start():a.stop()};
$ja=function(a){if(!ZZ(a))return!1;var b=a.A.Pd();if(null==b)return!1;var c=Z(a),d;if(d=c.F?c.F.b.vh()?c.F.b.um():c.F.dc():"")Zja(a,b,d);else if(aW(c)&&(d=c.R,d=ib(d)?null:d[0],null!=d&&ia(O_(d)))){var e=1==d.Fb()&&!ZL().b.Z("ad_video_end_disable_auto_open_drawer");a.C=new Q_(a.b,b,d,iW(c),e);e_(a).O(a.C,"click",x(a.Np,a,null));a.o&&KZ(a.o,!0);a.A.Yc()}null!=a.C&&(e_(a).O(a.C,"timeUpdate",a.Ls),e_(a).O(a.C,"end",a.az),a.C.start(),i_(a,"video_card_endcap_impression"));return null!=a.C};
Zja=function(a,b,c){UM(RM.getInstance(),34,{evt:"start"},!0);var d=K("DIV");I(d,"controls");var e=K("DIV");I(e,"adDisplay");I(e,"endslate");e.innerHTML=c;(c=Lf(e)[0])&&Gs(c,{margin:"0 auto"});F(c.getElementsByTagName("a"),function(a){var b=a.getAttribute("href");b&&e_(this).O(a,"click",x(this.Np,this,b))},a);
d.appendChild(e);e=new UW;cia(e,iW(Z(a)));e.A=0;e.o=0;a.C=new SZ(d,e,1,{},!0);e_(a).O(a.C,"skip",a.Op);b.appendChild(a.C.b);a.A.Yc();a.o&&(Ija(a.o),IZ(a.o))};
d0=function(a,b){c0(a);null!=a.b&&a.b.Rq();a.ka("complete");i_(a,b);h_(a,"instreamAdComplete");b0(a)};
c0=function(a){a.C&&(a.C.dispose(),a.C=null);a.o&&KZ(a.o,!1);a.ba=!1};
e0=function(a){var b=ZZ(a)?Z(a).C:null;if(b){var c;a:{if(ZZ(a)&&(c=mW(a.G),null!=c))break a;c=""}var d;a:{if(ZZ(a)&&(d=nW(a.G),null!=d))break a;d=""}(c||d)&&a.b.hm(b,c||null,d||null)}};
f0=function(a,b,c,d){b=eT(b.b,c);ib(b)||(a[d]=b[0].b)};
g0=function(a,b,c){b=c.getExtension(b);null!=b&&(f0(a,b,"annotation_click","cta_annotation_clicked"),f0(a,b,"annotation_close","cta_annotation_closed"),f0(a,b,"annotation_start","cta_annotation_shown"))};
aka=function(a,b){var c=rV(b,$V)&&!b.ba?GV(b):null,d=b.isSkippable()&&!uV(b),e=null!=a.o&&a.o.b.o,f=b.o,k=YQ(a.Kq());if(!k){var l=b.getExtension("AdSense");null!=l&&(k=l.isPharma())}var m=ZL().b,l=m.Z("use_variable_load_timeout")?m.b("variable_load_timeout_ms"):a.g.Ud,n=aU(b),t;a.o?(t={},g0(t,"AdSense",b),g0(t,"dart",b),g0(t,"DFP",b)):t=null;var f=f?f.Oj:!1,u=$T(b),y=a.g.Cg,m=m.Z("legacy_autoplay_flag"),E;E=EV(Z(a),"endscreenClick");E=ib(E)?null:gg({endscreenClick:E});return new qS(n,c,0,t,e,d,l,
f,!1,u,y,k,m,E)};
bka=function(a){var b=0,c=0;F(a.ads,function(a){!d_(a)||U.b()&&0!=c||(c++,b+=bU(a))},a);
var d=1;F(a.ads,function(a){var b=a.A;b.o=c;d_(a)&&(b.g=d,b.B=d,d++)},a)};
h0=function(a){var b=a.g;return b&&b.aa&&(b=b.B,!ib(b)&&b[0]instanceof sT)?b[0].Td():WV(a)};
j0=function(a,b){if(!d_(b))throw sM(i0);var c=b.b;if(!A(B(null)))return new rT("","","",0,0,0,0,0,null,"");var d=c_(b),e=a.b.Ym(d,a.g.bitrate,a.g.rh||[],null!=b&&!0&&(U.b()||a.A.hj()||a.A.$l()||xM()));cka(d,a.g.bitrate,e,zV(b));if(null!=e)return c.ga=e;try{dka(a,b)}catch(f){}throw sM(eka);};
dka=function(a,b){if(RM.getInstance().b){var c=new yk,d=!1;F(c_(b),function(a){Ak(c,a.b);"VPAID"==a.o&&(d=!0)},a);
var e=a.b.Xi(),e={aid:GV(b),mt:c.Pa().join(","),smt:e.join(","),hvp:d,st:KV(b).join(",")};UM(RM.getInstance(),28,e)}};
cka=function(a,b,c,d){if(!U.b())try{var e=M(a,function(a){return a.Vd}),f=M(a,function(a){return a.b});
a={};a.brs=e.join(",");a.mts=f.join(",");a.pubbr=b;a.selbr=null===c?-1:c.Vd;a.selmt=null===c?"":c.b;a.ic=!1;a.nat=!1;a.iyh=dM(c.g)?"1":"0";a.as=d;UM(RM.getInstance(),22,a)}catch(k){}};
k0=function(a,b){b in a.ga||(a.ga.push(b),a.ka(b))};
fka=function(a){var b=Z(a),c={};c.pubbr=a.g.bitrate;c.ic=!1;c.nat=!1;if(null!=b){a=c_(b);var d=b.b,d=d?d.ga:null,e=M(a,function(a){return a.Vd});
a=M(a,function(a){return a.b});
c.brs=e.join(",");c.mts=a.join(",");c.as=zV(b);null===d?(c.selbr=-1,c.selmt="",c.iyh="0",c.murl=""):(c.selbr=d.Vd,c.selmt=d.b,c.iyh=dM(d.g)?"1":"0",c.murl=d.g)}UM(RM.getInstance(),45,c)};
m0=function(a,b,c){b.jb();var d=null;ZZ(a)&&(NV(Z(a)),d=OV(Z(a)));null!=d?gka(a,Z(a),d,b,c):(l0(a,c),a.Fh(),ZZ(a)?(tM(sM,a,b,c,void 0),a.start()):(uM(a,b,c),a.stop()))};
gka=function(a,b,c,d,e){b=x(function(a){a=a[0];this.Vm(Z(this),a);ZZ(this)?(tM(sM,this,d,e,void 0),this.start()):m0(this,n0,sM(n0))},a);
a=x(function(){m0(this,o0,sM(o0))},a);
lU(c,b,a)};
l0=function(a,b){var c=sM(p0,b),c=VT(c,Z(a),a.b),d=AV(Z(a));oM(d,c)};
q0=function(a){if(U.g){var b=h0(Z(a));null!=b&&jM(b)}a.ka("click")};
r0=function(a,b){Vb(hka,b)&&Em(e_(a),a.L,b,a.Js,a)};
s0=function(a){if(!a.da){var b=Z(a),c=b.C;if(lW(b)&&!U.b()&&!a.A.hj()&&c){var b=a.b.getCurrentTime(),d=a.b.pd(),e=new L("//s.youtube.com/s");lh(e,"ns","yt");lh(e,"el","adunit");lh(e,"docid",c);lh(e,"eurl",window.document.URL);lh(e,"len",d.toFixed(2));lh(e,"tv","1");lh(e,"ps","trueview-instream");lh(e,"st",b.toFixed(2));lh(e,"et",b.toFixed(2));lh(e,"rt",b.toFixed(2));kM(e.toString());a.da=!0}}};
ika=function(a){var b=Z(a).ca;if(null!=b){var b=b.videoId,c=a.g.Zf;if(A(B(b)))b=null;else{var c=new L((null!=c?c:"//www.youtube.com/")+"watch"),d=c.b;d.set("v",b);fh(c,d);c.G="action=share";b=c.toString()}null!=b&&(jM(b),a.At())}};
jka=function(a){a=t0(a)||u0(a);null!=a&&lM(a,"sharebuttondisplayed")};
t0=function(a){a=Z(a).getExtension("AdSense");return null!=a?new L(a.A):null};
u0=function(a){if(a=Z(a).b)if(a=pT(a,"start"),!ib(a))return new L(a[0].b);return null};
kka=function(a){var b=Z(a),c=b.ca;null!=c&&(b=XQ(c.videoId,null!=gW(b),a.g.Zf),null!==b&&(a.b.pause(),jM(b)))};
v0=function(a){$_(a,function(){this.ka("skip");b0(this)})};
w0=function(a,b){Tja(b,function(a){a=new N_(a);ZZ(this)&&Z(this).C==a.videoId&&(lka(this,a),!A(B(a.channelId))&&a.isListed&&Uja(a.channelId,function(a){a=new aT(a);var b=Z(this),c=ZL().b;if(null!=this.o){var k=this.o,l=a.authorName;k.b.ea=!A(B(l));k.b.authorName=l;null!=k.C&&Sf(k.C,(new wR("\u043e\u0442 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f "+k.b.authorName,void 0)).dc());GZ(k);k=this.o;l=a.b;k.b.ca=!A(B(l));if(null!=k.J){var m=Df("img");m.setAttribute("src",l);
I(m,"videoAdUiAuthorIconImage");k.J.appendChild(m);null!=k.D&&I(k.D,"videoAdUiTitleWithAuthorIcon");null!=k.C&&I(k.C,"videoAdUiAuthorNameWithAuthorIcon")}GZ(k)}ZZ(this)&&(Z(this).$=a,this.ka("youTubeChannelMetadata"));if((ib(CV(b))||!CV(b)[0].g)&&c.Z("enable_website_actions_info_cards")&&c.Z("enable_website_actions_info_cards_companion")&&U.b()&&lW(b)&&(k=Fha(b,a))){FV(b,k);try{g_(this,b)}catch(y){m0(this,f_,y)}}if(k=this.o)k=Z(this),l=k.ca,k=U.b()&&ib(CV(k))&&null!=k.$&&null!=l&&l.isListed;if(k){e_(this).O(window,
"message",this.yz);var k=Z(this),l=k.$.channelId,m=aU(k),n=this.g.sg,t=this.g.Zf,t=new L((null!=t?t:"//www.youtube.com/")+"ad_companion"),u=t.b;u.set("adformat",m);u.set("p",l);u.set("render","video_wall_companion");n&&u.set("content",n);l=new SX("1",new hf(300,250),"IFrame",null,t.toString());l.F=k;l.A=!0;ZV(b,new YU(l,[],null,!0));g_(this,b)}!aW(b)&&c.Z("enable_website_actions_info_cards")&&c.Z("enable_website_actions_info_cards_endcap")&&lW(b)&&Dha(b,a.authorName,a.b)},this))},a)};
lka=function(a,b){if(null!=a.o&&b.isListed){var c=a.o,d=b.title;c.b.G=!A(B(d));c.b.title=d;x0.test(pe(c.b.title,void 0));null!=c.D&&Sf(c.D,c.b.title);GZ(c);c=a.o;null!=c.ia?Sf(c.ia,SR()):null!=c.H&&Sf(c.H,SR())}ZZ(a)&&(Z(a).ca=b,a.ka("youTubeVideoMetadata"))};
y0=function(a){var b=Z(a).$;if(null!=b){var c;c=a.g.Zf;b=B(b.channelId);c=A(b)?null:(null!=c?c:"//www.youtube.com/")+"channel/"+(ta(b,"UC")&&24==b.length?b:"UC"+b);null!==c&&(a.b.pause(),jM(c))}};
mka=function(a){var b=zW.getInstance();if(b.g){var c={};if(null!=a.J){var d=(new L(a.J.g)).g;if(null!=d){var d=Za(d,".",10),e=d.length;2<=e&&(c.cd1=d[e-2]+"."+d[e-1])}c.cm1=a.J.Te;c.cd3=a.J.b;c.cd5=b.b;c.cm2=a.g.bitrate;c.cd2=dM(a.J.g)?"1":"0";d=a.J.cb();e=a.J.getHeight();null!=d&&null!=e&&(c.cd8=d+"x"+e);a.b&&(d=a.b.qd(),c.cd4=d.width+"x"+d.height);a=a.J.D;A(B(a))||(c.cd7=a)}b.end("bt",c)}};
z0=function(a,b){mc.call(this,"vpaidEvent");this.sessionId=b};
A0=function(a){YZ.call(this,a);this.Ga=this.ma=this.ia=!1;this.da=[];this.ba=Ua();this.o=null;this.C=!0;this.ha=-1;this.ga=new ce(500);this.na=this.$=-1;this.N=1;this.Aa=this.Ja="";this.R=!1;this.L=2==U.A};
C0=function(a){var b=DV(Z(a)),c=B(WV(Z(a))),d=jW(Z(a)),c={desiredBitrate:a.g.bitrate,creativeData:b,viewMode:a.H,clickThroughUrl:c,adUrl:d};jW(Z(a)).match("//s0.2mdn.net/instream/html5/survey/survey.html")&&0<=b.indexOf("yt_override")&&null!=a.g.surveyCreativeData&&(c.creativeData=a.g.surveyCreativeData);B0(a,"initAd",c);F(a.da,function(a){B0(this,a.type,a.params)},a);
a.ia=!0;a.da=[]};
D0=function(a,b,c){c=c||null;a.ia?B0(a,b,c):a.da.push({type:b,params:c})};
B0=function(a,b,c){c=c||{};c.session=a.ba;c.type=b;a.L?window.parent.postMessage(gg(c),"*"):null!=a.J.contentWindow&&a.J.contentWindow.postMessage(gg(c),"*")};
oka=function(a,b){var c={};b=Pa(b);var d;b.length?d=b.split(/\s+/):d=[];F(d,function(a){c[a]=!0});
Pb(nka,function(a,b){ZL().b.Z(b)&&(c[a]=!0)},a);
return Yb(c).join(" ")};
E0=function(a,b,c,d){d=sM(b,c,d);var e=VT(d,Z(a)),f=AV(Z(a));oM(f,e);b.message=d.b;uM(a,b,c)};
G0=function(a,b){if(w(b.type))switch(b.type){case "friendlyReady":C0(a);break;case "videoCall":switch(b.func){case "load":case "play":a.A.sh();a.Aa!=b.src&&(a.Aa=b.src,a.o.load(b.src,b.mimetype));a.o.play();break;case "pause":a.o.pause()}break;case "returnDuration":a.$=b.duration;break;case "returnRemainingTime":a.ha=b.remainingTime;break;case "AdClickThru":h_(a,"click");a.ka("click");break;case "AdDurationChange":a.$=b.duration;a.ha=b.remainingTime;Z(a).b.H=a.$;a.ka("durationChange");break;case "AdError":E0(a,
I_,Error(b.message));a.stop();break;case "AdExpandedChange":a.ka("expandedChanged");break;case "AdImpression":var c=Z(a);ib(CV(c))||g_(a,c);a.ka("impression");break;case "AdLinearChange":c=b.isLinear;!a.C&&c?(a.ka("contentPauseRequested"),D0(a,"becameLinear")):!c&&a.C&&(a.ka("contentResumeRequested"),D0(a,"becameNonlinear"),D0(a,"getAdRemainingTime"),D0(a,"getAdDuration"));a.C=c;var d=Z(a);d.ha=!0;d.ia=c;a.ka("linearChanged");break;case "AdLoaded":fe(a.na);a.ma=!0;d=b.companions;c=Z(a);ib(CV(c))&&
(d=$X(d,c.b.b),ib(d)||oV(c,d));F0(a);i_(a,"loaded");break;case "AdPaused":a.R=!0;i_(a,"pause");break;case "AdPlaying":a.R=!1;i_(a,"resume");break;case "AdRemainingTimeChange":a.ha=b.remainingTime;break;case "AdSkipped":i_(a,"skip");a.stop();break;case "AdSkippableStateChange":i_(a,"skippableStateChanged");break;case "AdStarted":h_(a,"impression");h_(a,"creativeview");a.ka("start");break;case "AdStopped":h_(a,"stop");a.stop();break;case "AdUserAcceptInvitation":a.C?h_(a,"acceptinvitationlinear"):h_(a,
"acceptinvitation");break;case "AdUserMinimize":h_(a,"collapse");break;case "AdUserClose":i_(a,"userClose");break;case "AdVideoComplete":i_(a,"complete");break;case "AdVideoFirstQuartile":i_(a,"firstquartile");break;case "AdVideoMidpoint":i_(a,"midpoint");break;case "AdVideoStart":h_(a,"start");break;case "AdVideoThirdQuartile":i_(a,"thirdquartile");break;case "AdVolumeChange":c=b.volume;c!=a.N&&a.ka("volumeChange");0==c&&0!=a.N?(h_(a,"mute"),a.ka("mute")):0==a.N&&0!=c&&h_(a,"unmute");a.N=c;a.o.setVolume(c);
break;case "Ping":kM(b.url)}};
H0=function(a,b){B0(a,"wrapperCall",{messageType:b})};
F0=function(a){a.ma&&a.Ga&&(D0(a,"startAd"),a.ga.start(),a.C||(D0(a,"becameNonlinear"),D0(a,"getAdRemainingTime")),D0(a,"getAdDuration"))};
I0=function(a,b,c,d,e,f,k){id.call(this);this.g=this.D=0;this.J=a;this.Ec=b;this.ia=c;this.B=null;this.K=d;this.ca=f;this.aa=U.o;this.G=this.H=this.C=this.b=null;this.ea=this.da=-1;this.$="normal";this.N=null;this.A=e;this.o=[];this.ha=this.R=this.ga=this.L=!1;this.ba=k;pka(this)};
J0=function(a,b,c,d){a.da=b;a.ea=c;null!=d&&(a.$=d);null!=a.b&&a.b.Wc(b,c,d)};
pka=function(a){F(a.J,function(a){a=new L(a.o.b);var c=a.b.get("max_ad_duration");p(c)||a.b.get("pmxd")})};
K0=function(a){return a.D<a.J.length&&null!=a.J[a.D]};
qka=function(a,b){var c;if(c=U.b()&&!ib(b)&&0==a.Ec)c=b[0],c=null!=c&&null==jW(c)&&cW(c,"nonlinear");return c?(c=JV(b[0]),"ADSENSE"==(0<c.length?c.pop():zV(b[0])).toUpperCase()):!1};
Q0=function(a){!K0(a)||2<=a.o.length-a.g?a.ga||(M0(a),N0(a)&&O0(a,a.g)&&P0(a,a.g),a.ga=!0,a.dispatchEvent("adBreakInitialized")):L0(a)};
L0=function(a){var b=a.J[a.D];Em(a.F,a.K,"adsLoaderSdkAdLoaded",a.Hr,a);U.o="on_master_ad";yja(a.K,b.o,b)};
M0=function(a){null==a.Ec||Th(a.o,function(a){return!a.g})||(a.o=le(a.o,function(a){return!(a.g&&!a.o)}))};
O0=function(a,b){var c;b<a.o.length?(c=a.o[b],ib(c.b)?c=!1:(c=c.b[0],c=null!=c?!JQ(qV(c),"rm"):!1)):c=!1;return c};
V0=function(a){if(O0(a,a.g)){var b=a.o[a.g];try{a.R?R0(a,a.b):N0(a)?(S0(a),a.b=a.H,a.C=a.G,a.H=null,a.G=null,a.A.Aq()):(S0(a),a.C=new Cm(a),a.b=T0(a,b,a.C),R0(a,a.b));null!=a.B&&(a.B.dispose(),a.B=null);if(U0(a.b)){var c=a.Bb();if(null==c||!eW(c)){var d=Z(a.b).b;if(null!==d){var e=d.qa;0>=e&&!a.ca.mp||(0>=e&&(e=15),a.B=new ce(1E3*e),Im(a.C,a.B,"tick",a.QD,a))}}}if(U0(a.b))a.dispatchEvent("contentResumeRequested"),a.A.Yc(),a.b.start(),null!=a.B&&a.B.start();else{var f=a.b;if(null!=f&&f instanceof Z_)a.A.sh(),
a.b.start();else{var k=a.b;if(null!=k&&k instanceof A0)a.A.Yc(),a.b.kb()?a.A.sh():a.dispatchEvent("contentResumeRequested"),a.b.start();else{var l=a.b;if(null!=l&&(l instanceof y_||l instanceof E_))a.A.Yc(),a.b.kb()||a.dispatchEvent("contentResumeRequested"),a.b.start();else throw Error("Unknown ads manager type.");}}}N0(a)&&O0(a,a.g+1)&&P0(a,a.g+1)}catch(m){a.g++,V0(a)}K0(a)&&L0(a)}else a.dispatchEvent("contentResumeRequested"),W0(a)};
R0=function(a,b){if(null===b)throw Error("Ads manager must be constructed before initialization");b.init(a.$);null!=a.N&&b.setVolume(a.N)};
T0=function(a,b,c){b=kZ(b.b);var d=new K_(a.A,N0(a));b.D=a.ba;Em(c,b,X0,a.Ir,a);Em(c,b,"companionBackfill",a.Ir,a);Em(c,b,"adError",a.PB,a);Em(c,b,"allAdsCompleted",r,a);Em(c,b,"contentPauseRequested",a.BA,a);Em(c,b,"contentResumeRequested",a.CA,a);Em(c,b,"userClose",a.DA,a);Em(c,b,"autoClose",a.AA,a);b.Qc(d,{currentTime:0},a.ca);b.Wc(a.da,a.ea,a.$);return b};
S0=function(a){a.A.Df();null!=a.B&&(a.B.dispose(),a.B=null);null!=a.C&&(a.C.dispose(),a.C=null);null!=a.b&&(a.b.destroy(),a.b=null)};
Y0=function(a){null!=a.G&&(a.G.dispose(),a.G=null);null!=a.H&&(a.H.destroy(),a.H=null)};
U0=function(a){return null!=a&&a instanceof m_};
W0=function(a){a.L=!1;a.dispatchEvent("allAdsCompleted")};
rka=function(a,b,c){if("loaded"==b||"start"==b||"adMetadata"==b||"companionBackfill"==b||"firstquartile"==b){var d=0,e=0;F(a.o,function(a,b){var c=a.b;d+=c.length;b<this.g&&(e+=c.length)},a);
b=c.A;c=e+b.B;b.o=d+(a.J.length-a.D);b.g=c;b.A=a.ia;b.b=a.Ec}};
P0=function(a,b){var c=a.o[b];a.G=new Cm(a);a.H=T0(a,c,a.G);R0(a,a.H)};
N0=function(a){null===a.A?a=!1:(a=a.A,a=!(null===a||a.gj()||U.b()||zM()||IM()||aB&&!DM(4))&&!1);return a};
Z0=function(a){mc.call(this,a);this.b=null};
$0=function(a,b,c){id.call(this);this.b=a;this.o=[];this.B=null!=c&&ga(c.backlog)?c.backlog:!1;this.C=null!=c&&ha(c.prefetch)&&0<=c.prefetch?c.prefetch:0;this.A=null;this.g=!1;ska(this,b)};
tka=function(a){this.b=a;this.o=this.g=!1};
a1=function(a){a.b.start();a.g=!0};
uka=function(a){if(a.g){var b=cb(a.o,function(a){return-1==a.b},a);
null!=b&&b1(a,!0,b)}};
ska=function(a,b){F(b,function(a){if((0,window.isNaN)(a))throw Error("The ad play time is not a number:"+a);Hb(this.o,new tka(a),function(a,b){return zb(a.b,b.b)})},a)};
vka=function(a,b){for(var c=[],d=0;d<a.o.length;d++){var e=a.o[d];-1!=e.b&&e.b<=b&&nb(c,e)}return c};
wka=function(a,b){for(var c=0;c<a.o.length;c++){var d=a.o[c];if(-1!=d.b&&b>=d.b-a.C&&b<d.b&&!a.o[c].g)return d}return null};
c1=function(a){a.dispatchEvent(new Z0("contentTrackingError"))};
b1=function(a,b,c){if(null!=c){if(!c.g){var d=new Z0("requestAds");d.b=c.b;a.dispatchEvent(d);c.g=!0}b&&!c.o&&(b=new Z0("playAds"),b.b=c.b,a.dispatchEvent(b),c.o=!0)}};
d1=function(a,b){G.call(this);this.A=a;this.b=-1;this.o=b};
e1=function(a,b){if(0==b.Ec||0>=a.o||0>=a.b)return!1;var c=C()/1E3,d=b.Ec-a.A.currentTime;0<d&&(c+=d);return c-a.b<=a.o};
jZ=function(a,b){YZ.call(this,[]);this.N=a;this.K=new Ag;this.C=this.o=null;this.ba=new io;this.J=null;this.$=b;this.na=this.da=!1;this.L=null;this.ma=0;this.ga=this.ha=-1;this.ia=null;this.Aa=0;this.R=!1};
yka=function(a,b){if(null!==a.A){var c=1;a.ma=0;F(b,function(a){if((0,window.isNaN)(a))throw rM(QW,null,"timeOffset",String(a));if(-1!=a&&-1>=a){var b=this.N;if((0,window.isNaN)(a)||!ha(a))throw Error("Incorrect time offset.");Cg(b.b,a)&&b.b.remove(a)}else if(b=ha(a)&&!(0,window.isNaN)(a)?this.N.b.get(a,[]):[],!ib(b)){this.ma+=b.length;var f;f=0==a||-1==a?a:c++;b=new I0(b,a,f,this.$,this.A,this.g,this.D);if(Cg(this.K,a))throw rM(xka,null,"Multiple ad breaks cannot share same ad play time.");this.K.set(a,
b)}},a)}};
zka=function(a,b){a.L=$a(b);Th(b,function(a){if(-1==a)return this.L=a,!0;this.L=this.L<a?a:this.L;return!1},a)};
h1=function(a,b){a.R=!1;a.dg(b);0==b.Ec?a.ij():(-1==b.Ec?(f1(a)||!U.b()&&a.da)&&g1(a):a1(a.C),a.J=null)};
i1=function(a){null!=a.F&&(a.F.dispose(),a.F=null);a.da=!1;null!=a.C&&a.C.Kb()};
j1=function(a){if(null==a.J){var b=lo(a.ba);if(null!=b){a.J=b;var c=a.K.get(a.J.b);if(null!=c)if(b=b.type,"requestAds"!=b&&"playAds"!=b)a.J=null,j1(a);else if(null!=a.ia&&e1(a.ia,c))a.J=null,j1(a);else if("requestAds"==b)a.R?(a.ba.isEmpty()||"playAds"!=mo(a.ba).type||lo(a.ba),h1(a,c)):(b=e_(a),Em(b,c,X0,a.dispatchEvent,a),Em(b,c,"adError",a.Wp,a),Em(b,c,"allAdsCompleted",a.Br,a),Em(b,c,"contentPauseRequested",a.Jq,a),Em(b,c,"contentResumeRequested",a.ij,a),Em(b,c,"userClose",a.JA,a),Em(b,c,"autoClose",
a.IA,a),Em(b,c,"adBreakInitialized",a.Cr,a),c.init(a.ha,a.ga,a.H));else{if("playAds"==b)if(a.R)h1(a,c);else if(null!=a.o&&a.o.Za()&&a.dg(a.o),a.o=c,a.o.setVolume(a.volume),J0(a.o,a.ha,a.ga,a.H),a.o.R){c=a.o;if(c.g<c.o.length){b=c.o[c.g];S0(c);try{c.C=new Cm(c),c.b=T0(c,b,c.C)}catch(d){c.g++,V0(c)}}a.ka("contentResumeRequested");a.C.getCurrentTime()>=a.Aa?null!=a.o&&a.o.start():a.J=null}else a.o.start()}else a.J=null,j1(a)}}};
g1=function(a){if(!a.na){a.na=!0;a.$.b=!0;try{UM(RM.getInstance(),44,{cmpl:!0})}catch(b){}a.ka("allAdsCompleted");-1==a.L&&k1(a)}};
k1=function(a){aM(ZL(),420706009)||SM.clear();null!=a.D&&(a=a.D.wf(),null!=a&&RS(a,SM.b))};
f1=function(a){return 0==a.K.Pa().length};
Aka=function(a){return null!=a.o?a.o:null!=a.J?a.K.get(a.J.b):null};
kZ=function(a){if(ib(a))throw Error("Ads manager creation failure, no ads.");var b=a[0],c=tV(b)&&U.b(),c=0!=U.A||c;switch(null!=jW(b)&&c?"vpaid":FQ&&null!=kW(b)&&0!=U.A?"flash_vpaid":rV(b,$V)&&null==jW(b)&&cW(b,"nonlinear")?"overlay":cW(b,"linear")?"video":cW(b,"nonlinear")&&null==jW(b)?"overlay":null){case "overlay":return rV(b,$V)?new p_(a):new m_(a);case "video":return new Z_(a);case "vpaid":return new A0(a);case "flash_vpaid":return 2==U.A?new E_(a):new y_(a)}throw Error("Ads manager creation failure, failed to determine ad type.");
};
l1=function(a){id.call(this);this.g=a;a=new qW(new LS);this.b=new gZ(0,a,SM);this.b.O("adsManagerLoaded",this.dispatchEvent,!1,this);this.b.O("adError",this.dispatchEvent,!1,this);this.b.O("adLoadError",this.dispatchEvent,!1,this)};
m1=function(a,b,c){hea();var d="",e=DN(),f=e.g,e=e.b;f&&f.url?d=f.url:e&&e.url&&(d=e.url);b.location=d;b.referrer=window.document.referrer;b.$c=AS(b.b,a.g.C);b.kn=a.g.H;xja(a.b,b,c)};
n1=function(a,b){eJ.call(this,a,b)};
o1=function(a){this.app=a;eq.call(this,a.Ya)};
p1=function(a,b,c){this.V=a;this.b=b||"";this.o=c||null;this.A=!1};
q1=function(a,b){var c=a.V;if(c.Sa&&("detailpage"==c.b||"leanback"==c.b||"embedded"==c.b&&(c.aa&&c.ab||c.experiments.Z("html5_playlist_preload")))&&!a.A){a.A=!0;Ri("TIMING_ACTION")||Qi("TIMING_ACTION",a.V.csiPageType);a.V.Ha&&Qi("CSI_SERVICE_NAME",a.V.Ha);if(a.o){var c=a.o.C,d;for(d in c)RC(d,c[d],a.b);d=a.o.A;for(var e in d)SC(e,d[e],a.b);e=a.o;e.C={};e.A={}}SC("yt_pvis",Fba(),a.b);SC("yt_pt","html5",a.b);b&&!UC("pbs",a.b)&&a.g("pbs",b);e=a.V;("detailpage"!=e.b||"blazer"==e.g)&&UC("_start",a.b)&&
aD(a.b)}};
s1=function(a,b){this.b=a;this.g=ha(b)?b:null;if(gb(r1,this.b)){if(!ha(this.g)||0>this.g)throw Error("Must have valid offset");}else if(null!==this.g)throw Error("Must not have offset");};
t1=function(a){var b=a.g;if(null!==b)return b;switch(a.b){case 1:return 0;case 3:return-1;default:return-100}};
Bka=function(a,b){var c=a.b,d=b.b;if(c!=d){if(1==c||3==d)return-1;if(1==d||3==c)return 1}var e=a.g,f=b.g;return e!=f?null===e?1:null===f?-1:e-f:c-d};
Cka=function(){var a;a:{try{a=window.top.location.href}catch(b){a=2;break a}a=null!=a?a==window.document.location.href?0:1:2}a={dt:tY,flash:jO||"0",frm:a};UN(a);return a};
u1=function(a){return a?-1!=a.toString().search(/(?:true|1)/i):!1};
v1=function(a,b){if(a){var c="getErrorCode"in a?a.jb():null;c?b.error_code=c:(c="getMessage"in a&&ia(a.getMessage)?a.b:a.message,c=Ja(c||"",50),b.error_message=c)}};
w1=function(a,b){if(a){var c=IV(a).reverse();b.ad_id=rb(c,GV(a)).join(",");c=JV(a).reverse();b.ad_sys=rb(c,zV(a)).join(",");c=$T(a);null!=c&&(b.aqi=c)}};
x1=function(a,b){if(a[b])return u1(a[b]);var c=b.toLowerCase(),d;for(d in a)if(d&&d.toLowerCase()==c)return u1(a[d]);return!1};
y1=function(a){var b="";a&2&&a&1?b="video":a&2?b="skippablevideo":a&1&&(b="standardvideo");a&4&&(b&&(b+="_"),b+="text_image_flash");return b};
z1=function(a,b,c){var d=new iN;d.Zf=b.baseYtUrl;d.sg=c.videoId;d.vn=!0;d.du=!0;d.eu=a.ba;d.showContentThumbnail=a.showContentThumbnail;d.Cg={};c.sb&&(d.Cg.ctrl=c.sb);c.tb&&(d.Cg.ytr=c.tb);c.nc&&(d.Cg.ytrcc=c.nc);c.isMdxPlayback&&(d.Cg.mdx="1");a.B?(d.Sk=!0,d.Wy=!0,d.showContentThumbnail=!1,d.tn=!0,d.un=!0,d.vn=!1):a.C&&(d.Sk=!0);d.zq=a.Sa;return d};
C1=function(a){var b=new iY;b.B=a.g.Ca;var c=a.app.D.Ia();b.ug=c.width;b.tg=c.height;b.od=c.width;b.nd=100;b.Mp=!0;c=new TL;c.Z=x(A1(a).experiments.Z,A1(a).experiments);c.b=x(A1(a).experiments.b,A1(a).experiments);c.g=x(A1(a).experiments.F,A1(a).experiments);b.Zj=c;if(c=b.Mp?ir():-1)b.D=c;a.g.tagForChildDirected&&(b.Oj=!0);a.g.ab&&(b.ej=!0);c=B1(a);b.Eb={CA_TYPE:FQ?"flash":"image",CONTENT_V:c.videoId,CPN:c.clientPlaybackNonce,LACT:Dka(a),VIS:Eka(a)};Pb(Cka(),function(a,c){b.Eb[c.toUpperCase()]=a});
b.afcRmFallback=a.g.H;A1(a).experiments.Z("ad_block_content_id")&&(b.A="yt_"+B1(a).videoId);b.language=A1(a).qa;b.Ci=Fka(A1(a).experiments);return b};
Fka=function(a){var b=null,c=null;Fz().then(function(a){b=a},function(a){c=a});
if(null!=b)return b;if(null!=c)return c;var d=a.b("html5_serverside_biscotti_id_wait_ms"),e=a.Z("html5_serverside_call_server_on_biscotti_timeout"),f=Error("Timed out while waiting for Biscotti ID");if(0==d)return e?"NO_BID":f;if((0,window.isNaN)(d))return Fz();var k;a=new Ed(function(a,b){k=new ge(function(){e?a("NO_BID"):b(f)},d);
k.start()});
a=Md([Fz(),a]);Rd(Td(a,r),function(){k.dispose()});
return a};
Dka=function(a){return{toString:function(){return null==a||a.isDisposed()?a=null:ir().toString()}}};
Eka=function(a){return{toString:function(){return null==a||a.isDisposed()?a=null:qG(A1(a)).toString()}}};
Gka=function(a){return{toString:function(){if(null==a||a.isDisposed())return a=null;var b=a.D?a.D.g():null;return null==b||0>b?"0":Math.ceil(.001*C()-b).toString()}}};
D1=function(a,b,c,d){this.g=this.A="";this.o=a;this.C=b;this.b=c;this.B=d};
G1=function(a){var b=E1(a);b.format="2_3";b.at="2_3";b.trsp="1";F1(a.b,3,b)};
E1=function(a){var b={};b.l_ns=a.C;b.l_state=a.B;b.break_type=a.o.b;b.sst=t1(a.o);b.sidx=0;a.A&&(b.at=a.A);a.g&&(b.ad_id=a.g);return b};
H1=function(a){G.call(this);this.g=new ge(x(this.D,this),1E3);H(this,this.g);this.C=null!=a&&0<a.b("mpu_visible_threshold_count")?a.b("mpu_visible_threshold_count"):2;this.B=this.o=0;this.b=Pd();this.A=!1};
K1=function(){var a=q("yt.www.watch.ads.loadAfc");ia(a)?(a(),I1=!0):J1=!0};
L1=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"};
N1=function(){var a=q("window.google_show_companion_ad"),b;b=q("yt.www.watch.ads.getGlobals");ia(a)&&ia(b)?(b=b(),b=!(!b||!b.length)):b=!1;b?a():M1=!0};
Q1=function(a){N1();O1();return P1(a)};
P1=function(a){R1||(R1=new H1(a));a=R1;a.A||(a.g.start(),a.A=!0);return a.b.o};
O1=function(){R1&&(R1.dispose(),R1=null)};
S1=function(){var a=q("yt.www.watch.ads.setCompanion");a&&a()};
Hka=function(a){var b=q("yt.www.watch.ads.showForcedMpu");b&&b(a)};
U1=function(a,b,c,d){pk.call(this);this.C=!!b;this.D=a;this.g=c||a;this.G=!!d;this.b=new Fx(this);this.B=this.F=null;this.A=this.o=!1;b&&(Cc&&a.setAttribute("draggable","true"),a.style.setProperty("touch-action","none"));T1(this)};
T1=function(a){a.B=null;a.F=null;a.b.S(a.g,V1("over"),a.qu);a.b.S(a.g,"touchstart",a.Gn);a.C&&a.b.S(a.g,V1("down"),a.HB)};
W1=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};
V1=function(a){return window.navigator.msPointerEnabled?"MSPointer"+a.charAt(0).toUpperCase()+a.substr(1):"mouse"+a};
X1=function(a,b){this.g=a;this.b=b};
Y1=function(a){return a.b-a.g};
Z1=function(a,b){return a.g+b*Y1(a)};
$1=function(a,b,c){return Y1(a)?af((b-a.g)/Y1(a),0,1):null!=c?c:window.Infinity};
a2=function(){this.g=this.position=this.A=this.b=this.B=this.o=this.width=window.NaN};
b2=function(a,b,c,d,e){var f=b.vr/b.rows,k=Math.min(c/(b.xr/b.Yb),d/f),l=b.xr*k,m=b.vr*k,l=Math.floor(l/b.Yb)*b.Yb,m=Math.floor(m/b.rows)*b.rows,n=l/b.Yb,t=m/b.rows,u=-b.Ny*n,y=-b.aG*t;e&&45>=f&&(t-=1/k);n-=2/k;a=a.style;a.width=n+"px";a.height=t+"px";e||(d=(d-t)/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+") "+u+"px "+y+"px/"+l+"px "+m+"px";if(e)return new hf(n,t)};
c2=function(a,b,c,d){pk.call(this);this.b=a;this.g=d;this.videoData=null;this.adType=c;this.adSystem=b};
Ika=function(a,b){this.b=a;this.g=b||0};
d2=function(a){var b=[];F(a.split("_"),function(a,b){this[b]=Va(a)},b);
return new Ika(Vb(Jka,b[1])?b[1]:0,Vb(Kka,b[2])?b[2]:0)};
Lka=function(){this.clickThroughUrl="";this.isSkippable=!1;this.skipShown=this.skip=r;this.skipTime=0;this.videoUrl=this.videoId="";this.adSystem=0;this.muteAdInfo=this.whyThisAdInfo=null;this.whyThisAdClosed=this.whyThisAdClicked=this.muteAd=this.sendAdsPing=r};
e2=function(a){var b;b=["div","video-ads",["div","video-ad-status-bar",["div","video-ad-label",N("YTP_ADVERTISEMENT")]],["div","ad-container"]];R.call(this,b);this.o=a;this.b=this.B=this.A=null};
f2=function(a){a.A||(a.A=a.pa["ad-container"],S(a.o).R&&I(a.A,"ad-container-single-media-element-annotations"));return a.A};
h2=function(a){a.b&&(S(a.o).R?(a.b.Pv("ad-video"),g2(a.o.app,a.b),a.b=null):(a.b.Xs(),kI(a.b)))};
i2=function(a){if(!a.B){var b=Df("div");ke(b,["video-click-tracking","ad-video"]);f2(a).appendChild(b);a.B=b}return a.B};
Mka=function(a){this.b=a};
Nka=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};
j2=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;default:return 0}};
Oka=function(a,b){this.B=null;this.o=window.NaN;this.g=null;this.b=a;this.A=b};
k2=function(a,b,c){a.b.X("AD_LOGGING_EVENT",b,c)};
n2=function(a,b,c){l2(a);var d=m2(a);c&&ra(d,c);d.ad_error=b;k2(a,7,d)};
m2=function(a){var b={},c=a.b.videoData,d=a.b.Yp(),e=a.b.Vn();w1(a.b.Bb(),b);d&&0<d&&(b.ad_len=d);b.ad_v="0";c&&c.videoId?b.ad_v=c.videoId:e&&(c=Lg(e),b.ad_dom=c,a.A.g.C&&(b.ad_v_url=e.substr(0,512)));e=a.b;(e=e.g?e.g.hg():null)&&(b.ad_cpn=e);b.format=a.b.ed();b.at=a.b.Oe();b.ad_mt=Math.round(1E3*Math.max(Pka(a.b),0));return b};
l2=function(a){a.B||(a.B="InstreamAdDisplay ("+a.b.ed()+")")};
o2=function(a,b){G.call(this);this.A=Math.max(0,a);this.o=this.g=0;this.B=b;this.b=window.NaN};
q2=function(a,b,c,d,e,f,k){c2.call(this,b,a,2,c);this.J=!1;this.D=this.N=this.K=null;this.b.subscribe("control_toggle_play_pause",this.nv,this);this.b.subscribe("control_play",this.Rm,this);this.b.subscribe("control_pause",this.Qm,this);this.B=new Oka(this,this.b);this.o=new it(this);this.A=p2(b);this.A.subscribe("statechange",this.lv,this);this.A.subscribe("internalAbandon",this.Ar,this);this.A.subscribe("internalvideodatachange",this.mv,this);this.C=this.F=!1;this.R=d;this.L=!!e;this.aa=!!f;this.G=
k;this.H=new o2(15E3,x(this.nk,this))};
s2=function(a,b){var c=A1(a.b);a.b.g.ba&&"3"==c.A&&(c=a.b.app.D,c.G=!b,r2(c))};
v2=function(a){bD("ad_to_video",["pbresume"]);a.G&&SC("yt_abt",a.G,"ad_to_video");a.videoData&&a.videoData.clientPlaybackNonce&&SC("ad_cpn",a.videoData.clientPlaybackNonce,"ad_to_video");RC("adc",void 0,"ad_to_video");DI(p2(a.b));t2(a.b,0);u2(a.b,0);a.X("adEnd",a);s2(a,!0)};
w2=function(a,b){A1(a.b).experiments.Z("html5_ad_error_releases")?DI(a.A):iI(a.A);t2(a.b,0);a.X("adError",b)};
Pka=function(a){return a.A?a.A.getCurrentTime():0};
x2=function(a){a=a.Bb();return a?(a=a.D.get("why_this_ad"))?{menuTitle:a.A,targetingReasonHeader:a.B,targetingReasons:sb(a.C),closeButton:a.o,adSettingsLink:sb(a.g),controlText:a.G,continueButton:a.F,cancelButton:a.D}:null:null};
y2=function(a){a=a.Bb();if(!a)return null;a=a.D.get("mute");if(!a)return null;for(var b=yX(a),c=[],d=0;d<b;d++)c.push({label:a.g[d].label,url:a.g[d].url});return{goneText:a.o,questionText:a.B,undoText:a.C,hoverText:a.A,surveyOptions:c}};
Qka=function(a,b){this.b=a;this.B=b;this.b.ed();this.g=this.A=0;this.o=null};
z2=function(a,b,c){a.b.X("AD_LOGGING_EVENT",b,c)};
A2=function(a){var b={};w1(a.b.Bb(),b);a.A&&a.g&&(b.ot=a.g-a.A);b.ad_ps=a.B.Qa()?2:a.B.app.ia?1:0;b.format=a.b.ed();b.at=a.b.Oe();return b};
B2=function(a,b,c,d){c2.call(this,b,a,1,c);this.o=null;this.C=!1;this.F=null;this.B=new Qka(this,b);this.A=new it(this);this.D=!!d};
C2=function(a,b){a.F!=b&&(a.F=b)};
D2=function(a,b,c,d){G.call(this);this.K=null;this.R=a;this.g=b.qb;this.F=b;this.H=b.getId();this.b=c;this.C=d;this.o=new D1(this.g,this.Zg(),c,d);this.B=null;this.N=new Cm(this);this.A=new Cm(this);this.L=/^(http(s)?:\/\/)(.*.)?youtube.com\/.*$/};
E2=function(a){var b=new s1(2,10);a.g=b;a.o.o=b};
F2=function(a,b){a.K=b;var c=b.ed();a.o.A=c};
G2=function(a,b){var c=q("yt.www.watch.ads.setAdId");c&&c(b);a.o.g=b};
H2=function(a){a=t1(a.g);return 0==a||-1==a?a:1E3*a};
I2=function(a){Q1(A1(a.b).experiments).then(function(){G1(this.o)},r,a)};
N2=function(a){var b=a.F,c=a.g;b.b=a.K;b.qb=c;H(b,b.b);0==b.wa&&(a=b.b.Oe(),b.o.da.at=a);b.b instanceof q2?b.g=!0:b.b instanceof J2?b.isVisible=!1:b.b instanceof K2?b.isVisible=!1:b.b instanceof L2&&(b.isVisible=!1);b.A="loaded";M2(b)};
Rka=function(a){this.b=a};
J2=function(a){c2.call(this,a,2,3,null);this.B=this.A=this.o=0};
O2=function(a){a.o&&(Wi(a.o),a.o=0,a.A=0,a.B=0)};
P2=function(a,b,c){D2.call(this,2,a,b,c);this.D=new Rka(this.b.g);L1()};
Q2=function(a,b,c){this.g=this.C="";this.F=null;this.A=!1;this.B=this.o="";a&&(this.C=a,this.isLiveStream=b.isLiveStream,this.A=b.Wa,this.D=c,b=this.C,c=b.indexOf(";sz="),a=Mj(b.substring(c),";"),b=b.substring(0,c).split("pfadx"),a=2!=b.length?null:{Gy:b[0],LF:b[1],PF:a})&&(this.o=a.Gy,this.B=a.LF,this.F=a.PF)};
R2=function(a){this.g=a?a:""};
L2=function(a,b,c,d){B2.call(this,1,a,b,d);this.G=c};
S2=function(a,b,c){D2.call(this,1,a,b,c);a=this.b.g;this.aa=a.da?new R2(a.adTag):new Q2(a.adTag,a,this.H)};
T2=function(a,b,c,d){S2.call(this,a,b,c|d);this.J=c;this.G=d;this.D=null;L1()};
U2=function(a,b){var c=b.Bb(),d=JV(c);d.unshift(zV(c));for(c=0;c<d.length;++c){var e=Ska[d[c].toUpperCase()];if(e){a.D=e;return}}a.D=0};
V2=function(a,b){this.B=[];this.K=a;this.J=b||null;this.A=this.b=!1;this.o=void 0;this.G=this.L=this.D=!1;this.C=0;this.g=null;this.F=0};
X2=function(a,b,c){a.b=!0;a.o=c;a.A=!b;W2(a)};
Z2=function(a){if(a.b){if(!a.G)throw new Y2;a.G=!1}};
a3=function(a,b,c){$2(a,b,null,c)};
$2=function(a,b,c,d){a.B.push([b,c,d]);a.b&&W2(a)};
b3=function(a){return Th(a.B,function(a){return ia(a[1])})};
W2=function(a){if(a.C&&a.b&&b3(a)){var b=a.C,c=c3[b];c&&(aa.clearTimeout(c.wa),delete c3[b]);a.C=0}a.g&&(a.g.F--,delete a.g);for(var b=a.o,d=c=!1;a.B.length&&!a.D;){var e=a.B.shift(),f=e[0],k=e[1],e=e[2];if(f=a.A?k:f)try{var l=f.call(e||a.J,b);p(l)&&(a.A=a.A&&(l==b||l instanceof Error),a.o=b=l);if(Cd(b)||"function"===typeof aa.Promise&&b instanceof aa.Promise)d=!0,a.D=!0}catch(m){b=m,a.A=!0,b3(a)||(c=!0)}}a.o=b;d&&(l=x(a.H,a,!0),d=x(a.H,a,!1),b instanceof V2?($2(b,l,d),b.L=!0):b.then(l,d));c&&(b=
new d3(b),c3[b.wa]=b,a.C=b.wa)};
Y2=function(){sa.call(this)};
e3=function(){sa.call(this)};
d3=function(a){this.wa=aa.setTimeout(x(this.g,this),0);this.b=a};
f3=function(a,b){var c=b.g;this.D=c.forceAdUrl;var d=0,c=c.forceAdType.toUpperCase();"INVIDEO"==c?d=4:"INSTREAM"==c?d=1:"MPU"==c&&(d=8);D2.call(this,2,a,b,d)};
g3=function(){this.B=new R(["button",["ad-carousel-nav-button","ad-carousel-nav-prev"],{type:"button",onclick:"return false;"},["span",["ad-carousel-prev-icon","yt-uix-tooltip","yt-sprite"],{"data-tooltip-text":"Prev",title:"Prev"}]]);H(this,this.B);this.B.O("click",this.F,this);this.A=new R(["button",["ad-carousel-nav-button","ad-carousel-nav-next"],{type:"button",onclick:"return false;"},["span",["ad-carousel-next-icon","yt-uix-tooltip","yt-sprite"],{"data-tooltip-text":"Next",title:"Next"}]]);
H(this,this.A);this.A.O("click",this.D,this);R.call(this,["div","ad-carousel",["div","ad-carousel-clip",["ul",["ad-carousel-list","ad-carousel-list-animation"],"{{items}}"]],this.B,this.A]);this.C=this.pa["ad-carousel-list"];this.o=0;this.b=[]};
Tka=function(a,b){a.clear();a.b=M(b,function(a){var b=new R(["li","ad-carousel-listitem",["div","ad-carousel-item",a]]);H(b,a);return b});
a.va("items",a.b)};
i3=function(a){a.C&&Gs(a.C,"left",(2>a.b.length?0:-a.o*a.b[1].element.clientWidth)+"px");a.B.fb(0<a.o);a.A.fb(a.o<a.b.length-h3(a))};
h3=function(a){return 2>a.b.length?1:Math.floor((a.element.clientWidth-a.b[0].element.clientWidth)/a.b[1].element.clientWidth)+1};
j3=function(){this.b=new g3;this.B=new Fx(this);H(this,this.B);this.C=new ge(this.pn,200,this);H(this,this.C);var a=["div","iv-btp-companion",["div","iv-btp-block-clicks"],["div","iv-btp-attribution",["span","iv-btp-title","{{title}}"],["div",["yt-uix-hovercard","ad-info-container"],["span","iv-btp-sponsored",N("YTP_SPONSORED")],["span","yt-uix-hovercard-target",{"data-position":"topright","data-orientation":"horizontal"},["span","ad-info-icon"]],["div","yt-uix-hovercard-content",["span","ytp-ad_settings",
N("YTP_SPONSORED_PRODUCT_INFO")]]]],this.b];JK.call(this,a);this.A=this.pa["iv-btp-block-clicks"];this.o=new ge(qa(function(a){bt(a,!1)},this.A),1E3);
H(this,this.o);this.B.S(window,"resize",this.Jz)};
Uka=function(a,b){a.clear();bt(a.A,!0);var c=M(b,x(a.Ry,a));a.va("title",0<b.length?hia(b[0]):"");Tka(a.b,c);a.pn()};
Xka=function(a){return Vka().then(qa(Wka,a))};
Vka=function(){k3||(k3=Yka()?Id():new Ed(function(a){gj("watchAdsInit",a)}));
return k3};
Yka=function(){var a=q("yt.www.watch.ads.promotionShelfShow");return ia(a)};
Wka=function(a){var b=q("yt.www.watch.ads.promotionShelfClear");b&&b();b=q("yt.www.watch.ads.promotionShelfShow");null!=b&&b(a)};
l3=function(a,b){c2.call(this,a,14,14,b);this.o=new j3;H(this,this.o)};
Zka=function(a){var b=a.g.Bb().H,c=le(b,function(a){a=a.xf().Nf.show_in_promotion_shelf;return null!=a?!!a:!1});
ib(c)&&(c=b);ib(c)||(Uka(a.o,c),Xka(a.o.element).then(a.o.start,null,a.o))};
m3=function(a,b,c){D2.call(this,14,a,b,c)};
n3=function(a,b,c){D2.call(this,14,a,b,c)};
o3=function(a,b){return"9t_D9IIh_ZI"==b.ga||a.experiments.Z("enable_html5_freewheel_longform")};
$ka=function(a,b,c,d,e){this.A=a;this.o=b;this.b=c;this.V=A1(this.A);this.B=d;this.C=B1(this.A).lengthSeconds;this.D=e;this.g="html5";p3(this)&&"embedded"==this.V.b?this.g="html5_embed":IA||HA?this.g="html5_ios":Kp("android")?this.g="html5_android":Sp()?this.g="html5_wp":Np()?this.g="html5_ps3":"leanback"==this.V.b?(a=(Zb(window,"environment","brand")||"").toLowerCase(),b=(Zb(window,"environment","model")||"").toLowerCase(),this.g="roku"==a||"bskyb"==a?"roku":"wiiu"==b?"wii":"html5_tv_leanback"):
Rp()?this.g="html5_wii":p3(this)&&(this.g="html5_desktop")};
r3=function(a){var b="";a.b.A&&!a.b.o?b=";linear-skippable":!a.b.A&&a.b.o&&(b=";video");return q3(a)+b};
q3=function(a){return s3(a.o)?"preroll":t3(a.o)?"postroll":"midroll"};
v3=function(a){return(a=a.A.o)?Th(a.o,function(a){return u3(a)||t3(a)}):!1};
p3=function(a){return!v3(a)||o3(a.V,a.b)};
K2=function(a,b){B2.call(this,4,a,b)};
w3=function(a,b,c){D2.call(this,4,a,b,c);var d=this.b.g;this.D=B(d.Ha);var e=B1(this.b)&&B1(this.b).spacecastModule;this.G=new $ka(b,a,d,c,!!e)};
x3=function(a,b,c){this.o=a;this.b=b;this.g=c||0};
ala=function(a){return 0<((a.b|a.g)&3)};
y3=function(a,b,c,d,e){pk.call(this);this.D=!0;this.g=!1;this.isVisible=!0;this.A="unloaded";this.F=!1;this.wa=b;this.o=a;this.qb=c;this.C=d;this.B=this.b=null;this.G=!!e};
B3=function(a){return s3(a)?z3(a)&&A3(a)?-0x8000000000000:0:ha(a.qb.g)?1E3*t1(a.qb):0x8000000000000};
bla=function(a){var b=!A1(a.o).experiments.Z("disable_fetching_previous_nonadjacent_midrolls");return s3(a)||b&&a.o.b&&1E3*a.o.b.getCurrentTime()>=B3(a)?!1:Sk(a.C,function(a){switch(a.Fb()){case 1:case 2:case 3:case 5:return!0;default:return!1}})};
z3=function(a){return"loaded"==a.A||"error"==a.A};
s3=function(a){return 1==a.qb.b};
A3=function(a){if(!z3(a))throw Error("Preroll status is undefined before ad load.");return s3(a)&&a.g};
u3=function(a){return 2==a.qb.b};
t3=function(a){return 3==a.qb.b};
F3=function(a){a.A="loading";s3(a)&&!Th(a.C,ala)&&iq(a.o);if(a.G)a.A="loaded",a.g=!0,M2(a);else{var b=a.C.shift();b?(s3(a)&&C3(a.o,"nl"),b=b.create(a,a.o),H(a,b),b.load()):(F1(a.o,2,D3(a,{})),E3(a,!1),a.A="error",M2(a))}};
G3=function(a){a.b&&(a.b.Fa("adEnd",a.Er,a),a.b.Fa("adError",a.ev,a),a.b.Fa("AD_LOGGING_EVENT",a.ds,a),a.b.Fa("select",a.dv,a),a.b.Fa("adCompanionInitialized",a.fv,a))};
M2=function(a){a.X("adBreakComplete",a)};
E3=function(a,b){a.B&&(a.B.Lf({FILLED_OPPORTUNITY:b?1:0}),a.B.dispose(),a.B=null)};
D3=function(a,b){b.break_type=a.qb.b;b.sst=t1(a.qb);b.sidx=0;return b};
H3=function(a){var b=0;a.K&&(b|=1);a.J&&(b|=2);var c=0;a.D&&(a.F&&(c=4),b||a.aa||(b=c,c=0));a=new Ag;a.set(3,b);a.set(4,c);return a};
I3=function(a,b){var c=[];if(a.ea)return c.push("pla"==(a.forceAdType||"").toLowerCase()?new x3(8,16):new x3(4,0)),c;if(a.independentBreakOffsets&&5==b)return a.aa&&c.push(new x3(7,16)),c;if(a.L){var d=0;if(a.o||a.A)d|=1;a.N&&(d|=4);a.R&&(d|=8);c.push(new x3(5,d))}d=0;a.G&&(a.o&&(d|=1),a.A&&(d|=2),a.N&&a.D&&(d|=4),a.R&&a.D&&(d|=8));var e=H3(a),f=e.get(3);d&&f&&dla(a,b)?c.push(new x3(3,d,f)):(d&&c.push(new x3(2,d)),f&&c.push(new x3(1,f)));a.independentBreakOffsets||f&4||!a.aa||c.push(new x3(7,16));
(d=e.get(4))&&c.push(new x3(1,d));return c};
J3=function(a){this.b=a};
K3=function(a){var b=[];F(ela(a),function(a,d){var e=new y3(this.b,d,a,I3(this.b.g,a.b));b.push(e)},a);
return b};
ela=function(a){var b=a.b.g,c=[];if(b.L&&!o3(A1(a.b),b))c=L3;else if(b.ha){var d=b.ha.split(",");for(a=0;a<d.length;a++){var e=Va(d[a]),e=0>e?new s1(3):0<e?new s1(2,e):new s1(1);c.push(e)}}else c=L3;if(b.independentBreakOffsets)for(b=b.independentBreakOffsets.split(","),a=0;a<b.length;a++)c.push(new s1(5,Va(b[a])));Cb(c,Bka);return c};
ila=function(a,b){this.V=a;this.B=this.V.isMobile;this.C="leanback"==this.V.b;this.b=this.B||this.C;this.ba=!this.C&&!LA(a);this.o=u1(b.instream);this.isLiveStream=1==b.livestream;this.A=u1(b.trueview);this.ca=u1(b.aftv);this.ha=b.ad_slots;this.independentBreakOffsets=b.independent_break_offsets;this.adFlags=b.ad_flags||0;this.ia=b.cafe_experiment_id;this.adTag=b.ad_tag;this.Oa=!!b.adtest;this.afvAdTag=b.afv_ad_tag;fla(this.afvAdTag);this.afvInvideoAdTag=b.afv_invideo_ad_tag;this.na=(0,window.parseInt)(b.ad_age,
10);this.applyFadeOnMidrolls=!!b.apply_fade_on_midrolls&&(this.o||this.A)&&!this.V.useMediaVolume;this.Aa=b.cid;this.ga=zz(b);this.dynamicAllocationAdTag=b.dynamic_allocation_ad_tag;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.Ca=(0,window.parseInt)(b.forced_skip_offset,10);this.forceAdType=b.force_ad_type;this.forceAdUrl=b.force_ad_url;this.Ha=b.freewheel_ad_tag;this.gender=bc(gla,function(a){return a==b.ad_gender});
this.ma=b.dbp;this.H=u1(b.afc_rm_fallback);this.Wa=!!b.mpu;this.F=u1(b.afv)&&!this.b;this.J=this.ca&&this.A;this.K=this.ca&&this.o&&!u1(b.no_afv_instream);this.G=u1(b.dclk);this.da=u1(b.gpt_migration);this.ea=u1(b.forced_ad);this.L=1==(0,window.parseInt)(b.tpas_ad_type_id,10);this.Xa=!!b.fqsf;this.N=u1(b.invideo)&&!this.b;this.R=u1(b.mpu)&&!this.b;this.aa=!!b.pla;this.Ga=u1(b.shortform);this.D=u1(b.sffb);this.gb=b.ad_language_iso639_2;this.maxDynamicAllocationAdTagLength=(0,window.parseInt)(b.max_dynamic_allocation_ad_tag_length,
10);(0,window.isNaN)(this.maxDynamicAllocationAdTagLength)&&(this.maxDynamicAllocationAdTagLength=2E3);this.g=(0,window.parseInt)(b.midroll_freqcap,10);(0,window.isNaN)(this.g)&&(this.g=-1);this.midrollPrefetchSize=(0,window.parseInt)(b.midroll_prefetch_size,10)||0;this.Ja=b.pla_ad_tag;ga(b.show_content_thumbnail)&&(this.showContentThumbnail=b.show_content_thumbnail);this.tagForChildDirected=u1(b.tag_for_child_directed);this.serverPrefetchedVast=b.server_prefetched_vast;this.surveyCreativeData=b.surveyCreativeData;
this.$=this.ca&&this.D&&!this.F;this.ua=this.F||this.$;this.Na=(0,window.parseInt)(b.ad_device,10);this.qa=b.tpas_video_id;this.La=b.tpas_partner_id;this.vmap=b.vmap;this.Ub=this.V.Ub;this.ab=b.post_ad_requests;this.showContentThumbnail=!0;this.Sa=hla(b.serialized_ad_ux_config)};
dla=function(a,b){if(A(B(a.dynamicAllocationAdTag)))return!1;var c=(a.o||a.A)&&a.G;a.D&&a.G&&(c=c||a.N||a.R);if(!c)return!1;c=a.J||a.K;if(!(c||a.D&&a.F))return!1;if(1==b&&a.serverPrefetchedVast)return!0;var d=a.dynamicAllocationAdTag.length+330+(a.da?25:102);window.document.referrer&&(d+=va("ref="+va(window.document.referrer)).length);c||(d+=41);return d<=a.maxDynamicAllocationAdTagLength};
fla=function(a){A(B(a))||(new L(a)).b.get("channel")};
hla=function(a){if(a)try{var b=bg(a);return new cN(b)}catch(c){}return null};
M3=function(a,b){G.call(this);this.C=a;this.o=new Cm(this);H(this,this.o);this.g=null;this.b=!1;this.o.O(b,"companionImpression",this.B);this.o.O(b,"companionClick",this.A)};
O3=function(a,b){G.call(this);this.b=a;this.H=b;this.D=a.b.getVideoData();this.A=[];this.g=0;this.o=window.NaN;this.B=this.C=this.F=0;this.G=!1;var c=A1(a).experiments;this.K=c.Z("enable_dynamic_ad_break")&&!!this.D.lengthSeconds&&600<this.D.lengthSeconds;this.L=c.b("dynamic_ad_break_pause_threshold_sec")||5;this.R=c.b("dynamic_ad_break_seek_threshold_sec")||120;this.K&&N3(this.b,this.J,this)};
P3=function(a){return(a.b.A?a.G:!!a.b.o&&0==a.b.o.o.length)&&1==a.b.getPresentingPlayerType()};
Q3=function(a,b){var c=null!=Qj(A1(a.b).H).debugjs,d=a.D.videoId,e=a.D.eventId,f=a.g,k;k=a.A.length?a.A[a.A.length-1]:Math.max(a.H.g(),a.C);k=C()/1E3-k-a.B;c=Sj("/gen_204?"+Sg({a:"longform-dynamic-ad-break-desktop-"+b,vid:d,eid:e,mt:f,cwt:k,dt:C()/1E3,dab:a.A,paet:Math.max(a.H.g(),a.C),debug:c}),{});Vp(c)};
R3=function(a){G.call(this);this.b=a;this.g=window.NaN;this.B={};a=a.g;this.C=a.fadeInDurationMilliseconds;this.D=a.fadeInStartMilliseconds;this.o=a.fadeOutDurationMilliseconds;this.A=a.fadeOutStartMilliseconds;this.Ut()};
S3=function(a,b){a.B[b]&&(zJ(a.b.b,[a.B[b]],void 0),delete a.B[b])};
T3=function(a,b,c,d){0>=c||((0,window.isNaN)(a.g)||Vi(a.g),c=C()+c,a.g=0==d?Oq(x(a.qv,a,b,c,100),0):Oq(x(a.pv,a,b,c,100),0))};
U3=function(a,b,c){a=B1(a.b).Db;b.setVolume(c*a)};
V3=function(a){R3.call(this,a)};
W3=function(a,b,c){G.call(this);this.b=a;this.D=b;this.B=c;this.o=-1;this.C=window.NaN;this.B&&0<this.b.g.g&&this.b.subscribe("endseeking",this.A,this)};
jla=function(a,b){X3(a);0<b&&(a.C=Ti(x(a.A,a),1E3*b))};
X3=function(a){Vi(a.C);a.C=window.NaN};
Z3=function(a,b){if(!a.B||!u3(b)&&!t3(b))return!1;var c=a.b.g.g;if(0>=c||0>=a.o)return!1;var d=C()/1E3,e=Y3(a,b)-a.b.b.getCurrentTime();0<e&&(d+=e);return d-a.o<=c};
Y3=function(a,b){return t3(b)?a.b.b.getVideoData().lengthSeconds:t1(b.qb)};
$3=function(a,b){G.call(this);this.J=this.b=null;this.L=[];this.N=window.NaN;this.o=b;this.G=[];this.A={};this.D={};this.g=a;var c=a.g,d=!c.isLiveStream&&Th(this.o,function(a){return u3(a)||t3(a)});
this.B=new W3(this.g,this,d);this.C=c.applyFadeOnMidrolls?new R3(a):new V3(a);this.da=new O3(this.g,this.B);this.$=Th(this.o,function(a){return s3(a)})};
kla=function(a){a.G.length||(a.G=le(a.o,function(a){return"unloaded"==a.A}),0==a.G.length?iq(a.g):(a.$||iq(a.g),a4(a)))};
a4=function(a){if(a.G.length){var b=a.G.shift();b.subscribe("adBreakComplete",a.Ag,a);b.subscribe("adCompanionInitialized",a.Nm,a);F3(b)}};
lla=function(a,b){function c(a){return a&&5!=a.qb.b}
var d=fb(a.o,b),e=ub(a.o,d+1);return{previous:cb(ub(a.o,0,d),c),next:cb(e,c)}};
b4=function(a,b,c){var d=B3(b);if(!(0,window.isNaN)(d)){var e={};e.priority=-2!=t1(b.qb)?2:3;e.id=String(b.getId());e.visible=b.isVisible;d=a.C.Nt(b,d);c=a.C.Mt(b,c);c=new bq(d,c,e);a.D[b.getId()]=c;a.g.vb([c]);a.C.bp(b)}};
c4=function(a,b){var c=b.getId();a.D[c]&&(S3(a.C,c),zJ(a.g.b,[a.D[c]],void 0),delete a.D[c])};
f4=function(a,b){if(p(b)){var c=a.pk(b);if(c)if(a.b==c&&!c.g&&c.isVisible)c.show();else{if(a.b){if(5==c.qb.b){a.b.g?a.L.push(b):c.show();return}a.vf(a.b)}if(Z3(a.B,c))a.b=null,c=a.D[c.getId()],c.visible||(c.visible=!0,a.g.b.vb([c],1));else{5!=c.qb.b&&(a.b=c);c.subscribe("adBreakComplete",a.Jm,a);c.subscribe("adCompanionInitialized",a.Nm,a);if(c.g){1!=c.qb.b&&bD("video_to_ad",["apbs"]);d4(a.g);var d=a.B.g(),d={tfla:0<d?Math.floor(C()/1E3-d):0};e4(a.g.aa,"show_instream_ads",d)}a.C.rv(c);c.show()}}}};
g4=function(a,b,c){$3.call(this,a,b);this.H=[];this.K=[];this.F=[];this.ba=c;this.aa=window.NaN;this.R=a.g.g;var d=!A1(a).experiments.Z("disable_fetching_previous_nonadjacent_midrolls"),e=1E3*a.b.getCurrentTime(),d=d?null:eb(b,function(b){return a.b&&e>=B3(b)});
if(1<=c)for(c=0;c<b.length;c++){var f=b[c];if(bla(f)&&f!=d){var k=new y3(f.o,f.wa,f.qb,f.C,!0);b[c]=k;this.H.push(f)}}this.$||this.Dg()};
h4=function(a){Vi(a.aa);a.aa=window.NaN};
i4=function(a,b){$3.call(this,a,b);this.aa=a;this.ba=!0;this.H=[];this.ga=1;this.K=0};
j4=function(a){if(null==a.b&&0<a.H.length){var b=a.H[0];b.isVisible?(a.ba=a.F.G,a.ea=Math.ceil(C()/1E3),b.subscribe("adBreakComplete",a.R,a),a.b=b,b.show()):a.R()}else null!=a.b&&a.K++};
mla=function(a,b){this.G=a;this.C=b;this.F=C();this.B=0;this.b=a.g;this.A={};this.D=new Mka(a);var c=[];this.b.L&&this.b.o&&c.push("4_2");this.b.G&&(this.b.o&&c.push("1_2"),this.b.A&&c.push("1_2_1"),this.b.N&&c.push("1_1"),this.b.R&&c.push("1_3"));this.b.J&&c.push("2_2_1");this.b.K&&c.push("2_2");this.b.F&&c.push("2_1");(this.b.ua||this.b.H)&&c.push("2_3");this.b.aa&&c.push("14_14");this.g=c.join(",");this.o="";this.A.allowed=this.g;(c=this.b.excludedAds)&&(this.A.ex_ads=c)};
nla=function(a){this.b=a};
e4=function(a,b,c){var d=k4,d=d||k4;Th(d,function(a){return A1(this.b).experiments.Z(a)},a)&&(c=c||{},c.cdp=1,c["var"]=b,c.sdkv="h.3.0",a.b.log(c))};
l4=function(a){if(!/^\d+?(:\d+){0,2}(\.\d+)?$/.test(a))return null;var b=0;F(a.split(":"),function(a){b=60*b+Math.abs((0,window.parseFloat)(a))});
return 1E3*b};
n4=function(a,b,c){G.call(this);this.g=a;this.A=b;this.F=c;this.B=this.C=-1;this.b=m4(this.A.ke());a=this.A.ke();a.length&&(a=a[a.length-1],-1==a&&this.g.vb([this.b[a]]));0<this.g.g.g&&this.g.subscribe("endseeking",this.o,this)};
ola=function(a,b){o4(a);0<b&&(a.B=Ti(x(a.o,a),1E3*b))};
o4=function(a){-1!=a.B&&(Vi(a.B),a.B=-1)};
m4=function(a){if(!a.length)return{};for(var b={},c=0;c<a.length-1;c++){var d=a[c],e;e=a[c+1];e=-1==e?0x8000000000000:1E3*e;b[d]=new bq(-1==d?0x8000000000000:1E3*d,0x8000000000000==e?e:e-1,{id:String(d),visible:!0})}d=a[a.length-1];b[d]=new bq(-1==d?0x8000000000000:1E3*d,0x8000000000000,{id:String(d),visible:!0});return b};
p4=function(){G.call(this)};
q4=function(a){G.call(this);this.b=a;this.g=null;this.o={};this.B={};a=a.g;this.C=a.fadeInDurationMilliseconds;this.F=a.fadeInStartMilliseconds;this.G=a.fadeOutDurationMilliseconds;this.A=a.fadeOutStartMilliseconds;this.H=1E3*this.b.b.getVideoData().lengthSeconds;this.D=this.A+this.G;N3(this.b,this.Cv,this)};
r4=function(a,b){return 0!=b&&-1!=b&&-2!=b&&0<b&&b<a.H};
pla=function(a){a=a.getAttribute("breakType");return!!a&&Th(a.split(","),function(a){a=Pa(a);return"linear"==a})};
qla=function(a){var b,c=3;b=!0;c=c?c:0;b=b?b:!1;var d=(0,window.parseFloat)(Ma(a/1E3,2,c));a=Math.floor(d/60);var e=Math.floor(a/60);a%=60;c=Ma(d%60,2,c);b=c=e||b?e+":"+Ma(a,2)+":"+c:a+":"+c;return 1==b.split(":")[0].length?"0".concat(b):b};
sla=function(a,b){var c=Math.max(Math.abs(a.A),Math.abs(a.D));F(b,x(function(a){var e=Th(b,function(b){return a!=b&&b>=a-c&&b<=a+c}),f=rla(this,a);
!e&&f&&(this.o[f]=a)},a));
return 0<Ub(a.o)};
rla=function(a,b){var c=1E3*Math.round((b+a.D)/1E3),d=b+a.A,e=b+a.F;return r4(a,b)&&r4(a,c)&&r4(a,d)&&r4(a,e)?c:null};
s4=function(a,b,c,d){0>=c||(d=0==d?a.Bv:a.Av,c=C()+c,a.g=Oq(x(d,a,b,c,100),0))};
t4=function(a,b,c){a=B1(a.b).Db;b.setVolume(c*a)};
u4=function(a){G.call(this);this.D=this.o=this.A=this.F=this.g=null;this.N=this.K=this.H=!1;this.b=a;this.J=this.G=null;this.R={};this.aa=new Cm(this);this.C=new Cm(this);this.L=this.B=null};
tla=function(a,b,c){a=a.cloneNode(!0);a.setAttribute("timeOffset",b);F(a.getElementsByTagName("VASTAdTagURI"),function(a){var e,f,k;"end"==b?(e="post",f=-1,k="postroll"):(e="mid",f=l4(b).toString(),k="midroll");var l={"[INDEX]":c.toString(),"[POSITION]":e,"[START]":f,"[GPTPOS]":k};a.textContent=a.textContent.replace(/\[[A-Z_]+\]/g,function(a){return l[a]||a})});
return a};
ula=function(a,b){var c=As(b),d=c.childNodes[0];if(!d)return b;var e=cb(Lf(d),function(a){return"#1"==a.getAttribute("timeOffset")});
if(e){var f=cb(Lf(e),function(a){return"Extensions"==a.localName}),k=f?Lf(f):[],k=cb(k,function(a){return"YTBreakTime"==a.getAttribute("type")}),f=(f=f.removeChild(k))?Lf(f):[],l=e,m=1;
F(f,function(a){a=a.getAttribute("timeOffset");a=tla(e,a,m);m++;d.insertBefore(a,l.nextSibling);l=a});
d.removeChild(e)}f=a.B.Ss(d);f||(Nb(a.B),a.B=new p4);return e||f?Bs(c):b};
vla=function(a){var b=z1(a.b.g,A1(a.b),B1(a.b));b.Xy=!0;b.mp=!1;b.Ps=10;b.Sm=a.B.eq();return b};
v4=function(a,b){var c=a.D?a.D.g():0,c={tfla:0<c?Math.floor(C()/1E3-c):0};e4(a.b.aa,b,c)};
wla=function(a,b){var c=qV(b),d=w4(b);if(x1(c,"rm")&&a.b.g.H)return a.A=new J2(a.b),x4(a,a.A),a.A.show(),!1;if(x1(c,"blockAllAds"))return a.g.Lf(),a.A=new L2(a.b,a.g,1,!0),!1;if(x1(c,"hideMaster")&&14!=d)return a.A=new L2(a.b,a.g,0,!0),!1;c=a.g;14==d?(a.A=new l3(a.b,c),y4(a,b)):a.A=new B2(d,a.b,c,!0);a.A.show();a.H=!1;return!0};
y4=function(a,b){L1();var c;if(b){var d=b.A.b,e=z4(b);c=14==d2(aU(b)).b?16:4;d=0<d?new s1(e,d):new s1(e);c=new D1(d,vV(b),a.b,c)}Q1(A1(a.b).experiments).then(qa(function(a){a&&G1(a)},c),r)};
B4=function(a,b){if(b&&"adLoadError"==b.Fb()){var c=a.b.g;!c.b&&c.ua&&(a.A=new J2(a.b),x4(a,a.A),a.A.show());A4(a)}};
C4=function(a){a.A&&(a.A.dispose(),a.A=null)};
w4=function(a){var b=JV(a);a=0<b.length?b.pop():zV(a);a=xla[a.toUpperCase()];return null!=a?a:0};
z4=function(a){a=a.A.b;return 0==a?1:0<a?2:-1==a?3:0};
A4=function(a){a.K||(iq(a.b),a.K=!0)};
x4=function(a,b){A1(a.b).experiments.Z("fix_vmap_afc_mpu_api_stats_ads")&&b.subscribe("AD_LOGGING_EVENT",x(a.KD,a,Aka(a.g)))};
D4=function(a){o1.call(this,a);this.logEvent=this.Ma="ad";this.g=this.o=this.C=null;this.R=this.$=!1;this.A=this.J=null;U.g=!0;U.C=!1;U.H=!1;U.G=!0;U.D=!Mp();U.A=0;this.H=null;this.ga={};this.da={at:"0"};this.G=new e2(this.b);kw(this.b,this.G.element,4);this.ca=this.B=null;this.N=-1;this.aa=new nla(this);this.K=new Fx(this);H(this,this.K)};
B1=function(a){return E4(a.app)};
A1=function(a){return a.app.V};
F1=function(a,b,c){if(a.C){a=a.C;c=c||{};var d=(C()-a.F)/1E3;c.art=d;d=A1(a.G);d.ce&&(c.feature=d.Xa);c.ad_flags=a.b.adFlags;(d=a.b.Aa)&&(c.cid=d);c.mt=a.C.getCurrentTime();(d=ir())&&(c.lact=d);(d=a.C.Wh())&&(c.len=d);a.b.Xa&&(c.fqsf=1);c.sdkv="3";c.ad_event=b;if(3==b||4==b)a.o=c.at;b=a.D;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=c&&c.ad_event?j2(c.ad_event):0;a=8==a||0!=a?!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);e={};e.device=b.b.g.Na;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":gb(r1,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=Nka(d);break;case "error_code":f.ima_error=d;case "error_message":f.error_msg=d;break;case "ad_event":f.event=
j2(d);break;case "ck_xy":a=d.split("x"),2==a.length&&(f.i_x=a[0],f.i_y=a[1])}}k=p2(b.b);f=B1(b.b);e.cpn=f.clientPlaybackNonce;e.content_v=f.videoId;c.at&&c.at.match(/\d+_2.*/g)?(c=b.b.o,e.mt=null!=c&&null!=c.b?1E3*t1(c.b.qb):0):e.mt=Math.round(1E3*k.getCurrentTime());c=A1(b.b);e.ei=f.eventId;e.lact=ir();e.vol=Math.round(b.b.app.Ya.Mb());e.vis=qG(c);c=F4(b.b);e.p_w=c.width;e.p_h=c.height;e.rt=C();if(c=(c=k.g?k.g.la():null)&&mf(c)===window.document?Rs(c):null)e.pv_h=c.getHeight(),e.pv_w=c.cb();k=Fg(e);
if("undefined"==typeof k)throw Error("Keys are undefined");c=new hh(null,0,void 0);e=Eg(e);for(f=0;f<k.length;f++)a=k[f],d=e[f],ea(d)?mh(c,a,d):sh(c,a,d);b=new L(A1(b.b).baseYtUrl+"api/stats/ads");fh(b,c);Vp(b.toString())}}};
G4=function(a,b,c){c=c||{};c.ad_error=b;F1(a,7,c)};
H4=function(a,b,c){a.app.Ya.za(b,c)};
I4=function(a){a.$||(Vp(A1(a).baseYtUrl+"mac_204?action_fcts=1"),a.$=!0)};
J4=function(a){return a.o instanceof i4?a.o:null};
M4=function(a){a=a.G;if(S(a.o).R)a=a.o.app.o;else{if(!a.b){var b;b=a.o.app;if(b.V.R){var c=b.o.Jl(),d=b.o.sk();b.qa=new ng(c.x,c.y,d.width,d.height);GI(b.B);b.o.Sf(!1);b.o.Tf(1);kI(b.o);b=b.o}else b=new K4(L4.getTag(void 0,void 0));a.b=b;a.b.$n("video-stream");a.b.$n("ad-video")}a=a.b}return a};
p2=function(a){if(!a.B){var b=hc(A1(a).J);A1(a).experiments.Z("legacy_autoplay_flag")&&(b.autoplay="1");b.eventid=B1(a).eventId;b.content_v=B1(a).videoId;b=new QA(b);b.b="adunit";a.B=new hI(b,2,new p1(b,""),a.app.D,x(a.app.N.Rb,a.app.N))}return a.B};
P4=function(a){if(a.B&&a.B==gJ(a.app)){var b=a.app;a=a.B;N4(b);a!=b.g&&O4(b,b.g)}};
F4=function(a){return a.g.C?(a=a.app.D.Ia(),new ng(0,0,a.width,a.height)):$s(a.Da())};
Q4=function(a,b){C3(a,"bd");var c;c=a.g;var d=c.midrollPrefetchSize;c=c.isLiveStream?new i4(a,b):0<d?new g4(a,b,d):new $3(a,b);a.o=c;kla(a.o)};
T4=function(a){R4(a);var b=a.app;Ti(function(){S4(b)},0)};
d4=function(a){a.R=!0;a.X("command_redirect_controls",a,["play_pause"],void 0);a.A||a.pauseVideo()};
R4=function(a){h2(a.G);a.R=!1;nq(a);a.app.V.G.remove(p2(a).getVideoData().videoId)};
u2=function(a,b){switch(b){case 1:a.N=1;H4(a,"onAdStart");break;case 0:a.N=0,H4(a,"onAdEnd")}};
t2=function(a,b,c){c&&H4(a,"onAdInfoChange",c);c=a.app;a=M4(a);1==b&&(c.H.g("vr"),c.ea||(c.ea=JC(c.Qr,c)),XI(c.B),q1(c.H,U4(c)));var d=c.V;"leanback"==d.b&&d.Ra&&(0==b?c.Ga=c.o:c.Ga=a,c.b.za("onAdStateChange",b))};
C3=function(a,b){var c=b;"nl"==b&&(c=a.C,c.B++,c=c.B.toString());a.ga[c]=C();"bs"!=c&&"fb"!=c||kq(a,a.ga,a.da)};
V4=function(a){return!!(a.g.D&&a.o&&1<a.o.o.length)};
N3=function(a,b,c){a.b.addEventListener("applicationplayerstatechange",b,c)};
W4=function(a){YM(this,a,yla)};
Y4=function(a,b){G.call(this);this.B=!S(a.b).experiments.Z("legacy_control_redirecting");this.g=a;a.b.addEventListener("onVolumeChange",this.xj,this);a.b.addEventListener("onCaptionsTrackListChanged",this.bs,this);this.B&&a.b.addEventListener("captionschanged",this.Nr,this);this.C=!1;this.b=b;b.subscribe("proxyStateChange",this.vs,this);b.subscribe("remotePlayerChange",this.Ah,this);b.subscribe("remoteQueueChange",this.Om,this);this.K=new sq;this.G=this.F=window.NaN;this.J=0;this.o={};this.D=null;
this.H=new Am(this.xG,1E3,this);H(this,this.H);this.L=0;this.A=!1;var c=this.g.b.Ib("captions","track");cc(c)||X4(this,c);this.Om();this.Ah()};
Z4=function(a,b){var c=a.g,d=a.g.b.getVideoData().lengthSeconds;c.H=b||0;c.b.Va("progresssync",b,d)};
b5=function(a){a.A||(Z4(a,0),$4(a),a5(a,new sq));xr(S(a.g.app.Ya))||(a.A=!0)};
X4=function(a,b){if(c5(a)&&!a.C){if(b){var c={style:a.g.b.Ib("captions","displaySettings")};kc(c,b);a.b.hn(d5(a),c)}else a.b.hn(d5(a),null);a.o=xo(a.b).g}};
e5=function(a){a.b.pause();var b=xo(a.b);Z4(a,ro(b));$4(a);a5(a,new sq(4))};
g5=function(a){a.b.play();f5(a);a5(a,new sq(8))};
h5=function(a,b){var c=a.g.b.ad();c?Ao(a.b,d5(a),b,c.b,c.listId.toString()):Ao(a.b,d5(a),b);a5(a,new sq(1))};
i5=function(a,b){if(b){var c=a.g.b.Ib("captions","tracklist",{$q:1});c&&c.length?(a.g.b.cf("captions","track",b),a.B&&(a.C=!1)):(a.g.b.dk("captions"),a.C=!0)}else a.g.b.cf("captions","track",{})};
c5=function(a){return xo(a.b).videoId==d5(a)};
d5=function(a){return a.g.b.getVideoData().videoId};
f5=function(a){$4(a);if(!a.b.isDisposed()){var b=xo(a.b);b.Za()&&a5(a,new sq(8));Z4(a,ro(b));a.F=Ti(x(function(){f5(this)},a),500)}};
$4=function(a){Vi(a.F);a.F=window.NaN};
j5=function(a){Vi(a.G);a.G=window.NaN};
a5=function(a,b){j5(a);var c=a.K;a.K=b;a.A=!1;var d=a.g;d.K=b;d.b.Va("presentingplayerstatechange",new uG(b,c))};
k5=function(a){o1.call(this,a);this.Ma=this.logEvent="remote";this.A={key:lk(),name:N("YTP_MDX_MY_COMPUTER")};this.o=null;this.C=[];this.G=this.J=this.g=null;this.N=[this.A];this.B=this.A;this.K=new sq;this.H=0};
l5=function(a,b,c){var d=c||a.A;b.unshift(a.A);a.N=b||[a.A];d=cb(b,function(a){return a.key==d.key});
a.B=d||a.A;a.app.Ya.za("onMdxReceiversChange")};
m5=function(a){JK.call(this,["div","html5-video-player",{tabindex:-1,id:a.ba.attrs.id},["div","html5-video-container",{"data-layer":0}]]);Li(this.element,"version",a.ba.assets.js);this.app=a;this.H=null;this.o=this.pa["html5-video-container"];this.R=!!this.o;this.B=new ng(0,0,0,0);this.b=null;this.D=new ng(0,0,0,0);this.J=this.L=0;this.G=!1;this.F=window.NaN;a=a.V;this.C=null;this.addEventListener=x(this.element.addEventListener,this.element);this.removeEventListener=x(this.element.removeEventListener,
this.element);this.dispatchEvent=function(){};
a=xr(a)&&"blazer"!=a.g&&"mweb-polymer"!=a.g&&window.matchMedia?x(window.matchMedia,window):r;this.K=a("(max-width: 656px)");this.ea=a("(min-width: 657px)");this.ca=a("(min-width: 1294px) and (min-height: 630px)");this.$=a("(min-width: 1720px) and (min-height: 980px)");this.ba=a("(min-width: 1320px) and (min-height: 870px)");this.A=null;Zi({YTP_ADVERTISEMENT:"\u0420\u0435\u043a\u043b\u0430\u043c\u0430",YTP_AIRPLAY:"AirPlay",YTP_AUDIO_TRACK_TITLE:"\u0417\u0432\u0443\u043a\u043e\u0432\u0430\u044f \u0434\u043e\u0440\u043e\u0436\u043a\u0430",
YTP_AUTO:"\u0410\u0432\u0442\u043e\u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430",YTP_AUTO_WITH_QUALITY_2:"\u0410\u0432\u0442\u043e\u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 ($VIDEO_QUALITY)",YTP_CARDS_BUTTON_ARIA_LABEL:"\u041f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u043f\u043e\u0434\u0441\u043a\u0430\u0437\u043a\u0438",YTP_CHANGE_QUALITY_WITH_QUALITY_2:"\u0418\u0437\u043c\u0435\u043d\u0438\u0442\u044c \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u043e ($VIDEO_QUALITY)",YTP_COPY_DEBUG_INFO:"\u0421\u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435 \u0434\u043b\u044f \u043e\u0442\u043b\u0430\u0434\u043a\u0438",
YTP_COPY_VIDEO_URL:"\u041a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c URL \u0432\u0438\u0434\u0435\u043e",YTP_COPY_VIDEO_URL_AT_TIME:"\u041a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c URL \u0432\u0438\u0434\u0435\u043e \u0441 \u043f\u0440\u0438\u0432\u044f\u0437\u043a\u043e\u0439 \u043a\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438",YTP_DRAWER_CLOSE_BUTTON_ARIA_LABEL:"\u0421\u043a\u0440\u044b\u0442\u044c \u043f\u043e\u0434\u0441\u043a\u0430\u0437\u043a\u0438",YTP_DRAWER_HEADER_TEXT_2:"\u041f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435...",
YTP_DRAWER_POLL_PERCENT:"$PERCENT%",YTP_DRAWER_POLL_SIGNIN_TITLE:"\u0425\u043e\u0442\u0438\u0442\u0435 \u043f\u0440\u043e\u0439\u0442\u0438 \u043e\u043f\u0440\u043e\u0441?",YTP_DRAWER_POLL_TITLE_ARIA_LABEL:'\u0427\u0442\u043e\u0431\u044b \u043f\u0440\u0438\u043d\u044f\u0442\u044c \u0443\u0447\u0430\u0441\u0442\u0438\u0435 \u0432 \u043e\u043f\u0440\u043e\u0441\u0435 "$POLL_TITLE", \u043d\u0443\u0436\u043d\u043e \u0432\u043e\u0439\u0442\u0438 \u0432 \u0430\u043a\u043a\u0430\u0443\u043d\u0442.',YTP_GET_DEBUG_INFO:"\u041f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u043e\u0431 \u043e\u0442\u043b\u0430\u0434\u043a\u0435",
YTP_GET_VIDEO_URL:"\u041f\u043e\u043b\u0443\u0447\u0438\u0442\u044c URL \u0432\u0438\u0434\u0435\u043e",YTP_GET_VIDEO_URL_AT_TIME:"\u041f\u043e\u043b\u0443\u0447\u0438\u0442\u044c URL \u0432\u0438\u0434\u0435\u043e \u0441 \u043f\u0440\u0438\u0432\u044f\u0437\u043a\u043e\u0439 \u043a\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438",YTP_GET_EMBED:"\u041f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u043a\u043e\u0434 \u0434\u043b\u044f \u0432\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u043d\u0438\u044f",
YTP_DECREASE_PLAYBACK_SPEED:"\u0423\u043c\u0435\u043d\u044c\u0448\u0438\u0442\u044c \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u044c \u0432\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0435\u043d\u0438\u044f",YTP_PLAYBACK_SPEED_CHANGED:"\u0421\u043a\u043e\u0440\u043e\u0441\u0442\u044c \u0432\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0435\u043d\u0438\u044f\u00a0\u2013 $RATE",YTP_DEFAULT_VIEW:"\u0420\u0435\u0436\u0438\u043c \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u0430 \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e",
YTP_EMBED_COPY:"\u041a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c HTML-\u043a\u043e\u0434",YTP_ERROR_GENERIC_WITHOUT_LINK:"\u041e\u0448\u0438\u0431\u043a\u0430. \u041f\u043e\u0432\u0442\u043e\u0440\u0438\u0442\u0435 \u043f\u043e\u043f\u044b\u0442\u043a\u0443 \u043f\u043e\u0437\u0436\u0435.",YTP_ERROR_GENERIC_WITH_LINK_AND_CPN:"\u041e\u0448\u0438\u0431\u043a\u0430. \u041f\u043e\u0432\u0442\u043e\u0440\u0438\u0442\u0435 \u043f\u043e\u043f\u044b\u0442\u043a\u0443 \u043f\u043e\u0437\u0436\u0435. \u0418\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440 \u0432\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0435\u043d\u0438\u044f: $CPN. $BEGIN_LINK\u041f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435...$END_LINK",
YTP_EXIT_FULLSCREEN:"\u0412\u044b\u0445\u043e\u0434 \u0438\u0437 \u043f\u043e\u043b\u043d\u043e\u044d\u043a\u0440\u0430\u043d\u043d\u043e\u0433\u043e \u0440\u0435\u0436\u0438\u043c\u0430",YTP_FULLSCREEN_GENERIC_ERROR:"\u041d\u0435 \u0443\u0434\u0430\u043b\u043e\u0441\u044c \u043f\u0435\u0440\u0435\u0439\u0442\u0438 \u0432 \u043f\u043e\u043b\u043d\u043e\u044d\u043a\u0440\u0430\u043d\u043d\u044b\u0439 \u0440\u0435\u0436\u0438\u043c. $BEGIN_LINK\u041f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435...$END_LINK",
YTP_FULLSCREEN_UNSUPPORTED_ERROR:"\u041f\u043e\u043b\u043d\u043e\u044d\u043a\u0440\u0430\u043d\u043d\u044b\u0439 \u0440\u0435\u0436\u0438\u043c \u043d\u0435 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u0432 \u044d\u0442\u043e\u043c \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0435. $BEGIN_LINK\u041f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435...$END_LINK",YTP_VOLUME_UNSUPPORTED_ERROR:"\u0412 \u0432\u0430\u0448\u0435\u043c \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0435 \u043d\u0435\u043b\u044c\u0437\u044f \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u044c \u0433\u0440\u043e\u043c\u043a\u043e\u0441\u0442\u044c \u0437\u0432\u0443\u043a\u0430. $BEGIN_LINK\u041f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435...$END_LINK",
YTP_FEATURED:"\u0418\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e\u0435",YTP_FULLSCREEN:"\u0412\u043e \u0432\u0435\u0441\u044c \u044d\u043a\u0440\u0430\u043d",YTP_INCREASE_PLAYBACK_SPEED:"\u0423\u0432\u0435\u043b\u0438\u0447\u0438\u0442\u044c \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u044c \u0432\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0435\u043d\u0438\u044f",YTP_INVIDEO_PROMOTION_ARIA_LABEL:"\u041f\u0440\u043e\u0434\u0432\u0438\u0436\u0435\u043d\u0438\u0435",YTP_GOTO_LIVE_TOOLTIP:"\u041f\u0440\u043e\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u0438 \u043f\u0435\u0440\u0435\u0439\u0442\u0438 \u043a \u043f\u0440\u044f\u043c\u043e\u0439 \u0442\u0440\u0430\u043d\u0441\u043b\u044f\u0446\u0438\u0438",
YTP_KEYBOARD_SHORTCUTS:"\u0411\u044b\u0441\u0442\u0440\u044b\u0435 \u043a\u043b\u0430\u0432\u0438\u0448\u0438",YTP_LIVE:"\u0412 \u044d\u0444\u0438\u0440\u0435",YTP_LIVE_NOW:"\u0421\u0415\u0419\u0427\u0410\u0421 \u0412 \u041f\u0420\u042f\u041c\u041e\u041c \u042d\u0424\u0418\u0420\u0415",YTP_LOOP:"\u041f\u043e\u0432\u0442\u043e\u0440",YTP_MIX:"\u041c\u0438\u043a\u0441",YTP_MORE:"\u0415\u0449\u0451",YTP_MDX_TITLE:"\u0412\u044b\u0431\u0435\u0440\u0438\u0442\u0435 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e \u0434\u043b\u044f \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u0430",
YTP_MDX_TOOLTIP:"\u0412\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0441\u0442\u0438 \u043d\u0430 \u0442\u0435\u043b\u0435\u0432\u0438\u0437\u043e\u0440\u0435",YTP_MDX_MY_COMPUTER:"\u042d\u0442\u043e\u0442 \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440",YTP_MUTE:"\u041e\u0442\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u0437\u0432\u0443\u043a\u0430",YTP_NEXT:"\u0421\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435",YTP_NEXT_VIDEO_IN:"\u0421\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435 \u0432\u0438\u0434\u0435\u043e \u0447\u0435\u0440\u0435\u0437\u00a0$TIME_LEFT",
YTP_NORMAL_SPEED:"\u041e\u0431\u044b\u0447\u043d\u0430\u044f",YTP_ON:"\u0412\u041a\u041b",YTP_OFF:"\u0412\u042b\u041a\u041b",YTP_OPTIONS:"\u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b",YTP_PLAY_ALL:"\u0412\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0441\u0442\u0438 \u0432\u0441\u0435",YTP_PLAY_PAUSE:"\u0412\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0435\u043d\u0438\u0435/\u043f\u0430\u0443\u0437\u0430",YTP_PREVIOUS:"\u041d\u0430\u0437\u0430\u0434",YTP_PLAYBACK_STALLED_AT_START:"\u041f\u043e\u0434\u043e\u0436\u0434\u0438\u0442\u0435 \u043d\u0435\u043c\u043d\u043e\u0433\u043e. \u0415\u0441\u043b\u0438 \u0432\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u0442\u0430\u043a \u0438 \u043d\u0435 \u043d\u0430\u0447\u043d\u0435\u0442\u0441\u044f, \u043f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u0435 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e.",
YTP_MISSING_FORMATS:"\u0414\u043e\u0441\u0442\u0443\u043f\u043d\u044b \u043d\u0435 \u0432\u0441\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b?",YTP_PLAYLIST:"\u041f\u043b\u0435\u0439\u043b\u0438\u0441\u0442",YTP_PLAYLIST_UP_NEXT:"\u0421\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435",YTP_QUALITY_TITLE:"\u041a\u0430\u0447\u0435\u0441\u0442\u0432\u043e",YTP_SUGGESTED_VIDEOS:"\u041f\u043e\u0445\u043e\u0436\u0438\u0435 \u0432\u0438\u0434\u0435\u043e",YTP_REPLAY:"\u041f\u043e\u0432\u0442\u043e\u0440\u0438\u0442\u044c",
YTP_REPORT_ISSUE:"\u0421\u043e\u043e\u0431\u0449\u0438\u0442\u044c \u043e \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0435 \u0432\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0435\u043d\u0438\u044f",YTP_SEEK_BACK:"\u041d\u0430\u0437\u0430\u0434 \u043d\u0430 10 \u0441\u0435\u043a\u0443\u043d\u0434",YTP_SEEK_FORWARD:"\u0412\u043f\u0435\u0440\u0435\u0434 \u043d\u0430 10 \u0441\u0435\u043a\u0443\u043d\u0434",YTP_SEEK_PERCENT:"\u041f\u0435\u0440\u0435\u0439\u0442\u0438 \u043a 0%-90%.",
YTP_SETTINGS:"\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438",YTP_SHARE:"\u041f\u043e\u0434\u0435\u043b\u0438\u0442\u044c\u0441\u044f",YTP_SHARE_LINK:"\u041f\u043e\u0434\u0435\u043b\u0438\u0442\u044c\u0441\u044f \u0441\u0441\u044b\u043b\u043a\u043e\u0439",YTP_SHARE_WITH_PLAYLIST_2:"\u0412 \u0441\u043e\u0441\u0442\u0430\u0432\u0435 \u043f\u043b\u0435\u0439\u043b\u0438\u0441\u0442\u0430",YTP_SHOW_VIDEO_INFO:"\u0421\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u043a\u0430 \u0434\u043b\u044f \u0441\u0438\u0441\u0430\u0434\u043c\u0438\u043d\u043e\u0432",
YTP_SIGN_IN:"\u0412\u043e\u0439\u0442\u0438",YTP_SPHERICAL_CONTROL:"\u0421\u0442\u0440\u0435\u043b\u043a\u0438 \u0434\u043b\u044f \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u043e\u0431\u0437\u043e\u0440\u043e\u043c \u0432 \u043f\u0430\u043d\u043e\u0440\u0430\u043c\u043d\u044b\u0445 \u0432\u0438\u0434\u0435\u043e.",YTP_SPEED_TITLE:"\u0421\u043a\u043e\u0440\u043e\u0441\u0442\u044c",YTP_ST_COLLAPSE:"\u0421\u0432\u0435\u0440\u043d\u0443\u0442\u044c",YTP_ST_EXPAND:"\u0420\u0430\u0437\u0432\u0435\u0440\u043d\u0443\u0442\u044c",
YTP_SUBTITLES:"\u0421\u0443\u0431\u0442\u0438\u0442\u0440\u044b",YTP_SUBTITLES_TOOLTIP:"\u0421\u0443\u0431\u0442\u0438\u0442\u0440\u044b",YTP_SUBTITLES_OFF:"\u0421\u0443\u0431\u0442\u0438\u0442\u0440\u044b \u043e\u0442\u043a\u043b\u044e\u0447\u0435\u043d\u044b",YTP_SUBTITLES_ON:"\u0421\u0443\u0431\u0442\u0438\u0442\u0440\u044b \u0432\u043a\u043b\u044e\u0447\u0435\u043d\u044b",YTP_THREED_SHORT:"3D",YTP_THREED_VIEWMODE_2D:"2D",YTP_THREED_VIEWMODE_ANAGLYPH:"\u0410\u043d\u0430\u0433\u043b\u0438\u0444",
YTP_THEATER_MODE:"\u0428\u0438\u0440\u043e\u043a\u0438\u0439 \u044d\u043a\u0440\u0430\u043d",YTP_TOGGLE_FULLSCREEN:"\u0412\u043e \u0432\u0435\u0441\u044c \u044d\u043a\u0440\u0430\u043d",YTP_TOGGLE_MUTE:"\u041f\u0435\u0440\u0435\u0432\u0435\u0441\u0442\u0438 \u0432 \u0431\u0435\u0437\u0437\u0432\u0443\u0447\u043d\u044b\u0439 \u0440\u0435\u0436\u0438\u043c",YTP_UNMUTE:"\u0412\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0437\u0432\u0443\u043a",YTP_URL_NAVIGATE:"\u0421\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u043d\u0430 YouTube.com",
YTP_URL_NAVIGATE_TO:"\u0421\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u044d\u0442\u043e \u0432\u0438\u0434\u0435\u043e \u043d\u0430\u00a0$WEBSITE",YTP_WATCH_ALL:"\u041f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0432\u0438\u0434\u0435\u043e \u043f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e",YTP_WATCH_LATER:"\u041f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u043f\u043e\u0437\u0436\u0435",YTP_WATCH_LATER_AS_2:"\u041f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u043f\u043e\u0437\u0436\u0435 \u043a\u0430\u043a $USER_NAME",
YTP_ADDED_TO_WATCH_LATER_AS:"\u0414\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u043e \u0432 \u043f\u043b\u0435\u0439\u043b\u0438\u0441\u0442 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f $USER_NAME",YTP_WEBGL_3D_ANAGLYPH:"\u0410\u043d\u0430\u0433\u043b\u0438\u0444",YTP_WEBGL_3D_2D:"2D",YTP_SUBSCRIBE_AS:"\u041f\u043e\u0434\u043f\u0438\u0441\u0430\u0442\u044c\u0441\u044f \u043a\u0430\u043a $USER_NAME",YTP_LIKE_AS:'\u041f\u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u043e\u0442\u043c\u0435\u0442\u043a\u0443 "\u041d\u0440\u0430\u0432\u0438\u0442\u0441\u044f" \u043a\u0430\u043a $USER_NAME',
YTP_DISLIKE_AS:'\u041f\u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u043e\u0442\u043c\u0435\u0442\u043a\u0443 "\u041d\u0435 \u043d\u0440\u0430\u0432\u0438\u0442\u0441\u044f" \u043a\u0430\u043a $USER_NAME',YTP_WATCH_NEXT:"\u0420\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0430\u0446\u0438\u0438",YTP_PLAY:"\u0421\u043c\u043e\u0442\u0440\u0435\u0442\u044c",YTP_WATERMARK:"\u041b\u043e\u0433\u043e\u0442\u0438\u043f \u043a\u0430\u043d\u0430\u043b\u0430",YTP_ERROR_STREAMING_UNAVAILABLE:"\u0421\u0435\u0439\u0447\u0430\u0441 \u0432\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0441\u0442\u0438 \u0432\u0438\u0434\u0435\u043e \u043d\u0435\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e, \u0442\u0430\u043a \u043a\u0430\u043a \u043e\u043d\u043e \u0431\u044b\u043b\u043e \u0441\u043a\u0430\u0447\u0430\u043d\u043e \u0434\u043b\u044f \u043e\u0444\u043b\u0430\u0439\u043d-\u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u0430.",
YTP_ERROR_LICENSE:"\u041d\u0435 \u0443\u0434\u0430\u043b\u043e\u0441\u044c \u0432\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0441\u0442\u0438 \u0432\u0438\u0434\u0435\u043e \u0438\u0437-\u0437\u0430 \u043f\u0440\u043e\u0431\u043b\u0435\u043c \u0441 \u043b\u0438\u0446\u0435\u043d\u0437\u0438\u0435\u0439.",YTP_ERROR_VIDEO_NOT_FOUND:"\u041d\u0435 \u0443\u0434\u0430\u0435\u0442\u0441\u044f \u043d\u0430\u0439\u0442\u0438 \u0432\u0438\u0434\u0435\u043e.",YTP_ERROR_ALREADY_PINNED_ON_A_DEVICE:"\u0412\u044b \u0443\u0436\u0435 \u0441\u043a\u0430\u0447\u0430\u043b\u0438 \u044d\u0442\u043e \u0432\u0438\u0434\u0435\u043e \u043d\u0430 \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432, \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u043d\u043e\u0435 \u043f\u0440\u0430\u0432\u043e\u043e\u0431\u043b\u0430\u0434\u0430\u0442\u0435\u043b\u0435\u043c. \u0427\u0442\u043e\u0431\u044b \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u044d\u0442\u043e \u0432\u0438\u0434\u0435\u043e \u0437\u0434\u0435\u0441\u044c, \u043e\u0442\u043a\u0440\u0435\u043f\u0438\u0442\u0435 \u0435\u0433\u043e \u043e\u0442 \u0434\u0440\u0443\u0433\u043e\u0433\u043e \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430.",
YTP_ERROR_CANNOT_ACTIVATE_RENTAL:"\u041e\u0448\u0438\u0431\u043a\u0430 \u0430\u043a\u0442\u0438\u0432\u0430\u0446\u0438\u0438 \u043f\u043b\u0430\u0442\u043d\u043e\u0433\u043e \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u0430. \u041f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u0435 \u044d\u0442\u0443 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443 \u0438\u043b\u0438 \u043f\u043e\u0432\u0442\u043e\u0440\u0438\u0442\u0435 \u043f\u043e\u043f\u044b\u0442\u043a\u0443 \u043f\u043e\u0437\u0436\u0435.",
YTP_ERROR_PURCHASE_NOT_FOUND:"\u0422\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u043e\u043f\u043b\u0430\u0442\u0438\u0442\u044c \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440 \u044d\u0442\u043e\u0433\u043e \u0432\u0438\u0434\u0435\u043e.",YTP_ERROR_PURCHASE_REFUNDED:"\u041f\u043e \u0434\u0430\u043d\u043d\u043e\u0439 \u043f\u043e\u043a\u0443\u043f\u043a\u0435 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d \u0432\u043e\u0437\u0432\u0440\u0430\u0442 \u0441\u0440\u0435\u0434\u0441\u0442\u0432.",
YTP_ERROR_STOPPED_BY_ANOTHER_PLAYBACK:"\u0412\u0438\u0434\u0435\u043e \u0432\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0441\u044f \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0432\u0430\u0448\u0435\u0433\u043e \u0430\u043a\u043a\u0430\u0443\u043d\u0442\u0430 \u0432 \u0434\u0440\u0443\u0433\u043e\u043c \u043c\u0435\u0441\u0442\u0435. \u041f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u0435 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443, \u0447\u0442\u043e\u0431\u044b \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0438\u0442\u044c \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440.",
YTP_ERROR_TOO_MANY_STREAMS_PER_USER:"\u0412\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u043e\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043e, \u0442\u0430\u043a \u043a\u0430\u043a \u0432\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0441\u044f \u0441\u043b\u0438\u0448\u043a\u043e\u043c \u043c\u043d\u043e\u0433\u043e \u0432\u0438\u0434\u0435\u043e, \u043e\u0442\u043d\u043e\u0441\u044f\u0449\u0438\u0445\u0441\u044f \u043a \u043e\u0434\u043d\u043e\u043c\u0443 \u0430\u043a\u043a\u0430\u0443\u043d\u0442\u0443.",
YTP_ERROR_TOO_MANY_STREAMS_PER_ENTITLEMENT:"\u0412\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u043e\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043e, \u0442\u0430\u043a \u043a\u0430\u043a \u0441\u043b\u0438\u0448\u043a\u043e\u043c \u043c\u043d\u043e\u0433\u043e \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432 \u0432\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442 \u044d\u0442\u043e \u0432\u0438\u0434\u0435\u043e.",
YTP_ERROR_STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED:"\u0417\u0430 \u0441\u0443\u0442\u043a\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u043e \u0441\u043b\u0438\u0448\u043a\u043e\u043c \u0431\u043e\u043b\u044c\u0448\u043e\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432/IP-\u0430\u0434\u0440\u0435\u0441\u043e\u0432.",YTP_ERROR_UNUSUAL_ACTIVITY:"\u0412\u0438\u0434\u0435\u043e \u0441\u0435\u0439\u0447\u0430\u0441 \u043d\u0435\u0434\u043e\u0441\u0442\u0443\u043f\u043d\u043e \u0438\u0437-\u0437\u0430 \u043d\u0435\u043e\u0431\u044b\u0447\u043d\u043e\u0439 \u0430\u043a\u0442\u0438\u0432\u043d\u043e\u0441\u0442\u0438 \u0432 \u0430\u043a\u043a\u0430\u0443\u043d\u0442\u0435.",
YTP_ERROR_NOT_SIGNED_IN:"\u0427\u0442\u043e\u0431\u044b \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0438\u0442\u044c \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440, \u0432\u043e\u0439\u0434\u0438\u0442\u0435 \u0432 \u0430\u043a\u043a\u0430\u0443\u043d\u0442.",YTP_CLOSE:"\u0417\u0430\u043a\u0440\u044b\u0442\u044c",YTP_EXPAND:"\u0420\u0430\u0437\u0432\u0435\u0440\u043d\u0443\u0442\u044c",YTP_ANNOTATIONS:"\u0410\u043d\u043d\u043e\u0442\u0430\u0446\u0438\u0438",YTP_DONE:"\u0413\u043e\u0442\u043e\u0432\u043e",
YTP_SHARE_THIS_PLAYLIST:"\u041f\u043e\u0434\u0435\u043b\u0438\u0442\u044c\u0441\u044f \u043f\u043b\u0435\u0439\u043b\u0438\u0441\u0442\u043e\u043c",YTP_UPLOADED_BY_2:"\u0410\u0432\u0442\u043e\u0440: $AUTHOR",YTP_SEEK_SLIDER:"\u041f\u043e\u043b\u0437\u0443\u043d\u043e\u043a \u043f\u043e\u0438\u0441\u043a\u0430",YTP_PAUSE:"\u041f\u0430\u0443\u0437\u0430",YTP_AUTOPLAY:"\u0410\u0432\u0442\u043e\u0432\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0435\u043d\u0438\u0435",YTP_AUTOPLAY_COUNTDOWN_2:"\u0421\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435 \u0432\u0438\u0434\u0435\u043e \u0447\u0435\u0440\u0435\u0437 $SECONDS_LEFT",
YTP_AUTOPLAY_PAUSED:"\u0410\u0432\u0442\u043e\u0432\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u043f\u0440\u0438\u043e\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043e.",YTP_AUTOPLAY_PAUSED_2:"\u0410\u0432\u0442\u043e\u0432\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u043f\u0440\u0438\u043e\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043e.",YTP_AUTOPLAY_CANCEL:"\u041e\u0442\u043c\u0435\u043d\u0438\u0442\u044c \u0430\u0432\u0442\u043e\u0432\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0435\u043d\u0438\u0435",
YTP_WATCH_VIDEO_OR_PLAYLIST:"\u041f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c $TITLE",YTP_CANCEL:"\u041e\u0442\u043c\u0435\u043d\u0430",YTP_ON_GOOGLE_PLUS:"\u041d\u0430 Google+",YTP_STILL_THERE:"\u0427\u0442\u043e\u0431\u044b \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0438\u0442\u044c \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440 \u043f\u043b\u0435\u0439\u043b\u0438\u0441\u0442\u0430, \u043d\u0430\u0436\u043c\u0438\u0442\u0435 \u043a\u043d\u043e\u043f\u043a\u0443 \u043d\u0438\u0436\u0435.",
YTP_DISMISS:"\u041e\u041a",YTP_RESET:"\u0421\u0431\u0440\u043e\u0441\u0438\u0442\u044c",YTP_STOP:"\u041e\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u043f\u0440\u044f\u043c\u0443\u044e \u0442\u0440\u0430\u043d\u0441\u043b\u044f\u0446\u0438\u044e",YTP_LIKE:"\u041d\u0440\u0430\u0432\u0438\u0442\u0441\u044f",YTP_DISLIKE:"\u041d\u0435 \u043d\u0440\u0430\u0432\u0438\u0442\u0441\u044f",YTP_SCREENREADER_VOLUME_SETTING:"\u0433\u0440\u043e\u043c\u043a\u043e\u0441\u0442\u044c",YTP_SCREENREADER_VOLUME_MUTED:"\u0437\u0432\u0443\u043a \u043e\u0442\u043a\u043b\u044e\u0447\u0435\u043d",
YTP_SCREENREADER_VOLUME_MUTE:"\u043e\u0442\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0437\u0432\u0443\u043a",YTP_SCREENREADER_VOLUME_UNMUTE:"\u0432\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0437\u0432\u0443\u043a",YTP_SCREENREADER_CONTROL_TOGGLE:"\u043f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0438\u0442\u044c",YTP_SAMPLE_SUBTITLES:"\u0421\u0443\u0431\u0442\u0438\u0442\u0440\u044b \u0431\u0443\u0434\u0443\u0442 \u0432\u044b\u0433\u043b\u044f\u0434\u0435\u0442\u044c \u0442\u0430\u043a",YTP_HTML5_CONTEXT_MENU_LINK:"\u041e \u043f\u0440\u043e\u0438\u0433\u0440\u044b\u0432\u0430\u0442\u0435\u043b\u0435 HTML5",
YTP_HTML5_PROTECTED_FLASH_FALLBACK:"\u0427\u0442\u043e\u0431\u044b \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u044d\u0442\u043e \u0432\u0438\u0434\u0435\u043e, \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0435 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u044e\u044e \u0432\u0435\u0440\u0441\u0438\u044e Flash\u00a0Player \u0438\u043b\u0438 \u043e\u0442\u043a\u0440\u043e\u0439\u0442\u0435 \u0441\u0430\u0439\u0442 \u0432 \u0434\u0440\u0443\u0433\u043e\u043c \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0435. $BEGIN_LINK\u0421\u043a\u0430\u0447\u0430\u0442\u044c Flash\u00a0Player$END_LINK",
YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK:"\u042d\u0442\u043e\u0442 \u0444\u043e\u0440\u043c\u0430\u0442 \u0432\u0438\u0434\u0435\u043e \u043d\u0435 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442\u0441\u044f",YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK:"\u0412 \u043d\u0430\u0441\u0442\u043e\u044f\u0449\u0435\u0435 \u0432\u0440\u0435\u043c\u044f \u0432\u0430\u0448 \u0431\u0440\u0430\u0443\u0437\u0435\u0440 \u043d\u0435 \u0440\u0430\u0441\u043f\u043e\u0437\u043d\u0430\u0435\u0442 \u043d\u0438 \u043e\u0434\u0438\u043d \u0438\u0437 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b\u0445 \u0432\u0438\u0434\u0435\u043e\u0444\u043e\u0440\u043c\u0430\u0442\u043e\u0432. $BEGIN_LINK\u041d\u0430\u0436\u043c\u0438\u0442\u0435 \u0437\u0434\u0435\u0441\u044c, \u0447\u0442\u043e\u0431\u044b \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u043e\u0442\u0432\u0435\u0442\u044b \u043d\u0430 \u0447\u0430\u0441\u0442\u043e \u0437\u0430\u0434\u0430\u0432\u0430\u0435\u043c\u044b\u0435 \u0432\u043e\u043f\u0440\u043e\u0441\u044b \u043e \u0432\u0438\u0434\u0435\u043e HTML5.$END_LINK",
YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK_FLASH:"\u0414\u043b\u044f \u0432\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0435\u043d\u0438\u044f \u0432\u0438\u0434\u0435\u043e \u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u043f\u0440\u043e\u0438\u0433\u0440\u044b\u0432\u0430\u0442\u0435\u043b\u044c Adobe Flash Player. $BEGIN_LINK\u0417\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044c \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u044e\u044e \u0432\u0435\u0440\u0441\u0438\u044e$END_LINK.",
YTP_ERROR_CAST_SESSION_DEVICE_MISMATCHED:"\u0423\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e \u0432 \u0441\u0435\u0430\u043d\u0441\u0435 \u043d\u0435 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u0435\u0442 \u0437\u0430\u043f\u0440\u0430\u0448\u0438\u0432\u0430\u0435\u043c\u043e\u043c\u0443.",YTP_ERROR_CAST_SESSION_VIDEO_MISMATCHED:"\u0412\u0438\u0434\u0435\u043e \u0432 \u0441\u0435\u0430\u043d\u0441\u0435 \u043d\u0435 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u0435\u0442 \u0437\u0430\u043f\u0440\u0430\u0448\u0438\u0432\u0430\u0435\u043c\u043e\u043c\u0443.",
YTP_ERROR_CAST_TOKEN_EXPIRED:"\u0412\u0440\u0435\u043c\u044f \u0441\u0435\u0430\u043d\u0441\u0430 \u0438\u0441\u0442\u0435\u043a\u043b\u043e. \u041e\u0431\u043d\u043e\u0432\u0438\u0442\u0435 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443.",YTP_ERROR_CAST_TOKEN_FAILED:"\u0421\u0435\u0430\u043d\u0441 \u043d\u0435\u0434\u043e\u0441\u0442\u0443\u043f\u0435\u043d. \u041e\u0431\u043d\u043e\u0432\u0438\u0442\u0435 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443 \u0438\u043b\u0438 \u043f\u043e\u0432\u0442\u043e\u0440\u0438\u0442\u0435 \u043f\u043e\u043f\u044b\u0442\u043a\u0443 \u043f\u043e\u0437\u0436\u0435.",
YTP_ERROR_CAST_TOKEN_MALFORMED:"\u041d\u0435\u0432\u0435\u0440\u043d\u044b\u0439 \u0441\u0435\u0430\u043d\u0441. \u041e\u0431\u043d\u043e\u0432\u0438\u0442\u0435 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443 \u0438\u043b\u0438 \u043f\u043e\u0432\u0442\u043e\u0440\u0438\u0442\u0435 \u043f\u043e\u043f\u044b\u0442\u043a\u0443 \u043f\u043e\u0437\u0436\u0435.",YTP_ERROR_GEO_FAILURE:"\u042d\u0442\u043e \u0432\u0438\u0434\u0435\u043e \u043d\u0435\u0434\u043e\u0441\u0442\u0443\u043f\u043d\u043e \u0434\u043b\u044f \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u0430 \u0432 \u0432\u0430\u0448\u0435\u0439 \u0441\u0442\u0440\u0430\u043d\u0435.",
YTP_ERROR_INVALID_DRM_MESSAGE:"\u041d\u0435\u0434\u043e\u043f\u0443\u0441\u0442\u0438\u043c\u043e\u0435 \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u0435 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435 \u0441\u0438\u0441\u0442\u0435\u043c\u044b DRM.",YTP_ERROR_RENTAL_EXPIRED:"\u0412\u0440\u0435\u043c\u044f \u043f\u0440\u043e\u043a\u0430\u0442\u0430 \u0437\u0430\u043a\u043e\u043d\u0447\u0438\u043b\u043e\u0441\u044c.",YTP_ERROR_RETRYABLE_ERROR:"\u041f\u0440\u043e\u0438\u0437\u043e\u0448\u043b\u0430 \u0432\u0440\u0435\u043c\u0435\u043d\u043d\u0430\u044f \u043e\u0448\u0438\u0431\u043a\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0430, \u043f\u043e\u0432\u0442\u043e\u0440\u0438\u0442\u0435 \u043f\u043e\u043f\u044b\u0442\u043a\u0443 \u043f\u043e\u0437\u0436\u0435.",
YTP_ERROR_SERVER_ERROR:"\u041f\u0440\u043e\u0438\u0437\u043e\u0448\u043b\u0430 \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u044f\u044f \u043e\u0448\u0438\u0431\u043a\u0430. \u041f\u043e\u0432\u0442\u043e\u0440\u0438\u0442\u0435 \u043f\u043e\u043f\u044b\u0442\u043a\u0443 \u043f\u043e\u0437\u0436\u0435.",YTP_ERROR_STREAMING_NOT_ALLOWED:"\u0412\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u043d\u0435\u0434\u043e\u0441\u0442\u0443\u043f\u043d\u043e, \u0442\u0430\u043a \u043a\u0430\u043a \u0432\u0438\u0434\u0435\u043e \u043f\u0440\u0438\u043a\u0440\u0435\u043f\u043b\u0435\u043d\u043e \u043a \u0434\u0440\u0443\u0433\u043e\u043c\u0443 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0443.",
YTP_ERROR_UNSUPPORTED_DEVICE:"\u0412\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u043d\u0435 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u0434\u0430\u043d\u043d\u044b\u043c \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e\u043c.",YTP_ERROR_VIDEO_FORBIDDEN:"\u0414\u043e\u0441\u0442\u0443\u043f \u043a \u0432\u0438\u0434\u0435\u043e \u0437\u0430\u043f\u0440\u0435\u0449\u0435\u043d.",YTP_ERROR_FORMAT_UNAVALIABLE:"\u042d\u0442\u043e \u0432\u0438\u0434\u0435\u043e \u043f\u043e\u043a\u0430 \u043d\u0435\u043b\u044c\u0437\u044f \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0432 \u0432\u044b\u0431\u0440\u0430\u043d\u043d\u043e\u043c \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435. \u041f\u043e\u0432\u0442\u043e\u0440\u0438\u0442\u0435 \u043f\u043e\u043f\u044b\u0442\u043a\u0443 \u043f\u043e\u0437\u0436\u0435.",
YTP_MDX_STATUS_CONNECTED:"\u0412\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0441\u044f \u043d\u0430",YTP_MDX_STATUS_CONNECTING:"\u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u043a",YTP_MDX_STATUS_ERROR:"\u041e\u0448\u0438\u0431\u043a\u0430",YTP_MDX_PLAYER_ERROR:"\u0412\u0438\u0434\u0435\u043e \u043d\u0435\u0434\u043e\u0441\u0442\u0443\u043f\u043d\u043e \u0434\u043b\u044f \u0443\u0434\u0430\u043b\u0435\u043d\u043d\u043e\u0433\u043e \u0432\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0435\u043d\u0438\u044f.",
YTP_MDX_PLAYER_RECONNECT_TIME:"\u041f\u0440\u043e\u0432\u0435\u0440\u044c\u0442\u0435 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u043a \u0418\u043d\u0442\u0435\u0440\u043d\u0435\u0442\u0443. \u041f\u043e\u0432\u0442\u043e\u0440\u043d\u0430\u044f \u043f\u043e\u043f\u044b\u0442\u043a\u0430 \u0447\u0435\u0440\u0435\u0437 $FORMATTED_TIME...",YTP_MDX_PLAYER_RECONNECT_BUTTON:"\u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u044c\u0441\u044f \u043f\u043e\u0432\u0442\u043e\u0440\u043d\u043e",
YTP_DEVICE_FALLBACK:"\u0412\u0438\u0434\u0435\u043e \u043d\u0435\u0434\u043e\u0441\u0442\u0443\u043f\u043d\u043e \u043d\u0430 \u044d\u0442\u043e\u043c \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0435.",YTP_AD_INTERRUPT_MESSAGE:"\u042d\u0442\u0430 \u0440\u0435\u043a\u043b\u0430\u043c\u0430 \u0431\u0443\u0434\u0435\u0442 \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c\u0441\u044f \u043f\u0435\u0440\u0435\u0434 \u0432\u0430\u0448\u0438\u043c \u0432\u0438\u0434\u0435\u043e.",
YTP_VISIT_ADVERTISERS_SITE:"\u041f\u043e\u0441\u0435\u0442\u0438\u0442\u044c \u0441\u0430\u0439\u0442 \u0440\u0435\u043a\u043b\u0430\u043c\u043e\u0434\u0430\u0442\u0435\u043b\u044f",YTP_PROGRESS_LABEL_2:"$PLAY_PROGRESS (\u043e\u0431\u0449\u0430\u044f \u0434\u043b\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c $DURATION)",YTP_PLAYLIST_NAME:'\u041f\u043b\u0435\u0439\u043b\u0438\u0441\u0442 "$PLAYLIST_NAME"',YTP_PLAYLIST_POSITION:"$CURRENT_POSITION/$PLAYLIST_LENGTH",YTP_SHARE_PANEL_ERROR:"\u041e\u0448\u0438\u0431\u043a\u0430. \u041f\u043e\u0432\u0442\u043e\u0440\u0438\u0442\u0435 \u043f\u043e\u043f\u044b\u0442\u043a\u0443 \u043f\u043e\u0437\u0436\u0435.",
YTP_PLAYLIST_AUTHOR_AND_POSITION:"$AUTHOR \u2022 $CURRENT_POSITION/$PLAYLIST_LENGTH",YTP_PLAYER_NORMAL:"\u041f\u0440\u043e\u0438\u0433\u0440\u044b\u0432\u0430\u0442\u0435\u043b\u044c YouTube",YTP_PLAYER_FULLSCREEN:"\u041f\u0440\u043e\u0438\u0433\u0440\u044b\u0432\u0430\u0442\u0435\u043b\u044c YouTube \u0432 \u043f\u043e\u043b\u043d\u043e\u044d\u043a\u0440\u0430\u043d\u043d\u043e\u043c \u0440\u0435\u0436\u0438\u043c\u0435",YTP_SPONSORED:"\u0420\u0435\u043a\u043b\u0430\u043c\u0430",YTP_SPONSORED_PRODUCT_INFO:"\u042d\u0442\u043e \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442\u043d\u0430\u044f \u0440\u0435\u043a\u043b\u0430\u043c\u0430. \u0415\u0435 \u043f\u043e\u043a\u0430\u0437 \u043c\u043e\u0436\u0435\u0442 \u043e\u043f\u043b\u0430\u0447\u0438\u0432\u0430\u0442\u044c\u0441\u044f \u043f\u0440\u043e\u0434\u0430\u0432\u0446\u043e\u043c.",
YTP_SPONSORED_PRODUCT_BADGE:"\u0420\u0435\u043a\u043b\u0430\u043c\u0430",YTP_AD_SETTINGS_INFO:"\u0418\u0437\u043c\u0435\u043d\u0438\u0442\u044c \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u043e\u0431\u044a\u044f\u0432\u043b\u0435\u043d\u0438\u0439 \u043c\u043e\u0436\u043d\u043e \u043d\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0435 $BEGIN_FORMAT\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0440\u0435\u043a\u043b\u0430\u043c\u043d\u044b\u0445 \u043f\u0440\u0435\u0434\u043f\u043e\u0447\u0442\u0435\u043d\u0438\u0439$END_FORMAT.",
YTP_PIP:"\u041a\u0430\u0440\u0442\u0438\u043d\u043a\u0430 \u0432 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0435",YTP_AUTO_TRANSLATE:"\u041f\u0435\u0440\u0435\u0432\u0435\u0441\u0442\u0438",YTP_SWITCH_CAMERA:"\u0418\u0437\u043c\u0435\u043d\u0438\u0442\u044c \u0440\u0430\u043a\u0443\u0440\u0441",YTP_MULTICAM_INDEX:"\u041a\u0430\u043c\u0435\u0440\u0430\u00a0$CAMERA_INDEX\u00a0\u0438\u0437\u00a0$CAMERA_COUNT",YTP_MORE_CAMERAS_AVAILABLE:"\u041c\u043e\u0436\u043d\u043e \u043f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0438\u0442\u044c\u0441\u044f \u043d\u0430 \u0434\u0440\u0443\u0433\u0443\u044e \u043a\u0430\u043c\u0435\u0440\u0443.",
YTP_VIDEO_SUBTITLES_OVERRIDE:"\u0412\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u044b\u0439 \u0441\u0442\u0438\u043b\u044c \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u043e\u0432",YTP_VIDEO_SUBTITLES_OVERRIDE_DESC:"\u0415\u0441\u043b\u0438 \u0432 \u0432\u0438\u0434\u0435\u043e \u0437\u0430\u0434\u0430\u043d\u044b \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u043e\u0432, \u043e\u043d\u0438 \u0438\u043c\u0435\u044e\u0442 \u043f\u0440\u0438\u043e\u0440\u0438\u0442\u0435\u0442."});
this.app.Ya.addEventListener("initializingmode",this.sA,this);this.app.Ya.addEventListener("videoplayerreset",this.uA,this);this.app.Ya.addEventListener("videodatachange",this.TI,this);this.app.Ya.addEventListener("presentingplayerstatechange",this.Pz,this)};
Ala=function(a,b){a.b=b;a.G=!1;if(!a.b.parentNode)try{Hf(a.o,a.b,0)}catch(d){var c="videoElement_: "+!!a.b+", containerElement: "+!!a.o+", containerElement.childNodes: "+!(!a.o||!a.o.childNodes)+", containerInitiallyTruthy: "+a.R+", isDisposed: "+a.isDisposed();throw Error(c);}a.A&&(a.A.disconnect(),a.A=null);!a.app.V.experiments.Z("no_detect_bad_extensions2")&&window.MutationObserver&&(a.A=new window.MutationObserver(x(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 ng(0,0,0,0),n5(this))}},a)),a.A.observe(a.b,{attributes:!0}));
a.D=new ng(0,0,0,0);n5(a);r2(a);zla(a)};
zla=function(a){I(a.b,"video-stream");I(a.b,"html5-main-video");var b=a.app.V;b.Na&&a.b.setAttribute("data-no-fullscreen",!0);b.nc&&(a.b.setAttribute("webkit-playsinline",""),a.b.setAttribute("playsinline",""));b.Fe&&a.S(a.b,"click",a.b.play,a.b)};
p5=function(a,b){if(a.b){var c=a.app.V;lA&&(a.b.setAttribute("x-webkit-airplay","allow"),b.title?a.b.setAttribute("title",b.title):a.b.removeAttribute("title"));var d;c.pf&&b.videoId?d=b.Gc(c,"default.jpg"):c.experiments.Z("legacy_poster_behavior")||Cc&&!o5&&!Lp()||(d="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7");d&&(a.b.poster=d)}c=b.Od("yt:bgcolor");a.o.style.backgroundColor=c?c:"";a.L=xz(b.Od("yt:stretch"));c=b.Od("yt:crop");a.J="fullwidth"==c?window.Infinity:
xz(c)};
r5=function(a){return(a=a.b)?q5(a.videoWidth,a.videoHeight):window.NaN};
Jy=function(a,b){var c=a.Ia(),d=s5(a,c,r5(a),b);return new ng((c.width-d.width)/2,(c.height-d.height)/2,d.width,d.height)};
s5=function(a,b,c,d){c=a.L||c;a=(0,window.isNaN)(c)?c:a.J||c;var e=q5(b.width,b.height);(0,window.isFinite)(a)||(a=Math.max(c,e));var f;a>e?f={width:b.width,height:b.width/a,aspectRatio:a}:a<e?f={width:b.height*a,height:b.height,aspectRatio:a}:f={width:b.width,height:b.height,aspectRatio:e};d||(0,window.isNaN)(c)||(c>a?f.width=f.height*c:c<a&&(f.height=f.width/c),f.aspectRatio=c);return f};
q5=function(a,b){return 1>Math.abs(t5*b-a)||1>Math.abs(t5/a-b)?t5:a/b};
u5=function(a){a=(a=gJ(a.app))&&a.getPlayerState();return!a||P(a,2)||Dq(a)};
r2=function(a){var b="3"==a.app.V.A&&!a.G&&!u5(a);a.b.controls=b;a.b.tabIndex=b?0:-1};
n5=function(a){var b=r5(a),c=a.Ia(),d=1,e=lA?!0:"3"!=a.app.V.A&&!(0,window.isNaN)(r5(a)),f=!1,k=s5(a,c,b),l=Sp()&&!a.app.V.experiments.Z("legacy_mie_display");u5(a)?(b=-c.height,lA?b*=window.devicePixelRatio:cB&&(b-=window.screen.height),b=new ng(0,b,c.width,c.height),l&&(a.b.style.display="none")):(e&&!(0,window.isNaN)(b)?(d=k.aspectRatio/b,b=new ng((c.width-k.width/d)/2,(c.height-k.height)/2,k.width/d,k.height)):b=new ng(0,0,c.width,c.height),l&&(a.b.style.display=""));pg(a.D,b)||(a.D=b,Xs(a.b,
qg(b)),Ms(a.b,rg(b)),f=!0);c=new ng((c.width-k.width)/2,(c.height-k.height)/2,k.width,k.height);pg(a.B,c)||(a.B=c,f=!0);Gs(a.b,"transform",1==d?"none":"scaleX("+d+")");return f};
v5=function(){this.b=[];this.g=[]};
w5=function(a,b,c){c=window.document.createElement(c?"audio":"video");ra(c,Bla);jm(c,"loadeddata",x(c.g,c));IA&&6<=KH&&jm(c,"webkitbeginfullscreen",x(c.play,c));b||c.src||c.load();a.g.push(c);return c};
x5=function(a,b,c,d){pk.call(this);this.A=a;this.N=x(b,null);this.g=0;this.C=!1;this.o=new ff(window.NaN,window.NaN);this.b=new Fx(this);H(this,this.b);b=d?4E3:3E3;this.F=new ge(qa(this.zb,1,!1),b,this);H(this,this.F);this.G=new ge(qa(this.zb,2,!1),b,this);H(this,this.G);this.J=new ge(qa(this.zb,512,!1),0,this);H(this,this.J);this.L=c&&0<c.aa.length?5E3:3E3;d||(this.K=this.b.S(a,"mouseover",this.Jv),this.b.S(a,"mousemove",this.OI),this.b.S(a,"mouseleave",this.IB));Ds?this.b.S(a,"keypress",this.sB):
this.b.S(a,"focusin",this.gz);this.B=this.b.S(a,"mousedown",this.Iv);this.D=this.b.S(a,"touchstart",this.Kv);this.R=null;this.zb(640,!0)};
y5=function(a){a.zb(4,!1);a.H&&(a.b.sa(a.H),a.H=null,a.K=a.b.S(a.A,"mouseover",a.Jv))};
z5=function(a,b){R.call(this,["canvas"]);this.element.width=a;this.element.height=b;this.width=a;this.height=b;this.context=this.element.getContext("2d");this.b=window.NaN;this.F=null};
B5=function(a,b){z5.call(this,a,b);this.H=null;this.C=this.D=this.A=this.o=0;this.B=-75;I(this.element,"ytp-tv-static");A5(this,a,b)};
C5=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};
A5=function(a,b,c){if(b&&c){a.width=a.element.width=b;a.height=a.element.height=c;var d=window.document.createElement("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.H=d;a.D=C5(b);a.C=C5(c/10);a.context.scale(1.5,1.5);a.context.fillStyle="rgba(255, 255, 255, 0.02)"}};
E5=function(a){R.call(this,["div",["ytp-error"],{role:"alert"},["div","ytp-error-content",["div","ytp-error-content-wrap","{{content}}"]]]);this.o=a;this.A=[];void 0==D5&&(a=window.document.createElement("canvas"),D5=!(!a.getContext||!a.getContext("2d")));D5&&(this.b=new B5(1,1),this.b.Ba(this.element,0),H(this,this.b));a=Ky(this.o).Ia();this.b&&A5(this.b,a.width,a.height)};
G5=function(a,b,c,d,e){e||(e=S(a.o).D);a=d?{CPN:a.o.getVideoData().clientPlaybackNonce}:null;b=N(b,a).split(/\$(BEGIN|END)_LINK/);return["span",null,b[0],["br"],["a",{href:c,target:e?"_blank":null},b[2]],b[4]]};
I5=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&&Vp(c.data.follow_on_url)}};
Cla=function(a,b,c){J5("add_to_watch_later_list",a,b,c)};
Dla=function(a,b,c){J5("delete_from_watch_later_list",a,b,c)};
J5=function(a,b,c,d){bk(c?c+"playlist_video_ajax?action_"+a+"=1":"/playlist_video_ajax?action_"+a+"=1",{method:"POST",Zc:{feature:b.feature||null,authuser:b.Ob||null,pageid:b.pageId||null},Sb:{video_ids:b.videoIds||null,source_playlist_id:b.sourcePlaylistId||null,full_list_id:b.fullListId||null,delete_from_playlists:b.VQ||null,add_to_playlists:b.LQ||null,plid:Ri("PLAYBACK_ID")||null},context:b.context,onError:b.onError,rb:function(a,c){var d=c.result;d&&d.actions&&I5(d.actions);b.rb.call(this,a,c)},
Ac:b.Ac,withCredentials:!!d})};
K5=function(a,b){R.call(this,{I:"svg",U:{width:a,height:b,viewbox:"0 0 "+a+" "+b},P:[{I:"polyline",U:{stroke:"white",fill:"none",points:"{{points}}"}}]});this.o=a;this.b=b};
Ela=function(a,b){for(var c=Math.max.apply(Math,b)||1,d=[],e=0;e<b.length;e++)d.push(e/b.length*a.o+","+a.b*(1-b[e]/c));return d.join(" ")};
L5=function(a,b){a.va("points",Ela(a,b))};
M5=function(a){var b;b=["button",["html5-video-info-panel-close","ytp-button"],{title:"close"},"[x]"];R.call(this,["div","html5-video-info-panel",b,["div","html5-video-info-panel-content",["div","",["div","","Video ID:"],["span","","{{video_id}}"]],["div","",["div","","Dimensions:"],["span","","{{dimensions}}"]],["div","",["div","","Resolution:"],["span","","{{resolution}}"]],["div","",["div","","Volume:"],["span","","{{volume}}"]],["div","",["div","","Stream Host:"],["span","","{{stream_host}}"]],
["div","",["div","","Stream Type:"],["span","","{{stream_type}}"]],["div",{style:"{{cpn_style}}"},["div","","CPN:"],["span",{style:"font-family:monospace"},"{{cpn}}"]],["div","",["div","","Mime Type:"],["span","","{{mime}}"]],["div","",["div","","DASH:"],["span","","{{dash}}"]],["div",{style:"{{color_style}}"},["div","","Color:"],["span","","{{color}}"]],["div",{style:"{{drm_style}}"},["div","","Protected:"],["span","","{{drm}}"]],["div","",["div","","Connection Speed:"],["span","",["span","","{{bandwidth_sparkline}}"],
["span","","{{bandwidth_kbps}}"]]],["div","",["div","","Buffer Health:"],["span","",["span","","{{buffer_health_sparkline}}"],["span","","{{buffer_health_seconds}}"]]],["div",{style:"{{live_latency_style}}"},["div","","Live Latency:"],["span","",["span","","{{live_latency_sparkline}}"],["span","","{{live_latency_message}}"]]],["div","",["div","","Dropped Frames:"],["span","","{{dropped_frames}}"]],["div",{style:"{{sequence_number_style}}"},["div","","Sequence Number:"],["span","","{{sequence_number}}"]]]]);
b&&this.S(this.pa["html5-video-info-panel-close"],"click",this.oa);this.o=new K5(200,14);H(this,this.o);this.va("bandwidth_sparkline",this.o);this.B=new K5(200,14);H(this,this.B);this.va("live_latency_sparkline",this.B);this.A=new K5(200,14);H(this,this.A);this.va("buffer_health_sparkline",this.A);this.C=new ge(this.D,500,this);H(this,this.C);this.b=a};
N5=function(){G.call(this);this.g=null;this.C=this.B=!1;this.A=new id;H(this,this.A)};
uI=function(a,b){var c="";b&&(O5(a,b),c=Vz(b));a.hc()&&""==c||(c&&a.hc()!=c&&a.bo(c),b&&b.b||a.load(),a.C||(a.addEventListener("volumechange",a.Fp,!1,a),a.C=!0))};
MI=function(a){a.Rf()&&a.seekTo(0);if(!a.hc()&&a.g){var b=Vz(a.g);a.bo(b);a.g.b||a.load()}a.play();P5&&7<=KH&&lm(a,"playing",x(function(){Ti(x(this.Vp,this,this.getCurrentTime(),0),500)},a))};
O5=function(a,b){a.g&&Wz(a.g,b)||(a.g&&a.g.dispose(),a.g=b)};
vq=function(a){return xC(a.he(),a.getCurrentTime())};
kI=function(a){a.hc()&&(lA&&0<a.getCurrentTime()&&a.seekTo(0),a.Ys(),a.load(),a.g&&a.g.b&&O5(a,null))};
Q5=function(a){var b=a.he();return 0<wC(b)&&a.lf()?vC(b,a.getCurrentTime()):0};
VI=function(a){var b=a.lf();return window.Infinity==b?1:b?Q5(a)/b:0};
R5=function(a,b,c){mc.call(this,b,a);this.b=c||null};
K4=function(a){N5.call(this);this.b=a;this.o={}};
S5=function(a){this.g=null;this.o=[];this.A=!1;this.b=null;this.Y=a};
U5=function(a){a.g||(a.g=T5.createMediaElementSource(a.b.la()));return a.g};
nL=function(a){var b=T5.createGain();a.o.push(b);return b};
V5=function(a,b){var c=T5.createChannelSplitter(b);a.o.push(c);return c};
W5=function(a,b){var c=T5.createChannelMerger(b);a.o.push(c);return c};
X5=function(a){for(var b;0<a.o.length;)b=a.o.pop(),b.disconnect();a.g&&a.g.disconnect()};
Y5=function(a,b,c,d){Fx.call(this);this.S(a,"click",this.H);this.S(a,"dblclick",this.F);this.G=b;this.A=c;this.B=d||null;this.g=new ge(this.D,200,this);H(this,this.g);this.b=!0;this.o=!1;this.C=null};
Z5=function(a){JK.call(this,{I:"div",W:"ytp-ad-persistent-progress-bar-container",P:[{I:"div",W:"ytp-ad-persistent-progress-bar"}]});this.o=a;this.C=this.pa["ytp-ad-persistent-progress-bar"];this.b=null;this.S(a,"presentingplayerstatechange",this.B);this.oa();this.B()};
$5=function(a){R.call(this,{I:"div",W:"ytp-bezel",U:{role:"status","aria-label":"{{label}}"},P:[{I:"div",W:"ytp-bezel-icon",P:["{{icon}}"]}]});this.A=new ge(this.B,10,this);H(this,this.A);this.o=new ge(this.C,10,this);H(this,this.o);this.b=new ge(this.D,500,this);H(this,this.b);this.Y=a;this.oa()};
b6=function(a){var b=os(a.Y);uq(b)?(b=a.Y.getVideoData(),b.xa&&!b.K?a6(a,Mh(),N("YTP_STOP")):a6(a,Fh(),N("YTP_PAUSE"))):P(b,64)||a6(a,Gh(),N("YTP_PLAY"))};
c6=function(a,b,c){0>=b?(c=Qh(),b=N("YTP_SCREENREADER_VOLUME_MUTED")):(c=c?Ph():Oh(),b=Math.floor(b)+"% "+N("YTP_SCREENREADER_VOLUME_SETTING"));a6(a,c,b)};
d6=function(a,b,c){c=c?xh?{I:"div",fa:["ytp-icon","ytp-icon-fast-rewind"]}:{I:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},P:[{I:"path",Ea:!0,W:"ytp-svg-fill",U:{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"}}]}:xh?{I:"div",fa:["ytp-icon","ytp-icon-fast-forward"]}:{I:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},P:[{I:"path",Ea:!0,W:"ytp-svg-fill",U:{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=N("YTP_PLAYBACK_SPEED_CHANGED",
{RATE:b});a6(a,c,b)};
a6=function(a,b,c){a.va("label",c||"");a.va("icon",b);b=a.o;b.isActive()&&he(b);b=a.b;b.isActive()&&he(b);a.A.start()};
e6=function(a,b){var c=["button",["ytp-button","ytp-cards-button"],{"aria-label":N("YTP_CARDS_BUTTON_ARIA_LABEL"),"aria-owns":"ytp-cards","aria-haspopup":!0},["span","ytp-cards-button-icon-default",xh?{I:"div",fa:["ytp-icon","ytp-icon-info-card"]}:{I:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},P:[{I:"path",Ea:!0,W:"ytp-svg-fill",U:{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"}}]}],
["span","ytp-cards-button-icon-shopping",xh?{I:"div",fa:["ytp-icon","ytp-icon-shopping-card"]}:{I:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},P:[{I:"path",W:"ytp-svg-shadow",U:{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"}},{I:"path",W:"ytp-svg-fill",U:{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"}},{I:"path",W:"ytp-svg-shadow-fill",U:{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"}}]}]];R.call(this,
c);this.Y=a;this.C=b;this.b=null;this.o=new yv(this,250,!0,100);H(this,this.o);this.oa();this.O("click",this.A);this.O("mouseover",this.B);Ev(this,!0)};
Ev=function(a,b){b?(a.element.title=N("YTP_DRAWER_HEADER_TEXT_2"),a.b=f6(a.C.g,a.element)):(a.b(),a.b=null,a.element.title="")};
g6=function(a,b,c,d,e){this.Y=a;this.L=b;this.da=!!e;this.ca=this.R=this.K=null;JK.call(this,c);this.H=new yv(this,d,!0);H(this,this.H);JK.call(this,c);this.oa();this.C=null};
h6=function(a){a.C&&(window.document.activeElement&&Qf(a.element,window.document.activeElement)&&(Wf(a.C),a.C.focus()),a.C.removeAttribute("aria-expanded"),a.C=null);a.K&&(a.sa(a.K),a.sa(a.R),a.sa(a.ca))};
i6=function(a){return a.g&&3!=a.H.b};
j6=function(a,b,c){this.b=[];this.A=null;this.size=new hf(0,0);this.D=this.F=null;this.ba=this.$=0;g6.call(this,a,b,{I:"div",fa:["ytp-popup",c||null]},100,!0);this.O("keydown",this.xJ)};
k6=function(a,b){!je(b.element,"ytp-panel-animate-back")&&je(b.element,"ytp-panel-animate-forward");a.A&&a.A.Fa("size-change",a.Oh,a);a.A=b;a.A.subscribe("size-change",a.Oh,a)};
l6=function(a){Xs(a.element,a.$||"100%",a.ba||"100%");var b=a.A;b.element.style.width="";b.element.style.height="";b.element.style.maxWidth="100%";b.element.style.maxHeight="100%";b.ba.element.style.height="";var c=Zs(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.ca&&(d=Zs(b.pa["ytp-panel-header"]).height);b.ba.element.style.height=c.height-d+"px";a.size=c};
n6=function(a,b){a.b.push(b);var c=a.A;c?m6(a,c,b):(k6(a,b),b.Ba(a.element))};
m6=function(a,b,c,d){o6(a);b.Fa("back",a.qe,a);c.subscribe("back",a.qe,a);k6(a,c);if(a.g){I(c.element,d?"ytp-panel-animate-back":"ytp-panel-animate-forward");c.Ba(a.element);c.focus();a.element.scrollLeft=0;a.element.scrollTop=0;var e=a.size;l6(a);Xs(a.element,e);a.F=new ge(qa(a.sG,b,c,d),20,a);a.F.start()}else c.Ba(a.element),b.detach()};
o6=function(a){a.F&&he(a.F);a.D&&he(a.D)};
q6=function(a,b,c,d){JK.call(this,a);this.priority=b;c&&p6(this,c);d&&this.Nb(d)};
r6=function(a,b,c){b=b?b:[];b.push("ytp-menuitem");a=a?a:{};"role"in a||(a.role="menuitem");c||"tabindex"in a||(a.tabindex=0);return{I:c?"a":"div",fa:b,U:a,P:[{I:"div",W:"ytp-menuitem-label",P:["{{label}}"]},{I:"div",W:"ytp-menuitem-content",P:["{{content}}"]}]}};
p6=function(a,b){a.va("label",b)};
s6=function(a,b,c,d,e){var f={I:"div",W:"ytp-panel"};if(c){var k="ytp-panel-title",l={I:"div",W:"ytp-panel-header",P:[{I:"button",fa:["ytp-button",k],P:[c]}]};if(e){var m="ytp-panel-options";l.P.push({I:"button",fa:["ytp-button",m],P:[d]})}f.P=[l]}JK.call(this,f);this.ba=b;b.Ba(this.element);this.ca=!1;c&&(this.S(this.pa[k],"click",this.da),this.ca=!0,e&&this.S(this.pa[m],"click",e));b.subscribe("size-change",this.ea,this);this.S(a,"fullscreentoggled",this.ea)};
t6=function(a,b,c,d,e){this.o=new JK({I:"div",W:"ytp-panel-menu",U:{role:"menu",id:b||null}});H(this,this.o);s6.call(this,a,this.o,c,d,e);this.b=[]};
u6=function(a,b,c){if(c)a.b.push(b),a.o.element.appendChild(b.element);else{c=Ab(a.b,b,Fla);if(0<=c)return;c=~c;vb(a.b,c,0,b);Hf(a.o.element,b.element,c)}b.subscribe("size-change",a.R,a);a.o.X("size-change")};
Fla=function(a,b){return b.priority-a.priority};
v6=function(a){var b=r6({"aria-haspopup":!0});q6.call(this,b,a);this.O("keydown",this.b)};
w6=function(a,b){a.element.setAttribute("aria-haspopup",b)};
x6=function(a,b){this.b=!1;var c=r6({role:"menuitemcheckbox","aria-checked":this.b});q6.call(this,c,b,a,{I:"div",W:"ytp-menuitem-toggle-checkbox"});this.O("click",this.G)};
y6=function(a,b){a.b=b;a.element.setAttribute("aria-checked",a.b)};
B6=function(a,b,c){this.Y=a;this.L=b;this.G=c;t6.call(this,a);this.F=new v6(8);H(this,this.F);u6(this,this.F,!0);this.F.O("click",this.hD,this);this.D=new v6(7);H(this,this.D);u6(this,this.D,!0);this.D.O("click",this.gD,this);this.C=new v6(6);H(this,this.C);u6(this,this.C,!0);this.C.O("click",this.eD,this);this.J=new x6(N("YTP_LOOP"),5);H(this,this.J);u6(this,this.J,!0);this.J.O("click",this.wD,this);this.K=new q6(r6({href:"{{href}}",target:"_blank"},void 0,!0),4,N("YTP_REPORT_ISSUE"));H(this,this.K);
u6(this,this.K,!0);this.K.O("click",this.wE,this);this.H=new v6(3);H(this,this.H);u6(this,this.H,!0);this.H.O("click",this.dD,this);b=new q6(r6(),2,N("YTP_SHOW_VIDEO_INFO"));H(this,b);u6(this,b,!0);b.O("click",this.KE,this);b="//"+XA(S(this.Y))+"/html5";b=new q6(r6({href:b,target:"_blank"},void 0,!0),1,N("YTP_HTML5_CONTEXT_MENU_LINK"));H(this,b);u6(this,b,!0);b.O("click",this.LB,this);this.B=new JK({I:"div",fa:["ytp-copytext","ytp-no-contextmenu"],U:{draggable:!1,tabindex:1},P:["{{text}}"]});H(this,
this.B);this.B.O("click",this.KC,this);this.$=new s6(a,this.B);H(this,this.$);this.A=null;b=window.document.queryCommandSupported&&window.document.queryCommandSupported("copy");bm&&zc(43)&&(b=!0);yA&&!zc(41)&&(b=!1);b&&(this.A=new R({I:"input",W:"ytp-html5-clipboard"}),H(this,this.A),this.A.Ba(this.element));this.S(a,"loopchange",this.vD);this.S(a,"videodatachange",this.iJ);z6(this);A6(this,this.Y.getVideoData())};
C6=function(a,b){var c;if(a.A){a.A.element.value=b;a.A.element.select();try{c=window.document.execCommand("copy")}catch(d){}}c?a.G.ub():(a.B.Nb(b,"text"),n6(a.G,a.$),Pq(a.B.element),a.A&&(a.A=null,z6(a)));return c};
A6=function(a,b){var c=S(a.Y),d=!c.F&&!!b.videoId;"play"!=c.g?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.g&&(c.fmt=Fu(b.g)),b.clientPlaybackNonce&&(c.cpn=b.clientPlaybackNonce),b.Aa&&(c.partnerid=b.Aa),c=Ug("//support.google.com/googleplay/",c));a.C.fb(d&&b.allowEmbed);a.F.fb(d);a.D.fb(d&&!b.xa);a.K.Nb(c,"href")};
z6=function(a){var b=!!a.A;p6(a.H,N(b?"YTP_COPY_DEBUG_INFO":"YTP_GET_DEBUG_INFO"));w6(a.H,!b);p6(a.C,N(b?"YTP_EMBED_COPY":"YTP_GET_EMBED"));w6(a.C,!b);p6(a.F,N(b?"YTP_COPY_VIDEO_URL":"YTP_GET_VIDEO_URL"));w6(a.F,!b);p6(a.D,N(b?"YTP_COPY_VIDEO_URL_AT_TIME":"YTP_GET_VIDEO_URL_AT_TIME"));w6(a.D,!b)};
E6=function(a,b){this.B=a;this.o=new Fx(this);H(this,this.o);this.G=null;j6.call(this,a,b);I(this.element,"ytp-contextmenu");D6(this)};
D6=function(a){Hx(a.o);var b=S(a.B);"gvn"!=b.g&&"gvn-experiment"!=b.g&&a.o.S(Ky(a.B),"contextmenu",a.JC)};
F6=function(a){a.B.Qa()?kw(a.B,a.element,9):a.Ba(window.document.body)};
G6=function(a){this.F=new Fx(this);MK.call(this,a,{I:"div",fa:["ytp-thumbnail-overlay","ytp-cued-thumbnail-overlay"],P:[{I:"div",W:"ytp-thumbnail-overlay-image"}]});this.H=a;this.G=this.pa["ytp-thumbnail-overlay-image"];this.B=new ge(this.Vv,0,this);H(this,this.B);var b=S(a);b.experiments.Z("moving_thumbnails_cued_state")&&(this.o=new R({I:"img",W:"ytp-thumbnail-overlay-moving",U:{src:"{{url}}"}}),H(this,this.o),this.o.Ba(this.element),this.C=new ge(this.JD,5500,this),H(this,this.C),this.D=new yv(this.o,
500),H(this,this.D),this.S(this.o.element,"load",this.mJ),this.S(this.element,"mouseenter",this.kJ),this.S(this.element,"mouseleave",this.lJ));this.Vv();this.S(a,"presentingplayerstatechange",this.oJ);"detailpage"==b.b&&this.S(a,"videoplayerreset",this.nJ)};
H6=function(a,b,c){var d=Dq(c),e=!S(b).experiments.Z("disable_new_pause_state3");b=P(c,2)&&!kJ(b)&&(!e||!dL(b.app));d||b?a.show():(Av(a),P(c,1)||a.stop())};
I6=function(a,b,c,d,e,f,k){Fx.call(this);this.b=a;this.H=c;this.F=d;this.A=e;this.g=f;this.G=k;this.o="";a=qa(this.B,!1);this.S(b,"mousedown",a);this.S(c.element,"mousedown",a);this.S(b,"keydown",this.C);this.S(c.element,"keydown",this.C);this.S(b,"keyup",this.D);this.S(c.element,"keyup",this.D)};
K6=function(a,b,c){var d=!1,e=S(a.b);if(!e.Lb){switch(b){case 80:c&&(a6(a.g,Ih(),N("YTP_PREVIOUS")),a.b.fk(),d=!0);break;case 78:c&&(a6(a.g,Eh(),N("YTP_NEXT")),a.b.ek(),d=!0);break;case 74:a6(a.g,xh?{I:"div",fa:["ytp-icon","ytp-icon-rewind-ten-seconds"]}:{I:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},P:[{I:"path",Ea:!0,W:"ytp-svg-fill",U:{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.b.zd(-10*a.b.app.L);d=!0;break;case 76:a6(a.g,xh?{I:"div",fa:["ytp-icon","ytp-icon-forward-ten-seconds"]}:{I:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},P:[{I:"path",Ea:!0,W:"ytp-svg-fill",U:{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.b.zd(10*a.b.app.L);d=!0;break;case 77:a.b.bd()?(a.b.Of(),c6(a.g,a.b.Mb(),!1)):(a.b.mute(),c6(a.g,0,!0));d=!0;break;case 75:b6(a.g);uq(os(a.b))?a.b.pauseVideo():a.b.yd();d=!0;break;case 190:if(c){if(e.ga)for(b=a.b.Vh(),c=a.b.app.L,e=0;e<b.length-1;e++)b[e]==c&&(d=b[e+1],a.b.Yh(d,!0),d6(a.g,d,!1),d=!0)}else J6(a,1),d=!0;break;case 188:if(c){if(e.ga)for(b=a.b.Vh(),c=a.b.app.L,e=b.length-1;1<=e;e--)b[e]==c&&(d=b[e-1],a.b.Yh(d,!0),d6(a.g,d,!0),d=!0)}else J6(a,-1),d=!0;break;case 70:vr(a.b)&&(yr(a.b),
d=!0)}d&&a.F.zb(2,!0)}return d};
M6=function(a,b,c,d){if(nJ(jq(a.b),"captions")){for(var e=a.b.Ib("captions","displaySettings"),f,k=0;k<L6.length;k++){var l=L6[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.b.Pn(d);return!0}return!1};
J6=function(a,b){if(P(os(a.b),4)){var c=a.b.getVideoData().g;c&&(c=c.video)&&a.b.zd(b/(c.fps||30))}};
O6=function(a){var b=["ytp-large-play-button","ytp-button"],c=S(a);c.N&&!c.Ub?c=xh?{I:"div",fa:["ytp-icon","ytp-icon-large-play-button-hover"]}:{I:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 68 48",width:"100%"},P:[{I:"path",W:"ytp-large-play-button-bg",U:{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"}},{I:"path",U:{d:"m 26.96,13.67 18.37,9.62 -18.37,9.55 -0.00,-19.17 z",fill:"#fff"}},{I:"path",U:{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.Ub?xh?{I:"div",fa:["ytp-icon","ytp-icon-house-brand-large-play-button"]}:{I:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 60 60",width:"100%"},P:[{I:"path",W:"ytp-large-play-button-bg",U:{"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"}},{I:"path",U:{d:"M21,41.65 L21,18 L43.7,29.85 L21,41.65 Z",fill:"#fff"}}]}:xh?{I:"div",fa:["ytp-icon","ytp-icon-large-play-button"]}:{I:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 68 48",width:"100%"},P:[{I:"path",W:"ytp-large-play-button-bg",U:{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"}},{I:"path",U:{d:"m 26.96,13.67 18.37,9.62 -18.37,9.55 -0.00,-19.17 z",fill:"#fff"}},{I:"path",U:{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"}}]});R.call(this,{I:"button",fa:b,U:{"aria-label":"{{label}}"},P:[c]});this.b=a;this.A=!1;this.o=new yv(this,250);H(this,this.o);this.S(a,"presentingplayerstatechange",this.B);N6(this,os(a))};
N6=function(a,b){if(S(a.b).mf&&!a.A){H6(a.o,a.b,b);var c;c=(c=a.b.getVideoData())&&c.title?N("YTP_WATCH_VIDEO_OR_PLAYLIST",{TITLE:c.title}):N("YTP_PLAY");a.va("label",c)}else a.oa()};
P6=function(a,b,c){var d=b.Gb(c),e=S(a),f=d.Gc(e,"default.jpg");R.call(this,{I:"a",fa:["ytp-video-menu-item","ytp-button"],U:{role:"menuitemradio","aria-label":d.title,href:e.getVideoUrl(d.videoId,b.listId?b.listId.toString():null)},P:[{I:"div",W:"ytp-video-menu-item-index",P:[""+(c+1)]},{I:"div",W:"ytp-video-menu-item-now-playing",P:["\u25b6"]},{I:"div",W:"ytp-video-menu-item-thumbnail",U:{style:f?"background-image: url("+f+");":null}},{I:"div",W:"ytp-video-menu-item-title",P:[d.title]},{I:"div",
W:"ytp-video-menu-item-author",P:[N("YTP_UPLOADED_BY_2",{AUTHOR:d.author})]}]});this.b=a;this.o=c;this.O("click",this.A)};
Q6=function(a,b){this.o=a;g6.call(this,a,b,{I:"div",W:"ytp-playlist-menu",U:{role:"dialog"},P:[{I:"div",W:"ytp-playlist-menu-header",P:[{I:"div",W:"ytp-playlist-menu-title",P:[{I:"a",W:"ytp-playlist-menu-title-name",U:{href:"{{playlisturl}}"},P:["{{title}}"]},{I:"button",fa:["ytp-playlist-menu-close","ytp-button"],U:{"aria-label":N("YTP_CLOSE")},P:[Ch()]}]},{I:"div",W:"ytp-playlist-menu-subtitle",P:["{{subtitle}}"]}]},{I:"div",W:"ytp-playlist-menu-items",U:{role:"menu"}}]},250);this.S(this.pa["ytp-playlist-menu-close"],
"click",this.ub);this.S(this.pa["ytp-playlist-menu-title-name"],"click",this.WE);this.B=this.D=this.b=null;this.F=this.pa["ytp-playlist-menu-items"];this.A=[]};
R6=function(a,b){a.b!=b&&(a.b&&a.b.Fa("shuffle",a.Xm,a),a.b=b,a.D=null,b?b.subscribe("shuffle",a.Xm,a):a.g&&a.oa())};
S6=function(a,b,c){var d={I:"button",fa:["ytp-playlist-menu-button","ytp-button"],U:{title:"{{title}}","aria-owns":"ytp_playlist_menu","aria-haspopup":!0,"aria-label":N("YTP_PLAYLIST")},P:[{I:"div",W:"ytp-playlist-menu-button-icon",P:[Hh()]},{I:"div",W:"ytp-playlist-menu-button-text",P:["{{text}}"]}]};R.call(this,d);this.A=a;this.b=null;this.B=b.g;this.S(a,"videodatachange",this.C);this.S(a,"onPlaylistUpdate",this.C);this.S(a,"presentingplayerstatechange",this.o);this.S(a,"appresize",this.o);this.oa();
this.C();Mb(this,f6(this.B,this.element));this.O("click",x(c.Ye,c,this.element,!1))};
T6=function(a,b){R.call(this,{I:"button",fa:["ytp-replay-button","ytp-button"],U:{title:N("YTP_REPLAY")},P:[Jh()]});this.b=a;this.S(a,"presentingplayerstatechange",this.A);this.O("click",this.o,this);var c=os(a);this.fb(P(c,2));f6(b.g,this.element)};
U6=function(a,b){var c={I:"div",W:"ytp-share-panel",U:{id:"ytp-share-panel",role:"dialog","aria-labelledby":"ytp-share-panel-title"},P:[{I:"button",fa:["ytp-share-panel-close","ytp-button"],U:{title:N("YTP_CLOSE")},P:[Ch()]},{I:"div",W:"ytp-share-panel-inner-content",P:[{I:"div",W:"ytp-share-panel-title",U:{id:"ytp-share-panel-title"},P:[N("YTP_SHARE")]},{I:"a",fa:["ytp-share-panel-link","ytp-no-contextmenu"],U:{href:"{{link}}",target:"_blank",title:N("YTP_SHARE_LINK"),"aria-label":N("YTP_SHARE_LINK")},
P:["{{linkText}}"]},{I:"label",W:"ytp-share-panel-include-playlist",P:[{I:"input",W:"ytp-share-panel-include-playlist-checkbox",U:{type:"checkbox",checked:!0}},N("YTP_SHARE_WITH_PLAYLIST_2")]},{I:"div",W:"ytp-share-panel-loading-spinner",P:[Lh()]},{I:"div",W:"ytp-share-panel-service-buttons",P:["{{buttons}}"]},{I:"div",W:"ytp-share-panel-error",P:[N("YTP_SHARE_PANEL_ERROR")]}]}]};g6.call(this,a,b,c,250);this.o=a;this.A=b.g;this.b=[];this.G=this.pa["ytp-share-panel-inner-content"];this.D=this.pa["ytp-share-panel-close"];
this.S(this.D,"click",this.ub);Mb(this,f6(this.A,this.D));this.F=this.pa["ytp-share-panel-include-playlist-checkbox"];this.S(this.F,"click",this.Zv);this.B=this.pa["ytp-share-panel-link"];Mb(this,f6(this.A,this.B));this.O("click",this.XD);this.S(a,"videoplayerreset",this.oa);this.S(a,"fullscreentoggled",this.DJ)};
Gla=function(a){switch(a){case "facebook":return xh?{I:"div",fa:["ytp-icon","ytp-icon-share-facebook"]}:{I:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},P:[{I:"rect",U:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{I:"path",U:{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 xh?{I:"div",fa:["ytp-icon","ytp-icon-share-googleplus"]}:{I:"svg",U:{height:"100%",version:"1.0",viewBox:"0 0 38 38",width:"100%"},P:[{I:"rect",U:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{I:"path",U:{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 xh?{I:"div",fa:["ytp-icon","ytp-icon-share-twitter"]}:{I:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},P:[{I:"rect",U:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{I:"path",U:{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}};
V6=function(a){for(var b=0;b<a.b.length;b++)a.b[b].detach(),Nb(a.b[b]);a.b=[]};
W6=function(a,b,c,d){R.call(this,{I:"button",fa:["ytp-button","ytp-share-button"],U:{title:N("YTP_SHARE"),"aria-haspopup":!0,"aria-owns":"ytp-share-panel"},P:[xh?{I:"div",fa:["ytp-icon","ytp-icon-sharrow"]}:{I:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},P:[{I:"path",Ea:!0,W:"ytp-svg-fill",U:{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"}}]}]});
this.b=a;this.A=d;this.O("click",x(c.Ye,c,this.element,!1));this.S(a,"videodatachange",this.o);this.S(a,"appresize",this.o);this.o();Mb(this,f6(b.g,this.element))};
X6=function(a){R.call(this,{I:"div",W:"ytp-webgl-spherical-control",U:{tabindex:0,"aria-label":N("YTP_SPHERICAL_CONTROL")},P:[xh?{I:"div",fa:["ytp-icon","ytp-icon-spherical-control"]}:{I:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 50 50",width:"100%"},P:[{I:"circle",Ea:!0,U:{cx:"25",cy:"25",fill:"#fff",r:"24"}},{I:"path",Ea:!0,U:{d:"M11.46,29.41 L9.97,30.90 L4,24.95 L9.97,19 L11.46,20.48 L7.00,24.95 L11.46,29.41 M42.46,24.95 L38,20.48 L39.48,19 L45.46,24.95 L39.48,30.90 L38,29.41 L42.46,24.95 M24.5,42.43 L28.96,37.96 L30.45,39.45 L24.5,45.43 L18.54,39.45 L20.03,37.96 L24.5,42.43 M24.5,6.97 L20.03,11.43 L18.54,9.94 L24.5,3.96 L30.45,9.94 L28.96,11.43 L24.5,6.97 Z",
fill:"#999"}}]}]});this.b=a;this.$=this.ca=this.o=this.A=null;this.B=[];this.L=!1;this.R=null;this.C=new mt(x(this.EJ,this),null);H(this,this.C);this.N=-1;this.ba=this.D=this.G=this.F=this.J=this.H=0;this.K=!1;this.S(a,"videodatachange",this.fo);this.S(a,"onApiChange",this.fo);this.oa();this.fo()};
Y6=function(a,b,c,d){a.J=af(b+a.J,-1,1);a.G=af(c+a.G,-1,1);a.ba=af(d+a.ba,-1,1);a.L||(a.L=!0,I(a.element,"ytp-dragging"),a.N=C(),a.C.start())};
Z6=function(a){a.C.stop();a.L=!1;a.J=0;a.G=0;a.ba=0;a.B=[];me(a.element,"ytp-dragging")};
$6=function(a,b,c,d,e,f){var k=f-a.N;a.F=(a.H*a.F+(b-e.yaw))/(k+a.H);a.D=(a.H*a.D+(c-e.pitch))/(k+a.H);a.N=f;a.H=k;b={shader:"Spherical",yaw:b,pitch:c,fov:d};(a=jq(a.b).g)&&AL(a,b)};
a7=function(a,b){if(-1<a.B.indexOf(b))return!0;var c=!1;switch(b){case 37:case 65:Y6(a,1,0,0);c=!0;break;case 39:case 68:Y6(a,-1,0,0);c=!0;break;case 38:case 87:Y6(a,0,1,0);c=!0;break;case 40:case 83:Y6(a,0,-1,0);c=!0;break;case 107:Y6(a,0,0,-1);c=!0;break;case 109:Y6(a,0,0,1),c=!0}c&&a.B.push(b);return c};
b7=function(a,b){var c=a.B.indexOf(b);if(-1<c)switch(a.B.splice(c,1),b){case 37:case 65:Y6(a,-1,0,0);break;case 39:case 68:Y6(a,1,0,0);break;case 38:case 87:Y6(a,0,-1,0);break;case 40:case 83:Y6(a,0,1,0);break;case 107:Y6(a,0,0,1);break;case 109:Y6(a,0,0,-1)}0==a.B.length&&(a.L=!1)};
d7=function(a){R.call(this,{I:"div",W:"ytp-spinner",P:[{I:"span",W:"ytp-spinner-svg",P:[Lh()]},{I:"div",W:"ytp-spinner-message",P:[N("YTP_PLAYBACK_STALLED_AT_START")]}]});this.A=this.pa["ytp-spinner-message"];this.o=a;this.b=new ge(this.show,500,this);this.S(a,"presentingplayerstatechange",this.D);this.S(a,"onFrescaStateChange",this.B);this.S(a,"playbackstalledatstart",this.C);c7(this,os(a))};
c7=function(a,b){var c;P(b,128)?c=0:!(c=P(b,16))&&(c=P(b,1))&&(c=nJ(jq(a.o),"fresca"),c=!(c&&c.loaded));c?a.b.start():a.oa()};
e7=function(a,b){R.call(this,{I:"button",fa:["ytp-airplay-button","ytp-button"],U:{title:N("YTP_AIRPLAY")},P:["{{icon}}"]});this.b=a;this.O("click",this.A);this.S(a,"airplayactivechange",this.o);this.S(a,"airplayavailabilitychange",this.o);this.o();Mb(this,f6(b.g,this.element))};
f7=function(a,b){JK.call(this,{I:"div",W:"ytp-storyboard",P:[{I:"div",W:"ytp-storyboard-filmstrip",P:[{I:"div",W:"ytp-storyboard-thumbnail"}]},{I:"div",W:"ytp-storyboard-lens",P:[{I:"div",W:"ytp-storyboard-lens-thumbnail"},{I:"div",W:"ytp-storyboard-lens-timestamp-wrapper",P:[{I:"span",W:"ytp-storyboard-lens-timestamp"}]}]}]});this.A=a;this.$=b.g;this.L=new Am(this.yB,250,this);H(this,this.L);this.F=Ky(a).Ia().width;this.o=this.pa["ytp-storyboard-filmstrip"];this.ca=this.pa["ytp-storyboard-lens"];
this.ea=this.pa["ytp-storyboard-lens-thumbnail"];this.da=this.pa["ytp-storyboard-lens-timestamp"];this.ba=this.pa["ytp-storyboard-thumbnail"];If(this.ba);this.G=0;this.R=!1;this.K=this.C=this.B=window.NaN;this.b=this.D=null;this.H=new Fx(this);this.J=new yv(this,100);this.S(this.A,"appresize",this.Tz);this.S(this.A,"presentingplayerstatechange",this.pJ)};
g7=function(a,b){var c=!!a.b;c&&a.b.Fa("l",a.Uj,a);a.b=b&&XH(b);a.R=!!b&&b.xa;a.b?(c||(a.H.S(a.A,"videodatachange",a.qJ),a.H.S(a.A,"progresssync",a.uk),a.H.S(a.A,"videoplayerreset",a.uk)),a.b.subscribe("l",a.Uj,a),a.K=window.NaN,a.B=window.NaN,a.C=window.NaN,a.uk(),a.J.show(200)):(c&&Hx(a.H),a.L.stop(),Kx(a.G),Av(a.J),a.J.stop())};
h7=function(a,b,c,d){var e=a.ba.cloneNode(!1);a=sH(a.b,b,c);b2(e,a,c,d);return e};
i7=function(a){R.call(this,{I:"div",W:"ytp-storyboard-framepreview",P:[{I:"div",W:"ytp-storyboard-framepreview-img"}]});this.D=this.pa["ytp-storyboard-framepreview-img"];this.b=a;this.o=null;this.A=window.NaN;this.B=new Fx(this);this.C=new yv(this,100);this.S(this.b,"presentingplayerstatechange",this.rJ)};
k7=function(a,b){var c=!!a.o;a.o=b&&XH(b);a.o?(c||(a.B.S(a.b,"videodatachange",a.tJ),a.B.S(a.b,"progresssync",a.sJ),a.B.S(a.b,"appresize",a.Uz)),a.A=window.NaN,j7(a),a.C.show(200)):(c&&Hx(a.B),Av(a.C),a.C.stop())};
j7=function(a){var b=a.b.getCurrentTime(),c=Ky(a.b).Ia(),d=a.o.lg(c.width),b=yH(a.o,d,b);b!=a.A&&(a.A=b,uH(a.o,b,c.width),b=sH(a.o,b,c.width),b2(a.D,b,c.width,c.height))};
m7=function(a,b){R.call(this,{I:"button",fa:["ytp-fullscreen-button","ytp-button"],U:{title:"{{title}}"},P:["{{icon}}"]});this.o=a;this.B=b;this.b=null;this.A=f6(b.g,this.element);this.C=new ge(this.Jy,2E3,this);H(this,this.C);this.S(a,"fullscreentoggled",this.Ht);this.S(a,"presentingplayerstatechange",this.Wv);this.O("click",this.uJ);if(Yh()){var c=Ky(this.o);this.S(c,Xh(),this.Wr);this.S(c,Wh(window.document),this.vJ)}S(a).Ca||l7(this);this.Wv();this.Ht(a.Qa())};
l7=function(a){if(!a.b){var b=N(null!=Uh(["requestFullscreen","webkitRequestFullscreen","mozRequestFullScreen","msRequestFullscreen"],window.document.body)?"YTP_FULLSCREEN_GENERIC_ERROR":"YTP_FULLSCREEN_UNSUPPORTED_ERROR").split(/\$(BEGIN|END)_LINK/);a.b=new g6(a.o,a.B,{I:"div",fa:["ytp-popup","ytp-generic-popup"],U:{role:"alert",tabindex:0},P:[b[0],{I:"a",U:{href:"https://support.google.com/youtube/answer/6276924",target:"_blank"},P:[b[2]]},b[4]]},100,!0);H(a,a.b);a.b.subscribe("show",x(a.B.ul,a.B,
a.b));kw(a.o,a.b.element,4);a.element.setAttribute("aria-disabled",!0);a.element.setAttribute("aria-haspopup",!0);a.A();a.A=null}};
n7=function(a,b,c){R.call(this,{I:"button",fa:["ytp-multicam-button","ytp-button"],U:{title:N("YTP_SWITCH_CAMERA"),"aria-haspopup":!0,"data-preview":"{{preview}}","data-tooltip-text":"{{text}}"},P:[xh?{I:"div",fa:["ytp-icon","ytp-icon-switch-camera"]}:{I:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},P:[{I:"path",Ea:!0,U:{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.b=!1;this.A=b.g;this.C=new ge(this.D,0,this);H(this,this.C);this.O("click",x(c.Ye,c,this.element,!1));this.S(a,"presentingplayerstatechange",qa(this.B,!1));this.S(a,"videodatachange",this.F);this.B(!0);Mb(this,f6(this.A,this.element))};
o7=function(a,b){this.A=new Fx(this);H(this,this.A);var c={I:"div",W:"ytp-multicam-menu",U:{role:"dialog"},P:[{I:"div",W:"ytp-multicam-menu-header",P:[{I:"div",W:"ytp-multicam-menu-title",P:[N("YTP_SWITCH_CAMERA"),{I:"button",fa:["ytp-multicam-menu-close","ytp-button"],U:{"aria-label":N("YTP_CLOSE")},P:[Ch()]}]}]},{I:"div",W:"ytp-multicam-menu-items"}]};g6.call(this,a,b,c,250);this.S(this.pa["ytp-multicam-menu-close"],"click",this.ub);this.b=a;this.B=this.pa["ytp-multicam-menu-items"];this.o=[]};
p7=function(a,b,c,d,e,f,k,l){this.o=a;this.D=b;this.b=c;this.B=d;this.g=e;this.C=f;this.A=k;this.F=l};
q7=function(){this.o=null;this.B=this.b=0;this.A=new mt(this.g,null,this);H(this,this.A)};
r7=function(a,b){if("path"==b.I)return b.U.d;if(b.P)for(var c=0;c<b.P.length;c++){var d=b.P[c];if(d&&!w(d)&&(d=r7(a,d)))return d}};
v7=function(a,b,c){c=r7(a,c);var d=b.getElementsByTagName("path")[0],e=d.getAttribute("d");if(d.getAttribute("id")){var f=Iq.b();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=s7(e),m=s7(c);t7(a,function(a){d.setAttribute("d",u7(l,m,a))},200)};
t7=function(a,b,c){a.o=b;a.B=zq();a.b=c;a.g()};
s7=function(a){var b=[];a=a.match(Hla);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};
u7=function(a,b,c){var d,e="";for(d=0;d<a.length;d++)var f=a[d],e=ha(f)?e+(f+(b[d]-f)*c):e+f;return e};
x7=function(a,b){var c=S(a);R.call(this,{I:"button",fa:["ytp-mute-button","ytp-button"],U:c.$?{title:"{{title}}"}:{"aria-disabled":!0,"aria-haspopup":!0},P:["{{icon}}"]});this.va("icon",Qh());this.b=a;this.L=b.g;this.o=this.A=window.NaN;S(this.b).N||(this.B=this.element.getElementsByTagName("path")[0],this.F=this.element.getElementsByTagName("svg")[1],this.H=this.B.getAttribute("d"));this.C=new q7;H(this,this.C);this.O("click",this.G);this.S(a,"appresize",this.D);this.S(a,"onVolumeChange",this.N);
var d=null;c.$?Mb(this,f6(b.g,this.element)):(c=N("YTP_VOLUME_UNSUPPORTED_ERROR").split(/\$(BEGIN|END)_LINK/),d=new g6(a,b,{I:"span",fa:["ytp-popup","ytp-generic-popup"],U:{tabindex:0},P:[c[0],{I:"a",U:{href:"https://support.google.com/youtube/?p=noaudio",target:"_blank"},P:[c[2]]},c[4]]},100,!0),H(this,d),d.subscribe("show",x(b.ul,b,d)),kw(a,d.element,4));this.K=d;this.D(Ky(a).Ia());w7(this,a.Mb(),a.bd())};
w7=function(a,b,c){var d=c?0:b/100;b=S(a.b);if(b.N)d=0==d?Qh():0<d&&.5>d?Ph():Oh(),d!=a.J&&(a.va("icon",d),a.J=d);else if(d=d?.5*Math.ceil(d/.5):-.5,a.o!=d){var e=a.A;(0,window.isNaN)(e)?y7(a,d):t7(a.C,x(function(a){y7(this,e+(this.o-e)*a)},a),250);
a.o=d}b.$&&(a.va("title",c?N("YTP_UNMUTE"):N("YTP_MUTE")),z7(a.L))};
y7=function(a,b){a.A=b;var c=a.H,d=af(2*b,0,1);d&&(c+=" "+u7(Ila,Jla,d),(d=af(2*(b-.5),0,1))&&(c+=" "+u7(Kla,Lla,d)));a.B.setAttribute("d",c);a.F.style.opacity=Math.max(b/-.5,0)};
A7=function(a,b){R.call(this,{I:"button",fa:["ytp-pip-button","ytp-button"],U:{title:N("YTP_PIP")},P:[xh?{I:"div",fa:["ytp-icon","ytp-icon-pip"]}:{I:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},P:[{I:"path",Ea:!0,U:{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.b=
a;this.O("click",this.o);Mb(this,f6(b.g,this.element))};
C7=function(a,b){R.call(this,{I:"button",fa:["ytp-play-button","ytp-button"],U:{title:"{{title}}","aria-label":"{{label}}"},P:["{{icon}}"]});this.b=a;this.o=null;this.B=b.g;this.A=null;this.C=new q7;H(this,this.C);this.S(a,"fullscreentoggled",this.D);this.S(a,"presentingplayerstatechange",this.F);this.S(a,"videodatachange",this.D);B7(this,os(a));this.O("click",this.G,this)};
D7=function(a){switch(a){case 1:return Gh();case 2:return Fh();case 3:return Jh();case 4:return Mh();default:return null}};
B7=function(a,b){var c,d=ps(a.b.getVideoData()),e=!1;uq(b)?c=d?4:2:P(b,2)?(c=3,e=d):c=1;a.element.disabled=e;if(a.o!=c){var f;switch(c){case 2:f=N("YTP_PAUSE");break;case 3:f=N("YTP_REPLAY");break;case 1:f=N("YTP_PLAY");break;case 4:f=N("YTP_STOP")}3==c?(a.A||(a.A=f6(a.B,a.element)),a.update({title:f,label:null,icon:D7(c)})):(a.A&&(a.A(),a.A=null),a.update({title:null,label:f}),(d=D7(c))&&a.o&&3!=a.o&&!S(a.b).N?v7(a.C,a.element,d):a.va("icon",d));z7(a.B);a.o=c}};
E7=function(a,b,c){var d,e;c?(d="ytp-next-button",e=Eh()):(d="ytp-prev-button",e=Ih());R.call(this,{I:"a",fa:[d,"ytp-button"],U:{title:"{{title}}",href:"{{url}}","data-preview":"{{preview}}","data-tooltip-text":"{{text}}","data-duration":"{{duration}}","aria-disabled":"{{disabled}}","data-next":"{{next}}","data-prev":"{{prev}}"},P:[e]});this.b=a;this.J=b.g;this.A=c;this.o=this.F=null;this.H=!1;this.D=this.G=this.B=null;this.C=!1;this.S(a,"fullscreentoggled",this.ah);this.S(a,"videodatachange",this.ah);
this.S(a,"onPlaylistUpdate",this.ah);this.A||this.S(a,"appresize",this.Xv);this.ah()};
F7=function(a){a.o&&a.o.Fa("shuffle",a.ah,a)};
G7=function(a){return!!a.o&&!a.A&&3<=a.b.getCurrentTime()&&2!=a.b.getPresentingPlayerType()};
H7=function(a){var b={duration:null,preview:null,text:null,title:null,url:null},c=S(a.b),d=mJ(a.b),e=a.A&&AJ(a.b);if(a.C)b.title=N("YTP_REPLAY");else if(d){var f=null;a.o&&(f=a.o.Gb(a.A?EK(a.o):FK(a.o)));if(f){if(f.videoId){var k=a.o.listId;b.url=c.getVideoUrl(f.videoId,k?k.toString():void 0)}b.text=f.title;b.duration=f.lengthSeconds?Qq(f.lengthSeconds):null;b.preview=f.Gc(c,"default.jpg")}b.title=N(a.A?"YTP_NEXT":"YTP_PREVIOUS")}else e&&(a.F.N&&a.F.N.length&&(f=PK(a.F.N[0]),b.url=f.Nl(c),b.text=
f.title,b.duration=f instanceof GH?Qq(f.lengthSeconds):null,b.preview=f.Gc(c,"default.jpg")),b.title=N("YTP_NEXT"));b.disabled=!e&&!d;a.update(b);a.H=!!b.url;e||d||a.C?a.B||(a.B=f6(a.J,a.element),a.G=a.O("click",a.zJ,a)):a.B&&(a.B(),a.B=null,a.sa(a.G),a.G=null);z7(a.J)};
J7=function(a,b){JK.call(this,{I:"div",W:"ytp-progress-bar-container",U:{"aria-disabled":!0},P:[{I:"div",W:"ytp-progress-bar",U:{tabindex:0,role:"slider","aria-label":N("YTP_SEEK_SLIDER"),"aria-valuemin":"{{ariamin}}","aria-valuemax":"{{ariamax}}","aria-valuenow":"{{arianow}}","aria-valuetext":"{{arianowtext}}"},P:[{I:"div",W:"ytp-progress-bar-padding"},{I:"div",W:"ytp-progress-list",P:[{I:"div",fa:["ytp-play-progress","ytp-swatch-background-color"]},{I:"div",W:"ytp-load-progress"},{I:"div",W:"ytp-hover-progress"},
{I:"div",W:"ytp-clip-start-exclude"},{I:"div",W:"ytp-clip-end-exclude"},{I:"div",W:"ytp-ad-progress-list"},{I:"div",W:"ytp-marker-crenellation-list"},{I:"div",W:"ytp-marker-progress-list"}]},{I:"div",W:"ytp-scrubber-container",P:[{I:"div",fa:["ytp-scrubber-button","ytp-swatch-background-color"],P:[{I:"div",W:"ytp-scrubber-pull-indicator"}]}]}]},{I:"div",W:"ytp-bound-time-left",P:["{{boundTimeLeft}}"]},{I:"div",W:"ytp-bound-time-right",P:["{{boundTimeRight}}"]},{I:"div",W:"ytp-clip-start",U:{title:N("YTP_WATCH_ALL")},
P:["{{clipstarticon}}"]},{I:"div",W:"ytp-clip-end",U:{title:N("YTP_WATCH_ALL")},P:["{{clipendicon}}"]}]});this.va("clipstarticon",Bh());this.va("clipendicon",Ah());this.o=a;this.Ca=b.g;this.na=!1;this.B=this.Oa=0;this.R=1;this.Sa=this.F=0;this.C=window.NaN;this.Ga=!1;this.G=this.ba=0;this.sb=this.pa["ytp-ad-progress-list"];this.tb=this.pa["ytp-marker-progress-list"];this.Ha=this.pa["ytp-marker-crenellation-list"];this.L={};this.ga={};this.J=window.Infinity;var c=b.g;this.$=this.pa["ytp-clip-end"];
Mb(this,f6(c,this.$));this.ha=new U1(this.$,!0);H(this,this.ha);this.ha.subscribe("hoverstart",this.Pr,this);this.ha.subscribe("hoverend",this.Or,this);this.S(this.$,"click",this.Gj);this.Aa=this.pa["ytp-clip-end-exclude"];this.xb=this.pa["ytp-clip-start-exclude"];this.K=0;this.ca=this.pa["ytp-clip-start"];Mb(this,f6(c,this.ca));this.ia=new U1(this.ca,!0);H(this,this.ia);this.ia.subscribe("hoverstart",this.Pr,this);this.ia.subscribe("hoverend",this.Or,this);this.S(this.ca,"click",this.Gj);this.Na=
this.pa["ytp-load-progress"];this.da=0;this.Db=this.pa["ytp-play-progress"];this.ea=this.pa["ytp-hover-progress"];this.D=0;this.ab=this.pa["ytp-progress-bar"];this.A=null;this.Wa=this.pa["ytp-scrubber-button"];this.yb=this.pa["ytp-scrubber-container"];this.ma=new ff;this.Ja=new a2;this.b=new X1(0,0);this.H=this.qa=!1;this.Xa=null;this.S(a,"presentingplayerstatechange",this.Lz);this.S(a,"videodatachange",this.Yv);this.S(a,"videoplayerreset",this.Kz);this.S(a,"cuerangesadded",this.cu);this.S(a,"cuerangesremoved",
this.VF);this.S(a,"cuerangemarkersupdated",this.cu);this.S(a,"onPlaybackQualityChange",this.Rz);I7(this,a.getVideoData(),!0)};
N7=function(a){if(a.B){var b=a.o.Pf(),c=new X1(b.seekableStart,b.seekableEnd),d=$1(c,b.loaded,0),b=$1(c,b.current,0),e=a.b.g!=c.g||a.b.b!=c.b;a.b=c;K7(a,b,d);e&&L7(a);M7(a)}};
I7=function(a,b,c){var d=!!b&&$H(b);a.qa=d&&b.K;O7(a,wJ(a.o));c&&(d?(c=b.clipEnd,a.K=b.clipStart,a.J=c,P7(a),K7(a,a.D,a.da)):a.Gj(),b=a.Ca,1==b.b&&b.Hc());N7(a)};
Q7=function(a){return!!a&&$H(a)&&!!a.g&&a.g.video.isAccelerated&&a.g.video.g};
R7=function(a,b){a.Ga=b;J(a.Na,"ytp-fast-load",b)};
S7=function(a,b,c,d){b=af(b,0,a.H?60:40);a.F=b;var e=a.R;a.R=b/(a.H?60:40)*(Math.max(Y1(a.b)/a.B,1)-1)+1;b=a.B*a.R;a.G=af(d*b-c,0,b-a.B);e!=a.R&&L7(a)};
L7=function(a){var b=T7(a),c=-b.o/b.b,d=(-b.o+b.width)/b.b,e=Lf(a.Ha),f=0;if(a.F>.2*(a.H?60:40))for(var k=Y1(a.b)/60*d,l=Math.ceil(Y1(a.b)/60*c);l<k;l++){var m=e[f];m||(m=window.document.createElement("div"),a.Ha.appendChild(m));f++;m.className=0==l%60?"ytp-60m-progress":0==l%30?"ytp-30m-progress":0==l%15?"ytp-15m-progress":"ytp-1m-progress";m.style.left=(60*l/Y1(a.b)-c)*b.b+"px"}b=a.qa?a.b.b:0;a.update({boundTimeLeft:Qq(Z1(a.b,c)-b),boundTimeRight:Qq(Z1(a.b,d)-b)});for(c=e.length-1;c>=f;c--)If(e[c]);
a.element.style.height=a.F+(a.H?8:5)+"px";a.X("height-change",a.F);a.Wa.style.height=a.F+(a.H?20:13)+"px";for(var n in a.L)U7(a,a.L[n],a.ga[n]);P7(a);K7(a,a.D,a.da)};
T7=function(a){var b=a.ma.x,c=a.B*a.R,b=af(b,0,a.B);a.Ja.update(b,a.B,-a.G,-(c-a.G-a.B));return a.Ja};
K7=function(a,b,c){a.D=b;a.da=c;var d=T7(a),e=a.b.b,f=Z1(a.b,a.D);a.update({ariamin:Math.floor(a.b.g),ariamax:Math.floor(e),arianow:Math.floor(f),arianowtext:N("YTP_PROGRESS_LABEL_2",{PLAY_PROGRESS:Qq(f),DURATION:Qq(e)})});var e=$1(a.b,a.K,0),k=$1(a.b,a.J,1),f=af(b,e,k);c=a.Ga?1:af(c,e,k);k=b*d.b+d.o;a.Wa.style.display=0<=k&&b<=d.width?"":"none";Gs(a.yb,"transform","translateX("+k+"px)");V7(a,a.Db,d,e,f);V7(a,a.Na,d,e,c)};
V7=function(a,b,c,d,e,f){b.style.left=Math.max(d*c.b+c.o,0)+"px";d=Math.min((e-d)*c.b+c.o,c.width);f||S(a.o).isMobile?(b.style.width=d+"px",Is(b,"transform")):Gs(b,"transform","scalex("+(c.width?d/c.width:0)+")")};
P7=function(a){var b=a.K>a.b.g,c=0<a.b.b&&a.J<a.b.b;J(a.element,"ytp-clip-start-enabled",b);J(a.element,"ytp-clip-end-enabled",c);b=b?$1(a.b,a.K,0):0;c=c?$1(a.b,a.J,1):1;a.ca.style.left=Math.round(1E3*b)/10+"%";a.$.style.left=Math.round(1E3*c)/10+"%";a.xb.style.width=Math.round(1E3*b)/10+"%";a.Aa.style.left=Math.round(1E3*c)/10+"%";a.Aa.style.width=Math.round(1E3*(1-c))/10+"%"};
M7=function(a){var b=T7(a);V7(a,a.ea,b,a.D,b.g);J(a.ea,"ytp-hover-progress-light",b.g>a.D)};
U7=function(a,b,c){var d=T7(a),e=$1(a.b,b.start/1E3,0),f,k=cq(b)/d.width;switch(b.style){case "ytp-chapter-marker":f=e+k/2;e-=k/2;break;default:f=$1(a.b,b.end/1E3,1),k!=Number.POSITIVE_INFINITY&&(e=af(e,0,f-k)),f=Math.min(f,e+k),b.color&&(c.style.background=b.color)}V7(a,c,d,e,f,!0);c.className=b.style};
W7=function(a,b){var c=b.getId();a.L[c]==b&&(If(a.ga[c]),delete a.L[c],delete a.ga[c])};
O7=function(a,b){b?a.A||(a.element.removeAttribute("aria-disabled"),a.A=new U1(a.ab,!0),a.A.subscribe("hovermove",a.nE,a),a.A.subscribe("hoverend",a.mE,a),a.A.subscribe("dragstart",a.lE,a),a.A.subscribe("dragmove",a.pE,a),a.A.subscribe("dragend",a.oE,a),a.Xa=a.O("keydown",a.BJ)):a.A&&(a.element.setAttribute("aria-disabled",!0),a.sa(a.Xa),a.A.cancel(),a.A.dispose(),a.A=null)};
Y7=function(a){R.call(this,{I:"div",W:"ytp-remote",P:[{I:"div",W:"ytp-remote-display-status",P:[{I:"div",W:"ytp-remote-display-status-icon",P:[yh()]},{I:"div",W:"ytp-remote-display-status-text",P:["{{statustext}}"]},{I:"div",W:"ytp-remote-display-status-receiver",P:["{{receiver}}"]}]}]});this.b=new yv(this,250);H(this,this.b);this.o=a;this.S(a,"presentingplayerstatechange",this.A);X7(this,os(a))};
X7=function(a,b){if(3==a.o.getPresentingPlayerType()){var c;c=P(b,128)?N("YTP_MDX_PLAYER_ERROR"):N("YTP_MDX_STATUS_CONNECTED");var d=a.o.Ib("remote","currentReceiver");a.update({statustext:c,receiver:d.name});a.b.show()}else Av(a.b)};
Z7=function(a,b,c){R.call(this,{I:"button",fa:["ytp-remote-button","ytp-button"],U:{title:N("YTP_MDX_TOOLTIP")},P:["{{icon}}"]});this.Y=a;this.B=c;this.o=null;this.S(a,"onMdxReceiversChange",this.b);this.S(a,"presentingplayerstatechange",this.b);this.S(a,"appresize",this.b);this.b();this.O("click",this.A,this);Mb(this,f6(b.g,this.element))};
$7=function(a,b){x6.call(this,N("YTP_ANNOTATIONS"),5);this.B=b;this.Y=a;this.o=!1;this.S(a,"videodatachange",this.A);this.S(a,"onApiChange",this.A);this.subscribe("select",this.C,this);this.A()};
a8=function(a,b,c,d,e,f){var k=r6({"aria-haspopup":!0});q6.call(this,k,b,a);this.b=d;this.F=null;this.o={};this.C=new t6(c,void 0,a,e,f);H(this,this.C);this.O("keydown",this.CJ);this.O("click",this.open)};
b8=function(a,b){for(var c=a.C,d=0;d<c.b.length;d++)c.b[d].Fa("size-change",c.R,c);c.b=[];Gf(c.o.element);c.o.X("size-change");for(var c={},d=!1,e=0;e<b.length;e++){var f=b[e],k=a.o[f],l=f==a.F;l&&(d=!0);k&&k.priority==-e?(p6(a.o[f],a.kd(f,!0)),delete a.o[f]):(k=new q6({I:"div",fa:["ytp-menuitem"],U:{tabindex:0,role:"menuitemradio","aria-checked":l?!0:null},P:[{I:"div",fa:["ytp-menuitem-label"],P:["{{label}}"]}]},-e,a.kd(f,!0)),k.O("click",x(a.TD,a,f)));c[f]=k;u6(a.C,k,!0)}d||(a.F=null);for(f in a.o)a.o[f].dispose();
a.o=c};
c8=function(a,b){a8.call(this,N("YTP_AUDIO_TRACK_TITLE"),2,a,b);this.Y=a;this.G=new R({I:"div",P:[{I:"span",P:[N("YTP_AUDIO_TRACK_TITLE")]},{I:"span",W:"ytp-menuitem-label-count",P:["{{content}}"]}]});p6(this,this.G);this.H={};this.A=!1;this.S(a,"videodatachange",this.D);this.S(a,"onPlaybackAudioChange",this.D);this.D()};
d8=function(a,b){x6.call(this,N("YTP_AUTOPLAY"),6);this.D=b;this.Y=a;this.B=!1;this.o=[];this.S(a,"presentingplayerstatechange",this.A);this.subscribe("select",this.F,this);this.A()};
e8=function(a,b){a8.call(this,N("YTP_QUALITY_TITLE"),1,a,b);I(this.C.element,"ytp-quality-menu");this.Y=a;this.H={};this.D="unknown";this.A=!1;this.S(a,"videodatachange",this.B);this.S(a,"videoplayerreset",this.B);this.S(a,"onPlaybackQualityChange",this.G);this.B()};
f8=function(a,b,c){var d=(a=a.H[b])?a.qualityLabel:(d=iz[b])?d+"p":N("YTP_AUTO");c={I:"span",fa:c,P:[d]};var e;a&&a.isAccelerated&&a.g?c.P.push({I:"div",W:"ytp-menuitem-badge-container",P:[{I:"svg",U:{fill:"#00838f",height:"11px",viewBox:"0 0 48 48",width:"11px"},P:[{I:"path",U:{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"}},{I:"path",U:{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"}}]}]}):"highres"==b?e="8K":"hd2880"==b?e="5K":"hd2160"==b?e="4K":0==b.indexOf("hd")&&(e="HD");e&&(c.P.push(" "),c.P.push({I:"sup",W:"ytp-swatch-color",P:[e]}));return c};
g8=function(a,b){a8.call(this,N("YTP_MDX_TITLE"),0,a,b);this.Y=a;this.A=!1;this.G={};this.S(a,"onMdxReceiversChange",this.D);this.S(a,"presentingplayerstatechange",this.D);this.D()};
h8=function(a,b){a8.call(this,N("YTP_SPEED_TITLE"),4,a,b);this.Y=a;this.A=!1;this.B=null;this.S(a,"presentingplayerstatechange",this.$v);this.$v()};
j8=function(a,b,c,d){var e=N("YTP_VIDEO_SUBTITLES_OVERRIDE");a8.call(this,i8(d),a,b,c,e,x(this.EF,this));I(this.element,"ytp-subtitles-options-menu-item");this.G=d.option.toString();this.H=Ib(d.options,this.bw,this);this.A=new t6(b,void 0,e);H(this,this.A);a=new q6({I:"div",W:"ytp-menuitemtitle",P:[N("YTP_VIDEO_SUBTITLES_OVERRIDE_DESC")]},0);H(this,a);u6(this.A,a,!0);this.D=new q6({I:"div",W:"ytp-menuitem",U:{role:"menuitemradio",tabindex:0},P:[{I:"div",W:"ytp-menuitem-label",P:[N("YTP_ON")]}]},-1);
H(this,this.D);u6(this.A,this.D,!0);this.S(this.D.element,"click",qa(this.tt,!0));this.B=new q6({I:"div",W:"ytp-menuitem",U:{role:"menuitemradio",tabindex:0},P:[{I:"div",W:"ytp-menuitem-label",P:[N("YTP_OFF")]}]},-2);H(this,this.B);u6(this.A,this.B,!0);this.S(this.B.element,"click",qa(this.tt,!1));b8(this,M(d.options,this.bw))};
i8=function(a){return(a.message?N(a.message):a.text)||""};
k8=function(a,b){t6.call(this,a,void 0,N("YTP_OPTIONS"));this.A={};for(var c=0;c<L6.length;c++){var d=L6[c],e=new j8(-c,a,b,d);H(this,e);e.subscribe("settingChange",this.B,this);this.A[d.option.toString()]=e;u6(this,e,!0)}c=new q6(r6(),-L6.length,N("YTP_RESET"));H(this,c);c.O("click",x(this.B,this,"reset",!0));u6(this,c,!0)};
l8=function(a,b){for(var c in b){var d=a.A[c];if(d){var e=b[c].toString(),f=!!b[c+"Override"];d.o[e]&&(d.ze(e),d.D.element.setAttribute("aria-checked",!f),d.B.element.setAttribute("aria-checked",f))}}};
m8=function(a,b){a8.call(this,N("YTP_AUTO_TRANSLATE"),0,a,b);this.A={}};
n8=function(a,b){a8.call(this,N("YTP_SUBTITLES"),3,a,b,N("YTP_OPTIONS"),x(this.pG,this));this.Y=a;this.H=!1;this.A={};this.G=new R({I:"div",P:[{I:"span",P:[N("YTP_SUBTITLES")]},{I:"span",W:"ytp-menuitem-label-count",P:["{{content}}"]}]});H(this,this.G);p6(this,this.G);this.D=new m8(a,b);H(this,this.D);this.D.subscribe("select",this.aF,this);this.B=new k8(a,b);H(this,this.B);this.B.subscribe("settingChange",this.HJ,this);this.S(a,"videodatachange",this.hi);this.S(a,"onApiChange",this.hi);this.S(a,
"onCaptionsTrackListChanged",this.hi);this.S(a,"captionschanged",this.hi);this.hi()};
o8=function(a,b){a8.call(this,N("YTP_THREED_SHORT"),7,a,b);this.Y=a;this.A=!1;this.S(a,"videodatachange",this.D);this.B=null;this.D()};
p8=function(a,b){this.o=a;this.B=new t6(a);H(this,this.B);j6.call(this,a,b,"ytp-settings-menu");this.J=this.G=null;this.ea=!1;n6(this,this.B)};
r8=function(a){if(!a.ea){a.ea=!0;var b=new e8(a.o,a);H(a,b);b=new n8(a.o,a);H(a,b);b=new $7(a.o,a);H(a,b);S(a.o).ga&&(b=new h8(a.o,a),H(a,b));b=new o8(a.o,a);H(a,b);S(a.o).xb&&(b=new d8(a.o,a),H(a,b));b=new c8(a.o,a);H(a,b);S(a.o).B&&(a.J=new g8(a.o,a),H(a,a.J));q8(a.G,a.B.b.length)}};
s8=function(a,b){u6(a.B,b);q8(a.G,a.B.b.length)};
t8=function(a,b){a.g&&1>=a.B.b.length&&a.oa();var c=a.B;pb(c.b,b);b.Fa("size-change",c.R,c);c.o.element.removeChild(b.element);c.o.X("size-change");q8(a.G,a.B.b.length)};
u8=function(a,b,c){R.call(this,{I:"button",fa:["ytp-button","ytp-settings-button"],U:{"aria-haspopup":!0,"aria-owns":"ytp-main-menu-id",title:N("YTP_SETTINGS")},P:[Kh()]});this.o=c;this.Y=a;this.B=!0;this.O("click",this.C);this.S(a,"onPlaybackQualityChange",this.b);this.S(a,"videodatachange",this.b);this.S(a,"webglsettingschanged",this.b);this.S(a,"appresize",this.A);Mb(this,f6(b.g,this.element));this.b();this.A(Ky(a).Ia())};
q8=function(a,b){a.B=!!b;a.A(Ky(a.Y).Ia())};
v8=function(a,b){R.call(this,{I:"button",fa:["ytp-size-button","ytp-button"],U:{title:"{{title}}"},P:["{{icon}}"]});this.b=a;this.B=b.g;this.A=null;this.C=new q7;H(this,this.C);this.S(a,"sizestylechange",this.o);this.S(a,"fullscreentoggled",this.o);this.S(a,"presentingplayerstatechange",this.o);this.o();this.O("click",this.D);Mb(this,f6(this.B,this.element))};
w8=function(a,b){R.call(this,{I:"button",fa:["ytp-subtitles-button","ytp-button"],U:{"aria-pressed":"{{pressed}}",title:N("YTP_SUBTITLES_TOOLTIP")},P:[Nh()]});this.o=a;this.S(a,"videodatachange",this.b);this.S(a,"appresize",this.b);this.S(a,"onApiChange",this.b);this.S(a,"onCaptionsTrackListChanged",this.b);this.S(a,"captionschanged",this.b);this.b();this.O("click",this.A);Mb(this,f6(b.g,this.element))};
x8=function(a,b){R.call(this,{I:"div",fa:["ytp-time-display","notranslate"],P:[{I:"span",W:"ytp-time-current",P:["{{currenttime}}"]},{I:"span",W:"ytp-time-separator",P:[" / "]},{I:"span",W:"ytp-time-duration",P:["{{duration}}"]}]});this.B=new R({I:"button",fa:["ytp-live-badge","ytp-button"],U:{disabled:!0},P:[N("YTP_LIVE")]});H(this,this.B);this.B.Ba(this.element);this.b=a;this.G=b.g;this.o=null;this.C=this.A=!1;this.F=this.D=null;this.O("click",this.IJ);this.S(a,"presentingplayerstatechange",this.bh);
this.S(a,"appresize",this.bh);this.S(a,"liveviewshift",this.JJ);this.S(a,"videodatachange",this.KJ);var c=a.getVideoData();c&&(this.A=c.xa,J(this.element,"ytp-live",this.A));this.bh()};
z8=function(a,b,c){R.call(this,{I:"div",W:"ytp-volume-panel",U:{role:"slider","aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":"{{valuenow}}","aria-valuetext":"{{valuetext}}",tabindex:0},P:[{I:"div",W:"ytp-volume-slider",P:[{I:"div",W:"ytp-volume-slider-handle"}]}]});this.b=a;this.D=b;this.K=c;this.H=!1;this.G=uJ(b);this.N=this.B=0;this.L=this.pa["ytp-volume-slider"];this.R=this.pa["ytp-volume-slider-handle"];this.F=new U1(this.L,!0);H(this,this.F);this.F.subscribe("dragstart",this.PE,this);
this.F.subscribe("dragmove",this.OE,this);this.F.subscribe("dragend",this.NE,this);this.J=null;this.o=this.A=this.C=!1;this.S(a,"onVolumeChange",this.OJ);this.S(a,"appresize",this.dw);this.S(a,"fullscreentoggled",this.MJ);this.S(a,"onShowControls",this.Dp);this.S(a,"onHideControls",this.Dp);this.S(this.element,"keydown",this.QE);this.S(this.element,"focus",qa(this.cw,!0));this.S(this.element,"blur",qa(this.cw,!1));this.dw(Ky(a).Ia());y8(this,a.Mb(),a.bd())};
y8=function(a,b,c){var d=Math.floor(b),e=d+"% "+N("YTP_SCREENREADER_VOLUME_SETTING")+(c?" "+N("YTP_SCREENREADER_VOLUME_MUTED"):"");c=c?0:b/100;a.va("valuenow",d);a.va("valuetext",e);a.R.style.left=(a.G?60:40)*c+"px";a.B=b};
A8=function(a,b,c,d,e){var f=a.A||a.C||a.o||a.H;a.A=b;a.C=c;a.o=d;a.H=e;b=a.A||a.C||a.o||a.H;f!=b&&(b?a.J=a.S(a.element,"wheel",a.NJ):(a.sa(a.J),a.J=null),J(a.K,"ytp-volume-slider-active",b))};
B8=function(a,b){var c=S(a),d=YA(c);0==d.indexOf("www.")&&(d=d.substring(4));var e=["ytp-youtube-button","ytp-button","yt-uix-sessionlink"];(c="gaming"==c.g)&&e.push("ytp-youtube-gaming-button");R.call(this,{I:"a",fa:e,U:{href:"{{url}}",target:"_blank",title:N("YTP_URL_NAVIGATE_TO",{WEBSITE:d}),"data-sessionlink":"feature=player-button"},P:[c?xh?{I:"div",fa:["ytp-icon","ytp-icon-logo-gaming"]}:{I:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 98 36",width:"100%"},P:[{I:"path",Ea:!0,W:"ytp-svg-fill",
U:{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"}},
{I:"path",fa:["ytp-svg-fill","ytp-svg-fill-logo-tube-text"],U:{d:"M23,12 L43,12 L43,24 L23,24 Z",fill:"none"}},{I:"path",Ea:!0,fa:["ytp-svg-fill","ytp-svg-fill-logo-tube-lozenge"],U:{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"}},{I:"g",Ea:!0,W:"ytp-svg-fill",P:[{I:"path",U:{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"}},
{I:"path",U:{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"}},
{I:"path",U:{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"}},
{I:"path",U:{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"}},
{I:"path",U:{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"}},
{I:"path",U:{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"}}]}]}:
xh?{I:"div",fa:["ytp-icon","ytp-icon-logo"]}:{I:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 51 36",width:"100%"},P:[{I:"path",Ea:!0,W:"ytp-svg-fill",U:{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"}},
{I:"path",fa:["ytp-svg-fill","ytp-svg-fill-logo-tube-text"],U:{d:"M23,12 L43,12 L43,24 L23,24 Z",fill:"none"}},{I:"path",Ea:!0,fa:["ytp-svg-fill","ytp-svg-fill-logo-tube-lozenge"],U:{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.b=a;this.O("click",this.A);this.S(a,"videodatachange",this.o);this.o();Mb(this,f6(b.g,this.element))};
C8=function(a,b,c){Fx.call(this);var d=S(a);this.Y=a;this.b=b;this.N=window.NaN;this.L=null;this.H=c;this.H.subscribe("autohideupdate",this.aw,this);c=!Dq(os(a));var e=new R({I:"div",W:"ytp-gradient-bottom"});H(this,e);kw(a,e.element,8);this.F=new yv(e,250,c,100);H(this,this.F);this.g=new R({I:"div",W:"ytp-chrome-bottom",P:[{I:"div",W:"ytp-chrome-controls"}]});H(this,this.g);kw(a,this.g.element,8);this.D=new yv(this.g,250,c,100);H(this,this.D);c=this.g.element.children[0];this.o=new p8(a,b);H(this,
this.o);kw(a,this.o.element,6);this.o.subscribe("show",this.CG,this);this.o.subscribe("show",x(b.mG,b,this.o));this.A=new J7(a,b);H(this,this.A);this.A.Ba(this.g.element,0);e=new f7(a,b);H(this,e);kw(a,e.element,4);this.A.subscribe("height-change",e.jG,e);e=new i7(a);H(this,e);kw(a,e.element,4);e=new Iq({I:"div",W:"ytp-left-controls"});H(this,e);e.Ba(c);var f=new E7(a,b,!1);H(this,f);f.Ba(e.element);f=new C7(a,b);H(this,f);f.Ba(e.element);f=new E7(a,b,!0);H(this,f);f.Ba(e.element);var k=new R({I:"span"});
H(this,k);k.Ba(e.element);if(!d.useMediaVolume&&(f=new x7(a,b),H(this,f),f.Ba(k.element),d.$)){f=new z8(a,b,this.g.element);H(this,f);f.Ba(k.element);k=new U1(k.element);H(this,k);var l=x(f.It,f,!0);k.subscribe("hoverstart",l);k=new U1(e.element);H(this,k);f=x(f.It,f,!1);k.subscribe("hoverend",f)}this.G=new x8(a,b);H(this,this.G);this.G.Ba(e.element);e=new Iq({I:"div",W:"ytp-right-controls"});H(this,e);e.Ba(c);c=new w8(a,b);H(this,c);c.Ba(e.element);c=new u8(a,b,this.o);H(this,c);this.o.G=c;c.Ba(e.element);
c=new o7(a,b);H(this,c);kw(a,c.element,5);c.subscribe("show",x(b.tl,b,c));c=new n7(a,b,c);H(this,c);c.Ba(e.element);d.Cd&&(c=new B8(a,b),H(this,c),c.Ba(e.element));c=new v8(a,b);H(this,c);c.Ba(e.element);d.B&&(c=new Y7(a),H(this,c),kw(a,c.element,4),c=new Z7(a,b,this.o),H(this,c),c.Ba(e.element));d.Dc&&(d=new e7(a,b),H(this,d),d.Ba(e.element));d=qz();d.webkitSetPresentationMode&&ia(d.webkitSupportsPresentationMode)&&d.webkitSupportsPresentationMode("picture-in-picture")&&(d=new A7(a,b),H(this,d),
d.Ba(e.element));this.J=new m7(a,b);H(this,this.J);this.J.Ba(e.element);this.B=new mt(this.kD,null,this);H(this,this.B);this.C=null;this.S(a,"appresize",this.jo);this.S(a,"fullscreentoggled",this.jo);this.S(a,"presentingplayerstatechange",this.qn);this.jo()};
D8=function(a,b){Dq(os(a.Y))||b?b&&(Av(a.D),Av(a.F),a.b.g.$f(a.la())):b||(a.D.show(),a.F.show(),a.aw())};
E8=function(a){var b=Ky(a.Y).Ia().width;return Math.max(b-24*(uJ(a.b)?2:1),100)};
F8=function(a){R.call(this,{I:"div",W:"ytp-title",P:[{I:"a",W:"ytp-title-channel-logo",U:{href:"{{channelImageLink}}",target:"_blank"}},{I:"div",W:"ytp-title-text",P:[{I:"a",fa:["ytp-title-link","yt-uix-sessionlink"],U:{target:"_blank",href:"{{url}}","data-sessionlink":"feature=player-title"},P:[{I:"span",W:"ytp-title-playlist-icon",P:[Hh()]},{I:"span",P:["{{title}}"]}]},{I:"a",W:"ytp-title-channel-name",U:{href:"{{channelNameLink}}",target:"_blank"},P:["{{channelName}}"]}]}]});this.b=a;this.o=null;
this.G=this.pa["ytp-title-link"];this.F=this.pa["ytp-title-channel-logo"];this.J=this.pa["ytp-title-playlist-icon"];this.C=this.B=null;this.S(a,"videodatachange",this.A);this.S(a,"videoplayerreset",this.A);this.S(a,"appresize",this.D);this.D(Ky(a).Ia());this.A()};
H8=function(a){var b=a.b.getVideoData(),c=b.videoId&&2==a.b.getPresentingPlayerType();c&&b.videoId==a.B?I(a.element,"ytp-title-extra-info"):(me(a.element,"ytp-title-extra-info"),c&&(b.author&&b.Cc&&b.profilePicture?G8(a,b.videoId,b.author,b.Cc,b.profilePicture):b.videoId!=a.C&&(c=WA(S(a.b),b.videoId,!1),bk(c,{method:"GET",rb:x(a.H,a,b.videoId),withCredentials:!0}),a.C=b.videoId)))};
G8=function(a,b,c,d,e){d=S(a.b).ba+"://"+XA(S(a.b))+d;a.F.style.backgroundImage="url("+e+")";a.va("channelImageLink",d);a.va("channelNameLink",d);a.va("channelName",N("YTP_UPLOADED_BY_2",{AUTHOR:c}));a.B=b;H8(a)};
I8=function(a,b){var c=Ky(a).Ia();R.call(this,{I:"div",P:[{I:"div",W:"ytp-tooltip-bg",P:[{I:"div",W:"ytp-tooltip-duration",P:["{{duration}}"]}]},{I:"div",W:"ytp-tooltip-text-wrapper",P:[{I:"div",W:"ytp-tooltip-image"},{I:"div",W:"ytp-tooltip-title",P:["{{title}}"]},{I:"span",W:"ytp-tooltip-text",P:["{{text}}"]}]}]});this.L=a;this.ea=b;this.ba=S(a).isMobile;this.G=this.pa["ytp-tooltip-bg"];this.da=this.pa["ytp-tooltip-image"];this.$=x(this.FD,this);this.K=x(this.HD,this);this.o=null;this.D=new yv(this,
100);H(this,this.D);this.b=null;this.J=!1;this.A=null;this.C=window.NaN;this.F="";this.ca=c.width;this.H=!0;this.B=1;this.N=new ge(this.zB,250,this);H(this,this.N);this.R=new ge(this.Hc,5E3,this);H(this,this.R)};
K8=function(a,b){if(null!=a.b)if(b)switch(a.b){case 3:J8(a);a.D.show();break;case 2:J8(a);a.D.show(400);break;default:a.D.show()}else Av(a.D);a.H=b};
f6=function(a,b){if(a.ba)return r;b.addEventListener("mouseover",a.K);return x(function(){this.o==b&&this.Hc();b.removeEventListener("mouseover",this.K)},a)};
M8=function(a,b,c){if(a.b)if(3==a.b)a.Hc();else return;L8(a,b,3,c)};
L8=function(a,b,c,d){(0,window.isNaN)(a.C)||(a.C=window.NaN,a.G.style.background="");a.o=b;a.J=!!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.da.style.backgroundImage="url("+b+")";J(a.element,"ytp-tooltip-image-enabled",!!b);a.b=c;a.L.addEventListener("appresize",a.Hc,a);a.H&&(J8(a),a.D.show(3==a.b?0:400))};
J8=function(a){var b=a.o.getAttribute("data-tooltip-text");if(b&&!a.J){a.va("text",b);var c=a.o.getAttribute("data-duration");a.update({title:a.F,duration:c});var d=a.o.getAttribute("data-preview"),e=160*a.B,f=90*a.B,k=120*a.B,l=90*a.B;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";ke(a.element,["ytp-text-detail","ytp-preview"]);J(a.element,"ytp-has-duration",
!!c)}else a.va("text",a.F),ne(a.element,["ytp-text-detail","ytp-preview","ytp-has-duration"]);N8(a,!!b)};
N8=function(a,b,c){a.element.style.maxWidth=b?"":Math.min(a.ca,200*a.B)+"px";O8(a.ea,a.element,a.o,c,1==a.b);a.element.style.top?I(a.element,"ytp-bottom"):a.element.style.bottom&&I(a.element,"ytp-top");3==a.b&&a.R.start()};
z7=function(a){a.o&&!a.J&&a.o.hasAttribute("title")&&(a.F=a.o.getAttribute("title"),a.o.removeAttribute("title"),a.H&&J8(a))};
P8=function(a,b){J(a.element,"ytp-preview",0<=b);if(!(0>b||b==a.C)){a.C=b;var c=160*a.B,d=160*a.B,e=sH(a.A,a.C,c);b2(a.G,e,c,d,!0);a.N.start()}};
R8=function(a,b,c){R.call(this,{I:"button",fa:["ytp-watch-later-button","ytp-button"],U:{title:"{{title}}","data-tooltip-image":"{{image}}"},P:["{{icon}}"]});this.b=a;this.C=b.g;this.D=c;I(c,"ytp-watch-later-button-visible");this.B=null;this.A=this.o=!1;this.O("click",this.PJ,this);this.S(a,"videoplayerreset",this.QJ);this.S(a,"appresize",this.ew);this.ew(Ky(a).Ia());Q8(this,2);Mb(this,f6(b.g,this.element))};
Q8=function(a,b,c){if(b!=a.B){var d;switch(b){case 3:d=Lh();break;case 1:d=xh?{I:"div",fa:["ytp-icon","ytp-icon-watch-later-added"]}:{I:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},P:[{I:"path",Ea:!0,W:"ytp-svg-fill",U:{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=xh?{I:"div",fa:["ytp-icon","ytp-icon-watch-later"]}:{I:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},P:[{I:"path",Ea:!0,W:"ytp-svg-fill",
U:{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=xh?{I:"div",fa:["ytp-icon","ytp-icon-alert"]}:{I:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},P:[{I:"path",Ea:!0,W:"ytp-svg-fill",U:{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.va("icon",
d);a.B=b}c?a.update({title:c,image:null}):(b=S(a.b),b.userDisplayName?(c={USER_NAME:b.userDisplayName},a.update({title:a.o?N("YTP_ADDED_TO_WATCH_LATER_AS",c):N("YTP_WATCH_LATER_AS_2",c),image:b.userDisplayImage})):a.update({title:N("YTP_WATCH_LATER"),image:null}));z7(a.C)};
S8=function(a){R.call(this,{I:"a",fa:["ytp-watermark","yt-uix-sessionlink"],U:{target:"_blank",href:"{{url}}","aria-label":N("YTP_URL_NAVIGATE_TO",{WEBSITE:YA(S(a))}),"data-sessionlink":"feature=player-watermark"},P:[xh?{I:"div",fa:["ytp-icon","ytp-icon-watermark"]}:{I:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 77 34",width:"100%"},P:[{I:"path",Ea:!0,W:"ytp-svg-fill",U:{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"}},
{I:"path",fa:["ytp-svg-fill","ytp-svg-fill-logo-tube-text"],U:{d:"m 34,5.07 40,0 0,24 -40,0 z",fill:"none"}},{I:"path",Ea:!0,fa:["ytp-svg-fill","ytp-svg-fill-logo-tube-lozenge"],U:{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.o=a;this.b=null;this.S(a,"videodatachange",this.A);this.S(a,"presentingplayerstatechange",this.C);a=os(a);this.fb(!P(a,2));this.A()};
U8=function(a){Fx.call(this);ez();var b=S(a),c=Ky(a);this.b=a;Mla(this);var d=os(a);this.qa=!1;this.ma=!0;this.ca=!1;this.L=null;this.F=[];var e=new G6(a);H(this,e);kw(a,e.element,4);var f=new d7(a);H(this,f);kw(a,f.element,4);this.D=new $5(a);H(this,this.D);kw(a,this.D.element,4);var k=new R({I:"div",W:"ytp-gradient-top"});H(this,k);kw(a,k.element,1);this.ia=new yv(k,250,!0,100);H(this,this.ia);this.A=new R({I:"div",W:"ytp-chrome-top"});H(this,this.A);kw(a,this.A.element,1);this.ha=new yv(this.A,
250,!0,100);H(this,this.ha);this.aa=[];this.N=new O6(a);H(this,this.N);this.N.Ba(e.element);k=a.getVideoData();this.B=new x5(c,x(this.eJ,this),k,b.useTabletControls);H(this,this.B);this.B.subscribe("autohideupdate",this.fJ,this);this.g=new I8(a,this);H(this,this.g);kw(a,this.g.element,4);this.G=new e6(a,this);H(this,this.G);kw(a,this.G.element,2);var l=new Bv(a,this.G);H(this,l);kw(a,l.element,5);l=new Q6(a,this);H(this,l);kw(a,l.element,5);l.subscribe("show",x(this.tl,this,l));this.aa.push(l);l=
new S6(a,this,l);H(this,l);l.Ba(this.A.element);l=new F8(a);H(this,l);l.Ba(this.A.element);l=new Iq({I:"div",W:"ytp-chrome-top-buttons"});H(this,l);l.Ba(this.A.element);if(b.nf){var m=new R8(a,this,this.A.element);H(this,m);m.Ba(l.element)}m=new U6(a,this);H(this,m);kw(a,m.element,5);m.subscribe("show",x(this.tl,this,m));this.aa.push(m);m=new W6(a,this,m,this.A.element);H(this,m);m.Ba(l.element);l=null;dB(b)&&(l=new X6(a),H(this,l),kw(a,l.element,3));(this.o="1"==b.A?new C8(a,this,this.B):null)&&
H(this,this.o);"3"==b.A&&(m=new T6(a,this),H(this,m),kw(a,m.element,8));b.Ca&&"3"!=b.A?(m=new Y5(c,x(this.As,this),x(this.AE,this),x(this.zs,this)),H(this,m)):this.S(c,"click",x(function(a){this.zs(a)||this.As(a)},this));
this.S(c,"touchstart",this.BE);this.H=new E6(a,this);H(this,this.H);this.H.subscribe("show",this.Zt,this);this.$=!1;b.Ed&&(m=new S8(a),H(this,m),kw(a,m.element,7));m=new Z5(a);H(this,m);kw(a,m.element,4);this.ga=k.videoId;this.C=null;this.J=!1;this.ba=[];this.da=new R({I:"div",U:{tabindex:0}});this.da.O("focus",this.hz,this);this.ea=new R({I:"div",U:{tabindex:0}});this.ea.O("focus",this.iz,this);k=a.Da();k.setAttribute("aria-label",N("YTP_PLAYER_NORMAL"));switch(b.color){case "white":I(k,"ytp-color-white");
break;case "blue":I(k,"ytp-color-blue")}(this.R=b.useTabletControls?null:new I6(a,c,this.H,this.B,l,this.D,x(this.Qp,this)))&&H(this,this.R);this.S(a,"appresize",this.co);this.S(a,"fullscreentoggled",this.gJ);this.S(a,"presentingplayerstatechange",this.hJ);this.S(a,"videodatachange",this.Uv);this.S(a,"videoplayerreset",this.fE);this.S(a,"autonavvisibility",this.Mh,this);this.S(a,"cardstatechange",this.Pg,this);this.S(a,"minimized",this.Pg,this);this.S(a,"onFrescaStateChange",this.Pg,this);T8(this,
d);this.Mh();this.co();this.ua=[c.o,f.element,e.element,this.D.element,this.N.element]};
tJ=function(a){var b=Lr(a.b)&&sJ(a.b);vJ(a.b);return a.ca||b||!!a.L||vJ(a.b)||a.b.app.V.Oa};
O8=function(a,b,c,d,e){b.style.left="";b.style.top="";b.style.bottom="";var f=Zs(b);e=e||a.o&&Qf(a.o.la(),c);if(null==d||!e)var k=Zs(c),l=Vs(c,a.b.Da());d=(null==d?l.x+k.width/2:d)-f.width/2;if(e)k=12*(uJ(a.o.b)?2:1),l=E8(a.o),c=Ky(a.b).Ia().height,d=af(d,k,k+l-f.width),f=c-(uJ(a.o.b)?72:50)-f.height;else if(Qf(a.A.element,c)){if(k=Ky(a.b).Ia().width,d=af(d,12,k-f.width-12),f=uJ(a)?69:48,"gvn"==S(a.b).g||"gvn-experiment"==S(a.b).g)f+=20}else a=Ky(a.b).Ia(),d=af(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"};
V8=function(a,b){if(!b)return!1;var c=Ky(a.b).b;if(c&&Qf(c,b))return c.controls;for(c=0;c<a.ua.length;c++)if(Qf(a.ua[c],b))return!1;return je(b,"ytp-player-content")||je(b,"html5-endscreen")||b==a.b.Da()?!1:!0};
uJ=function(a){return a.b.Qa()};
T8=function(a,b){var c=b.Za()&&!P(b,32);a.B.zb(128,!c);c=3==a.b.getPresentingPlayerType();a.B.zb(256,c);var c=a.b.Da(),d;P(b,2)?d=["ended-mode"]:(d=[],P(b,8)?d.push("playing-mode"):P(b,4)&&d.push("paused-mode"),P(b,1)&&!P(b,32)&&d.push("buffering-mode"),P(b,32)&&d.push("seeking-mode"),P(b,64)&&d.push("unstarted-mode"));Gb(a.ba,d)||(ne(c,a.ba),a.ba=d,ke(c,d));a.o&&D8(a.o,tJ(a));d=S(a.b);var e=Dq(b),f=P(b,2);J(c,"ytp-hide-controls",("3"==d.A?!f:"1"!=d.A)||e);J(c,"ytp-native-controls","3"==d.A&&!e&&
!f);if(P(b,128)){a.C||(a.C=new E5(a.b),H(a,a.C),a.C.Ba(c),kw(a.b,a.C.element,4));c=a.C;d=b.b;for(e=0;e<c.A.length;e++)c.sa(c.A[e]);c.A=[];e=d.messageKey;f=S(c.o);if("YTP_ERROR_GENERIC_WITHOUT_LINK"!=e||f.Ub)if("YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK_FLASH"==e||"YTP_HTML5_PROTECTED_FLASH_FALLBACK"==e)c.Nb(G5(c,e,"https://get.adobe.com/flashplayer/",!1,!0));else if("YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK"!=e||f.Ub){d=d.message.split(Nla);e=["span",null];for(f=0;f<d.length;f+=3){var k=d[f++].split("\n");
e.push(k[0]);for(var l=1;l<k.length;l++)e.push(["br"]),e.push(k[l]);f<d.length&&e.push(["a",{href:d[f],target:d[f+1]},d[f+2]])}c.Nb(e)}else c.Nb(G5(c,"YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK","//"+XA(f)+"/html5"));else if(c.Nb(G5(c,"YTP_ERROR_GENERIC_WITH_LINK_AND_CPN","//support.google.com/youtube/?p=player_error1",!0)),f.ca&&!f.D)for(d=x(c.B,c),e=c.element.getElementsByTagName("a"),f=0;f<e.length;f++)k=c.S(e[f],"click",d),c.A.push(k);a.C.show()}else a.C&&(a.C.dispose(),a.C=null)};
W8=function(a,b,c){b=c?b.lastElementChild:b.firstElementChild;for(var d=null;b;){if("none"!=Js(b,"display")&&"true"!=b.getAttribute("aria-hidden")){var e;0<=b.tabIndex?e=b:e=W8(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};
Mla=function(a){a=S(a.b);var b=a.N;if(sz("ytp-normal-css-loaded")){var c=sz("ytp-sprite-mode-css-loaded");b!=c&&Xi(Error("Player sprite mode mismatch. playerInSpriteMode: "+b+", spriteModeCssServed: "+c+", isMobile: "+a.isMobile),"WARNING")}};
Ola=function(a){this.b=a;this.g={}};
Dra=function(a){var b;a:{var c=a.args.legacy_config;if(c){var d=c?bg(c):null;if(d){var e,f=new W4(d),k=V(f,1),l=V(f,2),m=V(f,3),n=V(f,4),t=V(f,5),u=V(f,6),y=V(f,7),E=V(f,8),D=V(f,9),W=V(f,10),O=V(f,11),Q=V(f,12),bb=V(f,13),jb=V(f,14),lb=V(f,15),xb=V(f,16),fg=V(f,17),Fr=V(f,18),Gr=V(f,19),Nn=V(f,20),Fk=V(f,21),Gk=V(f,22),yx=V(f,23),Ve=V(f,24),tc=V(f,25),sF=V(f,26),ig=V(f,27),Oba=V(f,28),Pba=V(f,29),Pla=V(f,30),Qla=V(f,31),Rla=V(f,32),Sla=V(f,33),Tla=V(f,34),Ula=V(f,35),Vla=V(f,36),Wla=V(f,37),Xla=
V(f,38),Yla=V(f,39),Zla=V(f,40),$la=V(f,41),ama=V(f,42),bma=V(f,43),cma=V(f,44),dma=V(f,45),ema=V(f,46),fma=V(f,47),gma=V(f,48),hma=V(f,49),jma=V(f,50),kma=V(f,51),lma=V(f,52),mma=V(f,53),nma=V(f,54),oma=V(f,55),pma=V(f,56),qma=V(f,57),rma=V(f,58),sma=V(f,59),tma=V(f,60),uma=V(f,61),vma=V(f,62),wma=V(f,63),xma=V(f,64),yma=V(f,65),zma=V(f,66),Ama=V(f,67),Bma=V(f,68),Cma=V(f,69),Dma=V(f,70),Ema=V(f,71),Fma=V(f,72),Gma=V(f,73),Hma=V(f,74),Ima=V(f,75),Jma=V(f,76),Kma=V(f,77),Lma=V(f,78),Mma=V(f,79),Nma=
V(f,80),Oma=V(f,81),Pma=V(f,82),Qma=V(f,83),Rma=V(f,84),Sma=V(f,85),Tma=V(f,86),Uma=V(f,87),Vma=V(f,88),Wma=V(f,89),Xma=V(f,90),Yma=V(f,91),Zma=V(f,92),$ma=V(f,93),ana=V(f,94),bna=V(f,95),cna=V(f,96),dna=V(f,97),ena=V(f,98),fna=V(f,99),gna=V(f,100),hna=V(f,101),ina=V(f,102),jna=V(f,103),kna=V(f,104),lna=V(f,105),mna=V(f,106),nna=V(f,107),ona=V(f,108),pna=V(f,109),qna=V(f,110),rna=V(f,111),sna=V(f,112),tna=V(f,113),una=V(f,114),vna=V(f,115),wna=V(f,116),xna=V(f,117),yna=V(f,118),zna=V(f,119),Ana=V(f,
120),Bna=V(f,121),Cna=V(f,122),Dna=V(f,123),Ena=V(f,124),Fna=V(f,125),Gna=V(f,126),Hna=V(f,127),Ina=V(f,128),Jna=V(f,129),Kna=V(f,130),Lna=V(f,131),Mna=V(f,132),Nna=V(f,133),Ona=V(f,134),Pna=V(f,135),Qna=V(f,136),Rna=V(f,137),Sna=V(f,138),Tna=V(f,139),Una=V(f,140),Vna=V(f,141),Wna=V(f,142),Xna=V(f,143),Yna=V(f,144),Zna=V(f,145),$na=V(f,146),aoa=V(f,147),boa=V(f,148),coa=V(f,149),doa=V(f,150),eoa=V(f,151),foa=V(f,153),goa=V(f,154),hoa=V(f,155),ioa=V(f,156),joa=V(f,157),koa=V(f,158),loa=V(f,159),moa=
V(f,160),noa=V(f,161),ooa=V(f,162),poa=V(f,163),qoa=V(f,164),roa=V(f,165),soa=V(f,166),toa=V(f,167),uoa=V(f,168),voa=V(f,169),woa=V(f,170),xoa=V(f,171),yoa=V(f,172),zoa=V(f,173),Aoa=V(f,174),Boa=V(f,175),Coa=V(f,176),Doa=V(f,177),Eoa=V(f,178),Foa=V(f,179),Goa=V(f,180),Hoa=V(f,181),Ioa=V(f,182),Joa=V(f,183),Koa=V(f,184),Loa=V(f,185),Moa=V(f,186),Noa=V(f,187),Ooa=V(f,188),Poa=V(f,189),Qoa=V(f,190),Roa=V(f,191),Soa=V(f,192),Toa=V(f,193),Uoa=V(f,194),Voa=V(f,195),Woa=V(f,196),Xoa=V(f,197),Yoa=V(f,198),
Zoa=V(f,199),$oa=V(f,200),apa=V(f,201),bpa=V(f,202),cpa=V(f,203),dpa=V(f,204),epa=V(f,205),fpa=V(f,206),gpa=V(f,207),hpa=V(f,208),ipa=V(f,209),jpa=V(f,210),kpa=V(f,211),lpa=V(f,212),mpa=V(f,213),npa=V(f,214),opa=V(f,215),ppa=V(f,216),qpa=V(f,217),rpa=V(f,218),spa=V(f,219),tpa=V(f,220),upa=V(f,221),vpa=V(f,222),wpa=V(f,223),xpa=V(f,224),ypa=V(f,225),zpa=V(f,226),Apa=V(f,227),Bpa=V(f,228),Cpa=V(f,229),Dpa=V(f,230),Epa=V(f,231),Fpa=V(f,232),Gpa=V(f,233),Hpa=V(f,234),Ipa=V(f,235),Jpa=V(f,236),Kpa=V(f,
237),Lpa=V(f,238),Mpa=V(f,239),Npa=V(f,240),Opa=V(f,241),Ppa=V(f,242),Qpa=V(f,243),Rpa=V(f,245),Spa=V(f,246),Tpa=V(f,247),Upa=V(f,248),Vpa=V(f,249),Wpa=V(f,250),Xpa=V(f,251),Ypa=V(f,252),Zpa=V(f,253),$pa=V(f,254),aqa=V(f,255),bqa=V(f,256),cqa=V(f,257),dqa=V(f,258),eqa=V(f,259),fqa=V(f,260),gqa=V(f,261),hqa=V(f,262),iqa=V(f,263),jqa=V(f,264),kqa=V(f,265),lqa=V(f,266),mqa=V(f,267),nqa=V(f,268),oqa=V(f,269),pqa=V(f,270),qqa=V(f,271),rqa=V(f,272),sqa=V(f,273),tqa=V(f,275),uqa=V(f,276),vqa=V(f,277),wqa=
V(f,278),xqa=V(f,279),yqa=V(f,280),zqa=V(f,281),Aqa=V(f,282),Bqa=V(f,283),Cqa=V(f,284),Dqa=V(f,285),Eqa=V(f,286),Fqa=V(f,287),Gqa=V(f,288),Hqa=V(f,289),Iqa=V(f,290),Jqa=V(f,291),Kqa=V(f,292),Lqa=V(f,293),Mqa=V(f,294),Nqa=V(f,295),Oqa=V(f,296),Pqa=V(f,297),Qqa=V(f,298),Rqa=V(f,299),Sqa=V(f,300),Tqa=V(f,301),Uqa=V(f,302),Vqa=V(f,303),Wqa=V(f,304),Xqa=V(f,306),Yqa=V(f,307),Zqa=V(f,308),$qa=V(f,309),ara=V(f,310),bra=V(f,311),cra=V(f,312),dra=V(f,313),era=V(f,314),fra=V(f,315),gra=V(f,316),hra=V(f,317),
ira=V(f,318),jra=V(f,319),kra=V(f,320),lra=V(f,321),mra=V(f,322),nra=V(f,323),ora=V(f,324),pra=V(f,325),qra=V(f,326),rra=V(f,327),sra=V(f,328),tra=V(f,329),ura=V(f,330),vra=V(f,331),wra=V(f,332),xra=V(f,333),yra=V(f,334),zra=V(f,335),Ara=V(f,336),fM=V(f,337);e={el:k,ps:l,autonav:m,autoplay:n,eventid:t,fexp:u,fflags:y,isHtml5MobileDevice:E,legacyBehavior:D,playerErrorLogFraction:W,canWatchLater:O,mute:Q,partnerid:bb,showinfo:jb,ss:lb,watchXlb:xb,dclk:fg,ivModule:Fr,iv3Module:Gr,iv3EditModule:Nn,ivInvideoUrl:Fk,
ivLoadPolicy:Gk,atc:yx,loudness:Ve,infringe:tc,subtitlesXlb:sF,ccFont:ig,ccModule:Oba,ccFontsUrl:Pba,cc3Module:Pla,ttsurl:Qla,ccAsr:Rla,ccContribute:Sla,ccAutoCaps:Tla,ccLoadPolicy:Ula,captionTracks:Vla,captionAudioTracks:Wla,captionTranslationLanguages:Xla,defaultAudioTrackIndex:Yla,cr:Zla,hostLanguage:$la,hl:ama,enablecsi:bma,csiPageType:cma,c:dma,cbr:ema,cbrver:fma,cos:gma,cosver:hma,cplatform:jma,cbrand:kma,cmodel:lma,cnetwork:mma,isRtl:nma,enhanceModule:oma,enhanceXlb:pma,regionModule:qma,previewSplitMode:rma,
status:sma,reason:tma,errorcode:uma,errordetail:vma,apiaryHost:wma,apiaryHostFirstparty:xma,gapiHintOverride:yma,gapiHintParams:zma,innertubeApiKey:Ama,innertubeApiVersion:Bma,innertubeContextClientVersion:Cma,loaderurl:Dma,multicameraModule:Ema,multicameraPreroll:Fma,multifeedMetadataList:Gma,allowEmbed:Hma,allowedDomains:Ima,ypcItemTitle:Jma,ypcItemUrl:Kma,ypcItemThumbnail:Lma,ypcOfferHeadline:Mma,ypcOfferDescription:Nma,ypcOfferId:Oma,ypcOfferButtonText:Pma,ypcFullVideoMessage:Qma,ypcModule:Rma,
ypcVid:Sma,ypcLicenseCheckerModule:Tma,heartbeatServerUrl:Uma,ypcLicenseSessionToken:Vma,purchaseId:Wma,heartbeatToken:Xma,heartbeatInterval:Yma,heartbeatRetries:Zma,ypcClickwrapModule:$ma,ypcClickwrapMessage:ana,livestream:bna,livePlayback:cna,authTimeout:dna,hlsdvr:ena,streaminglibModule:fna,frescaModule:gna,frescaPreroll:hna,frescaXlb:ina,enableCardio:jna,enableCardioBeforePlayback:kna,liveChunkReadahead:lna,innertubeClientVersion:mna,adHost:nna,adHostTierId:ona,coreDbp:pna,googleCustAge:qna,googleCustGender:rna,
pyvAdChannel:sna,showPyvInRelated:tna,tagForChildDirected:una,playerWide:vna,enablesizebutton:wna,bannerUrl:xna,profilePicture:yna,channelTitle:zna,spacecastAddress:Ana,timestamp:Bna,fmtList:Cna,urlEncodedFmtStreamMap:Dna,adaptiveFmts:Ena,licenseInfo:Fna,idup:Gna,dashmpd:Hna,hlsvp:Ina,hlsFormats:Jna,probeUrl:Kna,storyboardSpec:Lna,liveStoryboardSpec:Mna,ismb:Nna,surveySmartpixelUrl:Ona,surveycreativedata:Pna,threedXlb:Qna,threedModule:Rna,threedConverted:Sna,approxThreedLayout:Tna,threedLayout:Una,
t:Vna,token:Wna,noGetVideoLog:Xna,tmi:Yna,plid:Zna,pltype:$na,ptchn:aoa,ptk:boa,oid:coa,idpj:doa,ldpj:eoa,userAge:foa,userGender:goa,sw:hoa,remarketingUrl:ioa,ppvRemarketingUrl:joa,rmktenabled:koa,baseurl:loa,videostatsPlaybackBaseUrl:moa,subscribed:noa,engaged:ooa,vid:poa,uid:qoa,aid:roa,focenabled:soa,socialenabled:toa,ytfocenabled:uoa,ytfochistoryenabled:voa,ssrt:woa,delay:xoa,cl:yoa,osid:zoa,vm:Aoa,videoId:Boa,title:Coa,lengthSeconds:Doa,keywords:Eoa,ucid:Foa,allowRatings:Goa,avgRating:Hoa,viewCount:Ioa,
author:Joa,thumbnailUrl:Koa,isListed:Loa,liveDefaultBroadcast:Moa,vq:Noa,watermark:Ooa,accountPlaybackToken:Poa,watchAjaxToken:Qoa,yvaXlb:Roa,yvaModule:Soa,yvaPreroll:Toa,ypcXlb:Uoa,authuser:Voa,pageid:Woa,userDisplayName:Xoa,userDisplayImage:Yoa,playlistTitle:Zoa,playlistLength:$oa,index:apa,iurl:bpa,iurlmq:cpa,iurlhq:dpa,iurlsd:epa,iurlmaxres:fpa,iurlWebp:gpa,iurlmqWebp:hpa,iurlhqWebp:ipa,iurlsdWebp:jpa,iurlmaxresWebp:kpa,start:lpa,end:mpa,resume:npa,of:opa,list:ppa,q:qpa,referrer:rpa,sdetail:spa,
sourceid:tpa,externalList:upa,forcedExperiments:vpa,cctp:wpa,adformat:xpa,listtype:ypa,privembed:zpa,afvInstreamMax:Apa,adLanguageIso6392:Bpa,adTag:Cpa,afvAdTagRestrictedToInstream:Dpa,maxDynamicAllocationAdTagLength:Epa,asLaunchedInCountry:Fpa,adFlags:Gpa,adPreroll:Hpa,aftv:Ipa,invideo:Jpa,dynamicAllocationAdTag:Kpa,gutTag:Lpa,pyvInRelatedCafeExperimentId:Mpa,afvAdTag:Npa,MQ:Opa,loeid:Ppa,adDevice:Qpa,cafeExperimentId:Rpa,adsenseVideoDocId:Spa,fw:Tpa,adSlots:Upa,shortform:Vpa,tpasPartnerId:Wpa,instream:Xpa,
trueview:Ypa,midrollFreqcap:Zpa,mpvid:$pa,mpu:aqa,afv:bqa,tpasAdTypeId:cqa,tpasVideoId:dqa,sffb:eqa,contentOwnerName:fqa,afvMergeEnabled:gqa,excludedAds:hqa,noAfvInstream:iqa,adAge:jqa,adGender:kqa,adLoggingFlag:lqa,showContentThumbnail:mqa,cid:nqa,afvInvideoAdTag:oqa,allowHtml5Ads:pqa,supportedWithoutAds:qqa,instreamLong:rqa,adBreaks:sqa,afcRmFallback:tqa,allowAdInAutoplay:uqa,c4:vqa,dbp:wqa,fqsf:xqa,gptMigration:yqa,xfp:zqa,midrollPrefetchSize:Aqa,trueviewLactt:Bqa,xfpTag:Cqa,advideo:Dqa,ad3Module:Eqa,
vmap:Fqa,serverPrefetchedVast:Gqa,amsBaseTag:Hqa,fadeOutStartMilliseconds:Iqa,fadeOutDurationMilliseconds:Jqa,fadeInStartMilliseconds:Kqa,fadeInDurationMilliseconds:Lqa,applyFadeOnMidrolls:Mqa,adModule:Nqa,pla:Oqa,plaAdTag:Pqa,vastAdsModule:Qqa,forcedSkipOffset:Rqa,enabledEngageTypes:Sqa,freewheelAdTag:Tqa,postAdRequests:Uqa,enablejsapi:Vqa,ssl:Wqa,baseYtUrl:Xqa,controls:Yqa,disablekb:Zqa,jsapicallback:$qa,svt:ara,canplaylive:bra,storeUserVolume:cra,useMediaVolume:dra,sslStream:era,dash:fra,liveStartWalltime:gra,
oauthToken:hra,visitorData:ira,vvt:jra,osig:kra,paygated:lra,videoMastheadAdQuartileUrls:mra,tvList:nra,pyvViewBeaconUrl:ora,pyvQuartile25BeaconUrl:pra,pyvQuartile50BeaconUrl:qra,pyvQuartile75BeaconUrl:rra,pyvQuartile100BeaconUrl:sra,pyvBillableUrl:tra,rco:ura,cco:vra,feature:wra,isFling:xra,ctrl:yra,ytr:zra,ytrcc:Ara,startseconds:null==fM?fM:+fM,sentiment:V(f,338),spacecastFormatMap:V(f,339),spacecastAdaptiveFormats:V(f,340),suggestedquality:V(f,341),rvs:V(f,342),urlEncodedThirdPartyMedia:V(f,343),
vssCredentialsToken:V(f,344),vssCredentialsType:V(f,345),ypcGid:V(f,346),ypcPreview:V(f,347),ypcOrigin:V(f,348),requiresPurchase:V(f,349),mdx:V(f,350),retryneterr:V(f,351),itct:V(f,352),ypcOverlayTimeout:V(f,353),app:V(f,354),pyvConvUrl:V(f,356),cver:V(f,357),on3g:V(f,358),autohide:V(f,359),useNativeControls:V(f,360),useTabletControls:V(f,361),codeDbp:V(f,362),rel:V(f,363),attrib:V(f,364),showwatchlater:V(f,365),spacecastModule:V(f,367),fairPlayCert:V(f,368),showEndToEndLatency:V(f,369),heartbeatSoftFail:V(f,
370),drmSessionId:V(f,371),ivEndscreenUrl:V(f,372),allowAdsPayCreator:V(f,373),externalPlayVideo:V(f,374),disablecast:V(f,375),pyvAdTag:V(f,376),channelUrl:V(f,378),channelThumbnail:V(f,379),forceAdType:V(f,380),forceAdUrl:V(f,381),forcedAd:V(f,382),serializedAdBreakRenderers:V(f,383),spacecastAddrs:V(f,384),serializedAdUxConfig:V(f,385),shortViewCountText:V(f,386),murlmqWebp:V(f,387),isLiveDestination:V(f,388)};var F5={},Cu;for(Cu in e){var Bra=X8[Cu]?X8[Cu]:Cu.replace(/([a-z\d])([A-Z])/g,"$1_$2").toLowerCase();
F5[Bra]=e[Cu]}b=F5;break a}}b=null}var gM;if(b){var Vh=a.args,Tl=b,tB=[],Mc;for(Mc in Vh)Cra[Mc]||(Tl.hasOwnProperty(Mc)?typeof Vh[Mc]!=typeof Tl[Mc]?tB.push("wrong type. key ["+Mc+"]: ("+typeof Vh[Mc]+") "+Vh[Mc]+"; ("+typeof Tl[Mc]+") "+Tl[Mc]):Vh[Mc]!==Tl[Mc]&&tB.push("values differ. key ["+Mc+"]: ("+typeof Vh[Mc]+") "+Vh[Mc]+"; ("+typeof Tl[Mc]+") "+Tl[Mc]):tB.push("missing. key ["+Mc+" ]: ("+typeof Vh[Mc]+") "+Vh[Mc]));gM=tB}else gM=[];for(var Up=gM,H5=Math.floor(Math.random()*Up.length),Up=
Up.slice(H5).concat(Up.slice(0,H5)),hM=0;hM<Up.length;hM++)Xi(Error("Discrepancy in legacy config: "+Up[hM]))};
$8=function(a,b){G.call(this);this.ba=di(b);Dra(this.ba);var c=this.ba.args||{};this.V=new QA(c);H(this,this.V);this.V.experiments.Z("legacy_autoplay_flag")||"detailpage"!=this.V.b||(c.autoplay="1");this.oc=tz("detailpage"==this.V.b&&"blazer"!=this.V.g||"books"==this.V.g,c.enablesizebutton);this.ia=tz(!1,c.player_wide);this.R=this.V.Ra&&tz(!1,c.external_list);this.ua=this.V.Ra&&tz(!1,c.external_play_video);this.Ca=new Fx(this);H(this,this.Ca);this.Dc=new oK;this.Oa=null;this.N=new sg;this.$=new sg;
this.bc=new Ola(this.$);this.b=new fJ(this);H(this,this.b);this.Ya=new fJ(this,1);H(this,this.Ya);this.D=new m5(this);H(this,this.D);this.D.subscribe("resize",this.eH,this);this.K=1;this.Wa={};this.aa=this.V.storeUserVolume?wu():{volume:100,muted:this.V.mute};this.Y=this.V.Ra?new eJ(this,1):new dJ(this,1);H(this,this.Y);this.Ga=this.o=null;this.Sa={};this.ha=new Kda(Mda(this.V));this.sb={internalAbandon:this.$B,internalvideodatachange:this.ZB,playbackready:this.aC,playbackstarted:this.bC,statechange:this.cC,
signatureexpired:this.LE};this.G=Era(this);H(this,this.G);this.H=new p1(this.V,"",this.G);this.g=Fra(this);this.g.ga=this.ha;this.nc={airplayactivechange:this.RB,airplayavailabilitychange:this.SB,beginseeking:this.kC,endseeking:this.VC,internalaudioformatchange:this.eC,internalvideodatachange:this.In,internalvideoformatchange:this.nF,liveviewshift:this.bH,playbackstalledatstart:this.RE,progresssync:this.dH,seekto:this.fH,onLoadProgress:this.rD,onVideoProgress:this.pF,playbackready:this.dE,statechange:this.cH,
connectionissue:this.GC,heartbeatparams:this.aH,videoelementevent:this.gH};this.J=this.B=null;this.tb=this.xb=-1;this.qa=this.C=this.F=null;this.ga={};this.Aa=null;this.Lb=new ge(this.D.kf,16,this.D);H(this,this.Lb);this.ab=!1;this.ca=!0;this.Na=this.A=null;this.Ha=!1;this.L=this.V.D?1:Y8(this,Jj("yt-player-playback-rate")||1);this.na=null;this.yb=!1;this.Db=this.Cc=null;this.Xa=this.ea=0;this.Ja=!1;this.da=null;this.Tb=new ge(function(){Z8(this,rp(),up())},2E3,this);
H(this,this.Tb);this.b.addEventListener("crn_"+$8.o,this.XB,this);this.b.addEventListener("crx_"+$8.o,this.YB,this);this.b.addEventListener("crn_"+$8.g,this.Jr,this);this.b.addEventListener("crx_"+$8.g,this.Jr,this);this.D.initialize(a);xh=this.V.N;Gra(this);this.H.g("fs");Hra(this);this.ma=new U8(this.b);H(this,this.ma);rJ(this.Ya,"init")};
Fra=function(a){var b=new hI(a.V,1,a.H,a.D,x(a.N.Rb,a.N),!a.ua);a9(a,b,a.sb);return b};
c9=function(a,b){var c=a.g,d=a.sb,e;for(e in d)c.Fa(e,d[e],a);a.g.dispose();a.g=b;a9(a,b,a.sb);b9(a)};
Era=function(a){var b="",c=a.ba.assets.js||"";"/base.js"==c.substr(-8)&&(b=c.substr(0,c.length-8)+"/");0==b.indexOf("//")&&(b=a.V.ba+":"+b);b=new FL(a.b,b);c={};c.loaded=x(a.es,a);c.unloaded=x(a.gs,a);c.destroyed=x(a.Lm,a);c.command_redirect_controls=x(a.zu,a);c.command_stop_redirect_controls=x(a.Nj,a);b.G=c;a.V.G.subscribe("vast_info_card_add",qa(b.NF,"vast_info_card_add"),b);return b};
d9=function(a,b){a.Oa||(a.Oa=new M5(a),H(a,a.Oa),kw(a.b,a.Oa.element,4));a.Oa.fb(b)};
e9=function(a){var b=L4.getTag(!0,!a.V.C);a.o=new K4(b);a.Ga=a.o;a.B&&HI(a.B,a.o);a.o.Sf(a.Ha);a.o.Tf(a.L);a.V.useMediaVolume?(a.na&&a.Ca.sa(a.na),a.na=a.Ca.S(a.o,"volumechange",a.AD)):(a.o.setVolume(a.aa.volume/100),a.o.di(a.aa.muted));Ala(a.D,b);try{uI(a.o)}catch(c){b="activate.1;emsg."+c.message.replace(/[;:,]/g,"_"),rI(a.g,"html5.missingapi","YTP_ERROR_UNSUPPORTED_DEVICE",b)}};
f9=function(a){if(a.o){a.na&&(a.Ca.sa(a.na),a.na=null);a.B&&GI(a.B);var b=a.D;b.b&&(If(b.b),b.b=null);L4.releaseTag(a.o.la());a.o=null}};
g2=function(a,b){a.V.R?(a.qa&&(a.o.Qv(new ff(a.qa.left,a.qa.top)),a.o.setSize(qg(a.qa)),a.qa=null),kI(a.o),GI(a.B),HI(a.B,a.o),a.o.Sf(a.Ha),a.o.Tf(a.L)):L4.releaseTag(b.la())};
O4=function(a,b){a.B!=b&&(a.B&&(IL(a.G),yJ(a,"cuerangesremoved",a.B.C.b.b||[]),N4(a)),b!=a.g&&(a.Sa[b.J]=b),a.B=b,b.ga=a.ha,a.o&&HI(b,a.o),a9(a,b,a.nc),a.In("newdata",b,b.getVideoData()),b.ca.b&&a.In("dataloaded",b,b.getVideoData()),b.getVideoData().g&&a.b.za("onPlaybackQualityChange",b.getVideoData().g.video.quality),yJ(a,"cuerangesadded",a.B.C.b.b||[]),uq(b.getPlayerState())&&NI(b))};
a9=function(a,b,c){for(var d in c)b.subscribe(d,c[d],a)};
N4=function(a){GI(a.B);var b=a.B,c=a.nc,d;for(d in c)b.Fa(d,c[d],a);b=a.B;b!=a.g&&(c=b.J,a.Sa[c]==b&&delete a.Sa[c]);a.B=null};
gJ=function(a,b){return b?1==b?a.g:a.Sa[b]||null:a.B};
g9=function(a){var b=a.G,c=a.Dc.b(a.V);b.Ip();b.Jp();b.Kp();F(c,b.Sy,b);a.b.Va("videoready",a.getVideoData())};
i9=function(a){if(a.V.B){a.C||(a.C=new k5(a),h9(a,a.C));var b=up();l5(a.C,rp(),b);var c=a.C;c&&!c.D&&c.Cb(a.Ya)&&c.create();a.V.experiments.Z("legacy_cast2")&&b&&a.C.load()}};
h9=function(a,b){H(a,b);b.subscribe("loaded",a.es,a);b.subscribe("unloaded",a.gs,a);b.subscribe("command_redirect_controls",a.zu,a);b.subscribe("command_stop_redirect_controls",a.Nj,a)};
j9=function(a,b){b&&b.D&&("ad"==b.Ma&&ne(a.D.element,["ytp-ad-overlay-open","ytp-ad-overlay-closed"]),b.destroy())};
E4=function(a){return a.g.getVideoData()};
k9=function(a,b){if(a.V.experiments.Z("legacy_html5_progress_element"))return(a.B&&2==a.B.J)==(2==b)?VI(a.Ga):0;var c=gJ(a,b);return(c=c?c.g:null)?VI(c):0};
l9=function(a,b,c){(a=gJ(a,c||1))&&iI(a,b)};
Gra=function(a){var b=new GH(a.ba.args);$H(b)&&(qI(a.g,b,x(a.ak,a)),(a.V.experiments.Z("legacy_autoplay_flag")?a.V.yb:b.J)&&(a.V.ab||a.V.experiments.C)&&tI(a.g))};
Hra=function(a){var b=a.D;b.isDisposed();var c=b.app.V;c.R||b.Zn("tag-pool-enabled");c.Ub&&b.Zn("house-brand");"gvn"!=c.g&&"gvn-experiment"!=c.g||b.Zn("ytp-gvn");"gvn-experiment"==c.g&&(b.element.style.backgroundColor="transparent");c.ca&&(b.F=ej("yt-dom-content-change",b.kf,b));b.S(window,"resize",b.kf,b);b=a.Y;b.b=a.D.element;for(var d in b.o)b.b[d]=b.o[d];for(d in b.A)b.b[d]=b.A[d];(d=Wh(a.D.element))&&a.Ca.S(a.D,d,a.cD);a.Ca.S(window,"resize",a.yE);b=a.ba.args;e9(a);if(!P(a.g.getPlayerState(),
128)||!a.V.experiments.Z("legacy_startup_error_handling")){d=E4(a);a.b.za("onVolumeChange",a.aa);b&&DK(b)&&((c=xr(a.V))&&!a.R&&(b.fetch=0),m9(a,b),c&&!a.R?n9(a):$H(d)||(b=a.A,c=x(a.ls,a),b.C=c,b.B&&Ti(b.C,0)));if(b=a.ba.args.jsapicallback)ia(b)||(b=q(b)),b&&x(b,aa,a.V.He);a.V.B&&(b="embedded"==a.V.b,c=void 0,!a.V.experiments.Z("legacy_cast2")&&b&&(c={device:"Desktop",app:"youtube-desktop"}),lp(b,c),a.Tb.te());O4(a,a.g);P(a.g.getPlayerState(),128)||(b=rz(a.V.C),"fmt.noneavailable"==b?rI(a.g,b,"YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK",
"nocanplaymedia.1"):"html5.missingapi"==b?rI(a.g,b,"YTP_ERROR_UNSUPPORTED_DEVICE","nocanplaymedia.1"):(a.V.experiments.Z("legacy_autoplay_flag")?a.V.yb:d.J)&&a.V.ab&&$H(d)?o9(a):"leanback"!=a.V.b&&p9(a))}};
p9=function(a){a.b.Va("initializingmode");q9(a,2)};
o9=function(a){if(P(a.g.getPlayerState(),128))return!1;if(a.J){var b=a.J.getVideoData(),c=a.g.getVideoData();b.videoId==c.videoId&&(b.autonavState=c.autonavState,b=a.J,a.J=null,c9(a,b))}a.b.Va("initializingmode");O4(a,a.g);q9(a,3);if(!(b=!a.V.R||MA()&&!a.yb)){if(b=a.da)b=a.da,b=!!b.b&&a.o==b.b;b=b&&a.yb}b&&(f9(a),e9(a),HI(a.g,a.o));wI(a.g);if(P(a.g.getPlayerState(),128))return!1;r9(a,3);return a.yb=!0};
s9=function(a,b){a.Ha!=b&&(a.Ha=b,a.B==a.g&&a.o.Sf(b),a.b.Va("loopchange",b))};
t9=function(a,b,c){!(0,window.isNaN)(b)&&a.o&&(b=Y8(a,b),a.L!=b&&(a.L=b,a.g==a.B&&a.o.Tf(b),c&&!a.V.D&&Ij("yt-player-playback-rate",b),a.b.za("onPlaybackRateChange",b)))};
Y8=function(a,b){var c=1,c=a.b.Vh();return c=1>b?cb(c,function(a){return a>=b}):eb(c,function(a){return a<=b})};
u9=function(a,b){var c=gJ(a,b);return c?c.Jn():a.getVideoData().Ja};
v9=function(a,b){var c=gJ(a,b);return c?c.Th():0};
w9=function(a,b){var c=WI(a.g,b);if(a.B&&a.B!=a.g){var d=WI(a.B,b),e;for(e in d)c["ad_"+e]=d[e]}b&&a.o&&(d=a.o.sk(),c["0sz"]=0==d.width*d.height,c.op=a.o.getStyle("opacity"),d=a.o.Jl().y+a.o.sk().height,c.yof=0>=d,c.dis=a.o.getStyle("display"));(d=rq())&&(c.gpu=d);c.cgr=!0;c.debug_playbackQuality=a.Ya.ck();c.debug_date=(new Date).toString();delete c.uga;delete c.q;return gg(c)};
x9=function(a,b){return 3==a.getPresentingPlayerType()?Fq(a.C.K):2==b?a.tb:a.xb};
b9=function(a){j9(a,a.F);a.V.B&&j9(a,a.C);a.Nj();s9(a,!1);a.Wa={};a=a.H;var b=a.o;b.C={};b.A={};a.A=!1};
n9=function(a){var b=y9();if(b)if(!b.list)a.fl();else if(a.A&&a.A.listId.toString()==b.list)if(0<=b.index){var c=b.video;a.b.Qa()&&((c=c[a.A.b])&&c.encrypted_id!=a.A.Gb().videoId||(b.index=a.A.b));HK(a.A,b);a.Na&&z9(a,a.Na)}else a.Na=null};
m9=function(a,b){if(a.A){a.A.Fa("error",a.fl,a);Nb(a.A);a.A=null;var c=nJ(a.G,"playlist");c&&(pb(a.G.b,c),c.destroy())}b&&(a.R&&(b.fetch=0),a.A=new CK(b),a.A.subscribe("error",a.fl,a))};
A9=function(a,b,c,d){b in a.Wa||(c=new bq(c,d,{id:b,priority:1}),c.namespace=$8.g,a.g.C.vb([c]),a.Wa[b]=c)};
B9=function(a,b,c){c={label:c};a.V.experiments.Z("send_pyv_ad_mt_and_abandon_pings")&&(a=1E3*a.getCurrentTime(),c.ad_mt=Math.round(Math.max(0,a)).toString());return Sj(b,c)};
q9=function(a,b){b!=a.K&&(2==b&&(r9(a,-1),r9(a,5)),a.K=b,a.b.Va("appstatechange",b))};
r9=function(a,b){a.B&&2==a.B.J?a.tb!=b&&(a.tb=b,a.b.za("onAdStateChange",b)):a.xb!=b&&(a.xb=b,a.b.za("onStateChange",b))};
D9=function(a,b,c,d){a.V.experiments.Z("legacy_autoplay_flag")||"detailpage"!=a.V.b||(b.autoplay="1");var e=new GH(b);d||(b&&DK(b)?(xr(a.V)&&!a.R&&(b.fetch=0),m9(a,b)):a.A&&m9(a,null),a.R=tz(!1,b.external_list),xr(a.V)&&!a.R&&n9(a));return C9(a,e,c)};
E9=function(a,b){a.J&&a.J.getVideoData().videoId==b.videoId||(b.Ie=!0,a.J||(a.J=new hI(a.V,1,a.H,a.D,x(a.N.Rb,a.N)),a.J.ga=a.ha),qI(a.J,b,x(a.ak,a)),tI(a.J,!0))};
C9=function(a,b,c){UC("_start",a.H.b)||(TC("p",a.H.b),a.H.info("srt",0));var d;if(a.J&&a.J.getVideoData().videoId==b.videoId)d=a.J,a.J=null,c9(a,d);else{d=gJ(a,c);if(!d)return!1;a.Lb.stop();F9(a,c);qI(d,b,x(a.ak,a))}if(!sI(d))return!1;a.ab&&(d.qa=!1,a.ab=!1);if(d==a.g)return q9(a,1),o9(a);wI(d);return!0};
G9=function(a,b,c){c=gJ(a,c);b&&c==a.g&&(c.getVideoData().Ca=!0)};
H9=function(a,b,c){var d=gJ(a,c);d&&(F9(a,c),qI(d,b,x(a.ak,a)),OA(d.V,b.A),d==a.g&&(q9(a,1),p9(a)))};
J9=function(a,b,c,d,e,f){if(!b&&!d)throw Error("Playback source is invalid");a.b.Qa()&&!a.ua||"detailpage"!=a.V.b?(f=a.H,c=f.o,c.C={},c.A={},f.A=!1,a.H.reset(),b={video_id:b},e&&(b.autoplay="1"),d?(b.list=d,a.ca=!1,I9(a,b,void 0,void 0,void 0)):D9(a,b,1)):(e=c||{},e.lact=ir(),e.vis=qG(a.V),a.ua||"gaming"==a.V.g?a.b.za("onPlayVideo",{videoId:b,sessionData:e,listId:d}):(a=f&&a.getVideoData().isLiveDestination?a.V.H:a.V.getVideoUrl(b,d),q("yt.player.exports.navigate")(a,e,!0),(window.ytspf||{}).enabled?
window.spf.navigate(a):sr(a)))};
I9=function(a,b,c,d,e){if(ka(b)&&!ea(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 d={index:c,startSeconds:d,suggestedQuality:e},w(b)&&16==b.length?d.list="PL"+b:d.playlist=b,b=d;m9(a,b);b=a.A;a=x(a.ls,a);b.C=a;b.B&&Ti(b.C,0)};
dL=function(a){xr(a.V)&&!a.R&&n9(a);return!(!a.A||!a.A.hasNext())};
K9=function(a,b){E4(a).autonavState=b;a.b.Va("autonavchange",b)};
L9=function(a,b,c){!a.R||a.b.Qa()&&!a.ua?a.A?xr(a.V)&&!a.b.Qa()?z9(a,"yt.www.watch.lists.next"):(a.A.hasNext(b)&&GK(a.A,EK(a.A)),a.A.B?C9(a,a.A.Gb(void 0,c),1):a.ca=!1):AJ(a.b)&&gJ(a,1).getVideoData().N&&(b=M(gJ(a,1).getVideoData().N,PK)[0],J9(a,b.Gb().videoId,b.Ha,b.Ug(),c)):a.b.za("onPlaylistNext")};
M9=function(a,b){if(a.R&&(!a.b.Qa()||a.ua))a.b.za("onPlaylistPrevious");else if(a.A)if(xr(a.V)&&!a.b.Qa())z9(a,"yt.www.watch.lists.prev");else{var c=a.A;(c.G||b||0<=c.b-1)&&GK(a.A,FK(a.A));a.A.B?C9(a,a.A.Gb(),1):a.ca=!1}};
z9=function(a,b){var c=q(b);if(c){var d=y9();d&&d.list&&c();a.Na=null}else a.Na=b};
N9=function(a,b){!a.R||a.b.Qa()&&!a.ua?a.A&&(a.A.B?C9(a,a.A.Gb(b),1):a.ca=!1,GK(a.A,b)):a.b.za("onPlaylistIndex",b)};
y9=function(){var a=q("yt.www.watch.lists.getState");return a?a():null};
P9=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 bq(1E3*c,1E3*d,b);c.namespace=$8.o;O9(a,[c],1);return!0};
O9=function(a,b,c){var d=gJ(a,c);d&&(d.C.vb(b),c&&a.getPresentingPlayerType()!=c||yJ(a,"cuerangesadded",b))};
fq=function(a,b,c){var d=gJ(a,c);if(d){for(var d=d.C,e=[],f=d.b.b,k=f.length-1;0<=k;k--){var l=f[k];if(l.namespace==b){var m=d.g.indexOf(l);0<=m&&d.g.splice(m,1);var n=d.b,m=n.b,n=Ab(m,l,n.g);0<=n&&ob(m,n);e.push(l)}}d.ue();c&&a.getPresentingPlayerType()!=c||yJ(a,"cuerangesremoved",e)}};
U4=function(a){var b=zq(),c=a.getCurrentTime();a=a.getVideoData();return b-Math.max(1E3*(c-a.startSeconds),0)};
R9=function(a,b,c){a.aa=b;c&&a.V.storeUserVolume&&!a.V.useMediaVolume&&(c={volume:Math.floor(b.volume),muted:b.muted},c.unstorable||(Ij("yt-player-volume",c),Ij("yt-player-volume",c,2592E3)));Q9(a);a.V.useMediaVolume||(b=hc(b),a.V.storeUserVolume||(b.unstorable=!0),a.b.za("onVolumeChange",b))};
Q9=function(a){var b=a.getVideoData();b.Lb||(a.o.setVolume(a.aa.volume*(a.V.useMediaVolume?GH.g:b.Db)/100),a.o.di(a.aa.muted))};
S9=function(a,b){var c=window.screen&&window.screen.orientation;if(a.V.experiments.Z("lock_fullscreen")&&c&&c.lock)if(b){var d=0==c.type.indexOf("portrait"),e=d;if(a.V.experiments.Z("lock_fullscreen_auto")){var f=r5(a.D);1>f?e=!0:1<f&&(e=!1)}if(!a.Ja||e!=d){if(c=c.lock(e?"portrait":"landscape"))c["catch"](r);a.Ja=!0}}else a.Ja&&(a.Ja=!1,c.unlock())};
T9=function(a,b){var c=!!b,d=!!a.Xa!=c;a.Xa=b;a.V.experiments.Z("legacy_player_fullscreen_order")?d&&(a.H.g("fsc"),a.V.L=c,a.D.kf()):(a.V.L=c,a.D.kf(),d&&a.H.g("fsc"));d&&(a.b.Va("fullscreentoggled",c),d=E4(a),c={fullscreen:c,videoId:d.ypcOrigin||d.videoId,time:a.getCurrentTime()},a.Ya.we()&&(c.listId=a.Ya.we()),a.b.za("onFullscreenChange",c))};
yJ=function(a,b,c){a.b.Va(b,c);if(c&&$A(a.V)){var d;switch(b){case "cuerangemarkersupdated":d="onCueRangeMarkersUpdated";break;case "cuerangesadded":d="onCueRangesAdded";break;case "cuerangesremoved":d="onCueRangesRemoved"}d&&a.b.za(d,c)}};
S4=function(a,b){var c=gJ(a,b);c&&(2==a.K?o9(a):!a.V.experiments.Z("new_ended_replay")&&P(c.getPlayerState(),2)?a.seekTo(0):NI(c))};
U9=function(a){var b=a.g.getVideoData(),b=new GH({video_id:b.videoId,oauth_token:b.oauthToken});H9(a,b,1)};
F9=function(a,b){IC(a.ea);a.ea=0;var c=gJ(a,b);c&&1!=a.K&&2!=a.K&&(IL(a.G),1==b&&j9(a,a.F),DI(c),yJ(a,"cuerangesremoved",a.B.C.b.b||[]),c.C.reset())};
Z8=function(a,b,c){a.V.B&&(a.C||(a.C=new k5(a),h9(a,a.C)),l5(a.C,b,c),6!=a.K&&(a.C.Cb(a.Ya)?(1!=a.K&&3!=a.K||!c||j9(a,a.F),b.length&&1!=a.K&&i9(a)):j9(a,a.C)))};
V9=function(a,b){if(a.V.experiments.Z("legacy_control_redirecting")){if(!xJ(a.Ya))return;var c=a.ga.play_pause?a.Aa:null;if(c){c.zc("control_play");return}}else{c=a.getPresentingPlayerType();if(2==c){a.F&&a.F.zc("control_play");return}if(3==c){a.C&&a.C.zc("control_play");return}}S4(a,b)};
Ira=function(a,b){if(a.V.experiments.Z("legacy_control_redirecting")){if(!xJ(a.Ya))return;var c=a.ga.play_pause?a.Aa:null;if(c){c.zc("control_pause");return}}else{c=a.getPresentingPlayerType();if(2==c){a.F&&a.F.zc("control_pause");return}if(3==c){a.C&&a.C.zc("control_pause");return}}a.pauseVideo(b)};
W9=function(a,b,c,d,e){var f=gJ(a,e);if(!f||2!=f.J&&!ps(f.getVideoData())){if(a.V.experiments.Z("legacy_control_redirecting")){if(f=a.ga.seek?a.Aa:null){f.zc("control_seek",b);return}}else if(3==a.getPresentingPlayerType()&&a.C){a.C.zc("control_seek",b);return}a.seekTo(b,c,d,e)}};
X9=function(a,b,c){a.oc=b;a.ia=c;a.b.Va("sizestylechange",b,c);a.D.kf()};
Y9=function(a,b,c,d,e){c=a.V.Ra&&a.F&&b==a.F.Ma?a.F.xe(c,d):(a.V.Ra||e)&&a.C&&a.C.D&&b==a.C.Ma?a.C.xe(c,d):b&&c?(a=nJ(a.G,b))?a.xe(c,d):null:null;return c};
Z9=function(a,b,c){if(b){if(a.V.Ra&&a.F&&b==a.F.Ma)return a.F.Qf();if((a.V.Ra||c)&&a.C&&a.C.D&&b==a.C.Ma)return a.C.Qf()}else return b=LL(a.G),a.V.Ra&&a.F&&b.push(a.F.Ma),(a.V.Ra||c)&&a.C&&a.C.D&&b.push(a.C.Ma),b;return LL(a.G,b)};
$9=function(a,b,c){if(!a.ab){c&&(f9(a),e9(a));a.ab=!0;c=gJ(a);c.qa=!0;c.o&&Ku(c.o.g,"reloading",b,void 0);c=a.getVideoData();var d={};d.video_id=c.videoId;c.xa||(d.start=gJ(a).getCurrentTime(),d.resume="1");d.autoplay=1;d.reload=1;d.reload_reason=b;D9(a,d)}};
yn=yn||{};aa=this;la="closure_uid_"+(1E9*Math.random()>>>0);ma=0;C=Date.now||function(){return+new Date};z(sa,Error);sa.prototype.name="CustomError";var nf;var Pa=String.prototype.trim?function(a){return a.trim()}:function(a){return a.replace(/^[\s\xa0]+|[\s\xa0]+$/g,"")},ya=/&/g,za=/</g,Aa=/>/g,Ba=/"/g,Ca=/'/g,Da=/\x00/g,xa=/[\x00&<>"']/,Ia=/&([^;\s<&]+);?/g,cn={"\x00":"\\0",
"\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\x0B":"\\x0B",'"':'\\"',"\\":"\\\\","<":"<"},bn={"'":"\\'"},La=String.prototype.repeat?function(a,b){return a.repeat(b)}:function(a,b){return Array(b+1).join(a)},Ta=2147483648*Math.random()|0;var fb=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(w(a))return w(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},Jra=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(w(a))return w(b)&&1==b.length?a.lastIndexOf(b,c):-1;for(;0<=c;c--)if(c in a&&a[c]===b)return c;return-1},F=Array.prototype.forEach?function(a,b,c){Array.prototype.forEach.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=w(a)?a.split(""):a,f=0;f<d;f++)f in e&&b.call(c,e[f],f,a)},le=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=w(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},M=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=w(a)?a.split(""):a,k=0;k<d;k++)k in f&&(e[k]=b.call(c,f[k],k,a));
return e},cf=Array.prototype.reduce?function(a,b,c,d){d&&(b=x(b,d));
return Array.prototype.reduce.call(a,b,c)}:function(a,b,c,d){var e=c;
F(a,function(c,k){e=b.call(d,e,c,k,a)});
return e},Th=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=w(a)?a.split(""):a,f=0;f<d;f++)if(f in e&&b.call(c,e[f],f,a))return!0;
return!1},Sk=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=w(a)?a.split(""):a,f=0;f<d;f++)if(f in e&&!b.call(c,e[f],f,a))return!1;
return!0};G.prototype.gb=!1;G.prototype.isDisposed=function(){return this.gb};
G.prototype.dispose=function(){this.gb||(this.gb=!0,this.T())};
G.prototype.T=function(){if(this.La)for(;this.La.length;)this.La.shift()()};var jc="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");mc.prototype.stopPropagation=function(){this.g=!0};
mc.prototype.preventDefault=function(){this.jt=!1};oc[" "]=r;var sc;a:{var a$=aa.navigator;if(a$){var b$=a$.userAgent;if(b$){sc=b$;break a}}sc=""};var Dc=uc("Opera"),wf=uc("Trident")||uc("MSIE"),TF=uc("Edge"),cB=TF||wf,Ds=uc("Gecko")&&!(Ka(sc,"WebKit")&&!uc("Edge"))&&!(uc("Trident")||uc("MSIE"))&&!uc("Edge"),Cc=Ka(sc,"WebKit")&&!uc("Edge"),o5=Cc&&uc("Mobile"),nG=uc("Macintosh"),aB=uc("Android"),nea=wc(),yM=uc("iPad"),c$;a:{var d$="",e$=function(){var a=sc;if(Ds)return/rv\:([^\);]+)(\)|;)/.exec(a);if(TF)return/Edge\/([\d\.]+)/.exec(a);if(wf)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(a);if(Cc)return/WebKit\/(\S+)/.exec(a);if(Dc)return/(?:Version)[ \/]?(\S+)/.exec(a)}();
e$&&(d$=e$?e$[1]:"");if(wf){var f$=xc();if(null!=f$&&f$>(0,window.parseFloat)(d$)){c$=String(f$);break a}}c$=d$}var yc=c$,qc={},g$=aa.document,Ac=g$&&wf?xc()||("CSS1Compat"==g$.compatMode?(0,window.parseInt)(yc,10):5):void 0;var ad=!wf||Bc(9),Kra=wf&&!zc("9");!Cc||zc("528");Ds&&zc("1.9b")||wf&&zc("8")||Dc&&zc("9.5")||Cc&&zc("528");Ds&&!zc("8")||wf&&zc("9");var Lra={yk:"click",WO:"rightclick",DL:"dblclick",vN:"mousedown",BN:"mouseup",AN:"mouseover",zN:"mouseout",yN:"mousemove",wN:"mouseenter",xN:"mouseleave",bP:"selectstart",AQ:"wheel",WM:"keypress",VM:"keydown",XM:"keyup",SK:"blur",mM:"focus",FL:"deactivate",nM:wf?"focusin":"DOMFocusIn",oM:wf?"focusout":"DOMFocusOut",iL:"change",QO:"reset",aP:"select",CP:"submit",JM:"input",GO:"propertychange",XL:"dragstart",SL:"drag",UL:"dragenter",WL:"dragover",VL:"dragleave",ZL:"drop",TL:"dragend",SP:"touchstart",
RP:"touchmove",QP:"touchend",PP:"touchcancel",PK:"beforeunload",rL:"consolemessage",vL:"contextmenu",ML:"DOMContentLoaded",ERROR:"error",yM:"help",LOAD:"load",oN:"losecapture",hO:"orientationchange",LO:"readystatechange",RO:"resize",YO:"scroll",aQ:"unload",YK:"canplay",ZK:"canplaythrough",$L:"durationchange",dM:"emptied",ENDED:"ended",fN:"loadeddata",gN:"loadedmetadata",PAUSE:"pause",PLAY:"play",PLAYING:"playing",KO:"ratechange",ZO:"seeked",$O:"seeking",rP:"stalled",DP:"suspend",HP:"timeupdate",tQ:"volumechange",
xQ:"waiting",sM:"hashchange",kO:"pagehide",lO:"pageshow",zO:"popstate",wL:"copy",nO:"paste",BL:"cut",LK:"beforecopy",MK:"beforecut",NK:"beforepaste",eO:"online",bO:"offline",MESSAGE:"message",qL:"connect",yK:Ec("AnimationStart"),wK:Ec("AnimationEnd"),xK:Ec("AnimationIteration"),VP:Ec("TransitionEnd"),sO:"pointerdown",yO:"pointerup",rO:"pointercancel",vO:"pointermove",xO:"pointerover",wO:"pointerout",tO:"pointerenter",uO:"pointerleave",rM:"gotpointercapture",pN:"lostpointercapture",GN:"MSGestureChange",
HN:"MSGestureEnd",IN:"MSGestureHold",JN:"MSGestureStart",KN:"MSGestureTap",LN:"MSGotPointerCapture",MN:"MSInertiaStart",NN:"MSLostPointerCapture",ON:"MSPointerCancel",PN:"MSPointerDown",QN:"MSPointerEnter",RN:"MSPointerHover",SN:"MSPointerLeave",TN:"MSPointerMove",UN:"MSPointerOut",VN:"MSPointerOver",WN:"MSPointerUp",TEXT:"text",EP:"textInput",oL:"compositionstart",pL:"compositionupdate",nL:"compositionend",iM:"exit",dN:"loadabort",eN:"loadcommit",hN:"loadredirect",iN:"loadstart",jN:"loadstop",TO:"responsive",
kP:"sizechanged",cQ:"unresponsive",sQ:"visibilitychange",yP:"storage",RL:"DOMSubtreeModified",NL:"DOMNodeInserted",PL:"DOMNodeRemoved",QL:"DOMNodeRemovedFromDocument",OL:"DOMNodeInsertedIntoDocument",KL:"DOMAttrModified",LL:"DOMCharacterDataModified",OK:"beforeprint",mK:"afterprint"};z(Fc,mc);
Fc.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?Ds&&(pc(e,"nodeName")||(e=null)):"mouseover"==c?e=a.fromElement:"mouseout"==c&&(e=a.toElement);this.relatedTarget=e;null===d?(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.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.b=a;a.defaultPrevented&&this.preventDefault()};
Fc.prototype.stopPropagation=function(){Fc.M.stopPropagation.call(this);this.b.stopPropagation?this.b.stopPropagation():this.b.cancelBubble=!0};
Fc.prototype.preventDefault=function(){Fc.M.preventDefault.call(this);var a=this.b;if(a.preventDefault)a.preventDefault();else if(a.returnValue=!1,Kra)try{if(a.ctrlKey||112<=a.keyCode&&123>=a.keyCode)a.keyCode=-1}catch(b){}};var Gc="closure_listenable_"+(1E6*Math.random()|0),Ic=0;Lc.prototype.remove=function(a,b,c,d){a=a.toString();if(!(a in this.b))return!1;var e=this.b[a];b=Nc(e,b,c,d);return-1<b?(Kc(e[b]),ob(e,b),0==e.length&&(delete this.b[a],this.g--),!0):!1};var Wc="closure_lm_"+(1E6*Math.random()|0),ed={},Zc=0,hd="__closure_events_fn_"+(1E9*Math.random()>>>0);z(id,G);id.prototype[Gc]=!0;h=id.prototype;h.Kg=function(a){this.ua=a};
h.addEventListener=function(a,b,c,d){Sc(this,a,b,c,d)};
h.removeEventListener=function(a,b,c,d){cd(this,a,b,c,d)};
h.dispatchEvent=function(a){var b,c=this.ua;if(c){b=[];for(var d=1;c;c=c.ua)b.push(c),++d}c=this.Na;d=a.type||a;if(w(a))a=new mc(a,c);else if(a instanceof mc)a.target=a.target||c;else{var e=a;a=new mc(d,c);kc(a,e)}var e=!0,f;if(b)for(var k=b.length-1;!a.g&&0<=k;k--)f=a.currentTarget=b[k],e=jd(f,d,!0,a)&&e;a.g||(f=a.currentTarget=c,e=jd(f,d,!0,a)&&e,a.g||(e=jd(f,d,!1,a)&&e));if(b)for(k=0;!a.g&&k<b.length;k++)f=a.currentTarget=b[k],e=jd(f,d,!1,a)&&e;return e};
h.T=function(){id.M.T.call(this);this.jd&&Qc(this.jd);this.ua=null};
h.O=function(a,b,c,d){return Oc(this.jd,String(a),b,!1,c,d)};
h.sa=function(a,b,c,d){return this.jd.remove(String(a),b,c,d)};kd.prototype.get=function(){var a;0<this.g?(this.g--,a=this.b,this.b=a.next,a.next=null):a=this.o();return a};var pd;var yd=new kd(function(){return new td},function(a){a.reset()},100);
sd.prototype.remove=function(){var a=null;this.b&&(a=this.b,this.b=this.b.next,this.b||(this.g=null),a.next=null);return a};
td.prototype.set=function(a,b){this.b=a;this.scope=b;this.next=null};
td.prototype.reset=function(){this.next=this.scope=this.b=null};var ud,wd=!1,xd=new sd;Fd.prototype.reset=function(){this.context=this.g=this.A=this.b=null;this.o=!1};
var Gd=new kd(function(){return new Fd},function(a){a.reset()},100);
Ed.prototype.then=function(a,b,c){return Sd(this,ia(a)?a:null,ia(b)?b:null,c)};
Bd(Ed);Ed.prototype.cancel=function(a){0==this.b&&zd(function(){var b=new Yd(a);Ud(this,b)},this)};
Ed.prototype.G=function(a){this.b=0;Dd(this,2,a)};
Ed.prototype.H=function(a){this.b=0;Dd(this,3,a)};
Ed.prototype.F=function(){for(var a;a=Vd(this);)Wd(this,a,this.b,this.D);this.C=!1};
var be=od;z(Yd,sa);Yd.prototype.name="cancel";z(ce,id);h=ce.prototype;h.enabled=!1;h.Tc=null;h.oz=function(){if(this.enabled){var a=C()-this.A;0<a&&a<.8*this.b?this.Tc=this.g.setTimeout(this.o,this.b-a):(this.Tc&&(this.g.clearTimeout(this.Tc),this.Tc=null),this.dispatchEvent("tick"),this.enabled&&(this.Tc=this.g.setTimeout(this.o,this.b),this.A=C()))}};
h.start=function(){this.enabled=!0;this.Tc||(this.Tc=this.g.setTimeout(this.o,this.b),this.A=C())};
h.stop=function(){this.enabled=!1;this.Tc&&(this.g.clearTimeout(this.Tc),this.Tc=null)};
h.T=function(){ce.M.T.call(this);this.stop();delete this.g};z(ge,G);h=ge.prototype;h.wa=0;h.T=function(){ge.M.T.call(this);this.stop();delete this.b;delete this.g};
h.start=function(a){this.stop();this.wa=ee(this.o,p(a)?a:this.A)};
h.te=function(a){this.isActive()||this.start(a)};
h.stop=function(){this.isActive()&&fe(this.wa);this.wa=0};
h.isActive=function(){return 0!=this.wa};
h.kq=function(){this.wa=0;this.b&&this.b.call(this.g)};var Xe={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};var oe=/<[^>]*>|&[^;]+;/g,x0=RegExp("[\u0591-\u06ef\u06fa-\u07ff\u200f\ufb1d-\ufdff\ufe70-\ufefc]"),te=RegExp("[A-Za-z\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02b8\u0300-\u0590\u0800-\u1fff\u200e\u2c00-\ufb1c\ufe00-\ufe6f\ufefd-\uffff]"),re=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]"),se=/^http:\/\/.*/,jba=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Arab|Hebr|Thaa|Nkoo|Tfng))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i,
qe=/\s+/,ue=/[\d\u06f0-\u06f9]/;xe.prototype.Hf=!0;xe.prototype.Pe=function(){return this.b};
xe.prototype.toString=function(){return"Const{"+this.b+"}"};
var we={};Be.prototype.Hf=!0;var Ae={};Be.prototype.Pe=function(){return this.b};
var Ue=Ce(""),Te=/^([-,."'%_!# a-zA-Z0-9]+|(?:rgb|hsl)a?\([0-9.%, ]+\))$/;Ee.prototype.Hf=!0;Ee.prototype.Pe=function(){return this.b};
Ee.prototype.xm=!0;Ee.prototype.jg=function(){return 1};
var Ge=/^(?:(?:https?|mailto|ftp):|[^&:/?#]*(?:[/?#]|$))/i,De={};He("about:blank");Ke.prototype.Hf=!0;Ke.prototype.Pe=function(){return this.b};
Ke.prototype.xm=!0;Ke.prototype.jg=function(){return 1};
var Je={};Oe.prototype.xm=!0;Oe.prototype.jg=function(){return this.g};
Oe.prototype.Hf=!0;Oe.prototype.Pe=function(){return this.b};
var Se=/^[a-zA-Z0-9-]+$/,We={action:!0,cite:!0,data:!0,formaction:!0,href:!0,manifest:!0,poster:!0,src:!0},Mra={APPLET:!0,BASE:!0,EMBED:!0,IFRAME:!0,LINK:!0,MATH:!0,META:!0,OBJECT:!0,SCRIPT:!0,STYLE:!0,SVG:!0,TEMPLATE:!0},Ne={};Qe("<!DOCTYPE html>",0);Qe("",0);Qe("<br>",0);h=ff.prototype;h.clone=function(){return new ff(this.x,this.y)};
h.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this};
h.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this};
h.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this};
h.scale=function(a,b){var c=ha(b)?b:a;this.x*=a;this.y*=c;return this};h=hf.prototype;h.clone=function(){return new hf(this.width,this.height)};
h.aspectRatio=function(){return this.width/this.height};
h.isEmpty=function(){return!(this.width*this.height)};
h.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};
h.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};
h.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};
h.scale=function(a,b){var c=ha(b)?b:a;this.width*=a;this.height*=c;return this};var Af=!wf||Bc(9),Kf=!Ds&&!wf||wf&&Bc(9)||Ds&&zc("1.9.1");wf&&zc("9");var Of=wf||Dc||Cc;var sf={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"};h=lf.prototype;h.la=function(a){return w(a)?this.b.getElementById(a):a};
h.getElementsByTagName=function(a,b){return(b||this.b).getElementsByTagName(a)};
h.qz=function(a,b,c){return zf(this.b,arguments)};
h.createElement=function(a){return this.b.createElement(String(a))};
h.appendChild=Ef;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};
h.removeNode=If;h.contains=Qf;var lg={'"':'\\"',"\\":"\\\\","/":"\\/","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\x0B":"\\u000b"},kg=/\uffff/.test("\uffff")?/[\\\"\x00-\x1f\x7f-\uffff]/g:/[\\\"\x00-\x1f\x7f-\xff]/g;h=mg.prototype;h.cb=function(){return this.right-this.left};
h.getHeight=function(){return this.bottom-this.top};
h.clone=function(){return new mg(this.top,this.right,this.bottom,this.left)};
h.contains=function(a){return this&&a?a instanceof mg?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};
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};
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};
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};
h.scale=function(a,b){var c=ha(b)?b:a;this.left*=a;this.right*=a;this.top*=c;this.bottom*=c;return this};h=ng.prototype;h.clone=function(){return new ng(this.left,this.top,this.width,this.height)};
h.contains=function(a){return a instanceof ff?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};
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};
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};
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};
h.scale=function(a,b){var c=ha(b)?b:a;this.left*=a;this.width*=a;this.top*=c;this.height*=c;return this};z(sg,G);h=sg.prototype;h.subscribe=function(a,b,c){var d=this.g[a];d||(d=this.g[a]=[]);var e=this.yc;this.b[e]=a;this.b[e+1]=b;this.b[e+2]=c;this.yc=e+3;d.push(e);return e};
h.Mc=function(a){var b=this.b[a];if(b){var c=this.g[b];0!=this.A?(this.o.push(a),this.b[a+1]=r):(c&&pb(c,a),delete this.b[a],delete this.b[a+1],delete this.b[a+2])}return!!b};
h.Rb=function(a,b){var c=this.g[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.B)for(e=0;e<c.length;e++){var k=c[e];ug(this.b[k+1],this.b[k+2],d)}else{this.A++;try{for(e=0,f=c.length;e<f;e++)k=c[e],this.b[k+1].apply(this.b[k+2],d)}finally{if(this.A--,0<this.o.length&&0==this.A)for(;c=this.o.pop();)this.Mc(c)}}return 0!=e}return!1};
h.clear=function(a){if(a){var b=this.g[a];b&&(F(b,this.Mc,this),delete this.g[a])}else this.b.length=0,this.g={}};
h.Pb=function(a){if(a){var b=this.g[a];return b?b.length:0}a=0;for(b in this.g)a+=this.Pb(b);return a};
h.T=function(){sg.M.T.call(this);this.clear();this.o.length=0};var wg="StopIteration"in aa?aa.StopIteration:{message:"StopIteration",stack:""};vg.prototype.next=function(){throw wg;};
vg.prototype.qc=function(){return this};h=Ag.prototype;h.Pb=function(){return this.ya};
h.Pa=function(){Dg(this);for(var a=[],b=0;b<this.b.length;b++)a.push(this.g[this.b[b]]);return a};
h.Ua=function(){Dg(this);return this.b.concat()};
h.isEmpty=function(){return 0==this.ya};
h.clear=function(){this.g={};this.af=this.ya=this.b.length=0};
h.remove=function(a){return Bg(this.g,a)?(delete this.g[a],this.ya--,this.af++,this.b.length>2*this.ya&&Dg(this),!0):!1};
h.get=function(a,b){return Bg(this.g,a)?this.g[a]:b};
h.set=function(a,b){Bg(this.g,a)||(this.ya++,this.b.push(a),this.af++);this.g[a]=b};
h.forEach=function(a,b){for(var c=this.Ua(),d=0;d<c.length;d++){var e=c[d],f=this.get(e);a.call(b,f,e,this)}};
h.clone=function(){return new Ag(this)};
h.qc=function(a){Dg(this);var b=0,c=this.af,d=this,e=new vg;e.next=function(){if(c!=d.af)throw Error("The map has changed since the iterator was created");if(b>=d.b.length)throw wg;var e=d.b[b++];return a?e:d.g[e]};
return e};var Ig=/^(?:([^:/?#.]+):)?(?:\/\/(?:([^/?#]*)@)?([^/#?]*?)(?::([0-9]+))?(?=[/#?]|$))?([^?#]+)?(?:\?([^#]*))?(?:#([\s\S]*))?$/,Wg=/#|$/,Zg=/[?&]($|#)/;L.prototype.toString=function(){var a=[],b=this.A;b&&a.push(jh(b,h$,!0),":");var c=this.g;if(c||"file"==b)a.push("//"),(b=this.H)&&a.push(jh(b,h$,!0),"@"),a.push(va(c).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),c=this.D,null!=c&&a.push(":",String(c));if(c=this.o)this.g&&"/"!=c.charAt(0)&&a.push("/"),a.push(jh(c,"/"==c.charAt(0)?Nra:Ora,!0));(c=this.b.toString())&&a.push("?",c);(c=this.F())&&a.push("#",jh(c,Pra));return a.join("")};
L.prototype.clone=function(){return new L(this)};
L.prototype.J=function(){return this.b.toString()};
L.prototype.F=function(){return this.G};
var h$=/[#\/\?@]/g,Ora=/[\#\?:]/g,Nra=/[\#\?]/g,kh=/[\#\?@]/g,Pra=/#/g;h=hh.prototype;h.Pb=function(){th(this);return this.ya};
h.remove=function(a){th(this);a=uh(this,a);return Cg(this.b,a)?(this.g=null,this.ya=this.ya-this.b.get(a).length,this.b.remove(a)):!1};
h.clear=function(){this.b=this.g=null;this.ya=0};
h.isEmpty=function(){th(this);return 0==this.ya};
h.Ua=function(){th(this);for(var a=this.b.Pa(),b=this.b.Ua(),c=[],d=0;d<b.length;d++)for(var e=a[d],f=0;f<e.length;f++)c.push(b[d]);return c};
h.Pa=function(a){th(this);var b=[];if(w(a))vh(this,a)&&(b=rb(b,this.b.get(uh(this,a))));else{a=this.b.Pa();for(var c=0;c<a.length;c++)b=rb(b,a[c])}return b};
h.set=function(a,b){th(this);this.g=null;a=uh(this,a);vh(this,a)&&(this.ya=this.ya-this.b.get(a).length);this.b.set(a,[b]);this.ya=this.ya+1;return this};
h.get=function(a,b){var c=a?this.Pa(a):[];return 0<c.length?String(c[0]):b};
h.toString=function(){if(this.g)return this.g;if(!this.b)return"";for(var a=[],b=this.b.Ua(),c=0;c<b.length;c++)for(var d=b[c],e=va(d),d=this.Pa(d),f=0;f<d.length;f++){var k=e;""!==d[f]&&(k+="="+va(d[f]));a.push(k)}return this.g=a.join("&")};
h.clone=function(){var a=new hh;a.g=this.g;this.b&&(a.b=this.b.clone(),a.ya=this.ya);return a};var xh=void 0;var Rh=Cc?"webkit":Ds?"moz":wf?"ms":Dc?"o":"",i$=q("yt.dom.getNextId_");if(!i$){i$=function(){return++Qra};
g.ba("yt.dom.getNextId_",i$,void 0);var Qra=0};var $h={enablejsapi:1},ai={},bi={allowscriptaccess:"always",allowfullscreen:"true",bgcolor:"#000000"};ci.prototype.clone=function(){var a=new ci,b;for(b in this)if(this.hasOwnProperty(b)){var c=this[b];"object"==da(c)?a[b]=hc(c):a[b]=c}return a};var ki=fi("loadGamesSDK")?"/cast_game_sender.js":"/cast_sender.js",oi=fi("loadCastFramework"),li=["boadgeojelhgndaghljhdicfkmllpafd","dliochdbjfkdbacpmhlcpmleaejidimm","enhhojjnijigcajfphajepfemndkmdlo","fmfcbgogabcbclcofgocippekhfcmgfj"],j$=["pkedcjkdefgpdelpbcmbmeomcjbeemfm","fjhoaacokmgbjemoflkofnenfaiekifl"],ii=ei()?j$.concat(li):li.concat(j$);var yA=uc("Firefox"),IA=wc()||uc("iPod"),HA=uc("iPad"),JA=uc("Android")&&!(vc()||uc("Firefox")||uc("Opera")||uc("Silk")),bm=vc(),Iz=uc("Safari")&&!(vc()||uc("Coast")||uc("Opera")||uc("Edge")||uc("Silk")||uc("Android"))&&!(wc()||uc("iPad")||uc("iPod"));var Ci=C(),ti=null,Ai=Array(50),zi=-1,Bi=!1;var Ni={};var Pi=window.yt&&window.yt.config_||window.ytcfg&&window.ytcfg.data_||{};g.ba("yt.config_",Pi,void 0);g.ba("yt.tokens_",window.yt&&window.yt.tokens_||{},void 0);var Yi=window.yt&&window.yt.msgs_||q("window.ytcfg.msgs")||{};g.ba("yt.msgs_",Yi,void 0);var zq=window.performance&&window.performance.timing&&window.performance.now?function(){return window.performance.timing.navigationStart+window.performance.now()}:function(){return(new Date).getTime()};var Rra=q("yt.pubsub.instance_")||new sg;sg.prototype.subscribe=sg.prototype.subscribe;sg.prototype.unsubscribeByKey=sg.prototype.Mc;sg.prototype.publish=sg.prototype.Rb;sg.prototype.clear=sg.prototype.clear;g.ba("yt.pubsub.instance_",Rra,void 0);var bj=q("yt.pubsub.subscribedKeys_")||{};g.ba("yt.pubsub.subscribedKeys_",bj,void 0);var dj=q("yt.pubsub.topicToKeys_")||{};g.ba("yt.pubsub.topicToKeys_",dj,void 0);var cj=q("yt.pubsub.isSynchronous_")||{};g.ba("yt.pubsub.isSynchronous_",cj,void 0);
var aj=q("yt.pubsub.skipSubId_")||null;g.ba("yt.pubsub.skipSubId_",aj,void 0);var lj=/\.vflset|-vfl[a-zA-Z0-9_+=-]+/,mj=/-[a-zA-Z]{2,3}_[a-zA-Z]{2,3}(?=(\/|$))/;rj.prototype.set=v;rj.prototype.get=v;rj.prototype.remove=v;z(sj,rj);sj.prototype.Pb=function(){var a=0;yg(this.qc(!0),function(){a++});
return a};
sj.prototype.qc=v;sj.prototype.clear=function(){var a=zg(this.qc(!0)),b=this;F(a,function(a){b.remove(a)})};z(tj,sj);h=tj.prototype;h.isAvailable=function(){if(!this.b)return!1;try{return this.b.setItem("__sak","1"),this.b.removeItem("__sak"),!0}catch(a){return!1}};
h.set=function(a,b){try{this.b.setItem(a,b)}catch(c){if(0==this.b.length)throw"Storage mechanism: Storage disabled";throw"Storage mechanism: Quota exceeded";}};
h.get=function(a){a=this.b.getItem(a);if(!w(a)&&null!==a)throw"Storage mechanism: Invalid value was encountered";return a};
h.remove=function(a){this.b.removeItem(a)};
h.Pb=function(){return this.b.length};
h.qc=function(a){var b=0,c=this.b,d=new vg;d.next=function(){if(b>=c.length)throw wg;var d=c.key(b++);if(a)return d;d=c.getItem(d);if(!w(d))throw"Storage mechanism: Invalid value was encountered";return d};
return d};
h.clear=function(){this.b.clear()};
h.key=function(a){return this.b.key(a)};z(uj,tj);z(vj,tj);wj.prototype.set=function(a,b){p(b)?this.b.set(a,gg(b)):this.b.remove(a)};
wj.prototype.get=function(a){var b;try{b=this.b.get(a)}catch(c){return}if(null!==b)try{return bg(b)}catch(c){throw"Storage: Invalid value was encountered";}};
wj.prototype.remove=function(a){this.b.remove(a)};z(xj,wj);xj.prototype.set=function(a,b){xj.M.set.call(this,a,zj(b))};
xj.prototype.g=function(a){a=xj.M.get.call(this,a);if(!p(a)||a instanceof Object)return a;throw"Storage: Invalid value was encountered";};
xj.prototype.get=function(a){if(a=this.g(a)){if(a=a.data,!p(a))throw"Storage: Invalid value was encountered";}else a=void 0;return a};z(Aj,xj);Aj.prototype.set=function(a,b,c){if(b=zj(b)){if(c){if(c<C()){Aj.prototype.remove.call(this,a);return}b.expiration=c}b.creation=C()}Aj.M.set.call(this,a,b)};
Aj.prototype.g=function(a,b){var c=Aj.M.g.call(this,a);if(c)if(!b&&Bj(c))Aj.prototype.remove.call(this,a);else return c};z(Cj,Aj);var Fj,k$=new uj;Fj=k$.isAvailable()?new Cj(k$):null;var Hj,l$=new vj;Hj=l$.isAvailable()?new Cj(l$):null;var Bk={FK:"atp",lP:"ska",JO:"que",XN:"mus",hP:"sus"};var Xj=null;"undefined"!=typeof window.XMLHttpRequest?Xj=function(){return new window.XMLHttpRequest}:"undefined"!=typeof window.ActiveXObject&&(Xj=function(){return new window.ActiveXObject("Microsoft.XMLHTTP")});var ak={"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"};ik.prototype.C=function(a,b,c,d){b?a(d):a({text:c.responseText})};
ik.prototype.B=function(a,b){a(Error("Request error: "+b.status))};
ik.prototype.D=function(a){a(Error("request timed out"))};z(pk,G);pk.prototype.subscribe=function(a,b,c){return this.isDisposed()?0:this.ba.subscribe(a,b,c)};
pk.prototype.Fa=function(a,b,c){return this.isDisposed()?!1:tg(this.ba,a,b,c)};
pk.prototype.Mc=function(a){return this.isDisposed()?!1:this.ba.Mc(a)};
pk.prototype.X=function(a,b){return this.isDisposed()?!1:this.ba.Rb.apply(this.ba,arguments)};z(qk,pk);h=qk.prototype;h.Fc=function(){return this.screens};
h.contains=function(a){return!!nk(this.screens,a)};
h.get=function(a){return a?ok(this.screens,a):null};
h.start=v;h.Rh=v;h.remove=v;h.Nh=v;h.info=function(a){yi(this.C,a)};z(uk,pk);var m$=[2E3,2E3,1E3,1E3,1E3,2E3,2E3,5E3,5E3,1E4];h=uk.prototype;h.start=function(){!this.b&&(0,window.isNaN)(this.g)&&this.uu()};
h.stop=function(){this.b&&(this.b.abort(),this.b=null);(0,window.isNaN)(this.g)||(Vi(this.g),this.g=window.NaN)};
h.T=function(){this.stop();uk.M.T.call(this)};
h.uu=function(){this.g=window.NaN;this.b=bk(jk(this.D,"/pairing/get_screen"),{method:"POST",Sb:{pairing_code:this.C},timeout:5E3,rb:x(this.TG,this),onError:x(this.SG,this),Kc:x(this.UG,this)})};
h.TG=function(a,b){this.b=null;var c=b.screen||{};c.dialId=this.A;c.name=this.B;this.X("pairingComplete",new Di(c))};
h.SG=function(a){this.b=null;a.status&&404==a.status?this.o>=m$.length?this.X("pairingFailed",Error("DIAL polling timed out")):(a=m$[this.o],this.g=Ti(x(this.uu,this),a),this.o++):this.X("pairingFailed",Error("Server error "+a.status))};
h.UG=function(){this.b=null;this.X("pairingFailed",Error("Server not responding"))};z(vk,sj);vk.prototype.set=function(a,b){this.g.set(this.b+a,b)};
vk.prototype.get=function(a){return this.g.get(this.b+a)};
vk.prototype.remove=function(a){this.g.remove(this.b+a)};
vk.prototype.qc=function(a){var b=this.g.qc(!0),c=this,d=new vg;d.next=function(){for(var d=b.next();d.substr(0,c.b.length)!=c.b;)d=b.next();return a?d.substr(c.b.length):c.g.get(d)};
return d};h=yk.prototype;h.Pb=function(){return this.b.Pb()};
h.remove=function(a){return this.b.remove(zk(a))};
h.clear=function(){this.b.clear()};
h.isEmpty=function(){return this.b.isEmpty()};
h.contains=function(a){return Cg(this.b,zk(a))};
h.Pa=function(){return this.b.Pa()};
h.clone=function(){return new yk(this)};
h.qc=function(){return this.b.qc(!1)};var Sra={},Ek=/\s*;\s*/;h=Dk.prototype;h.isEnabled=function(){return window.navigator.cookieEnabled};
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+'"');p(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(C()+1E3*c)).toUTCString();this.b.cookie=a+"="+b+e+d+c+f};
h.get=function(a,b){for(var c=a+"=",d=(this.b.cookie||"").split(Ek),e=0,f;f=d[e];e++){if(0==f.lastIndexOf(c,0))return f.substr(c.length);if(f==a)return""}return b};
h.remove=function(a,b,c){var d=p(this.get(a));this.set(a,"",0,b,c);return d};
h.Ua=function(){return Hk(this).keys};
h.Pa=function(){return Hk(this).values};
h.isEmpty=function(){return!this.b.cookie};
h.Pb=function(){return this.b.cookie?(this.b.cookie||"").split(Ek).length:0};
h.clear=function(){for(var a=Hk(this).keys,b=a.length-1;0<=b;b--)this.remove(a[b])};
var Mk=new Dk("undefined"==typeof window.document?null:window.document);Mk.g=3950;var Xk,Pk="";z($k,qk);h=$k.prototype;h.start=function(){Zk(this)&&this.X("screenChange");!Jj("yt-remote-lounge-token-expiration")&&al(this);Vi(this.b);this.b=Ti(x(this.start,this),1E4)};
h.Rh=function(a,b){Zk(this);rk(this,a);bl(this,!1);this.X("screenChange");b(a);a.token||al(this)};
h.remove=function(a,b){var c=Zk(this);tk(this,a)&&(bl(this,!1),c=!0);b(a);c&&this.X("screenChange")};
h.Nh=function(a,b,c,d){var e=Zk(this),f=this.get(a.id);f?(f.name!=b&&(f.name=b,bl(this,!1),e=!0),c(a)):d(Error("no such local screen."));e&&this.X("screenChange")};
h.T=function(){Vi(this.b);$k.M.T.call(this)};
h.Cz=function(a){Zk(this);var b=this.screens.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)}bl(this,!b);b&&yi(this.C,"Missed "+b+" lounge tokens.")};
h.Bz=function(a){yi(this.C,"Requesting lounge tokens failed: "+a)};z(dl,pk);h=dl.prototype;h.start=function(){var a=(0,window.parseInt)(Jj("yt-remote-fast-check-period")||"0",10);(this.A=C()-144E5<a?0:a)?hl(this):(this.A=C()+3E5,Ij("yt-remote-fast-check-period",this.A),this.Wm())};
h.isEmpty=function(){return cc(this.b)};
h.update=function(){cl("Updating availability on schedule.");var a=this.C(),b=Qb(this.b,function(b,d){return b&&!!ok(a,d)},this);
gl(this,b)};
h.T=function(){Vi(this.o);this.o=window.NaN;this.g&&(this.g.abort(),this.g=null);dl.M.T.call(this)};
h.Wm=function(){Vi(this.o);this.o=window.NaN;this.g&&this.g.abort();var a=il(this);if(Ub(a)){var b=jk(this.B,"/pairing/get_screen_availability");this.g=kk(this.B,b,{lounge_token:Yb(a).join(",")},x(this.DE,this,a),x(this.CE,this))}else gl(this,{}),hl(this)};
h.DE=function(a,b){this.g=null;var c=Yb(il(this));if(Gb(c,Yb(a))){for(var c=b.screens||[],d={},e=0,f=c.length;e<f;++e)d[a[c[e].loungeToken]]="online"==c[e].status;gl(this,d);hl(this)}else this.ob("Changing Screen set during request."),this.Wm()};
h.CE=function(a){this.ob("Screen availability failed: "+a);this.g=null;hl(this)};
h.ob=function(a){yi("OnlineScreenService",a)};z(kl,qk);h=kl.prototype;h.start=function(){this.g.start();this.b.start();this.screens.length&&(this.X("screenChange"),this.b.isEmpty()||this.X("onlineScreenChange"))};
h.Rh=function(a,b,c){this.g.Rh(a,b,c)};
h.remove=function(a,b,c){this.g.remove(a,b,c);this.b.update()};
h.Nh=function(a,b,c,d){this.g.contains(a)?this.g.Nh(a,b,c,d):(a="Updating name of unknown screen: "+a.name,yi(this.C,a),d(Error(a)))};
h.Fc=function(a){return a?this.screens:rb(this.screens,le(this.o,function(a){return!this.contains(a)},this))};
h.vu=function(){return le(this.Fc(!0),function(a){return!!this.b.b[a.id]},this)};
h.wu=function(a,b,c,d,e){this.info("getDialScreenByPairingCode "+a+" / "+b);var f=new uk(this.B,a,b,c);f.subscribe("pairingComplete",x(function(a){Nb(f);d(ll(this,a))},this));
f.subscribe("pairingFailed",function(a){Nb(f);e(a)});
f.start();return x(f.stop,f)};
h.WG=function(a,b,c,d){bk(jk(this.B,"/pairing/get_screen"),{method:"POST",Sb:{pairing_code:a},timeout:5E3,rb:x(function(a,d){var k=new Di(d.screen||{});if(!k.name||ol(this,k.name)){var l;a:{l=k.name;for(var m=2,n=b(l,m);ol(this,n);){m++;if(20<m)break a;n=b(l,m)}l=n}k.name=l}c(ll(this,k))},this),
onError:x(function(a){d(Error("pairing request failed: "+a.status))},this),
Kc:x(function(){d(Error("pairing request timed out."))},this)})};
h.T=function(){Nb(this.g);Nb(this.b);kl.M.T.call(this)};
h.Vz=function(){pl(this);this.X("screenChange");this.b.update()};
kl.prototype.dispose=kl.prototype.dispose;z(rl,pk);h=rl.prototype;h.Aj=function(a){this.o=a;this.X("sessionScreen",this.o)};
h.Jc=function(a){this.isDisposed()||(a&&sl(this,""+a),this.o=null,this.X("sessionScreen",null))};
h.info=function(a){yi(this.K,a)};
h.If=v;h.Lj=v;h.yu=function(){return null};
h.stop=v;h.gn=function(a){var b=this.g;a?(b.displayStatus=new window.chrome.cast.ReceiverDisplayStatus(a,[]),b.displayStatus.showStop=!0):b.displayStatus=null;window.chrome.cast.setReceiverDisplayStatus(b,x(function(){this.info("Updated receiver status for "+b.friendlyName+": "+a)},this),x(function(){sl(this,"Failed to update receiver status for: "+b.friendlyName)},this))};
h.T=function(){this.gn("");rl.M.T.call(this)};z(ul,rl);h=ul.prototype;h.Lj=function(a){if(this.b){if(this.b==a)return;sl(this,"Overriding cast sesison with new session object");this.b.removeUpdateListener(this.C);this.b.removeMessageListener("urn:x-cast:com.google.youtube.mdx",this.B)}this.b=a;this.b.addUpdateListener(this.C);this.b.addMessageListener("urn:x-cast:com.google.youtube.mdx",this.B);vl(this)};
h.If=function(a){this.info("launchWithParams no-op for Cast: "+gg(a))};
h.stop=function(){this.b?this.b.stop(x(function(){this.Jc()},this),x(function(){this.Jc(Error("Failed to stop receiver app."))},this)):this.Jc(Error("Stopping cast device witout session."))};
h.gn=r;h.T=function(){this.info("disposeInternal");Vi(this.A);this.A=0;this.b&&(this.b.removeUpdateListener(this.C),this.b.removeMessageListener("urn:x-cast:com.google.youtube.mdx",this.B));this.b=null;ul.M.T.call(this)};
h.CF=function(a,b){if(!this.isDisposed())if(b){var c=cg(b);if(c){var d=""+c.type,c=c.data||{};this.info("onYoutubeMessage_: "+d+" "+gg(c));switch(d){case "mdxSessionStatus":tl(this,c.screenId);break;default:sl(this,"Unknown youtube message: "+d)}}else sl(this,"Unable to parse message.")}else sl(this,"No data in message.")};
h.fq=function(a,b,c,d){nl(this.G,this.g.label,a,this.g.friendlyName,x(function(e){e?b(e):0<=d?(sl(this,"Screen "+a+" appears to be offline. "+d+" retries left."),Ti(x(this.fq,this,a,b,c,d-1),300)):c(Error("Unable to fetch screen."))},this),c)};
h.yu=function(){return this.b};
h.XG=function(a){this.isDisposed()||a||(sl(this,"Cast session died."),this.Jc())};z(wl,rl);h=wl.prototype;h.Lj=function(a){this.A=a;this.A.addUpdateListener(this.J)};
h.If=function(a){this.B=a;this.D()};
h.stop=function(){this.b();this.b=r;Vi(this.C);this.A?this.A.stop(x(this.Jc,this,null),x(this.Jc,this,"Failed to stop DIAL device.")):this.Jc()};
h.T=function(){this.b();this.b=r;Vi(this.C);this.A&&this.A.removeUpdateListener(this.J);this.A=null;wl.M.T.call(this)};
h.$G=function(a){this.isDisposed()||a||(sl(this,"DIAL session died."),this.b(),this.b=r,this.Jc())};
h.ym=function(a){this.H=lk();if(this.B){var b=new window.chrome.cast.DialLaunchResponse(!0,yl(this));a(b);xl(this)}else this.D=x(function(){Vi(this.C);this.D=r;this.C=window.NaN;var b=new window.chrome.cast.DialLaunchResponse(!0,yl(this));a(b);xl(this)},this),this.C=Ti(x(function(){this.D()},this),100)};
h.pB=function(a,b){nl(this.G,this.F.receiver.label,a,this.g.friendlyName,x(function(a){a&&a.token?(this.Aj(a),b(new window.chrome.cast.DialLaunchResponse(!1))):this.ym(b)},this),x(function(a){sl(this,"Failed to get DIAL screen: "+a);
this.ym(b)},this))};z(zl,rl);zl.prototype.stop=function(){this.Jc()};
zl.prototype.Lj=r;zl.prototype.If=function(){Vi(this.b);this.b=window.NaN;var a=ok(this.G.Fc(),this.g.label);a?this.Aj(a):this.Jc(Error("No such screen"))};
zl.prototype.T=function(){Vi(this.b);this.b=window.NaN;zl.M.T.call(this)};z(Al,pk);h=Al.prototype;
h.init=function(a,b){window.chrome.cast.timeout.requestSession=3E4;var c=new window.chrome.cast.SessionRequest("233637DE");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,x(this.Bs,this),x(this.uE,this),d,e);c.customDialLaunchCallback=x(this.PC,this);window.chrome.cast.initialize(c,x(function(){this.isDisposed()||
(window.chrome.cast.addReceiverActionListener(this.A),vi(),this.g.subscribe("onlineScreenChange",x(this.xu,this)),this.o=Fl(this),window.chrome.cast.setCustomReceivers(this.o,r,x(function(a){this.ob("Failed to set initial custom receivers: "+gg(a))},this)),this.X("yt-remote-cast2-availability-change",Dl(this)),b(!0))},this),x(function(a){this.ob("Failed to initialize API: "+gg(a));
b(!1)},this))};
h.kG=function(a,b){Cl("Setting connected screen ID: "+a+" -> "+b);if(this.b){var c=this.b.o;if(!a||c&&c.id!=a)Cl("Unsetting old screen status: "+this.b.g.friendlyName),Nb(this.b),this.b=null}if(a&&b){if(!this.b){c=ok(this.g.Fc(),a);if(!c){Cl("setConnectedScreenStatus: Unknown screen.");return}var d=Bl(this,c);d||(Cl("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.o.push(d),
window.chrome.cast.setCustomReceivers(this.o,r,x(function(a){this.ob("Failed to set initial custom receivers: "+gg(a))},this)));
Cl("setConnectedScreenStatus: new active receiver: "+d.friendlyName);El(this,new zl(this.g,d),!0)}this.b.gn(b)}else Cl("setConnectedScreenStatus: no screen.")};
h.lG=function(a){this.isDisposed()?this.ob("Setting connection data on disposed cast v2"):this.b?this.b.If(a):this.ob("Setting connection data without a session")};
h.ZG=function(){this.isDisposed()?this.ob("Stopping session on disposed cast v2"):this.b?(this.b.stop(),Nb(this.b),this.b=null):Cl("Stopping non-existing session")};
h.requestSession=function(){window.chrome.cast.requestSession(x(this.Bs,this),x(this.HE,this))};
h.T=function(){this.g.Fa("onlineScreenChange",x(this.xu,this));window.chrome&&window.chrome.cast&&window.chrome.cast.removeReceiverActionListener(this.A);var a=ri,b=q("yt.mdx.remote.debug.handlers_");pb(b||[],a);Nb(this.b);Al.M.T.call(this)};
h.ob=function(a){yi("Controller",a)};
h.Cs=function(a,b){this.b==a&&(b||El(this,null),this.X("yt-remote-cast2-session-change",b))};
h.sE=function(a,b){if(!this.isDisposed())if(a)switch(Cl("onReceiverAction_ "+a.label+" / "+a.friendlyName+"-- "+b),b){case window.chrome.cast.ReceiverAction.CAST:if(this.b)if(this.b.g.label!=a.label)Cl("onReceiverAction_: Stopping active receiver: "+this.b.g.friendlyName),this.b.stop();else{Cl("onReceiverAction_: Casting to active receiver.");this.b.o&&this.X("yt-remote-cast2-session-change",this.b.o);break}switch(a.receiverType){case window.chrome.cast.ReceiverType.CUSTOM:El(this,new zl(this.g,a));
break;case window.chrome.cast.ReceiverType.DIAL:El(this,new wl(this.g,a));break;case window.chrome.cast.ReceiverType.CAST:El(this,new ul(this.g,a));break;default:this.ob("Unknown receiver type: "+a.receiverType)}break;case window.chrome.cast.ReceiverAction.STOP:this.b&&this.b.g.label==a.label?this.b.stop():this.ob("Stopping receiver w/o session: "+a.friendlyName)}else this.ob("onReceiverAction_ called without receiver.")};
h.PC=function(a){if(this.isDisposed())return window.Promise.reject(Error("disposed"));var b=a.receiver;b.receiverType!=window.chrome.cast.ReceiverType.DIAL&&(this.ob("Not DIAL receiver: "+b.friendlyName),b.receiverType=window.chrome.cast.ReceiverType.DIAL);var c=this.b?this.b.g:null;if(!c||c.label!=b.label)return this.ob("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.b.o)return Cl("Reselecting dial screen."),
this.X("yt-remote-cast2-session-change",this.b.o),window.Promise.resolve(new window.chrome.cast.DialLaunchResponse(!1));this.ob('Changing CAST intent from "'+c.receiverType+'" to "dial" for '+b.friendlyName);El(this,new wl(this.g,b))}b=this.b;b.F=a;return b.F.appState==window.chrome.cast.DialAppState.RUNNING?new window.Promise(x(b.pB,b,(b.F.extraData||{}).screenId||null)):new window.Promise(x(b.ym,b))};
h.Bs=function(a){if(!this.isDisposed()){Cl("New cast session ID: "+a.sessionId);var b=a.receiver;if(b.receiverType!=window.chrome.cast.ReceiverType.CUSTOM){if(!this.b)if(b.receiverType==window.chrome.cast.ReceiverType.CAST)Cl("Got resumed cast session before resumed mdx connection."),El(this,new ul(this.g,b),!0);else{this.ob("Got non-cast session without previous mdx receiver event, or mdx resume.");return}var c=this.b.g,d=ok(this.g.Fc(),c.label);d&&Ei(d,b.label)&&c.receiverType!=window.chrome.cast.ReceiverType.CAST&&
b.receiverType==window.chrome.cast.ReceiverType.CAST&&(Cl("onSessionEstablished_: manual to cast session change "+b.friendlyName),Nb(this.b),this.b=new ul(this.g,b),this.b.subscribe("sessionScreen",x(this.Cs,this,this.b)),this.b.If(null));this.b.Lj(a)}}};
h.YG=function(){return this.b?this.b.yu():null};
h.HE=function(a){this.isDisposed()||(this.ob("Failed to estabilish a session: "+gg(a)),a.code!=window.chrome.cast.ErrorCode.CANCEL&&El(this,null))};
h.uE=function(a){Cl("Receiver availability updated: "+a);if(!this.isDisposed()){var b=Dl(this);this.B=a==window.chrome.cast.ReceiverAvailability.AVAILABLE;Dl(this)!=b&&this.X("yt-remote-cast2-availability-change",Dl(this))}};
h.xu=function(){if(!this.isDisposed()){var a=Dl(this);this.o=Fl(this);Cl("Updating custom receivers: "+gg(this.o));window.chrome.cast.setCustomReceivers(this.o,r,x(function(){this.ob("Failed to set custom receivers.")},this));
var b=Dl(this);b!=a&&this.X("yt-remote-cast2-availability-change",b)}};
Al.prototype.setLaunchParams=Al.prototype.lG;Al.prototype.setConnectedScreenStatus=Al.prototype.kG;Al.prototype.stopSession=Al.prototype.ZG;Al.prototype.getCastSession=Al.prototype.YG;Al.prototype.requestSession=Al.prototype.requestSession;Al.prototype.init=Al.prototype.init;Al.prototype.dispose=Al.prototype.dispose;var Ql=null,Sl=[];em.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())};
em.prototype.dr=function(){return this.event?!1===this.event.returnValue:!1};
em.prototype.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())};
em.prototype.stopImmediatePropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopImmediatePropagation&&this.event.stopImmediatePropagation())};
var dm={stopImmediatePropagation:1,stopPropagation:1,preventMouseEvent:1,preventManipulation:1,preventDefault:1,layerX:1,layerY:1,scale:1,rotation:1,webkitMovementX:1,webkitMovementY:1};var gm=q("yt.events.listeners_")||{};g.ba("yt.events.listeners_",gm,void 0);var im=q("yt.events.counter_")||{count:0};g.ba("yt.events.counter_",im,void 0);new wm;wm.prototype.set=function(a){this.b=a};
wm.prototype.reset=function(){this.set(C())};
wm.prototype.get=function(){return this.b};xm.prototype.stringify=function(a){return dg(this.g,a)};
xm.prototype.parse=function(a){return this.b(a)};h=ym.prototype;h.get=function(a){a=zm(this,a);return this.b[a]};
h.set=function(a,b){a=zm(this,a);this.b[a]=b};
h.Pb=function(){return this.b.length};
h.isEmpty=function(){return 0==this.b.length};
h.clear=function(){this.g=this.b.length=0};
h.Pa=function(){for(var a=this.Pb(),b=this.Pb(),c=[],a=this.Pb()-a;a<b;a++)c.push(this.get(a));return c};
h.Ua=function(){for(var a=[],b=this.Pb(),c=0;c<b;c++)a[c]=c;return a};z(Am,G);h=Am.prototype;h.Mg=!1;h.Bh=0;h.Af=null;h.pg=function(a){this.b=arguments;this.Af||this.Bh?this.Mg=!0:Bm(this)};
h.stop=function(){this.Af&&(fe(this.Af),this.Af=null,this.Mg=!1,this.b=[])};
h.pause=function(){this.Bh++};
h.resume=function(){this.Bh--;this.Bh||!this.Mg||this.Af||(this.Mg=!1,Bm(this))};
h.T=function(){Am.M.T.call(this);this.stop()};
h.TE=function(){this.Af=null;this.Mg&&!this.Bh&&(this.Mg=!1,Bm(this))};z(Cm,G);var Fm=[];Cm.prototype.O=function(a,b,c,d){return Dm(this,a,b,c,d)};
Cm.prototype.sa=function(a,b,c,d,e){if(ea(b))for(var f=0;f<b.length;f++)this.sa(a,b[f],c,d,e);else c=c||this.handleEvent,e=e||this.A||this,c=Tc(c),d=!!d,b=Hc(a)?Rc(a.jd,String(b),c,d,e):a?(a=Vc(a))?Rc(a,b,c,d,e):null:null,b&&(dd(b),delete this.g[b.key]);return this};
Cm.prototype.T=function(){Cm.M.T.call(this);Jm(this)};
Cm.prototype.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented");};Lm.prototype.g=null;Lm.prototype.b=v;Lm.prototype.A=v;var n$;z(Nm,Lm);Nm.prototype.b=function(){var a=Om(this);return a?new window.ActiveXObject(a):new window.XMLHttpRequest};
Nm.prototype.A=function(){var a={};Om(this)&&(a[0]=!0,a[1]=!0);return a};
n$=new Nm;h=Pm.prototype;h.Bf=null;h.wd=!1;h.Qg=null;h.An=null;h.Dh=null;h.qg=null;h.Qe=null;h.We=null;h.Jf=null;h.Wb=null;h.Ph=0;h.xd=null;h.Wj=null;h.Cf=null;h.qh=-1;h.ut=!0;h.rf=!1;h.Tl=0;h.Ej=null;var Xm={},Vm={};h=Pm.prototype;h.setTimeout=function(a){this.B=a};
h.RF=function(a){a=a.target;var b=this.Ej;b&&3==zn(a)?b.pg():this.mu(a)};
h.mu=function(a){try{if(a==this.Wb)a:{var b=zn(this.Wb),c=this.Wb.g,d=this.Wb.getStatus();if(wf&&!Bc(10)||Cc&&!zc("420+")){if(4>b)break a}else if(3>b||3==b&&!Dc&&!Dn(this.Wb))break a;this.rf||4!=b||7==c||(8==c||0>=d?this.b.td(3):this.b.td(2));gn(this);var e=this.Wb.getStatus();this.qh=e;var f=Dn(this.Wb);(this.wd=200==e)?(4==b&&Zm(this),this.C?(an(this,b,f),Dc&&this.wd&&3==b&&(this.A.O(this.g,"tick",this.JF),this.g.start())):Ym(this,f),this.wd&&!this.rf&&(4==b?this.b.zj(this):(this.wd=!1,Tm(this)))):
(this.Cf=400==e&&0<f.indexOf("Unknown SID")?3:0,Wm(),Zm(this),$m(this))}}catch(k){}finally{}};
h.JF=function(){var a=zn(this.Wb),b=Dn(this.Wb);this.Ph<b.length&&(gn(this),an(this,a,b),this.wd&&4!=a&&Tm(this))};
h.dF=function(a){fn(x(this.cF,this,a),0)};
h.cF=function(a){this.rf||(gn(this),Ym(this,a),Tm(this))};
h.Is=function(a){fn(x(this.bF,this,a),0)};
h.bF=function(a){this.rf||(Zm(this),this.wd=a,this.b.zj(this),this.b.td(4))};
h.cancel=function(){this.rf=!0;Zm(this)};
h.uF=function(){this.Qg=null;var a=C();0<=a-this.An?(2!=this.qg&&this.b.td(3),Zm(this),this.Cf=2,Wm(),$m(this)):en(this,this.An-a)};h=mn.prototype;h.Ql=null;h.Lc=null;h.Fj=!1;h.mq=null;h.Pi=null;h.Rl=null;h.Sl=null;h.Uc=null;h.ie=-1;h.ph=null;h.gh=null;h.connect=function(a){this.Sl=a;a=nn(this.b,null,this.Sl);Wm();this.mq=C();var b=this.b.F;null!=b?(this.ph=b[0],(this.gh=b[1])?(this.Uc=1,on(this)):(this.Uc=2,qn(this))):(nh(a,"MODE","init"),this.Lc=new Pm(this,0,void 0,void 0,void 0),this.Lc.Bf=this.Ql,Sm(this.Lc,a,!1,null,!0),this.Uc=0)};
h.Iy=function(a){if(a)this.Uc=2,qn(this);else{Wm();var b=this.b;b.ld=b.Le.ie;Yn(b,9)}a&&this.td(2)};
h.ol=function(a){return this.b.ol(a)};
h.lq=function(){return!1};
h.xs=function(a,b){this.ie=a.qh;if(0==this.Uc)if(b){try{var c=this.g.parse(b)}catch(d){c=this.b;c.ld=this.ie;Yn(c,2);return}this.ph=c[0];this.gh=c[1]}else c=this.b,c.ld=this.ie,Yn(c,2);else if(2==this.Uc)if(this.Fj)Wm(),this.Rl=C();else if("11111"==b){if(Wm(),this.Fj=!0,this.Pi=C(),c=this.Pi-this.mq,!wf||Bc(10)||500>c)this.ie=200,this.Lc.cancel(),Wm(),pn(this.b,this,!0)}else Wm(),this.Pi=this.Rl=C(),this.Fj=!1};
h.zj=function(){this.ie=this.Lc.qh;if(this.Lc.wd)0==this.Uc?this.gh?(this.Uc=1,on(this)):(this.Uc=2,qn(this)):2==this.Uc&&((!wf||Bc(10)?!this.Fj:200>this.Rl-this.Pi)?(Wm(),pn(this.b,this,!1)):(Wm(),pn(this.b,this,!0)));else{0==this.Uc?Wm():2==this.Uc&&Wm();var a=this.b;a.ld=this.ie;Yn(a,2)}};
h.Ih=function(){return this.b.Ih()};
h.isActive=function(){return this.b.isActive()};
h.td=function(a){this.b.td(a)};z(rn,id);var An=/^https?$/i,Tra=["POST","PUT"];h=rn.prototype;
h.send=function(a,b,c,d){if(this.b)throw Error("[goog.net.XhrIo] Object is active with another request="+this.N+"; newUri="+a);b=b?b.toUpperCase():"GET";this.N=a;this.C="";this.g=0;this.K=!1;this.o=!0;this.b=this.J?this.J.b():n$.b();this.H=this.J?Mm(this.J):Mm(n$);this.b.onreadystatechange=x(this.nq,this);try{this.getStatus(),this.L=!0,this.b.open(b,String(a),!0),this.L=!1}catch(f){this.getStatus();xn(this,f);return}a=c||"";var e=this.headers.clone();d&&Gg(d,function(a,b){e.set(b,a)});
d=cb(e.Ua(),un);c=aa.FormData&&a instanceof aa.FormData;!gb(Tra,b)||d||c||e.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");e.forEach(function(a,b){this.b.setRequestHeader(b,a)},this);
this.aa&&(this.b.responseType=this.aa);"withCredentials"in this.b&&this.b.withCredentials!==this.G&&(this.b.withCredentials=this.G);try{Cn(this),0<this.B&&(this.R=tn(this.b),this.getStatus(),this.R?(this.b.timeout=this.B,this.b.ontimeout=x(this.oq,this)):this.D=ee(this.oq,this.B,this)),this.getStatus(),this.F=!0,this.b.send(a),this.F=!1}catch(f){this.getStatus(),xn(this,f)}};
h.oq=function(){"undefined"!=typeof yn&&this.b&&(this.C="Timed out after "+this.B+"ms, aborting",this.g=8,this.getStatus(),this.dispatchEvent("timeout"),hn(this,8))};
h.T=function(){this.b&&(this.o&&(this.o=!1,this.A=!0,this.b.abort(),this.A=!1),wn(this,!0));rn.M.T.call(this)};
h.nq=function(){this.isDisposed()||(this.L||this.F||this.A?Bn(this):this.rE())};
h.rE=function(){Bn(this)};
h.isActive=function(){return!!this.b};
h.getStatus=function(){try{return 2<zn(this)?this.b.status:-1}catch(a){return-1}};h=En.prototype;h.mh=null;h.wc=null;h.Ab=null;h.Pl=null;h.Ri=null;h.np=null;h.$i=null;h.xh=0;h.KB=0;h.Zb=null;h.Me=null;h.ee=null;h.uf=null;h.Le=null;h.Vj=null;h.yg=-1;h.nr=-1;h.ld=-1;h.nh=0;h.Yf=0;h.tf=8;var Zn=new id;z(Gn,mc);z(Hn,mc);z(In,mc);h=En.prototype;h.connect=function(a,b,c,d,e){Wm();this.Pl=b;this.mh=c||{};d&&p(e)&&(this.mh.OSID=d,this.mh.OAID=e);this.Le=new mn(this);this.Le.Ql=null;this.Le.g=this.B;this.Le.connect(a)};
h.lq=function(){return 0==this.b};
h.Fs=function(a){this.Me=null;Tn(this,a)};
h.Es=function(){this.ee=null;this.Ab=new Pm(this,0,this.o,"rpc",this.C);this.Ab.Bf=null;this.Ab.Tl=0;var a=this.np.clone();lh(a,"RID","rpc");lh(a,"SID",this.o);lh(a,"CI",this.Vj?"0":"1");lh(a,"AID",this.yg);Kn(this,a);if(!wf||Bc(10))lh(a,"TYPE","xmlhttp"),Sm(this.Ab,a,!0,this.$i,!1);else{lh(a,"TYPE","html");var b=this.Ab,c=!!this.$i;b.qg=3;b.Qe=oh(a.clone());dn(b,c)}};
h.xs=function(a,b){if(0!=this.b&&(this.Ab==a||this.wc==a))if(this.ld=a.qh,this.wc==a&&3==this.b)if(7<this.tf){var c;try{c=this.B.parse(b)}catch(f){c=null}if(ea(c)&&3==c.length)if(0==c[0])a:{if(!this.ee){if(this.Ab)if(this.Ab.Dh+3E3<this.wc.Dh)On(this),this.Ab.cancel(),this.Ab=null;else break a;Wn(this);Wm()}}else this.nr=c[1],0<this.nr-this.yg&&37500>c[2]&&this.Vj&&0==this.Yf&&!this.uf&&(this.uf=fn(x(this.iC,this),6E3));else Yn(this,11)}else b!=Sra.CL.b&&Yn(this,11);else if(this.Ab==a&&On(this),!A(b)){c=
this.B.parse(b);ea(c);for(var d=0;d<c.length;d++){var e=c[d];this.yg=e[0];e=e[1];2==this.b?"c"==e[0]?(this.o=e[1],this.$i=e[2],e=e[3],null!=e?this.tf=e:this.tf=6,this.b=3,this.Zb&&this.Zb.zp(this),this.np=nn(this,this.Ih()?this.$i:null,this.Pl),Un(this)):"stop"==e[0]&&Yn(this,7):3==this.b&&("stop"==e[0]?Yn(this,7):"noop"!=e[0]&&this.Zb&&this.Zb.yp(this,e),this.Yf=0)}}};
h.iC=function(){null!=this.uf&&(this.uf=null,this.Ab.cancel(),this.Ab=null,Wn(this),Wm())};
h.zj=function(a){var b;if(this.Ab==a)On(this),this.Ab=null,b=2;else if(this.wc==a)this.wc=null,b=1;else return;this.ld=a.qh;if(0!=this.b)if(a.wd)1==b?(C(),Zn.dispatchEvent(new Hn(Zn,a.Jf?a.Jf.length:0)),Pn(this),this.A.length=0):Un(this);else{var c=a.Cf,d;if(!(d=3==c||7==c||0==c&&0<this.ld)){if(d=1==b)this.wc||this.Me||1==this.b||2<=this.nh?d=!1:(this.Me=fn(x(this.Fs,this,a),Vn(this,this.nh)),this.nh++,d=!0);d=!(d||2==b&&Wn(this))}if(d)switch(c){case 1:Yn(this,5);break;case 4:Yn(this,10);break;case 3:Yn(this,
6);break;case 7:Yn(this,12);break;default:Yn(this,2)}}};
h.bz=function(a){if(!gb(arguments,this.b))throw Error("Unexpected channel state: "+this.b);};
h.vG=function(a){a?Wm():(Wm(),Xn(this,8))};
h.ol=function(a){if(a)throw Error("Can't create secondary domain capable XhrIo object.");a=new rn;a.G=!1;return a};
h.isActive=function(){return!!this.Zb&&this.Zb.isActive(this)};
h.td=function(){Zn.dispatchEvent(new In(Zn))};
h.Ih=function(){return!(!wf||Bc(10))};
h=$n.prototype;h.zp=function(){};
h.yp=function(){};
h.xp=function(){};
h.bl=function(){};
h.Zp=function(){return{}};
h.isActive=function(){return!0};z(bo,ce);bo.prototype.C=function(){if(500<this.b){var a=this.b;24E4>2*a&&(a*=2);de(this,a)}this.D()};
bo.prototype.start=function(){bo.M.start.call(this);this.B=C()+this.b};
bo.prototype.stop=function(){this.B=0;bo.M.stop.call(this)};z(co,$n);h=co.prototype;h.subscribe=function(a,b,c){return this.o.subscribe(a,b,c)};
h.Fa=function(a,b,c){return tg(this.o,a,b,c)};
h.Mc=function(a){return this.o.Mc(a)};
h.X=function(a,b){return this.o.Rb.apply(this.o,arguments)};
h.dispose=function(){this.H||(this.H=!0,this.o.clear(),fo(this),Nb(this.o))};
h.isDisposed=function(){return this.H};
h.connect=function(a,b,c){if(!this.b||2!=this.b.b){this.G="";this.g.stop();this.B=a||null;this.A=b||0;a=this.J+"/test";b=this.J+"/bind";var d=new En("1",c?c.firstTestResults:null,c?c.secondTestResults:null),e=this.b;e&&(e.Zb=null);d.Zb=this;this.b=d;e?this.b.connect(a,b,this.C,e.o,e.yg):c?this.b.connect(a,b,this.C,c.sessionId,c.arrayId):this.b.connect(a,b,this.C)}};
h.sendMessage=function(a,b){var c={_sc:a};b&&kc(c,b);this.g.enabled||2==(this.b?this.b.b:0)?this.D.push(c):go(this)&&Qn(this.b,c)};
h.zp=function(){ao(this.g);this.B=null;this.A=0;if(this.D.length){var a=this.D;this.D=[];for(var b=0,c=a.length;b<c;++b)Qn(this.b,a[b])}this.X("handlerOpened")};
h.xp=function(a,b){var c=2==b&&401==this.b.ld;if(4!=b&&!c){if(6==b||410==this.b.ld)c=this.g,c.stop(),de(c,500);this.g.start()}this.X("handlerError",b)};
h.bl=function(a,b,c){if(!this.g.enabled)this.X("handlerClosed");else if(c)for(a=0,b=c.length;a<b;++a){var d=c[a].map;d&&this.D.push(d)}};
h.Zp=function(){var a={v:2};this.G&&(a.gsessionid=this.G);0!=this.A&&(a.ui=""+this.A);0!=this.F&&(a.ui=""+this.F);this.B&&kc(a,this.B);return a};
h.yp=function(a,b){"S"==b[0]?this.G=b[1]:"gracefulReconnect"==b[0]?(ao(this.g),this.g.start(),Mn(this.b)):this.X("handlerMessage",new vm(b[0],b[1]))};
h.RG=function(){this.g.stop();var a=this.b,b=0;a.Ab&&b++;a.wc&&b++;0!=b?this.g.start():this.connect(this.B,this.A)};h=io.prototype;h.Pb=function(){return this.b.length+this.g.length};
h.isEmpty=function(){return ib(this.b)&&ib(this.g)};
h.clear=function(){this.b=[];this.g=[]};
h.contains=function(a){return gb(this.b,a)||gb(this.g,a)};
h.remove=function(a){var b;b=this.b;var c=Jra(b,a);0<=c?(ob(b,c),b=!0):b=!1;return b||pb(this.g,a)};
h.Pa=function(){for(var a=[],b=this.b.length-1;0<=b;--b)a.push(this.b[b]);for(var c=this.g.length,b=0;b<c;++b)a.push(this.g[b]);return a};no.prototype.reset=function(a){this.listId="";po(this);this.volume=-1;this.muted=!1;a&&(this.index=a.index,this.listId=a.listId,this.videoId=a.videoId,this.b=a.playerState,this.volume=a.volume,this.muted=a.muted,this.audioTrackId=a.audioTrackId,this.g=a.trackData,this.o=a.playerTime,this.A=a.playerTimeAt)};
no.prototype.Za=function(){return 1==this.b};
no.prototype.clone=function(){return new no(to(this))};z(wo,pk);h=wo.prototype;h.play=function(){1==this.g?(this.b?this.b.play(null,r,x(function(){this.ob("Failed to play video with cast v2 channel.");yo(this,"play")},this)):yo(this,"play"),Do(this,1,ro(xo(this))),Eo(this)):Co(this,this.play)};
h.pause=function(){1==this.g?(this.b?this.b.pause(null,r,x(function(){this.ob("Failed to pause video with cast v2 channel.");yo(this,"pause")},this)):yo(this,"pause"),Do(this,2,ro(xo(this))),Eo(this)):Co(this,this.pause)};
h.seekTo=function(a){if(1==this.g){if(this.b){var b=xo(this),c=new window.chrome.cast.media.SeekRequest;c.currentTime=a;b.Za()||3==b.b?c.resumeState=window.chrome.cast.media.ResumeState.PLAYBACK_START:c.resumeState=window.chrome.cast.media.ResumeState.PLAYBACK_PAUSE;this.b.seek(c,r,x(function(){this.ob("Failed to seek in video with cast v2 channel.");yo(this,"seekTo",{newTime:a})},this))}else yo(this,"seekTo",{newTime:a});
Do(this,3,a);Eo(this)}else Co(this,qa(this.seekTo,a))};
h.stop=function(){if(1==this.g){this.b?this.b.stop(null,r,x(function(){this.ob("Failed to stop video with cast v2 channel.");yo(this,"stopVideo")},this)):yo(this,"stopVideo");
var a=xo(this);po(a);zo(this,a);Eo(this)}else Co(this,this.stop)};
h.setVolume=function(a,b){if(1==this.g){var c=xo(this);if(this.o){if(c.volume!=a){var d=Math.round(a)/100;this.o.setReceiverVolumeLevel(d,x(function(){Fo("set receiver volume: "+d)},this),x(function(){this.ob("failed to set receiver volume.")},this))}c.muted!=b&&this.o.setReceiverMuted(b,x(function(){Fo("set receiver muted: "+b)},this),x(function(){this.ob("failed to set receiver muted.")},this))}else{var e={volume:a,
muted:b};-1!=c.volume&&(e.delta=a-c.volume);yo(this,"setVolume",e)}c.muted=b;c.volume=a;zo(this,c)}else Co(this,qa(this.setVolume,a,b))};
h.hn=function(a,b){if(1==this.g){var c=xo(this);if(b){c.g={trackName:b.name,languageCode:b.languageCode,sourceLanguageCode:b.translationLanguage?b.translationLanguage.languageCode:"",languageName:b.languageName,format:b.format,kind:b.kind};var d={videoId:a,style:gg(b.style)};kc(d,c.g);yo(this,"setSubtitlesTrack",d)}else d={videoId:a},yo(this,"setSubtitlesTrack",d);zo(this,c)}else Co(this,qa(this.hn,a,b))};
h.tu=function(a,b){if(1==this.g){yo(this,"setAudioTrack",{videoId:a,audioTrackId:b.Vb.id});var c=xo(this);c.audioTrackId=b.Vb.id;zo(this,c)}else Co(this,qa(this.tu,a,b))};
h.dispose=function(){if(3!=this.g){var a=this.g;this.g=3;this.X("proxyStateChange",a,this.g)}wo.M.dispose.call(this)};
h.T=function(){Vi(this.B);this.B=window.NaN;Bo(this);this.A=null;this.C.clear();vo(this,null);wo.M.T.call(this)};
h.Hn=function(a){if((a!=this.g||2==a)&&3!=this.g&&0!=a){var b=this.g;this.g=a;this.X("proxyStateChange",b,a);if(1==a)for(;!this.C.isEmpty();)lo(this.C).apply(this);else 3==a&&this.dispose()}};
h.eE=function(a){("remotePlayerChange"!=a||(0,window.isNaN)(this.B))&&this.X(a)};
h.nC=function(a){if(!a)this.yh(null),vo(this,null);else if(this.o.receiver.volume){a=this.o.receiver.volume;var b=xo(this),c=Math.round(100*a.level||0);if(b.volume!=c||b.muted!=a.muted)Fo("Cast volume update: "+a.level+(a.muted?" muted":"")),b.volume=c,b.muted=!!a.muted,zo(this,b)}};
h.yh=function(a){Fo("Cast media: "+!!a);this.b&&this.b.removeUpdateListener(this.G);if(this.b=a)this.b.addUpdateListener(this.G),Go(this),Eo(this)};
h.mC=function(a){a?(Go(this),Eo(this)):this.yh(null)};
h.ob=function(a){yi("CP",a)};z(Io,pk);h=Io.prototype;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);p(e)&&(k.currentIndex=e);c&&(this.Ta.listId=c);this.Ta.videoId=d;this.Ta.index=e||0;this.Ta.state=3;qo(this.Ta,f);this.D="UNSUPPORTED";Jo("Connecting with setPlaylist and params: "+gg(k));this.b.connect({method:"setPlaylist",params:gg(k)},a,Qk())}else Jo("Connecting without params"),this.b.connect({},a,Qk());Lo(this)};
h.dispose=function(){this.isDisposed()||(this.X("beforeDispose"),Ko(this,3));Io.M.dispose.call(this)};
h.T=function(){Mo(this);Oo(this);No(this);Vi(this.G);this.G=window.NaN;Vi(this.H);this.H=window.NaN;this.o=null;km(this.N);this.N.length=0;this.b.dispose();Io.M.T.call(this);this.D=this.F=this.g=this.Ta=this.b=null};
h.vz=function(){this.B(2)};
h.rC=function(){Jo("Channel opened");this.L&&(this.L=!1,No(this),this.K=Ti(x(function(){Jo("Timing out waiting for a screen.");this.B(1)},this),15E3));
Vk(eo(this.b),this.aa)};
h.oC=function(){Jo("Channel closed");(0,window.isNaN)(this.A)?Wk(!0):Wk();this.dispose()};
h.pC=function(a){Wk();(0,window.isNaN)(this.C())?(Jo("Channel error: "+a+" without reconnection"),this.dispose()):(this.L=!0,Jo("Channel error: "+a+" with reconnection in "+this.C()+" ms"),Ko(this,2))};
h.qC=function(a){a.params?Jo("Received: action="+a.action+", params="+gg(a.params)):Jo("Received: action="+a.action+" {}");switch(a.action){case "loungeStatus":a=bg(a.params.devices);this.g=M(a,function(a){return new Ck(a)});
a=!!cb(this.g,function(a){return"LOUNGE_SCREEN"==a.type});
So(this,a);break;case "loungeScreenConnected":So(this,!0);break;case "loungeScreenDisconnected":qb(this.g,function(a){return"LOUNGE_SCREEN"==a.type});
So(this,!1);break;case "remoteConnected":var b=new Ck(bg(a.params.device));cb(this.g,function(a){return b?a.id==b.id:!1})||nb(this.g,b);
break;case "remoteDisconnected":b=new Ck(bg(a.params.device));qb(this.g,function(a){return b?a.id==b.id:!1});
break;case "gracefulDisconnect":break;case "playlistModified":Uo(this,a);break;case "nowPlaying":Wo(this,a);break;case "onStateChange":Vo(this,a);break;case "onVolumeChanged":Xo(this,a);break;case "onSubtitlesTrackChanged":To(this,a);break;case "nowAutoplaying":this.F=a.params.videoId;break;case "autoplayDismissed":break;case "autoplayUpNext":this.F=a.params.videoId;break;case "onAutoplayModeChanged":this.D=a.params.autoplayMode;break;default:Jo("Unrecognized action: "+a.action)}};
h.ZF=function(){if(this.o){var a=this.o;this.o=null;this.Ta.videoId!=a&&Po(this,"getNowPlaying")}};
Io.prototype.subscribe=Io.prototype.subscribe;Io.prototype.unsubscribeByKey=Io.prototype.Mc;Io.prototype.da=function(){var a=3;this.isDisposed()||(a=0,(0,window.isNaN)(this.C())?go(this.b)&&(0,window.isNaN)(this.A)&&(a=1):a=2);return a};
Io.prototype.getProxyState=Io.prototype.da;Io.prototype.B=function(a){Jo("Disconnecting with "+a);Mo(this);this.X("beforeDisconnect",a);1==a&&Wk();fo(this.b,a);this.dispose()};
Io.prototype.disconnect=Io.prototype.B;Io.prototype.ea=function(){var a=this.Ta;this.o&&(a=this.Ta.clone(),so(a,this.o,a.index));return to(a)};
Io.prototype.getPlayerContextData=Io.prototype.ea;Io.prototype.ha=function(a){var b=new no(a);b.videoId&&b.videoId!=this.Ta.videoId&&(this.o=b.videoId,Vi(this.G),this.G=Ti(x(this.ZF,this),5E3));var c=[];this.Ta.listId==b.listId&&this.Ta.videoId==b.videoId&&this.Ta.index==b.index||c.push("remoteQueueChange");this.Ta.b==b.b&&this.Ta.volume==b.volume&&this.Ta.muted==b.muted&&ro(this.Ta)==ro(b)&&gg(this.Ta.g)==gg(b.g)||c.push("remotePlayerChange");this.Ta.reset(a);F(c,function(a){this.X(a)},this)};
Io.prototype.setPlayerContextData=Io.prototype.ha;Io.prototype.R=function(){var a=this.b.C.id,b=cb(this.g,function(b){return"REMOTE_CONTROL"==b.type&&b.id!=a});
return b?b.id:""};
Io.prototype.getOtherConnectedRemoteId=Io.prototype.R;Io.prototype.C=function(){var a=this.b;return a.g.enabled?a.g.B-C():window.NaN};
Io.prototype.getReconnectTimeout=Io.prototype.C;Io.prototype.$=function(){return this.D||"UNSUPPORTED"};
Io.prototype.getAutoplayMode=Io.prototype.$;Io.prototype.ca=function(){return this.F||""};
Io.prototype.getAutoplayVideoId=Io.prototype.ca;Io.prototype.ma=function(){if(!(0,window.isNaN)(this.C())){var a=this.b.g;a.enabled&&(a.stop(),a.start(),a.C())}};
Io.prototype.reconnect=Io.prototype.ma;Io.prototype.ga=function(a,b){Po(this,a,b);Ro(this)};
Io.prototype.sendMessage=Io.prototype.ga;z(Yo,qk);h=Yo.prototype;h.Fc=function(a){return this.$b.$_gs(a)};
h.contains=function(a){return!!this.$b.$_c(a)};
h.get=function(a){return this.$b.$_g(a)};
h.start=function(){this.$b.$_st()};
h.Rh=function(a,b,c){this.$b.$_a(a,b,c)};
h.remove=function(a,b,c){this.$b.$_r(a,b,c)};
h.Nh=function(a,b,c,d){this.$b.$_un(a,b,c,d)};
h.T=function(){for(var a=0,b=this.b.length;a<b;++a)this.$b.$_ubk(this.b[a]);this.b.length=0;this.$b=null;Yo.M.T.call(this)};
h.VG=function(){this.X("screenChange")};
h.SD=function(){this.X("onlineScreenChange")};
kl.prototype.$_st=kl.prototype.start;kl.prototype.$_gspc=kl.prototype.WG;kl.prototype.$_gsppc=kl.prototype.wu;kl.prototype.$_c=kl.prototype.contains;kl.prototype.$_g=kl.prototype.get;kl.prototype.$_a=kl.prototype.Rh;kl.prototype.$_un=kl.prototype.Nh;kl.prototype.$_r=kl.prototype.remove;kl.prototype.$_gs=kl.prototype.Fc;kl.prototype.$_gos=kl.prototype.vu;kl.prototype.$_s=kl.prototype.subscribe;kl.prototype.$_ubk=kl.prototype.Mc;var Zo=null,$o=null,mp=null,ep=[];var Dp=/^https?:\/\/(([-\w]*www[-\w]*\.|[-\w]*web[-\w]*\.|[-\w]*canary[-\w]*\.|[-\w]*qa[-\w]*\.|[-\w]*dev[-\w]*\.|[-\w]{1,3}\.)+youtube(education|-nocookie)?\.com\/|(m\.)?[a-z0-9\-]{1,63}\.([a-z]{3}|i)\.corp\.google\.com(:[0-9]+)?\/|0\.borg-playground-[a-z0-9\-]+\.youtube-dev\.([a-z]{2}|i)\.borg\.google\.com(:[0-9]+)?\/|m?web-ppg\.corp\.google\.com\/|(?:uytfe\.corp|dev-uytfe\.corp|uytfe\.sandbox)\.google\.com\/|(docs|drive)\.google\.com\/(a\/[^/\\%]+\/|)|play\.google\.com\/|[A-Za-z0-9]+\.prod\.google\.com(:[0-9]+)?\/)/,
IH=/^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]+)?([\/\?\#]|$)/,mca=/^https?:\/\/([A-Za-z0-9-]{1,63}\.)*(corp\.google\.com|borg\.google\.com|prod\.google\.com|sandbox\.google\.com|youtube\.com)(:[0-9]+)?([\/\?\#]|$)/,Uaa=/^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(\/+|\?|#|$)/,
VA=/^((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?:\/\/(s2\.googleusercontent\.com\/s2\/favicons\?|yt[3-4]\.ggpht\.com\/|([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]+)?([\/\?\#]|$))/,
Xp=/^https?.*#ocr$|^https?:\/\/(secure\-..\.imrworldwide\.com\/|cdn\.imrworldwide\.com\/|aksecure\.imrworldwide\.com\/)/,nv=/^https?:\/\/(www\.google\.com\/(aclk|pagead\/conversion)|www\.googleadservices\.com\/(aclk|pagead\/(aclk|conversion))|googleads\.g\.doubleclick\.net\/(aclk|pagead\/conversion)|www\.youtube-nocookie\.com\/api\/ads\/trueview_redirect|www\.googleadservices\.com\/trueview_inred)/,Wp=/^https?:\/\/(www\.google\.com\/pagead\/sul|www\.youtube\.com\/pagead\/sul|www\.youtube\.com\/pagead\/psul)/,
HG=/^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|ed\.video\.google\.com|vp\.video\.l\.google\.com|youtube\.com|youtubeeducation\.com|xfx7\.com)(:[0-9]+)?([\/\?\#]|$)/,FA=/^https?:\/\/(www\.gstatic\.com\/doubleclick\/studio\/innovation\/ytplayer|www\.gstatic\.com\/doubleclick\/studio\/innovation\/h5\/layouts\/tetris|s[01](qa)?\.2mdn\.net\/ads\/richmedia\/studio\/mu\/templates\/tetris|tpc\.googlesyndication\.com\/safeframe\/|lightbox-(demos|builder)\.appspot\.com\/|([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]+)?([\/\?\#]|$))/,
Xaa=/^https?:\/\/(sf\.api\.[a-z0-9\-]+\.km\.playstation\.net\/|([A-Za-z0-9-]{1,63}\.)*(themis\.dl\.playstation\.net)(:[0-9]+)?([\/\?\#]|$))/,Fp=/^https?:\/\/((www\.|encrypted\.)?google(\.com|\.co)?\.[a-z]{2,3}\/(search|webhp)\?|24e12c4a-a-95274a9c-s-sites.googlegroups.com\/a\/google.com\/flash-api-test-harness\/apiharness.swf|www\.gstatic\.com\/doubleclick\/studio\/innovation\/h5\/layouts\/tetris|s[01](qa)?\.2mdn\.net\/ads\/richmedia\/studio\/mu\/templates\/tetris|tpc\.googlesyndication\.com\/safeframe\/|lightbox-(demos|builder)\.appspot\.com\/|([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|talkgadget\.google\.com|survey\.g\.doubleclick\.net|youtube\.com|youtube\.googleapis\.com|youtube-nocookie\.com|youtubeeducation\.com|vevo\.com)(:[0-9]+)?([\/\?\#]|$))/;var Gp=["2mdn.net"];var lA=IA||HA;var $p={},Zp=0;var aq=1;bq.prototype.getId=function(){return this.wa};
bq.prototype.getId=bq.prototype.getId;bq.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)};z(eq,pk);h=eq.prototype;h.vb=function(a,b){for(var c=0;c<a.length;c++)a[c].namespace=this.Ma;this.b.vb(a,b)};
h.create=function(){this.D||(this.Cb(this.b),I(this.b.Da(),this.Ma+"-created"),this.b.addEventListener("crn_"+this.Ma,this.Xd,this),this.b.addEventListener("crx_"+this.Ma,this.pe,this),this.D=!0)};
h.destroy=function(){this.loaded&&this.unload();me(this.b.Da(),this.Ma+"-created");this.b.removeEventListener("crn_"+this.Ma,this.Xd,this);this.b.removeEventListener("crx_"+this.Ma,this.pe,this);this.D=!1;this.X("destroyed",this.Ma)};
h.load=function(){this.loaded=!0;I(this.b.Da(),this.Ma+"-loaded");this.X("loaded",this.Ma)};
h.unload=function(){this.loaded=!1;me(this.b.Da(),this.Ma+"-loaded");this.X("unloaded",this.Ma)};
h.Xd=function(){};
h.pe=function(){};
h.zc=function(){};
h.log=function(a){rv(this.b,this.logEvent,a)};
h.ai=function(){return null};
h.xe=function(){};
h.Qf=function(){return[]};
h.Cb=function(){return!1};
h.Tm=function(a,b){this.F&&this.F.zc&&this.F.zc.apply(this.F,arguments)};
h.yj=function(){};var fda={vK:"YTP_ERROR_ALREADY_PINNED_ON_A_DEVICE",AUTHENTICATION_EXPIRED:"ERROR_AUTHENTICATION_EXPIRED",CK:"ERROR_AUTHENTICATION_MALFORMED",DK:"ERROR_AUTHENTICATION_MISSING",JK:"ERROR_BAD_REQUEST",XK:"YTP_ERROR_CANNOT_ACTIVATE_RENTAL",gL:"ERROR_CGI_PARAMS_MALFORMED",hL:"ERROR_CGI_PARAMS_MISSING",IL:"YTP_DEVICE_FALLBACK",gM:"YTP_ERROR_LICENSE",lM:"YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK_FLASH",pM:"YTP_ERROR_FORMAT_UNAVALIABLE",qM:"YTP_ERROR_GEO_FAILURE",EM:"YTP_ERROR_GENERIC_WITHOUT_LINK",GM:"YTP_HTML5_PROTECTED_FLASH_FALLBACK",
FM:"YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK",UM:"YTP_ERROR_INVALID_DRM_MESSAGE",aN:"LEARN_MORE",aO:"YTP_ERROR_NOT_SIGNED_IN",HO:"YTP_ERROR_PURCHASE_NOT_FOUND",IO:"YTP_ERROR_PURCHASE_REFUNDED",OO:"YTP_ERROR_RENTAL_EXPIRED",bL:"YTP_ERROR_CAST_SESSION_DEVICE_MISMATCHED",cL:"YTP_ERROR_CAST_SESSION_VIDEO_MISMATCHED",eL:"YTP_ERROR_CAST_TOKEN_FAILED",dL:"YTP_ERROR_CAST_TOKEN_EXPIRED",fL:"YTP_ERROR_CAST_TOKEN_MALFORMED",eP:"YTP_ERROR_SERVER_ERROR",xP:"YTP_ERROR_STOPPED_BY_ANOTHER_PLAYBACK",zP:"YTP_ERROR_STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED",
AP:"YTP_ERROR_STREAMING_NOT_ALLOWED",BP:"YTP_ERROR_STREAMING_UNAVAILABLE",VO:"YTP_ERROR_RETRYABLE_ERROR",OP:"YTP_ERROR_TOO_MANY_STREAMS_PER_USER",NP:"YTP_ERROR_TOO_MANY_STREAMS_PER_ENTITLEMENT",dQ:"YTP_ERROR_UNSUPPORTED_DEVICE",eQ:"YTP_ERROR_UNUSUAL_ACTIVITY",oQ:"YTP_ERROR_VIDEO_FORBIDDEN",pQ:"YTP_ERROR_VIDEO_NOT_FOUND"},oq={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"};var Vaa={lK:"adunit",HL:"detailpage",bM:"editpage",cM:"embedded",$M:"leanback",CO:"previewpage",EO:"profilepage",bQ:"unplugged"};var KH,P5;var o$=sc,p$=o$.match(/\((iPad|iPhone|iPod)( Simulator)?;/);if(!p$||2>p$.length)KH=void 0;else{var q$=o$.match(/\((iPad|iPhone|iPod)( Simulator)?; (U; )?CPU (iPhone )?OS (\d+_\d)[_ ]/);KH=q$&&6==q$.length?Number(q$[5].replace("_",".")):0}(P5=0<=KH)&&0<=sc.search("Safari")&&sc.search("Version");var Ura=P5&&4>KH?.1:0,Bla=new qq;qq.prototype.b=null;qq.prototype.getCurrentTime=function(){return this.currentTime||0};
qq.prototype.g=function(){this.hasAttribute("controls")&&this.setAttribute("controls","true")};sq.prototype.Za=function(){return P(this,8)&&!P(this,64)&&!P(this,2)};var ms=[1,2,3,4,5],ks={LIFE_CYCLE_CREATED:1,LIFE_CYCLE_READY:2,LIFE_CYCLE_TESTING:4,LIFE_CYCLE_TESTING_STARTING:3,LIFE_CYCLE_LIVE:6,LIFE_CYCLE_LIVE_STARTING:5,LIFE_CYCLE_COMPLETE:8,LIFE_CYCLE_COMPLETE_STARTING:7};z(Gq,pk);Gq.prototype.A=function(){this.g.isActive()&&he(this.g)};
Gq.prototype.B=function(){var a={headers:{"Content-Type":"application/json"},Zc:{alt:"json",key:this.D},postBody:this.F,format:"JSON",timeout:1E4,rb:x(this.H,this),onError:x(this.o,this),Kc:x(this.o,this)};this.C&&(a.headers["X-Goog-Visitor-Id"]=this.C);ck(this.G,a)};
Gq.prototype.H=function(a){this.isDisposed()||(200<=a.status&&400>a.status?(a=JSON.parse(a.responseText),this.X("payload",a),this.b=7500+Math.floor(15E3*Math.random()),this.g.start(this.b)):this.o())};
Gq.prototype.o=function(){this.isDisposed()||(this.X("error"),192E4>this.b&&(this.b*=2),this.g.start(this.b))};var t5=16/9,Vra=[.25,.5,1,1.25,1.5,2];z(Iq,G);h=Iq.prototype;h.Ba=function(a,b){p(b)?Hf(a,this.element,b):a.appendChild(this.element)};
h.detach=function(){If(this.element)};
h.update=function(a){for(var b in a)this.va(b,a[b])};
h.va=function(a,b){var c=this.ua["{{"+a+"}}"];c&&Kq(this,c[0],c[1],b)};
h.T=function(){this.pa={};this.ua={};this.detach();Iq.M.T.call(this)};
Iq.g=1;Iq.b=function(){return"ytp-svg-"+Iq.g++};z(R,Iq);h=R.prototype;h.Nb=function(a,b){this.va(b||"content",a)};
h.show=function(){this.g||(Nq(this.element,""),this.g=!0)};
h.oa=function(){this.g&&(Nq(this.element,"none"),this.g=!1)};
h.fb=function(a){a?this.show():this.oa()};
h.O=function(a,b,c){return this.S(this.element,a,b,c)};
h.S=function(a,b,c,d){c=x(c,d||this);d={target:a,type:b,listener:c};this.aa.push(d);a.addEventListener(b,c);return d};
h.sa=function(a){for(var b=0;b<this.aa.length;b++)if(this.aa[b]==a){a=this.aa.splice(b,1)[0];a.target.removeEventListener(a.type,a.listener);break}};
h.focus=function(){Wf(this.element)||this.element.hasAttribute("tabindex");this.element.focus()};
h.T=function(){for(;this.aa.length;){var a=this.aa.pop();a.target.removeEventListener(a.type,a.listener)}R.M.T.call(this)};var Wq=null,ar=null,Vq=null;var br=C().toString();var or={log_event:"events",log_interaction:"interactions"},mr={},nr={},kr=0,lr=q("yt.logging.transport.logsQueue_")||{};g.ba("yt.logging.transport.logsQueue_",lr,void 0);z(Ar,R);Ar.prototype.o=function(a){if(!Rq(a)||S(this.b).experiments.Z("disable_fresca_video_navigation"))wr(a,this.b,!0);else{var b=a.currentTarget.getAttribute("href");J9(this.b.app,b.substring(b.length-11),void 0,void 0,void 0,void 0);sm(a)}};z(Br,R);h=Br.prototype;h.JB=function(a){if(!Rq(a)||S(this.o).experiments.Z("disable_fresca_video_navigation"))wr(a,this.o,!0);else{var b=a.currentTarget.getAttribute("href");J9(this.o.app,b.substring(b.length-11),void 0,void 0,void 0,void 0);sm(a)}};
h.tC=function(){this.A=!0;this.oa()};
h.show=function(){var a=!this.g;Br.M.show.call(this);a&&rs(this.o)};
h.oa=function(){var a=this.g;Br.M.oa.call(this);a&&rs(this.o)};
h.T=function(){Ob(this.b);Br.M.T.call(this)};z(Ir,R);Ir.prototype.D=function(a){var b;b=this.b;b.startTime?(b=b.state,b=6==b||8==b||7==b?!1:!0):b=!1;J(this.element,"ytp-fresca-inline-countdown",b&&!0);J(this.element,"ytp-fresca-show-countdown",b&&!1);if(b){if(!a&&(a=this.b.startTime-Math.floor(C()/1E3),a=259200<=a?0:86459<=a?1:86400<=a?2:0<=a?3:-3600<=a?4:5,a!=this.C)){this.C=a;Nr(this,this.b,!0);return}Jr(this.b)||this.va("countdown",Or(this.b.startTime));Vi(this.B);this.B=Ti(x(this.D,this),1E3)}};
Ir.prototype.T=function(){Vi(this.B);Ir.M.T.call(this)};var Xr={uo:["BC","AD"],to:["Before Christ","Anno Domini"],Io:"JFMAMJJASOND".split(""),Ro:"JFMAMJJASOND".split(""),Bk:"January February March April May June July August September October November December".split(" "),Ek:"January February March April May June July August September October November December".split(" "),Ck:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),Fk:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),Kk:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),
Hk:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),Dk:"Sun Mon Tue Wed Thu Fri Sat".split(" "),Gk:"Sun Mon Tue Wed Thu Fri Sat".split(" "),zx:"SMTWTFS".split(""),So:"SMTWTFS".split(""),Oo:["Q1","Q2","Q3","Q4"],Mo:["1st quarter","2nd quarter","3rd quarter","4th quarter"],xk:["AM","PM"],ji:["EEEE, MMMM d, y","MMMM d, y","MMM d, y","M/d/yy"],Ik:["h:mm:ss a zzzz","h:mm:ss a z","h:mm:ss a","h:mm a"],qo:["{1} 'at' {0}","{1} 'at' {0}","{1}, {0}","{1}, {0}"],ki:6,Yo:[5,6],li:5},Xr={uo:["\u0434\u043e \u043d. \u044d.",
"\u043d. \u044d."],to:["\u0434\u043e \u0420\u043e\u0436\u0434\u0435\u0441\u0442\u0432\u0430 \u0425\u0440\u0438\u0441\u0442\u043e\u0432\u0430","\u043e\u0442 \u0420\u043e\u0436\u0434\u0435\u0441\u0442\u0432\u0430 \u0425\u0440\u0438\u0441\u0442\u043e\u0432\u0430"],Io:"\u042f\u0424\u041c\u0410\u041c\u0418\u0418\u0410\u0421\u041e\u041d\u0414".split(""),Ro:"\u042f\u0424\u041c\u0410\u041c\u0418\u0418\u0410\u0421\u041e\u041d\u0414".split(""),Bk:"\u044f\u043d\u0432\u0430\u0440\u044f \u0444\u0435\u0432\u0440\u0430\u043b\u044f \u043c\u0430\u0440\u0442\u0430 \u0430\u043f\u0440\u0435\u043b\u044f \u043c\u0430\u044f \u0438\u044e\u043d\u044f \u0438\u044e\u043b\u044f \u0430\u0432\u0433\u0443\u0441\u0442\u0430 \u0441\u0435\u043d\u0442\u044f\u0431\u0440\u044f \u043e\u043a\u0442\u044f\u0431\u0440\u044f \u043d\u043e\u044f\u0431\u0440\u044f \u0434\u0435\u043a\u0430\u0431\u0440\u044f".split(" "),
Ek:"\u044f\u043d\u0432\u0430\u0440\u044c \u0444\u0435\u0432\u0440\u0430\u043b\u044c \u043c\u0430\u0440\u0442 \u0430\u043f\u0440\u0435\u043b\u044c \u043c\u0430\u0439 \u0438\u044e\u043d\u044c \u0438\u044e\u043b\u044c \u0430\u0432\u0433\u0443\u0441\u0442 \u0441\u0435\u043d\u0442\u044f\u0431\u0440\u044c \u043e\u043a\u0442\u044f\u0431\u0440\u044c \u043d\u043e\u044f\u0431\u0440\u044c \u0434\u0435\u043a\u0430\u0431\u0440\u044c".split(" "),Ck:"\u044f\u043d\u0432. \u0444\u0435\u0432\u0440. \u043c\u0430\u0440. \u0430\u043f\u0440. \u043c\u0430\u044f \u0438\u044e\u043d. \u0438\u044e\u043b. \u0430\u0432\u0433. \u0441\u0435\u043d\u0442. \u043e\u043a\u0442. \u043d\u043e\u044f\u0431. \u0434\u0435\u043a.".split(" "),
Fk:"\u044f\u043d\u0432. \u0444\u0435\u0432\u0440. \u043c\u0430\u0440\u0442 \u0430\u043f\u0440. \u043c\u0430\u0439 \u0438\u044e\u043d\u044c \u0438\u044e\u043b\u044c \u0430\u0432\u0433. \u0441\u0435\u043d\u0442. \u043e\u043a\u0442. \u043d\u043e\u044f\u0431. \u0434\u0435\u043a.".split(" "),Kk:"\u0432\u043e\u0441\u043a\u0440\u0435\u0441\u0435\u043d\u044c\u0435 \u043f\u043e\u043d\u0435\u0434\u0435\u043b\u044c\u043d\u0438\u043a \u0432\u0442\u043e\u0440\u043d\u0438\u043a \u0441\u0440\u0435\u0434\u0430 \u0447\u0435\u0442\u0432\u0435\u0440\u0433 \u043f\u044f\u0442\u043d\u0438\u0446\u0430 \u0441\u0443\u0431\u0431\u043e\u0442\u0430".split(" "),
Hk:"\u0432\u043e\u0441\u043a\u0440\u0435\u0441\u0435\u043d\u044c\u0435 \u043f\u043e\u043d\u0435\u0434\u0435\u043b\u044c\u043d\u0438\u043a \u0432\u0442\u043e\u0440\u043d\u0438\u043a \u0441\u0440\u0435\u0434\u0430 \u0447\u0435\u0442\u0432\u0435\u0440\u0433 \u043f\u044f\u0442\u043d\u0438\u0446\u0430 \u0441\u0443\u0431\u0431\u043e\u0442\u0430".split(" "),Dk:"\u0432\u0441 \u043f\u043d \u0432\u0442 \u0441\u0440 \u0447\u0442 \u043f\u0442 \u0441\u0431".split(" "),Gk:"\u0432\u0441 \u043f\u043d \u0432\u0442 \u0441\u0440 \u0447\u0442 \u043f\u0442 \u0441\u0431".split(" "),
zx:"\u0432\u0441 \u043f\u043d \u0432\u0442 \u0441\u0440 \u0447\u0442 \u043f\u0442 \u0441\u0431".split(" "),So:"\u0412\u041f\u0412\u0421\u0427\u041f\u0421".split(""),Oo:["1-\u0439 \u043a\u0432.","2-\u0439 \u043a\u0432.","3-\u0439 \u043a\u0432.","4-\u0439 \u043a\u0432."],Mo:["1-\u0439 \u043a\u0432\u0430\u0440\u0442\u0430\u043b","2-\u0439 \u043a\u0432\u0430\u0440\u0442\u0430\u043b","3-\u0439 \u043a\u0432\u0430\u0440\u0442\u0430\u043b","4-\u0439 \u043a\u0432\u0430\u0440\u0442\u0430\u043b"],xk:["\u0414\u041f",
"\u041f\u041f"],ji:["EEEE, d MMMM y '\u0433'.","d MMMM y '\u0433'.","d MMM y '\u0433'.","dd.MM.yy"],Ik:["H:mm:ss zzzz","H:mm:ss z","H:mm:ss","H:mm"],qo:["{1}, {0}","{1}, {0}","{1}, {0}","{1}, {0}"],ki:0,Yo:[5,6],li:6};Pr.prototype.clone=function(){return new Pr(this.C,this.B,this.b,this.g,this.o,this.A)};
Pr.prototype.times=function(a){return new Pr(this.C*a,this.B*a,this.b*a,this.g*a,this.o*a,this.A*a)};
h=Sr.prototype;h.Tp=Xr.ki;h.Up=Xr.li;h.clone=function(){var a=new Sr(this.date);a.Tp=this.Tp;a.Up=this.Up;return a};
h.getFullYear=function(){return this.date.getFullYear()};
h.getMonth=function(){return this.date.getMonth()};
h.getDate=function(){return this.date.getDate()};
h.getTime=function(){return this.date.getTime()};
h.getDay=function(){return this.date.getDay()};
h.getUTCFullYear=function(){return this.date.getUTCFullYear()};
h.getUTCMonth=function(){return this.date.getUTCMonth()};
h.getUTCDate=function(){return this.date.getUTCDate()};
h.getUTCHours=function(){return this.date.getUTCHours()};
h.getUTCMinutes=function(){return this.date.getUTCMinutes()};
h.getTimezoneOffset=function(){return this.date.getTimezoneOffset()};
h.set=function(a){this.date=new Date(a.getFullYear(),a.getMonth(),a.getDate())};
h.toString=function(){return[this.getFullYear(),Ma(this.getMonth()+1,2),Ma(this.getDate(),2)].join("")+""};
h.valueOf=function(){return this.date.valueOf()};var cs=[/^\'(?:[^\']|\'\')*(\'|$)/,/^(?:G+|y+|M+|k+|S+|E+|a+|h+|K+|H+|c+|L+|Q+|d+|m+|s+|v+|V+|w+|z+|Z+)/,/^[^\'GyMkSEahKHcLQdmsvVwzZ]+/];
$r.prototype.format=function(a,b){if(!a)throw Error("The date to format must be non-null.");var c=b?6E4*(a.getTimezoneOffset()-(b.o-Wr(b,a))):0,d=c?new Date(a.getTime()+c):a,e=d;b&&d.getTimezoneOffset()!=a.getTimezoneOffset()&&(d=new Date(d.getTime()+6E4*(d.getTimezoneOffset()-a.getTimezoneOffset())),e=new Date(a.getTime()+(c+(0<c?-864E5:864E5))));for(var c=[],f=0;f<this.g.length;++f){var k=this.g[f].text;1==this.g[f].type?c.push(fs(this,k,a,d,e,b)):c.push(k)}return c.join("")};
var bs=!1;gs.prototype.isLive=function(){return"LIVE"==this.g};
gs.prototype.isUpcoming=function(){return"NOT_YET_LIVE"==this.g};
gs.prototype.getVideoUrl=function(){return this.C};js.prototype.b=function(){return this.A};z(ns,eq);h=ns.prototype;h.Cb=function(){return us(this.b.getVideoData(),"fresca_module")};
h.create=function(a){ns.M.create.call(this);var b=S(this.b);nA()?(this.G=this.o=!1,this.H&&(this.B=new Ir(this.b),kw(this.b,this.B.element,4)),this.A=a||null,this.A||(a=this.b.getVideoData(),this.A=new Gq(a.videoId,a.visitorData||Ri("VISITOR_DATA",""),b.De)),this.A.subscribe("payload",this.tE,this),this.A.subscribe("error",this.us,this),this.b.addEventListener("presentingplayerstatechange",this.Yu,this)):rI(this.b.app.g,"html5.unsupportedlive","YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK","nolive.1")};
h.destroy=function(){this.b.removeEventListener("presentingplayerstatechange",this.Yu,this);Ob(this.A,this.B);this.g=null;ns.M.destroy.call(this)};
h.Yu=function(a){this.g&&(this.G=P(a.state,2),Eq(os(this.b))&&this.A.A(),ts(this,this.g))};
h.us=function(){if(!this.o){var a=this.b.getVideoData();a.hlsvp||a.D?S(this.b).experiments.Z("disable_fresca_error_fallback")||(this.o=!0,iq(this)):(ws(this,new js(this.b.getVideoData().isLiveDefaultBroadcast)),ts(this,this.g))}};
h.tE=function(a){if(!a||a.error)this.us();else{var b=this.g?this.g.broadcastId:"",c=this.b.getVideoData();ws(this,new js(c.isLiveDefaultBroadcast,a));this.C=this.C||c.isLiveDefaultBroadcast&&""!=b&&b!=this.g.broadcastId;if(6!=this.g.state||(c.hlsvp||c.D)&&!this.C){if(this.C&&qs(this,this.g)&&(a=this.g.broadcastId.substring(0,11),a!=c.videoId)){J9(this.b.app,a,void 0,void 0,!0,!0);return}ts(this,this.g)}else this.C=!1,a={video_id:c.videoId},c.isLiveDestination&&(a.is_live_destination="1"),this.b.ik(a)}};var ys=wf&&xs();var Hs={},et=/[^\d]+$/,ft={cm:1,"in":1,mm:1,pc:1,pt:1},gt={em:1,ex:1};it.prototype.O=function(a,b,c,d){c=x(c,d||this.g);a=jm(a,b,c);this.b.push(a);return a};
it.prototype.sa=function(a){km(a);pb(this.b,a)};z(mt,G);h=mt.prototype;h.start=function(){this.stop();this.o=!1;var a=nt(this),b=ot(this);a&&!b&&this.b.mozRequestAnimationFrame?(this.wa=Sc(this.b,"MozBeforePaint",this.g),this.b.mozRequestAnimationFrame(null),this.o=!0):this.wa=a&&b?a.call(this.b,this.g):this.b.setTimeout(nd(this.g),20)};
h.stop=function(){if(this.isActive()){var a=nt(this),b=ot(this);a&&!b&&this.b.mozRequestAnimationFrame?dd(this.wa):a&&b?b.call(this.b,this.wa):this.b.clearTimeout(this.wa)}this.wa=null};
h.isActive=function(){return null!=this.wa};
h.pz=function(){this.o&&this.wa&&dd(this.wa);this.wa=null;this.B.call(this.A,C())};
h.T=function(){this.stop();mt.M.T.call(this)};var pt={},qt=null;z(wt,id);h=wt.prototype;h.play=v;h.stop=v;h.pause=v;h.Za=function(){return 1==this.b};
h.wj=function(){this.Rc("begin")};
h.zh=function(){this.Rc("end")};
h.Ac=function(){this.Rc("finish")};
h.Rc=function(a){this.dispatchEvent(a)};z(xt,wt);h=xt.prototype;h.play=function(a){if(a||0==this.b)this.progress=0,this.g=this.o;else if(this.Za())return!1;rt(this);this.startTime=a=C();-1==this.b&&(this.startTime-=this.duration*this.progress);this.endTime=this.startTime+this.duration;this.B=this.startTime;this.progress||this.wj();this.Rc("play");-1==this.b&&this.Rc("resume");this.b=1;var b=na(this);b in pt||(pt[b]=this);ut();vt(this,a);return!0};
h.stop=function(a){rt(this);this.b=0;a&&(this.progress=1);zt(this,this.progress);this.Rc("stop");this.zh()};
h.pause=function(){this.Za()&&(rt(this),this.b=-1,this.Rc("pause"))};
h.T=function(){0==this.b||this.stop(!1);this.Rc("destroy");xt.M.T.call(this)};
h.destroy=function(){this.dispose()};
h.Km=function(){this.Rc("animate")};
h.Rc=function(a){this.dispatchEvent(new At(a,this))};
z(At,mc);Dt.prototype.g=ve;z(Kt,G);h=Kt.prototype;h.vb=function(a){this.ue();var b=this.b;if(1<a.length&&a.length>b.b.length)b.b=b.b.concat(a),b.b.sort(b.g);else for(var c=0;c<a.length;c++){var d=a[c];!b.b.length||0<b.g(d,b.b[b.b.length-1])?b.b.push(d):Hb(b.b,d,b.g)}this.o=window.NaN;this.ue()};
h.Sh=function(a){for(var b=arguments.length-1;0<=b;b--){var c=arguments[b];if(c){var d=this.g.indexOf(c);0<=d&&this.g.splice(d,1);var e=this.b,d=e.b,c=Ab(d,c,e.g);0<=c&&ob(d,c)}}this.ue()};
h.reset=function(){this.A=this.D=!1;this.B.stop();this.b.b=[];this.g=[];this.ue();this.C=null};
h.ue=function(){this.F=!0;if(!this.G){for(var a=3;this.F&&a;){this.F=!1;this.G=!0;if(this.A&&!this.D){this.B.stop();var b=this.H();P(b,32)&&this.K.start();for(var c=P(this.H(),2)?0x8000000000000:1E3*this.N(),d=P(b,2),e=[],f=[],k=0;k<this.g.length;k++){var l=this.g[k];l.active&&(d?0x8000000000000>l.end:!l.contains(c))&&f.push(l)}e=e.concat(Nt(this,f));if(d)b=Gt(this.b,0x7ffffffffffff),b=b.concat(It(this.b));else if(this.o<=c&&b.Za()&&!P(b,16)&&!P(b,32)){b=this.b;d=c;f=[];for(k=Ht(b,this.o);k<b.b.length&&
!(l=b.b[k],(l.end<=d||l.contains(d))&&f.push(l),l.start>d);++k);b=f}else b=Gt(this.b,c);e=e.concat(Mt(this,b));this.o=c;!this.D&&this.C&&(this.C=null);c=e;for(e=0;e<c.length;e++)b=c[e],d=b[1],1==b[0]?(d.b&&d.b.Rb("onEnter",d),this.J("crn_"+d.namespace,d)):(d.b&&d.b.Rb("onExit",d),this.J("crx_"+d.namespace,d))}this.G=!1;a--}this.H().Za()&&(a=Jt(this.b,this.o),null!=a&&0x7ffffffffffff>a&&(a=(a-this.o)/this.L(),this.B.start(a)))}};
h.T=function(){this.C=this.b=this.g=null;Kt.M.T.call(this)};var au={AL:"current",$N:"new"};mu.prototype.update=function(){var a=this.g.g()||0,b=Du(this.g);if(a!=this.b||qu(this,a,b)){if(a<this.b||a-this.b>b-this.B+2||qu(this,a,b))nu(this),this.o=a;this.B=b;this.b=a}};ru.prototype.B=v;ru.prototype.g=function(){return{ps:this.b.g,el:this.b.b}};
ru.prototype.send=function(){if(!this.o){var a;a=this.g();a=Ug(this.B(),a);this.b.experiments.g&&this.videoData.visitorData&&Uj(a)?bk(a,{headers:{"X-Goog-Visitor-Id":this.videoData.visitorData}}):Vp(a);this.o=!0}};
ru.prototype.A=v;z(tu,ru);tu.prototype.B=function(){return this.b.baseYtUrl+"set_awesome"};
tu.prototype.g=function(){var a=tu.M.g.call(this);ra(a,this.b.o);ra(a,{html5:"1",video_id:this.videoData.videoId,eurl:this.b.da,framer:this.b.Ce,list:this.videoData.nf||this.videoData.playlistId,w:af(this.videoData.Ed/this.videoData.lengthSeconds,0,1),l:this.videoData.lengthSeconds,plid:this.videoData.playbackId,ei:this.videoData.eventId,access_token:this.videoData.oauthToken,tpmt:ou(this.C),cpn:this.videoData.clientPlaybackNonce,feature:this.videoData.Ko});this.b.adFormat&&(a.adformat=this.b.adFormat);
var b;(b=(b=this.videoData.referrer)?b.slice(0,128):"")&&(a.referrer=b);if(this.b.experiments.Z("legacy_autoplay_flag")?this.b.aa:this.videoData.J)a.autoplay="1";this.b.Ob&&(a.authuser=this.b.Ob);this.b.pageId&&(a.pageid=this.b.pageId);this.videoData.Ca&&(a.splay="1");this.videoData.subscribed&&(a.subscribed=this.videoData.subscribed);ra(a,tu.M.g.call(this));ra(a,this.b.o);return a};
tu.prototype.A=function(){if(this.o||!this.b.Tb||this.b.bc||!this.videoData.lengthSeconds)return!1;var a=Math.min(.8*this.videoData.lengthSeconds,180);return ou(this.C)>=a};var xaa={EK:"auto",JP:"tiny",bN:"light",pP:"small",tx:"medium",ZM:"large",xM:"hd720",tM:"hd1080",uM:"hd1440",vM:"hd2160",wM:"hd2880",CM:"highres",UNKNOWN:"unknown"},iz={auto:0,tiny:144,light:144,small:240,medium:360,large:480,hd720:720,hd1080:1080,hd1440:1440,hd2160:2160,hd2880:2880,highres:4320},jA="highres hd2880 hd2160 hd1440 hd1080 hd720 large medium small tiny".split(" ");z(Bu,G);var cv={5:"N","-1":"N",3:"B",0:"EN",2:"PA",1:"PL"};h=Bu.prototype;
h.Hg=function(a){if(!this.isDisposed()&&!cc(this.g)&&!this.J){a=0<=a?a:Du(this.b);Eu(this,a);this.b.b.experiments.Z("html5_qoe_count_failed")&&zu()&&Ku(this,"failedping",zu().toString());var b=this.b.D(),c=b.droppedVideoFrames,d=c-this.R;if(c>b.totalVideoFrames||5E3<d)this.onError("html5.badframedropcount","df."+c+";tf."+b.totalVideoFrames);else 0<d&&Au(this,a,"df",[d]);this.R=c;a=Gu(this);kc(a,this.b.b.o);a=Ug(this.b.b.Fd,a);for(var e in this.g)a+="&"+e+"="+this.g[e].join(",");Hu(this,a);this.g=
{};this.C.start()}};
h.Ns=function(){this.b.b.experiments.Z("html5_qoe_count_failed")&&yu(zu()+1)};
h.Os=function(){this.b.b.experiments.Z("html5_qoe_count_failed")&&zu()&&yu(0)};
h.Dt=function(){this.b.videoData.G&&Ju(this,"drm-"+this.b.videoData.G.b)};
h.onError=function(a,b){var c=Du(this.b);Mu(this,c,a,b);Eu(this,c);Iu(this)};
h.iD=function(){var a=Du(this.b);"PL"==this.o&&(Au(this,a,"vps",[this.o]),this.Hg(a))};
h.T=function(){Bu.M.T.call(this);Wi(this.L)};Ou.prototype.send=function(a){if(!this.aa){var b=Su(this),b=Ug(this.ca,b);if(this.D)this.K&&(a={method:"POST",Sb:{atr:this.K}},this.visitorData&&(a.headers={"X-Goog-Visitor-Id":this.visitorData}),bk(b,a));else{var c=Pu(this,a);c?bk(b,c):Vp(b,a)}this.aa=!0}};
Ou.prototype.b=function(a){return(1*a.toFixed(3)).toString()};z(Tu,G);Tu.prototype.ba=function(a,b){if(!this.isDisposed()){this.D=window.NaN;this.o.update();var c=pu(this.o),d=Xu(this,c);b&&(d.B=a);var e=400<this.J;!(1<c.length)&&c[0].isEmpty()||e||(d.g=Uu(this,!0,a));d.send();this.J++}};
Tu.prototype.onError=function(a,b){this.g.onError(a,b)};
Tu.prototype.F=function(a){var b=this.b.b,c=this.b.videoData,d={ns:b.ia,el:b.b,eurl:b.da,fmt:c.g?Fu(c.g):0,html5:1,list:c.playlistId,plid:c.playbackId,cpn:c.clientPlaybackNonce,ei:c.eventId,ps:b.g,noflv:1,st:this.b.g(),video_id:c.videoId,metric:a};if(b.experiments.Z("legacy_autoplay_flag")?b.aa:c.J)d.autoplay="1";"heartbeat"==a&&(d.tpmt=ou(this.o));ra(d,b.o);Zu(this,Ug("//www.youtube.com/live_204",d))};
Tu.prototype.T=function(){Tu.M.T.call(this);Vi(this.D);this.D=window.NaN;var a=this.o;Wi(a.C);a.C=window.NaN};h=tv.prototype;h.Mj=function(){this.context.A.subscribe("resize",this.Di,this)};
h.la=function(){return this.ea};
h.Lg=function(a,b,c,d,e,f){this.context.b.O(a,"click",qa(this.pj,b,c,d,e||[],f||0),this);this.context.b.O(a,"touchstart",qa(function(){this.zn=!1}),this);
this.context.b.O(a,"touchmove",qa(function(){this.zn=!0}),this)};
h.pj=function(a,b,c,d,e,f){if(this.zn)return!1;f&&(f.stopPropagation(),f.preventDefault());(b=iu(a,b,this.context.videoData.videoId))&&wv(this,b,ju(b,a.target),c,d,e,a.Bj);return!1};
h.show=function(){this.H=C()};
h.mk=function(){};
h.destroy=function(){If(this.la())};
h.Di=function(){};var Wra=function(a){var b=!1,c;return function(){b||(c=a(),b=!0);return c}}(function(){if(wf)return zc("10.0");
var a=Df("DIV"),b=Cc?"-webkit":Ds?"-moz":wf?"-ms":Dc?"-o":null,c={transition:"opacity 1s linear"};b&&(c[b+"-transition"]="opacity 1s linear");b={style:c};if(!Se.test("div"))throw Error("Invalid tag name <div>.");if("DIV"in Mra)throw Error("Tag name <div> is not allowed for SafeHtml.");b=Ye("div",b,void 0);a.innerHTML=Pe(b);return""!=Is(a.firstChild,"transition")});z(yv,G);yv.prototype.show=function(a){1!=this.b&&2!=this.b&&(3==this.b&&this.A(),4==this.b?(this.g.show(),this.b=null,this.o.stop()):this.g.g||(zv(this,!0),this.b=1,a?this.o.start(a):this.A()))};
yv.prototype.A=function(){switch(this.b){case 1:this.g.show();this.b=2;this.o.start(10);break;case 2:zv(this,!1);this.b=null;break;case 3:this.g.oa();zv(this,!1);this.b=4;this.o.start(0);break;case 4:this.b=null}};
yv.prototype.stop=function(){for(;null!=this.b&&4!=this.b;)this.o.stop(),this.A()};
yv.prototype.T=function(){this.g.isDisposed()||this.g.element.removeAttribute("aria-hidden");yv.M.T.call(this)};z(Bv,R);h=Bv.prototype;h.$t=function(){Lr(this.Y)&&sJ(this.Y)&&this.g&&3!=this.F.b&&this.fi()};
h.dJ=function(a){this.o&&Qf(this.o.element,om(a))||(this.A&&this.A.jl?this.Yr(this.A):(this.fi(),hj("iv-teaser-clicked",!!this.b),this.Y.$h(!0,!1,"YOUTUBE_DRAWER_MANUAL_OPEN")))};
h.bJ=function(){hj("iv-teaser-mouseover");this.b.stop()};
h.cJ=function(){me(this.element,"ytp-cards-auto-open-hover-card")};
h.SE=function(a){this.b||!a||sJ(this.Y)||this.C&&this.C.isActive()||(this.A=a.cj,Fv(this,a),hj("iv-teaser-shown"))};
h.Yr=function(a){a.Bj&&this.Y.pauseVideo();tr(a.Ts,void 0);ur(a.Ts,a.target);hj("iv-hover-card-clicked")};
h.xA=function(){I(this.element,"ytp-hover-card-active")};
h.yA=function(){me(this.element,"ytp-hover-card-active")};
h.Tv=function(){this.G.stop();this.b&&this.b.isActive()&&this.H.start()};
h.Ve=function(){this.H.stop();this.b&&!this.b.isActive()&&this.G.start()};
h.ID=function(){this.b&&this.b.stop()};
h.GD=function(){this.fi()};
h.fi=function(){!this.b||this.D&&this.D.isActive()||(this.o&&(this.o.detach(),this.o=null),this.A=null,Av(this.F),me(this.Y.Da(),"ytp-cards-teaser-shown"),me(this.Y.Da(),"ytp-cards-button-teaser-merge"),me(this.element,"ytp-cards-combined-teaser"),this.D=new ge(function(){for(var a=0;a<this.B.length;a++)this.sa(this.B[a]);this.B=[];this.b&&(this.b.dispose(),this.b=null);Ev(this.J,!0)},330,this),this.D.start())};
h.T=function(){var a=this.Y.Da();a&&me(a,"ytp-cards-teaser-shown");Ob(this.C,this.D,this.b,this.o,this.A);Bv.M.T.call(this)};z(Hv,Gv);z(Iv,Gv);z(Jv,Iv);var Kv=!wf;h=Mv.prototype;h.LD=function(a,b){var c=(0,window.parseInt)(Lv(b.target,"navigationChapterIndex"),10);this.b.g.seekTo(a.chapters[c].time_ms/1E3,!0);var d={};d["link-id"]=c;lv(this.b.logger,a.$a,void 0,d,a.b.click,5)};
h.ms=function(a,b){var c=Yf(b.target,"label");c&&J(c,"iv-card-poll-choice-focused",a)};
h.iE=function(a,b){var c=Zf(b.target,"iv-card-poll");if(c)if(a.o)rf("iv-card-sign-in-button",c).click();else{var d=(0,window.parseInt)(Lv(b.target,"pollChoiceIndex"),10);if(null==a.g)a.choices[d].count++,a.g=d;else if(a.g!=d){var e=a.choices[a.g];e.count=Math.max(e.count-1,0);a.choices[d].count++;a.g=d}else e=a.choices[a.g],e.count=Math.max(e.count-1,0),a.g=null;Pv(a,c);ck(this.b.videoData.Xf,{Zc:{action_poll_vote:1},Sb:{poll_id:a.id,index:d,session_token:a.C}});c={};c["link-id"]=d;lv(this.b.logger,
a.$a,void 0,c,a.b.click,5)}};
h.RC=function(a){var b=q("yt.www.ypc.bootstrap.api.loadOffersForInnertubeRequestParams");b&&(b=qa(b,a.F,a.A));Zv(this,a,!0,b)};
h.VE=function(a){var b=q("yt.www.ypc.bootstrap.api.loadOffers");b&&(b=qa(b,a.F,a.A,a.G));Zv(this,a,!1,b)};z(aw,Gv);z(bw,Gv);z(cw,Gv);z(ew,Iv);z(fw,Iv);z(gw,Gv);z(hw,Gv);z(iw,tv);h=iw.prototype;h.isAvailable=function(){var a;if(a=!!this.o.length)(a=this.Y.Da())?(a=Zs(a),a=177<a.width&&177<a.height):a=!1;return a};
h.qy=function(){this.ba&&vw(this,"YOUTUBE_DRAWER_AUTO_OPEN")};
h.Vy=function(){(this.ba=this.A)&&this.Ji()};
h.pI=function(){vw(this,"YOUTUBE_DRAWER_AUTO_OPEN")};
h.Ji=function(){this.A&&(Av(this.N),me(this.context.g.Da(),"ytp-iv-drawer-open"),this.A=!1,pv(this.context.logger,10),uw(this.Y),this.B&&this.B.stop(),this.B=new ge(function(){this.J&&(this.J.focus(),this.J=null)},330,this),this.B.start())};
h.Di=function(){var a=this.isAvailable();bt(this.la(),a);J(this.context.g.Da(),"ytp-iv-drawer-enabled",a);a&&(this.R||(pv(this.context.logger,11),this.R=!0),F(this.o,function(a){a.rr||(a.rr=!0,qv(this.context.logger,11,a.bb.$a))},this));
uw(this.Y)};
h.destroy=function(){var a=nJ(jq(this.Y),"iv-module");a&&dz(a,!1,void 0);this.Y.Da().removeChild(this.C);fj(this.D);km(this.ca);this.G&&this.G.dispose();this.B&&this.B.dispose();iw.M.destroy.call(this)};
var jw={collaborator:Hv,donation:Jv,episode:hw,navigation:aw,movie:hw,playlist:bw,poll:cw,productListing:ew,simple:Iv,tip:fw,video:gw};h=iw.prototype;
h.qI=function(a){this.Zk.start();a.preventDefault();a=a||window.event;var b=0;"MozMousePixelScroll"==a.type?b=0==(a.axis==a.HORIZONTAL_AXIS)?a.detail:0:window.opera?b=a.detail:b=0==a.wheelDelta%120?"WebkitTransform"in window.document.documentElement.style?window.chrome&&0==window.navigator.platform.indexOf("Mac")?a.wheelDeltaY/-30:a.wheelDeltaY/-1.2:a.wheelDelta/-1.6:a.wheelDeltaY/-3;if(a=b)this.hd.scrollTop+=a};
h.cn=function(a,b){if(!je(this.Y.Da(),"ytp-cards-teaser-shown")){this.b!=a&&(this.b=a,pw(this));if(ct(this.la())){var c;(c=b)||(2==this.context.g.getPresentingPlayerType()?c=1==((0,window.isNaN)(void 0)?this.context.g.getAdState():void 0):(c=(0,window.isNaN)(void 0)?this.context.g.getPlayerState():void 0,c=1==c||0==c&&0===this.context.g.getCurrentTime()));if(c&&a.bb.teaserDurationMs){c=null;if("video"==a.bb.type&&ww(this,"hover_card_for_video_card_teaser")){var d=a.bb,e=d.url?iu(d.url,a.bb.id,this.context.videoData.videoId,
this.context.o):null,f=e?ju(e,d.url.target):null;e&&f&&(c={OQ:d.id,title:d.title,Ts:e,target:"current"==f?"_top":void 0,Bj:d.url.Bj,imageUrl:d.o,videoDuration:d.videoDuration,oe:d.oe,jl:ww(this,"combined_teaser_link")})}c={teaserText:a.bb.teaserText,durationMs:b?2E3:a.bb.teaserDurationMs,cj:c,FB:ww(this,"merge_button_with_teaser"),By:b&&ww(this,"hover_card_on_button_hover")};(d=nJ(jq(this.Y),"iv-module"))&&dz(d,!0,c)}}this.aa.isActive()||((!this.A||!this.Zk.isActive()&&this.mj)&&yw(this,a),this.aa.start(910+
a.bb.teaserDurationMs))}};
h.qG=function(){this.b&&this.cn(this.b,!0)};
h.iG=function(a){this.A||(this.b=a,pw(this),yw(this,a),vw(this,"YOUTUBE_DRAWER_AUTO_OPEN",!1,a))};
h.My=function(){this.A&&(pv(this.context.logger,4,zw(this).b.close),this.Ji())};
h.Zy=function(){J(this.C,"iv-drawer-scrolled",0<this.hd.scrollTop)};
h.EB=function(){var a=zw(this);qv(this.context.logger,8,a.$a,a.b.uG)};
h.DB=function(){var a=this.b;qv(this.context.logger,13,a.bb.$a,void 0);var b=ww(this,"hover_card_for_video_card_teaser");"video"==a.bb.type&&b&&(a=this.b,a.sj||(a.sj=!0,kv(this.context.logger,a.bb.$a,a.bb.b.Zq)))};
h.BB=function(){var a=this.b.bb;lv(this.context.logger,a.$a,void 0,void 0,a.b.click,5)};
h.CB=function(a){var b=zw(this);this.b?a?(a=this.context.logger,qv(a,9,b.$a,b.b.ln)):(a=this.context.logger,qv(a,12,b.$a,b.b.ln)):(a=this.context.logger,pv(a,12,b.b.ln));a.Y.Vg(4,void 0)};var Bw=/#(.)(.)(.)/,Aw=/^#(?:[0-9a-f]{3}){1,2}$/i;z(Dw,xt);Dw.prototype.A=r;Dw.prototype.Km=function(){this.A();Dw.M.Km.call(this)};
Dw.prototype.zh=function(){this.A();Dw.M.zh.call(this)};
Dw.prototype.wj=function(){this.A();Dw.M.wj.call(this)};
z(Ew,Dw);Ew.prototype.A=function(){this.element.style.left=Math.round(this.g[0])+"px";this.element.style.top=Math.round(this.g[1])+"px"};z(Fw,tv);Fw.prototype.Mj=function(){Fw.M.Mj.call(this);var a=this.annotation.data;"start_ms"in a&&"end_ms"in a&&uv(this,this.annotation.data.start_ms,this.annotation.data.end_ms,this.annotation.id,this.show,this.mk)};z(Gw,Fw);Gw.prototype.G=function(a,b,c,d){this.g.stop();if(!this.o){var e=Zs(a);Ws(a,e.width);Ws(b,e.width);Ms(c,e.width,e.height-Math.max(Math.min(e.height,d)/2+Math.round(10),20));this.o=!0;bt(a,!0);this.B=new ge(function(){I(this.la(),"iv-branding-active")},0,this);
this.B.start()}};
Gw.prototype.F=function(a,b){me(this.la(),"iv-branding-active");this.C=new ge(function(){bt(a,!1);Ws(b,0)},250);
this.C.start();this.o=!1};
Gw.prototype.show=function(){if(!this.isActive){Gw.M.show.call(this);if(!this.D){I(this.la(),"iv-branding");var a=this.annotation.data;this.A=a.image_width;this.b=K("IMG",{src:a.image_url,"class":"branding-img iv-click-target",width:a.image_width,height:a.image_height});bt(this.b,!1);var b=K("DIV","branding-img-container",this.b);this.la().appendChild(b);var c=K("DIV","iv-branding-context-name");Sf(c,a.channel_name);var d=K("DIV","iv-branding-context-subscribe");this.annotation.o?wh(d,this.annotation.o):
a.num_subscribers&&Sf(d,a.num_subscribers);b=K("DIV","iv-branding-context-subscribe-caret");c=K("DIV","branding-context-container-inner",b,c,d);bt(c,!1);d=K("DIV","branding-context-container-outer",c);Gs(d,"right",this.A+"px");this.la().appendChild(d);this.Lg(this.b,qx(this.annotation),this.annotation.id,this.annotation.$a);this.g=new ge(qa(this.F,c,d),500,this);this.context.b.O(this.la(),"mouseover",x(this.G,this,c,d,b,a.image_height));this.context.b.O(this.la(),"mouseout",x(this.g.start,this.g));
this.D=!0}kv(this.context.logger,this.annotation.$a);bt(this.la(),!0);this.isActive=!0;var a=this.b,e,b=$s(a).width,c=ha(void 0)?void 0:b;e=e||0;Ms(a,c);e=new Ew(a,[c,a.offsetTop],[c-b-e,a.offsetTop],200,Bt);this.context.b.O(e,"begin",qa(bt,a,!0));e.play()}};
Gw.prototype.mk=function(){this.isActive&&(bt(this.la(),!1),this.isActive=!1)};var Jw={CLOSE:"close",gO:"openUrl",Tx:"subscribe"},Kw={yk:"click",CLOSE:"close",HIDDEN:"hidden",XO:"rollOut",Lx:"rollOver",Ox:"shown"};var Tw={FQ:"xx",GQ:"xy",JQ:"yx",KQ:"yy"};z(Yw,Sw);var ax={qw:"anchored",MO:"rect",fP:"shapeless"};var fx={CLOSED:"closed",pO:"playerControlShow",Lx:"rollOver",Ox:"shown"};var mx={qw:"anchored",uw:"branding",CHANNEL:"channel",zL:"cta",BM:"highlightText",YM:"label",PLAYLIST:"playlist",AO:"popup",qP:"speech",Tx:"subscribe",KP:"title",VIDEO:"video",wQ:"vote",zQ:"website"},lx={uw:"branding",$K:"card",YL:"drawer",AM:"highlight",rN:"marker",FO:"promotion",TEXT:"text",CQ:"widget"},nx={qQ:"video_relative",qO:"player_relative"};kx.prototype.showLinkIcon=function(){return rx(this,function(a){return null!=a.url&&a.url.showLinkIcon})};z(Ax,Fw);h=Ax.prototype;h.show=function(){this.isActive||(Ax.M.show.call(this),this.F||(Bx(this),this.F=!0),bt(this.la(),!0),this.annotation&&this.annotation.$a&&kv(this.context.logger,this.annotation.$a),me(this.la(),"iv-promo-inactive"),this.la().removeAttribute("aria-hidden"),this.isActive=!0,this.b&&(fe(this.b),this.b=null),Dx(this),Ex(this,this.C))};
h.mk=function(){this.isActive&&(I(this.la(),"iv-promo-inactive"),this.isActive=!1,this.la().setAttribute("aria-hidden",!0))};
h.pj=function(a,b,c,d,e,f){return this.A?!1:Ax.M.pj.call(this,a,b,c,d,e,f)};
h.Ul=function(a,b){b.stopPropagation();Dx(this);Ex(this,a);this.Bc.focus()};
h.Hz=function(a){this.D=!0;this.Ul(500,a)};
h.Gz=function(){this.D=!1;Cx(this)};
h.rI=function(a){a.stopPropagation();this.mk();mv(this.context.logger,this.annotation.$a)};
h.destroy=function(){this.B.dispose();Ax.M.destroy.call(this)};var NA={kN:1,lN:2,mN:3};z(Fx,G);Fx.prototype.S=function(a,b,c,d){c=Si(x(c,d||this.na));a.addEventListener(b,c);a={target:a,name:b,Fi:c};this.K.push(a);return a};
Fx.prototype.sa=function(a){for(var b=0;b<this.K.length;b++)if(this.K[b]==a){this.K.splice(b,1);a.target.removeEventListener(a.name,a.Fi);break}};
Fx.prototype.T=function(){Hx(this);Fx.M.T.call(this)};var Lx=0;Px.prototype.A=function(a,b,c,d){this.b[a]=b?!c:c;a=Tb(this.b,function(a){return a});
this.g!=a&&(this.g=a,this.o.Rb(this.B,a,d))};Qx.prototype.show=function(){this.isVisible=!0;this.b&&(this.b.show(),this.o.subscribe("resize",this.C,this),this.o.subscribe("onVideoAreaChange",this.A,this))};
Qx.prototype.destroy=function(){if(this.b){Rx(this);var a=this.b;lt(a.D);a.Im.dispose();a.G.dispose();a.g&&If(a.g);a.o&&a.o.la()&&If(a.o.la())}Sx(this)};
Qx.prototype.A=function(){Ny(this.b)};
Qx.prototype.C=function(){Ny(this.b)};Tx.prototype.clone=function(){return new Tx(this.start,this.end)};Ux.prototype.b=v;Ux.prototype.g=v;z(Vx,Ux);Vx.prototype.b=function(){return this.G};
Vx.prototype.g=function(){return this.H};Wx.prototype.Jd=null;Wx.prototype.uc=null;Wx.prototype.Jh=!0;var baa=[2,2,6,6,0];h=Wx.prototype;h.clear=function(){this.ra.length=0;this.ya.length=0;this.Oc.length=0;delete this.Jd;delete this.uc;delete this.Jh;return this};
h.Hb=function(a){var b=$a(this.ra);if(null==b)throw Error("Path cannot start with lineTo");1!=b&&(this.ra.push(1),this.ya.push(0));for(b=0;b<arguments.length;b+=2){var c=arguments[b],d=arguments[b+1];this.Oc.push(c,d)}this.ya[this.ya.length-1]+=b/2;this.uc=[c,d]};
h.close=function(){var a=$a(this.ra);if(null==a)throw Error("Path cannot start with close");4!=a&&(this.ra.push(4),this.ya.push(1),this.uc=this.Jd);return this};
h.clone=function(){var a=new this.constructor;a.ra=this.ra.concat();a.ya=this.ya.concat();a.Oc=this.Oc.concat();a.Jd=this.Jd&&this.Jd.concat();a.uc=this.uc&&this.uc.concat();a.Jh=this.Jh;return a};
h.transform=function(a){if(!this.Jh)throw Error("Non-simple path");a.transform(this.Oc,0,this.Oc,0,this.Oc.length/2);this.Jd&&a.transform(this.Jd,0,this.Jd,0,1);this.uc&&this.Jd!=this.uc&&a.transform(this.uc,0,this.uc,0,1);return this};
h.isEmpty=function(){return 0==this.ra.length};z(Zx,Ux);$x.prototype.cb=function(){return this.o};ca(ay);ay.prototype.b=0;z(by,id);h=by.prototype;h.zA=ay.getInstance();h.getId=function(){return this.wa||(this.wa=":"+(this.zA.b++).toString(36))};
h.la=function(){return this.b};
h.Kg=function(a){if(this.A&&this.A!=a)throw Error("Method not supported");by.M.Kg.call(this,a)};
h.aj=function(){this.b=this.F.createElement("DIV")};
h.eg=function(){this.sd=!0;dy(this,function(a){!a.sd&&a.la()&&a.eg()})};
h.lh=function(){dy(this,function(a){a.sd&&a.lh()});
this.B&&Jm(this.B);this.sd=!1};
h.T=function(){this.sd&&this.lh();this.B&&(this.B.dispose(),delete this.B);dy(this,function(a){a.dispose()});
this.b&&If(this.b);this.A=this.b=this.C=this.H=null;by.M.T.call(this)};
h.gc=function(){return this.b};
h.removeChild=function(a,b){if(a){var c=w(a)?a:a.getId();a=this.C&&c?fc(this.C,c)||null:null;if(c&&a){ec(this.C,c);pb(this.H,a);b&&(a.lh(),a.b&&If(a.b));c=a;if(null==c)throw Error("Unable to set parent component");c.A=null;by.M.Kg.call(c,null)}}if(!a)throw Error("Child is not in parent component");return a};z(ey,by);h=ey.prototype;h.hh=null;h.setSize=v;h.mg=function(){return this.sd?Zs(this.la()):ha(this.width)&&ha(this.height)?new hf(this.width,this.height):null};
h.clear=v;h.Et=v;h.Ft=v;h.Li=v;h.resume=function(){};z(fy,id);h=fy.prototype;h.Ol=null;h.oh=null;h.la=function(){return this.oh};
h.addEventListener=function(a,b,c,d){Sc(this.oh,a,b,c,d)};
h.removeEventListener=function(a,b,c,d){cd(this.oh,a,b,c,d)};
h.T=function(){fy.M.T.call(this);var a=this.oh;if(a)if(Hc(a))a.jd&&Qc(a.jd);else if(a=Vc(a)){var b=0,c;for(c in a.b)for(var d=a.b[c].concat(),e=0;e<d.length;++e)dd(d[e])&&++b}};z(gy,fy);gy.prototype.fill=null;z(hy,fy);hy.prototype.clear=v;hy.prototype.setSize=v;z(iy,gy);z(jy,hy);jy.prototype.clear=function(){Gf(this.la())};
jy.prototype.setSize=function(a,b){my(this.la(),{width:a,height:b})};
z(ky,iy);var py;z(ly,ey);var faa=0;h=ly.prototype;
h.Et=function(a,b){var c=a.la();if(b instanceof Zx)c.setAttribute("fill",b.o),c.setAttribute("fill-opacity",b.A);else if(b instanceof Vx){var d="lg-"+b.B+"-"+b.D+"-"+b.C+"-"+b.F+"-"+b.b()+"-"+b.g(),e=d in this.g?this.g[d]:null;if(!e){var e=ny(this,"linearGradient",{x1:b.B,y1:b.D,x2:b.C,y2:b.F,gradientUnits:"userSpaceOnUse"}),f="stop-color:"+b.b();ha(b.o)&&(f+=";stop-opacity:"+b.o);f=ny(this,"stop",{offset:"0%",style:f});e.appendChild(f);f="stop-color:"+b.g();ha(b.A)&&(f+=";stop-opacity:"+b.A);f=ny(this,
"stop",{offset:"100%",style:f});e.appendChild(f);e=oy(this,d,e)}c.setAttribute("fill","url(#"+e+")")}else c.setAttribute("fill","none")};
h.Ft=function(a,b){var c=a.la();if(b){c.setAttribute("stroke",b.b);c.setAttribute("stroke-opacity",b.g);var d=b.cb();w(d)&&-1!=d.indexOf("px")?c.setAttribute("stroke-width",(0,window.parseFloat)(d)/daa(this)):c.setAttribute("stroke-width",d)}else c.setAttribute("stroke","none")};
h.aj=function(){var a=ny(this,"svg",{width:this.width,height:this.height,overflow:"hidden"}),b=ny(this,"g");this.D=ny(this,"defs");this.hh=new jy(b,this);a.appendChild(this.D);a.appendChild(b);this.b=a;this.o&&(this.la().setAttribute("preserveAspectRatio","none"),this.K?this.Tj():this.la().setAttribute("viewBox","0 0 "+(this.o?this.o+" "+this.J:"")))};
h.Tj=function(){if(this.sd){var a=this.mg();if(0==a.width)this.la().style.visibility="hidden";else{this.la().style.visibility="";var b=a.width/this.o,a=a.height/this.J;this.hh.la().setAttribute("transform","scale("+b+" "+a+") translate(0 0)")}}};
h.setSize=function(a,b){Xs(this.la(),a,b)};
h.mg=function(){if(!Ds)return this.sd?Zs(this.la()):ly.M.mg.call(this);var a=this.width,b=this.height,c=w(a)&&-1!=a.indexOf("%"),d=w(b)&&-1!=b.indexOf("%");if(!this.sd&&(c||d))return null;var e,f;c&&(e=this.la().parentNode,f=Zs(e),a=(0,window.parseFloat)(a)*f.width/100);d&&(e=e||this.la().parentNode,f=f||Zs(e),b=(0,window.parseFloat)(b)*f.height/100);return new hf(a,b)};
h.clear=function(){this.hh.clear();Gf(this.D);this.g={}};
h.Li=function(a,b,c,d){a=ny(this,"path",{d:eaa(a)});b=new ky(a,this,b,c);(d||this.hh).la().appendChild(b.la());return b};
h.eg=function(){var a=this.mg();ly.M.eg.call(this);a||this.dispatchEvent("resize");if(this.K){var a=this.width,b=this.height;"string"==typeof a&&-1!=a.indexOf("%")&&"string"==typeof b&&-1!=b.indexOf("%")&&this.G.O(qy(),"tick",this.Tj);this.Tj()}};
h.lh=function(){ly.M.lh.call(this);this.K&&this.G.sa(qy(),"tick",this.Tj)};
h.T=function(){delete this.g;delete this.D;delete this.hh;this.G.dispose();delete this.G;ly.M.T.call(this)};ry.prototype.la=function(){return this.B};
ry.prototype.o=function(){};var vy={bevel:1,dropshadow:2};z(By,ry);
By.prototype.o=function(a,b){var c=xx(a);if(c){var d=Ww(c,b);if(!(0>=d.width||0>=d.height)){var e;if(e=(c=(c=wx(a))&&c.b?c.b:null)&&c.length?c[0]:null){var f=rg(Vw(b,Rw(e,new ng(e.F,e.G,e.B,e.o),b.b))),k=d.clone(),c=new ng(f.x,f.y,1,1),l=Math.max(k.left+k.width,c.left+c.width),m=Math.max(k.top+k.height,c.top+c.height);k.left=Math.min(k.left,c.left);k.top=Math.min(k.top,c.top);k.width=l-k.left;k.height=m-k.top;var c=a.b,k=zy(k,c.effects),l=sy(this,k.width,k.height),m=yy(c,k.width,k.height,this.b),
d=new ng(d.left-k.left,d.top-k.top,d.width,d.height),n=new ff(f.x-k.left,f.y-k.top);this.A=17*Qw(b.b,e.g,e.b?e.b:"xy");e=c.o;var f=a.b,t=this.b&&sx(a),u=t?f.b+1:f.b,t=(f=u?new $x(u,t?f.A:f.C):null)?f.cb()/2:0,u=maa(d,n),y=this.C(d,e,n,u),E=n.x,n=n.y,D=d.width,W=d.height,O=d.left,d=d.top,Q=new Wx;Xx(Q,O+e+t,d+t);"t"==u&&(Q.Hb(y.start,d+t),Q.Hb(E,n),Q.Hb(y.end,d+t));Q.Hb(O+D-e-t,d+t);Yx(Q,e,e,-90);"r"==u&&(Q.Hb(O+D-t,y.start),Q.Hb(E,n),Q.Hb(O+D-t,y.end));Q.Hb(O+D-t,d+W-e-t);Yx(Q,e,e,0);"b"==u&&(Q.Hb(y.end,
d+W-t),Q.Hb(E,n),Q.Hb(y.start,d+W-t));Q.Hb(O+e+t,d+W-t);Yx(Q,e,e,90);"l"==u&&(Q.Hb(O+t,y.end),Q.Hb(E,n),Q.Hb(O+t,y.start));Q.Hb(O+t,d+e+t);Yx(Q,e,e,180);Q.close();l.Li(Q,f,m);if(m=this.la())I(m,"annotation-shape"),I(m,"annotation-speech-shape"),Ms(m,k.left,k.top),Xs(m,k.width,k.height),Ay(l,m,c.effects)}}}};
By.prototype.C=function(a,b,c,d){function e(a,c,d,e){a=Math.min(Math.max(e-2*b,0),a);c=af(c-a/2,d+b,d+e-a-b);return new Tx(c,c+a)}
return"t"==d||"b"==d?e(this.A,c.x,a.left,a.width):"l"==d||"r"==d?e(this.A,c.y,a.top,a.height):new Tx(0,0)};z(Cy,ry);Cy.prototype.o=function(a,b){var c=xx(a);if(c){var d=Ww(c,b);if(!(0>=d.width||0>=d.height)){var e=a.b,c=zy(d,e.effects),f=sy(this,c.width,c.height),k=new ng(0,0,d.width,d.height),l=e.o,d=new $x(!e.B&&this.b?1:e.B,e.bgColor),m=new Zx("#000",0),n=d?d.cb()/2+1:0,k=wy(k,l,n);f.Li(k,d,m);f=this.la();I(f,"annotation-shape");e=e.g;at(f,this.b?Math.max(e,.9):e);Ms(f,c.left,c.top);Xs(f,c.width,c.height)}}};z(Dy,ry);Dy.prototype.o=function(a,b){var c=xx(a);if(c){var d=Ww(c,b);if(!(0>=d.width||0>=d.height)){var c=a.b,e=zy(d,c.effects),f=sy(this,e.width,e.height),k=yy(c,d.width,d.height,this.b),d=new ng(0,0,d.width,d.height),l=c.o,m=a.b,n=this.b&&sx(a),t=n?m.b+1:m.b,n=(m=t?new $x(t,n?m.A:m.C):null)?m.cb()/2+1:0,d=wy(d,l,n);f.Li(d,m,k);if(k=this.la())I(k,"annotation-shape"),I(k,"annotation-popup-shape"),Ms(k,e.left,e.top),Xs(k,e.width,e.height),Ay(f,k,c.effects)}}};z(Ey,By);Ey.prototype.C=function(a,b,c,d){function e(a,c,d,e){a=Math.min(Math.max(e-2*b,0),a);c=c<=d+e/2?Math.max(d+e/4-a/2,d+b):Math.min(d+3*e/4-a/2,d+e-a-b);return new Tx(c,c+a)}
return"t"==d||"b"==d?e(this.A,c.x,a.left,a.width):"l"==d||"r"==d?e(this.A,c.y,a.top,a.height):new Tx(0,0)};h=Gy.prototype;h.bv=function(){this.L||(this.A&&bt(this.A,!0),this.B&&bt(this.B,!0),this.o&&(this.o.b=!0,at(this.g,Oy(this)?1:0),this.o.o(this.b,Iy(this))),this.G.isActive()&&this.G.stop(),this.L=!0,this.H=jt(this.D,Ky(this.C),function(a){this.Im.stop();this.Ve(a)}))};
h.Ve=function(){this.L&&(this.N?this.G.start():this.wq(),this.o&&(this.o.b=!1,at(this.g,Oy(this)?1:0),this.o.o(this.b,Iy(this))),this.L=!1,this.H&&(this.D.sa(this.H),this.H=null))};
h.wq=function(){this.A&&bt(this.A,!1);this.B&&bt(this.B,!1)};
h.ED=function(a){this.$=a;this.Im.pg()};
h.Fz=function(){var a=this.$,b=new ff(a.clientX,a.clientY),c=Qs(this.C.Da()),d=Py(c,this.K),c=(this.B&&ct(this.B)||this.A&&ct(this.A))&&Py(c,this.N);d&&d.contains(b)||c&&c.contains(b)?this.bv():this.Ve(a)};
h.show=function(){var a=this.b.b,a=(a&&0==a.g||"title"==this.b.style||"highlightText"==this.b.style?!1:!0)&&!this.o,b=!this.g,c="widget"==this.b.type;if(a){var d=Iy(this),e=null;"highlight"==this.b.type||"label"==this.b.style?e=new Cy:"popup"==this.b.style?e=new Dy:"anchored"==this.b.style?e=new By:"speech"==this.b.style&&(e=new Ey);e&&(e.o(this.b,d),this.o=e,d=e.la())&&(bt(d,!1),I(d,"annotation-type-"+this.b.type.toLowerCase()),this.aa(d))}if(b){d=["annotation"];"highlightText"!=this.b.style||d.push("annotation-no-mouse");
d.push("annotation-type-"+this.b.type.toLowerCase());this.g=K("DIV",d);bt(this.g,!1);this.b.B&&(this.F=K("DIV","inner-text"),"label"==this.b.style&&(I(this.F,"label-text"),this.F.style.backgroundColor=this.b.b.bgColor),Sf(this.F,this.b.B),this.g.appendChild(this.F));Li(this.g,"annotation_id",this.b.id);this.aa(this.g);naa(this,this.g);if(sx(this.b)&&this.b.showLinkIcon()){if(e=qx(this.b))d=this.g,e=new L(cu(e)),d.title=e.g+e.o;this.B=K("SPAN","annotation-link-icon");bt(this.B,!1);this.g.appendChild(this.B)}oaa(this);
sx(this.b)||(this.g.style.cursor="default")}c&&("subscribe"==this.b.style?rf("yt-uix-subscription-button",this.g)||wh(this.g,this.b.o):this.b.o&&wh(this.g,this.b.o));if(a||b){a:{a=this.b.g.b;if(a.length&&(a=cx(a[0]))){a=a.H;break a}a=0}this.g&&(this.g.style.zIndex=a);this.o&&this.o.la()&&(this.o.la().style.zIndex=a)}bt(this.g,!0);at(this.g,Oy(this)?1:0);Ny(this);this.o&&this.o.la()&&bt(this.o.la(),!0)};z(Qy,eq);Qy.C="AnnotationsModule";var paa={KK:"video-annotations",Gw:"video-custom-annotations",hx:"video-legacy-annotations"};Qy.A=function(a){switch(a.type){case "branding":case "promotion":return!0}return!1};
Qy.B=function(a){return"card"==a.type||"drawer"==a.type};
Qy.o=function(a){return Qy.Cb(a)?new Qy(a):null};
Qy.Cb=function(a){var b=S(a);return"leanback"==b.b?!1:!b.G.isEmpty()||Qy.b(b.g)?!0:us(a.getVideoData(),"iv3_module")};
Qy.g=function(){var a=K("DIV",["annotation","annotation-type-custom"]);bt(a,!1);return a};
Qy.b=function(a){switch(a){case "annotation-editor":case "live-dashboard":return!0}return!1};
h=Qy.prototype;h.xe=function(a,b){if(!Qy.b(S(this.b).g))return null;switch(a){case "loadCustomAnnotationsXml":var c=As(b);c&&Uy(this,c);return!0;case "removeCustomAnnotationById":return b&&this.g&&(mw(this.g,b),uw(this.b)),!0}return null};
h.Qf=function(){return Qy.b(S(this.b).g)?["loadCustomAnnotationsXml","removeCustomAnnotationById"]:[]};
h.Cb=function(){return Qy.Cb(this.b)};
h.create=function(){Qy.M.create.call(this);this.B.S(this.b,"onVideoAreaChange",x(this.X,this,"onVideoAreaChange"));this.B.S(this.b,"onHideControls",x(this.X,this,"onHideControls"));this.B.S(this.b,"onShowControls",x(this.X,this,"onShowControls"));this.B.S(this.b,"resize",x(this.X,this,"resize"));this.B.S(this.b,"presentingplayerstatechange",x(this.X,this,"presentingplayerstatechange"));this.C=new R(["div",["ytp-player-content","ytp-iv-player-content"]]);kw(this.b,this.C.element,4);this.A=new R(["div",
["ytp-iv-video-content"]]);this.A.element.appendChild(K("DIV","video-annotations",this.R,this.aa));var a=S(this.b),b=this.b.getVideoData();1!=(a.be||b.Dd)&&null===a.G.get(b.videoId)||this.load()};
h.destroy=function(){Hx(this.B);me(this.b.Da(),"ytp-iv-drawer-open");this.C.detach();this.C.dispose();this.A.dispose();Qy.M.destroy.call(this)};
h.ys=function(){if(this.A){var a=Jy(Ky(this.b),!0);Xs(this.A.element,a.width,a.height);Ms(this.A.element,a.left,a.top)}};
h.gE=function(a){P(a.state,2)&&(az(this)&&bz(this)&&2!=this.b.getPresentingPlayerType()&&cz(this,!1),dz(this,!1))};
h.load=function(){Qy.M.load.call(this);this.J++;var a=this.b.getVideoData(),b=a.videoId,c=x(this.aD,this,b,this.J);Ix()&&(c=Vy(this,c));c={format:"XML",Ac:c,Zc:{}};a.isPharma&&(c.Zc.pharma="1");c.method="POST";c.withCredentials=!0;var d=S(this.b);"gaming"==d.g&&(c.Zc.gaming="1");(b=d.G.get(b))&&Wy(c,b);a.Xf&&(b=b&&b.sf,a.Zo&&!b||bk(a.Xf,c));kw(this.b,this.A.element,4);this.ys()};
h.unload=function(){ov(this.G,{"iv-event":1});gq(this);Pb(this.o,function(a){a.destroy()});
Pb(this.K,function(a){a.destroy()});
this.H=null;this.g&&(this.g.destroy(),this.g=null,uw(this.b));this.o={};this.K={};Qy.M.unload.call(this);this.A.detach()};
h.aD=function(a,b,c){if(!Sy(this,b,a)&&(a=Wj(c)&&c.responseXML?c.responseXML:null)){Uy(this,a);I(this.b.Da(),this.Ma+"-loaded");a=[];for(var d in this.o){b=this.o[d].annotation;if(b.g)if(c=b.g,c.b.length)if(c=c.b[0].g||c.b[0].b||c.b[0].o,!c||2>c.length)c=null;else{var e=c.length-1;c=0>=c[0].t&&0>=c[e].t?null:{start:c[0].t,end:c[e].t}}else c=null;else c=null;if(e=c)if(c=1E3*e.start,e=1E3*e.end,0==c&&(c++,e++),!(e<c)){var f={id:d};"marker"==b.type&&(f.style="ytp-chapter-marker",f.tooltip=b.B,f.visible=
!0);b=new bq(c,e,f);a.push(b)}}this.vb(a)}};
h.iF=function(a){this.D&&a==this.b.getVideoData().videoId&&(this.loaded?taa(this):this.load())};
h.Xd=function(a){Qy.M.Xd.call(this,a);a=a.getId();var b=this.o[a];b&&!b.B&&(b=b.annotation,Xy(this,a),kv(this.G,b.$a))};
h.pe=function(a){Qy.M.pe.call(this,a);Yy(this,a.getId())};
h.uq=function(a){if(a){a.isVisible=!1;if(a.b){Rx(a);var b=a.b;b.g&&bt(b.g,!1);b.o&&b.o.la()&&bt(b.o.la(),!1);b.J&&(b.D.sa(b.J),b.J=null)}$y(this,"shown",!1,a.annotation.id);this.Mi(a.annotation,"hidden")}};
h.Pt=function(a){a&&(a.show(),$y(this,"shown",!0,a.annotation.id),this.Mi(a.annotation,"shown"))};
h.eF=function(a,b,c){var d=this.o[a];if(d&&b.value!=c){b.value=c;var e=!1;ux(d.annotation,function(a){e|=a.value});
vaa(this,a,b,e)}};
h.WB=function(a){if(a&&a.id){var b=qx(a);if(b){var c=cu(b);if(c){var d=x(this.Mi,this,a,"click"),e=this.b.getVideoData();if("new"==ju(c,b.target)||Zy(this,b,e.videoId))d(),d=null;lv(this.G,a.$a,d)}}}};
h.Mi=function(a,b){tx(a,function(c){if(c.b==b&&"openUrl"==c.type){var d=this.b.getVideoData(),e;if(!(e=!Zy(this,c.url,d.videoId))){e=gu(c.url);var f=fu(c.url);if(e){if(d.videoId==e)this.b.seekTo(f||0);else{var k=Ty(this).g;J9(k.app,e,void 0,void 0,void 0,void 0);f&&wJ(Ty(this).g)&&Ty(this).g.seekTo(f)}e=!0}else e=!1;e=!e}e&&(d=iu(c.url,a.id,d.videoId,S(this.b)))&&(this.b.pauseVideo(),e=ju(d,c.url.target),c=d,d="current"==e?"_top":void 0,e=Qj(c),f=null,"ei"in e&&(f={ei:e.ei},c=$g(c,"ei")),tr(c,f),
ur(c,d))}},this)};
h.jD=function(){$y(this,"playerControlShow",!1)};
h.JE=function(){$y(this,"playerControlShow",!0)};
h.cI=function(a){$y(this,"rollOver",!0,a.id)};
h.Ve=function(a){$y(this,"rollOver",!1,a.id)};
h.xC=function(a){if(a||a.id)this.o[a.id].B=!0,Yy(this,a.id),a&&(mv(this.G,a.$a),this.Mi(a,"close")),$y(this,"closed",!0,a.id)};
h.T=function(){for(var a=this.N,b=0,c=a.length;b<c;b++)Kx(a[b]);this.N.length=0;Qy.M.T.call(this)};var HB=/^#(?:[0-9a-f]{3}){1,2}$/i,lC="default monoSerif propSerif monoSans propSans casual cursive smallCaps".split(" "),kC=["none","raised","depressed","uniform","dropShadow"],Xra=["left","right","center"],dC={windowColor:"#080808",Rg:0,textAlign:2,yi:7,oj:50,Sj:100,Ka:{background:"#080808",fd:.75,fe:0,color:"#fff",fontFamily:4,fg:0,Xe:1,offset:1}};var r$=[{option:"#fff",message:"YTP_COLOR_WHITE"},{option:"#ff0",message:"YTP_COLOR_YELLOW"},{option:"#0f0",message:"YTP_COLOR_GREEN"},{option:"#0ff",message:"YTP_COLOR_CYAN"},{option:"#00f",message:"YTP_COLOR_BLUE"},{option:"#f0f",message:"YTP_COLOR_MAGENTA"},{option:"#f00",message:"YTP_COLOR_RED"},{option:"#080808",message:"YTP_COLOR_BLACK"}],s$=[{option:0,text:"0%"},{option:.25,text:"25%"},{option:.5,text:"50%"},{option:.75,text:"75%"},{option:1,text:"100%"}],L6=[{option:"fontFamily",message:"YTP_FONT_FAMILY",
options:[{option:1,message:"YTP_FONT_FAMILY_MONO_SERIF"},{option:2,message:"YTP_FONT_FAMILY_PROP_SERIF"},{option:3,message:"YTP_FONT_FAMILY_MONO_SANS"},{option:4,message:"YTP_FONT_FAMILY_PROP_SANS"},{option:5,message:"YTP_FONT_FAMILY_CASUAL"},{option:6,message:"YTP_FONT_FAMILY_CURSIVE"},{option:7,message:"YTP_FONT_FAMILY_SMALL_CAPS"}]},{option:"color",message:"YTP_FONT_COLOR",options:r$},{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:r$},{option:"backgroundOpacity",message:"YTP_BACKGROUND_OPACITY",options:s$},{option:"windowColor",message:"YTP_WINDOW_COLOR",options:r$},{option:"windowOpacity",message:"YTP_WINDOW_OPACITY",options:s$},{option:"charEdgeStyle",message:"YTP_CHAR_EDGE_STYLE",options:[{option:0,message:"YTP_EDGE_STYLE_NONE"},{option:4,message:"YTP_EDGE_STYLE_DROP_SHADOW"},
{option:1,message:"YTP_EDGE_STYLE_RAISED"},{option:2,message:"YTP_EDGE_STYLE_DEPRESSED"},{option:3,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%"}]}];lc("A AREA BUTTON HEAD INPUT LINK MENU META OPTGROUP OPTION PROGRESS STYLE SELECT SOURCE TEXTAREA TITLE TRACK".split(" "));var fz={qB:function(a,b){var c=a[0];a[0]=a[b%a.length];a[b]=c},
j2:function(a){a.reverse()},
jX:function(a,b){a.splice(0,b)}};var eG=jz("auto","large",!1),lz=jz("auto","auto",!1);hz.prototype.isLocked=function(){return this.o&&!!this.g&&this.g==this.b};
hz.prototype.A=function(a){if(!a.video)return!1;a=iz[a.video.quality];return this.g<=a&&(!this.b||this.b>=a)};z(oz,pk);oz.prototype.remove=function(a){var b=this.get(a);delete this.b[a];return b};
oz.prototype.get=function(a){return this.b[a]||null};
oz.prototype.isEmpty=function(){return cc(this.b)};var hA,KA;var t$=sc,t$=t$.toLowerCase();if(-1!=t$.indexOf("android")){var u$=t$.match(/android\D*(\d\.\d)[^\;|\)]*[\;\)]/);if(u$)hA=Number(u$[1]);else{var v$={cupcake:1.5,donut:1.6,eclair:2,froyo:2.2,gingerbread:2.3,honeycomb:3,"ice cream sandwich":4,jellybean:4.1},w$=t$.match("("+Yb(v$).join("|")+")");hA=w$?v$[w$[0]]:0}}else hA=void 0;KA=0<=hA;var D5,yaa=['video/mp4; codecs="avc1.42001E, mp4a.40.2"','video/webm; codecs="vp8.0, vorbis"'],zaa=['audio/mp4; codecs="mp4a.40.2"'];var Aaa=/^([0-9\.]+)\:([0-9\.]+)$/;Az.prototype.then=function(a,b,c){try{if(p(this.g))return a?Id(a.call(c,this.g)):Id(this.g);if(p(this.b)){if(!b)return Jd(this.b);var d=b.call(c,this.b);return!p(d)&&this.b instanceof Yd?Jd(this.b):Id(d)}throw Error("Invalid Result_ state");}catch(e){return Jd(e)}};
Bd(Az);var Dz={format:"RAW",method:"GET",timeout:5E3,withCredentials:!0},Bz=null;var Waa={NO:"red",BQ:"white",RK:"blue"};Jz.prototype.Z=function(a){return"true"==this.flags[a]};
Jz.prototype.b=function(a){return(0,window.parseFloat)(this.flags[a])};
Jz.prototype.F=function(a){return this.flags[a]?this.flags[a].toString():""};var sca={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",250:"o",251:"o",194:"*",195:"*",220:"*",221:"*",196:"*",197:"*",198:"V",
279:"(",280:"(",273:"(",274:"(",275:"(",276:"(",314:"(",277:"("};var oA={name:"width",video:!0,valid:640,xg:99999},pA={name:"height",video:!0,valid:360,xg:99999},qA={name:"framerate",video:!0,valid:30,xg:9999},sA={name:"bitrate",video:!0,valid:3E5,xg:2E9},rA={name:"eotf",video:!0,valid:"bt709",xg:"catavision"},tA={name:"channels",video:!1,valid:2,xg:99},uA={ti:oA,mi:pA,o:qA,mo:sA,g:rA,b:tA};Kz.prototype.toString=function(){return this.languageCode+"_"+this.languageName+"_"+this.b+"_"+this.id+"_"+this.isDefault};Lz.prototype.toString=function(){return this.g+": "+Mz(this)+" - "+this.D};
Lz.prototype.H=function(a){return a?this.toString()==a.toString():!1};Oz.prototype.b=function(){return this.Vb};
Oz.prototype.toString=function(){return this.Vb.name};
Oz.prototype.getLanguageInfo=Oz.prototype.b;var Caa=function(){if(yA)return Qz(/Firefox\/([0-9.]+)/);if(wf||TF||Dc)return yc;if(bm)return Qz(/Chrome\/([0-9.]+)/);if(Iz&&!(wc()||uc("iPad")||uc("iPod")))return Qz(/Version\/([0-9.]+)/);if(IA||HA){var a=/Version\/(\S+).*Mobile\/(\S+)/.exec(sc);if(a)return a[1]+"."+a[2]}else if(JA)return(a=Qz(/Android\s+([0-9.]+)/))?a:Qz(/Version\/([0-9.]+)/);return""}();Sz.prototype.start=function(){return 0};
Sz.prototype.end=function(){return window.Infinity};
Sz.prototype.length=1;h=Tz.prototype;h.addEventListener=function(){};
h.removeEventListener=function(){};
h.dispatchEvent=function(){};
h.abort=function(){};
h.remove=function(){};
h.appendBuffer=function(){};Uz.prototype.dispose=function(){if(!this.o){if(this.b)try{window.URL.revokeObjectURL(this.A)}catch(a){}this.o=!0}};
Uz.prototype.isDisposed=function(){return this.o};h=Xz.prototype;h.append=function(a){this.g.webkitSourceAppend(this.o,a)};
h.abort=function(){this.g.webkitSourceAbort(this.o)};
h.HG=function(){return this.g.webkitSourceState==this.g.SOURCE_CLOSED?new Daa:this.g.webkitSourceBuffered(this.o)};
h.JG=function(){return this.A};
h.NG=function(a){this.A=a;this.g.webkitSourceTimestampOffset(this.o,a)};h=Yz.prototype;h.addEventListener=function(a,b,c){this.b.addEventListener(a,b,c)};
h.removeEventListener=function(a,b,c){this.b.removeEventListener(a,b,c)};
h.aJ=function(){return this.b.webkitMediaSourceURL};
h.addSourceBuffer=function(a){var b=(this.o++).toString();this.b.webkitSourceAddId(b,a);a=new Xz(this.b,b);this.sourceBuffers.push(a);return a};
h.removeSourceBuffer=function(a){for(var b=0;b<this.sourceBuffers.length;b++)if(a===this.sourceBuffers[b]){this.b.webkitSourceRemoveId(a.o);for(a=b+1;a<this.sourceBuffers.length;a++)this.sourceBuffers[a-1]=this.sourceBuffers[a];this.sourceBuffers.pop();break}};
h.KG=function(){switch(this.b.webkitSourceState){case this.b.SOURCE_CLOSED:return"closed";case this.b.SOURCE_OPEN:return"open";case this.b.SOURCE_ENDED:return"ended"}return""};
h.endOfStream=function(a){var b=this.b.EOS_NO_ERROR;"network"==a?b=this.b.EOS_NETWORK_ERR:"decode"==a&&(b=this.b.EOS_DECODE_ERR);this.b.webkitSourceEndOfStream(b)};
h.LG=function(){kb(this.sourceBuffers)};
h.IG=function(){return this.g};
h.MG=function(a){this.g=a;this.b.webkitSourceSetDuration&&this.b.webkitSourceSetDuration(a)};z(Zz,Fx);Zz.prototype.H=function(){if(!this.isDisposed()&&$z(this)&&!(0,window.isNaN)(this.A)){this.o.duration=this.A;this.A=window.NaN;try{this.b=this.o.addSourceBuffer(this.F),this.L?this.g=this.o.addSourceBuffer(this.J):this.g=new Tz,this.B&&(this.B(this),this.B=null)}catch(a){this.C&&this.C(a)}}};
Zz.prototype.G=function(){this.dispose()};var Iaa={52:!0,53:!0,54:!0,55:!0,60:!0,79:!0,87:!0};gA.prototype.g=function(){return null};var Naa="9h 9 h 8 ( H *".split(" "),zA="h98H(*".split(""),Paa="oMavAV".split(""),Saa=["sa"],Raa="moMavAV".split(""),Qaa="aoMvAV".split(""),Oaa=["f"],Kaa={'video/mp4; codecs="avc1.42001E, mp4a.40.2"':"maybe"},Laa={"application/x-mpegURL":"maybe"},Jaa={"application/x-mpegURL":"maybe"};var SA={"ad-trueview-indisplay-pv":6,"ad-trueview-insearch":7},TA={"ad-trueview-indisplay-pv":2,"ad-trueview-insearch":2},GA="blogger books docs google-live play picasaweb gmail".split(" ");z(QA,G);var UA={TK:"cbrand",UK:"cbr",VK:"cbrver",QM:"c",TM:"cver",SM:"ctheme",RM:"cplayer",uN:"cmodel",ZN:"cnetwork",iO:"cos",jO:"cosver",oO:"cplatform"};
QA.prototype.getVideoUrl=function(a,b,c,d,e){b={list:b};c&&(e?b.time_continue=c:b.t=c);c=YA(this);d&&"www.youtube.com"==c?d="https://youtu.be/"+a:(d=this.ba+"://"+c+"/watch",b.v=a,lA&&(a=q("yt.www.ads.biscotti.lastId_")||"")&&(b.ebc=a));return Ug(d,b)};
QA.prototype.isAd=function(){return"adunit"==this.b};z(eB,R);h=eB.prototype;h.Fb=function(){return this.type};
h.$e=function(a,b,c,d,e,f){var k=b.Ka;if(!this.b||f)e=e||this.o,jB(this),this.b={},ra(this.b,a),ra(this.b,this.A.params),ra(this.b,b),f={},ra(f,a.Ka),this.A.params.Ka&&ra(f,this.A.params.Ka),b.Ka&&ra(f,b.Ka),this.b.Ka=f,this.J=d/360*16,this.F=this.J*fB(f),a="",this.b.Rg&&(a=Cw(this.b.windowColor),a="rgba("+a[0]+","+a[1]+","+a[2]+","+this.b.Rg+")"),b={"background-color":a,display:!1===this.b.isVisible?"none":"","text-align":Xra[this.b.textAlign]},this.$&&(b["border-radius"]=a?this.F/8+"px":""),Gs(this.element,
b),this.element.setAttribute("dir",1==this.b.Ng?"rtl":"ltr");this.Hh(e,c,k)};
h.Hh=function(a,b,c){var d=this.b.yi,e=!1,f=!1;switch(d){case 0:case 1:case 2:e=!0;break;case 6:case 7:case 8:f=!0}J(this.element,"ytp-caption-window-top",e);J(this.element,"ytp-caption-window-bottom",f);f=this.cq();e=this.bq();b*=.96;f>b&&(f=b);Gs(this.element,{top:0,left:0,right:"",bottom:"",width:f?f+"px":"96%",height:e?e+"px":"96%",margin:"",transform:""});this.Vk(a,c);a={transform:"",top:"",left:""};f||(a.width="");e||(a.height="");c=.96*this.b.oj+2;switch(d){case 0:case 3:case 6:a.left=c+"%";
break;case 1:case 4:case 7:a.left=c+"%";c=this.B.offsetWidth;f||c?(f=f||c+1,a.width=f+"px",a["margin-left"]=f/-2+"px"):a.transform+=" translateX(-50%)";break;case 2:case 5:case 8:a.right=100-c+"%"}f=.96*this.b.Sj+2;switch(d){case 0:case 1:case 2:a.top=f+"%";break;case 3:case 4:case 5:a.top=f+"%";(d=e||this.B.offsetHeight)?(a.height=d+"px",a["margin-top"]=d/-2+"px"):a.transform+=" translateY(-50%)";break;case 6:case 7:case 8:a.bottom=100-f+"%"}Gs(this.element,a)};
h.Vk=function(a,b){for(var c=0;c<a.length&&a[c]==this.o[c];c++);if(this.G||this.o.length>c)c=0,jB(this);for(;c<a.length;c++){var d=a[c],e={};ra(e,this.b.Ka);ra(e,d.g);b&&ra(e,b);iB(this,d,e)}};
h.cq=function(){return 0};
h.bq=function(){return 0};z(nB,G);h=nB.prototype;h.qj=v;h.$p=function(a){var b=this.b.g,c=kB(this.b,!0);a&&0>b&&0<c.length&&(b=0);return 0>b?null:c[b]};
h.Ne=function(){return null};
h.rj=v;h.seek=function(){};
h.nn=function(){};
h.og=v;h.T=function(){nB.M.T.call(this);this.nn()};z(oB,nB);h=oB.prototype;h.qj=function(a,b){this.isDisposed();var c=this.og(a),d=x(function(c){this.o=null;b(c.responseText,a)},this);
this.o&&this.o.abort();this.o=bk(c,{format:"RAW",rb:d,withCredentials:!0});this.g&&this.g.Qi!=a&&(this.g.rl=a)};
h.rj=function(a,b,c,d){this.A=c;if(this.g=d||null)for(b=0;b<this.g.captionTracks.length;b++)mB(this.b,this.g.captionTracks[b]);a()};
h.og=function(a){var b=a.G,c={};if(this.A||a.A)c.fmt=this.A||"srv"+a.A;a.b&&(c.tlang=a.b.languageCode);return Sj(b,c)};
h.Ne=function(){return this.g?this.g.Qi:null};
h.$p=function(){return this.g?this.g.rl:null};
h.T=function(){this.o&&this.o.abort();oB.M.T.call(this)};pB.prototype.contains=function(a){a=Ab(this.ra,a);return 0<=a||0>a&&1==(-a-1)%2};
pB.prototype.length=function(){return this.ra.length/2};z(qB,G);qB.prototype.T=function(){Wi(this.g);this.g=window.NaN;this.o=!0;this.A&&this.A.abort()};
qB.prototype.resume=function(){this.o=!1;Wi(this.g);this.seek(this.F.getCurrentTime());eba(this)};
qB.prototype.seek=function(a){this.b=$a(this.G.ng(a).b)};
qB.prototype.H=function(a){this.isDisposed();null==a.responseText||400<=a.status||this.o||null===this.C||this.C(a.responseText,1E3*this.B.b[0].startTime);this.A=this.B=null};z(wB,nB);h=wB.prototype;h.qj=function(a,b){dba(this.g,function(c,d){b(c,a,d)});
this.g.G=this.o.b[a.g];this.g.resume()};
h.rj=function(a){mB(this.b,new Lz({format:1,languageCode:"en",languageName:"English",name:"",is_servable:!0,is_default:!0,is_translateable:!1}));a()};
h.seek=function(a){this.g.seek(a)};
h.nn=function(){var a=this.g;Wi(a.g);a.g=window.NaN;a.o=!0};
h.og=function(){return""};
h.T=function(){this.g.dispose();wB.M.T.call(this)};z(xB,eB);var Yra={Yl:!0};xB.prototype.Vk=function(a,b){var c,d=this.A.Wf;xB.M.Vk.call(this,a,b);var e,f;for(c=a.length;c<d.length;c++){var k=d[c];f&&k.g==e||(f={},ra(f,this.b.Ka),ra(f,k.g),b&&ra(f,b),ra(f,Yra));iB(this,k,f,!0);e=k.g}};z(yB,eB);h=yB.prototype;h.zE=function(){me(this.element,"ytp-rollup-mode");var a=this.L||this.o,b=this.R;this.L=null;this.Hh(a,b,this.N)};
h.cq=function(){var a=this.A.params.Hp;if(!this.H&&a){var b=window.document.createElement("span");Sf(b,"\u00a0"+La("\u2014",a)+"\u00a0");Gs(b,gB(this,this.b.Ka));this.B.appendChild(b);this.H=b.offsetWidth;this.B.removeChild(b)}return this.H};
h.$e=function(a,b,c,d,e,f){f&&(this.H=window.NaN);yB.M.$e.call(this,a,b,c,d,e,f)};
h.bq=function(){return 1.32*this.A.params.Eh*this.F};
h.Hh=function(a,b,c){this.N=c;this.R=b;for(var d=0,e=0;d<this.o.length&&e<a.length;d++)this.o[d]==a[e]&&e++;var f=hB(a),k=!1,d=0;if(0<e&&e<a.length){var e=this.o.concat(a.slice(e)),l=hB(e)-f;0<l&&(this.L=a,a=e,d-=l,k=!0)}f<this.A.params.Eh&&(k=!0,d+=this.A.params.Eh-f);!(0,window.isNaN)(this.K)&&k&&(I(this.element,"ytp-rollup-mode"),this.ba.start());d!=this.K&&(f="",d&&(f="translateY("+Math.ceil(1.32*d*this.F)+"px)"),Gs(this.B,"transform",f),this.K=d);yB.M.Hh.call(this,a,b,c)};z(zB,bq);z(AB,bq);z(CB,nB);CB.prototype.qj=function(a,b){this.isDisposed();var c=this.og(a),d=x(function(c){this.g=null;b(c.responseText,a)},this);
this.g&&this.g.abort();this.g=bk(c,{format:"RAW",rb:d,withCredentials:!0});$aa(this.b,a)};
CB.prototype.rj=function(a,b,c){var d=this.o;b={type:"list",tlangs:1,v:this.A,fmts:Number(b||!1),vssids:1};this.$q&&(b.asrs=1);d=Sj(d,b);b=x(function(b){this.g=null;if((b=b.responseXML)&&b.firstChild){for(var d=this.b,k=b.getElementsByTagName("track"),l=k.length,m=0;m<l;m++){var n=k[m].getAttribute("formats"),t=c,u=k[m].getAttribute("lang_code"),y=k[m].getAttribute("lang_translated"),E=k[m].getAttribute("name"),D=k[m].getAttribute("kind"),W=k[m].getAttribute("id"),O="true"==k[m].getAttribute("lang_default"),
Q="true"==k[m].getAttribute("cantran"),bb=k[m].getAttribute("vss_id");mB(d,new Lz({formats:n,format:t,languageCode:u,languageName:y,name:E,kind:D,id:W,is_servable:!0,is_default:O,is_translateable:Q,vss_id:bb}))}b=b.getElementsByTagName("target");d=b.length;for(k=0;k<d;k++)l=b[k].getAttribute("lang_code"),m=b[k].getAttribute("lang_translated"),n=b[k].getAttribute("lang_original"),t=b[k].getAttribute("id"),u="true"==b[k].getAttribute("lang_default"),l={languageCode:l,languageName:m,languageOriginal:n,
id:t,is_default:u},this.C[l.languageCode]=l.languageName,this.B.push(new Kz(l))}a()},this);
this.g&&this.g.abort();this.g=bk(d,{format:"RAW",rb:b,withCredentials:!0})};
CB.prototype.og=function(a){var b=this.o,c={v:this.A,type:"track",lang:a.g,name:a.B,kind:a.o,fmt:a.A};a.b&&(c.tlang=a.b.languageCode);return b=Sj(b,c)};
CB.prototype.T=function(){this.g&&this.g.abort();CB.M.T.call(this)};z(FB,DB);z(IB,DB);z(QB,DB);z(UB,DB);var iba=0,gba=/^NOTE/,fba=/(?:\r\n|\r|\n){2,}/,RB=RegExp("^((?:[\\d]{2}:)?[\\d]{2}:[\\d]{2}\\.[\\d]{3})[\\t ]+--\x3e[\\t ]+((?:[\\d]{2}:)?[\\d]{2}:[\\d]{2}\\.[\\d]{3}).*(?:\r\n|\r|\n)","gm"),hba=/<((?:[\d]{2}:)?[\d]{2}:[\d]{2}\.[\d]{3})>/;z(WB,eq);h=WB.prototype;h.create=function(){WB.M.create.call(this);this.B=this.b.getVideoData();VB(this)||this.aa.S(this.b,"resize",this.au);this.aa.S(this.b,"onPlaybackAudioChange",this.fC);var a=lq(this,"display-settings")||{};if(a.migrated)eC(this,a);else{gc(a,Zra)&&(a={});for(var b in a)a[b+"Override"]=!0;eC(this,a,!0)}YB(this)&&this.load()};
h.destroy=function(){Hx(this.aa);WB.M.destroy.call(this)};
h.load=function(){this.ia="1"==this.B.A.cc_auto_caps||"1"==this.V.J.cc_auto_caps;WB.M.load.call(this);if(this.B.xa)this.o=new wB(this.B.b,this.b),this.da=this.aa.S(this.b,"seekto",this.fI);else{var a=this.B.Eo||this.V.sb||this.B.Od("yt:cc_default_lang")||this.V.qa,a=a&&a.split("_").join("-");this.B.captionTracks.length?this.o=new oB(this.B):this.o=new CB(this.B.bc,this.B.videoId,a,this.B.Tb)}$B(this)};
h.unload=function(){this.F&&(cC(this),this.Tm("control_subtitles_set_track"));if(VB(this))for(var a=pf("track",void 0,this.J.b),b=0;b<a.length;b++)If(a[b]);else jC(this,!1),ZB(this),this.da&&this.aa.sa(this.da),this.o.dispose(),this.o=null;this.K=this.ca=!1;WB.M.unload.call(this)};
h.Gs=function(){if(VB(this))for(var a=kB(this.o.b,!0),b=0;b<a.length;b++){var c=a[b],d={kind:"subtitles",label:Mz(c),srclang:c.g,src:this.o.og(c)};c.isDefault&&(d["default"]=1);this.Y.app.o.jp([K("TRACK",d)])}else if(c=this.K||XB(this,!this.ca),a=kB(this.o.b,!0),0<a.length){this.ca=!0;b=this.g&&-1!=a.indexOf(this.g);if(c&&!b)if(c=this.o.$p(),!c&&this.K&&(c=a[0]),c)this.ga=!0,aC(this,c),b=!0;else if(a=this.o.b.o,a.length&&(a=a[0].toString(),this.K||this.ia))a=aba(this.o,a),aC(this,a,void 0),b=!0;this.b.za("onCaptionsTrackListChanged");
b||bC(this)}else if(this.o.Ne())bC(this);else if(a=jq(this.b),b=nJ(a,this.Ma))pb(a.b,b),b.destroy()};
h.Hs=function(a,b,c){VB(this);if(a&&b==this.g){a=kba(a,b,c);this.ga&&(this.ga=!1,this.b.za("onCaptionsTrackListChanged"));c={trackName:b.B,trackKind:b.o};b.b?(c.trackLangCode=b.b.languageCode,c.fromLangCode=b.g):c.trackLangCode=b.g;this.log(c);if(this.g!=this.o.Ne()){if(this.K&&!$A(this.V)&&"WEB_UNPLUGGED"!=this.V.o.c){this.H||(b=BB({yi:0,oj:5,Sj:5,Eh:2,textAlign:0,Ng:0}),this.H=new eB(b));kw(this.b,this.H.element,4);c=N("YTP_CLICK_FOR_SETTINGS").split("$GEAR_ICON");var d;b=new Iq(Kh());H(this.H,
b);d=b.element;b=this.H.A.id;c=[new zB(0,0,0,b,c[0]),new zB(0,0,0,b,d,!0),new zB(0,0,0,b,c[1],!0)];(d=Mz(this.g))&&c.unshift(new zB(0,0,0,b,d));b=this.J.Ia().width;d=Jy(this.J,!0).height;this.H.$e(this.A,this.C,b,d,c);this.ma.te()}(this.K||$A(this.V))&&mq(this,"module-enabled",!0);hC(this.b)}this.vb(a.g.concat(a.b))}};
h.Xd=function(a){this.$.push(a);this.ha.te()};
h.pe=function(a){pb(this.$,a);this.ha.te()};
h.MF=function(a){if(this.g)if(a instanceof AB){var b=this.N[a.id];b&&b.A!=a&&(b.dispose(),delete this.N[a.id],b=null);if(!b){var b=this.N,c=a.id;a:switch(null!=a.params.Hm?a.params.Hm:a.params.wG?2:1<a.Wf.length?1:0){case 1:a=new xB(a);break a;case 2:a=new yB(a);break a;default:a=new eB(a)}b=b[c]=a;J(b.element,"captions-asr","asr"==this.g.o)}}else b=a.o,this.R[b]||(this.R[b]=[]),this.R[b].push(a)};
h.XF=function(){this.H.detach();this.H.dispose();this.H=null};
h.on=function(){VB(this);this.ha.stop();dc(this.R);this.$.sort(dq);F(this.$,this.MF,this);var a=this.J.Ia().width,b=Jy(this.J,!0).height;Pb(this.N,function(c,d){!this.R[d]||this.G?(c.dispose(),delete this.N[d]):(c.element.parentNode||kw(this.b,c.element,4),c.$e(this.A,this.C,a,b,this.R[d]))},this)};
var Zra={background:"#080808",backgroundOpacity:1,charEdgeStyle:3,color:"#fff",fontFamily:4,fontSizeIncrement:0,textOpacity:1,windowColor:"#080808",windowOpacity:0};h=WB.prototype;h.au=function(){if(!VB(this)){var a=this.J.Ia().width,b=Jy(this.J,!0).height;Pb(this.N,function(c){c.$e(this.A,this.C,a,b,void 0,!0)},this);
this.G&&this.G.$e(this.A,this.C,a,b,void 0,!0);this.H&&this.H.$e(this.A,this.C,a,b,void 0,!0);this.on()}};
h.xe=function(a,b){switch(a){case "fontSize":if((0,window.isNaN)(b))break;var c=af(b,-2,4);gC(this,{fontSizeIncrement:c});return c;case "reload":b&&$B(this);break;case "stickyLoading":void 0!=b&&this.V.Ra&&mq(this,"module-enabled",!!b);break;case "track":if(b){if(VB(this))break;if(!ka(b))break;if(cc(b)){iC(this);break}for(var d,e=kB(this.o.b,!0),c=0;c<e.length;c++){var f=e[c];f.g!=b.languageCode||d&&f.C!=b.languageName||(d=b.translationLanguage?Baa(f,b.translationLanguage):f)}d&&aC(this,d,!0)}else return this.g&&
this.g!=this.o.Ne()?Nz(this.g):{};return"";case "tracklist":return this.ca?M(kB(this.o.b,b&&b.includeAsr),function(a){return Nz(a)}):[];
case "translationLanguages":return this.ca?this.o.B:[];case "displaySettings":d=fC(this);if($A(this.V)&&b&&ka(b))if(b.reset)eC(this,{},!0);else{f={};for(c in b)switch(c){case "color":case "background":case "windowColor":f[c]=mba(b[c],d[c]);break;case "textOpacity":case "backgroundOpacity":case "windowOpacity":f[c]=nba(b[c],d[c]);break;case "charEdgeStyle":f[c]=oba(b[c],d[c]);break;case "fontSizeIncrement":f[c]=qba(b[c],d[c]);break;case "fontFamilyOption":f.fontFamily=pba(b[c],d[c])}for(e in f)f[e+
"Override"]=!0;gC(this,f,!0);d=fC(this)}d.fontFamilyOption=lC[d.fontFamily];d.charEdgeStyle=kC[d.charEdgeStyle];return d;case "sampleSubtitles":VB(this)||void 0==b||jC(this,!!b);break;case "xmlTrack":b&&this.V.Ra&&(ZB(this),VB(this)||(c=b.xml,this.g=new Lz({languageName:b.name}),this.Hs(c,this.g)))}};
h.Qf=function(){var a="reload fontSize track tracklist translationLanguages displaySettings sampleSubtitle".split(" ");this.V.Ra&&a.push("stickyLoading","xmlTrack");return a};
h.Cb=function(a){if("lb3"==S(a).g)return!1;a=a.getVideoData();var b;if(b=a.xa)b=a.b,b=!(!b||null==b.b.en);return!!(a.bc||a.captionTracks.length||b)};
h.yj=function(a){a?ZB(this):this.loaded&&(this.unload(),this.load())};
h.fI=function(){this.o.seek(this.b.getCurrentTime())};
h.ai=function(){var a=this.g;return a?{cc:a.D}:null};
h.fC=function(){this.B.captionTracks.length&&(this.loaded?$B(this):YB(this)&&this.load())};oC.prototype.forEach=function(a){for(var b=this.g+1;b<this.b.length;b++)a(this.b[b]||0);for(b=0;b<=this.g;b++)a(this.b[b]||0)};
oC.prototype.Pa=function(){var a=[];this.forEach(x(a.push,a));return a};
oC.prototype.clear=function(){for(var a=this.b.length,b=0;b<a;b++)this.b[b]=0;this.g=this.b.length-1};rC.prototype.b=function(a,b){var c=Math.pow(this.B,a);this.g=b*(1-c)+c*this.g;this.A+=a};
rC.prototype.o=function(){return this.g/(1-Math.pow(this.B,this.A))};var yC=null;zC.prototype.g=function(){var a=q("gapi.config.update");a("googleapis.config/auth/useFirstPartyAuth",!0);var b=this.b.apiaryHost;A(B(b))||a("googleapis.config/root",(-1==b.indexOf("://")?"//":"")+b);b=this.b.ip;A(B(b))||a("googleapis.config/root-1p",(-1==b.indexOf("://")?"//":"")+b);a("googleapis.config/sessionIndex",Ri("SESSION_INDEX"));q("gapi.client.setApiKey")(this.b.innertubeApiKey)};CC.prototype.toString=function(){return this.topic};var $ra=q("yt.pubsub2.instance_")||new sg;sg.prototype.subscribe=sg.prototype.subscribe;sg.prototype.unsubscribeByKey=sg.prototype.Mc;sg.prototype.publish=sg.prototype.Rb;sg.prototype.clear=sg.prototype.clear;g.ba("yt.pubsub2.instance_",$ra,void 0);var FC=q("yt.pubsub2.subscribedKeys_")||{};g.ba("yt.pubsub2.subscribedKeys_",FC,void 0);var HC=q("yt.pubsub2.topicToKeys_")||{};g.ba("yt.pubsub2.topicToKeys_",HC,void 0);var GC=q("yt.pubsub2.isAsync_")||{};g.ba("yt.pubsub2.isAsync_",GC,void 0);
g.ba("yt.pubsub2.skipSubKey_",null,void 0);var LC=window.performance||window.mozPerformance||window.msPerformance||window.webkitPerformance||{};z(KC,BC);var DC=new CC("timing-sent",KC);var Dba={vc:!0},Aba=/^mark_/i,WC={ad_at:"adType",cpn:"clientPlaybackNonce",csn:"clientScreenNonce",yt_lt:"loadType",yt_ad:"isMonetized",yt_ad_pr:"prerollAllowed",yt_red:"isRedSubscriber",yt_vis:"isVisible"},Bba=["isMonetized","prerollAllowed","isRedSubscriber","isVisible"],Cba=x(LC.clearResourceTimings||LC.webkitClearResourceTimings||LC.mozClearResourceTimings||LC.msClearResourceTimings||LC.oClearResourceTimings||r,LC);vD.prototype.toString=function(){return this.start+"-"+(null==this.end?"":this.end)};yD.prototype.start=function(){this.g=!0};
yD.prototype.reset=function(){this.b=this.g=!1};OD.prototype.skip=function(a){this.b+=a};z(dE,pk);qE.prototype.aa=function(a){switch(a.info.type){case 1:case 2:this.ba(a);break;case 4:var b=a.info.b.ht(a);a=a.info;var c=this.b;c&&c.b==a.b&&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.A==a.A&&c.g==a.g&&c.o==a.o&&(this.b=$a(b).info);F(b,this.aa,this);break;case 3:this.C+=Tba(this.o,a)}};
qE.prototype.ba=function(a){if(oG(a.info.b.info)&&"9h"!=a.info.b.info.o&&1==a.info.type){var b=new window.DataView(a.b),c=new UD(b);aE(c);$D(c,408125543);c=WD(c);$D(c,374648427);c=WD(c);$D(c,174);c=WD(c);$D(c,224);c=WD(c);if($D(c,21936)){var d=c.o+c.b,c=VD(c,!0);b.setUint8(d-2,236);b.setUint8(d-1,128|c+1)}}a.info.b.Wl(a)};
qE.prototype.$=function(a){this.A=a=a.info;this.L&&this.A.C&&(this.L=!1);this.R=Math.max(this.R,a.b.info.b)};
qE.prototype.N=function(a){a.dispose();this.C-=rE(a)};UE.prototype.verify=function(){if(this.info.o!=this.range.length)return!1;if(1==this.info.b.info.g){if(8>this.info.o||4==this.info.type)return!0;var a=iE(this),b=a.getUint32(0,!1),a=a.getUint32(4,!1);if(2==this.info.type)return b==this.info.o&&1936286840==a;if(3==this.info.type&&0==this.info.g)return 1836019558==a||1936286840==a||1937013104==a||1718909296==a||1701671783==a||1936419184==a}else if(2==this.info.b.info.g){if(4>this.info.o||4==this.info.type)return!0;a=iE(this);b=a.getUint32(0,!1);if(3==
this.info.type&&0==this.info.g)return 524531317==b||440786851==b}return!0};var dca=0;h=VE.prototype;h.QF=function(a){this.status=a.status;a.ok?(this.o=a.body.getReader(),this.B?(this.D=a.headers,this.J(),this.C=new window.Uint8Array(WE(this)),YE(this)):this.o.cancel("Cancelling")):this.lk()};
h.sC=function(a){if(this.B)if(C(),a.done)this.o=null,this.lk();else{a=a.value;this.A+=a.length;var b=a.length>=Math.max(WE(this)/2,16384),c=a.length+this.b>WE(this);(b||c)&&0!==this.b&&XE(this);b?this.g.push(a):(this.C.set(a,this.b),this.b+=a.length);this.B({timeStamp:C(),loaded:this.A});YE(this)}};
h.lk=function(){this.B&&(this.F=!0,this.G())};
h.gf=function(a){return this.D.get(a)};
h.tq=function(){return!!this.D};
h.wl=function(){return this.A};
h.ig=function(){return+this.gf("content-length")};
h.sq=function(){return 200<=this.status&&300>this.status&&!!this.A};
h.kr=function(){return!!this.g.length||this.F&&0<this.b};
h.Ot=function(){this.g.length||XE(this);return this.g.shift()};
h.Tu=function(){this.g.length||XE(this);return this.g[0]};
h.Su=function(){this.o&&this.o.cancel("Cancelling");this.G=this.B=null};h=ZE.prototype;h.VH=function(a){if(!this.g){this.status=this.b.status;try{this.response=this.b.response}catch(b){}this.o=!0;this.A(a)}};
h.XH=function(){2==this.b.readyState&&this.B()};
h.WH=function(a){this.g||(this.status=this.b.status,this.C(a))};
h.tq=function(){return 2<=this.b.readyState};
h.gf=function(a){try{return this.b.getResponseHeader(a)}catch(b){return Xi(b),""}};
h.ig=function(){return+this.gf("content-length")};
h.wl=function(){return this.response.byteLength};
h.sq=function(){return 200<=this.status&&300>this.status&&!!this.response&&!!this.response.byteLength};
h.kr=function(){return this.o&&!!this.response&&!!this.response.byteLength};
h.Ot=function(){var a=this.response;this.response=null;return new window.Uint8Array(a)};
h.Tu=function(){return new window.Uint8Array(this.response)};
h.Su=function(){this.g=!0;this.b.abort()};$E.A=!1;$E.g=1E4;$E.b=2048;$E.o="X-Bandwidth-Est";h=$E.prototype;h.jb=function(){return this.F};
h.start=function(a){var b=1==this.state,c=7==this.state;1==this.state||5==this.state||c&&cF(this);dF(this,2);this.R=0<=a?a:window.NaN;if(c&&2<=this.D){c=this.info.o;if(!(this.H<=c.o)){c.g++;c.o=x$-1;var d=EG(c.A),e=new L(d);e.g.match("\\.googlevideo\\.com$")?(ch(e,"redirector.googlevideo.com"),d=e.toString()):e.g.match("r[1-9].*\\.c\\.youtube\\.com$")?(ch(e,"www.youtube.com"),d=e.toString()):d=Ip(d);c.b=new DG(d);c.g&&(d=""+c.g,c.b.set("cmo=pf",d),c.A.set("cmo=pf",d))}this.D=0}else if(c){this.D++;
b=1E4*(.5+Math.random());1==this.D&&(b=2E3);Ti(x(this.Rn,this,a),b);return}b?this.Rn(a):Ti(x(this.Rn,this,a),0)};
h.Rn=function(a){if(!this.isDisposed()){this.H=x$++;if(this.o){var b=this.info,c=this.o.b;this.G=b.range?new vD(b.range.start+c,b.range.end):xD(c,this.o.length);this.g=uB(this.info,this.G)}else this.G=this.info.range,this.g=uB(this.info);this.g.set("rn",this.H.toString());this.D&&this.g.set("playerretry",this.D.toString());0<=a&&this.g.set("rbuf",(1E3*a).toFixed().toString());this.info.A&&this.g.set("headm",Math.max(0,this.A.liveChunkReadahead-1).toString());a=sB(this.g);try{var d=x(this.yF,this),
e=x(this.BF,this),f=x(this.AF,this),k=x(this.zF,this);this.b=(this.A.G||this.A.ha&&5>this.R)&&"function"==typeof window.fetch&&window.ReadableByteStream&&eF(this)?new VE(a,e,f,d,k):new ZE(a,e,f,d,k)}catch(l){this.F="net.ssl",dF(this,7)}0<this.A.F&&(this.C=Ti(x(this.$s,this),this.A.F));this.g.get("itag");this.g.get("range");C()}};
h.BF=function(){this.J=0;var a=this.timing;this.g&&aF(this.g.b);a.g=C();a.C=a.g;a.b=0;a.K=!1;a.H=!1;a.B=0;a.G=xK(a.o);mF(a);a.L=a.F-a.g};
h.AF=function(a){if(!this.isDisposed()){this.B=this.b.status;iF(this,!1);var b=this.timing,c=a.timeStamp;a=a.loaded;c=c>b.g&&4E12>c?c:C();50>c-b.C||lF(b,c,a);b=this.timing;b.b>b.N&&8192<b.b&&4>this.state?dF(this,4):gF(this)&&uE(this)&&dF(this,Math.max(3,this.state))}};
h.zF=function(){!this.isDisposed()&&!this.L&&this.b.tq()&&this.b.gf("X-Walltime-Ms")&&(this.L=(C()-this.b.gf("X-Walltime-Ms"))/1E3)};
h.yF=function(){var a=this.b;if(!this.isDisposed()){this.C&&(Vi(this.C),this.C=window.NaN);this.B=a.status;var b=!1;if(400<=a.status)b=!0,this.F="net.badstatus";else if(a.sq()){var c="";hF(this)&&(c=a.Tu(),2048<c.length?c="":(c=String.fromCharCode.apply(String,c),c=HG.test(c)?c:""));if(c){var a=this.info.o,d=this.g;d.b===a.b&&(a.b=yca(d,c));dF(this,5)}else{var c=a.ig(),a=a.wl(),d=!!this.G&&this.G.length,e=!0;!c&&d?e=d==a:!d&&c?e=c==a:d&&c&&(e=d==c&&c==a);e?(iF(this,!0),e=eF(this)?this.b.gf("X-Bandwidth-Est"):
0,c=this.timing,d=C(),e=e?(0,window.parseInt)(e,10):0,c.K||(c.K=!0,d=d>c.g&&4E12>d?d:C(),lF(c,d,a),c.D&&e?kF(c.o,c.b/e,c.b):(e=(d-c.g)/1E3,(e<=c.o.b.g||!c.o.b.g)&&!c.H&&8192<=c.b&&kF(c.o,e,a),8192<=c.b&&wK(c.o,a,c.B)),vK(c.o,(d-c.g)/1E3,c.b),c.A&&(c.A=!1)),C(),dF(this,6)):(b=!0,this.F="net.closed")}}else b=!0,this.F="net.connect";b&&(cF(this),dF(this,7),C())}};
h.$s=function(){this.C=window.NaN;if(!(this.isDisposed()||this.A.Sa&&this.b&&8192<=this.timing.b&&"quic"==this.b.gf("client-protocol"))){var a=C(),b=!1;if(8192<=this.timing.b){var c=this.timing.F;mF(this.timing);this.timing.F-c>=.8*this.A.F?(this.J++,b=5<=this.J):this.J=0}else b=this.timing,b=5E3<a-(b.g+1E3*b.G.delay);b?(b=this.timing,a=a>b.g&&4E12>a?a:C(),c=(a-b.g)/1E3,b.D||(8192<=b.b?(b.B+=(a-b.C)/1E3,wK(b.o,b.J,b.B)):jF(b.o,c)),vK(b.o,c,b.b),fF(this),this.F="net.timeout",dF(this,7)):this.C=Ti(x(this.$s,
this),this.A.F)}};
h.isDisposed=function(){return-1==this.state};
h.dispose=function(){vE(this.info.b[0])&&6!=this.state&&(this.info.b[0].b.o=!1);dF(this,-1);this.K=null;fF(this);Vi(this.C);this.C=window.NaN};z(oF,pk);oF.D=!1;oF.b=2/24;oF.B=1E3;oF.A=.2;oF.g=1E4;oF.C=1800;oF.o="Not enough storage";h=oF.prototype;h.initialize=function(a,b,c,d){a=a||0;var e=this.D;d=d&&d.id;e.B="i";"auto"!=xu()&&(e.B="s");lD(e,b);Jba(e,d);e.J=e.A;Kba(e);e.o=e.D;b=tD(e);this.o=new qE(this.A,b.audio);this.g=new qE(this.A,b.video);JF(this,this.o);JF(this,this.g);this.g.o.D=this.o.o;this.X("videoformatchange",b);this.C=a;c?(this.G=!0,EF(this)):rF(this)};
h.resume=function(){this.G&&(this.G=!1)};
h.wy=function(a){this.o.K=!1;this.g.K=!1;this.o.A=null;this.g.A=null;this.resume();this.b=a;eA(a)&&(a.b.addEventListener("updateend",x(this.dd,this),!1),a.g.addEventListener("updateend",x(this.dd,this),!1),a.b.addEventListener("error",x(this.vj,this,!0),!1),a.g.addEventListener("error",x(this.vj,this,!1),!1));qF(this,"msa");RC("msa",void 0,"video_to_ad");LC.measure&&LC.getEntriesByName("vta").length&&LC.measure("measure_vta_to_msa","vta");this.aa&&this.L&&Mx();this.dd();this.ia=Ui(x(this.dd,this),
1E4)};
h.xE=function(a){if(!this.isDisposed()&&3<=a.state){var b=a.info.b[0].b,c=!this.aa&&b.info.video,d=!this.L&&b.info.audio,e=Math.max(0,a.info.b[0].B-this.C);if(5==a.state)c?qF(this,"vrr"):d&&qF(this,"arr"),a.start(e);else if(6==a.state||this.A.G&&3<=a.state&&!(5<=a.state)){c?(this.aa=a.g?sB(a.g):"",Nx()):d&&(this.L=a.g?sB(a.g):"");b=b.info.video?this.g:this.o;this.B.g&&(b.H=!1,a.L&&this.qa.b(1,a.L));if(e=vE(a.info.b[0]))e=a.info,e=!!vE(e.b[e.b.length-1]);e&&F(a.o.o,b.ba,b);this.dd()}else if(4==a.state)this.dd(),
c&&Nx();else if(7==a.state&&cF(a)){if(this.Nc(!1,a.jb(),bF(a)),!this.isDisposed()){if(c=b.info.video&&(0<a.D||410==a.B||500==a.B||503==a.B)&&90&&!qD(this.D)){var d=this.D,f=b.info;qD(d);d.aa=f;d.L=zq();d.K=-1;lD(d,d.b)}if(a.info.b[0].b.Xc()&&7==a.state&&("net.timeout"==a.F||"net.connect"==a.F&&204==a.B)||c){b=b.info.video?this.g:this.o;for(e=0;e<b.B.length&&a!==b.B[e];e++);if(e==b.B.length)a.dispose();else{for(;e<b.B.length;)b.N(b.B.pop());3==a.info.b[0].type?(a.o&&a.o.A?(a=a.o.A,a=new RE(a.type,
a.b,a.range,a.A,a.startTime+a.duration,0,a.g+a.o,0,!1)):(a=a.info.b[0],a=new RE(a.type,a.b,a.range,a.A,a.startTime,0,a.g,0,!1)),b.b=a):b.b=null}this.dd()}else a.start(e)}}else vE(a.info.b[0])?(b.A=!0,this.dd()):this.Nc(!0,"net.retryexhausted",bF(a))}};
h.dd=function(){this.ha=window.NaN;vF(this);if(this.b&&$z(this.b)&&!cA(this.b))if(this.B.isLive)(0,window.isNaN)(this.H)?(this.H=this.C+3600,aA(this.b,this.H)):this.H<=this.C+1800&&(this.H+=1800,aA(this.b,this.H));else{var a=Math.max(this.o.g.index.Wg(),this.g.g.index.Wg());(!(0,window.isFinite)(this.H)||this.H!=a)&&0<a&&(aA(this.b,a),this.H=a)}if(!this.isDisposed()){a=this.B;if(a.isLive&&zq()-a.D>=a.B){if(3==this.B.C){this.Nc(!0,"manifest.net.retryexhausted",{rc:this.B.G.toString()});return}this.B.L()}this.B.isLive&&
(PE(this.g)||PE(this.o))&&(a=KF(this),(0,window.isNaN)(a)||this.seek(a));if("prerender"==window.document.webkitVisibilityState)EF(this);else if(vF(this),wE(this.g),!this.isDisposed()&&(wE(this.o),!this.isDisposed())){if(this.B.g){QE(this.g);QE(this.o);var b=-1!=this.g.G,a=-1!=this.o.G;if(!b||!a)if(b=!b&&eE(this.g.o),a=!a&&eE(this.o.o),b||a){var a=b?this.g:this.o,b=b?this.o:this.g,c=eE(a.o).info.A;if(-1!=b.G&&b.G!=c){var d=b.G;IE(a,0);GE(a,window.Infinity);a.b.A=d-1;this.Nc(!1,"qoe.avsync",{start:"1",
target:b.G,actual:c})}else a.G=c}eE(this.g.o)&&(this.ea=eE(this.g.o).o.g)}this.o.g.o||(!this.G||xF(this.F)?rF(this):EF(this));!this.b||wF(this,this.o,this.b.b)||wF(this,this.g,this.b.g)||((a=IF(this,this.g,this.b.g,null,this.o.F))&&!this.ca&&(this.ca=C(),qF(this,"vda"),RC("vda",void 0,"video_to_ad"),this.$&&Nx()),b=vC(this.b.g.buffered,this.C+oF.b),(0,window.isNaN)(b)&&!FE(this.g)&&this.b.b.buffered.length||(FE(this.g)&&(b=window.NaN),b=IF(this,this.o,this.b.b,b,null),a|=b,b&&!this.$&&(this.$=C(),
qF(this,"ada"),RC("ada",void 0,"video_to_ad"),this.ca&&Nx())),FE(this.g)&&FE(this.o)&&$z(this.b)&&!cA(this.b)&&(b=this.b,$z(b)&&b.o.endOfStream(),uK(this.F)),a&&!eA(this.b)&&DF(this));MF(this,this.g,nD(this.D));MF(this,this.o,oD(this.D));this.g.g.A||this.o.g.A?this.Nc(!0,"net.retryexhausted",{metadata:"1",video:this.g.g.A?"1":"0",audio:this.o.g.A?"1":"0"}):(zF(this,this.g,this.o)&&CF(this,this.g,this.o),zF(this,this.o,this.g)&&CF(this,this.o,this.g),this.A.ua&&this.R&&!this.G&&xF(this.F)&&(a=this.R,
this.R="",b=Lg(a),bk(a,{format:"RAW",responseType:"arraybuffer",timeout:15E3,onError:x(this.Nc,this,!1,"pathprobe.net",{shost:b})})),this.B.o&&EF(this))}}};
h.vj=function(a){a=(a=a?this.o:this.g)&&a.A;this.Nc(!0,"fmt.unplayable",a?gE(a):void 0)};
h.zD=function(a){this.Nc(!0,"fmt.unparseable",a)};
h.UE=function(a){this.Nc(!1,"qoe.avsync",a)};
h.seek=function(a){if(!this.isDisposed()&&!this.g.H&&!this.o.H){vF(this);this.ua=zq();this.g.g=nD(this.D);var b=LF(this,this.g,a,this.b&&this.b.g);this.o.g=oD(this.D);var c=LF(this,this.o,b,this.b&&this.b.b);this.C=Math.max(a,b,c);this.K=!0;DF(this)}};
h.T=function(){uF(this);this.o&&(HE(this.o),HE(this.g));Wi(this.ia);Vi(this.N);this.g=this.o=null;oF.M.T.call(this)};
h.Nc=function(a,b,c){this.isDisposed()||(this.X("error",new mC(b,a,c)),a&&(this.b&&$z(this.b)&&(a=this.b,$z(a)&&a.o.endOfStream("network")),this.dispose()))};var lH={playready:["com.youtube.playready","com.microsoft.playready"],widevine:["com.widevine.alpha"]},Pca=rb(lH.widevine,lH.playready);z(VF,G);h=VF.prototype;h.WI=function(a){this.D.call(this.o,new window.Uint8Array(a.message))};
h.XI=function(){this.H.call(this.o,gca(this))};
h.Kr=function(a,b){Xi(b);var c=a;b instanceof window.DOMException&&(c+=";n."+b.name+";m."+b.message);this.C.call(this.o,c)};
h.ts=function(a){this.D.call(this.o,a.message)};
h.rs=function(a){var b;this.b?(b=this.b.error.code,a=this.b.error.systemCode):(b=a.errorCode&&a.errorCode.code,a=a.systemCode);this.C.call(this.o,";c."+b+";sc."+a)};
h.qs=function(){this.G.call(this.o)};
h.update=function(a){this.g?this.g.update(a).then(null,Si(x(this.Kr,this,"t.u"))):this.b?this.b.update(a):this.B.addKey?this.B.addKey(this.J.g,a,this.F,this.sessionId):this.B.webkitAddKey(this.J.g,a,this.F,this.sessionId)};
h.T=function(){this.B=null;VF.M.T.call(this)};z(WF,G);h=WF.prototype;
h.createSession=function(a){var b=a.b;if(this.b.o){var c=this.D.createSession(),b=c.generateRequest(a.contentType,b),c=new VF(null,null,null,c,null);b.then(null,Si(x(c.Kr,c,"t.g")));return c}if(RF(this.b)){c=new window.Uint8Array(270);for(a=0;135>a;a++)c[2*a]='<PlayReadyCDMData type="LicenseAcquisition"><LicenseAcquisition version="1.0" Proactive="true"></LicenseAcquisition></PlayReadyCDMData>'.charCodeAt(a);b=this.o.createSession("video/mp4",b,c);return new VF(null,null,null,null,b)}if(SF(this.b)){c=
b.subarray(4);c=String.fromCharCode.apply(null,new window.Uint16Array(c.buffer,c.byteOffset,c.byteLength/2)).match(/ek=([0-9a-f]+)/)[1];a="";for(var d=0;d<c.length;d+=2)a+=String.fromCharCode((0,window.parseInt)(c.substr(d,2),16));for(var e=this.b.fairPlayCert,c=new window.Uint8Array(new window.ArrayBuffer(e.length)),d=0;d<e.length;d++)c[d]=e.charCodeAt(d);for(var d=new window.ArrayBuffer(2*a.length),e=new window.Uint16Array(d),f=0;f<a.length;f++)e[f]=a.charCodeAt(f);a=new window.Uint8Array(d);d=
0;f=new window.ArrayBuffer(b.byteLength+4+a.byteLength+4+c.byteLength);e=new window.Uint8Array(f);f=new window.DataView(f);e.set(b);d+=b.byteLength;f.setUint32(d,a.length,!0);d+=4;e.set(a,d);d+=a.length;f.setUint32(d,c.byteLength,!0);e.set(c,d+4);b=this.o.createSession("video/mp4",e);return new VF(null,null,null,null,b)}this.g.generateKeyRequest?this.g.generateKeyRequest(this.b.g,b):this.g.webkitGenerateKeyRequest(this.b.g,b);return this.A=new VF(this.g,this.b,b,null,null)};
h.$I=function(a){var b=YF(this,a);b&&b.ts(a)};
h.ZI=function(a){var b=YF(this,a);b&&b.rs(a)};
h.YI=function(a){(a=YF(this,a))&&a.qs()};
h.T=function(){this.g=null;WF.M.T.call(this)};ZF.prototype.get=function(a){a=$F(this,a);return-1!=a?this.values[a]:null};
ZF.prototype.remove=function(a){a=$F(this,a);-1!=a&&(this.keys.splice(a,1),this.values.splice(a,1))};
ZF.prototype.set=function(a,b){var c=$F(this,a);-1!=c?this.values[c]=b:(this.keys.push(a),this.values.push(b))};z(bG,G);h=bG.prototype;h.Vu=function(a){this.G=a};
h.$H=function(a){if(!this.isDisposed()){this.D||(this.D=!0,this.b.X("newsession",this));if(RF(this.o)){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($q(a.childNodes[0].data))}if(SF(this.o))for(b=Xq(a),a=new window.Uint8Array(new window.ArrayBuffer(b.length)),c=0;c<b.length;c++)a[c]=b.charCodeAt(c);a=new lca(a,++this.H);this.zt(a)}};
h.YH=function(){this.isDisposed()||this.C||(this.b.X("sessionready"),this.C=!0)};
h.aI=function(a){this.isDisposed()||this.b.X("keystatuseschange",nca(a,this.F))};
h.zt=function(a){a={format:"RAW",method:"POST",postBody:a.message,responseType:"arraybuffer",withCredentials:!0,rb:x(this.qD,this,a),onError:x(this.Zr,this,a)};var b=this.B;this.G&&(b=ah(b,"access_token",this.G));bk(b,a)};
h.qD=function(a,b){if(!this.isDisposed())if(0!=b.status&&b.response){var c;c=new window.Uint8Array(b.response);var d=String.fromCharCode.apply(String,c.subarray(0,16384)),e=d.indexOf("\r\n"),f=d.indexOf("\r\n\r\n"),k;-1==f?c=null:(k=d.slice(0,e).match(/^GLS\/1.\d ([0-9]{1,3}) (\w+)$/),null==k?c=null:(k=Ya(k[1]),d=zD(d.slice(e+2)),c=null==d?null:new kca(k,d,c.subarray(f+4))));if(c)if(0!=c.b)cG(this,"drm.auth",!0,"t.f;c."+c.b,pq(c.b));else{f=null;(d=c.headers["Heartbeat-Url"])&&(f=new jca(d,(0,window.parseInt)(c.headers["Heartbeat-Interval-Secs"],
10)||60,(0,window.parseInt)(c.headers["Heartbeat-Num-Retries"],10)||4));f&&this.b.X("newlicense",f);if(d=f=c.headers["Authorized-Format-Types"])d=this.g,d=!(d.g&&d.g.keyStatuses);d&&(f=f?f.split(","):null,this.b.X("keystatuseschange",f&&gb(f,"HD")?"auto":"large"));c.headers["Key-Ids"]&&(this.F=oca(c.headers["Key-Ids"]));SF(this.o)&&(c.message=new window.Uint8Array($q(String.fromCharCode.apply(null,c.message))));this.g.update(c.message)}else cG(this,"drm.net",!0,"t.p","YTP_ERROR_SERVER_ERROR")}else this.Zr(a,
b)};
h.ZH=function(a){this.isDisposed()||cG(this,"drm.keyerror",!0,"t.s"+a)};
h.Zr=function(a,b){var c,d=!1;a.b||this.J?(c="drm.net.retryexhausted",d=!0):c=b.status?"drm.net.badstatus":"drm.net.connect";cG(this,c,d,"t.r;c."+b.status);d||this.H!=a.number||(a.b=!0,Ti(x(this.zt,this,a),5E3))};
h.T=function(){this.b=null;bG.M.T.call(this)};z(fG,pk);h=fG.prototype;h.UC=function(a){a=new dG(new window.Uint8Array(a.initData),a.initDataType);hG(this,a,!0)};
h.MD=function(a){hG(this,new dG(a.initData,a.contentType),!0)};
h.yD=function(){this.isDisposed()||(this.C=!0,this.g.length&&gG(this,this.g[0]))};
h.dC=function(a){if(!this.isDisposed()){Xi(a);var b="t.a";a instanceof window.DOMException&&(b+=";n."+a.name+";m."+a.message);this.X("licenseerror","drm.unavailable",!0,b,"YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK")}};
h.OD=function(a){this.isDisposed()||!a||this.L||(this.L=a,this.X("heartbeatparams",a))};
h.PD=function(){this.isDisposed()||(this.g.shift(),this.g.length&&gG(this,this.g[0]))};
h.GE=function(){if(RF(this.b)&&(this.K--,0==this.K)){var a=this.A;a.g.msSetMediaKeys(a.o)}};
h.bI=function(a){this.isDisposed()||RF(this.b)||"auto"!=a||this.B==lz||(this.B=lz,this.X("qualitychange"))};
h.T=function(){this.b.o&&this.D.setMediaKeys(null);this.D=null;this.g=[];F(this.o.values,function(a){a.dispose()});
ica(this.o);fG.M.T.call(this)};iG.prototype.B=function(){var a=q("yt.abuse.botguardInitialized");return a&&a()?(a=q("yt.abuse.invokeBotguard")())?"r1a="+a:null:null};
iG.prototype.C=function(a){return"r3a="+Math.floor(this.b.lengthSeconds%Va(a.c3a))};
iG.prototype.A=function(a){a=Va(a.c);var b;b=q("yt.abuse.dclkstatus.checkDclkStatus")();return"r6a="+(a^b)};rG.prototype.isEmpty=function(){return this.endTime==this.startTime};sG.prototype.getVisibilityState=function(){return qG(this.b)};AG.prototype.g=function(){return this.name};
AG.prototype.getId=function(){return this.id};
AG.prototype.b=function(){return this.isDefault};
AG.prototype.toString=function(){return this.name};
AG.prototype.getName=AG.prototype.g;AG.prototype.getId=AG.prototype.getId;AG.prototype.getIsDefault=AG.prototype.b;BG.prototype.o=1.3;DG.prototype.set=function(a,b){this.b[a]!==b&&(this.b[a]=b,this.g="")};
DG.prototype.get=function(a){FG(this);return this.b[a]||null};
DG.prototype.clone=function(){var a=new DG(this.o);a.C=this.C;a.A=this.A;a.B=this.B;a.b=hc(this.b);a.g=this.g;return a};h=OG.prototype;h.df=function(a){return(a=PG(this,a))?a.duration:0};
h.Si=function(a){return this.df(a)};
h.kg=function(){return this.ra.length?this.ra[0].b:-1};
h.Qb=function(){return this.ra.length?this.ra[this.ra.length-1].b:-1};
h.Wg=function(){var a=this.ra[this.ra.length-1];return a?a.endTime:window.NaN};
h.Ru=function(){return this.ra[0].startTime};
h.Il=function(){return this.ra.length};
h.jk=function(){return 0};
h.yf=function(a){return(a=vca(this,a))?a.b:-1};
h.gq=function(a){return PG(this,a).g};
h.ef=function(a){return(a=PG(this,a))?a.startTime:0};
h.ff=function(){return 0<this.ra.length};RG.prototype.set=function(a,b){this.b.get(a);this.g[a]=b;this.o=""};
RG.prototype.get=function(a){return this.g[a]||this.b.get(a)};var x$=0;h=SG.prototype;h.gd=v;h.Qn=v;h.Dm=function(){return!1};
h.Xc=function(){return!!this.b&&!!this.index&&this.index.ff()};
h.Yg=v;h.Uu=function(){return!1};
h.Gl=v;h.Xg=v;h.kk=v;h.ng=v;h.Wl=v;h.ht=function(a){return[a]};
h.Ij=function(a){return[a]};z(UG,SG);h=UG.prototype;h.gd=function(){return!1};
h.Qn=function(){return this.g};
h.Uu=function(){return this.B};
h.Gl=function(){return this.g||this.B?[]:[new TG([new RE(1,this,this.initRange)],this.F)]};
h.kk=function(a){this.Yg(a);return VG(this,a.C?a.A+1:a.A,!1)};
h.ng=function(a,b){if(this.g&&ha(a)&&!(0,window.isFinite)(a))return new TG([new RE(3,this,null,-1)],"",!0);var c=this.index.yf(a);b&&(c=Math.min(this.index.Qb(),c+1));return VG(this,c,!0)};
h.Wl=function(a){this.b=new window.Uint8Array(iE(a).buffer)};
h.Dm=function(){return!1};
h.Yg=function(a){return 0==a.o||this.g?!0:this.index.Qb()>a.A&&this.index.kg()<=a.A+1};
h.update=function(a,b,c){var d=this.index;if(0!=a.length)if(a=sb(a),0==d.ra.length)d.ra=a;else{var e=d.ra.length?$a(d.ra).endTime:0,f=a[0].b-d.Qb();1<f&&kb(d.ra);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.ra.push(a[f])}}QG(this.index,c);this.D=b};
h.Xc=function(){return this.g||this.B?!0:UG.M.Xc.call(this)};WG.prototype.update=function(a,b){var c=void 0;this.g&&(c=this.g);var d=new WG,e=a.getElementsByTagName("S");if(e.length){var f=+LG(a,"timescale")||1,k=+LG(a,"startNumber")||0,l;l=((+e[0].getAttribute("t")||0)-(+LG(a,"presentationTimeOffset")||0))/f;l=c?c.ae+c.durationSecs:b?l:0;var m;m=Date.parse(LG(a,"yt:segmentIngestTime"));var n=Date.parse(LG(a,"yt:mpdResponseTime")),n=C()-n;m=(m+n)/1E3;n=c?k-c.b:1;d.A=0<n?0:-n+1;for(n=0;n<e.length;n++)for(var t=e[n],u=+t.getAttribute("d")/f,y=(t.getAttribute("yt:sid")||
0)/f,E=+t.getAttribute("r")||0,D=0;D<=E;D++)if(c&&k<=c.b)k++;else{var W=new Aca(k,l,u,m+y);d.b.push(W);var O;O=t;var Q=f,bb=W.ae,jb=O.getAttribute("yt:cuepointTimeOffset"),W=O.getAttribute("yt:cuepointDuration");jb&&W?(bb=+jb/Q+bb,Q=+W/Q,O=O.getAttribute("yt:cuepointContext")||null,O=new AD(bb,Q,O)):O=null;O&&d.o.push(O);k++;l+=u;m+=u+y}d.b.length&&(d.g=$a(d.b))}this.A=d.A;this.g=d.g||this.g;tb(this.b,d.b);tb(this.o,d.o)};h=XG.prototype;h.jk=function(a){return this.b[a]};
h.ef=function(a){return this.g[a]/this.A};
h.df=function(a){a=this.Si(a);return 0<=a?a/this.A:-1};
h.Si=function(a){return a+1<this.ya||this.o?this.g[a+1]-this.g[a]:-1};
h.kg=function(){return 0};
h.Qb=function(){return this.ya-1};
h.Wg=function(){return this.o?this.g[this.ya]/this.A:window.NaN};
h.Ru=function(){return 0};
h.Il=function(){return this.ya};
h.gq=function(){return""};
h.yf=function(a){a=Ab(this.g.subarray(0,this.ya),a*this.A);return 0<=a?a:Math.max(0,-a-2)};
h.ff=function(){return 0<=this.Qb()};z(ZG,SG);h=ZG.prototype;h.Gl=function(a){var b=new RE(1,this,this.initRange),c=new RE(2,this,this.indexRange),d=[],e=[b];SE(b,c)?e.push(c):(d.push(new TG([c])),a=0);(0,window.isNaN)(this.g)?a=0:a>this.g&&(a=this.g);b=e[e.length-1];c=b.range.end-e[0].range.start+1;a>c&&e.push(new RE(4,this,xD(b.range.end+1,a-c)));d.push(new TG(e));return d};
h.Wl=function(a){if(1==a.info.type){if(this.b)return;var b;a.b.slice?b=new window.Uint8Array(a.b.slice(a.range.start,a.range.end+1)):(b=new window.Uint8Array(a.b,a.range.start,a.range.end+1),b=new window.Uint8Array(b));this.b=b}else if(2==a.info.type){if(this.B||0<=this.index.Qb())return;if(1==this.info.g){b=this.index;var c=iE(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.A=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.b[0]=k+(e+d);b.g[0]=f;b.o=!0;d=c.getUint16(a+2,!1);a+=4;for(e=0;e<d;e++){var l=c.getUint32(a,!1),k=c.getUint32(a+4,!1);a+=12;f=b;f.ya++;YG(f);f.b[f.ya]=f.b[f.ya-1]+l;f.g[f.ya]=f.g[f.ya-1]+k}}else this.B=iE(a)}if(2==this.info.g&&this.b&&this.B){a=new window.DataView(this.b.buffer);b=this.index;k=this.B;c=this.indexRange.end;a=new UD(a);if($D(a,440786851)&&(ZD(a),$D(a,408125543)&&(e=a,f=e.b,d=VD(e,!0),
e.b=f,a=WD(a),e=a.o+a.b,$D(a,357149030)))){a=WD(a);for(var l=1E6,m=1E9,f=0;!(a.b>=a.g.byteLength);){var n=VD(a,!1);if(2807729==n)l=YD(a);else if(2807730==n)m=YD(a);else if(17545==n){var f=a,n=VD(f,!0),t=0;4==n?t=f.g.getFloat32(f.b):8==n&&(t=f.g.getFloat64(f.b));f.b+=n;f=t}else ZD(a)}b.A=m/l;a=new UD(k);if($D(a,475249515)){a=WD(a);k=!0;for(l=!1;$D(a,187);){m=WD(a);n=e;if($D(m,179))if(t=YD(m),$D(m,183)){for(var m=WD(m),u=n;$D(m,241);)u=YD(m)+n;t=[u,t]}else t=null;else t=null;k&&c==t[0]&&(l=!0);k=!1;
l&&(t[0]+=1);m=b;n=t[0];t=t[1];YG(m);m.b[m.ya]=n;m.g[m.ya]=t;m.ya++}c=d+e;a=f;YG(b);b.o=!0;b.g[b.ya]=a;b.b[b.ya]=c}}this.B=null}};
h.ht=function(a){for(var b=this.Ij(a.info),c=[],d=a.B,e=0;e<b.length;e++)c.push(new UE(b[e],a.b,xD(b[e].range.start+b[e].g-a.info.range.start+a.range.start,b[e].o),a.g,d)),d=!1;return c};
h.Ij=function(a){for(var b=0;b<this.index.Qb()&&a.range.start>=this.index.jk(b+1);)b++;return $G(this,b,a.range.start,a.range.length).b};
h.Yg=function(a){return this.Xc()?!0:(0,window.isNaN)(this.g)?!1:a.range.end+1<this.g};
h.Xg=function(a,b){this.Yg(a);if(!this.Xc()){var c=xD(a.range.end+1,b);c.end+1>this.g&&(c=new vD(c.start,this.g-1));return new TG([new RE(4,a.b,c)])}4==a.type&&(c=this.Ij(a),a=c[c.length-1]);var c=0,d=a.range.start+a.g+a.o;3==a.type&&(c=a.A,d==a.range.end+1&&(c+=1));return $G(this,c,d,b)};
h.ng=function(a,b){var c=this.index.yf(a);b&&(c=Math.min(this.index.Qb(),c+1));return $G(this,c,this.index.jk(c),0)};
h.Dm=function(){var a;if(a=this.Xc()&&!(0,window.isNaN)(this.g))a=this.index,a=(a.o?a.b[a.ya]:-1)!=this.g;return a};
h.gd=function(){return!0};
h.Qn=function(){return!1};z(aH,pk);
aH.prototype.$=function(a){var b=a.getElementsByTagName("Representation");if(0<a.getElementsByTagName("SegmentList").length){this.o=!0;this.A||(this.A=new Cca);Gca(this.A,a,this.aa);this.X("refresh");for(a=0;a<b.length;a++){var c=fH(this,b[a]),d=this.isLive&&1==c.g&&this.ca;if(!this.b[c.id]){var e=dH(MG(b[a],"BaseURL").textContent,c),f=MG(b[a],"Initialization"),k=LG(f,"sourceURL"),f=wD(LG(f,"range"));d&&(k="",f=void 0);this.b[c.id]=new UG(e,c,k,null===f?void 0:f)}for(var c=this.b[c.id],e=this.A,k=
c,f=Za(k.info.mimeType,";",1)[0],k=e.o[k.info.id]||e.g[f]||e.b||null,e=ub(MG(b[a],"SegmentList").getElementsByTagName("SegmentURL"),k.A),k=k.b,f=[],l=0;l<e.length;l++)f.push(Lca(e[l],k[l],d));c.update(f,this.isLive,this.H)}Hca(this.A);return!0}this.duration=NG(LG(a,"mediaPresentationDuration"));a:{for(a=0;a<b.length;a++){k=b[a];d=fH(this,k);e=MG(k,"BaseURL");c=dH(e.textContent,d);f=MG(k,"SegmentBase");k=wD(f.attributes.indexRange.value);f=wD(f.getElementsByTagName("Initialization")[0].attributes.range.value);
e=(0,window.parseInt)(e.getAttribute("yt:contentLength"),10);d=new ZG(c,d,f,k,e,window.NaN);if(!d){b=!1;break a}this.b[d.info.id]=d}b=!0}return b};
var eH={commentary:1,alternate:2,dub:3,main:4};
aH.prototype.N=function(a){this.G=a.status;a=a.responseText;a=(new window.DOMParser).parseFromString(a,"text/xml").getElementsByTagName("MPD")[0];this.B=1E3*NG(LG(a,"minimumUpdatePeriod"))||window.Infinity;this.isLive=window.Infinity>this.B&&0!=this.ea;this.H=(0,window.parseInt)(LG(a,"yt:earliestMediaSequence"),10)||0;Sk(a.getElementsByTagName("Period"),this.$,this);this.C=2;this.X("loaded");(0,window.isFinite)(this.B)&&(a=zq()-this.D,this.J=new ge(this.L,Math.max(0,this.B-a),this),this.J.start());
return this};
aH.prototype.R=function(a){this.G=a.status;this.C=3;this.X("loaderror");return Jd(a)};
aH.prototype.L=function(){if(1!=this.C&&!this.isDisposed()){var a;a:{a=this.b;for(var b in a){var c=a[b].index;if(c&&c.ff()){a=c.Qb()+1;break a}}a=0}a=Ug(this.K,{start_seq:a.toString()});gH(this,a)}};z(kH,G);kH.prototype.C=function(a){this.A=a;UF(this.F)?this.B():Rca(this)};
kH.prototype.B=function(){if(!this.isDisposed())if(0==this.g.length)this.A(null);else{var a=this.g.shift(),b=this.b[a],c=Qca(this.o[b.b]);window.navigator.requestMediaKeySystemAccess(a,c).then(Si(x(this.D,this,b)),Si(x(this.B,this,b)))}};
kH.prototype.D=function(a,b){if(!this.isDisposed()){a.o=b;var c=b.getConfiguration();F([c.audioCapabilities,c.videoCapabilities],function(b){F(b,function(b){a.A[b.contentType]=!0})});
this.A(a)}};mH.prototype.getValue=function(){return this.b};
mH.prototype.clone=function(){return new mH(this.yc,this.b)};h=nH.prototype;h.remove=function(){var a=this.b,b=a.length,c=a[0];if(!(0>=b)){if(1==b)kb(a);else{a[0]=a.pop();for(var a=0,b=this.b,d=b.length,e=b[a];a<d>>1;){var f=2*a+1,k=2*a+2,f=k<d&&b[k].yc<b[f].yc?k:f;if(b[f].yc>e.yc)break;b[a]=b[f];a=f}b[a]=e}return c.getValue()}};
h.Pa=function(){for(var a=this.b,b=[],c=a.length,d=0;d<c;d++)b.push(a[d].getValue());return b};
h.Ua=function(){for(var a=this.b,b=[],c=a.length,d=0;d<c;d++)b.push(a[d].yc);return b};
h.clone=function(){return new nH(this)};
h.Pb=function(){return this.b.length};
h.isEmpty=function(){return ib(this.b)};
h.clear=function(){kb(this.b)};z(pH,nH);z(qH,pk);qH.prototype.lg=v;qH.prototype.Ad=v;qH.prototype.D=function(a,b){this.b=this.b.onload=null;var c=this.Ad(a);c.o[b]=!0;tH(this);var d=c.Yb*c.rows,e=b*d,c=[e,Math.min(e+d-1,c.Cl()-1)];this.X("l",c[0],c[1])};
qH.prototype.T=function(){this.b&&(this.b=this.b.onload=null);qH.M.T.call(this)};h=wH.prototype;h.cb=function(){return this.F};
h.getHeight=function(){return this.D};
h.Cl=function(){return this.g};
h.isDefault=function(){return-1!=this.A.indexOf("default")};
h.Ev=function(a){return af(0==this.B?Math.round(a*this.g/this.J):Math.round(1E3*a/this.B),0,this.Cl()-1)};
h.Yn=function(){return this.g-1};
h.Fv=function(){return this.g?0:-1};
h.Gv=function(){};z(xH,qH);h=xH.prototype;h.Pm=function(a,b){for(var c=[],d=a.split("|"),e=d[0],f=1;f<d.length;f++){var k=this.sp(f-1,e,d[f],b);180>k.getHeight()&&c.push(k)}return c};
h.sp=function(a,b,c,d){return new wH(a,b,c,d)};
h.Ad=function(a){return this.g[a]};
h.lg=function(a){var b=this.A[a];if(b)return b;for(var b=this.g.length,c=0;c<b;c++)if(this.Ad(c).cb()>=a)return this.A[a]=c;this.A[a]=b-1;return b-1};
h.Hv=function(){};z(zH,wH);h=zH.prototype;h.Cl=function(){return this.b?this.b.Il():-1};
h.Ev=function(a){var b=this.rows*this.Yb*this.G,c=-1,d=-1,e=this.b;e&&(c=e.Qb(),d=e.yf(a));return d>c-b?-1:d};
h.Yn=function(){return this.b?this.b.Qb():-1};
h.Fv=function(){return this.b?this.b.kg():-1};
h.Gv=function(a){this.b=a?a.index:null};z(AH,xH);AH.prototype.Pm=function(a,b){return AH.M.Pm.call(this,"$N|"+a,b)};
AH.prototype.sp=function(a,b,c){return new zH(a,b,c,this.F.isLive)};
AH.prototype.Hv=function(a){for(var b=0;b<this.g.length;b++)this.g[b].Gv(a)};z(BH,gA);
BH.prototype.g=function(){if(!this.b||this.b.isDisposed()){var a=this.o;Tca(a);for(var b=["#EXTM3U","#EXT-X-INDEPENDENT-SEGMENTS"],c={},d=0,e=a.g.length;d<e;++d){var f=a.g[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.b.length;d<e;++d){var k=a.b[d],f=c[k.audioItag];b.push("#EXT-X-STREAM-INF:BANDWIDTH="+(k.bitrate+f.bitrate)+',CODECS="'+(k.Gp+","+f.Gp)+'",RESOLUTION='+(k.width+"x"+k.height)+',AUDIO="'+
f.itag.toString()+'",CLOSED-CAPTIONS=NONE');b.push(k.url)}this.b=new Uz("data:application/x-mpegurl;charset=utf-8,"+(0,window.encodeURIComponent)(b.join("\n")))}return this.b};z(DH,gA);DH.prototype.g=function(){return new Uz(this.b)};z(GH,pk);GH.D=/\/img\/watermark\/youtube_(hd_)?watermark(-vfl\S{6})?.png$/;GH.g=1;GH.B=-21;GH.C=18E3;GH.o="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(" ");GH.A="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(" ");
GH.b={iurl:"default.jpg",iurlmq:"mqdefault.jpg",iurlhq:"hqdefault.jpg",iurlsd:"sddefault.jpg",iurlmaxres:"maxresdefault.jpg"};h=GH.prototype;h.tB=function(a){(this.G=a)&&"fairplay"==this.G.b&&(this.G.fairPlayCert=this.fairPlayCert);RH(this)};
h.NC=function(a){this.isDisposed()||(OH(this,a),this.xa&&this.b.subscribe("refresh",this.Sr,this),RC("mrc"),xA(this.b)&&(this.ia=!0),RH(this))};
h.MC=function(a){this.isDisposed()||(this.L=!1,this.X("dataloaderror",new mC("manifest.net.retryexhausted",!0,{backend:"manifest",rc:a.status})))};
h.Sr=function(){this.b.isLive||this.b.Fa("refresh",this.Sr,this);this.Cp()};
h.Cp=function(){var a;a=this.b;var b=this.Fe;a=a.A?ub(a.A.A,b):a.F.length?ub(a.F,b):[];0<a.length&&(this.X("cuepointupdated",a),this.Fe+=a.length)};
h.Od=function(a){return w(this.keywords[a])?this.keywords[a]:null};
h.vt=function(){var a={format:"RAW",method:"GET",withCredentials:this.Ao};this.Co&&this.visitorData&&(a.headers={"X-Goog-Visitor-Id":this.visitorData});CG(uu,this.kt,a).then(this.fD,this.Xr,this);RC("vir");RC("vir",void 0,"video_to_ad")};
h.Gc=function(a,b){if(30==this.Aa){var c=this.vk["default.jpg"];return c?c:this.videoId?Ug("//docs.google.com/vt",{id:this.videoId,authuser:this.Ob,authkey:this.Rp}):"//docs.google.com/images/doclist/cleardot.gif"}b||(b="hqdefault.jpg");return(c=this.vk[b])||a.F||"sddefault.jpg"==b||"maxresdefault.jpg"==b?c:ZA(a,this.videoId,b)};
h.Ui=function(){return this.no};
h.fD=function(a){if(!this.isDisposed()){var b=a.responseText;if(b){this.L=!1;var c=Oj(b);"fail"==c.status?this.X("onStatusFail",c):(RC("virc"),RC("virc",void 0,"video_to_ad"),F(GH.o,function(a){a in this.A&&(c[a]=this.A[a])},this),HH(this,c),bI(this)?RH(this):this.X("dataloaderror",new mC("manifest.net.retryexhausted",!0,{successButUnplayable:"1"})))}else this.Xr(a)}};
h.Xr=function(a){if(!this.isDisposed()){var b="manifest.net.retryexhausted",c=!0,d={backend:"gvi",rc:a.status};this.Xp&&(this.mr?d.retried="1":(this.mr=!0,c=!1,b=a.status?"manifest.net.badstatus":"manifest.net.connect",this.Bo.start()));this.X("dataloaderror",new mC(b,c,d))}};
h.Ug=function(){return null};
h.Gb=function(){return this};
h.Nl=function(a){return a.getVideoUrl(this.videoId)};z(hI,pk);hI.g=2;hI.o=5;hI.A=5;hI.b="endcr";h=hI.prototype;h.T=function(){Vi(this.aa);Wi(this.Ga);Vi(this.Ja);mI(this);nI(this);jI(this);GI(this);Ob(this.ea,this.b);this.L=null;this.na=!1};
h.getVideoData=function(){return this.b};
h.Ep=function(){if(cI(this.b))cI(this.b),this.ca.b=!0,4!=this.J&&(this.$=sb(this.b.F)),VH(this.b,this.V),MH(this.b)&&(this.b.xa&&(this.N=new rba),this.b.o.b&&SI(this),RI(this,"i")),oI(this,"dataloaded"),this.R.g&&vI(this);else{var a=this.b;if(a.xa&&a.adaptiveFormats&&!a.Wt&&(ps(a)||this.V.experiments.Z("html5_manifestless_always"))){if(a=this.b,!NH(a)){a.Wt=!0;var b=bH(PH(a,a.adaptiveFormats),a.na,a.lengthSeconds,!0);cda(b)||a.Yt?b.dispose():(a.Ga=!1,OH(a,b),b.subscribe("cuepointsadded",a.Cp,a),xA(a.b)&&
(a.ia=!0));RH(a)}}else if(this.b.Ga){a=this.b;b=this.V.experiments;a.L=!0;a.Ga=!1;HG.test(a.D)||Xi(Error("DASH MPD Origin invalid: "+a.D),"WARNING");var c=a.D,d=b.b("html5_dash_mpd_version");d&&(c=Ug(c,{mpd_version:d}));!a.isLowLatencyLiveStream&&b.Z("html5_live_disable_dg_pacing")&&(c=Ug(c,{pacing:0}));gH(new aH(c,b,a.xa),c).then(a.NC,a.MC,a);RC("mrs")}else if(this.b.ia)this.o&&(a=this.o.g,Ju(a,"protected"),a.b.videoData.G?a.Dt():a.b.videoData.subscribe("dataloaded",a.Dt,a)),a=this.b,b=this.V.K,
c=this.V.experiments,xA(a.b),b=new kH(wA(b,a.b),c),H(a,b),a.ia=!1,a.L=!0,b.C(x(a.tB,a));else if(!this.b.L&&(this.Db||this.qa)){a:{var a=this.V,b=this.b,d=this.Na.Ia(),e=qG(this.V),f=this.V.L;switch(b.Aa){case 38:a=b.videoId.indexOf(":");c=Ug("//play.google.com/books/volumes/"+b.videoId.slice(0,a)+"/content/media",{aid:b.videoId.slice(a+1),sig:b.Vx});break a;case 30:c="//docs.google.com/";a.baseYtUrl!=QA.prototype.baseYtUrl&&(c=a.baseYtUrl);c=Ug(c+"get_video_info",{docid:b.videoId,authuser:b.Ob,authkey:b.Rp,
eurl:a.da});break a;case 33:c=Ug("//google-liveplayer.appspot.com/get_video_info",{key:b.videoId});break a;default:c={html5:"1",video_id:b.videoId,cpn:b.clientPlaybackNonce,eurl:a.da,ps:a.g,el:a.b,hl:a.qa,list:b.playlistId,agcid:b.Mx,aqi:b.Gx,sts:17031,lact:ir()},a.forcedExperiments&&(c.forced_experiments=a.forcedExperiments),b.R?c.vvt=b.R:b.oauthToken&&(c.access_token=b.oauthToken),a.adFormat&&(c.adformat=a.adFormat),a.sb&&(c.cc_lang_pref=a.sb),a.ma&&2!=a.ma&&(c.cc_load_policy=a.ma),a.mute&&(c.mute=
a.mute),b.Dd&&2!=a.be&&(c.iv_load_policy=b.Dd),b.oc&&(c.itct=b.oc),Nu(a,b,f)&&(c.autoplay="1"),b.Dc&&(c.autonav="1"),b.De&&(c.noiba="1"),b.isMdxPlayback&&(c.mdx="1"),b.nc&&(c.ytrcc=b.nc),b.Ee&&(c.utpsa="1"),b.isFling&&(c.is_fling="1"),b.vnd&&(c.vnd=b.vnd),b.Ce&&(c.force_ad_param_ad_type="video_ad",c.force_ad_param_url=b.Ce,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),b.Ca&&(c.splay="1"),b.ypcPreview&&(c.ypc_preview="1"),
a.ua&&(c.content_v=a.ua),b.Na&&(c.livemonitor=1),a.Ob&&(c.authuser=a.Ob),a.pageId&&(c.pageid=a.pageId),a.ea&&(c.ei=a.ea),a.oc&&(c.ssl_stream="1"),a.D&&(c.iframe="1"),b.Gd&&(c.tst=b.Gd),b.contentCheckOk&&(c.cco="1"),b.racyCheckOk&&(c.rco="1"),a.Ra&&b.liveStartWalltime&&(c.live_start_walltime=b.liveStartWalltime),a.Ra&&b.Ge&&(c.live_manifest_duration=b.Ge),a.Ra&&b.lr&&(c.cyc=b.lr),0!=e&&(c.vis=e),a.enableSafetyMode&&(c.enable_safety_mode="1"),a.widgetReferrer&&(c.widget_referrer=a.widgetReferrer.substring(0,
128)),(b=a.J.embedding_app)&&(c.embedding_app=b),(b=a.J.developer_api_key)&&(c.developer_api_key=b),ra(c,a.o),c=Ug(a.baseYtUrl+"get_video_info",c)}}a=!this.V.isAd();b=this.b;d=this.V.experiments.g;e=!this.V.experiments.Z("disable_gvi_cors");b.isDisposed()||(b.kt=c,b.Xp=a,b.Co=!!d,b.Ao=!!e,b.L=!0,b.vt())}}};
h.logEvent=function(a,b){if(this.o){var c=this.o,d={};d.rt=Du(c.b).toFixed(3);ra(d,Vu(c.b));var e=c.b.b,f=c.b.videoData,k={ns:e.ia,html5:"1",el:e.b,ps:e.g,fexp:e.experiments.experimentIds.join(",")||void 0,feature:f.Je||e.ce||void 0,ctrl:f.sb||void 0,ytr:f.tb||void 0,list:f.playlistId,d:e.Db,f:e.Xa};if(e.experiments.Z("legacy_autoplay_flag")?e.aa:f.J)k.autoplay="1";f.subscribed&&(k.subscribed=f.subscribed);ra(d,k);delete d.fexp;ra(d,a);d=Sj(c.b.b.baseYtUrl+"player_204",d);Zu(c,d,b)}};
h.getPlayerState=function(){return this.B};
h.Jn=function(){var a=this.getVideoData(),b=a.B;if(!b)return a.Ja;var c=cb(this.b.o?this.b.o.audioTracks:[],function(a){return a.id==b.id});
return c?c:a.Ja};
h.sF=function(){RI(this,"v")};
h.mD=function(a){if(this.F){var b=this.F;if(RF(b.b)){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&&hG(b,new dG(a),!1)}}};
h.uD=function(a){CI(this,a.reason,a.video.info,a.audio.info);var b=XH(this.b);b&&b.Hv(a.video);this.N&&(this.N.g=a.audio.index)};
h.tD=function(a){BI(this,a.reason,a.audio.info)};
h.Uh=function(a){if("html5.invalidstate"==a.errorCode&&this.g){var b=this.g.jb();a.details.merr=b?b.toString():"0"}LH(this.b)&&403==a.details.rc?(b=a.errorCode,b="net.badstatus"==b||"manifest.net.retryexhausted"==b):b=!1;if(b)P(this.B,4)?(this.tb=!0,nI(this)):JI(this);else if(TI(a)&&this.b.o.g)a=this.b,a.o=a.o.g,OI(this),NI(this);else if(a.b)b=this.A?this.A.D.b:null,b=TI(a)&&b&&b.isLocked()?"YTP_ERROR_FORMAT_UNAVALIABLE":void 0,rI(this,a.errorCode,b,nC(a.details));else if(this.o)this.o.onError(a.errorCode,
nC(a.details))};
h.pauseVideo=function(a){P(this.B,64)&&!a&&(P(this.B,8)?pI(this,Cq(this.B)):pI(this,Bq(this.B,8)));this.g&&(P(this.B,128)||(a?pI(this,Aq(this.B,256)):pI(this,Cq(this.B))),this.g.pause())};
h.seekTo=function(a,b,c){if(!this.g||!this.R.b||!this.g.hc()&&this.V.experiments.Z("new_ended_replay"))this.b.startSeconds=a||0;else{var d;if(a&&!(0,window.isFinite)(a)&&this.b.H&&QH(this.b)&&this.A){d=this.A;tF(d);var e=Math.max(d.g.D,d.o.D),f=d.g;f.H=!0;f.G=-1;GE(f,window.Infinity);f.D=e;f=d.o;f.H=!0;f.G=-1;GE(f,window.Infinity);f.D=e;var f=d.B,k;for(k in f.b)QG(f.b[k].index,window.Infinity);DF(d);d=e+.1}d||(d=af(a||0,YH(this.b),UI(this,!1)));a=this.b.xa&&!P(this.B,4)&&KI(this,d);yI(this,a);this.K=
this.b.startSeconds=d;pG(this.Ca,d);b?this.Au():(P(this.B,32)||(pI(this,Aq(this.B,32)),P(this.B,8)&&this.pauseVideo(!0),this.X("beginseeking",this)),c&&(this.ea||(this.ea=new ge(this.Au,c,this)),this.ea.start()),ZI(this,!0));this.L&&d>this.b.ga&&(this.C.Sh(this.L),this.L=null);d<UI(this,!1)&&pI(this,Bq(this.B,2));this.X("seekto",this,d)}};
h.Au=function(){if(!(0,window.isNaN)(this.K)&&this.g){var a=this.Th();!this.b.xa&&this.K>=Math.floor(a)?(this.K=a,this.X("endseeking",this),this.pauseVideo(!0),iI(this)):(this.A&&this.A.seek(this.K),(!this.b.xa||1<=this.g.ye())&&this.g.seekTo(this.K))}this.ea&&(this.ea.dispose(),this.ea=null);P(this.B,32)&&(pI(this,Aq(Bq(this.B,32),16)),this.X("endseeking",this))};
h.getCurrentTime=function(){if(!(0,window.isNaN)(this.K))return this.K;var a=0;this.g&&1<=this.g.ye()?a=this.g.getCurrentTime():this.b&&(a=this.V.experiments.Z("new_ended_replay")?this.b.startSeconds||0:this.b.Ed||this.b.startSeconds||0);this.V.experiments.Z("new_ended_replay")&&(a=af(a,YH(this.b),UI(this,!1)));return a};
h.Th=function(){return this.b.lengthSeconds?this.b.lengthSeconds:UI(this,!1)?UI(this,!1):0};
h.lz=function(){var a=new rca;if(this.ga&&this.A){var b=this.ga;a.o=b.C;a.C=b.D;a.b=fD(b);b=this.A;b.b&&!bA(b.b)&&(a.g=xC(b.b.g.buffered,b.C),a.A=xC(b.b.b.buffered,b.C));a.b=iD(b.J);fD(b.F);gD(b.F);eD(b.F)}else this.g&&(a.g=vq(this.g));this.N&&sba(this.N,a);return a};
h.lF=function(){if(this.F){var a=this.F,b=this.b.oauthToken;a.H=b;a.X("oauthtoken",b)}FI(this);oI(this)};
h.kF=function(a){rI(this,"auth",(0,window.unescape)(a.reason),a.errordetail||"sec."+a.errorcode)};
h.iH=function(a){var b=a.target.hc();if(this.g&&this.g.hc()&&this.g.hc()==b){var c=!1;switch(a.type){case "error":if(this.V.Je&&2==this.g.jb()){(0,window.setTimeout)(x(function(){this.g&&(this.b.ma&&this.g.load(),NI(this))},this),500);
if(this.o)this.o.onError("progressive.net");return}break;case "durationchange":var d=this.g.lf();(!this.H||(0,window.isFinite)(d)&&0<d)&&1!=d&&this.b.lengthSeconds!=d&&(this.b.lengthSeconds=d,oI(this));break;case "ratechange":this.A&&fca(this.A,this.g.rk());Lt(this.C);break;case "loadedmetadata":this.b.startSeconds&&(0<this.g.Wi().length?this.V.experiments.Z("new_ended_replay")?this.seekTo(this.b.startSeconds,!0):this.g.tk(this.b.startSeconds):(this.ha=this.b.startSeconds,this.pauseVideo(!0)));case "loadstart":Wi(this.Ga);
this.dl()||(this.Ga=Ui(x(this.dl,this),100));break;case "progress":jda(this);case "suspend":ZI(this);this.X("onLoadProgress",this,ida(this));P(this.B,8)&&(this.Lb?c=!0:this.Tb&&((0,window.isNaN)(this.ab)||this.ab+1<this.g.getCurrentTime())&&(c=!0,this.ab=this.g.getCurrentTime()));break;case "seeked":$I(this);break;case "seeking":d=this.V.experiments.Z("disable_html5_videoplayer_seeking_time")?this.g.getCurrentTime():this.getCurrentTime();this.A&&this.A.seek(d);pG(this.Ca,d);break;case "playing":this.D.g("plev");
RC("plev",void 0,"video_to_ad");this.sb&&(this.sb=!1,KI(this)||this.seekTo(window.Infinity,!0));Vi(this.Ja);this.Ja=window.NaN;break;case "timeupdate":if(this.V.experiments.Z("html5_ignore_first_0_timeupdate")&&this.g&&!this.g.getCurrentTime()&&!this.Ha)return;this.Ha=!!this.g.getCurrentTime();this.dl();$I(this);ZI(this);if(!this.g||this.g.hc()!=b)return;this.X("onVideoProgress",this,this.g.getCurrentTime());this.N&&this.G&&tba(this.N,this.g.getCurrentTime());break;case "waiting":if(0<this.g.Vi().length&&
0==this.g.he().length&&0<this.g.getCurrentTime()&&5>this.g.getCurrentTime()&&this.A)return}this.g&&this.g.hc()==b&&(this.X("videoelementevent",a),a=xq(this.B,a,this.Ca,this.bc),pI(this,a),c&&this.g.play())}};
h.TB=function(a){a="available"==a.b.availability;a!=this.Xa&&(this.Xa=a,this.X("airplayavailabilitychange"))};
h.UB=function(){var a=this.g.Nv();a!=this.Wa&&(function(){this.V.Em=a}.apply(this),this.Wa=a)&&(VH(this.b,this.V),RI(this,"m"));
this.X("airplayactivechange")};
h.dl=function(){var a=this.g;a&&this.Ha&&!this.b.H&&!UC("vfp",this.D.b)&&2<=a.ye()&&!a.Rf()&&0<wC(a.he())&&this.D.g("vfp");if((a=this.g)&&!this.b.H&&0<a.lf()&&(!UC("pbp",this.D.b)&&a.$g()&&2<=a.ye()&&0<wC(a.he())&&this.D.g("pbp"),0<a.getCurrentTime())){Wi(this.Ga);Vi(this.aa);this.aa=window.NaN;this.b.H=!0;XI(this);if(this.o){a=this.o;if(!a.A){var b=Wu(a,"playback");a.H=[10+a.b.videoData.Fd,10,10,40+a.b.videoData.dh-a.b.videoData.Fd,40];var c=a.o;Wi(c.C);c.C=window.NaN;c.C=Ui(x(c.update,c),100);c.B=
Du(c.g);c.A=lu(c.g);b.g=Uu(a,!0);b.Ga=!0;b.send();a.b.videoData.Oa&&(b=a.b.b,c=a.b.videoData,b=Ug(b.baseYtUrl+"ptracking",{html5:"1",video_id:c.videoId,cpn:c.clientPlaybackNonce,plid:c.playbackId,ei:c.eventId,ptk:c.Oa,oid:c.ro,ptchn:c.po,pltype:c.vo,content_v:b.ua}),Zu(a,b));a.b.videoData.enableCardio&&(a.F("playback"),a.B||ev(a));a.b.videoData.da||av(a);a.A=!0;a=a.o;a.b=a.g.g();a.B=Du(a.g);!(a.g.b.experiments.Z("html5_vss_tolerate_startup_delay")&&0==a.o&&5>a.b)&&2<a.b-a.o&&(a.o=a.b)}Ti(x(this.Zm,
this),4500)}this.X("playbackstarted");Ix()&&Mx();return!0}return!1};
h.OC=function(){this.Sa&&(this.da.sa(this.Sa),delete this.Sa,MI(this.g))};
h.Qz=function(){if(this.g){var a=this.getCurrentTime();if(P(this.B,8)&&yq(this.Ca,a,zq(),vq(this.g))){var b=this.Th();!this.b.xa&&b&&1>Math.abs(b-a)?iI(this):pI(this,Aq(this.B,1))}else P(this.B,4)&&Eq(this.B)&&5<vq(this.g)&&pI(this,Bq(this.B,1));ZI(this)}};
h.YF=function(){var a;if(a=P(this.B,1)&&this.A){a=this.A;var b=this.getCurrentTime();if(!a.b||bA(a.b))a=!1;else{var c=uC(a.b.g.buffered,b),d=uC(a.b.b.buffered,b);a=!!(-1==c&&a.g.b&&a.g.b.startTime>b||-1==d&&a.o.b&&a.o.b.startTime>b)}}a&&(this.o&&Ku(this.o.g,"reseek","1",void 0),this.V.experiments.Z("html5_reseek_on_infinite_buffer")&&this.seekTo(this.getCurrentTime(),!0))};
h.zz=function(){this.b.xa||this.X("connectionissue")};
h.cG=function(){this.g.seekTo(this.g.getCurrentTime()+.1)};
h.ND=function(a){var b={};ra(b,this.V.o);b.cpn=this.b.clientPlaybackNonce;this.b.R&&(b.vvt=this.b.R);this.V.Ob&&(b.authuser=this.V.Ob);this.V.pageId&&(b.pageid=this.V.pageId);kc(a.A,b);aG(a,a.B)};
h.oD=function(a,b,c,d){d=p(d)?d:"YTP_ERROR_LICENSE";c=c.substr(0,256);if(b)rI(this,a,d,c);else if(this.o)this.o.onError(a,c)};
h.pD=function(){RI(this,"r");oI(this)};
h.hH=function(a){this.X("heartbeatparams",a)};
h.$r=function(){if(!this.b.H&&this.g){0<this.g.ye()&&5<=vq(this.g)&&(pI(this,Aq(this.B,1)),this.X("playbackstalledatstart"));if(this.o){var a;this.V.experiments.Z("html5_log_qoe_start15s_details")&&this.A&&(a=nC(OF(this.A)));this.o.onError("qoe.start15s",a)}this.X("loadsofttimeout")}};
h.Zm=function(){if(!this.na){var a=new iG(this.b),b;"c1a"in a.o?(b=q("yt.abuse.botguardInitialized"),b=!(b&&b())):b=!1;if(b)Ti(x(this.Zm,this),4500);else{var c;if(a.b&&a.b.yb){b=[a.b.yb];for(c in a.g)if(a.o[c]&&a.g[c]){var d=a.g[c](a.o);d&&b.push(d)}c=b.join("&")}else c=null;c&&this.o&&(a=this.o,a.K||(b=Wu(a,"atr"),b.K=c,b.send(),a.K=!0),this.na=!0)}}};
h.Bu=function(){return this.g?this.g.rk():1};
h.Ml=function(){return this.g?this.g.Mv():{}};var y$={"api.invalidparam":2,auth:150,"drm.auth":150,heartbeat:150,"html5.unsupportedads":5,"fmt.noneavailable":5,"fmt.decode":5,"fmt.unplayable":5,"html5.missingapi":5,"html5.unsupportedlive":5,"drm.unavailable":5};z(dJ,G);h=dJ.prototype;h.mH=function(){return Yb(this.o)};
h.nH=function(){return Yb(this.A)};
h.la=function(){return this.b};
h.addEventListener=function(a,b){if(w(b)){var c=b,d=function(){q(c).apply(window,arguments)};
b=this.C[c]=d}this.app.$.subscribe(a,b)};
h.dz=function(a,b){var c=w(b)?a+b:a+na(b);if(!this.B[c]){var d;w(b)?d=function(){q(b).apply(window,arguments)}:d=b;
var e=x(function(a){d({target:this.g,data:a})},this);
this.B[c]=e;this.app.$.subscribe(a,e)}};
h.removeEventListener=function(a,b){if(w(b)){var c=this.C[b];ec(this.C,b);b=c}tg(this.app.$,a,b)};
h.ez=function(a,b){var c=w(b)?a+b:a+na(b),d=this.B[c];d&&(tg(this.app.$,a,d),ec(this.B,c))};
h.getPlayerState=function(){return x9(this.app)};
h.seekTo=function(a,b){G9(this.app,!0,this.playerType);W9(this.app,a,b,void 0,this.playerType)};
h.getCurrentTime=function(){return this.app.getCurrentTime(this.playerType)};
h.Wh=function(){return v9(this.app,this.playerType)};
h.Mb=function(){return this.app.aa.volume};
h.setVolume=function(a){a=af(Math.floor(a),0,100);R9(this.app,{volume:a,muted:this.bd()})};
h.bd=function(){return this.app.aa.muted};
h.mute=function(){R9(this.app,{muted:!0,volume:this.Mb()})};
h.Of=function(){R9(this.app,{muted:!1,volume:Math.max(5,this.Mb())})};
h.yd=function(){G9(this.app,!0,this.playerType);V9(this.app,this.playerType)};
h.pauseVideo=function(){Ira(this.app,this.playerType)};
h.hk=function(){var a=this.app;a.V.ca&&(a.b.Qa()&&yr(a.b),a.b.Va("pageTransition"));U9(a)};
h.jH=function(){};
h.oH=function(){return this.app.L};
h.Yh=function(a){t9(this.app,a)};
h.Vh=function(){return this.app.V.ga?Vra:[1]};
h.ck=function(){var a=gJ(this.app,this.playerType);return a&&(a=a.getVideoData().g)?a.video.quality:"unknown"};
h.gk=function(a){if(!this.app.V.isMobile){var b=gJ(this.app,this.playerType);b&&RI(b,"p",jz(a,a,!0))}};
h.Du=function(){var a=gJ(this.app,this.playerType);return a?(a=M(PI(a),function(a){return a.quality}),a.length&&("auto"==a[0]&&a.shift(),a=a.concat(["auto"])),a):[]};
h.rH=function(){return this.Ln()};
h.sH=function(){return 1};
h.Ln=function(){return k9(this.app)};
h.tH=function(){return 0};
h.setSize=function(){this.app.D.kf()};
h.Iu=function(a){K9(this.app,a?2:1)};
h.Ju=function(a){K9(this.app,a)};
h.dk=function(a){var b=this.app.G;b.isAvailable(a)&&(a=nJ(b,a))&&!a.loaded&&a.load()};
h.Lu=function(a){var b=this.app.G;b.isAvailable(a)&&(a=nJ(b,a))&&a.loaded&&a.unload()};
h.Gu=function(a,b,c){a=D9(this.app,aJ(a,b,c),this.playerType);G9(this.app,a,this.playerType)};
h.Kn=function(a,b,c){var d=this.playerType;H9(this.app,new GH(aJ(a,b,c)),d)};
h.wH=function(a,b,c){a=bJ(a,b,c);b=D9(this.app,a,this.playerType);G9(this.app,b,this.playerType);b=this.app;(a=(new L(a.mediaContentUrl)).b)&&RA(b.V,a)};
h.lH=function(a,b,c){a=bJ(a,b,c);b=this.playerType;H9(this.app,new GH(a),b);b=this.app;(a=(new L(a.mediaContentUrl)).b)&&RA(b.V,a)};
h.getVideoUrl=function(){var a=this.app.V;if(a.F)return"";var b=E4(this.app),c=void 0;b.xa||(c=Math.floor(this.app.getCurrentTime(1)));return a.getVideoUrl(b.videoId,this.we()||void 0,c)};
h.bk=function(){return w9(this.app)};
h.Eu=function(){var a=this.app.V,b;if(a.F)b="";else{var c=E4(this.app).videoId;b=this.app.D.Ia();var d=this.we()||void 0,a="https://"+YA(a)+"/embed/"+c;d&&(a=Ug(a,{list:d}));b='<iframe width="'+b.width+'" height="'+b.height+'" src="'+Ea(a)+'" frameborder="0" allowfullscreen></iframe>'}return b};
h.Cu=function(a,b,c){return P9(this.app,a,b,c)};
h.Hu=function(a){a:{for(var b=this.app,c=b.g.C.b.b||[],d=0;d<c.length;d++){var e=c[d];if(e.getId()==a){b.g.C.Sh(e);yJ(b,"cuerangesremoved",[e]);a=!0;break a}}a=!1}return a};
h.Fu=function(a,b,c,d){var e=this.app;e.ca=!1;I9(e,a,b,c,d);G9(this.app,!0,this.playerType)};
h.kH=function(a,b,c,d){var e=this.app;e.ca=!0;I9(e,a,b,c,d)};
h.ek=function(){L9(this.app);G9(this.app,!0,this.playerType)};
h.fk=function(){M9(this.app);G9(this.app,!0,this.playerType)};
h.Mn=function(a){N9(this.app,a);G9(this.app,!0,this.playerType)};
h.zH=function(a){var b=this.app.A;b&&BK(b,a)};
h.yH=function(a){var b=this.app.A;b&&(b.G=a)};
h.ad=function(){var a=this.app.A;if(!a)return null;for(var b=[],c=0;c<a.A;c++){var d=a.Gb(c);d&&b.push(d.videoId)}return b};
h.pH=function(){var a=this.app.A;return a?a.b:-1};
h.we=function(){var a=this.app.A;return a&&a.listId?a.listId.toString():null};
h.cf=function(a,b,c){return Y9(this.app,a,b,c)};
h.Ib=function(a,b,c){return Y9(this.app,a,b,c)};
h.Xh=function(a){return Z9(this.app,a)};
h.getVideoData=function(){var a={},b=gJ(this.app,this.playerType);b&&(b=b.getVideoData(),a.video_id=b.videoId,a.author=b.author,a.title=b.title);(b=this.we())&&(a.list=b);return a};
h.Ku=function(){d9(this.app,!0)};
h.uH=function(){d9(this.app,!1)};
h.getAdState=function(){return this.app.getAdState()};
h.vH=function(a){if(a!=this.app.ba.args.video_id)return!1;a=(a=gJ(this.app,1))?a.getPlayerState():null;return!(!a||!P(a,128)||5!=y$[a.b.errorCode])};
h.qH=function(){var a=this.app.ba.clone();ra(a.args,eI(E4(this.app)));return a};
h.AH=function(a,b){Z8(this.app,a,b)};
h.destroy=function(){this.app.dispose()};
h.xH=function(){var a=gJ(this.app);a&&!P(a.getPlayerState(),128)&&(a.X("internalAbandon"),mI(a),jI(a))};
h.T=function(){if(this.b){for(var a in this.o)this.b[a]=null;for(a in this.A)this.b[a]=null;this.b=null}this.C=this.B=null;dJ.M.T.call(this)};z(eJ,dJ);h=eJ.prototype;h.getPresentingPlayerType=function(){return this.app.getPresentingPlayerType()};
h.Cu=function(a,b,c,d,e){return P9(this.app,a,b,c,d,e)};
h.BH=function(a,b,c){pz(this.app.V.G,a,{sf:b,Og:c})};
h.CH=function(a){var b=this.playerType;H9(this.app,new GH(a),b)};
h.getPlayerState=function(a){return x9(this.app,a)};
h.ik=function(a,b){D9(this.app,a,this.playerType,b)};
h.Ou=function(a){var b=this.app,c=this.playerType;c&&1!=c||b.J&&b.J.getVideoData().videoId==a.videoId||(a=new GH(a),E9(b,a))};
h.yd=function(){V9(this.app,this.playerType)};
h.seekTo=function(a,b){W9(this.app,a,b,void 0,this.playerType)};
h.Fu=function(a,b,c,d){var e=this.app;e.ca=!1;I9(e,a,b,c,d)};
h.ek=function(a){L9(this.app,a)};
h.fk=function(a){M9(this.app,a)};
h.Mn=function(a){N9(this.app,a)};
h.zd=function(a,b,c){var d=this.app,e=this.playerType;W9(d,d.getCurrentTime()+a,b,c,e)};
h.TH=function(a){if(a){var b=this.we();if(!b||b==a.list){var c=a.video;(b=this.app.A)?this.app.Ya.Qa()&&((c=c[b.b])&&c.encrypted_id!=b.Gb().videoId||(a.index=b.b)):m9(this.app,{list:a.list,index:a.index,playlist_length:c.length});HK(this.app.A,a)}}else a=this.app,n9(a),a.b.za("onPlaylistUpdate")};
h.SH=function(){gr()};
h.UH=function(a,b){var c=gJ(this.app,this.playerType||1);c&&(c=c.getVideoData(),b?(HH(c,a),bI(c)&&RH(c)):(JH(c,a),c.X("dataupdated")))};
h.HH=function(){var a=this.app.getVideoData();return a.A.storyboard_spec||a.A.live_storyboard_spec};
h.FH=function(){var a=this.app.V;return{Ub:a.Ub,Ra:a.Ra}};
h.getVideoData=function(){var a=eJ.M.getVideoData.call(this),b=gJ(this.app,this.playerType);b&&(b=b.getVideoData(),a.backgroundable=b.backgroundable,a.cpn=b.clientPlaybackNonce,a.isLive=b.xa,a.itct=b.oc);return a};
h.getCurrentTime=function(a){return a?this.app.getCurrentTime(a):eJ.M.getCurrentTime.call(this)};
h.Wh=function(a){return a?v9(this.app,a):eJ.M.Wh.call(this)};
h.Pf=function(){var a=this.app.getVideoData(),b=gJ(this.app),c=wJ(this.app.Ya),d=a.clipEnd,a=a.clipStart,e=this.getCurrentTime(),f=this.Wh(),k;if(b.b.xa&&b.b.b)a:{var l=b.b.b,m=b.getCurrentTime();if(l.isLive)for(k in l=l.b,l){var n=l[k].index;if(n&&n.ff()){k=qC(n,n.yf(m));break a}}k=window.NaN}else k=window.NaN;(m=gJ(this.app,void 0))?(l=Q5(m.g),m=(0,window.isNaN)(l)?m.getCurrentTime():l):m=0;return{allowSeeking:c,clipEnd:d,clipStart:a,current:e,displayedStart:-1,duration:f,ingestionTime:k,loaded:m,
seekableEnd:UI(b,!0),seekableStart:YH(b.b)}};
h.Ln=function(a){return k9(this.app,a)};
h.canPlayType=function(a){return this.app.canPlayType(a)};
h.Qu=function(a,b){var c=gJ(this.app,this.playerType);if(c){b=b||a;var d=jz(a,b,!0);Ij("yt-player-quality",b,2592E3);RI(c,"m",d)}};
h.EH=function(){return ZH(this.app.getVideoData(),this.app.getCurrentTime())};
h.Vg=function(a){var b=this.app,c=gJ(b,this.playerType);c&&b.V.Ja.contains(a.toString())&&c.o&&(b=Wu(c.o,"engage"),b.o=a,b.send(void 0))};
h.$h=function(a,b,c){var d=nJ(this.app.G,"iv-module");d&&az(d)&&cz(d,a,b,c)};
h.IH=function(a,b){var c=this.app;c.ma&&(c=c.ma,c.R&&K6(c.R,a,b))};
h.Zh=function(){return u9(this.app,this.playerType)};
h.On=function(a){a:{var b=this.app,c=this.playerType;if(b.V.experiments.Z("legacy_control_redirecting")){var d=b.ga.set_audio_track?b.Aa:null;if(d){d.zc("control_set_audio_track",a);break a}}else if(3==b.getPresentingPlayerType()&&b.C){b.C.zc("control_set_audio_track",a);break a}if(c=b=gJ(b,c))if(c=!b.isDisposed()&&!P(b.B,128)&&b.b.o.b)c=b.A,c.isDisposed()?a=!0:(d=c.D,a=a.id,d.B="m",d.A=d.C.b[a],d.J=oD(d),c.X("audioformatchange",new kD(d.J,d.o,d.B)),c.b&&!c.b.b.remove?a=!1:(MF(c,c.o,oD(c.D)),JE(c.g),
JE(c.o),DF(c),a=!0)),c=!a;c&&(OI(b),NI(b))}};
h.Mu=function(){var a=gJ(this.app,this.playerType);return a.b.o?a.b.o.audioTracks:[]};
h.GH=function(){var a=gJ(this.app,this.playerType);return a&&a.getVideoData().g?nz(mG(a.ma,a.b)):"unknown"};
h.PH=function(a,b){X9(this.app,a,b)};
h.DH=function(){var a=nJ(this.app.G,"fresca");a&&a.A.A()};
h.RH=function(){var a=this.app.ma;a.ca=!1;a.Pg()};
h.JH=function(){var a=this.app.ma;a.ca=!0;a.Pg()};
h.getVisibilityState=function(){return qG(this.app.V)};
h.QH=function(){return!0};
h.Nu=function(a){return Jy(this.app.D,a)};
h.OH=function(a){this.app.V.enableSafetyMode=a};
h.MH=function(a){Yh();T9(this.app,a?2:0)};
h.tp=function(){var a=gJ(this.app),b=a.V.experiments.Z("disable_html5_stopvideo_cancel_requests");a.pauseVideo(b);a.A&&(a.A.G=!0,b||tF(a.A));if(b=a=this.app.G.o)b=hJ(a)?!!a.g.A.b:!1;b&&lJ(this.app.Ya,!0)};
h.hk=function(){var a=this.app.V;!a.experiments.Z("disable_new_pause_state3")&&xr(a)&&"blazer"!=a.g?this.tp():eJ.M.hk.call(this)};
h.iq=function(){return WI(gJ(this.app,this.playerType),!0)};
h.Pn=function(a){var b=nJ(this.app.G,"captions");gC(b,a,!0)};
h.Nn=function(){var a=nJ(this.app.G,"captions");return a?fC(a):null};
h.Pu=function(){var a=nJ(this.app.G,"captions");eC(a,{},!0)};
h.KH=function(){var a=gJ(this.app,this.playerType);if(!a)return!1;a=a.getVideoData();return!!a&&$H(a)&&!!a.g&&a.g.video.isAccelerated&&a.g.video.g};
h.LH=function(){return this.app.g.G};
h.Gu=function(a,b,c){this.ik(aJ(a,b,c))};
h.NH=function(a){var b=this.app;b.V.Oa=a;b.b.Va("minimized")};z(fJ,eJ);h=fJ.prototype;h.Da=function(){return Ky(this).element};
h.ad=function(){return this.app.A};
h.getVideoData=function(a){return(a=gJ(this.app,a||this.playerType))&&a.getVideoData()};
h.Qa=function(){return this.app.V.L};
h.addEventListener=function(a,b,c){this.app.N.subscribe(a,b,c)};
h.removeEventListener=function(a,b,c){tg(this.app.N,a,b,c)};
h.Va=function(a,b){S(this).Ra&&("videodatachange"==a||"audiotrackchanged"==a||"resize"==a||"cardstatechange"==a)&&this.app.$.Rb.apply(this.app.$,arguments);this.app.N.Rb.apply(this.app.N,arguments)};
h.za=function(a,b){this.app.$.Rb.apply(this.app.$,arguments);this.app.N.Rb.apply(this.app.N,arguments)};
h.gk=function(a){this.Qu(a,a)};
h.bk=function(a){return w9(this.app,a)};
h.getVideoUrl=function(a,b,c,d){var e=this.getPresentingPlayerType(),f=2==e;d&&f&&(f=!1,e=1);d=this.getVideoData(e);if(!d)return"";var k;a||d.xa||(k=Math.floor(this.getCurrentTime(e)));return this.app.V.getVideoUrl(d.videoId,f?void 0:this.we()||void 0,k,b,c)};
h.$h=function(a,b,c){var d=nJ(jq(this),"iv-module");d&&cz(d,a,b,c)};
h.Vg=function(a,b){var c=this.app,d=gJ(c,this.playerType);d&&c.V.Ja.contains(a.toString())&&d.o&&(c=Wu(d.o,"engage"),c.o=a,c.send(b))};
h.vb=function(a,b){O9(this.app,a,b||this.playerType)};
h.Ib=function(a,b,c){return Y9(this.app,a,b,c,!0)};
h.Xh=function(a){return Z9(this.app,a,!0)};
h.cf=function(a,b,c){return Y9(this.app,a,b,c,!0)};
h.Yh=function(a,b){t9(this.app,a,b)};
h.setVolume=function(a){a=af(a,0,100);R9(this.app,{volume:a,muted:this.bd()},!0)};
h.mute=function(){R9(this.app,{muted:!0,volume:this.Mb()},!0)};
h.Of=function(){R9(this.app,{muted:!1,volume:Math.max(5,this.Mb())},!0)};z(CJ,eq);h=CJ.prototype;h.Cb=function(){return DJ(this.b)};
h.create=function(){CJ.M.create.call(this);this.load()};
h.load=function(){CJ.M.load.call(this);this.b.addEventListener("resize",this.Tn,this);var a=EJ(S(this.b).g)?function(){}:x(this.fz,this);
rda(this,a)};
h.unload=function(){FJ(this,null);this.b.removeEventListener("resize",this.Tn,this);this.A&&(this.A.abort(),this.A=null);CJ.M.unload.call(this)};
h.xe=function(a,b){if(!EJ(S(this.b).g))return null;switch(a){case "loadCustomEndscreenJson":var c=new BJ(b);FJ(this,c);return!0;case "unloadCustomEndscreenJson":return FJ(this,null),!0}return null};
h.fz=function(){var a=this.b.getVideoData().videoId;this.A&&this.A.abort();var a={method:"GET",Ac:x(this.XC,this,a),Zc:{v:a}},b=S(this.b);b.experiments.Z("endscreen_cors")&&(a.method="POST",a.withCredentials=!0,"gaming"==b.g&&(a.Zc.gaming="1"));"embedded"==S(this.b).b&&(a.Zc.ptype="embedded");if(b=this.b.getVideoData().Us)a.method="POST",a.Sb={ad_tracking:b};if(b=this.b.getVideoData().A.iv_endscreen_url)this.A=bk(b,a)};
h.XC=function(a,b){var c=this.A=null;if(200==b.status){var d=b.responseText;")]}"==d.substring(0,3)&&(d=d.substring(3),c=new BJ(JSON.parse(d)))}FJ(this,c)};
for(var z$=[346,426,470,506,570,640,853,1280,1920],A$=[],B$=0;B$<z$.length;B$++)A$.push("ytp-ce-size-"+z$[B$]);var asa=["ytp-ce-top-left-quad","ytp-ce-top-right-quad","ytp-ce-bottom-left-quad","ytp-ce-bottom-right-quad"];h=CJ.prototype;
h.Tn=function(){if(this.o&&this.o.elements){var a=this.b.Nu(),b=a.width,c=a.height,d=b/c,e;e=Ly(this.b).width;for(var f=null,k=-1,l=0;l<z$.length;l++){var m=Math.abs(e-z$[l]);if(-1==k||f>=m)k=l,f=m}e=A$[k];for(f=0;f<this.o.elements.length;++f){var l=this.o.elements[f].id,k=this.g[l],m=this.C[l],n=m.width*d/m.aspectRatio,l=Math.round(n*c),t=a.left+Math.round(m.left*b),u=a.top+Math.round(m.top*c);Xs(k.element,Math.round(m.width*b),l);Ms(k.element,t,u);ne(k.element,asa);I(k.element,[["ytp-ce-top-left-quad",
"ytp-ce-top-right-quad"],["ytp-ce-bottom-left-quad","ytp-ce-bottom-right-quad"]][Math.round(m.top+n/2)][Math.round(m.left+m.width/2)]);ne(k.element,A$);I(k.element,e);(k=pf("div","ytp-ce-expanding-overlay-body",k.element)[0])&&Gs(k,"height",l+"px")}}};
h.Xd=function(a){CJ.M.Xd.call(this,a);if("ytp-ce-in-endscreen"==a.getId())JJ(this,this.o.impressionUrls),this.G=!1,this.o.skip&&1==this.b.getPlayerState()&&(a=this.b,l9(a.app,!0,a.playerType),this.b.seekTo(window.Infinity),this.G=!0);else if(!this.G){a=a.getId().substring(15);var b=this.g[a],c=this.C[a];I(b.element,"ytp-ce-element-show");b.element.removeAttribute("aria-hidden");JJ(this,c.impressionUrls);S(this.b).Ra&&this.b.za("endscreenelementshown",a)}};
h.pe=function(a){if("ytp-ce-in-endscreen"!=a.getId()&&!this.G){var b=a.getId().substring(15),c=this.g[b];me(c.element,"ytp-ce-element-show");c.element.setAttribute("aria-hidden",!0);CJ.M.pe.call(this,a);S(this.b).Ra&&this.b.za("endscreenelementhidden",b)}};
h.Ey=function(a){return new R(["div",["ytp-ce-element","ytp-ce-video"],{tabindex:0,"aria-label":a.g,"aria-hidden":!0},["div","ytp-ce-element-shadow"],["div","ytp-ce-covering-image",HJ(GJ(this,a))],["div","ytp-ce-covering-shadow-top"],["a","ytp-ce-covering-overlay",{href:a.b,tabindex:"-1"},["div",["ytp-ce-video-title","yt-ui-ellipsis","yt-ui-ellipsis-2"],a.title],["div","ytp-ce-video-duration",a.videoDuration]]])};
h.Dy=function(a){return new R(["div",["ytp-ce-element","ytp-ce-playlist"],{tabindex:0,"aria-label":a.g,"aria-hidden":!0},["div","ytp-ce-element-shadow"],["div","ytp-ce-covering-image",HJ(GJ(this,a))],["div","ytp-ce-covering-shadow-top"],["a","ytp-ce-covering-overlay",{href:a.b,tabindex:"-1"},["div",["ytp-ce-playlist-title","yt-ui-ellipsis","yt-ui-ellipsis-2"],a.title],["div","ytp-ce-playlist-count",["div","ytp-ce-playlist-icon"],["div","ytp-ce-playlist-count-text",a.playlistLength]]]])};
h.Cy=function(a){var b=new R(["div",["ytp-ce-element","ytp-ce-channel",a.H?"ytp-ce-channel-this":"ytp-ce-channel-that"],{tabindex:0,"aria-label":a.g,"aria-hidden":!0},["div","ytp-ce-element-shadow"],["div","ytp-ce-expanding-overlay",["div","ytp-ce-expanding-overlay-hider"],["div","ytp-ce-expanding-overlay-background"],["div","ytp-ce-expanding-overlay-content",["div","ytp-ce-expanding-overlay-body",["div","ytp-ce-expanding-overlay-body-padding",["a",["ytp-ce-channel-title","ytp-ce-link"],a.title,{href:a.b,
target:"_blank",tabindex:"-1"}],a.A?["div","ytp-ce-channel-subscribe"]:"",a.metadata?["div",["ytp-ce-channel-metadata","yt-ui-ellipsis","yt-ui-ellipsis-3"],a.metadata]:""]]]],["div","ytp-ce-expanding-image",HJ(GJ(this,a))]]),c=pf("div","ytp-ce-channel-subscribe",b.element)[0];a.A&&wh(c,a.A);return b};
h.Fy=function(a){return new R(["div",["ytp-ce-element","ytp-ce-website"],{tabindex:0,"aria-label":a.g,"aria-hidden":!0},["div","ytp-ce-element-shadow"],["div","ytp-ce-expanding-overlay",["div","ytp-ce-expanding-overlay-hider"],["div","ytp-ce-expanding-overlay-background"],["div","ytp-ce-expanding-overlay-content",["div","ytp-ce-expanding-overlay-body",["div","ytp-ce-expanding-overlay-body-padding",["div","ytp-ce-website-title",a.title],["div","ytp-ce-website-metadata",a.metadata],["a",["ytp-ce-website-goto",
"ytp-ce-link"],a.callToAction,{href:a.b,target:"_blank",tabindex:"-1"}]]]]],["div","ytp-ce-expanding-image",HJ(GJ(this,a))],["div","ytp-ce-expanding-icon",HJ(a.F)]])};
h.Ur=function(a,b){if(a.b&&(!b||!b.keyCode||13==b.keyCode)){for(var c=b.target;c&&!je(c,"ytp-ce-element");){je(c,"subscribe-label")&&JJ(this,a.clickUrls);if(je(c,"ytp-ce-channel-subscribe"))return;c=Pf(c)}b.preventDefault();b.stopPropagation();b.ctrlKey||b.metaKey||"new"==a.J?(JJ(this,a.clickUrls),this.b.pauseVideo(),this.Wu(a.b,a.C,"_blank")):(c=x(this.Wu,this,a.b,a.C,"_top"),JJ(this,a.clickUrls,c))}};
h.Sn=function(a,b){I(a.element,"ytp-ce-element-hover");JJ(this,b.D);IJ(this,b.id,!0)};
h.Xu=function(a,b){me(a.element,"ytp-ce-element-hover");IJ(this,b.id,!1)};
h.Wu=function(a,b,c){tr(a,b);ur(a,c)};z(KJ,eq);h=KJ.prototype;h.Cb=function(){return LJ(this.b)};
h.create=function(){KJ.M.create.call(this);var a=new bq(1E3,0x7ffffffffffff,{priority:0});this.vb([a]);this.b.addEventListener("heartbeatparams",this.Zu,this);this.b.addEventListener("presentingplayerstatechange",this.$u,this);this.b.addEventListener("videoplayerreset",this.Ks,this)};
h.destroy=function(){QJ(this);KJ.M.destroy.call(this);this.b.removeEventListener("heartbeatparams",this.Zu,this);this.b.removeEventListener("presentingplayerstatechange",this.$u,this);this.b.removeEventListener("videoplayerreset",this.Ks,this)};
h.Xd=function(){this.C=!0;NJ(this,2E3)};
h.Zu=function(a){this.o=a;NJ(this,2E3)};
h.$u=function(a){P(a.state,2)||P(a.state,64)?QJ(this):(P(a.state,1)||P(a.state,8))&&NJ(this,2E3)};
h.Ks=function(){3!==this.b.getPresentingPlayerType()&&NJ(this,2E3)};
h.eG=function(){var a,b,c=S(this.b),d=this.b.getVideoData();b=c.baseYtUrl;3==this.b.getPresentingPlayerType()?this.g=window.NaN:P(os(this.b),4)?this.g=window.NaN:MJ(this)||d.xa?(!WH(d)||d.xa?(a="GET",c=c.o,b=Ug(b+"heartbeat",{video_id:d.videoId,heartbeat_token:d.heartbeatToken,c:c.c,cver:c.cver,cbrand:c.cbrand,cmodel:c.cmodel,vvt:d.R,access_token:d.oauthToken})):(a="GET",b=Ug(this.o.url,{request_id:er()}),d.R&&(b=Ug(b,{vvt:d.R})),d.oauthToken&&(b=Ug(b,{access_token:d.oauthToken}))),b=Ug(b,{cpn:d.clientPlaybackNonce}),
bk(b,{format:"RAW",method:a,timeout:3E4,rb:x(this.vB,this),onError:x(this.uB,this),Kc:x(this.wB,this),withCredentials:!0})):QJ(this)};
h.vB=function(a){if(this.g){a=a.responseText;var b;b=(b=PJ(a))?"ok"==b.status?b.stop_heartbeat?2:0:"stop"==b.status?1:"live_stream_offline"==b.status?0:-1:(b=a.match(C$))?"0"==b[1]?0:1:-1;if(-1==b)OJ(this,"decode");else if(2!=b||MJ(this))if(this.B=0,this.g=window.NaN,1==b){this.A=!1;b="YTP_ERROR_LICENSE";var c=PJ(a);c?a=c.reason||N(b):((a=a.match(C$))&&(a=(0,window.parseInt)(a[1],10))&&(b=pq(a)),a=N(b));rI(this.b.app.g,"heartbeat",a,void 0)}else this.A=!0,NJ(this);else QJ(this),this.A=!0}};
h.uB=function(a){OJ(this,"net-"+a.status)};
h.wB=function(){OJ(this,"timeout")};
var C$=/^GLS\/1.0 (\d+) (\w+).*?\r\n\r\n([\S\s]*)$/;z(VJ,G);VJ.prototype.T=function(){this.b=null;VJ.M.T.call(this)};z(bK,G);bK.prototype.T=function(){this.stop();bK.M.T.call(this)};
bK.prototype.stop=function(){null!==this.g&&(Vi(this.g),this.g=null);null!==this.b&&(this.b.cancel(),this.b=null)};z(cK,G);cK.prototype.T=function(){this.b&&(Vi(this.b),this.b=0);cK.M.T.call(this)};
cK.prototype.A=function(a,b,c){for(;;){if(C()>=a){c(Error("tryLock expired"));return}Ij(this.o,this.wa,.5);if(!Jj(this.g))break}Ij(this.g,this.wa,.5);if(Jj(this.o)==this.wa)b(this.wa);else{var d=this;this.b=Ti(function(){d.b=0;Jj(d.g)==d.wa?b(d.wa):d.A(a,b,c)},50)}};
z(dK,G);dK.prototype.T=function(){this.b.dispose();dK.M.T.call(this)};
dK.prototype.id=function(){return this.wa};z(jK,G);h=jK.prototype;h.T=function(){jK.M.T.call(this);this.A&&(Wi(this.A),this.A=0);this.o&&(this.o.dispose(),this.o=null);this.g&&(this.g.dispose(),this.g=null);km(this.B)};
h.sr=function(a){this.isDisposed()||Fda(this.o,a).then(function(){this.isDisposed()||this.g||(Hda(this),this.g=new bK(Xb(this.b.b),x(this.kE,this)))},function(){this.g&&(this.g.dispose(),this.g=null)},this)};
h.kE=function(a,b){a.contentProfileToken=b.contentProfileToken;null!==b.deviceId&&(a.deviceId=b.deviceId);a.status=b.status;1===a.status?a.b=b.timestamp:a.active=!1;a.g=b.b;if(null===gK(this.b)){var c=Xb(this.b.b);Lb(c);for(var d=c.length,e=0;e<d;++e){var f=c[e];if(1===f.status){f.active=!0;break}}}iK(this)};
h.reset=function(){this.b=new eK;Kj("yt-accelerator-discover")};
h.Yz=function(a){"yt-accelerator-discover"===a.event.key&&(this.b=fK())};z(kK,G);ca(kK);kK.prototype.init=function(a){this.b||(this.b=new jK(a.addresses||[],!!a.probe,a.xsrfToken||"",a.applianceQueryParams||""),this.g=new VJ(this.b))};
kK.prototype.T=function(){this.g&&(this.g.dispose(),this.g=null);this.b&&(this.b.dispose(),this.b=null);kK.M.T.call(this);delete kK.$b};z(lK,eq);h=lK.prototype;h.Cb=function(){return!!this.b.getVideoData().spacecastModule};
h.create=function(){lK.M.create.call(this);if(this.b.getVideoData().mf){var a={addresses:this.b.getVideoData().mf,probe:!0};window.environment&&window.environment.xsrf_token&&(a.xsrfToken=window.environment.xsrf_token);kK.getInstance().init(a)}var b;a:{a=(a=Jj("yt-accelerator-discover"))&&a.addrmap||{};for(b in a){var c=a[b];if(c.active&&(c=c.last_probe_tstamp,!(c&&12E5<Date.now()-c))){b="//"+b;break a}}b=null}this.g=b;this.o=(b=Jj("yt-accelerator-discover"))&&b.qparamsmap||{};this.load()};
h.destroy=function(){lK.M.destroy.call(this);this.g=null;this.o={}};
h.load=function(){lK.M.load.call(this);if(this.g){var a=this.b.getVideoData().videoId,b=C();uda(this.g,a,x(this.tA,this,a,b),this.o)}else iq(this)};
h.xe=function(a){switch(a){case "getVideo":a=this.b.getVideoData();var b=!!(a&&$H(a)&&a.g&&a.g.video.isAccelerated);return{docid:a.videoId,isAccelerated:b}}};
h.tA=function(a,b,c){if(this.g){b=C()-b;var d=!1,e=this.b.getVideoData(),f="unknown",k=RJ(c),l=!0;e.xb=Yb(k);if(c){c.status&&(f=c.status);"ux"in c&&(l=!!c.ux);if(k=SJ(this.g,c,e.adaptiveFormats,l,this.o))e.spacecastAdaptiveFormats=k;if(c=SJ(this.g,c,e.qa,l,this.o))e.spacecastFormatMap=c;if(k||c)VH(e,S(this.b)),e.ca||lda(this.b),d=nz(e.Sa),this.b.gk(d),d=!0}(c=2==this.b.getPresentingPlayerType())&&!d?zd(function(){var a=this.b.app;a.F&&a.F.D&&(a=a.F,a.B&&(a=a.A?a.A.A:a.o.b.b,null!=a&&a.nk()))},this):
iq(this);
hj("yt-spacecast-cache-watch-video-cached",a,d);a={a:"spacecast",module:"player",status:f,docid:a,cached:d?1:0,"cache-latency":b,cpn:e.clientPlaybackNonce,fmts:e.xb.join(","),isAd:c?1:0};kc(a,this.o);Vp("/gen_204?"+Sg(a),void 0)}};mK.prototype.b=v;z(nK,eq);h=nK.prototype;h.Cb=function(){return us(this.b.getVideoData(),"ypc_clickwrap_module")};
h.create=function(){nK.M.create.call(this);this.load()};
h.load=function(){nK.M.load.call(this);this.g=new R({I:"div",fa:["ytp-ypc-clickwrap-overlay","ytp-player-content"],P:[{I:"h2",W:"ytp-ypc-clickwrap-header",P:[N("YTP_YPC_START_RENTAL_HEADER")]},{I:"div",W:"ytp-ypc-clickwrap-description",P:[this.b.getVideoData().A.ypc_clickwrap_message]},{I:"button",fa:["ytp-ypc-clickwrap-confirm","ytp-button"],P:[N("YTP_YPC_START_RENTAL_BUTTON")]}]});kw(this.b,this.g.element,4);H(this,this.g);this.o=this.g.pa["ytp-ypc-clickwrap-confirm"];this.g.S(this.o,"click",this.FC,
this)};
h.unload=function(){nK.M.unload.call(this);this.g.detach();this.g.dispose();this.g=null};
h.FC=function(){iq(this);this.destroy()};z(oK,mK);oK.prototype.b=function(){return[Qy.o,nda,vs,sda,Ida,lba,Jda]};pK.prototype.b=function(a,b){qK(this,"index");this.A.push({index:this.G++,weight:a,value:b});this.g+=a;for(qK(this,"index");this.g>this.D;){var c=this.g-this.D,d=this.A[0];d.weight<=c?(this.g-=d.weight,this.A.shift()):(this.g-=c,d.weight-=c)}};
pK.prototype.o=function(){return this.C?(rK(this,this.B-this.C)+rK(this,this.B)+rK(this,this.B+this.C))/3:rK(this,this.B)};sK.prototype.b=function(a,b){this.g.push(b);this.g.length>this.A&&this.g.shift()};
sK.prototype.o=function(){return ef.apply(null,this.g)};yK.prototype.toString=function(){return this.type+this.id};z(CK,pk);h=CK.prototype;h.hasNext=function(a){return this.G||!!a||this.b+1<this.A};
h.Gb=function(a,b){var c=void 0!=a?a:this.b,c=this.g&&c in this.g?this.g[this.o[c]]:null,d=null;c&&(b&&(c.autoplay="1"),d=new GH(c),d.startSeconds=this.startSeconds||d.clipStart||0,this.listId&&(d.playlistId=this.listId.toString()));return d};
h.Gc=function(a,b){b=b||"hqdefault.jpg";var c=this.K[b];if(c||a.F||"sddefault.jpg"==b||"maxresdefault.jpg"==b)return c;if(this.J.length)return ZA(a,this.J[0],b)};
h.Ui=function(){return null};
h.Ug=function(){return this.listId?this.listId.toString():null};
h.Nl=function(a){return a.getVideoUrl(this.Gb().videoId,this.Ug())};
h.T=function(){this.C=null;Ob(this.g);CK.M.T.call(this)};z(IK,pk);IK.prototype.load=function(){this.loaded=!0};
IK.prototype.unload=function(){this.loaded=!1};
IK.prototype.T=function(){this.loaded&&this.unload();IK.M.T.call(this)};z(JK,R);JK.prototype.subscribe=function(a,b,c){return this.N.subscribe(a,b,c)};
JK.prototype.Fa=function(a,b,c){return this.N.Fa(a,b,c)};
JK.prototype.Mc=function(a){return this.N.Mc(a)};
JK.prototype.X=function(a,b){return this.N.X.apply(this.N,arguments)};z(KK,JK);KK.prototype.create=function(){this.K=!0};
KK.prototype.destroy=function(){this.K=!1};
KK.prototype.Xk=function(){return!1};z(LK,R);z(MK,R);z(NK,MK);NK.prototype.fb=function(a){a?this.A.show():Av(this.A)};z(OK,KK);OK.prototype.create=function(){OK.M.create.call(this);Gf(this.element);this.A.Ba(this.element);var a=this.b.getVideoData().videoId;a&&(a=WA(S(this.b),a,!0),bk(a,{method:"GET",rb:this.B,context:this,Qy:!0}))};
OK.prototype.B=function(a,b){if(this.K){var c=b.user_info,d=c.channel_banner_url;VA.test(d)||(d="");var e=c.channel_logo_url||c.image_url;VA.test(e)||(e="");this.o.va("background",d?"background-image: url("+d+")":"");this.A.va("image",e);this.A.va("author",c.channel_title||c.username);c=c.subscription_button_html;d=this.A.pa["html5-subscribe-button-container"];c?d.innerHTML=Pe(c):Gf(d)}};
OK.prototype.show=function(){OK.M.show.call(this);this.o.fb(!0)};
OK.prototype.oa=function(){OK.M.oa.call(this);this.o.fb(!1)};z(RK,R);h=RK.prototype;h.Ki=function(){this.B&&(this.D.stop(),this.sa(this.C),this.C=null,this.B.close(),this.B=null)};
h.Lr=function(){this.fb(iJ(this.o))};
h.RD=function(){window.focus();this.Ki()};
h.Tk=function(){var a=Math.min(zq()-this.F,1E4),a=Math.min(a/1E4,1);this.G.setAttribute("stroke-dashoffset",-293*(a+1));1<=a?this.select(!0):this.b&&this.b.start()};
h.select=function(a){var b=S(this.o);if(b.experiments.Z("autonav_notifications")&&a&&window.Notification&&window.document.hasFocus){var c=window.Notification.permission;rv(this.o,"xwebnotifications",{permission:c});"default"==c?window.Notification.requestPermission():"granted"!=c||window.document.hasFocus()||(c=this.A.Gb(),this.Ki(),this.B=new window.Notification(N("YTP_PLAYLIST_UP_NEXT"),{body:c.title,icon:c.Gc(b)}),this.C=this.S(this.B,"click",this.RD),this.D.start())}TK(this);b=this.A.Gb().videoId;
J9(this.o.app,b,a?this.A.Vs:this.A.Ha,this.A.Ug(),void 0,void 0)};
h.ZD=function(a){!tm(a)&&Rq(a)&&(this.select(),sm(a))};
h.Mr=function(a){sm(a);rJ(this.o,"autonavcancel");lJ(this.o,!0)};
h.LJ=function(a){120<om(a).naturalWidth&&I(this.element,"ytp-moving-thumbnail-loaded")};
h.T=function(){TK(this);this.Ki();RK.M.T.call(this)};z(VK,R);h=VK.prototype;h.Jg=function(){var a=this.b.Gb().videoId;J9(this.o.app,a,this.b.Ha,this.b.Ug(),void 0,void 0)};
h.lI=function(a){wr(a,this.o,!this.o.Qa()&&this.B,this.b.Ha)&&this.Jg()};
h.nI=function(){this.sa(this.A);this.A=null;WK(this)};
h.mI=function(a){switch(a.keyCode){case 13:case 32:tm(a)||(this.Jg(),sm(a))}};
h.oI=function(a){120<om(a).naturalWidth&&(I(this.element,"ytp-videowall-moving-thumbnail-loaded"),this.C.start())};
h.Tt=function(){me(this.element,"ytp-videowall-moving-thumbnail-loaded")};z(XK,KK);XK.b=2;h=XK.prototype;h.create=function(){XK.M.create.call(this);var a=this.b.getVideoData();a&&(this.o=ZK(a),this.C=a);this.jf();this.D.S(this.b,"appresize",this.jf);this.D.S(this.b,"videodatachange",this.kI);this.D.S(this.b,"autonavchange",this.pq);this.D.S(this.b,"autonavcancel",this.uz);this.D.S(this.element,"transitionend",this.$E)};
h.destroy=function(){Hx(this.D);Ob(this.B);this.B=[];this.o=null;XK.M.destroy.call(this);me(this.element,"ytp-show-tiles");this.J.stop()};
h.Xk=function(){return 1!=this.C.autonavState};
h.show=function(){XK.M.show.call(this);me(this.element,"ytp-show-tiles");S(this.b).isMobile?he(this.J):this.J.start();(this.H||this.G&&this.G!=this.C.clientPlaybackNonce)&&lJ(this.b,!1);var a=YK(this);AJ(this.b)&&S(this.b).experiments.Z("ui_logging")&&this.ba.log({cancelButtonShow:a?"1":"0",state:this.Xk()?"enabled":"disabled"});a?(aL(this),2==this.C.autonavState?S(this.b).experiments.Z("fast_autonav_in_background")&&3==this.b.getVisibilityState()?this.A.select(!0):SK(this.A):3==this.C.autonavState&&
UK(this.A)):(lJ(this.b,!0),aL(this))};
h.oa=function(){XK.M.oa.call(this);UK(this.A);aL(this)};
h.$E=function(a){om(a)==this.element&&this.jf()};
h.jf=function(){if(this.o&&this.o.length){var a=S(this.b).experiments.Z("video_wall_moving_thumbnails_hover");I(this.element,"ytp-endscreen-paginate");for(var b=Zs(this.element),c=b.width/b.height,d=96/54,e=XK.b,f=XK.b,k=Math.max(b.width/96,2),l=Math.max(b.height/54,2),m=this.o.length,n=Math.pow(XK.b,2),t=m*n,u=$K(this,0,l),y=$K(this,1,l),t=t+(Math.pow(u,2)-n),t=t+(Math.pow(y,2)-n),t=t-n;0<t&&(e<k||f<l);){var E=e/XK.b,D=f/XK.b,W=e<=k-XK.b&&t>=D*n,O=f<=l-XK.b&&t>=E*n;if((E+1)/D*d/c>c/(E/(D+1)*d)&&
O)t-=E*n,f+=XK.b;else if(W)t-=D*n,e+=XK.b;else if(O)t-=E*n,f+=XK.b;else break}d=!1;k=XK.b+u;t>=3*n&&6>=m*n-t&&(f>=k||e>=k)&&y<=XK.b&&(d=!0);t=96*e;n=54*f;c=t/n<c?b.height/n:b.width/t;c=Math.min(c,2);t*=c;n*=c;t*=af(b.width/t||1,1,1.21);n*=af(b.height/n||1,1,1.21);t=Math.floor(Math.min(b.width,t));n=Math.floor(Math.min(b.height,n));b=this.L.element;Xs(b,t,n);Gs(b,{marginLeft:t/-2+"px",marginTop:n/-2+"px"});c=this.A;k=this.o[0];c.A=k;QK(c,k,S(c.o),"hqdefault.jpg");me(c.element,"ytp-moving-thumbnail-loaded");
c.update({moving_thumbnail:"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"});5E5<fD(c.o.app.ha)&&(k=c.A.Ui())&&c.update({moving_thumbnail:k});J(this.element,"ytp-endscreen-takeover",YK(this));aL(this);c=t+4;t=n+4;n=0;k=!YK(this);l=!1;for(E=0;E<e;E++)for(D=0;D<f;D++)if(W=y>XK.b&&1<=n&&!l?n+1:n,O=0,d&&E>=e-XK.b&&D>=f-XK.b?O=1:0==D%XK.b&&0==E%XK.b&&(D<u&&E<u?0==D&&0==E&&(O=u):y>XK.b&&D>=f-y&&E>=e-y?D==f-y&&E==e-y&&(l=!0,W=1,O=y):O=XK.b),W=(W+this.F)%m,W=0>W*m?W+m:W,0!=
O){var Q=this.B[n];Q||(Q=new VK(this.b),this.B[n]=Q,b.appendChild(Q.element));var bb=Math.floor(t*D/f),jb=Math.floor(c*E/e),lb=Math.floor(t*(D+O)/f)-bb-4,xb=Math.floor(c*(E+O)/e)-jb-4;Ms(Q.element,jb,bb);Xs(Q.element,xb,lb);Gs(Q.element,"transitionDelay",(D+E)/20+"s");J(Q.element,"ytp-videowall-still-mini",1==O);J(Q.element,"ytp-videowall-still-large",2<O);O=Q;W=this.o[W];Q=k&&!a;O.b=W;bb=S(O.o);QK(O,W,bb,je(O.element,"ytp-videowall-still-large")?"hqdefault.jpg":"mqdefault.jpg");O.Tt();O.C.stop();
O.update({moving_thumbnail:"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"});Q?(I(O.element,"ytp-videowall-active"),WK(O)):bb.experiments.Z("video_wall_moving_thumbnails_hover")&&!O.A&&(O.A=O.O("mouseover",O.nI));n++}J(this.element,"ytp-endscreen-paginate",n<m);for(a=this.B.length-1;a>=n;a--)Q=this.B[a],If(Q.element),Nb(Q);this.B.length=n}};
XK.o=2;XK.g=1.21;h=XK.prototype;h.kI=function(){var a=this.b.getVideoData();this.C!=a&&(this.F=0,this.o=ZK(a),this.C=a,this.jf())};
h.vC=function(){this.F+=this.B.length;this.jf()};
h.wC=function(){this.F-=this.B.length;this.jf()};
h.pq=function(a){1==a?(this.H=!1,this.G=this.C.clientPlaybackNonce,TK(this.A),this.g&&this.jf()):(this.H=!0,this.g&&YK(this)&&(2==a?SK(this.A):3==a&&UK(this.A)))};
h.uz=function(a){if(a){a=[];for(var b=0;b<this.o.length;b++){var c=this.o[b].Ha;c&&a.push(c.itct)}b=this.$;if(S(b).experiments.Z("player_interaction_logging")){for(var b=b.app.bc,c=[],d=0;d<a.length;d++){var e=a[d];b.g[e]||(b.g[e]=!0,c.push(new jr))}0<c.length&&b.b.Rb("onLogVesShown",c)}this.pq(1)}else this.G=null,this.H=!1;this.jf()};z(g.cL,IK);h=g.cL.prototype;h.T=function(){var a=this.b;fq(a.app,"endscreen",a.playerType);g.cL.M.T.call(this)};
h.load=function(){g.cL.M.load.call(this);this.g.show();S(this.b).ha&&.01>Math.random()&&this.log({trailerEndscreenShow:1})};
h.log=function(a){rv(this.b,"end",a)};
h.unload=function(){g.cL.M.unload.call(this);this.g.oa();this.g.destroy()};
h.dI=function(a){jJ(this)&&(this.g.K||this.g.create(),"load"==a.getId()&&this.load())};
h.eI=function(a){"load"==a.getId()&&this.loaded&&this.unload()};
h.gt=function(){var a=this.b;fq(a.app,"endscreen",a.playerType);var a=Math.max(1E3*(this.b.getVideoData().lengthSeconds-10),0),a=new bq(a,0x8000000000000,{id:"preload",namespace:"endscreen"}),b=new bq(0x8000000000000,0x8000000000000,{id:"load",priority:6,namespace:"endscreen"});this.b.vb([a,b])};eL.prototype.hc=function(a){if(null===this.g)return a;var b=new hf(a.videoWidth,a.videoHeight);if(!jf(b,this.B)&&(this.g.canvas.width=b.width,this.g.canvas.height=b.height,this.b.top=0,this.b.left=0,this.b.width=b.width,this.b.height=b.height,this.B=b,0<this.o)){this.o=3;var c=r5(Ky(this.Y)),d=16/9;c<d?(this.b.width=b.width*c/d,this.b.left=Math.ceil(.5*(b.width-this.b.width)),this.b.width|=0):c>d&&(this.b.height=b.height*d/c,this.b.top=Math.ceil(.5*(b.height-this.b.height)),this.b.height|=0)}0<this.o&&
(this.A^=1,2<=this.b.top?(this.A?fL(this,a,0,0,this.b.width,this.b.top-1):fL(this,a,0,a.videoHeight-this.b.top+1,this.b.width,this.b.top-1))&&--this.o:2<=this.b.left&&(this.A?fL(this,a,0,0,this.b.left-1,this.b.height):fL(this,a,a.videoWidth-this.b.left+1,0,this.b.left-1,this.b.height))&&--this.o,0>=this.o&&(this.b.top=0,this.b.left=0,this.b.width=a.videoWidth,this.b.height=a.videoHeight));try{this.g.drawImage(a,this.b.left,this.b.top,this.b.width,this.b.height,0,0,this.B.width,this.B.height)}catch(e){if(!(e instanceof
window.DOMException)||"IndexSizeError"!=e.name)throw e;}return this.g.canvas};
eL.prototype.destroy=function(){null!=this.g&&(this.g.canvas.remove?this.g.canvas.remove():this.g.canvas.removeNode(!0),this.g=null)};h=gL.prototype;h.Kl=function(){return"attribute vec3 aVertPos;\nvarying vec2 vTexCrd;\nvoid main(void) {\n  vTexCrd = vec2((aVertPos.x + 1.0) * 0.5, (1.0 - aVertPos.y) * 0.5);\n  gl_Position = vec4(aVertPos, 1.0);\n}"};
h.Bl=function(){return this.g};
h.Yd=function(a,b){a.uniform1i(a.getUniformLocation(b,"uSplr"),0)};
h.cv=function(){};
h.Un=function(a){this.F&&(360>=iz[a]?this.C(!0):this.C(!1))};
h.Md=function(a,b){a.texImage2D(a.TEXTURE_2D,0,a.RGBA,a.RGBA,a.UNSIGNED_BYTE,this.B.hc(b));a.drawArrays(a.TRIANGLE_STRIP,0,4)};
h.Qs=function(){return!0};
h.zf=function(){return{shader:"NoOp"}};
h.bi=function(){};
h.destroy=function(){this.B&&this.B.destroy()};z(hL,gL);hL.prototype.Yd=function(a,b,c){hL.M.Yd.call(this,a,b,c);a.uniformMatrix4fv(a.getUniformLocation(b,"mLt"),!1,new window.Float32Array([.456,-.04,-.015,0,.5,-.038,-.021,0,.176,-.016,-.005,0,0,0,0,1]));a.uniformMatrix4fv(a.getUniformLocation(b,"mRt"),!1,new window.Float32Array([-.043,.378,-.072,0,-.088,.734,-.113,0,0,-.018,1.226,0,0,0,0,1]));this.A=a.getUniformLocation(b,"mode");a.uniform1i(this.A,this.b)};
hL.prototype.Md=function(a,b,c){this.o&&(a.uniform1i(this.A,this.b),this.o=!1);hL.M.Md.call(this,a,b,c)};
hL.prototype.zf=function(){return{shader:"Anaglyph3D",displayMode:this.b}};
hL.prototype.bi=function(a){"Anaglyph3D"==a.shader&&(void 0!=a.displayMode&&(this.b=(0,window.parseInt)(a.displayMode,10),Ij("yt-player-webgl-anaglyph-3d-display-mode",this.b),this.o=!0),this.D())};z(iL,gL);
iL.prototype.Yd=function(a,b,c){iL.M.Yd.call(this,a,b,c);c=new window.Uint8Array(4194304);for(var d=0;4194304>d;d++)c[d]=255*Math.random();d=a.createTexture();a.activeTexture(a.TEXTURE1);a.bindTexture(a.TEXTURE_2D,d);a.texParameteri(a.TEXTURE_2D,a.TEXTURE_MIN_FILTER,a.NEAREST);a.texParameteri(a.TEXTURE_2D,a.TEXTURE_MAG_FILTER,a.NEAREST);a.texParameteri(a.TEXTURE_2D,a.TEXTURE_WRAP_S,a.REPEAT);a.texParameteri(a.TEXTURE_2D,a.TEXTURE_WRAP_T,a.REPEAT);a.texImage2D(a.TEXTURE_2D,0,a.LUMINANCE,2048,2048,
0,a.LUMINANCE,a.UNSIGNED_BYTE,c);a.uniform1i(a.getUniformLocation(b,"uNoiseSplr"),1);a.uniform1f(a.getUniformLocation(b,"amount"),this.G);a.uniform1f(a.getUniformLocation(b,"offset"),this.H);this.o=a.getUniformLocation(b,"seed");(a=this.Y.getVideoData())&&a.g&&this.Un(a.g.video.quality)};
iL.prototype.Md=function(a,b,c){if(this.J){var d=C();1E3<d-this.A&&(this.A=d,a.uniform1f(this.o,Math.random()))}else a.uniform1f(this.o,Math.random());iL.M.Md.call(this,a,b,c)};
iL.prototype.zf=function(){return{shader:"WhiteNoise"}};z(jL,iL);jL.prototype.Yd=function(a,b,c){jL.M.Yd.call(this,a,b,c);this.b=a.getUniformLocation(b,"mode");a.uniform1i(this.b,1)};
jL.prototype.Md=function(a,b,c){this.D&&(a.uniform1i(this.b,1),this.D=!1);jL.M.Md.call(this,a,b,c)};
jL.prototype.zf=function(){return{shader:"EdgeEnhance"}};kL.prototype.BYTES_PER_ELEMENT=4;kL.prototype.set=function(a,b){b=b||0;for(var c=0;c<a.length&&b+c<this.length;c++)this[b+c]=a[c]};
kL.prototype.toString=Array.prototype.join;"undefined"==typeof window.Float32Array&&(kL.BYTES_PER_ELEMENT=4,kL.prototype.BYTES_PER_ELEMENT=kL.prototype.BYTES_PER_ELEMENT,kL.prototype.set=kL.prototype.set,kL.prototype.toString=kL.prototype.toString,g.ba("Float32Array",kL,void 0));lL.prototype.BYTES_PER_ELEMENT=8;lL.prototype.set=function(a,b){b=b||0;for(var c=0;c<a.length&&b+c<this.length;c++)this[b+c]=a[c]};
lL.prototype.toString=Array.prototype.join;if("undefined"==typeof window.Float64Array){try{lL.BYTES_PER_ELEMENT=8}catch(a){}lL.prototype.BYTES_PER_ELEMENT=lL.prototype.BYTES_PER_ELEMENT;lL.prototype.set=lL.prototype.set;lL.prototype.toString=lL.prototype.toString;g.ba("Float64Array",lL,void 0)};pL.prototype.destroy=function(){this.A=this.o=this.g=this.b=null};qL.prototype.G=function(){X5(this.b);var a=V5(this.b,this.o.channelCount),b=W5(this.b,2),c=65*Math.PI/180;this.g=new pL(this.b,this.o,a,b,0,.45,c);this.A=new pL(this.b,this.o,a,b,1,.45,-1*c);U5(this.b).connect(a);b.connect(T5.destination)};
qL.prototype.D=function(){this.g.destroy();this.A.destroy();this.A=this.g=null;X5(this.b);U5(this.b).connect(T5.destination)};
qL.prototype.F=function(a,b){this.g&&(oL(this.g,a,b),oL(this.A,a,b))};
qL.prototype.destroy=function(){this.g&&(X5(this.b),this.D())};z(rL,qL);rL.prototype.G=function(){X5(this.b);var a=V5(this.b,this.o.channelCount),b=T5.destination;b.channelCount=Math.min(6,b.maxChannelCount);b.channelInterpretation="discrete";var b=W5(this.b,6),c=Math.PI/6;this.g=new pL(this.b,this.o,a,b,0,.65,c);this.A=new pL(this.b,this.o,a,b,1,.65,-1*c);c=120*Math.PI/180;this.B=new pL(this.b,this.o,a,b,4,.65,c);this.C=new pL(this.b,this.o,a,b,5,.65,-1*c);U5(this.b).connect(a);b.connect(T5.destination)};
rL.prototype.D=function(){this.B.destroy();this.C.destroy();this.C=this.B=null;rL.M.D.call(this)};
rL.prototype.F=function(a,b){this.g&&(oL(this.g,a,b),oL(this.A,a,b),oL(this.B,a,b),oL(this.C,a,b))};tL.prototype.identity=function(){this.b.set([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1])};
tL.prototype.get=function(){return this.b};h=wL.prototype;h.Kl=function(){return"attribute vec3 aVertPos;\nvarying vec3 pos;\nvoid main() {\n  gl_Position = vec4(aVertPos.xyz, 1.0);\n  pos = aVertPos;\n}"};
h.Bl=function(){return"precision mediump float;varying vec3 pos;uniform sampler2D uSplr;uniform mat4 uVMat;uniform float uFOVx;uniform float uFOVy;\n#define INV_PI 0.3183\nvoid main() {  vec3 ray = vec3(pos.x * tan(uFOVx), pos.y * tan(uFOVy), -1);  ray = (uVMat * vec4(ray, 1.0)).xyz;  ray = normalize(ray);  vec2 texCrd = vec2(0.5 + atan(ray.x, -1.0 * ray.z) * INV_PI * 0.5,                     acos(ray.y) * INV_PI);  gl_FragColor = vec4(texture2D(uSplr, texCrd).xyz, 1.0);}"};
h.Yd=function(a,b){this.La=a.getUniformLocation(b,"uVMat");this.ca=a.getUniformLocation(b,"uFOVx");this.ea=a.getUniformLocation(b,"uFOVy");this.da=a.getUniformLocation(b,"uSplr");a.uniform1i(this.da,0);var c;var d=this.F;c=d.getVideoData();var e;if(e=c)c.B&&c.B.audio?(e=c.B.audio.spatialAudioType,e=!!e&&0!=e):e=!1;if(e){d=d.app;if(d.o.wh()&&d.V.experiments.Z("html5_stream_ambisonic_audio")){d.da||(d.da=new S5(d.b),d.da.initialize(),H(d,d.da));e=d.da;var f=d.o;f.wh()&&(e.b?e.b!=f&&(X5(e),e.b=f,e.g=
null):e.b=f);d=d.da}else d=null;d&&T5&&T5.createMediaElementSource&&d.b?(c=c.B.audio.spatialAudioType,e=T5.destination,c=6<=e.maxChannelCount&&!yA?new rL(d,0,sL(c)):2<=e.maxChannelCount?new qL(d,0,sL(c)):null):c=null}else c=null;if(this.o=c)this.o.G(),this.o.F(this.D,this.A)};
h.cv=function(){this.J=!0};
h.Un=r;
h.Md=function(a,b){var c=this.b,d=this.g;if(this.J){a.g>a.b?(this.b=this.C,this.g=Math.atan(Math.tan(this.C)*a.b/a.g)):(this.g=this.C,this.b=Math.atan(Math.tan(this.C)*a.g/a.b));a.uniform1f(this.ca,this.b);a.uniform1f(this.ea,this.g);this.A=af(this.A,-Math.PI/2,Math.PI/2);this.B.identity();var e=this.B,f=this.A,k=Math.sin(f),f=Math.cos(f);e.o.set([1,0,0,0,0,f,k,0,0,-k,f,0,0,0,0,1]);uL(e,e.o);e=this.B;f=this.D;k=Math.sin(f);f=Math.cos(f);e.o.set([f,0,-k,0,0,1,0,0,k,0,f,0,0,0,0,1]);uL(e,e.o);a.uniformMatrix4fv(this.La,
!1,this.B.get());this.J=!1}e=C();if(this.ga){this.H[0]=-this.B.get()[8];this.H[1]=-this.B.get()[9];this.H[2]=-this.B.get()[10];var k=this.ga,f=this.H,l=this.F.getCurrentTime(),m=e/1E3,n=this.F.getPlayerState(),t=null,u,y,E;1==n?(u=k.o,E=k.F,y=l):(u=k.D,E=k.C,y=m);var D=0!=k.b.length;if(D){var W=150<=k.b.length;if(k.A!=n||.5<y-E||y<E||W){t=null;if(5<=k.b.length){for(var t=k.b,D=Array(2*t.length),O=W=0,Q=0;Q<t.length;++Q)D[Q]=t[Q].x-W&255,D[Q+t.length]=t[Q].y-O&255,W=t[Q].x,O=t[Q].y;W=Sda(D);t=k.o;
D=1==k.A?k.g:0;W=Xq(W,!0);O="";for(Q=W.length-1;0<=Q&&"."==W.charAt(Q);--Q)O+="=";W=W.substring(0,W.length-O.length)+O;t={start:t,duration:D,data:W}}k.b=[];k.g=0;D=!1}}if(1==n||2==n||3==n){if(D)for(u=u+k.g+.2;u<y;){W=(u-E)/(y-E);k.g+=.2;var D=k.B,O=f,Q=W,W=new window.Float32Array(3),bb=mL(D),jb=mL(O),lb=(D[0]*O[0]+D[1]*O[1]+D[2]*O[2])/(bb*jb);if(.999999<lb)bb=D[0],jb=D[1],D=D[2],W[0]=(O[0]-bb)*Q+bb,W[1]=(O[1]-jb)*Q+jb,W[2]=(O[2]-D)*Q+D;else{var xb,fg;-.999999>lb?(lb=new window.Float32Array(3),xb=
(bb+jb)/2,D[0]?(xb/=Math.sqrt(D[0]*D[0]+D[1]+D[1]),lb[0]=-D[1]*xb,lb[1]=D[0]*xb,lb[2]=0):(xb/=Math.sqrt(D[2]*D[2]+D[1]+D[1]),lb[0]=0,lb[1]=-D[2]*xb,lb[2]=D[1]*xb),.5>=Q?(jb=bb,O=lb,Q*=2):(D=lb,Q=2*Q-1),xb=Math.PI/2,fg=1):(xb=Math.acos(lb),fg=Math.sqrt(1-lb*lb));lb=Math.sin((1-Q)*xb)/fg/bb;xb=Math.sin(Q*xb)/fg/jb;Q=(1-Q)*bb+Q*jb;W[0]=(D[0]*lb+O[0]*xb)*Q;W[1]=(D[1]*lb+O[1]*xb)*Q;W[2]=(D[2]*lb+O[2]*xb)*Q}D=W;k.b.push(vL(D));u+=.2}else k.o=l,k.D=m,k.b.push(vL(f)),k.g=0;k.B=f;k.F=l;k.C=m;k.A=n}k=t;k&&
(f=gJ(this.F.app))&&f.o&&(f=f.o.g,l=k.start,m=k.duration,k=k.data,Au(f,Du(f.b),"dir",[l.toFixed(3),m.toFixed(3),k]))}(this.ba!=this.b||this.$!=this.g)&&3E4<e-this.aa&&c==this.b&&d==this.g&&(this.ba=this.b,this.$=this.g,this.aa=e,(c=gJ(this.F.app))&&c.o&&(c=c.o.g,d=Math.round(360*this.b/Math.PI),e=Math.round(360*this.g/Math.PI),Au(c,Du(c.b),"fov",[d,e])));a.texImage2D(a.TEXTURE_2D,0,a.RGBA,a.RGBA,a.UNSIGNED_BYTE,this.K.hc(b));a.drawArrays(a.TRIANGLE_STRIP,0,4)};
h.Qs=function(){return!1};
h.zf=function(){return{shader:"Spherical",yaw:this.D,pitch:this.A,fov:this.C}};
h.bi=function(a){if("Spherical"==a.shader||"Spherical3D"==a.shader)a.yaw&&(this.D=a.yaw),a.pitch&&(this.A=a.pitch),a.fov&&(this.C=af(a.fov,.32,1.05)),this.o&&this.o.F(this.D,this.A),this.J=!0,this.R()};
h.destroy=function(){this.K&&this.K.destroy();this.o&&this.o.destroy()};z(xL,wL);h=xL.prototype;h.Kl=function(){return"attribute vec3 aVertPos;\nvarying vec3 pos;\nvoid main() {\n  gl_Position = vec4(aVertPos.xyz, 1.0);\n  pos = aVertPos;\n}"};
h.Bl=function(){return"precision mediump float;varying vec3 pos;uniform sampler2D uSplr;uniform int mode;uniform mat4 uVMat;uniform float uFOVx;uniform float uFOVy;\n#define INV_PI 0.3183\nmat4 mRt = mat4(-.043, .378, -.072, 0.0, -.088, .734, -.113, 0.0, 0.0,   -0.018, 1.226, 0.0, 0.0, 0.0, 0.0, 1.0);mat4 mLt = mat4(.456, -.04, -.015, 0.0, .5, -.038, -.021, 0.0, .176,   -0.016, -.005, 0.0, 0.0, 0.0, 0.0, 1.0);void anaglyph(float x, float y) {  y *= 0.5;  vec4 cLt = texture2D(uSplr, vec2(x, y));  vec4 cRt = texture2D(uSplr, vec2(x, 0.5 + y));  gl_FragColor = mLt * cLt + mRt * cRt;}void main() {  vec3 ray = vec3(pos.x * tan(uFOVx), pos.y * tan(uFOVy), -1);  ray = (uVMat * vec4(ray, 1.0)).xyz;  ray = normalize(ray);  vec2 texCrd = vec2(0.5 + atan(ray.x, -1.0 * ray.z) * INV_PI * 0.5,                     acos(ray.y) * INV_PI);  if (mode == 2) {    anaglyph(texCrd.x, texCrd.y);  } else {    texCrd.y *= 0.5;    gl_FragColor = texture2D(uSplr, texCrd);  }}"};
h.Yd=function(a,b,c){xL.M.Yd.call(this,a,b,c);this.N=a.getUniformLocation(b,"mode");a.uniform1i(this.N,this.G)};
h.Md=function(a,b,c,d){this.L&&(a.uniform1i(this.N,this.G),this.L=!1);xL.M.Md.call(this,a,b,c,d)};
h.zf=function(){var a=xL.M.zf.call(this);a.shader="Spherical3D";a.displayMode=this.G;return a};
h.bi=function(a){void 0!=a.displayMode&&(this.G=(0,window.parseInt)(a.displayMode,10),Ij("yt-player-webgl-spherical-3d-display-mode",this.G),this.L=!0,this.R());xL.M.bi.call(this,a)};yL.prototype.K=function(){this.J=!1;if(this.o&&(this.A.videoWidth||this.A.videoHeight)){if(0==this.H){var a=Jy(Ky(this.Y));if(!pg(this.C,a)){this.C=a;var b,c,d,a=Ky(this.Y).Ia();this.b.Qs()?("Anaglyph3D"!=this.aa?b=!1:(b=r5(Ky(this.Y)),c=this.Y.getVideoData(),b=(0,window.isNaN)(b)||c.Od("yt:stretch")||c.Od("yt:crop")?!1:.01>Math.abs(b-32/9)||.01>Math.abs(b-8/9)),b?(16*a.height/9>a.width?(b=a.width,c=9*b/16):(c=a.height,b=16*c/9),d=(a.height-c)/2,a=(a.width-b)/2):(b=this.C.width,c=this.C.height,d=
this.C.top,a=this.C.left)):(b=a.width,c=a.height,a=d=0);a=new ng(a|0,d|0,b|0,c|0);this.D.style.left=a.left+"px";this.D.style.top=a.top+"px";this.g.width=a.width;this.g.height=a.height;this.o.g=a.width;this.o.b=a.height;this.o.viewport(0,0,a.width,a.height);this.b.cv()}}this.b.Md(this.o,this.A,this.L,this.ba)}this.B&&this.F()};
yL.prototype.$=function(a){this.G!=a&&this.g&&((this.G=a)?(this.D.appendChild(this.g),this.F(),cB||(this.A.style.display="none")):(If(this.g),this.A.style.display=""))};
yL.prototype.F=function(){!this.J&&this.G&&((0,window.requestAnimationFrame)(this.K.bind(this)),this.J=!0)};z(g.zL,IK);
g.zL.b=function(a){var b=S(a).o.c.toLowerCase(),c=a.getVideoData();a=S(a);return(a.experiments.A||dB(a))&&UH(c)?"Anaglyph3D":(a.experiments.o||dB(a))&&TH(c)?"Spherical":(a.experiments.Z("html5_enable_spherical3d")||dB(a))&&SH(c)?"Spherical3D":a.experiments.Z("enable_webgl_noop")&&"web"==b&&bB(a)?"NoOp":(a.experiments.Z("enable_white_noise")||a.experiments.Z("white_noise_with_interval"))&&"web"==b&&(bB(a)||a.C&&yA&&!aB&&zc(38))?"WhiteNoise":a.experiments.Z("enable_edge_enhance")&&"web"==b&&bB(a)?"EdgeEnhance":
null};
h=g.zL.prototype;h.hI=function(){var a=this.g;a.B||(0,window.requestAnimationFrame)(a.K.bind(a))};
h.bE=function(a){var b=this.g;b.b&&b.b.Un(a)};
h.gI=function(a){var b=this.g,c=b.B;b.B=P(a.state,8);b.B&&!c&&b.F()};
h.load=function(){g.zL.M.load.call(this);this.A.Ba(Ky(this.b).o);this.g=new yL(this.Y,g.zL.b(this.Y),this.A.element);this.o.S(this.b,"resize",this.hI);this.o.S(this.b,"onPlaybackQualityChange",this.bE);this.o.S(this.b,"presentingplayerstatechange",this.gI);var a;a:{a=this.g;a.b=null;var b=a.$.bind(a),c=x(a.F,a),d=!1;switch(a.aa){case "Anaglyph3D":a.b=new hL(a.Y,c);break;case "Spherical":a.b=new wL(a.Y,c);break;case "WhiteNoise":a.b=new iL(a.Y,b);d=!0;break;case "EdgeEnhance":a.b=new jL(a.Y,b);break;
case "NoOp":a.b=new gL(a.Y,!0,b);break;case "Spherical3D":a.b=new xL(a.Y,c)}if(a.b){a.H=Vda(a,d);if(0==a.H){a.G&&!cB&&(a.A.style.display="none");a=!0;break a}a.Y.app.g.Uh(new mC("html5.missingapi.webgl",!1,void 0))}a=!1}a?(hq(this.b,"webgl"),this.b.za("onApiChange")):(hq(this.b,"webgl"),this.unload())};
h.unload=function(){g.zL.M.unload.call(this);var a=this.g;a.g&&(If(a.g),a.g=null);a.o=null;a.B=!1;a.b&&a.b.destroy();a.b=null;a.A.removeAttribute("crossorigin");a.A.style.display="";a.H=10;this.g=null;this.A.detach();Hx(this.o)};z(BL,JK);BL.prototype.o=function(){this.oa();this.X("close-clicked")};
BL.prototype.oa=function(){this.b.stop();I(this.element,"ytp-drawer-closed")};
BL.prototype.Nb=function(a){a?(BL.M.Nb.call(this,a),Nq(this.element,"block")):Nq(this.element,"none")};
BL.prototype.show=function(){this.b.start()};z(CL,pk);CL.prototype.T=function(){CL.M.T.call(this);this.o||If(this.A)};
CL.prototype.Ba=function(a){this.o||(this.b.Ba(a),this.b.Nb(this.g.element),a.appendChild(this.A))};
CL.prototype.B=function(){this.X("ypcModuleCloseClicked")};
CL.prototype.C=function(){this.X("ypcContentRequest")};z(g.EL,IK);h=g.EL.prototype;h.UF=function(a){this.g&&"dataupdated"==a||(this.unload(),this.load())};
h.load=function(){g.EL.M.load.call(this);this.B.S(this.b,"crn_ypc",this.iI,this);this.B.S(this.b,"crx_ypc",this.jI,this);this.B.S(this.b,"videodatachange",this.UF,this);var a=this.b.getVideoData();this.o=new Wda(a);this.A=new R({I:"div",fa:["ytp-player-content","ytp-ypc-player-content"]});kw(this.b,this.A.element,4);if(this.o.videoId&&!a.ypcPreview){for(var b={autoplay:"1",oauth_token:a.oauthToken,video_id:this.o.videoId,ypc_origin:a.videoId,ypc_preview:"1"},c=GH.o,d=0;d<c.length;d++){var e=c[d];
a.A.hasOwnProperty(e)&&(b[e]=a.A[e])}this.b.ik(b,!0)}else this.o.videoId&&(this.C=new R({I:"div",W:"html5-ypc-overlay",P:[this.o.A]}),this.C.Ba(this.A.element)),this.o.offerId&&(b=1E4,a.A.hasOwnProperty("ypc_overlay_timeout")&&(b=(0,window.parseInt)(a.A.ypc_overlay_timeout,10)),this.g=new CL(this.A.element,this.o,b),this.g.subscribe("ypcContentRequest",this.IC,this),this.g.subscribe("ypcModuleCloseClicked",this.CD,this),GL(jq(this.b))&&(c=new bq(0x8000000000000,0x8000000000000,{priority:2,namespace:"ypc"}),
this.b.vb([c])),c=this.g,c.o||c.b.show(),this.D.start(b)),!this.o.videoId&&this.g?DL(this.g):a.ypcPreview?(this.b.za("ypcStateChanged",!0),hq(this.b,"ypc")):this.g||hq(this.b,"ypc")};
h.unload=function(){this.A&&(this.A.detach(),this.A.dispose(),this.A=null);Hx(this.B);var a=this.b;fq(a.app,"ypc",a.playerType);this.D.stop();Ob(this.C,this.g);this.g=this.C=null;g.EL.M.unload.call(this);this.b.za("ypcStateChanged",!1)};
h.iI=function(){DL(this.g)};
h.jI=function(){var a=this.g;a.o||(Nq(a.A,"none"),a.b.Nb(a.g.element))};
h.IC=function(){this.o.b?"embedded"==S(this.b).b?ur(this.o.b):sr(this.o.b):this.o.offerId&&(this.b.Qa()&&yr(this.b),this.b.za("onYpcContentRequest",this.o.offerId))};
h.CD=function(){this.log({a:"ypc-checkout",label:"ypc-player-module-close-click",playertype:"html5"})};
h.log=function(a){rv(this.b,"ypc",a)};g.ba("yt.player.modules.WebGlModule",g.zL,void 0);g.ba("yt.player.modules.EndScreenModule",g.cL,void 0);g.ba("yt.player.modules.YpcModule",g.EL,void 0);z(FL,G);var Xda={webgl:"yt.player.modules.WebGlModule2",endscreen:"yt.player.modules.EndScreenModule2",ypc:"yt.player.modules.YpcModule2"};h=FL.prototype;h.Ip=function(){this.o=this.o||HL(this,"endscreen",this.Ip,GL(this))};
h.Jp=function(){var a;if(!(a=this.g)){a=this.Jp;var b=S(this.Y),c;if(c=dB(b)||b.experiments.Z("html5_enable_spherical3d")||b.experiments.Z("enable_webgl_noop")||b.experiments.o||b.experiments.A)c=this.Y.getVideoData(),c=TH(c)||SH(c)||UH(c)||b.experiments.Z("enable_edge_enhance")||b.experiments.Z("enable_white_noise")||b.experiments.Z("white_noise_with_interval");a=HL(this,"webgl",a,c)}this.g=a};
h.Kp=function(){this.B=this.B||HL(this,"ypc",this.Kp,us(this.Y.getVideoData(),"ypc_module"))};
h.Sy=function(a){var b;var c=na(a);b=this.J[c];if(!b&&(b=a(this.Y))){a=this.J[c]=b;for(var d in this.G)a.subscribe(d,this.G[d]);H(this,b)}b&&b.Cb(this.Y)&&!gb(this.b,b)&&(this.b.push(b),b.create(),gb(this.D,b.Ma)&&(b.F=this.H,b.yj(!!b.F)))};
h.NF=function(a,b){F(this.b,function(c){c.X(a,b)})};
h.isAvailable=function(a){a=nJ(this,a);return!(!a||!a.ea)};z(ML,Error);ML.prototype.jb=function(){return this.g};
ML.prototype.Fb=function(){return this.B};
ML.prototype.toString=function(){return"AdError "+this.jb()+": "+this.b+(null!=this.A?" Caused by: "+this.A:"")};z(NL,mc);NL.prototype.getError=function(){return this.o};var X0="adMetadata callFlashVpaidMethod click companionBackfill companionInitialized complete destroyInsecureFlashVpaid durationChange firstquartile impression initInsecureFlashVpaid loaded log mediaUrlPinged midpoint mute pause resume skipshown skippableStateChanged skip start thirdquartile trackingUrlPinged videoClicked volumeChange vpaidEvent youTubeChannelMetadata".split(" "),D$="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(" "),
bsa="acceptinvitation click close collapse creativeview expand progress".split(" "),E$=["viewable_impression","measurable_impression","externalActivityEvent"],F$={measurable_impression:"measurable_impression",viewable_impression:"viewable_impression",fully_viewable_audible_half_duration_impression:"fully_viewable_audible_half_duration_impression"};z(OL,mc);OL.prototype.ib=function(){return this.o};
var hka={TJ:"adCanPlay",tL:"contentPauseRequested",uL:"contentResumeRequested",yk:"click",nQ:"videoClicked",so:"engagedview",jM:"expandedChanged",tP:"start",ri:"impression",Fo:"measurable_impression",Xo:"viewable_impression",xo:"fully_viewable_audible_half_duration_impression",kM:"externalActivityEvent",PAUSED:"pause",UO:"resume",wo:"firstquartile",Go:"midpoint",Vo:"thirdquartile",oo:"complete",aM:"durationChange",GK:"autoClose",gQ:"userClose",hQ:"userRecall",BO:"prefetched",LOADED:"loaded",uK:"allAdsCompleted",
Qo:"skip",Qx:"skipshown",cN:"linearChanged",nP:"skippableStateChanged",UJ:"adMetadata",SJ:"adBreakReady",nN:"log",VOLUME_CHANGED:"volumeChange",vQ:"mute",jL:"companionBackfill",IQ:"youTubeVideoMetadata",HQ:"youTubeChannelMetadata",fQ:"urlNavigationRequested",UP:"trackingUrlPinged",jQ:"video_card_endcap_action",kQ:"video_card_endcap_collapse",lQ:"video_card_endcap_dismiss",mQ:"video_card_endcap_impression",EQ:"why_this_ad_url",DQ:"why_this_ad_got_it",YN:"MUTE_AD",mL:"companionInitialized",lL:"companionImpression",
kL:"companionClick",tN:"mediaUrlPinged"};var nM={ax:5E3,bx:15E3,Hx:"://secure-...imrworldwide.com/ ://cdn.imrworldwide.com/ ://aksecure.imrworldwide.com/ ://[^.]*.moatads.com ://youtube[0-9]+.moatpixel.com www.google.com/pagead/sul www.youtube.com/pagead/sul www.youtube.com/pagead/psul".split(" "),Ix:/\bocr\b/,ll:0,re:{},gG:function(a,b,c){a&&(nM.jr(a)?nM.Ct(a,b):nM.Kj(a,b,c))},
jr:function(a){return A(B(a))?!1:0<=a.indexOf("://pagead2.googlesyndication.com/pagead/gen_204?id=yt3p&sr=1&")||(new L(a)).F().match(nM.Ix)?!0:null!=cb(nM.Hx,function(b){return null!=a.match(b)})},
Ct:function(a,b){if(a){var c='javascript:"data:text/html,<body><img src=\\"'+a+'\\"></body>"';b?nM.gr(function(b){nM.wt(b?c:'javascript:"data:text/html,<body><object data=\\"'+a+'\\" width=1 height=1 style=\\"visibility:hidden;\\"></body>"')}):nM.wt(c)}},
wt:function(a){var b=K("IFRAME",{src:a,style:"display:none"});a=mf(b).body;var c,d=ee(function(){dd(c);If(b)},nM.bx);
c=bd(b,["load","error"],function(){ee(function(){fe(d);If(b)},nM.ax)});
a.appendChild(b)},
gr:function(a,b){var c=nM.re.imageLoadingEnabled;if(null!=c)a(c);else{var d=!1,c=function(b,c){delete nM.re[c];d||(d=!0,null!=nM.re.imageLoadingEnabled||(nM.re.imageLoadingEnabled=b),a(b))};
b?b(c):nM.AB(c)}},
AB:function(a){var b=new window.Image,c,d=""+nM.ll++;nM.re[d]=b;b.onload=function(){(0,window.clearTimeout)(c);a(!0,d)};
c=(0,window.setTimeout)(function(){a(!1,d)},300);
b.src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="},
fG:function(a){if(a){var b=Df("OBJECT");b.data=a;b.width="1";b.height="1";b.style.visibility="hidden";var c=""+nM.ll++;nM.re[c]=b;b.onload=b.onerror=function(){delete nM.re[c]};
window.document.body.appendChild(b)}},
xt:function(a){if(a){var b=new window.Image,c=""+nM.ll++;nM.re[c]=b;b.onload=b.onerror=function(){delete nM.re[c]};
b.src=a}},
Kj:function(a,b,c){if(a){if(c)try{if(aa.navigator&&aa.navigator.sendBeacon&&aa.navigator.sendBeacon(a,""))return}catch(d){}b?nM.gr(function(b){b?nM.xt(a):nM.fG(a)}):nM.xt(a)}}};SL.prototype.b=function(){return this.G};
var U=new SL;var $V=["ADSENSE","ADSENSE/ADX"],yha=["DART","DART_DFA","DART_DFP"],Jha=["FREEWHEEL","YT:FREEWHEEL"],sV=["SHOPPING","YT:SHOPPING"],xV=["GDFP"],xha=["VIRAL","ADSENSE-VIRAL"],wha=["VIRAL-RESERVE"],GT={"application/flash":"Flash","application/shockwave-flash":"Flash","application/x-shockwave-flash":"Flash","image/jpeg":"Image","image/jpg":"Image","image/png":"Image","image/gif":"Image",text:"Text"},l_={DN:"video/mp4",FN:"video/mpeg",qN:"application/x-mpegURL",dO:"video/ogg",FP:"video/3gpp",yQ:"video/webm",
CN:"audio/mpeg",EN:"audio/mp4"};TL.prototype.Z=function(){return!1};
TL.prototype.b=function(){return window.NaN};
TL.prototype.g=function(){return""};UL.prototype.getId=function(){return this.wa};VL.prototype.getId=function(){return this.wa};var YL=null;var Yfa=["*.googlesyndication.com","gcdn.2mdn.net"],iea=["*.youtu.be","*.youtube.com"],lea="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(" "),kea=["c.googlesyndication.com"],
pja=["googleads.g.doubleclick.net","pubads.g.doubleclick.net"];pM.prototype.jb=function(){return this.errorCode};
var zja=new pM("Unable to request ads from server. Cause: {0}.",1005),qja=new pM("Unable to request ads from server due to network error.",1012),QW=new pM("Cannot parse the {0} value for the adslist response: {1}.",900),a_=new pM("Invalid usage of the API. Cause: {0}",900),n0=new pM("Asset fallback ad replacement failed.",1021),o0=new pM("Asset fallback no ad replacement.",1021),f_=new pM("Unable to display one or more required companions.",602),bZ=new pM("There was a problem requesting ads from the server.",
1005),G$=new pM("There was a problem requesting the biscotti ID.",1005),oja=new pM("Ad tag URI {0} is invalid. It must be properly encoded before being passed.",1013),EY=new pM("The provided ad type: {0} is not supported.",1005),AQ=new pM("The provided {0} information: {1} is invalid.",1101),csa=new pM("The provided skip offset was invalid.",1105),dsa=new pM("The extension contained is neither skippable nor nonskippable.",1105),jU=new pM("The response does not contain any valid ads.",1009),esa=new pM("The overlay ad content could not be displayed since creative dimensions do not align with display area.",
501),aia=new pM("The ad playlist response was malformed or empty.",1010),RW=new pM("The ad response was not understood and cannot be parsed.",1010),tja=new pM("An unexpected error occurred and the cause is not known. Refer to the inner error for more info.",900),xka=new pM("The ad response contains unexpected element. Cause {0}.",1010),lZ=new pM("No assets were found in the VAST ad response.",200),oha=new pM("Duplicate node in <{0}>: {1}",101),gY=new pM("The VAST response document is empty.",1009),
eka=new pM("Linear assets were found in the VAST ad response, but none of them matched the video player's capabilities.",403),iU=new pM("Ad request reached a timeout.",301),hY=new pM("VAST response was malformed and could not be parsed.",100),H$=new pM("VAST media file loading reached a timeout of {0} seconds.",402),kU=new pM("Ad request could not be completed due to a network error.",301),fsa=new pM("Non linear assets were found in the VAST ad response, but none of them matched the video player's capabilities.",
503),dha=new pM("The maximum number of VAST wrappers ({0}) has been reached.",302),gsa=new pM("VAST media file duration differs from the VAST response duration by {0} seconds.",202),i0=new pM("Video player received an ad with unexpected or incompatible linearity",201),nha=new pM("Unknown node in <{0}>: {1}",101),zia=new pM("Invalid VAST resource type: {0}",101),Qia=new pM("Invalid VAST version",102),eha=new pM("No additional VAST wrappers allowed.",300),pU=new pM("No Ads VAST response after one or more Wrappers",
303),p0=new pM("There was an error playing the video ad.",400),Mia=new pM("VMAP unsupported node in <{0}>: {1}",1010),I_=new pM("An unexpected error occurred within the VPAID creative. Refer to the inner error for more info.",901);var tS="abort canplay canplaythrough durationchange emptied loadstart loadeddata loadedmetadata progress ratechange seeked seeking stalled suspend waiting".split(" ");var EM={},GM="",cR=/OS (\S+) like/,CM=/Android ([\d\.]+)/;KM.prototype.reset=function(){this.b=0;this.g=null};MM.prototype.reset=function(){this.g=this.b=null};var SM=new OM;OM.prototype.clear=function(){this.b=NM();this.C=this.H=this.g=null;this.B=NM();this.A=null;this.R=this.D=this.F="";this.G=this.N=this.o=null;this.aa=!1};ca(RM);var WM="function"==typeof window.Uint8Array,XM=[];VM.prototype.toString=function(){aN(this);return this.g.toString()};
VM.prototype.getExtension=function(a){if(this.o){this.b||(this.b={});var b=a.o;if(a.A){if(a.g())return this.b[b]||(this.b[b]=M(this.o[b]||[],function(b){return new a.b(b)})),this.b[b]}else if(a.g())return!this.b[b]&&this.o[b]&&(this.b[b]=new a.b(this.o[b])),this.b[b];
return this.o[b]}};
VM.prototype.clone=function(){return new this.constructor(bN($M(this)))};z(cN,VM);z(dN,VM);z(eN,VM);eN.prototype.getStyle=function(){return ZM(this,gN,1)};
z(fN,VM);z(gN,VM);z(hN,VM);h=iN.prototype;h.vy=!1;h.hp=!1;h.lp=!0;h.Zf=null;h.bitrate=-1;h.sg=null;h.Wy=!1;h.rh=null;h.surveyCreativeData=null;h.DG=!0;h.un=!1;h.EG=!1;h.vn=!1;h.wn=!1;h.du=!1;h.eu=!0;h.FG=!0;h.Sk=!1;h.Xy=!1;h.OG=0;h.showContentThumbnail=!0;h.tn=!1;h.Cg=null;h.Ud=15E3;h.mp=!0;h.Ps=0;h.Sm=-1;h.zq=null;window.console&&"function"===typeof window.console.log&&x(window.console.log,window.console);var qN=null;mN.prototype.getValue=function(){return this.b};
mN.prototype.g=function(){return String(this.b)};
z(nN,mN);nN.prototype.g=function(){return this.b?"1":"0"};
z(oN,mN);oN.prototype.g=function(){return this.b?Math.round(this.b.top)+"."+Math.round(this.b.left)+"."+(Math.round(this.b.top)+Math.round(this.b.height))+"."+(Math.round(this.b.left)+Math.round(this.b.width)):""};
lN.prototype.setItem=function(a){this.b[a.B]=a};
lN.prototype.getItem=function(a){return fc(this.b,a,null)};vN.prototype.reset=v;vN.prototype.update=v;vN.prototype.B=v;wN.prototype.remove=function(a){ec(this.b,a)};
wN.prototype.set=function(a,b){this.b[a]=b};
wN.prototype.get=function(a){return fc(this.b,a,null)};new ce(200);var I$={currentTime:1,duration:2,isVpaid:4,volume:8,isYouTube:16,isPlaying:32},dQ={To:"start",wo:"firstquartile",Go:"midpoint",Vo:"thirdquartile",oo:"complete",vx:"metric",PAUSE:"pause",Kx:"resume",Qo:"skip",Xo:"viewable_impression",yx:"mute",Zx:"unmute",Ak:"fullscreen",Mw:"exitfullscreen",xo:"fully_viewable_audible_half_duration_impression",Fo:"measurable_impression",hw:"abandon",so:"engagedview",ri:"impression",Fw:"creativeview",LOADED:"loaded"},Hfa="start firstquartile midpoint thirdquartile resume loaded".split(" "),
dfa=["abandon"],eQ={UNKNOWN:-1,To:0,wo:1,Go:2,Vo:3,oo:4,vx:5,PAUSE:6,Kx:7,Qo:8,Xo:9,yx:10,Zx:11,Ak:12,Mw:13,xo:14,Fo:15,hw:16,so:17,ri:18,Fw:19,LOADED:20},dP={rQ:1,BK:2,zK:4,Ak:8,IK:16,HK:32,AK:64,xL:128,mO:256};var dO=window.document,X=window;var ofa=/https?:\/\/[^\/]+/;NN.prototype.b=function(a,b,c,d,e){try{var f=e||this.B,k=new GN;k.B=!0;IN(k,1,"context",a);b instanceof ON||(b=PN(b));IN(k,2,"msg",b.message.substring(0,512));b.b&&IN(k,3,"file",b.b);0<b.g&&IN(k,4,"line",b.g.toString());b={};if(d)try{d(b)}catch(m){}d=[b];k.b.push(5);k.g[5]=d;var l=DN();l.g&&IN(k,6,"top",l.g.url||"");IN(k,7,"url",l.b.url||"");MN(this.o,f,k,!1,c)}catch(m){try{MN(this.o,f,{context:"ecmserr",rctx:a,msg:TN(m),url:l.b.url},!1,c)}catch(n){}}return this.g};var $N,RN,YN,XN=[],VN=1E-4>Math.random(),WN=!(!X.performance||!X.performance.now);$N=new function(){this.g="http:"===X.location.protocol?"http:":"https:";this.A="pagead2.googlesyndication.com";this.B="/pagead/gen_204?id=";this.b=.01;this.o=Math.random()};
RN=new NN($N,"jserror",!0);var xea=RN.b;var J$=!1,K$="";
(function(){if(window.navigator.plugins&&window.navigator.plugins.length){var a=window.navigator.plugins["Shockwave Flash"];if(a&&(J$=!0,a.description)){K$=fO(a.description);return}if(window.navigator.plugins["Shockwave Flash 2.0"]){J$=!0;K$="2.0.0.11";return}}if(window.navigator.mimeTypes&&window.navigator.mimeTypes.length&&(a=window.navigator.mimeTypes["application/x-shockwave-flash"],J$=!(!a||!a.enabledPlugin))){K$=fO(a.enabledPlugin.description);return}try{var b=new window.ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");J$=
!0;K$=fO(b.GetVariable("$version"));return}catch(c){}try{b=new window.ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");J$=!0;K$="6.0.21";return}catch(c){}try{b=new window.ActiveXObject("ShockwaveFlash.ShockwaveFlash"),J$=!0,K$=fO(b.GetVariable("$version"))}catch(c){}})();
var FQ=J$,jO=K$;var gO={},hO=null;gO.le=0;gO.nt=2;gO.Fr=3;gO.Po=5;gO.me=1;gO.om=4;var nP=0,Aea=(new Date).getTime(),nO=-1,pO=!1,qO=-1,rO=-1;if(dO&&dO.URL){var AN=dO.URL,hsa=!(AN&&0<tea().length);RN.g=hsa};vO.prototype.getStatus=function(){return this.b};
z(yO,vO);var DO={$P:-1,LOADING:0,Uw:1,Bw:2,gx:3,VISIBLE:4},Kea={LOADING:0,Uw:1,Bw:2,MP:3,cO:4,XP:5,YP:6,WP:7,fO:8,LP:9},GO={};zO.prototype.F=function(a,b){if(!this.b)return!1;this.b.style.position="absolute";AO(this,b);var c=!0;try{a.appendChild(this.b)}catch(d){c=!1}return c};
zO.prototype.D=function(a,b){if(!this.b||!a.parentNode)return!1;this.b.style.position="fixed";AO(this,b);var c=!0;try{a.parentNode&&a.parentNode.insertBefore(this.b,a.nextSibling)}catch(d){c=!1}return c};
zO.prototype.remove=function(){if(this.b)try{If(this.b)}catch(a){}this.b=null};
zO.prototype.G=function(a){this.o=a?3:4};
g.ba("gteh",aO("osd_or_lidar::gteh_ex",function(a,b){var c=GO[a];ia(c)&&c(b)}),void 0);
var Pea={gx:0,VISIBLE:1},isa=new ff(-99999,0);JO.prototype.aa=function(){var a=LO(this);if(null===a)NO(this);else if(null===this.A)this.A=a,NO(this);else{var b=a-this.A;this.A=a;0==(4<=b?1:0)?(NO(this),KO(this,0)):(AO(this.g,isa),this.F=X.setTimeout(bO("osd_or_lidar::sfm_cpto",x(this.R,this)),125))}};
JO.prototype.R=function(){var a=LO(this),b=a-this.A;this.A=a;a=4<=b?1:0;NO(this);KO(this,0==a?1:0)};
z(PO,vO);PO.prototype.H=function(){var a=Rea(this);this.C!=a&&(this.C=a,this.F(a))};ca(mO);var TO=new mg(0,0,0,0),Xea={threshold:[0,.3,.5,.75,1]};h=UO.prototype;
h.Ze=function(a,b,c,d,e,f,k){k=this.hq(c,k||{});var l=this.J,m,n;ha(b)?n=this.ih(b):(m=b,n=this.ih(a,m));f&&(l.A=Math.max(l.A,n));f=cO(dO);this.ia=0==f?-1:1==f?0:1;f=YO(n);var t=YO(this.o);ha(b)||(this.ha=new hf(m.right-m.left,m.bottom-m.top));this.sn(f,k,t,e,d,m);this.o=d?0:n;this.$=c;0<n&&(0>l.C&&(l.C=c),l.F=c);-1==this.Ce&&this.Se()&&(this.Ce=c);-2==this.Lb&&(this.Lb=a&&a!=TO&&0!=this.aa&&this.ha&&this.ha.height&&this.ha.width?this.ih(a,new mg(0,this.ha.width,this.ha.height,0)):-1);this.Hd(this)};
h.hq=function(a){if(-1==this.$)return 0;a=a-this.$||1;return 1E4<a?1:a};
h.ih=function(a,b){if(ha(a))return a;if(b){var c;c=null===a||null===b?TO.clone():new mg(Math.max(a.top,b.top),Math.min(a.right,b.right),Math.min(a.bottom,b.bottom),Math.max(a.left,b.left));return 0>=this.aa||0>=c.cb()||0>=c.getHeight()?0:(c.bottom-c.top)*(c.right-c.left)/this.aa}return 0};
h.Pk=function(a,b){var c=this.J;-1!=a&&(c.B[a]+=b)};
h.Ok=function(a,b){var c=this.J;-1!=a&&(c.b[a]+=b,c.b[a]>c.o[a]&&(c.o[a]=c.b[a]))};
h.Nk=function(a){-1!=a&&(this.J.b[a]=0)};
h.sn=function(a,b,c,d,e,f){var k=-1==c||-1==a?-1:Math.max(c,a);c=d&&-1!=c&&2>=c?k:c;-1!=c&&this.Pk(c,b);d=this.J;f=f||null;k=this.aa;f?(-1!=c&&2>=c&&-1!=d.g&&(d.D[d.g]+=b),f=100*k/((f.bottom-f.top)*(f.right-f.left)),d.g=20<=f?0:10<=f?1:5<=f?2:2.5<=f?3:4):d.g=-1;for(f=c;0<=f&&4>=f;f++)this.Ok(f,b);for(f=0;4>=f;++f)(f<a||e||-1==a)&&this.Nk(f)};
h.Cm=function(){return!1};
h.Se=function(){return!1};z(gP,UO);h=gP.prototype;
h.Ze=function(a,b,c,d,e,f,k){k=k||this.sb(this)||{};this.L=k.duration||this.L;this.Db=k.isVpaid||this.Db;this.ua=f;this.ga=k.volume;hP(this.ga)||(this.De++,hP(this.H)&&(this.ga=this.H));gP.M.Ze.call(this,a,b,c,d,e,f,k);-1==this.Wa&&this.oc&&(this.Wa=this.Xa);(a=this.Se())&&eP(this.D,1);hP(this.H)&&eP(this.D,2);this.gb&&eP(this.D,4);this.B&&eP(this.D,8);-1!=this.ia&&(eP(this.D,16),1==this.ia&&eP(this.D,32));this.gb&&a&&eP(this.D,64);this.ua&&eP(this.D,128);this.ua&&0<this.o&&eP(this.D,256)};
h.hq=function(a,b){var c=p(b.currentTime)?b.currentTime:this.Aa,d=iP(this,a),e=c-this.Aa,f=b.isYouTube,k=p(b.isPlaying)?b.isPlaying:!0;2!=this.Oa?(0<=e?(this.Na+=d,this.ma+=Math.max(d-e,0),this.La=Math.min(e,this.Na)):(this.Cc+=Math.abs(e),this.La=0),0!=e&&(this.Na=0),-1==this.na&&0<e&&(this.na=0<=rO?oO()-rO:-1)):(k||this.N||(this.ma+=d),-1==this.na&&k&&(this.na=0<=rO?oO()-rO:-1));this.Aa=c;if(f){if(1==this.Oa)return this.La;if(2==this.Oa)return k?d:0}return iP(this,a)};
h.ih=function(a,b){return this.Fd?0:this.B?1:gP.M.ih.call(this,a,b)};
h.Pk=function(a,b){gP.M.Pk.call(this,a,b);this.bc[a]+=this.La;if(2>=a){var c=this.G;c.C+=b;this.da+=this.La}};
h.Ok=function(a,b){gP.M.Ok.call(this,a,b);this.qa[a]+=this.La;this.qa[a]>this.Tb[a]&&(this.Tb[a]=this.qa[a])};
h.Nk=function(a){gP.M.Nk.call(this,a);this.qa[a]=0};
h.sn=function(a,b,c,d,e,f){if(!this.N){gP.M.sn.call(this,a,b,c,d,e,f);a=-1==c||-1==a?-1:Math.max(c,a);e=d&&-1!=c&&2>=c?a:c;this.Xa+=b;this.Ke&&(this.yb+=b,this.Ga+=b);this.Ke=this.B;this.gb=(c=hP(this.ga)&&.1<=this.ga)&&hP(this.H)&&.1<=this.H;d=this.G;a=-1!=e&&2>=e;if(this.gb){d.F+=b;for(d.o+=b;0<=e&&4>=e;e++)d.A[e]+=b;a?d.B+=b:d.b+=b;d.b>d.G&&(d.G=d.b)}else d.D=!1;if(a||!c)d.b=0;b=this.ga;this.H=p(b)?Number(b)?cP(b,3):0:b}};
h.Cm=function(){return!0};
h.Se=function(){var a=this.J;return 2E3<=Math.max(a.b[2],a.o[2])};var pP=null,tP=null,uP=null,wP=null,MP=null,oP=!1,NP=[],OP=[],JP=!1,KP=null,FP=0,EP=!1,GP=!1,rP=!1,qP=!1,HP=!1,IP=!1,CP=vM()||wM(),hfa=0;z(PP,vN);PP.prototype.reset=function(){this.b[0]=1732584193;this.b[1]=4023233417;this.b[2]=2562383102;this.b[3]=271733878;this.A=this.o=0};
PP.prototype.update=function(a,b){p(b)||(b=a.length);for(var c=b-this.g,d=this.C,e=this.o,f=0;f<b;){if(0==e)for(;f<=c;)QP(this,a,f),f+=this.g;if(w(a))for(;f<b;){if(d[e++]=a.charCodeAt(f++),e==this.g){QP(this,d);e=0;break}}else for(;f<b;)if(d[e++]=a[f++],e==this.g){QP(this,d);e=0;break}}this.o=e;this.A+=b};
PP.prototype.B=function(){var a=Array((56>this.o?this.g:2*this.g)-this.o);a[0]=128;for(var b=1;b<a.length-8;++b)a[b]=0;for(var c=8*this.A,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.b[b]>>>d&255;return a};var gQ={v:"v",e:"e",nas:"nas",msg:"msg","if":"if",sdk:"sdk",p:"p",tos:"tos",mtos:"mtos",ps:"ps",pt:"pt",vht:"vht",mut:"mut",a:"a",ns:"ns",ft:"ft",dft:"dft",at:"at",dat:"dat",as:"as",uac:"uac",vpt:"vpt",gmm:"gmm",std:"std",efpf:"efpf",swf:"swf",px:"px",fm:"sfm",nnut:"nnut",vmer:"vmer",vmmk:"vmmk",vmiec:"vmiec",nmt:"nmt",mmct:"mmct",tcm:"tcm",bt:"bt",pst:"pst",vpaid:"vpaid",dur:"dur",vmtime:"vmtime",vmtos:"vmtos",vmmtos:"vmmtos",dtos:"dtos",vmdtos:"vmdtos",dtoss:"dtoss",dom:"dom",fmf:"fmf",ven:"ven",
veh:"veh",vds:"vds",is:"is",ic:"ic",c:"c",mc:"mc",lte:"lte",tth:"tth",femt:"femt",femvt:"femvt",emc:"emc",emuc:"emuc",emb:"emb"},Cfa={c:TP("c"),at:"at",atos:XP("atos",[0,2,4]),ta:UP(),a:"a",dur:"dur",p:"p",tos:WP(),j:"dom",mtos:XP("mtos",[0,2,4]),gmm:"gmm",ss:TP("ss"),vsv:md("w1"),t:"t"},Ffa={vmtime:"vmtime",vmtos:"vmtos",vmmtos:"vmmtos",vmdtos:"vmdtos",tcm:"tcm",vmer:"vmer",vmmk:"vmmk",vmiec:"vmiec",bt:"bt",pst:"pst",nmt:"nmt",mmct:"mmct",c:TP("c"),at:"at",atos:XP("atos",[0,2,4]),avt:XP("atos",[2]),
dav:"dav",ta:UP(),a:"a",dur:"dur",p:"p",tos:WP(),j:"dom",mtos:XP("mtos",[0,2,4]),gmm:"gmm",ss:TP("ss"),vsv:md("w1"),t:"t"},Dfa={a:"a",tos:WP(),at:"at",c:TP("c"),mtos:XP("mtos",[0,2,4]),dur:"dur",fs:"fs",p:"p",vpt:"vpt",vsv:md("ias_w1"),dom:"dom",gmm:"gmm",t:"t"},Efa={tos:WP(),at:"at",c:TP("c"),mtos:XP("mtos",[0,2,4]),p:"p",vpt:"vpt",vsv:md("dv_w1"),gmm:"gmm",dom:"dom",t:"t"};var xQ=null,$P="",wQ=!1;h=YP.prototype;h.Ll=function(){};
h.qq=r;h.Zs=r;h.Bp=r;h.ep=r;h.Xl=function(a){if(a){if(!a.Fe){var b=lP(a,"start"),b=fQ(b,gQ),c=xQ||X,d=[];d.push("v=478v");d.push("r=fp");d.push("efm="+(this.g?1:0));d.push("esfm="+(this.o?1:0));d.push(b);d.push(qfa(c));LN(X,("//pagead2.googlesyndication.com/pagead/gen_204?id=lidarvf&"+d.join("&")).substring(0,2E3),void 0);a.Fe=!0}a.Ja=!0;this.an(a)}};
h.oA=function(a){a.Ae++;jP(a,0);.1<=a.H&&(a.G.D=!0);return lP(a,"start")};
h.eA=function(a){jP(a,1);AP([a],!mP());return lP(a,"firstquartile")};
h.jA=function(a){jP(a,2);a.oc=!0;AP([a],!mP());return lP(a,"midpoint")};
h.pA=function(a){jP(a,3);AP([a],!mP());return lP(a,"thirdquartile")};
h.aA=function(a){jP(a,4);AP([a],!mP());var b=lP(a,"complete");a.B=!1;bQ(a.C);return b};
h.lA=function(a){return aQ(a,"pause")};
h.$z=function(a){return aQ(a,"abandon")};
h.mA=function(a){var b=mP();a.N&&!b&&(a.G.g=oO());AP([a],!b);a.N=!1;return lP(a,"resume")};
h.rA=function(a){var b=lP(a,"viewable_impression");a.Je=!0;return b};
h.nA=function(a){var b=!mP();AP([a],b);b=lP(a,"skip");a.B=!1;bQ(a.C);return b};
h.kA=function(a){AP([a],!mP());return lP(a,"mute")};
h.qA=function(a){AP([a],!mP());return lP(a,"unmute")};
h.fA=function(a){a.B=!0;AP([a],!mP());return lP(a,"fullscreen")};
h.dA=function(a){a.B=!1;AP([a],!mP());return lP(a,"exitfullscreen")};
h.gA=function(a){return lP(a,"fully_viewable_audible_half_duration_impression")};
h.iA=function(a){return lP(a,"measurable_impression")};
h.cA=function(a){return lP(a,"engagedview")};
h.hA=function(a){return lP(a,"impression")};
h.bA=function(a){return lP(a,"creativeview")};
h.Dz=function(a){a.Se()&&!a.Dc&&this.Zs(a);this.Bp(a)};
h.an=r;var lQ=(new Date).getTime(),nQ=!1,oQ=!1,pQ=!1,wfa=[function(a){return!(!a.chrome||!a.chrome.webstore)},
function(a){return!!a.document.documentMode},
function(a){return!!a.document.fonts.ready},
function(){return mQ(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 mQ(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 mQ(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 mQ(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 mQ(4)},
function(a){return"srcset"in a.document.createElement("img")},
function(){return oQ},
function(){return pQ},
function(){return mQ(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 mQ(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]||kQ(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 kQ(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 mQ(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 kQ(a.CSS.supports)},
function(){return kQ(window.Intl.Collator)},
function(a){return kQ(a.document.createElement("dialog").show)},
function(){return mQ(8)},
function(a){return kQ(a.document.createElement("div").animate([{transform:"scale(1)",$y:"ease-in"},{transform:"scale(1.3)",$y:"ease-in"}],{duration:1300,UQ:1}).reverse)},
function(a){return kQ(a.document.createElement("div").animate)},
function(a){return kQ(a.document.documentElement.webkitRequestFullScreen)},
function(a){return kQ(a.navigator.getBattery)},
function(a){return kQ(a.navigator.permissions.query)},
function(){return!1},
function(){return mQ(9)},
function(){return kQ(window.webkitRequestAnimationFrame)},
function(a){return kQ(a.BroadcastChannel.call)},
function(a){return kQ(a.FontFace)},
function(a){return kQ(a.Gamepad)},
function(){return mQ(10)},
function(a){return kQ(a.MutationEvent)},
function(a){return kQ(a.MutationObserver)},
function(a){return kQ(a.crypto.getRandomValues)},
function(a){return kQ(a.document.body.createShadowRoot)},
function(a){return kQ(a.document.body.webkitCreateShadowRoot)},
function(a){return kQ(a.fetch)},
function(){return mQ(11)},
function(a){return kQ(a.navigator.serviceWorker.register)},
function(a){return kQ(a.navigator.webkitGetGamepads)},
function(a){return kQ(a.speechSynthesis.speak)},
function(a){return kQ(a.webkitRTCPeerConnection)},
function(a){return a.CSS.supports("--fake-var","0")},
function(){return mQ(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 mQ(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 mQ(14)},
function(a){return"undefined"==typeof a.navigator.YQ},
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")}],xfa=[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}],yfa=[function(a){return a.navigator.userAgent},
function(a){return a.navigator.platform},
function(a){return a.navigator.vendor}];z(qQ,YP);ca(qQ);h=qQ.prototype;h.Ll=function(a,b){mO.getInstance();var c;b.opt_adElement?c=sfa(this,a,b.opt_adElement):(c=Bfa(this,a,b.opt_sdkID||""))||(c=jfa(a)||void 0);c&&c.sb==r&&(c.sb=x(this.ep,this));return c};
h.ep=function(a){mO.getInstance();a.b=0;a.Sa=0;var b;if("as"==a.K){var c="getVideoMetadata"+a.Ig;if(ia(a.element[c]))try{b=a.element[c]()}catch(e){a.b|=4}else a.b|=2}else if("h"==a.K)if(c=q("ima.common.getVideoMetadata"),ia(c))try{b=c(a.C)}catch(e){a.b|=4}else a.b|=2;else a.b|=1;a.b||(p(b)?null===b?a.b|=16:cc(b)?a.b|=32:null!=b.errorCode&&(a.Sa=b.errorCode,a.b|=64):a.b|=8);null!=b||(b={});c=b;a.Ca=0;for(var d in I$)null==c[d]&&(a.Ca|=I$[d]);null!=c.currentTime||a.be++;jQ(c,"currentTime");jQ(c,"duration");
return b};
h.Zs=function(a){sQ(a,"viewable_impression")&&(a.Dc=!0)};
h.Bp=function(a){var b=a.G.A[0];(15E3<=b||a.oc&&(-1!=a.L?b>=a.L/2:-1!=a.Wa&&b>=a.Wa))&&!a.Ed&&sQ(a,"fully_viewable_audible_half_duration_impression")&&(a.Ed=!0)};
h.qq=function(a){a.Ie||a.Ja||!sQ(a,"measurable_impression")||(a.Ie=!0)};
h.an=function(){};
g.ba("Goog_AdSense_Lidar_sendVastEvent",aO("lidar::handlevastevent_ex",yQ,void 0,function(){return{v:"478","if":mO.getInstance().g?"1":"0",nas:String(NP.length)}}),void 0);
g.ba("Goog_AdSense_Lidar_getViewability",SN("lidar::getviewability_ex",function(a,b){var c;c=qQ.getInstance();var d={};kc(d,{opt_adElement:void 0,opt_fullscreen:void 0},b||{});d.opt_bounds?c=uQ(iQ("ol")):(wQ?c=iQ("ue"):(c=c.Ll(a,d))?(d=iQ(),kc(d,kP(c,!0,!1)),c=d):c=iQ("nf"),c=uQ(c));return c},void 0,void 0),void 0);
g.ba("Goog_AdSense_Lidar_getInitSignals",SN("lidar::getinitsignals_ex",vQ,void 0,void 0),void 0);g.ba("Goog_AdSense_Lidar_getUrlSignalsArray",aO("lidar::geturlsignalsarray_ex",function(){return SP()}),void 0);
g.ba("Goog_AdSense_Lidar_getUrlSignalsList",aO("lidar::geturlsignalslist_ex",function(){return gg(SP())}),void 0);var Jfa={IMAGE:"Image",Sw:"Flash",ALL:"All"},Ifa={DM:"Html",IFRAME:"IFrame",uP:"Static",ALL:"All"},Kfa={HM:"IgnoreSize",cP:"SelectExactMatch",dP:"SelectNearMatch"},Lfa={JL:"DisallowResize",SO:"ResizeSmaller"};z(KQ,id);var LQ=null;KQ.prototype.destroy=function(){this.C.sa(this.b,"activityMonitor",this.F);this.A=null;this.o=!1;this.g.clear()};
KQ.prototype.T=function(){this.destroy();KQ.M.T.call(this)};
KQ.prototype.init=function(a){if(!this.o){if(this.b=a||null)this.C.O(this.b,"activityMonitor",this.F),RQ(this);if(U.C&&!(aa.ima&&aa.ima.video&&aa.ima.video.client&&aa.ima.video.client.tagged)){g.ba("ima.video.client.sdkTag",!0,void 0);var b=aa.document;a=b.createElement("script");var c=b.location.protocol;"http:"!=c&&"https:"!=c&&(c="");a.src=c+"//s0.2mdn.net/instream/video/client.js";a.async=!0;a.type="text/javascript";b=b.getElementsByTagName("script")[0];b.parentNode.insertBefore(a,b)}this.o=!0}};
KQ.prototype.F=function(a){var b=a.Wd,c=b.queryId,d={};d.eventId=b.eventId;switch(a.Ic){case "getPageSignals":RQ(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=PQ(this,e,c,a,f);this.b.send("activityMonitor","viewability",d);break;case "fetchAdTagUrl":d={},d.eventId=b.eventId,a=b.osdId,c=null,$b(b,"isFullscreen")&&(c=b.isFullscreen),$b(b,"loggingId")&&(b=b.loggingId,d.loggingId=b,
UM(RM.getInstance(),43,{step:"beforeLookup",logid:b,time:C()},!0)),d.engagementString=Rfa(this,a,c),this.b.send("activityMonitor","engagement",d)}};
g.ba("ima.common.getVideoMetadata",function(a){a=MQ().g.get(a);return ia(a)?a():{}},void 0);
g.ba("ima.common.triggerViewEvent",function(a,b){var c={};c.queryId=a;c.viewabilityString=b;var d=MQ().b;d?d.send("activityMonitor","viewableImpression",c):MQ().dispatchEvent(new OL("viewable_impression",null,c))},void 0);
g.ba("ima.common.triggerViewabilityMeasurementUpdate",function(a,b){var c=MQ().b,d={};d.queryId=a;d.viewabilityData=b;c&&c.send("activityMonitor","viewabilityMeasurement",d)},void 0);
g.ba("ima.common.triggerMeasurableEvent",function(a,b){var c={};c.queryId=a;c.viewabilityString=b;var d=MQ().b;d?d.send("activityMonitor","measurableImpression",c):MQ().dispatchEvent(new OL("measurable_impression",null,c))},void 0);
g.ba("ima.common.triggerExternalActivityEvent",function(a,b,c){var d={};d.queryId=a;d.viewabilityString=b;d.eventName=c;(a=MQ().b)?a.send("activityMonitor","externalActivityEvent",d):MQ().dispatchEvent(new OL("externalActivityEvent",null,d))},void 0);
g.ba("ima.common.updateEngagementDetectionValue",function(a){if(U.C){var b=MQ().b;if(b){var c={};c.engagementString=a;b.send("activityMonitor","engagementData",c)}}},void 0);
MQ();z(TQ,id);h=TQ.prototype;h.wb=function(a){null==a||this.D||(this.b=a,Wfa(this),this.D=!0)};
h.Kb=function(){null!=this.b&&this.D&&(UQ(this),this.C=this.G=this.D=!1,this.g=0,this.A=[],this.F=!1)};
h.ZE=function(a){this.G=!0;this.g=a.touches.length;this.o&&(window.clearTimeout(this.o),this.o=0,this.K=!0);(this.F=VQ(this,a.touches)||1!=a.touches.length)?this.N=this.L=window.Infinity:(this.L=a.touches[0].clientX,this.N=a.touches[0].clientY);Xfa(this,a.touches)};
h.YE=function(a){this.g=a.touches.length;if(!AM()||!BM(cR,8)||Math.pow(a.changedTouches[0].clientX-this.L,2)+Math.pow(a.changedTouches[0].clientY-this.N,2)>Math.pow(5,2))this.C=!0};
h.XE=function(a){this.J?this.sl():(!this.G||1!=this.g||this.C||this.K||this.F||!VQ(this,a.changedTouches)||(this.o=window.setTimeout(x(this.sl,this),300)),this.g=a.touches.length,0==this.g&&(this.C=this.G=!1,this.A=[]),this.K=!1)};
h.Iq=function(){this.sl()};
h.sl=function(){this.o=0;this.dispatchEvent(new mc("click"))};
h.T=function(){this.Kb();this.B.dispose();this.B=null;TQ.M.T.call(this)};z(ZQ,id);var sS={QK:"beginFullscreen",yk:"click",eM:"end",fM:"endFullscreen",ERROR:"error",LOADED:"loaded",sN:"mediaLoadTimeout",PAUSE:"pause",PLAY:"play",mP:"skip",Qx:"skipShown",gP:"shareClicked",To:"start",IP:"timeUpdate",aL:"cardsStateChange",GP:"timedMetadata",uQ:"volumeChange"};h=ZQ.prototype;h.Xi=v;h.Ym=v;h.Gh=v;h.load=v;h.getVideoUrl=v;h.setVolume=v;h.Sd=v;h.play=v;h.pause=v;h.Re=v;h.Ff=v;h.kj=v;h.Ef=v;h.cg=v;h.Gf=v;h.getCurrentTime=v;h.im=v;h.pd=v;h.ne=v;h.qd=v;h.jm=v;h.Oq=function(){return!1};
h.Za=function(){return!0};
h.getError=v;h.bn=r;h.Qq=r;h.wb=v;h.Kb=v;h.hm=r;h.hg=function(){return null};
h.Rq=r;h.Pq=r;z($Q,ZQ);h=$Q.prototype;h.Ym=function(a,b,c,d){if(d&&(d=cb(a,function(a){return null!==WQ(a.g)}),null!==d))return d;
a=le(a,function(a){var b=a.b;A(B(a.g))||"progressive"!=a.A&&"application/x-mpegurl"!=B(b).toLowerCase()?a=!1:(b=B(b).toLowerCase(),a=A(b)||DM(2.3)&&-1!=b.indexOf("application/ogg")?!1:aB&&(-1!=b.indexOf("video/mp4")||-1!=b.indexOf("video/3gpp"))||AM()&&(-1!=b.indexOf("application/x-mpegurl")||-1!=b.indexOf("application/vnd.apple.mpegurl"))?!0:!A(this.b.canPlayType(b)));return a},this);
return SQ(a,b,c)};
h.Xi=function(){return le(Xb(l_),function(a){return!A(this.b.canPlayType(a))},this)};
h.Gh=function(a){this.aa=0<a.b?a.b:15E3};
h.load=function(a){bR(this);this.b.src=a;this.b.load()};
h.getVideoUrl=function(){return this.b.src};
h.setVolume=function(a){this.b.volume=a};
h.Sd=function(){return this.b.volume};
h.play=function(){this.L=!1;ee(this.b.play,0,this.b);this.G||(this.G=ee(this.Ky,this.aa,this))};
h.pause=function(){this.L=!0;this.b.pause()};
h.Re=function(){return this.b.paused?AM()||bm?this.b.currentTime<this.b.duration:!0:!1};
h.Ff=function(){return this.b.muted};
h.kj=function(){zM()&&this.b.webkitDisplayingFullscreen&&this.b.webkitExitFullscreen()};
h.Ef=function(){return OQ(this.b)};
h.cg=function(a){var b;a:{for(b=this.R.Pa();b.length;){var c=b.pop();if(0<c){b=c;break a}}b=-1}return b>=a};
h.Gf=function(a){this.b.currentTime=a};
h.getCurrentTime=function(){return this.b.currentTime};
h.im=function(){return eR(this)};
h.pd=function(){return(0,window.isNaN)(this.b.duration)?-1:this.b.duration};
h.ne=function(){return this.b.ended};
h.qd=function(){return new hf(this.b.offsetWidth,this.b.offsetHeight)};
h.jm=function(){return this.b.seeking};
h.T=function(){this.Kb();this.b=null;$Q.M.T.call(this)};
h.getError=function(){return this.b.error};
h.wb=function(){this.Kb();this.g=new Cm(this);this.g.O(this.b,tS,this.YD);this.g.O(this.b,"canplay",this.lC);this.g.O(this.b,"ended",this.ZA);this.g.O(this.b,"webkitbeginfullscreen",this.km);this.g.O(this.b,"webkitendfullscreen",this.Tq);this.g.O(this.b,"pause",this.aB);this.g.O(this.b,"playing",this.hE);this.g.O(this.b,"timeupdate",this.bB);this.g.O(this.b,"volumechange",this.cB);this.g.O(this.b,"error",this.Sq);this.g.O(this.b,JA||AM()&&(!AM()||!BM(cR,8))?"loadeddata":"canplay",this.sD);this.C=
new TQ;this.g.O(this.C,"click",this.YA);this.C.wb(this.b);this.D=new ce(1E3);this.g.O(this.D,"tick",this.$A);this.D.start()};
h.Kb=function(){null!=this.C&&(this.C.Kb(),this.C=null);null!=this.D&&this.D.dispose();null!=this.g&&(this.g.dispose(),this.g=null);bR(this)};
h.YD=function(a){this.dispatchEvent(a.type)};
h.lC=function(){var a;if(a=Iz)a=sc,a=!(a&&(Ka(a,"SMART-TV")||Ka(a,"SmartTV")));a&&!this.N&&(this.Gf(.001),this.N=!0)};
h.sD=function(){this.J||(this.J=!0,this.dispatchEvent("loaded"))};
h.hE=function(){this.dispatchEvent("play");AM()||JA||dR(this)};
h.bB=function(){if(!this.A&&(AM()||JA)){if(0>=this.getCurrentTime())return;if(JA&&this.ne()&&1==this.pd()){this.Sq();return}dR(this)}if(AM()||HM()){if(1.5<this.getCurrentTime()-this.o){this.F=!0;this.Gf(this.o);return}this.F=!1;this.getCurrentTime()>this.o&&(this.o=this.getCurrentTime())}var a=this.R;a.b[a.g]=this.b.currentTime;a.g=(a.g+1)%a.o;this.dispatchEvent("timeUpdate")};
h.cB=function(){this.dispatchEvent("volumeChange")};
h.aB=function(){var a;this.A&&AM()&&!this.L&&2>eR(this)-this.b.currentTime?(this.B=new ce(250),this.g.O(this.B,"tick",this.hC),this.B.start(),a=!0):a=!1;a||this.dispatchEvent("pause")};
h.ZA=function(){var a=aM(ZL(),136961002),b=!0;if(AM()||HM()||a&&aB)b=this.o>=this.b.duration-1.5;!this.F&&b&&this.dispatchEvent("end")};
h.km=function(){this.dispatchEvent("beginFullscreen")};
h.Tq=function(){this.dispatchEvent("endFullscreen")};
h.Sq=function(){aR(this);this.dispatchEvent("error")};
h.YA=function(){this.dispatchEvent("click")};
h.$A=function(){var a=this.qd(),b=this.Ef();if(a.width!=this.K.width||a.height!=this.K.height)!this.H&&b?this.km():this.H&&!b&&this.Tq(),this.K=a,this.H=b};
h.Ky=function(){if(!this.A){try{UM(RM.getInstance(),16)}catch(a){}bR(this);this.dispatchEvent("mediaLoadTimeout")}};
h.hC=function(){if(this.ne()||!this.Re())Nb(this.B);else{var a=this.b.duration-this.b.currentTime,b=eR(this)-this.b.currentTime;0<b&&(2<=b||2>a)&&(Nb(this.B),this.play())}};z(gR,id);fR.prototype.start=function(a){return this.b[a].startTime};
fR.prototype.end=function(a){return this.b[a].endTime};
h=gR.prototype;h.readyState=0;h.seeking=!1;h.currentTime=0;h.duration=window.NaN;h.paused=!0;h.ended=!1;h.autoplay=!1;h.controls=!1;h.volume=1;h.muted=!1;h.src="";h.currentSrc="";h.gB=1;h.playbackRate=0;h.ve=null;h.nj=0;h.HF=4;h.fh=null;h.Pj=null;
h.play=function(){this.ended&&(this.currentTime=0,this.dispatchEvent("timeupdate"));this.paused&&(this.paused=!1,this.dispatchEvent("play"),this.readyState=this.HF,2>=this.readyState?this.dispatchEvent("waiting"):this.dispatchEvent("playing"));if(null===this.ve||this.ve.isDisposed())this.ve=new ce(10),this.ve.O("tick",x(this.Xt,this));this.nj=C();this.ve.start();this.seeking=this.autoplay=!1};
h.pause=function(){this.autoplay=!1;this.paused||(this.ve.stop(),this.paused=!0,this.dispatchEvent("timeupdate"),this.dispatchEvent("pause"))};
h.load=function(){this.readyState=0;this.paused=!0;this.seeking=!1;this.dispatchEvent("loadstart");this.setProperty("duration",(0,window.isNaN)(this.duration)?10+20*Math.random():this.duration);var a=this.buffered;a.b.push(new aga(this.duration));a.length=a.b.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.gB};
h.setProperty=function(a,b){switch(a){case "currentTime":var c=Number(b);this.seeking=!0;this.dispatchEvent("seeking");this.seeking=!1;this.currentTime=c;this.dispatchEvent("seeked");this.Xt();break;case "duration":this.duration=Number(b);this.dispatchEvent("durationchange");break;case "volume":this.volume=Number(b),this.dispatchEvent("volumechange")}};
h.Xt=function(){var a=C()-this.nj,b=this.currentTime+a/1E3;this.nj+=a;2<this.readyState&&(this.currentTime=Math.min(b,this.duration));this.dispatchEvent("timeupdate");this.currentTime==this.duration&&(this.ended=this.paused=!0,this.ve.stop(),this.dispatchEvent("ended"))};
h.T=function(){this.ve&&this.ve.dispose();this.b.dispose()};
h.mF=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.Pj&&(this.Pj.innerText=b);c&&this.fh&&(this.fh.style.backgroundColor=c)};wf&&zc(8);var lR={},JR={},KR={},mR={};hR.prototype.ge=null;hR.prototype.dc=function(){return this.content};
hR.prototype.toString=function(){return this.content};
z(iR,hR);z(jR,hR);var cga={};z(pR,hR);pR.prototype.Ld=lR;z(rR,hR);rR.prototype.Ld={};rR.prototype.ge=1;z(sR,hR);sR.prototype.Ld=JR;sR.prototype.ge=1;z(tR,hR);tR.prototype.Ld=KR;tR.prototype.ge=1;z(uR,hR);uR.prototype.Ld={};uR.prototype.ge=1;z(vR,jR);vR.prototype.Ld={};vR.prototype.ge=1;z(wR,iR);wR.prototype.Ld=mR;var qR=function(a){function b(a){this.content=a}
b.prototype=a.prototype;return function(a,d){var e=new b(String(a));void 0!==d&&(e.ge=d);return e}}(pR);
xR(rR);xR(sR);xR(tR);var lga=xR(uR);xR(vR);var yR={},zR={},YR=function(a){function b(a){this.content=a}
b.prototype=a.prototype;return function(a,d){var e=String(a);if(!e)return"";e=new b(e);void 0!==d&&(e.ge=d);return e}}(pR),HR=/['()]/g,QR={},mga={"\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;"},nga={"\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"},fga=/[\x00\x22\x27\x3c\x3e]/g,hga=/[\x00\x09-\x0d \x22\x26\x27\x2d\/\x3c-\x3e`\x85\xa0\u2028\u2029]/g,gga=/[\x00\x09-\x0d \x22\x27\x2d\/\x3c-\x3e`\x85\xa0\u2028\u2029]/g,MR=/[\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,
jga=/^(?![^#?]*\/(?:\.|%2E){2}(?:[\/?#]|$))(?:(?:https?|mailto):|[^&:\/?#]*(?:[\/?#]|$))/i,kga=/^[^&:\/?#]*(?:[\/?#]|$)|^https?:|^data:image\/[a-z0-9+]+;base64,[a-z0-9+\/]+=*$|^blob:/i,CR=/<(?:!|\/?([a-zA-Z][a-zA-Z0-9:\-]*))(?:[^>'"]|"[^"]*"|'[^']*')*>/g,DR=/</g;AR("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">'+Y(a.zg)+'</div><div class="videoAdUiShare"></div></div><div class="videoAdUiBottomBar"><div class="videoAdUiLearnMoreText">'+Y(a.zg)+'<div class="videoAdUiLearnMoreIcon"></div></div><div class="videoAdUiAttributionContainer"><div class="videoAdUiAttribution"'+
Y(RR(a.Id))+">"+Y(a.Id)+'</div><div class="videoAdUiAttributionIconContainer"><div class="videoAdUiAttributionIcon" id="videoAdUiAttributionIcon"></div><div class="videoAdUiAdInfoPopup"><div class="videoAdUiAdInfoPopupCallout"></div><div class="videoAdUiAdInfoPopupText" '+Y(RR(a.de))+">"+Y(a.de)+'</div></div></div></div></div><div class="videoAdUiProgressBar" dir="ltr"><div class="videoAdUiBuffer"></div><div class="videoAdUiProgress"></div></div></div>'});
AR("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">'+Y(a.infoText)+'</div></div></div><div class="videoAdUiTopButton videoAdUiTopButtonShare"><div class="videoAdUiTopButtonCallout"><div class="videoAdUiTopButtonTooltip videoAdUiTopButtonShareTooltip">'+
Y(a.WQ)+'</div></div></div><div class="videoAdUiTopButton videoAdUiTopButtonWatchLater"><div class="videoAdUiTopButtonCallout"><div class="videoAdUiTopButtonTooltip">'+Y(a.XQ)+'</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="videoAdUiAttributionBadge yt-badge yt-badge-ad"></div><div class="videoAdUiAttribution"'+
Y(RR(a.Id))+">"+Y(a.Id)+'</div><div class="videoAdUiAttributionIconContainer"><div class="videoAdUiAttributionIcon" id="videoAdUiAttributionIcon"></div><div class="videoAdUiAdInfoPopup"><div class="videoAdUiAdInfoPopupCallout"></div><div class="videoAdUiAdInfoPopupText" '+Y(RR(a.de))+">"+Y(a.de)+'</div></div></div></div><div class="videoAdUiVisitAdvertiserLink"><div class="videoAdUiVisitAdvertiserLinkText"></div><div class="videoAdUiVisitAdvertiserIcon"></div></div></div></div><div class="videoAdUiProgressBar" dir="ltr"><div class="videoAdUiBuffer"></div><div class="videoAdUiProgress"></div></div></div>'});
AR("b","",function(a){a=a||{};return"\u0420\u0435\u043a\u043b\u0430\u043c\u0443 \u043c\u043e\u0436\u043d\u043e \u0431\u0443\u0434\u0435\u0442 \u043f\u0440\u043e\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u0447\u0435\u0440\u0435\u0437 "+(Y(a.Sg)+"\u00a0\u0441.")});
AR("b","redesign2014q4",function(a){a=a||{};return"\u0420\u0435\u043a\u043b\u0430\u043c\u0443 \u043c\u043e\u0436\u043d\u043e \u0431\u0443\u0434\u0435\u0442 \u043f\u0440\u043e\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u0447\u0435\u0440\u0435\u0437 "+Y(a.Sg)});z(ZR,G);ZR.prototype.initialize=function(){xM()&&this.g.load()};
ZR.prototype.T=function(){If(this.b);ZR.M.T.call(this)};
ZR.prototype.show=function(){var a=this.b;null!=a&&(a.style.display="block")};z(bS,ZQ);var jsa=["video/mp4","video/webm"],ksa={el:"adunit",controls:0,html5:1,playsinline:1,ps:"gvn",showinfo:0},aS=[],$R=!1;h=bS.prototype;h.Ym=function(a,b,c){var d=cb(a,function(a){return null!==WQ(a.g)});
if(null!==d)return d;a=le(a,function(a){a=B(a.b);return this.g?this.b.canPlayType(a):gb(jsa,a)},this);
ib(c)||(d=SQ(a,b,c));return null!=d?d:SQ(a,b,[])};
h.Gh=function(a){this.o=a};
h.load=function(a,b){null!==a&&(this.aa=a,this.g?cS(this,a,b):(this.J=a,this.ba=b))};
h.getVideoUrl=function(){return this.aa};
h.setVolume=function(a){this.ea?this.dispatchEvent("volumeChange"):this.g?(a=af(100*a,0,100),this.b.setVolume(a),this.D=-1,this.dispatchEvent("volumeChange")):this.D=a};
h.Sd=function(){return this.g?this.b.getVolume()/100:this.D};
h.play=function(){if(!A(B(this.aa))){if(!this.A){eS(this);var a=15E3;null!=this.o&&0<this.o.b&&(a=this.o.b);this.qa=ee(this.aE,a,this)}this.g?(this.$=!1,!this.A&&this.o&&this.o.g?this.b.loadVideoByPlayerVars(this.ha):this.b.playVideo()):this.$=!0}};
h.pause=function(){this.g&&this.A&&this.b.pauseVideo()};
h.Re=function(){return this.g?2==this.b.getPlayerState(this.B):!1};
h.Ff=function(){return this.g?this.b.isMuted():0==this.Sd()};
h.kj=function(){};
h.Ef=function(){var a=U.g?U.B:window.document.getElementById(this.L);return a?OQ(a):!1};
h.cg=function(a){return this.g?this.b.getCurrentTime(this.B)>=a:!1};
h.Gf=function(a){this.g?this.b.seekTo(a,!1):this.H=a};
h.getCurrentTime=function(a){return this.g?this.b.getCurrentTime(a||this.B):-1};
h.im=function(){return this.g&&this.A?this.b.getVideoLoadedFraction(this.B)*this.b.getDuration(this.B):0};
h.pd=function(){return this.g&&this.A?this.b.getDuration(this.B):-1};
h.getError=function(){return null};
h.Xi=function(){return Xb(l_)};
h.ne=function(){return this.g?0==this.b.getPlayerState(this.B):!1};
h.qd=function(){var a=U.g?U.B:window.document.getElementById(this.L);return a?new hf(a.offsetWidth,a.offsetHeight):new hf(0,0)};
h.jm=function(){return!1};
h.Oq=function(){return 1==this.ma};
h.Za=function(){return this.g?1==this.b.getPlayerState(this.B):!1};
h.eB=function(){var a=this.qd(),b=this.Ef();if(a.width!=this.ga.width||a.height!=this.ga.height)!this.da&&b?this.dispatchEvent("beginFullscreen"):this.da&&!b&&this.dispatchEvent("endFullscreen"),this.ga=a,this.da=b};
h.wb=function(){this.ca=x(this.hs,this);this.K=x(this.lm,this);this.ia=x(this.ks,this);this.na=x(this.IE,this);this.ea&&(this.b.addEventListener("onAdStateChange",this.K),this.b.addEventListener("onReady",this.ca),this.b.addEventListener("onStateChange",this.K),this.b.addEventListener("onVolumeChange",this.ia),this.b.addEventListener("onSharePanelOpened",this.na));this.R=new ce(1E3);this.N.O(this.R,"tick",this.eB);this.R.start()};
h.Kb=function(){this.ea&&(this.b.removeEventListener("onAdStateChange",this.K),this.b.removeEventListener("onReady",this.ca),this.b.removeEventListener("onStateChange",this.K),this.b.removeEventListener("onVolumeChange",this.ia),this.b.removeEventListener("onSharePanelOpened",this.na));null!=this.R&&this.R.dispose()};
h.Ty=function(){var a=this.L,b={playerVars:hc(ksa),events:{cardstatechange:x(this.dB,this),onError:x(this.fB,this),onReady:x(this.hs,this),onAdStateChange:x(this.lm,this),onStateChange:x(this.lm,this),onVolumeChange:x(this.ks,this)}},c=q("YT");this.b=null!=c&&null!=c.Player?new c.Player(a,b):null};
h.fB=function(){this.dispatchEvent("error")};
h.hs=function(){this.g=!0;this.G&&this.hm(this.G.videoId,this.G.sf,this.G.Og);-1!=this.D&&(this.setVolume(this.D),this.D=-1);null!=this.J&&(cS(this,this.J,this.ba),this.ba=this.J=null);-1!=this.H&&(this.Gf(this.H),this.H=-1);this.$&&this.play()};
h.dB=function(a){this.ma=a.data;this.dispatchEvent("cardsStateChange")};
h.lm=function(a){switch(a.data){case -1:!this.A&&ZL().b.Z("treat_pre_playback_unstarted_as_error")&&this.dispatchEvent("error");break;case 0:this.A?this.dispatchEvent("end"):this.dispatchEvent("error");break;case 1:this.A||(eS(this),this.A=!0,this.F=0,this.dispatchEvent("start"));this.dispatchEvent("play");dS(this);this.C=new ce(100);this.N.O(this.C,"tick",this.Rr);this.C.start();break;case 2:this.dispatchEvent("pause"),dS(this)}};
h.ks=function(){this.dispatchEvent("volumeChange")};
h.IE=function(){this.dispatchEvent("shareClicked")};
h.Rr=function(){if(IA||HM()){if(1.5<this.getCurrentTime()-this.F){this.g&&this.b.seekTo(this.F,!0);return}this.getCurrentTime()>this.F&&(this.F=this.getCurrentTime())}this.dispatchEvent("timeUpdate")};
h.aE=function(){this.dispatchEvent("mediaLoadTimeout")};
h.hm=function(a,b,c){if(b||c)this.g?this.b.addInfoCardXml(a,b,c):this.G={videoId:a,sf:b,Og:c}};
h.hg=function(){if(!this.g)return null;var a=this.b.getVideoData();return a?a.cpn:null};
h.bn=function(a){this.g&&WQ(this.getVideoUrl())&&this.b.sendVideoStatsEngageEvent(a)};
h.Qq=function(a){this.g&&this.b.setCardsVisible(a,!1,"YOUTUBE_DRAWER_AUTO_OPEN")};
h.Rq=function(){this.g&&this.b.showControls()};
h.Pq=function(){this.g&&this.b.hideControls()};
h.T=function(){dS(this);eS(this);this.Kb();this.g=!1;this.N.dispose();this.H=-1;this.ba=null;this.$=!1;this.J=null;this.D=-1;this.ca=this.b=this.o=null;this.A=!1;this.aa="";bS.M.T.call(this)};
g.ba("onYouTubeIframeAPIReady",function(){$R=!0;F(aS,function(a){a()});
kb(aS)},window);z(fS,id);fS.prototype.b=!1;fS.prototype.connect=function(){for(this.b=!0;!ib(this.g);){var a=this.g.shift();this.sendMessage(a.name,a.type,a.data)}};
fS.prototype.send=function(a,b,c){this.b?this.sendMessage(a,b,c):this.g.push({name:a,type:b,data:c})};
fS.prototype.sendMessage=v;z(gS,mc);gS.prototype.getOrigin=function(){return this.o};
gS.prototype.toString=function(){return""};z(hS,fS);hS.prototype.sendMessage=function(a,b,c){null!=this.ud&&null!=this.ud.postMessage&&this.ud.postMessage(yga(this,a,b,c),"*");null!=this.ud&&null==this.ud.postMessage&&UM(RM.getInstance(),11)};
hS.prototype.T=function(){this.A.dispose();hS.M.T.call(this)};
hS.prototype.receive=function(a){a=a.b;var b=iS(a.data);if(jS(this,b)){if(null==this.ud)this.ud=a.source,this.b||this.connect();else if(this.ud!=a.source)return;jS(this,b)&&this.dispatchEvent(new gS(b.name,b.type,b.data||{},b.sid,a.origin))}};z(kS,id);kS.prototype.send=function(a){var b=a.b;this.b.hasOwnProperty(b)&&this.b[b].send(a.type,a.Ic,a.Wd)};
kS.prototype.T=function(){this.g.dispose();for(var a in this.b)Nb(this.b[a]);kS.M.T.call(this)};
kS.prototype.B=function(a){a=a.b;var b=iS(a.data);if(null!=b){var c=b.channel;if(this.o&&!this.b.hasOwnProperty(c)){var d=b.sid;mS(this,c,d,a.source);this.dispatchEvent(new lS(b.name,b.type,b.data||{},d,a.origin,c))}}};
z(lS,gS);z(oS,Cm);
oS.prototype.C=function(a){var b=a.getOrigin(),c=Jg("//imasdk.googleapis.com"),b=Jg(b);if(c[3]==b[3]&&c[4]==b[4])if(null!=this.b)mS(this.b,a.b,a.Cq,yf().parent),null!=this.b&&this.b.send(a);else if(c=a.Wd,null!=c&&p(c.scope)){var b=c.scope,c=c.args,d;if("proxy"==b)c=a.Ic,"isGptPresent"==c?d=nS():"isConsolePresent"==c&&(d=null!=pS());else if(nS())if("pubads"==b||"companionAds"==b){d=a.Ic;var e,f=yf().googletag;if(null!=f&&null!=f[b]&&(f=f[b](),null!=f&&(d=f[d],null!=d)))try{e=d.apply(f,c)}catch(k){}d=e}else if("console"==
b){if(f=a.Ic,e=pS(),null!=e&&(f=e[f],null!=f))try{f.apply(e,c)}catch(k){}}else if(null===b){e=a.Ic;d=yf();if(gb(["googleGetCompanionAdSlots","googleSetCompanionAdContents"],e)&&(e=d[e],null!=e))try{f=e.apply(d,c)}catch(k){}d=f}p(d)&&(a.Wd.returnValue=d,this.o.send(a))}};
oS.prototype.B=function(a){this.o.send(a)};qS.prototype.isPharma=function(){return this.H};var rS={s:function(a,b,c){return(0,window.isNaN)(c)||""==c||a.length>=Number(c)?a:a=-1<b.indexOf("-",0)?a+La(" ",Number(c)-a.length):La(" ",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;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+La(" ",a):f+La(0<=b.indexOf("0",0)?"0":" ",a)+d},
d:function(a,b,c,d,e,f,k,l){return rS.f((0,window.parseInt)(a,10),b,c,d,0,f,k,l)}};
rS.i=rS.d;rS.u=rS.d;z(uS,id);h=uS.prototype;h.T=function(){this.g.dispose();null!==this.A&&(this.A.dispose(),this.A=null);yg(this.F.qc(!1),function(a){a.dispose()});
this.F.clear();If(this.o);uS.M.T.call(this)};
h.Ez=function(a){var b=a.Wd,c=Qs(this.o),d=window.document.createEvent("MouseEvent");d.initMouseEvent(a.Ic,!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(!Iz||AM()||0==window.document.webkitIsFullScreen)this.o.blur(),window.focus();this.o.dispatchEvent(d)};
h.Zz=function(a){var b=a.Wd,c=Qs(this.o),d=window.document.createEvent("TouchEvent");d.initTouchEvent(a.Ic,!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,vS(this,b.touches),vS(this,b.targetTouches),vS(this,b.changedTouches),b.scale,b.rotation);this.o.dispatchEvent(d)};
h.Wz=function(a){if(null!=this.b){var b=a.Wd;switch(a.Ic){case "startTracking":this.b.wb();break;case "stopTracking":this.b.Kb();break;case "exitFullscreen":this.b.kj();break;case "play":this.b.play();break;case "pause":this.b.pause();break;case "load":this.b.load(b.videoUrl,b.mimeType);break;case "setCurrentTime":this.b.Gf(b.currentTime);break;case "setPlaybackOptions":this.b.Gh(wS(b));break;case "setVolume":this.b.setVolume(b.volume)}}};
h.Oz=function(a){if(null!=this.B){var b=a.Wd;switch(a.Ic){case "startTracking":this.B.wb();break;case "stopTracking":this.B.Kb();break;case "setPlaybackOptions":this.B.Gh(wS(b));break;case "load":this.B.load(b.videoUrl,b.mimeType)}}};
h.Zd=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.b.ne();break;case "play":a="play";break;case "skip":a="skip";break;case "start":a="start";break;case "timeUpdate":a="timeupdate";b.currentTime=this.b.getCurrentTime();b.duration=
this.b.pd();break;case "volumeChange":a="volumeChange";b.volume=this.b.Sd();break;case "loadedmetadata":a=a.type;b.duration=this.b.pd();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.D.send("videoDisplay",a,b)};
h.Az=function(a){switch(a.Ic){case "showVideo":null!=this.A?this.A.Kb():(this.A=new TQ,this.g.O(this.A,"click",this.jF));this.A.wb(yS(this.C));a=this.C;null!=a.b&&a.b.show();break;case "hide":null!==this.A&&(this.A.dispose(),this.A=null);a=this.C;null!=a.b&&(a=a.b.b,null!=a&&(a.style.display="none"));break;case "getPreloadDisplay":null!=this.b&&null==this.B&&(this.B=this.C.B);break;case "swapVideoDisplays":if(null!=this.b&&null!=this.B){this.g.sa(this.b,Xb(sS),this.Zd);this.g.sa(this.b,tS,this.Zd);
a=this.C;if(a.b&&a.g&&a.A&&a.B){var b=a.g;a.g=a.B;a.B=b;b=a.b;a.b=a.A;a.A=b;null!=a.G&&(b=a.G,a=a.g,null!=b.b&&(b.g.sa(b.b,Xb(sS),b.Zd),b.g.sa(b.b,tS,b.Zd)),b.b=a,b.g.O(b.b,Xb(sS),b.Zd),b.g.O(b.b,tS,b.Zd))}this.b=this.C.g;this.B=this.C.B;this.g.O(this.b,Xb(sS),this.Zd);this.g.O(this.b,tS,this.Zd)}}};
h.jF=function(){this.D.send("displayContainer","videoClick")};
h.kz=function(){yg(this.F.qc(!1),function(a){a.ud=Rf(this.o);a.connect()},this);
this.G=!0};xS.prototype.initialize=function(){null!=this.b&&this.b.initialize();null!=this.A&&this.A.initialize()};
xS.prototype.destroy=function(){Nb(this.b);Nb(this.A);Nb(this.G);Nb(this.g);Nb(this.B);If(this.o)};
xS.prototype.setSize=function(a,b){var c=this.o;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.G&&(c=this.G,c.o.width=-1==a?"100%":a,c.o.height=-1==b?"100%":b)};var zS="ad_type vpos mridx pos vad_type videoad_start_delay".split(" ");z(BS,id);BS.prototype.start=v;BS.prototype.stop=v;z(CS,BS);CS.prototype.start=function(){this.b.start()};
CS.prototype.stop=function(){this.b.stop()};
CS.prototype.T=function(){CS.M.T.call(this);this.o.dispose();this.b.dispose()};
CS.prototype.A=function(){if("currentTime"in this.g&&!(0,window.isNaN)(this.g.currentTime)){var a=this.currentTime;this.currentTime=this.g.currentTime;a!=this.currentTime&&this.dispatchEvent(new mc("currentTimeUpdate"))}else this.dispatchEvent(new mc("contentWrapperError")),this.stop()};z(ES,id);ES.prototype.g=null;ES.prototype.T=function(){delete this.b;FS(this);dd(this.g);ES.M.T.call(this)};
ES.prototype.B=function(){DS(this)&&(FS(this),dd(this.g),this.g=null,this.A=!0,this.dispatchEvent("ifload"))};z(GS,id);h=GS.prototype;h.initialize=v;h.am=v;h.Fq=v;h.Eq=v;h.Gq=v;h.aq=v;h.jq=v;h.Dq=v;h.pp=v;h.$m=v;h.Jt=v;h.Lf=v;z(HS,mc);HS.prototype.getError=function(){return this.o};IS.prototype.dc=function(){return this.D};
IS.prototype.gc=function(){return this.g};
IS.prototype.clone=function(){var a=new IS(this.G,this.F);if(null!=this.g)JS(a,this.gc(),this.B,this.o,this.C,this.b);else{var b=this.dc(),c=this.B,d=this.o,e=this.A,f=this.C,k=this.b;a.D=b;a.g=null;a.B=c;a.o=d;a.A=e;a.C=f||[];a.b=k||[]}return a};z(LS,GS);ca(LS);h=LS.prototype;h.T=function(){this.g&&this.g.dispose();LS.M.T.call(this)};
h.initialize=function(){if(!this.A){var a;var b=$f(new lf);try{q("googletag"),MS([b,b.top]),a=!0}catch(c){a=!1}a?XS(this):(this.A=!0,this.o="not_available")}};
h.Eq=function(){};
h.am=function(){return this.A?M(this.F,function(a){return a.clone()}):[]};
h.aq=function(){return this.A&&"retrieved"==this.o?this.D:void 0};
h.Fq=function(){var a=this.am();return null!=a?M(a,function(a){return a.F}):void 0};
h.Gq=function(){};
h.jq=function(){};
h.Dq=function(a){try{this.b.googleSetCompanionAdContents(M(a,this.uy,this)),this.Lf()}catch(b){this.dispatchEvent(new HS("companion_display_error",b))}};
h.pp=function(a,b){var c;if(c=0!=a.length)c=KV(b),c=HV(c[0])&&1<c.length?c[1]:c[0],c="GDFP"==c;if(c){c=[];for(var d=0;d<a.length;d++)c.push(a[d].G);var d=b.o,e=OS(this);if(null!==e){NS(e,d,!1);try{e.notifyUnfilledSlots(c)}catch(f){}}}};
h.$m=function(){};
h.os=function(){0<this.B&&C()>=this.B?(this.A=!0,TS(this),WS(this)):XS(this)};
h.hG=function(a){var b=M(a.adSizes,function(a){return new hf(a.adWidth,a.adHeight)});
return new IS(a.slotId,b)};
h.uy=function(a){var b={};b.slotId=a.G;b.adContent=a.dc();b.adWidth=a.B;b.adHeight=a.o;b.friendlyIframeRendering=a.A;null==a.g&&ib(a.b)||(b.onAdContentSet=x(this.CC,this,a));return b};
h.CC=function(a,b){if(null!=a.g){var c=Nf(b);c||(c=Df("div"),b.appendChild(c));var d=a.gc();c.appendChild(d);YS(this,a,c)}else c=a.A?b.querySelector("iframe"):(c=Nf(b))?Nf(c):null,(c=c&&"IFRAME"==c.tagName?c:null)&&Bga(this,c,a)};
h.BC=function(a){this.dispatchEvent(new HS("companion_click",null,a))};
h.Jt=function(a){this.impressionUrls=a};
h.Lf=function(a){oM(this.impressionUrls,a)};z(ZS,mc);ZS.prototype.getError=function(){return this.b};z($S,mc);aT.prototype.videoCount=0;cT.prototype.Fb=function(){return this.o};
z(dT,cT);bT.prototype.isEmpty=function(){return this.b.isEmpty()};nT.prototype.tm=function(){return null};
nT.prototype.sm=function(){return null};
nT.prototype.ib=function(){return this.F};
nT.prototype.Ti=function(){for(var a=[this],b=this.F.g;b;){var c=qT(this,b)||qT(this,b,!0);null!=c&&a.push(c);b=b.g}return a};rT.prototype.cb=function(){return this.C};
rT.prototype.getHeight=function(){return this.B};z(sT,nT);sT.prototype.Td=function(){return this.o};
sT.prototype.Fl=function(a){var b="";Th(this.L,function(c){var d=c.g;return!A(B(a))&&a!=c.b||null==d||A(B(d))?!1:(b=d,!0)},this);
return b};
sT.prototype.tm=function(){return uT(this,"javascript")};
sT.prototype.sm=function(){return uT(this,"x-shockwave-flash")};z(vT,G);vT.prototype.D=function(){this.A=C()};
vT.prototype.G=function(a){var b=null!=a.target.href?a.target:a.target.parentNode,c=[];this.g&1&&c.push("nm="+this.B);this.g&2&&c.push("nb="+this.C.get(b));if(this.g&8){var d=Qs(this.o);c.push("nx="+(a.clientX-d.x));c.push("ny="+(a.clientY-d.y))}this.g&16&&null!=this.A&&c.push("clkt="+(C()-this.A));0<c.length&&(b.href+=0<=b.href.indexOf("?")?"&"+c.join("&"):"?"+c.join("&"))};
vT.prototype.F=function(){this.B++};
vT.prototype.T=function(){vT.M.T.call(this);this.b.dispose()};var L$=zT("f"),oX=zT("i"),M$=zT("b"),eX=zT("e"),fX=zT("s");var Jga=[0,2,1],DT=null;window.document.addEventListener&&window.document.addEventListener("mousedown",function(a){DT=a},!0);
window.mb=function(a){if(a){var b=ET();b&&(window.css?(0,window.css)(a.id,"mb",b,void 0,void 0):a&&(a.href=CT(a.href,"mb",b,void 0)))}};z(FT,G);FT.prototype.D=function(){this.C=C()};
FT.prototype.G=function(a,b){var c=a.element;1==(this.g&1)&&(0==this.A&&this.A++,this.b.nm=this.A);2==(this.g&2)&&(this.b.nb=a.Ly);if(8==(this.g&8)){var d=Qs(this.B);this.b.nx=Math.round(b.clientX-d.x);this.b.ny=Math.round(b.clientY-d.y)}16==(this.g&16)&&null!=this.C&&(d=C()-this.C,this.b.clkt=d);512==(this.g&512)&&(d=ET())&&(this.b.mb=d);"A"==c.tagName.toUpperCase()&&kf(c,Lga(this,c.href))};
FT.prototype.F=function(){this.A++};var Mga=wf?'javascript:""':"about:blank";z(HT,nT);h=HT.prototype;h.gc=v;h.dc=function(){return Tf(this.gc())};
h.vh=function(){return!1};
h.um=function(){return this.vh()?Tf(this.gc(!0)):""};
h.xc=function(){return this.ua};
h.rd=function(){return this.na};
h.cb=function(){return this.rd().width};
h.getHeight=function(){return this.rd().height};
h.tm=function(){return"VPAID"==this.G?this.B:null};
h.sm=function(){return"VPAID"==this.G&&"Flash"==this.ba?this.B:null};
h.Td=function(){return this.aa};z(IT,HT);h=IT.prototype;h.Vf=function(a){null==this.g||A(B(this.Td()))||(this.g.O(a,"click",this.N),this.R.push(a))};
h.gc=function(a){a?(null==this.La&&(this.La=this.Kd(a),Ff(this.La,NT(this))),a=this.La):(null==this.o&&(this.o=this.Kd(),Ff(this.o,NT(this))),a=this.o);null!=this.g&&this.g.O(a,"creativeview",this.da);return a};
h.Kd=v;h.Al=function(){ZL().b.Z("cleanup_text_overlay_spam_signals");return 2};
h.Ti=function(){for(var a=[this],b=this.ib().g;b;){var c=this.A?qT(this,b)||qT(this,b,!0):OT(this,b)||OT(this,b,!0);null!=c&&a.push(c);b=b.g}return a};z(PT,IT);h=PT.prototype;h.rd=function(){return new hf(this.cb(),this.getHeight())};
h.getHeight=function(){return 63};
h.cb=function(){return null!=this.C?$s(this.C).width:0};
h.Al=function(a){return ZL().b.Z("cleanup_text_overlay_spam_signals")?je(a,"text-image-link")?9:je(a,"text-ad-channel")?1:0:je(a,"text-image")?9:je(a,"text-ad-channel")?1:0};
h.Kd=function(){var a=this.ib(),b=a.getExtension("AdSense"),c=a.getExtension("TextAd"),d=c.o,e="rtl";null!=d&&(e=x0.test(pe(d,void 0))?"rtl":"ltr");d={title:d,text:c.A+" "+c.B,dir:e,Jb:this.Td()};if(c=c.g)d.image=iM(c),a=cb(a.B,function(a){return a instanceof sT}),null!=a&&(d.duration=HQ(a.H));
b.g&&(d.gu=b.g);this.C=kR(Ega,d);F(this.C.getElementsByTagName("a"),this.Vf,this);this.C.id=this.wa;this.C.style.height=this.getHeight()+"px";return this.C};var Pga=[202,1009],Vga=["CONTENT_V","CPN","DISALLOW","LACT","VIS"],Uga={MOAT_INIT:["://yts.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","://pagead2.googlesyndication.com","://([a-z0-9]+[.])*youtube.com"]};gU.prototype.g=function(){return null!=this.b&&this.b.g()?!0:0<this.ads.length&&this.o<this.ads.length-1};
gU.prototype.J=function(a,b){return this.D?0<a.length?a:b:ub(b,0,1)};
gU.prototype.B=function(a,b,c){var d;if(!(d=null!=a.b)){var e=this.F;d=e.od||0;e=e.nd||0;rV(a,$V)&&!a.ba?cW(a,"nonlinear")?eU(a,d,e):fU(a):cW(a,"linear")?fU(a):cW(a,"nonlinear")&&eU(a,d,e);d=null!=a.b}d?(this.A++,b(a)):(b=ib(a.B)?rM(hY):a.kb()?rM(lZ):rM(fsa),d=VT(b,a),JQ(Aha(a),"rm")?b.o=!1:oM(a.La,d),c(b))};
gU.prototype.G=function(a,b,c){var d=this.F.clone();d.g="";d.b=a.Oa;d.$c=AS(d.b,d.dj);mU(this,a,d,b,c)};z(rU,kT);z(sU,gU);sU.prototype.g=function(){if(null!=this.b&&this.b.g())return!0;var a=0==this.A||this.A==this.N;return 0<this.ads.length&&this.o<this.ads.length-1&&a};
sU.prototype.J=function(a,b){return b};
sU.prototype.B=function(a,b,c){var d;d=null==this.b?LV(a):LV(this.ads[this.o]);this.L.A=d;sU.M.B.call(this,a,b,c)};
sU.prototype.G=function(a,b,c){this.L.A=-1;sU.M.G.call(this,a,b,c)};z(wU,L);wU.prototype.toString=function(){return yU(this,wU.M.toString.call(this))};
wU.prototype.J=function(){return""};
wU.prototype.F=function(){return""};
wU.prototype.clone=function(){return new wU(this.toString())};var qha=["ai","sigh"],rha=["xai","sig"];z(UU,kT);VU.prototype.parse=function(a){a=Nf(a);var b=IU(a),c;"skippable"==b?c="skippable":"nonskippable"==b&&(c="nonskippable");if(null==c)throw rM(dsa);a=a.getAttribute("offset");a=SU(a);if("skippable"==c&&null==a)throw rM(csa);return new UU(c,a)};z(WU,kT);z(XU,kT);h=YU.prototype;h.dc=function(){return this.b.dc()};
h.gc=function(){return this.b.gc()};
h.xc=function(){return this.b.xc()};
h.cb=function(){return this.b.cb()};
h.getHeight=function(){return this.b.getHeight()};
h.Hq=function(){return!A(B(this.b.B))};
h.El=function(){var a=this.b.ib().b;return null!=a?a.b:window.NaN};
h.bm=function(){return this.b.rd()};
h.ib=function(){return this.b.ib()};z($U,IT);var tha=new hf(300,250);$U.prototype.Aa=function(){this.C=Math.max(0,this.C-1);jV(this)};
$U.prototype.Ca=function(){this.C=Math.min(this.ia-3,this.C+1);jV(this)};
$U.prototype.Kd=function(){return this.ea};z(nV,IT);var vha=new hf(300,250);nV.prototype.Kd=function(){return this.C};h=pV.prototype;h.xc=function(){if(null!=jW(this))return"application/javascript";if(null!=kW(this))return"application/x-shockwave-flash";var a=this.b,b="";if(null===a)return b;if(a instanceof sT)a=a.ga,null===a||(b=B(a.b));else if(a instanceof IT)switch(a.$){case "IFrame":case "Html":case "Static":b=B(a.ba)}return b};
h.getExtension=function(a){return this.D.get(a)};
h.kb=function(){return this.ha?this.ia:eW(this)?!0:rV(this,$V)?"video"==this.Na:cW(this,"linear")};
h.isSkippable=function(){return null!=gW(this)};
h.rB=function(){return this.ba};
h.cb=function(){return this.kb()?0:this.ea.width};
h.getHeight=function(){return this.kb()?0:this.ea.height};
h.toString=function(){return"Ad: "+this.ma};z(oW,id);oW.prototype.th=v;oW.prototype.kp=function(){return!0};
oW.prototype.wf=function(){return null};z(qW,oW);h=qW.prototype;h.T=function(){this.destroy();qW.M.T.call(this)};
h.destroy=function(){null!=this.B&&this.B.dispose();this.A=null;F(this.o,function(a){KS(a)},this);
this.g=null};
h.th=function(a){Nb(this.g);this.g=new id;this.A=a;this.C=!0;this.D?sW(this):(this.C=uW(tW(a),[]),this.C||(this.g=this.A=null));return this.g};
h.kp=function(){return this.C};
h.FE=function(){null!=this.F&&(this.F.stop(),this.F.dispose(),this.F=null);if(null!=this.b){var a=this.b.am();null!=a&&(this.o=a)}this.D=!0;null!=this.A&&sW(this);this.dispatchEvent(new mc("initialized"))};
h.DC=function(a){rW(this,a.getError())};
h.zC=function(a){if(null!=a.b){var b=a.b;"companion_slot_init"==a.type?(oM(b.C),rd(function(){null!=this.g&&this.g.dispatchEvent(new $S("companion_impression"))},this)):"companion_click"==a.type&&(oM(b.b),null!=this.g&&this.g.dispatchEvent(new $S("companion_click")))}};
h.wf=function(){return this.b};h=vW.prototype;h.zl=function(){return yS(this.b)};
h.Yi=function(){return this.b.C};
h.Pd=function(){return this.b.C};
h.fj=function(){var a=this.b.g;return null!=a?a:new bS};
h.sh=function(){var a=this.b;null!=a.b&&a.b.show()};
h.Yc=function(){};
h.ql=function(){return null!=this.b.F};
h.gj=function(){return this.b.D};
h.$l=function(){return!1};
h.hj=function(){return this.b.H};
h.setSize=function(a,b){this.b.setSize(a,b)};
h.Df=function(){};
h.Zl=function(){return null};
h.Aq=function(){};z(wW,mc);z(yW,mc);ca(zW);var Rha=/iu\=\/(\d+)\//;zW.prototype.start=function(a){this.g&&this.o.set(a,C())};
zW.prototype.end=function(a,b){if(this.g&&Cg(this.o,a)){var c=C()-this.o.get(a),d=AW(this,a,c,b);kM(d);this.o.remove(a);this.A+=c}};
zW.prototype.sendMessage=function(a,b,c){this.g&&(a=AW(this,a,b,c),kM(a))};BW.prototype.start=function(a,b){this.B=a;this.D=b;Uha(this);this.C.D?this.G():Im(this.o,this.C,"initialized",this.G,this)};
BW.prototype.G=function(){var a=this.C.wf(),b=a.aq(),c=a.jq(),d=a.Gq(),e=a.Eq(),a=a.Fq();null!=b&&(this.b.B=b);null!=c&&(this.b.b=c);null==d||A(d)||(this.b.F=d);null==e||A(e)||(this.b.D=e);null!=a&&(this.b.G=a);Tha(this)};z(DW,id);var EW=null;DW.prototype.destroy=function(){this.G.sa(this.g,"activityMonitor",this.J);this.g=null};
DW.prototype.J=function(a){var b=a.Wd;switch(a.Ic){case "appStateChanged":Gfa(qQ.getInstance(),b.appState,b.nativeTime);break;case "externalActivityEvent":IW(b.queryId,b.viewabilityString,b.eventName);break;case "measurableImpression":GW(b.queryId,b.viewabilityString);break;case "pageSignals":this.H=b.pageSignals;break;case "viewableImpression":HW(b.queryId,b.viewabilityString);break;case "engagementData":b=b.engagementString;FW().A=b;FW().F=C();break;case "viewability":a=b.eventId;window.clearTimeout(a);
var c=this.b.get(a);c&&(this.b.remove(a),c(b.viewabilityData));break;case "viewabilityMeasurement":qQ.getInstance();mO.getInstance();break;case "engagement":a=b.eventId;window.clearTimeout(a);c=this.b.get(a);if(RM.getInstance().b){var d=-1;this.C&&(d=C()-this.C);var e=!1;c||(e=!0);$b(b,"loggingId")&&UM(RM.getInstance(),43,{step:"receivedResponse",time:C(),timeout:e,logid:b.loggingId,timediff:d})}c&&(this.b.remove(a),c(b.engagementString))}};
g.ba("ima.bridge.getNativeViewability",function(a,b){FW();b({})},void 0);
g.ba("ima.bridge.getVideoMetadata",function(){var a=FW().D;return ia(a)?a():{}},void 0);
g.ba("ima.bridge.triggerViewEvent",HW,void 0);g.ba("ima.bridge.triggerMeasurableEvent",GW,void 0);g.ba("ima.bridge.triggerExternalActivityEvent",IW,void 0);JW.prototype.o=v;z(LW,Zha);z(OW,JW);OW.prototype.o=function(){return new KW(this.b,null,bia(this))};z(SW,kT);TW.prototype.parse=function(a){if(null==a)return null;var b,c,d;F(Lf(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 SW(b,c,d):null};z(VW,kT);VW.prototype.isPharma=function(){return this.D};WW.prototype.parse=function(a){var b;JU(a,"config",function(a){null!=b||(b=eia(this,a))},this);
return b};XW.prototype.parse=function(a){if(null==a)return null;var b,c,d,e,f,k,l,m=!1,n=!1;F(Lf(a),function(a){switch(a.nodeName){case "AttributionText":c=IU(a);break;case "AttributionUrl":d=IU(a);break;case "ConversionUrl":f=IU(a);break;case "CustomTracking":null!=Lf(a)&&(e=TU(a));break;case "is_pharma":a=HU(a,"bool");n=MU(B(a));break;case "CheckedEvents":a=Lf(a);b=M(a,function(a){return HU(a,"id")});
null!=b||(b=[]);break;case "PreviousAdInformation":IU(a);break;case "VisibleUrl":k=IU(a);break;case "UI":l=(new WW).parse(a);break;case "ShowYouTubeAnnotations":var u=IU(a);m=MU(B(u),!1);case "QueryId":IU(a)}},this);
null!=l||(l=new UW);return new VW(c,d,f,0,k,l,m,0,n,e,b)};YW.prototype.parse=function(a){if(null==a)return null;var b;F(Lf(a),function(a){switch(a.nodeName){case "CustomTracking":null!=Lf(a)&&(b=TU(a))}});
a=null;null!=b&&0<eT(b,"skip").length&&(a="Generic");return new WU(a,b)};ZW.prototype.parse=function(a){if(null==a)return null;var b,c;F(Lf(a),function(a){switch(a.nodeName){case "SkippableAdType":b=IU(a);break;case "CustomTracking":null!=Lf(a)&&(c=TU(a))}});
return new WU(b,c)};$W.prototype.parse=function(a){if(null==a)return null;var b;F(Lf(a),function(a){switch(a.nodeName){case "CustomTracking":null!=Lf(a)&&(b=TU(a))}},this);
return new kT(b)};var N$,O$,P$,Q$,dX,kX,R$,S$,T$,U$,V$,W$,X$,nX,Y$;h=RV.prototype;h.Fb=function(){var a=this.b.type;return null!=a?a:0};
h.Zi=function(){return new TV(this.b.website_card)};
h.xf=function(){return new SV(this.b.placement)};
h.$j=function(){return xT(this.b,"action")};
h.Tg=function(a){return new VV(wT(this.b,"action")[a])};
VV.prototype.Fb=function(){var a=this.bf.type;return null!=a?a:0};
VV.prototype.getId=function(){var a=this.bf.id;return null!=a?a:""};
VV.prototype.setTitle=function(a){this.bf.title=a};
bX.prototype.Fb=function(){var a=this.b.type;return null!=a?a:0};
TV.prototype.g=function(){return new UV(this.b.icon)};
TV.prototype.o=function(){return new UV(this.b.banner_image)};var rX;
rX={action:{type:{TYPE_HEADLINE:1,TYPE_APPLICATION_STORE:4,TYPE_CHANNEL:2,TYPE_INTERNAL:13,TYPE_HELPOUTS:15,TYPE_RESPONSE:12,TYPE_VIDEO:3,TYPE_RESULTS:11,TYPE_PLAYLIST:7,TYPE_LETTERMAN:14,TYPE_IRDB:8,TYPE_VOTE:18,TYPE_ATTRIBUTION:5,TYPE_INLINE_APPLICATION_STORE:19,TYPE_EXTERNAL:16,TYPE_MERCH:9,TYPE_SUBSCRIPTION:6,TYPE_COLLAPSE:17,TYPE_NONE:0,TYPE_FUNDRAISING:10}},ad_card:{attribution_position:{POSITION_TOP_RIGHT:2,POSITION_BOTTOM_RIGHT:3,POSITION_TOP_LEFT:1,POSITION_BOTTOM_LEFT:0}},card:{type:{TYPE_PRODUCT:1,TYPE_LOCATION:5,
TYPE_VOTE:3,TYPE_WEBSITE:4,TYPE_APP:2,TYPE_NONE:0},prominence:{PROMINENCE_HIGHLIGHT:1,PROMINENCE_NONE:0,PROMINENCE_FEATURE:2}},event:{type:{TYPE_ACTION_ENDCAP:9,TYPE_IMPRESSION_ENDCAP:8,TYPE_DISMISS_ENDCAP:11,TYPE_IMPRESSION_GALLERY:7,TYPE_IMPRESSION:1,TYPE_EXPAND:2,TYPE_COLLAPSE_ENDCAP:10,TYPE_DISMISS:4,TYPE_HEADLINE_CLICK:5,TYPE_ACTION:6,TYPE_COLLAPSE:3,TYPE_NONE:0}}};z(pX,kT);qX.prototype.parse=function(a){var b=Bs(a);if(A(B(b)))return null;var c;if(this.b){c=sX;if(!N$){var d={};N$={Xb:d};if(!O$){var e={};O$={Xb:e};e.type=eX;if(!P$){var f={};P$={Xb:f};f.major_version=oX;f.minor_version=oX}e.version=BT(P$);e.priority=oX;e.start_time_ms=zT("j");e.end_time_ms=zT("j");e.action=AT(iX());e.event=AT(hX());V$||(f={},V$={Xb:f},f.headline=fX,f.description=fX,f.attribution_icon_url=fX,f.skippable_seconds=oX,f.attribution_position=eX);e.ad_card=BT(V$);if(!R$){f={};R$={Xb:f};f.headline=
fX;f.image=BT(gX());f.description=fX;f.rating=L$;f.review_text=fX;if(!S$){var k={};S$={Xb:k};k.merchant=fX;k.price=fX;k.shipping=fX;k.shipping_tax=fX;k.condition=fX;k.unit_price=fX;k.energy_label=fX;k.description=fX;k.rating=L$;k.review_text=fX;k.action=AT(iX());k.event=AT(hX())}f.offer=AT(S$)}e.product_card=BT(R$);T$||(f={},T$={Xb:f},f.app_id=fX,f.app_name=fX,f.icon=BT(gX()),f.price=fX,f.rating_image=fX,f.review_count=oX,f.app_store_logo=BT(gX()),f.button_text=fX,f.screenshots=AT(gX()),f.rating=
L$,f.back_button_text=fX,f.screenshots_text=fX,f.cover_photo=BT(gX()));e.app_card=BT(T$);U$||(f={},U$={Xb:f},f.headline=fX,f.description=fX,f.icon=BT(gX()),f.banner_image=BT(gX()));e.website_card=BT(U$);e.prominence=eX;W$||(f={},W$={Xb:f},f.call_to_action_text=fX);e.social_card=BT(W$);X$||(f={},X$={Xb:f},f.vote_line_1=fX,f.vote_line_2=fX,f.confirm_line_1=fX,f.confirm_line_2=fX);e.vote_card=BT(X$);e.sponsored=M$;e.teaser_text=fX;Q$||(f={},Q$={Xb:f},f.hide_in_drawer=M$,f.show_in_endcap=M$,f.show_in_companion=
M$,f.show_in_cta=M$,f.override_clickthrough=M$,f.show_in_promotion_shelf=M$);e.placement=BT(Q$);Y$||(f={},Y$={Xb:f},f.latitude_e6=oX,f.longitude_e6=oX,f.address=fX,f.image=BT(gX()),f.headline=fX);e.location_card=BT(Y$)}d.card=AT(O$);d.event=AT(hX())}a=c(this,a,N$);a=c=new aX(a);d=new bT;for(e=0;e<xT(a.b,"card");e++)if(f=cX(a,e),XV(f.xf()))for(k=0;k<xT(f.b,"event");k++){var l;l=k;l=new bX(wT(f.b,"event")[l]);var m=null;switch(l.Fb()){case 9:m="video_card_endcap_action";break;case 10:m="video_card_endcap_collapse";
break;case 11:m="video_card_endcap_dismiss";break;case 8:m="video_card_endcap_impression"}m&&gT(d,m,tX(m,lX(l)))}a=d}else a=iia(this,a);return new pX(b,c,a)};z(uX,kT);uX.prototype.Nd=function(){return this.g};vX.prototype.B=function(a){var b={};F(this.g,function(a){b[a]=[]});
var c=new RegExp("^"+this.o);F(Lf(a),function(a){"config"==a.nodeName&&F(Lf(a),function(a){"params"==a.nodeName&&F(Lf(a),function(a){var d=this.o?a.nodeName.replace(c,""):a.nodeName,e=a.getAttribute("data");null!=e||(e=IU(a));null!=a.getAttribute("learn_more")&&(e+="|");gb(this.g,d)?b[d].push(e):b[d]=e},this)},this)},this);
return b};z(xX,kT);z(zX,vX);zX.prototype.parse=function(a){if(null==a)return null;a=wX(this,a);var b=a.UI;return new xX(b.gone,b.question,b.undo,b.hover_text,a.SurveyOptions||[],a.CustomTracking)};
zX.prototype.A=function(a){var b=[],c=0;F(Lf(a),function(a){if("SurveyOption"==a.nodeName){var e,f;F(Lf(a),function(a){switch(a.nodeName){case "DisplayName":e=IU(a);break;case "URL":f=IU(a)}},this);
null!=e&&null!=f&&(b.push({label:e,url:f}),c++)}},this);
return b};z(AX,kT);BX.prototype.b={Sx:"Siub",Rx:"Scs",tw:"Bgub",rw:"Bgp"};BX.prototype.parse=function(a){if(null==a)return null;var b,c,d,e;F(Lf(a),function(a){switch(a.nodeName){case this.b.Sx:b=IU(a);break;case this.b.Rx:c=IU(a);break;case this.b.tw:d=IU(a);break;case this.b.rw:e=IU(a)}},this);
return b&&c&&d&&e?new AX(b,c,d,e):null};z(CX,kT);DX.prototype.b={Wx:"TEMPLATE_PARAMETERS",Xx:"TEMPLATE_URL"};DX.prototype.parse=function(a){if(null==a)return null;F(Lf(a),function(a){switch(a.nodeName){case this.b.Wx:jia(this,a)}},this);
return new CX};z(EX,kT);FX.prototype.b={ix:"Line1",jx:"Line2",kx:"Line3",fx:"ImageUrl"};FX.prototype.parse=function(a){if(null==a)return null;var b,c,d,e;F(Lf(a),function(a){switch(a.nodeName){case this.b.ix:b=IU(a,!0);break;case this.b.jx:c=IU(a,!0);break;case this.b.kx:d=IU(a,!0);break;case this.b.fx:e=IU(a)}},this);
return new EX(b,c,d,e)};z(GX,kT);HX.prototype.parse=function(a){if(null==a)return null;var b;F(Lf(a),function(a){switch(a.nodeName){case "ViralExtensionData":a=a.getAttribute("query_id"),A(B(a))||(b=a)}},this);
return new GX(b)};z(IX,kT);z(JX,vX);var lsa=["menu","got_it","targeting_reason_header"],msa=[["generic_message_left","generic_message_hypertext","generic_message_right"]];JX.prototype.parse=function(a){if(null==a)return null;a=wX(this,a);var b=a.UI;if(!KX(b,lsa))return null;var c,d=!0,e=!1;F(msa,function(a){kia(b,a)&&(KX(b,a)?e=!0:d=!1)});
var f=b.targeting_reason;if(!d||!e||0==f.length)return null;null!=b.generic_message_left&&(c=[b.generic_message_left,b.generic_message_hypertext,b.generic_message_right]);return new IX(b.menu,b.targeting_reason_header,b.targeting_reason,b.got_it,a.CustomTracking,c,b.control)};LX.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 XU(a)};z(MX,kT);NX.prototype.parse=function(a){return null!=a?new MX:null};OX.prototype.parse=function(a){if(null==a)return null;a=a.getAttribute("fallback_index");a=null!=a?Va(a):window.NaN;return new rU(a)};z(PX,IT);PX.prototype.Kd=function(){var a=this.G,a=null!=a&&"clicktag"==a.toLowerCase(),a={url:iM(B(this.B)),width:this.cb(),height:this.getHeight(),Jb:this.Td(),ag:this.vp||!a},b=U.b()&&JQ(this.D,"hideMaster")?mT:Fga,a=kR(b,a);a.style.width=this.cb()+"px";a.style.height=this.getHeight()+"px";a.id=this.wa;F(a.getElementsByTagName("object"),this.Vf,this);F(a.getElementsByTagName("a"),this.Vf,this);return a};z(QX,IT);QX.prototype.Kd=function(){var a=K("DIV");a.innerHTML=this.B;this.Vf(a);return MT(this,a)};z(RX,IT);RX.prototype.dc=function(){var a=RX.M.dc.call(this);this.A&&(a=a.replace('src=""','src="'+iM(B(this.B))+'"'));return a};
RX.prototype.um=function(){var a=RX.M.um.call(this);this.A&&(a=a.replace('src=""','src="'+iM(B(this.B))+'"'));return a};
RX.prototype.Kd=function(a){var b="";this.A||(b=iM(B(this.B)));b={id:this.wa,url:b,Jb:this.Td(),width:this.cb()+"px",height:this.getHeight()+"px"};a=U.b()&&JQ(this.D,"hideMaster")?mT:a?Hga:Gga;a=kR(a,b);F(a.getElementsByTagName("a"),this.Vf,this);return a};
RX.prototype.vh=function(){return!0};z(SX,IT);SX.prototype.Kd=function(){var a=B(this.B);A(B(this.Td()))||(a=new L(a),lh(a,"clickTAG",va(this.Td())),a=a.toString());var b=K("IFRAME",{marginwidth:0,marginheight:0,hspace:0,vspace:0,frameborder:0,scrolling:"no"},null);b.height=this.getHeight();"Text"!=this.xc()&&(b.width=this.cb());b.setAttribute("src",iM(a));this.Vf(b);return MT(this,b)};VX.prototype.xc=function(){return null!=this.b?GT[this.b]||"Other":null};WX.prototype.gc=function(){return this.b};
WX.prototype.update=function(a,b){var c=null!=this.D?iT(this.D):0;this.g=0<=this.g?this.g:b;c<=a&&c+this.g>=a?nia(this):bt(this.b,!1)};z(XX,JW);
XX.prototype.b={iw:"Ad",wk:"AdParameters",kw:"AdSystem",lw:"AdTitle",RJ:"Advertiser",pw:"AltText",vw:"ClickThrough",ww:"ClickTracking",xw:"Companion",yw:"CompanionAds",zw:"CompanionClickThrough",Aw:"CompanionClickTracking",Cw:"Creative",yL:"CreativeExtensions",Dw:"Creatives",Hw:"CustomClick",Jw:"Description",zk:"Duration",ERROR:"Error",Pw:"Extension",Qw:"Extensions",ni:"HTMLResource",Vw:"Icon",Ww:"Icons",Xw:"IconClicks",Yw:"IconClickThrough",Zw:"IconClickTracking",$w:"IconViewTracking",pi:"IFrameResource",ri:"Impression",
IM:"InLine",LINEAR:"Linear",qx:"MediaFile",rx:"MediaFiles",Ax:"NonLinear",Bx:"NonLinearAds",Cx:"NonLinearClickThrough",Dx:"NonLinearClickTracking",DO:"Pricing",si:"StaticResource",Ux:"Survey",TP:"Tracking",Jk:"TrackingEvents",iQ:"VAST",ay:"VASTAdTagURI",by:"VideoClicks",gy:"Wrapper"};
XX.prototype.g={jw:"adSlotID",ow:"allowMultipleAds",ii:"apiFramework",mo:"bitrate",Ew:"creativeType",Iw:"delivery",zk:"duration",hM:"event",Tw:"followAdditionalWrappers",Nw:"expandedHeight",Ow:"expandedWidth",mi:"height",oi:"id",lx:"maintainAspectRatio",ox:"maxBitrate",wx:"minBitrate",xx:"minSuggestedDuration",Ex:"offset",Fx:"program",Jx:"required",Nx:"scalable",No:"sequence",Px:"skipoffset",Wo:"type",VERSION:"version",ey:"codec",ti:"width",iy:"xPosition",ky:"yPosition"};
XX.prototype.o=function(){return new KW(this.A,qia(this),null)};z(fY,JW);fY.prototype.o=function(){return new KW(this.g,null,Jia(this))};h=iY.prototype;
h.clone=function(){var a=new iY;"auto"==this.Mf?a.Mf="auto":"click"==this.Mf&&(a.Mf="click");a.b=this.b;a.qf=hc(this.qf);a.g=this.g;a.Ci=this.Ci;a.A=this.A;a.Eb=hc(this.Eb);a.B=this.B;a.location=this.location;a.referrer=this.referrer;a.D=this.D;a.language=this.language;a.ug=this.ug;a.tg=this.tg;a.od=this.od;a.nd=this.nd;a.$c=this.$c;a.Oj=this.Oj;a.ej=this.ej;a.Ai=this.Ai;a.kn=this.kn;a.o=this.o;a.Qh=this.Qh;a.dj=this.dj;a.afcRmFallback=this.afcRmFallback;a.G=this.G;a.F=this.F;a.gg=this.gg;a.Zj=this.Zj;
a.qr=this.qr;return a};
h.qf=null;h.Ci=null;h.Eb=null;h.Mf="unknown";h.qr=0;h.ug=0;h.tg=0;h.od=0;h.nd=0;h.gg=!1;h.$c=null;h.Oj=!1;h.ej=!1;h.Ai=!1;h.kn=!0;h.Zj=new TL;h.Qh=0;h.Mp=!0;h.dj=null;h.afcRmFallback=!1;jY.prototype.F=function(){var a=this.A(this.B());return Cd(a)?a.then(function(a){return a.toString()}):a instanceof Error?a:a.toString()};
jY.prototype.C=function(){var a;a=1;JM()&&(a+=4);if(!U.b()){var b=0;aM(ZL(),41351017)&&(b+=7168);a+=b}return a};
jY.prototype.A=v;jY.prototype.B=v;var LY={ZP:"ultrahigh",zM:"high",tx:"medium"},Uia={nK:1E3,oK:1001,pK:1002,qK:1003,rK:1004,sK:1005,tK:1006},Via={mx:1,Rw:2},Wia={sL:"content",iP:"site",jP:"site_content"};h=pY.prototype;h.wi="high";h.pm=!1;h.Lk=1;h.Mk=null;h.adType="video";h.adBlock=1;h.qm=null;h.Qk=!0;h.Rk=null;h.nl=null;h.kh=null;h.experimentIds=null;h.gender=null;h.host=null;h.hostTierId=null;h.isLiveStream=!1;h.language=null;h.Vq=null;h.Uq=null;h.tj=1E5;h.uj=null;h.Xq=null;h.Wq=null;h.Gm=0;h.Eg=null;h.Dj=null;h.Jj=null;
h.targeting=null;h.tagForChildDirectedTreatment=-1;h.url=null;h.lj=null;h.yn=null;h.rm=null;h.En=null;h.Bn=null;h.Cn=null;h.Dn=null;h.Yk=null;h.xn=null;h.Yj=null;var tY=(new Date).getTime();var Sia={WK:"bumpervideo",Sw:"flash",IMAGE:"image",oP:"skippablevideo",sP:"standardvideo",vP:"staticimage",TEXT:"text",VIDEO:"video"},DY=["flash","image","staticimage"],Tia=[new hf(200,200),new hf(250,250),new hf(300,250),new hf(336,280),new hf(450,50),new hf(468,60),new hf(480,70),new hf(728,90)];z(MY,jY);var Xia=["bumpervideo","skippablevideo","standardvideo","video"];MY.prototype.D={mw:"allow",Lw:"exclude",PO:"require"};MY.prototype.C=function(){var a=MY.M.C.call(this);U.b()&&this.b.Jj&&(a|=this.b.Jj);return a};
MY.prototype.A=function(a){var b=new L(this.g.b),c=new L("//"+b.g+b.o),b=a.Ua();F(b,function(b){lh(c,b,a.get(b))});
bh(c,"https");return c};
MY.prototype.B=function(){var a=new Ag;a.set("sdkv",oY(this));a.set("sdki",this.C().toString(16));a.set("video_product_type",null!=this.b.Eg?U.b()?5:ta(this.b.Eg,"ca-games-")?4:ta(this.b.Eg,"ca-video-")?0:-1:-1);a.set("correlator",this.G.b);a.set("client",this.b.Eg);U.b()&&!A(B(this.b.url))?a.set("url",this.b.url):a.set("url",this.g.location?this.g.location:this.g.referrer);null!=this.g.$c&&a.set("adk",this.g.$c);a.set("num_ads",NY(this));a.set("channel",Zia(this));a.set("output","xml_vast3");this.b.pm&&
a.set("adtest","on");FQ&&a.set("flash",jO);CY("alternate_ad_url",this.b.Rk,a);CY("cpm",this.b.nl,a);sY(a,this.g);U.b()||Vb(LY,this.b.wi)&&a.set("adsafe",this.b.wi);this.b.host&&(a.set("host",this.b.host),CY("ht_id",this.b.hostTierId,a),null!=this.b.o&&CY("h_ch",this.b.o.join("+"),a));CY("hl",this.b.language,a);CY("cust_age",this.b.qm,a);CY("cust_gender",this.b.gender,a);-1!=this.b.tagForChildDirectedTreatment&&CY("tfcd",this.b.tagForChildDirectedTreatment,a);CY("slotname",this.b.Mk,a);if(xY(this.b)&&
(a.set("ea","0"),null!=this.g.od&&null!=this.g.nd)){var b=yY(this.b,this.g.od,this.g.nd,this.g.gg);a.set("image_size",b);A(b)&&(this.b.b=FY(this.b.b,this.b.adType,!0),this.b.adType=this.b.b.join("_"))}a.set("ad_type",this.b.adType);b=bM(ZL());A(B(b))||a.set("eid",b);uY(a);b=this.g.A||this.b.kh;ZL().b.Z("no_ad_block_param")||rY(a,this.G,this.b,b);a.set("unviewed_position_start","1");b=this.b.Lk;a.set("videoad_start_delay",null!=b?b:1);mY(this,a);nY(this,a);kY(this,a);Yia(this)&&a.set("video_format",
null!=this.b.lj&&U.b()?this.b.lj:bm&&Rz(6)||yA&&Rz(4)||DM(2.3)?43:18);a.set("t_pyv",null!=this.b.Dj?this.b.Dj:gb(this.b.adType.split("_"),"text")?this.D.mw:this.D.Lw);CY("min_ad_duration",this.b.Gm,a);0<this.b.tj&&a.set("max_ad_duration",Math.round(1.1*(this.b.tj||0)+0*NY(this)));0<this.b.uj&&a.set("sdmax",Math.round(1.1*(this.b.uj||0)+0*NY(this)));zY(a,this.H);U.b()&&(b=WQ(this.b.kh),null!=b&&a.set("video_doc_id","yt_"+b));CY("description_url",this.b.kh,a);U.b()&&(CY("lact",vY(this.g),a),CY("loeid",
this.b.rm,a),CY("lsv",this.b.isLiveStream,a),this.b.Qk||CY("scs","false",a),CY("targeting",this.b.targeting,a),CY("video_cpm",this.b.yn,a),CY("yt_pt",this.b.En,a),CY("ytdevice",this.b.Bn,a),CY("ytdevicever",this.b.Cn,a),CY("yt_vis",wY(this.g),a),CY("dbp",this.b.Dn,a),CY("avo",this.b.Yk,a),CY("v_p",this.b.xn,a));null!=a.get("ms")||CY("ms",this.b.A,a);lY(a);AY(this.g,a,!1);null!=this.g.qf&&CY("loc",this.g.qf.page_location,a);return a};z(OY,jY);OY.prototype.A=function(a){var b=new L(this.g.b);F(a.Ua(),function(c){A(a.get(c))?b.b.remove(c):lh(b,c,a.get(c))});
bh(b,"https");return b};
OY.prototype.B=function(){var a=new Ag;a.set("sdkv",oY(this));nY(this,a);kY(this,a);lY(a);null!=this.g.$c&&a.set("adk",this.g.$c);return a};z(PY,jY);PY.prototype.B=function(){return new Ag};
PY.prototype.A=function(){var a=new wU(this.g.b),b=oY(this);b&&xU(a,"dc_sdkv",[b]);(b=this.C().toString(16))&&xU(a,"dc_sdki",[b]);(b=this.o.H)&&xU(a,"dc_submodel",[b]);null!=this.g.$c&&xU(a,"dc_adk",[this.g.$c]);b=new Ag;mY(this,b);nY(this,b);kY(this,b);lY(b);Cg(b,"js")&&xU(a,"dc_js",[b.get("js")]);Cg(b,"msid")&&xU(a,"dc_msid",[b.get("msid")]);Cg(b,"frm")&&xU(a,"dc_frm",[b.get("frm")]);Cg(b,"osd")&&xU(a,"dc_osd",[b.get("osd")]);Cg(b,"sdr")&&xU(a,"dc_sdr",[b.get("sdr")]);xU(a,"dcmt",["text/xml"]);
Cg(b,"vpa")&&xU(a,"vpa",[b.get("vpa")]);Cg(b,"mpt")&&xU(a,"mpt",[b.get("mpt")]);Cg(b,"mpv")&&xU(a,"mpv",[b.get("mpv")]);bh(a,"https");return a};z(QY,jY);QY.prototype.A=function(a){a=new L(a.get("adTagUrl"));bh(a,"https");return a};
QY.prototype.F=function(){var a=B(this.B().get("adTagUrl"));return a=a.replace(/^http:/i,"https:")};
QY.prototype.B=function(){var a=new Ag;a.set("adTagUrl",this.g.b);a.set("adsResponse",this.g.g);return a};z(RY,jY);RY.prototype.A=function(a){return new L(a.get("adTagUrl"))};
RY.prototype.B=function(){var a=new Ag;a.set("adTagUrl",this.g.b);a.set("adsResponse",this.g.g);return a};z(SY,jY);SY.prototype.A=function(a){var b=new L(this.g.b);F(a.Ua(),function(c){A(a.get(c))?b.b.remove(c):lh(b,c,a.get(c))});
bh(b,"https");return b};
SY.prototype.B=function(){var a=new Ag,b=bM(ZL());A(B(b))||a.set("eid",b);a.set("sdkv",oY(this));a.set("sdki",this.C().toString(16));a.set("correlator",this.o.B);a.set("scor",this.o.b);null!=this.g.$c&&a.set("adk",this.g.$c);mY(this,a);nY(this,a);kY(this,a);lY(a);var b=(new L(this.g.b)).b,c=new pY;c.g=JY(c.g,b.get("overlay"));a.set("afvsz",yY(c,this.g.od,this.g.nd,this.g.gg));b=this.o.A;null!=b&&(this.o.A=null,a.set("fbidx",b));b=this.o.N;null!=b&&a.set("ppid",b);b="null";c=this.o.g;null!=c?b=c:TY(this.g.location)?
b=this.g.location:TY(this.g.referrer)&&(b=this.g.referrer);a.set("url",b);b=this.o.H;null!=b&&a.set("submodel",b);b=this.o.G;null==b||U.b()||(b=$ia(b),a.set("ciu_szs",b));a.set("impl","");a.set("unviewed_position_start","1");return a};z(UY,SY);UY.prototype.A=function(a){a=UY.M.A.call(this,a);this.G||bja(this,a);return a};z(VY,PY);VY.prototype.A=function(a){a=VY.M.A.call(this,a);this.G||dja(this,a);return a};z(WY,jY);var fja="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(" ");WY.prototype.A=function(){if(!/\[BISCOTTI_ID\]/.test(this.g.b))return XY(this);var a=this.g.Ci;return Cd(a)?a.then(function(a){return XY(this,a)},function(a){throw rM(G$,a);
},this):a instanceof Error?rM(G$,a):XY(this,a)};
WY.prototype.B=function(){return new Ag};ZY.prototype.fetch=function(a,b,c){A(B(a.g))?DU(a.b)&&null!=this.b&&!this.b.F?this.b.start(a,x(function(){aZ(this,a,b,c)},this)):aZ(this,a,b,c):nja(this,a,b,c)};
ZY.prototype.g=function(a,b,c,d){var e=hja(a,this.A).F();Cd(e)?e.then(function(e){cZ(this,e,a,b,c,d)},function(a){a instanceof ML?c(a):c(rM(bZ,a))},this):e instanceof ML?c(e):e instanceof Error?c(rM(bZ,e)):cZ(this,e,a,b,c,d)};dZ.prototype.reset=function(a){this.b=a+C()};z(gZ,id);gZ.prototype.B=function(){aM(ZL(),31061782)&&nM.Kj(this.C,!0)};var nsa={NORMAL:"normal",Ak:"fullscreen"};z(mZ,G);h=mZ.prototype;h.uh=!1;h.Nq=1E3;h.tr=30;h.ur=45E3;h.Ws=15E3;h.hu=!1;h.kl=function(){var a=nZ(this);this.b.appendChild(this.H);oZ(this.H);this.play();return a};
h.la=function(){null==this.K&&(this.K=this.kl());return this.K};
h.play=function(){null==this.g&&(this.g=ee(function(){this.uh||(this.Mq(),this.hu=!0);this.g=null},this.hu?this.Ws:this.ur,this))};
h.stop=function(){null!=this.g&&(fe(this.g),this.g=null)};
h.show=function(){at(this.la(),1);null!=this.o&&(fe(this.o),this.o=null)};
h.Mq=function(){at(this.la(),this.tr/100);null==this.o&&(this.o=ee(function(){this.R();this.o=null},400,this))};
h.wA=function(){this.show();this.uh=!0;this.C=ee(function(){this.uh&&this.stop();this.C=null},this.Nq,this)};
h.AG=function(){null!=this.C&&(fe(this.C),this.C=null);this.uh&&this.play();this.uh=!1};
h.T=function(){mZ.M.T.call(this);this.stop();Nb(this.Qd)};z(pZ,mZ);h=pZ.prototype;h.kl=function(){var a=nZ(this);I(a,"ima-container-rotator");this.F=K("DIV");this.b.appendChild(this.F);F(this.J,function(a,c){I(a,"ima-container-highlight");var d=63/this.J.length*(c+.5)-5,e=K("DIV",{id:Ua(),"class":"ima-container-selector"});e.style.top=d+"px";this.Qd.O(e,"click",function(a){this.Jg(a.target)});
this.N.set(e.id,a);this.D.appendChild(e)},this);
this.Jg(Nf(this.D));this.play();return a};
h.play=function(){null==this.A&&(this.A=new ce(this.L),this.Qd.O(this.A,"tick",this.$F));pZ.M.play.call(this);this.A.start()};
h.stop=function(){null!=this.A&&this.A.stop();pZ.M.stop.call(this)};
h.$F=function(){var a=this.B;this.Jg((p(a.nextElementSibling)?a.nextElementSibling:Mf(a.nextSibling))||Nf(this.B.parentNode))};
h.Jg=function(a){this.B&&me(this.B,"ima-container-active");I(a,"ima-container-active");var b=this.N.get(a.id);Jf(b,this.F);this.B=a;this.F=b;oZ(b)};z(qZ,mZ);qZ.prototype.Mq=r;qZ.prototype.kl=function(){var a=nZ(this);F(this.A,function(a){I(a,"ima-container-highlight");this.b.appendChild(a);oZ(a)},this);
this.play();return a};z(rZ,wt);h=rZ.prototype;h.play=function(){if(this.Za())return!1;this.wj();this.Rc("play");this.startTime=C();this.b=1;if(Wra())return Gs(this.g,this.D),this.A=ee(this.rz,void 0,this),!0;this.jn(!1);return!1};
h.rz=function(){Zs(this.g);xv(this.g,this.C);Gs(this.g,this.o);this.A=ee(x(this.jn,this,!1),1E3*this.B)};
h.stop=function(){this.Za()&&this.jn(!0)};
h.jn=function(a){Gs(this.g,"transition","");fe(this.A);Gs(this.g,this.o);this.endTime=C();this.b=0;a?this.Rc("stop"):this.Ac();this.zh()};
h.T=function(){this.stop();rZ.M.T.call(this)};
h.pause=function(){};z(uZ,id);h=uZ.prototype;h.start=function(){this.gm();this.o=0;vZ(this);this.g=!0;this.B.start()};
h.play=function(){this.g||(vZ(this),this.g=!0,this.B.start())};
h.pause=function(){this.g&&vZ(this)};
h.stop=function(){this.g&&vZ(this);this.dispatchEvent("end")};
h.gm=function(){};
h.jE=function(){this.o+=.2;this.dm(this.o,this.K);this.dispatchEvent("timeUpdate");0>=this.K-this.o&&this.stop()};
h.dm=r;h.T=function(){this.g=!1;this.H.dispose();uZ.M.T.call(this)};z(xZ,id);xZ.prototype.C=function(){this.b?this.dispatchEvent("videoUnmuteClicked"):this.dispatchEvent("videoMuteClicked")};
xZ.prototype.T=function(){this.B.dispose();this.B=null;xZ.M.T.call(this)};var Gja=/#(.)(.)(.)(.)/,Fja=/^#(?:[0-9a-f]{4}){1,2}$/i;z(BZ,id);h=BZ.prototype;h.T=function(){null!=this.H&&(this.H.dispose(),this.H=null);null!=this.J&&(this.J.dispose(),this.J=null);DZ(this);null!=this.B&&(If(this.B),this.B=null);null!=this.b&&(this.b=null);null!=this.g&&(If(this.g),this.g=null);this.L.dispose();this.L=null;this.C.dispose();this.C=null;this.R=!1;BZ.M.T.call(this)};
h.update=function(a,b){this.aa=b;if(!(0>=this.aa||null==this.o.skipOffset||0>iT(this.o.skipOffset))){var c=iT(this.o.skipOffset);c>=this.aa||3==this.A||(0>a?this.A=1:a<=c?(2!=this.A&&(CZ(this,0),sZ(this.B,.5,"ease-out",0,1).play(),bt(this.B,!0)),this.A=2):(3!=this.A&&(bt(this.g,!0),this.J=new rZ(this.B,.5,{opacity:1,visibility:"shown"},{opacity:.9,visibility:"hidden"},{property:"opacity",duration:.5,timing:"ease-out",delay:0}),this.H=sZ(this.g,.5,"ease-out",0,1),this.J.play(),this.H.play(),this.b.autofocus&&
this.b.focus(),this.C.O(Pf(this.g),"mouseover",this.WF),this.C.O(Pf(this.g),"mouseout",this.Lt),this.Lt()),this.A=3,this.dispatchEvent("skipshown")))}2==this.A&&CZ(this,a)};
h.skip=function(){return null==this.o.skipOffset||3!=this.A||this.N?!1:(this.N=!0,this.dispatchEvent("PUBLISHER_INVOKED_SKIP"),!0)};
h.rG=function(a){U.b()||a.stopPropagation();3!=this.A||this.N||(this.N=!0,this.dispatchEvent("skip"))};
h.Lt=function(){null==this.F&&"4.4.4"!==(aB?FM(CM):"")&&(this.F=ee(function(){this.R=!0;sZ(this.g,.5,"ease-in",1,.5).play();this.F=null},this.R?5E3:15E3,this))};
h.WF=function(){at(this.g,1);DZ(this)};z(HZ,id);h=HZ.prototype;h.show=function(){null!=this.g&&bt(this.g,!0)};
h.skip=function(){var a;if(a=null!=this.A)a=this.A,a=null!=a.o.skipOffset&&3==a.A;return a?this.A.skip():!1};
h.T=function(){null!=this.g&&(If(this.g),this.g=null);IZ(this);F(this.aa,function(a){a.Kb()});
this.aa=[];this.B=null;this.o.dispose();this.o=null;this.qa=!1;HZ.M.T.call(this)};
h.update=function(a,b,c,d,e){this.qa=!0;null!=this.g&&(null!=this.ga&&Kja(this,a,c,d,e),null!=this.$&&Ws(this.$,a/c*100+"%"),null!=this.ma&&Ws(this.ma,b/c*100+"%"),0<c&&null!=this.b.skipOffset&&null!=this.A&&(hT(this.b.skipOffset,c),this.A.update(a,c)),this.b.G&&0<c&&5>c-a&&I(this.ba,"videoAdUiTopBarNoFade"),F(this.Ga,function(b){b.update(a,c)},this))};
h.yy=function(){this.dispatchEvent("videoAuthorIconClicked")};
h.zy=function(){this.dispatchEvent("videoAuthorClicked")};
h.or=function(){this.dispatchEvent("videoLearnMoreClicked")};
h.oG=function(){this.dispatchEvent("videoShareClicked")};
h.yG=function(){this.dispatchEvent("videoTitleClicked")};
h.XA=function(a){a.preventDefault()};
h.Xj=function(){this.dispatchEvent("click")};
h.nG=function(){I(this.ba,"videoAdUiTopBarTransitions")};
h.FF=function(){var a=Zf(this.g,"html5-video-player");if(null!=a){var b=this.b.C;null!=a&&(b.A=new Cm(b),b.g=new id,b.g.Kg(this),b.C=a,b.Ms(),b.g.dispatchEvent("why_this_ad_url"));null!=this.A&&EZ(this.A,!1)}};
h.GG=function(){null!=this.A&&EZ(this.A,!0)};h=MZ.prototype;
h.Ms=function(){var a={heading:"",targetingReasons:[],learnMore:"",vl:"",control:"",mute:""};if(null!=this.B){a.heading=this.B.B;var b=this.B.g;if(b&&3==b.length){var c=b[1],d=b[2],b=qR(Y(b[0])+VR()+Y(c)+qR("</a>")+Y(d));a.vl=b}a.targetingReasons=sb(this.B.C);a.close=this.B.o}else a.vl=WR(),a.close="Got It";null!=this.o&&(a.mute=this.o.A);OZ(this,uga,a);NZ(this,"videoAdUiWhyThisAdCloseButton",this.Ii);NZ(this,"videoAdUiWhyThisAdControl",this.Lp);NZ(this,"videoAdUiWhyThisAdMute",this.DF);a=rf("videoAdUiWhyThisAdGenericMessage",
this.b);null!=a&&(a=a.getElementsByTagName("A")[0],null!=a&&this.A.O(a,"click",this.Lp))};
h.Ii=function(){null!=this.A&&(this.A.dispose(),this.A=null);FZ(this)&&null!=this.b&&(null!=this.g&&(this.g.dispatchEvent("why_this_ad_got_it"),this.g.dispose(),this.g=null),this.b.parentElement.removeChild(this.b),this.b=null)};
h.Lp=function(){null!=this.g&&this.g.dispatchEvent("why_this_ad_settings_url")};
h.DF=function(){if(null!=this.o){this.g.dispatchEvent("mute_interaction_url");var a,b=yX(this.o);if(0==b)a={heading:"",message:"Are you sure you want to stop seeing this ad?",confirm:"YES",cancel:"CANCEL"},OZ(this,wga,a),NZ(this,"videoAdUiMuteCancel",this.Ms),NZ(this,"videoAdUiMuteConfirm",this.Py);else{this.g.dispatchEvent("mute_url");a={heading:this.o.o,undo:this.o.C,question:this.o.B,options:[],confirm:"SEND",cancel:"CLOSE"};var c;c=this.o?(c=eT(this.o.b,"mute_undo_url"))&&0<c.length:!1;c||(a.undo=
"");for(c=0;c<b;c++)a.options.push(this.o.g[c].label);OZ(this,vga,a);NZ(this,"videoAdUiMuteUndo",this.zG);NZ(this,"videoAdUiMuteConfirm",this.tG);NZ(this,"videoAdUiMuteCancel",this.il)}}};
h.Py=function(){this.g.dispatchEvent("mute_url");this.il()};
h.zG=function(){this.g.dispatchEvent("mute_undo_url");this.Ii()};
h.tG=function(){if(null!=this.o){for(var a=yX(this.o),b=!1,c=0;c<a;c++){var d=rf("videoAdUiMuteOption"+c,this.b);if(null!=d&&d.checked){b=!0;kM(this.o.g[c].url);break}}if(!b)return}this.il()};
h.il=function(){this.g.dispatchEvent("MUTE_AD");this.Ii()};z(SZ,uZ);h=SZ.prototype;h.start=function(){this.gm();this.A.update(0,this.G);sZ(this.b,this.F.o,"ease-out",0,1).play();this.H.O(this.A,"skip",this.ty);SZ.M.start.call(this)};
h.gm=function(){var a=Zs(this.b);if(1==this.D){var b=400>=(0,window.parseInt)(Js(this.b,"width"),10)||400>=a.width;J(this.b,"videoAdUi-mobile",b)}else if(2==this.D){var c=Nf(this.b),d=Zs(c),e=65>=(a.height-d.height)/2;J(this.b,"fullslotAdUi-mobile",e);b=165>=(a.width-d.width)/2;J(this.b,"videoAdUi-mobile",b&&e);c.style.top=Math.max(5,Math.floor((a.height-d.height-65)/2))+"px"}};
h.ty=function(){this.pause();this.dispatchEvent("skip")};
h.dm=function(a,b){this.A.update(a,b);if(this.C){var c=tZ({Sg:RZ(b-a)});Sf(this.C,c)}};
h.T=function(){this.A&&this.A.dispose();Gf(this.b);SZ.M.T.call(this)};z(TZ,G);TZ.prototype.H=function(a,b){var c=hc(b||{});if("timeout"==(c.viewability||"")){var d=this.F[a];null!=d&&(c.viewability=d)}if("impression"==a&&!this.G&&null!=this.C&&0<this.C.length){var d=U.D&&gb(this.D,"impression"),e=VZ(this,this.C,c);WZ(this,e,d);this.G=!0}Nja(this,a)&&(e=jT(this.o,a),0<e.length&&(d=U.D&&gb(this.D,a),c=VZ(this,e,c),WZ(this,c,d),this.g.set(a,!0)))};z(XZ,id);XZ.prototype.o=function(a){switch(a.type){case "companion_impression":this.dispatchEvent(new OL("companionImpression",this.b));break;case "companion_click":this.dispatchEvent(new OL("companionClick",this.b))}};z(YZ,id);h=YZ.prototype;h.Fh=function(){var a=fb(this.ads,this.G);-1!=a&&++a<this.ads.length?b_(this,this.ads[a]):b_(this,null)};
h.Vm=function(a,b){this.ads[fb(this.ads,a)]=b;b_(this,b)};
h.qt=function(){if(!ZZ(this)){if(ib(this.ads))throw sM(lZ);b_(this,this.ads[0]);if(null==this.G.b)throw rM(lZ);}};
h.ka=function(a,b){var c=ZZ(this)?Z(this):null;this.dispatchEvent(new OL(a,c,b))};
h.AC=function(){};
h.Mm=function(){};
h.destroy=function(){this.dispose()};
h.T=function(){ZZ(this)&&(dU(this.G,null),this.G=null);Nb(this.F);this.D=this.F=null;this.ea=!1;U.g?QQ(MQ(),this.qa):this.Ca&&(FW().D=null);YZ.M.T.call(this)};
h.ke=function(){return[]};
h.Bb=function(){return this.ads[0]};
h.init=function(a){j_(this);this.jj(a);this.Ha=!0;this.Bg();!U.g&&this.Ca&&(FW().D=this.qa)};
h.Bg=function(){this.ka("loaded")};
h.Lf=function(a){ZZ(this)&&U.b()&&oM(BV(Z(this)),a)};
h.Bt=r;
h.Qc=function(a,b,c){if(!this.ea){if(null==a)throw sM(AQ,null,"displayContainer");if(null!=c){var d=new yk(Yb(this.g)),e=Yb(c);a:{var f=d.contains;if("function"==typeof e.every)d=e.every(f,d);else if(fa(e)||w(e))d=Sk(e,f,d);else{for(var k=Fg(e),l=Eg(e),m=l.length,n=0;n<m;n++)if(!f.call(d,l[n],k&&k[n],e)){d=!1;break a}d=!0}}if(!d)throw sM(AQ,null,"opt_adsRenderingSettings should be instance of AdsRenderingSettings");d=this.g;if(null==c.bitrate||0>=c.bitrate)c.bitrate=-1;null==c.rh&&(c.rh=[]);Qja(c.rh);
if(!ha(c.Ud)||0>=c.Ud)c.Ud=15E3;kc(d,c)}this.content=b;this.A=a;this.qt();this.b=this.A.fj(Oja(this));this.ea=!0}};
h.se=function(a){a=JQ(qV(a),"rm")?a.J:BV(a);F(a,function(a){nb(this.B.C,a)},this)};
h.$d=function(a,b){F(b,function(b){b=pT(a,b);fT(this.B.o,b)},this)};
h.Fg=function(a){if(a instanceof sT){var b=tT(a);F(b.Ua(),function(a){var d=b.get(a);F(d,function(b){gT(this.B.o,a,b)},this)},this)}};
h.getCurrentTime=function(){return-1};
h.Vc=function(){return-1};
h.Rd=function(){return-1};
h.Za=function(){return null!=this.b?this.b.Za():!1};
h.Wc=function(a,b,c){this.jj(c)};
h.pause=r;h.resume=r;h.skip=r;h.muteAd=r;h.whyThisAdClicked=r;h.whyThisAdClosed=r;h.start=function(){j_(this);if(!this.Ha)throw rM(a_,null,"Must call init before start.");};
h.stop=function(){this.destroy()};
h.vg=function(){return null!=this.volume?this.volume:0};
h.setVolume=function(a){((0,window.isNaN)(a)||0>a||1<a)&&uM(this,AQ,null,"volume",String(a));this.volume=a};
h.jj=function(a){if(!Vb(nsa,a))throw sM(AQ,null,"view mode",a);this.H=a};
h.Fl=function(){return null};
h.Kq=function(){return null};
h.Gt=function(){return null};
h.hg=function(){return null};
h.Kf=function(){h_(this,"abandon")};
h.nz=function(){return{currentTime:this.getCurrentTime(),duration:this.Vc(),isPlaying:this.Za(),isVpaid:ZZ(this)&&null!=jW(Z(this)),isYouTube:U.b(),volume:this.vg()}};
h.SF=function(a){var b=rb(D$,Xb(F$));wb(b);F(b,function(b){var d=eT(a.b,b);ib(d)||this.Um(b,d)},this);
Mja(this.B,a.H)};
h.Um=function(a,b){F(b,function(a){gT(this.B.o,a.Fb(),a.b)},this)};z(m_,YZ);h=m_.prototype;h.start=function(){m_.M.start.call(this);this.A.Yc();this.J=this.A.Pd();if(null!=this.J){h_(this,"show_ad");Gf(this.J);var a=this.rp();U.g?Pfa(MQ(),a):Vha(FW(),a);this.J.appendChild(a);this.Gi();F(this.$,function(a){a()});
kb(this.$);this.N=!0}};
h.Wc=function(a,b,c){m_.M.Wc.call(this,a,b,c);this.Gi()};
h.T=function(){Nb(this.o);this.A=this.o=null;this.N=!1;U.g?MQ().B=null:FW().o=null;null!=this.J&&(Gf(this.J),this.J=null);m_.M.T.call(this)};
h.rp=function(){var a=Z(this).b;if(null==a)throw a=sM(lZ),o_(this,a),a;var b=Z(this);LT(a,e_(this));JT(a,this.wz);a.A||KT(a,qa(this.Vl,b,a));try{g_(this,b)}catch(d){throw o_(this,d),d;}this.se(b);var c=WT(b,this.b);this.B.b=c;b.b&&(this.se(b),(b=b.b)&&this.$d(b,bsa));this.$d(a,["start"]);n_(this,a);return this.zi([a.gc()])};
h.Lq=function(a,b){return new mZ(a[0],b)};
h.zi=function(a){null!=this.o&&this.o.stop();this.o=this.Lq(a,x(this.Oi,this));a=this.o.la();J(a,"autoalign",this.g.lp);U.b()&&J(a,"viewmode-fullscreen","fullscreen"==this.H);a.appendChild(this.ha);e_(this).O(a,"click",nc);(ZZ(this)&&rV(Z(this),$V)||this.g.du)&&this.Uk(this.o.b);return a};
h.Uk=function(a){var b=e_(this);this.ba=kR(Bja);b.O(this.ba,"click",this.Sz);var c=kR(Aja,{close:"\u0417\u0430\u043a\u0440\u044b\u0442\u044c"});b.O(c,"click",this.bj);I(a,"extra-padding");null!=this.ia&&728<=this.ia.cb()&&I(a,"wide-overlay-ad");a.appendChild(c)};
h.Gi=function(a,b){if(null!=this.o){var c=a?a:0,d=b?b:0,e=Zs(this.A.Pd()),f;f=U.b()?Zs(Nf(this.o.b)):Zs(this.o.b);if(f.width+c>e.width||f.height+d>e.height)throw c=sM(esa,null),o_(this,c),d={},d.pid=zW.getInstance().b,d.cz=f.width+"x"+f.height,d.sz=e.width+"x"+e.height,d.ct=Z(this).b.xc(),d.vm=this.H,UM(RM.getInstance(),38,d,!0),this.stop(),c;}};
h.wz=function(a){i_(this,"click");nc(a)};
h.bj=function(){h_(this,"close");this.Oi(!0)};
h.Vl=function(a,b){KT(b,r);this.N?this.Ch(a,b):this.$.push(x(this.Ch,this,a,b))};
h.Ch=function(a){a=WT(a,this.b);this.B.b=a;i_(this,"impression");h_(this,"creativeview");i_(this,"start")};
h.Oi=function(a){null!=this.o&&(this.o.stop(),null!=this.ba&&Jf(this.ba,this.o.b),a?this.ka("userClose"):this.ka("autoClose"))};
h.Sz=function(a){nc(a);this.o.show();this.o.play();Jf(this.o.b,this.ba);ee(function(){bt(this.ha,!1)},500,this);
bt(this.ha,!0);this.ka("userRecall")};z(p_,m_);h=p_.prototype;h.Lq=function(a,b){if(this.R||null==b)b=r;var c;U.b()&&this.R?c=new mZ(a[0],b):1<a.length?r_(this)||"fullscreen"==this.H&&U.b()?c=new qZ(a):(c=new pZ(a),c.L=15E3):c=new mZ(a[0],b);c.Nq=100;this.R&&(c.tr=30);c.ur=45E3;c.Ws=6E3;J(c.b,"scalable",this.R);J(c.la(),"yt-text-overlay",U.b()&&this.R);return c};
h.dG=function(a){var b=a.b;null!=b?(null==this.ga&&(this.ga=a.getExtension("AdSense").o),KT(b,qa(this.Vl,a,b)),JT(b,qa(this.xz,a,b)),"Text"==b.xc()&&(this.R=!0),this.L.push(b)):(b=rM(lZ),b=VT(b,a),oM(AV(a),b))};
h.Qc=function(a,b,c){p_.M.Qc.call(this,a,b,c);this.g.lp=!0;a=Z(this);ib(CV(a))?U.b()&&this.ka("companionBackfill"):g_(this,a)};
h.rp=function(){null==this.L&&(this.L=[],F(this.ads,this.dG,this));if(0==this.L.length)throw sM(lZ);var a=[];F(this.L,function(b){LT(b,e_(this));"Flash"!=b.xc()||b.ib().getExtension("TemplateAd")||(b.vp=!0);a.push(b.gc());Nga(b,this.ga.D)},this);
if(0==a.length)throw sM(lZ);Rja(this);return this.zi(a)};
h.start=function(){p_.M.start.call(this);!this.da&&r_(this)&&(this.da=!0,this.ka("contentPauseRequested"));null!=this.C&&this.C.start();if(this.N){var a=s_(this);UM(RM.getInstance(),33,a)}};
h.bj=function(a){p_.M.bj.call(this,a);F(this.L,function(a){var c=WT(a.ib(),this.b);this.B.b=c;this.$d(a,["close"]);h_(this,"close");this.B=new TZ},this)};
h.Oi=function(a){p_.M.Oi.call(this,a);r_(this)&&(null!=this.J&&Gf(this.J),this.da&&(this.da=!1,this.ka("contentResumeRequested")))};
h.zi=function(a){a=p_.M.zi.call(this,a);if(r_(this)){var b=qY(2);I(this.o.b,b);I(a,b)}return a};
h.Uk=function(a){if(r_(this)){var b=Pf(a);b&&((a=Lf(a)[0])&&Gs(a,{margin:"0 auto"}),a=this.ads[0].getExtension("AdSense").o||new UW,this.C=new SZ(b,a,2,q_(this),!0),e_(this).O(this.C,"skip",this.Xz),e_(this).O(this.C,"end",this.HA))}else p_.M.Uk.call(this,a),b=kR(Cja,q_(this)),a.appendChild(b)};
h.Vl=function(a,b){this.N?this.Ch(a,b):this.$.push(x(this.Ch,this,a,b));KT(b,r);this.ka("impression")};
h.Ch=function(a,b){var c=WT(a,this.b);this.B.b=c;this.se(a);this.$d(b,["creativeview"]);h_(this,"impression");h_(this,"creativeview");i_(this,"start");this.B=new TZ};
h.xz=function(a,b,c){c=Us(c);a=a.getExtension("AdSense");a=new L(a.A);var d=b.cb();(0,window.isNaN)(d)&&(d=Zs(b.gc()).width);var e=b.getHeight();(0,window.isNaN)(e)&&(e=Zs(b.gc()).height);b=ZL();b=["0","aw="+d,"ah="+e,"nx="+c.x,"ny="+c.y,"viewMode="+this.H,"sdkv=h.0.0.0","eids="+bM(b)];U.b()||(c=Zs(this.A.Pd()),d=this.C?Lja(this.C):new ff(-1,-1),b=b.concat(["bw="+c.width,"bh="+c.height,"sx="+d.x,"sy="+d.y]));lM(a,"elementclick",b);F(this.L,function(a){var b=WT(a.ib(),this.b);this.B.b=b;n_(this,a);
h_(this,"click");this.B=new TZ},this);
this.ka("click")};
h.jj=function(a){this.H!=a&&(p_.M.jj.call(this,a),this.ka("expandedChanged"))};
h.Gi=function(){p_.M.Gi.call(this,this.C?15:0,this.C?65:0)};
h.Xz=function(){t_(this,"skip")};
h.HA=function(){t_(this,"close")};z(u_,mc);var v_=["classid","data","movie","type","typemustmatch"];z(w_,by);h=w_.prototype;h.xi="sameDomain";h.setSize=function(a,b){this.G=w(a)?a:Math.round(a)+"px";this.D=w(b)?b:Math.round(b)+"px";this.la()&&Xs(x_(this),this.G,this.D);return this};
h.eg=function(){w_.M.eg.call(this);for(var a=this.la(),b=this.g.Ua(),c=this.g.Pa(),d=[],e=0;e<b.length;e++)d.push(va(b[e])+"="+va(c[e]));var b=d.join("&"),f;if(wf&&!Bc(11)){d=this.J;c={allowFullScreen:"true",AllowScriptAccess:this.xi,allowNetworking:"all",bgcolor:"#000000",FlashVars:b,quality:"high",SeamlessTabbing:"false",wmode:"window"};b={"class":"goog-ui-media-flash-object",id:this.getId(),name:this.getId()};Sja(b,c);e={allownetworking:"none",allowscriptaccess:"never",movie:d};d={};for(f in e)d[f]=
e[f];for(f in c){var k=f.toLowerCase();k in e&&delete d[k];d[f]=c[f]}c=[];for(f in d)c.push(Ye("param",{name:f,value:d[f]}));f=Ze({classid:"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"},{},b);f=Ye("object",f,c)}else f={AllowScriptAccess:this.xi,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:"window"},f=Ze({src:this.J,type:"application/x-shockwave-flash",pluginspage:"https://www.macromedia.com/go/getflashplayer"},
{allownetworking:"none",allowscriptaccess:"never"},f),f=Ye("embed",f);a.innerHTML=Pe(f);this.G&&this.D&&this.setSize(this.G,this.D);this.o.O(this.la(),Xb(Lra),nc)};
h.aj=function(){if(null!=this.K&&!(0<=Ra(jO,this.K)))throw Error("Method not supported");var a=this.F.createElement("DIV");a.className="goog-ui-media-flash";this.b=a};
h.T=function(){w_.M.T.call(this);this.g=null;this.o.dispose();this.o=null};z(y_,YZ);var osa=Me(ye(ze("https://imasdk.googleapis.com/flash/sdkloader/flashinhtml.swf")));Me(ye(ze("http://imasdk.googleapis.com/flash/sdkloader/flashinhtml.swf")));h=y_.prototype;h.T=function(){this.ba=!1;this.o&&(this.o.dispose(),this.N=null);fe(this.$);this.J&&this.ka("contentResumeRequested");this.ka("allAdsCompleted");y_.M.T.call(this)};
h.Rd=function(){var a=this.tc("getAdRemainingTime");return ha(a)?a:-1};
h.vg=function(){var a=this.tc("getAdVolume");return ha(a)?a:-1};
h.Qc=function(a,b,c){y_.M.Qc.call(this,a,b,c);this.J=Z(this).b instanceof sT};
h.init=function(a){y_.M.init.call(this,a);window[this.na]=x(this.NA,this);e_(this).O(FW(),E$,this.QA);this.o=new w_(osa);this.o.setSize(this.ia,this.da);this.o.xi="always";a=kW(Z(this));A(B(a))?(B_(this,I_,Error("Flash VPAID ad url is empty.")),this.stop()):(this.o.g.set("vpaid",a),this.o.g.set("vpaidEventHandler",this.na),this.A.Yc(),cy(this.o,this.A.Pd()),this.N=x_(this.o),this.$=ee(this.PA,this.g.Ud,this))};
h.start=function(){if(this.ba){y_.M.start.call(this);var a=Z(this);this.B.B=a.K;var b=WT(a);this.B.b=b;if(b=a.b)this.se(a),this.$d(b,D$),this.Fg(b),k_(this,a);this.A.Yc();h_(this,"show_ad");this.setVolume(this.L);this.C=new ce(250);e_(this).O(this.C,"tick",this.OA);this.J?this.ka("contentPauseRequested"):(this.ka("contentResumeRequested"),A_(this));this.C.start();this.tc("startAd")}else this.ha=!0};
h.stop=function(){this.Aa||(this.Aa=!0,this.tc("stopAd"),this.A.Df(),null!=this.C&&(this.C.stop(),this.C=null),y_.M.stop.call(this))};
h.Wc=function(a,b,c){y_.M.Wc.call(this,a,b,c);this.ia=a;this.da=b;this.tc("resizeAd",a,b,c)};
h.pause=function(){null!=this.C&&this.C.stop();this.tc("pauseAd")};
h.resume=function(){null!=this.C&&this.C.start();this.tc("resumeAd")};
h.setVolume=function(a){this.L=a;this.tc("setAdVolume",a)};
h.Bg=function(){};
h.kb=function(){return z_(this)};
h.skip=function(){this.tc("skipAd")};
h.Vc=function(){var a=this.tc("getAdDuration");if(ha(a))return a;a=this.Rd();return 0<=a?this.R/1E3+a:-2};
h.OA=function(){this.R+=250};
h.tc=function(a){if(!this.o||!this.N)return null;for(var b=[],c=0;c<arguments.length;c++)b.push(arguments[c]);var c=b.shift(),d=!1;this.ba&&(d=!0);if("handshakeVersion"==c||"initAd"==c)d=!0;if(d)try{if(null!=this.N[c])return this.N[c].apply(this.N,b)}catch(e){}return null};
h.QA=function(a){var b=a.type;if(gb(E$,b)){if("externalActivityEvent"==b&&(b=a.b.eventName,!F$[b]))return;i_(this,b)}};
h.PA=function(){B_(this,H$,null,(this.g.Ud/1E3).toString());this.stop()};
h.getCurrentTime=function(){return this.R/1E3};
h.NA=function(a,b){switch(a){case "flashReady":this.tc("handshakeVersion","2.0");var c=DV(Z(this));this.N.initAd(this.ia,this.da,this.H,this.g.bitrate,c);break;case "AdLoaded":fe(this.$);this.ba=!0;var c=this.tc("getAdCompanions"),d=w(c)?c:"",c=Z(this);ib(CV(c))&&(d=$X(d,c.b.b),ib(d)||oV(c,d));i_(this,"loaded");this.ha&&(this.ha=!1,this.start());break;case "AdStarted":h_(this,"impression");h_(this,"creativeview");this.ka("start");break;case "AdVideoStart":h_(this,"start");break;case "AdClickThru":b&&
b.playerHandles&&((c=b.url)||(c=B(WV(Z(this)))),null!=c&&jM(c));h_(this,"click");this.ka("click");break;case "AdDurationChange":this.ka("durationChange");break;case "AdRemainingTimeChange":this.ka("durationChange");A_(this);break;case "AdError":c="AdError";b&&(c=b.message);B_(this,I_,Error(c));this.stop();break;case "AdExpandedChange":this.ka("expandedChanged");break;case "AdImpression":c=Z(this);ib(CV(c))||g_(this,c);this.ka("impression");break;case "AdLinearChange":c=z_(this);!this.J&&c?(this.ka("contentPauseRequested"),
fe(this.ga)):this.J&&!c&&(this.ka("contentResumeRequested"),A_(this));this.J=c;d=this.G;d.ha=!0;d.ia=c;this.ka("linearChanged");break;case "AdVolumeChange":c=this.vg();c!=this.L&&(c!=this.L&&this.ka("volumeChange"),0==c&&0!=this.L?(h_(this,"mute"),this.ka("mute")):0==this.L&&0!=c&&h_(this,"unmute"),this.L=c);break;case "AdPaused":i_(this,"pause");break;case "AdUserClose":i_(this,"userClose");break;case "AdUserMinimize":h_(this,"collapse");break;case "AdVideoFirstQuartile":i_(this,"firstquartile");
break;case "AdVideoMidpoint":i_(this,"midpoint");break;case "AdVideoThirdQuartile":i_(this,"thirdquartile");break;case "AdVideoComplete":C_(this);break;case "AdUserAcceptInvitation":this.J?h_(this,"acceptinvitationlinear"):h_(this,"acceptinvitation");break;case "AdStopped":C_(this);h_(this,"stop");this.stop();break;case "AdSkipped":i_(this,"skip");break;case "AdSkippableStateChange":i_(this,"skippableStateChanged");break;case "AdPlaying":i_(this,"resume");break;case "AdLog":this.ka("log")}};z(D_,id);var psa=Me(ye(ze("https://imasdk.googleapis.com/flash/sdkloader/flashinhtml.swf")));Me(ye(ze("http://imasdk.googleapis.com/flash/sdkloader/flashinhtml.swf")));h=D_.prototype;h.dispose=function(){this.o&&(this.o.dispose(),this.b=null);window[this.g]&&delete window[this.g];fe(this.A)};
h.load=function(a,b,c,d){window[this.g]=x(this.FA,this);this.o=new w_(psa);this.o.setSize(b,c);this.o.xi="always";this.o.g.set("vpaid",a);this.o.g.set("vpaidEventHandler",this.g);cy(this.o,this.C);this.b=x_(this.o);this.A=ee(this.GA,d,this)};
h.EA=function(a){if(!this.b)return null;var b=Array.prototype.slice.call(arguments),c=b.shift();if(!this.B&&"handshakeVersion"!=c&&"initAd"!=c)return null;try{if(this.b[c])return this.b[c].apply(this.b,b)}catch(d){}return null};
h.FA=function(a,b){"AdLoaded"==a&&(fe(this.A),this.B=!0);this.dispatchEvent(new u_(a,b||null))};
h.GA=function(){this.dispatchEvent("loadError")};z(E_,YZ);h=E_.prototype;h.T=function(){this.ba=!1;null===this.o?this.ia&&this.dispatchEvent(new OL("destroyInsecureFlashVpaid",Z(this))):this.o.dispose();this.J&&this.ka("contentResumeRequested");this.ka("allAdsCompleted");E_.M.T.call(this)};
h.Rd=function(){var a=this.jc("getAdRemainingTime");return ha(a)?a:-1};
h.vg=function(){var a=this.jc("getAdVolume");return ha(a)?a:-1};
h.Qc=function(a,b,c){E_.M.Qc.call(this,a,b,c);this.J=Z(this).b instanceof sT};
h.init=function(a){E_.M.init.call(this,a);a=kW(Z(this));A(B(a))?(J_(this,Error("Flash VPAID ad url is empty.")),this.stop()):(e_(this).O(FW(),E$,this.MA),this.ia?this.dispatchEvent(new OL("initInsecureFlashVpaid",Z(this),{url:B(a)})):null===this.A.Pd()?(J_(this,Error("Container must be provided for flash VPAID.")),this.stop()):(this.A.Yc(),null===this.o&&(this.o=new D_(this.A.Pd())),e_(this).O(this.o,"loadError",this.bD),e_(this).O(this.o,"vpaidEventType",this.LA),this.o.load(a,this.ha,this.R,this.g.Ud)))};
h.start=function(){if(this.ba){E_.M.start.call(this);var a=Z(this);this.B.B=a.K;var b=WT(a);this.B.b=b;if(b=a.b)this.se(a),this.$d(b,D$),this.Fg(b),k_(this,a);this.A.Yc();h_(this,"show_ad");this.setVolume(this.L);this.C=new ce(250);e_(this).O(this.C,"tick",this.KA);this.J?this.ka("contentPauseRequested"):(this.ka("contentResumeRequested"),G_(this));this.C.start();this.jc("startAd")}else this.da=!0};
h.stop=function(){this.ga||(this.jc("stopAd"),this.A.Df(),null!=this.C&&(this.C.stop(),this.C=null),E_.M.stop.call(this),this.ga=!0)};
h.Wc=function(a,b,c){E_.M.Wc.call(this,a,b,c);if(null!==this.o){var d=this.o;d.o&&d.o.setSize(a,b)}this.ha=a;this.R=b;this.jc("resizeAd",a,b,c)};
h.pause=function(){null!=this.C&&this.C.stop();this.jc("pauseAd")};
h.resume=function(){null!=this.C&&this.C.start();this.jc("resumeAd")};
h.setVolume=function(a){this.L=a;this.jc("setAdVolume",a)};
h.Bg=r;h.kb=function(){return F_(this)};
h.skip=function(){this.jc("skipAd")};
h.Vc=function(){var a=this.jc("getAdDuration");if(ha(a))return a;a=this.Rd();return 0<=a?this.N/1E3+a:-2};
h.KA=function(){this.N+=250};
h.jc=function(a){if(this.ga)return null;for(var b=[],c=0;c<arguments.length;c++)b.push(arguments[c]);return this.ia?(c=b.shift(),this.dispatchEvent(new OL("callFlashVpaidMethod",Z(this),{methodName:c,args:b})),this.na[c]):null===this.o?null:this.o.EA.apply(this.o,b)};
h.MA=function(a){var b=a.type;if(gb(E$,b)){if("externalActivityEvent"==b&&(b=a.b.eventName,!F$[b]))return;i_(this,b)}};
h.bD=function(){J_(this,Error("Flash VPAID loader failed to load."));this.stop()};
h.getCurrentTime=function(){return this.N/1E3};
h.LA=function(a){var b=a.data;switch(a.b){case "flashVpaidMethodResults":b&&(this.na[b.methodName]=b.result);break;case "flashReady":this.jc("handshakeVersion","2.0");b=DV(Z(this));this.jc("initAd",this.ha,this.R,this.H,this.g.bitrate,b);break;case "AdLoaded":this.ba=!0;b=this.jc("getAdCompanions");a=w(b)?b:"";b=Z(this);ib(CV(b))&&(a=$X(a,b.b.b),ib(a)||oV(b,a));i_(this,"loaded");this.da&&(this.da=!1,this.start());break;case "AdStarted":h_(this,"impression");h_(this,"creativeview");this.ka("start");
break;case "AdVideoStart":h_(this,"start");break;case "AdClickThru":b&&b.playerHandles&&((b=b.url)||(b=B(WV(Z(this)))),b&&jM(b));h_(this,"click");this.ka("click");break;case "AdDurationChange":this.ka("durationChange");break;case "AdRemainingTimeChange":this.ka("durationChange");G_(this);break;case "AdError":a="AdError";b&&(a=b.message);J_(this,Error(a));this.stop();break;case "AdExpandedChange":this.ka("expandedChanged");break;case "AdImpression":b=Z(this);ib(CV(b))||g_(this,b);this.ka("impression");
break;case "AdLinearChange":b=F_(this);!this.J&&b?(this.ka("contentPauseRequested"),fe(this.$)):this.J&&!b&&(this.ka("contentResumeRequested"),G_(this));this.J=b;a=this.G;a.ha=!0;a.ia=b;this.ka("linearChanged");break;case "AdVolumeChange":b=this.vg();b!=this.L&&(this.ka("volumeChange"),0==b&&0!=this.L?(h_(this,"mute"),this.ka("mute")):0==this.L&&0!=b&&h_(this,"unmute"),this.L=b);break;case "AdPaused":i_(this,"pause");break;case "AdUserClose":i_(this,"userClose");break;case "AdUserMinimize":h_(this,
"collapse");break;case "AdVideoFirstQuartile":i_(this,"firstquartile");break;case "AdVideoMidpoint":i_(this,"midpoint");break;case "AdVideoThirdQuartile":i_(this,"thirdquartile");break;case "AdVideoComplete":H_(this);break;case "AdUserAcceptInvitation":this.J?h_(this,"acceptinvitationlinear"):h_(this,"acceptinvitation");break;case "AdStopped":H_(this);h_(this,"stop");this.stop();break;case "AdSkipped":i_(this,"skip");break;case "AdSkippableStateChange":i_(this,"skippableStateChanged");break;case "AdPlaying":i_(this,
"resume");break;case "AdLog":this.ka("log")}};h=K_.prototype;h.zl=function(){return this.b.zl()};
h.Yi=function(){return this.b.Yi()};
h.Pd=function(){return this.b.Pd()};
h.fj=function(a){return this.g?this.b.Zl():this.b.fj(a)};
h.setSize=function(a,b){this.b.setSize(a,b)};
h.ql=function(){return this.b.ql()};
h.gj=function(){return this.b.gj()};
h.$l=function(){return this.b.$l()};
h.hj=function(){return this.b.hj()};
h.Df=r;h.sh=r;h.Yc=r;h.Zl=function(){return this.b.Zl()};
h.Aq=r;z(L_,OL);N_.prototype.isListed=!0;z(Q_,uZ);var P_=Math.ceil(10*3.14);Q_.prototype.D=function(a){U.b()||a.stopPropagation();this.dispatchEvent("click")};
Q_.prototype.start=function(){Q_.M.start.call(this);null==this.b?this.stop():this.G&&(this.L&&780<=Zs(this.N).width&&this.G.Qq(!0),this.G.Pq())};
Q_.prototype.dm=function(a,b){var c=a/b*P_+" "+P_;null!=this.b&&Gs(this.b,"stroke-dasharray",c)};z(R_,G);R_.prototype.show=function(a,b){S_(this);IA&&a?(a.appendChild(this.o),this.b=ee(x(this.g,this,b),2E3)):b()};
R_.prototype.g=function(a){this.b=0;If(this.o);a()};
R_.prototype.T=function(){S_(this);R_.M.T.call(this)};z(T_,mc);z(U_,id);V_.prototype.muted=function(a,b){return!this.mute&&a||0!=this.volume&&0==b};
var Yja={click:3,videoLearnMoreClicked:3,videoShareClicked:8,videoTitleClicked:14,videoAuthorClicked:15,videoAuthorIconClicked:15};h=U_.prototype;h.T=function(){this.Kb();U_.M.T.call(this)};
h.Kb=function(){null!=this.g&&this.g.dispose();null!=this.b&&this.b.Kb();null!=this.C&&this.C.dispose();this.C=null;null!=this.F&&this.F.dispose();this.F=null;this.K.clear();this.G=-1;this.D="";this.H=this.L=!1};
h.wb=function(a,b,c,d){this.Kb();this.A.B=a.K;this.b=b;this.o=d||null;this.b.wb();this.B=new V_(this.b);this.J=c||null;this.g=new Cm(this);this.D=a.K;a=U.g?MQ():FW();this.g.O(a,"externalActivityEvent",this.$C);this.g.O(a,"measurable_impression",this.xD);this.g.O(a,"viewable_impression",this.rF);this.g.O(this.b,"timeUpdate",this.nB);this.g.O(this.b,"volumeChange",this.oB);this.g.O(this.b,"pause",this.kB);this.g.O(this.b,"play",this.lB);this.g.O(this.b,"end",this.WC);this.g.O(this.b,"beginFullscreen",
this.iB);this.g.O(this.b,"endFullscreen",this.ZC);this.g.O(this.b,"skip",this.Yq);this.g.O(this.b,"skipShown",this.Ds);this.g.O(this.b,"start",this.mB);this.g.O(this.b,"error",this.hB);this.g.O(this.b,"mediaLoadTimeout",this.jB);null!=this.o&&(this.g.O(this.o,"urlNavigationRequested",this.fF),this.g.O(this.o,"videoShareShown",this.qF),this.g.O(this.o,"skipshown",this.Ds),this.g.O(this.o,"skip",this.Yq),this.g.O(this.o,"PUBLISHER_INVOKED_SKIP",this.qE),this.g.O(this.o,"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.jz))};
h.xD=function(a){var b=a.b;this.A.F.measurable_impression=null!=b?b.viewabilityString:null;a.b.queryId==this.D&&W_(this,"measurable_impression",!0,!1)};
h.rF=function(a){a=a.b;a.queryId==this.D&&(this.A.F.viewable_impression=null!=a?a.viewabilityString:null,W_(this,"viewable_impression",!0,!0))};
h.$C=function(a){a=a.b;var b=F$[a.eventName];b&&a.queryId==this.D&&(this.A.F[b]=null!=a?a.viewabilityString:null,W_(this,b,!0,!0))};
h.nB=function(){var a=this.b.pd();if(-1!=a){this.b.cg(.25*a)&&W_(this,"firstquartile",!0,!0);this.b.cg(.5*a)&&W_(this,"midpoint",!0,!0);this.b.cg(.75*a)&&W_(this,"thirdquartile",!0,!0);var b=this.A,c=this.b.getCurrentTime();if(!Cg(b.g,"skip")){0>b.A&&(Cga(b.o,a),b.A=0);for(var a=eT(b.o,"progress"),d=b.A;d<a.length;d++){var e=a[d];if(iT(e.g)>c)break;b.A=d+1;kM(e.b,b.b)}}}X_(this)};
h.mB=function(){this.H=!0;W_(this,"impression",!0,!0);W_(this,"creativeview",!0,!0);null!=this.J||null!=this.o||this.g.O(this.b,"click",this.wm);null!=this.J&&(this.C=new TQ,this.g.O(this.C,"click",this.wm,!1),this.C.wb(this.J));null!=this.o&&(this.F=new TQ,this.g.O(this.F,"click",this.wm,!1),this.F.wb(this.o));W_(this,"start",!0,!0);(this.b.Ff()||0==this.b.Sd())&&W_(this,"mute",!1,!1)};
h.oB=function(){var a=this.b.Ff(),b=this.b.Sd(),c=this.B;c.mute&&!a||!a&&0==c.volume&&0<b?W_(this,"unmute",!1,!1):this.B.muted(a,b)&&W_(this,"mute",!1,!1);this.B.mute=a;this.B.volume=b};
h.kB=function(){this.b.ne()?Y_(this):this.b.Re()&&!this.b.jm()&&(this.B.paused=!0,W_(this,"pause",!1,!1))};
h.lB=function(){this.B.paused&&(this.B.paused=!1,W_(this,"resume",!1,!1))};
h.WC=function(){Y_(this)};
h.wm=function(){W_(this,"click",!1,!1)};
h.hB=function(){W_(this,"error",!1,!1)};
h.jB=function(){W_(this,"mediaLoadTimeout",!1,!1)};
h.Ds=function(){W_(this,"skipshown",!0,!1)};
h.jz=function(a){W_(this,a.type,!1,!1)};
h.fF=function(a){this.dispatchEvent(a)};
h.qF=function(){W_(this,"videoShareShown",!0,!1)};
h.Yq=function(){W_(this,"skip",!0,!1)};
h.qE=function(){W_(this,"skip",!0,!1)};
h.iB=function(){W_(this,"fullscreen",!1,!1)};
h.ZC=function(){W_(this,"exitfullscreen",!1,!1)};z(Z_,YZ);h=Z_.prototype;h.T=function(){c0(this);this.Ga.dispose();a0(this);F(this.ia.Pa(),fe);var a=!1;null!=this.A&&(a=this.A.gj(),this.A.Df(),this.A=null);this.$&&(this.$=!1,this.b.Re()||this.b.ne()||this.b.pause(),AM()&&!a&&(this.b.Gf(.001),this.b.load("","")),zM()&&this.b.Ef()&&!a&&this.b.kj(),this.ka("contentResumeRequested"),this.ka("allAdsCompleted"));Z_.M.T.call(this)};
h.muteAd=function(){U.b()&&(h_(this,"mute_interaction_url"),h_(this,"mute_url"),this.ka("MUTE_AD"),$_(this,function(){b0(this)}))};
h.whyThisAdClicked=function(){U.b()&&h_(this,"why_this_ad_url")};
h.whyThisAdClosed=function(){U.b()&&h_(this,"why_this_ad_got_it")};
h.Fh=function(){a0(this);Z_.M.Fh.call(this);ZZ(this)&&(this.B=new TZ,this.L=new U_(this.B),this.da=!1,this.ka("loaded"))};
h.Vm=function(a,b){a0(this);a.kb()&&b.kb()&&null==jW(b)&&null==kW(b)&&(Z_.M.Vm.call(this,a,b),ZZ(this)&&(this.B=new TZ,this.L=new U_(this.B),this.da=!1))};
h.Mm=function(a){Z_.M.Mm.call(this,a);null!=this.b&&this.b.bn(1)};
h.Np=function(a,b){b.preventDefault();this.ba||(this.ba=!0,i_(this,"video_card_endcap_action"));a&&(this.C.pause(),jM(a))};
h.Op=function(){$_(this,function(){d0(this,"video_card_endcap_dismiss")})};
h.az=function(){d0(this,"video_card_endcap_collapse")};
h.xB=function(a,b,c){var d=WQ(b);d&&(a.C=d);var e=a.getExtension("AdSense");null!=e&&null!=e.o&&e.o.g&&this.setVolume(0);if(this.g.eu){d=a.getExtension("AdSense");(e=this.Aa)||(e=null===b?!1:"modules"==(new L(b)).F().toLowerCase()||YQ(b));var e=e||null!=d&&d.F,d=dW(a)?null:gW(a),f;if(U.b()||IM())f=0;else{if(f=xM()){b:{for(f=0;f<this.ads.length;++f){var k;c:{k=this.ads[f];do if(rV(k,$V)){k=!1;break c}while(k=k.g);k=!0}if(!k){f=!1;break b}}f=xM()}f=!f||null==this.A||!this.A.ql()}f=f||lW(a)||this.g.wn}if(f||
!U.b()&&e)this.g.un=!0,this.g.wn=!0;if(U.b()||this.g.wn){f=A(B(WV(a)))?!1:this.g.un;k=ZL().b.Z("enable_instream_ad_badge");var l=this.g,m=U.b()||!1,n=U.b(),d=QZ(e,a.C,d,l);d.A=f;d.N=l.EG;d.R=m;d.L=!0;d.J=n;d.g=k;d.B=l.tn;d.aa=l.vn;d.$=l.FG;d.da=0;l.tn&&(d.zg="\u0421\u0430\u0439\u0442 \u0440\u0435\u043a\u043b\u0430\u043c\u043e\u0434\u0430\u0442\u0435\u043b\u044f")}else yV(a)?(f=a.C,!A(B(f))&&null!==d&&0<iT(d)&&(e=!0),d=QZ(e,f,d,this.g),d.H=e?qga:pga):(d=QZ(e,a.C,d,this.g),d.ba=!1,d.D=!1,d.b=!1);e=
d;f=this.A.Yi();null===f?f=window.document.body:Gf(f);k=Z(this);l=1E3*bU(k);m=k.getExtension("why_this_ad");n=k.getExtension("mute");e.C=new MZ(m,n);FZ(e.C)&&(m=null!=m?m.A:void 0,n="<span class='videoAdUiAdSettingsShortTooltip'>",n=m?n+Y(m):n+"Click for Ad Settings",m=qR(n+"</span>"),e.de=m);this.o=new HZ(e,f,l);f=k.C;null!=f&&(e0(this),e.$&&w0(this,f));e=this.o;e.K&&(e=e.K,f=0==this.R,e.b!=f&&(e.b=f,wZ(e)));this.Aa&&(f=a.getExtension("AdSense"),null!=f?(e=this.o,f=B(f.g),null!=e.F&&(bt(e.F,!0),
f=new L(f),f=(f.g+f.o).replace(/^www\./i,""),A(B(f))?JZ(e):Sf(e.F,f)),null!=e.N&&bt(e.N,!0)):JZ(this.o));e=[];d.D&&e.push("adAttribution");d.b&&e.push("countdown")}else d&&this.g.Sk&&(e0(this),w0(this,d));if(d=this.b)this.L.wb(a,this.b,this.A.zl(),this.o),e_(this).O(this.L,"engagedview urlNavigationRequested videoAuthorIconClicked videoAuthorClicked videoClicked videoLearnMoreClicked videoMuteClicked videoShareClicked videoShareShown videoTitleClicked videoUnmuteClicked start".split(" "),this.Js),
e_(this).O(this.b,"loaded",this.oF),e_(this).O(this.b,"cardsStateChange",this.RA),e_(this).O(this.b,"timeUpdate",this.Ls),e_(this).O(this.b,"volumeChange",this.UA),e_(this).O(this.b,"shareClicked",this.At),this.se(a),e=WT(a,this.b),this.B.b=e,e=a.b,null!=e&&e instanceof sT&&(this.$d(e,D$),this.Fg(e),e=e_(this),Em(e,this.L,"error",this.SA,this),Em(e,this.L,"mediaLoadTimeout",this.TA,this)),k_(this,a),a.isSkippable()&&(this.L.G=30),d.Gh(aka(this,a)),d.load(b,c)};
h.GF=function(a,b,c){null!==a.F&&UM(RM.getInstance(),34,{evt:"filled"},!0);this.na||(this.na=!0,this.ka("contentPauseRequested"));this.xB(a,b,c);this.$=!0;this.setVolume(this.R);this.o&&(A(B(h0(a)))?(b=this.o,null!=b.B&&(b.o.sa(b.B,"click",b.Xj),Gs(b.B,"cursor","default"))):(b=this.o,null!=b.B&&(b.o.O(b.B,"click",b.Xj),null!=b.L&&!ct(b.L)&&Gs(b.B,"cursor","pointer"))),b=a.b.gb,ib(b)||Jja(this.o,b),this.o.show());h_(this,"show_ad");this.A.sh();try{g_(this,a)}catch(d){m0(this,f_,d);return}zW.getInstance().end("pi");
zW.getInstance().start("bt");this.Ga.show(this.A.Yi(),x(this.b.play,this.b))};
h.Bg=function(){bka(this);this.ka("loaded");this.dispatchEvent(new L_(Z(this)))};
h.skip=function(){ZZ(this)&&Z(this).isSkippable()&&(null!=this.o?this.o.skip():(h_(this,"skip"),v0(this)))};
h.Bt=function(){i_(this,"skipshown")};
h.start=function(){Z_.M.start.call(this);zW.getInstance().start("pi");this.ga=[];try{var a=Z(this);this.J=j0(this,a);$_(this,x(Z_.prototype.GF,this,a,this.J.g,this.J.b))}catch(b){l0(this,b),this.Fh(),ZZ(this)?(tM(sM,this,p0,b,void 0),this.start()):(this.$?tM(sM,this,p0,b,void 0):(null!=this.D&&this.D.th(pW()),uM(this,p0,b)),this.stop())}};
h.vg=function(){j_(this);return this.b.Ff()?0:this.b.Sd()};
h.setVolume=function(a){j_(this);this.$?this.b.setVolume(a):this.R=a};
h.pause=function(){j_(this);this.C?this.C.pause():this.b.pause()};
h.resume=function(){j_(this);this.C?this.C.play():this.b.play()};
h.getCurrentTime=function(){j_(this);var a=this.C?this.C.o:0;return this.b.getCurrentTime()+a};
h.Vc=function(){j_(this);var a=ZZ(this)?iW(Z(this)):0;return this.b.pd()+a};
h.Rd=function(){j_(this);var a=this.Vc(),b=this.getCurrentTime();return 0<=a&&0<=b?Math.max(0,a-b):-1};
h.hg=function(){return this.b.hg()};
h.SA=function(){this.b.getError();m0(this,p0,sM(p0,this.b.getError()))};
h.TA=function(){fka(this);m0(this,H$,sM(H$,null,(this.g.Ud/1E3).toString()))};
h.Um=function(a,b){Z_.M.Um.call(this,a,b);r0(this,a)};
h.Js=function(a){switch(a.type){case "start":mka(this);Oha();this.ka("start");Pja(this);break;case "impression":this.ka("impression");break;case "why_this_ad_url":this.Ja=this.b.Re();k0(this,"why_this_ad_url");this.pause();break;case "pause":this.ka("pause");break;case "why_this_ad_got_it":k0(this,"why_this_ad_got_it");this.Ja||this.resume();break;case "resume":this.ka("resume");break;case "firstquartile":this.ka("firstquartile");break;case "midpoint":this.ka("midpoint");break;case "thirdquartile":this.ka("thirdquartile");
break;case "complete":$ja(this)||(this.ka("complete"),h_(this,"instreamAdComplete"),b0(this));break;case "click":this.o&&this.o.b.A?this.b.Re()?this.resume():this.pause():q0(this);break;case "engagedview":s0(this);this.ka("engagedview");break;case "urlNavigationRequested":this.dispatchEvent(a);break;case "videoAuthorIconClicked":y0(this);break;case "videoAuthorClicked":y0(this);break;case "videoClicked":this.ka("videoClicked");break;case "videoLearnMoreClicked":this.C&&!this.ba&&(this.ba=!0,i_(this,
"video_card_endcap_action"));this.b.pause();aM(ZL(),41351017)&&s0(this);q0(this);break;case "videoShareClicked":ika(this);break;case "videoShareShown":jka(this);break;case "videoTitleClicked":kka(this);break;case "videoMuteClicked":this.ma=this.R;this.setVolume(0);break;case "videoUnmuteClicked":this.setVolume(this.ma);break;case "skipshown":this.ka("skippableStateChanged");break;case "skip":this.C?this.Op():v0(this);break;case "MUTE_AD":this.ka("MUTE_AD"),$_(this,function(){b0(this)})}};
h.Kf=function(){Z_.M.Kf.call(this);this.N&&(Nb(this.N),this.N=null)};
h.At=function(){var a=t0(this)||u0(this);null!=a&&lM(a,"sharebuttonclicked")};
h.se=function(a){Z_.M.se.call(this,a);r0(this,"impression")};
h.$d=function(a,b){Z_.M.$d.call(this,a,b);F(b,function(a){r0(this,a)},this)};
h.Fg=function(a){Z_.M.Fg.call(this,a);a instanceof sT&&(a=tT(a),F(a.Ua(),function(a){r0(this,a)},this))};
h.Kq=function(){if(!ZZ(this))return null;try{return j0(this,Z(this)).g}catch(a){return null}};
h.Fl=function(){if(!ZZ(this))return null;var a=Z(this);if(!d_(a))throw sM(i0);a=a.b.L;return ib(a)?null:a[0].g};
h.oF=function(){this.ka("adCanPlay")};
h.RA=function(){var a=this.o;null!=a.g&&J(a.g,"ytp-iv-drawer-open",this.b.Oq())};
h.Ls=function(){var a=this.Vc(),b;j_(this);b=this.C?this.Vc():this.b.im();var c=this.getCurrentTime(),d=0,e=0;ZZ(this)&&(e=Z(this),d=e.A.g,e=e.A.o);if(null!=this.o&&0<=a&&0<=c){if(!this.ha&&3==Z(this).Ca){var f=this.b.pd(),k=Z(this),f=Math.abs(f-(null!=k.b?k.b.H:-1));2<f&&(f=sM(gsa,null,Number(f).toFixed(2)),f=VT(f,Z(this),this.b),k=AV(Z(this)),oM(k,f));this.ha=!0}this.o.update(c,b,a,d,e)}};
h.UA=function(){var a=this.b.Sd();if(a!=this.R&&(this.R=a,this.ka("volumeChange"),0==a&&this.ka("mute"),this.o)){var b=this.o;b.K&&(b=b.K,a=0==a,b.b!=a&&(b.b=a,wZ(b)))}};
h.yz=function(a){var b=a.b;if("companion-setup-complete"==b.data){a=Z(this);var c=(0,window.encodeURIComponent)(B(WV(a)))+","+(0,window.encodeURIComponent)((t0(this)||u0(this)).toString());b.source.postMessage(c,"*");b=b.source.frameElement;b.parentNode.style.cssText="";b.width=370;b.height=null!=WV(a)?210:185}else"pause-video"==b.data&&this.pause()};z(z0,mc);z(A0,YZ);h=A0.prototype;
h.init=function(a){A0.M.init.call(this,a);this.na=ee(this.WA,this.g.Ud,this);e_(this).O(window,"message",this.tF);e_(this).O(this.ga,"tick",this.IF);a=U.g?MQ():FW();e_(this).O(a,E$,this.VA);if(this.L)this.dispatchEvent(new z0(0,this.ba));else{a=jW(Z(this));if(/\.html(\?.*)?$/.test(a)){if(a.match("//s0.2mdn.net/instream/html5/survey/survey.html")){var b="ru".replace("-","_");a=a.replace(".html","_"+b+".html");null!=this.g.sg&&(a=ah(a,"v",this.g.sg));U.b()&&(b=Yg(a,"st"),b=oka(this,b?b+" yt":"yt"),
a=ah(a,"st",b))}a=B(a)}else{var b=new L(a),c=new L("http://tpc.googlesyndication.com/pagead/js/loader12.html");"https"==b.A&&bh(c,"https");this.Ja=b.g;a=fh(c,a||"",void 0).toString()}this.J=K("IFRAME",{src:iM(a),allowtransparency:!0,background:"transparent",style:"border:0; opacity:1; margin:0; overflow:hidden;padding:0; width:100%; height:100%;position: absolute;display:none;"});e_(this).O(this.J,"load",this.Uy);this.A.Pd().appendChild(this.J)}};
h.Qc=function(a,b,c){A0.M.Qc.call(this,a,b,c);this.C=Z(this).b instanceof sT;this.o=a.fj(!1);this.L||(e_(this).O(this.o,"click end error loaded mediaLoadTimeout pause play timeUpdate volumeChange".split(" "),this.vE),e_(this).O(this.o,tS,this.yC))};
h.stop=function(){this.ga.stop();this.A.Df();A0.M.stop.call(this)};
h.kb=function(){return 1==this.C};
h.start=function(){A0.M.start.call(this);if(!U.b()){var a={};a.pid=zW.getInstance().b;a.dn=this.Ja;a["if"]=this.L;UM(RM.getInstance(),29,a,!0)}a=Z(this);this.B.B=a.K;var b=WT(a,this.o);this.B.b=b;if(b=a.b)this.se(a),this.$d(b,D$),this.Fg(b),k_(this,a);this.o.wb();h_(this,"show_ad");this.A.Yc();null!=this.J&&(this.J.style.display="block");this.o.setVolume(this.N);this.Ga=!0;this.C&&this.ka("contentPauseRequested");F0(this)};
h.Wc=function(a,b,c){A0.M.Wc.call(this,a,b,c);D0(this,"resizeAd",{width:a,height:b,viewMode:c})};
h.pause=function(){this.R||D0(this,"pauseAd")};
h.resume=function(){this.R&&D0(this,"resumeAd")};
h.setVolume=function(a){this.N=a;A0.M.setVolume.call(this,a);D0(this,"setAdVolume",{value:a})};
h.T=function(){this.L&&this.dispatchEvent(new z0(0,this.ba));If(this.J);this.C&&(!this.ma||this.o.Re()||this.o.ne()||this.o.pause(),this.ka("contentResumeRequested"));this.ka("allAdsCompleted");this.ia=!1;this.da=[];fe(this.na);this.ga.dispose();A0.M.T.call(this)};
h.Bg=function(){};
h.Uy=function(){if(!this.L){var a=this.o.Xi();ib(a)&&(a=this.g.rh);D0(this,"wrapperCall",{messageType:"supportedMimeTypes",supportedMimeTypes:a})}C0(this)};
var nka={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"};h=A0.prototype;
h.tF=function(a){a=a.b;if(this.L){if(a=iS(a.data),null!=a){try{var b=bg(a.data)}catch(c){return}null!=b&&b.session==this.ba&&G0(this,b)}}else if(a.source==this.J.contentWindow){try{b=bg(a.data)}catch(c){return}b.session==this.ba&&G0(this,b)}};
h.WA=function(){E0(this,H$,null,(this.g.Ud/1E3).toString());this.stop()};
h.VA=function(a){var b=a.type;if(gb(E$,b)){if("externalActivityEvent"==b&&(b=a.b.eventName,!F$[b]))return;i_(this,b)}};
h.vE=function(a){switch(a.type){case "timeUpdate":a=this.o.pd();var b=this.o.getCurrentTime();B0(this,"wrapperCall",{messageType:"timeupdate",duration:a,currentTime:b});break;case "end":H0(this,"ended");break;case "loaded":H0(this,"loadstart");break;case "mediaLoadTimeout":H0(this,"stalled");break;case "play":H0(this,"playing");break;default:H0(this,a.type)}};
h.yC=function(a){a=a.type;"loadedmetadata"==a?(a=this.o.pd(),B0(this,"wrapperCall",{messageType:"loadedmetadata",duration:a})):H0(this,a)};
h.getCurrentTime=function(){return-1==this.Vc()||-1==this.Rd()?-1:this.Vc()-this.Rd()};
h.Vc=function(){return this.$};
h.Rd=function(){return this.ha};
h.Za=function(){return!this.R};
h.IF=function(){D0(this,"getAdRemainingTime")};z(I0,id);h=I0.prototype;h.init=function(a,b,c){J0(this,a,b,c);null==this.F&&(this.F=new Cm(this),Em(this.F,this.K,"adsLoaderSdkAdError",this.OB,this));Q0(this)};
h.start=function(){this.L=!0;M0(this);0<this.o.length?V0(this):("always"==U.o&&null!=this.ba&&this.ba.th(pW()),tM(rM,this,jU,void 0,void 0),0==this.Ec&&this.dispatchEvent("contentResumeRequested"),W0(this))};
h.destroy=function(){null!=this.F&&(this.F.dispose(),this.F=null);S0(this);Y0(this);U.o=this.aa;this.L=!1};
h.Bb=function(){return this.g<this.o.length?this.o[this.g].b[0]:null};
h.Za=function(){return this.L};
h.pause=function(){null!=this.b&&this.b.pause()};
h.resume=function(){null!=this.b&&this.b.resume()};
h.skip=function(){null!=this.b&&this.b.skip()};
h.Kf=function(){null!=this.b&&this.b.Kf()};
h.getCurrentTime=function(){return null!=this.b?this.b.getCurrentTime():-1};
h.setVolume=function(a){null!=a&&(this.N=a,null!=this.b&&this.b.setVolume(this.N))};
h.Hr=function(a){U.o=this.aa;var b=a.A;ib(b)?this.D++:(a=a.o,a.b&&F(b,function(a){a.gb=!1},this),this.R=qka(this,b),nb(this.o,new $ha(b,a.b,a.g)),this.D++,this.F.sa(this.K,"adsLoaderSdkAdLoaded",this.Hr,!1,this));
Q0(this)};
h.OB=function(){U.o=this.aa;tM(rM,this,jU,void 0,void 0);this.D++;if(!K0(this)||2<=this.o.length-this.g){var a=rM(jU);this.dispatchEvent(new NL(a))}Q0(this)};
h.QD=function(){S0(this);Y0(this);W0(this)};
h.PB=function(a){a=a.getError().jb();try{var b={};b.ec=a;UM(RM.getInstance(),44,b)}catch(c){}this.g++;V0(this)};
h.DA=function(){this.dispatchEvent("userClose")};
h.AA=function(){this.dispatchEvent("autoClose")};
h.CA=function(){this.g++;V0(this)};
h.BA=function(){this.ha||(this.dispatchEvent("contentPauseRequested"),this.ha=!0)};
h.Ir=function(a){if("impression"==a.type)try{UM(RM.getInstance(),44,{imp:!0})}catch(b){}"vpaidEvent"!=a.type&&rka(this,a.type,a.ib());this.dispatchEvent(a)};z(Z0,mc);z($0,id);h=$0.prototype;h.wb=function(){this.g||(null==this.A&&(this.A=new Cm(this)),this.A.O(this.b,"currentTimeUpdate",this.Bq,!1),this.A.O(this.b,"contentWrapperError",this.$D,!1));this.b.start();this.g=!0};
h.getCurrentTime=function(){return this.b.currentTime};
h.Kb=function(){null!=this.A&&(this.A.dispose(),this.A=null);this.b.stop();this.g=!1};
h.Bq=function(){if(this.g){var a=this.b.currentTime;if((0,window.isNaN)(a)||0>a)c1(this);else{var b=vka(this,a);this.B?F(b,function(a){b1(this,!0,a)},this):b1(this,!0,$a(b));
b1(this,!1,wka(this,a))}}};
h.$D=function(){c1(this)};z(d1,G);d1.prototype.g=function(){return this.b};z(jZ,YZ);h=jZ.prototype;
h.Qc=function(a,b,c){null!=this.C&&(this.C.Kb(),this.C.dispose(),this.C=null);jZ.M.Qc.call(this,a,b,c);a=this.N.b.Ua();b=new CS(b);var d=4;c&&0<=c.Sm&&(d=c.Sm);this.Aa=null!=c?c.Ps:0;this.C=new $0(b,a,{prefetch:d});yka(this,a);a=this.N.b.Ua();zka(this,a);null!=this.C&&(i1(this),c=e_(this),Em(c,this.C,["requestAds","playAds","contentTrackingError"],this.handleEvent,this),Em(c,this.C,"adBreakReady",this.NB,this),Em(c,this.$,"contentComplete",this.HC,this),this.$.b=!1);this.K.get(0);try{c={cfg:!0},c.ads=
this.ma,UM(RM.getInstance(),44,c)}catch(e){}};
h.init=function(a){jZ.M.init.call(this,a);this.C.wb();this.C.Bq();a=ha(0)&&!(0,window.isNaN)(0)?this.N.b.get(0,[]):[];ib(a)&&this.ka("contentResumeRequested")};
h.Bg=function(){this.ke();this.dispatchEvent(new L_(null))};
h.destroy=function(){this.dispose()};
h.T=function(){this.$.b=!0;if(0<this.K.Pb()){var a=this.K.Pa();F(a,this.dg,this);this.K.clear()}i1(this);k1(this);null!=this.A&&(this.A.Df(),this.A=null);jZ.M.T.call(this)};
h.stop=function(){null!=this.o&&(this.dg(this.o),this.ij())};
h.Wc=function(a,b,c){jZ.M.Wc.call(this,a,b,c);this.ha=a;this.ga=b;this.H=c;null!=this.o&&J0(this.o,this.ha,this.ga,this.H)};
h.pause=function(){null!=this.o&&this.o.pause()};
h.resume=function(){null!=this.o&&this.o.resume()};
h.skip=function(){null!=this.o&&this.o.skip()};
h.Kf=function(){null!=this.o&&this.o.Kf()};
h.setVolume=function(a){jZ.M.setVolume.call(this,a);null!=this.o&&this.o.setVolume(a)};
h.getCurrentTime=function(){return null!=this.o?this.o.getCurrentTime():-1};
h.Vc=function(){var a;null!=this.o?(a=this.o,a=null!=a.b?a.b.Vc():-1):a=-1;return a};
h.Rd=function(){var a;null!=this.o?(a=this.o,a=null!=a.b?a.b.Rd():-1):a=-1;return a};
h.ke=function(){return this.N.b.Ua()};
h.Bb=function(){return null!=this.o?this.o.Bb():null};
h.qt=function(){};
h.handleEvent=function(a){"contentTrackingError"!=a.type&&(ko(this.ba,a),j1(this))};
h.JA=function(){this.ka("userClose")};
h.IA=function(){this.ka("autoClose")};
h.dg=function(a){a.destroy();this.K.remove(a.Ec);this.o=null;null!=this.F&&(this.F.sa(a,X0,this.dispatchEvent,!1,this),this.F.sa(a,"adError",this.Wp,!1,this),this.F.sa(a,"allAdsCompleted",this.Br,!1,this),this.F.sa(a,"contentPauseRequested",this.Jq,!1,this),this.F.sa(a,"contentResumeRequested",this.ij,!1,this),this.F.sa(a,"adBreakInitialized",this.Cr,!1,this))};
h.HC=function(a){this.da=!0;-1==this.L?a.b=!1:U.b()&&!f1(this)||g1(this);uka(this.C)};
h.NB=function(a){var b=a.b;a=0==b;var c=-1==b;this.R?(a?this.ka("contentResumeRequested"):!c||U.b()&&!f1(this)||g1(this),this.R=!1):(c?ee(function(){var a=this.K.get(b);a&&this.dg(a);U.b()&&!f1(this)||g1(this)},500,this):a&&ee(function(){this.ka("contentResumeRequested")},100,this),a={},a.adBreakTime=b,this.dispatchEvent(new OL("adBreakReady",null,a)))};
h.Wp=function(a){var b=a.getError(),c=b.jb();try{var d={};d.ec=c;UM(RM.getInstance(),44,d)}catch(e){}U.b()&&b&&"adLoadError"==b.Fb()&&this.dispatchEvent(a)};
h.Br=function(a){this.dg(a.target);(f1(this)||!U.b()&&this.da)&&g1(this);this.J=null;j1(this)};
h.Jq=function(){var a=this.C;a.b.stop();a.g=!1;this.ka("contentPauseRequested")};
h.ij=function(){this.ka("contentResumeRequested");this.na||a1(this.C);this.J=null};
h.Cr=function(a){this.J=null;a=a.target;var b={};b.adBreakTime=a.Ec;this.dispatchEvent(new OL("prefetched",a.Bb(),b));j1(this)};
h.ka=function(a){var b=null;null!=this.o&&(b=this.o.Bb());this.dispatchEvent(new OL(a,b))};
h.Gt=function(a,b){return this.ia=new d1(a,b)};z(l1,id);l1.prototype.T=function(){null!=this.b&&(this.b.sa("adsManagerLoaded",this.dispatchEvent),this.b.sa("adError",this.dispatchEvent),this.b.sa("adLoadError",this.dispatchEvent),this.b=null);l1.M.T.call(this)};z(n1,eJ);h=n1.prototype;h.yd=function(){G9(this.app,!0,this.playerType);S4(this.app,this.playerType)};
h.pauseVideo=function(){this.app.pauseVideo(this.playerType)};
h.zd=function(a,b,c){G9(this.app,!0,this.playerType);var d=this.app,e=this.playerType;d.seekTo(d.getCurrentTime()+a,b,c,e)};
h.seekTo=function(a,b){G9(this.app,!0,this.playerType);this.app.seekTo(a,b,void 0,this.playerType)};
h.hk=function(){U9(this.app)};z(o1,eq);o1.prototype.getAdState=function(){return-1};p1.prototype.reset=function(){ZC(this.b)};
p1.prototype.g=function(a,b){RC(a,b,this.b)};
p1.prototype.info=function(a,b){SC(a,b,this.b)};
(function(){var a=window.document;if(a&&"hidden"in a)return"hidden";var b=Es();return b?(b=b.toLowerCase(),b+=Xa("hidden"),!p(a)||b in a?b:null):null})();var r1=[2,5];z(H1,G);H1.prototype.T=function(){H1.M.T.call(this);this.b.b()};
H1.prototype.D=function(){this.o++;var a=q("yt.www.watch.ads.isAfcAdVisible");a&&ia(a)&&a()&&this.B++;this.B>=this.C?this.b.g():5<=this.o?this.b.b("Timed out waiting for MPU to become visible"):this.g.start()};var R1,J1=!1,M1=!1,I1=!1;ej("showCompanionAdLoaded",function(){M1&&(N1(),M1=!1)});
ej("watchAdsInit",function(){J1&&(J1=!1,K1())});var Jka={hK:0,fK:1,eK:2,gK:3,dK:4,ZJ:5,bK:6,cK:7,aK:8,YJ:9,kK:10,XJ:11,$J:12,WJ:13,iK:14,VJ:15,jK:16},Kka={MM:0,NM:1,PM:2,OM:3,KM:4,LM:5,GL:6};z(U1,pk);h=U1.prototype;h.cancel=function(){this.A&&(this.A=!1,this.X("dragend",0,0,null));this.o&&(this.o=!1,this.X("hoverend",0,0,null),Hx(this.b),T1(this))};
h.qu=function(a){Hx(this.b);this.b.S(this.g,V1("move"),this.ou);this.b.S(this.g,V1("out"),this.pu);this.b.S(this.g,"touchstart",this.Gn);this.C&&this.b.S(this.g,V1("down"),this.Fn);var b=om(a);a=rm(a);this.o=!0;this.X("hoverstart",a.x,a.y,b);this.X("hovermove",a.x,a.y,b)};
h.ou=function(a){var b=om(a);a=rm(a);if(this.B){var c=qm(this.B),d=rm(this.B);d.x==a.x&&d.y==a.y&&c==b||this.X("hovermove",a.x,a.y,b)}else this.X("hovermove",a.x,a.y,b);this.B=null};
h.pu=function(a){var b=rm(a),c=qm(a);c&&Qf(this.D,c)?(this.B=a,this.X("hovermove",b.x,b.y,c)):(Hx(this.b),T1(this),this.o=!1,this.X("hoverend",b.x,b.y,c))};
h.HB=function(a){this.qu(a);this.Fn(a)};
h.Fn=function(a){if(!ha(a.button)||0==a.button){Hx(this.b);this.b.S(window.document,V1("move"),this.GB);this.b.S(window.document,V1("up"),this.PG);var b=om(a);if(Cc)this.b.S(this.g,"dragstart",this.Yy);else if(sm(a),(cB||Ds)&&b)a:{for(var c=b;c;){if(Wf(c)||"-1"===c.getAttribute("tabindex")){c.focus();break a}c=c.parentElement}window.document.activeElement.blur()}this.A=!0;a=rm(a);this.X("dragstart",a.x,a.y,b);this.X("dragmove",a.x,a.y,b)}};
h.Yy=function(a){sm(a)};
h.GB=function(a){var b=om(a);b==window.document&&(b=null);a=rm(a);this.X("hovermove",a.x,a.y,b);this.X("dragmove",a.x,a.y,b)};
h.PG=function(a){Hx(this.b);this.A=!1;var b=pm(a),c=om(a);a=rm(a);b&&Qf(this.D,b)?(this.b.S(this.g,V1("move"),this.ou),this.b.S(this.g,V1("out"),this.pu),this.b.S(this.g,V1("down"),this.Fn),this.b.S(this.g,"touchstart",this.Gn),this.X("dragend",a.x,a.y,c)):(T1(this),this.o=!1,this.X("dragend",a.x,a.y,c),this.X("hoverend",a.x,a.y,c))};
h.Gn=function(a){var b=a.changedTouches[0];b&&(Hx(this.b),this.b.S(this.g,"touchmove",this.QG),this.b.S(this.g,"touchend",this.ru),this.b.S(this.g,"touchcancel",this.ru),this.F=b.identifier,a=om(a),this.o||(this.o=!0,this.X("hoverstart",b.pageX,b.pageY,a)),this.X("hovermove",b.pageX,b.pageY,a),this.C&&(this.A=!0,this.X("dragstart",b.pageX,b.pageY,a),this.X("dragmove",b.pageX,b.pageY,a)))};
h.QG=function(a){var b=W1(this,a);b&&(sm(a),a=om(a),this.X("hovermove",b.pageX,b.pageY,a),this.C&&this.X("dragmove",b.pageX,b.pageY,a))};
h.ru=function(a){var b=W1(this,a);if(b){Hx(this.b);T1(this);this.o=!1;var c=om(a);this.C&&(this.G||sm(a),this.A=!1,this.X("dragend",b.pageX,b.pageY,c));this.X("hoverend",b.pageX,b.pageY,c)}};
h.T=function(){this.C&&(Cc&&this.D.removeAttribute("draggable"),this.D.style.removeProperty("touch-action"));Hx(this.b);U1.M.T.call(this)};a2.prototype.update=function(a,b,c,d){this.width=b;this.o=c;this.B=d;this.b=b-c-d;this.A=af(a-c,0,this.b);this.position=this.A+c;this.g=this.A/this.b};z(c2,pk);h=c2.prototype;h.ed=function(){return this.adSystem+"_"+this.adType};
h.Oe=function(){return this.ed()};
h.Bb=function(){return this.g?this.g.Bb():null};
h.Yp=v;h.xl=v;h.Vn=v;h.show=v;h.nk=r;z(e2,R);e2.prototype.T=function(){e2.M.T.call(this);this.b&&(g2(this.o.app,this.b),this.b=null);h2(this);Gf(f2(this));Gf(i2(this));this.B=this.A=null;delete this.o};z(o2,G);o2.prototype.start=function(){(0,window.isNaN)(this.b)&&(this.o=C(),this.b=ee(this.B,this.A-this.g,this))};
o2.prototype.stop=function(){(0,window.isNaN)(this.b)||(this.o=this.g=0,fe(this.b),this.b=window.NaN)};
o2.prototype.pause=function(){(0,window.isNaN)(this.b)||(this.g=C()-this.o,fe(this.b),this.b=window.NaN)};
o2.prototype.T=function(){(0,window.isNaN)(this.b)||fe(this.b)};z(q2,c2);q2.b=15;h=q2.prototype;h.nk=function(){n2(this.B,13);this.L||this.g.destroy();this.C=this.F=!1;v2(this)};
h.ed=function(){var a;a=this.Bb();var b=aU(a);if(4==d2(b).g)return b;if(tV(a))a=3;else if(a.isSkippable())a=uV(a)?1:2;else return this.adSystem+"_"+this.adType;return this.adSystem+"_"+this.adType+"_"+a};
h.Oe=function(){return this.adSystem+"_"+this.adType};
h.show=function(){var a=this.b,b=p2(a);O4(a.app,b);this.B.o=zq();this.D=this.b.Da();this.A.subscribe("progresssync",this.Gr,this);this.b.g.ba&&If(rf("video-ad-status-bar",this.D));ke(this.D,["ad-showing","ad-interrupting"]);this.b.subscribe("resize",this.Wn,this);try{this.o.O(this.g,"adError",this.xI),this.o.O(this.g,"click",this.wI),this.o.O(this.g,"complete",this.EC),this.o.O(this.g,"engagedview",this.YC),this.o.O(this.g,"pause",this.jv),this.o.O(this.g,"start",this.kv),this.o.O(this.g,"skip",this.AI),
this.o.O(this.g,"MUTE_AD",this.nk),this.o.O(this.g,"skippableStateChanged",this.ME),this.o.O(this.g,"youTubeChannelMetadata",this.BD),this.o.O(this.g,"companionInitialized",this.yI),this.o.O(f2(this.b.G),"mouseup",this.zI),this.Wn(),this.L||this.g.start()}catch(c){w2(this,c)}a=A1(this.b);this.b.g.B&&a.experiments.Z("ad_info_icon_in_card")&&H4(this.b,"onAdMetadataAvailable",{showAdInfoIcon:!0})};
h.mv=function(a,b,c){if("newdata"==a&&this.videoData!=c){a=new Lka;a.isSkippable=this.R;a.skip=x(this.g.skip,this.g);a.muteAd=x(this.g.muteAd,this.g);a.whyThisAdClicked=x(this.g.whyThisAdClicked,this.g);a.whyThisAdClosed=x(this.g.whyThisAdClosed,this.g);a.sendAdsPing=Vp;a.skipShown=x(this.g.Bt,this.g);if(b=this.Bb()){a.clickThroughUrl=WV(b)||"";var d;(d=this.b.g.Ca)||(d=c.lengthSeconds,(b=gW(b))?(hT(b,d),d=iT(b)):d=null);a.skipTime=d||0;a.adSystem=this.adSystem;if(b=x2(this))a.whyThisAdInfo=b;if(d=
y2(this))a.muteAdInfo=d;var e=A1(this.b);this.b.g.B&&e.experiments.Z("ad_info_icon_in_card")&&(e={showAdInfoIcon:!0},e.whyThisAdInfo=b,e.muteAdInfo=d,H4(this.b,"onAdMetadataAvailable",e))}a.videoId=c.videoId;a.videoId||(a.videoUrl=this.Vn()||"");c.spacecastModule=this.aa;t2(this.b,-1,a)}this.videoData=c};
h.lv=function(a){a=a.state;P(a,1)||this.H.pause();P(a,128)?w2(this,Error(a.b.message||"Video player error.")):P(a,1)&&this.H.start()};
h.kv=function(){this.J=!0;this.C=!1;if(!this.F){this.F=!0;var a=this.B;l2(a);var b=m2(a);if((0,window.isNaN)(a.o))l2(a);else{var c=zq()-a.o;b.ad_stl=c}k2(a,4,b);u2(this.b,1);s2(this,!1);this.G&&1!=this.G&&SC("yt_abt",this.G,"video_to_ad");this.videoData&&this.videoData.clientPlaybackNonce&&SC("ad_cpn",this.videoData.clientPlaybackNonce,"video_to_ad");this.videoData&&this.videoData.videoId&&SC("docid",this.videoData.videoId,"video_to_ad");SC("cpn",B1(this.b).clientPlaybackNonce,"video_to_ad");RC("apbs",
void 0,"video_to_ad");(a=N("ADS_INSTREAM_FIRST_PLAY"))&&H4(this.b,"onAdAnnounce",a)}t2(this.b,1);this.X("adPlay",this)};
h.jv=function(){this.J&&(this.J=!1,t2(this.b,2))};
h.EC=function(){if(!this.C){var a=this.B;l2(a);var b=m2(a),c=a.b.xl();c?b.ad_fmt=c:l2(a);k2(a,5,b);A1(this.b).Ra&&H4(this.b,"onAdComplete");v2(this);this.C=this.F=!1}};
h.YC=function(){var a=this.B;a.b.X("AD_LOGGING_EVENT",777,m2(a))};
h.AI=function(){this.C=!0;var a=this.B,b=m2(a),c=a.b.xl();c?b.ad_fmt=c:l2(a);k2(a,14,b);A1(this.b).Ra&&H4(this.b,"onAdSkip");v2(this)};
h.ME=function(){var a=N("ADS_INSTREAM_SKIPPABLE");a&&H4(this.b,"onAdAnnounce",a)};
h.BD=function(){var a=this.Bb();if(a){var b=a.ca,a=a.$,c=A1(this.b),d=x2(this),e=y2(this);if(a&&b)f={},f.videoTitle=b.title,f.channelThumbnailUrl=a.b,f.channelTitle=a.authorName,f.channelVideoCount=a.videoCount,f.showAdInfoIcon=this.b.g.B&&c.experiments.Z("ad_info_icon_in_card"),f.whyThisAdInfo=d,f.muteAdInfo=e,H4(this.b,"onAdMetadataAvailable",f);else if(this.b.g.B&&c.experiments.Z("ad_info_icon_in_card")){var f={showAdInfoIcon:!0};f.whyThisAdInfo=d;f.muteAdInfo=e;H4(this.b,"onAdMetadataAvailable",
f)}}};
h.yI=function(a){a=a.event;var b=a.b;b&&b instanceof id&&this.X("adCompanionInitialized",a.ib(),b)};
h.xI=function(a){var b={};try{b.error_code=a.event.getError().jb()}catch(c){b.error_code=900,b.error_message=c.toString()}n2(this.B,32,b);w2(this,a.event.getError())};
h.wI=function(){var a=this.B;l2(a);var b=m2(a);if(a.g){var c=F4(a.A);b.ck_xy=Math.round(a.g.x-c.left)+"x"+Math.round(a.g.y-c.top);b.ck_wh=c.width+"x"+c.height}k2(a,15,b);this.g.pause();this.X("select")};
h.Gr=function(){};
h.Ar=function(){this.g.Kf();s2(this,!0)};
h.T=function(){this.b.Fa("control_toggle_play_pause",this.nv,this);this.b.Fa("control_play",this.Rm,this);this.b.Fa("control_pause",this.Qm,this);this.b.Fa("resize",this.Wn,this);lt(this.o);this.A.Fa("statechange",this.lv,this);this.A.Fa("internalAbandon",this.Ar,this);this.A.Fa("internalvideodatachange",this.mv,this);this.A.Fa("progresssync",this.Gr,this);this.L||this.g.destroy();this.K&&(Gf(this.K),this.K=null);this.N&&(If(this.N),this.N=null);this.D&&(ne(this.D,["ad-showing","ad-interrupting"]),
this.D=null);this.C=!1;P4(this.b);this.H.dispose();this.H=null;q2.M.T.call(this)};
h.Yp=function(){return this.A.Th()};
h.xl=function(){return this.videoData&&this.videoData.g?this.videoData.g.mimeType:null};
h.Vn=function(){return this.videoData&&this.videoData.ma?Vz(this.videoData.ma.g()):null};
h.nv=function(){this.J?this.Qm():this.Rm()};
h.Rm=function(){this.g.resume();this.kv()};
h.Qm=function(){this.g.pause();this.jv()};
h.Wn=function(){Xs(f2(this.b.G),this.b.app.D.Ia())};
h.zI=function(a){p(a.b)||fm(a);var b=a.b;p(a.g)||fm(a);this.B.g=new ff(b,a.g)};z(B2,c2);h=B2.prototype;
h.show=function(){if(!this.C||!V4(this.b)){I(this.b.Da(),"ad-showing");this.o=f2(this.b.G);var a=this.g.Bb().getHeight();this.o.style.height=Ls(a,!0);I(this.o,"ad-overlay");this.A.O(this.o,"mouseup",this.DI);try{this.A.O(this.g,"autoClose",this.gC),this.A.O(this.g,"userClose",this.gF),this.A.O(this.g,"userRecall",this.hF),this.A.O(this.g,"click",this.CI),this.A.O(this.g,"impression",this.lD),this.A.O(this.g,"adError",this.BI),C2(this,"normal"),this.D||this.g.start(),this.Xn(),this.b.subscribe("resize",
this.qk,this),this.b.subscribe("presentingplayerstatechange",this.ov,this),this.X("adEnd",this)}catch(b){this.X("adError",b)}}};
h.T=function(){lt(this.A);this.b.Fa("resize",this.qk,this);this.b.Fa("presentingplayerstatechange",this.ov,this);me(this.b.Da(),"ad-showing");this.g&&(this.D||this.g.destroy(),this.g=null);this.o&&me(this.o,"ad-overlay");this.o=null;this.C=!1;B2.M.T.call(this)};
h.gF=function(){this.o&&this.g&&this.g.Bb()&&(this.o.style.height=Ls(0,!0));this.C=!0;var a=this.B;a.g=C();var b=A2(a);z2(a,6,b);this.b.X("overlay_ad_close")};
h.gC=function(){this.b.X("overlay_ad_close")};
h.hF=function(){this.b.X("overlay_ad_open")};
h.CI=function(){this.b.pauseVideo();var a=this.B;a.g=C();var b=A2(a);if(a.o){var c=F4(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}z2(a,100,b)};
h.lD=function(){var a=N("ADS_OVERLAY_IMPRESSION");a&&H4(this.b,"onAdAnnounce",a);this.b.X("overlay_ad_open")};
h.DI=function(a){this.B.o=a.target==a.currentTarget?null:new ff(a.pageX,a.pageY)};
h.BI=function(a){a=a.event.getError();this.X("adError",a)};
h.ov=function(a){P(a.state,16)&&C2(this,"normal")};
h.qk=function(){};
h.Xn=function(){var a=this.B;a.A=C();var b=A2(a);z2(a,3,b)};z(D2,G);D2.g="rm";D2.b=10;D2.B=200;D2.o=200;D2.A=190;h=D2.prototype;
h.load=function(){var a;a=this.b.app.D.Ia();var b;this.b.g.b?b=!1:(b=0<(this.C&3)?190:200,b=200>a.width||a.height<b);if(b){b=this.o;var c=E1(b);c.ck_wh=a.width+"x"+a.height;G4(b.b,14,c);S1();this.md(Error("The player size is too small."))}else if(this.B=this.b.J)a=this.o,F1(a.b,9,E1(a)),a=C1(this.b),(b=this.b.g.serverPrefetchedVast)&&0<(this.C&3)?(a.g=b,this.b.g.serverPrefetchedVast=void 0):(a.b=this.Nd(),a.Ai=!this.ar()),this.B.O("adsManagerLoaded",this.hv,!1,this),this.B.O("adError",this.gv,!1,
this),this.Hj(this.B,a)};
h.yl=function(){var a=z1(this.b.g,A1(this.b),B1(this.b));a.surveyCreativeData=this.b.g.surveyCreativeData;a.OG=this.Zg();return a};
h.Zg=function(){return this.R};
h.Nd=v;h.ar=function(){return!0};
h.hv=function(a){if(a.o===this){RC("aml");RC("aml",void 0,"video_to_ad");try{var b=this.yl(),c=a.b}catch(d){this.Ue(d);return}this.A.O(c,"companionBackfill",x(this.uI,this,c));this.A.O(c,"loaded",x(this.tI,this,c));this.A.O(c,"adError",x(this.sI,this,c));this.A.O(c,"allAdsCompleted",r);this.A.O(c,"contentPauseRequested",r);this.A.O(c,"contentResumeRequested",r);c=xW(a,this.b.H,{},b);try{c.init("normal")}catch(d){c.destroy(),this.Ue(d)}}};
h.tI=function(a,b){Jm(this.A);var c=b.ib(),d=c.kb(),e=this.o,f=E1(e);f.ad_man=d?"instream":"overlay";F1(e.b,12,f);e=a.Fl();switch(d?this.rg(a,c,e):this.je(a,c)){case 0:N2(this);break;case 1:a.destroy();this.md(Error("Unable to create a display state."));break;case 2:c=this.o;G4(c.b,21,E1(c));a.destroy();this.md(Error("Fallback to next ad."));break;case 3:this.md(Error("SpaceCast user skipping instream ad not hosted on YouTube."));break;default:a.destroy()}};
h.sI=function(a,b){Jm(this.A);a.destroy();this.Ue(b.getError())};
h.gv=function(a){var b=a.getError();"adLoadError"==b.Fb()&&a.b===this&&this.Ue(b)};
h.uI=function(){I2(this)};
h.rg=function(a,b,c){var d=B1(this.b)&&B1(this.b).spacecastModule;if(d&&c&&!this.L.test(c))return 3;G2(this,GV(b));F2(this,new q2(this.Zg(),this.b,a,b.isSkippable(),void 0,d,this.g.b));return 0};
h.je=function(a,b){G2(this,GV(b));F2(this,new B2(this.Zg(),this.b,a));return 0};
h.Ue=function(a){if(a){var b=this.o,c=E1(b);a&&v1(a,c);G4(b.b,32,c);this.md(a)}};
h.md=function(){F3(this.F)};
h.T=function(){this.B&&(this.B.sa("adsManagerLoaded",this.hv,!1,this),this.B.sa("adError",this.gv,!1,this));Jm(this.N);Jm(this.A);D2.M.T.call(this)};
h.Hj=function(a,b){try{m1(a,b,this),RC("ar"),RC("ar",void 0,"video_to_ad")}catch(c){this.Ue(c)}};z(J2,c2);h=J2.prototype;h.show=function(){if(A1(this.b).experiments.Z("fix_vmap_afc_mpu_api_stats_ads"))if(I1)this.rq();else{var a=A1(this.b).experiments;K1();O1();P1(a).then(x(this.vI,this),x(this.rq,this))}else K1(),this.o=Ui(x(this.Nz,this),1E3)};
h.T=function(){O2(this);J2.M.T.call(this)};
h.Nz=function(){var a=q("yt.www.watch.ads.isAfcAdVisible");this.A++;var b={};b.at=this.Oe();a&&a()&&this.B++;2<=this.B?(b.format=this.ed(),O2(this),this.X("AD_LOGGING_EVENT",3,b),this.X("adEnd",this)):5<=this.A&&(O2(this),this.X("AD_LOGGING_EVENT",2,b),this.X("adEnd",this))};
h.vI=function(){var a={};a.at=this.Oe();a.format=this.ed();this.X("AD_LOGGING_EVENT",3,a);this.X("adEnd",this)};
h.rq=function(){var a={};a.at=this.Oe();this.X("AD_LOGGING_EVENT",2,a);this.X("adEnd",this)};z(P2,D2);P2.prototype.yl=function(){var a=P2.M.yl.call(this);a.hp=0==this.H;a.vy=V4(this.b)?a.hp:!0;return a};
P2.prototype.Nd=function(){var a;a=this.D;(a=4==this.C&&a.b.afvInvideoAdTag?a.b.afvInvideoAdTag:a.b.afvAdTag)?(ta(a,"http:")&&(a=a.substr(5)),a=Sj(a,{videoad_start_delay:H2(this)})):a="";return a};
P2.prototype.je=function(a,b){if(this.b.g.b)return 1;1==this.g.b&&(E2(this),F1(this.b,1));return P2.M.je.call(this,a,b)};
P2.prototype.md=function(a){var b=this.b.g;b.b?P2.M.md.call(this,a):b.$||this.C&4?(F2(this,new J2(this.b)),N2(this)):P2.M.md.call(this,a)};Q2.prototype.b=function(a,b){var c,d=[];b&1&&(c=0==a?"pre":-1==a?"post":"mid;pos="+this.D,d.push("480x360"));b&2&&(c=0==a?"pre":-1==a?"post":"mid;pos="+this.D,d.push("480x361"));b&12&&d.push("480x70");var e=[],f,k;b&12&&(e.push("300x250"),f="watch-channel-brand-div",k=1);0<(b&3)&&(e.push("300x60"),f="watch-longform-ad",k=1);var l=k;k=ic(this.F);c&&(k.pos=c);l&&null==k.tile&&(k.tile=l.toString());f&&null==k.kmyd&&(k.kmyd=f);e&&0<e.length&&this.A&&null==k.ciu_szs&&(k.ciu_szs=e.join(","));k.dcmt="text/xml";
if(this.isLiveStream||null==k.ord){if(!this.g||this.isLiveStream)this.g=Math.floor(999999999*Math.random()).toString();k.ord=this.g}d&&d.length&&null!=k.sz&&"WIDTHxHEIGHT"==k.sz&&ec(k,"sz");e=Nj(k,";");d&&d.length&&null==k.sz&&(e="sz="+d.join(",")+";"+e);return[this.o,"pfadx",this.B,";",e,"?"].join("")};R2.prototype.b=function(a,b){if(0<(b&3)){var c="mid",d="midroll";0==a?(c="pre",d="preroll"):-1==a&&(c="post",d="postroll");var e=new L(this.g),f=e.b,k=f.get("scp",""),k=k?k+"&":"";-1==k.indexOf("pos")&&f.set("scp",k+("pos="+c));f.set("vpos",d);return e.toString()}return this.g};z(L2,B2);L2.prototype.qk=function(){};
L2.prototype.ed=function(){return"1_3"};
L2.prototype.Xn=function(){1==this.G?this.X("AD_LOGGING_EVENT",2,{}):L2.M.Xn.call(this)};z(S2,D2);S2.prototype.Nd=function(){return this.aa.b(t1(this.g),this.C)};
S2.prototype.je=function(a,b){G2(this,GV(b));var c=qV(b);if(x1(c,"rm"))return 1==this.C||V4(this.b)||S1(),a.Lf(),this.b.g.H?(F2(this,new J2(this.b)),0):2;if(x1(c,"blockAllAds"))return a.Lf(),F2(this,new L2(this.b,a,1)),0;if(x1(c,"hideMaster"))return F2(this,new L2(this.b,a,0)),0;if(this.b.g.b)return 1;F2(this,new B2(this.Zg(),this.b,a));return 0};z(T2,S2);var Ska={GDFP:1,DART:1,DART_DFP:1,DART_DFA:1,ADSENSE:2,"ADSENSE/ADX":2};h=T2.prototype;h.Nd=function(){if(this.b.g.da){var a=new R2(this.b.g.dynamicAllocationAdTag);return a.b(t1(this.g),this.J)}a=new Q2(this.b.g.dynamicAllocationAdTag,this.b.g,this.H);return a.b(t1(this.g),this.J)};
h.Hj=function(a,b){if(this.G){b.o=y1(this.G);var c=this.b.g.ia;c&&(b.C=c);b.Qh=H2(this)}T2.M.Hj.call(this,a,b)};
h.rg=function(a,b,c){U2(this,a);return 1!=this.D&&2!=this.D?1:T2.M.rg.call(this,a,b,c)};
h.je=function(a,b){U2(this,a);switch(this.D){case 1:return T2.M.je.call(this,a,b);case 2:var c;this.b.g.b?c=1:(1==this.g.b&&(E2(this),F1(this.b,1)),G2(this,GV(b)),F2(this,new B2(2,this.b,a)),c=0);return c;default:return 1}};
h.Zg=function(){return this.D||0};
h.md=function(a){var b=this.b.g;b.b?T2.M.md.call(this,a):b.$||this.G&4?(F2(this,new J2(this.b)),N2(this)):T2.M.md.call(this,a)};/*
 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.
*/
V2.prototype.cancel=function(a){if(this.b)this.o instanceof V2&&this.o.cancel();else{if(this.g){var b=this.g;delete this.g;a?b.cancel(a):(b.F--,0>=b.F&&b.cancel())}this.K?this.K.call(this.J,this):this.G=!0;this.b||(a=new e3,Z2(this),X2(this,!1,a))}};
V2.prototype.H=function(a,b){this.D=!1;X2(this,a,b)};
V2.prototype.Fi=function(a){Z2(this);X2(this,!0,a)};
V2.prototype.then=function(a,b,c){var d,e,f=new Ed(function(a,b){d=a;e=b});
$2(this,d,function(a){a instanceof e3?f.cancel():e(a)});
return f.then(a,b,c)};
Bd(V2);z(Y2,sa);Y2.prototype.message="Deferred has already fired";Y2.prototype.name="AlreadyCalledError";z(e3,sa);e3.prototype.message="Deferred was canceled";e3.prototype.name="CanceledError";d3.prototype.g=function(){delete c3[this.wa];throw this.b;};
var c3={};z(f3,D2);f3.g="https://www.googleapis.com/urlshortener/v1/url?key=AIzaSyBbSB-E7SYd1iggX6r2b5C7ljvO6fVqaj0&shortUrl=";f3.o="43";f3.b=function(a){var b=new V2;bk(a,{format:"RAW",method:"GET",timeout:5E3,withCredentials:!0,Kc:function(){var c=Error(a+" timed out");Z2(b);X2(b,!1,c)},
onError:function(c){c=Error("Problem loading "+a+" with status code "+c.status);Z2(b);X2(b,!1,c)},
rb:function(a){b.Fi(a)}});
return b};
f3.prototype.Nd=function(){return""};
f3.prototype.Hj=function(a,b){var c=this.C;c&1||c&4||c&8?this.D?c&8?Hka(this.D):("goo.gl"==Lg(this.D)?(c=f3.b("https://www.googleapis.com/urlshortener/v1/url?key=AIzaSyBbSB-E7SYd1iggX6r2b5C7ljvO6fVqaj0&shortUrl="+this.D),a3(c,function(a){a=bg(a.responseText);if(!a)throw Error("Invalid expanded forced ad URL.");if(!a.longUrl)throw Error("Missing forced ad URL information.");a=new L(a.longUrl);lh(a,"video_format","43");return f3.b(a.toString())},this)):c=f3.b(this.D),a3(c,function(c){b.g=c.responseText;
m1(a,b,this)},this),$2(c,null,this.Ue,this)):this.Ue(Error("Invalid empty URL")):this.Ue(Error("Invalid request type: "+c))};z(g3,R);g3.prototype.clear=function(){for(var a=0;a<this.b.length;a++)this.b[a].detach(),Nb(this.b[a]);this.b=[]};
g3.prototype.F=function(a){sm(a);this.o=Math.max(0,this.o-h3(this));i3(this)};
g3.prototype.D=function(a){sm(a);this.o=Math.min(this.b.length-1,this.o+h3(this));i3(this)};z(j3,JK);h=j3.prototype;h.T=function(){j3.M.T.call(this);this.clear()};
h.clear=function(){this.b.clear();this.o.stop()};
h.start=function(){this.o.start();this.pn()};
h.pn=function(){i3(this.b)};
h.Ry=function(a){var b=aV(a),c=bV(b),d;d=new VV(wT(c.b,"action")[0]);var e=iV(c),f=c.b.review_text,k=["div","iv-btp-card-review",["div","iv-btp-card-rating",["span","iv-btp-card-rating-bg",["span","iv-btp-card-rating-fg",{style:"width: "+Math.floor(100*mX(c)/5)+"%;"}]]],["span","iv-btp-card-reviews",null!=f?f:""]];.01>mX(c)&&(k=["div"]);var l=["div","iv-btp-card-merchant",["span","iv-btp-card-merchant-text",e]];d={href:hV(d),target:"_blank"};e=["div","iv-btp-card-image",["img",{src:eV(fV(b))}]];f=
["div",["yt-ui-ellipsis","yt-ui-ellipsis-2","iv-btp-card-short-info"],["span","iv-btp-card-action",gV(c)],l];b=["div","iv-btp-card-long-info",["div","iv-btp-card-text-box",["div","iv-btp-card-text-valign",["div",["yt-ui-ellipsis","yt-ui-ellipsis-4","iv-btp-card-headline"],cV(b)]]],["span","iv-btp-card-action",gV(c)],l,k];c=["div","iv-btp-impressions"];a=bV(aV(a));k={TRIGGER_TYPE:"YOUTUBE_DRAWER_AUTO_OPEN"};for(l=0;l<xT(a.b,"event");l++){var m;m=l;m=new bX(wT(a.b,"event")[m]);7==m.Fb()&&(m=ku(lX(m),
k),c.push(["img",{src:m}]))}return new R(["div","iv-btp-card",["a","iv-btp-card-content",d,e,f,b,c]])};
h.Jz=function(){this.C.start()};var k3=null;z(l3,c2);l3.prototype.show=function(){var a=B1(this.b).videoId;if(a){var b=this.g.Bb();pz(A1(this.b).G,a,{sf:mW(b)||null,Og:nW(b)||null});A1(this.b).experiments.Z("enable_pla_desktop_shelf")&&Zka(this);a={};a.format=this.ed();a.at=this.Oe();w1(b,a);this.X("AD_LOGGING_EVENT",3,a)}};z(m3,D2);m3.prototype.Nd=function(){return this.b.g.Ja||""};
m3.prototype.ar=function(){return!1};
m3.prototype.je=function(a,b){G2(this,GV(b));F2(this,new l3(this.b,a));5!=this.g.b&&I2(this);return 0};
m3.prototype.rg=function(){return 1};z(n3,m3);n3.prototype.Nd=function(){return this.b.g.forceAdUrl||""};z(K2,B2);K2.prototype.qk=function(){};
K2.prototype.ed=function(){return"4_3"};z(w3,D2);
w3.prototype.Nd=function(){var a;if(A(this.D)||0!=t1(this.g)){var b=this.G;if(b.b.La&&b.b.qa){a={};var c="youtube_watch_"+b.g;a.nw="10613";a.asnw=b.b.La;a.ssnw=b.b.La;a.caid=b.b.qa;a.vdur=b.C;a.csid=c;a.resp="vast2";a.metr="121";c={};(0,window.isNaN)(b.b.na)||(c._fw_d_001=b.b.na);b.b.gender&&(c._fw_d_002=b.b.gender);b.b.gb&&(c["_fwu:10613:lang"]=b.b.gb);b.b.ma&&(c._fw_dbp=b.b.ma);b.b.ga&&(c._fw_distributorvideoassetid=b.b.ga);c._fw_yt_type=v3(b)?"long":"short";if(p3(b)){a.prof=v3(b)?"10613:youtube_html5_w_midroll":"10613:10613_youtube_html5_2014";
a.crtp="youtube";a.flag=s3(b.o)?"+slcb+qtcb+amcb+exvt+emcr":"+slcb+qtcb+amcb+emcr";var d="",e;if(b.B&1&&!b.D){e={};d=q3(b);if(u3(b.o)){var f;if(u3(b.o)){f=0;var k=b.A.o;if(k)for(var k=k.o,l=0;l<k.length&&(u3(k[l])&&f++,k[l].getId()!=b.o.getId());l++);}else f=0;d+=f}e.slid=d;e.ptgt="a";e.slau=r3(b);e.tpos=t3(b.o)?b.C.toString():t1(b.o.qb).toString();d=Nj(e,"&")+";";e={slid:"page_display1",w:"300",h:"60",ptgt:"s",slau:"display",flag:"+cmpn"};d+=Nj(e,"&")+";"}b.B&4&&(e={slid:"overlay",ptgt:"a",slau:"overlay"},
e.tpos=s3(b.o)?"10":t3(b.o)?b.C.toString():t1(b.o.qb).toString(),d+=Nj(e,"&")+";",e={slid:"page_display2",w:"300",h:"250",ptgt:"s",slau:"display",flag:"+cmpn"},d+=Nj(e,"&")+";");b.B&8&&(e={slid:"dis",w:"300",h:"250",ptgt:"s",slau:"display",flag:"+cmpn"},d+=Nj(e,"&")+";");b=d.substr(0,d.length-1);a="//2975c.v.fwmrm.net/ad/g/1?"+Nj(a,"&")+";"+Nj(c,"&")+";"+b}else e="10613:10613_youtube_"+b.g.split("_")[0],a.prof="10613:10613_youtube_"+b.g,a.crtp="vast2s",a.flag="+emcr",d={},b.D||(d.ptgt="a",d.slid=
"preroll",d.slau=r3(b),d.w="480",d.h="360",d.tpos="0",d.tpcl="preroll",d.envp=e,d.cd="1440,900"),a="//2975c.v.fwmrm.net/ad/g/1?"+Nj(a,"&")+";"+Nj(c,"&")+";"+Nj(d,"&")}else a=""}else a=this.D;return a};
w3.prototype.rg=function(a,b){return w3.M.rg.call(this,a,b,null)};
w3.prototype.je=function(a,b){var c=qV(b);return x1(c,"rm")?(this.F.B=hc(a),2):this.b.g.b?1:x1(c,"hideMaster")?(a.D&&a.D.wf()&&a.D.wf().Jt(zha(a.Bb())),F2(this,new K2(this.b,a)),0):w3.M.je.call(this,a,b)};x3.prototype.Fb=function(){return this.o};
x3.prototype.create=function(a,b){switch(this.o){case 1:return new P2(a,b,this.b);case 2:return new S2(a,b,this.b);case 3:return new T2(a,b,this.b,this.g);case 5:return new w3(a,b,this.b);case 4:return new f3(a,b);case 7:return new m3(a,b,this.b);case 8:return new n3(a,b,this.b);default:return null}};z(y3,pk);h=y3.prototype;h.getId=function(){return this.wa};
h.show=function(){this.F?this.b instanceof B2&&C2(this.b,"normal"):(this.F=!0,this.b instanceof q2&&C3(this.o,"bs"),this.b.subscribe("adEnd",this.Er,this),this.b.subscribe("adError",this.ev,this),this.b.subscribe("AD_LOGGING_EVENT",this.ds,this),this.b.subscribe("select",this.dv,this),this.b.subscribe("adCompanionInitialized",this.fv,this),this.b.show(),E3(this,!0))};
h.Er=function(){this.g&&(G3(this),I4(this.o));M2(this)};
h.ev=function(a){if(a){var b={};v1(a,b);D3(this,b);G4(this.o,32,b)}G3(this);M2(this)};
h.ds=function(a,b){D3(this,b);F1(this.o,a,b)};
h.dv=function(){this.D=!1};
h.fv=function(a,b){this.X("adCompanionInitialized",a,b)};
h.T=function(){G3(this);this.b=null;null!=this.B&&(this.B.dispose(),this.B=null);y3.M.T.call(this)};var L3=[new s1(1)];var gla={mx:"m",Rw:"f"};z(M3,G);M3.prototype.B=function(a){a=null!=a.ib()?a.ib().C:null;if(null!=a){var b=this.C;b.B&&b.B.getVideoData().videoId==a?(a=b.B,a.o?(b=a.o,a=Wu(b,"engage"),a.o=1,b=tG(b.b),a=qa(Qu,a.ca,Su(a),Pu(a),b)):a=null):a=null;this.g=a}};
M3.prototype.A=function(){this.b&&this.g&&this.g()};z(O3,G);O3.prototype.N=function(){this.o=window.NaN};
O3.prototype.J=function(){if(P(os(this.b.b),8)){if(P3(this)){this.C=this.C||C()/1E3;this.F&&(this.B+=C()/1E3-this.F);var a=this.b.getCurrentTime(1);0!=this.g&&Math.abs(a-this.g)>this.R?(this.g=this.b.getCurrentTime(1),Q3(this,"seek"),this.B=0,this.A.push(C()/1E3)):(0,window.isNaN)(this.o)&&0!=this.g&&(Q3(this,"pause"),this.B=0,this.A.push(C()/1E3));Vi(this.o);this.o=window.NaN;this.g=0}}else P(os(this.b.b),4)&&0==this.g&&P3(this)&&(this.g=this.b.getCurrentTime(1),this.o=Ti(x(this.N,this),1E3*this.L),
this.F=C()/1E3)};
O3.prototype.T=function(){Vi(this.o);this.o=window.NaN;this.g=0;this.b.Fa("applicationplayerstatechange",this.J,this)};z(R3,G);h=R3.prototype;h.Ut=function(){this.b.subscribe("beginseeking",this.Hi,this)};
h.Nt=function(a,b){return a.g&&u3(a)?b+this.A+this.o:b};
h.Mt=function(a,b){return!a.g||t3(a)||0x7ffffffffffff==b||0x8000000000000==b?b:b+this.A+this.o};
h.bp=function(a){if(a.g&&u3(a)&&!(0>=this.o)){var b={priority:2,id:String(a.getId()),style:"ytp-ad-fadeout"},c=B3(a)+this.A,b=new bq(c,c+this.o-1,b);this.B[a.getId()]=b;this.b.vb([b])}};
h.rv=function(a){a.g&&u3(a)&&(S3(this,a.getId()),this.Hi())};
h.Hi=function(){(0,window.isNaN)(this.g)||(Vi(this.g),this.g=window.NaN);var a=M4(this.b);U3(this,a,this.b.app.Ya.Mb()/100);a.kc("transition","");a.kc("opacity","1")};
h.tv=function(a){var b=B3(a)+this.A+this.o,b=50>=1E3*this.b.getCurrentTime(1)-b;a.g&&u3(a)&&b&&(a=.001*(B3(a)+this.D),this.b.seekTo(a),0>=this.C||(a=M4(this.b),a.kc("opacity","0"),U3(this,a,0),Ti(x(this.EI,this),0)))};
h.EI=function(){var a=M4(this.b);a.kc("transition","opacity "+String(this.C)+"ms linear");a.kc("opacity","1");T3(this,a,this.C,1)};
h.qv=function(a,b,c){if(!(0,window.isNaN)(this.g)){var d=Math.max(1,b-C()),d=-1*a.Bd()*c/d,d=Math.max(0,a.Bd()+d);U3(this,a,d);this.g=0<d?Oq(x(this.qv,this,a,b,c),c):window.NaN}};
h.pv=function(a,b,c){if(!(0,window.isNaN)(this.g)){var d=Math.max(1,b-C()),e=this.b.app.Ya.Mb()/100,d=(e-a.Bd())*c/d,d=Math.min(e,a.Bd()+d);U3(this,a,d);this.g=d<e?Oq(x(this.pv,this,a,b,c),c):window.NaN}};
h.T=function(){this.Hi();this.b.Fa("beginseeking",this.Hi,this)};z(V3,R3);h=V3.prototype;h.Ut=r;h.Nt=function(a,b){return b};
h.Mt=function(a,b){return b};
h.bp=r;h.rv=r;h.tv=r;h.T=r;z(W3,G);W3.prototype.A=function(){var a=this.b.g.g;if(this.B&&!(0>=a)){var b=this.b.b.getCurrentTime(),c=[],d=null,e=Number.MAX_VALUE;Pb(this.D.A,function(a){a.isDisposed();if(a.isVisible&&!(0>=Y3(this,a))){var f;f=a.getId();f=this.D.D[f];if(Y3(this,a)>b){var m=!Z3(this,a);m!=f.visible&&(f.visible=m,c.push(f));m||(f=Y3(this,a)-b,f<e&&(e=f,d=a))}else f.visible||(f.visible=!0,c.push(f))}},this);
0<c.length&&this.b.b.vb(c,1);if(d){var f=0;0<this.o&&(f=C()/1E3-this.o);jla(this,a-f-e+2)}else X3(this)}};
W3.prototype.g=function(){return this.o};
W3.prototype.T=function(){X3(this);this.b.Fa("endseeking",this.A,this)};z($3,G);h=$3.prototype;h.Ag=function(a){a.Fa("adBreakComplete",this.Ag,this);a.Fa("adCompanionInitialized",this.Nm,this);this.N=Ti(x(this.MB,this,a),0)};
h.Nm=function(a,b){Nb(this.J);this.J=new M3(this.g,b)};
h.MB=function(a){var b=lla(this,a),c=b.previous,b=b.next;this.N=window.NaN;var d,e=!1;switch(a.qb.b){case 5:d=0x7ffffffffffff;e=!0;break;case 3:d=0x8000000000000;break;default:d=b&&ha(b.qb.g)?B3(b)-1:0x7ffffffffffff}0==a.wa&&(C3(this.g,"bl"),A3(a)||C3(this.g,"fb"));"loaded"!=a.A||0==a.wa&&A3(a)&&b&&1E3*this.g.b.getCurrentTime()>=B3(b)?(c&&z3(c)&&!e&&(b=d,d=B3(c),d>b&&(b=d),c4(this,c),b4(this,c,b)),this.vf(a)):(this.A[a.getId()]=a,b4(this,a,d),iq(this.g));Ub(this.A)==this.o.length&&this.B.A();a4(this)};
h.vf=function(a){a.Fa("adBreakComplete",this.Ag,this);this.b&&a==this.b&&(this.b=null,null!=this.J&&a.g&&(this.J.b=!0));c4(this,a);pb(this.o,a);delete this.A[a.getId()];Nb(a)};
h.pk=function(a){return this.A[a]};
h.Jm=function(a){if(a.g)for(!t3(a)&&a.D?(T4(this.g),this.C.tv(a)):A3(a)&&!a.D?T4(this.g):R4(this.g),this.vf(a),a=this.B.g(),a={tfla:0<a?Math.floor(C()/1E3-a):0},e4(this.g.aa,"set_previous_ad_end_time",a),a=this.B,a.B&&0<a.b.g.g&&(a.o=C()/1E3,a.A());!ib(this.L);)f4(this,this.L.shift());else a.isVisible||this.vf(a)};
h.T=function(){Vi(this.N);Nb(this.C);Nb(this.B);Nb(this.da);F(this.o,this.vf,this);$3.M.T.call(this);Nb(this.J)};z(g4,$3);h=g4.prototype;h.pk=function(a){a=g4.M.pk.call(this,a);if(!a)return null;if(!a.G)return a;var b;b=null;if(this.F.length){var c=b=this.F.shift();c.qb=a.qb;c.wa=a.getId()}b&&"loaded"==b.A?(a.Fa("adBreakComplete",this.Ag,this),this.A[a.getId()]=b,this.o[this.o.indexOf(a)]=b,Nb(a)):(this.Dg(),b&&(Nb(b),b=null,this.vf(a)));b&&!b.g&&this.Dg();return b};
h.Ag=function(a){!s3(a)&&(2!=a.qb.b||10!=t1(a.qb))||"loaded"==a.A&&a.g||this.Dg();g4.M.Ag.call(this,a)};
h.Jm=function(a){a.g&&10<this.R?(h4(this),this.aa=Ti(x(this.Dg,this),1E3*(this.R-10))):this.Dg();g4.M.Jm.call(this,a)};
h.Dg=function(){if(!this.isDisposed())for(h4(this);this.H.length&&this.K.length+this.F.length<this.ba;){var a=this.H.shift();a.subscribe("adBreakComplete",this.Dr,this);this.K.push(a);F3(a)}};
h.Dr=function(a){a.Fa("adBreakComplete",this.Dr,this);pb(this.K,a);this.F.push(a)};
h.T=function(){h4(this);F(this.K,Nb);F(this.F,Nb);F(this.H,Nb);g4.M.T.call(this)};z(i4,$3);i4.prototype.getVideoData=function(){return null};
i4.prototype.ca=function(a){"loaded"==a.A&&this.H.push(a);a.Fa("adBreakComplete",this.ca,this)};
i4.prototype.R=function(){if(null!=this.b&&0<this.H.length){var a=this.H.shift();delete this.A[t1(a.qb)];var b=Math.floor(C()/1E3)-this.ea;this.ea=null;a.Fa("adBreakComplete",this.R,this);this.vf(a);this.b=null}0<this.K?(this.K--,j4(this)):(T4(this.aa),(0,window.isFinite)(b)&&(this.ba?this.F.seekTo(window.Infinity,!0):this.F.seekTo(this.F.getCurrentTime()+b,!0)))};var k4=[];z(n4,G);n4.prototype.D=function(){this.b||(this.b=m4(this.A.ke()));this.g.b.vb(Xb(this.b),1)};
n4.prototype.o=function(){if(this.b){var a=this.g.b.getCurrentTime(),b=[],c=null,d=Number.MAX_VALUE;F(this.A.ke(),function(e){var f=this.b[e];if(f){var m=this.A.K.get(e);m&&m.Ec>a?(e=!e1(this.F,m),e!=f.visible&&(f.visible=e,b.push(f)),e||(f=m.Ec-a,f<d&&(d=f,c=m))):!m||m.Za()?(zJ(this.g.b,[f],void 0),delete this.b[e]):!f.visible&&m&&(f.visible=!0,b.push(f))}},this);
0<b.length&&this.g.b.vb(b,1);var e=this.g.g.g;if(0>=e)if(c){var f=0;0<this.C&&(f=C()/1E3-this.C);ola(this,e-f-d+2)}else o4(this)}};
n4.prototype.T=function(){n4.M.T.call(this);this.g.Fa("endseeking",this.o,this);o4(this)};z(p4,G);h=p4.prototype;h.eq=function(){return 4};
h.Rj=function(a){return a};
h.Ss=function(){return!1};
h.cp=r;h.ci=r;h.uv=r;h.vv=r;h.wv=r;z(q4,G);h=q4.prototype;h.eq=function(){return 4-this.A/1E3};
h.Rj=function(a){return $b(this.o,1E3*a)?this.o[1E3*a]/1E3:a};
h.Ss=function(a){var b=!1,c={};F(Lf(a),x(function(a){var e;if(e=(e=a.getAttribute("timeOffset"))?l4(e):null)b=b||pla(a),c[e]=a},this));
if(!b||0==Ub(c))return!1;a=M(Yb(c),function(a){return(0,window.parseInt)(a,10)});
if(!sla(this,a))return!1;Pb(c,x(function(a,b){var c=(0,window.parseInt)(ac(this.o,function(a){return a==b}),10);
c&&a.setAttribute("timeOffset",qla(c))},this));
return!0};
h.cp=function(a){if(!(0>=this.G)){var b=[];F(a,x(function(a){if($b(this.o,1E3*a)){var d=new bq(1E3*this.Rj(a)+this.A,1E3*a+500,{priority:2,id:String(a),style:"ytp-ad-fadeout"});this.B[a]=d;b.push(d)}},this));
this.b.vb(b)}};
h.uv=function(a){if($b(this.o,1E3*a)){var b=M4(this.b);null!==b&&(a=Math.max(0,1E3*a-1E3*this.b.getCurrentTime(1)),b.kc("transition","opacity "+String(a)+"ms linear"),b.kc("opacity","0"),s4(this,b,a,0))}};
h.vv=function(a){r4(this,1E3*a)&&(this.B[a]&&(zJ(this.b.b,[this.B[a]],void 0),delete this.B[a]),this.ci())};
h.Cv=function(){P(os(this.b.b),4)&&this.ci()};
h.ci=function(){var a=M4(this.b);null!==a&&(null!=this.g&&(Vi(this.g),this.g=null),t4(this,a,this.b.app.Ya.Mb()/100),a.kc("transition",""),a.kc("opacity","1"))};
h.wv=function(a){if($b(this.o,1E3*a)){var b=1E3*a;200>=1E3*this.b.getCurrentTime(1)-b&&(this.b.seekTo(this.Rj(a)+this.F/1E3),0>=this.C||(a=M4(this.b),null!==a&&(a.kc("opacity","0"),t4(this,a,0),null!=this.g&&Vi(this.g),this.g=Oq(x(this.NI,this),0))))}};
h.NI=function(){var a=M4(this.b);null!==a&&(a.kc("transition","opacity "+String(this.C)+"ms linear"),a.kc("opacity","1"),s4(this,a,this.C,1))};
h.Bv=function(a,b,c){if(null!==this.g){var d=Math.max(1,b-C()),d=-1*a.Bd()*c/d,d=Math.max(0,a.Bd()+d);t4(this,a,d);0<d?this.g=Oq(x(this.Bv,this,a,b,c),c):this.g=null}};
h.Av=function(a,b,c){if(null!==this.g){var d=Math.max(1,b-C()),e=this.b.app.Ya.Mb()/100,d=(e-a.Bd())*c/d,d=Math.min(e,a.Bd()+d);t4(this,a,d);d<e?this.g=Oq(x(this.Av,this,a,b,c),c):this.g=null}};
h.T=function(){this.ci();this.b.Fa("applicationplayerstatechange",this.Cv,this);q4.M.T.call(this)};z(u4,G);var xla={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,GOOGLEADS:14};h=u4.prototype;
h.load=function(a){if(this.G=this.b.J){var b=this.b.g;this.B=b.applyFadeOnMidrolls?new q4(this.b):new p4;var c=C1(this.b);c.g=ula(this,a);c.dj=this.b.H.C;c.Eb.TSLA=Gka(this);c.Eb.GET_MIDROLL_POSITION_IN_SEC=x(this.B.Rj,this.B);c.Eb.DESCRIPTION_URL="http://www.youtube.com/video/"+B1(this.b).videoId;if(a=H3(b).get(3))if(c.o=y1(a),b=b.ia)c.C=b;this.G.O("adsManagerLoaded",this.yv,!1,this);this.G.O("adError",this.xv,!1,this);m1(this.G,c,this);C3(this.b,"bd")}};
h.yv=function(a){if(a.o===this){var b={};Object.defineProperty(b,"currentTime",{get:x(function(){return this.b.getCurrentTime(1)},this),
enumerable:!0});Object.defineProperty(b,"duration",{get:x(function(){return this.b.b.getVideoData().lengthSeconds},this),
enumerable:!0});try{var c=vla(this);this.g=xW(a,this.b.H,b,c)}catch(d){B4(this,d);return}if(this.D=this.g.Gt(b,this.b.g.g)){this.B.cp(this.g.ke());this.L=new O3(this.b,this.D);this.F=new n4(this.b,this.g,this.D);H(this,this.F);Ti(x(this.F.D,this.F),0);gb(this.g.ke(),0)||A4(this);this.C.O(this.g,"companionBackfill",x(this.JI,this));this.C.O(this.g,"prefetched",x(this.QB,this));this.C.O(this.g,"loaded",x(this.HI,this));this.C.O(this.g,"adError",x(this.GI,this),!1);this.C.O(this.g,"start",x(this.II,
this));this.C.O(this.g,"complete",x(this.FI,this));this.C.O(this.g,"companionInitialized",x(this.KI,this));this.C.O(this.g,"contentPauseRequested",x(this.LI,this));this.C.O(this.g,"contentResumeRequested",x(this.MI,this));this.C.O(this.g,"allAdsCompleted",x(this.VB,this));N3(this.b,this.zv,this);try{this.g.init("normal"),this.g.start()}catch(d){e4(this.b.aa,"vmap_ads_manager_init_exception",void 0),this.g.destroy(),this.g=null,B4(this,d)}}}};
h.zv=function(){if(P(os(this.b.b),16)||P(os(this.b.b),32)){var a=this.g;null!=a.C&&(a=a.C,a.b.stop(),a.g=!1)}else a=this.g,null!=a.C&&a1(a.C)};
h.KI=function(a){if(a=a.b)Nb(this.J),this.J=new M3(this.b,a)};
h.LI=function(a){C4(this);if((this.o=a.ib())&&this.o.kb()){a=w4(this.o);var b=z4(this.o);this.A=new q2(a,this.b,this.g,this.o.isSkippable(),!0,void 0,b);1!=b&&bD("video_to_ad",["apbs"]);d4(this.b);this.B.vv(this.o.A.b);this.A.show();v4(this,"show_instream_ads")}};
h.MI=function(a){A4(this);this.b.getCurrentTime(1)<this.b.b.getVideoData().lengthSeconds&&(T4(this.b),this.o&&this.o.kb()&&(this.B.wv(this.o.A.b),null!=this.J&&(this.J.b=!0)));a=a.ib();this.H?this.o=null:A1(this.b).experiments.Z("fix_vmap_afc_mpu_api_stats_ads")&&!a&&this.A instanceof J2||C4(this);var b=!0;if(a&&a!==this.o&&!a.kb()){b=this.g;if(null!=b.o&&b.o.R&&!this.H){this.H=!0;b=this.F;if(null!=b.b[0]){var c=b.b[0];delete b.b[0];b.b[0]=new bq(1E4,c.end,{id:"10",visible:!0});c.visible=!1;b.g.b.vb([c,
b.b[0]],1);b.g.vb([b.b[0]])}this.o=a;return}b=wla(this,a)}this.o&&this.o.kb()&&I4(this.b);this.o&&this.o.kb()?(v4(this,"set_previous_ad_end_time"),b=this.D,0<b.o&&(b.b=C()/1E3),b=this.F,b.C=C()/1E3,b.o()):a&&a!==this.o&&!a.kb()&&b&&(b=this.F,b.C=C()/1E3,b.o());this.F.D();this.o=a};
h.VB=function(){this.L.G=!0};
h.II=function(a){(a=a.ib())&&this.A&&(a=w4(a),this.A.adSystem=a)};
h.FI=function(a){a.ib().kb()||this.o!==a.ib()||(C4(this),this.o=null)};
h.QB=function(a){var b=a.ib();if(null!=b){var c=a.b.adBreakTime;this.R[c]=b;this.N||(C3(this.b,"bl"),0==c&&a.ib().kb()||C3(this.b,"fb"),this.N=!0)}};
h.HI=function(a){if(null!=a.ib()){a.ib().kb()&&C3(this.b,"bs");var b=a.ib().A;0<b.b&&(this.H=!1);b.A||a.ib().kb()||A4(this)}};
h.GI=function(a){B4(this,a.getError())};
h.xv=function(a){var b=a.getError();"adLoadError"==b.Fb()&&a.b===this&&B4(this,b)};
h.JI=function(a){y4(this,a&&a.ib())};
h.T=function(){C4(this);this.G&&(this.G.sa("adsManagerLoaded",this.yv,!1,this),this.G.sa("adError",this.xv,!1,this));Jm(this.aa);Jm(this.C);this.b.b.removeEventListener("applicationplayerstatechange",this.zv,this);this.K=!1;this.g&&(this.g.destroy(),this.g=null);Nb(this.B);Nb(this.L);Nb(this.J);u4.M.T.call(this)};
h.KD=function(a,b,c){if(A1(this.b).experiments.Z("fix_vmap_afc_mpu_api_stats_ads")){if(a){a=a.Ec;var d=1;-1==a?d=3:0<a&&(d=2);c.break_type=d;c.sst=a;c.sidx=0}F1(this.b,b,c)}};z(D4,o1);D4.o=10;D4.g=1E3;D4.b="livead";D4.Cb=function(a){return!!a.Ya.getVideoData().adModule};
h=D4.prototype;h.Cb=function(){return D4.Cb(this.app)};
h.create=function(){D4.M.create.call(this);this.K.S(this.b,"beginseeking",x(this.X,this,"beginseeking"));this.K.S(this.b,"endseeking",x(this.X,this,"endseeking"));this.K.S(this.b,"resize",x(this.X,this,"resize"));this.K.S(this.b,"presentingplayerstatechange",x(this.X,this,"presentingplayerstatechange"));this.K.S(this.b,"webglsettingschanged",x(this.X,this,"webglsettingschanged"));C3(this,"i");this.g=new ila(A1(this),this.b.getVideoData().A||{});this.C=new mla(this,this.b);this.$=!1;if(this.J)this.J.b.o.B=
NM();else{var a=this.g.ba?void 0:i2(this.G),b=new n1(this.app,2),c=f2(this.G);b.g||(b.g=hc(b.o),b.g.addEventListener=x(b.dz,b),b.g.removeEventListener=x(b.ez,b));this.H=new xS(c,void 0,a,b.g,!0);this.H.setSize(-1,-1);this.J=new l1(this.H)}if(this.g.vmap&&!this.g.ea){this.A=new u4(this);try{this.A.load(this.g.vmap)}catch(d){Xi(d),e4(this.aa,"vmap_load_exception",void 0),this.A.dispose(),this.A=null,Q4(this,K3(new J3(this)))}}else Q4(this,K3(new J3(this)));this.C&&(a={},a.allowed=this.C.g,kq(this,{},
a))};
h.destroy=function(){this.R&&R4(this);this.app.V.experiments.Z("disable_new_pause_state3")||gq(this);P4(this);Ob(this.o,this.B,this.A);this.C=this.g=this.A=this.ca=this.B=this.o=null;h2(this.G);M1=J1=I1=!1;O1();this.D&&D4.M.destroy.call(this)};
h.getPresentingPlayerType=function(){return this.app.getPresentingPlayerType()};
h.Qa=function(){return this.b.Qa()||this.g.C};
h.ai=function(){var a;if(this.C){a=this.C;var b={allowed:a.g};a.b.excludedAds&&(b.ex_ad=a.b.excludedAds);a.o&&(b.at=a.o);a=b}else a=D4.M.ai.call(this);return a};
h.Da=function(){return this.b.Da()};
h.getVideoData=function(){return this.ca};
h.getCurrentTime=function(a){return this.app.getCurrentTime(a)};
h.pauseVideo=function(){var a=this.app;Ti(function(){a.pauseVideo()},0)};
h.seekTo=function(a){var b=this.app;Ti(function(){b.seekTo(a)},0)};
h.getAdState=function(){return this.N};
h.Xd=function(a){D4.M.Xd.call(this,a);var b=(0,window.parseInt)(a.getId(),10);if(this.o&&!(0,window.isNaN)(b))if("ytp-ad-fadeout"==a.style){var c=this.o,d=c.pk(b);if(d&&!Z3(c.B,d)&&(c=c.C,d.g)){var e=M4(c.b),d=Math.max(0,B3(d)+c.A+c.o-1E3*c.b.getCurrentTime(1));e.kc("transition","opacity "+String(d)+"ms linear");e.kc("opacity","0");T3(c,e,d,0)}}else f4(this.o,b);this.A&&!(0,window.isNaN)(b)&&("ytp-ad-fadeout"==a.style?(d=this.A,(c=d.R[b])&&c.kb()&&d.B.uv(b)):0>b?(b=this.J.b,d=new yW("contentComplete"),
b.dispatchEvent(d),d.b&&(aM(ZL(),420706009)||b.o.clear(),null!=b.g&&(d=b.g.wf(),null!=d&&RS(d,b.o.b)))):(b=this.A,null!=b.o&&(b=b.g,null!=b.o&&b.o.start())));if("livead"===a.getId()&&null!=J4(this)){b=J4(this);for(a=Math.floor(a.start/1E3);p(b.A[a]);)a++;d=b.ga++;c=0==a?new s1(1):new s1(2,a);d=new y3(b.aa,d,c,I3(b.aa.g,c.b),!1);b.A[a]=d;d.subscribe("adBreakComplete",b.ca,b);F3(d)}};
h.pe=function(a){D4.M.pe.call(this,a);var b=(0,window.parseInt)(a.getId(),10),c=1E3*this.getCurrentTime(1);this.o&&!(0,window.isNaN)(b)&&c>a.start&&(0x8000000000000==a.end||0x7ffffffffffff==a.end)&&(c=this.o,(b=c.A[b])&&c.b==b&&!b.g&&b.isVisible&&b.F&&b.b instanceof B2&&C2(b.b,"fullscreen"));this.A&&"ytp-ad-fadeout"==a.style&&this.A.B.ci();"livead"===a.getId()&&null!=J4(this)&&1E3*this.getCurrentTime(1)>=a.start&&(zJ(this.b,[a],1),j4(J4(this)))};
h.zc=function(a){this.X(a)};
h.LC=function(a){var b=J4(this);if(null!=b&&null!=b.F){var c=J4(this).F.getCurrentTime();F(a,function(a){0!=c&&a.ae>c&&(a=new bq(1E3*Math.floor(c+Math.random()*Math.max(a.ae-10-c,0)),1E3*a.ae,{id:"livead",priority:2}),this.vb([a],1))},this)}};
h.xe=function(a){switch(a){case "addata":var b=this.g;return{adTag:b.adTag,adTest:b.Oa,forceAdType:b.forceAdType,isAfvSkippableInstreamEnabled:b.J,isAfvStandardInstreamEnabled:b.K,isBlazer:b.B,isDoubleClickEnabled:b.G,isForcedAd:b.ea,isFreeWheelEnabled:b.L,isHouseBrandPlayer:b.Ub,isLeanback:b.C,isShortform:b.Ga,tagForChildDirected:b.tagForChildDirected};case "adstate":return this.getAdState();case "midrollfreqcap":if(this.A)return b=this.g.g,null!=b?b:0;b=this.o instanceof g4?this.o:null;return null!=
b?b.R:0;case "breakscount":return this.A?(b=this.A,b=null!=b.g?b.g.ke().length:0):b=this.o?this.o.o.length:0,b;case "displaystate":return b=null,this.o&&this.o.b&&(b=this.o.b.b),{adFormat:b instanceof c2?b.adType:!1,adSkipped:b instanceof q2?b.C:!1,hasVideoStarted:b instanceof q2?b.F:!1,skippable:b instanceof q2?b.R:!1};case "getContentVideoData":return b=B1(this),{adModule:b.adModule,partnerTrackingToken:b.Oa,title:b.title,videoId:b.videoId};case "loadedadbreaks":if(this.o){a=this.o.A;var c=[];for(b in a)a.hasOwnProperty(b)&&
c.push({isInterruptive:a[Number(b)].g});return c}return 0}};
h.Qf=function(){return"addata adstate breakscount displaystate getContentVideoData loadedadbreaks midrollfreqcap".split(" ")};z(W4,VM);var yla=[241];W4.prototype.getStatus=function(){return V(this,59)};
W4.prototype.setVideoId=function(a){175<this.B?this.g[175+this.A]=a:this.o[175]=a};
W4.prototype.setTitle=function(a){176<this.B?this.g[176+this.A]=a:this.o[176]=a};
W4.prototype.hasFeature=function(){return null!=V(this,332)};z(Y4,G);h=Y4.prototype;
h.T=function(){a5(this,new sq);$4(this);j5(this);this.g.b.removeEventListener("onVolumeChange",this.xj,this);this.g.b.removeEventListener("onCaptionsTrackListChanged",this.bs,this);this.B&&this.g.b.removeEventListener("captionschanged",this.Nr,this);var a=this.b;a&&"function"==typeof a.isDisposed&&a.isDisposed()||(this.b.Fa("proxyStateChange",this.vs,this),this.b.Fa("remotePlayerChange",this.Ah,this),this.b.Fa("remoteQueueChange",this.Om,this));i5(this,this.o);this.D&&this.g.b.On(this.D);this.b=this.g=
null};
h.Dv=function(a,b){2==this.b.g||(c5(this)?this.Mz.apply(this,arguments):this.A&&this.Iz.apply(this,arguments))};
h.Nr=function(a){this.Dv("control_subtitles_set_track",cc(a)?null:a)};
h.Iz=function(a,b){var c=Array.prototype.slice.call(arguments,1);switch(a){case "control_toggle_play_pause":case "control_play":case "control_pause":h5(this,this.g.b.getCurrentTime());break;case "control_seek":h5(this,c[0])}};
h.Mz=function(a,b){if(1081==xo(this.b).b)switch(a){case "control_toggle_play_pause":case "control_play":case "control_pause":if(this.B)break;case "control_seek":return}var c=Array.prototype.slice.call(arguments,1);switch(a){case "control_toggle_play_pause":xo(this.b).Za()?e5(this):g5(this);break;case "control_play":g5(this);break;case "control_pause":e5(this);break;case "control_seek":this.L=c[0];this.H.pg();break;case "control_subtitles_set_track":X4(this,c[0]);break;case "control_set_audio_track":c=
c[0],c5(this)&&(this.b.tu(d5(this),c),this.D=c)}};
h.xj=function(a){if(c5(this)){this.b.Fa("remotePlayerChange",this.Ah,this);var b=Math.round(a.volume);a=!!a.muted;var c=xo(this.b);b==c.volume&&a==c.muted||this.b.setVolume(b,a);this.b.subscribe("remotePlayerChange",this.Ah,this)}};
h.bs=function(){cc(this.o)||i5(this,this.o);this.C=!1};
h.vs=function(a,b){j5(this);2==b&&this.St()};
h.Ah=function(){if(c5(this)){$4(this);var a=xo(this.b);switch(a.b){case 1081:if(!this.B)break;case 1:f5(this);a5(this,new sq(8));break;case 3:a5(this,new sq(1));break;case 0:a5(this,new sq(2));this.H.stop();var b=this.g.b;l9(b.app,!0,b.playerType);Z4(this,this.g.b.getVideoData().lengthSeconds);break;case 2:a5(this,new sq(4));Z4(this,ro(a));break;case -1:a5(this,new sq);break;case -1E3:b={errorCode:"mdx.remoteerror",message:N("YTP_MDX_PLAYER_ERROR")},a5(this,new sq(128,b))}0==this.J&&(b=this.g.b,l9(b.app,
!1,b.playerType));this.J=a.b;a=xo(this.b).g;b=this.o;(a||b?a&&b&&a.trackName==b.trackName&&a.languageCode==b.languageCode&&a.languageName==b.languageName&&a.format==b.format&&a.kind==b.kind:1)||(this.o=a,i5(this,a));a=xo(this.b);-1==a.volume||Math.round(this.g.b.Mb())==a.volume&&this.g.b.bd()==a.muted||(this.g.b.removeEventListener("onVolumeChange",this.xj,this),a.muted?this.g.b.mute():this.g.b.Of(),this.g.b.setVolume(a.volume),this.g.b.addEventListener("onVolumeChange",this.xj,this))}else b5(this)};
h.Om=function(){c5(this)||b5(this)};
h.xG=function(){var a=this.L;$4(this);Z4(this,a);-1==xo(this.b).b?h5(this,a):this.b.seekTo(a);a5(this,new sq(1))};
h.St=function(){j5(this);$4(this);var a=this.b.A.getReconnectTimeout();2!=this.b.g||(0,window.isNaN)(a)?this.A=!1:this.G=Ti(x(this.St,this),1E3)};z(k5,o1);var qsa=["play_pause","seek","set_audio_track"],rsa=["captions"];h=k5.prototype;h.Cb=function(){return 1<this.N.length};
h.create=function(){k5.M.create.call(this);this.C.push(ej("yt-remote-before-disconnect",this.jC,this));this.C.push(ej("yt-remote-connection-change",this.ws,this));this.ws();var a=this.b.app.K;this.B&&this.B!=this.A&&1!=a&&3!=a&&this.load()};
h.destroy=function(){fj(this.C);this.C.length=0;Nb(this.g);this.g=null;k5.M.destroy.call(this)};
h.load=function(){if(!this.loaded){k5.M.load.call(this);this.g&&(this.o=new Y4(this,this.g));this.b.pauseVideo();this.X("command_redirect_controls",this,qsa,rsa);var a=Bp();if(0!=a){var b=this.g?xo(this.g).videoId:null;b&&b!=this.b.getVideoData().videoId||Ti(x(function(){this.H=a||0;this.b.Va("progresssync",a,void 0)},this),0)}}};
h.unload=function(){this.loaded&&(this.B=this.A,nq(this),Nb(this.o),this.o=null,k5.M.unload.call(this))};
h.T=function(){this.D&&this.destroy();Ob(this.o,this.g);this.g=this.o=null;k5.M.T.call(this)};
h.zc=function(a,b){this.o&&this.o.Dv.apply(this.o,arguments)};
h.getCurrentTime=function(){return this.H};
h.jC=function(a){1==a&&(this.J=this.g?xo(this.g):null);this.G=a};
h.ws=function(){var a=Ap();a?(this.g=a,this.G=this.J=null,this.load(),this.o||(this.o=new Y4(this,this.g))):(Nb(this.g),this.g=null,this.loaded&&1==this.G&&(this.unload(),(a=this.J)&&a.videoId==this.b.getVideoData().videoId?this.b.Kn(a.videoId,ro(a)):this.b.Kn(this.b.getVideoData().videoId)))};
h.xe=function(a,b){switch(a){case "casting":return!!this.g&&!!this.o;case "receivers":return this.N;case "currentReceiver":if(b)if("cast-selector-receiver"==b.key)Zl();else if(this.B=b||this.A,b.key==this.A.key)vp();else{var c=0,d="",e=this.b.ad();e&&(c=e.b,d=e.listId.toString());if(e=this.b.ad()){for(var f=[],k=0;k<e.A;k++)f[k]=e.Gb(k).videoId;e=f}else e=[this.b.getVideoData().videoId];c={videoIds:e,listId:d,videoId:this.b.getVideoData().videoId,index:c,currentTime:this.b.getCurrentTime()};yp(b,
c);Nb(this.o);this.o=null;this.load()}return this.B;case "castSelector":return c=rp(),c=1==c.length&&"cast-selector-receiver"==c[0].key,b&&c&&Zl(),c}};
h.Qf=function(){return["casting","receivers","currentReceiver","castSelector"]};z(m5,JK);m5.B="(max-width: 656px)";m5.A="(min-width: 657px)";m5.o="(min-width: 1294px) and (min-height: 630px)";m5.b="(min-width: 1720px) and (min-height: 980px)";m5.g="(min-width: 1320px) and (min-height: 870px)";h=m5.prototype;h.initialize=function(a){this.H=w(a)?window.document.getElementById(a):a;this.Ba(this.H)};
h.sA=function(){this.D=new ng(0,0,0,0);this.B=new ng(0,0,0,0)};
h.Zn=function(a){ke(this.element,arguments)};
h.kf=function(){if(this.b){var a=this.Ia();if(!a.isEmpty()){var b=!jf(a,qg(this.B)),c=n5(this);b&&(this.B.width=a.width,this.B.height=a.height);a=this.app.V;(c||b||a.ca)&&this.X("resize")}}};
h.TI=function(a,b){p5(this,b)};
h.uA=function(a){a.getVideoData()&&p5(this,a.getVideoData())};
h.Ia=function(){var a=this.app.V,b=Zh()==this.element;if(b&&Lp())return new hf(window.outerWidth,window.outerHeight);if(b||a.Be){var c;window.matchMedia&&(a="(width: "+window.innerWidth+"px) and (height: "+window.innerHeight+"px)",this.C&&this.C.media==a||(this.C=window.matchMedia(a)),c=this.C&&this.C.matches);if(c)return new hf(window.innerWidth,window.innerHeight)}else if(this.K){if(this.app.ia)return new hf(this.element.clientWidth,this.element.clientHeight);if(this.K.matches)return new hf(426,
240);a=this.app.ia;if((a?this.ba:this.$).matches)return new hf(1280,720);if(a||this.ca.matches)return new hf(854,480);if(this.ea.matches)return new hf(640,360)}return new hf(this.element.clientWidth,this.element.clientHeight)};
h.Pz=function(){this.b&&r2(this);this.kf()};
h.T=function(){this.A&&(this.A.disconnect(),this.A=null);this.F&&fj(this.F);this.b=this.o=this.H=null;m5.M.T.call(this)};ca(v5);var L4=q("yt.player.utils.VideoTagPool.instance")||v5.getInstance();g.ba("yt.player.utils.VideoTagPool.instance",L4,void 0);h=v5.prototype;h.Sp=function(a){if(!(this.b.length>=a)){a-=this.b.length;for(var b=0;b<a;b++){var c=w5(this);this.b.push(c)}}};
h.mz=function(a,b){return this.b.length?this.b.pop():w5(this,a,b)};
h.TF=function(a){if(a&&gb(this.g,a)){a.src&&(lA&&0<a.readyState&&(a.currentTime=Math.max(Ura,0)),a.removeAttribute("src"),a.load(),!a.b||!a.b.b||a.b&&Wz(a.b,null)||(a.b&&a.b.dispose(),a.b=null));for(var b in gm)gm[b][0]==a&&km(b);pb(this.g,a)}};
h.vA=function(a){return this.b.length>=(a||1)};
h.ry=function(){this.b.length==this.g.length&&4<=this.b.length||(4>this.g.length?this.Sp(4):(this.b=[],F(this.g,function(a){a.src||a.load();this.b.push(a)},this)))};
v5.prototype.fillPool=v5.prototype.Sp;v5.prototype.getTag=v5.prototype.mz;v5.prototype.releaseTag=v5.prototype.TF;v5.prototype.hasTags=v5.prototype.vA;v5.prototype.activateTags=v5.prototype.ry;z(x5,pk);h=x5.prototype;h.OI=function(a){a=rm(a);if(!gf(a,this.o)){var b=2;this.C&&(b|=8);this.o=a;this.zb(b,!0)}};
h.IB=function(){this.C&&this.zb(8,!0);this.zb(2,!1)};
h.Jv=function(a){var b=rm(a);gf(b,this.o)||(this.o=b,(a=om(a))&&this.N(a)&&(this.zb(4,!0),this.b.sa(this.K),this.K=null,this.H=this.b.S(this.A,"mouseout",this.QI)))};
h.QI=function(a){a=qm(a);a&&this.N(a)||(this.o=new ff(window.NaN,window.NaN),y5(this))};
h.sB=function(){this.zb(1,!0)};
h.gz=function(a){a=om(a);a instanceof window.Element&&!(0<a.tabIndex)||this.zb(1,!0)};
h.Iv=function(){this.C=!0;this.b.sa(this.B);this.B=this.b.S(window.document,"mouseup",this.RI)};
h.RI=function(){this.C=!1;this.zb(8,!1);this.b.sa(this.B);this.B=this.b.S(this.A,"mousedown",this.Iv)};
h.Kv=function(a){if(a=a.changedTouches[0])this.R=a.identifier,this.b.sa(this.D),this.D=this.b.S(this.A,"touchend",this.SI),this.zb(1024,!0)};
h.SI=function(a){for(var b,c=0;c<a.changedTouches.length;c++){var d=a.changedTouches[c];if(d.identifier==this.R){b=d;break}}b&&(this.b.sa(this.D),this.D=this.b.S(this.A,"touchstart",this.Kv),this.zb(1024,!1))};
h.zb=function(a,b){this.isDisposed();var c=!this.g;b?(this.g|=a,a&1&&this.F.start(),a&2&&this.G.start()):(this.g&=~a,a&1&&this.F.stop(),a&2&&this.G.stop(),a&512&&this.J.stop());this.g&512&&!(this.g&128)&&this.J.te(this.L);var d=!this.g;c!=d&&this.X("autohideupdate",d)};z(z5,R);z5.prototype.G=function(a,b){Vi(this.b);this.context&&(this.b=Oq(x(this.G,this,a,b),b),a.call(this,new Date-this.F))};
z5.prototype.T=function(){Vi(this.b);this.context=null;z5.M.T.call(this)};z(B5,z5);B5.prototype.show=function(){B5.M.show.call(this);var a=this.J;this.F=new Date;this.G(a,75)};
B5.prototype.J=function(){var a=1-1/1.5;this.o=(this.o+this.D)%(this.width*a);this.A=(this.A+this.C)%(this.height*a);this.context.drawImage(this.H,-1*this.o,-1*this.A);this.context.fillRect(0,this.B,this.width,75);this.B=(this.B+75+7)%this.height-75};
B5.prototype.oa=function(){Vi(this.b);B5.M.oa.call(this)};z(E5,R);var Nla=/<a\s+href=["']([^"']+)["'](?:\s+target=["']([^"']+)["'])?>([^<>]+)<\/a>/;E5.prototype.show=function(){E5.M.show.call(this);this.b&&this.b.show()};
E5.prototype.oa=function(){E5.M.oa.call(this);this.b&&this.b.oa()};
E5.prototype.B=function(a){if(wr(a,this.o,!xr(S(this.o)))){a={as3:!1,html5:!0,player:!0,cpn:this.o.getVideoData().clientPlaybackNonce};var b=this.o;b.za("onFeedbackArticleRequest",{articleId:3037019,helpContext:"player_error",productData:a});b.Qa()&&yr(b)}};z(K5,R);z(M5,R);M5.prototype.show=function(){M5.M.show.call(this);this.D()};
M5.prototype.oa=function(){M5.M.oa.call(this);this.C.stop()};
M5.prototype.D=function(){var a=gJ(this.b),b=this.b.getVideoData(),c=this.b.D.b,d=this.b.V,e=a.Ml(),f=this.b.ha.H.Pa(),k=8*$a(f)/1024,l=b.xa,m;m=this.b;m=(m=m.g&&m.g.N)?m.A.Pa():[0];var n=$a(m),t=a.Oa.Pa(),u=$a(t),n=120<n||0>n?"Uncertain":n.toFixed(1)+" s, "+(b.isLowLatencyLiveStream?"Optimized for Low Latency":"Optimized for Smooth Streaming"),y=a.F?a.F.b:null,E=y&&y.b,D=window.devicePixelRatio||1,W=ZH(b,a.getCurrentTime()),W=W?W.sequence:window.NaN,O=b.videoId,Q=b.clientPlaybackNonce,bb=b.clientPlaybackNonce?
"":"display:none",e=e.totalVideoFrames?""+(e.droppedVideoFrames||0)+"/"+e.totalVideoFrames:"-",a=a.A?NF(a.A):"",jb;a:{if(b.qa&&(jb=b.qa.match(/url=(https?)/))&&2==jb.length){jb=jb[1];break a}jb=""}c={video_id:O,cpn:Q,cpn_style:bb,mime:"",dash:"no",dropped_frames:e,stream_host:a,stream_type:jb||d.ba,dimensions:c.clientWidth+" x "+c.clientHeight+(1<D?" * "+D:""),resolution:c.videoWidth+" x "+c.videoHeight,volume:Math.round(this.b.Ya.Mb())+"%",bandwidth_kbps:k.toFixed(0)+" Kbps",buffer_health_seconds:u.toFixed(1)+
" s",live_latency_style:l?"":"display:none",live_latency_message:n,drm_style:E?"":"display:none",drm:E?y.b+" / "+y.g:"",sequence_number:W,sequence_number_style:"display:none"};b.g&&(d=xG(b.g)?"yes":"no",d+=" ("+Fu(b.g),b.B&&xG(b.g)&&(d+="/"+Fu(b.B)),c.dash=d+")",c.mime=b.g.mimeType,d=b.g.video.fps,1<d&&(c.resolution+="@"+d),b.g.video.b||b.g.video.primaries?(d=b.g.video.b||"unknown","smpte2084"==d?d+=" (PQ)":"arib-std-b67"==d&&(d+=" (HLG)"),c.color=d+" / "+(b.g.video.primaries||"unknown"),c.color_style=
""):c.color_style="display:none");L5(this.o,f);L5(this.B,m);L5(this.A,t);this.update(c);this.C.start()};z(N5,G);h=N5.prototype;h.wh=v;h.hc=v;h.bo=v;h.Ys=v;h.rk=v;h.Tf=v;h.Sf=v;h.canPlayType=v;h.$g=v;h.Ov=v;h.Rf=v;h.ao=v;h.di=v;h.Vi=v;h.he=v;h.Wi=v;h.getCurrentTime=v;h.tk=v;h.lf=v;h.load=v;h.pause=v;h.play=v;h.ye=v;h.Hl=v;h.jb=v;h.Mv=v;h.Jl=v;h.Qv=v;h.sk=v;h.setSize=v;h.Bd=v;h.setVolume=v;h.Nv=v;h.Rv=v;h.Sv=v;h.fn=v;h.setAttribute=v;h.jp=v;h.Vt=v;h.Lv=v;h.removeAttribute=v;h.$n=v;h.Pv=v;h.hasAttribute=v;h.kc=v;h.getStyle=v;h.Xs=v;
h.Vp=function(a,b){this.$g()||this.getCurrentTime()>a||10<b||(this.play(),Ti(x(this.Vp,this,this.getCurrentTime(),b+1),500))};
h.seekTo=function(a){0<this.ye()&&(P5&&4>KH&&(a=Math.max(.1,a)),this.tk(a))};
h.addEventListener=function(a,b,c,d){this.A.O(a,b,!1,d);this.Pp(a)};
h.removeEventListener=function(a,b,c,d){this.A.sa(a,b,!1,d)};
h.dispatchEvent=function(a){return this.A.dispatchEvent(a)};
h.Fp=function(){this.B&&!this.ao()&&this.di(!0)};
h.T=function(){this.C&&this.removeEventListener("volumechange",this.Fp,!1,this);N5.M.T.call(this)};
h.Pp=v;z(R5,mc);R5.prototype.preventDefault=function(){R5.M.preventDefault.call(this);this.b&&this.b.preventDefault()};
R5.prototype.stopPropagation=function(){R5.M.stopPropagation.call(this);this.b&&this.b.stopPropagation()};z(K4,N5);h=K4.prototype;h.wh=function(){return!0};
h.la=function(){return this.b};
h.hc=function(){return this.b.src};
h.bo=function(a){var b=this.b.playbackRate;this.b.src=a;this.b.playbackRate=b};
h.Ys=function(){this.b.removeAttribute("src")};
h.rk=function(){return this.b.playbackRate};
h.Tf=function(a){this.b.playbackRate=a};
h.Sf=function(a){this.b.loop=a};
h.canPlayType=function(a,b){return this.b.canPlayType(a,b)};
h.$g=function(){return this.b.paused};
h.Ov=function(){return this.b.seeking};
h.Rf=function(){return this.b.ended};
h.ao=function(){return this.b.muted};
h.di=function(a){this.b.muted=a};
h.Vi=function(){return this.b.played||sC()};
h.he=function(){return this.b.buffered||sC()};
h.Wi=function(){return this.b.seekable||sC()};
h.getCurrentTime=function(){return this.b.currentTime};
h.tk=function(a){this.b.currentTime=a};
h.lf=function(){return this.b.duration};
h.load=function(){var a=this.b.playbackRate;this.b.load();this.b.playbackRate=a};
h.pause=function(){this.b.pause()};
h.play=function(){var a=this.b.play();a&&a.then&&a.then(void 0,function(a){1E-4>Math.random()&&Xi(a)})};
h.ye=function(){return this.b.readyState};
h.Hl=function(){return this.b.networkState};
h.jb=function(){return this.b.error?this.b.error.code:null};
h.Mv=function(){var a={};if(this.b){if(this.b.getVideoPlaybackQuality)return this.b.getVideoPlaybackQuality();this.b.webkitDecodedFrameCount&&(a.totalVideoFrames=this.b.webkitDecodedFrameCount,a.droppedVideoFrames=this.b.webkitDroppedFrameCount)}return a};
h.Nv=function(){return!!this.b.webkitCurrentPlaybackTargetIsWireless};
h.Rv=function(){return!!this.b.webkitShowPlaybackTargetPicker()};
h.Sv=function(){this.b.webkitSetPresentationMode("picture-in-picture"==this.b.webkitPresentationMode?"inline":"picture-in-picture")};
h.Jl=function(){return Ns(this.b)};
h.Qv=function(a){return Ms(this.b,a)};
h.sk=function(){return Zs(this.b)};
h.setSize=function(a){return Xs(this.b,a)};
h.Bd=function(){return this.b.volume};
h.setVolume=function(a){this.b.volume=a};
h.Pp=function(a){if(!this.o[a]){var b=x(this.VI,this);this.b.addEventListener(a,b);this.o[a]=b}};
h.VI=function(a){this.dispatchEvent(new R5(this,a.type,a))};
h.fn=function(a){a?this.b.setAttribute("crossorigin","anonymous"):this.b.removeAttribute("crossorigin")};
h.setAttribute=function(a,b){this.b.setAttribute(a,b)};
h.removeAttribute=function(a){this.b.removeAttribute(a)};
h.hasAttribute=function(a){return this.b.hasAttribute(a)};
h.jp=function(a){for(var b=0;b<a.length;b++)this.b.appendChild(a[b])};
h.Vt=function(){return!!this.b.textTracks};
h.Lv=function(){this.b.webkitExitFullScreen&&this.b.webkitExitFullScreen()};
h.$n=function(a){I(this.b,a)};
h.Pv=function(a){me(this.b,a)};
h.kc=function(a,b){Gs(this.b,a,b)};
h.getStyle=function(a){return Is(this.b,a)};
h.Xs=function(){If(this.b)};
h.T=function(){for(var a in this.o)this.b.removeEventListener(a,this.o[a]);K4.M.T.call(this)};var T5=null;S5.prototype.initialize=function(){var a=window.AudioContext||window.webkitAudioContext;if(a&&!T5)try{T5=new a}catch(b){this.Y.app.g.Uh(new mC("html5.webaudio",!1,{name:b.name}))}};
S5.prototype.isDisposed=function(){return this.A};
S5.prototype.dispose=function(){this.A=!0;X5(this);this.b=this.g=null};z(Y5,Fx);Y5.prototype.H=function(a){this.B&&this.B(a)?this.o=!0:this.g.isActive()?(this.g.stop(),this.A(a),this.o=this.b=!1):(this.C=a,this.g.start(),this.b=!0)};
Y5.prototype.F=function(a){this.o?this.o=!1:this.b&&this.A(a)};
Y5.prototype.D=function(){this.G(this.C);this.b=!0};z(Z5,JK);Z5.prototype.A=function(){var a=this.o.Pf();this.C.style.width=100*$1(new X1(a.seekableStart,a.seekableEnd),a.current,0)+"%"};
Z5.prototype.B=function(){2==this.o.getPresentingPlayerType()?this.b||(this.show(),this.b=this.S(this.o,"progresssync",this.A),this.A()):this.b&&(this.oa(),this.sa(this.b),this.b=null)};z($5,R);$5.prototype.D=function(){this.element.removeAttribute("aria-hidden");this.oa()};
$5.prototype.B=function(){this.show();this.o.start()};
$5.prototype.C=function(){this.element.setAttribute("aria-hidden",!0);this.b.start()};z(e6,R);e6.prototype.T=function(){this.b&&this.b();e6.M.T.call(this)};
e6.prototype.B=function(){hj("iv-button-mouseover")};
e6.prototype.A=function(a){Lr(this.Y);var b=je(this.Y.Da(),"ytp-cards-teaser-shown");hj("iv-teaser-clicked",b);a=0==a.screenX&&0==a.screenY;this.Y.$h(!sJ(this.Y),a,"YOUTUBE_DRAWER_MANUAL_OPEN")};z(g6,JK);h=g6.prototype;h.show=function(){var a=i6(this);g6.M.show.call(this);this.da&&(this.K=this.S(window,"blur",this.ub),this.R=this.S(window.document,"click",this.AJ));a||this.X("show",!0)};
h.oa=function(){var a=i6(this);g6.M.oa.call(this);h6(this);a&&this.X("show",!1)};
h.Uf=function(a,b){this.C=a;this.H.show();a&&(b&&(this.ca=this.S(this.Y,"appresize",this.gp),this.gp()),a.getAttribute("aria-haspopup"),a.setAttribute("aria-expanded",!0),window.document.activeElement&&Qf(a,window.document.activeElement)&&this.focus())};
h.gp=function(){O8(this.L,this.element,this.C)};
h.ub=function(){var a=i6(this);h6(this);Av(this.H);a&&this.X("show",!1)};
h.Ye=function(a,b){i6(this)?this.ub():this.Uf(a,b)};
h.AJ=function(a){var b=pm(a);b&&(Qf(this.element,b)||this.C&&Qf(this.C,b)||!Rq(a))||this.ub()};z(j6,g6);h=j6.prototype;h.show=function(){j6.M.show.call(this);this.Oh()};
h.oa=function(){j6.M.oa.call(this);o6(this);1>=this.b.length||(this.A.Fa("back",this.qe,this),this.b[this.b.length-1].detach(),k6(this,this.b[0]),this.b=[this.A],this.A.Ba(this.element),this.Oh())};
h.Oh=function(){o6(this);this.g&&(l6(this),Xs(this.element,this.size))};
h.qe=function(){var a=this.b.pop();m6(this,a,this.b[this.b.length-1],!0)};
h.sG=function(a,b,c){this.F.dispose();this.F=null;I(this.element,"ytp-popup-animating");c?(I(a.element,"ytp-panel-animate-forward"),me(b.element,"ytp-panel-animate-back")):(I(a.element,"ytp-panel-animate-back"),me(b.element,"ytp-panel-animate-forward"));Xs(this.element,this.size);this.D=new ge(qa(this.wJ,a,b),250,this);this.D.start()};
h.wJ=function(a){me(this.element,"ytp-popup-animating");a.detach();ne(a.element,["ytp-panel-animate-back","ytp-panel-animate-forward"]);this.D.dispose();this.D=null};
h.xJ=function(a){if(!tm(a))switch(um(a)){case 27:this.ub();sm(a);break;case 37:1<this.b.length&&this.qe();sm(a);break;case 39:sm(a)}};
h.focus=function(){this.A.focus()};
h.T=function(){j6.M.T.call(this);this.F&&this.F.dispose();this.D&&this.D.dispose()};z(q6,JK);q6.prototype.va=function(a,b){q6.M.va.call(this,a,b);this.X("size-change")};z(s6,JK);s6.prototype.ea=function(){this.X("size-change")};
s6.prototype.focus=function(){this.ba.focus()};
s6.prototype.da=function(){this.X("back")};z(t6,s6);t6.prototype.R=function(){this.o.X("size-change")};
t6.prototype.focus=function(){for(var a=0,b=0;b<this.b.length;b++)if("true"==this.b[b].element.getAttribute("aria-checked")){a=b;break}this.b[a].focus()};z(v6,q6);v6.prototype.b=function(a){tm(a)||39!=um(a)||(this.element.click(),sm(a))};z(x6,q6);x6.prototype.G=function(){y6(this,!this.b);this.X("select",this.b)};
x6.prototype.getValue=function(){return this.b};z(B6,t6);h=B6.prototype;h.LB=function(a){Rq(a)&&this.Y.pauseVideo();this.G.ub()};
h.KC=function(){Pq(this.B.element)};
h.dD=function(){C6(this,this.Y.bk(!0))&&a6(this.L.D,{I:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},P:[{I:"path",U:{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"}}]})};
h.eD=function(){C6(this,this.Y.Eu())&&a6(this.L.D,xh?{I:"div",fa:["ytp-icon","ytp-icon-code"]}:{I:"svg",U:{height:"100%",viewBox:"0 0 36 36",width:"100%"},P:[{I:"path",U:{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"}}]})};
h.hD=function(){C6(this,this.Y.getVideoUrl(!0,!0))&&a6(this.L.D,Dh())};
h.gD=function(){C6(this,this.Y.getVideoUrl(!1,!0))&&a6(this.L.D,Dh())};
h.vD=function(a){y6(this.J,a)};
h.wD=function(){var a=this.J.getValue();s9(this.Y.app,a);this.G.ub()};
h.wE=function(a){var b=gJ(this.Y.app);b&&b.Uh(new mC("feedback",!1,{gpu:rq()}));if(wr(a,this.Y,!xr(S(this.Y)))){a=this.Y;var b={as3:!1,html5:!0,player:!0},c=a.iq();c.debug_error&&(b.player_error=c.debug_error.errorCode,b.player_error_details=c.debug_error.errorDetail);b.debug_text=a.bk(!0);a.za("onFeedbackStartRequest",b);a.Qa()&&yr(a)}this.G.ub()};
h.KE=function(){this.Y.Ku();this.G.ub()};
h.iJ=function(a,b){A6(this,b)};z(E6,j6);h=E6.prototype;h.show=function(){this.G||(this.G=new B6(this.B,this.L,this),H(this,this.G),n6(this,this.G));E6.M.show.call(this)};
h.oa=function(){D6(this);E6.M.oa.call(this)};
h.JC=function(a){var b=pm(a);if(!(this.g||b&&(Yf(b,"a")||Zf(b,"ytp-no-contextmenu")))){sm(a);F6(this);this.element.style.left="";this.element.style.top="";var c=rm(a);c.x++;c.y++;this.Uf();b=Rs(window.document.body);a=this.size;c=c.clone();a=a.clone();if(b){var d=c,e=a,f=5;65==(f&65)&&(d.x<b.left||d.x>=b.right)&&(f&=-2);132==(f&132)&&(d.y<b.top||d.y>=b.bottom)&&(f&=-5);d.x<b.left&&f&1&&(d.x=b.left);if(f&16){var k=d.x;d.x<b.left&&(d.x=b.left);d.x+e.width>b.right&&(e.width=Math.min(b.right-d.x,k+e.width-
b.left),e.width=Math.max(e.width,0))}d.x+e.width>b.right&&f&1&&(d.x=Math.max(b.right-e.width,b.left));d.y<b.top&&f&4&&(d.y=b.top);f&32&&(k=d.y,d.y<b.top&&(d.y=b.top),d.y+e.height>b.bottom&&(e.height=Math.min(b.bottom-d.y,k+e.height-b.top),e.height=Math.max(e.height,0)));d.y+e.height>b.bottom&&f&4&&(d.y=Math.max(b.bottom-e.height,b.top))}b=new ng(0,0,0,0);b.left=c.x;b.top=c.y;b.width=a.width;b.height=a.height;Ms(this.element,rg(b));Hx(this.o);this.o.S(window.document,"contextmenu",this.QC);this.o.S(this.B,
"fullscreentoggled",this.jJ);this.o.S(this.B,"pageTransition",this.UD)}};
h.QC=function(a){tm(a)||Qf(this.element,pm(a))||this.ub()};
h.jJ=function(){this.ub();F6(this)};
h.UD=function(){this.ub()};z(G6,MK);h=G6.prototype;h.show=function(){this.g||(this.F.S(this.b,"videodatachange",this.B.te,this.B),this.F.S(this.b,"videoplayerreset",this.B.te,this.B));G6.M.show.call(this)};
h.oa=function(){Hx(this.F);G6.M.oa.call(this)};
h.kJ=function(){this.C.isActive()||(this.D.show(),this.C.start())};
h.lJ=function(){this.C.isActive()&&(this.C.stop(),Av(this.D))};
h.JD=function(){Av(this.D)};
h.mJ=function(a){120<om(a).naturalWidth&&I(this.element,"ytp-moving-thumbnail-loaded")};
h.oJ=function(a){var b=S(this.b);b.experiments.Z("disable_new_pause_state3")&&xr(b)&&(a=Dq(a.state)&&!Dq(a.b)||mJ(this.b)&&P(a.state,2),Gs(this.element,"transition-delay",a?"2s":""));this.B.te()};
h.nJ=function(){this.element.style.backgroundImage=""};
h.Vv=function(){3==this.b.getPresentingPlayerType()?this.A.show():H6(this.A,this.b,os(this.b));this.g&&3!=this.A.b&&this.BG(this.b.ad(),this.b.getVideoData())};
h.BG=function(a){for(var b=S(this.b),c,d,e=0;e<arguments.length;e++){var f=arguments[e];if(!(!f||f instanceof GH&&!f.videoId)){d=Ky(this.b).Ia();var k=d.width,l=d.height,m=b.experiments.Z("hq_cued_thumbnail")&&!b.isMobile;320<k&&180<l&&(c=f.Ui());if(m?640<k||480<l:900<k||600<l)if(d=f.Gc(b,"maxresdefault.jpg"))break;if(m?320<k||180<l:430<k||320<l)if(d=f.Gc(b,"sddefault.jpg")||f.Gc(b,"hqdefault.jpg")||f.Gc(b,"mqdefault.jpg"))break;if(d=f.Gc(b,"default.jpg"))break}}this.G.style.backgroundImage=d?"url("+
d+")":"";this.o&&(this.o.va("url","data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"),(b=c)&&5E5<fD(this.H.app.ha)&&this.o.va("url",b))};z(I6,Fx);
I6.prototype.C=function(a){var b=!1,c=um(a),d=pm(a),e=!a.altKey&&!a.ctrlKey&&!a.metaKey,f=!1,k=!1,l=S(this.b);tm(a)?(e=!1,k=!0):l.Lb&&(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(this.A&&this.A.g&&e&&!f)switch(c){case 65:case 68:case 87:case 83:case 107:case 109:f=a7(this.A,c)}l.Ub||!e||f||(f=String.fromCharCode(c).toLowerCase(),this.o+=f,0=="awesome".indexOf(this.o)?(f=!0,7==this.o.length&&(m=this.b.Da(),d=!je(m,"ytp-color-party"),
J(m,"ytp-color-party",d))):(this.o=f,f=0=="awesome".indexOf(this.o)));if(e&&!f){switch(c){case 32:b6(this.g);uq(os(this.b))?this.b.pauseVideo():this.b.yd();k=f=!0;break;case 37:a6(this.g,xh?{I:"div",fa:["ytp-icon","ytp-icon-rewind-five-seconds"]}:{I:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},P:[{I:"path",Ea:!0,W:"ytp-svg-fill",U:{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"}}]});
this.b.zd(-5*this.b.app.L);k=f=!0;break;case 39:a6(this.g,xh?{I:"div",fa:["ytp-icon","ytp-icon-forward-five-seconds"]}:{I:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},P:[{I:"path",Ea:!0,W:"ytp-svg-fill",U:{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"}}]});
this.b.zd(5*this.b.app.L);k=f=!0;break;case 38:k=Math.min(this.b.Mb()+5,100);c6(this.g,k,!1);this.b.setVolume(k);k=f=!0;break;case 40:k=Math.max(this.b.Mb()-5,0);c6(this.g,k,!0);this.b.setVolume(k);k=f=!0;break;case 27:this.G()&&(k=f=!0);break;case 36:this.b.seekTo(0);k=f=!0;break;case 35:this.b.seekTo(window.Infinity),k=f=!0}if("3"!=l.A)switch(c){case 67:nJ(jq(this.b),"captions")&&(f=this.b.Ib("captions","track"),oJ(this.b),k=this.g,f=f&&f.displayName?N("YTP_SUBTITLES_OFF"):N("YTP_SUBTITLES_ON"),
a6(k,Nh(),f),k=f=!0);break;case 66:M6(this,"background")&&(f=!0);break;case 79:M6(this,"textOpacity")&&(f=!0);break;case 87:M6(this,"windowOpacity")&&(f=!0);break;case 187:M6(this,"fontSizeIncrement",!1,!0)&&(f=!0);break;case 189:M6(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.b.Pf(),this.b.seekTo(n/10*(k.seekableEnd-k.seekableStart)+k.seekableStart),k=f=!0)}}b&&this.B(!0);(b||k)&&this.F.zb(2,!0);(f||e&&K6(this,c,a.shiftKey))&&sm(a);l.Ra&&
this.b.za("onKeyPress",{keyCode:um(a),altKey:a.altKey,ctrlKey:a.ctrlKey,metaKey:a.metaKey,shiftKey:a.shiftKey,handled:tm(a),fullscreen:this.b.Qa()})};
I6.prototype.D=function(a){a=um(a);this.A&&this.A.g&&b7(this.A,a);9==a&&this.B(!0)};
I6.prototype.B=function(a){J(this.b.Da(),"ytp-keyboard-focus",a);J(this.H.element,"ytp-keyboard-focus",a)};z(O6,R);O6.prototype.B=function(a){var b=S(this.b);b.experiments.Z("disable_new_pause_state3")&&xr(b)&&Gs(this.element,"transition-delay",Dq(a.state)&&!Dq(a.b)?"2s":"");N6(this,a.state)};z(P6,R);P6.prototype.A=function(a){wr(a,this.b)&&this.b.Mn(this.o)};z(Q6,g6);h=Q6.prototype;h.show=function(){Q6.M.show.call(this);this.o.addEventListener("videodatachange",this.gi,this);this.o.addEventListener("onPlaylistUpdate",this.gi,this);this.gi()};
h.oa=function(){Q6.M.oa.call(this);this.o.removeEventListener("videodatachange",this.gi,this);this.o.removeEventListener("onPlaylistUpdate",this.gi,this);R6(this,null)};
h.gi=function(){R6(this,this.o.ad());var a=this.b.author;this.update({title:this.b.title,subtitle:N(a?"YTP_PLAYLIST_AUTHOR_AND_POSITION":"YTP_PLAYLIST_POSITION",{AUTHOR:a,CURRENT_POSITION:this.b.b+1,PLAYLIST_LENGTH:this.b.A}),playlisturl:this.o.getVideoUrl(!0)});this.Xm()};
h.Xm=function(){var a=this.b.F;if(a==this.D)this.B.element.setAttribute("aria-checked",!1),this.B=this.A[this.b.b];else{for(var b=0;b<this.A.length;b++)this.A[b].dispose();var c=this.b.A;this.A=[];for(b=0;b<c;b++){var d=new P6(this.o,this.b,b);this.A.push(d);d.Ba(this.F)}this.B=this.A[this.b.b];this.D=a}this.B.element.setAttribute("aria-checked",!0)};
h.WE=function(a){var b=this.o.getVideoUrl(!0);zr(b,this.o,a)};
h.focus=function(){this.B.focus()};
h.T=function(){this.oa();Q6.M.T.call(this)};z(S6,R);S6.prototype.o=function(){this.b&&2!=this.A.getPresentingPlayerType()&&400<=Ky(this.A).Ia().width?(this.update({text:N("YTP_PLAYLIST_POSITION",{CURRENT_POSITION:this.b.b+1,PLAYLIST_LENGTH:this.b.A}),title:N("YTP_PLAYLIST_NAME",{PLAYLIST_NAME:this.b.title})}),this.g||(this.show(),z7(this.B))):this.g&&(this.oa(),z7(this.B))};
S6.prototype.C=function(){this.b&&this.b.Fa("shuffle",this.o,this);(this.b=this.A.ad())&&this.b.subscribe("shuffle",this.o,this);this.o()};z(T6,R);T6.prototype.A=function(a){this.fb(P(a.state,2))};
T6.prototype.o=function(){os(this.b);this.b.yd()};z(U6,g6);h=U6.prototype;h.XD=function(a){a=pm(a);Qf(this.G,a)||Qf(this.D,a)||this.Ye()};
h.ub=function(){U6.M.ub.call(this);this.A.$f(this.element)};
h.show=function(){var a=this.g;U6.M.show.call(this);this.Zv();a||this.o.za("onSharePanelOpened")};
h.Zv=function(){I(this.element,"ytp-share-panel-loading");me(this.element,"ytp-share-panel-fail");var a=this.o.getVideoData(),b=this.o.we(),c=b&&this.F.checked;J(this.element,"ytp-share-panel-has-playlist",!!b);var d={action_get_share_info:1,feature:"player_embedded",video_id:a.videoId},e=S(this.o);e.Ob&&(d.authuser=e.Ob);e.pageId&&(d.pageid=e.pageId);c&&(d.list=b);bk(S(this.o).baseYtUrl+"share_ajax",{method:"GET",onError:x(this.Qt,this),rb:x(function(a,b){if(b){if(b.actions&&I5(b.actions),!this.isDisposed()){me(this.element,
"ytp-share-panel-loading");V6(this);for(var c=b.links,d=0,e=0;e<c.length&&3>d;e++){var t=c[e],u=Gla(t.img);u&&(u=new R({I:"a",fa:["ytp-share-panel-service-button","ytp-button"],U:{href:t.url,target:"_blank",title:t.sname},P:[u]}),u.O("click",qa(this.EE,t.url)),Mb(u,f6(this.A,u.element)),this.b.push(u),d++)}c=new R({I:"a",fa:["ytp-share-panel-service-button","ytp-button"],P:[{I:"span",W:"ytp-share-panel-service-button-more",P:[xh?{I:"div",fa:["ytp-icon","ytp-icon-share-more"]}:{I:"svg",U:{height:"100%",
version:"1.1",viewBox:"0 0 38 38",width:"100%"},P:[{I:"rect",U:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{I:"path",U:{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"}}]}]}],U:{href:b.more,target:"_blank",title:N("YTP_MORE")}});c.O("click",x(this.DD,this,b.more));Mb(c,f6(this.A,c.element));this.b.push(c);this.va("buttons",this.b)}}else this.Qt()},this),
Zc:d,withCredentials:!0});a=e.getVideoUrl(a.videoId,c?b:void 0,void 0,!0);this.va("link",a);this.va("linkText",a);Pq(this.B)};
h.Qt=function(){me(this.element,"ytp-share-panel-loading");I(this.element,"ytp-share-panel-fail")};
h.EE=function(a,b){if(Rq(b)){var c={};c.target=c.target||"YouTube";c.width=c.width||"600";c.height=c.height||"600";var d=c;d||(d={});var c=window,e;e=a instanceof Ee?a:Ie("undefined"!=typeof a.href?a.href:String(a));var f=d.target||a.target,k=[],l;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))}l=k.join(",");(wc()||uc("iPad")||uc("iPod"))&&c.navigator&&c.navigator.standalone&&f&&
"_self"!=f?(l=c.document.createElement("A"),kf(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=Fe(e),c&&(cB&&-1!=e.indexOf(";")&&(e="'"+e.replace(/'/g,"%27")+"'"),c.opener=null,e=$e(ze("b/12014412, meta tag with sanitized URL"),'<META HTTP-EQUIV="refresh" content="0; url='+Ea(e)+'">'),c.document.write(Pe(e)),c.document.close())):
c=c.open(Fe(e),f,l);c&&(c.opener||(c.opener=window),c.focus());sm(b)}};
h.DD=function(a,b){zr(a,this.o,b)&&this.o.za("SHARE_CLICKED")};
h.DJ=function(a){!a&&i6(this)&&this.Ye()};
h.focus=function(){this.B.focus()};
h.T=function(){U6.M.T.call(this);V6(this)};z(W6,R);W6.prototype.o=function(){var a=S(this.b).Ae&&2!=this.b.getPresentingPlayerType();J(this.A,"ytp-share-button-visible",!!this.b.getVideoData().videoId&&300<=Ky(this.b).Ia().width&&!a)};
W6.prototype.T=function(){W6.M.T.call(this);me(this.A,"ytp-share-button-visible")};z(X6,R);var ssa=.0035*.006;h=X6.prototype;
h.fo=function(){var a=qJ(this.b).shader;"Spherical"==a||"Spherical3D"==a?this.g||(a=Ky(this.b).o,I(this.b.Da(),"ytp-webgl-spherical"),this.show(),this.A=new U1(a,!0,null,!0),this.A.subscribe("dragstart",this.TC,this),this.A.subscribe("dragmove",this.Tr,this),this.A.subscribe("dragend",this.SC,this),this.o=new U1(this.element,!0),this.o.subscribe("dragstart",this.WD,this),this.o.subscribe("dragend",this.VD,this),this.ca=this.O("keydown",this.GJ),this.$=this.O("keyup",this.nD),this.S(a,"click",this.FJ,
this)):this.g&&(Z6(this),me(this.b.Da(),"ytp-webgl-spherical"),this.oa(),this.A.dispose(),this.A=null,this.o.dispose(),this.o=null,this.sa(this.ca),this.sa(this.$))};
h.WD=function(a,b,c){var d=Qs(c);a=a-d.x-c.clientWidth/2;b=b-d.y-c.clientHeight/2;Math.abs(a)>Math.abs(b)?Y6(this,0<a?-1:1,0,0):Y6(this,0,0<b?-1:1,0)};
h.VD=function(){Z6(this);this.C.start()};
h.TC=function(a,b){Z6(this);this.K=!1;this.R=new ff(a,b);I(this.b.Da(),"ytp-dragging")};
h.Tr=function(a,b){var c=new ff(a,b),d;d=this.R;d=new ff(c.x-d.x,c.y-d.y);2<Math.sqrt(d.x*d.x+d.y*d.y)&&(this.K=!0);this.R=c;var c=qJ(this.b),e=c.fov,f=Math.PI*e*.8,k=Ky(this.b).Ia();d.scale(1/k.width*f,1/k.height*f);$6(this,c.yaw+d.x,c.pitch+d.y,e,c,C())};
h.SC=function(a,b){this.Tr(a,b);me(this.b.Da(),"ytp-dragging");this.C.start()};
h.FJ=function(a){this.K&&(a.stopPropagation(),this.K=!1)};
h.EJ=function(a){if(1E-5>Math.abs(this.F)&&1E-5>Math.abs(this.D)&&!this.J&&!this.G&&0==this.B.length)Z6(this),this.D=this.F=0;else{var b=qJ(this.b),c=b.yaw,d=b.pitch,e=b.fov,f=a-this.N,k=ssa*e,c=c+(this.F+(k*this.J-.006*this.F)*f)*f,d=d+(this.D+(k*this.G-.006*this.D)*f)*f;$6(this,c,d,e,b,a);this.C.start()}};
h.GJ=function(a){!tm(a)&&a7(this,um(a))&&sm(a)};
h.nD=function(a){b7(this,um(a))};
h.T=function(){this.o&&(this.A.dispose(),this.A=null,this.o.dispose(),this.o=null);X6.M.T.call(this)};z(d7,R);d7.prototype.oa=function(){this.b.stop();this.A.style.display="none";d7.M.oa.call(this)};
d7.prototype.D=function(a){c7(this,a.state)};
d7.prototype.B=function(){c7(this,os(this.o))};
d7.prototype.C=function(){this.A.style.display="block"};z(e7,R);e7.prototype.A=function(){var a=gJ(this.b.app);a&&a.g.Rv()};
e7.prototype.o=function(){var a=gJ(this.b.app);this.fb(!!a&&a.Xa);a=gJ(this.b.app);this.va("icon",a&&a.Wa?xh?{I:"div",fa:["ytp-icon","ytp-icon-airplay-on"]}:{I:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},P:[{I:"path",Ea:!0,U:{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"}}]}:
xh?{I:"div",fa:["ytp-icon","ytp-icon-airplay-off"]}:{I:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},P:[{I:"path",Ea:!0,W:"ytp-svg-fill",U:{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"}}]})};z(f7,JK);f7.g=20;f7.o=141;f7.A=.5;f7.b=200;h=f7.prototype;h.pJ=function(a){P(a.state,32)?g7(this,this.A.getVideoData()):Av(this.J)};
h.uk=function(){var a=this.A.Pf(),b=a.current,b=yH(this.b,this.b.lg(141),b);if(b!=this.K){var c=sH(this.b,b,141);this.D=b2(this.ea,c,141,141,!0);Ms(this.ca,(this.F-this.D.width)/2);this.K=b}Sf(this.da,Qq(this.R?a.current-a.seekableEnd:a.current));Kx(this.G);a=x(this.Uj,this);this.G=Jx(a,void 0);this.L.pg()};
h.qJ=function(a,b){g7(this,b)};
h.Uj=function(){bt(this.o,!1);Kx(this.G);var a=Math.round(.5*this.D.width),b=Math.round(.5*this.D.height),c=this.A.Pf(),d=c.current/(c.seekableEnd-c.seekableStart),c=this.b.Ad(0).Fv(),e=this.b.Ad(0).Yn(),d=a*(e-c+1)*d-this.F/2,f=Math.floor(d/a)+c,e=Math.min(f+Math.min(20,Math.ceil(this.F/a)),e),f=Math.max(f,c),k;if(this.C>=f&&this.B<=e){for(k=this.C;k>e;k--)If(this.o.children[k-this.B]);for(k=f-1;k>=this.B;k--)If(this.o.children[k-this.B]);for(k=this.B-1;k>=f;k--)this.o.insertBefore(h7(this,k,a,b),
this.o.firstChild);k=this.C+1}else Gf(this.o),k=f;for(;k<=e;k++)this.o.appendChild(h7(this,k,a,b));for(k=f;k<=e;k++)Gs(this.o.children[k-f],"transform","translatex("+(-d+(k-c)*a)+"px)");this.B=f;this.C=e;bt(this.o,!0)};
h.yB=function(){for(var a=this.B;a<=this.C;a++)uH(this.b,a,this.D.width)};
h.Tz=function(){var a=Ky(this.A).Ia();this.F!=a.width&&(this.F=a.width,this.b&&(this.uk(),this.Uj()))};
h.jG=function(a){this.element.style.b=a+"px"};
h.show=function(){f7.M.show.call(this);K8(this.$,!1)};
h.oa=function(){this.b&&g7(this,null);f7.M.oa.call(this);K8(this.$,!0)};
h.T=function(){g7(this,null);f7.M.T.call(this)};z(i7,R);h=i7.prototype;h.rJ=function(a){P(a.state,32)?k7(this,this.b.getVideoData()):this.g&&(P(a.state,16)||P(a.state,1))||Av(this.C)};
h.tJ=function(a,b){k7(this,b)};
h.sJ=function(){var a=os(this.b);(P(a,32)||P(a,16))&&j7(this)};
h.Uz=function(){this.A=window.NaN;j7(this)};
h.oa=function(){this.o&&k7(this,null);i7.M.oa.call(this)};z(m7,R);h=m7.prototype;h.uJ=function(){S(this.o).Ca?(rJ(this.o,this.o.Qa()?"fullscreen_exit":"fullscreen_enter"),yr(this.o)):this.b.Ye(this.element,!0)};
h.Wr=function(){l7(this);this.b.Uf(this.element,!0)};
h.vJ=function(){S(this.o).experiments.Z("disable_fullscreen_check")||(Zh()==this.o.Da()?this.C.start():(this.C.stop(),this.b&&this.b.oa()))};
h.Jy=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.Wr()}};
h.Wv=function(){this.fb(vr(this.o))};
h.Ht=function(a){var b;a?(b=xh?{I:"div",fa:["ytp-icon","ytp-icon-full-screen-close"]}:{I:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},P:[{I:"g",W:"ytp-fullscreen-button-corner-2",P:[{I:"path",Ea:!0,W:"ytp-svg-fill",U:{d:"m 14,14 -4,0 0,2 6,0 0,-6 -2,0 0,4 0,0 z"}}]},{I:"g",W:"ytp-fullscreen-button-corner-3",P:[{I:"path",Ea:!0,W:"ytp-svg-fill",U:{d:"m 22,14 0,-4 -2,0 0,6 6,0 0,-2 -4,0 0,0 z"}}]},{I:"g",W:"ytp-fullscreen-button-corner-0",P:[{I:"path",Ea:!0,W:"ytp-svg-fill",
U:{d:"m 20,26 2,0 0,-4 4,0 0,-2 -6,0 0,6 0,0 z"}}]},{I:"g",W:"ytp-fullscreen-button-corner-1",P:[{I:"path",Ea:!0,W:"ytp-svg-fill",U:{d:"m 10,22 4,0 0,4 2,0 0,-6 -6,0 0,2 0,0 z"}}]}]},a=N("YTP_EXIT_FULLSCREEN"),window.document.activeElement==this.element&&this.o.Da().focus()):(b=xh?{I:"div",fa:["ytp-icon","ytp-icon-full-screen"]}:{I:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},P:[{I:"g",W:"ytp-fullscreen-button-corner-0",P:[{I:"path",Ea:!0,W:"ytp-svg-fill",U:{d:"m 10,16 2,0 0,-4 4,0 0,-2 L 10,10 l 0,6 0,0 z"}}]},
{I:"g",W:"ytp-fullscreen-button-corner-1",P:[{I:"path",Ea:!0,W:"ytp-svg-fill",U:{d:"m 20,10 0,2 4,0 0,4 2,0 L 26,10 l -6,0 0,0 z"}}]},{I:"g",W:"ytp-fullscreen-button-corner-2",P:[{I:"path",Ea:!0,W:"ytp-svg-fill",U:{d:"m 24,24 -4,0 0,2 L 26,26 l 0,-6 -2,0 0,4 0,0 z"}}]},{I:"g",W:"ytp-fullscreen-button-corner-3",P:[{I:"path",Ea:!0,W:"ytp-svg-fill",U:{d:"M 12,20 10,20 10,26 l 6,0 0,-2 -4,0 0,-4 0,0 z"}}]}]},a=N("YTP_FULLSCREEN"));this.va("icon",b);this.va("title",this.b?null:a);z7(this.B.g)};
h.T=function(){this.b||(this.A(),this.A=null);m7.M.T.call(this)};z(n7,R);n7.prototype.F=function(a){this.B("newdata"==a)};
n7.prototype.B=function(a){var b=this.o.getVideoData(),c=b.aa,d=os(this.o),d=(uq(d)||P(d,4))&&0<c.length;this.fb(d);a&&(this.b=!0);if(d){this.b&&this.C.te();a=null;for(var d="",e=0;e<c.length;e++)if(c[e].id==b.videoId){a=c[e].title;d=N("YTP_MULTICAM_INDEX",{CAMERA_INDEX:e+1,CAMERA_COUNT:c.length})+"\n";break}this.update({text:d+a,preview:b.Gc(S(this.o),"default.jpg")});z7(this.A)}};
n7.prototype.D=function(){M8(this.A,this.element,N("YTP_MORE_CAMERAS_AVAILABLE"));this.b=!1};z(o7,g6);h=o7.prototype;h.show=function(){var a=this.g;o7.M.show.call(this);a||(this.A.S(this.b,"presentingplayerstatechange",this.eo),this.A.S(this.b,"videodatachange",this.eo),this.eo())};
h.oa=function(){Hx(this.A);o7.M.oa.call(this)};
h.eo=function(){for(var a=this.b.getVideoData(),b=a.aa,c=0;c<b.length;c++){var d=this.o[c];d||(d=new R({I:"button",fa:["ytp-multicam-menu-item","ytp-button"],U:{"aria-checked":"{{selected}}","data-id":"{{videoId}}"},P:[{I:"div",W:"ytp-multicam-menu-item-title",P:["{{cameraName}}"]}]}),d.O("click",qa(this.uC,c),this),d.Ba(this.B),this.o[c]=d);var e=b[c],f=e.id;if(f!=d.element.getAttribute("data-id")){var k=e.thumbnail_url;!k&&f&&(k=ZA(S(this.b),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.o.length;)this.o.pop().dispose();a=os(this.b);uq(a)||P(a,4)||b.length||!i6(this)||this.Ye()};
h.uC=function(a){var b=this.b,c=this.b.getVideoData().aa[a];a=gJ(b.app,1).getVideoData();var d=b.getCurrentTime();if(c.id==a.videoId)c=gJ(b.app,1),gJ(b.app)!=c&&(O4(b.app,c),a.xa||b.seekTo(d));else{var e=gJ(b.app,4);e||(e=new hI(S(b),4,b.app.H,Ky(b),x(b.app.N.Rb,b.app.N)));gJ(b.app)!=e&&O4(b.app,e);D9(b.app,{videoId:c.id,title:a.title,start:a.xa?null:d,multifeed_metadata_list:a.A.multifeed_metadata_list},4)}};
h.focus=function(){for(var a=this.b.getVideoData(),b=a.aa,c=0;c<b.length;c++)if(b[c].id==a.videoId){this.o[c].focus();break}};
h.T=function(){Ob(this.o);o7.M.T.call(this)};p7.prototype.clone=function(){return new p7(this.o,this.D,this.b,this.B,this.g,this.C,this.A,this.F)};z(q7,G);var Z$=new p7(0,0,.4,0,.2,1,1,1);q7.prototype.g=function(){var a=zq()-this.B,a=a<this.b?a/this.b:1,b;if(0==a)b=Z$.o;else if(1==a)b=Z$.A;else{b=bf(Z$.o,Z$.b,a);var c=bf(Z$.b,Z$.g,a),d=bf(Z$.g,Z$.A,a);b=bf(b,c,a);c=bf(c,d,a);b=bf(b,c,a)}this.o(b);1>a&&this.A.start()};
var Hla=/[0-9.-]+|[^0-9.-]+/g;z(x7,R);
var Ila=["M",19,",",17.2," L",19,",",18.8," C",19.296,",",18.664," ",19.5,",",18.354," ",19.5,",",18," C",19.5,",",17.652," ",19.296,",",17.348," ",19,",",17.2," Z"],Jla=["M",19,",",14," L",19,",",22," C",20.48,",",21.32," ",21.5,",",19.77," ",21.5,",",18," C",21.5,",",16.26," ",20.48,",",14.74," ",19,",",14," Z"],Kla=["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"],Lla=["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"];x7.prototype.D=function(a){this.fb(300<=a.width)};
x7.prototype.G=function(){S(this.b).$?this.b.bd()?(rJ(this.b,"unmute"),this.b.Of()):(rJ(this.b,"mute"),this.b.mute()):this.K.Ye(this.element,!0)};
x7.prototype.N=function(a){w7(this,a.volume,a.muted)};z(A7,R);A7.prototype.o=function(){var a=gJ(this.b.app);a&&a.g.Sv()};z(C7,R);C7.prototype.F=function(a){B7(this,a.state)};
C7.prototype.D=function(){J(this.element,"ytp-play-button-playlist",mJ(this.b))};
C7.prototype.G=function(){2==this.o?rJ(this.b,"pause"):3==this.o?rJ(this.b,"replay"):1==this.o?rJ(this.b,"play"):4==this.o&&rJ(this.b,"stop");uq(os(this.b))?this.b.pauseVideo():this.b.yd()};
C7.prototype.T=function(){this.A&&this.A();C7.M.T.call(this)};z(E7,R);h=E7.prototype;h.ah=function(){F7(this);this.D&&(this.sa(this.D),this.D=null);this.F=this.b.getVideoData(1);if(this.o=this.b.ad())this.o.subscribe("shuffle",this.ah,this),this.D=this.S(this.b,"progresssync",this.yJ);this.C=G7(this);H7(this);this.Xv(Ky(this.b).Ia())};
h.Xv=function(a){var b=mJ(this.b)||this.A&&AJ(this.b);this.fb(b&&(this.A||400<=a.width))};
h.zJ=function(a){rJ(this.b,this.A?"next":"previous");var b=!0;this.H?b=wr(a,this.b):sm(a);b&&(this.A?this.b.ek(!0):this.C?this.b.seekTo(0):this.b.fk(!0))};
h.yJ=function(){var a=G7(this);a!=this.C&&(this.C=a,H7(this))};
h.T=function(){this.B&&(this.B(),this.B=null);F7(this);E7.M.T.call(this)};z(J7,JK);h=J7.prototype;h.BJ=function(a){if(!tm(a)){var b=!1;switch(um(a)){case 36:this.o.seekTo(0);b=!0;break;case 35:this.o.seekTo(window.Infinity);b=!0;break;case 34:this.o.zd(-60);b=!0;break;case 33:this.o.zd(60);b=!0;break;case 38:this.o.zd(5);b=!0;break;case 40:this.o.zd(-5),b=!0}b&&sm(a)}};
h.Yv=function(a,b){I7(this,b,"newdata"==a)};
h.Kz=function(){this.Yv("newdata",this.o.getVideoData())};
h.Rz=function(){Q7(this.o.getVideoData())?os(this.o).Za()&&R7(this,!0):R7(this,!1)};
h.Lz=function(a){0<bv(a,64)||!Q7(this.o.getVideoData())?R7(this,!1):uq(a.state)&&0>bv(a,64)&&R7(this,!0);this.A&&!P(a.state,32)&&this.A.cancel()};
h.nE=function(a,b,c){var d=Qs(this.element),e=T7(this).b,f=c?c.getAttribute("data-tooltip"):void 0;f&&(a=$1(this.b,Number(c.getAttribute("data-position")),0)*e+Qs(this.ab).x);this.ma.x=a-d.x;this.ma.y=b-d.y;c=T7(this);a=Z1(this.b,c.g);b=this.Ca;c=c.position+this.Oa;d=f||Qq(this.qa?a-this.b.b:a);f=!!f;b.ba||(3==b.b&&b.Hc(),1!=b.b&&(b.element.className="ytp-tooltip ytp-bottom",b.b=1,b.H&&b.D.show(),b.A=XH(b.L.getVideoData()),b.A&&b.A.subscribe("l",b.Vr,b)),b.update({text:d,title:""}),J(b.element,"ytp-text-detail",
!!f),d=-1,b.A&&(d=b.A.lg(160*b.B),d=yH(b.A,d,a)),P8(b,d),N8(b,!!f,c));J(this.ea,"ytp-hover-progress-shown",!P(os(this.o),64));M7(this)};
h.mE=function(){var a=this.Ca;1==a.b&&a.Hc();me(this.ea,"ytp-hover-progress-shown")};
h.lE=function(a,b){Wi(this.C);this.C=window.NaN;this.Sa=b;this.o.seekTo(Z1(this.b,T7(this).g),!1);I(this.element,"ytp-drag");(this.na=uq(os(this.o)))&&this.o.pauseVideo()};
h.oE=function(){this.ba=0;me(this.element,"ytp-pull-ui");me(this.element,"ytp-pulling");if(0<this.F){var a=zq(),b=this.F,c=T7(this).position;Wi(this.C);this.C=Oq(x(this.bu,this,a,b,c),0)}P(os(this.o),32)&&(this.o.seekTo(Z1(this.b,T7(this).g)),me(this.element,"ytp-drag"),this.na&&!P(os(this.o),2)&&this.o.yd())};
h.bu=function(a,b,c){var d=1-Math.pow(1-(zq()-a)/200,3),e=c+d*(this.D*this.B-c);if(0>d||1<d)d=1;S7(this,(1-d)*b,e,this.D);this.C=1>d?Oq(x(this.bu,this,a,b,c),0):window.NaN};
h.pE=function(a,b){var c=!1,d=!1,e=T7(this);3600<=Y1(this.b)&&(S7(this,this.Sa-b-10,e.position,e.g),d=!0,c=this.F>.1*(this.H?60:40),e=T7(this));J(this.element,"ytp-pull-ui",d);c&&I(this.element,"ytp-pulling");c=0;e.o&&0>=e.position?c=-1:e.B&&e.position>=e.width&&(c=1);(0,window.isNaN)(this.C)||c&&c==this.ba||Vi(this.C);c&&(this.C=Oq(x(this.lt,this,zq(),this.G),0));this.ba=c;this.o.seekTo(Z1(this.b,e.g),!1)};
h.lt=function(a,b){if(this.ba){var c=this.B*(this.R-1);this.G=af(b+this.ba*(zq()-a)*.3,0,c);L7(this);this.o.seekTo(Z1(this.b,T7(this).g),!1);0<this.G&&this.G<c&&(this.C=Oq(x(this.lt,this,a,b),0))}};
h.Pr=function(){this.va("clipstarticon",zh());this.va("clipendicon",zh());I(this.element,"ytp-clip-hover")};
h.Or=function(){this.va("clipstarticon",Bh());this.va("clipendicon",Ah());me(this.element,"ytp-clip-hover")};
h.Gj=function(){this.K=0;this.J=window.Infinity;P7(this);K7(this,this.D,this.da)};
h.cu=function(a){for(var b=0;b<a.length;b++){var c=a[b];if(c.visible){var d=c.getId();if(!this.L[d]){var e=window.document.createElement("div");c.tooltip&&(e.setAttribute("data-tooltip",c.tooltip),e.setAttribute("data-position",c.start/1E3));this.L[d]=c;this.ga[d]=e;U7(this,c,e);"ytp-chapter-marker"==c.style?this.tb.appendChild(e):this.sb.appendChild(e)}}else W7(this,c)}};
h.VF=function(a){for(var b=0;b<a.length;b++)W7(this,a[b])};
h.T=function(){Vi(this.C);this.C=window.NaN;O7(this,!1);J7.M.T.call(this)};z(Y7,R);Y7.prototype.A=function(a){X7(this,a.state)};z(Z7,R);
Z7.prototype.b=function(){var a=!1;-1!=this.Y.Xh().indexOf("remote")&&(a=1<this.Y.Ib("remote","receivers").length);this.fb(a&&400<=Ky(this.Y).Ia().width);var b=1;a&&this.Y.Ib("remote","casting")&&(b=2);if(this.o!=b){this.o=b;switch(b){case 1:this.va("icon",xh?{I:"div",fa:["ytp-icon","ytp-icon-cast-desktop-off"]}:{I:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},P:[{I:"path",Ea:!0,U:{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.va("icon",yh())}J(this.element,"ytp-remote-button-active",!!this.Y.Ib("remote","casting"))}};
Z7.prototype.A=function(){rJ(this.Y,"remote");if(this.Y.Ib("remote","castSelector"))this.Y.Qa()&&yr(this.Y),this.Y.cf("remote","castSelector",!0);else{var a=this.B,b=this.element;i6(a)?a.ub():(r8(a),a.J.open(),a.Uf(b))}};z($7,x6);$7.prototype.A=function(){nJ(jq(this.Y),"iv-module")&&3!=this.Y.getPresentingPlayerType()?this.o||(s8(this.B,this),this.o=!0):this.o&&(t8(this.B,this),this.o=!1);y6(this,KL(jq(this.Y)))};
$7.prototype.C=function(a){KL(jq(this.Y));a?this.Y.dk("iv-module"):this.Y.Lu("iv-module")};z(a8,q6);h=a8.prototype;h.open=function(){n6(this.b,this.C)};
h.ze=function(a){if(this.F){var b=this.o[this.F];b.element.getAttribute("aria-checked");b.element.removeAttribute("aria-checked")}this.o[a].element.setAttribute("aria-checked",!0);this.Nb(this.kd(a));this.F=a};
h.ac=function(a){this.ze(a);this.X("select",a)};
h.TD=function(a){"true"!=this.o[a].element.getAttribute("aria-disabled")&&this.ac(a)};
h.kd=function(a){return a.toString()};
h.CJ=function(a){tm(a)||39!=um(a)||(this.open(),sm(a))};
h.T=function(){a8.M.T.call(this);for(var a in this.o)this.o[a].dispose()};z(c8,a8);c8.prototype.D=function(){var a=this.Y.Mu();1<a.length?(b8(this,M(a,this.B)),this.H=Ib(a,this.B,this),this.G.Nb(a.length?" ("+a.length+")":""),this.X("size-change"),this.ze(this.B(this.Y.Zh())),this.A||(s8(this.b,this),this.A=!0)):this.A&&(t8(this.b,this),this.A=!1)};
c8.prototype.ac=function(a){c8.M.ac.call(this,a);this.Y.On(this.H[a]);this.b.qe()};
c8.prototype.B=function(a){return a.toString()};z(d8,x6);d8.prototype.A=function(){var a=this.Y.getPresentingPlayerType();if(2!=a&&3!=a&&AJ(this.Y))this.B||(s8(this.D,this),this.B=!0,this.o.push(this.S(this.Y,"videodatachange",this.A)),this.o.push(this.S(this.Y,"videoplayerreset",this.A)),this.o.push(this.S(this.Y,"onPlaylistUpdate",this.A)),this.o.push(this.S(this.Y,"autonavchange",this.C)),this.C(this.Y.getVideoData().autonavState));else if(this.B)for(t8(this.D,this),this.B=!1,a=0;a<this.o.length;a++)this.sa(this.o[a])};
d8.prototype.C=function(a){y6(this,1!=a)};
d8.prototype.F=function(a){this.Y.app.b.za("onAutonavChangeRequest",1!=(a?2:1))};z(e8,a8);e8.prototype.B=function(){var a=this.Y.getPresentingPlayerType();if(2!=a&&3!=a){for(var a={},b=PI(gJ(this.Y.app)),c=0;c<b.length;c++){var d=b[c];a[d.quality]=d}this.H=a;a=this.Y.Du();b=this.Y.getVideoData().g;if(b=!!b&&!xG(b))b=this.Y.getVideoData(),b=!!(b.adaptiveFormats||b.hlsFormats||b.D);b&&a.unshift("missing-qualities");b8(this,a);if(a.length){this.G();this.A||(s8(this.b,this),this.A=!0);return}}this.A&&(t8(this.b,this),this.A=!1)};
e8.prototype.G=function(){var a=pJ(this.Y);this.o[a]&&(this.D=this.Y.ck(),this.ze(a),"auto"==a&&this.Nb(this.kd(a)))};
e8.prototype.ac=function(a){"missing-qualities"!=a&&(e8.M.ac.call(this,a),this.Y.gk(a),this.b.ub())};
e8.prototype.kd=function(a,b){if("missing-qualities"==a)return{I:"a",U:{href:"https://support.google.com/youtube/?p=missing_quality",target:"_blank"},P:[N("YTP_MISSING_FORMATS")]};var c={I:"div",P:[f8(this,a)]},d=pJ(this.Y);b||"auto"!=d||"auto"!=a||(c.P.push(" "),c.P.push(f8(this,this.D,["ytp-menu-label-secondary"])));return c};z(g8,a8);g8.prototype.D=function(){var a=-1!=this.Y.Xh().indexOf("remote")?this.Y.Ib("remote","receivers"):[];1<a.length&&!this.Y.Ib("remote","castSelector")?(this.G=Ib(a,this.B,this),b8(this,M(a,this.B)),a=this.Y.Ib("remote","currentReceiver"),this.ze(this.B(a)),this.A||(s8(this.b,this),this.A=!0)):this.A&&(t8(this.b,this),this.A=!1)};
g8.prototype.B=function(a){return a.key};
g8.prototype.kd=function(a){return this.G[a].name};
g8.prototype.ac=function(a){g8.M.ac.call(this,a);this.Y.cf("remote","currentReceiver",this.G[a]);this.b.ub()};z(h8,a8);h=h8.prototype;h.Dl=function(a){return a.toString()};
h.kd=function(a){return"1"==a?N("YTP_NORMAL_SPEED"):a.toString()};
h.$v=function(){var a=this.Y.getPresentingPlayerType();2!=a&&3!=a?this.A||(s8(this.b,this),this.A=!0,this.B=this.S(this.Y,"onPlaybackRateChange",this.cE),b8(this,M(this.Y.Vh(),this.Dl)),this.ze(this.Dl(this.Y.app.L))):this.A&&(t8(this.b,this),this.A=!1,this.sa(this.B),this.B=null)};
h.cE=function(a){this.ze(this.Dl(a))};
h.ac=function(a){h8.M.ac.call(this,a);this.Y.Yh((0,window.parseFloat)(a),!0);this.b.qe()};z(j8,a8);h=j8.prototype;h.EF=function(){n6(this.b,this.A)};
h.bw=function(a){return a.option.toString()};
h.kd=function(a){return i8(this.H[a])};
h.ac=function(a){j8.M.ac.call(this,a);this.X("settingChange",this.G,this.H[a].option)};
h.tt=function(a){this.X("settingChange",this.G+"Override",!a);this.b.qe()};z(k8,t6);k8.prototype.B=function(a,b){this.X("settingChange",a,b)};z(m8,a8);m8.prototype.B=function(a){return a.languageCode};
m8.prototype.kd=function(a){return this.A[a].languageName||""};
m8.prototype.ac=function(a){this.X("select",a);a=this.b;var b=a.b.pop(),c=a.b[0];a.b=[c];m6(a,b,c,!0)};z(n8,a8);h=n8.prototype;h.ko=function(a){return cc(a)?"__off__":a.displayName};
h.kd=function(a){return"__off__"==a?N("YTP_LANGUAGE_OFF"):"__translate__"==a?N("YTP_AUTO_TRANSLATE"):"__contribute__"==a?N("YTP_CONTRIBUTE_MENU_ITEM"):("__off__"==a?{}:this.A[a]).displayName};
h.ac=function(a){"__translate__"==a?this.D.open():"__contribute__"==a?(this.Y.pauseVideo(),this.Y.Qa()&&yr(this.Y),a=this.Y.getVideoData(),ur(S(this.Y).baseYtUrl+"timedtext_video?ref=player&v="+a.videoId)):(this.Y.cf("captions","track","__off__"==a?{}:this.A[a]),n8.M.ac.call(this,a),this.b.qe())};
h.pG=function(){n6(this.b,this.B)};
h.hi=function(){var a=-1!=this.Y.Xh().indexOf("captions"),b=this.Y.getVideoData().ce;if(a||b){var c,d;if(a){var e=this.Y.Ib("captions","track"),f=this.Y.Ib("captions","tracklist",{includeAsr:!0}),k=this.Y.Ib("captions","translationLanguages");this.A=Ib(f,this.ko,this);c=M(f,this.ko);if(k.length){d=this.D;var l=k;d.A=Ib(l,d.B,d);b8(d,M(l,d.B));c.push("__translate__")}d=this.ko(e)}else this.A={},c=[],d="__off__";c.unshift("__off__");this.A.__off__={};b&&c.unshift("__contribute__");this.A[d]||(this.A[d]=
e,c.push(d));b8(this,c);this.ze(d);a?(l8(this.B,this.Y.Nn()),this.G.Nb(f.length?" ("+f.length+")":""),this.X("size-change"),a&&k.length&&this.o.__translate__.element.setAttribute("aria-disabled",!!cc(e))):(this.G.Nb(""),this.X("size-change"));this.H||(s8(this.b,this),this.H=!0)}else this.H&&(t8(this.b,this),this.H=!1)};
h.aF=function(a){var b=this.Y.Ib("captions","track"),b=hc(b);b.translationLanguage=this.D.A[a];this.Y.cf("captions","track",b)};
h.HJ=function(a,b){if("reset"==a)this.Y.Pu();else{var c={};c[a]=b;this.Y.Pn(c)}l8(this.B,this.Y.Nn())};z(o8,a8);var tsa={1:"YTP_THREED_VIEWMODE_2D",2:"YTP_THREED_VIEWMODE_ANAGLYPH"};o8.prototype.kd=function(a){return N(tsa[(0,window.parseInt)(a,10)])};
o8.prototype.D=function(){var a=qJ(this.Y);"Anaglyph3D"==a.shader||"Spherical3D"==a.shader?(this.A||(this.B=a.shader,s8(this.b,this),this.A=!0,b8(this,[(1).toString(),(2).toString()])),a=a.displayMode,void 0!=a&&this.ze(a.toString())):this.A&&(t8(this.b,this),this.A=!1)};
o8.prototype.ac=function(a){o8.M.ac.call(this,a);a={shader:this.B,displayMode:a};var b=jq(this.Y).g;b&&AL(b,a);this.b.qe();this.Y.Va("webglsettingschanged",qJ(this.Y))};z(p8,j6);p8.prototype.Uf=function(a){r8(this);0<this.B.b.length&&p8.M.Uf.call(this,a)};
p8.prototype.show=function(){p8.M.show.call(this);I(this.o.Da(),"ytp-settings-shown")};
p8.prototype.oa=function(){p8.M.oa.call(this);me(this.o.Da(),"ytp-settings-shown")};z(u8,R);u8.prototype.A=function(a){this.fb(this.B&&400<=a.width)};
u8.prototype.C=function(){rJ(this.Y,"settings");this.o.g?this.o.ub():(this.Y.dk("captions"),this.o.Uf(this.element))};
u8.prototype.b=function(){var a=this.Y.getPresentingPlayerType(),b=2!=a&&3!=a,c=qJ(this.Y),c=(a=b&&("Anaglyph3D"==c.shader||"Spherical3D"==c.shader))&&1==(0,window.parseInt)(c.displayMode,10),b=a||!b?null:this.Y.ck();J(this.element,"ytp-hd-quality-badge","hd720"==b||"hd1080"==b||"hd1440"==b);J(this.element,"ytp-4k-quality-badge","hd2160"==b);J(this.element,"ytp-5k-quality-badge","hd2880"==b);J(this.element,"ytp-8k-quality-badge","highres"==b);J(this.element,"ytp-3d-badge-grey",a&&c);J(this.element,
"ytp-3d-badge",a&&!c)};z(v8,R);v8.prototype.D=function(){rJ(this.b,this.b.app.ia?"size_small":"size_large");var a=this.b.app,b=!a.ia;a.V.experiments.Z("player_legacy_set_size_style")&&X9(a,!0,b);a.b.za("SIZE_CLICKED",b)};
v8.prototype.o=function(){this.fb(this.b.app.oc&&!this.b.Qa()&&3!=this.b.getPresentingPlayerType());if(this.g){var a=this.b.app.ia;if(this.A!=a){var b=a?xh?{I:"div",fa:["ytp-icon","ytp-icon-default-view"]}:{I:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},P:[{I:"path",Ea:!0,U:{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"}}]}:xh?{I:"div",fa:["ytp-icon","ytp-icon-theater-mode"]}:{I:"svg",U:{height:"100%",version:"1.1",viewBox:"0 0 36 36",
width:"100%"},P:[{I:"path",Ea:!0,U:{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"}}]};S(this.b).N||null==this.A?this.va("icon",b):v7(this.C,this.element,b);a=(this.A=a)?N("YTP_DEFAULT_VIEW"):N("YTP_THEATER_MODE");this.va("title",a);z7(this.B)}}};z(w8,R);w8.prototype.A=function(){rJ(this.o,"subtitles");oJ(this.o)};
w8.prototype.b=function(){var a=!!nJ(jq(this.o),"captions");this.fb(a&&300<=Ky(this.o).Ia().width);a&&this.va("pressed",!!this.o.Ib("captions","track").displayName)};z(x8,R);h=x8.prototype;h.bh=function(){var a=Ky(this.b).Ia().width,b=350<=a&&(!this.A||!P(os(this.b),64));this.fb(b);J(this.element,"ytp-time-display-allow-autohide",b&&400>a);b&&(a=this.b.Pf(),b=Qq(a.current),this.D!=b&&(this.va("currenttime",b),this.D=b),a=Qq(a.duration),this.F!=a&&(this.va("duration",a),this.F=a))};
h.JJ=function(a){if(this.C!=a){this.C=a;this.bh();var b=this.B.element;(b.disabled=a)?this.o&&(this.o(),this.o=null,b.removeAttribute("title")):(b.title=N("YTP_GOTO_LIVE_TOOLTIP"),this.o=f6(this.G,this.B.element))}};
h.KJ=function(a,b){this.A=b.xa;J(this.element,"ytp-live",this.A);this.bh()};
h.IJ=function(a){a.target==this.B.element?(rJ(this.b,"live"),this.b.seekTo(window.Infinity),this.b.yd()):rJ(this.b,"time")};
h.T=function(){this.o&&this.o();x8.M.T.call(this)};z(z8,R);h=z8.prototype;h.MJ=function(){var a=uJ(this.D);this.G!=a&&(this.G=a,y8(this,this.b.Mb(),this.b.bd()))};
h.dw=function(a){this.fb(350<=a.width)};
h.QE=function(a){if(!tm(a)){var b=um(a),c=null;37==b?c=this.B-5:39==b?c=this.B+5:36==b?c=0:35==b&&(c=100);null!=c&&(c=af(c,0,100),0==c?this.b.mute():(this.b.bd()&&this.b.Of(),this.b.setVolume(c)),sm(a))}};
h.NJ=function(a){var b=a.deltaX||-a.deltaY;a.deltaMode?this.b.setVolume(this.B+(0>b?-10:10)):this.b.setVolume(this.B+af(b/10,-10,10));sm(a)};
h.PE=function(){rJ(this.b,"volume");A8(this,this.A,!0,this.o,this.D.J);this.N=this.B;this.b.bd()&&this.b.Of()};
h.OE=function(a){a-=Qs(this.L).x;this.b.setVolume(100*af(a/(this.G?78:52),0,1))};
h.NE=function(){A8(this,this.A,!1,this.o,this.D.J);0==this.B&&(this.b.mute(),this.b.setVolume(this.N))};
h.OJ=function(a){y8(this,a.volume,a.muted)};
h.Dp=function(){A8(this,this.A,this.C,this.o,this.D.J)};
h.cw=function(a){A8(this,this.A,this.C,a,this.D.J)};
h.It=function(a){J(this.element,"ytp-volume-control-hover",a);A8(this,a,this.C,this.o,this.D.J)};
h.T=function(){z8.M.T.call(this);me(this.K,"ytp-volume-slider-active")};z(B8,R);B8.prototype.o=function(){var a=!!this.b.getVideoData().videoId;this.fb(a);a&&(a=this.b.getVideoUrl(!0,!1,!1,!0),this.va("url",a))};
B8.prototype.A=function(a){rJ(this.b,"youtube");var b=this.b.getVideoUrl(!Rq(a),!1,!0,!0);zr(b,this.b,a)};z(C8,Fx);h=C8.prototype;h.ho=function(){var a=this.A;N7(a);var b=a.o.getCurrentTime();(b<a.K||b>a.J)&&a.Gj();this.G.bh()};
h.aw=function(){this.qn();!this.H.g||this.ho()};
h.kD=function(){this.ho();this.B.start()};
h.qn=function(){var a;if(a=S(this.Y).experiments.Z("smooth_progress_bar")&&!S(this.Y).isMobile)a=this.A,a=300>1E3*Y1(a.b)/(2*a.B*(window.devicePixelRatio||1));a=a&&os(this.Y).Za()&&!!window.requestAnimationFrame;var b=!a;this.H.g||(a=b=!1);b?this.C||(this.C=this.S(this.Y,"progresssync",this.ho)):this.C&&(this.sa(this.C),this.C=null);a?this.B.isActive()||this.B.start():this.B.stop()};
h.CG=function(a){K8(this.b.g,!a)};
h.jo=function(){var a=uJ(this.b),b=Ky(this.Y).Ia(),c=12*(uJ(this.b)?2:1),d=Math.max(b.width-2*c,100);if(this.N!=b.width||this.L!=a){this.N=b.width;this.L=a;var e=E8(this);this.g.element.style.width=e+"px";this.g.element.style.left=c+"px";var f=this.A;f.Oa=c;f.B=e;f.H=a;L7(f);this.b.g.ca=e}c=this.o;b=Math.min(413*(a?1.5:1),Math.round(.82*(b.height-(uJ(this.b)?72:50))));c.$=Math.min(570*(a?1.5:1),d);c.ba=b;c.Oh();this.qn()};
h.la=function(){return this.g.element};z(F8,R);F8.prototype.D=function(a){a=400>a.width&&this.b.ad()&&2!=this.b.getPresentingPlayerType();this.J.style.display=a?"":"none"};
F8.prototype.K=function(a){rJ(this.b,"title");var b=this.b.getVideoUrl(!Rq(a),!1,!0);zr(b,this.b,a)};
F8.prototype.H=function(a,b,c){var d=c.user_info;d&&(b=d.channel_logo_url||d.image_url,c=d.channel_title||d.username,d=d.channel_url,b&&d&&c&&VA.test(b)&&G8(this,a,c,d,b))};
F8.prototype.A=function(){H8(this);var a=this.b.getVideoData();this.va("title",a.title);!S(this.b).F&&a.videoId?(this.va("url",this.b.getVideoUrl(!0)),this.o||(this.o=this.S(this.G,"click",this.K))):this.o&&(this.va("url",null),this.sa(this.o),this.o=null)};z(I8,R);h=I8.prototype;h.HD=function(a){3==this.b&&this.Hc();a=a.currentTarget;this.b||(a.removeEventListener("mouseover",this.K),a.addEventListener("mouseout",this.$),L8(this,a,2))};
h.FD=function(a){(a=qm(a))&&Qf(this.o,a)||this.Hc()};
h.Vr=function(a,b){if(a<=this.C&&this.C<=b){var c=this.C;this.C=window.NaN;P8(this,c)}};
h.zB=function(){uH(this.A,this.C,160*this.B)};
h.Hc=function(){switch(this.b){case 2:this.o.removeEventListener("mouseout",this.$),this.o.addEventListener("mouseover",this.K);case 3:3==this.b&&this.R.stop();this.L.removeEventListener("appresize",this.Hc,this);this.J||(this.o.hasAttribute("title"),this.o.setAttribute("title",this.F));this.F="";this.o=null;break;case 1:this.A&&(this.A.Fa("l",this.Vr,this),this.A=null),this.L.removeEventListener("videoready",this.Hc,this),this.N.stop()}this.b=null;this.H&&Av(this.D)};
h.$f=function(a){if(this.o)for(var b=0;b<arguments.length;b++)Qf(arguments[b],this.o)&&this.Hc()};
h.T=function(){null!=this.b&&this.Hc();I8.M.T.call(this)};z(R8,R);h=R8.prototype;h.ew=function(a){this.fb(300<=a.width)};
h.vF=function(){this.o=!0;this.A=!1;Q8(this,1);S(this.b).isMobile&&M8(this.C,this.element);S(this.b).Ra&&this.b.za("WATCH_LATER_VIDEO_ADDED")};
h.PJ=function(){rJ(this.b,"watchlater");var a=this.b.getVideoData().videoId;if(!this.A){this.A=!0;Q8(this,3);var b=S(this.b);(this.o?Dla:Cla)({videoIds:a,Ob:b.Ob,pageId:b.pageId,onError:this.wF,rb:this.o?this.xF:this.vF,context:this},b.baseYtUrl,!0)}};
h.wF=function(a,b){this.A=!1;var c=N("YTP_ERROR_GENERIC_WITHOUT_LINK");b&&(c=b.errors&&b.errors.length?b.errors[0]:b.error_message);Q8(this,4,c);S(this.b).Ra&&this.b.za("WATCH_LATER_ERROR",c)};
h.xF=function(){this.A=this.o=!1;Q8(this,2);S(this.b).Ra&&this.b.za("WATCH_LATER_VIDEO_REMOVED")};
h.QJ=function(){this.A=this.o=!1;Q8(this,2)};
h.T=function(){R8.M.T.call(this);me(this.D,"ytp-watch-later-button-visible")};z(S8,R);S8.prototype.C=function(a){this.fb(!P(a.state,2))};
S8.prototype.A=function(){if(this.o.getVideoData().videoId){var a=this.o.getVideoUrl(!0,!1,!1,!0);this.va("url",a);this.b||(this.b=this.O("click",this.B))}else this.b&&(this.va("url",null),this.sa(this.b),this.b=null)};
S8.prototype.B=function(a){var b=this.o.getVideoUrl(!Rq(a),!1,!0,!0);zr(b,this.o,a)};z(U8,Fx);h=U8.prototype;h.Uv=function(a,b){if(this.ga!=b.videoId){this.ga=b.videoId;var c=this.B;c.L=b&&0<b.aa.length?5E3:3E3;c.zb(512,!0);this.Mh()}};
h.fE=function(){this.Uv(0,this.b.getVideoData())};
h.tl=function(a,b){b?this.L=a:this.L=null;this.Pg()};
h.ul=function(a,b){if(b)this.F.push(a);else for(var c=this.F.length;0<=c;c--)if(this.F[c]==a){this.F.splice(c,1);break}this.B.zb(64,0<this.F.length)};
h.Pg=function(){var a=!tJ(this),b=a&&Lr(this.b)&&!P(os(this.b),2);a?(this.ha.show(),this.ia.show()):(Av(this.ha),Av(this.ia),this.g.$f(this.A.element,this.G.element));b?this.G.o.show():Av(this.G.o);J(this.A.element,"ytp-cards-available",b);J(this.b.Da(),"ytp-menu-shown",!a);var b=this.N,c=!a;(b.A=c)?b.oa():H6(b.o,b.b,os(b.b));this.o&&D8(this.o,!a)};
h.eJ=function(a){for(;a&&!Wf(a);)a=a==this.b.Da()?null:Pf(a);for(var b=a;b;){if(je(b,"video-ads")){a=null;break}b=b==this.b.Da()?null:Pf(b)}return!!a};
h.fJ=function(a){var b=this.b.Da();J(b,"ytp-autohide",a);a&&(this.g.$f(this.A.element,this.G.element),this.o&&this.g.$f(this.o.la()),this.J=!1,me(b,"ytp-touch-mode"));b=this.b;a=!a;b.za("onVideoAreaChange");b.za(a?"onShowControls":"onHideControls")};
h.BE=function(a){if(Dq(os(this.b))&&!S(this.b).bc){var b=this.b.getVideoData();b.videoId&&this.b.Ou(eI(b))}this.B.g||V8(this,pm(a))||(os(this.b),sm(a));this.J=!0;I(this.b.Da(),"ytp-touch-mode");this.B.zb(2,!0)};
h.zs=function(a){if(V8(this,pm(a)))return!0;this.B.zb(2,!0);return!Rq(a)||this.Qp()?!0:Dq(os(this.b))?(this.b.yd(),!0):!1};
h.As=function(a){V8(this,pm(a));a=os(this.b);P(a,2)&&kJ(this.b)||(b6(this.D),uq(a)?this.b.pauseVideo():(this.b.yd(),window.document.activeElement==this.N.element&&this.b.Da().focus()))};
h.AE=function(a){V8(this,pm(a))||3!=this.b.getPresentingPlayerType()&&yr(this.b)};
h.gJ=function(a){var b=this.b.Da();a?b.parentElement?(b.setAttribute("aria-label",N("YTP_PLAYER_FULLSCREEN")),b.parentElement.insertBefore(this.da.element,b),b.parentElement.insertBefore(this.ea.element,b.nextSibling)):Xi(Error("Player not in DOM.")):(b.setAttribute("aria-label",N("YTP_PLAYER_NORMAL")),this.da.detach(),this.ea.detach());this.co();this.Mh()};
h.co=function(){var a=uJ(this),b=Ky(this.b).Ia(),c=this.b.Qa(),d=this.b.Da();S(this.b).experiments.Z("autohide_resize_killswitch")||bm&&y5(this.B);this.g.B=a?1.5:1;J(d,"ytp-fullscreen",c);J(d,"ytp-small-mode",!a&&480>b.width);J(d,"ytp-big-mode",a);J(this.H.element,"ytp-big-mode",a);this.C&&(a=this.C,a.b&&A5(a.b,b.width,b.height))};
h.hJ=function(a){T8(this,a.state);this.Mh()};
h.Mh=function(){var a=!this.b.getVideoData().isListed&&2==this.b.getPresentingPlayerType(),a=!!this.ga&&!iJ(this.b)&&!a&&(2==this.b.getPresentingPlayerType()||S(this.b).Wa||this.b.Qa());if(this.ma!=a&&(this.ma=a,J(this.b.Da(),"ytp-hide-info-bar",!a),!a))for(this.g.$f(this.A.element,this.G.element),a=0;a<this.aa.length;a++){var b=this.aa[a];i6(b)&&b.ub()}};
h.Qp=function(){return this.H.g?(this.H.ub(),!0):this.F.length?(this.F[this.F.length-1].ub(),!0):this.L?(this.L.ub(),!0):Lr(this.b)&&sJ(this.b)?(this.b.$h(!1,!1),!0):iJ(this.b)?(lJ(this.b,!0),!0):!1};
h.mG=function(a,b){this.qa=b;this.ul(a,b);this.Zt()};
h.Zt=function(){var a=this.qa||i6(this.H);this.$!=a&&(this.$=a,this.b.za("onAutonavPauseRequest",this.$))};
h.hz=function(){W8(this,this.b.Da(),!0).focus()};
h.iz=function(){W8(this,this.b.Da(),!1).focus()};var Cra={legacy_config:!0,player_response:!0,polymer_player_response:!0},X8={baseurl:"baseUrl",focenabled:"focEnabled",loaderurl:"loaderUrl",rmktenabled:"rmktEnabled",ytfocenabled:"ytfocEnabled",ytfochistoryenabled:"ytfocHistoryEnabled",suggestedquality:"suggestedQuality"};z($8,G);$8.B="defaultcontext";$8.b={};$8.o="appapi";$8.g="appad";$8.create=function(a,b){try{var c=$8.A(a);if($8.b[c]){try{$8.b[c].dispose()}catch(e){Xi(e)}$8.b[c]=null}var d=new $8(a,b);Mb(d,function(){$8.b[c]=null});
return $8.b[c]=d}catch(e){throw Xi(e),e.stack;}};
$8.A=function(a){return w(a)?a:"player"+na(a)};
h=$8.prototype;h.aC=function(){this.V.B&&up()||q9(this,5)};
h.dE=function(a){this.V.B&&up()||(Q9(this),uq(a.getPlayerState())&&S4(this))};
h.Kt=function(a){var b=this.D.element;J(b,"ytp-ad-overlay-open",a);J(b,"ytp-ad-overlay-closed",!a)};
h.canPlayType=function(a){return!!qz().canPlayType(a)};
h.getVideoData=function(){return this.B.getVideoData()};
h.ak=function(){var a=this.B?this.B.Ml():{};ra(a,$da(this.G));this.F&&ra(a,this.F.ai());a.fs=this.b.Qa();a.volume=Math.round(this.Ya.Mb());a.mos=this.Ya.bd()?1:0;return a};
h.getCurrentTime=function(a){return 3==this.getPresentingPlayerType()?this.C.getCurrentTime():(a=gJ(this,a))?a.getCurrentTime():0};
h.getPresentingPlayerType=function(){var a;if(a=this.V.B&&this.C)a=this.C,a=!!a.g&&!!a.o;return a?3:gJ(this).J};
h.gH=function(a){switch(a.type){case "loadedmetadata":UC("fvb",this.H.b)||this.H.g("fvb");RC("fvb",void 0,"video_to_ad");this.Lb.start();break;case "loadstart":UC("gv",this.H.b)||this.H.g("gv");RC("gv",void 0,"video_to_ad");break;case "progress":case "timeupdate":!UC("l2s",this.H.b)&&2<=wC(a.target.he())&&this.H.g("l2s");break;case "playing":a=this.G.g,"none"!=this.o.getStyle("display")||u5(this.D)||a||(Ku(this.B.o.g,"hidden","1",!0),this.V.experiments.Z("disable_html5_reload_hidden")||this.getVideoData().ha||
$9(this,"hidden",!0))}};
h.rD=function(a,b){this.b.za("onLoadProgress",b)};
h.RE=function(){this.b.Va("playbackstalledatstart")};
h.pF=function(a,b){this.b.za("onVideoProgress",b)};
h.dH=function(){this.Ya.Va("progresssync",void 0,void 0)};
h.cC=function(a){!this.V.experiments.Z("disable_live_head_slowdown")&&0<bv(a,1)&&!P(a.state,64)&&E4(this).xa&&KI(this.g)&&1<this.L&&t9(this,1,!0);if(0<bv(a,2)){var b;this.A&&("embedded"==this.V.b||this.b.Qa())&&dL(this)?(L9(this,!1,!this.V.experiments.Z("legacy_autoplay_flag")),b=!0):b=!1;!b&&LA(this.V)&&this.g.g.Lv()}if(P(a.state,128)){b=a.state.b.errorCode;if(this.V.experiments.Z("html5_retry_media_element_errors")&&!this.getVideoData().ha&&("fmt.decode"==b||"fmt.unplayable"==b)){$9(this,b);return}b=
a.state;F9(this);b=b.b;this.b.za("onError",y$[b.errorCode]||5);this.b.za("onDetailedError",b)}a.state.Za()&&!Eq(a.state)&&(b=this.getVideoData(),SC("cpn",b.clientPlaybackNonce,"ad_to_video"),b.videoId&&SC("docid",b.videoId,"ad_to_video"),b.playbackId&&SC("plid",b.playbackId,"ad_to_video"),RC("pbresume",void 0,"ad_to_video"));this.b.Va("applicationplayerstatechange",a)};
h.cH=function(a){!P(a.state,32)&&0>bv(a,16)&&(!P(a.state,8)||P(a.state,64)||this.o.Rf()||P(a.state,2)||S4(this));this.b.Va("presentingplayerstatechange",a);r9(this,Fq(a.state))};
h.ZB=function(a){"newdata"==a&&b9(this)};
h.eC=function(a){a==this.B.getVideoData()&&this.b.za("onPlaybackAudioChange",u9(this).Vb.name)};
h.nF=function(a){var b=this.B.getVideoData();a==b&&this.b.za("onPlaybackQualityChange",a.g.video.quality)};
h.In=function(a,b,c){if("newdata"==a)IL(this.G),this.g==this.B?(this.o.Sf(this.Ha),this.o.Tf(this.L)):(this.o.Sf(!1),this.o.Tf(1)),this.b.Va("videoplayerreset",b);else{if(!this.o)return;if("dataloaded"==a)if(OA(b.V,c.A),this.B==this.g){this.V.B&&lp("embedded"==this.V.b);var d=this.V.B&&!!up();if(d||!E4(this).fu||this.V.isMobile){var e=E4(this);if(!aI(e)||d||MH(this.g.b)){cI(e);d&&q9(this,6);e=!1;d=D4.Cb;!this.F&&d(this)&&(this.F=new D4(this),h9(this,this.F),e=!0);try{var f=this.F;f&&!f.D&&f.Cb(this.Ya)&&
f.create()}catch(k){Xi(k),this.g&&EI(this.g,"ad")}e&&(f=this.F,d=E4(this),e=gJ(this),d.subscribe("cuepointupdated",f.LC,f),f.ca=d,f=J4(f),null!=f&&(f.F=e),this.F.subscribe("overlay_ad_open",qa(this.Kt,!0),this),this.F.subscribe("overlay_ad_close",qa(this.Kt,!1),this));i9(this);g9(this)}else f=e.xa&&!nA()?"html5.unsupportedlive":"fmt.noneavailable",d="YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK",(!PA(this.V)||o5||Sp()?0:wf||e.na&&Iz)&&(d=e.na?"YTP_HTML5_PROTECTED_FLASH_FALLBACK":"YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK_FLASH"),
rI(this.g,f,d,"nosupported.1")}else e="YTP_DEVICE_FALLBACK",(!PA(this.V)||o5||Sp()?0:wf)&&(e="YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK_FLASH"),rI(this.g,"html5.unsupportedads",e,void 0)}else g9(this);1==b.J&&(this.getVideoData().Lb?(e=this.o,e.B=!0,e.di(!0)):(this.o.B=!1,R9(this,this.aa)),this.getVideoData().xa&&!this.V.Ke&&rI(this.g,"html5.unsupportedlive","YTP_DEVICE_FALLBACK",void 0),cI(c)&&(c.Cd||c.He||c.C.focEnabled||c.C.rmktEnabled||this.getVideoData().Do)&&(e=this.getVideoData(),A9(this,"part2viewed",
1,0x8000000000000),A9(this,"engagedview",Math.max(1,1E3*e.da),0x8000000000000),e.xa||(e=1E3*e.lengthSeconds,A9(this,"videoplaytime25",.25*e,e),A9(this,"videoplaytime50",.5*e,e),A9(this,"videoplaytime75",.75*e,e),A9(this,"videoplaytime100",e,0x8000000000000),A9(this,"conversionview",e,0x8000000000000))));this.b.Va("videodatachange",a,c,b.J)}this.V.Ra&&this.b.za("onVideoDataChange",{type:a,playertype:b.J})};
h.fl=function(){m9(this,null);this.b.za("onPlaylistUpdate")};
h.Jr=function(a){var b=a.getId(),c=E4(this);if("part2viewed"==b)c.yo&&Vp(c.yo),c.He&&Vp(c.He);else if("conversionview"==b){var d=this.g;d.o&&$u(d.o)}else"engagedview"==b&&Vp(c.Cd);c.ua&&(d=B9(this,c.ua,a.getId()),Vp(d));switch(b){case "videoplaytime25":c.nu&&Vp(c.nu);Vp(c.$x);break;case "videoplaytime50":c.gw&&Vp(c.gw);Vp(c.fy);break;case "videoplaytime75":c.lo&&Vp(c.lo);Vp(c.hy);break;case "videoplaytime100":c.lu&&Vp(c.lu),Vp(c.Yx)}(b=this.getVideoData().Do)&&b[a.getId()]&&(c=b[a.getId()],Vp(c,void 0,
Yp(c)),b=b[a.getId()+"gaia"],Vp(b,void 0,Yp(b)));this.g.C.Sh(a)};
h.seekTo=function(a,b,c,d){b=0!=b;if(d=gJ(this,d))2==this.K&&o9(this),d.seekTo(a,b,c)};
h.fH=function(a,b){var c=a.getVideoData();if(1==this.K||2==this.K)c.startSeconds=b;2==this.K?o9(this):this.b.Va("seekto",b)};
h.RB=function(){this.b.Va("airplayactivechange")};
h.SB=function(){this.b.Va("airplayavailabilitychange")};
h.kC=function(){this.b.Va("beginseeking")};
h.VC=function(){this.b.Va("endseeking")};
h.ls=function(){var a=this.A.Gb(),b=this.getVideoData();b.J||!this.ca?(b=b.Ca,a=C9(this,a),b&&G9(this,a)):a&&H9(this,a)};
h.XB=function(a){this.b.za("onCueRangeEnter",a.getId())};
h.YB=function(a){this.b.za("onCueRangeExit",a.getId())};
h.bC=function(){this.ea||(this.ea=JC(this.Qr,this));q1(this.H,U4(this));if(this.V.experiments.Z("html5_playlist_preload")&&dL(this)){var a=this.A.Gb(EK(this.A));a&&E9(this,a)}};
h.$B=function(){var a=E4(this),b=this.g.C.b.b||[],c=this.Wa.videoplaytime100;this.V.experiments.Z("send_pyv_ad_mt_and_abandon_pings")&&a.ua&&0<=b.indexOf(c)&&(a=B9(this,a.ua,"video_abandon"),Vp(a))};
h.Qr=function(a){a=a.b;if(!(0,window.isNaN)(a)&&0<a&&this.g){var b=this.g;b.o&&0<a&&(b.o.g.g.aft=[a])}};
h.es=function(a){"remote"==a?(2==this.K&&o9(this),q9(this,6),j9(this,this.F)):this.Lm()};
h.gs=function(a){"remote"!=a||this.V.B&&up()||(S4(this),this.pauseVideo());this.Lm()};
h.Lm=function(){this.V.Ra&&this.B?this.b.za("onApiChange",this.B.J):this.b.za("onApiChange")};
h.AD=function(){var a={volume:af(Math.floor(100*this.o.Bd()),0,100),muted:this.o.ao()};this.aa=hc(a);this.b.za("onVolumeChange",a)};
h.cD=function(){var a=Zh();T9(this,a==this.D.element?1:0);S9(this,this.V.experiments.Z("lock_fullscreen_tag")?Qf(this.D.element,a||null):a==this.D.element)};
h.eH=function(){var a=Jy(this.D);pg(this.Cc,a)||(this.Cc=a,this.B&&RI(this.B,"r"),!this.V.experiments.Z("disable_app_resize")&&this.g&&this.g!=this.B&&RI(this.g,"r"),1==this.Xa&&this.Ja&&S9(this,!0));a=this.D.Ia();this.b.Va("resize",a);this.Db&&jf(this.Db,a)||(this.b.Va("appresize",a),this.Db=a)};
h.yE=function(){2!=this.Xa&&T9(this,Zh()==this.D.element?1:0)};
h.bH=function(a){this.b.Va("liveviewshift",a)};
h.pauseVideo=function(a){(a=gJ(this,a))&&a.pauseVideo()};
h.getAdState=function(){return this.F?this.F.getAdState():-1};
h.zu=function(a,b,c){this.V.experiments.Z("legacy_control_redirecting")&&(this.Nj(),this.Aa=a,b&&F(b,function(a){this.ga[a]=!0},this),c&&Zda(this.G,a,c))};
h.Nj=function(){this.Aa=null;this.ga={};JL(this.G)};
h.LE=function(){$9(this,"signature")};
h.GC=function(){this.b.za("CONNECTION_ISSUE")};
h.aH=function(a){this.b.za("heartbeatparams",a)};
h.T=function(){this.V.B&&np();this.g.dispose();this.J&&this.J.dispose();f9(this);Ob(Xb(this.Sa),this.A);this.Ga=null;IC(this.ea);this.ea=0;$8.M.T.call(this)};g.ba("yt.player.Application.create",$8.create,void 0);var $$=q("ytcsi.tick");$$&&$$("pe");})(_yt_player);
