var _yt_player={};(function(g){var window=this;var h,p,r,v,ba,ca,da,ea,w,fa,ga,ha,ia,ma,na,oa,x,pa,qa,z,ra,sa,ta,B,ua,va,Da,Ga,Ea,Fa,Ia,Ja,La,C,Ma,Na,Qa,Pa,Ra,Ta,Ua,Va,Wa,Xa,Ya,Za,bb,$a,db,cb,fb,gb,jb,lb,ob,nb,pb,qb,rb,sb,ub,tb,vb,zb,Ab,xb,Bb,Cb,Db,Fb,yb,Eb,Gb,Hb,Ib,Jb,Kb,G,H,Lb,Mb,Nb,Ob,Pb,Qb,Rb,Sb,Tb,Vb,Wb,Xb,Yb,Zb,Ub,$b,ac,bc,cc,dc,ec,fc,gc,hc,jc,kc,lc,mc,nc,oc,qc,tc,uc,vc,wc,yc,Ac,Dc,Ec,Gc,Ic,Jc,Lc,Nc,Oc,Pc,Qc,Mc,Rc,Tc,Wc,ad,bd,cd,Xc,fd,ed,Zc,Uc,Sc,hd,id,jd,kd,ld,md,nd,qd,pd,rd,sd,yd,ud,zd,Ad,Bd,Dd,Ed,Gd,Hd,Id,Kd,Ld,Md,Od,Qd,Sd,Td,Pd,Rd,Cd,
Jd,Zd,Wd,Ud,Vd,$d,Yd,Xd,Nd,be,ce,de,ee,fe,ge,he,ie,J,je,le,me,K,oe,ue,we,xe,ye,Ae,Be,De,Ee,He,Ge,Je,Ke,Le,Ne,Oe,Qe,Pe,We,Xe,Ze,$e,af,cf,df,ef,ff,gf,hf,jf,nf,pf,qf,of,sf,tf,wf,uf,xf,L,yf,Af,Cf,Df,Ef,Ff,Gf,Hf,If,Kf,Mf,Lf,Of,Pf,lf,Qf,Rf,Sf,Vf,Tf,Uf,Bf,Xf,Yf,Wf,kf,Zf,$f,ag,dg,cg,bg,eg,fg,jg,lg,mg,ng,og,pg,qg,rg,sg,tg,vg,wg,xg,yg,Ag,Bg,zg,Cg,Dg,Eg,Fg,Hg,Ig,Jg,Kg,Lg,Mg,Ng,Og,Pg,Qg,Rg,Sg,Tg,Vg,Wg,Yg,Zg,M,$g,ah,bh,ch,dh,jh,lh,mh,nh,oh,eh,hh,ph,fh,rh,qh,th,kh,sh,gh,uh,wh,xh,yh,zh,Ah,Bh,Ch,Dh,Eh,Fh,Gh,Hh,Ih,
Jh,Kh,Lh,Mh,Nh,Oh,Qh,Sh,Th,Uh,Vh,Wh,ai,bi,ci,di,ei,fi,li,ki,hi,ni,oi,ti,wi,qi,vi,si,ui,Bi,Ci,Di,Ei,Fi,Gi,Hi,Ji,Ki,Ii,Oi,Pi,Ri,Si,Ti,Ui,Qi,Vi,Xi,O,Mi,cj,ej,dj,fj,gj,hj,ij,Yi,mj,lj,oj,nj,pj,qj,rj,sj,tj,uj,vj,wj,xj,yj,zj,Aj,Bj,Cj,Ej,Gj,Hj,Ij,Jj,Kj,Lj,Mj,Nj,Oj,Qj,Rj,Pj,Sj,Tj,Uj,Xj,Wj,ak,bk,Zj,ck,fk,dk,ek,gk,hk,ik,jk,kk,lk,mk,nk,ok,pk,qk,rk,sk,tk,uk,wk,xk,yk,vk,Ak,Bk,Dk,Lk,Ek,Jk,Mk,Fk,Ok,Ik,Sk,Pk,Rk,Tk,Uk,Wk,Yk,Zk,Xk,$k,bl,cl,el,fl,al,gl,dl,il,ll,ml,kl,nl,hl,jl,ol,pl,ql,sl,tl,rl,ul,vl,wl,xl,yl,zl,Al,pi,
Bl,Cl,Dl,Ml,Ll,Rl,Tl,Ul,Vl,Xl,Yl,Zl,El,am,Gl,Nl,Il,Fl,Jl,Kl,Wl,Pl,Hl,cm,dm,fm,hm,jm,lm,km,im,mm,nm,om,pm,qm,rm,sm,tm,um,vm,wm,xm,ym,zm,Am,Cm,Bm,Fm,Gm,Em,Hm,Im,Jm,Lm,Mm,Nm,Km,Om,Qm,Rm,Pm,$m,Tm,cn,Sm,dn,fn,Zm,Ym,Xm,jn,hn,kn,ln,nn,pn,qn,rn,sn,tn,wn,un,gn,An,vn,Bn,yn,Cn,Dn,En,Fn,Gn,Hn,Ln,In,Pn,On,Sn,Rn,Jn,Qn,Tn,Vn,on,Nn,Un,Xn,Wn,Kn,mn,en,Vm,Zn,ao,$n,bo,co,eo,fo,go,ho,io,jo,ko,lo,mo,no,oo,po,qo,ro,so,vo,wo,zo,to,Ao,Bo,Co,xo,yo,Do,uo,Fo,Eo,Ho,Io,Go,Jo,Ko,Lo,Mo,Po,No,Ro,So,To,Vo,Uo,Wo,Qo,Oo,Xo,kp,mp,qp,
pp,tp,sp,op,rp,fp,xp,up,Ap,zp,cp,ap,bp,Bp,yp,ep,np,wp,gp,vp,jp,$o,hp,ip,Dp,Gp,Hp,Ip,Kp,Lp,Mp,Np,Op,Pp,Qp,Rp,Jp,Tp,Xp,Sp,aq,bq,cq,dq,fq,hq,jq,kq,lq,mq,oq,pq,qq,rq,wq,sq,vq,zq,Aq,Bq,R,tq,Cq,Dq,Eq,Fq,Hq,Gq,Iq,Lq,Jq,Kq,Mq,Nq,Oq,S,Pq,Qq,Rq,Sq,Tq,Uq,Vq,Wq,$q,cr,dr,er,ir,jr,or,pr,qr,tr,rr,sr,ur,wr,vr,xr,Br,Cr,Ar,zr,Fr,Gr,Hr,Ir,fr,hr,gr,Jr,nr,Lr,Kr,lr,Nr,kr,Rr,Ur,Wr,Yr,Zr,$r,cs,ds,es,bs,gs,is,hs,ks,ls,ms,os,ps,qs,rs,us,ts,ws,ys,vs,xs,As,ns,zs,Cs,Bs,Ds,Es,Fs,Gs,Hs,Ls,Ms,Ns,Os,Ps,Qs,Rs,Ss,Vs,Xs,Ws,Zs,$s,Ys,
at,bt,ct,dt,et,ft,gt,ht,jt,it,kt,lt,mt,nt,ot,pt,qt,rt,tt,ut,vt,wt,xt,zt,At,Bt,Ct,Dt,Et,Gt,Ht,Jt,It,Kt,Lt,Nt,Mt,Ot,Pt,Rt,St,Tt,Ut,Vt,Wt,Xt,Yt,Zt,$t,au,bu,cu,eu,du,gu,iu,ju,ku,nu,ou,lu,mu,ru,tu,uu,wu,vu,xu,yu,Au,Bu,Cu,Fu,Ju,Ku,Eu,Du,Lu,Qu,Ru,Su,Pu,Nu,Ou,Mu,Vu,Wu,Uu,Yu,Zu,$u,av,bv,cv,ev,dv,fv,gv,hv,jv,kv,lv,mv,nv,pv,qv,tv,vv,Av,Cv,Dv,yv,Bv,rv,xv,uv,Ev,wv,zv,Fv,Gv,Hv,Iv,Kv,Jv,Lv,Mv,Nv,Ov,caa,daa,Sv,Vv,Wv,Rv,aaa,baa,faa,Tv,Xv,Yv,eaa,Zv,$v,aw,bw,cw,iaa,jaa,maa,naa,dw,oaa,gw,ew,fw,hw,iw,kw,lw,mw,qaa,raa,
taa,nw,uaa,vaa,ow,xaa,yaa,zaa,pw,Caa,rw,uw,tw,Eaa,Daa,vw,Faa,xw,ww,yw,zw,Gaa,Aw,Bw,Cw,Dw,Ew,Fw,Gw,Hw,Iw,Kw,Lw,Nw,Mw,Ow,Haa,Pw,Qw,Rw,Sw,Tw,Uw,Vw,Ww,Jaa,Xw,Yw,Zw,$w,ax,bx,cx,Kaa,dx,gx,hx,ix,jx,kx,lx,ex,mx,nx,Laa,fx,px,qx,rx,sx,tx,Naa,Oaa,Paa,Qaa,Raa,Saa,wx,xx,yx,zx,Ax,Taa,Bx,Cx,Dx,Ex,jw,Fx,Uaa,Vaa,Gx,Mx,Lx,Nx,Hx,Ox,Px,Qx,Rx,Yaa,Zaa,$aa,Vx,aba,Sx,Tx,bba,Xx,Wx,Yx,Xaa,cba,Zx,Ux,$x,ay,by,cy,dy,fy,gy,iy,jy,ly,my,ny,oy,py,qy,ry,sy,ty,uy,vy,wy,yy,zy,Dy,Gy,Ay,uq,Ky,Ly,My,Ny,Oy,Cy,Iy,Py,Qy,Ry,Sy,Ty,Uy,Vy,Wy,
Xy,Zy,Yy,pu,az,bz,cz,dz,iz,hz,fz,kz,jz,mz,nz,oz,qz,pz,hba,rz,sz,tz,uz,vz,wz,xz,By,Hy,yz,jba,zz,Az,kba,lba,mba,Cz,Bz,Dz,Ez,Fz,Gz,Hz,Iz,nba,Mz,Kz,Oz,Nz,Xz,sba,eA,zba,dA,cA,Wz,qA,rA,oA,qu,wA,xA,yA,zA,AA,ar,lA,BA,pA,mA,DA,FA,Eba,GA,HA,IA,JA,KA,LA,Fba,MA,OA,NA,Gba,PA,Hba,QA,Iba,Jba,RA,SA,Kba,TA,XA,Lba,YA,ZA,$A,aB,bB,cB,dB,eB,gB,fB,hB,jB,rB,nB,kB,lB,mB,oB,pB,qB,vB,uB,tB,Rba,yB,xB,zB,AB,CB,EB,BB,DB,HB,IB,JB,LB,Sba,MB,Tba,Uba,Vba,Wba,Xba,FB,PB,QB,hu,RB,SB,TB,UB,VB,WB,Zba,XB,YB,ZB,aC,bC,$B,$ba,dC,eC,fC,gC,
hC,iC,jC,kC,lC,mC,nC,pC,oC,aca,qC,rC,bca,VA,cca,dca,eca,sC,tC,fca,uC,vC,gca,xC,wC,yC,WA,zC,AC,UA,BC,CC,hca,DC,ica,jca,nca,oca,kca,lca,mca,EC,pca,JC,MC,FC,KC,RC,OC,LC,TC,QC,NC,PC,SC,GC,UC,qca,VC,tca,HC,IC,WC,XC,YC,$C,bD,cD,eD,fD,uca,gD,dD,ZC,aD,hD,iD,jD,kD,lD,mD,nD,oD,pD,qD,rD,sD,tD,Yz,aA,bA,uD,wca,vca,vD,xca,wD,yD,zD,yca,AD,BD,CD,zca,Aca,DD,FD,GD,ED,ID,JD,Bca,LD,Dca,Eca,MD,ND,OD,PD,QD,TD,VD,UD,XD,WD,SD,YD,RD,ZD,$D,aE,bE,dE,Fca,Gca,iE,gE,kE,lE,Ica,pE,Jca,rE,qE,mE,Kca,Yq,Lca,Xq,tE,Mca,Nca,uE,Oca,Pca,
BE,AE,wE,CE,EE,JE,LE,ME,KE,RE,UE,VE,TE,IE,WE,HE,FE,GE,NE,PE,SE,QE,Uca,Vca,XE,YE,Wca,Xca,Yca,Zca,ZE,$E,$ca,aF,bF,ada,cF,dF,gF,eF,hF,iF,gda,hda,mF,jF,nF,kF,sF,ida,tF,uF,vF,wF,xF,yF,zF,AF,lF,dda,eda,fda,bda,cda,jda,Xr,Tr,BF,CF,DF,EF,pF,oF,qF,kda,FF,GF,HF,IF,lda,JF,mda,nda,LF,MF,oda,pda,qda,NF,rda,RF,SF,TF,UF,sda,tda,$F,YF,XF,ZF,cG,aG,VF,uda,WF,vda,bG,wda,dG,eG,fG,gG,hG,yda,zda,Ada,Bda,Cda,xda,iG,kG,jG,lG,nG,qG,oG,rG,sG,uG,wG,tG,vG,zG,Dda,Eda,BG,CG,yG,DG,EG,xG,FG,GG,HG,AG,IG,JG,Fda,Gda,KG,MG,NG,LG,OG,
PG,QG,RG,SG,TG,UG,WG,pG,XG,mG,VG,Ida,$G,aH,bH,eH,gH,hH,iH,lH,mH,oH,nH,pH,qH,uH,sH,tH,rH,vH,kH,wH,xH,yH,cH,zH,AH,dH,fH,BH,Jda,CH,DH,Kda,EH,FH,Lda,GH,Mda,Nda,IH,Oda,HH,JH,Qda,Rda,Sda,KH,MH,OH,NH,PH,QH,Tda,RH,TH,SH,Uda,VH,xq,WH,Vda,XH,YH,fu,ZH,zu,Qt,$H,Hu,aI,cI,iI,eI,kI,lI,nI,mI,bI,tI,sI,jI,vI,oI,wI,yI,xI,DI,EI,FI,GI,qI,HI,II,rI,zI,fI,CI,AI,JI,uI,Zda,LI,gI,Xda,MI,$da,OI,hI,PI,pI,Yda,aea,dI,KI,BI,NI,RI,QI,TI,U,SI,UI,VI,bea,iq,YI,aJ,bJ,T,Sr,Jx,cJ,dJ,br,eJ,fJ,gJ,Xu,Uv,mr,hJ,KB,Kx,Vr,kJ,lJ,mJ,oJ,gq,Qv,pJ,
cea,qJ,rJ,dea,sJ,tJ,uJ,vJ,wJ,eea,xJ,yJ,fea,gea,hea,zJ,AJ,iea,BJ,CJ,DJ,EJ,FJ,GJ,HJ,jea,IJ,kea,JJ,KJ,LJ,lea,mea,NJ,MJ,OJ,PJ,nea,oea,pea,QJ,RJ,rea,qea,sea,tea,SJ,uea,TJ,vea,UJ,VJ,WJ,XJ,wea,ZJ,xea,YJ,$J,aK,yea,bK,zea,cK,eK,dK,fK,Aea,YG,ZG,iK,jK,QF,OF,PF,kK,hK,gK,jH,Bea,Cea,lK,mK,pK,qK,rK,sK,oK,tK,Dea,Eea,Fea,Gea,nK,uK,Hea,vK,wK,xK,yK,zK,AK,BK,CK,DK,EK,GK,FK,HK,IK,JK,KK,LK,MK,NK,ZI,OK,XI,RK,UK,TK,VK,WK,XK,YK,ZK,$K,aL,dL,cL,eL,fL,gL,hL,iL,jL,Iea,Jea,kL,lL,mL,Lea,Kea,oL,pL,KF,qL,rL,Oea,sL,tL,uL,$I,Pea,Nea,
vL,wL,xL,Qea,Rea,zL,Sea,AL,BL,yL,CL,DL,EL,Tea,Vea,IL,Wea,Xea,FL,Uea,GL,KL,LL,JL,NL,ML,Zea,PL,OL,QL,SL,TL,RL,VL,bfa,WL,YL,ZL,$L,XL,aM,cM,bM,dM,fM,gM,jM,hM,lM,nM,oM,pM,qM,rM,sM,xM,wM,yM,zM,AM,DM,dfa,CM,EM,GM,W,HM,IM,JM,KM,LM,MM,NM,OM,PM,ffa,QM,RM,SM,TM,UM,VM,XM,YM,ZM,$M,gfa,aN,bN,hfa,ifa,cN,dN,jfa,kfa,lfa,fN,hN,gN,iN,jN,kN,lN,mN,nfa,mfa,nN,oN,qN,pN,rN,sN,uN,wN,tN,xN,yN,DN,pfa,FN,GN,HN,JN,KN,LN,qfa,ON,SN,TN,WN,YN,sfa,ZN,$N,aO,bO,cO,tfa,ufa,vfa,fO,Afa,iO,xfa,yfa,wfa,zfa,jO,dO,Cfa,lO,eO,gO,mO,Dfa,nO,oO,
pO,qO,rO,Efa,sO,tO,Ffa,Ifa,Hfa,vO,wO,uO,MN,yO,Jfa,Lfa,AO,Kfa,Mfa,BO,CO,DO,FO,EO,GO,zO,HO,Nfa,Ofa,JO,Pfa,Qfa,KO,LO,MO,NO,Rfa,OO,QO,PO,Tfa,Ufa,cP,$O,XO,Wfa,eP,Vfa,bP,RO,pP,Zfa,fP,$fa,dP,aga,cga,dga,Yfa,hP,tP,uP,fga,vP,wP,xP,yP,AP,BP,zP,gga,CP,iga,hga,GP,HP,jga,IP,kga,LP,OP,NP,PP,lga,QP,SP,qga,mga,WP,sga,rga,XP,YP,$P,ZP,xga,aQ,bQ,cQ,eQ,gQ,fQ,zga,hQ,Aga,iQ,jQ,Bga,kQ,Cga,Dga,Ega,Fga,lQ,Gga,mQ,Hga,nQ,oQ,pQ,qQ,Jga,rQ,sQ,uQ,wQ,xQ,tQ,zQ,Kga,Lga,yQ,AQ,BQ,CQ,DQ,Nga,GQ,HQ,IQ,Y,KQ,LQ,MQ,NQ,OQ,PQ,QQ,TQ,UQ,Oga,
YQ,ZQ,Sga,aR,gR,hR,jR,XQ,fR,dR,Yga,Zga,$ga,aha,kR,bha,lR,nR,mR,oR,cha,dha,eha,fha,rR,uR,vR,wR,xR,yR,zR,AR,BR,gha,CR,DR,FR,ER,HR,GR,IR,JR,hha,NR,OR,PR,QR,RR,TR,UR,VR,XR,YR,WR,ZR,$R,aS,bS,cS,dS,eS,fS,iha,gS,jha,jS,kS,hS,iS,mS,qS,nS,oS,lS,pS,kha,rS,sS,tS,uS,wS,zS,yS,pha,BS,vS,CS,qha,ES,DS,FS,GS,HS,IS,KS,LS,JS,rha,OS,PS,sha,QS,tha,uha,vha,wha,RS,SS,TS,US,VS,WS,XS,YS,ZS,$S,xha,aT,bT,cT,dT,eT,fT,gT,iT,jT,zha,Aha,lT,mT,pT,nT,oT,qT,rT,Cha,Dha,sT,tT,zT,AT,uT,BT,Hha,CT,Iha,vT,Gha,wT,xT,yT,Fha,IT,JT,KT,PT,LT,
Pha,Qha,QT,Sha,Nha,ST,Oha,UT,Rha,VT,WT,XT,Vha,Wha,ZT,Xha,Yha,$T,aU,Zha,cU,dU,eU,fU,$ha,aia,bU,gU,hU,iU,jU,kU,lU,mU,nU,oU,rU,qU,pU,dia,sU,NS,MS,vU,gia,uU,tU,wU,xU,yU,zU,hia,AU,xS,BU,CU,jia,MU,QU,SU,ET,YU,bV,cV,dV,eV,TU,nia,fV,gV,HT,iV,kV,Lha,lV,DT,Mha,jV,mV,nV,oV,pV,qV,rV,sV,qia,ria,pia,sia,hV,tia,DV,uia,EV,RU,FV,GV,HV,IV,JV,via,KV,XU,yV,LV,FT,MV,NV,GT,WU,OV,aV,PV,QV,UU,ZU,BV,oia,RV,SV,TV,XV,UV,YV,xia,VV,WV,zia,Aia,yia,ZV,$V,aW,bW,cW,Bia,dW,Fia,Cia,Dia,eW,Gia,Hia,fW,gW,iW,jW,kW,lW,Iia,Jia,Kia,Lia,
mW,nW,Mia,oW,Nia,pW,qW,rW,Pia,sW,vW,wW,xW,Qia,yW,zW,Sia,Ria,AW,BW,CW,DW,EW,tV,uV,xV,FW,Tia,Uia,vV,wV,GW,Via,DU,zV,AV,MW,NW,OU,KU,LW,PW,FU,GU,IU,EU,LU,JU,QW,NU,PU,KW,HU,TW,UW,WW,Wia,XW,YW,ZW,$W,aX,bX,cX,dX,eX,fX,gX,Xia,hX,iX,jX,kX,lX,mX,nX,Yia,oX,pX,qX,rX,Zia,sX,tX,uX,vX,xX,wX,$ia,yX,zX,aja,bja,AX,BX,DX,EX,dja,FX,cja,hja,gja,ija,fja,eja,kja,GX,lja,IX,CX,nja,jja,qja,pja,oja,rja,sja,HX,JX,tja,wja,vja,xja,yja,uja,Aja,Cja,Bja,Eja,MX,NX,OX,PX,QX,RX,SX,TX,UX,VX,WX,YX,ZX,$X,eY,dY,iY,jY,bY,kY,lY,mY,nY,aY,
cY,fY,pY,Lja,qY,Mja,rY,sY,tY,uY,vY,wY,xY,Nja,yY,Oja,Pja,zY,Qja,Rja,AY,BY,Sja,Uja,Vja,Wja,Xja,RT,Yja,Zja,CY,DY,aka,FY,HY,eka,EY,fka,IY,$ja,hka,ika,jka,KY,JY,LY,kka,lka,MY,NY,nka,oka,pka,RY,SY,TY,UY,VY,WY,XY,qka,rka,YY,ZY,aZ,$Y,bZ,cZ,eZ,dZ,fZ,gZ,hZ,uka,kZ,vka,lZ,wka,mZ,nZ,jZ,xka,oZ,pZ,iZ,qZ,rZ,sZ,tZ,vZ,yka,uZ,wZ,xZ,zka,yZ,zZ,Aka,AZ,BZ,Z,FZ,DZ,CZ,Bka,GZ,HZ,IZ,KZ,Cka,LZ,MZ,NZ,OZ,PZ,Dka,RZ,SZ,TZ,UZ,VZ,WZ,Eka,XZ,YZ,ZZ,Fka,a_,b_,c_,d_,e_,f_,g_,h_,i_,j_,k_,l_,n_,o_,p_,Gka,Hka,q_,r_,u_,s_,Ika,Jka,Kka,v_,w_,
x_,y_,z_,A_,B_,C_,D_,E_,F_,G_,Nka,Mka,I_,H_,J_,K_,L_,Oka,Pka,M_,O_,Rka,Qka,P_,Tka,R_,Uka,Q_,V_,W_,X_,Wka,Xka,Y_,Z_,Yka,$_,a0,Zka,c0,$ka,d0,e0,g0,h0,f0,bla,i0,k0,l0,j0,m0,n0,dla,o0,ela,u0,p0,q0,s0,z0,v0,x0,w0,C0,y0,A0,fla,t0,r0,D0,E0,hla,F0,ila,gla,jla,kla,H0,G0,I0,J0,OY,mla,nla,M0,N0,O0,L0,P0,K0,ola,PY,Q0,R0,S0,T0,U0,V0,X0,Y0,pla,qla,Z0,$0,a1,b1,c1,d1,g1,tla,rla,sla,ula,h1,k1,i1,l1,o1,p1,r1,u1,t1,s1,w1,vla,y1,x1,A1,z1,B1,C1,D1,E1,F1,G1,H1,wla,I1,zla,J1,K1,M1,N1,Ala,Bla,O1,Cla,P1,S1,R1,Q1,U1,W1,Y1,
a2,b2,c2,T1,Dla,d2,e2,Ela,f2,g2,h2,i2,j2,k2,l2,m2,n2,o2,t2,Fla,p2,u2,v2,w2,x2,r2,y2,z2,A2,B2,D2,F2,H2,G2,I2,C2,E2,L2,K2,M2,N2,Hla,P2,O2,Q2,Ila,Lla,Jla,Mla,Kla,S2,Nla,T2,U2,V2,Ola,Y2,X2,b3,W2,q2,c3,d3,Pla,e3,h3,Qla,f3,Z2,g3,a3,$2,l3,m3,s2,k3,j3,n3,o3,p3,q3,Sla,Wla,Rla,Tla,Vla,s3,u3,v3,w3,x3,y3,z3,A3,B3,C3,Xla,D3,F3,E3,G3,Yla,H3,Zla,I3,J3,M3,N3,O3,P3,Q3,$la,ama,L3,S3,U3,bma,V3,T3,W3,X3,Y3,cma,dma,fma,ema,Z3,$3,a4,gma,hma,jma,b4,kma,e4,h4,i4,c4,f4,g4,d4,j4,f1,e1,j1,m4,n4,o4,p4,r4,V1,u4,l4,v4,y4,K3,w4,
$1,Z1,i3,A4,t3,B4,D4,E4,H4,C4,K4,M4,N4,O4,I4,J4,L4,F4,P4,G4,Q4,R4,S4,oma,nma,V4,SK,Ix,X4,W4,Z4,X1,T4,$4,a5,b5,c5,d5,f5,g5,e5,i5,j5,k5,qma,rma,l5,m5,sma,n5,o5,p5,r5,bL,s5,t5,u5,v5,w5,x5,z5,A5,B5,y5,C5,iv,E5,F5,G5,H5,I5,J5,L5,K5,M5,O5,P5,N5,Q5,R5,S5,tma,T5,U5,V5,W5,Z5,$5,Y5,X5,b6,a6,c6,d6,e6,f6,h6,j6,g6,l6,k6,n6,p6,q6,r6,s6,t6,uma,u6,v6,w6,x6,y6,z6,A6,B6,D6,C6,E6,F6,G6,H6,I6,K6,J6,M6,L6,N6,O6,P6,Q6,R6,V6,T6,S6,U6,X6,W6,Y6,$6,b7,c7,a7,d7,e7,f7,g7,i7,m7,h7,p7,q7,r7,k7,s7,j7,u7,o7,l7,t7,v7,n7,x7,w7,y7,
z7,A7,B7,C7,D7,E7,F7,G7,H7,J7,I7,K7,L7,M7,N7,O7,P7,R7,S7,T7,U7,Q7,V7,W7,X7,Z7,Y7,$7,a8,b8,c8,d8,e8,g8,f8,h8,j8,D5,l8,k8,i8,m8,Z6,o8,q8,p8,r8,t8,iJ,n8,u8,jJ,s8,v8,Ama,Cma,w8,Dma,Ema,x8,z8,Hma,A8,D8,B8,E8,Mma,Pma,Nma,G8,H8,Tma,I8,Uma,K8,Vma,Wma,Q8,P8,N8,T8,Xma,Yma,U8,Zma,$ma,V8,W8,Zq,ana,Psa,$8,Rsa,c9,Qsa,d9,e9,f9,L1,t4,a9,s4,WI,g9,i9,h9,j9,k4,k9,l9,Ssa,Tsa,p9,o9,s9,t9,Y8,u9,v9,w9,x9,b9,n9,m9,A9,B9,q9,r9,D9,E9,C9,G9,H9,J9,I9,QK,K9,L9,M9,z9,N9,y9,P9,O9,eq,z4,R9,Q9,S9,T9,nJ,x4,U9,F9,Z8,V9,Usa,W9,X9,Y9,
Z9,$9,xn,q,ka,la,E;p=function(a){return void 0!==a};
g.aa=function(a,b,c){a=a.split(".");c=c||q;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]={}};
r=function(a,b){for(var c=a.split("."),d=b||q,e;e=c.shift();)if(null!=d[e])d=d[e];else return null;return d};
v=function(){};
ba=function(a){a.getInstance=function(){return a.bc?a.bc:a.bc=new a}};
ca=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};
da=function(a){return"array"==ca(a)};
ea=function(a){var b=ca(a);return"array"==b||"object"==b&&"number"==typeof a.length};
w=function(a){return"string"==typeof a};
fa=function(a){return"boolean"==typeof a};
ga=function(a){return"number"==typeof a};
ha=function(a){return"function"==ca(a)};
ia=function(a){var b=typeof a;return"object"==b&&null!=a||"function"==b};
ma=function(a){return a[ka]||(a[ka]=++la)};
na=function(a,b,c){return a.call.apply(a.bind,arguments)};
oa=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")?na:oa;return x.apply(null,arguments)};
pa=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)}};
qa=function(a,b){for(var c in b)a[c]=b[c]};
z=function(a,b){function c(){}
c.prototype=b.prototype;a.N=b.prototype;a.prototype=new c;a.prototype.constructor=a;a.HP=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)}};
ra=function(a){if(Error.captureStackTrace)Error.captureStackTrace(this,ra);else{var b=Error().stack;b&&(this.stack=b)}a&&(this.message=String(a))};
sa=function(a,b){return 0==a.lastIndexOf(b,0)};
ta=function(a,b){var c=a.length-b.length;return 0<=c&&a.indexOf(b,c)==c};
B=function(a){return/^[\s\xa0]*$/.test(a)};
ua=function(a){return(0,window.encodeURIComponent)(String(a))};
va=function(a){return(0,window.decodeURIComponent)(a.replace(/\+/g," "))};
Da=function(a){if(!wa.test(a))return a;-1!=a.indexOf("&")&&(a=a.replace(xa,"&amp;"));-1!=a.indexOf("<")&&(a=a.replace(ya,"&lt;"));-1!=a.indexOf(">")&&(a=a.replace(za,"&gt;"));-1!=a.indexOf('"')&&(a=a.replace(Aa,"&quot;"));-1!=a.indexOf("'")&&(a=a.replace(Ba,"&#39;"));-1!=a.indexOf("\x00")&&(a=a.replace(Ca,"&#0;"));return a};
Ga=function(a){return-1!=a.indexOf("&")?"document"in q?Ea(a):Fa(a):a};
Ea=function(a){var b={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"'},c;c=q.document.createElement("div");return a.replace(Ha,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})};
Fa=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}})};
Ia=function(a,b){a.length>b&&(a=a.substring(0,b-3)+"...");return a};
Ja=function(a,b){return-1!=a.toLowerCase().indexOf(b.toLowerCase())};
La=function(a,b,c){a=p(c)?a.toFixed(c):String(a);c=a.indexOf(".");-1==c&&(c=a.length);return Ka("0",Math.max(0,b-c))+a};
C=function(a){return null==a?"":String(a)};
Ma=function(a){return Array.prototype.join.call(arguments,"")};
Na=function(){return Math.floor(2147483648*Math.random()).toString(36)+Math.abs(Math.floor(2147483648*Math.random())^E()).toString(36)};
Qa=function(a,b){for(var c=0,d=Oa(String(a)).split("."),e=Oa(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=Pa(0==l[1].length?0:(0,window.parseInt)(l[1],10),0==m[1].length?0:(0,window.parseInt)(m[1],10))||Pa(0==l[2].length,0==m[2].length)||Pa(l[2],m[2]);l=l[3];m=m[3]}while(0==c)}return c};
Pa=function(a,b){return a<b?-1:a>b?1:0};
Ra=function(a){for(var b=0,c=0;c<a.length;++c)b=31*b+a.charCodeAt(c)>>>0;return b};
Ta=function(){return"goog_"+Sa++};
Ua=function(a){var b=Number(a);return 0==b&&B(a)?window.NaN:b};
Va=function(a){return String(a).replace(/\-([a-z])/g,function(a,c){return c.toUpperCase()})};
Wa=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()})};
Xa=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};
Ya=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};
Za=function(a){return a[a.length-1]};
bb=function(a,b,c){b=$a(a,b,c);return 0>b?null:w(a)?a.charAt(b):a[b]};
$a=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};
db=function(a,b){var c=cb(a,b,void 0);return 0>c?null:w(a)?a.charAt(c):a[c]};
cb=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};
fb=function(a,b){return 0<=eb(a,b)};
gb=function(a){return 0==a.length};
jb=function(a){if(!da(a))for(var b=a.length-1;0<=b;b--)delete a[b];a.length=0};
lb=function(a,b){fb(a,b)||a.push(b)};
ob=function(a,b){var c=eb(a,b),d;(d=0<=c)&&nb(a,c);return d};
nb=function(a,b){Array.prototype.splice.call(a,b,1)};
pb=function(a,b){var c=$a(a,b,void 0);0<=c&&nb(a,c)};
qb=function(a){return Array.prototype.concat.apply(Array.prototype,arguments)};
rb=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[]};
sb=function(a,b){for(var c=1;c<arguments.length;c++){var d=arguments[c];if(ea(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)}};
ub=function(a,b,c,d){Array.prototype.splice.apply(a,tb(arguments,1))};
tb=function(a,b,c){return 2>=arguments.length?Array.prototype.slice.call(a,b):Array.prototype.slice.call(a,b,c)};
vb=function(a,b,c){function d(a){return ia(a)?"o"+ma(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};
zb=function(a,b,c){return xb(a,c||yb,!1,b)};
Ab=function(a,b){return xb(a,b,!0,void 0,void 0)};
xb=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};
Bb=function(a,b){a.sort(b||yb)};
Cb=function(a,b,c){var d=c||yb;Bb(a,function(a,c){return d(b(a),b(c))})};
Db=function(a,b){Cb(a,function(a){return a[b]},void 0)};
Fb=function(a,b){if(!ea(a)||!ea(b)||a.length!=b.length)return!1;for(var c=a.length,d=Eb,e=0;e<c;e++)if(!d(a[e],b[e]))return!1;return!0};
yb=function(a,b){return a>b?1:a<b?-1:0};
Eb=function(a,b){return a===b};
Gb=function(a,b,c){c=zb(a,b,c);0>c&&ub(a,-(c+1),0,b)};
Hb=function(a,b,c){var d={};F(a,function(e,f){d[b.call(c,e,f,a)]=e});
return d};
Ib=function(a){for(var b=[],c=0;c<a;c++)b[c]=0;return b};
Jb=function(a){for(var b=[],c=0;c<arguments.length;c++){var d=arguments[c];if(da(d))for(var e=0;e<d.length;e+=8192)for(var f=Jb.apply(null,tb(d,e,e+8192)),k=0;k<f.length;k++)b.push(f[k]);else b.push(d)}return b};
Kb=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.jb=this.jb;this.Oa=this.Oa};
H=function(a,b){Lb(a,pa(Mb,b))};
Lb=function(a,b){a.jb?p(void 0)?b.call(void 0):b():(a.Oa||(a.Oa=[]),a.Oa.push(p(void 0)?x(b,void 0):b))};
Mb=function(a){a&&"function"==typeof a.dispose&&a.dispose()};
Nb=function(a){for(var b=0,c=arguments.length;b<c;++b){var d=arguments[b];ea(d)?Nb.apply(null,d):Mb(d)}};
Ob=function(a,b,c){for(var d in a)b.call(c,a[d],d,a)};
Pb=function(a,b,c){var d={},e;for(e in a)b.call(c,a[e],e,a)&&(d[e]=a[e]);return d};
Qb=function(a,b){var c={},d;for(d in a)c[d]=b.call(void 0,a[d],d,a);return c};
Rb=function(a,b,c){for(var d in a)if(b.call(c,a[d],d,a))return!0;return!1};
Sb=function(a,b){for(var c in a)if(!b.call(void 0,a[c],c,a))return!1;return!0};
Tb=function(a){var b=0,c;for(c in a)b++;return b};
Vb=function(a,b){return Ub(a,b)};
Wb=function(a){var b=[],c=0,d;for(d in a)b[c++]=a[d];return b};
Xb=function(a){var b=[],c=0,d;for(d in a)b[c++]=d;return b};
Yb=function(a,b){for(var c=ea(b),d=c?b:arguments,c=c?0:1;c<d.length&&(a=a[d[c]],p(a));c++);return a};
Zb=function(a,b){return null!==a&&b in a};
Ub=function(a,b){for(var c in a)if(a[c]==b)return!0;return!1};
$b=function(a,b,c){for(var d in a)if(b.call(c,a[d],d,a))return d};
ac=function(a,b){var c=$b(a,b,void 0);return c&&a[c]};
bc=function(a){for(var b in a)return!1;return!0};
cc=function(a){for(var b in a)delete a[b]};
dc=function(a,b){b in a&&delete a[b]};
ec=function(a,b,c){return null!==a&&b in a?a[b]:c};
fc=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};
gc=function(a){var b={},c;for(c in a)b[c]=a[c];return b};
hc=function(a){var b=ca(a);if("object"==b||"array"==b){if(ha(a.clone))return a.clone();var b="array"==b?[]:{},c;for(c in a)b[c]=hc(a[c]);return b}return a};
jc=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<ic.length;f++)c=ic[f],Object.prototype.hasOwnProperty.call(d,c)&&(a[c]=d[c])}};
kc=function(a){var b=arguments.length;if(1==b&&da(arguments[0]))return kc.apply(null,arguments[0]);for(var c={},d=0;d<b;d++)c[arguments[d]]=!0;return c};
lc=function(a,b){this.type=a;this.currentTarget=this.target=b;this.g=!1;this.Zr=!0};
mc=function(a){a.stopPropagation()};
nc=function(a){nc[" "](a);return a};
oc=function(a,b){try{return nc(a[b]),!0}catch(c){}return!1};
qc=function(a,b){var c=pc;return Object.prototype.hasOwnProperty.call(c,a)?c[a]:c[a]=b(a)};
tc=function(a){return-1!=sc.indexOf(a)};
uc=function(){return(tc("Chrome")||tc("CriOS"))&&!tc("Edge")};
vc=function(){return tc("iPhone")&&!tc("iPod")&&!tc("iPad")};
wc=function(){var a=q.document;return a?a.documentMode:void 0};
yc=function(a){return qc(a,function(){return 0<=Qa(xc,a)})};
Ac=function(a){return Number(zc)>=a};
Dc=function(a){return Bc?"webkit"+a:Cc?"o"+a.toLowerCase():a.toLowerCase()};
Ec=function(a,b){lc.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)};
Gc=function(a){return!(!a||!a[Fc])};
Ic=function(a,b,c,d,e){this.listener=a;this.b=null;this.src=b;this.type=c;this.Kf=!!d;this.Md=e;this.key=++Hc;this.pg=this.gi=!1};
Jc=function(a){a.pg=!0;a.listener=null;a.b=null;a.src=null;a.Md=null};
Lc=function(a){this.src=a;this.b={};this.g=0};
Nc=function(a,b,c,d,e,f){var k=b.toString();b=a.b[k];b||(b=a.b[k]=[],a.g++);var l=Mc(b,c,e,f);-1<l?(a=b[l],d||(a.gi=!1)):(a=new Ic(c,a.src,k,!!e,f),a.gi=d,b.push(a));return a};
Oc=function(a,b){var c=b.type;if(!(c in a.b))return!1;var d=ob(a.b[c],b);d&&(Jc(b),0==a.b[c].length&&(delete a.b[c],a.g--));return d};
Pc=function(a){var b=0,c;for(c in a.b){for(var d=a.b[c],e=0;e<d.length;e++)++b,Jc(d[e]);delete a.b[c];a.g--}};
Qc=function(a,b,c,d,e){a=a.b[b.toString()];b=-1;a&&(b=Mc(a,c,d,e));return-1<b?a[b]:null};
Mc=function(a,b,c,d){for(var e=0;e<a.length;++e){var f=a[e];if(!f.pg&&f.listener==b&&f.Kf==!!c&&f.Md==d)return e}return-1};
Rc=function(a,b,c,d,e){if(da(b)){for(var f=0;f<b.length;f++)Rc(a,b[f],c,d,e);return null}c=Sc(c);return Gc(a)?a.P(b,c,d,e):Tc(a,b,c,!1,d,e)};
Tc=function(a,b,c,d,e,f){if(!b)throw Error("Invalid event type");var k=!!e,l=Uc(a);l||(a[Vc]=l=new Lc(a));c=Nc(l,b,c,d,e,f);if(c.b)return c;d=Wc();c.b=d;d.src=a;d.listener=c;if(a.addEventListener)a.addEventListener(b.toString(),d,k);else if(a.attachEvent)a.attachEvent(Xc(b.toString()),d);else throw Error("addEventListener and attachEvent are unavailable.");Yc++;return c};
Wc=function(){var a=Zc,b=$c?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};
ad=function(a,b,c,d,e){if(da(b)){for(var f=0;f<b.length;f++)ad(a,b[f],c,d,e);return null}c=Sc(c);return Gc(a)?Nc(a.hd,String(b),c,!0,d,e):Tc(a,b,c,!0,d,e)};
bd=function(a,b,c,d,e){if(da(b))for(var f=0;f<b.length;f++)bd(a,b[f],c,d,e);else c=Sc(c),Gc(a)?a.ua(b,c,d,e):a&&(a=Uc(a))&&(b=Qc(a,b,c,!!d,e))&&cd(b)};
cd=function(a){if(ga(a)||!a||a.pg)return!1;var b=a.src;if(Gc(b))return Oc(b.hd,a);var c=a.type,d=a.b;b.removeEventListener?b.removeEventListener(c,d,a.Kf):b.detachEvent&&b.detachEvent(Xc(c),d);Yc--;(c=Uc(b))?(Oc(c,a),0==c.g&&(c.src=null,b[Vc]=null)):Jc(a);return!0};
Xc=function(a){return a in dd?dd[a]:dd[a]="on"+a};
fd=function(a,b,c,d){var e=!0;if(a=Uc(a))if(b=a.b[b.toString()])for(b=b.concat(),a=0;a<b.length;a++){var f=b[a];f&&f.Kf==c&&!f.pg&&(f=ed(f,d),e=e&&!1!==f)}return e};
ed=function(a,b){var c=a.listener,d=a.Md||a.src;a.gi&&cd(a);return c.call(d,b)};
Zc=function(a,b){if(a.pg)return!0;if(!$c){var c=b||r("window.event"),d=new Ec(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=fd(c[k],f,!0,d),e=e&&l}for(k=0;!d.g&&k<c.length;k++)d.currentTarget=c[k],l=fd(c[k],f,!1,d),e=e&&l}return e}return ed(a,new Ec(b,this))};
Uc=function(a){a=a[Vc];return a instanceof Lc?a:null};
Sc=function(a){if(ha(a))return a;a[gd]||(a[gd]=function(b){return a.handleEvent(b)});
return a[gd]};
hd=function(){G.call(this);this.hd=new Lc(this);this.Na=this;this.va=null};
id=function(a,b,c,d){b=a.hd.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.pg&&k.Kf==c){var l=k.listener,m=k.Md||k.src;k.gi&&Oc(a.hd,k);e=!1!==l.call(m,d)&&e}}return e&&0!=d.Zr};
jd=function(a,b,c){this.B=c;this.o=a;this.A=b;this.g=0;this.b=null};
kd=function(a,b){a.A(b);a.g<a.B&&(a.g++,b.next=a.b,a.b=b)};
ld=function(a){return function(){return a}};
md=function(a){var b;b=b||0;return function(){return a.apply(this,Array.prototype.slice.call(arguments,0,b))}};
nd=function(a){q.setTimeout(function(){throw a;},0)};
qd=function(a,b){var c=a;b&&(c=x(a,b));!ha(q.setImmediate)||q.Window&&q.Window.prototype&&!tc("Edge")&&q.Window.prototype.setImmediate==q.setImmediate?(od||(od=pd()),od(c)):q.setImmediate(c)};
pd=function(){var a=q.MessageChannel;"undefined"===typeof a&&"undefined"!==typeof window&&window.postMessage&&window.addEventListener&&!tc("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&&!tc("Trident")&&!tc("MSIE")){var b=new a,c={},d=c;b.port1.onmessage=function(){if(p(c.next)){c=c.next;var a=c.Co;c.Co=null;a()}};
return function(a){d.next={Co: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){q.setTimeout(a,0)}};
rd=function(){this.g=this.b=null};
sd=function(){this.next=this.scope=this.b=null};
yd=function(a,b){td||ud();vd||(td(),vd=!0);var c=wd,d=xd.get();d.set(a,b);c.g?c.g.next=d:c.b=d;c.g=d};
ud=function(){if(q.Promise&&q.Promise.resolve){var a=q.Promise.resolve(void 0);td=function(){a.then(zd)}}else td=function(){qd(zd)}};
zd=function(){for(var a;a=wd.remove();){try{a.b.call(a.scope)}catch(b){nd(b)}kd(xd,a)}vd=!1};
Ad=function(a){a.prototype.then=a.prototype.then;a.prototype.$goog_Thenable=!0};
Bd=function(a){if(!a)return!1;try{return!!a.$goog_Thenable}catch(b){return!1}};
Dd=function(a,b){this.b=0;this.D=void 0;this.A=this.g=this.o=null;this.B=this.C=!1;if(a!=v)try{var c=this;a.call(b,function(a){Cd(c,2,a)},function(a){Cd(c,3,a)})}catch(d){Cd(this,3,d)}};
Ed=function(){this.next=this.context=this.g=this.A=this.b=null;this.o=!1};
Gd=function(a,b,c){var d=Fd.get();d.A=a;d.g=b;d.context=c;return d};
Hd=function(a){if(a instanceof Dd)return a;var b=new Dd(v);Cd(b,2,a);return b};
Id=function(a){return new Dd(function(b,c){c(a)})};
Kd=function(a,b,c){Jd(a,b,c,null)||yd(pa(b,a))};
Ld=function(a){return new Dd(function(b,c){a.length||b(void 0);for(var d=0,e;d<a.length;d++)e=a[d],Kd(e,b,c)})};
Md=function(a){return new Dd(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],Kd(m,pa(f,l),k);
else b(e)})};
Od=function(){var a,b,c=new Dd(function(c,e){a=c;b=e});
return new Nd(c,a,b)};
Qd=function(a,b){var c=Gd(b,b,void 0);c.o=!0;Pd(a,c)};
Sd=function(a,b){return Rd(a,null,b,void 0)};
Td=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?Td(c,b):(f?(d=f,d.next==c.A&&(c.A=d),d.next=d.next.next):Ud(c),Vd(c,e,3,b)))}a.o=null}else Cd(a,3,b)};
Pd=function(a,b){a.g||2!=a.b&&3!=a.b||Wd(a);a.A?a.A.next=b:a.g=b;a.A=b};
Rd=function(a,b,c,d){var e=Gd(null,null,null);e.b=new Dd(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 Xd?k(b):a(e)}catch(n){k(n)}}:k});
e.b.o=a;Pd(a,e);return e.b};
Cd=function(a,b,c){0==a.b&&(a===c&&(b=3,c=new TypeError("Promise cannot resolve to itself")),a.b=1,Jd(c,a.G,a.H,a)||(a.D=c,a.b=b,a.o=null,Wd(a),3!=b||c instanceof Xd||Yd(a,c)))};
Jd=function(a,b,c,d){if(a instanceof Dd)return Pd(a,Gd(b||v,c||null,d)),!0;if(Bd(a))return a.then(b,c,d),!0;if(ia(a))try{var e=a.then;if(ha(e))return Zd(a,e,b,c,d),!0}catch(f){return c.call(d,f),!0}return!1};
Zd=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)}};
Wd=function(a){a.C||(a.C=!0,yd(a.F,a))};
Ud=function(a){var b=null;a.g&&(b=a.g,a.g=b.next,b.next=null);a.g||(a.A=null);return b};
Vd=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,$d(b,c,d);else try{b.o?b.A.call(b.context):$d(b,c,d)}catch(e){ae.call(null,e)}kd(Fd,b)};
$d=function(a,b,c){2==b?a.A.call(a.context,c):a.g&&a.g.call(a.context,c)};
Yd=function(a,b){a.B=!0;yd(function(){a.B&&ae.call(null,b)})};
Xd=function(a){ra.call(this,a)};
Nd=function(a,b,c){this.o=a;this.g=b;this.b=c};
be=function(a,b){hd.call(this);this.b=a||1;this.g=b||q;this.o=x(this.$x,this);this.A=E()};
ce=function(a,b){a.b=b;a.Sc&&a.enabled?(a.stop(),a.start()):a.Sc&&a.stop()};
de=function(a,b,c){if(ha(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:q.setTimeout(a,b||0)};
ee=function(a){q.clearTimeout(a)};
fe=function(a,b,c){G.call(this);this.b=a;this.A=b||0;this.g=c;this.o=x(this.pp,this)};
ge=function(a){a.stop();a.pp()};
he=function(a){if(a.classList)return a.classList;a=a.className;return w(a)&&a.match(/\S+/g)||[]};
ie=function(a,b){return a.classList?a.classList.contains(b):fb(he(a),b)};
J=function(a,b){a.classList?a.classList.add(b):ie(a,b)||(a.className+=0<a.className.length?" "+b:b)};
je=function(a,b){if(a.classList)F(b,function(b){J(a,b)});
else{var c={};F(he(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}};
le=function(a,b){a.classList?a.classList.remove(b):ie(a,b)&&(a.className=ke(he(a),function(a){return a!=b}).join(" "))};
me=function(a,b){a.classList?F(b,function(b){le(a,b)}):a.className=ke(he(a),function(a){return!fb(b,a)}).join(" ")};
K=function(a,b,c){c?J(a,b):le(a,b)};
oe=function(a,b){return b?a.replace(ne,""):a};
ue=function(a,b){for(var c=0,d=0,e=!1,f=oe(a,b).split(pe),k=0;k<f.length;k++){var l=f[k];qe.test(oe(l,void 0))?(c++,d++):re.test(l)?e=!0:se.test(oe(l,void 0))?d++:te.test(l)&&(e=!0)}return 0==d?e?1:0:.4<c/d?-1:1};
we=function(){this.b="";this.g=ve};
xe=function(a){return a instanceof we&&a.constructor===we&&a.g===ve?a.b:"type_error:Const"};
ye=function(a){var b=new we;b.b=a;return b};
Ae=function(){this.b="";this.g=ze};
Be=function(a){var b=new Ae;b.b=a;return b};
De=function(){this.b="";this.g=Ce};
Ee=function(a){if(a instanceof De&&a.constructor===De&&a.g===Ce)return a.b;ca(a);return"type_error:SafeUrl"};
He=function(a){if(a instanceof De)return a;a=a.wf?a.He():String(a);Fe.test(a)||(a="about:invalid#zClosurez");return Ge(a)};
Ge=function(a){var b=new De;b.b=a;return b};
Je=function(){this.b="";this.g=Ie};
Ke=function(a){if(a instanceof Je&&a.constructor===Je&&a.g===Ie)return a.b;ca(a);return"type_error:TrustedResourceUrl"};
Le=function(a){var b=new Je;b.b=a;return b};
Ne=function(){this.b="";this.o=Me;this.g=null};
Oe=function(a){if(a instanceof Ne&&a.constructor===Ne&&a.o===Me)return a.b;ca(a);return"type_error:SafeHtml"};
Qe=function(a){function b(a){if(da(a))F(a,b);else{var f;a instanceof Ne?f=a:(f=null,a.Fl&&(f=a.Rf()),a=Da(a.wf?a.He():String(a)),f=Pe(a,f));d+=Oe(f);f=f.Rf();0==c?c=f:0!=f&&c!=f&&(c=null)}}
var c=0,d="";F(arguments,b);return Pe(d,c)};
Pe=function(a,b){var c=new Ne;c.b=a;c.g=b;return c};
We=function(a,b,c){var d=null,e,f="";if(b)for(e in b){if(!Re.test(e))throw Error('Invalid attribute name "'+e+'".');var k=b[e];if(null!=k){var l,m=a;l=e;if(k instanceof we)k=xe(k);else if("style"==l.toLowerCase()){if(!ia(k))throw Error('The "style" attribute requires goog.html.SafeStyle or map of style properties, '+typeof k+" given: "+k);if(!(k instanceof Ae)){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
we)t=xe(t);else if(Se.test(t)){for(var u=!0,y=!0,D=0;D<t.length;D++){var A=t.charAt(D);"'"==A&&y?u=!u:'"'==A&&u&&(y=!y)}u&&y||(t="zClosurez")}else t="zClosurez";m+=n+":"+t+";"}}k=m?Be(m):Te}k instanceof Ae&&k.constructor===Ae&&k.g===ze?k=k.b:(ca(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 Ue)if(k instanceof Je)k=Ke(k);else if(k instanceof De)k=Ee(k);else if(w(k))k=He(k).He();else throw Error('Attribute "'+
l+'" on tag "'+m+'" requires goog.html.SafeUrl, goog.string.Const, or string, value "'+k+'" given.');}k.wf&&(k=k.He());l=l+'="'+Da(String(k))+'"';f+=" "+l}}e="<"+a+f;null!=c?da(c)||(c=[c]):c=[];!0===Ve[a.toLowerCase()]?e+=">":(d=Qe(c),e+=">"+Oe(d)+"</"+a+">",d=d.Rf());(a=b&&b.dir)&&(/^(ltr|rtl|auto)$/i.test(a)?d=0:d=null);return Pe(e,d)};
Xe=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};
Ze=function(a,b){return Pe(b,null)};
$e=function(a,b,c){return Math.min(Math.max(a,b),c)};
af=function(a,b,c){return a+c*(b-a)};
cf=function(a){return bf(arguments,function(a,c){return a+c},0)};
df=function(a){return cf.apply(null,arguments)/arguments.length};
ef=function(a,b){this.x=p(a)?a:0;this.y=p(b)?b:0};
ff=function(a,b){return a==b?!0:a&&b?a.x==b.x&&a.y==b.y:!1};
gf=function(a,b){this.width=a;this.height=b};
hf=function(a,b){return a==b?!0:a&&b?a.width==b.width&&a.height==b.height:!1};
jf=function(a,b){var c;c=b instanceof De?b:He(b);a.href=Ee(c)};
nf=function(a){return a?new kf(lf(a)):mf||(mf=new kf)};
pf=function(a,b){var c=b||window.document;return c.querySelectorAll&&c.querySelector?c.querySelectorAll("."+a):of("*",a,b)};
qf=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=of("*",a,b)[0];return d||null};
of=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&&fb(a.split(/\s+/),b)&&(d[e++]=k);d.length=e;return d}return c};
sf=function(a,b){Ob(b,function(b,d){"style"==d?a.style.cssText=b:"class"==d?a.className=b:"for"==d?a.htmlFor=b:rf.hasOwnProperty(d)?a.setAttribute(rf[d],b):sa(d,"aria-")||sa(d,"data-")?a.setAttribute(d,b):a[d]=b})};
tf=function(a){a=a.document;a="CSS1Compat"==a.compatMode?a.documentElement:a.body;return new gf(a.clientWidth,a.clientHeight)};
wf=function(a){var b=uf(a);a=a.parentWindow||a.defaultView;return vf&&yc("10")&&a.pageYOffset!=b.scrollTop?new ef(b.scrollLeft,b.scrollTop):new ef(a.pageXOffset||b.scrollLeft,a.pageYOffset||b.scrollTop)};
uf=function(a){return a.scrollingElement?a.scrollingElement:Bc||"CSS1Compat"!=a.compatMode?a.body||a.documentElement:a.documentElement};
xf=function(a){return a?a.parentWindow||a.defaultView:window};
L=function(a,b,c){return yf(window.document,arguments)};
yf=function(a,b){var c=String(b[0]),d=b[1];if(!zf&&d&&(d.name||d.type)){c=["<",c];d.name&&c.push(' name="',Da(d.name),'"');if(d.type){c.push(' type="',Da(d.type),'"');var e={};jc(e,d);delete e.type;d=e}c.push(">");c=c.join("")}c=a.createElement(c);d&&(w(d)?c.className=d:da(d)?c.className=d.join(" "):sf(c,d));2<b.length&&Af(a,c,b,2);return c};
Af=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];!ea(f)||ia(f)&&0<f.nodeType?e(f):F(Bf(f)?rb(f):f,e)}};
Cf=function(a){return window.document.createElement(String(a))};
Df=function(a,b){a.appendChild(b)};
Ef=function(a,b){Af(lf(a),a,arguments,1)};
Ff=function(a){for(var b;b=a.firstChild;)a.removeChild(b)};
Gf=function(a,b,c){a.insertBefore(b,a.childNodes[c]||null)};
Hf=function(a){return a&&a.parentNode?a.parentNode.removeChild(a):null};
If=function(a,b){var c=b.parentNode;c&&c.replaceChild(a,b)};
Kf=function(a){return Jf&&void 0!=a.children?a.children:ke(a.childNodes,function(a){return 1==a.nodeType})};
Mf=function(a){return p(a.firstElementChild)?a.firstElementChild:Lf(a.firstChild)};
Lf=function(a){for(;a&&1!=a.nodeType;)a=a.nextSibling;return a};
Of=function(a){var b;if(Nf&&!(vf&&yc("9")&&!yc("10")&&q.SVGElement&&a instanceof q.SVGElement)&&(b=a.parentElement))return b;b=a.parentNode;return ia(b)&&1==b.nodeType?b:null};
Pf=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};
lf=function(a){return 9==a.nodeType?a:a.ownerDocument||a.document};
Qf=function(a){try{return a.contentWindow||(a.contentDocument?xf(a.contentDocument):null)}catch(b){}return null};
Rf=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 Ff(a),a.appendChild(lf(a).createTextNode(String(b)))};
Sf=function(a){if("outerHTML"in a)return a.outerHTML;var b=lf(a).createElement("DIV");b.appendChild(a.cloneNode(!0));return b.innerHTML};
Vf=function(a){var b;if((b="A"==a.tagName||"INPUT"==a.tagName||"TEXTAREA"==a.tagName||"SELECT"==a.tagName||"BUTTON"==a.tagName?!a.disabled&&(!Tf(a)||Uf(a)):Tf(a)&&Uf(a))&&vf){var c;!ha(a.getBoundingClientRect)||vf&&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};
Tf=function(a){a=a.getAttributeNode("tabindex");return null!=a&&a.specified};
Uf=function(a){a=a.tabIndex;return ga(a)&&0<=a&&32768>a};
Bf=function(a){if(a&&"number"==typeof a.length){if(ia(a))return"function"==typeof a.item||"string"==typeof a.item;if(ha(a))return"function"==typeof a.item}return!1};
Xf=function(a,b,c,d){if(!b&&!c)return null;var e=b?b.toUpperCase():null;return Wf(a,function(a){return(!e||a.nodeName==e)&&(!c||w(a.className)&&fb(a.className.split(/\s+/),c))},d)};
Yf=function(a,b){return Xf(a,null,b,void 0)};
Wf=function(a,b,c){for(var d=0;a&&(null==c||d<=c);){if(b(a))return a;a=a.parentNode;d++}return null};
kf=function(a){this.b=a||q.document||window.document};
Zf=function(a){a=a.b;return a.parentWindow||a.defaultView};
$f=function(a){a=String(a);if(/^\s*$/.test(a)?0:/^[\],:{}\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,"")))try{return eval("("+a+")")}catch(b){}throw Error("Invalid JSON string: "+a);};
ag=function(a){return eval("("+a+")")};
dg=function(a){return bg(new cg(void 0),a)};
cg=function(a){this.b=a};
bg=function(a,b){var c=[];eg(a,b,c);return c.join("")};
eg=function(a,b,c){if(null==b)c.push("null");else{if("object"==typeof b){if(da(b)){var d=b;b=d.length;c.push("[");for(var e="",f=0;f<b;f++)c.push(e),e=d[f],eg(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),fg(d,c),c.push(":"),eg(a,a.b?a.b.call(b,d,e):e,c),f=","));c.push("}");return}}switch(typeof b){case "string":fg(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);}}};
fg=function(a,b){b.push('"',a.replace(gg,function(a){var b=ig[a];b||(b="\\u"+(a.charCodeAt(0)|65536).toString(16).substr(1),ig[a]=b);return b}),'"')};
jg=function(a,b,c,d){this.top=a;this.right=b;this.bottom=c;this.left=d};
lg=function(a,b,c,d){this.left=a;this.top=b;this.width=c;this.height=d};
mg=function(a){return new jg(a.top,a.left+a.width,a.top+a.height,a.left)};
ng=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};
og=function(a){return new gf(a.width,a.height)};
pg=function(a){return new ef(a.left,a.top)};
qg=function(a){G.call(this);this.xc=1;this.o=[];this.A=0;this.b=[];this.g={};this.B=!!a};
rg=function(a,b,c,d){if(b=a.g[b]){var e=a.b;if(b=bb(b,function(a){return e[a+1]==c&&e[a+2]==d}))return a.Lc(b)}return!1};
sg=function(a,b,c){yd(function(){a.apply(b,c)})};
tg=function(){};
vg=function(a){if(a instanceof tg)return a;if("function"==typeof a.Cc)return a.Cc(!1);if(ea(a)){var b=0,c=new tg;c.next=function(){for(;;){if(b>=a.length)throw ug;if(b in a)return a[b++];b++}};
return c}throw Error("Not implemented");};
wg=function(a,b,c){if(ea(a))try{F(a,b,c)}catch(d){if(d!==ug)throw d;}else{a=vg(a);try{for(;;)b.call(c,a.next(),void 0,a)}catch(d){if(d!==ug)throw d;}}};
xg=function(a){if(ea(a))return rb(a);a=vg(a);var b=[];wg(a,function(a){b.push(a)});
return b};
yg=function(a,b){this.g={};this.b=[];this.Te=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 yg?(c=a.Va(),d=a.Pa()):(c=Xb(a),d=Wb(a));for(var e=0;e<c.length;e++)this.set(c[e],d[e])}};
Ag=function(a,b){return zg(a.g,b)};
Bg=function(a){if(a.ya!=a.b.length){for(var b=0,c=0;b<a.b.length;){var d=a.b[b];zg(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],zg(e,d)||(a.b[c++]=d,e[d]=1),b++;a.b.length=c}};
zg=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)};
Cg=function(a){if(a.Pa&&"function"==typeof a.Pa)return a.Pa();if(w(a))return a.split("");if(ea(a)){for(var b=[],c=a.length,d=0;d<c;d++)b.push(a[d]);return b}return Wb(a)};
Dg=function(a){if(a.Va&&"function"==typeof a.Va)return a.Va();if(!a.Pa||"function"!=typeof a.Pa){if(ea(a)||w(a)){var b=[];a=a.length;for(var c=0;c<a;c++)b.push(c);return b}return Xb(a)}};
Eg=function(a,b){if(a.forEach&&"function"==typeof a.forEach)a.forEach(b,void 0);else if(ea(a)||w(a))F(a,b,void 0);else for(var c=Dg(a),d=Cg(a),e=d.length,f=0;f<e;f++)b.call(void 0,d[f],c&&c[f],a)};
Fg=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};
Hg=function(a){return a.match(Gg)};
Ig=function(a){return a?(0,window.decodeURI)(a):a};
Jg=function(a){return Ig(Hg(a)[3]||null)};
Kg=function(a){return Number(Hg(a)[4]||null)||null};
Lg=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?va(k):"")}};
Mg=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("")};
Ng=function(a,b,c){if(da(b))for(var d=0;d<b.length;d++)Ng(a,String(b[d]),c);else null!=b&&c.push("&",a,""===b?"":"=",ua(b))};
Og=function(a,b,c){for(c=c||0;c<b.length;c+=2)Ng(b[c],b[c+1],a);return a};
Pg=function(a,b){for(var c in b)Ng(c,b[c],a);return a};
Qg=function(a){a=Pg([],a);a[0]="";return a.join("")};
Rg=function(a,b){return Mg(2==arguments.length?Og([a],arguments[1],0):Og([a],arguments,1))};
Sg=function(a,b){return Mg(Pg([a],b))};
Tg=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};
Vg=function(a,b){return 0<=Tg(a,0,b,a.search(Ug))};
Wg=function(a,b){var c=a.search(Ug),d=Tg(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 va(a.substr(d,e-d))};
Yg=function(a,b){for(var c=a.search(Ug),d=0,e,f=[];0<=(e=Tg(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(Xg,"$1")};
Zg=function(a,b,c){a=[Yg(a,b),"&",b];null!=c&&a.push("=",ua(c));return Mg(a)};
M=function(a,b){this.g=this.H=this.A="";this.D=null;this.G=this.o="";this.B=!1;var c;a instanceof M?(this.B=p(b)?b:a.B,$g(this,a.A),this.H=a.H,ah(this,a.g),bh(this,a.D),ch(this,a.o),dh(this,a.b.clone()),this.G=a.F()):a&&(c=Hg(String(a)))?(this.B=!!b,$g(this,c[1]||"",!0),this.H=eh(c[2]||""),ah(this,c[3]||"",!0),bh(this,c[4]),ch(this,c[5]||"",!0),dh(this,c[6]||"",!0),this.G=eh(c[7]||"")):(this.B=!!b,this.b=new fh(null,0,this.B))};
$g=function(a,b,c){a.A=c?eh(b,!0):b;a.A&&(a.A=a.A.replace(/:$/,""))};
ah=function(a,b,c){a.g=c?eh(b,!0):b;return a};
bh=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};
ch=function(a,b,c){a.o=c?eh(b,!0):b};
dh=function(a,b,c){b instanceof fh?(a.b=b,gh(a.b,a.B)):(c||(b=hh(b,ih)),a.b=new fh(b,0,a.B));return a};
jh=function(a,b,c){a.b.set(b,c);return a};
lh=function(a,b,c){da(c)||(c=[String(c)]);kh(a.b,b,c)};
mh=function(a){jh(a,"zx",Na());return a};
nh=function(a){return a instanceof M?a.clone():new M(a,void 0)};
oh=function(a,b,c,d){var e=new M(null,void 0);a&&$g(e,a);b&&ah(e,b);c&&bh(e,c);d&&ch(e,d);return e};
eh=function(a,b){return a?b?(0,window.decodeURI)(a.replace(/%25/g,"%2525")):(0,window.decodeURIComponent)(a):""};
hh=function(a,b,c){return w(a)?(a=(0,window.encodeURI)(a).replace(b,ph),c&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null};
ph=function(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)};
fh=function(a,b,c){this.ya=this.b=null;this.g=a||null;this.o=!!c};
rh=function(a){a.b||(a.b=new yg,a.ya=0,a.g&&Lg(a.g,function(b,c){qh(a,va(b),c)}))};
qh=function(a,b,c){rh(a);a.g=null;b=sh(a,b);var d=a.b.get(b);d||a.b.set(b,d=[]);d.push(c);a.ya=a.ya+1};
th=function(a,b){rh(a);b=sh(a,b);return Ag(a.b,b)};
kh=function(a,b,c){a.remove(b);0<c.length&&(a.g=null,a.b.set(sh(a,b),rb(c)),a.ya=a.ya+c.length)};
sh=function(a,b){var c=String(b);a.o&&(c=c.toLowerCase());return c};
gh=function(a,b){b&&!a.o&&(rh(a),a.g=null,a.b.forEach(function(a,b){var e=b.toLowerCase();b!=e&&(this.remove(b),kh(this,e,a))},a));
a.o=b};
uh=function(a,b){b.match(/\sstyle\s*=/);a.innerHTML=b};
wh=function(){return vh?{J:"div",ha:["ytp-icon","ytp-icon-cast-desktop-on"]}:{J:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},R:[{J:"path",Fa:!0,V:{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"}}]}};
xh=function(){return vh?{J:"div",ha:["ytp-icon","ytp-icon-clip-clear"]}:{J:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},R:[{J:"path",V:{d:"M14,14 L14,0 L0,0 L0,14 L14,14 Z"}},{J:"path",V:{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"}}]}};
yh=function(){return vh?{J:"div",ha:["ytp-icon","ytp-icon-clip-end"]}:{J:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},R:[{J:"path",Fa:!0,V:{d:"M2,14 L5,11 L5,3 L2,0 L9,0 L9,14 L2,14 L2,14 Z",fill:"#eaeaea"}}]}};
zh=function(){return vh?{J:"div",ha:["ytp-icon","ytp-icon-clip-start"]}:{J:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},R:[{J:"path",Fa:!0,V:{d:"M12,14 L9,11 L9,3 L12,0 L5,0 L5,14 L12,14 Z",fill:"#eaeaea"}}]}};
Ah=function(){return vh?{J:"div",ha:["ytp-icon","ytp-icon-close"]}:{J:"svg",V:{height:"100%",viewBox:"0 0 24 24",width:"100%"},R:[{J:"path",V:{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"}}]}};
Bh=function(){return vh?{J:"div",ha:["ytp-icon","ytp-icon-link"]}:{J:"svg",V:{height:"100%",viewBox:"0 0 36 36",width:"100%"},R:[{J:"path",V:{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"}}]}};
Ch=function(){return vh?{J:"div",ha:["ytp-icon","ytp-icon-next"]}:{J:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},R:[{J:"path",Fa:!0,X:"ytp-svg-fill",V:{d:"M 12,24 20.5,18 12,12 V 24 z M 22,12 v 12 h 2 V 12 h -2 z"}}]}};
Dh=function(){return vh?{J:"div",ha:["ytp-icon","ytp-icon-pause"]}:{J:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},R:[{J:"path",Fa:!0,X:"ytp-svg-fill",V:{d:"M 12,26 16,26 16,10 12,10 z M 21,26 25,26 25,10 21,10 z"}}]}};
Eh=function(){return vh?{J:"div",ha:["ytp-icon","ytp-icon-play"]}:{J:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},R:[{J:"path",Fa:!0,X:"ytp-svg-fill",V:{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"}}]}};
Fh=function(){return vh?{J:"div",ha:["ytp-icon","ytp-icon-playlist"]}:{J:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},R:[{J:"path",Fa:!0,V:{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"}}]}};
Gh=function(){return vh?{J:"div",ha:["ytp-icon","ytp-icon-prev"]}:{J:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},R:[{J:"path",Fa:!0,X:"ytp-svg-fill",V:{d:"m 12,12 h 2 v 12 h -2 z m 3.5,6 8.5,6 V 12 z"}}]}};
Hh=function(){return vh?{J:"div",ha:["ytp-icon","ytp-icon-replay"]}:{J:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},R:[{J:"path",Fa:!0,X:"ytp-svg-fill",V:{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"}}]}};
Ih=function(){return vh?{J:"div",ha:["ytp-icon","ytp-icon-settings"]}:{J:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},R:[{J:"path",Fa:!0,V:{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"}}]}};
Jh=function(){return{J:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 22 22",width:"100%"},R:[{J:"svg",V:{x:"7",y:"1"},R:[{J:"circle",ha:["ytp-spinner-dot","ytp-spinner-dot-0"],V:{cx:"4",cy:"4",r:"2"}}]},{J:"svg",V:{x:"11",y:"3"},R:[{J:"circle",ha:["ytp-spinner-dot","ytp-spinner-dot-1"],V:{cx:"4",cy:"4",r:"2"}}]},{J:"svg",V:{x:"13",y:"7"},R:[{J:"circle",ha:["ytp-spinner-dot","ytp-spinner-dot-2"],V:{cx:"4",cy:"4",r:"2"}}]},{J:"svg",V:{x:"11",y:"11"},R:[{J:"circle",ha:["ytp-spinner-dot","ytp-spinner-dot-3"],
V:{cx:"4",cy:"4",r:"2"}}]},{J:"svg",V:{x:"7",y:"13"},R:[{J:"circle",ha:["ytp-spinner-dot","ytp-spinner-dot-4"],V:{cx:"4",cy:"4",r:"2"}}]},{J:"svg",V:{x:"3",y:"11"},R:[{J:"circle",ha:["ytp-spinner-dot","ytp-spinner-dot-5"],V:{cx:"4",cy:"4",r:"2"}}]},{J:"svg",V:{x:"1",y:"7"},R:[{J:"circle",ha:["ytp-spinner-dot","ytp-spinner-dot-6"],V:{cx:"4",cy:"4",r:"2"}}]},{J:"svg",V:{x:"3",y:"3"},R:[{J:"circle",ha:["ytp-spinner-dot","ytp-spinner-dot-7"],V:{cx:"4",cy:"4",r:"2"}}]}]}};
Kh=function(){return vh?{J:"div",ha:["ytp-icon","ytp-icon-stop"]}:{J:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},R:[{J:"path",Fa:!0,X:"ytp-svg-fill",V:{d:"M 12,25 19,25 19,11 12,11 z M 19,25 26,25 26,11 19,11 z"}}]}};
Lh=function(){return vh?{J:"div",ha:["ytp-icon","ytp-icon-subtitles"]}:{J:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},R:[{J:"path",Fa:!0,V:{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"}}]}};
Mh=function(){return vh?{J:"div",ha:["ytp-icon","ytp-icon-volume-high"]}:{J:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},R:[{J:"path",Fa:!0,V:{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"}}]}};
Nh=function(){return vh?{J:"div",ha:["ytp-icon","ytp-icon-volume-low"]}:{J:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},R:[{J:"path",Fa:!0,V:{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"}}]}};
Oh=function(){return vh?{J:"div",ha:["ytp-icon","ytp-icon-volume-muted"]}:{J:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},R:[{J:"path",Fa:!0,X:"ytp-svg-fill",V:{d:"M8,21 L12,21 L17,26 L17,10 L12,15 L8,15 L8,21 Z"}},{J:"svg",X:"ytp-svg-sound-mute-group",R:[{J:"path",Fa:!0,X:"ytp-svg-fill",V:{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"}}]}]}};
Qh=function(a,b){if(a in b)return b[a];var c=Ph+a.charAt(0).toUpperCase()+a.substr(1);if(c in b)return b[c]};
Sh=function(a,b){var c;Rh(a,function(a){c=b[a];return!!c});
return c};
Th=function(a){return bb(["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(b){return"on"+b.toLowerCase()in a})};
Uh=function(){var a=window.document;return bb(["fullscreenerror","webkitfullscreenerror","mozfullscreenerror","MSFullscreenError"],function(b){return"on"+b.toLowerCase()in a})};
Vh=function(){return!!Sh(["fullscreenEnabled","webkitFullscreenEnabled","mozFullScreenEnabled","msFullscreenEnabled"],window.document)};
Wh=function(){var a=Sh(["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"],window.document);return a?a:null};
ai=function(a){a=a||{};this.url=a.url||"";this.urlV9As2=a.url_v9as2||"";this.args=a.args||gc(Xh);this.assets=a.assets||{};this.attrs=a.attrs||gc(Yh);this.params=a.params||gc(Zh);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||{}};
bi=function(a){a instanceof ai||(a=new ai(a));return a};
ci=function(){var a=window.navigator.userAgent.match(/Chrome\/([0-9]+)/);return a?50<=(0,window.parseInt)(a[1],10):!1};
di=function(a){return window.document.currentScript&&(-1!=window.document.currentScript.src.indexOf("?"+a)||-1!=window.document.currentScript.src.indexOf("&"+a))};
ei=function(){return"function"==typeof window.__onGCastApiAvailable?window.__onGCastApiAvailable:null};
fi=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)}};
li=function(a){if(a>=gi.length)hi();else{var b=gi[a],c="chrome-extension://"+b+ii;0<=ji.indexOf(b)?fi(c,function(d){d?(window.chrome.cast=window.chrome.cast||{},window.chrome.cast.extensionId=b,ki(c,hi)):li(a+1)}):ki(c,function(){li(a+1)})}};
ki=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)};
hi=function(){var a=ei();a&&a(!1,"No cast extension found")};
ni=function(){if(mi){var a=2,b=ei(),c=function(){a--;0==a&&b&&b(!0)};
window.__onGCastApiAvailable=c;ki("//www.gstatic.com/cast/sdk/libs/sender/0.0.1/cast_framework.js",hi,c)}};
oi=function(){if(0<=window.navigator.userAgent.indexOf("CriOS")){var a=window.__gCrWeb&&window.__gCrWeb.message&&window.__gCrWeb.message.invokeOnHost;if(a){ni();a({command:"cast.sender.init"});return}}window.chrome?(ni(),a=window.navigator.userAgent,0<=a.indexOf("Android")&&0<=a.indexOf("Chrome/")&&window.navigator.presentation?(a=ci()?"50":"",ki("//www.gstatic.com/eureka/clank"+a+ii,hi)):li(0)):hi()};
ti=function(){var a=pi;qi();ri.push(a);si(ri)};
wi=function(a,b){qi();var c=ri,d=ui(a,String(b));gb(c)?vi(d):(si(c),F(c,function(a){a(d)}))};
qi=function(){ri||(ri=r("yt.mdx.remote.debug.handlers_")||[],g.aa("yt.mdx.remote.debug.handlers_",ri,void 0))};
vi=function(a){var b=(xi+1)%50;xi=b;yi[b]=a;zi||(zi=49==b)};
si=function(a){var b=yi;if(b[0]){var c=xi,d=zi?c:-1;do{var d=(d+1)%50,e=b[d];F(a,function(a){a(e)})}while(d!=c);
yi=Array(50);xi=-1;zi=!1}};
ui=function(a,b){var c=(E()-Ai)/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("")};
Bi=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||""};
Ci=function(a,b){return!!b&&(a.id==b||a.uuid==b)};
Di=function(a){return{name:a.name,screenId:a.id,loungeToken:a.token,dialId:a.uuid}};
Ei=function(a){return new Bi(a)};
Fi=function(a){return da(a)?N(a,Ei):[]};
Gi=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"};
Hi=function(a){return da(a)?"["+N(a,Gi).join(",")+"]":"null"};
Ji=function(a,b,c){a&&(a.dataset?a.dataset[Ii(b)]=c:a.setAttribute("data-"+b,c))};
Ki=function(a){return a?a.dataset?a.dataset[Ii("loaded")]:a.getAttribute("data-loaded"):null};
Ii=function(a){return Li[a]||(Li[a]=String(a).replace(/\-([a-z])/g,function(a,c){return c.toUpperCase()}))};
Oi=function(a){Mi(Ni,arguments)};
Pi=function(a,b){return a in Ni?Ni[a]:b};
Ri=function(a,b){ha(a)&&(a=Qi(a));return window.setTimeout(a,b)};
Si=function(a,b){ha(a)&&(a=Qi(a));return window.setInterval(a,b)};
Ti=function(a){window.clearTimeout(a)};
Ui=function(a){window.clearInterval(a)};
Qi=function(a){return a&&window.yterr?function(){try{return a.apply(this,arguments)}catch(b){throw Vi(b),b;}}:a};
Vi=function(a,b){var c=r("yt.logging.errors.log");c?c(a,b,void 0,void 0,void 0):(c=Pi("ERRORS",[]),c.push([a,b,void 0,void 0,void 0]),Oi("ERRORS",c))};
Xi=function(a){Mi(Wi,arguments)};
O=function(a,b,c){var d=b||{};if(a=a in Wi?Wi[a]:c)for(var e in d)a=a.replace(new RegExp("\\$"+e,"gi"),function(){return d[e]});
return a};
Mi=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]}};
cj=function(a,b,c){var d=Yi();if(d){var e=d.subscribe(a,function(){if(!Zi||Zi!=e){var d=arguments,k;k=function(){$i[e]&&b.apply(c||window,d)};
try{aj[a]?k():Ri(k,0)}catch(l){Vi(l)}}},c);
$i[e]=!0;bj[a]||(bj[a]=[]);bj[a].push(e);return e}return 0};
ej=function(a,b){var c=cj(a,function(a){b.apply(void 0,arguments);dj(c)},void 0)};
dj=function(a){var b=Yi();b&&("number"==typeof a?a=[a]:"string"==typeof a&&(a=[(0,window.parseInt)(a,10)]),F(a,function(a){b.unsubscribeByKey(a);delete $i[a]}))};
fj=function(a,b){var c=Yi();c&&c.publish.apply(c,arguments)};
gj=function(a,b){aj[a]=!0;var c=Yi();c&&c.publish.apply(c,arguments);aj[a]=!1};
hj=function(a){bj[a]&&(a=bj[a],F(a,function(a){$i[a]&&delete $i[a]}),a.length=0)};
ij=function(a){var b=Yi();if(b)if(b.clear(a),a)hj(a);else for(var c in bj)hj(c)};
Yi=function(){return r("yt.pubsub.instance_")};
mj=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(jj,""),c=c.replace(kj,""),c=c.replace("debug-",""),c=c.replace("tracing-",""))}window.spf.script.load(a,c,b)}else lj(a,b)};
lj=function(a,b){var c=nj(a),d=window.document.getElementById(c),e=d&&Ki(d),f=d&&!e;e?b&&b():(b&&(cj(c,b),ma(b)),f||(d=oj(a,c,function(){Ki(d)||(Ji(d,"loaded","true"),fj(c),Ri(pa(ij,c),0))})))};
oj=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};
nj=function(a){var b=window.document.createElement("a");jf(b,a);a=b.href.replace(/^[a-zA-Z]+:\/\//,"//");return"js-"+Ra(a)};
pj=function(){};
qj=function(){};
rj=function(a){this.b=a};
sj=function(){var a=null;try{a=window.localStorage||null}catch(b){}this.b=a};
tj=function(){var a=null;try{a=window.sessionStorage||null}catch(b){}this.b=a};
uj=function(a){this.b=a};
vj=function(a){this.b=a};
wj=function(a){this.data=a};
xj=function(a){return!p(a)||a instanceof wj?a:new wj(a)};
yj=function(a){this.b=a};
zj=function(a){var b=a.creation;a=a.expiration;return!!a&&a<E()||!!b&&b>E()};
Aj=function(a){this.b=a};
Bj=function(a,b){var c=[];wg(b,function(a){var b;try{b=Aj.prototype.g.call(this,a,!0)}catch(f){if("Storage: Invalid value was encountered"==f)return;throw f;}p(b)?zj(b)&&c.push(a):c.push(a)},a);
return c};
Cj=function(a,b){var c=Bj(a,b);F(c,function(a){Aj.prototype.remove.call(this,a)},a)};
Ej=function(){var a=Dj;Cj(a,a.b.Cc(!0))};
Gj=function(a,b,c){var d=c&&0<c?c:0;c=d?E()+1E3*d:0;if((d=d?Dj:Fj)&&window.JSON){w(b)||(b=JSON.stringify(b,void 0));try{d.set(a,b,c)}catch(e){d.remove(a)}}};
Hj=function(a){if(!Fj&&!Dj||!window.JSON)return null;var b;try{b=Fj.get(a)}catch(c){}if(!w(b))try{b=Dj.get(a)}catch(c){}if(!w(b))return null;try{b=JSON.parse(b,void 0)}catch(c){}return b};
Ij=function(a){Fj&&Fj.remove(a);Dj&&Dj.remove(a)};
Jj=function(a){return Pi("EXPERIMENT_FLAGS",{})[a]};
Kj=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=va(k[0]||""),k=va(k[1]||"");l in d?da(d[l])?sb(d[l],k):d[l]=[d[l],k]:d[l]=k}}return d};
Lj=function(a,b){var c=[];Ob(a,function(a,b){var f=ua(b),k;da(a)?k=a:k=[a];F(k,function(a){""==a?c.push(f):c.push(f+"="+ua(a))})});
return c.join(b)};
Mj=function(a){"?"==a.charAt(0)&&(a=a.substr(1));return Kj(a,"&")};
Nj=function(a){a=a.split(",");return a=a.map(function(a){return Mj(a)})};
Oj=function(a){return-1!=a.indexOf("?")?(a=(a||"").split("#")[0],a=a.split("?",2),Mj(1<a.length?a[1]:a[0])):{}};
Qj=function(a,b){return Pj(a,b||{},!0)};
Rj=function(a,b){return Pj(a,b||{},!1)};
Pj=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=Mj(e[1]||""),f;for(f in b)if(c||!Zb(e,f))e[f]=b[f];return Sg(a,e)+d};
Sj=function(a){var b;b||(b=window.location.href);var c=Hg(a)[1]||null,d=Jg(a);c&&d?(a=Hg(a),b=Hg(b),a=a[3]==b[3]&&a[1]==b[1]&&a[4]==b[4]):a=d?Jg(b)==d&&Kg(b)==Kg(a):!0;return a};
Tj=function(){var a;a||(a=window.document.location.href);a=Hg(a)[1]||null;return null!==a&&"https"==a};
Uj=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}};
Xj=function(a,b,c,d,e,f,k){function l(){4==(m&&"readyState"in m?m.readyState:0)&&b&&Qi(b)(m)}
var m=Vj&&Vj();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=Wj(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};
Wj=function(a,b){b=b||{};var c=Sj(a),d;for(d in Yj){var e=Pi(Yj[d]),f;if((f=e)&&!(f=c)){f=d;var k=Pi("CORS_HEADER_WHITELIST")||{},l=Jg(a);f=l?(k=k[l])?fb(k,f):!1:!0}f&&(b[d]=e)}return b};
ak=function(a,b){b.method="POST";b.Lb||(b.Lb={});Zj(a,b)};
bk=function(a,b){var c=Pi("XSRF_FIELD_NAME",void 0),d;b.headers&&(d=b.headers["Content-Type"]);return!b.KP&&(!Jg(a)||b.withCredentials||Jg(a)==window.document.location.hostname)&&"POST"==b.method&&(!d||"application/x-www-form-urlencoded"==d)&&!(b.Lb&&b.Lb[c])};
Zj=function(a,b){var c=b.format||"JSON";b.OP&&(a=window.document.location.protocol+"//"+window.document.location.hostname+(window.document.location.port?":"+window.document.location.port:"")+a);var d=Pi("XSRF_FIELD_NAME",void 0),e=Pi("XSRF_TOKEN",void 0),f=b.wd;f&&(f[d]&&delete f[d],a=Qj(a,f));var k=b.postBody||"",f=b.Lb;bk(a,b)&&(f||(f={}),f[d]=e);f&&w(k)&&(d=Mj(k),jc(d,f),k=b.Lr&&"JSON"==b.Lr?JSON.stringify(d):Qg(d));var l=!1,m,n=Xj(a,function(a){if(!l){l=!0;m&&Ti(m);var d=Uj(a),e=null;if(d||400<=
a.status&&500>a.status)e=ck(c,a,b.Bx);if(d)a:if(Jj("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||q;d?b.fb&&b.fb.call(f,a,e):b.onError&&b.onError.call(f,a,e);b.zc&&b.zc.call(f,a,e)}},b.method,k,b.headers,b.responseType,b.withCredentials);
b.Wb&&0<b.timeout&&(m=Ri(function(){l||(l=!0,n.abort(),Ti(m),b.Wb.call(b.context||q,n))},b.timeout));
return n};
ck=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=ag(a));break;case "XML":if(b=(b=b.responseXML)?dk(b):null)d={},F(b.getElementsByTagName("*"),function(a){d[a.tagName]=ek(a)})}c&&fk(d);
return d};
fk=function(a){if(ia(a))for(var b in a)"html_content"==b||ta(b,"_html")?a[b]=Ze(ye("HTML that is escaped and sanitized server-side and passed through yt.net.ajax"),a[b]):fk(a[b])};
dk=function(a){return a?(a=("responseXML"in a?a.responseXML:a).getElementsByTagName("root"))&&0<a.length?a[0]:null:null};
ek=function(a){var b="";F(a.childNodes,function(a){b+=a.nodeValue});
return b};
gk=function(a){this.A=this.o="";this.b="/api/lounge";this.g=!0;a=a||window.document.location.href;var b=Kg(a)||"";b&&(this.A=":"+b);this.o=Jg(a)||"";a=sc;0<=a.search("MSIE")&&(a=a.match(/MSIE ([\d.]+)/)[1],0>Qa(a,"10.0")&&(this.g=!1))};
hk=function(a,b,c,d){var e=a.b;if(p(d)?d:a.g)e="https://"+a.o+a.A+a.b;return Sg(e+b,c||{})};
ik=function(a,b,c,d,e){a={format:"JSON",method:"POST",context:a,timeout:5E3,withCredentials:!1,fb:pa(a.C,d,!0),onError:pa(a.B,e),Wb:pa(a.D,e)};c&&(a.Lb=c,a.headers={"Content-Type":"application/x-www-form-urlencoded"});return Zj(b,a)};
jk=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)})};
kk=function(a){return N(a,function(a){return{key:a.id,name:a.name}})};
lk=function(a,b){return bb(a,function(a){return a||b?!a!=!b?!1:a.id==b.id:!0})};
mk=function(a,b){return bb(a,function(a){return Ci(a,b)})};
nk=function(){G.call(this);this.ca=new qg;H(this,this.ca)};
ok=function(a){nk.call(this);this.C=a;this.screens=[]};
pk=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};
qk=function(a,b){var c=a.screens.length!=b.length;a.screens=ke(a.screens,function(a){return!!lk(b,a)});
for(var d=0,e=b.length;d<e;d++)c=pk(a,b[d])||c;return c};
rk=function(a,b){var c=a.screens.length;a.screens=ke(a.screens,function(a){return!(a||b?!a!=!b?0:a.id==b.id:1)});
return a.screens.length<c};
sk=function(a,b,c,d){nk.call(this);this.D=a;this.C=b;this.A=c;this.B=d;this.o=0;this.b=null;this.g=window.NaN};
tk=function(a,b){this.g=a;this.b=b+"::"};
uk=function(a){var b=new sj;return b.isAvailable()?a?new tk(b,a):b:null};
wk=function(a){this.b=new yg;a&&vk(this,a)};
xk=function(a){var b=typeof a;return"object"==b&&a||"function"==b?"o"+ma(a):b.substr(0,1)+a};
yk=function(a,b){a.b.set(xk(b),b)};
vk=function(a,b){for(var c=Cg(b),d=c.length,e=0;e<d;e++)yk(a,c[e])};
Ak=function(a){this.app=this.name=this.id="";this.type="REMOTE_CONTROL";this.avatar=this.username="";this.capabilities=new wk;this.experiments=new wk;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();vk(this.capabilities,ke(b.split(","),pa(Vb,zk)));a=a.experiments||"";this.experiments.clear();vk(this.experiments,
a.split(","))}};
Bk=function(a){this.b=a||{cookie:""}};
Dk=function(a){a=(a.b.cookie||"").split(Ck);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}};
Lk=function(){var a=Ek(),b=Fk();fb(a,b);Ik()&&Gb(a,b);a=Jk(a);if(gb(a))try{Kk.remove("remote_sid","/","youtube.com")}catch(c){}else try{Kk.set("remote_sid",a.join(","),-1,"/","youtube.com")}catch(c){}};
Ek=function(){var a=Hj("yt-remote-connected-devices")||[];Bb(a);return a};
Jk=function(a){if(gb(a))return[];var b=a[0].indexOf("#"),c=-1==b?a[0]:a[0].substring(0,b);return N(a,function(a,b){return 0==b?a:a.substring(c.length)})};
Mk=function(a){Gj("yt-remote-connected-devices",a,86400)};
Fk=function(){if(Nk)return Nk;var a=Hj("yt-remote-device-id");a||(a=jk(),Gj("yt-remote-device-id",a,31536E3));for(var b=Ek(),c=1,d=a;fb(b,d);)c++,d=a+"#"+c;return Nk=d};
Ok=function(){return Hj("yt-remote-session-browser-channel")};
Ik=function(){return Hj("yt-remote-session-screen-id")};
Sk=function(a){5<a.length&&(a=a.slice(a.length-5));var b=N(Pk(),function(a){return a.loungeToken}),c=N(a,function(a){return a.loungeToken});
Qk(c,function(a){return!fb(b,a)})&&Rk();
Gj("yt-remote-local-screens",a,31536E3)};
Pk=function(){return Hj("yt-remote-local-screens")||[]};
Rk=function(){Gj("yt-remote-lounge-token-expiration",!0,86400)};
Tk=function(a,b){Gj("yt-remote-session-browser-channel",a);Gj("yt-remote-session-screen-id",b);var c=Ek(),d=Fk();fb(c,d)||c.push(d);Mk(c);Lk()};
Uk=function(a){a||(Ij("yt-remote-session-screen-id"),Ij("yt-remote-session-video-id"));Lk();a=Ek();ob(a,Fk());Mk(a)};
Wk=function(){if(!Vk){var a=uk();a&&(Vk=new uj(a))}return Vk?!!Vk.get("yt-remote-use-staging-server"):!1};
Yk=function(a){ok.call(this,"LocalScreenService");this.g=a;this.b=window.NaN;Xk(this);this.info("Initializing with "+Hi(this.screens))};
Zk=function(a){if(a.screens.length){var b=N(a.screens,function(a){return a.id}),c=hk(a.g,"/pairing/get_lounge_token_batch");
ik(a.g,c,{screen_ids:b.join(",")},x(a.oy,a),x(a.my,a))}};
Xk=function(a){var b=Fi(Pk()),b=ke(b,function(a){return!a.uuid});
return qk(a,b)};
$k=function(a,b){Sk(N(a.screens,Di));b&&Rk()};
bl=function(a,b){nk.call(this);this.C=b;for(var c=Hj("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]=fb(c,l)}this.b=d;this.B=a;this.o=this.A=window.NaN;this.g=null;al("Initialized with "+dg(this.b))};
cl=function(a,b,c){var d=hk(a.B,"/pairing/get_screen_availability");ik(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))};
el=function(a,b){var c;a:if(Tb(b)!=Tb(a.b))c=!1;else{c=Xb(b);for(var d=0,e=c.length;d<e;++d)if(!a.b[c[d]]){c=!1;break a}c=!0}c||(al("Updated online screens: "+dg(a.b)),a.b=b,a.Y("screenChange"));dl(a)};
fl=function(a){(0,window.isNaN)(a.o)||Ti(a.o);a.o=Ri(x(a.hm,a),0<a.A&&a.A<E()?2E4:1E4)};
al=function(a){wi("OnlineScreenService",a)};
gl=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};
dl=function(a){a=Xb(Pb(a.b,function(a){return a}));
Bb(a);a.length?Gj("yt-remote-online-screen-ids",a.join(","),60):Ij("yt-remote-online-screen-ids")};
il=function(a){ok.call(this,"ScreenService");this.B=a;this.b=this.g=null;this.o=[];this.A={};hl(this)};
ll=function(a,b,c,d,e,f){a.info("getAutomaticScreenByIds "+c+" / "+b);c||(c=a.A[b]);var k=a.Ec();if(k=(c?mk(k,c):null)||mk(k,b)){k.uuid=b;var l=jl(a,k);cl(a.b,l,function(a){e(a?l:null)})}else c?kl(a,c,x(function(a){var f=jl(this,new Bi({name:d,
screenId:c,loungeToken:a,dialId:b||""}));cl(this.b,f,function(a){e(a?f:null)})},a),f):e(null)};
ml=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};
kl=function(a,b,c,d){a.info("requestLoungeToken_ for "+b);var e={Lb:{screen_ids:b},method:"POST",context:a,fb: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"))}};
Zj(hk(a.B,"/pairing/get_lounge_token_batch"),e)};
nl=function(a){a.screens=a.g.Ec();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: "+Hi(a.screens))};
hl=function(a){ol(a);a.g=new Yk(a.B);a.g.subscribe("screenChange",x(a.Jy,a));nl(a);a.o=Fi(Hj("yt-remote-automatic-screen-cache")||[]);ol(a);a.info("Initializing automatic screens: "+Hi(a.o));a.b=new bl(a.B,x(a.Ec,a,!0));a.b.subscribe("screenChange",x(function(){this.Y("onlineScreenChange")},a))};
jl=function(a,b){var c=a.get(b.id);c?(c.uuid=b.uuid,b=c):((c=mk(a.o,b.uuid))?(c.id=b.id,c.token=b.token,b=c):a.o.push(b),Gj("yt-remote-automatic-screen-cache",N(a.o,Di)));ol(a);a.A[b.uuid]=b.id;Gj("yt-remote-device-id-map",a.A,31536E3);return b};
ol=function(a){a.A=Hj("yt-remote-device-id-map")||{}};
pl=function(a,b,c){nk.call(this);this.L=c;this.G=a;this.g=b;this.o=null};
ql=function(a,b){wi(a.L,b)};
sl=function(a,b){pl.call(this,a,b,"CastSession");this.b=null;this.A=0;this.C=x(this.VF,this);this.B=x(this.yE,this);this.A=Ri(x(function(){rl(this,null)},this),12E4)};
tl=function(a){a.info("sendYoutubeMessage_: getMdxSessionStatus "+dg(void 0));var b={type:"getMdxSessionStatus"};a.b?a.b.sendMessage("urn:x-cast:com.google.youtube.mdx",b,v,x(function(){ql(this,"Failed to send message: getMdxSessionStatus.")},a)):ql(a,"Sending yt message without session: "+dg(b))};
rl=function(a,b){Ti(a.A);if(b){if(a.info("onConnectedScreenId_: Received screenId: "+b),!a.o||a.o.id!=b){var c=x(a.Yi,a),d=x(a.Jc,a);a.kp(b,c,d,5)}}else a.Jc(Error("Waiting for session status timed out."))};
ul=function(a,b){pl.call(this,a,b,"DialSession");this.A=this.F=null;this.H="";this.B=null;this.D=v;this.C=window.NaN;this.K=x(this.YF,this);this.b=v};
vl=function(a){a.b=a.G.ut(a.H,a.g.label,a.g.friendlyName,x(function(a){this.b=v;this.Yi(a)},a),x(function(a){this.b=v;
this.Jc(a)},a))};
wl=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}Wk()&&(b.env_useStageMdx=1);return Qg(b)};
xl=function(a,b){pl.call(this,a,b,"ManualSession");this.b=Ri(x(this.hg,this,null),150)};
yl=function(a){nk.call(this);this.g=a;this.b=null;this.B=!1;this.o=[];this.A=x(this.oD,this)};
zl=function(a,b){return b?bb(a.o,function(a){return Ci(b,a.label)},a):null};
Al=function(a){wi("Controller",a)};
pi=function(a){window.chrome&&window.chrome.cast&&window.chrome.cast.logMessage&&window.chrome.cast.logMessage(a)};
Bl=function(a){return a.B||!!a.o.length||!!a.b};
Cl=function(a,b,c){Mb(a.b);(a.b=b)?(c?a.Y("yt-remote-cast2-receiver-resumed",b.g):a.Y("yt-remote-cast2-receiver-selected",b.g),b.subscribe("sessionScreen",x(a.wr,a,b)),b.o?a.Y("yt-remote-cast2-session-change",b.o):c&&a.b.hg(null)):a.Y("yt-remote-cast2-session-change",null)};
Dl=function(a){var b=a.g.tt(),c=a.b&&a.b.g;a=N(b,function(a){c&&Ci(a,c.label)&&(c=null);var b=a.uuid?a.uuid:a.id,f=zl(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};
Ml=function(a,b,c,d){El()?Gl(b)&&(Hl(!0),window.chrome&&window.chrome.cast&&window.chrome.cast.isAvailable?Il(a,c):(window.__onGCastApiAvailable=function(b,d){b?Il(a,c):(Jl("Failed to load cast API: "+d),Kl(!1),Hl(!1),Ij("yt-remote-cast-available"),Ij("yt-remote-cast-receiver"),Ll(),c(!1))},d?mj("https://www.gstatic.com/cv/js/sender/v1/cast_sender.js"):oi())):Fl("Cannot initialize because not running Chrome")};
Ll=function(){Fl("dispose");var a=Nl();a&&a.dispose();Ol=null;g.aa("yt.mdx.remote.cloudview.instance_",null,void 0);Pl(!1);dj(Ql);Ql.length=0};
Rl=function(){return!!Hj("yt-remote-cast-installed")};
Tl=function(){var a=Hj("yt-remote-cast-receiver");return a?Ga(a.friendlyName):null};
Ul=function(){Fl("clearCurrentReciever");Ij("yt-remote-cast-receiver")};
Vl=function(){return Rl()?Nl()?Ol.getCastSession():(Jl("getCastSelector: Cast is not initialized."),null):(Jl("getCastSelector: Cast API is not installed!"),null)};
Xl=function(){Rl()?Nl()?Wl()?(Fl("Requesting cast selector."),Ol.requestSession()):(Fl("Wait for cast API to be ready to request the session."),Ql.push(cj("yt-remote-cast2-api-ready",Xl))):Jl("requestCastSelector: Cast is not initialized."):Jl("requestCastSelector: Cast API is not installed!")};
Yl=function(a){Wl()?Nl().setLaunchParams(a):Jl("setLaunchParams called before ready.")};
Zl=function(a,b){Wl()?Nl().setConnectedScreenStatus(a,b):Jl("setConnectedScreenStatus called before ready.")};
El=function(){var a=0<=sc.search(/\ (CrMo|Chrome|CriOS)\//);return $l||a};
am=function(a,b){Ol.init(a,b)};
Gl=function(a){var b=!1;if(!Ol){var c=r("yt.mdx.remote.cloudview.instance_");c||(c=new yl(a),c.subscribe("yt-remote-cast2-availability-change",function(a){Gj("yt-remote-cast-available",a);fj("yt-remote-cast2-availability-change",a)}),c.subscribe("yt-remote-cast2-receiver-selected",function(a){Fl("onReceiverSelected: "+a.friendlyName);
Gj("yt-remote-cast-receiver",a);fj("yt-remote-cast2-receiver-selected",a)}),c.subscribe("yt-remote-cast2-receiver-resumed",function(a){Fl("onReceiverResumed: "+a.friendlyName);
Gj("yt-remote-cast-receiver",a)}),c.subscribe("yt-remote-cast2-session-change",function(a){Fl("onSessionChange: "+Gi(a));
a||Ij("yt-remote-cast-receiver");fj("yt-remote-cast2-session-change",a)}),g.aa("yt.mdx.remote.cloudview.instance_",c,void 0),b=!0);
Ol=c}Fl("cloudview.createSingleton_: "+b);return b};
Nl=function(){Ol||(Ol=r("yt.mdx.remote.cloudview.instance_"));return Ol};
Il=function(a,b){Kl(!0);Hl(!1);am(a,function(a){a?(Pl(!0),fj("yt-remote-cast2-api-ready")):(Jl("Failed to initialize cast API."),Kl(!1),Ij("yt-remote-cast-available"),Ij("yt-remote-cast-receiver"),Ll());b(a)})};
Fl=function(a){wi("cloudview",a)};
Jl=function(a){wi("cloudview",a)};
Kl=function(a){Fl("setCastInstalled_ "+a);Gj("yt-remote-cast-installed",a)};
Wl=function(){return!!r("yt.mdx.remote.cloudview.apiReady_")};
Pl=function(a){Fl("setApiReady_ "+a);g.aa("yt.mdx.remote.cloudview.apiReady_",a,void 0)};
Hl=function(a){g.aa("yt.mdx.remote.cloudview.initializing_",a,void 0)};
cm=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 bm||(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}};
dm=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}};
fm=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 $b(em,function(e){return e[0]==a&&e[1]==b&&e[2]==c&&e[4]==!!d})};
hm=function(a,b,c,d){if(!a||!a.addEventListener&&!a.attachEvent)return"";d=!!d;var e=fm(a,b,c,d);if(e)return e;var e=++gm.count+"",f=!("mouseenter"!=b&&"mouseleave"!=b||!a.addEventListener||"onmouseenter"in window.document),k;k=f?function(d){d=new cm(d);if(!Wf(d.relatedTarget,function(b){return b==a}))return d.currentTarget=a,d.type=b,c.call(a,d)}:function(b){b=new cm(b);
b.currentTarget=a;return c.call(a,b)};
k=Qi(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);em[e]=[a,b,c,k,d];return e};
jm=function(a,b,c){var d;return d=hm(a,b,function(){im(d);c.apply(a,arguments)},void 0)};
lm=function(a,b){return km(a,b,function(a){return ie(a,"iv-card-poll-choice-input")})};
km=function(a,b,c){var d=a||window.document;return hm(d,"change",function(a){var f=Wf(a.target,function(a){return a===d||c(a)});
f&&f!==d&&!f.disabled&&(a.currentTarget=f,b.call(f,a))})};
im=function(a){a&&("string"==typeof a&&(a=[a]),F(a,function(a){if(a in em){var c=em[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 em[a]}}))};
mm=function(a){a=a||window.event;a=a.target||a.srcElement;3==a.nodeType&&(a=a.parentNode);return a};
nm=function(a){a=a||window.event;return a.path&&a.path.length?a.path[0]:mm(a)};
om=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};
pm=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 ef(b,c)};
qm=function(a){a=a||window.event;a.returnValue=!1;a.preventDefault&&a.preventDefault()};
rm=function(a){a=a||window.event;return!1===a.returnValue||a.cq&&a.cq()};
sm=function(a){a=a||window.event;return a.keyCode?a.keyCode:a.which};
tm=function(a,b){this.action=a;this.params=b||null};
um=function(){this.b=E()};
vm=function(a,b){this.g=new cg(a);this.b=b?ag:$f};
wm=function(a){this.g=0;this.o=a||100;this.b=[]};
xm=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};
ym=function(a,b,c){G.call(this);this.A=null!=c?x(a,c):a;this.o=b;this.g=x(this.PD,this);this.b=[]};
zm=function(a){a.rf=de(a.g,a.o);a.A.apply(null,a.b)};
Am=function(a){G.call(this);this.A=a;this.g={}};
Cm=function(a,b,c,d,e){Bm(a,b,c,d,!1,e)};
Bm=function(a,b,c,d,e,f){da(c)||(c&&(Dm[0]=c.toString()),c=Dm);for(var k=0;k<c.length;k++){var l=Rc(b,c[k],d||a.handleEvent,e||!1,f||a.A||a);if(!l)break;a.g[l.key]=l}return a};
Fm=function(a,b,c,d){Em(a,b,c,d,void 0)};
Gm=function(a,b,c,d,e){Em(a,b,c,d,!1,e)};
Em=function(a,b,c,d,e,f){if(da(c))for(var k=0;k<c.length;k++)Em(a,b,c[k],d,e,f);else{b=ad(b,c,d||a.handleEvent,e,f||a.A||a);if(!b)return;a.g[b.key]=b}};
Hm=function(a){Ob(a.g,function(a,c){this.g.hasOwnProperty(c)&&cd(a)},a);
a.g={}};
Im=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"}};
Jm=function(){};
Lm=function(a){var b;(b=a.b)||(b={},Km(a)&&(b[0]=!0,b[1]=!0),b=a.b=b);return b};
Mm=function(){};
Nm=function(a){return(a=Km(a))?new window.ActiveXObject(a):new window.XMLHttpRequest};
Km=function(a){if(!a.g&&"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.g=d}catch(e){}}throw Error("Could not create ActiveXObject. ActiveX might be disabled, or MSXML might not be installed");}return a.g};
Om=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 Am(this);this.g=new be;ce(this.g,250)};
Qm=function(a,b,c){a.Vf=1;a.Ie=mh(b.clone());a.xf=c;a.C=!0;Pm(a,null)};
Rm=function(a,b,c,d,e){a.Vf=1;a.Ie=mh(b.clone());a.xf=null;a.C=c;e&&(a.hs=!1);Pm(a,d)};
Pm=function(a,b){a.mh=E();Sm(a);a.Oe=a.Ie.clone();lh(a.Oe,"t",a.D);a.wh=0;a.Xb=a.b.Gk(a.b.qh()?b:null);0<a.jl&&(a.bj=new ym(x(a.Zs,a,a.Xb),a.jl));a.A.P(a.Xb,"readystatechange",a.NE);var c=a.sf?gc(a.sf):{};a.xf?(a.uj="POST",c["Content-Type"]="application/x-www-form-urlencoded",a.Xb.send(a.Oe,a.uj,a.xf,c)):(a.uj="GET",a.hs&&!Bc&&(c.Connection="close"),a.Xb.send(a.Oe,a.uj,null,c));a.b.qd(1)};
$m=function(a,b,c){for(var d=!0;!a.gf&&a.wh<c.length;){var e=Tm(a,c);if(e==Um){4==b&&(a.tf=4,Vm(),d=!1);break}else if(e==Wm){a.tf=4;Vm();d=!1;break}else Xm(a,e)}4==b&&0==c.length&&(a.tf=1,Vm(),d=!1);a.td=a.td&&d;d||(Ym(a),Zm(a))};
Tm=function(a,b){var c=a.wh,d=b.indexOf("\n",c);if(-1==d)return Um;c=Number(b.substring(c,d));if((0,window.isNaN)(c))return Wm;d+=1;if(d+c>b.length)return Um;var e=b.substr(d,c);a.wh=d+c;return e};
cn=function(a,b){a.mh=E();Sm(a);var c=b?window.location.hostname:"";a.Oe=a.Ie.clone();jh(a.Oe,"DOMAIN",c);jh(a.Oe,"t",a.D);try{a.ud=new window.ActiveXObject("htmlfile")}catch(n){Ym(a);a.tf=7;Vm();Zm(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 an)k=an[k];else if(k in bn)k=an[k]=bn[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=an[k]=l}e+=k}}d+='<script>document.domain="'+e+'"\x3c/script>'}d+="</body></html>";c=Ze(ye("b/12014412"),d);a.ud.open();a.ud.write(Oe(c));a.ud.close();a.ud.parentWindow.m=x(a.$D,a);a.ud.parentWindow.d=x(a.Cr,a,!0);a.ud.parentWindow.rpcClose=x(a.Cr,a,!1);c=a.ud.createElement("DIV");a.ud.parentWindow.document.body.appendChild(c);d=He(a.Oe.toString());d=Da(Ee(d));d=Ze(ye("b/12014412"),'<iframe src="'+d+'"></iframe>');c.innerHTML=Oe(d);a.b.qd(1)};
Sm=function(a){a.Km=E()+a.B;dn(a,a.B)};
dn=function(a,b){if(null!=a.Ag)throw Error("WatchDog timer not null");a.Ag=en(x(a.qE,a),b)};
fn=function(a){a.Ag&&(q.clearTimeout(a.Ag),a.Ag=null)};
Zm=function(a){a.b.qp()||a.gf||a.b.Xi(a)};
Ym=function(a){fn(a);Mb(a.bj);a.bj=null;a.g.stop();Hm(a.A);if(a.Xb){var b=a.Xb;a.Xb=null;gn(b);b.dispose()}a.ud&&(a.ud=null)};
Xm=function(a,b){try{a.b.rr(a,b),a.b.qd(4)}catch(c){}};
jn=function(a,b,c,d,e){if(0==d)c(!1);else{var f=e||0;d--;hn(a,b,function(e){e?c(!0):q.setTimeout(function(){jn(a,b,c,d,f)},f)})}};
hn=function(a,b,c){var d=new window.Image;d.onload=function(){try{kn(d),c(!0)}catch(a){}};
d.onerror=function(){try{kn(d),c(!1)}catch(a){}};
d.onabort=function(){try{kn(d),c(!1)}catch(a){}};
d.ontimeout=function(){try{kn(d),c(!1)}catch(a){}};
q.setTimeout(function(){if(d.ontimeout)d.ontimeout()},b);
d.src=a};
kn=function(a){a.onload=null;a.onerror=null;a.onabort=null;a.ontimeout=null};
ln=function(a){this.b=a;this.g=new vm(null,!0)};
nn=function(a){var b=mn(a.b,a.Pg,"/mail/images/cleardot.gif");mh(b);jn(b.toString(),5E3,x(a.rx,a),3,2E3);a.qd(1)};
pn=function(a){var b=a.b.G;if(null!=b)Vm(),b?(Vm(),on(a.b,a,!1)):(Vm(),on(a.b,a,!0));else if(a.Kc=new Om(a,0,void 0,void 0,void 0),a.Kc.sf=a.dl,b=a.b,b=mn(b,b.qh()?a.$g:null,a.il),Vm(),!vf||Ac(10))lh(b,"TYPE","xmlhttp"),Rm(a.Kc,b,!1,a.$g,!1);else{lh(b,"TYPE","html");var c=a.Kc;a=!!a.$g;c.Vf=3;c.Ie=mh(b.clone());cn(c,a)}};
qn=function(a){hd.call(this);this.headers=new yg;this.K=a||null;this.o=!1;this.H=this.b=null;this.O="";this.g=0;this.C="";this.A=this.M=this.F=this.L=!1;this.B=0;this.D=null;this.ba="";this.S=this.G=!1};
rn=function(a,b){a.B=Math.max(0,b)};
sn=function(a){return vf&&yc(9)&&ga(a.timeout)&&p(a.ontimeout)};
tn=function(a){return"content-type"==a.toLowerCase()};
wn=function(a,b){a.o=!1;a.b&&(a.A=!0,a.b.abort(),a.A=!1);a.C=b;a.g=5;un(a);vn(a)};
un=function(a){a.L||(a.L=!0,a.dispatchEvent("complete"),a.dispatchEvent("error"))};
gn=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"),vn(a))};
An=function(a){if(a.o&&"undefined"!=typeof xn)if(a.H[1]&&4==yn(a)&&2==a.getStatus())a.getStatus();else if(a.F&&4==yn(a))de(a.sp,0,a);else if(a.dispatchEvent("readystatechange"),4==yn(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=Hg(String(a.O))[1]||null;if(!f&&q.self&&q.self.location)var k=q.self.location.protocol,f=k.substr(0,k.length-1);e=!zn.test(f?
f.toLowerCase():"")}d=e}if(d)a.dispatchEvent("complete"),a.dispatchEvent("success");else{a.g=6;var l;try{l=2<yn(a)?a.b.statusText:""}catch(m){l=""}a.C=l+" ["+a.getStatus()+"]";un(a)}}finally{vn(a)}}};
vn=function(a,b){if(a.b){Bn(a);var c=a.b,d=a.H[0]?v:null;a.b=null;a.H=null;b||a.dispatchEvent("ready");try{c.onreadystatechange=d}catch(e){}}};
Bn=function(a){a.b&&a.S&&(a.b.ontimeout=null);ga(a.D)&&(ee(a.D),a.D=null)};
yn=function(a){return a.b?a.b.readyState:0};
Cn=function(a){try{return a.b?a.b.responseText:""}catch(b){return""}};
Dn=function(a,b,c){this.D=a||null;this.b=1;this.g=[];this.A=[];this.B=new vm(null,!0);this.F=b||null;this.G=null!=c?c:null};
En=function(a,b){this.b=a;this.map=b;this.context=null};
Fn=function(a){lc.call(this,"statevent",a)};
Gn=function(a,b){lc.call(this,"timingevent",a);this.size=b};
Hn=function(a){lc.call(this,"serverreachability",a)};
Ln=function(a){In(a);if(3==a.b){var b=a.gh++,c=a.ti.clone();jh(c,"SID",a.o);jh(c,"RID",b);jh(c,"TYPE","terminate");Jn(a,c);b=new Om(a,0,a.o,b,void 0);b.Vf=2;b.Ie=mh(c.clone());(new window.Image).src=b.Ie;b.mh=E();Sm(b)}Kn(a)};
In=function(a){if(a.De){var b=a.De;b.Kc&&(b.Kc.cancel(),b.Kc=null);b.fe=-1;a.De=null}a.Bb&&(a.Bb.cancel(),a.Bb=null);a.ae&&(q.clearTimeout(a.ae),a.ae=null);Nn(a);a.tc&&(a.tc.cancel(),a.tc=null);a.Ee&&(q.clearTimeout(a.Ee),a.Ee=null)};
Pn=function(a,b){if(0==a.b)throw Error("Invalid operation: sending map when state is closed");a.g.push(new En(a.CA++,b));2!=a.b&&3!=a.b||On(a)};
On=function(a){a.tc||a.Ee||(a.Ee=en(x(a.zr,a),0),a.Wg=0)};
Sn=function(a,b){if(1==a.b){if(!b){a.gh=Math.floor(1E5*Math.random());var c=a.gh++,d=new Om(a,0,"",c,void 0);d.sf=null;var e=Qn(a),f=a.ti.clone();jh(f,"RID",c);a.D&&jh(f,"CVER",a.D);Jn(a,f);Qm(d,f,e);a.tc=d;a.b=2}}else 3==a.b&&(b?Rn(a,b):0!=a.g.length&&(a.tc||Rn(a)))};
Rn=function(a,b){var c,d;b?6<a.jf?(a.g=a.A.concat(a.g),a.A.length=0,c=a.gh-1,d=Qn(a)):(c=b.F,d=b.xf):(c=a.gh++,d=Qn(a));var e=a.ti.clone();jh(e,"SID",a.o);jh(e,"RID",c);jh(e,"AID",a.gg);Jn(a,e);c=new Om(a,0,a.o,c,a.Wg+1);c.sf=null;c.setTimeout(Math.round(1E4)+Math.round(1E4*Math.random()));a.tc=c;Qm(c,e,d)};
Jn=function(a,b){if(a.$b){var c=a.$b.ep(a);c&&Ob(c,function(a,c){jh(b,c,a)})}};
Qn=function(a){var b=Math.min(a.g.length,1E3),c=["count="+b],d;6<a.jf&&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.jf?e:f-d;try{Eg(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("&")};
Tn=function(a){a.Bb||a.ae||(a.C=1,a.ae=en(x(a.yr,a),0),a.Hf=0)};
Vn=function(a){if(a.Bb||a.ae||3<=a.Hf)return!1;a.C++;a.ae=en(x(a.yr,a),Un(a,a.Hf));a.Hf++;return!0};
on=function(a,b,c){a.tj=c;a.kd=b.fe;a.Ox(1,0);a.ti=mn(a,null,a.bl);On(a)};
Nn=function(a){null!=a.kf&&(q.clearTimeout(a.kf),a.kf=null)};
Un=function(a,b){var c=5E3+Math.floor(1E4*Math.random());a.isActive()||(c*=2);return c*b};
Xn=function(a,b){if(2==b||9==b){var c=null;a.$b&&(c=null);var d=x(a.sF,a);c||(c=new M("//www.google.com/images/cleardot.gif"),mh(c));hn(c.toString(),1E4,d)}else Vm();Wn(a,b)};
Wn=function(a,b){a.b=0;a.$b&&a.$b.Do(a,b);Kn(a);In(a)};
Kn=function(a){a.b=0;a.kd=-1;if(a.$b)if(0==a.A.length&&0==a.g.length)a.$b.yk(a);else{var b=rb(a.A),c=rb(a.g);a.A.length=0;a.g.length=0;a.$b.yk(a,b,c)}};
mn=function(a,b,c){var d=nh(c);if(""!=d.g)b&&ah(d,b+"."+d.g),bh(d,d.D);else var e=window.location,d=oh(e.protocol,b?b+"."+e.hostname:e.hostname,e.port,c);a.Vg&&Ob(a.Vg,function(a,b){jh(d,b,a)});
jh(d,"VER",a.jf);Jn(a,d);return d};
en=function(a,b){if(!ha(a))throw Error("Fn must not be null and must be a function");return q.setTimeout(function(){a()},b)};
Vm=function(){Yn.dispatchEvent(new Fn(Yn))};
Zn=function(){};
ao=function(a,b){be.call(this);this.B=0;if(ha(a))b&&(a=x(a,b));else if(a&&ha(a.handleEvent))a=x(a.handleEvent,a);else throw Error("Invalid listener argument");this.D=a;Rc(this,"tick",x(this.C,this));$n(this)};
$n=function(a){a.stop();ce(a,5E3+2E4*Math.random())};
bo=function(a,b){this.K=a;this.C=b;this.o=new qg;this.g=new ao(this.PF,this);this.b=null;this.H=!1;this.B=null;this.G="";this.F=this.A=0;this.D=[]};
co=function(a){return{firstTestResults:[""],secondTestResults:!a.b.tj,sessionId:a.b.o,arrayId:a.b.gg}};
eo=function(a,b){a.F=b||0;a.g.stop();a.b&&(3==a.b.b&&Sn(a.b),Ln(a.b));a.F=0};
fo=function(a){return!!a.b&&3==a.b.b};
go=function(a,b){(a.C.loungeIdToken=b)||a.g.stop()};
ho=function(){this.b=[];this.g=[]};
io=function(a){gb(a.b)&&(a.b=a.g,a.b.reverse(),a.g=[])};
jo=function(a,b){a.g.push(b)};
ko=function(a){io(a);return a.b.pop()};
lo=function(a){io(a);return Za(a.b)};
mo=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)};
no=function(a){a.audioTrackId=null;a.g=null;a.b=-1;a.o=0;a.A=E()};
oo=function(a){a.index=-1;a.videoId="";no(a)};
po=function(a,b){a.o=b;a.A=E()};
qo=function(a){switch(a.b){case 1:return(E()-a.A)/1E3+a.o;case -1E3:return 0}return a.o};
ro=function(a,b,c){var d=a.videoId;a.videoId=b;a.index=c;b!=d&&no(a)};
so=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=hc(a.g);b.playerTime=a.o;b.playerTimeAt=a.A;return b};
vo=function(a,b){nk.call(this);this.g=0;this.A=a;this.D=[];this.C=new ho;this.B=window.NaN;this.o=this.b=null;this.H=x(this.hB,this);this.F=x(this.hh,this);this.G=x(this.gB,this);var c=0;a?(c=a.getProxyState(),3!=c&&(a.subscribe("proxyStateChange",this.Sm,this),to(this))):c=3;0!=c&&(b?this.Sm(c):Ri(x(function(){this.Sm(c)},this),0));
uo(this,Vl())};
wo=function(a){return new mo(a.A.getPlayerContextData())};
zo=function(a,b,c,d,e){var f=wo(a),k=e||f.listId;d=d||0;var l={videoId:b,currentIndex:d};ro(f,b,d);p(c)&&(po(f,c),l.currentTime=c);p(k)&&(l.listId=k);xo(a,"setPlaylist",l);e||yo(a,f)};
to=function(a){F(["remotePlayerChange","remoteQueueChange"],function(a){this.D.push(this.A.subscribe(a,pa(this.aD,a),this))},a)};
Ao=function(a){F(a.D,function(a){this.A.unsubscribeByKey(a)},a);
a.D.length=0};
Bo=function(a,b){50>a.C.Qb()&&jo(a.C,b)};
Co=function(a,b,c){var d=wo(a);po(d,c);-1E3!=d.b&&(d.b=b);yo(a,d)};
xo=function(a,b,c){a.A.sendMessage(b,c)};
yo=function(a,b){Ao(a);a.A.setPlayerContextData(so(b));to(a)};
Do=function(a){Ti(a.B);a.B=Ri(x(function(){this.Y("remotePlayerChange");this.B=window.NaN},a),2E3)};
uo=function(a,b){a.o&&(a.o.removeUpdateListener(a.H),a.o.removeMediaListener(a.F),a.hh(null));a.o=b;a.o&&(Eo("Setting cast session: "+a.o.sessionId),a.o.addUpdateListener(a.H),a.o.addMediaListener(a.F),a.o.media.length&&a.hh(a.o.media[0]))};
Fo=function(a){var b=a.b.customData;if(a.b.media){var c=a.b.media,d=wo(a);c.contentId!=d.videoId&&Eo("Cast changing video to: "+c.contentId);d.videoId=c.contentId;d.b=b.playerState;po(d,a.b.getEstimatedTime());yo(a,d)}else Eo("No cast media video. Ignoring state update.")};
Eo=function(a){wi("CP",a)};
Ho=function(a,b,c){nk.call(this);this.A=window.NaN;this.M=!1;this.H=this.G=this.K=this.L=window.NaN;this.O=[];this.D=this.F=this.o=this.Ua=this.b=null;this.ka=a;this.O.push(hm(window,"beforeunload",x(this.gy,this)));this.g=[];this.Ua=new mo;this.ba=b.id;this.b=Go(this,c);this.b.subscribe("handlerOpened",this.lB,this);this.b.subscribe("handlerClosed",this.iB,this);this.b.subscribe("handlerError",this.jB,this);this.b.subscribe("handlerMessage",this.kB,this);go(this.b,b.token);this.subscribe("remoteQueueChange",
function(){var a=this.Ua.videoId;Ik()&&Gj("yt-remote-session-video-id",a)},this)};
Io=function(a){wi("conn",a)};
Go=function(a,b){return new bo(hk(a.ka,"/bc",void 0,!1),b)};
Jo=function(a,b){a.Y("proxyStateChange",b)};
Ko=function(a){a.A=Ri(x(function(){Io("Connecting timeout");this.B(1)},a),2E4)};
Lo=function(a){Ti(a.A);a.A=window.NaN};
Mo=function(a){Ti(a.L);a.L=window.NaN};
Po=function(a){No(a);a.K=Ri(x(function(){Oo(this,"getNowPlaying")},a),2E4)};
No=function(a){Ti(a.K);a.K=window.NaN};
Ro=function(a,b){b&&(Lo(a),Mo(a));b==(fo(a.b)&&(0,window.isNaN)(a.A))?b&&(Jo(a,1),Oo(a,"getSubtitlesTrack")):b?(a.S()&&a.Ua.reset(),Jo(a,1),Oo(a,"getNowPlaying"),Qo(a)):a.B(1)};
So=function(a,b){var c=b.params.videoId;delete b.params.videoId;c==a.Ua.videoId&&(bc(b.params)?a.Ua.g=null:a.Ua.g=b.params,a.Y("remotePlayerChange"))};
To=function(a,b){var c=b.params.videoId||b.params.video_id,d=(0,window.parseInt)(b.params.currentIndex,10);a.Ua.listId=b.params.listId||a.Ua.listId;ro(a.Ua,c,d);a.Y("remoteQueueChange")};
Vo=function(a,b){b.params=b.params||{};To(a,b);Uo(a,b)};
Uo=function(a,b){var c=(0,window.parseInt)(b.params.currentTime||b.params.current_time,10);po(a.Ua,(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.Ua.b&&(c=-1E3);a.Ua.b=c;1==a.Ua.b?Po(a):No(a);a.Y("remotePlayerChange")};
Wo=function(a,b){var c="true"==b.params.muted;a.Ua.volume=(0,window.parseInt)(b.params.volume,10);a.Ua.muted=c;a.Y("remotePlayerChange")};
Qo=function(a){Ti(a.H);a.H=Ri(x(a.B,a,1),864E5)};
Oo=function(a,b,c){c?Io("Sending: action="+b+", params="+dg(c)):Io("Sending: action="+b);a.b.sendMessage(b,c)};
Xo=function(a){ok.call(this,"ScreenServiceProxy");this.bc=a;this.b=[];this.b.push(this.bc.$_s("screenChange",x(this.TF,this)));this.b.push(this.bc.$_s("onlineScreenChange",x(this.OC,this)))};
kp=function(a,b){Dj&&Ej();Lk();Yo||(Yo=new gk,Wk()&&(Yo.b="/api/loungedev"));Zo||(Zo=r("yt.mdx.remote.deferredProxies_")||[],g.aa("yt.mdx.remote.deferredProxies_",Zo,void 0));$o();var c=ap();if(!c){var d=new il(Yo);g.aa("yt.mdx.remote.screenService_",d,void 0);c=ap();Ml(a,d,function(a){a?bp()&&Zl(bp(),"YouTube TV"):d.subscribe("onlineScreenChange",function(){fj("yt-remote-receiver-availability-change")})},!(!b||!b.loadCastApiSetupScript))}if(b&&!r("yt.mdx.remote.initialized_")){g.aa("yt.mdx.remote.initialized_",
!0,void 0);
cp("Initializing: "+dg(b));dp.push(cj("yt-remote-cast2-availability-change",function(){fj("yt-remote-receiver-availability-change")}));
dp.push(cj("yt-remote-cast2-receiver-selected",function(){ep(null);fj("yt-remote-auto-connect","cast-selector-receiver")}));
dp.push(cj("yt-remote-cast2-session-change",fp));dp.push(cj("yt-remote-connection-change",function(a){a?Zl(bp(),"YouTube TV"):gp()||(Zl(null,null),Ul())}));
var e=hp();b.isAuto&&(e.id+="#dial");e.name=b.device;e.app=b.app;cp(" -- with channel params: "+dg(e));ip(e);c.start();bp()||jp()}};
mp=function(){dj(dp);dp.length=0;Mb(lp);lp=null;Zo&&(F(Zo,function(a){a(null)}),Zo.length=0,Zo=null,g.aa("yt.mdx.remote.deferredProxies_",null,void 0));
Yo=null};
qp=function(){if(Rl()){var a=[];if(Hj("yt-remote-cast-available")||r("yt.mdx.remote.cloudview.castButtonShown_")||np())a.push({key:"cast-selector-receiver",name:op()}),g.aa("yt.mdx.remote.cloudview.castButtonShown_",!0,void 0);return a}return r("yt.mdx.remote.cloudview.initializing_")?[]:pp()};
pp=function(){var a;a=ap().bc.$_gos();var b=rp();b&&np()&&(lk(a,b)||a.push(b));return kk(a)};
tp=function(){if(Rl()){var a=Tl();return a?{key:"cast-selector-receiver",name:a}:null}return sp()};
sp=function(){var a=pp(),b=rp();b||(b=gp());return bb(a,function(a){return b&&Ci(b,a.key)?!0:!1})};
op=function(){if(Rl())return Tl();var a=rp();return a?a.name:null};
rp=function(){var a=bp();if(!a)return null;var b=ap().Ec();return mk(b,a)};
fp=function(a){cp("remote.onCastSessionChange_: "+Gi(a));if(a){var b=rp();b&&b.id==a.id?Zl(b.id,"YouTube TV"):(b&&up(),vp(a,1))}else up()};
xp=function(a,b){cp("Connecting to: "+dg(a));if("cast-selector-receiver"==a.key)ep(b||null),Yl(b||null);else{up();ep(b||null);var c=ap().Ec();(c=mk(c,a.key))?vp(c,1):Ri(function(){wp(null)},0)}};
up=function(){Wl()?Nl().stopSession():Jl("stopSession called before API ready.");var a=np();a?a.disconnect(1):(gj("yt-remote-before-disconnect",1),gj("yt-remote-connection-change",!1));wp(null)};
Ap=function(){var a=yp(),a=a?a.currentTime:0,b=zp();0==a&&b&&(a=qo(wo(b)));return a};
zp=function(){var a=np();return a&&3!=a.getProxyState()?new vo(a,void 0):null};
cp=function(a){wi("remote",a)};
ap=function(){if(!lp){var a=r("yt.mdx.remote.screenService_");lp=a?new Xo(a):null}return lp};
bp=function(){return r("yt.mdx.remote.currentScreenId_")};
Bp=function(a){g.aa("yt.mdx.remote.currentScreenId_",a,void 0)};
yp=function(){return r("yt.mdx.remote.connectData_")};
ep=function(a){g.aa("yt.mdx.remote.connectData_",a,void 0)};
np=function(){return r("yt.mdx.remote.connection_")};
wp=function(a){var b=np();ep(null);a?np():Bp("");g.aa("yt.mdx.remote.connection_",a,void 0);Zo&&(F(Zo,function(b){b(a)}),Zo.length=0);
b&&!a?gj("yt-remote-connection-change",!1):!b&&a&&fj("yt-remote-connection-change",!0)};
gp=function(){var a=Ik();if(!a)return null;var b=ap().Ec();return mk(b,a)};
vp=function(a,b){bp();Bp(a.id);var c=new Ho(Yo,a,hp());c.connect(b,yp());c.subscribe("beforeDisconnect",function(a){gj("yt-remote-before-disconnect",a)});
c.subscribe("beforeDispose",function(){np()&&(np(),wp(null))});
wp(c)};
jp=function(){var a=gp();a?(cp("Resume connection to: "+Gi(a)),vp(a,0)):(Uk(),Ul(),cp("Skipping connecting because no session screen found."))};
$o=function(){var a=hp();if(bc(a)){var a=Fk(),b=Hj("yt-remote-session-name")||"",c=Hj("yt-remote-session-app")||"",a={device:"REMOTE_CONTROL",id:a,name:b,app:c,"mdx-version":3};g.aa("yt.mdx.remote.channelParams_",a,void 0)}};
hp=function(){return r("yt.mdx.remote.channelParams_")||{}};
ip=function(a){a?(Gj("yt-remote-session-app",a.app),Gj("yt-remote-session-name",a.name)):(Ij("yt-remote-session-app"),Ij("yt-remote-session-name"));g.aa("yt.mdx.remote.channelParams_",a,void 0)};
Dp=function(a){return(a=Cp.exec(a))?a[0]:""};
Gp=function(a){var b=Ep.test(a),c;c=(new RegExp("^(https?:)?//([a-z0-9-]{1,63}\\.)*("+Fp.join("|").replace(/\./g,".")+")(:[0-9]+)?([/?#]|$)","i")).test(a);!b&&c&&(a=Error("isTrustedLoader("+a+") behavior is not consistent"),.01>Math.random()&&Vi(a,"WARNING"));return b||c};
Hp=function(a){a=new M(a);$g(a,window.document.location.protocol);ah(a,window.document.location.hostname);window.document.location.port&&bh(a,window.document.location.port);return a.toString()};
Ip=function(a){a=new M(a);$g(a,window.document.location.protocol);return a.toString()};
Kp=function(){return Jp("android")&&Jp("chrome")&&!(Jp("trident/")||Jp("edge/"))};
Lp=function(){return Jp("cobalt")};
Mp=function(){return Jp("(ps3; leanback shell)")||Jp("ps3")&&Lp()};
Np=function(){return Jp("(ps4; leanback shell)")||Jp("ps4")&&Lp()};
Op=function(){var a=/WebKit\/([0-9]+)/.exec(sc);return!!(a&&600<=a[1])};
Pp=function(){return $l&&Jp("crkey")};
Qp=function(){return Jp("nintendo wiiu")};
Rp=function(){return Jp("iemobile")||Jp("windows phone")&&Jp("edge")};
Jp=function(a){var b=sc;return b?0<=b.toLowerCase().indexOf(a):!1};
Tp=function(a,b,c){a&&(c&&!Lp()?a&&(a=L("IFRAME",{src:'javascript:"data:text/html,<body><img src=\\"'+a+'\\"></body>"',style:"display:none"}),lf(a).body.appendChild(a)):Sp(a,b))};
Xp=function(a){return B(C(a))?!1:Up.test(a)||Wp.test(a)};
Sp=function(a,b){var c=new window.Image,d=""+Yp++;Zp[d]=c;c.onload=c.onerror=function(){b&&Zp[d]&&b();delete Zp[d]};
c.src=a};
aq=function(a,b,c){this.start=a;this.end=b;this.A=$p++;a=c||{};this.xa=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};
bq=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}};
cq=function(a,b){return a.start-b.start||a.B-b.B||a.A-b.A};
dq=function(a,b){nk.call(this);this.logEvent=this.Ma="";this.va=b||"";this.fa=this.loaded=this.D=!1;this.M=this.F=null;this.b=a;if(this.va){var c=uk("yt-html5-player-modules::"+this.va);c&&(this.M=new uj(c))}};
fq=function(a){var b=a.b;eq(b.app,a.Ma,b.playerType)};
hq=function(a){gq(a.b,a.Ma)};
jq=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=iq(a.b);qa(a.B,d||null);qa(a.A,b||null)};
kq=function(a,b){if(!a.M)return null;var c;try{c=a.M.get(b)}catch(d){a.M&&a.M.remove(b)}return c};
lq=function(a,b,c){if(a.M)try{a.M.set(b,c)}catch(d){}};
mq=function(a){a.Y("command_stop_redirect_controls")};
oq=function(a){return(a=nq[a.toString()])?a:"YTP_ERROR_LICENSE"};
pq=function(){};
qq=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};
rq=function(a,b){this.g=a||64;this.b=b||null};
wq=function(a,b,c,d){if(R(a,128))return a;var e=a.g,f=a.b,k=b.target;if(!R(a,64)||"ended"!=b.type&&"pause"!=b.type)if("pause"==b.type&&k.b.ended||"ended"==b.type&&(k.b.ended||1>Math.abs(k.getCurrentTime()-k.b.duration)))0<k.b.networkState&&k.b.src&&(e=14,f=null);else if("pause"==b.type)R(a,256)?(e^=256)||(e=64):R(a,32)||R(a,2)||R(a,4)||(e=4,R(a,1)&&R(a,8)&&(e|=1),f=null);else if("playing"==b.type)e=8,f=null,R(a,32)&&(e|=32),d&&R(a,1)&&sq(c,k)&&(e|=1);else if("error"==b.type){a:{if(2==k.vb())b="progressive.net";
else if(3==k.vb())b="fmt.decode";else if(4==k.vb())b="fmt.unplayable";else{b=null;break a}c="mediaElem.1";.001>Math.random()&&(c+=";gpu."+qq());b={errorCode:b,errorDetail:c,message:O("YTP_ERROR_GENERIC_WITHOUT_LINK"),messageKey:"YTP_ERROR_GENERIC_WITHOUT_LINK"}}b&&(f=b,e|=128)}else if("progress"==b.type)tq(a)&&sq(c,k)&&(e|=1);else if("seeked"==b.type)e&=-17;else if("seeking"==b.type)e|=16,0>=uq(k)&&(e|=1),e&=-3;else if("waiting"==b.type)R(a,2)||(e|=1);else if("timeupdate"==b.type)R(a,16)||R(a,4)||
(e=sq(c,k)?e|1:e&-2),1<k.b.readyState&&0<k.getCurrentTime()&&(e&=-65);else return a;return vq(a,e,f)};
sq=function(a,b){return a?xq(a,b.getCurrentTime(),yq(),uq(b)):!1};
vq=function(a,b,c){return b==a.g&&c==a.b||b&128&&!c||b&2&&b&16?a:new rq(b,c)};
zq=function(a,b){return vq(a,a.g|b)};
Aq=function(a,b){return vq(a,a.g&~b)};
Bq=function(a){return vq(a,(a.g|4)&-9)};
R=function(a,b){return!!(a.g&b)};
tq=function(a){return R(a,8)&&!R(a,2)};
Cq=function(a){return R(a,64)&&!R(a,8)&&!R(a,4)};
Dq=function(a){return R(a,1)&&!R(a,2)};
Eq=function(a){return R(a,128)?-1:R(a,2)?0:R(a,1)&&!R(a,32)?3:R(a,64)?-1:R(a,8)?1:R(a,4)?2:-1};
Fq=function(a,b,c){nk.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.Hl,clientVersion:c.innertubeContextClientVersion,hl:c.Jl,gl:c.Il}},videoId:a});this.G="https://"+(c.apiaryHost||"www.googleapis.com")+"/youtubei/"+c.innertubeApiVersion+"/player/live_state";this.g=new fe(x(this.B,this));H(this,this.g);this.B()?this.g.start(this.b):this.g.start(1E4)};
Hq=function(a){G.call(this);this.qa={};this.va={};this.element=Gq(this,a)};
Gq=function(a,b,c){if(da(b)){c=0;var d=Cf(b[c++]);if(w(b[c])){var e=b[c++];if(e=Iq(a,d,"class",e))Jq(a,d,"class",e),a.qa[e]=d}else if(da(b[c])){for(var f=b[c++],e=0;e<f.length;e++)a.qa[f[e]]=d;Jq(a,d,"class",f.join(" "))}for(;c<b.length;c++){var k=b[c];da(k)||k&&k.J?(e=Gq(a,k),d.appendChild(e)):ia(k)?k.element?d.appendChild(k.element):Kq(a,d,k):w(k)&&(k=Iq(a,d,"child",k),null!=k&&d.appendChild(window.document.createTextNode(String(k))))}}else{d=(c=c||"svg"==b.J)?window.document.createElementNS("http://www.w3.org/2000/svg",
b.J):window.document.createElement(b.J);if(e=b.X){if(e=Iq(a,d,"class",e))Jq(a,d,"class",e),a.qa[e]=d}else if(f=b.ha){for(e=0;e<f.length;e++)a.qa[f[e]]=d;Jq(a,d,"class",f.join(" "))}if(f=b.R)for(var l=0,e=0;e<f.length;e++)if(k=f[e])if(w(k))k=Iq(a,d,"child",k),null!=k&&d.appendChild(window.document.createTextNode(String(k)));else{var m=k,k=Gq(a,m,c);d.appendChild(k);m.Fa&&(m=Hq.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),Gf(d,k,l++))}(b=b.V)&&Kq(a,d,b)}return d};
Iq=function(a,b,c,d){return"{{"==d.substr(0,2)?(a.va[d]=[b,c],null):d};
Lq=function(a){return da(a)&&w(a[0])||ia(a)&&w(a.J)};
Jq=function(a,b,c,d){if("child"==c){Ff(b);if(!da(d)||Lq(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(Lq(f))c.push(Gq(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())};
Kq=function(a,b,c){for(var d in c){var e=c[d];null!=e&&Jq(a,b,d,w(e)?Iq(a,b,d,e):e)}};
Mq=function(a,b){a&&(a.style.display=b)};
Nq=function(a,b){var c=Qh("requestAnimationFrame",window);return Ri(function(){c?c.call(window,a):a()},b||0)};
Oq=function(a){if(window.document.createRange){var b=window.document.createRange();b.selectNodeContents(a);window.getSelection().removeAllRanges();window.getSelection().addRange(b)}};
S=function(a){Hq.call(this,a);this.g=!0;this.ba=[]};
Pq=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};
Qq=function(a){return(!ga(a.button)||0==a.button)&&!a.shiftKey&&!a.altKey&&!a.metaKey&&!a.ctrlKey};
Rq=function(a){this.b=a;this.g=this.o=void 0};
Sq=function(a){var b={};void 0!==a.b?b.trackingParams=a.b:(b.veType=a.o,null!=a.g&&(b.veCounter=a.g));return b};
Tq=function(a){var b=window.location;a=Sg(a,{})+"";a=a instanceof De?a:He(a);b.href=Ee(a)};
Uq=function(a,b){var c=Pi("EVENT_ID");c&&(b||(b={}),b.ei||(b.ei=c));if(b){var c=b,d=Pi("VALID_SESSION_TEMPDATA_DOMAINS",[]),e=Jg(window.location.href);e&&d.push(e);e=Jg(a);if(fb(d,e)||!e&&sa(a,"/"))if(d=Hg(a),d=Fg(null,null,null,null,d[5],d[6],d[7]),e=d.indexOf("#"),d=0>e?d:d.substr(0,e))d="ST-"+Ra(d).toString(36),e=c?Qg(c):"",Kk.set(""+d,e,5,"/","youtube.com"),c&&(c=c.itct||c.ved,d=r("yt.logging.screenreporter.storeParentElement"),c&&d&&d(new Rq(c)))}};
Vq=function(a,b){window.open(a,b||Ra(a).toString(36))};
Wq=function(a){var b=!T(a).Sa&&3!=a.getPresentingPlayerType();return a.Qa()||b};
$q=function(a,b,c,d){if(!c&&Qq(a))return qm(a),d&&(d=d.itct,T(b).experiments.aa("player_interaction_logging")&&(b=Xq())&&Yq(Zq(),{click:{csn:b,visualElement:Sq(new Rq(d))}},void 0)),!0;b.pauseVideo();b=a.currentTarget.getAttribute("href");Uq(b,d);return!1};
cr=function(a,b,c){if(ar(T(b))&&2!=b.getPresentingPlayerType()){if(Qq(c))return b.Qa()&&br(b),qm(c),!0}else{var d=Qq(c);d&&b.pauseVideo();Uq(a,null);d&&(Vq(a),qm(c))}return!1};
dr=function(a){S.call(this,{J:"a",X:"ytp-fresca-suggested-central-link",V:{href:"{{link_destination}}"},R:[{J:"div",X:"ytp-fresca-suggested-promo-central",R:[{J:"div",X:"ytp-fresca-suggested-header",R:["{{suggested_header_central}}"]},{J:"div",X:"ytp-fresca-suggested-central-image",V:{style:"{{image_style}}"},R:[{J:"div",X:"ytp-fresca-suggested-image-badge",R:["{{badge_content}}"]}]},{J:"div",X:"ytp-fresca-suggested-title",R:["{{suggested_title}}"]},{J:"div",X:"ytp-fresca-suggested-content",R:["{{suggested_content}}"]}]}]});
this.b=a;this.P("click",this.o,this)};
er=function(a){S.call(this,{J:"div",X:"ytp-fresca-suggested-promo-sidebar",R:[{J:"div",X:"ytp-fresca-suggested-sidebar-title",R:["{{suggested_sidebar_title}}"]},{J:"button",ha:["ytp-button","ytp-fresca-suggested-sidebar-close-button"],R:["{{suggested_sidebar_close}}"]},{J:"div",X:"ytp-fresca-suggested-sidebar-items",R:["{{sidebar_items}}"]}]});this.b=[];this.o=a;this.A=!1};
ir=function(a,b){a.wa("suggested_sidebar_title",b.g?O("YTP_FRESCA_SIDEBAR_PROMO_HEADER",{STREAMER_NAME:b.g}):"");a.wa("suggested_sidebar_close",Ah());a.U(a.qa["ytp-fresca-suggested-sidebar-close-button"],"click",a.nB);Nb(a.b);a.b=[];F(b.b,function(a,b){if(!(5<=b)&&a){var e=new S({J:"a",X:"ytp-fresca-suggested-sidebar-link",V:{href:"{{link_destination}}"},R:[{J:"div",X:"ytp-fresca-suggested-sidebar",R:[{J:"div",X:"ytp-fresca-suggested-image",V:{style:"{{image_style}}"},R:[{J:"div",X:"ytp-fresca-suggested-image-badge",
R:["{{badge_content}}"]}]},{J:"div",X:"ytp-fresca-suggested-title",R:["{{suggested_title}}"]},{J:"div",X:"ytp-fresca-suggested-content",R:["{{suggested_content}}"]}]}]}),f="background-image:"+fr(a),k=gr(a);e.update({suggested_title:a.Zt,suggested_content:hr(a),badge_content:k,image_style:f,link_destination:a.getVideoUrl()});f=e.qa["ytp-fresca-suggested-image-badge"];K(f,"ytp-fresca-suggested-image-badge-live",a.isLive());f.style.display=k?"":"none";e.P("click",this.BA,this);this.b.push(e)}},a);
a.wa("sidebar_items",a.b)};
jr=function(a){S.call(this,{J:"div",ha:["ytp-fresca-module"],R:[{J:"div",X:"ytp-fresca-slant",R:[{J:"div",X:"ytp-fresca-slant-blur-image"},{J:"div",X:"ytp-fresca-slant-inner",R:[{J:"div",X:"ytp-fresca-slant-overlay"},{J:"div",X:"ytp-fresca-slant-arrows"}]}]},{J:"div",X:"ytp-fresca-band-slate",R:[{J:"div",X:"ytp-fresca-message",R:[{J:"h1",X:"ytp-fresca-heading",R:["{{heading}}"]},{J:"h2",X:"ytp-fresca-byline",R:["{{byline}}"]},{J:"h3",X:"ytp-fresca-countdown",R:["{{countdown}}"]}]}]}]});this.F=a;this.B=
0;this.b=null;this.C=-1;this.A=new dr(a);H(this,this.A);this.o=new er(a);H(this,this.o);this.A.pa();this.A.Ca(this.element);this.o.pa();this.o.Ca(this.element)};
or=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=kr(b),K(a.element,"ytp-fresca-final-day-easter-egg",b),c=!b&&a.b.imageUrl,b=a.qa["ytp-fresca-slant-blur-image"],c=c?"url("+c+")":"",a.element.style.backgroundImage=c,b.style.backgroundImage=c,b=lr(a.b),a.update({heading:b[0]||"",byline:b[1]||"",countdown:b[2]||""}),a.D(!0),a.b.g&&!mr(a.F))if(nr(a.b.g)&&!kr(a.b)){b=a.A;c=a.b.g.b[0];var d;d=
a.b.g;d=d.g?O("YTP_FRESCA_CENTRAL_PROMO_HEADER",{STREAMER_NAME:d.g}):"";var e="background-image:"+fr(c);b.update({suggested_header_central:d,suggested_title:c.Zt,suggested_content:hr(c),badge_content:gr(c),link_destination:c.getVideoUrl(),image_style:e});K(b.qa["ytp-fresca-suggested-image-badge"],"ytp-fresca-suggested-image-badge-live",c.isLive());a.A.show();a.o.pa()}else b=a.b.g,!(0<b.b.length)||nr(b)||kr(a.b)||a.o.A?a.o.pa():(ir(a.o,a.b.g),a.o.show()),a.A.pa();else a.A.pa(),a.o.pa()};
pr=function(a){var b=Math.floor(E()/1E3);if(b>a)return"";a-=b;return 86400>a?Pq(a):259200>a?O("YTP_FRESCA_COUNTDOWN_HOURS",{HOURS:Math.floor(a/3600)}):O("YTP_FRESCA_COUNTDOWN_DAYS",{DAYS:Math.floor(a/86400)})};
qr=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)};
tr=function(a,b,c){ga(a)?(this.date=rr(a,b||0,c||1),sr(this,c||1)):ia(a)?(this.date=rr(a.getFullYear(),a.getMonth(),a.getDate()),sr(this,a.getDate())):(this.date=new Date(E()),a=this.date.getDate(),this.date.setHours(0),this.date.setMinutes(0),this.date.setSeconds(0),this.date.setMilliseconds(0),sr(this,a))};
rr=function(a,b,c){b=new Date(a,b,c);0<=a&&100>a&&b.setFullYear(b.getFullYear()-1900);return b};
sr=function(a,b){a.getDate()!=b&&a.date.setUTCHours(a.date.getUTCHours()+(a.getDate()<b?1:-1))};
ur=function(){};
wr=function(a){if("number"==typeof a){var b=new ur;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(":",La(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=vr(a);b.B=[c,c];b.b={qO:a,fo:a};b.g=[];return b}b=new ur;b.A=a.id;b.o=-a.std_offset;b.B=a.names;b.b=a.names_ext;b.g=a.transitions;return b};
vr=function(a){var b=["GMT"];b.push(0>=a?"+":"-");a=Math.abs(a);b.push(La(Math.floor(a/60)%100,2),":",La(a%60,2));return b.join("")};
xr=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]};
Br=function(a,b){this.g=[];this.b=b||yr;"number"==typeof a?zr(this,a):Ar(this,a)};
Cr=function(a){return a.getHours?a.getHours():0};
Ar=function(a,b){for(Dr&&(b=b.replace(/\u200f/g,""));b;){for(var c=b,d=0;d<Er.length;++d){var e=b.match(Er[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);}};
zr=function(a,b){var c;if(4>b)c=a.b.Ph[b];else if(8>b)c=a.b.bk[b-4];else if(12>b)c=a.b.An[b-8],c=c.replace("{1}",a.b.Ph[b-8]),c=c.replace("{0}",a.b.bk[b-8]);else{zr(a,10);return}Ar(a,c)};
Fr=function(a,b){var c;c=String(b);var d=a.b||yr;if(void 0!==d.Tw){for(var e=[],f=0;f<c.length;f++){var k=c.charCodeAt(f);e.push(48<=k&&57>=k?String.fromCharCode(d.Tw+k-48):c.charAt(f))}c=e.join("")}return c};
Gr=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.");};
Hr=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.Dn[c]:a.b.En[c];case "y":return c=d.getFullYear(),0>c&&(c=-c),2==k&&(c%=100),Fr(a,La(c,k));case "M":a:switch(c=d.getMonth(),k){case 5:k=a.b.Sn[c];break a;case 4:k=a.b.Vj[c];break a;case 3:k=a.b.Wj[c];break a;default:k=Fr(a,La(c+1,k))}return k;case "k":return Gr(e),Fr(a,La(Cr(e)||24,k));case "S":return Fr(a,(e.getTime()%1E3/1E3).toFixed(Math.min(3,k)).substr(2)+(3<k?La(0,k-3):""));case "E":return c=
d.getDay(),4<=k?a.b.dk[c]:a.b.Xj[c];case "a":return Gr(e),k=Cr(e),a.b.Rj[12<=k&&24>k?1:0];case "h":return Gr(e),Fr(a,La(Cr(e)%12||12,k));case "K":return Gr(e),Fr(a,La(Cr(e)%12,k));case "H":return Gr(e),Fr(a,La(Cr(e),k));case "c":a:switch(c=d.getDay(),k){case 5:k=a.b.co[c];break a;case 4:k=a.b.ak[c];break a;case 3:k=a.b.$j[c];break a;default:k=Fr(a,La(c,1))}return k;case "L":a:switch(c=d.getMonth(),k){case 5:k=a.b.bo[c];break a;case 4:k=a.b.Yj[c];break a;case 3:k=a.b.Zj[c];break a;default:k=Fr(a,La(c+
1,k))}return k;case "Q":return c=Math.floor(d.getMonth()/3),4>k?a.b.$n[c]:a.b.Wn[c];case "d":return Fr(a,La(d.getDate(),k));case "m":return Gr(e),Fr(a,La(e.getMinutes(),k));case "s":return Gr(e),Fr(a,La(e.getSeconds(),k));case "v":return k=f||wr(c.getTimezoneOffset()),k.A;case "V":return a=f||wr(c.getTimezoneOffset()),2>=k?a.A:0<xr(a,c)?p(a.b.yv)?a.b.yv:a.b.DST_GENERIC_LOCATION:p(a.b.fo)?a.b.fo:a.b.STD_GENERIC_LOCATION;case "w":return c=a.b.Rh,e=new Date(e.getFullYear(),e.getMonth(),e.getDate()),
b=a.b.Qh||0,c=e.valueOf()+864E5*(((p(c)?c:3)-b+7)%7-((e.getDay()+6)%7-b+7)%7),Fr(a,La(Math.floor(Math.round((c-(new Date((new Date(c)).getFullYear(),0,1)).valueOf())/864E5)/7)+1,k));case "z":return a=f||wr(c.getTimezoneOffset()),4>k?a.B[0<xr(a,c)?2:0]:a.B[0<xr(a,c)?3:1];case "Z":return e=f||wr(c.getTimezoneOffset()),4>k?(k=-(e.o-xr(e,c)),a=[0>k?"-":"+"],k=Math.abs(k),a.push(La(Math.floor(k/60)%100,2),La(k%60,2)),k=a.join("")):k=Fr(a,vr(e.o-xr(e,c))),k;default:return""}};
Ir=function(a){this.B=a.thumbnailUrl?a.thumbnailUrl:null;this.b=a.startTimeSecs?(0,window.parseInt)(a.startTimeSecs,10):null;this.Zt=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};
fr=function(a){return(a=a.B)?"url("+a+")":""};
hr=function(a){if("COMPLETE"==a.g){var b=Math.floor(E()/1E3);a=a.b?b-a.b:0;return 172800<a?O("YTP_FRESCA_LIVE_DAYS_AGO",{DAYS:Math.floor(a/86400)}):3600<a?O("YTP_FRESCA_LIVE_HOURS_AGO",{HOURS:Math.floor(a/3600)}):O("YTP_FRESCA_LIVE_RECENTLY")}return a.isUpcoming()?(b=Math.floor(E()/1E3),a=a.b?a.b-b:0,172800<a?O("YTP_FRESCA_LIVE_IN_DAYS",{DAYS:Math.floor(a/86400)}):3600<a?O("YTP_FRESCA_LIVE_IN_HOURS",{HOURS:Math.floor(a/3600)}):O("YTP_FRESCA_STREAMING_SOON")):a.o&&2<a.o?O("YTP_FRESCA_VIEWERS_WATCHING_NOW",
{VIEWER_COUNT:a.o}):O("YTP_FRESCA_NO_VIEWERS_STREAMING_NOW")};
gr=function(a){return"COMPLETE"==a.g&&a.A?Pq(a.A):a.isLive()?O("YTP_FRESCA_LIVE_BADGE"):null};
Jr=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 Ir(a[b]))};
nr=function(a){return 1==a.b.length&&a.b[0].isLive()};
Lr=function(a,b){this.state=-1;this.o=a;this.messageText=[];this.A=!1;b&&Kr(this,b)};
Kr=function(a,b){var c=b.lifeCycleState;c&&(a.state=Mr[c]||-1);a.startTime=(0,window.parseInt)(b.scheduledStartTime,10);if(c=b.slateBackgroundUrl)a.imageUrl=c;if(c=b.streamStates)a.A=0<=$a(c,function(a){a=a.streamState;return!!a&&"STREAM_STATE_ACTIVE"==a});
if(c=b.broadcastId)a.broadcastId=c;a.g=new Jr(b)};
lr=function(a){return a.messageText.length?a.messageText:Nr(a)};
Nr=function(a){switch(a.state){case 6:return!a.b()&&a.o?[O("YTP_FRESCA_EVENT_OFFLINE_PREAMBLE"),null,O("YTP_FRESCA_EVENT_OFFLINE")]:a.b()?[]:[O("YTP_FRESCA_EVENT_VIDEO_INTERRUPTED"),O("YTP_FRESCA_STREAMER_STOPPED_STREAMING")];case 8:case 7:if(!a.startTime)return a.o?[O("YTP_FRESCA_EVENT_OFFLINE_PREAMBLE"),null,O("YTP_FRESCA_EVENT_OFFLINE")]:a.o?[O("YTP_FRESCA_EVENT_OFFLINE")]:[O("YTP_FRESCA_EVENT_OVER_MESSAGE"),O("YTP_FRESCA_COMPLETE_MESSAGE")];default:if(kr(a))return["Dawn of","The final day","-24 hours remain-"];
if(a.startTime){var b=Pi("LOCAL_DATE_TIME_CONFIG"),c="";if(b){var c=a.startTime,d;d=b.formatLongDate;yr={Vj:b.months,Yj:b.months,Wj:b.shortMonths,Zj:b.shortMonths,Ph:b.dateFormats,dk:b.weekdays,ak:b.shortMonths,Xj:b.shortWeekdays,$j:b.shortWeekdays,lo:b.weekendRange,Qh:b.firstDayOfWeek,Rh:b.firstWeekCutoffDay,Rj:b.amPms};c=(new Br(d)).format(new Date(1E3*c))}b=Math.floor(E()/1E3);return[b<=a.startTime?O("YTP_FRESCA_EVENT_STARTS_IN"):3600>b-a.startTime?O("YTP_FRESCA_EVENT_STARTING_SOON"):O("YTP_FRESCA_EVENT_HASNT_STARTED"),
c]}return a.o?[O("YTP_FRESCA_EVENT_OFFLINE_PREAMBLE"),null,O("YTP_FRESCA_EVENT_OFFLINE")]:a.o?[O("YTP_FRESCA_EVENT_OFFLINE")]:[O("YTP_FRESCA_STAND_BY_MESSAGE")]}};
kr=function(a){if(!a.startTime)return!1;var b=a.startTime-Math.floor(E()/1E3);return fb(Qr,a.state)&&86459>=b&&86400<=b};
Rr=function(a){dq.call(this,a);this.logEvent=this.Ma="fresca";this.o=this.G=!1;this.A=this.g=this.B=null;Xi({YTP_FRESCA_STARTING_SOON_MESSAGE:"Starting soon...",YTP_FRESCA_EVENT_OVER_MESSAGE:"This live stream is over.",YTP_FRESCA_COMPLETE_MESSAGE:"Thanks for watching!",YTP_FRESCA_STAND_BY_MESSAGE:"Please stand by.",YTP_FRESCA_EVENT_VIDEO_INTERRUPTED:"Video was interrupted",YTP_FRESCA_STREAMER_STOPPED_STREAMING:"The streamer stopped streaming.",YTP_FRESCA_EVENT_OFFLINE:"Offline",YTP_FRESCA_EVENT_OFFLINE_PREAMBLE:"This stream is",
YTP_FRESCA_EVENT_STARTS_IN:"Watch the live stream!",YTP_FRESCA_EVENT_STARTING_SOON:"Live stream is starting soon",YTP_FRESCA_EVENT_HASNT_STARTED:"This scheduled live stream hasn't started yet",YTP_FRESCA_CENTRAL_PROMO_HEADER:"$STREAMER_NAME is streaming now!",YTP_FRESCA_SIDEBAR_PROMO_HEADER:"Other live streams by $STREAMER_NAME",YTP_FRESCA_LIVE_BADGE:"Live",YTP_FRESCA_LIVE_DAYS_AGO:"Streamed $DAYS days ago",YTP_FRESCA_LIVE_HOURS_AGO:"Streamed $HOURS hours ago",YTP_FRESCA_LIVE_RECENTLY:"Recently live",
YTP_FRESCA_LIVE_IN_DAYS:"Live in $DAYS days",YTP_FRESCA_LIVE_IN_HOURS:"Live in $HOURS hours",YTP_FRESCA_VIEWERS_WATCHING_NOW:"$VIEWER_COUNT watching now",YTP_FRESCA_NO_VIEWERS_STREAMING_NOW:"Streaming now",YTP_FRESCA_COUNTDOWN_DAYS:"$DAYS days",YTP_FRESCA_COUNTDOWN_HOURS:"$HOURS hours"});this.C=!1;this.H="leanback"!=T(this.b).b};
Ur=function(a,b){if(!a.H)return!1;var c=!!lr(b).length||!!b.imageUrl;if(!a.o&&6>b.state)return c;if(a.b.app.g.H&&(b.imageUrl||b.messageText.length))return!0;var d=Sr(a.b),d=Dq(d)||R(d,2),e;if(e=!a.g.b())(e=!a.o)||(e=!(Sr(a.b).Za()&&!Tr(a.b.getVideoData())&&!a.b.app.g.H)&&d);return e||a.G&&a.b.app.g.H||!a.o&&6<b.state?c:!1};
Wr=function(a,b){var c=Ur(a,b);if(!a.o)switch(b.state){case 6:b.b()&&(a.o=!0,hq(a));break;case 8:case 7:a.o=!0}c&&or(a.B,b);c&&!a.loaded?(a.load(),Vr(a.b)):!c&&a.loaded&&(a.unload(),Vr(a.b))};
Yr=function(a){return Xr(a.getVideoData(),"fresca_module")?new Rr(a):null};
Zr=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&&Fb(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:lr(b),startTime:b.startTime,state:b.state};Vr(c,d)}};
$r=function(){if(!vf)return!1;try{return new window.ActiveXObject("MSXML2.DOMDocument"),!0}catch(a){return!1}};
cs=function(a){if("undefined"!=typeof window.DOMParser)return(new window.DOMParser).parseFromString(a,"application/xml");if(as){var b=bs();b.loadXML(a);return b}throw Error("Your browser does not support loading xml documents");};
ds=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");};
es=function(a,b){if("undefined"!=typeof a.selectSingleNode){var c=lf(a);"undefined"!=typeof c.setProperty&&c.setProperty("SelectionLanguage","XPath");return a.selectSingleNode(b)}if(window.document.implementation.hasFeature("XPath","3.0")){var c=lf(a),d=c.createNSResolver(c.documentElement);return c.evaluate(b,a,d,window.XPathResult.FIRST_ORDERED_NODE_TYPE,null).singleNodeValue}return null};
bs=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};
gs=function(){return Bc?"Webkit":fs?"Moz":vf?"ms":Cc?"O":null};
is=function(a,b,c){if(w(b))(b=hs(a,b))&&(a.style[b]=c);else for(var d in b){c=a;var e=b[d],f=hs(c,d);f&&(c.style[f]=e)}};
hs=function(a,b){var c=js[b];if(!c){var d=Va(b),c=d;void 0===a.style[d]&&(d=gs()+Wa(d),void 0!==a.style[d]&&(c=d));js[b]=c}return c};
ks=function(a,b){var c=a.style[Va(b)];return"undefined"!==typeof c?c:a.style[hs(a,b)]||""};
ls=function(a,b){var c=lf(a);return c.defaultView&&c.defaultView.getComputedStyle&&(c=c.defaultView.getComputedStyle(a,null))?c[b]||c.getPropertyValue(b)||"":""};
ms=function(a,b){return ls(a,b)||(a.currentStyle?a.currentStyle[b]:null)||a.style&&a.style[b]};
os=function(a,b,c){var d;b instanceof ef?(d=b.x,b=b.y):(d=b,b=c);a.style.left=ns(d,!1);a.style.top=ns(b,!1)};
ps=function(a){return new ef(a.offsetLeft,a.offsetTop)};
qs=function(a){var b;try{b=a.getBoundingClientRect()}catch(c){return{left:0,top:0,right:0,bottom:0}}vf&&a.ownerDocument.body&&(a=a.ownerDocument,b.left-=a.documentElement.clientLeft+a.body.clientLeft,b.top-=a.documentElement.clientTop+a.body.clientTop);return b};
rs=function(a){if(vf&&!Ac(8))return a.offsetParent;var b=lf(a),c=ms(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=ms(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};
us=function(a){for(var b=new jg(0,window.Infinity,window.Infinity,0),c=nf(a),d=c.b.body,e=c.b.documentElement,f=uf(c.b);a=rs(a);)if(!(vf&&0==a.clientWidth||Bc&&0==a.clientHeight&&a==d)&&a!=d&&a!=e&&"visible"!=ms(a,"overflow")){var k=ts(a),l=new ef(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=tf(Zf(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};
ts=function(a){var b=lf(a),c=new ef(0,0),d;d=b?lf(b):window.document;d=!vf||Ac(9)||"CSS1Compat"==nf(d).b.compatMode?d.documentElement:d.body;if(a==d)return c;a=qs(a);b=wf(nf(b).b);c.x=a.left+b.x;c.y=a.top+b.y;return c};
ws=function(a,b){var c=new ef(0,0),d=xf(lf(a));if(!oc(d,"parent"))return c;var e=a;do{var f=d==b?ts(e):vs(e);c.x+=f.x;c.y+=f.y}while(d&&d!=b&&d!=d.parent&&(e=d.frameElement)&&(d=d.parent));return c};
ys=function(a,b){var c=xs(a),d=xs(b);return new ef(c.x-d.x,c.y-d.y)};
vs=function(a){a=qs(a);return new ef(a.left,a.top)};
xs=function(a){if(1==a.nodeType)return vs(a);a=a.changedTouches?a.changedTouches[0]:a;return new ef(a.clientX,a.clientY)};
As=function(a,b,c){if(b instanceof gf)c=b.height,b=b.width;else if(void 0==c)throw Error("missing height argument");zs(a,b);a.style.height=ns(c,!0)};
ns=function(a,b){"number"==typeof a&&(a=(b?Math.round(a):a)+"px");return a};
zs=function(a,b){a.style.width=ns(b,!0)};
Cs=function(a){var b=Bs;if("none"!=ms(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};
Bs=function(a){var b=a.offsetWidth,c=a.offsetHeight,d=Bc&&!b&&!c;return p(b)&&!d||!a.getBoundingClientRect?new gf(b,c):(a=qs(a),new gf(a.right-a.left,a.bottom-a.top))};
Ds=function(a){var b=ts(a);a=Cs(a);return new lg(b.x,b.y,a.width,a.height)};
Es=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)+")")};
Fs=function(a,b){a.style.display=b?"":"none"};
Gs=function(a){return"none"!=a.style.display};
Hs=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};
Ls=function(a){var b=ms(a,"fontSize"),c;c=(c=b.match(Is))&&c[0]||null;if(b&&"px"==c)return(0,window.parseInt)(b,10);if(vf){if(String(c)in Js)return Hs(a,b);if(a.parentNode&&1==a.parentNode.nodeType&&String(c)in Ks)return a=a.parentNode,c=ms(a,"fontSize"),Hs(a,b==c?"1em":b)}c=L("SPAN",{style:"visibility:hidden;position:absolute;line-height:0;padding:0;margin:0;border:0;height:1em;"});a.appendChild(c);b=c.offsetHeight;Hf(c);return b};
Ms=function(a){this.g=a||window;this.b=[]};
Ns=function(a,b,c){c=x(c,a.g);b=jm(b,"mouseleave",c);a.b.push(b);return b};
Os=function(a,b,c,d){c=x(c,d||a.g);b=lm(b,c);a.b.push(b)};
Ps=function(a){im(a.b);a.b.length=0};
Qs=function(a,b,c){G.call(this);this.xa=null;this.o=!1;this.B=a;this.A=c;this.b=b||window;this.g=x(this.ay,this)};
Rs=function(a){a=a.b;return a.requestAnimationFrame||a.webkitRequestAnimationFrame||a.mozRequestAnimationFrame||a.oRequestAnimationFrame||a.msRequestAnimationFrame||null};
Ss=function(a){a=a.b;return a.cancelAnimationFrame||a.cancelRequestAnimationFrame||a.webkitCancelRequestAnimationFrame||a.mozCancelRequestAnimationFrame||a.oCancelRequestAnimationFrame||a.msCancelRequestAnimationFrame||null};
Vs=function(a){a=ma(a);delete Ts[a];bc(Ts)&&Us&&Us.stop()};
Xs=function(){Us||(Us=new fe(function(){Ws()},20));
var a=Us;a.isActive()||a.start()};
Ws=function(){var a=E();Ob(Ts,function(b){Ys(b,a)});
bc(Ts)||Xs()};
Zs=function(){hd.call(this);this.b=0;this.endTime=this.startTime=null};
$s=function(a,b,c,d){Zs.call(this);if(!da(a)||!da(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};
Ys=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;at(a,a.progress);1==a.progress?(a.b=0,Vs(a),a.zc(),a.ih()):a.Za()&&a.Ul()};
at=function(a,b){ha(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]};
bt=function(a,b){lc.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};
ct=function(a){return Math.pow(a,3)};
dt=function(a){return 3*a*a-2*a*a*a};
et=function(a){this.b="number"==typeof a?0<a?1:0>a?-1:null:null==a?null:a?-1:1};
ft=function(a,b){var c=a.g(b,void 0);return-1==(0==c?a.b:c)?"rtl":"ltr"};
gt=function(){this.b=[];this.g=cq};
ht=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};
jt=function(a){return a.b.slice(it(a,0x7ffffffffffff),a.b.length)};
it=function(a,b){var c=Ab(a.b,function(a){return b-a.start||1});
return 0>c?-(c+1):c};
kt=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};
lt=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.O=a;this.M=b;this.H=c;this.K=d;this.L=new fe(this.qe,250,this);H(this,this.L);this.B=new fe(this.qe,0,this);H(this,this.B);this.g=[];this.b=new gt};
mt=function(a){a.A=!0;a.qe()};
nt=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};
ot=function(a,b){var c=[];if(!b.length)return c;b.sort(cq);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};
pt=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};
qt=function(a){return da(a)&&a.length?a[0]:a};
rt=function(a){var b=/.+/;return w(a)&&null!=b&&null!=a&&a.match(b)?a:""};
tt=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};
ut=function(a){return w(a)?a:""};
vt=function(a,b,c){for(var d in b)if(b[d]==a)return a;return c};
wt=function(a,b){return"true"==a||"false"==a?"true"==a:b};
xt=function(a,b){return w(a)?(0,window.parseFloat)(a):b};
zt=function(a,b,c,d,e){a=(0,window.parseFloat)(a);if(null!=a&&!(0,window.isNaN)(a)){if(d)return $e(a,b,c);if(a>=b&&a<=c)return a}return e};
At=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};
Bt=function(a,b){if(null==a)return null;if(ea(a)){var c=[];F(a,function(a){(a=b(a))&&c.push(a)});
return c}var d=b(a);return d?[d]:[]};
Ct=function(a){function b(a){return null!=a&&!(0,window.isNaN)(a)}
return(a=a?new jg((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};
Dt=function(a){function b(a){return ke(a.split(/ +/),function(a){return""!=a})}
return null==a?[]:b(a)};
Et=function(a,b,c,d){this.value=a;this.target=b;this.showLinkIcon=c;this.Zi=d};
Gt=function(a){if(!a)return null;var b=ut(a.value);if(!b)return null;var c=vt(a.target,Ft,"current");return null==c?null:new Et(b,c,wt(a.show_link_icon,!0),null!=a.pause_on_navigation?a.pause_on_navigation:!0)};
Ht=function(a){return a.value?a.value:null};
Jt=function(a){var b;(b=a)&&!(b=1<a.length?"/"==a.charAt(0)&&"/"!=a.charAt(1):"/"==a)&&(b=It(a),b="com"==b[0]&&"youtube"==b[1]||"be"==b[0]&&"youtu"==b[1]);return b?-1==a.indexOf("/redirect?"):!1};
It=function(a){a=a.replace(/^(https?:)?\/\//,"");a=a.split("/",1);return!a||1>a.length||!a[0]?[]:a[0].toLowerCase().split(".").reverse()};
Kt=function(a){a=Ht(a);if(!a)return null;a=a.replace(/https?:\/\//g,"");var b;(b=!Jt(a))||(b=Ig(Hg(a)[5]||null)||"",b=b.split("/"),b="/"+(1<b.length?b[1]:""),b="/watch"!=b);if(b)return null;b=Oj(a);if(!b||!b.v)return null;if(b.t)return pt(b.t);a=a.split("#",2);return!a||2>a.length?null:(a=Mj(a[1]))&&a.t?pt(a.t):-1};
Lt=function(a){a=Ht(a);a=a.replace(/https?:\/\//g,"");return Jt(a)?(a=Oj(a))&&a.v?a.v:null:null};
Nt=function(a,b,c,d){(a=Ht(a))?Jt(a)?d=Rj(a,{feature:"iv",src_vid:c,annotation_id:b}):(a?(b=It(a),b="com"==b[0]&&"google"==b[1]&&"plus"==b[2]):b=!1,b&&d?(d=pa(Mt,d.pageId,d.Pb),a=new M(a),ch(a,d(a.o)),d=a.toString()):d=a):d=null;return d};
Mt=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};
Ot=function(a,b){return b?b:Jt(a)?"current":"new"};
Pt=function(a,b){return a.replace(/(\[|%5B)([a-zA-Z0-9_]+)(\]|%5D)/g,function(a,d,e){try{var f=ec(b,e),f=f.toString();if(!B(C(f)))return(0,window.encodeURIComponent)(f).replace(/%2C/g,",")}catch(k){}return a})};
Rt=function(a){this.g=a;this.b=0;this.B=window.NaN;this.o=0;this.sa=[];this.A=Qt(this.g);this.C=this.D=0};
St=function(a){a.A.startTime=a.o;a.A.endTime=a.b;a.sa.length&&Za(a.sa).isEmpty()?a.sa[a.sa.length-1]=a.A:a.sa.length&&a.A.isEmpty()||a.sa.push(a.A);a.D+=a.b-a.o;a.A=Qt(a.g);a.o=a.b};
Tt=function(a){return a.D+a.g.g()-a.o};
Ut=function(a){a.sa.length&&a.b==a.o||St(a);var b=a.sa;a.sa=[];return b};
Vt=function(a,b,c){c-=a.B;return b==a.b&&.5<c};
Wt=function(a,b){this.b=b;this.o=!1;this.videoData=a};
Xt=function(a,b,c){Wt.call(this,b,c);this.A=a};
Yt=function(a,b){return new Dd(function(c,d){b.fb=function(a){Uj(a)?c(a):d(a)};
b.onError=d;b.Wb=d;Zj(a,b)})};
Zt=function(a,b,c,d){function e(d,l,m){return Sd(d,function(d){return 0>=l||403===d.status?Id(d):f(m).then(function(){return e(Yt(a,b),l-1,Math.pow(2,c-l+1)*m)})})}
function f(a){return new Dd(function(b){(0,window.setTimeout)(b,a)})}
return e(Yt(a,b),c-1,d)};
$t=function(){var a=Hj("yt-player-volume")||{},b=a.volume;return{volume:(0,window.isNaN)(b)?100:$e(Math.floor(b),0,100),muted:!!a.muted}};
au=function(){return Hj("yt-player-quality")||"auto"};
bu=function(a){Gj("yt-player-qoe-failed-count",a,2592E3)};
cu=function(){return Hj("yt-player-qoe-failed-count")||0};
eu=function(a){G.call(this);this.b=a;this.g={};this.M=window.NaN;this.C=new fe(this.eC,3E4,this);H(this,this.C);this.o="N";this.B=0;this.O=window.NaN;this.S=0;this.G=this.ca="";this.$=-1;this.F=this.H=0;this.L=this.D=!1;this.da=[];this.A=null;(a=window.navigator.getBattery?window.navigator.getBattery():null)&&a.then&&a.then(x(function(a){this.A=a},this));
this.K=(this.b.b.experiments.b("html5_disable_qoe_percentage")||0)>Math.floor(100*Math.random());this.b.b.experiments.aa("html5_qoe_unstarted_in_initialization")&&du(this,0,"vps",["N"])};
du=function(a,b,c,d){var e=a.g[c];e||(e=[],a.g[c]=e);e.push(b.toFixed(3)+":"+d.join(":"))};
gu=function(a,b){var c=0<=b?b:fu(a.b),d=a.b.C();if(!(0,window.isNaN)(a.ba)&&!(0,window.isNaN)(d.o)){var e=d.o-a.ba;0<e&&du(a,c,"bwm",[e,(d.C-a.fa).toFixed(3)])}a.ba=d.o;a.fa=d.C;(0,window.isNaN)(d.b)||du(a,c,"bwe",[d.b.toFixed(0)]);(0,window.isNaN)(d.g)||(e=d.g,d.A<e&&(e=d.A),a.O!=e&&(du(a,c,"bh",[e.toFixed(3)]),a.O=e));a.A&&du(a,c,"bat",[a.A.level,a.A.charging?"1":"0"]);e=a.b.getVisibilityState();a.$!=e&&(du(a,c,"vis",[e]),a.$=e);du(a,c,"cmt",[a.b.g()]);0<d.B&&du(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.yb&&(a.g.acc=[a.b.videoData.yb.join(":")])};
iu=function(a){var b={event:"streamingstats"};if(a.b.videoData.g){b.fmt=hu(a.b.videoData.g);var c=a.b.videoData.B;c&&hu(c)!=b.fmt&&(b.afmt=hu(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.na;b.fexp=a.b.b.experiments.experimentIds.toString();b.cl=a.b.b.Da;a.b.b.adFormat&&(b.adformat=a.b.b.adFormat);a.b.videoData.za&&(b.live=a.b.videoData.L?"dvr":"live");b.html5="1";return b};
ju=function(a,b){var c=a.b.b.experiments;c.aa("html5_ajax_qoe")?Yt(b,{}).then(a.Kr,a.Jr,a):c.aa("html5_ajax_qoe_retry")?Zt(b,{},3,500).then(a.Kr,a.Jr,a):Tp(b)};
ku=function(a){if(a.b.b.experiments.aa("html5_flush_long_qoe")){var b=0,c;for(c in a.g)b+=c.length+bf(a.g[c],function(a,b){return a+b.length},0);
1500<b&&(new fe(a.qg,0,a)).start()}};
nu=function(a){a.b.b.experiments.aa("html5_qoe_unstarted_in_initialization")?fu(a.b):du(a,fu(a.b),"vps",["N"]);a.b.videoData.cf&&lu(a,"preload");a.b.videoData.Na&&mu(a,"reload",a.b.videoData.ef);a.b.videoData.Ja&&lu(a,"monitor");a.b.videoData.za&&lu(a,"live");a.b.videoData.Ln&&F(a.b.videoData.Ln.split(","),x(function(a){mu(this,"ytrexp",a)},a));
a.M=Si(x(a.qg,a),1E4);a.C.start()};
ou=function(a,b,c,d){var e=a.b.g();c=[c,e.toFixed(3)];d&&c.push(d);du(a,b,"error",c)};
lu=function(a,b){var c=a.g.cat||[];c.push(b);a.g.cat=c};
mu=function(a,b,c,d){var e=a.g.ctmp||[],f=-1!=a.da.indexOf(b);f||a.da.push(b);d&&f||(e.push(b+":"+c),a.g.ctmp=e)};
ru=function(a,b,c,d){this.Oa=b;this.segments=[];this.experimentIds=[];this.H=this.Ia=this.G=this.ia=this.Da=this.autoplay=this.autonav=!1;this.$="yt";this.K=this.g=this.B=null;this.ba=!1;this.A="watchtime"==c;this.S="playback"==c;this.Ba="delayplay"==c;this.D="atr"==c;this.Ha="engage"==c;this.fa=!1;this.da=this.D?"/api/stats/"+c:"//"+b.Xd+"/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.Sa=d.volume,d.at&&(this.adType=d.at)),
d.autonav&&(this.autonav=d.autonav));this.adFormat=b.adFormat;b.experiments.aa("legacy_autoplay_flag")&&(this.autoplay=b.ca);this.ab=b.ra;this.bb=gc(b.o);this.oa=b.ga;this.kb=b.b;this.experimentIds=b.experiments.experimentIds;this.ga=b.oa;this.$=b.na;this.region=b.region;this.Mb=b.Da?b.Da.toString():"";this.userAge=b.userAge;this.userGender=b.userGender;this.Xa=pu();this.fa=b.experiments.g;this.C=a.oauthToken||this.C;this.autoplay=qu(this.Oa,a,this.G);this.autonav=a.ed||this.autonav;this.K=a.Dd;this.clientPlaybackNonce=
a.clientPlaybackNonce;this.O=a.vssCredentialsToken;this.ra=a.Jg;this.F=a.Bd;this.ea=a.ea;a.g&&(this.jb=hu(a.g),a.B&&hu(a.B)!=this.jb&&(this.M=hu(a.B)));this.H=a.oa;this.rb=a.Cd;a.za&&(this.Na=a.L?"dvr":"live");this.yb=a.Mg;this.playbackId=a.playbackId;this.eventId=a.eventId;this.playlistId=a.Lg||a.playlistId;this.na=a.kb;this.va=a.rb;this.Tb=a.Yn;this.subscribed=a.subscribed;this.videoId=a.videoId;this.videoMetadata=a.videoMetadata;this.visitorData=a.visitorData;this.osid=a.osid;this.zb=a.Vw;this.referrer=
a.referrer;this.ka=a.df||a.Xn;this.searchQuery=a.searchQuery};
tu=function(a,b){if(a.D)return null;var c=a.C&&Tj(),d=a.fa&&!!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,zc:b}};
uu=function(a,b,c,d){b.cmt=b.len;b.lact="0";d=d();d=d.toFixed(3);b.rt=(1*d).toString();a=Sg(a,b);c?Zj(a,c):Tp(a)};
wu=function(a){var b={ns:a.$,el:a.kb,cpn:a.clientPlaybackNonce,docid:a.videoId,ver:2,referrer:a.referrer,cmt:a.b(a.F),plid:a.playbackId,ei:a.eventId,fmt:a.jb,fs:a.G?"1":"0",rt:a.b(a.Ta),of:a.zb,adformat:a.adFormat,content_v:a.ab,euri:a.oa,subscribed:a.subscribed,lact:a.Xa,live:a.Na,cl:a.Mb,mos:a.Ja,q:a.searchQuery,osid:a.osid,state:a.Db,vm:a.videoMetadata,volume:a.Sa};qa(b,a.bb);a.autonav&&(b.autonav="1");if(a.Oa.experiments.aa("legacy_autoplay_flag"))a.autoplay&&(b.autoplay="1");else if(a.autoplay||
a.H)b.autoplay="1";a.ia&&(b["final"]="1");a.H&&(b.splay="1");a.ea&&(b.delay=a.ea);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.ca)&&(b.len=a.b(a.ca));!a.A&&0<a.experimentIds.length&&(b.fexp=a.experimentIds.toString());null!=a.g&&(b.rtn=a.b(a.g));a.ka&&(b.feature=a.ka);a.playlistId&&(b.list=a.playlistId);a.na&&(b.ctrl=a.na);a.va&&(b.ytr=a.va);a.Tb&&(b.ssrt="1");a.M&&(b.afmt=a.M);a.A?(b.idpj=a.rb,b.ldpj=a.yb,null!=a.B&&(b.rti=a.b(a.B))):
p(a.adType)&&(b.at=a.adType);(a.S||a.Ba)&&a.K&&(b.tst=a.K);a.A&&(b.st=vu(a,N(a.segments,function(a){return a.startTime})),b.et=vu(a,N(a.segments,function(a){return a.endTime})));
Rh(a.segments,function(a){return 0!=a.visibilityState})&&(b.vis=vu(a,N(a.segments,function(a){return a.visibilityState})));
Rh(a.segments,function(a){return 1!=a.playbackRate})&&(b.rate=vu(a,N(a.segments,function(a){return a.playbackRate})));
Rh(a.segments,function(a){return"-"!=a.wk})&&(b.cc=N(a.segments,function(a){return a.wk}).join(","));
if(Rh(a.segments,function(a){return!!a.rk})){var c="au";
a.S&&(c="au_d");b[c]=N(a.segments,function(a){return a.rk}).join(",")}Tj()&&a.O&&(b.ctt=a.O,b.cttype=a.ra);
a.Ha&&(b.etype=p(a.o)?a.o:0);return b};
vu=function(a,b){return N(b,a.b).join(",")};
xu=function(a){G.call(this);this.b=a;this.g=new eu(a);H(this,this.g);this.o=new Rt(a);this.C="paused";this.D=window.NaN;this.H=[10,10,10,40];this.K=this.G=0;this.O=this.S=this.M=this.L=this.A=!1;this.B=window.NaN;this.ba=new Xt(this.o,this.b.videoData,this.b.b)};
yu=function(a,b,c){var d=fu(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=Ri(x(a.ca,a,c,b),d);return c};
Au=function(a,b){var c=zu(a.b);qa(c,{state:a.C});c=new ru(a.b.videoData,a.b.b,b,c);c.F=a.b.g();a.b.videoData.za||(c.ca=a.b.B());c.Ta=fu(a.b);c.segments=[Qt(a.b)];return c};
Bu=function(a,b){var c=Au(a,"watchtime");c.segments=b;c.F=a.o.b;return c};
Cu=function(a){a.o.update();return Bu(a,Ut(a.o))};
Fu=function(a){a.b.videoData.remarketingUrl&&!a.S&&(Du(a,a.b.videoData.remarketingUrl),a.S=!0);a.b.videoData.ppvRemarketingUrl&&!a.O&&(Du(a,a.b.videoData.ppvRemarketingUrl),a.O=!0);Eu(a)};
Ju=function(a,b){if(!a.isDisposed()){R(b.state,2)?(a.C="paused",0<Hu(b,2)&&a.A&&Cu(a).send()):R(b.state,8)?(a.C="playing",a.A&&(0,window.isNaN)(a.D)&&yu(a,!1)):a.C="paused";var c=a.g,d=b.state,e=fu(c.b),f;f=b.state;if(R(f,128))f="ER";else if(R(f,16)||R(f,32))f="S";else{var k=Iu[Eq(f)];"B"==k&&R(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.L&&10<=c.H&&180>=c.F)){c.b.D();if(!c.isDisposed()&&!c.K){var l=iu(c);l.qoealert="1";l=Sg(c.b.b.Dd,
l);ju(c,l)}c.L=!0}"B"!=k||"PL"!=c.o&&"PB"!=c.o||(c.D=!0);c.B=e}"B"==f&&"PL"==c.o?gu(c,e):du(c,e,"cmt",[c.b.g().toFixed(3)]);du(c,e,"vps",[f]);c.o=f}R(d,128)&&ou(c,e,d.b.errorCode,d.b.errorDetail);(R(d,2)||R(d,128))&&c.qg(e);ku(c);a.B&&R(b.state,128)&&(a.F("error-100"),Ti(a.B))}};
Ku=function(a){a.B=Si(x(a.F,a,"heartbeat"),3E4)};
Eu=function(a){a.b.videoData.C.eventLabel=a.b.b.b;a.b.videoData.C.playerStyle=a.b.b.g;a.b.videoData.zd&&(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.zd)};
Du=function(a,b,c){a.b.b.experiments.g&&a.b.videoData.visitorData&&Sj(b)?Zj(b,{zc:c,headers:{"X-Goog-Visitor-Id":a.b.videoData.visitorData}}):Tp(b,c)};
Lu=function(a){this.Z=a;this.b={}};
Qu=function(a,b,c,d){if(b){var e=Mu(a,b);a.b[b]=e["p-time"];e["iv-event"]=e.link||e["l-class"]||e["link-id"]?2:7;b=rb(c||[]);30==e["a-type"]&&(c=Nu(a,e["a-id"],"cta_annotation_shown"))&&b.push(c);Ou(a,e,Pu(b,d))}};
Ru=function(a,b,c,d,e,f){if(b){var k=Mu(a,b);k["iv-event"]=3;k["i-time"]=a.b[b]||"";jc(k,d||{});b=rb(e||[]);30==k["a-type"]&&(d=Nu(a,k["a-id"],"cta_annotation_clicked"))&&b.push(d);Ou(a,k,b,c,f)}};
Su=function(a,b){if(b){var c=Mu(a,b);c["iv-event"]=4;c["i-time"]=a.b[b]||"";var d=[];if(30==c["a-type"]){var e=Nu(a,c["a-id"],"cta_annotation_closed");e&&d.push(e)}Ou(a,c,d)}};
Pu=function(a,b){return b?N(a,pa(function(a,b){return Pt(b,a)},b||{})):a};
Nu=function(a,b,c){a=a.Z.getVideoData();if(a.cp){if((c=a.cp[c])&&Tu.test(c))return a=ua("[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.na)return Qj(a.na,{label:c,value:"a_id="+b});return""};
Ou=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++;
Tp(a,k)});
e&&(f++,0!=e&&a.Z.Eg(e,k));Uu(a,b,k)};
Mu=function(a,b){var c={};if(b){var d=new fh(b);F(d.Va(),function(a){c[a]=(0,window.escape)(d.get(a,""))})}c["p-time"]=a.Z.getCurrentTime().toFixed(2);
c.ps=T(a.Z).g;return c};
Vu=function(a,b,c,d){d=Mu(a,d);d["iv-event"]=b;d["a-id"]||(d["a-id"]="card:drawer");d["a-type"]=51;Ou(a,d,c)};
Wu=function(a,b,c,d){c&&(c=Mu(a,c),c["iv-event"]=b,Ou(a,c,d))};
Uu=function(a,b,c){Xu(a.Z,"iv",b,c)};
Yu=function(a,b){this.fa=a;this.context=b;this.Jm=!1;this.H=0};
Zu=function(a,b,c,d,e,f){b=new aq(b,c,{id:d});b.namespace="iv-module";e&&(b.b||(b.b=new qg)).subscribe("onEnter",e,a);f&&(b.b||(b.b=new qg)).subscribe("onExit",f,a);a.context.g.tb([b])};
$u=function(a){return E()-a.H};
av=function(a,b,c,d,e,f,k){var l=x(function(){k&&this.context.g.pauseVideo();var a=Oj(b),d=null;"ei"in a&&(d={ei:a.ei},b=Yg(b,"ei"));Uq(b,d);Vq(b,"current"==c?"_top":void 0)},a);
"new"==c&&(l(),l=null);var m={};m.interval=$u(a);Ru(a.context.logger,d,l,m,e,f)};
bv=function(a,b){da(b)||(b=[b]);var c=N(b,function(a){return w(a)?a:a.property+" "+a.duration+"s "+a.timing+" "+a.delay+"s"});
is(a,"transition",c.join(","))};
cv=function(a,b,c,d){G.call(this);this.g=a;c||a.pa();this.B=null==d?b:d;this.b=null;this.o=new fe(this.A,0,this);H(this,this.o)};
ev=function(a){3!=a.b&&(1==a.b||2==a.b?(a.g.pa(),a.b=null,a.o.stop()):a.g.g&&(dv(a,!0),a.b=3,a.o.start(a.B)))};
dv=function(a,b){var c=a.g.element;b?c.setAttribute("aria-hidden",!0):c.removeAttribute("aria-hidden")};
fv=function(a,b){S.call(this,["div","ytp-cards-teaser",["div","ytp-cards-teaser-box"],["div","ytp-cards-teaser-text",["span","ytp-cards-teaser-label","{{text}}"]]]);this.Z=a;this.F=new cv(this,250,!1,250);H(this,this.F);this.K=b;this.b=null;this.H=new fe(this.EC,300,this);this.G=new fe(this.CC,2E3,this);this.L=new et(null);this.B=[];this.A=this.o=this.D=this.C=null;this.U(b.element,"mouseover",this.Gu);this.U(b.element,"mouseout",this.Ne);this.U(a,"cardsteasershow",this.OD);this.U(a,"cardsteaserhide",
this.Lh);this.U(a,"cardstatechange",this.Ms);this.U(a,"presentingplayerstatechange",this.Ms);this.P("click",this.XH);this.P("mouseenter",this.VH);this.P("mouseleave",this.WH)};
gv=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};
hv=function(a,b){if(b){var c=b.Ck?"":["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,gv(b.je)]];a.o=new S(c);a.o.Ca(a.element);c=qf("ytp-cards-hover-card",void 0);a.U(c,"click",pa(a.Wq,b));a.U(c,"mouseenter",a.mz);a.U(c,"mouseleave",a.nz)}};
jv=function(a,b){a.wa("text",b.teaserText);a.element.setAttribute("dir",ft(a.L,b.teaserText));a.F.show();hv(a,b.Di);b.Di&&b.Di.Ck&&J(a.element,"ytp-cards-combined-teaser");a.C=new fe(function(){J(this.Z.Ea(),"ytp-cards-teaser-shown")},0,a);
a.C.start();iv(a.K,!1);a.b=new fe(a.Lh,580+b.durationMs,a);a.b.start();b.ix&&J(a.element,"ytp-cards-auto-open-hover-card");b.xA&&(new fe(function(){J(this.Z.Ea(),"ytp-cards-button-teaser-merge")},0,a)).start();
a.B.push(a.P("mouseover",a.Gu,a));a.B.push(a.P("mouseout",a.Ne,a))};
kv=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={$p:a.impression,click:a.click,close:a.close,rF:a.teaser_impression,wm:a.teaser_click}};
lv=function(a,b,c){kv.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.je=b.meta_info;this.url=Gt({pause_on_navigation:b.pause_on_navigation,target:b.target||"new",value:b.url})};
mv=function(a,b,c){kv.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=Gt({pause_on_navigation:b.pause_on_navigation,target:b.target||"new",value:b.url});this.g=null;b.signin_url&&(this.g=Gt({target:"current",value:b.signin_url}));this.D=b.signin_title||null;this.C=b.signin_message||null};
nv=function(a,b,c){mv.call(this,a,b,c);this.F=b.ypc_flow_type;this.A=b.innertube_request_params};
pv=function(a,b){return ov&&a.dataset?b in a.dataset?a.dataset[b]:null:a.getAttribute("data-"+String(b).replace(/([A-Z])/g,"-$1").toLowerCase())};
qv=function(a,b,c){this.b=a;this.g=b;this.A=c;this.o=new et(null)};
tv=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",rv(a,"h2","",b.title),c]],d=new S(d);F(pf("iv-click-target",d.element),function(a){this.b.b.P(a,"click",x(this.HC,this,b))},a);
return d};
vv=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"],rv(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"]=O("YTP_DRAWER_POLL_TITLE_ARIA_LABEL",{POLL_TITLE:b.title}));var e=["iv-card","iv-card-poll"],d=[["div","iv-card-content",rv(a,"h2",d,b.title),["form","",["fieldset","",c]]]];b.o&&(e.push("iv-card-unavailable"),d.push(["div",["iv-card-sign-in"],["h2","",O("YTP_DRAWER_POLL_SIGNIN_TITLE")],["a",["iv-card-sign-in-button","iv-button"],{href:Ht(b.o)},["span",["iv-button-content"],O("YTP_SIGN_IN")]]]));e=new S(["div",e].concat(d));d=e.element;uv(b,d);Os(a.b.b,d,pa(a.eD,b),
a);F(pf("iv-card-poll-choice-input",d),function(a){this.b.b.P(a,"focus",pa(this.jr,!0));this.b.b.P(a,"blur",pa(this.jr,!1))},a);
b.o&&(d=qf("iv-card-sign-in-button",d),a.g(d,b.o,b.id,b.$a,b.b.click,5));return e};
Av=function(a,b,c,d){var e=wv(a,b.url,b.id),f=b.displayDomain?["div","iv-card-image-text",b.displayDomain]:"",k=xv(a,b),l=["iv-card"];b.g&&l.push("iv-card-unavailable");e=["div",l,["a","iv-click-target",{href:e},yv(b.imageUrl,f),["div","iv-card-content",rv(a,"h2",void 0,b.title),k]]];b.g&&(e=e.concat([["div",["iv-card-sign-in"],rv(a,"h2",void 0,b.D||""),["p","",b.C],["a",["iv-card-sign-in-button","iv-button"],{href:Ht(b.g)},rv(a,"span","iv-button-content",O("YTP_SIGN_IN"))]]]));e=new S(e);zv(a,e,
b,c,d);return e};
Cv=function(a,b,c){var d=wv(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},yv(b.D,e?["div","iv-card-image-text",e,b.priceText]:""),["div","iv-card-content",["h2","iv-card-primary-link",b.title],Bv(a,b)]]];c=new S(c);zv(a,c,b);return c};
Dv=function(a,b){return b.customMessage?rv(a,"div","iv-card-message",b.customMessage):""};
yv=function(a,b){var c=["div","iv-card-image",{style:"background-image: url("+a+");"}];b&&c.push(b);return c};
Bv=function(a,b){if(!b.je||0==b.je.length)return"";var c=["ul","iv-card-meta-info"];F(b.je,function(a){c.push(rv(this,"li","",a))},a);
return c};
rv=function(a,b,c,d){c?w(c)?c={"class":c}:da(c)&&(c={"class":c.join(" ")}):c={};c.dir=ft(a.o,d);return[b,c,d]};
xv=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=ft(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};
uv=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=qf(a.A+"-"+e.index.toString(),b),e=e.count/c;null==a.g&&(e=0);K(f.getElementsByTagName("label")[0],"iv-card-poll-choice-checked",a.g==d);f.getElementsByTagName("input")[0].checked=a.g==d;var k=Math.floor(100*e).toFixed(0),l=qf("iv-card-poll-choice-percent",f);Rf(l,O("YTP_DRAWER_POLL_PERCENT",{PERCENT:k}));f=qf("iv-card-poll-result-bar",f);is(f,"transform","scaleX("+e.toFixed(2)+")")}K(b,"iv-card-poll-voted",null!=a.g);K(b,"iv-card-poll-expanded",
null!=a.g&&1<a.choices.length)};
Ev=function(a,b,c,d){d?(c&&a.b.videoData.za||a.b.g.pauseVideo(),a.b.g.Qa()&&br(a.b.g),Ru(a.b.logger,b.$a,d,void 0,b.b.click,5)):a.A(b.url,b.id,b.$a,b.b.click,5)};
wv=function(a,b,c){return b?Nt(b,c,a.b.videoData.videoId,a.b.o):null};
zv=function(a,b,c,d,e){c.g&&Fv(a,pf("iv-card-sign-in-button",b.element),c,c.g,e);Fv(a,pf("iv-click-target",b.element),c,c.url,d)};
Fv=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.P(a,"click",b)}else this.g(a,d,c.id,c.$a,c.b.click,5)},a)};
Gv=function(a,b,c){kv.call(this,a,b,c);this.title=b.title;this.chapters=b.chapters};
Hv=function(a,b,c){kv.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.je=b.meta_info;this.url=Gt({pause_on_navigation:b.pause_on_navigation,target:b.target||"new",value:b.url})};
Iv=function(a,b,c){kv.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=Gt({target:"current",value:b.signin_url}));this.C=b.hasOwnProperty("xsrf_token")?b.xsrf_token:null};
Kv=function(a,b,c){mv.call(this,a,b,c);this.offers=[];a=b.offers||[];for(b=0;b<a.length;b++)this.offers.push(new Jv(a[b]))};
Jv=function(a){this.merchant=C(a.merchant);this.price=C(a.price)};
Lv=function(a,b,c){mv.call(this,a,b,c);this.F=b.ypc_item_type;this.A=b.ypc_item_id;this.G=b.ypc_flow_type};
Mv=function(a,b,c){kv.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.je=b.meta_info;this.A=!!b.is_live_now;this.url=Gt({pause_on_navigation:b.pause_on_navigation,target:b.target||"new",value:b.url})};
Nv=function(a,b,c){kv.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.je=b.meta_info;this.A=!!b.is_paygated;this.C=!!b.user_has_entitlement;this.url=Gt({target:b.target||"new",value:b.url})};
Ov=function(a,b,c){Yu.call(this,b,c);this.Z=a;this.Mi=this.S=this.A=this.M=this.ba=!1;this.ca=null;this.vk=new fe(v,c.o.useTabletControls?4E3:3E3);this.O=new fe(v);this.g=new qv(c,x(this.vg,this),x(this.Pi,this));a=["div","iv-drawer",["div","iv-drawer-header",{"aria-role":"heading",tabindex:"0"},O("YTP_DRAWER_HEADER_TEXT_2"),["button",["iv-drawer-close-button","ytp-button"],{"aria-label":O("YTP_DRAWER_CLOSE_BUTTON_ARIA_LABEL")}]],["div","iv-drawer-content"]];this.F=new S(a);this.C=this.F.element;
this.L=new cv(this.F,330);this.$=qf("iv-drawer-header",this.C);this.gd=qf("iv-drawer-content",this.C);a=["iv-drawer-teaser"];this.g.b.o.experiments.qx&&a.push("iv-exp-cards-teaser-prominent");a=["div",a,["div","iv-drawer-teaser-box"],["div","iv-drawer-teaser-text"],["button",{title:O("YTP_DRAWER_HEADER_TEXT_2"),"aria-label":O("YTP_CARDS_BUTTON_ARIA_LABEL")},["span"]]];this.da=(new S(a)).element;qf("iv-drawer-teaser-text",this.da);this.o=[];this.B=this.G=this.b=null;this.D=[];Zu(this,0,1E3*c.videoData.lengthSeconds,
"",this.Xw,this.Gx)};
caa=function(a,b){var c=b&&b.data&&b.data.card_type;if(c&&Pv[c]){c=new Pv[c](b.id,b.data,b.$a);a.ba||(je(a.ma(),["html5-stop-propagation","iv-drawer-manager"]),Qv(a.Z,a.C,5),Rv(a),a.ba=!0);Sv(a,c.id);var d=aaa(a,c);if(d){var e={cb:c,xk:d.element,pq:!1,Qi:!1},f=baa(a,e);ub(a.o,f,0,e);d.Ca(a.gd,f);a.fi();c.B?Zu(a,c.startMs,0x8000000000000,c.id,pa(a.eF,e)):(d=1E3*a.context.g.getCurrentTime(),5E3>d&&d>c.startMs&&a.pm(e,!1),Zu(a,c.startMs,c.startMs+1,c.id,pa(a.pm,e,!1)),Tv(a))}}};
daa=function(a,b){b.data.autoOpenMs&&Zu(a,b.data.autoOpenMs,0x8000000000000,"",a.kH);b.data.autoCloseMs&&Zu(a,b.data.autoCloseMs,0x8000000000000,"",a.li)};
Sv=function(a,b){var c=eaa(a,b);c&&(c==a.b&&(a.b=null),a.Z.Et(c.cb.id),Hf(c.xk),ob(a.o,c),a.fi(),Tv(a))};
Vv=function(a,b,c,d){if(!a.A){a.L.show();a.G=new fe(function(){J(this.context.g.Ea(),"ytp-iv-drawer-open")},0,a);
a.G.start();a.A=!0;a.H=E();Vu(a.context.logger,7,void 0,d&&d.cb?d.cb.$a:void 0);var e={TRIGGER_TYPE:b};F(a.o,function(a){a.Qi||(a.Qi=!0,Qu(this.context.logger,a.cb.$a,a.cb.b.$p,e))},a);
Uv(a.Z);c&&(a.B=new fe(function(){var a;a:{var b=window.document;try{a=b&&b.activeElement;break a}catch(c){}a=null}this.K=a;this.$.focus()},330,a),a.B.start())}};
Wv=function(a,b){return a.context.o.experiments.aa(b)};
Rv=function(a){var b=qf("iv-drawer-close-button",a.C);a.context.b.P(b,"click",a.xx,a);a.context.b.P(a.gd,"touchend",function(){this.vk.start()},a);
a.context.b.P(a.gd,"scroll",a.Lx,a);a.ca=hm(a.gd,"mousewheel",x(a.lH,a));a.context.A.subscribe("onHideControls",function(){this.Mi=!0},a);
a.context.A.subscribe("onShowControls",function(){this.Mi=!1},a);
a.context.A.subscribe("onVideoAreaChange",function(){this.Mi=ie(this.Z.Ea(),"ytp-autohide")},a);
a.D.push(cj("iv-teaser-shown",a.wA,a));a.D.push(cj("iv-teaser-clicked",a.uA,a));a.D.push(cj("iv-hover-card-clicked",a.tA,a));Wv(a,"teaser_on_button_hover")&&a.D.push(cj("iv-button-mouseover",a.mF,a));Wv(a,"log_teaser_hover")&&a.D.push(cj("iv-teaser-mouseover",a.vA,a))};
aaa=function(a,b){switch(b.type){case "simple":return Av(a.g,b);case "collaborator":var c=a.g,d=["div",["iv-card","iv-card-channel"],["a",["iv-click-target","g-hovercard"],{href:wv(c,b.url,b.id),"data-ytid":b.channelId},yv(b.profileImageUrl),["div","iv-card-content",Dv(c,b),["h2","iv-card-primary-link",b.title],Bv(c,b)]]],d=new S(d);zv(c,d,b);return d;case "donation":return c=a.g,d=x(c.NB,c,b),Av(c,b,d,d);case "episode":return Cv(a.g,b,"iv-card-episode");case "movie":return Cv(a.g,b,"iv-card-movie");
case "navigation":return tv(a.g,b);case "playlist":return c=a.g,d=["div",["iv-card","iv-card-playlist"],["a","iv-click-target",{href:wv(c,b.url,b.id)},yv(b.o,["div","iv-card-image-overlay",["span","iv-card-playlist-video-count",b.playlistVideoCount.toString()]]),["div","iv-card-content",Dv(c,b),rv(c,"h2","iv-card-primary-link",b.title),Bv(c,b)]]],d=new S(d),zv(c,d,b),d;case "poll":return vv(a.g,b);case "productListing":var c=a.g,d=wv(c,b.url,b.id),e=!gb(b.offers),f=["iv-card"],k="",l=xv(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",O("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},rv(c,"h2",k,b.title),l]]];d=new S(d);f=Cf("span");Rf(f,O("YTP_SPONSORED_PRODUCT_INFO"));d.Ob(f,"adInfo");zv(c,d,b);return d;case "tip":return c=a.g,d=x(c.RD,c,b),Av(c,b,d,d);case "video":return c=a.g,d=wv(c,b.url,b.id),f=b.videoDuration?["span","iv-card-video-duration",b.videoDuration]:"",k=b.A?["span",["yt-badge","yt-badge-live"],O("YTP_LIVE_NOW")]:"",d=["div",["iv-card","iv-card-video"],["a",
"iv-click-target",{href:d},yv(b.o,f),["div","iv-card-content",Dv(c,b),rv(c,"h2","iv-card-primary-link",b.title),Bv(c,b),k]]],d=new S(d),zv(c,d,b),d}return null};
baa=function(a,b){if(0==a.o.length)return 0;var c=cb(a.o,function(a){return b.cb.startMs>a.cb.startMs||b.cb.startMs==a.cb.startMs&&b.cb.timestamp>=a.cb.timestamp?!0:!1});
return-1==c?0:c+1};
faa=function(a){return a.b?"productListing"==a.b.cb.type:Qk(a.o,function(a){return"productListing"==a.cb.type})};
Tv=function(a){K(a.Z.Ea(),"ytp-cards-shopping-active",faa(a))};
Xv=function(a,b){if(a.F.g){var c=new $s([0,a.gd.scrollTop],[0,b.xk.offsetTop],600,dt);a.context.b.P(c,"animate",function(a){this.gd.scrollTop=a.y},a);
a.context.b.P(c,"finish",function(a){this.gd.scrollTop=a.y},a);
c.play()}else a.F.gb(!0),a.gd.scrollTop=b.xk.offsetTop,a.F.gb(!1)};
Yv=function(a){return a.b&&a.b.cb||a.o[0]&&a.o[0].cb};
eaa=function(a,b){return bb(a.o,function(a){return a.cb.id==b},a)};
Zv=function(a){if(!gaa.test(a))throw Error("'"+a+"' is not a valid hex color");4==a.length&&(a=a.replace(haa,"#$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)]};
$v=function(a,b,c,d,e){$s.call(this,b,c,d,e);this.element=a};
aw=function(a,b,c,d,e){if(2!=b.length||2!=c.length)throw Error("Start and end points must be 2D");$v.apply(this,arguments)};
bw=function(a,b,c){Yu.call(this,a,b);this.annotation=c;this.isActive=!1};
cw=function(a,b,c){bw.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};
iaa=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};
jaa=function(a,b,c){this.type=a;this.b=b;this.url=c};
maa=function(a){if(!a)return null;var b=vt(a.type,kaa),c=vt(a.trigger,laa),d=Gt(qt(a.url));qt(a.subscribeData);return b?new jaa(b,c,d):null};
naa=function(a,b,c,d,e,f,k,l,m,n,t,u,y,D){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=D};
dw=function(a){if(!a)return null;var b=tt(a.fgColor,"#1A1A1A"),c=tt(a.bgColor,"#FFF"),d=tt(a.borderColor,"#000"),e=zt(a.borderWidth,0,5,!1,0),f=zt(a.bgAlpha,0,1,!1,.8),k=tt(a.highlightFontColor,"#F2F2F2"),l=zt(a.highlightWidth,0,5,!1,3),m=ut(a.textAlign),n=zt(a.textSize,3.3,30.1,!0,3.6107),t=ut(a.fontWeight),u=Ct(a.padding),y=Dt(a.effects),D=zt(a.cornerRadius,0,10,!0,0);if(a=qt(a.gradient)){var A=zt(a.x1,0,100,!0,0),Q=zt(a.y1,0,100,!0,0),I=zt(a.x2,0,100,!0,100),P=zt(a.y2,0,100,!0,100),ab=tt(a.color1,
"#FFF"),ib=tt(a.color2,"#000");a=new oaa(A,Q,I,P,ab,ib,zt(a.opacity1,0,100,!0,100),zt(a.opacity2,0,100,!0,0))}else a=null;return new naa(b,c,d,e,f,k,l,m,n,t,u,y,D,a)};
oaa=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};
gw=function(a,b,c){var d=a.C,e=a.D,f=a.b?a.b:"xy",k=ew(c,a.A,f);a=fw(c,a.g,f);var f=640*b.width*k/100,l=360*b.height*a/100;return new lg(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)};
ew=function(a,b,c){var d=(c="xx"==c||"xy"==c)?640:360;return(d+((c?a.width:a.height)-d)*b)/d};
fw=function(a,b,c){var d=(c="xy"==c||"yy"==c)?360:640;return(d+((c?a.height:a.width)-d)*b)/d};
hw=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};
iw=function(a,b){if(!a)return null;var c=xt(a.x,0),d=xt(a.y,0),e=xt(a.w,0),f=xt(a.h,0),k=At(a.t),l=xt(a.scaleSlope,1);return b(c,d,e,f,k,xt(a.d,0),xt(a.px,0),xt(a.py,0),xt(a.scaleSlopeX,l),xt(a.scaleSlopeY,l),vt(a.scaleDimension,paa,"xy"))};
kw=function(a,b){var c=jw(b,gw(a,new lg(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=$e(c.left,d.left,d.left+d.width-c.width):(e.left=d.left,e.width=d.width),c.height<d.height?e.top=$e(c.top,d.top,d.top+d.height-c.height):(e.top=d.top,e.height=d.height));return e};
lw=function(a){return a?iw(a,function(a,c,d,e,f,k,l,m,n,t,u){return new hw(a,c,d,e,f,k,l,m,n,t,u)}):null};
mw=function(a,b,c,d,e,f,k,l,m,n,t,u,y){hw.call(this,a,b,c,d,e,l,m,n,t,u,y);this.F=f;this.G=k};
qaa=function(a){if(!a)return null;var b=xt(a.sx,0),c=xt(a.sy,0);return iw(a,function(a,e,f,k,l,m,n,t,u,y,D){return new mw(a,e,f,k,l,b,c,m,n,t,u,y,D)})};
raa=function(a,b,c,d){this.type=a;this.g=b;this.b=c;this.o=d};
taa=function(a){if(!a)return null;var b=vt(a.type,saa,"rect"),c=Bt(a.rectRegion,lw),d=Bt(a.anchoredRegion,qaa);a=Bt(a.shapelessRegion,lw);return new raa(b,c,d,a)};
nw=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};
uaa=function(a,b){this.g=a;this.b=b};
vaa=function(a,b){this.state=a;this.b=b};
ow=function(a){if(!a)return null;var b=vt(a.state,waa);a=rt(a.ref);return b?new vaa(b,a):null};
xaa=function(a,b,c,d){this.b=a||[];this.o=b||[];this.A=c;this.g=d;this.value=!1};
yaa=function(a){if(!a)return null;var b=Bt(a.condition,ow),c=Bt(a.notCondition,ow),d=wt(a.show_delay,!1);a=wt(a.hide_delay,!1);return b||c?new xaa(b,c,d,a):null};
zaa=function(a,b,c){F(a.b,pa(b,!1),c);F(a.o,pa(b,!0),c)};
pw=function(a,b,c,d,e,f,k,l,m,n,t,u,y,D,A){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=D;this.$a=A};
Caa=function(a){if(!a)return null;var b=rt(a.id),c=rt(a.author),d=vt(a.type,Aaa),e=vt(a.style,qw),f=ut(qt(a.TEXT)),k=ut(a.data),k=0!=k.length?$f(k):{},l;var m=qt(a.segment);m?(rt(m.timeRelative),l=rt(m.spaceRelative),l=(m=Bt(m.movingRegion,taa))?new uaa(l,m):null):l=null;var m=Bt(a.action,maa),n=Bt(a.trigger,yaa),t=dw(qt(a.appearance));t||(t=dw({}));var u=vt(a.coordinate_system,Baa,"video_relative"),y=wt(a.closeable,!0),D=ut(a.html_blob);a=ut(a.log_data);return b&&d?new pw(b,c,d,e,f,l,m,n,t,u,y,0,
D,k,a):null};
rw=function(a){return(a=Daa(a,function(a){return"openUrl"==a.type&&null!=a.url}))?a.url:null};
uw=function(a){return tw(a,function(a){return"click"==a.b})};
tw=function(a,b){return Rh(a.A,b,void 0)};
Eaa=function(a,b,c){F(a.A,b,c)};
Daa=function(a,b){return bb(a.A,b,void 0)};
vw=function(a,b,c){F(a.F,b,c)};
Faa=function(a,b){N(a.F,b,void 0)};
xw=function(a){return(a=ww(a))?nw(a):null};
ww=function(a){a.g?(a=a.g,a=a.b.length?a.b[0]:null):a=null;return a};
yw=function(a,b){var c=xw(a);return c&&b?fw(b,c.g,c.b?c.b:"xy"):1};
zw=function(a,b,c){bw.call(this,a,b,c);this.D=this.A=this.F=!1;this.C=5E3;this.b=null;this.Rg=L("div","iv-promo-contents");this.g=this.o=this.Ac=null;this.B=new fe(function(){this.Ac.setAttribute("aria-hidden",!0);Fs(this.o,!1);Fs(this.g,!0)},700,this)};
Gaa=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.ma().setAttribute("aria-hidden",!0);a.ma().setAttribute("aria-label",O("YTP_INVIDEO_PROMOTION_ARIA_LABEL"));a.ma().tabIndex=0;var e;if(b.image_url){e=L("div",["iv-promo-img","iv-click-target"]);var f=L("img",{src:b.image_url,"aria-hidden":"true"});e.appendChild(f);b.video_duration&&!b.is_live?
(f=L("span","iv-promo-video-duration",b.video_duration),e.appendChild(f)):b.playlist_length&&(f=L("span","iv-promo-playlist-length",b.playlist_length.toString()),e.appendChild(f));a.vg(e,rw(a.annotation),a.annotation.id,a.annotation.$a,null,c)}f=rw(a.annotation);a.Ac=f?L("a",{href:Ht(f),"class":"iv-promo-txt"}):L("div","iv-promo-txt");var k,l,m;switch(a.annotation.style){case "cta":case "website":k=L("p",null,L("strong",null,b.text_line_1));l=L("p",null,L("span","iv-promo-link",b.text_line_2));J(a.Ac,
"iv-click-target");a.vg(a.Ac,rw(a.annotation),a.annotation.id,a.annotation.$a,null,c);break;case "playlist":case "video":k=L("p",null,L("span",null,b.text_line_1));l=L("p",null,L("strong",null,b.text_line_2));b.is_live&&(k=l,l=L("span",["yt-badge","iv-promo-badge-live"],O("YTP_LIVE_NOW")));J(a.Ac,"iv-click-target");a.vg(a.Ac,rw(a.annotation),a.annotation.id,a.annotation.$a,null,c);d.push("iv-promo-video");break;case "vote":k=L("p",null,L("strong",null,b.text_line_1)),l=L("p",null,L("span",null,b.text_line_2)),
m=L("div","iv-promo-button-container"),c=L("button",["iv-button","iv-promo-button"],L("span","iv-button-content",b.button_text)),a.context.b.P(c,"click",function(a){a.stopPropagation();Ru(this.context.logger,this.annotation.$a,null,{contest_vote:"1"},(b.tracking||{}).vote);var c=this.annotation.data;this.Ac=qf("iv-promo-txt",this.Rg);a=qf("iv-promo-button-container",this.Rg);var d=L("div",["iv-promo-txt","iv-click-target"]),e=L("p",null,L("strong",null,c.text_line_3)),c=L("p",null,c.text_line_4);
Ef(d,e,c);Hf(a);If(d,this.Ac);le(this.ma(),"iv-promo-with-button");this.vg(d,rw(this.annotation),this.annotation.id,this.annotation.$a)},a),m.appendChild(c),d.push("iv-promo-with-button")}k&&a.Ac.appendChild(k);
l&&a.Ac.appendChild(l);a.Rg.appendChild(a.Ac);m&&a.Rg.appendChild(m);k=L("div","iv-promo-actions");a.g=L("button",["iv-promo-expand","ytp-button"]);a.g.title=O("YTP_EXPAND");a.context.b.P(a.g,"click",pa(a.kl,5E3),a);k.appendChild(a.g);Fs(a.g,!1);a.context.b.P(a.ma(),"mouseover",a.uy,a);a.context.b.P(a.ma(),"mouseout",a.ty,a);a.context.b.P(a.ma(),"touchend",pa(a.kl,5E3),a);a.o=L("button",["iv-promo-close","ytp-button"]);a.o.title=O("YTP_CLOSE");a.context.b.P(a.o,"click",a.mH,a);k.appendChild(a.o);
je(a.ma(),d);e&&Df(a.ma(),e);Df(a.ma(),a.Rg);Df(a.ma(),k)};
Aw=function(a){a.A||a.D||a.b||(J(a.ma(),"iv-promo-collapsed"),a.A=!0,a.B.start())};
Bw=function(a){a.B.stop();a.A&&(le(a.ma(),"iv-promo-collapsed"),a.A=!1,a.Ac&&a.Ac.removeAttribute("aria-hidden"),Fs(a.g,!1),Fs(a.o,!0))};
Cw=function(a,b){a.b||(a.b=de(function(){this.b&&(ee(this.b),this.b=null);Aw(this)},b,a))};
Dw=function(a){G.call(this);this.L=[];this.oa=a||this};
Ew=function(a,b,c,d){for(var e=0;e<c.length;e++)a.U(b,c[e],d)};
Fw=function(a){for(;a.L.length;){var b=a.L.pop();b.target.removeEventListener(b.name,b.hi)}};
Gw=function(){return!!r("yt.scheduler.instance")};
Hw=function(a,b){(0,window.isNaN)(b)&&(b=void 0);var c=r("yt.scheduler.instance.addJob");return c?c(a,1,b):void 0===b?(a(),window.NaN):Ri(a,b||0)};
Iw=function(a){if(!(0,window.isNaN)(a)){var b=r("yt.scheduler.instance.cancelJob");b?b(a):Ti(a)}};
Kw=function(){var a=r("yt.scheduler.instance.start");a&&(Ti(Jw),a())};
Lw=function(){var a=r("yt.scheduler.instance.pause");a&&(a(),Ti(Jw),Jw=Ri(Kw,800))};
Nw=function(a,b,c){this.b={};this.g=!1;this.B="ivTrigger:"+a;this.o=c;zaa(b,function(a,b){var c=Mw(b.state,b.b);this.o.subscribe(c,x(this.A,this,c,a));this.b[c]=a},this)};
Mw=function(a,b){var c="ivTriggerCondition:"+a;return b?c+":"+b:c};
Ow=function(a,b,c){this.o=a;this.annotation=b;this.b=c;this.g=null;this.B=this.isVisible=!1;Haa(b,a)};
Haa=function(a,b){Faa(a,function(c){return new Nw(a.id,c,b)})};
Pw=function(a){rg(a.o,"resize",a.C,a);rg(a.o,"onVideoAreaChange",a.A,a)};
Qw=function(a){a.g&&(a.g.stop(),a.g=null)};
Rw=function(a,b){this.start=a<b?a:b;this.end=a<b?b:a};
Sw=function(){};
Tw=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=p(k)?k:null;this.A=p(l)?l:null};
Uw=function(){this.sa=[];this.ya=[];this.Nc=[]};
Vw=function(a,b,c){0==Za(a.sa)?a.Nc.length-=2:(a.sa.push(0),a.ya.push(1));a.Nc.push(b,c);a.sc=a.Hd=[b,c]};
Ww=function(a,b,c,d){var e=a.sc[0]-b*Math.cos(d*Math.PI/180)+b*Math.cos((d+90)*Math.PI/180),f=a.sc[1]-c*Math.sin(d*Math.PI/180)+c*Math.sin((d+90)*Math.PI/180);a.sa.push(3);a.ya.push(1);a.Nc.push(b,c,d,90,e,f);a.rh=!1;a.sc=[e,f]};
Jaa=function(a,b){for(var c=a.Nc,d=0,e=0,f=a.sa.length;e<f;e++){var k=a.sa[e],l=Iaa[k]*a.ya[e];b(k,c.slice(d,d+l));d+=l}};
Xw=function(a,b){this.G=a;this.H=null==b?1:b};
Yw=function(a,b,c){this.o=a;this.b=b;this.g=null==c?1:c};
Zw=function(){};
$w=function(a){hd.call(this);this.G=a||nf();this.xa=null;this.pd=!1;this.b=null;this.C=void 0;this.D=this.K=this.A=null};
ax=function(a,b){if(a.pd)throw Error("Component already rendered");a.b||a.Bi();b?b.insertBefore(a.b,null):a.G.b.body.appendChild(a.b);a.A&&!a.A.pd||a.Mf()};
bx=function(a,b){a.K&&F(a.K,b,void 0)};
cx=function(a,b,c,d,e){$w.call(this,e);this.width=a;this.height=b;this.o=c||null;this.L=d||null};
Kaa=function(a){var b=a.Tf();return b?b.width/(a.o?new gf(a.o,a.L):a.Tf()).width:0};
dx=function(a,b){hd.call(this);this.Zg=a;this.al=b;this[Fc]=!1};
gx=function(a,b,c,d){dx.call(this,a,b);a=this.al;b=this.ma();c?(b.setAttribute("stroke",c.b),b.setAttribute("stroke-opacity",c.g),c=c.ib(),w(c)&&-1!=c.indexOf("px")?b.setAttribute("stroke-width",(0,window.parseFloat)(c)/Kaa(a)):b.setAttribute("stroke-width",c)):b.setAttribute("stroke","none");this.fill=d;c=this.al;a=this.ma();if(d instanceof Xw)a.setAttribute("fill",d.G),a.setAttribute("fill-opacity",d.H);else if(d instanceof Tw){b="lg-"+d.B+"-"+d.D+"-"+d.C+"-"+d.F+"-"+d.b+"-"+d.g;var e=b in c.g?
c.g[b]:null;if(!e){var e=ex(c,"linearGradient",{x1:d.B,y1:d.D,x2:d.C,y2:d.F,gradientUnits:"userSpaceOnUse"}),f="stop-color:"+d.b;ga(d.o)&&(f+=";stop-opacity:"+d.o);f=ex(c,"stop",{offset:"0%",style:f});e.appendChild(f);f="stop-color:"+d.g;ga(d.A)&&(f+=";stop-opacity:"+d.A);d=ex(c,"stop",{offset:"100%",style:f});e.appendChild(d);e=fx(c,b,e)}a.setAttribute("fill","url(#"+e+")")}else a.setAttribute("fill","none")};
hx=function(a,b){dx.call(this,a,b)};
ix=function(a,b,c,d){gx.call(this,a,b,c,d)};
jx=function(a,b){dx.call(this,a,b)};
kx=function(a,b,c,d){gx.call(this,a,b,c,d)};
lx=function(a,b,c,d,e){cx.call(this,a,b,c,d,e);this.g={};this.M=Bc&&!yc(526);this.H=new Am(this)};
ex=function(a,b,c){a=a.G.b.createElementNS("http://www.w3.org/2000/svg",b);c&&mx(a,c);return a};
mx=function(a,b){for(var c in b)a.setAttribute(c,b[c])};
nx=function(a,b,c,d){b=ex(a,"path",{d:Laa(b)});c=new kx(b,a,c,d);a.B.ma().appendChild(c.ma())};
Laa=function(a){var b=[];Jaa(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(" ")};
fx=function(a,b,c){if(b in a.g)return a.g[b];var d="_svgdef_"+Maa++;c.setAttribute("id",d);a.g[b]=d;a.F.appendChild(c);return d};
px=function(){ox||(ox=new be(400),ox.start());return ox};
qx=function(){this.b=!1;this.B=this.g=null};
rx=function(a,b,c){a.g?(a.g.setSize(b,c),a.g.clear()):(b=new lx(b,c,void 0,void 0,void 0),a.g=b,a.g.Bi(),a.B=L("div"),b=a.g.ma(),a.B.appendChild(b));return a.g};
sx=function(a,b,c){var d=window.document.createElementNS("http://www.w3.org/2000/svg",a);b&&Ob(b,function(a,b){d.setAttribute(b,a)});
for(var e=2;e<arguments.length;e++)d.appendChild(arguments[e]);return d};
tx=function(a,b){var c=":"+(Zw.getInstance().b++).toString(36);b.setAttribute("result",c);a.appendChild(b);return c};
Naa=function(a,b){var c=tx(a,sx("feGaussianBlur",{"in":b,stdDeviation:"1.8"})),c=tx(a,sx("feDiffuseLighting",{"in":c,surfaceScale:"4",diffuseConstant:"1"},sx("feDistantLight",{azimuth:"270",elevation:"15","lighting-color":"white"}))),c=tx(a,sx("feComposite",{"in":c,in2:b,operator:"in"}));return tx(a,sx("feComposite",{in2:c,"in":b,operator:"arithmetic",k2:1,k3:.5,k4:0}))};
Oaa=function(a,b){var c=tx(a,sx("feOffset",{"in":b,dx:"-7",dy:"-7"})),c=tx(a,sx("feGaussianBlur",{"in":c,stdDeviation:"3"})),c=tx(a,sx("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=tx(a,sx("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=tx(a,sx("feGaussianBlur",{"in":d,stdDeviation:"1"})),c=tx(a,sx("feComposite",{operator:"out","in":c,in2:d}));return tx(a,sx("feComposite",{operator:"over","in":b,in2:c}))};
Paa=function(a,b){return b};
Qaa=function(a){var b=sx("filter",{filterUnits:"userSpaceOnUse"}),c="SourceGraphic";F(a,function(a){a:{switch(a){case "bevel":a=Naa;break a;case "dropshadow":a=Oaa;break a}a=Paa}c=a(b,c)});
return b};
Raa=function(a){a=ke(a,function(a){return a in vx});
Bb(a,function(a,c){return vx[a]-vx[c]});
return a};
Saa=function(a){return bb(a,function(a){return"dropshadow"==a})?new jg(0,7,7,0):new jg(0,0,0,0)};
wx=function(a,b,c){var d=new Uw;Vw(d,a.left+b+c,a.top+c);d.Hb(a.left+a.width-b-c,a.top+c);Ww(d,b,b,-90);d.Hb(a.left+a.width-c,a.top+a.height-b-c);Ww(d,b,b,0);d.Hb(a.left+b+c,a.top+a.height-c);Ww(d,b,b,90);d.Hb(a.left+c,a.top+b+c);Ww(d,b,b,180);d.close();return d};
xx=function(a,b,c,d){var e=a.G;e?a=new Tw(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 Xw(a.bgColor,d?Math.max(b,.9):b));return a};
yx=function(a,b){var c=mg(a),d=Saa(b);ia(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 lg(c.left,c.top,c.right-c.left,c.bottom-c.top)};
zx=function(a,b,c){if(c.length&&(b=of("g",void 0,b),b.length)){var d=Raa(c);if(d){c="effects:"+(d?d.join("|"):"");var e=c in a.g?a.g[c]:null;e?a=e:(d=Qaa(d),a=0<d.childNodes.length?fx(a,c,d):null)}else a=null;a&&b[0].setAttribute("filter","url(#"+a+")")}};
Ax=function(){qx.call(this);this.A=0};
Taa=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"};
Bx=function(){qx.call(this)};
Cx=function(){qx.call(this)};
Dx=function(){Ax.call(this)};
Ex=function(a,b){this.b=a;this.g=b||null};
jw=function(a,b){var c;c=a.g?kw(a.g,new Ex(a.b)):a.b;var d=b.clone(),e=c.left;c=c.top;e instanceof ef?(d.left+=e.x,d.top+=e.y):(d.left+=e,ga(c)&&(d.top+=c));return d};
Fx=function(a,b,c,d,e){this.b=a;this.ba=b;this.C=c;this.fa=d;this.da=e;this.M=!1;this.D=new Ms(this);this.O=this.B=this.F=this.L=this.g=null;this.ca=!1;this.$=this.H=this.K=null;this.Sl=new ym(this.ry,100,this);this.G=new fe(this.Bp,500,this);this.S=this.o=this.A=null};
Uaa=function(a,b){var c=x(function(a,c,f){c=f?Gx(this,c,x(f,this)):Gx(this,c);this.D.P(b,a,c)},a);
c("mouseover","d",a.$t);c("mouseout","c",a.Ne);c("click","a");c("touchend","a")};
Vaa=function(a){if(a.b.C){var b;tw(a.b,function(a){return"close"==a.type})?b=a.g:(a.A=L("div","annotation-close-button"),Fs(a.A,!1),Ji(a.A,"annotation_id",a.b.id),a.g.appendChild(a.A),b=a.A);
var c=function(a){a.stopPropagation()};
a.D.P(b,"click",Gx(a,"b",c));a.D.P(b,"touchend",Gx(a,"b",c))}};
Gx=function(a,b,c){return x(function(a){if(this.da)c&&c(a);else if(a.event.target instanceof window.Element){var e=a.event.target;Fs(e,!1);try{var f=window.document.elementFromPoint(a.event.clientX,a.event.clientY);if(Yf(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{Fs(e,!0)}}e=Ds(a.target);a=new ef(a.clientX,a.clientY);"c"==b&&e.contains(a)||this.fa.ac(b,this.b)},a)};
Mx=function(a){if(a.g||a.o){var b=xw(a.b);if(b){var c=Hx(a);if(a.g){var b=kw(b,c),d=Ix(Jx(a.C));As(a.g,b.width,b.height);os(a.g,b.left,b.top);a.L=new lg(d.left+b.left,d.top+b.top,b.width,b.height);var e;e=(e=xw(a.b))&&d?ew(d,e.A,e.b?e.b:"xy"):1;var f=yw(a.b,d),d=a.b.b;d.F?d=d.F:(d="speech"==a.b.style?1.6:.8,d=new jg(d,d,d,d));d=new jg(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=Ix(Jx(a.C));var t=Kx(a.C);ng(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=Lx(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,As(a.B,m.width,m.height),os(a.B,m.left,m.top));a.A&&(u?b=new ef(u.left+u.width-
23-18,a.ca?u.top+2:u.top+u.height-18-2):(u=Lx(a,18,b,e,f),b=new ef(u.left,u.top),As(a.A,u.width,u.height)),os(a.A,b));a.O=new lg(a.L.left+u.left,a.L.top+u.top,u.width,u.height);a.K=a.D.P(Jx(a.C),"mousemove",a.AC)}else a.B&&(u=e/f*d.height*4.2/100,u=new gf(u,u),"highlight"==a.b.type||"label"==a.b.style?(e=1.5*d.height/100,u=new lg(b.width-u.width-e,b.height-u.height-e,u.width,u.height)):u=new lg(b.width-u.width-3*d.height/100,(b.height-u.height)/2,u.width,u.height),As(a.B,u.width,u.height),os(a.B,
u.left,u.top)),a.A&&(u=9<=d.left+d.width-(b.left+b.width),e=9<=b.top-d.top,os(a.A,u&&e?new ef(b.width-9,-9):u?new ef(b.width-9,45<b.height?9:b.height-9):e?new ef(45<b.width?b.width-9-18:-9,-9):b.width/d.width>b.height/d.height?new ef(45<b.width?b.width-9-18:-9,b.height-9):new ef(-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=Ix(Jx(a.C));c.style.fontSize=360*b.textSize*yw(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=qf("annotation-link-icon",a))?Gs(b):!1;e=(d=qf("annotation-close-button",a))?Gs(d):!1;u&&Fs(b,!1);e&&Fs(d,!1);m=f="";if(l=qf("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=Ls(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&&Fs(d,!0);u&&Fs(b,!0)}}}};
Lx=function(a,b,c,d,e){var f=0<e;b=new lg(0,c.height-b,Math.max(c.width,b),b);0<d&&(b.top=c.height,20<d&&(b.height+=d-20),J(a.g,"annotation-extend-down"));f&&(b.top=-b.height,20<e&&(c=e-20,b.top-=c,b.height+=c),J(a.g,"annotation-extend-up"),a.ca=!0);return b};
Nx=function(a){return"label"!=a.b.style||a.o.b};
Hx=function(a){var b;b=Ix(Jx(a.C));if("player_relative"==a.b.D){var c=Jx(a.C).Ka();b=new lg(-b.left,-b.top,c.width,c.height)}else b=new lg(0,0,b.width,b.height);return new Ex(b,a.S?xw(a.S):null)};
Ox=function(a,b){return b?new lg(a.x+b.left,a.y+b.top,b.width,b.height):null};
Px=function(a){dq.call(this,a);this.fa=!0;this.Ma="iv-module";this.logEvent="iv";this.K=0;this.o={};this.L={};this.G=new Lu(a);a=Waa;this.B=new Dw(this);H(this,this.B);this.subscribe("onHideControls",this.fC,this);this.subscribe("onShowControls",this.FD,this);this.subscribe("presentingplayerstatechange",this.cD,this);this.subscribe("resize",this.sr,this);this.subscribe("d",this.aH,this);this.subscribe("c",this.Ne,this);this.subscribe("a",this.OA,this);this.subscribe("b",this.rB,this);this.subscribe("vast_info_card_add",
this.eE,this);this.S=L("DIV",[a.Tv,"html5-stop-propagation"]);this.ba=L("DIV",a.uv);this.H=this.g=this.A=this.C=null;this.O=[]};
Qx=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){T(a.b).experiments.aa("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(Qx(a,e))}return c};
Rx=function(a,b,c){return!(a.loaded&&a.K==b&&a.b.getVideoData().videoId==c)};
Yaa=function(a,b){var c=Xaa(a,b);if(!c&&"marker"!=b.type)return null;vw(b,function(a){a=x(this.aE,this,b.id,a);this.subscribe("ivTrigger:"+b.id,a)},a);
return new Ow(a.ca,b,c)};
Zaa=function(a,b){var c=Px.g(),d=null;switch(b.type){case "branding":if(T(a.b).Cd)break;a.C.element.appendChild(c);d=new cw(c,Sx(a),b);break;case "promotion":Qv(a.b,c,4),d=new zw(c,Sx(a),b)}d&&d.jj();return d};
$aa=function(a){var b=a.b.getVideoData();if(b.Gf){var c=T(a.b),d=c.ba.remove(b.videoId);if(d){var e={format:"XML",wd:{}};c.experiments.aa("disable_iv_cors")||(e.method="POST",e.withCredentials=!0);"gaming"==c.g&&(e.wd.gaming="1");e.zc=x(function(a,b,c){Rx(this,a,b)||(a=Uj(c)&&c.responseXML?c.responseXML:null)&&Tx(this,a)},a,a.K,b.videoId);
Gw()&&(e.zc=Ux(a,e.zc));e.Lb={ic_only:"1"};Vx(e,d);Zj(b.Gf,e)}}};
Vx=function(a,b){a.method="POST";a.Lb=a.Lb||{};b.hf&&(a.Lb.ic_xml=b.hf);b.yg&&(a.Lb.ic_track=b.yg)};
aba=function(a){var b=new S(["div"]);Fs(b.element,!1);var c=new Ov(a.b,b.element,Sx(a));b.Ca(a.C.element);c.jj();return c};
Sx=function(a){a.H||(a.H=new iaa(new Ms(a),T(a.b),a.b.getVideoData(),a.G,a.b,a.ca));return a.H};
Tx=function(a,b){for(var c=!1,d=b.getElementsByTagName("annotation"),e=0;e<d.length;e++){var f=Qx(a,d[e]),k=null;try{k=Caa(f)}catch(l){}k&&(Px.A(k)?(f=Zaa(a,k))&&(a.L[k.id]=f):Px.B(k)?(a.g||(a.g=aba(a)),"card"==k.type?caa(a.g,k):daa(a.g,k),c=!0):(f=Yaa(a,k))&&(a.o[k.id]=f))}c&&Uv(a.b);Ob(a.o,function(a){var b=a.annotation;b.g&&b.g.g&&(b=this.o[b.g.g])&&(a.b.S=b.annotation)},a)};
bba=function(a,b,c,d){d?Wx(a,b,c):Xx(a,b,c)};
Xx=function(a,b,c){if(b=a.o[b])Qw(b),c&&c.g?(a=x(a.Ap,a,b),b.g=new fe(a,2E3),b.g.start()):a.Ap(b)};
Wx=function(a,b,c){if(b=a.o[b])Qw(b),c&&c.A?(a=x(a.Ds,a,b),b.g=new fe(a,2E3),b.g.start()):a.Ds(b)};
Yx=function(a,b,c){if("new"==b.target)return!1;var d=Ht(b);if(!d)return!1;d=d.replace(/https?:\/\//g,"");if(!Jt(d))return!1;d=Oj(d);if(d.list||d.p)return!1;b=Lt(b);if(!b)return!1;if(c==b)return!0;a=T(a.b);return a.D&&a.Ha?!0:!1};
Xaa=function(a,b){if(cba(b)){var c=b.C||tw(b,function(a){return"click"==a||"rollOut"==a||"rollOut"==a});
return new Fx(b,x(a.S.appendChild,a.S),a.b,a.ca,c)}return null};
cba=function(a){if("highlight"==a.type||"widget"==a.type)return!0;if("text"==a.type)for(var b in qw)if(a.style==qw[b])return!0;return!1};
Zx=function(a,b,c,d){a.Y(Mw(b,d),c,d)};
Ux=function(a,b){return x(function(){if(!this.isDisposed()){var a=Array.prototype.slice.call(arguments,0);a.unshift(b);b=pa.apply(window,a);this.O.push(Hw(b,void 0))}},a)};
$x=function(a){return!!a.g&&a.g.isAvailable()};
ay=function(a){$x(a);return!!a.g&&a.g.A};
by=function(a,b,c,d){$x(a);a.g&&(c=!!c,b?p(d)?Vv(a.g,d,c):Vv(a.g,"YOUTUBE_DRAWER_AUTO_OPEN",c):a.g.li())};
cy=function(a,b,c){a.b.Wa(b?"cardsteasershow":"cardsteaserhide",c)};
dy=function(){Xi({YTP_TRANSLATE_MENU_ITEM:"Translate captions",YTP_CONTRIBUTE_MENU_ITEM:"Add subtitles/CC",YTP_ASR_SETTINGS_LABEL:"Automatic Captions",YTP_LANGUAGE_OFF:"Off",YTP_FONT_FAMILY:"Font family",YTP_FONT_SIZE:"Font size",YTP_FONT_COLOR:"Font colour",YTP_FONT_OPACITY:"Font opacity",YTP_BACKGROUND_COLOR:"Background colour",YTP_BACKGROUND_OPACITY:"Background opacity",YTP_WINDOW_COLOR:"Window colour",YTP_WINDOW_OPACITY:"Window opacity",YTP_COLOR_WHITE:"White",YTP_COLOR_YELLOW:"Yellow",YTP_COLOR_GREEN:"Green",
YTP_COLOR_CYAN:"Cyan",YTP_COLOR_BLUE:"Blue",YTP_COLOR_MAGENTA:"Magenta",YTP_COLOR_RED:"Red",YTP_COLOR_BLACK:"Black",YTP_FONT_FAMILY_MONO_SERIF:"Monospaced Serif",YTP_FONT_FAMILY_PROP_SERIF:"Proportional Serif",YTP_FONT_FAMILY_MONO_SANS:"Monospaced Sans-Serif",YTP_FONT_FAMILY_PROP_SANS:"Proportional Sans-Serif",YTP_FONT_FAMILY_CASUAL:"Casual",YTP_FONT_FAMILY_CURSIVE:"Cursive",YTP_FONT_FAMILY_SMALL_CAPS:"Small Capitals",YTP_CHAR_EDGE_STYLE:"Character edge style",YTP_EDGE_STYLE_NONE:"None",YTP_EDGE_STYLE_RAISED:"Raised",
YTP_EDGE_STYLE_DEPRESSED:"Depressed",YTP_EDGE_STYLE_OUTLINE:"Outline",YTP_EDGE_STYLE_DROP_SHADOW:"Drop Shadow",YTP_CLICK_FOR_SETTINGS:"Click $GEAR_ICON for settings"})};
fy=function(a){a=a.split("");ey.sv(a,22);ey.Hh(a,77);ey.PE(a,2);ey.sv(a,24);ey.PE(a,2);ey.Hh(a,21);return a.join("")};
gy=function(a,b,c){this.g=a||0;this.b=b||0;this.o=c};
iy=function(a,b,c){return new gy(hy[a]||0,hy[b]||0,c)};
jy=function(a){var b=hy.auto;return a.g==b&&a.b==b};
ly=function(a,b){if(b.o&&jy(b))return ky;if(b.o||jy(a))return b;if(a.o||jy(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 gy(c,d,!1)};
my=function(a){var b=a.b||a.g;return ac(dba,function(a){return hy[a]==b})||"auto"};
ny=function(){nk.call(this);this.b={}};
oy=function(a,b,c){if(!a.b[b]&&(c.hf||c.yg)){var d=a.b,e=c;Object.isFrozen&&!Object.isFrozen(c)&&(e=Object.create(c),Object.freeze(e));d[b]=e;a.Y("vast_info_card_add",b)}};
py=function(){var a=r("yt.player.utils.videoElement_");a||(a=window.document.createElement("video"),g.aa("yt.player.utils.videoElement_",a,void 0));return a};
qy=function(a){var b=py();try{if(b.canPlayType){a=a?eba:fba;for(var c=0;c<a.length;c++)if(b.canPlayType(a[c]))return null}return"fmt.noneavailable"}catch(d){return"html5.missingapi"}};
ry=function(a){a=L("DIV",{"class":a});window.document.body.appendChild(a);var b="none"==ls(a,"display");Hf(a);return b};
sy=function(){var a=[],b=[];return{start:function(b){return a[b]},
end:function(a){return b[a]},
length:a.length}};
ty=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};
uy=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};
vy=function(a,b){var c=uy(a,b);return 0<=c?a.end(c):window.NaN};
wy=function(a){return a&&a.length?a.end(a.length-1):window.NaN};
yy=function(a,b){var c=vy(a,b);return 0<=c?c-b:0};
zy=function(){G.call(this);this.g=null;this.C=this.B=!1;this.A=new hd;H(this,this.A)};
Dy=function(a,b){var c="";b&&(Ay(a,b),c=By(b));a.b.src&&""==c||(c&&a.b.src!=c&&Cy(a,c),b&&b.b||a.load(),a.C||(a.addEventListener("volumechange",a.Lo,!1,a),a.C=!0))};
Gy=function(a){a.b.ended&&a.seekTo(0);if(!a.b.src&&a.g){var b=By(a.g);Cy(a,b);a.g.b||a.load()}a.play();Ey&&7<=Fy&&jm(a,"playing",x(function(){Ri(x(this.$o,this,this.getCurrentTime(),0),500)},a))};
Ay=function(a,b){a.g&&Hy(a.g,b)||(a.g&&a.g.dispose(),a.g=b)};
uq=function(a){return yy(Iy(a),a.getCurrentTime())};
Ky=function(a){a.b.src&&(Jy&&0<a.getCurrentTime()&&a.seekTo(0),a.b.removeAttribute("src"),a.load(),a.g&&a.g.b&&Ay(a,null))};
Ly=function(a){var b=Iy(a);return 0<wy(b)&&a.b.duration?vy(b,a.getCurrentTime()):0};
My=function(a){var b=a.b.duration;return window.Infinity==b?1:b?Ly(a)/b:0};
Ny=function(a,b,c){this.target=a;this.type=b;this.b=c||null};
Oy=function(a){zy.call(this);this.b=a;this.o={}};
Cy=function(a,b){var c=a.b.playbackRate;a.b.src=b;a.b.playbackRate=c};
Iy=function(a){return a.b.buffered||sy()};
Py=function(a,b){b?a.b.setAttribute("crossorigin","anonymous"):a.b.removeAttribute("crossorigin")};
Qy=function(a,b,c){is(a.b,b,c)};
Ry=function(a,b){return void 0==b?a:"1"==b?!0:!1};
Sy=function(a,b,c){for(var d in c)if(c[d]==b)return c[d];return a};
Ty=function(a,b){return void 0==b?a:Number(b)};
Uy=function(a,b){return void 0==b?a:b.toString()};
Vy=function(a){if(a&&(a=a.match(gba))){var b=(0,window.parseFloat)(a[2]);if(0<b)return(0,window.parseFloat)(a[1])/b}return window.NaN};
Wy=function(a,b){var c=hy.auto,d=hy[b];return d>hy.medium?new gy(d,c,!1):d>=c?new gy(c,d,!1):a};
Xy=function(a){return a.docid||a.video_id||a.videoId||a.id};
Zy=function(){if(null==r("_lact",window)){var a=(0,window.parseInt)(Pi("LACT"),10),a=(0,window.isFinite)(a)?E()-Math.max(a,0):-1;g.aa("_lact",a,window);-1==a&&Yy();hm(window.document,"keydown",Yy);hm(window.document,"keyup",Yy);hm(window.document,"mousedown",Yy);hm(window.document,"mouseup",Yy);cj("page-mouse",Yy);cj("page-scroll",Yy);cj("page-resize",Yy)}};
Yy=function(){null==r("_lact",window)&&(Zy(),r("_lact",window));var a=E();g.aa("_lact",a,window);fj("USER_ACTIVE")};
pu=function(){var a=r("_lact",window);return null==a?-1:Math.max(E()-a,0)};
az=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=E(),d=0;d<c%23;d++)a[b]=Math.random();a[b]=Math.floor(256*Math.random())}if(b=$y)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};
bz=function(){for(var a=az(),b=[],c=0;c<a.length;c++)b.push("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_".charAt(a[c]&63));return b.join("")};
cz=function(){return N(az(),function(a){return(a&15).toString(16)}).join("")};
dz=function(a,b){this.g=a;this.b=b};
iz=function(){try{var a=r("yt.www.ads.biscotti.getId_"),b;if(a)b=a();else{if(!ez){var c=x(fz,q,2);ez=Yt("//googleads.g.doubleclick.net/pagead/id",gz).then(hz,c)}b=ez}return b}catch(d){return Id(d)}};
hz=function(a){a=a.responseText;if(!sa(a,")]}'"))return jz(""),ez=new dz(""),"";a=JSON.parse(a.substr(4)).id;jz(a);ez=new dz(a);kz(18E5,2);return a};
fz=function(a){var b=Error("Unable to load /pagead/id");jz("");ez=new dz(void 0,b);0<a&&kz(12E4,a-1);throw b;};
kz=function(a,b){Ri(function(){var a=x(fz,q,b);Sd(Yt("//googleads.g.doubleclick.net/pagead/id",gz).then(hz,a),v)},a)};
jz=function(a){g.aa("yt.www.ads.biscotti.lastId_",a,void 0)};
mz=function(a,b){this.experimentIds=a?a.split(","):[];this.flags=Kj(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"]&&lz&&yc(8);this.qx=!0;this.enableAudioCast=!!c["9408394"];this.g=!!c["9414740"];this.D=!!c["9407182"]};
nz=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};
oz=function(a){a=a||{};this.K=a.formats||"";this.A=a.format||1;if(1==this.A)for(var b=this.K.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.xa=a.id;this.L=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 nz(a.translationLanguage))};
qz=function(a){var b={format:a.A,languageCode:a.g,languageName:a.C,displayName:pz(a),kind:a.o,name:a.B,id:a.xa,is_servable:a.L,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};
pz=function(a){var b=a.C||"",c=[b];"asr"==a.o&&-1==b.indexOf("(")&&c.push(" (",O("YTP_ASR_SETTINGS_LABEL"),")");a.B&&c.push(" - ",a.B);a.b&&c.push(" >> ",a.b.languageName);return c.join("")};
hba=function(a,b){var c=new oz;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};
rz=function(a,b){this.id=a;this.Vb=b;this.captionTracks=[];this.si=this.Jk=null;this.Ao=0};
sz=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 rz(a.id,a.Vb);d[a.id]=b;this.audioTracks.push(b)}},this))}};
tz=function(a){return(a=a.exec(sc))?a[1]:""};
uz=function(a){return 0<=Qa(iba,a)};
vz=function(){};
wz=function(){this.buffered=new vz};
xz=function(a,b){this.A=a;this.b=!!b;this.o=!1;this.g={}};
By=function(a){return a.b?a.A:Sg(a.A,a.g)};
Hy=function(a,b){return null!=b&&By(b)==By(a)};
yz=function(a,b){this.g=a;this.o=b;this.A=0;Object.defineProperty(this,"timestampOffset",{get:this.GF,set:this.KF});Object.defineProperty(this,"buffered",{get:this.EF})};
jba=function(){this.length=0};
zz=function(a){this.activeSourceBuffers=this.sourceBuffers=[];this.b=a;this.g=window.NaN;this.o=0;Object.defineProperty(this,"duration",{get:this.FF,set:this.JF});Object.defineProperty(this,"readyState",{get:this.HF});this.b.addEventListener("webkitsourceclose",x(this.IF,this),!0)};
Az=function(a,b,c,d,e){Dw.call(this);this.g=this.b=null;this.A=b;this.o=window.MediaSource?new window.MediaSource:window.WebKitMediaSource?new window.WebKitMediaSource:new zz(a);this.C=this.B=this.D=null;this.F=d;this.K=c;this.M=e;Ew(this,this.o,["sourceopen","webkitsourceopen"],this.H);Ew(this,this.o,["sourceclose","webkitsourceclose"],this.G)};
kba=function(a,b){a.B=b};
lba=function(a,b){a.C=b};
mba=function(a){if(!a.D){var b;b=a.o;b=b.UH?b.b.webkitMediaSourceURL:window.URL.createObjectURL(b);a.D=new xz(b,!0)}return a.D};
Cz=function(a,b){Bz(a)?a.o.duration=b:a.A=b};
Bz=function(a){try{return"open"==a.o.readyState}catch(b){return!1}};
Dz=function(a){try{return"closed"==a.o.readyState}catch(b){return!0}};
Ez=function(a){return a.b.updating||a.g.updating};
Fz=function(){return!(!window.MediaSource||!window.MediaSource.isTypeSupported)};
Gz=function(a){return a.b?!!a.b.appendBuffer:Fz()};
Hz=function(a){if(/opus/.test(a)&&($l&&!uz("38")||Pp()))return!1;if(window.MediaSource&&window.MediaSource.isTypeSupported)return window.MediaSource.isTypeSupported(a);if(/webm/.test(a)&&!Np())return!1;'audio/mp4; codecs="mp4a.40.2"'==a&&(a='video/mp4; codecs="avc1.4d401f"');return!!py().canPlayType(a)};
Iz=function(a){this.Rc=a};
nba=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};
Mz=function(a,b){if(2.2!=Jz&&qy(a.g))return[];for(var c={},d=py(),e=0;e<b.length;e++){var f=b[e];if(hu(f.Rc)in oba||"5"==hu(f.Rc)?0:Kz(d,f.Rc.mimeType)){var k=f.Rc.video.quality;c[k]&&2!=c[k].Rc.g||(c[k]=f)}}var l=[];c.auto&&l.push(c.auto);F(Lz,function(a){(f=c[a])&&l.push(f)});
return l};
Kz=function(a,b){var c=a.canPlayType(b);Jy?c=c||pba[b]:2.2==Jz?c=c||qba[b]:Kp()&&(c=c||rba[b]);return!!c};
Oz=function(){return!(!Kz(py(),"application/x-mpegURL")&&!Nz())};
Nz=function(){var a=Kp()&&!uz(29),b=Jp("google tv")&&Jp("chrome")&&!uz(30);return a||b?!1:!!(window.MediaSource||window.WebKitMediaSource||window.HTMLMediaElement&&window.HTMLMediaElement.prototype.webkitSourceAddId)};
Xz=function(a,b){var c={},d;for(d in b.b){var e=b.b[d],f;if(f="304"!=hu(e.info)||b.o)a:{f=a;var k=e.info;if("0"!=hu(k)||f.g){var l=k.mimeType,m={};k.video&&(k.video.width&&(m[Pz.name]=k.video.width),k.video.height&&(m[Qz.name]=k.video.height),k.video.fps&&(m[Rz.name]=k.video.fps),k.video.o&&(m[Sz.name]=k.video.o),k.b&&(m[Tz.name]=8*k.b));k.audio&&k.audio.b&&(m[Uz.name]=k.audio.b);k=m;m=void 0;for(m in Vz){var n=Vz[m];if(k[n.name]&&Wz(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=Hz(l)}else f=!0}f&&(c[e.info.o]=c[e.info.o]||[],c[e.info.o].push(e.info))}return c};
sba=function(a,b,c){var d={},e;Ob(b,function(a,b){var l=a.filter(function(a){return a.$e?c&&a.$e[c.b]&&c.A[a.mimeType]?"261"==hu(a)?(e||(e=py()),!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=Xz(a,b);Yz(b)&&(k=sba(a,k,c));var l=tba;a.g?!Jp("windows nt 5.1")||Zz&&!a.A.aa("html5_prefer_h264_on_xp")||(l=$z):l=uba;c=vba;d&&(a.g&&(l=$z),c=wba);a.A.aa("html5_enable_aac_51_clear")&&Mp()&&(c=xba);(aA(b)||bA(b))&&e&&(c=yba.concat(c));b=bb(l,f);d=bb(c,f);if(!b||!d)return null;"9"==b&&k.h&&(e=function(a,b){return Math.max(a,b.video.height)},c=bf(k["9"],e,0),bf(k.h,e,0)>1.5*c&&(b="h"));
e=k[b];c=k[d];e=cA(a,e);dA(e,c);return new sz(e,c,zba(a,k,b,d))};
zba=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 sz(e,b)):null};
dA=function(a,b){Bb(a,function(a,b){return b.video.width-a.video.width||b.b-a.b});
Bb(b,function(a,b){return b.b-a.b})};
cA=function(a,b){var c=Rh(b,function(a){return 32<a.video.fps});
c&&(b=a.B||Wz(a,Rz)?ke(b,function(a){var b;(b=32<a.video.fps)||(a=a.video,b=!(854<a.width||480<a.height));return b}):ke(b,function(a){return!(32<a.video.fps)}));
c&&Mp()&&(b=ke(b,function(a){return"299"!=hu(a)}));
return b};
Wz=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"',Hz(e)||(e='video/mp4; codecs="avc1.4d401e"')):(e='audio/webm; codecs="opus"',Hz(e)||(e='audio/mp4; codecs="mp4a.40.2"')),e=Hz(e+"; "+b.name+"="+b.valid)&&!Hz(e+"; "+b.name+"="+b.fg));c[d]=e}return a.o[b.name]};
qA=function(a){G.call(this);a=gc(a);this.b="detailpage";this.Ml=this.Ta=this.L=!1;this.H=null;this.G={};this.experiments=new mz(a.fexp,a.fflags);this.forcedExperiments=a.forced_experiments||null;var b;try{b=window.document.location.toString()}catch(e){b=""}this.Ja=b;this.M=(this.D=Aba.test(this.Ja))?Uy("",a.loaderUrl):this.Ja;this.Ra=Gp(this.M);this.$=(this.Mg=(this.ed=Ry(!1,a.ssl_stream))||Ry(!1,a.ssl))?"https":"http";this.baseYtUrl=Dp(a.BASE_YT_URL)||Dp(this.Ja)||this.$+"://www.youtube.com/";"adunit"==
a.el?fA.test(this.M)?this.b="adunit":this.b="embedded":"embedded"==a.el||this.Ra?this.b=Sy(this.b,a.el,Bba):a.el&&(this.b="embedded");Zy();b=null;var c=a.ps,d=fb(gA,c);!c||d&&!this.Ra||(b=c);this.g=b;this.F=(this.Ub=fb(gA,this.g))&&"play"!=this.g;this.gc=!this.F;this.o={};this.o.c=a.c||"web";this.o.cver=a.cver||"html5";this.o.cplayer="UNIPLAYER";this.ia=!(!py().defaultPlaybackRate||Cc&&!Jp("chrome")||hA||iA||Jp("android")||Jp("silk"));this.isMobile=Ry("blazer"==this.g,a.is_html5_mobile_device);this.useMediaVolume=
"3"==this.A||this.isMobile||Ry(!1,a.use_media_volume);if(b=!this.useMediaVolume)b=py(),c=b.muted,b.muted=!c,b=b.muted!=c;this.da=b;this.cf=jA;this.ab=Ry("adunit"!=this.b&&"detailpage"!=this.b&&!this.Ub,a.showinfo);this.Bc=Ry(!1,a.playsinline);b=this.isMobile&&kA&&2.3>=Jz;c=lA(this)||!b&&Ry("native"==this.g,a.use_native_controls)?"3":"1";this.A="0"!=a.controls?c:"0";this.useTabletControls=this.isMobile;this.color=Sy("red",a.color,Cba);this.ze="3"==this.A||Ry(!1,a.modestbranding)&&"red"==this.color;
Ry(!1,a.nologo)&&(c=this.M,Dba.test(c),Gp(c));this.fa=0==this.M.indexOf(this.baseYtUrl);this.Ad=(c=!this.fa&&"detailpage"!=this.b&&!this.F&&!this.Ub)&&!this.ze&&"1"==this.A;this.Cd="embedded"==this.b&&c&&!this.ab&&!this.Ad;this.Jg=this.Ae=b;this.S=iA?!1:!0;this.we=this.D||!1;this.ga="detailpage"==this.b?"":(this.M||a.post_message_origin||"").substring(0,128);this.widgetReferrer=Uy("",a.widget_referrer);b=this.experiments.aa("legacy_cast2")||Ry(!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.Db=(this.ca=Ry(!1,a.autoplay))||"detailpage"==this.b;this.kb=!this.isMobile&&!Qp()&&!Jp("nintendo 3ds")||Ry(!1,a.autoplayoverride);b=("detailpage"==this.b||"adunit"==this.b)&&("blazer"==this.g||"mweb-polymer"==this.g);this.Sa=!Ry(!0,a.fs);this.Ba=!this.Sa&&(b||Vh());this.Bd=Ry(!this.Ub,a.rel);this.Kg="adunit"!=this.b;this.ka="profilepage"==this.b;this.Xa="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.na=b;this.Pb=Uy("",a.authuser);this.Lg=!!this.Pb&&Ry(!this.F,a.showwatchlater);this.Tb=Ry(!1,a.disablekb);this.experiments.aa("mweb_autonav")&&mA();this.pageId=Uy("",a.pageid);this.Be=Wy(ky,a.vq);this.Ce=Uy("",a.playerapiid);this.ef=Ry(!0,a.canplaylive);this.ve=Ry(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 gf(b,c))):b=null;this.Ed=b;this.mute=this.Ra&&Ry(!1,a.mute);this.storeUserVolume=!this.mute&&Ry("0"!=this.A,a.store_user_volume);this.df=Ry(!1,a.retryneterr)&&this.Ra;this.Yd="3"==this.A?3:Sy(void 0,a.iv_load_policy,nA);this.Ha=Ry(!1,a.iv_allow_in_place_switch);this.rb=Uy("",a.cc_lang_pref);this.va=Sy(void 0,a.cc_load_policy,nA);this.ra=void 0==
a.content_v?void 0:a.content_v.toString();this.xe=void 0==a.framer?void 0:a.framer.toString();this.oa=Uy("en_US",a.hl);this.region=Uy("US",a.cr);this.hostLanguage=Uy("en",a.host_language);this.kc=Ry(!1,a.privembed);this.nc="";this.Na=new wk;this.C=Ry(!0,a.deviceHasDisplay);this.yb=Ty(this.yb,a.ismb);oA(this,a);this.G=a;this.ba=new ny;this.O=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.aa("disable_innertube_config_reporting")||
Vi(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.ye={apiaryHost:Uy("",b.apiary_host),nk:Uy("",b.apiary_host_firstparty),gapiHintOverride:Ry(!1,b.gapi_hint_override),gapiHintParams:Uy("",b.gapi_hint_params),innertubeApiKey:Uy("",b.innertube_api_key),innertubeApiVersion:Uy("",b.innertube_api_version),
Hl:this.o.c,innertubeContextClientVersion:Uy("",b.innertube_context_client_version),Jl:this.hostLanguage,Il:this.region};this.zd=void 0!=window.WebKitPlaybackTargetAvailabilityEvent;this.K=new nba(this.experiments,this.C,pA(this)||Mp()||Np());this.enableSafetyMode=Ry(!1,a.enable_safety_mode);this.zb="detailpage"==this.b&&"blazer"!=this.g&&"mweb-polymer"!=this.g};
rA=function(a,b){a.Mb=b.get("d",a.Mb);a.bb=b.get("f",a.bb)};
oA=function(a,b){a.adFormat=void 0;var c;(c=b.adformat)||(c=(c=b.attrib)&&Zb(sA,c)&&Zb(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.G.adformat=b.adformat,d||(a.b="adunit")}}if(c=b.video_id&&b.video_id!=a.nc)a.nc=b.video_id;(b.adpings||c)&&b.adpings&&Mj(b.adpings);a.gc?(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.Xd=d;a.Dd="//"+a.Xd+"/api/stats/qoe";if(b.feature||c)d=b.feature,a.Zd=d,a.G.feature=d;if(b.referrer||c)d=b.referrer,a.referrer=d,a.G.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.Da&&b.cl&&(a.Da=+b.cl);a.userAge=Ty(a.userAge,b.user_age);a.userDisplayImage=Uy(a.userDisplayImage,b.user_display_image);vA.test(a.userDisplayImage)||(a.userDisplayImage="");a.userDisplayName=Uy(a.userDisplayName,
b.user_display_name);a.userGender=Uy(a.userGender,b.user_gender);a.ea=Uy(a.ea,b.eventid);a.ea&&($y=a.ea);a.csiPageType=Uy(a.csiPageType,b.csi_page_type);a.Ia=Uy(a.Ia,b.csi_service_name);a.Xa=Ry(a.Xa,b.enablecsi);b.enabled_engage_types&&(a.Na=new wk(b.enabled_engage_types.split(",")));a.Ha=Ry(a.Ha,b.iv_allow_in_place_switch)};
qu=function(a,b,c){return b.K&&(a.experiments.aa("legacy_autoplay_flag")||"detailpage"!=a.b||c||b.ed)};
wA=function(a,b,c){b={video_id:b,html5:1,page_subscribe:c?1:0};a.Pb&&(b.authuser=a.Pb);a.pageId&&(b.pageid=a.pageId);return Sg(a.baseYtUrl+"get_video_metadata",b)};
xA=function(a){var b=Jg(a.baseYtUrl);(a=Kg(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.$+"://i1.ytimg.com/vi/"+b+"/"+(c||"hqdefault.jpg")};
AA=function(a){if(a.H)a:{a=a.H;var b={};if(a.b){if(a.b.getVideoPlaybackQuality){a=a.b.getVideoPlaybackQuality();break a}a.b.webkitDecodedFrameCount&&(b.totalVideoFrames=a.b.webkitDecodedFrameCount,b.droppedVideoFrames=a.b.webkitDroppedFrameCount)}a=b}else a={};return a};
ar=function(a){return"detailpage"==a.b&&"gaming"!=a.g};
lA=function(a){return iA&&!a.Bc||Qp()||Jp("nintendo 3ds")?!0:!1};
BA=function(a){return Pp()||"TV"==a.o.cplatform};
pA=function(a){return"web"==a.o.c.toLowerCase().substr(0,3)};
mA=function(){r("yt.mobile.blazer.blazer_config.isMobilePersistentUniplayer");return!1};
DA=function(a){return a.C&&$l&&!CA&&!Jy};
FA=function(a){return DA(a)||a.C&&Zz&&!CA&&yc(38)||a.C&&Cc&&!CA&&yc(27)||a.C&&EA&&!Rp()&&yc(11)};
Eba=function(a){return!a.experiments.aa("html5_stream_ambisonic_audio")||!FA(a)||Zz&&!yc(47)?!1:window.AudioContext||window.webkitAudioContext?!0:!1};
GA=function(a){this.o=[];this.G=!1;this.A=a;this.C=[];this.D=[];S.call(this,{J:"div",X:"caption-window",V:{id:"caption-window-"+a.id},R:[{J:"span",X:"captions-text",V:{tabindex:0,"aria-live":"assertive"}}]});this.B=this.qa["captions-text"];this.$=null!=this.B.style["box-decoration-break"]||null!=this.B.style["-webkit-box-decoration-break"];this.type=this.K=this.F=0;this.b=null};
HA=function(a){var b=1+.25*(a.Nf||0);if(0==a.offset||2==a.offset)b*=.8;return b};
IA=function(a,b){var c={};if(null!=b.fd||b.background){var d=null!=b.fd?b.fd:a.b.La.fd,e=Zv(b.background?b.background:a.b.La.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.Nf||null!=b.offset)c["font-size"]=a.K*HA(b)+"px",c["line-height"]="1.32em";d=1;if(b.color||null!=b.Pe)e=Zv(b.color||a.b.La.color),d=null==b.Pe?a.b.La.Pe:b.Pe,e="rgba("+e[0]+","+e[1]+","+e[2]+","+d+")",c.color=e,c.fill=e;if(null!=
b.be&&0!=b.be){e="rgba(34, 34, 34, "+d+")";d="rgba(204, 204, 204, "+d+")";b.Go&&(d=e=b.Go);var f;switch(b.be){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=Lp()&&Mp()?"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.La.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.Nl&&(c["font-style"]="italic");b.xm&&(c["text-decoration"]="underline");b.pl&&(c.visibility="hidden");return c};
JA=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};
KA=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.pl==!!f.pl&&c.be==f.be){for(d=0;d<a.C.length;d++)if(fc(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");is(e,IA(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"),is(e,IA(a,c)),a.B.appendChild(e);if(w(b.text)){k=b.text.split("\n");f=a.A.Ff.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)};
LA=function(a){a.G=!1;a.o=[];a.C=[];a.D=[];Ff(a.B)};
Fba=function(){this.o=[];this.b=[];this.g=-1};
MA=function(a,b){return b?a.b.concat(a.o):a.b};
OA=function(a,b){switch(b.o){case "asr":NA(b,a.o);break;default:if(b.isDefault||0>a.g)a.g=a.b.length;NA(b,a.b)}};
NA=function(a,b){bb(b,x(a.H,a))||b.push(a)};
Gba=function(a,b){var c=$a(a.b,x(b.H,b));-1!=c&&(a.g=c)};
PA=function(a){this.aq=!!a;this.b=new Fba;this.B=[]};
Hba=function(a,b){return bb(MA(a.b,!0),function(a){return a.toString()==b})};
QA=function(a){PA.call(this,a.Tb);this.g=null;this.A=void 0;this.o=null;this.B=a.captionTranslationLanguages};
Iba=function(){this.ra=this.jb=!1;this.da=1;this.o=20971520;this.B=8388608;this.b=window.NaN;this.M=3145728;this.O=62914560;this.$=10485760;this.ca=window.NaN;this.Ha=2;this.Ba=25;this.C=2097152;this.H=!1;this.F=1800;this.fa=2;this.g=1.15;this.A=1.05;this.va=!0;this.liveChunkReadahead=3;this.Ta=Jp("xboxone")||Op()||Kp();this.L=25;this.ba=!1;this.Sa=$l&&!0;this.Xa=!0;this.ia=this.Na=this.G=!1;this.Ia=.8;this.ka=this.oa=this.Ja=!1;this.ea=15;this.ga=10;this.Oa=1.25;this.D=this.Da=!1;this.K=0;this.S=
this.na=!1};
Jba=function(a,b){1080<b&&!a.jb&&(a.o=36700160,a.B=5242880,a.M=10485760,a.C=4194304,a.jb=!0);2160<b&&!a.ra&&(a.o=104857600,a.ra=!0)};
RA=function(){this.sa=[]};
SA=function(a,b){G.call(this);this.F=b;this.D=new RA;this.o=!0;this.G=this.A=this.B=this.C=this.b=null;this.g=window.NaN};
Kba=function(a,b){a.C=b};
TA=function(a){var b;if(b=!a.o&&null!==a.b)b=a.b,b=b.b.cn(b);return b&&!a.A&&!(a.b&&30<a.b.startTime-a.F.getCurrentTime())};
XA=function(a){a.isDisposed();var b;b=a.b;b=UA(b.b,b);if(!a.D.contains(b.b[0].A)){var c=VA(WA(b));a.A=Zj(c,{format:"RAW",zc:x(a.H,a),withCredentials:!0});a.B=b;var c=a.D,d=a.B.b[0].A,e=zb(c.sa,d);0<=e||0>e&&1==(-e-1)%2||(e=-e-1,0<e&&1==d-c.sa[e-1]&&e<c.sa.length&&1==c.sa[e]-d?(nb(c.sa,e),nb(c.sa,e-1)):0<e&&1==d-c.sa[e-1]?c.sa[e-1]=d:e<c.sa.length&&1==c.sa[e]-d?c.sa[e]=d:(ub(c.sa,e,0,d),ub(c.sa,e+1,0,d)))}a.b=Za(b.b)};
Lba=function(a){a.g=Si(x(function(){TA(this)&&XA(this)},a),1E3);
TA(a)&&XA(a)};
YA=function(a,b){PA.call(this);this.o=a;this.g=new SA(0,b)};
ZA=function(a){GA.call(this,a);this.type=1};
$A=function(a){GA.call(this,a);J(this.element,"ytp-caption-window-rollup");this.type=2;this.H=0;this.L=window.NaN;this.M=null;this.S=this.O=void 0;this.ca=new fe(this.vD,433,this);H(this,this.ca)};
aB=function(a,b,c,d,e,f,k){aq.call(this,a,a+b,{priority:c});this.o=d;this.text=e;this.C=f||!1;this.g=k||null};
bB=function(a,b,c,d,e){aq.call(this,a,a+b,{priority:c});this.id=d;this.params=e;this.Ff=[]};
cB=function(a){return new bB(0,0x8000000000000,0,"0",a||{})};
dB=function(a,b,c,d){PA.call(this,d);c||(c=Oj(a).hl||"",c=c.split("_").join("-"));this.o=Qj(a,{hl:c});this.A=b;this.C={};this.g=null};
eB=function(){this.b=[];this.g=[]};
gB=function(a){eB.call(this);this.g.push(cB());a=a.firstChild.childNodes;for(var b=0,c=a.length;b<c;b++)fB(a[b],this.b)};
fB=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=cs("<html>"+(a.firstChild&&a.firstChild.nodeValue||"")+"</html>");hB(c,d,k,e,f,l.firstChild,{},b)};
hB=function(a,b,c,d,e,f,k,l){switch(f.tagName){case "b":k.bold=!0;break;case "i":k.Nl=!0;break;case "u":k.xm=!0;break;case "font":var m=f.getAttribute("color");iB.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 aB(a,b,c,d,n.nodeValue,e||0<m,bc(k)?void 0:k));else{var t={};qa(t,k);hB(a,b,c,d,!0,n,t,l)}}};
jB=function(a){eB.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=cB());var f={};e&&(qa(f,e.params),e=e.params.La)&&(f.La={},qa(f.La,
e));d.getAttribute("rc")&&(f.nh=(0,window.parseInt)(d.getAttribute("rc"),10));d.getAttribute("cc")&&(f.No=(0,window.parseInt)(d.getAttribute("cc"),10));d.getAttribute("ap")&&(e=(0,window.parseInt)(d.getAttribute("ap"),10),f.ai=0>e||8<e?7:e);d.getAttribute("ah")&&(f.Oi=(0,window.parseInt)(d.getAttribute("ah"),10));d.getAttribute("av")&&(f.pj=(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.xg=1,0==(0,window.parseInt)(d.getAttribute("pd"),10)&&(f.xg=0));d.getAttribute("bc")&&(f.La||(f.La={}),f.La.backgroundColor=d.getAttribute("bc"));d.getAttribute("bo")&&(f.La||(f.La={}),f.La.fd=(0,window.parseInt)(d.getAttribute("bo"),10)/100);d.getAttribute("fc")&&(f.La||(f.La={}),f.La.color=d.getAttribute("fc"));d.getAttribute("sd")&&(f.tF=(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 bB(b,e,0,d,f)}else b=null}this.o[c]=b;this.g.push(b);break;case "text":for(c=this.b.length,fB(a,this.b);c<this.b.length;c++)b=this.b[c],(f=this.o[b.o])&&f.Ff.push(b)}a=a.nextSibling}0==this.g.length&&this.g.push(cB())};
rB=function(a,b){eB.call(this);a.firstChild.getAttribute("format");this.o=!!b;for(var c={$i:{},Ws:{},Xs:{}},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.$i,n=c,t=m,m={},u=t.getAttribute("p");u&&qa(m,n.$i[u]);n=kB(t,"b");null!=n&&(m.bold=n);n=kB(t,"i");null!=n&&(m.Nl=n);n=kB(t,"u");null!=n&&(m.xm=n);n=lB(t,"et");
null!=n&&(m.be=n);n=lB(t,"of");null!=n&&(m.offset=n);n=mB(t,"bc");null!=n&&(m.background=n);n=mB(t,"ec");null!=n&&(m.Go=n);n=mB(t,"fc");null!=n&&(m.color=n);n=lB(t,"fs");void 0!=n&&0!=n&&(m.fontFamily=n);n=nB(t,"sz");void 0!=n&&(m.Nf=n/100-1);n=nB(t,"bo");void 0!=n&&(m.fd=n/255);t=nB(t,"fo");void 0!=t&&(m.Pe=t/255);k[l]=m;break;case "ws":k=m.getAttribute("id");c.Xs[k]=oB(this,c,m);break;case "wp":k=m.getAttribute("id"),c.Ws[k]=pB(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=qB(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=[],D=nB(n,"t")||0,A=nB(n,"d")||0,Q=n.getAttribute("w")||"0",I=!!kB(n,"a");y&&"\n"==y.text&&!I&&(I=!0);for(var y=I?6:5,P=t.$i[n.getAttribute("p")],ab=n.childNodes,ib=0;ib<ab.length;ib++){var kb=ab[ib];if("s"==kb.tagName){0<ib&&(I=!0);var wb=kb,kb=D,hg=A,Or=Q,Pr=I,Mn=y,Gk=wb.textContent?wb.textContent:"",Hk=t.$i[wb.getAttribute("p")],wb=nB(wb,"t")||0,kb=new aB(kb+wb,hg-wb,Mn,
Or,Gk,Pr,Hk)}else kb=new aB(D,A,y,Q,n.textContent?n.textContent:"",I,P);u.push(kb)}n=u;if(0<n.length)for(k=n[n.length-1],t=d[n[0].o],t||(t=qB(this,c,m,f--),this.g.push(t)),m=0;m<n.length;m++)u=n[m],n[m].o=t.id,t.Ff.push(u),this.b.push(u)}};
nB=function(a,b){var c=a.getAttribute(b);if(null!=c)return(0,window.parseFloat)(c)};
kB=function(a,b){var c=a.getAttribute(b);if(null!=c)return"1"==c};
lB=function(a,b){var c=nB(a,b);if(void 0!=c)return c};
mB=function(a,b){var c=a.getAttribute(b);if(null!=c)return iB.test(c),c};
oB=function(a,b,c){var d={},e=c.getAttribute("ws");e&&qa(d,b.Xs[e]);b=lB(c,"mh");null!=b&&(d.Rl=b);b=lB(c,"ju");null!=b&&(d.textAlign=b);b=lB(c,"pd");null!=b?d.xg=b:a.o&&(d.xg=1);a=mB(c,"wfc");null!=a&&(d.windowColor=a);c=nB(c,"wfo");void 0!=c&&(d.Bg=c/255);return d};
pB=function(a,b){var c={},d=b.getAttribute("wp");d&&qa(c,a.Ws[d]);d=lB(b,"ap");null!=d&&(c.ai=d);d=nB(b,"cc");null!=d&&(c.No=d);d=nB(b,"ah");null!=d&&(c.Oi=d);d=nB(b,"rc");null!=d&&(c.nh=d);d=nB(b,"av");null!=d&&(c.pj=d);return c};
qB=function(a,b,c,d){d=d||c.getAttribute("id")||"0";var e=nB(c,"t"),f=nB(c,"d")||0x8000000000000,k={};qa(k,pB(b,c));qa(k,oB(a,b,c));return new bB(e,f,0,d,k)};
vB=function(a,b){eB.call(this);this.o=cB({Rl:0});this.g.push(this.o);for(var c=a.split(Mba),d=1;d<c.length;d++){var e=c[d],f=b;if(""!=e&&!Nba.test(e)){var k=sB.exec(e);if(k&&3<=k.length){var l=tB(k[1]),k=tB(k[2])-l,e=e.substring(sB.lastIndex);sB.lastIndex=0;var f=l+f,l=k,m=e,k={},n=this.o,e=5;if(0>m.indexOf("<"))this.b.push(new aB(f,l,e,n.id,m,!1,bc(k)?void 0:k));else{m=m.split(Oba);1!=m.length&&(e=6,n="_"+Pba++,n=new bB(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 D=cs("<html>"+y+"</html>"),A;D.getElementsByTagName("parsererror").length?(A=D.createElement("span"),A.appendChild(D.createTextNode(y))):A=D.firstChild;uB(this,t,l-(t-f),e,n,0<u,A,k,this.b)}else t=tB(y)}}}sB.lastIndex=0}}};
uB=function(a,b,c,d,e,f,k,l,m){switch(k.tagName){case "b":l.bold=!0;break;case "i":l.Nl=!0;break;case "u":l.xm=!0}for(var n=0;n<k.childNodes.length;n++){var t=k.childNodes[n];if(3==t.nodeType)t=new aB(b,c,d,e.id,t.nodeValue,f||0<n,bc(l)?void 0:l),m.push(t),e!=a.o&&e.Ff.push(t);else{var u={};qa(u,l);uB(a,b,c,d,e,!0,t,u,m)}}};
tB=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};
Rba=function(a,b,c){if("WEBVTT"==a.substring(0,6))return new vB(a,c||0);a=cs(a);return a&&a.firstChild?"timedtext"==a.firstChild.tagName?3==(0,window.parseInt)(a.firstChild.getAttribute("format"),10)?(b=Qba.test(b.g),new rB(a,b)):new jB(a):new gB(a):new eB};
yB=function(a){dq.call(this,a,"subtitlesModuleData");this.Ma="captions";this.logEvent="cc";dy();this.fa=!0;this.da=!1;this.W=T(a);this.B=null;this.K=Jx(a);this.Z=a;this.A={La:{}};this.C={La:{}};this.$=[];this.O={};this.S={};this.ka=this.L=this.ga=!1;var b=a=this.g=this.o=this.G=this.H=null;xB(this)||(a=new fe(this.zm,0,this),H(this,a),b=new fe(this.TE,2E3,this),H(this,b));this.ia=a;this.na=b;this.ba=new Dw(this);H(this,this.ba);this.ea=null};
xB=function(a){return"3"!=a.W.A?!1:!!a.Z.app.o.b.textTracks};
zB=function(a,b){if(b&&a.B.captionTracks.length){var c=a.b.Fh().Ao;if(2==c||3==c)return!0}if(1==a.W.va||1==a.B.Un||"alwayson"==a.B.Kd("yt:cc")||xB(a))return!0;c=kq(a,"module-enabled");return null!=c?!!c:"on"==a.B.Kd("yt:cc")};
AB=function(a){return xB(a)?!a.B.za:a.B.captionTracks.length&&a.b.Fh().si?!0:zB(a,!0)};
CB=function(a){a.g&&a.g==a.o.Fe()&&BB(a);a.o.Pl(x(a.Ar,a),!0,xB(a)?"vtt":void 0,a.b.Fh())};
EB=function(a){a.o.Fe()&&DB(a,a.o.Fe())};
BB=function(a){a.g&&(a.g=null,xB(a)||(fq(a),a.$=[],a.g=null,a.zm()),a.o.ym())};
DB=function(a,b,c){!b||a.g&&b.H(a.g)||(null!=c&&(a.L=c),a.F?(a.g=b,FB(a),a.bm("control_subtitles_set_track",qz(b))):(BB(a),a.g=b,(3!=a.b.getPresentingPlayerType()||a.W.experiments.aa("legacy_control_redirecting"))&&a.o.Ol(b,x(a.Br,a)),a.b.Aa("captionschanged",qz(b))))};
HB=function(a,b,c){b.migrated=!0;var d=GB.La;a.A={};qa(a.A,GB);a.A.La={};qa(a.A.La,d);a.C={La:{}};var e=b.backgroundOverride?a.C:a.A,f=b.background||d.background;iB.test(f);e.La.background=f;e=b.colorOverride?a.C:a.A;f=b.color||d.color;iB.test(f);e.La.color=f;e=b.windowColorOverride?a.C:a.A;f=b.windowColor||GB.windowColor;iB.test(f);e.windowColor=f;e=b.backgroundOpacityOverride?a.C:a.A;f=b.backgroundOpacity;null==f&&(f=d.fd);e.La.fd=f;e=b.fontSizeIncrementOverride?a.C:a.A;f=b.fontSizeIncrement;null==
f&&(f=d.Nf);e.La.Nf=f;e=b.textOpacityOverride?a.C:a.A;f=b.textOpacity;null==f&&(f=d.Pe);e.La.Pe=f;e=b.windowOpacityOverride?a.C:a.A;f=b.windowOpacity;null==f&&(f=GB.Bg);e.Bg=f;e=b.charEdgeStyleOverride?a.C:a.A;f=b.charEdgeStyle;null==f&&(f=d.be);e.La.be=f;e=b.fontFamilyOverride?a.C:a.A;f=b.fontFamily;null==f&&(f=d.fontFamily);e.La.fontFamily=f;a.Ns();c&&lq(a,"display-settings",b)};
IB=function(a){var b=GB.La,b={background:b.background,backgroundOpacity:b.fd,charEdgeStyle:b.be,color:b.color,fontFamily:b.fontFamily,fontSizeIncrement:b.Nf,textOpacity:b.Pe,windowColor:GB.windowColor,windowOpacity:GB.Bg};a=kq(a,"display-settings");for(var c in a)null!=a[c]&&(b[c]=a[c]);return b};
JB=function(a,b,c){var d={};qa(d,kq(a,"display-settings"));qa(d,b);HB(a,d,c)};
LB=function(a){if(a.loaded){if(!xB(a)){var b=a.na;b.isActive()&&ge(b)}lq(a,"module-enabled",!1);BB(a);KB(a.b);a.L=!1;a.F?(FB(a),a.bm("control_subtitles_set_track")):a.b.Aa("captionschanged",{});xB(a)||EB(a)}};
Sba=function(a){return yB.prototype.xb(a)?new yB(a):null};
MB=function(a,b){if(b&&!a.G){var c=cB({xg:0});a.G=new GA(c);Qv(a.b,a.G.element,4);var c=new aB(0,0,0,a.G.A.id,O("YTP_SAMPLE_SUBTITLES")),d=a.K.Ka().width,e=Ix(a.K,!0).height;a.G.Se(a.A,a.C,d,e,[c])}else!b&&a.G&&(a.G.dispose(),a.G=null)};
Tba=function(a,b){return a&&w(a)&&iB.test(a)?a:b};
Uba=function(a,b){return ga(a)&&!(0,window.isNaN)(a)?Math.max(0,Math.min(1,(0,window.parseFloat)(a))):b};
Vba=function(a,b){if(a&&w(a)){var c=NB.indexOf(a);return-1!=c?c:b}return b};
Wba=function(a,b){if(a&&w(a)){var c=OB.indexOf(a);return-1!=c?c:b}return b};
Xba=function(a,b){return ga(a)&&!(0,window.isNaN)(a)?$e(a,-2,4):b};
FB=function(a){var b={};a.g&&(b=qz(a.g));a.b.Aa("captionschanged",b)};
PB=function(a,b){this.b=a||0;this.spatialAudioType=b||0};
QB=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.$e=f||null;this.o=Yba[hu(this)]||""};
hu=function(a){return a.id.split(";",1)[0]};
RB=function(a){return"9"==a.o||"("==a.o||"9h"==a.o};
SB=function(a){return!(a.audio&&a.video)};
TB=function(a){return 0<=a.indexOf("opus")||0<=a.indexOf("vorbis")||0<=a.indexOf("mp4a")};
UB=function(a){return 0<=a.indexOf("vp9")||0<=a.indexOf("vp8")||0<=a.indexOf("avc1")};
VB=function(a,b,c){this.name=a;this.id=b;this.isDefault=c};
WB=function(a,b,c,d,e,f,k,l,m,n){this.width=a;this.height=b;if(!f)a:{f=Math.max(a,b);a=Math.min(a,b);b=Lz[0];for(var t=0;t<Lz.length;t++){var u=Lz[t],y=hy[u];if(f>=Math.floor(16*y/9)*WB.prototype.g||a>=y*WB.prototype.g){f=b;break a}b=u}f="tiny"}this.quality=f;this.KE=hy[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=hy[this.quality],c=0==e?O("YTP_AUTO"):e+(2==d||3==d?"s":"p")+(55<c?"60":49<c?"50":39<c?"48":""));this.qualityLabel=
c;this.o=m||"";this.b=!1!==n};
Zba=function(a){return XB(function(a,c){return Zt(a,c,4,1E3)},a,{format:"RAW",
method:"GET"})};
XB=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?XB(a,e,c):b})};
YB=function(a){this.o=a;this.B=this.A=this.C="";this.b={};this.g=""};
ZB=function(a){a.g||(a.g=$ba(a));return a.g};
aC=function(a){$B(a);return a.B};
bC=function(a){$B(a);return Rb(a.b,function(a){return null!==a})};
$B=function(a){if(a.o){if(!cC.test(a.o))throw Error("Untrusted URL: "+a.o);var b=nh(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=dC(c);qa(a.b,eC(b.K()));qa(a.b,d);a.o="";a.g=""}};
$ba=function(a){$B(a);var b=a.C+(a.C?"://":"//")+a.B+a.A;if(bC(a)){var c=[];Ob(a.b,function(a,b){null!==a&&c.push(b+"="+a)});
b+="?"+c.join("&")}return b};
dC=function(a){a=a.split("/");var b=0;a[0]||b++;for(var c={};b<a.length;b+=2)a[b]&&fC(c,a[b],a[b+1]);return c};
eC=function(a){a=a.split("&");for(var b={},c=0;c<a.length;c++){var d=a[c],e=d.indexOf("=");0<e?fC(b,d.substr(0,e),d.substr(e+1)):d&&(b[d]="")}return b};
fC=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};
gC=function(a,b){this.start=a;this.end=b;this.length=b-a+1};
hC=function(a){a=a.split("-");return 2==a.length&&(a=new gC((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};
iC=function(a,b){return new gC(a,a+b-1)};
jC=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""};
kC=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};
lC=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)};
mC=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};
nC=function(){this.sa=[]};
pC=function(a,b){var c=oC(a,b);return c?c.ingestionTime:window.NaN};
oC=function(a,b){var c=zb(a.sa,new mC(b,0,0,0,""),function(a,b){return a.b-b.b});
return 0<=c?a.sa[c]:null};
aca=function(a,b){var c=zb(a.sa,{startTime:b},function(a,b){return a.startTime-b.startTime});
return 0<=c?a.sa[c]:a.sa[Math.max(0,-c-2)]};
qC=function(a,b){if(b>a.Rb())a.sa=[];else{var c=$a(a.sa,function(a){return a.b>=b},a);
0<c&&a.sa.splice(0,c)}};
rC=function(a){this.b=a;this.g={};this.o=""};
bca=function(a,b){var c=b.indexOf("?");if(0<c){var d=eC(b.substr(c+1));Ob(d,function(a,b){this.set(b,a)},a);
b=b.substr(0,c)}d=dC(b);Ob(d,function(a,b){this.set(b,a)},a)};
VA=function(a){a.o||(a.o=cca(a));return a.o};
cca=function(a){var b=ZB(a.b),c=[];Ob(a.g,function(a,b){c.push(b+"="+a)});
if(!c.length)return b;var d=c.join("&");a=bC(a.b)?"&":"?";return b+a+d};
dca=function(a,b){var c=new YB(b);Ob(a.g,function(a,b){c.set(b,null)});
return c};
eca=function(a){this.b=a;this.A=a.clone();this.g=0;this.o=-1};
sC=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 eca(a)};
tC=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};
fca=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)};
uC=function(a){return 1==a.type||2==a.type};
vC=function(a,b){return a.b==b.b&&a.range.start+a.g+a.o==b.range.start+b.g};
gca=function(a){1==a.length||Qk(a,function(a){return!!a.range});
for(var b=1;b<a.length;b++);b=a[a.length-1];return new gC(a[0].range.start+a[0].g,b.range.start+b.g+b.o-1)};
xC=function(a){var b="";Ob(wC(a),function(a,d){b+=d+"="+a+","});
return b.slice(0,-1)};
wC=function(a){var b={};b.itag=hu(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};
yC=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?gca(this.b):null;this.A=!!c};
WA=function(a,b){var c;/http[s]?:\/\//.test(a.g)?c=new rC(new YB(a.g)):(c=new rC(a.o.b),a.g&&bca(c,a.g));var d=b||a.range;d&&c.set("range",d.toString());return c};
zC=function(a){if(a.range)return a.range.length;a=a.b[0];return Math.round(a.G*a.b.info.b)};
AC=function(a,b,c,d,e,f){sC.call(this,a,b,d);this.index=e||new nC;this.F=c;this.D=!0;this.g=!!f;if(this.B=!c)this.o=!0};
UA=function(a,b){return BC(a,b.C?b.A+1:b.A,!1)};
BC=function(a,b,c){if(a.g&&0==a.index.We(b))return a=new tC(3,a,null,b),b=0<=b?"sq/"+b:"",new yC([a],b,!!b);var d=a.index.lp(b),e=a.index.Xe(b),f=a.index.We(b);c?f=c=0:c=0<a.info.b?a.info.b*f:1E3;a=new tC(3,a,null,b,e,f,0,c,b==a.index.Rb()&&!a.D&&0<c);return new yC([a],d)};
CC=function(a,b,c){this.Wd=a;this.durationSecs=b;this.context=c};
hca=function(a,b,c,d){this.b=a;this.Wd=b;this.durationSecs=c;this.g=d||window.NaN};
DC=function(){this.b=[];this.g=null;this.A=0;this.o=[]};
ica=function(a){var b=a.o;a.o=[];return b};
jca=function(){this.A=[];this.b=null;this.g={};this.o={}};
nca=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=kca(a):"AdaptationSet"==f.nodeName?k=lca(a,f.attributes.mimeType.value):"Representation"==f.nodeName&&(k=mca(a,f.attributes.id.value));if(null==k)return;k.update(b[e],c);sb(d,ica(k))}Cb(d,function(a){return a.Wd});
sb(a.A,d)};
oca=function(a){a.b&&(a.b.b=[]);Ob(a.g,function(a){a.b=[]});
Ob(a.o,function(a){a.b=[]})};
kca=function(a){a.b||(a.b=new DC);return a.b};
lca=function(a,b){a.g[b]||(a.g[b]=new DC);return a.g[b]};
mca=function(a,b){a.o[b]||(a.o[b]=new DC);return a.o[b]};
EC=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};
pca=function(a){this.b=a;this.g=(0,window.parseInt)(this.b["Sequence-Number"],10)||0;this.ingestionTime=((0,window.parseInt)(this.b["Ingestion-Walltime-Us"],10)||0)/1E6;this.A="T"==this.b["Overlayed-With-Slate"];this.o="T"==this.b["Stream-Finished"]};
JC=function(a,b,c){var d=FC(a,0,1836019558);if(!d)return null;var e=FC(a,d.offset+8,1835427940),f=FC(a,d.offset+8,1953653094);if(!e||!f)return null;var k=FC(a,f.offset+8,1952868452),l=FC(a,f.offset+8,1953658222),m=FC(a,f.offset+8,1952867444);if(!k||!l||!m)return null;var n=FC(a,f.offset+8,1935763823);a=FC(a,f.offset+8,1935763834);if(n){var t=GC(n),f=GC(n);if(0!=t||1!=f)return null;t=GC(n)}for(var u=GC(k),y=GC(k),D=u&2,A=u&1?qca(k):0,Q=D?GC(k):0,I=u&8?GC(k):0,f=u&16?GC(k):0,P=u&32?GC(k):0,u=GC(l),
ab=u&1,ib=u&4,kb=u&256,k=u&512,wb=u&1024,hg=u&2048,u=GC(l),Or=ab?GC(l):0,Pr=ib?GC(l):0,ab=[],Mn=[],Gk=[],Hk=[],ux=0,Ye=0,rc=0;rc<u;rc++){var rF=kb?GC(l):I;k&&ab.push(GC(l));var kg=P;ib&&0==rc?kg=Pr:wb&&(kg=GC(l));Mn.push(kg);kg=hg?GC(l):0;0==rc&&(ux=kg);Gk.push(Ye+kg);Hk.push(rc);Ye+=rF}1<=Math.abs(Ye-b)&&c({flaw:"segDurMismatch",dts:Ye.toFixed(),seg:b.toFixed()});Bb(Hk,function(a,b){return Gk[a]-Gk[b]});
c=[];for(rc=0;rc<u;rc++)c[Hk[rc]]=rc;Ye=D?4:0;rc=16*u;I=68+Ye+m.size+rc+(n?n.size:0)+(a?a.size:0);d=I-d.size;l=new tca(I);HC(l,I);HC(l,1836019558);IC(l,e);HC(l,I-24);HC(l,1953653094);HC(l,16+Ye);HC(l,1952868452);HC(l,131072|(D?2:0));HC(l,y);D&&HC(l,Q);IC(l,m);HC(l,20+rc);HC(l,1953658222);HC(l,16781057);HC(l,u);HC(l,A+Or+d);for(rc=Ye=0;rc<u;rc++)m=c[rc],e=Math.round(b*m/u),m=Math.round(b*(m+1)/u)-e,kg=e-Ye+ux,HC(l,m),HC(l,k?ab[rc]:f),HC(l,Mn[rc]),HC(l,kg),Ye+=m;n&&(HC(l,n.size),HC(l,1935763823),HC(l,
0),HC(l,1),HC(l,t+d));a&&IC(l,a);return l.data.buffer};
MC=function(a){a=new window.DataView(a.buffer,a.byteOffset,a.byteLength);return(a=KC(a,1836476516))?LC(a):window.NaN};
FC=function(a,b,c){for(;NC(a,b);){var d=OC(a,b);if(d.type==c)return d;b+=d.size}return null};
KC=function(a,b){for(var c=0;NC(a,c);){var d=OC(a,c);if(d.type==b)return d;c=PC(d.type)?c+8:c+d.size}return null};
RC=function(a){return a.data.getUint8(a.offset+8)?QC(a.data,a.offset+12):a.data.getUint32(a.offset+12)};
OC=function(a,b){var c=a.getUint32(b),d=a.getUint32(b+4);return new SC(a,b,c,d)};
LC=function(a){var b=a.data.getUint8(a.offset+8)?28:20;return a.data.getUint32(a.offset+b)};
TC=function(a){return a.data.getUint32(a.offset+16)};
QC=function(a,b){return 4294967296*a.getUint32(b)+a.getUint32(b+4)};
NC=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};
PC=function(a){return 1836019558==a||1836019574==a||1953653094==a};
SC=function(a,b,c,d){this.data=a;this.offset=b;this.size=c;this.type=d;this.b=8};
GC=function(a){var b=a.data.getInt32(a.offset+a.b);a.b+=4;return b};
UC=function(a){var b=a.data.getUint32(a.offset+a.b);a.b+=4;return b};
qca=function(a){var b=QC(a.data,a.offset+a.b);a.b+=8;return b};
VC=function(a){var b,c=[];do b=a.data.getUint8(a.offset+a.b),c.push(b),a.b++;while(0!=b);c.pop()};
tca=function(a){this.data=new window.DataView(new window.ArrayBuffer(a));this.b=0};
HC=function(a,b){a.data.setInt32(a.b,b);a.b+=4};
IC=function(a,b){for(var c=0;c+4<=b.size;)HC(a,b.data.getUint32(b.offset+c)),c+=4;for(;c<b.size;)a.data.setUint8(a.b++,b.data.getUint8(b.offset+c++))};
WC=function(a){return(a=FC(a,0,1836019558))?a.offset+a.size:null};
XC=function(a,b){for(var c=FC(a,0,b);c;)a.setUint32(c.offset+4,1936419184),c=FC(a,c.offset+c.size,b)};
YC=function(a,b){this.g=a;this.b=0;this.o=b||0};
$C=function(a){var b=ZC(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 YC(c,a.o+a.b);a.b+=b;return c};
bD=function(a){for(var b=ZC(a,!0),c=aD(a),d=1;d<b;d++)c=256*c+aD(a);return c};
cD=function(a){var b=ZC(a,!0);a.b+=b};
eD=function(a){var b=a.b;a.b=0;var c=!1;dD(a,440786851)&&(a.b=0,dD(a,408125543)&&(c=!0));a.b=b;return c};
fD=function(a){var b=a.b;a.b=0;var c=1E6;dD(a,408125543)&&(ZC(a,!0),dD(a,357149030)&&(ZC(a,!0),dD(a,2807729)&&(c=bD(a))));a.b=b;return c};
uca=function(a,b){var c=a.b;a.b=0;if(!gD(a)||!dD(a,160))return a.b=c,window.NaN;ZC(a,!0);if(!dD(a,161))return a.b=c,window.NaN;var d=ZC(a,!0);aD(a);var e=aD(a)<<8|aD(a);a.b+=d-3;if(!dD(a,155))return a.b=c,window.NaN;d=bD(a);a.b=c;return(e+d)*b/1E9};
gD=function(a){if(eD(a)){if(!dD(a,408125543))return!1;ZC(a,!0)}if(!dD(a,524531317))return!1;ZC(a,!0);return!0};
dD=function(a,b){if(a.b>=a.g.byteLength)return!1;for(;ZC(a,!1)!=b;)if(cD(a),a.b>=a.g.byteLength)return!1;return!0};
ZC=function(a,b){var c=aD(a);if(1==c){for(var d=c=0;7>d;d++)c=256*c+aD(a);return c}for(var e=128,d=0;6>d&&e>c;d++)c=256*c+aD(a),e*=128;return b?c-e:c};
aD=function(a){return a.g.getUint8(a.b++)};
hD=function(a,b,c,d,e){this.info=a;this.b=b;this.range=c;this.o=null;this.g=d;this.B=e};
iD=function(a){return a.range?new window.DataView(a.b,a.range.start,a.range.length):new window.DataView(a.b)};
jD=function(a,b){b=Math.min(b,a.info.o);var c=iC(a.range.start,b);return[new hD(new tC(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 hD(new tC(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 gC(c.end+1,a.range.end),a.g,!1)]};
kD=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;NC(d,k);){var l=OC(d,k);(0,window.isNaN)(e)&&(1936286840==l.type?e=TC(l):1836476516==l.type&&(e=LC(l)));if(1952867444==l.type){!e&&c&&(e=MC(c));var m=RC(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=PC(l.type)?k+8:
k+l.size}return!0}e=new YC(new window.DataView(a.info.b.b.buffer));c=new YC(new window.DataView(a.b));d=b;f=fD(e);e=c.b;c.b=0;if(gD(c)&&dD(c,231))if(k=ZC(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};
lD=function(a){var b;if(1==a.info.b.info.g){for(var c=b=0,d=new window.DataView(a.b);NC(d,b);){var e=OC(d,b);if(1936286840==e.type){var f=TC(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=PC(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;NC(d,c);){e=OC(d,c);if(1836476516==e.type)m=LC(e);else if(1836019558==e.type){!m&&b&&(m=MC(b));if(!m){b=window.NaN;
break a}l=e;k=m;var n=FC(l.data,l.offset+8,1953653094),t=FC(l.data,n.offset+8,1952868452),l=FC(l.data,n.offset+8,1953658222),n=GC(t);GC(t);n&2&&GC(t);var t=n&8?GC(t):0,u=GC(l),y=u&1,n=u&4,D=u&256,A=u&512,Q=u&1024,u=u&2048,I=UC(l);y&&GC(l);n&&GC(l);for(var P=y=0;P<I;P++){var ab=D?GC(l):t;A&&GC(l);n&&0==P||!Q||GC(l);u&&GC(l);y+=ab}f+=y/k}c=PC(e.type)?c+8:c+e.size}b=f||window.NaN}}else m=new YC(new window.DataView(a.info.b.b.buffer)),b=uca(new YC(new window.DataView(a.b)),fD(m));return b||a.info.G};
mD=function(a){var b;b=new window.DataView(a.b);b=(b=KC(b,1936286840))?TC(b):window.NaN;(0,window.isNaN)(b)&&(b=a.info.b.b,a=new window.DataView(a.b),b=(a=KC(a,1836476516))?LC(a):b?MC(b):window.NaN);return b};
nD=function(a){return 1==a.info.b.info.g?a.o?a.o.A&&!!FC(new window.DataView(a.b),0,1718909296):!1:eD(new YC(new window.DataView(a.b)))};
oD=function(){this.ya=0;this.b=new window.Float64Array(128);this.g=new window.Float64Array(128);this.A=1;this.o=!1};
pD=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]}};
qD=function(a,b,c,d,e,f){sC.call(this,a,b,c||void 0);this.indexRange=d;this.B=null;this.index=new oD;this.g=e;this.lastModified=f};
rD=function(a,b,c,d){for(var e=[];b<=a.index.Rb();b++){var f;f=a.index;f=iC(f.Ij(b),b+1<f.ya||f.o?f.b[b+1]-f.b[b]:-1);var k=a.index.Xe(b),l=a.index.We(b),m=Math.max(0,c-f.start),n=Math.min(f.end+1,c+d)-(f.start+m);e.push(new tC(3,a,f,b,k,l,m,n,b==a.index.Rb()&&m+n==f.length));if(f.start+m+n>=c+d)break}return new yC(e)};
sD=function(a,b,c){if(!a.Wc())return c=iC(b.range.end+1,c),c.end+1>a.g&&(c=new gC(c.start,a.g-1)),new yC([new tC(4,b.b,c)]);4==b.type&&(b=a.fj(b),b=b[b.length-1]);var d=0,e=b.range.start+b.g+b.o;3==b.type&&(d=b.A,e==b.range.end+1&&(d+=1));return rD(a,d,e,c)};
tD=function(a,b,c){nk.call(this);this.H=this.duration=0;this.isLive=this.o=!1;this.D=yq();this.B=window.Infinity;this.b={};this.L=a||"";this.C=this.G=0;this.A=null;this.ba=!!b&&b.aa("html5_live_nonzero_first_segment_start_time");this.g=!1;this.F=[];this.da=!!b&&b.aa("html5_live_self_init_segments");this.K=null;this.fa=c};
Yz=function(a){return Rb(a.b,function(a){return!!a.info.$e},a)};
aA=function(a){return Rb(a.b,function(a){return a.info.video?2==a.info.video.projectionType:!1},a)};
bA=function(a){return Rb(a.b,function(a){return a.info.video?3==a.info.video.projectionType:!1},a)};
uD=function(a,b,c,d){return d?vca(a):wca(a,b,c)};
wca=function(a,b,c){var d=new tD;d.duration=c||0;F(a,function(a){var c=vD(a,b,d.duration),k=hC(a.init),l=hC(a.index),m=(0,window.parseInt)(a.clen,10),n=wD(a.url,c,a.s);a=(0,window.parseInt)(a.lmt,10);n&&(c=new qD(n,c,k,l,m,a),d.b[c.info.id]=c)});
return d};
vca=function(a){var b=new tD;F(a,function(a){var d=vD(a);if(a=wD(a.url,d,a.s))d=new AC(a,d,"",void 0,void 0,!0),b.b[d.info.id]=d});
b.o=!0;b.g=!0;b.isLive=!0;return b};
vD=function(a,b,c){var d=a.type,e=xca(a),f=null;UB(d)&&(f=(a.size||"640x360").split("x"),f=new WB(+f[0],+f[1],+a.fps,+a.projection_type,void 0,void 0,!!a.isAccelerated,a.quality_label,a.eotf,!!a.isAcceleratedUiEnabled));var k=null,l=null;TB(d)&&(k=new PB(void 0,+a.spatial_audio_type),a.name&&(l=new VB(a.name,a.audio_track_id,"1"==a.isDefault)));var m=(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 QB(e,d,k,f,l,t,m,c)};
xca=function(a){var b=a.itag;a.xtags&&(b=a.itag+";"+a.xtags);return b};
wD=function(a,b,c){a=new YB(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",fy(c));return a};
yD=function(a,b){var c=jC(b,"id"),c=c.replace(":",";");"captions"==c&&(c=jC(b,"lang"));var d=jC(b,"mimeType"),e=jC(b,"codecs"),d=e?d+'; codecs="'+e+'"':d,e=(0,window.parseInt)(jC(b,"bandwidth"),10)/8,f=(0,window.parseInt)(kC(b,"BaseURL").getAttribute("yt:contentLength"),10),f=a.duration&&f?f/a.duration:0,k=null;if(UB(d)){var k=(0,window.parseInt)(jC(b,"width"),10),l=(0,window.parseInt)(jC(b,"height"),10),m=(0,window.parseInt)(jC(b,"frameRate"),10),n=jC(b,"yt:stereoLayout"),t="equirectangular"==jC(b,
"yt:projectionType"),u,y;t&&"layout_top_bottom"==n?u=3:t&&!n?u=2:"layout_left_right"==n&&(y=1);k=new WB(k,l,m,u,y)}y=u=null;if(TB(d)){u=(0,window.parseInt)(jC(b.getElementsByTagName("AudioChannelConfiguration")[0],"value"),10);var D;y=jC(b,"yt:spatialAudioType");"spatial_audio_type_ambisonics_5_1"==y?D=1:"spatial_audio_type_ambisonics_quad"==y&&(D=2);u=new PB(u,D);D=jC(b,"lang")||"";(y=kC(b,"Role"))?(y=jC(y,"value")||"",y=D&&Zb(xD,y)?new VB(jC(b,"yt:langName")||D+" - "+y,D+"."+xD[y],"main"==y):null):
y=null}l=null;if(D=kC(b,"ContentProtection"))if((l=D.attributes.schemeIdUri)&&"http://youtube.com/drm/2012/10/10"==l.textContent)for(l={},D=D.firstChild;null!=D;D=D.nextSibling)"yt:SystemURL"==D.nodeName&&(l[D.attributes.type.textContent]=D.textContent.trim());else l=null;return new QB(c,d,u,k,y,l,e,f)};
zD=function(a,b){a.C=1;a.D=yq();return Sd(Zba(b||a.L).then(x(a.O,a)),x(a.S,a))};
yca=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=hC(a):d=d+"?range="+a));return new mC(b.b,b.Wd,b.durationSecs,b.g,d,e)};
AD=function(a){a=a.b;for(var b in a){var c=a[b].index;if(c&&c.Ye())return c.Fg()}return window.NaN};
BD=function(a){a=a.b;for(var b in a){var c=a[b].index;if(c&&c.Ye())return c.Ot()}return 0};
CD=function(a){var b=a.b,c;for(c in b)if((a=b[c].index)&&a.Ye()){c=0;for(b=a.Sf();b<=a.Rb();b++)c+=a.We(b);c/=a.Wk();return.5*Math.round(c/.5)}return window.NaN};
zca=function(a,b){Ob(a.b,function(a){Ob(b,function(b,e){var f=a.C;f.b.set(e,b);f.A.set(e,b)})})};
Aca=function(a,b){if(!a.b["0"]){var c=new WB(0,0,0,void 0,void 0,"auto"),c=new QB("0","",void 0,c);a.b["0"]=b?new AC(new YB("http://www.youtube.com/videoplayback"),c,""):new qD(new YB("http://www.youtube.com/videoplayback"),c,new gC(0,0),new gC(0,0),0,window.NaN)}};
DD=function(a,b,c){this.b=a;this.g=b;this.B=c;this.A={};this.o=null;this.fairPlayCert=""};
FD=function(a){return!a.o&&ED()&&"com.microsoft.playready"==a.g};
GD=function(a){return!a.o&&ED()&&"com.apple.fps.1_0"==a.g};
ED=function(){var a=window.MSMediaKeys;Op()&&!a&&(a=window.WebKitMediaKeys);return a&&a.isTypeSupported?a:null};
ID=function(a){var b=$l&&uz("45"),c=HD&&a.aa("edge_nonprefixed_eme");a=Zz&&uz("47")&&a.aa("firefox_eme");return window.navigator.requestMediaKeySystemAccess&&(b||c||a)};
JD=function(a,b){this.g=[];this.b={};this.o={};this.A=null;this.F=b;Bca(this,a)};
Bca=function(a,b){Ob(b,function(a){a.forEach(function(a){a.$e&&Ob(a.$e,function(b,c){KD[c]&&Ob(KD[c],function(b){this.b[b]=this.b[b]||new DD(c,b,a.$e[c]);this.o[c]=this.o[c]||{};this.o[c][a.mimeType]=!0},this)},this)},this)},a);
a.g=Cca.filter(function(a){return!!this.b[a]},a)};
LD=function(a){var b=a.g.shift(),c=a.b[b],d=Dca(a.o[c.b]);window.navigator.requestMediaKeySystemAccess(b,d).then(Qi(x(a.D,a,c)),Qi(x(a.C,a,c)))};
Dca=function(a){var b={initDataTypes:["cenc","webm"],audioCapabilities:[],videoCapabilities:[]};Ob(a,function(a,d){(0==d.indexOf("audio/")?b.audioCapabilities:b.videoCapabilities).push({contentType:d})});
return[b]};
Eca=function(a){var b=ED(),c=py();if(b){if(lz){a.A(new DD("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=bb(a.g,function(a){var b=this.b[a],c,l;Ob(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)};
MD=function(a,b){this.xc=a;this.b=b};
ND=function(a){this.b=[];if(a)a:{var b;if(a instanceof ND){if(b=a.Va(),a=a.Pa(),0>=this.Qb()){for(var c=this.b,d=0;d<b.length;d++)c.push(new MD(b[d],a[d]));break a}}else b=Xb(a),a=Wb(a);for(d=0;d<b.length;d++)OD(this,b[d],a[d])}};
OD=function(a,b,c){var d=a.b;d.push(new MD(b,c));b=d.length-1;a=a.b;for(c=a[b];0<b;)if(d=b-1>>1,a[d].xc>c.xc)a[b]=a[d],b=d;else break;a[b]=c};
PD=function(){ND.call(this)};
QD=function(a){nk.call(this);this.A=new PD;this.g=null;this.F={};this.D=a||""};
TD=function(a,b,c){for(c=RD(a,c);0<=c;){var d=a.b[c];if(d.o[Math.floor(b/(d.Zb*d.rows))]&&(d=SD(d,b)))return d;c--}return SD(a.b[0],b)};
VD=function(a,b,c){c=RD(a,c);for(var d,e;0<=c;c--)if(d=a.b[c],e=Math.floor(b/(d.Zb*d.rows)),!d.o[e]){d=a;var f=c,k=f+"-"+e;d.F[k]||(d.F[k]=!0,OD(d.A,f,{nq:f,uq:e}))}UD(a)};
UD=function(a){if(!a.g&&!a.A.isEmpty()){var b=a.A.remove(),c=new window.Image;a.D&&(c.crossOrigin=a.D);c.src=WD(a.b[b.nq],b.uq);c.onload=x(a.H,a,b.nq,b.uq);a.g=c}};
XD=function(a,b,c,d){this.o={};this.L=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.Zb=(0,window.parseInt)(a[3],10);this.rows=(0,window.parseInt)(a[4],10);this.B=(0,window.parseInt)(a[5],10);this.A=a[6];this.C=a[7];this.K=d};
WD=function(a,b){var c=a.H,c=c.replace("$N",a.A),c=c.replace("$L",a.L.toString()),c=c.replace("$M",b.toString());a.C&&(c=Sg(c,{sigh:a.C}));return Ip(c)};
SD=function(a,b){var c=Math.floor(b/(a.Zb*a.rows)),d=a.Zb*a.rows,e=b%d,f=e%a.Zb,e=Math.floor(e/a.Zb),k,l=a.mn()+1-d*c;l<a.Zb?(k=l,d=1):(k=a.Zb,d=l<d?Math.ceil(l/a.Zb):a.rows);return{url:WD(a,c),yx:f,Zb:k,XE:e,rows:d,wq:a.F*k,tq:a.D*d}};
YD=function(a,b,c){QD.call(this,c);this.b=this.o(a,b);this.B={};1<this.b.length&&this.b[0].isDefault()&&this.b.splice(0,1)};
RD=function(a,b){var c=a.B[b];if(c)return c;for(var c=a.b.length,d=0;d<c;d++)if(a.b[d].ib()>=b)return a.B[b]=d;a.B[b]=c-1;return c-1};
ZD=function(a,b,c,d){c=c.split("#");c=[c[1],c[2],0,c[3],c[4],-1,c[0],""].join("#");XD.call(this,a,b,c,0);this.b=null;this.G=d?3:0};
$D=function(a,b){this.K=b;YD.call(this,a,0)};
aE=function(){return{apiaryHost:Pi("APIARY_HOST",void 0),nk:Pi("APIARY_HOST_FIRSTPARTY",void 0),gapiHintOverride:Pi("GAPI_HINT_OVERRIDE"),gapiHintParams:Pi("GAPI_HINT_PARAMS",void 0),innertubeApiKey:Pi("INNERTUBE_API_KEY",void 0),innertubeApiVersion:Pi("INNERTUBE_API_VERSION",void 0),Hl:Pi("INNERTUBE_CONTEXT_CLIENT_NAME","WEB"),innertubeContextClientVersion:Pi("INNERTUBE_CONTEXT_CLIENT_VERSION",void 0),Jl:Pi("INNERTUBE_CONTEXT_HL",void 0),Il:Pi("INNERTUBE_CONTEXT_GL",void 0),LF:Pi("XHR_APIARY_HOST",
void 0)}};
bE=function(a){a={client:{hl:a.Jl,gl:a.Il,clientName:a.Hl,clientVersion:a.innertubeContextClientVersion}};Pi("DELEGATED_SESSION_ID")&&(a.user={onBehalfOfUser:Pi("DELEGATED_SESSION_ID")});return a};
dE=function(){this.b=aE();cE||(cE=Fca(this.b))};
Fca=function(a){return(new Dd(function(b){mj(Pi("GAPI_LOADER_URL",void 0),function(){try{r("yt.gapi.load")("client",{gapiHintOverride:a.gapiHintOverride,_c:{jsl:{h:a.gapiHintParams}},callback:b})}catch(c){Vi(c)}})})).then(function(){})};
Gca=function(a,b,c,d){var e={path:"/youtubei/"+a.b.innertubeApiVersion+"/"+b,headers:{"X-Goog-Visitor-Id":Pi("VISITOR_DATA")},method:"POST",body:dg(c)},f=x(a.A,a);cE.then(function(){f();r("gapi.client.request")(e).execute(d||v)})};
iE=function(a,b){eE[a.endpoint]=eE[a.endpoint]||[];var c=eE[a.endpoint];c.push(a.Ir);fE[a.endpoint]=b;20<=c.length?gE():(Ti(hE),hE=Ri(gE,Pi("LOGGING_BATCH_TIMEOUT",1E4)))};
gE=function(){Ti(hE);if(!bc(eE)){for(var a in eE){var b=jE[a];if(!b){b=fE[a];if(!b)continue;b=new b;jE[a]=b}var c=b.g();c.requestTimeMs=Math.round(yq());c[Hca[a]]=eE[a];b.o(a,c,{});delete eE[a]}bc(eE)||(Ti(hE),hE=Ri(gE,Pi("LOGGING_BATCH_TIMEOUT",1E4)))}};
kE=function(a,b,c){var d={};d.eventTimeMs=Math.round(c||yq());d[a]=b;iE({endpoint:"log_event",Ir:d},dE)};
lE=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};
Ica=function(a){return N(a,function(a){a=a.toString(16);return 1<a.length?a:"0"+a}).join("")};
pE=function(a,b){ea(a);mE();for(var c=b?nE:oE,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("")};
Jca=function(a){var b="";qE(a,function(a){b+=String.fromCharCode(a)});
return b};
rE=function(a){var b=[];qE(a,function(a){b.push(a)});
return b};
qE=function(a,b){function c(b){for(;d<a.length;){var c=a.charAt(d++),e=sE[c];if(null!=e)return e;if(!B(c))throw Error("Unknown base64 encoding at char: "+c);}return b}
mE();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))}};
mE=function(){if(!oE){oE={};sE={};nE={};for(var a=0;65>a;a++)oE[a]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(a),sE[oE[a]]=a,nE[a]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_.".charAt(a),62<=a&&(sE["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_.".charAt(a)]=a)}};
Kca=function(a,b){var c=Zq(),d=N(b,function(a){return Sq(a)});
Yq(c,{visibilityUpdate:{csn:a,visualElements:d}})};
Yq=function(a,b,c){b.eventTimeMs=E();b.lactMs=pu();c&&(b.clientData=Lca(c));iE({endpoint:"log_interaction",Ir:b},a)};
Lca=function(a){var b={};a.analyticsChannelData&&(b.analyticsDatas=N(a.analyticsChannelData,function(a){return{tabName:a.tabName,cardName:a.cardName,isChannelScreen:a.isChannelScreen,insightId:a.insightId,externalChannelId:a.externalChannelId,externalContentOwnerId:a.externalContentOwnerId}}));
return{playbackData:{clientPlaybackNonce:a.clientPlaybackNonce},analyticsChannelData:b,externalLinkData:a.externalLinkData}};
Xq=function(){var a=Pi("client-screen-nonce",void 0);a||(a=Pi("EVENT_ID",void 0));return a};
tE=function(a,b){this.version=a;this.args=b};
Mca=function(a){if(!a.Te){var b={};a.call(b);a.Te=b.version}return a.Te};
Nca=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=Mca(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;}};
uE=function(a,b){this.topic=a;this.b=b};
Oca=function(a){var b=vE,c=wE();c&&c.publish.call(c,b.toString(),b,a)};
Pca=function(a,b){var c=vE,d=wE();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(xE[e])try{if(k&&c instanceof uE&&c!=d)try{k=Nca(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){Vi(l)}};
yE[c.toString()]?Gw()?Hw(l,void 0):Ri(l,0):l()}});
xE[e]=!0;zE[c.toString()]||(zE[c.toString()]=[]);zE[c.toString()].push(e);return e};
BE=function(a,b){var c=Pca(function(d){a.apply(b,arguments);AE(c)},b);
return c};
AE=function(a){var b=wE();b&&(ga(a)&&(a=[a]),F(a,function(a){b.unsubscribeByKey(a);delete xE[a]}))};
wE=function(){return r("yt.pubsub2.instance_")};
CE=function(a){tE.call(this,1,arguments);this.b=a};
EE=function(a){DE&&DE.measure&&DE.measure("measure_above_the_fold",a?a:"navigationStart")};
JE=function(a,b,c){if(!b&&"_"!=a[0]){var d=a;DE.mark&&(Qca.test(d)||(d="mark_"+d),DE.mark(d))}var d=FE(c),e=b||yq();d[a]&&(d["_"+a]=d["_"+a]||[d[a]],d["_"+a].push(e));d[a]=e;GE(c)["tick_"+a]=b;Jj("csi_on_gel")?(d=HE(c),"_start"==a?kE("latencyActionBaselined",{clientActionNonce:d},b):kE("latencyActionTicked",{tickName:a,clientActionNonce:d},b),a=!0):a=!1;a||IE(c)};
LE=function(a,b){KE("yt_sts",a,b);JE("_start",void 0,b)};
ME=function(a,b){var c=FE(b);return a in c};
KE=function(a,b,c){var d=NE(c).info[a]=b;GE(c)["info_"+a]=d;Jj("csi_on_gel")&&(a in OE?(b={},a=OE[a],fb(Rca,a)&&(d=!!d),b[a]=d,c=HE(c),b.clientActionNonce=c,kE("latencyActionInfo",b)):Vi(Error("Unknown label "+a+" logged with GEL CSI.")))};
RE=function(a){PE(a);Sca();QE(!1,a)};
UE=function(a,b){a:if(!SE(a)){if(!Jj("send_empty_timing")){var c=Pi("CSI_SERVICE_NAME","youtube");if(!Pi((a||"")+"TIMING_ACTION",void 0)||!c)break a}JE("aa",void 0,a);KE("ap",1,a);KE("yt_fss","c",a);TE(a)}RE(a);Oi(a+"TIMING_AFT_KEYS",b);Oi(a+"TIMING_ACTION",a);LE("c",a);g.aa("yt.timing."+(a||"")+"ready_",!0,void 0);IE(a)};
VE=function(a){var b=FE(a);if(b.aft)return b.aft;a=Pi((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};
TE=function(a){var b=FE(a),c=NE(a).info,d=b._start,e;for(e in b)if(sa(e,"_")&&da(b[e])){var f=e.slice(1);if(f in Tca){var k=N(b[e],function(a){return Math.round(a-d)});
c["all_"+f]=k.join()}delete b[e]}f=!!c.ap;if(k=r("yt.timing.reportbuilder_")){if(k=k(b,c,a))WE(k,f),RE(a)}else{var l=Pi("CSI_SERVICE_NAME","youtube"),k={v:2,s:l,action:Pi((a||"")+"TIMING_ACTION",void 0)},m=c.srt;delete c.srt;void 0===b.srt&&(m||0===m||(m=DE.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+r("ytplayer.config.assets.js");(n=DE.getEntriesByName?DE.getEntriesByName(n)[0]:
null)?c.h5jse=Math.round(c.h5jse-n.responseEnd):delete c.h5jse}b.aft=VE(a);Uca(a)&&"youtube"==l&&(KE("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=yq();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=r("ytdebug.logTiming"))&&b(k,c);Jj("navigation_only_csi_reset")||RE(a);WE(k,f,a);Oca(new CE(c.aft+(m||0)))}};
IE=function(a){if(!SE(a)||!Jj("navigation_only_csi_reset")&&!a){var b=Pi((a||"")+"TIMING_ACTION",void 0),c=FE(a);if(r("yt.timing."+(a||"")+"ready_")&&b&&c._start&&VE(a))if(a)TE(a);else{var b=!0,d=Pi("TIMING_WAIT",[]);if(d.length)for(var e=0,f=d.length;e<f;++e)if(!(d[e]in c)){b=!1;break}b&&TE(a)}}};
WE=function(a,b,c){if(Jj("debug_csi_data")){var d=r("yt.timing.csiData");d||(d=[],g.aa("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,"")||Tp(a,void 0)}catch(f){Tp(a,void 0)}else Tp(a);QE(!0,c)};
HE=function(a){var b=NE(a).nonce;b||(b=bz(),NE(a).nonce=b);return b};
FE=function(a){return NE(a).tick};
GE=function(a){a=NE(a);"gel"in a||(a.gel={});return a.gel};
NE=function(a){return r("ytcsi."+(a||"")+"data_")||PE(a)};
PE=function(a){var b={tick:{},info:{}};g.aa("ytcsi."+(a||"")+"data_",b,void 0);return b};
SE=function(a){return!!r("yt.timing."+(a||"")+"pingSent_")};
QE=function(a,b){g.aa("yt.timing."+(b||"")+"pingSent_",a,void 0)};
Uca=function(a){var b=FE(a),c=b.pbr,d=b.vc,b=b.pbs;return c&&d&&b&&c<d&&d<b&&1==NE(a).info.yt_pvis};
Vca=function(){switch(Qh("visibilityState",window.document)){case "hidden":return 0;case "visible":return 1;case "prerender":return 2;case "unloaded":return 3}return-1};
XE=function(a,b,c){this.errorCode=a;this.b=b;this.details=c||{}};
YE=function(a){var b,c;for(c in a){var d=a[c].toString().replace(/[:,]/g,"_");b=(b?b+";":"")+c+"."+d}return b||""};
Wca=function(a,b){this.g=a;this.b=b;this.o=0};
Xca=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)};
Yca=function(a,b,c,d,e,f,k,l,m){this.itag=a;this.url=b;this.Mo=c;this.width=d;this.height=e;this.bitrate=k;this.fps=f;this.audioItag=l||null;this.b=m||""};
Zca=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 Yca(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};
ZE=function(a,b){this.Rc=a;this.o=b;this.b=null};
$E=function(a,b,c,d,e,f,k,l,m){var n=new PB;d=new WB(d,e,f,null,void 0,k);c=new QB(c,"application/x-mpegURL",n,d,void 0,m);a=new Wca(a,b);a.o=l?l:1369843;return new ZE(c,a)};
$ca=function(a,b,c){if(!Jy&&!Op())return[];b=Zca(b);if(!b)return[];var d={MP:"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($E([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.Rc.$e&&a},!0)?d:null;
l.push($E(k,f,"93",0,0,0,"auto",c,e));return Mz(a.K,l)};
aF=function(a,b){this.Rc=a;this.b=b};
bF=function(a,b,c,d,e,f,k,l){var m=new PB;c in hy||(c="small");e&&f?(f=(0,window.parseInt)(f,10),e=(0,window.parseInt)(e,10)):(f=hy[c],e=Math.round(16*f/9));c=new WB(e,f,0,null,void 0,c,k,void 0,void 0,l);b=(0,window.unescape)(b.replace(/&quot;/g,'"'));return new aF(new QB(d,b,m,c),a)};
ada=function(a){var b=[];F(a,function(a){a.url&&b.push(bF(a.url,a.type,"medium","0"))});
return b};
cF=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||fy(e.s);e.url=Qj(e.url,{signature:f})}e.url&&c.push(bF(e.url,e.type,e.quality,e.itag,e.width,e.height,!!e.isAccelerated,!!e.isAcceleratedUiEnabled))}return Mz(a.K,c)};
dF=function(a){nk.call(this);this.adModule=!1;this.adaptiveFormats="";this.ra=null;this.allowEmbed=!0;this.L=this.backgroundable=!1;this.Gf="";this.Mb=this.Wo=!1;dF.prototype.Db=dF.g;this.watchAjaxToken=this.Dd=null;this.author="";this.Bd=0;this.Sr=this.Tb=!1;this.clientPlaybackNonce=this.kc=this.gc="";this.contentCheckOk=!1;this.ea=0;this.enableCardioBeforePlayback=this.enableCardio=this.ve=!1;this.ga=0;this.Ys=this.M=!1;this.bb=this.Cd=0;this.Na=this.isPharma=this.isMdxPlayback=this.isLowLatencyLiveStream=
this.isLiveDefaultBroadcast=this.za=this.Ja=this.isListed=this.xe=this.eq=this.K=this.ed=!1;this.ef="";this.ye=this.$s=this.oa=!1;this.Zd=3;this.$=window.NaN;this.liveStartWalltime=0;this.Ae=null;this.Mg=this.lengthSeconds=0;this.paygated=!1;this.profilePicture="";this.racyCheckOk=!1;this.autonavState=1;dF.prototype.Ta=ky;this.H=!1;this.startSeconds=0;this.spacecastModule=!1;this.yb=null;dF.prototype.Xa=ky;this.fa=null;this.hlsFormats=this.va=this.title="";this.Ed=null;this.Jg="vvt";this.requiresPurchase=
!1;this.clipStart=0;this.clipEnd=window.Infinity;this.cf=this.ia=this.Ha=!1;this.Ks="";this.Rr=this.jq=!1;this.uk={};this.Bn="";this.Vs=!1;this.captionTracks=[];this.Xd=[];this.kq=0;this.captionTranslationLanguages=[];this.Yd=!1;this.Ia=new rz("und",new VB("Default","und",!0));this.ze=0;this.On=this.Mn=!1;this.G=null;this.ba=[];this.Ss=!1;this.Kg=null;this.Nn=new fe(this.ks,5E3,this);H(this,this.Nn);this.F=[];this.A={};this.keywords={};this.C={};eF(this,a)};
gF=function(a,b){var c=b||{};c.iv_invideo_url&&(a.Gf=Ip(c.iv_invideo_url));c.iv_ads_only&&(a.Wo="1"==c.iv_ads_only);c.cta_conversion_urls&&(a.cp=c.cta_conversion_urls);a.isPharma=Ry(a.isPharma,c.is_pharma);a.author=Uy(a.author,c.author);a.Tb=Ry(a.Tb,c.cc_asr);var d=c.ttsurl;fF.test(d)?a.gc=d:d&&(d=Hp(d),fF.test(d)&&(a.gc=d));a.Vs=void 0!=c.caption_tracks;c.caption_tracks&&c.caption_audio_tracks&&(bda(a,c.caption_tracks),a.Xd=Nj(c.caption_audio_tracks),c.default_audio_track_index&&(a.kq=(0,window.parseInt)(c.default_audio_track_index,
10)||0),c.caption_translation_languages&&cda(a,c.caption_translation_languages));a.Yd=Ry(a.Yd,c.cc_contribute);a.clientPlaybackNonce=Uy(a.clientPlaybackNonce,c.cpn);a.subscribed=Uy(a.subscribed,c.subscribed);a.shortViewCount=Uy(a.shortViewCount,c.short_view_count_text);a.title=Uy(a.title,c.title);a.ypcPreview=Uy(a.ypcPreview,c.ypc_preview);a.ypcOrigin=Uy(a.ypcOrigin,c.ypc_origin);a.paygated=Ry(a.paygated,c.paygated);a.requiresPurchase=Ry(a.requiresPurchase,c.requires_purchase);c.keywords&&(a.keywords=
dda(c.keywords));c.rvs&&(a.O=Nj(c.rvs));a.contentCheckOk=Ry(a.contentCheckOk,"1"==c.cco);a.racyCheckOk=Ry(a.racyCheckOk,"1"==c.rco);a.oauthToken=Uy(a.oauthToken,c.oauth_token);a.visitorData=Uy(a.visitorData,c.visitor_data);c.session_data&&(a.Ba=Kj(c.session_data,"&"));c.endscreen_autoplay_session_data&&(a.Is=Kj(c.endscreen_autoplay_session_data,"&"));a.$r=Uy(a.$r,c.endscreen_ad_tracking_data);a.Lg=Uy(a.Lg,c.tracking_list||c.tv_list);F(dF.A,function(a){a in c&&(this.A[a]=c[a])},a)};
eF=function(a,b){var c=b||{};a.L="1"!=c.hlsdvr?!1:Nz()?!0:hA&&5>Fy?!1:!0;a.Dw=c.ad_query_id;a.Gw=c.agcid;a.Mb="1"==c.infringe||"1"==c.muted;a.Cp=c.authkey;a.Pb=c.authuser;a.clientPlaybackNonce||(a.clientPlaybackNonce=c.cpn||bz());a.Vu=1E3*Ty(E()/1E3,c.timestamp);a.ve=Ry(a.ve,c.cenchd);a.enableCardio=Ry(a.enableCardio,c.enable_cardio);a.enableCardioBeforePlayback=Ry(a.enableCardioBeforePlayback,c.enable_cardio_before_playback);a.ga=Ty(a.ga,c.end||c.endSeconds);a.Bc=Uy(a.Bc,c.itct);a.xe=Ry(a.xe,c.noiba);
a.Ja="1"==c.livemonitor;a.za="1"==c.live_playback||!!c.fresca_preroll;a.isLiveDefaultBroadcast="1"==c.live_default_broadcast;a.isLowLatencyLiveStream="1"==c.is_low_latency_live_stream;a.isMdxPlayback=Ry(a.isMdxPlayback,c.mdx);a.Na=Ry(a.Na,c.reload);a.ef=Uy(a.ef,c.reload_reason);a.ye=Ry(a.ye,c.utpsa);a.yq=c.cyc;for(var d in dF.b){var e=c[d+"_webp"]||c[d];vA.test(e)&&(a.uk[dF.b[d]]=e)}d=c.murlmq_webp;vA.test(d)&&(a.Bn=d);a.S=Uy(a.S,c.vvt);a.Iw=c.osig;a.Fn=c.ptchn;a.In=c.oid;a.Sa=c.ptk;a.Jn=c.pltype;
a.playbackId=c.plid;a.eventId=c.eventid;a.osid=c.osid;a.videoMetadata=c.vm;a.Vw=c.of;a.playlistId=Uy(a.playlistId,c.list);a.Kn=c.pyv_view_beacon_url;a.Ow=c.pyv_quartile25_beacon_url;a.Qw=c.pyv_quartile50_beacon_url;a.Sw=c.pyv_quartile75_beacon_url;a.Mw=c.pyv_quartile100_beacon_url;c.remarketing_url&&(a.remarketingUrl=c.remarketing_url);c.ppv_remarketing_url&&(a.ppvRemarketingUrl=c.ppv_remarketing_url);a.Vn=c.sdetail;!a.df&&c.session_data&&(a.df=Kj(c.session_data,"&").feature);a.isFling=1==Ty(a.isFling?
1:0,c.is_fling);a.vnd=Ty(a.vnd,c.vnd);a.we=Uy(a.we,c.force_ads_url);a.kb=Uy(a.kb,c.ctrl);a.rb=Uy(a.rb,c.ytr);a.nc=c.ytrcc;a.Ln=c.ytrexp;a.Ta=Wy(a.Ta,c.vq);a.Xa=Wy(a.Xa,c.suggestedQuality);a.ab=c.approx_threed_layout||0;a.Yn=Ry(a.Yn,c.ssrt);a.videoId=Xy(c)||a.videoId;a.vssCredentialsToken=Uy(a.vssCredentialsToken,c.vss_credentials_token);a.Jg=Uy(a.Jg,c.vss_credentials_token_type);eda(a,c.watermark);a.ypcGid=Uy(a.ypcGid,c.ypc_gid);a.heartbeatToken=Uy(a.heartbeatToken,c.heartbeat_token);a.heartbeatInterval=
Ty(a.heartbeatInterval,c.heartbeat_interval);a.heartbeatRetries=Ty(a.heartbeatRetries,c.heartbeat_retries);a.heartbeatSoftFail=Ry(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.Ys=!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.zb=c.atc);c.license_info&&(a.ra=fda(c.license_info));c.allow_embed&&
(a.allowEmbed="1"==c.allow_embed);c.backgroundable&&(a.backgroundable="1"==c.backgroundable);c.autonav&&(a.ed="1"==c.autonav);c.autoplay&&(a.K="1"==c.autoplay);c.iv_load_policy&&(a.Ad=Sy(a.Ad,c.iv_load_policy,nA));c.cc_lang_pref&&(a.Tn=Uy(c.cc_lang_pref,a.Tn));c.cc_load_policy&&(a.Un=Sy(a.Un,c.cc_load_policy,nA));c.channel_path&&(a.kc=Uy(c.channel_path,a.kc));"0"==c.dash&&(a.Sr=!0);c.dashmpd&&(a.D=Sg(c.dashmpd,{cpn:a.clientPlaybackNonce}),d=/\/s\/([0-9A-F.]+)/,e=d.exec(a.D))&&(e=fy(e[1]),a.D=a.D.replace(d,
"/signature/"+e));c.delay&&(a.ea=Ua(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.eq="1"==c.featured);c.fmt_list&&(a.fmtList=c.fmt_list);c.fresca_preroll&&a.F.push("fresca");c.idpj&&(a.Cd=Ua(c.idpj));c.ismb&&(a.bb=Ua(c.ismb));c.is_listed&&(a.isListed=Ry(a.isListed,c.is_listed));c.url_encoded_fmt_stream_map&&(a.va=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=Ua(c.length_seconds));c.live_chunk_readahead&&(a.Zd=Ty(a.Zd,c.live_chunk_readahead));c.live_start_walltime&&(a.liveStartWalltime=Ua(c.live_start_walltime));c.live_manifest_duration&&(a.Ae=Ua(c.live_manifest_duration));c.ldpj&&(a.Mg=Ua(c.ldpj));c.loudness&&(a.perceptualLoudnessDb=c.loudness,a.Db=a.perceptualLoudnessDb?Math.pow(10,Math.min(-21-a.perceptualLoudnessDb,0)/20):dF.g);c.partnerid&&(a.Da=Ua(c.partnerid));
c.probe_url&&(a.probeUrl=Ip(Sg(c.probe_url,{cpn:a.clientPlaybackNonce})));c.profile_picture&&(a.profilePicture=Uy(c.profile_picture,a.profilePicture));c.pyv_billable_url&&Tu.test(c.pyv_billable_url)&&(a.zd=c.pyv_billable_url);c.pyv_conv_url&&Tu.test(c.pyv_conv_url)&&(a.na=c.pyv_conv_url);c.video_masthead_ad_quartile_urls&&(d=c.video_masthead_ad_quartile_urls,a.Be=d.quartile_0_url,a.vn=d.quartile_25_url,a.xn=d.quartile_50_url,a.zn=d.quartile_75_url,a.Tu=d.quartile_100_url);"1"==c.spacecast_module&&
(a.F.push("spacecast"),a.spacecastModule=!0);c.spacecast_addrs&&(a.Kg=c.spacecast_addrs.split(","),a.spacecastModule=!0);0<a.startSeconds||(a.startSeconds=Ty(a.startSeconds,c.start||c.startSeconds));void 0==c.start||"1"==c.resume||a.za||(a.clipStart=c.start);c.two_stage_token&&(a.Dd=c.two_stage_token);c.url_encoded_third_party_media&&(a.fa=Nj(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.Uw=Uy(a.Uw,c.ucid);F("baseUrl uid oeid ieid ppe engaged subscribed".split(" "),function(a){c[a]&&(this.C[a]=c[a])},a);
a.C.focEnabled=Ry(a.C.focEnabled,c.focEnabled);a.C.rmktEnabled=Ry(a.C.rmktEnabled,c.rmktEnabled);a.A=c;gF(a,c);gda(a);c.adpings&&(a.Rn=c.adpings?Mj(c.adpings):null);c.feature&&(a.Xn=c.feature);c.referrer&&(a.referrer=c.referrer);c.q&&(a.searchQuery=c.q);c.multifeed_metadata_list&&(a.ba=Nj(c.multifeed_metadata_list))};
hF=function(a){return E()>a.Vu+18E6};
iF=function(a){return!(!a.o||!a.o.videoInfos.length)};
gda=function(a){jF(a)||(a.adaptiveFormats&&!a.za?(kF(a,uD(lF(a,a.adaptiveFormats),a.ra,a.lengthSeconds)),Yz(a.b)&&(a.ia=!0)):a.D&&(a.Ha=!0))};
hda=function(a){return a.g&&Hz('video/webm; codecs="vp9"')&&Rb(a.b,function(a){return RB(a.info)})};
mF=function(a){return!(!a.b||!a.b.g)};
jF=function(a){return!Nz()||a.Sr?!0:!1};
nF=function(a){a.isDisposed()||(a.M=!1,a.Y("dataloaded",a.A))};
kF=function(a,b,c){c&&a.b&&a.b.dispose();a.b=b;H(a,b);(oF(a)||pF(a)||qF(a))&&a.F.push("webgl")};
sF=function(a,b){if(!a.isDisposed()){a.o=null;a.ka=null;a.da=null;var c=jF(a)||b.Ml;if(!c&&a.spacecastAdaptiveFormats)kF(a,uD(lF(a,a.spacecastAdaptiveFormats),a.ra,a.lengthSeconds),!0),a.o=eA(b.K,a.b,a.G,!0,!1);else if(a.spacecastFormatMap){var d=lF(a,a.spacecastFormatMap);a.da=cF(b,d);a.o=new sz(N(a.da,function(a){return a.Rc}))}a.o&&(d=bf(a.o.videoInfos,function(a,b){return b.video.isAccelerated&&(!a||a.height<b.video.height)?b.video:a},null))&&(d=iy(d.quality,d.quality,!0),a.Ta=d,a.Xa=d);
a.o||c||!a.b||(b.C||Aca(a.b,a.za),a.o=eA(b.K,a.b,a.G,!1,Eba(b)));a.o||(a.da=ida(a,b),a.da.length&&(a.o=new sz(N(a.da,function(a){return a.Rc}))));
jda(a)}};
ida=function(a,b){if(a.hlsFormats){var c=lF(a,a.hlsFormats),c=$ca(b,c,a.bb);if(c.length)return c}if(a.fa&&a.$s)return c=ada(a.fa),Mz(b.K,c);c=lF(a,a.va,a.fmtList);if(a.hlsvp){var d;d=a.hlsvp;var e=a.bb,f={cpn:a.clientPlaybackNonce};-1==d.indexOf("/ibw/")&&(f.ibw=e?String(e):"1369843");d={url:Sg(d,f),type:"application/x-mpegURL",quality:"auto",itag:"93"};c.push(d)}return cF(b,c)};
tF=function(a){return a.g&&a.g.$e||null};
uF=function(a){a.Ed||(a.A.storyboard_spec?a.Ed=new YD(a.A.storyboard_spec,a.lengthSeconds):a.A.live_storyboard_spec&&a.b&&(a.Ed=new $D(a.A.live_storyboard_spec,a.b)));return a.Ed};
vF=function(a){return a.b&&!(0,window.isNaN)(BD(a.b))?BD(a.b):0};
wF=function(a,b){if(a.b&&a.za){var c=a.b.b[a.g.id];if(!c||!c.index)return null;var d=c.index.pf(b),c=c.index.Xe(d);return{sequence:d,elapsed:Math.floor(1E3*(b-c))}}return null};
xF=function(a){return!a.isDisposed()&&!(!a.videoId&&!a.fa)};
yF=function(a){return!!(a.D||a.adaptiveFormats||a.va||a.fa||a.spacecastFormatMap||a.spacecastAdaptiveFormats||a.hlsvp)};
zF=function(a){var b=fb(a.F,"ypc");a.ypcPreview&&(b=!1);return xF(a)&&!a.M&&(yF(a)||fb(a.F,"fresca")||b)};
AF=function(a){return zF(a)&&!a.Ha&&!a.ia};
lF=function(a,b,c){b=Nj(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=Sg(a.url,{cpn:this.clientPlaybackNonce}));var b=d[a.itag];b&&(a.width=b.width,a.height=b.height)},a);
return b};
dda=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};
eda=function(a,b){if(b){var c=b.split(",");2<=c.length&&(a.Ce=c[1],vA.test(a.Ce)&&-1==a.Ce.search(dF.B)||(a.Ce=""))}};
fda=function(a){a=Nj(a);var b={};F(a,function(a){var d=a.family;a=a.url;d&&a&&(b[d]=a)});
return b};
bda=function(a,b){for(var c=Nj(b),d=0;d<c.length;d++){var e=c[d],f=e.u;fF.test(f)&&a.captionTracks.push(new oz({is_translateable:e.t,languageCode:e.lc,languageName:e.n,url:f,vss_id:e.v,kind:e.k,format:3}))}};
cda=function(a,b){for(var c=Nj(b),d=0;d<c.length;d++){var e=c[d];a.captionTranslationLanguages.push(new nz({languageCode:e.lc,languageName:e.n}))}};
jda=function(a){for(var b=a.o?a.o.audioTracks:[],b=b.concat(a.Ia),c=0;c<a.Xd.length;c++)for(var d=a.Xd[c],e=0;e<b.length;e++){var f=b[e],k=f.Vb.id==d.aid;if(f==a.Ia&&c==a.kq||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.Jk=a.captionTracks[(0,window.parseInt)(d.d,10)]);d.f&&(f.si=a.captionTracks[(0,window.parseInt)(d.f,10)]);f.Ao=(0,window.parseInt)(d.v,10)}}};
Xr=function(a,b){return!!a.A[b]};
Tr=function(a){return a.za&&!a.L};
BF=function(a){return a.za&&a.L};
CF=function(a){var b=gc(a.A);!a.za&&0<a.startSeconds&&(b.start=a.startSeconds);return b};
DF=function(a){if(a.ab||a.Kd["3D"])return!0;a=a.Kd("yt3d:enable");return"true"==a||"LR"==a||"RL"==a};
EF=function(a,b){(0,window.isNaN)(a.$)&&(a.$=a.Zd,a.Ja&&a.$--,a.b&&(5<=CD(a.b)||mF(a)&&!a.isLowLatencyLiveStream)&&b.aa("html5_live_disable_dg_pacing")&&a.$++,a.$=Math.max(0,a.$));return a.$};
pF=function(a){return a.b&&3!=a.ab?aA(a.b):!1};
oF=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.ab)return!0}return bA(a.b)};
qF=function(a){if(DF(a)&&3!=a.ab&&4!=a.ab)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};
kda=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};
FF=function(a){S.call(this,a);this.O=new nk;H(this,this.O)};
GF=function(){FF.call(this,["div",["ytp-drawer","html5-stop-propagation"],["div","ytp-drawer-content","{{content}}"],["button",["ytp-drawer-close-button","ytp-button"],Ah()],["button",["ytp-drawer-open-button","ytp-button"]]]);this.U(this.qa["ytp-drawer-close-button"],"click",this.o);this.U(this.qa["ytp-drawer-open-button"],"click",this.show);this.b=new fe(pa(le,this.element,"ytp-drawer-closed"),0);H(this,this.b);this.Ob(null);this.pa()};
HF=function(a,b,c){nk.call(this);this.o=0==c;this.b=new GF;this.b.subscribe("close-clicked",this.B,this);H(this,this.b);this.A=window.document.createElement("div");J(this.A,"html5-ypc-endscreen");this.g=new S({J:"div",X:"html5-ypc-module",R:[{J:"div",X:"html5-ypc-action-heading",R:["{{heading}}"]},{J:"div",X:"html5-ypc-thumbnail",R:["{{thumbnail_element}}"]},{J:"div",X:"html5-ypc-title",R:["{{title}}"]},{J:"div",X:"html5-ypc-description",R:["{{description}}"]},{J:"button",ha:["html5-ypc-purchase",
"ytp-button"],R:["{{button_label}}"]}]});H(this,this.g);this.D=this.g.qa["html5-ypc-purchase"];this.g.U(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.Ca(a)};
IF=function(a){a.o||(a.A.appendChild(a.g.element),a.b.Ob(null),Mq(a.A,"block"))};
lda=function(a){a.o||a.b.show()};
JF=function(a){dq.call(this,a);this.logEvent=this.Ma="ypc";this.o=this.B=this.g=null;this.C=window.NaN;this.A=null};
mda=function(a){return Xr(a.getVideoData(),"ypc_module")?new JF(a):null};
nda=function(a,b){var c=1E4;b.A.hasOwnProperty("ypc_overlay_timeout")&&(c=(0,window.parseInt)(b.A.ypc_overlay_timeout,10));a.o=new HF(a.A.element,a.g,c);a.o.subscribe("ypcContentRequest",a.CB,a);a.o.subscribe("ypcModuleCloseClicked",a.yC,a);if(KF(iq(a.b))){var d=new aq(0x8000000000000,0x8000000000000,{priority:2});a.tb([d])}lda(a.o);Ti(a.C);a.C=Ri(x(function(){if(this.o){var a=this.o;a.o||a.b.pa()}},a),c)};
LF=function(a){this.b=window.Float32Array?new window.Float32Array(a):Array(a);this.g=a-1};
MF=function(a,b){a.g=(a.g+1)%a.b.length;a.b[a.g]=b};
oda=function(){this.A=new LF(50);this.g=null;this.B=this.o=0;this.b=[]};
pda=function(a,b){0!=a.b.length&&(b.B=a.b.length,b.F=bf(a.b,function(a,b){return a+b},0),b.D=Za(a.b),b.H=Math.min.apply(Math,a.b),b.G=Math.max.apply(Math,a.b),a.b=[])};
qda=function(a,b){if(a.g&&!(b>=a.o&&b<a.B)){var c=a.g.pf(b);a.o=a.g.Xe(c);a.B=a.o+a.g.We(c);c=E()/1E3-pC(a.g,c);MF(a.A,c);a.b.push(c)}};
NF=function(a){this.B=Math.exp(Math.log(.5)/a);this.o=this.A=0};
rda=function(a,b){this.b=a;this.g=b;this.o=1};
RF=function(a,b,c,d){d/=a.o;var e=OF(a.b)+1/PF(a.b),f;f=Math.max(.9*(d-3),QF(a.b)+8192*e);c=f/e*a.g.Ia/(b+c);c=Math.min(c,d);c=Math.max(a.g.Ha,Math.min(a.g.Ba,c));return Math.min(a.g.C,Math.max(65536,Math.ceil(c*b)))};
SF=function(a){var b=PF(a.b);if(a.g.na)return b;a=1E-9+QF(a.b)+1048576*OF(a.b);return b*Math.min(1,1048576/(b*a))};
TF=function(a){return SF(a)/a.o};
UF=function(a,b,c){this.audio=a;this.video=b;this.reason=c};
sda=function(a,b,c,d){this.S=a;this.F=b;this.C=c;this.G=d;this.o=this.K=this.b=null;this.B="i";this.L=-1;this.D=this.A=null;this.g=[];this.M=this.O=0;this.ba=null;this.H=!1};
tda=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,VF(a,b),WF(a),a.o=XF(a),new UF(YF(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.L=-1);VF(a,b);b=XF(a);if("r"==c&&b==a.o){if(d)return null;a.o=b;return new UF(YF(a),b,c)}a.B=c;ZF(a);return null};
$F=function(a){return!!a.M&&9E4>=yq()-a.M};
YF=function(a){aG(a);return a.A};
XF=function(a){aG(a);return a.D};
ZF=function(a){a.o&&a.D&&bG(a,a.o.info)<bG(a,a.D.info)&&(a.H=a.H||a.D.info.video.width>1.6*a.o.info.video.width||"r"==a.B)};
cG=function(a){var b=a.B;a.B="a";a.L=yq();a.H=!1;return new UF(a.K,a.o,b)};
aG=function(a){if(!(!a.b.isLocked()&&-1<a.L&&8E3>yq()-a.L)){a.M&&!$F(a)&&(a.M=0,VF(a,a.b));WF(a);var b=TF(a.S);if(a.b.isLocked())a.D=a.C.b[a.g[a.g.length-1].id];else{for(var c=Math.min(a.O,a.g.length-1),d=b/a.F.A-bG(a,a.A.info);0<c&&!(bG(a,a.g[c])<=d);c--);for(b=b/a.F.g-bG(a,a.A.info);c<a.g.length-1&&!(bG(a,a.g[c+1])>=b);c++);a.O=c;a.D=a.C.b[a.g[c].id];ZF(a)}}};
VF=function(a,b){a.b=b;var c=a.G.videoInfos;if(!a.b.isLocked()&&(c=ke(c,function(a){return bG(this,a)>this.F.ca?!1:!this.C.b[a.id].A},a),$F(a))){var c=ke(c,function(a){return a.id!=this.ba.id},a),d=ke(c,function(a){a=hu(a);
return"140"==a||"134"==a||"243"==a});
d.length&&(c=d)}c.length||(c=a.G.videoInfos);d=ke(c,b.A,b);d.length||(d=[c[0]]);d.sort(x(function(a,b){return bG(this,a)-bG(this,b)},a));
for(c=1;c<d.length;c++){var e=d[c-1],f=d[c];e.video.width>f.video.width?(nb(d,c),c--):bG(a,e)*a.F.g>bG(a,f)&&(nb(d,c-1),c--)}a.g=d;Jba(a.F,d[d.length-1].video.KE)};
uda=function(a,b){if(b)a.A=a.C.b[b];else{var c=bb(a.G.b,function(a){return!!a.Vb&&a.Vb.isDefault}),c=c||a.G.b[0];
a.A=a.C.b[c.id]}WF(a)};
WF=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=TF(a.S)/a.F.g;b=bG(a,a.A.info)+bG(a,a.g[b])>c}b&&(a.A=a.C.b[a.G.b[1].id])}};
vda=function(a){var b=a.F.A,c=TF(a.S)/b-bG(a,a.A.info),b=cb(a.g,function(a){return bG(this,a)<c},a);
0>b&&(b=0);a.O=b;a.D=a.C.b[a.g[b].id]};
bG=function(a,b){return a.F.Ja&&b.A?b.A:b.b};
wda=function(){this.b=this.g=0;this.o=[]};
dG=function(a,b){return(a[b]<<24)+(a[b+1]<<16)+(a[b+2]<<8)+a[b+3]};
eG=function(){this.b=this.g=!1};
fG=function(a,b){nk.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.Y("timestamprewrite",a),this.A.D=!1)},this)};
gG=function(a){return a.b.length?a.b[0]:null};
hG=function(a){return a.b.length?a.b[a.b.length-1]:null};
yda=function(a,b){var c=xda(a,b);F(c,function(a){this.b.push(a)},a);
return bf(c,function(a,c){return c.b==b.b?a:a+c.g.length},0)};
zda=function(a){return Rh(a.b,function(a){return a.info.C})};
Ada=function(a,b){if(b){var c=$a(a.b,function(a){return a.info.C});
-1!=c&&(a.b=tb(a.b,0,c+1))}else a.b=[]};
Bda=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};
Cda=function(a){return N(a.b,function(a){return a.info})};
xda=function(a,b){if(!b.verify()||b.info.b.Ll()){var c=wC(b.info);c.verification="1";a.Y("error",c||{})}if(iG(a,b)){c=iD(b);if(c=FC(c,0,1701671783)){VC(c);VC(c);UC(c);UC(c);UC(c);UC(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=EC(c))?new pca(c):null}else c=null;b.o=c;b.o&&(b.info.A=b.o.g,b.info.F=b.o.o)}a.A.oa&&iG(a,b)&&XC(iD(b),
1701671783);if(a.A.S){a.C.Gd()||(c=null===a.B?b.info.startTime:a.B,kD(b,c)?a.B=c+lD(b):(c=wC(b.info),c.smst=1,a.Y("error",c||{})));if(!a.C.Gd()&&(0==b.info.g||a.g)&&1==b.info.b.info.g&&3==b.info.type&&!nD(b)&&b.info.duration&&(a.o+=1E3*(lD(b)-b.info.duration),a.D&&25<=Math.abs(a.o-a.D.o))){c=(a.D.o-a.o)/1E3;d=lD(b)+c;e=d*mD(b);if((e=jG(a,b,e))&&e.length){var f=wC(b.info);f.fds=d.toFixed(3);f.com=a.o.toFixed(3);a.Y("timestamprewrite",f);a.B+=c;a.o+=1E3*c}return e?e:kG(a,b)}if(a.A.ba&&a.C.Gd()&&(0==
b.info.g||a.g)&&1==b.info.b.info.g)return c=b.info.b.index.wi(b.info.A),(c=jG(a,b,c))?c:kG(a,b)}return[b]};
iG=function(a,b){return!a.C.Gd()&&3==b.info.type&&1==b.info.b.info.g&&0==b.info.g};
kG=function(a,b){if(a.g&&a.g!=b){var c=[a.g,b];a.g=null;return c}return[]};
jG=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);WC(d)}else d=iD(b),d=(e=WC(d))&&e<d.byteLength?d:null;if(!d)return a.g=b,null;(c=JC(d,c,a.F))?(d=WC(d),a.g&&(d-=a.g.range.length,a.g=null),a=jD(b,d),a[0].b=c,a[0].range=iC(0,c.byteLength),a[0].g=iC(0,c.byteLength)):a=null;return a};
lG=function(a,b){this.da=a;this.g=b;this.B=[];this.o=new fG(a,b);this.A=this.b=null;this.C=0;this.S=b.info.b;this.L=this.M=!1;this.K=new eG;this.D=null;this.F=0;this.H=b.Rt();this.G=-1};
nG=function(a,b){a.B.push(b);a.b=Za(b.info.b);a.C+=mG(b)};
qG=function(a){for(;a.B.length&&6==a.B[0].state;)oG(a,a.B.shift());a.B.length&&pG(a.B[0])&&!uC(a.B[0].info.b[0])&&oG(a,a.B[0])};
oG=function(a,b){if(!b.O&&b.o){var c;c=a.C;b.O=!0;c=c-zC(b.info)+mG(b);a.C=c}if(pG(b)){c=b.o;var d=c.o;c.o=[];c.A=Za(d).info;F(d,a.ba,a)}};
rG=function(a){return!(!a.o.b.length||1!=gG(a.o).info.b.info.g||0!=gG(a.o).info.g)};
sG=function(a){var b=iD(gG(a.o)),c=WC(b);return(!c||c>b.byteLength)&&1==a.o.b.length};
uG=function(a,b,c){sG(a);var d=gG(a.o);a=tG(a);if(!a)return null;c=c||d.info.b.index.wi(d.info.A);return(b=JC(a,c,b))?b:null};
wG=function(a){var b=gG(a.o),c=tG(a);if(c&&(c=WC(c)))if(c>iD(b).byteLength){var d=a.o.b[1];vG(a,b.range);vG(a,iC(d.range.start,c-b.range.length))}else vG(a,iC(b.range.start,c))};
tG=function(a){var b=gG(a.o),c=iD(b),d=WC(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=WC(new window.DataView(a.buffer));if(!d||d>a.byteLength)return null;c=new window.DataView(a.buffer.slice(0,d))}return c};
vG=function(a,b){for(var c=a.o,d=[],e;c.b.length;){if(c.b[0].range.end>b.end){var f=jD(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=Za(d),a.o.b.length&&c.b==gG(a.o).b||(a.C-=c.g.length))};
zG=function(a,b){var c=xG(a,b);if(0<=c)return c;a.b=a.g.Xg(b).b[0];yG(a)&&(a.A=null);a.o.B=null;a.D=null;a.F=0;return a.b.startTime};
Dda=function(a,b){var c=a.o.b.length?hG(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];Rh(f.info.b,function(a){return a.A==d})?c.push(f):a.O(f)}a.B=c;
a.b=a.B.length?Za(Za(a.B).info.b):null}else AG(a)};
Eda=function(a){a.C=0;F(a.B,function(a){this.C+=mG(a)},a);
a.C+=Bda(a.o)};
BG=function(a,b){var c=!!a.g.info.video&&!!a.A&&!a.A.C,d=1<=b&&c;Ada(a.o,d);a.M=d;Dda(a,2<=b&&c);Eda(a)};
CG=function(a){a.K.g||a.K.start();BG(a,0);yG(a)&&(a.A=null)};
yG=function(a){return!!a.A&&a.A.F};
DG=function(a){var b=[];a.A&&b.push(a.A);b=qb(b,Cda(a.o));F(a.B,function(a){F(a.info.b,function(a){3!=a.type&&4!=a.type||b.push(a)})});
a.b&&!fca(a.b,Za(b))&&b.push(a.b);return b};
EG=function(a){if(!a.b||!a.b.o)return!1;a=DG(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};
xG=function(a,b){if(EG(a)){var c;a:{c=DG(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};
FG=function(a){return Rh(a.B,function(a){return 4<=a.state})};
GG=function(a){return!(!a.b||!a.g.Wc()||a.b.b==a.g)};
HG=function(a){return GG(a)&&a.b.b.info.b<a.g.info.b};
AG=function(a){F(a.B,a.O,a);a.B=[];a.b=null};
IG=function(a){return!!a.b&&-1!=a.b.A&&a.b.A<a.g.index.Sf()};
JG=function(a){if(a.b){var b=hG(a.o);b&&3==b.info.type&&b.info.A>a.b.A&&(a.b=b.info)}};
Fda=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=iC(0,this.length);this.g[0]=new tC(c.type,c.b,d,c.A,c.startTime,c.duration,c.g,d.length,c.F)}this.A=null};
Gda=function(a){var b=a.length-a.b;F(a.o,function(a){b+=a.range.length});
return b};
KG=function(a,b,c,d,e){this.status=0;this.D=this.response=null;this.G=d;this.B=c;this.K=e;this.g=[];this.C=null;this.A=this.b=0;this.xa=Hda++;this.H=window.NaN;this.o=null;a=new window.Request(a,{method:"GET",credentials:"include"});(0,window.fetch)(a).then(Qi(x(this.ME,this)),Qi(x(this.Jj,this)));E();this.F=!1;b()};
MG=function(a){a.g.push(a.C.subarray(0,a.b));a.b=0;a.C=a.F?null:new window.Uint8Array(LG(a))};
NG=function(a){a.o.read().then(Qi(x(a.mB,a)),Qi(x(a.Jj,a)));var b=E();a.H=b};
LG=function(a){a=a.Qf();return Math.max(16384,.125*a)};
OG=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.VG,this);this.A=d;this.C=c;this.B=e;a=Qi(x(this.TG,this));this.b.addEventListener("load",a,!1);this.b.addEventListener("error",a,!1);this.b.send();b();this.b.addEventListener("progress",Qi(x(this.UG,this)),!1)};
PG=function(a,b,c){this.A=a;this.info=b;this.timing=c;this.state=1;this.b=null;this.K=this.D=this.H=0;this.C=window.NaN;this.F=this.g=this.L=null;this.B=0;this.o=null;this.O=!1;this.G=null;this.S=window.NaN;this.M=0};
QG=function(a){var b;b=a.timing;b={rt:((E()-b.g)/1E3).toFixed(2),lb:b.b,pt:(b.L/1E3).toFixed(2),pb:b.H};b.shost=a.g?aC(a.g.b):"";b.rn=a.H.toString();a.B&&(b.rc=a.B.toString());b.ml=""+ +a.info.b[0].b.Wc();410!=a.B&&500!=a.B&&503!=a.B||(b.isPotentialFormatUnavaliable="true");return b};
RG=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};
SG=function(a,b){a.state=b;if(5<=a.state){var c=a.timing;c.A&&(c.A=!1)}a.L&&a.L(a)};
TG=function(a){return Qk(a.info.b,function(a){return 3==a.type})};
UG=function(a){if(a.b){var b=a.b;a.b=null;b.Pt()}a=a.timing;a.A&&(a.A=!1)};
WG=function(a){var b=a.b.Ze("content-type"),c=a.b.Qf();return(!VG(a)||!b||-1!=b.indexOf("text/plain"))&&(!c||2048>=c)};
pG=function(a){return 2<=a.state&&!!a.o&&!!a.o.o.length};
XG=function(a,b){VG(a)&&!a.b.Qf()&&(a.A.G=!1,a.A.ia=!1);if(b||VG(a)&&!WG(a)){if(!a.o){var c=b?a.b.Ok():a.b.Qf();a.o=new Fda(a.info.b,c)}for(;a.b.iq();)for(var c=a.o,d=a.b.Cs(),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 hD(new tC(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,iC(d.byteOffset+
f,t),iC(d.byteOffset,d.length),m||l.b.St()));m=t;c.b+=m;f+=m;e+=l.o;if(f==d.length)break}}}};
mG=function(a){return a.o&&a.O?Gda(a.o):zC(a.info)};
VG=function(a){return!!(a.A.G||a.A.ia&&a.b&&a.b instanceof KG)};
Ida=function(a,b,c){this.o=a;this.H=b;this.M=c;this.b=this.C=this.g=window.NaN;this.G=this.K=this.A=!1;this.B=0;this.D=this.L=window.NaN};
$G=function(a,b,c){if(a.A){var d=(b-a.C)/1E3,e=c-a.b;0<e&&(.2<d||1024>e?(a.B+=d,.2<d&&YG(a.o,.05,e)):YG(a.o,d,e),a.G=!0)}else 8192<=c&&(ZG(a.o,(b-a.g)/1E3),a.A=!0);a.C=b;a.b=c};
aH=function(a){var b=a.H-a.b,b=1E3*(b*a.F.tailDelay+b/a.F.byterate),c=E(),b=8192<=a.b?b+c:b+Math.max(c,a.g+1E3*a.F.delay);a.D=b};
bH=function(a,b,c,d){nk.call(this);this.F=a;this.A=b;this.B=c;this.o=this.g=null;this.K=new rda(a,b);this.b=null;this.D=new sda(this.K,b,this.B,d);this.C=this.ia=this.O=this.ga=window.NaN;this.L=!1;this.H=window.NaN;this.na=0;this.G=!1;this.ra={};this.S="";this.$=this.da=0;this.ka=b.Na?new wda:null;this.ea=this.fa=window.NaN;this.va=new NF(5);this.oa=x(function(a){this.A.D&&(this.Mc(!1,"qoe.avsync",a),this.A.D=!1)},this)};
eH=function(a){0==a.C&&(a.g.g.o||cH(a,a.g,!0),a.o.g.o||cH(a,a.o,!0));a.seek(a.C);dH(a,"gv")};
gH=function(a){a.b&&a.b.b&&a.b.b.removeEventListener&&(a.b.b.removeEventListener("updateend",x(a.bd,a),!1),a.b.g.removeEventListener("updateend",x(a.bd,a),!1),a.b.b.removeEventListener("error",x(a.Ti,a,!0),!1),a.b.g.removeEventListener("error",x(a.Ti,a,!1),!1));a.b=null;a.G=!0;fH(a)};
hH=function(a){a.b&&Dz(a.b)&&gH(a)};
iH=function(a,b,c){if(!b.K.g||!c.remove)return!1;if(c.updating)return!0;if(!b.K.b&&c.buffered.length)return a=c.buffered.end(c.buffered.length-1),c.remove(0,a),b.K.b=!0;b.K.reset();a.Y("seekrequired");return!1};
lH=function(a,b,c){if(a.G&&(!a.A.K||!jH(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.Wc())return b.g.o||cH(a,b,!1),!1;zG(b,a.C)}var d=b.B.length+c.B.length;(FG(b)||FG(c)||a.B.isLive)&&--d;if(2<=d+1)return!1;d=b.b;4==d.type&&d.b.Wc()&&(b.b=Za(d.b.fj(d)),d=b.b);if(!d.F&&!d.b.cn(d)||d.b.info.audio&&4==d.type)a=!1;else if(HG(b)&&!a.A.H)a=!0;else{if(!(c=d.F||b.C+c.C>a.A.M||!!(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=kH(a,b,!0);a.D.b.isLocked()||
(c=(yq()-a.na)/1E3,c=30+a.A.fa*c,b=Math.min(b,c));if(a.A.ka){var e=yq();(0,window.isNaN)(a.fa)||(0,window.isNaN)(a.ea)||(c=a.ea+(e-a.fa)/1E3,b=Math.min(b,c));a.fa=e;a.ea=b}c=d>a.C+b}a=c?!1:!0}return a};
mH=function(a,b,c){if(!a.b||Bz(a.b)||Gz(a.b)){var d=a.C,e=a.K;c=RF(e,b.g.info.b,c.g.info.b,0);e=QF(e.b)+c*OF(e.b)+c/PF(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;AG(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=Za(Za(b.B).info.b):b.o.b.length?b.b=hG(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.Xg(d,!0).b[0])}}};
oH=function(a,b,c){lH(a,b,c);var d=b.b;if(b.H)d=b.g.Xg(window.Infinity);else if(b.b.b.Wc()){!HG(b)||a.A.H||a.B.g||(mH(a,b,c),b.b||zG(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);GG(b)&&(HG(b)||e<=a.A.L)&&0==f&&(a.B.g?d.b=b.g:(f=d.startTime+bH.b,d.o&&(f+=d.duration),zG(b,f),d=b.b));d.b.Gd()?(c=RF(a.K,d.b.info.b,c.g.info.b,e),e=GG(b),c=sD(d.b,d,c),c.range&&1<c.b.length&&(e?c=sD(d.b,d,c.b[0].o):(e=c.b[c.b.length-1],f=e.o/c.range.length,!e.C&&.4>f&&(c=sD(d.b,d,c.range.length-
e.o)))),d=c):d=UA(d.b,d)}else d.b.Gd()?(c=RF(a.K,b.g.info.b,c.g.info.b,0),d=sD(d.b,d,c)):d=UA(d.b,d);nG(b,nH(a,d))};
nH=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=cG(c);break a}}else c.K=d;c=null}c&&a.Y("videoformatchange",c)}c=zC(b);var d=a.F,e=a.K,f=Math.min(2.5,QF(e.b)),e=SF(e);c=new PG(a.A,b,new Ida(d,c,c-f*e));d=x(a.tD,a);c.isDisposed();c.L=d;c.start(Math.max(0,b.b[0].B-a.C));return c};
pH=function(a){if((0,window.isNaN)(a.ga)){var b=x(a.bd,a);a.ga=Ri(b,0)}};
qH=function(a){if((0,window.isNaN)(a.O)){var b=x(function(){this.O=window.NaN;this.bd()},a);
a.O=Ri(b,1E3)}};
uH=function(a,b,c,d,e){if(c.updating)return!0;var f=gG(b.o);if(!f)return!1;!b.A||b.A.C||vC(b.A,f.info)||(b.A=null,Bz(a.b)&&c.abort(),c.b=null);var k=a.B.isLive&&nD(f),l=!a.B.o&&b.da.ba&&rG(b);a.A.Da&&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)&&(XC(iD(f),1836019574),XC(iD(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:(rH(a,c,k),c.b=k,a.Y("initsegment",c.b),k=c.updating),k)return!0}else c.b=
null;k=kH(a,b,!1);k=a.C+k;null!==d&&0<=d&&(k=Math.min(k,d));if(b.M)d=gG(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.ba)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.da&&t>d.A.da){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 gC(d.b[0].B?0:d.b[0].range.start,n)}if(!d)return!1;if(l){if(sG(b))return!1;if(k=uG(b,a.oa))return sH(a,
c,new window.Uint8Array(k),f,b)?(wG(b),!0):!1}k=new window.Uint8Array(f.b,d.start,d.length);if(a.ka&&f.info.b.info.video&&1==f.info.b.info.g&&(m=a.ka,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,D=n.length;if(u.g+7>=D){for(var A=u.g;A<D;A++)u.o.push(y.getUint8(A));u=!0}else{if(0<u.o.length){for(A=0;8>u.o.length;A++)u.o.push(y.getUint8(A));A=dG(u.o,0);y=dG(u.o,4);u.o=[]}else A=y.getUint32(u.b),
y=y.getUint32(u.b+4);if(1836019558==y||1836019574==y||1718909296==y||1936286840==y)u.g+=A,u.b=u.g;else if(1835295092==y)u.g+=A,u.b+=8;else{u.g=window.NaN;u=!0;break a}u=u.b>=D}}else a:if(u=m,D=t,y=n.length,u.b+5>=y){for(A=u.b;A<y;A++)u.o.push(D.getUint8(A));u=!0}else{if(0<u.o.length){for(A=0;6>u.o.length;A++)u.o.push(D.getUint8(A));A=dG(u.o,0);12==A&&6==u.o[4]&&45==u.o[5]&&D.setUint8(u.b+5,63);u.b+=A+4;u.o=[]}for(;u.b<u.g&&u.b+5<y;){A=D.getUint32(u.b);if(0>=A){u.g=window.NaN;u=!0;break a}12==A&&6==
D.getUint8(u.b+4)&&45==D.getUint8(u.b+5)&&D.setUint8(u.b+5,63);u.b+=A+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.Ta&&!l&&!b.L&&0==f.info.g&&0<f.info.startTime)kD(f,0);else if(a.B.o&&0==f.info.g&&!a.A.S){a:if(rG(b)&&!nD(gG(b.o))&&sG(b))e=!1;else{l=null===b.D?f.info.startTime:b.D;0==kD(f,l)?(l=wC(f.info),l.smst=1,a.Mc(!0,"fmt.unparseable",l)):(n=lD(f),b.D=l+n,a.B.g&&f.info.b.info.video&&
tH(a,f,l,n));l=0;f.info.b.info.video&&null!==e&&f.info.duration&&!a.B.g&&(n=1E3*(lD(f)-f.info.duration),e-=b.F+n,25<=Math.abs(e)&&(l=e/1E3));e=l;l=lD(f);n=l+e;e&&!nD(f)&&(t=wC(f.info),t.deltaOffsetMs=1E3*(l-f.info.duration).toFixed(3),t.cumOffsetMs=b.F.toFixed(3),t.finalDurSecs=n.toFixed(3),a.Mc(!1,"qoe.avsync",t));if(rG(b)&&!nD(gG(b.o))&&e&&0<n){if(b.F+=1E3*(l-f.info.duration+e),b.D+=e,e=uG(b,v,n*mD(f))){if(sH(a,c,new window.Uint8Array(e),f,b)){wG(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.S&&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);NC(u,t);)D=OC(u,t),1936286840==D.type?n=TC(D):1836476516==D.type?n=LC(D):1952867444!=D.type||l||(l=RC(D)),t=PC(D.type)?t+8:t+D.size;!n&&e&&(n=MC(e));tH(a,f,l/n||f.info.B,lD(f))}if(!sH(a,c,k,f,b))return!1;b.L=!0;m?(kD(f,f.info.startTime),c.abort(),c.b=null,xC(f.info)):(vG(b,d),xC(b.A),ty(c.buffered));f.B&&(c.b=f.info.b.b,a.Y("initsegment",c.b));return!0};
sH=function(a,b,c,d,e){b=rH(a,b,c);return 0!=b?(2!=b&&(d.info.b.info.video?(a=a.A,a.o=Math.floor(.5*a.o),a.O=Math.floor(.5*a.O),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)),CG(e)),!1):!0};
tH=function(a,b,c,d){d=new mC(b.info.A,c,d,b.o.ingestionTime+(a.va.g()||0),"sq/"+b.info.A);var e=a.B,f=!1,k;for(k in e.b)d.b>e.b[k].index.Rb()&&(e.b[k].index.sa.push(d),f=!0);f&&(b=b.o,b=b.b["Cuepoint-Type"]?new CC((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.Wd+=c,a=a.B,a.F.push(b),a.Y("cuepointsadded"))};
rH=function(a,b,c){try{Gz(a.b)?b.appendBuffer(c):b.append(c)}catch(d){return 11==d.code?(a.Mc(!1,"html5.invalidstate",{updating:""+ +b.updating,mrs:a.b.o.readyState}),2):22!=d.code&&0!=d.message.indexOf("Not enough storage")?(Vi(d),4):1}return Dz(a.b)?3:0};
vH=function(a,b){b.o.subscribe("error",a.vC,a);b.o.subscribe("timestamprewrite",a.QD,a)};
kH=function(a,b,c){if(a.A.K&&a.G)return a.A.K;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.O));c&&(d+=a.A.M);b=a.D.b.isLocked()?b.b?b.b.b.info.b:b.g.info.b:b.S;d/=b;0<a.A.b&&(d=Math.min(d,a.A.b));a.A.ka&&(c=PF(a.F),d=Math.min(d,a.A.L+a.A.ea+Math.max(b-Math.max(1-.4*a.A.Oa,0)*c,0)*a.A.ga/b));return d};
wH=function(a){if(a.B.isLive){if(!a.g.g.index.Ye())return window.NaN;var b=a.g.g.index.Sf(),c=a.g.g.index.Rb(),d=a.g.g.index;return 1>a.A.liveChunkReadahead?d.Xe(c)+d.We(c)-.2:d.Xe(Math.max(b,c-a.A.liveChunkReadahead+1))+.2}return Math.floor(Math.min(a.g.g.index.Fg(),a.o.g.index.Fg()))};
xH=function(a,b,c,d){if(b.g.Wc())if(d){var e=vy(d.buffered,c),f=window.NaN,k=b.A;k&&(f=vy(d.buffered,k.b.index.Xe(k.A)));if(e==f&&EG(b))return c;d=xG(b,c);if(0<=d)return d;BG(b,b.g.Gd()?1:2);b.g.info.video&&b.A&&!b.A.C&&!zda(b.o)&&b.g.Gd()&&(d=b.A,b.o.b.length&&(d=hG(b.o).info),d=b.b||d,d=sD(d.b,d,d.range.length-(d.o+d.g)),nG(b,nH(a,d)));if((0,window.isNaN)(e))return zG(b,c);zG(b,e+bH.b)}else zG(b,c);else b.g.o||cH(a,b,!1),0!=c&&AG(b);return c};
yH=function(a,b,c){b.g!=c&&(b.g=c,c.o||cH(a,b,!1))};
cH=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.ip(d);F(c,function(a){if("f"!=a.b[0].b.info.o){var c=nH(this,a);!uC(a.b[a.b.length-1])&&nG(b,c)}},a);
b.g.o=!0};
zH=function(a){if(!a.o.b)return"";a=aC(a.o.b.b.C.b);return a.substr(0,a.indexOf("."))};
AH=function(a){var b={lct:a.C.toFixed(3),lsk:a.L,lmf:a.D.b.isLocked(),lbw:PF(a.F).toFixed(3),lhd:QF(a.F).toFixed(3),ltd:(1E9*OF(a.F)).toFixed(3),laa:a.g.A?xC(a.g.A):"",lva:a.o.A?xC(a.o.A):"",lar:a.g.b?xC(a.g.b):"",lvr:a.o.b?xC(a.o.b):"",lvh:zH(a)};a.b&&!Dz(a.b)&&(b.lab=ty(a.b.b.buffered),b.lvb=ty(a.b.g.buffered));return b};
dH=function(a,b,c){a.ra[b]=c?window.performance.timing.navigationStart+c:yq()};
fH=function(a){a.g&&BG(a.g,0);a.o&&BG(a.o,0)};
BH=function(a,b,c,d,e){G.call(this);this.B=a;this.K=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 Dw(this);H(this,this.A);this.g?(this.A.U(this.g,"message",this.PH),this.A.U(this.g,"keystatuseschange",this.QH)):this.b&&(Ew(this.A,this.b,["mskeymessage","webkitkeymessage"],this.nr),Ew(this.A,this.b,["mskeyerror","webkitkeyerror"],this.mr),Ew(this.A,this.b,["mskeyadded","webkitkeyadded"],this.lr))};
Jda=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};
CH=function(a,b){G.call(this);this.g=a;this.b=b;this.C={};this.A=null;this.B=new Dw(this);H(this,this.B);this.o=this.D=null};
DH=function(a){if(a.b.o)return a.b.o.createMediaKeys().then(Qi(x(function(a){this.D=a;this.g.setMediaKeys(a)},a)));
FD(a.b)?a.o=new (ED())(a.b.g):GD(a.b)?(a.o=new (ED())(a.b.g),a.g.webkitSetMediaKeys(a.o)):Kda(a);return null};
Kda=function(a){Ew(a.B,a.g,["keymessage","webkitkeymessage"],a.TH);Ew(a.B,a.g,["keyerror","webkitkeyerror"],a.SH);Ew(a.B,a.g,["keyadded","webkitkeyadded"],a.RH)};
EH=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};
FH=function(){this.keys=[];this.values=[]};
Lda=function(a){a.keys=[];a.values=[]};
GH=function(a,b){return cb(a.keys,function(a){return Fb(b,a)})};
Mda=function(a,b,c){this.url=a;this.interval=b;this.b=c};
Nda=function(a,b,c){this.b=a;this.headers=b;this.message=c};
IH=function(a,b,c,d,e,f){G.call(this);this.o=a;this.b=d;this.b.subscribe("oauthtoken",this.Tt,this);this.A={session_id:e};this.K=f;this.H=0;a=this.o.B;GD(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://"));HH(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.Y("licenseerror","drm.unavailable",!0,b,"YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK"),
k=null}if(this.g=k)b=this.g,c=this.XG,k=this.WG,a=this.ZG,b.D=this.YG,b.C=c,b.G=k,b.H=a,b.o=this,H(this,this.g);this.F={}};
Oda=function(a,b){this.message=a;this.number=b;this.b=!1};
HH=function(a,b){if(Pda.test(b)){for(var c in a.A)b=Zg(b,c,a.A[c]);a.B=b}else JH(a,"drm.net",!0,"t.u")};
JH=function(a,b,c,d,e){a.isDisposed()||a.b.Y("licenseerror",b,c,d,e);c&&a.dispose()};
Qda=function(a){return(a=a?a.split(","):null)&&fb(a,"HD")?"auto":"large"};
Rda=function(a,b){return Rh(a,function(a){return"HD"==b[a]})?"auto":"large"};
Sda=function(a){if(!a)return{};var b={};F(a.split(";"),function(a){a=a.split(",");2==a.length&&(b[Jca(a[1])]=a[0])});
return b};
KH=function(a,b){this.b=a;this.contentType=b||null};
MH=function(a,b,c,d,e,f){nk.call(this);a.addKey||a.webkitAddKey||ED()||ID(c);this.$=c;this.D=a;this.b=b;this.ba=!!f;this.subscribe("newlicense",this.KC,this);this.subscribe("newsession",this.LC,this);this.subscribe("sessionready",this.CD,this);this.subscribe("keystatuseschange",this.$G,this);this.S=e||cz();this.H=null;this.o=new FH;this.g=[];this.B=LH;this.G=new CH(a,b);H(this,this.G);this.A=null;FD(b)&&(this.A=new CH(a,b),H(this,this.A));this.L=2;this.F=new Dw(this);H(this,this.F);this.K=!1;this.M=
null;this.C=!1;a=this.D;this.b.o?this.F.U(a,"encrypted",this.QB):Ew(this.F,a,FD(this.b)?["msneedkey"]:["needkey","webkitneedkey"],this.IC);(a=DH(this.G))?a.then(Qi(x(this.uC,this)),Qi(x(this.WA,this))):this.C=!0;this.A&&DH(this.A);this.O=d};
OH=function(a,b,c){a.isDisposed()||FD(a.b)==c||a.K&&"widevine"==a.b.b&&!a.O||(a.K=!0,a.o.get(b.b)||(a.g.push(b),1<a.g.length||a.C&&a.o.set(b.b,NH(a,b))))};
NH=function(a,b){a.o.get(b.b);var c=new IH(a.b,a.G,b,a,a.S,a.ba);c.Tt(a.H);"playready"==a.b.b&&a.$.aa("playready_on_borg")&&(jc(c.A,{prob:"1"}),HH(c,c.B));return c};
PH=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.zb?this.o=Mj(this.b.zb):this.o=[]};
QH=function(a,b,c,d){this.videoData=a;this.b=b;this.reason=c;this.g=d};
Tda=function(a,b){this.W=a;this.b=b};
RH=function(a,b){return ly(ly(a.W.Be,b.Ta),b.Xa)};
TH=function(a,b){var c=au();return"auto"!=c?iy("auto",c,!1):SH(a,b)};
SH=function(a,b){if(BA(a.W)&&Wz(a.W.K,Qz))return ky;var c;c=!!b.o.b;var d;lA(a.W)&&(d=window.screen&&window.screen.width?new gf(window.screen.width,window.screen.height):null);d||(d=a.W.Ed?a.W.Ed.clone():a.b.Ka());(iA||UH||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=iy("auto",e.quality,
!1)}else e=ky;c=e.b;Pp()&&(c=Math.max(c,hy.hd1080));(Jp("armv7")||Jp("android"))&&!BA(a.W)&&RB(b.o.videoInfos[0])&&(c=Math.min(c,hy.large));c=Math.max(c,hy.medium);e.b!=c&&(e=new gy(e.g,c,e.o));return e};
Uda=function(a){this.A=this.b=window.NaN;this.g=this.o=!1;this.B=!!a};
VH=function(a,b){a.b=b;a.o=!0};
xq=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};
WH=function(a){if(a.Ml)return 4;var b=Qh("visibilityState",window.document);return b&&"visible"!=b?3:a.L?2:a.Ta?1:0};
Vda=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};
XH=function(){this.endTime=this.startTime=-1;this.wk="-";this.playbackRate=1;this.visibilityState=0;this.rk=""};
YH=function(a,b,c,d,e,f,k,l,m){this.videoData=a;this.b=b;this.A=c;this.B=d;this.g=e;this.C=f;this.G=k;this.F=l;this.D=m||function(){};
this.o=null};
fu=function(a){return ZH(a)()};
ZH=function(a){if(!a.o){var b=pa(function(a){var b=yq();a&&631152E6>=b&&(Vi(Error("invalid yt.now value: "+b)),b=(new Date).getTime());return b},a.b.experiments.aa("html5_validate_yt_now"));
a.o=pa(function(a){return Math.round(b()-a)/1E3},b())}return a.o};
zu=function(a){var b=a.A();a=a.videoData;var c={};a.g&&(c.fmt=hu(a.g),a.B&&hu(a.B)!=hu(a.g)&&(c.afmt=hu(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.Mb&&(c.infringe=1);a.oa&&(c.splay=1);a.za&&(c.live=a.L?"dvr":"live");a.K&&(c.autoplay=1);a.Vn&&(c.sdetail=a.Vn);a.Da&&(c.partnerid=a.Da);a.osid&&(c.osid=a.osid);qa(b,c);return b};
Qt=function(a){var b=new XH;b.wk=a.A().cc||"-";var c=a.b;b.playbackRate=c.H&&c.H.b.playbackRate||1;c=a.getVisibilityState();0!=c&&(b.visibilityState=c);a=a.F();a.Vb&&a.Vb.id&&"und"!=a.Vb.id&&(b.rk=a.Vb.id);return b};
$H=function(a,b){this.state=a;this.b=b};
Hu=function(a,b){return R(a.state,b)&&!R(a.b,b)?1:!R(a.state,b)&&R(a.b,b)?-1:0};
aI=function(a,b,c,d,e,f){nk.call(this);this.Da=new Uda(a.experiments.aa("html5_always_underrun_on_empty_buffer"));this.D=c;this.Na=d;c=x(function(a,b){a=="crn_"+aI.b&&bI(this);e(a,b)},this);
this.C=new lt(x(this.getCurrentTime,this),x(this.fG,this),x(this.getPlayerState,this),c);H(this,this.C);this.ia=window.NaN;this.M=this.F=null;this.W=a;this.ka=new Tda(a,this.Na);this.H=!1;this.G=this.A=null;this.$=[];this.da=new eG;this.S=new eG;this.yb=this.Ba=!1;this.Ia=window.NaN;this.B=new rq;this.na=[];this.K=b;this.fa=this.ga=null;this.L=window.NaN;this.ea=new Dw;H(this,this.ea);this.b=new dF;this.g=null;this.ba=window.NaN;this.o=null;this.kb=this.Ha=!1;this.va=window.NaN;this.Xa=this.ab=this.ra=
this.oa=!1;this.Ja=this.bb=window.NaN;this.Mb=a.experiments.aa("html5_force_play_on_suspend_event");this.Tb=a.experiments.aa("html5_force_play_on_suspend_event_limited");this.O=null;this.gc=this.W.experiments.aa("html5_playing_event_buffer_underrun");this.Sa=new LF(50);this.zb=E();this.rb=!1;this.Db=0!=f};
cI=function(a){Gw()?Iw(a.va):Ti(a.va)};
iI=function(a,b,c){a.$.length=0;a.da.reset();a.S.reset();a.ia=window.NaN;a.L=window.NaN;a.Ha=!1;a.g&&Ky(a.g);dI(a);eI(a);fI(a);cI(a);a.Sa.clear();Mb(a.b);if(2==a.K||fA.test(a.W.M))b.$s=!0;a.W.L&&(b.autonavState=a.b.autonavState);a.b=b;a.b.subscribe("dataupdated",a.hE,a);a.b.subscribe("dataloaded",a.Ko,a);a.b.subscribe("dataloaderror",a.Ah,a);a.b.subscribe("onStatusFail",a.gE,a);b.ga&&b.ga>b.startSeconds&&(b=b.ga,a.M&&(a.C.yh(a.M),a.M=null),a.M=new aq(1E3*b,0x7ffffffffffff),a.M.namespace=aI.b,a.C.tb([a.M]));
eI(a);a.b.fa||(c=new YH(a.b,a.W,c,x(a.zh,a),x(a.getCurrentTime,a),x(a.Xx,a),x(a.Na.Ka,a.Na),x(a.Um,a),x(a.ky,a)),a.o=new xu(c));a.oa=!1;gI(a,"newdata");hI(a,new rq)};
eI=function(a){if(a.o){var b=a.o;if(!b.isDisposed()&&b.A){b.C="paused";var c=Cu(b);c.ia=!0;c.send();c=b.g;"PL"==c.o&&(c.o="N");var d=fu(c.b);du(c,d,"vps",[c.o]);c.qg(d);Ti(b.B);b.dispose()}Mb(a.o);a.o=null}};
kI=function(a){if(xF(a.b))return!0;jI(a,"api.invalidparam",void 0,"invalidVideodata.1");return!1};
lI=function(a,b){a.Ba=!!b;kI(a)&&!a.da.g&&(a.da.start(),a.o&&nu(a.o.g),a.Ko())};
nI=function(a){a.g&&Dy(a.g);lI(a);kI(a)&&!R(a.B,128)&&(a.S.g||(a.S.start(),hI(a,zq(a.B,8)),AF(a.b)||hI(a,zq(a.B,1))),mI(a))};
mI=function(a){a.isDisposed();if(!a.S.b&&a.da.b&&!R(a.B,128)&&!a.$.length&&(a.C.A||mt(a.C),!oI(a))){if(a.A){var b=a.A;a.yb=!!b.M&&!!b.ba}a.S.b=!0;a.b.za&&(a.seekTo(window.Infinity,!0),pI(a,!0),3==WH(a.W)&&(a.kb=!0));if(a.o){b=a.o;b.b.videoData.enableCardio&&b.b.videoData.enableCardioBeforePlayback&&(b.F("connected"),Ku(b));if(b.b.videoData.za){var b=b.g,c=b.b.videoData.b;c&&CD(c)&&lu(b,"live-segment-"+CD(c).toFixed(1));c=EF(b.b.videoData,b.b.b.experiments);lu(b,"live-readahead-"+c)}mF(a.b)&&mu(a.o.g,
"manifestless","1",void 0)}a.Y("playbackready",a);ME("pbr",a.D.b)||(a.D.g("pbr"),JE("pbr",void 0,"video_to_ad"))}};
bI=function(a,b){a.pauseVideo();hI(a,0==b?new rq:new rq(14))};
tI=function(a,b,c,d){a.b.g=c;a.b.B=d||c;if(a.o){var e=ly(ly(SH(a.ka,a.b),qI(a)),rI(a)),e=bb(a.b.o.videoInfos,x(e.A,e)),e=new QH(a.b,c,b,e?hu(e):"");d&&"i"==b&&sI(a,b,d);d=a.o.g;c=fu(d.b);du(d,c,"vfs",[e.b.id,e.g,d.ca,e.reason]);d.ca=e.b.id;e=d.b.G();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);du(d,c,"view",e)}du(d,c,"vps",[d.o]);d.qg(c)}a.Y("internalvideoformatchange",a.b,"m"==b)};
sI=function(a,b,c){a.b.B=c;if(a.o){var d=a.o.g;c=new QH(a.b,c,b,"");var e=fu(d.b);c.b.id!=d.G&&(du(d,e,"afs",[c.b.id,d.G,c.reason]),d.G=c.b.id)}"i"!=b&&a.Y("internalaudioformatchange",a.b,"m"==b)};
jI=function(a,b,c,d){var e,f;Ub(Wda,c)?e=c:c?f=c:e="YTP_ERROR_GENERIC_WITHOUT_LINK";b={errorCode:b,errorDetail:d,message:f||O(e),messageKey:e};hI(a,vq(a.B,128,b));cI(a);fI(a);uI(a)};
vI=function(a,b){a.$=a.$.filter(function(a){return b!=a});
a.S.g&&mI(a)};
oI=function(a){var b;(b=!!a.$.length)||(a=a.C.b.b[0],b=!!a&&-0x8000000000000>=a.start);return b};
wI=function(a){a.W.experiments.aa("html5_crossorigin_video")&&a.g&&(a.b.fa||!a.b.o||a.b.o.b?Py(a.g,!1):Py(a.g,!0))};
yI=function(a,b){a.g&&xI(a);a.g=b;Xda(a);wI(a)};
xI=function(a){a.b&&a.W.experiments.aa("new_ended_replay")&&(a.b.startSeconds=a.getCurrentTime());a.G&&(a.G.dispose(),a.G=null);a.A&&(pH(a.A),a.A.G=!0);a.g&&(a.o&&a.da.g&&R(a.B,64)&&!a.b.H&&zI(a),dI(a),Fw(a.ea),Ky(a.g),a.g=null)};
DI=function(a){if(!R(a.B,128))if(a.rb)a.rb=!1,AI(a);else if(nI(a),R(a.B,64)&&hI(a,zq(a.B,8)),a.S.b&&a.g)if(a.b.o){a.W.experiments.aa("new_ended_replay")&&R(a.B,2)&&a.seekTo(0,!0);if(a.b.za){var b=a.getCurrentTime()<vF(a.b),c=Tr(a.b)&&R(a.B,4);(b||c)&&a.seekTo(window.Infinity,!0);BI(a)?pI(a,!0):a.H&&a.seekTo(window.Infinity,!0)}if(a.b.o.b)b=CI(a),a.A.resume();else{fI(a);var b=a.b.ka.g(),c=a.b,d={};c.Sa&&(d.ptk=c.Sa,d.oid=c.In,d.ptchn=c.Fn,d.pltype=c.Jn);qa(b.g,d);c=a.W.o;qa(b.g,{c:c.c,cver:c.cver})}(c=
a.g.g)&&Hy(c,b)?Gy(a.g):Yda(a,b)}else b=a.b.za&&!Oz()?"html5.unsupportedlive":"fmt.noneavailable",jI(a,b,"YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK","selectableFormats.1")};
EI=function(a,b){dI(a);fI(a);b||CI(a)};
FI=function(a){if(a.b.o){var b=qI(a)||ky;a=ke(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};
GI=function(a){return ly(ly(ly(RH(a.ka,a.b),TH(a.ka,a.b)),qI(a)),rI(a))};
qI=function(a){return a.b.ve?ky:a.F?a.F.B:iF(a.b)&&a.b.o.b&&Yz(a.b.b)?LH:ky};
HI=function(a,b,c){if(!a.isDisposed()&&!R(a.B,128)&&(c&&(a.b.Xa=c),iF(a.b))){"m"==b&&c&&jy(c)&&(b="a");c=GI(a);if(a.b.o.b){if(a.A&&"i"!=b){var d=a.A;d.isDisposed()||((c=tda(d.D,c,b))&&d.Y("videoformatchange",c),yH(d,d.o,XF(d.D)),d.D.b.isLocked()&&"m"==b&&(CG(d.o),CG(d.g)),HG(d.o)&&mH(d,d.o,d.g),pH(d))}}else{a:if(d=a.b.da,c.b){for(var e=0;e<d.length;e++){var f=d[e].Rc,k=hy[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.ka=c;tI(a,b,a.b.ka.Rc)}a.B.Za()&&
DI(a)}};
II=function(a){zca(a.b.b,{c:a.W.o.c,cver:a.W.o.cver});var b=a.W,c=a.b,d=new Iba;b.experiments.aa("html5_use_tight_max_buffer_depth")&&(d.ka=!0,d.ga=b.experiments.b("html5_tight_max_buffer_allowed_impaired_time")||d.ga,d.Oa=b.experiments.b("html5_tight_max_buffer_allowed_bandwidth_stddevs")||d.Oa,d.ea=b.experiments.b("html5_tight_max_buffer_abr_avoidance_padding")||d.ea);d.fa=b.experiments.b("html5_throttle_rate")||d.fa;b.experiments.aa("html5_streaming_xhr")&&(d.G=!0);d.K=b.experiments.b("html5_idle_preload_secs");
d.D=b.experiments.aa("html5_report_extended_parse_errors");b.experiments.aa("html5_use_mediastream_timestamp")&&(d.S=!0);if(Op()||b.experiments.aa("dash_html5_safari8_workarounds"))d.ba=!0;Op()&&(d.da=-1);if(Jp("trident/")||Jp("edge/"))d.b=240;fs&&(d.O=41943040);if(BA(b)||!Fz())d.o=8388608,d.B=524288,d.M=2097152,d.C=1048576,d.Ha=1.5,d.Ba=15,d.H=!Fz(),d.va=!1,Mp()&&(d.ca=75E4),d.Ja=!0,d.g*=1.3,d.A*=1.3,d.Da=!0;if(Pp()){var e="CHROMECAST/ANCHOVY"==b.o.cmodel;d.o=20971520;d.B=1572864;e&&(d.ca=812500,
d.F=1E3)}d.Xa=b.C;d.liveChunkReadahead=EF(c,b.experiments);d.Na=!b.experiments.aa("disable_fpa_sei_removal")&&Jp("windows nt")&&(DF(c)||oF(c));mF(c)&&!b.experiments.aa("disable_html5_manifestless_delay")&&(d.na=!0);b.experiments.B&&(d.ca=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.Ia=c;b.experiments.aa("html5_strip_emsg")&&(d.oa=!0);d.b=b.experiments.b("html5_max_buffer_duration")||d.b;d.L=b.experiments.b("html5_max_buffer_health_for_downgrade")||
d.L;a.ga.b.g=mF(a.b)?.5:0;a.A=new bH(a.ga,d,a.b.b,a.b.o);a.A.subscribe("initsegment",a.iC,a);a.A.subscribe("videoformatchange",a.qC,a);a.A.subscribe("audioformatchange",a.pC,a);a.A.subscribe("error",a.Ah,a);a.A.subscribe("seekrequired",a.ZE,a);b=fb(a.$,"spacecast")||a.Ba;d=a.Um();d=d.Vb.isDefault?void 0:d;a.A.initialize(a.b.startSeconds,GI(a),b,d);a.b.probeUrl&&(a.A.S=a.b.probeUrl);if(a.$.length||a.Ba)a.A.G=!0;a.Ba&&zI(a);if(a.W.experiments.b("html5_background_quality_cap"))a:{a=x(a.oE,a);if(window.document.visibilityState)b=
"visibilitychange";else{if(!window.document[Ph+"VisibilityState"])break a;b=Ph+"visibilitychange"}window.document.addEventListener(b,a,!1)}};
rI=function(a){var b=a.W.experiments.b("html5_background_quality_cap"),c=a.W.experiments.b("html5_background_cap_idle_secs");return!b||pu()/1E3<c?ky:3==WH(a.W)?new gy(0,b,!1):ky};
zI=function(a){Ju(a.o,new $H(new rq(4),a.B))};
fI=function(a){a.A&&(a.A.dispose(),a.A=null);a.G&&(a.G.dispose(),a.G=null)};
CI=function(a){a.G||(a.A?a.A.seek(a.getCurrentTime()):II(a),a.G=new Az(a.g.ma(),a.b.lengthSeconds,a.b.o.videoInfos[0].mimeType,a.b.o.b[0].mimeType,a.W.C),kba(a.G,x(a.A.bx,a.A)),lba(a.G,x(function(a){jI(this,"fmt.unplayable",void 0,"msi.1;ename."+a.name)},a)));
try{return mba(a.G)}catch(b){return b.message="window.URL object overwritten by external code",window.setTimeout(function(){throw b;},0),jI(a,"html5.missingapi","YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK","updateMs.1"),null}};
AI=function(a){hF(a.b);!a.b.H&&a.b.Na||a.ra||(a.ra=!0,a.Y("signatureexpired"))};
JI=function(a){return a.details.isPotentialFormatUnavaliable&&("net.retryexhausted"==a.errorCode||"net.badstatus"==a.errorCode)};
uI=function(a){a.g&&(a.g.pause(),dI(a),fI(a),a.b&&(a.b.startSeconds=a.getCurrentTime()),a.L=window.NaN,Ky(a.g),R(a.B,128)||hI(a,vq(a.B)))};
Zda=function(a){if(!a.g)return 0;if(Tr(a.b))return 1;if(BF(a.b)){if(a.H)return 1;var b=a.g,c=Iy(b),b=(0<wy(c)&&b.b.duration?c.end(c.length-1):0)-vF(a.b);a=KI(a,!0)-vF(a.b);return Math.max(0,Math.min(1,b/a))}return My(a.g)};
LI=function(a,b){var c={};if(b){a.o?qa(c,wu(Au(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.b.duration.toFixed(3),vpl:ty(d.b.played||sy()),vbu:ty(Iy(d)),vpa:d.b.paused,vsk:d.b.seeking,ven:d.b.ended,vpr:d.b.playbackRate,vrs:d.b.readyState,vns:d.b.networkState,vec:d.vb(),vvol:d.b.volume};qa(c,d)}a.A&&qa(c,AH(a.A));c.state=a.B.g.toString(16);R(a.B,128)&&(c.debug_error=a.B.b);oI(a)&&(c.preroll="1");a.b.bb&&(c.ismb=a.b.bb);a.b.isLowLatencyLiveStream&&
(c.lowlatency="1");a.b.za&&(a.b.b&&CD(a.b.b)&&(c.segduration=CD(a.b.b)),a.O&&(d=a.O.A,c.lat=d.b[d.g]||0))}c.debug_videoId=a.b.videoId;return c};
gI=function(a,b){a.Y("internalvideodatachange",b||"dataupdated",a,a.b)};
Xda=function(a){F("loadstart loadeddata loadedmetadata play playing pause ended suspend progress seeking seeked timeupdate durationchange ratechange error waiting abort".split(" "),function(a){this.ea.U(this.g,a,this.hG,this)},a);
a.W.zd&&(a.ea.U(a.g,"webkitplaybacktargetavailabilitychanged",a.LA,a),a.ea.U(a.g,"webkitcurrentplaybacktargetiswirelesschanged",a.MA,a))};
MI=function(a){var b=a.getCurrentTime(),c=a.b;!ME("pbs",a.D.b)&&DE.measure&&DE.getEntriesByName&&(DE.getEntriesByName("mark_nr")[0]?EE("mark_nr"):EE());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.b.paused&&a.D.info("paused",1);c.g?a.D.info("fmt",hu(c.g)):a.D.info("fmt","-1");c.cf&&a.D.info("yt_pre",a.yb?"2":"1");a.W.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.ba),c.length&&(c=c[0],dH(b,"vri",c.fetchStart),dH(b,"vdns",c.domainLookupEnd),dH(b,"vreq",c.requestStart),dH(b,"fvb",c.responseStart),dH(b,"vrc",c.responseEnd)),c=window.performance.getEntriesByName(b.M),c.length&&(c=c[0],dH(b,"ari",c.fetchStart),dH(b,"adns",c.domainLookupEnd),dH(b,"areq",c.requestStart),dH(b,"avb",c.responseStart),dH(b,"arc",c.responseEnd)));
var b=b.ra,d;for(d in b)a.D.g(d,b[d])}};
$da=function(a){if(a.ia&&a.g){var b=a.g.b.seekable||sy();b.length&&b.end(0)>a.ia&&(a.g.b.currentTime=a.ia,a.ia=window.NaN,a.Ta=a.ea.U(a.g,"canplay",a.KB,a))}};
OI=function(a,b){if(a.g&&a.b){var c=a.getCurrentTime();if(c<vF(a.b)&&a.B.Za())a.seekTo(window.Infinity,!0);else{if(a.H){var d=KI(a,!1);if(c<d-NI(a)){if(a.B.Za()&&(a.b.Ja||Tr(a.b))){a.seekTo(window.Infinity,!0);return}a.b.za&&pI(a,!1)}}else a.b.za&&BI(a,c)&&pI(a,!0);if(a.A&&(d=a.A,d.b)){d.resume();if(d.L&&!Dz(d.b)){var e=d.C<=c&&c<d.C+10,f=0<=uy(d.b.g.buffered,d.C+bH.b);e&&f&&(d.L=!1)}d.L||(d.C=c);qH(d)}5<c&&(a.b.startSeconds=c);(d=Gw())?Iw(a.va):Ti(a.va);!Dq(a.B)&&a.g.b.paused||R(a.B,128)||(e=x(a.Ey,
a),a.va=0==(a.g.b.played||sy()).length?d?Hw(e,100):Ri(e,100):d?Hw(e,500):Ri(e,500));a.b.Bd=c;!b&&a.B.Za()&&a.o&&(c=a.o,c.o.update(),AF(c.b.videoData)&&c.b.videoData.ea&&!c.M&&Tt(c.o)>=c.b.videoData.ea&&(c.A&&c.b.videoData.ea&&(d=Au(c,"delayplay"),d.Da=!0,d.send(),c.M=!0),Fu(c)),d=c.ba,d.o||!d.b.gc||d.b.kc||!d.videoData.lengthSeconds?d=!1:(e=Math.min(.8*d.videoData.lengthSeconds,180),d=Tt(d.A)>=e),d&&c.ba.send());E()>a.zb+1E3&&(a.zb=E(),MF(a.Sa,uq(a.g)));a.Y("progresssync",a,b)}}};
hI=function(a,b){var c=a.B;if(b.g!=c.g||b.b!=c.b){c=new $H(b,a.B);a.B=b;var d=!a.na.length;a.na.push(c);0>Hu(c,8)&&(Ti(a.ba),a.ba=window.NaN,pI(a,!1));0<Hu(c,8)&&!a.b.H&&(0,window.isNaN)(a.ba)&&(a.ba=Ri(x(a.Yq,a),15E3));0<Hu(c,32)&&pI(a,!1);if(R(c.state,2)&&BF(a.b)){var e=a.getCurrentTime();a.b.lengthSeconds!=e&&(a.b.lengthSeconds=e,gI(a));OI(a,!0)}0<Hu(c,2)&&a.jm();a.W.experiments.aa("html5_check_for_reseek")&&0<Hu(c,1)&&(a.Ja=Ri(x(a.UE,a),5E3));a.o&&Ju(a.o,c);if(d)try{for(d=0;d<a.na.length;d++){var c=
a.na[d],f=a.C,e=c;if(f.A&&!f.D&&(f.qe(),R(e.b,16))){var e=f,k=kt(e.b,Math.max(e.o-2E3,0));null!=k&&0x7ffffffffffff>k&&e.B.start()}a.Y("statechange",c)}}finally{a.na.length=0}}};
PI=function(a){R(a.B,2)||R(a.B,32)||(a.L=window.NaN)};
pI=function(a,b){a.b.za&&a.H!=b&&(a.H=b,a.Y("liveviewshift",b))};
Yda=function(a,b){aea(a,b);a.W.cf?Ri(x(function(){Gy(this.g)},a),0):Gy(a.g)};
aea=function(a,b){a.D.g("vta");JE("vta",void 0,"video_to_ad");Dy(a.g,b);if(tF(a.b)&&tF(a.b)&&!a.F&&a.g){var c=a.b.G;if(c){var d=a.g.ma();a.F=new MH(d,c,a.W.experiments,a.b.za,a.b.drmSessionId,a.W.experiments.aa("html5_disable_drm_retry"));a.F.subscribe("newsession",a.JC,a);a.F.subscribe("licenseerror",a.kC,a);a.F.subscribe("qualitychange",a.lC,a);a.F.subscribe("heartbeatparams",a.gG,a);c=a.F;d=a.b.oauthToken;c.H=d;c.Y("oauthtoken",d)}else jI(a,"fmt.unplayable","YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK",
"drm.1")}a.G&&Lw();Ti(a.ba);a.b.H||(c=15E3,a.W.experiments.aa("html5_log_qoe_start15s_details")&&(c=14E3),a.ba=Ri(x(a.Yq,a),c))};
dI=function(a){a.F&&(a.F.dispose(),a.F=null)};
KI=function(a,b){if(!a.g)return 0;if(!a.b.za){var c=a.b;return c.b&&!(0,window.isNaN)(AD(c.b))?AD(c.b):c.lengthSeconds}if(b&&(a.H||Tr(a.b)))return a.getCurrentTime();if(a.A)return c=wH(a.A),Math.max(c,vF(a.b))||0;c=a.g.b.seekable||sy();return(1>c.length?window.NaN:c.end(c.length-1))||0};
BI=function(a,b){void 0==b&&(b=a.getCurrentTime());return b>=KI(a,!1)-NI(a)};
NI=function(a){if(!a.b.b)return window.NaN;var b=a.W.experiments.b("html5_allowable_liveness_drift_chunks")||2;0<b&&!a.H&&b--;return b*CD(a.b.b)};
RI=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 QI(a)};
QI=function(a,b,c){if(ia(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}};
TI=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;U(this,"cueVideoById",this.Vm);U(this,"loadVideoById",this.Xm);U(this,"cueVideoByUrl",this.kG);U(this,"loadVideoByUrl",this.vG);U(this,"playVideo",this.xd);U(this,"pauseVideo",this.pauseVideo);U(this,"stopVideo",this.Hj);U(this,"clearVideo",this.iG);U(this,"getVideoBytesLoaded",this.qG);U(this,"getVideoBytesTotal",this.rG);U(this,"getVideoLoadedFraction",this.Wm);U(this,"getVideoStartBytes",
this.sG);U(this,"cuePlaylist",this.jG);U(this,"loadPlaylist",this.Dt);U(this,"nextVideo",this.Ej);U(this,"previousVideo",this.Fj);U(this,"playVideoAt",this.Ym);U(this,"setShuffle",this.zG);U(this,"setLoop",this.xG);U(this,"getPlaylist",this.$c);U(this,"getPlaylistIndex",this.oG);U(this,"getPlaylistId",this.se);U(this,"loadModule",this.Dj);U(this,"unloadModule",this.It);U(this,"setOption",this.Ve);U(this,"getOption",this.Jb);U(this,"getOptions",this.Dh);U(this,"mute",this.mute);U(this,"unMute",this.Bf);
U(this,"isMuted",this.ad);U(this,"setVolume",this.setVolume);U(this,"getVolume",this.Nb);U(this,"seekTo",this.seekTo);U(this,"getPlayerState",this.getPlayerState);U(this,"getPlaybackRate",this.nG);U(this,"setPlaybackRate",this.Eh);U(this,"getAvailablePlaybackRates",this.Bh);U(this,"getPlaybackQuality",this.Cj);U(this,"setPlaybackQuality",this.Gj);U(this,"getAvailableQualityLevels",this.Bt);U(this,"getCurrentTime",this.getCurrentTime);U(this,"getDuration",this.Ch);U(this,"addEventListener",this.addEventListener);
U(this,"removeEventListener",this.removeEventListener);U(this,"getVideoUrl",this.getVideoUrl);U(this,"getDebugText",this.Bj);U(this,"getVideoEmbedCode",this.Ct);U(this,"getVideoData",this.getVideoData);U(this,"addCueRange",this.At);U(this,"removeCueRange",this.Et);U(this,"setSize",this.setSize);U(this,"getApiInterface",this.lG);U(this,"destroy",this.destroy);U(this,"showVideoInfo",this.Ht);U(this,"hideVideoInfo",this.tG);SI(this,"getInternalApiInterface",this.mG);SI(this,"getAdState",this.getAdState);
SI(this,"isNotServable",this.uG);SI(this,"getUpdatedConfigurationData",this.pG);SI(this,"updateRemoteReceivers",this.AG);SI(this,"sendAbandonmentPing",this.wG);SI(this,"setAutonav",this.Ft);SI(this,"setAutonavState",this.Gt);SI(this,"setMinimized",this.yG);SI(this,"channelSubscribed",v);SI(this,"channelUnsubscribed",v)};
U=function(a,b,c){a.o[b]=x(c,a)};
SI=function(a,b,c){a.A[b]=x(c,a)};
UI=function(a,b){TI.call(this,a,b);U(this,"getPresentingPlayerType",this.getPresentingPlayerType);U(this,"addInfoCardXml",this.BG);U(this,"cueVideoByPlayerVars",this.CG);U(this,"loadVideoByPlayerVars",this.$m);U(this,"preloadVideoByPlayerVars",this.Lt);U(this,"seekBy",this.yd);U(this,"updatePlaylist",this.RG);U(this,"updateLastActiveTime",this.QG);U(this,"updateVideoData",this.SG);U(this,"getStoryboardFormat",this.HG);U(this,"getProgressState",this.Cf);U(this,"getHousebrandProperties",this.FG);U(this,
"setPlaybackQualityRange",this.Nt);U(this,"getCurrentPlaylistSequence",this.EG);U(this,"canPlayType",this.canPlayType);U(this,"sendVideoStatsEngageEvent",this.Eg);U(this,"setCardsVisible",this.Gh);U(this,"handleGlobalKeyDown",this.IG);U(this,"getAudioTrack",this.Fh);U(this,"setAudioTrack",this.an);U(this,"getAvailableAudioTracks",this.Jt);U(this,"getMaxPlaybackQuality",this.GG);U(this,"setSizeStyle",this.NG);U(this,"forceFrescaUpdate",this.DG);U(this,"setAutonav",this.Ft);U(this,"setAutonavState",
this.Gt);U(this,"showControls",this.PG);U(this,"hideControls",this.JG);U(this,"getVisibilityState",this.getVisibilityState);U(this,"shouldSendVisibilityState",this.OG);U(this,"getVideoContentRect",this.Kt);U(this,"setSafetyMode",this.MG);U(this,"setFauxFullscreen",this.LG);U(this,"cancelPlayback",this.zo);U(this,"getVideoStats",this.np);U(this,"updateSubtitlesUserSettings",this.bn);U(this,"getSubtitlesUserSettings",this.Zm);U(this,"resetSubtitlesUserSettings",this.Mt);U(this,"isFastLoad",this.KG)};
VI=function(a,b){UI.call(this,a,b)};
bea=function(a){(a=WI(a.app))&&EI(a,!0)};
iq=function(a){return a.app.G};
YI=function(a){a=iq(a).o;return!!a&&XI(a)};
aJ=function(a){var b=iq(a).o;return b&&ZI(b)?!0:(a=$I(iq(a),"ypc"))&&a.xb()?!0:!1};
bJ=function(a,b){a.Wa("autonavcancel",b)};
T=function(a){return a.app.W};
Sr=function(a){var b=a.app;a=a.playerType;return 3==b.getPresentingPlayerType()?b.C.L:WI(b,a).getPlayerState()};
Jx=function(a){return a.app.D};
cJ=function(a){return a.app.S&&!a.Qa()||!!a.$c()};
dJ=function(a){if(a=$I(iq(a),"captions"))a.L=!0,a.loaded?a.g&&a.g!=a.o.Fe()?LB(a):a.Ar():a.load()};
br=function(a){if(Vh())if(a.Qa())(a=Sh(["exitFullscreen","webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen"],window.document))&&a.call(window.document);else{a=Jx(a).element;var b=Sh(["requestFullscreen","webkitRequestFullscreen","mozRequestFullScreen","msRequestFullscreen"],a);b&&b.call(a)}else a.Aa("onFullscreenToggled",a.Qa())};
eJ=function(a){return(a=WI(a.app))?my(RH(a.ka,a.b)):"unknown"};
fJ=function(a){(a=iq(a).g)?a.g?(a=a.g,a=a.b?a.b.qf():{}):a={}:a={};return a};
gJ=function(a,b){T(a).experiments.aa("ui_logging")&&Xu(a,"controlclicked",{controlClicked:b})};
Xu=function(a,b,c,d){var e=WI(a.app);c.event=b;a.Qa()&&(c.fs=1);c.ux=1;e.logEvent(c,d)};
Uv=function(a){a.Wa("cardstatechange",mr(a)&&hJ(a)?1:0)};
mr=function(a){return(a=$I(iq(a),"iv-module"))?$x(a):!1};
hJ=function(a){return(a=$I(iq(a),"iv-module"))?ay(a):!1};
KB=function(a){(a=WI(a.app))&&a.o&&St(a.o.o)};
Kx=function(a){a=a.app.na;var b=Jx(a.b).Ka(),b=new lg(0,0,b.width,b.height);if(a.B.g&&!iJ(a)){if(T(a.b).ab){var c=jJ(a)?69:48;b.top+=c;b.height-=c}a.o&&(b.height-=jJ(a.o.b)?72:50)}return b};
Vr=function(a,b){a.Aa("onFrescaStateChange",b);var c=WI(a.app);if(c&&b&&c.o){var c=c.o.g,d=b.hasActiveStream;du(c,fu(c.b),"stream",[d?"A":"I"])}};
kJ=function(a){return(a=$I(iq(a),"fresca"))?!!a.B&&a.B.o.g:!1};
lJ=function(a){var b=WI(a.app,1);if(!b)return!1;var c=b.getVideoData();return xF(c)&&!Tr(c)&&2!=a.getPresentingPlayerType()&&(!oI(b)||3==a.getPresentingPlayerType())};
mJ=function(a){return a.app.ga.play_pause||2==a.getPresentingPlayerType()?!0:!oI(WI(a.app,1))};
oJ=function(a,b,c){var d=a.app;a=c||a.playerType;if(c=WI(d,a))c.C.yh.apply(c.C,b),a&&d.getPresentingPlayerType()!=a||nJ(d,"cuerangesremoved",b)};
gq=function(a,b){var c=WI(a.app,a.playerType);c&&vI(c,b)};
Qv=function(a,b,c){a=Jx(a).element;var d=Ab(a.children,function(a){a=(0,window.parseInt)(a.getAttribute("data-layer"),10);return c-a||1});
0>d&&(d=-(d+1));Gf(a,b,d);b.setAttribute("data-layer",c)};
pJ=function(a){var b=T(a);if(!b.zb)return!1;var c=a.getVideoData();if(!c)return!1;b=c.za&&!b.experiments.aa("html5_live_endscreen");return!c.ypcPreview&&!b&&!fb(c.F,"ypc")&&!a.$c()};
cea=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.G=a.isSubscribe;this.b=a.targetUrl;this.C=a.sessionData||{};this.H=a.targetTab;this.g=a.accessibilityStr;this.impressionUrls=a.impressionUrls;this.D=a.hoverUrls;this.clickUrls=a.clickUrls};
qJ=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 cea(a[b]))};
rJ=function(a){dq.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.K=null};
dea=function(a){return sJ(a)?new rJ(a):null};
sJ=function(a){return tJ(T(a).g)?!0:Xr(a.getVideoData(),"iv_endscreen_url")};
tJ=function(a){return"creator-endscreen-editor"===a};
uJ=function(a,b){fq(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=[];d=new aq(b.startMs,0x7ffffffffffff,{id:"ytp-ce-in-endscreen"});c.push(d);a.B=new S(["div","ytp-ce-shadow"]);Qv(a.b,a.B.element,4);for(var e=0;e<b.elements.length;++e){var f=b.elements[e],d=(d={VIDEO:a.lx,PLAYLIST:a.kx,CHANNEL:a.jx,WEBSITE:a.mx}[f.type])?d.call(a,f):null;a.g[f.id]=d;a.C[f.id]=f;Qv(a.b,d.element,4);var k=new aq(f.startMs,
f.endMs,{id:"ytp-ce-element-"+f.id});c.push(k);eea(a,d,f)}a.tb(c);a.hn()}};
vJ=function(a,b){var c;b.B&&(c=b.B.thumbnails);!tJ(T(a.b).g)&&a.K&&b.o&&b.o.thumbnails&&(c=b.o.thumbnails);return c?c[c.length-1].url:null};
wJ=function(a){return a?{style:"background-image: url("+a+")"}:{}};
eea=function(a,b,c){b.P("mouseenter",x(a.gn,a,b,c));b.P("mouseleave",x(a.Vt,a,b,c));b.P("click",x(a.Sq,a,c));b.P("keypress",x(a.Sq,a,c));b.P("focus",x(function(a,b){J(a.element,"ytp-ce-force-expand");this.gn(a,b)},a,b,c));
b.P("blur",x(function(a,b){le(a.element,"ytp-ce-force-expand");this.Vt(a,b)},a,b,c));
b.P("touchstart",x(a.gn,a,b,c));var d=qf("ytp-ce-expanding-overlay-hider",b.element);d&&b.U(d,"touchstart",function(a){a=a||window.event;a.cancelBubble=!0;a.stopPropagation&&a.stopPropagation();le(b.element,"ytp-ce-element-hover")});
var e=x(function(a,b,c){c=Kf(c);F(c,function(c){e(c);Vf(c)&&(a.U(c,"focus",x(function(a,b){J(a.element,"ytp-ce-force-expand");xJ(this,b.id,!0)},this,a,b)),a.U(c,"click",x(function(a,b){J(a.element,"ytp-ce-force-expand");
xJ(this,b.id,!0);this.H=!0},this,a,b)),a.U(c,"blur",x(function(a,b){this.H?(this.H=!1,a.element.focus()):(le(a.element,"ytp-ce-force-expand"),xJ(this,b.id,!1))},this,a,b)))},this)},a,b,c);
e(b.element)};
xJ=function(a,b,c){K(a.B.element,"ytp-ce-shadow-show",c);for(var d in a.g)d!=b&&K(a.g[d].element,"ytp-ce-element-shadow-show",c)};
yJ=function(a,b,c){function d(){k||(f++,f==e.length&&(l.stop(),c&&c()))}
if(!b||tJ(T(a.b).g))c&&c();else{var e=fea(a,b),f=0,k=!1,l=new fe(function(){k=!0},1E3,a);
l.start();for(a=0;a<e.length;a++)Tp(e[a],d)}};
fea=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(gea(b[e],c));return d};
gea=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})};
hea=function(a,b){var c=new window.Image;c.onload=x(function(){this.K=0<c.width&&0<c.height;b()},a);
c.onerror=x(function(){this.K=!1;b()},a);
c.src="data:image/webp;base64,UklGRlIAAABXRUJQVlA4WAoAAAASAAAAAAAAAAAAQU5JTQYAAAD/////AABBTk1GJgAAAAAAAAAAAAAAAAAAAGQAAABWUDhMDQAAAC8AAAAQBxAREYiI/gcA"};
zJ=function(a){dq.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};
AJ=function(a){return Xr(a.getVideoData(),"ypc_license_checker_module")};
iea=function(a){return AJ(a)?new zJ(a):null};
BJ=function(a){var b=a.b.getVideoData();return tF(b)?!!a.o:!!b.heartbeatToken};
CJ=function(a,b){if(!a.g&&a.C){var c=a.b.getVideoData();if(BJ(a)||c.za)c=b,void 0==c&&(c=a.A?a.o?1E3*a.o.interval:a.b.getVideoData().heartbeatInterval||6E4:1E3),a.g=Ri(x(a.aF,a),c)}};
DJ=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=O("YTP_ERROR_LICENSE"),jI(a.b.app.g,"heartbeat",c,void 0)):CJ(a)}};
EJ=function(a){try{return $f(a)}catch(b){return null}};
FJ=function(a){a.B=0;a.g&&(Ti(a.g),a.g=window.NaN);a.A=!1};
GJ=function(a){a=a.fmt_list;if(!a)return{};var b=[];F(a,function(a){a.itag&&(b[a.itag.toString()]=a)});
return b};
HJ=function(a,b,c,d,e){if(!a)return null;var f=b.docid;b=GJ(b);return f&&b?jea(a,f,b,c,d,e):null};
jea=function(a,b,c,d,e,f){d=N(d.split(","),Mj);var k=ke(d,function(a){return!!c[a.itag]});
if(!k.length)return null;var l=Jg(a)||"",m=Kg(a),n={};F(k,function(a){if(a){var b=IJ(a);b&&(n[b]=a)}});
var t=[];F(d,function(a){if(c[a.itag]){var d=bh(ah(nh(a.url),l),m),k=Hg(a.url),d=jh(jh(d,"orig_host",Fg(k[1],k[2],k[3],k[4])),"scid",b),A;for(A in f)d.b.get(A)||jh(d,A,f[A]);a.url=d.toString();A=c[a.itag];"clen"in a&&"byteLen"in A&&(a.clen=A.byteLen.toString());"init"in A&&"index"in A&&"init"in a&&"index"in a&&(a.init=A.init[0].toString()+"-"+A.init[1],a.index=A.index[0].toString()+"-"+A.index[1]);a.isAccelerated="1";e&&(a.isAcceleratedUiEnabled="1")}else if((A=IJ(a))&&n[A])return;t.push(Qg(a))});
return t.join(",")};
IJ=function(a){return a.quality?a.quality:a.quality_label||""};
kea=function(a,b,c,d){var e=JJ(b);e?(e.status="success-prefetch-1",c(e)):a&&!b?c({status:"success"}):a?(a=Rj([a,"v1/cache/videos",b,"metadata"].join("/"),d),Zj(a,{format:"JSON",method:"GET",timeout:2E3,fb:function(a,b){null==b&&(b={});b.status="success";c(b)},
onError:function(){c({status:"error"})},
Wb:function(){var a=JJ(b);a?(a.status="success-prefetch-2",c(a)):c({status:"timeout"})}})):c({status:"nodevice"})};
JJ=function(a){var b=window.acceleratorMeta;return(b?b.docid:null)===a?b:null};
KJ=function(a){G.call(this);this.b=a};
LJ=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};
lea=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&&!ga(f)&&b();var k=a.last_probe_tstamp||null;null===k||ga(f)||b();var l=a.active||!1;fa(l)||b();a=!1!==a.ux;fa(a)||b();return new LJ(e,f,l,a,c,d,k)};
mea=function(a){var b=0,c=a.length,d={oc:-1640531527,Oc:-1640531527,c:314159265},e;for(e=c;12<=e;e-=12,b+=12)d.oc+=MJ(a,b),d.Oc+=MJ(a,b+4),d.c+=MJ(a,b+8),NJ(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.Oc+=MJ(a,b+4);d.oc+=MJ(a,b);break;case 7:d.Oc+=(a[b+6]&255)<<16;case 6:d.Oc+=(a[b+5]&255)<<8;case 5:d.Oc+=a[b+4]&255;case 4:d.oc+=MJ(a,b);break;case 3:d.oc+=(a[b+2]&255)<<16;case 2:d.oc+=(a[b+1]&255)<<8;case 1:d.oc+=a[b+0]&255}return NJ(d)};
NJ=function(a){var b=a.oc,c=a.Oc,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.oc=b;a.Oc=c;return a.c=d};
MJ=function(a,b){return OJ(a[b+0])+(OJ(a[b+1])<<8)+(OJ(a[b+2])<<16)+(OJ(a[b+3])<<24)};
OJ=function(a){return 127<a?a-256:a};
PJ=function(a){this.hash=a};
nea=function(){var a=Hj("yt-accelerator-settings-meta");return null==a?null:new PJ((0,window.isNaN)(a.h)?null:a.h)};
oea=function(){return new Dd(function(a,b){"XSRF_TOKEN"in Ni?a():ej("init",function(){"XSRF_TOKEN"in Ni?a():b(Error("no XSRF token after init"))})})};
pea=function(a,b,c,d){var e=dg({appliances:N(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=mea(lE(e+"v2"));
a=nea();null!==a&&a.hash===f?c():(a=function(){var a={client_info:e};b&&(a.session_token=b);Zj("/accelerator_settings_ajax?action_update=1",{format:"JSON",method:"POST",Lb:a,timeout:3E4,fb:function(){var a=new PJ(f);Gj("yt-accelerator-settings-meta",(0,window.isNaN)(a.hash)?{}:{h:a.hash},600);c()},
onError:function(a){d(a)},
Wb:function(){d(Error("AJAX timeout"))}})},b?a():oea().then(a,d))};
QJ=function(a,b,c,d){this.status=a;this.contentProfileToken=b||null;this.deviceId=c||null;this.b=!1!==d;this.timestamp=Date.now()};
RJ=function(a,b,c,d){G.call(this);this.o=rb(a);this.C=b;this.A=d||12E4;this.B=c||5E3;this.b=this.g=null;qea(this)};
rea=function(a,b){var c=Date.now(),d=a.A,e=!1,f=ke(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:ke(f,function(a){a=a.b;return null===a||c-a>=d})};
qea=function(a){if(!gb(a.o)){var b=function(c){a.g=null;a.b=sea(a,rea(a,c||!1));a.b.then(function(){a.b=null;a.g=Ri(b,a.A)})};
b(!0)}};
sea=function(a,b){var c=N(b,function(b){return tea(a,b)});
return Sd(Md(c),function(){N(c,function(a){a.cancel()})})};
tea=function(a,b){var c=null;return(new Dd(function(a){c=Zj("//"+b.hostname+"/v1/cache/summary",{format:"JSON",method:"GET",timeout:this.B,fb:function(b,c){var k=!c||!c.hasOwnProperty("ux")||!!c.ux;a(new QJ(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 QJ(k,c&&c.cs,c&&c.gcdid,l))},
Wb:function(){a(new QJ(3))}})},a)).then(function(a){this.C(b,a)},function(){null!==c&&(c.abort(),c=null)},a)};
SJ=function(a,b){G.call(this);this.o="yt-accelerator-mutex-x-"+a;this.g="yt-accelerator-mutex-y-"+a;this.xa=b||Na();this.b=0};
uea=function(a,b,c){var d=E()+100;return(new Dd(x(a.A,a,d))).then(function(a){try{b.call(c)}finally{Ij(this.g)}return a},function(a){this.b&&(Ti(this.b),this.b=0);
throw a;},a)};
TJ=function(a,b){G.call(this);this.xc="yt-accelerator-master-"+a;this.xa=b||Na();this.b=new SJ("master-"+a,this.xa)};
vea=function(a,b){return uea(a.b,function(){var a=Hj(this.xc)||null;if(!a||a.id==this.xa||b&&5E3<E()-a.t)Gj(this.xc,{id:this.xa,t:E()},120);else throw Error(a.id);},a)};
UJ=function(){this.b={};this.g={}};
VJ=function(){var a=Hj("yt-accelerator-discover"),b=new UJ;b.b=Qb(a&&a.addrmap||{},function(a){return lea(a)});
b.g=a&&a.qparamsmap||{};return b};
WJ=function(a){for(var b in a.b){var c=a.b[b];if(c.active)return c}return null};
XJ=function(a,b){a.g=b};
wea=function(a){return{addrmap:Qb(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}};
ZJ=function(a,b,c,d){G.call(this);this.o=new TJ("discover");this.A=0;this.g=null;this.b=VJ();this.C=c;this.B=hm(window,"storage",x(this.My,this));d?XJ(this.b,Kj(d,"&")):XJ(this.b,{});var e=0;if(!gb(a)){var f=Date.now();a=rb(a);Kb(a);F(a,function(a){if(!sa(a,"dummy")){var b=this.b.b[a]||null;if(null===b){b=this.b;a=new LJ(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&&!WJ(this.b)&&((this.b.b[a[0]]||null).active=
!0,YJ(this));
b&&(this.qq(!0),this.A=Si(x(this.qq,this),6E4))};
xea=function(a){var b=Date.now(),c=[];F(Wb(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)};
YJ=function(a){bc(a.b.b)?a.reset():Gj("yt-accelerator-discover",wea(a.b),259200);pea(Wb(a.b.b),a.C,function(){},function(){})};
$J=function(){G.call(this);this.g=this.b=null};
aK=function(a){dq.call(this,a);this.logEvent=this.Ma="spacecast";this.g=null;this.o={}};
yea=function(a){return a.getVideoData().spacecastModule?new aK(a):null};
bK=function(a){dq.call(this,a);this.Ma="ypc_clickwrap";this.logEvent="ypc-clickwrap";Xi({YTP_YPC_START_RENTAL_HEADER:"Would you like to start this rental?",YTP_YPC_START_RENTAL_BUTTON:"Start rental period"});this.o=this.g=null};
zea=function(a){return Xr(a.getVideoData(),"ypc_clickwrap_module")?new bK(a):null};
cK=function(a,b,c){this.G=0;this.D=a;this.B=b||.5;this.C=c||0;this.F="index";this.o=0;this.A=[]};
eK=function(a,b){dK(a,"value");var c=b*a.o,d=0,e=window.NaN;a.A.some(function(a){d+=a.weight;e=a.value;if(d>=c)return!0});
return e};
dK=function(a,b){a.F!=b&&(a.F=b,Db(a.A,b))};
fK=function(a){this.A=a;this.o=[]};
Aea=function(a){this.b=a;this.F=this.G=0;this.g=-1;this.L=new LF(100);this.K=0;this.M=yq();this.A=new cK(4,.6);this.D=new NF(4);this.B=0;this.H=new fK(this.b.b);this.C=new cK(this.b.b,.5,.1);this.b.o?this.o=new NF(this.b.b):this.o=new cK(this.b.b,.5,.1);a=Hj("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.D.b(1,+a.tailDelay);this.g=yq()};
YG=function(a,b,c){b=Math.max(b,.05);a.o.b(b,c/b);gK(a)};
ZG=function(a,b){a.A.b(1,b);-1<a.g&&3E4<yq()-a.g&&hK(a)};
iK=function(a,b,c){(0,window.isNaN)(c)||(a.F+=c);(0,window.isNaN)(b)||(a.G+=b);a.H.b(b,c/b);gK(a)};
jK=function(a,b,c){b=Math.max(b,8192);a.D.b(1,c/b);-1<a.g&&3E4<yq()-a.g&&hK(a)};
QF=function(a){a=a.A.g();a=(0,window.isNaN)(a)?.5:a;return a=Math.min(a,5)};
OF=function(a){return a.D.g()||0};
PF=function(a){var b=a.B&&6E4>yq()-a.B,c=a.b.F&&b?a.C.g():a.o.g(),c=0<c?c:1;if(!a.b.C)return c;a=a.b.D&&b?a.C.g():a.H.g();a=0<a?a:1;return a>2*c?(c+a)/2:c};
kK=function(a){var b={};b.delay=QF(a);b.tailDelay=OF(a);b.byterate=PF(a);return b};
hK=function(a){Gj("yt-player-bandwidth",kK(a),2592E3);a.g=yq()};
gK=function(a){var b=yq();a.M=b;500<b-a.K&&(MF(a.L,1/(1/PF(a)+OF(a))),a.K=b)};
jH=function(a){return 4E3<=yq()-a.M};
Bea=function(){this.b=17;this.A=13E4;this.B=.5;this.o=!1;this.D=this.C=!0;this.F=!1;this.g=0};
Cea=function(a){var b=new Bea;BA(a)&&(b.o=!0,b.B=.1);a.experiments.aa("html5_ewma_bandwidth_estimator")&&(b.o=!0);a.experiments.aa("html5_disable_aux_bandwidth_estimator")&&(b.C=!1);a.yb&&(b.A=a.yb/8);b.b=a.experiments.b("html5_bandwidth_window_size")||b.b;a.experiments.aa("html5_use_server_bandwidth_estimate")&&(b.F=!0);a.experiments.aa("html5_use_server_bandwidth_auxiliary")&&(b.D=!0);return b};
lK=function(a,b){this.type=a||"";this.id=b||""};
mK=function(a){return new lK(a.substr(0,2),a.substr(2))};
pK=function(a){nk.call(this);this.startSeconds=0;this.H=!1;this.b=0;this.title="";this.A=0;this.g=[];this.D=this.B=!1;this.Ba=this.Is=this.C=null;this.views=0;this.M=0!=a.fetch;this.o=[];this.b=Math.max(0,a.index||0);this.G=!!a.loop;this.startSeconds=a.startSeconds||0;this.O="1"==a.mob;this.title=a.playlist_title||"";this.description=a.playlist_description||"";this.author=a.author||a.playlist_author||"";this.L={};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":Dea(this,a.list);break;case "user_favorites":Eea(this,a.list);break;case "search":Fea(this,a.list);break;default:a.playlist_length&&(this.A=a.playlist_length),this.listId=mK(a.list),a.video?(this.g=a.video.slice(0),this.B=!0):Gea(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=N(this.g,function(a){return a.video_id});
nK(this,"/list_ajax?style=json&action_get_templist=1",{video_ids:b.join(",")});this.B=!0}oK(this,!!a.shuffle);a.suggestedQuality&&(this.quality=a.suggestedQuality);for(var c in dF.b)b="playlist_"+c,b=a[b+"_webp"]||a[b],vA.test(b)&&(this.L[dF.b[c]]=b);this.K=a.thumbnail_ids?a.thumbnail_ids.split(","):[]};
qK=function(a){return!!(a.playlist||a.list||a.api)};
rK=function(a){var b=a.b+1;return b>=a.A?0:b};
sK=function(a){var b=a.b-1;return 0>b?a.A-1:b};
oK=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.Y("shuffle")};
tK=function(a,b){a.b=$e(b,0,a.A-1);a.startSeconds=0};
Dea=function(a,b){a.D||(a.listId=new lK("UU","PLAYER_"+b),nK(a,"/list_ajax?style=json&action_get_user_uploads_by_user=1",{username:b}))};
Eea=function(a,b){a.D||(a.listId=new lK("FL","PLAYER_"+b),nK(a,"/list_ajax?style=json&action_get_favorited_by_user=1",{username:b}))};
Fea=function(a,b){if(!a.D){a.listId=new lK("SR",b);var c={search_query:b};a.O&&(c.mob="1");nK(a,"/search_ajax?style=json&embeddable=1",c)}};
Gea=function(a){if(!a.D){var b={list:a.listId},c=a.Gb();c&&c.videoId&&(b.v=c.videoId);nK(a,"/list_ajax?style=json&action_get_list=1",b)}};
nK=function(a,b,c){a.M&&Zj(Sg(b,c),{format:"JSON",fb:x(function(a,b){uK(this,b)},a),
onError:x(function(){this.Y("error")},a)})};
uK=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:Hea(a,c);oK(a,!1);a.D=!1;a.B=!0;a.F++;a.C&&a.C()}};
Hea=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}}};
vK=function(a){nk.call(this);this.b=a;this.loaded=!1};
wK=function(a,b){FF.call(this,{J:"div",ha:["html5-endscreen","ytp-player-content",b||"base-endscreen"]});this.b=a;this.L=!1};
xK=function(){S.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"]]])};
yK=function(a,b){S.call(this,b||{J:"div",X:"ytp-thumbnail-overlay"});this.A=new cv(this,250);H(this,this.A);this.b=a};
zK=function(a){yK.call(this,a,{J:"div",ha:["ytp-thumbnail-overlay","ytp-channel-overlay"],R:[{J:"div",X:"ytp-thumbnail-overlay-image",V:{style:"{{background}}"}},{J:"div",X:"ytp-thumbnail-overlay-curtain"}]})};
AK=function(a){wK.call(this,a,"subscribecard-endscreen");this.o=new zK(a);H(this,this.o);Qv(this.b,this.o.element,4);this.A=new xK;H(this,this.A);this.pa()};
BK=function(a){return qK(a)?(a.fetch=0,new pK(a)):new dF(a)};
CK=function(a,b,c,d){var e=b.Gb();K(a.element,"ytp-suggestion-set",!!e.videoId);var f=b.Dg();d=b.Fc(c,d?d:"mqdefault.jpg");var k=b instanceof dF?Pq(b.lengthSeconds):null,l=!!f,f=l&&"RD"==mK(f).type;c={title:b.title,author:b.author,author_and_views:e.shortViewCount?b.author+" \u2022 "+e.shortViewCount:b.author,watch:O("YTP_WATCH_VIDEO_OR_PLAYLIST",{TITLE:b.title},b.title),duration:k,url:b.$k(c),is_featured:e.eq,is_list:l,is_mix:f,background:d?"background-image: url("+d+")":""};b instanceof pK&&(c.playlist_length=
b.A);a.update(c)};
DK=function(a){var b=T(a).experiments.aa("moving_thumbnails_autonav"),c={J:"img",X:"ytp-upnext-moving-thumbnail",V:{src:"{{moving_thumbnail}}"}},c={J:"div",X:"ytp-upnext",V:{"aria-label":"{{watch}}"},R:[{J:"div",X:"ytp-thumbnail-overlay-image",V:{style:"{{background}}"}},b?c:null,{J:"div",X:"ytp-thumbnail-overlay-curtain"},{J:"span",X:"ytp-upnext-top",R:[{J:"span",X:"ytp-upnext-header",R:[O("YTP_PLAYLIST_UP_NEXT")]},{J:"span",X:"ytp-upnext-title",R:["{{title}}"]},{J:"span",X:"ytp-upnext-author",R:["{{author}}"]}]},
{J:"a",X:"ytp-upnext-autoplay-icon",V:{href:"{{url}}"},R:[{J:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 98 98",width:"100%"},R:[{J:"circle",X:"ytp-svg-autoplay-circle",V:{cx:"49",cy:"49",fill:"#000","fill-opacity":"0.8",r:"48"}},{J:"circle",X:"ytp-svg-autoplay-ring",V:{cx:"-49",cy:"49","fill-opacity":"0",r:"46.5",stroke:"#FFFFFF","stroke-dasharray":"293","stroke-dashoffset":"-293","stroke-width":"4",transform:"rotate(-90)"}},{J:"polygon",X:"ytp-svg-autoplay-triangle",V:{fill:"#fff",points:"32,27 72,49 32,71"}}]}]},
{J:"span",X:"ytp-upnext-bottom",R:[{J:"span",X:"ytp-upnext-cancel"},{J:"span",X:"ytp-upnext-paused",R:[O("YTP_AUTOPLAY_PAUSED_2")]}]},{J:"span",X:"ytp-upnext-close"}]};S.call(this,c);var d=this.qa["ytp-upnext-cancel"],c=this.qa["ytp-upnext-close"],e=new S({J:"button",ha:["ytp-upnext-cancel-button","ytp-button"],V:{tabindex:0,"aria-label":O("YTP_AUTOPLAY_CANCEL")},R:[O("YTP_CANCEL")]});H(this,e);e.P("click",this.Kq,this);e.Ca(d);d=new S({J:"button",ha:["ytp-upnext-close-button","ytp-button"]});H(this,
d);d.P("click",this.Kq,this);d.Ca(c);this.o=a;this.G=this.qa["ytp-svg-autoplay-ring"];this.C=this.B=this.b=this.A=null;this.D=new fe(this.mi,5E3,this);H(this,this.D);this.F=0;this.U(this.qa["ytp-upnext-autoplay-icon"],"click",this.VC);this.Jq();this.U(a,"autonavvisibility",this.Jq);b&&this.U(this.qa["ytp-upnext-moving-thumbnail"],"load",this.EI)};
EK=function(a){a.b||(fj("a11y-announce",O("YTP_PLAYLIST_UP_NEXT")+" "+a.A.title),a.F=yq(),a.b=new fe(a.mk,25,a),a.mk());le(a.element,"ytp-upnext-autoplay-paused")};
GK=function(a){FK(a);a.F=yq();a.mk();J(a.element,"ytp-upnext-autoplay-paused")};
FK=function(a){a.b&&(a.b.dispose(),a.b=null)};
HK=function(a){var b=T(a),c=b.experiments.aa("video_wall_moving_thumbnails_autoplay"),d=b.experiments.aa("video_wall_moving_thumbnails_hover"),c=c||d;this.B=b.D;b=$l||Cc?{style:"will-change: opacity"}:null;d={J:"img",X:"ytp-videowall-moving-thumbnail",V:{src:"{{moving_thumbnail}}"}};S.call(this,{J:"a",X:"ytp-videowall-still",V:{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}}"},R:[{J:"div",
X:"ytp-videowall-still-image",V:{style:"{{background}}"}},c?d:null,{J:"span",X:"ytp-videowall-still-featured-label",R:[O("YTP_FEATURED")]},{J:"span",X:"ytp-videowall-still-info",R:[{J:"span",X:"ytp-videowall-still-info-bg",R:[{J:"span",X:"ytp-videowall-still-info-content",V:b,R:[{J:"span",X:"ytp-videowall-still-info-title",R:["{{title}}"]},{J:"span",X:"ytp-videowall-still-info-author",R:["{{author_and_views}}"]},{J:"span",X:"ytp-videowall-still-info-duration",R:["{{duration}}"]}]}]}]},{J:"span",ha:["ytp-videowall-still-listlabel-regular",
"ytp-videowall-still-listlabel"],R:[{J:"span",X:"ytp-videowall-still-listlabel-icon"},O("YTP_PLAYLIST"),{J:"span",X:"ytp-videowall-still-listlabel-length",R:[" (",{J:"span",R:["{{playlist_length}}"]},")"]}]},{J:"span",ha:["ytp-videowall-still-listlabel-mix","ytp-videowall-still-listlabel"],R:[{J:"span",X:"ytp-videowall-still-listlabel-mix-icon"},O("YTP_MIX"),{J:"span",X:"ytp-videowall-still-listlabel-length",R:[" (50+)"]}]}]});this.o=a;this.b=null;this.C=new fe(this.Gs,6E3,this);this.P("click",this.gH);
this.P("keypress",this.hH);c&&this.U(this.qa["ytp-videowall-moving-thumbnail"],"load",this.jH)};
IK=function(a){if(5E5<PF(a.o.app.ia)){var b=a.b.xi();b&&a.update({moving_thumbnail:b})}};
JK=function(a,b){wK.call(this,a,"videowall-endscreen");this.$=a;this.ca=b;this.F=0;this.B=[];this.G=this.C=this.o=null;this.H=this.S=!1;this.D=new Dw(this);H(this,this.D);this.K=new fe(pa(J,this.element,"ytp-show-tiles"),0);H(this,this.K);var c=new S({J:"button",ha:["ytp-button","ytp-endscreen-previous"],V:{"aria-label":O("YTP_PREVIOUS")},R:[{J:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 32 32",width:"100%"},R:[{J:"path",V:{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.Ca(this.element);c.P("click",this.qB,this);this.M=new Hq({J:"div",X:"ytp-endscreen-content"});H(this,this.M);this.M.Ca(this.element);c=new S({J:"button",ha:["ytp-button","ytp-endscreen-next"],V:{"aria-label":O("YTP_NEXT")},R:[{J:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 32 32",width:"100%"},R:[{J:"path",V:{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.Ca(this.element);c.P("click",this.pB,this);this.A=new DK(a);H(this,this.A);Qv(this.b,
this.A.element,4);this.pa()};
KK=function(a){return pJ(a.b)&&a.sk()&&!a.G};
LK=function(a){return N(a.O,function(a){return BK(a)})};
MK=function(a,b,c){return 0==b&&a.o.length&&(b=c/JK.b,2<=c/JK.b&&2<=b&&T(a.b).experiments.aa("video_wall_emphasize_first"))?2*JK.b:JK.b};
NK=function(a){var b=XI(a.ca);b!=a.S&&(a.S=b,a.b.Wa("autonavvisibility"))};
g.PK=function(a){vK.call(this,a);Xi({});this.g=null;this.o=new Dw(this);H(this,this.o);var b=T(a);OK(a)?this.g=new JK(this.b,this):b.ka?this.g=new AK(this.b):this.g=new wK(this.b);H(this,this.g);Qv(this.b,this.g.element,4);this.Wr();this.o.U(a,"videodatachange",this.Wr,this);this.o.U(a,"crn_endscreen",this.GB,this);this.o.U(a,"crx_endscreen",this.HB,this)};
ZI=function(a){var b=a.b.getVideoData(),c=!OK(a.b)||!(!b.O||!b.O.length),b=Xr(b,"ypc_module");a=QK(a.b.app);return c&&!b&&!a};
OK=function(a){a=T(a);return a.Bd&&!a.ka};
XI=function(a){return a.g instanceof JK&&a.g.g&&KK(a.g)};
RK=function(a){this.Z=a;this.g=null;this.b=new lg(0,0,0,0);this.B=new gf(0,0);this.A=this.o=0;EA&&yc(11)&&(this.g=window.document.createElement("canvas").getContext("2d"),yc(12.10532)||(this.o=3))};
UK=function(a,b){if(null===a.g)return b;var c=new gf(b.videoWidth,b.videoHeight);if(!hf(c,a.B)&&(a.g.canvas.width=c.width,a.g.canvas.height=c.height,a.b.top=0,a.b.left=0,a.b.width=c.width,a.b.height=c.height,a.B=c,0<a.o)){a.o=3;var d=SK(Jx(a.Z)),e=16/9;d<e?(a.b.width=c.width*d/e,a.b.left=Math.ceil(.5*(c.width-a.b.width)),a.b.width|=0):d>e&&(a.b.height=c.height*e/d,a.b.top=Math.ceil(.5*(c.height-a.b.height)),a.b.height|=0)}0<a.o&&(a.A^=1,2<=a.b.top?(a.A?TK(a,b,0,0,a.b.width,a.b.top-1):TK(a,b,0,b.videoHeight-
a.b.top+1,a.b.width,a.b.top-1))&&--a.o:2<=a.b.left&&(a.A?TK(a,b,0,0,a.b.left-1,a.b.height):TK(a,b,b.videoWidth-a.b.left+1,0,a.b.left-1,a.b.height))&&--a.o,0>=a.o&&(a.b.top=0,a.b.left=0,a.b.width=b.videoWidth,a.b.height=b.videoHeight));try{a.g.drawImage(b,a.b.left,a.b.top,a.b.width,a.b.height,0,0,a.B.width,a.B.height)}catch(f){if(!(f instanceof window.DOMException)||"IndexSizeError"!=f.name)throw f;}return a.g.canvas};
TK=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};
VK=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 RK(a)};
WK=function(a,b){VK.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=Hj("yt-player-webgl-anaglyph-3d-display-mode")||2;this.o=!0};
XK=function(a,b){VK.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.Z=a;this.K=T(a).experiments.aa("white_noise_with_interval");this.G=T(a).experiments.b("white_noise_amount")||.05;this.H=T(a).experiments.b("white_noise_offset")||-.5;this.A=0};
YK=function(a,b){XK.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};
ZK=function(a){this.length=a.length||a;for(var b=0;b<this.length;b++)this[b]=a[b]||0};
$K=function(a){this.length=a.length||a;for(var b=0;b<this.length;b++)this[b]=a[b]||0};
aL=function(a){var b=a[0],c=a[1];a=a[2];return Math.sqrt(b*b+c*c+a*a)};
dL=function(a,b,c,d,e,f,k){this.D=f;this.B=Math.cos(k);this.C=Math.sin(k);this.b=bL(a);this.g=bL(a);this.o=bL(a);this.A=bL(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);cL(this,0,0);this.b.gain.value=1-this.D};
cL=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};
eL=function(a,b,c){this.b=a;this.o=c;this.A=this.g=null};
fL=function(a,b,c){eL.call(this,a,0,c);this.C=this.B=null};
gL=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}:{}};
hL=function(){this.b=new window.Float32Array(16);this.o=new window.Float32Array(16);this.g=new window.Float32Array(16);this.identity()};
iL=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};
jL=function(a){var b=new window.Float32Array(3),c=aL(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}};
Iea=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)};
Jea=function(){this.C=this.F=this.g=this.D=this.o=0;this.B=new window.Float32Array(3);this.A=-1;this.b=[]};
kL=function(a,b){this.F=a;this.o=null;this.S=b;this.B=new hL;this.fa=this.da=this.ea=this.Oa=null;this.C=.872;this.ba=this.$=this.ca=this.g=this.b=0;this.K=!0;this.A=this.D=0;this.H=new window.Float32Array(3);this.L=new RK(a);this.ga=new Jea};
lL=function(a,b){kL.call(this,a,b);this.O=null;this.G=Hj("yt-player-webgl-spherical-3d-display-mode")||1;this.M=!0};
mL=function(a,b,c){this.D=c;this.A=Jx(a).b;this.H=10;this.B=!0;this.S=this.M=this.ca=this.o=this.g=null;this.ba=b;this.b=null;this.Z=a;this.C=new lg(0,0,0,0);this.K=!1;this.G=!0};
Lea=function(a,b){a.g=window.document.createElement("canvas");if(!a.g)return 1;a.D.appendChild(a.g);var c=b||T(a.Z).experiments.aa("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=Kea(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.M=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.ca=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.M);c.vertexAttribPointer(a.O,
3,c.FLOAT,!1,0,0);a.L();a.A.crossOrigin="use-credentials";return 0};
Kea=function(a){var b=a.o,c=b.createShader(b.VERTEX_SHADER);b.shaderSource(c,a.b.Yk());b.compileShader(c);if(!b.getShaderParameter(c,b.COMPILE_STATUS))return 4;var d=b.createShader(b.FRAGMENT_SHADER);b.shaderSource(d,a.b.Sk());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.O=b.getAttribLocation(e,"aVertPos");b.enableVertexAttribArray(a.O);a.S=e;a.b.Td(b,a.S,a.D);return 0};
g.nL=function(a){vK.call(this,a);this.o=new Dw(this);H(this,this.o);this.A=new S({J:"div",X:"webgl"});H(this,this.A);this.Z=a;this.g=null;this.load()};
oL=function(a,b){if(a.g){var c=a.g;c.b&&c.b.Jh(b)}};
pL=function(a,b){G.call(this);this.H=b;this.g=this.o=null;this.b=[];this.G={};this.A={};this.B={};this.D=null;this.Z=a;this.C=[];this.F=null};
KF=function(a){var b=T(a.Z);if("leanback"==b.b||b.Ub||!b.Bd&&!b.ka)return!1;var c=a.Z.getPresentingPlayerType();if(2==c||3==c)return!1;if(b.experiments.aa("html5_live_endscreen"))return!0;a=a.Z.getVideoData();return!!a&&!a.za};
qL=function(a,b,c,d){var e=r(Mea[b]),f=null;d?e?f=new e(a.Z):Nea(a,b,c):gq(a.Z,b);return f};
rL=function(a){a.o&&(Mb(a.o),a.o=null);a.g&&(Mb(a.g),a.g=null);a.b=ke(a.b,function(a){try{a.destroy()}catch(c){Vi(c)}return!1},a)};
Oea=function(a,b,c){sL(a);a.F=b;a.C=rb(c);F(a.b,function(a){0<=eb(c,a.Ma)&&(a.F=b,a.Wi(!!a.F))})};
sL=function(a){F(a.C,function(a){if(a=$I(this,a))a.F=null,a.Wi(!1)},a);
a.F=null;a.C=[]};
tL=function(a){a=$I(a,"iv-module");return!(!a||!a.loaded)};
uL=function(a,b){if(!b)return N(a.b,function(a){return a.Ma});
var c=$I(a,b);return c?c.Df():[]};
$I=function(a,b){return bb(a.b,function(a){return a.Ma==b})};
Pea=function(a){var b={};F(a.b,function(a){qa(b,a.Ih())});
return b};
Nea=function(a,b,c){if(a.H){for(var d=a.H+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()||gq(this.Z,b)},a);
k.onload=pa(function(a){qd(n);a&&a()},k.onload);
k.onerror=pa(function(a){qd(t);a&&a()},k.onerror);
k.onreadystatechange=pa(function(a){switch(k.readyState){case "loaded":case "complete":qd(n,this)}a&&a()},k.onreadystatechange);
f&&(k.src=d,d=window.document.getElementsByTagName("head")[0]||window.document.body,d.insertBefore(k,d.firstChild),Lb(a,function(){k.parentNode&&k.parentNode.removeChild(k)}))}};
vL=function(a,b,c){this.b=b;this.g=c;this.B=a;this.o=!0};
wL=function(a,b){lc.call(this,"adError");this.o=a;this.b=b?b:null};
xL=function(a,b,c){lc.call(this,a);this.o=b;this.b=null!=c?c:null};
Qea=function(a){this.b=a};
Rea=function(){var a=yL();return zL(a,"disableExperiments")};
zL=function(a,b){if(Zb(a.b,b)){var c=a.b[b];if(fa(c))return c}return!1};
Sea=function(a){if(Zb(a.b,"forceExperimentIds")){a=a.b.forceExperimentIds;var b=[],c=0;da(a)&&F(a,function(a){ga(a)&&(b[c++]=a)});
return b}return null};
AL=function(a){return(a=a.match(/^\w{2,3}([-_]|$)/))?a[0].replace(/[_-]/g,""):""};
BL=function(){this.o="always";this.A=1;this.g=!1;this.H=this.C=!0;this.G=!1;this.D=!0;this.F=null};
yL=function(){var a=V;if(null==a.F){var b={},c=(new M(xf().location.href)).b;if(th(c,"tcnfp"))try{b=$f(c.get("tcnfp"))}catch(d){}a.F=new Qea(b)}return a.F};
CL=function(){};
DL=function(a,b,c,d){this.xa=a;this.b=$e(c||0,0,1);this.g=null!=d?d:!0};
EL=function(a){this.xa=a;this.g=new yg;this.b=null};
Tea=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}};
Vea=function(){this.o=null!=q.G_testRunner;this.b=new CL;this.g=new yg;FL(this,31061774,.01);FL(this,31061775,.01);FL(this,41351016,.05);FL(this,41351017,.05);FL(this,41351020,.05);FL(this,41351021,.05);FL(this,41351088,.01);FL(this,41351089,.01);FL(this,136961001,.01);FL(this,136961002,.01);FL(this,420706008,.05);FL(this,420706009,.05);FL(this,231422001,.05);FL(this,231422002,.05);FL(this,31061780,.01);FL(this,31061781,.01);FL(this,31061782,.01);FL(this,420706010,.2);FL(this,420706011,.2);Uea(this);
var a;a=yL();a=Sea(a);null!=a&&(this.o=!1,GL(this,a.map(String)))};
IL=function(){HL||(HL=new Vea);return HL};
Wea=function(a,b){a.b=b};
Xea=function(){var a=IL();F(a.g.Va(),function(a){sa(a,"FORCED_PUB_EXP_LAYER_")&&this.g.remove(a)},a)};
FL=function(a,b,c){B(C("GvnExternalLayer"))||(0,window.isNaN)(b)||0>=b||(b=new DL(b,0,c),JL(a,"GvnExternalLayer").g.set(b.getId(),b))};
Uea=function(a){Rea()||F(a.g.Pa(),function(a){Tea(a)},a)};
GL=function(a,b){F(b,function(a){var b=Number(a);a="FORCED_PUB_EXP_LAYER_"+a;(0,window.isNaN)(b)||0>=b||B(C(a))||(JL(this,a).b=new DL(b,0,0,!0))},a)};
KL=function(a,b){return a.o?!1:Rh(a.g.Pa(),function(a){return!!a.b&&a.b.getId()==b})};
LL=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(",")};
JL=function(a,b){var c=a.g.get(b);null==c&&(c=new EL(b),a.g.set(b,c));return c};
NL=function(a){return null!=a?ML(Yea,a):!1};
ML=function(a,b){try{var c=(new M(b)).g,c=c.replace(/^www./i,"");return Rh(a,function(a){return Zea(a,c)})}catch(d){return!1}};
Zea=function(a,b){if(B(C(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};
PL=function(a){var b=!1;OL(a,$ea)?b=!1:NL(a)?b=!0:"https:"==window.location.protocol&&(OL(a,afa)||V.b())&&(b=!0);if(b){b=new M(a);if("https"==b.A)return a;$g(b,"https");return b.toString()}return a};
OL=function(a,b){return(new RegExp("^https?://([a-z0-9-]{1,63}\\.)*("+b.join("|").replace(/\./g,"\\.")+")(:[0-9]+)?([/?#]|$)","i")).test(a)};
QL=function(a){window.open(a,"_blank")};
SL=function(a,b,c){null!=a?(jh(a,"label",b),null!=c&&jh(a,"value",c.join(";")),a=a.toString()):a="";RL(a)};
TL=function(a,b,c,d){null!=a&&null!=b&&(a=Pt(a,b));try{if(null!=c){b=a;var e=(c||{}).viewability||"na";if(B(C(e)))a=b;else{var f=new M(b);th(f.b,"label")?(jh(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=Pt(c,k);if(2048>l.length){a=l;break a}}a=c}}catch(m){}return a};
RL=function(a,b,c,d){a=TL(a,b,c,void 0);try{a=PL(a);var e=IL(),f=!V.b()||KL(e,41351089)||e.b.aa("html5_detect_image_pings"),k=e.b.aa("html5_try_beacons");null!=d&&d?UL.ts(a,f):V.D?UL.cF(a,f,k):UL.hj(a,f,k)}catch(l){}};
VL=function(a,b){null!=a&&F(a,function(a){RL(a,b)})};
bfa=function(a,b){if(B(C(b)))return a;var c=new M(a),d=c.g;return null!=d&&ta(d,".g.doubleclick.net")?(jh(c,"ged",b),c.toString()):a};
WL=function(a,b){this.message=a;this.errorCode=b};
YL=function(a,b,c){return XL("adLoadError",a,b||null,tb(arguments,2))};
ZL=function(a,b,c){return XL("adPlayError",a,b||null,tb(arguments,2))};
$L=function(a,b,c,d,e){var f=a.apply(null,qb([c,d],tb(arguments,3)));b.dispatchEvent(new xL("log",null,f))};
XL=function(a,b,c,d){if(c instanceof vL)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 vL(a,b,e);a.A=c;return a};
aM=function(a,b,c,d){var e=ZL.apply(null,qb([b,c],tb(arguments,3)));a.dispatchEvent(new wL(e))};
cM=function(){return!bM()&&(tc("iPod")||tc("iPhone")||tc("Android")||tc("IEMobile"))};
bM=function(){return tc("iPad")||tc("Android")&&!tc("Mobile")||tc("Silk")};
dM=function(){return cM()||bM()};
fM=function(){return cfa&&!eM||Ja(sc,"iPod")};
gM=function(){return fM()||eM};
jM=function(a){return CA&&hM(iM,a)};
hM=function(a,b){if(null==kM[b]){var c=lM(a);c?(c=c.replace(/_/g,"."),kM[b]=0<=Qa(c,b)):kM[b]=!1}return kM[b]};
lM=function(a){B(mM)&&(a=a.exec(sc))&&(mM=a[1]);return mM};
nM=function(){var a=sc;return a?Ja(a,"Nintendo WiiU"):!1};
oM=function(){var a;if(!(a=Ja(sc,"CrKey")||Ja(sc,"PlayStation")||Ja(sc,"Roku")))if(a=sc){var b=Ja(a,"AppleTV")||Ja(a,"GoogleTV")||Ja(a,"HbbTV")||Ja(a,"NetCast.TV")||Ja(a,"Opera TV")||Ja(a,"POV_TV")||Ja(a,"SMART-TV")||Ja(a,"SmartTV");a=KL(IL(),420706011)?b||Ja(a,"TV Store")||Ja(a,"OMI/")||Ja(a,"Presto")&&Ja(a,"Linux")&&!Ja(a,"X11")&&!Ja(a,"Android")&&!Ja(a,"Mobi"):b}else a=!1;return a||Ja(sc,"Xbox")};
pM=function(){return fM()||CA&&!jM(4)||!V.b()&&oM()?!1:!0};
qM=function(){this.reset()};
rM=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};
sM=function(){this.g=this.b=null};
xM=function(){this.b=wM();this.K=-1;this.L=this.M=this.C=this.H=this.g=null;this.B=wM();this.A=null;this.S=this.D=this.G="";this.F=this.O=this.ca=this.o=null;this.ba=!1};
wM=function(){return Math.floor(4503599627370496*Math.random())};
yM=function(a){null==a.C&&(a.C=new qM);return a.C};
zM=function(a){if(V.g){var b;return"h.3.0.0"}b="h."+a.S;null!=a.o&&(b+="/n."+a.o,null!=a.g&&(b+="/"+a.g));return b};
AM=function(){this.b=.01>Math.random();this.g=Math.floor(4503599627370496*Math.random())};
DM=function(a,b,c,d){if(a.b||d){c=c||{};c.lid=b;c.sdkv=zM(BM);b=LL(IL());B(C(b))||(c.e=b);c=dfa(a,c);var e=new M("http://pagead2.googlesyndication.com/pagead/gen_204");Ob(c,function(a,b){jh(e,b,null!=a?"boolean"==typeof a?a?"t":"f":""+a:"")},a);
a=CM();$g(e,a.A);RL(e.toString())}};
dfa=function(a,b){b.id="";var c=CM();b.c=a.g;b.domain=c.g;return b};
CM=function(){var a=xf(),b=window.document;return new M(a.parent==a?a.location.href:b.referrer)};
EM=function(){};
GM=function(a,b,c){a.b=null;b||(b=[]);a.D=void 0;a.A=-1;a.o=b;a:{if(a.o.length){b=a.o.length-1;var d=a.o[b];if(d&&"object"==typeof d&&!da(d)&&!(efa&&d instanceof window.Uint8Array)){a.B=b-a.A;a.g=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.o[d]=a.o[d]||FM):a.g[d]=a.g[d]||FM};
W=function(a,b){if(b<a.B){var c=b+a.A,d=a.o[c];return d===FM?a.o[c]=[]:d}d=a.g[b];return d===FM?a.g[b]=[]:d};
HM=function(a,b,c){a.b||(a.b={});if(!a.b[c]){var d=W(a,c);d&&(a.b[c]=new b(d))}return a.b[c]};
IM=function(a){if(a.b)for(var b in a.b){var c=a.b[b];if(da(c))for(var d=0;d<c.length;d++)c[d]&&IM(c[d]);else c&&IM(c)}};
JM=function(a){GM(this,a,null)};
KM=function(a){GM(this,a,null)};
LM=function(a){GM(this,a,null)};
MM=function(a){GM(this,a,null)};
NM=function(a){GM(this,a,null)};
OM=function(){};
PM=function(){return Math.round(E()/1E3)};
ffa=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:PM()};
QM=function(a){for(var b=[],c=a=xf(a.ownerDocument);c!=a.top;c=c.parent)if(c.frameElement)b.push(c.frameElement);else break;return b};
RM=function(){this.b={};this.g=0};
SM=function(a,b){this.B=a;this.o=!0;this.b=b};
TM=function(a,b){SM.call(this,String(a),b);this.A=a;this.b=!!b};
UM=function(a,b){SM.call(this,a,b)};
VM=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 UM("",new lg(c,b,Number(a[3])-c,Number(a[2])-b))}return new UM("",new lg(0,0,0,0))};
XM=function(){WM||(WM=new RM);return WM};
YM=function(a){var b=new lg(-Number.MAX_VALUE/2,-Number.MAX_VALUE/2,Number.MAX_VALUE,Number.MAX_VALUE),c=new lg(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};
ZM=function(a,b){var c=a.getBoundingClientRect(),d=ws(a,b);return new lg(Math.round(d.x),Math.round(d.y),Math.round(c.right-c.left),Math.round(c.bottom-c.top))};
$M=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 lg(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 SM("vp",d));d&&0<d?(e=mg(b),f=mg(c),e=e.top>=f.top&&e.top<f.bottom):e=!1;a.setItem(new TM(512,e));d&&0<d?(e=mg(b),f=mg(c),e=e.bottom<=f.bottom&&e.bottom>f.top):e=!1;a.setItem(new TM(1024,
e));d&&0<d?(e=mg(b),f=mg(c),e=e.left>=f.left&&e.left<f.right):e=!1;a.setItem(new TM(2048,e));d&&0<d?(b=mg(b),c=mg(c),c=b.right<=c.right&&b.right>c.left):c=!1;a.setItem(new TM(4096,c))}};
gfa=function(){this.g=-1};
aN=function(){this.b={};return this};
bN=function(a,b){a.b.eb=ec(a.b,"eb",0)|b};
hfa=function(a,b){var c=0;Yb(xf(),"ima","video","client","tagged")&&(c=1);var d;d=null;a&&(d=a());if(d){var e=d;d=XM();d.b={};var f=new TM(32,!0);f.o=!1;d.setItem(f);f=xf().document;f=f.webkitVisibilityState||f.mozVisibilityState||f.visibilityState||f.msVisibilityState||"";d.setItem(new TM(64,"hidden"!=f.toLowerCase().substring(f.length-6)?!0:!1));var k;try{var l;var m=xf().top;try{l=!!m.location.href||""===m.location.href}catch(u){l=!1}if(l){var n=QM(e);k=n&&0!=n.length?"1":"0"}else k="2"}catch(u){k=
"2"}d.setItem(new TM(256,"2"==k));d.setItem(new TM(128,"1"==k));n=l=xf().top;"2"==k&&(n=xf());m=ZM(e,n);d.setItem(new UM("er",m));var t;try{t=n.document&&!n.document.body?null:tf(n||window)}catch(u){t=null}t?(n=wf(nf(n.document).b),d.setItem(new TM(16384,!!n)),t=n?new lg(n.x,n.y,t.width,t.height):null):t=null;d.setItem(new UM("vi",t));if(t&&"1"==k){k=QM(e);e=[];for(n=0;n<k.length;n++)(f=ZM(k[n],l))&&e.push(f);e.push(t);t=YM(e)}$M(d,m,t);d.g&&(k=PM()-d.g,d.setItem(new SM("ts",k)));d.g=PM()}else d=
XM(),d.b={},d.g=PM(),d.setItem(new TM(32,!1));this.o=d;this.b=new aN;this.b.set("ve",4);c&&bN(this.b,1);Yb(xf(),"ima","video","client","crossdomainTag")&&bN(this.b,4);Yb(xf(),"ima","video","client","sdkTag")&&bN(this.b,8);Yb(xf(),"ima","video","client","jsTag")&&bN(this.b,2);b&&ec(b,"fullscreen",!1)&&bN(this.b,16);this.g=d=null;if(c&&(c=Yb(xf(),"ima","video","client"),c.getEData)){this.g=c.getEData();if(c=Yb(xf(),"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=VM(d).getValue(),k=VM(k).getValue(),e=null,c.getItem("er")&&(e=c.getItem("er").getValue(),e.top+=d.top,e.left+=d.left,c.setItem(new UM("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=YM(l),$M(c,e,d),c.setItem(new UM("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",PM()-ffa(d))};
ifa=function(a,b){try{var c=new hfa(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 D=u.b[y];if(D instanceof TM)D.getValue()&&(f|=D.A);else{var A,Q=u.b[y];(A=Q.o?Q.g():"")&&k.push(y+A)}}k.push("eb"+String(f));(t=k.join("_"))&&d.push(t);c.b.set("eb",e);return d.join("_")}catch(I){return"tle;"+Ia(I.name,12)+";"+Ia(I.message,40)}};
cN=function(a){try{return!!a&&null!=a.location.href&&oc(a,"foo")}catch(b){return!1}};
dN=function(a,b){for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&b.call(void 0,a[c],c,a)};
jfa=function(){var a=q;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};
kfa=function(){var a=eN;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""};
lfa=function(a,b){this.b=a;this.g=b};
fN=function(a,b){this.url=a;this.gq=!!b;this.depth=ga(void 0)?void 0:null};
hN=function(a){a=a?a:gN();for(var b=new fN(q.location.href,!1),c=a.length-1,d=c;0<=d;--d){var e=a[d];if(e.url&&!e.gq){b=e;break}}d=null;e=a.length&&a[c].url;0!=b.depth&&e&&(d=a[c]);return new lfa(b,d)};
gN=function(){var a=q,b=[],c,d=null;do{var e=a;cN(e)?(c=e.location.href,d=e.document&&e.document.referrer||null):(c=d,d=null);b.push(new fN(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=q;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.gq=!0);return b};
iN=function(a,b,c,d){a.addEventListener?a.addEventListener(b,c,d||!1):a.attachEvent&&a.attachEvent("on"+b,c)};
jN=function(a,b,c){a.removeEventListener?a.removeEventListener(b,c,!1):a.detachEvent&&a.detachEvent("on"+b,c)};
kN=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=[]};
lN=function(a,b){var c={};c[a]=b;return[c]};
mN=function(a,b,c,d){a.b.push(b);a.g[b]=lN(c,d)};
nfa=function(a,b,c,d){b=b+"//"+c+d;var e=mfa(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=nN(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+""};
mfa=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};
nN=function(a,b,c,d,e){var f=[];dN(a,function(a,l){var m=oN(a,b,c,d,e);m&&f.push(l+"="+m)});
return f.join(b)};
oN=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(oN(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)(nN(a,b,c,d,e+1)):"...";return(0,window.encodeURIComponent)(String(a))};
qN=function(a,b,c,d,e){try{var f;c instanceof kN?f=c:(f=new kN,dN(c,function(a,b){var c=f,d=c.F++,e=lN(b,a);c.b.push(d);c.g[d]=e}));
if((d?a.o:Math.random())<(e||a.b)){var k=nfa(f,a.g,a.A,a.B+b+"&");pN(q,k)}}catch(l){}};
pN=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);jN(d,"load",e);jN(d,"error",e)};
iN(d,"load",e);iN(d,"error",e)}d.src=b;a.google_image_requests.push(d)};
rN=function(a,b,c){this.o=a;this.B=b;this.g=c;this.A=this.b};
sN=function(a,b,c){this.message=a;this.b=b||"";this.g=c||-1};
uN=function(a,b,c,d,e){var f;try{f=c()}catch(m){var k=a.g;try{var l=tN(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};
wN=function(a,b,c,d){var e=vN;return function(){for(var f=[],k=0;k<arguments.length;++k)f[k]=arguments[k];return uN(e,a,function(){return b.apply(c,f)},d)}};
tN=function(a){return new sN(xN(a),a.fileName,a.lineNumber)};
xN=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};
yN=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)};
DN=function(a,b){var c=ofa;if(!zN)return uN(vN,a,b,void 0,c);var d=AN?X.performance.now():E(),c=uN(vN,a,b,void 0,c),d=Math.round((AN?X.performance.now():E())-d);BN.push(a+"."+d);CN||(CN=X.setTimeout(pfa,500));return c};
pfa=function(){BN.length&&(qN(EN,"execution_time",{data:BN.join(","),nav_api:AN?1:0},!0,zN?1:0),BN=[],X.clearTimeout(CN),CN=void 0)};
FN=function(a,b,c,d){return wN(a,b,c,d)};
GN=function(a,b){return wN(a,b,void 0,void 0)};
HN=function(a){return{visible:1,hidden:2,prerender:3,preview:4}[a.webkitVisibilityState||a.mozVisibilityState||a.visibilityState||""]||0};
JN=function(){var a;IN.mozVisibilityState?a="mozvisibilitychange":IN.webkitVisibilityState?a="webkitvisibilitychange":IN.visibilityState&&(a="visibilitychange");return a};
KN=function(a){a=a.match(/[\d]+/g);if(!a)return"";a.length=3;return a.join(".")};
LN=function(a,b){var c=a||X;c.top!=c&&(c=c.top);try{return c.document&&!c.document.body?new gf(-1,-1):b?(new gf(c.innerWidth,c.innerHeight)).round():tf(c||window).round()}catch(d){return new gf(-12245933,-12245933)}};
qfa=function(){var a=MN.getInstance().C,b=0<=NN?ON()-NN:-1,c=PN?ON()-QN:-1,d=0<=RN?ON()-RN:-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};
ON=function(){return(new Date).getTime()-rfa};
SN=function(){var a=L("div");a.style.cssText="position:relative;left:0px;top:0px;width:0;height:0;";return a};
TN=function(a){for(var b;a&&a!=a.parentElement;){if(a.style&&"none"==ks(a,"display"))return!0;b=a;a=a.parentElement}if(b&&(a=lf(b))){var c,d;try{if(c=xf(a))d=c.frameElement}catch(e){return!1}if(c&&d&&c!=c.parent)return TN(d)}return!1};
WN=function(a){UN.e=-1;UN.i=6;UN.n=7;UN.t=8;if(!VN){var b=[];F(Xb(UN),function(a){b[UN[a]+1]=a});
var c=b.join("");VN=(c=a&&a[c])&&x(c,a)}return VN};
YN=function(){return UH&&lz&&uz("6.0.1")&&0<=Qa(XN,"10.1")?!0:!1};
sfa=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};
ZN=function(a,b,c,d){c=wN(d||"osd_or_lidar::"+b,c,void 0,void 0);iN(a,b,c,void 0);return c};
$N=function(a,b){this.A=null;this.D=a;this.G=b||1;this.b="u"};
aO=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 ef(e,f),new ef(c-e,f),new ef(e,d-f),new ef(c-e,d-f)]):[new ef(e,0),new ef(0,f),new ef(e,d-1),new ef(c-1,f)];case 3:return[new ef(c-1,0),new ef(e,f),new ef(0,d-1)];default:return[new ef(e,f)]}};
bO=function(a,b){var c;try{c=b||a.A.getBoundingClientRect()}catch(e){c=new jg(0,0,0,0)}var d=aO(a,c);F(d,function(a){a.x+=c.left;a.y+=c.top});
return d};
cO=function(a,b){$N.call(this,a,b);this.g=[];this.F=!1;this.o=-1;this.B=this.C=0};
tfa=function(a,b,c){this.snapshot=a;this.g=b;this.b=c};
ufa=function(a,b,c){if(!(b&&b.getBoundingClientRect&&0<=Qa(XN,"11")&&c)||vf&&9>xc||0<a.g.length)return!1;try{var d=b.getBoundingClientRect()}catch(n){return!1}var e="DIV"==b.tagName||"INS"==b.tagName,f=lf(b),k=[];if(e){var l=SN(),d=aO(a,d);F(d,function(a,b){var d=new dO("e",f,c,String(b));this.g.push(d);k.push(x(d.F,d,l,a))},a);
Gf(b,l,0)}else d=bO(a,d),F(d,function(a,d){var e=new dO("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};
vfa=function(a){if(a.A&&a.F){var b=bO(a);F(b,function(a,b){this.g[b]&&eO(this.g[b],a)},a)}};
fO=function(a){F(a.g,function(a){a.remove()});
a.g=[];a.b="d"};
Afa=function(a){var b=E(),c=a.C?b-a.C:0,d=-1,e=N(a.g,function(a){return gO(a,b)});
4==a.g.length?d=a.D?wfa(e):xfa(e):3==a.g.length?d=yfa(e):1==a.g.length&&(d=[-1,0,1,2,3,5][gO(a.g[0],b)+1]);a.B=d==a.o?a.B+c:0;c=new tfa(d,a.o,c);a.o=d;a.C=b;zfa(a,d);vfa(a);return c};
iO=function(a){var b=Ib(Tb(hO));F(a,function(a){0<=a&&++b[a]});
return b};
xfa=function(a){a=iO(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};
yfa=function(a){var b=iO(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};
wfa=function(a){a=iO(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};
zfa=function(a,b){if(0==b&&jO(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"}};
jO=function(a){return"n"==a.b?!0:"l"==a.b&&3E3<=a.B};
dO=function(a,b,c,d){this.b=null;this.A=a;this.xa="e"==a?String(c)+"~"+String(d):"";this.g=[];this.o=-1;this.C=0;this.B=Ib(Tb(Bfa));this.H=Ib(Tb(hO));"e"==this.A&&(kO[this.xa]=x(this.G,this));vf?(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="'+lO(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=Cfa(this,b);a.width=1;a.height=1;a.style.zIndex=-999999;this.b=a};
Cfa=function(a,b){function c(a,c,d){var e=b.createElement("param");e.name=c;e.value=d;a.appendChild(e)}
var d=lO(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};
lO=function(a,b){var c=Rg("//pagead2.googlesyndication.com/osd/hbe.swf","id",a.xa);"s"==a.A&&(c="//pagead2.googlesyndication.com/osd/hbts.swf");b&&(c=Rg(c,"delay","1"));return c};
eO=function(a,b){a.b&&!ff(b,ps(a.b))&&os(a.b,b)};
gO=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=mO(a);Dfa(a,e,d);c=a.g[a.g.length-1];if(null===e){if(e=d=0,0<a.o||ga(c.nj))e=d=2}else null===c.nj||c.timeMs>=d?(d=10<=e?4:0,e=0):e>c.nj?(c=(e-c.nj)/(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};
mO=function(a){var b=null;try{b=a.b.fc()}catch(c){}return b};
Dfa=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({nj:b,timeMs:c})};
nO=function(){this.C=!0;this.g=new dO("s",IN);this.B=!1;this.G=this.D=this.O=this.b=this.A=this.F=this.K=this.L=this.M=this.o=this.H=null};
oO=function(a,b){b!==a.b&&(a.b=b,a.M(b))};
pO=function(a){var b=mO(a.g);null===a.O&&null!==b&&null!==a.D&&(a.O=E()-a.D);return b};
qO=function(a){var b=a.H.getBoundingClientRect(),c;c=null!=a.K?a.K.clone():new ef(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};
rO=function(a){a.B&&(a.L=qO(a));eO(a.g,a.L);a.F=X.setTimeout(GN("osd_or_lidar::sfm_tpto",x(a.ba,a)),125)};
Efa=function(a){if(a.C){var b=x(function(){1===HN(IN)?(this.A=null,rO(this)):(X.clearTimeout(this.F),oO(this,0))},a),c=JN();
if(c){var d=ZN(IN,c,b,"osd_or_lidar::sfm_pv");a.G=function(){jN(IN,c,d);this.G=null}}a.C=!1;
a.b=null;b()}};
sO=function(a){a.C||(X.clearTimeout(a.F),null===a.G||a.G(),a.C=!0)};
tO=function(a,b){$N.call(this,a,b);this.g=[];this.B=this.F=null;this.o=!0;this.C=null};
Ffa=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?aO(a,c):bO(a,c);for(var d=0;d<c.length;++d){var e=c[d],f=new nO,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=qO(k);if(null!=n){e=n;n=new ef(0,0);if(k.B){var u=k.H.getBoundingClientRect();n.x+=u.left;n.y+=u.top}k.K=new ef(e.x-n.x,e.y-n.y)}k.M=m;t?(k.o=SN(),Gf(l,k.o,0),l=k.g.F(k.o,e)):l=k.g.D(l,e);l?(k.D=E(),k.L=e,k=!0):(k.g.remove(),
k.o&&Hf(k.o),k=!1)}else k=!1;if(!k)return uO(a),a.b="c",!1;a.g.push(f)}a.B=E();a.b="l";return!0};
Ifa=function(a){var b=Ib(Tb(Gfa));F(a.g,function(a){null!=a.b&&0<=a.b&&++b[a.b]});
switch(a.G){case 4:return Hfa(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}};
Hfa=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};
vO=function(a){a.o&&null!==a.B&&"d"!=a.b&&(F(a.g,function(a){Efa(a)}),a.b="r",a.o=!1)};
wO=function(a){a.o||(F(a.g,function(a){sO(a)}),a.o=!0)};
uO=function(a){wO(a);F(a.g,function(a){sO(a);a.g&&(a.g.remove(),a.g=null);a.o&&(Hf(a.o),a.o=null)});
a.g=[];a.b="d"};
MN=function(){this.B=!1;this.C=void 0;this.g=!cN(X.top);var a=gN();this.D=0<a.length&&null!=a[a.length-1]&&null!=a[a.length-1].url?Jg(a[a.length-1].url)||"":"";this.o=this.A=this.b=null;this.F=0};
yO=function(a,b,c){this.position=xO.clone();this.ba=0;this.K=new sfa;this.Mb=-2;this.ef=E();this.Zd=-1;this.jb=b;this.$=-1!=b;this.ia=-1;this.ga=null;this.df=c;this.we=this.Cd=v;this.da=this.element=a;this.g=null;this.ca=1;this.Ha=!1;this.A=null;this.nc=this.Ja=!1;this.yb=1;this.Yd=!0;this.cf=MN.getInstance().F++;this.o=0};
Jfa=function(a,b,c,d,e){if(a.$){var f=X.innerWidth,k=X.innerHeight,l=new jg(Math.round(X.mozInnerScreenY),Math.round(X.mozInnerScreenX+f),Math.round(X.mozInnerScreenY+k),Math.round(X.mozInnerScreenX));c=new jg(X.screenY+d,X.screenX+c.width,X.screenY+c.height,X.screenX);e||(d=new jg(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.ba=f*k);a.Re(l,c,b,e,!0,!0)}};
Lfa=function(a,b,c){if(a.$){var d=WN(X&&X.document);if(d){c||zO(a,X,!0);if(a.nc)var e=Kfa(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=wf(window.document),e=d(e-k.x,f-k.y)?.5:0,d=!1;a.Re(a.position,e,b,c,!0,d)}}};
AO=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}};
Kfa=function(a,b){var c=wf(window.document),d=a.yb,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=AO(f,l,function(a){return!!b(e,a)}),k=AO(e,k,function(a){return!!b(a,f)});
else if(n)l=AO(f,l,function(a){return!!b(k,a)}),e=AO(k,e,function(a){return!!b(a,f)});
else if(t)f=AO(l,f,function(a){return!!b(e,a)}),k=AO(e,k,function(a){return!!b(a,l)});
else if(m)f=AO(l,f,function(a){return!!b(k,a)}),e=AO(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=AO(y,f,function(a){return!!b(u,a)});
l=AO(y,l,function(a){return!!b(u,a)});
e=AO(u,e,function(a){return!!b(a,y)});
k=AO(u,k,function(a){return!!b(a,y)})}return(l-f)*(k-e)/c};
Mfa=function(a,b,c,d,e){a.$&&(d||zO(a,X,e),a.Re(a.position,c,b,d,!1,!0))};
BO=function(a,b,c){a.$&&a.Re(a.position,a.o,b,c,!0,!0)};
CO=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};
DO=function(a,b){a.ca=3;if(!a.da||YN())return a.Ha=!0,!1;var c=new cO(!1,a.ca),d=ufa(c,a.da,String(a.cf));d?(a.we=b,a.g=c):a.Ha=!0;return d};
FO=function(a,b){if(!a.element||!YN())return!1;a.ca=3;var c=new tO(!1,a.ca),d=Ffa(c,a.element,x(function(a){EO(this,ON(),!1,b,[0,.01,.5,1,.01,.3][a])},a));
d&&(a.A=c,vO(c));return d};
EO=function(a,b,c,d,e){a.$&&GO(a)&&(c?a.A&&wO(a.A):(zO(a,d,!0),a.A&&vO(a.A)),a.Re(a.position,e||a.o,b,c,!1,!1),!a.Ke()||a.Kl()||a.A&&uO(a.A))};
GO=function(a){return null!==a.A&&"d"!=a.A.getStatus()};
zO=function(a,b,c){b=c?b:b.top;try{var d=xO.clone(),e=new ef(0,0);if(a.da){var f=1==a.df;!c&&f&&TN(a.da)||(d=a.da.getBoundingClientRect());e=ws(a.da,b)}var k=e.x,l=e.y;a.position=new jg(Math.round(l),Math.round(k+(d.right-d.left)),Math.round(l+(d.bottom-d.top)),Math.round(k))}catch(m){a.position=xO.clone()}a.ba=(a.position.bottom-a.position.top)*(a.position.right-a.position.left)};
HO=function(a,b){var c=Math.pow(10,b);return Math.floor(a*c)/c};
Nfa=function(a){a.g&&fO(a.g);a.A&&uO(a.A)};
Ofa=function(){this.b={};for(var a in IO)this.b[IO[a]]=0};
JO=function(a,b){0==a.b[b]&&(a.b[b]=1)};
Pfa=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};
Qfa=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]};
KO=function(a,b,c){var d=a.H;PN||c||-1==a.g||(d+=b-a.g);return d};
LO=function(a,b,c,d){yO.call(this,b,c,d);this.G=new Qfa;this.gc=[0,0,0,0,0];this.Tb=[0,0,0,0,0];this.ra=[0,0,0,0,0];this.rb=this.fa=0;this.F={};this.D=new Ofa;this.zd={};this.rg=this.C="";this.xe=!1;this.bb=[];this.O=void 0;this.Ad=this.Ae=this.Be=this.ed=!1;this.L=void 0;this.M=-1;this.H=this.Oa=this.Db=void 0;this.na=!1;this.Na=this.Ba=this.ea=0;this.Sa=1>Math.random()?1:0;this.ab=0;this.Xa=-1;this.Bc=!1;this.Ia=this.zb=0;this.va=!1;this.ka=this.kc=this.Ta=this.Da=this.b=this.S=this.ve=0;this.oa=
-1;this.Ed=this.Dd=0;this.ze=this.Bd=this.Ce=this.B=!1;this.Xd=0;this.ye=!1;this.kb=v;b=MN.getInstance();zO(this,a,b.g)};
MO=function(a){return p(a)&&0<=a&&1>=a};
NO=function(a,b){var c=b-a.jb||1,d=1E4;p(a.M)&&-1!=a.M&&(d=Math.max(d,a.M/3));return c>d?1:c};
Rfa=function(a){var b=0;.5<=a.o&&(b+=1);MO(a.H)&&(b+=2);a.va&&(b+=4);a.B&&(b+=8);-1!=a.ia&&(b+=16,1==a.ia&&(b+=32));a.na&&(b+=128);a.na&&0<a.o&&(b+=256);return b};
OO=function(a,b){sb(a.bb,Ib(b-a.bb.length+1));a.bb[b]=HO(a.o,2)};
QO=function(a,b){var c=a.zd[b];if(null!=c)return c;a:if(fb(Sfa,b))c=!0;else{c=a.F[b];if(p(c)&&(a.F[b]=!0,!c)){c=!0;break a}c=!1}c=PO(a,c,c);"fully_viewable_audible_half_duration_impression"==b&&(c.std="csm");return c};
PO=function(a,b,c){if(a.Ja)return{"if":0};var d=a.position.clone();d.round();var e=N(a.bb,function(a){return 100*a|0}),f=MN.getInstance(),k=a.G,l={};
l["if"]=f.g?1:void 0;l.sdk=a.L?a.L:void 0;l.t=a.ef;l.p=[d.top,d.left,d.bottom,d.right];l.tos=a.K.B;l.mtos=a.K.o;l.ps=void 0;l.pt=e;l.vht=KO(k,ON(),!!a.O);l.mut=k.G;l.a=a.H;l.ns=a.Xd;l.fs=a.B?1:0;l.ft=a.zb;l.at=k.F;l.as=k.D?1:0;l.atos=k.A;l.uac=a.ve;l.vpt=a.ab;l.is=Rfa(a);l.ic=Pfa(a.D);if("h"==a.L||"as"==a.L)l.gmm="2";a.nc&&(l.efpf=a.yb);a.g&&(l.swf=a.g.getStatus(),l.px=a.ca);a.A&&(l.sfm=a.A.getStatus(),l.px=a.ca);0<a.Ed&&(l.nnut=a.Ed);l.tcm=a.Sa;l.nmt=a.kc;l.bt=a.ka;l.pst=a.oa;l.mmct=a.Dd;l.vpaid=
a.Db;l.dur=a.M;l.vmtime=a.Ba;l.vmtos=a.gc;l.vmmtos=a.Tb;b&&(a.Ke()&&(l.dtos=k.C,l.vmdtos=a.fa,l.dav=k.B,l.dtoss=a.rb+1,c&&(k.C=0,k.B=0,a.fa=0,a.rb++)),l.dat=k.o,l.dft=a.Ia,c&&(k.o=0,a.Ia=0));!a.Ke()&&2E3<=a.fa&&(l.vmdtos=a.fa);f.o&&(l.ps=[f.o.width,f.o.height]);l.dom=f.D;a.Ha&&(l.fmf="1",l.px=a.ca);a.ed&&(l.ven="1");a.Be&&(l.veh="1");a.S&&(l.vds=a.S);a.b&&(l.vmer=a.b);a.Da&&(l.vmmk=a.Da);a.Ta&&(l.vmiec=a.Ta);RO()?(l.c=HO(a.o,2),l.ss=HO(Tfa(a),2)):l.tth=ON()-SO;l.mc=HO(a.K.A,2);l.lte=HO(a.Mb,2);return l};
Tfa=function(a){if(a.B)return 1;var b=X.screen.width*X.screen.height;return 0>=b?-1:a.ba*a.o/b};
Ufa=function(){for(var a=X,b=a,c=0;a&&a!=a.parent;)a=a.parent,c++,cN(a)&&(b=a);return b};
cP=function(){if(!TO){TO=!0;var a=q.requestAnimationFrame||q.webkitRequestAnimationFrame||q.mozRequestAnimationFrame||q.oRequestAnimationFrame||q.msRequestAnimationFrame;if(!UO&&!VO&&!WO){var b;if(a){var c=wN("osd_or_lidar::throttled_scroll_raf_callback",XO,void 0,void 0);b=function(){a(function(){X.setTimeout(c,0)})}}else b=XO;
YO=new ym(wN("osd_or_lidar::throttled_scroll_timeout",b,void 0,void 0),100);b=x(YO.Uf,YO);UO=ZN(X,"scroll",b,"osd_or_lidar::throttled_scroll")}if(!ZO&&!VO&&!WO){if(a){var d=wN("osd_or_lidar::throttled_resize_raf_callback",$O,void 0,void 0);b=function(){a(function(){X.setTimeout(d,0)})}}else b=$O;
aP=new ym(wN("osd_or_lidar::throttled_resize_timeout",b,void 0,void 0),100);b=x(aP.Uf,aP);ZO=ZN(X,"resize",b,"osd_or_lidar::throttled_resize")}Vfa();bP()}};
$O=function(){dP(!1);XO()};
XO=function(){eP(fP(),!1)};
Wfa=function(){var a,b=MN.getInstance();gP&&(b.b=LN(X,gP));if(VO)return a=new hP,a.H=!0,a;if(WO)return a=new hP,a.C=!0,a;if(iP){a=jP;dP(!1);var c=MN.getInstance(),d=c.A,b=d.height-a;0>=b&&(b=d.height,a=0);c.b=new gf(d.width,b);b=new hP;b.F=!0;b.A=c.b;b.b=d;b.B=a;return b}if(kP)return a=new hP,a.D=!0,a;if(lP)return a=new hP,a.G=!0,a;if(mP)return a=new hP,a.K=!0,a;a:{var b=b.b,e=new hP;e.A=b;e.g=!1;if(null!=b&&-1!=b.width&&-1!=b.height&&-12245933!=b.width&&-12245933!=b.height){try{var f=gP,k=X||X,k=
k.top,c=b||LN(k,f),d=wf(nf(k.document).b);a=-1==c.width||-12245933==c.width?new jg(c.width,c.width,c.width,c.width):new jg(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};
eP=function(a,b){var c;if(!nP)if(window.clearTimeout(oP),oP=null,0==a.length)b||pP();else{var d=Wfa();try{var e=ON();if(d.C)for(c=0;c<a.length;c++)BO(a[c],e,b);else if(d.H)for(c=0;c<a.length;c++)BO(a[c],e,b);else if(d.F&&d.b)for(c=0;c<a.length;c++)Jfa(a[c],e,d.b,d.B,b);else if(d.D)for(c=0;c<a.length;c++)Lfa(a[c],e,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=Afa(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.Re(a.position,e,a.jb+c.b,!1,!0,!1);!a.Ke()||a.Kl()||a.Yd||a.g&&fO(a.g);(c=2==c.snapshot||jO(a.g))||(c=a.g,c="f"==c.b&&3E3<=c.B);c&&(a.we(a),a.Yd=!1,a.g&&fO(a.g))}});
else if(d.K)for(c=0;c<a.length;c++)EO(a[c],e,b,X);else if(d.g&&d.o){var f=MN.getInstance();for(c=0;c<a.length;c++)Mfa(a[c],e,d.o,b,f.g)}++Xfa}finally{b?F(a,function(a){a.o=0}):pP()}}};
Vfa=function(){var a=bP,b=JN();b&&(qP=qP||ZN(IN,b,a,"osd_or_lidar::visibility"))};
bP=function(){var a=RO(),b=ON();a?(PN||(QN=b,F(rP,function(a){var d=a.G;d.H=KO(d,b,!!a.O)})),PN=!0,dP(!0)):(PN=!1,SO=b,F(rP,function(a){a.$&&(a.G.g=b)}));
eP(fP(),!a)};
RO=function(){if(Yfa())return!0;var a=HN(X.document);return 1==a||0==a};
pP=function(){X&&(oP=X.setTimeout(GN("osd_or_lidar::psamp_to",function(){eP(fP(),!1)}),qfa()))};
Zfa=function(a){return bb(rP,function(b){return b.C==a})};
fP=function(){return 0==rP.length?sP:0==sP.length?rP:qb(sP,rP)};
$fa=function(){var a=X.document;return a.body&&a.body.getBoundingClientRect?!0:!1};
dP=function(a){var b=MN.getInstance();b.b=LN(X,gP);if(!a){b.A=X&&X.outerWidth?new gf(X.outerWidth,X.outerHeight):new gf(-12245933,-12245933);var c;a=X;a.top!=a&&(a=a.top);var d=0,e=0,f=MN.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 gf(e,d)}catch(D){c=new gf(-12245933,-12245933)}b.o=c}};
aga=function(a,b){var c=!1;F(rP,function(b){b=FO(b,a);c=c||b});
(mP=c)&&F(rP,function(a){GO(a)||b(a)});
return c};
cga=function(a){var b=!1;F(rP,function(c){c=DO(c,a);b=b||c});
(lP=b)&&F(rP,function(b){b.g||a(b)});
return b};
dga=function(a){F(a,function(a){null==bb(rP,function(c){return c.element==a.element&&c.rg==a.rg})&&rP.push(a)})};
Yfa=function(){return Rh(rP,function(a){return a.B})};
hP=function(){this.b=this.A=null;this.B=0;this.o=null;this.g=this.K=this.G=this.D=this.F=this.C=this.H=!1};
tP=function(){this.g=64;this.b=Array(4);this.B=Array(this.g);this.A=this.o=0;this.reset()};
uP=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};
fga=function(){var a=gN(),b=a.length-1,c=hN(a),a=c.b,d=c.g,c=[];d?(a&&c.push(vP(b,[d.url,2],0,[a.url,0],a.depth)),c.push(vP(b,[d.url,2],0))):a.url&&(c.push(vP(b,void 0,void 0,[a.url,0],a.depth)),(d=(d=ega.exec(a.url))&&d[0]||"")&&c.push(vP(b,[d,1],a.depth)));c.push(vP(b));return c};
vP=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};
wP=function(){var a=fga();return N(a,function(a){return oN(a)})};
xP=function(a){return function(b){return!p(b[a])&&p(0)?0:b[a]}};
yP=function(){return function(a){if(!p(a.tth))return"1"}};
AP=function(){var a=[0,2,4];return function(b){b=b.tos;if(da(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)?zP(c,a):c}}};
BP=function(a,b){return function(c){c=c[a];if(da(c))return zP(c,b)}};
zP=function(a,b){return ke(a,function(a,d){return fb(b,d)})};
gga=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("&")};
CP=function(){this.B=this.o=this.g=this.A=!1;this.b={};this.b.start=this.dz;this.b.firstquartile=this.Ty;this.b.midpoint=this.Yy;this.b.thirdquartile=this.ez;this.b.complete=this.Py;this.b.pause=this.$y;this.b.resume=this.az;this.b.skip=this.bz;this.b.viewable_impression=this.gz;this.b.mute=this.Zy;this.b.unmute=this.fz;this.b.fullscreen=this.Uy;this.b.exitfullscreen=this.Sy;this.b.fully_viewable_audible_half_duration_impression=this.Vy;this.b.measurable_impression=this.Xy;this.b.abandon=this.Oy;
this.b.engagedview=this.Ry;this.b.impression=this.Wy;this.b.creativeview=this.Qy};
iga=function(a){if(!a.A){a.A=!0;try{NN=ON(),1>Math.random()&&(a.B=!0),DP=Ufa(),dP(!1),$fa()?(window.setTimeout(function(){},1),MN.getInstance().g?hga(a):cP()):EP=!0}catch(b){throw rP=[],sP=[],b;
}}};
hga=function(a){var b;if(fs&&ga(X.screenX)&&ga(X.mozInnerScreenX)&&ga(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&&(jP=
b,iP=!0);b=!0}else b=!1;if(b)cP();else if(b=X&&X.document,b=vf&&yc(8)&&ha(WN(b))?kP=!0:!1,b)cP();else{if(YN()){if(aga(X,x(a.ol,a))){cP();a.o=!0;return}}else if(cga(x(a.ol,a))){cP();a.g=!0;return}window.clearTimeout(oP);oP=null;FP="i";nP=!0}};
GP=function(a,b){var c=a.G;c.H=KO(c,ON(),!!a.O);c=!RO();eP([a],c);a.O=!0;return QO(a,b)};
HP=function(a){if(w(a)){var b=$a(rP,function(b){return b.C==a});
0<=b&&(Nfa(rP[b]),nb(rP,b))}};
jga=function(a,b,c){var d=bb(rP,function(a){return a.element==c});
null!==d&&d.C!=b&&(HP(d.C),d=null);d||(d=IP(a,c),d.C=b,d.L="h");return d};
IP=function(a,b){var c;c=new LO(X,b,-1,7);c.Cd=x(a.nl,a);MN.getInstance().C=79463069;dga([c]);cP();return c};
kga=function(a,b){var c=$b(JP,function(b){return b==a}),c={v:"464v",
e:KP[c]},d=QO(b,a);jc(c,d);b.zd[a]=d;return LP(c,MP)};
LP=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&&(ha(l)?f[k]=l(a):f[k]=a[l])}p(c)&&jc(f,c);a=lga(f);0!=a.length&&p(d)&&p(e)&&(e=e(a),a+="&"+d+"="+e);return a};
OP=function(a,b){var c={v:"464v"};c.nas=rP.length;c.msg=a;if(p(b)){var d=NP(b);d&&(c.e=KP[d])}return c};
NP=function(a){var b=a.toLowerCase();return $b(JP,function(a){return a==b})};
PP=function(a,b){var c=a[b];p(c)&&(a[b]=Math.floor(1E3*c))};
lga=function(a){var b=[];Ob(a,function(a,d){d in Object.prototype||"undefined"==typeof a||(da(a)&&(a=a.join(",")),b.push([d,"=",a].join("")))});
return b.join("&")};
QP=function(a){return!a||"function"!==typeof a||0>String(Function.prototype.toString).indexOf("[native code]")?!1:0<=String(a).indexOf("[native code]")&&!0||!1};
SP=function(a){return!!(1<<a&RP)};
qga=function(){try{mga()}catch(d){}var a="a=1&b="+RP+"&",b=[],c=99;F(nga,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(oga,function(b){var e="false";try{e=b(X)}catch(f){}a+=String.fromCharCode(c++)+"="+e+"&"});
F(pga,function(b){var e="";try{var f=b(X),e=pE(lE(f),!0)}catch(k){}a+=String.fromCharCode(c++)+"="+e+"&"});
return a.slice(0,-1)};
mga=function(){if(!TP){var a=function(){UP=!0;X.document.removeEventListener("webdriver-evaluate",a,!0)};
X.document.addEventListener("webdriver-evaluate",a,!0);var b=function(){VP=!0;X.document.removeEventListener("webdriver-evaluate-response",b,!0)};
X.document.addEventListener("webdriver-evaluate-response",b,!0);TP=!0}};
WP=function(){CP.call(this)};
sga=function(a,b,c){var d=bb(rP,x(function(a){return a.element?XP(a.element,c)==b&&a.rg==c:!1},a));
null!==d&&d.C!=b&&(HP(d.C),d=void 0);if(d)return d;d=rga(c);if(d=bb(d,x(function(a){return XP(a,c)==b},a)))return d=IP(a,d),d.L="as",d.C=b,d.rg=c,d};
rga=function(a){var b=X.document,c=Jb(N(["embed","object"],function(a){return rb(b.getElementsByTagName(a))})),d="metricID"+a;
return c=ke(c,function(a){if(!a||!ia(a)||1!=a.nodeType||!ha(a.getBoundingClientRect))return!1;var b=a.getBoundingClientRect();return 0!=b.width&&0!=b.height&&a[d]&&ha(a[d])?!0:!1})};
XP=function(a,b){var c="metricID"+b;if(!a||!a[c]||!ha(a[c]))return null;var d;try{d=a[c]()}catch(e){return null}return d.queryID};
YP=function(a,b){MN.getInstance();var c;switch(a.L){case "h":c=r("ima.common.triggerExternalActivityEvent");break;case "a":c=r("ima.common.triggerExternalActivityEvent");break;case "n":c=r("ima.bridge.triggerExternalActivityEvent");break;case "as":var d="triggerExternalActivityEvent"+a.rg;a.element&&ha(a.element[d])&&(c=function(b,c,e){a.element[d](e)});
break;default:return a.S|=4,!1}if(ha(c)){var e=kga(b,a);try{return c(a.C,e,b),!0}catch(f){a.S|=2}}else a.S|=1;return!1};
$P=function(a){var b={};b.viewability=LP(a,MP);var c;c=RP=(new Date).getTime();var d=SP(5);c=(UP?!d:d)?c|2:c&-3;d=SP(2);c=(VP?!d:d)?c|8:c&-9;c={s1:(c>>>0).toString(16)};b.moatViewability=LP(a,tga,c,"h",ZP("kArwaWEsTs"));b.integralAdsViewability=LP(a,uga,{},"h",ZP("b96YPMzfnx"));b.doubleVerifyViewability=LP(a,vga,{},"h",ZP("yb8Wev6QDg"));b.googleViewability=LP(a,wga,c);return b};
ZP=function(a){return function(b){var c=new tP;c.update(b+a);return Ica(c.digest()).slice(-8)}};
xga=function(a,b,c){a=MN.getInstance();if(a.B!=b){a.B=b;var d=Rh(rP,function(a){return a.ye});
F(rP,function(a){b||d||(a.jb=c);a.Bd=b;a.ye=!1})}};
aQ=function(){var a={};a.moatInit=qga();return a};
bQ=function(a,b,c){var d;d=WP.getInstance();var e={};jc(e,{opt_adElement:void 0,opt_fullscreen:void 0},c||{});if(e.opt_bounds)d=$P(OP("ol",a));else{b:{if(NP(a)){if(EP){d=OP("ue",a);break b}b=d.Zk(b,e);if(!b){d=OP("nf",a);break b}iga(d);"i"==FP&&(b.Ja=!0,d.km(b));b.nc=!0;b.yb=2;c=e.opt_fullscreen;p(c)&&(b.B=!!c);a=a.toLowerCase();if(fb(yga,a)){if(!b.ze){b.ze=!0;"i"!=FP&&(nP=!1);!d.g||b.g||b.Ha||DO(b,x(d.ol,d));d.o&&!GO(b)&&FO(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.rb=0;c=p(e)?e.opt_nativeTime:void 0;RN=c=ga(c)?c:ON();b.$=!0;var f=!1;RO()||(f=!0,b.G.g=c);eP([b],f)}d.B&&d.vp(b)}if(c=d.b[a])if(d=c.call(d,b,e),p(d)){e=OP(void 0,a);jc(e,d);d=e;break b}}d=void 0}d=$P(d)}return d};
cQ=function(){hd.call(this);this.b=null;this.C=new Am(this);H(this,this.C);this.g=new yg;this.G=new yg;this.A=this.B=null;this.o=!1;this.D=(ha(null),null)};
eQ=function(){null!=dQ||(dQ=new cQ);return dQ};
gQ=function(a){if(null==a)return!1;if(fM()&&null!=a.webkitDisplayingFullscreen)return a.webkitDisplayingFullscreen;var b=window.screen.availWidth||window.screen.width,c=window.screen.availHeight||window.screen.height;a=fQ(a);return 0>=b-a.width&&42>=c-a.height};
fQ=function(a){return ha(a.getBoundingClientRect)&&Pf(lf(a),a)?a.getBoundingClientRect():{left:a.offsetLeft,top:a.offsetTop,width:a.offsetWidth,height:a.offsetHeight}};
zga=function(a,b){a.B=b};
hQ=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):V.B)null!=e.opt_fullscreen||(e.opt_fullscreen=gQ(d)),null!=e.opt_adElement||(e.opt_adElement=d);null==e.opt_bounds&&a.B&&(e.opt_bounds=fQ(a.B));return DN("lidar::handlevast_html5",pa(bQ,b,c,e))||{}}return{}};
Aga=function(){var a=eQ();if(!a.o)return null;if(null!=a.A)return a.A;a.A=DN("lidar::getinitsignals_html5",aQ)||null;return a.A};
iQ=function(a,b){var c=[];a.g.forEach(pa(function(a,b,c,k){c==b&&a.push(k)},c,b));
F(c,a.g.remove,a.g)};
jQ=function(a){if(ha(window.Goog_AdSense_Lidar_getUrlSignalsArray)){var b={};b.pageSignals=window.Goog_AdSense_Lidar_getUrlSignalsArray();a.b.send("activityMonitor","pageSignals",b)}};
Bga=function(a,b,c){if(!V.C)return"";var d=b?a.G.get(b):V.B;a={};null!=c&&(a.fullscreen=c);c="";try{c=ifa(function(){return d},a)}catch(e){c="sdktle;"+Ia(e.name,12)+";"+Ia(e.message,40)}return c};
kQ=function(a,b,c){if(gb(a))return null;a=ke(a,function(a){var b=a.A;return"application/x-mpegurl"==C(a.b).toLowerCase()||"progressive"==b});
gb(c)||(c=N(c,function(a){return a.toLowerCase()}),a=ke(a,function(a){return fb(c,C(a.b).toLowerCase())}));
if(!ga(b)||0>=b)b=cM()?500:1E3;return Cga(a,b)};
Cga=function(a,b){return Dga(a,b)||Ega(a,b)||Fga(a,b)};
Dga=function(a,b){var c=null;F(a,function(a){var e=a.Le,f=a.Rd;e>b||f<b||!(null==c||c.Le>e)||(c=a)});
return c};
Ega=function(a,b){var c=null;F(a,function(a){var e=a.Le,f=a.Rd;f>b||(null==c||c.Rd<f?c=a:null!=c&&c.Rd==f&&c.Le>e&&(c=a))});
return c};
Fga=function(a,b){var c=null;F(a,function(a){var e=a.Le,f=a.Rd;if(!(e<b))if(null!=c&&c.Le==e&&c.Rd<f)c=a;else if(null==c||c.Le>e)c=a});
return c};
lQ=function(){hd.call(this);this.C=this.G=this.L=this.D=!1;this.g=0;this.A=[];this.F=!1;this.O=this.M=window.Infinity;this.o=0;this.K=!1;this.B=new Am(this);this.H={}};
Gga=function(a){mQ(a);!(a.b instanceof hd)&&"ontouchstart"in window.document.documentElement&&gM()?(a.H={touchstart:x(a.VD,a),touchmove:x(a.UD,a),touchend:x(a.TD,a)},Ob(a.H,function(a,c){this.b.addEventListener(c,a,!1)},a)):a.B.P(a.b,"click",a.Hp)};
mQ=function(a){a.B.ua(a.b,"click",a.Hp);Ob(a.H,function(a,c){this.b.removeEventListener(c,a,!1)},a);
a.H={}};
Hga=function(a,b){a.A=[];F(b,function(a){lb(this.A,a.identifier)},a)};
nQ=function(a,b){return Rh(b,function(a){return fb(this.A,a.identifier)},a)};
oQ=function(a){null!=a?ML(Iga,a)?(a=a.match(/yt_vid\/([a-zA-Z0-9_-]{11})/),a=null!=a&&1<a.length?a[1]:null):a=NL(a)?Jga(a):null:a=null;return a};
pQ=function(a,b,c){if(null==a)return null;c=new M((null!=c?c:"//www.youtube.com/")+"watch");var d=c.b;d.set("v",a);d.set("feature",b?"trueview-instream":"instream");dh(c,d);return c.toString()};
qQ=function(a){return null===a?!1:"pharma"==(new M(a)).F().toLowerCase()};
Jga=function(a){if(B(C(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 M(a)).b;return th(a,"v")?a.get("v").toString():th(a,"video_id")?a.get("video_id").toString():null};
rQ=function(){hd.call(this)};
sQ=function(a){hd.call(this);this.b=a;this.S=new wm(4);this.o=0;this.O=this.A=this.K=this.F=!1;this.L=this.Od();this.H=this.ag();this.ba=15E3;this.M=!1};
uQ=function(a){a.K=!1;a.A=!1;a.F=!1;a.o=0;a.O=!1;a.S.clear();tQ(a);Mb(a.B)};
wQ=function(a){a.A||(a.A=!0,tQ(a),a.dispatchEvent("start"),pM()||!CA||jM(3)||fM()&&(!gM()||!hM(vQ,4))||a.wl())};
xQ=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};
tQ=function(a){a.G&&(ee(a.G),a.G=null)};
zQ=function(){hd.call(this);this.buffered=new yQ;this.b=new Am(this);var a=yL();if(a){a:{if(Zb(a.b,"videoElementMockDuration")&&(a=a.b.videoElementMockDuration,ga(a)))break a;a=window.NaN}this.duration=a}};
Kga=function(){var a=["video/mp4"],b=["video/ogg"],c=new zQ;c.canPlayType=function(c){return fb(a,c)?"probably":fb(b,c)?"maybe":""};
c.width=0;c.height=0;c.offsetWidth=0;c.offsetHeight=0;return c};
Lga=function(a){this.startTime=0;this.endTime=a};
yQ=function(){this.length=0;this.b=[]};
AQ=function(){throw Error("Do not instantiate directly");};
BQ=function(){AQ.call(this)};
CQ=function(){AQ.call(this)};
DQ=function(a,b){var c;a:{var d=a(b||Mga,void 0,void 0);c=nf().createElement("DIV");d=Nga(d);c.innerHTML=d;if(1==c.childNodes.length&&(d=c.firstChild,1==d.nodeType)){c=d;break a}}return c};
Nga=function(a){if(!ia(a))return String(a);if(a instanceof AQ){if(a.Id===EQ)return a.hc();if(a.Id===FQ)return Da(a.hc())}return"zSoyz"};
GQ=function(a,b){return null!=a&&a.Id===b};
HQ=function(a){if(null!=a)switch(a.de){case 1:return 1;case -1:return-1;case 0:return 0}return null};
IQ=function(){AQ.call(this)};
Y=function(a){return null!=a&&a.Id===EQ?a:a instanceof Ne?JQ(Oe(a),a.Rf()):JQ(Da(String(String(a))),HQ(a))};
KQ=function(){AQ.call(this)};
LQ=function(){AQ.call(this)};
MQ=function(){AQ.call(this)};
NQ=function(){AQ.call(this)};
OQ=function(){AQ.call(this)};
PQ=function(a,b){this.content=String(a);this.de=null!=b?b:null};
QQ=function(a){function b(a){this.content=a}
b.prototype=a.prototype;return function(a){return new b(String(a))}};
TQ=function(a,b,c){var d="key_"+a+":"+b,e=RQ[d];if(void 0===e||0>e)RQ[d]=0,SQ[d]=c;else if(0==e)throw Error('Encountered two active delegates with the same priority ("'+a+":"+b+'").');};
UQ=function(a,b){var c=SQ["key_"+a+":"+b];c||""==b||(c=SQ["key_"+a+":"]);return c?c:Oga;throw Error('Found no active impl for delegate call to "'+a+":"+b+'" (and not allowemptydefault="true").');};
Oga=function(){return""};
YQ=function(a){return GQ(a,EQ)?String(String(a.hc()).replace(VQ,"").replace(WQ,"&lt;")).replace(Pga,XQ):Da(String(a))};
ZQ=function(a){return GQ(a,EQ)?String(String(a.hc()).replace(VQ,"").replace(WQ,"&lt;")).replace(Qga,XQ):String(a).replace(Rga,XQ)};
Sga=function(a){return"%"+a.charCodeAt(0).toString(16)};
aR=function(a){a=ua(String(a));$Q.lastIndex=0;return $Q.test(a)?a.replace($Q,Sga):a};
gR=function(a){GQ(a,bR)||GQ(a,cR)?a=dR(a):a instanceof De?a=dR(Ee(a)):a instanceof Je?a=dR(Ke(a)):(a=String(a),a=Tga.test(a)?a.replace(eR,fR):"about:invalid#zSoyz");return a};
hR=function(a){GQ(a,bR)||GQ(a,cR)?a=dR(a):a instanceof De?a=dR(Ee(a)):a instanceof Je?a=dR(Ke(a)):(a=String(a),a=Uga.test(a)?a.replace(eR,fR):"about:invalid#zSoyz");return a};
jR=function(a){var b=iR[1]||(iR[1]=new et(1)),c=HQ(a);null==c&&(c=ue(a+"",GQ(a,EQ)));return Vga(c!=b.b?-1==c?'dir="rtl"':1==c?'dir="ltr"':"":"")};
XQ=function(a){return Wga[a]};
fR=function(a){return Xga[a]};
dR=function(a){return String(a).replace(eR,fR)};
Yga=function(a,b,c){return""+UQ("a",a.oi)(a,null,c)};
Zga=function(a){return'<div class="videoAdUi"><div class="videoAdUiTopBar"><div class="videoAdUiAttributionContainer videoAdUiAttributionContainer-gvn"><div class="videoAdUiAttribution"'+Y(jR(a.Fd))+">"+Y(a.Fd)+'</div></div></div><div class="videoAdUiProgressBar" dir="ltr"><div class="videoAdUiProgress"></div></div></div>'};
$ga=function(a){return'<div class="videoAdUi"><div class="videoAdUiTopBar"><div class="videoAdUiAttributionContainer videoAdUiAttributionContainer-gvn"><div class="videoAdUiAttribution"'+Y(jR(a.Fd))+">"+Y(a.Fd)+'</div></div><div class="videoAdUiLearnMoreText videoAdUiLearnMoreText-gvn">'+Y(a.ig)+'<div class="videoAdUiLearnMoreIcon"></div></div></div><div class="videoAdUiProgressBar" dir="ltr"><div class="videoAdUiProgress"></div></div></div>'};
aha=function(){return'<div class="videoAdUiPreSkipContainer"><div class="videoAdUiPreSkipButton"><div class="videoAdUiPreSkipText"></div><div class="videoAdUiPreSkipThumbnail" aria-hidden="true"></div></div></div>'};
kR=function(a){return""+UQ("b",a.oi)(a,null,void 0)};
bha=function(a){return'<div class="videoAdUiSkipContainer html5-stop-propagation"><button class="videoAdUiSkipButton videoAdUiAction">'+Y(a.oF)+'<div class="videoAdUiSkipIcon"></div></button></div>'};
lR=function(a){var b="";a=2<=a.th&&1<=a.Ng?"Ad "+(Y(a.Ng)+(" of "+(Y(a.th)+(" "+Y(a.sh))))):"Ad "+Y(a.sh);return b+=a};
nR=function(){var a=mR(),b=JQ("</a>"),a="Visit Google's "+(Y(a)+("Ad Settings"+(Y(b)+" to learn more about how ads are targeted or to opt out of personalised ads.")));return JQ(""+("<div class='videoAdUiAdSettingsLongTooltip'>"+a+"</div>"))};
mR=function(){return JQ('<a href="https://www.google.com/settings/ads/onweb" target="_blank">')};
oR=function(a){return JQ("<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>")};
cha=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.Nk)+"</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=""+oR({heading:pR(""+Y(a.heading)),message:pR(b),buttons:pR("<button class='videoAdUiWhyThisAdCloseButton videoAdUiPopupDefaultButton'>"+
Y(a.close)+"</button>")});return JQ(a)};
dha=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"+YQ(e)+"'><input type='radio' id='videoAdUiMuteOption"+YQ(e)+"' name='videoAdUiMuteOption' class='videoAdUiMuteOption"+YQ(e)+"' />"+Y(f)+"</label>");a=""+oR({heading:pR(Y(a.heading)+" <a class='videoAdUiMuteUndo'>"+Y(a.undo)+"</a>"),message:pR(b),buttons:pR("<button class='videoAdUiMuteCancel videoAdUiPopupButton'>"+Y(a.cancel)+"</button><button class='videoAdUiMuteConfirm videoAdUiPopupDefaultButton'>"+
Y(a.confirm)+"</button>")});return JQ(a)};
eha=function(a){var b=String(""+a.heading);return JQ(oR({heading:b?new PQ(b,void 0):"",message:pR(""+Y(a.message)),buttons:pR("<button class='videoAdUiMuteCancel videoAdUiPopupButton'>"+Y(a.cancel)+"</button><button class='videoAdUiMuteConfirm videoAdUiPopupDefaultButton'>"+Y(a.confirm)+"</button>")}))};
fha=function(){return JQ('<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>')};
rR=function(a,b,c){if(null==a||!Pf(lf(a),a))throw ZL(qR,null,"containerElement","element");this.B=a;this.g=this.b=null;this.A=b;this.C=c||!1;this.o=null;this.b=L("DIV",{style:"display:none;"});a=yL();zL(a,"useVideoElementMock")?(a=Kga(),b=L("DIV",{style:"position:absolute;width:100%;height:100%;top:0px;left:0px;"}),qa(b,a),a.Og=L("DIV",{style:"position:absolute;width:100%;height:100%;top:0px;left:0px;background-color:#000"}),a.mj=L("P",{style:"position:absolute;top:25%;margin-left:10px;font-size:24px;color:#fff;"}),
a.Og.appendChild(a.mj),b.appendChild(a.Og),a.b.P(a,["loadeddata","playing","pause","ended"],a.iE),a=b):a=L("VIDEO",{style:"background-color:#000;position:absolute;width:100%;height:100%;",title:"Advertisement"});a.setAttribute("webkit-playsinline",!0);this.g=a;this.B.appendChild(this.b);this.b.appendChild(this.g);this.A&&(a=L("DIV",{id:this.A,style:"display:none;background-color:#000;position:absolute;width:100%;height:100%;"}),this.b.appendChild(a));this.C&&(this.o=L("DIV",{style:"position:absolute;width:100%;height:100%;"}),
this.b.appendChild(this.o))};
uR=function(a){hd.call(this);this.M="ima-chromeless-video";var b=null;null!=a&&(w(a)?this.M=a:b=a);this.O=new Am(this);this.C=null;this.A=!1;this.ga=this.Od();this.ea=this.ag();this.H=-1;this.$=!1;this.D=-1;this.o=this.ca=this.K=null;this.ba="";this.g=!1;this.fa=null!=b;this.ka=this.L=this.da=this.b=null;this.B=void 0;this.G=this.ia=null;this.F=this.na=0;this.fa?(this.g=!0,this.b=b,this.B=2):(a=x(this.Ex,this),sR?a():(tR.push(a),a=Cf("script"),a.src="https://www.youtube.com/iframe_api",b=window.document.getElementsByTagName("script")[0],
b.parentNode.insertBefore(a,b)))};
vR=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.K?1:3;a.o.G&&(d.noiba=1);a.o.M&&(d.utpsa=1);a.o.L&&(d.autoplay="1");a.o.o&&jc(d,a.o.o)}e=oQ(b);null===e?d.url_encoded_third_party_media="url="+(0,window.encodeURIComponent)(b)+"&type="+(0,window.encodeURIComponent)(null===
c?"":c):d.videoId=e;!V.b()&&KL(IL(),41351017)&&(d.enabled_engage_types="3,4,5");a.A=!1;a.o&&a.o.g?(a.ia=d,a.b.preloadVideoByPlayerVars(a.ia)):a.b.cueVideoByPlayerVars(d);a.dispatchEvent("loaded")};
wR=function(a){a.O.ua(a.C,"tick",a.Pq);null!=a.C&&(a.C.stop(),a.C=null)};
xR=function(a){null!=a.ra&&ee(a.ra)};
yR=function(a){hd.call(this);this.sessionId=a||Ta();this.g=[]};
zR=function(a,b,c,d,e){lc.call(this,a);this.Ic=b;this.Sd=c;this.Gp=d;this.o=e};
AR=function(a,b){yR.call(this,b);this.o=a;this.sd=null;this.A=new Am(this);this.logger=null;this.A.P(xf(),"message",this.receive)};
BR=function(a){if(null==a||!w(a)||!sa(a,"ima://"))return null;a=a.substr(6);try{return $f(a)}catch(b){return null}};
gha=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://"+dg(e)};
CR=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};
DR=function(a,b){hd.call(this);this.A=a;this.o=b;this.b={};this.g=new Am(this);this.g.P(xf(),"message",this.B)};
FR=function(a,b,c,d){a.b.hasOwnProperty(b)||(c=new AR(b,c),a.g.P(c,a.A,function(a){a=new ER(a.type,a.Ic,a.Sd,a.Gp,a.getOrigin(),b);this.dispatchEvent(a)}),c.sd=d,c.connect(),a.b[b]=c)};
ER=function(a,b,c,d,e,f){zR.call(this,a,b,c,d,e);this.b=f};
HR=function(){var a=r("google.ima.gptProxyInstance",xf());if(null!=a)return a;Am.call(this);this.o=new DR("gpt",!0);H(this,this.o);this.P(this.o,"gpt",this.C);this.b=null;GR()||xf().top===xf()||(this.b=new DR("gpt",!1),H(this,this.b),this.P(this.b,"gpt",this.B))};
GR=function(){return!!r("googletag.cmd",xf())};
IR=function(){var a=r("googletag.console",xf());return null!=a?a:null};
JR=function(a,b,c,d,e,f,k,l,m,n,t,u,y,D){this.A=a;this.B=n;this.C=b;this.D=d;this.G=l;this.H=u;this.K=e;this.M=f;this.L=y;this.b=k;this.g=m;this.o=t;this.F=D};
hha=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 KR[n].apply(null,arguments)})};
NR=function(a,b){hd.call(this);this.g=new Am(this);this.G=!1;this.H=Ta();this.F=new yg;var c=this.H,d=(jfa()?"https:":"http:")+hha("//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=L("IFRAME",{src:d+"#"+c,style:"border:0; opacity:0; margin:0; padding:0; position:relative;"});Fm(this.g,c,"load",this.Wx);a.appendChild(c);
this.o=c;c=this.F.get("*");null==c&&(c=new AR(this.H,"*"),this.G&&(c.sd=Qf(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.P(this.D,"mouse",this.qy);this.g.P(this.D,"touch",this.Ny);null!=this.b&&(this.g.P(this.D,"displayContainer",this.ly),this.g.P(this.D,"videoDisplay",this.Ky),this.g.P(this.D,"preloadVideoDisplay",this.Cy),this.g.P(this.b,Wb(LR),this.Ud),this.g.P(this.b,MR,this.Ud));c=xf();d=r("google.ima.gptProxyInstance",c);null==d&&(d=new HR,
g.aa("google.ima.gptProxyInstance",d,c))};
OR=function(a,b){var c=ts(a.o),d=N(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)};
PR=function(a){a=a.playbackOptions;return new JR(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)};
QR=function(a,b,c,d,e){if(!(e||null!=a&&Pf(lf(a),a)))throw ZL(qR,null,"containerElement","element");this.C=a;var f=e=null!=b||null!=d,k=!1;V.g||(V.g||gM()||CA&&!jM(4)||oM())&&e||(dM()||oM()||(k=!0),f=!1);this.D=f;this.H=k||f&&null!=d;V.g?a=null:(e=L("DIV",{style:"position:absolute"}),a.insertBefore(e,a.firstChild),a=e);this.o=a;this.b=this.D||!this.o||V.g||!dM()?null:new rR(this.o,null,!0);a=null;this.D?b?a=new sQ(b):d&&(a=new uR(d)):this.b&&(a=new sQ(this.b.g));this.g=a;this.B=this.A=null;a=CA&&
!jM(4);e=fM()&&dM();this.b&&this.g&&this.o&&!this.D&&!oM()&&!a&&!e&&this.o&&(this.A=new rR(this.o,null,!0),this.B=new sQ(this.A.g));this.F=this.g?c||null:null;this.K=null!=this.F;DM(AM.getInstance(),8,{enabled:this.D,yt:null!=d,customClick:null!=this.F});null===this.o?(b=this.C,V.B=b):this.D&&b&&!ha(b.getBoundingClientRect)&&(b=this.C,V.B=b);this.G=null==this.o||V.g?null:new NR(this.o,this)};
RR=function(a){return a.K&&a.F?a.F:null!=a.b?a.b.o:null};
TR=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(D){}e=f.join()}else e=""}c.push(d,e);if(null!=a){for(u=0;u<SR.length-1;++u)c.push(Wg(a,SR[u])||"");u=Wg(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<SR.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()};
UR=function(){hd.call(this);this.currentTime=0};
VR=function(a){UR.call(this);this.currentTime=a.currentTime;if(!("currentTime"in a)||(0,window.isNaN)(a.currentTime))throw ZL(qR,null,"content","currentTime");this.g=a;this.b=new be(250);this.o=new Am(this);Cm(this.o,this.b,"tick",this.A,this)};
XR=function(a,b){hd.call(this);this.b=a;this.C=!!b;this.A=WR(this);if(!this.A){var c=vf&&!yc("7")?"readystatechange":"load";this.g=Rc(this.b,c,this.B,!1,this);this.o=window.setInterval(x(this.B,this),100)}};
YR=function(a){a.o&&(window.clearInterval(a.o),a.o=null)};
WR=function(a){var b=!1;try{if(a.C||!vf||yc("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};
ZR=function(){hd.call(this);this.A=!1;this.impressionUrls=[]};
$R=function(a,b,c){lc.call(this,a);this.o=b||null;this.b=c||null};
aS=function(a,b){this.G=a;this.F=N(b,function(a){return a.clone()});
this.D="";this.g=null;this.o=this.B=0;this.A=!0;this.C=[];this.b=[]};
bS=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||[]};
cS=function(a){a.D="";a.g=null;a.B=0;a.o=0;a.A=!0;a.C=[];a.b=[]};
dS=function(){ZR.call(this);this.F=[];this.C=!1;this.o="not_loaded";this.g=null;this.B=0;this.b=null;this.G=new kf};
eS=function(a){var b=["googletag","googletag.cmd"];return bb(a,function(a){return Qk(b,function(b){return null!==r(b,a)})})||null};
fS=function(a){return a.A?N(a.F,function(a){return a.clone()}):[]};
iha=function(a){a=fS(a);return null!=a?N(a,function(a){return a.F}):void 0};
gS=function(a,b,c){var d=0,e=0;null!=b&&(b=new M(b.b),d=Number(b.b.get("pod")||0),e=Number(b.b.get("ppos")||0));if(null!=a.setVideoSession)try{a.setVideoSession(BM.b,d,e,c)}catch(f){}};
jha=function(a,b){var c=hS(a);if(null!==c){gS(c,b,!0);try{c.refreshAllSlots()}catch(d){}}};
jS=function(a,b,c){a=iS(a);if(null!=a)try{a.setVideoContent(b,c)}catch(d){}};
kS=function(a,b){a.D=b;jS(a,"","");var c=hS(a);null===c||gS(c,null,!1)};
hS=function(a){null==a.b&&lS(a);return null!=a.b&&null!=a.b.googletag&&null!=a.b.googletag.companionAds?a.b.googletag.companionAds():null};
iS=function(a){null==a.b&&lS(a);return null!=a.b&&null!=a.b.googletag&&null!=a.b.googletag.pubads?a.b.googletag.pubads():null};
mS=function(a){a.g&&(a.g.stop(),a.g.ua("tick",a.kr,!1,a),a.g.dispose(),a.g=null)};
qS=function(a){if("retrieved"!=a.o&&"not_available"!=a.o&&null!==hS(a)){var b;var c=hS(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=nS(a))||(b=oS(a)&&"not_available"==a.o);if(b){if(!a.H&&oS(a)){var d;try{if(null==a.b)d=[];else{var e=a.b.googleGetCompanionAdSlots();d=N(e,a.dF,a)}}catch(f){d=
[]}a.F=d;a.H=!0}a.A=!0;mS(a);nS(a)?a.dispatchEvent(new $R("companions_success")):pS(a)}else a.g||(a.B=E()+5E3,a.g=new be(100),a.g.P("tick",a.kr,!1,a),a.g.start())};
nS=function(a){return oS(a)&&"retrieved"==a.o};
oS=function(a){a.C||(lS(a),a.C=null!=a.b&&null!=a.b.googleGetCompanionAdSlots);return a.C};
lS=function(a){var b=Zf(a.G);try{a.b=eS([b,b.top])}catch(c){a.b=null}};
pS=function(a){a.dispatchEvent(new $R("companion_initialization_failed",Error("Partial or full service initialization failure.")))};
kha=function(a,b,c){var d=new XR(b,!0);d.A?rS(a,c,b):ad(d,"ifload",pa(function(a){rS(this,c,a)},b),!1,a)};
rS=function(a,b,c){a.dispatchEvent(new $R("companion_slot_init",null,b));var d=c;"IFRAME"==c.tagName&&(d=(c.contentDocument||c.contentWindow.document).body);null!=d&&Rc(d,"click",x(a.vB,a,b),!1,a)};
sS=function(a,b){lc.call(this,a);this.b=b};
tS=function(a){lc.call(this,a)};
uS=function(){};
wS=function(a,b){if(null==a||0>=a.width||0>=a.height)throw ZL(qR,null,"ad slot size",a.toString());this.g=a;this.b=null!=b?b:new uS;this.B=vS(lha,this.b.o)?this.b.o:"All";this.A=vS(mha,this.b.creativeType)?this.b.creativeType:"All";this.D=vS(nha,this.b.A)?this.b.A:"SelectExactMatch";this.F=vS(oha,this.b.g)?this.b.g:"DisallowResize";this.o=null!=this.b.B?this.b.B:[];this.C=ga(this.b.b)&&0<this.b.b&&100>=this.b.b?this.b.b:90};
zS=function(a,b){var c=[];F(b,function(a){!B(C(a.b.A))&&((0,window.isNaN)(a.b.b)||(0,window.isNaN)(xS(a))||xS(a)==a.b.b)&&yS(this,a)?c.push(a):(a=pha(this,a),null!=a&&!B(C(a.b.A))&&c.push(a))},a);
return c};
yS=function(a,b){var c;if(c="Flash"!=b.wc()||AS){if(c="All"==a.B||a.B==b.b.fa)c=b.wc(),c=null!=c?"All"==a.A||a.A==c:!0;c&&(c=b.o,c=gb(a.o)?!0:null!=c?0<=eb(a.o,c):!1)}if(c){var d=b.b.Hc();if("IgnoreSize"==a.D||hf(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:BS(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};
pha=function(a,b){var c=b.g;return null!=c?bb(c,function(a){return yS(this,a)},a):null};
BS=function(a,b){var c=Math.min(b.width/a.width,b.height/a.height);return new gf(c*a.width,c*a.height)};
vS=function(a,b){return null!=b&&Ub(a,b)};
CS=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)};
qha=function(a){var b={};F(a.split(","),function(a){var d=a.split("=");2==d.length&&(a=Oa(d[0]),d=Oa(d[1]),0<a.length&&(b[a]=d))});
return b};
ES=function(a,b){if(a[b])return DS(a[b]);var c=b.toLowerCase(),d;for(d in a)if(d&&d.toLowerCase()==c)return DS(a[d]);return!1};
DS=function(a){return a?-1!=a.toString().search(/(?:true|1)/i):!1};
FS=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=Yb(b,"thumbnails","default","url"));if(b=a.statistics)this.videoCount=b.videoCount;if(a=a.brandingSettings)this.g=Yb(a,"image","bannerImageUrl")}};
GS=function(){this.b=new yg};
HS=function(a,b){this.o=a;this.b=b};
IS=function(a,b){HS.call(this,"progress",a);this.g=b};
KS=function(a,b){F(b,function(a){var b=a.Fb().toLowerCase(),e=JS(this,b);e.push(a);this.b.set(b,e)},a)};
LS=function(a,b,c,d){b=b.toLowerCase();var e=JS(a,b);null!=d?(d=new IS(c,d),null!=d?e.push(d):e.push(new HS(b,c))):e.push(new HS(b,c));a.b.set(b,e)};
JS=function(a,b){return null!=b?a.b.get(b.toLowerCase())||[]:[]};
rha=function(a,b){var c=JS(a,"progress");F(c,function(a){MS(a.g,b)});
Bb(c,function(a,b){return NS(a.g)-NS(b.g)})};
OS=function(a,b){return N(JS(a,b)||[],function(a){return a.b})};
PS=function(a,b){this.b=null!=a?a:new GS;this.H=null!=b?b:[]};
sha=function(a,b){var c=b.b;F(c.Va(),function(a){KS(this.b,c.get(a))},a)};
QS=function(a,b){var c=OS(a.b,b);return null!=c?c:[]};
tha=function(a){return'<div class="text-container '+(a.image?"pyv":"")+'"><div class="text-inner-container">'+(a.image?(a.Kb?'<a class="text-image-link" target="_blank" href="'+Y(a.Kb)+'">':'<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.Kb?'<a class="text-title" href="'+Y(a.Kb)+'" target="_blank" dir='+Y(a.dir)+">"+Y(a.title)+"</a>":"")+'<div class="text-description" dir='+
Y(a.dir)+">"+Y(a.text)+"</div>"+(a.Ts&&a.Kb?'<a target="_blank" href="'+Y(a.Kb)+'" class="text-ad-channel">'+Y(a.Ts)+"</a>":"")+"</div></div>"};
uha=function(a){return'<div class="flash-container '+(a.Kf?"click-capture":"")+'">'+(a.Kb?'<a class="click-layer" target="_blank" href="'+Y(a.Kb)+'"></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='+
aR(a.Kb)+'"><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='+aR(a.Kb)+'"></object></div>'};
vha=function(a){return'<div class="image-container" id="'+Y(a.id)+'" style="width:'+Y(a.width)+";height:"+Y(a.height)+';">'+(a.Kb?'<a target="_blank" href="'+Y(a.Kb)+'">':'<a target="_blank">')+'<img src="'+Y(a.url)+'" border="0"></a></div>'};
wha=function(a){return'<div class="image-container" id="'+Y(a.id)+'">'+(a.Kb?'<a target="_blank" href="'+Y(a.Kb)+'">':'<a target="_blank">')+'<img src="'+Y(a.url)+'" border="0" style="max-width:100%;max-height:100%;"></a></div>'};
RS=function(a){return'<div class="image-container" id="'+Y(a.id)+'" style="width:'+Y(a.width)+";height:"+Y(a.height)+';"></div>'};
SS=function(){this.K=-1;this.D={};this.na="";this.eg=new GS};
TS=function(a,b,c){a.na=b;a.D=c};
US=function(a,b){var c=[],d=a.ca();F(d,function(a){a=JS(a.eg,b)||[];c=qb(a,c)},a);
return c};
VS=function(a,b,c){var d=c||!1;return bb(b.B,function(a){var b=a.b==this.b;return a instanceof this.constructor&&(d||b)},a)};
WS=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.Le=e;this.Rd=f;this.C=k;this.B=l;this.g=PL(C(m));this.o=n};
XS=function(a,b,c,d,e,f){SS.call(this);this.K=a;this.o=b;this.g=c;this.O=rb(d);this.ka=null;this.A=e;this.oa=rb(f);vb(this.oa,null,function(a){return a.G})};
YS=function(a){var b=new yg,c=a.ca();F(c,function(a){if(a instanceof XS){var c=a.g;F(c.Va(),function(a){b.set(a,qb(c.get(a),b.get(a)||[]))},this)}},a);
return b};
ZS=function(a,b){var c=bb(a.O,function(a){return!B(C(a.b))&&-1!=a.b.indexOf(b)&&("VPAID"==a.o||"surveys"==a.o)});
return null!=c?c.g:null};
$S=function(a,b,c){G.call(this);this.g=a;this.o=b;this.C=c;this.B=0;this.b=new Am(this);xha(this)};
xha=function(a){a.C.forEach(function(a,c){this.b.P(c,"mousedown",this.D);this.b.P(c,"mouseup",this.G)},a);
a.b.P(a.o,"mouseover",a.F)};
aT=function(a,b){a[b]||(a[b]=[]);return a[b]};
bT=function(a,b){return a[b]?a[b].length:0};
cT=function(a,b,c){this.type=a;this.label=b;this.Ma=c};
dT=function(a,b){return new cT(a,1,b)};
eT=function(a){return new cT("m",3,a)};
fT=function(a){return dT("m",a)};
gT=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)?gT(a,b,void 0,d):a:c};
iT=function(){var a=window.event||hT;if(!a)return null;var b;(b=a.which?1<<yha[a.which-1]:a.button)&&a.shiftKey&&(b|=8);b&&a.altKey&&(b|=16);b&&a.ctrlKey&&(b|=32);return b};
jT=function(a,b,c){G.call(this);this.g=a;this.B=b;this.H=c;this.A=0;this.b={};this.o=new Am(this);H(this,this.o);zha(this)};
zha=function(a){F(a.H,function(a){this.o.P(a.element,"mousedown",this.D,!0);this.o.P(a.element,"mouseup",pa(this.G,a),!0)},a);
a.o.P(a.B,"mouseenter",a.F)};
Aha=function(a,b){Ob(a.b,function(a,d){b=Zg(b,d,a)});
return b};
lT=function(a,b,c,d,e){SS.call(this);B(C(a))&&(a=Ta()+"_ima");this.xa=C(a);this.Ba=b;this.fa=c;this.da=d;this.A=e;this.L=[];null!=this.da?this.jb=kT[this.da]||"Other":this.jb=null};
mT=function(a,b,c,d,e){lT.call(this,a,b,c,d,e);this.ia=this.o=null;this.Da=-2;this.g=null;this.ga=this.S=v;this.ba=[];this.Ja=[];this.B=!1};
pT=function(a,b){a.g=b;null!=a.o&&null!=b&&(nT(a,a.S),oT(a,a.ga))};
nT=function(a,b){null!=a.g&&null!=a.o&&F(a.ba,function(a){this.g.ua(a,"click",this.S);!B(C(this.Pd()))&&this.g.P(a,"click",b)},a);
a.S=b};
oT=function(a,b){null!=a.g&&null!=a.o&&(a.g.ua(a.o,"creativeview",a.ga),a.g.P(a.o,"creativeview",b));a.ga=b};
qT=function(a,b){var c=a.xa,d={};d.style="cursor:default;position:relative;z-index:1001;height:"+a.getHeight()+"px;";"Text"!=a.wc()&&(d.style+="width:"+a.ib()+"px");B(C(c))||(d.id=c);return L("DIV",d,b)};
rT=function(a){if(!a.B)return null;var b=US(a,"start");sb(b,US(a,"creativeview"));if(null!=b&&!gb(b)){var c=[];F(b,function(a){if(!B(C(a))){var b;b=nf().by("IFRAME",{frameborder:0,style:"border:0;vertical-align:bottom;",src:Bha});is(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",PL(a.b));b.setAttribute("id",f);this.Ja.push(f);lb(c,b)}},a);
return c}return null};
Cha=function(a,b){if(null!=a.o)if(IL().b.aa("cleanup_text_overlay_spam_signals")){var c=[];F(a.ba,function(a){c.push({element:a,wx:this.Rk(a)})},a);
new jT(b,a.o,c)}else c=new yg,F(a.ba,function(a){c.set(a,this.Rk(a))},a),new $S(b,a.o,c)};
Dha=function(a){var b=[],c=a.ca();F(c,function(a){b=qb(b,a.L)},a);
return b};
sT=function(a,b,c){var d=c||!1;return bb(b.B,function(a){var b=a.b==this.b;return this instanceof a.constructor&&(d||b)},a)};
tT=function(a,b){mT.call(this,a,b,"Static","text","")};
zT=function(a,b,c){var d={};a=new uT(a,p(b)?b:null,p(c)?c:null);vT(d,a);b=a.error;d.ERRORCODE=1E3>b.g?b.g:900;wT(d);xT(d,a);yT(d,a);b=a.error.vb();d.ERROR_MSG=a.error.b;d.IMA_ERROR=b;d.INTERNAL_ID="0";a=-1!=eb(Eha,b);d.BLOCKING_ERROR=a?"1":"0";d.YT_ERROR_CODE=3;return d};
AT=function(a,b){var c={},d=new uT(null,a,p(b)?b:null);vT(c,d);wT(c);xT(c,d);yT(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.ff&&null!=e.ff.video_start_delay)e=e.ff.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)}}Fha(c,d);Gha(c,d);d=a.Ba;for(e=a;null!=e;)d=e.ra+","+d,e=e.g;c.RWT=d;return c};
uT=function(a,b,c){this.error=a;this.g=b;this.b=c};
BT=function(a,b){null!=b&&(a.VIEWABILITY=b)};
Hha=function(){var a=Aga();if(null!=a)return a.moatInit};
CT=function(a,b,c,d,e){d&&!V.b()||!Iha(c,b)?a[c]="":(d=e(),null!=d&&(a[c]=d,UL.hq(b)&&(a[c]=(0,window.encodeURIComponent)(a[c]))))};
Iha=function(a,b){return Rh(Jha[a],function(a){return null!=b.match(a)})};
vT=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():""}}};
Gha=function(a,b){a.AD_CPN={toString:function(){return b.b.Pf()}};
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.Od()?b.b.Od().width.toString():""}};
a.P_H={toString:function(){return null!=b.b&&null!=b.b.Od()?b.b.Od().height.toString():""}}};
wT=function(a){a.SDKV=zM(BM);a.EL="adunit";a.CONN="0";a.WT={toString:function(){return Date.now()}}};
xT=function(a,b){if(null!=b.g&&null!=b.g.o&&null!=b.g.o.Eb&&V.b()){var c=b.g.o.Eb;F(Kha,function(b){b in c&&(a[b]=c[b])})}};
yT=function(a,b){if(null!=b.g){a.AD_ID=Lha(b.g);a.AD_SYS=Mha(b.g);var c=DT(b.g);a.AQI=null!=c?c:"";a.AD_V={toString:function(){if(null!=b.b){var a=oQ(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=ET(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"}};
Fha=function(a,b){null!=b.g&&(a.AD_LEN={toString:function(){var a=FT(b.g);return 0>a?"-1":Math.round(1E3*a).toString()}},a.VOL={toString:function(){return null!=b.b?b.b.cg()?"0":Math.round(100*b.b.ie()).toString():""}})};
IT=function(a,b,c){var d=null,e=c+b;F(a.B,function(f){if(ES(f.D,"rm")){var k=AT(a);GT(a)&&(k.FILLED_OPPORTUNITY=0);VL(a.K,k);(k=a.o)&&k.afcRmFallback&&(d=f)}else{if(k=f instanceof mT)0==c&&0==b||f instanceof tT?k=!0:(k=f.Hc(),k=k.width<=b&&k.height<=c);if(k&&(k=0==c&&0==b?0:c-f.Hc().height+b-f.Hc().width,"Flash"!=f.wc()||AS))if(null==d)d=f,e=k;else if(k==e&&f.b<d.b||k<e)d=f,e=k}});
HT(a,d)};
JT=function(a){var b=null;F(a.B,function(a){a instanceof XS&&(null===b||a.b<b.b)&&(b=a)});
HT(a,b)};
KT=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.L=!0;this.o=-1;this.b=null;this.O=this.A=0;this.S=d;this.logger=null};
PT=function(a,b,c){var d=[],e=x(function(a){this.g()?LT(this,function(a){d.push(a);e(null)},function(a){301==a.vb()?c(YL(MT)):e(a)}):0<d.length?b(d):(null==a&&(a=YL(NT)),1012==a.vb()&&(a=YL(OT)),c(a))},a);
e(null)};
LT=function(a,b,c){null!=a.b?Nha(a,b,c):a.g()?Oha(a,b,x(function(a){!this.g()||!V.b()&&301==a.vb()?c(a):LT(this,b,c)},a)):c(new vL("adLoadError","The ad source contains no more ads.",1005))};
Pha=function(a,b){a.D=b;a.ads=a.K(a.C,a.H);a.o=-1};
Qha=function(a,b,c,d){var e=a.F.clone();e.g="";e.b=b.Ta;QT(a,b,e,c,d)};
QT=function(a,b,c,d,e){var f=b.getExtension("LocalRedirect");null!=f&&(f=f.o,null!=f&&(c.g=f));a.S.fetch(c,x(function(a){a instanceof KT?(Rha(a,b,this.D&&b.Ia,b.Ja),d(a)):a instanceof RT?e(new vL("adLoadError","Ad source cannot contain playlist response.",2)):e(new vL("adLoadError","Unknown ad source.",2))},a),e)};
Sha=function(a){var b=0;for(a=a.g;null!=a;)a=a.g,b++;return b};
Nha=function(a,b,c){a.b.g()?LT(a.b,x(function(a){this.B(a,b,x(function(a){this.g()?LT(this,b,c):c(a)},this))},a),x(function(a){ST(this.ads[this.o],a);
this.b=null;V.b()||301!=a.vb()?this.g()?LT(this,b,c):c(a):c(a)},a)):(0==a.b.A&&ST(a.ads[a.o],YL(TT)),a.b=null,LT(a,b,c))};
ST=function(a,b){if(b.o){1012==b.vb()&&(b=YL(OT));var c=zT(b,a);VL(a.Oa,c)}};
Oha=function(a,b,c){a.o++;var d=a.ads[a.o];d.ca||d.ba?d.ba?Qha(a,d,x(function(a){this.b=a;LT(this,b,c)},a),x(function(a){a=UT(a);
ST(d,a);c(a)},a)):4<=Sha(d)?(a=YL(Tha,null,"4"),ST(d,a),c(a)):a.L?a.G(d,x(function(a){this.b=a;
LT(this,b,c)},a),x(function(a){a=UT(a);
ST(d,a);c(a)},a)):c(YL(Uha)):a.B(d,b,c)};
UT=function(a){switch(a.vb()){case 300:case 301:case 302:case 303:case 200:case 1012:break;default:a=YL(TT)}return a};
Rha=function(a,b,c,d){F(a.ads,function(a){a.g=b});
Pha(a,c);a.L=d};
VT=function(a){PS.call(this);this.g=(0,window.isNaN)(a)?-1:a};
WT=function(a,b,c,d){KT.call(this,[],a,b,c);this.M=d};
XT=function(a){return JQ('<div class="iv-endcap-background"><div class="iv-endcap-slot"><div class="iv-endcap-card"><a class="iv-endcap-image" href="'+YQ(gR(a.target))+'" target="_blank"><img src="'+YQ(hR(a.image))+'"></a><div class="iv-endcap-text" dir='+ZQ(a.dir)+'><a href="'+YQ(gR(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="'+YQ(gR(a.target))+'" target="_blank" dir='+
ZQ(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>')};
Vha=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">'+JQ("Ad")+"</span>";a.qo&&a.Kb&&(b="Shop products from "+Y(a.qo),d+='<a href="'+YQ(gR(a.Kb))+'" 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.$d)+'</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=JQ('<div class="iv-cards-slider-unit"><a href="'+YQ(gR(k.target))+'" target="_blank"><div class="iv-cards-slider-image"><span class="iv-cards-image-helper"></span><img src="'+YQ(hR(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.YE?'<button class="iv-cards-slider-button iv-cards-slider-prev" type="button" onclick="'+
(c.Hk?"/*"+c.Hk+"*/":"")+';return false;"><span class="iv-cards-slider-prev-icon yt-uix-tooltip yt-sprite" data-tooltip-text="'+YQ(a.Or)+'" title="'+YQ(a.Or)+'" /></button><button class="iv-cards-slider-button iv-cards-slider-next" type="button" onclick="'+(c.Hk?"/*"+c.Hk+"*/":"")+';return false;"><span class="iv-cards-slider-next-icon yt-uix-tooltip yt-sprite" data-tooltip-text="'+YQ(a.xq)+'" title="'+YQ(a.xq)+'"></span></button>':"")+"</div></div>";return JQ(d)};
Wha=function(a){return JQ('<div class="iv-website-companion">'+(a.xo?'<img class="iv-website-companion-banner" src="'+YQ(hR(a.xo))+'">':"")+'<div class="iv-website-companion-block"><div class="iv-website-companion-icon"><img src="'+YQ(hR(a.oz))+'"></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">'+JQ("Ad")+'</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="'+YQ(gR(a.target))+'" target="_blank">'+Y(a.Ww)+"</a></div></div>")};
ZT=function(a){M.call(this,a);this.C=new yg;a=this.o;var b=a.indexOf(";"),c=null;0<=b?(ch(this,a.substring(0,b)),c=a.substring(b+1)):ch(this,a);Xha(this,c)};
Xha=function(a,b){B(C(b))||F(b.split(";"),function(a){var b=a.indexOf("=");if(0<b){var e=va(a.substring(0,b));a=va(a.substring(b+1));b=this.C.get(e);null!=b?fb(b,a)||b.push(a):b=[C(a)];this.C.set(e,b)}},a)};
Yha=function(a){if(B(C("ord")))return null;a=a.C.get("ord");return null!=a?a:null};
$T=function(a,b,c){B(C(b))||(c=N(c,C),a.C.set(b,c))};
aU=function(a,b){var c=[C(b)];sb(c,Zha(a));return c.join(";")};
Zha=function(a){var b=Yha(a);null!=b?B(C("ord"))||a.C.remove("ord"):b=[C(E())];var c=[];F(a.C.Va(),function(a){F(this.C.get(a),function(b){sb(c,a+"="+b)})},a);
sb(c,"ord="+b[0]);$T(a,"ord",b);return c};
cU=function(a){if(null==a)return!1;a=new M(a);var b=a.o;return ta(a.g,"googleads.g.doubleclick.net")&&bU("/pagead/(live/)?ads",b)};
dU=function(a){a=a.b;return null!=a?"bid.g.doubleclick.net"==(new M(a)).g:!1};
eU=function(a){if(null==a)return!1;var b=new ZT(a);a=b.g;b=aU(b,b.o);return!ta(a,".g.doubleclick.net")&&ta(a,"doubleclick.net")&&bU("/(ad|pfad)[x|i|j]?/",b)};
fU=function(a){if(null==a)return!1;a=new M(a);var b=a.o;return ta(a.g,"doubleclick.net")&&bU("/gampad/(live/)?ads",b)};
$ha=function(a){return cU(a.b)||eU(a.b)||fU(a.b)||dU(a)};
aia=function(a){a=a.b;if(null==a)return null;a=(new M(a)).b;return null!=a.get("ms")?C(a.get("ms")):null};
bU=function(a,b){return B(C(b))?!1:(new RegExp(a)).test(b)};
gU=function(a){return YL(bia,null,a.parentNode.nodeName,a.nodeName)};
hU=function(a){return YL(cia,null,a.parentNode.nodeName,a.nodeName)};
iU=function(a,b){return null!=a?ke(Kf(a),function(a){return a.nodeName==b}):[]};
jU=function(a,b){var c=a.getAttribute(b);return null!=c?c.toLowerCase():null};
kU=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=Oa(c);return b?Ga(c):c};
lU=function(a,b,c,d){null!=a&&F(Kf(a),function(a){if(a.nodeName==b)c.call(d,a);else throw gU(a);})};
mU=function(a){return B(C(a))?window.NaN:Ua(C(a))};
nU=function(a,b){if(null!=a){var c=a.split(":");if(3==c.length)return c=new qr(0,0,0,Ua(c[0]),Ua(c[1]),Ua(c[2])),60*(60*(24*c.b+c.g)+c.o)+c.A}return null!=b?b:-1};
oU=function(a,b){if(!B(C(a)))switch(a.toLowerCase()){case "true":case "1":return!0;case "false":case "0":return!1}return null!=b?b:!1};
rU=function(a,b){if(b)return a;var c;c=null!=a&&/(doubleclick.net|googleadservices.com)/.test(a)?-1!=a.indexOf("/pagead/adview")?pU(a)?0:2:-1!=a.indexOf("/pcs/view")?dia(a)?0:2:-1!=a.indexOf("/pagead/conversion")?pU(a)?1:2:2:2;0==c||1==c?(c=qU(a,"&sdkv="+zM(BM)),BM.ba&&(c=qU(c,"&ssss=gima"))):c=a;return c};
qU=function(a,b){var c=a.indexOf("&adurl=");return-1!=c?Ma(a.substr(0,c),b,a.substr(c,a.length)):a+b};
pU=function(a){return Qk(eia,function(b){return Vg(a||"",b)})};
dia=function(a){return Qk(fia,function(b){return Vg(a||"",b)})};
sU=function(a,b){this.b=a;this.g=b};
NS=function(a){return a.g?-1:a.b};
MS=function(a,b){a.g&&(a.g=!1,a.b=a.b*b/100)};
vU=function(a,b,c){var d=new GS;lU(a,"Tracking",function(a){var f=jU(a,"event"),k=rU(kU(a),b);tU(k)&&null!=f&&(null!=c&&(k=c(f,k)),"progress"==f?(a=jU(a,"offset"),a=uU(a),null!=a&&LS(d,f,k,a)):LS(d,f,k))});
return d};
gia=function(a){if(B(C(a)))return null;a=new M(a);if("thismessage"!=a.A||"extensions"!=a.g)return null;a=a.o;if(!sa(a,"/"))return null;a=a.substr(1);return B(C(a))?null:a};
uU=function(a){if(B(C(a)))return null;var b=null;0<a.indexOf("%")?(a=Number(a.substr(0,a.indexOf("%"))),!(0,window.isNaN)(a)&&0<=a&&(b=new sU(a,!0))):(a=nU(a),0<=a&&(b=new sU(a,!1)));return b};
tU=function(a){var b=!0;if(B(C(a)))b=!1;else try{new M(a)}catch(c){b=!1}return b};
wU=function(a,b){PS.call(this);this.g=a;this.o=b};
xU=function(){};
yU=function(a,b){PS.call(this,b);this.g=a};
zU=function(a){PS.call(this);this.g=a};
hia=function(){this.g=this.o=1;this.b=this.A=0;this.B=1};
AU=function(a,b,c,d){this.b=a;this.g=b;this.o=c;this.A=null!=d?d:!1};
xS=function(a){a=a.b.ub().b;return null!=a?a.b:window.NaN};
BU=function(a,b){a.b.G=b;F(a.g,function(a){BU(a,b)},a)};
CU=function(a,b){mT.call(this,"1",iia,"Html",null,"dummy");this.C=0;this.va=a.length;pT(this,new Am(this));this.Oa=jia(a,b);this.Na=qf("iv-cards-slider-list",this.Oa);if(this.M=qf("iv-cards-slider-prev",this.Oa))this.g.P(this.M,"click",this.Ia),Fs(this.M,!1);(this.ea=qf("iv-cards-slider-next",this.Oa))&&this.g.P(this.ea,"click",this.Ha)};
jia=function(a,b){var c=N(a,function(a){var b=DU(a),c=EU(b);a=a.Cg(0);return{headline:FU(b),description:GU(b),image:HU(IU(b)),action:JU(c),target:KU(a),merchant:LU(c)}}),d=3<a.length;
return DQ(Vha,{cards:c,qo:c[0].merchant,xq:JQ("Next"),Or:JQ("Previous"),$d:nR(),Kb:b,YE:d})};
MU=function(a){a.Na.style.left=125*-a.C+"px";a.M&&Fs(a.M,0<a.C);a.ea&&Fs(a.ea,a.C<a.va-3)};
QU=function(a){mT.call(this,"1",kia,"Html",null,"website_actions_companion");pT(this,new Am(this));var b=a.zi(),c=b&&b.g(),d=b&&b.o();a=a.Cg(0);this.C=DQ(Wha,{headline:b&&NU(b)||"",oz:c&&HU(c)||"",xo:d&&HU(d)||"",Ww:a&&OU(a)||"",descriptionText:b&&PU(b)||"",target:a&&KU(a)||""})};
SU=function(a,b,c,d,e,f,k,l,m,n,t,u,y,D,A,Q){this.na=a;this.ga=b;this.O=c;this.Na=d;this.oa=(0,window.isNaN)(k)||""==k||0==k?-1:k;this.Oa=l?rb(l):[];this.K=m?rb(m):[];this.B=n?rb(n):[];this.ea=[];this.G=[];this.F=null;this.S=[];this.jb=!0;this.g=this.b=null;this.D=new yg(u);this.ba=null!=Q;this.Ia=(this.ca=null!=y)?D||!1:!1;this.Ja=this.iA?A||!1:!1;this.Sa=C(y);this.Ta=C(Q);this.Ha=this.o=null;this.A=new hia;this.fa=new gf(0,0);this.L=String(Math.floor(1E9*Math.random()));this.$=this.da=this.C=null;
this.Ba=E();this.Da=this.ra=0;this.ka=this.ia=!1;this.H=[];this.M=null;this.va=!1;F(this.B,function(a){a.G=this},this);
RU(this,t)};
ET=function(a){var b=a.getExtension("AdFormat");if(null!=b&&ta(b.g+"_"+b.o+"_"+b.A,"2_4"))return b.g+"_"+b.o+"_"+b.A;b=TU(a);b=UU(a,VU)?"14":ES(b,"hideMaster")||ES(b,"blockAllAds")?"3":a.wb()?WU(a)?"2_3":a.isSkippable()?XU(a)?"2_1":"2_2":"2":"1";return YU(a)+"_"+b};
YU=function(a){return GT(a)?4:UU(a,VU)?14:UU(a,lia)?15:ZU(a,mia)||ZU(a,$U)?1:aV(a)?2:0};
bV=function(a){return null!=a.ga?a.ga:""};
cV=function(a){return null!=a.g?qb(cV(a.g),a.Oa):a.Oa};
dV=function(a){return null!=a.g?qb(dV(a.g),a.K):a.K};
eV=function(a){return null!=a.g?qb(a.G,eV(a.g)):a.G};
TU=function(a){return null!=a.b?a.b.D:{}};
nia=function(a){var b={};F(a.B,function(a){a=a.D;for(var d in a)b[d]=a[d]});
return b};
fV=function(a){return null!=a.b?a.b.na:""};
gV=function(a,b){var c=[];F(a.D.Pa(),function(a){sb(c,QS(a,b))});
return c};
HT=function(a,b){a.b=b;a.fa=null!=a.b&&a.b instanceof mT?a.b.Hc():new gf(0,0);if(V.b()&&oia(a)&&gb(eV(a)))pia(a,a.H);else{var c=IL().b;V.b()&&gb(eV(a))&&c.aa("enable_website_actions_info_cards")&&c.aa("enable_website_actions_info_cards_companion")&&hV(a,a.H)}};
iV=function(a){return null!=a.na?a.na:""};
kV=function(a){if(null==a.g||jV(a.g.O))return[];var b=[iV(a.g)];sb(b,kV(a.g));return b};
Lha=function(a){var b=kV(a).reverse();b.push(iV(a));return b};
lV=function(a){if(null==a.g||jV(a.g.O))return[];var b=[bV(a.g)];sb(b,lV(a.g));return b};
DT=function(a){if(!V.b())return null;if(null!=a.g){var b=DT(a.g);if(null!=b)return b}a=a.getExtension("viral");return null!=a?a.g:null};
Mha=function(a){var b=lV(a).reverse();b.push(bV(a));return b};
jV=function(a){return"YT:ADSENSE"==a||"YT:DOUBLECLICK"==a};
mV=function(a){if(null==a.g)return[a.O];var b=mV(a.g);b.push(a.O);jV(b[0])&&b.shift();return b};
nV=function(a){a=a.getExtension("waterfall");return null!=a&&-1!=a.g?a.g:-1};
oV=function(a){if(-1!=a.oa)return a.oa;a=a.getExtension("pod");return null!=a&&-1!=a.g?a.g:-1};
pV=function(a){a.va||(a.va=!0,a.M.O++,null!=a.g&&pV(a.g))};
qV=function(a){return a.M instanceof WT&&a.M.g()?a.M:null!=a.g?qV(a.g):null};
rV=function(a,b,c,d){a=eV(a);return zS(new wS(new gf(b,c),d),a)};
sV=function(a){var b=a.o.Zf,c=a.o.Yf;if(!b||!c)if(a=a.o.b?Wg(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 gf(b,c)};
qia=function(a,b,c){var d=new tV;d.b.type=4;var e=a.getExtension("AdSense"),f=new uV;f.Af.hide_in_drawer=!0;f.Af.show_in_endcap=!0;d.nf=function(){return f};
var k=new vV;k.b.headline=b;var l=new wV;l.b.image_url=c;k.g=function(){return l};
k.b.description=e&&e.g||"";d.zi=function(){return k};
var m=[new xV];m[0].Ue.target=yV(a)||"";b=JQ("Visit us");m[0].setTitle(b);d.Cg=function(a){return m[a]};
d.yj=function(){return m.length};
a.S=[d]};
ria=function(a){var b=ke(a,function(a){return zV(a.nf())});
0==b.length&&0<a.length&&IL().b.aa("enable_ad_video_end_renderers")&&(b=a.slice(1,2));return b};
pia=function(a,b){var c=ke(b,function(a){return AV(a.nf())});
gb(c)&&(c=b);c=new CU(c,yV(a));c.G=a;c.B=!0;BV(a,new AU(c,[],null,!0))};
sia=function(a,b){var c=bb(eV(a),function(a){return"Image"==a.wc()}),c=c&&c.b.A||b.g,d=a.getExtension("AdSense"),d=d&&d.g,e=b.authorName,f=b.b,k=JQ("Visit us"),l=yV(a);
if(!d||!f||!l)return null;var m=new tV;m.b.type=4;var n=new uV;n.Af.hide_in_drawer=!0;n.Af.show_in_companion=!0;m.nf=function(){return n};
var t=new vV;t.b.headline=e;var u=new wV;u.b.image_url=f;t.g=function(){return u};
var y=new wV;y.b.image_url=c;t.o=function(){return y};
t.b.description=d;m.zi=function(){return t};
var D=[new xV];D[0].Ue.target=l;D[0].setTitle(k);m.Cg=function(a){return D[a]};
m.yj=function(){return D.length};
return[m]};
hV=function(a,b){var c=bb(b,function(a){return 4==a.Fb()&&AV(a.nf())});
c&&(c=new QU(c),c.G=a,c.B=!0,BV(a,new AU(c,[],null,!0)))};
tia=function(a){if(!a.o||UU(a,CV)&&!UU(a,["ADSENSE/ADX"]))return[];var b=sV(a);if(0>=b.width||0>=b.height)return[];var c=new uS;c.creativeType="All";c.o="All";c.A="SelectNearMatch";c.b=40;var d=rV(a,b.width,b.height,c);if(!gb(d))return d;c.g="ResizeSmaller";d=ke(eV(a),function(a){return a.b.fh()},a);
return zS(new wS(new gf(b.width,b.height),c),d)};
DV=function(a){if(gb(a.S))return!1;a=a.S[0].Fb();var b=IL().b;return b.aa("enable_ad_video_end_renderers")&&1==a||b.aa("enable_website_actions_info_cards_endcap")&&4==a};
uia=function(a){var b=null,c=0;F(tia(a),function(a){var e;e=sV(this);e=!a.b.fh()||a.ib()<=e.width&&a.getHeight()<=e.height?a.b.Hc():BS(a.b.Hc(),e);e=e.width*e.height;e>c&&(c=e,b=a)},a);
return b};
EV=function(a,b){return b||null==a.g?a.ea:qb(a.ea,EV(a.g))};
RU=function(a,b){a.ea=b?rb(b):[];F(a.ea,function(a){sb(this.G,rb(a.b))},a);
F(a.G,function(a){BU(a,this)},a);
V.b()&&a.wb()&&(a.G=ke(a.G,function(a){return 60>=a.getHeight()}))};
FV=function(a,b){return Rh(a.B,function(a){return a instanceof XS&&"linear"==b||a instanceof mT&&"nonlinear"==b?!0:!1})};
GV=function(a){return-1!=FT(a)&&0!=FT(a)&&7>=FT(a)};
HV=function(a){var b=a.b;return UU(a,CV)&&null!=b&&b instanceof mT&&(90<a.fa.height||null!=a.o&&a.o.Of)};
IV=function(a,b){if(null==b)return null;var c=b.getExtension("adx");return null!=c?c:IV(a,b.g)};
JV=function(a){var b=IV(a,a.g);if(null!=b){if("skippable"==b.g)return b.o;if("nonskippable"==b.g)return null}var b=null,c=new sU(5,!1),d=via(a);"implicit"==d&&(b=c);var e=a.b;null==b&&null!=e&&e instanceof XS&&(b=e.A);null!=b||"explicit"!=d||(b=c);return V.b()&&a.wb()&&null!=b?(0,window.isNaN)(a.o.B)?c:new sU(a.o.B,!1):b};
via=function(a){if(null!=bb(a.D.Pa(),function(a){return!gb(QS(a,"skip"))}))return"implicit";
var b=a.D.get("DFP");if(b instanceof yU)switch(b.g){case "InstreamSelect":return"implicit";case "Generic":return"explicit"}a=a.b;return V.b()&&null!=a&&(a=a.eg,null!=a&&!gb(JS(a,"skip")))?"explicit":"none"};
KV=function(a){if(null==a.o)return!1;var b=a.o.b;null!=b&&ta(b,"/PrefetchedAd")&&null!=a.g&&(b=a.g.D.get("LocalRedirect"),b=null!=b?b.ee():null);(a=cU(b)||fU(b)||eU(b))||(null!=b?(b=(new M(b)).g,a=ta(b,"viral.adsense.net")):a=!1);return a};
XU=function(a){if(null==a.ga||null==a.o)return!1;var b;(b=KV(a)||!1)&&!(b=UU(a,CV)&&!UU(a,["ADSENSE/ADX"]))&&(UU(a,$U)?(b=a.D.get("DFP"),b=null!=b?"InstreamSelect"==b.g:!1):b=!1);if(b||a.g&&a.g.ba&&KV(a.g))return!0;a=ZU(a,["ADSENSE/ADX"])||a.g&&aV(a);return V.b()&&!a};
yV=function(a){return null===a.b?null:a.b.Pd()};
LV=function(a){return null!==a.F?10:DV(a)?(a=IL().b.b("ad_video_end_renderer_duration_milliseconds"),(0,window.isNaN)(a)?5:Math.round(a/1E3)):0};
FT=function(a){return(null!=a.b?a.b.K:-1)+LV(a)};
MV=function(a){return null===a.b?null:a.b.Cl()};
NV=function(a){return null===a.b?null:a.b.Bl()};
GT=function(a){return null!=a.g&&GT(a.g)||UU(a,wia)};
WU=function(a){var b=MV(a);return UU(a,["402"])||w(b)&&null!==b.match("//s0.2mdn.net/instream/html5/survey/survey.html")};
OV=function(a){return UU(a,CV)&&XU(a)&&!GV(a)&&!B(C(a.C))&&null!==JV(a)&&0<NS(JV(a))};
aV=function(a){return ZU(a,CV)||ZU(a,["402"])};
PV=function(a){a=a.getExtension("InfoCards");return null!=a?a.g:null};
QV=function(a){a=a.getExtension("InfoCardsTracking");return null!=a?a.g:null};
UU=function(a,b){return null!=a.ga?fb(b,a.O):!1};
ZU=function(a,b){for(var c=mV(a),d=c.length-1;0<=d;d--)if("UNKNOWN"!=c[d]){if(fb(b,c[d]))return!0;break}return!1};
BV=function(a,b){a.G=[b]};
oia=function(a){return a.wb()&&0<a.H.length&&Qk(a.H,function(a){return 1==a.Fb()})};
RV=function(){hd.call(this);this.o=[]};
SV=function(){return new SU("empty-ad","GDFP","GDFP","",0,0,0,[],[],[],[],new yg)};
TV=function(a){RV.call(this);this.b=a;this.F=null;this.D=!1;this.A=null;this.B=new Am;Cm(this.B,this.b,["companions_success","companion_initialization_failed"],this.BD,this);Cm(this.B,this.b,"companion_display_error",this.xB,this);Cm(this.B,this.b,["companion_slot_init","companion_click"],this.tB,this);this.b.A?this.D=!0:this.b.initialize()};
XV=function(a,b){Mb(a.g);a.g=new hd;a.A=b;a.C=!0;a.D?UV(a):(a.C=VV(WV(b),[]),a.C||(a.A=null,a.g=null));return a.g};
UV=function(a){var b=a.A;a.A=null;if(null!=a.b)if(gb(a.o))YV(a,Error("Companion slots not available."));else if(null!=b){var c=xia(a,b),d=a.b;try{d.b.googleSetCompanionAdContents(N(a.o,d.$w,d)),d.tg()}catch(f){d.dispatchEvent(new $R("companion_display_error",f))}if(0<c.length&&b.jb){a=a.b;if(d=0!=c.length)d=mV(b),d=jV(d[0])&&1<d.length?d[1]:d[0],d="GDFP"==d;if(d){for(var d=[],e=0;e<c.length;e++)d.push(c[e].G);b=b.o;c=hS(a);if(null!==c){gS(c,b,!1);try{c.notifyUnfilledSlots(d)}catch(f){}}}}}else YV(a,
Error("Invalid master ad."))};
YV=function(a,b){a.dispatchEvent(new sS("companion_display_error",b))};
xia=function(a,b){var c=[],d=[];F(a.o,function(a){cS(a);Rh(a.F,function(d){a:{d=rV(b,d.width,d.height);if(!gb(d)&&(d=yia(d,c),null!=d)){var e=d.o;if(null!=e&&0!=a.G.indexOf(e)){d=!1;break a}e=d.b.L;sb(e,gV(b,"companionClick"));var m=gV(b,"companionImpression"),n=V.b()&&"Html"==d.b.fa&&d.A;c.push(d);if(n)bS(a,d.uc(),d.ib(),d.getHeight(),m,e);else{var n=d.hc(),t=d.ib(),u=d.getHeight();d="IFrame"!=d.b.fa;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=WV(b);a.C=VV(e,c);a.C||F(a.o,function(a){cS(a)},a);
return d};
VV=function(a,b){if(null==a)return!0;var c=a.b;return"all"==a.g?zia(c,b):"any"==a.g?Aia(c,b):!0};
WV=function(a){return null==a||null==a.b||(0,window.isNaN)(a.b.b)?null:bb(EV(a,!0),function(a){a=a.b;return gb(a)?!1:(0,window.isNaN)(a[0].b.b)?!1:a[0].b.b==xS(a[0])})};
zia=function(a,b){return Qk(a,function(a){return fb(b,a)})};
Aia=function(a,b){return Rh(a,function(a){return fb(b,a)})};
yia=function(a,b){return bb(a,function(a){return!fb(b,a)})};
ZV=function(a){this.b=a};
$V=function(a,b){lc.call(this,"adsManagerLoaded");this.b=a;this.o=b};
aW=function(a,b,c,d){a.b.Pc(new ZV(b),c,d);return a.b};
bW=function(a){lc.call(this,a);this.A=[];this.o={};this.B=null;this.b=!0};
cW=function(){this.o=new yg;this.g=!V.b()&&.01>Math.random();this.A=0;this.b="0";this.B=""};
Bia=function(){var a=cW.getInstance();a.sendMessage("ff",a.A);a.A=0};
dW=function(a,b,c,d){d=d||{};var e=new M("https://ssl.google-analytics.com/collect?v=1&t=timing&tid=UA-68696278-1&utc="+Cia());d.cid=Dia(a);d.utv=b;d.utt=c;d.cd6=zM(BM);b=LL(IL());B(C(b))||(d.xid=b);Ob(d,function(a,b){jh(e,b,a)},a);
return e.toString()};
Fia=function(a,b){if(null!=b){var c=va(b),d=Eia.exec(c),c=C((new M(c)).b.get("client"));a.b=d&&2==d.length?d[1]:B(c)?"0":c}else a.b="0"};
Cia=function(){var a=BM.o,b="html5";null!=a&&(Ja(a,"android")?b="android":Ja(a,"ios")&&(b="ios"));return b};
Dia=function(a){B(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};
eW=function(a,b,c){this.C=b;this.A=c;this.B=null;this.g=new Am(this);this.H=a;this.o=this.b=null;this.F=!1};
Gia=function(a){if(null===a.B)fW(a);else{var b=new M(a.B.b),c=C(b.b.get("vid")),b=C(b.b.get("cmsid")),d=a.A.G,e=a.A.D;a.A.G=c;a.A.D=b;if(B(C(c))||B(C(b)))fW(a);else if(c==d&&b==e)fW(a);else{var f=a.C.mf();jS(f,c,b);jha(f,a.B);a.o=new be(100);Cm(a.g,a.o,"tick",function(){var a;a:{var b=iS(f);if(null!=b)try{a=!1!==b.isAdRequestFinished();break a}catch(c){a=!0;break a}a=!1}a&&fW(this)},a);
a.o.start()}}};
Hia=function(a){a.b=new be;Gm(a.g,a.b,"tick",function(){fW(this)},a);
ce(a.b,a.H);a.b.start()};
fW=function(a){null!=a.g&&(a.g.dispose(),a.g=null);null!=a.b&&(a.b.stop(),a.b=null);null!=a.o&&(a.o.stop(),a.o=null);a.F=!0;null===a.D||a.D()};
gW=function(){hd.call(this);this.b=new yg;this.g=null;this.G=new Am(this);H(this,this.G);this.B="";this.A=this.H=this.D=this.o=null;this.F=-1};
iW=function(){null!=hW||(hW=new gW);return hW};
jW=function(a,b){var c={};c.queryId=a;c.viewabilityString=b;iW().dispatchEvent(new xL("measurable_impression",null,c))};
kW=function(a,b){var c={};c.queryId=a;c.viewabilityString=b;iW().dispatchEvent(new xL("viewable_impression",null,c))};
lW=function(a,b,c){var d={};d.queryId=a;d.viewabilityString=b;d.eventName=c;iW().dispatchEvent(new xL("externalActivityEvent",null,d))};
Iia=function(a,b){a.o=b};
Jia=function(a,b){if(a.g)if(a.A){var c=E()-a.F;b(a.A+"_ct"+c)}else{var d=a.b,c=window.setTimeout(function(){b("timeout");F(d.Va(),function(a){d.get(a)===b&&d.remove(a)})},200);
a.b.set(c,b);var e={};e.osdId=a.B;e.eventId=c;AM.getInstance().b&&(a.C=E(),e.loggingId=Math.random(),DM(AM.getInstance(),43,{step:"sendingMessage",logid:e.loggingId,time:a.C}));a.g.send("activityMonitor","fetchAdTagUrl",e)}else b("")};
Kia=function(a){return ha(a.getBoundingClientRect)&&Pf(lf(a),a)?a.getBoundingClientRect():{left:a.offsetLeft,top:a.offsetTop,width:a.offsetWidth,height:a.offsetHeight}};
Lia=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=Kia(a.o));if(KL(IL(),41351021)||KL(IL(),31061781)){var f={};f.opt_fullscreen=e.isFullscreen;e.isOverlay&&(f.opt_bounds=e.overlayBounds);d(bQ(b,c,f))}else{var k=a.b;b=window.setTimeout(function(){d({viewability:"timeout"});F(k.Va(),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({})};
mW=function(){};
nW=function(a,b,c){this.g=a;this.b=c;this.o=b};
Mia=function(a){this.o=a};
oW=function(a){this.o=a;this.g=this.b=!1};
Nia=function(a,b,c){this.b=a;this.g=b;this.o=c};
pW=function(){this.b=new yg};
qW=function(a,b,c){if((0,window.isNaN)(c)||!ga(c))throw Error("Incorrect time offset.");var d=[];Ag(a.b,c)&&(d=a.b.get(c,[]));F(b,function(a){null!=a&&lb(d,a)});
a.b.set(c,d)};
rW=function(a,b){this.b=a;this.g=b};
Pia=function(a){var b=new pW;F(Kf(Mf(a.b)),function(a){switch(a.nodeName){case "Preroll":a=sW(this,a);qW(b,a,0);break;case "Midroll":var d=jU(a,"timeOffset"),e=nU(d);if(-1==e)throw YL(tW,null,"timeOffset",C(d));a=sW(this,a);qW(b,a,e);break;case "Postroll":a=sW(this,a);qW(b,a,-1);break;default:throw YL(uW,null,a.parentNode.nodeName,a.nodeName);}},a);
if(0==b.b.Va().length)throw YL(Oia);return b};
sW=function(a,b){var c=[];F(Kf(b),function(a){switch(a.nodeName){case "Ad":var b=C(kU(a));if(!B(b)){a=jU(a,"bumper");var f=this.g.clone();f.b=b;b=new oW(f);b.b=null!=a;b.g="always"==a;lb(c,b)}break;default:throw YL(uW,null,a.parentNode.nodeName,a.nodeName);}},a);
return c};
vW=function(a,b,c){PS.call(this);this.g=a;this.o=b;this.A=c};
wW=function(){};
xW=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};
Qia=function(a,b){a.b=b};
yW=function(a,b,c,d,e,f,k,l,m,n,t){PS.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};
zW=function(){};
Sia=function(a,b){var c;F(Kf(b),function(a){switch(a.nodeName){case "context":c="default"==a.getAttribute("data")?new xW:null;break;case "params":null!=c&&Ria(this,c,a)}},a);
return c};
Ria=function(a,b,c){F(Kf(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=oU(c,!1)}},a)};
AW=function(){};
BW=function(){};
CW=function(){};
DW=function(){};
EW=function(a){this.b=a||{}};
tV=function(a){this.b=a||{}};
uV=function(a){this.Af=a||{}};
xV=function(a){this.Ue=a||{}};
FW=function(a){this.b=a||{}};
Tia=function(a){this.b=a||{}};
Uia=function(a){this.b=a||{}};
vV=function(a){this.b=a||{}};
wV=function(a){this.b=a||{}};
GW=function(a,b){return new tV(aT(a.b,"card")[b])};
Via=function(a){a=a.b.teaser_text;return null!=a?a:""};
DU=function(a){return new Tia(a.b.product_card)};
zV=function(a){a=a.Af.show_in_endcap;return null!=a?a:!1};
AV=function(a){a=a.Af.show_in_companion;return null!=a?a:!1};
MW=function(){if(!HW){var a={};HW={Yb:a};a.type=IW;a.id=JW;a.link_url=JW;a.title=JW;a.image=fT(KW());var b=LW();a.event=eT(b);a.target=JW}return HW};
NW=function(a){a=a.Ue.link_url;return null!=a?a:""};
OU=function(a){a=a.Ue.title;return null!=a?a:""};
KU=function(a){a=a.Ue.target;return null!=a?a:""};
LW=function(){if(!OW){var a={};OW={Yb:a};a.type=IW;a.base_url=JW}return OW};
PW=function(a){a=a.b.base_url;return null!=a?a:""};
FU=function(a){a=a.b.headline;return null!=a?a:""};
GU=function(a){a=a.b.description;return null!=a?a:""};
IU=function(a){return new wV(a.b.image)};
EU=function(a){return new Uia(aT(a.b,"offer")[0])};
LU=function(a){a=a.b.merchant;return null!=a?a:""};
JU=function(a){a=a.b.price;return null!=a?a:""};
QW=function(a){a=a.b.rating;return null!=a?a:0};
NU=function(a){a=a.b.headline;return null!=a?a:""};
PU=function(a){a=a.b.description;return null!=a?a:""};
KW=function(){if(!RW){var a={};RW={Yb:a};a.image_url=JW;a.thumbnail_url=JW;a.image_height=SW;a.image_width=SW}return RW};
HU=function(a){a=a.b.image_url;return null!=a?a:""};
TW=function(a,b,c){PS.call(this,c);this.g=a;this.o=b||null};
UW=function(a){this.b=a};
WW=function(a,b,c){for(var d={},e=0;e<b.attributes.length;e++){var f=b.attributes[e],k=c.Yb[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]=VW[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.Yb[f.nodeName],l=WW(a,f,k.Ma);3==k.label?(d[f.nodeName]||(d[f.nodeName]=[]),d[f.nodeName].push(l)):d[f.nodeName]=l}return d};
Wia=function(a,b){var c=new GS;F(Kf(b),function(a){"CustomTracking"==a.nodeName&&null!=Kf(a)&&(c=vU(a,!1,x(function(a,b){return XW(a,b)},this)))},a);
return c};
XW=function(a,b){return Pt(b,{ACTTYPE:{toString:function(){switch(a){case "video_card_endcap_action":return"action_headline_click";default:return""}}}})};
YW=function(a,b){PS.call(this);this.o=a;this.g=C(b)};
ZW=function(a,b){this.logger=null;this.o=b;this.b={};this.g=[];this.b.CustomTracking=vU;this.b.UI=this.B};
$W=function(a,b){if(null==b)return null;var c={};F(Kf(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};
aX=function(a,b,c,d,e,f){PS.call(this,f);this.o=a;this.B=b;this.C=c;this.A=d;this.g=e};
bX=function(a){return null!=a.g?a.g.length:0};
cX=function(){ZW.call(this,0,"mute_");this.b.SurveyOptions=this.A};
dX=function(a,b,c,d){PS.call(this);this.A=a;this.o=b;this.B=c;this.g=d};
eX=function(){};
fX=function(){PS.call(this)};
gX=function(){};
Xia=function(a,b){F(Kf(b),function(a){a.nodeName==this.b.Fw&&kU(a)},a)};
hX=function(a,b,c,d){PS.call(this);this.o=a;this.A=b;this.B=c;this.g=d};
iX=function(){};
jX=function(a){PS.call(this);this.g=a};
kX=function(){};
lX=function(a,b,c,d,e,f,k,l,m){PS.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};
mX=function(){ZW.call(this,0,"why_this_ad_");this.g.push("targeting_reason")};
nX=function(a,b){return null!=a?Qk(b,function(b){return b in a}):!1};
Yia=function(a,b){return null!=a?Rh(b,function(b){return b in a}):!1};
oX=function(){};
pX=function(){PS.call(this)};
qX=function(){};
rX=function(){};
Zia=function(a,b){this.b=a;this.g=b};
sX=function(a,b,c,d){mT.call(this,a,b,"Static",c,d);this.Bo=!1};
tX=function(a,b,c,d){mT.call(this,a,b,"Html",c,d)};
uX=function(a,b,c,d){mT.call(this,a,b,"Static",c,d)};
vX=function(a,b,c,d,e){mT.call(this,a,b,c,d,e)};
xX=function(a,b,c){if(gb(c))return new mT(a,b,"",null,"");var d=wX(c);c=d.g;var e=d.b,d=d.o;switch(c){case "Html":return new tX(a,b,e,d);case "Static":switch(kT[e]){case "Image":return new uX(a,b,e,d);case "Flash":return new sX(a,b,e,d);case "Text":return new tT(a,b)}}return new vX(a,b,c,e,d)};
wX=function(a){var b=bb(a,function(a){return"Static"==a.g&&"Flash"==kT[a.b]}),c=bb(a,function(a){return"IFrame"==a.g}),d=bb(a,function(a){return"Html"==a.g}),e=bb(a,function(a){return"Static"==a.g&&"Image"==kT[a.b]}),f=bb(a,function(a){return"Static"==a.g&&"Text"==kT[a.b]});
return AS&&null!=b?b:null!=c?c:null!=d?d:null!=e?e:null!=f?f:a[0]};
$ia=function(a,b,c,d,e,f){var k=wX(f),l=xX(a.id,a.size,[k]);l.B=!0;l.H=a.apiFramework;l.$=b;l.L=c;l.b=d;e&&(l.eg=e);ob(f,k);var m=[];F(f,function(f){f=xX(a.id,a.size,[f]);f.B=!0;f.H=a.apiFramework;f.$=b;f.L=c;f.b=d;e&&(f.eg=e);m.push(new AU(f,[],a.adSlotId))});
return new AU(l,m,a.adSlotId)};
yX=function(a,b,c){this.g=a;this.b=b;this.o=c};
zX=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.ce()};
aja=function(a){Gs(a.b)||(Fs(a.b,!0),F(a.F,function(a){RL(a)}))};
bja=function(a,b,c,d,e,f,k,l,m,n){b=xX("icon"+a,b,n);b.H=k;b.$=l.iconClickThrough;return new zX(b,a,c,d,e,f,m)};
AX=function(a){this.A=a;this.logger=null};
BX=function(a){if(null==a)return!1;a=Mf(a);return null!=a&&"VAST"==a.nodeName};
DX=function(a,b){var c=[],d=null;try{var e=cs(a),f=Mf(e);null!=f&&"CompanionAds"==f.nodeName&&(d=CX(AX.prototype,f,b))}catch(k){}null!=d&&c.push(d);return c};
EX=function(a){if(null==a)return 0;a=(0,window.parseInt)(a.getAttribute("version"),10);return ga(a)&&!(0,window.isNaN)(a)?a:0};
dja=function(a){var b=[],c=Mf(a.A),d=EX(c);lU(c,a.b.Xu,function(a){var c;c=FX(a);if(null==c)throw gU(a);var k=a.getAttribute(this.g.Uh);a=Number(a.getAttribute(this.g.Zn));c=cja(this,c,k||null,a||0);null!=c&&(c.Da=d,b.push(c))},a);
return b};
FX=function(a){var b=null;F(Kf(a),function(a){switch(a.nodeName){case "InLine":case "Wrapper":b=a;break;default:throw gU(a);}});
return b};
cja=function(a,b,c,d){var e,f,k=[],l=[],m=[],n=[],t=new yg,u,y=b.nodeName==a.b.Nw,D=y,A=y,Q;F(Kf(b),function(a){switch(a.nodeName){case this.b.Jw:if(y){if(null!=u)throw hU(a);u=kU(a);Q=gia(u);D=oU(b.getAttribute(this.g.bv),D);A=oU(b.getAttribute(this.g.Hv),A)}else throw gU(a);break;case this.b.Zu:e=kU(a);break;case this.b.$u:f=kU(a);break;case this.b.xv:kU(a);break;case this.b.Cw:kU(a);break;case this.b.Wh:a=kU(a);tU(a)&&k.push(rU(a));break;case this.b.ERROR:a=kU(a);l.push(rU(a));break;case this.b.qv:a=
eja(this,a);m=a.creatives;n=a.zx;break;case this.b.Ev:t=fja(this,a,Q)}},a);
return new SU(C(c),e,gja(e),f,0,0,d,l,k,m,n,t,u,D,A,hja(t))};
hja=function(a){var b=null;a=a.get("AdSense");null!=a&&(a=QS(a,"vast2tracking"),null!=a&&!gb(a)&&(b=a[0]));return b};
gja=function(a){if(B(C(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"}};
ija=function(a){if(B(C(a)))return"none";switch(a){case "all":case "any":case "none":return a;default:return"none"}};
fja=function(a,b,c){var d=new yg;try{var e=iU(b,a.b.Dv);F(e,function(a){var b=a.getAttribute(this.g.jo);null!=b&&(b=b.toLowerCase());switch(b){case "geo":a=(new qX).parse(a);break;case "pod":a=(new oX).parse(a);break;case "waterfall":a=(new rX).parse(a);break;case "dart":a=(new BW).parse(a);break;case "dfp":b="DFP";a=(new CW).parse(a);break;case "adsense":b="AdSense";a=(new AW).parse(a);break;case "textad":b="TextAd";a=(new iX).parse(a);break;case "templatead":b="TemplateAd";a=(new gX).parse(a);break;
case "infocards":var b="InfoCards",e=new UW(!0);a=e.parse(a);break;case "infocardstracking":b="InfoCardsTracking";e=new UW(!1);a=e.parse(a);break;case c:case "prefetchedad":b="LocalRedirect";if(null!=a){var e=null,m=iU(a,"AdXml");1==m.length&&(e='<?xml version="1.0" encoding="UTF-8"?>'+ds(Mf(m[0])));a=iU(a,"VASTAdTagURI");m=null;1==a.length&&(m=a[0].textContent);a=new YW(e,m)}else a=null;break;case "viral":b="viral";a=(new kX).parse(a);break;case "adx":b="adx";a=(new xU).parse(a);break;case "why_this_ad":b=
"why_this_ad";a=(new mX).parse(a);break;case "mute":b="mute";a=(new cX).parse(a);break;case "sodar":a=(new eX).parse(a);break;case "adformat":b="AdFormat";a=(new wW).parse(a);break;default:e=new DW,b="generic",a=e.parse(a)}null!=a&&(e=d.get(b),null!=e?"generic"==b&&(sha(e,a.b),d.set(b,e)):d.set(b,a))},a)}catch(f){if(!ha(f.vb)||1105==f.vb())throw f;
}return d};
eja=function(a,b){var c=[],d=[];lU(b,a.b.pv,function(a){var b=a.getAttribute(this.g.Zn),k;B(C(b))||(k=(0,window.parseFloat)(b));var l=a.getAttribute(this.g.Uh),m=!1;F(Kf(a),function(a){switch(a.nodeName){case this.b.LINEAR:if(m)throw hU(a);a=jja(this,a,(0,window.isNaN)(k)?0:k,l||null);sb(c,a);m=!0;break;case this.b.lv:if(m)throw hU(a);a=CX(this,a,(0,window.isNaN)(k)?void 0:k);sb(d,a);m=!0;break;case this.b.jw:if(m)throw hU(a);a=kja(this,a,(0,window.isNaN)(k)?0:k,l||null);sb(c,a);m=!0}},this)},a);
return{creatives:c,zx:d}};
kja=function(a,b,c,d){var e=[],f=new GS;F(Kf(b),function(a){switch(a.nodeName){case this.b.iw:a=lja(this,a,c,d);null!=a&&e.push(a);break;case this.b.ck:f=vU(a);break;default:throw gU(a);}},a);
0!=e.length||f.isEmpty()||(a=new mT(null,new gf(-1,-1),"",null,""),a.b=c,a.ra=d,e.push(a));F(e,function(a){f&&(a.eg=f)});
return e};
GX=function(a,b){var c={};c.id=b.getAttribute(a.g.Uh);c.adSlotId=b.getAttribute(a.g.Yu);c.apiFramework=b.getAttribute(a.g.Oh);var d=Ua(b.getAttribute(a.g.Yh)),e=Ua(b.getAttribute(a.g.Sh));c.size=new gf(d,e);d=b.getAttribute(a.g.Cv);e=b.getAttribute(a.g.Bv);B(C(d))||B(C(e))||(c.LP=new gf(Ua(d),Ua(e)));return c};
lja=function(a,b,c,d){var e=GX(a,b);b.getAttribute(a.g.Oh);b.getAttribute(a.g.vw);b.getAttribute(a.g.Xv);var f=b.getAttribute(a.g.ew),f=nU(f,-1),k=[];new yg;var l={},m="",n,t=[];F(Kf(b),function(a){switch(a.nodeName){case this.b.lw:t.push(kU(a));break;case this.b.kw:n=kU(a);break;case this.b.Qj:l=HX(a);m=C(kU(a));break;case this.b.Vh:case this.b.Xh:case this.b.Th:a=IX(this,a);null!=a&&k.push(a);break;default:throw gU(a);}},a);
a=xX(e.id,e.size,k);TS(a,m,l);a.H=e.apiFramework;a.$=n;a.L=t;a.Da=f;a.b=c;a.ra=d;return a};
IX=function(a,b){var c=jU(b,a.g.rv);if(null!=c&&"text/javascript"==c)return null;var d;a:switch(d=b.nodeName,d){case a.b.Xh:d="Static";break a;case a.b.Vh:d="IFrame";break a;case a.b.Th:d="Html";break a;default:throw YL(mja,null,d);}var e=kU(b);null!=e||(e="");return new yX(d,c,e)};
CX=function(a,b,c){var d=[],e=ija(jU(b,a.g.rw));lU(b,a.b.kv,function(a){a=nja(this,a,c);null!=a&&d.push(a)},a);
return new Zia(d,e)};
nja=function(a,b,c){var d=GX(a,b),e=[],f=new GS,k,l=[];F(Kf(b),function(a){switch(a.nodeName){case this.b.nv:l.push(kU(a));break;case this.b.ck:f=vU(a,!0);break;case this.b.mv:k=kU(a);break;case this.b.cv:kU(a);break;case this.b.Qj:kU(a);break;case this.b.Vh:case this.b.Xh:case this.b.Th:a=IX(this,a);null!=a&&e.push(a);break;default:throw gU(a);}},a);
return gb(e)?null:$ia(d,k,l,c,f,e)};
jja=function(a,b,c,d){var e=new GS,f={},k="",l=[],m,n=new yg,t=[],u=[],y,D=uU(jU(b,a.g.xw));F(Kf(b),function(a){switch(a.nodeName){case this.b.Kv:u=oja(this,a);break;case this.b.Qj:f=HX(a);k=C(kU(a));break;case this.b.Tj:y=nU(kU(a),0);break;case this.b.ck:e=vU(a);break;case this.b.aw:t=pja(this,a);break;case this.b.Kw:a=qja(this,a);n=a.customClicks;m=a.clickThrough;l=a.clickTrackingUrls;break;default:throw gU(a);}},a);
F(l,function(a){LS(e,"click",a)});
a=new XS(y,m,n,t,D,u);TS(a,k,f);a.b=c;a.ra=d;e&&(a.eg=e);return a};
qja=function(a,b){var c,d=[],e=new yg;F(Kf(b),function(a){switch(a.nodeName){case this.b.hv:c=kU(a);break;case this.b.jv:a=kU(a);d.push(a);break;case this.b.vv:var b=jU(a,this.g.Uh);null!=b||(b="");var l=e.get(b,[]);l.push(kU(a));e.set(b,l);break;default:throw gU(a);}},a);
return{clickThrough:c,clickTrackingUrls:d,customClicks:e}};
pja=function(a,b){var c=[];lU(b,a.b.$v,function(a){var b=jU(a,this.g.wv),f=jU(a,this.g.jo),k=jU(a,this.g.Lw),l=Ua(a.getAttribute(this.g.Yh)),m=Ua(a.getAttribute(this.g.Sh)),n=a.getAttribute(this.g.Oh),t=kU(a),u=mU(a.getAttribute(this.g.wn)),y=mU(a.getAttribute(this.g.dw));a=mU(a.getAttribute(this.g.Zv));b=new WS(b,f,k,u,y,a,l,m,t,n);c.push(b)},a);
return c};
oja=function(a,b){var c=[];lU(b,a.b.Jv,function(a){a=rja(this,a);null!=a&&c.push(a)},a);
return c};
rja=function(a,b){var c=b.getAttribute(a.g.ow),d=jU(b,a.g.Pw),e=jU(b,a.g.Rw),f=Ua(b.getAttribute(a.g.Yh)),k=Ua(b.getAttribute(a.g.Sh)),f=new gf(f,k),k=b.getAttribute(a.g.Oh),l=uU(jU(b,a.g.mw)),m=b.getAttribute(a.g.Tj),m=nU(m,-1),n=[],t=[],u={};F(Kf(b),function(a){switch(a.nodeName){case this.b.Ov:t.push(kU(a));break;case this.b.Lv:u=sja(this,a);break;case this.b.Vh:case this.b.Xh:case this.b.Th:a=IX(this,a);null!=a&&n.push(a);break;default:throw gU(a);}},a);
return gb(n)?null:bja(c,f,d,e,m,l,k,u,t,n)};
sja=function(a,b){var c=[],d;F(Kf(b),function(a){switch(a.nodeName){case this.b.Mv:d=kU(a);break;case this.b.Nv:c.push(kU(a));break;default:throw gU(a);}},a);
return{iconClickThrough:d,NP:c}};
HX=function(a){a=kU(a);return null!=a?qha(a):{}};
JX=function(a,b){this.g=a;this.b=b};
tja=function(a){var b=[],c=iU(a,"vmap:Extensions")[0];if(c){var d;lU(c,"vmap:Extension",function(a){"vmap:YTBreakTime"==c.getAttribute("type")&&(d=a)});
if(d&&(b=iU(d,"yt:BreakTime"),!gb(b)))return N(b,function(a){return jU(a,"timeOffset")})}return[jU(a,"timeOffset")]};
wja=function(a){var b=new pW;F(Kf(Mf(a.g)),function(a){if("vmap:AdBreak"==a.nodeName){var d=uja(this,a);a=tja(a);F(a,function(a,c){var k=nU(a);0<c&&(d=vja(this,d));if("start"==a||0==k)qW(b,d,0);else if("end"==a)qW(b,d,-1);else{if(-1==k)throw YL(tW,null,"timeOffset",C(a));qW(b,d,k)}},this)}},a);
if(0==b.b.Va().length)throw YL(NT);return b};
vja=function(a,b){return N(b,function(a){var b=new oW(a.o.clone());b.b=a.b;b.g=a.g;return b},a)};
xja=function(a){a=jU(a,"timeOffset");var b=nU(a);return"start"==a||0==b?0:"end"==a||-1==b?-1:1E3*b};
yja=function(a){return(a=bb(Kf(a),function(a){return"vmap:VASTData"==a.nodeName||"vmap:VASTAdData"==a.nodeName}))?bb(Kf(a),function(a){return"VAST"==a.nodeName}):null};
uja=function(a,b){var c=[],d="",e=null,f=!1,k=!1;F(Kf(b),function(a){switch(a.nodeName){case "vmap:AdSource":if(!e){try{e=es(a,"vmap:VASTData/VAST")||es(a,"vmap:VASTAdData/VAST")}catch(b){}e||(e=yja(a));if(!e){var c=iU(a,"vmap:AdTagURI"),l="";c.length&&(l=C(kU(c[0])));if(B(l))throw YL(zja,null,a.parentNode.nodeName,a.nodeName);d=l}}break;case "vmap:Extensions":a=iU(a,"vmap:Extension"),a=Aja(this,a),null!=a&&(f=!0,a=jU(a,"suppress_bumper"),k=null!=a?"true"==a:!0)}},a);
var l=null;e?l=Bja(a,e):B(d)||(l=Cja(a,d));l&&(V.b()&&(l.xh=xja(b)),l=new oW(l),l.b=f,l.g=f&&!k,lb(c,l));return c};
Aja=function(a,b){return bb(b,function(a){return"bumper"==jU(a,"type")},a)};
Cja=function(a,b){var c=a.b.clone();B(c.g)||(c.g="");c.b=b;return c};
Bja=function(a,b){var c=a.b.clone();c.g=ds(b);c.b="";return c};
Eja=function(a,b){if(null!=a){var c;null!=a?(c=Mf(a),c=null!=c&&"Playlist"==c.nodeName):c=!1;if(c)return cW.getInstance().g=!1,new rW(a,b);null!=a?(c=Mf(a),c=null!=c&&"vmap:VMAP"==c.nodeName):c=!1;if(c)return cW.getInstance().g=!1,new JX(a,b);if(BX(a)){if(!BX(a))throw YL(uW);c=Mf(a);var d=EX(c);if(1>d||3<d)throw YL(Dja);c=iU(c,"Ad");if(gb(c))throw YL(KX);c=FX(c[0]);if(null==c)throw YL(LX);if(1!=iU(c,"AdSystem").length)throw YL(LX);return new AX(a)}}return null};
MX=function(){};
NX=function(a,b){this.g=a;this.o=b};
OX=function(a,b){"auto"!=a.g.zf&&"click"!=a.g.zf||b.set("vpa",a.g.zf)};
PX=function(a){B("")||(a.set("mpt",""),B("")||a.set("mpv",""))};
QX=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||""))};
RX=function(a,b){b.set("osd",2);-1!=a.o.K&&b.set("frm",a.o.K);var c=a.o.ca;null!=c&&b.set("ms",c);b.set("sdr",1)};
SX=function(a){return V.g?"h.3.0.0":null!=a.o?zM(a.o):null};
TX=function(){this.b=["video"]};
UX=function(a){switch(a){case 1:return"endslate";default:return"fullslot"}};
VX=function(a,b,c,d){if(null!=d){var e=yM(b);c=null!=c.wj?c.wj:rM(e,d);1!=c&&a.set("ad_block",c);null==b.L&&(b.L=new sM);c=b.L;var f=d!=b.M;(e=0==e.b%100||f)||(e=36E5<(null===c.b?0:(new tr).getTime()-c.b));e&&c.reset();b.M=d;b=c.g;null!==b&&a.set("tok",b)}};
WX=function(a,b){a.set("sz",Math.max(null!=b.Zf?b.Zf:0,null!=b.nd?b.nd:0)+"x"+Math.max(null!=b.Yf?b.Yf:0,null!=b.md?b.md:0))};
YX=function(a){var b={};yN(b);for(var c in b)a.set(c,b[c]);a.set("dt",XX)};
ZX=function(a){if(a.Eb&&a.Eb.LACT){var b=a.Eb.LACT.toString();if(b)return Xa(b)}return a.D};
$X=function(a){return V.b()&&a.Eb&&a.Eb.VIS?a.Eb.VIS.toString():null};
eY=function(a,b,c,d){var e=new yg;e.set("ad_type",c.adType);AS&&e.set("flash",XN);WX(e,a);aY(c)&&(e.set("ea","0"),null!=a.nd&&null!=a.md&&e.set("image_size",bY(c,a.nd,a.md,a.Of)));cY(e,d);e.set("lact",ZX(a));(d=$X(a))&&e.set("yt_vis",d);e.set("videoad_start_delay",a.xh);YX(e);dY(a,e,!0);IL().b.aa("no_ad_block_param")||VX(e,b,c,a.A);return e};
dY=function(a,b,c){B(C(a.referrer))||(a=a.referrer,c&&(a=ua(a)),fY("ref",a,b))};
iY=function(a,b,c){a=null!=b?b.split("_"):a;F(a,function(a){if(!Ub(Fja,a))throw YL(qR,null,"ad_type",String(b));});
if(c){var d=[];F(a,function(a){fb(gY,a)||d.push(a)});
a=d}if(!pM()){d=[];F(a,function(a){"video"==a?d.push("standardvideo"):"skippablevideo"!=a&&d.push(a)});
if(0==d.length)throw YL(hY,null,"skippablevideo");a=d}return a};
jY=function(a,b){return null!=b?b.split(/[+, ]/):a};
bY=function(a,b,c,d){a.g&&(c=Math.min(c,90));var e=0,f=0;a=!V.b();d=d&&a;a&&(e=15,f=65);var k=[];F(Gja,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(",")};
kY=function(a,b){return null==b||(0,window.isNaN)(b)?a:Number(b)};
lY=function(a,b){return null!=b?String(b):null!=a?a:null};
mY=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};
nY=function(a,b,c){return null!=b&&Ub(c,b)?b:a};
aY=function(a){return Rh(gY,function(b){return fb(a.b,b)})};
cY=function(a,b){AS?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)))}};
fY=function(a,b,c){null!=b&&c.set(a,b)};
pY=function(a,b,c){NX.call(this,a,b);var d=new TX;a=(new M(a.b)).b;d.zl=nY(d.zl,a.get("cust_age"),Hja);d.Zh=nY(d.Zh,a.get("adsafe"),oY);d.b=iY(d.b,a.get("ad_type"));d.adType=d.b.join("_");d.ek=kY(d.ek,a.get("videoad_start_delay"));d.fk=lY(d.fk,a.get("slotname"));d.yl=mY(d.yl,a.get("adtest"))||"on"==a.get("adtest");d.jk=mY(d.jk,a.get("scs"));d.kk=lY(d.kk,a.get("alternate_ad_url"));d.channels=jY(d.channels,a.get("channel"));d.Fk=kY(d.Fk,a.get("cpm"));d.Tg=lY(d.Tg,a.get("description_url"));d.experimentIds=
lY(d.experimentIds,a.get("eid"));d.gender=nY(d.gender,a.get("cust_gender"),Ija);d.g=mY(d.g,a.get("overlay"));d.host=lY(d.host,a.get("host"));d.o=jY(d.o,a.get("h_ch"));d.hostTierId=kY(d.hostTierId,a.get("ht_id"));d.isLiveStream=mY(d.isLiveStream,a.get("lsv"));var e;null!=this.g.language?e=this.g.language:(e=q.navigator||null,e=AL(e.language||e.userLanguage||e.browserLanguage||e.systemLanguage||""));var f=null!=a.get("hl")?String(a.get("hl")):null;e=lY(f,e);var k;null!=e&&!B(C(e))&&(k=AL(e));d.language=
lY(d.language,k);d.Wp=kY(d.Wp,a.get("linearAdSlotWidth"));d.Vp=kY(d.Vp,a.get("linearAdSlotHeight"));d.Ri=kY(d.Ri,a.get("max_ad_duration"));d.Ql=kY(d.Ql,a.get("min_ad_duration"));d.Si=kY(d.Si,a.get("sdmax"));d.Yp=kY(d.Yp,a.get("nonLinearAdSlotWidth"));d.Xp=kY(d.Xp,a.get("nonLinearAdSlotHeight"));d.ng=lY(d.ng,a.get("client"));d.aj=lY(d.aj,a.get("t_pyv"));k=a.get("sdki");d.gj=kY(d.gj,w(k)?(0,window.parseInt)(k,16):k);d.tagForChildDirectedTreatment=kY(d.tagForChildDirectedTreatment,a.get("tfcd"));d.targeting=
nY(d.targeting,a.get("targeting"),Jja);d.Li=kY(d.Li,a.get("video_format"));d.Im=kY(d.Im,a.get("video_cpm"));d.Al=lY(d.Al,a.get("loeid"));d.Pm=lY(d.Pm,a.get("yt_pt"));d.Mm=lY(d.Mm,a.get("ytdevice"));d.Nm=lY(d.Nm,a.get("ytdevicever"));d.Om=lY(d.Om,a.get("dbp"));d.A=lY(d.A,a.get("ms"));d.adBlock=kY(d.adBlock,a.get("adBlock"));d.url=lY(d.url,a.get("url"));d.tk=lY(d.tk,a.get("avo"));d.Hm=lY(d.Hm,a.get("v_p"));d.wj=kY(d.wj,a.get("ad_block"));this.b=d;this.G=b;this.H=c;B(C(this.b.experimentIds))||(b=this.b.experimentIds.split(","),
GL(IL(),b))};
Lja=function(a){return Rh(Kja,function(a){return fb(this.b.b,a)},a)};
qY=function(a){return V.b()?1:fb(a.b.adType.split("_"),"text")?3:1};
Mja=function(a){a=a.b.channels?a.b.channels:[];vb(a);a=tb(a,0,30);return a.join("+")};
rY=function(a,b){return Math.round(1.1*(a||0)+0*b)};
sY=function(a,b){NX.call(this,a,b)};
tY=function(a,b){NX.call(this,a,b)};
uY=function(a){NX.call(this,a,null)};
vY=function(a){NX.call(this,a,null)};
wY=function(a,b){NX.call(this,a,b);V.b()&&IL().b.aa("doubleclick_gpt_retagging")&&(this.o.B=wM())};
xY=function(a){if(B(C(a)))return!1;a=new M(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};
Nja=function(a){var b=[];F(a,function(a){0<a.length&&b.push(N(a,function(a){return a.width+"x"+a.height}).join("|"))});
return b.join(",")};
yY=function(a,b,c){wY.call(this,a,b);var d=IL();this.G=B(C(a.o));a=new TX;a.b=iY(a.b,this.g.o);a.adType=a.b.join("_");a.experimentIds=lY(a.experimentIds,this.g.C);this.b=a;this.H=b;this.D=c;B(C(this.b.experimentIds))||GL(d,this.b.experimentIds.split(","))};
Oja=function(a){var b=eY(a.g,a.H,a.b,a.D);b.set("sdkv",SX(a));b.set("sdki",a.C().toString(16));return b};
Pja=function(a,b){var c=Oja(a),d=N(c.Va(),function(a){var b=c.get(a);return a+"="+(null!=b?b:"")});
jh(b,"afvparams",d.join("&"))};
zY=function(a,b,c){NX.call(this,a,b);IL();this.G=B(C(a.o));a=new TX;a.b=iY(a.b,this.g.o);a.adType=a.b.join("_");a.experimentIds=lY(a.experimentIds,this.g.C);this.b=a;this.H=b;this.D=c;B(C(this.b.experimentIds))||(c=this.b.experimentIds.split(","),b=IL(),GL(b,c))};
Qja=function(a){var b=eY(a.g,a.H,a.b,a.D);b.set("sdkv",SX(a));return b};
Rja=function(a,b){var c=Qja(a),d=N(c.Va(),function(a){var b=c.get(a);return a+"="+(null!=b?b:"")});
$T(b,"afvparams",[ua(d.join("&"))])};
AY=function(a,b){NX.call(this,a,b)};
BY=function(a,b){var c=new M(Pt(a.g.b,Sja(a,b)));$g(c,"https");return c};
Sja=function(a,b){if(null==a.g||null==a.g.Eb)return{};var c={},d=a.g.Eb;F(Tja,function(a){a in d&&(c[a]=d[a])});
if(!IL().b.aa("no_ad_block_param")){var e=Uja(a,d.DESCRIPTION_URL);e&&(c.AD_BLOCK=e)}null!=b&&(c.BISCOTTI_ID=b);return c};
Uja=function(a,b){if(null==b)return null;var c=rM(yM(a.o),b);return 1!=c?c:null};
Vja=function(a,b){var c;if(!eU(a.b)&&!fU(a.b)||B(C(a.o))||null==a.b||-1==a.b.search("afvbase="))if(eU(a.b))c=new tY(a,BM);else if(cU(a.b))c=new pY(a,BM,b);else if(fU(a.b))c=new wY(a,BM);else if(dU(a))c=new sY(a,BM);else if(c=a.b,null!=c?(c=(new M(c)).g,c=ta(c,".fwmrm.net")):c=!1,c)c=new uY(a);else{c=a.b;if(null!=c){c=new M(c);var d=c.o;c=ta(c.g,"youtube.com")&&bU("/get_midroll_info",d)}else c=!1;c=c?new AY(a,BM):new vY(a)}else c=eU(a.b)?new zY(a,BM,b):new yY(a,BM,b);return c};
Wja=function(a){a=ke(a,function(a){return 0<oV(a)});
Bb(a,function(a,c){return oV(a)-oV(c)});
return a};
Xja=function(a){return ke(a,function(a){return-1==oV(a)})};
RT=function(a){this.b=a};
Yja=function(){this.b=0};
Zja=function(a,b,c,d,e,f,k){var l=!!k,m=x(function(a){d(a,Error(Im(a)))},a);
k=x(function(a){l||6!=a?m(a):CY(this,b,!1,c,m,e,f)},a);
CY(a,b,!0,c,k,e,f)};
CY=function(a,b,c,d,e,f,k){var l=new qn;l.G=c;rn(l,$ja(f));var m=new Am,n=x(function(){m.dispose();l.dispose()},a);
c=x(function(){e(l.g);n()},a);
Gm(m,l,"success",function(){var a;try{a=l.b?l.b.responseXML:null}catch(b){a=null}if(null==a){var c=Cn(l);try{a=cs(c)}catch(b){a:if(window.document.implementation&&window.document.implementation.createDocument)a=window.document.implementation.createDocument("","parsererror",null);else{if(as&&(a=bs())){a.appendChild(a.createNode(1,"parsererror",""));break a}throw Error("Your browser does not support creating new documents");}}}d(a);n()},a);
Gm(m,l,["error","timeout"],c,a);var t;"POST"==k&&(b=new M(b),t=b.b.toString(),dh(b,""),b=b.toString());a.b=E();l.send(PL(b),k,t)};
DY=function(a,b,c,d,e){this.B=a;this.o=b;this.A=c;this.b=d;this.C=e};
aka=function(a,b,c,d){var e;try{e=cs(b.g)}catch(f){d(YL(uW,f));return}null!=e?EY(a,e,b,c,d):d(YL(uW))};
FY=function(a,b,c,d){var e;if(e=null!=b.b){a:{try{va(b.b)}catch(f){e=!1;break a}e=!0}e=!e}e?d(YL(bka,null,b.b)):V.C?Jia(iW(),x(a.g,a,b,c,d)):a.g(b,c,d)};
HY=function(a,b,c,d,e,f){b=bfa(b,f);f=c.Fi&&ML(cka,b)?"POST":"GET";Zja(a.o,b,x(function(a){EY(this,a,c,d,e)},a),x(function(a,b){var d;
d=8==a?YL(MT):5==a||6==a?YL(dka):YL(GY,b);e(d);d="third_party";cU(c.b)?d="adsense":eU(c.b)?d="dart":fU(c.b)&&(d="xfp");d={rt:d,ec:a};DM(AM.getInstance(),18,d,!0)},a),a.C,f,c.ci);
eka(c)};
eka=function(a){var b="third_party";cU(a.b)?b="adsense":eU(a.b)?b="dart":fU(a.b)?b="xfp":dU(a)&&(b="dbm");a={rt:b};DM(AM.getInstance(),17,a,!0)};
EY=function(a,b,c,d,e){var f;try{var k=Eja(b,c);if(!k)throw YL(uW);f=k.o();fka(a,f,c,d)}catch(l){l instanceof vL?e(l):e(YL(gka,l))}};
fka=function(a,b,c,d){var e=b.b;if(null!=e)d(new RT(e));else{e=b.o;if(null==e)throw YL(KX);F(e,function(a){a.o=c;var d=yL();d&&zL(d,"useCompanionsAsEndSlate")&&(a.F=uia(a));var d=[],e=a.getExtension("InfoCards");if(null!=e)for(var e=e.o?e.o:new EW,f=0;f<bT(e.b,"card");f++)d.push(GW(e,f));a.H=d;a.S=ria(a.H);a.ra=this.o.b;V.b()&&(a.Ha=b.g)},a);
var f=Wja(e),k=Xja(e),l;0<k.length&&0<=nV(k[0])?l=new WT(k,c,a,a.B):l=new KT(f,k,c,a);F(e,function(a){a.M=l});
d(l)}};
IY=function(a){this.b=a+E()};
$ja=function(a){var b=E();a=a.b-b;return 0<a?a:0};
hka=function(a,b){this.b=a;this.g=b;V.g&&eQ().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}BM.K=c};
ika=function(a,b,c,d){if(V.b()){var e=b.xj;e&&Wea(IL(),e)}e=null;null!=a.b&&(e=new eW(1E3,a.b,a.g));var f=aia(b);null!=f&&$ha(b)&&(a.g.ca=f);(new DY(a.g,new Yja,a.b,e,new IY(8E3))).fetch(b,x(function(a){a instanceof RT?c(a):PT(a,c,d)},a),d)};
jka=function(a){this.o=a;this.g=new ho;this.b=!1};
KY=function(a,b,c,d){var e=x(function(a){c(a);ko(this.g);this.b=!1;JY(this)},a),f=x(function(a){d(a);
ko(this.g);this.b=!1;JY(this)},a);
jo(a.g,x(function(){ika(this.o,b,e,f)},a));
JY(a)};
JY=function(a){if(!a.b){var b=lo(a.g);null!=b&&(a.b=!0,b())}};
LY=function(a,b,c){hd.call(this);this.A=new jka(new hka(b,c));this.g=b;this.b=!0;this.o=c;V.H&&KL(IL(),31061782)&&(Rc(window,"beforeunload",x(this.B,this)),a=new M("http://pagead2.googlesyndication.com/pagead/gen_204"),b=Math.random(),jh(a,"id",""),jh(a,"lid",46),jh(a,"e",31061782),jh(a,"source","loader"),jh(a,"eventid",b),jh(a,"eventtype","begin"),UL.hj(a.toString(),!0),jh(a,"eventtype","unload"),this.C=a.toString())};
kka=function(a,b,c){if(a.b){var d=null!=c?c:{};cW.getInstance().end("rtr");Fia(cW.getInstance(),b.b);cW.getInstance().start("vl");KY(a.A,b,x(function(a){MY(this,a,d)},a),x(function(a){NY(this,a,d)},a))}};
lka=function(a,b,c){if(!a.b){var d=null!=c?c:{};KY(a.A,b,x(function(a){MY(this,a,d)},a),x(function(a){NY(this,a,d)},a))}};
MY=function(a,b,c){if(a.b)if(b instanceof RT)b=new OY(b.b,a),b.D=a.g,a.dispatchEvent(new $V(b,c));else{var d;try{d=PY(b),d.D=a.g,a.dispatchEvent(new $V(d,c)),cW.getInstance().end("vl")}catch(e){NY(a,YL(QY,null),c)}}else b instanceof RT?NY(a,YL(mka,null,"Unsupported ad format."),c):(d=new bW("adsLoaderSdkAdLoaded"),d.A=b,d.o=c,a.dispatchEvent(d))};
NY=function(a,b,c){a.b?("always"==V.o&&null!=a.g&&XV(a.g,SV()),a.dispatchEvent(new wL(b,c))):(c=new bW("adsLoaderSdkAdError"),c.B=b,a.dispatchEvent(c))};
nka=function(a){return'<div class="close-padding"><a class="close-button" title="'+Y(a.close)+'" role="button" tabindex="0"></a></div>'};
oka=function(){return'<div class="recall-button"></div>'};
pka=function(a){return'<a target="_blank" href="'+Y(a.url)+'" class="attribution-button">'+Y(a.text)+"</a>"};
RY=function(a,b){this.H=a;this.G=L("DIV",{"class":"controls"});this.b=L("DIV",{"class":"adDisplay"});this.S=b||v;this.Md=new Am(this)};
SY=function(a){var b=L("DIV",{"class":"ima-container"});bv(b,"opacity 0.4s");a.Md.P(b,"mouseover",a.lz);a.Md.P(b,"mouseout",a.xF);b.appendChild(a.G);a.G.appendChild(a.b);return b};
TY=function(a){var b=window.document.createEvent("Event");b.initEvent("creativeview",!0,!0);a.dispatchEvent(b)};
UY=function(a,b){this.K=a;this.O=new yg;this.M=15E3;this.D=L("SPAN");RY.call(this,a[0],b);this.b.appendChild(this.D)};
VY=function(a,b){RY.call(this,a[0],b);this.A=a;J(this.b,"ima-container-stack")};
WY=function(a,b,c,d,e){Zs.call(this);this.g=a;this.B=b;this.D=c;this.o=d;this.C=da(e)?e:[e]};
XY=function(a,b,c,d,e){return new WY(a,b,{opacity:d},{opacity:e},{property:"opacity",duration:b,timing:c,delay:0})};
qka=function(a){return'<a target="_blank" href="'+Y(a.url)+'" class="fullslot-attribution-button">'+Y(a.text)+"</a>"};
rka=function(a){return'<div class="fullslot-autoclose">'+Y(a.hx)+"</div></div>"};
YY=function(a){hd.call(this);this.B=new be(200);H(this,this.B);this.o=0;this.g=!1;this.H=a;this.G=new Am(this);this.G.P(this.B,"tick",this.fD)};
ZY=function(a){a.B.stop();a.g=!1};
aZ=function(){hd.call(this);this.b=!1;this.o=this.A=this.g=null;this.B=new Am(this);this.g=DQ(fha);this.A=qf("videoAdUiUnmutedIcon",this.g);this.o=qf("videoAdUiMutedIcon",this.g);$Y(this);this.B.P(this.g,"click",this.C)};
$Y=function(a){a.A&&a.o&&(a.b?(is(a.A,"display","none"),is(a.o,"display","block")):(is(a.A,"display","block"),is(a.o,"display","none")))};
bZ=function(a){if(!ska.test(a))throw Error("'"+a+"' is not a valid alpha hex color");5==a.length&&(a=a.replace(tka,"#$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]};
cZ=function(a){var b=a.slice(0);b[3]=Math.round(1E3*a[3])/1E3;return"rgba("+b.join(",")+")"};
eZ=function(a,b){hd.call(this);this.o=a;this.S=0;this.M=!1;this.A=0==NS(this.o.skipOffset)?3:1;this.g=this.b=this.$=this.K=this.F=this.B=null;this.C=new Am(this);this.D=this.H=this.G=null;this.O=!1;this.L=new lQ;this.ca="";var c=a.fa;this.ba=null!=c?HM(HM(c,KM,1),LM,1):null;this.B=DQ(aha);this.F=qf("videoAdUiPreSkipButton",this.B);this.K=qf("videoAdUiPreSkipText",this.F);this.$=qf("videoAdUiPreSkipThumbnail",this.F);Rf(this.K,kR({Lm:dZ(this)}));c=this.o.Oa;c=(B(C(c))?null:"//i1.ytimg.com/vi/"+c+"/mqdefault.jpg")||
"";if(this.o.showContentThumbnail&&!B(C(c))){var d=Cf("img");d.setAttribute("src",c);J(d,"videoAdUiPreSkipThumbnailImage");this.$.appendChild(d)}else J(this.K,"videoAdUiPreSkipTextOnly");this.g=DQ(bha,{oF:Oa("Skip Ad "+Y(""))});this.b=qf("videoAdUiSkipButton",this.g);uka(this);"4.4.4"===(CA?lM(iM):"")&&(this.F.style.backgroundColor="black",this.b.style.backgroundColor="black");Fs(this.B,!1);b.appendChild(this.B);0==NS(this.o.skipOffset)?this.dispatchEvent("skipshown"):(Fs(this.g,!1),Es(this.g,0));
b.appendChild(this.g);this.C.P(this.L,"click",this.nF);this.L.Ib(this.b)};
dZ=function(a){return null!=a.o.skipOffset&&-1!=NS(a.o.skipOffset)?NS(a.o.skipOffset):-1};
fZ=function(a,b){var c=dZ(a);if(!(0>c)){var c=Math.ceil(c-b),d=" "+c;60<=c&&(d=" "+CS(c));c=kR({Lm:d,oi:a.ca});Rf(a.K,c)}};
gZ=function(a){null!=a.D&&(ee(a.D),a.D=null)};
hZ=function(a,b){null!=a.F&&Fs(a.F,b);null!=a.b&&Fs(a.b,b)};
uka=function(a){if(null!=a.ba){var b=W(HM(a.ba.getStyle(),NM,1),1),c=W(HM(HM(a.ba,MM,2),NM,1),1);b&&(a.b.style.backgroundColor=cZ(bZ(b)),c&&(a.C.P(Of(a.b),"mouseover",function(){this.b.style.backgroundColor=cZ(bZ(c))}),a.C.P(Of(a.b),"mouseout",function(){this.b.style.backgroundColor=cZ(bZ(b))})))}};
kZ=function(a,b,c){hd.call(this);this.b=a;this.S=!1;this.Da=c;this.fa=this.da=this.M=this.C=this.K=this.O=this.F=this.ga=this.Ba=this.ea=this.G=this.g=null;this.ra=!1;this.oa=this.ia=this.ka=this.H=this.L=this.A=this.B=this.na=this.$=this.ca=this.D=null;this.o=new Am(this);this.Ha=[];this.ba=[];this.S=!this.b.B&&V.b();a={Fd:this.b.Fd,ig:this.b.ig,$d:this.b.$d,oi:this.S?"redesign2014q4":""};this.g=DQ(this.b.G,a);this.o.P(this.g,"touchmove",this.Pz);this.$=qf("videoAdUiProgress",this.g);this.na=qf("videoAdUiBuffer",
this.g);this.G=qf("videoAdUiAttributionContainer",this.g);this.ea=qf("videoAdUiAttributionIconContainer",this.g);this.ga=qf("videoAdUiAttribution",this.g);this.b.g&&(J(b,"videoAdUiInstreamBadgeExperiment"),this.Ba=qf("videoAdUiAttributionBadge",this.G),c=lR({sh:"",Ng:0,th:0}),Rf(this.Ba,Oa(c)));this.F=qf("videoAdUiVisitAdvertiserLinkText",this.g);this.O=qf("videoAdUiVisitAdvertiserIcon",this.g);this.K=qf("videoAdUiAuthorIcon",this.g);this.C=qf("videoAdUiAuthorName",this.g);this.M=qf("videoAdUiLearnMore",
this.g);this.da=qf("videoAdUiLearnMoreText",this.g);this.S?(this.H=qf("videoAdUiTopButtonShare",this.g),this.ka=qf("videoAdUiTopButtonShareTooltip",this.g),this.ia=qf("videoAdUiTopButtonInfo",this.g),this.oa=qf("videoAdUiTopButtonWatchLater",this.g)):this.H=qf("videoAdUiShare",this.g);this.D=qf("videoAdUiTitle",this.g);this.ca=qf("videoAdUiTopBar",this.g);this.fa=qf("videoAdUiBottomBar",this.g);null!=this.K&&this.o.P(this.K,"click",this.fx);null!=this.C&&(c=new lQ,this.ba.push(c),this.o.P(c,"click",
this.gx),c.Ib(this.C));null!=this.M&&(c=new lQ,c.K=!0,this.ba.push(c),this.o.P(c,"click",this.mq),c.Ib(this.M));null!=this.da&&(c=new lQ,c.K=!0,this.ba.push(c),this.o.P(c,"click",this.mq),c.Ib(this.da));null!=this.H&&this.o.P(this.H,"click",this.kF);null!=this.D&&(c=new lQ,this.ba.push(c),this.o.P(c,"click",this.vF),c.Ib(this.D));null==this.ca||!V.b()&&dM()||this.o.P(this.g,"mouseover",this.jF);null!=this.F&&this.o.P(this.F,"click",this.vj);null!=this.O&&this.o.P(this.O,"click",this.vj);null!=this.G&&
null!=this.b.C&&iZ(this.b.C)&&(J(this.G,"videoAdUiWtaClickable"),this.o.P(this.G,"click",this.BE),this.o.P(this,"why_this_ad_got_it",this.DF));null!=this.b.skipOffset&&(this.A=new eZ(this.b,this.g),this.A.ug(this),this.A.ca=a.oi);this.b.M&&(this.L=new aZ,this.L.ug(this),this.fa.insertBefore(this.L.g,this.G));400>=((0,window.parseInt)(ls(b,"width"),10)||b.width)&&J(this.g,"videoAdUi-mobile");this.b.B&&(J(this.g,"blazer"),window.settings&&window.settings.isTablet?J(this.g,"tablet"):J(this.g,"phone"));
a=Yf(b,"html5-video-player");null!=a&&(this.S&&J(a,"videoAdUiRedesign"),K(a,"ytp-video-ad-learn-more-ui",this.b.o));Fs(this.g,!1);b.appendChild(this.g);this.b.o||this.S||!this.b.K||(this.B=L("DIV",{style:"width:100%;height:100%;pointer-events:auto;"}),this.g.appendChild(this.B));jZ(this)};
vka=function(a){null!=a.B&&Fs(a.B,!1)};
lZ=function(a){a.A&&(a.A.dispose(),a.A=null)};
wka=function(a,b){a.Ha=b;F(b,function(a){a.A=this.g;a.A.appendChild(a.b);var b=a.b,e=Cs(a.A),e="left"==a.B?"0px":"right"==a.B?e.width-a.o.Hc().width+"px":a.B+"px",f;f=Cs(a.A);f="bottom"==a.C?"0px":"top"==a.C?f.height-a.o.Hc().height+"px":f.height-a.o.Hc().height-Xa(a.C)+"px";is(b,{position:"absolute",overflow:"hidden",left:e,bottom:f});Fs(a.b,!1)},a)};
mZ=function(a){null!=a.F&&(Fs(a.F,!0),Rf(a.F,a.b.visitAdvertiserText));null!=a.O&&Fs(a.O,!0)};
nZ=function(a,b){if(null!=a.g){var c=Yf(Of(a.g),"html5-video-player");null!=c&&K(c,"ytp-ad-end-cap",b)}};
jZ=function(a){var b=a.b.ba&&(a.Da>a.b.ea||0==a.Da),c=b&&a.b.$,d=b&&a.b.da,e=b&&a.b.A,f=b&&a.b.S,b=b&&a.b.F,k=a.b.O&&a.b.b,l="0px";null!=a.D&&(Fs(a.D,b),null!=a.K&&Fs(a.K,c),null!=a.C&&Fs(a.C,d),null!=a.M&&Fs(a.M,e),null!=a.H&&(Fs(a.H,f),f&&a.dispatchEvent("videoShareShown")),null!=a.ia&&Fs(a.ia,!1),null!=a.oa&&Fs(a.oa,!1),null!=a.ca&&Fs(a.ca,b||c||d||e));null!=a.G&&oZ(a);null!=a.$&&(Fs(a.$,k),k&&(l=ls(a.$,"height")));null!=a.fa&&is(a.fa,"bottom",l);null!=a.da&&Fs(a.da,V.b()&&a.b.o&&!e);null!=a.ea&&
Fs(a.ea,a.b.H)};
xka=function(a,b,c,d,e){var f;f=a.b.g?"":lR({sh:"",Ng:0,th:0});a.b.b&&a.b.L&&(b=CS(c-b),b=a.b.g?b:a.b.B?" \u2022 "+b:a.S?" \u00b7 "+b:": ("+b+")",f=a.b.g?b:lR({sh:b,Ng:d,th:e}));Rf(a.ga,f);oZ(a)};
oZ=function(a){Fs(a.G,a.b.D&&(!a.b.b||a.ra))};
pZ=function(a,b){this.B=a;this.o=b;this.g=this.A=this.C=this.b=null};
iZ=function(a){return null!=a.B||null!=a.o};
qZ=function(a,b,c){b=qf(b,a.b);null!=b&&a.A.P(b,"click",c)};
rZ=function(a,b,c){null!=a.b&&a.b.parentElement.removeChild(a.b);a.b=DQ(b,c);qZ(a,"videoAdUiPopupCloseIcon",a.ki);a.C.appendChild(a.b);b=qf("videoAdUiPopupFrame",a.b);null!=b&&Rc(b,"submit",function(a){a.preventDefault()});
a=qf("videoAdUiPopupDefaultButton",a.b);null!=a&&a.focus()};
sZ=function(){this.Fd=lR({sh:"",Ng:0,th:0});this.ig="Learn More "+Y("");this.visitAdvertiserText="Visit Advertiser's Site";this.$d=nR();this.skipOffset=null;this.ea=6E3;this.D=!0;this.H=!1;this.L=this.b=this.K=!0;this.S=this.O=this.M=this.A=!1;this.ba=!0;this.F=this.da=this.$=this.ca=this.o=!1;this.G=null;this.showContentThumbnail=!0;this.g=this.B=!1;this.fa=null};
tZ=function(a,b,c,d){var e=new sZ;e.o=a;e.ga=b;e.skipOffset=c;e.Oa=null!=d?d.Xf:null;e.K=d.AF;e.G=Yga;e.ia=pQ(b,null!=c,d.If);e.showContentThumbnail=null!=d.Xf&&d.showContentThumbnail;e.fa=d.Dp;return e};
vZ=function(a,b,c,d,e){YY.call(this,b.b);this.F=b;this.D=c;this.K=this.F.b;this.b=a;this.A=this.C=null;J(this.b,UX(this.D));a=this.b;b=new sZ;b.skipOffset=new sU(this.F.A,!1);this.A=new eZ(b,a);d&&d.text&&(d=DQ(qka,d),this.b.appendChild(d));e?(e=this.b,d="Ad will close in "+Y(uZ(this.K)),a=DQ(rka,{hx:d}),Rf(a,d),e.appendChild(a),e=a):e=null;this.C=e};
yka=function(a){var b=qf("videoAdUiSkipButton",a.b);return b?ys(b,a.b):new ef(0,0)};
uZ=function(a){a=Math.ceil(a);return"0:"+(10>a?"0"+a:""+a)};
wZ=function(){G.call(this);this.B="";this.o=new GS;this.g=new yg;this.C=[];this.G=!1;this.b={};this.F={};this.A=-1;this.D=[]};
xZ=function(a,b){if(V.g){var c=hQ(eQ(),b.type,a.B);a.H(b.type,c)}else Lia(iW(),b.type,a.B,x(a.H,a,b.type))};
zka=function(a,b){null!=b&&F(b,function(a){fb(this.D,a)||this.D.push(a)},a)};
yZ=function(a,b,c){null!=c.viewability&&BT(a.b,c.viewability);var d;V.g||(d=iW().H||void 0);var e=[];F(b,function(a){var b=this.b;CT(b,a,"MOAT_INIT",!0,Hha);CT(b,a,"MOAT_VIEWABILITY",!0,ld(c.moatViewability||""));CT(b,a,"IAS_VIEWABILITY",!0,ld(c.integralAdsViewability||""));CT(b,a,"DV_VIEWABILITY",!0,ld(c.doubleVerifyViewability||""));CT(b,a,"GOOGLE_VIEWABILITY",!1,ld(c.googleViewability||""));e.push(TL(a,this.b,c,d))},a);
BT(a.b,"na");return e};
zZ=function(a,b,c){F(b,function(a){RL(a,void 0,void 0,c)},a)};
Aka=function(a,b){switch(b){case "abandon":return!Ag(a.g,b)&&!Ag(a.g,"skip")&&!Ag(a.g,"instreamAdComplete")&&(Ag(a.g,"impression")||a.G);case "click":return!0;case "instreamAdComplete":case "complete":return!Ag(a.g,b)&&!Ag(a.g,"skip");default:return!Ag(a.g,b)}};
AZ=function(a,b){hd.call(this);this.b=a;this.g=new Am(this);H(this,this.g);this.g.P(b,["companion_impression","companion_click"],this.o)};
BZ=function(a){hd.call(this);this.ads=a;this.G=null;this.da=new Am(this);H(this,this.da);this.H="normal";this.A=this.volume=null;this.g=new OM;this.Ha=!1;this.content={};this.B=new wZ;this.fa=!1;this.Da=KL(IL(),41351021)||KL(IL(),31061781);this.ra=x(this.Zx,this);this.ba=null;var b=0;F(a,function(a){b+=FT(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(CZ(a)){if(a.G.isSkippable()&&!pM())throw ZL(hY,null,"skippablevideo");if(null!=MV(a.G)&&DZ(a,a.G.g))throw ZL(hY,null,"vpaidWithSkippabilityOverride");return a.G}throw ZL(EZ,null,"An ad has not been selected.\n"+Error().stack);};
FZ=function(a,b){a.G=b;if(V.g){var c=eQ();iQ(c,a.ra);b&&c.g.set(b.L,a.ra)}};
DZ=function(a,b){return null==b?!1:null!=b.getExtension("adx")?!0:DZ(a,b.g)};
CZ=function(a){return null!==a.G};
Bka=function(a){return Rh(a.ads,function(a){return Rh(GZ(a),function(a){return!B(C(oQ(a.g)))})},a)};
GZ=function(a){var b=a.g;if(b&&b.ba&&(b=b.B,!gb(b)&&b[0]instanceof XS))return b[0].O;b=a.b;return HZ(a)?b.O:[]};
HZ=function(a){a=a.b;return null!=a&&a instanceof XS};
IZ=function(a){null==a.F&&(a.F=new Am(a));return a.F};
KZ=function(a,b){if(null!=a.D){Hm(a.da);Fm(a.da,a.D,"companion_display_error",function(){});
var c=XV(a.D,b);null!=c&&(a.da.P(c,"companion_impression",a.uB),a.da.P(c,"companion_click",a.Wl),V.b()&&(c=new AZ(b,c),a.la("companionInitialized",c)));if(!a.D.to())throw ZL(JZ);}};
Cka=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)}}})};
LZ=function(a,b){xZ(a.B,new lc(b))};
MZ=function(a,b){xZ(a.B,new lc(b));a.la(b)};
NZ=function(a){if(!a.fa)throw ZL(EZ,null,"Ads manager is not correctly configured.");};
OZ=function(a){do if(UU(a,CV))return!1;while(a=a.g);return!0};
PZ=function(a,b){for(var c=b;null!=c;)F(c.D.Pa(),a.OE,a),c=c.g};
Dka=function(a){if(!da(a))throw ZL(EZ,null,"adsRenderingSettings.mimeTypes should be an array");var b=qb(Wb(QZ),Wb(kT));F(a,function(a){if(!fb(b,a))throw ZL(EZ,null,"Invalid or unsuppoted mime type "+a);})};
RZ=function(a){BZ.call(this,a);this.K=null;this.ia=L("DIV",{style:"display:none;position:absolute;top:0;left:0;bottom:0;right:0;z-index:2000"});this.O=!1;this.$=[]};
SZ=function(a,b){var c=Dha(b);F(c,function(a){LS(this.B.o,"click",a)},a)};
TZ=function(a,b){var c=zT(b,Z(a)),d=cV(Z(a));VL(d,c)};
UZ=function(a){RZ.call(this,a);this.S=!1;this.C=this.M=null;this.ea=!1};
VZ=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=JQ("Ads by Google"));return a};
WZ=function(a){return CZ(a)&&HV(Z(a))};
Eka=function(a){var b=XZ(a);b.rba=a.O;DM(AM.getInstance(),37,b)};
XZ=function(a){var b=[],c=[];F(a.M,function(a){b.push(a.ib()+"x"+a.getHeight());c.push(a.wc())},a);
var d={};d.pid=cW.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};
YZ=function(a,b){if(a.C){a.Ci(new lc("close"));var c={};c.pid=cW.getInstance().b;c.evt=b;DM(AM.getInstance(),35,c)}};
ZZ=function(a,b){lc.call(this,"vpaidEventType");this.b=a;this.data=b};
Fka=function(a,b){function c(a,b){for(var c in a)for(var k=c.toLowerCase(),l=0;l<$Z.length;l++){var m=$Z[l];if(k==m)throw Error('Cannot override "'+m+'" '+b+', got "'+c+'" with value "'+a[c]+'"');}}
c(a,"attribute");c(b,"param")};
a_=function(a,b){$w.call(this,b);this.H=a;this.o=new Am(this);this.g=new yg};
b_=function(a){return a.ma()?a.ma().firstChild:null};
c_=function(a){BZ.call(this,a);this.O=this.o=null;this.K=!0;this.Ba=this.ia=this.ca=!1;this.oa=Ta();this.ea=this.ka=0;this.$=-1;this.C=null;this.S=0;this.M=1;this.ga=-1;this.na=!1};
d_=function(a){var b=a.qc("getAdLinear");return fa(b)?b:a.K};
e_=function(a){var b;b=a.qc("getAdRemainingTime");b=ga(b)?b:-2;if(!ga(b)||0>b)b=30;ee(a.ga);a.ga=de(a.stop,1E3*b,a)};
f_=function(a,b,c,d){d=ZL(b,c,d);var e=zT(d,Z(a)),f=cV(Z(a));VL(f,e);b.message=d.b;aM(a,b,c)};
g_=function(a){a.na||(a.na=!0,MZ(a,"complete"))};
h_=function(a){hd.call(this);this.C=a;this.b=null;this.A=-1;this.B=!1;this.g=Ta()};
i_=function(a){BZ.call(this,a);this.o=null;this.oa={};this.K=!0;this.ga=this.ea=this.ca=!1;this.S=this.ia=0;this.C=null;this.O=0;this.M=1;this.$=-1;this.na=!1;this.ka=2==V.A};
j_=function(a){var b=a.jc("getAdLinear");return fa(b)?b:a.K};
k_=function(a){var b;b=a.jc("getAdRemainingTime");b=ga(b)?b:-2;if(!ga(b)||0>b)b=30;ee(a.$);a.$=de(a.stop,1E3*b,a)};
l_=function(a){a.na||(a.na=!0,MZ(a,"complete"))};
n_=function(a,b){var c=ZL(m_,b,void 0),d=zT(c,Z(a)),e=cV(Z(a));VL(e,d);m_.message=c.b;aM(a,m_,b)};
o_=function(a,b){this.b=a;this.g=b};
p_=function(a){xL.call(this,"adMetadata",a)};
Gka=function(a,b,c){var d=v,e=new M("https://www.googleapis.com/youtube/v3/videos");jh(e,"id",a);jh(e,"part","snippet,status");jh(e,"fields","items/id,items/snippet/title,items/snippet/channelId,items/status/privacyStatus");null!=c&&(b=x(b,c),d=x(d,c));q_(new qn,e,b,d)};
Hka=function(a,b,c){var d=v,e=new M("https://www.googleapis.com/youtube/v3/channels");jh(e,"id",a);jh(e,"part","snippet,statistics,brandingSettings");jh(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));q_(new qn,e,b,d)};
q_=function(a,b,c,d){jh(b,"key","AIzaSyA-dlBUjVQeuc4a6ZN4RkNUYDFddrVLxrA");rn(a,2E3);var e=new Am(a);Fm(e,a,"success",function(a){a=a.target;var b;b=a.b?$f(a.b.responseText):void 0;c(b||{});e.dispose();a.dispose()});
Fm(e,a,["error","timeout"],function(a){a=a.target;var b=null;0!=a.g&&(b=Error(Im(a.g)));d(b);e.dispose();a.dispose()});
a.send(b)};
r_=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}};
u_=function(a,b,c,d,e){YY.call(this,d);this.C=a;this.L=b;this.K=e;this.D=new Am(this);H(this,this.D);this.A=new lQ;H(this,this.A);(a=s_(c))?(c=a(c),b.appendChild(c),b=qf("iv-endcap-action",c),this.D.P(this.A,"click",this.F),this.A.Ib(b),b=c):b=null;this.b=b?qf("iv-endcap-countdown-inner",b):null;null!=this.b&&is(this.b,"stroke-dasharray","0 "+t_)};
s_=function(a){switch(a.Fb()){case 1:return Ika;case 4:return Jka}return null};
Ika=function(a){var b=DU(a);a=0<a.yj()?a.Cg(0):null;return DQ(XT,{headline:FU(b),description:GU(b),image:HU(IU(b)),action:a?OU(a):"",target:a?KU(a)||NW(a):""})};
Jka=function(a){var b=a.zi();a=0<a.yj()?a.Cg(0):null;return DQ(XT,{headline:NU(b),description:PU(b),image:HU(b.g()),action:a?OU(a):"",target:a?KU(a)||NW(a):""})};
Kka=function(){return JQ('<div class="videoAdInterstitial"><p>Your video will play after this ad.</p></div>')};
v_=function(){G.call(this);this.o=DQ(Kka);this.b=0};
w_=function(a){a.b&&(ee(a.b),a.g(v))};
x_=function(a){lc.call(this,a)};
y_=function(a){hd.call(this);this.A=a;this.L=new yg;this.G=-1;this.H=this.M=!1;this.D=""};
z_=function(a){this.paused=!1;this.mute=a.cg();this.volume=a.ie()};
A_=function(a,b,c,d){if(!c||null==a.L.get(b)){d&&!a.H&&(b="error");a.L.set(b,!0);a:{c=b;if(a.o&&a.o.b.A){if("click"==c)break a;"videoLearnMoreClicked"==c&&xZ(a.A,new lc("click"))}d=Lka[c]||null;null!=d&&null!=a.b&&a.b.lm(d);xZ(a.A,new lc(c))}a.dispatchEvent(b)}};
B_=function(a){0>a.G||a.M||!a.b.Sg(a.G)&&!a.b.Je()||!a.H||(a.M=!0,A_(a,"engagedview",!0,!0),a.dispatchEvent(new x_("viewCount")))};
C_=function(a){B_(a);if(V.b()){var b=a.A;if(!(Ag(b.g,"skip")||0>b.A))for(var c=JS(b.o,"progress"),d=b.A;d<c.length;d++){var e=c[d];b.A=d+1;RL(e.b,b.b)}}A_(a,"complete",!0,!0)};
D_=function(a){BZ.call(this,a);this.C=this.o=null;this.ca=!1;this.M=new y_(this.B);this.ia=this.oa=this.$=!1;this.na=this.S=1;this.K=null;this.Ia=new v_;this.ka=new wk;this.Ja=!1;this.ga=[];this.ea=!1;this.O=null;this.Ba=!dM()&&V.b()};
E_=function(a,b){var c=de(function(){this.ka.remove(c);b.call(this)},0,a);
yk(a.ka,c)};
F_=function(a){a.O&&(Mb(a.O),a.O=null);Mb(a.o);a.o=null;Mb(a.M);Mb(a.B);a.ia=!1};
G_=function(a){a.oh();CZ(a)?a.start():a.stop()};
Nka=function(a){if(!CZ(a))return!1;var b=a.A.Ld();if(null==b)return!1;var c=Z(a),d;if(d=c.F?c.F.b.fh()?c.F.b.Dl():c.F.hc():"")Mka(a,b,d);else if(DV(c)&&(d=c.S,d=gb(d)?null:d[0],null!=d&&ha(s_(d)))){var e=1==d.Fb()&&!IL().b.aa("ad_video_end_disable_auto_open_drawer");a.C=new u_(a.b,b,d,LV(c),e);IZ(a).P(a.C,"click",x(a.To,a,null));a.o&&nZ(a.o,!0);a.A.Yc()}null!=a.C&&(IZ(a).P(a.C,"timeUpdate",a.Gr),IZ(a).P(a.C,"end",a.Nx),a.C.start(),MZ(a,"video_card_endcap_impression"));return null!=a.C};
Mka=function(a,b,c){DM(AM.getInstance(),34,{evt:"start"},!0);var d=L("DIV");J(d,"controls");var e=L("DIV");J(e,"adDisplay");J(e,"endslate");e.innerHTML=c;(c=Kf(e)[0])&&is(c,{margin:"0 auto"});F(c.getElementsByTagName("a"),function(a){var b=a.getAttribute("href");b&&IZ(this).P(a,"click",x(this.To,this,b))},a);
d.appendChild(e);e=new xW;Qia(e,LV(Z(a)));e.A=0;e.o=0;a.C=new vZ(d,e,1,{},!0);IZ(a).P(a.C,"skip",a.Uo);b.appendChild(a.C.b);a.A.Yc();a.o&&(vka(a.o),lZ(a.o))};
I_=function(a,b){H_(a);null!=a.b&&a.b.Sp();a.la("complete");MZ(a,b);LZ(a,"instreamAdComplete");G_(a)};
H_=function(a){a.C&&(a.C.dispose(),a.C=null);a.o&&nZ(a.o,!1);a.ca=!1};
J_=function(a){var b=CZ(a)?Z(a).C:null;if(b){var c;a:{if(CZ(a)&&(c=PV(a.G),null!=c))break a;c=""}var d;a:{if(CZ(a)&&(d=QV(a.G),null!=d))break a;d=""}(c||d)&&a.b.ul(b,c||null,d||null)}};
K_=function(a,b,c,d){b=JS(b.b,c);gb(b)||(a[d]=b[0].b)};
L_=function(a,b,c){b=c.getExtension(b);null!=b&&(K_(a,b,"annotation_click","cta_annotation_clicked"),K_(a,b,"annotation_close","cta_annotation_closed"),K_(a,b,"annotation_start","cta_annotation_shown"))};
Oka=function(a,b){var c=UU(b,CV)&&!b.ca?iV(b):null,d=b.isSkippable()&&!XU(b),e=null!=a.o&&a.o.b.o,f=b.o,k=qQ(a.Jp());if(!k){var l=b.getExtension("AdSense");null!=l&&(k=l.isPharma())}var m=IL().b,l=m.aa("use_variable_load_timeout")?m.b("variable_load_timeout_ms"):a.g.Qd,n=ET(b),t;a.o?(t={},L_(t,"AdSense",b),L_(t,"dart",b),L_(t,"DFP",b)):t=null;var f=f?f.lj:!1,u=DT(b),y=a.g.lg,m=m.aa("legacy_autoplay_flag"),D;D=gV(Z(a),"endscreenClick");D=gb(D)?null:dg({endscreenClick:D});return new JR(n,c,0,t,e,d,
l,f,!1,u,y,k,m,D)};
Pka=function(a){var b=0,c=0;F(a.ads,function(a){!HZ(a)||V.b()&&0!=c||(c++,b+=FT(a))},a);
var d=1;F(a.ads,function(a){var b=a.A;b.o=c;HZ(a)&&(b.g=d,b.B=d,d++)},a)};
M_=function(a){var b=a.g;return b&&b.ba&&(b=b.B,!gb(b)&&b[0]instanceof XS)?b[0].Pd():yV(a)};
O_=function(a,b){if(!HZ(b))throw ZL(N_);var c=b.b;if(!B(C(null)))return new WS("","","",0,0,0,0,0,null,"");var d=GZ(b),e=a.b.es(d,a.g.bitrate,a.g.bh||[],null!=b&&!0&&(V.b()||a.A.Ii()||a.A.rl()||dM()));Qka(d,a.g.bitrate,e,bV(b));if(null!=e)return c.ka=e;try{Rka(a,b)}catch(f){}throw ZL(Ska);};
Rka=function(a,b){if(AM.getInstance().b){var c=new wk,d=!1;F(GZ(b),function(a){yk(c,a.b);"VPAID"==a.o&&(d=!0)},a);
var e=a.b.Xk(),e={aid:iV(b),mt:c.Pa().join(","),smt:e.join(","),hvp:d,st:mV(b).join(",")};DM(AM.getInstance(),28,e)}};
Qka=function(a,b,c,d){if(!V.b())try{var e=N(a,function(a){return a.Rd}),f=N(a,function(a){return a.b});
a={};a.brs=e.join(",");a.mts=f.join(",");a.pubbr=b;a.selbr=null===c?-1:c.Rd;a.selmt=null===c?"":c.b;a.ic=!1;a.nat=!1;a.iyh=NL(c.g)?"1":"0";a.as=d;DM(AM.getInstance(),22,a)}catch(k){}};
P_=function(a,b){b in a.ga||(a.ga.push(b),a.la(b))};
Tka=function(a){var b=Z(a),c={};c.pubbr=a.g.bitrate;c.ic=!1;c.nat=!1;if(null!=b){a=GZ(b);var d=b.b,d=d?d.ka:null,e=N(a,function(a){return a.Rd});
a=N(a,function(a){return a.b});
c.brs=e.join(",");c.mts=a.join(",");c.as=bV(b);null===d?(c.selbr=-1,c.selmt="",c.iyh="0",c.murl=""):(c.selbr=d.Rd,c.selmt=d.b,c.iyh=NL(d.g)?"1":"0",c.murl=d.g)}DM(AM.getInstance(),45,c)};
R_=function(a,b,c){var d=null;CZ(a)&&(pV(Z(a)),d=qV(Z(a)));null!=d?Uka(a,Z(a),d,b,c):(Q_(a,c),a.oh(),CZ(a)?($L(ZL,a,b,c,void 0),a.start()):(aM(a,b,c),a.stop()))};
Uka=function(a,b,c,d,e){b=x(function(a){a=a[0];this.gm(Z(this),a);CZ(this)?($L(ZL,this,d,e,void 0),this.start()):R_(this,S_,ZL(S_))},a);
a=x(function(){R_(this,T_,ZL(T_))},a);
PT(c,b,a)};
Q_=function(a,b){var c=ZL(U_,b),c=zT(c,Z(a),a.b),d=cV(Z(a));VL(d,c)};
V_=function(a){if(V.g){var b=M_(Z(a));null!=b&&QL(b)}a.la("click")};
W_=function(a,b){Ub(Vka,b)&&Cm(IZ(a),a.M,b,a.Dr,a)};
X_=function(a){if(!a.ea){var b=Z(a),c=b.C;if(OV(b)&&!V.b()&&!a.A.Ii()&&c){var b=a.b.getCurrentTime(),d=a.b.od(),e=new M("//s.youtube.com/s");jh(e,"ns","yt");jh(e,"el","adunit");jh(e,"docid",c);jh(e,"eurl",window.document.URL);jh(e,"len",d.toFixed(2));jh(e,"tv","1");jh(e,"ps","trueview-instream");jh(e,"st",b.toFixed(2));jh(e,"et",b.toFixed(2));jh(e,"rt",b.toFixed(2));RL(e.toString());a.ea=!0}}};
Wka=function(a){var b=Z(a).da;if(null!=b){var b=b.videoId,c=a.g.If;if(B(C(b)))b=null;else{var c=new M((null!=c?c:"//www.youtube.com/")+"watch"),d=c.b;d.set("v",b);dh(c,d);c.G="action=share";b=c.toString()}null!=b&&(QL(b),a.qs())}};
Xka=function(a){a=Y_(a)||Z_(a);null!=a&&SL(a,"sharebuttondisplayed")};
Y_=function(a){a=Z(a).getExtension("AdSense");return null!=a?new M(a.A):null};
Z_=function(a){if(a=Z(a).b)if(a=US(a,"start"),!gb(a))return new M(a[0].b);return null};
Yka=function(a){var b=Z(a),c=b.da;null!=c&&(b=pQ(c.videoId,null!=JV(b),a.g.If),null!==b&&(a.b.pause(),QL(b)))};
$_=function(a){E_(a,function(){this.la("skip");G_(this)})};
a0=function(a,b){Gka(b,function(a){a=new r_(a);CZ(this)&&Z(this).C==a.videoId&&(Zka(this,a),!B(C(a.channelId))&&a.isListed&&Hka(a.channelId,function(a){a=new FS(a);var b=Z(this),c=IL().b;if(null!=this.o){var k=this.o,l=a.authorName;k.b.da=!B(C(l));k.b.authorName=l;null!=k.C&&Rf(k.C,(new PQ("by "+k.b.authorName,void 0)).hc());jZ(k);k=this.o;l=a.b;k.b.$=!B(C(l));if(null!=k.K){var m=Cf("img");m.setAttribute("src",l);J(m,"videoAdUiAuthorIconImage");k.K.appendChild(m);null!=k.D&&J(k.D,"videoAdUiTitleWithAuthorIcon");
null!=k.C&&J(k.C,"videoAdUiAuthorNameWithAuthorIcon")}jZ(k)}CZ(this)&&(Z(this).$=a,this.la("youTubeChannelMetadata"));(gb(eV(b))||!eV(b)[0].A)&&c.aa("enable_website_actions_info_cards")&&c.aa("enable_website_actions_info_cards_companion")&&V.b()&&OV(b)&&(k=sia(b,a))&&hV(b,k);if(k=this.o)k=Z(this),l=k.da,k=V.b()&&gb(eV(k))&&null!=k.$&&null!=l&&l.isListed;if(k){IZ(this).P(window,"message",this.jy);var k=Z(this),l=k.$.channelId,m=ET(k),n=this.g.Xf,t=this.g.If,t=new M((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 vX("1",new gf(300,250),"IFrame",null,t.toString());l.G=k;l.B=!0;BV(b,new AU(l,[],null,!0));KZ(this,b)}!DV(b)&&c.aa("enable_website_actions_info_cards")&&c.aa("enable_website_actions_info_cards_endcap")&&OV(b)&&qia(b,a.authorName,a.b)},this))},a)};
Zka=function(a,b){if(null!=a.o&&b.isListed){var c=a.o,d=b.title;c.b.F=!B(C(d));c.b.title=d;b0.test(oe(c.b.title,void 0));null!=c.D&&Rf(c.D,c.b.title);jZ(c);c=a.o;null!=c.ka?Rf(c.ka,"Share"):null!=c.H&&Rf(c.H,"Share")}CZ(a)&&(Z(a).da=b,a.la("youTubeVideoMetadata"))};
c0=function(a){var b=Z(a).$;if(null!=b){var c;c=a.g.If;b=C(b.channelId);c=B(b)?null:(null!=c?c:"//www.youtube.com/")+"channel/"+(sa(b,"UC")&&24==b.length?b:"UC"+b);null!==c&&(a.b.pause(),QL(c))}};
$ka=function(a){var b=cW.getInstance();if(b.g){var c={};if(null!=a.K){var d=(new M(a.K.g)).g;if(null!=d){var d=Ya(d,".",10),e=d.length;2<=e&&(c.cd1=d[e-2]+"."+d[e-1])}c.cm1=a.K.Le;c.cd3=a.K.b;c.cd5=b.b;c.cm2=a.g.bitrate;c.cd2=NL(a.K.g)?"1":"0";d=a.K.ib();e=a.K.getHeight();null!=d&&null!=e&&(c.cd8=d+"x"+e);a.b&&(d=a.b.Od(),c.cd4=d.width+"x"+d.height);a=a.K.D;B(C(a))||(c.cd7=a)}b.end("bt",c)}};
d0=function(a,b){lc.call(this,"vpaidEvent");this.sessionId=b};
e0=function(a){BZ.call(this,a);this.Ia=this.na=this.ka=!1;this.ea=[];this.ca=Ta();this.o=null;this.C=!0;this.ia=-1;this.ga=new be(500);this.oa=this.$=-1;this.O=1;this.Ba=this.Ja="";this.S=!1;this.M=2==V.A};
g0=function(a){var b=fV(Z(a)),c=C(yV(Z(a))),d=MV(Z(a)),c={desiredBitrate:a.g.bitrate,creativeData:b,viewMode:a.H,clickThroughUrl:c,adUrl:d};MV(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);f0(a,"initAd",c);F(a.ea,function(a){f0(this,a.type,a.params)},a);
a.ka=!0;a.ea=[]};
h0=function(a,b,c){c=c||null;a.ka?f0(a,b,c):a.ea.push({type:b,params:c})};
f0=function(a,b,c){c=c||{};c.session=a.ca;c.type=b;a.M?window.parent.postMessage(dg(c),"*"):null!=a.K.contentWindow&&a.K.contentWindow.postMessage(dg(c),"*")};
bla=function(a,b){var c={};b=Oa(b);var d;b.length?d=b.split(/\s+/):d=[];F(d,function(a){c[a]=!0});
Ob(ala,function(a,b){IL().b.aa(b)&&(c[a]=!0)},a);
return Xb(c).join(" ")};
i0=function(a,b,c,d){d=ZL(b,c,d);var e=zT(d,Z(a)),f=cV(Z(a));VL(f,e);b.message=d.b;aM(a,b,c)};
k0=function(a,b){if(w(b.type))switch(b.type){case "friendlyReady":g0(a);break;case "videoCall":switch(b.func){case "load":case "play":a.A.dh();a.Ba!=b.src&&(a.Ba=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.ia=b.remainingTime;break;case "AdClickThru":LZ(a,"click");a.la("click");break;case "AdDurationChange":a.$=b.duration;a.ia=b.remainingTime;Z(a).b.K=a.$;a.la("durationChange");break;case "AdError":i0(a,
m_,Error(b.message));a.stop();break;case "AdExpandedChange":a.la("expandedChanged");break;case "AdImpression":var c=Z(a);gb(eV(c))||KZ(a,c);a.la("impression");break;case "AdLinearChange":c=b.isLinear;!a.C&&c?(a.la("contentPauseRequested"),h0(a,"becameLinear")):!c&&a.C&&(a.la("contentResumeRequested"),h0(a,"becameNonlinear"),h0(a,"getAdRemainingTime"),h0(a,"getAdDuration"));a.C=c;var d=Z(a);d.ia=!0;d.ka=c;a.la("linearChanged");break;case "AdLoaded":ee(a.oa);a.na=!0;d=b.companions;c=Z(a);gb(eV(c))&&
(d=DX(d,c.b.b),gb(d)||RU(c,d));j0(a);MZ(a,"loaded");break;case "AdPaused":a.S=!0;MZ(a,"pause");break;case "AdPlaying":a.S=!1;MZ(a,"resume");break;case "AdRemainingTimeChange":a.ia=b.remainingTime;break;case "AdSkipped":MZ(a,"skip");a.stop();break;case "AdSkippableStateChange":MZ(a,"skippableStateChanged");break;case "AdStarted":LZ(a,"impression");LZ(a,"creativeview");a.la("start");break;case "AdStopped":LZ(a,"stop");a.stop();break;case "AdUserAcceptInvitation":a.C?LZ(a,"acceptinvitationlinear"):LZ(a,
"acceptinvitation");break;case "AdUserMinimize":LZ(a,"collapse");break;case "AdUserClose":MZ(a,"userClose");break;case "AdVideoComplete":MZ(a,"complete");break;case "AdVideoFirstQuartile":MZ(a,"firstquartile");break;case "AdVideoMidpoint":MZ(a,"midpoint");break;case "AdVideoStart":LZ(a,"start");break;case "AdVideoThirdQuartile":MZ(a,"thirdquartile");break;case "AdVolumeChange":c=b.volume;c!=a.O&&a.la("volumeChange");0==c&&0!=a.O?(LZ(a,"mute"),a.la("mute")):0==a.O&&0!=c&&LZ(a,"unmute");a.O=c;a.o.setVolume(c);
break;case "Ping":RL(b.url)}};
l0=function(a,b){f0(a,"wrapperCall",{messageType:b})};
j0=function(a){a.na&&a.Ia&&(h0(a,"startAd"),a.ga.start(),a.C||(h0(a,"becameNonlinear"),h0(a,"getAdRemainingTime")),h0(a,"getAdDuration"))};
m0=function(a,b,c,d,e,f,k){hd.call(this);this.g=this.D=0;this.K=a;this.Dc=b;this.ka=c;this.B=null;this.L=d;this.da=f;this.ba=V.o;this.G=this.H=this.C=this.b=null;this.fa=this.ea=-1;this.$="normal";this.O=null;this.A=e;this.o=[];this.ia=this.S=this.ga=this.M=!1;this.ca=k;dla(this)};
n0=function(a,b,c,d){a.ea=b;a.fa=c;null!=d&&(a.$=d);null!=a.b&&a.b.Vc(b,c,d)};
dla=function(a){F(a.K,function(a){a=new M(a.o.b);var c=a.b.get("max_ad_duration");p(c)||a.b.get("pmxd")})};
o0=function(a){return a.D<a.K.length&&null!=a.K[a.D]};
ela=function(a,b){var c;if(c=V.b()&&!gb(b)&&0==a.Dc)c=b[0],c=null!=c&&null==MV(c)&&FV(c,"nonlinear");return c?(c=lV(b[0]),"ADSENSE"==(0<c.length?c.pop():bV(b[0])).toUpperCase()):!1};
u0=function(a){!o0(a)||2<=a.o.length-a.g?a.ga||(q0(a),r0(a)&&s0(a,a.g)&&t0(a,a.g),a.ga=!0,a.dispatchEvent("adBreakInitialized")):p0(a)};
p0=function(a){var b=a.K[a.D];Cm(a.F,a.L,"adsLoaderSdkAdLoaded",a.Fq,a);V.o="on_master_ad";lka(a.L,b.o,b)};
q0=function(a){null==a.Dc||Rh(a.o,function(a){return!a.g})||(a.o=ke(a.o,function(a){return!(a.g&&!a.o)}))};
s0=function(a,b){var c;b<a.o.length?(c=a.o[b],gb(c.b)?c=!1:(c=c.b[0],c=null!=c?!ES(TU(c),"rm"):!1)):c=!1;return c};
z0=function(a){if(s0(a,a.g)){var b=a.o[a.g];try{a.S?v0(a,a.b):r0(a)?(w0(a),a.b=a.H,a.C=a.G,a.H=null,a.G=null,a.A.Ep()):(w0(a),a.C=new Am(a),a.b=x0(a,b,a.C),v0(a,a.b));null!=a.B&&(a.B.dispose(),a.B=null);if(y0(a.b)){var c=a.Cb();if(null==c||!HV(c)){var d=Z(a.b).b;if(null!==d){var e=d.Da;0>=e&&!a.da.vo||(0>=e&&(e=15),a.B=new be(1E3*e),Gm(a.C,a.B,"tick",a.MC,a))}}}if(y0(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 D_)a.A.dh(),
a.b.start();else{var k=a.b;if(null!=k&&k instanceof e0)a.A.Yc(),a.b.wb()?a.A.dh():a.dispatchEvent("contentResumeRequested"),a.b.start();else{var l=a.b;if(null!=l&&(l instanceof c_||l instanceof i_))a.A.Yc(),a.b.wb()||a.dispatchEvent("contentResumeRequested"),a.b.start();else throw Error("Unknown ads manager type.");}}}r0(a)&&s0(a,a.g+1)&&t0(a,a.g+1)}catch(m){a.g++,z0(a)}o0(a)&&p0(a)}else a.dispatchEvent("contentResumeRequested"),A0(a)};
v0=function(a,b){if(null===b)throw Error("Ads manager must be constructed before initialization");b.init(a.$);null!=a.O&&b.setVolume(a.O)};
x0=function(a,b,c){b=PY(b.b);var d=new o_(a.A,r0(a));b.D=a.ca;Cm(c,b,B0,a.Gq,a);Cm(c,b,"companionBackfill",a.Gq,a);Cm(c,b,"adError",a.HA,a);Cm(c,b,"allAdsCompleted",v,a);Cm(c,b,"contentPauseRequested",a.rz,a);Cm(c,b,"contentResumeRequested",a.uz,a);Cm(c,b,"userClose",a.vz,a);Cm(c,b,"autoClose",a.qz,a);b.Pc(d,{currentTime:0},a.da);b.Vc(a.ea,a.fa,a.$);return b};
w0=function(a){a.A.uf();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)};
C0=function(a){null!=a.G&&(a.G.dispose(),a.G=null);null!=a.H&&(a.H.destroy(),a.H=null)};
y0=function(a){return null!=a&&a instanceof RZ};
A0=function(a){a.M=!1;a.dispatchEvent("allAdsCompleted")};
fla=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 f=a.b;eb(f,c);d+=f.length;b<this.g&&(e+=f.length)},a);
b=c.A;var f=e+b.B;b.o=d+(a.K.length-a.D);b.g=f;b.A=a.ka;b.b=a.Dc}};
t0=function(a,b){var c=a.o[b];a.G=new Am(a);a.H=x0(a,c,a.G);v0(a,a.H)};
r0=function(a){null===a.A?a=!1:(a=a.A,a=!(null===a||a.Hi()||V.b()||fM()||oM()||CA&&!jM(4))&&!1);return a};
D0=function(a){lc.call(this,a);this.b=null};
E0=function(a,b,c){hd.call(this);this.b=a;this.o=[];this.B=null!=c&&fa(c.backlog)?c.backlog:!1;this.C=null!=c&&ga(c.prefetch)&&0<=c.prefetch?c.prefetch:0;this.A=null;this.g=!1;gla(this,b)};
hla=function(a){this.b=a;this.o=this.g=!1};
F0=function(a){a.b.start();a.g=!0};
ila=function(a){if(a.g){var b=bb(a.o,function(a){return-1==a.b},a);
null!=b&&G0(a,!0,b)}};
gla=function(a,b){F(b,function(a){if((0,window.isNaN)(a))throw Error("The ad play time is not a number:"+a);Gb(this.o,new hla(a),function(a,b){return yb(a.b,b.b)})},a)};
jla=function(a,b){for(var c=[],d=0;d<a.o.length;d++){var e=a.o[d];-1!=e.b&&e.b<=b&&lb(c,e)}return c};
kla=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};
H0=function(a){a.dispatchEvent(new D0("contentTrackingError"))};
G0=function(a,b,c){if(null!=c){if(!c.g){var d=new D0("requestAds");d.b=c.b;a.dispatchEvent(d);c.g=!0}b&&!c.o&&(b=new D0("playAds"),b.b=c.b,a.dispatchEvent(b),c.o=!0)}};
I0=function(a,b){G.call(this);this.A=a;this.b=-1;this.o=b};
J0=function(a,b){if(0==b.Dc||0>=a.o||0>=a.b)return!1;var c=E()/1E3,d=b.Dc-a.A.currentTime;0<d&&(c+=d);return c-a.b<=a.o};
OY=function(a,b){BZ.call(this,[]);this.O=a;this.L=new yg;this.C=this.o=null;this.ca=new ho;this.K=null;this.$=b;this.oa=this.ea=!1;this.M=null;this.na=0;this.ga=this.ia=-1;this.ka=null;this.Ba=0;this.S=!1};
mla=function(a,b){if(null!==a.A){var c=1;a.na=0;F(b,function(a){if((0,window.isNaN)(a))throw YL(tW,null,"timeOffset",String(a));if(-1!=a&&-1>=a){var b=this.O;if((0,window.isNaN)(a)||!ga(a))throw Error("Incorrect time offset.");Ag(b.b,a)&&b.b.remove(a)}else if(b=ga(a)&&!(0,window.isNaN)(a)?this.O.b.get(a,[]):[],!gb(b)){this.na+=b.length;var f;f=0==a||-1==a?a:c++;b=new m0(b,a,f,this.$,this.A,this.g,this.D);if(Ag(this.L,a))throw YL(lla,null,"Multiple ad breaks cannot share same ad play time.");this.L.set(a,
b)}},a)}};
nla=function(a,b){a.M=Za(b);Rh(b,function(a){if(-1==a)return this.M=a,!0;this.M=this.M<a?a:this.M;return!1},a)};
M0=function(a,b){a.S=!1;a.Lf(b);0==b.Dc?a.Ji():(-1==b.Dc?(K0(a)||!V.b()&&a.ea)&&L0(a):F0(a.C),a.K=null)};
N0=function(a){null!=a.F&&(a.F.dispose(),a.F=null);a.ea=!1;null!=a.C&&a.C.Sb()};
O0=function(a){if(null==a.K){var b=ko(a.ca);if(null!=b){a.K=b;var c=a.L.get(a.K.b);if(null!=c)if(b=b.type,"requestAds"!=b&&"playAds"!=b)a.K=null,O0(a);else if(null!=a.ka&&J0(a.ka,c))a.K=null,O0(a);else if("requestAds"==b)a.S?(a.ca.isEmpty()||"playAds"!=lo(a.ca).type||ko(a.ca),M0(a,c)):(b=IZ(a),Cm(b,c,B0,a.dispatchEvent,a),Cm(b,c,"adError",a.bp,a),Cm(b,c,"allAdsCompleted",a.Aq,a),Cm(b,c,"contentPauseRequested",a.Ip,a),Cm(b,c,"contentResumeRequested",a.Ji,a),Cm(b,c,"userClose",a.Bz,a),Cm(b,c,"autoClose",
a.Az,a),Cm(b,c,"adBreakInitialized",a.Bq,a),c.init(a.ia,a.ga,a.H));else{if("playAds"==b)if(a.S)M0(a,c);else if(null!=a.o&&a.o.Za()&&a.Lf(a.o),a.o=c,a.o.setVolume(a.volume),n0(a.o,a.ia,a.ga,a.H),a.o.S){c=a.o;if(c.g<c.o.length){b=c.o[c.g];w0(c);try{c.C=new Am(c),c.b=x0(c,b,c.C)}catch(d){c.g++,z0(c)}}a.la("contentResumeRequested");a.C.getCurrentTime()>=a.Ba?null!=a.o&&a.o.start():a.K=null}else a.o.start()}else a.K=null,O0(a)}}};
L0=function(a){if(!a.oa){a.oa=!0;a.$.b=!0;try{DM(AM.getInstance(),44,{cmpl:!0})}catch(b){}a.la("allAdsCompleted");-1==a.M&&P0(a)}};
P0=function(a){KL(IL(),420706009)||BM.clear();null!=a.D&&(a=a.D.mf(),null!=a&&kS(a,BM.b))};
K0=function(a){return 0==a.L.Pa().length};
ola=function(a){return null!=a.o?a.o:null!=a.K?a.L.get(a.K.b):null};
PY=function(a){if(gb(a))throw Error("Ads manager creation failure, no ads.");var b=a[0],c=WU(b)&&V.b(),c=0!=V.A||c;switch(null!=MV(b)&&c?"vpaid":AS&&null!=NV(b)&&0!=V.A?"flash_vpaid":UU(b,CV)&&null==MV(b)&&FV(b,"nonlinear")?"overlay":FV(b,"linear")?"video":FV(b,"nonlinear")&&null==MV(b)?"overlay":null){case "overlay":return UU(b,CV)?new UZ(a):new RZ(a);case "video":return new D_(a);case "vpaid":return new e0(a);case "flash_vpaid":return 2==V.A?new i_(a):new c_(a)}throw Error("Ads manager creation failure, failed to determine ad type.");
};
Q0=function(a){hd.call(this);this.g=a;a=new TV(new dS);this.b=new LY(0,a,BM);this.b.P("adsManagerLoaded",this.dispatchEvent,!1,this);this.b.P("adError",this.dispatchEvent,!1,this);this.b.P("adLoadError",this.dispatchEvent,!1,this)};
R0=function(a,b,c){Xea();var d="",e=hN(),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.Zc=TR(b.b,a.g.C);b.um=a.g.H;kka(a.b,b,c)};
S0=function(a,b){UI.call(this,a,b)};
T0=function(a){this.app=a;dq.call(this,a.Ya)};
U0=function(a,b,c){this.W=a;this.b=b||"";this.o=c||null;this.A=!1};
V0=function(a,b){var c=a.W;if(c.Xa&&("detailpage"==c.b||"leanback"==c.b||"embedded"==c.b&&(c.ca&&c.kb||c.experiments.aa("html5_playlist_preload")))&&!a.A){a.A=!0;Pi("TIMING_ACTION")||Oi("TIMING_ACTION",a.W.csiPageType);a.W.Ia&&Oi("CSI_SERVICE_NAME",a.W.Ia);if(a.o){var c=a.o.B,d;for(d in c)JE(d,c[d],a.b);d=a.o.A;for(var e in d)KE(e,d[e],a.b);e=a.o;e.B={};e.A={}}KE("yt_pvis",Vca(),a.b);KE("yt_pt","html5",a.b);b&&!ME("pbs",a.b)&&a.g("pbs",b);e=a.W;("detailpage"!=e.b||"blazer"==e.g)&&ME("_start",a.b)&&
TE(a.b)}};
X0=function(a,b){this.b=a;this.g=ga(b)?b:null;if(fb(W0,this.b)){if(!ga(this.g)||0>this.g)throw Error("Must have valid offset");}else if(null!==this.g)throw Error("Must not have offset");};
Y0=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}};
pla=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};
qla=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:XX,flash:XN||"0",frm:a};yN(a);return a};
Z0=function(a){return a?-1!=a.toString().search(/(?:true|1)/i):!1};
$0=function(a,b){if(a){var c="getErrorCode"in a?a.vb():null;c?b.error_code=c:(c="getMessage"in a&&ha(a.getMessage)?a.b:a.message,c=Ia(c||"",50),b.error_message=c)}};
a1=function(a,b){if(a){var c=kV(a).reverse();b.ad_id=qb(c,iV(a)).join(",");c=lV(a).reverse();b.ad_sys=qb(c,bV(a)).join(",");c=DT(a);null!=c&&(b.aqi=c)}};
b1=function(a,b){if(a[b])return Z0(a[b]);var c=b.toLowerCase(),d;for(d in a)if(d&&d.toLowerCase()==c)return Z0(a[d]);return!1};
c1=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};
d1=function(a,b,c){var d=new OM;d.If=b.baseYtUrl;d.Xf=c.videoId;d.Fm=!0;d.Qs=!0;d.Rs=a.ca;d.showContentThumbnail=a.showContentThumbnail;d.lg={};c.kb&&(d.lg.ctrl=c.kb);c.rb&&(d.lg.ytr=c.rb);c.nc&&(d.lg.ytrcc=c.nc);c.isMdxPlayback&&(d.lg.mdx="1");a.B?(d.lk=!0,d.Ix=!0,d.showContentThumbnail=!1,d.Dm=!0,d.Em=!0,d.Fm=!1):a.C&&(d.lk=!0);d.Dp=a.Xa;return d};
g1=function(a){var b=new MX;b.B=a.g.Da;var c=a.app.D.Ka();b.Zf=c.width;b.Yf=c.height;b.nd=c.width;b.md=100;b.So=!0;c=new CL;c.aa=x(e1(a).experiments.aa,e1(a).experiments);c.b=x(e1(a).experiments.b,e1(a).experiments);c.g=x(e1(a).experiments.F,e1(a).experiments);b.xj=c;if(c=b.So?pu():-1)b.D=c;a.g.tagForChildDirected&&(b.lj=!0);a.g.kb&&(b.Fi=!0);c=f1(a);b.Eb={CA_TYPE:AS?"flash":"image",CONTENT_V:c.videoId,CPN:c.clientPlaybackNonce,LACT:rla(a),VIS:sla(a)};Ob(qla(),function(a,c){b.Eb[c.toUpperCase()]=
a});
b.afcRmFallback=a.g.H;e1(a).experiments.aa("ad_block_content_id")&&(b.A="yt_"+f1(a).videoId);b.language=e1(a).oa;b.di=tla(e1(a).experiments);return b};
tla=function(a){var b=null,c=null;iz().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.aa("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 iz();var k;a=new Dd(function(a,b){k=new fe(function(){e?a("NO_BID"):b(f)},d);
k.start()});
a=Ld([iz(),a]);Qd(Sd(a,v),function(){k.dispose()});
return a};
rla=function(a){return{toString:function(){return null==a||a.isDisposed()?a=null:pu().toString()}}};
sla=function(a){return{toString:function(){return null==a||a.isDisposed()?a=null:WH(e1(a)).toString()}}};
ula=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*E()-b).toString()}}};
h1=function(a,b,c,d){this.g=this.A="";this.o=a;this.C=b;this.b=c;this.B=d};
k1=function(a){var b=i1(a);b.format="2_3";b.at="2_3";b.trsp="1";j1(a.b,3,b)};
i1=function(a){var b={};b.l_ns=a.C;b.l_state=a.B;b.break_type=a.o.b;b.sst=Y0(a.o);b.sidx=0;a.A&&(b.at=a.A);a.g&&(b.ad_id=a.g);return b};
l1=function(a){G.call(this);this.g=new fe(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=Od();this.A=!1};
o1=function(){var a=r("yt.www.watch.ads.loadAfc");ha(a)?(a(),m1=!0):n1=!0};
p1=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"};
r1=function(){var a=r("window.google_show_companion_ad"),b;b=r("yt.www.watch.ads.getGlobals");ha(a)&&ha(b)?(b=b(),b=!(!b||!b.length)):b=!1;b?a():q1=!0};
u1=function(a){r1();s1();return t1(a)};
t1=function(a){v1||(v1=new l1(a));a=v1;a.A||(a.g.start(),a.A=!0);return a.b.o};
s1=function(){v1&&(v1.dispose(),v1=null)};
w1=function(){var a=r("yt.www.watch.ads.setCompanion");a&&a()};
vla=function(a){var b=r("yt.www.watch.ads.showForcedMpu");b&&b(a)};
y1=function(a,b,c,d){nk.call(this);this.C=!!b;this.D=a;this.g=c||a;this.G=!!d;this.b=new Dw(this);this.B=this.F=null;this.A=this.o=!1;b&&(Bc&&a.setAttribute("draggable","true"),a.style.setProperty("touch-action","none"));x1(this)};
x1=function(a){a.B=null;a.F=null;a.b.U(a.g,z1("over"),a.jt);a.b.U(a.g,"touchstart",a.Rm);a.C&&a.b.U(a.g,z1("down"),a.zA)};
A1=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};
z1=function(a){return window.navigator.msPointerEnabled?"MSPointer"+a.charAt(0).toUpperCase()+a.substr(1):"mouse"+a};
B1=function(a,b){this.g=a;this.b=b};
C1=function(a){return a.b-a.g};
D1=function(a,b){return a.g+b*C1(a)};
E1=function(a,b,c){return C1(a)?$e((b-a.g)/C1(a),0,1):null!=c?c:window.Infinity};
F1=function(){this.g=this.position=this.A=this.b=this.B=this.o=this.width=window.NaN};
G1=function(a,b,c,d,e){var f=b.tq/b.rows,k=Math.min(c/(b.wq/b.Zb),d/f),l=b.wq*k,m=b.tq*k,l=Math.floor(l/b.Zb)*b.Zb,m=Math.floor(m/b.rows)*b.rows,n=l/b.Zb,t=m/b.rows,u=-b.yx*n,y=-b.XE*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 gf(n,t)};
H1=function(a,b,c,d){nk.call(this);this.b=a;this.g=d;this.videoData=null;this.adType=c;this.adSystem=b};
wla=function(a,b){this.b=a;this.g=b||0};
I1=function(a){var b=[];F(a.split("_"),function(a,b){this[b]=Ua(a)},b);
return new wla(Ub(xla,b[1])?b[1]:0,Ub(yla,b[2])?b[2]:0)};
zla=function(){this.clickThroughUrl="";this.isSkippable=!1;this.skipShown=this.skip=v;this.skipTime=0;this.videoUrl=this.videoId="";this.adSystem=0;this.muteAdInfo=this.whyThisAdInfo=null;this.whyThisAdClosed=this.whyThisAdClicked=this.muteAd=this.sendAdsPing=v};
J1=function(a){var b;b=["div","video-ads",["div","video-ad-status-bar",["div","video-ad-label",O("YTP_ADVERTISEMENT")]],["div","ad-container"]];S.call(this,b);this.o=a;this.b=this.B=this.A=null};
K1=function(a){a.A||(a.A=a.qa["ad-container"],T(a.o).S&&J(a.A,"ad-container-single-media-element-annotations"));return a.A};
M1=function(a){a.b&&(T(a.o).S?(le(a.b.b,"ad-video"),L1(a.o.app,a.b),a.b=null):(Hf(a.b.b),Ky(a.b)))};
N1=function(a){if(!a.B){var b=Cf("div");je(b,["video-click-tracking","ad-video"]);K1(a).appendChild(b);a.B=b}return a.B};
Ala=function(a){this.b=a};
Bla=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};
O1=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}};
Cla=function(a,b){this.B=null;this.o=window.NaN;this.g=null;this.b=a;this.A=b};
P1=function(a,b,c){a.b.Y("AD_LOGGING_EVENT",b,c)};
S1=function(a,b,c){Q1(a);var d=R1(a);c&&qa(d,c);d.ad_error=b;P1(a,7,d)};
R1=function(a){var b={},c=a.b.videoData,d=a.b.A.zh(),e=T1(a.b);a1(a.b.Cb(),b);d&&0<d&&(b.ad_len=d);b.ad_v="0";c&&c.videoId?b.ad_v=c.videoId:e&&(c=Jg(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.Pf():null)&&(b.ad_cpn=e);b.format=a.b.dd();b.at=a.b.Ge();b.ad_mt=Math.round(1E3*Math.max(Dla(a.b),0));return b};
Q1=function(a){a.B||(a.B="InstreamAdDisplay ("+a.b.dd()+")")};
U1=function(a,b){G.call(this);this.A=Math.max(0,a);this.o=this.g=0;this.B=b;this.b=window.NaN};
W1=function(a,b,c,d,e,f,k){H1.call(this,b,a,2,c);this.K=!1;this.D=this.O=this.L=null;this.b.subscribe("control_toggle_play_pause",this.ku,this);this.b.subscribe("control_play",this.$l,this);this.b.subscribe("control_pause",this.Zl,this);this.B=new Cla(this,this.b);this.o=new Ms(this);this.A=V1(b);this.A.subscribe("statechange",this.iu,this);this.A.subscribe("internalAbandon",this.zq,this);this.A.subscribe("internalvideodatachange",this.ju,this);this.C=this.F=!1;this.S=d;this.M=!!e;this.ba=!!f;this.G=
k;this.H=new U1(15E3,x(this.Lj,this))};
Y1=function(a,b){var c=e1(a.b);a.b.g.ca&&"3"==c.A&&(c=a.b.app.D,c.G=!b,X1(c))};
a2=function(a){UE("ad_to_video",["pbresume"]);a.G&&KE("yt_abt",a.G,"ad_to_video");a.videoData&&a.videoData.clientPlaybackNonce&&KE("ad_cpn",a.videoData.clientPlaybackNonce,"ad_to_video");JE("adc",void 0,"ad_to_video");uI(V1(a.b));Z1(a.b,0);$1(a.b,0);a.Y("adEnd",a);Y1(a,!0)};
b2=function(a,b){e1(a.b).experiments.aa("html5_ad_error_releases")?uI(a.A):bI(a.A);Z1(a.b,0);a.Y("adError",b)};
c2=function(a){return a.videoData&&a.videoData.g?a.videoData.g.mimeType:null};
T1=function(a){return a.videoData&&a.videoData.ka?By(a.videoData.ka.g()):null};
Dla=function(a){return a.A?a.A.getCurrentTime():0};
d2=function(a){a=a.Cb();return a?(a=a.D.get("why_this_ad"))?{menuTitle:a.A,targetingReasonHeader:a.B,targetingReasons:rb(a.C),closeButton:a.o,adSettingsLink:rb(a.g),controlText:a.G,continueButton:a.F,cancelButton:a.D}:null:null};
e2=function(a){a=a.Cb();if(!a)return null;a=a.D.get("mute");if(!a)return null;for(var b=bX(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}};
Ela=function(a,b){this.b=a;this.B=b;this.b.dd();this.g=this.A=0;this.o=null};
f2=function(a,b,c){a.b.Y("AD_LOGGING_EVENT",b,c)};
g2=function(a){var b={};a1(a.b.Cb(),b);a.A&&a.g&&(b.ot=a.g-a.A);b.ad_ps=a.B.Qa()?2:a.B.app.ka?1:0;b.format=a.b.dd();b.at=a.b.Ge();return b};
h2=function(a,b,c,d){H1.call(this,b,a,1,c);this.o=null;this.C=!1;this.F=null;this.B=new Ela(this,b);this.A=new Ms(this);this.D=!!d};
i2=function(a,b){a.F!=b&&(a.F=b)};
j2=function(a,b,c,d){G.call(this);this.L=null;this.S=a;this.g=b.qb;this.F=b;this.H=b.getId();this.b=c;this.C=d;this.o=new h1(this.g,this.Gg(),c,d);this.B=null;this.O=new Am(this);this.A=new Am(this);this.M=/^(http(s)?:\/\/)(.*.)?youtube.com\/.*$/};
k2=function(a){var b=new X0(2,10);a.g=b;a.o.o=b};
l2=function(a,b){a.L=b;var c=b.dd();a.o.A=c};
m2=function(a,b){var c=r("yt.www.watch.ads.setAdId");c&&c(b);a.o.g=b};
n2=function(a){a=Y0(a.g);return 0==a||-1==a?a:1E3*a};
o2=function(a){u1(e1(a.b).experiments).then(function(){k1(this.o)},v,a)};
t2=function(a){var b=a.F,c=a.g;b.b=a.L;b.qb=c;H(b,b.b);0==b.xa&&(a=b.b.Ge(),b.o.ga.at=a);b.b instanceof W1?b.g=!0:b.b instanceof p2?b.isVisible=!1:b.b instanceof q2?b.isVisible=!1:b.b instanceof r2&&(b.isVisible=!1);b.A="loaded";s2(b)};
Fla=function(a){this.b=a};
p2=function(a){H1.call(this,a,2,3,null);this.B=this.A=this.o=0};
u2=function(a){a.o&&(Ui(a.o),a.o=0,a.A=0,a.B=0)};
v2=function(a,b,c){j2.call(this,2,a,b,c);this.D=new Fla(this.b.g);p1()};
w2=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.ab,this.D=c,b=this.C,c=b.indexOf(";sz="),a=Kj(b.substring(c),";"),b=b.substring(0,c).split("pfadx"),a=2!=b.length?null:{ox:b[0],HE:b[1],LE:a})&&(this.o=a.ox,this.B=a.HE,this.F=a.LE)};
x2=function(a){this.g=a?a:""};
r2=function(a,b,c,d){h2.call(this,1,a,b,d);this.G=c};
y2=function(a,b,c){j2.call(this,1,a,b,c);a=this.b.g;this.ba=a.ea?new x2(a.adTag):new w2(a.adTag,a,this.H)};
z2=function(a,b,c,d){y2.call(this,a,b,c|d);this.K=c;this.G=d;this.D=null;p1()};
A2=function(a,b){var c=b.Cb(),d=lV(c);d.unshift(bV(c));for(c=0;c<d.length;++c){var e=Gla[d[c].toUpperCase()];if(e){a.D=e;return}}a.D=0};
B2=function(a,b){this.B=[];this.L=a;this.K=b||null;this.A=this.b=!1;this.o=void 0;this.G=this.M=this.D=!1;this.C=0;this.g=null;this.F=0};
D2=function(a,b,c){a.b=!0;a.o=c;a.A=!b;C2(a)};
F2=function(a){if(a.b){if(!a.G)throw new E2;a.G=!1}};
H2=function(a,b,c){G2(a,b,null,c)};
G2=function(a,b,c,d){a.B.push([b,c,d]);a.b&&C2(a)};
I2=function(a){return Rh(a.B,function(a){return ha(a[1])})};
C2=function(a){if(a.C&&a.b&&I2(a)){var b=a.C,c=J2[b];c&&(q.clearTimeout(c.xa),delete J2[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.K,b);p(l)&&(a.A=a.A&&(l==b||l instanceof Error),a.o=b=l);if(Bd(b)||"function"===typeof q.Promise&&b instanceof q.Promise)d=!0,a.D=!0}catch(m){b=m,a.A=!0,I2(a)||(c=!0)}}a.o=b;d&&(l=x(a.H,a,!0),d=x(a.H,a,!1),b instanceof B2?(G2(b,l,d),b.M=!0):b.then(l,d));c&&(b=new K2(b),
J2[b.xa]=b,a.C=b.xa)};
E2=function(){ra.call(this)};
L2=function(){ra.call(this)};
K2=function(a){this.xa=q.setTimeout(x(this.g,this),0);this.b=a};
M2=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);j2.call(this,2,a,b,d)};
N2=function(){this.B=new S(["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.P("click",this.F,this);this.A=new S(["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.P("click",this.D,this);S.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.qa["ad-carousel-list"];this.o=0;this.b=[]};
Hla=function(a,b){a.clear();a.b=N(b,function(a){var b=new S(["li","ad-carousel-listitem",["div","ad-carousel-item",a]]);H(b,a);return b});
a.wa("items",a.b)};
P2=function(a){a.C&&is(a.C,"left",(2>a.b.length?0:-a.o*a.b[1].element.clientWidth)+"px");a.B.gb(0<a.o);a.A.gb(a.o<a.b.length-O2(a))};
O2=function(a){return 2>a.b.length?1:Math.floor((a.element.clientWidth-a.b[0].element.clientWidth)/a.b[1].element.clientWidth)+1};
Q2=function(){this.b=new N2;this.B=new Dw(this);H(this,this.B);this.C=new fe(this.Am,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",O("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",
O("YTP_SPONSORED_PRODUCT_INFO")]]]],this.b];FF.call(this,a);this.A=this.qa["iv-btp-block-clicks"];this.o=new fe(pa(function(a){Fs(a,!1)},this.A),1E3);
H(this,this.o);this.B.U(window,"resize",this.wy)};
Ila=function(a,b){a.clear();Fs(a.A,!0);var c=N(b,x(a.Cx,a));a.wa("title",0<b.length?Via(b[0]):"");Hla(a.b,c);a.Am()};
Lla=function(a){return Jla().then(pa(Kla,a))};
Jla=function(){R2||(R2=Mla()?Hd():new Dd(function(a){ej("watchAdsInit",a)}));
return R2};
Mla=function(){var a=r("yt.www.watch.ads.promotionShelfShow");return ha(a)};
Kla=function(a){var b=r("yt.www.watch.ads.promotionShelfClear");b&&b();b=r("yt.www.watch.ads.promotionShelfShow");null!=b&&b(a)};
S2=function(a,b){H1.call(this,a,14,14,b);this.o=new Q2;H(this,this.o)};
Nla=function(a){var b=a.g.Cb().H,c=ke(b,function(a){a=a.nf().Af.show_in_promotion_shelf;return null!=a?a:!1});
gb(c)&&(c=b);gb(c)||(Ila(a.o,c),Lla(a.o.element).then(a.o.start,null,a.o))};
T2=function(a,b,c){j2.call(this,14,a,b,c)};
U2=function(a,b,c){j2.call(this,14,a,b,c)};
V2=function(a,b){return"9t_D9IIh_ZI"==b.ga||a.experiments.aa("enable_html5_freewheel_longform")};
Ola=function(a,b,c,d,e){this.A=a;this.o=b;this.b=c;this.W=e1(this.A);this.B=d;this.C=f1(this.A).lengthSeconds;this.D=e;this.g="html5";W2(this)&&"embedded"==this.W.b?this.g="html5_embed":iA||hA?this.g="html5_ios":Jp("android")?this.g="html5_android":Rp()?this.g="html5_wp":Mp()?this.g="html5_ps3":"leanback"==this.W.b?(a=(Yb(window,"environment","brand")||"").toLowerCase(),b=(Yb(window,"environment","model")||"").toLowerCase(),this.g="roku"==a||"bskyb"==a?"roku":"wiiu"==b?"wii":"html5_tv_leanback"):
Qp()?this.g="html5_wii":W2(this)&&(this.g="html5_desktop")};
Y2=function(a){var b="";a.b.A&&!a.b.o?b=";linear-skippable":!a.b.A&&a.b.o&&(b=";video");return X2(a)+b};
X2=function(a){return Z2(a.o)?"preroll":$2(a.o)?"postroll":"midroll"};
b3=function(a){return(a=a.A.o)?Rh(a.o,function(a){return a3(a)||$2(a)}):!1};
W2=function(a){return!b3(a)||V2(a.W,a.b)};
q2=function(a,b){h2.call(this,4,a,b)};
c3=function(a,b,c){j2.call(this,4,a,b,c);var d=this.b.g;this.D=C(d.Ia);var e=f1(this.b)&&f1(this.b).spacecastModule;this.G=new Ola(b,a,d,c,!!e)};
d3=function(a,b,c){this.o=a;this.b=b;this.g=c||0};
Pla=function(a){return 0<((a.b|a.g)&3)};
e3=function(a,b,c,d,e){nk.call(this);this.D=!0;this.g=!1;this.isVisible=!0;this.A="unloaded";this.F=!1;this.xa=b;this.o=a;this.qb=c;this.C=d;this.B=this.b=null;this.G=!!e};
h3=function(a){return Z2(a)?f3(a)&&g3(a)?-0x8000000000000:0:ga(a.qb.g)?1E3*Y0(a.qb):0x8000000000000};
Qla=function(a){var b=!e1(a.o).experiments.aa("disable_fetching_previous_nonadjacent_midrolls");return Z2(a)||b&&a.o.b&&1E3*a.o.b.getCurrentTime()>=h3(a)?!1:Qk(a.C,function(a){switch(a.Fb()){case 1:case 2:case 3:case 5:return!0;default:return!1}})};
f3=function(a){return"loaded"==a.A||"error"==a.A};
Z2=function(a){return 1==a.qb.b};
g3=function(a){if(!f3(a))throw Error("Preroll status is undefined before ad load.");return Z2(a)&&a.g};
a3=function(a){return 2==a.qb.b};
$2=function(a){return 3==a.qb.b};
l3=function(a){a.A="loading";Z2(a)&&!Rh(a.C,Pla)&&hq(a.o);if(a.G)a.A="loaded",a.g=!0,s2(a);else{var b=a.C.shift();b?(Z2(a)&&i3(a.o,"nl"),b=b.create(a,a.o),H(a,b),b.load()):(j1(a.o,2,j3(a,{})),k3(a,!1),a.A="error",s2(a))}};
m3=function(a){a.b&&(a.b.Ga("adEnd",a.Dq,a),a.b.Ga("adError",a.cu,a),a.b.Ga("AD_LOGGING_EVENT",a.$q,a),a.b.Ga("select",a.bu,a),a.b.Ga("adCompanionInitialized",a.du,a))};
s2=function(a){a.Y("adBreakComplete",a)};
k3=function(a,b){a.B&&(a.B.tg({FILLED_OPPORTUNITY:b?1:0}),a.B.dispose(),a.B=null)};
j3=function(a,b){b.break_type=a.qb.b;b.sst=Y0(a.qb);b.sidx=0;return b};
n3=function(a){var b=0;a.L&&(b|=1);a.K&&(b|=2);var c=0;a.D&&(a.F&&(c=4),b||a.ba||(b=c,c=0));a=new yg;a.set(3,b);a.set(4,c);return a};
o3=function(a,b){var c=[];if(a.fa)return c.push("pla"==(a.forceAdType||"").toLowerCase()?new d3(8,16):new d3(4,0)),c;if(a.independentBreakOffsets&&5==b)return a.ba&&c.push(new d3(7,16)),c;if(a.M){var d=0;if(a.o||a.A)d|=1;a.O&&(d|=4);a.S&&(d|=8);c.push(new d3(5,d))}d=0;a.G&&(a.o&&(d|=1),a.A&&(d|=2),a.O&&a.D&&(d|=4),a.S&&a.D&&(d|=8));var e=n3(a),f=e.get(3);d&&f&&Rla(a,b)?c.push(new d3(3,d,f)):(d&&c.push(new d3(2,d)),f&&c.push(new d3(1,f)));a.independentBreakOffsets||f&4||!a.ba||c.push(new d3(7,16));
(d=e.get(4))&&c.push(new d3(1,d));return c};
p3=function(a){this.b=a};
q3=function(a){var b=[];F(Sla(a),function(a,d){var e=new e3(this.b,d,a,o3(this.b.g,a.b));b.push(e)},a);
return b};
Sla=function(a){var b=a.b.g,c=[];if(b.M&&!V2(e1(a.b),b))c=r3;else if(b.ia){var d=b.ia.split(",");for(a=0;a<d.length;a++){var e=Ua(d[a]),e=0>e?new X0(3):0<e?new X0(2,e):new X0(1);c.push(e)}}else c=r3;if(b.independentBreakOffsets)for(b=b.independentBreakOffsets.split(","),a=0;a<b.length;a++)c.push(new X0(5,Ua(b[a])));Bb(c,pla);return c};
Wla=function(a,b){this.W=a;this.B=this.W.isMobile;this.C="leanback"==this.W.b;this.b=this.B||this.C;this.ca=!this.C&&!lA(a);this.o=Z0(b.instream);this.isLiveStream=1==b.livestream;this.A=Z0(b.trueview);this.da=Z0(b.aftv);this.ia=b.ad_slots;this.independentBreakOffsets=b.independent_break_offsets;this.adFlags=b.ad_flags||0;this.ka=b.cafe_experiment_id;this.adTag=b.ad_tag;this.Ta=!!b.adtest;this.afvAdTag=b.afv_ad_tag;this.Ba=Tla(this.afvAdTag);this.afvInvideoAdTag=b.afv_invideo_ad_tag;this.oa=(0,window.parseInt)(b.ad_age,
10);this.applyFadeOnMidrolls=!!b.apply_fade_on_midrolls&&(this.o||this.A)&&!this.W.useMediaVolume;this.Ha=b.cid;this.ga=Xy(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.Da=(0,window.parseInt)(b.forced_skip_offset,10);this.forceAdType=b.force_ad_type;this.forceAdUrl=b.force_ad_url;this.Ia=b.freewheel_ad_tag;this.gender=ac(Ula,function(a){return a==b.ad_gender});
this.na=b.dbp;this.H=Z0(b.afc_rm_fallback);this.ab=!!b.mpu;this.F=Z0(b.afv)&&!this.b;this.K=this.da&&this.A;this.L=this.da&&this.o&&!Z0(b.no_afv_instream);this.G=Z0(b.dclk);this.ea=Z0(b.gpt_migration);this.fa=Z0(b.forced_ad);this.M=1==(0,window.parseInt)(b.tpas_ad_type_id,10);this.bb=!!b.fqsf;this.O=Z0(b.invideo)&&!this.b;this.S=Z0(b.mpu)&&!this.b;fb(this.Ba,"yt_mabv");this.ba=!!b.pla;this.Ja=Z0(b.shortform);this.D=Z0(b.sffb);this.jb=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.Na=b.pla_ad_tag;fa(b.show_content_thumbnail)&&(this.showContentThumbnail=b.show_content_thumbnail);this.tagForChildDirected=Z0(b.tag_for_child_directed);this.serverPrefetchedVast=b.server_prefetched_vast;this.surveyCreativeData=b.surveyCreativeData;
this.$=this.da&&this.D&&!this.F;this.va=this.F||this.$;this.Sa=(0,window.parseInt)(b.ad_device,10);this.ra=b.tpas_video_id;this.Oa=b.tpas_partner_id;this.vmap=b.vmap;this.Ub=this.W.Ub;this.kb=b.post_ad_requests;this.showContentThumbnail=!0;this.Xa=Vla(b.serialized_ad_ux_config)};
Rla=function(a,b){if(B(C(a.dynamicAllocationAdTag)))return!1;var c=(a.o||a.A)&&a.G;a.D&&a.G&&(c=c||a.O||a.S);if(!c)return!1;c=a.K||a.L;if(!(c||a.D&&a.F))return!1;if(1==b&&a.serverPrefetchedVast)return!0;var d=a.dynamicAllocationAdTag.length+330+(a.ea?25:102);window.document.referrer&&(d+=ua("ref="+ua(window.document.referrer)).length);c||(d+=41);return d<=a.maxDynamicAllocationAdTagLength};
Tla=function(a){if(B(C(a)))return[];a=(new M(a)).b.get("channel");return null!=a?a.split("+"):[]};
Vla=function(a){if(a)try{var b=$f(a);return new JM(b)}catch(c){}return null};
s3=function(a,b){G.call(this);this.C=a;this.o=new Am(this);H(this,this.o);this.g=null;this.b=!1;this.o.P(b,"companionImpression",this.B);this.o.P(b,"companionClick",this.A)};
u3=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=e1(a).experiments;this.L=c.aa("enable_dynamic_ad_break")&&!!this.D.lengthSeconds&&600<this.D.lengthSeconds;this.M=c.b("dynamic_ad_break_pause_threshold_sec")||5;this.S=c.b("dynamic_ad_break_seek_threshold_sec")||120;this.L&&t3(this.b,this.K,this)};
v3=function(a){return(a.b.A?a.G:!!a.b.o&&0==a.b.o.o.length)&&1==a.b.getPresentingPlayerType()};
w3=function(a,b){var c=null!=Oj(e1(a.b).M).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=E()/1E3-k-a.B;c=Qj("/gen_204?"+Qg({a:"longform-dynamic-ad-break-desktop-"+b,vid:d,eid:e,mt:f,cwt:k,dt:E()/1E3,dab:a.A,paet:Math.max(a.H.g(),a.C),debug:c}),{});Tp(c)};
x3=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.Hs()};
y3=function(a,b){a.B[b]&&(oJ(a.b.b,[a.B[b]],void 0),delete a.B[b])};
z3=function(a,b,c,d){0>=c||((0,window.isNaN)(a.g)||Ti(a.g),c=E()+c,a.g=0==d?Nq(x(a.nu,a,b,c,100),0):Nq(x(a.mu,a,b,c,100),0))};
A3=function(a,b,c){a=f1(a.b).Db;b.setVolume(c*a)};
B3=function(a){x3.call(this,a)};
C3=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)};
Xla=function(a,b){D3(a);0<b&&(a.C=Ri(x(a.A,a),1E3*b))};
D3=function(a){Ti(a.C);a.C=window.NaN};
F3=function(a,b){if(!a.B||!a3(b)&&!$2(b))return!1;var c=a.b.g.g;if(0>=c||0>=a.o)return!1;var d=E()/1E3,e=E3(a,b)-a.b.b.getCurrentTime();0<e&&(d+=e);return d-a.o<=c};
E3=function(a,b){return $2(b)?a.b.b.getVideoData().lengthSeconds:Y0(b.qb)};
G3=function(a,b){G.call(this);this.K=this.b=null;this.M=[];this.O=window.NaN;this.o=b;this.G=[];this.A={};this.D={};this.g=a;var c=a.g,d=!c.isLiveStream&&Rh(this.o,function(a){return a3(a)||$2(a)});
this.B=new C3(this.g,this,d);this.C=c.applyFadeOnMidrolls?new x3(a):new B3(a);this.ea=new u3(this.g,this.B);this.$=Rh(this.o,function(a){return Z2(a)})};
Yla=function(a){a.G.length||(a.G=ke(a.o,function(a){return"unloaded"==a.A}),0==a.G.length?hq(a.g):(a.$||hq(a.g),H3(a)))};
H3=function(a){if(a.G.length){var b=a.G.shift();b.subscribe("adBreakComplete",a.jg,a);b.subscribe("adCompanionInitialized",a.Xl,a);l3(b)}};
Zla=function(a,b){function c(a){return a&&5!=a.qb.b}
var d=eb(a.o,b),e=tb(a.o,d+1);return{previous:bb(tb(a.o,0,d),c),next:bb(e,c)}};
I3=function(a,b,c){var d=h3(b);if(!(0,window.isNaN)(d)){var e={};e.priority=-2!=Y0(b.qb)?2:3;e.id=String(b.getId());e.visible=b.isVisible;d=a.C.Bs(b,d);c=a.C.As(b,c);c=new aq(d,c,e);a.D[b.getId()]=c;a.g.tb([c]);a.C.no(b)}};
J3=function(a,b){var c=b.getId();a.D[c]&&(y3(a.C,c),oJ(a.g.b,[a.D[c]],void 0),delete a.D[c])};
M3=function(a,b){if(p(b)){var c=a.Mj(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.M.push(b):c.show();return}a.lf(a.b)}if(F3(a.B,c))a.b=null,c=a.D[c.getId()],c.visible||(c.visible=!0,a.g.b.tb([c],1));else{5!=c.qb.b&&(a.b=c);c.subscribe("adBreakComplete",a.Tl,a);c.subscribe("adCompanionInitialized",a.Xl,a);if(c.g){1!=c.qb.b&&UE("video_to_ad",["apbs"]);K3(a.g);var d=a.B.g(),d={tfla:0<d?Math.floor(E()/1E3-d):0};L3(a.g.ba,"show_instream_ads",d)}a.C.ou(c);c.show()}}}};
N3=function(a,b,c){G3.call(this,a,b);this.H=[];this.L=[];this.F=[];this.ca=c;this.ba=window.NaN;this.S=a.g.g;var d=!e1(a).experiments.aa("disable_fetching_previous_nonadjacent_midrolls"),e=1E3*a.b.getCurrentTime(),d=d?null:db(b,function(b){return a.b&&e>=h3(b)});
if(1<=c)for(c=0;c<b.length;c++){var f=b[c];if(Qla(f)&&f!=d){var k=new e3(f.o,f.xa,f.qb,f.C,!0);b[c]=k;this.H.push(f)}}this.$||this.mg()};
O3=function(a){Ti(a.ba);a.ba=window.NaN};
P3=function(a,b){G3.call(this,a,b);this.ba=a;this.ca=!0;this.H=[];this.ga=1;this.L=0};
Q3=function(a){if(null==a.b&&0<a.H.length){var b=a.H[0];b.isVisible?(a.ca=a.F.H,a.fa=Math.ceil(E()/1E3),b.subscribe("adBreakComplete",a.S,a),a.b=b,b.show()):a.S()}else null!=a.b&&a.L++};
$la=function(a,b){this.G=a;this.C=b;this.F=E();this.B=0;this.b=a.g;this.A={};this.D=new Ala(a);var c=[];this.b.M&&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.O&&c.push("1_1"),this.b.S&&c.push("1_3"));this.b.K&&c.push("2_2_1");this.b.L&&c.push("2_2");this.b.F&&c.push("2_1");(this.b.va||this.b.H)&&c.push("2_3");this.b.ba&&c.push("14_14");this.g=c.join(",");this.o="";this.A.allowed=this.g;(c=this.b.excludedAds)&&(this.A.ex_ads=c)};
ama=function(a){this.b=a};
L3=function(a,b,c){var d=R3,d=d||R3;Rh(d,function(a){return e1(this.b).experiments.aa(a)},a)&&(c=c||{},c.cdp=1,c["var"]=b,c.sdkv="h.3.0",a.b.log(c))};
S3=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};
U3=function(a,b,c){G.call(this);this.g=a;this.A=b;this.F=c;this.B=this.C=-1;this.b=T3(this.A.he());a=this.A.he();a.length&&(a=a[a.length-1],-1==a&&this.g.tb([this.b[a]]));0<this.g.g.g&&this.g.subscribe("endseeking",this.o,this)};
bma=function(a,b){V3(a);0<b&&(a.B=Ri(x(a.o,a),1E3*b))};
V3=function(a){-1!=a.B&&(Ti(a.B),a.B=-1)};
T3=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 aq(-1==d?0x8000000000000:1E3*d,0x8000000000000==e?e:e-1,{id:String(d),visible:!0})}d=a[a.length-1];b[d]=new aq(-1==d?0x8000000000000:1E3*d,0x8000000000000,{id:String(d),visible:!0});return b};
W3=function(){G.call(this)};
X3=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;t3(this.b,this.zu,this)};
Y3=function(a,b){return 0!=b&&-1!=b&&-2!=b&&0<b&&b<a.H};
cma=function(a){a=a.getAttribute("breakType");return!!a&&Rh(a.split(","),function(a){a=Oa(a);return"linear"==a})};
dma=function(a){var b,c=3;b=!0;c=c?c:0;b=b?b:!1;var d=(0,window.parseFloat)(La(a/1E3,2,c));a=Math.floor(d/60);var e=Math.floor(a/60);a%=60;c=La(d%60,2,c);b=c=e||b?e+":"+La(a,2)+":"+c:a+":"+c;return 1==b.split(":")[0].length?"0".concat(b):b};
fma=function(a,b){var c=Math.max(Math.abs(a.A),Math.abs(a.D));F(b,x(function(a){var e=Rh(b,function(b){return a!=b&&b>=a-c&&b<=a+c}),f=ema(this,a);
!e&&f&&(this.o[f]=a)},a));
return 0<Tb(a.o)};
ema=function(a,b){var c=1E3*Math.round((b+a.D)/1E3),d=b+a.A,e=b+a.F;return Y3(a,b)&&Y3(a,c)&&Y3(a,d)&&Y3(a,e)?c:null};
Z3=function(a,b,c,d){0>=c||(d=0==d?a.yu:a.xu,c=E()+c,a.g=Nq(x(d,a,b,c,100),0))};
$3=function(a,b,c){a=f1(a.b).Db;b.setVolume(c*a)};
a4=function(a){G.call(this);this.D=this.o=this.A=this.F=this.g=null;this.L=this.H=!1;this.b=a;this.K=this.G=null;this.O={};this.S=new Am(this);this.C=new Am(this);this.M=this.B=null};
gma=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=S3(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};
hma=function(a,b){var c=cs(b),d=c.childNodes[0];if(!d)return b;var e=bb(Kf(d),function(a){return"#1"==a.getAttribute("timeOffset")});
if(e){var f=bb(Kf(e),function(a){return"Extensions"==a.localName}),k=f?Kf(f):[],k=bb(k,function(a){return"YTBreakTime"==a.getAttribute("type")}),f=(f=f.removeChild(k))?Kf(f):[],l=e,m=1;
F(f,function(a){a=a.getAttribute("timeOffset");a=gma(e,a,m);m++;d.insertBefore(a,l.nextSibling);l=a});
d.removeChild(e)}f=a.B.Pr(d);f||(Mb(a.B),a.B=new W3);return e||f?ds(c):b};
jma=function(a){var b=d1(a.b.g,e1(a.b),f1(a.b));b.Jx=!0;b.vo=!1;b.Mr=10;b.am=a.B.jp();return b};
b4=function(a,b){var c=a.D?a.D.g():0,c={tfla:0<c?Math.floor(E()/1E3-c):0};L3(a.b.ba,b,c)};
kma=function(a,b){var c=TU(b),d=c4(b);if(b1(c,"rm")&&a.b.g.H)return a.A=new p2(a.b),d4(a,a.A),a.A.show(),!1;if(b1(c,"blockAllAds"))return a.g.tg(),a.A=new r2(a.b,a.g,1,!0),!1;if(b1(c,"hideMaster")&&14!=d)return a.A=new r2(a.b,a.g,0,!0),!1;c=a.g;14==d?(a.A=new S2(a.b,c),e4(a,b)):a.A=new h2(d,a.b,c,!0);a.A.show();a.H=!1;return!0};
e4=function(a,b){p1();var c;if(b){var d=b.A.b,e=f4(b);c=14==I1(ET(b)).b?16:4;d=0<d?new X0(e,d):new X0(e);c=new h1(d,YU(b),a.b,c)}u1(e1(a.b).experiments).then(pa(function(a){a&&k1(a)},c),v)};
h4=function(a,b){if(b&&"adLoadError"==b.Fb()){var c=a.b.g;!c.b&&c.va&&(a.A=new p2(a.b),d4(a,a.A),a.A.show());g4(a)}};
i4=function(a){a.A&&(a.A.dispose(),a.A=null)};
c4=function(a){var b=lV(a);a=0<b.length?b.pop():bV(a);a=lma[a.toUpperCase()];return null!=a?a:0};
f4=function(a){a=a.A.b;return 0==a?1:0<a?2:-1==a?3:0};
g4=function(a){a.L||(hq(a.b),a.L=!0)};
d4=function(a,b){e1(a.b).experiments.aa("fix_vmap_afc_mpu_api_stats_ads")&&b.subscribe("AD_LOGGING_EVENT",x(a.GC,a,ola(a.g)))};
j4=function(a){T0.call(this,a);this.logEvent=this.Ma="ad";this.g=this.o=this.G=null;this.$=this.da=!1;this.A=this.K=null;V.g=!0;V.C=!1;V.H=!1;V.G=!0;V.D=!Lp();V.A=0;this.H=null;this.ia={};this.ga={at:"0"};this.C=new J1(this.b);Qv(this.b,this.C.element,4);this.ea=this.B=null;this.O=-1;this.ba=new ama(this);this.L=new Dw(this);H(this,this.L);this.S=null};
f1=function(a){return k4(a.app)};
e1=function(a){return a.app.W};
j1=function(a,b,c){a=a.G;c=c||{};var d=(E()-a.F)/1E3;c.art=d;d=e1(a.G);d.Zd&&(c.feature=d.bb);c.ad_flags=a.b.adFlags;(d=a.b.Ha)&&(c.cid=d);c.mt=a.C.getCurrentTime();(d=pu())&&(c.lact=d);(d=a.C.Ch())&&(c.len=d);a.b.bb&&(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?O1(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.Sa;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":fb(W0,Ua(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=Bla(d);break;case "error_code":f.ima_error=d;case "error_message":f.error_msg=d;break;case "ad_event":f.event=O1(d);
break;case "ck_xy":a=d.split("x"),2==a.length&&(f.i_x=a[0],f.i_y=a[1])}}k=V1(b.b);f=f1(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*Y0(c.b.qb):0):e.mt=Math.round(1E3*k.getCurrentTime());c=e1(b.b);e.ei=f.eventId;e.lact=pu();e.vol=Math.round(b.b.app.Ya.Nb());e.vis=WH(c);c=l4(b.b);e.p_w=c.width;e.p_h=c.height;e.rt=E();if(c=(c=k.g?k.g.ma():null)&&lf(c)===window.document?us(c):null)e.pv_h=c.getHeight(),e.pv_w=c.ib();k=Dg(e);if("undefined"==
typeof k)throw Error("Keys are undefined");c=new fh(null,0,void 0);e=Cg(e);for(f=0;f<k.length;f++)a=k[f],d=e[f],da(d)?kh(c,a,d):qh(c,a,d);b=new M(e1(b.b).baseYtUrl+"api/stats/ads");dh(b,c);Tp(b.toString())}};
m4=function(a,b,c){c=c||{};c.ad_error=b;j1(a,7,c)};
n4=function(a,b,c){a.app.Ya.Aa(b,c)};
o4=function(a){a.da||(Tp(e1(a).baseYtUrl+"mac_204?action_fcts=1"),a.da=!0)};
p4=function(a){return a.o instanceof P3?a.o:null};
r4=function(a){a=a.C;if(T(a.o).S)a=a.o.app.o;else{if(!a.b){var b;b=a.o.app;if(b.W.S){var c=ps(b.o.b),d=Cs(b.o.b);b.ra=new lg(c.x,c.y,d.width,d.height);xI(b.B);b.o.b.loop=!1;b.o.b.playbackRate=1;Ky(b.o);b=b.o}else b=new Oy(q4.getTag(void 0,void 0));a.b=b;J(a.b.b,"video-stream");J(a.b.b,"ad-video")}a=a.b}return a};
V1=function(a){if(!a.B){var b=gc(e1(a).G);e1(a).experiments.aa("legacy_autoplay_flag")&&(b.autoplay="1");b.eventid=f1(a).eventId;b.content_v=f1(a).videoId;b=new qA(b);b.b="adunit";var c=r4(a);b.H=c;a.B=new aI(b,2,new U0(b,""),a.app.D,x(a.app.O.ac,a.app.O))}return a.B};
u4=function(a){if(a.B&&a.B==WI(a.app)){var b=a.app;a=a.B;s4(b);a!=b.g&&t4(b,b.g)}};
l4=function(a){return a.g.C?(a=a.app.D.Ka(),new lg(0,0,a.width,a.height)):Ds(a.Ea())};
v4=function(a,b){i3(a,"bd");var c;c=a.g;var d=c.midrollPrefetchSize;c=c.isLiveStream?new P3(a,b):0<d?new N3(a,b,d):new G3(a,b);a.o=c;Yla(a.o)};
y4=function(a){w4(a);var b=a.app;Ri(function(){x4(b)},0)};
K3=function(a){a.$=!0;a.Y("command_redirect_controls",a,["play_pause"],void 0);a.A||a.pauseVideo()};
w4=function(a){M1(a.C);a.$=!1;mq(a)};
$1=function(a,b){switch(b){case 1:a.O=1;n4(a,"onAdStart");break;case 0:a.O=0,n4(a,"onAdEnd")}};
Z1=function(a,b,c){c&&n4(a,"onAdInfoChange",c);c=a.app;a=r4(a);1==b&&(c.H.g("vr"),c.fa||(c.fa=BE(c.Oq,c)),MI(c.B),V0(c.H,z4(c)));var d=c.W;"leanback"==d.b&&d.Ra&&(0==b?c.Ia=c.o:c.Ia=a,c.b.Aa("onAdStateChange",b))};
i3=function(a,b){var c=b;"nl"==b&&(c=a.G,c.B++,c=c.B.toString());a.ia[c]=E();"bs"!=c&&"fb"!=c||jq(a,a.ia,a.ga)};
A4=function(a){return!!(a.g.D&&a.o&&1<a.o.o.length)};
t3=function(a,b,c){a.b.addEventListener("applicationplayerstatechange",b,c)};
B4=function(a){GM(this,a,mma)};
D4=function(a,b){G.call(this);this.B=!T(a.b).experiments.aa("legacy_control_redirecting");this.g=a;a.b.addEventListener("onVolumeChange",this.Vi,this);a.b.addEventListener("onCaptionsTrackListChanged",this.Zq,this);this.B&&a.b.addEventListener("captionschanged",this.Lq,this);this.C=!1;this.b=b;b.subscribe("proxyStateChange",this.pr,this);b.subscribe("remotePlayerChange",this.jh,this);b.subscribe("remoteQueueChange",this.Yl,this);this.L=new rq;this.G=this.F=window.NaN;this.K=0;this.o={};this.D=null;
this.H=new ym(this.uF,1E3,this);H(this,this.H);this.M=0;this.A=!1;var c=this.g.b.Jb("captions","track");bc(c)||C4(this,c);this.Yl();this.jh()};
E4=function(a,b){var c=a.g,d=a.g.b.getVideoData().lengthSeconds;c.H=b||0;c.b.Wa("progresssync",b,d)};
H4=function(a){a.A||(E4(a,0),F4(a),G4(a,new rq));ar(T(a.g.app.Ya))||(a.A=!0)};
C4=function(a,b){if(I4(a)&&!a.C){if(b){var c={style:a.g.b.Jb("captions","displaySettings")};jc(c,b);a.b.sm(J4(a),c)}else a.b.sm(J4(a),null);a.o=wo(a.b).g}};
K4=function(a){a.b.pause();var b=wo(a.b);E4(a,qo(b));F4(a);G4(a,new rq(4))};
M4=function(a){a.b.play();L4(a);G4(a,new rq(8))};
N4=function(a,b){var c=a.g.b.$c();c?zo(a.b,J4(a),b,c.b,c.listId.toString()):zo(a.b,J4(a),b);G4(a,new rq(1))};
O4=function(a,b){if(b){var c=a.g.b.Jb("captions","tracklist",{aq:1});c&&c.length?(a.g.b.Ve("captions","track",b),a.B&&(a.C=!1)):(a.g.b.Dj("captions"),a.C=!0)}else a.g.b.Ve("captions","track",{})};
I4=function(a){return wo(a.b).videoId==J4(a)};
J4=function(a){return a.g.b.getVideoData().videoId};
L4=function(a){F4(a);if(!a.b.isDisposed()){var b=wo(a.b);b.Za()&&G4(a,new rq(8));E4(a,qo(b));a.F=Ri(x(function(){L4(this)},a),500)}};
F4=function(a){Ti(a.F);a.F=window.NaN};
P4=function(a){Ti(a.G);a.G=window.NaN};
G4=function(a,b){P4(a);var c=a.L;a.L=b;a.A=!1;var d=a.g;d.L=b;d.b.Wa("presentingplayerstatechange",new $H(b,c))};
Q4=function(a){T0.call(this,a);this.Ma=this.logEvent="remote";this.A={key:jk(),name:O("YTP_MDX_MY_COMPUTER")};this.o=null;this.C=[];this.G=this.K=this.g=null;this.O=[this.A];this.B=this.A;this.L=new rq;this.H=0};
R4=function(a,b,c){var d=c||a.A;b.unshift(a.A);a.O=b||[a.A];d=bb(b,function(a){return a.key==d.key});
a.B=d||a.A;a.app.Ya.Aa("onMdxReceiversChange")};
S4=function(a){FF.call(this,["div","html5-video-player",{tabindex:-1,id:a.ca.attrs.id},["div","html5-video-container",{"data-layer":0}]]);Ji(this.element,"version",a.ca.assets.js);this.app=a;this.H=null;this.o=this.qa["html5-video-container"];this.S=!!this.o;this.B=new lg(0,0,0,0);this.b=null;this.D=new lg(0,0,0,0);this.K=this.M=0;this.G=!1;this.F=window.NaN;a=a.W;this.C=null;this.addEventListener=x(this.element.addEventListener,this.element);this.removeEventListener=x(this.element.removeEventListener,
this.element);this.dispatchEvent=function(){};
a=ar(a)&&"blazer"!=a.g&&"mweb-polymer"!=a.g&&window.matchMedia?x(window.matchMedia,window):v;this.L=a("(max-width: 656px)");this.fa=a("(min-width: 657px)");this.da=a("(min-width: 1294px) and (min-height: 630px)");this.$=a("(min-width: 1720px) and (min-height: 980px)");this.ca=a("(min-width: 1320px) and (min-height: 870px)");this.A=null;Xi({YTP_ADVERTISEMENT:"Advertisement",YTP_AIRPLAY:"AirPlay",YTP_AUDIO_TRACK_TITLE:"Audio track",YTP_AUTO:"Auto",YTP_AUTO_WITH_QUALITY_2:"Auto ($VIDEO_QUALITY)",YTP_CARDS_BUTTON_ARIA_LABEL:"Show cards",
YTP_CHANGE_QUALITY_WITH_QUALITY_2:"Change quality ($VIDEO_QUALITY)",YTP_COPY_DEBUG_INFO:"Copy debug info",YTP_COPY_VIDEO_URL:"Copy video URL",YTP_COPY_VIDEO_URL_AT_TIME:"Copy video URL at current time",YTP_DRAWER_CLOSE_BUTTON_ARIA_LABEL:"Hide cards",YTP_DRAWER_HEADER_TEXT_2:"More info",YTP_DRAWER_POLL_PERCENT:"$PERCENT%",YTP_DRAWER_POLL_SIGNIN_TITLE:"Want to vote?",YTP_DRAWER_POLL_TITLE_ARIA_LABEL:"$POLL_TITLE - Sign in to vote.",YTP_GET_DEBUG_INFO:"Get debug info",YTP_GET_VIDEO_URL:"Get video URL",
YTP_GET_VIDEO_URL_AT_TIME:"Get video URL at current time",YTP_GET_EMBED:"Get embed code",YTP_DECREASE_PLAYBACK_SPEED:"Decrease playback speed",YTP_PLAYBACK_SPEED_CHANGED:"Speed is $RATE",YTP_DEFAULT_VIEW:"Default view",YTP_EMBED_COPY:"Copy embed code",YTP_ERROR_GENERIC_WITHOUT_LINK:"An error has occurred. Please try again later.",YTP_ERROR_GENERIC_WITH_LINK_AND_CPN:"An error occurred. Please try again later. (Playback ID: $CPN) $BEGIN_LINKLearn More$END_LINK",YTP_EXIT_FULLSCREEN:"Exit full screen",
YTP_FULLSCREEN_GENERIC_ERROR:"Full screen is unavailable. $BEGIN_LINKFind out more$END_LINK",YTP_FULLSCREEN_UNSUPPORTED_ERROR:"Your browser doesn't support full screen. $BEGIN_LINKFind out more$END_LINK",YTP_VOLUME_UNSUPPORTED_ERROR:"Your browser doesn't support changing the volume. $BEGIN_LINKLearn More$END_LINK",YTP_FEATURED:"Featured",YTP_FULLSCREEN:"Full screen",YTP_INCREASE_PLAYBACK_SPEED:"Increase playback speed",YTP_INVIDEO_PROMOTION_ARIA_LABEL:"Promotion",YTP_GOTO_LIVE_TOOLTIP:"Skip ahead to live broadcast.",
YTP_KEYBOARD_SHORTCUTS:"Keyboard shortcuts",YTP_LIVE:"Live",YTP_LIVE_NOW:"LIVE NOW",YTP_LOOP:"Loop",YTP_MIX:"Mix",YTP_MORE:"More",YTP_MDX_TITLE:"Play on",YTP_MDX_TOOLTIP:"Play on TV",YTP_MDX_MY_COMPUTER:"This computer",YTP_MUTE:"Mute",YTP_NEXT:"Next",YTP_NEXT_VIDEO_IN:"Next video in $TIME_LEFT",YTP_NORMAL_SPEED:"Normal",YTP_ON:"On",YTP_OFF:"Off",YTP_OPTIONS:"Options",YTP_PLAY_ALL:"Play all",YTP_PLAY_PAUSE:"Toggle play/pause",YTP_PREVIOUS:"Previous",YTP_PLAYBACK_STALLED_AT_START:"If playback doesn't begin shortly, try restarting your device.",
YTP_MISSING_FORMATS:"Missing options?",YTP_PLAYLIST:"Playlist",YTP_PLAYLIST_UP_NEXT:"Up Next",YTP_QUALITY_TITLE:"Quality",YTP_SUGGESTED_VIDEOS:"Suggested videos",YTP_REPLAY:"Replay",YTP_REPORT_ISSUE:"Report playback issue",YTP_SEEK_BACK:"Seek backwards 10 seconds",YTP_SEEK_FORWARD:"Seek forwards 10 seconds",YTP_SEEK_PERCENT:"Seek to 0%\u201390%.",YTP_SETTINGS:"Settings",YTP_SHARE:"Share",YTP_SHARE_LINK:"Share link",YTP_SHARE_WITH_PLAYLIST_2:"Include playlist",YTP_SHOW_VIDEO_INFO:"Stats for nerds",
YTP_SIGN_IN:"Sign in",YTP_SPHERICAL_CONTROL:"Spherical video control. Use the arrow keys to pan the video.",YTP_SPEED_TITLE:"Speed",YTP_ST_COLLAPSE:"Collapse",YTP_ST_EXPAND:"Expand",YTP_SUBTITLES:"Subtitles/CC",YTP_SUBTITLES_TOOLTIP:"Subtitles/closed captions",YTP_SUBTITLES_OFF:"Subtitles/closed captions off",YTP_SUBTITLES_ON:"Subtitles/closed captions on",YTP_THREED_SHORT:"3D",YTP_THREED_VIEWMODE_2D:"2D",YTP_THREED_VIEWMODE_ANAGLYPH:"Anaglyph",YTP_THEATER_MODE:"Cinema mode",YTP_TOGGLE_FULLSCREEN:"Toggle full screen.",
YTP_TOGGLE_MUTE:"Toggle mute",YTP_UNMUTE:"Unmute",YTP_URL_NAVIGATE:"Watch on YouTube.com",YTP_URL_NAVIGATE_TO:"Watch on $WEBSITE",YTP_WATCH_ALL:"Watch entire video",YTP_WATCH_LATER:"Watch Later",YTP_WATCH_LATER_AS_2:"Watch later as $USER_NAME",YTP_ADDED_TO_WATCH_LATER_AS:"Added as $USER_NAME",YTP_WEBGL_3D_ANAGLYPH:"Anaglyph",YTP_WEBGL_3D_2D:"2D",YTP_SUBSCRIBE_AS:"Subscribe as $USER_NAME",YTP_LIKE_AS:"Like as $USER_NAME",YTP_DISLIKE_AS:"Dislike as $USER_NAME",YTP_WATCH_NEXT:"Watch next",YTP_PLAY:"Play",
YTP_WATERMARK:"Watermark",YTP_ERROR_STREAMING_UNAVAILABLE:"Video playback is unavailable at present because this video has been downloaded for offline viewing.",YTP_ERROR_LICENSE:"Sorry, there was an error while licensing this video.",YTP_ERROR_VIDEO_NOT_FOUND:"This video cannot be found.",YTP_ERROR_ALREADY_PINNED_ON_A_DEVICE:"This video has already been downloaded on the maximum number of devices allowed by the copyright holder. Before you can play the video here, it needs to be unpinned on another device.",
YTP_ERROR_CANNOT_ACTIVATE_RENTAL:"An error occurred when activating your rented video. Please reload this page or try again later.",YTP_ERROR_PURCHASE_NOT_FOUND:"This video requires payment.",YTP_ERROR_PURCHASE_REFUNDED:"This video's purchase has been refunded.",YTP_ERROR_STOPPED_BY_ANOTHER_PLAYBACK:"Your account is playing this video in another location. Please reload this page to resume watching.",YTP_ERROR_TOO_MANY_STREAMS_PER_USER:"Playback stopped because too many videos belonging to the same account are playing.",
YTP_ERROR_TOO_MANY_STREAMS_PER_ENTITLEMENT:"Playback stopped because this video has been played on too many devices.",YTP_ERROR_STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED:"Too many devices/IP addresses have been used over the 24 hour period.",YTP_ERROR_UNUSUAL_ACTIVITY:"Due to unusual account activity, this video is not currently available.",YTP_ERROR_NOT_SIGNED_IN:"Please sign in to resume watching.",YTP_CLOSE:"Close",YTP_EXPAND:"Expand",YTP_ANNOTATIONS:"Annotations",YTP_DONE:"Done",YTP_SHARE_THIS_PLAYLIST:"Share this playlist",
YTP_UPLOADED_BY_2:"by $AUTHOR",YTP_SEEK_SLIDER:"Seek slider",YTP_PAUSE:"Pause",YTP_AUTOPLAY:"Autoplay",YTP_AUTOPLAY_COUNTDOWN_2:"Next video in $SECONDS_LEFT",YTP_AUTOPLAY_PAUSED:"Busy? We've paused autoplay.",YTP_AUTOPLAY_PAUSED_2:"Autoplay is paused.",YTP_AUTOPLAY_CANCEL:"Cancel autoplay",YTP_WATCH_VIDEO_OR_PLAYLIST:"Watch $TITLE",YTP_CANCEL:"Cancel",YTP_ON_GOOGLE_PLUS:"On Google+",YTP_STILL_THERE:"Are you still there? If so, please click the button below to continue watching the playlist.",YTP_DISMISS:"OK",
YTP_RESET:"Reset",YTP_STOP:"Stop live playback",YTP_LIKE:"Like",YTP_DISLIKE:"Dislike",YTP_SCREENREADER_VOLUME_SETTING:"volume",YTP_SCREENREADER_VOLUME_MUTED:"muted",YTP_SCREENREADER_VOLUME_MUTE:"mute",YTP_SCREENREADER_VOLUME_UNMUTE:"unmute",YTP_SCREENREADER_CONTROL_TOGGLE:"toggle",YTP_SAMPLE_SUBTITLES:"Captions look like this",YTP_HTML5_CONTEXT_MENU_LINK:"About the HTML5 player",YTP_HTML5_PROTECTED_FLASH_FALLBACK:"To watch this video, install the latest Flash Player, or try a different browser. $BEGIN_LINKGet Flash Player$END_LINK.",
YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK:"This video format is not supported.",YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK:"Your browser does not currently recognise any of the video formats available. $BEGIN_LINKClick here to visit our frequently asked questions about HTML5 video.$END_LINK",YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK_FLASH:"The Adobe Flash Player is required for video playback. $BEGIN_LINKGet the latest Flash Player$END_LINK.",YTP_ERROR_CAST_SESSION_DEVICE_MISMATCHED:"The device in the cast session doesn't match the requested one.",
YTP_ERROR_CAST_SESSION_VIDEO_MISMATCHED:"The video in the cast session doesn't match the requested one.",YTP_ERROR_CAST_TOKEN_EXPIRED:"Cast session has expired. Please refresh.",YTP_ERROR_CAST_TOKEN_FAILED:"Cast session not available. Please refresh or try again later.",YTP_ERROR_CAST_TOKEN_MALFORMED:"Invalid cast session. Please refresh or try again later.",YTP_ERROR_GEO_FAILURE:"This video isn't available in your country.",YTP_ERROR_INVALID_DRM_MESSAGE:"The DRM system specific message is invalid.",
YTP_ERROR_RENTAL_EXPIRED:"This video's rental has expired.",YTP_ERROR_RETRYABLE_ERROR:"There was a temporary server error. Please try again later.",YTP_ERROR_SERVER_ERROR:"There was an internal server error. Please try again later.",YTP_ERROR_STREAMING_NOT_ALLOWED:"Playback not allowed because this video is pinned on another device.",YTP_ERROR_UNSUPPORTED_DEVICE:"Playback isn't supported on this device.",YTP_ERROR_VIDEO_FORBIDDEN:"Access to this video is forbidden.",YTP_ERROR_FORMAT_UNAVALIABLE:"This video isn't available at the selected quality. Please try again later.",
YTP_MDX_STATUS_CONNECTED:"Playing on",YTP_MDX_STATUS_CONNECTING:"Connecting to",YTP_MDX_STATUS_ERROR:"Error on",YTP_MDX_PLAYER_ERROR:"This video is not available for remote playback.",YTP_MDX_PLAYER_RECONNECT_TIME:"Please check your Internet connection. Retrying in $FORMATTED_TIME...",YTP_MDX_PLAYER_RECONNECT_BUTTON:"Reconnect",YTP_DEVICE_FALLBACK:"Sorry, this video is not available on this device.",YTP_AD_INTERRUPT_MESSAGE:"Your video will play after this ad.",YTP_VISIT_ADVERTISERS_SITE:"Visit advertiser's site",
YTP_PROGRESS_LABEL_2:"$PLAY_PROGRESS of $DURATION",YTP_PLAYLIST_NAME:"Playlist: $PLAYLIST_NAME",YTP_PLAYLIST_POSITION:"$CURRENT_POSITION/$PLAYLIST_LENGTH",YTP_SHARE_PANEL_ERROR:"An error occurred while retrieving sharing information. Please try again later.",YTP_PLAYLIST_AUTHOR_AND_POSITION:"by $AUTHOR \u2022 $CURRENT_POSITION/$PLAYLIST_LENGTH",YTP_PLAYER_NORMAL:"YouTube Video Player",YTP_PLAYER_FULLSCREEN:"YouTube Video Player in Full screen",YTP_SPONSORED:"Sponsored",YTP_SPONSORED_PRODUCT_INFO:"You are seeing this product because we think it is relevant to the video. Google may be compensated by the merchant.",
YTP_SPONSORED_PRODUCT_BADGE:"Shop",YTP_AD_SETTINGS_INFO:"Visit Google's $BEGIN_FORMATAd Settings$END_FORMAT to learn more about how ads are targeted or to opt out of personalised ads.",YTP_PIP:"Picture in Picture",YTP_AUTO_TRANSLATE:"Auto-translate",YTP_SWITCH_CAMERA:"Switch camera",YTP_MULTICAM_INDEX:"Viewing $CAMERA_INDEX of $CAMERA_COUNT",YTP_MORE_CAMERAS_AVAILABLE:"More cameras available",YTP_VIDEO_SUBTITLES_OVERRIDE:"Video Override",YTP_VIDEO_SUBTITLES_OVERRIDE_DESC:"Allow for a different caption style if specified by the video."});
this.app.Ya.addEventListener("initializingmode",this.hz,this);this.app.Ya.addEventListener("videoplayerreset",this.jz,this);this.app.Ya.addEventListener("videodatachange",this.NH,this);this.app.Ya.addEventListener("presentingplayerstatechange",this.Dy,this)};
oma=function(a,b){a.b=b;a.G=!1;if(!a.b.parentNode)try{Gf(a.o,a.b,0)}catch(d){var c="videoElement_: "+!!a.b+", containerElement: "+!!a.o+", containerElement.childNodes: "+!(!a.o||!a.o.childNodes)+", containerInitiallyTruthy: "+a.S+", isDisposed: "+a.isDisposed();throw Error(c);}a.A&&(a.A.disconnect(),a.A=null);!a.app.W.experiments.aa("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 lg(0,0,0,0),T4(this))}},a)),a.A.observe(a.b,{attributes:!0}));
a.D=new lg(0,0,0,0);T4(a);X1(a);nma(a)};
nma=function(a){J(a.b,"video-stream");J(a.b,"html5-main-video");var b=a.app.W;b.Sa&&a.b.setAttribute("data-no-fullscreen",!0);b.Bc&&a.b.setAttribute("webkit-playsinline","");b.Ae&&a.U(a.b,"click",a.b.play,a.b)};
V4=function(a,b){if(a.b){var c=a.app.W;Jy&&(a.b.setAttribute("x-webkit-airplay","allow"),b.title?a.b.setAttribute("title",b.title):a.b.removeAttribute("title"));var d;c.Jg&&b.videoId?d=b.Fc(c,"default.jpg"):c.experiments.aa("legacy_poster_behavior")||Bc&&!U4&&!Kp()||(d="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7");d&&(a.b.poster=d)}c=b.Kd("yt:bgcolor");a.o.style.backgroundColor=c?c:"";a.M=Vy(b.Kd("yt:stretch"));c=b.Kd("yt:crop");a.K="fullwidth"==c?window.Infinity:
Vy(c)};
SK=function(a){return(a=a.b)?W4(a.videoWidth,a.videoHeight):window.NaN};
Ix=function(a,b){var c=a.Ka(),d=X4(a,c,SK(a),b);return new lg((c.width-d.width)/2,(c.height-d.height)/2,d.width,d.height)};
X4=function(a,b,c,d){c=a.M||c;a=(0,window.isNaN)(c)?c:a.K||c;var e=W4(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};
W4=function(a,b){return 1>Math.abs(Y4*b-a)||1>Math.abs(Y4/a-b)?Y4:a/b};
Z4=function(a){a=(a=WI(a.app))&&a.getPlayerState();return!a||R(a,2)||Cq(a)};
X1=function(a){var b="3"==a.app.W.A&&!a.G&&!Z4(a);a.b.controls=b;a.b.tabIndex=b?0:-1};
T4=function(a){var b=SK(a),c=a.Ka(),d=1,e=Jy?!0:"3"!=a.app.W.A&&!(0,window.isNaN)(SK(a)),f=!1,k=X4(a,c,b),l=Rp()&&!a.app.W.experiments.aa("legacy_mie_display");Z4(a)?(b=-c.height,Jy?b*=window.devicePixelRatio:HD&&(b-=window.screen.height),b=new lg(0,b,c.width,c.height),l&&(a.b.style.display="none")):(e&&!(0,window.isNaN)(b)?(d=k.aspectRatio/b,b=new lg((c.width-k.width/d)/2,(c.height-k.height)/2,k.width/d,k.height)):b=new lg(0,0,c.width,c.height),l&&(a.b.style.display=""));ng(a.D,b)||(a.D=b,As(a.b,
og(b)),os(a.b,pg(b)),f=!0);c=new lg((c.width-k.width)/2,(c.height-k.height)/2,k.width,k.height);ng(a.B,c)||(a.B=c,f=!0);is(a.b,"transform",1==d?"none":"scaleX("+d+")");return f};
$4=function(){this.b=[];this.g=[]};
a5=function(a,b,c){c=window.document.createElement(c?"audio":"video");qa(c,pma);hm(c,"loadeddata",x(c.g,c));iA&&6<=Fy&&hm(c,"webkitbeginfullscreen",x(c.play,c));b||c.src||c.load();a.g.push(c);return c};
b5=function(a,b,c,d){nk.call(this);this.A=a;this.O=x(b,null);this.g=0;this.C=!1;this.o=new ef(window.NaN,window.NaN);this.b=new Dw(this);H(this,this.b);b=d?4E3:3E3;this.F=new fe(pa(this.Ab,1,!1),b,this);H(this,this.F);this.G=new fe(pa(this.Ab,2,!1),b,this);H(this,this.G);this.K=new fe(pa(this.Ab,512,!1),0,this);H(this,this.K);this.M=c&&0<c.ba.length?5E3:3E3;d||(this.L=this.b.U(a,"mouseover",this.Eu),this.b.U(a,"mousemove",this.JH),this.b.U(a,"mouseleave",this.AA));fs?this.b.U(a,"keypress",this.jA):
this.b.U(a,"focusin",this.Sx);this.B=this.b.U(a,"mousedown",this.Du);this.D=this.b.U(a,"touchstart",this.Fu);this.S=null;this.Ab(640,!0)};
c5=function(a){a.Ab(4,!1);a.H&&(a.b.ua(a.H),a.H=null,a.L=a.b.U(a.A,"mouseover",a.Eu))};
d5=function(a,b){S.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};
f5=function(a,b){d5.call(this,a,b);this.H=null;this.C=this.D=this.A=this.o=0;this.B=-75;J(this.element,"ytp-tv-static");e5(this,a,b)};
g5=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};
e5=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=g5(b);a.C=g5(c/10);a.context.scale(1.5,1.5);a.context.fillStyle="rgba(255, 255, 255, 0.02)"}};
i5=function(a){S.call(this,["div",["ytp-error"],{role:"alert"},["div","ytp-error-content",["div","ytp-error-content-wrap","{{content}}"]]]);this.o=a;this.A=[];void 0==h5&&(a=window.document.createElement("canvas"),h5=!(!a.getContext||!a.getContext("2d")));h5&&(this.b=new f5(1,1),this.b.Ca(this.element,0),H(this,this.b));a=Jx(this.o).Ka();this.b&&e5(this.b,a.width,a.height)};
j5=function(a,b,c,d,e){e||(e=T(a.o).D);a=d?{CPN:a.o.getVideoData().clientPlaybackNonce}:null;b=O(b,a).split(/\$(BEGIN|END)_LINK/);return["span",null,b[0],["br"],["a",{href:c,target:e?"_blank":null},b[2]],b[4]]};
k5=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&&Tp(c.data.follow_on_url)}};
qma=function(a,b,c){l5("add_to_watch_later_list",a,b,c)};
rma=function(a,b,c){l5("delete_from_watch_later_list",a,b,c)};
l5=function(a,b,c,d){Zj(c?c+"playlist_video_ajax?action_"+a+"=1":"/playlist_video_ajax?action_"+a+"=1",{method:"POST",wd:{feature:b.feature||null,authuser:b.Pb||null,pageid:b.pageId||null},Lb:{video_ids:b.videoIds||null,source_playlist_id:b.sourcePlaylistId||null,full_list_id:b.fullListId||null,delete_from_playlists:b.QP||null,add_to_playlists:b.FP||null,plid:Pi("PLAYBACK_ID")||null},context:b.context,onError:b.onError,fb:function(a,c){var d=c.result;d&&d.actions&&k5(d.actions);b.fb.call(this,a,c)},
zc:b.zc,withCredentials:!!d})};
m5=function(a,b){S.call(this,{J:"svg",V:{width:a,height:b,viewbox:"0 0 "+a+" "+b},R:[{J:"polyline",V:{stroke:"white",fill:"none",points:"{{points}}"}}]});this.o=a;this.b=b};
sma=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(" ")};
n5=function(a,b){a.wa("points",sma(a,b))};
o5=function(a){var b;b=["button",["html5-video-info-panel-close","ytp-button"],{title:"close"},"[x]"];S.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:"{{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.U(this.qa["html5-video-info-panel-close"],
"click",this.pa);this.o=new m5(200,14);H(this,this.o);this.wa("bandwidth_sparkline",this.o);this.B=new m5(200,14);H(this,this.B);this.wa("live_latency_sparkline",this.B);this.A=new m5(200,14);H(this,this.A);this.wa("buffer_health_sparkline",this.A);this.C=new fe(this.D,500,this);H(this,this.C);this.b=a};
p5=function(a){this.g=null;this.o=[];this.A=!1;this.b=null;this.Z=a};
r5=function(a){a.g||(a.g=q5.createMediaElementSource(a.b.ma()));return a.g};
bL=function(a){var b=q5.createGain();a.o.push(b);return b};
s5=function(a,b){var c=q5.createChannelSplitter(b);a.o.push(c);return c};
t5=function(a,b){var c=q5.createChannelMerger(b);a.o.push(c);return c};
u5=function(a){for(var b;0<a.o.length;)b=a.o.pop(),b.disconnect();a.g&&a.g.disconnect()};
v5=function(a,b,c,d){Dw.call(this);this.U(a,"click",this.H);this.U(a,"dblclick",this.F);this.G=b;this.A=c;this.B=d||null;this.g=new fe(this.D,200,this);H(this,this.g);this.b=!0;this.o=!1;this.C=null};
w5=function(a){FF.call(this,{J:"div",X:"ytp-ad-persistent-progress-bar-container",R:[{J:"div",X:"ytp-ad-persistent-progress-bar"}]});this.o=a;this.C=this.qa["ytp-ad-persistent-progress-bar"];this.b=null;this.U(a,"presentingplayerstatechange",this.B);this.pa();this.B()};
x5=function(a){S.call(this,{J:"div",X:"ytp-bezel",V:{role:"status","aria-label":"{{label}}"},R:[{J:"div",X:"ytp-bezel-icon",R:["{{icon}}"]}]});this.A=new fe(this.B,10,this);H(this,this.A);this.o=new fe(this.C,10,this);H(this,this.o);this.b=new fe(this.D,500,this);H(this,this.b);this.Z=a;this.pa()};
z5=function(a){var b=Sr(a.Z);tq(b)?(b=a.Z.getVideoData(),b.za&&!b.L?y5(a,Kh(),O("YTP_STOP")):y5(a,Dh(),O("YTP_PAUSE"))):R(b,64)||y5(a,Eh(),O("YTP_PLAY"))};
A5=function(a,b,c){0>=b?(c=Oh(),b=O("YTP_SCREENREADER_VOLUME_MUTED")):(c=c?Nh():Mh(),b=Math.floor(b)+"% "+O("YTP_SCREENREADER_VOLUME_SETTING"));y5(a,c,b)};
B5=function(a,b,c){c=c?vh?{J:"div",ha:["ytp-icon","ytp-icon-fast-rewind"]}:{J:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},R:[{J:"path",Fa:!0,X:"ytp-svg-fill",V:{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"}}]}:vh?{J:"div",ha:["ytp-icon","ytp-icon-fast-forward"]}:{J:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},R:[{J:"path",Fa:!0,X:"ytp-svg-fill",V:{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=O("YTP_PLAYBACK_SPEED_CHANGED",
{RATE:b});y5(a,c,b)};
y5=function(a,b,c){a.wa("label",c||"");a.wa("icon",b);b=a.o;b.isActive()&&ge(b);b=a.b;b.isActive()&&ge(b);a.A.start()};
C5=function(a,b){var c=["button",["ytp-button","ytp-cards-button"],{"aria-label":O("YTP_CARDS_BUTTON_ARIA_LABEL"),"aria-owns":"ytp-cards","aria-haspopup":!0},["span","ytp-cards-button-icon-default",vh?{J:"div",ha:["ytp-icon","ytp-icon-info-card"]}:{J:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},R:[{J:"path",Fa:!0,X:"ytp-svg-fill",V:{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",vh?{J:"div",ha:["ytp-icon","ytp-icon-shopping-card"]}:{J:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},R:[{J:"path",X:"ytp-svg-shadow",V:{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"}},{J:"path",X:"ytp-svg-fill",V:{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"}},{J:"path",X:"ytp-svg-shadow-fill",V:{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"}}]}]];S.call(this,
c);this.Z=a;this.C=b;this.b=null;this.o=new cv(this,250,!0,100);H(this,this.o);this.pa();this.P("click",this.A);this.P("mouseover",this.B);iv(this,!0)};
iv=function(a,b){b?(a.element.title=O("YTP_DRAWER_HEADER_TEXT_2"),a.b=D5(a.C.g,a.element)):(a.b(),a.b=null,a.element.title="")};
E5=function(a,b,c,d,e){this.Z=a;this.M=b;this.ea=!!e;this.da=this.S=this.L=null;FF.call(this,c);this.H=new cv(this,d,!0);H(this,this.H);FF.call(this,c);this.pa();this.C=null};
F5=function(a){a.C&&(window.document.activeElement&&Pf(a.element,window.document.activeElement)&&(Vf(a.C),a.C.focus()),a.C.removeAttribute("aria-expanded"),a.C=null);a.L&&(a.ua(a.L),a.ua(a.S),a.ua(a.da))};
G5=function(a){return a.g&&3!=a.H.b};
H5=function(a,b,c){this.b=[];this.A=null;this.size=new gf(0,0);this.D=this.F=null;this.ca=this.$=0;E5.call(this,a,b,{J:"div",ha:["ytp-popup",c||null]},100,!0);this.P("keydown",this.qI)};
I5=function(a,b){!ie(b.element,"ytp-panel-animate-back")&&ie(b.element,"ytp-panel-animate-forward");a.A&&a.A.Ga("size-change",a.vh,a);a.A=b;a.A.subscribe("size-change",a.vh,a)};
J5=function(a){As(a.element,a.$||"100%",a.ca||"100%");var b=a.A;b.element.style.width="";b.element.style.height="";b.element.style.maxWidth="100%";b.element.style.maxHeight="100%";b.ca.element.style.height="";var c=Cs(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.da&&(d=Cs(b.qa["ytp-panel-header"]).height);b.ca.element.style.height=c.height-d+"px";a.size=c};
L5=function(a,b){a.b.push(b);var c=a.A;c?K5(a,c,b):(I5(a,b),b.Ca(a.element))};
K5=function(a,b,c,d){M5(a);b.Ga("back",a.ke,a);c.subscribe("back",a.ke,a);I5(a,c);if(a.g){J(c.element,d?"ytp-panel-animate-back":"ytp-panel-animate-forward");c.Ca(a.element);c.focus();a.element.scrollLeft=0;a.element.scrollTop=0;var e=a.size;J5(a);As(a.element,e);a.F=new fe(pa(a.pF,b,c,d),20,a);a.F.start()}else c.Ca(a.element),b.detach()};
M5=function(a){a.F&&ge(a.F);a.D&&ge(a.D)};
O5=function(a,b,c,d){FF.call(this,a);this.priority=b;c&&N5(this,c);d&&this.Ob(d)};
P5=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{J:c?"a":"div",ha:b,V:a,R:[{J:"div",X:"ytp-menuitem-label",R:["{{label}}"]},{J:"div",X:"ytp-menuitem-content",R:["{{content}}"]}]}};
N5=function(a,b){a.wa("label",b)};
Q5=function(a,b,c,d,e){var f={J:"div",X:"ytp-panel"};if(c){var k="ytp-panel-title",l={J:"div",X:"ytp-panel-header",R:[{J:"button",ha:["ytp-button",k],R:[c]}]};if(e){var m="ytp-panel-options";l.R.push({J:"button",ha:["ytp-button",m],R:[d]})}f.R=[l]}FF.call(this,f);this.ca=b;b.Ca(this.element);this.da=!1;c&&(this.U(this.qa[k],"click",this.ea),this.da=!0,e&&this.U(this.qa[m],"click",e));b.subscribe("size-change",this.fa,this);this.U(a,"fullscreentoggled",this.fa)};
R5=function(a,b,c,d,e){this.o=new FF({J:"div",X:"ytp-panel-menu",V:{role:"menu",id:b||null}});H(this,this.o);Q5.call(this,a,this.o,c,d,e);this.b=[]};
S5=function(a,b,c){if(c)a.b.push(b),a.o.element.appendChild(b.element);else{c=zb(a.b,b,tma);if(0<=c)return;c=~c;ub(a.b,c,0,b);Gf(a.o.element,b.element,c)}b.subscribe("size-change",a.S,a);a.o.Y("size-change")};
tma=function(a,b){return b.priority-a.priority};
T5=function(a){var b=P5({"aria-haspopup":!0});O5.call(this,b,a);this.P("keydown",this.b)};
U5=function(a,b){a.element.setAttribute("aria-haspopup",b)};
V5=function(a,b){this.b=!1;var c=P5({role:"menuitemcheckbox","aria-checked":this.b});O5.call(this,c,b,a,{J:"div",X:"ytp-menuitem-toggle-checkbox"});this.P("click",this.G)};
W5=function(a,b){a.b=b;a.element.setAttribute("aria-checked",a.b)};
Z5=function(a,b,c){this.Z=a;this.M=b;this.G=c;R5.call(this,a);this.F=new T5(8);H(this,this.F);S5(this,this.F,!0);this.F.P("click",this.dC,this);this.D=new T5(7);H(this,this.D);S5(this,this.D,!0);this.D.P("click",this.cC,this);this.C=new T5(6);H(this,this.C);S5(this,this.C,!0);this.C.P("click",this.aC,this);this.K=new V5(O("YTP_LOOP"),5);H(this,this.K);S5(this,this.K,!0);this.K.P("click",this.sC,this);this.L=new O5(P5({href:"{{href}}",target:"_blank"},void 0,!0),4,O("YTP_REPORT_ISSUE"));H(this,this.L);
S5(this,this.L,!0);this.L.P("click",this.sD,this);this.H=new T5(3);H(this,this.H);S5(this,this.H,!0);this.H.P("click",this.$B,this);b=new O5(P5(),2,O("YTP_SHOW_VIDEO_INFO"));H(this,b);S5(this,b,!0);b.P("click",this.GD,this);b="//"+xA(T(this.Z))+"/html5";b=new O5(P5({href:b,target:"_blank"},void 0,!0),1,O("YTP_HTML5_CONTEXT_MENU_LINK"));H(this,b);S5(this,b,!0);b.P("click",this.DA,this);this.B=new FF({J:"div",ha:["ytp-copytext","ytp-no-contextmenu"],V:{draggable:!1,tabindex:1},R:["{{text}}"]});H(this,
this.B);this.B.P("click",this.EB,this);this.$=new Q5(a,this.B);H(this,this.$);this.A=null;b=window.document.queryCommandSupported&&window.document.queryCommandSupported("copy");$l&&yc(43)&&(b=!0);Zz&&!yc(41)&&(b=!1);b&&(this.A=new S({J:"input",X:"ytp-html5-clipboard"}),H(this,this.A),this.A.Ca(this.element));this.U(a,"loopchange",this.rC);this.U(a,"videodatachange",this.bI);X5(this);Y5(this,this.Z.getVideoData())};
$5=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.sb():(a.B.Ob(b,"text"),L5(a.G,a.$),Oq(a.B.element),a.A&&(a.A=null,X5(a)));return c};
Y5=function(a,b){var c=T(a.Z),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=hu(b.g)),b.clientPlaybackNonce&&(c.cpn=b.clientPlaybackNonce),b.Da&&(c.partnerid=b.Da),c=Sg("//support.google.com/googleplay/",c));a.C.gb(d&&b.allowEmbed);a.F.gb(d);a.D.gb(d&&!b.za);a.L.Ob(c,"href")};
X5=function(a){var b=!!a.A;N5(a.H,O(b?"YTP_COPY_DEBUG_INFO":"YTP_GET_DEBUG_INFO"));U5(a.H,!b);N5(a.C,O(b?"YTP_EMBED_COPY":"YTP_GET_EMBED"));U5(a.C,!b);N5(a.F,O(b?"YTP_COPY_VIDEO_URL":"YTP_GET_VIDEO_URL"));U5(a.F,!b);N5(a.D,O(b?"YTP_COPY_VIDEO_URL_AT_TIME":"YTP_GET_VIDEO_URL_AT_TIME"));U5(a.D,!b)};
b6=function(a,b){this.B=a;this.o=new Dw(this);H(this,this.o);this.G=null;H5.call(this,a,b);J(this.element,"ytp-contextmenu");a6(this)};
a6=function(a){Fw(a.o);a.o.U(Jx(a.B),"contextmenu",a.DB)};
c6=function(a){a.B.Qa()?Qv(a.B,a.element,9):a.Ca(window.document.body)};
d6=function(a){this.F=new Dw(this);yK.call(this,a,{J:"div",ha:["ytp-thumbnail-overlay","ytp-cued-thumbnail-overlay"],R:[{J:"div",X:"ytp-thumbnail-overlay-image"}]});this.H=a;this.G=this.qa["ytp-thumbnail-overlay-image"];this.B=new fe(this.Iu,0,this);H(this,this.B);var b=T(a);b.experiments.aa("moving_thumbnails_cued_state")&&(this.o=new S({J:"img",X:"ytp-thumbnail-overlay-moving",V:{src:"{{url}}"}}),H(this,this.o),this.o.Ca(this.element),this.C=new fe(this.FC,5500,this),H(this,this.C),this.D=new cv(this.o,
500),H(this,this.D),this.U(this.o.element,"load",this.fI),this.U(this.element,"mouseenter",this.dI),this.U(this.element,"mouseleave",this.eI));this.Iu();this.U(a,"presentingplayerstatechange",this.hI);"detailpage"==b.b&&this.U(a,"videoplayerreset",this.gI)};
e6=function(a,b,c){var d=Cq(c),e=!T(b).experiments.aa("disable_new_pause_state3");b=R(c,2)&&!aJ(b)&&(!e||!QK(b.app));d||b?a.show():(ev(a),R(c,1)||a.stop())};
f6=function(a,b,c,d,e,f,k){Dw.call(this);this.b=a;this.H=c;this.F=d;this.A=e;this.g=f;this.G=k;this.o="";a=pa(this.B,!1);this.U(b,"mousedown",a);this.U(c.element,"mousedown",a);this.U(b,"keydown",this.C);this.U(c.element,"keydown",this.C);this.U(b,"keyup",this.D);this.U(c.element,"keyup",this.D)};
h6=function(a,b,c){var d=!1,e=T(a.b);if(!e.Tb){switch(b){case 80:c&&(y5(a.g,Gh(),O("YTP_PREVIOUS")),a.b.Fj(),d=!0);break;case 78:c&&(y5(a.g,Ch(),O("YTP_NEXT")),a.b.Ej(),d=!0);break;case 74:y5(a.g,vh?{J:"div",ha:["ytp-icon","ytp-icon-rewind-ten-seconds"]}:{J:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},R:[{J:"path",Fa:!0,X:"ytp-svg-fill",V:{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.yd(-10*a.b.app.M);d=!0;break;case 76:y5(a.g,vh?{J:"div",ha:["ytp-icon","ytp-icon-forward-ten-seconds"]}:{J:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},R:[{J:"path",Fa:!0,X:"ytp-svg-fill",V:{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.yd(10*a.b.app.M);d=!0;break;case 77:a.b.ad()?(a.b.Bf(),A5(a.g,a.b.Nb(),!1)):(a.b.mute(),A5(a.g,0,!0));d=!0;break;case 75:z5(a.g);tq(Sr(a.b))?a.b.pauseVideo():a.b.xd();d=!0;break;case 190:if(c){if(e.ia)for(b=a.b.Bh(),c=a.b.app.M,e=0;e<b.length-1;e++)b[e]==c&&(d=b[e+1],a.b.Eh(d,!0),B5(a.g,d,!1),d=!0)}else g6(a,1),d=!0;break;case 188:if(c){if(e.ia)for(b=a.b.Bh(),c=a.b.app.M,e=b.length-1;1<=e;e--)b[e]==c&&(d=b[e-1],a.b.Eh(d,!0),B5(a.g,d,!0),d=!0)}else g6(a,-1),d=!0;break;case 70:Wq(a.b)&&(br(a.b),
d=!0)}d&&a.F.Ab(2,!0)}return d};
j6=function(a,b,c,d){if($I(iq(a.b),"captions")){for(var e=a.b.Jb("captions","displaySettings"),f,k=0;k<i6.length;k++){var l=i6[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.bn(d);return!0}return!1};
g6=function(a,b){if(R(Sr(a.b),4)){var c=a.b.getVideoData().g;c&&(c=c.video)&&a.b.yd(b/(c.fps||30))}};
l6=function(a){var b=["ytp-large-play-button","ytp-button"],c=T(a);c.O&&!c.Ub?c=vh?{J:"div",ha:["ytp-icon","ytp-icon-large-play-button-hover"]}:{J:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 68 48",width:"100%"},R:[{J:"path",X:"ytp-large-play-button-bg",V:{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"}},{J:"path",V:{d:"m 26.96,13.67 18.37,9.62 -18.37,9.55 -0.00,-19.17 z",fill:"#fff"}},{J:"path",V:{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?vh?{J:"div",ha:["ytp-icon","ytp-icon-house-brand-large-play-button"]}:{J:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 60 60",width:"100%"},R:[{J:"path",X:"ytp-large-play-button-bg",V:{"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"}},{J:"path",V:{d:"M21,41.65 L21,18 L43.7,29.85 L21,41.65 Z",fill:"#fff"}}]}:vh?{J:"div",ha:["ytp-icon","ytp-icon-large-play-button"]}:{J:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 68 48",width:"100%"},R:[{J:"path",X:"ytp-large-play-button-bg",V:{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"}},{J:"path",V:{d:"m 26.96,13.67 18.37,9.62 -18.37,9.55 -0.00,-19.17 z",fill:"#fff"}},{J:"path",V:{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"}}]});S.call(this,{J:"button",ha:b,V:{"aria-label":"{{label}}"},R:[c]});this.b=a;this.A=!1;this.o=new cv(this,250);H(this,this.o);this.U(a,"presentingplayerstatechange",this.B);k6(this,Sr(a))};
k6=function(a,b){if(T(a.b).Kg&&!a.A){e6(a.o,a.b,b);var c;c=(c=a.b.getVideoData())&&c.title?O("YTP_WATCH_VIDEO_OR_PLAYLIST",{TITLE:c.title}):O("YTP_PLAY");a.wa("label",c)}else a.pa()};
n6=function(a,b,c){var d=b.Gb(c),e=T(a),f=d.Fc(e,"default.jpg");S.call(this,{J:"a",ha:["ytp-video-menu-item","ytp-button"],V:{role:"menuitemradio","aria-label":d.title,href:e.getVideoUrl(d.videoId,b.listId?b.listId.toString():null)},R:[{J:"div",X:"ytp-video-menu-item-index",R:[""+(c+1)]},{J:"div",X:"ytp-video-menu-item-now-playing",R:["\u25b6"]},{J:"div",X:"ytp-video-menu-item-thumbnail",V:{style:f?"background-image: url("+f+");":null}},{J:"div",X:"ytp-video-menu-item-title",R:[d.title]},{J:"div",
X:"ytp-video-menu-item-author",R:[O("YTP_UPLOADED_BY_2",{AUTHOR:d.author})]}]});this.b=a;this.o=c;this.P("click",this.A)};
p6=function(a,b){this.o=a;E5.call(this,a,b,{J:"div",X:"ytp-playlist-menu",V:{role:"dialog"},R:[{J:"div",X:"ytp-playlist-menu-header",R:[{J:"div",X:"ytp-playlist-menu-title",R:[{J:"a",X:"ytp-playlist-menu-title-name",V:{href:"{{playlisturl}}"},R:["{{title}}"]},{J:"button",ha:["ytp-playlist-menu-close","ytp-button"],V:{"aria-label":O("YTP_CLOSE")},R:[Ah()]}]},{J:"div",X:"ytp-playlist-menu-subtitle",R:["{{subtitle}}"]}]},{J:"div",X:"ytp-playlist-menu-items",V:{role:"menu"}}]},250);this.U(this.qa["ytp-playlist-menu-close"],
"click",this.sb);this.U(this.qa["ytp-playlist-menu-title-name"],"click",this.SD);this.B=this.D=this.b=null;this.F=this.qa["ytp-playlist-menu-items"];this.A=[]};
q6=function(a,b){a.b!=b&&(a.b&&a.b.Ga("shuffle",a.im,a),a.b=b,a.D=null,b?b.subscribe("shuffle",a.im,a):a.g&&a.pa())};
r6=function(a,b,c){var d={J:"button",ha:["ytp-playlist-menu-button","ytp-button"],V:{title:"{{title}}","aria-owns":"ytp_playlist_menu","aria-haspopup":!0,"aria-label":O("YTP_PLAYLIST")},R:[{J:"div",X:"ytp-playlist-menu-button-icon",R:[Fh()]},{J:"div",X:"ytp-playlist-menu-button-text",R:["{{text}}"]}]};S.call(this,d);this.A=a;this.b=null;this.B=b.g;this.U(a,"videodatachange",this.C);this.U(a,"onPlaylistUpdate",this.C);this.U(a,"presentingplayerstatechange",this.o);this.U(a,"appresize",this.o);this.pa();
this.C();Lb(this,D5(this.B,this.element));this.P("click",x(c.Qe,c,this.element,!1))};
s6=function(a,b){S.call(this,{J:"button",ha:["ytp-replay-button","ytp-button"],V:{title:O("YTP_REPLAY")},R:[Hh()]});this.b=a;this.U(a,"presentingplayerstatechange",this.A);this.P("click",this.o,this);var c=Sr(a);this.gb(R(c,2));D5(b.g,this.element)};
t6=function(a,b){var c={J:"div",X:"ytp-share-panel",V:{id:"ytp-share-panel",role:"dialog","aria-labelledby":"ytp-share-panel-title"},R:[{J:"button",ha:["ytp-share-panel-close","ytp-button"],V:{title:O("YTP_CLOSE")},R:[Ah()]},{J:"div",X:"ytp-share-panel-inner-content",R:[{J:"div",X:"ytp-share-panel-title",V:{id:"ytp-share-panel-title"},R:[O("YTP_SHARE")]},{J:"a",ha:["ytp-share-panel-link","ytp-no-contextmenu"],V:{href:"{{link}}",target:"_blank",title:O("YTP_SHARE_LINK"),"aria-label":O("YTP_SHARE_LINK")},
R:["{{linkText}}"]},{J:"label",X:"ytp-share-panel-include-playlist",R:[{J:"input",X:"ytp-share-panel-include-playlist-checkbox",V:{type:"checkbox",checked:!0}},O("YTP_SHARE_WITH_PLAYLIST_2")]},{J:"div",X:"ytp-share-panel-loading-spinner",R:[Jh()]},{J:"div",X:"ytp-share-panel-service-buttons",R:["{{buttons}}"]},{J:"div",X:"ytp-share-panel-error",R:[O("YTP_SHARE_PANEL_ERROR")]}]}]};E5.call(this,a,b,c,250);this.o=a;this.A=b.g;this.b=[];this.G=this.qa["ytp-share-panel-inner-content"];this.D=this.qa["ytp-share-panel-close"];
this.U(this.D,"click",this.sb);Lb(this,D5(this.A,this.D));this.F=this.qa["ytp-share-panel-include-playlist-checkbox"];this.U(this.F,"click",this.Mu);this.B=this.qa["ytp-share-panel-link"];Lb(this,D5(this.A,this.B));this.P("click",this.TC);this.U(a,"videoplayerreset",this.pa);this.U(a,"fullscreentoggled",this.wI)};
uma=function(a){switch(a){case "facebook":return vh?{J:"div",ha:["ytp-icon","ytp-icon-share-facebook"]}:{J:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},R:[{J:"rect",V:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{J:"path",V:{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 vh?{J:"div",ha:["ytp-icon","ytp-icon-share-googleplus"]}:{J:"svg",V:{height:"100%",version:"1.0",viewBox:"0 0 38 38",width:"100%"},R:[{J:"rect",V:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{J:"path",V:{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 vh?{J:"div",ha:["ytp-icon","ytp-icon-share-twitter"]}:{J:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},R:[{J:"rect",V:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{J:"path",V:{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}};
u6=function(a){for(var b=0;b<a.b.length;b++)a.b[b].detach(),Mb(a.b[b]);a.b=[]};
v6=function(a,b,c,d){S.call(this,{J:"button",ha:["ytp-button","ytp-share-button"],V:{title:O("YTP_SHARE"),"aria-haspopup":!0,"aria-owns":"ytp-share-panel"},R:[vh?{J:"div",ha:["ytp-icon","ytp-icon-sharrow"]}:{J:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},R:[{J:"path",Fa:!0,X:"ytp-svg-fill",V:{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.P("click",x(c.Qe,c,this.element,!1));this.U(a,"videodatachange",this.o);this.U(a,"appresize",this.o);this.o();Lb(this,D5(b.g,this.element))};
w6=function(a){S.call(this,{J:"div",X:"ytp-webgl-spherical-control",V:{tabindex:0,"aria-label":O("YTP_SPHERICAL_CONTROL")},R:[vh?{J:"div",ha:["ytp-icon","ytp-icon-spherical-control"]}:{J:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 50 50",width:"100%"},R:[{J:"circle",Fa:!0,V:{cx:"25",cy:"25",fill:"#fff",r:"24"}},{J:"path",Fa:!0,V:{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.da=this.o=this.A=null;this.B=[];this.M=!1;this.S=null;this.C=new Qs(x(this.xI,this),null);H(this,this.C);this.O=-1;this.ca=this.D=this.G=this.F=this.K=this.H=0;this.L=!1;this.U(a,"videodatachange",this.qn);this.U(a,"onApiChange",this.qn);this.pa();this.qn()};
x6=function(a,b,c,d){a.K=$e(b+a.K,-1,1);a.G=$e(c+a.G,-1,1);a.ca=$e(d+a.ca,-1,1);a.M||(a.M=!0,J(a.element,"ytp-dragging"),a.O=E(),a.C.start())};
y6=function(a){a.C.stop();a.M=!1;a.K=0;a.G=0;a.ca=0;a.B=[];le(a.element,"ytp-dragging")};
z6=function(a,b,c,d,e,f){var k=f-a.O;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.O=f;a.H=k;b={shader:"Spherical",yaw:b,pitch:c,fov:d};(a=iq(a.b).g)&&oL(a,b)};
A6=function(a,b){if(-1<a.B.indexOf(b))return!0;var c=!1;switch(b){case 37:case 65:x6(a,1,0,0);c=!0;break;case 39:case 68:x6(a,-1,0,0);c=!0;break;case 38:case 87:x6(a,0,1,0);c=!0;break;case 40:case 83:x6(a,0,-1,0);c=!0;break;case 107:x6(a,0,0,-1);c=!0;break;case 109:x6(a,0,0,1),c=!0}c&&a.B.push(b);return c};
B6=function(a,b){var c=a.B.indexOf(b);if(-1<c)switch(a.B.splice(c,1),b){case 37:case 65:x6(a,-1,0,0);break;case 39:case 68:x6(a,1,0,0);break;case 38:case 87:x6(a,0,-1,0);break;case 40:case 83:x6(a,0,1,0);break;case 107:x6(a,0,0,1);break;case 109:x6(a,0,0,-1)}0==a.B.length&&(a.M=!1)};
D6=function(a){S.call(this,{J:"div",X:"ytp-spinner",R:[{J:"span",X:"ytp-spinner-svg",R:[Jh()]},{J:"div",X:"ytp-spinner-message",R:[O("YTP_PLAYBACK_STALLED_AT_START")]}]});this.A=this.qa["ytp-spinner-message"];this.o=a;this.b=new fe(this.show,500,this);this.U(a,"presentingplayerstatechange",this.D);this.U(a,"onFrescaStateChange",this.B);this.U(a,"playbackstalledatstart",this.C);C6(this,Sr(a))};
C6=function(a,b){var c;R(b,128)?c=0:!(c=R(b,16))&&(c=R(b,1))&&(c=$I(iq(a.o),"fresca"),c=!(c&&c.loaded));c?a.b.start():a.pa()};
E6=function(a,b){S.call(this,{J:"button",ha:["ytp-airplay-button","ytp-button"],V:{title:O("YTP_AIRPLAY")},R:["{{icon}}"]});this.b=a;this.P("click",this.A);this.U(a,"airplayactivechange",this.o);this.U(a,"airplayavailabilitychange",this.o);this.o();Lb(this,D5(b.g,this.element))};
F6=function(a,b){FF.call(this,{J:"div",X:"ytp-storyboard",R:[{J:"div",X:"ytp-storyboard-filmstrip",R:[{J:"div",X:"ytp-storyboard-thumbnail"}]},{J:"div",X:"ytp-storyboard-lens",R:[{J:"div",X:"ytp-storyboard-lens-thumbnail"},{J:"div",X:"ytp-storyboard-lens-timestamp-wrapper",R:[{J:"span",X:"ytp-storyboard-lens-timestamp"}]}]}]});this.A=a;this.$=b.g;this.M=new ym(this.pA,250,this);H(this,this.M);this.F=Jx(a).Ka().width;this.o=this.qa["ytp-storyboard-filmstrip"];this.da=this.qa["ytp-storyboard-lens"];
this.fa=this.qa["ytp-storyboard-lens-thumbnail"];this.ea=this.qa["ytp-storyboard-lens-timestamp"];this.ca=this.qa["ytp-storyboard-thumbnail"];Hf(this.ca);this.G=0;this.S=!1;this.L=this.C=this.B=window.NaN;this.b=this.D=null;this.H=new Dw(this);this.K=new cv(this,100);this.U(this.A,"appresize",this.Hy);this.U(this.A,"presentingplayerstatechange",this.iI)};
G6=function(a,b){var c=!!a.b;c&&a.b.Ga("l",a.sj,a);a.b=b&&uF(b);a.S=!!b&&b.za;a.b?(c||(a.H.U(a.A,"videodatachange",a.jI),a.H.U(a.A,"progresssync",a.Pj),a.H.U(a.A,"videoplayerreset",a.Pj)),a.b.subscribe("l",a.sj,a),a.L=window.NaN,a.B=window.NaN,a.C=window.NaN,a.Pj(),a.K.show(200)):(c&&Fw(a.H),a.M.stop(),Iw(a.G),ev(a.K),a.K.stop())};
H6=function(a,b,c,d){var e=a.ca.cloneNode(!1);a=TD(a.b,b,c);G1(e,a,c,d);return e};
I6=function(a){S.call(this,{J:"div",X:"ytp-storyboard-framepreview",R:[{J:"div",X:"ytp-storyboard-framepreview-img"}]});this.D=this.qa["ytp-storyboard-framepreview-img"];this.b=a;this.o=null;this.A=window.NaN;this.B=new Dw(this);this.C=new cv(this,100);this.U(this.b,"presentingplayerstatechange",this.kI)};
K6=function(a,b){var c=!!a.o;a.o=b&&uF(b);a.o?(c||(a.B.U(a.b,"videodatachange",a.mI),a.B.U(a.b,"progresssync",a.lI),a.B.U(a.b,"appresize",a.Iy)),a.A=window.NaN,J6(a),a.C.show(200)):(c&&Fw(a.B),ev(a.C),a.C.stop())};
J6=function(a){var b=a.b.getCurrentTime(),c=Jx(a.b).Ka(),d=RD(a.o,c.width),b=a.o.b[d].Oj(b);b!=a.A&&(a.A=b,VD(a.o,b,c.width),b=TD(a.o,b,c.width),G1(a.D,b,c.width,c.height))};
M6=function(a,b){S.call(this,{J:"button",ha:["ytp-fullscreen-button","ytp-button"],V:{title:"{{title}}"},R:["{{icon}}"]});this.o=a;this.B=b;this.b=null;this.A=D5(b.g,this.element);this.C=new fe(this.tx,2E3,this);H(this,this.C);this.U(a,"fullscreentoggled",this.ws);this.U(a,"presentingplayerstatechange",this.Ju);this.P("click",this.nI);if(Vh()){var c=Jx(this.o);this.U(c,Uh(),this.Uq);this.U(c,Th(window.document),this.oI)}T(a).Ba||L6(this);this.Ju();this.ws(a.Qa())};
L6=function(a){if(!a.b){var b=O(null!=Sh(["requestFullscreen","webkitRequestFullscreen","mozRequestFullScreen","msRequestFullscreen"],window.document.body)?"YTP_FULLSCREEN_GENERIC_ERROR":"YTP_FULLSCREEN_UNSUPPORTED_ERROR").split(/\$(BEGIN|END)_LINK/);a.b=new E5(a.o,a.B,{J:"div",ha:["ytp-popup","ytp-generic-popup"],V:{role:"alert",tabindex:0},R:[b[0],{J:"a",V:{href:"https://support.google.com/youtube/answer/6276924",target:"_blank"},R:[b[2]]},b[4]]},100,!0);H(a,a.b);a.b.subscribe("show",x(a.B.Mk,a.B,
a.b));Qv(a.o,a.b.element,4);a.element.setAttribute("aria-disabled",!0);a.element.setAttribute("aria-haspopup",!0);a.A();a.A=null}};
N6=function(a,b,c){S.call(this,{J:"button",ha:["ytp-multicam-button","ytp-button"],V:{title:O("YTP_SWITCH_CAMERA"),"aria-haspopup":!0,"data-preview":"{{preview}}","data-tooltip-text":"{{text}}"},R:[vh?{J:"div",ha:["ytp-icon","ytp-icon-switch-camera"]}:{J:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},R:[{J:"path",Fa:!0,V:{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 fe(this.D,0,this);H(this,this.C);this.P("click",x(c.Qe,c,this.element,!1));this.U(a,"presentingplayerstatechange",pa(this.B,!1));this.U(a,"videodatachange",this.F);this.B(!0);Lb(this,D5(this.A,this.element))};
O6=function(a,b){this.A=new Dw(this);H(this,this.A);var c={J:"div",X:"ytp-multicam-menu",V:{role:"dialog"},R:[{J:"div",X:"ytp-multicam-menu-header",R:[{J:"div",X:"ytp-multicam-menu-title",R:[O("YTP_SWITCH_CAMERA"),{J:"button",ha:["ytp-multicam-menu-close","ytp-button"],V:{"aria-label":O("YTP_CLOSE")},R:[Ah()]}]}]},{J:"div",X:"ytp-multicam-menu-items"}]};E5.call(this,a,b,c,250);this.U(this.qa["ytp-multicam-menu-close"],"click",this.sb);this.b=a;this.B=this.qa["ytp-multicam-menu-items"];this.o=[]};
P6=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};
Q6=function(){this.o=null;this.B=this.b=0;this.A=new Qs(this.g,null,this);H(this,this.A)};
R6=function(a,b){if("path"==b.J)return b.V.d;if(b.R)for(var c=0;c<b.R.length;c++){var d=b.R[c];if(d&&!w(d)&&(d=R6(a,d)))return d}};
V6=function(a,b,c){c=R6(a,c);var d=b.getElementsByTagName("path")[0],e=d.getAttribute("d");if(d.getAttribute("id")){var f=Hq.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=S6(e),m=S6(c);T6(a,function(a){d.setAttribute("d",U6(l,m,a))},200)};
T6=function(a,b,c){a.o=b;a.B=yq();a.b=c;a.g()};
S6=function(a){var b=[];a=a.match(vma);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};
U6=function(a,b,c){var d,e="";for(d=0;d<a.length;d++)var f=a[d],e=ga(f)?e+(f+(b[d]-f)*c):e+f;return e};
X6=function(a,b){var c=T(a);S.call(this,{J:"button",ha:["ytp-mute-button","ytp-button"],V:c.da?{title:"{{title}}"}:{"aria-disabled":!0,"aria-haspopup":!0},R:["{{icon}}"]});this.wa("icon",Oh());this.b=a;this.M=b.g;this.o=this.A=window.NaN;T(this.b).O||(this.B=this.element.getElementsByTagName("path")[0],this.F=this.element.getElementsByTagName("svg")[1],this.H=this.B.getAttribute("d"));this.C=new Q6;H(this,this.C);this.P("click",this.G);this.U(a,"appresize",this.D);this.U(a,"onVolumeChange",this.O);
var d=null;c.da?Lb(this,D5(b.g,this.element)):(c=O("YTP_VOLUME_UNSUPPORTED_ERROR").split(/\$(BEGIN|END)_LINK/),d=new E5(a,b,{J:"span",ha:["ytp-popup","ytp-generic-popup"],V:{tabindex:0},R:[c[0],{J:"a",V:{href:"https://support.google.com/youtube/?p=noaudio",target:"_blank"},R:[c[2]]},c[4]]},100,!0),H(this,d),d.subscribe("show",x(b.Mk,b,d)),Qv(a,d.element,4));this.L=d;this.D(Jx(a).Ka());W6(this,a.Nb(),a.ad())};
W6=function(a,b,c){var d=c?0:b/100;b=T(a.b);if(b.O)d=0==d?Oh():0<d&&.5>d?Nh():Mh(),d!=a.K&&(a.wa("icon",d),a.K=d);else if(d=d?.5*Math.ceil(d/.5):-.5,a.o!=d){var e=a.A;(0,window.isNaN)(e)?Y6(a,d):T6(a.C,x(function(a){Y6(this,e+(this.o-e)*a)},a),250);
a.o=d}b.da&&(a.wa("title",c?O("YTP_UNMUTE"):O("YTP_MUTE")),Z6(a.M))};
Y6=function(a,b){a.A=b;var c=a.H,d=$e(2*b,0,1);d&&(c+=" "+U6(wma,xma,d),(d=$e(2*(b-.5),0,1))&&(c+=" "+U6(yma,zma,d)));a.B.setAttribute("d",c);a.F.style.opacity=Math.max(b/-.5,0)};
$6=function(a,b){S.call(this,{J:"button",ha:["ytp-pip-button","ytp-button"],V:{title:O("YTP_PIP")},R:[vh?{J:"div",ha:["ytp-icon","ytp-icon-pip"]}:{J:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},R:[{J:"path",Fa:!0,V:{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.P("click",this.o);Lb(this,D5(b.g,this.element))};
b7=function(a,b){S.call(this,{J:"button",ha:["ytp-play-button","ytp-button"],V:{title:"{{title}}","aria-label":"{{label}}"},R:["{{icon}}"]});this.b=a;this.o=null;this.B=b.g;this.A=null;this.C=new Q6;H(this,this.C);this.U(a,"fullscreentoggled",this.D);this.U(a,"presentingplayerstatechange",this.F);this.U(a,"videodatachange",this.D);a7(this,Sr(a));this.P("click",this.G,this)};
c7=function(a){switch(a){case 1:return Eh();case 2:return Dh();case 3:return Hh();case 4:return Kh();default:return null}};
a7=function(a,b){var c,d=Tr(a.b.getVideoData()),e=!1;tq(b)?c=d?4:2:R(b,2)?(c=3,e=d):c=1;a.element.disabled=e;if(a.o!=c){var f;switch(c){case 2:f=O("YTP_PAUSE");break;case 3:f=O("YTP_REPLAY");break;case 1:f=O("YTP_PLAY");break;case 4:f=O("YTP_STOP")}3==c?(a.A||(a.A=D5(a.B,a.element)),a.update({title:f,label:null,icon:c7(c)})):(a.A&&(a.A(),a.A=null),a.update({title:null,label:f}),(d=c7(c))&&a.o&&3!=a.o&&!T(a.b).O?V6(a.C,a.element,d):a.wa("icon",d));Z6(a.B);a.o=c}};
d7=function(a,b,c){var d,e;c?(d="ytp-next-button",e=Ch()):(d="ytp-prev-button",e=Gh());S.call(this,{J:"a",ha:[d,"ytp-button"],V:{title:"{{title}}",href:"{{url}}","data-preview":"{{preview}}","data-tooltip-text":"{{text}}","data-duration":"{{duration}}","aria-disabled":"{{disabled}}","data-next":"{{next}}","data-prev":"{{prev}}"},R:[e]});this.b=a;this.K=b.g;this.A=c;this.o=this.F=null;this.H=!1;this.D=this.G=this.B=null;this.C=!1;this.U(a,"fullscreentoggled",this.Hg);this.U(a,"videodatachange",this.Hg);
this.U(a,"onPlaylistUpdate",this.Hg);this.A||this.U(a,"appresize",this.Ku);this.Hg()};
e7=function(a){a.o&&a.o.Ga("shuffle",a.Hg,a)};
f7=function(a){return!!a.o&&!a.A&&3<=a.b.getCurrentTime()&&2!=a.b.getPresentingPlayerType()};
g7=function(a){var b={duration:null,preview:null,text:null,title:null,url:null},c=T(a.b),d=cJ(a.b),e=a.A&&pJ(a.b);if(a.C)b.title=O("YTP_REPLAY");else if(d){var f=null;a.o&&(f=a.o.Gb(a.A?rK(a.o):sK(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?Pq(f.lengthSeconds):null;b.preview=f.Fc(c,"default.jpg")}b.title=O(a.A?"YTP_NEXT":"YTP_PREVIOUS")}else e&&(a.F.O&&a.F.O.length&&(f=BK(a.F.O[0]),b.url=f.$k(c),b.text=
f.title,b.duration=f instanceof dF?Pq(f.lengthSeconds):null,b.preview=f.Fc(c,"default.jpg")),b.title=O("YTP_NEXT"));b.disabled=!e&&!d;a.update(b);a.H=!!b.url;e||d||a.C?a.B||(a.B=D5(a.K,a.element),a.G=a.P("click",a.sI,a)):a.B&&(a.B(),a.B=null,a.ua(a.G),a.G=null);Z6(a.K)};
i7=function(a,b){FF.call(this,{J:"div",X:"ytp-progress-bar-container",V:{"aria-disabled":!0},R:[{J:"div",X:"ytp-progress-bar",V:{tabindex:0,role:"slider","aria-label":O("YTP_SEEK_SLIDER"),"aria-valuemin":"{{ariamin}}","aria-valuemax":"{{ariamax}}","aria-valuenow":"{{arianow}}","aria-valuetext":"{{arianowtext}}"},R:[{J:"div",X:"ytp-progress-bar-padding"},{J:"div",X:"ytp-progress-list",R:[{J:"div",ha:["ytp-play-progress","ytp-swatch-background-color"]},{J:"div",X:"ytp-load-progress"},{J:"div",X:"ytp-hover-progress"},
{J:"div",X:"ytp-clip-start-exclude"},{J:"div",X:"ytp-clip-end-exclude"},{J:"div",X:"ytp-ad-progress-list"},{J:"div",X:"ytp-marker-crenellation-list"},{J:"div",X:"ytp-marker-progress-list"}]},{J:"div",X:"ytp-scrubber-container",R:[{J:"div",ha:["ytp-scrubber-button","ytp-swatch-background-color"],R:[{J:"div",X:"ytp-scrubber-pull-indicator"}]}]}]},{J:"div",X:"ytp-bound-time-left",R:["{{boundTimeLeft}}"]},{J:"div",X:"ytp-bound-time-right",R:["{{boundTimeRight}}"]},{J:"div",X:"ytp-clip-start",V:{title:O("YTP_WATCH_ALL")},
R:["{{clipstarticon}}"]},{J:"div",X:"ytp-clip-end",V:{title:O("YTP_WATCH_ALL")},R:["{{clipendicon}}"]}]});this.wa("clipstarticon",zh());this.wa("clipendicon",yh());this.o=a;this.Da=b.g;this.oa=!1;this.B=this.Sa=0;this.S=1;this.Ta=this.F=0;this.C=window.NaN;this.Ia=!1;this.G=this.ca=0;this.kb=this.qa["ytp-ad-progress-list"];this.rb=this.qa["ytp-marker-progress-list"];this.Ha=this.qa["ytp-marker-crenellation-list"];this.M={};this.ga={};this.K=window.Infinity;var c=b.g;this.$=this.qa["ytp-clip-end"];
Lb(this,D5(c,this.$));this.ia=new y1(this.$,!0);H(this,this.ia);this.ia.subscribe("hoverstart",this.Nq,this);this.ia.subscribe("hoverend",this.Mq,this);this.U(this.$,"click",this.dj);this.Ba=this.qa["ytp-clip-end-exclude"];this.yb=this.qa["ytp-clip-start-exclude"];this.L=0;this.da=this.qa["ytp-clip-start"];Lb(this,D5(c,this.da));this.ka=new y1(this.da,!0);H(this,this.ka);this.ka.subscribe("hoverstart",this.Nq,this);this.ka.subscribe("hoverend",this.Mq,this);this.U(this.da,"click",this.dj);this.Na=
this.qa["ytp-load-progress"];this.ea=0;this.Db=this.qa["ytp-play-progress"];this.fa=this.qa["ytp-hover-progress"];this.D=0;this.bb=this.qa["ytp-progress-bar"];this.A=null;this.Xa=this.qa["ytp-scrubber-button"];this.zb=this.qa["ytp-scrubber-container"];this.na=new ef;this.Ja=new F1;this.b=new B1(0,0);this.H=this.ra=!1;this.ab=null;this.U(a,"presentingplayerstatechange",this.zy);this.U(a,"videodatachange",this.Lu);this.U(a,"videoplayerreset",this.yy);this.U(a,"cuerangesadded",this.Ps);this.U(a,"cuerangesremoved",
this.RE);this.U(a,"cuerangemarkersupdated",this.Ps);this.U(a,"onPlaybackQualityChange",this.Fy);h7(this,a.getVideoData(),!0)};
m7=function(a){if(a.B){var b=a.o.Cf(),c=new B1(b.seekableStart,b.seekableEnd),d=E1(c,b.loaded,0),b=E1(c,b.current,0),e=a.b.g!=c.g||a.b.b!=c.b;a.b=c;j7(a,b,d);e&&k7(a);l7(a)}};
h7=function(a,b,c){var d=!!b&&xF(b);a.ra=d&&b.L;n7(a,lJ(a.o));c&&(d?(c=b.clipEnd,a.L=b.clipStart,a.K=c,o7(a),j7(a,a.D,a.ea)):a.dj(),b=a.Da,1==b.b&&b.Gc());m7(a)};
p7=function(a){return!!a&&xF(a)&&!!a.g&&a.g.video.isAccelerated&&a.g.video.b};
q7=function(a,b){a.Ia=b;K(a.Na,"ytp-fast-load",b)};
r7=function(a,b,c,d){b=$e(b,0,a.H?60:40);a.F=b;var e=a.S;a.S=b/(a.H?60:40)*(Math.max(C1(a.b)/a.B,1)-1)+1;b=a.B*a.S;a.G=$e(d*b-c,0,b-a.B);e!=a.S&&k7(a)};
k7=function(a){var b=s7(a),c=-b.o/b.b,d=(-b.o+b.width)/b.b,e=Kf(a.Ha),f=0;if(a.F>.2*(a.H?60:40))for(var k=C1(a.b)/60*d,l=Math.ceil(C1(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/C1(a.b)-c)*b.b+"px"}b=a.ra?a.b.b:0;a.update({boundTimeLeft:Pq(D1(a.b,c)-b),boundTimeRight:Pq(D1(a.b,d)-b)});for(c=e.length-1;c>=f;c--)Hf(e[c]);
a.element.style.height=a.F+(a.H?8:5)+"px";a.Y("height-change",a.F);a.Xa.style.height=a.F+(a.H?20:13)+"px";for(var n in a.M)t7(a,a.M[n],a.ga[n]);o7(a);j7(a,a.D,a.ea)};
s7=function(a){var b=a.na.x,c=a.B*a.S,b=$e(b,0,a.B);a.Ja.update(b,a.B,-a.G,-(c-a.G-a.B));return a.Ja};
j7=function(a,b,c){a.D=b;a.ea=c;var d=s7(a),e=a.b.b,f=D1(a.b,a.D);a.update({ariamin:Math.floor(a.b.g),ariamax:Math.floor(e),arianow:Math.floor(f),arianowtext:O("YTP_PROGRESS_LABEL_2",{PLAY_PROGRESS:Pq(f),DURATION:Pq(e)})});var e=E1(a.b,a.L,0),k=E1(a.b,a.K,1),f=$e(b,e,k);c=a.Ia?1:$e(c,e,k);k=b*d.b+d.o;a.Xa.style.display=0<=k&&b<=d.width?"":"none";is(a.zb,"transform","translateX("+k+"px)");u7(a,a.Db,d,e,f);u7(a,a.Na,d,e,c)};
u7=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||T(a.o).isMobile?(b.style.width=d+"px",ks(b,"transform")):is(b,"transform","scalex("+(c.width?d/c.width:0)+")")};
o7=function(a){var b=a.L>a.b.g,c=0<a.b.b&&a.K<a.b.b;K(a.element,"ytp-clip-start-enabled",b);K(a.element,"ytp-clip-end-enabled",c);b=b?E1(a.b,a.L,0):0;c=c?E1(a.b,a.K,1):1;a.da.style.left=Math.round(1E3*b)/10+"%";a.$.style.left=Math.round(1E3*c)/10+"%";a.yb.style.width=Math.round(1E3*b)/10+"%";a.Ba.style.left=Math.round(1E3*c)/10+"%";a.Ba.style.width=Math.round(1E3*(1-c))/10+"%"};
l7=function(a){var b=s7(a);u7(a,a.fa,b,a.D,b.g);K(a.fa,"ytp-hover-progress-light",b.g>a.D)};
t7=function(a,b,c){var d=s7(a),e=E1(a.b,b.start/1E3,0),f,k=bq(b)/d.width;switch(b.style){case "ytp-chapter-marker":f=e+k/2;e-=k/2;break;default:f=E1(a.b,b.end/1E3,1),k!=Number.POSITIVE_INFINITY&&(e=$e(e,0,f-k)),f=Math.min(f,e+k),b.color&&(c.style.background=b.color)}u7(a,c,d,e,f,!0);c.className=b.style};
v7=function(a,b){var c=b.getId();a.M[c]==b&&(Hf(a.ga[c]),delete a.M[c],delete a.ga[c])};
n7=function(a,b){b?a.A||(a.element.removeAttribute("aria-disabled"),a.A=new y1(a.bb,!0),a.A.subscribe("hovermove",a.jD,a),a.A.subscribe("hoverend",a.iD,a),a.A.subscribe("dragstart",a.hD,a),a.A.subscribe("dragmove",a.lD,a),a.A.subscribe("dragend",a.kD,a),a.ab=a.P("keydown",a.uI)):a.A&&(a.element.setAttribute("aria-disabled",!0),a.ua(a.ab),a.A.cancel(),a.A.dispose(),a.A=null)};
x7=function(a){S.call(this,{J:"div",X:"ytp-remote",R:[{J:"div",X:"ytp-remote-display-status",R:[{J:"div",X:"ytp-remote-display-status-icon",R:[wh()]},{J:"div",X:"ytp-remote-display-status-text",R:["{{statustext}}"]},{J:"div",X:"ytp-remote-display-status-receiver",R:["{{receiver}}"]}]}]});this.b=new cv(this,250);H(this,this.b);this.o=a;this.U(a,"presentingplayerstatechange",this.A);w7(this,Sr(a))};
w7=function(a,b){if(3==a.o.getPresentingPlayerType()){var c;c=R(b,128)?O("YTP_MDX_PLAYER_ERROR"):O("YTP_MDX_STATUS_CONNECTED");var d=a.o.Jb("remote","currentReceiver");a.update({statustext:c,receiver:d.name});a.b.show()}else ev(a.b)};
y7=function(a,b,c){S.call(this,{J:"button",ha:["ytp-remote-button","ytp-button"],V:{title:O("YTP_MDX_TOOLTIP")},R:["{{icon}}"]});this.Z=a;this.B=c;this.o=null;this.U(a,"onMdxReceiversChange",this.b);this.U(a,"presentingplayerstatechange",this.b);this.U(a,"appresize",this.b);this.b();this.P("click",this.A,this);Lb(this,D5(b.g,this.element))};
z7=function(a,b){V5.call(this,O("YTP_ANNOTATIONS"),5);this.B=b;this.Z=a;this.o=!1;this.U(a,"videodatachange",this.A);this.U(a,"onApiChange",this.A);this.subscribe("select",this.C,this);this.A()};
A7=function(a,b,c,d,e,f){var k=P5({"aria-haspopup":!0});O5.call(this,k,b,a);this.b=d;this.F=null;this.o={};this.C=new R5(c,void 0,a,e,f);H(this,this.C);this.P("keydown",this.vI);this.P("click",this.open)};
B7=function(a,b){for(var c=a.C,d=0;d<c.b.length;d++)c.b[d].Ga("size-change",c.S,c);c.b=[];Ff(c.o.element);c.o.Y("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?(N5(a.o[f],a.jd(f,!0)),delete a.o[f]):(k=new O5({J:"div",ha:["ytp-menuitem"],V:{tabindex:0,role:"menuitemradio","aria-checked":l?!0:null},R:[{J:"div",ha:["ytp-menuitem-label"],R:["{{label}}"]}]},-e,a.jd(f,!0)),k.P("click",x(a.PC,a,f)));c[f]=k;S5(a.C,k,!0)}d||(a.F=null);for(f in a.o)a.o[f].dispose();
a.o=c};
C7=function(a,b){A7.call(this,O("YTP_AUDIO_TRACK_TITLE"),2,a,b);this.Z=a;this.G=new S({J:"div",R:[{J:"span",R:[O("YTP_AUDIO_TRACK_TITLE")]},{J:"span",X:"ytp-menuitem-label-count",R:["{{content}}"]}]});N5(this,this.G);this.H={};this.A=!1;this.U(a,"videodatachange",this.D);this.U(a,"onPlaybackAudioChange",this.D);this.D()};
D7=function(a,b){V5.call(this,O("YTP_AUTOPLAY"),6);this.D=b;this.Z=a;this.B=!1;this.o=[];this.U(a,"presentingplayerstatechange",this.A);this.subscribe("select",this.F,this);this.A()};
E7=function(a,b){A7.call(this,O("YTP_QUALITY_TITLE"),1,a,b);J(this.C.element,"ytp-quality-menu");this.Z=a;this.H={};this.D="unknown";this.A=!1;this.U(a,"videodatachange",this.B);this.U(a,"videoplayerreset",this.B);this.U(a,"onPlaybackQualityChange",this.G);this.B()};
F7=function(a,b,c){var d=(a=a.H[b])?a.qualityLabel:(d=hy[b])?d+"p":O("YTP_AUTO");c={J:"span",ha:c,R:[d]};var e;a&&a.isAccelerated&&a.b?c.R.push({J:"div",X:"ytp-menuitem-badge-container",R:[{J:"svg",V:{fill:"#00838f",height:"11px",viewBox:"0 0 48 48",width:"11px"},R:[{J:"path",V:{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"}},{J:"path",V:{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.R.push(" "),c.R.push({J:"sup",X:"ytp-swatch-color",R:[e]}));return c};
G7=function(a,b){A7.call(this,O("YTP_MDX_TITLE"),0,a,b);this.Z=a;this.A=!1;this.G={};this.U(a,"onMdxReceiversChange",this.D);this.U(a,"presentingplayerstatechange",this.D);this.D()};
H7=function(a,b){A7.call(this,O("YTP_SPEED_TITLE"),4,a,b);this.Z=a;this.A=!1;this.B=null;this.U(a,"presentingplayerstatechange",this.Nu);this.Nu()};
J7=function(a,b,c,d){var e=O("YTP_VIDEO_SUBTITLES_OVERRIDE");A7.call(this,I7(d),a,b,c,e,x(this.AE,this));J(this.element,"ytp-subtitles-options-menu-item");this.G=d.option.toString();this.H=Hb(d.options,this.Pu,this);this.A=new R5(b,void 0,e);H(this,this.A);a=new O5({J:"div",X:"ytp-menuitemtitle",R:[O("YTP_VIDEO_SUBTITLES_OVERRIDE_DESC")]},0);H(this,a);S5(this.A,a,!0);this.D=new O5({J:"div",X:"ytp-menuitem",V:{role:"menuitemradio",tabindex:0},R:[{J:"div",X:"ytp-menuitem-label",R:[O("YTP_ON")]}]},-1);
H(this,this.D);S5(this.A,this.D,!0);this.U(this.D.element,"click",pa(this.gs,!0));this.B=new O5({J:"div",X:"ytp-menuitem",V:{role:"menuitemradio",tabindex:0},R:[{J:"div",X:"ytp-menuitem-label",R:[O("YTP_OFF")]}]},-2);H(this,this.B);S5(this.A,this.B,!0);this.U(this.B.element,"click",pa(this.gs,!1));B7(this,N(d.options,this.Pu))};
I7=function(a){return(a.message?O(a.message):a.text)||""};
K7=function(a,b){R5.call(this,a,void 0,O("YTP_OPTIONS"));this.A={};for(var c=0;c<i6.length;c++){var d=i6[c],e=new J7(-c,a,b,d);H(this,e);e.subscribe("settingChange",this.B,this);this.A[d.option.toString()]=e;S5(this,e,!0)}c=new O5(P5(),-i6.length,O("YTP_RESET"));H(this,c);c.P("click",x(this.B,this,"reset",!0));S5(this,c,!0)};
L7=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.ue(e),d.D.element.setAttribute("aria-checked",!f),d.B.element.setAttribute("aria-checked",f))}}};
M7=function(a,b){A7.call(this,O("YTP_AUTO_TRANSLATE"),0,a,b);this.A={}};
N7=function(a,b){A7.call(this,O("YTP_SUBTITLES"),3,a,b,O("YTP_OPTIONS"),x(this.lF,this));this.Z=a;this.H=!1;this.A={};this.G=new S({J:"div",R:[{J:"span",R:[O("YTP_SUBTITLES")]},{J:"span",X:"ytp-menuitem-label-count",R:["{{content}}"]}]});H(this,this.G);N5(this,this.G);this.D=new M7(a,b);H(this,this.D);this.D.subscribe("select",this.XD,this);this.B=new K7(a,b);H(this,this.B);this.B.subscribe("settingChange",this.AI,this);this.U(a,"videodatachange",this.Nh);this.U(a,"onApiChange",this.Nh);this.U(a,
"onCaptionsTrackListChanged",this.Nh);this.U(a,"captionschanged",this.Nh);this.Nh()};
O7=function(a,b){A7.call(this,O("YTP_THREED_SHORT"),7,a,b);this.Z=a;this.A=!1;this.U(a,"videodatachange",this.D);this.B=null;this.D()};
P7=function(a,b){this.o=a;this.B=new R5(a);H(this,this.B);H5.call(this,a,b,"ytp-settings-menu");this.K=this.G=null;this.fa=!1;L5(this,this.B)};
R7=function(a){if(!a.fa){a.fa=!0;var b=new E7(a.o,a);H(a,b);b=new N7(a.o,a);H(a,b);b=new z7(a.o,a);H(a,b);T(a.o).ia&&(b=new H7(a.o,a),H(a,b));b=new O7(a.o,a);H(a,b);T(a.o).zb&&(b=new D7(a.o,a),H(a,b));b=new C7(a.o,a);H(a,b);T(a.o).B&&(a.K=new G7(a.o,a),H(a,a.K));Q7(a.G,a.B.b.length)}};
S7=function(a,b){S5(a.B,b);Q7(a.G,a.B.b.length)};
T7=function(a,b){a.g&&1>=a.B.b.length&&a.pa();var c=a.B;ob(c.b,b);b.Ga("size-change",c.S,c);c.o.element.removeChild(b.element);c.o.Y("size-change");Q7(a.G,a.B.b.length)};
U7=function(a,b,c){S.call(this,{J:"button",ha:["ytp-button","ytp-settings-button"],V:{"aria-haspopup":!0,"aria-owns":"ytp-main-menu-id",title:O("YTP_SETTINGS")},R:[Ih()]});this.o=c;this.Z=a;this.B=!0;this.P("click",this.C);this.U(a,"onPlaybackQualityChange",this.b);this.U(a,"videodatachange",this.b);this.U(a,"webglsettingschanged",this.b);this.U(a,"appresize",this.A);Lb(this,D5(b.g,this.element));this.b();this.A(Jx(a).Ka())};
Q7=function(a,b){a.B=!!b;a.A(Jx(a.Z).Ka())};
V7=function(a,b){S.call(this,{J:"button",ha:["ytp-size-button","ytp-button"],V:{title:"{{title}}"},R:["{{icon}}"]});this.b=a;this.B=b.g;this.A=null;this.C=new Q6;H(this,this.C);this.U(a,"sizestylechange",this.o);this.U(a,"fullscreentoggled",this.o);this.U(a,"presentingplayerstatechange",this.o);this.o();this.P("click",this.D);Lb(this,D5(this.B,this.element))};
W7=function(a,b){S.call(this,{J:"button",ha:["ytp-subtitles-button","ytp-button"],V:{"aria-pressed":"{{pressed}}",title:O("YTP_SUBTITLES_TOOLTIP")},R:[Lh()]});this.o=a;this.U(a,"videodatachange",this.b);this.U(a,"appresize",this.b);this.U(a,"onApiChange",this.b);this.U(a,"onCaptionsTrackListChanged",this.b);this.U(a,"captionschanged",this.b);this.b();this.P("click",this.A);Lb(this,D5(b.g,this.element))};
X7=function(a,b){S.call(this,{J:"div",ha:["ytp-time-display","notranslate"],R:[{J:"span",X:"ytp-time-current",R:["{{currenttime}}"]},{J:"span",X:"ytp-time-separator",R:[" / "]},{J:"span",X:"ytp-time-duration",R:["{{duration}}"]}]});this.B=new S({J:"button",ha:["ytp-live-badge","ytp-button"],V:{disabled:!0},R:[O("YTP_LIVE")]});H(this,this.B);this.B.Ca(this.element);this.b=a;this.G=b.g;this.o=null;this.C=this.A=!1;this.F=this.D=null;this.P("click",this.BI);this.U(a,"presentingplayerstatechange",this.Ig);
this.U(a,"appresize",this.Ig);this.U(a,"liveviewshift",this.CI);this.U(a,"videodatachange",this.DI);var c=a.getVideoData();c&&(this.A=c.za,K(this.element,"ytp-live",this.A));this.Ig()};
Z7=function(a,b,c){S.call(this,{J:"div",X:"ytp-volume-panel",V:{role:"slider","aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":"{{valuenow}}","aria-valuetext":"{{valuetext}}",tabindex:0},R:[{J:"div",X:"ytp-volume-slider",R:[{J:"div",X:"ytp-volume-slider-handle"}]}]});this.b=a;this.D=b;this.L=c;this.H=!1;this.G=jJ(b);this.O=this.B=0;this.M=this.qa["ytp-volume-slider"];this.S=this.qa["ytp-volume-slider-handle"];this.F=new y1(this.M,!0);H(this,this.F);this.F.subscribe("dragstart",this.LD,this);
this.F.subscribe("dragmove",this.KD,this);this.F.subscribe("dragend",this.JD,this);this.K=null;this.o=this.A=this.C=!1;this.U(a,"onVolumeChange",this.HI);this.U(a,"appresize",this.Ru);this.U(a,"fullscreentoggled",this.FI);this.U(a,"onShowControls",this.Jo);this.U(a,"onHideControls",this.Jo);this.U(this.element,"keydown",this.MD);this.U(this.element,"focus",pa(this.Qu,!0));this.U(this.element,"blur",pa(this.Qu,!1));this.Ru(Jx(a).Ka());Y7(this,a.Nb(),a.ad())};
Y7=function(a,b,c){var d=Math.floor(b),e=d+"% "+O("YTP_SCREENREADER_VOLUME_SETTING")+(c?" "+O("YTP_SCREENREADER_VOLUME_MUTED"):"");c=c?0:b/100;a.wa("valuenow",d);a.wa("valuetext",e);a.S.style.left=(a.G?60:40)*c+"px";a.B=b};
$7=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.K=a.U(a.element,"wheel",a.GI):(a.ua(a.K),a.K=null),K(a.L,"ytp-volume-slider-active",b))};
a8=function(a,b){var c=T(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");S.call(this,{J:"a",ha:e,V:{href:"{{url}}",target:"_blank",title:O("YTP_URL_NAVIGATE_TO",{WEBSITE:d}),"data-sessionlink":"feature=player-button"},R:[c?vh?{J:"div",ha:["ytp-icon","ytp-icon-logo-gaming"]}:{J:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 98 36",width:"100%"},R:[{J:"path",Fa:!0,X:"ytp-svg-fill",
V:{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"}},
{J:"path",ha:["ytp-svg-fill","ytp-svg-fill-logo-tube-text"],V:{d:"M23,12 L43,12 L43,24 L23,24 Z",fill:"none"}},{J:"path",Fa:!0,ha:["ytp-svg-fill","ytp-svg-fill-logo-tube-lozenge"],V:{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"}},{J:"g",Fa:!0,X:"ytp-svg-fill",R:[{J:"path",V:{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"}},
{J:"path",V:{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"}},
{J:"path",V:{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"}},
{J:"path",V:{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"}},
{J:"path",V:{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"}},
{J:"path",V:{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"}}]}]}:
vh?{J:"div",ha:["ytp-icon","ytp-icon-logo"]}:{J:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 51 36",width:"100%"},R:[{J:"path",Fa:!0,X:"ytp-svg-fill",V:{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"}},
{J:"path",ha:["ytp-svg-fill","ytp-svg-fill-logo-tube-text"],V:{d:"M23,12 L43,12 L43,24 L23,24 Z",fill:"none"}},{J:"path",Fa:!0,ha:["ytp-svg-fill","ytp-svg-fill-logo-tube-lozenge"],V:{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.P("click",this.A);this.U(a,"videodatachange",this.o);this.o();Lb(this,D5(b.g,this.element))};
b8=function(a,b,c){Dw.call(this);var d=T(a);this.Z=a;this.b=b;this.O=window.NaN;this.M=null;this.H=c;this.H.subscribe("autohideupdate",this.Ou,this);c=!Cq(Sr(a));var e=new S({J:"div",X:"ytp-gradient-bottom"});H(this,e);Qv(a,e.element,8);this.F=new cv(e,250,c,100);H(this,this.F);this.g=new S({J:"div",X:"ytp-chrome-bottom",R:[{J:"div",X:"ytp-chrome-controls"}]});H(this,this.g);Qv(a,this.g.element,8);this.D=new cv(this.g,250,c,100);H(this,this.D);c=this.g.element.children[0];this.o=new P7(a,b);H(this,
this.o);Qv(a,this.o.element,6);this.o.subscribe("show",this.zF,this);this.o.subscribe("show",x(b.iF,b,this.o));this.A=new i7(a,b);H(this,this.A);this.A.Ca(this.g.element,0);e=new F6(a,b);H(this,e);Qv(a,e.element,4);this.A.subscribe("height-change",e.fF,e);e=new I6(a);H(this,e);Qv(a,e.element,4);e=new Hq({J:"div",X:"ytp-left-controls"});H(this,e);e.Ca(c);var f=new d7(a,b,!1);H(this,f);f.Ca(e.element);f=new b7(a,b);H(this,f);f.Ca(e.element);f=new d7(a,b,!0);H(this,f);f.Ca(e.element);var k=new S({J:"span"});
H(this,k);k.Ca(e.element);if(!d.useMediaVolume&&(f=new X6(a,b),H(this,f),f.Ca(k.element),d.da)){f=new Z7(a,b,this.g.element);H(this,f);f.Ca(k.element);k=new y1(k.element);H(this,k);var l=x(f.xs,f,!0);k.subscribe("hoverstart",l);k=new y1(e.element);H(this,k);f=x(f.xs,f,!1);k.subscribe("hoverend",f)}this.G=new X7(a,b);H(this,this.G);this.G.Ca(e.element);e=new Hq({J:"div",X:"ytp-right-controls"});H(this,e);e.Ca(c);c=new W7(a,b);H(this,c);c.Ca(e.element);c=new U7(a,b,this.o);H(this,c);this.o.G=c;c.Ca(e.element);
c=new O6(a,b);H(this,c);Qv(a,c.element,5);c.subscribe("show",x(b.Lk,b,c));c=new N6(a,b,c);H(this,c);c.Ca(e.element);d.Ad&&(c=new a8(a,b),H(this,c),c.Ca(e.element));c=new V7(a,b);H(this,c);c.Ca(e.element);d.B&&(c=new x7(a),H(this,c),Qv(a,c.element,4),c=new y7(a,b,this.o),H(this,c),c.Ca(e.element));d.zd&&(d=new E6(a,b),H(this,d),d.Ca(e.element));d=py();d.webkitSetPresentationMode&&ha(d.webkitSupportsPresentationMode)&&d.webkitSupportsPresentationMode("picture-in-picture")&&(d=new $6(a,b),H(this,d),
d.Ca(e.element));this.K=new M6(a,b);H(this,this.K);this.K.Ca(e.element);this.B=new Qs(this.gC,null,this);H(this,this.B);this.C=null;this.U(a,"appresize",this.tn);this.U(a,"fullscreentoggled",this.tn);this.U(a,"presentingplayerstatechange",this.Bm);this.tn()};
c8=function(a,b){Cq(Sr(a.Z))||b?b&&(ev(a.D),ev(a.F),a.b.g.Jf(a.ma())):b||(a.D.show(),a.F.show(),a.Ou())};
d8=function(a){var b=Jx(a.Z).Ka().width;return Math.max(b-24*(jJ(a.b)?2:1),100)};
e8=function(a){S.call(this,{J:"div",X:"ytp-title",R:[{J:"a",X:"ytp-title-channel-logo",V:{href:"{{channelImageLink}}",target:"_blank"}},{J:"div",X:"ytp-title-text",R:[{J:"a",ha:["ytp-title-link","yt-uix-sessionlink"],V:{target:"_blank",href:"{{url}}","data-sessionlink":"feature=player-title"},R:[{J:"span",X:"ytp-title-playlist-icon",R:[Fh()]},{J:"span",R:["{{title}}"]}]},{J:"a",X:"ytp-title-channel-name",V:{href:"{{channelNameLink}}",target:"_blank"},R:["{{channelName}}"]}]}]});this.b=a;this.o=null;
this.G=this.qa["ytp-title-link"];this.F=this.qa["ytp-title-channel-logo"];this.K=this.qa["ytp-title-playlist-icon"];this.C=this.B=null;this.U(a,"videodatachange",this.A);this.U(a,"videoplayerreset",this.A);this.U(a,"appresize",this.D);this.D(Jx(a).Ka());this.A()};
g8=function(a){var b=a.b.getVideoData(),c=b.videoId&&2==a.b.getPresentingPlayerType();c&&b.videoId==a.B?J(a.element,"ytp-title-extra-info"):(le(a.element,"ytp-title-extra-info"),c&&(b.author&&b.kc&&b.profilePicture?f8(a,b.videoId,b.author,b.kc,b.profilePicture):b.videoId!=a.C&&(c=wA(T(a.b),b.videoId,!1),Zj(c,{method:"GET",fb:x(a.H,a,b.videoId),withCredentials:!0}),a.C=b.videoId)))};
f8=function(a,b,c,d,e){d=T(a.b).$+"://"+xA(T(a.b))+d;a.F.style.backgroundImage="url("+e+")";a.wa("channelImageLink",d);a.wa("channelNameLink",d);a.wa("channelName",O("YTP_UPLOADED_BY_2",{AUTHOR:c}));a.B=b;g8(a)};
h8=function(a,b){var c=Jx(a).Ka();S.call(this,{J:"div",R:[{J:"div",X:"ytp-tooltip-bg",R:[{J:"div",X:"ytp-tooltip-duration",R:["{{duration}}"]}]},{J:"div",X:"ytp-tooltip-text-wrapper",R:[{J:"div",X:"ytp-tooltip-image"},{J:"div",X:"ytp-tooltip-title",R:["{{title}}"]},{J:"span",X:"ytp-tooltip-text",R:["{{text}}"]}]}]});this.M=a;this.fa=b;this.ca=T(a).isMobile;this.G=this.qa["ytp-tooltip-bg"];this.ea=this.qa["ytp-tooltip-image"];this.$=x(this.BC,this);this.L=x(this.DC,this);this.o=null;this.D=new cv(this,
100);H(this,this.D);this.b=null;this.K=!1;this.A=null;this.C=window.NaN;this.F="";this.da=c.width;this.H=!0;this.B=1;this.O=new fe(this.qA,250,this);H(this,this.O);this.S=new fe(this.Gc,5E3,this);H(this,this.S)};
j8=function(a,b){if(null!=a.b)if(b)switch(a.b){case 3:i8(a);a.D.show();break;case 2:i8(a);a.D.show(400);break;default:a.D.show()}else ev(a.D);a.H=b};
D5=function(a,b){if(a.ca)return v;b.addEventListener("mouseover",a.L);return x(function(){this.o==b&&this.Gc();b.removeEventListener("mouseover",this.L)},a)};
l8=function(a,b,c){if(a.b)if(3==a.b)a.Gc();else return;k8(a,b,3,c)};
k8=function(a,b,c,d){(0,window.isNaN)(a.C)||(a.C=window.NaN,a.G.style.background="");a.o=b;a.K=!!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.ea.style.backgroundImage="url("+b+")";K(a.element,"ytp-tooltip-image-enabled",!!b);a.b=c;a.M.addEventListener("appresize",a.Gc,a);a.H&&(i8(a),a.D.show(3==a.b?0:400))};
i8=function(a){var b=a.o.getAttribute("data-tooltip-text");if(b&&!a.K){a.wa("text",b);var c=a.o.getAttribute("data-duration");a.update({title:a.F,duration:c});var d=a.o.getAttribute("data-preview"),e=96*a.B,f=54*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.background=d?"#000 url("+d+") "+(e-k)/2+"px "+(f-l)/2+"px/"+k+"px "+l+"px":"";je(a.element,["ytp-text-detail","ytp-preview"]);K(a.element,"ytp-has-duration",!!c)}else a.wa("text",a.F),me(a.element,["ytp-text-detail",
"ytp-preview","ytp-has-duration"]);m8(a,!!b)};
m8=function(a,b,c){a.element.style.maxWidth=b?"":Math.min(a.da,200*a.B)+"px";n8(a.fa,a.element,a.o,c,1==a.b);a.element.style.top?J(a.element,"ytp-bottom"):a.element.style.bottom&&J(a.element,"ytp-top");3==a.b&&a.S.start()};
Z6=function(a){a.o&&!a.K&&a.o.hasAttribute("title")&&(a.F=a.o.getAttribute("title"),a.o.removeAttribute("title"),a.H&&i8(a))};
o8=function(a,b){K(a.element,"ytp-preview",0<=b);if(!(0>b||b==a.C)){a.C=b;var c=96*a.B,d=96*a.B,e=TD(a.A,a.C,c);G1(a.G,e,c,d,!0);a.O.start()}};
q8=function(a,b,c){S.call(this,{J:"button",ha:["ytp-watch-later-button","ytp-button"],V:{title:"{{title}}","data-tooltip-image":"{{image}}"},R:["{{icon}}"]});this.b=a;this.C=b.g;this.D=c;J(c,"ytp-watch-later-button-visible");this.B=null;this.A=this.o=!1;this.P("click",this.II,this);this.U(a,"videoplayerreset",this.JI);this.U(a,"appresize",this.Su);this.Su(Jx(a).Ka());p8(this,2);Lb(this,D5(b.g,this.element))};
p8=function(a,b,c){if(b!=a.B){var d;switch(b){case 3:d=Jh();break;case 1:d=vh?{J:"div",ha:["ytp-icon","ytp-icon-watch-later-added"]}:{J:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},R:[{J:"path",Fa:!0,X:"ytp-svg-fill",V:{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=vh?{J:"div",ha:["ytp-icon","ytp-icon-watch-later"]}:{J:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},R:[{J:"path",Fa:!0,X:"ytp-svg-fill",
V:{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=vh?{J:"div",ha:["ytp-icon","ytp-icon-alert"]}:{J:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},R:[{J:"path",Fa:!0,X:"ytp-svg-fill",V:{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.wa("icon",
d);a.B=b}c?a.update({title:c,image:null}):(b=T(a.b),b.userDisplayName?(c={USER_NAME:b.userDisplayName},a.update({title:a.o?O("YTP_ADDED_TO_WATCH_LATER_AS",c):O("YTP_WATCH_LATER_AS_2",c),image:b.userDisplayImage})):a.update({title:O("YTP_WATCH_LATER"),image:null}));Z6(a.C)};
r8=function(a){S.call(this,{J:"a",ha:["ytp-watermark","yt-uix-sessionlink"],V:{target:"_blank",href:"{{url}}","aria-label":O("YTP_URL_NAVIGATE_TO",{WEBSITE:yA(T(a))}),"data-sessionlink":"feature=player-watermark"},R:[vh?{J:"div",ha:["ytp-icon","ytp-icon-watermark"]}:{J:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 77 34",width:"100%"},R:[{J:"path",Fa:!0,X:"ytp-svg-fill",V:{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"}},
{J:"path",ha:["ytp-svg-fill","ytp-svg-fill-logo-tube-text"],V:{d:"m 34,5.07 40,0 0,24 -40,0 z",fill:"none"}},{J:"path",Fa:!0,ha:["ytp-svg-fill","ytp-svg-fill-logo-tube-lozenge"],V:{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.U(a,"videodatachange",this.A);this.U(a,"presentingplayerstatechange",this.C);a=Sr(a);this.gb(!R(a,2));this.A()};
t8=function(a){Dw.call(this);dy();var b=T(a),c=Jx(a);this.b=a;Ama(this);var d=Sr(a);this.ra=!1;this.na=!0;this.da=!1;this.M=null;this.F=[];var e=new d6(a);H(this,e);Qv(a,e.element,4);var f=new D6(a);H(this,f);Qv(a,f.element,4);this.D=new x5(a);H(this,this.D);Qv(a,this.D.element,4);var k=new S({J:"div",X:"ytp-gradient-top"});H(this,k);Qv(a,k.element,1);this.ka=new cv(k,250,!0,100);H(this,this.ka);this.A=new S({J:"div",X:"ytp-chrome-top"});H(this,this.A);Qv(a,this.A.element,1);this.ia=new cv(this.A,
250,!0,100);H(this,this.ia);this.ba=[];this.O=new l6(a);H(this,this.O);this.O.Ca(e.element);k=a.getVideoData();this.B=new b5(c,x(this.YH,this),k,b.useTabletControls);H(this,this.B);this.B.subscribe("autohideupdate",this.ZH,this);this.g=new h8(a,this);H(this,this.g);Qv(a,this.g.element,4);this.G=new C5(a,this);H(this,this.G);Qv(a,this.G.element,2);var l=new fv(a,this.G);H(this,l);Qv(a,l.element,5);l=new p6(a,this);H(this,l);Qv(a,l.element,5);l.subscribe("show",x(this.Lk,this,l));this.ba.push(l);l=
new r6(a,this,l);H(this,l);l.Ca(this.A.element);l=new e8(a);H(this,l);l.Ca(this.A.element);l=new Hq({J:"div",X:"ytp-chrome-top-buttons"});H(this,l);l.Ca(this.A.element);if(b.Lg){var m=new q8(a,this,this.A.element);H(this,m);m.Ca(l.element)}m=new t6(a,this);H(this,m);Qv(a,m.element,5);m.subscribe("show",x(this.Lk,this,m));this.ba.push(m);m=new v6(a,this,m,this.A.element);H(this,m);m.Ca(l.element);l=null;FA(b)&&(l=new w6(a),H(this,l),Qv(a,l.element,3));(this.o="1"==b.A?new b8(a,this,this.B):null)&&
H(this,this.o);"3"==b.A&&(m=new s6(a,this),H(this,m),Qv(a,m.element,8));b.Ba&&"3"!=b.A?(m=new v5(c,x(this.ur,this),x(this.wD,this),x(this.tr,this)),H(this,m)):this.U(c,"click",x(function(a){this.tr(a)||this.ur(a)},this));
this.U(c,"touchstart",this.xD);this.H=new b6(a,this);H(this,this.H);this.H.subscribe("show",this.Ls,this);this.$=!1;b.Cd&&(m=new r8(a),H(this,m),Qv(a,m.element,7));m=new w5(a);H(this,m);Qv(a,m.element,4);this.ga=k.videoId;this.C=null;this.K=!1;this.ca=[];this.ea=new S({J:"div",V:{tabindex:0}});this.ea.P("focus",this.Tx,this);this.fa=new S({J:"div",V:{tabindex:0}});this.fa.P("focus",this.Ux,this);k=a.Ea();k.setAttribute("aria-label",O("YTP_PLAYER_NORMAL"));switch(b.color){case "white":J(k,"ytp-color-white");
break;case "blue":J(k,"ytp-color-blue")}(this.S=b.useTabletControls?null:new f6(a,c,this.H,this.B,l,this.D,x(this.Vo,this)))&&H(this,this.S);this.U(a,"appresize",this.on);this.U(a,"fullscreentoggled",this.$H);this.U(a,"presentingplayerstatechange",this.aI);this.U(a,"videodatachange",this.Hu);this.U(a,"videoplayerreset",this.bD);this.U(a,"autonavvisibility",this.uh,this);this.U(a,"cardstatechange",this.zg,this);this.U(a,"minimized",this.zg,this);this.U(a,"onFrescaStateChange",this.zg,this);s8(this,
d);this.uh();this.on();this.va=[c.o,f.element,e.element,this.D.element,this.O.element]};
iJ=function(a){var b=mr(a.b)&&hJ(a.b);kJ(a.b);return a.da||b||!!a.M||kJ(a.b)||a.b.app.W.Ta};
n8=function(a,b,c,d,e){b.style.left="";b.style.top="";b.style.bottom="";var f=Cs(b);e=e||a.o&&Pf(a.o.ma(),c);if(null==d||!e)var k=Cs(c),l=ys(c,a.b.Ea());d=(null==d?l.x+k.width/2:d)-f.width/2;e?(k=12*(jJ(a.o.b)?2:1),l=d8(a.o),c=Jx(a.b).Ka().height,d=$e(d,k,k+l-f.width),f=c-(jJ(a.o.b)?72:50)-f.height):Pf(a.A.element,c)?(k=Jx(a.b).Ka().width,d=$e(d,12,k-f.width-12),f=jJ(a)?69:48,"gvn"==T(a.b).g&&(f+=20)):(a=Jx(a.b).Ka(),d=$e(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"};
u8=function(a,b){if(!b)return!1;var c=Jx(a.b).b;if(c&&Pf(c,b))return c.controls;for(c=0;c<a.va.length;c++)if(Pf(a.va[c],b))return!1;return ie(b,"ytp-player-content")||ie(b,"html5-endscreen")||b==a.b.Ea()?!1:!0};
jJ=function(a){return a.b.Qa()};
s8=function(a,b){var c=b.Za()&&!R(b,32);a.B.Ab(128,!c);c=3==a.b.getPresentingPlayerType();a.B.Ab(256,c);var c=a.b.Ea(),d;R(b,2)?d=["ended-mode"]:(d=[],R(b,8)?d.push("playing-mode"):R(b,4)&&d.push("paused-mode"),R(b,1)&&!R(b,32)&&d.push("buffering-mode"),R(b,32)&&d.push("seeking-mode"),R(b,64)&&d.push("unstarted-mode"));Fb(a.ca,d)||(me(c,a.ca),a.ca=d,je(c,d));a.o&&c8(a.o,iJ(a));d=T(a.b);var e=Cq(b),f=R(b,2);K(c,"ytp-hide-controls",("3"==d.A?!f:"1"!=d.A)||e);K(c,"ytp-native-controls","3"==d.A&&!e&&
!f);if(R(b,128)){a.C||(a.C=new i5(a.b),H(a,a.C),a.C.Ca(c),Qv(a.b,a.C.element,4));c=a.C;d=b.b;for(e=0;e<c.A.length;e++)c.ua(c.A[e]);c.A=[];e=d.messageKey;f=T(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.Ob(j5(c,e,"https://get.adobe.com/flashplayer/",!1,!0));else if("YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK"!=e||f.Ub){d=d.message.split(Bma);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.Ob(e)}else c.Ob(j5(c,"YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK","//"+xA(f)+"/html5"));else if(c.Ob(j5(c,"YTP_ERROR_GENERIC_WITH_LINK_AND_CPN","//support.google.com/youtube/?p=player_error1",!0)),f.fa&&!f.D)for(d=x(c.B,c),e=c.element.getElementsByTagName("a"),f=0;f<e.length;f++)k=c.U(e[f],"click",d),c.A.push(k);a.C.show()}else a.C&&(a.C.dispose(),a.C=null)};
v8=function(a,b,c){b=c?b.lastElementChild:b.firstElementChild;for(var d=null;b;){if("none"!=ls(b,"display")&&"true"!=b.getAttribute("aria-hidden")){var e;0<=b.tabIndex?e=b:e=v8(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};
Ama=function(a){a=T(a.b);var b=a.O;if(ry("ytp-normal-css-loaded")){var c=ry("ytp-sprite-mode-css-loaded");b!=c&&Vi(Error("Player sprite mode mismatch. playerInSpriteMode: "+b+", spriteModeCssServed: "+c+", isMobile: "+a.isMobile),"WARNING")}};
Cma=function(){};
w8=function(a,b,c){return a[b]=a[b]||c};
Dma=function(a){for(var b=0;b<this.length;b++)if(this[b]===a)return b;return-1};
Ema=function(a){a=a.sort();for(var b=[],c=void 0,d=0;d<a.length;d++){var e=a[d];e!=c&&b.push(e);c=e}return b};
x8=function(){var a;if((a=Object.create)&&Fma.test(a))a=a(null);else{a={};for(var b in a)a[b]=void 0}return a};
z8=function(){var a=Gma.href,b;if(y8.dpo)b=y8.h;else{b=y8.h;var c=RegExp("([#].*&|[#])jsh=([^&#]*)","g"),d=RegExp("([?#].*&|[?#])jsh=([^&#]*)","g");if(a=a&&(c.exec(a)||d.exec(a)))try{b=(0,window.decodeURIComponent)(a[2])}catch(e){}}return b};
Hma=function(a){var b=w8(y8,"PQ",[]);y8.PQ=[];var c=b.length;if(0===c)a();else for(var d=0,e=function(){++d===c&&a()},f=0;f<c;f++)b[f](e)};
A8=function(a){return w8(w8(y8,"H",x8()),a,x8())};
D8=function(a,b,c){b&&0<b.length&&(b=B8(b),c&&0<c.length&&(b+="___"+B8(c)),28<b.length&&(b=b.substr(0,28)+(b.length-28)),c=b,b=w8(Ima,"_p",x8()),w8(b,c,x8())[a]=(new Date).getTime(),b=C8.r,"function"===typeof b?b(a,"_p",c):b.push([a,"_p",c]))};
B8=function(a){return a.join("__").replace(/\./g,"_").replace(/\-/g,"_").replace(/\,/g,"_")};
E8=function(a){throw Error("Bad hint"+(a?": "+a:""));};
Mma=function(a,b,c,d){var e=a.split(";"),f=e.shift(),k=F8[f],l=null;k?l=k(e,b,c,d):E8("no hint processor for: "+f);l||E8("failed to generate load url");b=l;c=b.match(Jma);(d=b.match(Kma))&&1===d.length&&Lma.test(b)&&c&&1===c.length||E8("failed sanity: "+a);return l};
Pma=function(a,b,c,d){function e(a){return(0,window.encodeURIComponent)(a).replace(/%2C/g,",")}
a=Nma(a);Oma.test(c)||E8("invalid_callback");b=G8(b);d=d&&d.length?G8(d):null;return[(0,window.encodeURIComponent)(a.CE).replace(/%2C/g,",").replace(/%2F/g,"/"),"/k=",e(a.version),"/m=",e(b),d?"/exm="+e(d):"","/rt=j/sv=1/d=1/ed=1",a.mo?"/am="+e(a.mo):"",a.Yr?"/rs="+e(a.Yr):"",a.Uu?"/t="+e(a.Uu):"","/cb=",e(c)].join("")};
Nma=function(a){"/"!==a.charAt(0)&&E8("relative path");for(var b=a.substring(1).split("/"),c=[];b.length;){a=b.shift();if(!a.length||0==a.indexOf("."))E8("empty/relative directory");else if(0<a.indexOf("=")){b.unshift(a);break}c.push(a)}a={};for(var d=0,e=b.length;d<e;++d){var f=b[d].split("="),k=(0,window.decodeURIComponent)(f[0]),l=(0,window.decodeURIComponent)(f[1]);2==f.length&&k&&l&&(a[k]=a[k]||l)}b="/"+c.join("/");Qma.test(b)||E8("invalid_prefix");c=H8(a,"k",!0);d=H8(a,"am");e=H8(a,"rs");a=
H8(a,"t");return{CE:b,version:c,mo:d,Yr:e,Uu:a}};
G8=function(a){for(var b=[],c=0,d=a.length;c<d;++c){var e=a[c].replace(/\./g,"_").replace(/-/g,"_");Rma.test(e)&&b.push(e)}return b.join(",")};
H8=function(a,b,c){a=a[b];!a&&c&&E8("missing: "+b);if(a){if(Sma.test(a))return a;E8("invalid: "+b)}return null};
Tma=function(){var a=z8();if(!a)throw Error("Bad hint");return a};
I8=function(a,b){for(var c=[],d=0;d<a.length;++d){var e=a[d];e&&0>Dma.call(b,e)&&c.push(e)}return c};
Uma=function(a){"loading"!=J8.readyState?K8(a):J8.write("<"+L8+' src="'+(0,window.encodeURI)(a)+'"></'+L8+">")};
K8=function(a){var b=J8.createElement(L8);b.setAttribute("src",a);b.async="true";(a=J8.getElementsByTagName(L8)[0])?a.parentNode.insertBefore(b,a):(J8.head||J8.body||J8.documentElement).appendChild(b)};
Vma=function(a,b){var c=b&&b._c;if(c)for(var d=0;d<M8.length;d++){var e=M8[d][0],f=M8[d][1];f&&Object.prototype.hasOwnProperty.call(c,e)&&f(c[e],a,b)}};
Wma=function(a,b,c){N8(function(){var c;c=b===z8()?w8(O8,"_",x8()):x8();c=w8(A8(b),"_",c);a(c)},c)};
Q8=function(a,b){var c=b||{};"function"==typeof b&&(c={},c.callback=b);Vma(a,c);var d=a?a.split(":"):[],e=c.h||Tma(),f=w8(y8,"ah",x8());if(f["::"]&&d.length){for(var k=[],l=null;l=d.shift();){var m=l.split("."),m=f[l]||f[m[1]&&"ns:"+m[0]||""]||e,n=k.length&&k[k.length-1]||null,t=n;n&&n.hint==m||(t={hint:m,features:[]},k.push(t));t.features.push(l)}var u=k.length;if(1<u){var y=c.callback;y&&(c.callback=function(){0==--u&&y()})}for(;d=k.shift();)P8(d.features,c,d.hint)}else P8(d||[],c,e)};
P8=function(a,b,c){function d(a,b){if(u)return 0;R8.clearTimeout(t);y.push.apply(y,A);var d=((O8||{}).config||{}).update;d?d(f):f&&w8(y8,"cu",[]).push(f);if(b){D8("me0",a,D);try{Wma(b,c,n)}finally{D8("me1",a,D)}}return 1}
a=Ema(a)||[];var e=b.callback,f=b.config,k=b.timeout,l=b.ontimeout,m=b.onerror,n=void 0;"function"==typeof m&&(n=m);var t=null,u=!1;if(k&&!l||!k&&l)throw"Timeout requires both the timeout parameter and ontimeout parameter to be set";var m=w8(A8(c),"r",[]).sort(),y=w8(A8(c),"L",[]).sort(),D=[].concat(m);0<k&&(t=R8.setTimeout(function(){u=!0;l()},k));
var A=I8(a,y);if(A.length){var A=I8(a,m),Q=w8(y8,"CP",[]),I=Q.length;Q[I]=function(a){function b(){var a=Q[I+1];a&&a()}
function c(b){Q[I]=null;d(A,a)&&Hma(function(){e&&e();b()})}
if(!a)return 0;D8("ml1",A,D);0<I&&Q[I-1]?Q[I]=function(){c(b)}:c(b)};
if(A.length){var P="loaded_"+y8.I++;O8[P]=function(a){Q[I](a);O8[P]=null};
a=Mma(c,A,"gapi."+P,m);m.push.apply(m,A);D8("ml0",A,D);b.sync||R8.___gapisync?Uma(a):K8(a)}else Q[I](Cma)}else d(A)&&e&&e()};
N8=function(a,b){if(y8.hee&&0<y8.hel)try{return a()}catch(c){b&&b(c),y8.hel--,Q8("debug_error",function(){try{window.___jsl.hefn(c)}catch(a){throw c;}})}else try{return a()}catch(c){throw b&&b(c),c;
}};
T8=function(a){this.b=a||aE();S8||(S8=Xma(this.b))};
Xma=function(a){return(new Dd(function(b){try{var c={gapiHintOverride:a.gapiHintOverride,_c:{jsl:{h:a.gapiHintParams}},callback:b},d=ha(c)?{callback:c}:c||{};d._c&&d._c.jsl&&d._c.jsl.h||jc(d,{_c:{jsl:{h:Pi("GAPI_HINT_PARAMS",void 0)}}});if(d.gapiHintOverride||Pi("GAPI_HINT_OVERRIDE")){var e=Oj(window.document.location.href).gapi_jsh;e&&jc(d,{_c:{jsl:{h:e}}})}Q8("client",d)}catch(f){Vi(f)}})).then(function(){})};
Yma=function(a,b,c,d){var e={path:"/youtubei/"+a.b.innertubeApiVersion+"/"+b,headers:{"X-Goog-Visitor-Id":Pi("VISITOR_DATA")},method:"POST",body:dg(c)},f=x(a.A,a);S8.then(function(){f();r("gapi.client.request")(e).execute(d||v)})};
U8=function(a){if(!a)return"";a=a.split("#")[0].split("?")[0];a=a.toLowerCase();0==a.indexOf("//")&&(a=window.location.protocol+a);/^[\w\-]*:\/\//.test(a)||(a=window.location.href);var b=a.substring(a.indexOf("://")+3),c=b.indexOf("/");-1!=c&&(b=b.substring(0,c));a=a.substring(0,a.indexOf("://"));if("http"!==a&&"https"!==a&&"chrome-extension"!==a&&"file"!==a&&"android-app"!==a)throw Error("Invalid URI scheme in origin");var c="",d=b.indexOf(":");if(-1!=d){var e=b.substring(d+1),b=b.substring(0,d);
if("http"===a&&"80"!==e||"https"===a&&"443"!==e)c=":"+e}return a+"://"+b+c};
Zma=function(){function a(){e[0]=1732584193;e[1]=4023233417;e[2]=2562383102;e[3]=271733878;e[4]=3285377520;t=n=0}
function b(a){for(var b=k,c=0;64>c;c+=4)b[c/4]=a[c]<<24|a[c+1]<<16|a[c+2]<<8|a[c+3];for(c=16;80>c;c++)a=b[c-3]^b[c-8]^b[c-14]^b[c-16],b[c]=(a<<1|a>>>31)&4294967295;a=e[0];for(var d=e[1],f=e[2],l=e[3],m=e[4],n,t,c=0;80>c;c++)40>c?20>c?(n=l^d&(f^l),t=1518500249):(n=d^f^l,t=1859775393):60>c?(n=d&f|l&(d|f),t=2400959708):(n=d^f^l,t=3395469782),n=((a<<5|a>>>27)&4294967295)+n+m+t+b[c]&4294967295,m=l,l=f,f=(d<<30|d>>>2)&4294967295,d=a,a=n;e[0]=e[0]+a&4294967295;e[1]=e[1]+d&4294967295;e[2]=e[2]+f&4294967295;
e[3]=e[3]+l&4294967295;e[4]=e[4]+m&4294967295}
function c(a,c){if("string"===typeof a){a=(0,window.unescape)((0,window.encodeURIComponent)(a));for(var d=[],e=0,k=a.length;e<k;++e)d.push(a.charCodeAt(e));a=d}c||(c=a.length);d=0;if(0==n)for(;d+64<c;)b(a.slice(d,d+64)),d+=64,t+=64;for(;d<c;)if(f[n++]=a[d++],t++,64==n)for(n=0,b(f);d+64<c;)b(a.slice(d,d+64)),d+=64,t+=64}
function d(){var a=[],d=8*t;56>n?c(l,56-n):c(l,64-(n-56));for(var k=63;56<=k;k--)f[k]=d&255,d>>>=8;b(f);for(k=d=0;5>k;k++)for(var m=24;0<=m;m-=8)a[d++]=e[k]>>m&255;return a}
for(var e=[],f=[],k=[],l=[128],m=1;64>m;++m)l[m]=0;var n,t;a();return{reset:a,update:c,digest:d,Hx:function(){for(var a=d(),b="",c=0;c<a.length;c++)b+="0123456789ABCDEF".charAt(Math.floor(a[c]/16))+"0123456789ABCDEF".charAt(a[c]%16);return b}}};
$ma=function(a,b,c){var d=[],e=[];if(1==(da(c)?2:1))return e=[b,a],F(d,function(a){e.push(a)}),V8(e.join(" "));
var f=[],k=[];F(c,function(a){k.push(a.key);f.push(a.value)});
c=Math.floor((new Date).getTime()/1E3);e=gb(f)?[c,b,a]:[f.join(":"),c,b,a];F(d,function(a){e.push(a)});
a=V8(e.join(" "));a=[c,a];gb(k)||a.push(k.join(""));return a.join("_")};
V8=function(a){var b=Zma();b.update(a);return b.Hx().toLowerCase()};
W8=function(){this.b=aE()};
Zq=function(){return Jj("enable_youtubei_innertube")?W8:T8};
ana=function(){this.b={}};
Psa=function(a){var b;a:{var c=a.args.legacy_config;if(c){var d=c?$f(c):null;if(d){var e,f=new B4(d),k=W(f,1),l=W(f,2),m=W(f,3),n=W(f,4),t=W(f,5),u=W(f,6),y=W(f,7),D=W(f,8),A=W(f,9),Q=W(f,10),I=W(f,11),P=W(f,12),ab=W(f,13),ib=W(f,14),kb=W(f,15),wb=W(f,16),hg=W(f,17),Or=W(f,18),Pr=W(f,19),Mn=W(f,20),Gk=W(f,21),Hk=W(f,22),ux=W(f,23),Ye=W(f,24),rc=W(f,25),rF=W(f,26),kg=W(f,27),rca=W(f,28),sca=W(f,29),bna=W(f,30),cna=W(f,31),dna=W(f,32),ena=W(f,33),fna=W(f,34),gna=W(f,35),hna=W(f,36),ina=W(f,37),jna=
W(f,38),kna=W(f,39),lna=W(f,40),mna=W(f,41),nna=W(f,42),ona=W(f,43),pna=W(f,44),qna=W(f,45),rna=W(f,46),sna=W(f,47),tna=W(f,48),una=W(f,49),vna=W(f,50),wna=W(f,51),xna=W(f,52),yna=W(f,53),zna=W(f,54),Ana=W(f,55),Bna=W(f,56),Cna=W(f,57),Dna=W(f,58),Ena=W(f,59),Fna=W(f,60),Gna=W(f,61),Hna=W(f,62),Ina=W(f,63),Jna=W(f,64),Kna=W(f,65),Lna=W(f,66),Mna=W(f,67),Nna=W(f,68),Ona=W(f,69),Pna=W(f,70),Qna=W(f,71),Rna=W(f,72),Sna=W(f,73),Tna=W(f,74),Una=W(f,75),Vna=W(f,76),Wna=W(f,77),Xna=W(f,78),Yna=W(f,79),Zna=
W(f,80),$na=W(f,81),aoa=W(f,82),boa=W(f,83),coa=W(f,84),doa=W(f,85),eoa=W(f,86),foa=W(f,87),goa=W(f,88),hoa=W(f,89),ioa=W(f,90),joa=W(f,91),koa=W(f,92),loa=W(f,93),moa=W(f,94),noa=W(f,95),ooa=W(f,96),poa=W(f,97),qoa=W(f,98),roa=W(f,99),soa=W(f,100),toa=W(f,101),uoa=W(f,102),voa=W(f,103),woa=W(f,104),xoa=W(f,105),yoa=W(f,106),zoa=W(f,107),Aoa=W(f,108),Boa=W(f,109),Coa=W(f,110),Doa=W(f,111),Eoa=W(f,112),Foa=W(f,113),Goa=W(f,114),Hoa=W(f,115),Ioa=W(f,116),Joa=W(f,117),Koa=W(f,118),Loa=W(f,119),Moa=W(f,
120),Noa=W(f,121),Ooa=W(f,122),Poa=W(f,123),Qoa=W(f,124),Roa=W(f,125),Soa=W(f,126),Toa=W(f,127),Uoa=W(f,128),Voa=W(f,129),Woa=W(f,130),Xoa=W(f,131),Yoa=W(f,132),Zoa=W(f,133),$oa=W(f,134),apa=W(f,135),bpa=W(f,136),cpa=W(f,137),dpa=W(f,138),epa=W(f,139),fpa=W(f,140),gpa=W(f,141),hpa=W(f,142),ipa=W(f,143),jpa=W(f,144),kpa=W(f,145),lpa=W(f,146),mpa=W(f,147),npa=W(f,148),opa=W(f,149),ppa=W(f,150),qpa=W(f,151),rpa=W(f,153),spa=W(f,154),tpa=W(f,155),upa=W(f,156),vpa=W(f,157),wpa=W(f,158),xpa=W(f,159),ypa=
W(f,160),zpa=W(f,161),Apa=W(f,162),Bpa=W(f,163),Cpa=W(f,164),Dpa=W(f,165),Epa=W(f,166),Fpa=W(f,167),Gpa=W(f,168),Hpa=W(f,169),Ipa=W(f,170),Jpa=W(f,171),Kpa=W(f,172),Lpa=W(f,173),Mpa=W(f,174),Npa=W(f,175),Opa=W(f,176),Ppa=W(f,177),Qpa=W(f,178),Rpa=W(f,179),Spa=W(f,180),Tpa=W(f,181),Upa=W(f,182),Vpa=W(f,183),Wpa=W(f,184),Xpa=W(f,185),Ypa=W(f,186),Zpa=W(f,187),$pa=W(f,188),aqa=W(f,189),bqa=W(f,190),cqa=W(f,191),dqa=W(f,192),eqa=W(f,193),fqa=W(f,194),gqa=W(f,195),hqa=W(f,196),iqa=W(f,197),jqa=W(f,198),
kqa=W(f,199),lqa=W(f,200),mqa=W(f,201),nqa=W(f,202),oqa=W(f,203),pqa=W(f,204),qqa=W(f,205),rqa=W(f,206),sqa=W(f,207),tqa=W(f,208),uqa=W(f,209),vqa=W(f,210),wqa=W(f,211),xqa=W(f,212),yqa=W(f,213),zqa=W(f,214),Aqa=W(f,215),Bqa=W(f,216),Cqa=W(f,217),Dqa=W(f,218),Eqa=W(f,219),Fqa=W(f,220),Gqa=W(f,221),Hqa=W(f,222),Iqa=W(f,223),Jqa=W(f,224),Kqa=W(f,225),Lqa=W(f,226),Mqa=W(f,227),Nqa=W(f,228),Oqa=W(f,229),Pqa=W(f,230),Qqa=W(f,231),Rqa=W(f,232),Sqa=W(f,233),Tqa=W(f,234),Uqa=W(f,235),Vqa=W(f,236),Wqa=W(f,
237),Xqa=W(f,238),Yqa=W(f,239),Zqa=W(f,240),$qa=W(f,241),ara=W(f,242),bra=W(f,243),cra=W(f,245),dra=W(f,246),era=W(f,247),fra=W(f,248),gra=W(f,249),hra=W(f,250),ira=W(f,251),jra=W(f,252),kra=W(f,253),lra=W(f,254),mra=W(f,255),nra=W(f,256),ora=W(f,257),pra=W(f,258),qra=W(f,259),rra=W(f,260),sra=W(f,261),tra=W(f,262),ura=W(f,263),vra=W(f,264),wra=W(f,265),xra=W(f,266),yra=W(f,267),zra=W(f,268),Ara=W(f,269),Bra=W(f,270),Cra=W(f,271),Dra=W(f,272),Era=W(f,273),Fra=W(f,275),Gra=W(f,276),Hra=W(f,277),Ira=
W(f,278),Jra=W(f,279),Kra=W(f,280),Lra=W(f,281),Mra=W(f,282),Nra=W(f,283),Ora=W(f,284),Pra=W(f,285),Qra=W(f,286),Rra=W(f,287),Sra=W(f,288),Tra=W(f,289),Ura=W(f,290),Vra=W(f,291),Wra=W(f,292),Xra=W(f,293),Yra=W(f,294),Zra=W(f,295),$ra=W(f,296),asa=W(f,297),bsa=W(f,298),csa=W(f,299),dsa=W(f,300),esa=W(f,301),fsa=W(f,302),gsa=W(f,303),hsa=W(f,304),isa=W(f,306),jsa=W(f,307),ksa=W(f,308),lsa=W(f,309),msa=W(f,310),nsa=W(f,311),osa=W(f,312),psa=W(f,313),qsa=W(f,314),rsa=W(f,315),ssa=W(f,316),tsa=W(f,317),
usa=W(f,318),vsa=W(f,319),wsa=W(f,320),xsa=W(f,321),ysa=W(f,322),zsa=W(f,323),Asa=W(f,324),Bsa=W(f,325),Csa=W(f,326),Dsa=W(f,327),Esa=W(f,328),Fsa=W(f,329),Gsa=W(f,330),Hsa=W(f,331),Isa=W(f,332),Jsa=W(f,333),Ksa=W(f,334),Lsa=W(f,335),Msa=W(f,336),tM=W(f,337);e={el:k,ps:l,autonav:m,autoplay:n,eventid:t,fexp:u,fflags:y,isHtml5MobileDevice:D,legacyBehavior:A,playerErrorLogFraction:Q,canWatchLater:I,mute:P,partnerid:ab,showinfo:ib,ss:kb,watchXlb:wb,dclk:hg,ivModule:Or,iv3Module:Pr,iv3EditModule:Mn,ivInvideoUrl:Gk,
ivLoadPolicy:Hk,atc:ux,loudness:Ye,infringe:rc,subtitlesXlb:rF,ccFont:kg,ccModule:rca,ccFontsUrl:sca,cc3Module:bna,ttsurl:cna,ccAsr:dna,ccContribute:ena,ccAutoCaps:fna,ccLoadPolicy:gna,captionTracks:hna,captionAudioTracks:ina,captionTranslationLanguages:jna,defaultAudioTrackIndex:kna,cr:lna,hostLanguage:mna,hl:nna,enablecsi:ona,csiPageType:pna,c:qna,cbr:rna,cbrver:sna,cos:tna,cosver:una,cplatform:vna,cbrand:wna,cmodel:xna,cnetwork:yna,isRtl:zna,enhanceModule:Ana,enhanceXlb:Bna,regionModule:Cna,previewSplitMode:Dna,
status:Ena,reason:Fna,errorcode:Gna,errordetail:Hna,apiaryHost:Ina,apiaryHostFirstparty:Jna,gapiHintOverride:Kna,gapiHintParams:Lna,innertubeApiKey:Mna,innertubeApiVersion:Nna,innertubeContextClientVersion:Ona,loaderurl:Pna,multicameraModule:Qna,multicameraPreroll:Rna,multifeedMetadataList:Sna,allowEmbed:Tna,allowedDomains:Una,ypcItemTitle:Vna,ypcItemUrl:Wna,ypcItemThumbnail:Xna,ypcOfferHeadline:Yna,ypcOfferDescription:Zna,ypcOfferId:$na,ypcOfferButtonText:aoa,ypcFullVideoMessage:boa,ypcModule:coa,
ypcVid:doa,ypcLicenseCheckerModule:eoa,heartbeatServerUrl:foa,ypcLicenseSessionToken:goa,purchaseId:hoa,heartbeatToken:ioa,heartbeatInterval:joa,heartbeatRetries:koa,ypcClickwrapModule:loa,ypcClickwrapMessage:moa,livestream:noa,livePlayback:ooa,authTimeout:poa,hlsdvr:qoa,streaminglibModule:roa,frescaModule:soa,frescaPreroll:toa,frescaXlb:uoa,enableCardio:voa,enableCardioBeforePlayback:woa,liveChunkReadahead:xoa,innertubeClientVersion:yoa,adHost:zoa,adHostTierId:Aoa,coreDbp:Boa,googleCustAge:Coa,googleCustGender:Doa,
pyvAdChannel:Eoa,showPyvInRelated:Foa,tagForChildDirected:Goa,playerWide:Hoa,enablesizebutton:Ioa,bannerUrl:Joa,profilePicture:Koa,channelTitle:Loa,spacecastAddress:Moa,timestamp:Noa,fmtList:Ooa,urlEncodedFmtStreamMap:Poa,adaptiveFmts:Qoa,licenseInfo:Roa,idup:Soa,dashmpd:Toa,hlsvp:Uoa,hlsFormats:Voa,probeUrl:Woa,storyboardSpec:Xoa,liveStoryboardSpec:Yoa,ismb:Zoa,surveySmartpixelUrl:$oa,surveycreativedata:apa,threedXlb:bpa,threedModule:cpa,threedConverted:dpa,approxThreedLayout:epa,threedLayout:fpa,
t:gpa,token:hpa,noGetVideoLog:ipa,tmi:jpa,plid:kpa,pltype:lpa,ptchn:mpa,ptk:npa,oid:opa,idpj:ppa,ldpj:qpa,userAge:rpa,userGender:spa,sw:tpa,remarketingUrl:upa,ppvRemarketingUrl:vpa,rmktenabled:wpa,baseurl:xpa,videostatsPlaybackBaseUrl:ypa,subscribed:zpa,engaged:Apa,vid:Bpa,uid:Cpa,aid:Dpa,focenabled:Epa,socialenabled:Fpa,ytfocenabled:Gpa,ytfochistoryenabled:Hpa,ssrt:Ipa,delay:Jpa,cl:Kpa,osid:Lpa,vm:Mpa,videoId:Npa,title:Opa,lengthSeconds:Ppa,keywords:Qpa,ucid:Rpa,allowRatings:Spa,avgRating:Tpa,viewCount:Upa,
author:Vpa,thumbnailUrl:Wpa,isListed:Xpa,liveDefaultBroadcast:Ypa,vq:Zpa,watermark:$pa,accountPlaybackToken:aqa,watchAjaxToken:bqa,yvaXlb:cqa,yvaModule:dqa,yvaPreroll:eqa,ypcXlb:fqa,authuser:gqa,pageid:hqa,userDisplayName:iqa,userDisplayImage:jqa,playlistTitle:kqa,playlistLength:lqa,index:mqa,iurl:nqa,iurlmq:oqa,iurlhq:pqa,iurlsd:qqa,iurlmaxres:rqa,iurlWebp:sqa,iurlmqWebp:tqa,iurlhqWebp:uqa,iurlsdWebp:vqa,iurlmaxresWebp:wqa,start:xqa,end:yqa,resume:zqa,of:Aqa,list:Bqa,q:Cqa,referrer:Dqa,sdetail:Eqa,
sourceid:Fqa,externalList:Gqa,forcedExperiments:Hqa,cctp:Iqa,adformat:Jqa,listtype:Kqa,privembed:Lqa,afvInstreamMax:Mqa,adLanguageIso6392:Nqa,adTag:Oqa,afvAdTagRestrictedToInstream:Pqa,maxDynamicAllocationAdTagLength:Qqa,asLaunchedInCountry:Rqa,adFlags:Sqa,adPreroll:Tqa,aftv:Uqa,invideo:Vqa,dynamicAllocationAdTag:Wqa,gutTag:Xqa,pyvInRelatedCafeExperimentId:Yqa,afvAdTag:Zqa,GP:$qa,loeid:ara,adDevice:bra,cafeExperimentId:cra,adsenseVideoDocId:dra,fw:era,adSlots:fra,shortform:gra,tpasPartnerId:hra,instream:ira,
trueview:jra,midrollFreqcap:kra,mpvid:lra,mpu:mra,afv:nra,tpasAdTypeId:ora,tpasVideoId:pra,sffb:qra,contentOwnerName:rra,afvMergeEnabled:sra,excludedAds:tra,noAfvInstream:ura,adAge:vra,adGender:wra,adLoggingFlag:xra,showContentThumbnail:yra,cid:zra,afvInvideoAdTag:Ara,allowHtml5Ads:Bra,supportedWithoutAds:Cra,instreamLong:Dra,adBreaks:Era,afcRmFallback:Fra,allowAdInAutoplay:Gra,c4:Hra,dbp:Ira,fqsf:Jra,gptMigration:Kra,xfp:Lra,midrollPrefetchSize:Mra,trueviewLactt:Nra,xfpTag:Ora,advideo:Pra,ad3Module:Qra,
vmap:Rra,serverPrefetchedVast:Sra,amsBaseTag:Tra,fadeOutStartMilliseconds:Ura,fadeOutDurationMilliseconds:Vra,fadeInStartMilliseconds:Wra,fadeInDurationMilliseconds:Xra,applyFadeOnMidrolls:Yra,adModule:Zra,pla:$ra,plaAdTag:asa,vastAdsModule:bsa,forcedSkipOffset:csa,enabledEngageTypes:dsa,freewheelAdTag:esa,postAdRequests:fsa,enablejsapi:gsa,ssl:hsa,baseYtUrl:isa,controls:jsa,disablekb:ksa,jsapicallback:lsa,svt:msa,canplaylive:nsa,storeUserVolume:osa,useMediaVolume:psa,sslStream:qsa,dash:rsa,liveStartWalltime:ssa,
oauthToken:tsa,visitorData:usa,vvt:vsa,osig:wsa,paygated:xsa,videoMastheadAdQuartileUrls:ysa,tvList:zsa,pyvViewBeaconUrl:Asa,pyvQuartile25BeaconUrl:Bsa,pyvQuartile50BeaconUrl:Csa,pyvQuartile75BeaconUrl:Dsa,pyvQuartile100BeaconUrl:Esa,pyvBillableUrl:Fsa,rco:Gsa,cco:Hsa,feature:Isa,isFling:Jsa,ctrl:Ksa,ytr:Lsa,ytrcc:Msa,startseconds:null==tM?tM:+tM,sentiment:W(f,338),spacecastFormatMap:W(f,339),spacecastAdaptiveFormats:W(f,340),suggestedquality:W(f,341),rvs:W(f,342),urlEncodedThirdPartyMedia:W(f,343),
vssCredentialsToken:W(f,344),vssCredentialsType:W(f,345),ypcGid:W(f,346),ypcPreview:W(f,347),ypcOrigin:W(f,348),requiresPurchase:W(f,349),mdx:W(f,350),retryneterr:W(f,351),itct:W(f,352),ypcOverlayTimeout:W(f,353),app:W(f,354),JP:W(f,355),pyvConvUrl:W(f,356),cver:W(f,357),on3g:W(f,358),autohide:W(f,359),useNativeControls:W(f,360),useTabletControls:W(f,361),codeDbp:W(f,362),rel:W(f,363),attrib:W(f,364),showwatchlater:W(f,365),spacecastModule:W(f,367),fairPlayCert:W(f,368),showEndToEndLatency:W(f,369),
heartbeatSoftFail:W(f,370),drmSessionId:W(f,371),ivEndscreenUrl:W(f,372),allowAdsPayCreator:W(f,373),externalPlayVideo:W(f,374),disablecast:W(f,375),pyvAdTag:W(f,376),channelUrl:W(f,378),channelThumbnail:W(f,379)};var m6={},Gu;for(Gu in e){var Nsa=X8[Gu]?X8[Gu]:Gu.replace(/([a-z\d])([A-Z])/g,"$1_$2").toLowerCase();m6[Nsa]=e[Gu]}b=m6;break a}}b=null}var uM;if(b){var $h=a.args,Sl=b,wB=[],Kc;for(Kc in $h)Osa[Kc]||(Sl.hasOwnProperty(Kc)?typeof $h[Kc]!=typeof Sl[Kc]?wB.push("wrong type. key ["+Kc+"]: ("+
typeof $h[Kc]+") "+$h[Kc]+"; ("+typeof Sl[Kc]+") "+Sl[Kc]):$h[Kc]!==Sl[Kc]&&wB.push("values differ. key ["+Kc+"]: ("+typeof $h[Kc]+") "+$h[Kc]+"; ("+typeof Sl[Kc]+") "+Sl[Kc]):wB.push("missing. key ["+Kc+" ]: ("+typeof $h[Kc]+") "+$h[Kc]));uM=wB}else uM=[];for(var Vp=uM,o6=Math.floor(Math.random()*Vp.length),Vp=Vp.slice(o6).concat(Vp.slice(0,o6)),vM=0;vM<Vp.length;vM++)Vi(Error("Discrepancy in legacy config: "+Vp[vM]))};
$8=function(a,b){G.call(this);this.ca=bi(b);Psa(this.ca);var c=this.ca.args||{};this.W=new qA(c);H(this,this.W);this.W.experiments.aa("legacy_autoplay_flag")||"detailpage"!=this.W.b||(c.autoplay="1");this.nc=Ry("detailpage"==this.W.b&&"blazer"!=this.W.g||"books"==this.W.g,c.enablesizebutton);this.ka=Ry(!1,c.player_wide);this.S=this.W.Ra&&Ry(!1,c.external_list);this.va=this.W.Ra&&Ry(!1,c.external_play_video);this.Da=new Dw(this);H(this,this.Da);this.Sa=null;this.Bc=new ana;this.O=new qg;this.$=new qg;
this.b=new VI(this);H(this,this.b);this.Ya=new VI(this,1);H(this,this.Ya);this.D=new S4(this);H(this,this.D);this.D.subscribe("resize",this.cG,this);this.L=1;this.Xa={};this.ba=this.W.storeUserVolume?$t():{volume:100,muted:this.W.mute};this.Z=this.W.Ra?new UI(this,1):new TI(this,1);H(this,this.Z);this.Ia=this.o=null;this.Ta={};this.ia=new Aea(Cea(this.W));this.kb={internalAbandon:this.SA,internalvideodatachange:this.RA,playbackready:this.TA,playbackstarted:this.UA,statechange:this.VA,signatureexpired:this.HD};
this.G=Qsa(this);H(this,this.G);this.H=new U0(this.W,"",this.G);this.g=Rsa(this);this.g.ga=this.ia;this.kc={airplayactivechange:this.JA,airplayavailabilitychange:this.KA,beginseeking:this.cB,endseeking:this.RB,internalaudioformatchange:this.XA,internalvideodatachange:this.Tm,internalvideoformatchange:this.jE,liveviewshift:this.$F,playbackstalledatstart:this.ND,progresssync:this.bG,seekto:this.dG,onLoadProgress:this.nC,onVideoProgress:this.lE,playbackready:this.$C,statechange:this.aG,connectionissue:this.AB,
heartbeatparams:this.ZF,videoelementevent:this.eG};this.K=this.B=null;this.rb=this.yb=-1;this.ra=this.C=this.F=null;this.ga={};this.Ba=null;this.Mb=new fe(this.D.bf,16,this.D);H(this,this.Mb);this.bb=!1;this.da=!0;this.Na=this.A=null;this.Ha=!1;this.M=this.W.D?1:Y8(this,Hj("yt-player-playback-rate")||1);this.oa=null;this.zb=!1;this.Db=this.gc=null;this.ab=this.fa=0;this.Ja=!1;this.ea=null;this.Tb=new fe(function(){Z8(this,qp(),tp())},2E3,this);
H(this,this.Tb);this.b.addEventListener("crn_"+$8.o,this.PA,this);this.b.addEventListener("crx_"+$8.o,this.QA,this);this.b.addEventListener("crn_"+$8.g,this.Hq,this);this.b.addEventListener("crx_"+$8.g,this.Hq,this);this.D.initialize(a);vh=this.W.O;Ssa(this);this.H.g("fs");Tsa(this);this.na=new t8(this.b);H(this,this.na);gJ(this.Ya,"init")};
Rsa=function(a){var b=new aI(a.W,1,a.H,a.D,x(a.O.ac,a.O),!a.va);a9(a,b,a.kb);return b};
c9=function(a,b){var c=a.g,d=a.kb,e;for(e in d)c.Ga(e,d[e],a);a.g.dispose();a.g=b;a9(a,b,a.kb);b9(a)};
Qsa=function(a){var b="",c=a.ca.assets.js||"";"/base.js"==c.substr(-8)&&(b=c.substr(0,c.length-8)+"/");0==b.indexOf("//")&&(b=a.W.$+":"+b);b=new pL(a.b,b);c={};c.loaded=x(a.ar,a);c.unloaded=x(a.dr,a);c.destroyed=x(a.Vl,a);c.command_redirect_controls=x(a.xt,a);c.command_stop_redirect_controls=x(a.kj,a);b.D=c;a.W.ba.subscribe("vast_info_card_add",pa(b.JE,"vast_info_card_add"),b);return b};
d9=function(a,b){a.Sa||(a.Sa=new o5(a),H(a,a.Sa),Qv(a.b,a.Sa.element,4));a.Sa.gb(b)};
e9=function(a){var b=q4.getTag(!0,!a.W.C);a.o=new Oy(b);a.Ia=a.o;a.B&&yI(a.B,a.o);a.o.b.loop=a.Ha;a.o.b.playbackRate=a.M;a.W.useMediaVolume?(a.oa&&a.Da.ua(a.oa),a.oa=a.Da.U(a.o,"volumechange",a.wC)):(a.o.setVolume(a.ba.volume/100),a.o.b.muted=a.ba.muted);oma(a.D,b);a.W.H=a.o;try{Dy(a.o)}catch(c){b="activate.1;emsg."+c.message.replace(/[;:,]/g,"_"),jI(a.g,"html5.missingapi","YTP_ERROR_UNSUPPORTED_DEVICE",b)}};
f9=function(a){if(a.o){a.oa&&(a.Da.ua(a.oa),a.oa=null);a.B&&xI(a.B);var b=a.D;b.b&&(Hf(b.b),b.b=null);a.W.H=null;q4.releaseTag(a.o.ma());a.o=null}};
L1=function(a,b){a.W.S?(a.ra&&(os(a.o.b,new ef(a.ra.left,a.ra.top)),a.o.setSize(og(a.ra)),a.ra=null),Ky(a.o),xI(a.B),yI(a.B,a.o),a.o.b.loop=a.Ha,a.o.b.playbackRate=a.M):q4.releaseTag(b.ma())};
t4=function(a,b){a.B!=b&&(a.B&&(rL(a.G),nJ(a,"cuerangesremoved",a.B.C.b.b||[]),s4(a)),b!=a.g&&(a.Ta[b.K]=b),a.B=b,b.ga=a.ia,a.o&&yI(b,a.o),a9(a,b,a.kc),a.Tm("newdata",b,b.getVideoData()),b.da.b&&a.Tm("dataloaded",b,b.getVideoData()),b.getVideoData().g&&a.b.Aa("onPlaybackQualityChange",b.getVideoData().g.video.quality),nJ(a,"cuerangesadded",a.B.C.b.b||[]),tq(b.getPlayerState())&&DI(b))};
a9=function(a,b,c){for(var d in c)b.subscribe(d,c[d],a)};
s4=function(a){xI(a.B);var b=a.B,c=a.kc,d;for(d in c)b.Ga(d,c[d],a);b=a.B;b!=a.g&&(c=b.K,a.Ta[c]==b&&delete a.Ta[c]);a.B=null};
WI=function(a,b){return b?1==b?a.g:a.Ta[b]||null:a.B};
g9=function(a){var b=a.G,c=[Px.o,dea,Yr,iea,yea,Sba,zea,mda];b.Oo();b.Qo();F(c,b.Dx,b);a.b.Wa("videoready",a.getVideoData())};
i9=function(a){if(a.W.B){a.C||(a.C=new Q4(a),h9(a,a.C));var b=tp();R4(a.C,qp(),b);var c=a.C;c&&!c.D&&c.xb(a.Ya)&&c.create();a.W.experiments.aa("legacy_cast2")&&b&&a.C.load()}};
h9=function(a,b){H(a,b);b.subscribe("loaded",a.ar,a);b.subscribe("unloaded",a.dr,a);b.subscribe("command_redirect_controls",a.xt,a);b.subscribe("command_stop_redirect_controls",a.kj,a)};
j9=function(a,b){b&&b.D&&("ad"==b.Ma&&me(a.D.element,["ytp-ad-overlay-open","ytp-ad-overlay-closed"]),b.destroy())};
k4=function(a){return a.g.getVideoData()};
k9=function(a,b){return(a.B&&2==a.B.K)==(2==b)?My(a.Ia):0};
l9=function(a,b,c){(a=WI(a,c||1))&&bI(a,b)};
Ssa=function(a){var b=new dF(a.ca.args);xF(b)&&(iI(a.g,b,x(a.Aj,a)),(a.W.experiments.aa("legacy_autoplay_flag")?a.W.Db:b.K)&&(a.W.kb||a.W.experiments.C)&&lI(a.g))};
Tsa=function(a){var b=a.D;b.isDisposed();var c=b.app.W;c.S||b.nn("tag-pool-enabled");c.Ub&&b.nn("house-brand");"gvn"==c.g&&b.nn("ytp-gvn");c.fa&&(b.F=cj("yt-dom-content-change",b.bf,b));b.U(window,"resize",b.bf,b);b=a.Z;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=Th(a.D.element))&&a.Da.U(a.D,d,a.ZB);a.Da.U(window,"resize",a.uD);b=a.ca.args;e9(a);if(!R(a.g.getPlayerState(),128)){d=k4(a);a.b.Aa("onVolumeChange",a.ba);b&&qK(b)&&((c=ar(a.W))&&!a.S&&(b.fetch=0),m9(a,b),
c&&!a.S?n9(a):xF(d)||(b=a.A,c=x(a.ir,a),b.C=c,b.B&&Ri(b.C,0)));if(b=a.ca.args.jsapicallback)ha(b)||(b=r(b)),b&&x(b,q,a.W.Ce);a.W.B&&(b="embedded"==a.W.b,c=void 0,!a.W.experiments.aa("legacy_cast2")&&b&&(c={device:"Desktop",app:"youtube-desktop"}),kp(b,c),a.Tb.pe());t4(a,a.g);R(a.g.getPlayerState(),128)||(b=qy(a.W.C),"fmt.noneavailable"==b?jI(a.g,b,"YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK","nocanplaymedia.1"):"html5.missingapi"==b?jI(a.g,b,"YTP_ERROR_UNSUPPORTED_DEVICE","nocanplaymedia.1"):(a.W.experiments.aa("legacy_autoplay_flag")?
a.W.Db:d.K)&&a.W.kb&&xF(d)?o9(a):"leanback"!=a.W.b&&p9(a))}};
p9=function(a){a.b.Wa("initializingmode");q9(a,2)};
o9=function(a){if(R(a.g.getPlayerState(),128))return!1;if(a.K&&a.K.getVideoData().videoId==a.g.getVideoData().videoId){var b=a.K;a.K=null;c9(a,b)}a.b.Wa("initializingmode");t4(a,a.g);q9(a,3);if(!(b=!a.W.S||mA()&&!a.zb)){if(b=a.ea)b=a.ea,b=!!b.b&&a.o==b.b;b=b&&a.zb}b&&(f9(a),e9(a),yI(a.g,a.o));nI(a.g);if(R(a.g.getPlayerState(),128))return!1;r9(a,3);return a.zb=!0};
s9=function(a,b){a.Ha!=b&&(a.Ha=b,a.B==a.g&&(a.o.b.loop=b),a.b.Wa("loopchange",b))};
t9=function(a,b,c){!(0,window.isNaN)(b)&&a.o&&(b=Y8(a,b),a.M!=b&&(a.M=b,a.g==a.B&&(a.o.b.playbackRate=b),c&&!a.W.D&&Gj("yt-player-playback-rate",b),a.b.Aa("onPlaybackRateChange",b)))};
Y8=function(a,b){var c=1,c=a.b.Bh();return c=1>b?bb(c,function(a){return a>=b}):db(c,function(a){return a<=b})};
u9=function(a,b){var c=WI(a,b);return c?c.Um():a.getVideoData().Ia};
v9=function(a,b){var c=WI(a,b);return c?c.zh():0};
w9=function(a,b){var c=LI(a.g,b);if(a.B&&a.B!=a.g){var d=LI(a.B,b),e;for(e in d)c["ad_"+e]=d[e]}b&&a.o&&(d=Cs(a.o.b),c["0sz"]=0==d.width*d.height,c.op=a.o.getStyle("opacity"),d=ps(a.o.b).y+Cs(a.o.b).height,c.yof=0>=d,c.dis=a.o.getStyle("display"));(d=qq())&&(c.gpu=d);c.cgr=!0;c.debug_playbackQuality=a.Ya.Cj();c.debug_date=(new Date).toString();delete c.uga;delete c.q;return dg(c)};
x9=function(a,b){return 3==a.getPresentingPlayerType()?Eq(a.C.L):2==b?a.rb:a.yb};
b9=function(a){j9(a,a.F);a.W.B&&j9(a,a.C);a.kj();s9(a,!1);a.Xa={};a=a.H;var b=a.o;b.B={};b.A={};a.A=!1};
n9=function(a){var b=y9();if(b)if(!b.list)a.Ak();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));uK(a.A,b);a.Na&&z9(a,a.Na)}else a.Na=null};
m9=function(a,b){if(a.A){a.A.Ga("error",a.Ak,a);Mb(a.A);a.A=null;var c=$I(a.G,"playlist");c&&(ob(a.G.b,c),c.destroy())}b&&(a.S&&(b.fetch=0),a.A=new pK(b),a.A.subscribe("error",a.Ak,a))};
A9=function(a,b,c,d){b in a.Xa||(c=new aq(c,d,{id:b,priority:1}),c.namespace=$8.g,a.g.C.tb([c]),a.Xa[b]=c)};
B9=function(a,b,c){c={label:c};a.W.experiments.aa("send_pyv_ad_mt_and_abandon_pings")&&(a=1E3*a.getCurrentTime(),c.ad_mt=Math.round(Math.max(0,a)).toString());return Qj(b,c)};
q9=function(a,b){b!=a.L&&(2==b&&(r9(a,-1),r9(a,5)),a.L=b,a.b.Wa("appstatechange",b))};
r9=function(a,b){a.B&&2==a.B.K?a.rb!=b&&(a.rb=b,a.b.Aa("onAdStateChange",b)):a.yb!=b&&(a.yb=b,a.b.Aa("onStateChange",b))};
D9=function(a,b,c,d){a.W.experiments.aa("legacy_autoplay_flag")||"detailpage"!=a.W.b||(b.autoplay="1");var e=new dF(b);d||(b&&qK(b)?(ar(a.W)&&!a.S&&(b.fetch=0),m9(a,b)):a.A&&m9(a,null),a.S=Ry(!1,b.external_list),ar(a.W)&&!a.S&&n9(a));return C9(a,e,c)};
E9=function(a,b){a.K&&a.K.getVideoData().videoId==b.videoId||(b.cf=!0,a.K||(a.K=new aI(a.W,1,a.H,a.D,x(a.O.ac,a.O)),a.K.ga=a.ia),iI(a.K,b,x(a.Aj,a)),lI(a.K,!0))};
C9=function(a,b,c){ME("_start",a.H.b)||(LE("p",a.H.b),a.H.info("srt",0));var d;if(a.K&&a.K.getVideoData().videoId==b.videoId)d=a.K,a.K=null,c9(a,d);else{d=WI(a,c);if(!d)return!1;a.Mb.stop();F9(a,c);iI(d,b,x(a.Aj,a))}if(!kI(d))return!1;a.bb&&(d.ra=!1,a.bb=!1);if(d==a.g)return q9(a,1),o9(a);nI(d);return!0};
G9=function(a,b,c){c=WI(a,c);b&&c==a.g&&(c.getVideoData().oa=!0)};
H9=function(a,b,c){var d=WI(a,c);d&&(F9(a,c),iI(d,b,x(a.Aj,a)),oA(d.W,b.A),d==a.g&&(q9(a,1),p9(a)))};
J9=function(a,b,c,d,e){if(!b&&!d)throw Error("Playback source is invalid");if(a.b.Qa()&&!a.va||"detailpage"!=a.W.b){c=a.H;var f=c.o;f.B={};f.A={};c.A=!1;a.H.reset();b={video_id:b};e&&(b.autoplay="1");d?(b.list=d,a.da=!1,I9(a,b,void 0,void 0,void 0)):D9(a,b,1)}else e=c||{},e.lact=pu(),e.vis=WH(a.W),a.va||"gaming"==a.W.g?a.b.Aa("onPlayVideo",{videoId:b,sessionData:e,listId:d}):(a=a.W.getVideoUrl(b,d),r("yt.player.exports.navigate")(a,e,!0),(window.ytspf||{}).enabled?window.spf.navigate(a):Tq(a))};
I9=function(a,b,c,d,e){if(ia(b)&&!da(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.ir,a);b.C=a;b.B&&Ri(b.C,0)};
QK=function(a){ar(a.W)&&!a.S&&n9(a);return!(!a.A||!a.A.hasNext())};
K9=function(a,b){k4(a).autonavState=b;a.b.Wa("autonavchange",b)};
L9=function(a,b,c){!a.S||a.b.Qa()&&!a.va?a.A?ar(a.W)&&!a.b.Qa()?z9(a,"yt.www.watch.lists.next"):(a.A.hasNext(b)&&tK(a.A,rK(a.A)),a.A.B?C9(a,a.A.Gb(void 0,c),1):a.da=!1):pJ(a.b)&&WI(a,1).getVideoData().O&&(b=N(WI(a,1).getVideoData().O,BK)[0],J9(a,b.Gb().videoId,b.Ba,b.Dg(),c)):a.b.Aa("onPlaylistNext")};
M9=function(a,b){if(a.S&&(!a.b.Qa()||a.va))a.b.Aa("onPlaylistPrevious");else if(a.A)if(ar(a.W)&&!a.b.Qa())z9(a,"yt.www.watch.lists.prev");else{var c=a.A;(c.G||b||0<=c.b-1)&&tK(a.A,sK(a.A));a.A.B?C9(a,a.A.Gb(),1):a.da=!1}};
z9=function(a,b){var c=r(b);if(c){var d=y9();d&&d.list&&c();a.Na=null}else a.Na=b};
N9=function(a,b){!a.S||a.b.Qa()&&!a.va?a.A&&(a.A.B?C9(a,a.A.Gb(b),1):a.da=!1,tK(a.A,b)):a.b.Aa("onPlaylistIndex",b)};
y9=function(){var a=r("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 aq(1E3*c,1E3*d,b);c.namespace=$8.o;O9(a,[c],1);return!0};
O9=function(a,b,c){var d=WI(a,c);d&&(d.C.tb(b),c&&a.getPresentingPlayerType()!=c||nJ(a,"cuerangesadded",b))};
eq=function(a,b,c){var d=WI(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=zb(m,l,n.g);0<=n&&nb(m,n);e.push(l)}}d.qe();c&&a.getPresentingPlayerType()!=c||nJ(a,"cuerangesremoved",e)}};
z4=function(a){var b=yq(),c=a.getCurrentTime();a=a.getVideoData();return b-Math.max(1E3*(c-a.startSeconds),0)};
R9=function(a,b,c){a.ba=b;c&&a.W.storeUserVolume&&!a.W.useMediaVolume&&(c={volume:Math.floor(b.volume),muted:b.muted},c.unstorable||(Gj("yt-player-volume",c),Gj("yt-player-volume",c,2592E3)));Q9(a);a.W.useMediaVolume||(b=gc(b),a.W.storeUserVolume||(b.unstorable=!0),a.b.Aa("onVolumeChange",b))};
Q9=function(a){var b=a.getVideoData();b.Mb||(a.o.setVolume(a.ba.volume*(a.W.useMediaVolume?dF.g:b.Db)/100),a.o.b.muted=a.ba.muted)};
S9=function(a,b){var c=window.screen&&window.screen.orientation;if(a.W.experiments.aa("lock_fullscreen")&&c&&c.sA)if(b){var d=0==c.type.indexOf("portrait"),e=d;if(a.W.experiments.aa("lock_fullscreen_auto")){var f=SK(a.D);1>f?e=!0:1<f&&(e=!1)}if(!a.Ja||e!=d){if(c=c.sA(e?"portrait":"landscape"))c["catch"](v);a.Ja=!0}}else a.Ja&&(a.Ja=!1,c.SP())};
T9=function(a,b){var c=!!b,d=!!a.ab!=c;a.ab=b;a.W.experiments.aa("legacy_player_fullscreen_order")?d&&(a.H.g("fsc"),a.W.L=c,a.D.bf()):(a.W.L=c,a.D.bf(),d&&a.H.g("fsc"));d&&(a.b.Wa("fullscreentoggled",c),d=k4(a),c={fullscreen:c,videoId:d.ypcOrigin||d.videoId,time:a.getCurrentTime()},a.Ya.se()&&(c.listId=a.Ya.se()),a.b.Aa("onFullscreenChange",c))};
nJ=function(a,b,c){a.b.Wa(b,c);if(c&&BA(a.W)){var d;switch(b){case "cuerangemarkersupdated":d="onCueRangeMarkersUpdated";break;case "cuerangesadded":d="onCueRangesAdded";break;case "cuerangesremoved":d="onCueRangesRemoved"}d&&a.b.Aa(d,c)}};
x4=function(a,b){var c=WI(a,b);c&&(2==a.L?o9(a):!a.W.experiments.aa("new_ended_replay")&&R(c.getPlayerState(),2)?a.seekTo(0):DI(c))};
U9=function(a){var b=a.g.getVideoData(),b=new dF({video_id:b.videoId,oauth_token:b.oauthToken});H9(a,b,1)};
F9=function(a,b){AE(a.fa);a.fa=0;var c=WI(a,b);c&&1!=a.L&&2!=a.L&&(rL(a.G),1==b&&j9(a,a.F),uI(c),nJ(a,"cuerangesremoved",a.B.C.b.b||[]),c.C.reset())};
Z8=function(a,b,c){a.W.B&&(a.C||(a.C=new Q4(a),h9(a,a.C)),R4(a.C,b,c),6!=a.L&&(a.C.xb(a.Ya)?(1!=a.L&&3!=a.L||!c||j9(a,a.F),b.length&&1!=a.L&&i9(a)):j9(a,a.C)))};
V9=function(a,b){if(a.W.experiments.aa("legacy_control_redirecting")){if(!mJ(a.Ya))return;var c=a.ga.play_pause?a.Ba:null;if(c){c.yc("control_play");return}}else{c=a.getPresentingPlayerType();if(2==c){a.F&&a.F.yc("control_play");return}if(3==c){a.C&&a.C.yc("control_play");return}}x4(a,b)};
Usa=function(a,b){if(a.W.experiments.aa("legacy_control_redirecting")){if(!mJ(a.Ya))return;var c=a.ga.play_pause?a.Ba:null;if(c){c.yc("control_pause");return}}else{c=a.getPresentingPlayerType();if(2==c){a.F&&a.F.yc("control_pause");return}if(3==c){a.C&&a.C.yc("control_pause");return}}a.pauseVideo(b)};
W9=function(a,b,c,d,e){var f=WI(a,e);if(!f||2!=f.K&&!Tr(f.getVideoData())){if(a.W.experiments.aa("legacy_control_redirecting")){if(f=a.ga.seek?a.Ba:null){f.yc("control_seek",b);return}}else if(3==a.getPresentingPlayerType()&&a.C){a.C.yc("control_seek",b);return}a.seekTo(b,c,d,e)}};
X9=function(a,b,c){a.nc=b;a.ka=c;a.b.Wa("sizestylechange",b,c);a.D.bf()};
Y9=function(a,b,c,d,e){c=a.W.Ra&&a.F&&b==a.F.Ma?a.F.te(c,d):(a.W.Ra||e)&&a.C&&a.C.D&&b==a.C.Ma?a.C.te(c,d):b&&c?(a=$I(a.G,b))?a.te(c,d):null:null;return c};
Z9=function(a,b,c){if(b){if(a.W.Ra&&a.F&&b==a.F.Ma)return a.F.Df();if((a.W.Ra||c)&&a.C&&a.C.D&&b==a.C.Ma)return a.C.Df()}else return b=uL(a.G),a.W.Ra&&a.F&&b.push(a.F.Ma),(a.W.Ra||c)&&a.C&&a.C.D&&b.push(a.C.Ma),b;return uL(a.G,b)};
$9=function(a,b){if(!a.bb){a.bb=!0;var c=WI(a);c.ra=!0;c.o&&mu(c.o.g,"reloading",b,void 0);var c=a.getVideoData(),d={};d.video_id=c.videoId;c.za||(d.start=WI(a).getCurrentTime());d.autoplay=1;d.reload=1;d.reload_reason=b;D9(a,d)}};
xn=xn||{};q=this;ka="closure_uid_"+(1E9*Math.random()>>>0);la=0;E=Date.now||function(){return+new Date};z(ra,Error);ra.prototype.name="CustomError";var mf;var Oa=String.prototype.trim?function(a){return a.trim()}:function(a){return a.replace(/^[\s\xa0]+|[\s\xa0]+$/g,"")},xa=/&/g,ya=/</g,za=/>/g,Aa=/"/g,Ba=/'/g,Ca=/\x00/g,wa=/[\x00&<>"']/,Ha=/&([^;\s<&]+);?/g,bn={"\x00":"\\0",
"\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\x0B":"\\x0B",'"':'\\"',"\\":"\\\\","<":"<"},an={"'":"\\'"},Ka=String.prototype.repeat?function(a,b){return a.repeat(b)}:function(a,b){return Array(b+1).join(a)},Sa=2147483648*Math.random()|0;var eb=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},Vsa=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)},ke=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},N=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},bf=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},Rh=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},Qk=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.jb=!1;G.prototype.isDisposed=function(){return this.jb};
G.prototype.dispose=function(){this.jb||(this.jb=!0,this.T())};
G.prototype.T=function(){if(this.Oa)for(;this.Oa.length;)this.Oa.shift()()};var ic="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");lc.prototype.stopPropagation=function(){this.g=!0};
lc.prototype.preventDefault=function(){this.Zr=!1};nc[" "]=v;var sc;a:{var a$=q.navigator;if(a$){var b$=a$.userAgent;if(b$){sc=b$;break a}}sc=""};var Cc=tc("Opera"),vf=tc("Trident")||tc("MSIE"),HD=tc("Edge"),EA=HD||vf,fs=tc("Gecko")&&!(Ja(sc,"WebKit")&&!tc("Edge"))&&!(tc("Trident")||tc("MSIE"))&&!tc("Edge"),Bc=Ja(sc,"WebKit")&&!tc("Edge"),U4=Bc&&tc("Mobile"),UH=tc("Macintosh"),CA=tc("Android"),cfa=vc(),eM=tc("iPad"),c$;a:{var d$="",e$=function(){var a=sc;if(fs)return/rv\:([^\);]+)(\)|;)/.exec(a);if(HD)return/Edge\/([\d\.]+)/.exec(a);if(vf)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(a);if(Bc)return/WebKit\/(\S+)/.exec(a);if(Cc)return/(?:Version)[ \/]?(\S+)/.exec(a)}();
e$&&(d$=e$?e$[1]:"");if(vf){var f$=wc();if(null!=f$&&f$>(0,window.parseFloat)(d$)){c$=String(f$);break a}}c$=d$}var xc=c$,pc={},g$=q.document,zc=g$&&vf?wc()||("CSS1Compat"==g$.compatMode?(0,window.parseInt)(xc,10):5):void 0;var $c=!vf||Ac(9),Wsa=vf&&!yc("9");!Bc||yc("528");fs&&yc("1.9b")||vf&&yc("8")||Cc&&yc("9.5")||Bc&&yc("528");fs&&!yc("8")||vf&&yc("9");var Xsa={Sj:"click",QN:"rightclick",xK:"dblclick",pM:"mousedown",vM:"mouseup",uM:"mouseover",tM:"mouseout",sM:"mousemove",qM:"mouseenter",rM:"mouseleave",WN:"selectstart",uP:"wheel",QL:"keypress",PL:"keydown",RL:"keyup",MJ:"blur",fL:"focus",yK:"deactivate",gL:vf?"focusin":"DOMFocusIn",hL:vf?"focusout":"DOMFocusOut",cK:"change",KN:"reset",VN:"select",wO:"submit",CL:"input",AN:"propertychange",QK:"dragstart",LK:"drag",NK:"dragenter",PK:"dragover",OK:"dragleave",SK:"drop",MK:"dragend",MO:"touchstart",
LO:"touchmove",KO:"touchend",JO:"touchcancel",JJ:"beforeunload",lK:"consolemessage",pK:"contextmenu",FK:"DOMContentLoaded",ERROR:"error",rL:"help",LOAD:"load",iM:"losecapture",bN:"orientationchange",FN:"readystatechange",LN:"resize",SN:"scroll",VO:"unload",SJ:"canplay",TJ:"canplaythrough",TK:"durationchange",XK:"emptied",ENDED:"ended",$L:"loadeddata",aM:"loadedmetadata",PAUSE:"pause",PLAY:"play",PLAYING:"playing",EN:"ratechange",TN:"seeked",UN:"seeking",lO:"stalled",xO:"suspend",BO:"timeupdate",nP:"volumechange",
rP:"waiting",lL:"hashchange",eN:"pagehide",fN:"pageshow",tN:"popstate",qK:"copy",hN:"paste",vK:"cut",FJ:"beforecopy",GJ:"beforecut",HJ:"beforepaste",ZM:"online",WM:"offline",MESSAGE:"message",kK:"connect",sJ:Dc("AnimationStart"),qJ:Dc("AnimationEnd"),rJ:Dc("AnimationIteration"),PO:Dc("TransitionEnd"),mN:"pointerdown",sN:"pointerup",lN:"pointercancel",pN:"pointermove",rN:"pointerover",qN:"pointerout",nN:"pointerenter",oN:"pointerleave",kL:"gotpointercapture",jM:"lostpointercapture",AM:"MSGestureChange",
BM:"MSGestureEnd",CM:"MSGestureHold",DM:"MSGestureStart",EM:"MSGestureTap",FM:"MSGotPointerCapture",GM:"MSInertiaStart",HM:"MSLostPointerCapture",IM:"MSPointerCancel",JM:"MSPointerDown",KM:"MSPointerEnter",LM:"MSPointerHover",MM:"MSPointerLeave",NM:"MSPointerMove",OM:"MSPointerOut",PM:"MSPointerOver",QM:"MSPointerUp",TEXT:"text",yO:"textInput",iK:"compositionstart",jK:"compositionupdate",hK:"compositionend",bL:"exit",YL:"loadabort",ZL:"loadcommit",bM:"loadredirect",cM:"loadstart",dM:"loadstop",NN:"responsive",
eO:"sizechanged",XO:"unresponsive",mP:"visibilitychange",sO:"storage",KK:"DOMSubtreeModified",GK:"DOMNodeInserted",IK:"DOMNodeRemoved",JK:"DOMNodeRemovedFromDocument",HK:"DOMNodeInsertedIntoDocument",DK:"DOMAttrModified",EK:"DOMCharacterDataModified",IJ:"beforeprint",gJ:"afterprint"};z(Ec,lc);
Ec.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?fs&&(oc(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()};
Ec.prototype.stopPropagation=function(){Ec.N.stopPropagation.call(this);this.b.stopPropagation?this.b.stopPropagation():this.b.cancelBubble=!0};
Ec.prototype.preventDefault=function(){Ec.N.preventDefault.call(this);var a=this.b;if(a.preventDefault)a.preventDefault();else if(a.returnValue=!1,Wsa)try{if(a.ctrlKey||112<=a.keyCode&&123>=a.keyCode)a.keyCode=-1}catch(b){}};var Fc="closure_listenable_"+(1E6*Math.random()|0),Hc=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=Mc(e,b,c,d);return-1<b?(Jc(e[b]),nb(e,b),0==e.length&&(delete this.b[a],this.g--),!0):!1};var Vc="closure_lm_"+(1E6*Math.random()|0),dd={},Yc=0,gd="__closure_events_fn_"+(1E9*Math.random()>>>0);z(hd,G);hd.prototype[Fc]=!0;h=hd.prototype;h.ug=function(a){this.va=a};
h.addEventListener=function(a,b,c,d){Rc(this,a,b,c,d)};
h.removeEventListener=function(a,b,c,d){bd(this,a,b,c,d)};
h.dispatchEvent=function(a){var b,c=this.va;if(c){b=[];for(var d=1;c;c=c.va)b.push(c),++d}c=this.Na;d=a.type||a;if(w(a))a=new lc(a,c);else if(a instanceof lc)a.target=a.target||c;else{var e=a;a=new lc(d,c);jc(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=id(f,d,!0,a)&&e;a.g||(f=a.currentTarget=c,e=id(f,d,!0,a)&&e,a.g||(e=id(f,d,!1,a)&&e));if(b)for(k=0;!a.g&&k<b.length;k++)f=a.currentTarget=b[k],e=id(f,d,!1,a)&&e;return e};
h.T=function(){hd.N.T.call(this);this.hd&&Pc(this.hd);this.va=null};
h.P=function(a,b,c,d){return Nc(this.hd,String(a),b,!1,c,d)};
h.ua=function(a,b,c,d){return this.hd.remove(String(a),b,c,d)};jd.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 od;var xd=new jd(function(){return new sd},function(a){a.reset()},100);
rd.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};
sd.prototype.set=function(a,b){this.b=a;this.scope=b;this.next=null};
sd.prototype.reset=function(){this.next=this.scope=this.b=null};var td,vd=!1,wd=new rd;Ed.prototype.reset=function(){this.context=this.g=this.A=this.b=null;this.o=!1};
var Fd=new jd(function(){return new Ed},function(a){a.reset()},100);
Dd.prototype.then=function(a,b,c){return Rd(this,ha(a)?a:null,ha(b)?b:null,c)};
Ad(Dd);Dd.prototype.cancel=function(a){0==this.b&&yd(function(){var b=new Xd(a);Td(this,b)},this)};
Dd.prototype.G=function(a){this.b=0;Cd(this,2,a)};
Dd.prototype.H=function(a){this.b=0;Cd(this,3,a)};
Dd.prototype.F=function(){for(var a;a=Ud(this);)Vd(this,a,this.b,this.D);this.C=!1};
var ae=nd;z(Xd,ra);Xd.prototype.name="cancel";z(be,hd);h=be.prototype;h.enabled=!1;h.Sc=null;h.$x=function(){if(this.enabled){var a=E()-this.A;0<a&&a<.8*this.b?this.Sc=this.g.setTimeout(this.o,this.b-a):(this.Sc&&(this.g.clearTimeout(this.Sc),this.Sc=null),this.dispatchEvent("tick"),this.enabled&&(this.Sc=this.g.setTimeout(this.o,this.b),this.A=E()))}};
h.start=function(){this.enabled=!0;this.Sc||(this.Sc=this.g.setTimeout(this.o,this.b),this.A=E())};
h.stop=function(){this.enabled=!1;this.Sc&&(this.g.clearTimeout(this.Sc),this.Sc=null)};
h.T=function(){be.N.T.call(this);this.stop();delete this.g};z(fe,G);h=fe.prototype;h.xa=0;h.T=function(){fe.N.T.call(this);this.stop();delete this.b;delete this.g};
h.start=function(a){this.stop();this.xa=de(this.o,p(a)?a:this.A)};
h.pe=function(a){this.isActive()||this.start(a)};
h.stop=function(){this.isActive()&&ee(this.xa);this.xa=0};
h.isActive=function(){return 0!=this.xa};
h.pp=function(){this.xa=0;this.b&&this.b.call(this.g)};var Ve={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 ne=/<[^>]*>|&[^;]+;/g,b0=RegExp("[\u0591-\u06ef\u06fa-\u07ff\u200f\ufb1d-\ufdff\ufe70-\ufefc]"),se=RegExp("[A-Za-z\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02b8\u0300-\u0590\u0800-\u1fff\u200e\u2c00-\ufb1c\ufe00-\ufe6f\ufefd-\uffff]"),qe=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]"),re=/^http:\/\/.*/,Qba=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Arab|Hebr|Thaa|Nkoo|Tfng))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i,
pe=/\s+/,te=/[\d\u06f0-\u06f9]/;we.prototype.wf=!0;we.prototype.He=function(){return this.b};
we.prototype.toString=function(){return"Const{"+this.b+"}"};
var ve={};Ae.prototype.wf=!0;var ze={};Ae.prototype.He=function(){return this.b};
var Te=Be(""),Se=/^([-,."'%_!# a-zA-Z0-9]+|(?:rgb|hsl)a?\([0-9.%, ]+\))$/;De.prototype.wf=!0;De.prototype.He=function(){return this.b};
De.prototype.Fl=!0;De.prototype.Rf=function(){return 1};
var Fe=/^(?:(?:https?|mailto|ftp):|[^&:/?#]*(?:[/?#]|$))/i,Ce={};Ge("about:blank");Je.prototype.wf=!0;Je.prototype.He=function(){return this.b};
Je.prototype.Fl=!0;Je.prototype.Rf=function(){return 1};
var Ie={};Ne.prototype.Fl=!0;Ne.prototype.Rf=function(){return this.g};
Ne.prototype.wf=!0;Ne.prototype.He=function(){return this.b};
var Re=/^[a-zA-Z0-9-]+$/,Ue={action:!0,cite:!0,data:!0,formaction:!0,href:!0,manifest:!0,poster:!0,src:!0},Ysa={APPLET:!0,BASE:!0,EMBED:!0,IFRAME:!0,LINK:!0,MATH:!0,META:!0,OBJECT:!0,SCRIPT:!0,STYLE:!0,SVG:!0,TEMPLATE:!0},Me={};Pe("<!DOCTYPE html>",0);Pe("",0);Pe("<br>",0);h=ef.prototype;h.clone=function(){return new ef(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=ga(b)?b:a;this.x*=a;this.y*=c;return this};h=gf.prototype;h.clone=function(){return new gf(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=ga(b)?b:a;this.width*=a;this.height*=c;return this};var zf=!vf||Ac(9),Jf=!fs&&!vf||vf&&Ac(9)||fs&&yc("1.9.1");vf&&yc("9");var Nf=vf||Cc||Bc;var rf={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=kf.prototype;h.ma=function(a){return w(a)?this.b.getElementById(a):a};
h.getElementsByTagName=function(a,b){return(b||this.b).getElementsByTagName(a)};
h.by=function(a,b,c){return yf(this.b,arguments)};
h.createElement=function(a){return this.b.createElement(String(a))};
h.appendChild=Df;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=Hf;h.contains=Pf;var ig={'"':'\\"',"\\":"\\\\","/":"\\/","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\x0B":"\\u000b"},gg=/\uffff/.test("\uffff")?/[\\\"\x00-\x1f\x7f-\uffff]/g:/[\\\"\x00-\x1f\x7f-\xff]/g;h=jg.prototype;h.ib=function(){return this.right-this.left};
h.getHeight=function(){return this.bottom-this.top};
h.clone=function(){return new jg(this.top,this.right,this.bottom,this.left)};
h.contains=function(a){return this&&a?a instanceof jg?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=ga(b)?b:a;this.left*=a;this.right*=a;this.top*=c;this.bottom*=c;return this};h=lg.prototype;h.clone=function(){return new lg(this.left,this.top,this.width,this.height)};
h.contains=function(a){return a instanceof ef?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=ga(b)?b:a;this.left*=a;this.width*=a;this.top*=c;this.height*=c;return this};z(qg,G);h=qg.prototype;h.subscribe=function(a,b,c){var d=this.g[a];d||(d=this.g[a]=[]);var e=this.xc;this.b[e]=a;this.b[e+1]=b;this.b[e+2]=c;this.xc=e+3;d.push(e);return e};
h.Lc=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]=v):(c&&ob(c,a),delete this.b[a],delete this.b[a+1],delete this.b[a+2])}return!!b};
h.ac=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];sg(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.Lc(c)}}return 0!=e}return!1};
h.clear=function(a){if(a){var b=this.g[a];b&&(F(b,this.Lc,this),delete this.g[a])}else this.b.length=0,this.g={}};
h.Qb=function(a){if(a){var b=this.g[a];return b?b.length:0}a=0;for(b in this.g)a+=this.Qb(b);return a};
h.T=function(){qg.N.T.call(this);this.clear();this.o.length=0};var ug="StopIteration"in q?q.StopIteration:{message:"StopIteration",stack:""};tg.prototype.next=function(){throw ug;};
tg.prototype.Cc=function(){return this};h=yg.prototype;h.Qb=function(){return this.ya};
h.Pa=function(){Bg(this);for(var a=[],b=0;b<this.b.length;b++)a.push(this.g[this.b[b]]);return a};
h.Va=function(){Bg(this);return this.b.concat()};
h.isEmpty=function(){return 0==this.ya};
h.clear=function(){this.g={};this.Te=this.ya=this.b.length=0};
h.remove=function(a){return zg(this.g,a)?(delete this.g[a],this.ya--,this.Te++,this.b.length>2*this.ya&&Bg(this),!0):!1};
h.get=function(a,b){return zg(this.g,a)?this.g[a]:b};
h.set=function(a,b){zg(this.g,a)||(this.ya++,this.b.push(a),this.Te++);this.g[a]=b};
h.forEach=function(a,b){for(var c=this.Va(),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 yg(this)};
h.Cc=function(a){Bg(this);var b=0,c=this.Te,d=this,e=new tg;e.next=function(){if(c!=d.Te)throw Error("The map has changed since the iterator was created");if(b>=d.b.length)throw ug;var e=d.b[b++];return a?e:d.g[e]};
return e};var Gg=/^(?:([^:/?#.]+):)?(?:\/\/(?:([^/?#]*)@)?([^/#?]*?)(?::([0-9]+))?(?=[/#?]|$))?([^?#]+)?(?:\?([^#]*))?(?:#([\s\S]*))?$/,Ug=/#|$/,Xg=/[?&]($|#)/;M.prototype.toString=function(){var a=[],b=this.A;b&&a.push(hh(b,h$,!0),":");var c=this.g;if(c||"file"==b)a.push("//"),(b=this.H)&&a.push(hh(b,h$,!0),"@"),a.push(ua(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(hh(c,"/"==c.charAt(0)?Zsa:$sa,!0));(c=this.b.toString())&&a.push("?",c);(c=this.F())&&a.push("#",hh(c,ata));return a.join("")};
M.prototype.clone=function(){return new M(this)};
M.prototype.K=function(){return this.b.toString()};
M.prototype.F=function(){return this.G};
var h$=/[#\/\?@]/g,$sa=/[\#\?:]/g,Zsa=/[\#\?]/g,ih=/[\#\?@]/g,ata=/#/g;h=fh.prototype;h.Qb=function(){rh(this);return this.ya};
h.remove=function(a){rh(this);a=sh(this,a);return Ag(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(){rh(this);return 0==this.ya};
h.Va=function(){rh(this);for(var a=this.b.Pa(),b=this.b.Va(),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){rh(this);var b=[];if(w(a))th(this,a)&&(b=qb(b,this.b.get(sh(this,a))));else{a=this.b.Pa();for(var c=0;c<a.length;c++)b=qb(b,a[c])}return b};
h.set=function(a,b){rh(this);this.g=null;a=sh(this,a);th(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.Va(),c=0;c<b.length;c++)for(var d=b[c],e=ua(d),d=this.Pa(d),f=0;f<d.length;f++){var k=e;""!==d[f]&&(k+="="+ua(d[f]));a.push(k)}return this.g=a.join("&")};
h.clone=function(){var a=new fh;a.g=this.g;this.b&&(a.b=this.b.clone(),a.ya=this.ya);return a};var vh=void 0;var Ph=Bc?"webkit":fs?"moz":vf?"ms":Cc?"o":"",i$=r("yt.dom.getNextId_");if(!i$){i$=function(){return++bta};
g.aa("yt.dom.getNextId_",i$,void 0);var bta=0};var Xh={enablejsapi:1},Yh={},Zh={allowscriptaccess:"always",allowfullscreen:"true",bgcolor:"#000000"};ai.prototype.clone=function(){var a=new ai,b;for(b in this)if(this.hasOwnProperty(b)){var c=this[b];"object"==ca(c)?a[b]=gc(c):a[b]=c}return a};var ii=di("loadGamesSDK")?"/cast_game_sender.js":"/cast_sender.js",mi=di("loadCastFramework"),ji=["boadgeojelhgndaghljhdicfkmllpafd","dliochdbjfkdbacpmhlcpmleaejidimm","enhhojjnijigcajfphajepfemndkmdlo","fmfcbgogabcbclcofgocippekhfcmgfj"],j$=["pkedcjkdefgpdelpbcmbmeomcjbeemfm","fjhoaacokmgbjemoflkofnenfaiekifl"],gi=ci()?j$.concat(ji):ji.concat(j$);var Zz=tc("Firefox"),iA=vc()||tc("iPod"),hA=tc("iPad"),jA=tc("Android")&&!(uc()||tc("Firefox")||tc("Opera")||tc("Silk")),$l=uc(),lz=tc("Safari")&&!(uc()||tc("Coast")||tc("Opera")||tc("Edge")||tc("Silk")||tc("Android"))&&!(vc()||tc("iPad")||tc("iPod"));var Ai=E(),ri=null,yi=Array(50),xi=-1,zi=!1;var Li={};var Ni=window.yt&&window.yt.config_||window.ytcfg&&window.ytcfg.data_||{};g.aa("yt.config_",Ni,void 0);g.aa("yt.tokens_",window.yt&&window.yt.tokens_||{},void 0);var Wi=window.yt&&window.yt.msgs_||r("window.ytcfg.msgs")||{};g.aa("yt.msgs_",Wi,void 0);var yq=window.performance&&window.performance.timing&&window.performance.now?function(){return window.performance.timing.navigationStart+window.performance.now()}:function(){return(new Date).getTime()};var cta=r("yt.pubsub.instance_")||new qg;qg.prototype.subscribe=qg.prototype.subscribe;qg.prototype.unsubscribeByKey=qg.prototype.Lc;qg.prototype.publish=qg.prototype.ac;qg.prototype.clear=qg.prototype.clear;g.aa("yt.pubsub.instance_",cta,void 0);var $i=r("yt.pubsub.subscribedKeys_")||{};g.aa("yt.pubsub.subscribedKeys_",$i,void 0);var bj=r("yt.pubsub.topicToKeys_")||{};g.aa("yt.pubsub.topicToKeys_",bj,void 0);var aj=r("yt.pubsub.isSynchronous_")||{};g.aa("yt.pubsub.isSynchronous_",aj,void 0);
var Zi=r("yt.pubsub.skipSubId_")||null;g.aa("yt.pubsub.skipSubId_",Zi,void 0);var jj=/\.vflset|-vfl[a-zA-Z0-9_+=-]+/,kj=/-[a-zA-Z]{2,3}_[a-zA-Z]{2,3}(?=(\/|$))/;z(qj,pj);qj.prototype.Qb=function(){var a=0;wg(this.Cc(!0),function(){a++});
return a};
qj.prototype.clear=function(){var a=xg(this.Cc(!0)),b=this;F(a,function(a){b.remove(a)})};z(rj,qj);h=rj.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.Qb=function(){return this.b.length};
h.Cc=function(a){var b=0,c=this.b,d=new tg;d.next=function(){if(b>=c.length)throw ug;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(sj,rj);z(tj,rj);uj.prototype.set=function(a,b){p(b)?this.b.set(a,dg(b)):this.b.remove(a)};
uj.prototype.get=function(a){var b;try{b=this.b.get(a)}catch(c){return}if(null!==b)try{return $f(b)}catch(c){throw"Storage: Invalid value was encountered";}};
uj.prototype.remove=function(a){this.b.remove(a)};z(vj,uj);vj.prototype.set=function(a,b){vj.N.set.call(this,a,xj(b))};
vj.prototype.g=function(a){a=vj.N.get.call(this,a);if(!p(a)||a instanceof Object)return a;throw"Storage: Invalid value was encountered";};
vj.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(yj,vj);yj.prototype.set=function(a,b,c){if(b=xj(b)){if(c){if(c<E()){yj.prototype.remove.call(this,a);return}b.expiration=c}b.creation=E()}yj.N.set.call(this,a,b)};
yj.prototype.g=function(a,b){var c=yj.N.g.call(this,a);if(c)if(!b&&zj(c))yj.prototype.remove.call(this,a);else return c};z(Aj,yj);var Dj,k$=new sj;Dj=k$.isAvailable()?new Aj(k$):null;var Fj,l$=new tj;Fj=l$.isAvailable()?new Aj(l$):null;var zk={zJ:"atp",fO:"ska",DN:"que",RM:"mus",bO:"sus"};var Vj=null;"undefined"!=typeof window.XMLHttpRequest?Vj=function(){return new window.XMLHttpRequest}:"undefined"!=typeof window.ActiveXObject&&(Vj=function(){return new window.ActiveXObject("Microsoft.XMLHTTP")});var Yj={"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"};gk.prototype.C=function(a,b,c,d){b?a(d):a({text:c.responseText})};
gk.prototype.B=function(a,b){a(Error("Request error: "+b.status))};
gk.prototype.D=function(a){a(Error("request timed out"))};z(nk,G);nk.prototype.subscribe=function(a,b,c){return this.isDisposed()?0:this.ca.subscribe(a,b,c)};
nk.prototype.Ga=function(a,b,c){return this.isDisposed()?!1:rg(this.ca,a,b,c)};
nk.prototype.Lc=function(a){return this.isDisposed()?!1:this.ca.Lc(a)};
nk.prototype.Y=function(a,b){return this.isDisposed()?!1:this.ca.ac.apply(this.ca,arguments)};z(ok,nk);ok.prototype.Ec=function(){return this.screens};
ok.prototype.contains=function(a){return!!lk(this.screens,a)};
ok.prototype.get=function(a){return a?mk(this.screens,a):null};
ok.prototype.info=function(a){wi(this.C,a)};z(sk,nk);var m$=[2E3,2E3,1E3,1E3,1E3,2E3,2E3,5E3,5E3,1E4];h=sk.prototype;h.start=function(){!this.b&&(0,window.isNaN)(this.g)&&this.qt()};
h.stop=function(){this.b&&(this.b.abort(),this.b=null);(0,window.isNaN)(this.g)||(Ti(this.g),this.g=window.NaN)};
h.T=function(){this.stop();sk.N.T.call(this)};
h.qt=function(){this.g=window.NaN;this.b=Zj(hk(this.D,"/pairing/get_screen"),{method:"POST",Lb:{pairing_code:this.C},timeout:5E3,fb:x(this.RF,this),onError:x(this.QF,this),Wb:x(this.SF,this)})};
h.RF=function(a,b){this.b=null;var c=b.screen||{};c.dialId=this.A;c.name=this.B;this.Y("pairingComplete",new Bi(c))};
h.QF=function(a){this.b=null;a.status&&404==a.status?this.o>=m$.length?this.Y("pairingFailed",Error("DIAL polling timed out")):(a=m$[this.o],this.g=Ri(x(this.qt,this),a),this.o++):this.Y("pairingFailed",Error("Server error "+a.status))};
h.SF=function(){this.b=null;this.Y("pairingFailed",Error("Server not responding"))};z(tk,qj);tk.prototype.set=function(a,b){this.g.set(this.b+a,b)};
tk.prototype.get=function(a){return this.g.get(this.b+a)};
tk.prototype.remove=function(a){this.g.remove(this.b+a)};
tk.prototype.Cc=function(a){var b=this.g.Cc(!0),c=this,d=new tg;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=wk.prototype;h.Qb=function(){return this.b.Qb()};
h.remove=function(a){return this.b.remove(xk(a))};
h.clear=function(){this.b.clear()};
h.isEmpty=function(){return this.b.isEmpty()};
h.contains=function(a){return Ag(this.b,xk(a))};
h.Pa=function(){return this.b.Pa()};
h.clone=function(){return new wk(this)};
h.Cc=function(){return this.b.Cc(!1)};var dta={},Ck=/\s*;\s*/;h=Bk.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(E()+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(Ck),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.Va=function(){return Dk(this).keys};
h.Pa=function(){return Dk(this).values};
h.isEmpty=function(){return!this.b.cookie};
h.Qb=function(){return this.b.cookie?(this.b.cookie||"").split(Ck).length:0};
h.clear=function(){for(var a=Dk(this).keys,b=a.length-1;0<=b;b--)this.remove(a[b])};
var Kk=new Bk("undefined"==typeof window.document?null:window.document);Kk.g=3950;var Vk,Nk="";z(Yk,ok);h=Yk.prototype;h.start=function(){Xk(this)&&this.Y("screenChange");!Hj("yt-remote-lounge-token-expiration")&&Zk(this);Ti(this.b);this.b=Ri(x(this.start,this),1E4)};
h.zj=function(a,b){Xk(this);pk(this,a);$k(this,!1);this.Y("screenChange");b(a);a.token||Zk(this)};
h.remove=function(a,b){var c=Xk(this);rk(this,a)&&($k(this,!1),c=!0);b(a);c&&this.Y("screenChange")};
h.rj=function(a,b,c,d){var e=Xk(this),f=this.get(a.id);f?(f.name!=b&&(f.name=b,$k(this,!1),e=!0),c(a)):d(Error("no such local screen."));e&&this.Y("screenChange")};
h.T=function(){Ti(this.b);Yk.N.T.call(this)};
h.oy=function(a){Xk(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)}$k(this,!b);b&&wi(this.C,"Missed "+b+" lounge tokens.")};
h.my=function(a){wi(this.C,"Requesting lounge tokens failed: "+a)};z(bl,nk);h=bl.prototype;h.start=function(){var a=(0,window.parseInt)(Hj("yt-remote-fast-check-period")||"0",10);(this.A=E()-144E5<a?0:a)?fl(this):(this.A=E()+3E5,Gj("yt-remote-fast-check-period",this.A),this.hm())};
h.isEmpty=function(){return bc(this.b)};
h.update=function(){al("Updating availability on schedule.");var a=this.C(),b=Pb(this.b,function(b,d){return b&&!!mk(a,d)},this);
el(this,b)};
h.T=function(){Ti(this.o);this.o=window.NaN;this.g&&(this.g.abort(),this.g=null);bl.N.T.call(this)};
h.hm=function(){Ti(this.o);this.o=window.NaN;this.g&&this.g.abort();var a=gl(this);if(Tb(a)){var b=hk(this.B,"/pairing/get_screen_availability");this.g=ik(this.B,b,{lounge_token:Xb(a).join(",")},x(this.zD,this,a),x(this.yD,this))}else el(this,{}),fl(this)};
h.zD=function(a,b){this.g=null;var c=Xb(gl(this));if(Fb(c,Xb(a))){for(var c=b.screens||[],d={},e=0,f=c.length;e<f;++e)d[a[c[e].loungeToken]]="online"==c[e].status;el(this,d);fl(this)}else this.ob("Changing Screen set during request."),this.hm()};
h.yD=function(a){this.ob("Screen availability failed: "+a);this.g=null;fl(this)};
h.ob=function(a){wi("OnlineScreenService",a)};z(il,ok);h=il.prototype;h.start=function(){this.g.start();this.b.start();this.screens.length&&(this.Y("screenChange"),this.b.isEmpty()||this.Y("onlineScreenChange"))};
h.zj=function(a,b,c){this.g.zj(a,b,c)};
h.remove=function(a,b,c){this.g.remove(a,b,c);this.b.update()};
h.rj=function(a,b,c,d){this.g.contains(a)?this.g.rj(a,b,c,d):(a="Updating name of unknown screen: "+a.name,wi(this.C,a),d(Error(a)))};
h.Ec=function(a){return a?this.screens:qb(this.screens,ke(this.o,function(a){return!this.contains(a)},this))};
h.tt=function(){return ke(this.Ec(!0),function(a){return!!this.b.b[a.id]},this)};
h.ut=function(a,b,c,d,e){this.info("getDialScreenByPairingCode "+a+" / "+b);var f=new sk(this.B,a,b,c);f.subscribe("pairingComplete",x(function(a){Mb(f);d(jl(this,a))},this));
f.subscribe("pairingFailed",function(a){Mb(f);e(a)});
f.start();return x(f.stop,f)};
h.UF=function(a,b,c,d){Zj(hk(this.B,"/pairing/get_screen"),{method:"POST",Lb:{pairing_code:a},timeout:5E3,fb:x(function(a,d){var k=new Bi(d.screen||{});if(!k.name||ml(this,k.name)){var l;a:{l=k.name;for(var m=2,n=b(l,m);ml(this,n);){m++;if(20<m)break a;n=b(l,m)}l=n}k.name=l}c(jl(this,k))},this),
onError:x(function(a){d(Error("pairing request failed: "+a.status))},this),
Wb:x(function(){d(Error("pairing request timed out."))},this)})};
h.T=function(){Mb(this.g);Mb(this.b);il.N.T.call(this)};
h.Jy=function(){nl(this);this.Y("screenChange");this.b.update()};
il.prototype.dispose=il.prototype.dispose;z(pl,nk);h=pl.prototype;h.Yi=function(a){this.o=a;this.Y("sessionScreen",this.o)};
h.Jc=function(a){this.isDisposed()||(a&&ql(this,""+a),this.o=null,this.Y("sessionScreen",null))};
h.info=function(a){wi(this.L,a)};
h.wt=function(){return null};
h.rm=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(){ql(this,"Failed to update receiver status for: "+b.friendlyName)},this))};
h.T=function(){this.rm("");pl.N.T.call(this)};z(sl,pl);h=sl.prototype;h.qm=function(a){if(this.b){if(this.b==a)return;ql(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);tl(this)};
h.hg=function(a){this.info("launchWithParams no-op for Cast: "+dg(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.rm=v;h.T=function(){this.info("disposeInternal");Ti(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;sl.N.T.call(this)};
h.yE=function(a,b){if(!this.isDisposed())if(b){var c=ag(b);if(c){var d=""+c.type,c=c.data||{};this.info("onYoutubeMessage_: "+d+" "+dg(c));switch(d){case "mdxSessionStatus":rl(this,c.screenId);break;default:ql(this,"Unknown youtube message: "+d)}}else ql(this,"Unable to parse message.")}else ql(this,"No data in message.")};
h.kp=function(a,b,c,d){ll(this.G,this.g.label,a,this.g.friendlyName,x(function(e){e?b(e):0<=d?(ql(this,"Screen "+a+" appears to be offline. "+d+" retries left."),Ri(x(this.kp,this,a,b,c,d-1),300)):c(Error("Unable to fetch screen."))},this),c)};
h.wt=function(){return this.b};
h.VF=function(a){this.isDisposed()||a||(ql(this,"Cast session died."),this.Jc())};z(ul,pl);h=ul.prototype;h.qm=function(a){this.A=a;this.A.addUpdateListener(this.K)};
h.hg=function(a){this.B=a;this.D()};
h.stop=function(){this.b();this.b=v;Ti(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=v;Ti(this.C);this.A&&this.A.removeUpdateListener(this.K);this.A=null;ul.N.T.call(this)};
h.YF=function(a){this.isDisposed()||a||(ql(this,"DIAL session died."),this.b(),this.b=v,this.Jc())};
h.Gl=function(a){this.H=jk();if(this.B){var b=new window.chrome.cast.DialLaunchResponse(!0,wl(this));a(b);vl(this)}else this.D=x(function(){Ti(this.C);this.D=v;this.C=window.NaN;var b=new window.chrome.cast.DialLaunchResponse(!0,wl(this));a(b);vl(this)},this),this.C=Ri(x(function(){this.D()},this),100)};
h.hA=function(a,b){ll(this.G,this.F.receiver.label,a,this.g.friendlyName,x(function(a){a&&a.token?(this.Yi(a),b(new window.chrome.cast.DialLaunchResponse(!1))):this.Gl(b)},this),x(function(a){ql(this,"Failed to get DIAL screen: "+a);
this.Gl(b)},this))};z(xl,pl);xl.prototype.stop=function(){this.Jc()};
xl.prototype.qm=v;xl.prototype.hg=function(){Ti(this.b);this.b=window.NaN;var a=mk(this.G.Ec(),this.g.label);a?this.Yi(a):this.Jc(Error("No such screen"))};
xl.prototype.T=function(){Ti(this.b);this.b=window.NaN;xl.N.T.call(this)};z(yl,nk);h=yl.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.vr,this),x(this.qD,this),d,e);c.customDialLaunchCallback=x(this.LB,this);window.chrome.cast.initialize(c,x(function(){this.isDisposed()||
(window.chrome.cast.addReceiverActionListener(this.A),ti(),this.g.subscribe("onlineScreenChange",x(this.vt,this)),this.o=Dl(this),window.chrome.cast.setCustomReceivers(this.o,v,x(function(a){this.ob("Failed to set initial custom receivers: "+dg(a))},this)),this.Y("yt-remote-cast2-availability-change",Bl(this)),b(!0))},this),x(function(a){this.ob("Failed to initialize API: "+dg(a));
b(!1)},this))};
h.gF=function(a,b){Al("Setting connected screen ID: "+a+" -> "+b);if(this.b){var c=this.b.o;if(!a||c&&c.id!=a)Al("Unsetting old screen status: "+this.b.g.friendlyName),Mb(this.b),this.b=null}if(a&&b){if(!this.b){c=mk(this.g.Ec(),a);if(!c){Al("setConnectedScreenStatus: Unknown screen.");return}var d=zl(this,c);d||(Al("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,v,x(function(a){this.ob("Failed to set initial custom receivers: "+dg(a))},this)));
Al("setConnectedScreenStatus: new active receiver: "+d.friendlyName);Cl(this,new xl(this.g,d),!0)}this.b.rm(b)}else Al("setConnectedScreenStatus: no screen.")};
h.hF=function(a){this.isDisposed()?this.ob("Setting connection data on disposed cast v2"):this.b?this.b.hg(a):this.ob("Setting connection data without a session")};
h.XF=function(){this.isDisposed()?this.ob("Stopping session on disposed cast v2"):this.b?(this.b.stop(),Mb(this.b),this.b=null):Al("Stopping non-existing session")};
h.requestSession=function(){window.chrome.cast.requestSession(x(this.vr,this),x(this.DD,this))};
h.T=function(){this.g.Ga("onlineScreenChange",x(this.vt,this));window.chrome&&window.chrome.cast&&window.chrome.cast.removeReceiverActionListener(this.A);var a=pi,b=r("yt.mdx.remote.debug.handlers_");ob(b||[],a);Mb(this.b);yl.N.T.call(this)};
h.ob=function(a){wi("Controller",a)};
h.wr=function(a,b){this.b==a&&(b||Cl(this,null),this.Y("yt-remote-cast2-session-change",b))};
h.oD=function(a,b){if(!this.isDisposed())if(a)switch(Al("onReceiverAction_ "+a.label+" / "+a.friendlyName+"-- "+b),b){case window.chrome.cast.ReceiverAction.CAST:if(this.b)if(this.b.g.label!=a.label)Al("onReceiverAction_: Stopping active receiver: "+this.b.g.friendlyName),this.b.stop();else{Al("onReceiverAction_: Casting to active receiver.");this.b.o&&this.Y("yt-remote-cast2-session-change",this.b.o);break}switch(a.receiverType){case window.chrome.cast.ReceiverType.CUSTOM:Cl(this,new xl(this.g,a));
break;case window.chrome.cast.ReceiverType.DIAL:Cl(this,new ul(this.g,a));break;case window.chrome.cast.ReceiverType.CAST:Cl(this,new sl(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.LB=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 Al("Reselecting dial screen."),
this.Y("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);Cl(this,new ul(this.g,b))}b=this.b;b.F=a;return b.F.appState==window.chrome.cast.DialAppState.RUNNING?new window.Promise(x(b.hA,b,(b.F.extraData||{}).screenId||null)):new window.Promise(x(b.Gl,b))};
h.vr=function(a){if(!this.isDisposed()){Al("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)Al("Got resumed cast session before resumed mdx connection."),Cl(this,new sl(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=mk(this.g.Ec(),c.label);d&&Ci(d,b.label)&&c.receiverType!=window.chrome.cast.ReceiverType.CAST&&
b.receiverType==window.chrome.cast.ReceiverType.CAST&&(Al("onSessionEstablished_: manual to cast session change "+b.friendlyName),Mb(this.b),this.b=new sl(this.g,b),this.b.subscribe("sessionScreen",x(this.wr,this,this.b)),this.b.hg(null));this.b.qm(a)}}};
h.WF=function(){return this.b?this.b.wt():null};
h.DD=function(a){this.isDisposed()||(this.ob("Failed to estabilish a session: "+dg(a)),a.code!=window.chrome.cast.ErrorCode.CANCEL&&Cl(this,null))};
h.qD=function(a){Al("Receiver availability updated: "+a);if(!this.isDisposed()){var b=Bl(this);this.B=a==window.chrome.cast.ReceiverAvailability.AVAILABLE;Bl(this)!=b&&this.Y("yt-remote-cast2-availability-change",Bl(this))}};
h.vt=function(){if(!this.isDisposed()){var a=Bl(this);this.o=Dl(this);Al("Updating custom receivers: "+dg(this.o));window.chrome.cast.setCustomReceivers(this.o,v,x(function(){this.ob("Failed to set custom receivers.")},this));
var b=Bl(this);b!=a&&this.Y("yt-remote-cast2-availability-change",b)}};
yl.prototype.setLaunchParams=yl.prototype.hF;yl.prototype.setConnectedScreenStatus=yl.prototype.gF;yl.prototype.stopSession=yl.prototype.XF;yl.prototype.getCastSession=yl.prototype.WF;yl.prototype.requestSession=yl.prototype.requestSession;yl.prototype.init=yl.prototype.init;yl.prototype.dispose=yl.prototype.dispose;var Ol=null,Ql=[];cm.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())};
cm.prototype.cq=function(){return this.event?!1===this.event.returnValue:!1};
cm.prototype.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())};
cm.prototype.stopImmediatePropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopImmediatePropagation&&this.event.stopImmediatePropagation())};
var bm={stopImmediatePropagation:1,stopPropagation:1,preventMouseEvent:1,preventManipulation:1,preventDefault:1,layerX:1,layerY:1,scale:1,rotation:1,webkitMovementX:1,webkitMovementY:1};var em=r("yt.events.listeners_")||{};g.aa("yt.events.listeners_",em,void 0);var gm=r("yt.events.counter_")||{count:0};g.aa("yt.events.counter_",gm,void 0);new um;um.prototype.set=function(a){this.b=a};
um.prototype.reset=function(){this.set(E())};
um.prototype.get=function(){return this.b};vm.prototype.stringify=function(a){return bg(this.g,a)};
vm.prototype.parse=function(a){return this.b(a)};h=wm.prototype;h.get=function(a){a=xm(this,a);return this.b[a]};
h.set=function(a,b){a=xm(this,a);this.b[a]=b};
h.Qb=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.Qb(),b=this.Qb(),c=[],a=this.Qb()-a;a<b;a++)c.push(this.get(a));return c};
h.Va=function(){for(var a=[],b=this.Qb(),c=0;c<b;c++)a[c]=c;return a};z(ym,G);h=ym.prototype;h.wg=!1;h.kh=0;h.rf=null;h.Uf=function(a){this.b=arguments;this.rf||this.kh?this.wg=!0:zm(this)};
h.stop=function(){this.rf&&(ee(this.rf),this.rf=null,this.wg=!1,this.b=[])};
h.pause=function(){this.kh++};
h.resume=function(){this.kh--;this.kh||!this.wg||this.rf||(this.wg=!1,zm(this))};
h.T=function(){ym.N.T.call(this);this.stop()};
h.PD=function(){this.rf=null;this.wg&&!this.kh&&(this.wg=!1,zm(this))};z(Am,G);var Dm=[];Am.prototype.P=function(a,b,c,d){return Bm(this,a,b,c,d)};
Am.prototype.ua=function(a,b,c,d,e){if(da(b))for(var f=0;f<b.length;f++)this.ua(a,b[f],c,d,e);else c=c||this.handleEvent,e=e||this.A||this,c=Sc(c),d=!!d,b=Gc(a)?Qc(a.hd,String(b),c,d,e):a?(a=Uc(a))?Qc(a,b,c,d,e):null:null,b&&(cd(b),delete this.g[b.key]);return this};
Am.prototype.T=function(){Am.N.T.call(this);Hm(this)};
Am.prototype.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented");};Jm.prototype.b=null;var n$;z(Mm,Jm);n$=new Mm;h=Om.prototype;h.sf=null;h.td=!1;h.Ag=null;h.Km=null;h.mh=null;h.Vf=null;h.Ie=null;h.Oe=null;h.xf=null;h.Xb=null;h.wh=0;h.ud=null;h.uj=null;h.tf=null;h.ah=-1;h.hs=!0;h.gf=!1;h.jl=0;h.bj=null;var Wm={},Um={};h=Om.prototype;h.setTimeout=function(a){this.B=a};
h.NE=function(a){a=a.target;var b=this.bj;b&&3==yn(a)?b.Uf():this.Zs(a)};
h.Zs=function(a){try{if(a==this.Xb)a:{var b=yn(this.Xb),c=this.Xb.g,d=this.Xb.getStatus();if(vf&&!Ac(10)||Bc&&!yc("420+")){if(4>b)break a}else if(3>b||3==b&&!Cc&&!Cn(this.Xb))break a;this.gf||4!=b||7==c||(8==c||0>=d?this.b.qd(3):this.b.qd(2));fn(this);var e=this.Xb.getStatus();this.ah=e;var f=Cn(this.Xb);(this.td=200==e)?(4==b&&Ym(this),this.C?($m(this,b,f),Cc&&this.td&&3==b&&(this.A.P(this.g,"tick",this.GE),this.g.start())):Xm(this,f),this.td&&!this.gf&&(4==b?this.b.Xi(this):(this.td=!1,Sm(this)))):
(this.tf=400==e&&0<f.indexOf("Unknown SID")?3:0,Vm(),Ym(this),Zm(this))}}catch(k){}finally{}};
h.GE=function(){var a=yn(this.Xb),b=Cn(this.Xb);this.wh<b.length&&(fn(this),$m(this,a,b),this.td&&4!=a&&Sm(this))};
h.$D=function(a){en(x(this.ZD,this,a),0)};
h.ZD=function(a){this.gf||(fn(this),Xm(this,a),Sm(this))};
h.Cr=function(a){en(x(this.YD,this,a),0)};
h.YD=function(a){this.gf||(Ym(this),this.td=a,this.b.Xi(this),this.b.qd(4))};
h.cancel=function(){this.gf=!0;Ym(this)};
h.qE=function(){this.Ag=null;var a=E();0<=a-this.Km?(2!=this.Vf&&this.b.qd(3),Ym(this),this.tf=2,Vm(),Zm(this)):dn(this,this.Km-a)};h=ln.prototype;h.dl=null;h.Kc=null;h.cj=!1;h.rp=null;h.ri=null;h.fl=null;h.il=null;h.Tc=null;h.fe=-1;h.$g=null;h.Pg=null;h.connect=function(a){this.il=a;a=mn(this.b,null,this.il);Vm();this.rp=E();var b=this.b.F;null!=b?(this.$g=b[0],(this.Pg=b[1])?(this.Tc=1,nn(this)):(this.Tc=2,pn(this))):(lh(a,"MODE","init"),this.Kc=new Om(this,0,void 0,void 0,void 0),this.Kc.sf=this.dl,Rm(this.Kc,a,!1,null,!0),this.Tc=0)};
h.rx=function(a){if(a)this.Tc=2,pn(this);else{Vm();var b=this.b;b.kd=b.De.fe;Xn(b,9)}a&&this.qd(2)};
h.Gk=function(a){return this.b.Gk(a)};
h.qp=function(){return!1};
h.rr=function(a,b){this.fe=a.ah;if(0==this.Tc)if(b){try{var c=this.g.parse(b)}catch(d){c=this.b;c.kd=this.fe;Xn(c,2);return}this.$g=c[0];this.Pg=c[1]}else c=this.b,c.kd=this.fe,Xn(c,2);else if(2==this.Tc)if(this.cj)Vm(),this.fl=E();else if("11111"==b){if(Vm(),this.cj=!0,this.ri=E(),c=this.ri-this.rp,!vf||Ac(10)||500>c)this.fe=200,this.Kc.cancel(),Vm(),on(this.b,this,!0)}else Vm(),this.ri=this.fl=E(),this.cj=!1};
h.Xi=function(){this.fe=this.Kc.ah;if(this.Kc.td)0==this.Tc?this.Pg?(this.Tc=1,nn(this)):(this.Tc=2,pn(this)):2==this.Tc&&((!vf||Ac(10)?!this.cj:200>this.fl-this.ri)?(Vm(),on(this.b,this,!1)):(Vm(),on(this.b,this,!0)));else{0==this.Tc?Vm():2==this.Tc&&Vm();var a=this.b;a.kd=this.fe;Xn(a,2)}};
h.qh=function(){return this.b.qh()};
h.isActive=function(){return this.b.isActive()};
h.qd=function(a){this.b.qd(a)};z(qn,hd);var zn=/^https?$/i,eta=["POST","PUT"];h=qn.prototype;
h.send=function(a,b,c,d){if(this.b)throw Error("[goog.net.XhrIo] Object is active with another request="+this.O+"; newUri="+a);b=b?b.toUpperCase():"GET";this.O=a;this.C="";this.g=0;this.L=!1;this.o=!0;this.b=this.K?Nm(this.K):Nm(n$);this.H=this.K?Lm(this.K):Lm(n$);this.b.onreadystatechange=x(this.sp,this);try{this.getStatus(),this.M=!0,this.b.open(b,String(a),!0),this.M=!1}catch(f){this.getStatus();wn(this,f);return}a=c||"";var e=this.headers.clone();d&&Eg(d,function(a,b){e.set(b,a)});
d=bb(e.Va(),tn);c=q.FormData&&a instanceof q.FormData;!fb(eta,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.ba&&(this.b.responseType=this.ba);"withCredentials"in this.b&&this.b.withCredentials!==this.G&&(this.b.withCredentials=this.G);try{Bn(this),0<this.B&&(this.S=sn(this.b),this.getStatus(),this.S?(this.b.timeout=this.B,this.b.ontimeout=x(this.tp,this)):this.D=de(this.tp,this.B,this)),this.getStatus(),this.F=!0,this.b.send(a),this.F=!1}catch(f){this.getStatus(),wn(this,f)}};
h.tp=function(){"undefined"!=typeof xn&&this.b&&(this.C="Timed out after "+this.B+"ms, aborting",this.g=8,this.getStatus(),this.dispatchEvent("timeout"),gn(this,8))};
h.T=function(){this.b&&(this.o&&(this.o=!1,this.A=!0,this.b.abort(),this.A=!1),vn(this,!0));qn.N.T.call(this)};
h.sp=function(){this.isDisposed()||(this.M||this.F||this.A?An(this):this.nD())};
h.nD=function(){An(this)};
h.isActive=function(){return!!this.b};
h.getStatus=function(){try{return 2<yn(this)?this.b.status:-1}catch(a){return-1}};h=Dn.prototype;h.Vg=null;h.tc=null;h.Bb=null;h.bl=null;h.ti=null;h.wo=null;h.Ai=null;h.gh=0;h.CA=0;h.$b=null;h.Ee=null;h.ae=null;h.kf=null;h.De=null;h.tj=null;h.gg=-1;h.lq=-1;h.kd=-1;h.Wg=0;h.Hf=0;h.jf=8;var Yn=new hd;z(Fn,lc);z(Gn,lc);z(Hn,lc);h=Dn.prototype;h.connect=function(a,b,c,d,e){Vm();this.bl=b;this.Vg=c||{};d&&p(e)&&(this.Vg.OSID=d,this.Vg.OAID=e);this.De=new ln(this);this.De.dl=null;this.De.g=this.B;this.De.connect(a)};
h.qp=function(){return 0==this.b};
h.zr=function(a){this.Ee=null;Sn(this,a)};
h.yr=function(){this.ae=null;this.Bb=new Om(this,0,this.o,"rpc",this.C);this.Bb.sf=null;this.Bb.jl=0;var a=this.wo.clone();jh(a,"RID","rpc");jh(a,"SID",this.o);jh(a,"CI",this.tj?"0":"1");jh(a,"AID",this.gg);Jn(this,a);if(!vf||Ac(10))jh(a,"TYPE","xmlhttp"),Rm(this.Bb,a,!0,this.Ai,!1);else{jh(a,"TYPE","html");var b=this.Bb,c=!!this.Ai;b.Vf=3;b.Ie=mh(a.clone());cn(b,c)}};
h.rr=function(a,b){if(0!=this.b&&(this.Bb==a||this.tc==a))if(this.kd=a.ah,this.tc==a&&3==this.b)if(7<this.jf){var c;try{c=this.B.parse(b)}catch(f){c=null}if(da(c)&&3==c.length)if(0==c[0])a:{if(!this.ae){if(this.Bb)if(this.Bb.mh+3E3<this.tc.mh)Nn(this),this.Bb.cancel(),this.Bb=null;else break a;Vn(this);Vm()}}else this.lq=c[1],0<this.lq-this.gg&&37500>c[2]&&this.tj&&0==this.Hf&&!this.kf&&(this.kf=en(x(this.aB,this),6E3));else Xn(this,11)}else b!=dta.wK.b&&Xn(this,11);else if(this.Bb==a&&Nn(this),!B(b)){c=
this.B.parse(b);da(c);for(var d=0;d<c.length;d++){var e=c[d];this.gg=e[0];e=e[1];2==this.b?"c"==e[0]?(this.o=e[1],this.Ai=e[2],e=e[3],null!=e?this.jf=e:this.jf=6,this.b=3,this.$b&&this.$b.Fo(this),this.wo=mn(this,this.qh()?this.Ai:null,this.bl),Tn(this)):"stop"==e[0]&&Xn(this,7):3==this.b&&("stop"==e[0]?Xn(this,7):"noop"!=e[0]&&this.$b&&this.$b.Eo(this,e),this.Hf=0)}}};
h.aB=function(){null!=this.kf&&(this.kf=null,this.Bb.cancel(),this.Bb=null,Vn(this),Vm())};
h.Xi=function(a){var b;if(this.Bb==a)Nn(this),this.Bb=null,b=2;else if(this.tc==a)this.tc=null,b=1;else return;this.kd=a.ah;if(0!=this.b)if(a.td)1==b?(E(),Yn.dispatchEvent(new Gn(Yn,a.xf?a.xf.length:0)),On(this),this.A.length=0):Tn(this);else{var c=a.tf,d;if(!(d=3==c||7==c||0==c&&0<this.kd)){if(d=1==b)this.tc||this.Ee||1==this.b||2<=this.Wg?d=!1:(this.Ee=en(x(this.zr,this,a),Un(this,this.Wg)),this.Wg++,d=!0);d=!(d||2==b&&Vn(this))}if(d)switch(c){case 1:Xn(this,5);break;case 4:Xn(this,10);break;case 3:Xn(this,
6);break;case 7:Xn(this,12);break;default:Xn(this,2)}}};
h.Ox=function(a){if(!fb(arguments,this.b))throw Error("Unexpected channel state: "+this.b);};
h.sF=function(a){a?Vm():(Vm(),Wn(this,8))};
h.Gk=function(a){if(a)throw Error("Can't create secondary domain capable XhrIo object.");a=new qn;a.G=!1;return a};
h.isActive=function(){return!!this.$b&&this.$b.isActive(this)};
h.qd=function(){Yn.dispatchEvent(new Hn(Yn))};
h.qh=function(){return!(!vf||Ac(10))};
h=Zn.prototype;h.Fo=function(){};
h.Eo=function(){};
h.Do=function(){};
h.yk=function(){};
h.ep=function(){return{}};
h.isActive=function(){return!0};z(ao,be);ao.prototype.C=function(){if(500<this.b){var a=this.b;24E4>2*a&&(a*=2);ce(this,a)}this.D()};
ao.prototype.start=function(){ao.N.start.call(this);this.B=E()+this.b};
ao.prototype.stop=function(){this.B=0;ao.N.stop.call(this)};z(bo,Zn);h=bo.prototype;h.subscribe=function(a,b,c){return this.o.subscribe(a,b,c)};
h.Ga=function(a,b,c){return rg(this.o,a,b,c)};
h.Lc=function(a){return this.o.Lc(a)};
h.Y=function(a,b){return this.o.ac.apply(this.o,arguments)};
h.dispose=function(){this.H||(this.H=!0,this.o.clear(),eo(this),Mb(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.K+"/test";b=this.K+"/bind";var d=new Dn("1",c?c.firstTestResults:null,c?c.secondTestResults:null),e=this.b;e&&(e.$b=null);d.$b=this;this.b=d;e?this.b.connect(a,b,this.C,e.o,e.gg):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&&jc(c,b);this.g.enabled||2==(this.b?this.b.b:0)?this.D.push(c):fo(this)&&Pn(this.b,c)};
h.Fo=function(){$n(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)Pn(this.b,a[b])}this.Y("handlerOpened")};
h.Do=function(a,b){var c=2==b&&401==this.b.kd;if(4!=b&&!c){if(6==b||410==this.b.kd)c=this.g,c.stop(),ce(c,500);this.g.start()}this.Y("handlerError",b)};
h.yk=function(a,b,c){if(!this.g.enabled)this.Y("handlerClosed");else if(c)for(a=0,b=c.length;a<b;++a){var d=c[a].map;d&&this.D.push(d)}};
h.ep=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&&jc(a,this.B);return a};
h.Eo=function(a,b){"S"==b[0]?this.G=b[1]:"gracefulReconnect"==b[0]?($n(this.g),this.g.start(),Ln(this.b)):this.Y("handlerMessage",new tm(b[0],b[1]))};
h.PF=function(){this.g.stop();var a=this.b,b=0;a.Bb&&b++;a.tc&&b++;0!=b?this.g.start():this.connect(this.B,this.A)};h=ho.prototype;h.Qb=function(){return this.b.length+this.g.length};
h.isEmpty=function(){return gb(this.b)&&gb(this.g)};
h.clear=function(){this.b=[];this.g=[]};
h.contains=function(a){return fb(this.b,a)||fb(this.g,a)};
h.remove=function(a){var b;b=this.b;var c=Vsa(b,a);0<=c?(nb(b,c),b=!0):b=!1;return b||ob(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};mo.prototype.reset=function(a){this.listId="";oo(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)};
mo.prototype.Za=function(){return 1==this.b};
mo.prototype.clone=function(){return new mo(so(this))};z(vo,nk);h=vo.prototype;h.play=function(){1==this.g?(this.b?this.b.play(null,v,x(function(){this.ob("Failed to play video with cast v2 channel.");xo(this,"play")},this)):xo(this,"play"),Co(this,1,qo(wo(this))),Do(this)):Bo(this,this.play)};
h.pause=function(){1==this.g?(this.b?this.b.pause(null,v,x(function(){this.ob("Failed to pause video with cast v2 channel.");xo(this,"pause")},this)):xo(this,"pause"),Co(this,2,qo(wo(this))),Do(this)):Bo(this,this.pause)};
h.seekTo=function(a){if(1==this.g){if(this.b){var b=wo(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,v,x(function(){this.ob("Failed to seek in video with cast v2 channel.");xo(this,"seekTo",{newTime:a})},this))}else xo(this,"seekTo",{newTime:a});
Co(this,3,a);Do(this)}else Bo(this,pa(this.seekTo,a))};
h.stop=function(){if(1==this.g){this.b?this.b.stop(null,v,x(function(){this.ob("Failed to stop video with cast v2 channel.");xo(this,"stopVideo")},this)):xo(this,"stopVideo");
var a=wo(this);oo(a);yo(this,a);Do(this)}else Bo(this,this.stop)};
h.setVolume=function(a,b){if(1==this.g){var c=wo(this);if(this.o){if(c.volume!=a){var d=Math.round(a)/100;this.o.setReceiverVolumeLevel(d,x(function(){Eo("set receiver volume: "+d)},this),x(function(){this.ob("failed to set receiver volume.")},this))}c.muted!=b&&this.o.setReceiverMuted(b,x(function(){Eo("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);xo(this,"setVolume",e)}c.muted=b;c.volume=a;yo(this,c)}else Bo(this,pa(this.setVolume,a,b))};
h.sm=function(a,b){if(1==this.g){var c=wo(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:dg(b.style)};jc(d,c.g);xo(this,"setSubtitlesTrack",d)}else d={videoId:a},xo(this,"setSubtitlesTrack",d);yo(this,c)}else Bo(this,pa(this.sm,a,b))};
h.lt=function(a,b){if(1==this.g){xo(this,"setAudioTrack",{videoId:a,audioTrackId:b.Vb.id});var c=wo(this);c.audioTrackId=b.Vb.id;yo(this,c)}else Bo(this,pa(this.lt,a,b))};
h.dispose=function(){if(3!=this.g){var a=this.g;this.g=3;this.Y("proxyStateChange",a,this.g)}vo.N.dispose.call(this)};
h.T=function(){Ti(this.B);this.B=window.NaN;Ao(this);this.A=null;this.C.clear();uo(this,null);vo.N.T.call(this)};
h.Sm=function(a){if((a!=this.g||2==a)&&3!=this.g&&0!=a){var b=this.g;this.g=a;this.Y("proxyStateChange",b,a);if(1==a)for(;!this.C.isEmpty();)ko(this.C).apply(this);else 3==a&&this.dispose()}};
h.aD=function(a){("remotePlayerChange"!=a||(0,window.isNaN)(this.B))&&this.Y(a)};
h.hB=function(a){if(!a)this.hh(null),uo(this,null);else if(this.o.receiver.volume){a=this.o.receiver.volume;var b=wo(this),c=Math.round(100*a.level||0);if(b.volume!=c||b.muted!=a.muted)Eo("Cast volume update: "+a.level+(a.muted?" muted":"")),b.volume=c,b.muted=!!a.muted,yo(this,b)}};
h.hh=function(a){Eo("Cast media: "+!!a);this.b&&this.b.removeUpdateListener(this.G);if(this.b=a)this.b.addUpdateListener(this.G),Fo(this),Do(this)};
h.gB=function(a){a?(Fo(this),Do(this)):this.hh(null)};
h.ob=function(a){wi("CP",a)};z(Ho,nk);h=Ho.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.Ua.listId=c);this.Ua.videoId=d;this.Ua.index=e||0;this.Ua.state=3;po(this.Ua,f);this.D="UNSUPPORTED";Io("Connecting with setPlaylist and params: "+dg(k));this.b.connect({method:"setPlaylist",params:dg(k)},a,Ok())}else Io("Connecting without params"),this.b.connect({},a,Ok());Ko(this)};
h.dispose=function(){this.isDisposed()||(this.Y("beforeDispose"),Jo(this,3));Ho.N.dispose.call(this)};
h.T=function(){Lo(this);No(this);Mo(this);Ti(this.G);this.G=window.NaN;Ti(this.H);this.H=window.NaN;this.o=null;im(this.O);this.O.length=0;this.b.dispose();Ho.N.T.call(this);this.D=this.F=this.g=this.Ua=this.b=null};
h.gy=function(){this.B(2)};
h.lB=function(){Io("Channel opened");this.M&&(this.M=!1,Mo(this),this.L=Ri(x(function(){Io("Timing out waiting for a screen.");this.B(1)},this),15E3));
Tk(co(this.b),this.ba)};
h.iB=function(){Io("Channel closed");(0,window.isNaN)(this.A)?Uk(!0):Uk();this.dispose()};
h.jB=function(a){Uk();(0,window.isNaN)(this.C())?(Io("Channel error: "+a+" without reconnection"),this.dispose()):(this.M=!0,Io("Channel error: "+a+" with reconnection in "+this.C()+" ms"),Jo(this,2))};
h.kB=function(a){a.params?Io("Received: action="+a.action+", params="+dg(a.params)):Io("Received: action="+a.action+" {}");switch(a.action){case "loungeStatus":a=$f(a.params.devices);this.g=N(a,function(a){return new Ak(a)});
a=!!bb(this.g,function(a){return"LOUNGE_SCREEN"==a.type});
Ro(this,a);break;case "loungeScreenConnected":Ro(this,!0);break;case "loungeScreenDisconnected":pb(this.g,function(a){return"LOUNGE_SCREEN"==a.type});
Ro(this,!1);break;case "remoteConnected":var b=new Ak($f(a.params.device));bb(this.g,function(a){return b?a.id==b.id:!1})||lb(this.g,b);
break;case "remoteDisconnected":b=new Ak($f(a.params.device));pb(this.g,function(a){return b?a.id==b.id:!1});
break;case "gracefulDisconnect":break;case "playlistModified":To(this,a);break;case "nowPlaying":Vo(this,a);break;case "onStateChange":Uo(this,a);break;case "onVolumeChanged":Wo(this,a);break;case "onSubtitlesTrackChanged":So(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:Io("Unrecognized action: "+a.action)}};
h.VE=function(){if(this.o){var a=this.o;this.o=null;this.Ua.videoId!=a&&Oo(this,"getNowPlaying")}};
Ho.prototype.subscribe=Ho.prototype.subscribe;Ho.prototype.unsubscribeByKey=Ho.prototype.Lc;Ho.prototype.ea=function(){var a=3;this.isDisposed()||(a=0,(0,window.isNaN)(this.C())?fo(this.b)&&(0,window.isNaN)(this.A)&&(a=1):a=2);return a};
Ho.prototype.getProxyState=Ho.prototype.ea;Ho.prototype.B=function(a){Io("Disconnecting with "+a);Lo(this);this.Y("beforeDisconnect",a);1==a&&Uk();eo(this.b,a);this.dispose()};
Ho.prototype.disconnect=Ho.prototype.B;Ho.prototype.fa=function(){var a=this.Ua;this.o&&(a=this.Ua.clone(),ro(a,this.o,a.index));return so(a)};
Ho.prototype.getPlayerContextData=Ho.prototype.fa;Ho.prototype.ia=function(a){var b=new mo(a);b.videoId&&b.videoId!=this.Ua.videoId&&(this.o=b.videoId,Ti(this.G),this.G=Ri(x(this.VE,this),5E3));var c=[];this.Ua.listId==b.listId&&this.Ua.videoId==b.videoId&&this.Ua.index==b.index||c.push("remoteQueueChange");this.Ua.b==b.b&&this.Ua.volume==b.volume&&this.Ua.muted==b.muted&&qo(this.Ua)==qo(b)&&dg(this.Ua.g)==dg(b.g)||c.push("remotePlayerChange");this.Ua.reset(a);F(c,function(a){this.Y(a)},this)};
Ho.prototype.setPlayerContextData=Ho.prototype.ia;Ho.prototype.S=function(){var a=this.b.C.id,b=bb(this.g,function(b){return"REMOTE_CONTROL"==b.type&&b.id!=a});
return b?b.id:""};
Ho.prototype.getOtherConnectedRemoteId=Ho.prototype.S;Ho.prototype.C=function(){var a=this.b;return a.g.enabled?a.g.B-E():window.NaN};
Ho.prototype.getReconnectTimeout=Ho.prototype.C;Ho.prototype.$=function(){return this.D||"UNSUPPORTED"};
Ho.prototype.getAutoplayMode=Ho.prototype.$;Ho.prototype.da=function(){return this.F||""};
Ho.prototype.getAutoplayVideoId=Ho.prototype.da;Ho.prototype.na=function(){if(!(0,window.isNaN)(this.C())){var a=this.b.g;a.enabled&&(a.stop(),a.start(),a.C())}};
Ho.prototype.reconnect=Ho.prototype.na;Ho.prototype.ga=function(a,b){Oo(this,a,b);Qo(this)};
Ho.prototype.sendMessage=Ho.prototype.ga;z(Xo,ok);h=Xo.prototype;h.Ec=function(a){return this.bc.$_gs(a)};
h.contains=function(a){return!!this.bc.$_c(a)};
h.get=function(a){return this.bc.$_g(a)};
h.start=function(){this.bc.$_st()};
h.zj=function(a,b,c){this.bc.$_a(a,b,c)};
h.remove=function(a,b,c){this.bc.$_r(a,b,c)};
h.rj=function(a,b,c,d){this.bc.$_un(a,b,c,d)};
h.T=function(){for(var a=0,b=this.b.length;a<b;++a)this.bc.$_ubk(this.b[a]);this.b.length=0;this.bc=null;Xo.N.T.call(this)};
h.TF=function(){this.Y("screenChange")};
h.OC=function(){this.Y("onlineScreenChange")};
il.prototype.$_st=il.prototype.start;il.prototype.$_gspc=il.prototype.UF;il.prototype.$_gsppc=il.prototype.ut;il.prototype.$_c=il.prototype.contains;il.prototype.$_g=il.prototype.get;il.prototype.$_a=il.prototype.zj;il.prototype.$_un=il.prototype.rj;il.prototype.$_r=il.prototype.remove;il.prototype.$_gs=il.prototype.Ec;il.prototype.$_gos=il.prototype.tt;il.prototype.$_s=il.prototype.subscribe;il.prototype.$_ubk=il.prototype.Lc;var Yo=null,Zo=null,lp=null,dp=[];var Cp=/^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]+)?\/)/,
fF=/^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]+)?([\/\?\#]|$)/,Pda=/^https?:\/\/([A-Za-z0-9-]{1,63}\.)*(corp\.google\.com|borg\.google\.com|prod\.google\.com|sandbox\.google\.com|youtube\.com)(:[0-9]+)?([\/\?\#]|$)/,Aba=/^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]+)?([\/\?\#]|$))/,
Wp=/^https?.*#ocr$|^https?:\/\/(secure\-..\.imrworldwide\.com\/|cdn\.imrworldwide\.com\/|aksecure\.imrworldwide\.com\/)/,Tu=/^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)/,Up=/^https?:\/\/(www\.google\.com\/pagead\/sul|www\.youtube\.com\/pagead\/sul|www\.youtube\.com\/pagead\/psul)/,
cC=/^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]+)?([\/\?\#]|$))/,
Dba=/^https?:\/\/(sf\.api\.[a-z0-9\-]+\.km\.playstation\.net\/|([A-Za-z0-9-]{1,63}\.)*(themis\.dl\.playstation\.net)(:[0-9]+)?([\/\?\#]|$))/,Ep=/^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|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 Fp=["2mdn.net"];var Jy=iA||hA;var Zp={},Yp=0;var $p=1;aq.prototype.getId=function(){return this.xa};
aq.prototype.getId=aq.prototype.getId;aq.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(dq,nk);h=dq.prototype;h.tb=function(a,b){for(var c=0;c<a.length;c++)a[c].namespace=this.Ma;this.b.tb(a,b)};
h.create=function(){this.D||(this.xb(this.b),J(this.b.Ea(),this.Ma+"-created"),this.b.addEventListener("crn_"+this.Ma,this.Xc,this),this.b.addEventListener("crx_"+this.Ma,this.rd,this),this.D=!0)};
h.destroy=function(){this.loaded&&this.unload();le(this.b.Ea(),this.Ma+"-created");this.b.removeEventListener("crn_"+this.Ma,this.Xc,this);this.b.removeEventListener("crx_"+this.Ma,this.rd,this);this.D=!1;this.Y("destroyed",this.Ma)};
h.load=function(){this.loaded=!0;J(this.b.Ea(),this.Ma+"-loaded");this.Y("loaded",this.Ma)};
h.unload=function(){this.loaded=!1;le(this.b.Ea(),this.Ma+"-loaded");this.Y("unloaded",this.Ma)};
h.Xc=function(){};
h.rd=function(){};
h.yc=function(){};
h.log=function(a){Xu(this.b,this.logEvent,a)};
h.Ih=function(){return null};
h.te=function(){};
h.Df=function(){return[]};
h.xb=function(){return!1};
h.bm=function(a,b){this.F&&this.F.yc&&this.F.yc.apply(this.F,arguments)};
h.Wi=function(){};var Wda={pJ:"YTP_ERROR_ALREADY_PINNED_ON_A_DEVICE",AUTHENTICATION_EXPIRED:"ERROR_AUTHENTICATION_EXPIRED",wJ:"ERROR_AUTHENTICATION_MALFORMED",xJ:"ERROR_AUTHENTICATION_MISSING",DJ:"ERROR_BAD_REQUEST",RJ:"YTP_ERROR_CANNOT_ACTIVATE_RENTAL",aK:"ERROR_CGI_PARAMS_MALFORMED",bK:"ERROR_CGI_PARAMS_MISSING",BK:"YTP_DEVICE_FALLBACK",$K:"YTP_ERROR_LICENSE",eL:"YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK_FLASH",iL:"YTP_ERROR_FORMAT_UNAVALIABLE",jL:"YTP_ERROR_GEO_FAILURE",xL:"YTP_ERROR_GENERIC_WITHOUT_LINK",zL:"YTP_HTML5_PROTECTED_FLASH_FALLBACK",
yL:"YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK",OL:"YTP_ERROR_INVALID_DRM_MESSAGE",VL:"LEARN_MORE",VM:"YTP_ERROR_NOT_SIGNED_IN",BN:"YTP_ERROR_PURCHASE_NOT_FOUND",CN:"YTP_ERROR_PURCHASE_REFUNDED",IN:"YTP_ERROR_RENTAL_EXPIRED",WJ:"YTP_ERROR_CAST_SESSION_DEVICE_MISMATCHED",XJ:"YTP_ERROR_CAST_SESSION_VIDEO_MISMATCHED",ZJ:"YTP_ERROR_CAST_TOKEN_FAILED",YJ:"YTP_ERROR_CAST_TOKEN_EXPIRED",$J:"YTP_ERROR_CAST_TOKEN_MALFORMED",ZN:"YTP_ERROR_SERVER_ERROR",rO:"YTP_ERROR_STOPPED_BY_ANOTHER_PLAYBACK",tO:"YTP_ERROR_STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED",
uO:"YTP_ERROR_STREAMING_NOT_ALLOWED",vO:"YTP_ERROR_STREAMING_UNAVAILABLE",PN:"YTP_ERROR_RETRYABLE_ERROR",IO:"YTP_ERROR_TOO_MANY_STREAMS_PER_USER",HO:"YTP_ERROR_TOO_MANY_STREAMS_PER_ENTITLEMENT",YO:"YTP_ERROR_UNSUPPORTED_DEVICE",ZO:"YTP_ERROR_UNUSUAL_ACTIVITY",iP:"YTP_ERROR_VIDEO_FORBIDDEN",jP:"YTP_ERROR_VIDEO_NOT_FOUND"},nq={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 Bba={fJ:"adunit",AK:"detailpage",VK:"editpage",WK:"embedded",UL:"leanback",wN:"previewpage",yN:"profilepage",WO:"unplugged"};var Fy,Ey;var o$=sc,p$=o$.match(/\((iPad|iPhone|iPod)( Simulator)?;/);if(!p$||2>p$.length)Fy=void 0;else{var q$=o$.match(/\((iPad|iPhone|iPod)( Simulator)?; (U; )?CPU (iPhone )?OS (\d+_\d)[_ ]/);Fy=q$&&6==q$.length?Number(q$[5].replace("_",".")):0}(Ey=0<=Fy)&&0<=sc.search("Safari")&&sc.search("Version");var fta=Ey&&4>Fy?.1:0,pma=new pq;pq.prototype.b=null;pq.prototype.getCurrentTime=function(){return this.currentTime||0};
pq.prototype.g=function(){this.hasAttribute("controls")&&this.setAttribute("controls","true")};rq.prototype.Za=function(){return R(this,8)&&!R(this,64)&&!R(this,2)};var Qr=[1,2,3,4,5],Mr={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(Fq,nk);Fq.prototype.A=function(){this.g.isActive()&&ge(this.g)};
Fq.prototype.B=function(){var a={headers:{"Content-Type":"application/json"},wd:{alt:"json",key:this.D},postBody:this.F,format:"JSON",timeout:1E4,fb:x(this.H,this),onError:x(this.o,this),Wb:x(this.o,this)};this.C&&(a.headers["X-Goog-Visitor-Id"]=this.C);ak(this.G,a)};
Fq.prototype.H=function(a){this.isDisposed()||(200<=a.status&&400>a.status?(a=JSON.parse(a.responseText),this.Y("payload",a),this.b=7500+Math.floor(15E3*Math.random()),this.g.start(this.b)):this.o())};
Fq.prototype.o=function(){this.isDisposed()||(this.Y("error"),192E4>this.b&&(this.b*=2),this.g.start(this.b))};var Y4=16/9,gta=[.25,.5,1,1.25,1.5,2];z(Hq,G);h=Hq.prototype;h.Ca=function(a,b){p(b)?Gf(a,this.element,b):a.appendChild(this.element)};
h.detach=function(){Hf(this.element)};
h.update=function(a){for(var b in a)this.wa(b,a[b])};
h.wa=function(a,b){var c=this.va["{{"+a+"}}"];c&&Jq(this,c[0],c[1],b)};
h.T=function(){this.qa={};this.va={};this.detach();Hq.N.T.call(this)};
Hq.g=1;Hq.b=function(){return"ytp-svg-"+Hq.g++};z(S,Hq);h=S.prototype;h.Ob=function(a,b){this.wa(b||"content",a)};
h.show=function(){this.g||(Mq(this.element,""),this.g=!0)};
h.pa=function(){this.g&&(Mq(this.element,"none"),this.g=!1)};
h.gb=function(a){a?this.show():this.pa()};
h.P=function(a,b,c){return this.U(this.element,a,b,c)};
h.U=function(a,b,c,d){c=x(c,d||this);d={target:a,type:b,listener:c};this.ba.push(d);a.addEventListener(b,c);return d};
h.ua=function(a){for(var b=0;b<this.ba.length;b++)if(this.ba[b]==a){a=this.ba.splice(b,1)[0];a.target.removeEventListener(a.type,a.listener);break}};
h.focus=function(){Vf(this.element);this.element.focus()};
h.T=function(){for(;this.ba.length;){var a=this.ba.pop();a.target.removeEventListener(a.type,a.listener)}S.N.T.call(this)};z(dr,S);dr.prototype.o=function(a){if(!Qq(a)||T(this.b).experiments.aa("disable_fresca_video_navigation"))$q(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);qm(a)}};z(er,S);h=er.prototype;h.BA=function(a){if(!Qq(a)||T(this.o).experiments.aa("disable_fresca_video_navigation"))$q(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);qm(a)}};
h.nB=function(){this.A=!0;this.pa()};
h.show=function(){var a=!this.g;er.N.show.call(this);a&&Vr(this.o)};
h.pa=function(){var a=this.g;er.N.pa.call(this);a&&Vr(this.o)};
h.T=function(){Nb(this.b);er.N.T.call(this)};z(jr,S);jr.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;K(this.element,"ytp-fresca-inline-countdown",b&&!0);K(this.element,"ytp-fresca-show-countdown",b&&!1);if(b){if(!a&&(a=this.b.startTime-Math.floor(E()/1E3),a=259200<=a?0:86459<=a?1:86400<=a?2:0<=a?3:-3600<=a?4:5,a!=this.C)){this.C=a;or(this,this.b,!0);return}kr(this.b)||this.wa("countdown",pr(this.b.startTime));Ti(this.B);this.B=Ri(x(this.D,this),1E3)}};
jr.prototype.T=function(){Ti(this.B);jr.N.T.call(this)};var yr={En:["BC","AD"],Dn:["Before Christ","Anno Domini"],Sn:"JFMAMJJASOND".split(""),bo:"JFMAMJJASOND".split(""),Vj:"January February March April May June July August September October November December".split(" "),Yj:"January February March April May June July August September October November December".split(" "),Wj:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),Zj:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),dk:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),
ak:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),Xj:"Sun Mon Tue Wed Thu Fri Sat".split(" "),$j:"Sun Mon Tue Wed Thu Fri Sat".split(" "),hw:"SMTWTFS".split(""),co:"SMTWTFS".split(""),$n:["Q1","Q2","Q3","Q4"],Wn:["1st quarter","2nd quarter","3rd quarter","4th quarter"],Rj:["AM","PM"],Ph:["EEEE, MMMM d, y","MMMM d, y","MMM d, y","M/d/yy"],bk:["h:mm:ss a zzzz","h:mm:ss a z","h:mm:ss a","h:mm a"],An:["{1} 'at' {0}","{1} 'at' {0}","{1}, {0}","{1}, {0}"],Qh:6,lo:[5,6],Rh:5},yr={En:["BC",
"AD"],Dn:["Before Christ","Anno Domini"],Sn:"JFMAMJJASOND".split(""),bo:"JFMAMJJASOND".split(""),Vj:"January February March April May June July August September October November December".split(" "),Yj:"January February March April May June July August September October November December".split(" "),Wj:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),Zj:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),dk:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),
ak:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),Xj:"Sun Mon Tue Wed Thu Fri Sat".split(" "),$j:"Sun Mon Tue Wed Thu Fri Sat".split(" "),hw:"SMTWTFS".split(""),co:"SMTWTFS".split(""),$n:["Q1","Q2","Q3","Q4"],Wn:["1st quarter","2nd quarter","3rd quarter","4th quarter"],Rj:["am","pm"],Ph:["EEEE, d MMMM y","d MMMM y","d MMM y","dd/MM/y"],bk:["HH:mm:ss zzzz","HH:mm:ss z","HH:mm:ss","HH:mm"],An:["{1} 'at' {0}","{1} 'at' {0}","{1}, {0}","{1}, {0}"],Qh:0,lo:[5,6],Rh:3};qr.prototype.clone=function(){return new qr(this.C,this.B,this.b,this.g,this.o,this.A)};
qr.prototype.times=function(a){return new qr(this.C*a,this.B*a,this.b*a,this.g*a,this.o*a,this.A*a)};
h=tr.prototype;h.Yo=yr.Qh;h.Zo=yr.Rh;h.clone=function(){var a=new tr(this.date);a.Yo=this.Yo;a.Zo=this.Zo;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(),La(this.getMonth()+1,2),La(this.getDate(),2)].join("")+""};
h.valueOf=function(){return this.date.valueOf()};var Er=[/^\'(?:[^\']|\'\')*(\'|$)/,/^(?:G+|y+|M+|k+|S+|E+|a+|h+|K+|H+|c+|L+|Q+|d+|m+|s+|v+|V+|w+|z+|Z+)/,/^[^\'GyMkSEahKHcLQdmsvVwzZ]+/];
Br.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-xr(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(Hr(this,k,a,d,e,b)):c.push(k)}return c.join("")};
var Dr=!1;Ir.prototype.isLive=function(){return"LIVE"==this.g};
Ir.prototype.isUpcoming=function(){return"NOT_YET_LIVE"==this.g};
Ir.prototype.getVideoUrl=function(){return this.C};Lr.prototype.b=function(){return this.A};z(Rr,dq);h=Rr.prototype;h.xb=function(){return Xr(this.b.getVideoData(),"fresca_module")};
h.create=function(a){Rr.N.create.call(this);var b=T(this.b);Oz()?(this.G=this.o=!1,this.H&&(this.B=new jr(this.b),Qv(this.b,this.B.element,4)),this.A=a||null,this.A||(a=this.b.getVideoData(),this.A=new Fq(a.videoId,a.visitorData||Pi("VISITOR_DATA",""),b.ye)),this.A.subscribe("payload",this.pD,this),this.A.subscribe("error",this.or,this),this.b.addEventListener("presentingplayerstatechange",this.Wt,this)):jI(this.b.app.g,"html5.unsupportedlive","YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK","nolive.1")};
h.destroy=function(){this.b.removeEventListener("presentingplayerstatechange",this.Wt,this);Nb(this.A,this.B);this.g=null;Rr.N.destroy.call(this)};
h.Wt=function(a){this.g&&(this.G=R(a.state,2),Dq(Sr(this.b))&&this.A.A(),Wr(this,this.g))};
h.or=function(){if(!this.o){var a=this.b.getVideoData();a.hlsvp||a.D?T(this.b).experiments.aa("disable_fresca_error_fallback")||(this.o=!0,hq(this)):(Zr(this,new Lr(this.b.getVideoData().isLiveDefaultBroadcast)),Wr(this,this.g))}};
h.pD=function(a){if(!a||a.error)this.or();else{var b=this.g?this.g.broadcastId:"",c=this.b.getVideoData();Zr(this,new Lr(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&&Ur(this,this.g)&&(a=this.g.broadcastId.substring(0,11),a!=c.videoId)){J9(this.b.app,a,null,null,!0);return}Wr(this,this.g)}else this.C=!1,this.b.Xm(c.videoId)}};var as=vf&&$r();var js={},Is=/[^\d]+$/,Js={cm:1,"in":1,mm:1,pc:1,pt:1},Ks={em:1,ex:1};Ms.prototype.P=function(a,b,c,d){c=x(c,d||this.g);a=hm(a,b,c);this.b.push(a);return a};
Ms.prototype.ua=function(a){im(a);ob(this.b,a)};z(Qs,G);h=Qs.prototype;h.start=function(){this.stop();this.o=!1;var a=Rs(this),b=Ss(this);a&&!b&&this.b.mozRequestAnimationFrame?(this.xa=Rc(this.b,"MozBeforePaint",this.g),this.b.mozRequestAnimationFrame(null),this.o=!0):this.xa=a&&b?a.call(this.b,this.g):this.b.setTimeout(md(this.g),20)};
h.stop=function(){if(this.isActive()){var a=Rs(this),b=Ss(this);a&&!b&&this.b.mozRequestAnimationFrame?cd(this.xa):a&&b?b.call(this.b,this.xa):this.b.clearTimeout(this.xa)}this.xa=null};
h.isActive=function(){return null!=this.xa};
h.ay=function(){this.o&&this.xa&&cd(this.xa);this.xa=null;this.B.call(this.A,E())};
h.T=function(){this.stop();Qs.N.T.call(this)};var Ts={},Us=null;z(Zs,hd);h=Zs.prototype;h.Za=function(){return 1==this.b};
h.Ui=function(){this.Qc("begin")};
h.ih=function(){this.Qc("end")};
h.zc=function(){this.Qc("finish")};
h.Qc=function(a){this.dispatchEvent(a)};z($s,Zs);h=$s.prototype;h.play=function(a){if(a||0==this.b)this.progress=0,this.g=this.o;else if(this.Za())return!1;Vs(this);this.startTime=a=E();-1==this.b&&(this.startTime-=this.duration*this.progress);this.endTime=this.startTime+this.duration;this.B=this.startTime;this.progress||this.Ui();this.Qc("play");-1==this.b&&this.Qc("resume");this.b=1;var b=ma(this);b in Ts||(Ts[b]=this);Xs();Ys(this,a);return!0};
h.stop=function(a){Vs(this);this.b=0;a&&(this.progress=1);at(this,this.progress);this.Qc("stop");this.ih()};
h.pause=function(){this.Za()&&(Vs(this),this.b=-1,this.Qc("pause"))};
h.T=function(){0==this.b||this.stop(!1);this.Qc("destroy");$s.N.T.call(this)};
h.destroy=function(){this.dispose()};
h.Ul=function(){this.Qc("animate")};
h.Qc=function(a){this.dispatchEvent(new bt(a,this))};
z(bt,lc);et.prototype.g=ue;z(lt,G);h=lt.prototype;h.tb=function(a){this.qe();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):Gb(b.b,d,b.g)}this.o=window.NaN;this.qe()};
h.yh=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=zb(d,c,e.g);0<=c&&nb(d,c)}}this.qe()};
h.reset=function(){this.A=this.D=!1;this.B.stop();this.b.b=[];this.g=[];this.qe();this.C=null};
h.qe=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();R(b,32)&&this.L.start();for(var c=R(this.H(),2)?0x8000000000000:1E3*this.O(),d=R(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(ot(this,f));if(d)b=ht(this.b,0x7ffffffffffff),b=b.concat(jt(this.b));else if(this.o<=c&&b.Za()&&!R(b,16)&&!R(b,32)){b=this.b;d=c;f=[];for(k=it(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=ht(this.b,c);e=e.concat(nt(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.ac("onEnter",d),this.K("crn_"+d.namespace,d)):(d.b&&d.b.ac("onExit",d),this.K("crx_"+d.namespace,d))}this.G=!1;a--}this.H().Za()&&(a=kt(this.b,this.o),null!=a&&0x7ffffffffffff>a&&(a=(a-this.o)/this.M(),this.B.start(a)))}};
h.T=function(){this.C=this.b=this.g=null;lt.N.T.call(this)};var Ft={uK:"current",UM:"new"};Rt.prototype.update=function(){var a=this.g.g()||0,b=fu(this.g);if(a!=this.b||Vt(this,a,b)){if(a<this.b||a-this.b>b-this.B+2||Vt(this,a,b))St(this),this.o=a;this.B=b;this.b=a}};Wt.prototype.g=function(){return{ps:this.b.g,el:this.b.b}};
Wt.prototype.send=function(){if(!this.o){var a;a=this.g();a=Sg(this.b.baseYtUrl+"set_awesome",a);this.b.experiments.g&&this.videoData.visitorData&&Sj(a)?Zj(a,{headers:{"X-Goog-Visitor-Id":this.videoData.visitorData}}):Tp(a);this.o=!0}};z(Xt,Wt);
Xt.prototype.g=function(){var a=Xt.N.g.call(this);qa(a,this.b.o);qa(a,{html5:"1",video_id:this.videoData.videoId,eurl:this.b.ga,framer:this.b.xe,list:this.videoData.Lg||this.videoData.playlistId,w:$e(this.videoData.Bd/this.videoData.lengthSeconds,0,1),l:this.videoData.lengthSeconds,plid:this.videoData.playbackId,ei:this.videoData.eventId,access_token:this.videoData.oauthToken,tpmt:Tt(this.A),cpn:this.videoData.clientPlaybackNonce,feature:this.videoData.Xn});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.aa("legacy_autoplay_flag")?this.b.ca:this.videoData.K)a.autoplay="1";this.b.Pb&&(a.authuser=this.b.Pb);this.b.pageId&&(a.pageid=this.b.pageId);this.videoData.oa&&(a.splay="1");this.videoData.subscribed&&(a.subscribed=this.videoData.subscribed);qa(a,Xt.N.g.call(this));qa(a,this.b.o);return a};var dba={yJ:"auto",DO:"tiny",WL:"light",jO:"small",bw:"medium",TL:"large",qL:"hd720",mL:"hd1080",nL:"hd1440",oL:"hd2160",pL:"hd2880",vL:"highres",UNKNOWN:"unknown"},hy={auto:0,tiny:144,light:144,small:240,medium:360,large:480,hd720:720,hd1080:1080,hd1440:1440,hd2160:2160,hd2880:2880,highres:4320},Lz="highres hd2880 hd2160 hd1440 hd1080 hd720 large medium small tiny".split(" ");z(eu,G);var Iu={5:"N","-1":"N",3:"B",0:"EN",2:"PA",1:"PL"};h=eu.prototype;
h.qg=function(a){if(!this.isDisposed()&&!bc(this.g)&&!this.K){a=0<=a?a:fu(this.b);gu(this,a);this.b.b.experiments.aa("html5_qoe_count_failed")&&cu()&&mu(this,"failedping",cu().toString());var b=AA(this.b.b),c=b.droppedVideoFrames,d=c-this.S;if(c>b.totalVideoFrames||5E3<d)this.onError("html5.badframedropcount","df."+c+";tf."+b.totalVideoFrames);else 0<d&&du(this,a,"df",[d]);this.S=c;a=iu(this);jc(a,this.b.b.o);a=Sg(this.b.b.Dd,a);for(var e in this.g)a+="&"+e+"="+this.g[e].join(",");ju(this,a);this.g=
{};this.C.start()}};
h.Jr=function(){this.b.b.experiments.aa("html5_qoe_count_failed")&&bu(cu()+1)};
h.Kr=function(){this.b.b.experiments.aa("html5_qoe_count_failed")&&cu()&&bu(0)};
h.us=function(){this.b.videoData.G&&lu(this,"drm-"+this.b.videoData.G.b)};
h.onError=function(a,b){var c=fu(this.b);ou(this,c,a,b);gu(this,c);ku(this)};
h.eC=function(){var a=fu(this.b);"PL"==this.o&&(du(this,a,"vps",[this.o]),this.qg(a))};
h.T=function(){eu.N.T.call(this);Ui(this.M)};ru.prototype.send=function(a){if(!this.ba){var b=wu(this),b=Sg(this.da,b);if(this.D)this.L&&(a={method:"POST",Lb:{atr:this.L}},this.visitorData&&(a.headers={"X-Goog-Visitor-Id":this.visitorData}),Zj(b,a));else{var c=tu(this,a);c?Zj(b,c):Tp(b,a)}this.ba=!0}};
ru.prototype.b=function(a){return(1*a.toFixed(3)).toString()};z(xu,G);xu.prototype.ca=function(a,b){if(!this.isDisposed()){this.D=window.NaN;this.o.update();var c=Ut(this.o),d=Bu(this,c);b&&(d.B=a);var e=400<this.K;!(1<c.length)&&c[0].isEmpty()||e||(d.g=yu(this,!0,a));d.send();this.K++}};
xu.prototype.onError=function(a,b){this.g.onError(a,b)};
xu.prototype.F=function(a){var b=this.b.b,c=this.b.videoData,d={ns:b.na,el:b.b,eurl:b.ga,fmt:c.g?hu(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.aa("legacy_autoplay_flag")?b.ca:c.K)d.autoplay="1";"heartbeat"==a&&(d.tpmt=Tt(this.o));qa(d,b.o);Du(this,Sg("//www.youtube.com/live_204",d))};
xu.prototype.T=function(){xu.N.T.call(this);Ti(this.D);this.D=window.NaN;var a=this.o;Ui(a.C);a.C=window.NaN};h=Yu.prototype;h.jj=function(){this.context.A.subscribe("resize",this.fi,this)};
h.ma=function(){return this.fa};
h.vg=function(a,b,c,d,e,f){this.context.b.P(a,"click",pa(this.Pi,b,c,d,e||[],f||0),this);this.context.b.P(a,"touchstart",pa(function(){this.Jm=!1}),this);
this.context.b.P(a,"touchmove",pa(function(){this.Jm=!0}),this)};
h.Pi=function(a,b,c,d,e,f){if(this.Jm)return!1;f&&(f.stopPropagation(),f.preventDefault());(b=Nt(a,b,this.context.videoData.videoId))&&av(this,b,Ot(b,a.target),c,d,e,a.Zi);return!1};
h.show=function(){this.H=E()};
h.Kj=function(){};
h.destroy=function(){Hf(this.ma())};
h.fi=function(){};var hta=function(a){var b=!1,c;return function(){b||(c=a(),b=!0);return c}}(function(){if(vf)return yc("10.0");
var a=Cf("DIV"),b=Bc?"-webkit":fs?"-moz":vf?"-ms":Cc?"-o":null,c={transition:"opacity 1s linear"};b&&(c[b+"-transition"]="opacity 1s linear");b={style:c};if(!Re.test("div"))throw Error("Invalid tag name <div>.");if("DIV"in Ysa)throw Error("Tag name <div> is not allowed for SafeHtml.");b=We("div",b,void 0);a.innerHTML=Oe(b);return""!=ks(a.firstChild,"transition")});z(cv,G);cv.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||(dv(this,!0),this.b=1,a?this.o.start(a):this.A()))};
cv.prototype.A=function(){switch(this.b){case 1:this.g.show();this.b=2;this.o.start(10);break;case 2:dv(this,!1);this.b=null;break;case 3:this.g.pa();dv(this,!1);this.b=4;this.o.start(0);break;case 4:this.b=null}};
cv.prototype.stop=function(){for(;null!=this.b&&4!=this.b;)this.o.stop(),this.A()};
cv.prototype.T=function(){this.g.isDisposed()||this.g.element.removeAttribute("aria-hidden");cv.N.T.call(this)};z(fv,S);h=fv.prototype;h.Ms=function(){mr(this.Z)&&hJ(this.Z)&&this.g&&3!=this.F.b&&this.Lh()};
h.XH=function(a){this.o&&Pf(this.o.element,mm(a))||(this.A&&this.A.Ck?this.Wq(this.A):(this.Lh(),fj("iv-teaser-clicked",!!this.b),this.Z.Gh(!0,!1,"YOUTUBE_DRAWER_MANUAL_OPEN")))};
h.VH=function(){fj("iv-teaser-mouseover");this.b.stop()};
h.WH=function(){le(this.element,"ytp-cards-auto-open-hover-card")};
h.OD=function(a){this.b||!a||hJ(this.Z)||this.C&&this.C.isActive()||(this.A=a.Di,jv(this,a),fj("iv-teaser-shown"))};
h.Wq=function(a){a.Zi&&this.Z.pauseVideo();Uq(a.Qr,void 0);Vq(a.Qr,a.target);fj("iv-hover-card-clicked")};
h.mz=function(){J(this.element,"ytp-hover-card-active")};
h.nz=function(){le(this.element,"ytp-hover-card-active")};
h.Gu=function(){this.G.stop();this.b&&this.b.isActive()&&this.H.start()};
h.Ne=function(){this.H.stop();this.b&&!this.b.isActive()&&this.G.start()};
h.EC=function(){this.b&&this.b.stop()};
h.CC=function(){this.Lh()};
h.Lh=function(){!this.b||this.D&&this.D.isActive()||(this.o&&(this.o.detach(),this.o=null),this.A=null,ev(this.F),le(this.Z.Ea(),"ytp-cards-teaser-shown"),le(this.Z.Ea(),"ytp-cards-button-teaser-merge"),le(this.element,"ytp-cards-combined-teaser"),this.D=new fe(function(){for(var a=0;a<this.B.length;a++)this.ua(this.B[a]);this.B=[];this.b&&(this.b.dispose(),this.b=null);iv(this.K,!0)},330,this),this.D.start())};
h.T=function(){var a=this.Z.Ea();a&&le(a,"ytp-cards-teaser-shown");Nb(this.C,this.D,this.b,this.o,this.A);fv.N.T.call(this)};z(lv,kv);z(mv,kv);z(nv,mv);var ov=!vf;h=qv.prototype;h.HC=function(a,b){var c=(0,window.parseInt)(pv(b.target,"navigationChapterIndex"),10);this.b.g.seekTo(a.chapters[c].time_ms/1E3,!0);var d={};d["link-id"]=c;Ru(this.b.logger,a.$a,void 0,d,a.b.click,5)};
h.jr=function(a,b){var c=Xf(b.target,"label");c&&K(c,"iv-card-poll-choice-focused",a)};
h.eD=function(a,b){var c=Yf(b.target,"iv-card-poll");if(c)if(a.o)qf("iv-card-sign-in-button",c).click();else{var d=(0,window.parseInt)(pv(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;uv(a,c);ak(this.b.videoData.Gf,{wd:{action_poll_vote:1},Lb:{poll_id:a.id,index:d,session_token:a.C}});c={};c["link-id"]=d;Ru(this.b.logger,
a.$a,void 0,c,a.b.click,5)}};
h.NB=function(a){var b=r("yt.www.ypc.bootstrap.api.loadOffersForInnertubeRequestParams");b&&(b=pa(b,a.F,a.A));Ev(this,a,!0,b)};
h.RD=function(a){var b=r("yt.www.ypc.bootstrap.api.loadOffers");b&&(b=pa(b,a.F,a.A,a.G));Ev(this,a,!1,b)};z(Gv,kv);z(Hv,kv);z(Iv,kv);z(Kv,mv);z(Lv,mv);z(Mv,kv);z(Nv,kv);z(Ov,Yu);h=Ov.prototype;h.isAvailable=function(){var a;if(a=!!this.o.length)(a=this.Z.Ea())?(a=Cs(a),a=177<a.width&&177<a.height):a=!1;return a};
h.Xw=function(){this.S&&Vv(this,"YOUTUBE_DRAWER_AUTO_OPEN")};
h.Gx=function(){(this.S=this.A)&&this.li()};
h.kH=function(){Vv(this,"YOUTUBE_DRAWER_AUTO_OPEN")};
h.li=function(){this.A&&(ev(this.L),le(this.context.g.Ea(),"ytp-iv-drawer-open"),this.A=!1,Vu(this.context.logger,10),Uv(this.Z),this.B&&this.B.stop(),this.B=new fe(function(){this.K&&(this.K.focus(),this.K=null)},330,this),this.B.start())};
h.fi=function(){var a=this.isAvailable();Fs(this.ma(),a);K(this.context.g.Ea(),"ytp-iv-drawer-enabled",a);a&&(this.M||(Vu(this.context.logger,11),this.M=!0),F(this.o,function(a){a.pq||(a.pq=!0,Wu(this.context.logger,11,a.cb.$a))},this));
Uv(this.Z)};
h.destroy=function(){var a=$I(iq(this.Z),"iv-module");a&&cy(a,!1,void 0);this.Z.Ea().removeChild(this.C);dj(this.D);im(this.ca);this.G&&this.G.dispose();this.B&&this.B.dispose();Ov.N.destroy.call(this)};
var Pv={collaborator:lv,donation:nv,episode:Nv,navigation:Gv,movie:Nv,playlist:Hv,poll:Iv,productListing:Kv,simple:mv,tip:Lv,video:Mv};h=Ov.prototype;
h.lH=function(a){this.vk.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.gd.scrollTop+=a};
h.pm=function(a,b){if(!ie(this.Z.Ea(),"ytp-cards-teaser-shown")){this.b!=a&&(this.b=a,Tv(this));if(Gs(this.ma())){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.cb.teaserDurationMs){c=null;if("video"==a.cb.type&&Wv(this,"hover_card_for_video_card_teaser")){var d=a.cb,e=d.url?Nt(d.url,a.cb.id,this.context.videoData.videoId,
this.context.o):null,f=e?Ot(e,d.url.target):null;e&&f&&(c={IP:d.id,title:d.title,Qr:e,target:"current"==f?"_top":void 0,Zi:d.url.Zi,imageUrl:d.o,videoDuration:d.videoDuration,je:d.je,Ck:Wv(this,"combined_teaser_link")})}c={teaserText:a.cb.teaserText,durationMs:b?2E3:a.cb.teaserDurationMs,Di:c,xA:Wv(this,"merge_button_with_teaser"),ix:b&&Wv(this,"hover_card_on_button_hover")};(d=$I(iq(this.Z),"iv-module"))&&cy(d,!0,c)}}this.O.isActive()||((!this.A||!this.vk.isActive()&&this.Mi)&&Xv(this,a),this.O.start(910+
a.cb.teaserDurationMs))}};
h.mF=function(){this.b&&this.pm(this.b,!0)};
h.eF=function(a){this.A||(this.b=a,Tv(this),Xv(this,a),Vv(this,"YOUTUBE_DRAWER_AUTO_OPEN",!1,a))};
h.xx=function(){this.A&&(Vu(this.context.logger,4,Yv(this).b.close),this.li())};
h.Lx=function(){K(this.C,"iv-drawer-scrolled",0<this.gd.scrollTop)};
h.wA=function(){var a=Yv(this);Wu(this.context.logger,8,a.$a,a.b.rF)};
h.vA=function(){var a=this.b;Wu(this.context.logger,13,a.cb.$a,void 0);var b=Wv(this,"hover_card_for_video_card_teaser");"video"==a.cb.type&&b&&(a=this.b,a.Qi||(a.Qi=!0,Qu(this.context.logger,a.cb.$a,a.cb.b.$p)))};
h.tA=function(){var a=this.b.cb;Ru(this.context.logger,a.$a,void 0,void 0,a.b.click,5)};
h.uA=function(a){var b=Yv(this);this.b?a?(a=this.context.logger,Wu(a,9,b.$a,b.b.wm)):(a=this.context.logger,Wu(a,12,b.$a,b.b.wm)):(a=this.context.logger,Vu(a,12,b.b.wm));a.Z.Eg(4,void 0)};var haa=/#(.)(.)(.)/,gaa=/^#(?:[0-9a-f]{3}){1,2}$/i;z($v,$s);$v.prototype.A=v;$v.prototype.Ul=function(){this.A();$v.N.Ul.call(this)};
$v.prototype.ih=function(){this.A();$v.N.ih.call(this)};
$v.prototype.Ui=function(){this.A();$v.N.Ui.call(this)};
z(aw,$v);aw.prototype.A=function(){this.element.style.left=Math.round(this.g[0])+"px";this.element.style.top=Math.round(this.g[1])+"px"};z(bw,Yu);bw.prototype.jj=function(){bw.N.jj.call(this);var a=this.annotation.data;"start_ms"in a&&"end_ms"in a&&Zu(this,this.annotation.data.start_ms,this.annotation.data.end_ms,this.annotation.id,this.show,this.Kj)};z(cw,bw);cw.prototype.G=function(a,b,c,d){this.g.stop();if(!this.o){var e=Cs(a);zs(a,e.width);zs(b,e.width);os(c,e.width,e.height-Math.max(Math.min(e.height,d)/2+Math.round(10),20));this.o=!0;Fs(a,!0);this.B=new fe(function(){J(this.ma(),"iv-branding-active")},0,this);
this.B.start()}};
cw.prototype.F=function(a,b){le(this.ma(),"iv-branding-active");this.C=new fe(function(){Fs(a,!1);zs(b,0)},250);
this.C.start();this.o=!1};
cw.prototype.show=function(){if(!this.isActive){cw.N.show.call(this);if(!this.D){J(this.ma(),"iv-branding");var a=this.annotation.data;this.A=a.image_width;this.b=L("img",{src:a.image_url,"class":"branding-img iv-click-target",width:a.image_width,height:a.image_height});Fs(this.b,!1);var b=L("div","branding-img-container",this.b);this.ma().appendChild(b);var c=L("div","iv-branding-context-name");Rf(c,a.channel_name);var d=L("div","iv-branding-context-subscribe");this.annotation.o?uh(d,this.annotation.o):
a.num_subscribers&&Rf(d,a.num_subscribers);b=L("div","iv-branding-context-subscribe-caret");c=L("div","branding-context-container-inner",b,c,d);Fs(c,!1);d=L("div","branding-context-container-outer",c);is(d,"right",this.A+"px");this.ma().appendChild(d);this.vg(this.b,rw(this.annotation),this.annotation.id,this.annotation.$a);this.g=new fe(pa(this.F,c,d),500,this);this.context.b.P(this.ma(),"mouseover",x(this.G,this,c,d,b,a.image_height));this.context.b.P(this.ma(),"mouseout",x(this.g.start,this.g));
this.D=!0}Qu(this.context.logger,this.annotation.$a);Fs(this.ma(),!0);this.isActive=!0;var a=this.b,e,b=Ds(a).width,c=ga(void 0)?void 0:b;e=e||0;os(a,c);e=new aw(a,[c,a.offsetTop],[c-b-e,a.offsetTop],200,ct);this.context.b.P(e,"begin",pa(Fs,a,!0));e.play()}};
cw.prototype.Kj=function(){this.isActive&&(Fs(this.ma(),!1),this.isActive=!1)};var kaa={CLOSE:"close",aN:"openUrl",Bw:"subscribe"},laa={Sj:"click",CLOSE:"close",HIDDEN:"hidden",RN:"rollOut",uw:"rollOver",ww:"shown"};var paa={zP:"xx",AP:"xy",DP:"yx",EP:"yy"};z(mw,hw);var saa={dv:"anchored",GN:"rect",$N:"shapeless"};var waa={CLOSED:"closed",jN:"playerControlShow",uw:"rollOver",ww:"shown"};var qw={dv:"anchored",gv:"branding",CHANNEL:"channel",tK:"cta",uL:"highlightText",SL:"label",PLAYLIST:"playlist",uN:"popup",kO:"speech",Bw:"subscribe",EO:"title",VIDEO:"video",qP:"vote",tP:"website"},Aaa={gv:"branding",UJ:"card",RK:"drawer",tL:"highlight",lM:"marker",zN:"promotion",TEXT:"text",wP:"widget"},Baa={kP:"video_relative",kN:"player_relative"};pw.prototype.showLinkIcon=function(){return tw(this,function(a){return null!=a.url&&a.url.showLinkIcon})};z(zw,bw);h=zw.prototype;h.show=function(){this.isActive||(zw.N.show.call(this),this.F||(Gaa(this),this.F=!0),Fs(this.ma(),!0),this.annotation&&this.annotation.$a&&Qu(this.context.logger,this.annotation.$a),le(this.ma(),"iv-promo-inactive"),this.ma().removeAttribute("aria-hidden"),this.isActive=!0,this.b&&(ee(this.b),this.b=null),Bw(this),Cw(this,this.C))};
h.Kj=function(){this.isActive&&(J(this.ma(),"iv-promo-inactive"),this.isActive=!1,this.ma().setAttribute("aria-hidden",!0))};
h.Pi=function(a,b,c,d,e,f){return this.A?!1:zw.N.Pi.call(this,a,b,c,d,e,f)};
h.kl=function(a,b){b.stopPropagation();Bw(this);Cw(this,a);this.Ac.focus()};
h.uy=function(a){this.D=!0;this.kl(500,a)};
h.ty=function(){this.D=!1;Aw(this)};
h.mH=function(a){a.stopPropagation();this.Kj();Su(this.context.logger,this.annotation.$a)};
h.destroy=function(){this.B.dispose();zw.N.destroy.call(this)};var nA={eM:1,fM:2,gM:3};z(Dw,G);Dw.prototype.U=function(a,b,c,d){c=Qi(x(c,d||this.oa));a.addEventListener(b,c);a={target:a,name:b,hi:c};this.L.push(a);return a};
Dw.prototype.ua=function(a){for(var b=0;b<this.L.length;b++)if(this.L[b]==a){this.L.splice(b,1);a.target.removeEventListener(a.name,a.hi);break}};
Dw.prototype.T=function(){Fw(this);Dw.N.T.call(this)};var Jw=0;Nw.prototype.A=function(a,b,c,d){this.b[a]=b?!c:c;a=Sb(this.b,function(a){return a});
this.g!=a&&(this.g=a,this.o.ac(this.B,a,d))};Ow.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))};
Ow.prototype.destroy=function(){if(this.b){Pw(this);var a=this.b;Ps(a.D);a.Sl.dispose();a.G.dispose();a.g&&Hf(a.g);a.o&&a.o.ma()&&Hf(a.o.ma())}Qw(this)};
Ow.prototype.A=function(){Mx(this.b)};
Ow.prototype.C=function(){Mx(this.b)};Rw.prototype.clone=function(){return new Rw(this.start,this.end)};z(Tw,Sw);Uw.prototype.Hd=null;Uw.prototype.sc=null;Uw.prototype.rh=!0;var Iaa=[2,2,6,6,0];h=Uw.prototype;h.clear=function(){this.sa.length=0;this.ya.length=0;this.Nc.length=0;delete this.Hd;delete this.sc;delete this.rh;return this};
h.Hb=function(a){var b=Za(this.sa);if(null==b)throw Error("Path cannot start with lineTo");1!=b&&(this.sa.push(1),this.ya.push(0));for(b=0;b<arguments.length;b+=2){var c=arguments[b],d=arguments[b+1];this.Nc.push(c,d)}this.ya[this.ya.length-1]+=b/2;this.sc=[c,d]};
h.close=function(){var a=Za(this.sa);if(null==a)throw Error("Path cannot start with close");4!=a&&(this.sa.push(4),this.ya.push(1),this.sc=this.Hd);return this};
h.clone=function(){var a=new this.constructor;a.sa=this.sa.concat();a.ya=this.ya.concat();a.Nc=this.Nc.concat();a.Hd=this.Hd&&this.Hd.concat();a.sc=this.sc&&this.sc.concat();a.rh=this.rh;return a};
h.transform=function(a){if(!this.rh)throw Error("Non-simple path");a.transform(this.Nc,0,this.Nc,0,this.Nc.length/2);this.Hd&&a.transform(this.Hd,0,this.Hd,0,1);this.sc&&this.Hd!=this.sc&&a.transform(this.sc,0,this.sc,0,1);return this};
h.isEmpty=function(){return 0==this.sa.length};z(Xw,Sw);Yw.prototype.ib=function(){return this.o};ba(Zw);Zw.prototype.b=0;z($w,hd);h=$w.prototype;h.pz=Zw.getInstance();h.getId=function(){return this.xa||(this.xa=":"+(this.pz.b++).toString(36))};
h.ma=function(){return this.b};
h.ug=function(a){if(this.A&&this.A!=a)throw Error("Method not supported");$w.N.ug.call(this,a)};
h.Bi=function(){this.b=this.G.createElement("DIV")};
h.Mf=function(){this.pd=!0;bx(this,function(a){!a.pd&&a.ma()&&a.Mf()})};
h.Ug=function(){bx(this,function(a){a.pd&&a.Ug()});
this.C&&Hm(this.C);this.pd=!1};
h.T=function(){this.pd&&this.Ug();this.C&&(this.C.dispose(),delete this.C);bx(this,function(a){a.dispose()});
this.b&&Hf(this.b);this.A=this.b=this.D=this.K=null;$w.N.T.call(this)};
h.uc=function(){return this.b};
h.removeChild=function(a,b){if(a){var c=w(a)?a:a.getId();a=this.D&&c?ec(this.D,c)||null:null;if(c&&a){dc(this.D,c);ob(this.K,a);b&&(a.Ug(),a.b&&Hf(a.b));c=a;if(null==c)throw Error("Unable to set parent component");c.A=null;$w.N.ug.call(c,null)}}if(!a)throw Error("Child is not in parent component");return a};z(cx,$w);cx.prototype.B=null;cx.prototype.Tf=function(){return this.pd?Cs(this.ma()):ga(this.width)&&ga(this.height)?new gf(this.width,this.height):null};
cx.prototype.resume=function(){};z(dx,hd);h=dx.prototype;h.al=null;h.Zg=null;h.ma=function(){return this.Zg};
h.addEventListener=function(a,b,c,d){Rc(this.Zg,a,b,c,d)};
h.removeEventListener=function(a,b,c,d){bd(this.Zg,a,b,c,d)};
h.T=function(){dx.N.T.call(this);var a=this.Zg;if(a)if(Gc(a))a.hd&&Pc(a.hd);else if(a=Uc(a)){var b=0,c;for(c in a.b)for(var d=a.b[c].concat(),e=0;e<d.length;++e)cd(d[e])&&++b}};z(gx,dx);gx.prototype.fill=null;z(hx,dx);z(ix,gx);z(jx,hx);jx.prototype.clear=function(){Ff(this.ma())};
jx.prototype.setSize=function(a,b){mx(this.ma(),{width:a,height:b})};
z(kx,ix);var ox;z(lx,cx);var Maa=0;h=lx.prototype;h.Bi=function(){var a=ex(this,"svg",{width:this.width,height:this.height,overflow:"hidden"}),b=ex(this,"g");this.F=ex(this,"defs");this.B=new jx(b,this);a.appendChild(this.F);a.appendChild(b);this.b=a;this.o&&(this.ma().setAttribute("preserveAspectRatio","none"),this.M?this.qj():this.ma().setAttribute("viewBox","0 0 "+(this.o?this.o+" "+this.L:"")))};
h.qj=function(){if(this.pd){var a=this.Tf();if(0==a.width)this.ma().style.visibility="hidden";else{this.ma().style.visibility="";var b=a.width/this.o,a=a.height/this.L;this.B.ma().setAttribute("transform","scale("+b+" "+a+") translate(0 0)")}}};
h.setSize=function(a,b){As(this.ma(),a,b)};
h.Tf=function(){if(!fs)return this.pd?Cs(this.ma()):lx.N.Tf.call(this);var a=this.width,b=this.height,c=w(a)&&-1!=a.indexOf("%"),d=w(b)&&-1!=b.indexOf("%");if(!this.pd&&(c||d))return null;var e,f;c&&(e=this.ma().parentNode,f=Cs(e),a=(0,window.parseFloat)(a)*f.width/100);d&&(e=e||this.ma().parentNode,f=f||Cs(e),b=(0,window.parseFloat)(b)*f.height/100);return new gf(a,b)};
h.clear=function(){this.B.clear();Ff(this.F);this.g={}};
h.Mf=function(){var a=this.Tf();lx.N.Mf.call(this);a||this.dispatchEvent("resize");if(this.M){var a=this.width,b=this.height;"string"==typeof a&&-1!=a.indexOf("%")&&"string"==typeof b&&-1!=b.indexOf("%")&&this.H.P(px(),"tick",this.qj);this.qj()}};
h.Ug=function(){lx.N.Ug.call(this);this.M&&this.H.ua(px(),"tick",this.qj)};
h.T=function(){delete this.g;delete this.F;delete this.B;this.H.dispose();delete this.H;lx.N.T.call(this)};qx.prototype.ma=function(){return this.B};
qx.prototype.o=function(){};var vx={bevel:1,dropshadow:2};z(Ax,qx);
Ax.prototype.o=function(a,b){var c=xw(a);if(c){var d=kw(c,b);if(!(0>=d.width||0>=d.height)){var e;if(e=(c=(c=ww(a))&&c.b?c.b:null)&&c.length?c[0]:null){var f=pg(jw(b,gw(e,new lg(e.F,e.G,e.B,e.o),b.b))),k=d.clone(),c=new lg(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=yx(k,c.effects),l=rx(this,k.width,k.height),m=xx(c,k.width,k.height,this.b),
d=new lg(d.left-k.left,d.top-k.top,d.width,d.height),n=new ef(f.x-k.left,f.y-k.top);this.A=17*fw(b.b,e.g,e.b?e.b:"xy");e=c.o;var f=a.b,t=this.b&&uw(a),u=t?f.b+1:f.b,t=(f=u?new Yw(u,t?f.A:f.C):null)?f.ib()/2:0,u=Taa(d,n),y=this.C(d,e,n,u),D=n.x,n=n.y,A=d.width,Q=d.height,I=d.left,d=d.top,P=new Uw;Vw(P,I+e+t,d+t);"t"==u&&(P.Hb(y.start,d+t),P.Hb(D,n),P.Hb(y.end,d+t));P.Hb(I+A-e-t,d+t);Ww(P,e,e,-90);"r"==u&&(P.Hb(I+A-t,y.start),P.Hb(D,n),P.Hb(I+A-t,y.end));P.Hb(I+A-t,d+Q-e-t);Ww(P,e,e,0);"b"==u&&(P.Hb(y.end,
d+Q-t),P.Hb(D,n),P.Hb(y.start,d+Q-t));P.Hb(I+e+t,d+Q-t);Ww(P,e,e,90);"l"==u&&(P.Hb(I+t,y.end),P.Hb(D,n),P.Hb(I+t,y.start));P.Hb(I+t,d+e+t);Ww(P,e,e,180);P.close();nx(l,P,f,m);if(m=this.ma())J(m,"annotation-shape"),J(m,"annotation-speech-shape"),os(m,k.left,k.top),As(m,k.width,k.height),zx(l,m,c.effects)}}}};
Ax.prototype.C=function(a,b,c,d){function e(a,c,d,e){a=Math.min(Math.max(e-2*b,0),a);c=$e(c-a/2,d+b,d+e-a-b);return new Rw(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 Rw(0,0)};z(Bx,qx);Bx.prototype.o=function(a,b){var c=xw(a);if(c){var d=kw(c,b);if(!(0>=d.width||0>=d.height)){var e=a.b,c=yx(d,e.effects),f=rx(this,c.width,c.height),k=new lg(0,0,d.width,d.height),l=e.o,d=new Yw(!e.B&&this.b?1:e.B,e.bgColor),m=new Xw("#000",0),n=d?d.ib()/2+1:0,k=wx(k,l,n);nx(f,k,d,m);f=this.ma();J(f,"annotation-shape");e=e.g;Es(f,this.b?Math.max(e,.9):e);os(f,c.left,c.top);As(f,c.width,c.height)}}};z(Cx,qx);Cx.prototype.o=function(a,b){var c=xw(a);if(c){var d=kw(c,b);if(!(0>=d.width||0>=d.height)){var c=a.b,e=yx(d,c.effects),f=rx(this,e.width,e.height),k=xx(c,d.width,d.height,this.b),d=new lg(0,0,d.width,d.height),l=c.o,m=a.b,n=this.b&&uw(a),t=n?m.b+1:m.b,n=(m=t?new Yw(t,n?m.A:m.C):null)?m.ib()/2+1:0,d=wx(d,l,n);nx(f,d,m,k);if(k=this.ma())J(k,"annotation-shape"),J(k,"annotation-popup-shape"),os(k,e.left,e.top),As(k,e.width,e.height),zx(f,k,c.effects)}}};z(Dx,Ax);Dx.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 Rw(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 Rw(0,0)};h=Fx.prototype;h.$t=function(){this.M||(this.A&&Fs(this.A,!0),this.B&&Fs(this.B,!0),this.o&&(this.o.b=!0,Es(this.g,Nx(this)?1:0),this.o.o(this.b,Hx(this))),this.G.isActive()&&this.G.stop(),this.M=!0,this.H=Ns(this.D,Jx(this.C),function(a){this.Sl.stop();this.Ne(a)}))};
h.Ne=function(){this.M&&(this.O?this.G.start():this.Bp(),this.o&&(this.o.b=!1,Es(this.g,Nx(this)?1:0),this.o.o(this.b,Hx(this))),this.M=!1,this.H&&(this.D.ua(this.H),this.H=null))};
h.Bp=function(){this.A&&Fs(this.A,!1);this.B&&Fs(this.B,!1)};
h.AC=function(a){this.$=a;this.Sl.Uf()};
h.ry=function(){var a=this.$,b=new ef(a.clientX,a.clientY),c=ts(this.C.Ea()),d=Ox(c,this.L),c=(this.B&&Gs(this.B)||this.A&&Gs(this.A))&&Ox(c,this.O);d&&d.contains(b)||c&&c.contains(b)?this.$t():this.Ne(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=Hx(this),e=null;"highlight"==this.b.type||"label"==this.b.style?e=new Bx:"popup"==this.b.style?e=new Cx:"anchored"==this.b.style?e=new Ax:"speech"==this.b.style&&(e=new Dx);e&&(e.o(this.b,d),this.o=e,d=e.ma())&&(Fs(d,!1),J(d,"annotation-type-"+this.b.type.toLowerCase()),this.ba(d))}if(b){d=["annotation"];"highlightText"!=this.b.style||d.push("annotation-no-mouse");
d.push("annotation-type-"+this.b.type.toLowerCase());this.g=L("div",d);Fs(this.g,!1);this.b.B&&(this.F=L("div","inner-text"),"label"==this.b.style&&(J(this.F,"label-text"),this.F.style.backgroundColor=this.b.b.bgColor),Rf(this.F,this.b.B),this.g.appendChild(this.F));Ji(this.g,"annotation_id",this.b.id);this.ba(this.g);Uaa(this,this.g);if(uw(this.b)&&this.b.showLinkIcon()){if(e=rw(this.b))d=this.g,e=new M(Ht(e)),d.title=e.g+e.o;this.B=L("span","annotation-link-icon");Fs(this.B,!1);this.g.appendChild(this.B)}Vaa(this);
uw(this.b)||(this.g.style.cursor="default")}c&&("subscribe"==this.b.style?qf("yt-uix-subscription-button",this.g)||uh(this.g,this.b.o):this.b.o&&uh(this.g,this.b.o));if(a||b){a:{a=this.b.g.b;if(a.length&&(a=nw(a[0]))){a=a.H;break a}a=0}this.g&&(this.g.style.zIndex=a);this.o&&this.o.ma()&&(this.o.ma().style.zIndex=a)}Fs(this.g,!0);Es(this.g,Nx(this)?1:0);Mx(this);this.o&&this.o.ma()&&Fs(this.o.ma(),!0)};z(Px,dq);Px.C="AnnotationsModule";var Waa={EJ:"video-annotations",uv:"video-custom-annotations",Tv:"video-legacy-annotations"};Px.A=function(a){switch(a.type){case "branding":case "promotion":return!0}return!1};
Px.B=function(a){return"card"==a.type||"drawer"==a.type};
Px.o=function(a){return Px.xb(a)?new Px(a):null};
Px.xb=function(a){var b=T(a);return"leanback"==b.b?!1:!b.ba.isEmpty()||Px.b(b.g)?!0:Xr(a.getVideoData(),"iv3_module")};
Px.g=function(){var a=L("div",["annotation","annotation-type-custom"]);Fs(a,!1);return a};
Px.b=function(a){switch(a){case "annotation-editor":case "live-dashboard":return!0}return!1};
h=Px.prototype;h.te=function(a,b){if(!Px.b(T(this.b).g))return null;switch(a){case "loadCustomAnnotationsXml":var c=cs(b);c&&Tx(this,c);return!0;case "removeCustomAnnotationById":return b&&this.g&&(Sv(this.g,b),Uv(this.b)),!0}return null};
h.Df=function(){return Px.b(T(this.b).g)?["loadCustomAnnotationsXml","removeCustomAnnotationById"]:[]};
h.xb=function(){return Px.xb(this.b)};
h.create=function(){Px.N.create.call(this);this.B.U(this.b,"onVideoAreaChange",x(this.Y,this,"onVideoAreaChange"));this.B.U(this.b,"onHideControls",x(this.Y,this,"onHideControls"));this.B.U(this.b,"onShowControls",x(this.Y,this,"onShowControls"));this.B.U(this.b,"resize",x(this.Y,this,"resize"));this.B.U(this.b,"presentingplayerstatechange",x(this.Y,this,"presentingplayerstatechange"));this.C=new S(["div",["ytp-player-content","ytp-iv-player-content"]]);Qv(this.b,this.C.element,4);this.A=new S(["div",
["ytp-iv-video-content"]]);this.A.element.appendChild(L("DIV","video-annotations",this.S,this.ba));var a=T(this.b),b=this.b.getVideoData();1!=(a.Yd||b.Ad)&&null===a.ba.get(b.videoId)||this.load()};
h.destroy=function(){Fw(this.B);le(this.b.Ea(),"ytp-iv-drawer-open");this.C.detach();this.C.dispose();this.A.dispose();Px.N.destroy.call(this)};
h.sr=function(){if(this.A){var a=Ix(Jx(this.b),!0);As(this.A.element,a.width,a.height);os(this.A.element,a.left,a.top)}};
h.cD=function(a){R(a.state,2)&&($x(this)&&ay(this)&&2!=this.b.getPresentingPlayerType()&&by(this,!1),cy(this,!1))};
h.load=function(){Px.N.load.call(this);this.K++;var a=this.b.getVideoData(),b=a.videoId,c=x(this.XB,this,b,this.K);Gw()&&(c=Ux(this,c));c={format:"XML",zc:c,wd:{}};a.isPharma&&(c.wd.pharma="1");c.method="POST";c.withCredentials=!0;var d=T(this.b);"gaming"==d.g&&(c.wd.gaming="1");(b=d.ba.remove(b))&&Vx(c,b);a.Gf&&(b=b&&b.hf,a.Wo&&!b||Zj(a.Gf,c));Qv(this.b,this.A.element,4);this.sr()};
h.unload=function(){Uu(this.G,{"iv-event":1});fq(this);Ob(this.o,function(a){a.destroy()});
Ob(this.L,function(a){a.destroy()});
this.H=null;this.g&&(this.g.destroy(),this.g=null,Uv(this.b));this.o={};this.L={};Px.N.unload.call(this);this.A.detach()};
h.XB=function(a,b,c){if(!Rx(this,b,a)&&(a=Uj(c)&&c.responseXML?c.responseXML:null)){Tx(this,a);J(this.b.Ea(),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 aq(c,e,f);a.push(b)}}this.tb(a)}};
h.eE=function(a){this.D&&a==this.b.getVideoData().videoId&&(this.loaded?$aa(this):this.load())};
h.Xc=function(a){Px.N.Xc.call(this,a);a=a.getId();var b=this.o[a];b&&!b.B&&(b=b.annotation,Wx(this,a),Qu(this.G,b.$a))};
h.rd=function(a){Px.N.rd.call(this,a);Xx(this,a.getId())};
h.Ap=function(a){if(a){a.isVisible=!1;if(a.b){Pw(a);var b=a.b;b.g&&Fs(b.g,!1);b.o&&b.o.ma()&&Fs(b.o.ma(),!1);b.K&&(b.D.ua(b.K),b.K=null)}Zx(this,"shown",!1,a.annotation.id);this.ni(a.annotation,"hidden")}};
h.Ds=function(a){a&&(a.show(),Zx(this,"shown",!0,a.annotation.id),this.ni(a.annotation,"shown"))};
h.aE=function(a,b,c){var d=this.o[a];if(d&&b.value!=c){b.value=c;var e=!1;vw(d.annotation,function(a){e|=a.value});
bba(this,a,b,e)}};
h.OA=function(a){if(a&&a.id){var b=rw(a);if(b){var c=Ht(b);if(c){var d=x(this.ni,this,a,"click"),e=this.b.getVideoData();if("new"==Ot(c,b.target)||Yx(this,b,e.videoId))d(),d=null;Ru(this.G,a.$a,d)}}}};
h.ni=function(a,b){Eaa(a,function(c){if(c.b==b&&"openUrl"==c.type){var d=this.b.getVideoData(),e;if(!(e=!Yx(this,c.url,d.videoId))){e=Lt(c.url);var f=Kt(c.url);if(e){if(d.videoId==e)this.b.seekTo(f||0);else{var k=Sx(this).g;J9(k.app,e,void 0,void 0,void 0);f&&lJ(Sx(this).g)&&Sx(this).g.seekTo(f)}e=!0}else e=!1;e=!e}e&&(d=Nt(c.url,a.id,d.videoId,T(this.b)))&&(this.b.pauseVideo(),e=Ot(d,c.url.target),c=d,d="current"==e?"_top":void 0,e=Oj(c),f=null,"ei"in e&&(f={ei:e.ei},c=Yg(c,"ei")),Uq(c,f),Vq(c,d))}},
this)};
h.fC=function(){Zx(this,"playerControlShow",!1)};
h.FD=function(){Zx(this,"playerControlShow",!0)};
h.aH=function(a){Zx(this,"rollOver",!0,a.id)};
h.Ne=function(a){Zx(this,"rollOver",!1,a.id)};
h.rB=function(a){if(a||a.id)this.o[a.id].B=!0,Xx(this,a.id),a&&(Su(this.G,a.$a),this.ni(a,"close")),Zx(this,"closed",!0,a.id)};
h.T=function(){for(var a=this.O,b=0,c=a.length;b<c;b++)Iw(a[b]);this.O.length=0;Px.N.T.call(this)};var iB=/^#(?:[0-9a-f]{3}){1,2}$/i,OB="default monoSerif propSerif monoSans propSans casual cursive smallCaps".split(" "),NB=["none","raised","depressed","uniform","dropShadow"],ita=["left","right","center"],GB={windowColor:"#080808",Bg:0,textAlign:2,ai:7,Oi:50,pj:100,La:{background:"#080808",fd:.75,be:0,color:"#fff",fontFamily:4,Nf:0,Pe: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%"}],i6=[{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%"}]}];kc("A AREA BUTTON HEAD INPUT LINK MENU META OPTGROUP OPTION PROGRESS STYLE SELECT SOURCE TEXTAREA TITLE TRACK".split(" "));var ey={sv:function(a,b){var c=a[0];a[0]=a[b%a.length];a[b]=c},
Hh:function(a){a.reverse()},
PE:function(a,b){a.splice(0,b)}};var LH=iy("auto","large",!1),ky=iy("auto","auto",!1);gy.prototype.isLocked=function(){return this.o&&!!this.g&&this.g==this.b};
gy.prototype.A=function(a){if(!a.video)return!1;a=hy[a.video.quality];return this.g<=a&&(!this.b||this.b>=a)};z(ny,nk);ny.prototype.remove=function(a){var b=this.get(a);delete this.b[a];return b};
ny.prototype.get=function(a){return this.b[a]||null};
ny.prototype.isEmpty=function(){return bc(this.b)};var Jz,kA;var t$=sc,t$=t$.toLowerCase();if(-1!=t$.indexOf("android")){var u$=t$.match(/android\D*(\d\.\d)[^\;|\)]*[\;\)]/);if(u$)Jz=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("("+Xb(v$).join("|")+")");Jz=w$?v$[w$[0]]:0}}else Jz=void 0;kA=0<=Jz;var h5,eba=['video/mp4; codecs="avc1.42001E, mp4a.40.2"','video/webm; codecs="vp8.0, vorbis"'],fba=['audio/mp4; codecs="mp4a.40.2"'];z(zy,G);h=zy.prototype;h.$o=function(a,b){this.b.paused||this.getCurrentTime()>a||10<b||(this.play(),Ri(x(this.$o,this,this.getCurrentTime(),b+1),500))};
h.seekTo=function(a){0<this.b.readyState&&(Ey&&4>Fy&&(a=Math.max(.1,a)),this.b.currentTime=a)};
h.addEventListener=function(a,b,c,d){this.A.P(a,b,!1,d);this.o[a]||(b=x(this.OH,this),this.b.addEventListener(a,b),this.o[a]=b)};
h.removeEventListener=function(a,b,c,d){this.A.ua(a,b,!1,d)};
h.dispatchEvent=function(a){return this.A.dispatchEvent(a)};
h.Lo=function(){this.B&&!this.b.muted&&(this.b.muted=!0)};
h.T=function(){this.C&&this.removeEventListener("volumechange",this.Lo,!1,this);zy.N.T.call(this)};Ny.prototype.preventDefault=function(){this.b&&this.b.preventDefault()};
Ny.prototype.stopPropagation=function(){this.b&&this.b.stopPropagation()};z(Oy,zy);h=Oy.prototype;h.ma=function(){return this.b};
h.canPlayType=function(a,b){return this.b.canPlayType(a,b)};
h.getCurrentTime=function(){return this.b.currentTime};
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()&&Vi(a)})};
h.vb=function(){return this.b.error?this.b.error.code:null};
h.setSize=function(a){return As(this.b,a)};
h.setVolume=function(a){this.b.volume=a};
h.OH=function(a){this.dispatchEvent(new Ny(this,a.type,a))};
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.getStyle=function(a){return ks(this.b,a)};
h.T=function(){for(var a in this.o)this.b.removeEventListener(a,this.o[a]);Oy.N.T.call(this)};var gba=/^([0-9\.]+)\:([0-9\.]+)$/;var $y=E().toString();dz.prototype.then=function(a,b,c){try{if(p(this.g))return a?Hd(a.call(c,this.g)):Hd(this.g);if(p(this.b)){if(!b)return Id(this.b);var d=b.call(c,this.b);return!p(d)&&this.b instanceof Xd?Id(this.b):Hd(d)}throw Error("Invalid Result_ state");}catch(e){return Id(e)}};
Ad(dz);var gz={format:"RAW",method:"GET",timeout:5E3,withCredentials:!0},ez=null;var Cba={HN:"red",vP:"white",LJ:"blue"};mz.prototype.aa=function(a){return"true"==this.flags[a]};
mz.prototype.b=function(a){return(0,window.parseFloat)(this.flags[a])};
mz.prototype.F=function(a){return this.flags[a]?this.flags[a].toString():""};var Yba={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 Pz={name:"width",video:!0,valid:640,fg:99999},Qz={name:"height",video:!0,valid:360,fg:99999},Rz={name:"framerate",video:!0,valid:30,fg:9999},Tz={name:"bitrate",video:!0,valid:3E5,fg:2E9},Sz={name:"eotf",video:!0,valid:"bt709",fg:"catavision"},Uz={name:"channels",video:!1,valid:2,fg:99},Vz={Yh:Pz,Sh:Qz,o:Rz,wn:Tz,g:Sz,b:Uz};nz.prototype.toString=function(){return this.languageCode+"_"+this.languageName+"_"+this.b+"_"+this.id+"_"+this.isDefault};oz.prototype.toString=function(){return this.g+": "+pz(this)+" - "+this.D};
oz.prototype.H=function(a){return a?this.toString()==a.toString():!1};rz.prototype.b=function(){return this.Vb};
rz.prototype.toString=function(){return this.Vb.name};
rz.prototype.getLanguageInfo=rz.prototype.b;var iba=function(){if(Zz)return tz(/Firefox\/([0-9.]+)/);if(vf||HD||Cc)return xc;if($l)return tz(/Chrome\/([0-9.]+)/);if(lz&&!(vc()||tc("iPad")||tc("iPod")))return tz(/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=tz(/Android\s+([0-9.]+)/))?a:tz(/Version\/([0-9.]+)/);return""}();vz.prototype.start=function(){return 0};
vz.prototype.end=function(){return window.Infinity};
vz.prototype.length=1;h=wz.prototype;h.addEventListener=function(){};
h.removeEventListener=function(){};
h.dispatchEvent=function(){};
h.abort=function(){};
h.remove=function(){};
h.appendBuffer=function(){};xz.prototype.dispose=function(){if(!this.o){if(this.b)try{window.URL.revokeObjectURL(this.A)}catch(a){}this.o=!0}};
xz.prototype.isDisposed=function(){return this.o};h=yz.prototype;h.append=function(a){this.g.webkitSourceAppend(this.o,a)};
h.abort=function(){this.g.webkitSourceAbort(this.o)};
h.EF=function(){return this.g.webkitSourceState==this.g.SOURCE_CLOSED?new jba:this.g.webkitSourceBuffered(this.o)};
h.GF=function(){return this.A};
h.KF=function(a){this.A=a;this.g.webkitSourceTimestampOffset(this.o,a)};h=zz.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.UH=function(){return this.b.webkitMediaSourceURL};
h.addSourceBuffer=function(a){var b=(this.o++).toString();this.b.webkitSourceAddId(b,a);a=new yz(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.HF=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.IF=function(){jb(this.sourceBuffers)};
h.FF=function(){return this.g};
h.JF=function(a){this.g=a;this.b.webkitSourceSetDuration&&this.b.webkitSourceSetDuration(a)};z(Az,Dw);Az.prototype.H=function(){if(!this.isDisposed()&&Bz(this)&&!(0,window.isNaN)(this.A)){this.o.duration=this.A;this.A=window.NaN;try{this.b=this.o.addSourceBuffer(this.F),this.M?this.g=this.o.addSourceBuffer(this.K):this.g=new wz,this.B&&(this.B(this),this.B=null)}catch(a){this.C&&this.C(a)}}};
Az.prototype.G=function(){this.dispose()};var oba={52:!0,53:!0,54:!0,55:!0,60:!0,79:!0,87:!0};Iz.prototype.g=function(){return null};var tba="9h 9 h 8 ( H *".split(" "),$z="h98H(*".split(""),vba="oMavAV".split(""),yba=["sa"],xba="moMavAV".split(""),wba="aoMvAV".split(""),uba=["f"],qba={'video/mp4; codecs="avc1.42001E, mp4a.40.2"':"maybe"},rba={"application/x-mpegURL":"maybe"},pba={"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={NJ:"cbrand",OJ:"cbr",PJ:"cbrver",KL:"c",NL:"cver",ML:"ctheme",LL:"cplayer",oM:"cmodel",TM:"cnetwork",cN:"cos",dN:"cosver",iN:"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.$+"://"+c+"/watch",b.v=a,Jy&&(a=r("yt.www.ads.biscotti.lastId_")||"")&&(b.ebc=a));return Sg(d,b)};
qA.prototype.isAd=function(){return"adunit"==this.b};
qA.prototype.T=function(){this.H=null;qA.N.T.call(this)};z(GA,S);h=GA.prototype;h.Fb=function(){return this.type};
h.Se=function(a,b,c,d,e,f){var k=b.La;if(!this.b||f)e=e||this.o,LA(this),this.b={},qa(this.b,a),qa(this.b,this.A.params),qa(this.b,b),f={},qa(f,a.La),this.A.params.La&&qa(f,this.A.params.La),b.La&&qa(f,b.La),this.b.La=f,this.K=d/360*16,this.F=this.K*HA(f),a="",this.b.Bg&&(a=Zv(this.b.windowColor),a="rgba("+a[0]+","+a[1]+","+a[2]+","+this.b.Bg+")"),b={"background-color":a,display:!1===this.b.isVisible?"none":"","text-align":ita[this.b.textAlign]},this.$&&(b["border-radius"]=a?this.F/8+"px":""),is(this.element,
b),this.element.setAttribute("dir",1==this.b.xg?"rtl":"ltr");this.ph(e,c,k)};
h.ph=function(a,b,c){var d=this.b.ai,e=!1,f=!1;switch(d){case 0:case 1:case 2:e=!0;break;case 6:case 7:case 8:f=!0}K(this.element,"ytp-caption-window-top",e);K(this.element,"ytp-caption-window-bottom",f);f=this.hp();e=this.gp();b*=.96;f>b&&(f=b);is(this.element,{top:0,left:0,right:"",bottom:"",width:f?f+"px":"96%",height:e?e+"px":"96%",margin:"",transform:""});this.qk(a,c);a={transform:"",top:"",left:""};f||(a.width="");e||(a.height="");c=.96*this.b.Oi+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.pj+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+"%"}is(this.element,a)};
h.qk=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,LA(this);for(;c<a.length;c++){var d=a[c],e={};qa(e,this.b.La);qa(e,d.g);b&&qa(e,b);KA(this,d,e)}};
h.hp=function(){return 0};
h.gp=function(){return 0};z(PA,G);h=PA.prototype;h.fp=function(a){var b=this.b.g,c=MA(this.b,!0);a&&0>b&&0<c.length&&(b=0);return 0>b?null:c[b]};
h.Fe=function(){return null};
h.seek=function(){};
h.ym=function(){};
h.T=function(){PA.N.T.call(this);this.ym()};z(QA,PA);h=QA.prototype;h.Ol=function(a,b){this.isDisposed();var c=this.Yg(a),d=x(function(c){this.o=null;b(c.responseText,a)},this);
this.o&&this.o.abort();this.o=Zj(c,{format:"RAW",fb:d,withCredentials:!0});this.g&&this.g.si!=a&&(this.g.Jk=a)};
h.Pl=function(a,b,c,d){this.A=c;if(this.g=d||null)for(b=0;b<this.g.captionTracks.length;b++)OA(this.b,this.g.captionTracks[b]);a()};
h.Yg=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 Qj(b,c)};
h.Fe=function(){return this.g?this.g.si:null};
h.fp=function(){return this.g?this.g.Jk:null};
h.T=function(){this.o&&this.o.abort();QA.N.T.call(this)};RA.prototype.contains=function(a){a=zb(this.sa,a);return 0<=a||0>a&&1==(-a-1)%2};
RA.prototype.length=function(){return this.sa.length/2};z(SA,G);SA.prototype.T=function(){Ui(this.g);this.g=window.NaN;this.o=!0;this.A&&this.A.abort()};
SA.prototype.resume=function(){this.o=!1;Ui(this.g);this.seek(this.F.getCurrentTime());Lba(this)};
SA.prototype.seek=function(a){this.b=Za(this.G.Xg(a).b)};
SA.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(YA,PA);h=YA.prototype;h.Ol=function(a,b){Kba(this.g,function(c,d){b(c,a,d)});
this.g.G=this.o.b[a.g];this.g.resume()};
h.Pl=function(a){OA(this.b,new oz({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.ym=function(){var a=this.g;Ui(a.g);a.g=window.NaN;a.o=!0};
h.Yg=function(){return""};
h.T=function(){this.g.dispose();YA.N.T.call(this)};z(ZA,GA);var jta={pl:!0};ZA.prototype.qk=function(a,b){var c,d=this.A.Ff;ZA.N.qk.call(this,a,b);var e,f;for(c=a.length;c<d.length;c++){var k=d[c];f&&k.g==e||(f={},qa(f,this.b.La),qa(f,k.g),b&&qa(f,b),qa(f,jta));KA(this,k,f,!0);e=k.g}};z($A,GA);h=$A.prototype;h.vD=function(){le(this.element,"ytp-rollup-mode");var a=this.M||this.o,b=this.S;this.M=null;this.ph(a,b,this.O)};
h.hp=function(){var a=this.A.params.No;if(!this.H&&a){var b=window.document.createElement("span");Rf(b,"\u00a0"+Ka("\u2014",a)+"\u00a0");is(b,IA(this,this.b.La));this.B.appendChild(b);this.H=b.offsetWidth;this.B.removeChild(b)}return this.H};
h.Se=function(a,b,c,d,e,f){f&&(this.H=window.NaN);$A.N.Se.call(this,a,b,c,d,e,f)};
h.gp=function(){return 1.32*this.A.params.nh*this.F};
h.ph=function(a,b,c){this.O=c;this.S=b;for(var d=0,e=0;d<this.o.length&&e<a.length;d++)this.o[d]==a[e]&&e++;var f=JA(a),k=!1,d=0;if(0<e&&e<a.length){var e=this.o.concat(a.slice(e)),l=JA(e)-f;0<l&&(this.M=a,a=e,d-=l,k=!0)}f<this.A.params.nh&&(k=!0,d+=this.A.params.nh-f);!(0,window.isNaN)(this.L)&&k&&(J(this.element,"ytp-rollup-mode"),this.ca.start());d!=this.L&&(f="",d&&(f="translateY("+Math.ceil(1.32*d*this.F)+"px)"),is(this.B,"transform",f),this.L=d);$A.N.ph.call(this,a,b,c)};z(aB,aq);z(bB,aq);z(dB,PA);dB.prototype.Ol=function(a,b){this.isDisposed();var c=this.Yg(a),d=x(function(c){this.g=null;b(c.responseText,a)},this);
this.g&&this.g.abort();this.g=Zj(c,{format:"RAW",fb:d,withCredentials:!0});Gba(this.b,a)};
dB.prototype.Pl=function(a,b,c){var d=this.o;b={type:"list",tlangs:1,v:this.A,fmts:Number(b||!1),vssids:1};this.aq&&(b.asrs=1);d=Qj(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"),D=k[m].getAttribute("name"),A=k[m].getAttribute("kind"),Q=k[m].getAttribute("id"),I="true"==k[m].getAttribute("lang_default"),
P="true"==k[m].getAttribute("cantran"),ab=k[m].getAttribute("vss_id");OA(d,new oz({formats:n,format:t,languageCode:u,languageName:y,name:D,kind:A,id:Q,is_servable:!0,is_default:I,is_translateable:P,vss_id:ab}))}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 nz(l))}a()},this);
this.g&&this.g.abort();this.g=Zj(d,{format:"RAW",fb:b,withCredentials:!0})};
dB.prototype.Yg=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=Qj(b,c)};
dB.prototype.T=function(){this.g&&this.g.abort();dB.N.T.call(this)};z(gB,eB);z(jB,eB);z(rB,eB);z(vB,eB);var Pba=0,Nba=/^NOTE/,Mba=/(?:\r\n|\r|\n){2,}/,sB=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"),Oba=/<((?:[\d]{2}:)?[\d]{2}:[\d]{2}\.[\d]{3})>/;z(yB,dq);h=yB.prototype;h.create=function(){yB.N.create.call(this);this.B=this.b.getVideoData();xB(this)||this.ba.U(this.b,"resize",this.Ns);this.ba.U(this.b,"onPlaybackAudioChange",this.YA);var a=kq(this,"display-settings")||{};if(a.migrated)HB(this,a);else{fc(a,kta)&&(a={});for(var b in a)a[b+"Override"]=!0;HB(this,a,!0)}AB(this)&&this.load()};
h.destroy=function(){Fw(this.ba);yB.N.destroy.call(this)};
h.load=function(){this.ka="1"==this.B.A.cc_auto_caps||"1"==this.W.G.cc_auto_caps;yB.N.load.call(this);if(this.B.za)this.o=new YA(this.B.b,this.b),this.ea=this.ba.U(this.b,"seekto",this.bH);else{var a=this.B.Tn||this.W.rb||this.B.Kd("yt:cc_default_lang")||this.W.oa,a=a&&a.split("_").join("-");this.B.captionTracks.length?this.o=new QA(this.B):this.o=new dB(this.B.gc,this.B.videoId,a,this.B.Tb)}CB(this)};
h.unload=function(){this.F&&(FB(this),this.bm("control_subtitles_set_track"));if(xB(this))for(var a=of("track",void 0,this.K.b),b=0;b<a.length;b++)Hf(a[b]);else MB(this,!1),BB(this),this.ea&&this.ba.ua(this.ea),this.o.dispose(),this.o=null;this.L=this.da=!1;yB.N.unload.call(this)};
h.Ar=function(){if(xB(this))for(var a=MA(this.o.b,!0),b=0;b<a.length;b++){var c=a[b],d={kind:"subtitles",label:pz(c),srclang:c.g,src:this.o.Yg(c)};c.isDefault&&(d["default"]=1);for(var c=this.Z.app.o,d=[L("TRACK",d)],e=0;e<d.length;e++)c.b.appendChild(d[e])}else if(c=this.L||zB(this,!this.da),a=MA(this.o.b,!0),0<a.length){this.da=!0;b=this.g&&-1!=a.indexOf(this.g);if(c&&!b)if(c=this.o.fp(),!c&&this.L&&(c=a[0]),c)this.ga=!0,DB(this,c),b=!0;else if(a=this.o.b.o,a.length&&(a=a[0].toString(),this.L||
this.ka))a=Hba(this.o,a),DB(this,a,void 0),b=!0;this.b.Aa("onCaptionsTrackListChanged");b||EB(this)}else if(this.o.Fe())EB(this);else if(a=iq(this.b),b=$I(a,this.Ma))ob(a.b,b),b.destroy()};
h.Br=function(a,b,c){if(a&&b==this.g){a=Rba(a,b,c);this.ga&&(this.ga=!1,this.b.Aa("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.Fe()){if(this.L&&!BA(this.W)&&"WEB_UNPLUGGED"!=this.W.o.c){this.H||(b=cB({ai:0,Oi:5,pj:5,nh:2,textAlign:0,xg:0}),this.H=new GA(b));Qv(this.b,this.H.element,4);c=O("YTP_CLICK_FOR_SETTINGS").split("$GEAR_ICON");var d;b=new Hq(Ih());H(this.H,b);d=b.element;
b=this.H.A.id;c=[new aB(0,0,0,b,c[0]),new aB(0,0,0,b,d,!0),new aB(0,0,0,b,c[1],!0)];(d=pz(this.g))&&c.unshift(new aB(0,0,0,b,d));b=this.K.Ka().width;d=Ix(this.K,!0).height;this.H.Se(this.A,this.C,b,d,c);this.na.pe()}(this.L||BA(this.W))&&lq(this,"module-enabled",!0);KB(this.b)}this.tb(a.g.concat(a.b))}};
h.Xc=function(a){this.$.push(a);this.ia.pe()};
h.rd=function(a){ob(this.$,a);this.ia.pe()};
h.IE=function(a){if(this.g)if(a instanceof bB){var b=this.O[a.id];b&&b.A!=a&&(b.dispose(),delete this.O[a.id],b=null);if(!b){var b=this.O,c=a.id;a:switch(null!=a.params.Rl?a.params.Rl:a.params.tF?2:1<a.Ff.length?1:0){case 1:a=new ZA(a);break a;case 2:a=new $A(a);break a;default:a=new GA(a)}b=b[c]=a;K(b.element,"captions-asr","asr"==this.g.o)}}else b=a.o,this.S[b]||(this.S[b]=[]),this.S[b].push(a)};
h.TE=function(){this.H.detach();this.H.dispose();this.H=null};
h.zm=function(){this.ia.stop();cc(this.S);this.$.sort(cq);F(this.$,this.IE,this);var a=this.K.Ka().width,b=Ix(this.K,!0).height;Ob(this.O,function(c,d){!this.S[d]||this.G?(c.dispose(),delete this.O[d]):(c.element.parentNode||Qv(this.b,c.element,4),c.Se(this.A,this.C,a,b,this.S[d]))},this)};
var kta={background:"#080808",backgroundOpacity:1,charEdgeStyle:3,color:"#fff",fontFamily:4,fontSizeIncrement:0,textOpacity:1,windowColor:"#080808",windowOpacity:0};h=yB.prototype;h.Ns=function(){if(!xB(this)){var a=this.K.Ka().width,b=Ix(this.K,!0).height;Ob(this.O,function(c){c.Se(this.A,this.C,a,b,void 0,!0)},this);
this.G&&this.G.Se(this.A,this.C,a,b,void 0,!0);this.H&&this.H.Se(this.A,this.C,a,b,void 0,!0);this.zm()}};
h.te=function(a,b){switch(a){case "fontSize":if((0,window.isNaN)(b))break;var c=$e(b,-2,4);JB(this,{fontSizeIncrement:c});return c;case "reload":b&&CB(this);break;case "stickyLoading":void 0!=b&&this.W.Ra&&lq(this,"module-enabled",!!b);break;case "track":if(b){if(xB(this))break;if(!ia(b))break;if(bc(b)){LB(this);break}for(var d,e=MA(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?hba(f,b.translationLanguage):f)}d&&DB(this,d,!0)}else return this.g&&
this.g!=this.o.Fe()?qz(this.g):{};return"";case "tracklist":return this.da?N(MA(this.o.b,b&&b.includeAsr),function(a){return qz(a)}):[];
case "translationLanguages":return this.da?this.o.B:[];case "displaySettings":d=IB(this);if(BA(this.W)&&b&&ia(b))if(b.reset)HB(this,{},!0);else{f={};for(c in b)switch(c){case "color":case "background":case "windowColor":f[c]=Tba(b[c],d[c]);break;case "textOpacity":case "backgroundOpacity":case "windowOpacity":f[c]=Uba(b[c],d[c]);break;case "charEdgeStyle":f[c]=Vba(b[c],d[c]);break;case "fontSizeIncrement":f[c]=Xba(b[c],d[c]);break;case "fontFamilyOption":f.fontFamily=Wba(b[c],d[c])}for(e in f)f[e+
"Override"]=!0;JB(this,f,!0);d=IB(this)}d.fontFamilyOption=OB[d.fontFamily];d.charEdgeStyle=NB[d.charEdgeStyle];return d;case "sampleSubtitles":xB(this)||void 0==b||MB(this,!!b);break;case "xmlTrack":b&&this.W.Ra&&(BB(this),xB(this)||(c=b.xml,this.g=new oz({languageName:b.name}),this.Br(c,this.g)))}};
h.Df=function(){var a="reload fontSize track tracklist translationLanguages displaySettings sampleSubtitle".split(" ");this.W.Ra&&a.push("stickyLoading","xmlTrack");return a};
h.xb=function(a){if("lb3"==T(a).g)return!1;a=a.getVideoData();var b;if(b=a.za)b=a.b,b=!(!b||null==b.b.en);return!!(a.gc||a.captionTracks.length||b)};
h.Wi=function(a){a?BB(this):this.loaded&&(this.unload(),this.load())};
h.bH=function(){this.o.seek(this.b.getCurrentTime())};
h.Ih=function(){var a=this.g;return a?{cc:a.D}:null};
h.YA=function(){this.B.captionTracks.length&&(this.loaded?CB(this):AB(this)&&this.load())};VB.prototype.g=function(){return this.name};
VB.prototype.getId=function(){return this.id};
VB.prototype.b=function(){return this.isDefault};
VB.prototype.toString=function(){return this.name};
VB.prototype.getName=VB.prototype.g;VB.prototype.getId=VB.prototype.getId;VB.prototype.getIsDefault=VB.prototype.b;WB.prototype.g=1.3;YB.prototype.set=function(a,b){this.b[a]!==b&&(this.b[a]=b,this.g="")};
YB.prototype.get=function(a){$B(this);return this.b[a]||null};
YB.prototype.clone=function(){var a=new YB(this.o);a.C=this.C;a.A=this.A;a.B=this.B;a.b=gc(this.b);a.g=this.g;return a};gC.prototype.toString=function(){return this.start+"-"+(null==this.end?"":this.end)};h=nC.prototype;h.We=function(a){return(a=oC(this,a))?a.duration:0};
h.wi=function(a){return this.We(a)};
h.Sf=function(){return this.sa.length?this.sa[0].b:-1};
h.Rb=function(){return this.sa.length?this.sa[this.sa.length-1].b:-1};
h.Fg=function(){var a=this.sa[this.sa.length-1];return a?a.endTime:window.NaN};
h.Ot=function(){return this.sa[0].startTime};
h.Wk=function(){return this.sa.length};
h.Ij=function(){return 0};
h.pf=function(a){return(a=aca(this,a))?a.b:-1};
h.lp=function(a){return oC(this,a).g};
h.Xe=function(a){return(a=oC(this,a))?a.startTime:0};
h.Ye=function(){return 0<this.sa.length};rC.prototype.set=function(a,b){this.b.get(a);this.g[a]=b;this.o=""};
rC.prototype.get=function(a){return this.g[a]||this.b.get(a)};var x$=0;h=sC.prototype;h.Ll=function(){return!1};
h.Wc=function(){return!!this.b&&!!this.index&&this.index.Ye()};
h.St=function(){return!1};
h.Xr=function(a){return[a]};
h.fj=function(a){return[a]};z(AC,sC);h=AC.prototype;h.Gd=function(){return!1};
h.Rt=function(){return this.g};
h.St=function(){return this.B};
h.ip=function(){return this.g||this.B?[]:[new yC([new tC(1,this,this.initRange)],this.F)]};
h.Xg=function(a,b){if(this.g&&ga(a)&&!(0,window.isFinite)(a))return new yC([new tC(3,this,null,-1)],"",!0);var c=this.index.pf(a);b&&(c=Math.min(this.index.Rb(),c+1));return BC(this,c,!0)};
h.wp=function(a){this.b=new window.Uint8Array(iD(a).buffer)};
h.Ll=function(){return!1};
h.cn=function(a){return 0==a.o||this.g?!0:this.index.Rb()>a.A&&this.index.Sf()<=a.A+1};
h.update=function(a,b,c){var d=this.index;if(0!=a.length)if(a=rb(a),0==d.sa.length)d.sa=a;else{var e=d.sa.length?Za(d.sa).endTime:0,f=a[0].b-d.Rb();1<f&&jb(d.sa);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.sa.push(a[f])}}qC(this.index,c);this.D=b};
h.Wc=function(){return this.g||this.B?!0:AC.N.Wc.call(this)};DC.prototype.update=function(a,b){var c=void 0;this.g&&(c=this.g);var d=new DC,e=a.getElementsByTagName("S");if(e.length){var f=+jC(a,"timescale")||1,k=+jC(a,"startNumber")||0,l;l=((+e[0].getAttribute("t")||0)-(+jC(a,"presentationTimeOffset")||0))/f;l=c?c.Wd+c.durationSecs:b?l:0;var m;m=Date.parse(jC(a,"yt:segmentIngestTime"));var n=Date.parse(jC(a,"yt:mpdResponseTime")),n=E()-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,D=+t.getAttribute("r")||0,A=0;A<=D;A++)if(c&&k<=c.b)k++;else{var Q=new hca(k,l,u,m+y);d.b.push(Q);var I;I=t;var P=f,ab=Q.Wd,ib=I.getAttribute("yt:cuepointTimeOffset"),Q=I.getAttribute("yt:cuepointDuration");ib&&Q?(ab=+ib/P+ab,P=+Q/P,I=I.getAttribute("yt:cuepointContext")||null,I=new CC(ab,P,I)):I=null;I&&d.o.push(I);k++;l+=u;m+=u+y}d.b.length&&(d.g=Za(d.b))}this.A=d.A;this.g=d.g||this.g;sb(this.b,d.b);sb(this.o,d.o)};SC.prototype.skip=function(a){this.b+=a};hD.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=iD(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=iD(this);b=a.getUint32(0,!1);if(3==
this.info.type&&0==this.info.g)return 524531317==b||440786851==b}return!0};h=oD.prototype;h.Ij=function(a){return this.b[a]};
h.Xe=function(a){return this.g[a]/this.A};
h.We=function(a){a=this.wi(a);return 0<=a?a/this.A:-1};
h.wi=function(a){return a+1<this.ya||this.o?this.g[a+1]-this.g[a]:-1};
h.Sf=function(){return 0};
h.Rb=function(){return this.ya-1};
h.Fg=function(){return this.o?this.g[this.ya]/this.A:window.NaN};
h.Ot=function(){return 0};
h.Wk=function(){return this.ya};
h.lp=function(){return""};
h.pf=function(a){a=zb(this.g.subarray(0,this.ya),a*this.A);return 0<=a?a:Math.max(0,-a-2)};
h.Ye=function(){return 0<=this.Rb()};z(qD,sC);h=qD.prototype;h.ip=function(a){var b=new tC(1,this,this.initRange),c=new tC(2,this,this.indexRange),d=[],e=[b];vC(b,c)?e.push(c):(d.push(new yC([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 tC(4,this,iC(b.range.end+1,a-c)));d.push(new yC(e));return d};
h.wp=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.Rb())return;if(1==this.info.g){b=this.index;var c=iD(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++;pD(f);f.b[f.ya]=f.b[f.ya-1]+l;f.g[f.ya]=f.g[f.ya-1]+k}}else this.B=iD(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 YC(a);if(dD(a,440786851)&&(cD(a),dD(a,408125543)&&(e=a,f=e.b,d=ZC(e,!0),
e.b=f,a=$C(a),e=a.o+a.b,dD(a,357149030)))){a=$C(a);for(var l=1E6,m=1E9,f=0;!(a.b>=a.g.byteLength);){var n=ZC(a,!1);if(2807729==n)l=bD(a);else if(2807730==n)m=bD(a);else if(17545==n){var f=a,n=ZC(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 cD(a)}b.A=m/l;a=new YC(k);if(dD(a,475249515)){a=$C(a);k=!0;for(l=!1;dD(a,187);){m=$C(a);n=e;if(dD(m,179))if(t=bD(m),dD(m,183)){for(var m=$C(m),u=n;dD(m,241);)u=bD(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];pD(m);m.b[m.ya]=n;m.g[m.ya]=t;m.ya++}c=d+e;a=f;pD(b);b.o=!0;b.g[b.ya]=a;b.b[b.ya]=c}}this.B=null}};
h.Xr=function(a){for(var b=this.fj(a.info),c=[],d=a.B,e=0;e<b.length;e++)c.push(new hD(b[e],a.b,iC(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.fj=function(a){for(var b=0;b<this.index.Rb()&&a.range.start>=this.index.Ij(b+1);)b++;return rD(this,b,a.range.start,a.range.length).b};
h.cn=function(a){return this.Wc()?!0:(0,window.isNaN)(this.g)?!1:a.range.end+1<this.g};
h.Xg=function(a,b){var c=this.index.pf(a);b&&(c=Math.min(this.index.Rb(),c+1));return rD(this,c,this.index.Ij(c),0)};
h.Ll=function(){var a;if(a=this.Wc()&&!(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.Rt=function(){return!1};z(tD,nk);
tD.prototype.$=function(a){var b=a.getElementsByTagName("Representation");if(0<a.getElementsByTagName("SegmentList").length){this.o=!0;this.A||(this.A=new jca);nca(this.A,a,this.ba);this.Y("refresh");for(a=0;a<b.length;a++){var c=yD(this,b[a]),d=this.isLive&&1==c.g&&this.da;if(!this.b[c.id]){var e=wD(kC(b[a],"BaseURL").textContent,c),f=kC(b[a],"Initialization"),k=jC(f,"sourceURL"),f=hC(jC(f,"range"));d&&(k="",f=void 0);this.b[c.id]=new AC(e,c,k,null===f?void 0:f)}for(var c=this.b[c.id],e=this.A,k=
c,f=Ya(k.info.mimeType,";",1)[0],k=e.o[k.info.id]||e.g[f]||e.b||null,e=tb(kC(b[a],"SegmentList").getElementsByTagName("SegmentURL"),k.A),k=k.b,f=[],l=0;l<e.length;l++)f.push(yca(e[l],k[l],d));c.update(f,this.isLive,this.H)}oca(this.A);return!0}this.duration=lC(jC(a,"mediaPresentationDuration"));a:{for(a=0;a<b.length;a++){k=b[a];d=yD(this,k);e=kC(k,"BaseURL");c=wD(e.textContent,d);f=kC(k,"SegmentBase");k=hC(f.attributes.indexRange.value);f=hC(f.getElementsByTagName("Initialization")[0].attributes.range.value);
e=(0,window.parseInt)(e.getAttribute("yt:contentLength"),10);d=new qD(c,d,f,k,e,window.NaN);if(!d){b=!1;break a}this.b[d.info.id]=d}b=!0}return b};
var xD={commentary:1,alternate:2,dub:3,main:4};
tD.prototype.O=function(a){this.G=a.status;a=a.responseText;a=(new window.DOMParser).parseFromString(a,"text/xml").getElementsByTagName("MPD")[0];this.B=1E3*lC(jC(a,"minimumUpdatePeriod"))||window.Infinity;this.isLive=window.Infinity>this.B&&0!=this.fa;this.H=(0,window.parseInt)(jC(a,"yt:earliestMediaSequence"),10)||0;Qk(a.getElementsByTagName("Period"),this.$,this);this.C=2;this.Y("loaded");(0,window.isFinite)(this.B)&&(a=yq()-this.D,this.K=new fe(this.M,Math.max(0,this.B-a),this),this.K.start());
return this};
tD.prototype.S=function(a){this.G=a.status;this.C=3;this.Y("loaderror");return Id(a)};
tD.prototype.M=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.Ye()){a=c.Rb()+1;break a}}a=0}a=Sg(this.L,{start_seq:a.toString()});zD(this,a)}};var KD={playready:["com.youtube.playready","com.microsoft.playready"],widevine:["com.widevine.alpha"]},Cca=qb(KD.widevine,KD.playready);z(JD,G);JD.prototype.B=function(a){this.A=a;ID(this.F)?LD(this):Eca(this)};
JD.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)}};
JD.prototype.C=function(){this.isDisposed()||(0<this.g.length?LD(this):this.A(null))};MD.prototype.getValue=function(){return this.b};
MD.prototype.clone=function(){return new MD(this.xc,this.b)};h=ND.prototype;h.remove=function(){var a=this.b,b=a.length,c=a[0];if(!(0>=b)){if(1==b)jb(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].xc<b[f].xc?k:f;if(b[f].xc>e.xc)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.Va=function(){for(var a=this.b,b=[],c=a.length,d=0;d<c;d++)b.push(a[d].xc);return b};
h.clone=function(){return new ND(this)};
h.Qb=function(){return this.b.length};
h.isEmpty=function(){return gb(this.b)};
h.clear=function(){jb(this.b)};z(PD,ND);z(QD,nk);QD.prototype.H=function(a,b){this.g=this.g.onload=null;var c=this.b[a];c.o[b]=!0;UD(this);var d=c.Zb*c.rows,e=b*d,c=[e,Math.min(e+d-1,c.Tk()-1)];this.Y("l",c[0],c[1])};
QD.prototype.T=function(){this.g&&(this.g=this.g.onload=null);QD.N.T.call(this)};h=XD.prototype;h.ib=function(){return this.F};
h.getHeight=function(){return this.D};
h.Tk=function(){return this.g};
h.isDefault=function(){return-1!=this.A.indexOf("default")};
h.Oj=function(a){return $e(0==this.B?Math.round(a*this.g/this.K):Math.round(1E3*a/this.B),0,this.Tk()-1)};
h.mn=function(){return this.g-1};
h.Bu=function(){return this.g?0:-1};
h.Cu=function(){};z(YD,QD);YD.prototype.o=function(a,b){for(var c=[],d=a.split("|"),e=d[0],f=1;f<d.length;f++){var k=this.C(f-1,e,d[f],b);180>k.getHeight()&&c.push(k)}return c};
YD.prototype.C=function(a,b,c,d){return new XD(a,b,c,d)};
YD.prototype.G=function(){};z(ZD,XD);h=ZD.prototype;h.Tk=function(){return this.b?this.b.Wk():-1};
h.Oj=function(a){var b=this.rows*this.Zb*this.G,c=-1,d=-1,e=this.b;e&&(c=e.Rb(),d=e.pf(a));return d>c-b?-1:d};
h.mn=function(){return this.b?this.b.Rb():-1};
h.Bu=function(){return this.b?this.b.Sf():-1};
h.Cu=function(a){this.b=a?a.index:null};z($D,YD);$D.prototype.o=function(a,b){return $D.N.o.call(this,"$N|"+a,b)};
$D.prototype.C=function(a,b,c){return new ZD(a,b,c,this.K.isLive)};
$D.prototype.G=function(a){for(var b=0;b<this.b.length;b++)this.b[b].Cu(a)};var cE=null;dE.prototype.A=function(){var a=r("gapi.config.update");a("googleapis.config/auth/useFirstPartyAuth",!0);var b=this.b.apiaryHost;B(C(b))||a("googleapis.config/root",(-1==b.indexOf("://")?"//":"")+b);b=this.b.nk;B(C(b))||a("googleapis.config/root-1p",(-1==b.indexOf("://")?"//":"")+b);a("googleapis.config/sessionIndex",Pi("SESSION_INDEX"));r("gapi.client.setApiKey")(this.b.innertubeApiKey)};
dE.prototype.g=function(){return{context:bE(this.b)}};
dE.prototype.o=function(a,b,c){var d,e=!1;0<c.timeout&&(d=Ri(function(){e||(e=!0,c.Wb&&c.Wb())},c.timeout));
Gca(this,a,b,function(a){if(!e)if(e=!0,d&&Ti(d),a)c.fb&&c.fb(a);else if(c.onError)c.onError()})};var Hca={log_event:"events",log_interaction:"interactions"},jE={},fE={},hE=0,eE=r("yt.logging.transport.logsQueue_")||{};g.aa("yt.logging.transport.logsQueue_",eE,void 0);var oE=null,sE=null,nE=null;uE.prototype.toString=function(){return this.topic};var lta=r("yt.pubsub2.instance_")||new qg;qg.prototype.subscribe=qg.prototype.subscribe;qg.prototype.unsubscribeByKey=qg.prototype.Lc;qg.prototype.publish=qg.prototype.ac;qg.prototype.clear=qg.prototype.clear;g.aa("yt.pubsub2.instance_",lta,void 0);var xE=r("yt.pubsub2.subscribedKeys_")||{};g.aa("yt.pubsub2.subscribedKeys_",xE,void 0);var zE=r("yt.pubsub2.topicToKeys_")||{};g.aa("yt.pubsub2.topicToKeys_",zE,void 0);var yE=r("yt.pubsub2.isAsync_")||{};g.aa("yt.pubsub2.isAsync_",yE,void 0);
g.aa("yt.pubsub2.skipSubKey_",null,void 0);var DE=window.performance||window.mozPerformance||window.msPerformance||window.webkitPerformance||{};z(CE,tE);var vE=new uE("timing-sent",CE);var Tca={vc:!0},Qca=/^mark_/i,OE={ad_at:"adType",cpn:"clientPlaybackNonce",csn:"clientScreenNonce",yt_lt:"loadType",yt_ad:"isMonetized",yt_ad_pr:"prerollAllowed",yt_red:"isRedSubscriber",yt_vis:"isVisible"},Rca=["isMonetized","prerollAllowed","isRedSubscriber","isVisible"],Sca=x(DE.clearResourceTimings||DE.webkitClearResourceTimings||DE.mozClearResourceTimings||DE.msClearResourceTimings||DE.oClearResourceTimings||v,DE);z(ZE,Iz);
ZE.prototype.g=function(){if(!this.b||this.b.isDisposed()){var a=this.o;Xca(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.Mo+","+f.Mo)+'",RESOLUTION='+(k.width+"x"+k.height)+',AUDIO="'+
f.itag.toString()+'",CLOSED-CAPTIONS=NONE');b.push(k.url)}this.b=new xz("data:application/x-mpegurl;charset=utf-8,"+(0,window.encodeURIComponent)(b.join("\n")))}return this.b};z(aF,Iz);aF.prototype.g=function(){return new xz(this.b)};z(dF,nk);dF.B=/\/img\/watermark\/youtube_(hd_)?watermark(-vfl\S{6})?.png$/;dF.g=1;dF.C=-21;dF.D=18E3;dF.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(" ");dF.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(" ");
dF.b={iurl:"default.jpg",iurlmq:"mqdefault.jpg",iurlhq:"hqdefault.jpg",iurlsd:"sddefault.jpg",iurlmaxres:"maxresdefault.jpg"};h=dF.prototype;h.kA=function(a){(this.G=a)&&"fairplay"==this.G.b&&(this.G.fairPlayCert=this.fairPlayCert);nF(this)};
h.JB=function(a){this.isDisposed()||(kF(this,a),this.za&&this.b.subscribe("refresh",this.Qq,this),JE("mrc"),Yz(this.b)&&(this.ia=!0),nF(this))};
h.IB=function(a){this.isDisposed()||(this.M=!1,this.Y("dataloaderror",new XE("manifest.net.retryexhausted",!0,{backend:"manifest",rc:a.status})))};
h.Qq=function(){this.b.isLive||this.b.Ga("refresh",this.Qq,this);this.Io()};
h.Io=function(){var a;a=this.b;var b=this.ze;a=a.A?tb(a.A.A,b):a.F.length?tb(a.F,b):[];0<a.length&&(this.Y("cuepointupdated",a),this.ze+=a.length)};
h.Kd=function(a){return w(this.keywords[a])?this.keywords[a]:null};
h.ks=function(){var a={format:"RAW",method:"GET",withCredentials:this.Mn};this.On&&this.visitorData&&(a.headers={"X-Goog-Visitor-Id":this.visitorData});XB(Yt,this.Ks,a).then(this.bC,this.Vq,this);JE("vir");JE("vir",void 0,"video_to_ad")};
h.Fc=function(a,b){if(30==this.Da){var c=this.uk["default.jpg"];return c?c:this.videoId?Sg("//docs.google.com/vt",{id:this.videoId,authuser:this.Pb,authkey:this.Cp}):"//docs.google.com/images/doclist/cleardot.gif"}b||(b="hqdefault.jpg");return(c=this.uk[b])||a.F||"sddefault.jpg"==b||"maxresdefault.jpg"==b?c:zA(a,this.videoId,b)};
h.xi=function(){return this.Bn};
h.bC=function(a){if(!this.isDisposed()){var b=a.responseText;if(b){this.M=!1;var c=Mj(b);"fail"==c.status?this.Y("onStatusFail",c):(JE("virc"),JE("virc",void 0,"video_to_ad"),F(dF.o,function(a){a in this.A&&(c[a]=this.A[a])},this),eF(this,c),zF(this)?nF(this):this.Y("dataloaderror",new XE("manifest.net.retryexhausted",!0,{successButUnplayable:"1"})))}else this.Vq(a)}};
h.Vq=function(a){if(!this.isDisposed()){var b="manifest.net.retryexhausted",c=!0,d={backend:"gvi",rc:a.status};this.jq&&(this.Rr?d.retried="1":(this.Rr=!0,c=!1,b=a.status?"manifest.net.badstatus":"manifest.net.connect",this.Nn.start()));this.Y("dataloaderror",new XE(b,c,d))}};
h.Dg=function(){return null};
h.Gb=function(){return this};
h.$k=function(a){return a.getVideoUrl(this.videoId)};z(FF,S);FF.prototype.subscribe=function(a,b,c){return this.O.subscribe(a,b,c)};
FF.prototype.Ga=function(a,b,c){return this.O.Ga(a,b,c)};
FF.prototype.Lc=function(a){return this.O.Lc(a)};
FF.prototype.Y=function(a,b){return this.O.Y.apply(this.O,arguments)};z(GF,FF);GF.prototype.o=function(){this.pa();this.Y("close-clicked")};
GF.prototype.pa=function(){this.b.stop();J(this.element,"ytp-drawer-closed")};
GF.prototype.Ob=function(a){a?(GF.N.Ob.call(this,a),Mq(this.element,"block")):Mq(this.element,"none")};
GF.prototype.show=function(){this.b.start()};z(HF,nk);HF.prototype.T=function(){HF.N.T.call(this);this.o||Hf(this.A)};
HF.prototype.Ca=function(a){this.o||(this.b.Ca(a),this.b.Ob(this.g.element),a.appendChild(this.A))};
HF.prototype.B=function(){this.Y("ypcModuleCloseClicked")};
HF.prototype.C=function(){this.Y("ypcContentRequest")};z(JF,dq);h=JF.prototype;h.xb=function(){return Xr(this.b.getVideoData(),"ypc_module")};
h.create=function(){JF.N.create.call(this);this.g=new kda(this.b.getVideoData());Ri(x(this.eH,this),0);this.A=new S({J:"div",ha:["ytp-player-content","ytp-ypc-player-content"]});Qv(this.b,this.A.element,4)};
h.destroy=function(){JF.N.destroy.call(this);this.g=null;this.A&&(this.A.detach(),this.A.dispose(),this.A=null)};
h.eH=function(){this.D&&!this.loaded&&this.load()};
h.load=function(){JF.N.load.call(this);var a=this.b.getVideoData();if(this.g.videoId&&!a.ypcPreview){for(var b={autoplay:"1",oauth_token:a.oauthToken,video_id:this.g.videoId,ypc_origin:a.videoId,ypc_preview:"1"},c=dF.o,d=0;d<c.length;d++){var e=c[d];a.A.hasOwnProperty(e)&&(b[e]=a.A[e])}this.b.$m(b,!0)}else this.g.videoId&&(this.B=new S({J:"div",X:"html5-ypc-overlay",R:[this.g.A]}),this.B.Ca(this.A.element)),this.g.offerId&&nda(this,a),!this.g.videoId&&this.o?IF(this.o):a.ypcPreview?(this.b.Aa("ypcStateChanged",
!0),hq(this)):this.o||hq(this)};
h.unload=function(){fq(this);(0,window.isNaN)(this.C)||Ti(this.C);Nb(this.B,this.o);this.o=this.B=null;JF.N.unload.call(this);this.b.Aa("ypcStateChanged",!1)};
h.Xc=function(a){JF.N.Xc.call(this,a);IF(this.o)};
h.rd=function(a){JF.N.rd.call(this,a);a=this.o;a.o||(Mq(a.A,"none"),a.b.Ob(a.g.element))};
h.CB=function(){this.g.b?"embedded"==T(this.b).b?Vq(this.g.b):Tq(this.g.b):this.g.offerId&&(this.b.Qa()&&br(this.b),this.b.Aa("onYpcContentRequest",this.g.offerId))};
h.yC=function(){this.log({a:"ypc-checkout",label:"ypc-player-module-close-click",playertype:"html5"})};LF.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)};
LF.prototype.Pa=function(){var a=[];this.forEach(x(a.push,a));return a};
LF.prototype.clear=function(){for(var a=this.b.length,b=0;b<a;b++)this.b[b]=0;this.g=this.b.length-1};NF.prototype.b=function(a,b){var c=Math.pow(this.B,a);this.o=b*(1-c)+c*this.o;this.A+=a};
NF.prototype.g=function(){return this.o/(1-Math.pow(this.B,this.A))};eG.prototype.start=function(){this.g=!0};
eG.prototype.reset=function(){this.b=this.g=!1};z(fG,nk);lG.prototype.ba=function(a){switch(a.info.type){case 1:case 2:this.ca(a);break;case 4:var b=a.info.b.Xr(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=Za(b).info);F(b,this.ba,this);break;case 3:this.C+=yda(this.o,a)}};
lG.prototype.ca=function(a){if(RB(a.info.b.info)&&"9h"!=a.info.b.info.o&&1==a.info.type){var b=new window.DataView(a.b),c=new YC(b);eD(c);dD(c,408125543);c=$C(c);dD(c,374648427);c=$C(c);dD(c,174);c=$C(c);dD(c,224);c=$C(c);if(dD(c,21936)){var d=c.o+c.b,c=ZC(c,!0);b.setUint8(d-2,236);b.setUint8(d-1,128|c+1)}}a.info.b.wp(a)};
lG.prototype.$=function(a){this.A=a=a.info;this.M&&this.A.C&&(this.M=!1);this.S=Math.max(this.S,a.b.info.b)};
lG.prototype.O=function(a){a.dispose();this.C-=mG(a)};var Hda=0;h=KG.prototype;h.ME=function(a){this.status=a.status;a.ok?(this.o=a.body.getReader(),this.B?(this.D=a.headers,this.K(),this.C=new window.Uint8Array(LG(this)),NG(this)):this.o.cancel("Cancelling")):this.Jj()};
h.mB=function(a){if(this.B)if(E(),a.done)this.o=null,this.Jj();else{a=a.value;this.A+=a.length;var b=a.length>=Math.max(LG(this)/2,16384),c=a.length+this.b>LG(this);(b||c)&&0!==this.b&&MG(this);b?this.g.push(a):(this.C.set(a,this.b),this.b+=a.length);this.B({timeStamp:E(),loaded:this.A});NG(this)}};
h.Jj=function(){this.B&&(this.F=!0,this.G())};
h.Ze=function(a){return this.D.get(a)};
h.zp=function(){return!!this.D};
h.Ok=function(){return this.A};
h.Qf=function(){return+this.Ze("content-length")};
h.yp=function(){return 200<=this.status&&300>this.status&&!!this.A};
h.iq=function(){return!!this.g.length||this.F&&0<this.b};
h.Cs=function(){this.g.length||MG(this);return this.g.shift()};
h.Qt=function(){this.g.length||MG(this);return this.g[0]};
h.Pt=function(){this.o&&this.o.cancel("Cancelling");this.G=this.B=null};h=OG.prototype;h.TG=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.VG=function(){2==this.b.readyState&&this.B()};
h.UG=function(a){this.g||(this.status=this.b.status,this.C(a))};
h.zp=function(){return 2<=this.b.readyState};
h.Ze=function(a){try{return this.b.getResponseHeader(a)}catch(b){return Vi(b),""}};
h.Qf=function(){return+this.Ze("content-length")};
h.Ok=function(){return this.response.byteLength};
h.yp=function(){return 200<=this.status&&300>this.status&&!!this.response&&!!this.response.byteLength};
h.iq=function(){return this.o&&!!this.response&&!!this.response.byteLength};
h.Cs=function(){var a=this.response;this.response=null;return new window.Uint8Array(a)};
h.Qt=function(){return new window.Uint8Array(this.response)};
h.Pt=function(){this.g=!0;this.b.abort()};PG.A=!1;PG.g=1E4;PG.b=2048;PG.o="X-Bandwidth-Est";h=PG.prototype;h.vb=function(){return this.F};
h.start=function(a){var b=1==this.state,c=7==this.state;1==this.state||5==this.state||c&&RG(this);SG(this,2);this.S=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=ZB(c.A),e=new M(d);e.g.match("\\.googlevideo\\.com$")?(ah(e,"redirector.googlevideo.com"),d=e.toString()):e.g.match("r[1-9].*\\.c\\.youtube\\.com$")?(ah(e,"www.youtube.com"),d=e.toString()):d=Hp(d);c.b=new YB(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);Ri(x(this.fn,this,a),b);return}b?this.fn(a):Ri(x(this.fn,this,a),0)};
h.fn=function(a){if(!this.isDisposed()){this.H=x$++;if(this.o){var b=this.info,c=this.o.b;this.G=b.range?new gC(b.range.start+c,b.range.end):iC(c,this.o.length);this.g=WA(this.info,this.G)}else this.G=this.info.range,this.g=WA(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=VA(this.g);try{var d=x(this.uE,this),
e=x(this.xE,this),f=x(this.wE,this),k=x(this.vE,this);this.b=(this.A.G||this.A.ia&&5>this.S)&&"function"==typeof window.fetch&&window.ReadableByteStream&&TG(this)?new KG(a,e,f,d,k):new OG(a,e,f,d,k)}catch(l){this.F="net.ssl",SG(this,7)}0<this.A.F&&(this.C=Ri(x(this.Vr,this),this.A.F));this.g.get("itag");this.g.get("range");E()}};
h.xE=function(){this.K=0;var a=this.timing;this.g&&aC(this.g.b);a.g=E();a.C=a.g;a.b=0;a.K=!1;a.G=!1;a.B=0;a.F=kK(a.o);aH(a);a.L=a.D-a.g};
h.wE=function(a){if(!this.isDisposed()){this.B=this.b.status;XG(this,!1);var b=this.timing,c=a.timeStamp;a=a.loaded;c=c>b.g&&4E12>c?c:E();50>c-b.C||$G(b,c,a);b=this.timing;b.b>b.M&&8192<b.b&&4>this.state?SG(this,4):VG(this)&&pG(this)&&SG(this,Math.max(3,this.state))}};
h.vE=function(){!this.isDisposed()&&!this.M&&this.b.zp()&&this.b.Ze("X-Walltime-Ms")&&(this.M=(E()-this.b.Ze("X-Walltime-Ms"))/1E3)};
h.uE=function(){var a=this.b;if(!this.isDisposed()){this.C&&(Ti(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.yp()){var c="";WG(this)&&(c=a.Qt(),2048<c.length?c="":(c=String.fromCharCode.apply(String,c),c=cC.test(c)?c:""));if(c){var a=this.info.o,d=this.g;d.b===a.b&&(a.b=dca(d,c));SG(this,5)}else{var c=a.Qf(),a=a.Ok(),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);if(e){XG(this,!0);e=TG(this)?this.b.Ze("X-Bandwidth-Est"):
0;c=this.timing;d=E();e=e?(0,window.parseInt)(e,10):0;if(!c.K){c.K=!0;d=d>c.g&&4E12>d?d:E();$G(c,d,a);var f=(d-c.g)/1E3;(f<=c.o.b.g||!c.o.b.g)&&!c.G&&8192<=c.b&&YG(c.o,f,a);8192<=c.b&&jK(c.o,a,c.B);iK(c.o,(d-c.g)/1E3,c.b);a=c.o;e&&(a.C.b(1,e),a.B=yq());c.A&&(c.A=!1)}E();SG(this,6)}else b=!0,this.F="net.closed"}}else b=!0,this.F="net.connect";b&&(RG(this),SG(this,7),E())}};
h.Vr=function(){this.C=window.NaN;if(!(this.isDisposed()||this.A.Sa&&this.b&&8192<=this.timing.b&&"quic"==this.b.Ze("client-protocol"))){var a=E(),b=!1;if(8192<=this.timing.b){var c=this.timing.D;aH(this.timing);this.timing.D-c>=.8*this.A.F?(this.K++,b=5<=this.K):this.K=0}else b=this.timing,b=5E3<a-(b.g+1E3*b.F.delay);b?(b=this.timing,a=a>b.g&&4E12>a?a:E(),c=(a-b.g)/1E3,8192<=b.b?(b.B+=(a-b.C)/1E3,jK(b.o,b.H,b.B)):ZG(b.o,c),iK(b.o,c,b.b),UG(this),this.F="net.timeout",SG(this,7)):this.C=Ri(x(this.Vr,
this),this.A.F)}};
h.isDisposed=function(){return-1==this.state};
h.dispose=function(){uC(this.info.b[0])&&6!=this.state&&(this.info.b[0].b.o=!1);SG(this,-1);this.L=null;UG(this);Ti(this.C);this.C=window.NaN};z(bH,nk);bH.D=!1;bH.b=2/24;bH.B=1E3;bH.A=.2;bH.g=1E4;bH.C=1800;bH.o="Not enough storage";h=bH.prototype;h.initialize=function(a,b,c,d){a=a||0;var e=this.D;d=d&&d.id;e.B="i";"auto"!=au()&&(e.B="s");VF(e,b);uda(e,d);e.K=e.A;vda(e);e.o=e.D;b=cG(e);this.g=new lG(this.A,b.audio);this.o=new lG(this.A,b.video);vH(this,this.g);vH(this,this.o);this.o.o.D=this.g.o;this.Y("videoformatchange",b);this.C=a;c?(this.G=!0,qH(this)):eH(this)};
h.resume=function(){this.G&&(this.G=!1)};
h.bx=function(a){this.g.L=!1;this.o.L=!1;this.g.A=null;this.o.A=null;this.resume();this.b=a;Gz(a)&&(a.b.addEventListener("updateend",x(this.bd,this),!1),a.g.addEventListener("updateend",x(this.bd,this),!1),a.b.addEventListener("error",x(this.Ti,this,!0),!1),a.g.addEventListener("error",x(this.Ti,this,!1),!1));dH(this,"msa");JE("msa",void 0,"video_to_ad");DE.measure&&DE.getEntriesByName("vta").length&&DE.measure("measure_vta_to_msa","vta");this.ba&&this.M&&Kw();this.bd();this.ia=Si(x(this.bd,this),
1E4)};
h.tD=function(a){if(!this.isDisposed()&&3<=a.state){var b=a.info.b[0].b,c=!this.ba&&b.info.video,d=!this.M&&b.info.audio,e=Math.max(0,a.info.b[0].B-this.C);if(5==a.state)c?dH(this,"vrr"):d&&dH(this,"arr"),a.start(e);else if(6==a.state||this.A.G&&3<=a.state&&!(5<=a.state)){c?(this.ba=a.g?VA(a.g):"",Lw()):d&&(this.M=a.g?VA(a.g):"");b=b.info.video?this.o:this.g;this.B.g&&(b.H=!1,a.M&&this.va.b(1,a.M));if(e=uC(a.info.b[0]))e=a.info,e=!!uC(e.b[e.b.length-1]);e&&F(a.o.o,b.ca,b);this.bd()}else if(4==a.state)this.bd(),
c&&Lw();else if(7==a.state&&RG(a)){if(this.Mc(!1,a.vb(),QG(a)),!this.isDisposed()){if(c=b.info.video&&(0<a.D||410==a.B||500==a.B||503==a.B)&&90&&!$F(this.D)){var d=this.D,f=b.info;$F(d);d.ba=f;d.M=yq();d.L=-1;VF(d,d.b)}if(a.info.b[0].b.Wc()&&7==a.state&&("net.timeout"==a.F||"net.connect"==a.F&&204==a.B)||c){b=b.info.video?this.o:this.g;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.O(b.B.pop());3==a.info.b[0].type?(a.o&&a.o.A?(a=a.o.A,a=new tC(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 tC(a.type,a.b,a.range,a.A,a.startTime,0,a.g,0,!1)),b.b=a):b.b=null}this.bd()}else a.start(e)}}else uC(a.info.b[0])?(b.A=!0,this.bd()):this.Mc(!0,"net.retryexhausted",QG(a))}};
h.bd=function(){this.ga=window.NaN;hH(this);if(this.b&&Bz(this.b)&&!Ez(this.b))if(this.B.isLive)(0,window.isNaN)(this.H)?(this.H=this.C+3600,Cz(this.b,this.H)):this.H<=this.C+1800&&(this.H+=1800,Cz(this.b,this.H));else{var a=Math.max(this.g.g.index.Fg(),this.o.g.index.Fg());(!(0,window.isFinite)(this.H)||this.H!=a)&&0<a&&(Cz(this.b,a),this.H=a)}if(!this.isDisposed()){a=this.B;if(a.isLive&&yq()-a.D>=a.B){if(3==this.B.C){this.Mc(!0,"manifest.net.retryexhausted",{rc:this.B.G.toString()});return}this.B.M()}this.B.isLive&&
(IG(this.o)||IG(this.g))&&(a=wH(this),(0,window.isNaN)(a)||this.seek(a));if("prerender"==window.document.webkitVisibilityState)qH(this);else if(hH(this),qG(this.o),!this.isDisposed()&&(qG(this.g),!this.isDisposed())){if(this.B.g){JG(this.o);JG(this.g);var b=-1!=this.o.G,a=-1!=this.g.G;if(!b||!a)if(b=!b&&gG(this.o.o),a=!a&&gG(this.g.o),b||a){var a=b?this.o:this.g,b=b?this.g:this.o,c=gG(a.o).info.A;if(-1!=b.G&&b.G!=c){var d=b.G;BG(a,0);zG(a,window.Infinity);a.b.A=d-1;this.Mc(!1,"qoe.avsync",{start:"1",
target:b.G,actual:c})}else a.G=c}}this.g.g.o||(!this.G||jH(this.F)?eH(this):qH(this));!this.b||iH(this,this.g,this.b.b)||iH(this,this.o,this.b.g)||((a=uH(this,this.o,this.b.g,null,this.g.F))&&!this.da&&(this.da=E(),dH(this,"vda"),JE("vda",void 0,"video_to_ad"),this.$&&Lw()),b=vy(this.b.g.buffered,this.C+bH.b),(0,window.isNaN)(b)&&!yG(this.o)&&this.b.b.buffered.length||(yG(this.o)&&(b=window.NaN),b=uH(this,this.g,this.b.b,b,null),a|=b,b&&!this.$&&(this.$=E(),dH(this,"ada"),JE("ada",void 0,"video_to_ad"),
this.da&&Lw())),yG(this.o)&&yG(this.g)&&Bz(this.b)&&!Ez(this.b)&&(b=this.b,Bz(b)&&b.o.endOfStream(),hK(this.F)),a&&!Gz(this.b)&&pH(this));yH(this,this.o,XF(this.D));yH(this,this.g,YF(this.D));this.o.g.A||this.g.g.A?this.Mc(!0,"net.retryexhausted",{metadata:"1",video:this.o.g.A?"1":"0",audio:this.g.g.A?"1":"0"}):(lH(this,this.o,this.g)&&oH(this,this.o,this.g),lH(this,this.g,this.o)&&oH(this,this.g,this.o),this.A.va&&this.S&&!this.G&&jH(this.F)&&(a=this.S,this.S="",b=Jg(a),Zj(a,{format:"RAW",responseType:"arraybuffer",
timeout:15E3,onError:x(this.Mc,this,!1,"pathprobe.net",{shost:b})})),this.B.o&&qH(this))}}};
h.Ti=function(a){a=(a=a?this.g:this.o)&&a.A;this.Mc(!0,"fmt.unplayable",a?wC(a):void 0)};
h.vC=function(a){this.Mc(!0,"fmt.unparseable",a)};
h.QD=function(a){this.Mc(!1,"qoe.avsync",a)};
h.seek=function(a){if(!this.isDisposed()&&!this.o.H&&!this.g.H){hH(this);this.na=yq();this.o.g=XF(this.D);var b=xH(this,this.o,a,this.b&&this.b.g);this.g.g=YF(this.D);var c=xH(this,this.g,b,this.b&&this.b.b);this.C=Math.max(a,b,c);this.L=!0;pH(this)}};
h.T=function(){gH(this);this.g&&(AG(this.g),AG(this.o));Ui(this.ia);Ti(this.O);this.o=this.g=null;bH.N.T.call(this)};
h.Mc=function(a,b,c){this.isDisposed()||(this.Y("error",new XE(b,a,c)),a&&(this.b&&Bz(this.b)&&(a=this.b,Bz(a)&&a.o.endOfStream("network")),this.dispose()))};z(BH,G);h=BH.prototype;h.PH=function(a){this.D.call(this.o,new window.Uint8Array(a.message))};
h.QH=function(){this.H.call(this.o,Jda(this))};
h.Iq=function(a,b){Vi(b);var c=a;b instanceof window.DOMException&&(c+=";n."+b.name+";m."+b.message);this.C.call(this.o,c)};
h.nr=function(a){this.D.call(this.o,a.message)};
h.mr=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.lr=function(){this.G.call(this.o)};
h.update=function(a){this.g?this.g.update(a).then(null,Qi(x(this.Iq,this,"t.u"))):this.b?this.b.update(a):this.B.addKey?this.B.addKey(this.K.g,a,this.F,this.sessionId):this.B.webkitAddKey(this.K.g,a,this.F,this.sessionId)};
h.T=function(){this.B=null;BH.N.T.call(this)};z(CH,G);h=CH.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 BH(null,null,null,c,null);b.then(null,Qi(x(c.Iq,c,"t.g")));return c}if(FD(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 BH(null,null,null,null,b)}if(GD(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 BH(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 BH(this.g,this.b,b,null,null)};
h.TH=function(a){var b=EH(this,a);b&&b.nr(a)};
h.SH=function(a){var b=EH(this,a);b&&b.mr(a)};
h.RH=function(a){(a=EH(this,a))&&a.lr()};
h.T=function(){this.g=null;CH.N.T.call(this)};FH.prototype.get=function(a){a=GH(this,a);return-1!=a?this.values[a]:null};
FH.prototype.remove=function(a){a=GH(this,a);-1!=a&&(this.keys.splice(a,1),this.values.splice(a,1))};
FH.prototype.set=function(a,b){var c=GH(this,a);-1!=c?this.values[c]=b:(this.keys.push(a),this.values.push(b))};z(IH,G);h=IH.prototype;h.Tt=function(a){this.G=a};
h.YG=function(a){if(!this.isDisposed()){this.D||(this.D=!0,this.b.Y("newsession",this));if(FD(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(rE(a.childNodes[0].data))}if(GD(this.o))for(b=pE(a),a=new window.Uint8Array(new window.ArrayBuffer(b.length)),c=0;c<b.length;c++)a[c]=b.charCodeAt(c);a=new Oda(a,++this.H);this.os(a)}};
h.WG=function(){this.isDisposed()||this.C||(this.b.Y("sessionready"),this.C=!0)};
h.ZG=function(a){this.isDisposed()||this.b.Y("keystatuseschange",Rda(a,this.F))};
h.os=function(a){a={format:"RAW",method:"POST",postBody:a.message,responseType:"arraybuffer",withCredentials:!0,fb:x(this.mC,this,a),onError:x(this.Xq,this,a)};var b=this.B;this.G&&(b=Zg(b,"access_token",this.G));Zj(b,a)};
h.mC=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=Xa(k[1]),d=EC(d.slice(e+2)),c=null==d?null:new Nda(k,d,c.subarray(f+4))));if(c)if(0!=c.b)JH(this,"drm.auth",!0,"t.f;c."+c.b,oq(c.b));else{f=null;(d=c.headers["Heartbeat-Url"])&&(f=new Mda(d,(0,window.parseInt)(c.headers["Heartbeat-Interval-Secs"],
10)||60,(0,window.parseInt)(c.headers["Heartbeat-Num-Retries"],10)||4));f&&this.b.Y("newlicense",f);if(d=f=c.headers["Authorized-Format-Types"])d=this.g,d=!(d.g&&d.g.keyStatuses);d&&this.b.Y("keystatuseschange",Qda(f));c.headers["Key-Ids"]&&(this.F=Sda(c.headers["Key-Ids"]));GD(this.o)&&(c.message=new window.Uint8Array(rE(String.fromCharCode.apply(null,c.message))));this.g.update(c.message)}else JH(this,"drm.net",!0,"t.p","YTP_ERROR_SERVER_ERROR")}else this.Xq(a,b)};
h.XG=function(a){this.isDisposed()||JH(this,"drm.keyerror",!0,"t.s"+a)};
h.Xq=function(a,b){var c,d=!1;a.b||this.K?(c="drm.net.retryexhausted",d=!0):c=b.status?"drm.net.badstatus":"drm.net.connect";JH(this,c,d,"t.r;c."+b.status);d||this.H!=a.number||(a.b=!0,Ri(x(this.os,this,a),5E3))};
h.T=function(){this.b=null;IH.N.T.call(this)};z(MH,nk);h=MH.prototype;h.QB=function(a){a=new KH(new window.Uint8Array(a.initData),a.initDataType);OH(this,a,!0)};
h.IC=function(a){OH(this,new KH(a.initData,a.contentType),!0)};
h.uC=function(){this.isDisposed()||(this.C=!0,this.g.length&&NH(this,this.g[0]))};
h.WA=function(a){if(!this.isDisposed()){Vi(a);var b="t.a";a instanceof window.DOMException&&(b+=";n."+a.name+";m."+a.message);this.Y("licenseerror","drm.unavailable",!0,b,"YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK")}};
h.KC=function(a){this.isDisposed()||!a||this.M||(this.M=a,this.Y("heartbeatparams",a))};
h.LC=function(){this.isDisposed()||(this.g.shift(),this.g.length&&NH(this,this.g[0]))};
h.CD=function(){if(FD(this.b)&&(this.L--,0==this.L)){var a=this.A;a.g.msSetMediaKeys(a.o)}};
h.$G=function(a){this.isDisposed()||FD(this.b)||"auto"!=a||this.B==ky||(this.B=ky,this.Y("qualitychange"))};
h.T=function(){this.b.o&&this.D.setMediaKeys(null);this.D=null;this.g=[];F(this.o.values,function(a){a.dispose()});
Lda(this.o);MH.N.T.call(this)};PH.prototype.B=function(){var a=r("yt.abuse.botguardInitialized");return a&&a()?(a=r("yt.abuse.invokeBotguard")())?"r1a="+a:null:null};
PH.prototype.C=function(a){return"r3a="+Math.floor(this.b.lengthSeconds%Ua(a.c3a))};
PH.prototype.A=function(a){a=Ua(a.c);var b;b=r("yt.abuse.dclkstatus.checkDclkStatus")();return"r6a="+(a^b)};XH.prototype.isEmpty=function(){return this.endTime==this.startTime};YH.prototype.getVisibilityState=function(){return WH(this.b)};z(aI,nk);aI.g=2;aI.o=5;aI.A=5;aI.b="endcr";h=aI.prototype;h.T=function(){Ti(this.ba);Ui(this.Ia);Ti(this.Ja);eI(this);fI(this);cI(this);xI(this);Nb(this.fa,this.b);this.M=null;this.oa=!1};
h.getVideoData=function(){return this.b};
h.Ko=function(){if(AF(this.b))AF(this.b),this.da.b=!0,4!=this.K&&(this.$=rb(this.b.F)),sF(this.b,this.W),iF(this.b)&&(this.b.za&&(this.O=new oda),this.b.o.b&&II(this),HI(this,"i")),gI(this,"dataloaded"),this.S.g&&mI(this);else{var a=this.b;if(a.za&&a.adaptiveFormats&&!a.Ss&&(Tr(a)||this.W.experiments.aa("html5_manifestless_always"))){if(a=this.b,!jF(a)){a.Ss=!0;var b=uD(lF(a,a.adaptiveFormats),a.ra,a.lengthSeconds,!0);hda(b)||a.Vs?b.dispose():(a.Ha=!1,kF(a,b),b.subscribe("cuepointsadded",a.Io,a),
Yz(a.b)&&(a.ia=!0));nF(a)}}else if(this.b.Ha){a=this.b;b=this.W.experiments;a.M=!0;a.Ha=!1;cC.test(a.D)||Vi(Error("DASH MPD Origin invalid: "+a.D),"WARNING");var c=a.D,d=b.b("html5_dash_mpd_version");d&&(c=Sg(c,{mpd_version:d}));!a.isLowLatencyLiveStream&&b.aa("html5_live_disable_dg_pacing")&&(c=Sg(c,{pacing:0}));zD(new tD(c,b,a.za),c).then(a.JB,a.IB,a);JE("mrs")}else if(this.b.ia)this.o&&(a=this.o.g,lu(a,"protected"),a.b.videoData.G?a.us():a.b.videoData.subscribe("dataloaded",a.us,a)),a=this.b,b=
this.W.K,c=this.W.experiments,Yz(a.b),b=new JD(Xz(b,a.b),c),H(a,b),a.ia=!1,a.M=!0,b.B(x(a.kA,a));else if(!this.b.M&&(this.Db||this.ra)){a:{var a=this.W,b=this.b,d=this.Na.Ka(),e=WH(this.W),f=this.W.L;switch(b.Da){case 38:a=b.videoId.indexOf(":");c=Sg("//play.google.com/books/volumes/"+b.videoId.slice(0,a)+"/content/media",{aid:b.videoId.slice(a+1),sig:b.Iw});break a;case 30:c="//docs.google.com/";a.baseYtUrl!=qA.prototype.baseYtUrl&&(c=a.baseYtUrl);c=Sg(c+"get_video_info",{docid:b.videoId,authuser:b.Pb,
authkey:b.Cp,eurl:a.ga});break a;case 33:c=Sg("//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.ga,ps:a.g,el:a.b,hl:a.oa,list:b.playlistId,agcid:b.Gw,aqi:b.Dw,sts:17015,lact:pu()},a.forcedExperiments&&(c.forced_experiments=a.forcedExperiments),b.S?c.vvt=b.S:b.oauthToken&&(c.access_token=b.oauthToken),a.adFormat&&(c.adformat=a.adFormat),a.rb&&(c.cc_lang_pref=a.rb),a.va&&2!=a.va&&(c.cc_load_policy=a.va),
a.mute&&(c.mute=a.mute),b.Ad&&2!=a.Yd&&(c.iv_load_policy=b.Ad),b.Bc&&(c.itct=b.Bc),qu(a,b,f)&&(c.autoplay="1"),b.ed&&(c.autonav="1"),b.xe&&(c.noiba="1"),b.isMdxPlayback&&(c.mdx="1"),b.nc&&(c.ytrcc=b.nc),b.ye&&(c.utpsa="1"),b.isFling&&(c.is_fling="1"),b.vnd&&(c.vnd=b.vnd),b.we&&(c.force_ad_param_ad_type="video_ad",c.force_ad_param_url=b.we,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.oa&&(c.splay="1"),b.ypcPreview&&(c.ypc_preview=
"1"),a.ra&&(c.content_v=a.ra),b.Ja&&(c.livemonitor=1),a.Pb&&(c.authuser=a.Pb),a.pageId&&(c.pageid=a.pageId),a.ea&&(c.ei=a.ea),a.ed&&(c.ssl_stream="1"),a.D&&(c.iframe="1"),b.Dd&&(c.tst=b.Dd),b.contentCheckOk&&(c.cco="1"),b.racyCheckOk&&(c.rco="1"),a.Ra&&b.liveStartWalltime&&(c.live_start_walltime=b.liveStartWalltime),a.Ra&&b.Ae&&(c.live_manifest_duration=b.Ae),a.Ra&&b.yq&&(c.cyc=b.yq),0!=e&&(c.vis=e),a.enableSafetyMode&&(c.enable_safety_mode="1"),a.widgetReferrer&&(c.widget_referrer=a.widgetReferrer.substring(0,
128)),(b=a.G.embedding_app)&&(c.embedding_app=b),(b=a.G.developer_api_key)&&(c.developer_api_key=b),qa(c,a.o),c=Sg(a.baseYtUrl+"get_video_info",c)}}a=!this.W.isAd();b=this.b;d=this.W.experiments.g;e=!this.W.experiments.aa("disable_gvi_cors");b.isDisposed()||(b.Ks=c,b.jq=a,b.On=!!d,b.Mn=!!e,b.M=!0,b.ks())}}};
h.logEvent=function(a,b){if(this.o){var c=this.o,d={};d.rt=fu(c.b).toFixed(3);qa(d,zu(c.b));var e=c.b.b,f=c.b.videoData,k={ns:e.na,html5:"1",el:e.b,ps:e.g,fexp:e.experiments.experimentIds.join(",")||void 0,feature:f.df||e.Zd||void 0,ctrl:f.kb||void 0,ytr:f.rb||void 0,list:f.playlistId,d:e.Mb,f:e.bb};if(e.experiments.aa("legacy_autoplay_flag")?e.ca:f.K)k.autoplay="1";f.subscribed&&(k.subscribed=f.subscribed);qa(d,k);delete d.fexp;qa(d,a);d=Qj(c.b.b.baseYtUrl+"player_204",d);Du(c,d,b)}};
h.getPlayerState=function(){return this.B};
h.Um=function(){var a=this.getVideoData(),b=a.B;if(!b)return a.Ia;var c=bb(this.b.o?this.b.o.audioTracks:[],function(a){return a.id==b.id});
return c?c:a.Ia};
h.oE=function(){HI(this,"v")};
h.iC=function(a){if(this.F){var b=this.F;if(FD(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&&OH(b,new KH(a),!1)}}};
h.qC=function(a){tI(this,a.reason,a.video.info,a.audio.info);var b=uF(this.b);b&&b.G(a.video);this.O&&(this.O.g=a.audio.index)};
h.pC=function(a){sI(this,a.reason,a.audio.info)};
h.Ah=function(a){if("html5.invalidstate"==a.errorCode&&this.g){var b=this.g.vb();a.details.merr=b?b.toString():"0"}hF(this.b)&&403==a.details.rc?(b=a.errorCode,b="net.badstatus"==b||"manifest.net.retryexhausted"==b):b=!1;if(b)R(this.B,4)?(this.rb=!0,fI(this)):AI(this);else if(JI(a)&&this.b.o.g)a=this.b,a.o=a.o.g,EI(this),DI(this);else if(a.b)b=this.A?this.A.D.b:null,b=JI(a)&&b&&b.isLocked()?"YTP_ERROR_FORMAT_UNAVALIABLE":void 0,jI(this,a.errorCode,b,YE(a.details));else if(this.o)this.o.onError(a.errorCode,
YE(a.details))};
h.pauseVideo=function(a){R(this.B,64)&&!a&&(R(this.B,8)?hI(this,Bq(this.B)):hI(this,Aq(this.B,8)));this.g&&(R(this.B,128)||(a?hI(this,zq(this.B,256)):hI(this,Bq(this.B))),this.g.pause())};
h.seekTo=function(a,b,c){if(!this.g||!this.S.b||!this.g.b.src&&this.W.experiments.aa("new_ended_replay"))this.b.startSeconds=a||0;else{var d;if(a&&!(0,window.isFinite)(a)&&this.b.H&&mF(this.b)&&this.A){d=this.A;fH(d);var e=Math.max(d.o.D,d.g.D),f=d.o;f.H=!0;f.G=-1;zG(f,window.Infinity);f.D=e;f=d.g;f.H=!0;f.G=-1;zG(f,window.Infinity);f.D=e;var f=d.B,k;for(k in f.b)qC(f.b[k].index,window.Infinity);pH(d);d=e+.1}d||(d=$e(a||0,vF(this.b),KI(this,!1)));a=this.b.za&&!R(this.B,4)&&BI(this,d);pI(this,a);this.L=
this.b.startSeconds=d;VH(this.Da,d);b?this.zt():(R(this.B,32)||(hI(this,zq(this.B,32)),R(this.B,8)&&this.pauseVideo(!0),this.Y("beginseeking",this)),c&&(this.fa||(this.fa=new fe(this.zt,c,this)),this.fa.start()),OI(this,!0));this.M&&d>this.b.ga&&(this.C.yh(this.M),this.M=null);d<KI(this,!1)&&hI(this,Aq(this.B,2));this.Y("seekto",this,d)}};
h.zt=function(){if(!(0,window.isNaN)(this.L)&&this.g){var a=this.zh();!this.b.za&&this.L>=Math.floor(a)?(this.L=a,this.Y("endseeking",this),this.pauseVideo(!0),bI(this)):(this.A&&this.A.seek(this.L),(!this.b.za||1<=this.g.b.readyState)&&this.g.seekTo(this.L))}this.fa&&(this.fa.dispose(),this.fa=null);R(this.B,32)&&(hI(this,zq(Aq(this.B,32),16)),this.Y("endseeking",this))};
h.getCurrentTime=function(){if(!(0,window.isNaN)(this.L))return this.L;var a=0;this.g&&1<=this.g.b.readyState?a=this.g.getCurrentTime():this.b&&(a=this.W.experiments.aa("new_ended_replay")?this.b.startSeconds||0:this.b.Bd||this.b.startSeconds||0);this.W.experiments.aa("new_ended_replay")&&(a=$e(a,vF(this.b),KI(this,!1)));return a};
h.zh=function(){return this.b.lengthSeconds?this.b.lengthSeconds:KI(this,!1)?KI(this,!1):0};
h.Xx=function(){var a=new Vda;if(this.ga&&this.A){var b=this.ga;a.o=b.F;a.C=b.G;a.b=PF(b);b=this.A;b.b&&!Dz(b.b)&&(a.g=yy(b.b.g.buffered,b.C),a.A=yy(b.b.b.buffered,b.C));a.b=SF(b.K);PF(b.F);QF(b.F);OF(b.F)}else this.g&&(a.g=uq(this.g));this.O&&pda(this.O,a);return a};
h.hE=function(){if(this.F){var a=this.F,b=this.b.oauthToken;a.H=b;a.Y("oauthtoken",b)}wI(this);gI(this)};
h.gE=function(a){jI(this,"auth",(0,window.unescape)(a.reason),a.errordetail||"sec."+a.errorcode)};
h.hG=function(a){var b=a.target.b.src;if(this.g&&this.g.b.src&&this.g.b.src==b){var c=!1;switch(a.type){case "error":if(this.W.df&&2==this.g.vb()){(0,window.setTimeout)(x(function(){this.g&&(this.b.ka&&this.g.load(),DI(this))},this),500);
if(this.o)this.o.onError("progressive.net");return}break;case "durationchange":var d=this.g.b.duration;(!this.G||(0,window.isFinite)(d)&&0<d)&&1!=d&&this.b.lengthSeconds!=d&&(this.b.lengthSeconds=d,gI(this));break;case "ratechange":this.A&&(this.A.K.o=Math.max(1,this.g.b.playbackRate));mt(this.C);break;case "loadedmetadata":this.b.startSeconds&&(0<(this.g.b.seekable||sy()).length?this.W.experiments.aa("new_ended_replay")?this.seekTo(this.b.startSeconds,!0):this.g.b.currentTime=this.b.startSeconds:
(this.ia=this.b.startSeconds,this.pauseVideo(!0)));case "loadstart":Ui(this.Ia);this.zk()||(this.Ia=Si(x(this.zk,this),100));break;case "progress":$da(this);case "suspend":OI(this);this.Y("onLoadProgress",this,Zda(this));R(this.B,8)&&(this.Mb?c=!0:this.Tb&&((0,window.isNaN)(this.bb)||this.bb+1<this.g.getCurrentTime())&&(c=!0,this.bb=this.g.getCurrentTime()));break;case "seeked":PI(this);break;case "seeking":d=this.W.experiments.aa("disable_html5_videoplayer_seeking_time")?this.g.getCurrentTime():
this.getCurrentTime();this.A&&this.A.seek(d);VH(this.Da,d);break;case "playing":this.D.g("plev");JE("plev",void 0,"video_to_ad");this.kb&&(this.kb=!1,BI(this)||this.seekTo(window.Infinity,!0));Ti(this.Ja);this.Ja=window.NaN;break;case "timeupdate":if(this.W.experiments.aa("html5_ignore_first_0_timeupdate")&&this.g&&!this.g.getCurrentTime()&&!this.Ha)return;this.Ha=!!this.g.getCurrentTime();this.zk();PI(this);OI(this);if(!this.g||this.g.b.src!=b)return;this.Y("onVideoProgress",this,this.g.getCurrentTime());
this.O&&this.H&&qda(this.O,this.g.getCurrentTime());break;case "waiting":if(0<(this.g.b.played||sy()).length&&0==Iy(this.g).length&&0<this.g.getCurrentTime()&&5>this.g.getCurrentTime()&&this.A)return}this.g&&this.g.b.src==b&&(this.Y("videoelementevent",a),a=wq(this.B,a,this.Da,this.gc),hI(this,a),c&&this.g.play())}};
h.LA=function(a){a="available"==a.b.availability;a!=this.ab&&(this.ab=a,this.Y("airplayavailabilitychange"))};
h.MA=function(){var a=!!this.g.b.webkitCurrentPlaybackTargetIsWireless;a!=this.Xa&&(function(){this.W.Ml=a}.apply(this),this.Xa=a)&&(sF(this.b,this.W),HI(this,"m"));
this.Y("airplayactivechange")};
h.zk=function(){var a=this.g;a&&this.Ha&&!this.b.H&&!ME("vfp",this.D.b)&&2<=a.b.readyState&&!a.b.ended&&0<wy(Iy(a))&&this.D.g("vfp");if((a=this.g)&&!this.b.H&&0<a.b.duration&&(!ME("pbp",this.D.b)&&a.b.paused&&2<=a.b.readyState&&0<wy(Iy(a))&&this.D.g("pbp"),0<a.getCurrentTime())){Ui(this.Ia);Ti(this.ba);this.ba=window.NaN;this.b.H=!0;MI(this);if(this.o){a=this.o;if(!a.A){var b=Au(a,"playback");a.H=[10+a.b.videoData.Cd,10,10,40+a.b.videoData.Mg-a.b.videoData.Cd,40];var c=a.o;Ui(c.C);c.C=window.NaN;
c.C=Si(x(c.update,c),100);c.B=fu(c.g);c.A=Qt(c.g);b.g=yu(a,!0);b.Ia=!0;b.send();a.b.videoData.Sa&&(b=a.b.b,c=a.b.videoData,b=Sg(b.baseYtUrl+"ptracking",{html5:"1",video_id:c.videoId,cpn:c.clientPlaybackNonce,plid:c.playbackId,ei:c.eventId,ptk:c.Sa,oid:c.In,ptchn:c.Fn,pltype:c.Jn,content_v:b.ra}),Du(a,b));a.b.videoData.enableCardio&&(a.F("playback"),a.B||Ku(a));a.b.videoData.ea||Fu(a);a.A=!0;a=a.o;a.b=a.g.g();a.B=fu(a.g);!(a.g.b.experiments.aa("html5_vss_tolerate_startup_delay")&&0==a.o&&5>a.b)&&2<
a.b-a.o&&(a.o=a.b)}Ri(x(this.jm,this),4500)}this.Y("playbackstarted");Gw()&&Kw();return!0}return!1};
h.KB=function(){this.Ta&&(this.ea.ua(this.Ta),delete this.Ta,Gy(this.g))};
h.Ey=function(){if(this.g){var a=this.getCurrentTime();if(R(this.B,8)&&xq(this.Da,a,yq(),uq(this.g))){var b=this.zh();!this.b.za&&b&&1>Math.abs(b-a)?bI(this):hI(this,zq(this.B,1))}else R(this.B,4)&&Dq(this.B)&&5<uq(this.g)&&hI(this,Aq(this.B,1));OI(this)}};
h.UE=function(){var a;if(a=R(this.B,1)&&this.A){a=this.A;var b=this.getCurrentTime();if(!a.b||Dz(a.b))a=!1;else{var c=uy(a.b.g.buffered,b),d=uy(a.b.b.buffered,b);a=!!(-1==c&&a.o.b&&a.o.b.startTime>b||-1==d&&a.g.b&&a.g.b.startTime>b)}}a&&(this.o&&mu(this.o.g,"reseek","1",void 0),this.W.experiments.aa("html5_reseek_on_infinite_buffer")&&this.seekTo(this.getCurrentTime(),!0))};
h.ky=function(){this.b.za||this.Y("connectionissue")};
h.ZE=function(){this.g.seekTo(this.g.getCurrentTime()+.1)};
h.JC=function(a){var b={};qa(b,this.W.o);b.cpn=this.b.clientPlaybackNonce;this.b.S&&(b.vvt=this.b.S);this.W.Pb&&(b.authuser=this.W.Pb);this.W.pageId&&(b.pageid=this.W.pageId);jc(a.A,b);HH(a,a.B)};
h.kC=function(a,b,c,d){d=p(d)?d:"YTP_ERROR_LICENSE";c=c.substr(0,256);if(b)jI(this,a,d,c);else if(this.o)this.o.onError(a,c)};
h.lC=function(){HI(this,"r");gI(this)};
h.gG=function(a){this.Y("heartbeatparams",a)};
h.Yq=function(){if(!this.b.H&&this.g){0<this.g.b.readyState&&5<=uq(this.g)&&(hI(this,zq(this.B,1)),this.Y("playbackstalledatstart"));if(this.o){var a;this.W.experiments.aa("html5_log_qoe_start15s_details")&&this.A&&(a=YE(AH(this.A)));this.o.onError("qoe.start15s",a)}this.Y("loadsofttimeout")}};
h.jm=function(){if(!this.oa){var a=new PH(this.b),b;"c1a"in a.o?(b=r("yt.abuse.botguardInitialized"),b=!(b&&b())):b=!1;if(b)Ri(x(this.jm,this),4500);else{var c;if(a.b&&a.b.zb){b=[a.b.zb];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.L||(b=Au(a,"atr"),b.L=c,b.send(),a.L=!0),this.oa=!0)}}};
h.fG=function(){return this.g?this.g.b.playbackRate:1};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(TI,G);h=TI.prototype;h.lG=function(){return Xb(this.o)};
h.mG=function(){return Xb(this.A)};
h.ma=function(){return this.b};
h.addEventListener=function(a,b){if(w(b)){var c=b,d=function(){r(c).apply(window,arguments)};
b=this.C[c]=d}this.app.$.subscribe(a,b)};
h.Px=function(a,b){var c=w(b)?a+b:a+ma(b);if(!this.B[c]){var d;w(b)?d=function(){r(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];dc(this.C,b);b=c}rg(this.app.$,a,b)};
h.Qx=function(a,b){var c=w(b)?a+b:a+ma(b),d=this.B[c];d&&(rg(this.app.$,a,d),dc(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.Ch=function(){return v9(this.app,this.playerType)};
h.Nb=function(){return this.app.ba.volume};
h.setVolume=function(a){a=$e(Math.floor(a),0,100);R9(this.app,{volume:a,muted:this.ad()})};
h.ad=function(){return this.app.ba.muted};
h.mute=function(){R9(this.app,{muted:!0,volume:this.Nb()})};
h.Bf=function(){R9(this.app,{muted:!1,volume:Math.max(5,this.Nb())})};
h.xd=function(){G9(this.app,!0,this.playerType);V9(this.app,this.playerType)};
h.pauseVideo=function(){Usa(this.app,this.playerType)};
h.Hj=function(){var a=this.app;a.W.fa&&(a.b.Qa()&&br(a.b),a.b.Wa("pageTransition"));U9(a)};
h.iG=function(){};
h.nG=function(){return this.app.M};
h.Eh=function(a){t9(this.app,a)};
h.Bh=function(){return this.app.W.ia?gta:[1]};
h.Cj=function(){var a=WI(this.app,this.playerType);return a&&(a=a.getVideoData().g)?a.video.quality:"unknown"};
h.Gj=function(a){if(!this.app.W.isMobile){var b=WI(this.app,this.playerType);b&&HI(b,"p",iy(a,a,!0))}};
h.Bt=function(){var a=WI(this.app,this.playerType);return a?(a=N(FI(a),function(a){return a.quality}),a.length&&("auto"==a[0]&&a.shift(),a=a.concat(["auto"])),a):[]};
h.qG=function(){return this.Wm()};
h.rG=function(){return 1};
h.Wm=function(){return k9(this.app)};
h.sG=function(){return 0};
h.setSize=function(){this.app.D.bf()};
h.Ft=function(a){K9(this.app,a?2:1)};
h.Gt=function(a){K9(this.app,a)};
h.yG=function(a){var b=this.app;b.W.Ta=a;b.b.Wa("minimized")};
h.Dj=function(a){var b=this.app.G;b.isAvailable(a)&&(a=$I(b,a))&&!a.loaded&&a.load()};
h.It=function(a){var b=this.app.G;b.isAvailable(a)&&(a=$I(b,a))&&a.loaded&&a.unload()};
h.Xm=function(a,b,c){a=D9(this.app,QI(a,b,c),this.playerType);G9(this.app,a,this.playerType)};
h.Vm=function(a,b,c){var d=this.playerType;H9(this.app,new dF(QI(a,b,c)),d)};
h.vG=function(a,b,c){a=RI(a,b,c);b=D9(this.app,a,this.playerType);G9(this.app,b,this.playerType);b=this.app;(a=(new M(a.mediaContentUrl)).b)&&rA(b.W,a)};
h.kG=function(a,b,c){a=RI(a,b,c);b=this.playerType;H9(this.app,new dF(a),b);b=this.app;(a=(new M(a.mediaContentUrl)).b)&&rA(b.W,a)};
h.getVideoUrl=function(){var a=this.app.W;if(a.F)return"";var b=k4(this.app),c=void 0;b.za||(c=Math.floor(this.app.getCurrentTime(1)));return a.getVideoUrl(b.videoId,this.se()||void 0,c)};
h.Bj=function(){return w9(this.app)};
h.Ct=function(){var a=this.app.W,b;if(a.F)b="";else{var c=k4(this.app).videoId;b=this.app.D.Ka();var d=this.se()||void 0,a="https://"+yA(a)+"/embed/"+c;d&&(a=Sg(a,{list:d}));b='<iframe width="'+b.width+'" height="'+b.height+'" src="'+Da(a)+'" frameborder="0" allowfullscreen></iframe>'}return b};
h.At=function(a,b,c){return P9(this.app,a,b,c)};
h.Et=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.yh(e);nJ(b,"cuerangesremoved",[e]);a=!0;break a}}a=!1}return a};
h.Dt=function(a,b,c,d){var e=this.app;e.da=!1;I9(e,a,b,c,d);G9(this.app,!0,this.playerType)};
h.jG=function(a,b,c,d){var e=this.app;e.da=!0;I9(e,a,b,c,d)};
h.Ej=function(){L9(this.app);G9(this.app,!0,this.playerType)};
h.Fj=function(){M9(this.app);G9(this.app,!0,this.playerType)};
h.Ym=function(a){N9(this.app,a);G9(this.app,!0,this.playerType)};
h.zG=function(a){var b=this.app.A;b&&oK(b,a)};
h.xG=function(a){var b=this.app.A;b&&(b.G=a)};
h.$c=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.oG=function(){var a=this.app.A;return a?a.b:-1};
h.se=function(){var a=this.app.A;return a&&a.listId?a.listId.toString():null};
h.Ve=function(a,b,c){return Y9(this.app,a,b,c)};
h.Jb=function(a,b,c){return Y9(this.app,a,b,c)};
h.Dh=function(a){return Z9(this.app,a)};
h.getVideoData=function(){var a={},b=WI(this.app,this.playerType);b&&(b=b.getVideoData(),a.video_id=b.videoId,a.author=b.author,a.title=b.title);(b=this.se())&&(a.list=b);return a};
h.Ht=function(){d9(this.app,!0)};
h.tG=function(){d9(this.app,!1)};
h.getAdState=function(){return this.app.getAdState()};
h.uG=function(a){if(a!=this.app.ca.args.video_id)return!1;a=(a=WI(this.app,1))?a.getPlayerState():null;return!(!a||!R(a,128)||5!=y$[a.b.errorCode])};
h.pG=function(){var a=this.app.ca.clone();qa(a.args,CF(k4(this.app)));return a};
h.AG=function(a,b){Z8(this.app,a,b)};
h.destroy=function(){this.app.dispose()};
h.wG=function(){var a=WI(this.app);a&&!R(a.getPlayerState(),128)&&(a.Y("internalAbandon"),eI(a),cI(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;TI.N.T.call(this)};z(UI,TI);h=UI.prototype;h.getPresentingPlayerType=function(){return this.app.getPresentingPlayerType()};
h.At=function(a,b,c,d,e){return P9(this.app,a,b,c,d,e)};
h.BG=function(a,b,c){oy(this.app.W.ba,a,{hf:b,yg:c})};
h.CG=function(a){var b=this.playerType;H9(this.app,new dF(a),b)};
h.getPlayerState=function(a){return x9(this.app,a)};
h.$m=function(a,b){D9(this.app,a,this.playerType,b)};
h.Lt=function(a){var b=this.app,c=this.playerType;c&&1!=c||b.K&&b.K.getVideoData().videoId==a.videoId||(a=new dF(a),E9(b,a))};
h.xd=function(){V9(this.app,this.playerType)};
h.seekTo=function(a,b){W9(this.app,a,b,void 0,this.playerType)};
h.Dt=function(a,b,c,d){var e=this.app;e.da=!1;I9(e,a,b,c,d)};
h.Ej=function(a){L9(this.app,a)};
h.Fj=function(a){M9(this.app,a)};
h.Ym=function(a){N9(this.app,a)};
h.yd=function(a,b,c){var d=this.app,e=this.playerType;W9(d,d.getCurrentTime()+a,b,c,e)};
h.RG=function(a){if(a){var b=this.se();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});uK(this.app.A,a)}}else a=this.app,n9(a),a.b.Aa("onPlaylistUpdate")};
h.QG=function(){Yy()};
h.SG=function(a,b){var c=WI(this.app,this.playerType||1);c&&(c=c.getVideoData(),b?(eF(c,a),zF(c)&&nF(c)):(gF(c,a),c.Y("dataupdated")))};
h.HG=function(){var a=this.app.getVideoData();return a.A.storyboard_spec||a.A.live_storyboard_spec};
h.FG=function(){var a=this.app.W;return{Ub:a.Ub,Ra:a.Ra}};
h.getVideoData=function(){var a=UI.N.getVideoData.call(this),b=WI(this.app,this.playerType);b&&(b=b.getVideoData(),a.backgroundable=b.backgroundable,a.cpn=b.clientPlaybackNonce,a.isLive=b.za,a.itct=b.Bc);return a};
h.getCurrentTime=function(a){return a?this.app.getCurrentTime(a):UI.N.getCurrentTime.call(this)};
h.Ch=function(a){return a?v9(this.app,a):UI.N.Ch.call(this)};
h.Cf=function(){var a=this.app.getVideoData(),b=WI(this.app),c=lJ(this.app.Ya),d=a.clipEnd,a=a.clipStart,e=this.getCurrentTime(),f=this.Ch(),k;if(b.b.za&&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.Ye()){k=pC(n,n.pf(m));break a}}k=window.NaN}else k=window.NaN;(m=WI(this.app,void 0))?(l=Ly(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:KI(b,!0),seekableStart:vF(b.b)}};
h.Wm=function(a){return k9(this.app,a)};
h.canPlayType=function(a){return this.app.canPlayType(a)};
h.Nt=function(a,b){var c=WI(this.app,this.playerType);if(c){b=b||a;var d=iy(a,b,!0);Gj("yt-player-quality",b,2592E3);HI(c,"m",d)}};
h.EG=function(){return wF(this.app.getVideoData(),this.app.getCurrentTime())};
h.Eg=function(a){var b=this.app,c=WI(b,this.playerType);c&&b.W.Na.contains(a.toString())&&c.o&&(b=Au(c.o,"engage"),b.o=a,b.send(void 0))};
h.Gh=function(a,b,c){var d=$I(this.app.G,"iv-module");d&&$x(d)&&by(d,a,b,c)};
h.IG=function(a,b){var c=this.app;c.na&&(c=c.na,c.S&&h6(c.S,a,b))};
h.Fh=function(){return u9(this.app,this.playerType)};
h.an=function(a){a:{var b=this.app,c=this.playerType;if(b.W.experiments.aa("legacy_control_redirecting")){var d=b.ga.set_audio_track?b.Ba:null;if(d){d.yc("control_set_audio_track",a);break a}}else if(3==b.getPresentingPlayerType()&&b.C){b.C.yc("control_set_audio_track",a);break a}if(c=b=WI(b,c))if(c=!b.isDisposed()&&!R(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.K=YF(d),c.Y("audioformatchange",new UF(d.K,d.o,d.B)),c.b&&!c.b.b.remove?a=!1:(yH(c,c.g,YF(c.D)),CG(c.o),
CG(c.g),pH(c),a=!0)),c=!a;c&&(EI(b),DI(b))}};
h.Jt=function(){var a=WI(this.app,this.playerType);return a.b.o?a.b.o.audioTracks:[]};
h.GG=function(){var a=WI(this.app,this.playerType);return a&&a.getVideoData().g?my(TH(a.ka,a.b)):"unknown"};
h.NG=function(a,b){X9(this.app,a,b)};
h.DG=function(){var a=$I(this.app.G,"fresca");a&&a.A.A()};
h.PG=function(){var a=this.app.na;a.da=!1;a.zg()};
h.JG=function(){var a=this.app.na;a.da=!0;a.zg()};
h.getVisibilityState=function(){return WH(this.app.W)};
h.OG=function(){return!0};
h.Kt=function(a){return Ix(this.app.D,a)};
h.MG=function(a){this.app.W.enableSafetyMode=a};
h.LG=function(a){Vh();T9(this.app,a?2:0)};
h.zo=function(){var a=WI(this.app),b=a.W.experiments.aa("disable_html5_stopvideo_cancel_requests");a.pauseVideo(b);a.A&&(a.A.G=!0,b||fH(a.A));if(b=a=this.app.G.o)b=XI(a)?!!a.g.A.b:!1;b&&bJ(this.app.Ya,!0)};
h.Hj=function(){var a=this.app.W;!a.experiments.aa("disable_new_pause_state3")&&ar(a)&&"blazer"!=a.g?this.zo():UI.N.Hj.call(this)};
h.np=function(){return LI(WI(this.app,this.playerType),!0)};
h.bn=function(a){var b=$I(this.app.G,"captions");JB(b,a,!0)};
h.Zm=function(){var a=$I(this.app.G,"captions");return a?IB(a):null};
h.Mt=function(){var a=$I(this.app.G,"captions");HB(a,{},!0)};
h.KG=function(){var a=WI(this.app,this.playerType);if(!a)return!1;a=a.getVideoData();return!!a&&xF(a)&&!!a.g&&a.g.video.isAccelerated&&a.g.video.b};
h.Xm=function(a,b,c){this.$m(QI(a,b,c))};z(VI,UI);h=VI.prototype;h.Ea=function(){return Jx(this).element};
h.$c=function(){return this.app.A};
h.getVideoData=function(a){return(a=WI(this.app,a||this.playerType))&&a.getVideoData()};
h.Qa=function(){return this.app.W.L};
h.addEventListener=function(a,b,c){this.app.O.subscribe(a,b,c)};
h.removeEventListener=function(a,b,c){rg(this.app.O,a,b,c)};
h.Wa=function(a,b){T(this).Ra&&("videodatachange"==a||"audiotrackchanged"==a||"resize"==a||"cardstatechange"==a)&&this.app.$.ac.apply(this.app.$,arguments);this.app.O.ac.apply(this.app.O,arguments)};
h.Aa=function(a,b){this.app.$.ac.apply(this.app.$,arguments);this.app.O.ac.apply(this.app.O,arguments)};
h.Gj=function(a){this.Nt(a,a)};
h.Bj=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.za||(k=Math.floor(this.getCurrentTime(e)));return this.app.W.getVideoUrl(d.videoId,f?void 0:this.se()||void 0,k,b,c)};
h.Gh=function(a,b,c){var d=$I(iq(this),"iv-module");d&&by(d,a,b,c)};
h.Eg=function(a,b){var c=this.app,d=WI(c,this.playerType);d&&c.W.Na.contains(a.toString())&&d.o&&(c=Au(d.o,"engage"),c.o=a,c.send(b))};
h.tb=function(a,b){O9(this.app,a,b||this.playerType)};
h.Jb=function(a,b,c){return Y9(this.app,a,b,c,!0)};
h.Dh=function(a){return Z9(this.app,a,!0)};
h.Ve=function(a,b,c){return Y9(this.app,a,b,c,!0)};
h.Eh=function(a,b){t9(this.app,a,b)};
h.setVolume=function(a){a=$e(a,0,100);R9(this.app,{volume:a,muted:this.ad()},!0)};
h.mute=function(){R9(this.app,{muted:!0,volume:this.Nb()},!0)};
h.Bf=function(){R9(this.app,{muted:!1,volume:Math.max(5,this.Nb())},!0)};z(rJ,dq);h=rJ.prototype;h.xb=function(){return sJ(this.b)};
h.create=function(){rJ.N.create.call(this);this.load()};
h.load=function(){rJ.N.load.call(this);this.b.addEventListener("resize",this.hn,this);var a=tJ(T(this.b).g)?function(){}:x(this.Rx,this);
hea(this,a)};
h.unload=function(){uJ(this,null);this.b.removeEventListener("resize",this.hn,this);this.A&&(this.A.abort(),this.A=null);rJ.N.unload.call(this)};
h.te=function(a,b){if(!tJ(T(this.b).g))return null;switch(a){case "loadCustomEndscreenJson":var c=new qJ(b);uJ(this,c);return!0;case "unloadCustomEndscreenJson":return uJ(this,null),!0}return null};
h.Rx=function(){var a=this.b.getVideoData().videoId;this.A&&this.A.abort();var b=T(this.b).experiments.aa("endscreen_cors"),a={method:"GET",zc:x(this.TB,this,a),wd:{v:a}};b&&(a.method="POST",a.withCredentials=!0);"embedded"==T(this.b).b&&(a.wd.ptype="embedded");if(b=this.b.getVideoData().$r)a.method="POST",a.Lb={ad_tracking:b};if(b=this.b.getVideoData().A.iv_endscreen_url)this.A=Zj(b,a)};
h.TB=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 qJ(JSON.parse(d)))}uJ(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 mta=["ytp-ce-top-left-quad","ytp-ce-top-right-quad","ytp-ce-bottom-left-quad","ytp-ce-bottom-right-quad"];h=rJ.prototype;
h.hn=function(){if(this.o&&this.o.elements){var a=this.b.Kt(),b=a.width,c=a.height,d=b/c,e;e=Kx(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);As(k.element,Math.round(m.width*b),l);os(k.element,t,u);me(k.element,mta);J(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)]);me(k.element,A$);J(k.element,e);(k=of("div","ytp-ce-expanding-overlay-body",k.element)[0])&&is(k,"height",l+"px")}}};
h.Xc=function(a){rJ.N.Xc.call(this,a);if("ytp-ce-in-endscreen"==a.getId())yJ(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];J(b.element,"ytp-ce-element-show");b.element.removeAttribute("aria-hidden");yJ(this,c.impressionUrls);T(this.b).Ra&&this.b.Aa("endscreenelementshown",a)}};
h.rd=function(a){if("ytp-ce-in-endscreen"!=a.getId()&&!this.G){var b=a.getId().substring(15),c=this.g[b];le(c.element,"ytp-ce-element-show");c.element.setAttribute("aria-hidden",!0);rJ.N.rd.call(this,a);T(this.b).Ra&&this.b.Aa("endscreenelementhidden",b)}};
h.lx=function(a){return new S(["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",wJ(vJ(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.kx=function(a){return new S(["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",wJ(vJ(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.jx=function(a){var b=new S(["div",["ytp-ce-element","ytp-ce-channel",a.G?"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",wJ(vJ(this,a))]]),c=of("div","ytp-ce-channel-subscribe",b.element)[0];a.A&&uh(c,a.A);return b};
h.mx=function(a){return new S(["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",wJ(vJ(this,a))],["div","ytp-ce-expanding-icon",wJ(a.F)]])};
h.Sq=function(a,b){if(a.b&&(!b||!b.keyCode||13==b.keyCode)){for(var c=b.target;c&&!ie(c,"ytp-ce-element");){ie(c,"subscribe-label")&&yJ(this,a.clickUrls);if(ie(c,"ytp-ce-channel-subscribe"))return;c=Of(c)}b.preventDefault();b.stopPropagation();b.ctrlKey||b.metaKey||"new"==a.H?(yJ(this,a.clickUrls),this.b.pauseVideo(),this.Ut(a.b,a.C,"_blank")):(c=x(this.Ut,this,a.b,a.C,"_top"),yJ(this,a.clickUrls,c))}};
h.gn=function(a,b){J(a.element,"ytp-ce-element-hover");yJ(this,b.D);xJ(this,b.id,!0)};
h.Vt=function(a,b){le(a.element,"ytp-ce-element-hover");xJ(this,b.id,!1)};
h.Ut=function(a,b,c){Uq(a,b);Vq(a,c)};z(zJ,dq);h=zJ.prototype;h.xb=function(){return AJ(this.b)};
h.create=function(){zJ.N.create.call(this);var a=new aq(1E3,0x7ffffffffffff,{priority:0});this.tb([a]);this.b.addEventListener("heartbeatparams",this.Xt,this);this.b.addEventListener("presentingplayerstatechange",this.Yt,this);this.b.addEventListener("videoplayerreset",this.Er,this)};
h.destroy=function(){FJ(this);zJ.N.destroy.call(this);this.b.removeEventListener("heartbeatparams",this.Xt,this);this.b.removeEventListener("presentingplayerstatechange",this.Yt,this);this.b.removeEventListener("videoplayerreset",this.Er,this)};
h.Xc=function(){this.C=!0;CJ(this,2E3)};
h.Xt=function(a){this.o=a;CJ(this,2E3)};
h.Yt=function(a){R(a.state,2)||R(a.state,64)?FJ(this):(R(a.state,1)||R(a.state,8))&&CJ(this,2E3)};
h.Er=function(){3!==this.b.getPresentingPlayerType()&&CJ(this,2E3)};
h.aF=function(){var a,b,c=T(this.b),d=this.b.getVideoData();b=c.baseYtUrl;3==this.b.getPresentingPlayerType()?this.g=window.NaN:R(Sr(this.b),4)?this.g=window.NaN:BJ(this)||d.za?(!tF(d)||d.za?(a="GET",c=c.o,b=Sg(b+"heartbeat",{video_id:d.videoId,heartbeat_token:d.heartbeatToken,c:c.c,cver:c.cver,cbrand:c.cbrand,cmodel:c.cmodel,vvt:d.S,access_token:d.oauthToken})):(a="GET",b=Sg(this.o.url,{request_id:cz()}),d.S&&(b=Sg(b,{vvt:d.S})),d.oauthToken&&(b=Sg(b,{access_token:d.oauthToken}))),b=Sg(b,{cpn:d.clientPlaybackNonce}),
Zj(b,{format:"RAW",method:a,timeout:3E4,fb:x(this.mA,this),onError:x(this.lA,this),Wb:x(this.nA,this),withCredentials:!0})):FJ(this)};
h.mA=function(a){if(this.g){a=a.responseText;var b;b=(b=EJ(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)DJ(this,"decode");else if(2!=b||BJ(this))if(this.B=0,this.g=window.NaN,1==b){this.A=!1;b="YTP_ERROR_LICENSE";var c=EJ(a);c?a=c.reason||O(b):((a=a.match(C$))&&(a=(0,window.parseInt)(a[1],10))&&(b=oq(a)),a=O(b));jI(this.b.app.g,"heartbeat",a,void 0)}else this.A=!0,CJ(this);else FJ(this),this.A=!0}};
h.lA=function(a){DJ(this,"net-"+a.status)};
h.nA=function(){DJ(this,"timeout")};
var C$=/^GLS\/1.0 (\d+) (\w+).*?\r\n\r\n([\S\s]*)$/;z(KJ,G);KJ.prototype.T=function(){this.b=null;KJ.N.T.call(this)};z(RJ,G);RJ.prototype.T=function(){this.stop();RJ.N.T.call(this)};
RJ.prototype.stop=function(){null!==this.g&&(Ti(this.g),this.g=null);null!==this.b&&(this.b.cancel(),this.b=null)};z(SJ,G);SJ.prototype.T=function(){this.b&&(Ti(this.b),this.b=0);SJ.N.T.call(this)};
SJ.prototype.A=function(a,b,c){for(;;){if(E()>=a){c(Error("tryLock expired"));return}Gj(this.o,this.xa,.5);if(!Hj(this.g))break}Gj(this.g,this.xa,.5);if(Hj(this.o)==this.xa)b(this.xa);else{var d=this;this.b=Ri(function(){d.b=0;Hj(d.g)==d.xa?b(d.xa):d.A(a,b,c)},50)}};
z(TJ,G);TJ.prototype.T=function(){this.b.dispose();TJ.N.T.call(this)};
TJ.prototype.id=function(){return this.xa};z(ZJ,G);h=ZJ.prototype;h.T=function(){ZJ.N.T.call(this);this.A&&(Ui(this.A),this.A=0);this.o&&(this.o.dispose(),this.o=null);this.g&&(this.g.dispose(),this.g=null);im(this.B)};
h.qq=function(a){this.isDisposed()||vea(this.o,a).then(function(){this.isDisposed()||this.g||(xea(this),this.g=new RJ(Wb(this.b.b),x(this.gD,this)))},function(){this.g&&(this.g.dispose(),this.g=null)},this)};
h.gD=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===WJ(this.b)){var c=Wb(this.b.b);Kb(c);for(var d=c.length,e=0;e<d;++e){var f=c[e];if(1===f.status){f.active=!0;break}}}YJ(this)};
h.reset=function(){this.b=new UJ;Ij("yt-accelerator-discover")};
h.My=function(a){"yt-accelerator-discover"===a.event.key&&(this.b=VJ())};z($J,G);ba($J);$J.prototype.init=function(a){this.b||(this.b=new ZJ(a.addresses||[],!!a.probe,a.xsrfToken||"",a.applianceQueryParams||""),this.g=new KJ(this.b))};
$J.prototype.T=function(){this.g&&(this.g.dispose(),this.g=null);this.b&&(this.b.dispose(),this.b=null);$J.N.T.call(this);delete $J.bc};z(aK,dq);h=aK.prototype;h.xb=function(){return!!this.b.getVideoData().spacecastModule};
h.create=function(){aK.N.create.call(this);if(this.b.getVideoData().Kg){var a={addresses:this.b.getVideoData().Kg,probe:!0};window.environment&&window.environment.xsrf_token&&(a.xsrfToken=window.environment.xsrf_token);$J.getInstance().init(a)}var b;a:{a=(a=Hj("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=Hj("yt-accelerator-discover"))&&b.qparamsmap||{};this.load()};
h.destroy=function(){aK.N.destroy.call(this);this.g=null;this.o={}};
h.load=function(){aK.N.load.call(this);if(this.g){var a=this.b.getVideoData().videoId,b=E();kea(this.g,a,x(this.iz,this,a,b),this.o)}else hq(this)};
h.te=function(a){switch(a){case "getVideo":a=this.b.getVideoData();var b=!!(a&&xF(a)&&a.g&&a.g.video.isAccelerated);return{docid:a.videoId,isAccelerated:b}}};
h.iz=function(a,b,c){if(this.g){b=E()-b;var d=!1,e=this.b.getVideoData(),f="unknown",k=GJ(c),l=!0;e.yb=Xb(k);if(c){c.status&&(f=c.status);"ux"in c&&(l=!!c.ux);if(k=HJ(this.g,c,e.adaptiveFormats,l,this.o))e.spacecastAdaptiveFormats=k;if(c=HJ(this.g,c,e.va,l,this.o))e.spacecastFormatMap=c;if(k||c)sF(e,T(this.b)),e.da||bea(this.b),d=my(e.Ta),this.b.Gj(d),d=!0}(c=2==this.b.getPresentingPlayerType())&&!d?yd(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.Lj()))},this):
hq(this);
fj("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.yb.join(","),isAd:c?1:0};jc(a,this.o);Tp("/gen_204?"+Qg(a),void 0)}};z(bK,dq);h=bK.prototype;h.xb=function(){return Xr(this.b.getVideoData(),"ypc_clickwrap_module")};
h.create=function(){bK.N.create.call(this);this.load()};
h.load=function(){bK.N.load.call(this);this.g=new S({J:"div",ha:["ytp-ypc-clickwrap-overlay","ytp-player-content"],R:[{J:"h2",X:"ytp-ypc-clickwrap-header",R:[O("YTP_YPC_START_RENTAL_HEADER")]},{J:"div",X:"ytp-ypc-clickwrap-description",R:[this.b.getVideoData().A.ypc_clickwrap_message]},{J:"button",ha:["ytp-ypc-clickwrap-confirm","ytp-button"],R:[O("YTP_YPC_START_RENTAL_BUTTON")]}]});Qv(this.b,this.g.element,4);H(this,this.g);this.o=this.g.qa["ytp-ypc-clickwrap-confirm"];this.g.U(this.o,"click",this.zB,
this)};
h.unload=function(){bK.N.unload.call(this);this.g.detach();this.g.dispose();this.g=null};
h.zB=function(){hq(this);this.destroy()};cK.prototype.b=function(a,b){dK(this,"index");this.A.push({index:this.G++,weight:a,value:b});this.o+=a;for(dK(this,"index");this.o>this.D;){var c=this.o-this.D,d=this.A[0];d.weight<=c?(this.o-=d.weight,this.A.shift()):(this.o-=c,d.weight-=c)}};
cK.prototype.g=function(){return this.C?(eK(this,this.B-this.C)+eK(this,this.B)+eK(this,this.B+this.C))/3:eK(this,this.B)};fK.prototype.b=function(a,b){this.o.push(b);this.o.length>this.A&&this.o.shift()};
fK.prototype.g=function(){return df.apply(null,this.o)};lK.prototype.toString=function(){return this.type+this.id};z(pK,nk);h=pK.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 dF(c),d.startSeconds=this.startSeconds||d.clipStart||0,this.listId&&(d.playlistId=this.listId.toString()));return d};
h.Fc=function(a,b){b=b||"hqdefault.jpg";var c=this.L[b];if(c||a.F||"sddefault.jpg"==b||"maxresdefault.jpg"==b)return c;if(this.K.length)return zA(a,this.K[0],b)};
h.xi=function(){return null};
h.Dg=function(){return this.listId?this.listId.toString():null};
h.$k=function(a){return a.getVideoUrl(this.Gb().videoId,this.Dg())};
h.T=function(){this.C=null;Nb(this.g);pK.N.T.call(this)};z(vK,nk);vK.prototype.load=function(){this.loaded=!0};
vK.prototype.unload=function(){this.loaded=!1};
vK.prototype.T=function(){this.loaded&&this.unload();vK.N.T.call(this)};z(wK,FF);wK.prototype.create=function(){this.L=!0};
wK.prototype.destroy=function(){this.L=!1};
wK.prototype.sk=function(){return!1};z(xK,S);z(yK,S);z(zK,yK);zK.prototype.gb=function(a){a?this.A.show():ev(this.A)};z(AK,wK);AK.prototype.create=function(){AK.N.create.call(this);Ff(this.element);this.A.Ca(this.element);var a=this.b.getVideoData().videoId;a&&(a=wA(T(this.b),a,!0),Zj(a,{method:"GET",fb:this.B,context:this,Bx:!0}))};
AK.prototype.B=function(a,b){if(this.L){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.wa("background",d?"background-image: url("+d+")":"");this.A.wa("image",e);this.A.wa("author",c.channel_title||c.username);c=c.subscription_button_html;d=this.A.qa["html5-subscribe-button-container"];c?d.innerHTML=Oe(c):Ff(d)}};
AK.prototype.show=function(){AK.N.show.call(this);this.o.gb(!0)};
AK.prototype.pa=function(){AK.N.pa.call(this);this.o.gb(!1)};z(DK,S);h=DK.prototype;h.mi=function(){this.B&&(this.D.stop(),this.ua(this.C),this.C=null,this.B.close(),this.B=null)};
h.Jq=function(){this.gb(YI(this.o))};
h.NC=function(){window.focus();this.mi()};
h.mk=function(){var a=Math.min(yq()-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=T(this.o);if(b.experiments.aa("autonav_notifications")&&a&&window.Notification&&window.document.hasFocus){var c=window.Notification.permission;Xu(this.o,"xwebnotifications",{permission:c});"default"==c?window.Notification.requestPermission():"granted"!=c||window.document.hasFocus()||(c=this.A.Gb(),this.mi(),this.B=new window.Notification(O("YTP_PLAYLIST_UP_NEXT"),{body:c.title,icon:c.Fc(b)}),this.C=this.U(this.B,"click",this.NC),this.D.start())}FK(this);b=this.A.Gb().videoId;
J9(this.o.app,b,a?this.A.Is:this.A.Ba,this.A.Dg(),void 0)};
h.VC=function(a){!rm(a)&&Qq(a)&&(this.select(),qm(a))};
h.Kq=function(a){qm(a);gJ(this.o,"autonavcancel");bJ(this.o,!0)};
h.EI=function(a){120<mm(a).naturalWidth&&J(this.element,"ytp-moving-thumbnail-loaded")};
h.T=function(){FK(this);this.mi();DK.N.T.call(this)};z(HK,S);h=HK.prototype;h.sg=function(){var a=this.b.Gb().videoId;J9(this.o.app,a,this.b.Ba,this.b.Dg(),void 0)};
h.gH=function(a){$q(a,this.o,!this.o.Qa()&&this.B,this.b.Ba)&&this.sg()};
h.iH=function(){this.ua(this.A);this.A=null;IK(this)};
h.hH=function(a){switch(a.keyCode){case 13:case 32:rm(a)||(this.sg(),qm(a))}};
h.jH=function(a){120<mm(a).naturalWidth&&(J(this.element,"ytp-videowall-moving-thumbnail-loaded"),this.C.start())};
h.Gs=function(){le(this.element,"ytp-videowall-moving-thumbnail-loaded")};z(JK,wK);JK.b=2;h=JK.prototype;h.create=function(){JK.N.create.call(this);var a=this.b.getVideoData();a&&(this.o=LK(a),this.C=a);this.af();this.D.U(this.b,"appresize",this.af);this.D.U(this.b,"videodatachange",this.fH);this.D.U(this.b,"autonavchange",this.up);this.D.U(this.b,"autonavcancel",this.fy);this.D.U(this.element,"transitionend",this.WD)};
h.destroy=function(){Fw(this.D);Nb(this.B);this.B=[];this.o=null;JK.N.destroy.call(this);le(this.element,"ytp-show-tiles");this.K.stop()};
h.sk=function(){return 1!=this.C.autonavState};
h.show=function(){JK.N.show.call(this);le(this.element,"ytp-show-tiles");T(this.b).isMobile?ge(this.K):this.K.start();(this.H||this.G&&this.G!=this.C.clientPlaybackNonce)&&bJ(this.b,!1);var a=KK(this);pJ(this.b)&&T(this.b).experiments.aa("ui_logging")&&this.ca.log({cancelButtonShow:a?"1":"0",state:this.sk()?"enabled":"disabled"});a?(NK(this),2==this.C.autonavState?T(this.b).experiments.aa("fast_autonav_in_background")&&3==this.b.getVisibilityState()?this.A.select(!0):EK(this.A):3==this.C.autonavState&&
GK(this.A)):(bJ(this.b,!0),NK(this))};
h.pa=function(){JK.N.pa.call(this);GK(this.A);NK(this)};
h.WD=function(a){mm(a)==this.element&&this.af()};
h.af=function(){if(this.o&&this.o.length){var a=T(this.b).experiments.aa("video_wall_moving_thumbnails_hover");J(this.element,"ytp-endscreen-paginate");for(var b=Cs(this.element),c=b.width/b.height,d=96/54,e=JK.b,f=JK.b,k=Math.max(b.width/96,2),l=Math.max(b.height/54,2),m=this.o.length,n=Math.pow(JK.b,2),t=m*n,u=MK(this,0,l),y=MK(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 D=e/JK.b,A=f/JK.b,Q=e<=k-JK.b&&t>=A*n,I=f<=l-JK.b&&t>=D*n;if((D+1)/A*d/c>c/(D/(A+1)*d)&&
I)t-=D*n,f+=JK.b;else if(Q)t-=A*n,e+=JK.b;else if(I)t-=D*n,f+=JK.b;else break}d=!1;k=JK.b+u;t>=3*n&&6>=m*n-t&&(f>=k||e>=k)&&y<=JK.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*=$e(b.width/t||1,1,1.21);n*=$e(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.M.element;As(b,t,n);is(b,{marginLeft:t/-2+"px",marginTop:n/-2+"px"});c=this.A;k=this.o[0];c.A=k;CK(c,k,T(c.o),"hqdefault.jpg");le(c.element,"ytp-moving-thumbnail-loaded");
c.update({moving_thumbnail:"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"});5E5<PF(c.o.app.ia)&&(k=c.A.xi())&&c.update({moving_thumbnail:k});K(this.element,"ytp-endscreen-takeover",KK(this));NK(this);c=t+4;t=n+4;n=0;k=!KK(this);l=!1;for(D=0;D<e;D++)for(A=0;A<f;A++)if(Q=y>JK.b&&1<=n&&!l?n+1:n,I=0,d&&D>=e-JK.b&&A>=f-JK.b?I=1:0==A%JK.b&&0==D%JK.b&&(A<u&&D<u?0==A&&0==D&&(I=u):y>JK.b&&A>=f-y&&D>=e-y?A==f-y&&D==e-y&&(l=!0,Q=1,I=y):I=JK.b),Q=(Q+this.F)%m,Q=0>Q*m?Q+m:Q,0!=
I){var P=this.B[n];P||(P=new HK(this.b),this.B[n]=P,b.appendChild(P.element));var ab=Math.floor(t*A/f),ib=Math.floor(c*D/e),kb=Math.floor(t*(A+I)/f)-ab-4,wb=Math.floor(c*(D+I)/e)-ib-4;os(P.element,ib,ab);As(P.element,wb,kb);is(P.element,"transitionDelay",(A+D)/20+"s");K(P.element,"ytp-videowall-still-mini",1==I);K(P.element,"ytp-videowall-still-large",2<I);I=P;Q=this.o[Q];P=k&&!a;I.b=Q;ab=T(I.o);CK(I,Q,ab,ie(I.element,"ytp-videowall-still-large")?"hqdefault.jpg":"mqdefault.jpg");I.Gs();I.C.stop();
I.update({moving_thumbnail:"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"});P?(J(I.element,"ytp-videowall-active"),IK(I)):ab.experiments.aa("video_wall_moving_thumbnails_hover")&&!I.A&&(I.A=I.P("mouseover",I.iH));n++}K(this.element,"ytp-endscreen-paginate",n<m);for(a=this.B.length-1;a>=n;a--)P=this.B[a],Hf(P.element),Mb(P);this.B.length=n}};
JK.o=2;JK.g=1.21;h=JK.prototype;h.fH=function(){var a=this.b.getVideoData();this.C!=a&&(this.F=0,this.o=LK(a),this.C=a,this.af())};
h.pB=function(){this.F+=this.B.length;this.af()};
h.qB=function(){this.F-=this.B.length;this.af()};
h.up=function(a){1==a?(this.H=!1,this.G=this.C.clientPlaybackNonce,FK(this.A),this.g&&this.af()):(this.H=!0,this.g&&KK(this)&&(2==a?EK(this.A):3==a&&GK(this.A)))};
h.fy=function(a){if(a){a=[];for(var b=0;b<this.o.length;b++){var c=this.o[b].Ba;c&&a.push(c.itct)}b=this.$;if(T(b).experiments.aa("player_interaction_logging")&&(b=b.app.Bc,c=Xq())){for(var d=[],e=0;e<a.length;e++){var f=a[e];b.b[f]||(d.push(new Rq(f)),b.b[f]=!0)}0<d.length&&Kca(c,d)}this.up(1)}else this.G=null,this.H=!1;this.af()};z(g.PK,vK);h=g.PK.prototype;h.T=function(){var a=this.b;eq(a.app,"endscreen",a.playerType);g.PK.N.T.call(this)};
h.load=function(){g.PK.N.load.call(this);this.g.show();T(this.b).ka&&.01>Math.random()&&this.log({trailerEndscreenShow:1})};
h.log=function(a){Xu(this.b,"end",a)};
h.unload=function(){g.PK.N.unload.call(this);this.g.pa();this.g.destroy()};
h.GB=function(a){ZI(this)&&(this.g.L||this.g.create(),"load"==a.getId()&&this.load())};
h.HB=function(a){"load"==a.getId()&&this.loaded&&this.unload()};
h.Wr=function(){var a=this.b;eq(a.app,"endscreen",a.playerType);var a=Math.max(1E3*(this.b.getVideoData().lengthSeconds-10),0),a=new aq(a,0x8000000000000,{id:"preload",namespace:"endscreen"}),b=new aq(0x8000000000000,0x8000000000000,{id:"load",priority:6,namespace:"endscreen"});this.b.tb([a,b])};RK.prototype.destroy=function(){null!=this.g&&(this.g.canvas.remove?this.g.canvas.remove():this.g.canvas.removeNode(!0),this.g=null)};h=VK.prototype;h.Yk=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.Sk=function(){return this.g};
h.Td=function(a,b){a.uniform1i(a.getUniformLocation(b,"uSplr"),0)};
h.au=function(){};
h.jn=function(a){this.F&&(360>=hy[a]?this.C(!0):this.C(!1))};
h.Jd=function(a,b){a.texImage2D(a.TEXTURE_2D,0,a.RGBA,a.RGBA,a.UNSIGNED_BYTE,UK(this.B,b));a.drawArrays(a.TRIANGLE_STRIP,0,4)};
h.Nr=function(){return!0};
h.qf=function(){return{shader:"NoOp"}};
h.Jh=function(){};
h.destroy=function(){this.B&&this.B.destroy()};z(WK,VK);WK.prototype.Td=function(a,b,c){WK.N.Td.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)};
WK.prototype.Jd=function(a,b,c){this.o&&(a.uniform1i(this.A,this.b),this.o=!1);WK.N.Jd.call(this,a,b,c)};
WK.prototype.qf=function(){return{shader:"Anaglyph3D",displayMode:this.b}};
WK.prototype.Jh=function(a){"Anaglyph3D"==a.shader&&(void 0!=a.displayMode&&(this.b=(0,window.parseInt)(a.displayMode,10),Gj("yt-player-webgl-anaglyph-3d-display-mode",this.b),this.o=!0),this.D())};z(XK,VK);
XK.prototype.Td=function(a,b,c){XK.N.Td.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.Z.getVideoData())&&a.g&&this.jn(a.g.video.quality)};
XK.prototype.Jd=function(a,b,c){if(this.K){var d=E();1E3<d-this.A&&(this.A=d,a.uniform1f(this.o,Math.random()))}else a.uniform1f(this.o,Math.random());XK.N.Jd.call(this,a,b,c)};
XK.prototype.qf=function(){return{shader:"WhiteNoise"}};z(YK,XK);YK.prototype.Td=function(a,b,c){YK.N.Td.call(this,a,b,c);this.b=a.getUniformLocation(b,"mode");a.uniform1i(this.b,1)};
YK.prototype.Jd=function(a,b,c){this.D&&(a.uniform1i(this.b,1),this.D=!1);YK.N.Jd.call(this,a,b,c)};
YK.prototype.qf=function(){return{shader:"EdgeEnhance"}};ZK.prototype.BYTES_PER_ELEMENT=4;ZK.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]};
ZK.prototype.toString=Array.prototype.join;"undefined"==typeof window.Float32Array&&(ZK.BYTES_PER_ELEMENT=4,ZK.prototype.BYTES_PER_ELEMENT=ZK.prototype.BYTES_PER_ELEMENT,ZK.prototype.set=ZK.prototype.set,ZK.prototype.toString=ZK.prototype.toString,g.aa("Float32Array",ZK,void 0));$K.prototype.BYTES_PER_ELEMENT=8;$K.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]};
$K.prototype.toString=Array.prototype.join;if("undefined"==typeof window.Float64Array){try{$K.BYTES_PER_ELEMENT=8}catch(a){}$K.prototype.BYTES_PER_ELEMENT=$K.prototype.BYTES_PER_ELEMENT;$K.prototype.set=$K.prototype.set;$K.prototype.toString=$K.prototype.toString;g.aa("Float64Array",$K,void 0)};dL.prototype.destroy=function(){this.A=this.o=this.g=this.b=null};eL.prototype.G=function(){u5(this.b);var a=s5(this.b,this.o.channelCount),b=t5(this.b,2),c=65*Math.PI/180;this.g=new dL(this.b,this.o,a,b,0,.45,c);this.A=new dL(this.b,this.o,a,b,1,.45,-1*c);r5(this.b).connect(a);b.connect(q5.destination)};
eL.prototype.D=function(){this.g.destroy();this.A.destroy();this.A=this.g=null;u5(this.b);r5(this.b).connect(q5.destination)};
eL.prototype.F=function(a,b){this.g&&(cL(this.g,a,b),cL(this.A,a,b))};
eL.prototype.destroy=function(){this.g&&(u5(this.b),this.D())};z(fL,eL);fL.prototype.G=function(){u5(this.b);var a=s5(this.b,this.o.channelCount),b=q5.destination;b.channelCount=Math.min(6,b.maxChannelCount);b.channelInterpretation="discrete";var b=t5(this.b,6),c=Math.PI/6;this.g=new dL(this.b,this.o,a,b,0,.65,c);this.A=new dL(this.b,this.o,a,b,1,.65,-1*c);c=120*Math.PI/180;this.B=new dL(this.b,this.o,a,b,4,.65,c);this.C=new dL(this.b,this.o,a,b,5,.65,-1*c);r5(this.b).connect(a);b.connect(q5.destination)};
fL.prototype.D=function(){this.B.destroy();this.C.destroy();this.C=this.B=null;fL.N.D.call(this)};
fL.prototype.F=function(a,b){this.g&&(cL(this.g,a,b),cL(this.A,a,b),cL(this.B,a,b),cL(this.C,a,b))};hL.prototype.identity=function(){this.b.set([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1])};
hL.prototype.get=function(){return this.b};h=kL.prototype;h.Yk=function(){return"attribute vec3 aVertPos;\nvarying vec3 pos;\nvoid main() {\n  gl_Position = vec4(aVertPos.xyz, 1.0);\n  pos = aVertPos;\n}"};
h.Sk=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.Td=function(a,b){this.Oa=a.getUniformLocation(b,"uVMat");this.da=a.getUniformLocation(b,"uFOVx");this.fa=a.getUniformLocation(b,"uFOVy");this.ea=a.getUniformLocation(b,"uSplr");a.uniform1i(this.ea,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.W.experiments.aa("html5_stream_ambisonic_audio")){d.ea||(d.ea=new p5(d.b),d.ea.initialize(),H(d,d.ea));e=d.ea;var f=d.o;e.b?e.b!=f&&(u5(e),e.b=f,e.g=null):e.b=f;d=d.ea}else d=
null;d&&q5&&q5.createMediaElementSource&&d.b?(c=c.B.audio.spatialAudioType,e=q5.destination,c=6<=e.maxChannelCount&&!Zz?new fL(d,0,gL(c)):2<=e.maxChannelCount?new eL(d,0,gL(c)):null):c=null}else c=null;if(this.o=c)this.o.G(),this.o.F(this.D,this.A)};
h.au=function(){this.K=!0};
h.jn=v;
h.Jd=function(a,b){var c=this.b,d=this.g;if(this.K){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.da,this.b);a.uniform1f(this.fa,this.g);this.A=$e(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]);iL(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]);iL(e,e.o);a.uniformMatrix4fv(this.Oa,
!1,this.B.get());this.K=!1}e=E();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,D;1==n?(u=k.o,D=k.F,y=l):(u=k.D,D=k.C,y=m);var A=0!=k.b.length;if(A){var Q=150<=k.b.length;if(k.A!=n||.5<y-D||y<D||Q){t=null;if(5<=k.b.length){for(var t=k.b,A=Array(2*t.length),I=Q=0,P=0;P<t.length;++P)A[P]=t[P].x-Q&255,A[P+t.length]=t[P].y-I&255,Q=t[P].x,I=t[P].y;Q=Iea(A);t=k.o;
A=1==k.A?k.g:0;Q=pE(Q,!0);I="";for(P=Q.length-1;0<=P&&"."==Q.charAt(P);--P)I+="=";Q=Q.substring(0,Q.length-I.length)+I;t={start:t,duration:A,data:Q}}k.b=[];k.g=0;A=!1}}if(1==n||2==n||3==n){if(A)for(u=u+k.g+.2;u<y;){Q=(u-D)/(y-D);k.g+=.2;var A=k.B,I=f,P=Q,Q=new window.Float32Array(3),ab=aL(A),ib=aL(I),kb=(A[0]*I[0]+A[1]*I[1]+A[2]*I[2])/(ab*ib);if(.999999<kb)ab=A[0],ib=A[1],A=A[2],Q[0]=(I[0]-ab)*P+ab,Q[1]=(I[1]-ib)*P+ib,Q[2]=(I[2]-A)*P+A;else{var wb,hg;-.999999>kb?(kb=new window.Float32Array(3),wb=
(ab+ib)/2,A[0]?(wb/=Math.sqrt(A[0]*A[0]+A[1]+A[1]),kb[0]=-A[1]*wb,kb[1]=A[0]*wb,kb[2]=0):(wb/=Math.sqrt(A[2]*A[2]+A[1]+A[1]),kb[0]=0,kb[1]=-A[2]*wb,kb[2]=A[1]*wb),.5>=P?(ib=ab,I=kb,P*=2):(A=kb,P=2*P-1),wb=Math.PI/2,hg=1):(wb=Math.acos(kb),hg=Math.sqrt(1-kb*kb));kb=Math.sin((1-P)*wb)/hg/ab;wb=Math.sin(P*wb)/hg/ib;P=(1-P)*ab+P*ib;Q[0]=(A[0]*kb+I[0]*wb)*P;Q[1]=(A[1]*kb+I[1]*wb)*P;Q[2]=(A[2]*kb+I[2]*wb)*P}A=Q;k.b.push(jL(A));u+=.2}else k.o=l,k.D=m,k.b.push(jL(f)),k.g=0;k.B=f;k.F=l;k.C=m;k.A=n}k=t;k&&
(f=WI(this.F.app))&&f.o&&(f=f.o.g,l=k.start,m=k.duration,k=k.data,du(f,fu(f.b),"dir",[l.toFixed(3),m.toFixed(3),k]))}(this.ca!=this.b||this.$!=this.g)&&3E4<e-this.ba&&c==this.b&&d==this.g&&(this.ca=this.b,this.$=this.g,this.ba=e,(c=WI(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),du(c,fu(c.b),"fov",[d,e])));a.texImage2D(a.TEXTURE_2D,0,a.RGBA,a.RGBA,a.UNSIGNED_BYTE,UK(this.L,b));a.drawArrays(a.TRIANGLE_STRIP,0,4)};
h.Nr=function(){return!1};
h.qf=function(){return{shader:"Spherical",yaw:this.D,pitch:this.A,fov:this.C}};
h.Jh=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=$e(a.fov,.32,1.05)),this.o&&this.o.F(this.D,this.A),this.K=!0,this.S()};
h.destroy=function(){this.L&&this.L.destroy();this.o&&this.o.destroy()};z(lL,kL);h=lL.prototype;h.Yk=function(){return"attribute vec3 aVertPos;\nvarying vec3 pos;\nvoid main() {\n  gl_Position = vec4(aVertPos.xyz, 1.0);\n  pos = aVertPos;\n}"};
h.Sk=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.Td=function(a,b,c){lL.N.Td.call(this,a,b,c);this.O=a.getUniformLocation(b,"mode");a.uniform1i(this.O,this.G)};
h.Jd=function(a,b,c,d){this.M&&(a.uniform1i(this.O,this.G),this.M=!1);lL.N.Jd.call(this,a,b,c,d)};
h.qf=function(){var a=lL.N.qf.call(this);a.shader="Spherical3D";a.displayMode=this.G;return a};
h.Jh=function(a){void 0!=a.displayMode&&(this.G=(0,window.parseInt)(a.displayMode,10),Gj("yt-player-webgl-spherical-3d-display-mode",this.G),this.M=!0,this.S());lL.N.Jh.call(this,a)};mL.prototype.L=function(){this.K=!1;if(this.o&&(this.A.videoWidth||this.A.videoHeight)){if(0==this.H){var a=Ix(Jx(this.Z));if(!ng(this.C,a)){this.C=a;var b,c,d,a=Jx(this.Z).Ka();this.b.Nr()?("Anaglyph3D"!=this.ba?b=!1:(b=SK(Jx(this.Z)),c=this.Z.getVideoData(),b=(0,window.isNaN)(b)||c.Kd("yt:stretch")||c.Kd("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 lg(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.au()}}this.b.Jd(this.o,this.A,this.M,this.ca)}this.B&&this.F()};
mL.prototype.$=function(a){this.G!=a&&this.g&&((this.G=a)?(this.D.appendChild(this.g),this.F(),EA||(this.A.style.display="none")):(Hf(this.g),this.A.style.display=""))};
mL.prototype.F=function(){!this.K&&this.G&&((0,window.requestAnimationFrame)(this.L.bind(this)),this.K=!0)};z(g.nL,vK);
g.nL.b=function(a){var b=T(a).o.c.toLowerCase(),c=a.getVideoData();a=T(a);return(a.experiments.A||FA(a))&&qF(c)?"Anaglyph3D":(a.experiments.o||FA(a))&&pF(c)?"Spherical":(a.experiments.aa("html5_enable_spherical3d")||FA(a))&&oF(c)?"Spherical3D":a.experiments.aa("enable_webgl_noop")&&"web"==b&&DA(a)?"NoOp":(a.experiments.aa("enable_white_noise")||a.experiments.aa("white_noise_with_interval"))&&"web"==b&&(DA(a)||a.C&&Zz&&!CA&&yc(38))?"WhiteNoise":a.experiments.aa("enable_edge_enhance")&&"web"==b&&DA(a)?
"EdgeEnhance":null};
h=g.nL.prototype;h.dH=function(){var a=this.g;a.B||(0,window.requestAnimationFrame)(a.L.bind(a))};
h.YC=function(a){var b=this.g;b.b&&b.b.jn(a)};
h.cH=function(a){var b=this.g,c=b.B;b.B=R(a.state,8);b.B&&!c&&b.F()};
h.load=function(){g.nL.N.load.call(this);this.A.Ca(Jx(this.b).o);this.g=new mL(this.Z,g.nL.b(this.Z),this.A.element);this.o.U(this.b,"resize",this.dH);this.o.U(this.b,"onPlaybackQualityChange",this.YC);this.o.U(this.b,"presentingplayerstatechange",this.cH);var a;a:{a=this.g;a.b=null;var b=a.$.bind(a),c=x(a.F,a),d=!1;switch(a.ba){case "Anaglyph3D":a.b=new WK(a.Z,c);break;case "Spherical":a.b=new kL(a.Z,c);break;case "WhiteNoise":a.b=new XK(a.Z,b);d=!0;break;case "EdgeEnhance":a.b=new YK(a.Z,b);break;
case "NoOp":a.b=new VK(a.Z,!0,b);break;case "Spherical3D":a.b=new lL(a.Z,c)}if(a.b){a.H=Lea(a,d);if(0==a.H){a.G&&!EA&&(a.A.style.display="none");a=!0;break a}a.Z.app.g.Ah(new XE("html5.missingapi.webgl",!1,void 0))}a=!1}a?(gq(this.b,"webgl"),this.b.Aa("onApiChange")):(gq(this.b,"webgl"),this.unload())};
h.unload=function(){g.nL.N.unload.call(this);var a=this.g;a.g&&(Hf(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();Fw(this.o)};g.aa("yt.player.modules.WebGlModule",g.nL,void 0);g.aa("yt.player.modules.EndScreenModule",g.PK,void 0);z(pL,G);var Mea={webgl:"yt.player.modules.WebGlModule",endscreen:"yt.player.modules.EndScreenModule"};h=pL.prototype;h.Oo=function(){this.o=this.o||qL(this,"endscreen",this.Oo,KF(this))};
h.Qo=function(){var a;if(!(a=this.g)){a=this.Qo;var b=T(this.Z),c;if(c=FA(b)||b.experiments.aa("html5_enable_spherical3d")||b.experiments.aa("enable_webgl_noop")||b.experiments.o||b.experiments.A)c=this.Z.getVideoData(),c=pF(c)||oF(c)||qF(c)||b.experiments.aa("enable_edge_enhance")||b.experiments.aa("enable_white_noise")||b.experiments.aa("white_noise_with_interval");a=qL(this,"webgl",a,c)}this.g=a};
h.Dx=function(a){var b;var c=ma(a);b=this.G[c];if(!b&&(b=a(this.Z))){a=this.G[c]=b;for(var d in this.D)a.subscribe(d,this.D[d]);H(this,b)}b&&b.xb(this.Z)&&!fb(this.b,b)&&(this.b.push(b),b.create(),fb(this.C,b.Ma)&&(b.F=this.F,b.Wi(!!b.F)))};
h.JE=function(a,b){F(this.b,function(c){c.Y(a,b)})};
h.isAvailable=function(a){a=$I(this,a);return!(!a||!a.fa)};z(vL,Error);vL.prototype.vb=function(){return this.g};
vL.prototype.Fb=function(){return this.B};
vL.prototype.toString=function(){return"AdError "+this.vb()+": "+this.b+(null!=this.A?" Caused by: "+this.A:"")};z(wL,lc);wL.prototype.getError=function(){return this.o};var B0="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(" "),
nta="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(xL,lc);xL.prototype.ub=function(){return this.o};
var Vka={MI:"adCanPlay",nK:"contentPauseRequested",oK:"contentResumeRequested",Sj:"click",hP:"videoClicked",Cn:"engagedview",cL:"expandedChanged",nO:"start",Wh:"impression",Pn:"measurable_impression",ko:"viewable_impression",Hn:"fully_viewable_audible_half_duration_impression",dL:"externalActivityEvent",PAUSED:"pause",ON:"resume",Gn:"firstquartile",Qn:"midpoint",ho:"thirdquartile",yn:"complete",UK:"durationChange",AJ:"autoClose",aP:"userClose",bP:"userRecall",vN:"prefetched",LOADED:"loaded",oJ:"allAdsCompleted",
ao:"skip",yw:"skipshown",XL:"linearChanged",hO:"skippableStateChanged",NI:"adMetadata",LI:"adBreakReady",hM:"log",VOLUME_CHANGED:"volumeChange",pP:"mute",dK:"companionBackfill",CP:"youTubeVideoMetadata",BP:"youTubeChannelMetadata",$O:"urlNavigationRequested",OO:"trackingUrlPinged",dP:"video_card_endcap_action",eP:"video_card_endcap_collapse",fP:"video_card_endcap_dismiss",gP:"video_card_endcap_impression",yP:"why_this_ad_url",xP:"why_this_ad_got_it",SM:"MUTE_AD",gK:"companionInitialized",fK:"companionImpression",
eK:"companionClick",nM:"mediaUrlPinged"};var UL={Pv:5E3,Qv:15E3,pw:"://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(" "),qw:/\bocr\b/,Ek:0,ne:{},cF:function(a,b,c){a&&(UL.hq(a)?UL.ts(a,b):UL.hj(a,b,c))},
hq:function(a){return B(C(a))?!1:0<=a.indexOf("://pagead2.googlesyndication.com/pagead/gen_204?id=yt3p&sr=1&")||(new M(a)).F().match(UL.qw)?!0:null!=bb(UL.pw,function(b){return null!=a.match(b)})},
ts:function(a,b){if(a){var c='javascript:"data:text/html,<body><img src=\\"'+a+'\\"></body>"';b?UL.fq(function(b){UL.ls(b?c:'javascript:"data:text/html,<body><object data=\\"'+a+'\\" width=1 height=1 style=\\"visibility:hidden;\\"></body>"')}):UL.ls(c)}},
ls:function(a){var b=L("IFRAME",{src:a,style:"display:none"});a=lf(b).body;var c,d=de(function(){cd(c);Hf(b)},UL.Qv);
c=ad(b,["load","error"],function(){de(function(){ee(d);Hf(b)},UL.Pv)});
a.appendChild(b)},
fq:function(a,b){var c=UL.ne.imageLoadingEnabled;if(null!=c)a(c);else{var d=!1,c=function(b,c){delete UL.ne[c];d||(d=!0,null!=UL.ne.imageLoadingEnabled||(UL.ne.imageLoadingEnabled=b),a(b))};
b?b(c):UL.rA(c)}},
rA:function(a){var b=new window.Image,c,d=""+UL.Ek++;UL.ne[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=="},
bF:function(a){if(a){var b=Cf("OBJECT");b.data=a;b.width=1;b.height=1;b.style.visibility="hidden";var c=""+UL.Ek++;UL.ne[c]=b;b.onload=b.onerror=function(){delete UL.ne[c]};
window.document.body.appendChild(b)}},
ms:function(a){if(a){var b=new window.Image,c=""+UL.Ek++;UL.ne[c]=b;b.onload=b.onerror=function(){delete UL.ne[c]};
b.src=a}},
hj:function(a,b,c){if(a){if(c)try{if(q.navigator&&q.navigator.sendBeacon&&q.navigator.sendBeacon(a,""))return}catch(d){}b?UL.fq(function(b){b?UL.ms(a):UL.bF(a)}):UL.ms(a)}}};BL.prototype.b=function(){return this.G};
var V=new BL;var CV=["ADSENSE","ADSENSE/ADX"],mia=["DART","DART_DFA","DART_DFP"],wia=["FREEWHEEL","YT:FREEWHEEL"],VU=["SHOPPING","YT:SHOPPING"],$U=["GDFP"],lia=["VIRAL","ADSENSE-VIRAL"],kT={"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"},QZ={xM:"video/mp4",zM:"video/mpeg",kM:"application/x-mpegURL",YM:"video/ogg",zO:"video/3gpp",sP:"video/webm",wM:"audio/mpeg",
yM:"audio/mp4"};CL.prototype.aa=function(){return!1};
CL.prototype.b=function(){return window.NaN};
CL.prototype.g=function(){return""};DL.prototype.getId=function(){return this.xa};EL.prototype.getId=function(){return this.xa};var HL=null;var Iga=["*.googlesyndication.com","gcdn.2mdn.net"],Yea=["*.youtu.be","*.youtube.com"],afa="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(" "),$ea=["c.googlesyndication.com"],
cka=["googleads.g.doubleclick.net","pubads.g.doubleclick.net"];WL.prototype.vb=function(){return this.errorCode};
var mka=new WL("Unable to request ads from server. Cause: {0}.",1005),dka=new WL("Unable to request ads from server due to network error.",1012),tW=new WL("Cannot parse the {0} value for the adslist response: {1}.",900),EZ=new WL("Invalid usage of the API. Cause: {0}",900),S_=new WL("Asset fallback ad replacement failed.",1021),T_=new WL("Asset fallback no ad replacement.",1021),JZ=new WL("Unable to display one or more required companions.",602),GY=new WL("There was a problem requesting ads from the server.",
1005),G$=new WL("There was a problem requesting the biscotti ID.",1005),bka=new WL("Ad tag URI {0} is invalid. It must be properly encoded before being passed.",1013),hY=new WL("The provided ad type: {0} is not supported.",1005),qR=new WL("The provided {0} information: {1} is invalid.",1101),ota=new WL("The provided skip offset was invalid.",1105),pta=new WL("The extension contained is neither skippable nor nonskippable.",1105),NT=new WL("The response does not contain any valid ads.",1009),qta=new WL("The overlay ad content could not be displayed since creative dimensions do not align with display area.",
501),Oia=new WL("The ad playlist response was malformed or empty.",1010),uW=new WL("The ad response was not understood and cannot be parsed.",1010),gka=new WL("An unexpected error occurred and the cause is not known. Refer to the inner error for more info.",900),lla=new WL("The ad response contains unexpected element. Cause {0}.",1010),QY=new WL("No assets were found in the VAST ad response.",200),cia=new WL("Duplicate node in <{0}>: {1}",101),KX=new WL("The VAST response document is empty.",1009),
Ska=new WL("Linear assets were found in the VAST ad response, but none of them matched the video player's capabilities.",403),MT=new WL("Ad request reached a timeout.",301),LX=new WL("VAST response was malformed and could not be parsed.",100),H$=new WL("VAST media file loading reached a timeout of {0} seconds.",402),OT=new WL("Ad request could not be completed due to a network error.",301),rta=new WL("Non linear assets were found in the VAST ad response, but none of them matched the video player's capabilities.",
503),Tha=new WL("The maximum number of VAST wrappers ({0}) has been reached.",302),sta=new WL("VAST media file duration differs from the VAST response duration by {0} seconds.",202),N_=new WL("Video player received an ad with unexpected or incompatible linearity",201),bia=new WL("Unknown node in <{0}>: {1}",101),mja=new WL("Invalid VAST resource type: {0}",101),Dja=new WL("Invalid VAST version",102),Uha=new WL("No additional VAST wrappers allowed.",300),TT=new WL("No Ads VAST response after one or more Wrappers",
303),U_=new WL("There was an error playing the video ad.",400),zja=new WL("VMAP unsupported node in <{0}>: {1}",1010),m_=new WL("An unexpected error occurred within the VPAID creative. Refer to the inner error for more info.",901);var MR="abort canplay canplaythrough durationchange emptied loadstart loadeddata loadedmetadata progress ratechange seeked seeking stalled suspend waiting".split(" ");var kM={},mM="",vQ=/OS (\S+) like/,iM=/Android ([\d\.]+)/;qM.prototype.reset=function(){this.b=0;this.g=null};sM.prototype.reset=function(){this.g=this.b=null};var BM=new xM;xM.prototype.clear=function(){this.b=wM();this.C=this.H=this.g=null;this.B=wM();this.A=null;this.S=this.D=this.G="";this.F=this.O=this.o=null;this.ba=!1};ba(AM);var efa="function"==typeof window.Uint8Array,FM=[];EM.prototype.toString=function(){IM(this);return this.o.toString()};
EM.prototype.getExtension=function(a){if(this.g){this.b||(this.b={});var b=a.o;if(a.A){if(a.g())return this.b[b]||(this.b[b]=N(this.g[b]||[],function(b){return new a.b(b)})),this.b[b]}else if(a.g())return!this.b[b]&&this.g[b]&&(this.b[b]=new a.b(this.g[b])),this.b[b];
return this.g[b]}};z(JM,EM);z(KM,EM);z(LM,EM);LM.prototype.getStyle=function(){return HM(this,MM,1)};
z(MM,EM);z(NM,EM);h=OM.prototype;h.ax=!1;h.so=!1;h.uo=!0;h.If=null;h.bitrate=-1;h.Xf=null;h.Ix=!1;h.bh=null;h.surveyCreativeData=null;h.AF=!0;h.Em=!1;h.BF=!1;h.Fm=!1;h.Gm=!1;h.Qs=!1;h.Rs=!0;h.CF=!0;h.lk=!1;h.Jx=!1;h.MF=0;h.showContentThumbnail=!0;h.Dm=!1;h.lg=null;h.Qd=15E3;h.vo=!0;h.Mr=0;h.am=-1;h.Dp=null;window.console&&"function"===typeof window.console.log&&x(window.console.log,window.console);var WM=null;SM.prototype.getValue=function(){return this.b};
SM.prototype.g=function(){return String(this.b)};
z(TM,SM);TM.prototype.g=function(){return this.b?"1":"0"};
z(UM,SM);UM.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)):""};
RM.prototype.setItem=function(a){this.b[a.B]=a};
RM.prototype.getItem=function(a){return ec(this.b,a,null)};aN.prototype.remove=function(a){dc(this.b,a)};
aN.prototype.set=function(a,b){this.b[a]=b};
aN.prototype.get=function(a){return ec(this.b,a,null)};new be(200);var I$={currentTime:1,duration:2,isVpaid:4,volume:8,isYouTube:16,isPlaying:32},JP={eo:"start",Gn:"firstquartile",Qn:"midpoint",ho:"thirdquartile",yn:"complete",cw:"metric",PAUSE:"pause",tw:"resume",ao:"skip",ko:"viewable_impression",gw:"mute",Hw:"unmute",Uj:"fullscreen",Av:"exitfullscreen",Hn:"fully_viewable_audible_half_duration_impression",Pn:"measurable_impression",Wu:"abandon",Cn:"engagedview",Wh:"impression",tv:"creativeview",LOADED:"loaded"},yga="start firstquartile midpoint thirdquartile resume loaded".split(" "),
Sfa=["abandon"],KP={UNKNOWN:-1,eo:0,Gn:1,Qn:2,ho:3,yn:4,cw:5,PAUSE:6,tw:7,ao:8,ko:9,gw:10,Hw:11,Uj:12,Av:13,Hn:14,Pn:15,Wu:16,Cn:17,Wh:18,tv:19,LOADED:20},IO={lP:1,vJ:2,tJ:4,Uj:8,CJ:16,BJ:32,uJ:64,rK:128,gN:256};var IN=window.document,X=window;var ega=/https?:\/\/[^\/]+/;rN.prototype.b=function(a,b,c,d,e){try{var f=e||this.B,k=new kN;k.B=!0;mN(k,1,"context",a);b instanceof sN||(b=tN(b));mN(k,2,"msg",b.message.substring(0,512));b.b&&mN(k,3,"file",b.b);0<b.g&&mN(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=hN();l.g&&mN(k,6,"top",l.g.url||"");mN(k,7,"url",l.b.url||"");qN(this.o,f,k,!1,c)}catch(m){try{qN(this.o,f,{context:"ecmserr",rctx:a,msg:xN(m),url:l.b.url},!1,c)}catch(n){}}return this.g};var EN,vN,CN,BN=[],zN=1E-6>Math.random(),AN=!(!X.performance||!X.performance.now);EN=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()};
vN=new rN(EN,"jserror",!0);var ofa=vN.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$=KN(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$=KN(a.enabledPlugin.description);return}try{var b=new window.ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");J$=
!0;K$=KN(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$=KN(b.GetVariable("$version"))}catch(c){}})();
var AS=J$,XN=K$;var UN={},VN=null;UN.le=0;UN.nt=2;UN.Fr=3;var SO=0,rfa=(new Date).getTime(),NN=-1,PN=!1,QN=-1,RN=-1;UN.Po=5;UN.me=1;UN.om=4;if(IN&&IN.URL){var eN=IN.URL,tta=!(eN&&0<kfa().length);vN.g=tta};$N.prototype.getStatus=function(){return this.b};
z(cO,$N);var hO={UO:-1,LOADING:0,Iv:1,ov:2,Sv:3,VISIBLE:4},Bfa={LOADING:0,Iv:1,ov:2,GO:3,XM:4,RO:5,SO:6,QO:7,$M:8,FO:9},kO={};dO.prototype.F=function(a,b){if(!this.b)return!1;this.b.style.position="absolute";eO(this,b);var c=!0;try{a.appendChild(this.b)}catch(d){c=!1}return c};
dO.prototype.D=function(a,b){if(!this.b||!a.parentNode)return!1;this.b.style.position="fixed";eO(this,b);var c=!0;try{a.parentNode&&a.parentNode.insertBefore(this.b,a.nextSibling)}catch(d){c=!1}return c};
dO.prototype.remove=function(){if(this.b)try{Hf(this.b)}catch(a){}this.b=null};
dO.prototype.G=function(a){this.o=a?3:4};
g.aa("gteh",FN("osd_or_lidar::gteh_ex",function(a,b){var c=kO[a];ha(c)&&c(b)}),void 0);
var Gfa={Sv:0,VISIBLE:1},uta=new ef(-99999,0);nO.prototype.ba=function(){var a=pO(this);if(null===a)rO(this);else if(null===this.A)this.A=a,rO(this);else{var b=a-this.A;this.A=a;0==(4<=b?1:0)?(rO(this),oO(this,0)):(eO(this.g,uta),this.F=X.setTimeout(GN("osd_or_lidar::sfm_cpto",x(this.S,this)),125))}};
nO.prototype.S=function(){var a=pO(this),b=a-this.A;this.A=a;a=4<=b?1:0;rO(this);oO(this,0==a?1:0)};
z(tO,$N);tO.prototype.H=function(){var a=Ifa(this);this.C!=a&&(this.C=a,this.F(a))};ba(MN);var xO=new jg(0,0,0,0);h=yO.prototype;
h.Re=function(a,b,c,d,e,f,k){k=this.mp(c,k||{});var l=this.K,m,n;ga(b)?n=this.Qg(b):(m=b,n=this.Qg(a,m));f&&(l.A=Math.max(l.A,n));f=HN(IN);this.ia=0==f?-1:1==f?0:1;f=CO(n);var t=CO(this.o);ga(b)||(this.ga=new gf(m.right-m.left,m.bottom-m.top));this.Cm(f,k,t,e,d,m);this.o=d?0:n;this.jb=c;0<n&&(0>l.C&&(l.C=c),l.F=c);-1==this.Zd&&this.Ke()&&(this.Zd=c);-2==this.Mb&&(this.Mb=a&&a!=xO&&0!=this.ba&&this.ga&&this.ga.height&&this.ga.width?this.Qg(a,new jg(0,this.ga.width,this.ga.height,0)):-1);this.Cd(this)};
h.mp=function(a){a=a-this.jb||1;return 1E4<a?1:a};
h.Qg=function(a,b){if(ga(a))return a;if(b){var c;c=null===a||null===b?xO.clone():new jg(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.ba||0>=c.ib()||0>=c.getHeight()?0:(c.bottom-c.top)*(c.right-c.left)/this.ba}return 0};
h.ik=function(a,b){var c=this.K;-1!=a&&(c.B[a]+=b)};
h.hk=function(a,b){var c=this.K;-1!=a&&(c.b[a]+=b,c.b[a]>c.o[a]&&(c.o[a]=c.b[a]))};
h.gk=function(a){-1!=a&&(this.K.b[a]=0)};
h.Cm=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.ik(c,b);d=this.K;f=f||null;k=this.ba;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.hk(f,b);for(f=0;4>=f;++f)(f<a||e||-1==a)&&this.gk(f)};
h.Kl=function(){return!1};
h.Ke=function(){return!1};z(LO,yO);h=LO.prototype;
h.Re=function(a,b,c,d,e,f,k){k=k||this.kb(this)||{};this.M=k.duration||this.M;this.Db=k.isVpaid||this.Db;this.na=f;this.Oa=k.volume;MO(this.Oa)||(this.ve++,MO(this.H)&&(this.Oa=this.H));LO.N.Re.call(this,a,b,c,d,e,f,k);-1==this.Xa&&this.Bc&&(this.Xa=this.ab);(a=this.Ke())&&JO(this.D,1);MO(this.H)&&JO(this.D,2);this.va&&JO(this.D,4);this.B&&JO(this.D,8);-1!=this.ia&&(JO(this.D,16),1==this.ia&&JO(this.D,32));this.va&&a&&JO(this.D,64);this.na&&JO(this.D,128);this.na&&0<this.o&&JO(this.D,256)};
h.mp=function(a,b){var c=p(b.currentTime)?b.currentTime:this.Ba,d=NO(this,a),e=c-this.Ba,f=b.isYouTube,k=p(b.isPlaying)?b.isPlaying:!0;2!=this.Sa?(0<=e?(this.Na+=d,this.ka+=Math.max(d-e,0),this.ea=Math.min(e,this.Na)):(this.kc+=Math.abs(e),this.ea=0),0!=e&&(this.Na=0),-1==this.oa&&0<e&&(this.oa=0<=RN?ON()-RN:-1)):(k||this.O||(this.ka+=d),-1==this.oa&&k&&(this.oa=0<=RN?ON()-RN:-1));this.Ba=c;if(f){if(1==this.Sa)return this.ea;if(2==this.Sa)return k?d:0}return NO(this,a)};
h.Qg=function(a,b){return this.Bd?0:this.B?1:LO.N.Qg.call(this,a,b)};
h.ik=function(a,b){LO.N.ik.call(this,a,b);this.gc[a]+=this.ea;if(2>=a){var c=this.G;c.C+=b;this.fa+=this.ea}};
h.hk=function(a,b){LO.N.hk.call(this,a,b);this.ra[a]+=this.ea;this.ra[a]>this.Tb[a]&&(this.Tb[a]=this.ra[a])};
h.gk=function(a){LO.N.gk.call(this,a);this.ra[a]=0};
h.Cm=function(a,b,c,d,e,f){if(!this.O){LO.N.Cm.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.ab+=b;this.Ce&&(this.zb+=b,this.Ia+=b);this.Ce=this.B;this.va=(c=MO(this.Oa)&&.1<=this.Oa)&&MO(this.H)&&.1<=this.H;d=this.G;a=-1!=e&&2>=e;if(this.va){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.Oa;this.H=p(b)?Number(b)?HO(b,3):0:b}};
h.Kl=function(){return!0};
h.Ke=function(){var a=this.K;return 2E3<=Math.max(a.b[2],a.o[2])};var UO=null,YO=null,ZO=null,aP=null,qP=null,TO=!1,rP=[],sP=[],nP=!1,oP=null,jP=0,iP=!1,kP=!1,WO=!1,VO=!1,lP=!1,mP=!1,gP=bM()||cM(),Xfa=0;z(tP,gfa);tP.prototype.reset=function(){this.b[0]=1732584193;this.b[1]=4023233417;this.b[2]=2562383102;this.b[3]=271733878;this.A=this.o=0};
tP.prototype.update=function(a,b){p(b)||(b=a.length);for(var c=b-this.g,d=this.B,e=this.o,f=0;f<b;){if(0==e)for(;f<=c;)uP(this,a,f),f+=this.g;if(w(a))for(;f<b;){if(d[e++]=a.charCodeAt(f++),e==this.g){uP(this,d);e=0;break}}else for(;f<b;)if(d[e++]=a[f++],e==this.g){uP(this,d);e=0;break}}this.o=e;this.A+=b};
tP.prototype.digest=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 MP={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"},tga={c:xP("c"),at:"at",atos:BP("atos",[0,2,4]),ta:yP(),a:"a",dur:"dur",p:"p",tos:AP(),j:"dom",mtos:BP("mtos",[0,2,4]),gmm:"gmm",ss:xP("ss"),vsv:ld("w1"),t:"t"},wga={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:xP("c"),at:"at",atos:BP("atos",[0,2,4]),avt:BP("atos",[2]),dav:"dav",ta:yP(),a:"a",dur:"dur",p:"p",tos:AP(),j:"dom",
mtos:BP("mtos",[0,2,4]),gmm:"gmm",ss:xP("ss"),vsv:ld("w1"),t:"t"},uga={a:"a",tos:AP(),at:"at",c:xP("c"),mtos:BP("mtos",[0,2,4]),dur:"dur",fs:"fs",p:"p",vpt:"vpt",vsv:ld("ias_w1"),dom:"dom",gmm:"gmm",t:"t"},vga={tos:AP(),at:"at",c:xP("c"),mtos:BP("mtos",[0,2,4]),p:"p",vpt:"vpt",vsv:ld("dv_w1"),gmm:"gmm",dom:"dom",t:"t"};var DP=null,FP="",EP=!1;h=CP.prototype;h.Zk=function(){};
h.vp=v;h.Ur=v;h.Ho=v;h.po=v;h.ol=function(a){if(a){if(!a.xe){var b=QO(a,"start"),b=LP(b,MP),c=DP||X,d=[];d.push("v=464v");d.push("r=fp");d.push("efm="+(this.g?1:0));d.push("esfm="+(this.o?1:0));d.push(b);d.push(gga(c));pN(X,("//pagead2.googlesyndication.com/pagead/gen_204?id=lidarvf&"+d.join("&")).substring(0,2E3),void 0);a.xe=!0}a.Ja=!0;this.km(a)}};
h.dz=function(a){a.Xd++;OO(a,0);.1<=a.H&&(a.G.D=!0);return QO(a,"start")};
h.Ty=function(a){OO(a,1);eP([a],!RO());return QO(a,"firstquartile")};
h.Yy=function(a){OO(a,2);a.Bc=!0;eP([a],!RO());return QO(a,"midpoint")};
h.ez=function(a){OO(a,3);eP([a],!RO());return QO(a,"thirdquartile")};
h.Py=function(a){OO(a,4);eP([a],!RO());var b=QO(a,"complete");a.B=!1;HP(a.C);return b};
h.$y=function(a){return GP(a,"pause")};
h.Oy=function(a){return GP(a,"abandon")};
h.az=function(a){var b=RO();a.O&&!b&&(a.G.g=ON());eP([a],!b);a.O=!1;return QO(a,"resume")};
h.gz=function(a){var b=QO(a,"viewable_impression");a.Be=!0;return b};
h.bz=function(a){var b=!RO();eP([a],b);b=QO(a,"skip");a.B=!1;HP(a.C);return b};
h.Zy=function(a){eP([a],!RO());return QO(a,"mute")};
h.fz=function(a){eP([a],!RO());return QO(a,"unmute")};
h.Uy=function(a){a.B=!0;eP([a],!RO());return QO(a,"fullscreen")};
h.Sy=function(a){a.B=!1;eP([a],!RO());return QO(a,"exitfullscreen")};
h.Vy=function(a){return QO(a,"fully_viewable_audible_half_duration_impression")};
h.Xy=function(a){return QO(a,"measurable_impression")};
h.Ry=function(a){return QO(a,"engagedview")};
h.Wy=function(a){return QO(a,"impression")};
h.Qy=function(a){return QO(a,"creativeview")};
h.nl=function(a){a.Ke()&&!a.ed&&this.Ur(a);this.Ho(a)};
h.km=v;var RP=(new Date).getTime(),TP=!1,UP=!1,VP=!1,nga=[function(a){return!(!a.chrome||!a.chrome.webstore)},
function(a){return!!a.document.documentMode},
function(a){return!!a.document.fonts.ready},
function(){return SP(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 SP(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 SP(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 SP(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 SP(4)},
function(a){return"srcset"in a.document.createElement("img")},
function(){return UP},
function(){return VP},
function(){return SP(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 SP(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]||QP(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 QP(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 SP(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 QP(a.CSS.supports)},
function(){return QP(window.Intl.Collator)},
function(a){return QP(a.document.createElement("dialog").show)},
function(){return SP(8)},
function(a){return QP(a.document.createElement("div").animate([{transform:"scale(1)",Mx:"ease-in"},{transform:"scale(1.3)",Mx:"ease-in"}],{duration:1300,PP:1}).reverse)},
function(a){return QP(a.document.createElement("div").animate)},
function(a){return QP(a.document.documentElement.webkitRequestFullScreen)},
function(a){return QP(a.navigator.getBattery)},
function(a){return QP(a.navigator.permissions.query)},
function(){return!1},
function(){return SP(9)},
function(){return QP(window.webkitRequestAnimationFrame)},
function(a){return QP(a.BroadcastChannel.call)},
function(a){return QP(a.FontFace)},
function(a){return QP(a.Gamepad)},
function(){return SP(10)},
function(a){return QP(a.MutationEvent)},
function(a){return QP(a.MutationObserver)},
function(a){return QP(a.crypto.getRandomValues)},
function(a){return QP(a.document.body.createShadowRoot)},
function(a){return QP(a.document.body.webkitCreateShadowRoot)},
function(a){return QP(a.fetch)},
function(){return SP(11)},
function(a){return QP(a.navigator.serviceWorker.register)},
function(a){return QP(a.navigator.webkitGetGamepads)},
function(a){return QP(a.speechSynthesis.speak)},
function(a){return QP(a.webkitRTCPeerConnection)},
function(a){return a.CSS.supports("--fake-var","0")},
function(){return SP(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 SP(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 SP(14)},
function(a){return"undefined"==typeof a.navigator.UP},
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")}],oga=[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}],pga=[function(a){return a.navigator.userAgent},
function(a){return a.navigator.platform},
function(a){return a.navigator.vendor}];z(WP,CP);ba(WP);h=WP.prototype;h.Zk=function(a,b){MN.getInstance();var c;b.opt_adElement?c=jga(this,a,b.opt_adElement):(c=sga(this,a,b.opt_sdkID||""))||(c=Zfa(a)||void 0);c&&c.kb==v&&(c.kb=x(this.po,this));return c};
h.po=function(a){MN.getInstance();a.b=0;a.Ta=0;var b;if("as"==a.L){var c="getVideoMetadata"+a.rg;if(ha(a.element[c]))try{b=a.element[c]()}catch(e){a.b|=4}else a.b|=2}else if("h"==a.L)if(c=r("ima.common.getVideoMetadata"),ha(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:bc(b)?a.b|=32:null!=b.errorCode&&(a.Ta=b.errorCode,a.b|=64):a.b|=8);null!=b||(b={});c=b;a.Da=0;for(var d in I$)null==c[d]&&(a.Da|=I$[d]);null!=c.currentTime||a.Dd++;PP(c,"currentTime");PP(c,"duration");
return b};
h.Ur=function(a){YP(a,"viewable_impression")&&(a.ed=!0)};
h.Ho=function(a){var b=a.G.A[0];(15E3<=b||a.Bc&&(-1!=a.M?b>=a.M/2:-1!=a.Xa&&b>=a.Xa))&&!a.Ad&&YP(a,"fully_viewable_audible_half_duration_impression")&&(a.Ad=!0)};
h.vp=function(a){MN.getInstance();a.Ae||a.Ja||!YP(a,"measurable_impression")||(a.Ae=!0)};
h.nl=function(a){MN.getInstance();WP.N.nl.call(this,a)};
h.km=function(){MN.getInstance()};
g.aa("Goog_AdSense_Lidar_sendVastEvent",FN("lidar::handlevastevent_ex",bQ,void 0,function(){return{v:"464","if":MN.getInstance().g?"1":"0",nas:String(rP.length)}}),void 0);
g.aa("Goog_AdSense_Lidar_getViewability",wN("lidar::getviewability_ex",function(a,b){var c;c=WP.getInstance();var d={};jc(d,{opt_adElement:void 0,opt_fullscreen:void 0},b||{});d.opt_bounds?c=$P(OP("ol")):(EP?c=OP("ue"):(c=c.Zk(a,d))?(d=OP(),jc(d,PO(c,!0,!1)),c=d):c=OP("nf"),c=$P(c));return c},void 0,void 0),void 0);
g.aa("Goog_AdSense_Lidar_getInitSignals",wN("lidar::getinitsignals_ex",aQ,void 0,void 0),void 0);g.aa("Goog_AdSense_Lidar_getUrlSignalsArray",FN("lidar::geturlsignalsarray_ex",function(){return wP()}),void 0);
g.aa("Goog_AdSense_Lidar_getUrlSignalsList",FN("lidar::geturlsignalslist_ex",function(){return dg(wP())}),void 0);z(cQ,hd);var dQ=null;cQ.prototype.destroy=function(){this.C.ua(this.b,"activityMonitor",this.F);this.A=null;this.o=!1;this.g.clear()};
cQ.prototype.T=function(){this.destroy();cQ.N.T.call(this)};
cQ.prototype.init=function(a){if(!this.o){if(this.b=a||null)this.C.P(this.b,"activityMonitor",this.F),jQ(this);if(V.C&&!(q.ima&&q.ima.video&&q.ima.video.client&&q.ima.video.client.tagged)){g.aa("ima.video.client.sdkTag",!0,void 0);var b=q.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}};
cQ.prototype.F=function(a){var b=a.Sd,c=b.queryId,d={};d.eventId=b.eventId;switch(a.Ic){case "getPageSignals":jQ(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=hQ(this,e,c,a,f);this.b.send("activityMonitor","viewability",d);break;case "fetchAdTagUrl":d={},d.eventId=b.eventId,a=b.osdId,c=null,Zb(b,"isFullscreen")&&(c=b.isFullscreen),Zb(b,"loggingId")&&(b=b.loggingId,d.loggingId=b,
DM(AM.getInstance(),43,{step:"beforeLookup",logid:b,time:E()},!0)),d.engagementString=Bga(this,a,c),this.b.send("activityMonitor","engagement",d)}};
g.aa("ima.common.getVideoMetadata",function(a){a=eQ().g.get(a);return ha(a)?a():{}},void 0);
g.aa("ima.common.triggerViewEvent",function(a,b){var c={};c.queryId=a;c.viewabilityString=b;var d=eQ().b;d?d.send("activityMonitor","viewableImpression",c):eQ().dispatchEvent(new xL("viewable_impression",null,c))},void 0);
g.aa("ima.common.triggerViewabilityMeasurementUpdate",function(a,b){var c=eQ().b,d={};d.queryId=a;d.viewabilityData=b;c&&c.send("activityMonitor","viewabilityMeasurement",d)},void 0);
g.aa("ima.common.triggerMeasurableEvent",function(a,b){var c={};c.queryId=a;c.viewabilityString=b;var d=eQ().b;d?d.send("activityMonitor","measurableImpression",c):eQ().dispatchEvent(new xL("measurable_impression",null,c))},void 0);
g.aa("ima.common.triggerExternalActivityEvent",function(a,b,c){var d={};d.queryId=a;d.viewabilityString=b;d.eventName=c;(a=eQ().b)?a.send("activityMonitor","externalActivityEvent",d):eQ().dispatchEvent(new xL("externalActivityEvent",null,d))},void 0);
g.aa("ima.common.updateEngagementDetectionValue",function(a){if(V.C){var b=eQ().b;if(b){var c={};c.engagementString=a;b.send("activityMonitor","engagementData",c)}}},void 0);z(lQ,hd);h=lQ.prototype;h.Ib=function(a){null==a||this.D||(this.b=a,Gga(this),this.D=!0)};
h.Sb=function(){null!=this.b&&this.D&&(mQ(this),this.C=this.G=this.D=!1,this.g=0,this.A=[],this.F=!1)};
h.VD=function(a){this.G=!0;this.g=a.touches.length;this.o&&(window.clearTimeout(this.o),this.o=0,this.L=!0);(this.F=nQ(this,a.touches)||1!=a.touches.length)?this.O=this.M=window.Infinity:(this.M=a.touches[0].clientX,this.O=a.touches[0].clientY);Hga(this,a.touches)};
h.UD=function(a){this.g=a.touches.length;if(!gM()||!hM(vQ,8)||Math.pow(a.changedTouches[0].clientX-this.M,2)+Math.pow(a.changedTouches[0].clientY-this.O,2)>Math.pow(5,2))this.C=!0};
h.TD=function(a){this.K?this.Kk():(!this.G||1!=this.g||this.C||this.L||this.F||!nQ(this,a.changedTouches)||(this.o=window.setTimeout(x(this.Kk,this),300)),this.g=a.touches.length,0==this.g&&(this.C=this.G=!1,this.A=[]),this.L=!1)};
h.Hp=function(){this.Kk()};
h.Kk=function(){this.o=0;this.dispatchEvent(new lc("click"))};
h.T=function(){this.Sb();this.B.dispose();this.B=null;lQ.N.T.call(this)};z(rQ,hd);var LR={KJ:"beginFullscreen",Sj:"click",YK:"end",ZK:"endFullscreen",ERROR:"error",LOADED:"loaded",mM:"mediaLoadTimeout",PAUSE:"pause",PLAY:"play",gO:"skip",yw:"skipShown",aO:"shareClicked",eo:"start",CO:"timeUpdate",VJ:"cardsStateChange",AO:"timedMetadata",oP:"volumeChange"};h=rQ.prototype;h.Np=function(){return!1};
h.Za=function(){return!0};
h.lm=v;h.Rp=v;h.ul=v;h.Pf=function(){return null};
h.Sp=v;h.Pp=v;z(sQ,rQ);h=sQ.prototype;h.es=function(a,b,c,d){if(d&&(d=bb(a,function(a){return null!==oQ(a.g)}),null!==d))return d;
a=ke(a,function(a){var b=a.b;B(C(a.g))||"progressive"!=a.A&&"application/x-mpegurl"!=C(b).toLowerCase()?a=!1:(b=C(b).toLowerCase(),a=B(b)||jM(2.3)&&-1!=b.indexOf("application/ogg")?!1:CA&&(-1!=b.indexOf("video/mp4")||-1!=b.indexOf("video/3gpp"))||gM()&&(-1!=b.indexOf("application/x-mpegurl")||-1!=b.indexOf("application/vnd.apple.mpegurl"))?!0:!B(this.b.canPlayType(b)));return a},this);
return kQ(a,b,c)};
h.Xk=function(){return ke(Wb(QZ),function(a){return!B(this.b.canPlayType(a))},this)};
h.ij=function(a){this.ba=0<a.b?a.b:15E3};
h.load=function(a){uQ(this);this.b.src=a;this.b.load()};
h.getVideoUrl=function(){return this.b.src};
h.setVolume=function(a){this.b.volume=a};
h.ie=function(){return this.b.volume};
h.play=function(){this.M=!1;de(this.b.play,0,this.b);this.G||(this.G=de(this.vx,this.ba,this))};
h.pause=function(){this.M=!0;this.b.pause()};
h.vf=function(){return this.b.paused?gM()||$l?this.b.currentTime<this.b.duration:!0:!1};
h.cg=function(){return this.b.muted};
h.vl=function(){fM()&&this.b.webkitDisplayingFullscreen&&this.b.webkitExitFullscreen()};
h.ag=function(){return gQ(this.b)};
h.Sg=function(a){var b;a:{for(b=this.S.Pa();b.length;){var c=b.pop();if(0<c){b=c;break a}}b=-1}return b>=a};
h.dg=function(a){this.b.currentTime=a};
h.getCurrentTime=function(){return this.b.currentTime};
h.Op=function(){return xQ(this)};
h.od=function(){return(0,window.isNaN)(this.b.duration)?-1:this.b.duration};
h.Je=function(){return this.b.ended};
h.Od=function(){return new gf(this.b.offsetWidth,this.b.offsetHeight)};
h.Qp=function(){return this.b.seeking};
h.T=function(){this.Sb();this.b=null;sQ.N.T.call(this)};
h.getError=function(){return this.b.error};
h.Ib=function(){this.Sb();this.g=new Am(this);this.g.P(this.b,MR,this.UC);this.g.P(this.b,"canplay",this.fB);this.g.P(this.b,"ended",this.Rz);this.g.P(this.b,"webkitbeginfullscreen",this.wl);this.g.P(this.b,"webkitendfullscreen",this.Up);this.g.P(this.b,"pause",this.Tz);this.g.P(this.b,"playing",this.dD);this.g.P(this.b,"timeupdate",this.Uz);this.g.P(this.b,"volumechange",this.Vz);this.g.P(this.b,"error",this.Tp);this.g.P(this.b,jA||gM()&&(!gM()||!hM(vQ,8))?"loadeddata":"canplay",this.oC);this.C=
new lQ;this.g.P(this.C,"click",this.Qz);this.C.Ib(this.b);this.D=new be(1E3);this.g.P(this.D,"tick",this.Sz);this.D.start()};
h.Sb=function(){null!=this.C&&(this.C.Sb(),this.C=null);null!=this.D&&this.D.dispose();null!=this.g&&(this.g.dispose(),this.g=null);uQ(this)};
h.UC=function(a){this.dispatchEvent(a.type)};
h.fB=function(){var a;if(a=lz)a=sc,a=!(a&&(Ja(a,"SMART-TV")||Ja(a,"SmartTV")));a&&!this.O&&(this.dg(.001),this.O=!0)};
h.oC=function(){this.K||(this.K=!0,this.dispatchEvent("loaded"))};
h.dD=function(){this.dispatchEvent("play");gM()||jA||wQ(this)};
h.Uz=function(){if(!this.A&&(gM()||jA)){if(0>=this.getCurrentTime())return;if(jA&&this.Je()&&1==this.od()){this.Tp();return}wQ(this)}if(gM()||nM()){if(1.5<this.getCurrentTime()-this.o){this.F=!0;this.dg(this.o);return}this.F=!1;this.getCurrentTime()>this.o&&(this.o=this.getCurrentTime())}var a=this.S;a.b[a.g]=this.b.currentTime;a.g=(a.g+1)%a.o;this.dispatchEvent("timeUpdate")};
h.Vz=function(){this.dispatchEvent("volumeChange")};
h.Tz=function(){var a;this.A&&gM()&&!this.M&&2>xQ(this)-this.b.currentTime?(this.B=new be(250),this.g.P(this.B,"tick",this.$A),this.B.start(),a=!0):a=!1;a||this.dispatchEvent("pause")};
h.Rz=function(){var a=KL(IL(),136961002),b=!0;if(gM()||nM()||a&&CA)b=this.o>=this.b.duration-1.5;!this.F&&b&&this.dispatchEvent("end")};
h.wl=function(){this.dispatchEvent("beginFullscreen")};
h.Up=function(){this.dispatchEvent("endFullscreen")};
h.Tp=function(){tQ(this);this.dispatchEvent("error")};
h.Qz=function(){this.dispatchEvent("click")};
h.Sz=function(){var a=this.Od(),b=this.ag();if(a.width!=this.L.width||a.height!=this.L.height)!this.H&&b?this.wl():this.H&&!b&&this.Up(),this.L=a,this.H=b};
h.vx=function(){if(!this.A){try{DM(AM.getInstance(),16)}catch(a){}uQ(this);this.dispatchEvent("mediaLoadTimeout")}};
h.$A=function(){if(this.Je()||!this.vf())Mb(this.B);else{var a=this.b.duration-this.b.currentTime,b=xQ(this)-this.b.currentTime;0<b&&(2<=b||2>a)&&(Mb(this.B),this.play())}};z(zQ,hd);yQ.prototype.start=function(a){return this.b[a].startTime};
yQ.prototype.end=function(a){return this.b[a].endTime};
h=zQ.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.Zz=1;h.playbackRate=0;h.re=null;h.Ni=0;h.EE=4;h.Og=null;h.mj=null;
h.play=function(){this.ended&&(this.currentTime=0,this.dispatchEvent("timeupdate"));this.paused&&(this.paused=!1,this.dispatchEvent("play"),this.readyState=this.EE,2>=this.readyState?this.dispatchEvent("waiting"):this.dispatchEvent("playing"));if(null===this.re||this.re.isDisposed())this.re=new be(10),this.re.P("tick",x(this.Js,this));this.Ni=E();this.re.start();this.seeking=this.autoplay=!1};
h.pause=function(){this.autoplay=!1;this.paused||(this.re.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 Lga(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.Zz};
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.Js();break;case "duration":this.duration=Number(b);this.dispatchEvent("durationchange");break;case "volume":this.volume=Number(b),this.dispatchEvent("volumechange")}};
h.Js=function(){var a=E()-this.Ni,b=this.currentTime+a/1E3;this.Ni+=a;2<this.readyState&&(this.currentTime=Math.min(b,this.duration));this.dispatchEvent("timeupdate");this.currentTime==this.duration&&(this.ended=this.paused=!0,this.re.stop(),this.dispatchEvent("ended"))};
h.T=function(){this.re&&this.re.dispose();this.b.dispose()};
h.iE=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.mj&&(this.mj.innerText=b);c&&this.Og&&(this.Og.style.backgroundColor=c)};vf&&yc(8);var EQ={},bR={},cR={},FQ={};AQ.prototype.de=null;AQ.prototype.hc=function(){return this.content};
AQ.prototype.toString=function(){return this.content};
z(BQ,AQ);z(CQ,AQ);var Mga={};z(IQ,AQ);IQ.prototype.Id=EQ;z(KQ,AQ);KQ.prototype.Id={};KQ.prototype.de=1;z(LQ,AQ);LQ.prototype.Id=bR;LQ.prototype.de=1;z(MQ,AQ);MQ.prototype.Id=cR;MQ.prototype.de=1;z(NQ,AQ);NQ.prototype.Id={};NQ.prototype.de=1;z(OQ,CQ);OQ.prototype.Id={};OQ.prototype.de=1;z(PQ,BQ);PQ.prototype.Id=FQ;var JQ=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.de=d);return e}}(IQ);
QQ(KQ);QQ(LQ);QQ(MQ);var Vga=QQ(NQ);QQ(OQ);var RQ={},SQ={},pR=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.de=d);return e}}(IQ),$Q=/['()]/g,iR={},Wga={"\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;"},Xga={"\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"},Pga=/[\x00\x22\x27\x3c\x3e]/g,Rga=/[\x00\x09-\x0d \x22\x26\x27\x2d\/\x3c-\x3e`\x85\xa0\u2028\u2029]/g,Qga=/[\x00\x09-\x0d \x22\x27\x2d\/\x3c-\x3e`\x85\xa0\u2028\u2029]/g,eR=/[\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,
Tga=/^(?![^#?]*\/(?:\.|%2E){2}(?:[\/?#]|$))(?:(?:https?|mailto):|[^&:\/?#]*(?:[\/?#]|$))/i,Uga=/^[^&:\/?#]*(?:[\/?#]|$)|^https?:|^data:image\/[a-z0-9+]+;base64,[a-z0-9+\/]+=*$|^blob:/i,VQ=/<(?:!|\/?([a-zA-Z][a-zA-Z0-9:\-]*))(?:[^>'"]|"[^"]*"|'[^']*')*>/g,WQ=/</g;TQ("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.ig)+'</div><div class="videoAdUiShare"></div></div><div class="videoAdUiBottomBar"><div class="videoAdUiLearnMoreText">'+Y(a.ig)+'<div class="videoAdUiLearnMoreIcon"></div></div><div class="videoAdUiAttributionContainer"><div class="videoAdUiAttribution"'+
Y(jR(a.Fd))+">"+Y(a.Fd)+'</div><div class="videoAdUiAttributionIconContainer"><div class="videoAdUiAttributionIcon" id="videoAdUiAttributionIcon"></div><div class="videoAdUiAdInfoPopup"><div class="videoAdUiAdInfoPopupCallout"></div><div class="videoAdUiAdInfoPopupText" '+Y(jR(a.$d))+">"+Y(a.$d)+'</div></div></div></div></div><div class="videoAdUiProgressBar" dir="ltr"><div class="videoAdUiBuffer"></div><div class="videoAdUiProgress"></div></div></div>'});
TQ("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.RP)+'</div></div></div><div class="videoAdUiTopButton videoAdUiTopButtonWatchLater"><div class="videoAdUiTopButtonCallout"><div class="videoAdUiTopButtonTooltip">'+Y(a.TP)+'</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(jR(a.Fd))+">"+Y(a.Fd)+'</div><div class="videoAdUiAttributionIconContainer"><div class="videoAdUiAttributionIcon" id="videoAdUiAttributionIcon"></div><div class="videoAdUiAdInfoPopup"><div class="videoAdUiAdInfoPopupCallout"></div><div class="videoAdUiAdInfoPopupText" '+Y(jR(a.$d))+">"+Y(a.$d)+'</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>'});
TQ("b","",function(a){a=a||{};return"You can skip this ad in "+Y(a.Lm)});
TQ("b","redesign2014q4",function(a){a=a||{};return"You can skip to video in "+Y(a.Lm)});z(rR,G);rR.prototype.initialize=function(){dM()&&this.g.load()};
rR.prototype.T=function(){Hf(this.b);rR.N.T.call(this)};
rR.prototype.show=function(){var a=this.b;null!=a&&(a.style.display="block")};z(uR,rQ);var vta=["video/mp4","video/webm"],wta={el:"adunit",controls:0,html5:1,playsinline:1,ps:"gvn",showinfo:0},tR=[],sR=!1;h=uR.prototype;h.es=function(a,b,c){var d=bb(a,function(a){return null!==oQ(a.g)});
if(null!==d)return d;a=ke(a,function(a){a=C(a.b);return this.g?this.b.canPlayType(a):fb(vta,a)},this);
gb(c)||(d=kQ(a,b,c));return null!=d?d:kQ(a,b,[])};
h.ij=function(a){this.o=a};
h.load=function(a,b){null!==a&&(this.ba=a,this.g?vR(this,a,b):(this.K=a,this.ca=b))};
h.getVideoUrl=function(){return this.ba};
h.setVolume=function(a){this.fa?this.dispatchEvent("volumeChange"):this.g?(a=$e(100*a,0,100),this.b.setVolume(a),this.D=-1,this.dispatchEvent("volumeChange")):this.D=a};
h.ie=function(){return this.g?this.b.getVolume()/100:this.D};
h.play=function(){if(!B(C(this.ba))){if(!this.A){xR(this);var a=15E3;null!=this.o&&0<this.o.b&&(a=this.o.b);this.ra=de(this.XC,a,this)}this.g?(this.$=!1,!this.A&&this.o&&this.o.g?this.b.loadVideoByPlayerVars(this.ia):this.b.playVideo()):this.$=!0}};
h.pause=function(){this.g&&this.A&&this.b.pauseVideo()};
h.vf=function(){return this.g?2==this.b.getPlayerState(this.B):!1};
h.cg=function(){return this.g?this.b.isMuted():0==this.ie()};
h.vl=function(){};
h.ag=function(){var a=V.g?V.B:window.document.getElementById(this.M);return a?gQ(a):!1};
h.Sg=function(a){return this.g?this.b.getCurrentTime(this.B)>=a:!1};
h.dg=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.Op=function(){return this.g&&this.A?this.b.getVideoLoadedFraction(this.B)*this.b.getDuration(this.B):0};
h.od=function(){return this.g&&this.A?this.b.getDuration(this.B):-1};
h.getError=function(){return null};
h.Xk=function(){return Wb(QZ)};
h.Je=function(){return this.g?0==this.b.getPlayerState(this.B):!1};
h.Od=function(){var a=V.g?V.B:window.document.getElementById(this.M);return a?new gf(a.offsetWidth,a.offsetHeight):new gf(0,0)};
h.Qp=function(){return!1};
h.Np=function(){return 1==this.na};
h.Za=function(){return this.g?1==this.b.getPlayerState(this.B):!1};
h.Xz=function(){var a=this.Od(),b=this.ag();if(a.width!=this.ga.width||a.height!=this.ga.height)!this.ea&&b?this.dispatchEvent("beginFullscreen"):this.ea&&!b&&this.dispatchEvent("endFullscreen"),this.ga=a,this.ea=b};
h.Ib=function(){this.da=x(this.fr,this);this.L=x(this.xl,this);this.ka=x(this.gr,this);this.oa=x(this.ED,this);this.fa&&(this.b.addEventListener("onAdStateChange",this.L),this.b.addEventListener("onReady",this.da),this.b.addEventListener("onStateChange",this.L),this.b.addEventListener("onVolumeChange",this.ka),this.b.addEventListener("onSharePanelOpened",this.oa));this.S=new be(1E3);this.O.P(this.S,"tick",this.Xz);this.S.start()};
h.Sb=function(){this.fa&&(this.b.removeEventListener("onAdStateChange",this.L),this.b.removeEventListener("onReady",this.da),this.b.removeEventListener("onStateChange",this.L),this.b.removeEventListener("onVolumeChange",this.ka),this.b.removeEventListener("onSharePanelOpened",this.oa));null!=this.S&&this.S.dispose()};
h.Ex=function(){var a=this.M,b={playerVars:gc(wta),events:{cardstatechange:x(this.Wz,this),onError:x(this.Yz,this),onReady:x(this.fr,this),onAdStateChange:x(this.xl,this),onStateChange:x(this.xl,this),onVolumeChange:x(this.gr,this)}},c=r("YT");this.b=null!=c&&null!=c.Player?new c.Player(a,b):null};
h.Yz=function(){this.dispatchEvent("error")};
h.fr=function(){this.g=!0;this.G&&this.ul(this.G.videoId,this.G.hf,this.G.yg);-1!=this.D&&(this.setVolume(this.D),this.D=-1);null!=this.K&&(vR(this,this.K,this.ca),this.ca=this.K=null);-1!=this.H&&(this.dg(this.H),this.H=-1);this.$&&this.play()};
h.Wz=function(a){this.na=a.data;this.dispatchEvent("cardsStateChange")};
h.xl=function(a){switch(a.data){case -1:!this.A&&IL().b.aa("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||(xR(this),this.A=!0,this.F=0,this.dispatchEvent("start"));this.dispatchEvent("play");wR(this);this.C=new be(100);this.O.P(this.C,"tick",this.Pq);this.C.start();break;case 2:this.dispatchEvent("pause"),wR(this)}};
h.gr=function(){this.dispatchEvent("volumeChange")};
h.ED=function(){this.dispatchEvent("shareClicked")};
h.Pq=function(){if(iA||nM()){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.XC=function(){this.dispatchEvent("mediaLoadTimeout")};
h.ul=function(a,b,c){if(b||c)this.g?this.b.addInfoCardXml(a,b,c):this.G={videoId:a,hf:b,yg:c}};
h.Pf=function(){if(!this.g)return null;var a=this.b.getVideoData();return a?a.cpn:null};
h.lm=function(a){this.g&&oQ(this.getVideoUrl())&&this.b.sendVideoStatsEngageEvent(a)};
h.Rp=function(a){this.g&&this.b.setCardsVisible(a,!1,"YOUTUBE_DRAWER_AUTO_OPEN")};
h.Sp=function(){this.g&&this.b.showControls()};
h.Pp=function(){this.g&&this.b.hideControls()};
h.T=function(){wR(this);xR(this);this.Sb();this.g=!1;this.O.dispose();this.H=-1;this.ca=null;this.$=!1;this.K=null;this.D=-1;this.da=this.b=this.o=null;this.A=!1;this.ba="";uR.N.T.call(this)};
g.aa("onYouTubeIframeAPIReady",function(){sR=!0;F(tR,function(a){a()});
jb(tR)},window);z(yR,hd);yR.prototype.b=!1;yR.prototype.connect=function(){for(this.b=!0;!gb(this.g);){var a=this.g.shift();this.sendMessage(a.name,a.type,a.data)}};
yR.prototype.send=function(a,b,c){this.b?this.sendMessage(a,b,c):this.g.push({name:a,type:b,data:c})};
z(zR,lc);zR.prototype.getOrigin=function(){return this.o};
zR.prototype.toString=function(){return""};z(AR,yR);AR.prototype.sendMessage=function(a,b,c){null!=this.sd&&null!=this.sd.postMessage&&this.sd.postMessage(gha(this,a,b,c),"*");null!=this.sd&&null==this.sd.postMessage&&DM(AM.getInstance(),11)};
AR.prototype.T=function(){this.A.dispose();AR.N.T.call(this)};
AR.prototype.receive=function(a){a=a.b;var b=BR(a.data);if(CR(this,b)){if(null==this.sd)this.sd=a.source,this.b||this.connect();else if(this.sd!=a.source)return;CR(this,b)&&this.dispatchEvent(new zR(b.name,b.type,b.data||{},b.sid,a.origin))}};z(DR,hd);DR.prototype.send=function(a){var b=a.b;this.b.hasOwnProperty(b)&&this.b[b].send(a.type,a.Ic,a.Sd)};
DR.prototype.T=function(){this.g.dispose();for(var a in this.b)Mb(this.b[a]);DR.N.T.call(this)};
DR.prototype.B=function(a){a=a.b;var b=BR(a.data);if(null!=b){var c=b.channel;if(this.o&&!this.b.hasOwnProperty(c)){var d=b.sid;FR(this,c,d,a.source);this.dispatchEvent(new ER(b.name,b.type,b.data||{},d,a.origin,c))}}};
z(ER,zR);z(HR,Am);
HR.prototype.C=function(a){var b=a.getOrigin(),c=Hg("//imasdk.googleapis.com"),b=Hg(b);if(c[3]==b[3]&&c[4]==b[4])if(null!=this.b)FR(this.b,a.b,a.Gp,xf().parent),null!=this.b&&this.b.send(a);else if(c=a.Sd,null!=c&&p(c.scope)){var b=c.scope,c=c.args,d;if("proxy"==b)c=a.Ic,"isGptPresent"==c?d=GR():"isConsolePresent"==c&&(d=null!=IR());else if(GR())if("pubads"==b||"companionAds"==b){d=a.Ic;var e,f=xf().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=IR(),null!=e&&(f=e[f],null!=f))try{f.apply(e,c)}catch(k){}}else if(null===b){e=a.Ic;d=xf();if(fb(["googleGetCompanionAdSlots","googleSetCompanionAdContents"],e)&&(e=d[e],null!=e))try{f=e.apply(d,c)}catch(k){}d=f}p(d)&&(a.Sd.returnValue=d,this.o.send(a))}};
HR.prototype.B=function(a){this.o.send(a)};JR.prototype.isPharma=function(){return this.H};var KR={s:function(a,b,c){return(0,window.isNaN)(c)||""==c||a.length>=Number(c)?a:a=-1<b.indexOf("-",0)?a+Ka(" ",Number(c)-a.length):Ka(" ",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+Ka(" ",a):f+Ka(0<=b.indexOf("0",0)?"0":" ",a)+d},
d:function(a,b,c,d,e,f,k,l){return KR.f((0,window.parseInt)(a,10),b,c,d,0,f,k,l)}};
KR.i=KR.d;KR.u=KR.d;z(NR,hd);h=NR.prototype;h.T=function(){this.g.dispose();null!==this.A&&(this.A.dispose(),this.A=null);wg(this.F.Cc(!1),function(a){a.dispose()});
this.F.clear();Hf(this.o);NR.N.T.call(this)};
h.qy=function(a){var b=a.Sd,c=ts(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(!lz||gM()||0==window.document.webkitIsFullScreen)this.o.blur(),window.focus();this.o.dispatchEvent(d)};
h.Ny=function(a){var b=a.Sd,c=ts(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,OR(this,b.touches),OR(this,b.targetTouches),OR(this,b.changedTouches),b.scale,b.rotation);this.o.dispatchEvent(d)};
h.Ky=function(a){if(null!=this.b){var b=a.Sd;switch(a.Ic){case "startTracking":this.b.Ib();break;case "stopTracking":this.b.Sb();break;case "exitFullscreen":this.b.vl();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.dg(b.currentTime);break;case "setPlaybackOptions":this.b.ij(PR(b));break;case "setVolume":this.b.setVolume(b.volume)}}};
h.Cy=function(a){if(null!=this.B){var b=a.Sd;switch(a.Ic){case "startTracking":this.B.Ib();break;case "stopTracking":this.B.Sb();break;case "setPlaybackOptions":this.B.ij(PR(b));break;case "load":this.B.load(b.videoUrl,b.mimeType)}}};
h.Ud=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.Je();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.od();break;case "volumeChange":a="volumeChange";b.volume=this.b.ie();break;case "loadedmetadata":a=a.type;b.duration=this.b.od();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.ly=function(a){switch(a.Ic){case "showVideo":null!=this.A?this.A.Sb():(this.A=new lQ,this.g.P(this.A,"click",this.fE));this.A.Ib(RR(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.ua(this.b,Wb(LR),this.Ud);this.g.ua(this.b,MR,this.Ud);
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.ua(b.b,Wb(LR),b.Ud),b.g.ua(b.b,MR,b.Ud)),b.b=a,b.g.P(b.b,Wb(LR),b.Ud),b.g.P(b.b,MR,b.Ud))}this.b=this.C.g;this.B=this.C.B;this.g.P(this.b,Wb(LR),this.Ud);this.g.P(this.b,MR,this.Ud)}}};
h.fE=function(){this.D.send("displayContainer","videoClick")};
h.Wx=function(){wg(this.F.Cc(!1),function(a){a.sd=Qf(this.o);a.connect()},this);
this.G=!0};QR.prototype.initialize=function(){null!=this.b&&this.b.initialize();null!=this.A&&this.A.initialize()};
QR.prototype.destroy=function(){Mb(this.b);Mb(this.A);Mb(this.G);Mb(this.g);Mb(this.B);Hf(this.o)};
QR.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 SR="ad_type vpos mridx pos vad_type videoad_start_delay".split(" ");z(UR,hd);z(VR,UR);VR.prototype.start=function(){this.b.start()};
VR.prototype.stop=function(){this.b.stop()};
VR.prototype.T=function(){VR.N.T.call(this);this.o.dispose();this.b.dispose()};
VR.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 lc("currentTimeUpdate"))}else this.dispatchEvent(new lc("contentWrapperError")),this.stop()};z(XR,hd);XR.prototype.g=null;XR.prototype.T=function(){delete this.b;YR(this);cd(this.g);XR.N.T.call(this)};
XR.prototype.B=function(){WR(this)&&(YR(this),cd(this.g),this.g=null,this.A=!0,this.dispatchEvent("ifload"))};z(ZR,hd);z($R,lc);$R.prototype.getError=function(){return this.o};aS.prototype.hc=function(){return this.D};
aS.prototype.uc=function(){return this.g};
aS.prototype.clone=function(){var a=new aS(this.G,this.F);if(null!=this.g)bS(a,this.uc(),this.B,this.o,this.C,this.b);else{var b=this.hc(),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(dS,ZR);ba(dS);h=dS.prototype;h.T=function(){this.g&&this.g.dispose();dS.N.T.call(this)};
h.initialize=function(){if(!this.A){var a;var b=Zf(new kf);try{r("googletag"),eS([b,b.top]),a=!0}catch(c){a=!1}a?qS(this):(this.A=!0,this.o="not_available")}};
h.kr=function(){0<this.B&&E()>=this.B?(this.A=!0,mS(this),pS(this)):qS(this)};
h.dF=function(a){var b=N(a.adSizes,function(a){return new gf(a.adWidth,a.adHeight)});
return new aS(a.slotId,b)};
h.$w=function(a){var b={};b.slotId=a.G;b.adContent=a.hc();b.adWidth=a.B;b.adHeight=a.o;b.friendlyIframeRendering=a.A;null==a.g&&gb(a.b)||(b.onAdContentSet=x(this.wB,this,a));return b};
h.wB=function(a,b){if(null!=a.g){var c=Mf(b);c||(c=Cf("div"),b.appendChild(c));var d=a.uc();c.appendChild(d);rS(this,a,c)}else c=a.A?b.querySelector("iframe"):(c=Mf(b))?Mf(c):null,(c=c&&"IFRAME"==c.tagName?c:null)&&kha(this,c,a)};
h.vB=function(a){this.dispatchEvent(new $R("companion_click",null,a))};
h.tg=function(a){VL(this.impressionUrls,a)};z(sS,lc);sS.prototype.getError=function(){return this.b};z(tS,lc);var mha={IMAGE:"Image",Gv:"Flash",ALL:"All"},lha={wL:"Html",IFRAME:"IFrame",oO:"Static",ALL:"All"},nha={AL:"IgnoreSize",XN:"SelectExactMatch",YN:"SelectNearMatch"},oha={CK:"DisallowResize",MN:"ResizeSmaller"};FS.prototype.videoCount=0;HS.prototype.Fb=function(){return this.o};
z(IS,HS);GS.prototype.isEmpty=function(){return this.b.isEmpty()};SS.prototype.Cl=function(){return null};
SS.prototype.Bl=function(){return null};
SS.prototype.ub=function(){return this.G};
SS.prototype.ca=function(){for(var a=[this],b=this.G.g;b;){var c=VS(this,b)||VS(this,b,!0);null!=c&&a.push(c);b=b.g}return a};WS.prototype.ib=function(){return this.C};
WS.prototype.getHeight=function(){return this.B};z(XS,SS);XS.prototype.Pd=function(){return this.o};
XS.prototype.Vk=function(a){var b="";Rh(this.O,function(c){var d=c.g;return!B(C(a))&&a!=c.b||null==d||B(C(d))?!1:(b=d,!0)},this);
return b};
XS.prototype.Cl=function(){return ZS(this,"javascript")};
XS.prototype.Bl=function(){return ZS(this,"x-shockwave-flash")};z($S,G);$S.prototype.D=function(){this.A=E()};
$S.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=ts(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="+(E()-this.A));0<c.length&&(b.href+=0<=b.href.indexOf("?")?"&"+c.join("&"):"?"+c.join("&"))};
$S.prototype.F=function(){this.B++};
$S.prototype.T=function(){$S.N.T.call(this);this.b.dispose()};var L$=dT("f"),SW=dT("i"),M$=dT("b"),IW=dT("e"),JW=dT("s");var yha=[0,2,1],hT=null;window.document.addEventListener&&window.document.addEventListener("mousedown",function(a){hT=a},!0);
window.mb=function(a){if(a){var b=iT();b&&(window.css?(0,window.css)(a.id,"mb",b,void 0,void 0):a&&(a.href=gT(a.href,"mb",b,void 0)))}};z(jT,G);jT.prototype.D=function(){this.C=E()};
jT.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.wx);if(8==(this.g&8)){var d=ts(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=E()-this.C,this.b.clkt=d);512==(this.g&512)&&(d=iT())&&(this.b.mb=d);"A"==c.tagName.toUpperCase()&&jf(c,Aha(this,c.href))};
jT.prototype.F=function(){this.A++};var Bha=vf?'javascript:""':"about:blank";z(lT,SS);h=lT.prototype;h.hc=function(){return Sf(this.uc())};
h.fh=function(){return!1};
h.Dl=function(){return this.fh()?Sf(this.uc(!0)):""};
h.wc=function(){return this.jb};
h.Hc=function(){return this.Ba};
h.ib=function(){return this.Hc().width};
h.getHeight=function(){return this.Hc().height};
h.Cl=function(){return"VPAID"==this.H?this.A:null};
h.Bl=function(){return"VPAID"==this.H&&"Flash"==this.da?this.A:null};
h.Pd=function(){return this.$};z(mT,lT);mT.prototype.F=function(a){null==this.g||B(C(this.Pd()))||(this.g.P(a,"click",this.S),this.ba.push(a))};
mT.prototype.uc=function(a){a?(null==this.ia&&(this.ia=this.ce(a),Ef(this.ia,rT(this))),a=this.ia):(null==this.o&&(this.o=this.ce(),Ef(this.o,rT(this))),a=this.o);null!=this.g&&this.g.P(a,"creativeview",this.ga);return a};
mT.prototype.Rk=function(){IL().b.aa("cleanup_text_overlay_spam_signals");return 2};
mT.prototype.ca=function(){for(var a=[this],b=this.ub().g;b;){var c=this.B?VS(this,b)||VS(this,b,!0):sT(this,b)||sT(this,b,!0);null!=c&&a.push(c);b=b.g}return a};z(tT,mT);h=tT.prototype;h.Hc=function(){return new gf(this.ib(),this.getHeight())};
h.getHeight=function(){return 63};
h.ib=function(){return null!=this.C?Ds(this.C).width:0};
h.Rk=function(a){return IL().b.aa("cleanup_text_overlay_spam_signals")?ie(a,"text-image-link")?9:ie(a,"text-ad-channel")?1:0:ie(a,"text-image")?9:ie(a,"text-ad-channel")?1:0};
h.ce=function(){var a=this.ub(),b=a.getExtension("AdSense"),c=a.getExtension("TextAd"),d=c.o,e="rtl";null!=d&&(e=b0.test(oe(d,void 0))?"rtl":"ltr");d={title:d,text:c.A+" "+c.B,dir:e,Kb:this.Pd()};if(c=c.g)d.image=PL(c),a=bb(a.B,function(a){return a instanceof XS}),null!=a&&(d.duration=CS(a.K));
b.g&&(d.Ts=b.g);this.C=DQ(tha,d);F(this.C.getElementsByTagName("a"),this.F,this);this.C.id=this.xa;this.C.style.height=this.getHeight()+"px";return this.C};var Eha=[202,1009],Kha=["CONTENT_V","CPN","DISALLOW","LACT","VIS"],Jha={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"]};KT.prototype.g=function(){return null!=this.b&&this.b.g()?!0:0<this.ads.length&&this.o<this.ads.length-1};
KT.prototype.K=function(a,b){return this.D?0<a.length?a:b:tb(b,0,1)};
KT.prototype.B=function(a,b,c){var d;if(!(d=null!=a.b)){var e=this.F;d=e.nd||0;e=e.md||0;UU(a,CV)&&!a.ca?FV(a,"nonlinear")?IT(a,d,e):JT(a):FV(a,"linear")?JT(a):FV(a,"nonlinear")&&IT(a,d,e);d=null!=a.b}d?(this.A++,b(a)):(b=gb(a.B)?YL(LX):a.wb()?YL(QY):YL(rta),d=zT(b,a),ES(nia(a),"rm")?b.o=!1:VL(a.Oa,d),c(b))};
KT.prototype.G=function(a,b,c){var d=this.F.clone();d.g="";d.b=a.Sa;d.Zc=TR(d.b,d.Ei);QT(this,a,d,b,c)};z(VT,PS);z(WT,KT);WT.prototype.g=function(){if(null!=this.b&&this.b.g())return!0;var a=0==this.A||this.A==this.O;return 0<this.ads.length&&this.o<this.ads.length-1&&a};
WT.prototype.K=function(a,b){return b};
WT.prototype.B=function(a,b,c){var d;d=null==this.b?nV(a):nV(this.ads[this.o]);this.M.A=d;WT.N.B.call(this,a,b,c)};
WT.prototype.G=function(a,b,c){this.M.A=-1;WT.N.G.call(this,a,b,c)};z(ZT,M);ZT.prototype.toString=function(){return aU(this,ZT.N.toString.call(this))};
ZT.prototype.K=function(){return""};
ZT.prototype.F=function(){return""};
ZT.prototype.clone=function(){return new ZT(this.toString())};var eia=["ai","sigh"],fia=["xai","sig"];z(wU,PS);xU.prototype.parse=function(a){a=Mf(a);var b=kU(a),c;"skippable"==b?c="skippable":"nonskippable"==b&&(c="nonskippable");if(null==c)throw YL(pta);a=a.getAttribute("offset");a=uU(a);if("skippable"==c&&null==a)throw YL(ota);return new wU(c,a)};z(yU,PS);z(zU,PS);h=AU.prototype;h.hc=function(){return this.b.hc()};
h.uc=function(){return this.b.uc()};
h.wc=function(){return this.b.wc()};
h.ib=function(){return this.b.ib()};
h.getHeight=function(){return this.b.getHeight()};
h.ub=function(){return this.b.ub()};z(CU,mT);var iia=new gf(300,250);CU.prototype.Ia=function(){this.C=Math.max(0,this.C-1);MU(this)};
CU.prototype.Ha=function(){this.C=Math.min(this.va-3,this.C+1);MU(this)};
CU.prototype.ce=function(){return this.Oa};z(QU,mT);var kia=new gf(300,250);QU.prototype.ce=function(){return this.C};h=SU.prototype;h.wc=function(){if(null!=MV(this))return"application/javascript";if(null!=NV(this))return"application/x-shockwave-flash";var a=this.b,b="";if(null===a)return b;if(a instanceof XS)a=a.ka,null===a||(b=C(a.b));else if(a instanceof mT)switch(a.fa){case "IFrame":case "Html":case "Static":b=C(a.da)}return b};
h.getExtension=function(a){return this.D.get(a)};
h.wb=function(){return this.ia?this.ka:HV(this)?!0:UU(this,CV)?"video"==this.Na:FV(this,"linear")};
h.isSkippable=function(){return null!=JV(this)};
h.iA=function(){return this.ca};
h.ib=function(){return this.wb()?0:this.fa.width};
h.getHeight=function(){return this.wb()?0:this.fa.height};
h.toString=function(){return"Ad: "+this.na};z(RV,hd);RV.prototype.to=function(){return!0};
RV.prototype.mf=function(){return null};z(TV,RV);h=TV.prototype;h.T=function(){this.destroy();TV.N.T.call(this)};
h.destroy=function(){null!=this.B&&this.B.dispose();this.A=null;F(this.o,function(a){cS(a)},this);
this.g=null};
h.to=function(){return this.C};
h.BD=function(){null!=this.F&&(this.F.stop(),this.F.dispose(),this.F=null);if(null!=this.b){var a=fS(this.b);null!=a&&(this.o=a)}this.D=!0;null!=this.A&&UV(this);this.dispatchEvent(new lc("initialized"))};
h.xB=function(a){YV(this,a.getError())};
h.tB=function(a){if(null!=a.b){var b=a.b;"companion_slot_init"==a.type?(VL(b.C),qd(function(){null!=this.g&&this.g.dispatchEvent(new tS("companion_impression"))},this)):"companion_click"==a.type&&(VL(b.b),null!=this.g&&this.g.dispatchEvent(new tS("companion_click")))}};
h.mf=function(){return this.b};h=ZV.prototype;h.Qk=function(){return RR(this.b)};
h.yi=function(){return this.b.C};
h.Ld=function(){return this.b.C};
h.Gi=function(){var a=this.b.g;return null!=a?a:new uR};
h.dh=function(){var a=this.b;null!=a.b&&a.b.show()};
h.Yc=function(){};
h.Ik=function(){return null!=this.b.F};
h.Hi=function(){return this.b.D};
h.rl=function(){return!1};
h.Ii=function(){return this.b.H};
h.setSize=function(a,b){this.b.setSize(a,b)};
h.uf=function(){};
h.ql=function(){return null};
h.Ep=function(){};z($V,lc);z(bW,lc);ba(cW);var Eia=/iu\=\/(\d+)\//;cW.prototype.start=function(a){this.g&&this.o.set(a,E())};
cW.prototype.end=function(a,b){if(this.g&&Ag(this.o,a)){var c=E()-this.o.get(a),d=dW(this,a,c,b);RL(d);this.o.remove(a);this.A+=c}};
cW.prototype.sendMessage=function(a,b,c){this.g&&(a=dW(this,a,b,c),RL(a))};eW.prototype.start=function(a,b){this.B=a;this.D=b;Hia(this);this.C.D?this.G():Gm(this.g,this.C,"initialized",this.G,this)};
eW.prototype.G=function(){var a=this.C.mf(),b=a.A&&"retrieved"==a.o?a.D:void 0,a=iha(a);null!=b&&(this.A.B=b);null!=a&&(this.A.F=a);Gia(this)};z(gW,hd);var hW=null;gW.prototype.destroy=function(){this.G.ua(this.g,"activityMonitor",this.K);this.g=null};
gW.prototype.K=function(a){var b=a.Sd;switch(a.Ic){case "appStateChanged":xga(WP.getInstance(),b.appState,b.nativeTime);break;case "externalActivityEvent":lW(b.queryId,b.viewabilityString,b.eventName);break;case "measurableImpression":jW(b.queryId,b.viewabilityString);break;case "pageSignals":this.H=b.pageSignals;break;case "viewableImpression":kW(b.queryId,b.viewabilityString);break;case "engagementData":b=b.engagementString;iW().A=b;iW().F=E();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":WP.getInstance();MN.getInstance();break;case "engagement":a=b.eventId;window.clearTimeout(a);c=this.b.get(a);if(AM.getInstance().b){var d=-1;this.C&&(d=E()-this.C);var e=!1;c||(e=!0);Zb(b,"loggingId")&&DM(AM.getInstance(),43,{step:"receivedResponse",time:E(),timeout:e,logid:b.loggingId,timediff:d})}c&&(this.b.remove(a),c(b.engagementString))}};
g.aa("ima.bridge.getNativeViewability",function(a,b){iW();b({})},void 0);
g.aa("ima.bridge.getVideoMetadata",function(){var a=iW().D;return ha(a)?a():{}},void 0);
g.aa("ima.bridge.triggerViewEvent",kW,void 0);g.aa("ima.bridge.triggerMeasurableEvent",jW,void 0);g.aa("ima.bridge.triggerExternalActivityEvent",lW,void 0);z(oW,Mia);z(rW,mW);rW.prototype.o=function(){return new nW(this.b,null,Pia(this))};z(vW,PS);wW.prototype.parse=function(a){if(null==a)return null;var b,c,d;F(Kf(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 vW(b,c,d):null};z(yW,PS);yW.prototype.isPharma=function(){return this.D};zW.prototype.parse=function(a){var b;lU(a,"config",function(a){null!=b||(b=Sia(this,a))},this);
return b};AW.prototype.parse=function(a){if(null==a)return null;var b,c,d,e,f,k,l,m=!1,n=!1;F(Kf(a),function(a){switch(a.nodeName){case "AttributionText":c=kU(a);break;case "AttributionUrl":d=kU(a);break;case "ConversionUrl":f=kU(a);break;case "CustomTracking":null!=Kf(a)&&(e=vU(a));break;case "is_pharma":a=jU(a,"bool");n=oU(C(a));break;case "CheckedEvents":a=Kf(a);b=N(a,function(a){return jU(a,"id")});
null!=b||(b=[]);break;case "PreviousAdInformation":kU(a);break;case "VisibleUrl":k=kU(a);break;case "UI":l=(new zW).parse(a);break;case "ShowYouTubeAnnotations":var u=kU(a);m=oU(C(u),!1);case "QueryId":kU(a)}},this);
null!=l||(l=new xW);return new yW(c,d,f,0,k,l,m,0,n,e,b)};BW.prototype.parse=function(a){if(null==a)return null;var b;F(Kf(a),function(a){switch(a.nodeName){case "CustomTracking":null!=Kf(a)&&(b=vU(a))}});
a=null;null!=b&&0<JS(b,"skip").length&&(a="Generic");return new yU(a,b)};CW.prototype.parse=function(a){if(null==a)return null;var b,c;F(Kf(a),function(a){switch(a.nodeName){case "SkippableAdType":b=kU(a);break;case "CustomTracking":null!=Kf(a)&&(c=vU(a))}});
return new yU(b,c)};DW.prototype.parse=function(a){if(null==a)return null;var b;F(Kf(a),function(a){switch(a.nodeName){case "CustomTracking":null!=Kf(a)&&(b=vU(a))}},this);
return new PS(b)};var N$,O$,P$,Q$,HW,OW,R$,S$,T$,U$,V$,W$,X$,RW,Y$;h=tV.prototype;h.Fb=function(){var a=this.b.type;return null!=a?a:0};
h.zi=function(){return new vV(this.b.website_card)};
h.nf=function(){return new uV(this.b.placement)};
h.yj=function(){return bT(this.b,"action")};
h.Cg=function(a){return new xV(aT(this.b,"action")[a])};
xV.prototype.Fb=function(){var a=this.Ue.type;return null!=a?a:0};
xV.prototype.getId=function(){var a=this.Ue.id;return null!=a?a:""};
xV.prototype.setTitle=function(a){this.Ue.title=a};
FW.prototype.Fb=function(){var a=this.b.type;return null!=a?a:0};
vV.prototype.g=function(){return new wV(this.b.icon)};
vV.prototype.o=function(){return new wV(this.b.banner_image)};var VW;
VW={event:{type:{TYPE_DISMISS:4,TYPE_NONE:0,TYPE_COLLAPSE:3,TYPE_EXPAND:2,TYPE_IMPRESSION_GALLERY:7,TYPE_IMPRESSION_ENDCAP:8,TYPE_DISMISS_ENDCAP:11,TYPE_COLLAPSE_ENDCAP:10,TYPE_HEADLINE_CLICK:5,TYPE_IMPRESSION:1,TYPE_ACTION_ENDCAP:9,TYPE_ACTION:6}},action:{type:{TYPE_NONE:0,TYPE_IRDB:8,TYPE_INLINE_APPLICATION_STORE:19,TYPE_ATTRIBUTION:5,TYPE_FUNDRAISING:10,TYPE_SUBSCRIPTION:6,TYPE_LETTERMAN:14,TYPE_APPLICATION_STORE:4,TYPE_VIDEO:3,TYPE_RESPONSE:12,TYPE_HEADLINE:1,TYPE_INTERNAL:13,TYPE_PLAYLIST:7,TYPE_MERCH:9,
TYPE_COLLAPSE:17,TYPE_RESULTS:11,TYPE_VOTE:18,TYPE_EXTERNAL:16,TYPE_CHANNEL:2,TYPE_HELPOUTS:15}},ad_card:{attribution_position:{POSITION_TOP_RIGHT:2,POSITION_BOTTOM_RIGHT:3,POSITION_BOTTOM_LEFT:0,POSITION_TOP_LEFT:1}},card:{type:{TYPE_NONE:0,TYPE_PRODUCT:1,TYPE_LOCATION:5,TYPE_VOTE:3,TYPE_WEBSITE:4,TYPE_APP:2},prominence:{PROMINENCE_HIGHLIGHT:1,PROMINENCE_NONE:0,PROMINENCE_FEATURE:2}}};z(TW,PS);UW.prototype.parse=function(a){var b=ds(a);if(B(C(b)))return null;var c;if(this.b){c=WW;if(!N$){var d={};N$={Yb:d};if(!O$){var e={};O$={Yb:e};e.type=IW;if(!P$){var f={};P$={Yb:f};f.major_version=SW;f.minor_version=SW}e.version=fT(P$);e.priority=SW;e.start_time_ms=dT("j");e.end_time_ms=dT("j");e.action=eT(MW());e.event=eT(LW());V$||(f={},V$={Yb:f},f.headline=JW,f.description=JW,f.attribution_icon_url=JW,f.skippable_seconds=SW,f.attribution_position=IW);e.ad_card=fT(V$);if(!R$){f={};R$={Yb:f};f.headline=
JW;f.image=fT(KW());f.description=JW;f.rating=L$;f.review_text=JW;if(!S$){var k={};S$={Yb:k};k.merchant=JW;k.price=JW;k.shipping=JW;k.shipping_tax=JW;k.condition=JW;k.unit_price=JW;k.energy_label=JW;k.description=JW;k.rating=L$;k.review_text=JW;k.action=eT(MW());k.event=eT(LW())}f.offer=eT(S$)}e.product_card=fT(R$);T$||(f={},T$={Yb:f},f.app_id=JW,f.app_name=JW,f.icon=fT(KW()),f.price=JW,f.rating_image=JW,f.review_count=SW,f.app_store_logo=fT(KW()),f.button_text=JW,f.screenshots=eT(KW()),f.rating=
L$,f.back_button_text=JW,f.screenshots_text=JW,f.cover_photo=fT(KW()));e.app_card=fT(T$);U$||(f={},U$={Yb:f},f.headline=JW,f.description=JW,f.icon=fT(KW()),f.banner_image=fT(KW()));e.website_card=fT(U$);e.prominence=IW;W$||(f={},W$={Yb:f},f.call_to_action_text=JW);e.social_card=fT(W$);X$||(f={},X$={Yb:f},f.vote_line_1=JW,f.vote_line_2=JW,f.confirm_line_1=JW,f.confirm_line_2=JW);e.vote_card=fT(X$);e.sponsored=M$;e.teaser_text=JW;Q$||(f={},Q$={Yb: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=fT(Q$);Y$||(f={},Y$={Yb:f},f.latitude_e6=SW,f.longitude_e6=SW,f.address=JW,f.image=fT(KW()),f.headline=JW);e.location_card=fT(Y$)}d.card=eT(O$);d.event=eT(LW())}a=c(this,a,N$);a=c=new EW(a);d=new GS;for(e=0;e<bT(a.b,"card");e++)if(f=GW(a,e),zV(f.nf()))for(k=0;k<bT(f.b,"event");k++){var l;l=k;l=new FW(aT(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&&LS(d,m,XW(m,PW(l)))}a=d}else a=Wia(this,a);return new TW(b,c,a)};z(YW,PS);YW.prototype.ee=function(){return this.g};ZW.prototype.B=function(a){var b={};F(this.g,function(a){b[a]=[]});
var c=new RegExp("^"+this.o);F(Kf(a),function(a){"config"==a.nodeName&&F(Kf(a),function(a){"params"==a.nodeName&&F(Kf(a),function(a){var d=this.o?a.nodeName.replace(c,""):a.nodeName,e=a.getAttribute("data");null!=e||(e=kU(a));null!=a.getAttribute("learn_more")&&(e+="|");fb(this.g,d)?b[d].push(e):b[d]=e},this)},this)},this);
return b};z(aX,PS);z(cX,ZW);cX.prototype.parse=function(a){if(null==a)return null;a=$W(this,a);var b=a.UI;return new aX(b.gone,b.question,b.undo,b.hover_text,a.SurveyOptions||[],a.CustomTracking)};
cX.prototype.A=function(a){var b=[],c=0;F(Kf(a),function(a){if("SurveyOption"==a.nodeName){var e,f;F(Kf(a),function(a){switch(a.nodeName){case "DisplayName":e=kU(a);break;case "URL":f=kU(a)}},this);
null!=e&&null!=f&&(b.push({label:e,url:f}),c++)}},this);
return b};z(dX,PS);eX.prototype.b={Aw:"Siub",zw:"Scs",fv:"Bgub",ev:"Bgp"};eX.prototype.parse=function(a){if(null==a)return null;var b,c,d,e;F(Kf(a),function(a){switch(a.nodeName){case this.b.Aw:b=kU(a);break;case this.b.zw:c=kU(a);break;case this.b.fv:d=kU(a);break;case this.b.ev:e=kU(a)}},this);
return b&&c&&d&&e?new dX(b,c,d,e):null};z(fX,PS);gX.prototype.b={Ew:"TEMPLATE_PARAMETERS",Fw:"TEMPLATE_URL"};gX.prototype.parse=function(a){if(null==a)return null;F(Kf(a),function(a){switch(a.nodeName){case this.b.Ew:Xia(this,a)}},this);
return new fX};z(hX,PS);iX.prototype.b={Uv:"Line1",Vv:"Line2",Wv:"Line3",Rv:"ImageUrl"};iX.prototype.parse=function(a){if(null==a)return null;var b,c,d,e;F(Kf(a),function(a){switch(a.nodeName){case this.b.Uv:b=kU(a,!0);break;case this.b.Vv:c=kU(a,!0);break;case this.b.Wv:d=kU(a,!0);break;case this.b.Rv:e=kU(a)}},this);
return new hX(b,c,d,e)};z(jX,PS);kX.prototype.parse=function(a){if(null==a)return null;var b;F(Kf(a),function(a){switch(a.nodeName){case "ViralExtensionData":a=a.getAttribute("query_id"),B(C(a))||(b=a)}},this);
return new jX(b)};z(lX,PS);z(mX,ZW);var xta=["menu","got_it","targeting_reason_header"],yta=[["generic_message_left","generic_message_hypertext","generic_message_right"]];mX.prototype.parse=function(a){if(null==a)return null;a=$W(this,a);var b=a.UI;if(!nX(b,xta))return null;var c,d=!0,e=!1;F(yta,function(a){Yia(b,a)&&(nX(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 lX(b.menu,b.targeting_reason_header,b.targeting_reason,b.got_it,a.CustomTracking,c,b.control)};oX.prototype.parse=function(a){if(null==a)return null;a=a.getAttribute("sequence");a=null!=a?Ua(a):window.NaN;a=(0,window.isNaN)(a)?-1:a;return new zU(a)};z(pX,PS);qX.prototype.parse=function(a){return null!=a?new pX:null};rX.prototype.parse=function(a){if(null==a)return null;a=a.getAttribute("fallback_index");a=null!=a?Ua(a):window.NaN;return new VT(a)};z(sX,mT);sX.prototype.ce=function(){var a=this.H,a=null!=a&&"clicktag"==a.toLowerCase(),a={url:PL(C(this.A)),width:this.ib(),height:this.getHeight(),Kb:this.Pd(),Kf:this.Bo||!a},b=V.b()&&ES(this.D,"hideMaster")?RS:uha,a=DQ(b,a);a.style.width=this.ib()+"px";a.style.height=this.getHeight()+"px";a.id=this.xa;F(a.getElementsByTagName("object"),this.F,this);F(a.getElementsByTagName("a"),this.F,this);return a};z(tX,mT);tX.prototype.ce=function(){var a=L("DIV");a.innerHTML=this.A;this.F(a);return qT(this,a)};z(uX,mT);uX.prototype.hc=function(){var a=uX.N.hc.call(this);this.B&&(a=a.replace('src=""','src="'+PL(C(this.A))+'"'));return a};
uX.prototype.Dl=function(){var a=uX.N.Dl.call(this);this.B&&(a=a.replace('src=""','src="'+PL(C(this.A))+'"'));return a};
uX.prototype.ce=function(a){var b="";this.B||(b=PL(C(this.A)));b={id:this.xa,url:b,Kb:this.Pd(),width:this.ib()+"px",height:this.getHeight()+"px"};a=V.b()&&ES(this.D,"hideMaster")?RS:a?wha:vha;a=DQ(a,b);F(a.getElementsByTagName("a"),this.F,this);return a};
uX.prototype.fh=function(){return!0};z(vX,mT);vX.prototype.ce=function(){var a=C(this.A);B(C(this.Pd()))||(a=new M(a),jh(a,"clickTAG",ua(this.Pd())),a=a.toString());var b=L("IFRAME",{marginwidth:0,marginheight:0,hspace:0,vspace:0,frameborder:0,scrolling:"no"},null);b.height=this.getHeight();"Text"!=this.wc()&&(b.width=this.ib());b.setAttribute("src",PL(a));this.F(b);return qT(this,b)};yX.prototype.wc=function(){return null!=this.b?kT[this.b]||"Other":null};zX.prototype.uc=function(){return this.b};
zX.prototype.update=function(a,b){var c=null!=this.D?NS(this.D):0;this.g=0<=this.g?this.g:b;c<=a&&c+this.g>=a?aja(this):Fs(this.b,!1)};z(AX,mW);
AX.prototype.b={Xu:"Ad",Qj:"AdParameters",Zu:"AdSystem",$u:"AdTitle",KI:"Advertiser",cv:"AltText",hv:"ClickThrough",jv:"ClickTracking",kv:"Companion",lv:"CompanionAds",mv:"CompanionClickThrough",nv:"CompanionClickTracking",pv:"Creative",sK:"CreativeExtensions",qv:"Creatives",vv:"CustomClick",xv:"Description",Tj:"Duration",ERROR:"Error",Dv:"Extension",Ev:"Extensions",Th:"HTMLResource",Jv:"Icon",Kv:"Icons",Lv:"IconClicks",Mv:"IconClickThrough",Nv:"IconClickTracking",Ov:"IconViewTracking",Vh:"IFrameResource",Wh:"Impression",
BL:"InLine",LINEAR:"Linear",$v:"MediaFile",aw:"MediaFiles",iw:"NonLinear",jw:"NonLinearAds",kw:"NonLinearClickThrough",lw:"NonLinearClickTracking",xN:"Pricing",Xh:"StaticResource",Cw:"Survey",NO:"Tracking",ck:"TrackingEvents",cP:"VAST",Jw:"VASTAdTagURI",Kw:"VideoClicks",Nw:"Wrapper"};
AX.prototype.g={Yu:"adSlotID",bv:"allowMultipleAds",Oh:"apiFramework",wn:"bitrate",rv:"creativeType",wv:"delivery",Tj:"duration",aL:"event",Hv:"followAdditionalWrappers",Bv:"expandedHeight",Cv:"expandedWidth",Sh:"height",Uh:"id",Xv:"maintainAspectRatio",Zv:"maxBitrate",dw:"minBitrate",ew:"minSuggestedDuration",mw:"offset",ow:"program",rw:"required",vw:"scalable",Zn:"sequence",xw:"skipoffset",jo:"type",VERSION:"version",Lw:"codec",Yh:"width",Pw:"xPosition",Rw:"yPosition"};
AX.prototype.o=function(){return new nW(this.A,dja(this),null)};z(JX,mW);JX.prototype.o=function(){return new nW(this.g,null,wja(this))};h=MX.prototype;
h.clone=function(){var a=new MX;"auto"==this.zf?a.zf="auto":"click"==this.zf&&(a.zf="click");a.b=this.b;a.ff=gc(this.ff);a.g=this.g;a.di=this.di;a.A=this.A;a.Eb=gc(this.Eb);a.B=this.B;a.location=this.location;a.referrer=this.referrer;a.D=this.D;a.language=this.language;a.Zf=this.Zf;a.Yf=this.Yf;a.nd=this.nd;a.md=this.md;a.Zc=this.Zc;a.lj=this.lj;a.Fi=this.Fi;a.ci=this.ci;a.um=this.um;a.o=this.o;a.xh=this.xh;a.Ei=this.Ei;a.afcRmFallback=this.afcRmFallback;a.G=this.G;a.F=this.F;a.Of=this.Of;a.xj=this.xj;
a.oq=this.oq;return a};
h.ff=null;h.di=null;h.Eb=null;h.zf="unknown";h.oq=0;h.Zf=0;h.Yf=0;h.nd=0;h.md=0;h.Of=!1;h.Zc=null;h.lj=!1;h.Fi=!1;h.ci=!1;h.um=!0;h.xj=new CL;h.xh=0;h.So=!0;h.Ei=null;h.afcRmFallback=!1;NX.prototype.F=function(){var a=this.A(this.B());return Bd(a)?a.then(function(a){return a.toString()}):a instanceof Error?a:a.toString()};
NX.prototype.C=function(){var a;a=1;pM()&&(a+=4);if(!V.b()){var b=0;KL(IL(),41351017)&&(b+=7168);a+=b}return a};var oY={TO:"ultrahigh",sL:"high",bw:"medium"},Hja={hJ:1E3,iJ:1001,jJ:1002,kJ:1003,lJ:1004,mJ:1005,nJ:1006},Ija={Yv:1,Fv:2},Jja={mK:"content",cO:"site",dO:"site_content"};h=TX.prototype;h.Zh="high";h.yl=!1;h.ek=1;h.fk=null;h.adType="video";h.adBlock=1;h.zl=null;h.jk=!0;h.kk=null;h.Fk=null;h.Tg=null;h.experimentIds=null;h.gender=null;h.host=null;h.hostTierId=null;h.isLiveStream=!1;h.language=null;h.Wp=null;h.Vp=null;h.Ri=1E5;h.Si=null;h.Yp=null;h.Xp=null;h.Ql=0;h.ng=null;h.aj=null;h.gj=null;
h.targeting=null;h.tagForChildDirectedTreatment=-1;h.url=null;h.Li=null;h.Im=null;h.Al=null;h.Pm=null;h.Mm=null;h.Nm=null;h.Om=null;h.tk=null;h.Hm=null;h.wj=null;var XX=(new Date).getTime();var Fja={QJ:"bumpervideo",Gv:"flash",IMAGE:"image",iO:"skippablevideo",mO:"standardvideo",pO:"staticimage",TEXT:"text",VIDEO:"video"},gY=["flash","image","staticimage"],Gja=[new gf(200,200),new gf(250,250),new gf(300,250),new gf(336,280),new gf(450,50),new gf(468,60),new gf(480,70),new gf(728,90)];z(pY,NX);var Kja=["bumpervideo","skippablevideo","standardvideo","video"];pY.prototype.D={av:"allow",zv:"exclude",JN:"require"};pY.prototype.C=function(){var a=pY.N.C.call(this);V.b()&&this.b.gj&&(a|=this.b.gj);return a};
pY.prototype.A=function(a){var b=new M(this.g.b),c=new M("//"+b.g+b.o),b=a.Va();F(b,function(b){jh(c,b,a.get(b))});
$g(c,"https");return c};
pY.prototype.B=function(){var a=new yg;a.set("sdkv",SX(this));a.set("sdki",this.C().toString(16));a.set("video_product_type",null!=this.b.ng?V.b()?5:sa(this.b.ng,"ca-games-")?4:sa(this.b.ng,"ca-video-")?0:-1:-1);a.set("correlator",this.G.b);a.set("client",this.b.ng);V.b()&&!B(C(this.b.url))?a.set("url",this.b.url):a.set("url",this.g.location?this.g.location:this.g.referrer);null!=this.g.Zc&&a.set("adk",this.g.Zc);a.set("num_ads",qY(this));a.set("channel",Mja(this));a.set("output","xml_vast3");this.b.yl&&
a.set("adtest","on");AS&&a.set("flash",XN);fY("alternate_ad_url",this.b.kk,a);fY("cpm",this.b.Fk,a);WX(a,this.g);V.b()||Ub(oY,this.b.Zh)&&a.set("adsafe",this.b.Zh);this.b.host&&(a.set("host",this.b.host),fY("ht_id",this.b.hostTierId,a),null!=this.b.o&&fY("h_ch",this.b.o.join("+"),a));fY("hl",this.b.language,a);fY("cust_age",this.b.zl,a);fY("cust_gender",this.b.gender,a);-1!=this.b.tagForChildDirectedTreatment&&fY("tfcd",this.b.tagForChildDirectedTreatment,a);fY("slotname",this.b.fk,a);if(aY(this.b)&&
(a.set("ea","0"),null!=this.g.nd&&null!=this.g.md)){var b=bY(this.b,this.g.nd,this.g.md,this.g.Of);a.set("image_size",b);B(b)&&(this.b.b=iY(this.b.b,this.b.adType,!0),this.b.adType=this.b.b.join("_"))}a.set("ad_type",this.b.adType);b=LL(IL());B(C(b))||a.set("eid",b);YX(a);VX(a,this.G,this.b,this.g.A||this.b.Tg);a.set("unviewed_position_start","1");b=this.b.ek;a.set("videoad_start_delay",null!=b?b:1);QX(this,a);RX(this,a);OX(this,a);Lja(this)&&a.set("video_format",null!=this.b.Li&&V.b()?this.b.Li:
$l&&uz(6)||Zz&&uz(4)||jM(2.3)?43:18);b=null!=this.b.aj?this.b.aj:fb(this.b.adType.split("_"),"text")?this.D.av:this.D.zv;a.set("t_pyv",b);fY("min_ad_duration",this.b.Ql,a);0<this.b.Ri&&a.set("max_ad_duration",rY(this.b.Ri,qY(this)));0<this.b.Si&&a.set("sdmax",rY(this.b.Si,qY(this)));cY(a,this.H);V.b()&&(b=oQ(this.b.Tg),null!=b&&a.set("video_doc_id","yt_"+b));fY("description_url",this.b.Tg,a);V.b()&&(fY("lact",ZX(this.g),a),fY("loeid",this.b.Al,a),fY("lsv",this.b.isLiveStream,a),this.b.jk||fY("scs",
"false",a),fY("targeting",this.b.targeting,a),fY("video_cpm",this.b.Im,a),fY("yt_pt",this.b.Pm,a),fY("ytdevice",this.b.Mm,a),fY("ytdevicever",this.b.Nm,a),fY("yt_vis",$X(this.g),a),fY("dbp",this.b.Om,a),fY("avo",this.b.tk,a),fY("v_p",this.b.Hm,a));null!=a.get("ms")||fY("ms",this.b.A,a);PX(a);dY(this.g,a,!1);null!=this.g.ff&&fY("loc",this.g.ff.page_location,a);return a};z(sY,NX);sY.prototype.A=function(a){var b=new M(this.g.b);F(a.Va(),function(c){B(a.get(c))?b.b.remove(c):jh(b,c,a.get(c))});
$g(b,"https");return b};
sY.prototype.B=function(){var a=new yg;a.set("sdkv",SX(this));RX(this,a);OX(this,a);PX(a);null!=this.g.Zc&&a.set("adk",this.g.Zc);return a};z(tY,NX);tY.prototype.B=function(){return new yg};
tY.prototype.A=function(){var a=new ZT(this.g.b),b=SX(this);b&&$T(a,"dc_sdkv",[b]);(b=this.C().toString(16))&&$T(a,"dc_sdki",[b]);(b=this.o.H)&&$T(a,"dc_submodel",[b]);null!=this.g.Zc&&$T(a,"dc_adk",[this.g.Zc]);b=new yg;QX(this,b);RX(this,b);OX(this,b);PX(b);Ag(b,"js")&&$T(a,"dc_js",[b.get("js")]);Ag(b,"msid")&&$T(a,"dc_msid",[b.get("msid")]);Ag(b,"frm")&&$T(a,"dc_frm",[b.get("frm")]);Ag(b,"osd")&&$T(a,"dc_osd",[b.get("osd")]);Ag(b,"sdr")&&$T(a,"dc_sdr",[b.get("sdr")]);$T(a,"dcmt",["text/xml"]);
Ag(b,"vpa")&&$T(a,"vpa",[b.get("vpa")]);Ag(b,"mpt")&&$T(a,"mpt",[b.get("mpt")]);Ag(b,"mpv")&&$T(a,"mpv",[b.get("mpv")]);$g(a,"https");return a};z(uY,NX);uY.prototype.A=function(a){a=new M(a.get("adTagUrl"));$g(a,"https");return a};
uY.prototype.F=function(){var a=C(this.B().get("adTagUrl"));return a=a.replace(/^http:/i,"https:")};
uY.prototype.B=function(){var a=new yg;a.set("adTagUrl",this.g.b);a.set("adsResponse",this.g.g);return a};z(vY,NX);vY.prototype.A=function(a){return new M(a.get("adTagUrl"))};
vY.prototype.B=function(){var a=new yg;a.set("adTagUrl",this.g.b);a.set("adsResponse",this.g.g);return a};z(wY,NX);wY.prototype.A=function(a){var b=new M(this.g.b);F(a.Va(),function(c){B(a.get(c))?b.b.remove(c):jh(b,c,a.get(c))});
$g(b,"https");return b};
wY.prototype.B=function(){var a=new yg,b=LL(IL());B(C(b))||a.set("eid",b);a.set("sdkv",SX(this));a.set("sdki",this.C().toString(16));a.set("correlator",this.o.B);a.set("scor",this.o.b);null!=this.g.Zc&&a.set("adk",this.g.Zc);QX(this,a);RX(this,a);OX(this,a);PX(a);var b=(new M(this.g.b)).b,c=new TX;c.g=mY(c.g,b.get("overlay"));a.set("afvsz",bY(c,this.g.nd,this.g.md,this.g.Of));b=this.o.A;null!=b&&(this.o.A=null,a.set("fbidx",b));b=this.o.O;null!=b&&a.set("ppid",b);b="null";c=this.o.g;null!=c?b=c:xY(this.g.location)?
b=this.g.location:xY(this.g.referrer)&&(b=this.g.referrer);a.set("url",b);b=this.o.H;null!=b&&a.set("submodel",b);b=this.o.F;null==b||V.b()||(b=Nja(b),a.set("ciu_szs",b));a.set("impl","");a.set("unviewed_position_start","1");return a};z(yY,wY);yY.prototype.A=function(a){a=yY.N.A.call(this,a);this.G||Pja(this,a);return a};z(zY,tY);zY.prototype.A=function(a){a=zY.N.A.call(this,a);this.G||Rja(this,a);return a};z(AY,NX);var Tja="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(" ");AY.prototype.A=function(){if(!/\[BISCOTTI_ID\]/.test(this.g.b))return BY(this);var a=this.g.di;return Bd(a)?a.then(function(a){return BY(this,a)},function(a){throw YL(G$,a);
},this):a instanceof Error?YL(G$,a):BY(this,a)};
AY.prototype.B=function(){return new yg};DY.prototype.fetch=function(a,b,c){B(C(a.g))?fU(a.b)&&null!=this.b&&!this.b.F?this.b.start(a,x(function(){FY(this,a,b,c)},this)):FY(this,a,b,c):aka(this,a,b,c)};
DY.prototype.g=function(a,b,c,d){var e=Vja(a,this.A).F();Bd(e)?e.then(function(e){HY(this,e,a,b,c,d)},function(a){a instanceof vL?c(a):c(YL(GY,a))},this):e instanceof vL?c(e):e instanceof Error?c(YL(GY,e)):HY(this,e,a,b,c,d)};IY.prototype.reset=function(a){this.b=a+E()};z(LY,hd);LY.prototype.B=function(){KL(IL(),31061782)&&UL.hj(this.C,!0)};var zta={NORMAL:"normal",Uj:"fullscreen"};z(RY,G);h=RY.prototype;h.eh=!1;h.Mp=1E3;h.rq=30;h.sq=45E3;h.Tr=15E3;h.Us=!1;h.Dk=function(){var a=SY(this);this.b.appendChild(this.H);TY(this.H);this.play();return a};
h.ma=function(){null==this.L&&(this.L=this.Dk());return this.L};
h.play=function(){null==this.g&&(this.g=de(function(){this.eh||(this.Lp(),this.Us=!0);this.g=null},this.Us?this.Tr:this.sq,this))};
h.stop=function(){null!=this.g&&(ee(this.g),this.g=null)};
h.show=function(){Es(this.ma(),1);null!=this.o&&(ee(this.o),this.o=null)};
h.Lp=function(){Es(this.ma(),this.rq/100);null==this.o&&(this.o=de(function(){this.S();this.o=null},400,this))};
h.lz=function(){this.show();this.eh=!0;this.C=de(function(){this.eh&&this.stop();this.C=null},this.Mp,this)};
h.xF=function(){null!=this.C&&(ee(this.C),this.C=null);this.eh&&this.play();this.eh=!1};
h.T=function(){RY.N.T.call(this);this.stop();Mb(this.Md)};z(UY,RY);h=UY.prototype;h.Dk=function(){var a=SY(this);J(a,"ima-container-rotator");this.F=L("DIV");this.b.appendChild(this.F);F(this.K,function(a,c){J(a,"ima-container-highlight");var d=63/this.K.length*(c+.5)-5,e=L("DIV",{id:Ta(),"class":"ima-container-selector"});e.style.top=d+"px";this.Md.P(e,"click",function(a){this.sg(a.target)});
this.O.set(e.id,a);this.D.appendChild(e)},this);
this.sg(Mf(this.D));this.play();return a};
h.play=function(){null==this.A&&(this.A=new be(this.M),this.Md.P(this.A,"tick",this.WE));UY.N.play.call(this);this.A.start()};
h.stop=function(){null!=this.A&&this.A.stop();UY.N.stop.call(this)};
h.WE=function(){var a=this.B;this.sg((p(a.nextElementSibling)?a.nextElementSibling:Lf(a.nextSibling))||Mf(this.B.parentNode))};
h.sg=function(a){this.B&&le(this.B,"ima-container-active");J(a,"ima-container-active");var b=this.O.get(a.id);If(b,this.F);this.B=a;this.F=b;TY(b)};z(VY,RY);VY.prototype.Lp=v;VY.prototype.Dk=function(){var a=SY(this);F(this.A,function(a){J(a,"ima-container-highlight");this.b.appendChild(a);TY(a)},this);
this.play();return a};z(WY,Zs);h=WY.prototype;h.play=function(){if(this.Za())return!1;this.Ui();this.Qc("play");this.startTime=E();this.b=1;if(hta())return is(this.g,this.D),this.A=de(this.ey,void 0,this),!0;this.tm(!1);return!1};
h.ey=function(){Cs(this.g);bv(this.g,this.C);is(this.g,this.o);this.A=de(x(this.tm,this,!1),1E3*this.B)};
h.stop=function(){this.Za()&&this.tm(!0)};
h.tm=function(a){is(this.g,"transition","");ee(this.A);is(this.g,this.o);this.endTime=E();this.b=0;a?this.Qc("stop"):this.zc();this.ih()};
h.T=function(){this.stop();WY.N.T.call(this)};
h.pause=function(){};z(YY,hd);h=YY.prototype;h.start=function(){this.tl();this.o=0;ZY(this);this.g=!0;this.B.start()};
h.play=function(){this.g||(ZY(this),this.g=!0,this.B.start())};
h.pause=function(){this.g&&ZY(this)};
h.stop=function(){this.g&&ZY(this);this.dispatchEvent("end")};
h.tl=function(){};
h.fD=function(){this.o+=.2;this.sl(this.o,this.H);this.dispatchEvent("timeUpdate");0>=this.H-this.o&&this.stop()};
h.sl=v;h.T=function(){this.g=!1;this.G.dispose();YY.N.T.call(this)};z(aZ,hd);aZ.prototype.C=function(){this.b?this.dispatchEvent("videoUnmuteClicked"):this.dispatchEvent("videoMuteClicked")};
aZ.prototype.T=function(){this.B.dispose();this.B=null;aZ.N.T.call(this)};var tka=/#(.)(.)(.)(.)/,ska=/^#(?:[0-9a-f]{4}){1,2}$/i;z(eZ,hd);h=eZ.prototype;h.T=function(){null!=this.G&&(this.G.dispose(),this.G=null);null!=this.H&&(this.H.dispose(),this.H=null);gZ(this);null!=this.B&&(Hf(this.B),this.B=null);null!=this.b&&(this.b=null);null!=this.g&&(Hf(this.g),this.g=null);this.L.dispose();this.L=null;this.C.dispose();this.C=null;this.O=!1;eZ.N.T.call(this)};
h.update=function(a,b){this.S=b;if(!(0>=this.S||null==this.o.skipOffset||0>NS(this.o.skipOffset))){var c=NS(this.o.skipOffset);c>=this.S||3==this.A||(0>a?this.A=1:a<=c?(2!=this.A&&(fZ(this,0),XY(this.B,.5,"ease-out",0,1).play(),Fs(this.B,!0)),this.A=2):(3!=this.A&&(Fs(this.g,!0),this.H=new WY(this.B,.5,{opacity:1,visibility:"shown"},{opacity:.9,visibility:"hidden"},{property:"opacity",duration:.5,timing:"ease-out",delay:0}),this.G=XY(this.g,.5,"ease-out",0,1),this.H.play(),this.G.play(),this.b.autofocus&&
this.b.focus(),this.C.P(Of(this.g),"mouseover",this.SE),this.C.P(Of(this.g),"mouseout",this.zs),this.zs()),this.A=3,this.dispatchEvent("skipshown")))}2==this.A&&fZ(this,a)};
h.skip=function(){return null==this.o.skipOffset||3!=this.A||this.M?!1:(this.M=!0,this.dispatchEvent("PUBLISHER_INVOKED_SKIP"),!0)};
h.nF=function(a){V.b()||a.stopPropagation();3!=this.A||this.M||(this.M=!0,this.dispatchEvent("skip"))};
h.zs=function(){null==this.D&&"4.4.4"!==(CA?lM(iM):"")&&(this.D=de(function(){this.O=!0;XY(this.g,.5,"ease-in",1,.5).play();this.D=null},this.O?5E3:15E3,this))};
h.SE=function(){Es(this.g,1);gZ(this)};z(kZ,hd);h=kZ.prototype;h.show=function(){null!=this.g&&Fs(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&&(Hf(this.g),this.g=null);lZ(this);F(this.ba,function(a){a.Sb()});
this.ba=[];this.B=null;this.o.dispose();this.o=null;this.ra=!1;kZ.N.T.call(this)};
h.update=function(a,b,c,d,e){this.ra=!0;null!=this.g&&(null!=this.ga&&xka(this,a,c,d,e),null!=this.$&&zs(this.$,a/c*100+"%"),null!=this.na&&zs(this.na,b/c*100+"%"),0<c&&null!=this.b.skipOffset&&null!=this.A&&(MS(this.b.skipOffset,c),this.A.update(a,c)),this.b.F&&0<c&&5>c-a&&J(this.ca,"videoAdUiTopBarNoFade"),F(this.Ha,function(b){b.update(a,c)},this))};
h.fx=function(){this.dispatchEvent("videoAuthorIconClicked")};
h.gx=function(){this.dispatchEvent("videoAuthorClicked")};
h.mq=function(){this.dispatchEvent("videoLearnMoreClicked")};
h.kF=function(){this.dispatchEvent("videoShareClicked")};
h.vF=function(){this.dispatchEvent("videoTitleClicked")};
h.Pz=function(a){a.preventDefault()};
h.vj=function(){this.dispatchEvent("click")};
h.jF=function(){J(this.ca,"videoAdUiTopBarTransitions")};
h.BE=function(){var a=Yf(this.g,"html5-video-player");if(null!=a){var b=this.b.C;null!=a&&(b.A=new Am(b),b.g=new hd,b.g.ug(this),b.C=a,b.Hr(),b.g.dispatchEvent("why_this_ad_url"));null!=this.A&&hZ(this.A,!1)}};
h.DF=function(){null!=this.A&&hZ(this.A,!0)};h=pZ.prototype;
h.Hr=function(){var a={heading:"",targetingReasons:[],learnMore:"",Nk:"",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=JQ(Y(b[0])+mR()+Y(c)+JQ("</a>")+Y(d));a.Nk=b}a.targetingReasons=rb(this.B.C);a.close=this.B.o}else a.Nk=nR(),a.close="Got It";null!=this.o&&(a.mute=this.o.A);rZ(this,cha,a);qZ(this,"videoAdUiWhyThisAdCloseButton",this.ki);qZ(this,"videoAdUiWhyThisAdControl",this.Ro);qZ(this,"videoAdUiWhyThisAdMute",this.zE);a=this.Ro;
b=qf("videoAdUiWhyThisAdGenericMessage",this.b);null!=b&&(b=b.getElementsByTagName("A")[0],null!=b&&this.A.P(b,"click",a))};
h.ki=function(){null!=this.A&&(this.A.dispose(),this.A=null);iZ(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.Ro=function(){null!=this.g&&this.g.dispatchEvent("why_this_ad_settings_url")};
h.zE=function(){if(null!=this.o){this.g.dispatchEvent("mute_interaction_url");var a,b=bX(this.o);if(0==b)a={heading:"",message:"Are you sure you want to stop seeing this ad?",confirm:"YES",cancel:"CANCEL"},rZ(this,eha,a),qZ(this,"videoAdUiMuteCancel",this.Hr),qZ(this,"videoAdUiMuteConfirm",this.Ax);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=JS(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);rZ(this,dha,a);qZ(this,"videoAdUiMuteUndo",this.wF);qZ(this,"videoAdUiMuteConfirm",this.qF);qZ(this,"videoAdUiMuteCancel",this.Bk)}}};
h.Ax=function(){this.g.dispatchEvent("mute_url");this.Bk()};
h.wF=function(){this.g.dispatchEvent("mute_undo_url");this.ki()};
h.qF=function(){if(null!=this.o){for(var a=bX(this.o),b=!1,c=0;c<a;c++){var d=qf("videoAdUiMuteOption"+c,this.b);if(null!=d&&d.checked){b=!0;RL(this.o.g[c].url);break}}if(!b)return}this.Bk()};
h.Bk=function(){this.g.dispatchEvent("MUTE_AD");this.ki()};z(vZ,YY);h=vZ.prototype;h.start=function(){this.tl();this.A.update(0,this.K);XY(this.b,this.F.o,"ease-out",0,1).play();this.G.P(this.A,"skip",this.Zw);vZ.N.start.call(this)};
h.tl=function(){var a=Cs(this.b);if(1==this.D){var b=400>=(0,window.parseInt)(ls(this.b,"width"),10)||400>=a.width;K(this.b,"videoAdUi-mobile",b)}else if(2==this.D){var c=Mf(this.b),d=Cs(c),e=65>=(a.height-d.height)/2;K(this.b,"fullslotAdUi-mobile",e);b=165>=(a.width-d.width)/2;K(this.b,"videoAdUi-mobile",b&&e);c.style.top=Math.max(5,Math.floor((a.height-d.height-65)/2))+"px"}};
h.Zw=function(){this.pause();this.dispatchEvent("skip")};
h.sl=function(a,b){this.A.update(a,b);if(this.C){var c="Ad will close in "+Y(uZ(b-a));Rf(this.C,c)}};
h.T=function(){this.A&&this.A.dispose();Ff(this.b);vZ.N.T.call(this)};z(wZ,G);wZ.prototype.H=function(a,b){var c=gc(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=V.D&&fb(this.D,"impression"),e=yZ(this,this.C,c);zZ(this,e,d);this.G=!0}Aka(this,a)&&(e=OS(this.o,a),0<e.length&&(d=V.D&&fb(this.D,a),c=yZ(this,e,c),zZ(this,c,d),this.g.set(a,!0)))};z(AZ,hd);AZ.prototype.o=function(a){switch(a.type){case "companion_impression":this.dispatchEvent(new xL("companionImpression",this.b));break;case "companion_click":this.dispatchEvent(new xL("companionClick",this.b))}};z(BZ,hd);h=BZ.prototype;h.oh=function(){var a=eb(this.ads,this.G);-1!=a&&++a<this.ads.length?FZ(this,this.ads[a]):FZ(this,null)};
h.gm=function(a,b){var c=eb(this.ads,a);this.ads[c]=b;FZ(this,b)};
h.ds=function(){if(!CZ(this)){if(gb(this.ads))throw ZL(QY);FZ(this,this.ads[0]);if(null==this.G.b)throw YL(QY);}};
h.la=function(a,b){var c=CZ(this)?Z(this):null;this.dispatchEvent(new xL(a,c,b))};
h.uB=function(){};
h.Wl=function(){};
h.destroy=function(){this.dispose()};
h.T=function(){CZ(this)&&(HT(this.G,null),this.G=null);Mb(this.F);this.D=this.F=null;this.fa=!1;V.g?iQ(eQ(),this.ra):this.Da&&(iW().D=null);BZ.N.T.call(this)};
h.he=function(){return[]};
h.Cb=function(){return this.ads[0]};
h.init=function(a){NZ(this);this.Ki(a);this.Ha=!0;this.kg();!V.g&&this.Da&&(iW().D=this.ra)};
h.kg=function(){this.la("loaded")};
h.tg=function(a){CZ(this)&&V.b()&&VL(dV(Z(this)),a)};
h.rs=v;
h.Pc=function(a,b,c){if(!this.fa){if(null==a)throw ZL(qR,null,"displayContainer");if(null!=c){var d=new wk(Xb(this.g)),e=Xb(c);a:{var f=d.contains;if("function"==typeof e.every)d=e.every(f,d);else if(ea(e)||w(e))d=Qk(e,f,d);else{for(var k=Dg(e),l=Cg(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 ZL(qR,null,"opt_adsRenderingSettings should be instance of AdsRenderingSettings");d=this.g;if(null==c.bitrate||0>=c.bitrate)c.bitrate=-1;null==c.bh&&(c.bh=[]);Dka(c.bh);
if(!ga(c.Qd)||0>=c.Qd)c.Qd=15E3;jc(d,c)}this.content=b;this.A=a;this.ds();this.b=this.A.Gi(Bka(this));this.fa=!0}};
h.oe=function(a){a=ES(TU(a),"rm")?a.K:dV(a);F(a,function(a){lb(this.B.C,a)},this)};
h.Vd=function(a,b){F(b,function(b){b=US(a,b);KS(this.B.o,b)},this)};
h.og=function(a){if(a instanceof XS){var b=YS(a);F(b.Va(),function(a){var d=b.get(a);F(d,function(b){LS(this.B.o,a,b)},this)},this)}};
h.getCurrentTime=function(){return-1};
h.Uc=function(){return-1};
h.Nd=function(){return-1};
h.Za=function(){return null!=this.b?this.b.Za():!1};
h.Vc=function(a,b,c){this.Ki(c)};
h.pause=v;h.resume=v;h.skip=v;h.muteAd=v;h.whyThisAdClicked=v;h.whyThisAdClosed=v;h.start=function(){NZ(this);if(!this.Ha)throw YL(EZ,null,"Must call init before start.");};
h.stop=function(){this.destroy()};
h.$f=function(){return null!=this.volume?this.volume:0};
h.setVolume=function(a){((0,window.isNaN)(a)||0>a||1<a)&&aM(this,qR,null,"volume",String(a));this.volume=a};
h.Ki=function(a){if(!Ub(zta,a))throw ZL(qR,null,"view mode",a);this.H=a};
h.Vk=function(){return null};
h.Jp=function(){return null};
h.vs=function(){return null};
h.Pf=function(){return null};
h.yf=function(){LZ(this,"abandon")};
h.Zx=function(){return{currentTime:this.getCurrentTime(),duration:this.Uc(),isPlaying:this.Za(),isVpaid:CZ(this)&&null!=MV(Z(this)),isYouTube:V.b(),volume:this.$f()}};
h.OE=function(a){var b=qb(D$,Wb(F$));vb(b);F(b,function(b){var d=JS(a.b,b);gb(d)||this.dm(b,d)},this);
zka(this.B,a.H)};
h.dm=function(a,b){F(b,function(a){LS(this.B.o,a.Fb(),a.b)},this)};z(RZ,BZ);h=RZ.prototype;h.start=function(){RZ.N.start.call(this);this.A.Yc();this.K=this.A.Ld();if(null!=this.K){LZ(this,"show_ad");Ff(this.K);var a=this.yo();V.g?zga(eQ(),a):Iia(iW(),a);this.K.appendChild(a);this.ii();F(this.$,function(a){a()});
jb(this.$);this.O=!0}};
h.Vc=function(a,b,c){RZ.N.Vc.call(this,a,b,c);this.ii()};
h.T=function(){Mb(this.o);this.A=this.o=null;this.O=!1;V.g?eQ().B=null:iW().o=null;null!=this.K&&(Ff(this.K),this.K=null);RZ.N.T.call(this)};
h.yo=function(){var a=Z(this).b;if(null==a)throw a=ZL(QY),TZ(this,a),a;var b=Z(this);pT(a,IZ(this));nT(a,this.hy);a.B||oT(a,pa(this.ll,b,a));try{KZ(this,b)}catch(d){throw TZ(this,d),d;}this.oe(b);var c=AT(b,this.b);this.B.b=c;b.b&&(this.oe(b),(b=b.b)&&this.Vd(b,nta));this.Vd(a,["start"]);SZ(this,a);return this.bi([a.uc()])};
h.Kp=function(a,b){return new RY(a[0],b)};
h.bi=function(a){null!=this.o&&this.o.stop();this.o=this.Kp(a,x(this.pi,this));a=this.o.ma();K(a,"autoalign",this.g.uo);V.b()&&K(a,"viewmode-fullscreen","fullscreen"==this.H);a.appendChild(this.ia);IZ(this).P(a,"click",mc);(CZ(this)&&UU(Z(this),CV)||this.g.Qs)&&this.pk(this.o.b);return a};
h.pk=function(a){var b=IZ(this);this.ca=DQ(oka);b.P(this.ca,"click",this.Gy);var c=DQ(nka,{close:"Close"});b.P(c,"click",this.Ci);J(a,"extra-padding");null!=this.ka&&728<=this.ka.ib()&&J(a,"wide-overlay-ad");a.appendChild(c)};
h.ii=function(a,b){if(null!=this.o){var c=a?a:0,d=b?b:0,e=Cs(this.A.Ld()),f;f=V.b()?Cs(Mf(this.o.b)):Cs(this.o.b);if(f.width+c>e.width||f.height+d>e.height)throw c=ZL(qta,null),TZ(this,c),d={},d.pid=cW.getInstance().b,d.cz=f.width+"x"+f.height,d.sz=e.width+"x"+e.height,d.ct=Z(this).b.wc(),d.vm=this.H,DM(AM.getInstance(),38,d,!0),this.stop(),c;}};
h.hy=function(a){MZ(this,"click");mc(a)};
h.Ci=function(){LZ(this,"close");this.pi(!0)};
h.ll=function(a,b){oT(b,v);this.O?this.lh(a,b):this.$.push(x(this.lh,this,a,b))};
h.lh=function(a){a=AT(a,this.b);this.B.b=a;MZ(this,"impression");LZ(this,"creativeview");MZ(this,"start")};
h.pi=function(a){null!=this.o&&(this.o.stop(),null!=this.ca&&If(this.ca,this.o.b),a?this.la("userClose"):this.la("autoClose"))};
h.Gy=function(a){mc(a);this.o.show();this.o.play();If(this.o.b,this.ca);de(function(){Fs(this.ia,!1)},500,this);
Fs(this.ia,!0);this.la("userRecall")};z(UZ,RZ);h=UZ.prototype;h.Kp=function(a,b){if(this.S||null==b)b=v;var c;V.b()&&this.S?c=new RY(a[0],b):1<a.length?WZ(this)||"fullscreen"==this.H&&V.b()?c=new VY(a):(c=new UY(a),c.M=15E3):c=new RY(a[0],b);c.Mp=100;this.S&&(c.rq=30);c.sq=45E3;c.Tr=6E3;K(c.b,"scalable",this.S);K(c.ma(),"yt-text-overlay",V.b()&&this.S);return c};
h.$E=function(a){var b=a.b;null!=b?(null==this.ga&&(this.ga=a.getExtension("AdSense").o),oT(b,pa(this.ll,a,b)),nT(b,pa(this.iy,a,b)),"Text"==b.wc()&&(this.S=!0),this.M.push(b)):(b=YL(QY),b=zT(b,a),VL(cV(a),b))};
h.Pc=function(a,b,c){UZ.N.Pc.call(this,a,b,c);this.g.uo=!0;a=Z(this);gb(eV(a))?V.b()&&this.la("companionBackfill"):KZ(this,a)};
h.yo=function(){null==this.M&&(this.M=[],F(this.ads,this.$E,this));if(0==this.M.length)throw ZL(QY);var a=[];F(this.M,function(b){pT(b,IZ(this));"Flash"!=b.wc()||b.ub().getExtension("TemplateAd")||(b.Bo=!0);a.push(b.uc());Cha(b,this.ga.D)},this);
if(0==a.length)throw ZL(QY);Eka(this);return this.bi(a)};
h.start=function(){UZ.N.start.call(this);!this.ea&&WZ(this)&&(this.ea=!0,this.la("contentPauseRequested"));null!=this.C&&this.C.start();if(this.O){var a=XZ(this);DM(AM.getInstance(),33,a)}};
h.Ci=function(a){UZ.N.Ci.call(this,a);F(this.M,function(a){var c=AT(a.ub(),this.b);this.B.b=c;this.Vd(a,["close"]);LZ(this,"close");this.B=new wZ},this)};
h.pi=function(a){UZ.N.pi.call(this,a);WZ(this)&&(null!=this.K&&Ff(this.K),this.ea&&(this.ea=!1,this.la("contentResumeRequested")))};
h.bi=function(a){a=UZ.N.bi.call(this,a);if(WZ(this)){var b=UX(2);J(this.o.b,b);J(a,b)}return a};
h.pk=function(a){if(WZ(this)){var b=Of(a);b&&((a=Kf(a)[0])&&is(a,{margin:"0 auto"}),a=this.ads[0].getExtension("AdSense").o||new xW,this.C=new vZ(b,a,2,VZ(this),!0),IZ(this).P(this.C,"skip",this.Ly),IZ(this).P(this.C,"end",this.zz))}else UZ.N.pk.call(this,a),b=DQ(pka,VZ(this)),a.appendChild(b)};
h.ll=function(a,b){this.O?this.lh(a,b):this.$.push(x(this.lh,this,a,b));oT(b,v);this.la("impression")};
h.lh=function(a,b){var c=AT(a,this.b);this.B.b=c;this.oe(a);this.Vd(b,["creativeview"]);LZ(this,"impression");LZ(this,"creativeview");MZ(this,"start");this.B=new wZ};
h.iy=function(a,b,c){c=xs(c);a=a.getExtension("AdSense");a=new M(a.A);var d=b.ib();(0,window.isNaN)(d)&&(d=Cs(b.uc()).width);var e=b.getHeight();(0,window.isNaN)(e)&&(e=Cs(b.uc()).height);b=IL();b=["0","aw="+d,"ah="+e,"nx="+c.x,"ny="+c.y,"viewMode="+this.H,"sdkv=h.0.0.0","eids="+LL(b)];V.b()||(c=Cs(this.A.Ld()),d=this.C?yka(this.C):new ef(-1,-1),b=b.concat(["bw="+c.width,"bh="+c.height,"sx="+d.x,"sy="+d.y]));SL(a,"elementclick",b);F(this.M,function(a){var b=AT(a.ub(),this.b);this.B.b=b;SZ(this,a);
LZ(this,"click");this.B=new wZ},this);
this.la("click")};
h.Ki=function(a){this.H!=a&&(UZ.N.Ki.call(this,a),this.la("expandedChanged"))};
h.ii=function(){UZ.N.ii.call(this,this.C?15:0,this.C?65:0)};
h.Ly=function(){YZ(this,"skip")};
h.zz=function(){YZ(this,"close")};z(ZZ,lc);var $Z=["classid","data","movie","type","typemustmatch"];z(a_,$w);h=a_.prototype;h.$h="sameDomain";h.setSize=function(a,b){this.F=w(a)?a:Math.round(a)+"px";this.B=w(b)?b:Math.round(b)+"px";this.ma()&&As(b_(this),this.F,this.B);return this};
h.Mf=function(){a_.N.Mf.call(this);for(var a=this.ma(),b=this.g.Va(),c=this.g.Pa(),d=[],e=0;e<b.length;e++)d.push(ua(b[e])+"="+ua(c[e]));var b=d.join("&"),f;if(vf&&!Ac(11)){d=this.H;c={allowFullScreen:"true",AllowScriptAccess:this.$h,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()};Fka(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(We("param",{name:f,value:d[f]}));f=Xe({classid:"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"},{},b);f=We("object",f,c)}else f={AllowScriptAccess:this.$h,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=Xe({src:this.H,type:"application/x-shockwave-flash",pluginspage:"https://www.macromedia.com/go/getflashplayer"},
{allownetworking:"none",allowscriptaccess:"never"},f),f=We("embed",f);a.innerHTML=Oe(f);this.F&&this.B&&this.setSize(this.F,this.B);this.o.P(this.ma(),Wb(Xsa),mc)};
h.Bi=function(){if(null!=this.L&&!(0<=Qa(XN,this.L)))throw Error("Method not supported");var a=this.G.createElement("DIV");a.className="goog-ui-media-flash";this.b=a};
h.T=function(){a_.N.T.call(this);this.g=null;this.o.dispose();this.o=null};z(c_,BZ);var Ata=Le(xe(ye("https://imasdk.googleapis.com/flash/sdkloader/flashinhtml.swf")));Le(xe(ye("http://imasdk.googleapis.com/flash/sdkloader/flashinhtml.swf")));h=c_.prototype;h.T=function(){this.ca=!1;this.o&&(this.o.dispose(),this.O=null);ee(this.$);this.K&&this.la("contentResumeRequested");this.la("allAdsCompleted");c_.N.T.call(this)};
h.Nd=function(){var a=this.qc("getAdRemainingTime");return ga(a)?a:-1};
h.$f=function(){var a=this.qc("getAdVolume");return ga(a)?a:-1};
h.Pc=function(a,b,c){c_.N.Pc.call(this,a,b,c);this.K=Z(this).b instanceof XS};
h.init=function(a){c_.N.init.call(this,a);window[this.oa]=x(this.Fz,this);IZ(this).P(iW(),E$,this.Iz);this.o=new a_(Ata);this.o.setSize(this.ka,this.ea);this.o.$h="always";a=NV(Z(this));B(C(a))?(f_(this,m_,Error("Flash VPAID ad url is empty.")),this.stop()):(this.o.g.set("vpaid",a),this.o.g.set("vpaidEventHandler",this.oa),this.A.Yc(),ax(this.o,this.A.Ld()),this.O=b_(this.o),this.$=de(this.Hz,this.g.Qd,this))};
h.start=function(){if(this.ca){c_.N.start.call(this);var a=Z(this);this.B.B=a.L;var b=AT(a);this.B.b=b;if(b=a.b)this.oe(a),this.Vd(b,D$),this.og(b),PZ(this,a);this.A.Yc();LZ(this,"show_ad");this.setVolume(this.M);this.C=new be(250);IZ(this).P(this.C,"tick",this.Gz);this.K?this.la("contentPauseRequested"):(this.la("contentResumeRequested"),e_(this));this.C.start();this.qc("startAd")}else this.ia=!0};
h.stop=function(){this.Ba||(this.Ba=!0,this.qc("stopAd"),this.A.uf(),null!=this.C&&(this.C.stop(),this.C=null),c_.N.stop.call(this))};
h.Vc=function(a,b,c){c_.N.Vc.call(this,a,b,c);this.ka=a;this.ea=b;this.qc("resizeAd",a,b,c)};
h.pause=function(){null!=this.C&&this.C.stop();this.qc("pauseAd")};
h.resume=function(){null!=this.C&&this.C.start();this.qc("resumeAd")};
h.setVolume=function(a){this.M=a;this.qc("setAdVolume",a)};
h.kg=function(){};
h.wb=function(){return d_(this)};
h.skip=function(){this.qc("skipAd")};
h.Uc=function(){var a=this.qc("getAdDuration");if(ga(a))return a;a=this.Nd();return 0<=a?this.S/1E3+a:-2};
h.Gz=function(){this.S+=250};
h.qc=function(a){if(!this.o||!this.O)return null;for(var b=[],c=0;c<arguments.length;c++)b.push(arguments[c]);var c=b.shift(),d=!1;this.ca&&(d=!0);if("handshakeVersion"==c||"initAd"==c)d=!0;if(d)try{if(null!=this.O[c])return this.O[c].apply(this.O,b)}catch(e){}return null};
h.Iz=function(a){var b=a.type;if(fb(E$,b)){if("externalActivityEvent"==b&&(b=a.b.eventName,!F$[b]))return;MZ(this,b)}};
h.Hz=function(){f_(this,H$,null,(this.g.Qd/1E3).toString());this.stop()};
h.getCurrentTime=function(){return this.S/1E3};
h.Fz=function(a,b){switch(a){case "flashReady":this.qc("handshakeVersion","2.0");var c=fV(Z(this));this.O.initAd(this.ka,this.ea,this.H,this.g.bitrate,c);break;case "AdLoaded":ee(this.$);this.ca=!0;var c=this.qc("getAdCompanions"),d=w(c)?c:"",c=Z(this);gb(eV(c))&&(d=DX(d,c.b.b),gb(d)||RU(c,d));MZ(this,"loaded");this.ia&&(this.ia=!1,this.start());break;case "AdStarted":LZ(this,"impression");LZ(this,"creativeview");this.la("start");break;case "AdVideoStart":LZ(this,"start");break;case "AdClickThru":b&&
b.playerHandles&&((c=b.url)||(c=C(yV(Z(this)))),null!=c&&QL(c));LZ(this,"click");this.la("click");break;case "AdDurationChange":this.la("durationChange");break;case "AdRemainingTimeChange":this.la("durationChange");e_(this);break;case "AdError":c="AdError";b&&(c=b.message);f_(this,m_,Error(c));this.stop();break;case "AdExpandedChange":this.la("expandedChanged");break;case "AdImpression":c=Z(this);gb(eV(c))||KZ(this,c);this.la("impression");break;case "AdLinearChange":c=d_(this);!this.K&&c?(this.la("contentPauseRequested"),
ee(this.ga)):this.K&&!c&&(this.la("contentResumeRequested"),e_(this));this.K=c;d=this.G;d.ia=!0;d.ka=c;this.la("linearChanged");break;case "AdVolumeChange":c=this.$f();c!=this.M&&(c!=this.M&&this.la("volumeChange"),0==c&&0!=this.M?(LZ(this,"mute"),this.la("mute")):0==this.M&&0!=c&&LZ(this,"unmute"),this.M=c);break;case "AdPaused":MZ(this,"pause");break;case "AdUserClose":MZ(this,"userClose");break;case "AdUserMinimize":LZ(this,"collapse");break;case "AdVideoFirstQuartile":MZ(this,"firstquartile");
break;case "AdVideoMidpoint":MZ(this,"midpoint");break;case "AdVideoThirdQuartile":MZ(this,"thirdquartile");break;case "AdVideoComplete":g_(this);break;case "AdUserAcceptInvitation":this.K?LZ(this,"acceptinvitationlinear"):LZ(this,"acceptinvitation");break;case "AdStopped":g_(this);LZ(this,"stop");this.stop();break;case "AdSkipped":MZ(this,"skip");break;case "AdSkippableStateChange":MZ(this,"skippableStateChanged");break;case "AdPlaying":MZ(this,"resume");break;case "AdLog":this.la("log")}};z(h_,hd);var Bta=Le(xe(ye("https://imasdk.googleapis.com/flash/sdkloader/flashinhtml.swf")));Le(xe(ye("http://imasdk.googleapis.com/flash/sdkloader/flashinhtml.swf")));h=h_.prototype;h.dispose=function(){this.o&&(this.o.dispose(),this.b=null);window[this.g]&&delete window[this.g];ee(this.A)};
h.load=function(a,b,c,d){window[this.g]=x(this.xz,this);this.o=new a_(Bta);this.o.setSize(b,c);this.o.$h="always";this.o.g.set("vpaid",a);this.o.g.set("vpaidEventHandler",this.g);ax(this.o,this.C);this.b=b_(this.o);this.A=de(this.yz,d,this)};
h.wz=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.xz=function(a,b){"AdLoaded"==a&&(ee(this.A),this.B=!0);this.dispatchEvent(new ZZ(a,b||null))};
h.yz=function(){this.dispatchEvent("loadError")};z(i_,BZ);h=i_.prototype;h.T=function(){this.ca=!1;null===this.o?this.ka&&this.dispatchEvent(new xL("destroyInsecureFlashVpaid",Z(this))):this.o.dispose();this.K&&this.la("contentResumeRequested");this.la("allAdsCompleted");i_.N.T.call(this)};
h.Nd=function(){var a=this.jc("getAdRemainingTime");return ga(a)?a:-1};
h.$f=function(){var a=this.jc("getAdVolume");return ga(a)?a:-1};
h.Pc=function(a,b,c){i_.N.Pc.call(this,a,b,c);this.K=Z(this).b instanceof XS};
h.init=function(a){i_.N.init.call(this,a);a=NV(Z(this));B(C(a))?(n_(this,Error("Flash VPAID ad url is empty.")),this.stop()):(IZ(this).P(iW(),E$,this.Ez),this.ka?this.dispatchEvent(new xL("initInsecureFlashVpaid",Z(this),{url:C(a)})):null===this.A.Ld()?(n_(this,Error("Container must be provided for flash VPAID.")),this.stop()):(this.A.Yc(),null===this.o&&(this.o=new h_(this.A.Ld())),IZ(this).P(this.o,"loadError",this.YB),IZ(this).P(this.o,"vpaidEventType",this.Dz),this.o.load(a,this.ia,this.S,this.g.Qd)))};
h.start=function(){if(this.ca){i_.N.start.call(this);var a=Z(this);this.B.B=a.L;var b=AT(a);this.B.b=b;if(b=a.b)this.oe(a),this.Vd(b,D$),this.og(b),PZ(this,a);this.A.Yc();LZ(this,"show_ad");this.setVolume(this.M);this.C=new be(250);IZ(this).P(this.C,"tick",this.Cz);this.K?this.la("contentPauseRequested"):(this.la("contentResumeRequested"),k_(this));this.C.start();this.jc("startAd")}else this.ea=!0};
h.stop=function(){this.ga||(this.jc("stopAd"),this.A.uf(),null!=this.C&&(this.C.stop(),this.C=null),i_.N.stop.call(this),this.ga=!0)};
h.Vc=function(a,b,c){i_.N.Vc.call(this,a,b,c);if(null!==this.o){var d=this.o;d.o&&d.o.setSize(a,b)}this.ia=a;this.S=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.M=a;this.jc("setAdVolume",a)};
h.kg=v;h.wb=function(){return j_(this)};
h.skip=function(){this.jc("skipAd")};
h.Uc=function(){var a=this.jc("getAdDuration");if(ga(a))return a;a=this.Nd();return 0<=a?this.O/1E3+a:-2};
h.Cz=function(){this.O+=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.ka?(c=b.shift(),this.dispatchEvent(new xL("callFlashVpaidMethod",Z(this),{methodName:c,args:b})),this.oa[c]):null===this.o?null:this.o.wz.apply(this.o,b)};
h.Ez=function(a){var b=a.type;if(fb(E$,b)){if("externalActivityEvent"==b&&(b=a.b.eventName,!F$[b]))return;MZ(this,b)}};
h.YB=function(){n_(this,Error("Flash VPAID loader failed to load."));this.stop()};
h.getCurrentTime=function(){return this.O/1E3};
h.Dz=function(a){var b=a.data;switch(a.b){case "flashVpaidMethodResults":b&&(this.oa[b.methodName]=b.result);break;case "flashReady":this.jc("handshakeVersion","2.0");b=fV(Z(this));this.jc("initAd",this.ia,this.S,this.H,this.g.bitrate,b);break;case "AdLoaded":this.ca=!0;b=this.jc("getAdCompanions");a=w(b)?b:"";b=Z(this);gb(eV(b))&&(a=DX(a,b.b.b),gb(a)||RU(b,a));MZ(this,"loaded");this.ea&&(this.ea=!1,this.start());break;case "AdStarted":LZ(this,"impression");LZ(this,"creativeview");this.la("start");
break;case "AdVideoStart":LZ(this,"start");break;case "AdClickThru":b&&b.playerHandles&&((b=b.url)||(b=C(yV(Z(this)))),b&&QL(b));LZ(this,"click");this.la("click");break;case "AdDurationChange":this.la("durationChange");break;case "AdRemainingTimeChange":this.la("durationChange");k_(this);break;case "AdError":a="AdError";b&&(a=b.message);n_(this,Error(a));this.stop();break;case "AdExpandedChange":this.la("expandedChanged");break;case "AdImpression":b=Z(this);gb(eV(b))||KZ(this,b);this.la("impression");
break;case "AdLinearChange":b=j_(this);!this.K&&b?(this.la("contentPauseRequested"),ee(this.$)):this.K&&!b&&(this.la("contentResumeRequested"),k_(this));this.K=b;a=this.G;a.ia=!0;a.ka=b;this.la("linearChanged");break;case "AdVolumeChange":b=this.$f();b!=this.M&&(this.la("volumeChange"),0==b&&0!=this.M?(LZ(this,"mute"),this.la("mute")):0==this.M&&0!=b&&LZ(this,"unmute"),this.M=b);break;case "AdPaused":MZ(this,"pause");break;case "AdUserClose":MZ(this,"userClose");break;case "AdUserMinimize":LZ(this,
"collapse");break;case "AdVideoFirstQuartile":MZ(this,"firstquartile");break;case "AdVideoMidpoint":MZ(this,"midpoint");break;case "AdVideoThirdQuartile":MZ(this,"thirdquartile");break;case "AdVideoComplete":l_(this);break;case "AdUserAcceptInvitation":this.K?LZ(this,"acceptinvitationlinear"):LZ(this,"acceptinvitation");break;case "AdStopped":l_(this);LZ(this,"stop");this.stop();break;case "AdSkipped":MZ(this,"skip");break;case "AdSkippableStateChange":MZ(this,"skippableStateChanged");break;case "AdPlaying":MZ(this,
"resume");break;case "AdLog":this.la("log")}};h=o_.prototype;h.Qk=function(){return this.b.Qk()};
h.yi=function(){return this.b.yi()};
h.Ld=function(){return this.b.Ld()};
h.Gi=function(a){return this.g?this.b.ql():this.b.Gi(a)};
h.setSize=function(a,b){this.b.setSize(a,b)};
h.Ik=function(){return this.b.Ik()};
h.Hi=function(){return this.b.Hi()};
h.rl=function(){return this.b.rl()};
h.Ii=function(){return this.b.Ii()};
h.uf=v;h.dh=v;h.Yc=v;h.ql=function(){return this.b.ql()};
h.Ep=v;z(p_,xL);r_.prototype.isListed=!0;z(u_,YY);var t_=Math.ceil(10*3.14);u_.prototype.F=function(a){V.b()||a.stopPropagation();this.dispatchEvent("click")};
u_.prototype.start=function(){u_.N.start.call(this);null==this.b?this.stop():this.C&&(this.K&&780<=Cs(this.L).width&&this.C.Rp(!0),this.C.Pp())};
u_.prototype.sl=function(a,b){var c=a/b*t_+" "+t_;null!=this.b&&is(this.b,"stroke-dasharray",c)};z(v_,G);v_.prototype.show=function(a,b){w_(this);iA&&a?(a.appendChild(this.o),this.b=de(x(this.g,this,b),2E3)):b()};
v_.prototype.g=function(a){this.b=0;Hf(this.o);a()};
v_.prototype.T=function(){w_(this);v_.N.T.call(this)};z(x_,lc);z(y_,hd);z_.prototype.muted=function(a,b){return!this.mute&&a||0!=this.volume&&0==b};
var Lka={click:3,videoLearnMoreClicked:3,videoShareClicked:8,videoTitleClicked:14,videoAuthorClicked:15,videoAuthorIconClicked:15};h=y_.prototype;h.T=function(){this.Sb();y_.N.T.call(this)};
h.Sb=function(){null!=this.g&&this.g.dispose();null!=this.b&&this.b.Sb();null!=this.C&&this.C.dispose();this.C=null;null!=this.F&&this.F.dispose();this.F=null;this.L.clear();this.G=-1;this.D="";this.H=this.M=!1};
h.Ib=function(a,b,c,d){this.Sb();this.A.B=a.L;this.b=b;this.o=d||null;this.b.Ib();this.B=new z_(this.b);this.K=c||null;this.g=new Am(this);this.D=a.L;a=V.g?eQ():iW();this.g.P(a,"externalActivityEvent",this.WB);this.g.P(a,"measurable_impression",this.tC);this.g.P(a,"viewable_impression",this.nE);this.g.P(this.b,"timeUpdate",this.fA);this.g.P(this.b,"volumeChange",this.gA);this.g.P(this.b,"pause",this.cA);this.g.P(this.b,"play",this.dA);this.g.P(this.b,"end",this.SB);this.g.P(this.b,"beginFullscreen",
this.aA);this.g.P(this.b,"endFullscreen",this.VB);this.g.P(this.b,"skip",this.Zp);this.g.P(this.b,"skipShown",this.xr);this.g.P(this.b,"start",this.eA);this.g.P(this.b,"error",this.$z);this.g.P(this.b,"mediaLoadTimeout",this.bA);null!=this.o&&(this.g.P(this.o,"urlNavigationRequested",this.bE),this.g.P(this.o,"videoShareShown",this.mE),this.g.P(this.o,"skipshown",this.xr),this.g.P(this.o,"skip",this.Zp),this.g.P(this.o,"PUBLISHER_INVOKED_SKIP",this.mD),this.g.P(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.Vx))};
h.tC=function(a){var b=a.b;this.A.F.measurable_impression=null!=b?b.viewabilityString:null;a.b.queryId==this.D&&A_(this,"measurable_impression",!0,!1)};
h.nE=function(a){a=a.b;a.queryId==this.D&&(this.A.F.viewable_impression=null!=a?a.viewabilityString:null,A_(this,"viewable_impression",!0,!0))};
h.WB=function(a){a=a.b;var b=F$[a.eventName];b&&a.queryId==this.D&&(this.A.F[b]=null!=a?a.viewabilityString:null,A_(this,b,!0,!0))};
h.fA=function(){var a=this.b.od();if(-1!=a){this.b.Sg(.25*a)&&A_(this,"firstquartile",!0,!0);this.b.Sg(.5*a)&&A_(this,"midpoint",!0,!0);this.b.Sg(.75*a)&&A_(this,"thirdquartile",!0,!0);var b=this.A,c=this.b.getCurrentTime();if(!Ag(b.g,"skip")){0>b.A&&(rha(b.o,a),b.A=0);for(var a=JS(b.o,"progress"),d=b.A;d<a.length;d++){var e=a[d];if(NS(e.g)>c)break;b.A=d+1;RL(e.b,b.b)}}}B_(this)};
h.eA=function(){this.H=!0;A_(this,"impression",!0,!0);A_(this,"creativeview",!0,!0);null!=this.K||null!=this.o||this.g.P(this.b,"click",this.El);null!=this.K&&(this.C=new lQ,this.g.P(this.C,"click",this.El,!1),this.C.Ib(this.K));null!=this.o&&(this.F=new lQ,this.g.P(this.F,"click",this.El,!1),this.F.Ib(this.o));A_(this,"start",!0,!0);(this.b.cg()||0==this.b.ie())&&A_(this,"mute",!1,!1)};
h.gA=function(){var a=this.b.cg(),b=this.b.ie(),c=this.B;c.mute&&!a||!a&&0==c.volume&&0<b?A_(this,"unmute",!1,!1):this.B.muted(a,b)&&A_(this,"mute",!1,!1);this.B.mute=a;this.B.volume=b};
h.cA=function(){this.b.Je()?C_(this):this.b.vf()&&!this.b.Qp()&&(this.B.paused=!0,A_(this,"pause",!1,!1))};
h.dA=function(){this.B.paused&&(this.B.paused=!1,A_(this,"resume",!1,!1))};
h.SB=function(){C_(this)};
h.El=function(){A_(this,"click",!1,!1)};
h.$z=function(){A_(this,"error",!1,!1)};
h.bA=function(){A_(this,"mediaLoadTimeout",!1,!1)};
h.xr=function(){A_(this,"skipshown",!0,!1)};
h.Vx=function(a){A_(this,a.type,!1,!1)};
h.bE=function(a){this.dispatchEvent(a)};
h.mE=function(){A_(this,"videoShareShown",!0,!1)};
h.Zp=function(){A_(this,"skip",!0,!1)};
h.mD=function(){A_(this,"skip",!0,!1)};
h.aA=function(){A_(this,"fullscreen",!1,!1)};
h.VB=function(){A_(this,"exitfullscreen",!1,!1)};z(D_,BZ);h=D_.prototype;h.T=function(){H_(this);this.Ia.dispose();F_(this);F(this.ka.Pa(),ee);var a=!1;null!=this.A&&(a=this.A.Hi(),this.A.uf(),this.A=null);this.$&&(this.$=!1,this.b.vf()||this.b.Je()||this.b.pause(),gM()&&!a&&(this.b.dg(.001),this.b.load("","")),fM()&&this.b.ag()&&!a&&this.b.vl(),this.la("contentResumeRequested"),this.la("allAdsCompleted"));D_.N.T.call(this)};
h.muteAd=function(){V.b()&&(LZ(this,"mute_interaction_url"),LZ(this,"mute_url"),this.la("MUTE_AD"),E_(this,function(){G_(this)}))};
h.whyThisAdClicked=function(){V.b()&&LZ(this,"why_this_ad_url")};
h.whyThisAdClosed=function(){V.b()&&LZ(this,"why_this_ad_got_it")};
h.oh=function(){F_(this);D_.N.oh.call(this);CZ(this)&&(this.B=new wZ,this.M=new y_(this.B),this.ea=!1,this.la("loaded"))};
h.gm=function(a,b){F_(this);a.wb()&&b.wb()&&null==MV(b)&&null==NV(b)&&(D_.N.gm.call(this,a,b),CZ(this)&&(this.B=new wZ,this.M=new y_(this.B),this.ea=!1))};
h.Wl=function(a){D_.N.Wl.call(this,a);null!=this.b&&this.b.lm(1)};
h.To=function(a,b){b.preventDefault();this.ca||(this.ca=!0,MZ(this,"video_card_endcap_action"));a&&(this.C.pause(),QL(a))};
h.Uo=function(){E_(this,function(){I_(this,"video_card_endcap_dismiss")})};
h.Nx=function(){I_(this,"video_card_endcap_collapse")};
h.oA=function(a,b,c){var d=oQ(b);d&&(a.C=d);var e=a.getExtension("AdSense");null!=e&&null!=e.o&&e.o.g&&this.setVolume(0);if(this.g.Rs){d=a.getExtension("AdSense");(e=this.Ba)||(e=null===b?!1:"modules"==(new M(b)).F().toLowerCase()||qQ(b));var e=e||null!=d&&d.F,d=GV(a)?null:JV(a),f;if(V.b()||oM())f=0;else{if(f=dM()){b:{for(f=0;f<this.ads.length;++f)if(!OZ(this.ads[f])){f=!1;break b}f=dM()}f=!f||null==this.A||!this.A.Ik()}f=f||OV(a)||this.g.Gm}if(f||!V.b()&&e)this.g.Em=!0,this.g.Gm=!0;if(V.b()||this.g.Gm){f=
B(C(yV(a)))?!1:this.g.Em;var k=IL().b.aa("enable_instream_ad_badge"),l=this.g,m=V.b()||!1,n=V.b();OZ(a);d=tZ(e,a.C,d,l);d.A=f;d.M=l.BF;d.O=m;d.L=!0;d.H=n;d.g=k;d.B=l.Dm;d.S=l.Fm;d.ca=l.CF;d.ea=0;l.Dm&&(d.ig="Visit Advertiser")}else aV(a)?(f=a.C,!B(C(f))&&null!==d&&0<NS(d)&&(e=!0),d=tZ(e,f,d,this.g),d.G=e?$ga:Zga):(d=tZ(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:Ff(f);k=Z(this);l=1E3*FT(k);m=k.getExtension("why_this_ad");n=k.getExtension("mute");e.C=new pZ(m,
n);iZ(e.C)&&(m=null!=m?m.A:void 0,n="<span class='videoAdUiAdSettingsShortTooltip'>",n=m?n+Y(m):n+"Click for Ad Settings",m=JQ(n+"</span>"),e.$d=m);this.o=new kZ(e,f,l);f=k.C;null!=f&&(J_(this),e.ca&&a0(this,f));e=this.o;e.L&&(e=e.L,f=0==this.S,e.b!=f&&(e.b=f,$Y(e)));this.Ba&&(f=a.getExtension("AdSense"),null!=f?(e=this.o,f=C(f.g),null!=e.F&&(Fs(e.F,!0),f=new M(f),f=(f.g+f.o).replace(/^www\./i,""),B(C(f))?mZ(e):Rf(e.F,f)),null!=e.O&&Fs(e.O,!0)):mZ(this.o));e=[];d.D&&e.push("adAttribution");d.b&&e.push("countdown")}else d&&
this.g.lk&&(J_(this),a0(this,d));if(d=this.b)this.M.Ib(a,this.b,this.A.Qk(),this.o),IZ(this).P(this.M,"engagedview urlNavigationRequested videoAuthorIconClicked videoAuthorClicked videoClicked videoLearnMoreClicked videoMuteClicked videoShareClicked videoShareShown videoTitleClicked videoUnmuteClicked start".split(" "),this.Dr),IZ(this).P(this.b,"loaded",this.kE),IZ(this).P(this.b,"cardsStateChange",this.Jz),IZ(this).P(this.b,"timeUpdate",this.Gr),IZ(this).P(this.b,"volumeChange",this.Mz),IZ(this).P(this.b,
"shareClicked",this.qs),this.oe(a),e=AT(a,this.b),this.B.b=e,e=a.b,null!=e&&e instanceof XS&&(this.Vd(e,D$),this.og(e),e=IZ(this),Cm(e,this.M,"error",this.Kz,this),Cm(e,this.M,"mediaLoadTimeout",this.Lz,this)),PZ(this,a),a.isSkippable()&&(this.M.G=30),d.ij(Oka(this,a)),d.load(b,c)};
h.DE=function(a,b,c){null!==a.F&&DM(AM.getInstance(),34,{evt:"filled"},!0);this.oa||(this.oa=!0,this.la("contentPauseRequested"));this.oA(a,b,c);this.$=!0;this.setVolume(this.S);this.o&&(B(C(M_(a)))?(b=this.o,null!=b.B&&(b.o.ua(b.B,"click",b.vj),is(b.B,"cursor","default"))):(b=this.o,null!=b.B&&(b.o.P(b.B,"click",b.vj),null!=b.M&&!Gs(b.M)&&is(b.B,"cursor","pointer"))),b=a.b.oa,gb(b)||wka(this.o,b),this.o.show());LZ(this,"show_ad");this.A.dh();try{KZ(this,a)}catch(d){R_(this,JZ,d);return}cW.getInstance().end("pi");
cW.getInstance().start("bt");this.Ia.show(this.A.yi(),x(this.b.play,this.b))};
h.kg=function(){Pka(this);this.la("loaded");this.dispatchEvent(new p_(Z(this)))};
h.skip=function(){CZ(this)&&Z(this).isSkippable()&&(null!=this.o?this.o.skip():(LZ(this,"skip"),$_(this)))};
h.rs=function(){MZ(this,"skipshown")};
h.start=function(){D_.N.start.call(this);cW.getInstance().start("pi");this.ga=[];try{var a=Z(this);this.K=O_(this,a);E_(this,x(D_.prototype.DE,this,a,this.K.g,this.K.b))}catch(b){Q_(this,b),this.oh(),CZ(this)?($L(ZL,this,U_,b,void 0),this.start()):(this.$?$L(ZL,this,U_,b,void 0):(null!=this.D&&XV(this.D,SV()),aM(this,U_,b)),this.stop())}};
h.$f=function(){NZ(this);return this.b.cg()?0:this.b.ie()};
h.setVolume=function(a){NZ(this);this.$?this.b.setVolume(a):this.S=a};
h.pause=function(){NZ(this);this.C?this.C.pause():this.b.pause()};
h.resume=function(){NZ(this);this.C?this.C.play():this.b.play()};
h.getCurrentTime=function(){NZ(this);var a=this.C?this.C.o:0;return this.b.getCurrentTime()+a};
h.Uc=function(){NZ(this);var a=CZ(this)?LV(Z(this)):0;return this.b.od()+a};
h.Nd=function(){NZ(this);var a=this.Uc(),b=this.getCurrentTime();return 0<=a&&0<=b?Math.max(0,a-b):-1};
h.Pf=function(){return this.b.Pf()};
h.Kz=function(){R_(this,U_,ZL(U_,this.b.getError()))};
h.Lz=function(){Tka(this);R_(this,H$,ZL(H$,null,(this.g.Qd/1E3).toString()))};
h.dm=function(a,b){D_.N.dm.call(this,a,b);W_(this,a)};
h.Dr=function(a){switch(a.type){case "start":$ka(this);Bia();this.la("start");Cka(this);break;case "impression":this.la("impression");break;case "why_this_ad_url":this.Ja=this.b.vf();P_(this,"why_this_ad_url");this.pause();break;case "pause":this.la("pause");break;case "why_this_ad_got_it":P_(this,"why_this_ad_got_it");this.Ja||this.resume();break;case "resume":this.la("resume");break;case "firstquartile":this.la("firstquartile");break;case "midpoint":this.la("midpoint");break;case "thirdquartile":this.la("thirdquartile");
break;case "complete":Nka(this)||(this.la("complete"),LZ(this,"instreamAdComplete"),G_(this));break;case "click":this.o&&this.o.b.A?this.b.vf()?this.resume():this.pause():V_(this);break;case "engagedview":X_(this);this.la("engagedview");break;case "urlNavigationRequested":this.dispatchEvent(a);break;case "videoAuthorIconClicked":c0(this);break;case "videoAuthorClicked":c0(this);break;case "videoClicked":this.la("videoClicked");break;case "videoLearnMoreClicked":this.C&&!this.ca&&(this.ca=!0,MZ(this,
"video_card_endcap_action"));this.b.pause();KL(IL(),41351017)&&X_(this);V_(this);break;case "videoShareClicked":Wka(this);break;case "videoShareShown":Xka(this);break;case "videoTitleClicked":Yka(this);break;case "videoMuteClicked":this.na=this.S;this.setVolume(0);break;case "videoUnmuteClicked":this.setVolume(this.na);break;case "skipshown":this.la("skippableStateChanged");break;case "skip":this.C?this.Uo():$_(this);break;case "MUTE_AD":this.la("MUTE_AD"),E_(this,function(){G_(this)})}};
h.yf=function(){D_.N.yf.call(this);this.O&&(Mb(this.O),this.O=null)};
h.qs=function(){var a=Y_(this)||Z_(this);null!=a&&SL(a,"sharebuttonclicked")};
h.oe=function(a){D_.N.oe.call(this,a);W_(this,"impression")};
h.Vd=function(a,b){D_.N.Vd.call(this,a,b);F(b,function(a){W_(this,a)},this)};
h.og=function(a){D_.N.og.call(this,a);a instanceof XS&&(a=YS(a),F(a.Va(),function(a){W_(this,a)},this))};
h.Jp=function(){if(!CZ(this))return null;try{return O_(this,Z(this)).g}catch(a){return null}};
h.Vk=function(){if(!CZ(this))return null;var a=Z(this);if(!HZ(a))throw ZL(N_);a=a.b.O;return gb(a)?null:a[0].g};
h.kE=function(){this.la("adCanPlay")};
h.Jz=function(){var a=this.o;null!=a.g&&K(a.g,"ytp-iv-drawer-open",this.b.Np())};
h.Gr=function(){var a=this.Uc(),b=IL().b;b.aa("enable_website_actions_info_cards")&&b.aa("enable_website_actions_info_cards_endcap")&&b.aa("exclude_endcap_duration_from_ad_remaining_time")&&(a=this.b.od());NZ(this);var b=this.C?this.Uc():this.b.Op(),c=this.getCurrentTime(),d=0,e=0;CZ(this)&&(e=Z(this),d=e.A.g,e=e.A.o);if(null!=this.o&&0<=a&&0<=c){if(!this.ia&&3==Z(this).Da){var f=this.b.od(),k=Z(this),f=Math.abs(f-(null!=k.b?k.b.K:-1));2<f&&(f=ZL(sta,null,Number(f).toFixed(2)),f=zT(f,Z(this),this.b),
k=cV(Z(this)),VL(k,f));this.ia=!0}this.o.update(c,b,a,d,e)}};
h.Mz=function(){var a=this.b.ie();if(a!=this.S&&(this.S=a,this.la("volumeChange"),0==a&&this.la("mute"),this.o)){var b=this.o;b.L&&(b=b.L,a=0==a,b.b!=a&&(b.b=a,$Y(b)))}};
h.jy=function(a){var b=a.b;if("companion-setup-complete"==b.data){a=Z(this);var c=(0,window.encodeURIComponent)(C(yV(a)))+","+(0,window.encodeURIComponent)((Y_(this)||Z_(this)).toString());b.source.postMessage(c,"*");b=b.source.frameElement;b.parentNode.style.cssText="";b.width=370;b.height=null!=yV(a)?210:185}else"pause-video"==b.data&&this.pause()};z(d0,lc);z(e0,BZ);h=e0.prototype;
h.init=function(a){e0.N.init.call(this,a);this.oa=de(this.Oz,this.g.Qd,this);IZ(this).P(window,"message",this.pE);IZ(this).P(this.ga,"tick",this.FE);a=V.g?eQ():iW();IZ(this).P(a,E$,this.Nz);if(this.M)this.dispatchEvent(new d0(0,this.ca));else{a=MV(Z(this));if(/\.html(\?.*)?$/.test(a)){if(a.match("//s0.2mdn.net/instream/html5/survey/survey.html")){var b="en-gb".replace("-","_");a=a.replace(".html","_"+b+".html");null!=this.g.Xf&&(a=Zg(a,"v",this.g.Xf));V.b()&&(b=Wg(a,"st"),b=bla(this,b?b+" yt":"yt"),
a=Zg(a,"st",b))}a=C(a)}else{var b=new M(a),c=new M("http://tpc.googlesyndication.com/pagead/js/loader12.html");"https"==b.A&&$g(c,"https");this.Ja=b.g;a=dh(c,a||"",void 0).toString()}this.K=L("IFRAME",{src:PL(a),allowtransparency:!0,background:"transparent",style:"border:0; opacity:1; margin:0; overflow:hidden;padding:0; width:100%; height:100%;position: absolute;display:none;"});IZ(this).P(this.K,"load",this.Fx);this.A.Ld().appendChild(this.K)}};
h.Pc=function(a,b,c){e0.N.Pc.call(this,a,b,c);this.C=Z(this).b instanceof XS;this.o=a.Gi(!1);this.M||(IZ(this).P(this.o,"click end error loaded mediaLoadTimeout pause play timeUpdate volumeChange".split(" "),this.rD),IZ(this).P(this.o,MR,this.sB))};
h.stop=function(){this.ga.stop();this.A.uf();e0.N.stop.call(this)};
h.wb=function(){return 1==this.C};
h.start=function(){e0.N.start.call(this);if(!V.b()){var a={};a.pid=cW.getInstance().b;a.dn=this.Ja;a["if"]=this.M;DM(AM.getInstance(),29,a,!0)}a=Z(this);this.B.B=a.L;var b=AT(a,this.o);this.B.b=b;if(b=a.b)this.oe(a),this.Vd(b,D$),this.og(b),PZ(this,a);this.o.Ib();LZ(this,"show_ad");this.A.Yc();null!=this.K&&(this.K.style.display="block");this.o.setVolume(this.O);this.Ia=!0;this.C&&this.la("contentPauseRequested");j0(this)};
h.Vc=function(a,b,c){e0.N.Vc.call(this,a,b,c);h0(this,"resizeAd",{width:a,height:b,viewMode:c})};
h.pause=function(){this.S||h0(this,"pauseAd")};
h.resume=function(){this.S&&h0(this,"resumeAd")};
h.setVolume=function(a){this.O=a;e0.N.setVolume.call(this,a);h0(this,"setAdVolume",{value:a})};
h.T=function(){this.M&&this.dispatchEvent(new d0(0,this.ca));Hf(this.K);this.C&&(!this.na||this.o.vf()||this.o.Je()||this.o.pause(),this.la("contentResumeRequested"));this.la("allAdsCompleted");this.ka=!1;this.ea=[];ee(this.oa);this.ga.dispose();e0.N.T.call(this)};
h.kg=function(){};
h.Fx=function(){if(!this.M){var a=this.o.Xk();gb(a)&&(a=this.g.bh);h0(this,"wrapperCall",{messageType:"supportedMimeTypes",supportedMimeTypes:a})}g0(this)};
var ala={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=e0.prototype;
h.pE=function(a){a=a.b;if(this.M){if(a=BR(a.data),null!=a){try{var b=$f(a.data)}catch(c){return}null!=b&&b.session==this.ca&&k0(this,b)}}else if(a.source==this.K.contentWindow){try{b=$f(a.data)}catch(c){return}b.session==this.ca&&k0(this,b)}};
h.Oz=function(){i0(this,H$,null,(this.g.Qd/1E3).toString());this.stop()};
h.Nz=function(a){var b=a.type;if(fb(E$,b)){if("externalActivityEvent"==b&&(b=a.b.eventName,!F$[b]))return;MZ(this,b)}};
h.rD=function(a){switch(a.type){case "timeUpdate":a=this.o.od();var b=this.o.getCurrentTime();f0(this,"wrapperCall",{messageType:"timeupdate",duration:a,currentTime:b});break;case "end":l0(this,"ended");break;case "loaded":l0(this,"loadstart");break;case "mediaLoadTimeout":l0(this,"stalled");break;case "play":l0(this,"playing");break;default:l0(this,a.type)}};
h.sB=function(a){a=a.type;"loadedmetadata"==a?f0(this,"wrapperCall",{messageType:"loadedmetadata",duration:this.o.od()}):l0(this,a)};
h.getCurrentTime=function(){return-1==this.Uc()||-1==this.Nd()?-1:this.Uc()-this.Nd()};
h.Uc=function(){return this.$};
h.Nd=function(){return this.ia};
h.Za=function(){return!this.S};
h.FE=function(){h0(this,"getAdRemainingTime")};z(m0,hd);h=m0.prototype;h.init=function(a,b,c){n0(this,a,b,c);null==this.F&&(this.F=new Am(this),Cm(this.F,this.L,"adsLoaderSdkAdError",this.GA,this));u0(this)};
h.start=function(){this.M=!0;q0(this);0<this.o.length?z0(this):("always"==V.o&&null!=this.ca&&XV(this.ca,SV()),$L(YL,this,NT,void 0,void 0),0==this.Dc&&this.dispatchEvent("contentResumeRequested"),A0(this))};
h.destroy=function(){null!=this.F&&(this.F.dispose(),this.F=null);w0(this);C0(this);V.o=this.ba;this.M=!1};
h.Cb=function(){return this.g<this.o.length?this.o[this.g].b[0]:null};
h.Za=function(){return this.M};
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.yf=function(){null!=this.b&&this.b.yf()};
h.getCurrentTime=function(){return null!=this.b?this.b.getCurrentTime():-1};
h.setVolume=function(a){null!=a&&(this.O=a,null!=this.b&&this.b.setVolume(this.O))};
h.Fq=function(a){V.o=this.ba;var b=a.A;gb(b)?this.D++:(a=a.o,a.b&&F(b,function(a){a.jb=!1},this),this.S=ela(this,b),lb(this.o,new Nia(b,a.b,a.g)),this.D++,this.F.ua(this.L,"adsLoaderSdkAdLoaded",this.Fq,!1,this));
u0(this)};
h.GA=function(){V.o=this.ba;$L(YL,this,NT,void 0,void 0);this.D++;if(!o0(this)||2<=this.o.length-this.g){var a=YL(NT);this.dispatchEvent(new wL(a))}u0(this)};
h.MC=function(){w0(this);C0(this);A0(this)};
h.HA=function(a){a=a.getError().vb();try{var b={};b.ec=a;DM(AM.getInstance(),44,b)}catch(c){}this.g++;z0(this)};
h.vz=function(){this.dispatchEvent("userClose")};
h.qz=function(){this.dispatchEvent("autoClose")};
h.uz=function(){this.g++;z0(this)};
h.rz=function(){this.ia||(this.dispatchEvent("contentPauseRequested"),this.ia=!0)};
h.Gq=function(a){if("impression"==a.type)try{DM(AM.getInstance(),44,{imp:!0})}catch(b){}"vpaidEvent"!=a.type&&fla(this,a.type,a.ub());this.dispatchEvent(a)};z(D0,lc);z(E0,hd);h=E0.prototype;h.Ib=function(){this.g||(null==this.A&&(this.A=new Am(this)),this.A.P(this.b,"currentTimeUpdate",this.Fp,!1),this.A.P(this.b,"contentWrapperError",this.WC,!1));this.b.start();this.g=!0};
h.getCurrentTime=function(){return this.b.currentTime};
h.Sb=function(){null!=this.A&&(this.A.dispose(),this.A=null);this.b.stop();this.g=!1};
h.Fp=function(){if(this.g){var a=this.b.currentTime;if((0,window.isNaN)(a)||0>a)H0(this);else{var b=jla(this,a);this.B?F(b,function(a){G0(this,!0,a)},this):G0(this,!0,Za(b));
G0(this,!1,kla(this,a))}}};
h.WC=function(){H0(this)};z(I0,G);I0.prototype.g=function(){return this.b};z(OY,BZ);h=OY.prototype;
h.Pc=function(a,b,c){null!=this.C&&(this.C.Sb(),this.C.dispose(),this.C=null);OY.N.Pc.call(this,a,b,c);a=this.O.b.Va();b=new VR(b);var d=4;c&&0<=c.am&&(d=c.am);this.Ba=null!=c?c.Mr:0;this.C=new E0(b,a,{prefetch:d});mla(this,a);a=this.O.b.Va();nla(this,a);null!=this.C&&(N0(this),c=IZ(this),Cm(c,this.C,["requestAds","playAds","contentTrackingError"],this.handleEvent,this),Cm(c,this.C,"adBreakReady",this.FA,this),Cm(c,this.$,"contentComplete",this.BB,this),this.$.b=!1);this.L.get(0);try{c={cfg:!0},c.ads=
this.na,DM(AM.getInstance(),44,c)}catch(e){}};
h.init=function(a){OY.N.init.call(this,a);this.C.Ib();this.C.Fp();a=ga(0)&&!(0,window.isNaN)(0)?this.O.b.get(0,[]):[];gb(a)&&this.la("contentResumeRequested")};
h.kg=function(){this.he();this.dispatchEvent(new p_(null))};
h.destroy=function(){this.dispose()};
h.T=function(){this.$.b=!0;if(0<this.L.Qb()){var a=this.L.Pa();F(a,this.Lf,this);this.L.clear()}N0(this);P0(this);null!=this.A&&(this.A.uf(),this.A=null);OY.N.T.call(this)};
h.stop=function(){null!=this.o&&(this.Lf(this.o),this.Ji())};
h.Vc=function(a,b,c){OY.N.Vc.call(this,a,b,c);this.ia=a;this.ga=b;this.H=c;null!=this.o&&n0(this.o,this.ia,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.yf=function(){null!=this.o&&this.o.yf()};
h.setVolume=function(a){OY.N.setVolume.call(this,a);null!=this.o&&this.o.setVolume(a)};
h.getCurrentTime=function(){return null!=this.o?this.o.getCurrentTime():-1};
h.Uc=function(){var a;null!=this.o?(a=this.o,a=null!=a.b?a.b.Uc():-1):a=-1;return a};
h.Nd=function(){var a;null!=this.o?(a=this.o,a=null!=a.b?a.b.Nd():-1):a=-1;return a};
h.he=function(){return this.O.b.Va()};
h.Cb=function(){return null!=this.o?this.o.Cb():null};
h.ds=function(){};
h.handleEvent=function(a){"contentTrackingError"!=a.type&&(jo(this.ca,a),O0(this))};
h.Bz=function(){this.la("userClose")};
h.Az=function(){this.la("autoClose")};
h.Lf=function(a){a.destroy();this.L.remove(a.Dc);this.o=null;null!=this.F&&(this.F.ua(a,B0,this.dispatchEvent,!1,this),this.F.ua(a,"adError",this.bp,!1,this),this.F.ua(a,"allAdsCompleted",this.Aq,!1,this),this.F.ua(a,"contentPauseRequested",this.Ip,!1,this),this.F.ua(a,"contentResumeRequested",this.Ji,!1,this),this.F.ua(a,"adBreakInitialized",this.Bq,!1,this))};
h.BB=function(a){this.ea=!0;-1==this.M?a.b=!1:V.b()&&!K0(this)||L0(this);ila(this.C)};
h.FA=function(a){var b=a.b;a=0==b;var c=-1==b;this.S?(a?this.la("contentResumeRequested"):!c||V.b()&&!K0(this)||L0(this),this.S=!1):(c?de(function(){var a=this.L.get(b);a&&this.Lf(a);V.b()&&!K0(this)||L0(this)},500,this):a&&de(function(){this.la("contentResumeRequested")},100,this),a={},a.adBreakTime=b,this.dispatchEvent(new xL("adBreakReady",null,a)))};
h.bp=function(a){var b=a.getError(),c=b.vb();try{var d={};d.ec=c;DM(AM.getInstance(),44,d)}catch(e){}V.b()&&b&&"adLoadError"==b.Fb()&&this.dispatchEvent(a)};
h.Aq=function(a){this.Lf(a.target);(K0(this)||!V.b()&&this.ea)&&L0(this);this.K=null;O0(this)};
h.Ip=function(){var a=this.C;a.b.stop();a.g=!1;this.la("contentPauseRequested")};
h.Ji=function(){this.la("contentResumeRequested");this.oa||F0(this.C);this.K=null};
h.Bq=function(a){this.K=null;a=a.target;var b={};b.adBreakTime=a.Dc;this.dispatchEvent(new xL("prefetched",a.Cb(),b));O0(this)};
h.la=function(a){var b=null;null!=this.o&&(b=this.o.Cb());this.dispatchEvent(new xL(a,b))};
h.vs=function(a,b){return this.ka=new I0(a,b)};z(Q0,hd);Q0.prototype.T=function(){null!=this.b&&(this.b.ua("adsManagerLoaded",this.dispatchEvent),this.b.ua("adError",this.dispatchEvent),this.b.ua("adLoadError",this.dispatchEvent),this.b=null);Q0.N.T.call(this)};z(S0,UI);h=S0.prototype;h.xd=function(){G9(this.app,!0,this.playerType);x4(this.app,this.playerType)};
h.pauseVideo=function(){this.app.pauseVideo(this.playerType)};
h.yd=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.Hj=function(){U9(this.app)};z(T0,dq);T0.prototype.getAdState=function(){return-1};U0.prototype.reset=function(){RE(this.b)};
U0.prototype.g=function(a,b){JE(a,b,this.b)};
U0.prototype.info=function(a,b){KE(a,b,this.b)};
(function(){var a=window.document;if(a&&"hidden"in a)return"hidden";var b=gs();return b?(b=b.toLowerCase(),b+=Wa("hidden"),!p(a)||b in a?b:null):null})();var W0=[2,5];z(l1,G);l1.prototype.T=function(){l1.N.T.call(this);this.b.b()};
l1.prototype.D=function(){this.o++;var a=r("yt.www.watch.ads.isAfcAdVisible");a&&ha(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 v1,n1=!1,q1=!1,m1=!1;cj("showCompanionAdLoaded",function(){q1&&(r1(),q1=!1)});
cj("watchAdsInit",function(){n1&&(n1=!1,o1())});var xla={cJ:0,aJ:1,$I:2,bJ:3,ZI:4,TI:5,XI:6,YI:7,WI:8,SI:9,eJ:10,RI:11,VI:12,QI:13,dJ:14,OI:15},yla={GL:0,HL:1,JL:2,IL:3,DL:4,FL:5,zK:6};z(y1,nk);h=y1.prototype;h.cancel=function(){this.A&&(this.A=!1,this.Y("dragend",0,0,null));this.o&&(this.o=!1,this.Y("hoverend",0,0,null),Fw(this.b),x1(this))};
h.jt=function(a){Fw(this.b);this.b.U(this.g,z1("move"),this.gt);this.b.U(this.g,z1("out"),this.ht);this.b.U(this.g,"touchstart",this.Rm);this.C&&this.b.U(this.g,z1("down"),this.Qm);var b=mm(a);a=pm(a);this.o=!0;this.Y("hoverstart",a.x,a.y,b);this.Y("hovermove",a.x,a.y,b)};
h.gt=function(a){var b=mm(a);a=pm(a);if(this.B){var c=om(this.B),d=pm(this.B);d.x==a.x&&d.y==a.y&&c==b||this.Y("hovermove",a.x,a.y,b)}else this.Y("hovermove",a.x,a.y,b);this.B=null};
h.ht=function(a){var b=pm(a),c=om(a);c&&Pf(this.D,c)?(this.B=a,this.Y("hovermove",b.x,b.y,c)):(Fw(this.b),x1(this),this.o=!1,this.Y("hoverend",b.x,b.y,c))};
h.zA=function(a){this.jt(a);this.Qm(a)};
h.Qm=function(a){if(!ga(a.button)||0==a.button){Fw(this.b);this.b.U(window.document,z1("move"),this.yA);this.b.U(window.document,z1("up"),this.NF);var b=mm(a);if(Bc)this.b.U(this.g,"dragstart",this.Kx);else if(qm(a),(EA||fs)&&b)a:{for(var c=b;c;){if(Vf(c)||"-1"===c.getAttribute("tabindex")){c.focus();break a}c=c.parentElement}window.document.activeElement.blur()}this.A=!0;a=pm(a);this.Y("dragstart",a.x,a.y,b);this.Y("dragmove",a.x,a.y,b)}};
h.Kx=function(a){qm(a)};
h.yA=function(a){var b=mm(a);b==window.document&&(b=null);a=pm(a);this.Y("hovermove",a.x,a.y,b);this.Y("dragmove",a.x,a.y,b)};
h.NF=function(a){Fw(this.b);this.A=!1;var b=nm(a),c=mm(a);a=pm(a);b&&Pf(this.D,b)?(this.b.U(this.g,z1("move"),this.gt),this.b.U(this.g,z1("out"),this.ht),this.b.U(this.g,z1("down"),this.Qm),this.b.U(this.g,"touchstart",this.Rm),this.Y("dragend",a.x,a.y,c)):(x1(this),this.o=!1,this.Y("dragend",a.x,a.y,c),this.Y("hoverend",a.x,a.y,c))};
h.Rm=function(a){var b=a.changedTouches[0];b&&(Fw(this.b),this.b.U(this.g,"touchmove",this.OF),this.b.U(this.g,"touchend",this.kt),this.b.U(this.g,"touchcancel",this.kt),this.F=b.identifier,a=mm(a),this.o||(this.o=!0,this.Y("hoverstart",b.pageX,b.pageY,a)),this.Y("hovermove",b.pageX,b.pageY,a),this.C&&(this.A=!0,this.Y("dragstart",b.pageX,b.pageY,a),this.Y("dragmove",b.pageX,b.pageY,a)))};
h.OF=function(a){var b=A1(this,a);b&&(qm(a),a=mm(a),this.Y("hovermove",b.pageX,b.pageY,a),this.C&&this.Y("dragmove",b.pageX,b.pageY,a))};
h.kt=function(a){var b=A1(this,a);if(b){Fw(this.b);x1(this);this.o=!1;var c=mm(a);this.C&&(this.G||qm(a),this.A=!1,this.Y("dragend",b.pageX,b.pageY,c));this.Y("hoverend",b.pageX,b.pageY,c)}};
h.T=function(){this.C&&(Bc&&this.D.removeAttribute("draggable"),this.D.style.removeProperty("touch-action"));Fw(this.b);y1.N.T.call(this)};F1.prototype.update=function(a,b,c,d){this.width=b;this.o=c;this.B=d;this.b=b-c-d;this.A=$e(a-c,0,this.b);this.position=this.A+c;this.g=this.A/this.b};z(H1,nk);H1.prototype.dd=function(){return this.adSystem+"_"+this.adType};
H1.prototype.Ge=function(){return this.dd()};
H1.prototype.Cb=function(){return this.g?this.g.Cb():null};
H1.prototype.Lj=v;z(J1,S);J1.prototype.T=function(){J1.N.T.call(this);this.b&&(L1(this.o.app,this.b),this.b=null);M1(this);Ff(K1(this));Ff(N1(this));this.B=this.A=null;delete this.o};z(U1,G);U1.prototype.start=function(){(0,window.isNaN)(this.b)&&(this.o=E(),this.b=de(this.B,this.A-this.g,this))};
U1.prototype.stop=function(){(0,window.isNaN)(this.b)||(this.o=this.g=0,ee(this.b),this.b=window.NaN)};
U1.prototype.pause=function(){(0,window.isNaN)(this.b)||(this.g=E()-this.o,ee(this.b),this.b=window.NaN)};
U1.prototype.T=function(){(0,window.isNaN)(this.b)||ee(this.b)};z(W1,H1);W1.b=15;h=W1.prototype;h.Lj=function(){S1(this.B,13);this.M||this.g.destroy();this.C=this.F=!1;a2(this)};
h.dd=function(){var a;a=this.Cb();var b=ET(a);if(4==I1(b).g)return b;if(WU(a))a=3;else if(a.isSkippable())a=XU(a)?1:2;else return this.adSystem+"_"+this.adType;return this.adSystem+"_"+this.adType+"_"+a};
h.Ge=function(){return this.adSystem+"_"+this.adType};
h.show=function(){var a=this.b,b=V1(a);t4(a.app,b);this.B.o=yq();this.D=this.b.Ea();this.A.subscribe("progresssync",this.Eq,this);this.b.g.ca&&Hf(qf("video-ad-status-bar",this.D));je(this.D,["ad-showing","ad-interrupting"]);this.b.subscribe("resize",this.kn,this);try{this.o.P(this.g,"adError",this.sH),this.o.P(this.g,"click",this.rH),this.o.P(this.g,"complete",this.yB),this.o.P(this.g,"engagedview",this.UB),this.o.P(this.g,"pause",this.gu),this.o.P(this.g,"start",this.hu),this.o.P(this.g,"skip",this.vH),
this.o.P(this.g,"MUTE_AD",this.Lj),this.o.P(this.g,"skippableStateChanged",this.ID),this.o.P(this.g,"youTubeChannelMetadata",this.xC),this.o.P(this.g,"companionInitialized",this.tH),this.o.P(K1(this.b.C),"mouseup",this.uH),this.kn(),this.M||this.g.start()}catch(c){b2(this,c)}a=e1(this.b);this.b.g.B&&a.experiments.aa("ad_info_icon_in_card")&&n4(this.b,"onAdMetadataAvailable",{showAdInfoIcon:!0})};
h.ju=function(a,b,c){if("newdata"==a&&this.videoData!=c){a=new zla;a.isSkippable=this.S;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=Tp;a.skipShown=x(this.g.rs,this.g);if(b=this.Cb()){a.clickThroughUrl=yV(b)||"";var d;(d=this.b.g.Da)||(d=c.lengthSeconds,(b=JV(b))?(MS(b,d),d=NS(b)):d=null);a.skipTime=d||0;a.adSystem=this.adSystem;if(b=d2(this))a.whyThisAdInfo=b;if(d=
e2(this))a.muteAdInfo=d;var e=e1(this.b);this.b.g.B&&e.experiments.aa("ad_info_icon_in_card")&&(e={showAdInfoIcon:!0},e.whyThisAdInfo=b,e.muteAdInfo=d,n4(this.b,"onAdMetadataAvailable",e))}a.videoId=c.videoId;a.videoId||(a.videoUrl=T1(this)||"");c.spacecastModule=this.ba;Z1(this.b,-1,a)}this.videoData=c};
h.iu=function(a){a=a.state;R(a,1)||this.H.pause();R(a,128)?b2(this,Error(a.b.message||"Video player error.")):R(a,1)&&this.H.start()};
h.hu=function(){this.K=!0;this.C=!1;if(!this.F){this.F=!0;var a=this.B;Q1(a);var b=R1(a);if((0,window.isNaN)(a.o))Q1(a);else{var c=yq()-a.o;b.ad_stl=c}P1(a,4,b);$1(this.b,1);Y1(this,!1);this.G&&1!=this.G&&KE("yt_abt",this.G,"video_to_ad");this.videoData&&this.videoData.clientPlaybackNonce&&KE("ad_cpn",this.videoData.clientPlaybackNonce,"video_to_ad");KE("cpn",f1(this.b).clientPlaybackNonce,"video_to_ad");JE("apbs",void 0,"video_to_ad");(a=O("ADS_INSTREAM_FIRST_PLAY"))&&n4(this.b,"onAdAnnounce",a)}Z1(this.b,
1);this.Y("adPlay",this)};
h.gu=function(){this.K&&(this.K=!1,Z1(this.b,2))};
h.yB=function(){if(!this.C){var a=this.B;Q1(a);var b=R1(a),c=c2(a.b);c?b.ad_fmt=c:Q1(a);P1(a,5,b);e1(this.b).Ra&&n4(this.b,"onAdComplete");a2(this);this.C=this.F=!1}};
h.UB=function(){var a=this.B;a.b.Y("AD_LOGGING_EVENT",777,R1(a))};
h.vH=function(){this.C=!0;var a=this.B,b=R1(a),c=c2(a.b);c?b.ad_fmt=c:Q1(a);P1(a,14,b);e1(this.b).Ra&&n4(this.b,"onAdSkip");a2(this)};
h.ID=function(){var a=O("ADS_INSTREAM_SKIPPABLE");a&&n4(this.b,"onAdAnnounce",a)};
h.xC=function(){var a=this.Cb();if(a){var b=a.da,a=a.$,c=e1(this.b),d=d2(this),e=e2(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.aa("ad_info_icon_in_card"),f.whyThisAdInfo=d,f.muteAdInfo=e,n4(this.b,"onAdMetadataAvailable",f);else if(this.b.g.B&&c.experiments.aa("ad_info_icon_in_card")){var f={showAdInfoIcon:!0};f.whyThisAdInfo=d;f.muteAdInfo=e;n4(this.b,"onAdMetadataAvailable",
f)}}};
h.tH=function(a){a=a.event;var b=a.b;b&&b instanceof hd&&this.Y("adCompanionInitialized",a.ub(),b)};
h.sH=function(a){var b={};try{b.error_code=a.event.getError().vb()}catch(c){b.error_code=900,b.error_message=c.toString()}S1(this.B,32,b);b2(this,a.event.getError())};
h.rH=function(){var a=this.B;Q1(a);var b=R1(a);if(a.g){var c=l4(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}P1(a,15,b);this.g.pause();this.Y("select")};
h.Eq=function(){};
h.zq=function(){this.g.yf();Y1(this,!0)};
h.T=function(){this.b.Ga("control_toggle_play_pause",this.ku,this);this.b.Ga("control_play",this.$l,this);this.b.Ga("control_pause",this.Zl,this);this.b.Ga("resize",this.kn,this);Ps(this.o);this.A.Ga("statechange",this.iu,this);this.A.Ga("internalAbandon",this.zq,this);this.A.Ga("internalvideodatachange",this.ju,this);this.A.Ga("progresssync",this.Eq,this);this.M||this.g.destroy();this.L&&(Ff(this.L),this.L=null);this.O&&(Hf(this.O),this.O=null);this.D&&(me(this.D,["ad-showing","ad-interrupting"]),
this.D=null);this.C=!1;u4(this.b);this.H.dispose();this.H=null;W1.N.T.call(this)};
h.ku=function(){this.K?this.Zl():this.$l()};
h.$l=function(){this.g.resume();this.hu()};
h.Zl=function(){this.g.pause();this.gu()};
h.kn=function(){As(K1(this.b.C),this.b.app.D.Ka())};
h.uH=function(a){p(a.b)||dm(a);var b=a.b;p(a.g)||dm(a);this.B.g=new ef(b,a.g)};z(h2,H1);h=h2.prototype;
h.show=function(){if(!this.C||!A4(this.b)){J(this.b.Ea(),"ad-showing");this.o=K1(this.b.C);var a=this.g.Cb().getHeight();this.o.style.height=ns(a,!0);J(this.o,"ad-overlay");this.A.P(this.o,"mouseup",this.yH);try{this.A.P(this.g,"autoClose",this.ZA),this.A.P(this.g,"userClose",this.cE),this.A.P(this.g,"userRecall",this.dE),this.A.P(this.g,"click",this.xH),this.A.P(this.g,"impression",this.hC),this.A.P(this.g,"adError",this.wH),i2(this,"normal"),this.D||this.g.start(),this.ln(),this.b.subscribe("resize",
this.Nj,this),this.b.subscribe("presentingplayerstatechange",this.lu,this),this.Y("adEnd",this)}catch(b){this.Y("adError",b)}}};
h.T=function(){Ps(this.A);this.b.Ga("resize",this.Nj,this);this.b.Ga("presentingplayerstatechange",this.lu,this);le(this.b.Ea(),"ad-showing");this.g&&(this.D||this.g.destroy(),this.g=null);this.o&&le(this.o,"ad-overlay");this.o=null;this.C=!1;h2.N.T.call(this)};
h.cE=function(){this.o&&this.g&&this.g.Cb()&&(this.o.style.height=ns(0,!0));this.C=!0;var a=this.B;a.g=E();var b=g2(a);f2(a,6,b);this.b.Y("overlay_ad_close")};
h.ZA=function(){this.b.Y("overlay_ad_close")};
h.dE=function(){this.b.Y("overlay_ad_open")};
h.xH=function(){this.b.pauseVideo();var a=this.B;a.g=E();var b=g2(a);if(a.o){var c=l4(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}f2(a,100,b)};
h.hC=function(){var a=O("ADS_OVERLAY_IMPRESSION");a&&n4(this.b,"onAdAnnounce",a);this.b.Y("overlay_ad_open")};
h.yH=function(a){this.B.o=a.target==a.currentTarget?null:new ef(a.pageX,a.pageY)};
h.wH=function(a){this.Y("adError",a.event.getError())};
h.lu=function(a){R(a.state,16)&&i2(this,"normal")};
h.Nj=function(){};
h.ln=function(){var a=this.B;a.A=E();var b=g2(a);f2(a,3,b)};z(j2,G);j2.g="rm";j2.b=10;j2.B=200;j2.o=200;j2.A=190;h=j2.prototype;
h.load=function(){var a;a=this.b.app.D.Ka();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=i1(b);c.ck_wh=a.width+"x"+a.height;m4(b.b,14,c);w1();this.ld(Error("The player size is too small."))}else if(this.B=this.b.K)a=this.o,j1(a.b,9,i1(a)),a=g1(this.b),(b=this.b.g.serverPrefetchedVast)&&0<(this.C&3)?(a.g=b,this.b.g.serverPrefetchedVast=void 0):(a.b=this.ee(),a.ci=!this.bq()),this.B.P("adsManagerLoaded",this.fu,!1,this),this.B.P("adError",this.eu,!1,
this),this.ej(this.B,a)};
h.Pk=function(){var a=d1(this.b.g,e1(this.b),f1(this.b));a.surveyCreativeData=this.b.g.surveyCreativeData;a.MF=this.Gg();return a};
h.Gg=function(){return this.S};
h.bq=function(){return!0};
h.fu=function(a){if(a.o===this){JE("aml");JE("aml",void 0,"video_to_ad");try{var b=this.Pk(),c=a.b}catch(d){this.Me(d);return}this.A.P(c,"companionBackfill",x(this.pH,this,c));this.A.P(c,"loaded",x(this.oH,this,c));this.A.P(c,"adError",x(this.nH,this,c));this.A.P(c,"allAdsCompleted",v);this.A.P(c,"contentPauseRequested",v);this.A.P(c,"contentResumeRequested",v);c=aW(a,this.b.H,{},b);try{c.init("normal")}catch(d){c.destroy(),this.Me(d)}}};
h.oH=function(a,b){Hm(this.A);var c=b.ub(),d=c.wb(),e=this.o,f=i1(e);f.ad_man=d?"instream":"overlay";j1(e.b,12,f);e=a.Vk();switch(d?this.Wf(a,c,e):this.ge(a,c)){case 0:t2(this);break;case 1:a.destroy();this.ld(Error("Unable to create a display state."));break;case 2:c=this.o;m4(c.b,21,i1(c));a.destroy();this.ld(Error("Fallback to next ad."));break;case 3:this.ld(Error("SpaceCast user skipping instream ad not hosted on YouTube."));break;default:a.destroy()}};
h.nH=function(a,b){Hm(this.A);a.destroy();this.Me(b.getError())};
h.eu=function(a){var b=a.getError();"adLoadError"==b.Fb()&&a.b===this&&this.Me(b)};
h.pH=function(){o2(this)};
h.Wf=function(a,b,c){var d=f1(this.b)&&f1(this.b).spacecastModule;if(d&&c&&!this.M.test(c))return 3;m2(this,iV(b));l2(this,new W1(this.Gg(),this.b,a,b.isSkippable(),void 0,d,this.g.b));return 0};
h.ge=function(a,b){m2(this,iV(b));l2(this,new h2(this.Gg(),this.b,a));return 0};
h.Me=function(a){if(a){var b=this.o,c=i1(b);a&&$0(a,c);m4(b.b,32,c);this.ld(a)}};
h.ld=function(){l3(this.F)};
h.T=function(){this.B&&(this.B.ua("adsManagerLoaded",this.fu,!1,this),this.B.ua("adError",this.eu,!1,this));Hm(this.O);Hm(this.A);j2.N.T.call(this)};
h.ej=function(a,b){try{R0(a,b,this),JE("ar"),JE("ar",void 0,"video_to_ad")}catch(c){this.Me(c)}};z(p2,H1);h=p2.prototype;h.show=function(){if(e1(this.b).experiments.aa("fix_vmap_afc_mpu_api_stats_ads"))if(m1)this.xp();else{var a=e1(this.b).experiments;o1();s1();t1(a).then(x(this.qH,this),x(this.xp,this))}else o1(),this.o=Si(x(this.By,this),1E3)};
h.T=function(){u2(this);p2.N.T.call(this)};
h.By=function(){var a=r("yt.www.watch.ads.isAfcAdVisible");this.A++;var b={};b.at=this.Ge();a&&a()&&this.B++;2<=this.B?(b.format=this.dd(),u2(this),this.Y("AD_LOGGING_EVENT",3,b),this.Y("adEnd",this)):5<=this.A&&(u2(this),this.Y("AD_LOGGING_EVENT",2,b),this.Y("adEnd",this))};
h.qH=function(){var a={};a.at=this.Ge();a.format=this.dd();this.Y("AD_LOGGING_EVENT",3,a);this.Y("adEnd",this)};
h.xp=function(){var a={};a.at=this.Ge();this.Y("AD_LOGGING_EVENT",2,a);this.Y("adEnd",this)};z(v2,j2);v2.prototype.Pk=function(){var a=v2.N.Pk.call(this);a.so=0==this.H;a.ax=A4(this.b)?a.so:!0;return a};
v2.prototype.ee=function(){var a;a=this.D;(a=4==this.C&&a.b.afvInvideoAdTag?a.b.afvInvideoAdTag:a.b.afvAdTag)?(sa(a,"http:")&&(a=a.substr(5)),a=Qj(a,{videoad_start_delay:n2(this)})):a="";return a};
v2.prototype.ge=function(a,b){if(this.b.g.b)return 1;1==this.g.b&&(k2(this),j1(this.b,1));return v2.N.ge.call(this,a,b)};
v2.prototype.ld=function(a){var b=this.b.g;b.b?v2.N.ld.call(this,a):b.$||this.C&4?(l2(this,new p2(this.b)),t2(this)):v2.N.ld.call(this,a)};w2.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=hc(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&&dc(k,"sz");e=Lj(k,";");d&&d.length&&null==k.sz&&(e="sz="+d.join(",")+";"+e);return[this.o,"pfadx",this.B,";",e,"?"].join("")};x2.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 M(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(r2,h2);r2.prototype.Nj=function(){};
r2.prototype.dd=function(){return"1_3"};
r2.prototype.ln=function(){1==this.G?this.Y("AD_LOGGING_EVENT",2,{}):r2.N.ln.call(this)};z(y2,j2);y2.prototype.ee=function(){return this.ba.b(Y0(this.g),this.C)};
y2.prototype.ge=function(a,b){m2(this,iV(b));var c=TU(b);if(b1(c,"rm"))return 1==this.C||A4(this.b)||w1(),a.tg(),this.b.g.H?(l2(this,new p2(this.b)),0):2;if(b1(c,"blockAllAds"))return a.tg(),l2(this,new r2(this.b,a,1)),0;if(b1(c,"hideMaster"))return l2(this,new r2(this.b,a,0)),0;if(this.b.g.b)return 1;l2(this,new h2(this.Gg(),this.b,a));return 0};z(z2,y2);var Gla={GDFP:1,DART:1,DART_DFP:1,DART_DFA:1,ADSENSE:2,"ADSENSE/ADX":2};h=z2.prototype;h.ee=function(){if(this.b.g.ea){var a=new x2(this.b.g.dynamicAllocationAdTag);return a.b(Y0(this.g),this.K)}a=new w2(this.b.g.dynamicAllocationAdTag,this.b.g,this.H);return a.b(Y0(this.g),this.K)};
h.ej=function(a,b){if(this.G){b.o=c1(this.G);var c=this.b.g.ka;c&&(b.C=c);b.xh=n2(this)}z2.N.ej.call(this,a,b)};
h.Wf=function(a,b,c){A2(this,a);return 1!=this.D&&2!=this.D?1:z2.N.Wf.call(this,a,b,c)};
h.ge=function(a,b){A2(this,a);switch(this.D){case 1:return z2.N.ge.call(this,a,b);case 2:var c;this.b.g.b?c=1:(1==this.g.b&&(k2(this),j1(this.b,1)),m2(this,iV(b)),l2(this,new h2(2,this.b,a)),c=0);return c;default:return 1}};
h.Gg=function(){return this.D||0};
h.ld=function(a){var b=this.b.g;b.b?z2.N.ld.call(this,a):b.$||this.G&4?(l2(this,new p2(this.b)),t2(this)):z2.N.ld.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.
*/
B2.prototype.cancel=function(a){if(this.b)this.o instanceof B2&&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.L?this.L.call(this.K,this):this.G=!0;this.b||(a=new L2,F2(this),D2(this,!1,a))}};
B2.prototype.H=function(a,b){this.D=!1;D2(this,a,b)};
B2.prototype.hi=function(a){F2(this);D2(this,!0,a)};
B2.prototype.then=function(a,b,c){var d,e,f=new Dd(function(a,b){d=a;e=b});
G2(this,d,function(a){a instanceof L2?f.cancel():e(a)});
return f.then(a,b,c)};
Ad(B2);z(E2,ra);E2.prototype.message="Deferred has already fired";E2.prototype.name="AlreadyCalledError";z(L2,ra);L2.prototype.message="Deferred was canceled";L2.prototype.name="CanceledError";K2.prototype.g=function(){delete J2[this.xa];throw this.b;};
var J2={};z(M2,j2);M2.g="https://www.googleapis.com/urlshortener/v1/url?key=AIzaSyBbSB-E7SYd1iggX6r2b5C7ljvO6fVqaj0&shortUrl=";M2.o="43";M2.b=function(a){var b=new B2;Zj(a,{format:"RAW",method:"GET",timeout:5E3,withCredentials:!0,Wb:function(){var c=Error(a+" timed out");F2(b);D2(b,!1,c)},
onError:function(c){c=Error("Problem loading "+a+" with status code "+c.status);F2(b);D2(b,!1,c)},
fb:function(a){b.hi(a)}});
return b};
M2.prototype.ee=function(){return""};
M2.prototype.ej=function(a,b){var c=this.C;c&1||c&4||c&8?this.D?c&8?vla(this.D):("goo.gl"==Jg(this.D)?(c=M2.b("https://www.googleapis.com/urlshortener/v1/url?key=AIzaSyBbSB-E7SYd1iggX6r2b5C7ljvO6fVqaj0&shortUrl="+this.D),H2(c,function(a){a=$f(a.responseText);if(!a)throw Error("Invalid expanded forced ad URL.");if(!a.longUrl)throw Error("Missing forced ad URL information.");a=new M(a.longUrl);jh(a,"video_format","43");return M2.b(a.toString())},this)):c=M2.b(this.D),H2(c,function(c){b.g=c.responseText;
R0(a,b,this)},this),G2(c,null,this.Me,this)):this.Me(Error("Invalid empty URL")):this.Me(Error("Invalid request type: "+c))};z(N2,S);N2.prototype.clear=function(){for(var a=0;a<this.b.length;a++)this.b[a].detach(),Mb(this.b[a]);this.b=[]};
N2.prototype.F=function(a){qm(a);this.o=Math.max(0,this.o-O2(this));P2(this)};
N2.prototype.D=function(a){qm(a);this.o=Math.min(this.b.length-1,this.o+O2(this));P2(this)};z(Q2,FF);h=Q2.prototype;h.T=function(){Q2.N.T.call(this);this.clear()};
h.clear=function(){this.b.clear();this.o.stop()};
h.start=function(){this.o.start();this.Am()};
h.Am=function(){P2(this.b)};
h.Cx=function(a){var b=DU(a),c=EU(b),d;d=new xV(aT(c.b,"action")[0]);var e=LU(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*QW(c)/5)+"%;"}]]],["span","iv-btp-card-reviews",null!=f?f:""]];.01>QW(c)&&(k=["div"]);var l=["div","iv-btp-card-merchant",["span","iv-btp-card-merchant-text",e]];d={href:KU(d),target:"_blank"};e=["div","iv-btp-card-image",["img",{src:HU(IU(b))}]];f=
["div",["yt-ui-ellipsis","yt-ui-ellipsis-2","iv-btp-card-short-info"],["span","iv-btp-card-action",JU(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"],FU(b)]]],["span","iv-btp-card-action",JU(c)],l,k];c=["div","iv-btp-impressions"];a=EU(DU(a));k={TRIGGER_TYPE:"YOUTUBE_DRAWER_AUTO_OPEN"};for(l=0;l<bT(a.b,"event");l++){var m;m=l;m=new FW(aT(a.b,"event")[m]);7==m.Fb()&&(m=Pt(PW(m),
k),c.push(["img",{src:m}]))}return new S(["div","iv-btp-card",["a","iv-btp-card-content",d,e,f,b,c]])};
h.wy=function(){this.C.start()};var R2=null;z(S2,H1);S2.prototype.show=function(){var a=f1(this.b).videoId;if(a){var b=this.g.Cb();oy(e1(this.b).ba,a,{hf:PV(b)||null,yg:QV(b)||null});e1(this.b).experiments.aa("enable_pla_desktop_shelf")&&Nla(this);a={};a.format=this.dd();a.at=this.Ge();a1(b,a);this.Y("AD_LOGGING_EVENT",3,a)}};z(T2,j2);T2.prototype.ee=function(){return this.b.g.Na||""};
T2.prototype.bq=function(){return!1};
T2.prototype.ge=function(a,b){m2(this,iV(b));l2(this,new S2(this.b,a));5!=this.g.b&&o2(this);return 0};
T2.prototype.Wf=function(){return 1};z(U2,T2);U2.prototype.ee=function(){return this.b.g.forceAdUrl||""};z(q2,h2);q2.prototype.Nj=function(){};
q2.prototype.dd=function(){return"4_3"};z(c3,j2);
c3.prototype.ee=function(){var a;if(B(this.D)||0!=Y0(this.g)){var b=this.G;if(b.b.Oa&&b.b.ra){a={};var c="youtube_watch_"+b.g;a.nw="10613";a.asnw=b.b.Oa;a.ssnw=b.b.Oa;a.caid=b.b.ra;a.vdur=b.C;a.csid=c;a.resp="vast2";a.metr="121";c={};(0,window.isNaN)(b.b.oa)||(c._fw_d_001=b.b.oa);b.b.gender&&(c._fw_d_002=b.b.gender);b.b.jb&&(c["_fwu:10613:lang"]=b.b.jb);b.b.na&&(c._fw_dbp=b.b.na);b.b.ga&&(c._fw_distributorvideoassetid=b.b.ga);c._fw_yt_type=b3(b)?"long":"short";if(W2(b)){a.prof=b3(b)?"10613:youtube_html5_w_midroll":"10613:10613_youtube_html5_2014";
a.crtp="youtube";a.flag=Z2(b.o)?"+slcb+qtcb+amcb+exvt+emcr":"+slcb+qtcb+amcb+emcr";var d="",e;if(b.B&1&&!b.D){e={};d=X2(b);if(a3(b.o)){var f;if(a3(b.o)){f=0;var k=b.A.o;if(k)for(var k=k.o,l=0;l<k.length&&(a3(k[l])&&f++,k[l].getId()!=b.o.getId());l++);}else f=0;d+=f}e.slid=d;e.ptgt="a";e.slau=Y2(b);e.tpos=$2(b.o)?b.C.toString():Y0(b.o.qb).toString();d=Lj(e,"&")+";";e={slid:"page_display1",w:"300",h:"60",ptgt:"s",slau:"display",flag:"+cmpn"};d+=Lj(e,"&")+";"}b.B&4&&(e={slid:"overlay",ptgt:"a",slau:"overlay"},
e.tpos=Z2(b.o)?"10":$2(b.o)?b.C.toString():Y0(b.o.qb).toString(),d+=Lj(e,"&")+";",e={slid:"page_display2",w:"300",h:"250",ptgt:"s",slau:"display",flag:"+cmpn"},d+=Lj(e,"&")+";");b.B&8&&(e={slid:"dis",w:"300",h:"250",ptgt:"s",slau:"display",flag:"+cmpn"},d+=Lj(e,"&")+";");b=d.substr(0,d.length-1);a="//2975c.v.fwmrm.net/ad/g/1?"+Lj(a,"&")+";"+Lj(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=Y2(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?"+Lj(a,"&")+";"+Lj(c,"&")+";"+Lj(d,"&")}else a=""}else a=this.D;return a};
c3.prototype.Wf=function(a,b){return c3.N.Wf.call(this,a,b,null)};
c3.prototype.ge=function(a,b){var c=TU(b);if(b1(c,"rm"))return this.F.B=gc(a),2;if(this.b.g.b)return 1;if(b1(c,"hideMaster")){if(a.D&&a.D.mf()){var c=a.D.mf(),d;d=a.Cb();if(V.b()){var e=d.K;d.K=[];d=e}else d=[];c.impressionUrls=d}l2(this,new q2(this.b,a));return 0}return c3.N.ge.call(this,a,b)};d3.prototype.Fb=function(){return this.o};
d3.prototype.create=function(a,b){switch(this.o){case 1:return new v2(a,b,this.b);case 2:return new y2(a,b,this.b);case 3:return new z2(a,b,this.b,this.g);case 5:return new c3(a,b,this.b);case 4:return new M2(a,b);case 7:return new T2(a,b,this.b);case 8:return new U2(a,b,this.b);default:return null}};z(e3,nk);h=e3.prototype;h.getId=function(){return this.xa};
h.show=function(){this.F?this.b instanceof h2&&i2(this.b,"normal"):(this.F=!0,this.b instanceof W1&&i3(this.o,"bs"),this.b.subscribe("adEnd",this.Dq,this),this.b.subscribe("adError",this.cu,this),this.b.subscribe("AD_LOGGING_EVENT",this.$q,this),this.b.subscribe("select",this.bu,this),this.b.subscribe("adCompanionInitialized",this.du,this),this.b.show(),k3(this,!0))};
h.Dq=function(){this.g&&(m3(this),o4(this.o));s2(this)};
h.cu=function(a){if(a){var b={};$0(a,b);j3(this,b);m4(this.o,32,b)}m3(this);s2(this)};
h.$q=function(a,b){j3(this,b);j1(this.o,a,b)};
h.bu=function(){this.D=!1};
h.du=function(a,b){this.Y("adCompanionInitialized",a,b)};
h.T=function(){m3(this);this.b=null;null!=this.B&&(this.B.dispose(),this.B=null);e3.N.T.call(this)};var r3=[new X0(1)];var Ula={Yv:"m",Fv:"f"};z(s3,G);s3.prototype.B=function(a){a=null!=a.ub()?a.ub().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=Au(b,"engage"),a.o=1,b=ZH(b.b),a=pa(uu,a.da,wu(a),tu(a),b)):a=null):a=null;this.g=a}};
s3.prototype.A=function(){this.b&&this.g&&this.g()};z(u3,G);u3.prototype.O=function(){this.o=window.NaN};
u3.prototype.K=function(){if(R(Sr(this.b.b),8)){if(v3(this)){this.C=this.C||E()/1E3;this.F&&(this.B+=E()/1E3-this.F);var a=this.b.getCurrentTime(1);0!=this.g&&Math.abs(a-this.g)>this.S?(this.g=this.b.getCurrentTime(1),w3(this,"seek"),this.B=0,this.A.push(E()/1E3)):(0,window.isNaN)(this.o)&&0!=this.g&&(w3(this,"pause"),this.B=0,this.A.push(E()/1E3));Ti(this.o);this.o=window.NaN;this.g=0}}else R(Sr(this.b.b),4)&&0==this.g&&v3(this)&&(this.g=this.b.getCurrentTime(1),this.o=Ri(x(this.O,this),1E3*this.M),
this.F=E()/1E3)};
u3.prototype.T=function(){Ti(this.o);this.o=window.NaN;this.g=0;this.b.Ga("applicationplayerstatechange",this.K,this)};z(x3,G);h=x3.prototype;h.Hs=function(){this.b.subscribe("beginseeking",this.ji,this)};
h.Bs=function(a,b){return a.g&&a3(a)?b+this.A+this.o:b};
h.As=function(a,b){return!a.g||$2(a)||0x7ffffffffffff==b||0x8000000000000==b?b:b+this.A+this.o};
h.no=function(a){if(a.g&&a3(a)&&!(0>=this.o)){var b={priority:2,id:String(a.getId()),style:"ytp-ad-fadeout"},c=h3(a)+this.A,b=new aq(c,c+this.o-1,b);this.B[a.getId()]=b;this.b.tb([b])}};
h.ou=function(a){a.g&&a3(a)&&(y3(this,a.getId()),this.ji())};
h.ji=function(){(0,window.isNaN)(this.g)||(Ti(this.g),this.g=window.NaN);var a=r4(this.b);A3(this,a,this.b.app.Ya.Nb()/100);Qy(a,"transition","");Qy(a,"opacity","1")};
h.pu=function(a){var b=h3(a)+this.A+this.o,b=50>=1E3*this.b.getCurrentTime(1)-b;a.g&&a3(a)&&b&&(a=.001*(h3(a)+this.D),this.b.seekTo(a),0>=this.C||(a=r4(this.b),Qy(a,"opacity","0"),A3(this,a,0),Ri(x(this.zH,this),0)))};
h.zH=function(){var a=r4(this.b);Qy(a,"transition","opacity "+String(this.C)+"ms linear");Qy(a,"opacity","1");z3(this,a,this.C,1)};
h.nu=function(a,b,c){if(!(0,window.isNaN)(this.g)){var d=Math.max(1,b-E()),d=Math.max(0,a.b.volume+-1*a.b.volume*c/d);A3(this,a,d);this.g=0<d?Nq(x(this.nu,this,a,b,c),c):window.NaN}};
h.mu=function(a,b,c){if(!(0,window.isNaN)(this.g)){var d=Math.max(1,b-E()),e=this.b.app.Ya.Nb()/100,d=Math.min(e,a.b.volume+(e-a.b.volume)*c/d);A3(this,a,d);this.g=d<e?Nq(x(this.mu,this,a,b,c),c):window.NaN}};
h.T=function(){this.ji();this.b.Ga("beginseeking",this.ji,this)};z(B3,x3);h=B3.prototype;h.Hs=v;h.Bs=function(a,b){return b};
h.As=function(a,b){return b};
h.no=v;h.ou=v;h.pu=v;h.T=v;z(C3,G);C3.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;Ob(this.D.A,function(a){a.isDisposed();if(a.isVisible&&!(0>=E3(this,a))){var f;f=a.getId();f=this.D.D[f];if(E3(this,a)>b){var m=!F3(this,a);m!=f.visible&&(f.visible=m,c.push(f));m||(f=E3(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.tb(c,1);if(d){var f=0;0<this.o&&(f=E()/1E3-this.o);Xla(this,a-f-e+2)}else D3(this)}};
C3.prototype.g=function(){return this.o};
C3.prototype.T=function(){D3(this);this.b.Ga("endseeking",this.A,this)};z(G3,G);h=G3.prototype;h.jg=function(a){a.Ga("adBreakComplete",this.jg,this);a.Ga("adCompanionInitialized",this.Xl,this);this.O=Ri(x(this.EA,this,a),0)};
h.Xl=function(a,b){Mb(this.K);this.K=new s3(this.g,b)};
h.EA=function(a){var b=Zla(this,a),c=b.previous,b=b.next;this.O=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&&ga(b.qb.g)?h3(b)-1:0x7ffffffffffff}0==a.xa&&(i3(this.g,"bl"),g3(a)||i3(this.g,"fb"));"loaded"!=a.A||0==a.xa&&g3(a)&&b&&1E3*this.g.b.getCurrentTime()>=h3(b)?(c&&f3(c)&&!e&&(b=d,d=h3(c),d>b&&(b=d),J3(this,c),I3(this,c,b)),this.lf(a)):(this.A[a.getId()]=a,I3(this,a,d),hq(this.g));Tb(this.A)==this.o.length&&this.B.A();H3(this)};
h.lf=function(a){a.Ga("adBreakComplete",this.jg,this);this.b&&a==this.b&&(this.b=null,null!=this.K&&a.g&&(this.K.b=!0));J3(this,a);ob(this.o,a);delete this.A[a.getId()];Mb(a)};
h.Mj=function(a){return this.A[a]};
h.Tl=function(a){if(a.g)for(!$2(a)&&a.D?(y4(this.g),this.C.pu(a)):g3(a)&&!a.D?y4(this.g):w4(this.g),this.lf(a),a=this.B.g(),a={tfla:0<a?Math.floor(E()/1E3-a):0},L3(this.g.ba,"set_previous_ad_end_time",a),a=this.B,a.B&&0<a.b.g.g&&(a.o=E()/1E3,a.A());!gb(this.M);)M3(this,this.M.shift());else a.isVisible||this.lf(a)};
h.T=function(){Ti(this.O);Mb(this.C);Mb(this.B);Mb(this.ea);F(this.o,this.lf,this);G3.N.T.call(this);Mb(this.K)};z(N3,G3);h=N3.prototype;h.Mj=function(a){a=N3.N.Mj.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.xa=a.getId()}b&&"loaded"==b.A?(a.Ga("adBreakComplete",this.jg,this),this.A[a.getId()]=b,this.o[this.o.indexOf(a)]=b,Mb(a)):(this.mg(),b&&(Mb(b),b=null,this.lf(a)));b&&!b.g&&this.mg();return b};
h.jg=function(a){!Z2(a)&&(2!=a.qb.b||10!=Y0(a.qb))||"loaded"==a.A&&a.g||this.mg();N3.N.jg.call(this,a)};
h.Tl=function(a){a.g&&10<this.S?(O3(this),this.ba=Ri(x(this.mg,this),1E3*(this.S-10))):this.mg();N3.N.Tl.call(this,a)};
h.mg=function(){if(!this.isDisposed())for(O3(this);this.H.length&&this.L.length+this.F.length<this.ca;){var a=this.H.shift();a.subscribe("adBreakComplete",this.Cq,this);this.L.push(a);l3(a)}};
h.Cq=function(a){a.Ga("adBreakComplete",this.Cq,this);ob(this.L,a);this.F.push(a)};
h.T=function(){O3(this);F(this.L,Mb);F(this.F,Mb);F(this.H,Mb);N3.N.T.call(this)};z(P3,G3);P3.prototype.getVideoData=function(){return null};
P3.prototype.da=function(a){"loaded"==a.A&&this.H.push(a);a.Ga("adBreakComplete",this.da,this)};
P3.prototype.S=function(){if(null!=this.b&&0<this.H.length){var a=this.H.shift();delete this.A[Y0(a.qb)];var b=Math.floor(E()/1E3)-this.fa;this.fa=null;a.Ga("adBreakComplete",this.S,this);this.lf(a);this.b=null}0<this.L?(this.L--,Q3(this)):(y4(this.ba),(0,window.isFinite)(b)&&(this.ca?this.F.seekTo(window.Infinity,!0):this.F.seekTo(this.F.getCurrentTime()+b,!0)))};var R3=[];z(U3,G);U3.prototype.D=function(){this.b||(this.b=T3(this.A.he()));this.g.b.tb(Wb(this.b),1)};
U3.prototype.o=function(){if(this.b){var a=this.g.b.getCurrentTime(),b=[],c=null,d=Number.MAX_VALUE;F(this.A.he(),function(e){var f=this.b[e];if(f){var m=this.A.L.get(e);m&&m.Dc>a?(e=!J0(this.F,m),e!=f.visible&&(f.visible=e,b.push(f)),e||(f=m.Dc-a,f<d&&(d=f,c=m))):!m||m.Za()?(oJ(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.tb(b,1);var e=this.g.g.g;if(0>=e)if(c){var f=0;0<this.C&&(f=E()/1E3-this.C);bma(this,e-f-d+2)}else V3(this)}};
U3.prototype.T=function(){U3.N.T.call(this);this.g.Ga("endseeking",this.o,this);V3(this)};z(W3,G);h=W3.prototype;h.jp=function(){return 4};
h.oj=function(a){return a};
h.Pr=function(){return!1};
h.oo=v;h.Kh=v;h.qu=v;h.ru=v;h.tu=v;z(X3,G);h=X3.prototype;h.jp=function(){return 4-this.A/1E3};
h.oj=function(a){return Zb(this.o,1E3*a)?this.o[1E3*a]/1E3:a};
h.Pr=function(a){var b=!1,c={};F(Kf(a),x(function(a){var e;if(e=(e=a.getAttribute("timeOffset"))?S3(e):null)b=b||cma(a),c[e]=a},this));
if(!b||0==Tb(c))return!1;a=N(Xb(c),function(a){return(0,window.parseInt)(a,10)});
if(!fma(this,a))return!1;Ob(c,x(function(a,b){var c=(0,window.parseInt)($b(this.o,function(a){return a==b}),10);
c&&a.setAttribute("timeOffset",dma(c))},this));
return!0};
h.oo=function(a){if(!(0>=this.G)){var b=[];F(a,x(function(a){if(Zb(this.o,1E3*a)){var d=new aq(1E3*this.oj(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.tb(b)}};
h.qu=function(a){if(Zb(this.o,1E3*a)){var b=r4(this.b);null!==b&&(a=Math.max(0,1E3*a-1E3*this.b.getCurrentTime(1)),Qy(b,"transition","opacity "+String(a)+"ms linear"),Qy(b,"opacity","0"),Z3(this,b,a,0))}};
h.ru=function(a){Y3(this,1E3*a)&&(this.B[a]&&(oJ(this.b.b,[this.B[a]],void 0),delete this.B[a]),this.Kh())};
h.zu=function(){R(Sr(this.b.b),4)&&this.Kh()};
h.Kh=function(){var a=r4(this.b);null!==a&&(null!=this.g&&(Ti(this.g),this.g=null),$3(this,a,this.b.app.Ya.Nb()/100),Qy(a,"transition",""),Qy(a,"opacity","1"))};
h.tu=function(a){if(Zb(this.o,1E3*a)){var b=1E3*a;200>=1E3*this.b.getCurrentTime(1)-b&&(this.b.seekTo(this.oj(a)+this.F/1E3),0>=this.C||(a=r4(this.b),null!==a&&(Qy(a,"opacity","0"),$3(this,a,0),null!=this.g&&Ti(this.g),this.g=Nq(x(this.IH,this),0))))}};
h.IH=function(){var a=r4(this.b);null!==a&&(Qy(a,"transition","opacity "+String(this.C)+"ms linear"),Qy(a,"opacity","1"),Z3(this,a,this.C,1))};
h.yu=function(a,b,c){if(null!==this.g){var d=Math.max(1,b-E()),d=Math.max(0,a.b.volume+-1*a.b.volume*c/d);$3(this,a,d);0<d?this.g=Nq(x(this.yu,this,a,b,c),c):this.g=null}};
h.xu=function(a,b,c){if(null!==this.g){var d=Math.max(1,b-E()),e=this.b.app.Ya.Nb()/100,d=Math.min(e,a.b.volume+(e-a.b.volume)*c/d);$3(this,a,d);d<e?this.g=Nq(x(this.xu,this,a,b,c),c):this.g=null}};
h.T=function(){this.Kh();this.b.Ga("applicationplayerstatechange",this.zu,this);X3.N.T.call(this)};z(a4,G);var lma={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=a4.prototype;
h.load=function(a){if(this.G=this.b.K){var b=this.b.g;this.B=b.applyFadeOnMidrolls?new X3(this.b):new W3;var c=g1(this.b);c.g=hma(this,a);c.Ei=this.b.H.C;c.Eb.TSLA=ula(this);c.Eb.GET_MIDROLL_POSITION_IN_SEC=x(this.B.oj,this.B);c.Eb.DESCRIPTION_URL="http://www.youtube.com/video/"+f1(this.b).videoId;if(a=n3(b).get(3))if(c.o=c1(a),b=b.ka)c.C=b;this.G.P("adsManagerLoaded",this.vu,!1,this);this.G.P("adError",this.uu,!1,this);R0(this.G,c,this)}};
h.vu=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=jma(this);this.g=aW(a,this.b.H,b,c)}catch(d){h4(this,d);return}if(this.D=this.g.vs(b,this.b.g.g)){this.B.oo(this.g.he());this.M=new u3(this.b,this.D);this.F=new U3(this.b,this.g,this.D);H(this,this.F);Ri(x(this.F.D,this.F),0);fb(this.g.he(),0)||g4(this);this.C.P(this.g,"companionBackfill",x(this.EH,this));this.C.P(this.g,"prefetched",x(this.IA,this));this.C.P(this.g,"loaded",x(this.CH,this));this.C.P(this.g,"adError",x(this.BH,this),!1);this.C.P(this.g,"start",x(this.DH,
this));this.C.P(this.g,"complete",x(this.AH,this));this.C.P(this.g,"companionInitialized",x(this.FH,this));this.C.P(this.g,"contentPauseRequested",x(this.GH,this));this.C.P(this.g,"contentResumeRequested",x(this.HH,this));this.C.P(this.g,"allAdsCompleted",x(this.NA,this));t3(this.b,this.wu,this);try{this.g.init("normal"),this.g.start()}catch(d){L3(this.b.ba,"vmap_ads_manager_init_exception",void 0),this.g.destroy(),this.g=null,h4(this,d)}}}};
h.wu=function(){if(R(Sr(this.b.b),16)||R(Sr(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&&F0(a.C)};
h.FH=function(a){if(a=a.b)Mb(this.K),this.K=new s3(this.b,a)};
h.GH=function(a){i4(this);if((this.o=a.ub())&&this.o.wb()){a=c4(this.o);var b=f4(this.o);this.A=new W1(a,this.b,this.g,this.o.isSkippable(),!0,void 0,b);1!=b&&UE("video_to_ad",["apbs"]);K3(this.b);this.B.ru(this.o.A.b);this.A.show();b4(this,"show_instream_ads")}};
h.HH=function(a){g4(this);this.b.getCurrentTime(1)<this.b.b.getVideoData().lengthSeconds&&(y4(this.b),this.o&&this.o.wb()&&(this.B.tu(this.o.A.b),null!=this.K&&(this.K.b=!0)));a=a.ub();this.H?this.o=null:e1(this.b).experiments.aa("fix_vmap_afc_mpu_api_stats_ads")&&!a&&this.A instanceof p2||i4(this);var b=!0;if(a&&a!==this.o&&!a.wb()){b=this.g;if(null!=b.o&&b.o.S&&!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 aq(1E4,c.end,{id:"10",visible:!0});c.visible=!1;b.g.b.tb([c,
b.b[0]],1);b.g.tb([b.b[0]])}this.o=a;return}b=kma(this,a)}this.o&&this.o.wb()&&o4(this.b);this.o&&this.o.wb()?(b4(this,"set_previous_ad_end_time"),b=this.D,0<b.o&&(b.b=E()/1E3),b=this.F,b.C=E()/1E3,b.o()):a&&a!==this.o&&!a.wb()&&b&&(b=this.F,b.C=E()/1E3,b.o());this.F.D();this.o=a};
h.NA=function(){this.M.G=!0};
h.DH=function(a){(a=a.ub())&&this.A&&(a=c4(a),this.A.adSystem=a)};
h.AH=function(a){a.ub().wb()||this.o!==a.ub()||(i4(this),this.o=null)};
h.IA=function(a){var b=a.ub();null!=b&&(this.O[a.b.adBreakTime]=b)};
h.CH=function(a){if(null!=a.ub()){var b=a.ub().A;0<b.b&&(this.H=!1);b.A||a.ub().wb()||g4(this)}};
h.BH=function(a){h4(this,a.getError())};
h.uu=function(a){var b=a.getError();"adLoadError"==b.Fb()&&a.b===this&&h4(this,b)};
h.EH=function(a){e4(this,a&&a.ub())};
h.T=function(){i4(this);this.G&&(this.G.ua("adsManagerLoaded",this.vu,!1,this),this.G.ua("adError",this.uu,!1,this));Hm(this.S);Hm(this.C);this.b.b.removeEventListener("applicationplayerstatechange",this.wu,this);this.L=!1;this.g&&(this.g.destroy(),this.g=null);Mb(this.B);Mb(this.M);Mb(this.K);a4.N.T.call(this)};
h.GC=function(a,b,c){if(e1(this.b).experiments.aa("fix_vmap_afc_mpu_api_stats_ads")){if(a){a=a.Dc;var d=1;-1==a?d=3:0<a&&(d=2);c.break_type=d;c.sst=a;c.sidx=0}j1(this.b,b,c)}};z(j4,T0);j4.o=10;j4.g=1E3;j4.b="livead";j4.xb=function(a){return!!a.Ya.getVideoData().adModule};
h=j4.prototype;h.xb=function(){return j4.xb(this.app)};
h.create=function(){j4.N.create.call(this);this.L.U(this.b,"beginseeking",x(this.Y,this,"beginseeking"));this.L.U(this.b,"endseeking",x(this.Y,this,"endseeking"));this.L.U(this.b,"resize",x(this.Y,this,"resize"));this.L.U(this.b,"presentingplayerstatechange",x(this.Y,this,"presentingplayerstatechange"));this.L.U(this.b,"webglsettingschanged",x(this.Y,this,"webglsettingschanged"));i3(this,"i");this.g=new Wla(e1(this),this.b.getVideoData().A||{});this.G=new $la(this,this.b);this.da=!1;if(this.K)this.K.b.o.B=
wM();else{var a=this.g.ca?void 0:N1(this.C),b=new S0(this.app,2),c=K1(this.C);b.g||(b.g=gc(b.o),b.g.addEventListener=x(b.Px,b),b.g.removeEventListener=x(b.Qx,b));this.H=new QR(c,void 0,a,b.g,!0);this.H.setSize(-1,-1);this.K=new Q0(this.H)}if(this.g.vmap&&!this.g.fa){this.A=new a4(this);try{this.A.load(this.g.vmap)}catch(e){Vi(e),L3(this.ba,"vmap_load_exception",void 0),this.A.dispose(),this.A=null,v4(this,q3(new p3(this)))}}else{try{if(Pi("EXP_QUICK_FETCH_BISCOTTI")&&!this.g.serverPrefetchedVast){var d=
yq();this.S=iz().then(x(this.eB,this,d),x(this.dB,this,d))}}catch(e){Vi(e)}v4(this,q3(new p3(this)))}this.G&&(a={},a.allowed=this.G.g,jq(this,{},a))};
h.eB=function(a,b){var c=b?0:2,d=Math.round(yq()-a);this.log({biscotti:1,dur:d,bstate:c})};
h.dB=function(a){a=Math.round(yq()-a);this.log({biscotti:1,dur:a,bstate:1})};
h.destroy=function(){this.$&&w4(this);this.app.W.experiments.aa("disable_new_pause_state3")||fq(this);u4(this);Nb(this.o,this.B,this.A);this.G=this.g=this.A=this.ea=this.B=this.o=null;M1(this.C);q1=n1=m1=!1;s1();this.S&&this.S.cancel();this.D&&j4.N.destroy.call(this)};
h.getPresentingPlayerType=function(){return this.app.getPresentingPlayerType()};
h.Qa=function(){return this.b.Qa()||this.g.C};
h.Ih=function(){var a;if(this.G){a=this.G;var b={allowed:a.g};a.b.excludedAds&&(b.ex_ad=a.b.excludedAds);a.o&&(b.at=a.o);a=b}else a=j4.N.Ih.call(this);return a};
h.Ea=function(){return this.b.Ea()};
h.getVideoData=function(){return this.ea};
h.getCurrentTime=function(a){return this.app.getCurrentTime(a)};
h.pauseVideo=function(){var a=this.app;Ri(function(){a.pauseVideo()},0)};
h.seekTo=function(a){var b=this.app;Ri(function(){b.seekTo(a)},0)};
h.getAdState=function(){return this.O};
h.Xc=function(a){j4.N.Xc.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.Mj(b);if(d&&!F3(c.B,d)&&(c=c.C,d.g)){var e=r4(c.b),d=Math.max(0,h3(d)+c.A+c.o-1E3*c.b.getCurrentTime(1));Qy(e,"transition","opacity "+String(d)+"ms linear");Qy(e,"opacity","0");z3(c,e,d,0)}}else M3(this.o,b);this.A&&!(0,window.isNaN)(b)&&("ytp-ad-fadeout"==a.style?(d=this.A,(c=d.O[b])&&c.wb()&&d.B.qu(b)):0>b?(b=this.K.b,d=new bW("contentComplete"),
b.dispatchEvent(d),d.b&&(KL(IL(),420706009)||b.o.clear(),null!=b.g&&(d=b.g.mf(),null!=d&&kS(d,b.o.b)))):(b=this.A,null!=b.o&&(b=b.g,null!=b.o&&b.o.start())));if("livead"===a.getId()&&null!=p4(this)){b=p4(this);for(a=Math.floor(a.start/1E3);p(b.A[a]);)a++;d=b.ga++;c=0==a?new X0(1):new X0(2,a);d=new e3(b.ba,d,c,o3(b.ba.g,c.b),!1);b.A[a]=d;d.subscribe("adBreakComplete",b.da,b);l3(d)}};
h.rd=function(a){j4.N.rd.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 h2&&i2(b.b,"fullscreen"));this.A&&"ytp-ad-fadeout"==a.style&&this.A.B.Kh();"livead"===a.getId()&&null!=p4(this)&&1E3*this.getCurrentTime(1)>=a.start&&(oJ(this.b,[a],1),Q3(p4(this)))};
h.yc=function(a){this.Y(a)};
h.FB=function(a){var b=p4(this);if(null!=b&&null!=b.F){var c=p4(this).F.getCurrentTime();F(a,function(a){0!=c&&a.Wd>c&&(a=new aq(1E3*Math.floor(c+Math.random()*Math.max(a.Wd-10-c,0)),1E3*a.Wd,{id:"livead",priority:2}),this.tb([a],1))},this)}};
h.te=function(a){switch(a){case "addata":var b=this.g;return{adTag:b.adTag,adTest:b.Ta,forceAdType:b.forceAdType,isAfvSkippableInstreamEnabled:b.K,isAfvStandardInstreamEnabled:b.L,isBlazer:b.B,isDoubleClickEnabled:b.G,isForcedAd:b.fa,isFreeWheelEnabled:b.M,isHouseBrandPlayer:b.Ub,isLeanback:b.C,isShortform:b.Ja,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 N3?this.o:null;return null!=
b?b.S:0;case "breakscount":return this.A?(b=this.A,b=null!=b.g?b.g.he().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 H1?b.adType:!1,adSkipped:b instanceof W1?b.C:!1,hasVideoStarted:b instanceof W1?b.F:!1,skippable:b instanceof W1?b.S:!1};case "getContentVideoData":return b=f1(this),{adModule:b.adModule,partnerTrackingToken:b.Sa,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.Df=function(){return"addata adstate breakscount displaystate getContentVideoData loadedadbreaks midrollfreqcap".split(" ")};z(B4,EM);var mma=[241];B4.prototype.getStatus=function(){return W(this,59)};
B4.prototype.setVideoId=function(a){175<this.B?this.o[175+this.A]=a:this.g[175]=a};
B4.prototype.setTitle=function(a){176<this.B?this.o[176+this.A]=a:this.g[176]=a};
B4.prototype.hasFeature=function(){return null!=W(this,332)};z(D4,G);h=D4.prototype;
h.T=function(){G4(this,new rq);F4(this);P4(this);this.g.b.removeEventListener("onVolumeChange",this.Vi,this);this.g.b.removeEventListener("onCaptionsTrackListChanged",this.Zq,this);this.B&&this.g.b.removeEventListener("captionschanged",this.Lq,this);var a=this.b;a&&"function"==typeof a.isDisposed&&a.isDisposed()||(this.b.Ga("proxyStateChange",this.pr,this),this.b.Ga("remotePlayerChange",this.jh,this),this.b.Ga("remoteQueueChange",this.Yl,this));O4(this,this.o);this.D&&this.g.b.an(this.D);this.b=this.g=
null};
h.Au=function(a,b){2==this.b.g||(I4(this)?this.Ay.apply(this,arguments):this.A&&this.vy.apply(this,arguments))};
h.Lq=function(a){this.Au("control_subtitles_set_track",bc(a)?null:a)};
h.vy=function(a,b){var c=Array.prototype.slice.call(arguments,1);switch(a){case "control_toggle_play_pause":case "control_play":case "control_pause":N4(this,this.g.b.getCurrentTime());break;case "control_seek":N4(this,c[0])}};
h.Ay=function(a,b){if(1081==wo(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":wo(this.b).Za()?K4(this):M4(this);break;case "control_play":M4(this);break;case "control_pause":K4(this);break;case "control_seek":this.M=c[0];this.H.Uf();break;case "control_subtitles_set_track":C4(this,c[0]);break;case "control_set_audio_track":c=
c[0],I4(this)&&(this.b.lt(J4(this),c),this.D=c)}};
h.Vi=function(a){if(I4(this)){this.b.Ga("remotePlayerChange",this.jh,this);var b=Math.round(a.volume);a=!!a.muted;var c=wo(this.b);b==c.volume&&a==c.muted||this.b.setVolume(b,a);this.b.subscribe("remotePlayerChange",this.jh,this)}};
h.Zq=function(){bc(this.o)||O4(this,this.o);this.C=!1};
h.pr=function(a,b){P4(this);2==b&&this.Fs()};
h.jh=function(){if(I4(this)){F4(this);var a=wo(this.b);switch(a.b){case 1081:if(!this.B)break;case 1:L4(this);G4(this,new rq(8));break;case 3:G4(this,new rq(1));break;case 0:G4(this,new rq(2));this.H.stop();var b=this.g.b;l9(b.app,!0,b.playerType);E4(this,this.g.b.getVideoData().lengthSeconds);break;case 2:G4(this,new rq(4));E4(this,qo(a));break;case -1:G4(this,new rq);break;case -1E3:b={errorCode:"mdx.remoteerror",message:O("YTP_MDX_PLAYER_ERROR")},G4(this,new rq(128,b))}0==this.K&&(b=this.g.b,l9(b.app,
!1,b.playerType));this.K=a.b;a=wo(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,O4(this,a));a=wo(this.b);-1==a.volume||Math.round(this.g.b.Nb())==a.volume&&this.g.b.ad()==a.muted||(this.g.b.removeEventListener("onVolumeChange",this.Vi,this),a.muted?this.g.b.mute():this.g.b.Bf(),this.g.b.setVolume(a.volume),this.g.b.addEventListener("onVolumeChange",this.Vi,this))}else H4(this)};
h.Yl=function(){I4(this)||H4(this)};
h.uF=function(){var a=this.M;F4(this);E4(this,a);-1==wo(this.b).b?N4(this,a):this.b.seekTo(a);G4(this,new rq(1))};
h.Fs=function(){P4(this);F4(this);var a=this.b.A.getReconnectTimeout();2!=this.b.g||(0,window.isNaN)(a)?this.A=!1:this.G=Ri(x(this.Fs,this),1E3)};z(Q4,T0);var Cta=["play_pause","seek","set_audio_track"],Dta=["captions"];h=Q4.prototype;h.xb=function(){return 1<this.O.length};
h.create=function(){Q4.N.create.call(this);this.C.push(cj("yt-remote-before-disconnect",this.bB,this));this.C.push(cj("yt-remote-connection-change",this.qr,this));this.qr();var a=this.b.app.L;this.B&&this.B!=this.A&&1!=a&&3!=a&&this.load()};
h.destroy=function(){dj(this.C);this.C.length=0;Mb(this.g);this.g=null;Q4.N.destroy.call(this)};
h.load=function(){if(!this.loaded){Q4.N.load.call(this);this.g&&(this.o=new D4(this,this.g));this.b.pauseVideo();this.Y("command_redirect_controls",this,Cta,Dta);var a=Ap();if(0!=a){var b=this.g?wo(this.g).videoId:null;b&&b!=this.b.getVideoData().videoId||Ri(x(function(){this.H=a||0;this.b.Wa("progresssync",a,void 0)},this),0)}}};
h.unload=function(){this.loaded&&(this.B=this.A,mq(this),Mb(this.o),this.o=null,Q4.N.unload.call(this))};
h.T=function(){this.D&&this.destroy();Nb(this.o,this.g);this.g=this.o=null;Q4.N.T.call(this)};
h.yc=function(a,b){this.o&&this.o.Au.apply(this.o,arguments)};
h.getCurrentTime=function(){return this.H};
h.bB=function(a){1==a&&(this.K=this.g?wo(this.g):null);this.G=a};
h.qr=function(){var a=zp();a?(this.g=a,this.G=this.K=null,this.load(),this.o||(this.o=new D4(this,this.g))):(Mb(this.g),this.g=null,this.loaded&&1==this.G&&(this.unload(),(a=this.K)&&a.videoId==this.b.getVideoData().videoId?this.b.Vm(a.videoId,qo(a)):this.b.Vm(this.b.getVideoData().videoId)))};
h.te=function(a,b){switch(a){case "casting":return!!this.g&&!!this.o;case "receivers":return this.O;case "currentReceiver":if(b)if("cast-selector-receiver"==b.key)Xl();else if(this.B=b||this.A,b.key==this.A.key)up();else{var c=0,d="",e=this.b.$c();e&&(c=e.b,d=e.listId.toString());if(e=this.b.$c()){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()};xp(b,
c);Mb(this.o);this.o=null;this.load()}return this.B;case "castSelector":return c=qp(),c=1==c.length&&"cast-selector-receiver"==c[0].key,b&&c&&Xl(),c}};
h.Df=function(){return["casting","receivers","currentReceiver","castSelector"]};z(S4,FF);S4.B="(max-width: 656px)";S4.A="(min-width: 657px)";S4.o="(min-width: 1294px) and (min-height: 630px)";S4.b="(min-width: 1720px) and (min-height: 980px)";S4.g="(min-width: 1320px) and (min-height: 870px)";h=S4.prototype;h.initialize=function(a){this.H=w(a)?window.document.getElementById(a):a;this.Ca(this.H)};
h.hz=function(){this.D=new lg(0,0,0,0);this.B=new lg(0,0,0,0)};
h.nn=function(a){je(this.element,arguments)};
h.bf=function(){if(this.b){var a=this.Ka();if(!a.isEmpty()){var b=!hf(a,og(this.B)),c=T4(this);b&&(this.B.width=a.width,this.B.height=a.height);a=this.app.W;(c||b||a.fa)&&this.Y("resize")}}};
h.NH=function(a,b){V4(this,b)};
h.jz=function(a){a.getVideoData()&&V4(this,a.getVideoData())};
h.Ka=function(){var a=this.app.W,b=Wh()==this.element;if(b&&Kp())return new gf(window.outerWidth,window.outerHeight);if(b||a.we){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 gf(window.innerWidth,window.innerHeight)}else if(this.L){if(this.app.ka)return new gf(this.element.clientWidth,this.element.clientHeight);if(this.L.matches)return new gf(426,
240);a=this.app.ka;if((a?this.ca:this.$).matches)return new gf(1280,720);if(a||this.da.matches)return new gf(854,480);if(this.fa.matches)return new gf(640,360)}return new gf(this.element.clientWidth,this.element.clientHeight)};
h.Dy=function(){this.b&&X1(this);this.bf()};
h.T=function(){this.A&&(this.A.disconnect(),this.A=null);this.F&&dj(this.F);this.b=this.o=this.H=null;S4.N.T.call(this)};ba($4);var q4=r("yt.player.utils.VideoTagPool.instance")||$4.getInstance();g.aa("yt.player.utils.VideoTagPool.instance",q4,void 0);h=$4.prototype;h.Xo=function(a){if(!(this.b.length>=a)){a-=this.b.length;for(var b=0;b<a;b++){var c=a5(this);this.b.push(c)}}};
h.Yx=function(a,b){return this.b.length?this.b.pop():a5(this,a,b)};
h.QE=function(a){if(a&&fb(this.g,a)){a.src&&(Jy&&0<a.readyState&&(a.currentTime=Math.max(fta,0)),a.removeAttribute("src"),a.load(),!a.b||!a.b.b||a.b&&Hy(a.b,null)||(a.b&&a.b.dispose(),a.b=null));for(var b in em)em[b][0]==a&&im(b);ob(this.g,a)}};
h.kz=function(a){return this.b.length>=(a||1)};
h.Yw=function(){this.b.length==this.g.length&&4<=this.b.length||(4>this.g.length?this.Xo(4):(this.b=[],F(this.g,function(a){a.src||a.load();this.b.push(a)},this)))};
$4.prototype.fillPool=$4.prototype.Xo;$4.prototype.getTag=$4.prototype.Yx;$4.prototype.releaseTag=$4.prototype.QE;$4.prototype.hasTags=$4.prototype.kz;$4.prototype.activateTags=$4.prototype.Yw;z(b5,nk);h=b5.prototype;h.JH=function(a){a=pm(a);if(!ff(a,this.o)){var b=2;this.C&&(b|=8);this.o=a;this.Ab(b,!0)}};
h.AA=function(){this.C&&this.Ab(8,!0);this.Ab(2,!1)};
h.Eu=function(a){var b=pm(a);ff(b,this.o)||(this.o=b,(a=mm(a))&&this.O(a)&&(this.Ab(4,!0),this.b.ua(this.L),this.L=null,this.H=this.b.U(this.A,"mouseout",this.KH)))};
h.KH=function(a){a=om(a);a&&this.O(a)||(this.o=new ef(window.NaN,window.NaN),c5(this))};
h.jA=function(){this.Ab(1,!0)};
h.Sx=function(a){a=mm(a);a instanceof window.Element&&!(0<a.tabIndex)||this.Ab(1,!0)};
h.Du=function(){this.C=!0;this.b.ua(this.B);this.B=this.b.U(window.document,"mouseup",this.LH)};
h.LH=function(){this.C=!1;this.Ab(8,!1);this.b.ua(this.B);this.B=this.b.U(this.A,"mousedown",this.Du)};
h.Fu=function(a){if(a=a.changedTouches[0])this.S=a.identifier,this.b.ua(this.D),this.D=this.b.U(this.A,"touchend",this.MH),this.Ab(1024,!0)};
h.MH=function(a){for(var b,c=0;c<a.changedTouches.length;c++){var d=a.changedTouches[c];if(d.identifier==this.S){b=d;break}}b&&(this.b.ua(this.D),this.D=this.b.U(this.A,"touchstart",this.Fu),this.Ab(1024,!1))};
h.Ab=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.K.stop());this.g&512&&!(this.g&128)&&this.K.pe(this.M);var d=!this.g;c!=d&&this.Y("autohideupdate",d)};z(d5,S);d5.prototype.G=function(a,b){Ti(this.b);this.context&&(this.b=Nq(x(this.G,this,a,b),b),a.call(this,new Date-this.F))};
d5.prototype.T=function(){Ti(this.b);this.context=null;d5.N.T.call(this)};z(f5,d5);f5.prototype.show=function(){f5.N.show.call(this);var a=this.K;this.F=new Date;this.G(a,75)};
f5.prototype.K=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};
f5.prototype.pa=function(){Ti(this.b);f5.N.pa.call(this)};z(i5,S);var Bma=/<a\s+href=["']([^"']+)["'](?:\s+target=["']([^"']+)["'])?>([^<>]+)<\/a>/;i5.prototype.show=function(){i5.N.show.call(this);this.b&&this.b.show()};
i5.prototype.pa=function(){i5.N.pa.call(this);this.b&&this.b.pa()};
i5.prototype.B=function(a){if($q(a,this.o,!ar(T(this.o)))){a={as3:!1,html5:!0,player:!0,cpn:this.o.getVideoData().clientPlaybackNonce};var b=this.o;b.Aa("onFeedbackArticleRequest",{articleId:3037019,helpContext:"player_error",productData:a});b.Qa()&&br(b)}};z(m5,S);z(o5,S);o5.prototype.show=function(){o5.N.show.call(this);this.D()};
o5.prototype.pa=function(){o5.N.pa.call(this);this.C.stop()};
o5.prototype.D=function(){var a=WI(this.b),b=this.b.getVideoData(),c=this.b.D.b,d=this.b.W,e=AA(d),f=this.b.ia.L.Pa(),k=8*Za(f)/1024,l=b.za,m;m=this.b;m=(m=m.g&&m.g.O)?m.A.Pa():[0];var n=Za(m),t=a.Sa.Pa(),u=Za(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,D=y&&y.b,A=window.devicePixelRatio||1,Q=wF(b,a.getCurrentTime()),Q=Q?Q.sequence:window.NaN,I=b.videoId,P=b.clientPlaybackNonce,ab=b.clientPlaybackNonce?
"":"display:none",e=e.totalVideoFrames?""+(e.droppedVideoFrames||0)+"/"+e.totalVideoFrames:"-",a=a.A?zH(a.A):"",ib;a:{if(b.va&&(ib=b.va.match(/url=(https?)/))&&2==ib.length){ib=ib[1];break a}ib=""}c={video_id:I,cpn:P,cpn_style:ab,mime:"",dash:"no",dropped_frames:e,stream_host:a,stream_type:ib||d.$,dimensions:c.clientWidth+" x "+c.clientHeight+(1<A?" * "+A:""),resolution:c.videoWidth+" x "+c.videoHeight,volume:Math.round(this.b.Ya.Nb())+"%",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:D?"":"display:none",drm:D?y.b+" / "+y.g:"",sequence_number:Q,sequence_number_style:"display:none"};b.g&&(d=SB(b.g)?"yes":"no",d+=" ("+hu(b.g),b.B&&SB(b.g)&&(d+="/"+hu(b.B)),c.dash=d+")",c.mime=b.g.mimeType,b=b.g.video.fps,1<b&&(c.resolution+="@"+b));n5(this.o,f);n5(this.B,m);n5(this.A,t);this.update(c);this.C.start()};var q5=null;p5.prototype.initialize=function(){var a=window.AudioContext||window.webkitAudioContext;if(a&&!q5)try{q5=new a}catch(b){this.Z.app.g.Ah(new XE("html5.webaudio",!1,{name:b.name}))}};
p5.prototype.isDisposed=function(){return this.A};
p5.prototype.dispose=function(){this.A=!0;u5(this);this.b=this.g=null};z(v5,Dw);v5.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)};
v5.prototype.F=function(a){this.o?this.o=!1:this.b&&this.A(a)};
v5.prototype.D=function(){this.G(this.C);this.b=!0};z(w5,FF);w5.prototype.A=function(){var a=this.o.Cf();this.C.style.width=100*E1(new B1(a.seekableStart,a.seekableEnd),a.current,0)+"%"};
w5.prototype.B=function(){2==this.o.getPresentingPlayerType()?this.b||(this.show(),this.b=this.U(this.o,"progresssync",this.A),this.A()):this.b&&(this.pa(),this.ua(this.b),this.b=null)};z(x5,S);x5.prototype.D=function(){this.element.removeAttribute("aria-hidden");this.pa()};
x5.prototype.B=function(){this.show();this.o.start()};
x5.prototype.C=function(){this.element.setAttribute("aria-hidden",!0);this.b.start()};z(C5,S);C5.prototype.T=function(){this.b&&this.b();C5.N.T.call(this)};
C5.prototype.B=function(){fj("iv-button-mouseover")};
C5.prototype.A=function(a){mr(this.Z);var b=ie(this.Z.Ea(),"ytp-cards-teaser-shown");fj("iv-teaser-clicked",b);a=0==a.screenX&&0==a.screenY;this.Z.Gh(!hJ(this.Z),a,"YOUTUBE_DRAWER_MANUAL_OPEN")};z(E5,FF);h=E5.prototype;h.show=function(){var a=G5(this);E5.N.show.call(this);this.ea&&(this.L=this.U(window,"blur",this.sb),this.S=this.U(window.document,"click",this.tI));a||this.Y("show",!0)};
h.pa=function(){var a=G5(this);E5.N.pa.call(this);F5(this);a&&this.Y("show",!1)};
h.Ef=function(a,b){this.C=a;this.H.show();a&&(b&&(this.da=this.U(this.Z,"appresize",this.ro),this.ro()),a.getAttribute("aria-haspopup"),a.setAttribute("aria-expanded",!0),window.document.activeElement&&Pf(a,window.document.activeElement)&&this.focus())};
h.ro=function(){n8(this.M,this.element,this.C)};
h.sb=function(){var a=G5(this);F5(this);ev(this.H);a&&this.Y("show",!1)};
h.Qe=function(a,b){G5(this)?this.sb():this.Ef(a,b)};
h.tI=function(a){var b=nm(a);b&&(Pf(this.element,b)||this.C&&Pf(this.C,b)||!Qq(a))||this.sb()};z(H5,E5);h=H5.prototype;h.show=function(){H5.N.show.call(this);this.vh()};
h.pa=function(){H5.N.pa.call(this);M5(this);1>=this.b.length||(this.A.Ga("back",this.ke,this),this.b[this.b.length-1].detach(),I5(this,this.b[0]),this.b=[this.A],this.A.Ca(this.element),this.vh())};
h.vh=function(){M5(this);this.g&&(J5(this),As(this.element,this.size))};
h.ke=function(){var a=this.b.pop();K5(this,a,this.b[this.b.length-1],!0)};
h.pF=function(a,b,c){this.F.dispose();this.F=null;J(this.element,"ytp-popup-animating");c?(J(a.element,"ytp-panel-animate-forward"),le(b.element,"ytp-panel-animate-back")):(J(a.element,"ytp-panel-animate-back"),le(b.element,"ytp-panel-animate-forward"));As(this.element,this.size);this.D=new fe(pa(this.pI,a,b),250,this);this.D.start()};
h.pI=function(a){le(this.element,"ytp-popup-animating");a.detach();me(a.element,["ytp-panel-animate-back","ytp-panel-animate-forward"]);this.D.dispose();this.D=null};
h.qI=function(a){if(!rm(a))switch(sm(a)){case 27:this.sb();qm(a);break;case 37:1<this.b.length&&this.ke();qm(a);break;case 39:qm(a)}};
h.focus=function(){this.A.focus()};
h.T=function(){H5.N.T.call(this);this.F&&this.F.dispose();this.D&&this.D.dispose()};z(O5,FF);O5.prototype.wa=function(a,b){O5.N.wa.call(this,a,b);this.Y("size-change")};z(Q5,FF);Q5.prototype.fa=function(){this.Y("size-change")};
Q5.prototype.focus=function(){this.ca.focus()};
Q5.prototype.ea=function(){this.Y("back")};z(R5,Q5);R5.prototype.S=function(){this.o.Y("size-change")};
R5.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(T5,O5);T5.prototype.b=function(a){rm(a)||39!=sm(a)||(this.element.click(),qm(a))};z(V5,O5);V5.prototype.G=function(){W5(this,!this.b);this.Y("select",this.b)};
V5.prototype.getValue=function(){return this.b};z(Z5,R5);h=Z5.prototype;h.DA=function(a){Qq(a)&&this.Z.pauseVideo();this.G.sb()};
h.EB=function(){Oq(this.B.element)};
h.$B=function(){$5(this,this.Z.Bj(!0))&&y5(this.M.D,{J:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},R:[{J:"path",V:{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.aC=function(){$5(this,this.Z.Ct())&&y5(this.M.D,vh?{J:"div",ha:["ytp-icon","ytp-icon-code"]}:{J:"svg",V:{height:"100%",viewBox:"0 0 36 36",width:"100%"},R:[{J:"path",V:{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.dC=function(){$5(this,this.Z.getVideoUrl(!0,!0))&&y5(this.M.D,Bh())};
h.cC=function(){$5(this,this.Z.getVideoUrl(!1,!0))&&y5(this.M.D,Bh())};
h.rC=function(a){W5(this.K,a)};
h.sC=function(){var a=this.K.getValue();s9(this.Z.app,a);this.G.sb()};
h.sD=function(a){var b=WI(this.Z.app);b&&b.Ah(new XE("feedback",!1,{gpu:qq()}));if($q(a,this.Z,!ar(T(this.Z)))){a=this.Z;var b={as3:!1,html5:!0,player:!0},c=a.np();c.debug_error&&(b.player_error=c.debug_error.errorCode,b.player_error_details=c.debug_error.errorDetail);b.debug_text=a.Bj(!0);a.Aa("onFeedbackStartRequest",b);a.Qa()&&br(a)}this.G.sb()};
h.GD=function(){this.Z.Ht();this.G.sb()};
h.bI=function(a,b){Y5(this,b)};z(b6,H5);h=b6.prototype;h.show=function(){this.G||(this.G=new Z5(this.B,this.M,this),H(this,this.G),L5(this,this.G));b6.N.show.call(this)};
h.pa=function(){a6(this);b6.N.pa.call(this)};
h.DB=function(a){if("gvn"!=T(this.B).g){var b=nm(a);if(!(this.g||b&&(Xf(b,"a")||Yf(b,"ytp-no-contextmenu")))){qm(a);c6(this);this.element.style.left="";this.element.style.top="";var c=pm(a);c.x++;c.y++;this.Ef();b=us(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 lg(0,0,0,0);b.left=c.x;b.top=c.y;b.width=a.width;b.height=a.height;os(this.element,pg(b));Fw(this.o);this.o.U(window.document,"contextmenu",this.MB);
this.o.U(this.B,"fullscreentoggled",this.cI);this.o.U(this.B,"pageTransition",this.QC)}}};
h.MB=function(a){rm(a)||Pf(this.element,nm(a))||this.sb()};
h.cI=function(){this.sb();c6(this)};
h.QC=function(){this.sb()};z(d6,yK);h=d6.prototype;h.show=function(){this.g||(this.F.U(this.b,"videodatachange",this.B.pe,this.B),this.F.U(this.b,"videoplayerreset",this.B.pe,this.B));d6.N.show.call(this)};
h.pa=function(){Fw(this.F);d6.N.pa.call(this)};
h.dI=function(){this.C.isActive()||(this.D.show(),this.C.start())};
h.eI=function(){this.C.isActive()&&(this.C.stop(),ev(this.D))};
h.FC=function(){ev(this.D)};
h.fI=function(a){120<mm(a).naturalWidth&&J(this.element,"ytp-moving-thumbnail-loaded")};
h.hI=function(a){var b=T(this.b);b.experiments.aa("disable_new_pause_state3")&&ar(b)&&(a=Cq(a.state)&&!Cq(a.b)||cJ(this.b)&&R(a.state,2),is(this.element,"transition-delay",a?"2s":""));this.B.pe()};
h.gI=function(){this.element.style.backgroundImage=""};
h.Iu=function(){3==this.b.getPresentingPlayerType()?this.A.show():e6(this.A,this.b,Sr(this.b));this.g&&3!=this.A.b&&this.yF(this.b.$c(),this.b.getVideoData())};
h.yF=function(a){for(var b=T(this.b),c,d,e=0;e<arguments.length;e++){var f=arguments[e];if(!(!f||f instanceof dF&&!f.videoId)){d=Jx(this.b).Ka();var k=d.width,l=d.height,m=b.experiments.aa("hq_cued_thumbnail")&&!b.isMobile;320<k&&180<l&&(c=f.xi());if(m?640<k||480<l:900<k||600<l)if(d=f.Fc(b,"maxresdefault.jpg"))break;if(m?320<k||180<l:430<k||320<l)if(d=f.Fc(b,"sddefault.jpg")||f.Fc(b,"hqdefault.jpg")||f.Fc(b,"mqdefault.jpg"))break;if(d=f.Fc(b,"default.jpg"))break}}this.G.style.backgroundImage=d?"url("+
d+")":"";this.o&&(this.o.wa("url","data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"),(b=c)&&5E5<PF(this.H.app.ia)&&this.o.wa("url",b))};z(f6,Dw);
f6.prototype.C=function(a){var b=!1,c=sm(a),d=nm(a),e=!a.altKey&&!a.ctrlKey&&!a.metaKey,f=!1,k=!1,l=T(this.b);rm(a)?(e=!1,k=!0):l.Tb&&(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=A6(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.Ea(),d=!ie(m,"ytp-color-party"),
K(m,"ytp-color-party",d))):(this.o=f,f=0=="awesome".indexOf(this.o)));if(e&&!f){switch(c){case 32:z5(this.g);tq(Sr(this.b))?this.b.pauseVideo():this.b.xd();k=f=!0;break;case 37:y5(this.g,vh?{J:"div",ha:["ytp-icon","ytp-icon-rewind-five-seconds"]}:{J:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},R:[{J:"path",Fa:!0,X:"ytp-svg-fill",V:{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.yd(-5*this.b.app.M);k=f=!0;break;case 39:y5(this.g,vh?{J:"div",ha:["ytp-icon","ytp-icon-forward-five-seconds"]}:{J:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},R:[{J:"path",Fa:!0,X:"ytp-svg-fill",V:{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.yd(5*this.b.app.M);k=f=!0;break;case 38:k=Math.min(this.b.Nb()+5,100);A5(this.g,k,!1);this.b.setVolume(k);k=f=!0;break;case 40:k=Math.max(this.b.Nb()-5,0);A5(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:$I(iq(this.b),"captions")&&(f=this.b.Jb("captions","track"),dJ(this.b),k=this.g,f=f&&f.displayName?O("YTP_SUBTITLES_OFF"):O("YTP_SUBTITLES_ON"),
y5(k,Lh(),f),k=f=!0);break;case 66:j6(this,"background")&&(f=!0);break;case 79:j6(this,"textOpacity")&&(f=!0);break;case 87:j6(this,"windowOpacity")&&(f=!0);break;case 187:j6(this,"fontSizeIncrement",!1,!0)&&(f=!0);break;case 189:j6(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.Cf(),this.b.seekTo(n/10*(k.seekableEnd-k.seekableStart)+k.seekableStart),k=f=!0)}}b&&this.B(!0);(b||k)&&this.F.Ab(2,!0);(f||e&&h6(this,c,a.shiftKey))&&qm(a);l.Ra&&
this.b.Aa("onKeyPress",{keyCode:sm(a),altKey:a.altKey,ctrlKey:a.ctrlKey,metaKey:a.metaKey,shiftKey:a.shiftKey,handled:rm(a),fullscreen:this.b.Qa()})};
f6.prototype.D=function(a){a=sm(a);this.A&&this.A.g&&B6(this.A,a);9==a&&this.B(!0)};
f6.prototype.B=function(a){K(this.b.Ea(),"ytp-keyboard-focus",a);K(this.H.element,"ytp-keyboard-focus",a)};z(l6,S);l6.prototype.B=function(a){var b=T(this.b);b.experiments.aa("disable_new_pause_state3")&&ar(b)&&is(this.element,"transition-delay",Cq(a.state)&&!Cq(a.b)?"2s":"");k6(this,a.state)};z(n6,S);n6.prototype.A=function(a){$q(a,this.b)&&this.b.Ym(this.o)};z(p6,E5);h=p6.prototype;h.show=function(){p6.N.show.call(this);this.o.addEventListener("videodatachange",this.Mh,this);this.o.addEventListener("onPlaylistUpdate",this.Mh,this);this.Mh()};
h.pa=function(){p6.N.pa.call(this);this.o.removeEventListener("videodatachange",this.Mh,this);this.o.removeEventListener("onPlaylistUpdate",this.Mh,this);q6(this,null)};
h.Mh=function(){q6(this,this.o.$c());var a=this.b.author;this.update({title:this.b.title,subtitle:O(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.im()};
h.im=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 n6(this.o,this.b,b);this.A.push(d);d.Ca(this.F)}this.B=this.A[this.b.b];this.D=a}this.B.element.setAttribute("aria-checked",!0)};
h.SD=function(a){var b=this.o.getVideoUrl(!0);cr(b,this.o,a)};
h.focus=function(){this.B.focus()};
h.T=function(){this.pa();p6.N.T.call(this)};z(r6,S);r6.prototype.o=function(){this.b&&2!=this.A.getPresentingPlayerType()&&400<=Jx(this.A).Ka().width?(this.update({text:O("YTP_PLAYLIST_POSITION",{CURRENT_POSITION:this.b.b+1,PLAYLIST_LENGTH:this.b.A}),title:O("YTP_PLAYLIST_NAME",{PLAYLIST_NAME:this.b.title})}),this.g||(this.show(),Z6(this.B))):this.g&&(this.pa(),Z6(this.B))};
r6.prototype.C=function(){this.b&&this.b.Ga("shuffle",this.o,this);(this.b=this.A.$c())&&this.b.subscribe("shuffle",this.o,this);this.o()};z(s6,S);s6.prototype.A=function(a){this.gb(R(a.state,2))};
s6.prototype.o=function(){Sr(this.b);this.b.xd()};z(t6,E5);h=t6.prototype;h.TC=function(a){a=nm(a);Pf(this.G,a)||Pf(this.D,a)||this.Qe()};
h.sb=function(){t6.N.sb.call(this);this.A.Jf(this.element)};
h.show=function(){var a=this.g;t6.N.show.call(this);this.Mu();a||this.o.Aa("onSharePanelOpened")};
h.Mu=function(){J(this.element,"ytp-share-panel-loading");le(this.element,"ytp-share-panel-fail");var a=this.o.getVideoData(),b=this.o.se(),c=b&&this.F.checked;K(this.element,"ytp-share-panel-has-playlist",!!b);var d={action_get_share_info:1,feature:"player_embedded",video_id:a.videoId},e=T(this.o);e.Pb&&(d.authuser=e.Pb);e.pageId&&(d.pageid=e.pageId);c&&(d.list=b);Zj(T(this.o).baseYtUrl+"share_ajax",{method:"GET",onError:x(this.Es,this),fb:x(function(a,b){if(b){if(b.actions&&k5(b.actions),!this.isDisposed()){le(this.element,
"ytp-share-panel-loading");u6(this);for(var c=b.links,d=0,e=0;e<c.length&&3>d;e++){var t=c[e],u=uma(t.img);u&&(u=new S({J:"a",ha:["ytp-share-panel-service-button","ytp-button"],V:{href:t.url,target:"_blank",title:t.sname},R:[u]}),u.P("click",pa(this.AD,t.url)),Lb(u,D5(this.A,u.element)),this.b.push(u),d++)}c=new S({J:"a",ha:["ytp-share-panel-service-button","ytp-button"],R:[{J:"span",X:"ytp-share-panel-service-button-more",R:[vh?{J:"div",ha:["ytp-icon","ytp-icon-share-more"]}:{J:"svg",V:{height:"100%",
version:"1.1",viewBox:"0 0 38 38",width:"100%"},R:[{J:"rect",V:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{J:"path",V:{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"}}]}]}],V:{href:b.more,target:"_blank",title:O("YTP_MORE")}});c.P("click",x(this.zC,this,b.more));Lb(c,D5(this.A,c.element));this.b.push(c);this.wa("buttons",this.b)}}else this.Es()},this),
wd:d,withCredentials:!0});a=e.getVideoUrl(a.videoId,c?b:void 0,void 0,!0);this.wa("link",a);this.wa("linkText",a);Oq(this.B)};
h.Es=function(){le(this.element,"ytp-share-panel-loading");J(this.element,"ytp-share-panel-fail")};
h.AD=function(a,b){if(Qq(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 De?a:He("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(",");(vc()||tc("iPad")||tc("iPod"))&&c.navigator&&c.navigator.standalone&&f&&
"_self"!=f?(l=c.document.createElement("A"),jf(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=Ee(e),c&&(EA&&-1!=e.indexOf(";")&&(e="'"+e.replace(/'/g,"%27")+"'"),c.opener=null,e=Ze(ye("b/12014412, meta tag with sanitized URL"),'<META HTTP-EQUIV="refresh" content="0; url='+Da(e)+'">'),c.document.write(Oe(e)),c.document.close())):
c=c.open(Ee(e),f,l);c&&(c.opener||(c.opener=window),c.focus());qm(b)}};
h.zC=function(a,b){cr(a,this.o,b)&&this.o.Aa("SHARE_CLICKED")};
h.wI=function(a){!a&&G5(this)&&this.Qe()};
h.focus=function(){this.B.focus()};
h.T=function(){t6.N.T.call(this);u6(this)};z(v6,S);v6.prototype.o=function(){var a=T(this.b).ve&&2!=this.b.getPresentingPlayerType();K(this.A,"ytp-share-button-visible",!!this.b.getVideoData().videoId&&300<=Jx(this.b).Ka().width&&!a)};
v6.prototype.T=function(){v6.N.T.call(this);le(this.A,"ytp-share-button-visible")};z(w6,S);var Eta=.0035*.006;h=w6.prototype;
h.qn=function(){var a=fJ(this.b).shader;"Spherical"==a||"Spherical3D"==a?this.g||(a=Jx(this.b).o,J(this.b.Ea(),"ytp-webgl-spherical"),this.show(),this.A=new y1(a,!0,null,!0),this.A.subscribe("dragstart",this.PB,this),this.A.subscribe("dragmove",this.Rq,this),this.A.subscribe("dragend",this.OB,this),this.o=new y1(this.element,!0),this.o.subscribe("dragstart",this.SC,this),this.o.subscribe("dragend",this.RC,this),this.da=this.P("keydown",this.zI),this.$=this.P("keyup",this.jC),this.U(a,"click",this.yI,
this)):this.g&&(y6(this),le(this.b.Ea(),"ytp-webgl-spherical"),this.pa(),this.A.dispose(),this.A=null,this.o.dispose(),this.o=null,this.ua(this.da),this.ua(this.$))};
h.SC=function(a,b,c){var d=ts(c);a=a-d.x-c.clientWidth/2;b=b-d.y-c.clientHeight/2;Math.abs(a)>Math.abs(b)?x6(this,0<a?-1:1,0,0):x6(this,0,0<b?-1:1,0)};
h.RC=function(){y6(this);this.C.start()};
h.PB=function(a,b){y6(this);this.L=!1;this.S=new ef(a,b);J(this.b.Ea(),"ytp-dragging")};
h.Rq=function(a,b){var c=new ef(a,b),d;d=this.S;d=new ef(c.x-d.x,c.y-d.y);2<Math.sqrt(d.x*d.x+d.y*d.y)&&(this.L=!0);this.S=c;var c=fJ(this.b),e=c.fov,f=Math.PI*e*.8,k=Jx(this.b).Ka();d.scale(1/k.width*f,1/k.height*f);z6(this,c.yaw+d.x,c.pitch+d.y,e,c,E())};
h.OB=function(a,b){this.Rq(a,b);le(this.b.Ea(),"ytp-dragging");this.C.start()};
h.yI=function(a){this.L&&(a.stopPropagation(),this.L=!1)};
h.xI=function(a){if(1E-5>Math.abs(this.F)&&1E-5>Math.abs(this.D)&&!this.K&&!this.G&&0==this.B.length)y6(this),this.D=this.F=0;else{var b=fJ(this.b),c=b.yaw,d=b.pitch,e=b.fov,f=a-this.O,k=Eta*e,c=c+(this.F+(k*this.K-.006*this.F)*f)*f,d=d+(this.D+(k*this.G-.006*this.D)*f)*f;z6(this,c,d,e,b,a);this.C.start()}};
h.zI=function(a){!rm(a)&&A6(this,sm(a))&&qm(a)};
h.jC=function(a){B6(this,sm(a))};
h.T=function(){this.o&&(this.A.dispose(),this.A=null,this.o.dispose(),this.o=null);w6.N.T.call(this)};z(D6,S);D6.prototype.pa=function(){this.b.stop();this.A.style.display="none";D6.N.pa.call(this)};
D6.prototype.D=function(a){C6(this,a.state)};
D6.prototype.B=function(){C6(this,Sr(this.o))};
D6.prototype.C=function(){this.A.style.display="block"};z(E6,S);E6.prototype.A=function(){var a=WI(this.b.app);a&&a.g.b.webkitShowPlaybackTargetPicker()};
E6.prototype.o=function(){var a=WI(this.b.app);this.gb(!!a&&a.ab);a=WI(this.b.app);this.wa("icon",a&&a.Xa?vh?{J:"div",ha:["ytp-icon","ytp-icon-airplay-on"]}:{J:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},R:[{J:"path",Fa:!0,V:{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"}}]}:
vh?{J:"div",ha:["ytp-icon","ytp-icon-airplay-off"]}:{J:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},R:[{J:"path",Fa:!0,X:"ytp-svg-fill",V:{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(F6,FF);F6.g=20;F6.o=141;F6.A=.5;F6.b=200;h=F6.prototype;h.iI=function(a){R(a.state,32)?G6(this,this.A.getVideoData()):ev(this.K)};
h.Pj=function(){var a=this.A.Cf(),b=a.current,c=RD(this.b,141),b=this.b.b[c].Oj(b);b!=this.L&&(c=TD(this.b,b,141),this.D=G1(this.fa,c,141,141,!0),os(this.da,(this.F-this.D.width)/2),this.L=b);Rf(this.ea,Pq(this.S?a.current-a.seekableEnd:a.current));Iw(this.G);a=x(this.sj,this);this.G=Hw(a,void 0);this.M.Uf()};
h.jI=function(a,b){G6(this,b)};
h.sj=function(){Fs(this.o,!1);Iw(this.G);var a=Math.round(.5*this.D.width),b=Math.round(.5*this.D.height),c=this.A.Cf(),d=this.b.b[0].Bu(),e=this.b.b[0].mn(),c=c.current/(c.seekableEnd-c.seekableStart)*(e-d+1)*a-this.F/2,f=Math.floor(c/a)+d,e=Math.min(f+Math.min(20,Math.ceil(this.F/a)),e),f=Math.max(f,d),k;if(this.C>=f&&this.B<=e){for(k=this.C;k>e;k--)Hf(this.o.children[k-this.B]);for(k=f-1;k>=this.B;k--)Hf(this.o.children[k-this.B]);for(k=this.B-1;k>=f;k--)this.o.insertBefore(H6(this,k,a,b),this.o.firstChild);
k=this.C+1}else Ff(this.o),k=f;for(;k<=e;k++)this.o.appendChild(H6(this,k,a,b));for(k=f;k<=e;k++)is(this.o.children[k-f],"transform","translatex("+(-c+(k-d)*a)+"px)");this.B=f;this.C=e;Fs(this.o,!0)};
h.pA=function(){for(var a=this.B;a<=this.C;a++)VD(this.b,a,this.D.width)};
h.Hy=function(){var a=Jx(this.A).Ka();this.F!=a.width&&(this.F=a.width,this.b&&(this.Pj(),this.sj()))};
h.fF=function(a){this.element.style.b=a+"px"};
h.show=function(){F6.N.show.call(this);j8(this.$,!1)};
h.pa=function(){this.b&&G6(this,null);F6.N.pa.call(this);j8(this.$,!0)};
h.T=function(){G6(this,null);F6.N.T.call(this)};z(I6,S);h=I6.prototype;h.kI=function(a){R(a.state,32)?K6(this,this.b.getVideoData()):this.g&&(R(a.state,16)||R(a.state,1))||ev(this.C)};
h.mI=function(a,b){K6(this,b)};
h.lI=function(){var a=Sr(this.b);(R(a,32)||R(a,16))&&J6(this)};
h.Iy=function(){this.A=window.NaN;J6(this)};
h.pa=function(){this.o&&K6(this,null);I6.N.pa.call(this)};z(M6,S);h=M6.prototype;h.nI=function(){T(this.o).Ba?(gJ(this.o,this.o.Qa()?"fullscreen_exit":"fullscreen_enter"),br(this.o)):this.b.Qe(this.element,!0)};
h.Uq=function(){L6(this);this.b.Ef(this.element,!0)};
h.oI=function(){T(this.o).experiments.aa("disable_fullscreen_check")||(Wh()==this.o.Ea()?this.C.start():(this.C.stop(),this.b&&this.b.pa()))};
h.tx=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.Uq()}};
h.Ju=function(){this.gb(Wq(this.o))};
h.ws=function(a){var b;a?(b=vh?{J:"div",ha:["ytp-icon","ytp-icon-full-screen-close"]}:{J:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},R:[{J:"g",X:"ytp-fullscreen-button-corner-2",R:[{J:"path",Fa:!0,X:"ytp-svg-fill",V:{d:"m 14,14 -4,0 0,2 6,0 0,-6 -2,0 0,4 0,0 z"}}]},{J:"g",X:"ytp-fullscreen-button-corner-3",R:[{J:"path",Fa:!0,X:"ytp-svg-fill",V:{d:"m 22,14 0,-4 -2,0 0,6 6,0 0,-2 -4,0 0,0 z"}}]},{J:"g",X:"ytp-fullscreen-button-corner-0",R:[{J:"path",Fa:!0,X:"ytp-svg-fill",
V:{d:"m 20,26 2,0 0,-4 4,0 0,-2 -6,0 0,6 0,0 z"}}]},{J:"g",X:"ytp-fullscreen-button-corner-1",R:[{J:"path",Fa:!0,X:"ytp-svg-fill",V:{d:"m 10,22 4,0 0,4 2,0 0,-6 -6,0 0,2 0,0 z"}}]}]},a=O("YTP_EXIT_FULLSCREEN"),window.document.activeElement==this.element&&this.o.Ea().focus()):(b=vh?{J:"div",ha:["ytp-icon","ytp-icon-full-screen"]}:{J:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},R:[{J:"g",X:"ytp-fullscreen-button-corner-0",R:[{J:"path",Fa:!0,X:"ytp-svg-fill",V:{d:"m 10,16 2,0 0,-4 4,0 0,-2 L 10,10 l 0,6 0,0 z"}}]},
{J:"g",X:"ytp-fullscreen-button-corner-1",R:[{J:"path",Fa:!0,X:"ytp-svg-fill",V:{d:"m 20,10 0,2 4,0 0,4 2,0 L 26,10 l -6,0 0,0 z"}}]},{J:"g",X:"ytp-fullscreen-button-corner-2",R:[{J:"path",Fa:!0,X:"ytp-svg-fill",V:{d:"m 24,24 -4,0 0,2 L 26,26 l 0,-6 -2,0 0,4 0,0 z"}}]},{J:"g",X:"ytp-fullscreen-button-corner-3",R:[{J:"path",Fa:!0,X:"ytp-svg-fill",V:{d:"M 12,20 10,20 10,26 l 6,0 0,-2 -4,0 0,-4 0,0 z"}}]}]},a=O("YTP_FULLSCREEN"));this.wa("icon",b);this.wa("title",this.b?null:a);Z6(this.B.g)};
h.T=function(){this.b||(this.A(),this.A=null);M6.N.T.call(this)};z(N6,S);N6.prototype.F=function(a){this.B("newdata"==a)};
N6.prototype.B=function(a){var b=this.o.getVideoData(),c=b.ba,d=Sr(this.o),d=(tq(d)||R(d,4))&&0<c.length;this.gb(d);a&&(this.b=!0);if(d){this.b&&this.C.pe();a=null;for(var d="",e=0;e<c.length;e++)if(c[e].id==b.videoId){a=c[e].title;d=O("YTP_MULTICAM_INDEX",{CAMERA_INDEX:e+1,CAMERA_COUNT:c.length})+"\n";break}this.update({text:d+a,preview:b.Fc(T(this.o),"default.jpg")});Z6(this.A)}};
N6.prototype.D=function(){l8(this.A,this.element,O("YTP_MORE_CAMERAS_AVAILABLE"));this.b=!1};z(O6,E5);h=O6.prototype;h.show=function(){var a=this.g;O6.N.show.call(this);a||(this.A.U(this.b,"presentingplayerstatechange",this.pn),this.A.U(this.b,"videodatachange",this.pn),this.pn())};
h.pa=function(){Fw(this.A);O6.N.pa.call(this)};
h.pn=function(){for(var a=this.b.getVideoData(),b=a.ba,c=0;c<b.length;c++){var d=this.o[c];d||(d=new S({J:"button",ha:["ytp-multicam-menu-item","ytp-button"],V:{"aria-checked":"{{selected}}","data-id":"{{videoId}}"},R:[{J:"div",X:"ytp-multicam-menu-item-title",R:["{{cameraName}}"]}]}),d.P("click",pa(this.oB,c),this),d.Ca(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(T(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=Sr(this.b);tq(a)||R(a,4)||b.length||!G5(this)||this.Qe()};
h.oB=function(a){var b=this.b,c=this.b.getVideoData().ba[a];a=WI(b.app,1).getVideoData();var d=b.getCurrentTime();if(c.id==a.videoId)c=WI(b.app,1),WI(b.app)!=c&&(t4(b.app,c),a.za||b.seekTo(d));else{var e=WI(b.app,4);e||(e=new aI(T(b),4,b.app.H,Jx(b),x(b.app.O.ac,b.app.O)));WI(b.app)!=e&&t4(b.app,e);D9(b.app,{videoId:c.id,title:a.title,start:a.za?null:d,multifeed_metadata_list:a.A.multifeed_metadata_list},4)}};
h.focus=function(){for(var a=this.b.getVideoData(),b=a.ba,c=0;c<b.length;c++)if(b[c].id==a.videoId){this.o[c].focus();break}};
h.T=function(){Nb(this.o);O6.N.T.call(this)};P6.prototype.clone=function(){return new P6(this.o,this.D,this.b,this.B,this.g,this.C,this.A,this.F)};z(Q6,G);var Z$=new P6(0,0,.4,0,.2,1,1,1);Q6.prototype.g=function(){var a=yq()-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=af(Z$.o,Z$.b,a);var c=af(Z$.b,Z$.g,a),d=af(Z$.g,Z$.A,a);b=af(b,c,a);c=af(c,d,a);b=af(b,c,a)}this.o(b);1>a&&this.A.start()};
var vma=/[0-9.-]+|[^0-9.-]+/g;z(X6,S);
var wma=["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"],xma=["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"],yma=["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"],zma=["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"];X6.prototype.D=function(a){this.gb(300<=a.width)};
X6.prototype.G=function(){T(this.b).da?this.b.ad()?(gJ(this.b,"unmute"),this.b.Bf()):(gJ(this.b,"mute"),this.b.mute()):this.L.Qe(this.element,!0)};
X6.prototype.O=function(a){W6(this,a.volume,a.muted)};z($6,S);$6.prototype.o=function(){var a=WI(this.b.app);a&&(a=a.g,a.b.webkitSetPresentationMode("picture-in-picture"==a.b.webkitPresentationMode?"inline":"picture-in-picture"))};z(b7,S);b7.prototype.F=function(a){a7(this,a.state)};
b7.prototype.D=function(){K(this.element,"ytp-play-button-playlist",cJ(this.b))};
b7.prototype.G=function(){2==this.o?gJ(this.b,"pause"):3==this.o?gJ(this.b,"replay"):1==this.o?gJ(this.b,"play"):4==this.o&&gJ(this.b,"stop");tq(Sr(this.b))?this.b.pauseVideo():this.b.xd()};
b7.prototype.T=function(){this.A&&this.A();b7.N.T.call(this)};z(d7,S);h=d7.prototype;h.Hg=function(){e7(this);this.D&&(this.ua(this.D),this.D=null);this.F=this.b.getVideoData(1);if(this.o=this.b.$c())this.o.subscribe("shuffle",this.Hg,this),this.D=this.U(this.b,"progresssync",this.rI);this.C=f7(this);g7(this);this.Ku(Jx(this.b).Ka())};
h.Ku=function(a){var b=cJ(this.b)||this.A&&pJ(this.b);this.gb(b&&(this.A||400<=a.width))};
h.sI=function(a){gJ(this.b,this.A?"next":"previous");var b=!0;this.H?b=$q(a,this.b):qm(a);b&&(this.A?this.b.Ej(!0):this.C?this.b.seekTo(0):this.b.Fj(!0))};
h.rI=function(){var a=f7(this);a!=this.C&&(this.C=a,g7(this))};
h.T=function(){this.B&&(this.B(),this.B=null);e7(this);d7.N.T.call(this)};z(i7,FF);h=i7.prototype;h.uI=function(a){if(!rm(a)){var b=!1;switch(sm(a)){case 36:this.o.seekTo(0);b=!0;break;case 35:this.o.seekTo(window.Infinity);b=!0;break;case 34:this.o.yd(-60);b=!0;break;case 33:this.o.yd(60);b=!0;break;case 38:this.o.yd(5);b=!0;break;case 40:this.o.yd(-5),b=!0}b&&qm(a)}};
h.Lu=function(a,b){h7(this,b,"newdata"==a)};
h.yy=function(){this.Lu("newdata",this.o.getVideoData())};
h.Fy=function(){p7(this.o.getVideoData())?Sr(this.o).Za()&&q7(this,!0):q7(this,!1)};
h.zy=function(a){0<Hu(a,64)||!p7(this.o.getVideoData())?q7(this,!1):tq(a.state)&&0>Hu(a,64)&&q7(this,!0);this.A&&!R(a.state,32)&&this.A.cancel()};
h.jD=function(a,b,c){var d=ts(this.element),e=s7(this).b,f=c?c.getAttribute("data-tooltip"):void 0;f&&(a=E1(this.b,Number(c.getAttribute("data-position")),0)*e+ts(this.bb).x);this.na.x=a-d.x;this.na.y=b-d.y;c=s7(this);a=D1(this.b,c.g);b=this.Da;c=c.position+this.Sa;d=f||Pq(this.ra?a-this.b.b:a);f=!!f;b.ca||(3==b.b&&b.Gc(),1!=b.b&&(b.element.className="ytp-tooltip ytp-bottom",b.b=1,b.H&&b.D.show(),b.A=uF(b.M.getVideoData()),b.A&&b.A.subscribe("l",b.Tq,b)),b.update({text:d,title:""}),K(b.element,"ytp-text-detail",
!!f),d=-1,b.A&&(d=RD(b.A,96*b.B),d=b.A.b[d].Oj(a)),o8(b,d),m8(b,!!f,c));K(this.fa,"ytp-hover-progress-shown",!R(Sr(this.o),64));l7(this)};
h.iD=function(){var a=this.Da;1==a.b&&a.Gc();le(this.fa,"ytp-hover-progress-shown")};
h.hD=function(a,b){Ui(this.C);this.C=window.NaN;this.Ta=b;this.o.seekTo(D1(this.b,s7(this).g),!1);J(this.element,"ytp-drag");(this.oa=tq(Sr(this.o)))&&this.o.pauseVideo()};
h.kD=function(){this.ca=0;le(this.element,"ytp-pull-ui");le(this.element,"ytp-pulling");if(0<this.F){var a=yq(),b=this.F,c=s7(this).position;Ui(this.C);this.C=Nq(x(this.Os,this,a,b,c),0)}R(Sr(this.o),32)&&(this.o.seekTo(D1(this.b,s7(this).g)),le(this.element,"ytp-drag"),this.oa&&!R(Sr(this.o),2)&&this.o.xd())};
h.Os=function(a,b,c){var d=1-Math.pow(1-(yq()-a)/200,3),e=c+d*(this.D*this.B-c);if(0>d||1<d)d=1;r7(this,(1-d)*b,e,this.D);this.C=1>d?Nq(x(this.Os,this,a,b,c),0):window.NaN};
h.lD=function(a,b){var c=!1,d=!1,e=s7(this);3600<=C1(this.b)&&(r7(this,this.Ta-b-10,e.position,e.g),d=!0,c=this.F>.1*(this.H?60:40),e=s7(this));K(this.element,"ytp-pull-ui",d);c&&J(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.ca||Ti(this.C);c&&(this.C=Nq(x(this.bs,this,yq(),this.G),0));this.ca=c;this.o.seekTo(D1(this.b,e.g),!1)};
h.bs=function(a,b){if(this.ca){var c=this.B*(this.S-1);this.G=$e(b+this.ca*(yq()-a)*.3,0,c);k7(this);this.o.seekTo(D1(this.b,s7(this).g),!1);0<this.G&&this.G<c&&(this.C=Nq(x(this.bs,this,a,b),0))}};
h.Nq=function(){this.wa("clipstarticon",xh());this.wa("clipendicon",xh());J(this.element,"ytp-clip-hover")};
h.Mq=function(){this.wa("clipstarticon",zh());this.wa("clipendicon",yh());le(this.element,"ytp-clip-hover")};
h.dj=function(){this.L=0;this.K=window.Infinity;o7(this);j7(this,this.D,this.ea)};
h.Ps=function(a){for(var b=0;b<a.length;b++){var c=a[b];if(c.visible){var d=c.getId();if(!this.M[d]){var e=window.document.createElement("div");c.tooltip&&(e.setAttribute("data-tooltip",c.tooltip),e.setAttribute("data-position",c.start/1E3));this.M[d]=c;this.ga[d]=e;t7(this,c,e);"ytp-chapter-marker"==c.style?this.rb.appendChild(e):this.kb.appendChild(e)}}else v7(this,c)}};
h.RE=function(a){for(var b=0;b<a.length;b++)v7(this,a[b])};
h.T=function(){Ti(this.C);this.C=window.NaN;n7(this,!1);i7.N.T.call(this)};z(x7,S);x7.prototype.A=function(a){w7(this,a.state)};z(y7,S);
y7.prototype.b=function(){var a=!1;-1!=this.Z.Dh().indexOf("remote")&&(a=1<this.Z.Jb("remote","receivers").length);this.gb(a&&400<=Jx(this.Z).Ka().width);var b=1;a&&this.Z.Jb("remote","casting")&&(b=2);if(this.o!=b){this.o=b;switch(b){case 1:this.wa("icon",vh?{J:"div",ha:["ytp-icon","ytp-icon-cast-desktop-off"]}:{J:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},R:[{J:"path",Fa:!0,V:{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.wa("icon",wh())}K(this.element,"ytp-remote-button-active",!!this.Z.Jb("remote","casting"))}};
y7.prototype.A=function(){gJ(this.Z,"remote");if(this.Z.Jb("remote","castSelector"))this.Z.Qa()&&br(this.Z),this.Z.Ve("remote","castSelector",!0);else{var a=this.B,b=this.element;G5(a)?a.sb():(R7(a),a.K.open(),a.Ef(b))}};z(z7,V5);z7.prototype.A=function(){$I(iq(this.Z),"iv-module")&&3!=this.Z.getPresentingPlayerType()?this.o||(S7(this.B,this),this.o=!0):this.o&&(T7(this.B,this),this.o=!1);W5(this,tL(iq(this.Z)))};
z7.prototype.C=function(a){tL(iq(this.Z));a?this.Z.Dj("iv-module"):this.Z.It("iv-module")};z(A7,O5);h=A7.prototype;h.open=function(){L5(this.b,this.C)};
h.ue=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.Ob(this.jd(a));this.F=a};
h.dc=function(a){this.ue(a);this.Y("select",a)};
h.PC=function(a){"true"!=this.o[a].element.getAttribute("aria-disabled")&&this.dc(a)};
h.jd=function(a){return a.toString()};
h.vI=function(a){rm(a)||39!=sm(a)||(this.open(),qm(a))};
h.T=function(){A7.N.T.call(this);for(var a in this.o)this.o[a].dispose()};z(C7,A7);C7.prototype.D=function(){var a=this.Z.Jt();1<a.length?(B7(this,N(a,this.B)),this.H=Hb(a,this.B,this),this.G.Ob(a.length?" ("+a.length+")":""),this.Y("size-change"),this.ue(this.B(this.Z.Fh())),this.A||(S7(this.b,this),this.A=!0)):this.A&&(T7(this.b,this),this.A=!1)};
C7.prototype.dc=function(a){C7.N.dc.call(this,a);this.Z.an(this.H[a]);this.b.ke()};
C7.prototype.B=function(a){return a.toString()};z(D7,V5);D7.prototype.A=function(){var a=this.Z.getPresentingPlayerType();if(2!=a&&3!=a&&pJ(this.Z))this.B||(S7(this.D,this),this.B=!0,this.o.push(this.U(this.Z,"videodatachange",this.A)),this.o.push(this.U(this.Z,"videoplayerreset",this.A)),this.o.push(this.U(this.Z,"onPlaylistUpdate",this.A)),this.o.push(this.U(this.Z,"autonavchange",this.C)),this.C(this.Z.getVideoData().autonavState));else if(this.B)for(T7(this.D,this),this.B=!1,a=0;a<this.o.length;a++)this.ua(this.o[a])};
D7.prototype.C=function(a){W5(this,1!=a)};
D7.prototype.F=function(a){this.Z.app.b.Aa("onAutonavChangeRequest",1!=(a?2:1))};z(E7,A7);E7.prototype.B=function(){var a=this.Z.getPresentingPlayerType();if(2!=a&&3!=a){for(var a={},b=FI(WI(this.Z.app)),c=0;c<b.length;c++){var d=b[c];a[d.quality]=d}this.H=a;a=this.Z.Bt();b=this.Z.getVideoData().g;if(b=!!b&&!SB(b))b=this.Z.getVideoData(),b=!!(b.adaptiveFormats||b.hlsFormats||b.D);b&&a.unshift("missing-qualities");B7(this,a);if(a.length){this.G();this.A||(S7(this.b,this),this.A=!0);return}}this.A&&(T7(this.b,this),this.A=!1)};
E7.prototype.G=function(){var a=eJ(this.Z);this.o[a]&&(this.D=this.Z.Cj(),this.ue(a),"auto"==a&&this.Ob(this.jd(a)))};
E7.prototype.dc=function(a){"missing-qualities"!=a&&(E7.N.dc.call(this,a),this.Z.Gj(a),this.b.sb())};
E7.prototype.jd=function(a,b){if("missing-qualities"==a)return{J:"a",V:{href:"https://support.google.com/youtube/?p=missing_quality",target:"_blank"},R:[O("YTP_MISSING_FORMATS")]};var c={J:"div",R:[F7(this,a)]},d=eJ(this.Z);b||"auto"!=d||"auto"!=a||(c.R.push(" "),c.R.push(F7(this,this.D,["ytp-menu-label-secondary"])));return c};z(G7,A7);G7.prototype.D=function(){var a=-1!=this.Z.Dh().indexOf("remote")?this.Z.Jb("remote","receivers"):[];1<a.length&&!this.Z.Jb("remote","castSelector")?(this.G=Hb(a,this.B,this),B7(this,N(a,this.B)),a=this.Z.Jb("remote","currentReceiver"),this.ue(this.B(a)),this.A||(S7(this.b,this),this.A=!0)):this.A&&(T7(this.b,this),this.A=!1)};
G7.prototype.B=function(a){return a.key};
G7.prototype.jd=function(a){return this.G[a].name};
G7.prototype.dc=function(a){G7.N.dc.call(this,a);this.Z.Ve("remote","currentReceiver",this.G[a]);this.b.sb()};z(H7,A7);h=H7.prototype;h.Uk=function(a){return a.toString()};
h.jd=function(a){return"1"==a?O("YTP_NORMAL_SPEED"):a.toString()};
h.Nu=function(){var a=this.Z.getPresentingPlayerType();2!=a&&3!=a?this.A||(S7(this.b,this),this.A=!0,this.B=this.U(this.Z,"onPlaybackRateChange",this.ZC),B7(this,N(this.Z.Bh(),this.Uk)),this.ue(this.Uk(this.Z.app.M))):this.A&&(T7(this.b,this),this.A=!1,this.ua(this.B),this.B=null)};
h.ZC=function(a){this.ue(this.Uk(a))};
h.dc=function(a){H7.N.dc.call(this,a);this.Z.Eh((0,window.parseFloat)(a),!0);this.b.ke()};z(J7,A7);h=J7.prototype;h.AE=function(){L5(this.b,this.A)};
h.Pu=function(a){return a.option.toString()};
h.jd=function(a){return I7(this.H[a])};
h.dc=function(a){J7.N.dc.call(this,a);this.Y("settingChange",this.G,this.H[a].option)};
h.gs=function(a){this.Y("settingChange",this.G+"Override",!a);this.b.ke()};z(K7,R5);K7.prototype.B=function(a,b){this.Y("settingChange",a,b)};z(M7,A7);M7.prototype.B=function(a){return a.languageCode};
M7.prototype.jd=function(a){return this.A[a].languageName||""};
M7.prototype.dc=function(a){this.Y("select",a);a=this.b;var b=a.b.pop(),c=a.b[0];a.b=[c];K5(a,b,c,!0)};z(N7,A7);h=N7.prototype;h.un=function(a){return bc(a)?"__off__":a.displayName};
h.jd=function(a){return"__off__"==a?O("YTP_LANGUAGE_OFF"):"__translate__"==a?O("YTP_AUTO_TRANSLATE"):"__contribute__"==a?O("YTP_CONTRIBUTE_MENU_ITEM"):("__off__"==a?{}:this.A[a]).displayName};
h.dc=function(a){"__translate__"==a?this.D.open():"__contribute__"==a?(this.Z.pauseVideo(),this.Z.Qa()&&br(this.Z),a=this.Z.getVideoData(),Vq(T(this.Z).baseYtUrl+"timedtext_video?ref=player&v="+a.videoId)):(this.Z.Ve("captions","track","__off__"==a?{}:this.A[a]),N7.N.dc.call(this,a),this.b.ke())};
h.lF=function(){L5(this.b,this.B)};
h.Nh=function(){var a=-1!=this.Z.Dh().indexOf("captions"),b=this.Z.getVideoData().Yd;if(a||b){var c,d;if(a){var e=this.Z.Jb("captions","track"),f=this.Z.Jb("captions","tracklist",{includeAsr:!0}),k=this.Z.Jb("captions","translationLanguages");this.A=Hb(f,this.un,this);c=N(f,this.un);if(k.length){d=this.D;var l=k;d.A=Hb(l,d.B,d);B7(d,N(l,d.B));c.push("__translate__")}d=this.un(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));B7(this,c);this.ue(d);a?(L7(this.B,this.Z.Zm()),this.G.Ob(f.length?" ("+f.length+")":""),this.Y("size-change"),a&&k.length&&this.o.__translate__.element.setAttribute("aria-disabled",!!bc(e))):(this.G.Ob(""),this.Y("size-change"));this.H||(S7(this.b,this),this.H=!0)}else this.H&&(T7(this.b,this),this.H=!1)};
h.XD=function(a){var b=this.Z.Jb("captions","track"),b=gc(b);b.translationLanguage=this.D.A[a];this.Z.Ve("captions","track",b)};
h.AI=function(a,b){if("reset"==a)this.Z.Mt();else{var c={};c[a]=b;this.Z.bn(c)}L7(this.B,this.Z.Zm())};z(O7,A7);var Fta={1:"YTP_THREED_VIEWMODE_2D",2:"YTP_THREED_VIEWMODE_ANAGLYPH"};O7.prototype.jd=function(a){return O(Fta[(0,window.parseInt)(a,10)])};
O7.prototype.D=function(){var a=fJ(this.Z);"Anaglyph3D"==a.shader||"Spherical3D"==a.shader?(this.A||(this.B=a.shader,S7(this.b,this),this.A=!0,B7(this,[(1).toString(),(2).toString()])),a=a.displayMode,void 0!=a&&this.ue(a.toString())):this.A&&(T7(this.b,this),this.A=!1)};
O7.prototype.dc=function(a){O7.N.dc.call(this,a);a={shader:this.B,displayMode:a};var b=iq(this.Z).g;b&&oL(b,a);this.b.ke();this.Z.Wa("webglsettingschanged",fJ(this.Z))};z(P7,H5);P7.prototype.Ef=function(a){R7(this);0<this.B.b.length&&P7.N.Ef.call(this,a)};
P7.prototype.show=function(){P7.N.show.call(this);J(this.o.Ea(),"ytp-settings-shown")};
P7.prototype.pa=function(){P7.N.pa.call(this);le(this.o.Ea(),"ytp-settings-shown")};z(U7,S);U7.prototype.A=function(a){this.gb(this.B&&400<=a.width)};
U7.prototype.C=function(){gJ(this.Z,"settings");this.o.g?this.o.sb():(this.Z.Dj("captions"),this.o.Ef(this.element))};
U7.prototype.b=function(){var a=this.Z.getPresentingPlayerType(),b=2!=a&&3!=a,c=fJ(this.Z),c=(a=b&&("Anaglyph3D"==c.shader||"Spherical3D"==c.shader))&&1==(0,window.parseInt)(c.displayMode,10),b=a||!b?null:this.Z.Cj();K(this.element,"ytp-hd-quality-badge","hd720"==b||"hd1080"==b||"hd1440"==b);K(this.element,"ytp-4k-quality-badge","hd2160"==b);K(this.element,"ytp-5k-quality-badge","hd2880"==b);K(this.element,"ytp-8k-quality-badge","highres"==b);K(this.element,"ytp-3d-badge-grey",a&&c);K(this.element,
"ytp-3d-badge",a&&!c)};z(V7,S);V7.prototype.D=function(){gJ(this.b,this.b.app.ka?"size_small":"size_large");var a=this.b.app,b=!a.ka;a.W.experiments.aa("player_legacy_set_size_style")&&X9(a,!0,b);a.b.Aa("SIZE_CLICKED",b)};
V7.prototype.o=function(){this.gb(this.b.app.nc&&!this.b.Qa()&&3!=this.b.getPresentingPlayerType());if(this.g){var a=this.b.app.ka;if(this.A!=a){var b=a?vh?{J:"div",ha:["ytp-icon","ytp-icon-default-view"]}:{J:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},R:[{J:"path",Fa:!0,V:{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"}}]}:vh?{J:"div",ha:["ytp-icon","ytp-icon-theater-mode"]}:{J:"svg",V:{height:"100%",version:"1.1",viewBox:"0 0 36 36",
width:"100%"},R:[{J:"path",Fa:!0,V:{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"}}]};T(this.b).O||null==this.A?this.wa("icon",b):V6(this.C,this.element,b);a=(this.A=a)?O("YTP_DEFAULT_VIEW"):O("YTP_THEATER_MODE");this.wa("title",a);Z6(this.B)}}};z(W7,S);W7.prototype.A=function(){gJ(this.o,"subtitles");dJ(this.o)};
W7.prototype.b=function(){var a=!!$I(iq(this.o),"captions");this.gb(a&&300<=Jx(this.o).Ka().width);a&&this.wa("pressed",!!this.o.Jb("captions","track").displayName)};z(X7,S);h=X7.prototype;h.Ig=function(){var a=Jx(this.b).Ka().width,b=350<=a&&(!this.A||!R(Sr(this.b),64));this.gb(b);K(this.element,"ytp-time-display-allow-autohide",b&&400>a);b&&(a=this.b.Cf(),b=Pq(a.current),this.D!=b&&(this.wa("currenttime",b),this.D=b),a=Pq(a.duration),this.F!=a&&(this.wa("duration",a),this.F=a))};
h.CI=function(a){if(this.C!=a){this.C=a;this.Ig();var b=this.B.element;(b.disabled=a)?this.o&&(this.o(),this.o=null,b.removeAttribute("title")):(b.title=O("YTP_GOTO_LIVE_TOOLTIP"),this.o=D5(this.G,this.B.element))}};
h.DI=function(a,b){this.A=b.za;K(this.element,"ytp-live",this.A);this.Ig()};
h.BI=function(a){a.target==this.B.element?(gJ(this.b,"live"),this.b.seekTo(window.Infinity),this.b.xd()):gJ(this.b,"time")};
h.T=function(){this.o&&this.o();X7.N.T.call(this)};z(Z7,S);h=Z7.prototype;h.FI=function(){var a=jJ(this.D);this.G!=a&&(this.G=a,Y7(this,this.b.Nb(),this.b.ad()))};
h.Ru=function(a){this.gb(350<=a.width)};
h.MD=function(a){if(!rm(a)){var b=sm(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=$e(c,0,100),0==c?this.b.mute():(this.b.ad()&&this.b.Bf(),this.b.setVolume(c)),qm(a))}};
h.GI=function(a){var b=a.deltaX||-a.deltaY;a.deltaMode?this.b.setVolume(this.B+(0>b?-10:10)):this.b.setVolume(this.B+$e(b/10,-10,10));qm(a)};
h.LD=function(){gJ(this.b,"volume");$7(this,this.A,!0,this.o,this.D.K);this.O=this.B;this.b.ad()&&this.b.Bf()};
h.KD=function(a){a-=ts(this.M).x;this.b.setVolume(100*$e(a/(this.G?78:52),0,1))};
h.JD=function(){$7(this,this.A,!1,this.o,this.D.K);0==this.B&&(this.b.mute(),this.b.setVolume(this.O))};
h.HI=function(a){Y7(this,a.volume,a.muted)};
h.Jo=function(){$7(this,this.A,this.C,this.o,this.D.K)};
h.Qu=function(a){$7(this,this.A,this.C,a,this.D.K)};
h.xs=function(a){K(this.element,"ytp-volume-control-hover",a);$7(this,a,this.C,this.o,this.D.K)};
h.T=function(){Z7.N.T.call(this);le(this.L,"ytp-volume-slider-active")};z(a8,S);a8.prototype.o=function(){var a=!!this.b.getVideoData().videoId;this.gb(a);a&&(a=this.b.getVideoUrl(!0,!1,!1,!0),this.wa("url",a))};
a8.prototype.A=function(a){gJ(this.b,"youtube");var b=this.b.getVideoUrl(!Qq(a),!1,!0,!0);cr(b,this.b,a)};z(b8,Dw);h=b8.prototype;h.sn=function(){var a=this.A;m7(a);var b=a.o.getCurrentTime();(b<a.L||b>a.K)&&a.dj();this.G.Ig()};
h.Ou=function(){this.Bm();!this.H.g||this.sn()};
h.gC=function(){this.sn();this.B.start()};
h.Bm=function(){var a;if(a=T(this.Z).experiments.aa("smooth_progress_bar")&&!T(this.Z).isMobile)a=this.A,a=300>1E3*C1(a.b)/(2*a.B*(window.devicePixelRatio||1));var b=!a;this.H.g||(a=b=!1);b?this.C||(this.C=this.U(this.Z,"progresssync",this.sn)):this.C&&(this.ua(this.C),this.C=null);a&&Sr(this.Z).Za()?this.B.isActive()||this.B.start():this.B.stop()};
h.zF=function(a){j8(this.b.g,!a)};
h.tn=function(){var a=jJ(this.b),b=Jx(this.Z).Ka(),c=12*(jJ(this.b)?2:1),d=Math.max(b.width-2*c,100);if(this.O!=b.width||this.M!=a){this.O=b.width;this.M=a;var e=d8(this);this.g.element.style.width=e+"px";this.g.element.style.left=c+"px";var f=this.A;f.Sa=c;f.B=e;f.H=a;k7(f);this.b.g.da=e}c=this.o;b=Math.min(413*(a?1.5:1),Math.round(.82*(b.height-(jJ(this.b)?72:50))));c.$=Math.min(570*(a?1.5:1),d);c.ca=b;c.vh();this.Bm()};
h.ma=function(){return this.g.element};z(e8,S);e8.prototype.D=function(a){a=400>a.width&&this.b.$c()&&2!=this.b.getPresentingPlayerType();this.K.style.display=a?"":"none"};
e8.prototype.L=function(a){gJ(this.b,"title");var b=this.b.getVideoUrl(!Qq(a),!1,!0);cr(b,this.b,a)};
e8.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)&&f8(this,a,c,d,b))};
e8.prototype.A=function(){g8(this);var a=this.b.getVideoData();this.wa("title",a.title);!T(this.b).F&&a.videoId?(this.wa("url",this.b.getVideoUrl(!0)),this.o||(this.o=this.U(this.G,"click",this.L))):this.o&&(this.wa("url",null),this.ua(this.o),this.o=null)};z(h8,S);h=h8.prototype;h.DC=function(a){3==this.b&&this.Gc();a=a.currentTarget;this.b||(a.removeEventListener("mouseover",this.L),a.addEventListener("mouseout",this.$),k8(this,a,2))};
h.BC=function(a){(a=om(a))&&Pf(this.o,a)||this.Gc()};
h.Tq=function(a,b){if(a<=this.C&&this.C<=b){var c=this.C;this.C=window.NaN;o8(this,c)}};
h.qA=function(){VD(this.A,this.C,96*this.B)};
h.Gc=function(){switch(this.b){case 2:this.o.removeEventListener("mouseout",this.$),this.o.addEventListener("mouseover",this.L);case 3:3==this.b&&this.S.stop();this.M.removeEventListener("appresize",this.Gc,this);this.K||this.o.setAttribute("title",this.F);this.F="";this.o=null;break;case 1:this.A&&(this.A.Ga("l",this.Tq,this),this.A=null),this.M.removeEventListener("videoready",this.Gc,this),this.O.stop()}this.b=null;this.H&&ev(this.D)};
h.Jf=function(a){if(this.o)for(var b=0;b<arguments.length;b++)Pf(arguments[b],this.o)&&this.Gc()};
h.T=function(){null!=this.b&&this.Gc();h8.N.T.call(this)};z(q8,S);h=q8.prototype;h.Su=function(a){this.gb(300<=a.width)};
h.rE=function(){this.o=!0;this.A=!1;p8(this,1);T(this.b).isMobile&&l8(this.C,this.element);T(this.b).Ra&&this.b.Aa("WATCH_LATER_VIDEO_ADDED")};
h.II=function(){gJ(this.b,"watchlater");var a=this.b.getVideoData().videoId;if(!this.A){this.A=!0;p8(this,3);var b=T(this.b);(this.o?rma:qma)({videoIds:a,Pb:b.Pb,pageId:b.pageId,onError:this.sE,fb:this.o?this.tE:this.rE,context:this},b.baseYtUrl,!0)}};
h.sE=function(a,b){this.A=!1;var c=O("YTP_ERROR_GENERIC_WITHOUT_LINK");b&&(c=b.errors&&b.errors.length?b.errors[0]:b.error_message);p8(this,4,c);T(this.b).Ra&&this.b.Aa("WATCH_LATER_ERROR",c)};
h.tE=function(){this.A=this.o=!1;p8(this,2);T(this.b).Ra&&this.b.Aa("WATCH_LATER_VIDEO_REMOVED")};
h.JI=function(){this.A=this.o=!1;p8(this,2)};
h.T=function(){q8.N.T.call(this);le(this.D,"ytp-watch-later-button-visible")};z(r8,S);r8.prototype.C=function(a){this.gb(!R(a.state,2))};
r8.prototype.A=function(){if(this.o.getVideoData().videoId){var a=this.o.getVideoUrl(!0,!1,!1,!0);this.wa("url",a);this.b||(this.b=this.P("click",this.B))}else this.b&&(this.wa("url",null),this.ua(this.b),this.b=null)};
r8.prototype.B=function(a){var b=this.o.getVideoUrl(!Qq(a),!1,!0,!0);cr(b,this.o,a)};z(t8,Dw);h=t8.prototype;h.Hu=function(a,b){if(this.ga!=b.videoId){this.ga=b.videoId;var c=this.B;c.M=b&&0<b.ba.length?5E3:3E3;c.Ab(512,!0);this.uh()}};
h.bD=function(){this.Hu(0,this.b.getVideoData())};
h.Lk=function(a,b){b?this.M=a:this.M=null;this.zg()};
h.Mk=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.Ab(64,0<this.F.length)};
h.zg=function(){var a=!iJ(this),b=a&&mr(this.b)&&!R(Sr(this.b),2);a?(this.ia.show(),this.ka.show()):(ev(this.ia),ev(this.ka),this.g.Jf(this.A.element,this.G.element));b?this.G.o.show():ev(this.G.o);K(this.A.element,"ytp-cards-available",b);K(this.b.Ea(),"ytp-menu-shown",!a);var b=this.O,c=!a;(b.A=c)?b.pa():e6(b.o,b.b,Sr(b.b));this.o&&c8(this.o,!a)};
h.YH=function(a){for(;a&&!Vf(a);)a=a==this.b.Ea()?null:Of(a);for(var b=a;b;){if(ie(b,"video-ads")){a=null;break}b=b==this.b.Ea()?null:Of(b)}return!!a};
h.ZH=function(a){var b=this.b.Ea();K(b,"ytp-autohide",a);a&&(this.g.Jf(this.A.element,this.G.element),this.o&&this.g.Jf(this.o.ma()),this.K=!1,le(b,"ytp-touch-mode"));b=this.b;a=!a;b.Aa("onVideoAreaChange");b.Aa(a?"onShowControls":"onHideControls")};
h.xD=function(a){if(Cq(Sr(this.b))&&!T(this.b).kc){var b=this.b.getVideoData();b.videoId&&this.b.Lt(CF(b))}this.B.g||u8(this,nm(a))||(Sr(this.b),qm(a));this.K=!0;J(this.b.Ea(),"ytp-touch-mode");this.B.Ab(2,!0)};
h.tr=function(a){if(u8(this,nm(a)))return!0;this.B.Ab(2,!0);return!Qq(a)||this.Vo()?!0:Cq(Sr(this.b))?(this.b.xd(),!0):!1};
h.ur=function(a){u8(this,nm(a));a=Sr(this.b);R(a,2)&&aJ(this.b)||(z5(this.D),tq(a)?this.b.pauseVideo():(this.b.xd(),window.document.activeElement==this.O.element&&this.b.Ea().focus()))};
h.wD=function(a){u8(this,nm(a))||3!=this.b.getPresentingPlayerType()&&br(this.b)};
h.$H=function(a){var b=this.b.Ea();a?b.parentElement?(b.setAttribute("aria-label",O("YTP_PLAYER_FULLSCREEN")),b.parentElement.insertBefore(this.ea.element,b),b.parentElement.insertBefore(this.fa.element,b.nextSibling)):Vi(Error("Player not in DOM.")):(b.setAttribute("aria-label",O("YTP_PLAYER_NORMAL")),this.ea.detach(),this.fa.detach());this.on();this.uh()};
h.on=function(){var a=jJ(this),b=Jx(this.b).Ka(),c=this.b.Qa(),d=this.b.Ea();T(this.b).experiments.aa("autohide_resize_killswitch")||$l&&c5(this.B);this.g.B=a?1.5:1;K(d,"ytp-fullscreen",c);K(d,"ytp-small-mode",!a&&480>b.width);K(d,"ytp-big-mode",a);K(this.H.element,"ytp-big-mode",a);this.C&&(a=this.C,a.b&&e5(a.b,b.width,b.height))};
h.aI=function(a){s8(this,a.state);this.uh()};
h.uh=function(){var a=!this.b.getVideoData().isListed&&2==this.b.getPresentingPlayerType(),a=!!this.ga&&!YI(this.b)&&!a&&(2==this.b.getPresentingPlayerType()||T(this.b).ab||this.b.Qa());if(this.na!=a&&(this.na=a,K(this.b.Ea(),"ytp-hide-info-bar",!a),!a))for(this.g.Jf(this.A.element,this.G.element),a=0;a<this.ba.length;a++){var b=this.ba[a];G5(b)&&b.sb()}};
h.Vo=function(){return this.H.g?(this.H.sb(),!0):this.F.length?(this.F[this.F.length-1].sb(),!0):this.M?(this.M.sb(),!0):mr(this.b)&&hJ(this.b)?(this.b.Gh(!1,!1),!0):YI(this.b)?(bJ(this.b,!0),!0):!1};
h.iF=function(a,b){this.ra=b;this.Mk(a,b);this.Ls()};
h.Ls=function(){var a=this.ra||G5(this.H);this.$!=a&&(this.$=a,this.b.Aa("onAutonavPauseRequest",this.$))};
h.Tx=function(){v8(this,this.b.Ea(),!0).focus()};
h.Ux=function(){v8(this,this.b.Ea(),!1).focus()};var R8=window,J8=window.document,Gma=R8.location,Fma=/\[native code\]/,O8=w8(R8,"gapi",{});var y8;y8=w8(R8,"___jsl",x8());w8(y8,"I",0);w8(y8,"hel",10);var C8=w8(y8,"perf",x8());w8(C8,"g",x8());var Ima=w8(C8,"i",x8());w8(C8,"r",[]);x8();x8();var F8=x8(),M8=[];M8.push(["jsl",function(a){for(var b in a)if(Object.prototype.hasOwnProperty.call(a,b)){var c=a[b];"object"==typeof c?y8[b]=w8(y8,b,[]).concat(c):w8(y8,b,c)}if(b=a.u)a=w8(y8,"us",[]),a.push(b),(b=/^https:(.*)$/.exec(b))&&a.push("http:"+b[1])}]);var Qma=/^(\/[a-zA-Z0-9_\-]+)+$/,Sma=/^[a-zA-Z0-9\-_\.,!]+$/,Oma=/^gapi\.loaded_[0-9]+$/,Rma=/^[a-zA-Z0-9,._-]+$/,Lma=/^https?:\/\/[a-z0-9_.-]+\.google\.com(:\d+)?\/[a-zA-Z0-9_.,!=\-\/]+$/,Kma=/\/cb=/g,Jma=/\/\//g;F8.m=function(a,b,c,d){(a=a[0])||E8("missing_hint");return"https://apis.google.com"+Pma(a,b,c,d)};var L8=(0,window.decodeURI)("%73cript");O8.load=function(a,b){return N8(function(){return Q8(a,b)})};var S8=null;T8.prototype.A=function(){var a=r("gapi.config.update");a("googleapis.config/auth/useFirstPartyAuth",!0);var b=this.b.apiaryHost;B(C(b))||a("googleapis.config/root",(-1==b.indexOf("://")?"//":"")+b);b=this.b.nk;B(C(b))||a("googleapis.config/root-1p",(-1==b.indexOf("://")?"//":"")+b);a("googleapis.config/sessionIndex",Pi("SESSION_INDEX"));r("gapi.client.setApiKey")(this.b.innertubeApiKey)};
T8.prototype.g=function(){return{context:bE(this.b)}};
T8.prototype.o=function(a,b,c){var d,e=!1;0<c.timeout&&(d=Ri(function(){e||(e=!0,c.Wb&&c.Wb())},c.timeout));
Yma(this,a,b,function(a){if(!e)if(e=!0,d&&Ti(d),a)c.fb&&c.fb(a);else if(c.onError)c.onError()})};W8.prototype.g=function(){return{context:bE(this.b)}};
W8.prototype.o=function(a,b,c){b={headers:{"Content-Type":"application/json","X-Goog-Visitor-Id":Pi("VISITOR_DATA")},Lb:b,Lr:"JSON",Wb:c.Wb,fb:c.fb,onError:c.onError,timeout:c.timeout,withCredentials:!0};a:{c=[];var d=U8(String(q.location.href)),e=q.__OVERRIDE_SID;null==e&&(e=(new Bk(window.document)).get("SID"));if(e&&(d=(e=0==d.indexOf("https:")||0==d.indexOf("chrome-extension:"))?q.__SAPISID:q.__APISID,null==d&&(d=(new Bk(window.document)).get(e?"SAPISID":"APISID")),d)){var e=e?"SAPISIDHASH":"APISIDHASH",
f=String(q.location.href);c=f&&d&&e?[e,$ma(U8(f),d,c||null)].join(" "):null;break a}c=null}c&&(b.headers.Authorization=c,b.headers["X-Goog-AuthUser"]=Pi("SESSION_INDEX",0));ak("//"+this.b.LF+("/youtubei/"+this.b.innertubeApiVersion+"/"+a)+"?alt=json&key="+this.b.innertubeApiKey,b)};var Osa={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){Vi(e)}$8.b[c]=null}var d=new $8(a,b);Lb(d,function(){$8.b[c]=null});
return $8.b[c]=d}catch(e){throw Vi(e),e.stack;}};
$8.A=function(a){return w(a)?a:"player"+ma(a)};
h=$8.prototype;h.TA=function(){this.W.B&&tp()||q9(this,5)};
h.$C=function(a){this.W.B&&tp()||(Q9(this),tq(a.getPlayerState())&&x4(this))};
h.ys=function(a){var b=this.D.element;K(b,"ytp-ad-overlay-open",a);K(b,"ytp-ad-overlay-closed",!a)};
h.canPlayType=function(a){return!!py().canPlayType(a)};
h.getVideoData=function(){return this.B.getVideoData()};
h.Aj=function(){var a=AA(this.W);qa(a,Pea(this.G));this.F&&qa(a,this.F.Ih());a.fs=this.b.Qa();a.volume=Math.round(this.Ya.Nb());a.mos=this.Ya.ad()?1:0;return a};
h.getCurrentTime=function(a){return 3==this.getPresentingPlayerType()?this.C.getCurrentTime():(a=WI(this,a))?a.getCurrentTime():0};
h.getPresentingPlayerType=function(){var a;if(a=this.W.B&&this.C)a=this.C,a=!!a.g&&!!a.o;return a?3:WI(this).K};
h.eG=function(a){switch(a.type){case "loadedmetadata":ME("fvb",this.H.b)||this.H.g("fvb");JE("fvb",void 0,"video_to_ad");this.Mb.start();break;case "loadstart":ME("gv",this.H.b)||this.H.g("gv");JE("gv",void 0,"video_to_ad");break;case "progress":case "timeupdate":!ME("l2s",this.H.b)&&2<=wy(Iy(a.target))&&this.H.g("l2s");break;case "playing":a=this.G.g,"none"!=this.o.getStyle("display")||Z4(this.D)||a||mu(this.B.o.g,"hidden","1",!0)}};
h.nC=function(a,b){this.b.Aa("onLoadProgress",b)};
h.ND=function(){this.b.Wa("playbackstalledatstart")};
h.lE=function(a,b){this.b.Aa("onVideoProgress",b)};
h.bG=function(){this.Ya.Wa("progresssync",void 0,void 0)};
h.VA=function(a){!this.W.experiments.aa("disable_live_head_slowdown")&&0<Hu(a,1)&&!R(a.state,64)&&k4(this).za&&BI(this.g)&&1<this.M&&t9(this,1,!0);if(0<Hu(a,2)){var b;this.A&&("embedded"==this.W.b||this.b.Qa())&&QK(this)?(L9(this,!1,!this.W.experiments.aa("legacy_autoplay_flag")),b=!0):b=!1;!b&&lA(this.W)&&(b=this.g.g,b.b.webkitExitFullScreen&&b.b.webkitExitFullScreen())}if(R(a.state,128)){b=a.state.b.errorCode;if(this.W.experiments.aa("html5_retry_media_element_errors")&&!this.getVideoData().Na&&
("fmt.decode"==b||"fmt.unplayable"==b)){$9(this,b);return}b=a.state;F9(this);b=b.b;this.b.Aa("onError",y$[b.errorCode]||5);this.b.Aa("onDetailedError",b)}a.state.Za()&&!Dq(a.state)&&(b=this.getVideoData(),KE("cpn",b.clientPlaybackNonce,"ad_to_video"),b.videoId&&KE("docid",b.videoId,"ad_to_video"),b.playbackId&&KE("plid",b.playbackId,"ad_to_video"),JE("pbresume",void 0,"ad_to_video"));this.b.Wa("applicationplayerstatechange",a)};
h.aG=function(a){!R(a.state,32)&&0>Hu(a,16)&&(!R(a.state,8)||R(a.state,64)||this.o.b.ended||R(a.state,2)||x4(this));this.b.Wa("presentingplayerstatechange",a);r9(this,Eq(a.state))};
h.RA=function(a){"newdata"==a&&b9(this)};
h.XA=function(a){a==this.B.getVideoData()&&this.b.Aa("onPlaybackAudioChange",u9(this).Vb.name)};
h.jE=function(a){var b=this.B.getVideoData();a==b&&this.b.Aa("onPlaybackQualityChange",a.g.video.quality)};
h.Tm=function(a,b,c){if("newdata"==a)rL(this.G),this.g==this.B?(this.o.b.loop=this.Ha,this.o.b.playbackRate=this.M):(this.o.b.loop=!1,this.o.b.playbackRate=1),this.b.Wa("videoplayerreset",b);else{if(!this.o)return;if("dataloaded"==a)if(oA(b.W,c.A),this.B==this.g){this.W.B&&kp("embedded"==this.W.b);var d=this.W.B&&!!tp();if(d||!k4(this).Ys||this.W.isMobile){var e=k4(this);if(!yF(e)||d||iF(this.g.b)){AF(e);d&&q9(this,6);e=!1;d=j4.xb;!this.F&&d(this)&&(this.F=new j4(this),h9(this,this.F),e=!0);try{var f=
this.F;f&&!f.D&&f.xb(this.Ya)&&f.create()}catch(k){Vi(k),this.g&&vI(this.g,"ad")}e&&(f=this.F,d=k4(this),e=WI(this),d.subscribe("cuepointupdated",f.FB,f),f.ea=d,f=p4(f),null!=f&&(f.F=e),this.F.subscribe("overlay_ad_open",pa(this.ys,!0),this),this.F.subscribe("overlay_ad_close",pa(this.ys,!1),this));i9(this);g9(this)}else f=e.za&&!Oz()?"html5.unsupportedlive":"fmt.noneavailable",d="YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK",(!pA(this.W)||U4||Rp()?0:vf||e.ra&&lz)&&(d=e.ra?"YTP_HTML5_PROTECTED_FLASH_FALLBACK":
"YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK_FLASH"),jI(this.g,f,d,"nosupported.1")}else e="YTP_DEVICE_FALLBACK",(!pA(this.W)||U4||Rp()?0:vf)&&(e="YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK_FLASH"),jI(this.g,"html5.unsupportedads",e,void 0)}else g9(this);1==b.K&&(this.getVideoData().Mb?(e=this.o,e.B=!0,e.b.muted=!0):(this.o.B=!1,R9(this,this.ba)),this.getVideoData().za&&!this.W.ef&&jI(this.g,"html5.unsupportedlive","YTP_DEVICE_FALLBACK",void 0),AF(c)&&(c.zd||c.Be||c.C.focEnabled||c.C.rmktEnabled||this.getVideoData().Rn)&&
(e=this.getVideoData(),A9(this,"part2viewed",1,0x8000000000000),A9(this,"engagedview",Math.max(1,1E3*e.ea),0x8000000000000),e.za||(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.Wa("videodatachange",a,c,b.K)}this.W.Ra&&this.b.Aa("onVideoDataChange",{type:a,playertype:b.K})};
h.Ak=function(){m9(this,null);this.b.Aa("onPlaylistUpdate")};
h.Hq=function(a){var b=a.getId(),c=k4(this);if("part2viewed"==b)c.Kn&&Tp(c.Kn),c.Be&&Tp(c.Be);else if("conversionview"==b){var d=this.g;d.o&&Eu(d.o)}else"engagedview"==b&&Tp(c.zd);c.na&&(d=B9(this,c.na,a.getId()),Tp(d));switch(b){case "videoplaytime25":c.vn&&Tp(c.vn);Tp(c.Ow);break;case "videoplaytime50":c.xn&&Tp(c.xn);Tp(c.Qw);break;case "videoplaytime75":c.zn&&Tp(c.zn);Tp(c.Sw);break;case "videoplaytime100":c.Tu&&Tp(c.Tu),Tp(c.Mw)}(b=this.getVideoData().Rn)&&b[a.getId()]&&(c=b[a.getId()],Tp(c,void 0,
Xp(c)),b=b[a.getId()+"gaia"],Tp(b,void 0,Xp(b)));this.g.C.yh(a)};
h.seekTo=function(a,b,c,d){b=0!=b;if(d=WI(this,d))2==this.L&&o9(this),d.seekTo(a,b,c)};
h.dG=function(a,b){var c=a.getVideoData();if(1==this.L||2==this.L)c.startSeconds=b;2==this.L?o9(this):this.b.Wa("seekto",b)};
h.JA=function(){this.b.Wa("airplayactivechange")};
h.KA=function(){this.b.Wa("airplayavailabilitychange")};
h.cB=function(){this.b.Wa("beginseeking")};
h.RB=function(){this.b.Wa("endseeking")};
h.ir=function(){var a=this.A.Gb(),b=this.getVideoData();b.K||!this.da?(b=b.oa,a=C9(this,a),b&&G9(this,a)):a&&H9(this,a)};
h.PA=function(a){this.b.Aa("onCueRangeEnter",a.getId())};
h.QA=function(a){this.b.Aa("onCueRangeExit",a.getId())};
h.UA=function(){this.fa||(this.fa=BE(this.Oq,this));V0(this.H,z4(this));if(this.W.experiments.aa("html5_playlist_preload")&&QK(this)){var a=this.A.Gb(rK(this.A));a&&E9(this,a)}};
h.SA=function(){var a=k4(this),b=this.g.C.b.b||[],c=this.Xa.videoplaytime100;this.W.experiments.aa("send_pyv_ad_mt_and_abandon_pings")&&a.na&&0<=b.indexOf(c)&&(a=B9(this,a.na,"video_abandon"),Tp(a))};
h.Oq=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.ar=function(a){"remote"==a?(2==this.L&&o9(this),q9(this,6),j9(this,this.F)):this.Vl()};
h.dr=function(a){"remote"!=a||this.W.B&&tp()||(x4(this),this.pauseVideo());this.Vl()};
h.Vl=function(){this.W.Ra&&this.B?this.b.Aa("onApiChange",this.B.K):this.b.Aa("onApiChange")};
h.wC=function(){var a={volume:$e(Math.floor(100*this.o.b.volume),0,100),muted:this.o.b.muted};this.ba=gc(a);this.b.Aa("onVolumeChange",a)};
h.ZB=function(){var a=Wh();T9(this,a==this.D.element?1:0);S9(this,this.W.experiments.aa("lock_fullscreen_tag")?Pf(this.D.element,a||null):a==this.D.element)};
h.cG=function(){var a=Ix(this.D);ng(this.gc,a)||(this.gc=a,this.B&&HI(this.B,"r"),!this.W.experiments.aa("disable_app_resize")&&this.g&&this.g!=this.B&&HI(this.g,"r"),1==this.ab&&this.Ja&&S9(this,!0));a=this.D.Ka();this.b.Wa("resize",a);this.Db&&hf(this.Db,a)||(this.b.Wa("appresize",a),this.Db=a)};
h.uD=function(){2!=this.ab&&T9(this,Wh()==this.D.element?1:0)};
h.$F=function(a){this.b.Wa("liveviewshift",a)};
h.pauseVideo=function(a){(a=WI(this,a))&&a.pauseVideo()};
h.getAdState=function(){return this.F?this.F.getAdState():-1};
h.xt=function(a,b,c){this.W.experiments.aa("legacy_control_redirecting")&&(this.kj(),this.Ba=a,b&&F(b,function(a){this.ga[a]=!0},this),c&&Oea(this.G,a,c))};
h.kj=function(){this.Ba=null;this.ga={};sL(this.G)};
h.HD=function(){$9(this,"signature")};
h.AB=function(){this.b.Aa("CONNECTION_ISSUE")};
h.ZF=function(a){this.b.Aa("heartbeatparams",a)};
h.T=function(){this.W.B&&mp();this.g.dispose();this.K&&this.K.dispose();f9(this);Nb(Wb(this.Ta),this.A);this.Ia=null;AE(this.fa);this.fa=0;$8.N.T.call(this)};g.aa("yt.player.Application.create",$8.create,void 0);var $$=r("ytcsi.tick");$$&&$$("pe");})(_yt_player);
